@ckeditor/ckeditor5-track-changes 38.1.1 → 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 +4 -3
  3. package/src/augmentation.d.ts +36 -36
  4. package/src/commands/acceptsuggestioncommand.d.ts +20 -20
  5. package/src/commands/acceptsuggestioncommand.js +1 -1
  6. package/src/commands/discardsuggestioncommand.d.ts +20 -20
  7. package/src/commands/discardsuggestioncommand.js +1 -1
  8. package/src/commands/executeonallsuggestionscommand.d.ts +20 -20
  9. package/src/commands/executeonallsuggestionscommand.js +1 -1
  10. package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -20
  11. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  12. package/src/commands/trackchangescommand.d.ts +22 -22
  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 +13 -13
  17. package/src/integrations/alignment.js +1 -1
  18. package/src/integrations/basicstyles.d.ts +13 -13
  19. package/src/integrations/basicstyles.js +1 -1
  20. package/src/integrations/blockquote.d.ts +13 -13
  21. package/src/integrations/blockquote.js +1 -1
  22. package/src/integrations/ckbox.d.ts +13 -13
  23. package/src/integrations/ckbox.js +1 -1
  24. package/src/integrations/codeblock.d.ts +13 -13
  25. package/src/integrations/codeblock.js +1 -1
  26. package/src/integrations/comments.d.ts +10 -10
  27. package/src/integrations/comments.js +1 -1
  28. package/src/integrations/deletecommand.d.ts +13 -13
  29. package/src/integrations/deletecommand.js +1 -1
  30. package/src/integrations/documentlist.d.ts +13 -13
  31. package/src/integrations/documentlist.js +1 -1
  32. package/src/integrations/documentlistproperties.d.ts +25 -25
  33. package/src/integrations/documentlistproperties.js +1 -1
  34. package/src/integrations/entercommand.d.ts +12 -12
  35. package/src/integrations/entercommand.js +1 -1
  36. package/src/integrations/findandreplace.d.ts +17 -17
  37. package/src/integrations/findandreplace.js +1 -1
  38. package/src/integrations/font.d.ts +13 -13
  39. package/src/integrations/font.js +1 -1
  40. package/src/integrations/formatpainter.d.ts +13 -13
  41. package/src/integrations/formatpainter.js +1 -1
  42. package/src/integrations/heading.d.ts +13 -13
  43. package/src/integrations/heading.js +1 -1
  44. package/src/integrations/highlight.d.ts +13 -13
  45. package/src/integrations/highlight.js +1 -1
  46. package/src/integrations/horizontalline.d.ts +13 -13
  47. package/src/integrations/horizontalline.js +1 -1
  48. package/src/integrations/htmlembed.d.ts +13 -13
  49. package/src/integrations/htmlembed.js +1 -1
  50. package/src/integrations/image.d.ts +13 -13
  51. package/src/integrations/image.js +1 -1
  52. package/src/integrations/imagereplace.d.ts +19 -19
  53. package/src/integrations/imagereplace.js +1 -1
  54. package/src/integrations/importword.d.ts +14 -14
  55. package/src/integrations/importword.js +1 -1
  56. package/src/integrations/indent.d.ts +13 -13
  57. package/src/integrations/indent.js +1 -1
  58. package/src/integrations/inputcommand.d.ts +12 -12
  59. package/src/integrations/inputcommand.js +1 -1
  60. package/src/integrations/link.d.ts +13 -13
  61. package/src/integrations/link.js +1 -1
  62. package/src/integrations/list.d.ts +13 -13
  63. package/src/integrations/list.js +1 -1
  64. package/src/integrations/listproperties.d.ts +25 -25
  65. package/src/integrations/listproperties.js +1 -1
  66. package/src/integrations/mediaembed.d.ts +13 -13
  67. package/src/integrations/mediaembed.js +1 -1
  68. package/src/integrations/mention.d.ts +13 -13
  69. package/src/integrations/mention.js +1 -1
  70. package/src/integrations/pagebreak.d.ts +13 -13
  71. package/src/integrations/pagebreak.js +1 -1
  72. package/src/integrations/paragraph.d.ts +13 -13
  73. package/src/integrations/paragraph.js +1 -1
  74. package/src/integrations/removeformat.d.ts +13 -13
  75. package/src/integrations/removeformat.js +1 -1
  76. package/src/integrations/restrictededitingmode.d.ts +13 -13
  77. package/src/integrations/restrictededitingmode.js +1 -1
  78. package/src/integrations/shiftentercommand.d.ts +12 -12
  79. package/src/integrations/shiftentercommand.js +1 -1
  80. package/src/integrations/standardeditingmode.d.ts +13 -13
  81. package/src/integrations/standardeditingmode.js +1 -1
  82. package/src/integrations/style.d.ts +14 -14
  83. package/src/integrations/style.js +1 -1
  84. package/src/integrations/table.d.ts +38 -38
  85. package/src/integrations/table.js +1 -1
  86. package/src/integrations/tablecaption.d.ts +18 -18
  87. package/src/integrations/tablecaption.js +1 -1
  88. package/src/integrations/tableclipboard.d.ts +18 -18
  89. package/src/integrations/tableclipboard.js +1 -1
  90. package/src/integrations/tablecolumnresize.d.ts +22 -22
  91. package/src/integrations/tablecolumnresize.js +1 -1
  92. package/src/integrations/tableheadings.d.ts +18 -18
  93. package/src/integrations/tableheadings.js +1 -1
  94. package/src/integrations/tablemergesplit.d.ts +18 -18
  95. package/src/integrations/tablemergesplit.js +1 -1
  96. package/src/integrations/tableofcontents.d.ts +13 -13
  97. package/src/integrations/tableofcontents.js +1 -1
  98. package/src/integrations/tableproperties.d.ts +23 -23
  99. package/src/integrations/tableproperties.js +1 -1
  100. package/src/integrations/template.d.ts +13 -13
  101. package/src/integrations/template.js +1 -1
  102. package/src/integrations/title.d.ts +13 -13
  103. package/src/integrations/title.js +1 -1
  104. package/src/integrations/undo.d.ts +13 -13
  105. package/src/integrations/undo.js +1 -1
  106. package/src/integrations/utils.d.ts +17 -17
  107. package/src/integrations/utils.js +1 -1
  108. package/src/suggestion.d.ts +266 -266
  109. package/src/suggestion.js +1 -1
  110. package/src/suggestiondescriptionfactory.d.ts +163 -151
  111. package/src/suggestiondescriptionfactory.js +1 -1
  112. package/src/trackchanges.d.ts +240 -240
  113. package/src/trackchanges.js +1 -1
  114. package/src/trackchangesconfig.d.ts +71 -71
  115. package/src/trackchangesdata.d.ts +37 -37
  116. package/src/trackchangesdata.js +1 -1
  117. package/src/trackchangesediting.d.ts +435 -435
  118. package/src/trackchangesediting.js +1 -1
  119. package/src/trackchangesui.d.ts +34 -34
  120. package/src/trackchangesui.js +1 -1
  121. package/src/ui/suggestioncontroller.d.ts +36 -36
  122. package/src/ui/suggestioncontroller.js +1 -1
  123. package/src/ui/view/basesuggestionthreadview.d.ts +166 -166
  124. package/src/ui/view/basesuggestionthreadview.js +1 -1
  125. package/src/ui/view/suggestionthreadview.d.ts +182 -182
  126. package/src/ui/view/suggestionthreadview.js +1 -1
  127. package/src/utils/common-translations.d.ts +5 -5
  128. package/src/utils/common-translations.js +1 -1
  129. package/src/utils/utils.d.ts +26 -26
  130. package/src/utils/utils.js +1 -1
@@ -1,18 +1,18 @@
1
- /**
2
- * @module track-changes/integrations/tableclipboard
3
- */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- import TrackChangesTable from './table';
6
- /**
7
- * Provides track changes plugin integration for {@link module:table/tableclipboard~TableClipboard table clipboard feature}.
8
- */
9
- export default class TrackChangesTableClipboard extends Plugin {
10
- /**
11
- * @inheritDoc
12
- */
13
- static get requires(): readonly [typeof TrackChangesTable];
14
- /**
15
- * @inheritDoc
16
- */
17
- afterInit(): void;
18
- }
1
+ /**
2
+ * @module track-changes/integrations/tableclipboard
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core.js';
5
+ import TrackChangesTable from './table.js';
6
+ /**
7
+ * Provides track changes plugin integration for {@link module:table/tableclipboard~TableClipboard table clipboard feature}.
8
+ */
9
+ export default class TrackChangesTableClipboard extends Plugin {
10
+ /**
11
+ * @inheritDoc
12
+ */
13
+ static get requires(): readonly [typeof TrackChangesTable];
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ afterInit(): void;
18
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x452f=['join','reduce','tableCellVerticalAlignment','_splitMarkerName','getSuggestions','markers','createRange','markMultiRangeDeletion','cell','paragraph','getRanges','map','tableCellBorderColor','nextSibling','setAttribute','commands','deletion','newRange','getRows','remove','findAncestor','createTableWalker','subType','row','trackChanges','requires','insert','tablePasteCell','isEmpty','insertRows','value','last','attributes','cells','registerPostFixer','first','content','showSuggestionHighlights','element','high','filter','unwrap','tablePaste','options','hasSuggestion','*Replace\x20table\x20cells*','TableUtils','suggestion','Users','suggestionUnloaded','getChangedMarkers','includes','$graveyard','columnInsertionIndexes','find','entries','rootName','getChanges','endRow','table','isEqual','type','column','position','endColumn','differ','getColumns','has','clipboardOutput','plugins','activeMarkers','deletionRanges','discard','from','document','insertColumns','selection','columnInsertionRanges','batch','formatBlock','author','suggestionLoaded','getTableIfOnlyTableInContent','getSelectionAffectedTableCells','end','markMultiRangeInsertion','markerToHighlight','_replaceTableSlotCell','rowInsertionIndexes','_isForcedDefaultExecutionBlock','change','insertion','createRangeOn','getChild','_getCoordsForCells','startsWith','removeRows','afterInit','containsRange','getRange','next','markMultiRangeBlockFormat','getChildren','fromEntries','insertionRanges','tableCellPadding','redo','registerCustomCallback','low','tableCellBackgroundColor','_suggestionFactory','getColumnIndexes','editing','ck-suggestion-marker--active','previous','push','view','getAllAdjacentSuggestions','getSuggestion','stop','listenTo','createRangeIn','_tablePostFixingSubtypes','name','suggestion:formatBlock:tablePasteCell','columns','tablePasteColumn','markerAttributes','tableCellBorderWidth','documentSelection','tableCellSuggestion','get','markerName','editor','TableClipboard','forceDefaultExecution','tablePasteRow','conversion','return','set','isInContent','tableCell','previousSibling','wrap','_descriptionFactory','rowInsertionRanges','setAttributes','dataDowncast','oldRange','getContainedElement','fill','add','nodeAfter','getShiftedBy','start','suggestion-td','updateMarker','model','getMarkers','length','move','for','ck-suggestion-marker','accept','tablePasteChainId','some','getAttributes','schema'];(function(_0x5cd129,_0x452f2b){const _0x5dadfc=function(_0x201d80){while(--_0x201d80){_0x5cd129['push'](_0x5cd129['shift']());}};_0x5dadfc(++_0x452f2b);}(_0x452f,0x1ea));const _0x5dad=function(_0x5cd129,_0x452f2b){_0x5cd129=_0x5cd129-0x0;let _0x5dadfc=_0x452f[_0x5cd129];return _0x5dadfc;};import{getTranslation as _0x6f04c4}from'../utils/common-translations';import{Plugin as _0x290f7e}from'ckeditor5/src/core';import{uid as _0x265802,priorities as _0xab5db8}from'ckeditor5/src/utils';import _0x2ebffb from'./table';const le=[_0x5dad('0x8e'),_0x5dad('0x1a'),'tableCellBorderStyle','tableCellHorizontalAlignment',_0x5dad('0x10'),_0x5dad('0x7b'),_0x5dad('0x77')],ae=Object['fromEntries'](le[_0x5dad('0x19')](_0x5265b2=>[_0x5265b2,null]));export default class kt extends _0x290f7e{static get[_0x5dad('0x27')](){return[_0x2ebffb];}[_0x5dad('0x6f')](){const _0x46d165=this[_0x5dad('0x93')];if(!_0x46d165[_0x5dad('0x53')][_0x5dad('0x51')]('TableClipboard'))return;const _0x22110d=_0x46d165[_0x5dad('0x53')][_0x5dad('0x91')]('TrackChangesEditing'),_0xaaba5c=_0x46d165['plugins']['get'](_0x5dad('0x3c')),_0x406696=_0x46d165[_0x5dad('0x53')][_0x5dad('0x91')](_0x2ebffb),_0x1d0a87=_0x46d165[_0x5dad('0x53')][_0x5dad('0x91')]('TableClipboard');_0x406696[_0x5dad('0x88')]['push']('tablePasteRow',_0x5dad('0x8c')),_0x46d165[_0x5dad('0x3')][_0x5dad('0xd')]['register'](_0x5dad('0x90'),{'allowIn':_0x5dad('0x9b'),'allowContentOf':_0x5dad('0x9b'),'isLimit':!0x0}),_0x46d165[_0x5dad('0x97')]['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x242e7a=null;_0x46d165[_0x5dad('0x3')]['on']('insertContent',(_0x4e0136,_0x2cf6d2)=>{const [_0x9c9161,_0xaa824f]=_0x2cf6d2,_0x32a566=_0x2cf6d2[_0x2cf6d2[_0x5dad('0x5')]-0x1];_0x32a566&&_0x32a566[_0x5dad('0x95')]||_0x22110d[_0x5dad('0x67')]||this[_0x5dad('0x93')][_0x5dad('0x1d')][_0x5dad('0x91')](_0x5dad('0x26'))[_0x5dad('0x2c')]&&function(_0x41556b,_0x321ef8,_0x251461,_0x4d5668,_0x6a9f32){if(_0x321ef8&&!_0x321ef8['is'](_0x5dad('0x8f')))return!0x1;const _0x36d27b=_0x6a9f32[_0x5dad('0x60')](_0x41556b,_0x251461);if(!_0x36d27b||!fe(_0x36d27b,void 0x0,_0x4d5668))return!0x1;const _0x4b53d2=_0x4d5668[_0x5dad('0x61')](_0x251461[_0x5dad('0x58')][_0x5dad('0x5a')]);if(!_0x4b53d2[_0x5dad('0x5')])return!0x1;const _0xc73758=_0x4b53d2[0x0][_0x5dad('0x22')](_0x5dad('0x49')),_0x2c6421=_0x4d5668['getRowIndexes'](_0x4b53d2),_0x3cded0=_0x4d5668[_0x5dad('0x7d')](_0x4b53d2),_0x5c302f={'startRow':_0x2c6421[_0x5dad('0x31')],'endRow':_0x2c6421['last'],'startColumn':_0x3cded0[_0x5dad('0x31')],'endColumn':_0x3cded0[_0x5dad('0x2d')]};return 0x1==_0x4b53d2[_0x5dad('0x5')]&&(_0x5c302f[_0x5dad('0x48')]+=_0x4d5668[_0x5dad('0x20')](_0x36d27b)-0x1,_0x5c302f[_0x5dad('0x4e')]+=_0x4d5668[_0x5dad('0x50')](_0x36d27b)-0x1),fe(_0xc73758,_0x5c302f,_0x4d5668);}(_0x9c9161,_0xaa824f,_0x46d165['model'],_0xaaba5c,_0x1d0a87)&&(_0x4e0136[_0x5dad('0x85')](),_0x242e7a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x46d165['model'][_0x5dad('0x68')](()=>{_0x46d165[_0x5dad('0x3')]['insertContent'](_0x2cf6d2[0x0],_0x2cf6d2[0x1],_0x2cf6d2[0x2],{'forceDefaultExecution':!0x0});const _0x11241a=_0x265802(),{rowInsertionRanges:_0x71acc2,columnInsertionRanges:_0x2fdd51,insertionRanges:_0x53d05e,deletionRanges:_0x23f162,cells:_0x453c4a}=_0x242e7a;_0x71acc2['length']&&_0x22110d[_0x5dad('0x63')](_0x71acc2,'tablePasteRow',{'tablePasteChainId':_0x11241a}),_0x2fdd51[_0x5dad('0x5')]&&_0x22110d[_0x5dad('0x63')](_0x2fdd51,_0x5dad('0x8c'),{'tablePasteChainId':_0x11241a}),_0x53d05e[_0x5dad('0x5')]&&_0x22110d['markMultiRangeInsertion'](_0x53d05e,_0x5dad('0x38'),{'tablePasteChainId':_0x11241a,'skipNestingCheck':!0x0}),_0x23f162[_0x5dad('0x5')]&&_0x22110d[_0x5dad('0x15')](_0x23f162,_0x5dad('0x38'),{'tablePasteChainId':_0x11241a,'skipNestingCheck':!0x0});const _0x2bfc54=_0x22110d[_0x5dad('0x73')](_0x453c4a['map'](({element:_0x41c4c8})=>_0x41c4c8),{'formatGroupId':_0x265802()},[],_0x5dad('0x29'),{'tablePasteChainId':_0x11241a});if(_0x2bfc54){const _0x3ce644=_0x2bfc54[_0x5dad('0x4')](),_0x3879e0=[];for(const {element:_0x185334,attributes:_0x302814}of _0x453c4a){if(!_0x302814)continue;const _0x361ef6=_0x46d165['model'][_0x5dad('0x6a')](_0x185334),_0x35f7dc=_0x3ce644[_0x5dad('0x44')](_0x287e85=>_0x287e85[_0x5dad('0x71')]()[_0x5dad('0x4a')](_0x361ef6));_0x35f7dc&&_0x3879e0[_0x5dad('0x81')]([_0x35f7dc['name'],_0x302814]);}_0x3879e0[_0x5dad('0x5')]&&_0x2bfc54[_0x5dad('0x1c')](_0x5dad('0x8d'),Object[_0x5dad('0x75')](_0x3879e0));}_0x242e7a=null;}));},{'priority':_0xab5db8[_0x5dad('0x35')]+0xa}),_0x46d165[_0x5dad('0x53')][_0x5dad('0x91')](_0x5dad('0x94'))['on'](_0x5dad('0x65'),(_0x4f86af,_0x142995)=>{const [_0x1f6c6c,_0x36040d,,_0xdb37a6]=_0x142995;if(!_0x242e7a)return;_0x4f86af[_0x5dad('0x85')]();const _0x4d80cb=_0x1f6c6c[_0x5dad('0x16')],_0x5ed1bb=_0x36040d,_0x2185ed=ce(_0x4d80cb),_0x45c2e9=ce(_0x5ed1bb);_0x4f86af[_0x5dad('0x98')]=_0x4d80cb;let _0x5decc0=null,_0x38db2a=null;if(_0x45c2e9||_0x2185ed){if(_0x2185ed&&!_0x45c2e9){_0xdb37a6[_0x5dad('0x21')](_0x4d80cb[_0x5dad('0x6b')](0x0));for(const _0xd950c8 of Array[_0x5dad('0x57')](_0x5ed1bb[_0x5dad('0x74')]()))_0xdb37a6['insert'](_0xd950c8,_0x4d80cb,_0x5dad('0x62'));const _0x1ba969=_0x242e7a[_0x5dad('0x66')][_0x5dad('0x41')](_0x1f6c6c[_0x5dad('0x25')]),_0x5aedba=_0x242e7a[_0x5dad('0x43')][_0x5dad('0x41')](_0x1f6c6c[_0x5dad('0x4c')]);_0x1ba969||_0x5aedba||(_0x5decc0=_0xdb37a6[_0x5dad('0x87')](_0x4d80cb));}else _0x45c2e9&&!_0x2185ed&&(_0x38db2a=_0xdb37a6[_0x5dad('0x87')](_0x4d80cb));}else{const _0x501349=_0xdb37a6['createElement'](_0x5dad('0x90')),_0x22686e=_0xdb37a6['createElement']('tableCellSuggestion');_0xdb37a6[_0x5dad('0x9d')](_0xdb37a6[_0x5dad('0x87')](_0x4d80cb),_0x22686e),_0xdb37a6[_0x5dad('0x28')](_0x501349,_0x4d80cb,0x0);for(const _0x1f1f4c of Array['from'](_0x5ed1bb[_0x5dad('0x74')]()))_0xdb37a6[_0x5dad('0x28')](_0x1f1f4c,_0x501349,'end');_0x5decc0=_0xdb37a6[_0x5dad('0x6a')](_0x501349),_0x38db2a=_0xdb37a6[_0x5dad('0x6a')](_0x22686e);}const _0x147b11=Array['from'](_0x5ed1bb[_0x5dad('0xc')]())[_0x5dad('0x36')](([_0x31704f])=>le[_0x5dad('0x41')](_0x31704f));_0x242e7a[_0x5dad('0x2f')][_0x5dad('0x81')]({'element':_0x4d80cb,'attributes':_0x147b11[_0x5dad('0x5')]?Object[_0x5dad('0x75')](_0x147b11):null}),_0x5decc0&&_0x242e7a[_0x5dad('0x76')][_0x5dad('0x81')](_0x5decc0),_0x38db2a&&_0x242e7a[_0x5dad('0x55')]['push'](_0x38db2a);},{'priority':_0x5dad('0x35')}),_0xaaba5c['on'](_0x5dad('0x59'),(_0x514e40,_0x2cce95)=>{const [_0x413bbe,_0x1f0649={}]=_0x2cce95;if(!_0x242e7a)return;const _0x15d356=_0x1f0649['at']||0x0,_0x44836d=_0x1f0649[_0x5dad('0x8b')]||0x1;_0x242e7a[_0x5dad('0x43')]=new Array(_0x44836d)[_0x5dad('0xa4')](_0x15d356)['map']((_0x2fb4a3,_0x4e5193)=>_0x2fb4a3+_0x4e5193);for(const {cell:_0xe2b3bd}of _0xaaba5c[_0x5dad('0x23')](_0x413bbe,{'startColumn':_0x15d356,'endColumn':_0x15d356+_0x44836d-0x1}))_0x242e7a[_0x5dad('0x5b')][_0x5dad('0x81')](_0x46d165[_0x5dad('0x3')][_0x5dad('0x6a')](_0xe2b3bd));},{'priority':_0x5dad('0x7a')}),_0xaaba5c['on'](_0x5dad('0x2b'),(_0x54c709,_0x56ffac)=>{const [_0x33e1fc,_0x8f9d5c={}]=_0x56ffac;if(!_0x242e7a)return;const _0x5d1bdb=_0x8f9d5c['at']||0x0,_0xba4ea5=_0x8f9d5c['rows']||0x1;_0x242e7a[_0x5dad('0x66')]=new Array(_0xba4ea5)[_0x5dad('0xa4')](_0x5d1bdb)[_0x5dad('0x19')]((_0x5cf000,_0x3c866e)=>_0x5cf000+_0x3c866e);for(const {cell:_0x129406}of _0xaaba5c[_0x5dad('0x23')](_0x33e1fc,{'startRow':_0x5d1bdb,'endRow':_0x5d1bdb+_0xba4ea5-0x1}))_0x242e7a[_0x5dad('0x9f')]['push'](_0x46d165['model'][_0x5dad('0x6a')](_0x129406));},{'priority':_0x5dad('0x7a')}),_0x22110d[_0x5dad('0x9e')]['registerDescriptionCallback'](_0x10e809=>{if(_0x10e809[_0x5dad('0x24')]&&_0x10e809['subType'][_0x5dad('0x6d')](_0x5dad('0x38')))return _0x10e809[_0x5dad('0x80')]?{}:{'type':'insertion','content':_0x6f04c4(_0x46d165['locale'],_0x5dad('0x3b'))};});const _0x3563d1=()=>{};for(const _0xbf1da9 of[_0x5dad('0x38'),'tablePasteColumn','tablePasteRow','tablePasteCell'])_0x22110d[_0x5dad('0x7c')][_0x5dad('0x79')](_0x5dad('0x69'),_0xbf1da9,_0x5dad('0xe'),_0x3563d1),_0x22110d[_0x5dad('0x7c')][_0x5dad('0x79')](_0x5dad('0x1e'),_0xbf1da9,'join',_0x3563d1);_0x22110d['_suggestionFactory'][_0x5dad('0x79')]('formatBlock',_0x5dad('0x29'),_0x5dad('0x56'),_0x3563d1),_0x22110d[_0x5dad('0x7c')]['registerCustomCallback'](_0x5dad('0x5d'),_0x5dad('0x29'),_0x5dad('0x9'),(_0x506153,_0x348cf4,_0x2392bd)=>{const _0x131d29=_0x506153[_0x5dad('0x19')](_0x29854e=>_0x29854e[_0x5dad('0xa3')]())[_0x5dad('0x36')](_0x2acb99=>_0x2acb99),_0x12c014=new Map(_0x131d29['map'](_0x4404d0=>[_0x4404d0,null]));if(_0x242e7a)for(const {element:_0xa42e73,attributes:_0x46a70f}of _0x242e7a['cells'])_0x46a70f&&_0x12c014[_0x5dad('0x99')](_0xa42e73,_0x46a70f);else{if(_0x2392bd&&_0x2392bd[_0x5dad('0x8d')])for(const [_0x2de112,_0x485215]of Object[_0x5dad('0x45')](_0x2392bd[_0x5dad('0x8d')])){const _0x57f20a=_0x46d165[_0x5dad('0x3')][_0x5dad('0x13')][_0x5dad('0x91')](_0x2de112),_0x227719=_0x57f20a?_0x57f20a[_0x5dad('0x71')]()['getContainedElement']():null;_0x227719&&_0x12c014['set'](_0x227719,_0x485215);}}_0x46d165[_0x5dad('0x3')][_0x5dad('0x68')](_0x5434fb=>{for(const [_0x310dd7,_0x3608bc]of _0x12c014)_0x5434fb[_0x5dad('0xa0')]({...ae,..._0x3608bc},_0x310dd7);});});const _0x5e44b5=(_0x1cc00e,_0x5499ce)=>{_0x22110d[_0x5dad('0x7c')][_0x5dad('0x79')](_0x1cc00e,_0x5dad('0x38'),_0x5499ce,(_0x2a41cb,_0xa91e57,_0xd31a9c)=>{_0x46d165['model'][_0x5dad('0x68')](_0x4e195b=>{const _0x4d934d=[];for(const _0xdb8eae of _0x2a41cb){const _0x41d249=_0xdb8eae[_0x5dad('0x0')][_0x5dad('0xa6')];_0x41d249['is'](_0x5dad('0x34'),_0x5dad('0x90'))&&_0x4d934d['push'](_0x41d249);}_0x22110d[_0x5dad('0x7c')]['getSuggestionCallback'](_0x1cc00e,null,_0x5499ce)(_0x2a41cb,_0xa91e57,_0xd31a9c);for(const _0x15f273 of _0x4d934d)_0x5dad('0x42')!=_0x15f273['root'][_0x5dad('0x46')]&&_0x4e195b[_0x5dad('0x37')](_0x15f273);});});};_0x5e44b5('insertion',_0x5dad('0x9')),_0x5e44b5(_0x5dad('0x69'),_0x5dad('0x56')),_0x5e44b5('deletion',_0x5dad('0x9')),_0x5e44b5(_0x5dad('0x1e'),_0x5dad('0x56')),_0x22110d[_0x5dad('0x7c')]['registerCustomCallback'](_0x5dad('0x69'),_0x5dad('0x96'),_0x5dad('0x56'),_0x9c400b=>{const _0x26d9f5=_0x9c400b['map'](_0x229750=>_0x229750[_0x5dad('0xa3')]()),_0xad10b7=_0x26d9f5[0x0]['findAncestor']('table'),{minRow:_0x1eb7f6,maxRow:_0x34e05d}=_0x406696[_0x5dad('0x6c')](_0x26d9f5);_0xaaba5c[_0x5dad('0x6e')](_0xad10b7,{'at':_0x1eb7f6,'rows':_0x34e05d-_0x1eb7f6+0x1});}),_0x22110d['_suggestionFactory'][_0x5dad('0x79')](_0x5dad('0x69'),_0x5dad('0x8c'),'discard',_0x213140=>{const _0x11d682=_0x213140['map'](_0x1efa33=>_0x1efa33[_0x5dad('0xa3')]()),_0x572f6a=_0x11d682[0x0]['findAncestor'](_0x5dad('0x49')),{minColumn:_0x1cc6f9,maxColumn:_0x1b0bd0}=_0x406696['_getCoordsForCells'](_0x11d682);_0xaaba5c['removeColumns'](_0x572f6a,{'at':_0x1cc6f9,'columns':_0x1b0bd0-_0x1cc6f9+0x1});});const _0x8b66a9=(_0x5eed15,_0x186510)=>{if(!_0x186510[_0x5dad('0x24')]||!_0x186510[_0x5dad('0x24')][_0x5dad('0x6d')](_0x5dad('0x38')))return;const _0x2ce828=_0x186510[_0x5dad('0x2e')][_0x5dad('0xa')],_0x2f1ccc=_0x22110d[_0x5dad('0x12')]()[_0x5dad('0x36')](_0xe61755=>_0xe61755['isInContent']&&_0xe61755[_0x5dad('0x2e')]&&_0xe61755[_0x5dad('0x2e')][_0x5dad('0xa')]==_0x2ce828);_0x2f1ccc[_0x5dad('0x5')]&&_0x186510[_0x5dad('0x83')]()['length']!=_0x2f1ccc['length']&&_0x2f1ccc[_0x5dad('0xf')]((_0x2e2f3b,_0x392043)=>(_0x2e2f3b[_0x5dad('0x72')]=_0x392043,_0x392043[_0x5dad('0x80')]=_0x2e2f3b,_0x392043));};function _0x436d05(_0x247eb3,_0x4f0712=!0x0){const {id:_0x10be83}=_0x22110d[_0x5dad('0x11')](_0x247eb3[_0x5dad('0x92')]),_0x33d0ca=[_0x5dad('0x8'),'ck-suggestion-marker-insertion'],_0x40ce49=_0x22110d[_0x5dad('0x54')][_0x5dad('0x41')](_0x247eb3[_0x5dad('0x92')]);return _0x40ce49&&_0x33d0ca[_0x5dad('0x81')](_0x5dad('0x7f')),{'classes':_0x33d0ca,'attributes':{'data-suggestion':_0x10be83},'priority':_0x40ce49&&_0x4f0712?0xbc2:0xbb8};}_0x22110d['on'](_0x5dad('0x5f'),_0x8b66a9,{'priority':'high'}),_0x22110d['on'](_0x5dad('0x3f'),_0x8b66a9,{'priority':_0x5dad('0x35')}),_0x46d165['model'][_0x5dad('0x58')][_0x5dad('0x30')](()=>{let _0x4ef1ba=!0x1;const _0x21dfe6=Array[_0x5dad('0x57')](_0x46d165[_0x5dad('0x3')]['document']['differ']['getChangedMarkers']());for(const {name:_0x448fe8,data:_0x454dee}of _0x21dfe6){const {group:_0x30fde5,type:_0x256b5d,id:_0x2ffea9}=_0x22110d[_0x5dad('0x11')](_0x448fe8);if(_0x5dad('0x3d')!=_0x30fde5||_0x5dad('0x1e')!=_0x256b5d||_0x454dee[_0x5dad('0xa2')])continue;if(!_0x22110d[_0x5dad('0x3a')](_0x2ffea9))continue;const _0x31bb72=_0x22110d[_0x5dad('0x84')](_0x2ffea9)[_0x5dad('0x18')](),_0x92571c=_0x46d165[_0x5dad('0x53')]['get'](_0x5dad('0x3e'))['me'];for(const _0x16a26a of _0x22110d[_0x5dad('0x12')]()){if(!_0x16a26a[_0x5dad('0x9a')]||_0x16a26a[_0x5dad('0x5e')]!=_0x92571c)continue;if(_0x5dad('0x5d')!=_0x16a26a[_0x5dad('0x4b')]||'tablePasteCell'!=_0x16a26a[_0x5dad('0x24')])continue;if(_0x16a26a[_0x5dad('0x18')]()['every'](_0xab905d=>_0x31bb72[_0x5dad('0xb')](_0x5e86a5=>_0x5e86a5[_0x5dad('0x70')](_0xab905d,!0x0))))for(const _0x90a5ec of _0x16a26a[_0x5dad('0x83')]())_0x90a5ec[_0x5dad('0x9a')]&&(_0x90a5ec[_0x5dad('0x56')](),_0x4ef1ba=!0x0);}}return _0x4ef1ba;}),_0x46d165[_0x5dad('0x3')][_0x5dad('0x58')][_0x5dad('0x30')](_0x5f96b9=>{const _0x4d4f6d=_0x46d165[_0x5dad('0x1d')][_0x5dad('0x91')](_0x5dad('0x78'));if(!_0x4d4f6d||!_0x4d4f6d['_createdBatches'][_0x5dad('0x51')](_0x5f96b9[_0x5dad('0x5c')]))return!0x1;let _0x4ba31f=!0x1;const _0x4cdd06=_0x46d165[_0x5dad('0x53')][_0x5dad('0x91')](_0x5dad('0x3e'))['me'],_0x3b5938=_0x46d165[_0x5dad('0x3')][_0x5dad('0x58')][_0x5dad('0x4f')][_0x5dad('0x47')](),_0x524176=Array['from'](_0x46d165[_0x5dad('0x3')]['document'][_0x5dad('0x4f')][_0x5dad('0x40')]())['filter'](({name:_0x316bc2,data:_0x42aef6})=>{const {group:_0x51b3a7,subType:_0x3fe4e4,authorId:_0x333ac1}=_0x22110d[_0x5dad('0x11')](_0x316bc2);return'suggestion'==_0x51b3a7&&_0x5dad('0x38')==_0x3fe4e4&&_0x333ac1==_0x4cdd06['id']&&!_0x42aef6[_0x5dad('0xa2')];});for(const _0x2408fd of _0x3b5938){if(_0x5dad('0x28')!=_0x2408fd[_0x5dad('0x4b')]||'tableCellSuggestion'!=_0x2408fd[_0x5dad('0x89')]||0x1!=_0x2408fd[_0x5dad('0x5')])continue;const _0x4efdd9=_0x5f96b9[_0x5dad('0x14')](_0x2408fd[_0x5dad('0x4d')],_0x2408fd['position'][_0x5dad('0xa7')](0x1));if(!_0x524176[_0x5dad('0x44')](({data:_0xe90386})=>_0xe90386[_0x5dad('0x1f')][_0x5dad('0x4a')](_0x4efdd9)))for(const {name:_0x4320d0,data:_0x1f7e0d}of _0x524176)if(_0x4efdd9[_0x5dad('0x70')](_0x1f7e0d[_0x5dad('0x1f')])){_0x5f96b9[_0x5dad('0x2')](_0x4320d0,{'range':_0x4efdd9}),_0x4ba31f=!0x0;break;}}return _0x4ba31f;}),_0x46d165[_0x5dad('0x3')][_0x5dad('0x58')][_0x5dad('0x30')](_0x45d0d4=>{let _0x187aac=!0x1;const _0x4589f2=_0x46d165[_0x5dad('0x53')][_0x5dad('0x91')]('Users')['me'],_0x1bb426=_0x22110d[_0x5dad('0x12')]()[_0x5dad('0x36')](_0x5cdf12=>_0x5cdf12[_0x5dad('0x9a')]&&_0x5cdf12[_0x5dad('0x5e')]==_0x4589f2),_0x27a00f=new Set(),_0x2f7a9a=new Set();for(const _0x38a004 of _0x1bb426)if(_0x5dad('0x38')==_0x38a004[_0x5dad('0x24')])for(const _0x42177d of _0x38a004[_0x5dad('0x4')]()){const _0x250350=_0x42177d[_0x5dad('0x71')]()[_0x5dad('0xa3')]();if(_0x250350){if(_0x250350['is'](_0x5dad('0x34'),'tableCellSuggestion')&&ce(_0x250350)){_0x38a004['removeMarker'](_0x42177d['name']),_0x27a00f[_0x5dad('0xa5')](_0x250350),_0x187aac=!0x0;const _0x386c1a=_0x250350[_0x5dad('0x1b')],_0x24a37d=_0x250350[_0x5dad('0x9c')],_0x55b1d2=_0x386c1a&&_0x386c1a['is'](_0x5dad('0x34'),'tableCellSuggestion'),_0x53e910=_0x24a37d&&_0x24a37d['is'](_0x5dad('0x34'),_0x5dad('0x90'));_0x55b1d2&&!_0x27a00f['has'](_0x386c1a)&&_0x2f7a9a[_0x5dad('0xa5')](_0x386c1a),_0x53e910&&!_0x27a00f[_0x5dad('0x51')](_0x24a37d)&&_0x2f7a9a['add'](_0x24a37d);}else _0x250350['is'](_0x5dad('0x34'),_0x5dad('0x17'))&&_0x250350[_0x5dad('0x2a')]&&(_0x38a004['removeMarker'](_0x42177d[_0x5dad('0x89')]),_0x187aac=!0x0);}}else{if(_0x5dad('0x29')==_0x38a004[_0x5dad('0x24')]){if(!_0x38a004[_0x5dad('0x2e')]||!_0x38a004[_0x5dad('0x2e')][_0x5dad('0xa')])continue;const _0x39bacb=_0x38a004[_0x5dad('0x2e')][_0x5dad('0x8d')];if(_0x39bacb&&Object['keys'](_0x39bacb)[_0x5dad('0x5')])continue;const _0x28ee6c=_0x38a004[_0x5dad('0x2e')]['tablePasteChainId'];let _0x2c6773=!0x0,_0x5933ed=!0x0;for(const _0x46bcad of _0x1bb426)if(_0x46bcad[_0x5dad('0x24')]&&_0x46bcad[_0x5dad('0x24')][_0x5dad('0x6d')](_0x5dad('0x38'))){if(!_0x46bcad[_0x5dad('0x2e')][_0x5dad('0xa')]){_0x5933ed=!0x1;break;}if(_0x46bcad['id']!=_0x38a004['id']&&_0x46bcad['attributes']['tablePasteChainId']==_0x28ee6c){_0x2c6773=!0x1;break;}}_0x5933ed&&_0x2c6773&&(_0x38a004['removeMarkers'](),_0x187aac=!0x0);}}for(const _0x6d8271 of _0x27a00f)_0x45d0d4[_0x5dad('0x21')](_0x6d8271);for(const _0x578885 of _0x2f7a9a)_0x45d0d4[_0x5dad('0x37')](_0x578885);return _0x187aac;}),_0x46d165[_0x5dad('0x97')][_0x5dad('0x7')]('editingDowncast')[_0x5dad('0x64')]({'model':_0x5dad('0x8a'),'view':(_0x3a6770,_0x17f60c)=>_0x436d05(_0x3a6770),'converterPriority':_0x5dad('0x35')}),_0x46d165['conversion'][_0x5dad('0x7')](_0x5dad('0xa1'))[_0x5dad('0x64')]({'model':_0x5dad('0x8a'),'view':(_0x2fab73,_0x11383d)=>_0x11383d[_0x5dad('0x39')][_0x5dad('0x33')]?_0x436d05(_0x2fab73,!0x1):null,'converterPriority':_0x5dad('0x35')});const _0x21f103=_0x46d165[_0x5dad('0x7e')][_0x5dad('0x82')];this[_0x5dad('0x86')](_0x21f103[_0x5dad('0x58')],_0x5dad('0x52'),(_0x4d05a5,_0x14d5b4)=>{const _0x1443df=[];for(const _0x57206d of _0x21f103[_0x5dad('0x87')](_0x14d5b4[_0x5dad('0x32')])['getItems']())_0x57206d['is'](_0x5dad('0x34'),_0x5dad('0x1'))&&_0x1443df[_0x5dad('0x81')](_0x57206d);_0x21f103[_0x5dad('0x68')](_0x2e6cac=>{for(const _0x599df7 of _0x1443df)_0x2e6cac[_0x5dad('0x6')](_0x2e6cac[_0x5dad('0x87')](_0x599df7),_0x2e6cac['createPositionBefore'](_0x599df7)),_0x2e6cac[_0x5dad('0x21')](_0x599df7);});});}}function ce(_0x50a799){if(_0x50a799[_0x5dad('0x2a')])return!0x0;const _0x290cac=_0x50a799[_0x5dad('0x6b')](0x0);return _0x290cac['is'](_0x5dad('0x34'),_0x5dad('0x17'))&&_0x290cac[_0x5dad('0x2a')];}function fe(_0x5306b8,_0x526190={},_0x3f2b9d){for(const {isAnchor:_0x279210,cellHeight:_0x3eed6d,cellWidth:_0x4e5a34}of _0x3f2b9d[_0x5dad('0x23')](_0x5306b8,{'includeAllSlots':!0x0,..._0x526190}))if(!_0x279210||0x1!=_0x3eed6d||0x1!=_0x4e5a34)return!0x1;return!0x0;}
23
+ const _0x2099=['suggestionUnloaded','plugins','column','registerCustomCallback','redo','getRange','endColumn','registerDescriptionCallback','change','getTableIfOnlyTableInContent','isEmpty','paragraph','createElement','tablePaste','findAncestor','setAttributes','getChild','_tablePostFixingSubtypes','tableCellBackgroundColor','unwrap','add','table','find','isInContent','value','get','removeMarkers','row','tableCellSuggestion','getSelectionAffectedTableCells','TableClipboard','return','end','editingDowncast','markerName','getAttributes','createRangeIn','attributes','editor','nextSibling','editing','low','getAllAdjacentSuggestions','subType','ck-suggestion-marker-insertion','fromEntries','getItems','push','startsWith','last','registerPostFixer','tablePasteCell','rootName','suggestion-td','getSuggestionCallback','first','element','suggestion:formatBlock:tablePasteCell','getChanges','suggestionLoaded','view','insertContent','columnInsertionIndexes','start','tableCellBorderColor','_splitMarkerName','insertion','deletion','has','markMultiRangeBlockFormat','getRowIndexes','tablePasteRow','suggestion','join','tablePasteColumn','commands','oldRange','insertionRanges','$graveyard','discard','position','setAttribute','previousSibling','type','getRanges','remove','showSuggestionHighlights','createRange','fill','markMultiRangeInsertion','tableCellHorizontalAlignment','afterInit','differ','hasSuggestion','map','for','markMultiRangeDeletion','TableUtils','batch','locale','rowInsertionIndexes','filter','Users','updateMarker','length','content','tableCell','register','_suggestionFactory','includes','_getCoordsForCells','TrackChangesEditing','nodeAfter','stop','ck-suggestion-marker--active','keys','root','*Replace\x20table\x20cells*','_descriptionFactory','author','columns','previous','insertColumns','clipboardOutput','getChangedMarkers','getChildren','removeMarker','getColumns','conversion','getShiftedBy','next','accept','elementToElement','isEqual','deletionRanges','from','containsRange','every','formatBlock','set','document','createTableWalker','tablePasteChainId','getContainedElement','getMarkers','rowInsertionRanges','listenTo','high','dataDowncast','markerAttributes','name','getSuggestions','markers','createRangeOn','_createdBatches','reduce','_isForcedDefaultExecutionBlock','removeColumns','some','model','insert','endRow','markerToHighlight','newRange'];(function(_0x32f571,_0x2099d1){const _0x2647bc=function(_0x55011b){while(--_0x55011b){_0x32f571['push'](_0x32f571['shift']());}};_0x2647bc(++_0x2099d1);}(_0x2099,0x13a));const _0x2647=function(_0x32f571,_0x2099d1){_0x32f571=_0x32f571-0x0;let _0x2647bc=_0x2099[_0x32f571];return _0x2647bc;};import{getTranslation as _0x3458be}from'../utils/common-translations.js';import{Plugin as _0xb42fed}from'ckeditor5/src/core.js';import{uid as _0x24988f,priorities as _0x2d5128}from'ckeditor5/src/utils.js';import _0x5820ec from'./table.js';const le=['tableCellBorderWidth',_0x2647('0x4e'),'tableCellBorderStyle',_0x2647('0x68'),'tableCellVerticalAlignment',_0x2647('0x20'),'tableCellPadding'],ae=Object[_0x2647('0x3b')](le[_0x2647('0x6c')](_0xa41e91=>[_0xa41e91,null]));export default class kt extends _0xb42fed{static get['requires'](){return[_0x5820ec];}[_0x2647('0x69')](){const _0x2e29fb=this[_0x2647('0x34')];if(!_0x2e29fb[_0x2647('0xf')][_0x2647('0x52')]('TableClipboard'))return;const _0x20f8f9=_0x2e29fb[_0x2647('0xf')][_0x2647('0x27')](_0x2647('0x7d')),_0x4db143=_0x2e29fb[_0x2647('0xf')][_0x2647('0x27')](_0x2647('0x6f')),_0x9c1a2d=_0x2e29fb[_0x2647('0xf')][_0x2647('0x27')](_0x5820ec),_0x4a4f59=_0x2e29fb['plugins']['get'](_0x2647('0x2c'));_0x9c1a2d[_0x2647('0x1f')][_0x2647('0x3d')](_0x2647('0x55'),_0x2647('0x58')),_0x2e29fb[_0x2647('0x9')]['schema'][_0x2647('0x79')]('tableCellSuggestion',{'allowIn':_0x2647('0x78'),'allowContentOf':_0x2647('0x78'),'isLimit':!0x0}),_0x2e29fb[_0x2647('0x8e')][_0x2647('0x92')]({'model':_0x2647('0x2a'),'view':_0x2647('0x43')});let _0x448a95=null;_0x2e29fb[_0x2647('0x9')]['on'](_0x2647('0x4b'),(_0xe5a01c,_0x3e611f)=>{const [_0x161bc6,_0x291945]=_0x3e611f,_0x5bd549=_0x3e611f[_0x3e611f['length']-0x1];_0x5bd549&&_0x5bd549['forceDefaultExecution']||_0x20f8f9[_0x2647('0x6')]||this[_0x2647('0x34')][_0x2647('0x59')][_0x2647('0x27')]('trackChanges')[_0x2647('0x26')]&&function(_0xfa63f5,_0x7cdac4,_0x4cd0d4,_0x282ee2,_0x137ba8){if(_0x7cdac4&&!_0x7cdac4['is']('documentSelection'))return!0x1;const _0x1f9cba=_0x137ba8[_0x2647('0x17')](_0xfa63f5,_0x4cd0d4);if(!_0x1f9cba||!fe(_0x1f9cba,void 0x0,_0x282ee2))return!0x1;const _0x488576=_0x282ee2[_0x2647('0x2b')](_0x4cd0d4[_0x2647('0x9a')]['selection']);if(!_0x488576[_0x2647('0x76')])return!0x1;const _0x2ac8b7=_0x488576[0x0]['findAncestor'](_0x2647('0x23')),_0x56dba5=_0x282ee2[_0x2647('0x54')](_0x488576),_0x33511c=_0x282ee2['getColumnIndexes'](_0x488576),_0x3f22cb={'startRow':_0x56dba5[_0x2647('0x45')],'endRow':_0x56dba5['last'],'startColumn':_0x33511c[_0x2647('0x45')],'endColumn':_0x33511c[_0x2647('0x3f')]};return 0x1==_0x488576['length']&&(_0x3f22cb[_0x2647('0xb')]+=_0x282ee2['getRows'](_0x1f9cba)-0x1,_0x3f22cb[_0x2647('0x14')]+=_0x282ee2[_0x2647('0x8d')](_0x1f9cba)-0x1),fe(_0x2ac8b7,_0x3f22cb,_0x282ee2);}(_0x161bc6,_0x291945,_0x2e29fb[_0x2647('0x9')],_0x4db143,_0x4a4f59)&&(_0xe5a01c[_0x2647('0x7f')](),_0x448a95={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2e29fb[_0x2647('0x9')][_0x2647('0x16')](()=>{_0x2e29fb[_0x2647('0x9')][_0x2647('0x4b')](_0x3e611f[0x0],_0x3e611f[0x1],_0x3e611f[0x2],{'forceDefaultExecution':!0x0});const _0x957668=_0x24988f(),{rowInsertionRanges:_0x251085,columnInsertionRanges:_0x1098eb,insertionRanges:_0x1e0eb9,deletionRanges:_0x431a8e,cells:_0x12d9a7}=_0x448a95;_0x251085[_0x2647('0x76')]&&_0x20f8f9[_0x2647('0x67')](_0x251085,_0x2647('0x55'),{'tablePasteChainId':_0x957668}),_0x1098eb[_0x2647('0x76')]&&_0x20f8f9[_0x2647('0x67')](_0x1098eb,_0x2647('0x58'),{'tablePasteChainId':_0x957668}),_0x1e0eb9['length']&&_0x20f8f9[_0x2647('0x67')](_0x1e0eb9,_0x2647('0x1b'),{'tablePasteChainId':_0x957668,'skipNestingCheck':!0x0}),_0x431a8e[_0x2647('0x76')]&&_0x20f8f9[_0x2647('0x6e')](_0x431a8e,_0x2647('0x1b'),{'tablePasteChainId':_0x957668,'skipNestingCheck':!0x0});const _0xb3b5a7=_0x20f8f9[_0x2647('0x53')](_0x12d9a7[_0x2647('0x6c')](({element:_0x454edd})=>_0x454edd),{'formatGroupId':_0x24988f()},[],'tablePasteCell',{'tablePasteChainId':_0x957668});if(_0xb3b5a7){const _0x22dc23=_0xb3b5a7[_0x2647('0x9e')](),_0x4c4b05=[];for(const {element:_0x2349ef,attributes:_0x47be40}of _0x12d9a7){if(!_0x47be40)continue;const _0x313a88=_0x2e29fb[_0x2647('0x9')][_0x2647('0x3')](_0x2349ef),_0x5bd2e5=_0x22dc23['find'](_0xb0609c=>_0xb0609c[_0x2647('0x13')]()[_0x2647('0x93')](_0x313a88));_0x5bd2e5&&_0x4c4b05[_0x2647('0x3d')]([_0x5bd2e5[_0x2647('0x0')],_0x47be40]);}_0x4c4b05[_0x2647('0x76')]&&_0xb3b5a7[_0x2647('0x5f')](_0x2647('0xa3'),Object['fromEntries'](_0x4c4b05));}_0x448a95=null;}));},{'priority':_0x2d5128[_0x2647('0xa1')]+0xa}),_0x2e29fb[_0x2647('0xf')][_0x2647('0x27')](_0x2647('0x2c'))['on']('_replaceTableSlotCell',(_0x2a862b,_0x36446d)=>{const [_0xeb1740,_0x44dad0,,_0x494f32]=_0x36446d;if(!_0x448a95)return;_0x2a862b[_0x2647('0x7f')]();const _0x1e0754=_0xeb1740['cell'],_0x3fdff9=_0x44dad0,_0x4a7233=ce(_0x1e0754),_0x4b115d=ce(_0x3fdff9);_0x2a862b[_0x2647('0x2d')]=_0x1e0754;let _0xea83b6=null,_0x2d54cc=null;if(_0x4b115d||_0x4a7233){if(_0x4a7233&&!_0x4b115d){_0x494f32[_0x2647('0x63')](_0x1e0754[_0x2647('0x1e')](0x0));for(const _0x137a88 of Array[_0x2647('0x95')](_0x3fdff9[_0x2647('0x8b')]()))_0x494f32['insert'](_0x137a88,_0x1e0754,_0x2647('0x2e'));const _0x3c3af1=_0x448a95[_0x2647('0x72')][_0x2647('0x7b')](_0xeb1740[_0x2647('0x29')]),_0x13be84=_0x448a95[_0x2647('0x4c')][_0x2647('0x7b')](_0xeb1740[_0x2647('0x10')]);_0x3c3af1||_0x13be84||(_0xea83b6=_0x494f32[_0x2647('0x32')](_0x1e0754));}else _0x4b115d&&!_0x4a7233&&(_0x2d54cc=_0x494f32['createRangeIn'](_0x1e0754));}else{const _0x1ea19d=_0x494f32[_0x2647('0x1a')](_0x2647('0x2a')),_0x132a04=_0x494f32[_0x2647('0x1a')](_0x2647('0x2a'));_0x494f32['wrap'](_0x494f32[_0x2647('0x32')](_0x1e0754),_0x132a04),_0x494f32['insert'](_0x1ea19d,_0x1e0754,0x0);for(const _0x558fa1 of Array[_0x2647('0x95')](_0x3fdff9[_0x2647('0x8b')]()))_0x494f32[_0x2647('0xa')](_0x558fa1,_0x1ea19d,_0x2647('0x2e'));_0xea83b6=_0x494f32[_0x2647('0x3')](_0x1ea19d),_0x2d54cc=_0x494f32[_0x2647('0x3')](_0x132a04);}const _0x4f549b=Array[_0x2647('0x95')](_0x3fdff9[_0x2647('0x31')]())[_0x2647('0x73')](([_0xc74a6b])=>le[_0x2647('0x7b')](_0xc74a6b));_0x448a95['cells'][_0x2647('0x3d')]({'element':_0x1e0754,'attributes':_0x4f549b[_0x2647('0x76')]?Object[_0x2647('0x3b')](_0x4f549b):null}),_0xea83b6&&_0x448a95[_0x2647('0x5b')][_0x2647('0x3d')](_0xea83b6),_0x2d54cc&&_0x448a95[_0x2647('0x94')][_0x2647('0x3d')](_0x2d54cc);},{'priority':_0x2647('0xa1')}),_0x4db143['on'](_0x2647('0x88'),(_0x593ab6,_0x1e94cb)=>{const [_0x1f1793,_0x3c92fe={}]=_0x1e94cb;if(!_0x448a95)return;const _0x1a8bae=_0x3c92fe['at']||0x0,_0x292417=_0x3c92fe[_0x2647('0x86')]||0x1;_0x448a95[_0x2647('0x4c')]=new Array(_0x292417)[_0x2647('0x66')](_0x1a8bae)[_0x2647('0x6c')]((_0x1ad0af,_0x51057c)=>_0x1ad0af+_0x51057c);for(const {cell:_0x2db98f}of _0x4db143[_0x2647('0x9b')](_0x1f1793,{'startColumn':_0x1a8bae,'endColumn':_0x1a8bae+_0x292417-0x1}))_0x448a95['columnInsertionRanges'][_0x2647('0x3d')](_0x2e29fb[_0x2647('0x9')][_0x2647('0x3')](_0x2db98f));},{'priority':_0x2647('0x37')}),_0x4db143['on']('insertRows',(_0x41cb15,_0x57ec54)=>{const [_0x93bc1c,_0x143a0c={}]=_0x57ec54;if(!_0x448a95)return;const _0x4de42f=_0x143a0c['at']||0x0,_0x358da9=_0x143a0c['rows']||0x1;_0x448a95[_0x2647('0x72')]=new Array(_0x358da9)[_0x2647('0x66')](_0x4de42f)[_0x2647('0x6c')]((_0x505199,_0xa24216)=>_0x505199+_0xa24216);for(const {cell:_0x5b38a6}of _0x4db143[_0x2647('0x9b')](_0x93bc1c,{'startRow':_0x4de42f,'endRow':_0x4de42f+_0x358da9-0x1}))_0x448a95[_0x2647('0x9f')][_0x2647('0x3d')](_0x2e29fb[_0x2647('0x9')][_0x2647('0x3')](_0x5b38a6));},{'priority':_0x2647('0x37')}),_0x20f8f9[_0x2647('0x84')][_0x2647('0x15')](_0xf5b13f=>{if(_0xf5b13f[_0x2647('0x39')]&&_0xf5b13f[_0x2647('0x39')][_0x2647('0x3e')](_0x2647('0x1b')))return _0xf5b13f[_0x2647('0x87')]?{}:{'type':_0x2647('0x50'),'content':_0x3458be(_0x2e29fb[_0x2647('0x71')],_0x2647('0x83'))};});const _0xd6d7fe=()=>{};for(const _0x4d871e of[_0x2647('0x1b'),_0x2647('0x58'),_0x2647('0x55'),_0x2647('0x41')])_0x20f8f9[_0x2647('0x7a')]['registerCustomCallback']('insertion',_0x4d871e,_0x2647('0x57'),_0xd6d7fe),_0x20f8f9[_0x2647('0x7a')]['registerCustomCallback'](_0x2647('0x51'),_0x4d871e,_0x2647('0x57'),_0xd6d7fe);_0x20f8f9[_0x2647('0x7a')][_0x2647('0x11')](_0x2647('0x98'),_0x2647('0x41'),_0x2647('0x5d'),_0xd6d7fe),_0x20f8f9[_0x2647('0x7a')]['registerCustomCallback'](_0x2647('0x98'),_0x2647('0x41'),_0x2647('0x91'),(_0x5e8102,_0xb2441c,_0x1ae0d1)=>{const _0x43fbcc=_0x5e8102['map'](_0x599235=>_0x599235[_0x2647('0x9d')]())[_0x2647('0x73')](_0x40ca12=>_0x40ca12),_0x4488cd=new Map(_0x43fbcc['map'](_0x7c7bd9=>[_0x7c7bd9,null]));if(_0x448a95)for(const {element:_0x36fff0,attributes:_0x52985e}of _0x448a95['cells'])_0x52985e&&_0x4488cd[_0x2647('0x99')](_0x36fff0,_0x52985e);else{if(_0x1ae0d1&&_0x1ae0d1[_0x2647('0xa3')])for(const [_0x40c609,_0xdf26dd]of Object['entries'](_0x1ae0d1[_0x2647('0xa3')])){const _0x1f1ffd=_0x2e29fb[_0x2647('0x9')][_0x2647('0x2')][_0x2647('0x27')](_0x40c609),_0x3da461=_0x1f1ffd?_0x1f1ffd[_0x2647('0x13')]()[_0x2647('0x9d')]():null;_0x3da461&&_0x4488cd[_0x2647('0x99')](_0x3da461,_0xdf26dd);}}_0x2e29fb[_0x2647('0x9')][_0x2647('0x16')](_0x5399a5=>{for(const [_0x1413bf,_0x1ac81f]of _0x4488cd)_0x5399a5[_0x2647('0x1d')]({...ae,..._0x1ac81f},_0x1413bf);});});const _0x2acd9a=(_0x373bdd,_0x3695ef)=>{_0x20f8f9[_0x2647('0x7a')][_0x2647('0x11')](_0x373bdd,_0x2647('0x1b'),_0x3695ef,(_0xd9fc7c,_0x31b1a8,_0x5c6fe3)=>{_0x2e29fb['model'][_0x2647('0x16')](_0x3829ae=>{const _0x2ac3cc=[];for(const _0x2e0284 of _0xd9fc7c){const _0x4cf8f7=_0x2e0284[_0x2647('0x4d')][_0x2647('0x7e')];_0x4cf8f7['is'](_0x2647('0x46'),_0x2647('0x2a'))&&_0x2ac3cc[_0x2647('0x3d')](_0x4cf8f7);}_0x20f8f9[_0x2647('0x7a')][_0x2647('0x44')](_0x373bdd,null,_0x3695ef)(_0xd9fc7c,_0x31b1a8,_0x5c6fe3);for(const _0x46957a of _0x2ac3cc)_0x2647('0x5c')!=_0x46957a[_0x2647('0x82')][_0x2647('0x42')]&&_0x3829ae[_0x2647('0x21')](_0x46957a);});});};_0x2acd9a(_0x2647('0x50'),_0x2647('0x91')),_0x2acd9a(_0x2647('0x50'),_0x2647('0x5d')),_0x2acd9a('deletion',_0x2647('0x91')),_0x2acd9a('deletion',_0x2647('0x5d')),_0x20f8f9['_suggestionFactory'][_0x2647('0x11')]('insertion','tablePasteRow',_0x2647('0x5d'),_0x11b4bd=>{const _0x5d2225=_0x11b4bd[_0x2647('0x6c')](_0x47e54b=>_0x47e54b['getContainedElement']()),_0x370685=_0x5d2225[0x0][_0x2647('0x1c')](_0x2647('0x23')),{minRow:_0x50926e,maxRow:_0x2d6a73}=_0x9c1a2d[_0x2647('0x7c')](_0x5d2225);_0x4db143['removeRows'](_0x370685,{'at':_0x50926e,'rows':_0x2d6a73-_0x50926e+0x1});}),_0x20f8f9[_0x2647('0x7a')]['registerCustomCallback'](_0x2647('0x50'),_0x2647('0x58'),_0x2647('0x5d'),_0x4473c6=>{const _0x48b1dd=_0x4473c6[_0x2647('0x6c')](_0x3852ee=>_0x3852ee[_0x2647('0x9d')]()),_0x498611=_0x48b1dd[0x0][_0x2647('0x1c')](_0x2647('0x23')),{minColumn:_0x13034e,maxColumn:_0x1c4793}=_0x9c1a2d['_getCoordsForCells'](_0x48b1dd);_0x4db143[_0x2647('0x7')](_0x498611,{'at':_0x13034e,'columns':_0x1c4793-_0x13034e+0x1});});const _0x2c3ee5=(_0x17229a,_0x1a7148)=>{if(!_0x1a7148['subType']||!_0x1a7148[_0x2647('0x39')][_0x2647('0x3e')](_0x2647('0x1b')))return;const _0x41f917=_0x1a7148[_0x2647('0x33')][_0x2647('0x9c')],_0x1e7317=_0x20f8f9[_0x2647('0x1')]()[_0x2647('0x73')](_0xb1ae9c=>_0xb1ae9c['isInContent']&&_0xb1ae9c[_0x2647('0x33')]&&_0xb1ae9c['attributes'][_0x2647('0x9c')]==_0x41f917);_0x1e7317['length']&&_0x1a7148[_0x2647('0x38')]()[_0x2647('0x76')]!=_0x1e7317[_0x2647('0x76')]&&_0x1e7317[_0x2647('0x5')]((_0x49ce41,_0x1d6b4c)=>(_0x49ce41[_0x2647('0x90')]=_0x1d6b4c,_0x1d6b4c[_0x2647('0x87')]=_0x49ce41,_0x1d6b4c));};function _0x14c7d1(_0x1d1d7e,_0x3be916=!0x0){const {id:_0x382b6e}=_0x20f8f9[_0x2647('0x4f')](_0x1d1d7e[_0x2647('0x30')]),_0x93218e=['ck-suggestion-marker',_0x2647('0x3a')],_0xb1c5d9=_0x20f8f9['activeMarkers']['includes'](_0x1d1d7e[_0x2647('0x30')]);return _0xb1c5d9&&_0x93218e['push'](_0x2647('0x80')),{'classes':_0x93218e,'attributes':{'data-suggestion':_0x382b6e},'priority':_0xb1c5d9&&_0x3be916?0xbc2:0xbb8};}_0x20f8f9['on'](_0x2647('0x49'),_0x2c3ee5,{'priority':_0x2647('0xa1')}),_0x20f8f9['on'](_0x2647('0xe'),_0x2c3ee5,{'priority':_0x2647('0xa1')}),_0x2e29fb['model']['document'][_0x2647('0x40')](()=>{let _0x29539c=!0x1;const _0x2d86ba=Array[_0x2647('0x95')](_0x2e29fb[_0x2647('0x9')][_0x2647('0x9a')][_0x2647('0x6a')][_0x2647('0x8a')]());for(const {name:_0x18a714,data:_0x441b6b}of _0x2d86ba){const {group:_0x566ec2,type:_0x586862,id:_0x41d77b}=_0x20f8f9[_0x2647('0x4f')](_0x18a714);if(_0x2647('0x56')!=_0x566ec2||'deletion'!=_0x586862||_0x441b6b['oldRange'])continue;if(!_0x20f8f9[_0x2647('0x6b')](_0x41d77b))continue;const _0x53ea2c=_0x20f8f9['getSuggestion'](_0x41d77b)[_0x2647('0x62')](),_0x3fbd5f=_0x2e29fb[_0x2647('0xf')]['get'](_0x2647('0x74'))['me'];for(const _0x1970e3 of _0x20f8f9[_0x2647('0x1')]()){if(!_0x1970e3['isInContent']||_0x1970e3['author']!=_0x3fbd5f)continue;if(_0x2647('0x98')!=_0x1970e3[_0x2647('0x61')]||_0x2647('0x41')!=_0x1970e3['subType'])continue;if(_0x1970e3[_0x2647('0x62')]()[_0x2647('0x97')](_0x1fda63=>_0x53ea2c[_0x2647('0x8')](_0x4f8f69=>_0x4f8f69[_0x2647('0x96')](_0x1fda63,!0x0))))for(const _0x1e8ec8 of _0x1970e3[_0x2647('0x38')]())_0x1e8ec8[_0x2647('0x25')]&&(_0x1e8ec8['discard'](),_0x29539c=!0x0);}}return _0x29539c;}),_0x2e29fb[_0x2647('0x9')]['document'][_0x2647('0x40')](_0x1b67ae=>{const _0x30146e=_0x2e29fb[_0x2647('0x59')][_0x2647('0x27')](_0x2647('0x12'));if(!_0x30146e||!_0x30146e[_0x2647('0x4')][_0x2647('0x52')](_0x1b67ae[_0x2647('0x70')]))return!0x1;let _0x5d7bb5=!0x1;const _0x4ca233=_0x2e29fb['plugins'][_0x2647('0x27')]('Users')['me'],_0x47eac7=_0x2e29fb[_0x2647('0x9')][_0x2647('0x9a')][_0x2647('0x6a')][_0x2647('0x48')](),_0x15ddaa=Array['from'](_0x2e29fb[_0x2647('0x9')][_0x2647('0x9a')][_0x2647('0x6a')][_0x2647('0x8a')]())[_0x2647('0x73')](({name:_0x327da3,data:_0x37af86})=>{const {group:_0x44376b,subType:_0x1feee7,authorId:_0x52279e}=_0x20f8f9[_0x2647('0x4f')](_0x327da3);return _0x2647('0x56')==_0x44376b&&_0x2647('0x1b')==_0x1feee7&&_0x52279e==_0x4ca233['id']&&!_0x37af86[_0x2647('0x5a')];});for(const _0x589278 of _0x47eac7){if('insert'!=_0x589278[_0x2647('0x61')]||'tableCellSuggestion'!=_0x589278[_0x2647('0x0')]||0x1!=_0x589278[_0x2647('0x76')])continue;const _0x11322b=_0x1b67ae[_0x2647('0x65')](_0x589278[_0x2647('0x5e')],_0x589278[_0x2647('0x5e')][_0x2647('0x8f')](0x1));if(!_0x15ddaa[_0x2647('0x24')](({data:_0x444ccb})=>_0x444ccb[_0x2647('0xd')][_0x2647('0x93')](_0x11322b)))for(const {name:_0x5d905d,data:_0x22d00b}of _0x15ddaa)if(_0x11322b[_0x2647('0x96')](_0x22d00b[_0x2647('0xd')])){_0x1b67ae[_0x2647('0x75')](_0x5d905d,{'range':_0x11322b}),_0x5d7bb5=!0x0;break;}}return _0x5d7bb5;}),_0x2e29fb[_0x2647('0x9')][_0x2647('0x9a')]['registerPostFixer'](_0xc27168=>{let _0x51798b=!0x1;const _0x3938e1=_0x2e29fb['plugins'][_0x2647('0x27')](_0x2647('0x74'))['me'],_0x2546c5=_0x20f8f9[_0x2647('0x1')]()['filter'](_0xad7e94=>_0xad7e94[_0x2647('0x25')]&&_0xad7e94[_0x2647('0x85')]==_0x3938e1),_0x145213=new Set(),_0x3ac91e=new Set();for(const _0x452259 of _0x2546c5)if(_0x2647('0x1b')==_0x452259['subType'])for(const _0x589b93 of _0x452259[_0x2647('0x9e')]()){const _0x2d8a90=_0x589b93[_0x2647('0x13')]()['getContainedElement']();if(_0x2d8a90){if(_0x2d8a90['is'](_0x2647('0x46'),_0x2647('0x2a'))&&ce(_0x2d8a90)){_0x452259[_0x2647('0x8c')](_0x589b93[_0x2647('0x0')]),_0x145213[_0x2647('0x22')](_0x2d8a90),_0x51798b=!0x0;const _0x30d92b=_0x2d8a90[_0x2647('0x35')],_0x56927d=_0x2d8a90[_0x2647('0x60')],_0x5df6a6=_0x30d92b&&_0x30d92b['is'](_0x2647('0x46'),_0x2647('0x2a')),_0x1f7135=_0x56927d&&_0x56927d['is'](_0x2647('0x46'),'tableCellSuggestion');_0x5df6a6&&!_0x145213[_0x2647('0x52')](_0x30d92b)&&_0x3ac91e[_0x2647('0x22')](_0x30d92b),_0x1f7135&&!_0x145213[_0x2647('0x52')](_0x56927d)&&_0x3ac91e[_0x2647('0x22')](_0x56927d);}else _0x2d8a90['is'](_0x2647('0x46'),_0x2647('0x19'))&&_0x2d8a90['isEmpty']&&(_0x452259['removeMarker'](_0x589b93[_0x2647('0x0')]),_0x51798b=!0x0);}}else{if(_0x2647('0x41')==_0x452259[_0x2647('0x39')]){if(!_0x452259[_0x2647('0x33')]||!_0x452259[_0x2647('0x33')][_0x2647('0x9c')])continue;const _0x23db8d=_0x452259[_0x2647('0x33')][_0x2647('0xa3')];if(_0x23db8d&&Object[_0x2647('0x81')](_0x23db8d)[_0x2647('0x76')])continue;const _0x1e5a86=_0x452259[_0x2647('0x33')]['tablePasteChainId'];let _0x3942bd=!0x0,_0x19ef2e=!0x0;for(const _0x23a568 of _0x2546c5)if(_0x23a568['subType']&&_0x23a568['subType'][_0x2647('0x3e')](_0x2647('0x1b'))){if(!_0x23a568['attributes']['tablePasteChainId']){_0x19ef2e=!0x1;break;}if(_0x23a568['id']!=_0x452259['id']&&_0x23a568[_0x2647('0x33')][_0x2647('0x9c')]==_0x1e5a86){_0x3942bd=!0x1;break;}}_0x19ef2e&&_0x3942bd&&(_0x452259[_0x2647('0x28')](),_0x51798b=!0x0);}}for(const _0x44b87a of _0x145213)_0xc27168[_0x2647('0x63')](_0x44b87a);for(const _0x114ade of _0x3ac91e)_0xc27168['unwrap'](_0x114ade);return _0x51798b;}),_0x2e29fb[_0x2647('0x8e')][_0x2647('0x6d')](_0x2647('0x2f'))[_0x2647('0xc')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1c0d06,_0x5888d8)=>_0x14c7d1(_0x1c0d06),'converterPriority':_0x2647('0xa1')}),_0x2e29fb['conversion'][_0x2647('0x6d')](_0x2647('0xa2'))[_0x2647('0xc')]({'model':_0x2647('0x47'),'view':(_0x575685,_0x2654f9)=>_0x2654f9['options'][_0x2647('0x64')]?_0x14c7d1(_0x575685,!0x1):null,'converterPriority':_0x2647('0xa1')});const _0x57c450=_0x2e29fb[_0x2647('0x36')][_0x2647('0x4a')];this[_0x2647('0xa0')](_0x57c450[_0x2647('0x9a')],_0x2647('0x89'),(_0x18cb02,_0x14b791)=>{const _0xb120e2=[];for(const _0x46212b of _0x57c450['createRangeIn'](_0x14b791[_0x2647('0x77')])[_0x2647('0x3c')]())_0x46212b['is'](_0x2647('0x46'),_0x2647('0x43'))&&_0xb120e2[_0x2647('0x3d')](_0x46212b);_0x57c450['change'](_0x1e2a49=>{for(const _0x102e10 of _0xb120e2)_0x1e2a49['move'](_0x1e2a49['createRangeIn'](_0x102e10),_0x1e2a49['createPositionBefore'](_0x102e10)),_0x1e2a49[_0x2647('0x63')](_0x102e10);});});}}function ce(_0x3d9f04){if(_0x3d9f04['isEmpty'])return!0x0;const _0x5c48d6=_0x3d9f04[_0x2647('0x1e')](0x0);return _0x5c48d6['is'](_0x2647('0x46'),_0x2647('0x19'))&&_0x5c48d6[_0x2647('0x18')];}function fe(_0x41246d,_0x187603={},_0x329ba8){for(const {isAnchor:_0x1ecdfd,cellHeight:_0x1745c4,cellWidth:_0x1f4be6}of _0x329ba8[_0x2647('0x9b')](_0x41246d,{'includeAllSlots':!0x0,..._0x187603}))if(!_0x1ecdfd||0x1!=_0x1745c4||0x1!=_0x1f4be6)return!0x1;return!0x0;}
@@ -1,22 +1,22 @@
1
- /**
2
- * @module track-changes/integrations/tablecolumnresize
3
- */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- import type { Element } from 'ckeditor5/src/engine';
6
- import type Suggestion from '../suggestion';
7
- import type { Description } from '../suggestiondescriptionfactory';
8
- /**
9
- * Provides track changes plugin integration for table column resize feature.
10
- */
11
- export default class TrackChangesTableColumnResize extends Plugin {
12
- /**
13
- * @inheritDoc
14
- */
15
- afterInit(): void;
16
- handleResizeTableWidthCommand(executeCommand: Function, options: {
17
- table?: Element;
18
- tableWidth?: string;
19
- columnWidths?: string;
20
- }): void;
21
- handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
22
- }
1
+ /**
2
+ * @module track-changes/integrations/tablecolumnresize
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core.js';
5
+ import type { Element } from 'ckeditor5/src/engine.js';
6
+ import type Suggestion from '../suggestion.js';
7
+ import type { Description } from '../suggestiondescriptionfactory.js';
8
+ /**
9
+ * Provides track changes plugin integration for table column resize feature.
10
+ */
11
+ export default class TrackChangesTableColumnResize extends Plugin {
12
+ /**
13
+ * @inheritDoc
14
+ */
15
+ afterInit(): void;
16
+ handleResizeTableWidthCommand(executeCommand: Function, options: {
17
+ table?: Element;
18
+ tableWidth?: string;
19
+ columnWidths?: string;
20
+ }): void;
21
+ handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
22
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1be3=['bind','*Format:*\x20resize\x20table','locale','selection','_suggestionFactory','get','editor','commandParams','document','plugins','getAttribute','accept','model','format','Users','TrackChangesEditing','registerCustomCallback','handleSuggestionDescription','handleResizeTableWidthCommand','markBlockFormat','afterInit','resizeTableWidth','resizeColumnWidths','getTableColumnsWidths','tableWidth','enableCommand','author','change','formatBlock','TableColumnResizeEditing','columnWidths','subType','table','getSelectedElement','data','discard','resizeTable','formatGroupId','registerDescriptionCallback','getSuggestionCallback'];(function(_0x6ea808,_0x1be366){const _0x489029=function(_0x2eaac6){while(--_0x2eaac6){_0x6ea808['push'](_0x6ea808['shift']());}};_0x489029(++_0x1be366);}(_0x1be3,0x81));const _0x4890=function(_0x6ea808,_0x1be366){_0x6ea808=_0x6ea808-0x0;let _0x489029=_0x1be3[_0x6ea808];return _0x489029;};import{Plugin as _0x3aadf9}from'ckeditor5/src/core';import{getTranslation as _0x24a0ce}from'../utils/common-translations';export default class wt extends _0x3aadf9{[_0x4890('0xb')](){if(!this[_0x4890('0x25')][_0x4890('0x0')]['has'](_0x4890('0x14')))return;const _0x2d83cb=this['editor'][_0x4890('0x0')]['get'](_0x4890('0x6'));_0x2d83cb['enableCommand'](_0x4890('0xc'),this[_0x4890('0x9')]['bind'](this)),_0x2d83cb[_0x4890('0x10')](_0x4890('0xd'),this[_0x4890('0x9')]['bind'](this)),_0x2d83cb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable',_0x4890('0x2'),_0x2d83cb[_0x4890('0x23')][_0x4890('0x1e')](_0x4890('0x13'),null,_0x4890('0x1a'))),_0x2d83cb['_suggestionFactory'][_0x4890('0x7')]('formatBlock',_0x4890('0x1b'),_0x4890('0x1a'),_0x2d83cb[_0x4890('0x23')]['getSuggestionCallback'](_0x4890('0x13'),null,_0x4890('0x2'))),_0x2d83cb['_descriptionFactory'][_0x4890('0x1d')](this['handleSuggestionDescription'][_0x4890('0x1f')](this));}[_0x4890('0x9')](_0x6cea7e,_0x448c06){const _0x4e1dda=this['editor']['plugins'][_0x4890('0x24')](_0x4890('0x6')),_0x5244be=this[_0x4890('0x25')][_0x4890('0x0')]['get'](_0x4890('0x14')),_0xeefe8c=_0x448c06[_0x4890('0x17')]||this[_0x4890('0x25')][_0x4890('0x3')][_0x4890('0x27')][_0x4890('0x22')][_0x4890('0x18')]();this[_0x4890('0x25')][_0x4890('0x3')][_0x4890('0x12')](()=>{const _0x3d58f2=_0x5244be['getColumnGroupElement'](_0xeefe8c);let _0x4b9c53=_0x3d58f2?_0x5244be[_0x4890('0xe')](_0x3d58f2):null,_0x370768=_0xeefe8c[_0x4890('0x1')](_0x4890('0xf'))||null;const _0x2c9643=_0x448c06[_0x4890('0xf')]||_0x370768,_0x20bef6=_0x448c06[_0x4890('0x15')]||_0x4b9c53,_0x4de2ab=this[_0x4890('0x25')]['plugins'][_0x4890('0x24')](_0x4890('0x5'))['me'];for(const _0x570cef of _0x4e1dda['getSuggestions']()){const _0x532f30=_0x570cef['getContainedElement']();if(_0x4890('0x1b')===_0x570cef[_0x4890('0x16')]&&_0x532f30===_0xeefe8c){_0x570cef[_0x4890('0x11')]!==_0x4de2ab&&_0x570cef[_0x4890('0x1a')]();const _0x20a9d1=_0x570cef[_0x4890('0x19')][_0x4890('0x26')];_0x370768=_0x20a9d1[0x0][_0x4890('0xf')],_0x4b9c53=_0x20a9d1[0x0][_0x4890('0x15')];break;}}_0x6cea7e({'table':_0xeefe8c,'tableWidth':_0x2c9643,'columnWidths':_0x20bef6}),_0x4e1dda[_0x4890('0xa')](_0xeefe8c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x370768,'columnWidths':_0x4b9c53}],'formatGroupId':_0x4890('0x1b')},[],_0x4890('0x1b'));});}[_0x4890('0x8')](_0x2ffcb9){const {data:_0x41e396}=_0x2ffcb9;if(_0x41e396&&'resizeTable'===_0x41e396[_0x4890('0x1c')]){const _0x7e5423=_0x4890('0x20');return{'type':_0x4890('0x4'),'content':_0x24a0ce(this[_0x4890('0x25')][_0x4890('0x21')],_0x7e5423)};}}}
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,18 +1,18 @@
1
- /**
2
- * @module track-changes/integrations/tableheadings
3
- */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- import TrackChangesTable from './table';
6
- /**
7
- * Provides track changes plugin integration for {@link module:table/table~Table table feature} heading rows/columns.
8
- */
9
- export default class TrackChangesTableHeadings extends Plugin {
10
- /**
11
- * @inheritDoc
12
- */
13
- static get requires(): readonly [typeof TrackChangesTable];
14
- /**
15
- * @inheritDoc
16
- */
17
- afterInit(): void;
18
- }
1
+ /**
2
+ * @module track-changes/integrations/tableheadings
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core.js';
5
+ import TrackChangesTable from './table.js';
6
+ /**
7
+ * Provides track changes plugin integration for {@link module:table/table~Table table feature} heading rows/columns.
8
+ */
9
+ export default class TrackChangesTableHeadings extends Plugin {
10
+ /**
11
+ * @inheritDoc
12
+ */
13
+ static get requires(): readonly [typeof TrackChangesTable];
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ afterInit(): void;
18
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x214c=['removeClass','table','TableEditing','addMarker:suggestion','setAttribute','ck-suggestion-marker-','first','FORMAT_HEADER_ROW','createPositionAfter','commandName','getSuggestion','FORMAT_REGULAR_COLUMN','plugins','_acceptFormatSuggestionCallbackFactory','headingRows','_descriptionFactory','name','change','editor','selection','findAncestor','addClass','childCount','_splitMarkerName','getCellLocation','getSelectionAffectedTableCells','writer','getChild','end','item','formatBlock','get','consumable','options','downcastDispatcher','ck-suggestion-marker--active','cell','activeMarkers','editing','locale','nodeBefore','data-suggestion','enableCommand','unbindElementFromMarkerName','markBlockFormat','mapper','commandParams','highest','data','TrackChangesEditing','getColumnIndexes','*Format:*\x20%0','forceValue','getRowIndexes','isBefore','markerRange','accept','commands','requires','createPositionBefore','createTableWalker','index','includes','createRange','setTableRowHeader','has','FORMAT_REGULAR_ROW','getAttribute','TableUtils','removeAttribute','parent','value','nodeAfter','showSuggestionHighlights','_suggestionFactory','headingColumns','setTableColumnHeader','document','toViewElement','markerName','model'];(function(_0x5a455c,_0x214c3f){const _0x1bbb4c=function(_0x160cca){while(--_0x160cca){_0x5a455c['push'](_0x5a455c['shift']());}};_0x1bbb4c(++_0x214c3f);}(_0x214c,0x1df));const _0x1bbb=function(_0x5a455c,_0x214c3f){_0x5a455c=_0x5a455c-0x0;let _0x1bbb4c=_0x214c[_0x5a455c];return _0x1bbb4c;};import{Plugin as _0x5c6a4e}from'ckeditor5/src/core';import _0x4adaa5 from'./table';import{getTranslation as _0x254ab0}from'../utils/common-translations';export default class pt extends _0x5c6a4e{static get[_0x1bbb('0x41')](){return[_0x4adaa5];}['afterInit'](){const _0x5875fa=this[_0x1bbb('0x19')];if(!_0x5875fa[_0x1bbb('0x13')][_0x1bbb('0x48')](_0x1bbb('0x9')))return;const _0x30b67a=_0x5875fa[_0x1bbb('0x2e')],_0x58a516=_0x5875fa[_0x1bbb('0x13')][_0x1bbb('0x26')](_0x1bbb('0x38')),_0x1e9af7=_0x5875fa[_0x1bbb('0x13')][_0x1bbb('0x26')](_0x1bbb('0x4b')),_0x2b66be=_0x5875fa[_0x1bbb('0x13')][_0x1bbb('0x26')](_0x4adaa5);function _0x2978ac({showActiveMarker:_0x271ab9=!0x0,setDataAttribute:_0x48825c=!0x0}={}){return(_0x3d1a01,_0x40e237,_0x23926f)=>{const {type:_0x1f5ecc,id:_0x945eb7}=_0x58a516[_0x1bbb('0x1e')](_0x40e237['markerName']),_0x273945=_0x58a516['getSuggestion'](_0x945eb7);if(!_0x273945[_0x1bbb('0x37')]||_0x1bbb('0x2')!=_0x273945['data'][_0x1bbb('0x10')])return;if(_0x40e237[_0x1bbb('0x24')])return void _0x3d1a01['stop']();if(!_0x23926f[_0x1bbb('0x27')]['consume'](_0x40e237[_0x1bbb('0x3e')],_0x3d1a01[_0x1bbb('0x17')]))return;const _0x168260=_0x40e237['markerRange']['start'][_0x1bbb('0x4f')],_0xd4d91f=_0x40e237['markerRange'][_0x1bbb('0x23')][_0x1bbb('0x2f')],_0x403328=_0x168260[_0x1bbb('0x4d')][_0x1bbb('0x4d')],{column:_0x6666ca}=_0x1e9af7[_0x1bbb('0x1f')](_0x168260),{column:_0x5ab798}=_0x1e9af7[_0x1bbb('0x1f')](_0xd4d91f);for(let _0x5be21=_0x6666ca;_0x5be21<=_0x5ab798;_0x5be21++){const _0x9b55d1=_0x1e9af7[_0x1bbb('0x43')](_0x403328,{'column':_0x5be21,'includeAllSlots':!0x1});for(const _0x18076c of _0x9b55d1){const _0x1f6c37=_0x18076c[_0x1bbb('0x2b')],_0xb5937a=_0x23926f[_0x1bbb('0x34')][_0x1bbb('0x4')](_0x1f6c37);_0x23926f[_0x1bbb('0x21')][_0x1bbb('0x1c')]('ck-suggestion-marker-'+_0x1f5ecc,_0xb5937a),_0x48825c&&_0x23926f[_0x1bbb('0x21')][_0x1bbb('0xb')]('data-suggestion',_0x945eb7,_0xb5937a),_0x23926f[_0x1bbb('0x34')]['bindElementToMarker'](_0xb5937a,_0x40e237[_0x1bbb('0x5')]),_0x271ab9&&(_0x58a516[_0x1bbb('0x2c')][_0x1bbb('0x45')](_0x40e237[_0x1bbb('0x5')])?_0x23926f[_0x1bbb('0x21')]['addClass'](_0x1bbb('0x2a'),_0xb5937a):_0x23926f[_0x1bbb('0x21')][_0x1bbb('0x7')](_0x1bbb('0x2a'),_0xb5937a));}}};}_0x58a516['enableCommand'](_0x1bbb('0x47'),(_0x1740cf,_0x44e1ee)=>{const _0x357b42=_0x1e9af7[_0x1bbb('0x20')](_0x5875fa[_0x1bbb('0x6')][_0x1bbb('0x3')][_0x1bbb('0x1a')]),_0x5b2878=_0x1e9af7[_0x1bbb('0x3c')](_0x357b42),_0x133bcc=_0x357b42[0x0][_0x1bbb('0x1b')](_0x1bbb('0x8')),_0x4ffe84=_0x133bcc['getAttribute'](_0x1bbb('0x15'))||0x0,_0x528626=_0x44e1ee&&null!==_0x44e1ee[_0x1bbb('0x3b')]?_0x44e1ee[_0x1bbb('0x3b')]:!_0x5875fa[_0x1bbb('0x40')][_0x1bbb('0x26')](_0x1bbb('0x47'))[_0x1bbb('0x4e')],_0x4c650=_0x528626?_0x5b2878['last']:_0x5b2878[_0x1bbb('0xd')],_0x5b9e73=_0x133bcc['getChild'](_0x4c650);let _0x40e077;if(_0x528626){const _0x4affa2=_0x133bcc['getChild'](_0x4ffe84);if(_0x5b9e73['index']<_0x4affa2[_0x1bbb('0x44')])return;_0x40e077=_0x5875fa[_0x1bbb('0x6')][_0x1bbb('0x46')](_0x5875fa[_0x1bbb('0x6')][_0x1bbb('0x42')](_0x4affa2[_0x1bbb('0x22')](0x0)),_0x5875fa[_0x1bbb('0x6')][_0x1bbb('0xf')](_0x5b9e73[_0x1bbb('0x22')](_0x5b9e73[_0x1bbb('0x1d')]-0x1)));}else{const _0x5503c6=_0x133bcc['getChild'](_0x4ffe84-0x1);if(!_0x5503c6)return;_0x40e077=_0x5875fa[_0x1bbb('0x6')]['createRange'](_0x5875fa[_0x1bbb('0x6')][_0x1bbb('0x42')](_0x5b9e73[_0x1bbb('0x22')](0x0)),_0x5875fa[_0x1bbb('0x6')]['createPositionAfter'](_0x5503c6[_0x1bbb('0x22')](_0x5503c6[_0x1bbb('0x1d')]-0x1)));}_0x5875fa[_0x1bbb('0x6')][_0x1bbb('0x18')](()=>{_0x58a516['markBlockFormat'](_0x40e077,{'commandName':_0x1bbb('0x47'),'commandParams':[{'forceValue':_0x528626}]},[],_0x1bbb('0x47'));});}),_0x58a516[_0x1bbb('0x31')]('setTableColumnHeader',(_0x2c2163,_0x1144ba)=>{const _0x337907=_0x5875fa[_0x1bbb('0x13')]['get']('TableUtils'),_0x26632c=_0x337907[_0x1bbb('0x20')](_0x5875fa[_0x1bbb('0x6')]['document'][_0x1bbb('0x1a')]),_0x2fe424=_0x337907[_0x1bbb('0x39')](_0x26632c),_0x4414c1=_0x26632c[0x0][_0x1bbb('0x1b')](_0x1bbb('0x8')),_0xc5bf34=_0x4414c1[_0x1bbb('0x4a')](_0x1bbb('0x1'))||0x0,_0x31a378=_0x1144ba&&null!==_0x1144ba[_0x1bbb('0x3b')]?_0x1144ba[_0x1bbb('0x3b')]:!_0x5875fa[_0x1bbb('0x40')]['get']('setTableColumnHeader')[_0x1bbb('0x4e')];let _0x4da82f;const _0x314a01=_0x4414c1[_0x1bbb('0x22')](0x0),_0x505b36=_0x31a378?_0x2fe424['last']:_0x2fe424[_0x1bbb('0xd')],_0x4e3fa8=_0x337907[_0x1bbb('0x43')](_0x4414c1,{'startRow':0x0,'column':_0x505b36,'includeAllSlots':!0x1}),_0x30c339=Array['from'](_0x4e3fa8)[0x0][_0x1bbb('0x2b')];if(_0x31a378){const _0x8938f2=_0x314a01['getChild'](_0xc5bf34);if(_0x30c339[_0x1bbb('0x3d')](_0x8938f2))return;_0x4da82f=_0x5875fa[_0x1bbb('0x6')][_0x1bbb('0x46')](_0x5875fa[_0x1bbb('0x6')][_0x1bbb('0x42')](_0x8938f2),_0x5875fa['model']['createPositionAfter'](_0x30c339));}else{const _0x1fbc32=_0x314a01['getChild'](_0xc5bf34-0x1);if(!_0x1fbc32)return;_0x4da82f=_0x5875fa['model'][_0x1bbb('0x46')](_0x5875fa[_0x1bbb('0x6')]['createPositionBefore'](_0x30c339),_0x5875fa[_0x1bbb('0x6')]['createPositionAfter'](_0x1fbc32));}_0x5875fa[_0x1bbb('0x6')][_0x1bbb('0x18')](()=>{_0x58a516[_0x1bbb('0x33')](_0x4da82f,{'commandName':_0x1bbb('0x2'),'commandParams':[{'forceValue':_0x31a378}]},[],_0x1bbb('0x2'));});}),_0x5875fa[_0x1bbb('0x2d')][_0x1bbb('0x29')]['on'](_0x1bbb('0xa'),_0x2978ac(),{'priority':_0x1bbb('0x36')}),_0x5875fa[_0x1bbb('0x37')]['downcastDispatcher']['on'](_0x1bbb('0xa'),(_0x3b9e70,_0x3a13ba,_0x2c21a5)=>{_0x2c21a5[_0x1bbb('0x28')][_0x1bbb('0x50')]&&_0x2978ac({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3b9e70,_0x3a13ba,_0x2c21a5);},{'priority':_0x1bbb('0x36')}),_0x5875fa[_0x1bbb('0x2d')][_0x1bbb('0x29')]['on']('removeMarker:suggestion',(_0x2207e5,_0x1520f8,_0x473196)=>{const {type:_0x33d9ca,id:_0x5d6d92}=_0x58a516[_0x1bbb('0x1e')](_0x1520f8[_0x1bbb('0x5')]),_0x363062=_0x58a516[_0x1bbb('0x11')](_0x5d6d92);if(!_0x363062['data']||_0x1bbb('0x2')!=_0x363062[_0x1bbb('0x37')][_0x1bbb('0x10')])return;const _0x37305c=_0x473196[_0x1bbb('0x34')]['markerNameToElements'](_0x1520f8[_0x1bbb('0x5')]);if(_0x37305c)for(const _0x3dd812 of _0x37305c)_0x473196['writer'][_0x1bbb('0x7')](_0x1bbb('0xc')+_0x33d9ca,_0x3dd812),_0x473196[_0x1bbb('0x21')]['removeClass'](_0x1bbb('0x2a'),_0x3dd812),_0x473196[_0x1bbb('0x21')][_0x1bbb('0x4c')](_0x1bbb('0x30'),_0x3dd812),_0x473196['mapper'][_0x1bbb('0x32')](_0x3dd812,_0x1520f8['markerName']);},{'priority':_0x1bbb('0x36')}),_0x58a516[_0x1bbb('0x16')]['registerDescriptionCallback'](_0x171eb8=>{const {data:_0x2697af}=_0x171eb8;if(_0x2697af){if(_0x1bbb('0x47')==_0x2697af[_0x1bbb('0x10')]){const _0x5c4134=_0x2697af[_0x1bbb('0x35')][0x0][_0x1bbb('0x3b')];return _0x5b906b(_0x254ab0(_0x30b67a,_0x5c4134?_0x1bbb('0xe'):_0x1bbb('0x49')));}if(_0x1bbb('0x2')==_0x2697af[_0x1bbb('0x10')]){const _0x42336e=_0x2697af['commandParams'][0x0][_0x1bbb('0x3b')];return _0x5b906b(_0x254ab0(_0x30b67a,_0x42336e?'FORMAT_HEADER_COLUMN':_0x1bbb('0x12')));}}function _0x5b906b(_0x265fa4){return{'type':'format','content':_0x254ab0(_0x30b67a,_0x1bbb('0x3a'),_0x265fa4)};}});const _0x1eafeb=_0x2b66be[_0x1bbb('0x14')]();_0x58a516[_0x1bbb('0x0')]['registerCustomCallback'](_0x1bbb('0x25'),_0x1bbb('0x47'),'accept',_0x1eafeb),_0x58a516[_0x1bbb('0x0')]['registerCustomCallback'](_0x1bbb('0x25'),_0x1bbb('0x2'),_0x1bbb('0x3f'),_0x1eafeb);}}
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,18 +1,18 @@
1
- /**
2
- * @module track-changes/integrations/tablemergesplit
3
- */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- import TrackChangesTable from './table';
6
- /**
7
- * Provides track changes plugin integration for {@link module:table/table~Table table feature} merging and splitting cells.
8
- */
9
- export default class TrackChangesTableMergeSplit extends Plugin {
10
- /**
11
- * @inheritDoc
12
- */
13
- static get requires(): readonly [typeof TrackChangesTable];
14
- /**
15
- * @inheritDoc
16
- */
17
- afterInit(): void;
18
- }
1
+ /**
2
+ * @module track-changes/integrations/tablemergesplit
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core.js';
5
+ import TrackChangesTable from './table.js';
6
+ /**
7
+ * Provides track changes plugin integration for {@link module:table/table~Table table feature} merging and splitting cells.
8
+ */
9
+ export default class TrackChangesTableMergeSplit extends Plugin {
10
+ /**
11
+ * @inheritDoc
12
+ */
13
+ static get requires(): readonly [typeof TrackChangesTable];
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ afterInit(): void;
18
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xcdf8=['mergeTableCellRight','model','afterInit','mergeTableCells','getSuggestions','_areMergableCells','format','editor','value','registerCustomCallback','execute','add','splitTableCellHorizontally','createRangeOn','_suggestionFactory','root','document','_areSelectedCellsMergable','rootName','from','createTableWalker','TableUtils','push','set:isEnabled','TrackChangesEditing','horizontally','getRanges','map','has','getSelectionAffectedTableCells','plugins','isInContent','_tablePostFixingSubtypes','subType','cell','markMultiRangeBlockFormat','enableCommand','findAncestor','get','requires','getCellLocation','isEnabled','fromRange','getFirstPosition','registerDescriptionCallback','element','size','trackChanges','find','table','_descriptionFactory','mergeTableCellDown','mergeTableCellLeft','stop','containsRange','setSelection','tableCell','*Split\x20cell:*\x20vertically','insertion','commandName','detach','mergeTableCellUp','splitTableCellVertically','getAncestors','*Merge\x20cells*','length','selection','type','formatBlock','_acceptFormatSuggestionCallbackFactory','accept','author','change','$graveyard','commands','deletion'];(function(_0x180676,_0xcdf839){const _0xc32c4a=function(_0x3b08c1){while(--_0x3b08c1){_0x180676['push'](_0x180676['shift']());}};_0xc32c4a(++_0xcdf839);}(_0xcdf8,0xc8));const _0xc32c=function(_0x180676,_0xcdf839){_0x180676=_0x180676-0x0;let _0xc32c4a=_0xcdf8[_0x180676];return _0xc32c4a;};import{Plugin as _0x5623ba}from'ckeditor5/src/core';import _0x12bf02 from'./table';import{LiveRange as _0x256d04}from'ckeditor5/src/engine';import{getTranslation as _0x475393}from'../utils/common-translations';export default class dt extends _0x5623ba{static get[_0xc32c('0x43')](){return[_0x12bf02];}[_0xc32c('0x1e')](){const _0x334d86=this['editor'],_0x55a76c=_0x334d86[_0xc32c('0x1d')][_0xc32c('0x2c')][_0xc32c('0x12')],_0x1d9ea6=_0x334d86['locale'];if(!_0x334d86[_0xc32c('0x3a')]['has']('TableEditing'))return;const _0x2a4d0a=_0x334d86['plugins'][_0xc32c('0x42')](_0xc32c('0x34')),_0x3b2527=_0x334d86['plugins'][_0xc32c('0x42')](_0xc32c('0x31')),_0x43efe0=_0x334d86[_0xc32c('0x3a')][_0xc32c('0x42')](_0x12bf02);_0x43efe0[_0xc32c('0x3c')][_0xc32c('0x32')](_0xc32c('0x1f')),_0x2a4d0a[_0xc32c('0x40')](_0xc32c('0x1f'),()=>{const _0x411ddb=_0x3b2527[_0xc32c('0x39')](_0x334d86[_0xc32c('0x1d')]['document'][_0xc32c('0x12')]);_0x334d86['model'][_0xc32c('0x18')](()=>{_0x2a4d0a[_0xc32c('0x3f')](_0x411ddb,{'commandName':_0xc32c('0x1f'),'commandParams':[]},[],_0xc32c('0x1f'));});}),_0x334d86[_0xc32c('0x1a')][_0xc32c('0x42')](_0xc32c('0x1f'))['on'](_0xc32c('0x26'),(_0x117524,_0x48f92e)=>{_0x334d86[_0xc32c('0x1a')]['get'](_0xc32c('0x4b'))['value']&&(_0x48f92e[_0xc32c('0x11')]>0x0&&_0x48f92e[_0x48f92e[_0xc32c('0x11')]-0x1]&&_0x48f92e[_0x48f92e['length']-0x1]['forceDefaultExecution']||_0x2a4d0a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x117524[_0xc32c('0x5')]());},{'priority':'highest'});for(const _0x1e943c of['mergeTableCellUp',_0xc32c('0x1c'),'mergeTableCellDown','mergeTableCellLeft']){const _0x4ceb4f=_0x334d86[_0xc32c('0x1a')][_0xc32c('0x42')](_0x1e943c);_0x2a4d0a[_0xc32c('0x40')](_0x1e943c,()=>{const _0x15f28e=_0x334d86[_0xc32c('0x1d')]['document'][_0xc32c('0x12')][_0xc32c('0x47')]()[_0xc32c('0xf')]()['find'](_0x2bb84d=>_0x2bb84d['is'](_0xc32c('0x49'),_0xc32c('0x8'))),_0x5a1c9c=_0x4ceb4f[_0xc32c('0x24')];_0x334d86['model']['change'](()=>{_0x2a4d0a[_0xc32c('0x3f')]([_0x15f28e,_0x5a1c9c],{'commandName':_0xc32c('0x1f'),'commandParams':[]},[],_0xc32c('0x1f'));});});}for(const _0x49b9c9 of[_0xc32c('0xe'),_0xc32c('0x28')]){const _0x148cef=_0x334d86['commands'][_0xc32c('0x42')](_0x49b9c9);_0x2a4d0a[_0xc32c('0x40')](_0x49b9c9,()=>{const _0x2bda76=_0x3b2527[_0xc32c('0x39')](_0x334d86['model'][_0xc32c('0x2c')][_0xc32c('0x12')])[0x0],_0x38090f=_0x2bda76[_0xc32c('0x41')](_0xc32c('0x1')),{column:_0x31a12e,row:_0x27742e}=_0x3b2527[_0xc32c('0x44')](_0x2bda76);let _0x5a3e52=[];if(_0xc32c('0x35')==_0x148cef['direction']){const _0x4fd6a5=_0x3b2527[_0xc32c('0x30')](_0x38090f,{'startRow':_0x27742e,'endRow':_0x27742e,'includeAllSlots':!0x0});_0x5a3e52=Array[_0xc32c('0x2f')](_0x4fd6a5)[_0xc32c('0x37')](_0x59c799=>_0x59c799[_0xc32c('0x3e')]);}else{const _0x110292=_0x3b2527[_0xc32c('0x30')](_0x38090f,{'column':_0x31a12e,'includeAllSlots':!0x0});_0x5a3e52=Array[_0xc32c('0x2f')](_0x110292)[_0xc32c('0x37')](_0x24e8ee=>_0x24e8ee['cell']);}_0x334d86['model'][_0xc32c('0x18')](_0x38a895=>{_0x2a4d0a['markBlockFormat'](_0x38a895['createRangeOn'](_0x2bda76),{'commandName':_0x49b9c9,'commandParams':[]},_0x5a3e52,_0x49b9c9);});});}_0x2a4d0a['_descriptionFactory'][_0xc32c('0x48')](_0x116cb5=>{const {data:_0x13690c}=_0x116cb5;if(_0x13690c)return _0xc32c('0x1f')==_0x13690c[_0xc32c('0xb')]?{'type':_0xc32c('0x22'),'content':_0x475393(_0x1d9ea6,_0xc32c('0x10'))}:void 0x0;}),_0x2a4d0a[_0xc32c('0x2')]['registerDescriptionCallback'](_0xcae6a8=>{const {data:_0x481339}=_0xcae6a8;if(_0x481339)return _0xc32c('0xe')==_0x481339[_0xc32c('0xb')]?{'type':_0xc32c('0x22'),'content':_0x475393(_0x1d9ea6,_0xc32c('0x9'))}:_0xc32c('0x28')==_0x481339[_0xc32c('0xb')]?{'type':_0xc32c('0x22'),'content':_0x475393(_0x1d9ea6,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x256bb9=_0x43efe0[_0xc32c('0x15')]();for(const _0x56b2ee of[_0xc32c('0xd'),_0xc32c('0x1c'),_0xc32c('0x3'),_0xc32c('0x4')])_0x2a4d0a[_0xc32c('0x2a')][_0xc32c('0x25')](_0xc32c('0x14'),_0x56b2ee,'accept',_0x256bb9);for(const _0x3f9e62 of['splitTableCellVertically',_0xc32c('0x28')])_0x2a4d0a[_0xc32c('0x2a')][_0xc32c('0x25')]('formatBlock',_0x3f9e62,_0xc32c('0x16'),_0x256bb9);_0x2a4d0a['_suggestionFactory']['registerCustomCallback'](_0xc32c('0x14'),'mergeTableCells',_0xc32c('0x16'),_0x444372=>{_0x334d86[_0xc32c('0x1d')]['change'](_0xc84786=>{const _0x337bf6=Array[_0xc32c('0x2f')](_0x55a76c['getRanges']())['map'](_0x388349=>_0x256d04[_0xc32c('0x46')](_0x388349));_0xc84786[_0xc32c('0x7')](_0x444372),_0x334d86['commands']['get']('mergeTableCells')['refresh'](),_0x334d86[_0xc32c('0x26')](_0xc32c('0x1f'),{'forceDefaultExecution':!0x0});const _0x4279a0=_0x337bf6['filter'](_0x1e9602=>_0xc32c('0x19')!=_0x1e9602[_0xc32c('0x2b')][_0xc32c('0x2e')]);_0x4279a0[_0xc32c('0x11')]>0x0&&_0xc84786[_0xc32c('0x7')](_0x4279a0);for(const _0x5bc681 of _0x337bf6)_0x5bc681[_0xc32c('0xc')]();});});for(const _0x557b29 of[_0xc32c('0xd'),_0xc32c('0x3'),_0xc32c('0x4'),_0xc32c('0x1c')]){const _0x29a8fb=_0x334d86[_0xc32c('0x1a')][_0xc32c('0x42')](_0x557b29);_0x29a8fb['on'](_0xc32c('0x33'),(_0x2c9de3,_0x94840e,_0x2f22f2)=>{if(_0x2f22f2){const _0x94fd6b=_0x334d86[_0xc32c('0x1d')][_0xc32c('0x2c')][_0xc32c('0x12')]['getFirstPosition']()[_0xc32c('0xf')]()[_0xc32c('0x0')](_0x2d96d4=>_0x2d96d4['is']('element',_0xc32c('0x8')));this['_areMergableCells'](_0x29a8fb[_0xc32c('0x24')],_0x94fd6b)||(_0x2c9de3['return']=!0x1,_0x2c9de3[_0xc32c('0x5')]());}},{'priority':'low'});}}[_0xc32c('0x2d')](){const _0x5b870d=this[_0xc32c('0x23')][_0xc32c('0x1a')][_0xc32c('0x42')](_0xc32c('0x1f')),_0x43a9cf=this[_0xc32c('0x23')]['plugins'][_0xc32c('0x42')](_0xc32c('0x31'));if(!_0x5b870d[_0xc32c('0x45')])return!0x1;const _0x1c37ef=_0x43a9cf[_0xc32c('0x39')](this[_0xc32c('0x23')][_0xc32c('0x1d')][_0xc32c('0x2c')][_0xc32c('0x12')]);for(const _0x1234c5 of _0x1c37ef)for(const _0x3618c4 of _0x1c37ef)if(_0x1234c5!=_0x3618c4&&!this[_0xc32c('0x21')](_0x1234c5,_0x3618c4))return!0x1;return!0x0;}['_areMergableCells'](_0x4793dc,_0x1123be){const _0xf6007b=this[_0xc32c('0x23')]['plugins'][_0xc32c('0x42')](_0xc32c('0x34')),_0x1c39c8=this[_0xc32c('0x23')][_0xc32c('0x1d')][_0xc32c('0x29')](_0x4793dc),_0x235068=this['editor'][_0xc32c('0x1d')][_0xc32c('0x29')](_0x1123be),_0x2fbb79=new Set(),_0x1ee206=new Set();for(const _0x10ee8e of _0xf6007b[_0xc32c('0x20')]())if((_0xc32c('0xa')==_0x10ee8e[_0xc32c('0x13')]||_0xc32c('0x1b')==_0x10ee8e[_0xc32c('0x13')]||_0xc32c('0x1f')==_0x10ee8e[_0xc32c('0x3d')])&&_0x10ee8e[_0xc32c('0x3b')])for(const _0x363439 of _0x10ee8e[_0xc32c('0x36')]())_0x363439[_0xc32c('0x6')](_0x1c39c8,!0x0)&&_0x2fbb79[_0xc32c('0x27')](_0x10ee8e['type']+':'+_0x10ee8e['author']['id']),_0x363439[_0xc32c('0x6')](_0x235068,!0x0)&&_0x1ee206['add'](_0x10ee8e[_0xc32c('0x13')]+':'+_0x10ee8e[_0xc32c('0x17')]['id']);if(_0x2fbb79['size']!=_0x1ee206[_0xc32c('0x4a')])return!0x1;for(const _0x1b59e6 of _0x2fbb79)if(!_0x1ee206[_0xc32c('0x38')](_0x1b59e6))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,13 +1,13 @@
1
- /**
2
- * @module track-changes/integrations/tableofcontents
3
- */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- /**
6
- * Provides track changes plugin integration for the Table of contents feature.
7
- */
8
- export default class TrackChangesTableOfContents extends Plugin {
9
- /**
10
- * @inheritDoc
11
- */
12
- afterInit(): void;
13
- }
1
+ /**
2
+ * @module track-changes/integrations/tableofcontents
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core.js';
5
+ /**
6
+ * Provides track changes plugin integration for the Table of contents feature.
7
+ */
8
+ export default class TrackChangesTableOfContents extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b54=['insertTableOfContents','get','_descriptionFactory','commands','afterInit','plugins','TrackChangesEditing','locale','tableOfContents','ELEMENT_TABLE_OF_CONTENTS','editor'];(function(_0x2c9e01,_0x5b5467){const _0x10994e=function(_0xa47f68){while(--_0xa47f68){_0x2c9e01['push'](_0x2c9e01['shift']());}};_0x10994e(++_0x5b5467);}(_0x5b54,0x11f));const _0x1099=function(_0x2c9e01,_0x5b5467){_0x2c9e01=_0x2c9e01-0x0;let _0x10994e=_0x5b54[_0x2c9e01];return _0x10994e;};import{Plugin as _0x2175c3}from'ckeditor5/src/core';import{getTranslation as _0x48a672}from'../utils/common-translations';export default class bt extends _0x2175c3{[_0x1099('0x3')](){const _0x134337=this[_0x1099('0x9')];if(!_0x134337[_0x1099('0x2')]['get'](_0x1099('0xa')))return;_0x134337[_0x1099('0x4')][_0x1099('0x0')](_0x1099('0x5'))['enableCommand'](_0x1099('0xa'));const _0x5c6260=_0x134337[_0x1099('0x4')][_0x1099('0x0')]('TrackChangesEditing'),_0x2a7048=_0x134337[_0x1099('0x6')];_0x5c6260[_0x1099('0x1')]['registerElementLabel'](_0x1099('0x7'),_0x2ab605=>_0x48a672(_0x2a7048,_0x1099('0x8'),_0x2ab605));}}
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));}}