@ckeditor/ckeditor5-track-changes 36.0.1 → 37.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/build/track-changes.js +1 -1
  2. package/ckeditor5-metadata.json +10 -0
  3. package/package.json +20 -5
  4. package/src/augmentation.d.ts +36 -0
  5. package/src/augmentation.js +23 -0
  6. package/src/commands/acceptsuggestioncommand.d.ts +20 -0
  7. package/src/commands/acceptsuggestioncommand.js +1 -1
  8. package/src/commands/discardsuggestioncommand.d.ts +20 -0
  9. package/src/commands/discardsuggestioncommand.js +1 -1
  10. package/src/commands/executeonallsuggestionscommand.d.ts +20 -0
  11. package/src/commands/executeonallsuggestionscommand.js +1 -1
  12. package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -0
  13. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  14. package/src/commands/trackchangescommand.d.ts +22 -0
  15. package/src/commands/trackchangescommand.js +1 -1
  16. package/src/index.d.ts +12 -0
  17. package/src/index.js +1 -1
  18. package/src/integrations/alignment.d.ts +13 -0
  19. package/src/integrations/alignment.js +1 -1
  20. package/src/integrations/basicstyles.d.ts +13 -0
  21. package/src/integrations/basicstyles.js +1 -1
  22. package/src/integrations/blockquote.d.ts +13 -0
  23. package/src/integrations/blockquote.js +1 -1
  24. package/src/integrations/ckbox.d.ts +13 -0
  25. package/src/integrations/ckbox.js +1 -1
  26. package/src/integrations/codeblock.d.ts +13 -0
  27. package/src/integrations/codeblock.js +1 -1
  28. package/src/integrations/comments.d.ts +10 -0
  29. package/src/integrations/comments.js +1 -1
  30. package/src/integrations/deletecommand.d.ts +12 -0
  31. package/src/integrations/deletecommand.js +1 -1
  32. package/src/integrations/documentlist.d.ts +13 -0
  33. package/src/integrations/documentlist.js +1 -1
  34. package/src/integrations/documentlistproperties.d.ts +25 -0
  35. package/src/integrations/documentlistproperties.js +1 -1
  36. package/src/integrations/entercommand.d.ts +11 -0
  37. package/src/integrations/entercommand.js +1 -1
  38. package/src/integrations/findandreplace.d.ts +17 -0
  39. package/src/integrations/findandreplace.js +1 -1
  40. package/src/integrations/font.d.ts +13 -0
  41. package/src/integrations/font.js +1 -1
  42. package/src/integrations/heading.d.ts +13 -0
  43. package/src/integrations/heading.js +1 -1
  44. package/src/integrations/highlight.d.ts +13 -0
  45. package/src/integrations/highlight.js +1 -1
  46. package/src/integrations/horizontalline.d.ts +13 -0
  47. package/src/integrations/horizontalline.js +1 -1
  48. package/src/integrations/htmlembed.d.ts +13 -0
  49. package/src/integrations/htmlembed.js +1 -1
  50. package/src/integrations/image.d.ts +13 -0
  51. package/src/integrations/image.js +1 -1
  52. package/src/integrations/imagereplace.d.ts +19 -0
  53. package/src/integrations/imagereplace.js +1 -1
  54. package/src/integrations/importword.d.ts +14 -0
  55. package/src/integrations/importword.js +1 -1
  56. package/src/integrations/indent.d.ts +13 -0
  57. package/src/integrations/indent.js +1 -1
  58. package/src/integrations/inputcommand.d.ts +11 -0
  59. package/src/integrations/inputcommand.js +1 -1
  60. package/src/integrations/link.d.ts +13 -0
  61. package/src/integrations/link.js +1 -1
  62. package/src/integrations/list.d.ts +13 -0
  63. package/src/integrations/list.js +1 -1
  64. package/src/integrations/listproperties.d.ts +25 -0
  65. package/src/integrations/listproperties.js +1 -1
  66. package/src/integrations/mediaembed.d.ts +13 -0
  67. package/src/integrations/mediaembed.js +1 -1
  68. package/src/integrations/mention.d.ts +13 -0
  69. package/src/integrations/mention.js +1 -1
  70. package/src/integrations/pagebreak.d.ts +13 -0
  71. package/src/integrations/pagebreak.js +1 -1
  72. package/src/integrations/paragraph.d.ts +13 -0
  73. package/src/integrations/paragraph.js +1 -1
  74. package/src/integrations/removeformat.d.ts +13 -0
  75. package/src/integrations/removeformat.js +1 -1
  76. package/src/integrations/restrictededitingmode.d.ts +13 -0
  77. package/src/integrations/restrictededitingmode.js +1 -1
  78. package/src/integrations/shiftentercommand.d.ts +11 -0
  79. package/src/integrations/shiftentercommand.js +1 -1
  80. package/src/integrations/standardeditingmode.d.ts +13 -0
  81. package/src/integrations/standardeditingmode.js +1 -1
  82. package/src/integrations/style.d.ts +14 -0
  83. package/src/integrations/style.js +1 -1
  84. package/src/integrations/table.d.ts +38 -0
  85. package/src/integrations/table.js +1 -1
  86. package/src/integrations/tablecaption.d.ts +17 -0
  87. package/src/integrations/tablecaption.js +1 -1
  88. package/src/integrations/tableclipboard.d.ts +17 -0
  89. package/src/integrations/tableclipboard.js +1 -1
  90. package/src/integrations/tablecolumnresize.d.ts +22 -0
  91. package/src/integrations/tablecolumnresize.js +1 -1
  92. package/src/integrations/tableheadings.d.ts +17 -0
  93. package/src/integrations/tableheadings.js +1 -1
  94. package/src/integrations/tablemergesplit.d.ts +17 -0
  95. package/src/integrations/tablemergesplit.js +1 -1
  96. package/src/integrations/tableproperties.d.ts +23 -0
  97. package/src/integrations/tableproperties.js +1 -1
  98. package/src/integrations/title.d.ts +13 -0
  99. package/src/integrations/title.js +1 -1
  100. package/src/integrations/undo.d.ts +13 -0
  101. package/src/integrations/undo.js +1 -1
  102. package/src/integrations/utils.d.ts +17 -0
  103. package/src/integrations/utils.js +1 -1
  104. package/src/suggestion.d.ts +266 -0
  105. package/src/suggestion.js +1 -1
  106. package/src/suggestiondescriptionfactory.d.ts +151 -0
  107. package/src/suggestiondescriptionfactory.js +1 -1
  108. package/src/trackchanges.d.ts +222 -0
  109. package/src/trackchanges.js +1 -1
  110. package/src/trackchangesconfig.d.ts +53 -0
  111. package/src/trackchangesconfig.js +23 -0
  112. package/src/trackchangesdata.d.ts +38 -0
  113. package/src/trackchangesdata.js +1 -1
  114. package/src/trackchangesediting.d.ts +391 -0
  115. package/src/trackchangesediting.js +1 -1
  116. package/src/trackchangesui.d.ts +34 -0
  117. package/src/trackchangesui.js +1 -1
  118. package/src/ui/suggestioncontroller.d.ts +36 -0
  119. package/src/ui/suggestioncontroller.js +1 -1
  120. package/src/ui/view/basesuggestionthreadview.d.ts +166 -0
  121. package/src/ui/view/basesuggestionthreadview.js +1 -1
  122. package/src/ui/view/suggestionthreadview.d.ts +184 -0
  123. package/src/ui/view/suggestionthreadview.js +1 -1
  124. package/src/utils/common-translations.d.ts +5 -0
  125. package/src/utils/common-translations.js +1 -1
  126. package/src/utils/utils.d.ts +26 -0
  127. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x349d=['model','markMultiRangeBlockFormat','end','nodeAfter','fromEntries','getContainedElement','high','table','find','Users','getSelectionAffectedTableCells','_tablePostFixingSubtypes','tablePasteCell','getColumnIndexes','getSuggestion','suggestion','has','wrap','insertionRanges','add','subType','selection','setAttribute','previousSibling','element','name','forceDefaultExecution','tableCellBorderWidth','removeMarkers','tableCellPadding','rows','ck-suggestion-marker-insertion','change','for','getSuggestions','_isForcedDefaultExecutionBlock','findAncestor','suggestionLoaded','markMultiRangeInsertion','suggestion-td','createPositionBefore','trackChanges','createElement','markMultiRangeDeletion','markers','commands','markerAttributes','attributes','next','formatBlock','move','author','unwrap','keys','removeRows','rowInsertionIndexes','schema','_getCoordsForCells','tableCellBackgroundColor','differ','endRow','_splitMarkerName','activeMarkers','nextSibling','registerPostFixer','cell','push','previous','markerToHighlight','isInContent','column','removeMarker','afterInit','tableCellVerticalAlignment','endColumn','suggestion:formatBlock:tablePasteCell','root','rootName','remove','editor','TableClipboard','length','start','clipboardOutput','getTableIfOnlyTableInContent','getColumns','dataDowncast','from','startsWith','set','view','columns','createRange','markerName','updateMarker','registerDescriptionCallback','createRangeIn','createTableWalker','content','isEmpty','low','getRanges','getChildren','columnInsertionIndexes','tablePasteColumn','redo','$graveyard','batch','stop','insert','some','every','ck-suggestion-marker','tablePasteRow','document','_createdBatches','getRows','isEqual','insertRows','get','register','columnInsertionRanges','includes','removeColumns','accept','type','listenTo','last','editingDowncast','requires','filter','registerCustomCallback','showSuggestionHighlights','createRangeOn','getItems','cells','fill','_replaceTableSlotCell','suggestionUnloaded','join','tablePasteChainId','getAllAdjacentSuggestions','getSuggestionCallback','tablePaste','_suggestionFactory','tableCellSuggestion','deletion','map','oldRange','insertion','row','reduce','getRowIndexes','paragraph','elementToElement','plugins','setAttributes','options','discard','conversion','getRange','tableCellBorderStyle','newRange','getChild','getChanges','tableCell','getMarkers','containsRange','position','tableCellBorderColor','entries','getChangedMarkers','first'];(function(_0x49a9fe,_0x349dc3){const _0x43691e=function(_0x2d6952){while(--_0x2d6952){_0x49a9fe['push'](_0x49a9fe['shift']());}};_0x43691e(++_0x349dc3);}(_0x349d,0x199));const _0x4369=function(_0x49a9fe,_0x349dc3){_0x49a9fe=_0x49a9fe-0x0;let _0x43691e=_0x349d[_0x49a9fe];return _0x43691e;};import{getTranslation as _0x48a25c}from'../utils/common-translations';import{Plugin as _0x1f5731}from'ckeditor5/src/core';import _0x5615a7 from'./table';import{uid as _0x37e22f,priorities as _0x3f4cbc}from'ckeditor5/src/utils';const ae=[_0x4369('0x89'),_0x4369('0x6a'),_0x4369('0x62'),'tableCellHorizontalAlignment',_0x4369('0xa'),_0x4369('0xa8'),_0x4369('0x8b')],ce=Object[_0x4369('0x72')](ae[_0x4369('0x54')](_0x6a111e=>[_0x6a111e,null]));export default class wt extends _0x1f5731{static get[_0x4369('0x42')](){return[_0x5615a7];}[_0x4369('0x9')](){const _0x21ebb5=this[_0x4369('0x10')];if(!_0x21ebb5[_0x4369('0x5c')]['has'](_0x4369('0x11')))return;const _0x3f9d7d=_0x21ebb5[_0x4369('0x5c')]['get']('TrackChangesEditing'),_0xfc873=_0x21ebb5[_0x4369('0x5c')][_0x4369('0x38')]('TableUtils'),_0x3c5dd1=_0x21ebb5[_0x4369('0x5c')][_0x4369('0x38')](_0x5615a7),_0x3b7906=_0x21ebb5[_0x4369('0x5c')][_0x4369('0x38')]('TableClipboard');_0x3c5dd1[_0x4369('0x79')][_0x4369('0x3')](_0x4369('0x32'),_0x4369('0x29')),_0x21ebb5[_0x4369('0x6e')][_0x4369('0xa6')][_0x4369('0x39')](_0x4369('0x52'),{'allowIn':'tableCell','allowContentOf':_0x4369('0x66'),'isLimit':!0x0}),_0x21ebb5[_0x4369('0x60')][_0x4369('0x5b')]({'model':_0x4369('0x52'),'view':_0x4369('0x95')});let _0x304b69=null;_0x21ebb5[_0x4369('0x6e')]['on']('insertContent',(_0x2235f8,_0x3c6cb0)=>{const [_0x232b5d,_0x55b419]=_0x3c6cb0,_0x37925a=_0x3c6cb0[_0x3c6cb0[_0x4369('0x12')]-0x1];_0x37925a&&_0x37925a[_0x4369('0x88')]||_0x3f9d7d[_0x4369('0x91')]||this[_0x4369('0x10')][_0x4369('0x9b')][_0x4369('0x38')](_0x4369('0x97'))['value']&&function(_0x50c8a8,_0x18b6a8,_0x3485a4,_0x55c453,_0x4b6c3a){if(_0x18b6a8&&!_0x18b6a8['is']('documentSelection'))return!0x1;const _0x301ed8=_0x4b6c3a[_0x4369('0x15')](_0x50c8a8,_0x3485a4);if(!_0x301ed8||!ue(_0x301ed8,null,_0x55c453))return!0x1;const _0x5eaeeb=_0x55c453[_0x4369('0x78')](_0x3485a4[_0x4369('0x33')][_0x4369('0x83')]);if(!_0x5eaeeb['length'])return!0x1;const _0x486a58=_0x5eaeeb[0x0]['findAncestor']('table'),_0x330ae5=_0x55c453[_0x4369('0x59')](_0x5eaeeb),_0x2221fe=_0x55c453[_0x4369('0x7b')](_0x5eaeeb),_0x2888bd={'startRow':_0x330ae5[_0x4369('0x6d')],'endRow':_0x330ae5[_0x4369('0x40')],'startColumn':_0x2221fe[_0x4369('0x6d')],'endColumn':_0x2221fe[_0x4369('0x40')]};return 0x1==_0x5eaeeb['length']&&(_0x2888bd[_0x4369('0xaa')]+=_0x55c453[_0x4369('0x35')](_0x301ed8)-0x1,_0x2888bd[_0x4369('0xb')]+=_0x55c453[_0x4369('0x16')](_0x301ed8)-0x1),ue(_0x486a58,_0x2888bd,_0x55c453);}(_0x232b5d,_0x55b419,_0x21ebb5[_0x4369('0x6e')],_0xfc873,_0x3b7906)&&(_0x2235f8[_0x4369('0x2d')](),_0x304b69={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x21ebb5['model'][_0x4369('0x8e')](()=>{_0x21ebb5[_0x4369('0x6e')]['insertContent'](_0x3c6cb0[0x0],_0x3c6cb0[0x1],_0x3c6cb0[0x2],_0x3c6cb0[0x3],{'forceDefaultExecution':!0x0});const _0x3a1225=_0x37e22f(),{rowInsertionRanges:_0x11023a,columnInsertionRanges:_0x14de78,insertionRanges:_0x2c6772,deletionRanges:_0x1a514b,cells:_0x57a4f1}=_0x304b69;_0x11023a[_0x4369('0x12')]&&_0x3f9d7d['markMultiRangeInsertion'](_0x11023a,_0x4369('0x32'),{'tablePasteChainId':_0x3a1225}),_0x14de78[_0x4369('0x12')]&&_0x3f9d7d['markMultiRangeInsertion'](_0x14de78,_0x4369('0x29'),{'tablePasteChainId':_0x3a1225}),_0x2c6772[_0x4369('0x12')]&&_0x3f9d7d[_0x4369('0x94')](_0x2c6772,_0x4369('0x50'),{'tablePasteChainId':_0x3a1225,'skipNestingCheck':!0x0}),_0x1a514b[_0x4369('0x12')]&&_0x3f9d7d[_0x4369('0x99')](_0x1a514b,'tablePaste',{'tablePasteChainId':_0x3a1225,'skipNestingCheck':!0x0});const _0x5ee89d=_0x3f9d7d[_0x4369('0x6f')](_0x57a4f1[_0x4369('0x54')](({element:_0x55fe05})=>_0x55fe05),{'formatGroupId':_0x37e22f()},[],_0x4369('0x7a'),{'tablePasteChainId':_0x3a1225});if(_0x5ee89d){const _0x3180ba=_0x5ee89d[_0x4369('0x67')](),_0x2f2a68=[];for(const {element:_0x1f8b25,attributes:_0x1d9ec7}of _0x57a4f1){if(!_0x1d9ec7)continue;const _0x3f6099=_0x21ebb5[_0x4369('0x6e')]['createRangeOn'](_0x1f8b25),_0x408ecc=_0x3180ba['find'](_0x3979d0=>_0x3979d0[_0x4369('0x61')]()['isEqual'](_0x3f6099));_0x408ecc&&_0x2f2a68[_0x4369('0x3')]([_0x408ecc['name'],_0x1d9ec7]);}_0x2f2a68['length']&&_0x5ee89d[_0x4369('0x84')](_0x4369('0x9c'),Object[_0x4369('0x72')](_0x2f2a68));}_0x304b69=null;}));},{'priority':_0x3f4cbc[_0x4369('0x74')]+0xa}),_0x21ebb5[_0x4369('0x5c')][_0x4369('0x38')](_0x4369('0x11'))['on'](_0x4369('0x4a'),(_0x4d44d4,_0x1e81bb)=>{const [_0x1152ca,_0x19f52a,,_0x40d56b]=_0x1e81bb;if(!_0x304b69)return;_0x4d44d4[_0x4369('0x2d')]();const _0x4e66c0=_0x1152ca[_0x4369('0x2')],_0x3875f7=_0x19f52a,_0x4ec789=fe(_0x4e66c0),_0x268caf=fe(_0x3875f7);_0x4d44d4['return']=_0x4e66c0;let _0x1cd2f2=null,_0x1c61d5=null;if(_0x268caf||_0x4ec789){if(_0x4ec789&&!_0x268caf){_0x40d56b[_0x4369('0xf')](_0x4e66c0[_0x4369('0x64')](0x0));for(const _0x46ed9e of Array[_0x4369('0x18')](_0x3875f7[_0x4369('0x27')]()))_0x40d56b[_0x4369('0x2e')](_0x46ed9e,_0x4e66c0,_0x4369('0x70'));const _0x1fcc92=_0x304b69[_0x4369('0xa5')][_0x4369('0x3b')](_0x1152ca[_0x4369('0x57')]),_0x56f8d1=_0x304b69[_0x4369('0x28')]['includes'](_0x1152ca[_0x4369('0x7')]);_0x1fcc92||_0x56f8d1||(_0x1cd2f2=_0x40d56b[_0x4369('0x21')](_0x4e66c0));}else _0x268caf&&!_0x4ec789&&(_0x1c61d5=_0x40d56b[_0x4369('0x21')](_0x4e66c0));}else{const _0x2ed75d=_0x40d56b['createElement']('tableCellSuggestion'),_0x11f91e=_0x40d56b[_0x4369('0x98')](_0x4369('0x52'));_0x40d56b[_0x4369('0x7f')](_0x40d56b[_0x4369('0x21')](_0x4e66c0),_0x11f91e),_0x40d56b[_0x4369('0x2e')](_0x2ed75d,_0x4e66c0,0x0);for(const _0x1c2643 of Array[_0x4369('0x18')](_0x3875f7[_0x4369('0x27')]()))_0x40d56b[_0x4369('0x2e')](_0x1c2643,_0x2ed75d,'end');_0x1cd2f2=_0x40d56b[_0x4369('0x46')](_0x2ed75d),_0x1c61d5=_0x40d56b[_0x4369('0x46')](_0x11f91e);}const _0x1f603a=Array[_0x4369('0x18')](_0x3875f7['getAttributes']())[_0x4369('0x43')](([_0x512f1d])=>ae[_0x4369('0x3b')](_0x512f1d));_0x304b69[_0x4369('0x48')][_0x4369('0x3')]({'element':_0x4e66c0,'attributes':_0x1f603a[_0x4369('0x12')]?Object['fromEntries'](_0x1f603a):null}),_0x1cd2f2&&_0x304b69[_0x4369('0x80')][_0x4369('0x3')](_0x1cd2f2),_0x1c61d5&&_0x304b69['deletionRanges'][_0x4369('0x3')](_0x1c61d5);},{'priority':'high'}),_0xfc873['on']('insertColumns',(_0x225a45,_0x422b29)=>{const [_0x1b1534,_0x29bf46={}]=_0x422b29;if(!_0x304b69)return;const _0x251efd=_0x29bf46['at']||0x0,_0x4c9d63=_0x29bf46[_0x4369('0x1c')]||0x1;_0x304b69[_0x4369('0x28')]=new Array(_0x4c9d63)[_0x4369('0x49')](_0x251efd)[_0x4369('0x54')]((_0x5170bb,_0x35bc51)=>_0x5170bb+_0x35bc51);for(const {cell:_0x2f0acb}of _0xfc873[_0x4369('0x22')](_0x1b1534,{'startColumn':_0x251efd,'endColumn':_0x251efd+_0x4c9d63-0x1}))_0x304b69[_0x4369('0x3a')][_0x4369('0x3')](_0x21ebb5[_0x4369('0x6e')][_0x4369('0x46')](_0x2f0acb));},{'priority':_0x4369('0x25')}),_0xfc873['on'](_0x4369('0x37'),(_0x5566a4,_0x199c73)=>{const [_0x22fcf3,_0x8cff55={}]=_0x199c73;if(!_0x304b69)return;const _0x7afb59=_0x8cff55['at']||0x0,_0x3bda9b=_0x8cff55[_0x4369('0x8c')]||0x1;_0x304b69['rowInsertionIndexes']=new Array(_0x3bda9b)[_0x4369('0x49')](_0x7afb59)[_0x4369('0x54')]((_0xdc7576,_0x4fb91f)=>_0xdc7576+_0x4fb91f);for(const {cell:_0x30a617}of _0xfc873[_0x4369('0x22')](_0x22fcf3,{'startRow':_0x7afb59,'endRow':_0x7afb59+_0x3bda9b-0x1}))_0x304b69['rowInsertionRanges'][_0x4369('0x3')](_0x21ebb5[_0x4369('0x6e')]['createRangeOn'](_0x30a617));},{'priority':_0x4369('0x25')}),_0x3f9d7d['_descriptionFactory'][_0x4369('0x20')](_0x4475ff=>{if(_0x4475ff[_0x4369('0x82')]&&_0x4475ff[_0x4369('0x82')][_0x4369('0x19')]('tablePaste'))return _0x4475ff[_0x4369('0x4')]?{}:{'type':_0x4369('0x56'),'content':_0x48a25c(_0x21ebb5['locale'],'*Replace\x20table\x20cells*')};});const _0x1a7807=()=>{};for(const _0x589178 of[_0x4369('0x50'),_0x4369('0x29'),'tablePasteRow',_0x4369('0x7a')])_0x3f9d7d[_0x4369('0x51')][_0x4369('0x44')]('insertion',_0x589178,'join',_0x1a7807),_0x3f9d7d[_0x4369('0x51')][_0x4369('0x44')](_0x4369('0x53'),_0x589178,_0x4369('0x4c'),_0x1a7807);_0x3f9d7d['_suggestionFactory'][_0x4369('0x44')](_0x4369('0x9f'),_0x4369('0x7a'),_0x4369('0x5f'),_0x1a7807),_0x3f9d7d[_0x4369('0x51')][_0x4369('0x44')]('formatBlock',_0x4369('0x7a'),_0x4369('0x3d'),(_0xdfc2ce,_0x1e0b4a,_0x344b3a)=>{const _0x4136cc=_0xdfc2ce['map'](_0x4e5edc=>_0x4e5edc['getContainedElement']())[_0x4369('0x43')](_0x40df44=>_0x40df44),_0x550cb8=new Map(_0x4136cc[_0x4369('0x54')](_0x2900ae=>[_0x2900ae,null]));if(_0x304b69)for(const {element:_0x5179f3,attributes:_0x161b46}of _0x304b69[_0x4369('0x48')])_0x161b46&&_0x550cb8[_0x4369('0x1a')](_0x5179f3,_0x161b46);else{if(_0x344b3a&&_0x344b3a[_0x4369('0x9c')])for(const [_0x5de1a8,_0x58826e]of Object[_0x4369('0x6b')](_0x344b3a[_0x4369('0x9c')])){const _0x421bda=_0x21ebb5['model'][_0x4369('0x9a')][_0x4369('0x38')](_0x5de1a8),_0x5004da=_0x421bda?_0x421bda[_0x4369('0x61')]()[_0x4369('0x73')]():null;_0x5004da&&_0x550cb8[_0x4369('0x1a')](_0x5004da,_0x58826e);}}_0x21ebb5[_0x4369('0x6e')][_0x4369('0x8e')](_0x1de505=>{for(const [_0x3901c5,_0x18e01f]of _0x550cb8)_0x1de505[_0x4369('0x5d')]({...ce,..._0x18e01f},_0x3901c5);});});const _0x578dfb=(_0x875b53,_0x13c9bb)=>{_0x3f9d7d[_0x4369('0x51')]['registerCustomCallback'](_0x875b53,_0x4369('0x50'),_0x13c9bb,(_0x544d1c,_0x38b84a,_0x4efb37)=>{_0x21ebb5['model']['change'](_0x39983e=>{const _0x20b09e=[];for(const _0x2f695e of _0x544d1c){const _0x1502c2=_0x2f695e[_0x4369('0x13')][_0x4369('0x71')];_0x1502c2['is'](_0x4369('0x86'),_0x4369('0x52'))&&_0x20b09e['push'](_0x1502c2);}_0x3f9d7d[_0x4369('0x51')][_0x4369('0x4f')](_0x875b53,null,_0x13c9bb)(_0x544d1c,_0x38b84a,_0x4efb37);for(const _0x410eb7 of _0x20b09e)_0x4369('0x2b')!=_0x410eb7[_0x4369('0xd')][_0x4369('0xe')]&&_0x39983e['unwrap'](_0x410eb7);});});};_0x578dfb(_0x4369('0x56'),_0x4369('0x3d')),_0x578dfb(_0x4369('0x56'),_0x4369('0x5f')),_0x578dfb(_0x4369('0x53'),_0x4369('0x3d')),_0x578dfb(_0x4369('0x53'),_0x4369('0x5f')),_0x3f9d7d[_0x4369('0x51')][_0x4369('0x44')](_0x4369('0x56'),_0x4369('0x32'),_0x4369('0x5f'),_0x4b264a=>{const _0x77d7d6=_0x4b264a[_0x4369('0x54')](_0x511953=>_0x511953[_0x4369('0x73')]()),_0x31570b=_0x77d7d6[0x0][_0x4369('0x92')](_0x4369('0x75')),{minRow:_0x1399cb,maxRow:_0x575d77}=_0x3c5dd1[_0x4369('0xa7')](_0x77d7d6);_0xfc873[_0x4369('0xa4')](_0x31570b,{'at':_0x1399cb,'rows':_0x575d77-_0x1399cb+0x1});}),_0x3f9d7d[_0x4369('0x51')][_0x4369('0x44')](_0x4369('0x56'),_0x4369('0x29'),_0x4369('0x5f'),_0x519426=>{const _0x52b3a3=_0x519426['map'](_0x1552f3=>_0x1552f3['getContainedElement']()),_0x41fe17=_0x52b3a3[0x0][_0x4369('0x92')]('table'),{minColumn:_0x1fc77f,maxColumn:_0x3b3d01}=_0x3c5dd1[_0x4369('0xa7')](_0x52b3a3);_0xfc873[_0x4369('0x3c')](_0x41fe17,{'at':_0x1fc77f,'columns':_0x3b3d01-_0x1fc77f+0x1});});const _0x20db95=(_0x4630c5,_0x34d382)=>{if(!_0x34d382[_0x4369('0x82')]||!_0x34d382[_0x4369('0x82')][_0x4369('0x19')](_0x4369('0x50')))return;const _0x539f66=_0x34d382[_0x4369('0x9d')][_0x4369('0x4d')],_0x2197c8=_0x3f9d7d[_0x4369('0x90')]()[_0x4369('0x43')](_0x136bd5=>_0x136bd5[_0x4369('0x6')]&&_0x136bd5[_0x4369('0x9d')]&&_0x136bd5[_0x4369('0x9d')][_0x4369('0x4d')]==_0x539f66);_0x2197c8[_0x4369('0x12')]&&_0x34d382[_0x4369('0x4e')]()[_0x4369('0x12')]!=_0x2197c8[_0x4369('0x12')]&&_0x2197c8[_0x4369('0x58')]((_0x8e021e,_0x5dc352)=>(_0x8e021e[_0x4369('0x9e')]=_0x5dc352,_0x5dc352[_0x4369('0x4')]=_0x8e021e,_0x5dc352));};function _0x38427f(_0x23868c,{showActiveMarker:_0x4f5c11=!0x0}={}){const {id:_0x3625ee}=_0x3f9d7d['_splitMarkerName'](_0x23868c[_0x4369('0x1e')]),_0x2355c9=[_0x4369('0x31'),_0x4369('0x8d')],_0x3e942a=_0x3f9d7d[_0x4369('0xac')]['includes'](_0x23868c[_0x4369('0x1e')]);return _0x3e942a&&_0x2355c9[_0x4369('0x3')]('ck-suggestion-marker--active'),{'classes':_0x2355c9,'attributes':{'data-suggestion':_0x3625ee},'priority':_0x3e942a&&_0x4f5c11?0xbc2:0xbb8};}_0x3f9d7d['on'](_0x4369('0x93'),_0x20db95,{'priority':_0x4369('0x74')}),_0x3f9d7d['on'](_0x4369('0x4b'),_0x20db95,{'priority':'high'}),_0x21ebb5[_0x4369('0x6e')][_0x4369('0x33')][_0x4369('0x1')](()=>{let _0x56f0d2=!0x1;const _0x5c98e7=Array['from'](_0x21ebb5[_0x4369('0x6e')][_0x4369('0x33')][_0x4369('0xa9')][_0x4369('0x6c')]());for(const {name:_0x3057e1,data:_0x1a823d}of _0x5c98e7){const {group:_0x1d399c,type:_0x3faa1f,id:_0x279b9e}=_0x3f9d7d[_0x4369('0xab')](_0x3057e1);if(_0x4369('0x7d')!=_0x1d399c||_0x4369('0x53')!=_0x3faa1f||_0x1a823d['oldRange'])continue;if(!_0x3f9d7d['hasSuggestion'](_0x279b9e))continue;const _0x403566=_0x3f9d7d[_0x4369('0x7c')](_0x279b9e)[_0x4369('0x26')](),_0x323a0b=_0x21ebb5[_0x4369('0x5c')][_0x4369('0x38')](_0x4369('0x77'))['me'];for(const _0x3bb249 of _0x3f9d7d[_0x4369('0x90')]()){if(!_0x3bb249[_0x4369('0x6')]||_0x3bb249['author']!=_0x323a0b)continue;if(_0x4369('0x9f')!=_0x3bb249[_0x4369('0x3e')]||'tablePasteCell'!=_0x3bb249[_0x4369('0x82')])continue;if(_0x3bb249[_0x4369('0x26')]()[_0x4369('0x30')](_0x4a01a0=>_0x403566[_0x4369('0x2f')](_0x3af6f8=>_0x3af6f8[_0x4369('0x68')](_0x4a01a0,!0x0))))for(const _0x37953c of _0x3bb249['getAllAdjacentSuggestions']())_0x37953c[_0x4369('0x6')]&&(_0x37953c['discard'](),_0x56f0d2=!0x0);}}return _0x56f0d2;}),_0x21ebb5[_0x4369('0x6e')][_0x4369('0x33')][_0x4369('0x1')](_0x454f56=>{const _0x252427=_0x21ebb5[_0x4369('0x9b')][_0x4369('0x38')](_0x4369('0x2a'));if(!_0x252427||!_0x252427[_0x4369('0x34')][_0x4369('0x7e')](_0x454f56[_0x4369('0x2c')]))return!0x1;let _0x1c3023=!0x1;const _0x10a090=_0x21ebb5[_0x4369('0x5c')][_0x4369('0x38')](_0x4369('0x77'))['me'],_0x12175f=_0x21ebb5[_0x4369('0x6e')][_0x4369('0x33')]['differ'][_0x4369('0x65')](),_0x12c982=Array['from'](_0x21ebb5[_0x4369('0x6e')]['document'][_0x4369('0xa9')][_0x4369('0x6c')]())[_0x4369('0x43')](({name:_0x536a28,data:_0xf67852})=>{const {group:_0x2a58b3,subType:_0x4d6064,authorId:_0x511ee8}=_0x3f9d7d[_0x4369('0xab')](_0x536a28);return _0x4369('0x7d')==_0x2a58b3&&_0x4369('0x50')==_0x4d6064&&_0x511ee8==_0x10a090['id']&&!_0xf67852[_0x4369('0x55')];});for(const _0x42249d of _0x12175f){if(_0x4369('0x2e')!=_0x42249d[_0x4369('0x3e')]||_0x4369('0x52')!=_0x42249d[_0x4369('0x87')]||0x1!=_0x42249d[_0x4369('0x12')])continue;const _0x10e814=_0x454f56[_0x4369('0x1d')](_0x42249d['position'],_0x42249d[_0x4369('0x69')]['getShiftedBy'](0x1));if(!_0x12c982[_0x4369('0x76')](({data:_0x199647})=>_0x199647[_0x4369('0x63')][_0x4369('0x36')](_0x10e814)))for(const {name:_0xa9cde3,data:_0x1a8a89}of _0x12c982)if(_0x10e814[_0x4369('0x68')](_0x1a8a89['newRange'])){_0x454f56[_0x4369('0x1f')](_0xa9cde3,{'range':_0x10e814}),_0x1c3023=!0x0;break;}}return _0x1c3023;}),_0x21ebb5[_0x4369('0x6e')][_0x4369('0x33')]['registerPostFixer'](_0x24d253=>{let _0x38f9b9=!0x1;const _0x21f24a=_0x21ebb5['plugins']['get']('Users')['me'],_0x132520=_0x3f9d7d['getSuggestions']()['filter'](_0x2c3125=>_0x2c3125[_0x4369('0x6')]&&_0x2c3125[_0x4369('0xa1')]==_0x21f24a),_0x31d6e2=new Set(),_0x52c41f=new Set();for(const _0x38f5b1 of _0x132520)if(_0x4369('0x50')==_0x38f5b1[_0x4369('0x82')])for(const _0x2390f1 of _0x38f5b1[_0x4369('0x67')]()){const _0x3ca4f5=_0x2390f1[_0x4369('0x61')]()[_0x4369('0x73')]();if(_0x3ca4f5){if(_0x3ca4f5['is'](_0x4369('0x86'),_0x4369('0x52'))&&fe(_0x3ca4f5)){_0x38f5b1[_0x4369('0x8')](_0x2390f1[_0x4369('0x87')]),_0x31d6e2[_0x4369('0x81')](_0x3ca4f5),_0x38f9b9=!0x0;const _0x88e4a1=_0x3ca4f5[_0x4369('0x0')],_0x2e9fc9=_0x3ca4f5[_0x4369('0x85')],_0x251aa7=_0x88e4a1&&_0x88e4a1['is'](_0x4369('0x86'),_0x4369('0x52')),_0x2b5e52=_0x2e9fc9&&_0x2e9fc9['is'](_0x4369('0x86'),_0x4369('0x52'));_0x251aa7&&!_0x31d6e2['has'](_0x88e4a1)&&_0x52c41f[_0x4369('0x81')](_0x88e4a1),_0x2b5e52&&!_0x31d6e2[_0x4369('0x7e')](_0x2e9fc9)&&_0x52c41f['add'](_0x2e9fc9);}else _0x3ca4f5['is'](_0x4369('0x86'),_0x4369('0x5a'))&&_0x3ca4f5[_0x4369('0x24')]&&(_0x38f5b1[_0x4369('0x8')](_0x2390f1[_0x4369('0x87')]),_0x38f9b9=!0x0);}}else{if(_0x4369('0x7a')==_0x38f5b1[_0x4369('0x82')]){if(!_0x38f5b1[_0x4369('0x9d')]||!_0x38f5b1[_0x4369('0x9d')]['tablePasteChainId'])continue;const _0x26d04f=_0x38f5b1['attributes'][_0x4369('0x9c')];if(_0x26d04f&&Object[_0x4369('0xa3')](_0x26d04f)['length'])continue;const _0x4b7037=_0x38f5b1[_0x4369('0x9d')][_0x4369('0x4d')];let _0x5dd172=!0x0,_0xd48646=!0x0;for(const _0xdd4a97 of _0x132520)if(_0xdd4a97[_0x4369('0x82')]&&_0xdd4a97[_0x4369('0x82')][_0x4369('0x19')](_0x4369('0x50'))){if(!_0xdd4a97[_0x4369('0x9d')]['tablePasteChainId']){_0xd48646=!0x1;break;}if(_0xdd4a97['id']!=_0x38f5b1['id']&&_0xdd4a97['attributes']['tablePasteChainId']==_0x4b7037){_0x5dd172=!0x1;break;}}_0xd48646&&_0x5dd172&&(_0x38f5b1[_0x4369('0x8a')](),_0x38f9b9=!0x0);}}for(const _0x184b78 of _0x31d6e2)_0x24d253[_0x4369('0xf')](_0x184b78);for(const _0x51e4d2 of _0x52c41f)_0x24d253[_0x4369('0xa2')](_0x51e4d2);return _0x38f9b9;}),_0x21ebb5[_0x4369('0x60')]['for'](_0x4369('0x41'))[_0x4369('0x5')]({'model':_0x4369('0xc'),'view':_0x38427f,'converterPriority':_0x4369('0x74')}),_0x21ebb5[_0x4369('0x60')][_0x4369('0x8f')](_0x4369('0x17'))[_0x4369('0x5')]({'model':_0x4369('0xc'),'view':(_0x3b1601,_0x44a752)=>{if(_0x44a752[_0x4369('0x5e')][_0x4369('0x45')])return _0x38427f(_0x3b1601,{'showActiveMarker':!0x1});},'converterPriority':_0x4369('0x74')});const _0x5b72a2=_0x21ebb5['editing'][_0x4369('0x1b')];this[_0x4369('0x3f')](_0x5b72a2[_0x4369('0x33')],_0x4369('0x14'),(_0x1ad0d1,_0x1b980d)=>{const _0x11465d=[];for(const _0x1940ee of _0x5b72a2[_0x4369('0x21')](_0x1b980d[_0x4369('0x23')])[_0x4369('0x47')]())_0x1940ee['is'](_0x4369('0x86'),_0x4369('0x95'))&&_0x11465d[_0x4369('0x3')](_0x1940ee);_0x5b72a2[_0x4369('0x8e')](_0x248276=>{for(const _0x5e22cf of _0x11465d)_0x248276[_0x4369('0xa0')](_0x248276[_0x4369('0x21')](_0x5e22cf),_0x248276[_0x4369('0x96')](_0x5e22cf)),_0x248276[_0x4369('0xf')](_0x5e22cf);});});}}function fe(_0x541f9f){if(_0x541f9f['isEmpty'])return!0x0;const _0x65b79a=_0x541f9f['getChild'](0x0);return _0x65b79a['is'](_0x4369('0x86'),_0x4369('0x5a'))&&_0x65b79a[_0x4369('0x24')];}function ue(_0x38ee07,_0xa43691={},_0x11f85b){for(const {isAnchor:_0x5bc14a,cellHeight:_0xa96f48,cellWidth:_0x4e3d11}of _0x11f85b[_0x4369('0x22')](_0x38ee07,{'includeAllSlots':!0x0,..._0xa43691}))if(!_0x5bc14a||0x1!=_0xa96f48||0x1!=_0x4e3d11)return!0x1;return!0x0;}
23
+ const _0xf9bb=['ck-suggestion-marker','change','rowInsertionIndexes','getRowIndexes','fill','_tablePostFixingSubtypes','locale','paragraph','insertContent','listenTo','createElement','from','redo','createPositionBefore','getMarkers','_splitMarkerName','containsRange','tableCellHorizontalAlignment','markerToHighlight','position','getSuggestion','length','type','createRangeIn','setAttribute','getRange','createRange','subType','deletion','push','markerName','registerPostFixer','root','getAttributes','markMultiRangeInsertion','getChangedMarkers','tablePaste','tableCellSuggestion','TrackChangesEditing','deletionRanges','every','high','_createdBatches','element','insertion','editor','fromEntries','has','suggestionUnloaded','last','options','next','editingDowncast','move','markerAttributes','tableCell','tablePasteColumn','getItems','filter','name','columnInsertionIndexes','removeMarker','low','_getCoordsForCells','document','plugins','getRanges','oldRange','Users','schema','row','markMultiRangeBlockFormat','_replaceTableSlotCell','wrap','getChild','activeMarkers','registerDescriptionCallback','elementToElement','tablePasteCell','cells','getColumns','tableCellBorderWidth','content','getContainedElement','getChanges','rowInsertionRanges','removeColumns','return','keys','batch','remove','insertionRanges','cell','suggestion:formatBlock:tablePasteCell','end','nodeAfter','findAncestor','join','discard','TableUtils','attributes','_descriptionFactory','author','ck-suggestion-marker--active','getSuggestions','createTableWalker','editing','showSuggestionHighlights','tablePasteRow','nextSibling','isEqual','setAttributes','includes','model','dataDowncast','some','table','isInContent','stop','register','_suggestionFactory','newRange','reduce','formatBlock','forceDefaultExecution','requires','accept','TableClipboard','set','markMultiRangeDeletion','start','documentSelection','tableCellBorderColor','add','column','tablePasteChainId','getAllAdjacentSuggestions','selection','removeMarkers','conversion','first','getTableIfOnlyTableInContent','differ','getColumnIndexes','for','suggestionLoaded','map','find','columnInsertionRanges','getRows','value','commands','tableCellPadding','getChildren','insert','endColumn','registerCustomCallback','getShiftedBy','suggestion-td','isEmpty','previousSibling','previous','get','unwrap','startsWith','*Replace\x20table\x20cells*','createRangeOn'];(function(_0x6417ca,_0xf9bb54){const _0x4209ff=function(_0x38e83a){while(--_0x38e83a){_0x6417ca['push'](_0x6417ca['shift']());}};_0x4209ff(++_0xf9bb54);}(_0xf9bb,0x7e));const _0x4209=function(_0x6417ca,_0xf9bb54){_0x6417ca=_0x6417ca-0x0;let _0x4209ff=_0xf9bb[_0x6417ca];return _0x4209ff;};import{getTranslation as _0x45a8f2}from'../utils/common-translations';import{Plugin as _0x36df4b}from'ckeditor5/src/core';import{uid as _0x316d98,priorities as _0x499473}from'ckeditor5/src/utils';import _0x2884c5 from'./table';const le=[_0x4209('0x7a'),_0x4209('0x6'),'tableCellBorderStyle',_0x4209('0x3a'),'tableCellVerticalAlignment','tableCellBackgroundColor',_0x4209('0x1a')],ae=Object[_0x4209('0x57')](le['map'](_0x366f35=>[_0x366f35,null]));export default class pt extends _0x36df4b{static get[_0x4209('0xa6')](){return[_0x2884c5];}['afterInit'](){const _0x5f0254=this[_0x4209('0x56')];if(!_0x5f0254['plugins']['has']('TableClipboard'))return;const _0x4338f5=_0x5f0254[_0x4209('0x6a')][_0x4209('0x24')](_0x4209('0x4f')),_0x38bdd0=_0x5f0254[_0x4209('0x6a')]['get'](_0x4209('0x8c')),_0x2b8a38=_0x5f0254['plugins'][_0x4209('0x24')](_0x2884c5),_0x66fc0e=_0x5f0254[_0x4209('0x6a')][_0x4209('0x24')](_0x4209('0x1'));_0x2b8a38[_0x4209('0x2e')]['push'](_0x4209('0x95'),_0x4209('0x61')),_0x5f0254[_0x4209('0x9a')][_0x4209('0x6e')][_0x4209('0xa0')](_0x4209('0x4e'),{'allowIn':_0x4209('0x60'),'allowContentOf':_0x4209('0x60'),'isLimit':!0x0}),_0x5f0254[_0x4209('0xd')][_0x4209('0x76')]({'model':_0x4209('0x4e'),'view':_0x4209('0x20')});let _0x2f02af=null;_0x5f0254[_0x4209('0x9a')]['on']('insertContent',(_0x40b193,_0x2d7458)=>{const [_0x2eb5a4,_0x76022]=_0x2d7458,_0x527e18=_0x2d7458[_0x2d7458['length']-0x1];_0x527e18&&_0x527e18[_0x4209('0xa5')]||_0x4338f5['_isForcedDefaultExecutionBlock']||this[_0x4209('0x56')][_0x4209('0x19')][_0x4209('0x24')]('trackChanges')[_0x4209('0x18')]&&function(_0x1bbec8,_0xd60f6c,_0x36f244,_0x415195,_0x5a7c87){if(_0xd60f6c&&!_0xd60f6c['is'](_0x4209('0x5')))return!0x1;const _0x2396a5=_0x5a7c87[_0x4209('0xf')](_0x1bbec8,_0x36f244);if(!_0x2396a5||!fe(_0x2396a5,void 0x0,_0x415195))return!0x1;const _0x1b3374=_0x415195['getSelectionAffectedTableCells'](_0x36f244[_0x4209('0x69')][_0x4209('0xb')]);if(!_0x1b3374['length'])return!0x1;const _0x376798=_0x1b3374[0x0][_0x4209('0x89')](_0x4209('0x9d')),_0x13a949=_0x415195[_0x4209('0x2c')](_0x1b3374),_0x392840=_0x415195[_0x4209('0x11')](_0x1b3374),_0x4f80ee={'startRow':_0x13a949[_0x4209('0xe')],'endRow':_0x13a949[_0x4209('0x5a')],'startColumn':_0x392840['first'],'endColumn':_0x392840[_0x4209('0x5a')]};return 0x1==_0x1b3374[_0x4209('0x3e')]&&(_0x4f80ee['endRow']+=_0x415195[_0x4209('0x17')](_0x2396a5)-0x1,_0x4f80ee[_0x4209('0x1d')]+=_0x415195[_0x4209('0x79')](_0x2396a5)-0x1),fe(_0x376798,_0x4f80ee,_0x415195);}(_0x2eb5a4,_0x76022,_0x5f0254[_0x4209('0x9a')],_0x38bdd0,_0x66fc0e)&&(_0x40b193[_0x4209('0x9f')](),_0x2f02af={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5f0254[_0x4209('0x9a')][_0x4209('0x2a')](()=>{_0x5f0254[_0x4209('0x9a')][_0x4209('0x31')](_0x2d7458[0x0],_0x2d7458[0x1],_0x2d7458[0x2],{'forceDefaultExecution':!0x0});const _0x24c754=_0x316d98(),{rowInsertionRanges:_0x724ade,columnInsertionRanges:_0x18e46c,insertionRanges:_0x1d9865,deletionRanges:_0x28999d,cells:_0x10c032}=_0x2f02af;_0x724ade[_0x4209('0x3e')]&&_0x4338f5['markMultiRangeInsertion'](_0x724ade,_0x4209('0x95'),{'tablePasteChainId':_0x24c754}),_0x18e46c[_0x4209('0x3e')]&&_0x4338f5[_0x4209('0x4b')](_0x18e46c,_0x4209('0x61'),{'tablePasteChainId':_0x24c754}),_0x1d9865[_0x4209('0x3e')]&&_0x4338f5[_0x4209('0x4b')](_0x1d9865,_0x4209('0x4d'),{'tablePasteChainId':_0x24c754,'skipNestingCheck':!0x0}),_0x28999d[_0x4209('0x3e')]&&_0x4338f5[_0x4209('0x3')](_0x28999d,_0x4209('0x4d'),{'tablePasteChainId':_0x24c754,'skipNestingCheck':!0x0});const _0xc10ca8=_0x4338f5[_0x4209('0x70')](_0x10c032[_0x4209('0x14')](({element:_0x137f22})=>_0x137f22),{'formatGroupId':_0x316d98()},[],_0x4209('0x77'),{'tablePasteChainId':_0x24c754});if(_0xc10ca8){const _0x5eb185=_0xc10ca8[_0x4209('0x37')](),_0x366a96=[];for(const {element:_0x4b6b01,attributes:_0x142be2}of _0x10c032){if(!_0x142be2)continue;const _0x786008=_0x5f0254['model'][_0x4209('0x28')](_0x4b6b01),_0x3d88ce=_0x5eb185[_0x4209('0x15')](_0x5f5707=>_0x5f5707['getRange']()[_0x4209('0x97')](_0x786008));_0x3d88ce&&_0x366a96[_0x4209('0x46')]([_0x3d88ce[_0x4209('0x64')],_0x142be2]);}_0x366a96[_0x4209('0x3e')]&&_0xc10ca8[_0x4209('0x41')](_0x4209('0x5f'),Object[_0x4209('0x57')](_0x366a96));}_0x2f02af=null;}));},{'priority':_0x499473[_0x4209('0x52')]+0xa}),_0x5f0254[_0x4209('0x6a')]['get'](_0x4209('0x1'))['on'](_0x4209('0x71'),(_0x4ef8fd,_0x450ceb)=>{const [_0x4c264e,_0x35511a,,_0x38e7b6]=_0x450ceb;if(!_0x2f02af)return;_0x4ef8fd[_0x4209('0x9f')]();const _0x36fe33=_0x4c264e[_0x4209('0x85')],_0x10f05b=_0x35511a,_0x15e893=ce(_0x36fe33),_0x276942=ce(_0x10f05b);_0x4ef8fd[_0x4209('0x80')]=_0x36fe33;let _0x7f9782=null,_0x2911fc=null;if(_0x276942||_0x15e893){if(_0x15e893&&!_0x276942){_0x38e7b6[_0x4209('0x83')](_0x36fe33[_0x4209('0x73')](0x0));for(const _0x3d1a63 of Array[_0x4209('0x34')](_0x10f05b[_0x4209('0x1b')]()))_0x38e7b6[_0x4209('0x1c')](_0x3d1a63,_0x36fe33,_0x4209('0x87'));const _0x771867=_0x2f02af[_0x4209('0x2b')][_0x4209('0x99')](_0x4c264e[_0x4209('0x6f')]),_0x461d84=_0x2f02af[_0x4209('0x65')][_0x4209('0x99')](_0x4c264e[_0x4209('0x8')]);_0x771867||_0x461d84||(_0x7f9782=_0x38e7b6[_0x4209('0x40')](_0x36fe33));}else _0x276942&&!_0x15e893&&(_0x2911fc=_0x38e7b6['createRangeIn'](_0x36fe33));}else{const _0x24e6f1=_0x38e7b6[_0x4209('0x33')](_0x4209('0x4e')),_0x411dda=_0x38e7b6[_0x4209('0x33')](_0x4209('0x4e'));_0x38e7b6[_0x4209('0x72')](_0x38e7b6[_0x4209('0x40')](_0x36fe33),_0x411dda),_0x38e7b6['insert'](_0x24e6f1,_0x36fe33,0x0);for(const _0xaadd85 of Array[_0x4209('0x34')](_0x10f05b[_0x4209('0x1b')]()))_0x38e7b6[_0x4209('0x1c')](_0xaadd85,_0x24e6f1,_0x4209('0x87'));_0x7f9782=_0x38e7b6['createRangeOn'](_0x24e6f1),_0x2911fc=_0x38e7b6[_0x4209('0x28')](_0x411dda);}const _0x9f1535=Array['from'](_0x10f05b[_0x4209('0x4a')]())[_0x4209('0x63')](([_0x58c888])=>le['includes'](_0x58c888));_0x2f02af[_0x4209('0x78')][_0x4209('0x46')]({'element':_0x36fe33,'attributes':_0x9f1535[_0x4209('0x3e')]?Object[_0x4209('0x57')](_0x9f1535):null}),_0x7f9782&&_0x2f02af[_0x4209('0x84')]['push'](_0x7f9782),_0x2911fc&&_0x2f02af[_0x4209('0x50')]['push'](_0x2911fc);},{'priority':_0x4209('0x52')}),_0x38bdd0['on']('insertColumns',(_0x531416,_0x4b88b9)=>{const [_0x3d6aec,_0x33fd0e={}]=_0x4b88b9;if(!_0x2f02af)return;const _0x2690c4=_0x33fd0e['at']||0x0,_0x23822a=_0x33fd0e['columns']||0x1;_0x2f02af[_0x4209('0x65')]=new Array(_0x23822a)['fill'](_0x2690c4)[_0x4209('0x14')]((_0x350aa1,_0x4143fc)=>_0x350aa1+_0x4143fc);for(const {cell:_0x5d3c7e}of _0x38bdd0[_0x4209('0x92')](_0x3d6aec,{'startColumn':_0x2690c4,'endColumn':_0x2690c4+_0x23822a-0x1}))_0x2f02af[_0x4209('0x16')][_0x4209('0x46')](_0x5f0254[_0x4209('0x9a')]['createRangeOn'](_0x5d3c7e));},{'priority':_0x4209('0x67')}),_0x38bdd0['on']('insertRows',(_0x5cca8f,_0x53a7a6)=>{const [_0x3c037,_0x3b4689={}]=_0x53a7a6;if(!_0x2f02af)return;const _0x4ba825=_0x3b4689['at']||0x0,_0x1a675d=_0x3b4689['rows']||0x1;_0x2f02af[_0x4209('0x2b')]=new Array(_0x1a675d)[_0x4209('0x2d')](_0x4ba825)[_0x4209('0x14')]((_0x4d1e1a,_0x557b27)=>_0x4d1e1a+_0x557b27);for(const {cell:_0x26e5a4}of _0x38bdd0[_0x4209('0x92')](_0x3c037,{'startRow':_0x4ba825,'endRow':_0x4ba825+_0x1a675d-0x1}))_0x2f02af[_0x4209('0x7e')]['push'](_0x5f0254[_0x4209('0x9a')][_0x4209('0x28')](_0x26e5a4));},{'priority':_0x4209('0x67')}),_0x4338f5[_0x4209('0x8e')][_0x4209('0x75')](_0xdd880c=>{if(_0xdd880c[_0x4209('0x44')]&&_0xdd880c[_0x4209('0x44')][_0x4209('0x26')]('tablePaste'))return _0xdd880c[_0x4209('0x23')]?{}:{'type':'insertion','content':_0x45a8f2(_0x5f0254[_0x4209('0x2f')],_0x4209('0x27'))};});const _0x312bba=()=>{};for(const _0x296e10 of[_0x4209('0x4d'),_0x4209('0x61'),_0x4209('0x95'),_0x4209('0x77')])_0x4338f5[_0x4209('0xa1')]['registerCustomCallback'](_0x4209('0x55'),_0x296e10,_0x4209('0x8a'),_0x312bba),_0x4338f5['_suggestionFactory'][_0x4209('0x1e')](_0x4209('0x45'),_0x296e10,'join',_0x312bba);_0x4338f5[_0x4209('0xa1')]['registerCustomCallback'](_0x4209('0xa4'),'tablePasteCell',_0x4209('0x8b'),_0x312bba),_0x4338f5[_0x4209('0xa1')][_0x4209('0x1e')](_0x4209('0xa4'),_0x4209('0x77'),_0x4209('0x0'),(_0x27a96b,_0x4a6924,_0x254f97)=>{const _0x2c702f=_0x27a96b[_0x4209('0x14')](_0x5dd025=>_0x5dd025[_0x4209('0x7c')]())[_0x4209('0x63')](_0x28fd86=>_0x28fd86),_0x23f948=new Map(_0x2c702f[_0x4209('0x14')](_0x5c6690=>[_0x5c6690,null]));if(_0x2f02af)for(const {element:_0x104f83,attributes:_0x3cb690}of _0x2f02af[_0x4209('0x78')])_0x3cb690&&_0x23f948[_0x4209('0x2')](_0x104f83,_0x3cb690);else{if(_0x254f97&&_0x254f97[_0x4209('0x5f')])for(const [_0x5550cf,_0x20aa17]of Object['entries'](_0x254f97[_0x4209('0x5f')])){const _0x461b78=_0x5f0254[_0x4209('0x9a')]['markers'][_0x4209('0x24')](_0x5550cf),_0x3002ef=_0x461b78?_0x461b78[_0x4209('0x42')]()[_0x4209('0x7c')]():null;_0x3002ef&&_0x23f948['set'](_0x3002ef,_0x20aa17);}}_0x5f0254[_0x4209('0x9a')][_0x4209('0x2a')](_0x446149=>{for(const [_0xa55a61,_0x44c9db]of _0x23f948)_0x446149[_0x4209('0x98')]({...ae,..._0x44c9db},_0xa55a61);});});const _0x5deecf=(_0x1c1c64,_0x1b6693)=>{_0x4338f5[_0x4209('0xa1')][_0x4209('0x1e')](_0x1c1c64,'tablePaste',_0x1b6693,(_0x21dd21,_0x24370a,_0x153ce4)=>{_0x5f0254[_0x4209('0x9a')][_0x4209('0x2a')](_0x46c027=>{const _0x6c2118=[];for(const _0x19dfc1 of _0x21dd21){const _0x275b31=_0x19dfc1[_0x4209('0x4')][_0x4209('0x88')];_0x275b31['is'](_0x4209('0x54'),'tableCellSuggestion')&&_0x6c2118[_0x4209('0x46')](_0x275b31);}_0x4338f5[_0x4209('0xa1')]['getSuggestionCallback'](_0x1c1c64,null,_0x1b6693)(_0x21dd21,_0x24370a,_0x153ce4);for(const _0x771add of _0x6c2118)'$graveyard'!=_0x771add[_0x4209('0x49')]['rootName']&&_0x46c027['unwrap'](_0x771add);});});};_0x5deecf(_0x4209('0x55'),'accept'),_0x5deecf(_0x4209('0x55'),_0x4209('0x8b')),_0x5deecf('deletion',_0x4209('0x0')),_0x5deecf(_0x4209('0x45'),_0x4209('0x8b')),_0x4338f5[_0x4209('0xa1')]['registerCustomCallback'](_0x4209('0x55'),_0x4209('0x95'),_0x4209('0x8b'),_0x593e03=>{const _0x174165=_0x593e03[_0x4209('0x14')](_0x4ed84d=>_0x4ed84d[_0x4209('0x7c')]()),_0x360758=_0x174165[0x0][_0x4209('0x89')](_0x4209('0x9d')),{minRow:_0x137810,maxRow:_0x5c58d8}=_0x2b8a38['_getCoordsForCells'](_0x174165);_0x38bdd0['removeRows'](_0x360758,{'at':_0x137810,'rows':_0x5c58d8-_0x137810+0x1});}),_0x4338f5[_0x4209('0xa1')][_0x4209('0x1e')](_0x4209('0x55'),_0x4209('0x61'),'discard',_0xa4a0b6=>{const _0x3a7315=_0xa4a0b6[_0x4209('0x14')](_0x3b8378=>_0x3b8378[_0x4209('0x7c')]()),_0x18bff0=_0x3a7315[0x0]['findAncestor'](_0x4209('0x9d')),{minColumn:_0x4514cb,maxColumn:_0x247379}=_0x2b8a38[_0x4209('0x68')](_0x3a7315);_0x38bdd0[_0x4209('0x7f')](_0x18bff0,{'at':_0x4514cb,'columns':_0x247379-_0x4514cb+0x1});});const _0x3a5848=(_0x30d3e4,_0x49bc46)=>{if(!_0x49bc46[_0x4209('0x44')]||!_0x49bc46[_0x4209('0x44')][_0x4209('0x26')](_0x4209('0x4d')))return;const _0x33196d=_0x49bc46['attributes']['tablePasteChainId'],_0x3d613e=_0x4338f5[_0x4209('0x91')]()[_0x4209('0x63')](_0x1cd059=>_0x1cd059['isInContent']&&_0x1cd059[_0x4209('0x8d')]&&_0x1cd059['attributes'][_0x4209('0x9')]==_0x33196d);_0x3d613e['length']&&_0x49bc46[_0x4209('0xa')]()['length']!=_0x3d613e['length']&&_0x3d613e[_0x4209('0xa3')]((_0x3eb345,_0x3fb8a0)=>(_0x3eb345[_0x4209('0x5c')]=_0x3fb8a0,_0x3fb8a0[_0x4209('0x23')]=_0x3eb345,_0x3fb8a0));};function _0x5a531a(_0x260ef6,_0x5b93c2=!0x0){const {id:_0x3d5ff8}=_0x4338f5[_0x4209('0x38')](_0x260ef6[_0x4209('0x47')]),_0x3cea68=[_0x4209('0x29'),'ck-suggestion-marker-insertion'],_0xfa4853=_0x4338f5[_0x4209('0x74')][_0x4209('0x99')](_0x260ef6[_0x4209('0x47')]);return _0xfa4853&&_0x3cea68[_0x4209('0x46')](_0x4209('0x90')),{'classes':_0x3cea68,'attributes':{'data-suggestion':_0x3d5ff8},'priority':_0xfa4853&&_0x5b93c2?0xbc2:0xbb8};}_0x4338f5['on'](_0x4209('0x13'),_0x3a5848,{'priority':_0x4209('0x52')}),_0x4338f5['on'](_0x4209('0x59'),_0x3a5848,{'priority':_0x4209('0x52')}),_0x5f0254[_0x4209('0x9a')][_0x4209('0x69')][_0x4209('0x48')](()=>{let _0x1f039f=!0x1;const _0x30de59=Array[_0x4209('0x34')](_0x5f0254['model'][_0x4209('0x69')][_0x4209('0x10')][_0x4209('0x4c')]());for(const {name:_0x2f20f0,data:_0x4e5198}of _0x30de59){const {group:_0x12c3b2,type:_0x580828,id:_0x551833}=_0x4338f5[_0x4209('0x38')](_0x2f20f0);if('suggestion'!=_0x12c3b2||_0x4209('0x45')!=_0x580828||_0x4e5198['oldRange'])continue;if(!_0x4338f5['hasSuggestion'](_0x551833))continue;const _0x3a84c9=_0x4338f5[_0x4209('0x3d')](_0x551833)[_0x4209('0x6b')](),_0x57a46e=_0x5f0254[_0x4209('0x6a')][_0x4209('0x24')]('Users')['me'];for(const _0x3af761 of _0x4338f5[_0x4209('0x91')]()){if(!_0x3af761[_0x4209('0x9e')]||_0x3af761[_0x4209('0x8f')]!=_0x57a46e)continue;if(_0x4209('0xa4')!=_0x3af761[_0x4209('0x3f')]||_0x4209('0x77')!=_0x3af761[_0x4209('0x44')])continue;if(_0x3af761[_0x4209('0x6b')]()[_0x4209('0x51')](_0x350997=>_0x3a84c9[_0x4209('0x9c')](_0x14b68b=>_0x14b68b[_0x4209('0x39')](_0x350997,!0x0))))for(const _0x2bfde0 of _0x3af761['getAllAdjacentSuggestions']())_0x2bfde0['isInContent']&&(_0x2bfde0[_0x4209('0x8b')](),_0x1f039f=!0x0);}}return _0x1f039f;}),_0x5f0254[_0x4209('0x9a')][_0x4209('0x69')][_0x4209('0x48')](_0x197ad2=>{const _0x1a52b7=_0x5f0254['commands'][_0x4209('0x24')](_0x4209('0x35'));if(!_0x1a52b7||!_0x1a52b7[_0x4209('0x53')][_0x4209('0x58')](_0x197ad2[_0x4209('0x82')]))return!0x1;let _0x438955=!0x1;const _0x15f30c=_0x5f0254[_0x4209('0x6a')][_0x4209('0x24')](_0x4209('0x6d'))['me'],_0x36f011=_0x5f0254['model'][_0x4209('0x69')][_0x4209('0x10')][_0x4209('0x7d')](),_0x22c9c6=Array[_0x4209('0x34')](_0x5f0254['model'][_0x4209('0x69')][_0x4209('0x10')]['getChangedMarkers']())[_0x4209('0x63')](({name:_0x497c98,data:_0x480449})=>{const {group:_0xd611a5,subType:_0x2ad14e,authorId:_0x29b0ce}=_0x4338f5[_0x4209('0x38')](_0x497c98);return'suggestion'==_0xd611a5&&'tablePaste'==_0x2ad14e&&_0x29b0ce==_0x15f30c['id']&&!_0x480449[_0x4209('0x6c')];});for(const _0x23b31e of _0x36f011){if(_0x4209('0x1c')!=_0x23b31e[_0x4209('0x3f')]||'tableCellSuggestion'!=_0x23b31e[_0x4209('0x64')]||0x1!=_0x23b31e['length'])continue;const _0x4037ed=_0x197ad2[_0x4209('0x43')](_0x23b31e[_0x4209('0x3c')],_0x23b31e['position'][_0x4209('0x1f')](0x1));if(!_0x22c9c6[_0x4209('0x15')](({data:_0x3ad403})=>_0x3ad403[_0x4209('0xa2')]['isEqual'](_0x4037ed)))for(const {name:_0x2a0fc4,data:_0x185ad0}of _0x22c9c6)if(_0x4037ed[_0x4209('0x39')](_0x185ad0[_0x4209('0xa2')])){_0x197ad2['updateMarker'](_0x2a0fc4,{'range':_0x4037ed}),_0x438955=!0x0;break;}}return _0x438955;}),_0x5f0254[_0x4209('0x9a')][_0x4209('0x69')][_0x4209('0x48')](_0x623af6=>{let _0x581237=!0x1;const _0x432c89=_0x5f0254[_0x4209('0x6a')][_0x4209('0x24')](_0x4209('0x6d'))['me'],_0x1152fe=_0x4338f5[_0x4209('0x91')]()['filter'](_0x31cf03=>_0x31cf03[_0x4209('0x9e')]&&_0x31cf03['author']==_0x432c89),_0x4708cd=new Set(),_0x250d8f=new Set();for(const _0x65e646 of _0x1152fe)if(_0x4209('0x4d')==_0x65e646['subType'])for(const _0x124c54 of _0x65e646[_0x4209('0x37')]()){const _0x142d22=_0x124c54[_0x4209('0x42')]()[_0x4209('0x7c')]();if(_0x142d22){if(_0x142d22['is'](_0x4209('0x54'),_0x4209('0x4e'))&&ce(_0x142d22)){_0x65e646['removeMarker'](_0x124c54[_0x4209('0x64')]),_0x4708cd[_0x4209('0x7')](_0x142d22),_0x581237=!0x0;const _0x1a380d=_0x142d22[_0x4209('0x96')],_0x54df7e=_0x142d22[_0x4209('0x22')],_0x56f5e0=_0x1a380d&&_0x1a380d['is'](_0x4209('0x54'),_0x4209('0x4e')),_0x1140e0=_0x54df7e&&_0x54df7e['is'](_0x4209('0x54'),'tableCellSuggestion');_0x56f5e0&&!_0x4708cd['has'](_0x1a380d)&&_0x250d8f[_0x4209('0x7')](_0x1a380d),_0x1140e0&&!_0x4708cd[_0x4209('0x58')](_0x54df7e)&&_0x250d8f['add'](_0x54df7e);}else _0x142d22['is']('element',_0x4209('0x30'))&&_0x142d22['isEmpty']&&(_0x65e646[_0x4209('0x66')](_0x124c54[_0x4209('0x64')]),_0x581237=!0x0);}}else{if(_0x4209('0x77')==_0x65e646[_0x4209('0x44')]){if(!_0x65e646[_0x4209('0x8d')]||!_0x65e646['attributes'][_0x4209('0x9')])continue;const _0x139e3a=_0x65e646['attributes'][_0x4209('0x5f')];if(_0x139e3a&&Object[_0x4209('0x81')](_0x139e3a)[_0x4209('0x3e')])continue;const _0x409fbc=_0x65e646[_0x4209('0x8d')]['tablePasteChainId'];let _0x3a845b=!0x0,_0x4d9f73=!0x0;for(const _0x3a9ada of _0x1152fe)if(_0x3a9ada[_0x4209('0x44')]&&_0x3a9ada[_0x4209('0x44')][_0x4209('0x26')](_0x4209('0x4d'))){if(!_0x3a9ada[_0x4209('0x8d')]['tablePasteChainId']){_0x4d9f73=!0x1;break;}if(_0x3a9ada['id']!=_0x65e646['id']&&_0x3a9ada['attributes'][_0x4209('0x9')]==_0x409fbc){_0x3a845b=!0x1;break;}}_0x4d9f73&&_0x3a845b&&(_0x65e646[_0x4209('0xc')](),_0x581237=!0x0);}}for(const _0x54308d of _0x4708cd)_0x623af6['remove'](_0x54308d);for(const _0x133852 of _0x250d8f)_0x623af6[_0x4209('0x25')](_0x133852);return _0x581237;}),_0x5f0254[_0x4209('0xd')][_0x4209('0x12')](_0x4209('0x5d'))[_0x4209('0x3b')]({'model':_0x4209('0x86'),'view':(_0x21705d,_0x3382de)=>_0x5a531a(_0x21705d),'converterPriority':_0x4209('0x52')}),_0x5f0254[_0x4209('0xd')][_0x4209('0x12')](_0x4209('0x9b'))[_0x4209('0x3b')]({'model':_0x4209('0x86'),'view':(_0x5b47be,_0x51f5f8)=>_0x51f5f8[_0x4209('0x5b')][_0x4209('0x94')]?_0x5a531a(_0x5b47be,!0x1):null,'converterPriority':'high'});const _0x1de52b=_0x5f0254[_0x4209('0x93')]['view'];this[_0x4209('0x32')](_0x1de52b['document'],'clipboardOutput',(_0x14ead5,_0x11c718)=>{const _0x4fdc1f=[];for(const _0x1001d7 of _0x1de52b['createRangeIn'](_0x11c718[_0x4209('0x7b')])[_0x4209('0x62')]())_0x1001d7['is'](_0x4209('0x54'),_0x4209('0x20'))&&_0x4fdc1f['push'](_0x1001d7);_0x1de52b['change'](_0x31198d=>{for(const _0x5e122d of _0x4fdc1f)_0x31198d[_0x4209('0x5e')](_0x31198d[_0x4209('0x40')](_0x5e122d),_0x31198d[_0x4209('0x36')](_0x5e122d)),_0x31198d[_0x4209('0x83')](_0x5e122d);});});}}function ce(_0x39f459){if(_0x39f459[_0x4209('0x21')])return!0x0;const _0x4246fc=_0x39f459['getChild'](0x0);return _0x4246fc['is'](_0x4209('0x54'),_0x4209('0x30'))&&_0x4246fc[_0x4209('0x21')];}function fe(_0x593ec6,_0x1ae641={},_0x1b9ff8){for(const {isAnchor:_0x9ad7ee,cellHeight:_0x4f28f9,cellWidth:_0x240ba4}of _0x1b9ff8[_0x4209('0x92')](_0x593ec6,{'includeAllSlots':!0x0,..._0x1ae641}))if(!_0x9ad7ee||0x1!=_0x4f28f9||0x1!=_0x240ba4)return!0x1;return!0x0;}
@@ -0,0 +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
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7fac=['model','selection','has','registerCustomCallback','editor','TableColumnResizeEditing','formatGroupId','locale','setAttribute','handleResizeTableWidthCommand','_suggestionFactory','getSuggestions','handleSuggestionDescription','columnWidths','tableWidth','bind','formatBlock','getAttribute','plugins','document','markBlockFormat','get','table','_descriptionFactory','Users','resizeTable','getContainedElement','TrackChangesEditing','enableCommand','accept','data','*Format:*\x20resize\x20table','discard','resizeTableWidth','getSuggestionCallback'];(function(_0x593073,_0x7facb1){const _0xabb86a=function(_0x42f330){while(--_0x42f330){_0x593073['push'](_0x593073['shift']());}};_0xabb86a(++_0x7facb1);}(_0x7fac,0x1db));const _0xabb8=function(_0x593073,_0x7facb1){_0x593073=_0x593073-0x0;let _0xabb86a=_0x7fac[_0x593073];return _0xabb86a;};import{Plugin as _0x2c10df}from'ckeditor5/src/core';import{getTranslation as _0x18b849}from'../utils/common-translations';export default class yt extends _0x2c10df{['afterInit'](){if(!this[_0xabb8('0x13')]['plugins'][_0xabb8('0x11')](_0xabb8('0x14')))return;const _0x4b92b1=this['editor']['plugins'][_0xabb8('0x1')](_0xabb8('0x7'));_0x4b92b1[_0xabb8('0x8')](_0xabb8('0xd'),this[_0xabb8('0x18')]['bind'](this)),_0x4b92b1[_0xabb8('0x8')]('resizeColumnWidths',this['handleResizeTableWidthCommand'][_0xabb8('0x1e')](this)),_0x4b92b1[_0xabb8('0x19')][_0xabb8('0x12')](_0xabb8('0x1f'),_0xabb8('0x5'),_0xabb8('0x9'),_0x4b92b1[_0xabb8('0x19')]['getSuggestionCallback'](_0xabb8('0x1f'),null,_0xabb8('0xc'))),_0x4b92b1[_0xabb8('0x19')]['registerCustomCallback'](_0xabb8('0x1f'),_0xabb8('0x5'),'discard',_0x4b92b1[_0xabb8('0x19')][_0xabb8('0xe')](_0xabb8('0x1f'),null,_0xabb8('0x9'))),_0x4b92b1[_0xabb8('0x3')]['registerDescriptionCallback'](this[_0xabb8('0x1b')]['bind'](this));}[_0xabb8('0x18')](_0x148966,_0x550350){const _0x59eb67=this[_0xabb8('0x13')][_0xabb8('0x21')][_0xabb8('0x1')](_0xabb8('0x7')),_0x59b417=_0x550350[_0xabb8('0x2')]||this[_0xabb8('0x13')]['model'][_0xabb8('0x22')][_0xabb8('0x10')]['getSelectedElement']();this[_0xabb8('0x13')][_0xabb8('0xf')]['change'](_0x4e97ba=>{let _0x136572=_0x59b417[_0xabb8('0x20')](_0xabb8('0x1d'))||null,_0x48e670=_0x59b417['getAttribute'](_0xabb8('0x1c'))||null;const _0x206211=_0x550350[_0xabb8('0x1d')]||_0x136572,_0x5423ef=_0x550350[_0xabb8('0x1c')]||_0x48e670,_0x5889ac=this[_0xabb8('0x13')][_0xabb8('0x21')][_0xabb8('0x1')](_0xabb8('0x4'))['me'];for(const _0x22ce2e of _0x59eb67[_0xabb8('0x1a')]()){const _0x12f1ca=_0x22ce2e[_0xabb8('0x6')]();if(_0xabb8('0x5')===_0x22ce2e['subType']&&_0x12f1ca===_0x59b417){_0x22ce2e['author']!==_0x5889ac&&_0x22ce2e['discard'](),_0x136572=_0x22ce2e[_0xabb8('0xa')]['commandParams'][0x0][_0xabb8('0x1d')],_0x48e670=_0x22ce2e[_0xabb8('0xa')]['commandParams'][0x0]['columnWidths'];break;}}_0x4e97ba[_0xabb8('0x17')](_0xabb8('0x1d'),_0x206211,_0x59b417),_0x4e97ba['setAttribute'](_0xabb8('0x1c'),_0x5423ef,_0x59b417),_0x59eb67[_0xabb8('0x0')](_0x59b417,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x136572,'columnWidths':_0x48e670}],'formatGroupId':'resizeTable'},[],_0xabb8('0x5'));});}['handleSuggestionDescription'](_0x433b96){const {data:_0x2faac6}=_0x433b96;if(_0x2faac6&&'resizeTable'===_0x2faac6[_0xabb8('0x15')]){const _0x246b5e=_0xabb8('0xb');return{'type':'format','content':_0x18b849(this['editor'][_0xabb8('0x16')],_0x246b5e)};}}}
23
+ const _0x165b=['registerDescriptionCallback','*Format:*\x20resize\x20table','getSuggestions','model','Users','plugins','getSelectedElement','registerCustomCallback','getAttribute','getTableColumnsWidths','has','author','formatBlock','getSuggestionCallback','TrackChangesEditing','change','resizeTable','handleSuggestionDescription','handleResizeTableWidthCommand','enableCommand','subType','locale','_suggestionFactory','selection','markBlockFormat','TableColumnResizeEditing','editor','document','afterInit','tableWidth','resizeTableWidth','resizeColumnWidths','discard','getColumnGroupElement','get','bind','data','formatGroupId','commandParams','format','getContainedElement','columnWidths'];(function(_0x423058,_0x165baf){const _0x4afd2e=function(_0x1def6b){while(--_0x1def6b){_0x423058['push'](_0x423058['shift']());}};_0x4afd2e(++_0x165baf);}(_0x165b,0x17a));const _0x4afd=function(_0x423058,_0x165baf){_0x423058=_0x423058-0x0;let _0x4afd2e=_0x165b[_0x423058];return _0x4afd2e;};import{Plugin as _0x1afb17}from'ckeditor5/src/core';import{getTranslation as _0x406a0b}from'../utils/common-translations';export default class kt extends _0x1afb17{[_0x4afd('0x1c')](){if(!this['editor'][_0x4afd('0x5')][_0x4afd('0xa')](_0x4afd('0x19')))return;const _0x1856b6=this[_0x4afd('0x1a')]['plugins'][_0x4afd('0x22')](_0x4afd('0xe'));_0x1856b6[_0x4afd('0x13')](_0x4afd('0x1e'),this[_0x4afd('0x12')]['bind'](this)),_0x1856b6['enableCommand'](_0x4afd('0x1f'),this['handleResizeTableWidthCommand'][_0x4afd('0x23')](this)),_0x1856b6[_0x4afd('0x16')][_0x4afd('0x7')](_0x4afd('0xc'),_0x4afd('0x10'),'accept',_0x1856b6[_0x4afd('0x16')][_0x4afd('0xd')]('formatBlock',null,_0x4afd('0x20'))),_0x1856b6['_suggestionFactory'][_0x4afd('0x7')]('formatBlock',_0x4afd('0x10'),'discard',_0x1856b6[_0x4afd('0x16')][_0x4afd('0xd')]('formatBlock',null,'accept')),_0x1856b6['_descriptionFactory'][_0x4afd('0x0')](this['handleSuggestionDescription'][_0x4afd('0x23')](this));}[_0x4afd('0x12')](_0x2bbed0,_0x28c5ce){const _0x3f5afd=this[_0x4afd('0x1a')]['plugins'][_0x4afd('0x22')]('TrackChangesEditing'),_0x1d3ad1=this[_0x4afd('0x1a')]['plugins'][_0x4afd('0x22')]('TableColumnResizeEditing'),_0x1c4f46=_0x28c5ce['table']||this['editor'][_0x4afd('0x3')][_0x4afd('0x1b')][_0x4afd('0x17')][_0x4afd('0x6')]();this[_0x4afd('0x1a')][_0x4afd('0x3')][_0x4afd('0xf')](()=>{const _0x816260=_0x1d3ad1[_0x4afd('0x21')](_0x1c4f46);let _0xae9cb0=_0x816260?_0x1d3ad1[_0x4afd('0x9')](_0x816260):null,_0x42cf95=_0x1c4f46[_0x4afd('0x8')](_0x4afd('0x1d'))||null;const _0x478d98=_0x28c5ce['tableWidth']||_0x42cf95,_0x14a76f=_0x28c5ce[_0x4afd('0x29')]||_0xae9cb0,_0x4b46b3=this[_0x4afd('0x1a')][_0x4afd('0x5')][_0x4afd('0x22')](_0x4afd('0x4'))['me'];for(const _0x206055 of _0x3f5afd[_0x4afd('0x2')]()){const _0x13ea2e=_0x206055[_0x4afd('0x28')]();if(_0x4afd('0x10')===_0x206055[_0x4afd('0x14')]&&_0x13ea2e===_0x1c4f46){_0x206055[_0x4afd('0xb')]!==_0x4b46b3&&_0x206055[_0x4afd('0x20')]();const _0x17b4a7=_0x206055[_0x4afd('0x24')][_0x4afd('0x26')];_0x42cf95=_0x17b4a7[0x0][_0x4afd('0x1d')],_0xae9cb0=_0x17b4a7[0x0][_0x4afd('0x29')];break;}}_0x2bbed0({'table':_0x1c4f46,'tableWidth':_0x478d98,'columnWidths':_0x14a76f}),_0x3f5afd[_0x4afd('0x18')](_0x1c4f46,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x42cf95,'columnWidths':_0xae9cb0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}[_0x4afd('0x11')](_0x56b49d){const {data:_0x19ea7c}=_0x56b49d;if(_0x19ea7c&&_0x4afd('0x10')===_0x19ea7c[_0x4afd('0x25')]){const _0x28f5cb=_0x4afd('0x1');return{'type':_0x4afd('0x27'),'content':_0x406a0b(this[_0x4afd('0x1a')][_0x4afd('0x15')],_0x28f5cb)};}}}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @module track-changes/integrations/tableheadings
3
+ */
4
+ import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for {@link module:table/table~Table table feature} heading rows/columns.
7
+ */
8
+ export default class TrackChangesTableHeadings extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ static get requires(): PluginDependencies;
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3cdc=['model','commands','writer','showSuggestionHighlights','locale','toViewElement','ck-suggestion-marker--active','FORMAT_REGULAR_ROW','getSelectionAffectedTableCells','TableEditing','getRowIndexes','childCount','commandParams','_descriptionFactory','commandName','removeMarker:suggestion','editing','getCellLocation','selection','TrackChangesEditing','data-suggestion','nodeBefore','parent','highest','table','_acceptFormatSuggestionCallbackFactory','afterInit','formatBlock','_suggestionFactory','has','setTableColumnHeader','document','consumable','index','first','createRange','last','createPositionBefore','markerName','removeAttribute','unbindElementFromMarkerName','item','getChild','cell','forceValue','getColumnIndexes','addClass','setTableRowHeader','nodeAfter','start','*Format:*\x20%0','from','_splitMarkerName','markBlockFormat','findAncestor','TableUtils','options','mapper','change','headingRows','markerRange','ck-suggestion-marker-','data','addMarker:suggestion','downcastDispatcher','consume','removeClass','accept','requires','registerCustomCallback','FORMAT_HEADER_COLUMN','createTableWalker','plugins','get','format','getAttribute','end','enableCommand','createPositionAfter'];(function(_0x5da4d4,_0x3cdc69){const _0x59adae=function(_0xca8152){while(--_0xca8152){_0x5da4d4['push'](_0x5da4d4['shift']());}};_0x59adae(++_0x3cdc69);}(_0x3cdc,0x1ed));const _0x59ad=function(_0x5da4d4,_0x3cdc69){_0x5da4d4=_0x5da4d4-0x0;let _0x59adae=_0x3cdc[_0x5da4d4];return _0x59adae;};import{Plugin as _0x23c83d}from'ckeditor5/src/core';import _0x24665a from'./table';import{getTranslation as _0x30453a}from'../utils/common-translations';export default class kt extends _0x23c83d{static get[_0x59ad('0x31')](){return[_0x24665a];}[_0x59ad('0x7')](){const _0x13f52d=this['editor'];if(!_0x13f52d[_0x59ad('0x35')][_0x59ad('0xa')](_0x59ad('0x45')))return;const _0x345d82=_0x13f52d[_0x59ad('0x40')],_0x3b93d0=_0x13f52d['plugins']['get'](_0x59ad('0x0')),_0x5087c3=_0x13f52d[_0x59ad('0x35')][_0x59ad('0x36')](_0x59ad('0x24')),_0x4a3a8d=_0x13f52d[_0x59ad('0x35')][_0x59ad('0x36')](_0x24665a);function _0x10e92b({showActiveMarker:_0x3b6187=!0x0,setDataAttribute:_0xf90456=!0x0}={}){return(_0x34188b,_0x55bfe7,_0x710d68)=>{const {type:_0xd7411,id:_0x4fd88c}=_0x3b93d0[_0x59ad('0x21')](_0x55bfe7[_0x59ad('0x13')]),_0x3607bb=_0x3b93d0['getSuggestion'](_0x4fd88c);if(!_0x3607bb[_0x59ad('0x2b')]||_0x59ad('0xb')!=_0x3607bb[_0x59ad('0x2b')][_0x59ad('0x4a')])return;if(_0x55bfe7[_0x59ad('0x16')])return void _0x34188b['stop']();if(!_0x710d68[_0x59ad('0xd')][_0x59ad('0x2e')](_0x55bfe7['markerRange'],_0x34188b['name']))return;const _0xb20f3b=_0x55bfe7[_0x59ad('0x29')][_0x59ad('0x1e')][_0x59ad('0x1d')],_0x51adeb=_0x55bfe7[_0x59ad('0x29')][_0x59ad('0x39')][_0x59ad('0x2')],_0x5a7d86=_0xb20f3b[_0x59ad('0x3')][_0x59ad('0x3')],{column:_0x399e44}=_0x5087c3[_0x59ad('0x4d')](_0xb20f3b),{column:_0x304bbd}=_0x5087c3[_0x59ad('0x4d')](_0x51adeb);for(let _0x58baea=_0x399e44;_0x58baea<=_0x304bbd;_0x58baea++){const _0x1bd00a=_0x5087c3[_0x59ad('0x34')](_0x5a7d86,{'column':_0x58baea,'includeAllSlots':!0x1});for(const _0x39e73a of _0x1bd00a){const _0x210e0e=_0x39e73a[_0x59ad('0x18')],_0xa0cb16=_0x710d68[_0x59ad('0x26')][_0x59ad('0x41')](_0x210e0e);_0x710d68[_0x59ad('0x3e')]['addClass'](_0x59ad('0x2a')+_0xd7411,_0xa0cb16),_0xf90456&&_0x710d68[_0x59ad('0x3e')]['setAttribute'](_0x59ad('0x1'),_0x4fd88c,_0xa0cb16),_0x710d68['mapper']['bindElementToMarker'](_0xa0cb16,_0x55bfe7[_0x59ad('0x13')]),_0x3b6187&&(_0x3b93d0['activeMarkers']['includes'](_0x55bfe7['markerName'])?_0x710d68[_0x59ad('0x3e')][_0x59ad('0x1b')](_0x59ad('0x42'),_0xa0cb16):_0x710d68[_0x59ad('0x3e')][_0x59ad('0x2f')](_0x59ad('0x42'),_0xa0cb16));}}};}_0x3b93d0['enableCommand']('setTableRowHeader',(_0x24b98e,_0x6dbf80)=>{const _0x2fa6e7=_0x5087c3[_0x59ad('0x44')](_0x13f52d[_0x59ad('0x3c')][_0x59ad('0xc')][_0x59ad('0x4e')]),_0xcb5de7=_0x5087c3[_0x59ad('0x46')](_0x2fa6e7),_0x124b0a=_0x2fa6e7[0x0]['findAncestor']('table'),_0x51239a=_0x124b0a[_0x59ad('0x38')](_0x59ad('0x28'))||0x0,_0x3ff18f=_0x6dbf80&&null!==_0x6dbf80['forceValue']?_0x6dbf80[_0x59ad('0x19')]:!_0x13f52d[_0x59ad('0x3d')]['get'](_0x59ad('0x1c'))['value'],_0x2a288a=_0x3ff18f?_0xcb5de7[_0x59ad('0x11')]:_0xcb5de7[_0x59ad('0xf')],_0x5a9f9b=_0x124b0a[_0x59ad('0x17')](_0x2a288a);let _0x5731ed;if(_0x3ff18f){const _0x31a04b=_0x124b0a[_0x59ad('0x17')](_0x51239a);if(_0x5a9f9b['index']<_0x31a04b[_0x59ad('0xe')])return;_0x5731ed=_0x13f52d[_0x59ad('0x3c')]['createRange'](_0x13f52d['model'][_0x59ad('0x12')](_0x31a04b[_0x59ad('0x17')](0x0)),_0x13f52d[_0x59ad('0x3c')]['createPositionAfter'](_0x5a9f9b[_0x59ad('0x17')](_0x5a9f9b[_0x59ad('0x47')]-0x1)));}else{const _0x516654=_0x124b0a[_0x59ad('0x17')](_0x51239a-0x1);if(!_0x516654)return;_0x5731ed=_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x10')](_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x12')](_0x5a9f9b[_0x59ad('0x17')](0x0)),_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x3b')](_0x516654[_0x59ad('0x17')](_0x516654[_0x59ad('0x47')]-0x1)));}_0x13f52d[_0x59ad('0x3c')]['change'](()=>{_0x3b93d0[_0x59ad('0x22')](_0x5731ed,{'commandName':_0x59ad('0x1c'),'commandParams':[{'forceValue':_0x3ff18f}]},[],_0x59ad('0x1c'));});}),_0x3b93d0[_0x59ad('0x3a')]('setTableColumnHeader',(_0x1270b2,_0x536b24)=>{const _0x5096ef=_0x13f52d['plugins'][_0x59ad('0x36')](_0x59ad('0x24')),_0x36fef1=_0x5096ef['getSelectionAffectedTableCells'](_0x13f52d['model']['document'][_0x59ad('0x4e')]),_0x4915dc=_0x5096ef[_0x59ad('0x1a')](_0x36fef1),_0x38473b=_0x36fef1[0x0][_0x59ad('0x23')](_0x59ad('0x5')),_0x3a01a6=_0x38473b[_0x59ad('0x38')]('headingColumns')||0x0,_0x5a2141=_0x536b24&&null!==_0x536b24['forceValue']?_0x536b24[_0x59ad('0x19')]:!_0x13f52d[_0x59ad('0x3d')][_0x59ad('0x36')](_0x59ad('0xb'))['value'];let _0xf4f402;const _0x44fe3a=_0x38473b[_0x59ad('0x17')](0x0),_0x2201d2=_0x5a2141?_0x4915dc[_0x59ad('0x11')]:_0x4915dc[_0x59ad('0xf')],_0x25f5f8=_0x5096ef[_0x59ad('0x34')](_0x38473b,{'startRow':0x0,'column':_0x2201d2,'includeAllSlots':!0x1}),_0xb2d6dc=Array[_0x59ad('0x20')](_0x25f5f8)[0x0][_0x59ad('0x18')];if(_0x5a2141){const _0x6b7d1d=_0x44fe3a[_0x59ad('0x17')](_0x3a01a6);if(_0xb2d6dc['isBefore'](_0x6b7d1d))return;_0xf4f402=_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x10')](_0x13f52d['model'][_0x59ad('0x12')](_0x6b7d1d),_0x13f52d[_0x59ad('0x3c')]['createPositionAfter'](_0xb2d6dc));}else{const _0x4833d5=_0x44fe3a[_0x59ad('0x17')](_0x3a01a6-0x1);if(!_0x4833d5)return;_0xf4f402=_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x10')](_0x13f52d['model']['createPositionBefore'](_0xb2d6dc),_0x13f52d['model'][_0x59ad('0x3b')](_0x4833d5));}_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x27')](()=>{_0x3b93d0['markBlockFormat'](_0xf4f402,{'commandName':_0x59ad('0xb'),'commandParams':[{'forceValue':_0x5a2141}]},[],'setTableColumnHeader');});}),_0x13f52d[_0x59ad('0x4c')][_0x59ad('0x2d')]['on']('addMarker:suggestion',_0x10e92b(),{'priority':_0x59ad('0x4')}),_0x13f52d[_0x59ad('0x2b')]['downcastDispatcher']['on'](_0x59ad('0x2c'),(_0x16718b,_0x5703c9,_0x23d265)=>{_0x23d265[_0x59ad('0x25')][_0x59ad('0x3f')]&&_0x10e92b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x16718b,_0x5703c9,_0x23d265);},{'priority':_0x59ad('0x4')}),_0x13f52d[_0x59ad('0x4c')][_0x59ad('0x2d')]['on'](_0x59ad('0x4b'),(_0x3e108c,_0x1458d4,_0x15f012)=>{const {type:_0x23b8b3,id:_0x37fbb3}=_0x3b93d0['_splitMarkerName'](_0x1458d4['markerName']),_0x4321a9=_0x3b93d0['getSuggestion'](_0x37fbb3);if(!_0x4321a9[_0x59ad('0x2b')]||_0x59ad('0xb')!=_0x4321a9[_0x59ad('0x2b')][_0x59ad('0x4a')])return;const _0x55386d=_0x15f012[_0x59ad('0x26')]['markerNameToElements'](_0x1458d4[_0x59ad('0x13')]);if(_0x55386d)for(const _0x44e75e of _0x55386d)_0x15f012[_0x59ad('0x3e')][_0x59ad('0x2f')](_0x59ad('0x2a')+_0x23b8b3,_0x44e75e),_0x15f012[_0x59ad('0x3e')][_0x59ad('0x2f')](_0x59ad('0x42'),_0x44e75e),_0x15f012[_0x59ad('0x3e')][_0x59ad('0x14')](_0x59ad('0x1'),_0x44e75e),_0x15f012[_0x59ad('0x26')][_0x59ad('0x15')](_0x44e75e,_0x1458d4[_0x59ad('0x13')]);},{'priority':_0x59ad('0x4')}),_0x3b93d0[_0x59ad('0x49')]['registerDescriptionCallback'](_0xbb0653=>{const {data:_0x2149c0}=_0xbb0653;if(_0x2149c0){if(_0x59ad('0x1c')==_0x2149c0[_0x59ad('0x4a')]){const _0x3475f5=_0x2149c0[_0x59ad('0x48')][0x0]['forceValue'];return _0x2f357e(_0x30453a(_0x345d82,_0x3475f5?'FORMAT_HEADER_ROW':_0x59ad('0x43')));}if(_0x59ad('0xb')==_0x2149c0[_0x59ad('0x4a')]){const _0x4c96e7=_0x2149c0[_0x59ad('0x48')][0x0][_0x59ad('0x19')];return _0x2f357e(_0x30453a(_0x345d82,_0x4c96e7?_0x59ad('0x33'):'FORMAT_REGULAR_COLUMN'));}}function _0x2f357e(_0x22f8a5){return{'type':_0x59ad('0x37'),'content':_0x30453a(_0x345d82,_0x59ad('0x1f'),_0x22f8a5)};}});const _0x514528=_0x4a3a8d[_0x59ad('0x6')]();_0x3b93d0['_suggestionFactory']['registerCustomCallback'](_0x59ad('0x8'),_0x59ad('0x1c'),'accept',_0x514528),_0x3b93d0[_0x59ad('0x9')][_0x59ad('0x32')](_0x59ad('0x8'),_0x59ad('0xb'),_0x59ad('0x30'),_0x514528);}}
23
+ const _0x1ccd=['_suggestionFactory','highest','getAttribute','selection','options','FORMAT_HEADER_COLUMN','first','model','TrackChangesEditing','registerCustomCallback','getCellLocation','document','from','value','accept','childCount','markerNameToElements','createPositionBefore','setTableColumnHeader','forceValue','getRowIndexes','commands','activeMarkers','table','isBefore','get','enableCommand','formatBlock','downcastDispatcher','FORMAT_REGULAR_COLUMN','requires','cell','data','index','writer','nodeAfter','markBlockFormat','parent','change','start','data-suggestion','_splitMarkerName','plugins','getSelectionAffectedTableCells','editing','afterInit','*Format:*\x20%0','getChild','removeAttribute','createTableWalker','consume','addClass','getColumnIndexes','findAncestor','setAttribute','createRange','registerDescriptionCallback','markerName','name','commandName','includes','setTableRowHeader','addMarker:suggestion','removeMarker:suggestion','format','markerRange','mapper','_descriptionFactory','last','unbindElementFromMarkerName','stop','createPositionAfter','FORMAT_HEADER_ROW','ck-suggestion-marker-','removeClass','ck-suggestion-marker--active','toViewElement','_acceptFormatSuggestionCallbackFactory','getSuggestion','end','commandParams'];(function(_0x44a084,_0x1ccd91){const _0x404627=function(_0x3108f5){while(--_0x3108f5){_0x44a084['push'](_0x44a084['shift']());}};_0x404627(++_0x1ccd91);}(_0x1ccd,0x184));const _0x4046=function(_0x44a084,_0x1ccd91){_0x44a084=_0x44a084-0x0;let _0x404627=_0x1ccd[_0x44a084];return _0x404627;};import{Plugin as _0x1de8b5}from'ckeditor5/src/core';import _0x25f32e from'./table';import{getTranslation as _0xbe3ab0}from'../utils/common-translations';export default class dt extends _0x1de8b5{static get[_0x4046('0x2f')](){return[_0x25f32e];}[_0x4046('0x3e')](){const _0x58c360=this['editor'];if(!_0x58c360[_0x4046('0x3b')]['has']('TableEditing'))return;const _0x560fd5=_0x58c360['locale'],_0x1e5950=_0x58c360['plugins'][_0x4046('0x2a')](_0x4046('0x19')),_0x1110c3=_0x58c360[_0x4046('0x3b')][_0x4046('0x2a')]('TableUtils'),_0xf7bcbb=_0x58c360[_0x4046('0x3b')][_0x4046('0x2a')](_0x25f32e);function _0x55dd74({showActiveMarker:_0x89eac0=!0x0,setDataAttribute:_0xe38908=!0x0}={}){return(_0x3b555b,_0x60a4e5,_0x1ad828)=>{const {type:_0x3aaa5d,id:_0x38d0b6}=_0x1e5950['_splitMarkerName'](_0x60a4e5[_0x4046('0x4a')]),_0x5dd103=_0x1e5950[_0x4046('0xe')](_0x38d0b6);if(!_0x5dd103[_0x4046('0x31')]||_0x4046('0x23')!=_0x5dd103[_0x4046('0x31')]['commandName'])return;if(_0x60a4e5['item'])return void _0x3b555b[_0x4046('0x6')]();if(!_0x1ad828['consumable'][_0x4046('0x43')](_0x60a4e5[_0x4046('0x1')],_0x3b555b[_0x4046('0x4b')]))return;const _0x4a7148=_0x60a4e5[_0x4046('0x1')][_0x4046('0x38')][_0x4046('0x34')],_0x68ac12=_0x60a4e5[_0x4046('0x1')][_0x4046('0xf')]['nodeBefore'],_0x22999d=_0x4a7148[_0x4046('0x36')][_0x4046('0x36')],{column:_0x3fc4eb}=_0x1110c3[_0x4046('0x1b')](_0x4a7148),{column:_0x5c77e2}=_0x1110c3[_0x4046('0x1b')](_0x68ac12);for(let _0x1318db=_0x3fc4eb;_0x1318db<=_0x5c77e2;_0x1318db++){const _0xae658f=_0x1110c3['createTableWalker'](_0x22999d,{'column':_0x1318db,'includeAllSlots':!0x1});for(const _0x11ebe1 of _0xae658f){const _0x2c0123=_0x11ebe1[_0x4046('0x30')],_0x179c8f=_0x1ad828[_0x4046('0x2')][_0x4046('0xc')](_0x2c0123);_0x1ad828['writer'][_0x4046('0x44')]('ck-suggestion-marker-'+_0x3aaa5d,_0x179c8f),_0xe38908&&_0x1ad828['writer'][_0x4046('0x47')](_0x4046('0x39'),_0x38d0b6,_0x179c8f),_0x1ad828[_0x4046('0x2')]['bindElementToMarker'](_0x179c8f,_0x60a4e5['markerName']),_0x89eac0&&(_0x1e5950[_0x4046('0x27')][_0x4046('0x4d')](_0x60a4e5[_0x4046('0x4a')])?_0x1ad828[_0x4046('0x33')]['addClass'](_0x4046('0xb'),_0x179c8f):_0x1ad828['writer'][_0x4046('0xa')]('ck-suggestion-marker--active',_0x179c8f));}}};}_0x1e5950[_0x4046('0x2b')](_0x4046('0x4e'),(_0x1e9f4b,_0xa7b5ce)=>{const _0x1ff889=_0x1110c3[_0x4046('0x3c')](_0x58c360[_0x4046('0x18')]['document'][_0x4046('0x14')]),_0x10687a=_0x1110c3[_0x4046('0x25')](_0x1ff889),_0x1d3dd5=_0x1ff889[0x0][_0x4046('0x46')](_0x4046('0x28')),_0x35db3b=_0x1d3dd5['getAttribute']('headingRows')||0x0,_0x3fa33a=_0xa7b5ce&&null!==_0xa7b5ce[_0x4046('0x24')]?_0xa7b5ce[_0x4046('0x24')]:!_0x58c360[_0x4046('0x26')][_0x4046('0x2a')](_0x4046('0x4e'))[_0x4046('0x1e')],_0x2d28ba=_0x3fa33a?_0x10687a[_0x4046('0x4')]:_0x10687a[_0x4046('0x17')],_0x115cbe=_0x1d3dd5[_0x4046('0x40')](_0x2d28ba);let _0x34cfc3;if(_0x3fa33a){const _0x187feb=_0x1d3dd5['getChild'](_0x35db3b);if(_0x115cbe[_0x4046('0x32')]<_0x187feb['index'])return;_0x34cfc3=_0x58c360[_0x4046('0x18')][_0x4046('0x48')](_0x58c360['model'][_0x4046('0x22')](_0x187feb[_0x4046('0x40')](0x0)),_0x58c360['model'][_0x4046('0x7')](_0x115cbe[_0x4046('0x40')](_0x115cbe[_0x4046('0x20')]-0x1)));}else{const _0x5a9470=_0x1d3dd5['getChild'](_0x35db3b-0x1);if(!_0x5a9470)return;_0x34cfc3=_0x58c360[_0x4046('0x18')][_0x4046('0x48')](_0x58c360[_0x4046('0x18')][_0x4046('0x22')](_0x115cbe['getChild'](0x0)),_0x58c360[_0x4046('0x18')][_0x4046('0x7')](_0x5a9470[_0x4046('0x40')](_0x5a9470[_0x4046('0x20')]-0x1)));}_0x58c360[_0x4046('0x18')][_0x4046('0x37')](()=>{_0x1e5950[_0x4046('0x35')](_0x34cfc3,{'commandName':_0x4046('0x4e'),'commandParams':[{'forceValue':_0x3fa33a}]},[],'setTableRowHeader');});}),_0x1e5950[_0x4046('0x2b')](_0x4046('0x23'),(_0x5d13a8,_0x5f3346)=>{const _0x3f405d=_0x58c360[_0x4046('0x3b')]['get']('TableUtils'),_0xa4238a=_0x3f405d[_0x4046('0x3c')](_0x58c360[_0x4046('0x18')][_0x4046('0x1c')]['selection']),_0x437f78=_0x3f405d[_0x4046('0x45')](_0xa4238a),_0x16ae95=_0xa4238a[0x0][_0x4046('0x46')](_0x4046('0x28')),_0x146985=_0x16ae95[_0x4046('0x13')]('headingColumns')||0x0,_0x3a0aa7=_0x5f3346&&null!==_0x5f3346[_0x4046('0x24')]?_0x5f3346[_0x4046('0x24')]:!_0x58c360['commands'][_0x4046('0x2a')](_0x4046('0x23'))[_0x4046('0x1e')];let _0xaf776;const _0x7e07e=_0x16ae95['getChild'](0x0),_0x583037=_0x3a0aa7?_0x437f78[_0x4046('0x4')]:_0x437f78[_0x4046('0x17')],_0x2b0d67=_0x3f405d[_0x4046('0x42')](_0x16ae95,{'startRow':0x0,'column':_0x583037,'includeAllSlots':!0x1}),_0x43c3fe=Array[_0x4046('0x1d')](_0x2b0d67)[0x0]['cell'];if(_0x3a0aa7){const _0x4f2f38=_0x7e07e[_0x4046('0x40')](_0x146985);if(_0x43c3fe[_0x4046('0x29')](_0x4f2f38))return;_0xaf776=_0x58c360['model'][_0x4046('0x48')](_0x58c360[_0x4046('0x18')][_0x4046('0x22')](_0x4f2f38),_0x58c360['model'][_0x4046('0x7')](_0x43c3fe));}else{const _0x919b0d=_0x7e07e['getChild'](_0x146985-0x1);if(!_0x919b0d)return;_0xaf776=_0x58c360[_0x4046('0x18')][_0x4046('0x48')](_0x58c360[_0x4046('0x18')][_0x4046('0x22')](_0x43c3fe),_0x58c360['model'][_0x4046('0x7')](_0x919b0d));}_0x58c360['model']['change'](()=>{_0x1e5950[_0x4046('0x35')](_0xaf776,{'commandName':_0x4046('0x23'),'commandParams':[{'forceValue':_0x3a0aa7}]},[],'setTableColumnHeader');});}),_0x58c360[_0x4046('0x3d')][_0x4046('0x2d')]['on'](_0x4046('0x4f'),_0x55dd74(),{'priority':'highest'}),_0x58c360['data'][_0x4046('0x2d')]['on'](_0x4046('0x4f'),(_0x5cb92e,_0x204c4b,_0x367e25)=>{_0x367e25[_0x4046('0x15')]['showSuggestionHighlights']&&_0x55dd74({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5cb92e,_0x204c4b,_0x367e25);},{'priority':_0x4046('0x12')}),_0x58c360['editing'][_0x4046('0x2d')]['on'](_0x4046('0x50'),(_0x2f0468,_0x1aa32a,_0x173358)=>{const {type:_0x3fe502,id:_0x2ad6ea}=_0x1e5950[_0x4046('0x3a')](_0x1aa32a[_0x4046('0x4a')]),_0x2ecefe=_0x1e5950['getSuggestion'](_0x2ad6ea);if(!_0x2ecefe[_0x4046('0x31')]||'setTableColumnHeader'!=_0x2ecefe[_0x4046('0x31')]['commandName'])return;const _0x4e06c2=_0x173358[_0x4046('0x2')][_0x4046('0x21')](_0x1aa32a[_0x4046('0x4a')]);if(_0x4e06c2)for(const _0x405782 of _0x4e06c2)_0x173358[_0x4046('0x33')][_0x4046('0xa')](_0x4046('0x9')+_0x3fe502,_0x405782),_0x173358[_0x4046('0x33')]['removeClass'](_0x4046('0xb'),_0x405782),_0x173358[_0x4046('0x33')][_0x4046('0x41')](_0x4046('0x39'),_0x405782),_0x173358[_0x4046('0x2')][_0x4046('0x5')](_0x405782,_0x1aa32a[_0x4046('0x4a')]);},{'priority':_0x4046('0x12')}),_0x1e5950[_0x4046('0x3')][_0x4046('0x49')](_0x35cde3=>{const {data:_0x55a961}=_0x35cde3;if(_0x55a961){if(_0x4046('0x4e')==_0x55a961[_0x4046('0x4c')]){const _0x57abe7=_0x55a961[_0x4046('0x10')][0x0]['forceValue'];return _0xc6560e(_0xbe3ab0(_0x560fd5,_0x57abe7?_0x4046('0x8'):'FORMAT_REGULAR_ROW'));}if(_0x4046('0x23')==_0x55a961[_0x4046('0x4c')]){const _0x15dc87=_0x55a961['commandParams'][0x0][_0x4046('0x24')];return _0xc6560e(_0xbe3ab0(_0x560fd5,_0x15dc87?_0x4046('0x16'):_0x4046('0x2e')));}}function _0xc6560e(_0x4ef008){return{'type':_0x4046('0x0'),'content':_0xbe3ab0(_0x560fd5,_0x4046('0x3f'),_0x4ef008)};}});const _0x4ce29c=_0xf7bcbb[_0x4046('0xd')]();_0x1e5950[_0x4046('0x11')][_0x4046('0x1a')](_0x4046('0x2c'),'setTableRowHeader','accept',_0x4ce29c),_0x1e5950[_0x4046('0x11')][_0x4046('0x1a')](_0x4046('0x2c'),_0x4046('0x23'),_0x4046('0x1f'),_0x4ce29c);}}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @module track-changes/integrations/tablemergesplit
3
+ */
4
+ import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for {@link module:table/table~Table table feature} merging and splitting cells.
7
+ */
8
+ export default class TrackChangesTableMergeSplit extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ static get requires(): PluginDependencies;
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a6f=['_suggestionFactory','element','selection','splitTableCellVertically','mergeTableCells','*Split\x20cell:*\x20horizontally','model','getAncestors','length','filter','getFirstPosition','getRanges','isEnabled','mergeTableCellDown','detach','insertion','from','value','registerCustomCallback','commands','getSelectionAffectedTableCells','deletion','has','plugins','containsRange','stop','splitTableCellHorizontally','isInContent','return','subType','document','TableEditing','*Merge\x20cells*','push','format','formatBlock','_acceptFormatSuggestionCallbackFactory','_areMergableCells','low','mergeTableCellUp','TableUtils','*Split\x20cell:*\x20vertically','author','getSuggestions','createRangeOn','_tablePostFixingSubtypes','execute','mergeTableCellRight','tableCell','markMultiRangeBlockFormat','findAncestor','commandName','change','requires','enableCommand','createTableWalker','setSelection','mergeTableCellLeft','registerDescriptionCallback','_areSelectedCellsMergable','size','type','editor','locale','highest','getCellLocation','find','trackChanges','_descriptionFactory','set:isEnabled','_isForcedDefaultExecutionBlock','add','accept','rootName','map','TrackChangesEditing','refresh','forceDefaultExecution','get'];(function(_0x24ae89,_0x4a6f49){const _0x5e584b=function(_0x3be160){while(--_0x3be160){_0x24ae89['push'](_0x24ae89['shift']());}};_0x5e584b(++_0x4a6f49);}(_0x4a6f,0xfe));const _0x5e58=function(_0x24ae89,_0x4a6f49){_0x24ae89=_0x24ae89-0x0;let _0x5e584b=_0x4a6f[_0x24ae89];return _0x5e584b;};import{Plugin as _0x23d60f}from'ckeditor5/src/core';import _0x4cfd16 from'./table';import{LiveRange as _0x139f32}from'ckeditor5/src/engine';import{getTranslation as _0x20df93}from'../utils/common-translations';export default class pt extends _0x23d60f{static get[_0x5e58('0x24')](){return[_0x4cfd16];}['afterInit'](){const _0x376557=this['editor'],_0x2892e3=_0x376557[_0x5e58('0x44')][_0x5e58('0xd')][_0x5e58('0x40')],_0x2053e4=_0x376557[_0x5e58('0x2e')];if(!_0x376557[_0x5e58('0x6')]['has'](_0x5e58('0xe')))return;const _0x388f1f=_0x376557['plugins'][_0x5e58('0x3d')](_0x5e58('0x3a')),_0x484bbb=_0x376557[_0x5e58('0x6')][_0x5e58('0x3d')](_0x5e58('0x17')),_0x542b50=_0x376557[_0x5e58('0x6')][_0x5e58('0x3d')](_0x4cfd16);_0x542b50[_0x5e58('0x1c')][_0x5e58('0x10')](_0x5e58('0x42')),_0x388f1f[_0x5e58('0x25')]('mergeTableCells',()=>{const _0x36e511=_0x484bbb[_0x5e58('0x3')](_0x376557[_0x5e58('0x44')][_0x5e58('0xd')][_0x5e58('0x40')]);_0x376557[_0x5e58('0x44')][_0x5e58('0x23')](()=>{_0x388f1f['markMultiRangeBlockFormat'](_0x36e511,{'commandName':'mergeTableCells','commandParams':[]},[],_0x5e58('0x42'));});}),_0x376557['commands'][_0x5e58('0x3d')](_0x5e58('0x42'))['on'](_0x5e58('0x1d'),(_0x3431f9,_0x4cfa7a)=>{_0x376557[_0x5e58('0x2')][_0x5e58('0x3d')](_0x5e58('0x32'))[_0x5e58('0x0')]&&(_0x4cfa7a[_0x5e58('0x46')]>0x0&&_0x4cfa7a[_0x4cfa7a['length']-0x1]&&_0x4cfa7a[_0x4cfa7a[_0x5e58('0x46')]-0x1][_0x5e58('0x3c')]||_0x388f1f[_0x5e58('0x35')]||this[_0x5e58('0x2a')]()||_0x3431f9[_0x5e58('0x8')]());},{'priority':_0x5e58('0x2f')});for(const _0x1ab8ed of[_0x5e58('0x16'),'mergeTableCellRight',_0x5e58('0x4b'),'mergeTableCellLeft']){const _0x5e9474=_0x376557[_0x5e58('0x2')][_0x5e58('0x3d')](_0x1ab8ed);_0x388f1f[_0x5e58('0x25')](_0x1ab8ed,()=>{const _0x26155a=_0x376557[_0x5e58('0x44')][_0x5e58('0xd')]['selection'][_0x5e58('0x48')]()['getAncestors']()[_0x5e58('0x31')](_0x3e72fd=>_0x3e72fd['is'](_0x5e58('0x3f'),_0x5e58('0x1f'))),_0x3cbbad=_0x5e9474[_0x5e58('0x0')];_0x376557[_0x5e58('0x44')]['change'](()=>{_0x388f1f[_0x5e58('0x20')]([_0x26155a,_0x3cbbad],{'commandName':'mergeTableCells','commandParams':[]},[],_0x5e58('0x42'));});});}for(const _0x40ddc6 of[_0x5e58('0x41'),'splitTableCellHorizontally']){const _0x257a71=_0x376557[_0x5e58('0x2')][_0x5e58('0x3d')](_0x40ddc6);_0x388f1f['enableCommand'](_0x40ddc6,()=>{const _0x499b58=_0x484bbb[_0x5e58('0x3')](_0x376557[_0x5e58('0x44')][_0x5e58('0xd')][_0x5e58('0x40')])[0x0],_0x3ac638=_0x499b58[_0x5e58('0x21')]('table'),{column:_0x4b3ffd,row:_0x522de5}=_0x484bbb[_0x5e58('0x30')](_0x499b58);let _0x176f74=[];if('horizontally'==_0x257a71['direction']){const _0x21d53a=_0x484bbb[_0x5e58('0x26')](_0x3ac638,{'startRow':_0x522de5,'endRow':_0x522de5,'includeAllSlots':!0x0});_0x176f74=Array[_0x5e58('0x4e')](_0x21d53a)['map'](_0xda637f=>_0xda637f['cell']);}else{const _0x160997=_0x484bbb['createTableWalker'](_0x3ac638,{'column':_0x4b3ffd,'includeAllSlots':!0x0});_0x176f74=Array[_0x5e58('0x4e')](_0x160997)[_0x5e58('0x39')](_0x2109d9=>_0x2109d9['cell']);}_0x376557[_0x5e58('0x44')][_0x5e58('0x23')](_0x15cc27=>{_0x388f1f['markBlockFormat'](_0x15cc27[_0x5e58('0x1b')](_0x499b58),{'commandName':_0x40ddc6,'commandParams':[]},_0x176f74,_0x40ddc6);});});}_0x388f1f['_descriptionFactory'][_0x5e58('0x29')](_0x5119f7=>{const {data:_0x40c3ea}=_0x5119f7;if(_0x40c3ea)return _0x5e58('0x42')==_0x40c3ea['commandName']?{'type':_0x5e58('0x11'),'content':_0x20df93(_0x2053e4,_0x5e58('0xf'))}:void 0x0;}),_0x388f1f[_0x5e58('0x33')][_0x5e58('0x29')](_0x53fd1c=>{const {data:_0x1b4031}=_0x53fd1c;if(_0x1b4031)return _0x5e58('0x41')==_0x1b4031[_0x5e58('0x22')]?{'type':_0x5e58('0x11'),'content':_0x20df93(_0x2053e4,_0x5e58('0x18'))}:_0x5e58('0x9')==_0x1b4031[_0x5e58('0x22')]?{'type':_0x5e58('0x11'),'content':_0x20df93(_0x2053e4,_0x5e58('0x43'))}:void 0x0;});const _0x2dc878=_0x542b50[_0x5e58('0x13')]();for(const _0x5861d8 of[_0x5e58('0x16'),_0x5e58('0x1e'),_0x5e58('0x4b'),_0x5e58('0x28')])_0x388f1f[_0x5e58('0x3e')]['registerCustomCallback'](_0x5e58('0x12'),_0x5861d8,_0x5e58('0x37'),_0x2dc878);for(const _0x19a9bf of[_0x5e58('0x41'),_0x5e58('0x9')])_0x388f1f[_0x5e58('0x3e')][_0x5e58('0x1')]('formatBlock',_0x19a9bf,'accept',_0x2dc878);_0x388f1f[_0x5e58('0x3e')][_0x5e58('0x1')]('formatBlock',_0x5e58('0x42'),_0x5e58('0x37'),_0x1a819f=>{_0x376557['model'][_0x5e58('0x23')](_0xd4ec68=>{const _0x3022f5=Array[_0x5e58('0x4e')](_0x2892e3['getRanges']())[_0x5e58('0x39')](_0x4852ff=>_0x139f32['fromRange'](_0x4852ff));_0xd4ec68[_0x5e58('0x27')](_0x1a819f),_0x376557['commands']['get'](_0x5e58('0x42'))[_0x5e58('0x3b')](),_0x376557[_0x5e58('0x1d')](_0x5e58('0x42'),{'forceDefaultExecution':!0x0});const _0x207275=_0x3022f5[_0x5e58('0x47')](_0x4d1fb5=>'$graveyard'!=_0x4d1fb5['root'][_0x5e58('0x38')]);_0x207275[_0x5e58('0x46')]>0x0&&_0xd4ec68[_0x5e58('0x27')](_0x207275);for(const _0x322272 of _0x3022f5)_0x322272[_0x5e58('0x4c')]();});});for(const _0x397ef1 of[_0x5e58('0x16'),_0x5e58('0x4b'),_0x5e58('0x28'),'mergeTableCellRight']){const _0x3acd6c=_0x376557[_0x5e58('0x2')]['get'](_0x397ef1);_0x3acd6c['on'](_0x5e58('0x34'),(_0x255e8c,_0x1211a3,_0x19145a)=>{if(_0x19145a){const _0xe4a7ce=_0x376557[_0x5e58('0x44')]['document']['selection'][_0x5e58('0x48')]()[_0x5e58('0x45')]()[_0x5e58('0x31')](_0x446c19=>_0x446c19['is'](_0x5e58('0x3f'),_0x5e58('0x1f')));this[_0x5e58('0x14')](_0x3acd6c[_0x5e58('0x0')],_0xe4a7ce)||(_0x255e8c[_0x5e58('0xb')]=!0x1,_0x255e8c['stop']());}},{'priority':_0x5e58('0x15')});}}[_0x5e58('0x2a')](){const _0x2646e8=this[_0x5e58('0x2d')][_0x5e58('0x2')]['get'](_0x5e58('0x42')),_0x3d5e28=this[_0x5e58('0x2d')][_0x5e58('0x6')]['get'](_0x5e58('0x17'));if(!_0x2646e8[_0x5e58('0x4a')])return!0x1;const _0x2169fd=_0x3d5e28[_0x5e58('0x3')](this['editor'][_0x5e58('0x44')][_0x5e58('0xd')][_0x5e58('0x40')]);for(const _0x323cd5 of _0x2169fd)for(const _0x3265b2 of _0x2169fd)if(_0x323cd5!=_0x3265b2&&!this['_areMergableCells'](_0x323cd5,_0x3265b2))return!0x1;return!0x0;}[_0x5e58('0x14')](_0x2d751a,_0x1f2a67){const _0x238d4a=this[_0x5e58('0x2d')][_0x5e58('0x6')]['get'](_0x5e58('0x3a')),_0x51a8db=this[_0x5e58('0x2d')]['model'][_0x5e58('0x1b')](_0x2d751a),_0x5a7da6=this[_0x5e58('0x2d')][_0x5e58('0x44')][_0x5e58('0x1b')](_0x1f2a67),_0x261ca8=new Set(),_0x3a87a4=new Set();for(const _0x940ffd of _0x238d4a[_0x5e58('0x1a')]())if((_0x5e58('0x4d')==_0x940ffd['type']||_0x5e58('0x4')==_0x940ffd['type']||_0x5e58('0x42')==_0x940ffd[_0x5e58('0xc')])&&_0x940ffd[_0x5e58('0xa')])for(const _0x14cf83 of _0x940ffd[_0x5e58('0x49')]())_0x14cf83['containsRange'](_0x51a8db,!0x0)&&_0x261ca8[_0x5e58('0x36')](_0x940ffd[_0x5e58('0x2c')]+':'+_0x940ffd['author']['id']),_0x14cf83[_0x5e58('0x7')](_0x5a7da6,!0x0)&&_0x3a87a4['add'](_0x940ffd[_0x5e58('0x2c')]+':'+_0x940ffd[_0x5e58('0x19')]['id']);if(_0x261ca8[_0x5e58('0x2b')]!=_0x3a87a4[_0x5e58('0x2b')])return!0x1;for(const _0x1417d4 of _0x261ca8)if(!_0x3a87a4[_0x5e58('0x5')](_0x1417d4))return!0x1;return!0x0;}}
23
+ const _0x29c9=['editor','document','change','getAncestors','highest','*Split\x20cell:*\x20horizontally','_tablePostFixingSubtypes','requires','getFirstPosition','execute','commandName','$graveyard','author','splitTableCellHorizontally','formatBlock','get','root','from','value','plugins','tableCell','add','TrackChangesEditing','markMultiRangeBlockFormat','getSelectionAffectedTableCells','_areSelectedCellsMergable','getSuggestions','commands','mergeTableCellUp','subType','horizontally','element','stop','format','*Split\x20cell:*\x20vertically','*Merge\x20cells*','_areMergableCells','insertion','push','mergeTableCellLeft','containsRange','enableCommand','map','registerCustomCallback','splitTableCellVertically','filter','isInContent','find','locale','TableUtils','rootName','low','size','_suggestionFactory','mergeTableCellDown','refresh','accept','trackChanges','registerDescriptionCallback','_isForcedDefaultExecutionBlock','mergeTableCells','getRanges','afterInit','cell','direction','setSelection','selection','mergeTableCellRight','model','length','_acceptFormatSuggestionCallbackFactory','type','return','createRangeOn','_descriptionFactory'];(function(_0x517f6f,_0x29c91b){const _0x5e8cac=function(_0x23789f){while(--_0x23789f){_0x517f6f['push'](_0x517f6f['shift']());}};_0x5e8cac(++_0x29c91b);}(_0x29c9,0x1ba));const _0x5e8c=function(_0x517f6f,_0x29c91b){_0x517f6f=_0x517f6f-0x0;let _0x5e8cac=_0x29c9[_0x517f6f];return _0x5e8cac;};import{Plugin as _0x434730}from'ckeditor5/src/core';import _0x5c811f from'./table';import{LiveRange as _0x5f411e}from'ckeditor5/src/engine';import{getTranslation as _0x4af285}from'../utils/common-translations';export default class mt extends _0x434730{static get[_0x5e8c('0xf')](){return[_0x5c811f];}[_0x5e8c('0x46')](){const _0x414c40=this[_0x5e8c('0x8')],_0x180cf0=_0x414c40[_0x5e8c('0x1')][_0x5e8c('0x9')][_0x5e8c('0x4a')],_0x1f1266=_0x414c40[_0x5e8c('0x38')];if(!_0x414c40[_0x5e8c('0x1b')]['has']('TableEditing'))return;const _0x15bc21=_0x414c40[_0x5e8c('0x1b')][_0x5e8c('0x17')](_0x5e8c('0x1e')),_0x194eb0=_0x414c40[_0x5e8c('0x1b')][_0x5e8c('0x17')](_0x5e8c('0x39')),_0x45ff12=_0x414c40['plugins']['get'](_0x5c811f);_0x45ff12[_0x5e8c('0xe')][_0x5e8c('0x2e')](_0x5e8c('0x44')),_0x15bc21['enableCommand']('mergeTableCells',()=>{const _0x25e069=_0x194eb0[_0x5e8c('0x20')](_0x414c40['model'][_0x5e8c('0x9')][_0x5e8c('0x4a')]);_0x414c40[_0x5e8c('0x1')]['change'](()=>{_0x15bc21[_0x5e8c('0x1f')](_0x25e069,{'commandName':_0x5e8c('0x44'),'commandParams':[]},[],_0x5e8c('0x44'));});}),_0x414c40[_0x5e8c('0x23')][_0x5e8c('0x17')]('mergeTableCells')['on'](_0x5e8c('0x11'),(_0x243d23,_0x58dd67)=>{_0x414c40['commands']['get'](_0x5e8c('0x41'))[_0x5e8c('0x1a')]&&(_0x58dd67[_0x5e8c('0x2')]>0x0&&_0x58dd67[_0x58dd67[_0x5e8c('0x2')]-0x1]&&_0x58dd67[_0x58dd67['length']-0x1]['forceDefaultExecution']||_0x15bc21[_0x5e8c('0x43')]||this[_0x5e8c('0x21')]()||_0x243d23[_0x5e8c('0x28')]());},{'priority':_0x5e8c('0xc')});for(const _0x595004 of[_0x5e8c('0x24'),'mergeTableCellRight',_0x5e8c('0x3e'),_0x5e8c('0x2f')]){const _0x230db7=_0x414c40['commands']['get'](_0x595004);_0x15bc21[_0x5e8c('0x31')](_0x595004,()=>{const _0x294eb7=_0x414c40[_0x5e8c('0x1')][_0x5e8c('0x9')][_0x5e8c('0x4a')][_0x5e8c('0x10')]()[_0x5e8c('0xb')]()[_0x5e8c('0x37')](_0x39d7f3=>_0x39d7f3['is'](_0x5e8c('0x27'),_0x5e8c('0x1c'))),_0x1d9693=_0x230db7[_0x5e8c('0x1a')];_0x414c40['model'][_0x5e8c('0xa')](()=>{_0x15bc21[_0x5e8c('0x1f')]([_0x294eb7,_0x1d9693],{'commandName':'mergeTableCells','commandParams':[]},[],_0x5e8c('0x44'));});});}for(const _0x16d4c4 of['splitTableCellVertically',_0x5e8c('0x15')]){const _0x69c2f6=_0x414c40[_0x5e8c('0x23')][_0x5e8c('0x17')](_0x16d4c4);_0x15bc21[_0x5e8c('0x31')](_0x16d4c4,()=>{const _0x115b7a=_0x194eb0['getSelectionAffectedTableCells'](_0x414c40[_0x5e8c('0x1')][_0x5e8c('0x9')]['selection'])[0x0],_0x5341b1=_0x115b7a['findAncestor']('table'),{column:_0x15b32b,row:_0x58243c}=_0x194eb0['getCellLocation'](_0x115b7a);let _0x5ac49c=[];if(_0x5e8c('0x26')==_0x69c2f6[_0x5e8c('0x48')]){const _0x28833a=_0x194eb0['createTableWalker'](_0x5341b1,{'startRow':_0x58243c,'endRow':_0x58243c,'includeAllSlots':!0x0});_0x5ac49c=Array[_0x5e8c('0x19')](_0x28833a)['map'](_0x5b3455=>_0x5b3455['cell']);}else{const _0x49ab1d=_0x194eb0['createTableWalker'](_0x5341b1,{'column':_0x15b32b,'includeAllSlots':!0x0});_0x5ac49c=Array[_0x5e8c('0x19')](_0x49ab1d)[_0x5e8c('0x32')](_0x41117f=>_0x41117f[_0x5e8c('0x47')]);}_0x414c40[_0x5e8c('0x1')][_0x5e8c('0xa')](_0x3a7b67=>{_0x15bc21['markBlockFormat'](_0x3a7b67[_0x5e8c('0x6')](_0x115b7a),{'commandName':_0x16d4c4,'commandParams':[]},_0x5ac49c,_0x16d4c4);});});}_0x15bc21['_descriptionFactory'][_0x5e8c('0x42')](_0x254f10=>{const {data:_0x25ed80}=_0x254f10;if(_0x25ed80)return _0x5e8c('0x44')==_0x25ed80[_0x5e8c('0x12')]?{'type':'format','content':_0x4af285(_0x1f1266,_0x5e8c('0x2b'))}:void 0x0;}),_0x15bc21[_0x5e8c('0x7')]['registerDescriptionCallback'](_0x55d291=>{const {data:_0x48bba2}=_0x55d291;if(_0x48bba2)return _0x5e8c('0x34')==_0x48bba2[_0x5e8c('0x12')]?{'type':_0x5e8c('0x29'),'content':_0x4af285(_0x1f1266,_0x5e8c('0x2a'))}:'splitTableCellHorizontally'==_0x48bba2[_0x5e8c('0x12')]?{'type':'format','content':_0x4af285(_0x1f1266,_0x5e8c('0xd'))}:void 0x0;});const _0x3a0f59=_0x45ff12[_0x5e8c('0x3')]();for(const _0x3b38e1 of[_0x5e8c('0x24'),'mergeTableCellRight',_0x5e8c('0x3e'),'mergeTableCellLeft'])_0x15bc21[_0x5e8c('0x3d')][_0x5e8c('0x33')]('formatBlock',_0x3b38e1,'accept',_0x3a0f59);for(const _0x4fdd34 of[_0x5e8c('0x34'),'splitTableCellHorizontally'])_0x15bc21[_0x5e8c('0x3d')][_0x5e8c('0x33')](_0x5e8c('0x16'),_0x4fdd34,'accept',_0x3a0f59);_0x15bc21['_suggestionFactory']['registerCustomCallback'](_0x5e8c('0x16'),_0x5e8c('0x44'),_0x5e8c('0x40'),_0x51b6b6=>{_0x414c40[_0x5e8c('0x1')]['change'](_0x1a6f92=>{const _0x439ff2=Array[_0x5e8c('0x19')](_0x180cf0[_0x5e8c('0x45')]())['map'](_0x34d369=>_0x5f411e['fromRange'](_0x34d369));_0x1a6f92[_0x5e8c('0x49')](_0x51b6b6),_0x414c40['commands']['get'](_0x5e8c('0x44'))[_0x5e8c('0x3f')](),_0x414c40['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3a2c9c=_0x439ff2[_0x5e8c('0x35')](_0x3b8239=>_0x5e8c('0x13')!=_0x3b8239[_0x5e8c('0x18')][_0x5e8c('0x3a')]);_0x3a2c9c[_0x5e8c('0x2')]>0x0&&_0x1a6f92[_0x5e8c('0x49')](_0x3a2c9c);for(const _0x88043a of _0x439ff2)_0x88043a['detach']();});});for(const _0x1c54cb of[_0x5e8c('0x24'),'mergeTableCellDown',_0x5e8c('0x2f'),_0x5e8c('0x0')]){const _0x4f5eda=_0x414c40[_0x5e8c('0x23')][_0x5e8c('0x17')](_0x1c54cb);_0x4f5eda['on']('set:isEnabled',(_0x5b0b7c,_0x483df0,_0x327d6b)=>{if(_0x327d6b){const _0x5e352b=_0x414c40[_0x5e8c('0x1')][_0x5e8c('0x9')][_0x5e8c('0x4a')][_0x5e8c('0x10')]()[_0x5e8c('0xb')]()['find'](_0x586166=>_0x586166['is'](_0x5e8c('0x27'),_0x5e8c('0x1c')));this[_0x5e8c('0x2c')](_0x4f5eda[_0x5e8c('0x1a')],_0x5e352b)||(_0x5b0b7c[_0x5e8c('0x5')]=!0x1,_0x5b0b7c['stop']());}},{'priority':_0x5e8c('0x3b')});}}[_0x5e8c('0x21')](){const _0x2529b5=this[_0x5e8c('0x8')][_0x5e8c('0x23')][_0x5e8c('0x17')](_0x5e8c('0x44')),_0xfd0f69=this[_0x5e8c('0x8')][_0x5e8c('0x1b')][_0x5e8c('0x17')](_0x5e8c('0x39'));if(!_0x2529b5['isEnabled'])return!0x1;const _0x4103a6=_0xfd0f69[_0x5e8c('0x20')](this[_0x5e8c('0x8')][_0x5e8c('0x1')][_0x5e8c('0x9')][_0x5e8c('0x4a')]);for(const _0x58fe66 of _0x4103a6)for(const _0x1fde36 of _0x4103a6)if(_0x58fe66!=_0x1fde36&&!this[_0x5e8c('0x2c')](_0x58fe66,_0x1fde36))return!0x1;return!0x0;}[_0x5e8c('0x2c')](_0x5daca1,_0x239660){const _0x580246=this[_0x5e8c('0x8')][_0x5e8c('0x1b')][_0x5e8c('0x17')](_0x5e8c('0x1e')),_0xa86952=this[_0x5e8c('0x8')][_0x5e8c('0x1')][_0x5e8c('0x6')](_0x5daca1),_0x1cec9d=this['editor'][_0x5e8c('0x1')][_0x5e8c('0x6')](_0x239660),_0x4faf1a=new Set(),_0x4e3a2a=new Set();for(const _0x14518c of _0x580246[_0x5e8c('0x22')]())if((_0x5e8c('0x2d')==_0x14518c['type']||'deletion'==_0x14518c[_0x5e8c('0x4')]||_0x5e8c('0x44')==_0x14518c[_0x5e8c('0x25')])&&_0x14518c[_0x5e8c('0x36')])for(const _0x3810b7 of _0x14518c['getRanges']())_0x3810b7[_0x5e8c('0x30')](_0xa86952,!0x0)&&_0x4faf1a['add'](_0x14518c['type']+':'+_0x14518c[_0x5e8c('0x14')]['id']),_0x3810b7[_0x5e8c('0x30')](_0x1cec9d,!0x0)&&_0x4e3a2a[_0x5e8c('0x1d')](_0x14518c[_0x5e8c('0x4')]+':'+_0x14518c[_0x5e8c('0x14')]['id']);if(_0x4faf1a[_0x5e8c('0x3c')]!=_0x4e3a2a[_0x5e8c('0x3c')])return!0x1;for(const _0x36425a of _0x4faf1a)if(!_0x4e3a2a['has'](_0x36425a))return!0x1;return!0x0;}}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @module track-changes/integrations/tableproperties
3
+ */
4
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
5
+ import type { Range } from 'ckeditor5/src/engine';
6
+ import type { default as Suggestion } from '../suggestion';
7
+ import type { Description } from '../suggestiondescriptionfactory';
8
+ /**
9
+ * Provides track changes plugin integration for table properties feature.
10
+ */
11
+ export default class TrackChangesTableProperties extends Plugin {
12
+ constructor(editor: Editor);
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ static get pluginName(): 'TrackChangesTableProperties';
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ afterInit(): void;
21
+ handleDiscardAction(properties: Array<string>, ranges: Array<Range>, data: any): void;
22
+ handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
23
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xdaf2=['tableCellHeight','handleDiscardAction','_descriptionFactory','enableCommand','registerCustomCallback','has','tableProperties','_suggestionFactory','document','tableCellProperties','TrackChangesTableProperties','*Format:*\x20change\x20table\x20properties','findAncestor','discard','tableCellPadding','data','subType','registerDescriptionCallback','table','tableWidth','get','*Format:*\x20change\x20table\x20cell\x20properties','getSelectionAffectedTableCells','TrackChangesEditing','TableUtils','tableBorderStyle','locale','editor','afterInit','tableBackgroundColor','tableCellBorderColor','formatBlock','_getSuggestion','plugins','getSuggestions','tableCellBorderStyle','getContainedElement','handleSuggestionDescription','tableCellHorizontalAlignment','change','getSuggestionCallback','accept','tableCellVerticalAlignment','enqueueChange','removeAttribute','batch','tableBorderWidth','selection','commandParams','tableCellBorderWidth','join','start','_handlePropertyChange','pluginName','format','model'];(function(_0xaa8fef,_0xdaf2a){const _0x4c2759=function(_0x49cabf){while(--_0x49cabf){_0xaa8fef['push'](_0xaa8fef['shift']());}};_0x4c2759(++_0xdaf2a);}(_0xdaf2,0x90));const _0x4c27=function(_0xaa8fef,_0xdaf2a){_0xaa8fef=_0xaa8fef-0x0;let _0x4c2759=_0xdaf2[_0xaa8fef];return _0x4c2759;};import{Plugin as _0x3e12c3}from'ckeditor5/src/core';import{getTranslation as _0x587493}from'../utils/common-translations';export default class At extends _0x3e12c3{static get[_0x4c27('0x15')](){return _0x4c27('0x22');}[_0x4c27('0x34')](){const _0x183051=this[_0x4c27('0x33')][_0x4c27('0x1')][_0x4c27('0x2c')]('TrackChangesEditing');if(this[_0x4c27('0x33')]['plugins'][_0x4c27('0x1d')]('TablePropertiesEditing')){this[_0x4c27('0x1e')]=['tableBorderColor',_0x4c27('0x31'),_0x4c27('0xe'),'tableAlignment',_0x4c27('0x2b'),'tableHeight',_0x4c27('0x35')];for(const _0x2a6797 of this[_0x4c27('0x1e')])_0x183051[_0x4c27('0x1b')](_0x2a6797,(_0x3355bc,_0x4503fb)=>{const _0x1307c5=this[_0x4c27('0x33')]['model'][_0x4c27('0x20')][_0x4c27('0xf')]['getFirstPosition']()[_0x4c27('0x24')](_0x4c27('0x2a'));this[_0x4c27('0x14')](_0x2a6797,[_0x1307c5],this[_0x4c27('0x1e')],_0x4c27('0x1e'),_0x3355bc,_0x4503fb);});_0x183051[_0x4c27('0x1f')][_0x4c27('0x1c')]('formatBlock',_0x4c27('0x1e'),_0x4c27('0x9'),_0x183051[_0x4c27('0x1f')][_0x4c27('0x8')]('formatBlock',null,_0x4c27('0x25'))),_0x183051[_0x4c27('0x1f')][_0x4c27('0x1c')](_0x4c27('0x37'),_0x4c27('0x1e'),_0x4c27('0x25'),(_0x2a65e6,_0x361c41)=>this[_0x4c27('0x19')](this['tableProperties'],_0x2a65e6,_0x361c41)),_0x183051['_suggestionFactory'][_0x4c27('0x1c')](_0x4c27('0x37'),_0x4c27('0x1e'),_0x4c27('0x12'),()=>!0x1);}if(this[_0x4c27('0x33')][_0x4c27('0x1')]['has']('TableCellPropertiesEditing')){this[_0x4c27('0x21')]=[_0x4c27('0x36'),_0x4c27('0x3'),_0x4c27('0x11'),_0x4c27('0x26'),'tableCellWidth',_0x4c27('0x18'),'tableCellBackgroundColor',_0x4c27('0x6'),_0x4c27('0xa')];for(const _0x437c95 of this['tableCellProperties'])_0x183051['enableCommand'](_0x437c95,(_0x3ef7dd,_0x31b7ec)=>{const _0xb2cdfe=this[_0x4c27('0x33')]['plugins'][_0x4c27('0x2c')](_0x4c27('0x30'))[_0x4c27('0x2e')](this[_0x4c27('0x33')][_0x4c27('0x17')]['document']['selection']);this[_0x4c27('0x14')](_0x437c95,_0xb2cdfe,this[_0x4c27('0x21')],_0x4c27('0x21'),_0x3ef7dd,_0x31b7ec);});_0x183051[_0x4c27('0x1f')]['registerCustomCallback'](_0x4c27('0x37'),_0x4c27('0x21'),_0x4c27('0x9'),_0x183051[_0x4c27('0x1f')][_0x4c27('0x8')](_0x4c27('0x37'),null,_0x4c27('0x25'))),_0x183051['_suggestionFactory']['registerCustomCallback'](_0x4c27('0x37'),'tableCellProperties',_0x4c27('0x25'),(_0x47365f,_0x599671)=>this[_0x4c27('0x19')](this[_0x4c27('0x21')],_0x47365f,_0x599671)),_0x183051[_0x4c27('0x1f')][_0x4c27('0x1c')](_0x4c27('0x37'),'tableCellProperties',_0x4c27('0x12'),()=>!0x1);}_0x183051[_0x4c27('0x1a')][_0x4c27('0x29')](_0x13b878=>this[_0x4c27('0x5')](_0x13b878));}[_0x4c27('0x14')](_0x4850d1,_0x1b0219,_0x568eaf,_0x413390,_0x345dfc,_0x3e3cbe){const _0x1c09e8=this[_0x4c27('0x33')]['plugins'][_0x4c27('0x2c')]('TrackChangesEditing');this[_0x4c27('0x33')][_0x4c27('0x17')][_0x4c27('0xb')](_0x3e3cbe[_0x4c27('0xd')],()=>{for(const _0x5ce8f2 of _0x1b0219){if(this[_0x4c27('0x0')](_0x5ce8f2,_0x413390))_0x345dfc(_0x3e3cbe);else{const _0x5adb1a={};for(const _0x2d8a82 of _0x568eaf){const _0x373d59=_0x5ce8f2['getAttribute'](_0x2d8a82);void 0x0!==_0x373d59&&(_0x5adb1a[_0x2d8a82]=_0x373d59);}_0x345dfc(_0x3e3cbe),_0x1c09e8['markBlockFormat'](_0x5ce8f2,{'commandParams':[_0x5adb1a]},[],_0x413390);}}});}[_0x4c27('0x19')](_0xd0d5ba,_0x1c91aa,_0x383945){const _0x5ad2de=_0x1c91aa[0x0][_0x4c27('0x13')]['nodeAfter'],_0x127e0e=_0x383945[_0x4c27('0x10')][0x0];this[_0x4c27('0x33')]['model'][_0x4c27('0x7')](_0x34aced=>{for(const _0x5b87c1 of _0xd0d5ba)void 0x0!==_0x127e0e[_0x5b87c1]?_0x34aced['setAttribute'](_0x5b87c1,_0x127e0e[_0x5b87c1],_0x5ad2de):_0x34aced[_0x4c27('0xc')](_0x5b87c1,_0x5ad2de);});}[_0x4c27('0x5')](_0x4281e0){if(_0x4281e0[_0x4c27('0x27')])switch(_0x4281e0[_0x4c27('0x28')]){case _0x4c27('0x1e'):return{'type':_0x4c27('0x16'),'content':_0x587493(this[_0x4c27('0x33')][_0x4c27('0x32')],_0x4c27('0x23'))};case _0x4c27('0x21'):return{'type':_0x4c27('0x16'),'content':_0x587493(this['editor'][_0x4c27('0x32')],_0x4c27('0x2d'))};}}[_0x4c27('0x0')](_0x1d3716,_0x333038){const _0x1a4121=this[_0x4c27('0x33')][_0x4c27('0x1')][_0x4c27('0x2c')](_0x4c27('0x2f'));for(const _0x282a6e of _0x1a4121[_0x4c27('0x2')]({'skipNotAttached':!0x0})){const _0x275ced=_0x282a6e[_0x4c27('0x4')]();if(_0x282a6e[_0x4c27('0x28')]===_0x333038&&_0x275ced===_0x1d3716)return _0x282a6e;}return null;}}
23
+ const _0x264a=['markBlockFormat','getSuggestionCallback','format','change','tableBorderColor','handleDiscardAction','getContainedElement','subType','getSuggestions','get','getSelectionAffectedTableCells','tableCellBorderStyle','*Format:*\x20change\x20table\x20properties','model','tableCellPadding','_handlePropertyChange','TableCellPropertiesEditing','_suggestionFactory','tableCellBorderWidth','nodeAfter','enqueueChange','tableCellProperties','registerCustomCallback','tableBorderStyle','*Format:*\x20change\x20table\x20cell\x20properties','getFirstPosition','tableCellWidth','table','data','enableCommand','document','getAttribute','start','locale','plugins','tableCellHorizontalAlignment','tableCellBorderColor','join','tableWidth','TablePropertiesEditing','selection','setAttribute','handleSuggestionDescription','discard','tableProperties','accept','has','formatBlock','tableCellHeight','findAncestor','tableCellBackgroundColor','_getSuggestion','TrackChangesEditing','commandParams','editor'];(function(_0x233e6e,_0x264a93){const _0x347979=function(_0x5cd2c3){while(--_0x5cd2c3){_0x233e6e['push'](_0x233e6e['shift']());}};_0x347979(++_0x264a93);}(_0x264a,0xf8));const _0x3479=function(_0x233e6e,_0x264a93){_0x233e6e=_0x233e6e-0x0;let _0x347979=_0x264a[_0x233e6e];return _0x347979;};import{Plugin as _0x264f34}from'ckeditor5/src/core';import{getTranslation as _0x26e3ed}from'../utils/common-translations';export default class It extends _0x264f34{constructor(_0x4116be){super(_0x4116be),this[_0x3479('0x10')]=[_0x3479('0x1f'),_0x3479('0x32'),'tableBorderWidth','tableAlignment',_0x3479('0xa'),'tableHeight','tableBackgroundColor'],this[_0x3479('0x30')]=[_0x3479('0x8'),_0x3479('0x26'),_0x3479('0x2d'),_0x3479('0x29'),_0x3479('0x35'),_0x3479('0x14'),_0x3479('0x16'),_0x3479('0x7'),'tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x312de5=this['editor'][_0x3479('0x6')][_0x3479('0x24')](_0x3479('0x18'));if(this[_0x3479('0x1a')]['plugins'][_0x3479('0x12')](_0x3479('0xb'))){for(const _0x38559f of this[_0x3479('0x10')])_0x312de5[_0x3479('0x1')](_0x38559f,(_0x226b14,_0x57c82d)=>{const _0x4fc610=this[_0x3479('0x1a')][_0x3479('0x28')]['document'][_0x3479('0xc')][_0x3479('0x34')]()[_0x3479('0x15')](_0x3479('0x36'));this[_0x3479('0x2a')](_0x38559f,[_0x4fc610],this[_0x3479('0x10')],_0x3479('0x10'),_0x226b14,_0x57c82d);});_0x312de5[_0x3479('0x2c')][_0x3479('0x31')]('formatBlock',_0x3479('0x10'),_0x3479('0x11'),_0x312de5[_0x3479('0x2c')][_0x3479('0x1c')](_0x3479('0x13'),null,'discard')),_0x312de5[_0x3479('0x2c')][_0x3479('0x31')](_0x3479('0x13'),'tableProperties',_0x3479('0xf'),(_0x401e47,_0x9da8d8)=>this[_0x3479('0x20')](this['tableProperties'],_0x401e47,_0x9da8d8)),_0x312de5[_0x3479('0x2c')][_0x3479('0x31')](_0x3479('0x13'),_0x3479('0x10'),_0x3479('0x9'),()=>!0x1);}if(this[_0x3479('0x1a')][_0x3479('0x6')][_0x3479('0x12')](_0x3479('0x2b'))){for(const _0xd20c88 of this['tableCellProperties'])_0x312de5[_0x3479('0x1')](_0xd20c88,(_0x568de9,_0x297487)=>{const _0x431a57=this[_0x3479('0x1a')]['plugins'][_0x3479('0x24')]('TableUtils')[_0x3479('0x25')](this[_0x3479('0x1a')]['model'][_0x3479('0x2')][_0x3479('0xc')]);this[_0x3479('0x2a')](_0xd20c88,_0x431a57,this[_0x3479('0x30')],_0x3479('0x30'),_0x568de9,_0x297487);});_0x312de5['_suggestionFactory'][_0x3479('0x31')](_0x3479('0x13'),_0x3479('0x30'),_0x3479('0x11'),_0x312de5[_0x3479('0x2c')][_0x3479('0x1c')]('formatBlock',null,_0x3479('0xf'))),_0x312de5[_0x3479('0x2c')]['registerCustomCallback'](_0x3479('0x13'),_0x3479('0x30'),_0x3479('0xf'),(_0x462365,_0x551a50)=>this['handleDiscardAction'](this['tableCellProperties'],_0x462365,_0x551a50)),_0x312de5[_0x3479('0x2c')][_0x3479('0x31')](_0x3479('0x13'),_0x3479('0x30'),'join',()=>!0x1);}_0x312de5['_descriptionFactory']['registerDescriptionCallback'](_0x3e2d29=>this[_0x3479('0xe')](_0x3e2d29));}[_0x3479('0x2a')](_0x50f075,_0x27dfaf,_0x22b183,_0x3d5a5e,_0x78644d,_0x290aa2){const _0x393073=this[_0x3479('0x1a')][_0x3479('0x6')][_0x3479('0x24')](_0x3479('0x18'));this[_0x3479('0x1a')]['model'][_0x3479('0x2f')](_0x290aa2['batch'],()=>{for(const _0x1b8b3a of _0x27dfaf){if(this['_getSuggestion'](_0x1b8b3a,_0x3d5a5e))_0x78644d(_0x290aa2);else{const _0x4a25c2={};for(const _0x2f843f of _0x22b183){const _0x1aa73d=_0x1b8b3a[_0x3479('0x3')](_0x2f843f);void 0x0!==_0x1aa73d&&(_0x4a25c2[_0x2f843f]=_0x1aa73d);}_0x78644d(_0x290aa2),_0x393073[_0x3479('0x1b')](_0x1b8b3a,{'commandParams':[_0x4a25c2]},[],_0x3d5a5e);}}});}[_0x3479('0x20')](_0x305a09,_0x4989a7,_0x2f4988){const _0x1fa92f=_0x4989a7[0x0][_0x3479('0x4')][_0x3479('0x2e')],_0x438b34=_0x2f4988[_0x3479('0x19')][0x0];this['editor']['model'][_0x3479('0x1e')](_0xe510da=>{for(const _0x191716 of _0x305a09)void 0x0!==_0x438b34[_0x191716]?_0xe510da[_0x3479('0xd')](_0x191716,_0x438b34[_0x191716],_0x1fa92f):_0xe510da['removeAttribute'](_0x191716,_0x1fa92f);});}['handleSuggestionDescription'](_0xe0d820){if(_0xe0d820[_0x3479('0x0')])switch(_0xe0d820[_0x3479('0x22')]){case'tableProperties':return{'type':_0x3479('0x1d'),'content':_0x26e3ed(this[_0x3479('0x1a')]['locale'],_0x3479('0x27'))};case _0x3479('0x30'):return{'type':'format','content':_0x26e3ed(this[_0x3479('0x1a')][_0x3479('0x5')],_0x3479('0x33'))};}}[_0x3479('0x17')](_0xc64b31,_0x36c4c3){const _0x12484b=this[_0x3479('0x1a')][_0x3479('0x6')][_0x3479('0x24')](_0x3479('0x18'));for(const _0x36cc10 of _0x12484b[_0x3479('0x23')]({'skipNotAttached':!0x0})){const _0x55087c=_0x36cc10[_0x3479('0x21')]();if(_0x36cc10[_0x3479('0x22')]===_0x36c4c3&&_0x55087c===_0xc64b31)return _0x36cc10;}return null;}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/title
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for title feature.
7
+ */
8
+ export default class TrackChangesTitle extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2dc9=['locale','removeMarker','title-content','registerElementLabel','_splitMarkerName','forward','ELEMENT_TITLE','getChangedMarkers','nodeBefore','isEqual','isTouching','plugins','differ','model','getNearestSelectionRange','end','document','isCollapsed','newRange','TrackChangesEditing','editor','_descriptionFactory','start','schema','from','updateMarker','Title','afterInit','element','suggestion'];(function(_0x1d09f1,_0x2dc93c){const _0x32340b=function(_0x56a993){while(--_0x56a993){_0x1d09f1['push'](_0x1d09f1['shift']());}};_0x32340b(++_0x2dc93c);}(_0x2dc9,0xde));const _0x3234=function(_0x1d09f1,_0x2dc93c){_0x1d09f1=_0x1d09f1-0x0;let _0x32340b=_0x2dc9[_0x1d09f1];return _0x32340b;};import{Plugin as _0x2405a0}from'ckeditor5/src/core';import{getTranslation as _0x1b6562}from'../utils/common-translations';export default class bt extends _0x2405a0{[_0x3234('0xf')](){const _0x3d14bd=this[_0x3234('0x8')];if(!_0x3d14bd[_0x3234('0x1d')]['has'](_0x3234('0xe')))return;const _0xd0febb=_0x3d14bd[_0x3234('0x1d')]['get'](_0x3234('0x7'));_0xd0febb[_0x3234('0x9')][_0x3234('0x15')](_0x3234('0x14'),()=>_0x1b6562(_0x3d14bd[_0x3234('0x12')],_0x3234('0x18'))),_0x3d14bd['model'][_0x3234('0x4')]['registerPostFixer'](_0x20ef4c=>{let _0x41fbf0=!0x1;const _0x210ecf=Array[_0x3234('0xc')](_0x3d14bd[_0x3234('0x1')][_0x3234('0x4')][_0x3234('0x0')][_0x3234('0x19')]());for(const {name:_0x38fefc,data:_0x3b6360}of _0x210ecf){const {group:_0x53e1fb}=_0xd0febb[_0x3234('0x16')](_0x38fefc);if(_0x3234('0x11')!==_0x53e1fb||!_0x3b6360[_0x3234('0x6')])continue;const _0x26d851=_0x3b6360[_0x3234('0x6')],_0x395f5c=_0x26d851[_0x3234('0x3')][_0x3234('0x1a')];if(!_0x395f5c||!_0x395f5c['is'](_0x3234('0x10'),_0x3234('0x14')))continue;if(!_0x26d851['start'][_0x3234('0x1c')](_0x26d851[_0x3234('0x3')]))continue;const _0x55c810=_0x3d14bd['model'][_0x3234('0xb')][_0x3234('0x2')](_0x26d851['end'],_0x3234('0x17'));if(_0x55c810&&_0x55c810[_0x3234('0x5')]){const _0x34b0ca=_0x20ef4c['createRange'](_0x26d851[_0x3234('0xa')],_0x55c810[_0x3234('0xa')]);_0x34b0ca[_0x3234('0x1b')](_0x26d851)||(_0x20ef4c[_0x3234('0xd')](_0x38fefc,{'range':_0x34b0ca}),_0x41fbf0=!0x0);}_0x41fbf0||(_0x20ef4c[_0x3234('0x13')](_0x38fefc),_0x41fbf0=!0x0);}return _0x41fbf0;});}}
23
+ const _0x41f3=['afterInit','title-content','locale','from','isEqual','isTouching','end','forward','editor','removeMarker','ELEMENT_TITLE','model','createRange','newRange','getChangedMarkers','getNearestSelectionRange','get','_splitMarkerName','suggestion','start','schema','registerPostFixer','has','Title','isCollapsed','plugins','TrackChangesEditing','element','updateMarker'];(function(_0x9f3626,_0x41f3e3){const _0x91fb5b=function(_0x223727){while(--_0x223727){_0x9f3626['push'](_0x9f3626['shift']());}};_0x91fb5b(++_0x41f3e3);}(_0x41f3,0x8d));const _0x91fb=function(_0x9f3626,_0x41f3e3){_0x9f3626=_0x9f3626-0x0;let _0x91fb5b=_0x41f3[_0x9f3626];return _0x91fb5b;};import{Plugin as _0x5efb28}from'ckeditor5/src/core';import{getTranslation as _0x274d7f}from'../utils/common-translations';export default class wt extends _0x5efb28{[_0x91fb('0x4')](){const _0x4fc8b2=this[_0x91fb('0xc')];if(!_0x4fc8b2[_0x91fb('0x0')][_0x91fb('0x1a')](_0x91fb('0x1b')))return;const _0x557924=_0x4fc8b2[_0x91fb('0x0')][_0x91fb('0x14')](_0x91fb('0x1'));_0x557924['_descriptionFactory']['registerElementLabel'](_0x91fb('0x5'),()=>_0x274d7f(_0x4fc8b2[_0x91fb('0x6')],_0x91fb('0xe'))),_0x4fc8b2[_0x91fb('0xf')]['document'][_0x91fb('0x19')](_0x598458=>{let _0x7640f3=!0x1;const _0x3dcc14=Array[_0x91fb('0x7')](_0x4fc8b2[_0x91fb('0xf')]['document']['differ'][_0x91fb('0x12')]());for(const {name:_0x180df2,data:_0x8f2d57}of _0x3dcc14){const {group:_0x3bc5be}=_0x557924[_0x91fb('0x15')](_0x180df2);if(_0x91fb('0x16')!==_0x3bc5be||!_0x8f2d57[_0x91fb('0x11')])continue;const _0x5a2a95=_0x8f2d57['newRange'],_0x29d5ae=_0x5a2a95[_0x91fb('0xa')]['nodeBefore'];if(!_0x29d5ae||!_0x29d5ae['is'](_0x91fb('0x2'),_0x91fb('0x5')))continue;if(!_0x5a2a95[_0x91fb('0x17')][_0x91fb('0x9')](_0x5a2a95['end']))continue;const _0x480e41=_0x4fc8b2['model'][_0x91fb('0x18')][_0x91fb('0x13')](_0x5a2a95[_0x91fb('0xa')],_0x91fb('0xb'));if(_0x480e41&&_0x480e41[_0x91fb('0x1c')]){const _0x5e3e05=_0x598458[_0x91fb('0x10')](_0x5a2a95[_0x91fb('0x17')],_0x480e41[_0x91fb('0x17')]);_0x5e3e05[_0x91fb('0x8')](_0x5a2a95)||(_0x598458[_0x91fb('0x3')](_0x180df2,{'range':_0x5e3e05}),_0x7640f3=!0x0);}_0x7640f3||(_0x598458[_0x91fb('0xd')](_0x180df2),_0x7640f3=!0x0);}return _0x7640f3;});}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/undo
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for {@link module:undo/undo~Undo undo feature}.
7
+ */
8
+ export default class TrackChangesUndo extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b21=['has','TrackChangesEditing','redo','undo','afterInit','plugins','editor'];(function(_0x4bc2cc,_0x2b21cc){const _0x2d878b=function(_0x339d9d){while(--_0x339d9d){_0x4bc2cc['push'](_0x4bc2cc['shift']());}};_0x2d878b(++_0x2b21cc);}(_0x2b21,0x1a2));const _0x2d87=function(_0x4bc2cc,_0x2b21cc){_0x4bc2cc=_0x4bc2cc-0x0;let _0x2d878b=_0x2b21[_0x4bc2cc];return _0x2d878b;};import{Plugin as _0x232324}from'ckeditor5/src/core';export default class St extends _0x232324{[_0x2d87('0x6')](){const _0x1549a8=this[_0x2d87('0x1')],_0x161b8a=_0x1549a8[_0x2d87('0x0')]['get'](_0x2d87('0x3'));_0x1549a8[_0x2d87('0x0')][_0x2d87('0x2')]('UndoEditing')&&(_0x161b8a['enableCommand'](_0x2d87('0x5')),_0x161b8a['enableCommand'](_0x2d87('0x4')));}}
23
+ const _0x9fa7=['undo','get','UndoEditing','enableCommand','TrackChangesEditing','redo','afterInit'];(function(_0x5054bf,_0x9fa7a0){const _0x4757e3=function(_0xe528bc){while(--_0xe528bc){_0x5054bf['push'](_0x5054bf['shift']());}};_0x4757e3(++_0x9fa7a0);}(_0x9fa7,0x1b5));const _0x4757=function(_0x5054bf,_0x9fa7a0){_0x5054bf=_0x5054bf-0x0;let _0x4757e3=_0x9fa7[_0x5054bf];return _0x4757e3;};import{Plugin as _0x28900d}from'ckeditor5/src/core';export default class yt extends _0x28900d{[_0x4757('0x3')](){const _0xa9b68f=this['editor'],_0x125c61=_0xa9b68f['plugins'][_0x4757('0x5')](_0x4757('0x1'));_0xa9b68f['plugins']['has'](_0x4757('0x6'))&&(_0x125c61[_0x4757('0x0')](_0x4757('0x4')),_0x125c61[_0x4757('0x0')](_0x4757('0x2')));}}