@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230828.0 → 0.0.0-nightly-20230830.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/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.d.ts +29 -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 _0x3cc4=['getChildren','selection','endColumn','getRanges','createRange','nodeAfter','createElement','plugins','TableUtils','getRows','cells','commands','_getCoordsForCells','columns','tablePasteRow','deletion','options','locale','deletionRanges','registerCustomCallback','content','getSuggestionCallback','last','isEmpty','newRange','dataDowncast','schema','insertion','removeMarker','row','markerName','startsWith','markMultiRangeBlockFormat','length','_splitMarkerName','$graveyard','getChangedMarkers','getTableIfOnlyTableInContent','suggestion','view','tablePasteChainId','table','setAttributes','next','ck-suggestion-marker-insertion','suggestion:formatBlock:tablePasteCell','tableCellBorderColor','for','getAllAdjacentSuggestions','activeMarkers','end','editingDowncast','change','join','editing','fromEntries','first','insertColumns','TableClipboard','hasSuggestion','forceDefaultExecution','getRange','formatBlock','position','paragraph','_isForcedDefaultExecutionBlock','has','tablePasteColumn','removeRows','createTableWalker','author','insertContent','differ','remove','_replaceTableSlotCell','model','ck-suggestion-marker--active','suggestion-td','element','oldRange','includes','findAncestor','register','rowInsertionIndexes','getSelectionAffectedTableCells','getRowIndexes','get','document','elementToElement','redo','getContainedElement','unwrap','insertionRanges','tablePaste','markerAttributes','type','getColumnIndexes','isInContent','name','add','suggestionLoaded','showSuggestionHighlights','batch','registerPostFixer','requires','rootName','listenTo','find','_descriptionFactory','fill','getMarkers','containsRange','map','afterInit','stop','getColumns','previousSibling','set','attributes','tableCellPadding','getSuggestions','editor','tableCellBorderStyle','clipboardOutput','createRangeIn','accept','rowInsertionRanges','tableCellSuggestion','getSuggestion','createRangeOn','start','reduce','setAttribute','filter','column','high','markerToHighlight','getChild','subType','isEqual','keys','insert','return','getAttributes','previous','tableCellBackgroundColor','_suggestionFactory','discard','conversion','every','markMultiRangeInsertion','columnInsertionRanges','tablePasteCell','push','Users','move','documentSelection','tableCell','endRow','root'];(function(_0x4f6c14,_0x3cc442){const _0x44ef49=function(_0x4111dc){while(--_0x4111dc){_0x4f6c14['push'](_0x4f6c14['shift']());}};_0x44ef49(++_0x3cc442);}(_0x3cc4,0x1b1));const _0x44ef=function(_0x4f6c14,_0x3cc442){_0x4f6c14=_0x4f6c14-0x0;let _0x44ef49=_0x3cc4[_0x4f6c14];return _0x44ef49;};import{getTranslation as _0xb8ca73}from'../utils/common-translations';import{Plugin as _0x59aaaf}from'ckeditor5/src/core';import{uid as _0x339c67,priorities as _0x24d7b4}from'ckeditor5/src/utils';import _0x4c4f6a from'./table';const le=['tableCellBorderWidth',_0x44ef('0x5d'),_0x44ef('0x9'),'tableCellHorizontalAlignment','tableCellVerticalAlignment',_0x44ef('0x20'),_0x44ef('0x6')],ae=Object[_0x44ef('0x66')](le['map'](_0x79b13b=>[_0x79b13b,null]));export default class kt extends _0x59aaaf{static get[_0x44ef('0x97')](){return[_0x4c4f6a];}[_0x44ef('0x0')](){const _0x325541=this[_0x44ef('0x8')];if(!_0x325541['plugins']['has']('TableClipboard'))return;const _0x4fbe1a=_0x325541['plugins'][_0x44ef('0x85')]('TrackChangesEditing'),_0x483d1f=_0x325541['plugins'][_0x44ef('0x85')](_0x44ef('0x37')),_0x3fe309=_0x325541[_0x44ef('0x36')][_0x44ef('0x85')](_0x4c4f6a),_0x1ba4e2=_0x325541[_0x44ef('0x36')][_0x44ef('0x85')](_0x44ef('0x69'));_0x3fe309['_tablePostFixingSubtypes'][_0x44ef('0x28')](_0x44ef('0x3d'),'tablePasteColumn'),_0x325541[_0x44ef('0x7a')][_0x44ef('0x49')][_0x44ef('0x81')](_0x44ef('0xe'),{'allowIn':_0x44ef('0x2c'),'allowContentOf':_0x44ef('0x2c'),'isLimit':!0x0}),_0x325541[_0x44ef('0x23')][_0x44ef('0x87')]({'model':_0x44ef('0xe'),'view':_0x44ef('0x7c')});let _0x2128fa=null;_0x325541[_0x44ef('0x7a')]['on']('insertContent',(_0x518430,_0x3aae15)=>{const [_0x337326,_0x3629b8]=_0x3aae15,_0x43d822=_0x3aae15[_0x3aae15['length']-0x1];_0x43d822&&_0x43d822[_0x44ef('0x6b')]||_0x4fbe1a[_0x44ef('0x70')]||this['editor'][_0x44ef('0x3a')][_0x44ef('0x85')]('trackChanges')['value']&&function(_0x32fac3,_0x9c7854,_0x4fd0b3,_0x5f3481,_0x2c1731){if(_0x9c7854&&!_0x9c7854['is'](_0x44ef('0x2b')))return!0x1;const _0x1acad6=_0x2c1731[_0x44ef('0x54')](_0x32fac3,_0x4fd0b3);if(!_0x1acad6||!fe(_0x1acad6,void 0x0,_0x5f3481))return!0x1;const _0x31aafc=_0x5f3481[_0x44ef('0x83')](_0x4fd0b3[_0x44ef('0x86')][_0x44ef('0x30')]);if(!_0x31aafc['length'])return!0x1;const _0x16ad9c=_0x31aafc[0x0]['findAncestor'](_0x44ef('0x58')),_0x453b5a=_0x5f3481[_0x44ef('0x84')](_0x31aafc),_0xee3aeb=_0x5f3481[_0x44ef('0x8f')](_0x31aafc),_0x4e973d={'startRow':_0x453b5a[_0x44ef('0x67')],'endRow':_0x453b5a['last'],'startColumn':_0xee3aeb[_0x44ef('0x67')],'endColumn':_0xee3aeb[_0x44ef('0x45')]};return 0x1==_0x31aafc[_0x44ef('0x50')]&&(_0x4e973d[_0x44ef('0x2d')]+=_0x5f3481[_0x44ef('0x38')](_0x1acad6)-0x1,_0x4e973d[_0x44ef('0x31')]+=_0x5f3481[_0x44ef('0x2')](_0x1acad6)-0x1),fe(_0x16ad9c,_0x4e973d,_0x5f3481);}(_0x337326,_0x3629b8,_0x325541['model'],_0x483d1f,_0x1ba4e2)&&(_0x518430[_0x44ef('0x1')](),_0x2128fa={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x325541[_0x44ef('0x7a')][_0x44ef('0x63')](()=>{_0x325541[_0x44ef('0x7a')][_0x44ef('0x76')](_0x3aae15[0x0],_0x3aae15[0x1],_0x3aae15[0x2],{'forceDefaultExecution':!0x0});const _0x16de3c=_0x339c67(),{rowInsertionRanges:_0xc1350,columnInsertionRanges:_0x1b7a23,insertionRanges:_0x563712,deletionRanges:_0x3678c7,cells:_0x4eef24}=_0x2128fa;_0xc1350[_0x44ef('0x50')]&&_0x4fbe1a[_0x44ef('0x25')](_0xc1350,_0x44ef('0x3d'),{'tablePasteChainId':_0x16de3c}),_0x1b7a23[_0x44ef('0x50')]&&_0x4fbe1a[_0x44ef('0x25')](_0x1b7a23,_0x44ef('0x72'),{'tablePasteChainId':_0x16de3c}),_0x563712['length']&&_0x4fbe1a[_0x44ef('0x25')](_0x563712,_0x44ef('0x8c'),{'tablePasteChainId':_0x16de3c,'skipNestingCheck':!0x0}),_0x3678c7[_0x44ef('0x50')]&&_0x4fbe1a['markMultiRangeDeletion'](_0x3678c7,'tablePaste',{'tablePasteChainId':_0x16de3c,'skipNestingCheck':!0x0});const _0x4d4366=_0x4fbe1a[_0x44ef('0x4f')](_0x4eef24[_0x44ef('0x9f')](({element:_0x4ccffb})=>_0x4ccffb),{'formatGroupId':_0x339c67()},[],'tablePasteCell',{'tablePasteChainId':_0x16de3c});if(_0x4d4366){const _0x438f13=_0x4d4366[_0x44ef('0x9d')](),_0x2fd229=[];for(const {element:_0x258411,attributes:_0x4b1cf9}of _0x4eef24){if(!_0x4b1cf9)continue;const _0x420108=_0x325541[_0x44ef('0x7a')]['createRangeOn'](_0x258411),_0x4c2302=_0x438f13[_0x44ef('0x9a')](_0xad0860=>_0xad0860[_0x44ef('0x6c')]()[_0x44ef('0x1a')](_0x420108));_0x4c2302&&_0x2fd229[_0x44ef('0x28')]([_0x4c2302[_0x44ef('0x91')],_0x4b1cf9]);}_0x2fd229[_0x44ef('0x50')]&&_0x4d4366[_0x44ef('0x13')](_0x44ef('0x8d'),Object[_0x44ef('0x66')](_0x2fd229));}_0x2128fa=null;}));},{'priority':_0x24d7b4[_0x44ef('0x16')]+0xa}),_0x325541[_0x44ef('0x36')]['get'](_0x44ef('0x69'))['on'](_0x44ef('0x79'),(_0x583065,_0x2cb1cc)=>{const [_0x321115,_0x150dd2,,_0xfe1747]=_0x2cb1cc;if(!_0x2128fa)return;_0x583065['stop']();const _0x49d1f9=_0x321115['cell'],_0x4f8944=_0x150dd2,_0x5dad55=ce(_0x49d1f9),_0x3f12de=ce(_0x4f8944);_0x583065[_0x44ef('0x1d')]=_0x49d1f9;let _0x22c25f=null,_0x2805f0=null;if(_0x3f12de||_0x5dad55){if(_0x5dad55&&!_0x3f12de){_0xfe1747['remove'](_0x49d1f9[_0x44ef('0x18')](0x0));for(const _0x23d960 of Array['from'](_0x4f8944[_0x44ef('0x2f')]()))_0xfe1747[_0x44ef('0x1c')](_0x23d960,_0x49d1f9,'end');const _0x21ae8a=_0x2128fa[_0x44ef('0x82')]['includes'](_0x321115[_0x44ef('0x4c')]),_0x1bbe34=_0x2128fa['columnInsertionIndexes'][_0x44ef('0x7f')](_0x321115[_0x44ef('0x15')]);_0x21ae8a||_0x1bbe34||(_0x22c25f=_0xfe1747[_0x44ef('0xb')](_0x49d1f9));}else _0x3f12de&&!_0x5dad55&&(_0x2805f0=_0xfe1747[_0x44ef('0xb')](_0x49d1f9));}else{const _0x18da22=_0xfe1747[_0x44ef('0x35')]('tableCellSuggestion'),_0x5ac908=_0xfe1747[_0x44ef('0x35')](_0x44ef('0xe'));_0xfe1747['wrap'](_0xfe1747[_0x44ef('0xb')](_0x49d1f9),_0x5ac908),_0xfe1747['insert'](_0x18da22,_0x49d1f9,0x0);for(const _0x1b22e8 of Array['from'](_0x4f8944['getChildren']()))_0xfe1747[_0x44ef('0x1c')](_0x1b22e8,_0x18da22,_0x44ef('0x61'));_0x22c25f=_0xfe1747[_0x44ef('0x10')](_0x18da22),_0x2805f0=_0xfe1747[_0x44ef('0x10')](_0x5ac908);}const _0x5065d3=Array['from'](_0x4f8944[_0x44ef('0x1e')]())[_0x44ef('0x14')](([_0x48c39a])=>le['includes'](_0x48c39a));_0x2128fa[_0x44ef('0x39')]['push']({'element':_0x49d1f9,'attributes':_0x5065d3['length']?Object[_0x44ef('0x66')](_0x5065d3):null}),_0x22c25f&&_0x2128fa[_0x44ef('0x8b')][_0x44ef('0x28')](_0x22c25f),_0x2805f0&&_0x2128fa[_0x44ef('0x41')][_0x44ef('0x28')](_0x2805f0);},{'priority':_0x44ef('0x16')}),_0x483d1f['on'](_0x44ef('0x68'),(_0x531d09,_0x403699)=>{const [_0x3217b7,_0x48ffe2={}]=_0x403699;if(!_0x2128fa)return;const _0x4bfecf=_0x48ffe2['at']||0x0,_0x44b8b4=_0x48ffe2[_0x44ef('0x3c')]||0x1;_0x2128fa['columnInsertionIndexes']=new Array(_0x44b8b4)['fill'](_0x4bfecf)[_0x44ef('0x9f')]((_0x326f49,_0x19c40a)=>_0x326f49+_0x19c40a);for(const {cell:_0x40c4de}of _0x483d1f[_0x44ef('0x74')](_0x3217b7,{'startColumn':_0x4bfecf,'endColumn':_0x4bfecf+_0x44b8b4-0x1}))_0x2128fa[_0x44ef('0x26')][_0x44ef('0x28')](_0x325541['model'][_0x44ef('0x10')](_0x40c4de));},{'priority':'low'}),_0x483d1f['on']('insertRows',(_0x402792,_0x288b0b)=>{const [_0x4af727,_0x3868ab={}]=_0x288b0b;if(!_0x2128fa)return;const _0x5132a5=_0x3868ab['at']||0x0,_0x480b37=_0x3868ab['rows']||0x1;_0x2128fa[_0x44ef('0x82')]=new Array(_0x480b37)[_0x44ef('0x9c')](_0x5132a5)[_0x44ef('0x9f')]((_0x5cc3a9,_0xb5e981)=>_0x5cc3a9+_0xb5e981);for(const {cell:_0x2e8d90}of _0x483d1f[_0x44ef('0x74')](_0x4af727,{'startRow':_0x5132a5,'endRow':_0x5132a5+_0x480b37-0x1}))_0x2128fa[_0x44ef('0xd')][_0x44ef('0x28')](_0x325541[_0x44ef('0x7a')][_0x44ef('0x10')](_0x2e8d90));},{'priority':'low'}),_0x4fbe1a[_0x44ef('0x9b')]['registerDescriptionCallback'](_0x137a92=>{if(_0x137a92[_0x44ef('0x19')]&&_0x137a92['subType'][_0x44ef('0x4e')]('tablePaste'))return _0x137a92['previous']?{}:{'type':_0x44ef('0x4a'),'content':_0xb8ca73(_0x325541[_0x44ef('0x40')],'*Replace\x20table\x20cells*')};});const _0x553209=()=>{};for(const _0x464403 of['tablePaste',_0x44ef('0x72'),_0x44ef('0x3d'),_0x44ef('0x27')])_0x4fbe1a[_0x44ef('0x21')]['registerCustomCallback'](_0x44ef('0x4a'),_0x464403,_0x44ef('0x64'),_0x553209),_0x4fbe1a['_suggestionFactory'][_0x44ef('0x42')](_0x44ef('0x3e'),_0x464403,_0x44ef('0x64'),_0x553209);_0x4fbe1a[_0x44ef('0x21')][_0x44ef('0x42')](_0x44ef('0x6d'),_0x44ef('0x27'),_0x44ef('0x22'),_0x553209),_0x4fbe1a[_0x44ef('0x21')][_0x44ef('0x42')]('formatBlock',_0x44ef('0x27'),_0x44ef('0xc'),(_0xb32d7c,_0x5575df,_0x54a7a7)=>{const _0x1c307e=_0xb32d7c['map'](_0x530110=>_0x530110[_0x44ef('0x89')]())[_0x44ef('0x14')](_0xd0bf76=>_0xd0bf76),_0x22cdda=new Map(_0x1c307e[_0x44ef('0x9f')](_0x2e1d88=>[_0x2e1d88,null]));if(_0x2128fa)for(const {element:_0x4407e6,attributes:_0x3c4ea3}of _0x2128fa[_0x44ef('0x39')])_0x3c4ea3&&_0x22cdda[_0x44ef('0x4')](_0x4407e6,_0x3c4ea3);else{if(_0x54a7a7&&_0x54a7a7['markerAttributes'])for(const [_0x2008f1,_0x32d6c3]of Object['entries'](_0x54a7a7['markerAttributes'])){const _0x461da8=_0x325541[_0x44ef('0x7a')]['markers'][_0x44ef('0x85')](_0x2008f1),_0x146fee=_0x461da8?_0x461da8[_0x44ef('0x6c')]()[_0x44ef('0x89')]():null;_0x146fee&&_0x22cdda[_0x44ef('0x4')](_0x146fee,_0x32d6c3);}}_0x325541[_0x44ef('0x7a')][_0x44ef('0x63')](_0x46ab0a=>{for(const [_0x5068d3,_0x3d87e4]of _0x22cdda)_0x46ab0a[_0x44ef('0x59')]({...ae,..._0x3d87e4},_0x5068d3);});});const _0x1d65a9=(_0x5a5869,_0x32e419)=>{_0x4fbe1a[_0x44ef('0x21')][_0x44ef('0x42')](_0x5a5869,_0x44ef('0x8c'),_0x32e419,(_0x59df04,_0x2b50e2,_0x47d915)=>{_0x325541[_0x44ef('0x7a')][_0x44ef('0x63')](_0x417c83=>{const _0x58caea=[];for(const _0x46d34a of _0x59df04){const _0x4fa86a=_0x46d34a[_0x44ef('0x11')][_0x44ef('0x34')];_0x4fa86a['is'](_0x44ef('0x7d'),_0x44ef('0xe'))&&_0x58caea[_0x44ef('0x28')](_0x4fa86a);}_0x4fbe1a[_0x44ef('0x21')][_0x44ef('0x44')](_0x5a5869,null,_0x32e419)(_0x59df04,_0x2b50e2,_0x47d915);for(const _0x3e4c01 of _0x58caea)_0x44ef('0x52')!=_0x3e4c01[_0x44ef('0x2e')][_0x44ef('0x98')]&&_0x417c83[_0x44ef('0x8a')](_0x3e4c01);});});};_0x1d65a9(_0x44ef('0x4a'),'accept'),_0x1d65a9(_0x44ef('0x4a'),_0x44ef('0x22')),_0x1d65a9(_0x44ef('0x3e'),_0x44ef('0xc')),_0x1d65a9(_0x44ef('0x3e'),'discard'),_0x4fbe1a[_0x44ef('0x21')][_0x44ef('0x42')](_0x44ef('0x4a'),_0x44ef('0x3d'),_0x44ef('0x22'),_0x476037=>{const _0x263194=_0x476037[_0x44ef('0x9f')](_0x387f5d=>_0x387f5d[_0x44ef('0x89')]()),_0x3e7022=_0x263194[0x0]['findAncestor'](_0x44ef('0x58')),{minRow:_0x5b253e,maxRow:_0x37f4c9}=_0x3fe309[_0x44ef('0x3b')](_0x263194);_0x483d1f[_0x44ef('0x73')](_0x3e7022,{'at':_0x5b253e,'rows':_0x37f4c9-_0x5b253e+0x1});}),_0x4fbe1a['_suggestionFactory'][_0x44ef('0x42')]('insertion',_0x44ef('0x72'),_0x44ef('0x22'),_0x158620=>{const _0x349ea5=_0x158620[_0x44ef('0x9f')](_0x41b901=>_0x41b901[_0x44ef('0x89')]()),_0x17694a=_0x349ea5[0x0][_0x44ef('0x80')](_0x44ef('0x58')),{minColumn:_0x556d45,maxColumn:_0xef3b9b}=_0x3fe309[_0x44ef('0x3b')](_0x349ea5);_0x483d1f['removeColumns'](_0x17694a,{'at':_0x556d45,'columns':_0xef3b9b-_0x556d45+0x1});});const _0x44e124=(_0x1d44da,_0x3cd8ec)=>{if(!_0x3cd8ec[_0x44ef('0x19')]||!_0x3cd8ec[_0x44ef('0x19')][_0x44ef('0x4e')](_0x44ef('0x8c')))return;const _0x34eeb4=_0x3cd8ec[_0x44ef('0x5')][_0x44ef('0x57')],_0x4f9694=_0x4fbe1a[_0x44ef('0x7')]()['filter'](_0x4ecbc4=>_0x4ecbc4[_0x44ef('0x90')]&&_0x4ecbc4[_0x44ef('0x5')]&&_0x4ecbc4['attributes'][_0x44ef('0x57')]==_0x34eeb4);_0x4f9694['length']&&_0x3cd8ec[_0x44ef('0x5f')]()['length']!=_0x4f9694[_0x44ef('0x50')]&&_0x4f9694[_0x44ef('0x12')]((_0x250785,_0x26adff)=>(_0x250785[_0x44ef('0x5a')]=_0x26adff,_0x26adff[_0x44ef('0x1f')]=_0x250785,_0x26adff));};function _0x52aa9e(_0x554622,_0x57bfaa=!0x0){const {id:_0x32b34b}=_0x4fbe1a[_0x44ef('0x51')](_0x554622[_0x44ef('0x4d')]),_0x2bbd27=['ck-suggestion-marker',_0x44ef('0x5b')],_0x3cdfe0=_0x4fbe1a[_0x44ef('0x60')][_0x44ef('0x7f')](_0x554622[_0x44ef('0x4d')]);return _0x3cdfe0&&_0x2bbd27['push'](_0x44ef('0x7b')),{'classes':_0x2bbd27,'attributes':{'data-suggestion':_0x32b34b},'priority':_0x3cdfe0&&_0x57bfaa?0xbc2:0xbb8};}_0x4fbe1a['on'](_0x44ef('0x93'),_0x44e124,{'priority':_0x44ef('0x16')}),_0x4fbe1a['on']('suggestionUnloaded',_0x44e124,{'priority':_0x44ef('0x16')}),_0x325541[_0x44ef('0x7a')][_0x44ef('0x86')][_0x44ef('0x96')](()=>{let _0x285f0c=!0x1;const _0x395dce=Array['from'](_0x325541[_0x44ef('0x7a')][_0x44ef('0x86')][_0x44ef('0x77')][_0x44ef('0x53')]());for(const {name:_0x234dd5,data:_0x53c2e0}of _0x395dce){const {group:_0x3a3083,type:_0x1b0c71,id:_0x126dfb}=_0x4fbe1a[_0x44ef('0x51')](_0x234dd5);if(_0x44ef('0x55')!=_0x3a3083||'deletion'!=_0x1b0c71||_0x53c2e0[_0x44ef('0x7e')])continue;if(!_0x4fbe1a[_0x44ef('0x6a')](_0x126dfb))continue;const _0x423ddd=_0x4fbe1a[_0x44ef('0xf')](_0x126dfb)[_0x44ef('0x32')](),_0x25846d=_0x325541[_0x44ef('0x36')]['get'](_0x44ef('0x29'))['me'];for(const _0x2f8467 of _0x4fbe1a['getSuggestions']()){if(!_0x2f8467[_0x44ef('0x90')]||_0x2f8467[_0x44ef('0x75')]!=_0x25846d)continue;if(_0x44ef('0x6d')!=_0x2f8467[_0x44ef('0x8e')]||_0x44ef('0x27')!=_0x2f8467[_0x44ef('0x19')])continue;if(_0x2f8467['getRanges']()[_0x44ef('0x24')](_0xd7a619=>_0x423ddd['some'](_0x3cd272=>_0x3cd272['containsRange'](_0xd7a619,!0x0))))for(const _0x5017fb of _0x2f8467[_0x44ef('0x5f')]())_0x5017fb[_0x44ef('0x90')]&&(_0x5017fb[_0x44ef('0x22')](),_0x285f0c=!0x0);}}return _0x285f0c;}),_0x325541[_0x44ef('0x7a')]['document'][_0x44ef('0x96')](_0x167b49=>{const _0x546f29=_0x325541['commands'][_0x44ef('0x85')](_0x44ef('0x88'));if(!_0x546f29||!_0x546f29['_createdBatches'][_0x44ef('0x71')](_0x167b49[_0x44ef('0x95')]))return!0x1;let _0x250993=!0x1;const _0x45e427=_0x325541['plugins'][_0x44ef('0x85')](_0x44ef('0x29'))['me'],_0x39d4d7=_0x325541['model'][_0x44ef('0x86')][_0x44ef('0x77')]['getChanges'](),_0x42d7e8=Array['from'](_0x325541[_0x44ef('0x7a')][_0x44ef('0x86')]['differ']['getChangedMarkers']())[_0x44ef('0x14')](({name:_0x38de11,data:_0x178b57})=>{const {group:_0x331ffc,subType:_0x428dbb,authorId:_0x50f509}=_0x4fbe1a[_0x44ef('0x51')](_0x38de11);return _0x44ef('0x55')==_0x331ffc&&'tablePaste'==_0x428dbb&&_0x50f509==_0x45e427['id']&&!_0x178b57[_0x44ef('0x7e')];});for(const _0x438268 of _0x39d4d7){if(_0x44ef('0x1c')!=_0x438268[_0x44ef('0x8e')]||_0x44ef('0xe')!=_0x438268[_0x44ef('0x91')]||0x1!=_0x438268['length'])continue;const _0x20d2b7=_0x167b49[_0x44ef('0x33')](_0x438268[_0x44ef('0x6e')],_0x438268['position']['getShiftedBy'](0x1));if(!_0x42d7e8['find'](({data:_0x476658})=>_0x476658[_0x44ef('0x47')][_0x44ef('0x1a')](_0x20d2b7)))for(const {name:_0x2b5c6e,data:_0x1f0ee9}of _0x42d7e8)if(_0x20d2b7[_0x44ef('0x9e')](_0x1f0ee9['newRange'])){_0x167b49['updateMarker'](_0x2b5c6e,{'range':_0x20d2b7}),_0x250993=!0x0;break;}}return _0x250993;}),_0x325541['model'][_0x44ef('0x86')][_0x44ef('0x96')](_0xda7546=>{let _0x4bef5d=!0x1;const _0x59c660=_0x325541[_0x44ef('0x36')]['get']('Users')['me'],_0xc59cd2=_0x4fbe1a[_0x44ef('0x7')]()['filter'](_0x2f3682=>_0x2f3682['isInContent']&&_0x2f3682[_0x44ef('0x75')]==_0x59c660),_0x5a7678=new Set(),_0x177ba5=new Set();for(const _0xa31d3d of _0xc59cd2)if(_0x44ef('0x8c')==_0xa31d3d[_0x44ef('0x19')])for(const _0x30a975 of _0xa31d3d[_0x44ef('0x9d')]()){const _0x3e8adf=_0x30a975['getRange']()[_0x44ef('0x89')]();if(_0x3e8adf){if(_0x3e8adf['is'](_0x44ef('0x7d'),_0x44ef('0xe'))&&ce(_0x3e8adf)){_0xa31d3d[_0x44ef('0x4b')](_0x30a975[_0x44ef('0x91')]),_0x5a7678['add'](_0x3e8adf),_0x4bef5d=!0x0;const _0x1b96ce=_0x3e8adf['nextSibling'],_0x4b9742=_0x3e8adf[_0x44ef('0x3')],_0x36ca94=_0x1b96ce&&_0x1b96ce['is'](_0x44ef('0x7d'),'tableCellSuggestion'),_0x3d8775=_0x4b9742&&_0x4b9742['is'](_0x44ef('0x7d'),_0x44ef('0xe'));_0x36ca94&&!_0x5a7678[_0x44ef('0x71')](_0x1b96ce)&&_0x177ba5['add'](_0x1b96ce),_0x3d8775&&!_0x5a7678['has'](_0x4b9742)&&_0x177ba5[_0x44ef('0x92')](_0x4b9742);}else _0x3e8adf['is'](_0x44ef('0x7d'),_0x44ef('0x6f'))&&_0x3e8adf['isEmpty']&&(_0xa31d3d['removeMarker'](_0x30a975[_0x44ef('0x91')]),_0x4bef5d=!0x0);}}else{if('tablePasteCell'==_0xa31d3d[_0x44ef('0x19')]){if(!_0xa31d3d[_0x44ef('0x5')]||!_0xa31d3d[_0x44ef('0x5')][_0x44ef('0x57')])continue;const _0x2612dc=_0xa31d3d[_0x44ef('0x5')][_0x44ef('0x8d')];if(_0x2612dc&&Object[_0x44ef('0x1b')](_0x2612dc)[_0x44ef('0x50')])continue;const _0x13a444=_0xa31d3d[_0x44ef('0x5')][_0x44ef('0x57')];let _0x3f3a0e=!0x0,_0x144f6c=!0x0;for(const _0x45858e of _0xc59cd2)if(_0x45858e['subType']&&_0x45858e[_0x44ef('0x19')][_0x44ef('0x4e')](_0x44ef('0x8c'))){if(!_0x45858e[_0x44ef('0x5')][_0x44ef('0x57')]){_0x144f6c=!0x1;break;}if(_0x45858e['id']!=_0xa31d3d['id']&&_0x45858e[_0x44ef('0x5')][_0x44ef('0x57')]==_0x13a444){_0x3f3a0e=!0x1;break;}}_0x144f6c&&_0x3f3a0e&&(_0xa31d3d['removeMarkers'](),_0x4bef5d=!0x0);}}for(const _0x2b0611 of _0x5a7678)_0xda7546[_0x44ef('0x78')](_0x2b0611);for(const _0x1a0630 of _0x177ba5)_0xda7546[_0x44ef('0x8a')](_0x1a0630);return _0x4bef5d;}),_0x325541[_0x44ef('0x23')]['for'](_0x44ef('0x62'))[_0x44ef('0x17')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2c844c,_0x1fb2e1)=>_0x52aa9e(_0x2c844c),'converterPriority':'high'}),_0x325541['conversion'][_0x44ef('0x5e')](_0x44ef('0x48'))[_0x44ef('0x17')]({'model':_0x44ef('0x5c'),'view':(_0x4288b3,_0x1372b6)=>_0x1372b6[_0x44ef('0x3f')][_0x44ef('0x94')]?_0x52aa9e(_0x4288b3,!0x1):null,'converterPriority':_0x44ef('0x16')});const _0x561570=_0x325541[_0x44ef('0x65')][_0x44ef('0x56')];this[_0x44ef('0x99')](_0x561570[_0x44ef('0x86')],_0x44ef('0xa'),(_0x574fb9,_0x52c3c9)=>{const _0x35c4a0=[];for(const _0xe17daa of _0x561570[_0x44ef('0xb')](_0x52c3c9[_0x44ef('0x43')])['getItems']())_0xe17daa['is'](_0x44ef('0x7d'),_0x44ef('0x7c'))&&_0x35c4a0[_0x44ef('0x28')](_0xe17daa);_0x561570[_0x44ef('0x63')](_0x4c6acc=>{for(const _0x4808c8 of _0x35c4a0)_0x4c6acc[_0x44ef('0x2a')](_0x4c6acc[_0x44ef('0xb')](_0x4808c8),_0x4c6acc['createPositionBefore'](_0x4808c8)),_0x4c6acc[_0x44ef('0x78')](_0x4808c8);});});}}function ce(_0x53b8b9){if(_0x53b8b9[_0x44ef('0x46')])return!0x0;const _0x1dc368=_0x53b8b9[_0x44ef('0x18')](0x0);return _0x1dc368['is'](_0x44ef('0x7d'),_0x44ef('0x6f'))&&_0x1dc368[_0x44ef('0x46')];}function fe(_0x1a361d,_0x16c6b2={},_0x8e3cd8){for(const {isAnchor:_0x58d8fa,cellHeight:_0x200707,cellWidth:_0x28cbcb}of _0x8e3cd8[_0x44ef('0x74')](_0x1a361d,{'includeAllSlots':!0x0,..._0x16c6b2}))if(!_0x58d8fa||0x1!=_0x200707||0x1!=_0x28cbcb)return!0x1;return!0x0;}
|
|
23
|
+
const _0x3cc2=['fromEntries','remove','rootName','has','conversion','rowInsertionIndexes','length','setAttribute','insertRows','keys','registerDescriptionCallback','ck-suggestion-marker--active','column','createPositionBefore','getSuggestions','ck-suggestion-marker-insertion','ck-suggestion-marker','first','find','subType','getContainedElement','tablePasteColumn','removeRows','editor','oldRange','getRowIndexes','tableCellBackgroundColor','insert','updateMarker','entries','TableClipboard','createRange','getSuggestion','tablePasteCell','row','registerCustomCallback','getSelectionAffectedTableCells','activeMarkers','getChild','getChanges','filter','getChangedMarkers','_suggestionFactory','getRanges','suggestionLoaded','newRange','markerAttributes','getAllAdjacentSuggestions','editingDowncast','low','get','getColumnIndexes','last','return','tablePasteRow','startsWith','suggestion','tableCellSuggestion','registerPostFixer','name','tableCellVerticalAlignment','getColumns','batch','tableCellPadding','nodeAfter','setAttributes','move','reduce','rowInsertionRanges','getChildren','locale','discard','insertionRanges','commands','listenTo','view','element','isEmpty','showSuggestionHighlights','table','push','createTableWalker','redo','endRow','includes','options','cells','removeColumns','type','previousSibling','suggestion-td','suggestion:formatBlock:tablePasteCell','getSuggestionCallback','next','hasSuggestion','_splitMarkerName','getTableIfOnlyTableInContent','paragraph','position','model','insertion','tablePasteChainId','afterInit','accept','_getCoordsForCells','document','columnInsertionRanges','rows','differ','add','removeMarker','previous','$graveyard','_replaceTableSlotCell','containsRange','_descriptionFactory','markMultiRangeBlockFormat','getMarkers','author','columnInsertionIndexes','content','value','isEqual','tableCellBorderStyle','attributes','formatBlock','createRangeIn','plugins','for','endColumn','markMultiRangeInsertion','dataDowncast','Users','findAncestor','getRows','end','from','fill','requires','change','removeMarkers','unwrap','getRange','createElement','map','createRangeOn','deletion','markerName','high','insertContent','markerToHighlight','isInContent','join','tableCellBorderColor','TrackChangesEditing','tablePaste','*Replace\x20table\x20cells*','tableCellBorderWidth'];(function(_0x324532,_0x3cc2ca){const _0x13653c=function(_0x5a06fc){while(--_0x5a06fc){_0x324532['push'](_0x324532['shift']());}};_0x13653c(++_0x3cc2ca);}(_0x3cc2,0x137));const _0x1365=function(_0x324532,_0x3cc2ca){_0x324532=_0x324532-0x0;let _0x13653c=_0x3cc2[_0x324532];return _0x13653c;};import{getTranslation as _0xff3138}from'../utils/common-translations';import{Plugin as _0x250589}from'ckeditor5/src/core';import{uid as _0x561290,priorities as _0x5087fe}from'ckeditor5/src/utils';import _0x18c3c3 from'./table';const le=[_0x1365('0x4'),_0x1365('0x0'),_0x1365('0x80'),'tableCellHorizontalAlignment',_0x1365('0x41'),_0x1365('0x1f'),_0x1365('0x44')],ae=Object[_0x1365('0x5')](le['map'](_0x2345cc=>[_0x2345cc,null]));export default class kt extends _0x250589{static get[_0x1365('0x8f')](){return[_0x18c3c3];}[_0x1365('0x6b')](){const _0x59a4a0=this[_0x1365('0x1c')];if(!_0x59a4a0['plugins'][_0x1365('0x8')](_0x1365('0x23')))return;const _0x361bee=_0x59a4a0['plugins'][_0x1365('0x37')](_0x1365('0x1')),_0x5ae576=_0x59a4a0[_0x1365('0x84')][_0x1365('0x37')]('TableUtils'),_0xdca2a5=_0x59a4a0[_0x1365('0x84')][_0x1365('0x37')](_0x18c3c3),_0x57d776=_0x59a4a0[_0x1365('0x84')][_0x1365('0x37')](_0x1365('0x23'));_0xdca2a5['_tablePostFixingSubtypes'][_0x1365('0x55')](_0x1365('0x3b'),_0x1365('0x1a')),_0x59a4a0[_0x1365('0x68')]['schema']['register'](_0x1365('0x3e'),{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x59a4a0[_0x1365('0x9')]['elementToElement']({'model':_0x1365('0x3e'),'view':_0x1365('0x5f')});let _0x597fdf=null;_0x59a4a0[_0x1365('0x68')]['on'](_0x1365('0x9a'),(_0x98f5d,_0x2da0c2)=>{const [_0x74916,_0x5276e]=_0x2da0c2,_0x570937=_0x2da0c2[_0x2da0c2[_0x1365('0xb')]-0x1];_0x570937&&_0x570937['forceDefaultExecution']||_0x361bee['_isForcedDefaultExecutionBlock']||this[_0x1365('0x1c')][_0x1365('0x4e')][_0x1365('0x37')]('trackChanges')[_0x1365('0x7e')]&&function(_0x44f712,_0x18ff7d,_0x1ac745,_0x489e8a,_0x460651){if(_0x18ff7d&&!_0x18ff7d['is']('documentSelection'))return!0x1;const _0x35e0d4=_0x460651[_0x1365('0x65')](_0x44f712,_0x1ac745);if(!_0x35e0d4||!fe(_0x35e0d4,void 0x0,_0x489e8a))return!0x1;const _0x4815c3=_0x489e8a[_0x1365('0x29')](_0x1ac745[_0x1365('0x6e')]['selection']);if(!_0x4815c3[_0x1365('0xb')])return!0x1;const _0x265c33=_0x4815c3[0x0][_0x1365('0x8a')](_0x1365('0x54')),_0x458db9=_0x489e8a[_0x1365('0x1e')](_0x4815c3),_0x304cf7=_0x489e8a[_0x1365('0x38')](_0x4815c3),_0x44e986={'startRow':_0x458db9['first'],'endRow':_0x458db9[_0x1365('0x39')],'startColumn':_0x304cf7[_0x1365('0x16')],'endColumn':_0x304cf7['last']};return 0x1==_0x4815c3[_0x1365('0xb')]&&(_0x44e986[_0x1365('0x58')]+=_0x489e8a[_0x1365('0x8b')](_0x35e0d4)-0x1,_0x44e986[_0x1365('0x86')]+=_0x489e8a[_0x1365('0x42')](_0x35e0d4)-0x1),fe(_0x265c33,_0x44e986,_0x489e8a);}(_0x74916,_0x5276e,_0x59a4a0[_0x1365('0x68')],_0x5ae576,_0x57d776)&&(_0x98f5d['stop'](),_0x597fdf={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x59a4a0[_0x1365('0x68')]['change'](()=>{_0x59a4a0[_0x1365('0x68')]['insertContent'](_0x2da0c2[0x0],_0x2da0c2[0x1],_0x2da0c2[0x2],{'forceDefaultExecution':!0x0});const _0x117450=_0x561290(),{rowInsertionRanges:_0x41783e,columnInsertionRanges:_0x498b00,insertionRanges:_0x11c5ce,deletionRanges:_0x4135cf,cells:_0x57a6de}=_0x597fdf;_0x41783e[_0x1365('0xb')]&&_0x361bee[_0x1365('0x87')](_0x41783e,_0x1365('0x3b'),{'tablePasteChainId':_0x117450}),_0x498b00['length']&&_0x361bee['markMultiRangeInsertion'](_0x498b00,_0x1365('0x1a'),{'tablePasteChainId':_0x117450}),_0x11c5ce[_0x1365('0xb')]&&_0x361bee[_0x1365('0x87')](_0x11c5ce,_0x1365('0x2'),{'tablePasteChainId':_0x117450,'skipNestingCheck':!0x0}),_0x4135cf[_0x1365('0xb')]&&_0x361bee['markMultiRangeDeletion'](_0x4135cf,_0x1365('0x2'),{'tablePasteChainId':_0x117450,'skipNestingCheck':!0x0});const _0x26ec35=_0x361bee[_0x1365('0x79')](_0x57a6de['map'](({element:_0x484432})=>_0x484432),{'formatGroupId':_0x561290()},[],_0x1365('0x26'),{'tablePasteChainId':_0x117450});if(_0x26ec35){const _0x3bc281=_0x26ec35['getMarkers'](),_0x24b48a=[];for(const {element:_0x3e7a12,attributes:_0x1f7a9f}of _0x57a6de){if(!_0x1f7a9f)continue;const _0x35fe82=_0x59a4a0[_0x1365('0x68')][_0x1365('0x96')](_0x3e7a12),_0x15e4ee=_0x3bc281[_0x1365('0x17')](_0x2786b7=>_0x2786b7[_0x1365('0x93')]()[_0x1365('0x7f')](_0x35fe82));_0x15e4ee&&_0x24b48a['push']([_0x15e4ee['name'],_0x1f7a9f]);}_0x24b48a[_0x1365('0xb')]&&_0x26ec35[_0x1365('0xc')](_0x1365('0x33'),Object['fromEntries'](_0x24b48a));}_0x597fdf=null;}));},{'priority':_0x5087fe[_0x1365('0x99')]+0xa}),_0x59a4a0[_0x1365('0x84')][_0x1365('0x37')](_0x1365('0x23'))['on'](_0x1365('0x76'),(_0x1ab9e9,_0x3f7e34)=>{const [_0x4966ba,_0x42158e,,_0x522988]=_0x3f7e34;if(!_0x597fdf)return;_0x1ab9e9['stop']();const _0x5c1264=_0x4966ba['cell'],_0x4848f5=_0x42158e,_0x211a0d=ce(_0x5c1264),_0xbdd6b6=ce(_0x4848f5);_0x1ab9e9[_0x1365('0x3a')]=_0x5c1264;let _0x47c1ef=null,_0x33d9fc=null;if(_0xbdd6b6||_0x211a0d){if(_0x211a0d&&!_0xbdd6b6){_0x522988['remove'](_0x5c1264['getChild'](0x0));for(const _0xfbf93a of Array[_0x1365('0x8d')](_0x4848f5[_0x1365('0x4a')]()))_0x522988[_0x1365('0x20')](_0xfbf93a,_0x5c1264,_0x1365('0x8c'));const _0x1bf524=_0x597fdf[_0x1365('0xa')][_0x1365('0x59')](_0x4966ba[_0x1365('0x27')]),_0x5c87cd=_0x597fdf[_0x1365('0x7c')][_0x1365('0x59')](_0x4966ba[_0x1365('0x11')]);_0x1bf524||_0x5c87cd||(_0x47c1ef=_0x522988[_0x1365('0x83')](_0x5c1264));}else _0xbdd6b6&&!_0x211a0d&&(_0x33d9fc=_0x522988[_0x1365('0x83')](_0x5c1264));}else{const _0x2ff716=_0x522988[_0x1365('0x94')](_0x1365('0x3e')),_0x511baa=_0x522988[_0x1365('0x94')]('tableCellSuggestion');_0x522988['wrap'](_0x522988['createRangeIn'](_0x5c1264),_0x511baa),_0x522988['insert'](_0x2ff716,_0x5c1264,0x0);for(const _0x2148d5 of Array['from'](_0x4848f5[_0x1365('0x4a')]()))_0x522988[_0x1365('0x20')](_0x2148d5,_0x2ff716,_0x1365('0x8c'));_0x47c1ef=_0x522988[_0x1365('0x96')](_0x2ff716),_0x33d9fc=_0x522988[_0x1365('0x96')](_0x511baa);}const _0x541554=Array[_0x1365('0x8d')](_0x4848f5['getAttributes']())['filter'](([_0x4cd2b5])=>le['includes'](_0x4cd2b5));_0x597fdf[_0x1365('0x5b')][_0x1365('0x55')]({'element':_0x5c1264,'attributes':_0x541554[_0x1365('0xb')]?Object[_0x1365('0x5')](_0x541554):null}),_0x47c1ef&&_0x597fdf[_0x1365('0x4d')][_0x1365('0x55')](_0x47c1ef),_0x33d9fc&&_0x597fdf['deletionRanges'][_0x1365('0x55')](_0x33d9fc);},{'priority':_0x1365('0x99')}),_0x5ae576['on']('insertColumns',(_0x36dab4,_0x47a34b)=>{const [_0x58ffdd,_0x381c54={}]=_0x47a34b;if(!_0x597fdf)return;const _0x4c29e4=_0x381c54['at']||0x0,_0x42b612=_0x381c54['columns']||0x1;_0x597fdf[_0x1365('0x7c')]=new Array(_0x42b612)[_0x1365('0x8e')](_0x4c29e4)[_0x1365('0x95')]((_0x2bf13a,_0x29cf82)=>_0x2bf13a+_0x29cf82);for(const {cell:_0x37f72c}of _0x5ae576[_0x1365('0x56')](_0x58ffdd,{'startColumn':_0x4c29e4,'endColumn':_0x4c29e4+_0x42b612-0x1}))_0x597fdf[_0x1365('0x6f')][_0x1365('0x55')](_0x59a4a0['model'][_0x1365('0x96')](_0x37f72c));},{'priority':'low'}),_0x5ae576['on'](_0x1365('0xd'),(_0x386fc2,_0xf38f1e)=>{const [_0x5f3733,_0x33c96a={}]=_0xf38f1e;if(!_0x597fdf)return;const _0x5be5d2=_0x33c96a['at']||0x0,_0x53153f=_0x33c96a[_0x1365('0x70')]||0x1;_0x597fdf[_0x1365('0xa')]=new Array(_0x53153f)[_0x1365('0x8e')](_0x5be5d2)['map']((_0x5c66b2,_0x4b3e6b)=>_0x5c66b2+_0x4b3e6b);for(const {cell:_0x273911}of _0x5ae576['createTableWalker'](_0x5f3733,{'startRow':_0x5be5d2,'endRow':_0x5be5d2+_0x53153f-0x1}))_0x597fdf[_0x1365('0x49')][_0x1365('0x55')](_0x59a4a0['model'][_0x1365('0x96')](_0x273911));},{'priority':_0x1365('0x36')}),_0x361bee[_0x1365('0x78')][_0x1365('0xf')](_0x2775a8=>{if(_0x2775a8[_0x1365('0x18')]&&_0x2775a8[_0x1365('0x18')][_0x1365('0x3c')](_0x1365('0x2')))return _0x2775a8[_0x1365('0x74')]?{}:{'type':_0x1365('0x69'),'content':_0xff3138(_0x59a4a0[_0x1365('0x4b')],_0x1365('0x3'))};});const _0x2059db=()=>!0x1;for(const _0x4b44ef of[_0x1365('0x2'),_0x1365('0x1a'),_0x1365('0x3b'),_0x1365('0x26')])_0x361bee[_0x1365('0x2f')]['registerCustomCallback'](_0x1365('0x69'),_0x4b44ef,'join',_0x2059db),_0x361bee['_suggestionFactory'][_0x1365('0x28')](_0x1365('0x97'),_0x4b44ef,_0x1365('0x9d'),_0x2059db),_0x361bee[_0x1365('0x2f')][_0x1365('0x28')](_0x1365('0x82'),_0x4b44ef,_0x1365('0x9d'),_0x2059db);_0x361bee[_0x1365('0x2f')]['registerCustomCallback'](_0x1365('0x82'),_0x1365('0x26'),'discard',_0x2059db),_0x361bee[_0x1365('0x2f')][_0x1365('0x28')](_0x1365('0x82'),_0x1365('0x26'),_0x1365('0x6c'),(_0x40dc49,_0x5e00a6,_0x1a0769)=>{const _0x538ee5=_0x40dc49[_0x1365('0x95')](_0x1c8b48=>_0x1c8b48[_0x1365('0x19')]())['filter'](_0x34eeac=>_0x34eeac),_0x20875f=new Map(_0x538ee5[_0x1365('0x95')](_0x8c507b=>[_0x8c507b,null]));if(_0x597fdf)for(const {element:_0x143ebf,attributes:_0x297ea8}of _0x597fdf['cells'])_0x297ea8&&_0x20875f['set'](_0x143ebf,_0x297ea8);else{if(_0x1a0769&&_0x1a0769['markerAttributes'])for(const [_0x21318a,_0x1fe36d]of Object[_0x1365('0x22')](_0x1a0769['markerAttributes'])){const _0x5eb9a4=_0x59a4a0['model']['markers'][_0x1365('0x37')](_0x21318a),_0x372f94=_0x5eb9a4?_0x5eb9a4[_0x1365('0x93')]()[_0x1365('0x19')]():null;_0x372f94&&_0x20875f['set'](_0x372f94,_0x1fe36d);}}_0x59a4a0[_0x1365('0x68')][_0x1365('0x90')](_0x2cc1a2=>{for(const [_0x33ba53,_0xb525a0]of _0x20875f)_0x2cc1a2[_0x1365('0x46')]({...ae,..._0xb525a0},_0x33ba53);});});const _0x2c59d5=(_0x487eab,_0x111990)=>{_0x361bee[_0x1365('0x2f')][_0x1365('0x28')](_0x487eab,_0x1365('0x2'),_0x111990,(_0x1f1b5c,_0x3b1c94,_0x8d95cf)=>{_0x59a4a0['model'][_0x1365('0x90')](_0x59a439=>{const _0x1f5a16=[];for(const _0x22747e of _0x1f1b5c){const _0x597b58=_0x22747e['start'][_0x1365('0x45')];_0x597b58['is'](_0x1365('0x51'),'tableCellSuggestion')&&_0x1f5a16[_0x1365('0x55')](_0x597b58);}_0x361bee[_0x1365('0x2f')][_0x1365('0x61')](_0x487eab,null,_0x111990)(_0x1f1b5c,_0x3b1c94,_0x8d95cf);for(const _0x5d4982 of _0x1f5a16)_0x1365('0x75')!=_0x5d4982['root'][_0x1365('0x7')]&&_0x59a439[_0x1365('0x92')](_0x5d4982);});});};_0x2c59d5(_0x1365('0x69'),'accept'),_0x2c59d5('insertion',_0x1365('0x4c')),_0x2c59d5(_0x1365('0x97'),_0x1365('0x6c')),_0x2c59d5(_0x1365('0x97'),'discard'),_0x361bee[_0x1365('0x2f')][_0x1365('0x28')](_0x1365('0x69'),'tablePasteRow',_0x1365('0x4c'),_0x5aa14e=>{const _0x5d809a=_0x5aa14e['map'](_0x45ea93=>_0x45ea93[_0x1365('0x19')]()),_0x8f880c=_0x5d809a[0x0][_0x1365('0x8a')](_0x1365('0x54')),{minRow:_0x16fe29,maxRow:_0xa4b78d}=_0xdca2a5[_0x1365('0x6d')](_0x5d809a);_0x5ae576[_0x1365('0x1b')](_0x8f880c,{'at':_0x16fe29,'rows':_0xa4b78d-_0x16fe29+0x1});}),_0x361bee[_0x1365('0x2f')]['registerCustomCallback'](_0x1365('0x69'),_0x1365('0x1a'),'discard',_0xed06c0=>{const _0xe43636=_0xed06c0['map'](_0x5132be=>_0x5132be['getContainedElement']()),_0x47607c=_0xe43636[0x0][_0x1365('0x8a')](_0x1365('0x54')),{minColumn:_0x5a9c7f,maxColumn:_0x91620c}=_0xdca2a5[_0x1365('0x6d')](_0xe43636);_0x5ae576[_0x1365('0x5c')](_0x47607c,{'at':_0x5a9c7f,'columns':_0x91620c-_0x5a9c7f+0x1});});const _0x30c394=(_0x2f4d45,_0x18cffd)=>{if(!_0x18cffd[_0x1365('0x18')]||!_0x18cffd[_0x1365('0x18')][_0x1365('0x3c')](_0x1365('0x2')))return;const _0x3cbc43=_0x18cffd[_0x1365('0x81')][_0x1365('0x6a')],_0xd3e1f=_0x361bee['getSuggestions']()[_0x1365('0x2d')](_0x412f40=>_0x412f40[_0x1365('0x9c')]&&_0x412f40[_0x1365('0x81')]&&_0x412f40[_0x1365('0x81')][_0x1365('0x6a')]==_0x3cbc43);_0xd3e1f[_0x1365('0xb')]&&_0x18cffd[_0x1365('0x34')]()[_0x1365('0xb')]!=_0xd3e1f['length']&&_0xd3e1f[_0x1365('0x48')]((_0x27a6cb,_0x5696d9)=>(_0x27a6cb[_0x1365('0x62')]=_0x5696d9,_0x5696d9[_0x1365('0x74')]=_0x27a6cb,_0x5696d9));};function _0x235b13(_0x482358,_0x368099=!0x0){const {id:_0x5dd4b8}=_0x361bee['_splitMarkerName'](_0x482358[_0x1365('0x98')]),_0x3adafa=[_0x1365('0x15'),_0x1365('0x14')],_0x4be7fb=_0x361bee[_0x1365('0x2a')][_0x1365('0x59')](_0x482358['markerName']);return _0x4be7fb&&_0x3adafa['push'](_0x1365('0x10')),{'classes':_0x3adafa,'attributes':{'data-suggestion':_0x5dd4b8},'priority':_0x4be7fb&&_0x368099?0xbc2:0xbb8};}_0x361bee['on'](_0x1365('0x31'),_0x30c394,{'priority':_0x1365('0x99')}),_0x361bee['on']('suggestionUnloaded',_0x30c394,{'priority':_0x1365('0x99')}),_0x59a4a0[_0x1365('0x68')][_0x1365('0x6e')][_0x1365('0x3f')](()=>{let _0x34256e=!0x1;const _0x4c676e=Array['from'](_0x59a4a0[_0x1365('0x68')]['document']['differ']['getChangedMarkers']());for(const {name:_0x373cda,data:_0x2f280f}of _0x4c676e){const {group:_0x58cbf0,type:_0x33f1f0,id:_0xf93da8}=_0x361bee[_0x1365('0x64')](_0x373cda);if(_0x1365('0x3d')!=_0x58cbf0||_0x1365('0x97')!=_0x33f1f0||_0x2f280f['oldRange'])continue;if(!_0x361bee[_0x1365('0x63')](_0xf93da8))continue;const _0x317988=_0x361bee[_0x1365('0x25')](_0xf93da8)[_0x1365('0x30')](),_0x5c6ff4=_0x59a4a0[_0x1365('0x84')][_0x1365('0x37')](_0x1365('0x89'))['me'];for(const _0x2330d0 of _0x361bee[_0x1365('0x13')]()){if(!_0x2330d0[_0x1365('0x9c')]||_0x2330d0[_0x1365('0x7b')]!=_0x5c6ff4)continue;if(_0x1365('0x82')!=_0x2330d0[_0x1365('0x5d')]||'tablePasteCell'!=_0x2330d0[_0x1365('0x18')])continue;if(_0x2330d0['getRanges']()['every'](_0x31f1e9=>_0x317988['some'](_0x2d888c=>_0x2d888c[_0x1365('0x77')](_0x31f1e9,!0x0))))for(const _0x547bb6 of _0x2330d0[_0x1365('0x34')]())_0x547bb6[_0x1365('0x9c')]&&(_0x547bb6[_0x1365('0x4c')](),_0x34256e=!0x0);}}return _0x34256e;}),_0x59a4a0[_0x1365('0x68')][_0x1365('0x6e')][_0x1365('0x3f')](_0x1be276=>{const _0x4f75ce=_0x59a4a0[_0x1365('0x4e')][_0x1365('0x37')](_0x1365('0x57'));if(!_0x4f75ce||!_0x4f75ce['_createdBatches'][_0x1365('0x8')](_0x1be276[_0x1365('0x43')]))return!0x1;let _0x588432=!0x1;const _0x497f23=_0x59a4a0[_0x1365('0x84')][_0x1365('0x37')](_0x1365('0x89'))['me'],_0x409d17=_0x59a4a0[_0x1365('0x68')][_0x1365('0x6e')]['differ'][_0x1365('0x2c')](),_0x4456b3=Array[_0x1365('0x8d')](_0x59a4a0[_0x1365('0x68')]['document'][_0x1365('0x71')][_0x1365('0x2e')]())[_0x1365('0x2d')](({name:_0x1696cc,data:_0x218640})=>{const {group:_0x37ce0f,subType:_0x46a428,authorId:_0x6102a3}=_0x361bee['_splitMarkerName'](_0x1696cc);return _0x1365('0x3d')==_0x37ce0f&&_0x1365('0x2')==_0x46a428&&_0x6102a3==_0x497f23['id']&&!_0x218640[_0x1365('0x1d')];});for(const _0x5784fe of _0x409d17){if(_0x1365('0x20')!=_0x5784fe[_0x1365('0x5d')]||_0x1365('0x3e')!=_0x5784fe[_0x1365('0x40')]||0x1!=_0x5784fe[_0x1365('0xb')])continue;const _0x169568=_0x1be276[_0x1365('0x24')](_0x5784fe[_0x1365('0x67')],_0x5784fe[_0x1365('0x67')]['getShiftedBy'](0x1));if(!_0x4456b3[_0x1365('0x17')](({data:_0x1c765b})=>_0x1c765b[_0x1365('0x32')][_0x1365('0x7f')](_0x169568)))for(const {name:_0x73985d,data:_0x5aa923}of _0x4456b3)if(_0x169568[_0x1365('0x77')](_0x5aa923[_0x1365('0x32')])){_0x1be276[_0x1365('0x21')](_0x73985d,{'range':_0x169568}),_0x588432=!0x0;break;}}return _0x588432;}),_0x59a4a0[_0x1365('0x68')][_0x1365('0x6e')][_0x1365('0x3f')](_0x4ae308=>{let _0x3129ce=!0x1;const _0x3c854c=_0x59a4a0[_0x1365('0x84')][_0x1365('0x37')](_0x1365('0x89'))['me'],_0x40f533=_0x361bee[_0x1365('0x13')]()[_0x1365('0x2d')](_0xf8c6e=>_0xf8c6e[_0x1365('0x9c')]&&_0xf8c6e['author']==_0x3c854c),_0x2ca33c=new Set(),_0x3b877b=new Set();for(const _0x5f0e0c of _0x40f533)if(_0x1365('0x2')==_0x5f0e0c[_0x1365('0x18')])for(const _0xe86487 of _0x5f0e0c[_0x1365('0x7a')]()){const _0x13c6a8=_0xe86487[_0x1365('0x93')]()['getContainedElement']();if(_0x13c6a8){if(_0x13c6a8['is'](_0x1365('0x51'),_0x1365('0x3e'))&&ce(_0x13c6a8)){_0x5f0e0c[_0x1365('0x73')](_0xe86487[_0x1365('0x40')]),_0x2ca33c[_0x1365('0x72')](_0x13c6a8),_0x3129ce=!0x0;const _0x29f8b1=_0x13c6a8['nextSibling'],_0x40e702=_0x13c6a8[_0x1365('0x5e')],_0x1f67be=_0x29f8b1&&_0x29f8b1['is'](_0x1365('0x51'),_0x1365('0x3e')),_0xc5a352=_0x40e702&&_0x40e702['is'](_0x1365('0x51'),'tableCellSuggestion');_0x1f67be&&!_0x2ca33c[_0x1365('0x8')](_0x29f8b1)&&_0x3b877b['add'](_0x29f8b1),_0xc5a352&&!_0x2ca33c['has'](_0x40e702)&&_0x3b877b[_0x1365('0x72')](_0x40e702);}else _0x13c6a8['is'](_0x1365('0x51'),'paragraph')&&_0x13c6a8[_0x1365('0x52')]&&(_0x5f0e0c[_0x1365('0x73')](_0xe86487[_0x1365('0x40')]),_0x3129ce=!0x0);}}else{if(_0x1365('0x26')==_0x5f0e0c[_0x1365('0x18')]){if(!_0x5f0e0c[_0x1365('0x81')]||!_0x5f0e0c[_0x1365('0x81')][_0x1365('0x6a')])continue;const _0x2ec9aa=_0x5f0e0c['attributes'][_0x1365('0x33')];if(_0x2ec9aa&&Object[_0x1365('0xe')](_0x2ec9aa)[_0x1365('0xb')])continue;const _0x46dfb8=_0x5f0e0c[_0x1365('0x81')][_0x1365('0x6a')];let _0x4c21c9=!0x0,_0x4fc026=!0x0;for(const _0x1ce352 of _0x40f533)if(_0x1ce352[_0x1365('0x18')]&&_0x1ce352[_0x1365('0x18')][_0x1365('0x3c')]('tablePaste')){if(!_0x1ce352[_0x1365('0x81')]['tablePasteChainId']){_0x4fc026=!0x1;break;}if(_0x1ce352['id']!=_0x5f0e0c['id']&&_0x1ce352[_0x1365('0x81')][_0x1365('0x6a')]==_0x46dfb8){_0x4c21c9=!0x1;break;}}_0x4fc026&&_0x4c21c9&&(_0x5f0e0c[_0x1365('0x91')](),_0x3129ce=!0x0);}}for(const _0x28fcbd of _0x2ca33c)_0x4ae308[_0x1365('0x6')](_0x28fcbd);for(const _0x1434b4 of _0x3b877b)_0x4ae308['unwrap'](_0x1434b4);return _0x3129ce;}),_0x59a4a0[_0x1365('0x9')]['for'](_0x1365('0x35'))[_0x1365('0x9b')]({'model':_0x1365('0x60'),'view':(_0x4c04c0,_0x206963)=>_0x235b13(_0x4c04c0),'converterPriority':_0x1365('0x99')}),_0x59a4a0[_0x1365('0x9')][_0x1365('0x85')](_0x1365('0x88'))[_0x1365('0x9b')]({'model':_0x1365('0x60'),'view':(_0x2124f9,_0x312952)=>_0x312952[_0x1365('0x5a')][_0x1365('0x53')]?_0x235b13(_0x2124f9,!0x1):null,'converterPriority':'high'});const _0x56a4ee=_0x59a4a0['editing'][_0x1365('0x50')];this[_0x1365('0x4f')](_0x56a4ee['document'],'clipboardOutput',(_0x3c49a2,_0x358bf2)=>{const _0x4595ce=[];for(const _0x933577 of _0x56a4ee[_0x1365('0x83')](_0x358bf2[_0x1365('0x7d')])['getItems']())_0x933577['is'](_0x1365('0x51'),_0x1365('0x5f'))&&_0x4595ce['push'](_0x933577);_0x56a4ee[_0x1365('0x90')](_0x507fc4=>{for(const _0x54c926 of _0x4595ce)_0x507fc4[_0x1365('0x47')](_0x507fc4[_0x1365('0x83')](_0x54c926),_0x507fc4[_0x1365('0x12')](_0x54c926)),_0x507fc4[_0x1365('0x6')](_0x54c926);});});}}function ce(_0x2e9a08){if(_0x2e9a08[_0x1365('0x52')])return!0x0;const _0x1987bf=_0x2e9a08[_0x1365('0x2b')](0x0);return _0x1987bf['is'](_0x1365('0x51'),_0x1365('0x66'))&&_0x1987bf[_0x1365('0x52')];}function fe(_0x1101cd,_0x440f17={},_0x27f180){for(const {isAnchor:_0x3f0059,cellHeight:_0x2ec29a,cellWidth:_0x288283}of _0x27f180[_0x1365('0x56')](_0x1101cd,{'includeAllSlots':!0x0,..._0x440f17}))if(!_0x3f0059||0x1!=_0x2ec29a||0x1!=_0x288283)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51c7=['handleResizeTableWidthCommand','accept','getSuggestions','handleSuggestionDescription','has','subType','formatGroupId','plugins','locale','enableCommand','document','discard','selection','commandParams','Users','TrackChangesEditing','formatBlock','resizeTableWidth','format','getSuggestionCallback','bind','registerDescriptionCallback','change','getTableColumnsWidths','editor','table','getAttribute','registerCustomCallback','data','getColumnGroupElement','afterInit','_suggestionFactory','get','columnWidths','getSelectedElement','getContainedElement','resizeTable','markBlockFormat','tableWidth','_descriptionFactory','TableColumnResizeEditing','model'];(function(_0x4b5a45,_0x51c779){const _0x582c8f=function(_0x1a3b6c){while(--_0x1a3b6c){_0x4b5a45['push'](_0x4b5a45['shift']());}};_0x582c8f(++_0x51c779);}(_0x51c7,0x1a0));const _0x582c=function(_0x4b5a45,_0x51c779){_0x4b5a45=_0x4b5a45-0x0;let _0x582c8f=_0x51c7[_0x4b5a45];return _0x582c8f;};import{Plugin as _0x474bc3}from'ckeditor5/src/core';import{getTranslation as _0x2f7ec6}from'../utils/common-translations';export default class wt extends _0x474bc3{[_0x582c('0x22')](){if(!this[_0x582c('0x1c')][_0x582c('0xb')][_0x582c('0x8')](_0x582c('0x2')))return;const _0x270b5b=this[_0x582c('0x1c')]['plugins'][_0x582c('0x24')]('TrackChangesEditing');_0x270b5b[_0x582c('0xd')]('resizeTableWidth',this[_0x582c('0x4')][_0x582c('0x18')](this)),_0x270b5b['enableCommand']('resizeColumnWidths',this[_0x582c('0x4')][_0x582c('0x18')](this)),_0x270b5b['_suggestionFactory'][_0x582c('0x1f')](_0x582c('0x14'),_0x582c('0x28'),_0x582c('0x5'),_0x270b5b[_0x582c('0x23')][_0x582c('0x17')](_0x582c('0x14'),null,_0x582c('0xf'))),_0x270b5b['_suggestionFactory']['registerCustomCallback'](_0x582c('0x14'),_0x582c('0x28'),_0x582c('0xf'),_0x270b5b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,_0x582c('0x5'))),_0x270b5b[_0x582c('0x1')][_0x582c('0x19')](this['handleSuggestionDescription'][_0x582c('0x18')](this));}[_0x582c('0x4')](_0x107f77,_0x2b4731){const _0xda865a=this[_0x582c('0x1c')][_0x582c('0xb')][_0x582c('0x24')](_0x582c('0x13')),_0x41bcec=this[_0x582c('0x1c')][_0x582c('0xb')][_0x582c('0x24')]('TableColumnResizeEditing'),_0x138513=_0x2b4731[_0x582c('0x1d')]||this[_0x582c('0x1c')][_0x582c('0x3')][_0x582c('0xe')][_0x582c('0x10')][_0x582c('0x26')]();this['editor'][_0x582c('0x3')][_0x582c('0x1a')](()=>{const _0x3325b0=_0x41bcec[_0x582c('0x21')](_0x138513);let _0x20d386=_0x3325b0?_0x41bcec[_0x582c('0x1b')](_0x3325b0):null,_0x58ae95=_0x138513[_0x582c('0x1e')]('tableWidth')||null;const _0xcabf9d=_0x2b4731[_0x582c('0x0')]||_0x58ae95,_0x173045=_0x2b4731[_0x582c('0x25')]||_0x20d386,_0x16f874=this[_0x582c('0x1c')][_0x582c('0xb')][_0x582c('0x24')](_0x582c('0x12'))['me'];for(const _0x32664f of _0xda865a[_0x582c('0x6')]()){const _0x5e99e7=_0x32664f[_0x582c('0x27')]();if(_0x582c('0x28')===_0x32664f[_0x582c('0x9')]&&_0x5e99e7===_0x138513){_0x32664f['author']!==_0x16f874&&_0x32664f[_0x582c('0xf')]();const _0x5b9eca=_0x32664f[_0x582c('0x20')][_0x582c('0x11')];_0x58ae95=_0x5b9eca[0x0][_0x582c('0x0')],_0x20d386=_0x5b9eca[0x0][_0x582c('0x25')];break;}}_0x107f77({'table':_0x138513,'tableWidth':_0xcabf9d,'columnWidths':_0x173045}),_0xda865a[_0x582c('0x29')](_0x138513,{'commandName':_0x582c('0x15'),'commandParams':[{'tableWidth':_0x58ae95,'columnWidths':_0x20d386}],'formatGroupId':_0x582c('0x28')},[],_0x582c('0x28'));});}[_0x582c('0x7')](_0x3c6fcf){const {data:_0x43ecf4}=_0x3c6fcf;if(_0x43ecf4&&'resizeTable'===_0x43ecf4[_0x582c('0xa')]){const _0x45041d='*Format:*\x20resize\x20table';return{'type':_0x582c('0x16'),'content':_0x2f7ec6(this[_0x582c('0x1c')][_0x582c('0xc')],_0x45041d)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2db5=['setTableColumnHeader','activeMarkers','setTableRowHeader','getChild','editing','nodeAfter','createPositionAfter','cell','downcastDispatcher','document','options','stop','index','consume','highest','has','TrackChangesEditing','commandParams','model','formatBlock','forceValue','last','getCellLocation','*Format:*\x20%0','value','bindElementToMarker','commands','createTableWalker','FORMAT_HEADER_ROW','headingColumns','locale','getSuggestion','_splitMarkerName','removeClass','writer','table','showSuggestionHighlights','createRange','TableUtils','editor','markerName','FORMAT_REGULAR_COLUMN','setAttribute','registerDescriptionCallback','parent','isBefore','unbindElementFromMarkerName','name','first','TableEditing','getAttribute','markerNameToElements','ck-suggestion-marker-','removeMarker:suggestion','markerRange','FORMAT_REGULAR_ROW','mapper','getSelectionAffectedTableCells','getColumnIndexes','selection','commandName','data','markBlockFormat','getRowIndexes','change','accept','enableCommand','removeAttribute','includes','addMarker:suggestion','plugins','consumable','data-suggestion','childCount','_suggestionFactory','format','get','createPositionBefore','registerCustomCallback','item','ck-suggestion-marker--active','start','_acceptFormatSuggestionCallbackFactory','end','requires'];(function(_0x1acd02,_0x2db5ed){const _0x4a0b31=function(_0x43fb38){while(--_0x43fb38){_0x1acd02['push'](_0x1acd02['shift']());}};_0x4a0b31(++_0x2db5ed);}(_0x2db5,0xd4));const _0x4a0b=function(_0x1acd02,_0x2db5ed){_0x1acd02=_0x1acd02-0x0;let _0x4a0b31=_0x2db5[_0x1acd02];return _0x4a0b31;};import{Plugin as _0x502395}from'ckeditor5/src/core';import _0x33a1dc from'./table';import{getTranslation as _0x3b2044}from'../utils/common-translations';export default class pt extends _0x502395{static get[_0x4a0b('0x2a')](){return[_0x33a1dc];}['afterInit'](){const _0x106256=this[_0x4a0b('0x52')];if(!_0x106256[_0x4a0b('0x1c')][_0x4a0b('0x3a')](_0x4a0b('0x7')))return;const _0x341fb2=_0x106256[_0x4a0b('0x49')],_0x33fe29=_0x106256['plugins'][_0x4a0b('0x22')](_0x4a0b('0x3b')),_0x13164b=_0x106256[_0x4a0b('0x1c')][_0x4a0b('0x22')]('TableUtils'),_0x63f2fa=_0x106256[_0x4a0b('0x1c')][_0x4a0b('0x22')](_0x33a1dc);function _0x471ac8({showActiveMarker:_0x4169ad=!0x0,setDataAttribute:_0x45291c=!0x0}={}){return(_0x56bf0c,_0x56e664,_0x11a268)=>{const {type:_0x574be0,id:_0x1e7ba4}=_0x33fe29[_0x4a0b('0x4b')](_0x56e664[_0x4a0b('0x53')]),_0x4a39f5=_0x33fe29['getSuggestion'](_0x1e7ba4);if(!_0x4a39f5[_0x4a0b('0x13')]||_0x4a0b('0x2b')!=_0x4a39f5['data']['commandName'])return;if(_0x56e664[_0x4a0b('0x25')])return void _0x56bf0c[_0x4a0b('0x36')]();if(!_0x11a268[_0x4a0b('0x1d')][_0x4a0b('0x38')](_0x56e664['markerRange'],_0x56bf0c[_0x4a0b('0x5')]))return;const _0x501c4f=_0x56e664[_0x4a0b('0xc')][_0x4a0b('0x27')][_0x4a0b('0x30')],_0x1e0459=_0x56e664[_0x4a0b('0xc')][_0x4a0b('0x29')]['nodeBefore'],_0x23bb06=_0x501c4f[_0x4a0b('0x2')][_0x4a0b('0x2')],{column:_0x119889}=_0x13164b[_0x4a0b('0x41')](_0x501c4f),{column:_0x2f146e}=_0x13164b[_0x4a0b('0x41')](_0x1e0459);for(let _0x9dcbe8=_0x119889;_0x9dcbe8<=_0x2f146e;_0x9dcbe8++){const _0x2b89a9=_0x13164b[_0x4a0b('0x46')](_0x23bb06,{'column':_0x9dcbe8,'includeAllSlots':!0x1});for(const _0x15f581 of _0x2b89a9){const _0x198bfe=_0x15f581[_0x4a0b('0x32')],_0x1605d6=_0x11a268[_0x4a0b('0xe')]['toViewElement'](_0x198bfe);_0x11a268[_0x4a0b('0x4d')]['addClass'](_0x4a0b('0xa')+_0x574be0,_0x1605d6),_0x45291c&&_0x11a268['writer'][_0x4a0b('0x0')](_0x4a0b('0x1e'),_0x1e7ba4,_0x1605d6),_0x11a268[_0x4a0b('0xe')][_0x4a0b('0x44')](_0x1605d6,_0x56e664['markerName']),_0x4169ad&&(_0x33fe29[_0x4a0b('0x2c')][_0x4a0b('0x1a')](_0x56e664['markerName'])?_0x11a268[_0x4a0b('0x4d')]['addClass']('ck-suggestion-marker--active',_0x1605d6):_0x11a268['writer'][_0x4a0b('0x4c')](_0x4a0b('0x26'),_0x1605d6));}}};}_0x33fe29[_0x4a0b('0x18')](_0x4a0b('0x2d'),(_0x5cb53e,_0x29f43a)=>{const _0x52db16=_0x13164b[_0x4a0b('0xf')](_0x106256['model'][_0x4a0b('0x34')][_0x4a0b('0x11')]),_0x1558f1=_0x13164b[_0x4a0b('0x15')](_0x52db16),_0x7d408d=_0x52db16[0x0]['findAncestor'](_0x4a0b('0x4e')),_0x1b5875=_0x7d408d[_0x4a0b('0x8')]('headingRows')||0x0,_0x3b7cf0=_0x29f43a&&null!==_0x29f43a[_0x4a0b('0x3f')]?_0x29f43a['forceValue']:!_0x106256['commands'][_0x4a0b('0x22')](_0x4a0b('0x2d'))[_0x4a0b('0x43')],_0x2b4778=_0x3b7cf0?_0x1558f1[_0x4a0b('0x40')]:_0x1558f1[_0x4a0b('0x6')],_0x4ed439=_0x7d408d[_0x4a0b('0x2e')](_0x2b4778);let _0x35a3b7;if(_0x3b7cf0){const _0x3f1df7=_0x7d408d[_0x4a0b('0x2e')](_0x1b5875);if(_0x4ed439[_0x4a0b('0x37')]<_0x3f1df7[_0x4a0b('0x37')])return;_0x35a3b7=_0x106256[_0x4a0b('0x3d')]['createRange'](_0x106256[_0x4a0b('0x3d')][_0x4a0b('0x23')](_0x3f1df7[_0x4a0b('0x2e')](0x0)),_0x106256['model'][_0x4a0b('0x31')](_0x4ed439[_0x4a0b('0x2e')](_0x4ed439[_0x4a0b('0x1f')]-0x1)));}else{const _0x3fd886=_0x7d408d[_0x4a0b('0x2e')](_0x1b5875-0x1);if(!_0x3fd886)return;_0x35a3b7=_0x106256[_0x4a0b('0x3d')][_0x4a0b('0x50')](_0x106256['model']['createPositionBefore'](_0x4ed439[_0x4a0b('0x2e')](0x0)),_0x106256[_0x4a0b('0x3d')][_0x4a0b('0x31')](_0x3fd886[_0x4a0b('0x2e')](_0x3fd886[_0x4a0b('0x1f')]-0x1)));}_0x106256[_0x4a0b('0x3d')][_0x4a0b('0x16')](()=>{_0x33fe29[_0x4a0b('0x14')](_0x35a3b7,{'commandName':_0x4a0b('0x2d'),'commandParams':[{'forceValue':_0x3b7cf0}]},[],_0x4a0b('0x2d'));});}),_0x33fe29['enableCommand']('setTableColumnHeader',(_0x4d07c,_0x3596cf)=>{const _0x3cea69=_0x106256[_0x4a0b('0x1c')][_0x4a0b('0x22')](_0x4a0b('0x51')),_0x19b4a1=_0x3cea69['getSelectionAffectedTableCells'](_0x106256[_0x4a0b('0x3d')][_0x4a0b('0x34')][_0x4a0b('0x11')]),_0x448b28=_0x3cea69[_0x4a0b('0x10')](_0x19b4a1),_0x17d7b6=_0x19b4a1[0x0]['findAncestor'](_0x4a0b('0x4e')),_0xe97da5=_0x17d7b6[_0x4a0b('0x8')](_0x4a0b('0x48'))||0x0,_0x3278bd=_0x3596cf&&null!==_0x3596cf[_0x4a0b('0x3f')]?_0x3596cf[_0x4a0b('0x3f')]:!_0x106256[_0x4a0b('0x45')][_0x4a0b('0x22')](_0x4a0b('0x2b'))[_0x4a0b('0x43')];let _0x77836d;const _0x1f801f=_0x17d7b6['getChild'](0x0),_0x260110=_0x3278bd?_0x448b28[_0x4a0b('0x40')]:_0x448b28[_0x4a0b('0x6')],_0x4acc9a=_0x3cea69['createTableWalker'](_0x17d7b6,{'startRow':0x0,'column':_0x260110,'includeAllSlots':!0x1}),_0x2052ca=Array['from'](_0x4acc9a)[0x0][_0x4a0b('0x32')];if(_0x3278bd){const _0x10c77a=_0x1f801f[_0x4a0b('0x2e')](_0xe97da5);if(_0x2052ca[_0x4a0b('0x3')](_0x10c77a))return;_0x77836d=_0x106256[_0x4a0b('0x3d')][_0x4a0b('0x50')](_0x106256[_0x4a0b('0x3d')][_0x4a0b('0x23')](_0x10c77a),_0x106256[_0x4a0b('0x3d')][_0x4a0b('0x31')](_0x2052ca));}else{const _0x48f93d=_0x1f801f[_0x4a0b('0x2e')](_0xe97da5-0x1);if(!_0x48f93d)return;_0x77836d=_0x106256[_0x4a0b('0x3d')][_0x4a0b('0x50')](_0x106256[_0x4a0b('0x3d')][_0x4a0b('0x23')](_0x2052ca),_0x106256[_0x4a0b('0x3d')]['createPositionAfter'](_0x48f93d));}_0x106256['model'][_0x4a0b('0x16')](()=>{_0x33fe29[_0x4a0b('0x14')](_0x77836d,{'commandName':_0x4a0b('0x2b'),'commandParams':[{'forceValue':_0x3278bd}]},[],_0x4a0b('0x2b'));});}),_0x106256[_0x4a0b('0x2f')]['downcastDispatcher']['on'](_0x4a0b('0x1b'),_0x471ac8(),{'priority':_0x4a0b('0x39')}),_0x106256[_0x4a0b('0x13')][_0x4a0b('0x33')]['on']('addMarker:suggestion',(_0x11c195,_0x64a220,_0x13b3e5)=>{_0x13b3e5[_0x4a0b('0x35')][_0x4a0b('0x4f')]&&_0x471ac8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x11c195,_0x64a220,_0x13b3e5);},{'priority':'highest'}),_0x106256[_0x4a0b('0x2f')][_0x4a0b('0x33')]['on'](_0x4a0b('0xb'),(_0x2b73fb,_0x22e7c2,_0x1ad570)=>{const {type:_0x4e206c,id:_0x254afe}=_0x33fe29['_splitMarkerName'](_0x22e7c2[_0x4a0b('0x53')]),_0x4f66e3=_0x33fe29[_0x4a0b('0x4a')](_0x254afe);if(!_0x4f66e3['data']||_0x4a0b('0x2b')!=_0x4f66e3[_0x4a0b('0x13')]['commandName'])return;const _0x189325=_0x1ad570[_0x4a0b('0xe')][_0x4a0b('0x9')](_0x22e7c2[_0x4a0b('0x53')]);if(_0x189325)for(const _0x1b7c5e of _0x189325)_0x1ad570['writer'][_0x4a0b('0x4c')]('ck-suggestion-marker-'+_0x4e206c,_0x1b7c5e),_0x1ad570[_0x4a0b('0x4d')]['removeClass'](_0x4a0b('0x26'),_0x1b7c5e),_0x1ad570[_0x4a0b('0x4d')][_0x4a0b('0x19')](_0x4a0b('0x1e'),_0x1b7c5e),_0x1ad570['mapper'][_0x4a0b('0x4')](_0x1b7c5e,_0x22e7c2[_0x4a0b('0x53')]);},{'priority':_0x4a0b('0x39')}),_0x33fe29['_descriptionFactory'][_0x4a0b('0x1')](_0x235b52=>{const {data:_0x138372}=_0x235b52;if(_0x138372){if(_0x4a0b('0x2d')==_0x138372[_0x4a0b('0x12')]){const _0x5ea0cb=_0x138372['commandParams'][0x0][_0x4a0b('0x3f')];return _0x4e1909(_0x3b2044(_0x341fb2,_0x5ea0cb?_0x4a0b('0x47'):_0x4a0b('0xd')));}if('setTableColumnHeader'==_0x138372[_0x4a0b('0x12')]){const _0x36a031=_0x138372[_0x4a0b('0x3c')][0x0][_0x4a0b('0x3f')];return _0x4e1909(_0x3b2044(_0x341fb2,_0x36a031?'FORMAT_HEADER_COLUMN':_0x4a0b('0x54')));}}function _0x4e1909(_0x19c792){return{'type':_0x4a0b('0x21'),'content':_0x3b2044(_0x341fb2,_0x4a0b('0x42'),_0x19c792)};}});const _0x2817c5=_0x63f2fa[_0x4a0b('0x28')]();_0x33fe29[_0x4a0b('0x20')][_0x4a0b('0x24')](_0x4a0b('0x3e'),_0x4a0b('0x2d'),_0x4a0b('0x17'),_0x2817c5),_0x33fe29[_0x4a0b('0x20')]['registerCustomCallback'](_0x4a0b('0x3e'),_0x4a0b('0x2b'),_0x4a0b('0x17'),_0x2817c5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1be7=['size','fromRange','get','markBlockFormat','createTableWalker','_isForcedDefaultExecutionBlock','set:isEnabled','*Split\x20cell:*\x20horizontally','find','editor','table','splitTableCellHorizontally','mergeTableCellRight','_descriptionFactory','setSelection','document','add','from','createRangeOn','getSelectionAffectedTableCells','value','stop','$graveyard','markMultiRangeBlockFormat','author','forceDefaultExecution','*Merge\x20cells*','push','highest','TableEditing','accept','model','requires','formatBlock','getSuggestions','commands','containsRange','selection','refresh','deletion','registerDescriptionCallback','plugins','return','mergeTableCells','format','getRanges','execute','tableCell','mergeTableCellLeft','getFirstPosition','element','getAncestors','getCellLocation','rootName','enableCommand','cell','TableUtils','locale','_suggestionFactory','commandName','subType','_areSelectedCellsMergable','TrackChangesEditing','registerCustomCallback','has','afterInit','map','splitTableCellVertically','findAncestor','root','mergeTableCellDown','*Split\x20cell:*\x20vertically','_areMergableCells','change','length','type','mergeTableCellUp'];(function(_0x23fe75,_0x1be76e){const _0x401e10=function(_0x404023){while(--_0x404023){_0x23fe75['push'](_0x23fe75['shift']());}};_0x401e10(++_0x1be76e);}(_0x1be7,0xfb));const _0x401e=function(_0x23fe75,_0x1be76e){_0x23fe75=_0x23fe75-0x0;let _0x401e10=_0x1be7[_0x23fe75];return _0x401e10;};import{Plugin as _0x1e7650}from'ckeditor5/src/core';import _0x579b7f from'./table';import{LiveRange as _0x34ef78}from'ckeditor5/src/engine';import{getTranslation as _0x4b05b9}from'../utils/common-translations';export default class dt extends _0x1e7650{static get[_0x401e('0xc')](){return[_0x579b7f];}[_0x401e('0x2d')](){const _0x154793=this[_0x401e('0x42')],_0x59527e=_0x154793[_0x401e('0xb')][_0x401e('0x48')]['selection'],_0x50da01=_0x154793[_0x401e('0x25')];if(!_0x154793['plugins'][_0x401e('0x2c')](_0x401e('0x9')))return;const _0x1393c9=_0x154793['plugins'][_0x401e('0x3b')](_0x401e('0x2a')),_0xa4faad=_0x154793[_0x401e('0x15')][_0x401e('0x3b')](_0x401e('0x24')),_0x19b901=_0x154793[_0x401e('0x15')][_0x401e('0x3b')](_0x579b7f);_0x19b901['_tablePostFixingSubtypes'][_0x401e('0x7')](_0x401e('0x17')),_0x1393c9[_0x401e('0x22')](_0x401e('0x17'),()=>{const _0x176f54=_0xa4faad['getSelectionAffectedTableCells'](_0x154793[_0x401e('0xb')][_0x401e('0x48')]['selection']);_0x154793['model'][_0x401e('0x35')](()=>{_0x1393c9[_0x401e('0x3')](_0x176f54,{'commandName':_0x401e('0x17'),'commandParams':[]},[],'mergeTableCells');});}),_0x154793[_0x401e('0xf')]['get'](_0x401e('0x17'))['on'](_0x401e('0x1a'),(_0x4e56db,_0x1c2095)=>{_0x154793[_0x401e('0xf')][_0x401e('0x3b')]('trackChanges')[_0x401e('0x0')]&&(_0x1c2095[_0x401e('0x36')]>0x0&&_0x1c2095[_0x1c2095[_0x401e('0x36')]-0x1]&&_0x1c2095[_0x1c2095[_0x401e('0x36')]-0x1][_0x401e('0x5')]||_0x1393c9[_0x401e('0x3e')]||this['_areSelectedCellsMergable']()||_0x4e56db[_0x401e('0x1')]());},{'priority':_0x401e('0x8')});for(const _0x52449e of[_0x401e('0x38'),_0x401e('0x45'),_0x401e('0x32'),_0x401e('0x1c')]){const _0x2781cb=_0x154793['commands']['get'](_0x52449e);_0x1393c9['enableCommand'](_0x52449e,()=>{const _0x31c712=_0x154793[_0x401e('0xb')][_0x401e('0x48')][_0x401e('0x11')][_0x401e('0x1d')]()['getAncestors']()[_0x401e('0x41')](_0x574774=>_0x574774['is'](_0x401e('0x1e'),_0x401e('0x1b'))),_0x8e29c6=_0x2781cb[_0x401e('0x0')];_0x154793[_0x401e('0xb')][_0x401e('0x35')](()=>{_0x1393c9[_0x401e('0x3')]([_0x31c712,_0x8e29c6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x748a6e of[_0x401e('0x2f'),'splitTableCellHorizontally']){const _0x6b7708=_0x154793[_0x401e('0xf')][_0x401e('0x3b')](_0x748a6e);_0x1393c9[_0x401e('0x22')](_0x748a6e,()=>{const _0x11c709=_0xa4faad[_0x401e('0x4c')](_0x154793[_0x401e('0xb')][_0x401e('0x48')][_0x401e('0x11')])[0x0],_0x50bf82=_0x11c709[_0x401e('0x30')](_0x401e('0x43')),{column:_0x55060c,row:_0x2203d9}=_0xa4faad[_0x401e('0x20')](_0x11c709);let _0x274b4d=[];if('horizontally'==_0x6b7708['direction']){const _0x17ded1=_0xa4faad[_0x401e('0x3d')](_0x50bf82,{'startRow':_0x2203d9,'endRow':_0x2203d9,'includeAllSlots':!0x0});_0x274b4d=Array['from'](_0x17ded1)['map'](_0x778633=>_0x778633[_0x401e('0x23')]);}else{const _0x2e4ad5=_0xa4faad['createTableWalker'](_0x50bf82,{'column':_0x55060c,'includeAllSlots':!0x0});_0x274b4d=Array[_0x401e('0x4a')](_0x2e4ad5)[_0x401e('0x2e')](_0xc2f59b=>_0xc2f59b[_0x401e('0x23')]);}_0x154793['model'][_0x401e('0x35')](_0x4171e2=>{_0x1393c9[_0x401e('0x3c')](_0x4171e2[_0x401e('0x4b')](_0x11c709),{'commandName':_0x748a6e,'commandParams':[]},_0x274b4d,_0x748a6e);});});}_0x1393c9[_0x401e('0x46')][_0x401e('0x14')](_0x50f3ba=>{const {data:_0x26e7e5}=_0x50f3ba;if(_0x26e7e5)return _0x401e('0x17')==_0x26e7e5[_0x401e('0x27')]?{'type':_0x401e('0x18'),'content':_0x4b05b9(_0x50da01,_0x401e('0x6'))}:void 0x0;}),_0x1393c9['_descriptionFactory'][_0x401e('0x14')](_0x4c76b7=>{const {data:_0x141f61}=_0x4c76b7;if(_0x141f61)return _0x401e('0x2f')==_0x141f61[_0x401e('0x27')]?{'type':_0x401e('0x18'),'content':_0x4b05b9(_0x50da01,_0x401e('0x33'))}:_0x401e('0x44')==_0x141f61[_0x401e('0x27')]?{'type':_0x401e('0x18'),'content':_0x4b05b9(_0x50da01,_0x401e('0x40'))}:void 0x0;});const _0x1a1873=_0x19b901['_acceptFormatSuggestionCallbackFactory']();for(const _0x342a89 of[_0x401e('0x38'),_0x401e('0x45'),_0x401e('0x32'),_0x401e('0x1c')])_0x1393c9['_suggestionFactory']['registerCustomCallback'](_0x401e('0xd'),_0x342a89,_0x401e('0xa'),_0x1a1873);for(const _0x14abe0 of[_0x401e('0x2f'),'splitTableCellHorizontally'])_0x1393c9[_0x401e('0x26')][_0x401e('0x2b')](_0x401e('0xd'),_0x14abe0,_0x401e('0xa'),_0x1a1873);_0x1393c9[_0x401e('0x26')]['registerCustomCallback']('formatBlock','mergeTableCells',_0x401e('0xa'),_0x401ade=>{_0x154793[_0x401e('0xb')]['change'](_0xd7ef4f=>{const _0x6daa1b=Array[_0x401e('0x4a')](_0x59527e[_0x401e('0x19')]())['map'](_0x2629e0=>_0x34ef78[_0x401e('0x3a')](_0x2629e0));_0xd7ef4f[_0x401e('0x47')](_0x401ade),_0x154793[_0x401e('0xf')]['get']('mergeTableCells')[_0x401e('0x12')](),_0x154793[_0x401e('0x1a')](_0x401e('0x17'),{'forceDefaultExecution':!0x0});const _0x502fa9=_0x6daa1b['filter'](_0x57a6fd=>_0x401e('0x2')!=_0x57a6fd[_0x401e('0x31')][_0x401e('0x21')]);_0x502fa9[_0x401e('0x36')]>0x0&&_0xd7ef4f[_0x401e('0x47')](_0x502fa9);for(const _0x43e146 of _0x6daa1b)_0x43e146['detach']();});});for(const _0x5bdf15 of['mergeTableCellUp',_0x401e('0x32'),'mergeTableCellLeft','mergeTableCellRight']){const _0x3ab776=_0x154793[_0x401e('0xf')][_0x401e('0x3b')](_0x5bdf15);_0x3ab776['on'](_0x401e('0x3f'),(_0x523eda,_0x30c06a,_0x3aa9d2)=>{if(_0x3aa9d2){const _0x4fb80c=_0x154793[_0x401e('0xb')][_0x401e('0x48')]['selection']['getFirstPosition']()[_0x401e('0x1f')]()['find'](_0x1a2211=>_0x1a2211['is'](_0x401e('0x1e'),'tableCell'));this[_0x401e('0x34')](_0x3ab776[_0x401e('0x0')],_0x4fb80c)||(_0x523eda[_0x401e('0x16')]=!0x1,_0x523eda[_0x401e('0x1')]());}},{'priority':'low'});}}[_0x401e('0x29')](){const _0x3ca532=this[_0x401e('0x42')][_0x401e('0xf')][_0x401e('0x3b')](_0x401e('0x17')),_0x443908=this[_0x401e('0x42')][_0x401e('0x15')][_0x401e('0x3b')](_0x401e('0x24'));if(!_0x3ca532['isEnabled'])return!0x1;const _0x395d38=_0x443908['getSelectionAffectedTableCells'](this['editor'][_0x401e('0xb')][_0x401e('0x48')][_0x401e('0x11')]);for(const _0x23281b of _0x395d38)for(const _0x53f6dc of _0x395d38)if(_0x23281b!=_0x53f6dc&&!this[_0x401e('0x34')](_0x23281b,_0x53f6dc))return!0x1;return!0x0;}[_0x401e('0x34')](_0x3d4a6f,_0x5421cd){const _0x523fce=this[_0x401e('0x42')]['plugins']['get'](_0x401e('0x2a')),_0x38a5e1=this[_0x401e('0x42')][_0x401e('0xb')][_0x401e('0x4b')](_0x3d4a6f),_0x1c5cc1=this[_0x401e('0x42')][_0x401e('0xb')][_0x401e('0x4b')](_0x5421cd),_0x32ba6f=new Set(),_0x12a16d=new Set();for(const _0x3afd70 of _0x523fce[_0x401e('0xe')]())if(('insertion'==_0x3afd70[_0x401e('0x37')]||_0x401e('0x13')==_0x3afd70[_0x401e('0x37')]||'mergeTableCells'==_0x3afd70[_0x401e('0x28')])&&_0x3afd70['isInContent'])for(const _0x32b38a of _0x3afd70[_0x401e('0x19')]())_0x32b38a[_0x401e('0x10')](_0x38a5e1,!0x0)&&_0x32ba6f['add'](_0x3afd70[_0x401e('0x37')]+':'+_0x3afd70[_0x401e('0x4')]['id']),_0x32b38a[_0x401e('0x10')](_0x1c5cc1,!0x0)&&_0x12a16d[_0x401e('0x49')](_0x3afd70[_0x401e('0x37')]+':'+_0x3afd70['author']['id']);if(_0x32ba6f[_0x401e('0x39')]!=_0x12a16d[_0x401e('0x39')])return!0x1;for(const _0x36c445 of _0x32ba6f)if(!_0x12a16d[_0x401e('0x2c')](_0x36c445))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4770=['locale','enableCommand','tableOfContents','get','plugins','editor','afterInit','commands','_descriptionFactory','ELEMENT_TABLE_OF_CONTENTS'];(function(_0x277fbb,_0x47701e){const _0x4a823a=function(_0x3d623d){while(--_0x3d623d){_0x277fbb['push'](_0x277fbb['shift']());}};_0x4a823a(++_0x47701e);}(_0x4770,0x10a));const _0x4a82=function(_0x277fbb,_0x47701e){_0x277fbb=_0x277fbb-0x0;let _0x4a823a=_0x4770[_0x277fbb];return _0x4a823a;};import{Plugin as _0x3a3f01}from'ckeditor5/src/core';import{getTranslation as _0x323609}from'../utils/common-translations';export default class bt extends _0x3a3f01{[_0x4a82('0x0')](){const _0x4770ab=this[_0x4a82('0x9')];if(!_0x4770ab[_0x4a82('0x1')]['get']('insertTableOfContents'))return;_0x4770ab[_0x4a82('0x8')][_0x4a82('0x7')]('TrackChangesEditing')[_0x4a82('0x5')]('insertTableOfContents');const _0x1ba5c3=_0x4770ab['plugins'][_0x4a82('0x7')]('TrackChangesEditing'),_0x5c6600=_0x4770ab[_0x4a82('0x4')];_0x1ba5c3[_0x4a82('0x2')]['registerElementLabel'](_0x4a82('0x6'),_0x4c37fb=>_0x323609(_0x5c6600,_0x4a82('0x3'),_0x4c37fb));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4384=['tableCellPadding','tableProperties','findAncestor','tableWidth','model','*Format:*\x20change\x20table\x20cell\x20properties','tableAlignment','_getSuggestion','markBlockFormat','selection','commandParams','registerCustomCallback','change','tableCellProperties','tableCellBorderColor','getFirstPosition','setAttribute','tableCellBorderStyle','tableBorderWidth','locale','TrackChangesEditing','_suggestionFactory','TableCellPropertiesEditing','nodeAfter','getSuggestionCallback','tableBackgroundColor','accept','tableCellWidth','format','tableCellHorizontalAlignment','removeAttribute','document','tableBorderStyle','get','enqueueChange','enableCommand','table','editor','subType','handleDiscardAction','tableBorderColor','TableUtils','data','handleSuggestionDescription','_descriptionFactory','has','pluginName','plugins','batch','start','discard','tableHeight','tableCellBackgroundColor','_handlePropertyChange','formatBlock','afterInit','getSuggestions'];(function(_0x7f466d,_0x438492){const _0x416f18=function(_0x5cc857){while(--_0x5cc857){_0x7f466d['push'](_0x7f466d['shift']());}};_0x416f18(++_0x438492);}(_0x4384,0x85));const _0x416f=function(_0x7f466d,_0x438492){_0x7f466d=_0x7f466d-0x0;let _0x416f18=_0x4384[_0x7f466d];return _0x416f18;};import{Plugin as _0x15419e}from'ckeditor5/src/core';import{getTranslation as _0xce56c3}from'../utils/common-translations';export default class Ct extends _0x15419e{constructor(_0x2dd503){super(_0x2dd503),this[_0x416f('0x27')]=[_0x416f('0x15'),_0x416f('0xd'),_0x416f('0x38'),_0x416f('0x2c'),_0x416f('0x29'),_0x416f('0x20'),_0x416f('0x6')],this['tableCellProperties']=[_0x416f('0x34'),_0x416f('0x37'),'tableCellBorderWidth',_0x416f('0x26'),_0x416f('0x8'),'tableCellHeight',_0x416f('0x21'),_0x416f('0xa'),'tableCellVerticalAlignment'];}static get[_0x416f('0x1b')](){return'TrackChangesTableProperties';}[_0x416f('0x24')](){const _0x3df9e5=this[_0x416f('0x12')][_0x416f('0x1c')]['get'](_0x416f('0x1'));if(this['editor'][_0x416f('0x1c')][_0x416f('0x1a')]('TablePropertiesEditing')){for(const _0xc394ac of this[_0x416f('0x27')])_0x3df9e5[_0x416f('0x10')](_0xc394ac,(_0x4049c6,_0xf4556c)=>{const _0x491c8f=this['editor'][_0x416f('0x2a')][_0x416f('0xc')][_0x416f('0x2f')][_0x416f('0x35')]()[_0x416f('0x28')](_0x416f('0x11'));this[_0x416f('0x22')](_0xc394ac,[_0x491c8f],this[_0x416f('0x27')],_0x416f('0x27'),_0x4049c6,_0xf4556c);});_0x3df9e5['_suggestionFactory']['registerCustomCallback'](_0x416f('0x23'),_0x416f('0x27'),'accept',_0x3df9e5[_0x416f('0x2')][_0x416f('0x5')](_0x416f('0x23'),null,_0x416f('0x1f'))),_0x3df9e5[_0x416f('0x2')]['registerCustomCallback']('formatBlock',_0x416f('0x27'),'discard',(_0xdde2f6,_0x286138)=>this[_0x416f('0x14')](this[_0x416f('0x27')],_0xdde2f6,_0x286138)),_0x3df9e5['_suggestionFactory'][_0x416f('0x31')](_0x416f('0x23'),_0x416f('0x27'),'join',()=>!0x1);}if(this[_0x416f('0x12')]['plugins'][_0x416f('0x1a')](_0x416f('0x3'))){for(const _0x1941c9 of this[_0x416f('0x33')])_0x3df9e5[_0x416f('0x10')](_0x1941c9,(_0x4a53b4,_0x3c1e2c)=>{const _0x4eca26=this[_0x416f('0x12')]['plugins'][_0x416f('0xe')](_0x416f('0x16'))['getSelectionAffectedTableCells'](this[_0x416f('0x12')][_0x416f('0x2a')][_0x416f('0xc')][_0x416f('0x2f')]);this[_0x416f('0x22')](_0x1941c9,_0x4eca26,this['tableCellProperties'],_0x416f('0x33'),_0x4a53b4,_0x3c1e2c);});_0x3df9e5[_0x416f('0x2')][_0x416f('0x31')](_0x416f('0x23'),'tableCellProperties',_0x416f('0x7'),_0x3df9e5[_0x416f('0x2')][_0x416f('0x5')](_0x416f('0x23'),null,'discard')),_0x3df9e5[_0x416f('0x2')][_0x416f('0x31')]('formatBlock',_0x416f('0x33'),_0x416f('0x1f'),(_0x2fd84a,_0x363ed2)=>this[_0x416f('0x14')](this[_0x416f('0x33')],_0x2fd84a,_0x363ed2)),_0x3df9e5[_0x416f('0x2')][_0x416f('0x31')]('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3df9e5[_0x416f('0x19')]['registerDescriptionCallback'](_0x5eb9f7=>this[_0x416f('0x18')](_0x5eb9f7));}[_0x416f('0x22')](_0x3ee794,_0x492c48,_0x2a72ba,_0x10afde,_0x4083ce,_0x5d6950){const _0x400ca8=this[_0x416f('0x12')][_0x416f('0x1c')][_0x416f('0xe')]('TrackChangesEditing');this[_0x416f('0x12')]['model'][_0x416f('0xf')](_0x5d6950[_0x416f('0x1d')],()=>{for(const _0x4217f5 of _0x492c48){if(this[_0x416f('0x2d')](_0x4217f5,_0x10afde))_0x4083ce(_0x5d6950);else{const _0x3d2621={};for(const _0x488d8b of _0x2a72ba){const _0x28a12a=_0x4217f5['getAttribute'](_0x488d8b);void 0x0!==_0x28a12a&&(_0x3d2621[_0x488d8b]=_0x28a12a);}_0x4083ce(_0x5d6950),_0x400ca8[_0x416f('0x2e')](_0x4217f5,{'commandParams':[_0x3d2621]},[],_0x10afde);}}});}[_0x416f('0x14')](_0x5d13fc,_0x342abf,_0x14d0aa){const _0x2a3ece=_0x342abf[0x0][_0x416f('0x1e')][_0x416f('0x4')],_0x135a8a=_0x14d0aa[_0x416f('0x30')][0x0];this['editor']['model'][_0x416f('0x32')](_0x241a24=>{for(const _0x326b3c of _0x5d13fc)void 0x0!==_0x135a8a[_0x326b3c]?_0x241a24[_0x416f('0x36')](_0x326b3c,_0x135a8a[_0x326b3c],_0x2a3ece):_0x241a24[_0x416f('0xb')](_0x326b3c,_0x2a3ece);});}[_0x416f('0x18')](_0x35b655){if(_0x35b655[_0x416f('0x17')])switch(_0x35b655[_0x416f('0x13')]){case _0x416f('0x27'):return{'type':'format','content':_0xce56c3(this[_0x416f('0x12')][_0x416f('0x0')],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':_0x416f('0x9'),'content':_0xce56c3(this[_0x416f('0x12')][_0x416f('0x0')],_0x416f('0x2b'))};}}[_0x416f('0x2d')](_0x68d0d9,_0x50a0c8){const _0x5ad400=this[_0x416f('0x12')][_0x416f('0x1c')][_0x416f('0xe')](_0x416f('0x1'));for(const _0x23c9d6 of _0x5ad400[_0x416f('0x25')]({'skipNotAttached':!0x0})){const _0x3efe8b=_0x23c9d6['getContainedElement']();if(_0x23c9d6[_0x416f('0x13')]===_0x50a0c8&&_0x3efe8b===_0x68d0d9)return _0x23c9d6;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5333=['editor','afterInit','get','enableCommand','plugins','Template','TrackChangesEditing'];(function(_0x244e35,_0x53337e){const _0x227454=function(_0x2b528e){while(--_0x2b528e){_0x244e35['push'](_0x244e35['shift']());}};_0x227454(++_0x53337e);}(_0x5333,0xfc));const _0x2274=function(_0x244e35,_0x53337e){_0x244e35=_0x244e35-0x0;let _0x227454=_0x5333[_0x244e35];return _0x227454;};import{Plugin as _0x593a95}from'ckeditor5/src/core';export default class yt extends _0x593a95{[_0x2274('0x1')](){const _0x4a50c8=this[_0x2274('0x0')];_0x4a50c8[_0x2274('0x4')]['has'](_0x2274('0x5'))&&_0x4a50c8[_0x2274('0x4')][_0x2274('0x2')](_0x2274('0x6'))[_0x2274('0x3')]('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43d3=['registerElementLabel','end','get','schema','nodeBefore','document','start','forward','_splitMarkerName','isEqual','title-content','locale','newRange','editor','has','createRange','Title','removeMarker','TrackChangesEditing','from','model','ELEMENT_TITLE','afterInit','isCollapsed','differ'];(function(_0x1490ab,_0x43d357){const _0x5e1ae6=function(_0x6d3bbe){while(--_0x6d3bbe){_0x1490ab['push'](_0x1490ab['shift']());}};_0x5e1ae6(++_0x43d357);}(_0x43d3,0xba));const _0x5e1a=function(_0x1490ab,_0x43d357){_0x1490ab=_0x1490ab-0x0;let _0x5e1ae6=_0x43d3[_0x1490ab];return _0x5e1ae6;};import{Plugin as _0x1029ff}from'ckeditor5/src/core';import{getTranslation as _0x28162d}from'../utils/common-translations';export default class St extends _0x1029ff{[_0x5e1a('0xb')](){const _0x1975e3=this[_0x5e1a('0x2')];if(!_0x1975e3['plugins'][_0x5e1a('0x3')](_0x5e1a('0x5')))return;const _0x4d5e40=_0x1975e3['plugins'][_0x5e1a('0x10')](_0x5e1a('0x7'));_0x4d5e40['_descriptionFactory'][_0x5e1a('0xe')](_0x5e1a('0x18'),()=>_0x28162d(_0x1975e3[_0x5e1a('0x0')],_0x5e1a('0xa'))),_0x1975e3['model'][_0x5e1a('0x13')]['registerPostFixer'](_0x1ee7a4=>{let _0x48e03d=!0x1;const _0x377da8=Array[_0x5e1a('0x8')](_0x1975e3[_0x5e1a('0x9')][_0x5e1a('0x13')][_0x5e1a('0xd')]['getChangedMarkers']());for(const {name:_0x49b1af,data:_0x2ac4e4}of _0x377da8){const {group:_0x561562}=_0x4d5e40[_0x5e1a('0x16')](_0x49b1af);if('suggestion'!==_0x561562||!_0x2ac4e4[_0x5e1a('0x1')])continue;const _0x55961a=_0x2ac4e4['newRange'],_0xaa9b68=_0x55961a[_0x5e1a('0xf')][_0x5e1a('0x12')];if(!_0xaa9b68||!_0xaa9b68['is']('element','title-content'))continue;if(!_0x55961a['start']['isTouching'](_0x55961a[_0x5e1a('0xf')]))continue;const _0x297f43=_0x1975e3[_0x5e1a('0x9')][_0x5e1a('0x11')]['getNearestSelectionRange'](_0x55961a['end'],_0x5e1a('0x15'));if(_0x297f43&&_0x297f43[_0x5e1a('0xc')]){const _0x218670=_0x1ee7a4[_0x5e1a('0x4')](_0x55961a[_0x5e1a('0x14')],_0x297f43['start']);_0x218670[_0x5e1a('0x17')](_0x55961a)||(_0x1ee7a4['updateMarker'](_0x49b1af,{'range':_0x218670}),_0x48e03d=!0x0);}_0x48e03d||(_0x1ee7a4[_0x5e1a('0x6')](_0x49b1af),_0x48e03d=!0x0);}return _0x48e03d;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e85=['has','afterInit','editor','TrackChangesEditing','plugins','UndoEditing','get','redo','enableCommand'];(function(_0xc151bc,_0x1e855b){const _0x43c950=function(_0x5eccc5){while(--_0x5eccc5){_0xc151bc['push'](_0xc151bc['shift']());}};_0x43c950(++_0x1e855b);}(_0x1e85,0x96));const _0x43c9=function(_0xc151bc,_0x1e855b){_0xc151bc=_0xc151bc-0x0;let _0x43c950=_0x1e85[_0xc151bc];return _0x43c950;};import{Plugin as _0x5eaa48}from'ckeditor5/src/core';export default class It extends _0x5eaa48{[_0x43c9('0x4')](){const _0x4b070d=this[_0x43c9('0x5')],_0x40d3c3=_0x4b070d[_0x43c9('0x7')][_0x43c9('0x0')](_0x43c9('0x6'));_0x4b070d[_0x43c9('0x7')][_0x43c9('0x3')](_0x43c9('0x8'))&&(_0x40d3c3['enableCommand']('undo'),_0x40d3c3[_0x43c9('0x2')](_0x43c9('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd935=['consumable','isBlock','listItem','addClass','element','toViewElement','plugins','nextSibling','name','item','elementEnd','mapper','get','previousPosition','isAtEnd','getItems','hasAttribute','includes','getCustomProperty','push','activeMarkers','getWalker','createUIElement','markerRange','isLimit','type','bindElementToMarker','getAttribute','listIndent','writer'];(function(_0x544305,_0xd93505){const _0x341c26=function(_0x55168c){while(--_0x55168c){_0x544305['push'](_0x544305['shift']());}};_0x341c26(++_0xd93505);}(_0xd935,0x1c6));const _0x341c=function(_0x544305,_0xd93505){_0x544305=_0x544305-0x0;let _0x341c26=_0xd935[_0x544305];return _0x341c26;};export function getRangesWithAttribute(_0x173538,_0x2b8fb1,_0x4552da){const _0x59b058=[];for(const _0x3ce25d of _0x2b8fb1[_0x341c('0xb')]())_0x3ce25d[_0x341c('0xc')](_0x173538)&&_0x59b058[_0x341c('0xf')](_0x4552da['createRangeOn'](_0x3ce25d));return _0x59b058;}export function getElementsAffectedByListItemRename(_0x345daa){const _0x38b6c3=[];if(_0x345daa['is'](_0x341c('0x0'),_0x341c('0x1c'))){let _0x3e40dc=_0x345daa['nextSibling'];for(;_0x3e40dc&&_0x3e40dc['is'](_0x341c('0x0'),_0x341c('0x1c'))&&_0x3e40dc[_0x341c('0x17')](_0x341c('0x18'))>0x0;)_0x38b6c3['push'](_0x3e40dc),_0x3e40dc=_0x3e40dc[_0x341c('0x3')];}return _0x38b6c3;}export function downcastSplitMergeMarker(_0x56c234,_0x58af95,{showActiveMarker:_0x1869a1=!0x0}={}){const _0x55c375=_0x56c234[_0x341c('0x2')][_0x341c('0x8')]('TrackChangesEditing');return(_0x2214aa,_0x13a0e1,_0x4e4967)=>{if(!_0x4e4967[_0x341c('0x1a')]['test'](_0x13a0e1[_0x341c('0x13')],_0x2214aa[_0x341c('0x4')]))return;const _0x3a175a=_0x13a0e1['markerRange'][_0x341c('0x11')](),_0x550cc7=_0x13a0e1[_0x341c('0x13')]['start'],_0xbfd39b=_0x56c234['model']['schema'];let _0x17d789=null,_0x105756=null,_0x2dddfa=!0x1,_0x5b3e6a=!0x1;for(const _0x17f2c2 of _0x3a175a){const _0x515604=_0x17f2c2[_0x341c('0x5')];_0x2dddfa=_0x2dddfa||_0xbfd39b['isContent'](_0x515604);const _0x19101e=_0x4e4967[_0x341c('0x7')][_0x341c('0x1')](_0x515604);if(_0x19101e&&_0x19101e[_0x341c('0xe')]('addHighlight'))return;_0x341c('0x6')==_0x17f2c2[_0x341c('0x15')]&&(_0xbfd39b[_0x341c('0x1b')](_0x515604)&&!_0xbfd39b[_0x341c('0x14')](_0x515604)&&(_0x515604[_0x341c('0x3')]||_0x550cc7[_0x341c('0xa')]?_0x17d789&&_0x17d789['parent']==_0x515604||(_0x17d789=_0x515604,_0x580497(_0x17f2c2[_0x341c('0x9')]),_0x5b3e6a=!0x0):_0x105756=_0x105756||_0x17f2c2[_0x341c('0x9')]));}function _0x580497(_0x3ee18f){const _0x218aa1=_0x4e4967[_0x341c('0x19')][_0x341c('0x12')]('span',{'class':'ck-suggestion-marker-'+_0x58af95}),_0x23fcbc=_0x4e4967[_0x341c('0x7')]['toViewPosition'](_0x3ee18f);_0x1869a1&&_0x55c375[_0x341c('0x10')][_0x341c('0xd')](_0x13a0e1['markerName'])&&_0x4e4967[_0x341c('0x19')][_0x341c('0x1d')]('ck-suggestion-marker--active',_0x218aa1),_0x4e4967['writer']['insert'](_0x23fcbc,_0x218aa1),_0x4e4967[_0x341c('0x7')][_0x341c('0x16')](_0x218aa1,_0x13a0e1['markerName']);}_0x2dddfa||_0x5b3e6a||!_0x105756||_0x580497(_0x105756);};}
|