@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230719.0 → 0.0.0-nightly-20230721.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 +4 -4
- 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 _0x204b=['wrap','includes','value','getSuggestion','tableCell','rows','getRows','tablePasteRow','insertContent','removeMarkers','differ','discard','editingDowncast','_splitMarkerName','getSuggestionCallback','register','keys','return','join','forceDefaultExecution','root','registerPostFixer','fromEntries','_createdBatches','Users','author','getChildren','formatBlock','tablePasteCell','rootName','nodeAfter','subType','suggestion:formatBlock:tablePasteCell','afterInit','getContainedElement','move','tableCellSuggestion','insertion','document','createRangeIn','has','plugins','previous','tableCellHorizontalAlignment','getColumns','createTableWalker','markMultiRangeInsertion','endRow','getTableIfOnlyTableInContent','redo','getChild','createPositionBefore','createElement','isInContent','getRanges','batch','ck-suggestion-marker-insertion','registerCustomCallback','push','content','getSuggestions','rowInsertionRanges','getRange','getAttributes','low','trackChanges','editor','tablePasteChainId','position','_suggestionFactory','markMultiRangeDeletion','last','newRange','selection','for','map','$graveyard','insertColumns','paragraph','element','getItems','_tablePostFixingSubtypes','from','cells','setAttributes','startsWith','activeMarkers','tablePasteColumn','end','column','endColumn','tableCellBorderStyle','getChangedMarkers','TableUtils','accept','tablePaste','ck-suggestion-marker--active','markMultiRangeBlockFormat','type','remove','start','oldRange','unwrap','attributes','getShiftedBy','fill','previousSibling','isEmpty','view','_replaceTableSlotCell','row','findAncestor','suggestion-td','model','next','suggestion','getSelectionAffectedTableCells','filter','isEqual','high','insert','columnInsertionIndexes','getAllAdjacentSuggestions','markerToHighlight','commands','clipboardOutput','find','entries','elementToElement','name','hasSuggestion','length','markers','some','insertionRanges','removeRows','getChanges','tableCellPadding','get','suggestionLoaded','deletion','createRangeOn','columns','conversion','containsRange','options','TrackChangesEditing','setAttribute','change','documentSelection','table','getRowIndexes','add','insertRows','first','showSuggestionHighlights','set','getMarkers','every','schema','TableClipboard','markerAttributes'];(function(_0x335010,_0x204b78){const _0x2df7f1=function(_0x2a1239){while(--_0x2a1239){_0x335010['push'](_0x335010['shift']());}};_0x2df7f1(++_0x204b78);}(_0x204b,0x13b));const _0x2df7=function(_0x335010,_0x204b78){_0x335010=_0x335010-0x0;let _0x2df7f1=_0x204b[_0x335010];return _0x2df7f1;};import{getTranslation as _0x391900}from'../utils/common-translations';import{Plugin as _0x312a3c}from'ckeditor5/src/core';import{uid as _0x56fba4,priorities as _0x1fbb21}from'ckeditor5/src/utils';import _0x389895 from'./table';const le=['tableCellBorderWidth','tableCellBorderColor',_0x2df7('0x64'),_0x2df7('0x34'),'tableCellVerticalAlignment','tableCellBackgroundColor',_0x2df7('0x92')],ae=Object[_0x2df7('0x1f')](le['map'](_0xf8f973=>[_0xf8f973,null]));export default class kt extends _0x312a3c{static get['requires'](){return[_0x389895];}[_0x2df7('0x2a')](){const _0x3e03b6=this[_0x2df7('0x4b')];if(!_0x3e03b6[_0x2df7('0x32')][_0x2df7('0x31')](_0x2df7('0x7')))return;const _0xd76976=_0x3e03b6['plugins'][_0x2df7('0x93')](_0x2df7('0x9b')),_0x21c4fa=_0x3e03b6[_0x2df7('0x32')][_0x2df7('0x93')](_0x2df7('0x66')),_0xf8e3f2=_0x3e03b6[_0x2df7('0x32')]['get'](_0x389895),_0x5746da=_0x3e03b6[_0x2df7('0x32')][_0x2df7('0x93')]('TableClipboard');_0xf8e3f2[_0x2df7('0x5a')][_0x2df7('0x43')](_0x2df7('0x10'),'tablePasteColumn'),_0x3e03b6['model'][_0x2df7('0x6')][_0x2df7('0x18')]('tableCellSuggestion',{'allowIn':_0x2df7('0xd'),'allowContentOf':_0x2df7('0xd'),'isLimit':!0x0}),_0x3e03b6[_0x2df7('0x98')][_0x2df7('0x89')]({'model':_0x2df7('0x2d'),'view':_0x2df7('0x79')});let _0x21c782=null;_0x3e03b6[_0x2df7('0x7a')]['on'](_0x2df7('0x11'),(_0x3a0dbd,_0x5d7eac)=>{const [_0x471d65,_0x17176a]=_0x5d7eac,_0x516846=_0x5d7eac[_0x5d7eac['length']-0x1];_0x516846&&_0x516846[_0x2df7('0x1c')]||_0xd76976['_isForcedDefaultExecutionBlock']||this[_0x2df7('0x4b')][_0x2df7('0x85')][_0x2df7('0x93')](_0x2df7('0x4a'))[_0x2df7('0xb')]&&function(_0xd0fb63,_0x339508,_0x564576,_0x5b7165,_0x5c8b89){if(_0x339508&&!_0x339508['is'](_0x2df7('0x9e')))return!0x1;const _0x1375d0=_0x5c8b89[_0x2df7('0x39')](_0xd0fb63,_0x564576);if(!_0x1375d0||!fe(_0x1375d0,void 0x0,_0x5b7165))return!0x1;const _0x51bc6f=_0x5b7165[_0x2df7('0x7d')](_0x564576[_0x2df7('0x2f')][_0x2df7('0x52')]);if(!_0x51bc6f[_0x2df7('0x8c')])return!0x1;const _0x41e248=_0x51bc6f[0x0][_0x2df7('0x78')](_0x2df7('0x9f')),_0x4e995d=_0x5b7165[_0x2df7('0xa0')](_0x51bc6f),_0x4eeffa=_0x5b7165['getColumnIndexes'](_0x51bc6f),_0x381729={'startRow':_0x4e995d[_0x2df7('0x1')],'endRow':_0x4e995d[_0x2df7('0x50')],'startColumn':_0x4eeffa[_0x2df7('0x1')],'endColumn':_0x4eeffa['last']};return 0x1==_0x51bc6f['length']&&(_0x381729[_0x2df7('0x38')]+=_0x5b7165[_0x2df7('0xf')](_0x1375d0)-0x1,_0x381729[_0x2df7('0x63')]+=_0x5b7165[_0x2df7('0x35')](_0x1375d0)-0x1),fe(_0x41e248,_0x381729,_0x5b7165);}(_0x471d65,_0x17176a,_0x3e03b6['model'],_0x21c4fa,_0x5746da)&&(_0x3a0dbd['stop'](),_0x21c782={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3e03b6[_0x2df7('0x7a')]['change'](()=>{_0x3e03b6['model']['insertContent'](_0x5d7eac[0x0],_0x5d7eac[0x1],_0x5d7eac[0x2],{'forceDefaultExecution':!0x0});const _0x4b3048=_0x56fba4(),{rowInsertionRanges:_0x4e3265,columnInsertionRanges:_0x18ae2c,insertionRanges:_0x376f15,deletionRanges:_0x2690da,cells:_0x3d47b0}=_0x21c782;_0x4e3265[_0x2df7('0x8c')]&&_0xd76976[_0x2df7('0x37')](_0x4e3265,_0x2df7('0x10'),{'tablePasteChainId':_0x4b3048}),_0x18ae2c[_0x2df7('0x8c')]&&_0xd76976[_0x2df7('0x37')](_0x18ae2c,_0x2df7('0x60'),{'tablePasteChainId':_0x4b3048}),_0x376f15[_0x2df7('0x8c')]&&_0xd76976['markMultiRangeInsertion'](_0x376f15,_0x2df7('0x68'),{'tablePasteChainId':_0x4b3048,'skipNestingCheck':!0x0}),_0x2690da['length']&&_0xd76976[_0x2df7('0x4f')](_0x2690da,_0x2df7('0x68'),{'tablePasteChainId':_0x4b3048,'skipNestingCheck':!0x0});const _0x48657d=_0xd76976[_0x2df7('0x6a')](_0x3d47b0[_0x2df7('0x54')](({element:_0x1df2e2})=>_0x1df2e2),{'formatGroupId':_0x56fba4()},[],_0x2df7('0x25'),{'tablePasteChainId':_0x4b3048});if(_0x48657d){const _0x1c31d0=_0x48657d[_0x2df7('0x4')](),_0x5a200b=[];for(const {element:_0x386091,attributes:_0x5e7a1a}of _0x3d47b0){if(!_0x5e7a1a)continue;const _0x59c042=_0x3e03b6[_0x2df7('0x7a')][_0x2df7('0x96')](_0x386091),_0x537633=_0x1c31d0[_0x2df7('0x87')](_0xefb67d=>_0xefb67d[_0x2df7('0x47')]()[_0x2df7('0x7f')](_0x59c042));_0x537633&&_0x5a200b[_0x2df7('0x43')]([_0x537633['name'],_0x5e7a1a]);}_0x5a200b[_0x2df7('0x8c')]&&_0x48657d[_0x2df7('0x9c')]('markerAttributes',Object[_0x2df7('0x1f')](_0x5a200b));}_0x21c782=null;}));},{'priority':_0x1fbb21['high']+0xa}),_0x3e03b6[_0x2df7('0x32')]['get']('TableClipboard')['on'](_0x2df7('0x76'),(_0x28f49f,_0x40ce20)=>{const [_0x9db540,_0x7bf1f0,,_0x31c8d4]=_0x40ce20;if(!_0x21c782)return;_0x28f49f['stop']();const _0x3bf02a=_0x9db540['cell'],_0x15ca35=_0x7bf1f0,_0x5729b1=ce(_0x3bf02a),_0x26c85f=ce(_0x15ca35);_0x28f49f[_0x2df7('0x1a')]=_0x3bf02a;let _0x24010b=null,_0x2f79a5=null;if(_0x26c85f||_0x5729b1){if(_0x5729b1&&!_0x26c85f){_0x31c8d4['remove'](_0x3bf02a[_0x2df7('0x3b')](0x0));for(const _0x16e649 of Array[_0x2df7('0x5b')](_0x15ca35[_0x2df7('0x23')]()))_0x31c8d4['insert'](_0x16e649,_0x3bf02a,_0x2df7('0x61'));const _0x1aaa85=_0x21c782['rowInsertionIndexes'][_0x2df7('0xa')](_0x9db540[_0x2df7('0x77')]),_0x3b47f5=_0x21c782[_0x2df7('0x82')][_0x2df7('0xa')](_0x9db540[_0x2df7('0x62')]);_0x1aaa85||_0x3b47f5||(_0x24010b=_0x31c8d4['createRangeIn'](_0x3bf02a));}else _0x26c85f&&!_0x5729b1&&(_0x2f79a5=_0x31c8d4[_0x2df7('0x30')](_0x3bf02a));}else{const _0x337015=_0x31c8d4[_0x2df7('0x3d')](_0x2df7('0x2d')),_0x554ec4=_0x31c8d4[_0x2df7('0x3d')]('tableCellSuggestion');_0x31c8d4[_0x2df7('0x9')](_0x31c8d4['createRangeIn'](_0x3bf02a),_0x554ec4),_0x31c8d4[_0x2df7('0x81')](_0x337015,_0x3bf02a,0x0);for(const _0x31218a of Array[_0x2df7('0x5b')](_0x15ca35[_0x2df7('0x23')]()))_0x31c8d4[_0x2df7('0x81')](_0x31218a,_0x337015,'end');_0x24010b=_0x31c8d4['createRangeOn'](_0x337015),_0x2f79a5=_0x31c8d4[_0x2df7('0x96')](_0x554ec4);}const _0x5dc696=Array[_0x2df7('0x5b')](_0x15ca35[_0x2df7('0x48')]())['filter'](([_0x1b7cf3])=>le[_0x2df7('0xa')](_0x1b7cf3));_0x21c782[_0x2df7('0x5c')][_0x2df7('0x43')]({'element':_0x3bf02a,'attributes':_0x5dc696['length']?Object[_0x2df7('0x1f')](_0x5dc696):null}),_0x24010b&&_0x21c782[_0x2df7('0x8f')][_0x2df7('0x43')](_0x24010b),_0x2f79a5&&_0x21c782['deletionRanges'][_0x2df7('0x43')](_0x2f79a5);},{'priority':'high'}),_0x21c4fa['on'](_0x2df7('0x56'),(_0x5a7451,_0x444ca1)=>{const [_0x557aca,_0x30aafc={}]=_0x444ca1;if(!_0x21c782)return;const _0x581251=_0x30aafc['at']||0x0,_0xeefe0e=_0x30aafc[_0x2df7('0x97')]||0x1;_0x21c782[_0x2df7('0x82')]=new Array(_0xeefe0e)[_0x2df7('0x72')](_0x581251)['map']((_0x527745,_0x2e1d07)=>_0x527745+_0x2e1d07);for(const {cell:_0x131388}of _0x21c4fa[_0x2df7('0x36')](_0x557aca,{'startColumn':_0x581251,'endColumn':_0x581251+_0xeefe0e-0x1}))_0x21c782['columnInsertionRanges'][_0x2df7('0x43')](_0x3e03b6[_0x2df7('0x7a')][_0x2df7('0x96')](_0x131388));},{'priority':_0x2df7('0x49')}),_0x21c4fa['on'](_0x2df7('0x0'),(_0x4d7eb2,_0x29c052)=>{const [_0x794955,_0x55c264={}]=_0x29c052;if(!_0x21c782)return;const _0xa63699=_0x55c264['at']||0x0,_0x144189=_0x55c264[_0x2df7('0xe')]||0x1;_0x21c782['rowInsertionIndexes']=new Array(_0x144189)['fill'](_0xa63699)[_0x2df7('0x54')]((_0x44f485,_0x2acd5f)=>_0x44f485+_0x2acd5f);for(const {cell:_0x1ab3d6}of _0x21c4fa[_0x2df7('0x36')](_0x794955,{'startRow':_0xa63699,'endRow':_0xa63699+_0x144189-0x1}))_0x21c782[_0x2df7('0x46')][_0x2df7('0x43')](_0x3e03b6['model'][_0x2df7('0x96')](_0x1ab3d6));},{'priority':_0x2df7('0x49')}),_0xd76976['_descriptionFactory']['registerDescriptionCallback'](_0x101808=>{if(_0x101808[_0x2df7('0x28')]&&_0x101808[_0x2df7('0x28')][_0x2df7('0x5e')](_0x2df7('0x68')))return _0x101808[_0x2df7('0x33')]?{}:{'type':'insertion','content':_0x391900(_0x3e03b6['locale'],'*Replace\x20table\x20cells*')};});const _0xed2f61=()=>{};for(const _0x7daacf of['tablePaste',_0x2df7('0x60'),'tablePasteRow','tablePasteCell'])_0xd76976['_suggestionFactory']['registerCustomCallback']('insertion',_0x7daacf,'join',_0xed2f61),_0xd76976[_0x2df7('0x4e')][_0x2df7('0x42')](_0x2df7('0x95'),_0x7daacf,_0x2df7('0x1b'),_0xed2f61);_0xd76976['_suggestionFactory'][_0x2df7('0x42')](_0x2df7('0x24'),_0x2df7('0x25'),_0x2df7('0x14'),_0xed2f61),_0xd76976[_0x2df7('0x4e')][_0x2df7('0x42')](_0x2df7('0x24'),_0x2df7('0x25'),_0x2df7('0x67'),(_0x3c613d,_0x2f7934,_0x345603)=>{const _0x4875f6=_0x3c613d[_0x2df7('0x54')](_0xb557eb=>_0xb557eb['getContainedElement']())[_0x2df7('0x7e')](_0x3ec2ff=>_0x3ec2ff),_0x563555=new Map(_0x4875f6['map'](_0x2a9061=>[_0x2a9061,null]));if(_0x21c782)for(const {element:_0x452d72,attributes:_0x38a87a}of _0x21c782[_0x2df7('0x5c')])_0x38a87a&&_0x563555[_0x2df7('0x3')](_0x452d72,_0x38a87a);else{if(_0x345603&&_0x345603[_0x2df7('0x8')])for(const [_0x42010a,_0x5de22e]of Object[_0x2df7('0x88')](_0x345603[_0x2df7('0x8')])){const _0x451d62=_0x3e03b6[_0x2df7('0x7a')][_0x2df7('0x8d')][_0x2df7('0x93')](_0x42010a),_0x19c11a=_0x451d62?_0x451d62[_0x2df7('0x47')]()[_0x2df7('0x2b')]():null;_0x19c11a&&_0x563555['set'](_0x19c11a,_0x5de22e);}}_0x3e03b6[_0x2df7('0x7a')][_0x2df7('0x9d')](_0x541c1d=>{for(const [_0x16ae99,_0xa59bc5]of _0x563555)_0x541c1d[_0x2df7('0x5d')]({...ae,..._0xa59bc5},_0x16ae99);});});const _0x401593=(_0x2b5e5c,_0x3a8316)=>{_0xd76976['_suggestionFactory'][_0x2df7('0x42')](_0x2b5e5c,_0x2df7('0x68'),_0x3a8316,(_0x405289,_0x287c18,_0x323689)=>{_0x3e03b6[_0x2df7('0x7a')][_0x2df7('0x9d')](_0x3379ea=>{const _0x408a6d=[];for(const _0x40acfa of _0x405289){const _0x45090e=_0x40acfa[_0x2df7('0x6d')][_0x2df7('0x27')];_0x45090e['is']('element','tableCellSuggestion')&&_0x408a6d[_0x2df7('0x43')](_0x45090e);}_0xd76976[_0x2df7('0x4e')][_0x2df7('0x17')](_0x2b5e5c,null,_0x3a8316)(_0x405289,_0x287c18,_0x323689);for(const _0x1aecef of _0x408a6d)_0x2df7('0x55')!=_0x1aecef[_0x2df7('0x1d')][_0x2df7('0x26')]&&_0x3379ea['unwrap'](_0x1aecef);});});};_0x401593(_0x2df7('0x2e'),_0x2df7('0x67')),_0x401593(_0x2df7('0x2e'),_0x2df7('0x14')),_0x401593(_0x2df7('0x95'),'accept'),_0x401593(_0x2df7('0x95'),'discard'),_0xd76976[_0x2df7('0x4e')]['registerCustomCallback']('insertion',_0x2df7('0x10'),_0x2df7('0x14'),_0x2af161=>{const _0x1a5753=_0x2af161['map'](_0x4480f6=>_0x4480f6['getContainedElement']()),_0x44010c=_0x1a5753[0x0][_0x2df7('0x78')](_0x2df7('0x9f')),{minRow:_0x45d71c,maxRow:_0x156288}=_0xf8e3f2['_getCoordsForCells'](_0x1a5753);_0x21c4fa[_0x2df7('0x90')](_0x44010c,{'at':_0x45d71c,'rows':_0x156288-_0x45d71c+0x1});}),_0xd76976[_0x2df7('0x4e')][_0x2df7('0x42')]('insertion','tablePasteColumn',_0x2df7('0x14'),_0x5af09f=>{const _0x36872b=_0x5af09f[_0x2df7('0x54')](_0x3b332e=>_0x3b332e[_0x2df7('0x2b')]()),_0x1fea82=_0x36872b[0x0]['findAncestor'](_0x2df7('0x9f')),{minColumn:_0x30131e,maxColumn:_0x4a5de4}=_0xf8e3f2['_getCoordsForCells'](_0x36872b);_0x21c4fa['removeColumns'](_0x1fea82,{'at':_0x30131e,'columns':_0x4a5de4-_0x30131e+0x1});});const _0x16a278=(_0x3cbf3f,_0x539748)=>{if(!_0x539748[_0x2df7('0x28')]||!_0x539748[_0x2df7('0x28')][_0x2df7('0x5e')]('tablePaste'))return;const _0x2b91c2=_0x539748[_0x2df7('0x70')][_0x2df7('0x4c')],_0x497101=_0xd76976[_0x2df7('0x45')]()[_0x2df7('0x7e')](_0x1df2fd=>_0x1df2fd[_0x2df7('0x3e')]&&_0x1df2fd['attributes']&&_0x1df2fd[_0x2df7('0x70')]['tablePasteChainId']==_0x2b91c2);_0x497101['length']&&_0x539748[_0x2df7('0x83')]()[_0x2df7('0x8c')]!=_0x497101[_0x2df7('0x8c')]&&_0x497101['reduce']((_0x1a592f,_0x3e9f23)=>(_0x1a592f[_0x2df7('0x7b')]=_0x3e9f23,_0x3e9f23['previous']=_0x1a592f,_0x3e9f23));};function _0x453812(_0x345cf6,_0x490ed9=!0x0){const {id:_0x399d99}=_0xd76976[_0x2df7('0x16')](_0x345cf6['markerName']),_0x40467b=['ck-suggestion-marker',_0x2df7('0x41')],_0x418ad2=_0xd76976[_0x2df7('0x5f')][_0x2df7('0xa')](_0x345cf6['markerName']);return _0x418ad2&&_0x40467b[_0x2df7('0x43')](_0x2df7('0x69')),{'classes':_0x40467b,'attributes':{'data-suggestion':_0x399d99},'priority':_0x418ad2&&_0x490ed9?0xbc2:0xbb8};}_0xd76976['on'](_0x2df7('0x94'),_0x16a278,{'priority':_0x2df7('0x80')}),_0xd76976['on']('suggestionUnloaded',_0x16a278,{'priority':_0x2df7('0x80')}),_0x3e03b6[_0x2df7('0x7a')][_0x2df7('0x2f')]['registerPostFixer'](()=>{let _0x28d251=!0x1;const _0x1bf82e=Array[_0x2df7('0x5b')](_0x3e03b6['model']['document'][_0x2df7('0x13')][_0x2df7('0x65')]());for(const {name:_0xb0ce8b,data:_0x4046e0}of _0x1bf82e){const {group:_0x19ab2d,type:_0xbecc9f,id:_0x57cf86}=_0xd76976[_0x2df7('0x16')](_0xb0ce8b);if(_0x2df7('0x7c')!=_0x19ab2d||'deletion'!=_0xbecc9f||_0x4046e0[_0x2df7('0x6e')])continue;if(!_0xd76976[_0x2df7('0x8b')](_0x57cf86))continue;const _0x47f613=_0xd76976[_0x2df7('0xc')](_0x57cf86)[_0x2df7('0x3f')](),_0x48053a=_0x3e03b6[_0x2df7('0x32')]['get'](_0x2df7('0x21'))['me'];for(const _0x19b8b5 of _0xd76976[_0x2df7('0x45')]()){if(!_0x19b8b5['isInContent']||_0x19b8b5['author']!=_0x48053a)continue;if('formatBlock'!=_0x19b8b5[_0x2df7('0x6b')]||_0x2df7('0x25')!=_0x19b8b5['subType'])continue;if(_0x19b8b5[_0x2df7('0x3f')]()[_0x2df7('0x5')](_0x586845=>_0x47f613[_0x2df7('0x8e')](_0x3ab70e=>_0x3ab70e[_0x2df7('0x99')](_0x586845,!0x0))))for(const _0x279253 of _0x19b8b5[_0x2df7('0x83')]())_0x279253[_0x2df7('0x3e')]&&(_0x279253[_0x2df7('0x14')](),_0x28d251=!0x0);}}return _0x28d251;}),_0x3e03b6[_0x2df7('0x7a')][_0x2df7('0x2f')][_0x2df7('0x1e')](_0x469b2b=>{const _0x1d32bc=_0x3e03b6[_0x2df7('0x85')][_0x2df7('0x93')](_0x2df7('0x3a'));if(!_0x1d32bc||!_0x1d32bc[_0x2df7('0x20')]['has'](_0x469b2b[_0x2df7('0x40')]))return!0x1;let _0xfd8c9e=!0x1;const _0x6bfb22=_0x3e03b6[_0x2df7('0x32')][_0x2df7('0x93')](_0x2df7('0x21'))['me'],_0x264040=_0x3e03b6['model']['document'][_0x2df7('0x13')][_0x2df7('0x91')](),_0x47719d=Array[_0x2df7('0x5b')](_0x3e03b6[_0x2df7('0x7a')][_0x2df7('0x2f')][_0x2df7('0x13')][_0x2df7('0x65')]())[_0x2df7('0x7e')](({name:_0x3517a1,data:_0x393ea7})=>{const {group:_0x5a4a99,subType:_0x730129,authorId:_0x7f3cd5}=_0xd76976[_0x2df7('0x16')](_0x3517a1);return _0x2df7('0x7c')==_0x5a4a99&&_0x2df7('0x68')==_0x730129&&_0x7f3cd5==_0x6bfb22['id']&&!_0x393ea7[_0x2df7('0x6e')];});for(const _0x20b8ff of _0x264040){if(_0x2df7('0x81')!=_0x20b8ff['type']||'tableCellSuggestion'!=_0x20b8ff[_0x2df7('0x8a')]||0x1!=_0x20b8ff[_0x2df7('0x8c')])continue;const _0x267e4a=_0x469b2b['createRange'](_0x20b8ff[_0x2df7('0x4d')],_0x20b8ff[_0x2df7('0x4d')][_0x2df7('0x71')](0x1));if(!_0x47719d['find'](({data:_0x36ca8b})=>_0x36ca8b[_0x2df7('0x51')][_0x2df7('0x7f')](_0x267e4a)))for(const {name:_0x1f0314,data:_0x41f921}of _0x47719d)if(_0x267e4a[_0x2df7('0x99')](_0x41f921['newRange'])){_0x469b2b['updateMarker'](_0x1f0314,{'range':_0x267e4a}),_0xfd8c9e=!0x0;break;}}return _0xfd8c9e;}),_0x3e03b6[_0x2df7('0x7a')][_0x2df7('0x2f')][_0x2df7('0x1e')](_0x4e0dd2=>{let _0x518e81=!0x1;const _0x33c849=_0x3e03b6[_0x2df7('0x32')][_0x2df7('0x93')](_0x2df7('0x21'))['me'],_0x3038a4=_0xd76976['getSuggestions']()[_0x2df7('0x7e')](_0x34e9fe=>_0x34e9fe['isInContent']&&_0x34e9fe[_0x2df7('0x22')]==_0x33c849),_0x34bb48=new Set(),_0x9e11f8=new Set();for(const _0x42a591 of _0x3038a4)if(_0x2df7('0x68')==_0x42a591['subType'])for(const _0x2677ec of _0x42a591[_0x2df7('0x4')]()){const _0x1623e7=_0x2677ec['getRange']()[_0x2df7('0x2b')]();if(_0x1623e7){if(_0x1623e7['is'](_0x2df7('0x58'),_0x2df7('0x2d'))&&ce(_0x1623e7)){_0x42a591['removeMarker'](_0x2677ec[_0x2df7('0x8a')]),_0x34bb48['add'](_0x1623e7),_0x518e81=!0x0;const _0x3cfb97=_0x1623e7['nextSibling'],_0x4615cb=_0x1623e7[_0x2df7('0x73')],_0x4f70f4=_0x3cfb97&&_0x3cfb97['is'](_0x2df7('0x58'),_0x2df7('0x2d')),_0x3dd98a=_0x4615cb&&_0x4615cb['is']('element','tableCellSuggestion');_0x4f70f4&&!_0x34bb48['has'](_0x3cfb97)&&_0x9e11f8[_0x2df7('0xa1')](_0x3cfb97),_0x3dd98a&&!_0x34bb48['has'](_0x4615cb)&&_0x9e11f8[_0x2df7('0xa1')](_0x4615cb);}else _0x1623e7['is']('element',_0x2df7('0x57'))&&_0x1623e7[_0x2df7('0x74')]&&(_0x42a591['removeMarker'](_0x2677ec[_0x2df7('0x8a')]),_0x518e81=!0x0);}}else{if(_0x2df7('0x25')==_0x42a591[_0x2df7('0x28')]){if(!_0x42a591[_0x2df7('0x70')]||!_0x42a591[_0x2df7('0x70')][_0x2df7('0x4c')])continue;const _0x4284eb=_0x42a591[_0x2df7('0x70')][_0x2df7('0x8')];if(_0x4284eb&&Object[_0x2df7('0x19')](_0x4284eb)['length'])continue;const _0x1cd4fd=_0x42a591[_0x2df7('0x70')]['tablePasteChainId'];let _0x399fc2=!0x0,_0xe780e7=!0x0;for(const _0x489251 of _0x3038a4)if(_0x489251[_0x2df7('0x28')]&&_0x489251['subType'][_0x2df7('0x5e')](_0x2df7('0x68'))){if(!_0x489251[_0x2df7('0x70')][_0x2df7('0x4c')]){_0xe780e7=!0x1;break;}if(_0x489251['id']!=_0x42a591['id']&&_0x489251[_0x2df7('0x70')]['tablePasteChainId']==_0x1cd4fd){_0x399fc2=!0x1;break;}}_0xe780e7&&_0x399fc2&&(_0x42a591[_0x2df7('0x12')](),_0x518e81=!0x0);}}for(const _0xca607f of _0x34bb48)_0x4e0dd2[_0x2df7('0x6c')](_0xca607f);for(const _0x26f965 of _0x9e11f8)_0x4e0dd2[_0x2df7('0x6f')](_0x26f965);return _0x518e81;}),_0x3e03b6[_0x2df7('0x98')][_0x2df7('0x53')](_0x2df7('0x15'))[_0x2df7('0x84')]({'model':_0x2df7('0x29'),'view':(_0x51509f,_0x2665bb)=>_0x453812(_0x51509f),'converterPriority':_0x2df7('0x80')}),_0x3e03b6[_0x2df7('0x98')][_0x2df7('0x53')]('dataDowncast')[_0x2df7('0x84')]({'model':_0x2df7('0x29'),'view':(_0xf45baa,_0x72875d)=>_0x72875d[_0x2df7('0x9a')][_0x2df7('0x2')]?_0x453812(_0xf45baa,!0x1):null,'converterPriority':'high'});const _0x339ca7=_0x3e03b6['editing'][_0x2df7('0x75')];this['listenTo'](_0x339ca7[_0x2df7('0x2f')],_0x2df7('0x86'),(_0x4a0314,_0x518fa8)=>{const _0x21d5c5=[];for(const _0x3ef8fc of _0x339ca7[_0x2df7('0x30')](_0x518fa8[_0x2df7('0x44')])[_0x2df7('0x59')]())_0x3ef8fc['is']('element',_0x2df7('0x79'))&&_0x21d5c5[_0x2df7('0x43')](_0x3ef8fc);_0x339ca7[_0x2df7('0x9d')](_0x230091=>{for(const _0x1a659d of _0x21d5c5)_0x230091[_0x2df7('0x2c')](_0x230091[_0x2df7('0x30')](_0x1a659d),_0x230091[_0x2df7('0x3c')](_0x1a659d)),_0x230091[_0x2df7('0x6c')](_0x1a659d);});});}}function ce(_0x3cb7e3){if(_0x3cb7e3['isEmpty'])return!0x0;const _0x2c2696=_0x3cb7e3[_0x2df7('0x3b')](0x0);return _0x2c2696['is'](_0x2df7('0x58'),_0x2df7('0x57'))&&_0x2c2696[_0x2df7('0x74')];}function fe(_0x2dd01d,_0x349cf5={},_0x32655b){for(const {isAnchor:_0x5c01ba,cellHeight:_0x23bc90,cellWidth:_0x229c3a}of _0x32655b['createTableWalker'](_0x2dd01d,{'includeAllSlots':!0x0,..._0x349cf5}))if(!_0x5c01ba||0x1!=_0x23bc90||0x1!=_0x229c3a)return!0x1;return!0x0;}
|
|
23
|
+
const _0x3fdb=['getSuggestion','editingDowncast','removeColumns','documentSelection','stop','author','ck-suggestion-marker--active','add','requires','reduce','suggestion','getChildren','value','TrackChangesEditing','accept','getColumnIndexes','_createdBatches','tableCellHorizontalAlignment','_getCoordsForCells','commands','isInContent','from','position','table','root','previousSibling','markers','low','editor','setAttribute','tablePasteRow','markMultiRangeInsertion','conversion','oldRange','first','$graveyard','cells','nextSibling','document','Users','redo','getChangedMarkers','selection','getSuggestions','getChild','editing','removeRows','model','rootName','includes','createRange','discard','getRanges','tableCellBorderStyle','schema','registerDescriptionCallback','formatBlock','previous','registerCustomCallback','columns','suggestion-td','type','getContainedElement','last','markerToHighlight','paragraph','next','wrap','fill','tableCellBorderWidth','_descriptionFactory','deletion','ck-suggestion-marker','push','for','containsRange','tableCellSuggestion','setAttributes','insert','markerName','_splitMarkerName','remove','tablePaste','move','updateMarker','columnInsertionRanges','insertRows','every','name','rowInsertionIndexes','getMarkers','insertionRanges','batch','isEmpty','endColumn','tablePasteCell','newRange','unwrap','high','hasSuggestion','markerAttributes','listenTo','getRange','dataDowncast','clipboardOutput','find','createRangeIn','tableCellVerticalAlignment','tablePasteChainId','markMultiRangeDeletion','tableCellBorderColor','startsWith','set','return','createTableWalker','suggestion:formatBlock:tablePasteCell','ck-suggestion-marker-insertion','elementToElement','suggestionLoaded','column','register','suggestionUnloaded','getAllAdjacentSuggestions','plugins','registerPostFixer','findAncestor','_suggestionFactory','removeMarkers','change','TableClipboard','removeMarker','view','attributes','createRangeOn','subType','keys','cell','fromEntries','has','insertion','start','isEqual','showSuggestionHighlights','tablePasteColumn','insertColumns','differ','filter','length','insertContent','end','getChanges','get','options','element','join','map','createPositionBefore','markMultiRangeBlockFormat','getColumns','trackChanges','tableCell','_tablePostFixingSubtypes','some','createElement','deletionRanges'];(function(_0x187632,_0x3fdb0e){const _0x5ace36=function(_0x34a125){while(--_0x34a125){_0x187632['push'](_0x187632['shift']());}};_0x5ace36(++_0x3fdb0e);}(_0x3fdb,0xca));const _0x5ace=function(_0x187632,_0x3fdb0e){_0x187632=_0x187632-0x0;let _0x5ace36=_0x3fdb[_0x187632];return _0x5ace36;};import{getTranslation as _0x5eee4d}from'../utils/common-translations';import{Plugin as _0x18732e}from'ckeditor5/src/core';import{uid as _0x50fd1f,priorities as _0x1a7134}from'ckeditor5/src/utils';import _0x5b68a1 from'./table';const le=[_0x5ace('0x20'),_0x5ace('0x49'),_0x5ace('0x10'),_0x5ace('0x91'),_0x5ace('0x46'),'tableCellBackgroundColor','tableCellPadding'],ae=Object[_0x5ace('0x64')](le[_0x5ace('0x76')](_0x7baba2=>[_0x7baba2,null]));export default class kt extends _0x18732e{static get[_0x5ace('0x88')](){return[_0x5b68a1];}['afterInit'](){const _0x56bf5c=this['editor'];if(!_0x56bf5c['plugins']['has'](_0x5ace('0x5c')))return;const _0x590b6f=_0x56bf5c[_0x5ace('0x56')]['get'](_0x5ace('0x8d')),_0x100933=_0x56bf5c['plugins'][_0x5ace('0x72')]('TableUtils'),_0x9aa838=_0x56bf5c[_0x5ace('0x56')][_0x5ace('0x72')](_0x5b68a1),_0x3c32c5=_0x56bf5c[_0x5ace('0x56')]['get'](_0x5ace('0x5c'));_0x9aa838[_0x5ace('0x7c')][_0x5ace('0x24')]('tablePasteRow','tablePasteColumn'),_0x56bf5c['model'][_0x5ace('0x11')][_0x5ace('0x53')]('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':_0x5ace('0x7b'),'isLimit':!0x0}),_0x56bf5c[_0x5ace('0xa0')][_0x5ace('0x50')]({'model':_0x5ace('0x27'),'view':_0x5ace('0x17')});let _0x2b374a=null;_0x56bf5c[_0x5ace('0xa')]['on'](_0x5ace('0x6f'),(_0x46b02a,_0x3f1d02)=>{const [_0x58f117,_0x4184b9]=_0x3f1d02,_0x37026a=_0x3f1d02[_0x3f1d02[_0x5ace('0x6e')]-0x1];_0x37026a&&_0x37026a['forceDefaultExecution']||_0x590b6f['_isForcedDefaultExecutionBlock']||this[_0x5ace('0x9c')]['commands']['get'](_0x5ace('0x7a'))[_0x5ace('0x8c')]&&function(_0x2439e2,_0x2b9565,_0x122151,_0x9f3101,_0x1daed3){if(_0x2b9565&&!_0x2b9565['is'](_0x5ace('0x83')))return!0x1;const _0x4cb5a8=_0x1daed3['getTableIfOnlyTableInContent'](_0x2439e2,_0x122151);if(!_0x4cb5a8||!fe(_0x4cb5a8,void 0x0,_0x9f3101))return!0x1;const _0x571859=_0x9f3101['getSelectionAffectedTableCells'](_0x122151[_0x5ace('0x1')][_0x5ace('0x5')]);if(!_0x571859[_0x5ace('0x6e')])return!0x1;const _0x459065=_0x571859[0x0]['findAncestor']('table'),_0x29ecd2=_0x9f3101['getRowIndexes'](_0x571859),_0x207a53=_0x9f3101[_0x5ace('0x8f')](_0x571859),_0x5d8f9c={'startRow':_0x29ecd2[_0x5ace('0xa2')],'endRow':_0x29ecd2[_0x5ace('0x1a')],'startColumn':_0x207a53[_0x5ace('0xa2')],'endColumn':_0x207a53[_0x5ace('0x1a')]};return 0x1==_0x571859[_0x5ace('0x6e')]&&(_0x5d8f9c['endRow']+=_0x9f3101['getRows'](_0x4cb5a8)-0x1,_0x5d8f9c[_0x5ace('0x39')]+=_0x9f3101[_0x5ace('0x79')](_0x4cb5a8)-0x1),fe(_0x459065,_0x5d8f9c,_0x9f3101);}(_0x58f117,_0x4184b9,_0x56bf5c[_0x5ace('0xa')],_0x100933,_0x3c32c5)&&(_0x46b02a[_0x5ace('0x84')](),_0x2b374a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x5b')](()=>{_0x56bf5c[_0x5ace('0xa')]['insertContent'](_0x3f1d02[0x0],_0x3f1d02[0x1],_0x3f1d02[0x2],{'forceDefaultExecution':!0x0});const _0x298974=_0x50fd1f(),{rowInsertionRanges:_0x3bdfaa,columnInsertionRanges:_0x43bb83,insertionRanges:_0xe2593e,deletionRanges:_0x1fb0bb,cells:_0x15ecb9}=_0x2b374a;_0x3bdfaa[_0x5ace('0x6e')]&&_0x590b6f[_0x5ace('0x9f')](_0x3bdfaa,_0x5ace('0x9e'),{'tablePasteChainId':_0x298974}),_0x43bb83['length']&&_0x590b6f[_0x5ace('0x9f')](_0x43bb83,'tablePasteColumn',{'tablePasteChainId':_0x298974}),_0xe2593e['length']&&_0x590b6f[_0x5ace('0x9f')](_0xe2593e,'tablePaste',{'tablePasteChainId':_0x298974,'skipNestingCheck':!0x0}),_0x1fb0bb[_0x5ace('0x6e')]&&_0x590b6f[_0x5ace('0x48')](_0x1fb0bb,_0x5ace('0x2d'),{'tablePasteChainId':_0x298974,'skipNestingCheck':!0x0});const _0x352e42=_0x590b6f[_0x5ace('0x78')](_0x15ecb9[_0x5ace('0x76')](({element:_0x60510f})=>_0x60510f),{'formatGroupId':_0x50fd1f()},[],_0x5ace('0x3a'),{'tablePasteChainId':_0x298974});if(_0x352e42){const _0x45fdb5=_0x352e42[_0x5ace('0x35')](),_0x396f7f=[];for(const {element:_0x4e80a1,attributes:_0x4d3b28}of _0x15ecb9){if(!_0x4d3b28)continue;const _0x5aaf56=_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x60')](_0x4e80a1),_0x35560b=_0x45fdb5[_0x5ace('0x44')](_0x34de7c=>_0x34de7c[_0x5ace('0x41')]()[_0x5ace('0x68')](_0x5aaf56));_0x35560b&&_0x396f7f[_0x5ace('0x24')]([_0x35560b['name'],_0x4d3b28]);}_0x396f7f[_0x5ace('0x6e')]&&_0x352e42[_0x5ace('0x9d')](_0x5ace('0x3f'),Object['fromEntries'](_0x396f7f));}_0x2b374a=null;}));},{'priority':_0x1a7134[_0x5ace('0x3d')]+0xa}),_0x56bf5c[_0x5ace('0x56')]['get'](_0x5ace('0x5c'))['on']('_replaceTableSlotCell',(_0x383feb,_0x1f3e7b)=>{const [_0x4df857,_0x2b0f8f,,_0x1f82d4]=_0x1f3e7b;if(!_0x2b374a)return;_0x383feb[_0x5ace('0x84')]();const _0x5ba791=_0x4df857[_0x5ace('0x63')],_0x33ac88=_0x2b0f8f,_0x234c73=ce(_0x5ba791),_0x256eec=ce(_0x33ac88);_0x383feb[_0x5ace('0x4c')]=_0x5ba791;let _0x37c511=null,_0x31c25b=null;if(_0x256eec||_0x234c73){if(_0x234c73&&!_0x256eec){_0x1f82d4[_0x5ace('0x2c')](_0x5ba791[_0x5ace('0x7')](0x0));for(const _0x538e8b of Array[_0x5ace('0x95')](_0x33ac88[_0x5ace('0x8b')]()))_0x1f82d4['insert'](_0x538e8b,_0x5ba791,_0x5ace('0x70'));const _0x1e3b9e=_0x2b374a[_0x5ace('0x34')][_0x5ace('0xc')](_0x4df857['row']),_0x4bc399=_0x2b374a['columnInsertionIndexes']['includes'](_0x4df857[_0x5ace('0x52')]);_0x1e3b9e||_0x4bc399||(_0x37c511=_0x1f82d4[_0x5ace('0x45')](_0x5ba791));}else _0x256eec&&!_0x234c73&&(_0x31c25b=_0x1f82d4[_0x5ace('0x45')](_0x5ba791));}else{const _0x15a097=_0x1f82d4[_0x5ace('0x7e')](_0x5ace('0x27')),_0x58cae4=_0x1f82d4[_0x5ace('0x7e')]('tableCellSuggestion');_0x1f82d4[_0x5ace('0x1e')](_0x1f82d4[_0x5ace('0x45')](_0x5ba791),_0x58cae4),_0x1f82d4[_0x5ace('0x29')](_0x15a097,_0x5ba791,0x0);for(const _0x54333f of Array['from'](_0x33ac88['getChildren']()))_0x1f82d4[_0x5ace('0x29')](_0x54333f,_0x15a097,_0x5ace('0x70'));_0x37c511=_0x1f82d4['createRangeOn'](_0x15a097),_0x31c25b=_0x1f82d4[_0x5ace('0x60')](_0x58cae4);}const _0x19d11b=Array[_0x5ace('0x95')](_0x33ac88['getAttributes']())[_0x5ace('0x6d')](([_0x3b40bf])=>le[_0x5ace('0xc')](_0x3b40bf));_0x2b374a[_0x5ace('0xa4')][_0x5ace('0x24')]({'element':_0x5ba791,'attributes':_0x19d11b['length']?Object['fromEntries'](_0x19d11b):null}),_0x37c511&&_0x2b374a[_0x5ace('0x36')][_0x5ace('0x24')](_0x37c511),_0x31c25b&&_0x2b374a[_0x5ace('0x7f')][_0x5ace('0x24')](_0x31c25b);},{'priority':'high'}),_0x100933['on'](_0x5ace('0x6b'),(_0x3dcf95,_0x2959bb)=>{const [_0x25acb6,_0x3089b9={}]=_0x2959bb;if(!_0x2b374a)return;const _0x19ddeb=_0x3089b9['at']||0x0,_0x24e92d=_0x3089b9[_0x5ace('0x16')]||0x1;_0x2b374a['columnInsertionIndexes']=new Array(_0x24e92d)[_0x5ace('0x1f')](_0x19ddeb)['map']((_0x40139c,_0x37d4b8)=>_0x40139c+_0x37d4b8);for(const {cell:_0x2d49e0}of _0x100933[_0x5ace('0x4d')](_0x25acb6,{'startColumn':_0x19ddeb,'endColumn':_0x19ddeb+_0x24e92d-0x1}))_0x2b374a[_0x5ace('0x30')][_0x5ace('0x24')](_0x56bf5c[_0x5ace('0xa')]['createRangeOn'](_0x2d49e0));},{'priority':_0x5ace('0x9b')}),_0x100933['on'](_0x5ace('0x31'),(_0x389b5e,_0xd5ed5f)=>{const [_0x1427d4,_0x45a089={}]=_0xd5ed5f;if(!_0x2b374a)return;const _0x3cc8b5=_0x45a089['at']||0x0,_0x195515=_0x45a089['rows']||0x1;_0x2b374a['rowInsertionIndexes']=new Array(_0x195515)[_0x5ace('0x1f')](_0x3cc8b5)['map']((_0x475610,_0x143c44)=>_0x475610+_0x143c44);for(const {cell:_0x2fa19a}of _0x100933[_0x5ace('0x4d')](_0x1427d4,{'startRow':_0x3cc8b5,'endRow':_0x3cc8b5+_0x195515-0x1}))_0x2b374a['rowInsertionRanges'][_0x5ace('0x24')](_0x56bf5c[_0x5ace('0xa')]['createRangeOn'](_0x2fa19a));},{'priority':_0x5ace('0x9b')}),_0x590b6f[_0x5ace('0x21')][_0x5ace('0x12')](_0x77748b=>{if(_0x77748b[_0x5ace('0x61')]&&_0x77748b[_0x5ace('0x61')][_0x5ace('0x4a')]('tablePaste'))return _0x77748b['previous']?{}:{'type':'insertion','content':_0x5eee4d(_0x56bf5c['locale'],'*Replace\x20table\x20cells*')};});const _0x5d07d1=()=>{};for(const _0x10e81c of[_0x5ace('0x2d'),_0x5ace('0x6a'),_0x5ace('0x9e'),_0x5ace('0x3a')])_0x590b6f[_0x5ace('0x59')][_0x5ace('0x15')](_0x5ace('0x66'),_0x10e81c,_0x5ace('0x75'),_0x5d07d1),_0x590b6f['_suggestionFactory'][_0x5ace('0x15')](_0x5ace('0x22'),_0x10e81c,_0x5ace('0x75'),_0x5d07d1);_0x590b6f['_suggestionFactory'][_0x5ace('0x15')](_0x5ace('0x13'),_0x5ace('0x3a'),_0x5ace('0xe'),_0x5d07d1),_0x590b6f[_0x5ace('0x59')]['registerCustomCallback']('formatBlock',_0x5ace('0x3a'),_0x5ace('0x8e'),(_0x50e99d,_0x583838,_0x1c19f1)=>{const _0x44b4b4=_0x50e99d['map'](_0x3b8c8f=>_0x3b8c8f[_0x5ace('0x19')]())[_0x5ace('0x6d')](_0x2f2df5=>_0x2f2df5),_0x2971cd=new Map(_0x44b4b4['map'](_0x905fe2=>[_0x905fe2,null]));if(_0x2b374a)for(const {element:_0x411bed,attributes:_0x3f79f0}of _0x2b374a['cells'])_0x3f79f0&&_0x2971cd[_0x5ace('0x4b')](_0x411bed,_0x3f79f0);else{if(_0x1c19f1&&_0x1c19f1['markerAttributes'])for(const [_0x15f4ea,_0x7685a6]of Object['entries'](_0x1c19f1['markerAttributes'])){const _0x2d4111=_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x9a')][_0x5ace('0x72')](_0x15f4ea),_0xa9d6cf=_0x2d4111?_0x2d4111['getRange']()[_0x5ace('0x19')]():null;_0xa9d6cf&&_0x2971cd[_0x5ace('0x4b')](_0xa9d6cf,_0x7685a6);}}_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x5b')](_0x3d0951=>{for(const [_0x31cb06,_0x46beec]of _0x2971cd)_0x3d0951[_0x5ace('0x28')]({...ae,..._0x46beec},_0x31cb06);});});const _0x44f19d=(_0x361d03,_0x18b7d4)=>{_0x590b6f[_0x5ace('0x59')]['registerCustomCallback'](_0x361d03,_0x5ace('0x2d'),_0x18b7d4,(_0x120e04,_0x1a6dd7,_0x12c48f)=>{_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x5b')](_0x49c02e=>{const _0x557fe8=[];for(const _0x39d45b of _0x120e04){const _0x3ca558=_0x39d45b[_0x5ace('0x67')]['nodeAfter'];_0x3ca558['is']('element',_0x5ace('0x27'))&&_0x557fe8[_0x5ace('0x24')](_0x3ca558);}_0x590b6f[_0x5ace('0x59')]['getSuggestionCallback'](_0x361d03,null,_0x18b7d4)(_0x120e04,_0x1a6dd7,_0x12c48f);for(const _0x22c73b of _0x557fe8)_0x5ace('0xa3')!=_0x22c73b[_0x5ace('0x98')][_0x5ace('0xb')]&&_0x49c02e[_0x5ace('0x3c')](_0x22c73b);});});};_0x44f19d(_0x5ace('0x66'),_0x5ace('0x8e')),_0x44f19d(_0x5ace('0x66'),'discard'),_0x44f19d(_0x5ace('0x22'),_0x5ace('0x8e')),_0x44f19d(_0x5ace('0x22'),'discard'),_0x590b6f['_suggestionFactory'][_0x5ace('0x15')](_0x5ace('0x66'),_0x5ace('0x9e'),_0x5ace('0xe'),_0x391a3a=>{const _0x730775=_0x391a3a[_0x5ace('0x76')](_0x32bf1f=>_0x32bf1f['getContainedElement']()),_0x3dd1dc=_0x730775[0x0][_0x5ace('0x58')](_0x5ace('0x97')),{minRow:_0x3599cd,maxRow:_0x2515a9}=_0x9aa838[_0x5ace('0x92')](_0x730775);_0x100933[_0x5ace('0x9')](_0x3dd1dc,{'at':_0x3599cd,'rows':_0x2515a9-_0x3599cd+0x1});}),_0x590b6f['_suggestionFactory'][_0x5ace('0x15')]('insertion','tablePasteColumn','discard',_0x2f595a=>{const _0x9a0e3b=_0x2f595a['map'](_0x5d1f5c=>_0x5d1f5c[_0x5ace('0x19')]()),_0x14eac1=_0x9a0e3b[0x0]['findAncestor'](_0x5ace('0x97')),{minColumn:_0x4e31fc,maxColumn:_0x2a8487}=_0x9aa838['_getCoordsForCells'](_0x9a0e3b);_0x100933[_0x5ace('0x82')](_0x14eac1,{'at':_0x4e31fc,'columns':_0x2a8487-_0x4e31fc+0x1});});const _0x57c9a0=(_0xcc4fab,_0x2b10d1)=>{if(!_0x2b10d1[_0x5ace('0x61')]||!_0x2b10d1['subType'][_0x5ace('0x4a')](_0x5ace('0x2d')))return;const _0x136cca=_0x2b10d1[_0x5ace('0x5f')][_0x5ace('0x47')],_0x4dd740=_0x590b6f[_0x5ace('0x6')]()['filter'](_0x3413b4=>_0x3413b4[_0x5ace('0x94')]&&_0x3413b4[_0x5ace('0x5f')]&&_0x3413b4[_0x5ace('0x5f')]['tablePasteChainId']==_0x136cca);_0x4dd740[_0x5ace('0x6e')]&&_0x2b10d1[_0x5ace('0x55')]()[_0x5ace('0x6e')]!=_0x4dd740[_0x5ace('0x6e')]&&_0x4dd740[_0x5ace('0x89')]((_0x582af0,_0x583e34)=>(_0x582af0[_0x5ace('0x1d')]=_0x583e34,_0x583e34[_0x5ace('0x14')]=_0x582af0,_0x583e34));};function _0x2ca03a(_0x48fa60,_0x230eb7=!0x0){const {id:_0x42a367}=_0x590b6f[_0x5ace('0x2b')](_0x48fa60[_0x5ace('0x2a')]),_0x5f4268=[_0x5ace('0x23'),_0x5ace('0x4f')],_0x4aa70e=_0x590b6f['activeMarkers'][_0x5ace('0xc')](_0x48fa60[_0x5ace('0x2a')]);return _0x4aa70e&&_0x5f4268['push'](_0x5ace('0x86')),{'classes':_0x5f4268,'attributes':{'data-suggestion':_0x42a367},'priority':_0x4aa70e&&_0x230eb7?0xbc2:0xbb8};}_0x590b6f['on'](_0x5ace('0x51'),_0x57c9a0,{'priority':_0x5ace('0x3d')}),_0x590b6f['on'](_0x5ace('0x54'),_0x57c9a0,{'priority':_0x5ace('0x3d')}),_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x1')][_0x5ace('0x57')](()=>{let _0x23b7c2=!0x1;const _0x431c11=Array[_0x5ace('0x95')](_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x1')]['differ'][_0x5ace('0x4')]());for(const {name:_0x493c42,data:_0x795655}of _0x431c11){const {group:_0x358da6,type:_0x5b3afd,id:_0x543ec3}=_0x590b6f[_0x5ace('0x2b')](_0x493c42);if(_0x5ace('0x8a')!=_0x358da6||_0x5ace('0x22')!=_0x5b3afd||_0x795655['oldRange'])continue;if(!_0x590b6f[_0x5ace('0x3e')](_0x543ec3))continue;const _0x431f49=_0x590b6f[_0x5ace('0x80')](_0x543ec3)[_0x5ace('0xf')](),_0x1ef77b=_0x56bf5c[_0x5ace('0x56')][_0x5ace('0x72')](_0x5ace('0x2'))['me'];for(const _0x3a7bcb of _0x590b6f[_0x5ace('0x6')]()){if(!_0x3a7bcb[_0x5ace('0x94')]||_0x3a7bcb[_0x5ace('0x85')]!=_0x1ef77b)continue;if(_0x5ace('0x13')!=_0x3a7bcb[_0x5ace('0x18')]||_0x5ace('0x3a')!=_0x3a7bcb['subType'])continue;if(_0x3a7bcb[_0x5ace('0xf')]()[_0x5ace('0x32')](_0x16a7bc=>_0x431f49[_0x5ace('0x7d')](_0x59462a=>_0x59462a[_0x5ace('0x26')](_0x16a7bc,!0x0))))for(const _0x25176c of _0x3a7bcb[_0x5ace('0x55')]())_0x25176c[_0x5ace('0x94')]&&(_0x25176c[_0x5ace('0xe')](),_0x23b7c2=!0x0);}}return _0x23b7c2;}),_0x56bf5c['model'][_0x5ace('0x1')][_0x5ace('0x57')](_0x333fec=>{const _0x360d2b=_0x56bf5c[_0x5ace('0x93')]['get'](_0x5ace('0x3'));if(!_0x360d2b||!_0x360d2b[_0x5ace('0x90')][_0x5ace('0x65')](_0x333fec[_0x5ace('0x37')]))return!0x1;let _0x39fc20=!0x1;const _0x14ba8d=_0x56bf5c[_0x5ace('0x56')][_0x5ace('0x72')]('Users')['me'],_0x16be09=_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x1')][_0x5ace('0x6c')][_0x5ace('0x71')](),_0x150f02=Array[_0x5ace('0x95')](_0x56bf5c[_0x5ace('0xa')]['document'][_0x5ace('0x6c')][_0x5ace('0x4')]())[_0x5ace('0x6d')](({name:_0x283fb8,data:_0xaddd7c})=>{const {group:_0x4f7ee1,subType:_0x1ffb13,authorId:_0x47514d}=_0x590b6f['_splitMarkerName'](_0x283fb8);return _0x5ace('0x8a')==_0x4f7ee1&&'tablePaste'==_0x1ffb13&&_0x47514d==_0x14ba8d['id']&&!_0xaddd7c[_0x5ace('0xa1')];});for(const _0xac9bf9 of _0x16be09){if(_0x5ace('0x29')!=_0xac9bf9[_0x5ace('0x18')]||_0x5ace('0x27')!=_0xac9bf9[_0x5ace('0x33')]||0x1!=_0xac9bf9[_0x5ace('0x6e')])continue;const _0x25c477=_0x333fec[_0x5ace('0xd')](_0xac9bf9['position'],_0xac9bf9[_0x5ace('0x96')]['getShiftedBy'](0x1));if(!_0x150f02[_0x5ace('0x44')](({data:_0x1f6569})=>_0x1f6569[_0x5ace('0x3b')][_0x5ace('0x68')](_0x25c477)))for(const {name:_0x50c9bb,data:_0x4e14a0}of _0x150f02)if(_0x25c477['containsRange'](_0x4e14a0['newRange'])){_0x333fec[_0x5ace('0x2f')](_0x50c9bb,{'range':_0x25c477}),_0x39fc20=!0x0;break;}}return _0x39fc20;}),_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x1')][_0x5ace('0x57')](_0x18da4d=>{let _0x2d0d1f=!0x1;const _0x8ec674=_0x56bf5c[_0x5ace('0x56')]['get']('Users')['me'],_0x5ddc3d=_0x590b6f[_0x5ace('0x6')]()[_0x5ace('0x6d')](_0x1864b3=>_0x1864b3[_0x5ace('0x94')]&&_0x1864b3[_0x5ace('0x85')]==_0x8ec674),_0x30b92d=new Set(),_0x3786b7=new Set();for(const _0x3c743f of _0x5ddc3d)if('tablePaste'==_0x3c743f[_0x5ace('0x61')])for(const _0x2b0f31 of _0x3c743f['getMarkers']()){const _0x1bd04a=_0x2b0f31[_0x5ace('0x41')]()[_0x5ace('0x19')]();if(_0x1bd04a){if(_0x1bd04a['is'](_0x5ace('0x74'),'tableCellSuggestion')&&ce(_0x1bd04a)){_0x3c743f['removeMarker'](_0x2b0f31[_0x5ace('0x33')]),_0x30b92d[_0x5ace('0x87')](_0x1bd04a),_0x2d0d1f=!0x0;const _0x763b7c=_0x1bd04a[_0x5ace('0x0')],_0x41f730=_0x1bd04a[_0x5ace('0x99')],_0x38896c=_0x763b7c&&_0x763b7c['is'](_0x5ace('0x74'),'tableCellSuggestion'),_0x165720=_0x41f730&&_0x41f730['is']('element',_0x5ace('0x27'));_0x38896c&&!_0x30b92d[_0x5ace('0x65')](_0x763b7c)&&_0x3786b7[_0x5ace('0x87')](_0x763b7c),_0x165720&&!_0x30b92d[_0x5ace('0x65')](_0x41f730)&&_0x3786b7[_0x5ace('0x87')](_0x41f730);}else _0x1bd04a['is'](_0x5ace('0x74'),_0x5ace('0x1c'))&&_0x1bd04a[_0x5ace('0x38')]&&(_0x3c743f[_0x5ace('0x5d')](_0x2b0f31[_0x5ace('0x33')]),_0x2d0d1f=!0x0);}}else{if(_0x5ace('0x3a')==_0x3c743f['subType']){if(!_0x3c743f[_0x5ace('0x5f')]||!_0x3c743f[_0x5ace('0x5f')]['tablePasteChainId'])continue;const _0x4c6349=_0x3c743f[_0x5ace('0x5f')][_0x5ace('0x3f')];if(_0x4c6349&&Object[_0x5ace('0x62')](_0x4c6349)['length'])continue;const _0x2ea779=_0x3c743f[_0x5ace('0x5f')]['tablePasteChainId'];let _0x483e61=!0x0,_0x407aa3=!0x0;for(const _0x1d3000 of _0x5ddc3d)if(_0x1d3000['subType']&&_0x1d3000[_0x5ace('0x61')][_0x5ace('0x4a')]('tablePaste')){if(!_0x1d3000[_0x5ace('0x5f')][_0x5ace('0x47')]){_0x407aa3=!0x1;break;}if(_0x1d3000['id']!=_0x3c743f['id']&&_0x1d3000[_0x5ace('0x5f')]['tablePasteChainId']==_0x2ea779){_0x483e61=!0x1;break;}}_0x407aa3&&_0x483e61&&(_0x3c743f[_0x5ace('0x5a')](),_0x2d0d1f=!0x0);}}for(const _0x5d2f02 of _0x30b92d)_0x18da4d['remove'](_0x5d2f02);for(const _0x411713 of _0x3786b7)_0x18da4d[_0x5ace('0x3c')](_0x411713);return _0x2d0d1f;}),_0x56bf5c['conversion'][_0x5ace('0x25')](_0x5ace('0x81'))[_0x5ace('0x1b')]({'model':_0x5ace('0x4e'),'view':(_0x9c979a,_0x905464)=>_0x2ca03a(_0x9c979a),'converterPriority':'high'}),_0x56bf5c[_0x5ace('0xa0')][_0x5ace('0x25')](_0x5ace('0x42'))['markerToHighlight']({'model':_0x5ace('0x4e'),'view':(_0x36ac2e,_0x97f7c1)=>_0x97f7c1[_0x5ace('0x73')][_0x5ace('0x69')]?_0x2ca03a(_0x36ac2e,!0x1):null,'converterPriority':_0x5ace('0x3d')});const _0x3fb369=_0x56bf5c[_0x5ace('0x8')][_0x5ace('0x5e')];this[_0x5ace('0x40')](_0x3fb369[_0x5ace('0x1')],_0x5ace('0x43'),(_0x51dfef,_0x575b78)=>{const _0x4299f4=[];for(const _0xe3a1b1 of _0x3fb369['createRangeIn'](_0x575b78['content'])['getItems']())_0xe3a1b1['is'](_0x5ace('0x74'),_0x5ace('0x17'))&&_0x4299f4[_0x5ace('0x24')](_0xe3a1b1);_0x3fb369['change'](_0x4ba4e7=>{for(const _0x5695f4 of _0x4299f4)_0x4ba4e7[_0x5ace('0x2e')](_0x4ba4e7[_0x5ace('0x45')](_0x5695f4),_0x4ba4e7[_0x5ace('0x77')](_0x5695f4)),_0x4ba4e7['remove'](_0x5695f4);});});}}function ce(_0x29286c){if(_0x29286c['isEmpty'])return!0x0;const _0x15599c=_0x29286c[_0x5ace('0x7')](0x0);return _0x15599c['is'](_0x5ace('0x74'),_0x5ace('0x1c'))&&_0x15599c['isEmpty'];}function fe(_0x2731af,_0x47555c={},_0x229d1f){for(const {isAnchor:_0x72d50c,cellHeight:_0x13bcbb,cellWidth:_0x137c3b}of _0x229d1f[_0x5ace('0x4d')](_0x2731af,{'includeAllSlots':!0x0,..._0x47555c}))if(!_0x72d50c||0x1!=_0x13bcbb||0x1!=_0x137c3b)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55a4=['format','handleResizeTableWidthCommand','resizeTableWidth','tableWidth','_descriptionFactory','_suggestionFactory','getSuggestionCallback','accept','has','registerDescriptionCallback','enableCommand','discard','*Format:*\x20resize\x20table','editor','subType','getAttribute','plugins','bind','table','getSelectedElement','formatGroupId','get','TrackChangesEditing','getColumnGroupElement','markBlockFormat','TableColumnResizeEditing','registerCustomCallback','handleSuggestionDescription','resizeColumnWidths','afterInit','getSuggestions','Users','model','locale','formatBlock','resizeTable','author'];(function(_0x4a28dc,_0x55a44e){const _0x281509=function(_0x4eee30){while(--_0x4eee30){_0x4a28dc['push'](_0x4a28dc['shift']());}};_0x281509(++_0x55a44e);}(_0x55a4,0x19b));const _0x2815=function(_0x4a28dc,_0x55a44e){_0x4a28dc=_0x4a28dc-0x0;let _0x281509=_0x55a4[_0x4a28dc];return _0x281509;};import{Plugin as _0x3407b6}from'ckeditor5/src/core';import{getTranslation as _0x5e0625}from'../utils/common-translations';export default class wt extends _0x3407b6{[_0x2815('0x19')](){if(!this[_0x2815('0x9')][_0x2815('0xc')][_0x2815('0x4')](_0x2815('0x15')))return;const _0x4c3d5a=this['editor']['plugins'][_0x2815('0x11')]('TrackChangesEditing');_0x4c3d5a[_0x2815('0x6')](_0x2815('0x23'),this[_0x2815('0x22')][_0x2815('0xd')](this)),_0x4c3d5a['enableCommand'](_0x2815('0x18'),this[_0x2815('0x22')]['bind'](this)),_0x4c3d5a[_0x2815('0x1')][_0x2815('0x16')](_0x2815('0x1e'),'resizeTable',_0x2815('0x3'),_0x4c3d5a[_0x2815('0x1')][_0x2815('0x2')](_0x2815('0x1e'),null,_0x2815('0x7'))),_0x4c3d5a[_0x2815('0x1')][_0x2815('0x16')](_0x2815('0x1e'),_0x2815('0x1f'),_0x2815('0x7'),_0x4c3d5a[_0x2815('0x1')][_0x2815('0x2')](_0x2815('0x1e'),null,_0x2815('0x3'))),_0x4c3d5a[_0x2815('0x0')][_0x2815('0x5')](this[_0x2815('0x17')][_0x2815('0xd')](this));}[_0x2815('0x22')](_0x121825,_0x132806){const _0x2277e7=this['editor'][_0x2815('0xc')]['get'](_0x2815('0x12')),_0x212a7a=this[_0x2815('0x9')][_0x2815('0xc')][_0x2815('0x11')]('TableColumnResizeEditing'),_0x169d8f=_0x132806[_0x2815('0xe')]||this[_0x2815('0x9')]['model']['document']['selection'][_0x2815('0xf')]();this[_0x2815('0x9')][_0x2815('0x1c')]['change'](()=>{const _0x165302=_0x212a7a[_0x2815('0x13')](_0x169d8f);let _0x1d8eda=_0x165302?_0x212a7a['getTableColumnsWidths'](_0x165302):null,_0x4e4726=_0x169d8f[_0x2815('0xb')](_0x2815('0x24'))||null;const _0x4dda3b=_0x132806['tableWidth']||_0x4e4726,_0x4a1928=_0x132806['columnWidths']||_0x1d8eda,_0x5d106=this[_0x2815('0x9')][_0x2815('0xc')]['get'](_0x2815('0x1b'))['me'];for(const _0x135c72 of _0x2277e7[_0x2815('0x1a')]()){const _0x4f7ada=_0x135c72['getContainedElement']();if(_0x2815('0x1f')===_0x135c72[_0x2815('0xa')]&&_0x4f7ada===_0x169d8f){_0x135c72[_0x2815('0x20')]!==_0x5d106&&_0x135c72[_0x2815('0x7')]();const _0x1f661b=_0x135c72['data']['commandParams'];_0x4e4726=_0x1f661b[0x0][_0x2815('0x24')],_0x1d8eda=_0x1f661b[0x0]['columnWidths'];break;}}_0x121825({'table':_0x169d8f,'tableWidth':_0x4dda3b,'columnWidths':_0x4a1928}),_0x2277e7[_0x2815('0x14')](_0x169d8f,{'commandName':_0x2815('0x23'),'commandParams':[{'tableWidth':_0x4e4726,'columnWidths':_0x1d8eda}],'formatGroupId':_0x2815('0x1f')},[],_0x2815('0x1f'));});}[_0x2815('0x17')](_0x9d2241){const {data:_0x444690}=_0x9d2241;if(_0x444690&&'resizeTable'===_0x444690[_0x2815('0x10')]){const _0x356905=_0x2815('0x8');return{'type':_0x2815('0x21'),'content':_0x5e0625(this[_0x2815('0x9')][_0x2815('0x1d')],_0x356905)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34d9=['markerName','setTableColumnHeader','registerCustomCallback','parent','_descriptionFactory','TableEditing','_splitMarkerName','value','createRange','removeMarker:suggestion','FORMAT_HEADER_COLUMN','createPositionBefore','mapper','document','removeClass','setTableRowHeader','headingColumns','showSuggestionHighlights','editing','isBefore','findAncestor','writer','table','change','createTableWalker','options','getSuggestion','commandName','cell','getAttribute','requires','*Format:*\x20%0','unbindElementFromMarkerName','TableUtils','forceValue','index','last','createPositionAfter','markerRange','getColumnIndexes','commands','item','plugins','childCount','model','start','data','highest','markerNameToElements','accept','getChild','getSelectionAffectedTableCells','_suggestionFactory','includes','ck-suggestion-marker--active','getCellLocation','end','formatBlock','format','enableCommand','name','first','get','selection','registerDescriptionCallback','downcastDispatcher','TrackChangesEditing','FORMAT_REGULAR_COLUMN','removeAttribute','stop','toViewElement','FORMAT_REGULAR_ROW','getRowIndexes','addClass','data-suggestion','afterInit','addMarker:suggestion','editor'];(function(_0x2429bb,_0x34d985){const _0x9f1ff9=function(_0x4ad509){while(--_0x4ad509){_0x2429bb['push'](_0x2429bb['shift']());}};_0x9f1ff9(++_0x34d985);}(_0x34d9,0xfc));const _0x9f1f=function(_0x2429bb,_0x34d985){_0x2429bb=_0x2429bb-0x0;let _0x9f1ff9=_0x34d9[_0x2429bb];return _0x9f1ff9;};import{Plugin as _0x3564b4}from'ckeditor5/src/core';import _0x1f4cdd from'./table';import{getTranslation as _0x2fdb95}from'../utils/common-translations';export default class pt extends _0x3564b4{static get[_0x9f1f('0xc')](){return[_0x1f4cdd];}[_0x9f1f('0x39')](){const _0x16c8ce=this[_0x9f1f('0x3b')];if(!_0x16c8ce[_0x9f1f('0x18')]['has'](_0x9f1f('0x41')))return;const _0x481793=_0x16c8ce['locale'],_0x7f68e5=_0x16c8ce[_0x9f1f('0x18')][_0x9f1f('0x2c')](_0x9f1f('0x30')),_0x3da7a4=_0x16c8ce[_0x9f1f('0x18')]['get'](_0x9f1f('0xf')),_0x271e2e=_0x16c8ce[_0x9f1f('0x18')]['get'](_0x1f4cdd);function _0x32a98e({showActiveMarker:_0x4ce543=!0x0,setDataAttribute:_0x303265=!0x0}={}){return(_0x5a9276,_0x4e1279,_0x4ab0f2)=>{const {type:_0x221839,id:_0x37898e}=_0x7f68e5['_splitMarkerName'](_0x4e1279[_0x9f1f('0x3c')]),_0x4ac166=_0x7f68e5[_0x9f1f('0x8')](_0x37898e);if(!_0x4ac166['data']||'setTableColumnHeader'!=_0x4ac166['data']['commandName'])return;if(_0x4e1279[_0x9f1f('0x17')])return void _0x5a9276[_0x9f1f('0x33')]();if(!_0x4ab0f2['consumable']['consume'](_0x4e1279['markerRange'],_0x5a9276[_0x9f1f('0x2a')]))return;const _0x5cfccf=_0x4e1279[_0x9f1f('0x14')][_0x9f1f('0x1b')]['nodeAfter'],_0x2aa633=_0x4e1279[_0x9f1f('0x14')][_0x9f1f('0x26')]['nodeBefore'],_0x37d91a=_0x5cfccf[_0x9f1f('0x3f')][_0x9f1f('0x3f')],{column:_0x24bae5}=_0x3da7a4[_0x9f1f('0x25')](_0x5cfccf),{column:_0x1bad58}=_0x3da7a4[_0x9f1f('0x25')](_0x2aa633);for(let _0x521b78=_0x24bae5;_0x521b78<=_0x1bad58;_0x521b78++){const _0x5ce69d=_0x3da7a4[_0x9f1f('0x6')](_0x37d91a,{'column':_0x521b78,'includeAllSlots':!0x1});for(const _0x412ab6 of _0x5ce69d){const _0x3938fe=_0x412ab6[_0x9f1f('0xa')],_0x4e4080=_0x4ab0f2['mapper'][_0x9f1f('0x34')](_0x3938fe);_0x4ab0f2['writer'][_0x9f1f('0x37')]('ck-suggestion-marker-'+_0x221839,_0x4e4080),_0x303265&&_0x4ab0f2[_0x9f1f('0x3')]['setAttribute'](_0x9f1f('0x38'),_0x37898e,_0x4e4080),_0x4ab0f2[_0x9f1f('0x48')]['bindElementToMarker'](_0x4e4080,_0x4e1279['markerName']),_0x4ce543&&(_0x7f68e5['activeMarkers'][_0x9f1f('0x23')](_0x4e1279['markerName'])?_0x4ab0f2[_0x9f1f('0x3')]['addClass'](_0x9f1f('0x24'),_0x4e4080):_0x4ab0f2[_0x9f1f('0x3')]['removeClass'](_0x9f1f('0x24'),_0x4e4080));}}};}_0x7f68e5[_0x9f1f('0x29')]('setTableRowHeader',(_0x1cb2e9,_0x10b5c1)=>{const _0x1c2723=_0x3da7a4[_0x9f1f('0x21')](_0x16c8ce[_0x9f1f('0x1a')][_0x9f1f('0x49')][_0x9f1f('0x2d')]),_0x1b2fbb=_0x3da7a4[_0x9f1f('0x36')](_0x1c2723),_0x3716ba=_0x1c2723[0x0]['findAncestor']('table'),_0x301fe3=_0x3716ba[_0x9f1f('0xb')]('headingRows')||0x0,_0x11dd04=_0x10b5c1&&null!==_0x10b5c1[_0x9f1f('0x10')]?_0x10b5c1['forceValue']:!_0x16c8ce['commands'][_0x9f1f('0x2c')](_0x9f1f('0x4b'))[_0x9f1f('0x43')],_0x7f9c93=_0x11dd04?_0x1b2fbb[_0x9f1f('0x12')]:_0x1b2fbb[_0x9f1f('0x2b')],_0x6699e4=_0x3716ba[_0x9f1f('0x20')](_0x7f9c93);let _0x3c25d2;if(_0x11dd04){const _0x5c5553=_0x3716ba[_0x9f1f('0x20')](_0x301fe3);if(_0x6699e4[_0x9f1f('0x11')]<_0x5c5553['index'])return;_0x3c25d2=_0x16c8ce['model'][_0x9f1f('0x44')](_0x16c8ce[_0x9f1f('0x1a')][_0x9f1f('0x47')](_0x5c5553['getChild'](0x0)),_0x16c8ce['model'][_0x9f1f('0x13')](_0x6699e4[_0x9f1f('0x20')](_0x6699e4[_0x9f1f('0x19')]-0x1)));}else{const _0x586833=_0x3716ba['getChild'](_0x301fe3-0x1);if(!_0x586833)return;_0x3c25d2=_0x16c8ce[_0x9f1f('0x1a')][_0x9f1f('0x44')](_0x16c8ce[_0x9f1f('0x1a')][_0x9f1f('0x47')](_0x6699e4[_0x9f1f('0x20')](0x0)),_0x16c8ce[_0x9f1f('0x1a')][_0x9f1f('0x13')](_0x586833[_0x9f1f('0x20')](_0x586833[_0x9f1f('0x19')]-0x1)));}_0x16c8ce[_0x9f1f('0x1a')][_0x9f1f('0x5')](()=>{_0x7f68e5['markBlockFormat'](_0x3c25d2,{'commandName':_0x9f1f('0x4b'),'commandParams':[{'forceValue':_0x11dd04}]},[],_0x9f1f('0x4b'));});}),_0x7f68e5[_0x9f1f('0x29')](_0x9f1f('0x3d'),(_0x1407f3,_0x13395d)=>{const _0x248956=_0x16c8ce[_0x9f1f('0x18')]['get'](_0x9f1f('0xf')),_0x39925d=_0x248956[_0x9f1f('0x21')](_0x16c8ce[_0x9f1f('0x1a')][_0x9f1f('0x49')][_0x9f1f('0x2d')]),_0x3ebc65=_0x248956[_0x9f1f('0x15')](_0x39925d),_0xaf7745=_0x39925d[0x0][_0x9f1f('0x2')](_0x9f1f('0x4')),_0x211a3f=_0xaf7745[_0x9f1f('0xb')](_0x9f1f('0x4c'))||0x0,_0x4156df=_0x13395d&&null!==_0x13395d[_0x9f1f('0x10')]?_0x13395d['forceValue']:!_0x16c8ce[_0x9f1f('0x16')]['get'](_0x9f1f('0x3d'))[_0x9f1f('0x43')];let _0x1b1529;const _0x42056f=_0xaf7745[_0x9f1f('0x20')](0x0),_0x5be901=_0x4156df?_0x3ebc65['last']:_0x3ebc65[_0x9f1f('0x2b')],_0x4ea8cc=_0x248956[_0x9f1f('0x6')](_0xaf7745,{'startRow':0x0,'column':_0x5be901,'includeAllSlots':!0x1}),_0x220f63=Array['from'](_0x4ea8cc)[0x0][_0x9f1f('0xa')];if(_0x4156df){const _0x20eff7=_0x42056f[_0x9f1f('0x20')](_0x211a3f);if(_0x220f63[_0x9f1f('0x1')](_0x20eff7))return;_0x1b1529=_0x16c8ce['model'][_0x9f1f('0x44')](_0x16c8ce[_0x9f1f('0x1a')][_0x9f1f('0x47')](_0x20eff7),_0x16c8ce['model'][_0x9f1f('0x13')](_0x220f63));}else{const _0x41486b=_0x42056f[_0x9f1f('0x20')](_0x211a3f-0x1);if(!_0x41486b)return;_0x1b1529=_0x16c8ce['model'][_0x9f1f('0x44')](_0x16c8ce[_0x9f1f('0x1a')][_0x9f1f('0x47')](_0x220f63),_0x16c8ce[_0x9f1f('0x1a')][_0x9f1f('0x13')](_0x41486b));}_0x16c8ce[_0x9f1f('0x1a')][_0x9f1f('0x5')](()=>{_0x7f68e5['markBlockFormat'](_0x1b1529,{'commandName':_0x9f1f('0x3d'),'commandParams':[{'forceValue':_0x4156df}]},[],_0x9f1f('0x3d'));});}),_0x16c8ce[_0x9f1f('0x0')][_0x9f1f('0x2f')]['on'](_0x9f1f('0x3a'),_0x32a98e(),{'priority':_0x9f1f('0x1d')}),_0x16c8ce['data'][_0x9f1f('0x2f')]['on'](_0x9f1f('0x3a'),(_0x575591,_0x359120,_0x17a80f)=>{_0x17a80f[_0x9f1f('0x7')][_0x9f1f('0x4d')]&&_0x32a98e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x575591,_0x359120,_0x17a80f);},{'priority':'highest'}),_0x16c8ce['editing'][_0x9f1f('0x2f')]['on'](_0x9f1f('0x45'),(_0x35141b,_0x3b7029,_0x4efbd2)=>{const {type:_0x4514e2,id:_0x508950}=_0x7f68e5[_0x9f1f('0x42')](_0x3b7029[_0x9f1f('0x3c')]),_0x2f54c0=_0x7f68e5[_0x9f1f('0x8')](_0x508950);if(!_0x2f54c0[_0x9f1f('0x1c')]||_0x9f1f('0x3d')!=_0x2f54c0[_0x9f1f('0x1c')][_0x9f1f('0x9')])return;const _0x37a1df=_0x4efbd2[_0x9f1f('0x48')][_0x9f1f('0x1e')](_0x3b7029[_0x9f1f('0x3c')]);if(_0x37a1df)for(const _0x1452a3 of _0x37a1df)_0x4efbd2[_0x9f1f('0x3')][_0x9f1f('0x4a')]('ck-suggestion-marker-'+_0x4514e2,_0x1452a3),_0x4efbd2[_0x9f1f('0x3')]['removeClass']('ck-suggestion-marker--active',_0x1452a3),_0x4efbd2['writer'][_0x9f1f('0x32')](_0x9f1f('0x38'),_0x1452a3),_0x4efbd2[_0x9f1f('0x48')][_0x9f1f('0xe')](_0x1452a3,_0x3b7029[_0x9f1f('0x3c')]);},{'priority':'highest'}),_0x7f68e5[_0x9f1f('0x40')][_0x9f1f('0x2e')](_0x30e273=>{const {data:_0x5e67b8}=_0x30e273;if(_0x5e67b8){if('setTableRowHeader'==_0x5e67b8['commandName']){const _0x2ff2ac=_0x5e67b8['commandParams'][0x0][_0x9f1f('0x10')];return _0x27ede0(_0x2fdb95(_0x481793,_0x2ff2ac?'FORMAT_HEADER_ROW':_0x9f1f('0x35')));}if(_0x9f1f('0x3d')==_0x5e67b8[_0x9f1f('0x9')]){const _0x1f9ae7=_0x5e67b8['commandParams'][0x0][_0x9f1f('0x10')];return _0x27ede0(_0x2fdb95(_0x481793,_0x1f9ae7?_0x9f1f('0x46'):_0x9f1f('0x31')));}}function _0x27ede0(_0x1c0456){return{'type':_0x9f1f('0x28'),'content':_0x2fdb95(_0x481793,_0x9f1f('0xd'),_0x1c0456)};}});const _0x25d36a=_0x271e2e['_acceptFormatSuggestionCallbackFactory']();_0x7f68e5['_suggestionFactory'][_0x9f1f('0x3e')](_0x9f1f('0x27'),_0x9f1f('0x4b'),'accept',_0x25d36a),_0x7f68e5[_0x9f1f('0x22')][_0x9f1f('0x3e')](_0x9f1f('0x27'),_0x9f1f('0x3d'),_0x9f1f('0x1f'),_0x25d36a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x593e=['markMultiRangeBlockFormat','trackChanges','getCellLocation','mergeTableCellDown','getSelectionAffectedTableCells','low','setSelection','_tablePostFixingSubtypes','forceDefaultExecution','selection','commands','isInContent','registerCustomCallback','add','*Split\x20cell:*\x20horizontally','mergeTableCellUp','markBlockFormat','deletion','cell','value','TrackChangesEditing','direction','_suggestionFactory','createRangeOn','_descriptionFactory','getAncestors','formatBlock','isEnabled','enableCommand','length','rootName','accept','return','from','commandName','afterInit','model','_isForcedDefaultExecutionBlock','root','findAncestor','stop','find','document','createTableWalker','*Merge\x20cells*','subType','splitTableCellVertically','locale','TableUtils','has','format','containsRange','table','type','map','mergeTableCellRight','splitTableCellHorizontally','registerDescriptionCallback','filter','get','highest','size','_acceptFormatSuggestionCallbackFactory','change','tableCell','editor','insertion','horizontally','TableEditing','requires','mergeTableCellLeft','getRanges','_areMergableCells','mergeTableCells','_areSelectedCellsMergable','detach','refresh','execute','getFirstPosition','author','plugins'];(function(_0x2cadad,_0x593e65){const _0x1ce858=function(_0x4b2cbc){while(--_0x4b2cbc){_0x2cadad['push'](_0x2cadad['shift']());}};_0x1ce858(++_0x593e65);}(_0x593e,0x11f));const _0x1ce8=function(_0x2cadad,_0x593e65){_0x2cadad=_0x2cadad-0x0;let _0x1ce858=_0x593e[_0x2cadad];return _0x1ce858;};import{Plugin as _0x41fec8}from'ckeditor5/src/core';import _0x1be3e6 from'./table';import{LiveRange as _0x4bf0e7}from'ckeditor5/src/engine';import{getTranslation as _0x5addeb}from'../utils/common-translations';export default class dt extends _0x41fec8{static get[_0x1ce8('0x19')](){return[_0x1be3e6];}[_0x1ce8('0x48')](){const _0x3c631d=this[_0x1ce8('0x15')],_0x2696c1=_0x3c631d['model'][_0x1ce8('0x4f')][_0x1ce8('0x2e')],_0x15e32e=_0x3c631d[_0x1ce8('0x3')];if(!_0x3c631d[_0x1ce8('0x24')][_0x1ce8('0x5')](_0x1ce8('0x18')))return;const _0x269c82=_0x3c631d[_0x1ce8('0x24')][_0x1ce8('0xf')]('TrackChangesEditing'),_0x4f977c=_0x3c631d[_0x1ce8('0x24')][_0x1ce8('0xf')](_0x1ce8('0x4')),_0x91ff92=_0x3c631d['plugins']['get'](_0x1be3e6);_0x91ff92[_0x1ce8('0x2c')]['push'](_0x1ce8('0x1d')),_0x269c82[_0x1ce8('0x41')](_0x1ce8('0x1d'),()=>{const _0x38f957=_0x4f977c[_0x1ce8('0x29')](_0x3c631d['model'][_0x1ce8('0x4f')][_0x1ce8('0x2e')]);_0x3c631d[_0x1ce8('0x49')][_0x1ce8('0x13')](()=>{_0x269c82[_0x1ce8('0x25')](_0x38f957,{'commandName':_0x1ce8('0x1d'),'commandParams':[]},[],_0x1ce8('0x1d'));});}),_0x3c631d['commands'][_0x1ce8('0xf')](_0x1ce8('0x1d'))['on']('execute',(_0x5650e5,_0x36f520)=>{_0x3c631d[_0x1ce8('0x2f')][_0x1ce8('0xf')](_0x1ce8('0x26'))[_0x1ce8('0x38')]&&(_0x36f520[_0x1ce8('0x42')]>0x0&&_0x36f520[_0x36f520[_0x1ce8('0x42')]-0x1]&&_0x36f520[_0x36f520[_0x1ce8('0x42')]-0x1][_0x1ce8('0x2d')]||_0x269c82[_0x1ce8('0x4a')]||this[_0x1ce8('0x1e')]()||_0x5650e5[_0x1ce8('0x4d')]());},{'priority':_0x1ce8('0x10')});for(const _0x2785b5 of[_0x1ce8('0x34'),_0x1ce8('0xb'),_0x1ce8('0x28'),_0x1ce8('0x1a')]){const _0x2e4526=_0x3c631d[_0x1ce8('0x2f')][_0x1ce8('0xf')](_0x2785b5);_0x269c82[_0x1ce8('0x41')](_0x2785b5,()=>{const _0x195915=_0x3c631d[_0x1ce8('0x49')][_0x1ce8('0x4f')]['selection']['getFirstPosition']()[_0x1ce8('0x3e')]()[_0x1ce8('0x4e')](_0x453d9c=>_0x453d9c['is']('element',_0x1ce8('0x14'))),_0x31b6b8=_0x2e4526[_0x1ce8('0x38')];_0x3c631d['model'][_0x1ce8('0x13')](()=>{_0x269c82[_0x1ce8('0x25')]([_0x195915,_0x31b6b8],{'commandName':_0x1ce8('0x1d'),'commandParams':[]},[],_0x1ce8('0x1d'));});});}for(const _0x44ae12 of[_0x1ce8('0x2'),'splitTableCellHorizontally']){const _0x2b090b=_0x3c631d['commands'][_0x1ce8('0xf')](_0x44ae12);_0x269c82[_0x1ce8('0x41')](_0x44ae12,()=>{const _0x15629e=_0x4f977c[_0x1ce8('0x29')](_0x3c631d[_0x1ce8('0x49')][_0x1ce8('0x4f')]['selection'])[0x0],_0xc7ae2f=_0x15629e[_0x1ce8('0x4c')](_0x1ce8('0x8')),{column:_0x12fda3,row:_0x1d5735}=_0x4f977c[_0x1ce8('0x27')](_0x15629e);let _0x3a3abf=[];if(_0x1ce8('0x17')==_0x2b090b[_0x1ce8('0x3a')]){const _0x1440f9=_0x4f977c[_0x1ce8('0x50')](_0xc7ae2f,{'startRow':_0x1d5735,'endRow':_0x1d5735,'includeAllSlots':!0x0});_0x3a3abf=Array[_0x1ce8('0x46')](_0x1440f9)[_0x1ce8('0xa')](_0x30d3cc=>_0x30d3cc[_0x1ce8('0x37')]);}else{const _0x2c7bc1=_0x4f977c[_0x1ce8('0x50')](_0xc7ae2f,{'column':_0x12fda3,'includeAllSlots':!0x0});_0x3a3abf=Array[_0x1ce8('0x46')](_0x2c7bc1)['map'](_0x751f0a=>_0x751f0a[_0x1ce8('0x37')]);}_0x3c631d[_0x1ce8('0x49')][_0x1ce8('0x13')](_0xf3cbbe=>{_0x269c82[_0x1ce8('0x35')](_0xf3cbbe['createRangeOn'](_0x15629e),{'commandName':_0x44ae12,'commandParams':[]},_0x3a3abf,_0x44ae12);});});}_0x269c82[_0x1ce8('0x3d')][_0x1ce8('0xd')](_0x353b8d=>{const {data:_0x4b654b}=_0x353b8d;if(_0x4b654b)return _0x1ce8('0x1d')==_0x4b654b[_0x1ce8('0x47')]?{'type':_0x1ce8('0x6'),'content':_0x5addeb(_0x15e32e,_0x1ce8('0x0'))}:void 0x0;}),_0x269c82[_0x1ce8('0x3d')]['registerDescriptionCallback'](_0x6a1158=>{const {data:_0xa0ed3e}=_0x6a1158;if(_0xa0ed3e)return'splitTableCellVertically'==_0xa0ed3e[_0x1ce8('0x47')]?{'type':_0x1ce8('0x6'),'content':_0x5addeb(_0x15e32e,'*Split\x20cell:*\x20vertically')}:_0x1ce8('0xc')==_0xa0ed3e['commandName']?{'type':_0x1ce8('0x6'),'content':_0x5addeb(_0x15e32e,_0x1ce8('0x33'))}:void 0x0;});const _0x5e5c12=_0x91ff92[_0x1ce8('0x12')]();for(const _0x589b03 of[_0x1ce8('0x34'),_0x1ce8('0xb'),_0x1ce8('0x28'),_0x1ce8('0x1a')])_0x269c82['_suggestionFactory'][_0x1ce8('0x31')](_0x1ce8('0x3f'),_0x589b03,_0x1ce8('0x44'),_0x5e5c12);for(const _0x11e2ba of[_0x1ce8('0x2'),_0x1ce8('0xc')])_0x269c82[_0x1ce8('0x3b')]['registerCustomCallback'](_0x1ce8('0x3f'),_0x11e2ba,_0x1ce8('0x44'),_0x5e5c12);_0x269c82[_0x1ce8('0x3b')]['registerCustomCallback']('formatBlock','mergeTableCells',_0x1ce8('0x44'),_0x2713d0=>{_0x3c631d[_0x1ce8('0x49')][_0x1ce8('0x13')](_0x573e2d=>{const _0x4c58fd=Array['from'](_0x2696c1[_0x1ce8('0x1b')]())[_0x1ce8('0xa')](_0x596a42=>_0x4bf0e7['fromRange'](_0x596a42));_0x573e2d[_0x1ce8('0x2b')](_0x2713d0),_0x3c631d[_0x1ce8('0x2f')]['get'](_0x1ce8('0x1d'))[_0x1ce8('0x20')](),_0x3c631d[_0x1ce8('0x21')](_0x1ce8('0x1d'),{'forceDefaultExecution':!0x0});const _0x1f233b=_0x4c58fd[_0x1ce8('0xe')](_0x5342bc=>'$graveyard'!=_0x5342bc[_0x1ce8('0x4b')][_0x1ce8('0x43')]);_0x1f233b['length']>0x0&&_0x573e2d[_0x1ce8('0x2b')](_0x1f233b);for(const _0x52f5d8 of _0x4c58fd)_0x52f5d8[_0x1ce8('0x1f')]();});});for(const _0x14427f of[_0x1ce8('0x34'),_0x1ce8('0x28'),_0x1ce8('0x1a'),'mergeTableCellRight']){const _0xe42c34=_0x3c631d[_0x1ce8('0x2f')]['get'](_0x14427f);_0xe42c34['on']('set:isEnabled',(_0x4faa60,_0x5c6faf,_0x1628b0)=>{if(_0x1628b0){const _0x153147=_0x3c631d[_0x1ce8('0x49')][_0x1ce8('0x4f')][_0x1ce8('0x2e')][_0x1ce8('0x22')]()[_0x1ce8('0x3e')]()[_0x1ce8('0x4e')](_0x50b9e2=>_0x50b9e2['is']('element',_0x1ce8('0x14')));this[_0x1ce8('0x1c')](_0xe42c34[_0x1ce8('0x38')],_0x153147)||(_0x4faa60[_0x1ce8('0x45')]=!0x1,_0x4faa60[_0x1ce8('0x4d')]());}},{'priority':_0x1ce8('0x2a')});}}[_0x1ce8('0x1e')](){const _0x181b8c=this['editor'][_0x1ce8('0x2f')]['get'](_0x1ce8('0x1d')),_0x5d9c12=this['editor']['plugins'][_0x1ce8('0xf')](_0x1ce8('0x4'));if(!_0x181b8c[_0x1ce8('0x40')])return!0x1;const _0x11eae5=_0x5d9c12[_0x1ce8('0x29')](this['editor'][_0x1ce8('0x49')][_0x1ce8('0x4f')][_0x1ce8('0x2e')]);for(const _0x2b904a of _0x11eae5)for(const _0x489457 of _0x11eae5)if(_0x2b904a!=_0x489457&&!this[_0x1ce8('0x1c')](_0x2b904a,_0x489457))return!0x1;return!0x0;}[_0x1ce8('0x1c')](_0x328853,_0x258583){const _0x1c50b4=this[_0x1ce8('0x15')]['plugins'][_0x1ce8('0xf')](_0x1ce8('0x39')),_0x3db263=this['editor'][_0x1ce8('0x49')]['createRangeOn'](_0x328853),_0x4037ed=this[_0x1ce8('0x15')][_0x1ce8('0x49')][_0x1ce8('0x3c')](_0x258583),_0x51194a=new Set(),_0x5c750c=new Set();for(const _0x57747b of _0x1c50b4['getSuggestions']())if((_0x1ce8('0x16')==_0x57747b['type']||_0x1ce8('0x36')==_0x57747b[_0x1ce8('0x9')]||_0x1ce8('0x1d')==_0x57747b[_0x1ce8('0x1')])&&_0x57747b[_0x1ce8('0x30')])for(const _0x404085 of _0x57747b[_0x1ce8('0x1b')]())_0x404085[_0x1ce8('0x7')](_0x3db263,!0x0)&&_0x51194a[_0x1ce8('0x32')](_0x57747b['type']+':'+_0x57747b[_0x1ce8('0x23')]['id']),_0x404085[_0x1ce8('0x7')](_0x4037ed,!0x0)&&_0x5c750c[_0x1ce8('0x32')](_0x57747b['type']+':'+_0x57747b[_0x1ce8('0x23')]['id']);if(_0x51194a[_0x1ce8('0x11')]!=_0x5c750c[_0x1ce8('0x11')])return!0x1;for(const _0x3584a5 of _0x51194a)if(!_0x5c750c[_0x1ce8('0x5')](_0x3584a5))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3880=['registerElementLabel','enableCommand','commands','insertTableOfContents','plugins','tableOfContents','ELEMENT_TABLE_OF_CONTENTS','afterInit','get','TrackChangesEditing','_descriptionFactory'];(function(_0x433689,_0x388006){const _0x4297a2=function(_0x1a7c00){while(--_0x1a7c00){_0x433689['push'](_0x433689['shift']());}};_0x4297a2(++_0x388006);}(_0x3880,0x17e));const _0x4297=function(_0x433689,_0x388006){_0x433689=_0x433689-0x0;let _0x4297a2=_0x3880[_0x433689];return _0x4297a2;};import{Plugin as _0x130650}from'ckeditor5/src/core';import{getTranslation as _0x10273a}from'../utils/common-translations';export default class bt extends _0x130650{[_0x4297('0xa')](){const _0x5147fb=this['editor'];if(!_0x5147fb[_0x4297('0x5')][_0x4297('0x0')](_0x4297('0x6')))return;_0x5147fb[_0x4297('0x7')][_0x4297('0x0')](_0x4297('0x1'))[_0x4297('0x4')](_0x4297('0x6'));const _0x34eaab=_0x5147fb['plugins']['get'](_0x4297('0x1')),_0x3c2f02=_0x5147fb['locale'];_0x34eaab[_0x4297('0x2')][_0x4297('0x3')](_0x4297('0x8'),_0x55efb9=>_0x10273a(_0x3c2f02,_0x4297('0x9'),_0x55efb9));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x572e=['TableUtils','tableCellHorizontalAlignment','discard','enableCommand','batch','tableWidth','tableCellVerticalAlignment','has','subType','tableHeight','TableCellPropertiesEditing','registerCustomCallback','_handlePropertyChange','tableCellHeight','tableBorderColor','getSuggestionCallback','document','tableCellProperties','tableBackgroundColor','handleSuggestionDescription','plugins','getSelectionAffectedTableCells','table','getContainedElement','tableCellBackgroundColor','TablePropertiesEditing','*Format:*\x20change\x20table\x20cell\x20properties','_suggestionFactory','locale','data','enqueueChange','removeAttribute','pluginName','change','nodeAfter','handleDiscardAction','tableProperties','getSuggestions','findAncestor','tableCellBorderColor','tableBorderWidth','_getSuggestion','afterInit','get','editor','selection','model','markBlockFormat','tableBorderStyle','commandParams','tableCellPadding','TrackChangesEditing','formatBlock','accept','getFirstPosition','format','tableCellBorderStyle','join','start','tableCellWidth'];(function(_0x43ef6f,_0x572e7d){const _0x123c5e=function(_0x195f41){while(--_0x195f41){_0x43ef6f['push'](_0x43ef6f['shift']());}};_0x123c5e(++_0x572e7d);}(_0x572e,0x181));const _0x123c=function(_0x43ef6f,_0x572e7d){_0x43ef6f=_0x43ef6f-0x0;let _0x123c5e=_0x572e[_0x43ef6f];return _0x123c5e;};import{Plugin as _0x58bfd8}from'ckeditor5/src/core';import{getTranslation as _0x225f4c}from'../utils/common-translations';export default class Ct extends _0x58bfd8{constructor(_0x4b218a){super(_0x4b218a),this['tableProperties']=[_0x123c('0x31'),_0x123c('0x17'),_0x123c('0xf'),'tableAlignment',_0x123c('0x28'),_0x123c('0x2c'),_0x123c('0x35')],this['tableCellProperties']=[_0x123c('0xe'),_0x123c('0x1f'),'tableCellBorderWidth',_0x123c('0x19'),_0x123c('0x22'),_0x123c('0x30'),_0x123c('0x3b'),_0x123c('0x24'),_0x123c('0x29')];}static get[_0x123c('0x7')](){return'TrackChangesTableProperties';}[_0x123c('0x11')](){const _0x4c755d=this[_0x123c('0x13')]['plugins'][_0x123c('0x12')]('TrackChangesEditing');if(this[_0x123c('0x13')][_0x123c('0x37')][_0x123c('0x2a')](_0x123c('0x0'))){for(const _0x1e34a9 of this['tableProperties'])_0x4c755d['enableCommand'](_0x1e34a9,(_0x1fed27,_0x357910)=>{const _0x571918=this[_0x123c('0x13')]['model'][_0x123c('0x33')]['selection'][_0x123c('0x1d')]()[_0x123c('0xd')](_0x123c('0x39'));this['_handlePropertyChange'](_0x1e34a9,[_0x571918],this[_0x123c('0xb')],_0x123c('0xb'),_0x1fed27,_0x357910);});_0x4c755d['_suggestionFactory']['registerCustomCallback'](_0x123c('0x1b'),'tableProperties','accept',_0x4c755d[_0x123c('0x2')][_0x123c('0x32')](_0x123c('0x1b'),null,'discard')),_0x4c755d[_0x123c('0x2')][_0x123c('0x2e')](_0x123c('0x1b'),_0x123c('0xb'),_0x123c('0x25'),(_0x218321,_0x5a2cd6)=>this[_0x123c('0xa')](this[_0x123c('0xb')],_0x218321,_0x5a2cd6)),_0x4c755d[_0x123c('0x2')]['registerCustomCallback'](_0x123c('0x1b'),'tableProperties',_0x123c('0x20'),()=>!0x1);}if(this[_0x123c('0x13')][_0x123c('0x37')][_0x123c('0x2a')](_0x123c('0x2d'))){for(const _0x23d85c of this[_0x123c('0x34')])_0x4c755d[_0x123c('0x26')](_0x23d85c,(_0x1bf309,_0x30bfb7)=>{const _0xcd4751=this['editor']['plugins'][_0x123c('0x12')](_0x123c('0x23'))[_0x123c('0x38')](this[_0x123c('0x13')][_0x123c('0x15')][_0x123c('0x33')][_0x123c('0x14')]);this[_0x123c('0x2f')](_0x23d85c,_0xcd4751,this['tableCellProperties'],_0x123c('0x34'),_0x1bf309,_0x30bfb7);});_0x4c755d['_suggestionFactory'][_0x123c('0x2e')](_0x123c('0x1b'),_0x123c('0x34'),_0x123c('0x1c'),_0x4c755d[_0x123c('0x2')][_0x123c('0x32')](_0x123c('0x1b'),null,_0x123c('0x25'))),_0x4c755d[_0x123c('0x2')][_0x123c('0x2e')](_0x123c('0x1b'),_0x123c('0x34'),_0x123c('0x25'),(_0x220cd7,_0x22ec92)=>this[_0x123c('0xa')](this['tableCellProperties'],_0x220cd7,_0x22ec92)),_0x4c755d[_0x123c('0x2')][_0x123c('0x2e')](_0x123c('0x1b'),_0x123c('0x34'),_0x123c('0x20'),()=>!0x1);}_0x4c755d['_descriptionFactory']['registerDescriptionCallback'](_0x5f2177=>this[_0x123c('0x36')](_0x5f2177));}['_handlePropertyChange'](_0x4bc5a7,_0xfb3000,_0x55b609,_0x4adc3f,_0x7dda35,_0x5ac230){const _0x292f2=this[_0x123c('0x13')]['plugins'][_0x123c('0x12')](_0x123c('0x1a'));this[_0x123c('0x13')][_0x123c('0x15')][_0x123c('0x5')](_0x5ac230[_0x123c('0x27')],()=>{for(const _0x15dcbe of _0xfb3000){if(this[_0x123c('0x10')](_0x15dcbe,_0x4adc3f))_0x7dda35(_0x5ac230);else{const _0x3030c2={};for(const _0x4c4cee of _0x55b609){const _0x599133=_0x15dcbe['getAttribute'](_0x4c4cee);void 0x0!==_0x599133&&(_0x3030c2[_0x4c4cee]=_0x599133);}_0x7dda35(_0x5ac230),_0x292f2[_0x123c('0x16')](_0x15dcbe,{'commandParams':[_0x3030c2]},[],_0x4adc3f);}}});}[_0x123c('0xa')](_0x26279d,_0x5014aa,_0xcfb7bb){const _0x5d55a1=_0x5014aa[0x0][_0x123c('0x21')][_0x123c('0x9')],_0x5db9fc=_0xcfb7bb[_0x123c('0x18')][0x0];this['editor']['model'][_0x123c('0x8')](_0x3db7ab=>{for(const _0x432725 of _0x26279d)void 0x0!==_0x5db9fc[_0x432725]?_0x3db7ab['setAttribute'](_0x432725,_0x5db9fc[_0x432725],_0x5d55a1):_0x3db7ab[_0x123c('0x6')](_0x432725,_0x5d55a1);});}['handleSuggestionDescription'](_0xe4ab96){if(_0xe4ab96[_0x123c('0x4')])switch(_0xe4ab96[_0x123c('0x2b')]){case _0x123c('0xb'):return{'type':_0x123c('0x1e'),'content':_0x225f4c(this[_0x123c('0x13')]['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':_0x123c('0x1e'),'content':_0x225f4c(this['editor'][_0x123c('0x3')],_0x123c('0x1'))};}}[_0x123c('0x10')](_0x18cd07,_0x3928c6){const _0x1d82c2=this[_0x123c('0x13')]['plugins'][_0x123c('0x12')]('TrackChangesEditing');for(const _0x3a5f63 of _0x1d82c2[_0x123c('0xc')]({'skipNotAttached':!0x0})){const _0x2c8cfe=_0x3a5f63[_0x123c('0x3a')]();if(_0x3a5f63[_0x123c('0x2b')]===_0x3928c6&&_0x2c8cfe===_0x18cd07)return _0x3a5f63;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ce9=['enableCommand','Template','TrackChangesEditing','insertTemplate','editor','plugins','has'];(function(_0x21ba7d,_0x2ce9e2){const _0x4c0b30=function(_0x2e3a76){while(--_0x2e3a76){_0x21ba7d['push'](_0x21ba7d['shift']());}};_0x4c0b30(++_0x2ce9e2);}(_0x2ce9,0xf1));const _0x4c0b=function(_0x21ba7d,_0x2ce9e2){_0x21ba7d=_0x21ba7d-0x0;let _0x4c0b30=_0x2ce9[_0x21ba7d];return _0x4c0b30;};import{Plugin as _0x5bf3ed}from'ckeditor5/src/core';export default class yt extends _0x5bf3ed{['afterInit'](){const _0x42930a=this[_0x4c0b('0x1')];_0x42930a[_0x4c0b('0x2')][_0x4c0b('0x3')](_0x4c0b('0x5'))&&_0x42930a[_0x4c0b('0x2')]['get'](_0x4c0b('0x6'))[_0x4c0b('0x4')](_0x4c0b('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2278=['from','end','removeMarker','registerPostFixer','title-content','model','has','element','getChangedMarkers','registerElementLabel','differ','ELEMENT_TITLE','TrackChangesEditing','plugins','_descriptionFactory','newRange','Title','isEqual','get','locale','start','isCollapsed','createRange','forward','updateMarker','afterInit','schema','suggestion'];(function(_0x2f8360,_0x22782f){const _0x366380=function(_0x2b31fe){while(--_0x2b31fe){_0x2f8360['push'](_0x2f8360['shift']());}};_0x366380(++_0x22782f);}(_0x2278,0x12b));const _0x3663=function(_0x2f8360,_0x22782f){_0x2f8360=_0x2f8360-0x0;let _0x366380=_0x2278[_0x2f8360];return _0x366380;};import{Plugin as _0x3b0797}from'ckeditor5/src/core';import{getTranslation as _0x5c8648}from'../utils/common-translations';export default class St extends _0x3b0797{[_0x3663('0x6')](){const _0x35cb86=this['editor'];if(!_0x35cb86[_0x3663('0x16')][_0x3663('0xf')](_0x3663('0x19')))return;const _0xaf54b1=_0x35cb86[_0x3663('0x16')][_0x3663('0x1b')](_0x3663('0x15'));_0xaf54b1[_0x3663('0x17')][_0x3663('0x12')](_0x3663('0xd'),()=>_0x5c8648(_0x35cb86[_0x3663('0x0')],_0x3663('0x14'))),_0x35cb86[_0x3663('0xe')]['document'][_0x3663('0xc')](_0x135225=>{let _0x370431=!0x1;const _0x5a0e77=Array[_0x3663('0x9')](_0x35cb86[_0x3663('0xe')]['document'][_0x3663('0x13')][_0x3663('0x11')]());for(const {name:_0x23ae50,data:_0x11dec9}of _0x5a0e77){const {group:_0x5ebca6}=_0xaf54b1['_splitMarkerName'](_0x23ae50);if(_0x3663('0x8')!==_0x5ebca6||!_0x11dec9[_0x3663('0x18')])continue;const _0x5d7927=_0x11dec9['newRange'],_0x42bbaa=_0x5d7927[_0x3663('0xa')]['nodeBefore'];if(!_0x42bbaa||!_0x42bbaa['is'](_0x3663('0x10'),_0x3663('0xd')))continue;if(!_0x5d7927[_0x3663('0x1')]['isTouching'](_0x5d7927[_0x3663('0xa')]))continue;const _0x3d79a0=_0x35cb86[_0x3663('0xe')][_0x3663('0x7')]['getNearestSelectionRange'](_0x5d7927[_0x3663('0xa')],_0x3663('0x4'));if(_0x3d79a0&&_0x3d79a0[_0x3663('0x2')]){const _0x1f68d7=_0x135225[_0x3663('0x3')](_0x5d7927[_0x3663('0x1')],_0x3d79a0['start']);_0x1f68d7[_0x3663('0x1a')](_0x5d7927)||(_0x135225[_0x3663('0x5')](_0x23ae50,{'range':_0x1f68d7}),_0x370431=!0x0);}_0x370431||(_0x135225[_0x3663('0xb')](_0x23ae50),_0x370431=!0x0);}return _0x370431;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1528=['redo','TrackChangesEditing','afterInit','get','enableCommand','UndoEditing','undo','plugins','editor'];(function(_0x4d5917,_0x15285a){const _0x484296=function(_0x529ae0){while(--_0x529ae0){_0x4d5917['push'](_0x4d5917['shift']());}};_0x484296(++_0x15285a);}(_0x1528,0x1a9));const _0x4842=function(_0x4d5917,_0x15285a){_0x4d5917=_0x4d5917-0x0;let _0x484296=_0x1528[_0x4d5917];return _0x484296;};import{Plugin as _0x4ad19f}from'ckeditor5/src/core';export default class It extends _0x4ad19f{[_0x4842('0x0')](){const _0x4e4871=this[_0x4842('0x6')],_0x2365ae=_0x4e4871[_0x4842('0x5')][_0x4842('0x1')](_0x4842('0x8'));_0x4e4871[_0x4842('0x5')]['has'](_0x4842('0x3'))&&(_0x2365ae[_0x4842('0x2')](_0x4842('0x4')),_0x2365ae['enableCommand'](_0x4842('0x7')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16b7=['elementEnd','mapper','isBlock','isContent','push','hasAttribute','start','writer','getItems','test','listItem','listIndent','nextSibling','getCustomProperty','previousPosition','element','markerRange','TrackChangesEditing','insert','toViewPosition','plugins','span','addClass','name','get','parent','getAttribute','isLimit','model','ck-suggestion-marker-','ck-suggestion-marker--active','type','consumable','toViewElement','markerName','createUIElement'];(function(_0x470b3e,_0x16b7be){const _0x416cdf=function(_0x452d92){while(--_0x452d92){_0x470b3e['push'](_0x470b3e['shift']());}};_0x416cdf(++_0x16b7be);}(_0x16b7,0x18e));const _0x416c=function(_0x470b3e,_0x16b7be){_0x470b3e=_0x470b3e-0x0;let _0x416cdf=_0x16b7[_0x470b3e];return _0x416cdf;};export function getRangesWithAttribute(_0x3fab9b,_0x15a7d7,_0x40b897){const _0x2ab7ca=[];for(const _0x28c5b1 of _0x15a7d7[_0x416c('0x6')]())_0x28c5b1[_0x416c('0x3')](_0x3fab9b)&&_0x2ab7ca[_0x416c('0x2')](_0x40b897['createRangeOn'](_0x28c5b1));return _0x2ab7ca;}export function getElementsAffectedByListItemRename(_0x30912a){const _0x3b5685=[];if(_0x30912a['is'](_0x416c('0xd'),_0x416c('0x8'))){let _0x3b397a=_0x30912a[_0x416c('0xa')];for(;_0x3b397a&&_0x3b397a['is'](_0x416c('0xd'),'listItem')&&_0x3b397a[_0x416c('0x18')](_0x416c('0x9'))>0x0;)_0x3b5685[_0x416c('0x2')](_0x3b397a),_0x3b397a=_0x3b397a[_0x416c('0xa')];}return _0x3b5685;}export function downcastSplitMergeMarker(_0x113971,_0x215af1,{showActiveMarker:_0x17b11c=!0x0}={}){const _0x20d0d4=_0x113971[_0x416c('0x12')][_0x416c('0x16')](_0x416c('0xf'));return(_0x48586d,_0x3a41b4,_0x1516bc)=>{if(!_0x1516bc[_0x416c('0x1e')][_0x416c('0x7')](_0x3a41b4['markerRange'],_0x48586d[_0x416c('0x15')]))return;const _0x245ad0=_0x3a41b4[_0x416c('0xe')]['getWalker'](),_0x523e2=_0x3a41b4['markerRange'][_0x416c('0x4')],_0xf8813=_0x113971[_0x416c('0x1a')]['schema'];let _0x1e188b=null,_0x4d8438=null,_0x118cf7=!0x1,_0x13005d=!0x1;for(const _0x118c75 of _0x245ad0){const _0x563927=_0x118c75['item'];_0x118cf7=_0x118cf7||_0xf8813[_0x416c('0x1')](_0x563927);const _0x27fd66=_0x1516bc['mapper'][_0x416c('0x1f')](_0x563927);if(_0x27fd66&&_0x27fd66[_0x416c('0xb')]('addHighlight'))return;_0x416c('0x22')==_0x118c75[_0x416c('0x1d')]&&(_0xf8813[_0x416c('0x0')](_0x563927)&&!_0xf8813[_0x416c('0x19')](_0x563927)&&(_0x563927[_0x416c('0xa')]||_0x523e2['isAtEnd']?_0x1e188b&&_0x1e188b[_0x416c('0x17')]==_0x563927||(_0x1e188b=_0x563927,_0x15a8d3(_0x118c75['previousPosition']),_0x13005d=!0x0):_0x4d8438=_0x4d8438||_0x118c75[_0x416c('0xc')]));}function _0x15a8d3(_0x26838f){const _0x23f41c=_0x1516bc[_0x416c('0x5')][_0x416c('0x21')](_0x416c('0x13'),{'class':_0x416c('0x1b')+_0x215af1}),_0x18f774=_0x1516bc[_0x416c('0x23')][_0x416c('0x11')](_0x26838f);_0x17b11c&&_0x20d0d4['activeMarkers']['includes'](_0x3a41b4[_0x416c('0x20')])&&_0x1516bc[_0x416c('0x5')][_0x416c('0x14')](_0x416c('0x1c'),_0x23f41c),_0x1516bc[_0x416c('0x5')][_0x416c('0x10')](_0x18f774,_0x23f41c),_0x1516bc[_0x416c('0x23')]['bindElementToMarker'](_0x23f41c,_0x3a41b4[_0x416c('0x20')]);}_0x118cf7||_0x13005d||!_0x4d8438||_0x15a8d3(_0x4d8438);};}
|