@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231004.0 → 0.0.0-nightly-20231006.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.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x563b=['tablePasteCell','start','unwrap','table','nodeAfter','tableCellHorizontalAlignment','findAncestor','showSuggestionHighlights','suggestionUnloaded','isEqual','attributes','dataDowncast','TableUtils','entries','getColumns','rowInsertionIndexes','_suggestionFactory','getSuggestionCallback','register','ck-suggestion-marker-insertion','tableCell','author','endRow','registerCustomCallback','tableCellPadding','cells','locale','previous','position','markerToHighlight','fromEntries','hasSuggestion','last','getRange','fill','element','requires','view','getChanges','name','tableCellSuggestion','accept','move','tablePasteChainId','endColumn','markerAttributes','tableCellBorderColor','forceDefaultExecution','some','oldRange','document','getChangedMarkers','push','editing','change','elementToElement','low','getSuggestions','createRangeIn','setAttribute','redo','previousSibling','getRanges','_getCoordsForCells','getContainedElement','getItems','nextSibling','getAllAdjacentSuggestions','TrackChangesEditing','containsRange','subType','insertion','removeMarkers','startsWith','map','tableCellBackgroundColor','conversion','isInContent','deletion','rootName','commands','set','markerName','suggestion','insertContent','suggestion:formatBlock:tablePasteCell','insertColumns','formatBlock','_isForcedDefaultExecutionBlock','newRange','createRange','has','clipboardOutput','add','stop','first','batch','get','columnInsertionRanges','createPositionBefore','plugins','trackChanges','differ','ck-suggestion-marker--active','suggestionLoaded','getShiftedBy','deletionRanges','tablePaste','registerDescriptionCallback','getTableIfOnlyTableInContent','createTableWalker','getChildren','documentSelection','_splitMarkerName','value','columnInsertionIndexes','_replaceTableSlotCell','TableClipboard','columns','every','ck-suggestion-marker','getMarkers','keys','insert','editor','rows','updateMarker','filter','selection','discard','setAttributes','return','reduce','markMultiRangeInsertion','suggestion-td','createElement','registerPostFixer','rowInsertionRanges','from','find','remove','getColumnIndexes','getAttributes','type','column','high','join','getRows','createRangeOn','for','isEmpty','Users','_descriptionFactory','getSelectionAffectedTableCells','tablePasteColumn','_tablePostFixingSubtypes','model','listenTo','markMultiRangeDeletion','*Replace\x20table\x20cells*','end','paragraph','getChild','markers','insertRows','tableCellBorderWidth','activeMarkers','includes','options','length','next','tableCellVerticalAlignment'];(function(_0xd782c8,_0x563b43){const _0x58f1be=function(_0x41f76b){while(--_0x41f76b){_0xd782c8['push'](_0xd782c8['shift']());}};_0x58f1be(++_0x563b43);}(_0x563b,0x9c));const _0x58f1=function(_0xd782c8,_0x563b43){_0xd782c8=_0xd782c8-0x0;let _0x58f1be=_0x563b[_0xd782c8];return _0x58f1be;};import{getTranslation as _0x7a919e}from'../utils/common-translations';import{Plugin as _0x31b16b}from'ckeditor5/src/core';import{uid as _0x28570d,priorities as _0x1db3a1}from'ckeditor5/src/utils';import _0xb5a7dd from'./table';const le=[_0x58f1('0x9'),_0x58f1('0x3e'),'tableCellBorderStyle',_0x58f1('0x15'),_0x58f1('0xf'),_0x58f1('0x5b'),_0x58f1('0x28')],ae=Object['fromEntries'](le[_0x58f1('0x5a')](_0x2a199a=>[_0x2a199a,null]));export default class wt extends _0x31b16b{static get[_0x58f1('0x34')](){return[_0xb5a7dd];}['afterInit'](){const _0x228a66=this[_0x58f1('0x8c')];if(!_0x228a66['plugins']['has'](_0x58f1('0x85')))return;const _0x650062=_0x228a66['plugins'][_0x58f1('0x71')](_0x58f1('0x54')),_0x348665=_0x228a66[_0x58f1('0x74')][_0x58f1('0x71')](_0x58f1('0x1c')),_0x2db19=_0x228a66['plugins'][_0x58f1('0x71')](_0xb5a7dd),_0x49c287=_0x228a66[_0x58f1('0x74')][_0x58f1('0x71')](_0x58f1('0x85'));_0x2db19[_0x58f1('0xab')][_0x58f1('0x44')]('tablePasteRow',_0x58f1('0xaa')),_0x228a66[_0x58f1('0x0')]['schema'][_0x58f1('0x22')](_0x58f1('0x38'),{'allowIn':'tableCell','allowContentOf':_0x58f1('0x24'),'isLimit':!0x0}),_0x228a66['conversion'][_0x58f1('0x47')]({'model':_0x58f1('0x38'),'view':_0x58f1('0x96')});let _0x2478ad=null;_0x228a66['model']['on'](_0x58f1('0x64'),(_0x419445,_0x5551b9)=>{const [_0x450db4,_0x2b6ca5]=_0x5551b9,_0x447c0e=_0x5551b9[_0x5551b9[_0x58f1('0xd')]-0x1];_0x447c0e&&_0x447c0e[_0x58f1('0x3f')]||_0x650062[_0x58f1('0x68')]||this[_0x58f1('0x8c')][_0x58f1('0x60')][_0x58f1('0x71')](_0x58f1('0x75'))[_0x58f1('0x82')]&&function(_0x3e8a5c,_0x1a28de,_0x597979,_0xef7b81,_0x33804b){if(_0x1a28de&&!_0x1a28de['is'](_0x58f1('0x80')))return!0x1;const _0x42733c=_0x33804b[_0x58f1('0x7d')](_0x3e8a5c,_0x597979);if(!_0x42733c||!fe(_0x42733c,void 0x0,_0xef7b81))return!0x1;const _0x3ce0f7=_0xef7b81[_0x58f1('0xa9')](_0x597979[_0x58f1('0x42')][_0x58f1('0x90')]);if(!_0x3ce0f7[_0x58f1('0xd')])return!0x1;const _0x34c19e=_0x3ce0f7[0x0][_0x58f1('0x16')](_0x58f1('0x13')),_0x473cf5=_0xef7b81['getRowIndexes'](_0x3ce0f7),_0x2395a6=_0xef7b81[_0x58f1('0x9d')](_0x3ce0f7),_0x2b27be={'startRow':_0x473cf5[_0x58f1('0x6f')],'endRow':_0x473cf5[_0x58f1('0x30')],'startColumn':_0x2395a6['first'],'endColumn':_0x2395a6[_0x58f1('0x30')]};return 0x1==_0x3ce0f7['length']&&(_0x2b27be[_0x58f1('0x26')]+=_0xef7b81[_0x58f1('0xa3')](_0x42733c)-0x1,_0x2b27be[_0x58f1('0x3c')]+=_0xef7b81[_0x58f1('0x1e')](_0x42733c)-0x1),fe(_0x34c19e,_0x2b27be,_0xef7b81);}(_0x450db4,_0x2b6ca5,_0x228a66[_0x58f1('0x0')],_0x348665,_0x49c287)&&(_0x419445[_0x58f1('0x6e')](),_0x2478ad={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x228a66[_0x58f1('0x0')][_0x58f1('0x46')](()=>{_0x228a66[_0x58f1('0x0')][_0x58f1('0x64')](_0x5551b9[0x0],_0x5551b9[0x1],_0x5551b9[0x2],{'forceDefaultExecution':!0x0});const _0xb8cbe8=_0x28570d(),{rowInsertionRanges:_0x330b93,columnInsertionRanges:_0x505dad,insertionRanges:_0xf5e747,deletionRanges:_0x2e5fd6,cells:_0x55a53b}=_0x2478ad;_0x330b93[_0x58f1('0xd')]&&_0x650062[_0x58f1('0x95')](_0x330b93,'tablePasteRow',{'tablePasteChainId':_0xb8cbe8}),_0x505dad[_0x58f1('0xd')]&&_0x650062[_0x58f1('0x95')](_0x505dad,_0x58f1('0xaa'),{'tablePasteChainId':_0xb8cbe8}),_0xf5e747['length']&&_0x650062[_0x58f1('0x95')](_0xf5e747,_0x58f1('0x7b'),{'tablePasteChainId':_0xb8cbe8,'skipNestingCheck':!0x0}),_0x2e5fd6[_0x58f1('0xd')]&&_0x650062[_0x58f1('0x2')](_0x2e5fd6,_0x58f1('0x7b'),{'tablePasteChainId':_0xb8cbe8,'skipNestingCheck':!0x0});const _0x381533=_0x650062['markMultiRangeBlockFormat'](_0x55a53b[_0x58f1('0x5a')](({element:_0x3fb0b2})=>_0x3fb0b2),{'formatGroupId':_0x28570d()},[],'tablePasteCell',{'tablePasteChainId':_0xb8cbe8});if(_0x381533){const _0x4ccd17=_0x381533[_0x58f1('0x89')](),_0x42208a=[];for(const {element:_0x294a58,attributes:_0x4609a2}of _0x55a53b){if(!_0x4609a2)continue;const _0x27ec6a=_0x228a66[_0x58f1('0x0')][_0x58f1('0xa4')](_0x294a58),_0x253b22=_0x4ccd17[_0x58f1('0x9b')](_0x377075=>_0x377075[_0x58f1('0x31')]()[_0x58f1('0x19')](_0x27ec6a));_0x253b22&&_0x42208a[_0x58f1('0x44')]([_0x253b22[_0x58f1('0x37')],_0x4609a2]);}_0x42208a['length']&&_0x381533[_0x58f1('0x4b')](_0x58f1('0x3d'),Object[_0x58f1('0x2e')](_0x42208a));}_0x2478ad=null;}));},{'priority':_0x1db3a1[_0x58f1('0xa1')]+0xa}),_0x228a66['plugins']['get'](_0x58f1('0x85'))['on'](_0x58f1('0x84'),(_0x55754c,_0x5c3089)=>{const [_0x1b883f,_0x296396,,_0x2016d5]=_0x5c3089;if(!_0x2478ad)return;_0x55754c[_0x58f1('0x6e')]();const _0x1d7b64=_0x1b883f['cell'],_0x552623=_0x296396,_0x4e0cb2=ce(_0x1d7b64),_0xb1740=ce(_0x552623);_0x55754c[_0x58f1('0x93')]=_0x1d7b64;let _0x4e86cb=null,_0x596011=null;if(_0xb1740||_0x4e0cb2){if(_0x4e0cb2&&!_0xb1740){_0x2016d5[_0x58f1('0x9c')](_0x1d7b64['getChild'](0x0));for(const _0x4e73b of Array[_0x58f1('0x9a')](_0x552623[_0x58f1('0x7f')]()))_0x2016d5[_0x58f1('0x8b')](_0x4e73b,_0x1d7b64,_0x58f1('0x4'));const _0x144ea3=_0x2478ad[_0x58f1('0x1f')][_0x58f1('0xb')](_0x1b883f['row']),_0x4cf29d=_0x2478ad['columnInsertionIndexes'][_0x58f1('0xb')](_0x1b883f[_0x58f1('0xa0')]);_0x144ea3||_0x4cf29d||(_0x4e86cb=_0x2016d5[_0x58f1('0x4a')](_0x1d7b64));}else _0xb1740&&!_0x4e0cb2&&(_0x596011=_0x2016d5[_0x58f1('0x4a')](_0x1d7b64));}else{const _0x232046=_0x2016d5[_0x58f1('0x97')](_0x58f1('0x38')),_0x1acfc8=_0x2016d5[_0x58f1('0x97')]('tableCellSuggestion');_0x2016d5['wrap'](_0x2016d5[_0x58f1('0x4a')](_0x1d7b64),_0x1acfc8),_0x2016d5['insert'](_0x232046,_0x1d7b64,0x0);for(const _0x1de2b6 of Array['from'](_0x552623[_0x58f1('0x7f')]()))_0x2016d5[_0x58f1('0x8b')](_0x1de2b6,_0x232046,_0x58f1('0x4'));_0x4e86cb=_0x2016d5[_0x58f1('0xa4')](_0x232046),_0x596011=_0x2016d5['createRangeOn'](_0x1acfc8);}const _0x291ad0=Array['from'](_0x552623[_0x58f1('0x9e')]())[_0x58f1('0x8f')](([_0x42ae01])=>le[_0x58f1('0xb')](_0x42ae01));_0x2478ad[_0x58f1('0x29')][_0x58f1('0x44')]({'element':_0x1d7b64,'attributes':_0x291ad0['length']?Object[_0x58f1('0x2e')](_0x291ad0):null}),_0x4e86cb&&_0x2478ad['insertionRanges'][_0x58f1('0x44')](_0x4e86cb),_0x596011&&_0x2478ad[_0x58f1('0x7a')]['push'](_0x596011);},{'priority':'high'}),_0x348665['on'](_0x58f1('0x66'),(_0xec58cf,_0x3d97c1)=>{const [_0x2a6259,_0x2f82aa={}]=_0x3d97c1;if(!_0x2478ad)return;const _0x342420=_0x2f82aa['at']||0x0,_0x4599f5=_0x2f82aa[_0x58f1('0x86')]||0x1;_0x2478ad[_0x58f1('0x83')]=new Array(_0x4599f5)[_0x58f1('0x32')](_0x342420)[_0x58f1('0x5a')]((_0xa199b0,_0x401016)=>_0xa199b0+_0x401016);for(const {cell:_0x54b805}of _0x348665[_0x58f1('0x7e')](_0x2a6259,{'startColumn':_0x342420,'endColumn':_0x342420+_0x4599f5-0x1}))_0x2478ad[_0x58f1('0x72')][_0x58f1('0x44')](_0x228a66[_0x58f1('0x0')]['createRangeOn'](_0x54b805));},{'priority':_0x58f1('0x48')}),_0x348665['on'](_0x58f1('0x8'),(_0x5663b4,_0xeaed2b)=>{const [_0x96ba05,_0x8492d={}]=_0xeaed2b;if(!_0x2478ad)return;const _0x152693=_0x8492d['at']||0x0,_0x2af731=_0x8492d[_0x58f1('0x8d')]||0x1;_0x2478ad[_0x58f1('0x1f')]=new Array(_0x2af731)[_0x58f1('0x32')](_0x152693)[_0x58f1('0x5a')]((_0x4e03e5,_0x2dcb77)=>_0x4e03e5+_0x2dcb77);for(const {cell:_0x1ee629}of _0x348665[_0x58f1('0x7e')](_0x96ba05,{'startRow':_0x152693,'endRow':_0x152693+_0x2af731-0x1}))_0x2478ad[_0x58f1('0x99')][_0x58f1('0x44')](_0x228a66['model']['createRangeOn'](_0x1ee629));},{'priority':'low'}),_0x650062[_0x58f1('0xa8')][_0x58f1('0x7c')](_0x3219f4=>{if(_0x3219f4[_0x58f1('0x56')]&&_0x3219f4[_0x58f1('0x56')][_0x58f1('0x59')]('tablePaste'))return _0x3219f4[_0x58f1('0x2b')]?{}:{'type':_0x58f1('0x57'),'content':_0x7a919e(_0x228a66[_0x58f1('0x2a')],_0x58f1('0x3'))};});const _0x452c03=()=>!0x1;for(const _0x53fbbd of[_0x58f1('0x7b'),_0x58f1('0xaa'),'tablePasteRow',_0x58f1('0x10')])_0x650062[_0x58f1('0x20')]['registerCustomCallback'](_0x58f1('0x57'),_0x53fbbd,_0x58f1('0xa2'),_0x452c03),_0x650062[_0x58f1('0x20')][_0x58f1('0x27')](_0x58f1('0x5e'),_0x53fbbd,_0x58f1('0xa2'),_0x452c03),_0x650062[_0x58f1('0x20')]['registerCustomCallback'](_0x58f1('0x67'),_0x53fbbd,_0x58f1('0xa2'),_0x452c03);_0x650062[_0x58f1('0x20')][_0x58f1('0x27')]('formatBlock',_0x58f1('0x10'),'discard',_0x452c03),_0x650062[_0x58f1('0x20')][_0x58f1('0x27')]('formatBlock',_0x58f1('0x10'),_0x58f1('0x39'),(_0x33d51d,_0xb795f0,_0x464983)=>{const _0x5de911=_0x33d51d['map'](_0xde033b=>_0xde033b[_0x58f1('0x50')]())[_0x58f1('0x8f')](_0x5c4dbc=>_0x5c4dbc),_0x4160fb=new Map(_0x5de911[_0x58f1('0x5a')](_0x3b575b=>[_0x3b575b,null]));if(_0x2478ad)for(const {element:_0xabe282,attributes:_0x10f1b2}of _0x2478ad[_0x58f1('0x29')])_0x10f1b2&&_0x4160fb[_0x58f1('0x61')](_0xabe282,_0x10f1b2);else{if(_0x464983&&_0x464983[_0x58f1('0x3d')])for(const [_0x460b80,_0x89a693]of Object[_0x58f1('0x1d')](_0x464983[_0x58f1('0x3d')])){const _0x4a3144=_0x228a66[_0x58f1('0x0')][_0x58f1('0x7')]['get'](_0x460b80),_0x299107=_0x4a3144?_0x4a3144['getRange']()[_0x58f1('0x50')]():null;_0x299107&&_0x4160fb[_0x58f1('0x61')](_0x299107,_0x89a693);}}_0x228a66[_0x58f1('0x0')][_0x58f1('0x46')](_0x27a2fe=>{for(const [_0x6abd9d,_0x127913]of _0x4160fb)_0x27a2fe[_0x58f1('0x92')]({...ae,..._0x127913},_0x6abd9d);});});const _0x1d9573=(_0x49f93f,_0x5e50bc)=>{_0x650062[_0x58f1('0x20')][_0x58f1('0x27')](_0x49f93f,_0x58f1('0x7b'),_0x5e50bc,(_0xec9cce,_0x4e0481,_0x33ebca)=>{_0x228a66[_0x58f1('0x0')][_0x58f1('0x46')](_0x377210=>{const _0x1f09fa=[];for(const _0x2fd66a of _0xec9cce){const _0x249a58=_0x2fd66a[_0x58f1('0x11')][_0x58f1('0x14')];_0x249a58['is']('element',_0x58f1('0x38'))&&_0x1f09fa['push'](_0x249a58);}_0x650062[_0x58f1('0x20')][_0x58f1('0x21')](_0x49f93f,null,_0x5e50bc)(_0xec9cce,_0x4e0481,_0x33ebca);for(const _0x172521 of _0x1f09fa)'$graveyard'!=_0x172521['root'][_0x58f1('0x5f')]&&_0x377210[_0x58f1('0x12')](_0x172521);});});};_0x1d9573('insertion',_0x58f1('0x39')),_0x1d9573('insertion',_0x58f1('0x91')),_0x1d9573(_0x58f1('0x5e'),_0x58f1('0x39')),_0x1d9573(_0x58f1('0x5e'),_0x58f1('0x91')),_0x650062['_suggestionFactory'][_0x58f1('0x27')](_0x58f1('0x57'),'tablePasteRow',_0x58f1('0x91'),_0x12a2e7=>{const _0x5089ec=_0x12a2e7['map'](_0x52c80b=>_0x52c80b['getContainedElement']()),_0x57fd08=_0x5089ec[0x0][_0x58f1('0x16')]('table'),{minRow:_0x1cc9e9,maxRow:_0xb53d75}=_0x2db19[_0x58f1('0x4f')](_0x5089ec);_0x348665['removeRows'](_0x57fd08,{'at':_0x1cc9e9,'rows':_0xb53d75-_0x1cc9e9+0x1});}),_0x650062[_0x58f1('0x20')][_0x58f1('0x27')](_0x58f1('0x57'),_0x58f1('0xaa'),_0x58f1('0x91'),_0x1c2baf=>{const _0x487ca0=_0x1c2baf['map'](_0x59d2af=>_0x59d2af['getContainedElement']()),_0x5e4750=_0x487ca0[0x0][_0x58f1('0x16')](_0x58f1('0x13')),{minColumn:_0x4ab242,maxColumn:_0x43ff13}=_0x2db19['_getCoordsForCells'](_0x487ca0);_0x348665['removeColumns'](_0x5e4750,{'at':_0x4ab242,'columns':_0x43ff13-_0x4ab242+0x1});});const _0x126b1a=(_0x17dd7f,_0x1edd86)=>{if(!_0x1edd86[_0x58f1('0x56')]||!_0x1edd86[_0x58f1('0x56')][_0x58f1('0x59')](_0x58f1('0x7b')))return;const _0x32cb6a=_0x1edd86['attributes']['tablePasteChainId'],_0xbd89ac=_0x650062['getSuggestions']()[_0x58f1('0x8f')](_0x4976b4=>_0x4976b4[_0x58f1('0x5d')]&&_0x4976b4[_0x58f1('0x1a')]&&_0x4976b4[_0x58f1('0x1a')][_0x58f1('0x3b')]==_0x32cb6a);_0xbd89ac['length']&&_0x1edd86['getAllAdjacentSuggestions']()[_0x58f1('0xd')]!=_0xbd89ac[_0x58f1('0xd')]&&_0xbd89ac[_0x58f1('0x94')]((_0x5c09cd,_0x523863)=>(_0x5c09cd[_0x58f1('0xe')]=_0x523863,_0x523863[_0x58f1('0x2b')]=_0x5c09cd,_0x523863));};function _0x546b47(_0x70ba51,_0x343e70=!0x0){const {id:_0x34d706}=_0x650062[_0x58f1('0x81')](_0x70ba51[_0x58f1('0x62')]),_0xcdd596=[_0x58f1('0x88'),_0x58f1('0x23')],_0x4e883e=_0x650062[_0x58f1('0xa')][_0x58f1('0xb')](_0x70ba51[_0x58f1('0x62')]);return _0x4e883e&&_0xcdd596['push'](_0x58f1('0x77')),{'classes':_0xcdd596,'attributes':{'data-suggestion':_0x34d706},'priority':_0x4e883e&&_0x343e70?0xbc2:0xbb8};}_0x650062['on'](_0x58f1('0x78'),_0x126b1a,{'priority':_0x58f1('0xa1')}),_0x650062['on'](_0x58f1('0x18'),_0x126b1a,{'priority':'high'}),_0x228a66[_0x58f1('0x0')][_0x58f1('0x42')][_0x58f1('0x98')](()=>{let _0x26e87f=!0x1;const _0x196bc9=Array[_0x58f1('0x9a')](_0x228a66[_0x58f1('0x0')][_0x58f1('0x42')][_0x58f1('0x76')][_0x58f1('0x43')]());for(const {name:_0x56d9a0,data:_0x1585cb}of _0x196bc9){const {group:_0xdc1878,type:_0x3d3c68,id:_0x127a3a}=_0x650062[_0x58f1('0x81')](_0x56d9a0);if(_0x58f1('0x63')!=_0xdc1878||'deletion'!=_0x3d3c68||_0x1585cb[_0x58f1('0x41')])continue;if(!_0x650062[_0x58f1('0x2f')](_0x127a3a))continue;const _0x49f949=_0x650062['getSuggestion'](_0x127a3a)[_0x58f1('0x4e')](),_0x2fc79d=_0x228a66['plugins']['get']('Users')['me'];for(const _0xc5553e of _0x650062[_0x58f1('0x49')]()){if(!_0xc5553e['isInContent']||_0xc5553e[_0x58f1('0x25')]!=_0x2fc79d)continue;if(_0x58f1('0x67')!=_0xc5553e['type']||'tablePasteCell'!=_0xc5553e[_0x58f1('0x56')])continue;if(_0xc5553e['getRanges']()[_0x58f1('0x87')](_0xbc2299=>_0x49f949[_0x58f1('0x40')](_0x105496=>_0x105496[_0x58f1('0x55')](_0xbc2299,!0x0))))for(const _0x396c70 of _0xc5553e[_0x58f1('0x53')]())_0x396c70[_0x58f1('0x5d')]&&(_0x396c70[_0x58f1('0x91')](),_0x26e87f=!0x0);}}return _0x26e87f;}),_0x228a66[_0x58f1('0x0')][_0x58f1('0x42')][_0x58f1('0x98')](_0x14a0b9=>{const _0x29e7c6=_0x228a66[_0x58f1('0x60')][_0x58f1('0x71')](_0x58f1('0x4c'));if(!_0x29e7c6||!_0x29e7c6['_createdBatches']['has'](_0x14a0b9[_0x58f1('0x70')]))return!0x1;let _0x1c388f=!0x1;const _0x336234=_0x228a66[_0x58f1('0x74')][_0x58f1('0x71')](_0x58f1('0xa7'))['me'],_0x957fed=_0x228a66['model'][_0x58f1('0x42')][_0x58f1('0x76')][_0x58f1('0x36')](),_0x295d8f=Array[_0x58f1('0x9a')](_0x228a66[_0x58f1('0x0')][_0x58f1('0x42')][_0x58f1('0x76')]['getChangedMarkers']())[_0x58f1('0x8f')](({name:_0x3e5f34,data:_0x2bacba})=>{const {group:_0x52f1e1,subType:_0x528116,authorId:_0x26d05a}=_0x650062[_0x58f1('0x81')](_0x3e5f34);return _0x58f1('0x63')==_0x52f1e1&&'tablePaste'==_0x528116&&_0x26d05a==_0x336234['id']&&!_0x2bacba[_0x58f1('0x41')];});for(const _0x1eb770 of _0x957fed){if('insert'!=_0x1eb770[_0x58f1('0x9f')]||_0x58f1('0x38')!=_0x1eb770[_0x58f1('0x37')]||0x1!=_0x1eb770[_0x58f1('0xd')])continue;const _0x504a0d=_0x14a0b9[_0x58f1('0x6a')](_0x1eb770[_0x58f1('0x2c')],_0x1eb770[_0x58f1('0x2c')][_0x58f1('0x79')](0x1));if(!_0x295d8f['find'](({data:_0x4614b5})=>_0x4614b5[_0x58f1('0x69')][_0x58f1('0x19')](_0x504a0d)))for(const {name:_0x34281e,data:_0x5f313f}of _0x295d8f)if(_0x504a0d[_0x58f1('0x55')](_0x5f313f['newRange'])){_0x14a0b9[_0x58f1('0x8e')](_0x34281e,{'range':_0x504a0d}),_0x1c388f=!0x0;break;}}return _0x1c388f;}),_0x228a66[_0x58f1('0x0')][_0x58f1('0x42')]['registerPostFixer'](_0x581c96=>{let _0x1f0716=!0x1;const _0x7eb710=_0x228a66[_0x58f1('0x74')][_0x58f1('0x71')](_0x58f1('0xa7'))['me'],_0x55e8e1=_0x650062[_0x58f1('0x49')]()[_0x58f1('0x8f')](_0x316f87=>_0x316f87[_0x58f1('0x5d')]&&_0x316f87[_0x58f1('0x25')]==_0x7eb710),_0x5a72d2=new Set(),_0x5e10c8=new Set();for(const _0x5e69c3 of _0x55e8e1)if(_0x58f1('0x7b')==_0x5e69c3['subType'])for(const _0x57542d of _0x5e69c3[_0x58f1('0x89')]()){const _0x2aebfa=_0x57542d['getRange']()[_0x58f1('0x50')]();if(_0x2aebfa){if(_0x2aebfa['is'](_0x58f1('0x33'),'tableCellSuggestion')&&ce(_0x2aebfa)){_0x5e69c3['removeMarker'](_0x57542d[_0x58f1('0x37')]),_0x5a72d2[_0x58f1('0x6d')](_0x2aebfa),_0x1f0716=!0x0;const _0x4be3c7=_0x2aebfa[_0x58f1('0x52')],_0x15b20b=_0x2aebfa[_0x58f1('0x4d')],_0x5c333a=_0x4be3c7&&_0x4be3c7['is'](_0x58f1('0x33'),_0x58f1('0x38')),_0x3d20ac=_0x15b20b&&_0x15b20b['is'](_0x58f1('0x33'),_0x58f1('0x38'));_0x5c333a&&!_0x5a72d2['has'](_0x4be3c7)&&_0x5e10c8[_0x58f1('0x6d')](_0x4be3c7),_0x3d20ac&&!_0x5a72d2[_0x58f1('0x6b')](_0x15b20b)&&_0x5e10c8[_0x58f1('0x6d')](_0x15b20b);}else _0x2aebfa['is']('element',_0x58f1('0x5'))&&_0x2aebfa['isEmpty']&&(_0x5e69c3['removeMarker'](_0x57542d[_0x58f1('0x37')]),_0x1f0716=!0x0);}}else{if('tablePasteCell'==_0x5e69c3['subType']){if(!_0x5e69c3['attributes']||!_0x5e69c3[_0x58f1('0x1a')][_0x58f1('0x3b')])continue;const _0x372ab1=_0x5e69c3[_0x58f1('0x1a')]['markerAttributes'];if(_0x372ab1&&Object[_0x58f1('0x8a')](_0x372ab1)['length'])continue;const _0x3ccbfe=_0x5e69c3[_0x58f1('0x1a')][_0x58f1('0x3b')];let _0x5148eb=!0x0,_0x3f0ad3=!0x0;for(const _0x10c254 of _0x55e8e1)if(_0x10c254['subType']&&_0x10c254[_0x58f1('0x56')][_0x58f1('0x59')](_0x58f1('0x7b'))){if(!_0x10c254['attributes'][_0x58f1('0x3b')]){_0x3f0ad3=!0x1;break;}if(_0x10c254['id']!=_0x5e69c3['id']&&_0x10c254[_0x58f1('0x1a')][_0x58f1('0x3b')]==_0x3ccbfe){_0x5148eb=!0x1;break;}}_0x3f0ad3&&_0x5148eb&&(_0x5e69c3[_0x58f1('0x58')](),_0x1f0716=!0x0);}}for(const _0x1866f4 of _0x5a72d2)_0x581c96[_0x58f1('0x9c')](_0x1866f4);for(const _0x21da33 of _0x5e10c8)_0x581c96[_0x58f1('0x12')](_0x21da33);return _0x1f0716;}),_0x228a66['conversion'][_0x58f1('0xa5')]('editingDowncast')[_0x58f1('0x2d')]({'model':_0x58f1('0x65'),'view':(_0x473f40,_0x2b4ad4)=>_0x546b47(_0x473f40),'converterPriority':_0x58f1('0xa1')}),_0x228a66[_0x58f1('0x5c')][_0x58f1('0xa5')](_0x58f1('0x1b'))[_0x58f1('0x2d')]({'model':_0x58f1('0x65'),'view':(_0x5b6f38,_0x15d97a)=>_0x15d97a[_0x58f1('0xc')][_0x58f1('0x17')]?_0x546b47(_0x5b6f38,!0x1):null,'converterPriority':_0x58f1('0xa1')});const _0x20d6d6=_0x228a66[_0x58f1('0x45')][_0x58f1('0x35')];this[_0x58f1('0x1')](_0x20d6d6[_0x58f1('0x42')],_0x58f1('0x6c'),(_0x59ba30,_0x44ab7c)=>{const _0x20aeb9=[];for(const _0x435e8f of _0x20d6d6['createRangeIn'](_0x44ab7c['content'])[_0x58f1('0x51')]())_0x435e8f['is'](_0x58f1('0x33'),_0x58f1('0x96'))&&_0x20aeb9[_0x58f1('0x44')](_0x435e8f);_0x20d6d6[_0x58f1('0x46')](_0x28fa91=>{for(const _0x3c64c4 of _0x20aeb9)_0x28fa91[_0x58f1('0x3a')](_0x28fa91[_0x58f1('0x4a')](_0x3c64c4),_0x28fa91[_0x58f1('0x73')](_0x3c64c4)),_0x28fa91[_0x58f1('0x9c')](_0x3c64c4);});});}}function ce(_0x34394e){if(_0x34394e[_0x58f1('0xa6')])return!0x0;const _0x27976e=_0x34394e[_0x58f1('0x6')](0x0);return _0x27976e['is'](_0x58f1('0x33'),_0x58f1('0x5'))&&_0x27976e[_0x58f1('0xa6')];}function fe(_0x49e90a,_0x4d6f28={},_0x2deaee){for(const {isAnchor:_0x5d2e04,cellHeight:_0x1ef6e3,cellWidth:_0x2d0a98}of _0x2deaee[_0x58f1('0x7e')](_0x49e90a,{'includeAllSlots':!0x0,..._0x4d6f28}))if(!_0x5d2e04||0x1!=_0x1ef6e3||0x1!=_0x2d0a98)return!0x1;return!0x0;}
|
|
23
|
+
const _0x50f2=['suggestion:formatBlock:tablePasteCell','getColumns','next','getRange','TrackChangesEditing','nodeAfter','elementToElement','markers','root','low','for','_tablePostFixingSubtypes','some','remove','commands','registerCustomCallback','editingDowncast','fromEntries','tableCell','end','columnInsertionIndexes','paragraph','row','formatBlock','hasSuggestion','insert','getMarkers','removeMarker','trackChanges','first','last','high','getAllAdjacentSuggestions','ck-suggestion-marker--active','suggestion-td','getRanges','table','move','suggestionLoaded','createRangeIn','insertion','every','createRangeOn','author','return','forceDefaultExecution','tableCellBorderWidth','filter','includes','TableClipboard','newRange','tableCellPadding','requires','removeColumns','containsRange','endRow','position','stop','getSuggestion','value','getColumnIndexes','entries','registerDescriptionCallback','TableUtils','plugins','createPositionBefore','setAttributes','subType','$graveyard','batch','getItems','getSelectionAffectedTableCells','_suggestionFactory','findAncestor','cell','endColumn','conversion','removeMarkers','unwrap','start','rowInsertionIndexes','suggestion','startsWith','has','createTableWalker','content','isInContent','tableCellSuggestion','nextSibling','tablePasteChainId','ck-suggestion-marker-insertion','editor','rowInsertionRanges','getRowIndexes','columnInsertionRanges','map','afterInit','tableCellHorizontalAlignment','from','Users','markerName','insertionRanges','previous','element','markerToHighlight','document','tablePasteRow','differ','getChanges','getAttributes','_createdBatches','oldRange','createElement','getSuggestionCallback','add','getTableIfOnlyTableInContent','dataDowncast','tablePaste','isEmpty','tablePasteColumn','accept','_getCoordsForCells','getChangedMarkers','attributes','markerAttributes','name','tablePasteCell','editing','previousSibling','getChild','view','schema','markMultiRangeBlockFormat','getContainedElement','get','redo','locale','model','_splitMarkerName','markMultiRangeInsertion','_descriptionFactory','getShiftedBy','change','cells','push','isEqual','createRange','registerPostFixer','reduce','join','getChildren','set','getSuggestions','markMultiRangeDeletion','rootName','discard','_isForcedDefaultExecutionBlock','columns','deletion','*Replace\x20table\x20cells*','length'];(function(_0x12a409,_0x50f21d){const _0x4d4b20=function(_0x17aee8){while(--_0x17aee8){_0x12a409['push'](_0x12a409['shift']());}};_0x4d4b20(++_0x50f21d);}(_0x50f2,0xb2));const _0x4d4b=function(_0x12a409,_0x50f21d){_0x12a409=_0x12a409-0x0;let _0x4d4b20=_0x50f2[_0x12a409];return _0x4d4b20;};import{getTranslation as _0x1f3d92}from'../utils/common-translations';import{Plugin as _0x4f383d}from'ckeditor5/src/core';import{uid as _0x15e703,priorities as _0x560dcc}from'ckeditor5/src/utils';import _0x32b6a5 from'./table';const le=[_0x4d4b('0x1d'),'tableCellBorderColor','tableCellBorderStyle',_0x4d4b('0x50'),'tableCellVerticalAlignment','tableCellBackgroundColor',_0x4d4b('0x22')],ae=Object[_0x4d4b('0x0')](le[_0x4d4b('0x4e')](_0x4942cf=>[_0x4942cf,null]));export default class wt extends _0x4f383d{static get[_0x4d4b('0x23')](){return[_0x32b6a5];}[_0x4d4b('0x4f')](){const _0x14ef92=this[_0x4d4b('0x4a')];if(!_0x14ef92[_0x4d4b('0x2f')]['has']('TableClipboard'))return;const _0x3c8d58=_0x14ef92['plugins'][_0x4d4b('0x75')](_0x4d4b('0x94')),_0x5c2a34=_0x14ef92['plugins'][_0x4d4b('0x75')](_0x4d4b('0x2e')),_0xb40148=_0x14ef92[_0x4d4b('0x2f')][_0x4d4b('0x75')](_0x32b6a5),_0x263c2e=_0x14ef92[_0x4d4b('0x2f')][_0x4d4b('0x75')](_0x4d4b('0x20'));_0xb40148[_0x4d4b('0x9b')][_0x4d4b('0x7f')](_0x4d4b('0x59'),_0x4d4b('0x66')),_0x14ef92[_0x4d4b('0x78')][_0x4d4b('0x72')]['register']('tableCellSuggestion',{'allowIn':_0x4d4b('0x1'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x14ef92['conversion'][_0x4d4b('0x96')]({'model':_0x4d4b('0x46'),'view':_0x4d4b('0x11')});let _0x467998=null;_0x14ef92[_0x4d4b('0x78')]['on']('insertContent',(_0x1e9cfc,_0x2f4f84)=>{const [_0x3ef761,_0x4d5f06]=_0x2f4f84,_0x4141df=_0x2f4f84[_0x2f4f84[_0x4d4b('0x8f')]-0x1];_0x4141df&&_0x4141df[_0x4d4b('0x1c')]||_0x3c8d58[_0x4d4b('0x8b')]||this['editor']['commands'][_0x4d4b('0x75')](_0x4d4b('0xb'))[_0x4d4b('0x2a')]&&function(_0x32bceb,_0x15dffe,_0x5b05c5,_0x44b73c,_0x5c41c1){if(_0x15dffe&&!_0x15dffe['is']('documentSelection'))return!0x1;const _0x36d5b2=_0x5c41c1[_0x4d4b('0x62')](_0x32bceb,_0x5b05c5);if(!_0x36d5b2||!fe(_0x36d5b2,void 0x0,_0x44b73c))return!0x1;const _0x13c821=_0x44b73c[_0x4d4b('0x36')](_0x5b05c5[_0x4d4b('0x58')]['selection']);if(!_0x13c821[_0x4d4b('0x8f')])return!0x1;const _0xc17da1=_0x13c821[0x0][_0x4d4b('0x38')](_0x4d4b('0x13')),_0x4b1472=_0x44b73c[_0x4d4b('0x4c')](_0x13c821),_0x3bf0b3=_0x44b73c[_0x4d4b('0x2b')](_0x13c821),_0x2eb74e={'startRow':_0x4b1472[_0x4d4b('0xc')],'endRow':_0x4b1472[_0x4d4b('0xd')],'startColumn':_0x3bf0b3['first'],'endColumn':_0x3bf0b3[_0x4d4b('0xd')]};return 0x1==_0x13c821[_0x4d4b('0x8f')]&&(_0x2eb74e[_0x4d4b('0x26')]+=_0x44b73c['getRows'](_0x36d5b2)-0x1,_0x2eb74e[_0x4d4b('0x3a')]+=_0x44b73c[_0x4d4b('0x91')](_0x36d5b2)-0x1),fe(_0xc17da1,_0x2eb74e,_0x44b73c);}(_0x3ef761,_0x4d5f06,_0x14ef92[_0x4d4b('0x78')],_0x5c2a34,_0x263c2e)&&(_0x1e9cfc[_0x4d4b('0x28')](),_0x467998={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x14ef92['model']['change'](()=>{_0x14ef92[_0x4d4b('0x78')]['insertContent'](_0x2f4f84[0x0],_0x2f4f84[0x1],_0x2f4f84[0x2],{'forceDefaultExecution':!0x0});const _0x2e0cb9=_0x15e703(),{rowInsertionRanges:_0x2244eb,columnInsertionRanges:_0x4e6e7e,insertionRanges:_0x4a186c,deletionRanges:_0x166888,cells:_0x100d49}=_0x467998;_0x2244eb[_0x4d4b('0x8f')]&&_0x3c8d58[_0x4d4b('0x7a')](_0x2244eb,_0x4d4b('0x59'),{'tablePasteChainId':_0x2e0cb9}),_0x4e6e7e[_0x4d4b('0x8f')]&&_0x3c8d58[_0x4d4b('0x7a')](_0x4e6e7e,'tablePasteColumn',{'tablePasteChainId':_0x2e0cb9}),_0x4a186c['length']&&_0x3c8d58['markMultiRangeInsertion'](_0x4a186c,_0x4d4b('0x64'),{'tablePasteChainId':_0x2e0cb9,'skipNestingCheck':!0x0}),_0x166888[_0x4d4b('0x8f')]&&_0x3c8d58[_0x4d4b('0x88')](_0x166888,_0x4d4b('0x64'),{'tablePasteChainId':_0x2e0cb9,'skipNestingCheck':!0x0});const _0xe472b1=_0x3c8d58[_0x4d4b('0x73')](_0x100d49[_0x4d4b('0x4e')](({element:_0x102d12})=>_0x102d12),{'formatGroupId':_0x15e703()},[],'tablePasteCell',{'tablePasteChainId':_0x2e0cb9});if(_0xe472b1){const _0x51f64b=_0xe472b1[_0x4d4b('0x9')](),_0xdf2dc3=[];for(const {element:_0x111edf,attributes:_0x170177}of _0x100d49){if(!_0x170177)continue;const _0x50eeff=_0x14ef92[_0x4d4b('0x78')][_0x4d4b('0x19')](_0x111edf),_0x380584=_0x51f64b['find'](_0x3c5a01=>_0x3c5a01[_0x4d4b('0x93')]()['isEqual'](_0x50eeff));_0x380584&&_0xdf2dc3[_0x4d4b('0x7f')]([_0x380584[_0x4d4b('0x6c')],_0x170177]);}_0xdf2dc3[_0x4d4b('0x8f')]&&_0xe472b1['setAttribute']('markerAttributes',Object[_0x4d4b('0x0')](_0xdf2dc3));}_0x467998=null;}));},{'priority':_0x560dcc['high']+0xa}),_0x14ef92[_0x4d4b('0x2f')]['get'](_0x4d4b('0x20'))['on']('_replaceTableSlotCell',(_0x191aec,_0x1bb550)=>{const [_0x349912,_0x2392cc,,_0x17fe64]=_0x1bb550;if(!_0x467998)return;_0x191aec[_0x4d4b('0x28')]();const _0x1272ff=_0x349912[_0x4d4b('0x39')],_0x1f40c6=_0x2392cc,_0x8813f=ce(_0x1272ff),_0x357c74=ce(_0x1f40c6);_0x191aec[_0x4d4b('0x1b')]=_0x1272ff;let _0x1b14b0=null,_0x38ed5d=null;if(_0x357c74||_0x8813f){if(_0x8813f&&!_0x357c74){_0x17fe64['remove'](_0x1272ff[_0x4d4b('0x70')](0x0));for(const _0x156b32 of Array['from'](_0x1f40c6[_0x4d4b('0x85')]()))_0x17fe64[_0x4d4b('0x8')](_0x156b32,_0x1272ff,_0x4d4b('0x2'));const _0x509b79=_0x467998[_0x4d4b('0x3f')][_0x4d4b('0x1f')](_0x349912[_0x4d4b('0x5')]),_0x42ab50=_0x467998[_0x4d4b('0x3')]['includes'](_0x349912['column']);_0x509b79||_0x42ab50||(_0x1b14b0=_0x17fe64[_0x4d4b('0x16')](_0x1272ff));}else _0x357c74&&!_0x8813f&&(_0x38ed5d=_0x17fe64[_0x4d4b('0x16')](_0x1272ff));}else{const _0x4a76d3=_0x17fe64[_0x4d4b('0x5f')]('tableCellSuggestion'),_0x5e7087=_0x17fe64[_0x4d4b('0x5f')]('tableCellSuggestion');_0x17fe64['wrap'](_0x17fe64[_0x4d4b('0x16')](_0x1272ff),_0x5e7087),_0x17fe64[_0x4d4b('0x8')](_0x4a76d3,_0x1272ff,0x0);for(const _0x5e43f5 of Array[_0x4d4b('0x51')](_0x1f40c6[_0x4d4b('0x85')]()))_0x17fe64[_0x4d4b('0x8')](_0x5e43f5,_0x4a76d3,_0x4d4b('0x2'));_0x1b14b0=_0x17fe64['createRangeOn'](_0x4a76d3),_0x38ed5d=_0x17fe64[_0x4d4b('0x19')](_0x5e7087);}const _0x417d07=Array[_0x4d4b('0x51')](_0x1f40c6[_0x4d4b('0x5c')]())[_0x4d4b('0x1e')](([_0x338d5c])=>le[_0x4d4b('0x1f')](_0x338d5c));_0x467998[_0x4d4b('0x7e')][_0x4d4b('0x7f')]({'element':_0x1272ff,'attributes':_0x417d07['length']?Object[_0x4d4b('0x0')](_0x417d07):null}),_0x1b14b0&&_0x467998[_0x4d4b('0x54')]['push'](_0x1b14b0),_0x38ed5d&&_0x467998['deletionRanges']['push'](_0x38ed5d);},{'priority':'high'}),_0x5c2a34['on']('insertColumns',(_0x5f039d,_0x3116bf)=>{const [_0x30e04c,_0x2aa378={}]=_0x3116bf;if(!_0x467998)return;const _0x27f7bb=_0x2aa378['at']||0x0,_0x1ba83e=_0x2aa378[_0x4d4b('0x8c')]||0x1;_0x467998[_0x4d4b('0x3')]=new Array(_0x1ba83e)['fill'](_0x27f7bb)[_0x4d4b('0x4e')]((_0x6d8114,_0x19bae3)=>_0x6d8114+_0x19bae3);for(const {cell:_0x5dbf3e}of _0x5c2a34['createTableWalker'](_0x30e04c,{'startColumn':_0x27f7bb,'endColumn':_0x27f7bb+_0x1ba83e-0x1}))_0x467998[_0x4d4b('0x4d')][_0x4d4b('0x7f')](_0x14ef92[_0x4d4b('0x78')][_0x4d4b('0x19')](_0x5dbf3e));},{'priority':'low'}),_0x5c2a34['on']('insertRows',(_0x507e2b,_0x339555)=>{const [_0x96e96f,_0x344d3c={}]=_0x339555;if(!_0x467998)return;const _0x52d8d1=_0x344d3c['at']||0x0,_0x701d7a=_0x344d3c['rows']||0x1;_0x467998[_0x4d4b('0x3f')]=new Array(_0x701d7a)['fill'](_0x52d8d1)[_0x4d4b('0x4e')]((_0xc81b43,_0x9ab4f2)=>_0xc81b43+_0x9ab4f2);for(const {cell:_0xcda9f0}of _0x5c2a34[_0x4d4b('0x43')](_0x96e96f,{'startRow':_0x52d8d1,'endRow':_0x52d8d1+_0x701d7a-0x1}))_0x467998[_0x4d4b('0x4b')][_0x4d4b('0x7f')](_0x14ef92[_0x4d4b('0x78')][_0x4d4b('0x19')](_0xcda9f0));},{'priority':_0x4d4b('0x99')}),_0x3c8d58[_0x4d4b('0x7b')][_0x4d4b('0x2d')](_0xf76f95=>{if(_0xf76f95[_0x4d4b('0x32')]&&_0xf76f95[_0x4d4b('0x32')]['startsWith'](_0x4d4b('0x64')))return _0xf76f95['previous']?{}:{'type':_0x4d4b('0x17'),'content':_0x1f3d92(_0x14ef92[_0x4d4b('0x77')],_0x4d4b('0x8e'))};});const _0x12b97a=()=>!0x1;for(const _0x9dc409 of[_0x4d4b('0x64'),_0x4d4b('0x66'),_0x4d4b('0x59'),'tablePasteCell'])_0x3c8d58['_suggestionFactory'][_0x4d4b('0x9f')]('insertion',_0x9dc409,'join',_0x12b97a),_0x3c8d58[_0x4d4b('0x37')]['registerCustomCallback'](_0x4d4b('0x8d'),_0x9dc409,'join',_0x12b97a),_0x3c8d58[_0x4d4b('0x37')][_0x4d4b('0x9f')]('formatBlock',_0x9dc409,_0x4d4b('0x84'),_0x12b97a);_0x3c8d58[_0x4d4b('0x37')][_0x4d4b('0x9f')](_0x4d4b('0x6'),_0x4d4b('0x6d'),_0x4d4b('0x8a'),_0x12b97a),_0x3c8d58['_suggestionFactory'][_0x4d4b('0x9f')]('formatBlock',_0x4d4b('0x6d'),_0x4d4b('0x67'),(_0x1ada86,_0xe4a20b,_0x45dcb4)=>{const _0x3b4e34=_0x1ada86[_0x4d4b('0x4e')](_0x210105=>_0x210105[_0x4d4b('0x74')]())[_0x4d4b('0x1e')](_0x4187c4=>_0x4187c4),_0x55dde7=new Map(_0x3b4e34[_0x4d4b('0x4e')](_0x28b78a=>[_0x28b78a,null]));if(_0x467998)for(const {element:_0xd66e2a,attributes:_0x49fba6}of _0x467998['cells'])_0x49fba6&&_0x55dde7[_0x4d4b('0x86')](_0xd66e2a,_0x49fba6);else{if(_0x45dcb4&&_0x45dcb4[_0x4d4b('0x6b')])for(const [_0x2cac6c,_0x4b7ff0]of Object[_0x4d4b('0x2c')](_0x45dcb4[_0x4d4b('0x6b')])){const _0x1c20e0=_0x14ef92[_0x4d4b('0x78')][_0x4d4b('0x97')][_0x4d4b('0x75')](_0x2cac6c),_0x4f8344=_0x1c20e0?_0x1c20e0['getRange']()[_0x4d4b('0x74')]():null;_0x4f8344&&_0x55dde7['set'](_0x4f8344,_0x4b7ff0);}}_0x14ef92['model'][_0x4d4b('0x7d')](_0x17bcc8=>{for(const [_0x3da8f2,_0x3979f2]of _0x55dde7)_0x17bcc8[_0x4d4b('0x31')]({...ae,..._0x3979f2},_0x3da8f2);});});const _0x2ec855=(_0x32bdfa,_0x145bf1)=>{_0x3c8d58[_0x4d4b('0x37')][_0x4d4b('0x9f')](_0x32bdfa,'tablePaste',_0x145bf1,(_0x258464,_0x256fb1,_0x24b0ac)=>{_0x14ef92[_0x4d4b('0x78')][_0x4d4b('0x7d')](_0x518686=>{const _0x5c33d0=[];for(const _0x3c77f3 of _0x258464){const _0x439dca=_0x3c77f3[_0x4d4b('0x3e')][_0x4d4b('0x95')];_0x439dca['is'](_0x4d4b('0x56'),'tableCellSuggestion')&&_0x5c33d0[_0x4d4b('0x7f')](_0x439dca);}_0x3c8d58[_0x4d4b('0x37')][_0x4d4b('0x60')](_0x32bdfa,null,_0x145bf1)(_0x258464,_0x256fb1,_0x24b0ac);for(const _0x319523 of _0x5c33d0)_0x4d4b('0x33')!=_0x319523[_0x4d4b('0x98')][_0x4d4b('0x89')]&&_0x518686[_0x4d4b('0x3d')](_0x319523);});});};_0x2ec855(_0x4d4b('0x17'),_0x4d4b('0x67')),_0x2ec855(_0x4d4b('0x17'),_0x4d4b('0x8a')),_0x2ec855('deletion',_0x4d4b('0x67')),_0x2ec855(_0x4d4b('0x8d'),'discard'),_0x3c8d58[_0x4d4b('0x37')][_0x4d4b('0x9f')]('insertion',_0x4d4b('0x59'),'discard',_0x2b360c=>{const _0x36b8f4=_0x2b360c['map'](_0x5aac70=>_0x5aac70[_0x4d4b('0x74')]()),_0x5b3d3d=_0x36b8f4[0x0]['findAncestor']('table'),{minRow:_0x2b8699,maxRow:_0xb9f7b}=_0xb40148[_0x4d4b('0x68')](_0x36b8f4);_0x5c2a34['removeRows'](_0x5b3d3d,{'at':_0x2b8699,'rows':_0xb9f7b-_0x2b8699+0x1});}),_0x3c8d58['_suggestionFactory'][_0x4d4b('0x9f')]('insertion','tablePasteColumn',_0x4d4b('0x8a'),_0x5add81=>{const _0x94e0cf=_0x5add81[_0x4d4b('0x4e')](_0x1c5d3e=>_0x1c5d3e[_0x4d4b('0x74')]()),_0x46af5d=_0x94e0cf[0x0][_0x4d4b('0x38')]('table'),{minColumn:_0x3e5875,maxColumn:_0x38e9d8}=_0xb40148[_0x4d4b('0x68')](_0x94e0cf);_0x5c2a34[_0x4d4b('0x24')](_0x46af5d,{'at':_0x3e5875,'columns':_0x38e9d8-_0x3e5875+0x1});});const _0x52e759=(_0x18aef4,_0xd86342)=>{if(!_0xd86342['subType']||!_0xd86342[_0x4d4b('0x32')][_0x4d4b('0x41')]('tablePaste'))return;const _0x1c8df0=_0xd86342[_0x4d4b('0x6a')][_0x4d4b('0x48')],_0x1ed26a=_0x3c8d58['getSuggestions']()[_0x4d4b('0x1e')](_0xa4d7ac=>_0xa4d7ac[_0x4d4b('0x45')]&&_0xa4d7ac[_0x4d4b('0x6a')]&&_0xa4d7ac[_0x4d4b('0x6a')][_0x4d4b('0x48')]==_0x1c8df0);_0x1ed26a[_0x4d4b('0x8f')]&&_0xd86342[_0x4d4b('0xf')]()[_0x4d4b('0x8f')]!=_0x1ed26a[_0x4d4b('0x8f')]&&_0x1ed26a[_0x4d4b('0x83')]((_0x11cbab,_0x5b8d2d)=>(_0x11cbab[_0x4d4b('0x92')]=_0x5b8d2d,_0x5b8d2d[_0x4d4b('0x55')]=_0x11cbab,_0x5b8d2d));};function _0x74c3e3(_0x2ff0a1,_0x308545=!0x0){const {id:_0x55f508}=_0x3c8d58[_0x4d4b('0x79')](_0x2ff0a1[_0x4d4b('0x53')]),_0x317844=['ck-suggestion-marker',_0x4d4b('0x49')],_0x30fe51=_0x3c8d58['activeMarkers'][_0x4d4b('0x1f')](_0x2ff0a1[_0x4d4b('0x53')]);return _0x30fe51&&_0x317844[_0x4d4b('0x7f')](_0x4d4b('0x10')),{'classes':_0x317844,'attributes':{'data-suggestion':_0x55f508},'priority':_0x30fe51&&_0x308545?0xbc2:0xbb8};}_0x3c8d58['on'](_0x4d4b('0x15'),_0x52e759,{'priority':_0x4d4b('0xe')}),_0x3c8d58['on']('suggestionUnloaded',_0x52e759,{'priority':'high'}),_0x14ef92[_0x4d4b('0x78')][_0x4d4b('0x58')][_0x4d4b('0x82')](()=>{let _0x544775=!0x1;const _0x36b874=Array[_0x4d4b('0x51')](_0x14ef92['model'][_0x4d4b('0x58')][_0x4d4b('0x5a')][_0x4d4b('0x69')]());for(const {name:_0x2ae297,data:_0x29015d}of _0x36b874){const {group:_0x329d49,type:_0x10a6b8,id:_0xeec0eb}=_0x3c8d58[_0x4d4b('0x79')](_0x2ae297);if(_0x4d4b('0x40')!=_0x329d49||_0x4d4b('0x8d')!=_0x10a6b8||_0x29015d[_0x4d4b('0x5e')])continue;if(!_0x3c8d58[_0x4d4b('0x7')](_0xeec0eb))continue;const _0x22ccda=_0x3c8d58[_0x4d4b('0x29')](_0xeec0eb)['getRanges'](),_0x35f8b4=_0x14ef92['plugins'][_0x4d4b('0x75')](_0x4d4b('0x52'))['me'];for(const _0x970520 of _0x3c8d58[_0x4d4b('0x87')]()){if(!_0x970520['isInContent']||_0x970520[_0x4d4b('0x1a')]!=_0x35f8b4)continue;if(_0x4d4b('0x6')!=_0x970520['type']||_0x4d4b('0x6d')!=_0x970520['subType'])continue;if(_0x970520[_0x4d4b('0x12')]()[_0x4d4b('0x18')](_0x409669=>_0x22ccda[_0x4d4b('0x9c')](_0x2c5976=>_0x2c5976[_0x4d4b('0x25')](_0x409669,!0x0))))for(const _0x178c4e of _0x970520[_0x4d4b('0xf')]())_0x178c4e[_0x4d4b('0x45')]&&(_0x178c4e[_0x4d4b('0x8a')](),_0x544775=!0x0);}}return _0x544775;}),_0x14ef92['model'][_0x4d4b('0x58')][_0x4d4b('0x82')](_0x3afd10=>{const _0x11c843=_0x14ef92[_0x4d4b('0x9e')][_0x4d4b('0x75')](_0x4d4b('0x76'));if(!_0x11c843||!_0x11c843[_0x4d4b('0x5d')][_0x4d4b('0x42')](_0x3afd10[_0x4d4b('0x34')]))return!0x1;let _0x2124b6=!0x1;const _0x43b8e0=_0x14ef92[_0x4d4b('0x2f')][_0x4d4b('0x75')](_0x4d4b('0x52'))['me'],_0xcae9a9=_0x14ef92[_0x4d4b('0x78')]['document'][_0x4d4b('0x5a')][_0x4d4b('0x5b')](),_0x141071=Array[_0x4d4b('0x51')](_0x14ef92['model'][_0x4d4b('0x58')]['differ'][_0x4d4b('0x69')]())[_0x4d4b('0x1e')](({name:_0x3c4d8f,data:_0x59a727})=>{const {group:_0x2aacba,subType:_0x5a0a5b,authorId:_0x927444}=_0x3c8d58['_splitMarkerName'](_0x3c4d8f);return _0x4d4b('0x40')==_0x2aacba&&'tablePaste'==_0x5a0a5b&&_0x927444==_0x43b8e0['id']&&!_0x59a727[_0x4d4b('0x5e')];});for(const _0x1f7ff5 of _0xcae9a9){if(_0x4d4b('0x8')!=_0x1f7ff5['type']||_0x4d4b('0x46')!=_0x1f7ff5[_0x4d4b('0x6c')]||0x1!=_0x1f7ff5[_0x4d4b('0x8f')])continue;const _0x4df3cf=_0x3afd10[_0x4d4b('0x81')](_0x1f7ff5['position'],_0x1f7ff5[_0x4d4b('0x27')][_0x4d4b('0x7c')](0x1));if(!_0x141071['find'](({data:_0x40a792})=>_0x40a792['newRange'][_0x4d4b('0x80')](_0x4df3cf)))for(const {name:_0x93b02b,data:_0x4b503d}of _0x141071)if(_0x4df3cf[_0x4d4b('0x25')](_0x4b503d[_0x4d4b('0x21')])){_0x3afd10['updateMarker'](_0x93b02b,{'range':_0x4df3cf}),_0x2124b6=!0x0;break;}}return _0x2124b6;}),_0x14ef92[_0x4d4b('0x78')][_0x4d4b('0x58')][_0x4d4b('0x82')](_0x4d23e4=>{let _0x2886d3=!0x1;const _0x452b7b=_0x14ef92[_0x4d4b('0x2f')][_0x4d4b('0x75')](_0x4d4b('0x52'))['me'],_0x4d0cd5=_0x3c8d58[_0x4d4b('0x87')]()[_0x4d4b('0x1e')](_0x2d0a3a=>_0x2d0a3a['isInContent']&&_0x2d0a3a[_0x4d4b('0x1a')]==_0x452b7b),_0x35a024=new Set(),_0x278309=new Set();for(const _0x4126a2 of _0x4d0cd5)if(_0x4d4b('0x64')==_0x4126a2['subType'])for(const _0x3127ef of _0x4126a2[_0x4d4b('0x9')]()){const _0x61d09f=_0x3127ef[_0x4d4b('0x93')]()['getContainedElement']();if(_0x61d09f){if(_0x61d09f['is'](_0x4d4b('0x56'),_0x4d4b('0x46'))&&ce(_0x61d09f)){_0x4126a2[_0x4d4b('0xa')](_0x3127ef[_0x4d4b('0x6c')]),_0x35a024['add'](_0x61d09f),_0x2886d3=!0x0;const _0x5a7335=_0x61d09f[_0x4d4b('0x47')],_0x43b668=_0x61d09f[_0x4d4b('0x6f')],_0x37527f=_0x5a7335&&_0x5a7335['is'](_0x4d4b('0x56'),_0x4d4b('0x46')),_0x4e2d16=_0x43b668&&_0x43b668['is'](_0x4d4b('0x56'),_0x4d4b('0x46'));_0x37527f&&!_0x35a024[_0x4d4b('0x42')](_0x5a7335)&&_0x278309['add'](_0x5a7335),_0x4e2d16&&!_0x35a024[_0x4d4b('0x42')](_0x43b668)&&_0x278309[_0x4d4b('0x61')](_0x43b668);}else _0x61d09f['is']('element',_0x4d4b('0x4'))&&_0x61d09f[_0x4d4b('0x65')]&&(_0x4126a2[_0x4d4b('0xa')](_0x3127ef[_0x4d4b('0x6c')]),_0x2886d3=!0x0);}}else{if(_0x4d4b('0x6d')==_0x4126a2[_0x4d4b('0x32')]){if(!_0x4126a2[_0x4d4b('0x6a')]||!_0x4126a2[_0x4d4b('0x6a')][_0x4d4b('0x48')])continue;const _0x4c2b1e=_0x4126a2[_0x4d4b('0x6a')][_0x4d4b('0x6b')];if(_0x4c2b1e&&Object['keys'](_0x4c2b1e)[_0x4d4b('0x8f')])continue;const _0x94a401=_0x4126a2['attributes'][_0x4d4b('0x48')];let _0x2f3537=!0x0,_0x18897b=!0x0;for(const _0x5814ad of _0x4d0cd5)if(_0x5814ad[_0x4d4b('0x32')]&&_0x5814ad[_0x4d4b('0x32')][_0x4d4b('0x41')](_0x4d4b('0x64'))){if(!_0x5814ad[_0x4d4b('0x6a')][_0x4d4b('0x48')]){_0x18897b=!0x1;break;}if(_0x5814ad['id']!=_0x4126a2['id']&&_0x5814ad[_0x4d4b('0x6a')][_0x4d4b('0x48')]==_0x94a401){_0x2f3537=!0x1;break;}}_0x18897b&&_0x2f3537&&(_0x4126a2[_0x4d4b('0x3c')](),_0x2886d3=!0x0);}}for(const _0x286a40 of _0x35a024)_0x4d23e4[_0x4d4b('0x9d')](_0x286a40);for(const _0x2d1031 of _0x278309)_0x4d23e4[_0x4d4b('0x3d')](_0x2d1031);return _0x2886d3;}),_0x14ef92[_0x4d4b('0x3b')][_0x4d4b('0x9a')](_0x4d4b('0xa0'))[_0x4d4b('0x57')]({'model':_0x4d4b('0x90'),'view':(_0x47ac37,_0x4581eb)=>_0x74c3e3(_0x47ac37),'converterPriority':_0x4d4b('0xe')}),_0x14ef92[_0x4d4b('0x3b')][_0x4d4b('0x9a')](_0x4d4b('0x63'))[_0x4d4b('0x57')]({'model':_0x4d4b('0x90'),'view':(_0x543f66,_0x182e17)=>_0x182e17['options']['showSuggestionHighlights']?_0x74c3e3(_0x543f66,!0x1):null,'converterPriority':_0x4d4b('0xe')});const _0x4af1c7=_0x14ef92[_0x4d4b('0x6e')][_0x4d4b('0x71')];this['listenTo'](_0x4af1c7[_0x4d4b('0x58')],'clipboardOutput',(_0x3039a4,_0x15e9b0)=>{const _0x332082=[];for(const _0x4c106c of _0x4af1c7['createRangeIn'](_0x15e9b0[_0x4d4b('0x44')])[_0x4d4b('0x35')]())_0x4c106c['is'](_0x4d4b('0x56'),'suggestion-td')&&_0x332082[_0x4d4b('0x7f')](_0x4c106c);_0x4af1c7[_0x4d4b('0x7d')](_0x2c66ff=>{for(const _0x4e7b35 of _0x332082)_0x2c66ff[_0x4d4b('0x14')](_0x2c66ff[_0x4d4b('0x16')](_0x4e7b35),_0x2c66ff[_0x4d4b('0x30')](_0x4e7b35)),_0x2c66ff[_0x4d4b('0x9d')](_0x4e7b35);});});}}function ce(_0x39b1dc){if(_0x39b1dc[_0x4d4b('0x65')])return!0x0;const _0x1e40fa=_0x39b1dc[_0x4d4b('0x70')](0x0);return _0x1e40fa['is'](_0x4d4b('0x56'),_0x4d4b('0x4'))&&_0x1e40fa['isEmpty'];}function fe(_0x572a51,_0x3f7f5f={},_0x52cde6){for(const {isAnchor:_0x5e81f2,cellHeight:_0x2d2105,cellWidth:_0x92ffad}of _0x52cde6[_0x4d4b('0x43')](_0x572a51,{'includeAllSlots':!0x0,..._0x3f7f5f}))if(!_0x5e81f2||0x1!=_0x2d2105||0x1!=_0x92ffad)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b6d=['discard','handleSuggestionDescription','Users','editor','tableWidth','has','get','getContainedElement','document','*Format:*\x20resize\x20table','enableCommand','subType','formatGroupId','format','registerCustomCallback','handleResizeTableWidthCommand','change','accept','getSelectedElement','_suggestionFactory','getSuggestionCallback','bind','getColumnGroupElement','columnWidths','formatBlock','registerDescriptionCallback','TrackChangesEditing','getAttribute','getTableColumnsWidths','model','plugins','resizeTable','selection','_descriptionFactory','commandParams','resizeTableWidth','table','data','resizeColumnWidths'];(function(_0x8d8be7,_0x5b6d05){const _0x6f4e46=function(_0x45e759){while(--_0x45e759){_0x8d8be7['push'](_0x8d8be7['shift']());}};_0x6f4e46(++_0x5b6d05);}(_0x5b6d,0x89));const _0x6f4e=function(_0x8d8be7,_0x5b6d05){_0x8d8be7=_0x8d8be7-0x0;let _0x6f4e46=_0x5b6d[_0x8d8be7];return _0x6f4e46;};import{Plugin as _0x5a9fe5}from'ckeditor5/src/core';import{getTranslation as _0x5a3f70}from'../utils/common-translations';export default class yt extends _0x5a9fe5{['afterInit'](){if(!this['editor'][_0x6f4e('0xa')][_0x6f4e('0x18')]('TableColumnResizeEditing'))return;const _0x52e25f=this[_0x6f4e('0x16')][_0x6f4e('0xa')][_0x6f4e('0x19')](_0x6f4e('0x6'));_0x52e25f[_0x6f4e('0x1d')](_0x6f4e('0xf'),this[_0x6f4e('0x22')][_0x6f4e('0x1')](this)),_0x52e25f[_0x6f4e('0x1d')](_0x6f4e('0x12'),this[_0x6f4e('0x22')][_0x6f4e('0x1')](this)),_0x52e25f[_0x6f4e('0x26')][_0x6f4e('0x21')](_0x6f4e('0x4'),_0x6f4e('0xb'),_0x6f4e('0x24'),_0x52e25f[_0x6f4e('0x26')][_0x6f4e('0x0')]('formatBlock',null,_0x6f4e('0x13'))),_0x52e25f[_0x6f4e('0x26')][_0x6f4e('0x21')](_0x6f4e('0x4'),_0x6f4e('0xb'),_0x6f4e('0x13'),_0x52e25f[_0x6f4e('0x26')]['getSuggestionCallback'](_0x6f4e('0x4'),null,_0x6f4e('0x24'))),_0x52e25f[_0x6f4e('0xd')][_0x6f4e('0x5')](this[_0x6f4e('0x14')][_0x6f4e('0x1')](this));}[_0x6f4e('0x22')](_0x15a0cf,_0x1fbbd6){const _0x1dfe71=this[_0x6f4e('0x16')]['plugins'][_0x6f4e('0x19')](_0x6f4e('0x6')),_0x35a85b=this[_0x6f4e('0x16')]['plugins'][_0x6f4e('0x19')]('TableColumnResizeEditing'),_0x243081=_0x1fbbd6[_0x6f4e('0x10')]||this[_0x6f4e('0x16')][_0x6f4e('0x9')][_0x6f4e('0x1b')][_0x6f4e('0xc')][_0x6f4e('0x25')]();this[_0x6f4e('0x16')][_0x6f4e('0x9')][_0x6f4e('0x23')](()=>{const _0x4f3e98=_0x35a85b[_0x6f4e('0x2')](_0x243081);let _0x4a2a0d=_0x4f3e98?_0x35a85b[_0x6f4e('0x8')](_0x4f3e98):null,_0x7e75f1=_0x243081[_0x6f4e('0x7')](_0x6f4e('0x17'))||null;const _0x3f9747=_0x1fbbd6['tableWidth']||_0x7e75f1,_0x305122=_0x1fbbd6[_0x6f4e('0x3')]||_0x4a2a0d,_0xc9c47f=this['editor'][_0x6f4e('0xa')][_0x6f4e('0x19')](_0x6f4e('0x15'))['me'];for(const _0x392afd of _0x1dfe71['getSuggestions']()){const _0x56d650=_0x392afd[_0x6f4e('0x1a')]();if(_0x6f4e('0xb')===_0x392afd[_0x6f4e('0x1e')]&&_0x56d650===_0x243081){_0x392afd['author']!==_0xc9c47f&&_0x392afd[_0x6f4e('0x13')]();const _0x640fea=_0x392afd[_0x6f4e('0x11')][_0x6f4e('0xe')];_0x7e75f1=_0x640fea[0x0]['tableWidth'],_0x4a2a0d=_0x640fea[0x0]['columnWidths'];break;}}_0x15a0cf({'table':_0x243081,'tableWidth':_0x3f9747,'columnWidths':_0x305122}),_0x1dfe71['markBlockFormat'](_0x243081,{'commandName':_0x6f4e('0xf'),'commandParams':[{'tableWidth':_0x7e75f1,'columnWidths':_0x4a2a0d}],'formatGroupId':_0x6f4e('0xb')},[],'resizeTable');});}[_0x6f4e('0x14')](_0x49992b){const {data:_0xa4aed6}=_0x49992b;if(_0xa4aed6&&_0x6f4e('0xb')===_0xa4aed6[_0x6f4e('0x1f')]){const _0x58512c=_0x6f4e('0x1c');return{'type':_0x6f4e('0x20'),'content':_0x5a3f70(this[_0x6f4e('0x16')]['locale'],_0x58512c)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f7c=['accept','cell','getSuggestion','ck-suggestion-marker--active','get','registerCustomCallback','FORMAT_REGULAR_COLUMN','createPositionAfter','activeMarkers','consume','unbindElementFromMarkerName','setTableRowHeader','commandParams','removeMarker:suggestion','table','first','isBefore','bindElementToMarker','headingColumns','setAttribute','toViewElement','end','_acceptFormatSuggestionCallbackFactory','markerNameToElements','selection','stop','data','ck-suggestion-marker-','createPositionBefore','showSuggestionHighlights','_descriptionFactory','enableCommand','addMarker:suggestion','getChild','last','downcastDispatcher','consumable','includes','commandName','FORMAT_HEADER_COLUMN','requires','getSelectionAffectedTableCells','parent','editing','FORMAT_HEADER_ROW','removeClass','options','TableEditing','nodeAfter','markerName','writer','formatBlock','item','change','TrackChangesEditing','_splitMarkerName','value','highest','format','getRowIndexes','_suggestionFactory','childCount','markerRange','markBlockFormat','setTableColumnHeader','start','removeAttribute','index','createRange','model','forceValue','getAttribute','commands','afterInit','headingRows','findAncestor','getCellLocation','document','data-suggestion','mapper','locale','plugins','TableUtils'];(function(_0x501dc0,_0x4f7cc3){const _0x10fbda=function(_0x150372){while(--_0x150372){_0x501dc0['push'](_0x501dc0['shift']());}};_0x10fbda(++_0x4f7cc3);}(_0x4f7c,0x1b4));const _0x10fb=function(_0x501dc0,_0x4f7cc3){_0x501dc0=_0x501dc0-0x0;let _0x10fbda=_0x4f7c[_0x501dc0];return _0x10fbda;};import{Plugin as _0x2fbeae}from'ckeditor5/src/core';import _0x28eadf from'./table';import{getTranslation as _0x1d9097}from'../utils/common-translations';export default class kt extends _0x2fbeae{static get[_0x10fb('0x13')](){return[_0x28eadf];}[_0x10fb('0x34')](){const _0x10d95a=this['editor'];if(!_0x10d95a[_0x10fb('0x3c')]['has'](_0x10fb('0x1a')))return;const _0x3a67ba=_0x10d95a[_0x10fb('0x3b')],_0x43c4e9=_0x10d95a['plugins'][_0x10fb('0x42')](_0x10fb('0x21')),_0x57fe23=_0x10d95a['plugins'][_0x10fb('0x42')]('TableUtils'),_0x39e18f=_0x10d95a[_0x10fb('0x3c')][_0x10fb('0x42')](_0x28eadf);function _0x19e1be({showActiveMarker:_0x5909c0=!0x0,setDataAttribute:_0x260abc=!0x0}={}){return(_0x30c0c0,_0xd4ed9d,_0x205539)=>{const {type:_0x2847db,id:_0x2c46e8}=_0x43c4e9[_0x10fb('0x22')](_0xd4ed9d[_0x10fb('0x1c')]),_0x3d7c56=_0x43c4e9[_0x10fb('0x40')](_0x2c46e8);if(!_0x3d7c56[_0x10fb('0x5')]||_0x10fb('0x2b')!=_0x3d7c56[_0x10fb('0x5')][_0x10fb('0x11')])return;if(_0xd4ed9d[_0x10fb('0x1f')])return void _0x30c0c0[_0x10fb('0x4')]();if(!_0x205539[_0x10fb('0xf')][_0x10fb('0x47')](_0xd4ed9d[_0x10fb('0x29')],_0x30c0c0['name']))return;const _0x31cf9c=_0xd4ed9d['markerRange'][_0x10fb('0x2c')][_0x10fb('0x1b')],_0x65dec4=_0xd4ed9d[_0x10fb('0x29')][_0x10fb('0x0')]['nodeBefore'],_0xc97d80=_0x31cf9c[_0x10fb('0x15')][_0x10fb('0x15')],{column:_0x599ded}=_0x57fe23[_0x10fb('0x37')](_0x31cf9c),{column:_0x29c16f}=_0x57fe23[_0x10fb('0x37')](_0x65dec4);for(let _0x412f60=_0x599ded;_0x412f60<=_0x29c16f;_0x412f60++){const _0x286abd=_0x57fe23['createTableWalker'](_0xc97d80,{'column':_0x412f60,'includeAllSlots':!0x1});for(const _0x223d1c of _0x286abd){const _0x5ef7e9=_0x223d1c[_0x10fb('0x3f')],_0x40d8b0=_0x205539[_0x10fb('0x3a')][_0x10fb('0x52')](_0x5ef7e9);_0x205539[_0x10fb('0x1d')]['addClass'](_0x10fb('0x6')+_0x2847db,_0x40d8b0),_0x260abc&&_0x205539[_0x10fb('0x1d')][_0x10fb('0x51')]('data-suggestion',_0x2c46e8,_0x40d8b0),_0x205539[_0x10fb('0x3a')][_0x10fb('0x4f')](_0x40d8b0,_0xd4ed9d[_0x10fb('0x1c')]),_0x5909c0&&(_0x43c4e9[_0x10fb('0x46')][_0x10fb('0x10')](_0xd4ed9d['markerName'])?_0x205539[_0x10fb('0x1d')]['addClass'](_0x10fb('0x41'),_0x40d8b0):_0x205539['writer'][_0x10fb('0x18')]('ck-suggestion-marker--active',_0x40d8b0));}}};}_0x43c4e9[_0x10fb('0xa')](_0x10fb('0x49'),(_0x22bb4c,_0x55306e)=>{const _0x56b630=_0x57fe23[_0x10fb('0x14')](_0x10d95a[_0x10fb('0x30')][_0x10fb('0x38')]['selection']),_0x4bcde7=_0x57fe23[_0x10fb('0x26')](_0x56b630),_0x5f17bb=_0x56b630[0x0]['findAncestor']('table'),_0x4f4d57=_0x5f17bb[_0x10fb('0x32')](_0x10fb('0x35'))||0x0,_0x8bd293=_0x55306e&&null!==_0x55306e[_0x10fb('0x31')]?_0x55306e[_0x10fb('0x31')]:!_0x10d95a['commands'][_0x10fb('0x42')](_0x10fb('0x49'))[_0x10fb('0x23')],_0x1da361=_0x8bd293?_0x4bcde7[_0x10fb('0xd')]:_0x4bcde7[_0x10fb('0x4d')],_0x2c7365=_0x5f17bb[_0x10fb('0xc')](_0x1da361);let _0x5ced7c;if(_0x8bd293){const _0x591d92=_0x5f17bb[_0x10fb('0xc')](_0x4f4d57);if(_0x2c7365[_0x10fb('0x2e')]<_0x591d92[_0x10fb('0x2e')])return;_0x5ced7c=_0x10d95a[_0x10fb('0x30')][_0x10fb('0x2f')](_0x10d95a[_0x10fb('0x30')]['createPositionBefore'](_0x591d92[_0x10fb('0xc')](0x0)),_0x10d95a[_0x10fb('0x30')][_0x10fb('0x45')](_0x2c7365['getChild'](_0x2c7365['childCount']-0x1)));}else{const _0x450be2=_0x5f17bb[_0x10fb('0xc')](_0x4f4d57-0x1);if(!_0x450be2)return;_0x5ced7c=_0x10d95a[_0x10fb('0x30')][_0x10fb('0x2f')](_0x10d95a[_0x10fb('0x30')][_0x10fb('0x7')](_0x2c7365['getChild'](0x0)),_0x10d95a[_0x10fb('0x30')][_0x10fb('0x45')](_0x450be2[_0x10fb('0xc')](_0x450be2[_0x10fb('0x28')]-0x1)));}_0x10d95a[_0x10fb('0x30')][_0x10fb('0x20')](()=>{_0x43c4e9[_0x10fb('0x2a')](_0x5ced7c,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x8bd293}]},[],_0x10fb('0x49'));});}),_0x43c4e9[_0x10fb('0xa')](_0x10fb('0x2b'),(_0x3435d8,_0x2b6315)=>{const _0x276420=_0x10d95a[_0x10fb('0x3c')]['get'](_0x10fb('0x3d')),_0x53b74a=_0x276420[_0x10fb('0x14')](_0x10d95a[_0x10fb('0x30')][_0x10fb('0x38')][_0x10fb('0x3')]),_0x4e365f=_0x276420['getColumnIndexes'](_0x53b74a),_0x5ad8a9=_0x53b74a[0x0][_0x10fb('0x36')](_0x10fb('0x4c')),_0x36e991=_0x5ad8a9['getAttribute'](_0x10fb('0x50'))||0x0,_0xb53ef7=_0x2b6315&&null!==_0x2b6315[_0x10fb('0x31')]?_0x2b6315[_0x10fb('0x31')]:!_0x10d95a[_0x10fb('0x33')][_0x10fb('0x42')](_0x10fb('0x2b'))['value'];let _0x22354f;const _0x515cca=_0x5ad8a9['getChild'](0x0),_0x2fb5f0=_0xb53ef7?_0x4e365f['last']:_0x4e365f[_0x10fb('0x4d')],_0x513ded=_0x276420['createTableWalker'](_0x5ad8a9,{'startRow':0x0,'column':_0x2fb5f0,'includeAllSlots':!0x1}),_0x4dfd78=Array['from'](_0x513ded)[0x0][_0x10fb('0x3f')];if(_0xb53ef7){const _0x57e8ba=_0x515cca[_0x10fb('0xc')](_0x36e991);if(_0x4dfd78[_0x10fb('0x4e')](_0x57e8ba))return;_0x22354f=_0x10d95a[_0x10fb('0x30')][_0x10fb('0x2f')](_0x10d95a[_0x10fb('0x30')][_0x10fb('0x7')](_0x57e8ba),_0x10d95a['model'][_0x10fb('0x45')](_0x4dfd78));}else{const _0x55c15a=_0x515cca[_0x10fb('0xc')](_0x36e991-0x1);if(!_0x55c15a)return;_0x22354f=_0x10d95a[_0x10fb('0x30')][_0x10fb('0x2f')](_0x10d95a[_0x10fb('0x30')][_0x10fb('0x7')](_0x4dfd78),_0x10d95a[_0x10fb('0x30')][_0x10fb('0x45')](_0x55c15a));}_0x10d95a[_0x10fb('0x30')]['change'](()=>{_0x43c4e9[_0x10fb('0x2a')](_0x22354f,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0xb53ef7}]},[],_0x10fb('0x2b'));});}),_0x10d95a[_0x10fb('0x16')][_0x10fb('0xe')]['on'](_0x10fb('0xb'),_0x19e1be(),{'priority':_0x10fb('0x24')}),_0x10d95a['data'][_0x10fb('0xe')]['on'](_0x10fb('0xb'),(_0x117a8d,_0x4b5cd1,_0x4da395)=>{_0x4da395[_0x10fb('0x19')][_0x10fb('0x8')]&&_0x19e1be({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x117a8d,_0x4b5cd1,_0x4da395);},{'priority':_0x10fb('0x24')}),_0x10d95a[_0x10fb('0x16')][_0x10fb('0xe')]['on'](_0x10fb('0x4b'),(_0x50983f,_0x13523a,_0x15d8c1)=>{const {type:_0x1e88a0,id:_0x283131}=_0x43c4e9[_0x10fb('0x22')](_0x13523a['markerName']),_0x326411=_0x43c4e9[_0x10fb('0x40')](_0x283131);if(!_0x326411[_0x10fb('0x5')]||_0x10fb('0x2b')!=_0x326411[_0x10fb('0x5')]['commandName'])return;const _0x439f7d=_0x15d8c1[_0x10fb('0x3a')][_0x10fb('0x2')](_0x13523a['markerName']);if(_0x439f7d)for(const _0x473cdf of _0x439f7d)_0x15d8c1[_0x10fb('0x1d')][_0x10fb('0x18')](_0x10fb('0x6')+_0x1e88a0,_0x473cdf),_0x15d8c1[_0x10fb('0x1d')]['removeClass'](_0x10fb('0x41'),_0x473cdf),_0x15d8c1[_0x10fb('0x1d')][_0x10fb('0x2d')](_0x10fb('0x39'),_0x473cdf),_0x15d8c1[_0x10fb('0x3a')][_0x10fb('0x48')](_0x473cdf,_0x13523a['markerName']);},{'priority':_0x10fb('0x24')}),_0x43c4e9[_0x10fb('0x9')]['registerDescriptionCallback'](_0x2edfee=>{const {data:_0x473b44}=_0x2edfee;if(_0x473b44){if(_0x10fb('0x49')==_0x473b44[_0x10fb('0x11')]){const _0xd65e3f=_0x473b44['commandParams'][0x0][_0x10fb('0x31')];return _0x42b57e(_0x1d9097(_0x3a67ba,_0xd65e3f?_0x10fb('0x17'):'FORMAT_REGULAR_ROW'));}if(_0x10fb('0x2b')==_0x473b44[_0x10fb('0x11')]){const _0xa6fe9d=_0x473b44[_0x10fb('0x4a')][0x0]['forceValue'];return _0x42b57e(_0x1d9097(_0x3a67ba,_0xa6fe9d?_0x10fb('0x12'):_0x10fb('0x44')));}}function _0x42b57e(_0x239603){return{'type':_0x10fb('0x25'),'content':_0x1d9097(_0x3a67ba,'*Format:*\x20%0',_0x239603)};}});const _0x2184c6=_0x39e18f[_0x10fb('0x1')]();_0x43c4e9[_0x10fb('0x27')][_0x10fb('0x43')](_0x10fb('0x1e'),_0x10fb('0x49'),'accept',_0x2184c6),_0x43c4e9['_suggestionFactory']['registerCustomCallback'](_0x10fb('0x1e'),_0x10fb('0x2b'),_0x10fb('0x3e'),_0x2184c6);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27c0=['getAncestors','createTableWalker','commandName','accept','enableCommand','find','splitTableCellHorizontally','*Split\x20cell:*\x20horizontally','mergeTableCells','markBlockFormat','table','filter','size','isEnabled','_tablePostFixingSubtypes','stop','highest','get','execute','findAncestor','trackChanges','rootName','setSelection','commands','author','low','mergeTableCellUp','format','length','element','_isForcedDefaultExecutionBlock','formatBlock','set:isEnabled','editor','getRanges','selection','document','change','TableEditing','map','$graveyard','type','_areSelectedCellsMergable','getSelectionAffectedTableCells','*Split\x20cell:*\x20vertically','locale','add','registerDescriptionCallback','insertion','mergeTableCellLeft','cell','_descriptionFactory','tableCell','horizontally','plugins','_areMergableCells','from','afterInit','createRangeOn','mergeTableCellRight','isInContent','requires','model','getSuggestions','getFirstPosition','direction','markMultiRangeBlockFormat','forceDefaultExecution','TrackChangesEditing','_suggestionFactory','splitTableCellVertically','value','registerCustomCallback','return','*Merge\x20cells*','containsRange','TableUtils','deletion','mergeTableCellDown','has'];(function(_0x314047,_0x27c018){const _0x1270b4=function(_0x40cd72){while(--_0x40cd72){_0x314047['push'](_0x314047['shift']());}};_0x1270b4(++_0x27c018);}(_0x27c0,0x133));const _0x1270=function(_0x314047,_0x27c018){_0x314047=_0x314047-0x0;let _0x1270b4=_0x27c0[_0x314047];return _0x1270b4;};import{Plugin as _0x35072d}from'ckeditor5/src/core';import _0xa368d from'./table';import{LiveRange as _0x4ba09f}from'ckeditor5/src/engine';import{getTranslation as _0x3f5f54}from'../utils/common-translations';export default class pt extends _0x35072d{static get[_0x1270('0x4a')](){return[_0xa368d];}[_0x1270('0x46')](){const _0xbffe=this[_0x1270('0x2e')],_0x15dd46=_0xbffe['model'][_0x1270('0x31')][_0x1270('0x30')],_0x25573d=_0xbffe[_0x1270('0x3a')];if(!_0xbffe[_0x1270('0x43')][_0x1270('0xc')](_0x1270('0x33')))return;const _0x2a4d07=_0xbffe[_0x1270('0x43')][_0x1270('0x1e')](_0x1270('0x1')),_0x47128c=_0xbffe[_0x1270('0x43')][_0x1270('0x1e')](_0x1270('0x9')),_0x3ee05b=_0xbffe['plugins']['get'](_0xa368d);_0x3ee05b[_0x1270('0x1b')]['push']('mergeTableCells'),_0x2a4d07[_0x1270('0x11')]('mergeTableCells',()=>{const _0x48238f=_0x47128c[_0x1270('0x38')](_0xbffe['model']['document']['selection']);_0xbffe[_0x1270('0x4b')][_0x1270('0x32')](()=>{_0x2a4d07[_0x1270('0x4f')](_0x48238f,{'commandName':'mergeTableCells','commandParams':[]},[],_0x1270('0x15'));});}),_0xbffe['commands'][_0x1270('0x1e')](_0x1270('0x15'))['on'](_0x1270('0x1f'),(_0x2797c9,_0x5f2c47)=>{_0xbffe['commands'][_0x1270('0x1e')](_0x1270('0x21'))[_0x1270('0x4')]&&(_0x5f2c47[_0x1270('0x29')]>0x0&&_0x5f2c47[_0x5f2c47[_0x1270('0x29')]-0x1]&&_0x5f2c47[_0x5f2c47[_0x1270('0x29')]-0x1][_0x1270('0x0')]||_0x2a4d07[_0x1270('0x2b')]||this[_0x1270('0x37')]()||_0x2797c9[_0x1270('0x1c')]());},{'priority':_0x1270('0x1d')});for(const _0x3f0663 of['mergeTableCellUp','mergeTableCellRight',_0x1270('0xb'),_0x1270('0x3e')]){const _0xe01e3c=_0xbffe['commands'][_0x1270('0x1e')](_0x3f0663);_0x2a4d07[_0x1270('0x11')](_0x3f0663,()=>{const _0x5b9c31=_0xbffe[_0x1270('0x4b')]['document'][_0x1270('0x30')][_0x1270('0x4d')]()[_0x1270('0xd')]()[_0x1270('0x12')](_0x560f44=>_0x560f44['is']('element',_0x1270('0x41'))),_0x3527c2=_0xe01e3c['value'];_0xbffe['model'][_0x1270('0x32')](()=>{_0x2a4d07[_0x1270('0x4f')]([_0x5b9c31,_0x3527c2],{'commandName':'mergeTableCells','commandParams':[]},[],_0x1270('0x15'));});});}for(const _0x218e0a of['splitTableCellVertically',_0x1270('0x13')]){const _0x327099=_0xbffe[_0x1270('0x24')][_0x1270('0x1e')](_0x218e0a);_0x2a4d07[_0x1270('0x11')](_0x218e0a,()=>{const _0x2c3593=_0x47128c['getSelectionAffectedTableCells'](_0xbffe[_0x1270('0x4b')]['document']['selection'])[0x0],_0x1571cd=_0x2c3593[_0x1270('0x20')](_0x1270('0x17')),{column:_0x3e59d2,row:_0x2afd8e}=_0x47128c['getCellLocation'](_0x2c3593);let _0x156a9a=[];if(_0x1270('0x42')==_0x327099[_0x1270('0x4e')]){const _0x2cbc69=_0x47128c['createTableWalker'](_0x1571cd,{'startRow':_0x2afd8e,'endRow':_0x2afd8e,'includeAllSlots':!0x0});_0x156a9a=Array[_0x1270('0x45')](_0x2cbc69)['map'](_0x105565=>_0x105565[_0x1270('0x3f')]);}else{const _0x4b1f79=_0x47128c[_0x1270('0xe')](_0x1571cd,{'column':_0x3e59d2,'includeAllSlots':!0x0});_0x156a9a=Array[_0x1270('0x45')](_0x4b1f79)[_0x1270('0x34')](_0x3941c9=>_0x3941c9[_0x1270('0x3f')]);}_0xbffe['model'][_0x1270('0x32')](_0x3d6f12=>{_0x2a4d07[_0x1270('0x16')](_0x3d6f12[_0x1270('0x47')](_0x2c3593),{'commandName':_0x218e0a,'commandParams':[]},_0x156a9a,_0x218e0a);});});}_0x2a4d07[_0x1270('0x40')][_0x1270('0x3c')](_0x3242f5=>{const {data:_0x1e5337}=_0x3242f5;if(_0x1e5337)return _0x1270('0x15')==_0x1e5337['commandName']?{'type':_0x1270('0x28'),'content':_0x3f5f54(_0x25573d,_0x1270('0x7'))}:void 0x0;}),_0x2a4d07[_0x1270('0x40')][_0x1270('0x3c')](_0x360a92=>{const {data:_0x3d483f}=_0x360a92;if(_0x3d483f)return _0x1270('0x3')==_0x3d483f['commandName']?{'type':_0x1270('0x28'),'content':_0x3f5f54(_0x25573d,_0x1270('0x39'))}:'splitTableCellHorizontally'==_0x3d483f[_0x1270('0xf')]?{'type':_0x1270('0x28'),'content':_0x3f5f54(_0x25573d,_0x1270('0x14'))}:void 0x0;});const _0x4792d1=_0x3ee05b['_acceptFormatSuggestionCallbackFactory']();for(const _0x4008da of[_0x1270('0x27'),_0x1270('0x48'),_0x1270('0xb'),'mergeTableCellLeft'])_0x2a4d07[_0x1270('0x2')][_0x1270('0x5')](_0x1270('0x2c'),_0x4008da,'accept',_0x4792d1);for(const _0x3b93a4 of[_0x1270('0x3'),'splitTableCellHorizontally'])_0x2a4d07[_0x1270('0x2')][_0x1270('0x5')]('formatBlock',_0x3b93a4,'accept',_0x4792d1);_0x2a4d07[_0x1270('0x2')]['registerCustomCallback'](_0x1270('0x2c'),_0x1270('0x15'),_0x1270('0x10'),_0x4e2fdf=>{_0xbffe[_0x1270('0x4b')][_0x1270('0x32')](_0x429c7f=>{const _0x4458a9=Array[_0x1270('0x45')](_0x15dd46[_0x1270('0x2f')]())[_0x1270('0x34')](_0x43d213=>_0x4ba09f['fromRange'](_0x43d213));_0x429c7f[_0x1270('0x23')](_0x4e2fdf),_0xbffe[_0x1270('0x24')]['get']('mergeTableCells')['refresh'](),_0xbffe[_0x1270('0x1f')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2ec6d5=_0x4458a9[_0x1270('0x18')](_0x2d4828=>_0x1270('0x35')!=_0x2d4828['root'][_0x1270('0x22')]);_0x2ec6d5[_0x1270('0x29')]>0x0&&_0x429c7f[_0x1270('0x23')](_0x2ec6d5);for(const _0x3c4fb7 of _0x4458a9)_0x3c4fb7['detach']();});});for(const _0x33ac32 of[_0x1270('0x27'),'mergeTableCellDown',_0x1270('0x3e'),_0x1270('0x48')]){const _0x14190b=_0xbffe['commands'][_0x1270('0x1e')](_0x33ac32);_0x14190b['on'](_0x1270('0x2d'),(_0x1f6329,_0x19f08b,_0xdd7d74)=>{if(_0xdd7d74){const _0x17be78=_0xbffe[_0x1270('0x4b')]['document'][_0x1270('0x30')][_0x1270('0x4d')]()[_0x1270('0xd')]()[_0x1270('0x12')](_0x39524=>_0x39524['is'](_0x1270('0x2a'),_0x1270('0x41')));this[_0x1270('0x44')](_0x14190b['value'],_0x17be78)||(_0x1f6329[_0x1270('0x6')]=!0x1,_0x1f6329[_0x1270('0x1c')]());}},{'priority':_0x1270('0x26')});}}[_0x1270('0x37')](){const _0x372835=this[_0x1270('0x2e')]['commands'][_0x1270('0x1e')](_0x1270('0x15')),_0x498170=this[_0x1270('0x2e')]['plugins'][_0x1270('0x1e')](_0x1270('0x9'));if(!_0x372835[_0x1270('0x1a')])return!0x1;const _0x265af3=_0x498170[_0x1270('0x38')](this['editor'][_0x1270('0x4b')][_0x1270('0x31')]['selection']);for(const _0x34609d of _0x265af3)for(const _0xe501cd of _0x265af3)if(_0x34609d!=_0xe501cd&&!this[_0x1270('0x44')](_0x34609d,_0xe501cd))return!0x1;return!0x0;}[_0x1270('0x44')](_0x2cb911,_0x510fed){const _0x2e15de=this[_0x1270('0x2e')]['plugins'][_0x1270('0x1e')]('TrackChangesEditing'),_0x546311=this[_0x1270('0x2e')][_0x1270('0x4b')]['createRangeOn'](_0x2cb911),_0x2f368d=this['editor'][_0x1270('0x4b')][_0x1270('0x47')](_0x510fed),_0x111963=new Set(),_0x30bb08=new Set();for(const _0x40cb65 of _0x2e15de[_0x1270('0x4c')]())if((_0x1270('0x3d')==_0x40cb65[_0x1270('0x36')]||_0x1270('0xa')==_0x40cb65['type']||_0x1270('0x15')==_0x40cb65['subType'])&&_0x40cb65[_0x1270('0x49')])for(const _0x2d5e63 of _0x40cb65['getRanges']())_0x2d5e63[_0x1270('0x8')](_0x546311,!0x0)&&_0x111963['add'](_0x40cb65[_0x1270('0x36')]+':'+_0x40cb65[_0x1270('0x25')]['id']),_0x2d5e63[_0x1270('0x8')](_0x2f368d,!0x0)&&_0x30bb08[_0x1270('0x3b')](_0x40cb65[_0x1270('0x36')]+':'+_0x40cb65[_0x1270('0x25')]['id']);if(_0x111963['size']!=_0x30bb08[_0x1270('0x19')])return!0x1;for(const _0x110515 of _0x111963)if(!_0x30bb08[_0x1270('0xc')](_0x110515))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e60=['editor','locale','tableOfContents','get','TrackChangesEditing','registerElementLabel','ELEMENT_TABLE_OF_CONTENTS','_descriptionFactory','plugins','enableCommand'];(function(_0x414211,_0x1e60b3){const _0x9716e5=function(_0x5302cb){while(--_0x5302cb){_0x414211['push'](_0x414211['shift']());}};_0x9716e5(++_0x1e60b3);}(_0x1e60,0x176));const _0x9716=function(_0x414211,_0x1e60b3){_0x414211=_0x414211-0x0;let _0x9716e5=_0x1e60[_0x414211];return _0x9716e5;};import{Plugin as _0x58d72a}from'ckeditor5/src/core';import{getTranslation as _0x468dbf}from'../utils/common-translations';export default class St extends _0x58d72a{['afterInit'](){const _0x712268=this[_0x9716('0x6')];if(!_0x712268['commands']['get']('insertTableOfContents'))return;_0x712268[_0x9716('0x4')][_0x9716('0x9')]('TrackChangesEditing')[_0x9716('0x5')]('insertTableOfContents');const _0xbdd59a=_0x712268[_0x9716('0x4')][_0x9716('0x9')](_0x9716('0x0')),_0x22757a=_0x712268[_0x9716('0x7')];_0xbdd59a[_0x9716('0x3')][_0x9716('0x1')](_0x9716('0x8'),_0x25ca92=>_0x468dbf(_0x22757a,_0x9716('0x2'),_0x25ca92));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28f6=['handleSuggestionDescription','tableBackgroundColor','handleDiscardAction','tableHeight','_descriptionFactory','table','formatBlock','format','_handlePropertyChange','subType','get','setAttribute','afterInit','tableCellBorderWidth','TablePropertiesEditing','commandParams','locale','TableUtils','registerDescriptionCallback','registerCustomCallback','tableCellBorderColor','TrackChangesEditing','tableProperties','_getSuggestion','change','join','*Format:*\x20change\x20table\x20properties','tableCellHorizontalAlignment','enableCommand','selection','_suggestionFactory','model','document','TableCellPropertiesEditing','plugins','tableAlignment','enqueueChange','discard','tableCellProperties','*Format:*\x20change\x20table\x20cell\x20properties','getSuggestions','editor','getAttribute','tableCellPadding','pluginName','TrackChangesTableProperties','tableCellHeight','getSuggestionCallback','tableWidth','data','tableCellWidth','accept','start','tableCellBorderStyle','has','markBlockFormat','getSelectionAffectedTableCells','batch'];(function(_0x5d019e,_0x28f60d){const _0x513d05=function(_0x18cc4f){while(--_0x18cc4f){_0x5d019e['push'](_0x5d019e['shift']());}};_0x513d05(++_0x28f60d);}(_0x28f6,0x1eb));const _0x513d=function(_0x5d019e,_0x28f60d){_0x5d019e=_0x5d019e-0x0;let _0x513d05=_0x28f6[_0x5d019e];return _0x513d05;};import{Plugin as _0x5bef3e}from'ckeditor5/src/core';import{getTranslation as _0x3e0f43}from'../utils/common-translations';export default class Dt extends _0x5bef3e{constructor(_0x196b85){super(_0x196b85),this[_0x513d('0x35')]=['tableBorderColor','tableBorderStyle','tableBorderWidth',_0x513d('0x8'),_0x513d('0x15'),_0x513d('0x22'),_0x513d('0x20')],this[_0x513d('0xb')]=[_0x513d('0x33'),_0x513d('0x1a'),_0x513d('0x2c'),_0x513d('0x10'),_0x513d('0x17'),_0x513d('0x13'),'tableCellBackgroundColor',_0x513d('0x0'),'tableCellVerticalAlignment'];}static get[_0x513d('0x11')](){return _0x513d('0x12');}[_0x513d('0x2b')](){const _0x41a1be=this[_0x513d('0xe')][_0x513d('0x7')][_0x513d('0x29')](_0x513d('0x34'));if(this[_0x513d('0xe')]['plugins']['has'](_0x513d('0x2d'))){for(const _0x3bf692 of this[_0x513d('0x35')])_0x41a1be[_0x513d('0x1')](_0x3bf692,(_0x3b8751,_0xa53bf)=>{const _0x151272=this[_0x513d('0xe')][_0x513d('0x4')][_0x513d('0x5')]['selection']['getFirstPosition']()['findAncestor'](_0x513d('0x24'));this[_0x513d('0x27')](_0x3bf692,[_0x151272],this[_0x513d('0x35')],_0x513d('0x35'),_0x3b8751,_0xa53bf);});_0x41a1be['_suggestionFactory'][_0x513d('0x32')](_0x513d('0x25'),'tableProperties',_0x513d('0x18'),_0x41a1be[_0x513d('0x3')][_0x513d('0x14')]('formatBlock',null,'discard')),_0x41a1be[_0x513d('0x3')][_0x513d('0x32')](_0x513d('0x25'),_0x513d('0x35'),_0x513d('0xa'),(_0x370f1f,_0x9d1e11)=>this[_0x513d('0x21')](this['tableProperties'],_0x370f1f,_0x9d1e11)),_0x41a1be[_0x513d('0x3')][_0x513d('0x32')](_0x513d('0x25'),_0x513d('0x35'),_0x513d('0x38'),()=>!0x1);}if(this[_0x513d('0xe')]['plugins'][_0x513d('0x1b')](_0x513d('0x6'))){for(const _0x21011b of this['tableCellProperties'])_0x41a1be[_0x513d('0x1')](_0x21011b,(_0xee5e41,_0x3b78a5)=>{const _0x434df7=this[_0x513d('0xe')][_0x513d('0x7')]['get'](_0x513d('0x30'))[_0x513d('0x1d')](this[_0x513d('0xe')][_0x513d('0x4')][_0x513d('0x5')][_0x513d('0x2')]);this['_handlePropertyChange'](_0x21011b,_0x434df7,this['tableCellProperties'],'tableCellProperties',_0xee5e41,_0x3b78a5);});_0x41a1be[_0x513d('0x3')][_0x513d('0x32')]('formatBlock',_0x513d('0xb'),_0x513d('0x18'),_0x41a1be[_0x513d('0x3')]['getSuggestionCallback'](_0x513d('0x25'),null,_0x513d('0xa'))),_0x41a1be[_0x513d('0x3')][_0x513d('0x32')](_0x513d('0x25'),_0x513d('0xb'),_0x513d('0xa'),(_0x2f709b,_0x1d0c02)=>this[_0x513d('0x21')](this[_0x513d('0xb')],_0x2f709b,_0x1d0c02)),_0x41a1be[_0x513d('0x3')][_0x513d('0x32')](_0x513d('0x25'),_0x513d('0xb'),_0x513d('0x38'),()=>!0x1);}_0x41a1be[_0x513d('0x23')][_0x513d('0x31')](_0x507f7e=>this[_0x513d('0x1f')](_0x507f7e));}[_0x513d('0x27')](_0x2aad90,_0x380f2b,_0x436a35,_0x960ffe,_0x47e07c,_0x289672){const _0x411c58=this[_0x513d('0xe')][_0x513d('0x7')][_0x513d('0x29')](_0x513d('0x34'));this[_0x513d('0xe')][_0x513d('0x4')][_0x513d('0x9')](_0x289672[_0x513d('0x1e')],()=>{for(const _0x465da4 of _0x380f2b){if(this[_0x513d('0x36')](_0x465da4,_0x960ffe))_0x47e07c(_0x289672);else{const _0xf096f={};for(const _0x1d1c22 of _0x436a35){const _0x1cc896=_0x465da4[_0x513d('0xf')](_0x1d1c22);void 0x0!==_0x1cc896&&(_0xf096f[_0x1d1c22]=_0x1cc896);}_0x47e07c(_0x289672),_0x411c58[_0x513d('0x1c')](_0x465da4,{'commandParams':[_0xf096f]},[],_0x960ffe);}}});}['handleDiscardAction'](_0x15ed2f,_0x5d10ce,_0x485ad1){const _0x2ade33=_0x5d10ce[0x0][_0x513d('0x19')]['nodeAfter'],_0x2f8273=_0x485ad1[_0x513d('0x2e')][0x0];this['editor']['model'][_0x513d('0x37')](_0x967bf3=>{for(const _0x23834f of _0x15ed2f)void 0x0!==_0x2f8273[_0x23834f]?_0x967bf3[_0x513d('0x2a')](_0x23834f,_0x2f8273[_0x23834f],_0x2ade33):_0x967bf3['removeAttribute'](_0x23834f,_0x2ade33);});}[_0x513d('0x1f')](_0x139858){if(_0x139858[_0x513d('0x16')])switch(_0x139858[_0x513d('0x28')]){case _0x513d('0x35'):return{'type':_0x513d('0x26'),'content':_0x3e0f43(this[_0x513d('0xe')][_0x513d('0x2f')],_0x513d('0x39'))};case _0x513d('0xb'):return{'type':_0x513d('0x26'),'content':_0x3e0f43(this[_0x513d('0xe')][_0x513d('0x2f')],_0x513d('0xc'))};}}[_0x513d('0x36')](_0x4d02f0,_0x1f3908){const _0x6321d5=this['editor'][_0x513d('0x7')]['get']('TrackChangesEditing');for(const _0x48653f of _0x6321d5[_0x513d('0xd')]({'skipNotAttached':!0x0})){const _0x38c9b8=_0x48653f['getContainedElement']();if(_0x48653f[_0x513d('0x28')]===_0x1f3908&&_0x38c9b8===_0x4d02f0)return _0x48653f;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16d7=['afterInit','insertTemplate','TrackChangesEditing','plugins','editor','enableCommand'];(function(_0x143b3d,_0x16d768){const _0x4593a6=function(_0x2ecb8e){while(--_0x2ecb8e){_0x143b3d['push'](_0x143b3d['shift']());}};_0x4593a6(++_0x16d768);}(_0x16d7,0xb9));const _0x4593=function(_0x143b3d,_0x16d768){_0x143b3d=_0x143b3d-0x0;let _0x4593a6=_0x16d7[_0x143b3d];return _0x4593a6;};import{Plugin as _0x2783c1}from'ckeditor5/src/core';export default class bt extends _0x2783c1{[_0x4593('0x1')](){const _0x1dc5f6=this[_0x4593('0x5')];_0x1dc5f6[_0x4593('0x4')]['has']('Template')&&_0x1dc5f6[_0x4593('0x4')]['get'](_0x4593('0x3'))[_0x4593('0x0')](_0x4593('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3804=['createRange','TrackChangesEditing','isTouching','registerPostFixer','start','model','get','afterInit','forward','_splitMarkerName','end','isEqual','nodeBefore','suggestion','element','title-content','getNearestSelectionRange','newRange','document','Title','editor','has','getChangedMarkers','locale','schema','plugins','_descriptionFactory','from','updateMarker'];(function(_0x1d28f9,_0x380426){const _0x424e3e=function(_0x55948e){while(--_0x55948e){_0x1d28f9['push'](_0x1d28f9['shift']());}};_0x424e3e(++_0x380426);}(_0x3804,0xde));const _0x424e=function(_0x1d28f9,_0x380426){_0x1d28f9=_0x1d28f9-0x0;let _0x424e3e=_0x3804[_0x1d28f9];return _0x424e3e;};import{Plugin as _0x434cf8}from'ckeditor5/src/core';import{getTranslation as _0x212563}from'../utils/common-translations';export default class It extends _0x434cf8{[_0x424e('0x11')](){const _0x4abc4d=this[_0x424e('0x1')];if(!_0x4abc4d[_0x424e('0x6')][_0x424e('0x2')](_0x424e('0x0')))return;const _0x20b653=_0x4abc4d[_0x424e('0x6')][_0x424e('0x10')](_0x424e('0xb'));_0x20b653[_0x424e('0x7')]['registerElementLabel']('title-content',()=>_0x212563(_0x4abc4d[_0x424e('0x4')],'ELEMENT_TITLE')),_0x4abc4d[_0x424e('0xf')][_0x424e('0x1c')][_0x424e('0xd')](_0x4af016=>{let _0x4bada5=!0x1;const _0xd9e4f4=Array[_0x424e('0x8')](_0x4abc4d[_0x424e('0xf')]['document']['differ'][_0x424e('0x3')]());for(const {name:_0x258b9f,data:_0x4b68e5}of _0xd9e4f4){const {group:_0x45697e}=_0x20b653[_0x424e('0x13')](_0x258b9f);if(_0x424e('0x17')!==_0x45697e||!_0x4b68e5[_0x424e('0x1b')])continue;const _0x1e12e3=_0x4b68e5[_0x424e('0x1b')],_0x8c47e6=_0x1e12e3[_0x424e('0x14')][_0x424e('0x16')];if(!_0x8c47e6||!_0x8c47e6['is'](_0x424e('0x18'),_0x424e('0x19')))continue;if(!_0x1e12e3[_0x424e('0xe')][_0x424e('0xc')](_0x1e12e3['end']))continue;const _0x51eccd=_0x4abc4d[_0x424e('0xf')][_0x424e('0x5')][_0x424e('0x1a')](_0x1e12e3[_0x424e('0x14')],_0x424e('0x12'));if(_0x51eccd&&_0x51eccd['isCollapsed']){const _0x462ad=_0x4af016[_0x424e('0xa')](_0x1e12e3[_0x424e('0xe')],_0x51eccd[_0x424e('0xe')]);_0x462ad[_0x424e('0x15')](_0x1e12e3)||(_0x4af016[_0x424e('0x9')](_0x258b9f,{'range':_0x462ad}),_0x4bada5=!0x0);}_0x4bada5||(_0x4af016['removeMarker'](_0x258b9f),_0x4bada5=!0x0);}return _0x4bada5;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ac0=['undo','plugins','has','enableCommand','get'];(function(_0x26db62,_0x1ac010){const _0x5effeb=function(_0x498fe4){while(--_0x498fe4){_0x26db62['push'](_0x26db62['shift']());}};_0x5effeb(++_0x1ac010);}(_0x1ac0,0x107));const _0x5eff=function(_0x26db62,_0x1ac010){_0x26db62=_0x26db62-0x0;let _0x5effeb=_0x1ac0[_0x26db62];return _0x5effeb;};import{Plugin as _0x2a2a36}from'ckeditor5/src/core';export default class vt extends _0x2a2a36{['afterInit'](){const _0x12c0c9=this['editor'],_0x2eda6c=_0x12c0c9[_0x5eff('0x3')][_0x5eff('0x1')]('TrackChangesEditing');_0x12c0c9[_0x5eff('0x3')][_0x5eff('0x4')]('UndoEditing')&&(_0x2eda6c['enableCommand'](_0x5eff('0x2')),_0x2eda6c[_0x5eff('0x0')]('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd4a1=['TrackChangesEditing','elementEnd','start','includes','writer','consumable','parent','activeMarkers','item','ck-suggestion-marker--active','createUIElement','markerRange','nextSibling','previousPosition','addClass','isLimit','toViewPosition','getAttribute','hasAttribute','isAtEnd','ck-suggestion-marker-','type','markerName','element','mapper','plugins','addHighlight','insert','listItem','isContent','getCustomProperty','getItems','name','get','bindElementToMarker'];(function(_0x4a367b,_0xd4a1ae){const _0x62e0a3=function(_0xad913c){while(--_0xad913c){_0x4a367b['push'](_0x4a367b['shift']());}};_0x62e0a3(++_0xd4a1ae);}(_0xd4a1,0x19c));const _0x62e0=function(_0x4a367b,_0xd4a1ae){_0x4a367b=_0x4a367b-0x0;let _0x62e0a3=_0xd4a1[_0x4a367b];return _0x62e0a3;};export function getRangesWithAttribute(_0x36d55d,_0x547561,_0x54c129){const _0x3f597e=[];for(const _0x1115fc of _0x547561[_0x62e0('0x4')]())_0x1115fc[_0x62e0('0x1a')](_0x36d55d)&&_0x3f597e['push'](_0x54c129['createRangeOn'](_0x1115fc));return _0x3f597e;}export function getElementsAffectedByListItemRename(_0x326f8d){const _0x4134f4=[];if(_0x326f8d['is'](_0x62e0('0x1f'),_0x62e0('0x1'))){let _0xe0a9ba=_0x326f8d[_0x62e0('0x14')];for(;_0xe0a9ba&&_0xe0a9ba['is'](_0x62e0('0x1f'),_0x62e0('0x1'))&&_0xe0a9ba[_0x62e0('0x19')]('listIndent')>0x0;)_0x4134f4['push'](_0xe0a9ba),_0xe0a9ba=_0xe0a9ba[_0x62e0('0x14')];}return _0x4134f4;}export function downcastSplitMergeMarker(_0x387eb9,_0x5889ad,{showActiveMarker:_0x525e83=!0x0}={}){const _0x3233bd=_0x387eb9[_0x62e0('0x21')][_0x62e0('0x6')](_0x62e0('0x8'));return(_0x1e0eba,_0x51f08c,_0x5d0f44)=>{if(!_0x5d0f44[_0x62e0('0xd')]['test'](_0x51f08c[_0x62e0('0x13')],_0x1e0eba[_0x62e0('0x5')]))return;const _0x18ebb3=_0x51f08c['markerRange']['getWalker'](),_0x3e6c0d=_0x51f08c[_0x62e0('0x13')][_0x62e0('0xa')],_0x342e49=_0x387eb9['model']['schema'];let _0x28d9e9=null,_0x2b237a=null,_0x3a5b8c=!0x1,_0x4a5984=!0x1;for(const _0x202a56 of _0x18ebb3){const _0x117e07=_0x202a56[_0x62e0('0x10')];_0x3a5b8c=_0x3a5b8c||_0x342e49[_0x62e0('0x2')](_0x117e07);const _0x1c5b4c=_0x5d0f44[_0x62e0('0x20')]['toViewElement'](_0x117e07);if(_0x1c5b4c&&_0x1c5b4c[_0x62e0('0x3')](_0x62e0('0x22')))return;_0x62e0('0x9')==_0x202a56[_0x62e0('0x1d')]&&(_0x342e49['isBlock'](_0x117e07)&&!_0x342e49[_0x62e0('0x17')](_0x117e07)&&(_0x117e07[_0x62e0('0x14')]||_0x3e6c0d[_0x62e0('0x1b')]?_0x28d9e9&&_0x28d9e9[_0x62e0('0xe')]==_0x117e07||(_0x28d9e9=_0x117e07,_0x2f4278(_0x202a56['previousPosition']),_0x4a5984=!0x0):_0x2b237a=_0x2b237a||_0x202a56[_0x62e0('0x15')]));}function _0x2f4278(_0x30ccea){const _0x222e27=_0x5d0f44[_0x62e0('0xc')][_0x62e0('0x12')]('span',{'class':_0x62e0('0x1c')+_0x5889ad}),_0x4e59b5=_0x5d0f44['mapper'][_0x62e0('0x18')](_0x30ccea);_0x525e83&&_0x3233bd[_0x62e0('0xf')][_0x62e0('0xb')](_0x51f08c[_0x62e0('0x1e')])&&_0x5d0f44[_0x62e0('0xc')][_0x62e0('0x16')](_0x62e0('0x11'),_0x222e27),_0x5d0f44[_0x62e0('0xc')][_0x62e0('0x0')](_0x4e59b5,_0x222e27),_0x5d0f44[_0x62e0('0x20')][_0x62e0('0x7')](_0x222e27,_0x51f08c[_0x62e0('0x1e')]);}_0x3a5b8c||_0x4a5984||!_0x2b237a||_0x2f4278(_0x2b237a);};}
|