@ckeditor/ckeditor5-track-changes 38.0.1 → 38.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +10 -8
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.d.ts +3 -2
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.d.ts +3 -2
  19. package/src/integrations/entercommand.js +1 -1
  20. package/src/integrations/findandreplace.js +1 -1
  21. package/src/integrations/font.js +1 -1
  22. package/src/integrations/formatpainter.js +1 -1
  23. package/src/integrations/heading.js +1 -1
  24. package/src/integrations/highlight.js +1 -1
  25. package/src/integrations/horizontalline.js +1 -1
  26. package/src/integrations/htmlembed.js +1 -1
  27. package/src/integrations/image.js +1 -1
  28. package/src/integrations/imagereplace.js +1 -1
  29. package/src/integrations/importword.js +1 -1
  30. package/src/integrations/indent.js +1 -1
  31. package/src/integrations/inputcommand.d.ts +3 -2
  32. package/src/integrations/inputcommand.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.d.ts +3 -2
  43. package/src/integrations/shiftentercommand.js +1 -1
  44. package/src/integrations/standardeditingmode.js +1 -1
  45. package/src/integrations/style.js +1 -1
  46. package/src/integrations/table.js +1 -1
  47. package/src/integrations/tablecaption.d.ts +3 -2
  48. package/src/integrations/tablecaption.js +1 -1
  49. package/src/integrations/tableclipboard.d.ts +3 -2
  50. package/src/integrations/tableclipboard.js +1 -1
  51. package/src/integrations/tablecolumnresize.js +1 -1
  52. package/src/integrations/tableheadings.d.ts +3 -2
  53. package/src/integrations/tableheadings.js +1 -1
  54. package/src/integrations/tablemergesplit.d.ts +3 -2
  55. package/src/integrations/tablemergesplit.js +1 -1
  56. package/src/integrations/tableofcontents.js +1 -1
  57. package/src/integrations/tableproperties.d.ts +1 -1
  58. package/src/integrations/tableproperties.js +1 -1
  59. package/src/integrations/template.js +1 -1
  60. package/src/integrations/title.js +1 -1
  61. package/src/integrations/undo.js +1 -1
  62. package/src/integrations/utils.js +1 -1
  63. package/src/suggestion.d.ts +1 -1
  64. package/src/suggestion.js +1 -1
  65. package/src/suggestiondescriptionfactory.js +1 -1
  66. package/src/trackchanges.d.ts +5 -5
  67. package/src/trackchanges.js +1 -1
  68. package/src/trackchangesdata.d.ts +4 -5
  69. package/src/trackchangesdata.js +1 -1
  70. package/src/trackchangesediting.d.ts +49 -5
  71. package/src/trackchangesediting.js +1 -1
  72. package/src/trackchangesui.d.ts +5 -5
  73. package/src/trackchangesui.js +1 -1
  74. package/src/ui/suggestioncontroller.js +1 -1
  75. package/src/ui/view/basesuggestionthreadview.js +1 -1
  76. package/src/ui/view/suggestionthreadview.d.ts +0 -2
  77. package/src/ui/view/suggestionthreadview.js +1 -1
  78. package/src/utils/common-translations.js +1 -1
  79. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54a9=['get','has','plugins','TrackChangesEditing','TableCaptionEditing','editor','enableCommand','requires','afterInit'];(function(_0x4c6eda,_0x54a9a2){const _0x2c48f1=function(_0x26d204){while(--_0x26d204){_0x4c6eda['push'](_0x4c6eda['shift']());}};_0x2c48f1(++_0x54a9a2);}(_0x54a9,0x1a5));const _0x2c48=function(_0x4c6eda,_0x54a9a2){_0x4c6eda=_0x4c6eda-0x0;let _0x2c48f1=_0x54a9[_0x4c6eda];return _0x2c48f1;};import{Plugin as _0x2b8290}from'ckeditor5/src/core';import _0xc11186 from'./table';export default class vt extends _0x2b8290{static get[_0x2c48('0x0')](){return[_0xc11186];}[_0x2c48('0x1')](){const _0x18b59d=this[_0x2c48('0x7')];if(!_0x18b59d[_0x2c48('0x4')][_0x2c48('0x3')](_0x2c48('0x6')))return;_0x18b59d[_0x2c48('0x4')][_0x2c48('0x2')](_0x2c48('0x5'))[_0x2c48('0x8')]('toggleTableCaption');}}
23
+ const _0x4c6e=['get','TableCaptionEditing','afterInit','has','plugins','requires','toggleTableCaption'];(function(_0x1afb59,_0x4c6e94){const _0x1e5dc1=function(_0x842a8d){while(--_0x842a8d){_0x1afb59['push'](_0x1afb59['shift']());}};_0x1e5dc1(++_0x4c6e94);}(_0x4c6e,0xd5));const _0x1e5d=function(_0x1afb59,_0x4c6e94){_0x1afb59=_0x1afb59-0x0;let _0x1e5dc1=_0x4c6e[_0x1afb59];return _0x1e5dc1;};import{Plugin as _0x2ce536}from'ckeditor5/src/core';import _0x5e8709 from'./table';export default class vt extends _0x2ce536{static get[_0x1e5d('0x2')](){return[_0x5e8709];}[_0x1e5d('0x6')](){const _0x5cc975=this['editor'];if(!_0x5cc975[_0x1e5d('0x1')][_0x1e5d('0x0')](_0x1e5d('0x5')))return;_0x5cc975['plugins'][_0x1e5d('0x4')]('TrackChangesEditing')['enableCommand'](_0x1e5d('0x3'));}}
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * @module track-changes/integrations/tableclipboard
3
3
  */
4
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ import TrackChangesTable from './table';
5
6
  /**
6
7
  * Provides track changes plugin integration for {@link module:table/tableclipboard~TableClipboard table clipboard feature}.
7
8
  */
@@ -9,7 +10,7 @@ export default class TrackChangesTableClipboard extends Plugin {
9
10
  /**
10
11
  * @inheritDoc
11
12
  */
12
- static get requires(): PluginDependencies;
13
+ static get requires(): readonly [typeof TrackChangesTable];
13
14
  /**
14
15
  * @inheritDoc
15
16
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3635=['accept','tableCellPadding','rootName','getColumns','registerCustomCallback','document','subType','includes','getSuggestionCallback','discard','commands','cells','suggestionLoaded','getMarkers','$graveyard','markerName','length','redo','reduce','remove','for','first','TableUtils','add','getChanges','previousSibling','insertContent','elementToElement','insertRows','schema','model','createRange','createElement','ck-suggestion-marker-insertion','_tablePostFixingSubtypes','batch','root','removeColumns','getColumnIndexes','from','tablePasteChainId','createTableWalker','author','get','name','updateMarker','suggestion','content','TableClipboard','getAllAdjacentSuggestions','containsRange','setAttribute','newRange','push','createPositionBefore','differ','tableCellVerticalAlignment','_suggestionFactory','has','low','previous','insertion','tableCellSuggestion','editingDowncast','registerPostFixer','*Replace\x20table\x20cells*','columns','tableCellBorderColor','locale','forceDefaultExecution','markerToHighlight','attributes','removeMarker','tablePasteCell','value','suggestion:formatBlock:tablePasteCell','some','end','getRange','suggestionUnloaded','createRangeOn','type','tableCellHorizontalAlignment','markMultiRangeInsertion','set','ck-suggestion-marker--active','stop','getSuggestion','fill','tablePasteColumn','element','keys','fromEntries','move','markMultiRangeBlockFormat','getRowIndexes','dataDowncast','every','findAncestor','getChangedMarkers','tableCellBackgroundColor','high','conversion','getContainedElement','getShiftedBy','change','startsWith','view','getChild','trackChanges','find','isEmpty','showSuggestionHighlights','_descriptionFactory','tableCellBorderStyle','markers','suggestion-td','getRanges','registerDescriptionCallback','filter','tableCell','position','getChildren','isInContent','createRangeIn','_createdBatches','editor','options','isEqual','endColumn','oldRange','table','tablePaste','listenTo','getItems','getSuggestions','start','TrackChangesEditing','afterInit','requires','clipboardOutput','_getCoordsForCells','markerAttributes','column','rowInsertionRanges','plugins','unwrap','insert','columnInsertionIndexes','paragraph','editing','map','getTableIfOnlyTableInContent','nodeAfter','entries','rows','deletion','formatBlock','rowInsertionIndexes','Users','columnInsertionRanges','tablePasteRow','markMultiRangeDeletion','selection','_splitMarkerName'];(function(_0x44e692,_0x3635af){const _0x20dd41=function(_0x488122){while(--_0x488122){_0x44e692['push'](_0x44e692['shift']());}};_0x20dd41(++_0x3635af);}(_0x3635,0x185));const _0x20dd=function(_0x44e692,_0x3635af){_0x44e692=_0x44e692-0x0;let _0x20dd41=_0x3635[_0x44e692];return _0x20dd41;};import{getTranslation as _0x1dbe8b}from'../utils/common-translations';import{Plugin as _0x1c7d99}from'ckeditor5/src/core';import{uid as _0x2625cf,priorities as _0x2ec4c9}from'ckeditor5/src/utils';import _0xb33fbd from'./table';const le=['tableCellBorderWidth',_0x20dd('0x8'),_0x20dd('0x37'),_0x20dd('0x17'),_0x20dd('0xa2'),_0x20dd('0x29'),_0x20dd('0x6b')],ae=Object[_0x20dd('0x21')](le[_0x20dd('0x5c')](_0x670a70=>[_0x670a70,null]));export default class kt extends _0x1c7d99{static get[_0x20dd('0x50')](){return[_0xb33fbd];}[_0x20dd('0x4f')](){const _0x2a3c44=this[_0x20dd('0x43')];if(!_0x2a3c44[_0x20dd('0x56')][_0x20dd('0xa4')](_0x20dd('0x9a')))return;const _0x234750=_0x2a3c44[_0x20dd('0x56')][_0x20dd('0x95')](_0x20dd('0x4e')),_0x1982e3=_0x2a3c44[_0x20dd('0x56')][_0x20dd('0x95')](_0x20dd('0x80')),_0x2847f4=_0x2a3c44['plugins'][_0x20dd('0x95')](_0xb33fbd),_0x2b2c04=_0x2a3c44[_0x20dd('0x56')][_0x20dd('0x95')](_0x20dd('0x9a'));_0x2847f4[_0x20dd('0x8c')][_0x20dd('0x9f')](_0x20dd('0x66'),'tablePasteColumn'),_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x87')]['register'](_0x20dd('0x3'),{'allowIn':'tableCell','allowContentOf':_0x20dd('0x3d'),'isLimit':!0x0}),_0x2a3c44[_0x20dd('0x2b')][_0x20dd('0x85')]({'model':_0x20dd('0x3'),'view':_0x20dd('0x39')});let _0x451873=null;_0x2a3c44['model']['on'](_0x20dd('0x84'),(_0x56a13,_0x201de3)=>{const [_0x4520ec,_0x1de59b]=_0x201de3,_0x4eee92=_0x201de3[_0x201de3[_0x20dd('0x7a')]-0x1];_0x4eee92&&_0x4eee92[_0x20dd('0xa')]||_0x234750['_isForcedDefaultExecutionBlock']||this['editor'][_0x20dd('0x74')][_0x20dd('0x95')](_0x20dd('0x32'))[_0x20dd('0xf')]&&function(_0x4d6569,_0x369031,_0x11c85e,_0x51fcd2,_0x30d353){if(_0x369031&&!_0x369031['is']('documentSelection'))return!0x1;const _0x11e00f=_0x30d353[_0x20dd('0x5d')](_0x4d6569,_0x11c85e);if(!_0x11e00f||!fe(_0x11e00f,void 0x0,_0x51fcd2))return!0x1;const _0x41bd6c=_0x51fcd2['getSelectionAffectedTableCells'](_0x11c85e[_0x20dd('0x6f')][_0x20dd('0x68')]);if(!_0x41bd6c[_0x20dd('0x7a')])return!0x1;const _0x238017=_0x41bd6c[0x0][_0x20dd('0x27')](_0x20dd('0x48')),_0x159bea=_0x51fcd2[_0x20dd('0x24')](_0x41bd6c),_0x50f099=_0x51fcd2[_0x20dd('0x90')](_0x41bd6c),_0x57148e={'startRow':_0x159bea[_0x20dd('0x7f')],'endRow':_0x159bea['last'],'startColumn':_0x50f099['first'],'endColumn':_0x50f099['last']};return 0x1==_0x41bd6c[_0x20dd('0x7a')]&&(_0x57148e['endRow']+=_0x51fcd2['getRows'](_0x11e00f)-0x1,_0x57148e[_0x20dd('0x46')]+=_0x51fcd2[_0x20dd('0x6d')](_0x11e00f)-0x1),fe(_0x238017,_0x57148e,_0x51fcd2);}(_0x4520ec,_0x1de59b,_0x2a3c44[_0x20dd('0x88')],_0x1982e3,_0x2b2c04)&&(_0x56a13[_0x20dd('0x1b')](),_0x451873={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x2e')](()=>{_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x84')](_0x201de3[0x0],_0x201de3[0x1],_0x201de3[0x2],{'forceDefaultExecution':!0x0});const _0x308dea=_0x2625cf(),{rowInsertionRanges:_0x30ca0a,columnInsertionRanges:_0x3c7b40,insertionRanges:_0x363d93,deletionRanges:_0x58e989,cells:_0x5b0337}=_0x451873;_0x30ca0a['length']&&_0x234750[_0x20dd('0x18')](_0x30ca0a,_0x20dd('0x66'),{'tablePasteChainId':_0x308dea}),_0x3c7b40['length']&&_0x234750[_0x20dd('0x18')](_0x3c7b40,_0x20dd('0x1e'),{'tablePasteChainId':_0x308dea}),_0x363d93[_0x20dd('0x7a')]&&_0x234750[_0x20dd('0x18')](_0x363d93,'tablePaste',{'tablePasteChainId':_0x308dea,'skipNestingCheck':!0x0}),_0x58e989[_0x20dd('0x7a')]&&_0x234750[_0x20dd('0x67')](_0x58e989,_0x20dd('0x49'),{'tablePasteChainId':_0x308dea,'skipNestingCheck':!0x0});const _0x134c20=_0x234750[_0x20dd('0x23')](_0x5b0337[_0x20dd('0x5c')](({element:_0x3805a1})=>_0x3805a1),{'formatGroupId':_0x2625cf()},[],'tablePasteCell',{'tablePasteChainId':_0x308dea});if(_0x134c20){const _0x4208d7=_0x134c20[_0x20dd('0x77')](),_0x2c0688=[];for(const {element:_0x1ead54,attributes:_0x2b99fc}of _0x5b0337){if(!_0x2b99fc)continue;const _0x4db20d=_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x15')](_0x1ead54),_0x95cd88=_0x4208d7[_0x20dd('0x33')](_0x126d65=>_0x126d65[_0x20dd('0x13')]()[_0x20dd('0x45')](_0x4db20d));_0x95cd88&&_0x2c0688['push']([_0x95cd88['name'],_0x2b99fc]);}_0x2c0688[_0x20dd('0x7a')]&&_0x134c20[_0x20dd('0x9d')](_0x20dd('0x53'),Object[_0x20dd('0x21')](_0x2c0688));}_0x451873=null;}));},{'priority':_0x2ec4c9[_0x20dd('0x2a')]+0xa}),_0x2a3c44[_0x20dd('0x56')][_0x20dd('0x95')](_0x20dd('0x9a'))['on']('_replaceTableSlotCell',(_0x5c5414,_0x5792fa)=>{const [_0x4574fd,_0x29b62d,,_0x33516d]=_0x5792fa;if(!_0x451873)return;_0x5c5414['stop']();const _0x244ada=_0x4574fd['cell'],_0x41d9d2=_0x29b62d,_0x3151dd=ce(_0x244ada),_0x58642d=ce(_0x41d9d2);_0x5c5414['return']=_0x244ada;let _0x5e1468=null,_0x5499d6=null;if(_0x58642d||_0x3151dd){if(_0x3151dd&&!_0x58642d){_0x33516d[_0x20dd('0x7d')](_0x244ada[_0x20dd('0x31')](0x0));for(const _0x539918 of Array[_0x20dd('0x91')](_0x41d9d2[_0x20dd('0x3f')]()))_0x33516d['insert'](_0x539918,_0x244ada,_0x20dd('0x12'));const _0x528320=_0x451873[_0x20dd('0x63')][_0x20dd('0x71')](_0x4574fd['row']),_0x171d00=_0x451873[_0x20dd('0x59')][_0x20dd('0x71')](_0x4574fd[_0x20dd('0x54')]);_0x528320||_0x171d00||(_0x5e1468=_0x33516d['createRangeIn'](_0x244ada));}else _0x58642d&&!_0x3151dd&&(_0x5499d6=_0x33516d[_0x20dd('0x41')](_0x244ada));}else{const _0x3456cb=_0x33516d[_0x20dd('0x8a')](_0x20dd('0x3')),_0x3b1af3=_0x33516d[_0x20dd('0x8a')](_0x20dd('0x3'));_0x33516d['wrap'](_0x33516d[_0x20dd('0x41')](_0x244ada),_0x3b1af3),_0x33516d[_0x20dd('0x58')](_0x3456cb,_0x244ada,0x0);for(const _0x4acb3f of Array[_0x20dd('0x91')](_0x41d9d2['getChildren']()))_0x33516d[_0x20dd('0x58')](_0x4acb3f,_0x3456cb,_0x20dd('0x12'));_0x5e1468=_0x33516d[_0x20dd('0x15')](_0x3456cb),_0x5499d6=_0x33516d['createRangeOn'](_0x3b1af3);}const _0x38c8d5=Array['from'](_0x41d9d2['getAttributes']())[_0x20dd('0x3c')](([_0x1d7c29])=>le[_0x20dd('0x71')](_0x1d7c29));_0x451873['cells'][_0x20dd('0x9f')]({'element':_0x244ada,'attributes':_0x38c8d5[_0x20dd('0x7a')]?Object[_0x20dd('0x21')](_0x38c8d5):null}),_0x5e1468&&_0x451873['insertionRanges']['push'](_0x5e1468),_0x5499d6&&_0x451873['deletionRanges'][_0x20dd('0x9f')](_0x5499d6);},{'priority':_0x20dd('0x2a')}),_0x1982e3['on']('insertColumns',(_0x2c49a4,_0x23b4c7)=>{const [_0x8c5dad,_0xd9eb3d={}]=_0x23b4c7;if(!_0x451873)return;const _0x1bb621=_0xd9eb3d['at']||0x0,_0x1ebf93=_0xd9eb3d[_0x20dd('0x7')]||0x1;_0x451873[_0x20dd('0x59')]=new Array(_0x1ebf93)[_0x20dd('0x1d')](_0x1bb621)[_0x20dd('0x5c')]((_0x34f40c,_0x506e3e)=>_0x34f40c+_0x506e3e);for(const {cell:_0x29d01c}of _0x1982e3[_0x20dd('0x93')](_0x8c5dad,{'startColumn':_0x1bb621,'endColumn':_0x1bb621+_0x1ebf93-0x1}))_0x451873[_0x20dd('0x65')][_0x20dd('0x9f')](_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x15')](_0x29d01c));},{'priority':_0x20dd('0x0')}),_0x1982e3['on'](_0x20dd('0x86'),(_0x1d0393,_0x225829)=>{const [_0x499c0e,_0x347621={}]=_0x225829;if(!_0x451873)return;const _0x20b16b=_0x347621['at']||0x0,_0x43aa88=_0x347621[_0x20dd('0x60')]||0x1;_0x451873['rowInsertionIndexes']=new Array(_0x43aa88)['fill'](_0x20b16b)[_0x20dd('0x5c')]((_0x320ffc,_0x1006c7)=>_0x320ffc+_0x1006c7);for(const {cell:_0x5b29a6}of _0x1982e3[_0x20dd('0x93')](_0x499c0e,{'startRow':_0x20b16b,'endRow':_0x20b16b+_0x43aa88-0x1}))_0x451873[_0x20dd('0x55')][_0x20dd('0x9f')](_0x2a3c44['model'][_0x20dd('0x15')](_0x5b29a6));},{'priority':_0x20dd('0x0')}),_0x234750[_0x20dd('0x36')][_0x20dd('0x3b')](_0x5d29d2=>{if(_0x5d29d2[_0x20dd('0x70')]&&_0x5d29d2[_0x20dd('0x70')][_0x20dd('0x2f')]('tablePaste'))return _0x5d29d2['previous']?{}:{'type':_0x20dd('0x2'),'content':_0x1dbe8b(_0x2a3c44[_0x20dd('0x9')],_0x20dd('0x6'))};});const _0x5d3067=()=>{};for(const _0x47fc13 of[_0x20dd('0x49'),_0x20dd('0x1e'),_0x20dd('0x66'),_0x20dd('0xe')])_0x234750[_0x20dd('0xa3')][_0x20dd('0x6e')](_0x20dd('0x2'),_0x47fc13,'join',_0x5d3067),_0x234750[_0x20dd('0xa3')][_0x20dd('0x6e')]('deletion',_0x47fc13,'join',_0x5d3067);_0x234750[_0x20dd('0xa3')]['registerCustomCallback'](_0x20dd('0x62'),_0x20dd('0xe'),_0x20dd('0x73'),_0x5d3067),_0x234750[_0x20dd('0xa3')]['registerCustomCallback'](_0x20dd('0x62'),_0x20dd('0xe'),_0x20dd('0x6a'),(_0x25520c,_0x394bb9,_0x289cd1)=>{const _0x21ce8d=_0x25520c[_0x20dd('0x5c')](_0x207335=>_0x207335['getContainedElement']())[_0x20dd('0x3c')](_0x1d4ac7=>_0x1d4ac7),_0x1dc01b=new Map(_0x21ce8d[_0x20dd('0x5c')](_0x10ebf2=>[_0x10ebf2,null]));if(_0x451873)for(const {element:_0x5a2180,attributes:_0x4e8562}of _0x451873[_0x20dd('0x75')])_0x4e8562&&_0x1dc01b[_0x20dd('0x19')](_0x5a2180,_0x4e8562);else{if(_0x289cd1&&_0x289cd1[_0x20dd('0x53')])for(const [_0xf1a272,_0x232d1e]of Object[_0x20dd('0x5f')](_0x289cd1['markerAttributes'])){const _0x37436c=_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x38')][_0x20dd('0x95')](_0xf1a272),_0x241215=_0x37436c?_0x37436c[_0x20dd('0x13')]()[_0x20dd('0x2c')]():null;_0x241215&&_0x1dc01b[_0x20dd('0x19')](_0x241215,_0x232d1e);}}_0x2a3c44['model'][_0x20dd('0x2e')](_0x4da6f2=>{for(const [_0x4133a1,_0xd739a]of _0x1dc01b)_0x4da6f2['setAttributes']({...ae,..._0xd739a},_0x4133a1);});});const _0x161731=(_0x294fff,_0x7465a8)=>{_0x234750[_0x20dd('0xa3')][_0x20dd('0x6e')](_0x294fff,_0x20dd('0x49'),_0x7465a8,(_0x3bcf5b,_0x493cec,_0x5cd851)=>{_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x2e')](_0xdd591d=>{const _0x11cca6=[];for(const _0x20ff48 of _0x3bcf5b){const _0x4b1ec4=_0x20ff48[_0x20dd('0x4d')][_0x20dd('0x5e')];_0x4b1ec4['is'](_0x20dd('0x1f'),_0x20dd('0x3'))&&_0x11cca6[_0x20dd('0x9f')](_0x4b1ec4);}_0x234750['_suggestionFactory'][_0x20dd('0x72')](_0x294fff,null,_0x7465a8)(_0x3bcf5b,_0x493cec,_0x5cd851);for(const _0x3a2751 of _0x11cca6)_0x20dd('0x78')!=_0x3a2751[_0x20dd('0x8e')][_0x20dd('0x6c')]&&_0xdd591d[_0x20dd('0x57')](_0x3a2751);});});};_0x161731(_0x20dd('0x2'),_0x20dd('0x6a')),_0x161731(_0x20dd('0x2'),_0x20dd('0x73')),_0x161731('deletion','accept'),_0x161731(_0x20dd('0x61'),'discard'),_0x234750['_suggestionFactory'][_0x20dd('0x6e')](_0x20dd('0x2'),_0x20dd('0x66'),'discard',_0x223317=>{const _0x3ea109=_0x223317[_0x20dd('0x5c')](_0x54bde6=>_0x54bde6['getContainedElement']()),_0x218caf=_0x3ea109[0x0][_0x20dd('0x27')](_0x20dd('0x48')),{minRow:_0x1981ef,maxRow:_0x105b1b}=_0x2847f4[_0x20dd('0x52')](_0x3ea109);_0x1982e3['removeRows'](_0x218caf,{'at':_0x1981ef,'rows':_0x105b1b-_0x1981ef+0x1});}),_0x234750[_0x20dd('0xa3')][_0x20dd('0x6e')](_0x20dd('0x2'),_0x20dd('0x1e'),'discard',_0x520c20=>{const _0x267e3b=_0x520c20[_0x20dd('0x5c')](_0x2bbda1=>_0x2bbda1['getContainedElement']()),_0x5e31a0=_0x267e3b[0x0][_0x20dd('0x27')]('table'),{minColumn:_0x2fe323,maxColumn:_0x2f236c}=_0x2847f4['_getCoordsForCells'](_0x267e3b);_0x1982e3[_0x20dd('0x8f')](_0x5e31a0,{'at':_0x2fe323,'columns':_0x2f236c-_0x2fe323+0x1});});const _0x1abd62=(_0x565591,_0xe17607)=>{if(!_0xe17607['subType']||!_0xe17607[_0x20dd('0x70')][_0x20dd('0x2f')](_0x20dd('0x49')))return;const _0x2446c2=_0xe17607[_0x20dd('0xc')]['tablePasteChainId'],_0x3d6533=_0x234750[_0x20dd('0x4c')]()['filter'](_0x1add79=>_0x1add79[_0x20dd('0x40')]&&_0x1add79[_0x20dd('0xc')]&&_0x1add79[_0x20dd('0xc')][_0x20dd('0x92')]==_0x2446c2);_0x3d6533[_0x20dd('0x7a')]&&_0xe17607['getAllAdjacentSuggestions']()['length']!=_0x3d6533['length']&&_0x3d6533[_0x20dd('0x7c')]((_0x119fac,_0x285f41)=>(_0x119fac['next']=_0x285f41,_0x285f41[_0x20dd('0x1')]=_0x119fac,_0x285f41));};function _0x3fc291(_0x5373ea,_0x2b3f7c=!0x0){const {id:_0x3cefc2}=_0x234750[_0x20dd('0x69')](_0x5373ea['markerName']),_0x45a94a=['ck-suggestion-marker',_0x20dd('0x8b')],_0x10e7ac=_0x234750['activeMarkers'][_0x20dd('0x71')](_0x5373ea[_0x20dd('0x79')]);return _0x10e7ac&&_0x45a94a[_0x20dd('0x9f')](_0x20dd('0x1a')),{'classes':_0x45a94a,'attributes':{'data-suggestion':_0x3cefc2},'priority':_0x10e7ac&&_0x2b3f7c?0xbc2:0xbb8};}_0x234750['on'](_0x20dd('0x76'),_0x1abd62,{'priority':_0x20dd('0x2a')}),_0x234750['on'](_0x20dd('0x14'),_0x1abd62,{'priority':'high'}),_0x2a3c44[_0x20dd('0x88')]['document']['registerPostFixer'](()=>{let _0x2dda79=!0x1;const _0x5f1147=Array[_0x20dd('0x91')](_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x6f')][_0x20dd('0xa1')][_0x20dd('0x28')]());for(const {name:_0xb99c6c,data:_0x4b0392}of _0x5f1147){const {group:_0x35ebd1,type:_0x1d3c9f,id:_0x10fd4e}=_0x234750[_0x20dd('0x69')](_0xb99c6c);if('suggestion'!=_0x35ebd1||_0x20dd('0x61')!=_0x1d3c9f||_0x4b0392['oldRange'])continue;if(!_0x234750['hasSuggestion'](_0x10fd4e))continue;const _0x188b39=_0x234750[_0x20dd('0x1c')](_0x10fd4e)[_0x20dd('0x3a')](),_0x33eccd=_0x2a3c44[_0x20dd('0x56')][_0x20dd('0x95')]('Users')['me'];for(const _0x4665e5 of _0x234750[_0x20dd('0x4c')]()){if(!_0x4665e5[_0x20dd('0x40')]||_0x4665e5[_0x20dd('0x94')]!=_0x33eccd)continue;if(_0x20dd('0x62')!=_0x4665e5['type']||_0x20dd('0xe')!=_0x4665e5[_0x20dd('0x70')])continue;if(_0x4665e5[_0x20dd('0x3a')]()[_0x20dd('0x26')](_0x44696b=>_0x188b39[_0x20dd('0x11')](_0x3fc8d1=>_0x3fc8d1[_0x20dd('0x9c')](_0x44696b,!0x0))))for(const _0x5d02b7 of _0x4665e5[_0x20dd('0x9b')]())_0x5d02b7[_0x20dd('0x40')]&&(_0x5d02b7[_0x20dd('0x73')](),_0x2dda79=!0x0);}}return _0x2dda79;}),_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x6f')]['registerPostFixer'](_0x1fb94e=>{const _0xa61861=_0x2a3c44[_0x20dd('0x74')][_0x20dd('0x95')](_0x20dd('0x7b'));if(!_0xa61861||!_0xa61861[_0x20dd('0x42')][_0x20dd('0xa4')](_0x1fb94e[_0x20dd('0x8d')]))return!0x1;let _0x29f72a=!0x1;const _0x2154cb=_0x2a3c44['plugins'][_0x20dd('0x95')](_0x20dd('0x64'))['me'],_0x3d5744=_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x6f')][_0x20dd('0xa1')][_0x20dd('0x82')](),_0x46b20f=Array[_0x20dd('0x91')](_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x6f')]['differ'][_0x20dd('0x28')]())[_0x20dd('0x3c')](({name:_0x1ce762,data:_0x1fb4e7})=>{const {group:_0x18c953,subType:_0x39e27f,authorId:_0x2d2ee3}=_0x234750[_0x20dd('0x69')](_0x1ce762);return _0x20dd('0x98')==_0x18c953&&'tablePaste'==_0x39e27f&&_0x2d2ee3==_0x2154cb['id']&&!_0x1fb4e7[_0x20dd('0x47')];});for(const _0x54c586 of _0x3d5744){if(_0x20dd('0x58')!=_0x54c586[_0x20dd('0x16')]||_0x20dd('0x3')!=_0x54c586[_0x20dd('0x96')]||0x1!=_0x54c586[_0x20dd('0x7a')])continue;const _0x100e0e=_0x1fb94e[_0x20dd('0x89')](_0x54c586[_0x20dd('0x3e')],_0x54c586[_0x20dd('0x3e')][_0x20dd('0x2d')](0x1));if(!_0x46b20f['find'](({data:_0x5c3650})=>_0x5c3650['newRange'][_0x20dd('0x45')](_0x100e0e)))for(const {name:_0x41e790,data:_0x1180cc}of _0x46b20f)if(_0x100e0e[_0x20dd('0x9c')](_0x1180cc[_0x20dd('0x9e')])){_0x1fb94e[_0x20dd('0x97')](_0x41e790,{'range':_0x100e0e}),_0x29f72a=!0x0;break;}}return _0x29f72a;}),_0x2a3c44[_0x20dd('0x88')][_0x20dd('0x6f')][_0x20dd('0x5')](_0x488c6f=>{let _0x96c878=!0x1;const _0x32c416=_0x2a3c44['plugins'][_0x20dd('0x95')]('Users')['me'],_0x446c22=_0x234750[_0x20dd('0x4c')]()[_0x20dd('0x3c')](_0x35b9aa=>_0x35b9aa[_0x20dd('0x40')]&&_0x35b9aa[_0x20dd('0x94')]==_0x32c416),_0x49b05e=new Set(),_0x491607=new Set();for(const _0x5d9dbc of _0x446c22)if(_0x20dd('0x49')==_0x5d9dbc[_0x20dd('0x70')])for(const _0x48bd57 of _0x5d9dbc[_0x20dd('0x77')]()){const _0x198347=_0x48bd57[_0x20dd('0x13')]()['getContainedElement']();if(_0x198347){if(_0x198347['is']('element',_0x20dd('0x3'))&&ce(_0x198347)){_0x5d9dbc[_0x20dd('0xd')](_0x48bd57[_0x20dd('0x96')]),_0x49b05e['add'](_0x198347),_0x96c878=!0x0;const _0x259899=_0x198347['nextSibling'],_0x195237=_0x198347[_0x20dd('0x83')],_0x6c29b=_0x259899&&_0x259899['is'](_0x20dd('0x1f'),_0x20dd('0x3')),_0x231ca1=_0x195237&&_0x195237['is'](_0x20dd('0x1f'),_0x20dd('0x3'));_0x6c29b&&!_0x49b05e['has'](_0x259899)&&_0x491607['add'](_0x259899),_0x231ca1&&!_0x49b05e[_0x20dd('0xa4')](_0x195237)&&_0x491607[_0x20dd('0x81')](_0x195237);}else _0x198347['is'](_0x20dd('0x1f'),_0x20dd('0x5a'))&&_0x198347[_0x20dd('0x34')]&&(_0x5d9dbc[_0x20dd('0xd')](_0x48bd57[_0x20dd('0x96')]),_0x96c878=!0x0);}}else{if(_0x20dd('0xe')==_0x5d9dbc['subType']){if(!_0x5d9dbc[_0x20dd('0xc')]||!_0x5d9dbc[_0x20dd('0xc')][_0x20dd('0x92')])continue;const _0x543237=_0x5d9dbc[_0x20dd('0xc')][_0x20dd('0x53')];if(_0x543237&&Object[_0x20dd('0x20')](_0x543237)[_0x20dd('0x7a')])continue;const _0x51b83d=_0x5d9dbc[_0x20dd('0xc')]['tablePasteChainId'];let _0x5ac9ed=!0x0,_0xe2e54b=!0x0;for(const _0x140858 of _0x446c22)if(_0x140858[_0x20dd('0x70')]&&_0x140858[_0x20dd('0x70')]['startsWith'](_0x20dd('0x49'))){if(!_0x140858['attributes'][_0x20dd('0x92')]){_0xe2e54b=!0x1;break;}if(_0x140858['id']!=_0x5d9dbc['id']&&_0x140858['attributes'][_0x20dd('0x92')]==_0x51b83d){_0x5ac9ed=!0x1;break;}}_0xe2e54b&&_0x5ac9ed&&(_0x5d9dbc['removeMarkers'](),_0x96c878=!0x0);}}for(const _0x1437cb of _0x49b05e)_0x488c6f['remove'](_0x1437cb);for(const _0x188d83 of _0x491607)_0x488c6f[_0x20dd('0x57')](_0x188d83);return _0x96c878;}),_0x2a3c44['conversion'][_0x20dd('0x7e')](_0x20dd('0x4'))[_0x20dd('0xb')]({'model':_0x20dd('0x10'),'view':(_0x224bc1,_0x2d7cef)=>_0x3fc291(_0x224bc1),'converterPriority':_0x20dd('0x2a')}),_0x2a3c44[_0x20dd('0x2b')]['for'](_0x20dd('0x25'))['markerToHighlight']({'model':_0x20dd('0x10'),'view':(_0x5e92ce,_0x27a616)=>_0x27a616[_0x20dd('0x44')][_0x20dd('0x35')]?_0x3fc291(_0x5e92ce,!0x1):null,'converterPriority':'high'});const _0x522ece=_0x2a3c44[_0x20dd('0x5b')][_0x20dd('0x30')];this[_0x20dd('0x4a')](_0x522ece[_0x20dd('0x6f')],_0x20dd('0x51'),(_0x2f8fb9,_0x19cd1f)=>{const _0x1eb4c7=[];for(const _0x2d1b4a of _0x522ece['createRangeIn'](_0x19cd1f[_0x20dd('0x99')])[_0x20dd('0x4b')]())_0x2d1b4a['is']('element','suggestion-td')&&_0x1eb4c7['push'](_0x2d1b4a);_0x522ece['change'](_0x15b807=>{for(const _0x1fcd08 of _0x1eb4c7)_0x15b807[_0x20dd('0x22')](_0x15b807[_0x20dd('0x41')](_0x1fcd08),_0x15b807[_0x20dd('0xa0')](_0x1fcd08)),_0x15b807[_0x20dd('0x7d')](_0x1fcd08);});});}}function ce(_0x501b76){if(_0x501b76[_0x20dd('0x34')])return!0x0;const _0x1ba51f=_0x501b76[_0x20dd('0x31')](0x0);return _0x1ba51f['is']('element',_0x20dd('0x5a'))&&_0x1ba51f['isEmpty'];}function fe(_0x337a66,_0x12f0fe={},_0x2863f5){for(const {isAnchor:_0x5c93f9,cellHeight:_0x56a34e,cellWidth:_0x287a23}of _0x2863f5[_0x20dd('0x93')](_0x337a66,{'includeAllSlots':!0x0,..._0x12f0fe}))if(!_0x5c93f9||0x1!=_0x56a34e||0x1!=_0x287a23)return!0x1;return!0x0;}
23
+ const _0x287f=['redo','schema','elementToElement','options','updateMarker','editor','removeRows','get','row','suggestionLoaded','ck-suggestion-marker--active','tableCellBorderColor','markers','registerCustomCallback','last','isEqual','tableCellBackgroundColor','tableCellSuggestion','table','set','getAttributes','batch','tablePasteColumn','markMultiRangeBlockFormat','insertColumns','getRows','$graveyard','getMarkers','find','insertContent','conversion','move','_tablePostFixingSubtypes','root','unwrap','getContainedElement','oldRange','tablePasteRow','afterInit','createTableWalker','rows','documentSelection','name','tablePasteChainId','from','deletion','registerPostFixer','getShiftedBy','low','*Replace\x20table\x20cells*','columns','tableCellPadding','rowInsertionRanges','createElement','createPositionBefore','editing','end','locale','setAttributes','tableCellBorderStyle','columnInsertionIndexes','commands','hasSuggestion','fromEntries','wrap','start','content','suggestion','length','markerToHighlight','forceDefaultExecution','change','for','position','filter','attributes','rowInsertionIndexes','accept','registerDescriptionCallback','_replaceTableSlotCell','suggestion:formatBlock:tablePasteCell','element','getItems','_isForcedDefaultExecutionBlock','suggestion-td','removeMarkers','suggestionUnloaded','getColumns','markerAttributes','findAncestor','join','previousSibling','isEmpty','add','listenTo','formatBlock','document','keys','high','selection','trackChanges','tableCellVerticalAlignment','type','subType','register','getRange','return','next','tableCellHorizontalAlignment','getRowIndexes','columnInsertionRanges','tablePasteCell','createRangeIn','_createdBatches','requires','stop','endColumn','containsRange','every','getChild','fill','markMultiRangeDeletion','deletionRanges','insertionRanges','reduce','showSuggestionHighlights','differ','remove','getAllAdjacentSuggestions','getSuggestion','ck-suggestion-marker','includes','_suggestionFactory','newRange','tableCell','nextSibling','getRanges','map','clipboardOutput','insertion','TableUtils','getChildren','ck-suggestion-marker-insertion','plugins','markerName','push','_splitMarkerName','getSuggestions','cell','author','startsWith','getChangedMarkers','Users','_getCoordsForCells','createRangeOn','has','model','TableClipboard','column','dataDowncast','discard','value','rootName','view','tablePaste','previous','isInContent','paragraph','cells'];(function(_0x2d6d7f,_0x287fa3){const _0x1f18d4=function(_0x4cac64){while(--_0x4cac64){_0x2d6d7f['push'](_0x2d6d7f['shift']());}};_0x1f18d4(++_0x287fa3);}(_0x287f,0x122));const _0x1f18=function(_0x2d6d7f,_0x287fa3){_0x2d6d7f=_0x2d6d7f-0x0;let _0x1f18d4=_0x287f[_0x2d6d7f];return _0x1f18d4;};import{getTranslation as _0x1e0c10}from'../utils/common-translations';import{Plugin as _0x5e6a7f}from'ckeditor5/src/core';import{uid as _0x475109,priorities as _0x2b3bfe}from'ckeditor5/src/utils';import _0x34905a from'./table';const le=['tableCellBorderWidth',_0x1f18('0x3b'),_0x1f18('0x6b'),_0x1f18('0x9c'),_0x1f18('0x95'),_0x1f18('0x40'),_0x1f18('0x63')],ae=Object[_0x1f18('0x6f')](le['map'](_0x3ace23=>[_0x3ace23,null]));export default class kt extends _0x5e6a7f{static get[_0x1f18('0xa2')](){return[_0x34905a];}[_0x1f18('0x56')](){const _0x2c6843=this[_0x1f18('0x35')];if(!_0x2c6843[_0x1f18('0x16')]['has'](_0x1f18('0x24')))return;const _0x2c2512=_0x2c6843[_0x1f18('0x16')][_0x1f18('0x37')]('TrackChangesEditing'),_0xab0cc=_0x2c6843[_0x1f18('0x16')]['get'](_0x1f18('0x13')),_0x5d805b=_0x2c6843['plugins'][_0x1f18('0x37')](_0x34905a),_0x4c5ae3=_0x2c6843[_0x1f18('0x16')][_0x1f18('0x37')]('TableClipboard');_0x5d805b[_0x1f18('0x50')][_0x1f18('0x18')]('tablePasteRow',_0x1f18('0x46')),_0x2c6843[_0x1f18('0x23')][_0x1f18('0x31')][_0x1f18('0x98')](_0x1f18('0x41'),{'allowIn':_0x1f18('0xd'),'allowContentOf':_0x1f18('0xd'),'isLimit':!0x0}),_0x2c6843[_0x1f18('0x4e')][_0x1f18('0x32')]({'model':_0x1f18('0x41'),'view':'suggestion-td'});let _0x2960f0=null;_0x2c6843[_0x1f18('0x23')]['on'](_0x1f18('0x4d'),(_0x44c845,_0x534d45)=>{const [_0x1dcfa2,_0x288fa4]=_0x534d45,_0x17189e=_0x534d45[_0x534d45[_0x1f18('0x74')]-0x1];_0x17189e&&_0x17189e[_0x1f18('0x76')]||_0x2c2512[_0x1f18('0x83')]||this[_0x1f18('0x35')]['commands'][_0x1f18('0x37')](_0x1f18('0x94'))[_0x1f18('0x28')]&&function(_0x285a20,_0xdefad3,_0x5cfdae,_0x4399f9,_0xfe8eb7){if(_0xdefad3&&!_0xdefad3['is'](_0x1f18('0x59')))return!0x1;const _0x467d28=_0xfe8eb7['getTableIfOnlyTableInContent'](_0x285a20,_0x5cfdae);if(!_0x467d28||!fe(_0x467d28,void 0x0,_0x4399f9))return!0x1;const _0x3a969f=_0x4399f9['getSelectionAffectedTableCells'](_0x5cfdae[_0x1f18('0x90')][_0x1f18('0x93')]);if(!_0x3a969f['length'])return!0x1;const _0x283bd9=_0x3a969f[0x0][_0x1f18('0x89')](_0x1f18('0x42')),_0x32a853=_0x4399f9[_0x1f18('0x9d')](_0x3a969f),_0x28f9a2=_0x4399f9['getColumnIndexes'](_0x3a969f),_0x344bb7={'startRow':_0x32a853['first'],'endRow':_0x32a853[_0x1f18('0x3e')],'startColumn':_0x28f9a2['first'],'endColumn':_0x28f9a2['last']};return 0x1==_0x3a969f['length']&&(_0x344bb7['endRow']+=_0x4399f9[_0x1f18('0x49')](_0x467d28)-0x1,_0x344bb7[_0x1f18('0xa4')]+=_0x4399f9[_0x1f18('0x87')](_0x467d28)-0x1),fe(_0x283bd9,_0x344bb7,_0x4399f9);}(_0x1dcfa2,_0x288fa4,_0x2c6843[_0x1f18('0x23')],_0xab0cc,_0x4c5ae3)&&(_0x44c845[_0x1f18('0xa3')](),_0x2960f0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2c6843[_0x1f18('0x23')][_0x1f18('0x77')](()=>{_0x2c6843[_0x1f18('0x23')]['insertContent'](_0x534d45[0x0],_0x534d45[0x1],_0x534d45[0x2],{'forceDefaultExecution':!0x0});const _0x1ee37f=_0x475109(),{rowInsertionRanges:_0x58186b,columnInsertionRanges:_0x2f5aac,insertionRanges:_0x493289,deletionRanges:_0x2ca8a3,cells:_0x29410a}=_0x2960f0;_0x58186b[_0x1f18('0x74')]&&_0x2c2512['markMultiRangeInsertion'](_0x58186b,_0x1f18('0x55'),{'tablePasteChainId':_0x1ee37f}),_0x2f5aac['length']&&_0x2c2512['markMultiRangeInsertion'](_0x2f5aac,'tablePasteColumn',{'tablePasteChainId':_0x1ee37f}),_0x493289[_0x1f18('0x74')]&&_0x2c2512['markMultiRangeInsertion'](_0x493289,'tablePaste',{'tablePasteChainId':_0x1ee37f,'skipNestingCheck':!0x0}),_0x2ca8a3[_0x1f18('0x74')]&&_0x2c2512[_0x1f18('0x0')](_0x2ca8a3,'tablePaste',{'tablePasteChainId':_0x1ee37f,'skipNestingCheck':!0x0});const _0x6b595a=_0x2c2512[_0x1f18('0x47')](_0x29410a[_0x1f18('0x10')](({element:_0x3663ba})=>_0x3663ba),{'formatGroupId':_0x475109()},[],_0x1f18('0x9f'),{'tablePasteChainId':_0x1ee37f});if(_0x6b595a){const _0x3abbc9=_0x6b595a[_0x1f18('0x4b')](),_0x5542e7=[];for(const {element:_0xc8e4cd,attributes:_0x47e2d0}of _0x29410a){if(!_0x47e2d0)continue;const _0x3b37df=_0x2c6843[_0x1f18('0x23')][_0x1f18('0x21')](_0xc8e4cd),_0x5a14c0=_0x3abbc9['find'](_0x3a1ff4=>_0x3a1ff4[_0x1f18('0x99')]()[_0x1f18('0x3f')](_0x3b37df));_0x5a14c0&&_0x5542e7[_0x1f18('0x18')]([_0x5a14c0['name'],_0x47e2d0]);}_0x5542e7[_0x1f18('0x74')]&&_0x6b595a['setAttribute'](_0x1f18('0x88'),Object[_0x1f18('0x6f')](_0x5542e7));}_0x2960f0=null;}));},{'priority':_0x2b3bfe[_0x1f18('0x92')]+0xa}),_0x2c6843[_0x1f18('0x16')]['get'](_0x1f18('0x24'))['on'](_0x1f18('0x7f'),(_0x5f03b5,_0x216137)=>{const [_0xa5cfe5,_0xa85d6b,,_0x4e1ab2]=_0x216137;if(!_0x2960f0)return;_0x5f03b5['stop']();const _0x469d75=_0xa5cfe5[_0x1f18('0x1b')],_0x574a3b=_0xa85d6b,_0x30e656=ce(_0x469d75),_0x20917d=ce(_0x574a3b);_0x5f03b5[_0x1f18('0x9a')]=_0x469d75;let _0x4f8d71=null,_0xe484b9=null;if(_0x20917d||_0x30e656){if(_0x30e656&&!_0x20917d){_0x4e1ab2[_0x1f18('0x6')](_0x469d75[_0x1f18('0xa7')](0x0));for(const _0x530a1b of Array[_0x1f18('0x5c')](_0x574a3b['getChildren']()))_0x4e1ab2['insert'](_0x530a1b,_0x469d75,_0x1f18('0x68'));const _0x1fdcea=_0x2960f0[_0x1f18('0x7c')]['includes'](_0xa5cfe5[_0x1f18('0x38')]),_0x5b899b=_0x2960f0[_0x1f18('0x6c')]['includes'](_0xa5cfe5[_0x1f18('0x25')]);_0x1fdcea||_0x5b899b||(_0x4f8d71=_0x4e1ab2[_0x1f18('0xa0')](_0x469d75));}else _0x20917d&&!_0x30e656&&(_0xe484b9=_0x4e1ab2[_0x1f18('0xa0')](_0x469d75));}else{const _0x1f62a9=_0x4e1ab2[_0x1f18('0x65')](_0x1f18('0x41')),_0x3c5c27=_0x4e1ab2[_0x1f18('0x65')](_0x1f18('0x41'));_0x4e1ab2[_0x1f18('0x70')](_0x4e1ab2[_0x1f18('0xa0')](_0x469d75),_0x3c5c27),_0x4e1ab2['insert'](_0x1f62a9,_0x469d75,0x0);for(const _0xa0bb84 of Array[_0x1f18('0x5c')](_0x574a3b[_0x1f18('0x14')]()))_0x4e1ab2['insert'](_0xa0bb84,_0x1f62a9,_0x1f18('0x68'));_0x4f8d71=_0x4e1ab2[_0x1f18('0x21')](_0x1f62a9),_0xe484b9=_0x4e1ab2['createRangeOn'](_0x3c5c27);}const _0x3286e7=Array[_0x1f18('0x5c')](_0x574a3b[_0x1f18('0x44')]())['filter'](([_0x5606a1])=>le[_0x1f18('0xa')](_0x5606a1));_0x2960f0[_0x1f18('0x2f')][_0x1f18('0x18')]({'element':_0x469d75,'attributes':_0x3286e7[_0x1f18('0x74')]?Object[_0x1f18('0x6f')](_0x3286e7):null}),_0x4f8d71&&_0x2960f0[_0x1f18('0x2')][_0x1f18('0x18')](_0x4f8d71),_0xe484b9&&_0x2960f0[_0x1f18('0x1')]['push'](_0xe484b9);},{'priority':'high'}),_0xab0cc['on'](_0x1f18('0x48'),(_0x1e0a99,_0x46216d)=>{const [_0x157e9a,_0x1a02c1={}]=_0x46216d;if(!_0x2960f0)return;const _0xdd45c0=_0x1a02c1['at']||0x0,_0x4ac387=_0x1a02c1[_0x1f18('0x62')]||0x1;_0x2960f0[_0x1f18('0x6c')]=new Array(_0x4ac387)[_0x1f18('0xa8')](_0xdd45c0)[_0x1f18('0x10')]((_0x48da52,_0xe48f35)=>_0x48da52+_0xe48f35);for(const {cell:_0x241f61}of _0xab0cc['createTableWalker'](_0x157e9a,{'startColumn':_0xdd45c0,'endColumn':_0xdd45c0+_0x4ac387-0x1}))_0x2960f0[_0x1f18('0x9e')]['push'](_0x2c6843['model']['createRangeOn'](_0x241f61));},{'priority':_0x1f18('0x60')}),_0xab0cc['on']('insertRows',(_0x9c4337,_0x155b1b)=>{const [_0x1e0cd0,_0x50559a={}]=_0x155b1b;if(!_0x2960f0)return;const _0x28afbd=_0x50559a['at']||0x0,_0xa31111=_0x50559a[_0x1f18('0x58')]||0x1;_0x2960f0[_0x1f18('0x7c')]=new Array(_0xa31111)[_0x1f18('0xa8')](_0x28afbd)[_0x1f18('0x10')]((_0x5c14b5,_0x5e469a)=>_0x5c14b5+_0x5e469a);for(const {cell:_0x57d264}of _0xab0cc['createTableWalker'](_0x1e0cd0,{'startRow':_0x28afbd,'endRow':_0x28afbd+_0xa31111-0x1}))_0x2960f0[_0x1f18('0x64')][_0x1f18('0x18')](_0x2c6843['model'][_0x1f18('0x21')](_0x57d264));},{'priority':'low'}),_0x2c2512['_descriptionFactory'][_0x1f18('0x7e')](_0x25f888=>{if(_0x25f888[_0x1f18('0x97')]&&_0x25f888[_0x1f18('0x97')]['startsWith'](_0x1f18('0x2b')))return _0x25f888[_0x1f18('0x2c')]?{}:{'type':_0x1f18('0x12'),'content':_0x1e0c10(_0x2c6843[_0x1f18('0x69')],_0x1f18('0x61'))};});const _0x1fab71=()=>{};for(const _0x5b9a82 of[_0x1f18('0x2b'),_0x1f18('0x46'),_0x1f18('0x55'),_0x1f18('0x9f')])_0x2c2512['_suggestionFactory'][_0x1f18('0x3d')]('insertion',_0x5b9a82,'join',_0x1fab71),_0x2c2512[_0x1f18('0xb')][_0x1f18('0x3d')](_0x1f18('0x5d'),_0x5b9a82,_0x1f18('0x8a'),_0x1fab71);_0x2c2512[_0x1f18('0xb')][_0x1f18('0x3d')]('formatBlock',_0x1f18('0x9f'),'discard',_0x1fab71),_0x2c2512[_0x1f18('0xb')][_0x1f18('0x3d')]('formatBlock',_0x1f18('0x9f'),'accept',(_0x31bd88,_0x16bc6b,_0x488eb3)=>{const _0x1b7573=_0x31bd88[_0x1f18('0x10')](_0x8c787f=>_0x8c787f['getContainedElement']())[_0x1f18('0x7a')](_0x53d631=>_0x53d631),_0x3a5add=new Map(_0x1b7573[_0x1f18('0x10')](_0x354988=>[_0x354988,null]));if(_0x2960f0)for(const {element:_0x2341c4,attributes:_0x466c15}of _0x2960f0[_0x1f18('0x2f')])_0x466c15&&_0x3a5add[_0x1f18('0x43')](_0x2341c4,_0x466c15);else{if(_0x488eb3&&_0x488eb3[_0x1f18('0x88')])for(const [_0xdbf718,_0x5964fe]of Object['entries'](_0x488eb3['markerAttributes'])){const _0x1031b2=_0x2c6843['model'][_0x1f18('0x3c')]['get'](_0xdbf718),_0x50efc9=_0x1031b2?_0x1031b2['getRange']()[_0x1f18('0x53')]():null;_0x50efc9&&_0x3a5add[_0x1f18('0x43')](_0x50efc9,_0x5964fe);}}_0x2c6843[_0x1f18('0x23')]['change'](_0x5bff60=>{for(const [_0x173f54,_0x425aa2]of _0x3a5add)_0x5bff60[_0x1f18('0x6a')]({...ae,..._0x425aa2},_0x173f54);});});const _0x188e9b=(_0x21069f,_0x37ee79)=>{_0x2c2512['_suggestionFactory'][_0x1f18('0x3d')](_0x21069f,_0x1f18('0x2b'),_0x37ee79,(_0x2472f8,_0x441cf9,_0x235adc)=>{_0x2c6843[_0x1f18('0x23')][_0x1f18('0x77')](_0x1345a1=>{const _0x1c4ac0=[];for(const _0x2cb13b of _0x2472f8){const _0x536402=_0x2cb13b[_0x1f18('0x71')]['nodeAfter'];_0x536402['is']('element','tableCellSuggestion')&&_0x1c4ac0[_0x1f18('0x18')](_0x536402);}_0x2c2512[_0x1f18('0xb')]['getSuggestionCallback'](_0x21069f,null,_0x37ee79)(_0x2472f8,_0x441cf9,_0x235adc);for(const _0x517f8f of _0x1c4ac0)_0x1f18('0x4a')!=_0x517f8f[_0x1f18('0x51')][_0x1f18('0x29')]&&_0x1345a1['unwrap'](_0x517f8f);});});};_0x188e9b(_0x1f18('0x12'),_0x1f18('0x7d')),_0x188e9b(_0x1f18('0x12'),_0x1f18('0x27')),_0x188e9b(_0x1f18('0x5d'),_0x1f18('0x7d')),_0x188e9b(_0x1f18('0x5d'),'discard'),_0x2c2512[_0x1f18('0xb')][_0x1f18('0x3d')]('insertion',_0x1f18('0x55'),_0x1f18('0x27'),_0x463982=>{const _0x419796=_0x463982[_0x1f18('0x10')](_0x53a503=>_0x53a503[_0x1f18('0x53')]()),_0x4084d8=_0x419796[0x0][_0x1f18('0x89')]('table'),{minRow:_0x3f4331,maxRow:_0x49e348}=_0x5d805b['_getCoordsForCells'](_0x419796);_0xab0cc[_0x1f18('0x36')](_0x4084d8,{'at':_0x3f4331,'rows':_0x49e348-_0x3f4331+0x1});}),_0x2c2512['_suggestionFactory']['registerCustomCallback'](_0x1f18('0x12'),_0x1f18('0x46'),_0x1f18('0x27'),_0x36ac68=>{const _0x2674ae=_0x36ac68[_0x1f18('0x10')](_0x367fed=>_0x367fed[_0x1f18('0x53')]()),_0x2e99ff=_0x2674ae[0x0][_0x1f18('0x89')](_0x1f18('0x42')),{minColumn:_0x4886b6,maxColumn:_0xe38f2a}=_0x5d805b[_0x1f18('0x20')](_0x2674ae);_0xab0cc['removeColumns'](_0x2e99ff,{'at':_0x4886b6,'columns':_0xe38f2a-_0x4886b6+0x1});});const _0x2e2fa8=(_0x5e0fae,_0x3295c5)=>{if(!_0x3295c5[_0x1f18('0x97')]||!_0x3295c5['subType'][_0x1f18('0x1d')](_0x1f18('0x2b')))return;const _0x3a6064=_0x3295c5['attributes'][_0x1f18('0x5b')],_0x10ba7f=_0x2c2512[_0x1f18('0x1a')]()[_0x1f18('0x7a')](_0x116221=>_0x116221[_0x1f18('0x2d')]&&_0x116221[_0x1f18('0x7b')]&&_0x116221['attributes'][_0x1f18('0x5b')]==_0x3a6064);_0x10ba7f[_0x1f18('0x74')]&&_0x3295c5[_0x1f18('0x7')]()[_0x1f18('0x74')]!=_0x10ba7f[_0x1f18('0x74')]&&_0x10ba7f[_0x1f18('0x3')]((_0x4ed3dc,_0x30cba9)=>(_0x4ed3dc[_0x1f18('0x9b')]=_0x30cba9,_0x30cba9['previous']=_0x4ed3dc,_0x30cba9));};function _0x18d437(_0x59370e,_0x2879ac=!0x0){const {id:_0x44205f}=_0x2c2512[_0x1f18('0x19')](_0x59370e[_0x1f18('0x17')]),_0x384cc2=[_0x1f18('0x9'),_0x1f18('0x15')],_0x1e025f=_0x2c2512['activeMarkers'][_0x1f18('0xa')](_0x59370e[_0x1f18('0x17')]);return _0x1e025f&&_0x384cc2['push'](_0x1f18('0x3a')),{'classes':_0x384cc2,'attributes':{'data-suggestion':_0x44205f},'priority':_0x1e025f&&_0x2879ac?0xbc2:0xbb8};}_0x2c2512['on'](_0x1f18('0x39'),_0x2e2fa8,{'priority':_0x1f18('0x92')}),_0x2c2512['on'](_0x1f18('0x86'),_0x2e2fa8,{'priority':_0x1f18('0x92')}),_0x2c6843[_0x1f18('0x23')][_0x1f18('0x90')][_0x1f18('0x5e')](()=>{let _0x59d95c=!0x1;const _0xf8ad0d=Array[_0x1f18('0x5c')](_0x2c6843['model'][_0x1f18('0x90')][_0x1f18('0x5')][_0x1f18('0x1e')]());for(const {name:_0xa80df1,data:_0x1f6617}of _0xf8ad0d){const {group:_0x15fa9c,type:_0x9af791,id:_0x4e3566}=_0x2c2512['_splitMarkerName'](_0xa80df1);if(_0x1f18('0x73')!=_0x15fa9c||_0x1f18('0x5d')!=_0x9af791||_0x1f6617[_0x1f18('0x54')])continue;if(!_0x2c2512[_0x1f18('0x6e')](_0x4e3566))continue;const _0x2e01f7=_0x2c2512[_0x1f18('0x8')](_0x4e3566)['getRanges'](),_0x3b6edb=_0x2c6843[_0x1f18('0x16')][_0x1f18('0x37')](_0x1f18('0x1f'))['me'];for(const _0x47f439 of _0x2c2512[_0x1f18('0x1a')]()){if(!_0x47f439[_0x1f18('0x2d')]||_0x47f439[_0x1f18('0x1c')]!=_0x3b6edb)continue;if(_0x1f18('0x8f')!=_0x47f439['type']||_0x1f18('0x9f')!=_0x47f439[_0x1f18('0x97')])continue;if(_0x47f439[_0x1f18('0xf')]()[_0x1f18('0xa6')](_0x547e38=>_0x2e01f7['some'](_0x2721df=>_0x2721df['containsRange'](_0x547e38,!0x0))))for(const _0x494ac1 of _0x47f439[_0x1f18('0x7')]())_0x494ac1[_0x1f18('0x2d')]&&(_0x494ac1[_0x1f18('0x27')](),_0x59d95c=!0x0);}}return _0x59d95c;}),_0x2c6843[_0x1f18('0x23')][_0x1f18('0x90')][_0x1f18('0x5e')](_0xc77dbc=>{const _0x50836b=_0x2c6843[_0x1f18('0x6d')][_0x1f18('0x37')](_0x1f18('0x30'));if(!_0x50836b||!_0x50836b[_0x1f18('0xa1')][_0x1f18('0x22')](_0xc77dbc[_0x1f18('0x45')]))return!0x1;let _0x4eed4e=!0x1;const _0x3507af=_0x2c6843[_0x1f18('0x16')]['get'](_0x1f18('0x1f'))['me'],_0x51f1c7=_0x2c6843[_0x1f18('0x23')]['document']['differ']['getChanges'](),_0x40f42e=Array[_0x1f18('0x5c')](_0x2c6843[_0x1f18('0x23')][_0x1f18('0x90')][_0x1f18('0x5')][_0x1f18('0x1e')]())['filter'](({name:_0xcdfc63,data:_0xf7de10})=>{const {group:_0x34b039,subType:_0x50e6b3,authorId:_0x31236a}=_0x2c2512[_0x1f18('0x19')](_0xcdfc63);return _0x1f18('0x73')==_0x34b039&&'tablePaste'==_0x50e6b3&&_0x31236a==_0x3507af['id']&&!_0xf7de10[_0x1f18('0x54')];});for(const _0x5ad2c9 of _0x51f1c7){if('insert'!=_0x5ad2c9[_0x1f18('0x96')]||_0x1f18('0x41')!=_0x5ad2c9[_0x1f18('0x5a')]||0x1!=_0x5ad2c9[_0x1f18('0x74')])continue;const _0x4d1311=_0xc77dbc['createRange'](_0x5ad2c9[_0x1f18('0x79')],_0x5ad2c9[_0x1f18('0x79')][_0x1f18('0x5f')](0x1));if(!_0x40f42e[_0x1f18('0x4c')](({data:_0x5f1a9b})=>_0x5f1a9b['newRange'][_0x1f18('0x3f')](_0x4d1311)))for(const {name:_0x3bd95e,data:_0x480e5b}of _0x40f42e)if(_0x4d1311[_0x1f18('0xa5')](_0x480e5b[_0x1f18('0xc')])){_0xc77dbc[_0x1f18('0x34')](_0x3bd95e,{'range':_0x4d1311}),_0x4eed4e=!0x0;break;}}return _0x4eed4e;}),_0x2c6843[_0x1f18('0x23')]['document'][_0x1f18('0x5e')](_0x244b68=>{let _0x119fbc=!0x1;const _0x343247=_0x2c6843[_0x1f18('0x16')][_0x1f18('0x37')](_0x1f18('0x1f'))['me'],_0x7f18bf=_0x2c2512[_0x1f18('0x1a')]()[_0x1f18('0x7a')](_0x4f797e=>_0x4f797e[_0x1f18('0x2d')]&&_0x4f797e[_0x1f18('0x1c')]==_0x343247),_0x2741a0=new Set(),_0x205bb2=new Set();for(const _0x4715bb of _0x7f18bf)if(_0x1f18('0x2b')==_0x4715bb[_0x1f18('0x97')])for(const _0x2e45b6 of _0x4715bb[_0x1f18('0x4b')]()){const _0x908920=_0x2e45b6[_0x1f18('0x99')]()[_0x1f18('0x53')]();if(_0x908920){if(_0x908920['is'](_0x1f18('0x81'),_0x1f18('0x41'))&&ce(_0x908920)){_0x4715bb['removeMarker'](_0x2e45b6['name']),_0x2741a0[_0x1f18('0x8d')](_0x908920),_0x119fbc=!0x0;const _0x578076=_0x908920[_0x1f18('0xe')],_0x68cd1c=_0x908920[_0x1f18('0x8b')],_0x22df2f=_0x578076&&_0x578076['is']('element',_0x1f18('0x41')),_0x31bfcf=_0x68cd1c&&_0x68cd1c['is'](_0x1f18('0x81'),'tableCellSuggestion');_0x22df2f&&!_0x2741a0[_0x1f18('0x22')](_0x578076)&&_0x205bb2[_0x1f18('0x8d')](_0x578076),_0x31bfcf&&!_0x2741a0['has'](_0x68cd1c)&&_0x205bb2[_0x1f18('0x8d')](_0x68cd1c);}else _0x908920['is'](_0x1f18('0x81'),_0x1f18('0x2e'))&&_0x908920[_0x1f18('0x8c')]&&(_0x4715bb['removeMarker'](_0x2e45b6['name']),_0x119fbc=!0x0);}}else{if(_0x1f18('0x9f')==_0x4715bb[_0x1f18('0x97')]){if(!_0x4715bb['attributes']||!_0x4715bb[_0x1f18('0x7b')][_0x1f18('0x5b')])continue;const _0x20b281=_0x4715bb['attributes']['markerAttributes'];if(_0x20b281&&Object[_0x1f18('0x91')](_0x20b281)[_0x1f18('0x74')])continue;const _0x5c9b01=_0x4715bb['attributes'][_0x1f18('0x5b')];let _0x25d951=!0x0,_0x41c631=!0x0;for(const _0x2daceb of _0x7f18bf)if(_0x2daceb[_0x1f18('0x97')]&&_0x2daceb['subType'][_0x1f18('0x1d')](_0x1f18('0x2b'))){if(!_0x2daceb[_0x1f18('0x7b')][_0x1f18('0x5b')]){_0x41c631=!0x1;break;}if(_0x2daceb['id']!=_0x4715bb['id']&&_0x2daceb['attributes'][_0x1f18('0x5b')]==_0x5c9b01){_0x25d951=!0x1;break;}}_0x41c631&&_0x25d951&&(_0x4715bb[_0x1f18('0x85')](),_0x119fbc=!0x0);}}for(const _0x29b131 of _0x2741a0)_0x244b68['remove'](_0x29b131);for(const _0x33db52 of _0x205bb2)_0x244b68[_0x1f18('0x52')](_0x33db52);return _0x119fbc;}),_0x2c6843[_0x1f18('0x4e')]['for']('editingDowncast')['markerToHighlight']({'model':_0x1f18('0x80'),'view':(_0x905dfb,_0x412c1e)=>_0x18d437(_0x905dfb),'converterPriority':_0x1f18('0x92')}),_0x2c6843[_0x1f18('0x4e')][_0x1f18('0x78')](_0x1f18('0x26'))[_0x1f18('0x75')]({'model':_0x1f18('0x80'),'view':(_0x227c3c,_0x56d9d5)=>_0x56d9d5[_0x1f18('0x33')][_0x1f18('0x4')]?_0x18d437(_0x227c3c,!0x1):null,'converterPriority':_0x1f18('0x92')});const _0x5720f9=_0x2c6843[_0x1f18('0x67')][_0x1f18('0x2a')];this[_0x1f18('0x8e')](_0x5720f9[_0x1f18('0x90')],_0x1f18('0x11'),(_0x557e95,_0x230894)=>{const _0x8648c=[];for(const _0x4db176 of _0x5720f9[_0x1f18('0xa0')](_0x230894[_0x1f18('0x72')])[_0x1f18('0x82')]())_0x4db176['is'](_0x1f18('0x81'),_0x1f18('0x84'))&&_0x8648c['push'](_0x4db176);_0x5720f9[_0x1f18('0x77')](_0x241ca6=>{for(const _0x237ad6 of _0x8648c)_0x241ca6[_0x1f18('0x4f')](_0x241ca6[_0x1f18('0xa0')](_0x237ad6),_0x241ca6[_0x1f18('0x66')](_0x237ad6)),_0x241ca6[_0x1f18('0x6')](_0x237ad6);});});}}function ce(_0x19478e){if(_0x19478e[_0x1f18('0x8c')])return!0x0;const _0x5b644f=_0x19478e[_0x1f18('0xa7')](0x0);return _0x5b644f['is'](_0x1f18('0x81'),_0x1f18('0x2e'))&&_0x5b644f[_0x1f18('0x8c')];}function fe(_0x2aa77e,_0x22216e={},_0x366a8c){for(const {isAnchor:_0x5a2ade,cellHeight:_0x24c2e4,cellWidth:_0x114715}of _0x366a8c[_0x1f18('0x57')](_0x2aa77e,{'includeAllSlots':!0x0,..._0x22216e}))if(!_0x5a2ade||0x1!=_0x24c2e4||0x1!=_0x114715)return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2385=['getSuggestions','getColumnGroupElement','resizeTableWidth','bind','registerCustomCallback','formatBlock','accept','handleSuggestionDescription','tableWidth','handleResizeTableWidthCommand','data','_suggestionFactory','markBlockFormat','getSuggestionCallback','model','resizeTable','getContainedElement','subType','getTableColumnsWidths','_descriptionFactory','formatGroupId','get','selection','TrackChangesEditing','document','author','discard','registerDescriptionCallback','commandParams','change','enableCommand','getSelectedElement','columnWidths','TableColumnResizeEditing','editor','format','plugins'];(function(_0x5c923c,_0x238599){const _0x31b4ad=function(_0x3bd315){while(--_0x3bd315){_0x5c923c['push'](_0x5c923c['shift']());}};_0x31b4ad(++_0x238599);}(_0x2385,0x1e9));const _0x31b4=function(_0x5c923c,_0x238599){_0x5c923c=_0x5c923c-0x0;let _0x31b4ad=_0x2385[_0x5c923c];return _0x31b4ad;};import{Plugin as _0x13c209}from'ckeditor5/src/core';import{getTranslation as _0x283521}from'../utils/common-translations';export default class wt extends _0x13c209{['afterInit'](){if(!this[_0x31b4('0x1a')][_0x31b4('0x1c')]['has']('TableColumnResizeEditing'))return;const _0x3e2c76=this['editor'][_0x31b4('0x1c')][_0x31b4('0xd')](_0x31b4('0xf'));_0x3e2c76[_0x31b4('0x16')](_0x31b4('0x1f'),this[_0x31b4('0x1')][_0x31b4('0x20')](this)),_0x3e2c76[_0x31b4('0x16')]('resizeColumnWidths',this['handleResizeTableWidthCommand'][_0x31b4('0x20')](this)),_0x3e2c76[_0x31b4('0x3')][_0x31b4('0x21')](_0x31b4('0x22'),_0x31b4('0x7'),'accept',_0x3e2c76[_0x31b4('0x3')][_0x31b4('0x5')](_0x31b4('0x22'),null,'discard')),_0x3e2c76[_0x31b4('0x3')][_0x31b4('0x21')]('formatBlock','resizeTable',_0x31b4('0x12'),_0x3e2c76[_0x31b4('0x3')]['getSuggestionCallback'](_0x31b4('0x22'),null,_0x31b4('0x23'))),_0x3e2c76[_0x31b4('0xb')][_0x31b4('0x13')](this[_0x31b4('0x24')][_0x31b4('0x20')](this));}[_0x31b4('0x1')](_0x280700,_0x431870){const _0x2f301a=this[_0x31b4('0x1a')][_0x31b4('0x1c')][_0x31b4('0xd')](_0x31b4('0xf')),_0x3ea4d0=this['editor'][_0x31b4('0x1c')][_0x31b4('0xd')](_0x31b4('0x19')),_0x42988b=_0x431870['table']||this['editor']['model'][_0x31b4('0x10')][_0x31b4('0xe')][_0x31b4('0x17')]();this[_0x31b4('0x1a')][_0x31b4('0x6')][_0x31b4('0x15')](()=>{const _0x33c679=_0x3ea4d0[_0x31b4('0x1e')](_0x42988b);let _0x4ec6e1=_0x33c679?_0x3ea4d0[_0x31b4('0xa')](_0x33c679):null,_0x4389a2=_0x42988b['getAttribute']('tableWidth')||null;const _0x2ba68d=_0x431870['tableWidth']||_0x4389a2,_0x2424b7=_0x431870[_0x31b4('0x18')]||_0x4ec6e1,_0x32b9bf=this[_0x31b4('0x1a')][_0x31b4('0x1c')]['get']('Users')['me'];for(const _0x248261 of _0x2f301a[_0x31b4('0x1d')]()){const _0x415e02=_0x248261[_0x31b4('0x8')]();if('resizeTable'===_0x248261[_0x31b4('0x9')]&&_0x415e02===_0x42988b){_0x248261[_0x31b4('0x11')]!==_0x32b9bf&&_0x248261[_0x31b4('0x12')]();const _0x948b12=_0x248261[_0x31b4('0x2')][_0x31b4('0x14')];_0x4389a2=_0x948b12[0x0][_0x31b4('0x0')],_0x4ec6e1=_0x948b12[0x0][_0x31b4('0x18')];break;}}_0x280700({'table':_0x42988b,'tableWidth':_0x2ba68d,'columnWidths':_0x2424b7}),_0x2f301a[_0x31b4('0x4')](_0x42988b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4389a2,'columnWidths':_0x4ec6e1}],'formatGroupId':_0x31b4('0x7')},[],'resizeTable');});}[_0x31b4('0x24')](_0x21ad9e){const {data:_0x41cf0e}=_0x21ad9e;if(_0x41cf0e&&'resizeTable'===_0x41cf0e[_0x31b4('0xc')]){const _0x156465='*Format:*\x20resize\x20table';return{'type':_0x31b4('0x1b'),'content':_0x283521(this[_0x31b4('0x1a')]['locale'],_0x156465)};}}}
23
+ const _0x95fe=['table','get','Users','TableColumnResizeEditing','formatBlock','handleSuggestionDescription','formatGroupId','tableWidth','resizeTableWidth','discard','selection','commandParams','enableCommand','accept','_descriptionFactory','TrackChangesEditing','getColumnGroupElement','author','bind','data','registerDescriptionCallback','handleResizeTableWidthCommand','resizeColumnWidths','editor','columnWidths','getSuggestionCallback','document','*Format:*\x20resize\x20table','model','_suggestionFactory','registerCustomCallback','resizeTable','change','getSuggestions','plugins'];(function(_0x283a47,_0x95fe63){const _0x16beec=function(_0x2edbf2){while(--_0x2edbf2){_0x283a47['push'](_0x283a47['shift']());}};_0x16beec(++_0x95fe63);}(_0x95fe,0x10d));const _0x16be=function(_0x283a47,_0x95fe63){_0x283a47=_0x283a47-0x0;let _0x16beec=_0x95fe[_0x283a47];return _0x16beec;};import{Plugin as _0x97c6de}from'ckeditor5/src/core';import{getTranslation as _0x15d9d2}from'../utils/common-translations';export default class wt extends _0x97c6de{['afterInit'](){if(!this[_0x16be('0x22')][_0x16be('0xa')]['has']('TableColumnResizeEditing'))return;const _0x38d95e=this[_0x16be('0x22')][_0x16be('0xa')][_0x16be('0xc')]('TrackChangesEditing');_0x38d95e[_0x16be('0x17')](_0x16be('0x13'),this[_0x16be('0x20')]['bind'](this)),_0x38d95e[_0x16be('0x17')](_0x16be('0x21'),this['handleResizeTableWidthCommand'][_0x16be('0x1d')](this)),_0x38d95e[_0x16be('0x5')][_0x16be('0x6')]('formatBlock','resizeTable','accept',_0x38d95e[_0x16be('0x5')][_0x16be('0x1')](_0x16be('0xf'),null,_0x16be('0x14'))),_0x38d95e[_0x16be('0x5')][_0x16be('0x6')](_0x16be('0xf'),_0x16be('0x7'),_0x16be('0x14'),_0x38d95e[_0x16be('0x5')]['getSuggestionCallback'](_0x16be('0xf'),null,_0x16be('0x18'))),_0x38d95e[_0x16be('0x19')][_0x16be('0x1f')](this[_0x16be('0x10')][_0x16be('0x1d')](this));}[_0x16be('0x20')](_0x1938e2,_0x8f73ee){const _0x5862a4=this['editor'][_0x16be('0xa')]['get'](_0x16be('0x1a')),_0x13d484=this['editor'][_0x16be('0xa')][_0x16be('0xc')](_0x16be('0xe')),_0x133b45=_0x8f73ee[_0x16be('0xb')]||this[_0x16be('0x22')][_0x16be('0x4')][_0x16be('0x2')][_0x16be('0x15')]['getSelectedElement']();this[_0x16be('0x22')][_0x16be('0x4')][_0x16be('0x8')](()=>{const _0x5d37ab=_0x13d484[_0x16be('0x1b')](_0x133b45);let _0x53c5d2=_0x5d37ab?_0x13d484['getTableColumnsWidths'](_0x5d37ab):null,_0x2c8bc1=_0x133b45['getAttribute']('tableWidth')||null;const _0x280eac=_0x8f73ee[_0x16be('0x12')]||_0x2c8bc1,_0x25c051=_0x8f73ee[_0x16be('0x0')]||_0x53c5d2,_0x1a193a=this['editor'][_0x16be('0xa')][_0x16be('0xc')](_0x16be('0xd'))['me'];for(const _0x2b55be of _0x5862a4[_0x16be('0x9')]()){const _0x532ef8=_0x2b55be['getContainedElement']();if('resizeTable'===_0x2b55be['subType']&&_0x532ef8===_0x133b45){_0x2b55be[_0x16be('0x1c')]!==_0x1a193a&&_0x2b55be['discard']();const _0x4c5a9b=_0x2b55be[_0x16be('0x1e')][_0x16be('0x16')];_0x2c8bc1=_0x4c5a9b[0x0][_0x16be('0x12')],_0x53c5d2=_0x4c5a9b[0x0][_0x16be('0x0')];break;}}_0x1938e2({'table':_0x133b45,'tableWidth':_0x280eac,'columnWidths':_0x25c051}),_0x5862a4['markBlockFormat'](_0x133b45,{'commandName':_0x16be('0x13'),'commandParams':[{'tableWidth':_0x2c8bc1,'columnWidths':_0x53c5d2}],'formatGroupId':_0x16be('0x7')},[],_0x16be('0x7'));});}[_0x16be('0x10')](_0x22c422){const {data:_0x3cf1f2}=_0x22c422;if(_0x3cf1f2&&_0x16be('0x7')===_0x3cf1f2[_0x16be('0x11')]){const _0x8ae5c8=_0x16be('0x3');return{'type':'format','content':_0x15d9d2(this[_0x16be('0x22')]['locale'],_0x8ae5c8)};}}}
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * @module track-changes/integrations/tableheadings
3
3
  */
4
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ import TrackChangesTable from './table';
5
6
  /**
6
7
  * Provides track changes plugin integration for {@link module:table/table~Table table feature} heading rows/columns.
7
8
  */
@@ -9,7 +10,7 @@ export default class TrackChangesTableHeadings extends Plugin {
9
10
  /**
10
11
  * @inheritDoc
11
12
  */
12
- static get requires(): PluginDependencies;
13
+ static get requires(): readonly [typeof TrackChangesTable];
13
14
  /**
14
15
  * @inheritDoc
15
16
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x577a=['findAncestor','commands','forceValue','item','change','ck-suggestion-marker-','FORMAT_HEADER_ROW','isBefore','markerName','nodeAfter','_descriptionFactory','editing','TableEditing','getRowIndexes','model','TrackChangesEditing','_splitMarkerName','parent','getSuggestion','headingColumns','registerDescriptionCallback','get','options','data','FORMAT_HEADER_COLUMN','addClass','downcastDispatcher','setTableColumnHeader','data-suggestion','createRange','markBlockFormat','*Format:*\x20%0','stop','getSelectionAffectedTableCells','cell','removeClass','highest','createPositionBefore','_acceptFormatSuggestionCallbackFactory','format','childCount','plugins','setAttribute','first','formatBlock','TableUtils','consume','commandName','toViewElement','mapper','_suggestionFactory','registerCustomCallback','showSuggestionHighlights','addMarker:suggestion','document','setTableRowHeader','requires','last','FORMAT_REGULAR_ROW','enableCommand','markerNameToElements','commandParams','table','getAttribute','markerRange','from','ck-suggestion-marker--active','end','writer','value','createPositionAfter','includes','getChild','editor','createTableWalker','unbindElementFromMarkerName','nodeBefore','activeMarkers'];(function(_0x1f0176,_0x577ad3){const _0x1c3c33=function(_0xa5884b){while(--_0xa5884b){_0x1f0176['push'](_0x1f0176['shift']());}};_0x1c3c33(++_0x577ad3);}(_0x577a,0xe6));const _0x1c3c=function(_0x1f0176,_0x577ad3){_0x1f0176=_0x1f0176-0x0;let _0x1c3c33=_0x577a[_0x1f0176];return _0x1c3c33;};import{Plugin as _0x32b45a}from'ckeditor5/src/core';import _0x55a0d3 from'./table';import{getTranslation as _0x410057}from'../utils/common-translations';export default class pt extends _0x32b45a{static get[_0x1c3c('0x3c')](){return[_0x55a0d3];}['afterInit'](){const _0x22c771=this[_0x1c3c('0x4d')];if(!_0x22c771[_0x1c3c('0x2d')]['has'](_0x1c3c('0x10')))return;const _0x52649a=_0x22c771['locale'],_0x192884=_0x22c771['plugins'][_0x1c3c('0x19')](_0x1c3c('0x13')),_0x52e510=_0x22c771[_0x1c3c('0x2d')][_0x1c3c('0x19')]('TableUtils'),_0x9bbc35=_0x22c771[_0x1c3c('0x2d')][_0x1c3c('0x19')](_0x55a0d3);function _0x41a317({showActiveMarker:_0x34d44a=!0x0,setDataAttribute:_0x204ff4=!0x0}={}){return(_0x5febda,_0x16e5c6,_0x20f8f9)=>{const {type:_0xa3e9a8,id:_0x131ce6}=_0x192884['_splitMarkerName'](_0x16e5c6['markerName']),_0x2d52a8=_0x192884['getSuggestion'](_0x131ce6);if(!_0x2d52a8[_0x1c3c('0x1b')]||_0x1c3c('0x1f')!=_0x2d52a8['data'][_0x1c3c('0x33')])return;if(_0x16e5c6[_0x1c3c('0x7')])return void _0x5febda[_0x1c3c('0x24')]();if(!_0x20f8f9['consumable'][_0x1c3c('0x32')](_0x16e5c6[_0x1c3c('0x44')],_0x5febda['name']))return;const _0x2e55d8=_0x16e5c6[_0x1c3c('0x44')]['start'][_0x1c3c('0xd')],_0x2f7579=_0x16e5c6['markerRange'][_0x1c3c('0x47')][_0x1c3c('0x2')],_0x5a21a3=_0x2e55d8[_0x1c3c('0x15')][_0x1c3c('0x15')],{column:_0x2b4c81}=_0x52e510['getCellLocation'](_0x2e55d8),{column:_0x1f3a0b}=_0x52e510['getCellLocation'](_0x2f7579);for(let _0x3dc4ee=_0x2b4c81;_0x3dc4ee<=_0x1f3a0b;_0x3dc4ee++){const _0xa37f91=_0x52e510[_0x1c3c('0x0')](_0x5a21a3,{'column':_0x3dc4ee,'includeAllSlots':!0x1});for(const _0x2c8170 of _0xa37f91){const _0x26b638=_0x2c8170[_0x1c3c('0x26')],_0xb0f80e=_0x20f8f9['mapper'][_0x1c3c('0x34')](_0x26b638);_0x20f8f9['writer']['addClass']('ck-suggestion-marker-'+_0xa3e9a8,_0xb0f80e),_0x204ff4&&_0x20f8f9[_0x1c3c('0x48')][_0x1c3c('0x2e')](_0x1c3c('0x20'),_0x131ce6,_0xb0f80e),_0x20f8f9[_0x1c3c('0x35')]['bindElementToMarker'](_0xb0f80e,_0x16e5c6['markerName']),_0x34d44a&&(_0x192884[_0x1c3c('0x3')][_0x1c3c('0x4b')](_0x16e5c6['markerName'])?_0x20f8f9[_0x1c3c('0x48')][_0x1c3c('0x1d')]('ck-suggestion-marker--active',_0xb0f80e):_0x20f8f9['writer'][_0x1c3c('0x27')](_0x1c3c('0x46'),_0xb0f80e));}}};}_0x192884['enableCommand'](_0x1c3c('0x3b'),(_0x467488,_0x403eb8)=>{const _0x44b48e=_0x52e510[_0x1c3c('0x25')](_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x3a')]['selection']),_0x187c37=_0x52e510[_0x1c3c('0x11')](_0x44b48e),_0x230e80=_0x44b48e[0x0][_0x1c3c('0x4')](_0x1c3c('0x42')),_0x159f68=_0x230e80[_0x1c3c('0x43')]('headingRows')||0x0,_0x1742a0=_0x403eb8&&null!==_0x403eb8['forceValue']?_0x403eb8[_0x1c3c('0x6')]:!_0x22c771[_0x1c3c('0x5')]['get']('setTableRowHeader')['value'],_0x473185=_0x1742a0?_0x187c37[_0x1c3c('0x3d')]:_0x187c37['first'],_0x3daba1=_0x230e80[_0x1c3c('0x4c')](_0x473185);let _0x36c8fb;if(_0x1742a0){const _0xf8c659=_0x230e80['getChild'](_0x159f68);if(_0x3daba1['index']<_0xf8c659['index'])return;_0x36c8fb=_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x21')](_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x29')](_0xf8c659[_0x1c3c('0x4c')](0x0)),_0x22c771['model'][_0x1c3c('0x4a')](_0x3daba1[_0x1c3c('0x4c')](_0x3daba1[_0x1c3c('0x2c')]-0x1)));}else{const _0xa9b2f9=_0x230e80[_0x1c3c('0x4c')](_0x159f68-0x1);if(!_0xa9b2f9)return;_0x36c8fb=_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x21')](_0x22c771[_0x1c3c('0x12')]['createPositionBefore'](_0x3daba1['getChild'](0x0)),_0x22c771['model']['createPositionAfter'](_0xa9b2f9['getChild'](_0xa9b2f9[_0x1c3c('0x2c')]-0x1)));}_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x8')](()=>{_0x192884[_0x1c3c('0x22')](_0x36c8fb,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x1742a0}]},[],'setTableRowHeader');});}),_0x192884[_0x1c3c('0x3f')](_0x1c3c('0x1f'),(_0x58056c,_0x1b6620)=>{const _0x1d14fe=_0x22c771[_0x1c3c('0x2d')][_0x1c3c('0x19')](_0x1c3c('0x31')),_0x2556f0=_0x1d14fe[_0x1c3c('0x25')](_0x22c771[_0x1c3c('0x12')]['document']['selection']),_0x3f2590=_0x1d14fe['getColumnIndexes'](_0x2556f0),_0x24ff63=_0x2556f0[0x0][_0x1c3c('0x4')](_0x1c3c('0x42')),_0x28df00=_0x24ff63[_0x1c3c('0x43')](_0x1c3c('0x17'))||0x0,_0x53cf29=_0x1b6620&&null!==_0x1b6620[_0x1c3c('0x6')]?_0x1b6620[_0x1c3c('0x6')]:!_0x22c771[_0x1c3c('0x5')][_0x1c3c('0x19')]('setTableColumnHeader')[_0x1c3c('0x49')];let _0x134879;const _0x82f735=_0x24ff63[_0x1c3c('0x4c')](0x0),_0x4b17cd=_0x53cf29?_0x3f2590[_0x1c3c('0x3d')]:_0x3f2590[_0x1c3c('0x2f')],_0x547638=_0x1d14fe[_0x1c3c('0x0')](_0x24ff63,{'startRow':0x0,'column':_0x4b17cd,'includeAllSlots':!0x1}),_0x51005a=Array[_0x1c3c('0x45')](_0x547638)[0x0][_0x1c3c('0x26')];if(_0x53cf29){const _0x447260=_0x82f735[_0x1c3c('0x4c')](_0x28df00);if(_0x51005a[_0x1c3c('0xb')](_0x447260))return;_0x134879=_0x22c771[_0x1c3c('0x12')]['createRange'](_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x29')](_0x447260),_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x4a')](_0x51005a));}else{const _0x488bff=_0x82f735[_0x1c3c('0x4c')](_0x28df00-0x1);if(!_0x488bff)return;_0x134879=_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x21')](_0x22c771['model'][_0x1c3c('0x29')](_0x51005a),_0x22c771['model'][_0x1c3c('0x4a')](_0x488bff));}_0x22c771[_0x1c3c('0x12')][_0x1c3c('0x8')](()=>{_0x192884[_0x1c3c('0x22')](_0x134879,{'commandName':_0x1c3c('0x1f'),'commandParams':[{'forceValue':_0x53cf29}]},[],_0x1c3c('0x1f'));});}),_0x22c771[_0x1c3c('0xf')][_0x1c3c('0x1e')]['on'](_0x1c3c('0x39'),_0x41a317(),{'priority':_0x1c3c('0x28')}),_0x22c771['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x518518,_0x1848d4,_0x38f436)=>{_0x38f436[_0x1c3c('0x1a')][_0x1c3c('0x38')]&&_0x41a317({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x518518,_0x1848d4,_0x38f436);},{'priority':_0x1c3c('0x28')}),_0x22c771[_0x1c3c('0xf')][_0x1c3c('0x1e')]['on']('removeMarker:suggestion',(_0x4d51be,_0x1a391d,_0x51acd2)=>{const {type:_0x3d8518,id:_0x4d6cc5}=_0x192884[_0x1c3c('0x14')](_0x1a391d[_0x1c3c('0xc')]),_0x3e3752=_0x192884[_0x1c3c('0x16')](_0x4d6cc5);if(!_0x3e3752['data']||_0x1c3c('0x1f')!=_0x3e3752[_0x1c3c('0x1b')][_0x1c3c('0x33')])return;const _0x1e2d5e=_0x51acd2['mapper'][_0x1c3c('0x40')](_0x1a391d[_0x1c3c('0xc')]);if(_0x1e2d5e)for(const _0x5c8912 of _0x1e2d5e)_0x51acd2[_0x1c3c('0x48')][_0x1c3c('0x27')](_0x1c3c('0x9')+_0x3d8518,_0x5c8912),_0x51acd2[_0x1c3c('0x48')]['removeClass']('ck-suggestion-marker--active',_0x5c8912),_0x51acd2['writer']['removeAttribute']('data-suggestion',_0x5c8912),_0x51acd2['mapper'][_0x1c3c('0x1')](_0x5c8912,_0x1a391d['markerName']);},{'priority':_0x1c3c('0x28')}),_0x192884[_0x1c3c('0xe')][_0x1c3c('0x18')](_0x5a0072=>{const {data:_0xa78036}=_0x5a0072;if(_0xa78036){if(_0x1c3c('0x3b')==_0xa78036['commandName']){const _0x3e7d90=_0xa78036[_0x1c3c('0x41')][0x0][_0x1c3c('0x6')];return _0x1e605c(_0x410057(_0x52649a,_0x3e7d90?_0x1c3c('0xa'):_0x1c3c('0x3e')));}if('setTableColumnHeader'==_0xa78036[_0x1c3c('0x33')]){const _0x216c25=_0xa78036['commandParams'][0x0]['forceValue'];return _0x1e605c(_0x410057(_0x52649a,_0x216c25?_0x1c3c('0x1c'):'FORMAT_REGULAR_COLUMN'));}}function _0x1e605c(_0x243d37){return{'type':_0x1c3c('0x2b'),'content':_0x410057(_0x52649a,_0x1c3c('0x23'),_0x243d37)};}});const _0x1c04d4=_0x9bbc35[_0x1c3c('0x2a')]();_0x192884[_0x1c3c('0x36')]['registerCustomCallback'](_0x1c3c('0x30'),_0x1c3c('0x3b'),'accept',_0x1c04d4),_0x192884[_0x1c3c('0x36')][_0x1c3c('0x37')](_0x1c3c('0x30'),_0x1c3c('0x1f'),'accept',_0x1c04d4);}}
23
+ const _0x2fd5=['TableUtils','setTableColumnHeader','getSuggestion','afterInit','has','mapper','editing','isBefore','addClass','ck-suggestion-marker-','commands','start','includes','data-suggestion','getSelectionAffectedTableCells','commandParams','markBlockFormat','commandName','removeClass','registerCustomCallback','registerDescriptionCallback','FORMAT_REGULAR_COLUMN','value','headingColumns','_suggestionFactory','_acceptFormatSuggestionCallbackFactory','end','getChild','cell','createRange','parent','accept','createPositionBefore','bindElementToMarker','unbindElementFromMarkerName','highest','FORMAT_HEADER_ROW','downcastDispatcher','toViewElement','findAncestor','FORMAT_HEADER_COLUMN','enableCommand','data','createTableWalker','stop','document','getColumnIndexes','consumable','table','plugins','setTableRowHeader','item','childCount','addMarker:suggestion','_descriptionFactory','formatBlock','ck-suggestion-marker--active','markerName','getAttribute','options','showSuggestionHighlights','getRowIndexes','change','_splitMarkerName','selection','markerRange','TrackChangesEditing','markerNameToElements','nodeBefore','getCellLocation','first','TableEditing','nodeAfter','createPositionAfter','get','forceValue','writer','model','index','setAttribute','removeMarker:suggestion','activeMarkers'];(function(_0x10a9ff,_0x2fd5ef){const _0x4cd5f0=function(_0x20485b){while(--_0x20485b){_0x10a9ff['push'](_0x10a9ff['shift']());}};_0x4cd5f0(++_0x2fd5ef);}(_0x2fd5,0xaa));const _0x4cd5=function(_0x10a9ff,_0x2fd5ef){_0x10a9ff=_0x10a9ff-0x0;let _0x4cd5f0=_0x2fd5[_0x10a9ff];return _0x4cd5f0;};import{Plugin as _0x4ba6b0}from'ckeditor5/src/core';import _0x3167ba from'./table';import{getTranslation as _0x428b64}from'../utils/common-translations';export default class pt extends _0x4ba6b0{static get['requires'](){return[_0x3167ba];}[_0x4cd5('0x4f')](){const _0x5921ab=this['editor'];if(!_0x5921ab[_0x4cd5('0x2b')][_0x4cd5('0x50')](_0x4cd5('0x41')))return;const _0x53b1e9=_0x5921ab['locale'],_0x57da0e=_0x5921ab[_0x4cd5('0x2b')][_0x4cd5('0x44')](_0x4cd5('0x3c')),_0x3919de=_0x5921ab[_0x4cd5('0x2b')][_0x4cd5('0x44')](_0x4cd5('0x4c')),_0x4d0a6d=_0x5921ab[_0x4cd5('0x2b')]['get'](_0x3167ba);function _0x2f82c2({showActiveMarker:_0xf76303=!0x0,setDataAttribute:_0x1e3a6a=!0x0}={}){return(_0x3bb676,_0x44fbb0,_0x17c574)=>{const {type:_0x27372d,id:_0x12bacc}=_0x57da0e[_0x4cd5('0x39')](_0x44fbb0[_0x4cd5('0x33')]),_0x5708ee=_0x57da0e[_0x4cd5('0x4e')](_0x12bacc);if(!_0x5708ee['data']||_0x4cd5('0x4d')!=_0x5708ee[_0x4cd5('0x24')]['commandName'])return;if(_0x44fbb0[_0x4cd5('0x2d')])return void _0x3bb676[_0x4cd5('0x26')]();if(!_0x17c574[_0x4cd5('0x29')]['consume'](_0x44fbb0[_0x4cd5('0x3b')],_0x3bb676['name']))return;const _0x3bb23b=_0x44fbb0[_0x4cd5('0x3b')][_0x4cd5('0x5')][_0x4cd5('0x42')],_0x43e8d6=_0x44fbb0[_0x4cd5('0x3b')][_0x4cd5('0x14')][_0x4cd5('0x3e')],_0x184021=_0x3bb23b[_0x4cd5('0x18')][_0x4cd5('0x18')],{column:_0x27598b}=_0x3919de[_0x4cd5('0x3f')](_0x3bb23b),{column:_0x3562e6}=_0x3919de[_0x4cd5('0x3f')](_0x43e8d6);for(let _0x5f1179=_0x27598b;_0x5f1179<=_0x3562e6;_0x5f1179++){const _0x145a13=_0x3919de[_0x4cd5('0x25')](_0x184021,{'column':_0x5f1179,'includeAllSlots':!0x1});for(const _0x102cde of _0x145a13){const _0x38d025=_0x102cde[_0x4cd5('0x16')],_0x35de4c=_0x17c574['mapper'][_0x4cd5('0x20')](_0x38d025);_0x17c574[_0x4cd5('0x46')][_0x4cd5('0x2')](_0x4cd5('0x3')+_0x27372d,_0x35de4c),_0x1e3a6a&&_0x17c574[_0x4cd5('0x46')][_0x4cd5('0x49')](_0x4cd5('0x7'),_0x12bacc,_0x35de4c),_0x17c574[_0x4cd5('0x51')][_0x4cd5('0x1b')](_0x35de4c,_0x44fbb0[_0x4cd5('0x33')]),_0xf76303&&(_0x57da0e[_0x4cd5('0x4b')][_0x4cd5('0x6')](_0x44fbb0[_0x4cd5('0x33')])?_0x17c574[_0x4cd5('0x46')][_0x4cd5('0x2')](_0x4cd5('0x32'),_0x35de4c):_0x17c574[_0x4cd5('0x46')][_0x4cd5('0xc')]('ck-suggestion-marker--active',_0x35de4c));}}};}_0x57da0e[_0x4cd5('0x23')]('setTableRowHeader',(_0x4ab8d7,_0xf1ca1c)=>{const _0x1c8290=_0x3919de[_0x4cd5('0x8')](_0x5921ab[_0x4cd5('0x47')][_0x4cd5('0x27')]['selection']),_0xbdeba=_0x3919de[_0x4cd5('0x37')](_0x1c8290),_0x261176=_0x1c8290[0x0]['findAncestor'](_0x4cd5('0x2a')),_0x4acd05=_0x261176[_0x4cd5('0x34')]('headingRows')||0x0,_0x50a8c5=_0xf1ca1c&&null!==_0xf1ca1c['forceValue']?_0xf1ca1c['forceValue']:!_0x5921ab['commands'][_0x4cd5('0x44')](_0x4cd5('0x2c'))[_0x4cd5('0x10')],_0x290072=_0x50a8c5?_0xbdeba['last']:_0xbdeba[_0x4cd5('0x40')],_0x2f796e=_0x261176[_0x4cd5('0x15')](_0x290072);let _0xac5d90;if(_0x50a8c5){const _0x49e6b5=_0x261176[_0x4cd5('0x15')](_0x4acd05);if(_0x2f796e[_0x4cd5('0x48')]<_0x49e6b5[_0x4cd5('0x48')])return;_0xac5d90=_0x5921ab[_0x4cd5('0x47')]['createRange'](_0x5921ab['model'][_0x4cd5('0x1a')](_0x49e6b5[_0x4cd5('0x15')](0x0)),_0x5921ab['model']['createPositionAfter'](_0x2f796e['getChild'](_0x2f796e[_0x4cd5('0x2e')]-0x1)));}else{const _0x5a1261=_0x261176[_0x4cd5('0x15')](_0x4acd05-0x1);if(!_0x5a1261)return;_0xac5d90=_0x5921ab['model'][_0x4cd5('0x17')](_0x5921ab[_0x4cd5('0x47')]['createPositionBefore'](_0x2f796e[_0x4cd5('0x15')](0x0)),_0x5921ab[_0x4cd5('0x47')][_0x4cd5('0x43')](_0x5a1261[_0x4cd5('0x15')](_0x5a1261[_0x4cd5('0x2e')]-0x1)));}_0x5921ab[_0x4cd5('0x47')][_0x4cd5('0x38')](()=>{_0x57da0e[_0x4cd5('0xa')](_0xac5d90,{'commandName':_0x4cd5('0x2c'),'commandParams':[{'forceValue':_0x50a8c5}]},[],_0x4cd5('0x2c'));});}),_0x57da0e[_0x4cd5('0x23')](_0x4cd5('0x4d'),(_0x40bb41,_0x34a931)=>{const _0x559b09=_0x5921ab[_0x4cd5('0x2b')][_0x4cd5('0x44')](_0x4cd5('0x4c')),_0x214767=_0x559b09[_0x4cd5('0x8')](_0x5921ab[_0x4cd5('0x47')][_0x4cd5('0x27')][_0x4cd5('0x3a')]),_0x518eaf=_0x559b09[_0x4cd5('0x28')](_0x214767),_0x4d6ce9=_0x214767[0x0][_0x4cd5('0x21')](_0x4cd5('0x2a')),_0x587d74=_0x4d6ce9[_0x4cd5('0x34')](_0x4cd5('0x11'))||0x0,_0x2a3ee6=_0x34a931&&null!==_0x34a931[_0x4cd5('0x45')]?_0x34a931['forceValue']:!_0x5921ab[_0x4cd5('0x4')]['get']('setTableColumnHeader')['value'];let _0x5d4a0a;const _0x370a40=_0x4d6ce9['getChild'](0x0),_0x4ebd8f=_0x2a3ee6?_0x518eaf['last']:_0x518eaf[_0x4cd5('0x40')],_0x3fe2c0=_0x559b09['createTableWalker'](_0x4d6ce9,{'startRow':0x0,'column':_0x4ebd8f,'includeAllSlots':!0x1}),_0x125331=Array['from'](_0x3fe2c0)[0x0][_0x4cd5('0x16')];if(_0x2a3ee6){const _0x596b69=_0x370a40[_0x4cd5('0x15')](_0x587d74);if(_0x125331[_0x4cd5('0x1')](_0x596b69))return;_0x5d4a0a=_0x5921ab[_0x4cd5('0x47')][_0x4cd5('0x17')](_0x5921ab[_0x4cd5('0x47')][_0x4cd5('0x1a')](_0x596b69),_0x5921ab[_0x4cd5('0x47')][_0x4cd5('0x43')](_0x125331));}else{const _0x40f468=_0x370a40[_0x4cd5('0x15')](_0x587d74-0x1);if(!_0x40f468)return;_0x5d4a0a=_0x5921ab[_0x4cd5('0x47')][_0x4cd5('0x17')](_0x5921ab['model'][_0x4cd5('0x1a')](_0x125331),_0x5921ab[_0x4cd5('0x47')][_0x4cd5('0x43')](_0x40f468));}_0x5921ab[_0x4cd5('0x47')][_0x4cd5('0x38')](()=>{_0x57da0e['markBlockFormat'](_0x5d4a0a,{'commandName':_0x4cd5('0x4d'),'commandParams':[{'forceValue':_0x2a3ee6}]},[],_0x4cd5('0x4d'));});}),_0x5921ab[_0x4cd5('0x0')]['downcastDispatcher']['on']('addMarker:suggestion',_0x2f82c2(),{'priority':'highest'}),_0x5921ab['data'][_0x4cd5('0x1f')]['on'](_0x4cd5('0x2f'),(_0x4da14c,_0x5a4c24,_0x15da2b)=>{_0x15da2b[_0x4cd5('0x35')][_0x4cd5('0x36')]&&_0x2f82c2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4da14c,_0x5a4c24,_0x15da2b);},{'priority':'highest'}),_0x5921ab[_0x4cd5('0x0')]['downcastDispatcher']['on'](_0x4cd5('0x4a'),(_0x5ae4bf,_0x45e546,_0x3075d2)=>{const {type:_0x25acb4,id:_0x13a0a9}=_0x57da0e['_splitMarkerName'](_0x45e546[_0x4cd5('0x33')]),_0x3a67a5=_0x57da0e[_0x4cd5('0x4e')](_0x13a0a9);if(!_0x3a67a5[_0x4cd5('0x24')]||'setTableColumnHeader'!=_0x3a67a5[_0x4cd5('0x24')]['commandName'])return;const _0x23a249=_0x3075d2[_0x4cd5('0x51')][_0x4cd5('0x3d')](_0x45e546['markerName']);if(_0x23a249)for(const _0x271ef0 of _0x23a249)_0x3075d2['writer'][_0x4cd5('0xc')](_0x4cd5('0x3')+_0x25acb4,_0x271ef0),_0x3075d2[_0x4cd5('0x46')][_0x4cd5('0xc')](_0x4cd5('0x32'),_0x271ef0),_0x3075d2[_0x4cd5('0x46')]['removeAttribute'](_0x4cd5('0x7'),_0x271ef0),_0x3075d2[_0x4cd5('0x51')][_0x4cd5('0x1c')](_0x271ef0,_0x45e546['markerName']);},{'priority':_0x4cd5('0x1d')}),_0x57da0e[_0x4cd5('0x30')][_0x4cd5('0xe')](_0x5ed3f1=>{const {data:_0xd97b42}=_0x5ed3f1;if(_0xd97b42){if(_0x4cd5('0x2c')==_0xd97b42[_0x4cd5('0xb')]){const _0x1610d7=_0xd97b42[_0x4cd5('0x9')][0x0]['forceValue'];return _0x4092e4(_0x428b64(_0x53b1e9,_0x1610d7?_0x4cd5('0x1e'):'FORMAT_REGULAR_ROW'));}if(_0x4cd5('0x4d')==_0xd97b42[_0x4cd5('0xb')]){const _0x445a35=_0xd97b42['commandParams'][0x0]['forceValue'];return _0x4092e4(_0x428b64(_0x53b1e9,_0x445a35?_0x4cd5('0x22'):_0x4cd5('0xf')));}}function _0x4092e4(_0x4cdf2){return{'type':'format','content':_0x428b64(_0x53b1e9,'*Format:*\x20%0',_0x4cdf2)};}});const _0x2fe6af=_0x4d0a6d[_0x4cd5('0x13')]();_0x57da0e['_suggestionFactory'][_0x4cd5('0xd')](_0x4cd5('0x31'),_0x4cd5('0x2c'),_0x4cd5('0x19'),_0x2fe6af),_0x57da0e[_0x4cd5('0x12')]['registerCustomCallback'](_0x4cd5('0x31'),'setTableColumnHeader',_0x4cd5('0x19'),_0x2fe6af);}}
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * @module track-changes/integrations/tablemergesplit
3
3
  */
4
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ import TrackChangesTable from './table';
5
6
  /**
6
7
  * Provides track changes plugin integration for {@link module:table/table~Table table feature} merging and splitting cells.
7
8
  */
@@ -9,7 +10,7 @@ export default class TrackChangesTableMergeSplit extends Plugin {
9
10
  /**
10
11
  * @inheritDoc
11
12
  */
12
- static get requires(): PluginDependencies;
13
+ static get requires(): readonly [typeof TrackChangesTable];
13
14
  /**
14
15
  * @inheritDoc
15
16
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53cd=['markBlockFormat','rootName','format','set:isEnabled','length','*Merge\x20cells*','TrackChangesEditing','type','plugins','execute','filter','locale','deletion','map','low','mergeTableCellRight','splitTableCellVertically','trackChanges','getFirstPosition','mergeTableCellUp','return','*Split\x20cell:*\x20horizontally','registerDescriptionCallback','commandName','from','_isForcedDefaultExecutionBlock','TableEditing','push','_areMergableCells','direction','formatBlock','get','add','editor','stop','tableCell','isEnabled','commands','registerCustomCallback','value','detach','containsRange','has','$graveyard','getSelectionAffectedTableCells','*Split\x20cell:*\x20vertically','markMultiRangeBlockFormat','afterInit','cell','getAncestors','_suggestionFactory','createTableWalker','mergeTableCells','horizontally','highest','element','getSuggestions','isInContent','_areSelectedCellsMergable','author','document','mergeTableCellDown','accept','selection','size','find','mergeTableCellLeft','enableCommand','getRanges','setSelection','TableUtils','findAncestor','createRangeOn','fromRange','table','_acceptFormatSuggestionCallbackFactory','model','change'];(function(_0x2f5c89,_0x53cd61){const _0x877c19=function(_0x14156d){while(--_0x14156d){_0x2f5c89['push'](_0x2f5c89['shift']());}};_0x877c19(++_0x53cd61);}(_0x53cd,0x12b));const _0x877c=function(_0x2f5c89,_0x53cd61){_0x2f5c89=_0x2f5c89-0x0;let _0x877c19=_0x53cd[_0x2f5c89];return _0x877c19;};import{Plugin as _0x5b3132}from'ckeditor5/src/core';import _0x5de621 from'./table';import{LiveRange as _0x2c6856}from'ckeditor5/src/engine';import{getTranslation as _0x484c9f}from'../utils/common-translations';export default class dt extends _0x5b3132{static get['requires'](){return[_0x5de621];}[_0x877c('0x3c')](){const _0x400168=this[_0x877c('0x2e')],_0x4c5c94=_0x400168[_0x877c('0xb')][_0x877c('0x49')][_0x877c('0x4c')],_0x30cb74=_0x400168[_0x877c('0x18')];if(!_0x400168[_0x877c('0x15')][_0x877c('0x37')](_0x877c('0x27')))return;const _0x408ab1=_0x400168[_0x877c('0x15')][_0x877c('0x2c')]('TrackChangesEditing'),_0x12d0ec=_0x400168[_0x877c('0x15')][_0x877c('0x2c')](_0x877c('0x5')),_0x2f9157=_0x400168[_0x877c('0x15')][_0x877c('0x2c')](_0x5de621);_0x2f9157['_tablePostFixingSubtypes'][_0x877c('0x28')](_0x877c('0x41')),_0x408ab1['enableCommand'](_0x877c('0x41'),()=>{const _0x12c19f=_0x12d0ec[_0x877c('0x39')](_0x400168[_0x877c('0xb')]['document']['selection']);_0x400168[_0x877c('0xb')][_0x877c('0xc')](()=>{_0x408ab1[_0x877c('0x3b')](_0x12c19f,{'commandName':_0x877c('0x41'),'commandParams':[]},[],_0x877c('0x41'));});}),_0x400168[_0x877c('0x32')]['get'](_0x877c('0x41'))['on'](_0x877c('0x16'),(_0x56ff80,_0x385abe)=>{_0x400168[_0x877c('0x32')][_0x877c('0x2c')](_0x877c('0x1e'))[_0x877c('0x34')]&&(_0x385abe[_0x877c('0x11')]>0x0&&_0x385abe[_0x385abe[_0x877c('0x11')]-0x1]&&_0x385abe[_0x385abe['length']-0x1]['forceDefaultExecution']||_0x408ab1[_0x877c('0x26')]||this[_0x877c('0x47')]()||_0x56ff80[_0x877c('0x2f')]());},{'priority':_0x877c('0x43')});for(const _0x314d07 of['mergeTableCellUp','mergeTableCellRight',_0x877c('0x4a'),_0x877c('0x1')]){const _0x2c22b2=_0x400168[_0x877c('0x32')][_0x877c('0x2c')](_0x314d07);_0x408ab1[_0x877c('0x2')](_0x314d07,()=>{const _0x4e2e61=_0x400168[_0x877c('0xb')][_0x877c('0x49')]['selection'][_0x877c('0x1f')]()[_0x877c('0x3e')]()[_0x877c('0x0')](_0x33d4ca=>_0x33d4ca['is']('element',_0x877c('0x30'))),_0x5bc820=_0x2c22b2['value'];_0x400168[_0x877c('0xb')][_0x877c('0xc')](()=>{_0x408ab1[_0x877c('0x3b')]([_0x4e2e61,_0x5bc820],{'commandName':_0x877c('0x41'),'commandParams':[]},[],_0x877c('0x41'));});});}for(const _0x26a56e of[_0x877c('0x1d'),'splitTableCellHorizontally']){const _0x2bb691=_0x400168[_0x877c('0x32')][_0x877c('0x2c')](_0x26a56e);_0x408ab1[_0x877c('0x2')](_0x26a56e,()=>{const _0x1ab0be=_0x12d0ec['getSelectionAffectedTableCells'](_0x400168[_0x877c('0xb')][_0x877c('0x49')]['selection'])[0x0],_0x18d137=_0x1ab0be[_0x877c('0x6')](_0x877c('0x9')),{column:_0x1195e7,row:_0x556b6f}=_0x12d0ec['getCellLocation'](_0x1ab0be);let _0x2b0517=[];if(_0x877c('0x42')==_0x2bb691[_0x877c('0x2a')]){const _0x370e30=_0x12d0ec[_0x877c('0x40')](_0x18d137,{'startRow':_0x556b6f,'endRow':_0x556b6f,'includeAllSlots':!0x0});_0x2b0517=Array['from'](_0x370e30)[_0x877c('0x1a')](_0x2e4bdb=>_0x2e4bdb[_0x877c('0x3d')]);}else{const _0x9a1e67=_0x12d0ec[_0x877c('0x40')](_0x18d137,{'column':_0x1195e7,'includeAllSlots':!0x0});_0x2b0517=Array[_0x877c('0x25')](_0x9a1e67)[_0x877c('0x1a')](_0x4b67a0=>_0x4b67a0[_0x877c('0x3d')]);}_0x400168['model'][_0x877c('0xc')](_0x3cea1a=>{_0x408ab1[_0x877c('0xd')](_0x3cea1a['createRangeOn'](_0x1ab0be),{'commandName':_0x26a56e,'commandParams':[]},_0x2b0517,_0x26a56e);});});}_0x408ab1['_descriptionFactory'][_0x877c('0x23')](_0x451892=>{const {data:_0x5b1aa4}=_0x451892;if(_0x5b1aa4)return _0x877c('0x41')==_0x5b1aa4['commandName']?{'type':'format','content':_0x484c9f(_0x30cb74,_0x877c('0x12'))}:void 0x0;}),_0x408ab1['_descriptionFactory'][_0x877c('0x23')](_0x39c519=>{const {data:_0x44c1b5}=_0x39c519;if(_0x44c1b5)return _0x877c('0x1d')==_0x44c1b5['commandName']?{'type':_0x877c('0xf'),'content':_0x484c9f(_0x30cb74,_0x877c('0x3a'))}:'splitTableCellHorizontally'==_0x44c1b5[_0x877c('0x24')]?{'type':_0x877c('0xf'),'content':_0x484c9f(_0x30cb74,_0x877c('0x22'))}:void 0x0;});const _0x20c44f=_0x2f9157[_0x877c('0xa')]();for(const _0x12a110 of[_0x877c('0x20'),_0x877c('0x1c'),_0x877c('0x4a'),_0x877c('0x1')])_0x408ab1[_0x877c('0x3f')][_0x877c('0x33')](_0x877c('0x2b'),_0x12a110,_0x877c('0x4b'),_0x20c44f);for(const _0x1619da of[_0x877c('0x1d'),'splitTableCellHorizontally'])_0x408ab1[_0x877c('0x3f')][_0x877c('0x33')]('formatBlock',_0x1619da,'accept',_0x20c44f);_0x408ab1[_0x877c('0x3f')]['registerCustomCallback'](_0x877c('0x2b'),_0x877c('0x41'),_0x877c('0x4b'),_0x11ac52=>{_0x400168[_0x877c('0xb')]['change'](_0x24be6e=>{const _0x3bd3b4=Array['from'](_0x4c5c94[_0x877c('0x3')]())['map'](_0x269fbe=>_0x2c6856[_0x877c('0x8')](_0x269fbe));_0x24be6e[_0x877c('0x4')](_0x11ac52),_0x400168[_0x877c('0x32')][_0x877c('0x2c')](_0x877c('0x41'))['refresh'](),_0x400168[_0x877c('0x16')](_0x877c('0x41'),{'forceDefaultExecution':!0x0});const _0x506b0e=_0x3bd3b4[_0x877c('0x17')](_0x1ae983=>_0x877c('0x38')!=_0x1ae983['root'][_0x877c('0xe')]);_0x506b0e[_0x877c('0x11')]>0x0&&_0x24be6e['setSelection'](_0x506b0e);for(const _0x3fae42 of _0x3bd3b4)_0x3fae42[_0x877c('0x35')]();});});for(const _0x316c03 of[_0x877c('0x20'),'mergeTableCellDown',_0x877c('0x1'),_0x877c('0x1c')]){const _0x1de595=_0x400168[_0x877c('0x32')][_0x877c('0x2c')](_0x316c03);_0x1de595['on'](_0x877c('0x10'),(_0x28e01a,_0x2c2671,_0x5d50ff)=>{if(_0x5d50ff){const _0x141f42=_0x400168[_0x877c('0xb')][_0x877c('0x49')][_0x877c('0x4c')][_0x877c('0x1f')]()[_0x877c('0x3e')]()[_0x877c('0x0')](_0x34cf7b=>_0x34cf7b['is'](_0x877c('0x44'),_0x877c('0x30')));this['_areMergableCells'](_0x1de595[_0x877c('0x34')],_0x141f42)||(_0x28e01a[_0x877c('0x21')]=!0x1,_0x28e01a[_0x877c('0x2f')]());}},{'priority':_0x877c('0x1b')});}}[_0x877c('0x47')](){const _0x2af325=this['editor'][_0x877c('0x32')][_0x877c('0x2c')](_0x877c('0x41')),_0x2f9f89=this[_0x877c('0x2e')]['plugins']['get'](_0x877c('0x5'));if(!_0x2af325[_0x877c('0x31')])return!0x1;const _0x7f67d0=_0x2f9f89[_0x877c('0x39')](this[_0x877c('0x2e')][_0x877c('0xb')]['document'][_0x877c('0x4c')]);for(const _0x120162 of _0x7f67d0)for(const _0x4a5b75 of _0x7f67d0)if(_0x120162!=_0x4a5b75&&!this['_areMergableCells'](_0x120162,_0x4a5b75))return!0x1;return!0x0;}[_0x877c('0x29')](_0x1257f3,_0x18f760){const _0x5df759=this[_0x877c('0x2e')][_0x877c('0x15')][_0x877c('0x2c')](_0x877c('0x13')),_0x5e3616=this[_0x877c('0x2e')][_0x877c('0xb')][_0x877c('0x7')](_0x1257f3),_0x20bf68=this[_0x877c('0x2e')][_0x877c('0xb')][_0x877c('0x7')](_0x18f760),_0x2aa307=new Set(),_0x49ad29=new Set();for(const _0x44695c of _0x5df759[_0x877c('0x45')]())if(('insertion'==_0x44695c[_0x877c('0x14')]||_0x877c('0x19')==_0x44695c['type']||_0x877c('0x41')==_0x44695c['subType'])&&_0x44695c[_0x877c('0x46')])for(const _0x35b5c1 of _0x44695c[_0x877c('0x3')]())_0x35b5c1['containsRange'](_0x5e3616,!0x0)&&_0x2aa307[_0x877c('0x2d')](_0x44695c[_0x877c('0x14')]+':'+_0x44695c[_0x877c('0x48')]['id']),_0x35b5c1[_0x877c('0x36')](_0x20bf68,!0x0)&&_0x49ad29[_0x877c('0x2d')](_0x44695c[_0x877c('0x14')]+':'+_0x44695c[_0x877c('0x48')]['id']);if(_0x2aa307[_0x877c('0x4d')]!=_0x49ad29['size'])return!0x1;for(const _0x2f6a72 of _0x2aa307)if(!_0x49ad29[_0x877c('0x37')](_0x2f6a72))return!0x1;return!0x0;}}
23
+ const _0x1522=['trackChanges','fromRange','mergeTableCellUp','get','document','return','value','editor','execute','createRangeOn','_areSelectedCellsMergable','commandName','_areMergableCells','from','has','forceDefaultExecution','mergeTableCellRight','accept','mergeTableCells','setSelection','cell','model','containsRange','stop','add','refresh','type','direction','element','mergeTableCellDown','change','registerDescriptionCallback','*Split\x20cell:*\x20vertically','_acceptFormatSuggestionCallbackFactory','isInContent','TrackChangesEditing','findAncestor','getFirstPosition','set:isEnabled','registerCustomCallback','getSelectionAffectedTableCells','low','getAncestors','enableCommand','splitTableCellVertically','author','_tablePostFixingSubtypes','format','find','TableEditing','detach','TableUtils','plugins','size','locale','root','horizontally','deletion','_suggestionFactory','formatBlock','selection','markMultiRangeBlockFormat','_isForcedDefaultExecutionBlock','createTableWalker','getRanges','length','*Merge\x20cells*','mergeTableCellLeft','getCellLocation','commands','map','subType','splitTableCellHorizontally','filter'];(function(_0x14776c,_0x1522df){const _0x4f83ba=function(_0x197e84){while(--_0x197e84){_0x14776c['push'](_0x14776c['shift']());}};_0x4f83ba(++_0x1522df);}(_0x1522,0xba));const _0x4f83=function(_0x14776c,_0x1522df){_0x14776c=_0x14776c-0x0;let _0x4f83ba=_0x1522[_0x14776c];return _0x4f83ba;};import{Plugin as _0xbc9404}from'ckeditor5/src/core';import _0x3c6ae0 from'./table';import{LiveRange as _0x226068}from'ckeditor5/src/engine';import{getTranslation as _0x47115f}from'../utils/common-translations';export default class dt extends _0xbc9404{static get['requires'](){return[_0x3c6ae0];}['afterInit'](){const _0xb93eeb=this[_0x4f83('0x2b')],_0x2161e6=_0xb93eeb['model'][_0x4f83('0x28')][_0x4f83('0x16')],_0xc78007=_0xb93eeb[_0x4f83('0x10')];if(!_0xb93eeb[_0x4f83('0xe')][_0x4f83('0x32')](_0x4f83('0xb')))return;const _0x20b8a7=_0xb93eeb[_0x4f83('0xe')][_0x4f83('0x27')](_0x4f83('0x47')),_0x4d94b5=_0xb93eeb[_0x4f83('0xe')][_0x4f83('0x27')](_0x4f83('0xd')),_0x557fa4=_0xb93eeb[_0x4f83('0xe')][_0x4f83('0x27')](_0x3c6ae0);_0x557fa4[_0x4f83('0x8')]['push'](_0x4f83('0x36')),_0x20b8a7['enableCommand'](_0x4f83('0x36'),()=>{const _0x49eb37=_0x4d94b5['getSelectionAffectedTableCells'](_0xb93eeb[_0x4f83('0x39')][_0x4f83('0x28')][_0x4f83('0x16')]);_0xb93eeb['model'][_0x4f83('0x42')](()=>{_0x20b8a7[_0x4f83('0x17')](_0x49eb37,{'commandName':_0x4f83('0x36'),'commandParams':[]},[],_0x4f83('0x36'));});}),_0xb93eeb['commands']['get'](_0x4f83('0x36'))['on'](_0x4f83('0x2c'),(_0x66903f,_0x535ede)=>{_0xb93eeb[_0x4f83('0x1f')][_0x4f83('0x27')](_0x4f83('0x24'))[_0x4f83('0x2a')]&&(_0x535ede[_0x4f83('0x1b')]>0x0&&_0x535ede[_0x535ede[_0x4f83('0x1b')]-0x1]&&_0x535ede[_0x535ede[_0x4f83('0x1b')]-0x1][_0x4f83('0x33')]||_0x20b8a7[_0x4f83('0x18')]||this[_0x4f83('0x2e')]()||_0x66903f[_0x4f83('0x3b')]());},{'priority':'highest'});for(const _0x5aab10 of[_0x4f83('0x26'),_0x4f83('0x34'),_0x4f83('0x41'),'mergeTableCellLeft']){const _0x54c7f9=_0xb93eeb[_0x4f83('0x1f')][_0x4f83('0x27')](_0x5aab10);_0x20b8a7[_0x4f83('0x5')](_0x5aab10,()=>{const _0x218b4a=_0xb93eeb[_0x4f83('0x39')][_0x4f83('0x28')][_0x4f83('0x16')][_0x4f83('0x49')]()[_0x4f83('0x4')]()[_0x4f83('0xa')](_0x24e8a3=>_0x24e8a3['is'](_0x4f83('0x40'),'tableCell')),_0x547c15=_0x54c7f9[_0x4f83('0x2a')];_0xb93eeb[_0x4f83('0x39')][_0x4f83('0x42')](()=>{_0x20b8a7['markMultiRangeBlockFormat']([_0x218b4a,_0x547c15],{'commandName':_0x4f83('0x36'),'commandParams':[]},[],_0x4f83('0x36'));});});}for(const _0x3e6e80 of[_0x4f83('0x6'),_0x4f83('0x22')]){const _0x4c59e1=_0xb93eeb[_0x4f83('0x1f')][_0x4f83('0x27')](_0x3e6e80);_0x20b8a7[_0x4f83('0x5')](_0x3e6e80,()=>{const _0x3672c5=_0x4d94b5[_0x4f83('0x2')](_0xb93eeb[_0x4f83('0x39')]['document'][_0x4f83('0x16')])[0x0],_0x3c685a=_0x3672c5[_0x4f83('0x48')]('table'),{column:_0x39a458,row:_0x559318}=_0x4d94b5[_0x4f83('0x1e')](_0x3672c5);let _0x6bd97=[];if(_0x4f83('0x12')==_0x4c59e1[_0x4f83('0x3f')]){const _0x1f0294=_0x4d94b5['createTableWalker'](_0x3c685a,{'startRow':_0x559318,'endRow':_0x559318,'includeAllSlots':!0x0});_0x6bd97=Array[_0x4f83('0x31')](_0x1f0294)[_0x4f83('0x20')](_0x4d497d=>_0x4d497d[_0x4f83('0x38')]);}else{const _0x25fef4=_0x4d94b5[_0x4f83('0x19')](_0x3c685a,{'column':_0x39a458,'includeAllSlots':!0x0});_0x6bd97=Array[_0x4f83('0x31')](_0x25fef4)[_0x4f83('0x20')](_0x260016=>_0x260016[_0x4f83('0x38')]);}_0xb93eeb[_0x4f83('0x39')][_0x4f83('0x42')](_0x25bad2=>{_0x20b8a7['markBlockFormat'](_0x25bad2[_0x4f83('0x2d')](_0x3672c5),{'commandName':_0x3e6e80,'commandParams':[]},_0x6bd97,_0x3e6e80);});});}_0x20b8a7['_descriptionFactory'][_0x4f83('0x43')](_0x16dda9=>{const {data:_0x54584d}=_0x16dda9;if(_0x54584d)return'mergeTableCells'==_0x54584d['commandName']?{'type':'format','content':_0x47115f(_0xc78007,_0x4f83('0x1c'))}:void 0x0;}),_0x20b8a7['_descriptionFactory'][_0x4f83('0x43')](_0x299305=>{const {data:_0xd475dd}=_0x299305;if(_0xd475dd)return _0x4f83('0x6')==_0xd475dd[_0x4f83('0x2f')]?{'type':_0x4f83('0x9'),'content':_0x47115f(_0xc78007,_0x4f83('0x44'))}:_0x4f83('0x22')==_0xd475dd[_0x4f83('0x2f')]?{'type':_0x4f83('0x9'),'content':_0x47115f(_0xc78007,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x330595=_0x557fa4[_0x4f83('0x45')]();for(const _0x4e1f9d of[_0x4f83('0x26'),'mergeTableCellRight',_0x4f83('0x41'),'mergeTableCellLeft'])_0x20b8a7[_0x4f83('0x14')][_0x4f83('0x1')](_0x4f83('0x15'),_0x4e1f9d,_0x4f83('0x35'),_0x330595);for(const _0x4c28ea of[_0x4f83('0x6'),_0x4f83('0x22')])_0x20b8a7[_0x4f83('0x14')]['registerCustomCallback'](_0x4f83('0x15'),_0x4c28ea,'accept',_0x330595);_0x20b8a7[_0x4f83('0x14')][_0x4f83('0x1')](_0x4f83('0x15'),_0x4f83('0x36'),_0x4f83('0x35'),_0x411a44=>{_0xb93eeb[_0x4f83('0x39')][_0x4f83('0x42')](_0x247cbf=>{const _0x26e683=Array[_0x4f83('0x31')](_0x2161e6[_0x4f83('0x1a')]())['map'](_0x242314=>_0x226068[_0x4f83('0x25')](_0x242314));_0x247cbf['setSelection'](_0x411a44),_0xb93eeb[_0x4f83('0x1f')][_0x4f83('0x27')](_0x4f83('0x36'))[_0x4f83('0x3d')](),_0xb93eeb[_0x4f83('0x2c')](_0x4f83('0x36'),{'forceDefaultExecution':!0x0});const _0x371f16=_0x26e683[_0x4f83('0x23')](_0xac4c6e=>'$graveyard'!=_0xac4c6e[_0x4f83('0x11')]['rootName']);_0x371f16[_0x4f83('0x1b')]>0x0&&_0x247cbf[_0x4f83('0x37')](_0x371f16);for(const _0x44cf71 of _0x26e683)_0x44cf71[_0x4f83('0xc')]();});});for(const _0x37df52 of[_0x4f83('0x26'),_0x4f83('0x41'),_0x4f83('0x1d'),_0x4f83('0x34')]){const _0x52c4fa=_0xb93eeb['commands']['get'](_0x37df52);_0x52c4fa['on'](_0x4f83('0x0'),(_0x588c67,_0x43d677,_0x592950)=>{if(_0x592950){const _0x34dd70=_0xb93eeb['model']['document'][_0x4f83('0x16')][_0x4f83('0x49')]()['getAncestors']()[_0x4f83('0xa')](_0x29be94=>_0x29be94['is'](_0x4f83('0x40'),'tableCell'));this['_areMergableCells'](_0x52c4fa[_0x4f83('0x2a')],_0x34dd70)||(_0x588c67[_0x4f83('0x29')]=!0x1,_0x588c67[_0x4f83('0x3b')]());}},{'priority':_0x4f83('0x3')});}}[_0x4f83('0x2e')](){const _0x49ffbb=this[_0x4f83('0x2b')][_0x4f83('0x1f')][_0x4f83('0x27')](_0x4f83('0x36')),_0x1a0b09=this[_0x4f83('0x2b')]['plugins']['get'](_0x4f83('0xd'));if(!_0x49ffbb['isEnabled'])return!0x1;const _0x20d262=_0x1a0b09['getSelectionAffectedTableCells'](this['editor'][_0x4f83('0x39')][_0x4f83('0x28')][_0x4f83('0x16')]);for(const _0x37bfde of _0x20d262)for(const _0x18b99e of _0x20d262)if(_0x37bfde!=_0x18b99e&&!this[_0x4f83('0x30')](_0x37bfde,_0x18b99e))return!0x1;return!0x0;}['_areMergableCells'](_0x4c2192,_0x36db21){const _0x5c5baf=this[_0x4f83('0x2b')][_0x4f83('0xe')][_0x4f83('0x27')](_0x4f83('0x47')),_0x30c8db=this['editor'][_0x4f83('0x39')][_0x4f83('0x2d')](_0x4c2192),_0x2c9a43=this[_0x4f83('0x2b')][_0x4f83('0x39')][_0x4f83('0x2d')](_0x36db21),_0x476ff6=new Set(),_0x428bcd=new Set();for(const _0xcd7cda of _0x5c5baf['getSuggestions']())if(('insertion'==_0xcd7cda[_0x4f83('0x3e')]||_0x4f83('0x13')==_0xcd7cda[_0x4f83('0x3e')]||'mergeTableCells'==_0xcd7cda[_0x4f83('0x21')])&&_0xcd7cda[_0x4f83('0x46')])for(const _0x549c03 of _0xcd7cda[_0x4f83('0x1a')]())_0x549c03[_0x4f83('0x3a')](_0x30c8db,!0x0)&&_0x476ff6['add'](_0xcd7cda[_0x4f83('0x3e')]+':'+_0xcd7cda[_0x4f83('0x7')]['id']),_0x549c03[_0x4f83('0x3a')](_0x2c9a43,!0x0)&&_0x428bcd[_0x4f83('0x3c')](_0xcd7cda['type']+':'+_0xcd7cda[_0x4f83('0x7')]['id']);if(_0x476ff6[_0x4f83('0xf')]!=_0x428bcd[_0x4f83('0xf')])return!0x1;for(const _0x39eec4 of _0x476ff6)if(!_0x428bcd[_0x4f83('0x32')](_0x39eec4))return!0x1;return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c5e=['insertTableOfContents','editor','plugins','enableCommand','get','afterInit','registerElementLabel','TrackChangesEditing','tableOfContents','commands','ELEMENT_TABLE_OF_CONTENTS'];(function(_0x3c15ba,_0x3c5e12){const _0x216e05=function(_0x1111b2){while(--_0x1111b2){_0x3c15ba['push'](_0x3c15ba['shift']());}};_0x216e05(++_0x3c5e12);}(_0x3c5e,0x160));const _0x216e=function(_0x3c15ba,_0x3c5e12){_0x3c15ba=_0x3c15ba-0x0;let _0x216e05=_0x3c5e[_0x3c15ba];return _0x216e05;};import{Plugin as _0x430423}from'ckeditor5/src/core';import{getTranslation as _0x33f567}from'../utils/common-translations';export default class bt extends _0x430423{[_0x216e('0x5')](){const _0x185255=this[_0x216e('0x1')];if(!_0x185255[_0x216e('0x9')][_0x216e('0x4')](_0x216e('0x0')))return;_0x185255[_0x216e('0x2')][_0x216e('0x4')](_0x216e('0x7'))[_0x216e('0x3')](_0x216e('0x0'));const _0x387806=_0x185255[_0x216e('0x2')][_0x216e('0x4')](_0x216e('0x7')),_0x5a3f7a=_0x185255['locale'];_0x387806['_descriptionFactory'][_0x216e('0x6')](_0x216e('0x8'),_0x3a5a9a=>_0x33f567(_0x5a3f7a,_0x216e('0xa'),_0x3a5a9a));}}
23
+ const _0x3556=['get','plugins','_descriptionFactory','tableOfContents','TrackChangesEditing','insertTableOfContents','commands','registerElementLabel','afterInit','editor','ELEMENT_TABLE_OF_CONTENTS','locale'];(function(_0x5dc299,_0x35565e){const _0x18910a=function(_0x3edf3f){while(--_0x3edf3f){_0x5dc299['push'](_0x5dc299['shift']());}};_0x18910a(++_0x35565e);}(_0x3556,0x1ee));const _0x1891=function(_0x5dc299,_0x35565e){_0x5dc299=_0x5dc299-0x0;let _0x18910a=_0x3556[_0x5dc299];return _0x18910a;};import{Plugin as _0x4ad9df}from'ckeditor5/src/core';import{getTranslation as _0x2e69a9}from'../utils/common-translations';export default class bt extends _0x4ad9df{[_0x1891('0x6')](){const _0x5bb78f=this[_0x1891('0x7')];if(!_0x5bb78f[_0x1891('0x4')][_0x1891('0xa')](_0x1891('0x3')))return;_0x5bb78f[_0x1891('0xb')][_0x1891('0xa')]('TrackChangesEditing')['enableCommand'](_0x1891('0x3'));const _0x31223b=_0x5bb78f[_0x1891('0xb')]['get'](_0x1891('0x2')),_0x31e587=_0x5bb78f[_0x1891('0x9')];_0x31223b[_0x1891('0x0')][_0x1891('0x5')](_0x1891('0x1'),_0x48b206=>_0x2e69a9(_0x31e587,_0x1891('0x8'),_0x48b206));}}
@@ -13,7 +13,7 @@ export default class TrackChangesTableProperties extends Plugin {
13
13
  /**
14
14
  * @inheritDoc
15
15
  */
16
- static get pluginName(): 'TrackChangesTableProperties';
16
+ static get pluginName(): "TrackChangesTableProperties";
17
17
  /**
18
18
  * @inheritDoc
19
19
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b50=['tableCellBorderColor','tableProperties','getFirstPosition','nodeAfter','registerCustomCallback','format','pluginName','getAttribute','getSuggestionCallback','accept','getSuggestions','enableCommand','tableCellPadding','_descriptionFactory','handleDiscardAction','discard','tableBorderStyle','model','editor','has','setAttribute','handleSuggestionDescription','_handlePropertyChange','tableCellVerticalAlignment','tableCellBorderWidth','tableCellProperties','TablePropertiesEditing','tableCellWidth','tableWidth','join','get','commandParams','enqueueChange','markBlockFormat','afterInit','table','_suggestionFactory','tableCellBackgroundColor','getSelectionAffectedTableCells','selection','_getSuggestion','findAncestor','change','document','formatBlock','data','locale','tableAlignment','TableCellPropertiesEditing','TableUtils','tableHeight','plugins','tableCellHeight','subType','registerDescriptionCallback','TrackChangesEditing','tableCellHorizontalAlignment','getContainedElement','TrackChangesTableProperties','tableCellBorderStyle'];(function(_0x1ec958,_0x5b50da){const _0x224dd4=function(_0x49043d){while(--_0x49043d){_0x1ec958['push'](_0x1ec958['shift']());}};_0x224dd4(++_0x5b50da);}(_0x5b50,0xe5));const _0x224d=function(_0x1ec958,_0x5b50da){_0x1ec958=_0x1ec958-0x0;let _0x224dd4=_0x5b50[_0x1ec958];return _0x224dd4;};import{Plugin as _0x3c1538}from'ckeditor5/src/core';import{getTranslation as _0xef00e0}from'../utils/common-translations';export default class Ct extends _0x3c1538{constructor(_0x221c81){super(_0x221c81),this[_0x224d('0xc')]=['tableBorderColor',_0x224d('0x1b'),'tableBorderWidth',_0x224d('0x3a'),_0x224d('0x27'),_0x224d('0x1'),'tableBackgroundColor'],this[_0x224d('0x24')]=[_0x224d('0xb'),_0x224d('0xa'),_0x224d('0x23'),_0x224d('0x17'),_0x224d('0x26'),_0x224d('0x3'),_0x224d('0x30'),_0x224d('0x7'),_0x224d('0x22')];}static get[_0x224d('0x11')](){return _0x224d('0x9');}[_0x224d('0x2d')](){const _0x226e0a=this['editor']['plugins'][_0x224d('0x29')](_0x224d('0x6'));if(this[_0x224d('0x1d')][_0x224d('0x2')][_0x224d('0x1e')](_0x224d('0x25'))){for(const _0x42dd72 of this['tableProperties'])_0x226e0a[_0x224d('0x16')](_0x42dd72,(_0x4d9e5a,_0x3c3677)=>{const _0x2b10b8=this[_0x224d('0x1d')]['model'][_0x224d('0x36')]['selection'][_0x224d('0xd')]()[_0x224d('0x34')](_0x224d('0x2e'));this[_0x224d('0x21')](_0x42dd72,[_0x2b10b8],this['tableProperties'],'tableProperties',_0x4d9e5a,_0x3c3677);});_0x226e0a['_suggestionFactory'][_0x224d('0xf')]('formatBlock',_0x224d('0xc'),_0x224d('0x14'),_0x226e0a[_0x224d('0x2f')][_0x224d('0x13')](_0x224d('0x37'),null,'discard')),_0x226e0a['_suggestionFactory'][_0x224d('0xf')]('formatBlock',_0x224d('0xc'),_0x224d('0x1a'),(_0x257774,_0x2e1e6c)=>this[_0x224d('0x19')](this['tableProperties'],_0x257774,_0x2e1e6c)),_0x226e0a['_suggestionFactory']['registerCustomCallback'](_0x224d('0x37'),_0x224d('0xc'),_0x224d('0x28'),()=>!0x1);}if(this[_0x224d('0x1d')]['plugins'][_0x224d('0x1e')](_0x224d('0x3b'))){for(const _0x532aca of this['tableCellProperties'])_0x226e0a[_0x224d('0x16')](_0x532aca,(_0x18eb27,_0x2bee80)=>{const _0x5edf3c=this[_0x224d('0x1d')][_0x224d('0x2')][_0x224d('0x29')](_0x224d('0x0'))[_0x224d('0x31')](this[_0x224d('0x1d')]['model']['document'][_0x224d('0x32')]);this[_0x224d('0x21')](_0x532aca,_0x5edf3c,this[_0x224d('0x24')],_0x224d('0x24'),_0x18eb27,_0x2bee80);});_0x226e0a[_0x224d('0x2f')]['registerCustomCallback'](_0x224d('0x37'),'tableCellProperties','accept',_0x226e0a[_0x224d('0x2f')]['getSuggestionCallback']('formatBlock',null,'discard')),_0x226e0a[_0x224d('0x2f')]['registerCustomCallback'](_0x224d('0x37'),_0x224d('0x24'),'discard',(_0x576214,_0xf41dc5)=>this[_0x224d('0x19')](this[_0x224d('0x24')],_0x576214,_0xf41dc5)),_0x226e0a[_0x224d('0x2f')][_0x224d('0xf')]('formatBlock',_0x224d('0x24'),_0x224d('0x28'),()=>!0x1);}_0x226e0a[_0x224d('0x18')][_0x224d('0x5')](_0x4ddad3=>this[_0x224d('0x20')](_0x4ddad3));}[_0x224d('0x21')](_0x4e3585,_0x3af591,_0xbd735,_0xa46704,_0x3daa79,_0x43bc87){const _0x3e16de=this['editor'][_0x224d('0x2')][_0x224d('0x29')](_0x224d('0x6'));this['editor'][_0x224d('0x1c')][_0x224d('0x2b')](_0x43bc87['batch'],()=>{for(const _0x48df6d of _0x3af591){if(this[_0x224d('0x33')](_0x48df6d,_0xa46704))_0x3daa79(_0x43bc87);else{const _0x3f8a14={};for(const _0x261d03 of _0xbd735){const _0x2e1613=_0x48df6d[_0x224d('0x12')](_0x261d03);void 0x0!==_0x2e1613&&(_0x3f8a14[_0x261d03]=_0x2e1613);}_0x3daa79(_0x43bc87),_0x3e16de[_0x224d('0x2c')](_0x48df6d,{'commandParams':[_0x3f8a14]},[],_0xa46704);}}});}[_0x224d('0x19')](_0x38e41d,_0x5db7a3,_0x3dcaf5){const _0x326f68=_0x5db7a3[0x0]['start'][_0x224d('0xe')],_0x43f376=_0x3dcaf5[_0x224d('0x2a')][0x0];this[_0x224d('0x1d')][_0x224d('0x1c')][_0x224d('0x35')](_0x4efadd=>{for(const _0x17f0a8 of _0x38e41d)void 0x0!==_0x43f376[_0x17f0a8]?_0x4efadd[_0x224d('0x1f')](_0x17f0a8,_0x43f376[_0x17f0a8],_0x326f68):_0x4efadd['removeAttribute'](_0x17f0a8,_0x326f68);});}[_0x224d('0x20')](_0x2bbfa8){if(_0x2bbfa8[_0x224d('0x38')])switch(_0x2bbfa8[_0x224d('0x4')]){case _0x224d('0xc'):return{'type':_0x224d('0x10'),'content':_0xef00e0(this[_0x224d('0x1d')][_0x224d('0x39')],'*Format:*\x20change\x20table\x20properties')};case _0x224d('0x24'):return{'type':'format','content':_0xef00e0(this[_0x224d('0x1d')][_0x224d('0x39')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x224d('0x33')](_0x2853bf,_0x41f7d7){const _0x3ff64f=this[_0x224d('0x1d')][_0x224d('0x2')][_0x224d('0x29')]('TrackChangesEditing');for(const _0x309ac4 of _0x3ff64f[_0x224d('0x15')]({'skipNotAttached':!0x0})){const _0xcab5ac=_0x309ac4[_0x224d('0x8')]();if(_0x309ac4[_0x224d('0x4')]===_0x41f7d7&&_0xcab5ac===_0x2853bf)return _0x309ac4;}return null;}}
23
+ const _0x1e9e=['setAttribute','locale','join','tableCellProperties','tableCellWidth','get','format','tableAlignment','tableBorderColor','tableWidth','commandParams','getSuggestionCallback','TrackChangesEditing','getSelectionAffectedTableCells','selection','change','discard','tableCellHorizontalAlignment','tableCellBackgroundColor','accept','pluginName','TableCellPropertiesEditing','getContainedElement','tableCellHeight','*Format:*\x20change\x20table\x20properties','registerCustomCallback','afterInit','enableCommand','*Format:*\x20change\x20table\x20cell\x20properties','editor','nodeAfter','tableCellVerticalAlignment','_descriptionFactory','subType','plugins','has','tableBorderWidth','model','_handlePropertyChange','data','TrackChangesTableProperties','findAncestor','tableHeight','batch','table','_suggestionFactory','start','formatBlock','removeAttribute','enqueueChange','tableProperties','document','getSuggestions','handleSuggestionDescription','handleDiscardAction','TablePropertiesEditing','getAttribute','markBlockFormat'];(function(_0x5622ab,_0x1e9e95){const _0x1b2d5f=function(_0x4817c3){while(--_0x4817c3){_0x5622ab['push'](_0x5622ab['shift']());}};_0x1b2d5f(++_0x1e9e95);}(_0x1e9e,0x1ce));const _0x1b2d=function(_0x5622ab,_0x1e9e95){_0x5622ab=_0x5622ab-0x0;let _0x1b2d5f=_0x1e9e[_0x5622ab];return _0x1b2d5f;};import{Plugin as _0x3edc0e}from'ckeditor5/src/core';import{getTranslation as _0x3dea07}from'../utils/common-translations';export default class Ct extends _0x3edc0e{constructor(_0x22c1bf){super(_0x22c1bf),this['tableProperties']=[_0x1b2d('0xa'),'tableBorderStyle',_0x1b2d('0x26'),_0x1b2d('0x9'),_0x1b2d('0xb'),_0x1b2d('0x2c'),'tableBackgroundColor'],this[_0x1b2d('0x5')]=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding',_0x1b2d('0x6'),_0x1b2d('0x19'),_0x1b2d('0x14'),_0x1b2d('0x13'),_0x1b2d('0x21')];}static get[_0x1b2d('0x16')](){return _0x1b2d('0x2a');}[_0x1b2d('0x1c')](){const _0x1f02ad=this[_0x1b2d('0x1f')][_0x1b2d('0x24')][_0x1b2d('0x7')]('TrackChangesEditing');if(this[_0x1b2d('0x1f')][_0x1b2d('0x24')][_0x1b2d('0x25')](_0x1b2d('0x39'))){for(const _0x328ab3 of this[_0x1b2d('0x34')])_0x1f02ad[_0x1b2d('0x1d')](_0x328ab3,(_0x39bdf5,_0x1d9dde)=>{const _0x5e2efe=this['editor'][_0x1b2d('0x27')][_0x1b2d('0x35')][_0x1b2d('0x10')]['getFirstPosition']()[_0x1b2d('0x2b')](_0x1b2d('0x2e'));this[_0x1b2d('0x28')](_0x328ab3,[_0x5e2efe],this[_0x1b2d('0x34')],_0x1b2d('0x34'),_0x39bdf5,_0x1d9dde);});_0x1f02ad[_0x1b2d('0x2f')][_0x1b2d('0x1b')](_0x1b2d('0x31'),'tableProperties',_0x1b2d('0x15'),_0x1f02ad[_0x1b2d('0x2f')][_0x1b2d('0xd')]('formatBlock',null,_0x1b2d('0x12'))),_0x1f02ad[_0x1b2d('0x2f')]['registerCustomCallback'](_0x1b2d('0x31'),_0x1b2d('0x34'),'discard',(_0x440e84,_0x2c8a3c)=>this[_0x1b2d('0x38')](this[_0x1b2d('0x34')],_0x440e84,_0x2c8a3c)),_0x1f02ad[_0x1b2d('0x2f')][_0x1b2d('0x1b')](_0x1b2d('0x31'),_0x1b2d('0x34'),_0x1b2d('0x4'),()=>!0x1);}if(this[_0x1b2d('0x1f')]['plugins'][_0x1b2d('0x25')](_0x1b2d('0x17'))){for(const _0x3211a5 of this['tableCellProperties'])_0x1f02ad[_0x1b2d('0x1d')](_0x3211a5,(_0x486c87,_0x465622)=>{const _0x49d294=this[_0x1b2d('0x1f')][_0x1b2d('0x24')]['get']('TableUtils')[_0x1b2d('0xf')](this['editor'][_0x1b2d('0x27')][_0x1b2d('0x35')][_0x1b2d('0x10')]);this['_handlePropertyChange'](_0x3211a5,_0x49d294,this[_0x1b2d('0x5')],_0x1b2d('0x5'),_0x486c87,_0x465622);});_0x1f02ad['_suggestionFactory'][_0x1b2d('0x1b')]('formatBlock','tableCellProperties',_0x1b2d('0x15'),_0x1f02ad[_0x1b2d('0x2f')][_0x1b2d('0xd')](_0x1b2d('0x31'),null,'discard')),_0x1f02ad[_0x1b2d('0x2f')][_0x1b2d('0x1b')](_0x1b2d('0x31'),'tableCellProperties','discard',(_0x2956c5,_0x76063c)=>this[_0x1b2d('0x38')](this['tableCellProperties'],_0x2956c5,_0x76063c)),_0x1f02ad['_suggestionFactory']['registerCustomCallback'](_0x1b2d('0x31'),_0x1b2d('0x5'),'join',()=>!0x1);}_0x1f02ad[_0x1b2d('0x22')]['registerDescriptionCallback'](_0x2d1370=>this[_0x1b2d('0x37')](_0x2d1370));}[_0x1b2d('0x28')](_0x70668a,_0xaadf39,_0x3ee8e0,_0xcb4d1e,_0xd6ae12,_0x316917){const _0xc53f94=this[_0x1b2d('0x1f')][_0x1b2d('0x24')]['get']('TrackChangesEditing');this[_0x1b2d('0x1f')][_0x1b2d('0x27')][_0x1b2d('0x33')](_0x316917[_0x1b2d('0x2d')],()=>{for(const _0x458079 of _0xaadf39){if(this['_getSuggestion'](_0x458079,_0xcb4d1e))_0xd6ae12(_0x316917);else{const _0x3d2acd={};for(const _0x1a4551 of _0x3ee8e0){const _0x51b1aa=_0x458079[_0x1b2d('0x0')](_0x1a4551);void 0x0!==_0x51b1aa&&(_0x3d2acd[_0x1a4551]=_0x51b1aa);}_0xd6ae12(_0x316917),_0xc53f94[_0x1b2d('0x1')](_0x458079,{'commandParams':[_0x3d2acd]},[],_0xcb4d1e);}}});}[_0x1b2d('0x38')](_0x392776,_0x1f7767,_0x360383){const _0x24412c=_0x1f7767[0x0][_0x1b2d('0x30')][_0x1b2d('0x20')],_0x5cb252=_0x360383[_0x1b2d('0xc')][0x0];this[_0x1b2d('0x1f')]['model'][_0x1b2d('0x11')](_0xb971ab=>{for(const _0x390dd0 of _0x392776)void 0x0!==_0x5cb252[_0x390dd0]?_0xb971ab[_0x1b2d('0x2')](_0x390dd0,_0x5cb252[_0x390dd0],_0x24412c):_0xb971ab[_0x1b2d('0x32')](_0x390dd0,_0x24412c);});}[_0x1b2d('0x37')](_0x2bdc8d){if(_0x2bdc8d[_0x1b2d('0x29')])switch(_0x2bdc8d['subType']){case _0x1b2d('0x34'):return{'type':'format','content':_0x3dea07(this[_0x1b2d('0x1f')][_0x1b2d('0x3')],_0x1b2d('0x1a'))};case'tableCellProperties':return{'type':_0x1b2d('0x8'),'content':_0x3dea07(this['editor'][_0x1b2d('0x3')],_0x1b2d('0x1e'))};}}['_getSuggestion'](_0x153f32,_0x46f0bd){const _0xf606b6=this[_0x1b2d('0x1f')][_0x1b2d('0x24')]['get'](_0x1b2d('0xe'));for(const _0x5f4e63 of _0xf606b6[_0x1b2d('0x36')]({'skipNotAttached':!0x0})){const _0x52f10f=_0x5f4e63[_0x1b2d('0x18')]();if(_0x5f4e63[_0x1b2d('0x23')]===_0x46f0bd&&_0x52f10f===_0x153f32)return _0x5f4e63;}return null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3050=['insertTemplate','has','plugins','editor','TrackChangesEditing','get','afterInit','Template'];(function(_0x28f0ca,_0x3050fd){const _0x2ed2c0=function(_0x590e2f){while(--_0x590e2f){_0x28f0ca['push'](_0x28f0ca['shift']());}};_0x2ed2c0(++_0x3050fd);}(_0x3050,0x110));const _0x2ed2=function(_0x28f0ca,_0x3050fd){_0x28f0ca=_0x28f0ca-0x0;let _0x2ed2c0=_0x3050[_0x28f0ca];return _0x2ed2c0;};import{Plugin as _0x1e147f}from'ckeditor5/src/core';export default class yt extends _0x1e147f{[_0x2ed2('0x6')](){const _0xed1712=this[_0x2ed2('0x3')];_0xed1712[_0x2ed2('0x2')][_0x2ed2('0x1')](_0x2ed2('0x7'))&&_0xed1712[_0x2ed2('0x2')][_0x2ed2('0x5')](_0x2ed2('0x4'))['enableCommand'](_0x2ed2('0x0'));}}
23
+ const _0x41fa=['TrackChangesEditing','get','has','afterInit','plugins','insertTemplate','enableCommand','Template'];(function(_0x36170e,_0x41fa0a){const _0x288e44=function(_0x9810e8){while(--_0x9810e8){_0x36170e['push'](_0x36170e['shift']());}};_0x288e44(++_0x41fa0a);}(_0x41fa,0x147));const _0x288e=function(_0x36170e,_0x41fa0a){_0x36170e=_0x36170e-0x0;let _0x288e44=_0x41fa[_0x36170e];return _0x288e44;};import{Plugin as _0x4f9c48}from'ckeditor5/src/core';export default class yt extends _0x4f9c48{[_0x288e('0x4')](){const _0x340d44=this['editor'];_0x340d44[_0x288e('0x5')][_0x288e('0x3')](_0x288e('0x0'))&&_0x340d44[_0x288e('0x5')][_0x288e('0x2')](_0x288e('0x1'))[_0x288e('0x7')](_0x288e('0x6'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29bf=['newRange','editor','start','get','suggestion','ELEMENT_TITLE','locale','getChangedMarkers','title-content','TrackChangesEditing','from','isTouching','schema','getNearestSelectionRange','differ','model','updateMarker','isCollapsed','removeMarker','registerElementLabel','registerPostFixer','_descriptionFactory','nodeBefore','end','has','element','_splitMarkerName','document','forward','plugins','isEqual','afterInit','createRange'];(function(_0x48ebf2,_0x29bf00){const _0x2be7c2=function(_0x2fc086){while(--_0x2fc086){_0x48ebf2['push'](_0x48ebf2['shift']());}};_0x2be7c2(++_0x29bf00);}(_0x29bf,0x196));const _0x2be7=function(_0x48ebf2,_0x29bf00){_0x48ebf2=_0x48ebf2-0x0;let _0x2be7c2=_0x29bf[_0x48ebf2];return _0x2be7c2;};import{Plugin as _0x18ab24}from'ckeditor5/src/core';import{getTranslation as _0xa92b74}from'../utils/common-translations';export default class St extends _0x18ab24{[_0x2be7('0x15')](){const _0x324698=this[_0x2be7('0x18')];if(!_0x324698[_0x2be7('0x13')][_0x2be7('0xe')]('Title'))return;const _0x2c54cb=_0x324698['plugins'][_0x2be7('0x1a')](_0x2be7('0x20'));_0x2c54cb[_0x2be7('0xb')][_0x2be7('0x9')](_0x2be7('0x1f'),()=>_0xa92b74(_0x324698[_0x2be7('0x1d')],_0x2be7('0x1c'))),_0x324698[_0x2be7('0x5')][_0x2be7('0x11')][_0x2be7('0xa')](_0x3f125b=>{let _0x44487e=!0x1;const _0x6cc0ab=Array[_0x2be7('0x0')](_0x324698['model']['document'][_0x2be7('0x4')][_0x2be7('0x1e')]());for(const {name:_0x28a2c6,data:_0x54d0d8}of _0x6cc0ab){const {group:_0x2b4e91}=_0x2c54cb[_0x2be7('0x10')](_0x28a2c6);if(_0x2be7('0x1b')!==_0x2b4e91||!_0x54d0d8['newRange'])continue;const _0x413345=_0x54d0d8[_0x2be7('0x17')],_0x4ee495=_0x413345[_0x2be7('0xd')][_0x2be7('0xc')];if(!_0x4ee495||!_0x4ee495['is'](_0x2be7('0xf'),_0x2be7('0x1f')))continue;if(!_0x413345[_0x2be7('0x19')][_0x2be7('0x1')](_0x413345[_0x2be7('0xd')]))continue;const _0xfaedc5=_0x324698[_0x2be7('0x5')][_0x2be7('0x2')][_0x2be7('0x3')](_0x413345[_0x2be7('0xd')],_0x2be7('0x12'));if(_0xfaedc5&&_0xfaedc5[_0x2be7('0x7')]){const _0x202a25=_0x3f125b[_0x2be7('0x16')](_0x413345[_0x2be7('0x19')],_0xfaedc5[_0x2be7('0x19')]);_0x202a25[_0x2be7('0x14')](_0x413345)||(_0x3f125b[_0x2be7('0x6')](_0x28a2c6,{'range':_0x202a25}),_0x44487e=!0x0);}_0x44487e||(_0x3f125b[_0x2be7('0x8')](_0x28a2c6),_0x44487e=!0x0);}return _0x44487e;});}}
23
+ const _0x580c=['has','getChangedMarkers','_descriptionFactory','updateMarker','afterInit','registerPostFixer','schema','newRange','forward','isTouching','end','start','isEqual','nodeBefore','plugins','createRange','editor','element','isCollapsed','TrackChangesEditing','title-content','removeMarker','from','ELEMENT_TITLE','model','document','Title','differ','locale'];(function(_0x1db1df,_0x580cc0){const _0x543122=function(_0x1b4538){while(--_0x1b4538){_0x1db1df['push'](_0x1db1df['shift']());}};_0x543122(++_0x580cc0);}(_0x580c,0xe0));const _0x5431=function(_0x1db1df,_0x580cc0){_0x1db1df=_0x1db1df-0x0;let _0x543122=_0x580c[_0x1db1df];return _0x543122;};import{Plugin as _0x2a9867}from'ckeditor5/src/core';import{getTranslation as _0x4baa11}from'../utils/common-translations';export default class St extends _0x2a9867{[_0x5431('0xc')](){const _0x37834e=this[_0x5431('0x18')];if(!_0x37834e['plugins'][_0x5431('0x8')](_0x5431('0x5')))return;const _0x13aaff=_0x37834e[_0x5431('0x16')]['get'](_0x5431('0x1b'));_0x13aaff[_0x5431('0xa')]['registerElementLabel'](_0x5431('0x1c'),()=>_0x4baa11(_0x37834e[_0x5431('0x7')],_0x5431('0x2'))),_0x37834e[_0x5431('0x3')][_0x5431('0x4')][_0x5431('0xd')](_0x195e01=>{let _0x3d21b9=!0x1;const _0x1faf92=Array[_0x5431('0x1')](_0x37834e[_0x5431('0x3')][_0x5431('0x4')][_0x5431('0x6')][_0x5431('0x9')]());for(const {name:_0x3ef3b0,data:_0x5a3450}of _0x1faf92){const {group:_0x435b8b}=_0x13aaff['_splitMarkerName'](_0x3ef3b0);if('suggestion'!==_0x435b8b||!_0x5a3450[_0x5431('0xf')])continue;const _0x260df6=_0x5a3450['newRange'],_0x217375=_0x260df6['end'][_0x5431('0x15')];if(!_0x217375||!_0x217375['is'](_0x5431('0x19'),_0x5431('0x1c')))continue;if(!_0x260df6[_0x5431('0x13')][_0x5431('0x11')](_0x260df6[_0x5431('0x12')]))continue;const _0xd29829=_0x37834e[_0x5431('0x3')][_0x5431('0xe')]['getNearestSelectionRange'](_0x260df6[_0x5431('0x12')],_0x5431('0x10'));if(_0xd29829&&_0xd29829[_0x5431('0x1a')]){const _0x59572f=_0x195e01[_0x5431('0x17')](_0x260df6[_0x5431('0x13')],_0xd29829['start']);_0x59572f[_0x5431('0x14')](_0x260df6)||(_0x195e01[_0x5431('0xb')](_0x3ef3b0,{'range':_0x59572f}),_0x3d21b9=!0x0);}_0x3d21b9||(_0x195e01[_0x5431('0x0')](_0x3ef3b0),_0x3d21b9=!0x0);}return _0x3d21b9;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x583a=['TrackChangesEditing','redo','get','enableCommand','afterInit','undo','plugins'];(function(_0x4574aa,_0x583a3b){const _0x2057d7=function(_0x2ecd75){while(--_0x2ecd75){_0x4574aa['push'](_0x4574aa['shift']());}};_0x2057d7(++_0x583a3b);}(_0x583a,0x188));const _0x2057=function(_0x4574aa,_0x583a3b){_0x4574aa=_0x4574aa-0x0;let _0x2057d7=_0x583a[_0x4574aa];return _0x2057d7;};import{Plugin as _0x117d46}from'ckeditor5/src/core';export default class It extends _0x117d46{[_0x2057('0x4')](){const _0x266d97=this['editor'],_0x503208=_0x266d97['plugins'][_0x2057('0x2')](_0x2057('0x0'));_0x266d97[_0x2057('0x6')]['has']('UndoEditing')&&(_0x503208[_0x2057('0x3')](_0x2057('0x5')),_0x503208[_0x2057('0x3')](_0x2057('0x1')));}}
23
+ const _0xf074=['undo','has','UndoEditing','TrackChangesEditing','afterInit','enableCommand','plugins','get'];(function(_0x556632,_0xf0742f){const _0x2c0cbd=function(_0x450c3f){while(--_0x450c3f){_0x556632['push'](_0x556632['shift']());}};_0x2c0cbd(++_0xf0742f);}(_0xf074,0x1cb));const _0x2c0c=function(_0x556632,_0xf0742f){_0x556632=_0x556632-0x0;let _0x2c0cbd=_0xf074[_0x556632];return _0x2c0cbd;};import{Plugin as _0x566bd1}from'ckeditor5/src/core';export default class It extends _0x566bd1{[_0x2c0c('0x1')](){const _0x2fc636=this['editor'],_0x34f877=_0x2fc636['plugins'][_0x2c0c('0x4')](_0x2c0c('0x0'));_0x2fc636[_0x2c0c('0x3')][_0x2c0c('0x6')](_0x2c0c('0x7'))&&(_0x34f877[_0x2c0c('0x2')](_0x2c0c('0x5')),_0x34f877[_0x2c0c('0x2')]('redo'));}}