@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230828.0 → 0.0.0-nightly-20230829.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.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 _0x58c4=['getSuggestionCallback','reduce','showSuggestionHighlights','find','getSelectionAffectedTableCells','previous','commands','newRange','getRange','push','getMarkers','tableCellBorderStyle','tablePasteColumn','author','registerCustomCallback','getChildren','$graveyard','insertion','forceDefaultExecution','getChanges','accept','requires','last','options','has','_suggestionFactory','tablePasteRow','first','_tablePostFixingSubtypes','insertRows','*Replace\x20table\x20cells*','previousSibling','getContainedElement','nextSibling','listenTo','insertContent','tablePaste','tableCellBorderWidth','_getCoordsForCells','suggestion-td','differ','getChild','registerPostFixer','_isForcedDefaultExecutionBlock','map','_descriptionFactory','unwrap','deletion','rowInsertionRanges','hasSuggestion','markerAttributes','from','every','add','paragraph','isEqual','high','stop','isEmpty','trackChanges','content','selection','row','wrap','attributes','suggestion:formatBlock:tablePasteCell','end','rowInsertionIndexes','includes','markMultiRangeBlockFormat','createRangeOn','document','schema','startsWith','markers','getRows','createRangeIn','getShiftedBy','plugins','markMultiRangeInsertion','insert','tableCellBorderColor','cells','filter','tableCellVerticalAlignment','containsRange','root','value','getRowIndexes','TableClipboard','change','remove','tableCellHorizontalAlignment','getAttributes','getRanges','tableCell','oldRange','removeMarkers','TrackChangesEditing','subType','markMultiRangeDeletion','nodeAfter','discard','formatBlock','locale','_replaceTableSlotCell','endColumn','fill','createRange','join','conversion','rootName','markerName','entries','rows','start','name','getAllAdjacentSuggestions','ck-suggestion-marker--active','length','tableCellPadding','isInContent','TableUtils','setAttribute','endRow','tablePasteCell','removeRows','type','removeMarker','suggestionLoaded','columns','columnInsertionIndexes','registerDescriptionCallback','return','position','findAncestor','_splitMarkerName','table','_createdBatches','editor','tableCellSuggestion','for','batch','getColumnIndexes','fromEntries','model','ck-suggestion-marker-insertion','suggestion','clipboardOutput','dataDowncast','get','set','afterInit','low','insertColumns','tablePasteChainId','Users','createElement','redo','getSuggestions','element','createTableWalker','activeMarkers'];(function(_0x1f8496,_0x58c4e2){const _0x557510=function(_0x3903a9){while(--_0x3903a9){_0x1f8496['push'](_0x1f8496['shift']());}};_0x557510(++_0x58c4e2);}(_0x58c4,0x6c));const _0x5575=function(_0x1f8496,_0x58c4e2){_0x1f8496=_0x1f8496-0x0;let _0x557510=_0x58c4[_0x1f8496];return _0x557510;};import{getTranslation as _0x1dc82b}from'../utils/common-translations';import{Plugin as _0x25d824}from'ckeditor5/src/core';import{uid as _0x371642,priorities as _0x1c61d3}from'ckeditor5/src/utils';import _0x3f6e2e from'./table';const le=[_0x5575('0x5c'),_0x5575('0x88'),_0x5575('0x42'),_0x5575('0x93'),_0x5575('0x8b'),'tableCellBackgroundColor',_0x5575('0xc')],ae=Object[_0x5575('0x24')](le[_0x5575('0x63')](_0x54d09d=>[_0x54d09d,null]));export default class kt extends _0x25d824{static get[_0x5575('0x4c')](){return[_0x3f6e2e];}[_0x5575('0x2c')](){const _0x5b1741=this[_0x5575('0x1f')];if(!_0x5b1741[_0x5575('0x85')][_0x5575('0x4f')](_0x5575('0x90')))return;const _0x32ce78=_0x5b1741[_0x5575('0x85')]['get'](_0x5575('0x99')),_0x31fdca=_0x5b1741[_0x5575('0x85')][_0x5575('0x2a')](_0x5575('0xe')),_0x1c8e81=_0x5b1741[_0x5575('0x85')][_0x5575('0x2a')](_0x3f6e2e),_0x4d7a51=_0x5b1741[_0x5575('0x85')][_0x5575('0x2a')](_0x5575('0x90'));_0x1c8e81[_0x5575('0x53')][_0x5575('0x40')]('tablePasteRow',_0x5575('0x43')),_0x5b1741['model'][_0x5575('0x7f')]['register'](_0x5575('0x20'),{'allowIn':'tableCell','allowContentOf':_0x5575('0x96'),'isLimit':!0x0}),_0x5b1741[_0x5575('0x2')]['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2a3312=null;_0x5b1741[_0x5575('0x25')]['on'](_0x5575('0x5a'),(_0x44ef6a,_0x1e5267)=>{const [_0x297387,_0x547bce]=_0x1e5267,_0x5ec7fe=_0x1e5267[_0x1e5267[_0x5575('0xb')]-0x1];_0x5ec7fe&&_0x5ec7fe[_0x5575('0x49')]||_0x32ce78[_0x5575('0x62')]||this[_0x5575('0x1f')][_0x5575('0x3d')][_0x5575('0x2a')](_0x5575('0x72'))[_0x5575('0x8e')]&&function(_0x4d92f0,_0x314267,_0x182dd0,_0x287c44,_0x400df4){if(_0x314267&&!_0x314267['is']('documentSelection'))return!0x1;const _0x17583f=_0x400df4['getTableIfOnlyTableInContent'](_0x4d92f0,_0x182dd0);if(!_0x17583f||!fe(_0x17583f,void 0x0,_0x287c44))return!0x1;const _0x2880fb=_0x287c44[_0x5575('0x3b')](_0x182dd0['document'][_0x5575('0x74')]);if(!_0x2880fb[_0x5575('0xb')])return!0x1;const _0x137b8e=_0x2880fb[0x0]['findAncestor'](_0x5575('0x1d')),_0x6894ee=_0x287c44[_0x5575('0x8f')](_0x2880fb),_0x42c60a=_0x287c44[_0x5575('0x23')](_0x2880fb),_0x136116={'startRow':_0x6894ee['first'],'endRow':_0x6894ee[_0x5575('0x4d')],'startColumn':_0x42c60a[_0x5575('0x52')],'endColumn':_0x42c60a[_0x5575('0x4d')]};return 0x1==_0x2880fb['length']&&(_0x136116[_0x5575('0x10')]+=_0x287c44[_0x5575('0x82')](_0x17583f)-0x1,_0x136116[_0x5575('0xa1')]+=_0x287c44['getColumns'](_0x17583f)-0x1),fe(_0x137b8e,_0x136116,_0x287c44);}(_0x297387,_0x547bce,_0x5b1741[_0x5575('0x25')],_0x31fdca,_0x4d7a51)&&(_0x44ef6a[_0x5575('0x70')](),_0x2a3312={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5b1741[_0x5575('0x25')][_0x5575('0x91')](()=>{_0x5b1741['model'][_0x5575('0x5a')](_0x1e5267[0x0],_0x1e5267[0x1],_0x1e5267[0x2],{'forceDefaultExecution':!0x0});const _0x548c07=_0x371642(),{rowInsertionRanges:_0x2c25ae,columnInsertionRanges:_0x3fbbf7,insertionRanges:_0x3e6ee5,deletionRanges:_0x5de073,cells:_0x455559}=_0x2a3312;_0x2c25ae[_0x5575('0xb')]&&_0x32ce78[_0x5575('0x86')](_0x2c25ae,_0x5575('0x51'),{'tablePasteChainId':_0x548c07}),_0x3fbbf7['length']&&_0x32ce78[_0x5575('0x86')](_0x3fbbf7,_0x5575('0x43'),{'tablePasteChainId':_0x548c07}),_0x3e6ee5[_0x5575('0xb')]&&_0x32ce78[_0x5575('0x86')](_0x3e6ee5,'tablePaste',{'tablePasteChainId':_0x548c07,'skipNestingCheck':!0x0}),_0x5de073['length']&&_0x32ce78[_0x5575('0x9b')](_0x5de073,_0x5575('0x5b'),{'tablePasteChainId':_0x548c07,'skipNestingCheck':!0x0});const _0xb84538=_0x32ce78[_0x5575('0x7c')](_0x455559[_0x5575('0x63')](({element:_0x266b75})=>_0x266b75),{'formatGroupId':_0x371642()},[],_0x5575('0x11'),{'tablePasteChainId':_0x548c07});if(_0xb84538){const _0x58a3b1=_0xb84538[_0x5575('0x41')](),_0x17abdd=[];for(const {element:_0x3f61b5,attributes:_0x30e27f}of _0x455559){if(!_0x30e27f)continue;const _0xb4238a=_0x5b1741['model']['createRangeOn'](_0x3f61b5),_0x349c5a=_0x58a3b1['find'](_0x3df3bd=>_0x3df3bd[_0x5575('0x3f')]()[_0x5575('0x6e')](_0xb4238a));_0x349c5a&&_0x17abdd[_0x5575('0x40')]([_0x349c5a[_0x5575('0x8')],_0x30e27f]);}_0x17abdd[_0x5575('0xb')]&&_0xb84538[_0x5575('0xf')]('markerAttributes',Object[_0x5575('0x24')](_0x17abdd));}_0x2a3312=null;}));},{'priority':_0x1c61d3[_0x5575('0x6f')]+0xa}),_0x5b1741[_0x5575('0x85')][_0x5575('0x2a')](_0x5575('0x90'))['on'](_0x5575('0xa0'),(_0x4900e4,_0xb00ec3)=>{const [_0x8b904,_0x561ebb,,_0x510539]=_0xb00ec3;if(!_0x2a3312)return;_0x4900e4[_0x5575('0x70')]();const _0x3c9712=_0x8b904['cell'],_0x3389ad=_0x561ebb,_0x5b937c=ce(_0x3c9712),_0x41f59f=ce(_0x3389ad);_0x4900e4[_0x5575('0x19')]=_0x3c9712;let _0xe5d3f2=null,_0x25a517=null;if(_0x41f59f||_0x5b937c){if(_0x5b937c&&!_0x41f59f){_0x510539[_0x5575('0x92')](_0x3c9712[_0x5575('0x60')](0x0));for(const _0x12b32b of Array[_0x5575('0x6a')](_0x3389ad['getChildren']()))_0x510539[_0x5575('0x87')](_0x12b32b,_0x3c9712,_0x5575('0x79'));const _0x4b1046=_0x2a3312['rowInsertionIndexes'][_0x5575('0x7b')](_0x8b904[_0x5575('0x75')]),_0x112b5a=_0x2a3312['columnInsertionIndexes'][_0x5575('0x7b')](_0x8b904['column']);_0x4b1046||_0x112b5a||(_0xe5d3f2=_0x510539[_0x5575('0x83')](_0x3c9712));}else _0x41f59f&&!_0x5b937c&&(_0x25a517=_0x510539[_0x5575('0x83')](_0x3c9712));}else{const _0x498ee3=_0x510539['createElement'](_0x5575('0x20')),_0x84e26c=_0x510539[_0x5575('0x31')](_0x5575('0x20'));_0x510539[_0x5575('0x76')](_0x510539[_0x5575('0x83')](_0x3c9712),_0x84e26c),_0x510539[_0x5575('0x87')](_0x498ee3,_0x3c9712,0x0);for(const _0x5cb5ed of Array[_0x5575('0x6a')](_0x3389ad[_0x5575('0x46')]()))_0x510539['insert'](_0x5cb5ed,_0x498ee3,'end');_0xe5d3f2=_0x510539[_0x5575('0x7d')](_0x498ee3),_0x25a517=_0x510539['createRangeOn'](_0x84e26c);}const _0x10ea10=Array['from'](_0x3389ad[_0x5575('0x94')]())['filter'](([_0x2695d9])=>le[_0x5575('0x7b')](_0x2695d9));_0x2a3312[_0x5575('0x89')][_0x5575('0x40')]({'element':_0x3c9712,'attributes':_0x10ea10[_0x5575('0xb')]?Object[_0x5575('0x24')](_0x10ea10):null}),_0xe5d3f2&&_0x2a3312['insertionRanges']['push'](_0xe5d3f2),_0x25a517&&_0x2a3312['deletionRanges'][_0x5575('0x40')](_0x25a517);},{'priority':_0x5575('0x6f')}),_0x31fdca['on'](_0x5575('0x2e'),(_0x444694,_0x55e724)=>{const [_0x2ee73b,_0x18376d={}]=_0x55e724;if(!_0x2a3312)return;const _0x520c8f=_0x18376d['at']||0x0,_0x36ddd2=_0x18376d[_0x5575('0x16')]||0x1;_0x2a3312[_0x5575('0x17')]=new Array(_0x36ddd2)[_0x5575('0xa2')](_0x520c8f)[_0x5575('0x63')]((_0x4ec659,_0x7893ac)=>_0x4ec659+_0x7893ac);for(const {cell:_0x57afd2}of _0x31fdca[_0x5575('0x35')](_0x2ee73b,{'startColumn':_0x520c8f,'endColumn':_0x520c8f+_0x36ddd2-0x1}))_0x2a3312['columnInsertionRanges'][_0x5575('0x40')](_0x5b1741['model'][_0x5575('0x7d')](_0x57afd2));},{'priority':_0x5575('0x2d')}),_0x31fdca['on'](_0x5575('0x54'),(_0x1825c0,_0x15d903)=>{const [_0x2effb2,_0x237b0d={}]=_0x15d903;if(!_0x2a3312)return;const _0xfa4b3c=_0x237b0d['at']||0x0,_0x74c664=_0x237b0d[_0x5575('0x6')]||0x1;_0x2a3312[_0x5575('0x7a')]=new Array(_0x74c664)[_0x5575('0xa2')](_0xfa4b3c)['map']((_0x448297,_0x2bd4f7)=>_0x448297+_0x2bd4f7);for(const {cell:_0x52c47b}of _0x31fdca['createTableWalker'](_0x2effb2,{'startRow':_0xfa4b3c,'endRow':_0xfa4b3c+_0x74c664-0x1}))_0x2a3312[_0x5575('0x67')]['push'](_0x5b1741['model'][_0x5575('0x7d')](_0x52c47b));},{'priority':_0x5575('0x2d')}),_0x32ce78[_0x5575('0x64')][_0x5575('0x18')](_0x256ea2=>{if(_0x256ea2['subType']&&_0x256ea2['subType'][_0x5575('0x80')]('tablePaste'))return _0x256ea2[_0x5575('0x3c')]?{}:{'type':_0x5575('0x48'),'content':_0x1dc82b(_0x5b1741[_0x5575('0x9f')],_0x5575('0x55'))};});const _0x210f2f=()=>{};for(const _0x4651c3 of[_0x5575('0x5b'),_0x5575('0x43'),_0x5575('0x51'),_0x5575('0x11')])_0x32ce78['_suggestionFactory'][_0x5575('0x45')](_0x5575('0x48'),_0x4651c3,_0x5575('0x1'),_0x210f2f),_0x32ce78['_suggestionFactory'][_0x5575('0x45')](_0x5575('0x66'),_0x4651c3,'join',_0x210f2f);_0x32ce78['_suggestionFactory'][_0x5575('0x45')](_0x5575('0x9e'),'tablePasteCell',_0x5575('0x9d'),_0x210f2f),_0x32ce78[_0x5575('0x50')][_0x5575('0x45')]('formatBlock',_0x5575('0x11'),_0x5575('0x4b'),(_0x56b2c1,_0xa5c555,_0x5ee901)=>{const _0x4f8efa=_0x56b2c1[_0x5575('0x63')](_0x39c24f=>_0x39c24f[_0x5575('0x57')]())[_0x5575('0x8a')](_0x2652a0=>_0x2652a0),_0x3203a2=new Map(_0x4f8efa['map'](_0x31d5b3=>[_0x31d5b3,null]));if(_0x2a3312)for(const {element:_0x2a45bc,attributes:_0x4ec587}of _0x2a3312[_0x5575('0x89')])_0x4ec587&&_0x3203a2['set'](_0x2a45bc,_0x4ec587);else{if(_0x5ee901&&_0x5ee901['markerAttributes'])for(const [_0x4f9376,_0x41aec8]of Object[_0x5575('0x5')](_0x5ee901[_0x5575('0x69')])){const _0xf02d35=_0x5b1741[_0x5575('0x25')][_0x5575('0x81')][_0x5575('0x2a')](_0x4f9376),_0x270e09=_0xf02d35?_0xf02d35[_0x5575('0x3f')]()[_0x5575('0x57')]():null;_0x270e09&&_0x3203a2[_0x5575('0x2b')](_0x270e09,_0x41aec8);}}_0x5b1741['model'][_0x5575('0x91')](_0x54695b=>{for(const [_0x3472d1,_0x2bd0f7]of _0x3203a2)_0x54695b['setAttributes']({...ae,..._0x2bd0f7},_0x3472d1);});});const _0x433c83=(_0x37c453,_0x3a44de)=>{_0x32ce78['_suggestionFactory'][_0x5575('0x45')](_0x37c453,_0x5575('0x5b'),_0x3a44de,(_0x4553ef,_0xeed8d,_0x511a2d)=>{_0x5b1741[_0x5575('0x25')][_0x5575('0x91')](_0x4f66c1=>{const _0x221385=[];for(const _0x23c251 of _0x4553ef){const _0x318689=_0x23c251[_0x5575('0x7')][_0x5575('0x9c')];_0x318689['is']('element',_0x5575('0x20'))&&_0x221385[_0x5575('0x40')](_0x318689);}_0x32ce78[_0x5575('0x50')][_0x5575('0x37')](_0x37c453,null,_0x3a44de)(_0x4553ef,_0xeed8d,_0x511a2d);for(const _0x3fe12f of _0x221385)_0x5575('0x47')!=_0x3fe12f[_0x5575('0x8d')][_0x5575('0x3')]&&_0x4f66c1[_0x5575('0x65')](_0x3fe12f);});});};_0x433c83('insertion',_0x5575('0x4b')),_0x433c83(_0x5575('0x48'),_0x5575('0x9d')),_0x433c83(_0x5575('0x66'),_0x5575('0x4b')),_0x433c83('deletion',_0x5575('0x9d')),_0x32ce78[_0x5575('0x50')][_0x5575('0x45')](_0x5575('0x48'),'tablePasteRow','discard',_0xf6580d=>{const _0x1607b5=_0xf6580d[_0x5575('0x63')](_0x58611c=>_0x58611c['getContainedElement']()),_0x29cabd=_0x1607b5[0x0][_0x5575('0x1b')]('table'),{minRow:_0x2b6b3f,maxRow:_0x5de618}=_0x1c8e81['_getCoordsForCells'](_0x1607b5);_0x31fdca[_0x5575('0x12')](_0x29cabd,{'at':_0x2b6b3f,'rows':_0x5de618-_0x2b6b3f+0x1});}),_0x32ce78['_suggestionFactory'][_0x5575('0x45')](_0x5575('0x48'),'tablePasteColumn',_0x5575('0x9d'),_0x1ba3cd=>{const _0x4da596=_0x1ba3cd['map'](_0x543bb5=>_0x543bb5[_0x5575('0x57')]()),_0x14247f=_0x4da596[0x0][_0x5575('0x1b')]('table'),{minColumn:_0x482a87,maxColumn:_0xc289ae}=_0x1c8e81[_0x5575('0x5d')](_0x4da596);_0x31fdca['removeColumns'](_0x14247f,{'at':_0x482a87,'columns':_0xc289ae-_0x482a87+0x1});});const _0x1cb7d5=(_0x131b79,_0x18993a)=>{if(!_0x18993a[_0x5575('0x9a')]||!_0x18993a[_0x5575('0x9a')][_0x5575('0x80')]('tablePaste'))return;const _0x447b7b=_0x18993a[_0x5575('0x77')][_0x5575('0x2f')],_0x23c0fa=_0x32ce78[_0x5575('0x33')]()[_0x5575('0x8a')](_0x157306=>_0x157306[_0x5575('0xd')]&&_0x157306[_0x5575('0x77')]&&_0x157306[_0x5575('0x77')][_0x5575('0x2f')]==_0x447b7b);_0x23c0fa[_0x5575('0xb')]&&_0x18993a[_0x5575('0x9')]()['length']!=_0x23c0fa[_0x5575('0xb')]&&_0x23c0fa[_0x5575('0x38')]((_0xc07be6,_0x28ce06)=>(_0xc07be6['next']=_0x28ce06,_0x28ce06[_0x5575('0x3c')]=_0xc07be6,_0x28ce06));};function _0x4d8374(_0x107a36,_0x3b6fad=!0x0){const {id:_0x26f2d5}=_0x32ce78[_0x5575('0x1c')](_0x107a36[_0x5575('0x4')]),_0x22771d=['ck-suggestion-marker',_0x5575('0x26')],_0xdaf394=_0x32ce78[_0x5575('0x36')][_0x5575('0x7b')](_0x107a36[_0x5575('0x4')]);return _0xdaf394&&_0x22771d[_0x5575('0x40')](_0x5575('0xa')),{'classes':_0x22771d,'attributes':{'data-suggestion':_0x26f2d5},'priority':_0xdaf394&&_0x3b6fad?0xbc2:0xbb8};}_0x32ce78['on'](_0x5575('0x15'),_0x1cb7d5,{'priority':'high'}),_0x32ce78['on']('suggestionUnloaded',_0x1cb7d5,{'priority':'high'}),_0x5b1741[_0x5575('0x25')][_0x5575('0x7e')]['registerPostFixer'](()=>{let _0x538f6b=!0x1;const _0x5a42b3=Array[_0x5575('0x6a')](_0x5b1741['model'][_0x5575('0x7e')][_0x5575('0x5f')]['getChangedMarkers']());for(const {name:_0x3b6ddb,data:_0x481443}of _0x5a42b3){const {group:_0x2d7349,type:_0x43715a,id:_0x49c288}=_0x32ce78[_0x5575('0x1c')](_0x3b6ddb);if(_0x5575('0x27')!=_0x2d7349||'deletion'!=_0x43715a||_0x481443[_0x5575('0x97')])continue;if(!_0x32ce78[_0x5575('0x68')](_0x49c288))continue;const _0x10c91d=_0x32ce78['getSuggestion'](_0x49c288)[_0x5575('0x95')](),_0x2b3e02=_0x5b1741['plugins'][_0x5575('0x2a')](_0x5575('0x30'))['me'];for(const _0x1b5d4f of _0x32ce78[_0x5575('0x33')]()){if(!_0x1b5d4f[_0x5575('0xd')]||_0x1b5d4f[_0x5575('0x44')]!=_0x2b3e02)continue;if(_0x5575('0x9e')!=_0x1b5d4f[_0x5575('0x13')]||_0x5575('0x11')!=_0x1b5d4f['subType'])continue;if(_0x1b5d4f[_0x5575('0x95')]()[_0x5575('0x6b')](_0x1ee12b=>_0x10c91d['some'](_0x3b6da7=>_0x3b6da7[_0x5575('0x8c')](_0x1ee12b,!0x0))))for(const _0xc50829 of _0x1b5d4f[_0x5575('0x9')]())_0xc50829[_0x5575('0xd')]&&(_0xc50829[_0x5575('0x9d')](),_0x538f6b=!0x0);}}return _0x538f6b;}),_0x5b1741[_0x5575('0x25')][_0x5575('0x7e')][_0x5575('0x61')](_0x530119=>{const _0x260bfc=_0x5b1741[_0x5575('0x3d')][_0x5575('0x2a')](_0x5575('0x32'));if(!_0x260bfc||!_0x260bfc[_0x5575('0x1e')][_0x5575('0x4f')](_0x530119[_0x5575('0x22')]))return!0x1;let _0x471a7b=!0x1;const _0x2a1bac=_0x5b1741['plugins'][_0x5575('0x2a')]('Users')['me'],_0x59bf43=_0x5b1741[_0x5575('0x25')][_0x5575('0x7e')][_0x5575('0x5f')][_0x5575('0x4a')](),_0x43f5fb=Array[_0x5575('0x6a')](_0x5b1741['model'][_0x5575('0x7e')][_0x5575('0x5f')]['getChangedMarkers']())[_0x5575('0x8a')](({name:_0x39e560,data:_0x3b7b18})=>{const {group:_0x15cd9f,subType:_0x33b040,authorId:_0x10433b}=_0x32ce78[_0x5575('0x1c')](_0x39e560);return _0x5575('0x27')==_0x15cd9f&&_0x5575('0x5b')==_0x33b040&&_0x10433b==_0x2a1bac['id']&&!_0x3b7b18[_0x5575('0x97')];});for(const _0xdd4302 of _0x59bf43){if('insert'!=_0xdd4302['type']||_0x5575('0x20')!=_0xdd4302['name']||0x1!=_0xdd4302[_0x5575('0xb')])continue;const _0x213ad8=_0x530119[_0x5575('0x0')](_0xdd4302[_0x5575('0x1a')],_0xdd4302[_0x5575('0x1a')][_0x5575('0x84')](0x1));if(!_0x43f5fb[_0x5575('0x3a')](({data:_0xddc42b})=>_0xddc42b[_0x5575('0x3e')][_0x5575('0x6e')](_0x213ad8)))for(const {name:_0x2ad6e5,data:_0x1b6b25}of _0x43f5fb)if(_0x213ad8[_0x5575('0x8c')](_0x1b6b25[_0x5575('0x3e')])){_0x530119['updateMarker'](_0x2ad6e5,{'range':_0x213ad8}),_0x471a7b=!0x0;break;}}return _0x471a7b;}),_0x5b1741[_0x5575('0x25')]['document'][_0x5575('0x61')](_0x5bfd56=>{let _0x561228=!0x1;const _0x4e8fc7=_0x5b1741[_0x5575('0x85')][_0x5575('0x2a')](_0x5575('0x30'))['me'],_0x156572=_0x32ce78[_0x5575('0x33')]()[_0x5575('0x8a')](_0x3c46ed=>_0x3c46ed[_0x5575('0xd')]&&_0x3c46ed[_0x5575('0x44')]==_0x4e8fc7),_0x73e6e3=new Set(),_0x47b24a=new Set();for(const _0xedc5dc of _0x156572)if(_0x5575('0x5b')==_0xedc5dc[_0x5575('0x9a')])for(const _0x29e3ff of _0xedc5dc[_0x5575('0x41')]()){const _0x121458=_0x29e3ff['getRange']()[_0x5575('0x57')]();if(_0x121458){if(_0x121458['is'](_0x5575('0x34'),'tableCellSuggestion')&&ce(_0x121458)){_0xedc5dc[_0x5575('0x14')](_0x29e3ff[_0x5575('0x8')]),_0x73e6e3[_0x5575('0x6c')](_0x121458),_0x561228=!0x0;const _0x1130d6=_0x121458[_0x5575('0x58')],_0x189278=_0x121458[_0x5575('0x56')],_0x44e7de=_0x1130d6&&_0x1130d6['is'](_0x5575('0x34'),'tableCellSuggestion'),_0x40343=_0x189278&&_0x189278['is'](_0x5575('0x34'),_0x5575('0x20'));_0x44e7de&&!_0x73e6e3[_0x5575('0x4f')](_0x1130d6)&&_0x47b24a[_0x5575('0x6c')](_0x1130d6),_0x40343&&!_0x73e6e3['has'](_0x189278)&&_0x47b24a[_0x5575('0x6c')](_0x189278);}else _0x121458['is'](_0x5575('0x34'),_0x5575('0x6d'))&&_0x121458[_0x5575('0x71')]&&(_0xedc5dc[_0x5575('0x14')](_0x29e3ff[_0x5575('0x8')]),_0x561228=!0x0);}}else{if('tablePasteCell'==_0xedc5dc[_0x5575('0x9a')]){if(!_0xedc5dc[_0x5575('0x77')]||!_0xedc5dc[_0x5575('0x77')][_0x5575('0x2f')])continue;const _0x50cc3a=_0xedc5dc[_0x5575('0x77')][_0x5575('0x69')];if(_0x50cc3a&&Object['keys'](_0x50cc3a)[_0x5575('0xb')])continue;const _0xf23ea5=_0xedc5dc[_0x5575('0x77')]['tablePasteChainId'];let _0x2ff497=!0x0,_0x3320bd=!0x0;for(const _0x3076c0 of _0x156572)if(_0x3076c0['subType']&&_0x3076c0['subType'][_0x5575('0x80')]('tablePaste')){if(!_0x3076c0[_0x5575('0x77')][_0x5575('0x2f')]){_0x3320bd=!0x1;break;}if(_0x3076c0['id']!=_0xedc5dc['id']&&_0x3076c0[_0x5575('0x77')][_0x5575('0x2f')]==_0xf23ea5){_0x2ff497=!0x1;break;}}_0x3320bd&&_0x2ff497&&(_0xedc5dc[_0x5575('0x98')](),_0x561228=!0x0);}}for(const _0x80924d of _0x73e6e3)_0x5bfd56[_0x5575('0x92')](_0x80924d);for(const _0x4190c2 of _0x47b24a)_0x5bfd56[_0x5575('0x65')](_0x4190c2);return _0x561228;}),_0x5b1741[_0x5575('0x2')]['for']('editingDowncast')['markerToHighlight']({'model':_0x5575('0x78'),'view':(_0x499110,_0x542a08)=>_0x4d8374(_0x499110),'converterPriority':_0x5575('0x6f')}),_0x5b1741['conversion'][_0x5575('0x21')](_0x5575('0x29'))['markerToHighlight']({'model':_0x5575('0x78'),'view':(_0x2c4635,_0x4c2d9f)=>_0x4c2d9f[_0x5575('0x4e')][_0x5575('0x39')]?_0x4d8374(_0x2c4635,!0x1):null,'converterPriority':'high'});const _0xf1e633=_0x5b1741['editing']['view'];this[_0x5575('0x59')](_0xf1e633['document'],_0x5575('0x28'),(_0x54a576,_0x496e41)=>{const _0x4cb8d6=[];for(const _0x95aa36 of _0xf1e633[_0x5575('0x83')](_0x496e41[_0x5575('0x73')])['getItems']())_0x95aa36['is'](_0x5575('0x34'),_0x5575('0x5e'))&&_0x4cb8d6[_0x5575('0x40')](_0x95aa36);_0xf1e633['change'](_0x4e1306=>{for(const _0x4eec18 of _0x4cb8d6)_0x4e1306['move'](_0x4e1306[_0x5575('0x83')](_0x4eec18),_0x4e1306['createPositionBefore'](_0x4eec18)),_0x4e1306[_0x5575('0x92')](_0x4eec18);});});}}function ce(_0x3ed1e4){if(_0x3ed1e4[_0x5575('0x71')])return!0x0;const _0x759bdf=_0x3ed1e4[_0x5575('0x60')](0x0);return _0x759bdf['is'](_0x5575('0x34'),_0x5575('0x6d'))&&_0x759bdf['isEmpty'];}function fe(_0x203298,_0x54756f={},_0x433bf9){for(const {isAnchor:_0x3b66d5,cellHeight:_0x29e4f5,cellWidth:_0x4b5606}of _0x433bf9['createTableWalker'](_0x203298,{'includeAllSlots':!0x0,..._0x54756f}))if(!_0x3b66d5||0x1!=_0x29e4f5||0x1!=_0x4b5606)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x281d=['data','getSuggestionCallback','editor','getSelectedElement','enableCommand','locale','registerDescriptionCallback','author','getAttribute','registerCustomCallback','handleSuggestionDescription','commandParams','resizeTable','handleResizeTableWidthCommand','resizeColumnWidths','bind','change','plugins','tableWidth','Users','format','resizeTableWidth','formatBlock','formatGroupId','subType','columnWidths','markBlockFormat','getTableColumnsWidths','has','get','getContainedElement','getSuggestions','_suggestionFactory','_descriptionFactory','model','TrackChangesEditing','accept','table','TableColumnResizeEditing','selection','discard'];(function(_0x9ebf32,_0x281d6a){const _0x66727c=function(_0x30e5c9){while(--_0x30e5c9){_0x9ebf32['push'](_0x9ebf32['shift']());}};_0x66727c(++_0x281d6a);}(_0x281d,0x8d));const _0x6672=function(_0x9ebf32,_0x281d6a){_0x9ebf32=_0x9ebf32-0x0;let _0x66727c=_0x281d[_0x9ebf32];return _0x66727c;};import{Plugin as _0x127f8f}from'ckeditor5/src/core';import{getTranslation as _0x5770ec}from'../utils/common-translations';export default class wt extends _0x127f8f{['afterInit'](){if(!this[_0x6672('0x19')][_0x6672('0x28')][_0x6672('0xa')](_0x6672('0x14')))return;const _0x2addf6=this[_0x6672('0x19')]['plugins'][_0x6672('0xb')](_0x6672('0x11'));_0x2addf6[_0x6672('0x1b')](_0x6672('0x3'),this['handleResizeTableWidthCommand']['bind'](this)),_0x2addf6['enableCommand'](_0x6672('0x25'),this[_0x6672('0x24')]['bind'](this)),_0x2addf6[_0x6672('0xe')][_0x6672('0x20')](_0x6672('0x4'),_0x6672('0x23'),_0x6672('0x12'),_0x2addf6['_suggestionFactory']['getSuggestionCallback'](_0x6672('0x4'),null,_0x6672('0x16'))),_0x2addf6[_0x6672('0xe')][_0x6672('0x20')](_0x6672('0x4'),_0x6672('0x23'),_0x6672('0x16'),_0x2addf6[_0x6672('0xe')][_0x6672('0x18')](_0x6672('0x4'),null,_0x6672('0x12'))),_0x2addf6[_0x6672('0xf')][_0x6672('0x1d')](this[_0x6672('0x21')][_0x6672('0x26')](this));}[_0x6672('0x24')](_0x127b47,_0x3dbec6){const _0x26c98c=this['editor']['plugins'][_0x6672('0xb')](_0x6672('0x11')),_0x25293c=this['editor'][_0x6672('0x28')][_0x6672('0xb')](_0x6672('0x14')),_0x5ae261=_0x3dbec6[_0x6672('0x13')]||this['editor'][_0x6672('0x10')]['document'][_0x6672('0x15')][_0x6672('0x1a')]();this[_0x6672('0x19')][_0x6672('0x10')][_0x6672('0x27')](()=>{const _0x3614df=_0x25293c['getColumnGroupElement'](_0x5ae261);let _0x12b678=_0x3614df?_0x25293c[_0x6672('0x9')](_0x3614df):null,_0x153587=_0x5ae261[_0x6672('0x1f')](_0x6672('0x0'))||null;const _0x2d7cd7=_0x3dbec6[_0x6672('0x0')]||_0x153587,_0x33f4f8=_0x3dbec6[_0x6672('0x7')]||_0x12b678,_0x54af97=this['editor'][_0x6672('0x28')][_0x6672('0xb')](_0x6672('0x1'))['me'];for(const _0x392f6f of _0x26c98c[_0x6672('0xd')]()){const _0x198e35=_0x392f6f[_0x6672('0xc')]();if('resizeTable'===_0x392f6f[_0x6672('0x6')]&&_0x198e35===_0x5ae261){_0x392f6f[_0x6672('0x1e')]!==_0x54af97&&_0x392f6f[_0x6672('0x16')]();const _0x4913ab=_0x392f6f[_0x6672('0x17')][_0x6672('0x22')];_0x153587=_0x4913ab[0x0][_0x6672('0x0')],_0x12b678=_0x4913ab[0x0][_0x6672('0x7')];break;}}_0x127b47({'table':_0x5ae261,'tableWidth':_0x2d7cd7,'columnWidths':_0x33f4f8}),_0x26c98c[_0x6672('0x8')](_0x5ae261,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x153587,'columnWidths':_0x12b678}],'formatGroupId':'resizeTable'},[],_0x6672('0x23'));});}[_0x6672('0x21')](_0x1fe265){const {data:_0x6017cb}=_0x1fe265;if(_0x6017cb&&_0x6672('0x23')===_0x6017cb[_0x6672('0x5')]){const _0x4af0c9='*Format:*\x20resize\x20table';return{'type':_0x6672('0x2'),'content':_0x5770ec(this[_0x6672('0x19')][_0x6672('0x1c')],_0x4af0c9)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53ed=['has','editing','markerRange','highest','downcastDispatcher','registerDescriptionCallback','commandParams','document','change','table','plugins','setTableColumnHeader','first','data','markBlockFormat','writer','mapper','cell','getRowIndexes','createTableWalker','getSuggestion','activeMarkers','getColumnIndexes','createPositionAfter','forceValue','consume','from','locale','registerCustomCallback','ck-suggestion-marker--active','ck-suggestion-marker-','markerNameToElements','*Format:*\x20%0','editor','addMarker:suggestion','end','last','options','addClass','get','commandName','start','createRange','includes','unbindElementFromMarkerName','formatBlock','FORMAT_REGULAR_COLUMN','stop','TableUtils','TableEditing','setTableRowHeader','headingColumns','item','getSelectionAffectedTableCells','accept','getAttribute','requires','removeClass','bindElementToMarker','format','value','findAncestor','removeMarker:suggestion','index','FORMAT_HEADER_COLUMN','nodeBefore','_suggestionFactory','getChild','FORMAT_HEADER_ROW','consumable','TrackChangesEditing','createPositionBefore','parent','markerName','getCellLocation','enableCommand','FORMAT_REGULAR_ROW','selection','model','commands'];(function(_0xba19db,_0x53edc1){const _0x1ab0b8=function(_0x2ec4e1){while(--_0x2ec4e1){_0xba19db['push'](_0xba19db['shift']());}};_0x1ab0b8(++_0x53edc1);}(_0x53ed,0x94));const _0x1ab0=function(_0xba19db,_0x53edc1){_0xba19db=_0xba19db-0x0;let _0x1ab0b8=_0x53ed[_0xba19db];return _0x1ab0b8;};import{Plugin as _0x262ddd}from'ckeditor5/src/core';import _0x1ea714 from'./table';import{getTranslation as _0x1b06f2}from'../utils/common-translations';export default class pt extends _0x262ddd{static get[_0x1ab0('0x44')](){return[_0x1ea714];}['afterInit'](){const _0x25a6d1=this[_0x1ab0('0x2d')];if(!_0x25a6d1[_0x1ab0('0x16')][_0x1ab0('0xc')](_0x1ab0('0x3d')))return;const _0x16616a=_0x25a6d1[_0x1ab0('0x27')],_0x3307d6=_0x25a6d1['plugins'][_0x1ab0('0x33')](_0x1ab0('0x2')),_0x26164e=_0x25a6d1[_0x1ab0('0x16')][_0x1ab0('0x33')]('TableUtils'),_0x167b4e=_0x25a6d1[_0x1ab0('0x16')]['get'](_0x1ea714);function _0x14a5ac({showActiveMarker:_0x167bd4=!0x0,setDataAttribute:_0x166147=!0x0}={}){return(_0x4c30f7,_0x53dfc3,_0x2849e9)=>{const {type:_0x477296,id:_0x54f038}=_0x3307d6['_splitMarkerName'](_0x53dfc3[_0x1ab0('0x5')]),_0xf90fe3=_0x3307d6['getSuggestion'](_0x54f038);if(!_0xf90fe3[_0x1ab0('0x19')]||_0x1ab0('0x17')!=_0xf90fe3[_0x1ab0('0x19')][_0x1ab0('0x34')])return;if(_0x53dfc3[_0x1ab0('0x40')])return void _0x4c30f7[_0x1ab0('0x3b')]();if(!_0x2849e9[_0x1ab0('0x1')][_0x1ab0('0x25')](_0x53dfc3[_0x1ab0('0xe')],_0x4c30f7['name']))return;const _0x52b3c3=_0x53dfc3['markerRange'][_0x1ab0('0x35')]['nodeAfter'],_0xf9d423=_0x53dfc3['markerRange'][_0x1ab0('0x2f')][_0x1ab0('0x4d')],_0x2de965=_0x52b3c3['parent'][_0x1ab0('0x4')],{column:_0x27f6c9}=_0x26164e['getCellLocation'](_0x52b3c3),{column:_0x2e14cb}=_0x26164e[_0x1ab0('0x6')](_0xf9d423);for(let _0x1d9c39=_0x27f6c9;_0x1d9c39<=_0x2e14cb;_0x1d9c39++){const _0x52ca8c=_0x26164e[_0x1ab0('0x1f')](_0x2de965,{'column':_0x1d9c39,'includeAllSlots':!0x1});for(const _0x5daa7a of _0x52ca8c){const _0xa88b29=_0x5daa7a['cell'],_0x4b6008=_0x2849e9['mapper']['toViewElement'](_0xa88b29);_0x2849e9[_0x1ab0('0x1b')][_0x1ab0('0x32')](_0x1ab0('0x2a')+_0x477296,_0x4b6008),_0x166147&&_0x2849e9['writer']['setAttribute']('data-suggestion',_0x54f038,_0x4b6008),_0x2849e9[_0x1ab0('0x1c')][_0x1ab0('0x46')](_0x4b6008,_0x53dfc3[_0x1ab0('0x5')]),_0x167bd4&&(_0x3307d6[_0x1ab0('0x21')][_0x1ab0('0x37')](_0x53dfc3[_0x1ab0('0x5')])?_0x2849e9[_0x1ab0('0x1b')][_0x1ab0('0x32')](_0x1ab0('0x29'),_0x4b6008):_0x2849e9['writer'][_0x1ab0('0x45')]('ck-suggestion-marker--active',_0x4b6008));}}};}_0x3307d6[_0x1ab0('0x7')](_0x1ab0('0x3e'),(_0xea599c,_0x86fb74)=>{const _0x5e61e5=_0x26164e[_0x1ab0('0x41')](_0x25a6d1['model'][_0x1ab0('0x13')][_0x1ab0('0x9')]),_0x198095=_0x26164e[_0x1ab0('0x1e')](_0x5e61e5),_0x52ded0=_0x5e61e5[0x0][_0x1ab0('0x49')](_0x1ab0('0x15')),_0x23653c=_0x52ded0['getAttribute']('headingRows')||0x0,_0x31e6bd=_0x86fb74&&null!==_0x86fb74[_0x1ab0('0x24')]?_0x86fb74[_0x1ab0('0x24')]:!_0x25a6d1[_0x1ab0('0xb')][_0x1ab0('0x33')]('setTableRowHeader')[_0x1ab0('0x48')],_0x213cf7=_0x31e6bd?_0x198095[_0x1ab0('0x30')]:_0x198095[_0x1ab0('0x18')],_0x5c01f5=_0x52ded0[_0x1ab0('0x4f')](_0x213cf7);let _0x5aea15;if(_0x31e6bd){const _0x225726=_0x52ded0[_0x1ab0('0x4f')](_0x23653c);if(_0x5c01f5[_0x1ab0('0x4b')]<_0x225726['index'])return;_0x5aea15=_0x25a6d1[_0x1ab0('0xa')][_0x1ab0('0x36')](_0x25a6d1['model'][_0x1ab0('0x3')](_0x225726[_0x1ab0('0x4f')](0x0)),_0x25a6d1['model'][_0x1ab0('0x23')](_0x5c01f5['getChild'](_0x5c01f5['childCount']-0x1)));}else{const _0x5a774f=_0x52ded0[_0x1ab0('0x4f')](_0x23653c-0x1);if(!_0x5a774f)return;_0x5aea15=_0x25a6d1['model']['createRange'](_0x25a6d1['model']['createPositionBefore'](_0x5c01f5[_0x1ab0('0x4f')](0x0)),_0x25a6d1[_0x1ab0('0xa')][_0x1ab0('0x23')](_0x5a774f[_0x1ab0('0x4f')](_0x5a774f['childCount']-0x1)));}_0x25a6d1[_0x1ab0('0xa')][_0x1ab0('0x14')](()=>{_0x3307d6[_0x1ab0('0x1a')](_0x5aea15,{'commandName':_0x1ab0('0x3e'),'commandParams':[{'forceValue':_0x31e6bd}]},[],_0x1ab0('0x3e'));});}),_0x3307d6[_0x1ab0('0x7')]('setTableColumnHeader',(_0x257811,_0xf63a2f)=>{const _0x522109=_0x25a6d1['plugins'][_0x1ab0('0x33')](_0x1ab0('0x3c')),_0x3f41c2=_0x522109[_0x1ab0('0x41')](_0x25a6d1['model']['document'][_0x1ab0('0x9')]),_0x39eb57=_0x522109[_0x1ab0('0x22')](_0x3f41c2),_0x4cd729=_0x3f41c2[0x0][_0x1ab0('0x49')]('table'),_0x27bd4e=_0x4cd729[_0x1ab0('0x43')](_0x1ab0('0x3f'))||0x0,_0x45e6d3=_0xf63a2f&&null!==_0xf63a2f[_0x1ab0('0x24')]?_0xf63a2f[_0x1ab0('0x24')]:!_0x25a6d1[_0x1ab0('0xb')][_0x1ab0('0x33')](_0x1ab0('0x17'))['value'];let _0x2c3fda;const _0x3e1a9e=_0x4cd729['getChild'](0x0),_0x55f8ce=_0x45e6d3?_0x39eb57['last']:_0x39eb57['first'],_0x484fc5=_0x522109[_0x1ab0('0x1f')](_0x4cd729,{'startRow':0x0,'column':_0x55f8ce,'includeAllSlots':!0x1}),_0x94f71b=Array[_0x1ab0('0x26')](_0x484fc5)[0x0][_0x1ab0('0x1d')];if(_0x45e6d3){const _0x4ea68d=_0x3e1a9e['getChild'](_0x27bd4e);if(_0x94f71b['isBefore'](_0x4ea68d))return;_0x2c3fda=_0x25a6d1['model'][_0x1ab0('0x36')](_0x25a6d1['model'][_0x1ab0('0x3')](_0x4ea68d),_0x25a6d1[_0x1ab0('0xa')]['createPositionAfter'](_0x94f71b));}else{const _0xc273b1=_0x3e1a9e['getChild'](_0x27bd4e-0x1);if(!_0xc273b1)return;_0x2c3fda=_0x25a6d1[_0x1ab0('0xa')][_0x1ab0('0x36')](_0x25a6d1[_0x1ab0('0xa')][_0x1ab0('0x3')](_0x94f71b),_0x25a6d1[_0x1ab0('0xa')][_0x1ab0('0x23')](_0xc273b1));}_0x25a6d1['model'][_0x1ab0('0x14')](()=>{_0x3307d6[_0x1ab0('0x1a')](_0x2c3fda,{'commandName':_0x1ab0('0x17'),'commandParams':[{'forceValue':_0x45e6d3}]},[],_0x1ab0('0x17'));});}),_0x25a6d1['editing'][_0x1ab0('0x10')]['on'](_0x1ab0('0x2e'),_0x14a5ac(),{'priority':_0x1ab0('0xf')}),_0x25a6d1['data'][_0x1ab0('0x10')]['on'](_0x1ab0('0x2e'),(_0x5e5463,_0x86f53f,_0x50f78b)=>{_0x50f78b[_0x1ab0('0x31')]['showSuggestionHighlights']&&_0x14a5ac({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5e5463,_0x86f53f,_0x50f78b);},{'priority':_0x1ab0('0xf')}),_0x25a6d1[_0x1ab0('0xd')]['downcastDispatcher']['on'](_0x1ab0('0x4a'),(_0x54324d,_0x3996fa,_0x58c8b8)=>{const {type:_0x141eed,id:_0x4963e0}=_0x3307d6['_splitMarkerName'](_0x3996fa['markerName']),_0x375726=_0x3307d6[_0x1ab0('0x20')](_0x4963e0);if(!_0x375726[_0x1ab0('0x19')]||_0x1ab0('0x17')!=_0x375726[_0x1ab0('0x19')]['commandName'])return;const _0x1838da=_0x58c8b8[_0x1ab0('0x1c')][_0x1ab0('0x2b')](_0x3996fa[_0x1ab0('0x5')]);if(_0x1838da)for(const _0x39a728 of _0x1838da)_0x58c8b8['writer']['removeClass'](_0x1ab0('0x2a')+_0x141eed,_0x39a728),_0x58c8b8[_0x1ab0('0x1b')][_0x1ab0('0x45')](_0x1ab0('0x29'),_0x39a728),_0x58c8b8[_0x1ab0('0x1b')]['removeAttribute']('data-suggestion',_0x39a728),_0x58c8b8[_0x1ab0('0x1c')][_0x1ab0('0x38')](_0x39a728,_0x3996fa[_0x1ab0('0x5')]);},{'priority':_0x1ab0('0xf')}),_0x3307d6['_descriptionFactory'][_0x1ab0('0x11')](_0xd17139=>{const {data:_0x556b90}=_0xd17139;if(_0x556b90){if('setTableRowHeader'==_0x556b90[_0x1ab0('0x34')]){const _0x11d0e5=_0x556b90[_0x1ab0('0x12')][0x0][_0x1ab0('0x24')];return _0x4681a9(_0x1b06f2(_0x16616a,_0x11d0e5?_0x1ab0('0x0'):_0x1ab0('0x8')));}if(_0x1ab0('0x17')==_0x556b90['commandName']){const _0x19511d=_0x556b90[_0x1ab0('0x12')][0x0][_0x1ab0('0x24')];return _0x4681a9(_0x1b06f2(_0x16616a,_0x19511d?_0x1ab0('0x4c'):_0x1ab0('0x3a')));}}function _0x4681a9(_0xc94989){return{'type':_0x1ab0('0x47'),'content':_0x1b06f2(_0x16616a,_0x1ab0('0x2c'),_0xc94989)};}});const _0xe87528=_0x167b4e['_acceptFormatSuggestionCallbackFactory']();_0x3307d6[_0x1ab0('0x4e')]['registerCustomCallback'](_0x1ab0('0x39'),'setTableRowHeader',_0x1ab0('0x42'),_0xe87528),_0x3307d6['_suggestionFactory'][_0x1ab0('0x28')](_0x1ab0('0x39'),_0x1ab0('0x17'),_0x1ab0('0x42'),_0xe87528);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x333d=['commands','subType','cell','fromRange','change','type','table','_tablePostFixingSubtypes','root','get','findAncestor','has','execute','markMultiRangeBlockFormat','model','editor','stop','mergeTableCells','isEnabled','TableUtils','splitTableCellHorizontally','_acceptFormatSuggestionCallbackFactory','rootName','map','markBlockFormat','deletion','value','trackChanges','*Split\x20cell:*\x20vertically','detach','horizontally','document','$graveyard','getFirstPosition','createTableWalker','_areMergableCells','requires','size','refresh','_isForcedDefaultExecutionBlock','mergeTableCellDown','enableCommand','length','*Merge\x20cells*','_suggestionFactory','format','_areSelectedCellsMergable','from','isInContent','*Split\x20cell:*\x20horizontally','splitTableCellVertically','highest','mergeTableCellUp','accept','getSelectionAffectedTableCells','registerCustomCallback','containsRange','getAncestors','element','set:isEnabled','selection','setSelection','commandName','TrackChangesEditing','createRangeOn','formatBlock','mergeTableCellRight','mergeTableCellLeft','find','plugins','author','registerDescriptionCallback','getSuggestions','add','_descriptionFactory','direction','tableCell','insertion','locale'];(function(_0x25500d,_0x333d6e){const _0x274b77=function(_0x5d6443){while(--_0x5d6443){_0x25500d['push'](_0x25500d['shift']());}};_0x274b77(++_0x333d6e);}(_0x333d,0x100));const _0x274b=function(_0x25500d,_0x333d6e){_0x25500d=_0x25500d-0x0;let _0x274b77=_0x333d[_0x25500d];return _0x274b77;};import{Plugin as _0x3bd3ae}from'ckeditor5/src/core';import _0xdc010e from'./table';import{LiveRange as _0x700aaf}from'ckeditor5/src/engine';import{getTranslation as _0x5424c0}from'../utils/common-translations';export default class dt extends _0x3bd3ae{static get[_0x274b('0x11')](){return[_0xdc010e];}['afterInit'](){const _0x567f16=this['editor'],_0x10ce03=_0x567f16[_0x274b('0x4a')]['document'][_0x274b('0x29')],_0x58e298=_0x567f16[_0x274b('0x3b')];if(!_0x567f16[_0x274b('0x32')]['has']('TableEditing'))return;const _0x3af791=_0x567f16['plugins']['get']('TrackChangesEditing'),_0x37a746=_0x567f16[_0x274b('0x32')]['get'](_0x274b('0x0')),_0x240a9d=_0x567f16[_0x274b('0x32')][_0x274b('0x45')](_0xdc010e);_0x240a9d[_0x274b('0x43')]['push'](_0x274b('0x4d')),_0x3af791[_0x274b('0x16')](_0x274b('0x4d'),()=>{const _0x2e9630=_0x37a746[_0x274b('0x23')](_0x567f16[_0x274b('0x4a')][_0x274b('0xc')][_0x274b('0x29')]);_0x567f16[_0x274b('0x4a')]['change'](()=>{_0x3af791[_0x274b('0x49')](_0x2e9630,{'commandName':_0x274b('0x4d'),'commandParams':[]},[],_0x274b('0x4d'));});}),_0x567f16[_0x274b('0x3c')][_0x274b('0x45')](_0x274b('0x4d'))['on'](_0x274b('0x48'),(_0x35eeb9,_0x422fe6)=>{_0x567f16[_0x274b('0x3c')][_0x274b('0x45')](_0x274b('0x8'))[_0x274b('0x7')]&&(_0x422fe6['length']>0x0&&_0x422fe6[_0x422fe6['length']-0x1]&&_0x422fe6[_0x422fe6[_0x274b('0x17')]-0x1]['forceDefaultExecution']||_0x3af791[_0x274b('0x14')]||this[_0x274b('0x1b')]()||_0x35eeb9['stop']());},{'priority':_0x274b('0x20')});for(const _0x188b55 of[_0x274b('0x21'),_0x274b('0x2f'),_0x274b('0x15'),_0x274b('0x30')]){const _0x211700=_0x567f16[_0x274b('0x3c')][_0x274b('0x45')](_0x188b55);_0x3af791[_0x274b('0x16')](_0x188b55,()=>{const _0x36e239=_0x567f16[_0x274b('0x4a')]['document'][_0x274b('0x29')][_0x274b('0xe')]()[_0x274b('0x26')]()[_0x274b('0x31')](_0x79db09=>_0x79db09['is'](_0x274b('0x27'),'tableCell')),_0x1ee9a2=_0x211700[_0x274b('0x7')];_0x567f16[_0x274b('0x4a')][_0x274b('0x40')](()=>{_0x3af791[_0x274b('0x49')]([_0x36e239,_0x1ee9a2],{'commandName':_0x274b('0x4d'),'commandParams':[]},[],_0x274b('0x4d'));});});}for(const _0x588aed of[_0x274b('0x1f'),_0x274b('0x1')]){const _0x13ace3=_0x567f16[_0x274b('0x3c')]['get'](_0x588aed);_0x3af791[_0x274b('0x16')](_0x588aed,()=>{const _0x3576a1=_0x37a746[_0x274b('0x23')](_0x567f16['model']['document'][_0x274b('0x29')])[0x0],_0x4c6e7f=_0x3576a1[_0x274b('0x46')](_0x274b('0x42')),{column:_0x32328f,row:_0x32d1d2}=_0x37a746['getCellLocation'](_0x3576a1);let _0x30edb5=[];if(_0x274b('0xb')==_0x13ace3[_0x274b('0x38')]){const _0x1576f8=_0x37a746[_0x274b('0xf')](_0x4c6e7f,{'startRow':_0x32d1d2,'endRow':_0x32d1d2,'includeAllSlots':!0x0});_0x30edb5=Array[_0x274b('0x1c')](_0x1576f8)[_0x274b('0x4')](_0x4c28f2=>_0x4c28f2[_0x274b('0x3e')]);}else{const _0x42f853=_0x37a746[_0x274b('0xf')](_0x4c6e7f,{'column':_0x32328f,'includeAllSlots':!0x0});_0x30edb5=Array[_0x274b('0x1c')](_0x42f853)[_0x274b('0x4')](_0x263841=>_0x263841[_0x274b('0x3e')]);}_0x567f16[_0x274b('0x4a')][_0x274b('0x40')](_0x17a610=>{_0x3af791[_0x274b('0x5')](_0x17a610[_0x274b('0x2d')](_0x3576a1),{'commandName':_0x588aed,'commandParams':[]},_0x30edb5,_0x588aed);});});}_0x3af791[_0x274b('0x37')][_0x274b('0x34')](_0x34eef7=>{const {data:_0xf59432}=_0x34eef7;if(_0xf59432)return _0x274b('0x4d')==_0xf59432[_0x274b('0x2b')]?{'type':_0x274b('0x1a'),'content':_0x5424c0(_0x58e298,_0x274b('0x18'))}:void 0x0;}),_0x3af791[_0x274b('0x37')]['registerDescriptionCallback'](_0x217e30=>{const {data:_0xfd3cd5}=_0x217e30;if(_0xfd3cd5)return'splitTableCellVertically'==_0xfd3cd5[_0x274b('0x2b')]?{'type':_0x274b('0x1a'),'content':_0x5424c0(_0x58e298,_0x274b('0x9'))}:_0x274b('0x1')==_0xfd3cd5[_0x274b('0x2b')]?{'type':_0x274b('0x1a'),'content':_0x5424c0(_0x58e298,_0x274b('0x1e'))}:void 0x0;});const _0x17cdfb=_0x240a9d[_0x274b('0x2')]();for(const _0x3fa830 of['mergeTableCellUp','mergeTableCellRight',_0x274b('0x15'),_0x274b('0x30')])_0x3af791['_suggestionFactory'][_0x274b('0x24')](_0x274b('0x2e'),_0x3fa830,_0x274b('0x22'),_0x17cdfb);for(const _0x5a10de of[_0x274b('0x1f'),_0x274b('0x1')])_0x3af791['_suggestionFactory'][_0x274b('0x24')](_0x274b('0x2e'),_0x5a10de,_0x274b('0x22'),_0x17cdfb);_0x3af791[_0x274b('0x19')]['registerCustomCallback'](_0x274b('0x2e'),_0x274b('0x4d'),_0x274b('0x22'),_0x4f158d=>{_0x567f16['model']['change'](_0x77558e=>{const _0x4f96ff=Array['from'](_0x10ce03['getRanges']())[_0x274b('0x4')](_0x2902ff=>_0x700aaf[_0x274b('0x3f')](_0x2902ff));_0x77558e['setSelection'](_0x4f158d),_0x567f16['commands'][_0x274b('0x45')]('mergeTableCells')[_0x274b('0x13')](),_0x567f16[_0x274b('0x48')](_0x274b('0x4d'),{'forceDefaultExecution':!0x0});const _0x56ab14=_0x4f96ff['filter'](_0x14c093=>_0x274b('0xd')!=_0x14c093[_0x274b('0x44')][_0x274b('0x3')]);_0x56ab14['length']>0x0&&_0x77558e[_0x274b('0x2a')](_0x56ab14);for(const _0x18682b of _0x4f96ff)_0x18682b[_0x274b('0xa')]();});});for(const _0x4c84eb of['mergeTableCellUp',_0x274b('0x15'),'mergeTableCellLeft',_0x274b('0x2f')]){const _0x10816b=_0x567f16[_0x274b('0x3c')][_0x274b('0x45')](_0x4c84eb);_0x10816b['on'](_0x274b('0x28'),(_0x5b7f3e,_0x286fb5,_0x213d5c)=>{if(_0x213d5c){const _0x159fff=_0x567f16['model'][_0x274b('0xc')]['selection']['getFirstPosition']()[_0x274b('0x26')]()[_0x274b('0x31')](_0x391306=>_0x391306['is']('element',_0x274b('0x39')));this[_0x274b('0x10')](_0x10816b[_0x274b('0x7')],_0x159fff)||(_0x5b7f3e['return']=!0x1,_0x5b7f3e[_0x274b('0x4c')]());}},{'priority':'low'});}}[_0x274b('0x1b')](){const _0x3031bb=this[_0x274b('0x4b')][_0x274b('0x3c')][_0x274b('0x45')]('mergeTableCells'),_0x3bc7d4=this[_0x274b('0x4b')][_0x274b('0x32')][_0x274b('0x45')]('TableUtils');if(!_0x3031bb[_0x274b('0x4e')])return!0x1;const _0x2e634d=_0x3bc7d4[_0x274b('0x23')](this['editor'][_0x274b('0x4a')]['document']['selection']);for(const _0x2790f6 of _0x2e634d)for(const _0x37c3e2 of _0x2e634d)if(_0x2790f6!=_0x37c3e2&&!this[_0x274b('0x10')](_0x2790f6,_0x37c3e2))return!0x1;return!0x0;}[_0x274b('0x10')](_0x36e6fa,_0x38cc9e){const _0x462dac=this[_0x274b('0x4b')][_0x274b('0x32')][_0x274b('0x45')](_0x274b('0x2c')),_0x1ccf22=this[_0x274b('0x4b')][_0x274b('0x4a')][_0x274b('0x2d')](_0x36e6fa),_0x152e85=this[_0x274b('0x4b')][_0x274b('0x4a')][_0x274b('0x2d')](_0x38cc9e),_0x2196f4=new Set(),_0x41aa0e=new Set();for(const _0x1bbb14 of _0x462dac[_0x274b('0x35')]())if((_0x274b('0x3a')==_0x1bbb14[_0x274b('0x41')]||_0x274b('0x6')==_0x1bbb14['type']||_0x274b('0x4d')==_0x1bbb14[_0x274b('0x3d')])&&_0x1bbb14[_0x274b('0x1d')])for(const _0x142ee7 of _0x1bbb14['getRanges']())_0x142ee7[_0x274b('0x25')](_0x1ccf22,!0x0)&&_0x2196f4[_0x274b('0x36')](_0x1bbb14[_0x274b('0x41')]+':'+_0x1bbb14['author']['id']),_0x142ee7[_0x274b('0x25')](_0x152e85,!0x0)&&_0x41aa0e[_0x274b('0x36')](_0x1bbb14[_0x274b('0x41')]+':'+_0x1bbb14[_0x274b('0x33')]['id']);if(_0x2196f4[_0x274b('0x12')]!=_0x41aa0e[_0x274b('0x12')])return!0x1;for(const _0x3f20fd of _0x2196f4)if(!_0x41aa0e[_0x274b('0x47')](_0x3f20fd))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2822=['locale','_descriptionFactory','editor','commands','plugins','get','ELEMENT_TABLE_OF_CONTENTS','insertTableOfContents','afterInit','TrackChangesEditing','registerElementLabel','enableCommand'];(function(_0x3c401c,_0x282289){const _0x1ac166=function(_0x346148){while(--_0x346148){_0x3c401c['push'](_0x3c401c['shift']());}};_0x1ac166(++_0x282289);}(_0x2822,0x161));const _0x1ac1=function(_0x3c401c,_0x282289){_0x3c401c=_0x3c401c-0x0;let _0x1ac166=_0x2822[_0x3c401c];return _0x1ac166;};import{Plugin as _0x596c52}from'ckeditor5/src/core';import{getTranslation as _0x5bda03}from'../utils/common-translations';export default class bt extends _0x596c52{[_0x1ac1('0x3')](){const _0x4db9d6=this[_0x1ac1('0x9')];if(!_0x4db9d6[_0x1ac1('0xa')][_0x1ac1('0x0')](_0x1ac1('0x2')))return;_0x4db9d6[_0x1ac1('0xb')][_0x1ac1('0x0')](_0x1ac1('0x4'))[_0x1ac1('0x6')](_0x1ac1('0x2'));const _0x4167fd=_0x4db9d6[_0x1ac1('0xb')][_0x1ac1('0x0')](_0x1ac1('0x4')),_0x1442b5=_0x4db9d6[_0x1ac1('0x7')];_0x4167fd[_0x1ac1('0x8')][_0x1ac1('0x5')]('tableOfContents',_0x327be2=>_0x5bda03(_0x1442b5,_0x1ac1('0x1'),_0x327be2));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1963=['tableHeight','enqueueChange','locale','has','change','TableCellPropertiesEditing','data','registerCustomCallback','tableCellProperties','_handlePropertyChange','TablePropertiesEditing','batch','tableBorderStyle','get','model','format','document','plugins','getAttribute','tableWidth','commandParams','tableBackgroundColor','enableCommand','markBlockFormat','accept','selection','subType','tableBorderWidth','*Format:*\x20change\x20table\x20cell\x20properties','table','tableCellBackgroundColor','tableProperties','findAncestor','TrackChangesEditing','handleDiscardAction','tableCellVerticalAlignment','tableBorderColor','editor','afterInit','discard','_getSuggestion','tableAlignment','tableCellHeight','join','tableCellBorderStyle','tableCellBorderWidth','getSuggestionCallback','removeAttribute','getContainedElement','tableCellBorderColor','handleSuggestionDescription','start','_descriptionFactory','_suggestionFactory','formatBlock'];(function(_0x3d45a9,_0x1963d2){const _0x10ed6a=function(_0x143e31){while(--_0x143e31){_0x3d45a9['push'](_0x3d45a9['shift']());}};_0x10ed6a(++_0x1963d2);}(_0x1963,0x165));const _0x10ed=function(_0x3d45a9,_0x1963d2){_0x3d45a9=_0x3d45a9-0x0;let _0x10ed6a=_0x1963[_0x3d45a9];return _0x10ed6a;};import{Plugin as _0xbd0280}from'ckeditor5/src/core';import{getTranslation as _0x222040}from'../utils/common-translations';export default class Ct extends _0xbd0280{constructor(_0x2e014a){super(_0x2e014a),this[_0x10ed('0x4')]=[_0x10ed('0x9'),_0x10ed('0x28'),_0x10ed('0x0'),_0x10ed('0xe'),_0x10ed('0x2f'),_0x10ed('0x1c'),_0x10ed('0x31')],this[_0x10ed('0x24')]=[_0x10ed('0x16'),_0x10ed('0x11'),_0x10ed('0x12'),'tableCellPadding','tableCellWidth',_0x10ed('0xf'),_0x10ed('0x3'),'tableCellHorizontalAlignment',_0x10ed('0x8')];}static get['pluginName'](){return'TrackChangesTableProperties';}[_0x10ed('0xb')](){const _0x4415d5=this[_0x10ed('0xa')]['plugins'][_0x10ed('0x29')](_0x10ed('0x6'));if(this[_0x10ed('0xa')][_0x10ed('0x2d')][_0x10ed('0x1f')](_0x10ed('0x26'))){for(const _0x17a95c of this[_0x10ed('0x4')])_0x4415d5[_0x10ed('0x32')](_0x17a95c,(_0x1ecef2,_0xf6f8d0)=>{const _0x122bce=this['editor'][_0x10ed('0x2a')][_0x10ed('0x2c')][_0x10ed('0x35')]['getFirstPosition']()[_0x10ed('0x5')](_0x10ed('0x2'));this[_0x10ed('0x25')](_0x17a95c,[_0x122bce],this[_0x10ed('0x4')],_0x10ed('0x4'),_0x1ecef2,_0xf6f8d0);});_0x4415d5[_0x10ed('0x1a')][_0x10ed('0x23')](_0x10ed('0x1b'),'tableProperties',_0x10ed('0x34'),_0x4415d5[_0x10ed('0x1a')]['getSuggestionCallback'](_0x10ed('0x1b'),null,_0x10ed('0xc'))),_0x4415d5[_0x10ed('0x1a')][_0x10ed('0x23')](_0x10ed('0x1b'),_0x10ed('0x4'),'discard',(_0x459479,_0x1310fa)=>this[_0x10ed('0x7')](this['tableProperties'],_0x459479,_0x1310fa)),_0x4415d5[_0x10ed('0x1a')]['registerCustomCallback'](_0x10ed('0x1b'),'tableProperties',_0x10ed('0x10'),()=>!0x1);}if(this[_0x10ed('0xa')]['plugins']['has'](_0x10ed('0x21'))){for(const _0x1153ba of this[_0x10ed('0x24')])_0x4415d5[_0x10ed('0x32')](_0x1153ba,(_0xfd5b62,_0x3c9f72)=>{const _0x47a1fe=this[_0x10ed('0xa')]['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this[_0x10ed('0xa')][_0x10ed('0x2a')][_0x10ed('0x2c')][_0x10ed('0x35')]);this[_0x10ed('0x25')](_0x1153ba,_0x47a1fe,this[_0x10ed('0x24')],_0x10ed('0x24'),_0xfd5b62,_0x3c9f72);});_0x4415d5['_suggestionFactory'][_0x10ed('0x23')](_0x10ed('0x1b'),_0x10ed('0x24'),'accept',_0x4415d5[_0x10ed('0x1a')][_0x10ed('0x13')](_0x10ed('0x1b'),null,_0x10ed('0xc'))),_0x4415d5[_0x10ed('0x1a')][_0x10ed('0x23')]('formatBlock',_0x10ed('0x24'),_0x10ed('0xc'),(_0x172c56,_0x47d2d6)=>this[_0x10ed('0x7')](this[_0x10ed('0x24')],_0x172c56,_0x47d2d6)),_0x4415d5[_0x10ed('0x1a')][_0x10ed('0x23')](_0x10ed('0x1b'),_0x10ed('0x24'),'join',()=>!0x1);}_0x4415d5[_0x10ed('0x19')]['registerDescriptionCallback'](_0x106688=>this[_0x10ed('0x17')](_0x106688));}[_0x10ed('0x25')](_0x45ce5d,_0x309569,_0x1a9dc8,_0x28afd8,_0x2f0d98,_0x2127f4){const _0xce5053=this[_0x10ed('0xa')][_0x10ed('0x2d')]['get'](_0x10ed('0x6'));this[_0x10ed('0xa')][_0x10ed('0x2a')][_0x10ed('0x1d')](_0x2127f4[_0x10ed('0x27')],()=>{for(const _0x15250a of _0x309569){if(this[_0x10ed('0xd')](_0x15250a,_0x28afd8))_0x2f0d98(_0x2127f4);else{const _0xb9897={};for(const _0x20b103 of _0x1a9dc8){const _0x1bd460=_0x15250a[_0x10ed('0x2e')](_0x20b103);void 0x0!==_0x1bd460&&(_0xb9897[_0x20b103]=_0x1bd460);}_0x2f0d98(_0x2127f4),_0xce5053[_0x10ed('0x33')](_0x15250a,{'commandParams':[_0xb9897]},[],_0x28afd8);}}});}[_0x10ed('0x7')](_0x3f5870,_0x5ef26e,_0x50b28b){const _0x12ecc4=_0x5ef26e[0x0][_0x10ed('0x18')]['nodeAfter'],_0x22f18e=_0x50b28b[_0x10ed('0x30')][0x0];this['editor'][_0x10ed('0x2a')][_0x10ed('0x20')](_0x34f11b=>{for(const _0x5a1335 of _0x3f5870)void 0x0!==_0x22f18e[_0x5a1335]?_0x34f11b['setAttribute'](_0x5a1335,_0x22f18e[_0x5a1335],_0x12ecc4):_0x34f11b[_0x10ed('0x14')](_0x5a1335,_0x12ecc4);});}['handleSuggestionDescription'](_0x1db173){if(_0x1db173[_0x10ed('0x22')])switch(_0x1db173[_0x10ed('0x36')]){case _0x10ed('0x4'):return{'type':_0x10ed('0x2b'),'content':_0x222040(this[_0x10ed('0xa')]['locale'],'*Format:*\x20change\x20table\x20properties')};case _0x10ed('0x24'):return{'type':'format','content':_0x222040(this['editor'][_0x10ed('0x1e')],_0x10ed('0x1'))};}}[_0x10ed('0xd')](_0x44cde1,_0x4dd8bd){const _0x257944=this[_0x10ed('0xa')]['plugins'][_0x10ed('0x29')](_0x10ed('0x6'));for(const _0x2f4a5e of _0x257944['getSuggestions']({'skipNotAttached':!0x0})){const _0xc13066=_0x2f4a5e[_0x10ed('0x15')]();if(_0x2f4a5e[_0x10ed('0x36')]===_0x4dd8bd&&_0xc13066===_0x44cde1)return _0x2f4a5e;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34c3=['insertTemplate','plugins','get','enableCommand','editor','TrackChangesEditing','has'];(function(_0x3a25c4,_0x34c3ce){const _0x4d68e0=function(_0x1ee729){while(--_0x1ee729){_0x3a25c4['push'](_0x3a25c4['shift']());}};_0x4d68e0(++_0x34c3ce);}(_0x34c3,0x158));const _0x4d68=function(_0x3a25c4,_0x34c3ce){_0x3a25c4=_0x3a25c4-0x0;let _0x4d68e0=_0x34c3[_0x3a25c4];return _0x4d68e0;};import{Plugin as _0xf84814}from'ckeditor5/src/core';export default class yt extends _0xf84814{['afterInit'](){const _0x29621e=this[_0x4d68('0x3')];_0x29621e[_0x4d68('0x0')][_0x4d68('0x5')]('Template')&&_0x29621e[_0x4d68('0x0')][_0x4d68('0x1')](_0x4d68('0x4'))[_0x4d68('0x2')](_0x4d68('0x6'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7d7e=['createRange','isTouching','isCollapsed','ELEMENT_TITLE','schema','updateMarker','document','getChangedMarkers','title-content','suggestion','isEqual','TrackChangesEditing','afterInit','Title','locale','removeMarker','registerElementLabel','nodeBefore','plugins','has','get','newRange','from','start','end','editor','differ','model'];(function(_0x16e547,_0x7d7e45){const _0x2fb5f8=function(_0x136c04){while(--_0x136c04){_0x16e547['push'](_0x16e547['shift']());}};_0x2fb5f8(++_0x7d7e45);}(_0x7d7e,0xc4));const _0x2fb5=function(_0x16e547,_0x7d7e45){_0x16e547=_0x16e547-0x0;let _0x2fb5f8=_0x7d7e[_0x16e547];return _0x2fb5f8;};import{Plugin as _0x24a542}from'ckeditor5/src/core';import{getTranslation as _0x25b57c}from'../utils/common-translations';export default class St extends _0x24a542{[_0x2fb5('0xc')](){const _0x248687=this[_0x2fb5('0x19')];if(!_0x248687[_0x2fb5('0x12')][_0x2fb5('0x13')](_0x2fb5('0xd')))return;const _0x54f313=_0x248687[_0x2fb5('0x12')][_0x2fb5('0x14')](_0x2fb5('0xb'));_0x54f313['_descriptionFactory'][_0x2fb5('0x10')]('title-content',()=>_0x25b57c(_0x248687[_0x2fb5('0xe')],_0x2fb5('0x3'))),_0x248687[_0x2fb5('0x1b')][_0x2fb5('0x6')]['registerPostFixer'](_0x4bfd0a=>{let _0x5eb611=!0x1;const _0x42b16a=Array[_0x2fb5('0x16')](_0x248687[_0x2fb5('0x1b')][_0x2fb5('0x6')][_0x2fb5('0x1a')][_0x2fb5('0x7')]());for(const {name:_0x17a45f,data:_0x2aa1f4}of _0x42b16a){const {group:_0x157bae}=_0x54f313['_splitMarkerName'](_0x17a45f);if(_0x2fb5('0x9')!==_0x157bae||!_0x2aa1f4[_0x2fb5('0x15')])continue;const _0x4d159e=_0x2aa1f4['newRange'],_0x38f886=_0x4d159e[_0x2fb5('0x18')][_0x2fb5('0x11')];if(!_0x38f886||!_0x38f886['is']('element',_0x2fb5('0x8')))continue;if(!_0x4d159e['start'][_0x2fb5('0x1')](_0x4d159e[_0x2fb5('0x18')]))continue;const _0x4cc88e=_0x248687[_0x2fb5('0x1b')][_0x2fb5('0x4')]['getNearestSelectionRange'](_0x4d159e[_0x2fb5('0x18')],'forward');if(_0x4cc88e&&_0x4cc88e[_0x2fb5('0x2')]){const _0xde6fd2=_0x4bfd0a[_0x2fb5('0x0')](_0x4d159e['start'],_0x4cc88e[_0x2fb5('0x17')]);_0xde6fd2[_0x2fb5('0xa')](_0x4d159e)||(_0x4bfd0a[_0x2fb5('0x5')](_0x17a45f,{'range':_0xde6fd2}),_0x5eb611=!0x0);}_0x5eb611||(_0x4bfd0a[_0x2fb5('0xf')](_0x17a45f),_0x5eb611=!0x0);}return _0x5eb611;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2aba=['plugins','afterInit','enableCommand','undo','UndoEditing','has','TrackChangesEditing'];(function(_0x379ae3,_0x2aba73){const _0x4de38a=function(_0x10b10a){while(--_0x10b10a){_0x379ae3['push'](_0x379ae3['shift']());}};_0x4de38a(++_0x2aba73);}(_0x2aba,0x14d));const _0x4de3=function(_0x379ae3,_0x2aba73){_0x379ae3=_0x379ae3-0x0;let _0x4de38a=_0x2aba[_0x379ae3];return _0x4de38a;};import{Plugin as _0x5329a8}from'ckeditor5/src/core';export default class It extends _0x5329a8{[_0x4de3('0x4')](){const _0x56d33d=this['editor'],_0x4173ef=_0x56d33d['plugins']['get'](_0x4de3('0x2'));_0x56d33d[_0x4de3('0x3')][_0x4de3('0x1')](_0x4de3('0x0'))&&(_0x4173ef[_0x4de3('0x5')](_0x4de3('0x6')),_0x4173ef[_0x4de3('0x5')]('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3768=['listItem','test','nextSibling','addHighlight','elementEnd','model','hasAttribute','element','isAtEnd','insert','addClass','writer','ck-suggestion-marker--active','isBlock','listIndent','schema','getItems','ck-suggestion-marker-','isLimit','markerRange','span','toViewElement','get','push','getAttribute','start','getWalker','toViewPosition','mapper','previousPosition','plugins','markerName','type','parent','name','getCustomProperty','bindElementToMarker','consumable','createRangeOn','activeMarkers'];(function(_0x299075,_0x37684f){const _0xdd9d23=function(_0x10bf1b){while(--_0x10bf1b){_0x299075['push'](_0x299075['shift']());}};_0xdd9d23(++_0x37684f);}(_0x3768,0x112));const _0xdd9d=function(_0x299075,_0x37684f){_0x299075=_0x299075-0x0;let _0xdd9d23=_0x3768[_0x299075];return _0xdd9d23;};export function getRangesWithAttribute(_0x1002ea,_0x46bc04,_0x3b379b){const _0x412701=[];for(const _0x4a9603 of _0x46bc04[_0xdd9d('0x16')]())_0x4a9603[_0xdd9d('0xc')](_0x1002ea)&&_0x412701['push'](_0x3b379b[_0xdd9d('0x4')](_0x4a9603));return _0x412701;}export function getElementsAffectedByListItemRename(_0x226742){const _0x3ac5d4=[];if(_0x226742['is']('element',_0xdd9d('0x6'))){let _0x59b0de=_0x226742[_0xdd9d('0x8')];for(;_0x59b0de&&_0x59b0de['is'](_0xdd9d('0xd'),_0xdd9d('0x6'))&&_0x59b0de[_0xdd9d('0x1e')](_0xdd9d('0x14'))>0x0;)_0x3ac5d4[_0xdd9d('0x1d')](_0x59b0de),_0x59b0de=_0x59b0de[_0xdd9d('0x8')];}return _0x3ac5d4;}export function downcastSplitMergeMarker(_0x3a7a65,_0x3b177a,{showActiveMarker:_0x3e9618=!0x0}={}){const _0x28a086=_0x3a7a65[_0xdd9d('0x24')][_0xdd9d('0x1c')]('TrackChangesEditing');return(_0x470b31,_0x2e544d,_0x2412f8)=>{if(!_0x2412f8[_0xdd9d('0x3')][_0xdd9d('0x7')](_0x2e544d[_0xdd9d('0x19')],_0x470b31[_0xdd9d('0x0')]))return;const _0x4c1ef7=_0x2e544d[_0xdd9d('0x19')][_0xdd9d('0x20')](),_0x36e1fe=_0x2e544d[_0xdd9d('0x19')][_0xdd9d('0x1f')],_0x1710bf=_0x3a7a65[_0xdd9d('0xb')][_0xdd9d('0x15')];let _0x1f58ed=null,_0x9729d1=null,_0x5a0407=!0x1,_0x1fc937=!0x1;for(const _0x302c7d of _0x4c1ef7){const _0x5192ad=_0x302c7d['item'];_0x5a0407=_0x5a0407||_0x1710bf['isContent'](_0x5192ad);const _0x3908ee=_0x2412f8['mapper'][_0xdd9d('0x1b')](_0x5192ad);if(_0x3908ee&&_0x3908ee[_0xdd9d('0x1')](_0xdd9d('0x9')))return;_0xdd9d('0xa')==_0x302c7d[_0xdd9d('0x26')]&&(_0x1710bf[_0xdd9d('0x13')](_0x5192ad)&&!_0x1710bf[_0xdd9d('0x18')](_0x5192ad)&&(_0x5192ad[_0xdd9d('0x8')]||_0x36e1fe[_0xdd9d('0xe')]?_0x1f58ed&&_0x1f58ed[_0xdd9d('0x27')]==_0x5192ad||(_0x1f58ed=_0x5192ad,_0x46cb8b(_0x302c7d['previousPosition']),_0x1fc937=!0x0):_0x9729d1=_0x9729d1||_0x302c7d[_0xdd9d('0x23')]));}function _0x46cb8b(_0x11111b){const _0x3cbe64=_0x2412f8[_0xdd9d('0x11')]['createUIElement'](_0xdd9d('0x1a'),{'class':_0xdd9d('0x17')+_0x3b177a}),_0x215de5=_0x2412f8[_0xdd9d('0x22')][_0xdd9d('0x21')](_0x11111b);_0x3e9618&&_0x28a086[_0xdd9d('0x5')]['includes'](_0x2e544d[_0xdd9d('0x25')])&&_0x2412f8[_0xdd9d('0x11')][_0xdd9d('0x10')](_0xdd9d('0x12'),_0x3cbe64),_0x2412f8[_0xdd9d('0x11')][_0xdd9d('0xf')](_0x215de5,_0x3cbe64),_0x2412f8[_0xdd9d('0x22')][_0xdd9d('0x2')](_0x3cbe64,_0x2e544d['markerName']);}_0x5a0407||_0x1fc937||!_0x9729d1||_0x46cb8b(_0x9729d1);};}
|