@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231127.0 → 0.0.0-nightly-20231128.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/imagestyle.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 _0x4c69=['forceDefaultExecution','cells','deletionRanges','get','isEmpty','editingDowncast','markMultiRangeInsertion','insert','tableCell','some','insertion','elementToElement','suggestionLoaded','markerToHighlight','columnInsertionIndexes','markerName','filter','suggestion','activeMarkers','dataDowncast','getAttributes','attributes','push','getColumnIndexes','columns','createRangeIn','getSuggestion','from','registerCustomCallback','_createdBatches','keys','for','batch','last','first','removeMarkers','remove','tableCellSuggestion','next','markMultiRangeDeletion','conversion','tablePaste','type','high','Users','start','setAttributes','paragraph','discard','isInContent','commands','markers','TrackChangesEditing','insertColumns','registerPostFixer','find','deletion','position','value','column','length','table','end','fill','getChild','model','nextSibling','getSuggestionCallback','includes','_suggestionFactory','rowInsertionIndexes','register','_isForcedDefaultExecutionBlock','element','tablePasteRow','set','redo','getChangedMarkers','schema','tableCellVerticalAlignment','updateMarker','tableCellHorizontalAlignment','showSuggestionHighlights','wrap','entries','return','document','tablePasteCell','TableClipboard','documentSelection','getMarkers','oldRange','change','nodeAfter','selection','stop','low','tableCellBorderColor','getAllAdjacentSuggestions','_replaceTableSlotCell','root','getContainedElement','containsRange','getSuggestions','map','view','$graveyard','registerDescriptionCallback','previous','getChanges','afterInit','previousSibling','plugins','join','removeRows','options','ck-suggestion-marker--active','tableCellPadding','suggestion-td','getRows','createTableWalker','content','rows','markMultiRangeBlockFormat','listenTo','newRange','getChildren','editing','removeColumns','requires','_getCoordsForCells','createRangeOn','TableUtils','suggestionUnloaded','reduce','tablePasteChainId','getRange','every','cell','markerAttributes','setAttribute','add','has','getRanges','author','differ','*Replace\x20table\x20cells*','columnInsertionRanges','fromEntries','getSelectionAffectedTableCells','getTableIfOnlyTableInContent','getColumns','insertRows','insertContent','rowInsertionRanges','findAncestor','suggestion:formatBlock:tablePasteCell','endRow','isEqual','locale','formatBlock','endColumn','accept','createElement','move','_tablePostFixingSubtypes','name','subType','startsWith','tablePasteColumn','editor'];(function(_0x8a5474,_0x4c6937){const _0x4f9912=function(_0x77c3a8){while(--_0x77c3a8){_0x8a5474['push'](_0x8a5474['shift']());}};_0x4f9912(++_0x4c6937);}(_0x4c69,0x88));const _0x4f99=function(_0x8a5474,_0x4c6937){_0x8a5474=_0x8a5474-0x0;let _0x4f9912=_0x4c69[_0x8a5474];return _0x4f9912;};import{getTranslation as _0x4d2670}from'../utils/common-translations';import{Plugin as _0x1620c4}from'ckeditor5/src/core';import{uid as _0x512848,priorities as _0x166a5d}from'ckeditor5/src/utils';import _0x59f70a from'./table';const le=['tableCellBorderWidth',_0x4f99('0x84'),'tableCellBorderStyle',_0x4f99('0x74'),_0x4f99('0x72'),'tableCellBackgroundColor',_0x4f99('0x98')],ae=Object[_0x4f99('0xc')](le[_0x4f99('0x8b')](_0x4ccb0a=>[_0x4ccb0a,null]));export default class At extends _0x1620c4{static get[_0x4f99('0xa4')](){return[_0x59f70a];}[_0x4f99('0x91')](){const _0xa1f1f1=this[_0x4f99('0x22')];if(!_0xa1f1f1['plugins'][_0x4f99('0x6')]('TableClipboard'))return;const _0xd25c8=_0xa1f1f1[_0x4f99('0x93')][_0x4f99('0x26')](_0x4f99('0x57')),_0x57fafb=_0xa1f1f1['plugins'][_0x4f99('0x26')](_0x4f99('0xa7')),_0x1f03cf=_0xa1f1f1[_0x4f99('0x93')]['get'](_0x59f70a),_0x39288d=_0xa1f1f1[_0x4f99('0x93')][_0x4f99('0x26')]('TableClipboard');_0x1f03cf[_0x4f99('0x1d')][_0x4f99('0x39')](_0x4f99('0x6d'),_0x4f99('0x21')),_0xa1f1f1['model'][_0x4f99('0x71')][_0x4f99('0x6a')](_0x4f99('0x48'),{'allowIn':_0x4f99('0x2b'),'allowContentOf':_0x4f99('0x2b'),'isLimit':!0x0}),_0xa1f1f1[_0x4f99('0x4b')][_0x4f99('0x2e')]({'model':_0x4f99('0x48'),'view':'suggestion-td'});let _0x4f1d9e=null;_0xa1f1f1[_0x4f99('0x64')]['on'](_0x4f99('0x11'),(_0x17d297,_0xcba97f)=>{const [_0x33e2e9,_0x2225f7]=_0xcba97f,_0x4c1a93=_0xcba97f[_0xcba97f['length']-0x1];_0x4c1a93&&_0x4c1a93[_0x4f99('0x23')]||_0xd25c8[_0x4f99('0x6b')]||this[_0x4f99('0x22')][_0x4f99('0x55')][_0x4f99('0x26')]('trackChanges')[_0x4f99('0x5d')]&&function(_0x5447e6,_0x1bb5e0,_0x433549,_0x25d341,_0x4b7944){if(_0x1bb5e0&&!_0x1bb5e0['is'](_0x4f99('0x7c')))return!0x1;const _0x55bd33=_0x4b7944[_0x4f99('0xe')](_0x5447e6,_0x433549);if(!_0x55bd33||!fe(_0x55bd33,void 0x0,_0x25d341))return!0x1;const _0x482522=_0x25d341[_0x4f99('0xd')](_0x433549['document'][_0x4f99('0x81')]);if(!_0x482522[_0x4f99('0x5f')])return!0x1;const _0x123a88=_0x482522[0x0]['findAncestor']('table'),_0x466d1f=_0x25d341['getRowIndexes'](_0x482522),_0x4d4840=_0x25d341[_0x4f99('0x3a')](_0x482522),_0x38cf16={'startRow':_0x466d1f[_0x4f99('0x45')],'endRow':_0x466d1f[_0x4f99('0x44')],'startColumn':_0x4d4840[_0x4f99('0x45')],'endColumn':_0x4d4840[_0x4f99('0x44')]};return 0x1==_0x482522[_0x4f99('0x5f')]&&(_0x38cf16[_0x4f99('0x15')]+=_0x25d341[_0x4f99('0x9a')](_0x55bd33)-0x1,_0x38cf16[_0x4f99('0x19')]+=_0x25d341[_0x4f99('0xf')](_0x55bd33)-0x1),fe(_0x123a88,_0x38cf16,_0x25d341);}(_0x33e2e9,_0x2225f7,_0xa1f1f1['model'],_0x57fafb,_0x39288d)&&(_0x17d297[_0x4f99('0x82')](),_0x4f1d9e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x7f')](()=>{_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x11')](_0xcba97f[0x0],_0xcba97f[0x1],_0xcba97f[0x2],{'forceDefaultExecution':!0x0});const _0x323e6f=_0x512848(),{rowInsertionRanges:_0x5832cb,columnInsertionRanges:_0x5a1fec,insertionRanges:_0xef8f52,deletionRanges:_0x2630df,cells:_0x4e8e65}=_0x4f1d9e;_0x5832cb['length']&&_0xd25c8[_0x4f99('0x29')](_0x5832cb,_0x4f99('0x6d'),{'tablePasteChainId':_0x323e6f}),_0x5a1fec[_0x4f99('0x5f')]&&_0xd25c8['markMultiRangeInsertion'](_0x5a1fec,_0x4f99('0x21'),{'tablePasteChainId':_0x323e6f}),_0xef8f52[_0x4f99('0x5f')]&&_0xd25c8['markMultiRangeInsertion'](_0xef8f52,'tablePaste',{'tablePasteChainId':_0x323e6f,'skipNestingCheck':!0x0}),_0x2630df[_0x4f99('0x5f')]&&_0xd25c8[_0x4f99('0x4a')](_0x2630df,'tablePaste',{'tablePasteChainId':_0x323e6f,'skipNestingCheck':!0x0});const _0x65a75b=_0xd25c8[_0x4f99('0x9e')](_0x4e8e65[_0x4f99('0x8b')](({element:_0x1ba09e})=>_0x1ba09e),{'formatGroupId':_0x512848()},[],'tablePasteCell',{'tablePasteChainId':_0x323e6f});if(_0x65a75b){const _0x34bb9b=_0x65a75b[_0x4f99('0x7d')](),_0x4c68e2=[];for(const {element:_0x2b88e7,attributes:_0x15654f}of _0x4e8e65){if(!_0x15654f)continue;const _0xb33373=_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0xa6')](_0x2b88e7),_0x4ea5ed=_0x34bb9b[_0x4f99('0x5a')](_0xe67f70=>_0xe67f70['getRange']()[_0x4f99('0x16')](_0xb33373));_0x4ea5ed&&_0x4c68e2[_0x4f99('0x39')]([_0x4ea5ed[_0x4f99('0x1e')],_0x15654f]);}_0x4c68e2[_0x4f99('0x5f')]&&_0x65a75b[_0x4f99('0x4')](_0x4f99('0x3'),Object['fromEntries'](_0x4c68e2));}_0x4f1d9e=null;}));},{'priority':_0x166a5d[_0x4f99('0x4e')]+0xa}),_0xa1f1f1[_0x4f99('0x93')][_0x4f99('0x26')](_0x4f99('0x7b'))['on'](_0x4f99('0x86'),(_0x5c5009,_0x3aa0ac)=>{const [_0x30a08c,_0x2ff3e5,,_0x51c233]=_0x3aa0ac;if(!_0x4f1d9e)return;_0x5c5009['stop']();const _0x3b374e=_0x30a08c[_0x4f99('0x2')],_0x236ca=_0x2ff3e5,_0x2a4c94=ce(_0x3b374e),_0x1a4845=ce(_0x236ca);_0x5c5009[_0x4f99('0x78')]=_0x3b374e;let _0x11855b=null,_0x4a43fd=null;if(_0x1a4845||_0x2a4c94){if(_0x2a4c94&&!_0x1a4845){_0x51c233[_0x4f99('0x47')](_0x3b374e[_0x4f99('0x63')](0x0));for(const _0xd0c8c9 of Array[_0x4f99('0x3e')](_0x236ca[_0x4f99('0xa1')]()))_0x51c233[_0x4f99('0x2a')](_0xd0c8c9,_0x3b374e,_0x4f99('0x61'));const _0x3fd893=_0x4f1d9e['rowInsertionIndexes']['includes'](_0x30a08c['row']),_0x1d4291=_0x4f1d9e[_0x4f99('0x31')][_0x4f99('0x67')](_0x30a08c[_0x4f99('0x5e')]);_0x3fd893||_0x1d4291||(_0x11855b=_0x51c233[_0x4f99('0x3c')](_0x3b374e));}else _0x1a4845&&!_0x2a4c94&&(_0x4a43fd=_0x51c233['createRangeIn'](_0x3b374e));}else{const _0x2cae53=_0x51c233['createElement']('tableCellSuggestion'),_0x58a82e=_0x51c233[_0x4f99('0x1b')](_0x4f99('0x48'));_0x51c233[_0x4f99('0x76')](_0x51c233[_0x4f99('0x3c')](_0x3b374e),_0x58a82e),_0x51c233['insert'](_0x2cae53,_0x3b374e,0x0);for(const _0x55c9ec of Array[_0x4f99('0x3e')](_0x236ca[_0x4f99('0xa1')]()))_0x51c233[_0x4f99('0x2a')](_0x55c9ec,_0x2cae53,'end');_0x11855b=_0x51c233[_0x4f99('0xa6')](_0x2cae53),_0x4a43fd=_0x51c233[_0x4f99('0xa6')](_0x58a82e);}const _0x10932b=Array[_0x4f99('0x3e')](_0x236ca[_0x4f99('0x37')]())['filter'](([_0x3a23b7])=>le[_0x4f99('0x67')](_0x3a23b7));_0x4f1d9e[_0x4f99('0x24')][_0x4f99('0x39')]({'element':_0x3b374e,'attributes':_0x10932b[_0x4f99('0x5f')]?Object['fromEntries'](_0x10932b):null}),_0x11855b&&_0x4f1d9e['insertionRanges'][_0x4f99('0x39')](_0x11855b),_0x4a43fd&&_0x4f1d9e[_0x4f99('0x25')]['push'](_0x4a43fd);},{'priority':'high'}),_0x57fafb['on'](_0x4f99('0x58'),(_0x19ebb6,_0x4aa01b)=>{const [_0x555c79,_0x52193b={}]=_0x4aa01b;if(!_0x4f1d9e)return;const _0x9f2633=_0x52193b['at']||0x0,_0x4fb3d0=_0x52193b[_0x4f99('0x3b')]||0x1;_0x4f1d9e[_0x4f99('0x31')]=new Array(_0x4fb3d0)['fill'](_0x9f2633)[_0x4f99('0x8b')]((_0x31cce7,_0x48f8d4)=>_0x31cce7+_0x48f8d4);for(const {cell:_0x42235e}of _0x57fafb['createTableWalker'](_0x555c79,{'startColumn':_0x9f2633,'endColumn':_0x9f2633+_0x4fb3d0-0x1}))_0x4f1d9e[_0x4f99('0xb')][_0x4f99('0x39')](_0xa1f1f1[_0x4f99('0x64')]['createRangeOn'](_0x42235e));},{'priority':_0x4f99('0x83')}),_0x57fafb['on'](_0x4f99('0x10'),(_0x3ee51f,_0x12074)=>{const [_0x204e59,_0x24410b={}]=_0x12074;if(!_0x4f1d9e)return;const _0x2d0524=_0x24410b['at']||0x0,_0x4564f7=_0x24410b[_0x4f99('0x9d')]||0x1;_0x4f1d9e[_0x4f99('0x69')]=new Array(_0x4564f7)[_0x4f99('0x62')](_0x2d0524)[_0x4f99('0x8b')]((_0x23615,_0x2a5b7d)=>_0x23615+_0x2a5b7d);for(const {cell:_0x35cdde}of _0x57fafb[_0x4f99('0x9b')](_0x204e59,{'startRow':_0x2d0524,'endRow':_0x2d0524+_0x4564f7-0x1}))_0x4f1d9e[_0x4f99('0x12')]['push'](_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0xa6')](_0x35cdde));},{'priority':'low'}),_0xd25c8['_descriptionFactory'][_0x4f99('0x8e')](_0x120b62=>{if(_0x120b62[_0x4f99('0x1f')]&&_0x120b62[_0x4f99('0x1f')][_0x4f99('0x20')](_0x4f99('0x4c')))return _0x120b62[_0x4f99('0x8f')]?{}:{'type':_0x4f99('0x2d'),'content':_0x4d2670(_0xa1f1f1[_0x4f99('0x17')],_0x4f99('0xa'))};});const _0x39b92f=()=>!0x1;for(const _0x3f468a of[_0x4f99('0x4c'),_0x4f99('0x21'),_0x4f99('0x6d'),_0x4f99('0x7a')])_0xd25c8['_suggestionFactory']['registerCustomCallback']('insertion',_0x3f468a,_0x4f99('0x94'),_0x39b92f),_0xd25c8[_0x4f99('0x68')][_0x4f99('0x3f')](_0x4f99('0x5b'),_0x3f468a,_0x4f99('0x94'),_0x39b92f),_0xd25c8[_0x4f99('0x68')][_0x4f99('0x3f')]('formatBlock',_0x3f468a,_0x4f99('0x94'),_0x39b92f);_0xd25c8[_0x4f99('0x68')][_0x4f99('0x3f')](_0x4f99('0x18'),_0x4f99('0x7a'),_0x4f99('0x53'),_0x39b92f),_0xd25c8['_suggestionFactory'][_0x4f99('0x3f')](_0x4f99('0x18'),_0x4f99('0x7a'),'accept',(_0x40fc4c,_0x533d4d,_0x540fb6)=>{const _0x100de4=_0x40fc4c[_0x4f99('0x8b')](_0x48675a=>_0x48675a[_0x4f99('0x88')]())[_0x4f99('0x33')](_0x29664f=>_0x29664f),_0x43aa8e=new Map(_0x100de4['map'](_0x3eefea=>[_0x3eefea,null]));if(_0x4f1d9e)for(const {element:_0x145fb2,attributes:_0x337220}of _0x4f1d9e[_0x4f99('0x24')])_0x337220&&_0x43aa8e[_0x4f99('0x6e')](_0x145fb2,_0x337220);else{if(_0x540fb6&&_0x540fb6['markerAttributes'])for(const [_0x45b4f9,_0x522d14]of Object[_0x4f99('0x77')](_0x540fb6['markerAttributes'])){const _0x4113cf=_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x56')]['get'](_0x45b4f9),_0x17a299=_0x4113cf?_0x4113cf[_0x4f99('0x0')]()['getContainedElement']():null;_0x17a299&&_0x43aa8e[_0x4f99('0x6e')](_0x17a299,_0x522d14);}}_0xa1f1f1['model']['change'](_0x18e1d5=>{for(const [_0x3520b3,_0x360a9f]of _0x43aa8e)_0x18e1d5[_0x4f99('0x51')]({...ae,..._0x360a9f},_0x3520b3);});});const _0x32421e=(_0x2f45c0,_0xf2078f)=>{_0xd25c8[_0x4f99('0x68')][_0x4f99('0x3f')](_0x2f45c0,_0x4f99('0x4c'),_0xf2078f,(_0x3a3c54,_0x28b864,_0x258871)=>{_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x7f')](_0x1bc6ba=>{const _0x2add97=[];for(const _0x3f36ab of _0x3a3c54){const _0x216d38=_0x3f36ab[_0x4f99('0x50')][_0x4f99('0x80')];_0x216d38['is']('element',_0x4f99('0x48'))&&_0x2add97[_0x4f99('0x39')](_0x216d38);}_0xd25c8[_0x4f99('0x68')][_0x4f99('0x66')](_0x2f45c0,null,_0xf2078f)(_0x3a3c54,_0x28b864,_0x258871);for(const _0x1fd7cc of _0x2add97)_0x4f99('0x8d')!=_0x1fd7cc[_0x4f99('0x87')]['rootName']&&_0x1bc6ba['unwrap'](_0x1fd7cc);});});};_0x32421e(_0x4f99('0x2d'),_0x4f99('0x1a')),_0x32421e(_0x4f99('0x2d'),_0x4f99('0x53')),_0x32421e(_0x4f99('0x5b'),'accept'),_0x32421e(_0x4f99('0x5b'),_0x4f99('0x53')),_0xd25c8[_0x4f99('0x68')]['registerCustomCallback'](_0x4f99('0x2d'),_0x4f99('0x6d'),_0x4f99('0x53'),_0x32de24=>{const _0x509b05=_0x32de24[_0x4f99('0x8b')](_0x5054c8=>_0x5054c8[_0x4f99('0x88')]()),_0x3c32dd=_0x509b05[0x0][_0x4f99('0x13')](_0x4f99('0x60')),{minRow:_0x532477,maxRow:_0x43f22a}=_0x1f03cf[_0x4f99('0xa5')](_0x509b05);_0x57fafb[_0x4f99('0x95')](_0x3c32dd,{'at':_0x532477,'rows':_0x43f22a-_0x532477+0x1});}),_0xd25c8[_0x4f99('0x68')][_0x4f99('0x3f')](_0x4f99('0x2d'),_0x4f99('0x21'),_0x4f99('0x53'),_0x2d1a29=>{const _0x168a9d=_0x2d1a29[_0x4f99('0x8b')](_0x39ec09=>_0x39ec09[_0x4f99('0x88')]()),_0x2e14ad=_0x168a9d[0x0]['findAncestor'](_0x4f99('0x60')),{minColumn:_0x2dce6d,maxColumn:_0xd310b2}=_0x1f03cf[_0x4f99('0xa5')](_0x168a9d);_0x57fafb[_0x4f99('0xa3')](_0x2e14ad,{'at':_0x2dce6d,'columns':_0xd310b2-_0x2dce6d+0x1});});const _0x4c5d2a=(_0x42a23e,_0x4c8f63)=>{if(!_0x4c8f63[_0x4f99('0x1f')]||!_0x4c8f63['subType']['startsWith']('tablePaste'))return;const _0x4fc890=_0x4c8f63[_0x4f99('0x38')]['tablePasteChainId'],_0x3d0608=_0xd25c8[_0x4f99('0x8a')]()[_0x4f99('0x33')](_0x28a021=>_0x28a021[_0x4f99('0x54')]&&_0x28a021[_0x4f99('0x38')]&&_0x28a021[_0x4f99('0x38')][_0x4f99('0xaa')]==_0x4fc890);_0x3d0608['length']&&_0x4c8f63[_0x4f99('0x85')]()['length']!=_0x3d0608[_0x4f99('0x5f')]&&_0x3d0608[_0x4f99('0xa9')]((_0xb65b0f,_0x5e2c0f)=>(_0xb65b0f[_0x4f99('0x49')]=_0x5e2c0f,_0x5e2c0f[_0x4f99('0x8f')]=_0xb65b0f,_0x5e2c0f));};function _0x998cbe(_0x249994,_0x28d5e7=!0x0){const {id:_0x2474e7}=_0xd25c8['_splitMarkerName'](_0x249994[_0x4f99('0x32')]),_0x504da3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5f5230=_0xd25c8[_0x4f99('0x35')][_0x4f99('0x67')](_0x249994[_0x4f99('0x32')]);return _0x5f5230&&_0x504da3[_0x4f99('0x39')](_0x4f99('0x97')),{'classes':_0x504da3,'attributes':{'data-suggestion':_0x2474e7},'priority':_0x5f5230&&_0x28d5e7?0xbc2:0xbb8};}_0xd25c8['on'](_0x4f99('0x2f'),_0x4c5d2a,{'priority':_0x4f99('0x4e')}),_0xd25c8['on'](_0x4f99('0xa8'),_0x4c5d2a,{'priority':_0x4f99('0x4e')}),_0xa1f1f1['model'][_0x4f99('0x79')][_0x4f99('0x59')](()=>{let _0x1b7b63=!0x1;const _0x3948d1=Array[_0x4f99('0x3e')](_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x79')]['differ'][_0x4f99('0x70')]());for(const {name:_0x209206,data:_0x3b67b1}of _0x3948d1){const {group:_0x431d22,type:_0x797235,id:_0x3e2236}=_0xd25c8['_splitMarkerName'](_0x209206);if(_0x4f99('0x34')!=_0x431d22||_0x4f99('0x5b')!=_0x797235||_0x3b67b1[_0x4f99('0x7e')])continue;if(!_0xd25c8['hasSuggestion'](_0x3e2236))continue;const _0x18df34=_0xd25c8[_0x4f99('0x3d')](_0x3e2236)[_0x4f99('0x7')](),_0x456b84=_0xa1f1f1[_0x4f99('0x93')][_0x4f99('0x26')](_0x4f99('0x4f'))['me'];for(const _0x96f06b of _0xd25c8[_0x4f99('0x8a')]()){if(!_0x96f06b[_0x4f99('0x54')]||_0x96f06b[_0x4f99('0x8')]!=_0x456b84)continue;if(_0x4f99('0x18')!=_0x96f06b[_0x4f99('0x4d')]||_0x4f99('0x7a')!=_0x96f06b[_0x4f99('0x1f')])continue;if(_0x96f06b[_0x4f99('0x7')]()[_0x4f99('0x1')](_0xcf47b6=>_0x18df34[_0x4f99('0x2c')](_0x5d615e=>_0x5d615e[_0x4f99('0x89')](_0xcf47b6,!0x0))))for(const _0x27ce09 of _0x96f06b[_0x4f99('0x85')]())_0x27ce09[_0x4f99('0x54')]&&(_0x27ce09[_0x4f99('0x53')](),_0x1b7b63=!0x0);}}return _0x1b7b63;}),_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x79')]['registerPostFixer'](_0xdb295c=>{const _0x2560d6=_0xa1f1f1[_0x4f99('0x55')][_0x4f99('0x26')](_0x4f99('0x6f'));if(!_0x2560d6||!_0x2560d6[_0x4f99('0x40')][_0x4f99('0x6')](_0xdb295c[_0x4f99('0x43')]))return!0x1;let _0x1e0662=!0x1;const _0x463ac6=_0xa1f1f1[_0x4f99('0x93')][_0x4f99('0x26')](_0x4f99('0x4f'))['me'],_0x4fea66=_0xa1f1f1['model']['document'][_0x4f99('0x9')][_0x4f99('0x90')](),_0x260dcd=Array[_0x4f99('0x3e')](_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x79')][_0x4f99('0x9')][_0x4f99('0x70')]())['filter'](({name:_0x3ad1a5,data:_0x2b242a})=>{const {group:_0x59db0f,subType:_0x2ea739,authorId:_0x3470f7}=_0xd25c8['_splitMarkerName'](_0x3ad1a5);return _0x4f99('0x34')==_0x59db0f&&_0x4f99('0x4c')==_0x2ea739&&_0x3470f7==_0x463ac6['id']&&!_0x2b242a['oldRange'];});for(const _0x1ebdc6 of _0x4fea66){if(_0x4f99('0x2a')!=_0x1ebdc6['type']||_0x4f99('0x48')!=_0x1ebdc6[_0x4f99('0x1e')]||0x1!=_0x1ebdc6[_0x4f99('0x5f')])continue;const _0x3dc0b4=_0xdb295c['createRange'](_0x1ebdc6[_0x4f99('0x5c')],_0x1ebdc6[_0x4f99('0x5c')]['getShiftedBy'](0x1));if(!_0x260dcd[_0x4f99('0x5a')](({data:_0x1b240f})=>_0x1b240f[_0x4f99('0xa0')][_0x4f99('0x16')](_0x3dc0b4)))for(const {name:_0xc781e7,data:_0x29a2b5}of _0x260dcd)if(_0x3dc0b4['containsRange'](_0x29a2b5[_0x4f99('0xa0')])){_0xdb295c[_0x4f99('0x73')](_0xc781e7,{'range':_0x3dc0b4}),_0x1e0662=!0x0;break;}}return _0x1e0662;}),_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x79')][_0x4f99('0x59')](_0x23f611=>{let _0x2aceec=!0x1;const _0x28bb4f=_0xa1f1f1['plugins'][_0x4f99('0x26')](_0x4f99('0x4f'))['me'],_0x5f3742=_0xd25c8[_0x4f99('0x8a')]()[_0x4f99('0x33')](_0x23dc35=>_0x23dc35[_0x4f99('0x54')]&&_0x23dc35['author']==_0x28bb4f),_0x5b42e8=new Set(),_0x38d924=new Set();for(const _0x25c49c of _0x5f3742)if('tablePaste'==_0x25c49c[_0x4f99('0x1f')])for(const _0x43f912 of _0x25c49c[_0x4f99('0x7d')]()){const _0x6d5ac8=_0x43f912[_0x4f99('0x0')]()['getContainedElement']();if(_0x6d5ac8){if(_0x6d5ac8['is'](_0x4f99('0x6c'),_0x4f99('0x48'))&&ce(_0x6d5ac8)){_0x25c49c['removeMarker'](_0x43f912[_0x4f99('0x1e')]),_0x5b42e8['add'](_0x6d5ac8),_0x2aceec=!0x0;const _0x2249ef=_0x6d5ac8[_0x4f99('0x65')],_0x152bf3=_0x6d5ac8[_0x4f99('0x92')],_0x2a03df=_0x2249ef&&_0x2249ef['is'](_0x4f99('0x6c'),_0x4f99('0x48')),_0x5e949f=_0x152bf3&&_0x152bf3['is'](_0x4f99('0x6c'),_0x4f99('0x48'));_0x2a03df&&!_0x5b42e8[_0x4f99('0x6')](_0x2249ef)&&_0x38d924[_0x4f99('0x5')](_0x2249ef),_0x5e949f&&!_0x5b42e8['has'](_0x152bf3)&&_0x38d924[_0x4f99('0x5')](_0x152bf3);}else _0x6d5ac8['is']('element',_0x4f99('0x52'))&&_0x6d5ac8[_0x4f99('0x27')]&&(_0x25c49c['removeMarker'](_0x43f912[_0x4f99('0x1e')]),_0x2aceec=!0x0);}}else{if(_0x4f99('0x7a')==_0x25c49c[_0x4f99('0x1f')]){if(!_0x25c49c[_0x4f99('0x38')]||!_0x25c49c[_0x4f99('0x38')][_0x4f99('0xaa')])continue;const _0xf413b8=_0x25c49c[_0x4f99('0x38')][_0x4f99('0x3')];if(_0xf413b8&&Object[_0x4f99('0x41')](_0xf413b8)['length'])continue;const _0x304391=_0x25c49c[_0x4f99('0x38')][_0x4f99('0xaa')];let _0x2c22a4=!0x0,_0x379fc3=!0x0;for(const _0x58e180 of _0x5f3742)if(_0x58e180['subType']&&_0x58e180[_0x4f99('0x1f')][_0x4f99('0x20')](_0x4f99('0x4c'))){if(!_0x58e180['attributes'][_0x4f99('0xaa')]){_0x379fc3=!0x1;break;}if(_0x58e180['id']!=_0x25c49c['id']&&_0x58e180['attributes']['tablePasteChainId']==_0x304391){_0x2c22a4=!0x1;break;}}_0x379fc3&&_0x2c22a4&&(_0x25c49c[_0x4f99('0x46')](),_0x2aceec=!0x0);}}for(const _0x474c57 of _0x5b42e8)_0x23f611[_0x4f99('0x47')](_0x474c57);for(const _0x22b7a1 of _0x38d924)_0x23f611['unwrap'](_0x22b7a1);return _0x2aceec;}),_0xa1f1f1[_0x4f99('0x4b')]['for'](_0x4f99('0x28'))[_0x4f99('0x30')]({'model':_0x4f99('0x14'),'view':(_0x1cba60,_0x1e2528)=>_0x998cbe(_0x1cba60),'converterPriority':'high'}),_0xa1f1f1[_0x4f99('0x4b')][_0x4f99('0x42')](_0x4f99('0x36'))[_0x4f99('0x30')]({'model':_0x4f99('0x14'),'view':(_0x24852d,_0xabb78a)=>_0xabb78a[_0x4f99('0x96')][_0x4f99('0x75')]?_0x998cbe(_0x24852d,!0x1):null,'converterPriority':_0x4f99('0x4e')});const _0x170794=_0xa1f1f1[_0x4f99('0xa2')][_0x4f99('0x8c')];this[_0x4f99('0x9f')](_0x170794['document'],'clipboardOutput',(_0xdc3193,_0x2a378c)=>{const _0x57926e=[];for(const _0x7d66 of _0x170794[_0x4f99('0x3c')](_0x2a378c[_0x4f99('0x9c')])['getItems']())_0x7d66['is'](_0x4f99('0x6c'),_0x4f99('0x99'))&&_0x57926e['push'](_0x7d66);_0x170794[_0x4f99('0x7f')](_0x1b12f8=>{for(const _0x172130 of _0x57926e)_0x1b12f8[_0x4f99('0x1c')](_0x1b12f8[_0x4f99('0x3c')](_0x172130),_0x1b12f8['createPositionBefore'](_0x172130)),_0x1b12f8['remove'](_0x172130);});});}}function ce(_0x2a60c6){if(_0x2a60c6[_0x4f99('0x27')])return!0x0;const _0x4e6371=_0x2a60c6[_0x4f99('0x63')](0x0);return _0x4e6371['is'](_0x4f99('0x6c'),_0x4f99('0x52'))&&_0x4e6371[_0x4f99('0x27')];}function fe(_0xba22c7,_0x2b2571={},_0x2c4317){for(const {isAnchor:_0x538644,cellHeight:_0x367b84,cellWidth:_0x3cd1c0}of _0x2c4317[_0x4f99('0x9b')](_0xba22c7,{'includeAllSlots':!0x0,..._0x2b2571}))if(!_0x538644||0x1!=_0x367b84||0x1!=_0x3cd1c0)return!0x1;return!0x0;}
|
|
23
|
+
const _0x3074=['getSuggestions','getSuggestion','getRanges','column','wrap','editingDowncast','root','suggestion-td','insertion','previous','createRangeOn','differ','unwrap','return','requires','insertRows','_getCoordsForCells','plugins','getRows','forceDefaultExecution','*Replace\x20table\x20cells*','listenTo','fromEntries','has','model','registerPostFixer','markers','markerName','_suggestionFactory','_splitMarkerName','stop','includes','getColumnIndexes','remove','filter','getShiftedBy','findAncestor','ck-suggestion-marker--active','row','createElement','getRange','paragraph','next','nextSibling','subType','ck-suggestion-marker-insertion','every','end','suggestion','keys','_tablePostFixingSubtypes','cells','insert','_replaceTableSlotCell','tableCellBorderWidth','TableUtils','endRow','high','tablePasteColumn','isInContent','containsRange','last','columns','setAttribute','getChangedMarkers','createTableWalker','getAttributes','Users','markerToHighlight','registerCustomCallback','start','view','createPositionBefore','_isForcedDefaultExecutionBlock','deletion','clipboardOutput','nodeAfter','first','for','getAllAdjacentSuggestions','isEmpty','discard','redo','type','options','tableCell','rows','name','batch','tablePasteCell','find','selection','getChild','change','activeMarkers','move','insertColumns','map','_descriptionFactory','tablePaste','removeMarkers','getColumns','register','tableCellSuggestion','join','hasSuggestion','createRange','setAttributes','tableCellVerticalAlignment','documentSelection','cell','commands','columnInsertionRanges','removeMarker','getChildren','getSuggestionCallback','reduce','markerAttributes','getTableIfOnlyTableInContent','entries','getChanges','editor','document','low','isEqual','author','from','ck-suggestion-marker','get','previousSibling','removeRows','tableCellBorderColor','tableCellPadding','TableClipboard','tablePasteRow','markMultiRangeBlockFormat','push','getMarkers','updateMarker','endColumn','getRowIndexes','oldRange','schema','$graveyard','conversion','markMultiRangeDeletion','length','getItems','deletionRanges','add','value','fill','content','attributes','markMultiRangeInsertion','formatBlock','registerDescriptionCallback','newRange','element','insertContent','tablePasteChainId','removeColumns','some','table','getContainedElement','suggestion:formatBlock:tablePasteCell','tableCellBackgroundColor','_createdBatches','showSuggestionHighlights','rootName','rowInsertionRanges','afterInit','accept','startsWith','position'];(function(_0x5aecf9,_0x3074e6){const _0x397538=function(_0x57eac0){while(--_0x57eac0){_0x5aecf9['push'](_0x5aecf9['shift']());}};_0x397538(++_0x3074e6);}(_0x3074,0x1e2));const _0x3975=function(_0x5aecf9,_0x3074e6){_0x5aecf9=_0x5aecf9-0x0;let _0x397538=_0x3074[_0x5aecf9];return _0x397538;};import{getTranslation as _0x1739ff}from'../utils/common-translations';import{Plugin as _0x380b97}from'ckeditor5/src/core';import{uid as _0x59de26,priorities as _0x1fcb11}from'ckeditor5/src/utils';import _0x3e6302 from'./table';const le=[_0x3975('0x61'),_0x3975('0xae'),'tableCellBorderStyle','tableCellHorizontalAlignment',_0x3975('0x97'),_0x3975('0x22'),_0x3975('0x0')],ae=Object[_0x3975('0x41')](le[_0x3975('0x8c')](_0x5636a8=>[_0x5636a8,null]));export default class At extends _0x380b97{static get[_0x3975('0x39')](){return[_0x3e6302];}[_0x3975('0x27')](){const _0x2e0868=this[_0x3975('0xa4')];if(!_0x2e0868[_0x3975('0x3c')][_0x3975('0x42')](_0x3975('0x1')))return;const _0x2dcb04=_0x2e0868[_0x3975('0x3c')][_0x3975('0xab')]('TrackChangesEditing'),_0x36cfd5=_0x2e0868[_0x3975('0x3c')][_0x3975('0xab')](_0x3975('0x62')),_0x1a20c7=_0x2e0868[_0x3975('0x3c')][_0x3975('0xab')](_0x3e6302),_0x421cd4=_0x2e0868[_0x3975('0x3c')][_0x3975('0xab')](_0x3975('0x1'));_0x1a20c7[_0x3975('0x5d')][_0x3975('0x4')]('tablePasteRow',_0x3975('0x65')),_0x2e0868[_0x3975('0x43')][_0x3975('0xa')][_0x3975('0x91')](_0x3975('0x92'),{'allowIn':_0x3975('0x80'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x2e0868['conversion']['elementToElement']({'model':_0x3975('0x92'),'view':'suggestion-td'});let _0x5242ad=null;_0x2e0868[_0x3975('0x43')]['on'](_0x3975('0x1b'),(_0x157d66,_0x4eaf30)=>{const [_0x105fe1,_0x414426]=_0x4eaf30,_0x19acdf=_0x4eaf30[_0x4eaf30[_0x3975('0xe')]-0x1];_0x19acdf&&_0x19acdf[_0x3975('0x3e')]||_0x2dcb04[_0x3975('0x74')]||this[_0x3975('0xa4')][_0x3975('0x9a')][_0x3975('0xab')]('trackChanges')[_0x3975('0x12')]&&function(_0x5475e1,_0x7d00cd,_0x55da81,_0x4944ed,_0x9e5a51){if(_0x7d00cd&&!_0x7d00cd['is'](_0x3975('0x98')))return!0x1;const _0xf34a0d=_0x9e5a51[_0x3975('0xa1')](_0x5475e1,_0x55da81);if(!_0xf34a0d||!fe(_0xf34a0d,void 0x0,_0x4944ed))return!0x1;const _0x13fbff=_0x4944ed['getSelectionAffectedTableCells'](_0x55da81[_0x3975('0xa5')][_0x3975('0x86')]);if(!_0x13fbff[_0x3975('0xe')])return!0x1;const _0x3e97aa=_0x13fbff[0x0][_0x3975('0x4f')](_0x3975('0x1f')),_0x51de04=_0x4944ed[_0x3975('0x8')](_0x13fbff),_0x36b687=_0x4944ed[_0x3975('0x4b')](_0x13fbff),_0x34c2d2={'startRow':_0x51de04[_0x3975('0x78')],'endRow':_0x51de04[_0x3975('0x68')],'startColumn':_0x36b687[_0x3975('0x78')],'endColumn':_0x36b687[_0x3975('0x68')]};return 0x1==_0x13fbff[_0x3975('0xe')]&&(_0x34c2d2[_0x3975('0x63')]+=_0x4944ed[_0x3975('0x3d')](_0xf34a0d)-0x1,_0x34c2d2[_0x3975('0x7')]+=_0x4944ed[_0x3975('0x90')](_0xf34a0d)-0x1),fe(_0x3e97aa,_0x34c2d2,_0x4944ed);}(_0x105fe1,_0x414426,_0x2e0868['model'],_0x36cfd5,_0x421cd4)&&(_0x157d66['stop'](),_0x5242ad={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2e0868['model'][_0x3975('0x88')](()=>{_0x2e0868[_0x3975('0x43')][_0x3975('0x1b')](_0x4eaf30[0x0],_0x4eaf30[0x1],_0x4eaf30[0x2],{'forceDefaultExecution':!0x0});const _0x345d3a=_0x59de26(),{rowInsertionRanges:_0x3c50b8,columnInsertionRanges:_0x3f8b8c,insertionRanges:_0x3fd81e,deletionRanges:_0x1d8d03,cells:_0x38d1d1}=_0x5242ad;_0x3c50b8[_0x3975('0xe')]&&_0x2dcb04[_0x3975('0x16')](_0x3c50b8,_0x3975('0x2'),{'tablePasteChainId':_0x345d3a}),_0x3f8b8c[_0x3975('0xe')]&&_0x2dcb04[_0x3975('0x16')](_0x3f8b8c,_0x3975('0x65'),{'tablePasteChainId':_0x345d3a}),_0x3fd81e[_0x3975('0xe')]&&_0x2dcb04[_0x3975('0x16')](_0x3fd81e,_0x3975('0x8e'),{'tablePasteChainId':_0x345d3a,'skipNestingCheck':!0x0}),_0x1d8d03[_0x3975('0xe')]&&_0x2dcb04[_0x3975('0xd')](_0x1d8d03,'tablePaste',{'tablePasteChainId':_0x345d3a,'skipNestingCheck':!0x0});const _0x28945b=_0x2dcb04[_0x3975('0x3')](_0x38d1d1[_0x3975('0x8c')](({element:_0x4aa535})=>_0x4aa535),{'formatGroupId':_0x59de26()},[],'tablePasteCell',{'tablePasteChainId':_0x345d3a});if(_0x28945b){const _0x297d0b=_0x28945b['getMarkers'](),_0x4a9355=[];for(const {element:_0x373b98,attributes:_0x75199c}of _0x38d1d1){if(!_0x75199c)continue;const _0x4e67c2=_0x2e0868['model']['createRangeOn'](_0x373b98),_0x1471cf=_0x297d0b['find'](_0x2f3b7f=>_0x2f3b7f[_0x3975('0x53')]()[_0x3975('0xa7')](_0x4e67c2));_0x1471cf&&_0x4a9355[_0x3975('0x4')]([_0x1471cf['name'],_0x75199c]);}_0x4a9355[_0x3975('0xe')]&&_0x28945b[_0x3975('0x6a')](_0x3975('0xa0'),Object['fromEntries'](_0x4a9355));}_0x5242ad=null;}));},{'priority':_0x1fcb11['high']+0xa}),_0x2e0868[_0x3975('0x3c')]['get'](_0x3975('0x1'))['on'](_0x3975('0x60'),(_0x35eab3,_0x2f24a1)=>{const [_0x218565,_0x1d0a9b,,_0x8abfe3]=_0x2f24a1;if(!_0x5242ad)return;_0x35eab3[_0x3975('0x49')]();const _0x50954c=_0x218565[_0x3975('0x99')],_0x58ba24=_0x1d0a9b,_0x445f93=ce(_0x50954c),_0x50a9ad=ce(_0x58ba24);_0x35eab3[_0x3975('0x38')]=_0x50954c;let _0x5d83a5=null,_0x20e21d=null;if(_0x50a9ad||_0x445f93){if(_0x445f93&&!_0x50a9ad){_0x8abfe3['remove'](_0x50954c[_0x3975('0x87')](0x0));for(const _0x267297 of Array[_0x3975('0xa9')](_0x58ba24[_0x3975('0x9d')]()))_0x8abfe3[_0x3975('0x5f')](_0x267297,_0x50954c,'end');const _0x261d29=_0x5242ad['rowInsertionIndexes'][_0x3975('0x4a')](_0x218565[_0x3975('0x51')]),_0x3f8abd=_0x5242ad['columnInsertionIndexes']['includes'](_0x218565[_0x3975('0x2e')]);_0x261d29||_0x3f8abd||(_0x5d83a5=_0x8abfe3['createRangeIn'](_0x50954c));}else _0x50a9ad&&!_0x445f93&&(_0x20e21d=_0x8abfe3['createRangeIn'](_0x50954c));}else{const _0x407ac1=_0x8abfe3[_0x3975('0x52')](_0x3975('0x92')),_0x31313f=_0x8abfe3['createElement'](_0x3975('0x92'));_0x8abfe3[_0x3975('0x2f')](_0x8abfe3['createRangeIn'](_0x50954c),_0x31313f),_0x8abfe3[_0x3975('0x5f')](_0x407ac1,_0x50954c,0x0);for(const _0x424f76 of Array[_0x3975('0xa9')](_0x58ba24[_0x3975('0x9d')]()))_0x8abfe3[_0x3975('0x5f')](_0x424f76,_0x407ac1,_0x3975('0x5a'));_0x5d83a5=_0x8abfe3[_0x3975('0x35')](_0x407ac1),_0x20e21d=_0x8abfe3[_0x3975('0x35')](_0x31313f);}const _0x2e904b=Array[_0x3975('0xa9')](_0x58ba24[_0x3975('0x6d')]())[_0x3975('0x4d')](([_0x5b18ba])=>le[_0x3975('0x4a')](_0x5b18ba));_0x5242ad[_0x3975('0x5e')]['push']({'element':_0x50954c,'attributes':_0x2e904b['length']?Object[_0x3975('0x41')](_0x2e904b):null}),_0x5d83a5&&_0x5242ad['insertionRanges'][_0x3975('0x4')](_0x5d83a5),_0x20e21d&&_0x5242ad[_0x3975('0x10')][_0x3975('0x4')](_0x20e21d);},{'priority':_0x3975('0x64')}),_0x36cfd5['on'](_0x3975('0x8b'),(_0x5c7382,_0x24e4a0)=>{const [_0x5bb5d1,_0x2bc60c={}]=_0x24e4a0;if(!_0x5242ad)return;const _0x22aa8e=_0x2bc60c['at']||0x0,_0x351ecd=_0x2bc60c[_0x3975('0x69')]||0x1;_0x5242ad['columnInsertionIndexes']=new Array(_0x351ecd)[_0x3975('0x13')](_0x22aa8e)[_0x3975('0x8c')]((_0x50bc63,_0x39cb0c)=>_0x50bc63+_0x39cb0c);for(const {cell:_0x5f4474}of _0x36cfd5['createTableWalker'](_0x5bb5d1,{'startColumn':_0x22aa8e,'endColumn':_0x22aa8e+_0x351ecd-0x1}))_0x5242ad[_0x3975('0x9b')]['push'](_0x2e0868[_0x3975('0x43')][_0x3975('0x35')](_0x5f4474));},{'priority':_0x3975('0xa6')}),_0x36cfd5['on'](_0x3975('0x3a'),(_0x535bfb,_0x319ef6)=>{const [_0x30d287,_0x3e3967={}]=_0x319ef6;if(!_0x5242ad)return;const _0x44b0f1=_0x3e3967['at']||0x0,_0x219a18=_0x3e3967[_0x3975('0x81')]||0x1;_0x5242ad['rowInsertionIndexes']=new Array(_0x219a18)[_0x3975('0x13')](_0x44b0f1)[_0x3975('0x8c')]((_0x36fafa,_0x504f22)=>_0x36fafa+_0x504f22);for(const {cell:_0x22b331}of _0x36cfd5[_0x3975('0x6c')](_0x30d287,{'startRow':_0x44b0f1,'endRow':_0x44b0f1+_0x219a18-0x1}))_0x5242ad[_0x3975('0x26')]['push'](_0x2e0868['model'][_0x3975('0x35')](_0x22b331));},{'priority':_0x3975('0xa6')}),_0x2dcb04[_0x3975('0x8d')][_0x3975('0x18')](_0x264378=>{if(_0x264378[_0x3975('0x57')]&&_0x264378[_0x3975('0x57')][_0x3975('0x29')](_0x3975('0x8e')))return _0x264378['previous']?{}:{'type':_0x3975('0x33'),'content':_0x1739ff(_0x2e0868['locale'],_0x3975('0x3f'))};});const _0x3a9dd7=()=>!0x1;for(const _0x5f4c09 of[_0x3975('0x8e'),_0x3975('0x65'),_0x3975('0x2'),_0x3975('0x84')])_0x2dcb04[_0x3975('0x47')][_0x3975('0x70')](_0x3975('0x33'),_0x5f4c09,'join',_0x3a9dd7),_0x2dcb04[_0x3975('0x47')][_0x3975('0x70')](_0x3975('0x75'),_0x5f4c09,_0x3975('0x93'),_0x3a9dd7),_0x2dcb04[_0x3975('0x47')][_0x3975('0x70')](_0x3975('0x17'),_0x5f4c09,_0x3975('0x93'),_0x3a9dd7);_0x2dcb04['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell',_0x3975('0x7c'),_0x3a9dd7),_0x2dcb04[_0x3975('0x47')][_0x3975('0x70')](_0x3975('0x17'),_0x3975('0x84'),_0x3975('0x28'),(_0x408730,_0x277add,_0x19070d)=>{const _0x43f505=_0x408730[_0x3975('0x8c')](_0x440195=>_0x440195[_0x3975('0x20')]())[_0x3975('0x4d')](_0x5b0dbb=>_0x5b0dbb),_0x147173=new Map(_0x43f505[_0x3975('0x8c')](_0x47bee2=>[_0x47bee2,null]));if(_0x5242ad)for(const {element:_0x523d5c,attributes:_0x1deab5}of _0x5242ad['cells'])_0x1deab5&&_0x147173['set'](_0x523d5c,_0x1deab5);else{if(_0x19070d&&_0x19070d[_0x3975('0xa0')])for(const [_0x1e7c48,_0x2b3869]of Object[_0x3975('0xa2')](_0x19070d[_0x3975('0xa0')])){const _0x550317=_0x2e0868[_0x3975('0x43')][_0x3975('0x45')]['get'](_0x1e7c48),_0x2c1629=_0x550317?_0x550317[_0x3975('0x53')]()[_0x3975('0x20')]():null;_0x2c1629&&_0x147173['set'](_0x2c1629,_0x2b3869);}}_0x2e0868[_0x3975('0x43')][_0x3975('0x88')](_0x512ced=>{for(const [_0x2618a3,_0x5d4ac6]of _0x147173)_0x512ced[_0x3975('0x96')]({...ae,..._0x5d4ac6},_0x2618a3);});});const _0x322bec=(_0x4335c6,_0x54a233)=>{_0x2dcb04[_0x3975('0x47')][_0x3975('0x70')](_0x4335c6,'tablePaste',_0x54a233,(_0x540d83,_0x5880bd,_0x3680ca)=>{_0x2e0868[_0x3975('0x43')]['change'](_0x1b19ed=>{const _0x1a5ebc=[];for(const _0x37a840 of _0x540d83){const _0x5a4a1f=_0x37a840[_0x3975('0x71')][_0x3975('0x77')];_0x5a4a1f['is'](_0x3975('0x1a'),_0x3975('0x92'))&&_0x1a5ebc[_0x3975('0x4')](_0x5a4a1f);}_0x2dcb04[_0x3975('0x47')][_0x3975('0x9e')](_0x4335c6,null,_0x54a233)(_0x540d83,_0x5880bd,_0x3680ca);for(const _0x4d6204 of _0x1a5ebc)_0x3975('0xb')!=_0x4d6204[_0x3975('0x31')][_0x3975('0x25')]&&_0x1b19ed['unwrap'](_0x4d6204);});});};_0x322bec(_0x3975('0x33'),_0x3975('0x28')),_0x322bec(_0x3975('0x33'),_0x3975('0x7c')),_0x322bec('deletion',_0x3975('0x28')),_0x322bec('deletion',_0x3975('0x7c')),_0x2dcb04[_0x3975('0x47')][_0x3975('0x70')](_0x3975('0x33'),_0x3975('0x2'),'discard',_0x51d221=>{const _0x4cc92c=_0x51d221[_0x3975('0x8c')](_0x4870f5=>_0x4870f5['getContainedElement']()),_0x45827f=_0x4cc92c[0x0]['findAncestor'](_0x3975('0x1f')),{minRow:_0xeb546e,maxRow:_0x4e4a2c}=_0x1a20c7[_0x3975('0x3b')](_0x4cc92c);_0x36cfd5[_0x3975('0xad')](_0x45827f,{'at':_0xeb546e,'rows':_0x4e4a2c-_0xeb546e+0x1});}),_0x2dcb04[_0x3975('0x47')][_0x3975('0x70')](_0x3975('0x33'),_0x3975('0x65'),_0x3975('0x7c'),_0x16037e=>{const _0x384a46=_0x16037e[_0x3975('0x8c')](_0x5ef9fe=>_0x5ef9fe[_0x3975('0x20')]()),_0x512403=_0x384a46[0x0][_0x3975('0x4f')](_0x3975('0x1f')),{minColumn:_0x4fdab3,maxColumn:_0x3f904d}=_0x1a20c7[_0x3975('0x3b')](_0x384a46);_0x36cfd5[_0x3975('0x1d')](_0x512403,{'at':_0x4fdab3,'columns':_0x3f904d-_0x4fdab3+0x1});});const _0x2a6edc=(_0xb04653,_0x597e7a)=>{if(!_0x597e7a[_0x3975('0x57')]||!_0x597e7a[_0x3975('0x57')][_0x3975('0x29')](_0x3975('0x8e')))return;const _0x2e6bbc=_0x597e7a[_0x3975('0x15')]['tablePasteChainId'],_0x1da2eb=_0x2dcb04[_0x3975('0x2b')]()[_0x3975('0x4d')](_0x3b1fe1=>_0x3b1fe1[_0x3975('0x66')]&&_0x3b1fe1['attributes']&&_0x3b1fe1['attributes'][_0x3975('0x1c')]==_0x2e6bbc);_0x1da2eb[_0x3975('0xe')]&&_0x597e7a[_0x3975('0x7a')]()[_0x3975('0xe')]!=_0x1da2eb[_0x3975('0xe')]&&_0x1da2eb[_0x3975('0x9f')]((_0x37bfb2,_0x36e2a6)=>(_0x37bfb2[_0x3975('0x55')]=_0x36e2a6,_0x36e2a6[_0x3975('0x34')]=_0x37bfb2,_0x36e2a6));};function _0x4b9aaa(_0x705a40,_0x52ba27=!0x0){const {id:_0x464c71}=_0x2dcb04[_0x3975('0x48')](_0x705a40['markerName']),_0x3c2b12=[_0x3975('0xaa'),_0x3975('0x58')],_0x25bf3a=_0x2dcb04[_0x3975('0x89')][_0x3975('0x4a')](_0x705a40[_0x3975('0x46')]);return _0x25bf3a&&_0x3c2b12[_0x3975('0x4')](_0x3975('0x50')),{'classes':_0x3c2b12,'attributes':{'data-suggestion':_0x464c71},'priority':_0x25bf3a&&_0x52ba27?0xbc2:0xbb8};}_0x2dcb04['on']('suggestionLoaded',_0x2a6edc,{'priority':_0x3975('0x64')}),_0x2dcb04['on']('suggestionUnloaded',_0x2a6edc,{'priority':_0x3975('0x64')}),_0x2e0868[_0x3975('0x43')][_0x3975('0xa5')][_0x3975('0x44')](()=>{let _0x12448e=!0x1;const _0x4aa001=Array[_0x3975('0xa9')](_0x2e0868['model']['document'][_0x3975('0x36')][_0x3975('0x6b')]());for(const {name:_0x112fe6,data:_0x5ca26f}of _0x4aa001){const {group:_0x1f3e1d,type:_0x368a2e,id:_0x3b6481}=_0x2dcb04['_splitMarkerName'](_0x112fe6);if(_0x3975('0x5b')!=_0x1f3e1d||_0x3975('0x75')!=_0x368a2e||_0x5ca26f[_0x3975('0x9')])continue;if(!_0x2dcb04[_0x3975('0x94')](_0x3b6481))continue;const _0x22ee11=_0x2dcb04[_0x3975('0x2c')](_0x3b6481)[_0x3975('0x2d')](),_0x13aea2=_0x2e0868[_0x3975('0x3c')]['get'](_0x3975('0x6e'))['me'];for(const _0x117d28 of _0x2dcb04[_0x3975('0x2b')]()){if(!_0x117d28['isInContent']||_0x117d28['author']!=_0x13aea2)continue;if(_0x3975('0x17')!=_0x117d28['type']||_0x3975('0x84')!=_0x117d28[_0x3975('0x57')])continue;if(_0x117d28[_0x3975('0x2d')]()[_0x3975('0x59')](_0x1901c5=>_0x22ee11[_0x3975('0x1e')](_0x5e5b1d=>_0x5e5b1d[_0x3975('0x67')](_0x1901c5,!0x0))))for(const _0x5e2c40 of _0x117d28[_0x3975('0x7a')]())_0x5e2c40[_0x3975('0x66')]&&(_0x5e2c40['discard'](),_0x12448e=!0x0);}}return _0x12448e;}),_0x2e0868[_0x3975('0x43')][_0x3975('0xa5')][_0x3975('0x44')](_0x9d5e5a=>{const _0x4d45c5=_0x2e0868[_0x3975('0x9a')][_0x3975('0xab')](_0x3975('0x7d'));if(!_0x4d45c5||!_0x4d45c5[_0x3975('0x23')][_0x3975('0x42')](_0x9d5e5a[_0x3975('0x83')]))return!0x1;let _0x4bd16f=!0x1;const _0x39e9d3=_0x2e0868[_0x3975('0x3c')][_0x3975('0xab')](_0x3975('0x6e'))['me'],_0xf7b33=_0x2e0868[_0x3975('0x43')][_0x3975('0xa5')]['differ'][_0x3975('0xa3')](),_0x2e19de=Array[_0x3975('0xa9')](_0x2e0868[_0x3975('0x43')][_0x3975('0xa5')][_0x3975('0x36')][_0x3975('0x6b')]())['filter'](({name:_0x33ddd4,data:_0x74b416})=>{const {group:_0x349d0d,subType:_0xceb439,authorId:_0x2a330c}=_0x2dcb04[_0x3975('0x48')](_0x33ddd4);return _0x3975('0x5b')==_0x349d0d&&_0x3975('0x8e')==_0xceb439&&_0x2a330c==_0x39e9d3['id']&&!_0x74b416[_0x3975('0x9')];});for(const _0x3d160e of _0xf7b33){if(_0x3975('0x5f')!=_0x3d160e[_0x3975('0x7e')]||_0x3975('0x92')!=_0x3d160e[_0x3975('0x82')]||0x1!=_0x3d160e[_0x3975('0xe')])continue;const _0x1bc423=_0x9d5e5a[_0x3975('0x95')](_0x3d160e[_0x3975('0x2a')],_0x3d160e[_0x3975('0x2a')][_0x3975('0x4e')](0x1));if(!_0x2e19de[_0x3975('0x85')](({data:_0x579ee4})=>_0x579ee4[_0x3975('0x19')][_0x3975('0xa7')](_0x1bc423)))for(const {name:_0x1d30f6,data:_0x11a2a2}of _0x2e19de)if(_0x1bc423[_0x3975('0x67')](_0x11a2a2['newRange'])){_0x9d5e5a[_0x3975('0x6')](_0x1d30f6,{'range':_0x1bc423}),_0x4bd16f=!0x0;break;}}return _0x4bd16f;}),_0x2e0868[_0x3975('0x43')]['document'][_0x3975('0x44')](_0xfb1d69=>{let _0x153851=!0x1;const _0x134880=_0x2e0868[_0x3975('0x3c')][_0x3975('0xab')]('Users')['me'],_0x326a85=_0x2dcb04[_0x3975('0x2b')]()['filter'](_0x4a1e43=>_0x4a1e43[_0x3975('0x66')]&&_0x4a1e43[_0x3975('0xa8')]==_0x134880),_0x236219=new Set(),_0x42556a=new Set();for(const _0x601d8e of _0x326a85)if(_0x3975('0x8e')==_0x601d8e[_0x3975('0x57')])for(const _0x5caadc of _0x601d8e[_0x3975('0x5')]()){const _0x56b1c7=_0x5caadc[_0x3975('0x53')]()[_0x3975('0x20')]();if(_0x56b1c7){if(_0x56b1c7['is'](_0x3975('0x1a'),_0x3975('0x92'))&&ce(_0x56b1c7)){_0x601d8e[_0x3975('0x9c')](_0x5caadc[_0x3975('0x82')]),_0x236219[_0x3975('0x11')](_0x56b1c7),_0x153851=!0x0;const _0x4d640a=_0x56b1c7[_0x3975('0x56')],_0x47de71=_0x56b1c7[_0x3975('0xac')],_0x163148=_0x4d640a&&_0x4d640a['is'](_0x3975('0x1a'),'tableCellSuggestion'),_0x366882=_0x47de71&&_0x47de71['is']('element',_0x3975('0x92'));_0x163148&&!_0x236219[_0x3975('0x42')](_0x4d640a)&&_0x42556a[_0x3975('0x11')](_0x4d640a),_0x366882&&!_0x236219[_0x3975('0x42')](_0x47de71)&&_0x42556a[_0x3975('0x11')](_0x47de71);}else _0x56b1c7['is']('element',_0x3975('0x54'))&&_0x56b1c7[_0x3975('0x7b')]&&(_0x601d8e['removeMarker'](_0x5caadc[_0x3975('0x82')]),_0x153851=!0x0);}}else{if(_0x3975('0x84')==_0x601d8e[_0x3975('0x57')]){if(!_0x601d8e[_0x3975('0x15')]||!_0x601d8e['attributes']['tablePasteChainId'])continue;const _0x231bc8=_0x601d8e[_0x3975('0x15')][_0x3975('0xa0')];if(_0x231bc8&&Object[_0x3975('0x5c')](_0x231bc8)['length'])continue;const _0x3b1bcc=_0x601d8e[_0x3975('0x15')][_0x3975('0x1c')];let _0x512a54=!0x0,_0x51923f=!0x0;for(const _0x15b895 of _0x326a85)if(_0x15b895[_0x3975('0x57')]&&_0x15b895[_0x3975('0x57')][_0x3975('0x29')](_0x3975('0x8e'))){if(!_0x15b895['attributes'][_0x3975('0x1c')]){_0x51923f=!0x1;break;}if(_0x15b895['id']!=_0x601d8e['id']&&_0x15b895[_0x3975('0x15')][_0x3975('0x1c')]==_0x3b1bcc){_0x512a54=!0x1;break;}}_0x51923f&&_0x512a54&&(_0x601d8e[_0x3975('0x8f')](),_0x153851=!0x0);}}for(const _0x6c5b94 of _0x236219)_0xfb1d69[_0x3975('0x4c')](_0x6c5b94);for(const _0x202b6d of _0x42556a)_0xfb1d69[_0x3975('0x37')](_0x202b6d);return _0x153851;}),_0x2e0868['conversion'][_0x3975('0x79')](_0x3975('0x30'))[_0x3975('0x6f')]({'model':_0x3975('0x21'),'view':(_0x4c5f9c,_0x1d86f8)=>_0x4b9aaa(_0x4c5f9c),'converterPriority':_0x3975('0x64')}),_0x2e0868[_0x3975('0xc')][_0x3975('0x79')]('dataDowncast')[_0x3975('0x6f')]({'model':_0x3975('0x21'),'view':(_0x56492c,_0xd4836a)=>_0xd4836a[_0x3975('0x7f')][_0x3975('0x24')]?_0x4b9aaa(_0x56492c,!0x1):null,'converterPriority':'high'});const _0x5ce24c=_0x2e0868['editing'][_0x3975('0x72')];this[_0x3975('0x40')](_0x5ce24c['document'],_0x3975('0x76'),(_0x2bbc83,_0x2f3341)=>{const _0x2f6c5f=[];for(const _0xdd353a of _0x5ce24c['createRangeIn'](_0x2f3341[_0x3975('0x14')])[_0x3975('0xf')]())_0xdd353a['is'](_0x3975('0x1a'),_0x3975('0x32'))&&_0x2f6c5f[_0x3975('0x4')](_0xdd353a);_0x5ce24c[_0x3975('0x88')](_0x3c0d37=>{for(const _0x91e68e of _0x2f6c5f)_0x3c0d37[_0x3975('0x8a')](_0x3c0d37['createRangeIn'](_0x91e68e),_0x3c0d37[_0x3975('0x73')](_0x91e68e)),_0x3c0d37[_0x3975('0x4c')](_0x91e68e);});});}}function ce(_0x19d085){if(_0x19d085['isEmpty'])return!0x0;const _0xded826=_0x19d085[_0x3975('0x87')](0x0);return _0xded826['is'](_0x3975('0x1a'),'paragraph')&&_0xded826['isEmpty'];}function fe(_0x49fa29,_0x1cbb76={},_0x3852e1){for(const {isAnchor:_0x37d172,cellHeight:_0x10e966,cellWidth:_0x238f5d}of _0x3852e1[_0x3975('0x6c')](_0x49fa29,{'includeAllSlots':!0x0,..._0x1cbb76}))if(!_0x37d172||0x1!=_0x10e966||0x1!=_0x238f5d)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23da=['has','locale','plugins','formatBlock','selection','getSuggestionCallback','TableColumnResizeEditing','*Format:*\x20resize\x20table','getAttribute','markBlockFormat','enableCommand','resizeTable','change','type','registerCustomCallback','formatGroupId','accept','resizeTableWidth','_descriptionFactory','formatInline','getContainedElement','getSuggestions','author','subType','tableWidth','handleSuggestionDescription','columnWidths','handleResizeTableWidthCommand','discard','editor','_suggestionFactory','table','TrackChangesEditing','getColumnGroupElement','afterInit','get'];(function(_0x5255d7,_0x23daa4){const _0x30a834=function(_0x43a4e6){while(--_0x43a4e6){_0x5255d7['push'](_0x5255d7['shift']());}};_0x30a834(++_0x23daa4);}(_0x23da,0x1be));const _0x30a8=function(_0x5255d7,_0x23daa4){_0x5255d7=_0x5255d7-0x0;let _0x30a834=_0x23da[_0x5255d7];return _0x30a834;};import{Plugin as _0x1db51f}from'ckeditor5/src/core';import{getTranslation as _0xd073be}from'../utils/common-translations';export default class It extends _0x1db51f{[_0x30a8('0x14')](){if(!this[_0x30a8('0xf')][_0x30a8('0x18')][_0x30a8('0x16')]('TableColumnResizeEditing'))return;const _0x233bd3=this['editor'][_0x30a8('0x18')][_0x30a8('0x15')](_0x30a8('0x12'));_0x233bd3[_0x30a8('0x20')](_0x30a8('0x3'),this[_0x30a8('0xd')]['bind'](this)),_0x233bd3[_0x30a8('0x10')][_0x30a8('0x0')]('formatBlock',_0x30a8('0x21'),_0x30a8('0x2'),_0x233bd3[_0x30a8('0x10')][_0x30a8('0x1b')]('formatBlock',null,_0x30a8('0xe'))),_0x233bd3[_0x30a8('0x10')][_0x30a8('0x0')](_0x30a8('0x19'),_0x30a8('0x21'),'discard',_0x233bd3['_suggestionFactory'][_0x30a8('0x1b')](_0x30a8('0x19'),null,'accept')),_0x233bd3[_0x30a8('0x4')]['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}[_0x30a8('0xd')](_0x537459,_0x122409){const _0x470076=this[_0x30a8('0xf')][_0x30a8('0x18')][_0x30a8('0x15')](_0x30a8('0x12')),_0x35b474=this[_0x30a8('0xf')]['plugins'][_0x30a8('0x15')](_0x30a8('0x1c')),_0x1b5704=_0x122409[_0x30a8('0x11')]||this[_0x30a8('0xf')]['model']['document'][_0x30a8('0x1a')]['getSelectedElement']();this[_0x30a8('0xf')]['model'][_0x30a8('0x22')](()=>{const _0x152b30=_0x35b474[_0x30a8('0x13')](_0x1b5704);let _0x1a0159=_0x152b30?_0x35b474['getTableColumnsWidths'](_0x152b30):null,_0x3ba210=_0x1b5704[_0x30a8('0x1e')]('tableWidth')||null;const _0x227195=_0x122409[_0x30a8('0xa')]||_0x3ba210,_0x588dd7=_0x122409[_0x30a8('0xc')]||_0x1a0159,_0x52b0c1=this[_0x30a8('0xf')]['plugins'][_0x30a8('0x15')]('Users')['me'];for(const _0x1a5cc4 of _0x470076[_0x30a8('0x7')]()){const _0xcf6489=_0x1a5cc4[_0x30a8('0x6')]();if(_0x30a8('0x21')===_0x1a5cc4[_0x30a8('0x9')]&&_0xcf6489===_0x1b5704){_0x1a5cc4[_0x30a8('0x8')]!==_0x52b0c1&&_0x1a5cc4[_0x30a8('0xe')]();const _0x58c0fd=_0x1a5cc4['data']['commandParams'];_0x3ba210=_0x58c0fd[0x0][_0x30a8('0xa')],_0x1a0159=_0x58c0fd[0x0][_0x30a8('0xc')];break;}}_0x537459({'table':_0x1b5704,'tableWidth':_0x227195,'columnWidths':_0x588dd7}),_0x470076[_0x30a8('0x1f')](_0x1b5704,{'commandName':_0x30a8('0x3'),'commandParams':[{'tableWidth':_0x3ba210,'columnWidths':_0x1a0159}],'formatGroupId':_0x30a8('0x21')},[],_0x30a8('0x21'));});}[_0x30a8('0xb')](_0x20d4fd){if('formatBlock'!=_0x20d4fd[_0x30a8('0x23')]&&_0x30a8('0x5')!=_0x20d4fd[_0x30a8('0x23')])return;const {data:_0x5bc566}=_0x20d4fd;if(_0x5bc566&&'resizeTable'===_0x5bc566[_0x30a8('0x1')]){const _0x2bee27=_0x30a8('0x1d');return{'type':'format','content':_0xd073be(this[_0x30a8('0xf')][_0x30a8('0x17')],_0x2bee27)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b72=['name','ck-suggestion-marker--active','TableUtils','registerAttributeLabel','markerName','markerNameToElements','registerCustomCallback','commandName','removeAttribute','_splitMarkerName','removeClass','highest','consumable','markerRange','getSuggestion','editor','getCellLocation','cell','consume','plugins','editing','has','requires','_descriptionFactory','addClass','activeMarkers','parent','FORMAT_HEADER_ROW','locale','nodeAfter','headingColumns','ck-suggestion-marker-','FORMAT_REGULAR_COLUMN','accept','setAttribute','get','FORMAT_HEADER_COLUMN','_suggestionFactory','*Format:*\x20%0','createTableWalker','formatBlock','setTableRowHeader','options','data-suggestion','start','writer','data','addMarker:suggestion','headingRows','type','_acceptFormatSuggestionCallbackFactory','_enableDefaultAttributesIntegration','registerDescriptionCallback','stop','nodeBefore','setTableColumnHeader','mapper','item','showSuggestionHighlights','TrackChangesEditing','forceValue','downcastDispatcher','toViewElement','commandParams','_registerLegacyDescription','unbindElementFromMarkerName'];(function(_0xfe383d,_0x4b7295){const _0x4357d6=function(_0x28e667){while(--_0x28e667){_0xfe383d['push'](_0xfe383d['shift']());}};_0x4357d6(++_0x4b7295);}(_0x4b72,0xa6));const _0x4357=function(_0xfe383d,_0x4b7295){_0xfe383d=_0xfe383d-0x0;let _0x4357d6=_0x4b72[_0xfe383d];return _0x4357d6;};import{Plugin as _0x455bb8}from'ckeditor5/src/core';import _0x26db7c from'./table';import{getTranslation as _0x2579ec}from'../utils/common-translations';export default class St extends _0x455bb8{static get[_0x4357('0x36')](){return[_0x26db7c];}['afterInit'](){const _0x5c1e6c=this[_0x4357('0x2f')];if(!_0x5c1e6c[_0x4357('0x33')][_0x4357('0x35')]('TableEditing'))return;const _0x2411a0=_0x5c1e6c[_0x4357('0x3c')],_0x4437a4=_0x5c1e6c[_0x4357('0x33')][_0x4357('0x1')]('TrackChangesEditing');_0x4437a4[_0x4357('0x11')]('setTableRowHeader',[],['headingRows']),_0x4437a4[_0x4357('0x11')]('setTableColumnHeader',[],[_0x4357('0x3e')]),_0x4437a4[_0x4357('0x37')][_0x4357('0x23')](_0x4357('0xe'),_0x2579ec(_0x2411a0,'FORMAT_HEADER_ROW')),_0x4437a4[_0x4357('0x37')][_0x4357('0x23')](_0x4357('0x3e'),_0x2579ec(_0x2411a0,_0x4357('0x2'))),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x112a4c=this[_0x4357('0x2f')][_0x4357('0x33')]['get'](_0x4357('0x19')),_0x1eaf11=this[_0x4357('0x2f')][_0x4357('0x33')][_0x4357('0x1')](_0x4357('0x22')),_0x1f12c3=this[_0x4357('0x2f')][_0x4357('0x33')]['get'](_0x26db7c)[_0x4357('0x10')]();function _0x2b295c({showActiveMarker:_0x5aec79=!0x0,setDataAttribute:_0x3aa0c9=!0x0}={}){return(_0x11a956,_0x5ad31e,_0x59bbed)=>{const {type:_0x58c4a5,id:_0x1016cf}=_0x112a4c[_0x4357('0x29')](_0x5ad31e['markerName']),_0x48baba=_0x112a4c[_0x4357('0x2e')](_0x1016cf),_0x3f41ae=_0x48baba[_0x4357('0xc')];if(_0x4357('0x6')!=_0x48baba['type']||!_0x3f41ae||_0x4357('0x15')!=_0x3f41ae[_0x4357('0x27')])return;if(_0x5ad31e[_0x4357('0x17')])return void _0x11a956[_0x4357('0x13')]();if(!_0x59bbed[_0x4357('0x2c')][_0x4357('0x32')](_0x5ad31e['markerRange'],_0x11a956[_0x4357('0x20')]))return;const _0x4a9453=_0x5ad31e[_0x4357('0x2d')][_0x4357('0xa')][_0x4357('0x3d')],_0x4df067=_0x5ad31e[_0x4357('0x2d')]['end'][_0x4357('0x14')],_0x2d37f8=_0x4a9453[_0x4357('0x3a')][_0x4357('0x3a')],{column:_0x416f46}=_0x1eaf11['getCellLocation'](_0x4a9453),{column:_0x59b18e}=_0x1eaf11[_0x4357('0x30')](_0x4df067);for(let _0x4dbf93=_0x416f46;_0x4dbf93<=_0x59b18e;_0x4dbf93++){const _0xf257bb=_0x1eaf11[_0x4357('0x5')](_0x2d37f8,{'column':_0x4dbf93,'includeAllSlots':!0x1});for(const _0x372c42 of _0xf257bb){const _0x9f2332=_0x372c42[_0x4357('0x31')],_0x37cb7e=_0x59bbed[_0x4357('0x16')][_0x4357('0x1c')](_0x9f2332);_0x59bbed[_0x4357('0xb')][_0x4357('0x38')](_0x4357('0x3f')+_0x58c4a5,_0x37cb7e),_0x3aa0c9&&_0x59bbed[_0x4357('0xb')][_0x4357('0x0')](_0x4357('0x9'),_0x1016cf,_0x37cb7e),_0x59bbed[_0x4357('0x16')]['bindElementToMarker'](_0x37cb7e,_0x5ad31e[_0x4357('0x24')]),_0x5aec79&&(_0x112a4c[_0x4357('0x39')]['includes'](_0x5ad31e[_0x4357('0x24')])?_0x59bbed[_0x4357('0xb')][_0x4357('0x38')]('ck-suggestion-marker--active',_0x37cb7e):_0x59bbed[_0x4357('0xb')]['removeClass'](_0x4357('0x21'),_0x37cb7e));}}};}_0x112a4c[_0x4357('0x3')][_0x4357('0x26')](_0x4357('0x6'),'setTableRowHeader',_0x4357('0x41'),_0x1f12c3),_0x112a4c['_suggestionFactory']['registerCustomCallback'](_0x4357('0x6'),'setTableColumnHeader','accept',_0x1f12c3),this['editor'][_0x4357('0x34')][_0x4357('0x1b')]['on']('addMarker:suggestion',_0x2b295c(),{'priority':_0x4357('0x2b')}),this[_0x4357('0x2f')][_0x4357('0xc')][_0x4357('0x1b')]['on'](_0x4357('0xd'),(_0x983635,_0x48dc66,_0x12b9b5)=>{_0x12b9b5[_0x4357('0x8')][_0x4357('0x18')]&&_0x2b295c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x983635,_0x48dc66,_0x12b9b5);},{'priority':'highest'}),this[_0x4357('0x2f')][_0x4357('0x34')]['downcastDispatcher']['on']('removeMarker:suggestion',(_0x262000,_0x40f546,_0x13327a)=>{const {type:_0x46e361,id:_0x5a0b9a}=_0x112a4c[_0x4357('0x29')](_0x40f546[_0x4357('0x24')]),_0x21d522=_0x112a4c[_0x4357('0x2e')](_0x5a0b9a),_0x1e9044=_0x21d522[_0x4357('0xc')];if(_0x4357('0x6')!=_0x21d522[_0x4357('0xf')]||!_0x1e9044||_0x4357('0x15')!=_0x1e9044['commandName'])return;const _0x2666f9=_0x13327a[_0x4357('0x16')][_0x4357('0x25')](_0x40f546[_0x4357('0x24')]);if(_0x2666f9)for(const _0x39f378 of _0x2666f9)_0x13327a[_0x4357('0xb')][_0x4357('0x2a')](_0x4357('0x3f')+_0x46e361,_0x39f378),_0x13327a['writer'][_0x4357('0x2a')](_0x4357('0x21'),_0x39f378),_0x13327a['writer'][_0x4357('0x28')](_0x4357('0x9'),_0x39f378),_0x13327a[_0x4357('0x16')][_0x4357('0x1f')](_0x39f378,_0x40f546[_0x4357('0x24')]);},{'priority':_0x4357('0x2b')}),this[_0x4357('0x1e')]();}[_0x4357('0x1e')](){const _0x23d6f4=this['editor'],_0x5c455f=_0x23d6f4[_0x4357('0x3c')];function _0x499559(_0x53790d){return{'type':'format','content':_0x2579ec(_0x5c455f,_0x4357('0x4'),_0x53790d)};}_0x23d6f4[_0x4357('0x33')][_0x4357('0x1')](_0x4357('0x19'))[_0x4357('0x37')][_0x4357('0x12')](_0x243d96=>{if(_0x4357('0x6')!=_0x243d96['type'])return;const {data:_0x2a1d56}=_0x243d96;if(_0x2a1d56){if(_0x4357('0x7')==_0x2a1d56[_0x4357('0x27')]){const _0x35abe7=_0x2a1d56[_0x4357('0x1d')][0x0][_0x4357('0x1a')];return _0x499559(_0x2579ec(_0x5c455f,_0x35abe7?_0x4357('0x3b'):'FORMAT_REGULAR_ROW'));}if(_0x4357('0x15')==_0x2a1d56[_0x4357('0x27')]){const _0x1fd6d7=_0x2a1d56[_0x4357('0x1d')][0x0]['forceValue'];return _0x499559(_0x2579ec(_0x5c455f,_0x1fd6d7?_0x4357('0x2'):_0x4357('0x40')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3896=['root','fromRange','getSelectionAffectedTableCells','subType','length','selection','TableUtils','*Merge\x20cells*','horizontally','markMultiRangeBlockFormat','_areMergableCells','trackChanges','size','formatInline','stop','map','find','editor','registerCustomCallback','commands','registerDescriptionCallback','change','*Split\x20cell:*\x20vertically','get','set:isEnabled','isInContent','format','requires','document','accept','markBlockFormat','getSuggestions','refresh','has','table','mergeTableCellDown','forceDefaultExecution','createRangeOn','TrackChangesEditing','_descriptionFactory','plugins','execute','$graveyard','insertion','mergeTableCells','mergeTableCellRight','*Split\x20cell:*\x20horizontally','mergeTableCellUp','getFirstPosition','_suggestionFactory','formatBlock','element','value','afterInit','commandName','splitTableCellVertically','createTableWalker','enableCommand','isEnabled','push','getRanges','findAncestor','_isForcedDefaultExecutionBlock','type','deletion','author','model','_acceptFormatSuggestionCallbackFactory','cell','setSelection','getCellLocation','tableCell','add','splitTableCellHorizontally','mergeTableCellLeft','from','rootName'];(function(_0x32de74,_0x3896b5){const _0x3c23ba=function(_0x563265){while(--_0x563265){_0x32de74['push'](_0x32de74['shift']());}};_0x3c23ba(++_0x3896b5);}(_0x3896,0x139));const _0x3c23=function(_0x32de74,_0x3896b5){_0x32de74=_0x32de74-0x0;let _0x3c23ba=_0x3896[_0x32de74];return _0x3c23ba;};import{Plugin as _0xa652cc}from'ckeditor5/src/core';import _0x3906d1 from'./table';import{LiveRange as _0x78fe6}from'ckeditor5/src/engine';import{getTranslation as _0x5b036b}from'../utils/common-translations';export default class yt extends _0xa652cc{static get[_0x3c23('0x16')](){return[_0x3906d1];}[_0x3c23('0x30')](){const _0x5b5449=this['editor'],_0x5cec86=_0x5b5449['model'][_0x3c23('0x17')][_0x3c23('0x0')],_0x1f5c20=_0x5b5449['locale'];if(!_0x5b5449[_0x3c23('0x23')][_0x3c23('0x1c')]('TableEditing'))return;const _0x4a8fb6=_0x5b5449['plugins']['get']('TrackChangesEditing'),_0x3bf86f=_0x5b5449[_0x3c23('0x23')][_0x3c23('0x12')](_0x3c23('0x1')),_0x374f4f=_0x5b5449[_0x3c23('0x23')][_0x3c23('0x12')](_0x3906d1);_0x374f4f['_tablePostFixingSubtypes'][_0x3c23('0x36')](_0x3c23('0x27')),_0x4a8fb6[_0x3c23('0x34')](_0x3c23('0x27'),()=>{const _0x396663=_0x3bf86f[_0x3c23('0x4a')](_0x5b5449['model']['document'][_0x3c23('0x0')]);_0x5b5449['model'][_0x3c23('0x10')](()=>{_0x4a8fb6['markMultiRangeBlockFormat'](_0x396663,{'commandName':'mergeTableCells','commandParams':[]},[],_0x3c23('0x27'));});}),_0x5b5449[_0x3c23('0xe')][_0x3c23('0x12')](_0x3c23('0x27'))['on'](_0x3c23('0x24'),(_0x3ebe82,_0x56f41c)=>{_0x5b5449['commands']['get'](_0x3c23('0x6'))['value']&&(_0x56f41c[_0x3c23('0x4c')]>0x0&&_0x56f41c[_0x56f41c[_0x3c23('0x4c')]-0x1]&&_0x56f41c[_0x56f41c['length']-0x1][_0x3c23('0x1f')]||_0x4a8fb6[_0x3c23('0x39')]||this['_areSelectedCellsMergable']()||_0x3ebe82[_0x3c23('0x9')]());},{'priority':'highest'});for(const _0x57d381 of[_0x3c23('0x2a'),_0x3c23('0x28'),'mergeTableCellDown',_0x3c23('0x45')]){const _0x5c4d20=_0x5b5449[_0x3c23('0xe')][_0x3c23('0x12')](_0x57d381);_0x4a8fb6[_0x3c23('0x34')](_0x57d381,()=>{const _0x5434e5=_0x5b5449[_0x3c23('0x3d')]['document']['selection'][_0x3c23('0x2b')]()['getAncestors']()[_0x3c23('0xb')](_0x246293=>_0x246293['is']('element',_0x3c23('0x42'))),_0x6ac5c1=_0x5c4d20[_0x3c23('0x2f')];_0x5b5449['model'][_0x3c23('0x10')](()=>{_0x4a8fb6[_0x3c23('0x4')]([_0x5434e5,_0x6ac5c1],{'commandName':'mergeTableCells','commandParams':[]},[],_0x3c23('0x27'));});});}for(const _0x159bcb of[_0x3c23('0x32'),_0x3c23('0x44')]){const _0xae4b5a=_0x5b5449[_0x3c23('0xe')][_0x3c23('0x12')](_0x159bcb);_0x4a8fb6[_0x3c23('0x34')](_0x159bcb,()=>{const _0x2b50de=_0x3bf86f[_0x3c23('0x4a')](_0x5b5449[_0x3c23('0x3d')][_0x3c23('0x17')][_0x3c23('0x0')])[0x0],_0x329c1e=_0x2b50de[_0x3c23('0x38')](_0x3c23('0x1d')),{column:_0x2c1ba6,row:_0xf93162}=_0x3bf86f[_0x3c23('0x41')](_0x2b50de);let _0xa31dc7=[];if(_0x3c23('0x3')==_0xae4b5a['direction']){const _0x4ac427=_0x3bf86f[_0x3c23('0x33')](_0x329c1e,{'startRow':_0xf93162,'endRow':_0xf93162,'includeAllSlots':!0x0});_0xa31dc7=Array[_0x3c23('0x46')](_0x4ac427)[_0x3c23('0xa')](_0x5ec5a6=>_0x5ec5a6[_0x3c23('0x3f')]);}else{const _0x19b5f7=_0x3bf86f[_0x3c23('0x33')](_0x329c1e,{'column':_0x2c1ba6,'includeAllSlots':!0x0});_0xa31dc7=Array[_0x3c23('0x46')](_0x19b5f7)[_0x3c23('0xa')](_0x356646=>_0x356646['cell']);}_0x5b5449[_0x3c23('0x3d')][_0x3c23('0x10')](_0x27cc5f=>{_0x4a8fb6[_0x3c23('0x19')](_0x27cc5f[_0x3c23('0x20')](_0x2b50de),{'commandName':_0x159bcb,'commandParams':[]},_0xa31dc7,_0x159bcb);});});}_0x4a8fb6['_descriptionFactory'][_0x3c23('0xf')](_0x4d0cc4=>{if(_0x3c23('0x2d')!=_0x4d0cc4['type']&&'formatInline'!=_0x4d0cc4[_0x3c23('0x3a')])return;const {data:_0x48c459}=_0x4d0cc4;return _0x48c459&&_0x3c23('0x27')==_0x48c459[_0x3c23('0x31')]?{'type':_0x3c23('0x15'),'content':_0x5b036b(_0x1f5c20,_0x3c23('0x2'))}:void 0x0;}),_0x4a8fb6[_0x3c23('0x22')][_0x3c23('0xf')](_0x570619=>{if(_0x3c23('0x2d')!=_0x570619['type']&&_0x3c23('0x8')!=_0x570619[_0x3c23('0x3a')])return;const {data:_0x33af96}=_0x570619;return _0x33af96?'splitTableCellVertically'==_0x33af96['commandName']?{'type':_0x3c23('0x15'),'content':_0x5b036b(_0x1f5c20,_0x3c23('0x11'))}:_0x3c23('0x44')==_0x33af96['commandName']?{'type':_0x3c23('0x15'),'content':_0x5b036b(_0x1f5c20,_0x3c23('0x29'))}:void 0x0:void 0x0;});const _0x569337=_0x374f4f[_0x3c23('0x3e')]();for(const _0x3f8bbe of[_0x3c23('0x2a'),'mergeTableCellRight',_0x3c23('0x1e'),_0x3c23('0x45')])_0x4a8fb6[_0x3c23('0x2c')]['registerCustomCallback'](_0x3c23('0x2d'),_0x3f8bbe,'accept',_0x569337);for(const _0x531f66 of[_0x3c23('0x32'),_0x3c23('0x44')])_0x4a8fb6[_0x3c23('0x2c')]['registerCustomCallback'](_0x3c23('0x2d'),_0x531f66,_0x3c23('0x18'),_0x569337);_0x4a8fb6['_suggestionFactory'][_0x3c23('0xd')]('formatBlock',_0x3c23('0x27'),_0x3c23('0x18'),_0x65b5a2=>{_0x5b5449[_0x3c23('0x3d')][_0x3c23('0x10')](_0x31f24e=>{const _0x4fff07=Array[_0x3c23('0x46')](_0x5cec86[_0x3c23('0x37')]())[_0x3c23('0xa')](_0x270176=>_0x78fe6[_0x3c23('0x49')](_0x270176));_0x31f24e['setSelection'](_0x65b5a2),_0x5b5449[_0x3c23('0xe')][_0x3c23('0x12')](_0x3c23('0x27'))[_0x3c23('0x1b')](),_0x5b5449[_0x3c23('0x24')](_0x3c23('0x27'),{'forceDefaultExecution':!0x0});const _0x50e650=_0x4fff07['filter'](_0x2ec88a=>_0x3c23('0x25')!=_0x2ec88a[_0x3c23('0x48')][_0x3c23('0x47')]);_0x50e650['length']>0x0&&_0x31f24e[_0x3c23('0x40')](_0x50e650);for(const _0x50db4b of _0x4fff07)_0x50db4b['detach']();});});for(const _0x1ef1e0 of[_0x3c23('0x2a'),_0x3c23('0x1e'),_0x3c23('0x45'),_0x3c23('0x28')]){const _0x2a851c=_0x5b5449['commands']['get'](_0x1ef1e0);_0x2a851c['on'](_0x3c23('0x13'),(_0x1c94e4,_0x4b5913,_0x40c4c4)=>{if(_0x40c4c4){const _0x3fc3ab=_0x5b5449[_0x3c23('0x3d')][_0x3c23('0x17')][_0x3c23('0x0')][_0x3c23('0x2b')]()['getAncestors']()[_0x3c23('0xb')](_0x2a67d5=>_0x2a67d5['is'](_0x3c23('0x2e'),_0x3c23('0x42')));this[_0x3c23('0x5')](_0x2a851c[_0x3c23('0x2f')],_0x3fc3ab)||(_0x1c94e4['return']=!0x1,_0x1c94e4[_0x3c23('0x9')]());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x15ce6c=this[_0x3c23('0xc')][_0x3c23('0xe')][_0x3c23('0x12')](_0x3c23('0x27')),_0x96c26f=this['editor']['plugins'][_0x3c23('0x12')]('TableUtils');if(!_0x15ce6c[_0x3c23('0x35')])return!0x1;const _0xed9621=_0x96c26f[_0x3c23('0x4a')](this['editor']['model'][_0x3c23('0x17')]['selection']);for(const _0x1ca606 of _0xed9621)for(const _0x1f4bcc of _0xed9621)if(_0x1ca606!=_0x1f4bcc&&!this['_areMergableCells'](_0x1ca606,_0x1f4bcc))return!0x1;return!0x0;}[_0x3c23('0x5')](_0x45f955,_0x4797c3){const _0x39b716=this[_0x3c23('0xc')][_0x3c23('0x23')]['get'](_0x3c23('0x21')),_0x3c8b8e=this['editor'][_0x3c23('0x3d')][_0x3c23('0x20')](_0x45f955),_0x3a47a9=this[_0x3c23('0xc')][_0x3c23('0x3d')]['createRangeOn'](_0x4797c3),_0x2a651e=new Set(),_0x50d9e3=new Set();for(const _0x125512 of _0x39b716[_0x3c23('0x1a')]())if((_0x3c23('0x26')==_0x125512[_0x3c23('0x3a')]||_0x3c23('0x3b')==_0x125512['type']||'mergeTableCells'==_0x125512[_0x3c23('0x4b')])&&_0x125512[_0x3c23('0x14')])for(const _0x3a4c44 of _0x125512[_0x3c23('0x37')]())_0x3a4c44['containsRange'](_0x3c8b8e,!0x0)&&_0x2a651e[_0x3c23('0x43')](_0x125512[_0x3c23('0x3a')]+':'+_0x125512[_0x3c23('0x3c')]['id']),_0x3a4c44['containsRange'](_0x3a47a9,!0x0)&&_0x50d9e3[_0x3c23('0x43')](_0x125512['type']+':'+_0x125512[_0x3c23('0x3c')]['id']);if(_0x2a651e['size']!=_0x50d9e3[_0x3c23('0x7')])return!0x1;for(const _0x53331e of _0x2a651e)if(!_0x50d9e3[_0x3c23('0x1c')](_0x53331e))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a5a=['ELEMENT_TABLE_OF_CONTENTS','get','editor','insertTableOfContents','tableOfContents','locale','afterInit','commands','TrackChangesEditing','plugins','enableCommand'];(function(_0x261e57,_0x5a5a82){const _0x59dd0f=function(_0x590b07){while(--_0x590b07){_0x261e57['push'](_0x261e57['shift']());}};_0x59dd0f(++_0x5a5a82);}(_0x5a5a,0x104));const _0x59dd=function(_0x261e57,_0x5a5a82){_0x261e57=_0x261e57-0x0;let _0x59dd0f=_0x5a5a[_0x261e57];return _0x59dd0f;};import{Plugin as _0x4c3ed0}from'ckeditor5/src/core';import{getTranslation as _0x1d685b}from'../utils/common-translations';export default class _t extends _0x4c3ed0{[_0x59dd('0xa')](){const _0x2fba0e=this[_0x59dd('0x6')];if(!_0x2fba0e[_0x59dd('0x0')][_0x59dd('0x5')](_0x59dd('0x7')))return;_0x2fba0e[_0x59dd('0x2')][_0x59dd('0x5')](_0x59dd('0x1'))[_0x59dd('0x3')](_0x59dd('0x7'));const _0x2eba4c=_0x2fba0e[_0x59dd('0x2')][_0x59dd('0x5')](_0x59dd('0x1')),_0x5e1592=_0x2fba0e[_0x59dd('0x9')];_0x2eba4c['_descriptionFactory']['registerElementLabel'](_0x59dd('0x8'),_0x4dd15c=>_0x1d685b(_0x5e1592,_0x59dd('0x4'),_0x4dd15c));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4380=['_getSuggestion','getFirstPosition','model','tableCellBorderColor','_descriptionFactory','pluginName','discard','handleDiscardAction','start','markBlockFormat','subType','registerDescriptionCallback','accept','table','enableCommand','tableHeight','getSuggestions','tableBorderWidth','getSuggestionCallback','getSelectionAffectedTableCells','selection','commandParams','TrackChangesEditing','tableCellVerticalAlignment','editor','handleSuggestionDescription','tableBorderColor','registerCustomCallback','setAttribute','plugins','has','tableCellHorizontalAlignment','tableBorderStyle','batch','TrackChangesTableProperties','nodeAfter','getContainedElement','join','tableAlignment','_suggestionFactory','formatBlock','findAncestor','TableUtils','data','format','tableCellHeight','tableCellPadding','enqueueChange','afterInit','tableProperties','tableCellBorderWidth','get','_handlePropertyChange','tableCellProperties','document','tableCellBorderStyle','locale'];(function(_0x5e4d14,_0x438061){const _0x43cf02=function(_0x5dccc6){while(--_0x5dccc6){_0x5e4d14['push'](_0x5e4d14['shift']());}};_0x43cf02(++_0x438061);}(_0x4380,0x1f0));const _0x43cf=function(_0x5e4d14,_0x438061){_0x5e4d14=_0x5e4d14-0x0;let _0x43cf02=_0x4380[_0x5e4d14];return _0x43cf02;};import{Plugin as _0x243a6a}from'ckeditor5/src/core';import{getTranslation as _0x43dcca}from'../utils/common-translations';export default class Mt extends _0x243a6a{constructor(_0x6458b1){super(_0x6458b1),this['tableProperties']=[_0x43cf('0x2b'),_0x43cf('0x31'),_0x43cf('0x22'),_0x43cf('0x37'),'tableWidth',_0x43cf('0x20'),'tableBackgroundColor'],this[_0x43cf('0xd')]=[_0x43cf('0x14'),_0x43cf('0xf'),_0x43cf('0xa'),_0x43cf('0x6'),'tableCellWidth',_0x43cf('0x5'),'tableCellBackgroundColor',_0x43cf('0x30'),_0x43cf('0x28')];}static get[_0x43cf('0x16')](){return _0x43cf('0x33');}[_0x43cf('0x8')](){const _0x21587a=this['editor'][_0x43cf('0x2e')][_0x43cf('0xb')](_0x43cf('0x27'));if(this[_0x43cf('0x29')]['plugins']['has']('TablePropertiesEditing')){for(const _0x211f79 of this[_0x43cf('0x9')])_0x21587a[_0x43cf('0x1f')](_0x211f79,(_0x326b26,_0x5d60e9)=>{const _0x3cda1a=this[_0x43cf('0x29')][_0x43cf('0x13')][_0x43cf('0xe')]['selection'][_0x43cf('0x12')]()[_0x43cf('0x1')](_0x43cf('0x1e'));this[_0x43cf('0xc')](_0x211f79,[_0x3cda1a],this[_0x43cf('0x9')],_0x43cf('0x9'),_0x326b26,_0x5d60e9);});_0x21587a['_suggestionFactory']['registerCustomCallback'](_0x43cf('0x0'),_0x43cf('0x9'),_0x43cf('0x1d'),_0x21587a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,_0x43cf('0x17'))),_0x21587a[_0x43cf('0x38')][_0x43cf('0x2c')](_0x43cf('0x0'),'tableProperties','discard',(_0x2ad16a,_0x4a65e7)=>this['handleDiscardAction'](this[_0x43cf('0x9')],_0x2ad16a,_0x4a65e7)),_0x21587a['_suggestionFactory'][_0x43cf('0x2c')](_0x43cf('0x0'),_0x43cf('0x9'),_0x43cf('0x36'),()=>!0x1);}if(this[_0x43cf('0x29')][_0x43cf('0x2e')][_0x43cf('0x2f')]('TableCellPropertiesEditing')){for(const _0x532dcd of this[_0x43cf('0xd')])_0x21587a[_0x43cf('0x1f')](_0x532dcd,(_0x1c3c68,_0xad084f)=>{const _0x1eb688=this[_0x43cf('0x29')][_0x43cf('0x2e')]['get'](_0x43cf('0x2'))[_0x43cf('0x24')](this[_0x43cf('0x29')][_0x43cf('0x13')][_0x43cf('0xe')][_0x43cf('0x25')]);this['_handlePropertyChange'](_0x532dcd,_0x1eb688,this[_0x43cf('0xd')],_0x43cf('0xd'),_0x1c3c68,_0xad084f);});_0x21587a[_0x43cf('0x38')]['registerCustomCallback'](_0x43cf('0x0'),'tableCellProperties',_0x43cf('0x1d'),_0x21587a[_0x43cf('0x38')][_0x43cf('0x23')](_0x43cf('0x0'),null,_0x43cf('0x17'))),_0x21587a[_0x43cf('0x38')][_0x43cf('0x2c')](_0x43cf('0x0'),_0x43cf('0xd'),_0x43cf('0x17'),(_0x2353dd,_0x36714f)=>this['handleDiscardAction'](this[_0x43cf('0xd')],_0x2353dd,_0x36714f)),_0x21587a[_0x43cf('0x38')][_0x43cf('0x2c')](_0x43cf('0x0'),_0x43cf('0xd'),_0x43cf('0x36'),()=>!0x1);}_0x21587a[_0x43cf('0x15')][_0x43cf('0x1c')](_0x124f2c=>this[_0x43cf('0x2a')](_0x124f2c));}[_0x43cf('0xc')](_0x3036f6,_0x5ba725,_0x3d880e,_0x3e598f,_0x519d3d,_0x5154c3){const _0x16162d=this[_0x43cf('0x29')][_0x43cf('0x2e')][_0x43cf('0xb')](_0x43cf('0x27'));this[_0x43cf('0x29')][_0x43cf('0x13')][_0x43cf('0x7')](_0x5154c3[_0x43cf('0x32')],()=>{for(const _0x2f4743 of _0x5ba725){if(this[_0x43cf('0x11')](_0x2f4743,_0x3e598f))_0x519d3d(_0x5154c3);else{const _0x4edacc={};for(const _0x1ddcbe of _0x3d880e){const _0x34e2bc=_0x2f4743['getAttribute'](_0x1ddcbe);void 0x0!==_0x34e2bc&&(_0x4edacc[_0x1ddcbe]=_0x34e2bc);}_0x519d3d(_0x5154c3),_0x16162d[_0x43cf('0x1a')](_0x2f4743,{'commandParams':[_0x4edacc]},[],_0x3e598f);}}});}[_0x43cf('0x18')](_0x50b009,_0x5b34e5,_0x57d66c){const _0x4e6c12=_0x5b34e5[0x0][_0x43cf('0x19')][_0x43cf('0x34')],_0x49e015=_0x57d66c[_0x43cf('0x26')][0x0];this[_0x43cf('0x29')][_0x43cf('0x13')]['change'](_0x555f27=>{for(const _0x45c651 of _0x50b009)void 0x0!==_0x49e015[_0x45c651]?_0x555f27[_0x43cf('0x2d')](_0x45c651,_0x49e015[_0x45c651],_0x4e6c12):_0x555f27['removeAttribute'](_0x45c651,_0x4e6c12);});}[_0x43cf('0x2a')](_0x3197e1){if(_0x3197e1[_0x43cf('0x3')])switch(_0x3197e1['subType']){case _0x43cf('0x9'):return{'type':_0x43cf('0x4'),'content':_0x43dcca(this['editor'][_0x43cf('0x10')],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':_0x43cf('0x4'),'content':_0x43dcca(this[_0x43cf('0x29')]['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x43cf('0x11')](_0x14ffc0,_0x5751b1){const _0x3568f0=this[_0x43cf('0x29')][_0x43cf('0x2e')][_0x43cf('0xb')](_0x43cf('0x27'));for(const _0x38dd37 of _0x3568f0[_0x43cf('0x21')]({'skipNotAttached':!0x0})){const _0x49581e=_0x38dd37[_0x43cf('0x35')]();if(_0x38dd37[_0x43cf('0x1b')]===_0x5751b1&&_0x49581e===_0x14ffc0)return _0x38dd37;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3155=['afterInit','get','has','insertTemplate','Template','enableCommand'];(function(_0x1a7064,_0x31556d){const _0x38c19a=function(_0x35333f){while(--_0x35333f){_0x1a7064['push'](_0x1a7064['shift']());}};_0x38c19a(++_0x31556d);}(_0x3155,0xd3));const _0x38c1=function(_0x1a7064,_0x31556d){_0x1a7064=_0x1a7064-0x0;let _0x38c19a=_0x3155[_0x1a7064];return _0x38c19a;};import{Plugin as _0x251e99}from'ckeditor5/src/core';export default class vt extends _0x251e99{[_0x38c1('0x5')](){const _0x372c05=this['editor'];_0x372c05['plugins'][_0x38c1('0x1')](_0x38c1('0x3'))&&_0x372c05['plugins'][_0x38c1('0x0')]('TrackChangesEditing')[_0x38c1('0x4')](_0x38c1('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x549d=['suggestion','_splitMarkerName','TrackChangesEditing','nodeBefore','ELEMENT_TITLE','getChangedMarkers','removeMarker','registerElementLabel','forward','afterInit','Title','element','updateMarker','title-content','schema','document','start','plugins','end','from','_descriptionFactory','createRange','isTouching','model','locale','differ','editor','newRange','has','isEqual','isCollapsed'];(function(_0x4b6809,_0x549d30){const _0x598881=function(_0x44964e){while(--_0x44964e){_0x4b6809['push'](_0x4b6809['shift']());}};_0x598881(++_0x549d30);}(_0x549d,0x1a1));const _0x5988=function(_0x4b6809,_0x549d30){_0x4b6809=_0x4b6809-0x0;let _0x598881=_0x549d[_0x4b6809];return _0x598881;};import{Plugin as _0x513ffa}from'ckeditor5/src/core';import{getTranslation as _0x4f7371}from'../utils/common-translations';export default class Ct extends _0x513ffa{[_0x5988('0x1a')](){const _0x246cd5=this[_0x5988('0xc')];if(!_0x246cd5[_0x5988('0x3')][_0x5988('0xe')](_0x5988('0x1b')))return;const _0x3abf09=_0x246cd5[_0x5988('0x3')]['get'](_0x5988('0x13'));_0x3abf09[_0x5988('0x6')][_0x5988('0x18')](_0x5988('0x1e'),()=>_0x4f7371(_0x246cd5[_0x5988('0xa')],_0x5988('0x15'))),_0x246cd5[_0x5988('0x9')][_0x5988('0x1')]['registerPostFixer'](_0x3db1a9=>{let _0x2fb72e=!0x1;const _0x57e5c9=Array[_0x5988('0x5')](_0x246cd5[_0x5988('0x9')][_0x5988('0x1')][_0x5988('0xb')][_0x5988('0x16')]());for(const {name:_0x948e85,data:_0x220579}of _0x57e5c9){const {group:_0x43ce25}=_0x3abf09[_0x5988('0x12')](_0x948e85);if(_0x5988('0x11')!==_0x43ce25||!_0x220579[_0x5988('0xd')])continue;const _0x56dcd3=_0x220579['newRange'],_0x287a16=_0x56dcd3[_0x5988('0x4')][_0x5988('0x14')];if(!_0x287a16||!_0x287a16['is'](_0x5988('0x1c'),_0x5988('0x1e')))continue;if(!_0x56dcd3[_0x5988('0x2')][_0x5988('0x8')](_0x56dcd3[_0x5988('0x4')]))continue;const _0x57a096=_0x246cd5[_0x5988('0x9')][_0x5988('0x0')]['getNearestSelectionRange'](_0x56dcd3[_0x5988('0x4')],_0x5988('0x19'));if(_0x57a096&&_0x57a096[_0x5988('0x10')]){const _0x3eb3e3=_0x3db1a9[_0x5988('0x7')](_0x56dcd3[_0x5988('0x2')],_0x57a096[_0x5988('0x2')]);_0x3eb3e3[_0x5988('0xf')](_0x56dcd3)||(_0x3db1a9[_0x5988('0x1d')](_0x948e85,{'range':_0x3eb3e3}),_0x2fb72e=!0x0);}_0x2fb72e||(_0x3db1a9[_0x5988('0x17')](_0x948e85),_0x2fb72e=!0x0);}return _0x2fb72e;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3dd0=['plugins','has','afterInit','editor','UndoEditing','enableCommand','TrackChangesEditing','get'];(function(_0x366cf0,_0x3dd080){const _0x17e01c=function(_0x59d81f){while(--_0x59d81f){_0x366cf0['push'](_0x366cf0['shift']());}};_0x17e01c(++_0x3dd080);}(_0x3dd0,0x148));const _0x17e0=function(_0x366cf0,_0x3dd080){_0x366cf0=_0x366cf0-0x0;let _0x17e01c=_0x3dd0[_0x366cf0];return _0x17e01c;};import{Plugin as _0x31da7}from'ckeditor5/src/core';export default class Dt extends _0x31da7{[_0x17e0('0x2')](){const _0x4929a0=this[_0x17e0('0x3')],_0x5ce558=_0x4929a0[_0x17e0('0x0')][_0x17e0('0x7')](_0x17e0('0x6'));_0x4929a0[_0x17e0('0x0')][_0x17e0('0x1')](_0x17e0('0x4'))&&(_0x5ce558[_0x17e0('0x5')]('undo'),_0x5ce558[_0x17e0('0x5')]('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24cf=['push','span','element','listIndent','activeMarkers','name','get','test','markerName','hasAttribute','plugins','schema','writer','isAtEnd','getItems','getCustomProperty','nextSibling','addHighlight','parent','isLimit','consumable','toViewPosition','bindElementToMarker','TrackChangesEditing','mapper','ck-suggestion-marker-','previousPosition','type','listItem','start','toViewElement','isContent','markerRange','addClass','item','createRangeOn'];(function(_0xc2826b,_0x24cf67){const _0x407279=function(_0x288bd3){while(--_0x288bd3){_0xc2826b['push'](_0xc2826b['shift']());}};_0x407279(++_0x24cf67);}(_0x24cf,0x97));const _0x4072=function(_0xc2826b,_0x24cf67){_0xc2826b=_0xc2826b-0x0;let _0x407279=_0x24cf[_0xc2826b];return _0x407279;};export function getRangesWithAttribute(_0x3e7d8a,_0x533266,_0x50ef5b){const _0x3bd4b8=[];for(const _0x1d95b2 of _0x533266[_0x4072('0x7')]())_0x1d95b2[_0x4072('0x2')](_0x3e7d8a)&&_0x3bd4b8[_0x4072('0x1d')](_0x50ef5b[_0x4072('0x1c')](_0x1d95b2));return _0x3bd4b8;}export function getElementsAffectedByListItemRename(_0x4a785c){const _0x58f538=[];if(_0x4a785c['is']('element',_0x4072('0x15'))){let _0x149ee6=_0x4a785c[_0x4072('0x9')];for(;_0x149ee6&&_0x149ee6['is'](_0x4072('0x1f'),_0x4072('0x15'))&&_0x149ee6['getAttribute'](_0x4072('0x20'))>0x0;)_0x58f538[_0x4072('0x1d')](_0x149ee6),_0x149ee6=_0x149ee6[_0x4072('0x9')];}return _0x58f538;}export function downcastSplitMergeMarker(_0x16d738,_0x1eff67,{showActiveMarker:_0x2fbb14=!0x0}={}){const _0x2e0912=_0x16d738[_0x4072('0x3')][_0x4072('0x23')](_0x4072('0x10'));return(_0x1480ad,_0x221cf3,_0x2b9384)=>{if(!_0x2b9384[_0x4072('0xd')][_0x4072('0x0')](_0x221cf3['markerRange'],_0x1480ad[_0x4072('0x22')]))return;const _0x347926=_0x221cf3[_0x4072('0x19')]['getWalker'](),_0x2b0260=_0x221cf3[_0x4072('0x19')][_0x4072('0x16')],_0x3129b0=_0x16d738['model'][_0x4072('0x4')];let _0x215688=null,_0x1983b4=null,_0x391fe1=!0x1,_0x117879=!0x1;for(const _0x29678b of _0x347926){const _0x4dad13=_0x29678b[_0x4072('0x1b')];_0x391fe1=_0x391fe1||_0x3129b0[_0x4072('0x18')](_0x4dad13);const _0x54b9cb=_0x2b9384[_0x4072('0x11')][_0x4072('0x17')](_0x4dad13);if(_0x54b9cb&&_0x54b9cb[_0x4072('0x8')](_0x4072('0xa')))return;'elementEnd'==_0x29678b[_0x4072('0x14')]&&(_0x3129b0['isBlock'](_0x4dad13)&&!_0x3129b0[_0x4072('0xc')](_0x4dad13)&&(_0x4dad13[_0x4072('0x9')]||_0x2b0260[_0x4072('0x6')]?_0x215688&&_0x215688[_0x4072('0xb')]==_0x4dad13||(_0x215688=_0x4dad13,_0x2bda53(_0x29678b[_0x4072('0x13')]),_0x117879=!0x0):_0x1983b4=_0x1983b4||_0x29678b[_0x4072('0x13')]));}function _0x2bda53(_0x3bbabf){const _0x1b1369=_0x2b9384['writer']['createUIElement'](_0x4072('0x1e'),{'class':_0x4072('0x12')+_0x1eff67}),_0x206c3d=_0x2b9384[_0x4072('0x11')][_0x4072('0xe')](_0x3bbabf);_0x2fbb14&&_0x2e0912[_0x4072('0x21')]['includes'](_0x221cf3['markerName'])&&_0x2b9384[_0x4072('0x5')][_0x4072('0x1a')]('ck-suggestion-marker--active',_0x1b1369),_0x2b9384[_0x4072('0x5')]['insert'](_0x206c3d,_0x1b1369),_0x2b9384[_0x4072('0x11')][_0x4072('0xf')](_0x1b1369,_0x221cf3[_0x4072('0x1')]);}_0x391fe1||_0x117879||!_0x1983b4||_0x2bda53(_0x1983b4);};}
|