@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230904.0 → 0.0.0-nightly-20230905.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 _0x3e9d=['getChanges','markerToHighlight','insert','TableClipboard','updateMarker','newRange','tablePasteRow','view','document','column','move','oldRange','entries','wrap','join','getMarkers','paragraph','includes','tableCellBackgroundColor','unwrap','activeMarkers','stop','$graveyard','name','content','getChild','push','documentSelection','registerDescriptionCallback','removeRows','markMultiRangeBlockFormat','showSuggestionHighlights','position','previousSibling','plugins','containsRange','low','cell','map','endColumn','fill','row','tableCellVerticalAlignment','endRow','discard','_descriptionFactory','table','accept','registerPostFixer','suggestionLoaded','tableCellHorizontalAlignment','editingDowncast','markMultiRangeInsertion','editor','forceDefaultExecution','listenTo','_splitMarkerName','_createdBatches','nextSibling','_getCoordsForCells','reduce','attributes','tablePasteColumn','formatBlock','markerName','tableCell','schema','tablePasteChainId','some','getShiftedBy','isInContent','getSuggestionCallback','ck-suggestion-marker-insertion','last','from','tablePasteCell','removeColumns','has','options','rows','elementToElement','subType','tableCellBorderWidth','change','insertion','createRangeIn','columns','add','startsWith','Users','insertColumns','trackChanges','conversion','createRangeOn','isEmpty','markMultiRangeDeletion','insertionRanges','dataDowncast','high','createElement','nodeAfter','columnInsertionIndexes','find','get','markerAttributes','suggestion:formatBlock:tablePasteCell','getChangedMarkers','deletion','set','filter','findAncestor','batch','getAllAdjacentSuggestions','markers','first','TableUtils','getSuggestion','getRanges','element','tableCellSuggestion','model','createPositionBefore','end','tablePaste','author','setAttributes','_isForcedDefaultExecutionBlock','afterInit','commands','register','getAttributes','value','createTableWalker','type','getColumns','getSuggestions','ck-suggestion-marker--active','registerCustomCallback','suggestionUnloaded','_suggestionFactory','getItems','getRange','hasSuggestion','getContainedElement','suggestion','getChildren','length','rootName','for','fromEntries','remove','requires','removeMarker','cells','insertContent','differ','createRange','redo','suggestion-td','isEqual'];(function(_0x57a2f2,_0x3e9de6){const _0x968fae=function(_0x4d5197){while(--_0x4d5197){_0x57a2f2['push'](_0x57a2f2['shift']());}};_0x968fae(++_0x3e9de6);}(_0x3e9d,0x1d4));const _0x968f=function(_0x57a2f2,_0x3e9de6){_0x57a2f2=_0x57a2f2-0x0;let _0x968fae=_0x3e9d[_0x57a2f2];return _0x968fae;};import{getTranslation as _0x37a12d}from'../utils/common-translations';import{Plugin as _0x47374a}from'ckeditor5/src/core';import{uid as _0x57d4f4,priorities as _0x181102}from'ckeditor5/src/utils';import _0x4cd645 from'./table';const le=[_0x968f('0x5e'),'tableCellBorderColor','tableCellBorderStyle',_0x968f('0x3e'),_0x968f('0x36'),_0x968f('0x1e'),'tableCellPadding'],ae=Object[_0x968f('0x1')](le[_0x968f('0x32')](_0x49c8fc=>[_0x49c8fc,null]));export default class kt extends _0x47374a{static get[_0x968f('0x3')](){return[_0x4cd645];}[_0x968f('0x8b')](){const _0x5cc319=this[_0x968f('0x41')];if(!_0x5cc319[_0x968f('0x2e')][_0x968f('0x59')]('TableClipboard'))return;const _0x56410a=_0x5cc319[_0x968f('0x2e')][_0x968f('0x73')]('TrackChangesEditing'),_0x10f88b=_0x5cc319['plugins'][_0x968f('0x73')](_0x968f('0x7f')),_0x354a66=_0x5cc319['plugins']['get'](_0x4cd645),_0x5aabb2=_0x5cc319[_0x968f('0x2e')][_0x968f('0x73')](_0x968f('0xf'));_0x354a66['_tablePostFixingSubtypes']['push'](_0x968f('0x12'),_0x968f('0x4a')),_0x5cc319['model'][_0x968f('0x4e')][_0x968f('0x8d')](_0x968f('0x83'),{'allowIn':_0x968f('0x4d'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x5cc319[_0x968f('0x68')][_0x968f('0x5c')]({'model':'tableCellSuggestion','view':_0x968f('0xa')});let _0x2e0f01=null;_0x5cc319[_0x968f('0x84')]['on'](_0x968f('0x6'),(_0x3bd453,_0x4ea9e8)=>{const [_0x1066e2,_0x32e112]=_0x4ea9e8,_0x440224=_0x4ea9e8[_0x4ea9e8[_0x968f('0x9e')]-0x1];_0x440224&&_0x440224[_0x968f('0x42')]||_0x56410a[_0x968f('0x8a')]||this[_0x968f('0x41')][_0x968f('0x8c')][_0x968f('0x73')](_0x968f('0x67'))[_0x968f('0x8f')]&&function(_0xbcf82b,_0x4e70c0,_0x209e31,_0x24652b,_0xdc79c6){if(_0x4e70c0&&!_0x4e70c0['is'](_0x968f('0x27')))return!0x1;const _0x4c2633=_0xdc79c6['getTableIfOnlyTableInContent'](_0xbcf82b,_0x209e31);if(!_0x4c2633||!fe(_0x4c2633,void 0x0,_0x24652b))return!0x1;const _0x597614=_0x24652b['getSelectionAffectedTableCells'](_0x209e31[_0x968f('0x14')]['selection']);if(!_0x597614[_0x968f('0x9e')])return!0x1;const _0x20bdc0=_0x597614[0x0][_0x968f('0x7a')](_0x968f('0x3a')),_0x346936=_0x24652b['getRowIndexes'](_0x597614),_0x304445=_0x24652b['getColumnIndexes'](_0x597614),_0x56b318={'startRow':_0x346936['first'],'endRow':_0x346936['last'],'startColumn':_0x304445[_0x968f('0x7e')],'endColumn':_0x304445[_0x968f('0x55')]};return 0x1==_0x597614['length']&&(_0x56b318[_0x968f('0x37')]+=_0x24652b['getRows'](_0x4c2633)-0x1,_0x56b318[_0x968f('0x33')]+=_0x24652b[_0x968f('0x92')](_0x4c2633)-0x1),fe(_0x20bdc0,_0x56b318,_0x24652b);}(_0x1066e2,_0x32e112,_0x5cc319[_0x968f('0x84')],_0x10f88b,_0x5aabb2)&&(_0x3bd453[_0x968f('0x21')](),_0x2e0f01={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5cc319['model']['change'](()=>{_0x5cc319[_0x968f('0x84')][_0x968f('0x6')](_0x4ea9e8[0x0],_0x4ea9e8[0x1],_0x4ea9e8[0x2],{'forceDefaultExecution':!0x0});const _0x41889f=_0x57d4f4(),{rowInsertionRanges:_0x18fb56,columnInsertionRanges:_0x17f030,insertionRanges:_0x3f47e3,deletionRanges:_0x28c49d,cells:_0x24f754}=_0x2e0f01;_0x18fb56[_0x968f('0x9e')]&&_0x56410a['markMultiRangeInsertion'](_0x18fb56,_0x968f('0x12'),{'tablePasteChainId':_0x41889f}),_0x17f030[_0x968f('0x9e')]&&_0x56410a[_0x968f('0x40')](_0x17f030,_0x968f('0x4a'),{'tablePasteChainId':_0x41889f}),_0x3f47e3[_0x968f('0x9e')]&&_0x56410a[_0x968f('0x40')](_0x3f47e3,_0x968f('0x87'),{'tablePasteChainId':_0x41889f,'skipNestingCheck':!0x0}),_0x28c49d[_0x968f('0x9e')]&&_0x56410a[_0x968f('0x6b')](_0x28c49d,'tablePaste',{'tablePasteChainId':_0x41889f,'skipNestingCheck':!0x0});const _0x446f05=_0x56410a[_0x968f('0x2a')](_0x24f754[_0x968f('0x32')](({element:_0x30109f})=>_0x30109f),{'formatGroupId':_0x57d4f4()},[],_0x968f('0x57'),{'tablePasteChainId':_0x41889f});if(_0x446f05){const _0x52a56e=_0x446f05[_0x968f('0x1b')](),_0x4efb47=[];for(const {element:_0x988057,attributes:_0x3ab8c5}of _0x24f754){if(!_0x3ab8c5)continue;const _0x91808f=_0x5cc319[_0x968f('0x84')][_0x968f('0x69')](_0x988057),_0x50f2a2=_0x52a56e[_0x968f('0x72')](_0x24e1c7=>_0x24e1c7[_0x968f('0x99')]()[_0x968f('0xb')](_0x91808f));_0x50f2a2&&_0x4efb47[_0x968f('0x26')]([_0x50f2a2[_0x968f('0x23')],_0x3ab8c5]);}_0x4efb47[_0x968f('0x9e')]&&_0x446f05['setAttribute'](_0x968f('0x74'),Object[_0x968f('0x1')](_0x4efb47));}_0x2e0f01=null;}));},{'priority':_0x181102[_0x968f('0x6e')]+0xa}),_0x5cc319[_0x968f('0x2e')][_0x968f('0x73')](_0x968f('0xf'))['on']('_replaceTableSlotCell',(_0x1c1cac,_0xec5cac)=>{const [_0x9fffe5,_0x42e526,,_0x2c353e]=_0xec5cac;if(!_0x2e0f01)return;_0x1c1cac['stop']();const _0x16de52=_0x9fffe5[_0x968f('0x31')],_0x5a7d4c=_0x42e526,_0x318de1=ce(_0x16de52),_0x1655b2=ce(_0x5a7d4c);_0x1c1cac['return']=_0x16de52;let _0x269eb8=null,_0x41d9e1=null;if(_0x1655b2||_0x318de1){if(_0x318de1&&!_0x1655b2){_0x2c353e[_0x968f('0x2')](_0x16de52[_0x968f('0x25')](0x0));for(const _0x130a34 of Array[_0x968f('0x56')](_0x5a7d4c['getChildren']()))_0x2c353e[_0x968f('0xe')](_0x130a34,_0x16de52,'end');const _0x2b13b4=_0x2e0f01['rowInsertionIndexes'][_0x968f('0x1d')](_0x9fffe5[_0x968f('0x35')]),_0x3dd977=_0x2e0f01[_0x968f('0x71')][_0x968f('0x1d')](_0x9fffe5[_0x968f('0x15')]);_0x2b13b4||_0x3dd977||(_0x269eb8=_0x2c353e[_0x968f('0x61')](_0x16de52));}else _0x1655b2&&!_0x318de1&&(_0x41d9e1=_0x2c353e['createRangeIn'](_0x16de52));}else{const _0x2a88ae=_0x2c353e[_0x968f('0x6f')](_0x968f('0x83')),_0x2c8ec6=_0x2c353e[_0x968f('0x6f')]('tableCellSuggestion');_0x2c353e[_0x968f('0x19')](_0x2c353e[_0x968f('0x61')](_0x16de52),_0x2c8ec6),_0x2c353e['insert'](_0x2a88ae,_0x16de52,0x0);for(const _0x49c232 of Array[_0x968f('0x56')](_0x5a7d4c[_0x968f('0x9d')]()))_0x2c353e[_0x968f('0xe')](_0x49c232,_0x2a88ae,_0x968f('0x86'));_0x269eb8=_0x2c353e[_0x968f('0x69')](_0x2a88ae),_0x41d9e1=_0x2c353e[_0x968f('0x69')](_0x2c8ec6);}const _0x2aada8=Array[_0x968f('0x56')](_0x5a7d4c[_0x968f('0x8e')]())['filter'](([_0x3e8076])=>le['includes'](_0x3e8076));_0x2e0f01[_0x968f('0x5')]['push']({'element':_0x16de52,'attributes':_0x2aada8[_0x968f('0x9e')]?Object[_0x968f('0x1')](_0x2aada8):null}),_0x269eb8&&_0x2e0f01[_0x968f('0x6c')]['push'](_0x269eb8),_0x41d9e1&&_0x2e0f01['deletionRanges'][_0x968f('0x26')](_0x41d9e1);},{'priority':_0x968f('0x6e')}),_0x10f88b['on'](_0x968f('0x66'),(_0x4dc50f,_0x13477e)=>{const [_0x102d92,_0x40f7da={}]=_0x13477e;if(!_0x2e0f01)return;const _0x598410=_0x40f7da['at']||0x0,_0x21b35d=_0x40f7da[_0x968f('0x62')]||0x1;_0x2e0f01[_0x968f('0x71')]=new Array(_0x21b35d)['fill'](_0x598410)[_0x968f('0x32')]((_0x147dea,_0x3eeedf)=>_0x147dea+_0x3eeedf);for(const {cell:_0x12e0ef}of _0x10f88b[_0x968f('0x90')](_0x102d92,{'startColumn':_0x598410,'endColumn':_0x598410+_0x21b35d-0x1}))_0x2e0f01['columnInsertionRanges']['push'](_0x5cc319[_0x968f('0x84')][_0x968f('0x69')](_0x12e0ef));},{'priority':_0x968f('0x30')}),_0x10f88b['on']('insertRows',(_0x20e79f,_0x5c2426)=>{const [_0x527c3c,_0x56b536={}]=_0x5c2426;if(!_0x2e0f01)return;const _0x2ebf39=_0x56b536['at']||0x0,_0xd69070=_0x56b536[_0x968f('0x5b')]||0x1;_0x2e0f01['rowInsertionIndexes']=new Array(_0xd69070)[_0x968f('0x34')](_0x2ebf39)[_0x968f('0x32')]((_0x4dc593,_0x4008c9)=>_0x4dc593+_0x4008c9);for(const {cell:_0x1e3e3d}of _0x10f88b['createTableWalker'](_0x527c3c,{'startRow':_0x2ebf39,'endRow':_0x2ebf39+_0xd69070-0x1}))_0x2e0f01['rowInsertionRanges'][_0x968f('0x26')](_0x5cc319[_0x968f('0x84')][_0x968f('0x69')](_0x1e3e3d));},{'priority':'low'}),_0x56410a[_0x968f('0x39')][_0x968f('0x28')](_0x207bf0=>{if(_0x207bf0[_0x968f('0x5d')]&&_0x207bf0[_0x968f('0x5d')][_0x968f('0x64')](_0x968f('0x87')))return _0x207bf0['previous']?{}:{'type':_0x968f('0x60'),'content':_0x37a12d(_0x5cc319['locale'],'*Replace\x20table\x20cells*')};});const _0xce9d33=()=>!0x1;for(const _0x565c13 of[_0x968f('0x87'),_0x968f('0x4a'),_0x968f('0x12'),_0x968f('0x57')])_0x56410a[_0x968f('0x97')][_0x968f('0x95')](_0x968f('0x60'),_0x565c13,_0x968f('0x1a'),_0xce9d33),_0x56410a['_suggestionFactory']['registerCustomCallback'](_0x968f('0x77'),_0x565c13,_0x968f('0x1a'),_0xce9d33),_0x56410a[_0x968f('0x97')][_0x968f('0x95')](_0x968f('0x4b'),_0x565c13,_0x968f('0x1a'),_0xce9d33);_0x56410a[_0x968f('0x97')][_0x968f('0x95')]('formatBlock',_0x968f('0x57'),_0x968f('0x38'),_0xce9d33),_0x56410a['_suggestionFactory'][_0x968f('0x95')](_0x968f('0x4b'),'tablePasteCell',_0x968f('0x3b'),(_0x4c473d,_0x2dbe05,_0x11e45a)=>{const _0x1d4981=_0x4c473d['map'](_0x57f5b4=>_0x57f5b4['getContainedElement']())[_0x968f('0x79')](_0x1c9f76=>_0x1c9f76),_0x7aaf31=new Map(_0x1d4981[_0x968f('0x32')](_0x243b6f=>[_0x243b6f,null]));if(_0x2e0f01)for(const {element:_0x31bb60,attributes:_0x1925e8}of _0x2e0f01[_0x968f('0x5')])_0x1925e8&&_0x7aaf31['set'](_0x31bb60,_0x1925e8);else{if(_0x11e45a&&_0x11e45a[_0x968f('0x74')])for(const [_0x473899,_0xe193ff]of Object[_0x968f('0x18')](_0x11e45a[_0x968f('0x74')])){const _0x86ca3=_0x5cc319[_0x968f('0x84')][_0x968f('0x7d')]['get'](_0x473899),_0xde3acc=_0x86ca3?_0x86ca3[_0x968f('0x99')]()['getContainedElement']():null;_0xde3acc&&_0x7aaf31[_0x968f('0x78')](_0xde3acc,_0xe193ff);}}_0x5cc319['model'][_0x968f('0x5f')](_0x490c6e=>{for(const [_0x1a92ef,_0x386747]of _0x7aaf31)_0x490c6e[_0x968f('0x89')]({...ae,..._0x386747},_0x1a92ef);});});const _0x3a1e80=(_0x435504,_0x3bbf21)=>{_0x56410a[_0x968f('0x97')][_0x968f('0x95')](_0x435504,_0x968f('0x87'),_0x3bbf21,(_0x19ebcf,_0x1932f8,_0x575380)=>{_0x5cc319['model'][_0x968f('0x5f')](_0x12e030=>{const _0x257d0b=[];for(const _0x5ae869 of _0x19ebcf){const _0x5885f9=_0x5ae869['start'][_0x968f('0x70')];_0x5885f9['is']('element',_0x968f('0x83'))&&_0x257d0b[_0x968f('0x26')](_0x5885f9);}_0x56410a[_0x968f('0x97')][_0x968f('0x53')](_0x435504,null,_0x3bbf21)(_0x19ebcf,_0x1932f8,_0x575380);for(const _0x58f886 of _0x257d0b)_0x968f('0x22')!=_0x58f886['root'][_0x968f('0x9f')]&&_0x12e030[_0x968f('0x1f')](_0x58f886);});});};_0x3a1e80('insertion',_0x968f('0x3b')),_0x3a1e80(_0x968f('0x60'),_0x968f('0x38')),_0x3a1e80(_0x968f('0x77'),_0x968f('0x3b')),_0x3a1e80(_0x968f('0x77'),_0x968f('0x38')),_0x56410a[_0x968f('0x97')]['registerCustomCallback'](_0x968f('0x60'),_0x968f('0x12'),_0x968f('0x38'),_0x4f0793=>{const _0x280418=_0x4f0793[_0x968f('0x32')](_0x28bcb7=>_0x28bcb7['getContainedElement']()),_0x4477e4=_0x280418[0x0][_0x968f('0x7a')](_0x968f('0x3a')),{minRow:_0x5b8da2,maxRow:_0x32214b}=_0x354a66[_0x968f('0x47')](_0x280418);_0x10f88b[_0x968f('0x29')](_0x4477e4,{'at':_0x5b8da2,'rows':_0x32214b-_0x5b8da2+0x1});}),_0x56410a['_suggestionFactory'][_0x968f('0x95')](_0x968f('0x60'),'tablePasteColumn',_0x968f('0x38'),_0x5a5a3b=>{const _0x450263=_0x5a5a3b[_0x968f('0x32')](_0x32c5b3=>_0x32c5b3[_0x968f('0x9b')]()),_0x1e9c07=_0x450263[0x0][_0x968f('0x7a')](_0x968f('0x3a')),{minColumn:_0x95cf60,maxColumn:_0x629a96}=_0x354a66['_getCoordsForCells'](_0x450263);_0x10f88b[_0x968f('0x58')](_0x1e9c07,{'at':_0x95cf60,'columns':_0x629a96-_0x95cf60+0x1});});const _0x40ce05=(_0x271353,_0x481304)=>{if(!_0x481304['subType']||!_0x481304['subType'][_0x968f('0x64')](_0x968f('0x87')))return;const _0x36ea78=_0x481304[_0x968f('0x49')][_0x968f('0x4f')],_0x295698=_0x56410a['getSuggestions']()[_0x968f('0x79')](_0x189134=>_0x189134['isInContent']&&_0x189134[_0x968f('0x49')]&&_0x189134[_0x968f('0x49')]['tablePasteChainId']==_0x36ea78);_0x295698[_0x968f('0x9e')]&&_0x481304[_0x968f('0x7c')]()[_0x968f('0x9e')]!=_0x295698['length']&&_0x295698[_0x968f('0x48')]((_0x5b6dd4,_0x61cf9a)=>(_0x5b6dd4['next']=_0x61cf9a,_0x61cf9a['previous']=_0x5b6dd4,_0x61cf9a));};function _0xd6adf0(_0x3fa99f,_0xf55ac4=!0x0){const {id:_0x284aed}=_0x56410a['_splitMarkerName'](_0x3fa99f[_0x968f('0x4c')]),_0x2f3b55=['ck-suggestion-marker',_0x968f('0x54')],_0x920b4d=_0x56410a[_0x968f('0x20')][_0x968f('0x1d')](_0x3fa99f['markerName']);return _0x920b4d&&_0x2f3b55[_0x968f('0x26')](_0x968f('0x94')),{'classes':_0x2f3b55,'attributes':{'data-suggestion':_0x284aed},'priority':_0x920b4d&&_0xf55ac4?0xbc2:0xbb8};}_0x56410a['on'](_0x968f('0x3d'),_0x40ce05,{'priority':_0x968f('0x6e')}),_0x56410a['on'](_0x968f('0x96'),_0x40ce05,{'priority':_0x968f('0x6e')}),_0x5cc319['model']['document'][_0x968f('0x3c')](()=>{let _0x13589f=!0x1;const _0x53322c=Array['from'](_0x5cc319[_0x968f('0x84')][_0x968f('0x14')]['differ'][_0x968f('0x76')]());for(const {name:_0x1577d0,data:_0xd33708}of _0x53322c){const {group:_0x2ff107,type:_0x1ecef2,id:_0x829656}=_0x56410a['_splitMarkerName'](_0x1577d0);if('suggestion'!=_0x2ff107||_0x968f('0x77')!=_0x1ecef2||_0xd33708[_0x968f('0x17')])continue;if(!_0x56410a[_0x968f('0x9a')](_0x829656))continue;const _0x1f53e8=_0x56410a[_0x968f('0x80')](_0x829656)[_0x968f('0x81')](),_0x1f5fda=_0x5cc319[_0x968f('0x2e')][_0x968f('0x73')](_0x968f('0x65'))['me'];for(const _0xfff99 of _0x56410a[_0x968f('0x93')]()){if(!_0xfff99[_0x968f('0x52')]||_0xfff99[_0x968f('0x88')]!=_0x1f5fda)continue;if(_0x968f('0x4b')!=_0xfff99['type']||'tablePasteCell'!=_0xfff99['subType'])continue;if(_0xfff99[_0x968f('0x81')]()['every'](_0x543bea=>_0x1f53e8[_0x968f('0x50')](_0x37f44b=>_0x37f44b[_0x968f('0x2f')](_0x543bea,!0x0))))for(const _0x5499f3 of _0xfff99[_0x968f('0x7c')]())_0x5499f3[_0x968f('0x52')]&&(_0x5499f3[_0x968f('0x38')](),_0x13589f=!0x0);}}return _0x13589f;}),_0x5cc319[_0x968f('0x84')][_0x968f('0x14')][_0x968f('0x3c')](_0x5c2758=>{const _0x260c79=_0x5cc319[_0x968f('0x8c')][_0x968f('0x73')](_0x968f('0x9'));if(!_0x260c79||!_0x260c79[_0x968f('0x45')][_0x968f('0x59')](_0x5c2758[_0x968f('0x7b')]))return!0x1;let _0x4290b3=!0x1;const _0x1112d0=_0x5cc319[_0x968f('0x2e')]['get']('Users')['me'],_0x4d1c43=_0x5cc319[_0x968f('0x84')]['document']['differ'][_0x968f('0xc')](),_0x18049c=Array[_0x968f('0x56')](_0x5cc319[_0x968f('0x84')][_0x968f('0x14')][_0x968f('0x7')][_0x968f('0x76')]())[_0x968f('0x79')](({name:_0x5f413e,data:_0x46a473})=>{const {group:_0x3d1714,subType:_0x48901b,authorId:_0x42d972}=_0x56410a[_0x968f('0x44')](_0x5f413e);return _0x968f('0x9c')==_0x3d1714&&_0x968f('0x87')==_0x48901b&&_0x42d972==_0x1112d0['id']&&!_0x46a473['oldRange'];});for(const _0x42e34b of _0x4d1c43){if(_0x968f('0xe')!=_0x42e34b[_0x968f('0x91')]||_0x968f('0x83')!=_0x42e34b[_0x968f('0x23')]||0x1!=_0x42e34b[_0x968f('0x9e')])continue;const _0x4c54c4=_0x5c2758[_0x968f('0x8')](_0x42e34b[_0x968f('0x2c')],_0x42e34b['position'][_0x968f('0x51')](0x1));if(!_0x18049c['find'](({data:_0x2171f5})=>_0x2171f5[_0x968f('0x11')]['isEqual'](_0x4c54c4)))for(const {name:_0x240e44,data:_0x3829b3}of _0x18049c)if(_0x4c54c4[_0x968f('0x2f')](_0x3829b3[_0x968f('0x11')])){_0x5c2758[_0x968f('0x10')](_0x240e44,{'range':_0x4c54c4}),_0x4290b3=!0x0;break;}}return _0x4290b3;}),_0x5cc319['model'][_0x968f('0x14')][_0x968f('0x3c')](_0x2b9663=>{let _0x277e78=!0x1;const _0x159a28=_0x5cc319[_0x968f('0x2e')]['get'](_0x968f('0x65'))['me'],_0x2fda28=_0x56410a['getSuggestions']()['filter'](_0x58472c=>_0x58472c[_0x968f('0x52')]&&_0x58472c[_0x968f('0x88')]==_0x159a28),_0x3c5cd6=new Set(),_0x25209a=new Set();for(const _0xba76cd of _0x2fda28)if(_0x968f('0x87')==_0xba76cd['subType'])for(const _0x12085c of _0xba76cd[_0x968f('0x1b')]()){const _0x12f37b=_0x12085c['getRange']()[_0x968f('0x9b')]();if(_0x12f37b){if(_0x12f37b['is']('element','tableCellSuggestion')&&ce(_0x12f37b)){_0xba76cd[_0x968f('0x4')](_0x12085c['name']),_0x3c5cd6[_0x968f('0x63')](_0x12f37b),_0x277e78=!0x0;const _0xeb2f6a=_0x12f37b[_0x968f('0x46')],_0x199029=_0x12f37b[_0x968f('0x2d')],_0x411165=_0xeb2f6a&&_0xeb2f6a['is']('element',_0x968f('0x83')),_0x296393=_0x199029&&_0x199029['is'](_0x968f('0x82'),_0x968f('0x83'));_0x411165&&!_0x3c5cd6[_0x968f('0x59')](_0xeb2f6a)&&_0x25209a[_0x968f('0x63')](_0xeb2f6a),_0x296393&&!_0x3c5cd6[_0x968f('0x59')](_0x199029)&&_0x25209a[_0x968f('0x63')](_0x199029);}else _0x12f37b['is'](_0x968f('0x82'),_0x968f('0x1c'))&&_0x12f37b[_0x968f('0x6a')]&&(_0xba76cd[_0x968f('0x4')](_0x12085c[_0x968f('0x23')]),_0x277e78=!0x0);}}else{if(_0x968f('0x57')==_0xba76cd[_0x968f('0x5d')]){if(!_0xba76cd['attributes']||!_0xba76cd[_0x968f('0x49')]['tablePasteChainId'])continue;const _0x43ad09=_0xba76cd[_0x968f('0x49')][_0x968f('0x74')];if(_0x43ad09&&Object['keys'](_0x43ad09)[_0x968f('0x9e')])continue;const _0x2932aa=_0xba76cd[_0x968f('0x49')][_0x968f('0x4f')];let _0x22fae1=!0x0,_0x3b7880=!0x0;for(const _0x239cb1 of _0x2fda28)if(_0x239cb1[_0x968f('0x5d')]&&_0x239cb1[_0x968f('0x5d')]['startsWith']('tablePaste')){if(!_0x239cb1['attributes'][_0x968f('0x4f')]){_0x3b7880=!0x1;break;}if(_0x239cb1['id']!=_0xba76cd['id']&&_0x239cb1[_0x968f('0x49')][_0x968f('0x4f')]==_0x2932aa){_0x22fae1=!0x1;break;}}_0x3b7880&&_0x22fae1&&(_0xba76cd['removeMarkers'](),_0x277e78=!0x0);}}for(const _0x4c13af of _0x3c5cd6)_0x2b9663[_0x968f('0x2')](_0x4c13af);for(const _0x2eb049 of _0x25209a)_0x2b9663['unwrap'](_0x2eb049);return _0x277e78;}),_0x5cc319['conversion']['for'](_0x968f('0x3f'))[_0x968f('0xd')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2e23de,_0x19f8b1)=>_0xd6adf0(_0x2e23de),'converterPriority':_0x968f('0x6e')}),_0x5cc319['conversion'][_0x968f('0x0')](_0x968f('0x6d'))[_0x968f('0xd')]({'model':_0x968f('0x75'),'view':(_0x2a41ed,_0xa387d5)=>_0xa387d5[_0x968f('0x5a')][_0x968f('0x2b')]?_0xd6adf0(_0x2a41ed,!0x1):null,'converterPriority':_0x968f('0x6e')});const _0x4ce2c7=_0x5cc319['editing'][_0x968f('0x13')];this[_0x968f('0x43')](_0x4ce2c7[_0x968f('0x14')],'clipboardOutput',(_0x538120,_0x4ba672)=>{const _0x3fdcf0=[];for(const _0x4801fd of _0x4ce2c7[_0x968f('0x61')](_0x4ba672[_0x968f('0x24')])[_0x968f('0x98')]())_0x4801fd['is'](_0x968f('0x82'),_0x968f('0xa'))&&_0x3fdcf0[_0x968f('0x26')](_0x4801fd);_0x4ce2c7[_0x968f('0x5f')](_0x200ba9=>{for(const _0x104d90 of _0x3fdcf0)_0x200ba9[_0x968f('0x16')](_0x200ba9[_0x968f('0x61')](_0x104d90),_0x200ba9[_0x968f('0x85')](_0x104d90)),_0x200ba9[_0x968f('0x2')](_0x104d90);});});}}function ce(_0x3df2db){if(_0x3df2db[_0x968f('0x6a')])return!0x0;const _0x2b7d34=_0x3df2db[_0x968f('0x25')](0x0);return _0x2b7d34['is'](_0x968f('0x82'),_0x968f('0x1c'))&&_0x2b7d34[_0x968f('0x6a')];}function fe(_0x42cf8e,_0x329b1b={},_0x51f203){for(const {isAnchor:_0x42dc91,cellHeight:_0x265697,cellWidth:_0xfbf2e6}of _0x51f203['createTableWalker'](_0x42cf8e,{'includeAllSlots':!0x0,..._0x329b1b}))if(!_0x42dc91||0x1!=_0x265697||0x1!=_0xfbf2e6)return!0x1;return!0x0;}
|
|
23
|
+
const _0x4a51=['start','ck-suggestion-marker','paragraph','columnInsertionRanges','join','documentSelection','first','tableCellBorderStyle','name','Users','register','_splitMarkerName','getShiftedBy','getAttributes','removeMarker','dataDowncast','element','change','registerPostFixer','tableCellVerticalAlignment','ck-suggestion-marker--active','set','getSuggestionCallback','suggestion-td','differ','getSelectionAffectedTableCells','rowInsertionIndexes','createRange','findAncestor','markMultiRangeDeletion','suggestion','endColumn','requires','getChangedMarkers','createRangeOn','accept','insertContent','move','fill','getRange','trackChanges','for','TrackChangesEditing','setAttribute','getAllAdjacentSuggestions','hasSuggestion','createTableWalker','tableCellBorderColor','getSuggestions','getContainedElement','getSuggestion','tablePasteColumn','redo','suggestion:formatBlock:tablePasteCell','view','stop','getMarkers','low','from','isEqual','createPositionBefore','createRangeIn','selection','getChanges','setAttributes','commands','TableUtils','nextSibling','table','insertionRanges','markMultiRangeInsertion','tableCellHorizontalAlignment','editing','previous','tableCellBorderWidth','conversion','add','filter','cell','tablePasteChainId','tableCell','entries','clipboardOutput','end','last','includes','editor','discard','afterInit','activeMarkers','column','oldRange','every','tablePaste','_replaceTableSlotCell','markers','_suggestionFactory','locale','insertion','getRowIndexes','previousSibling','getItems','tableCellBackgroundColor','find','markerToHighlight','tablePasteCell','push','plugins','getColumns','getRows','showSuggestionHighlights','map','_getCoordsForCells','next','model','startsWith','updateMarker','fromEntries','$graveyard','remove','endRow','getTableIfOnlyTableInContent','author','suggestionUnloaded','get','newRange','formatBlock','cells','some','type','insert','high','row','schema','deletionRanges','removeMarkers','has','attributes','elementToElement','length','TableClipboard','rowInsertionRanges','value','document','_descriptionFactory','getRanges','unwrap','batch','markerName','listenTo','root','registerCustomCallback','position','tableCellSuggestion','subType','deletion','registerDescriptionCallback','isInContent','markerAttributes','isEmpty','getChild','tablePasteRow'];(function(_0x5b6be1,_0x4a51ba){const _0x5ec3d4=function(_0x535b86){while(--_0x535b86){_0x5b6be1['push'](_0x5b6be1['shift']());}};_0x5ec3d4(++_0x4a51ba);}(_0x4a51,0x1e4));const _0x5ec3=function(_0x5b6be1,_0x4a51ba){_0x5b6be1=_0x5b6be1-0x0;let _0x5ec3d4=_0x4a51[_0x5b6be1];return _0x5ec3d4;};import{getTranslation as _0x27b50a}from'../utils/common-translations';import{Plugin as _0x289017}from'ckeditor5/src/core';import{uid as _0x5abd9a,priorities as _0x371b0d}from'ckeditor5/src/utils';import _0x370dac from'./table';const le=[_0x5ec3('0x4c'),_0x5ec3('0x31'),_0x5ec3('0x9'),_0x5ec3('0x49'),_0x5ec3('0x15'),_0x5ec3('0x68'),'tableCellPadding'],ae=Object[_0x5ec3('0x77')](le['map'](_0x1680fd=>[_0x1680fd,null]));export default class kt extends _0x289017{static get[_0x5ec3('0x22')](){return[_0x370dac];}[_0x5ec3('0x5a')](){const _0x598d5c=this[_0x5ec3('0x58')];if(!_0x598d5c['plugins'][_0x5ec3('0x8a')](_0x5ec3('0x8e')))return;const _0x276e1d=_0x598d5c[_0x5ec3('0x6d')]['get'](_0x5ec3('0x2c')),_0x534df4=_0x598d5c[_0x5ec3('0x6d')][_0x5ec3('0x7e')](_0x5ec3('0x44')),_0x43204b=_0x598d5c['plugins']['get'](_0x370dac),_0x4509e5=_0x598d5c[_0x5ec3('0x6d')]['get'](_0x5ec3('0x8e'));_0x43204b['_tablePostFixingSubtypes']['push'](_0x5ec3('0x1'),_0x5ec3('0x35')),_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x87')][_0x5ec3('0xc')](_0x5ec3('0x9b'),{'allowIn':'tableCell','allowContentOf':_0x5ec3('0x52'),'isLimit':!0x0}),_0x598d5c[_0x5ec3('0x4d')][_0x5ec3('0x8c')]({'model':_0x5ec3('0x9b'),'view':_0x5ec3('0x19')});let _0x24331c=null;_0x598d5c[_0x5ec3('0x74')]['on'](_0x5ec3('0x26'),(_0x1d3d8f,_0x515892)=>{const [_0x3e2591,_0x47663b]=_0x515892,_0x37dd09=_0x515892[_0x515892[_0x5ec3('0x8d')]-0x1];_0x37dd09&&_0x37dd09['forceDefaultExecution']||_0x276e1d['_isForcedDefaultExecutionBlock']||this['editor'][_0x5ec3('0x43')][_0x5ec3('0x7e')](_0x5ec3('0x2a'))[_0x5ec3('0x90')]&&function(_0x1bcede,_0xf98726,_0x6460fd,_0xb7b66d,_0x1027d8){if(_0xf98726&&!_0xf98726['is'](_0x5ec3('0x7')))return!0x1;const _0x2f894a=_0x1027d8[_0x5ec3('0x7b')](_0x1bcede,_0x6460fd);if(!_0x2f894a||!fe(_0x2f894a,void 0x0,_0xb7b66d))return!0x1;const _0x137ea7=_0xb7b66d[_0x5ec3('0x1b')](_0x6460fd['document'][_0x5ec3('0x40')]);if(!_0x137ea7['length'])return!0x1;const _0x2143f4=_0x137ea7[0x0]['findAncestor'](_0x5ec3('0x46')),_0x2ec750=_0xb7b66d[_0x5ec3('0x65')](_0x137ea7),_0xf72d75=_0xb7b66d['getColumnIndexes'](_0x137ea7),_0x198dc2={'startRow':_0x2ec750[_0x5ec3('0x8')],'endRow':_0x2ec750[_0x5ec3('0x56')],'startColumn':_0xf72d75[_0x5ec3('0x8')],'endColumn':_0xf72d75[_0x5ec3('0x56')]};return 0x1==_0x137ea7[_0x5ec3('0x8d')]&&(_0x198dc2[_0x5ec3('0x7a')]+=_0xb7b66d[_0x5ec3('0x6f')](_0x2f894a)-0x1,_0x198dc2[_0x5ec3('0x21')]+=_0xb7b66d[_0x5ec3('0x6e')](_0x2f894a)-0x1),fe(_0x2143f4,_0x198dc2,_0xb7b66d);}(_0x3e2591,_0x47663b,_0x598d5c[_0x5ec3('0x74')],_0x534df4,_0x4509e5)&&(_0x1d3d8f[_0x5ec3('0x39')](),_0x24331c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x13')](()=>{_0x598d5c[_0x5ec3('0x74')]['insertContent'](_0x515892[0x0],_0x515892[0x1],_0x515892[0x2],{'forceDefaultExecution':!0x0});const _0x5a0122=_0x5abd9a(),{rowInsertionRanges:_0x45cea2,columnInsertionRanges:_0x84086,insertionRanges:_0x547965,deletionRanges:_0x370761,cells:_0x5db0df}=_0x24331c;_0x45cea2[_0x5ec3('0x8d')]&&_0x276e1d[_0x5ec3('0x48')](_0x45cea2,'tablePasteRow',{'tablePasteChainId':_0x5a0122}),_0x84086[_0x5ec3('0x8d')]&&_0x276e1d[_0x5ec3('0x48')](_0x84086,'tablePasteColumn',{'tablePasteChainId':_0x5a0122}),_0x547965['length']&&_0x276e1d[_0x5ec3('0x48')](_0x547965,'tablePaste',{'tablePasteChainId':_0x5a0122,'skipNestingCheck':!0x0}),_0x370761['length']&&_0x276e1d[_0x5ec3('0x1f')](_0x370761,_0x5ec3('0x5f'),{'tablePasteChainId':_0x5a0122,'skipNestingCheck':!0x0});const _0x24b019=_0x276e1d['markMultiRangeBlockFormat'](_0x5db0df[_0x5ec3('0x71')](({element:_0xef481})=>_0xef481),{'formatGroupId':_0x5abd9a()},[],_0x5ec3('0x6b'),{'tablePasteChainId':_0x5a0122});if(_0x24b019){const _0x5e0404=_0x24b019[_0x5ec3('0x3a')](),_0x3eb0b4=[];for(const {element:_0x15be97,attributes:_0x1abfac}of _0x5db0df){if(!_0x1abfac)continue;const _0xcfc1df=_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x24')](_0x15be97),_0x3cf133=_0x5e0404[_0x5ec3('0x69')](_0x144bf6=>_0x144bf6[_0x5ec3('0x29')]()[_0x5ec3('0x3d')](_0xcfc1df));_0x3cf133&&_0x3eb0b4[_0x5ec3('0x6c')]([_0x3cf133[_0x5ec3('0xa')],_0x1abfac]);}_0x3eb0b4['length']&&_0x24b019[_0x5ec3('0x2d')](_0x5ec3('0xa0'),Object['fromEntries'](_0x3eb0b4));}_0x24331c=null;}));},{'priority':_0x371b0d[_0x5ec3('0x85')]+0xa}),_0x598d5c['plugins'][_0x5ec3('0x7e')](_0x5ec3('0x8e'))['on'](_0x5ec3('0x60'),(_0x281502,_0x3a81ce)=>{const [_0xc96f2c,_0x2121f2,,_0x17d0e0]=_0x3a81ce;if(!_0x24331c)return;_0x281502[_0x5ec3('0x39')]();const _0x57368e=_0xc96f2c[_0x5ec3('0x50')],_0x253790=_0x2121f2,_0x46e099=ce(_0x57368e),_0x18b092=ce(_0x253790);_0x281502['return']=_0x57368e;let _0x48066c=null,_0x395045=null;if(_0x18b092||_0x46e099){if(_0x46e099&&!_0x18b092){_0x17d0e0[_0x5ec3('0x79')](_0x57368e[_0x5ec3('0x0')](0x0));for(const _0x4ad435 of Array[_0x5ec3('0x3c')](_0x253790['getChildren']()))_0x17d0e0[_0x5ec3('0x84')](_0x4ad435,_0x57368e,_0x5ec3('0x55'));const _0x395f84=_0x24331c[_0x5ec3('0x1c')][_0x5ec3('0x57')](_0xc96f2c[_0x5ec3('0x86')]),_0x5b4742=_0x24331c['columnInsertionIndexes'][_0x5ec3('0x57')](_0xc96f2c[_0x5ec3('0x5c')]);_0x395f84||_0x5b4742||(_0x48066c=_0x17d0e0['createRangeIn'](_0x57368e));}else _0x18b092&&!_0x46e099&&(_0x395045=_0x17d0e0[_0x5ec3('0x3f')](_0x57368e));}else{const _0x1fc01f=_0x17d0e0['createElement'](_0x5ec3('0x9b')),_0x31f068=_0x17d0e0['createElement']('tableCellSuggestion');_0x17d0e0['wrap'](_0x17d0e0[_0x5ec3('0x3f')](_0x57368e),_0x31f068),_0x17d0e0[_0x5ec3('0x84')](_0x1fc01f,_0x57368e,0x0);for(const _0x16c850 of Array['from'](_0x253790['getChildren']()))_0x17d0e0[_0x5ec3('0x84')](_0x16c850,_0x1fc01f,'end');_0x48066c=_0x17d0e0[_0x5ec3('0x24')](_0x1fc01f),_0x395045=_0x17d0e0[_0x5ec3('0x24')](_0x31f068);}const _0x28bc2b=Array[_0x5ec3('0x3c')](_0x253790[_0x5ec3('0xf')]())[_0x5ec3('0x4f')](([_0x1ae290])=>le['includes'](_0x1ae290));_0x24331c['cells']['push']({'element':_0x57368e,'attributes':_0x28bc2b[_0x5ec3('0x8d')]?Object[_0x5ec3('0x77')](_0x28bc2b):null}),_0x48066c&&_0x24331c[_0x5ec3('0x47')][_0x5ec3('0x6c')](_0x48066c),_0x395045&&_0x24331c[_0x5ec3('0x88')][_0x5ec3('0x6c')](_0x395045);},{'priority':_0x5ec3('0x85')}),_0x534df4['on']('insertColumns',(_0x3407fa,_0x4750e4)=>{const [_0x2b4921,_0x3e6119={}]=_0x4750e4;if(!_0x24331c)return;const _0x37d37f=_0x3e6119['at']||0x0,_0x4a47ae=_0x3e6119['columns']||0x1;_0x24331c['columnInsertionIndexes']=new Array(_0x4a47ae)['fill'](_0x37d37f)['map']((_0x55b04e,_0x5e2102)=>_0x55b04e+_0x5e2102);for(const {cell:_0x5bb78d}of _0x534df4[_0x5ec3('0x30')](_0x2b4921,{'startColumn':_0x37d37f,'endColumn':_0x37d37f+_0x4a47ae-0x1}))_0x24331c[_0x5ec3('0x5')]['push'](_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x24')](_0x5bb78d));},{'priority':'low'}),_0x534df4['on']('insertRows',(_0x4273d7,_0x2d4c5e)=>{const [_0x23f3fe,_0x4d12d1={}]=_0x2d4c5e;if(!_0x24331c)return;const _0x1c0dc9=_0x4d12d1['at']||0x0,_0x58930d=_0x4d12d1['rows']||0x1;_0x24331c[_0x5ec3('0x1c')]=new Array(_0x58930d)[_0x5ec3('0x28')](_0x1c0dc9)['map']((_0x25e716,_0x3ea2ad)=>_0x25e716+_0x3ea2ad);for(const {cell:_0xbd0a5a}of _0x534df4['createTableWalker'](_0x23f3fe,{'startRow':_0x1c0dc9,'endRow':_0x1c0dc9+_0x58930d-0x1}))_0x24331c[_0x5ec3('0x8f')][_0x5ec3('0x6c')](_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x24')](_0xbd0a5a));},{'priority':_0x5ec3('0x3b')}),_0x276e1d[_0x5ec3('0x92')][_0x5ec3('0x9e')](_0x6dd82e=>{if(_0x6dd82e['subType']&&_0x6dd82e[_0x5ec3('0x9c')][_0x5ec3('0x75')](_0x5ec3('0x5f')))return _0x6dd82e[_0x5ec3('0x4b')]?{}:{'type':_0x5ec3('0x64'),'content':_0x27b50a(_0x598d5c[_0x5ec3('0x63')],'*Replace\x20table\x20cells*')};});const _0x44b330=()=>!0x1;for(const _0x47ce6e of[_0x5ec3('0x5f'),_0x5ec3('0x35'),'tablePasteRow',_0x5ec3('0x6b')])_0x276e1d[_0x5ec3('0x62')]['registerCustomCallback'](_0x5ec3('0x64'),_0x47ce6e,_0x5ec3('0x6'),_0x44b330),_0x276e1d[_0x5ec3('0x62')][_0x5ec3('0x99')](_0x5ec3('0x9d'),_0x47ce6e,'join',_0x44b330),_0x276e1d[_0x5ec3('0x62')]['registerCustomCallback'](_0x5ec3('0x80'),_0x47ce6e,'join',_0x44b330);_0x276e1d[_0x5ec3('0x62')][_0x5ec3('0x99')](_0x5ec3('0x80'),_0x5ec3('0x6b'),_0x5ec3('0x59'),_0x44b330),_0x276e1d[_0x5ec3('0x62')]['registerCustomCallback'](_0x5ec3('0x80'),'tablePasteCell','accept',(_0xc0ddb2,_0x170dbc,_0x2852cc)=>{const _0x206d1d=_0xc0ddb2['map'](_0x1e4a57=>_0x1e4a57[_0x5ec3('0x33')]())[_0x5ec3('0x4f')](_0x4d152b=>_0x4d152b),_0x3295cc=new Map(_0x206d1d[_0x5ec3('0x71')](_0x4c183a=>[_0x4c183a,null]));if(_0x24331c)for(const {element:_0x175fa7,attributes:_0x2c65af}of _0x24331c[_0x5ec3('0x81')])_0x2c65af&&_0x3295cc[_0x5ec3('0x17')](_0x175fa7,_0x2c65af);else{if(_0x2852cc&&_0x2852cc[_0x5ec3('0xa0')])for(const [_0x154202,_0x1a3dc9]of Object[_0x5ec3('0x53')](_0x2852cc[_0x5ec3('0xa0')])){const _0x815d5b=_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x61')][_0x5ec3('0x7e')](_0x154202),_0x4f8ada=_0x815d5b?_0x815d5b[_0x5ec3('0x29')]()[_0x5ec3('0x33')]():null;_0x4f8ada&&_0x3295cc[_0x5ec3('0x17')](_0x4f8ada,_0x1a3dc9);}}_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x13')](_0x180978=>{for(const [_0x513181,_0x4a113c]of _0x3295cc)_0x180978[_0x5ec3('0x42')]({...ae,..._0x4a113c},_0x513181);});});const _0x55a6a7=(_0x9b29c6,_0x418bb5)=>{_0x276e1d['_suggestionFactory']['registerCustomCallback'](_0x9b29c6,_0x5ec3('0x5f'),_0x418bb5,(_0x371036,_0x5bb435,_0x5e8e12)=>{_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x13')](_0x35a5cc=>{const _0x119e7a=[];for(const _0x490cba of _0x371036){const _0x5e0982=_0x490cba[_0x5ec3('0x2')]['nodeAfter'];_0x5e0982['is'](_0x5ec3('0x12'),'tableCellSuggestion')&&_0x119e7a[_0x5ec3('0x6c')](_0x5e0982);}_0x276e1d['_suggestionFactory'][_0x5ec3('0x18')](_0x9b29c6,null,_0x418bb5)(_0x371036,_0x5bb435,_0x5e8e12);for(const _0x152b51 of _0x119e7a)_0x5ec3('0x78')!=_0x152b51[_0x5ec3('0x98')]['rootName']&&_0x35a5cc[_0x5ec3('0x94')](_0x152b51);});});};_0x55a6a7(_0x5ec3('0x64'),_0x5ec3('0x25')),_0x55a6a7(_0x5ec3('0x64'),_0x5ec3('0x59')),_0x55a6a7(_0x5ec3('0x9d'),_0x5ec3('0x25')),_0x55a6a7(_0x5ec3('0x9d'),_0x5ec3('0x59')),_0x276e1d[_0x5ec3('0x62')][_0x5ec3('0x99')](_0x5ec3('0x64'),_0x5ec3('0x1'),_0x5ec3('0x59'),_0x370294=>{const _0x2c384d=_0x370294[_0x5ec3('0x71')](_0x39e18f=>_0x39e18f[_0x5ec3('0x33')]()),_0x2ee94a=_0x2c384d[0x0][_0x5ec3('0x1e')](_0x5ec3('0x46')),{minRow:_0x1ec2d9,maxRow:_0x482118}=_0x43204b['_getCoordsForCells'](_0x2c384d);_0x534df4['removeRows'](_0x2ee94a,{'at':_0x1ec2d9,'rows':_0x482118-_0x1ec2d9+0x1});}),_0x276e1d['_suggestionFactory']['registerCustomCallback'](_0x5ec3('0x64'),'tablePasteColumn','discard',_0x24d374=>{const _0x522313=_0x24d374[_0x5ec3('0x71')](_0x43b934=>_0x43b934['getContainedElement']()),_0x48f8cd=_0x522313[0x0][_0x5ec3('0x1e')](_0x5ec3('0x46')),{minColumn:_0x4d1d0f,maxColumn:_0x19faa3}=_0x43204b[_0x5ec3('0x72')](_0x522313);_0x534df4['removeColumns'](_0x48f8cd,{'at':_0x4d1d0f,'columns':_0x19faa3-_0x4d1d0f+0x1});});const _0x294ecd=(_0x4192bb,_0x4318f0)=>{if(!_0x4318f0[_0x5ec3('0x9c')]||!_0x4318f0['subType'][_0x5ec3('0x75')]('tablePaste'))return;const _0x2ed35=_0x4318f0[_0x5ec3('0x8b')]['tablePasteChainId'],_0x11485e=_0x276e1d[_0x5ec3('0x32')]()[_0x5ec3('0x4f')](_0x1bbc57=>_0x1bbc57['isInContent']&&_0x1bbc57[_0x5ec3('0x8b')]&&_0x1bbc57['attributes'][_0x5ec3('0x51')]==_0x2ed35);_0x11485e[_0x5ec3('0x8d')]&&_0x4318f0[_0x5ec3('0x2e')]()[_0x5ec3('0x8d')]!=_0x11485e[_0x5ec3('0x8d')]&&_0x11485e['reduce']((_0x51253b,_0x79c4a9)=>(_0x51253b[_0x5ec3('0x73')]=_0x79c4a9,_0x79c4a9['previous']=_0x51253b,_0x79c4a9));};function _0x902e43(_0x42b9e9,_0x1fb97c=!0x0){const {id:_0x26860f}=_0x276e1d[_0x5ec3('0xd')](_0x42b9e9[_0x5ec3('0x96')]),_0x139d15=[_0x5ec3('0x3'),'ck-suggestion-marker-insertion'],_0x5eda34=_0x276e1d[_0x5ec3('0x5b')][_0x5ec3('0x57')](_0x42b9e9[_0x5ec3('0x96')]);return _0x5eda34&&_0x139d15['push'](_0x5ec3('0x16')),{'classes':_0x139d15,'attributes':{'data-suggestion':_0x26860f},'priority':_0x5eda34&&_0x1fb97c?0xbc2:0xbb8};}_0x276e1d['on']('suggestionLoaded',_0x294ecd,{'priority':_0x5ec3('0x85')}),_0x276e1d['on'](_0x5ec3('0x7d'),_0x294ecd,{'priority':_0x5ec3('0x85')}),_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x91')][_0x5ec3('0x14')](()=>{let _0x537fac=!0x1;const _0xfa39=Array[_0x5ec3('0x3c')](_0x598d5c['model'][_0x5ec3('0x91')][_0x5ec3('0x1a')][_0x5ec3('0x23')]());for(const {name:_0x317a6e,data:_0x50011c}of _0xfa39){const {group:_0x8f246d,type:_0xf7060f,id:_0x5797f3}=_0x276e1d[_0x5ec3('0xd')](_0x317a6e);if(_0x5ec3('0x20')!=_0x8f246d||'deletion'!=_0xf7060f||_0x50011c['oldRange'])continue;if(!_0x276e1d[_0x5ec3('0x2f')](_0x5797f3))continue;const _0x465a21=_0x276e1d[_0x5ec3('0x34')](_0x5797f3)['getRanges'](),_0x422fd5=_0x598d5c[_0x5ec3('0x6d')][_0x5ec3('0x7e')](_0x5ec3('0xb'))['me'];for(const _0x4f1738 of _0x276e1d['getSuggestions']()){if(!_0x4f1738[_0x5ec3('0x9f')]||_0x4f1738[_0x5ec3('0x7c')]!=_0x422fd5)continue;if('formatBlock'!=_0x4f1738['type']||_0x5ec3('0x6b')!=_0x4f1738['subType'])continue;if(_0x4f1738[_0x5ec3('0x93')]()[_0x5ec3('0x5e')](_0x290321=>_0x465a21[_0x5ec3('0x82')](_0x1cddea=>_0x1cddea['containsRange'](_0x290321,!0x0))))for(const _0x4ab8d4 of _0x4f1738[_0x5ec3('0x2e')]())_0x4ab8d4[_0x5ec3('0x9f')]&&(_0x4ab8d4[_0x5ec3('0x59')](),_0x537fac=!0x0);}}return _0x537fac;}),_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x91')][_0x5ec3('0x14')](_0x3b3c58=>{const _0xc20c59=_0x598d5c[_0x5ec3('0x43')][_0x5ec3('0x7e')](_0x5ec3('0x36'));if(!_0xc20c59||!_0xc20c59['_createdBatches'][_0x5ec3('0x8a')](_0x3b3c58[_0x5ec3('0x95')]))return!0x1;let _0x516a8e=!0x1;const _0x1f1632=_0x598d5c[_0x5ec3('0x6d')][_0x5ec3('0x7e')](_0x5ec3('0xb'))['me'],_0x3e66b3=_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x91')][_0x5ec3('0x1a')][_0x5ec3('0x41')](),_0x45eff2=Array[_0x5ec3('0x3c')](_0x598d5c[_0x5ec3('0x74')]['document'][_0x5ec3('0x1a')][_0x5ec3('0x23')]())['filter'](({name:_0x616083,data:_0x295a04})=>{const {group:_0x5afc98,subType:_0x5459d0,authorId:_0x5b307f}=_0x276e1d[_0x5ec3('0xd')](_0x616083);return'suggestion'==_0x5afc98&&_0x5ec3('0x5f')==_0x5459d0&&_0x5b307f==_0x1f1632['id']&&!_0x295a04[_0x5ec3('0x5d')];});for(const _0x202a42 of _0x3e66b3){if(_0x5ec3('0x84')!=_0x202a42[_0x5ec3('0x83')]||_0x5ec3('0x9b')!=_0x202a42['name']||0x1!=_0x202a42[_0x5ec3('0x8d')])continue;const _0x2e55d0=_0x3b3c58[_0x5ec3('0x1d')](_0x202a42[_0x5ec3('0x9a')],_0x202a42['position'][_0x5ec3('0xe')](0x1));if(!_0x45eff2[_0x5ec3('0x69')](({data:_0x2d05f0})=>_0x2d05f0[_0x5ec3('0x7f')][_0x5ec3('0x3d')](_0x2e55d0)))for(const {name:_0xc3a048,data:_0x8ee886}of _0x45eff2)if(_0x2e55d0['containsRange'](_0x8ee886['newRange'])){_0x3b3c58[_0x5ec3('0x76')](_0xc3a048,{'range':_0x2e55d0}),_0x516a8e=!0x0;break;}}return _0x516a8e;}),_0x598d5c['model']['document'][_0x5ec3('0x14')](_0x464d53=>{let _0x1e8e1=!0x1;const _0x431ee8=_0x598d5c[_0x5ec3('0x6d')][_0x5ec3('0x7e')](_0x5ec3('0xb'))['me'],_0x8212a2=_0x276e1d['getSuggestions']()[_0x5ec3('0x4f')](_0x398dd4=>_0x398dd4['isInContent']&&_0x398dd4[_0x5ec3('0x7c')]==_0x431ee8),_0x53ef29=new Set(),_0x1557b0=new Set();for(const _0x5972fb of _0x8212a2)if('tablePaste'==_0x5972fb[_0x5ec3('0x9c')])for(const _0x5ef9ef of _0x5972fb[_0x5ec3('0x3a')]()){const _0x31c0f3=_0x5ef9ef[_0x5ec3('0x29')]()[_0x5ec3('0x33')]();if(_0x31c0f3){if(_0x31c0f3['is']('element','tableCellSuggestion')&&ce(_0x31c0f3)){_0x5972fb['removeMarker'](_0x5ef9ef[_0x5ec3('0xa')]),_0x53ef29[_0x5ec3('0x4e')](_0x31c0f3),_0x1e8e1=!0x0;const _0x4e4cb9=_0x31c0f3[_0x5ec3('0x45')],_0x3aeb81=_0x31c0f3[_0x5ec3('0x66')],_0x2a80da=_0x4e4cb9&&_0x4e4cb9['is'](_0x5ec3('0x12'),_0x5ec3('0x9b')),_0x1b2a76=_0x3aeb81&&_0x3aeb81['is']('element',_0x5ec3('0x9b'));_0x2a80da&&!_0x53ef29[_0x5ec3('0x8a')](_0x4e4cb9)&&_0x1557b0[_0x5ec3('0x4e')](_0x4e4cb9),_0x1b2a76&&!_0x53ef29[_0x5ec3('0x8a')](_0x3aeb81)&&_0x1557b0[_0x5ec3('0x4e')](_0x3aeb81);}else _0x31c0f3['is']('element',_0x5ec3('0x4'))&&_0x31c0f3[_0x5ec3('0xa1')]&&(_0x5972fb[_0x5ec3('0x10')](_0x5ef9ef[_0x5ec3('0xa')]),_0x1e8e1=!0x0);}}else{if(_0x5ec3('0x6b')==_0x5972fb[_0x5ec3('0x9c')]){if(!_0x5972fb[_0x5ec3('0x8b')]||!_0x5972fb[_0x5ec3('0x8b')][_0x5ec3('0x51')])continue;const _0x1cef79=_0x5972fb[_0x5ec3('0x8b')]['markerAttributes'];if(_0x1cef79&&Object['keys'](_0x1cef79)['length'])continue;const _0x262dd6=_0x5972fb[_0x5ec3('0x8b')][_0x5ec3('0x51')];let _0x49bdbc=!0x0,_0x12c865=!0x0;for(const _0x3b7b2d of _0x8212a2)if(_0x3b7b2d[_0x5ec3('0x9c')]&&_0x3b7b2d[_0x5ec3('0x9c')][_0x5ec3('0x75')](_0x5ec3('0x5f'))){if(!_0x3b7b2d[_0x5ec3('0x8b')][_0x5ec3('0x51')]){_0x12c865=!0x1;break;}if(_0x3b7b2d['id']!=_0x5972fb['id']&&_0x3b7b2d[_0x5ec3('0x8b')][_0x5ec3('0x51')]==_0x262dd6){_0x49bdbc=!0x1;break;}}_0x12c865&&_0x49bdbc&&(_0x5972fb[_0x5ec3('0x89')](),_0x1e8e1=!0x0);}}for(const _0x10e726 of _0x53ef29)_0x464d53[_0x5ec3('0x79')](_0x10e726);for(const _0x70e106 of _0x1557b0)_0x464d53[_0x5ec3('0x94')](_0x70e106);return _0x1e8e1;}),_0x598d5c[_0x5ec3('0x4d')][_0x5ec3('0x2b')]('editingDowncast')[_0x5ec3('0x6a')]({'model':_0x5ec3('0x37'),'view':(_0x97d35e,_0x2c358c)=>_0x902e43(_0x97d35e),'converterPriority':_0x5ec3('0x85')}),_0x598d5c[_0x5ec3('0x4d')][_0x5ec3('0x2b')](_0x5ec3('0x11'))['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xf095a9,_0x187dfa)=>_0x187dfa['options'][_0x5ec3('0x70')]?_0x902e43(_0xf095a9,!0x1):null,'converterPriority':_0x5ec3('0x85')});const _0x3d9cbb=_0x598d5c[_0x5ec3('0x4a')][_0x5ec3('0x38')];this[_0x5ec3('0x97')](_0x3d9cbb[_0x5ec3('0x91')],_0x5ec3('0x54'),(_0x32c06e,_0x3d81b5)=>{const _0x323532=[];for(const _0x2610b1 of _0x3d9cbb['createRangeIn'](_0x3d81b5['content'])[_0x5ec3('0x67')]())_0x2610b1['is'](_0x5ec3('0x12'),'suggestion-td')&&_0x323532[_0x5ec3('0x6c')](_0x2610b1);_0x3d9cbb[_0x5ec3('0x13')](_0xc1911a=>{for(const _0x4ec20b of _0x323532)_0xc1911a[_0x5ec3('0x27')](_0xc1911a[_0x5ec3('0x3f')](_0x4ec20b),_0xc1911a[_0x5ec3('0x3e')](_0x4ec20b)),_0xc1911a['remove'](_0x4ec20b);});});}}function ce(_0x3bfe2a){if(_0x3bfe2a[_0x5ec3('0xa1')])return!0x0;const _0x1bb44e=_0x3bfe2a[_0x5ec3('0x0')](0x0);return _0x1bb44e['is'](_0x5ec3('0x12'),_0x5ec3('0x4'))&&_0x1bb44e[_0x5ec3('0xa1')];}function fe(_0x510d5f,_0x20a658={},_0x2f9e3d){for(const {isAnchor:_0x3991c6,cellHeight:_0x10fee9,cellWidth:_0x23ff6e}of _0x2f9e3d[_0x5ec3('0x30')](_0x510d5f,{'includeAllSlots':!0x0,..._0x20a658}))if(!_0x3991c6||0x1!=_0x10fee9||0x1!=_0x23ff6e)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1305=['_suggestionFactory','formatBlock','subType','registerCustomCallback','discard','format','has','tableWidth','editor','model','getContainedElement','getAttribute','commandParams','getSuggestionCallback','accept','_descriptionFactory','get','resizeTable','plugins','handleSuggestionDescription','getSuggestions','handleResizeTableWidthCommand','getSelectedElement','columnWidths','bind','table','TableColumnResizeEditing','resizeTableWidth','enableCommand','afterInit','selection','*Format:*\x20resize\x20table','formatGroupId','markBlockFormat','locale','author','TrackChangesEditing'];(function(_0x4497a6,_0x1305a9){const _0x5bf7ea=function(_0x532e3c){while(--_0x532e3c){_0x4497a6['push'](_0x4497a6['shift']());}};_0x5bf7ea(++_0x1305a9);}(_0x1305,0x184));const _0x5bf7=function(_0x4497a6,_0x1305a9){_0x4497a6=_0x4497a6-0x0;let _0x5bf7ea=_0x1305[_0x4497a6];return _0x5bf7ea;};import{Plugin as _0x412745}from'ckeditor5/src/core';import{getTranslation as _0x2569b1}from'../utils/common-translations';export default class wt extends _0x412745{[_0x5bf7('0xb')](){if(!this['editor']['plugins'][_0x5bf7('0x19')](_0x5bf7('0x8')))return;const _0x1c03f4=this[_0x5bf7('0x1b')][_0x5bf7('0x0')][_0x5bf7('0x23')](_0x5bf7('0x12'));_0x1c03f4[_0x5bf7('0xa')]('resizeTableWidth',this[_0x5bf7('0x3')]['bind'](this)),_0x1c03f4[_0x5bf7('0xa')]('resizeColumnWidths',this[_0x5bf7('0x3')]['bind'](this)),_0x1c03f4['_suggestionFactory'][_0x5bf7('0x16')](_0x5bf7('0x14'),_0x5bf7('0x24'),_0x5bf7('0x21'),_0x1c03f4[_0x5bf7('0x13')][_0x5bf7('0x20')](_0x5bf7('0x14'),null,'discard')),_0x1c03f4[_0x5bf7('0x13')]['registerCustomCallback'](_0x5bf7('0x14'),'resizeTable',_0x5bf7('0x17'),_0x1c03f4[_0x5bf7('0x13')]['getSuggestionCallback'](_0x5bf7('0x14'),null,'accept')),_0x1c03f4[_0x5bf7('0x22')]['registerDescriptionCallback'](this[_0x5bf7('0x1')][_0x5bf7('0x6')](this));}['handleResizeTableWidthCommand'](_0x2084e1,_0x956606){const _0x5b0ef4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x341cc5=this[_0x5bf7('0x1b')][_0x5bf7('0x0')][_0x5bf7('0x23')](_0x5bf7('0x8')),_0x476941=_0x956606[_0x5bf7('0x7')]||this[_0x5bf7('0x1b')][_0x5bf7('0x1c')]['document'][_0x5bf7('0xc')][_0x5bf7('0x4')]();this['editor'][_0x5bf7('0x1c')]['change'](()=>{const _0x3394a5=_0x341cc5['getColumnGroupElement'](_0x476941);let _0x18e5cf=_0x3394a5?_0x341cc5['getTableColumnsWidths'](_0x3394a5):null,_0x50a843=_0x476941[_0x5bf7('0x1e')](_0x5bf7('0x1a'))||null;const _0x20f5b1=_0x956606['tableWidth']||_0x50a843,_0x29785b=_0x956606[_0x5bf7('0x5')]||_0x18e5cf,_0x2ef660=this[_0x5bf7('0x1b')][_0x5bf7('0x0')]['get']('Users')['me'];for(const _0x2c24ac of _0x5b0ef4[_0x5bf7('0x2')]()){const _0x232c33=_0x2c24ac[_0x5bf7('0x1d')]();if(_0x5bf7('0x24')===_0x2c24ac[_0x5bf7('0x15')]&&_0x232c33===_0x476941){_0x2c24ac[_0x5bf7('0x11')]!==_0x2ef660&&_0x2c24ac[_0x5bf7('0x17')]();const _0x14d1da=_0x2c24ac['data'][_0x5bf7('0x1f')];_0x50a843=_0x14d1da[0x0][_0x5bf7('0x1a')],_0x18e5cf=_0x14d1da[0x0][_0x5bf7('0x5')];break;}}_0x2084e1({'table':_0x476941,'tableWidth':_0x20f5b1,'columnWidths':_0x29785b}),_0x5b0ef4[_0x5bf7('0xf')](_0x476941,{'commandName':_0x5bf7('0x9'),'commandParams':[{'tableWidth':_0x50a843,'columnWidths':_0x18e5cf}],'formatGroupId':_0x5bf7('0x24')},[],'resizeTable');});}['handleSuggestionDescription'](_0x41d7a3){const {data:_0x268104}=_0x41d7a3;if(_0x268104&&_0x5bf7('0x24')===_0x268104[_0x5bf7('0xe')]){const _0x81796b=_0x5bf7('0xd');return{'type':_0x5bf7('0x18'),'content':_0x2569b1(this['editor'][_0x5bf7('0x10')],_0x81796b)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4031=['selection','formatBlock','mapper','from','headingColumns','isBefore','getColumnIndexes','data-suggestion','createRange','parent','markerRange','commandParams','TableEditing','childCount','markBlockFormat','data','ck-suggestion-marker-','editor','getRowIndexes','commandName','TableUtils','TrackChangesEditing','consumable','requires','*Format:*\x20%0','change','downcastDispatcher','first','markerName','accept','commands','table','setTableRowHeader','getCellLocation','createPositionAfter','model','index','addClass','_splitMarkerName','addMarker:suggestion','document','enableCommand','end','registerCustomCallback','FORMAT_REGULAR_ROW','findAncestor','options','includes','createPositionBefore','showSuggestionHighlights','forceValue','getSelectionAffectedTableCells','registerDescriptionCallback','ck-suggestion-marker--active','writer','markerNameToElements','_suggestionFactory','get','afterInit','setTableColumnHeader','_descriptionFactory','value','getChild','getAttribute','last','item','plugins','has','getSuggestion','_acceptFormatSuggestionCallbackFactory','removeMarker:suggestion','locale','unbindElementFromMarkerName','createTableWalker','nodeBefore','editing','stop','format','removeClass','highest','nodeAfter'];(function(_0x1cebea,_0x40311b){const _0x19c8d1=function(_0x56dc98){while(--_0x56dc98){_0x1cebea['push'](_0x1cebea['shift']());}};_0x19c8d1(++_0x40311b);}(_0x4031,0xdd));const _0x19c8=function(_0x1cebea,_0x40311b){_0x1cebea=_0x1cebea-0x0;let _0x19c8d1=_0x4031[_0x1cebea];return _0x19c8d1;};import{Plugin as _0x421dc0}from'ckeditor5/src/core';import _0x2a9280 from'./table';import{getTranslation as _0x12110c}from'../utils/common-translations';export default class pt extends _0x421dc0{static get[_0x19c8('0x2d')](){return[_0x2a9280];}[_0x19c8('0x50')](){const _0x415897=this[_0x19c8('0x27')];if(!_0x415897['plugins'][_0x19c8('0x8')](_0x19c8('0x22')))return;const _0x2a1601=_0x415897[_0x19c8('0xc')],_0x4f6add=_0x415897['plugins'][_0x19c8('0x4f')](_0x19c8('0x2b')),_0x2c2eb3=_0x415897[_0x19c8('0x7')][_0x19c8('0x4f')](_0x19c8('0x2a')),_0x29c7fd=_0x415897[_0x19c8('0x7')][_0x19c8('0x4f')](_0x2a9280);function _0x545645({showActiveMarker:_0x463b01=!0x0,setDataAttribute:_0x19b040=!0x0}={}){return(_0xd66ac0,_0x2c627a,_0x6da3ef)=>{const {type:_0x4fe95f,id:_0x20bcb2}=_0x4f6add['_splitMarkerName'](_0x2c627a[_0x19c8('0x32')]),_0x1bc374=_0x4f6add[_0x19c8('0x9')](_0x20bcb2);if(!_0x1bc374[_0x19c8('0x25')]||_0x19c8('0x0')!=_0x1bc374[_0x19c8('0x25')]['commandName'])return;if(_0x2c627a[_0x19c8('0x6')])return void _0xd66ac0[_0x19c8('0x11')]();if(!_0x6da3ef[_0x19c8('0x2c')]['consume'](_0x2c627a['markerRange'],_0xd66ac0['name']))return;const _0x5040a0=_0x2c627a[_0x19c8('0x20')]['start'][_0x19c8('0x15')],_0x5427ce=_0x2c627a[_0x19c8('0x20')][_0x19c8('0x40')][_0x19c8('0xf')],_0x2c7348=_0x5040a0[_0x19c8('0x1f')][_0x19c8('0x1f')],{column:_0x222a5b}=_0x2c2eb3[_0x19c8('0x37')](_0x5040a0),{column:_0x12e7aa}=_0x2c2eb3[_0x19c8('0x37')](_0x5427ce);for(let _0x166de2=_0x222a5b;_0x166de2<=_0x12e7aa;_0x166de2++){const _0x3d2222=_0x2c2eb3[_0x19c8('0xe')](_0x2c7348,{'column':_0x166de2,'includeAllSlots':!0x1});for(const _0x3f26f4 of _0x3d2222){const _0x197953=_0x3f26f4['cell'],_0x91825b=_0x6da3ef['mapper']['toViewElement'](_0x197953);_0x6da3ef[_0x19c8('0x4c')][_0x19c8('0x3b')](_0x19c8('0x26')+_0x4fe95f,_0x91825b),_0x19b040&&_0x6da3ef['writer']['setAttribute'](_0x19c8('0x1d'),_0x20bcb2,_0x91825b),_0x6da3ef[_0x19c8('0x18')]['bindElementToMarker'](_0x91825b,_0x2c627a[_0x19c8('0x32')]),_0x463b01&&(_0x4f6add['activeMarkers'][_0x19c8('0x45')](_0x2c627a[_0x19c8('0x32')])?_0x6da3ef[_0x19c8('0x4c')]['addClass'](_0x19c8('0x4b'),_0x91825b):_0x6da3ef['writer'][_0x19c8('0x13')](_0x19c8('0x4b'),_0x91825b));}}};}_0x4f6add[_0x19c8('0x3f')]('setTableRowHeader',(_0x49cf72,_0x1e0122)=>{const _0x33f62f=_0x2c2eb3[_0x19c8('0x49')](_0x415897[_0x19c8('0x39')][_0x19c8('0x3e')]['selection']),_0x322206=_0x2c2eb3[_0x19c8('0x28')](_0x33f62f),_0x37d016=_0x33f62f[0x0][_0x19c8('0x43')]('table'),_0x52fa0c=_0x37d016[_0x19c8('0x4')]('headingRows')||0x0,_0x4ed69e=_0x1e0122&&null!==_0x1e0122[_0x19c8('0x48')]?_0x1e0122[_0x19c8('0x48')]:!_0x415897[_0x19c8('0x34')][_0x19c8('0x4f')](_0x19c8('0x36'))[_0x19c8('0x2')],_0x24d905=_0x4ed69e?_0x322206[_0x19c8('0x5')]:_0x322206[_0x19c8('0x31')],_0x2ee0e4=_0x37d016[_0x19c8('0x3')](_0x24d905);let _0x15b56f;if(_0x4ed69e){const _0x1e14e8=_0x37d016[_0x19c8('0x3')](_0x52fa0c);if(_0x2ee0e4[_0x19c8('0x3a')]<_0x1e14e8[_0x19c8('0x3a')])return;_0x15b56f=_0x415897[_0x19c8('0x39')][_0x19c8('0x1e')](_0x415897[_0x19c8('0x39')][_0x19c8('0x46')](_0x1e14e8[_0x19c8('0x3')](0x0)),_0x415897[_0x19c8('0x39')][_0x19c8('0x38')](_0x2ee0e4[_0x19c8('0x3')](_0x2ee0e4['childCount']-0x1)));}else{const _0x3c616b=_0x37d016[_0x19c8('0x3')](_0x52fa0c-0x1);if(!_0x3c616b)return;_0x15b56f=_0x415897[_0x19c8('0x39')][_0x19c8('0x1e')](_0x415897[_0x19c8('0x39')]['createPositionBefore'](_0x2ee0e4[_0x19c8('0x3')](0x0)),_0x415897[_0x19c8('0x39')][_0x19c8('0x38')](_0x3c616b[_0x19c8('0x3')](_0x3c616b[_0x19c8('0x23')]-0x1)));}_0x415897[_0x19c8('0x39')][_0x19c8('0x2f')](()=>{_0x4f6add['markBlockFormat'](_0x15b56f,{'commandName':_0x19c8('0x36'),'commandParams':[{'forceValue':_0x4ed69e}]},[],_0x19c8('0x36'));});}),_0x4f6add[_0x19c8('0x3f')]('setTableColumnHeader',(_0x1e4a9d,_0x4be42d)=>{const _0x5bf36b=_0x415897[_0x19c8('0x7')][_0x19c8('0x4f')](_0x19c8('0x2a')),_0x435176=_0x5bf36b[_0x19c8('0x49')](_0x415897['model'][_0x19c8('0x3e')][_0x19c8('0x16')]),_0x119361=_0x5bf36b[_0x19c8('0x1c')](_0x435176),_0x249ad7=_0x435176[0x0][_0x19c8('0x43')](_0x19c8('0x35')),_0x38c46d=_0x249ad7[_0x19c8('0x4')](_0x19c8('0x1a'))||0x0,_0x19e5fc=_0x4be42d&&null!==_0x4be42d[_0x19c8('0x48')]?_0x4be42d[_0x19c8('0x48')]:!_0x415897[_0x19c8('0x34')][_0x19c8('0x4f')](_0x19c8('0x0'))[_0x19c8('0x2')];let _0x5adb43;const _0x54ed69=_0x249ad7[_0x19c8('0x3')](0x0),_0x15f3f0=_0x19e5fc?_0x119361[_0x19c8('0x5')]:_0x119361[_0x19c8('0x31')],_0x244f67=_0x5bf36b[_0x19c8('0xe')](_0x249ad7,{'startRow':0x0,'column':_0x15f3f0,'includeAllSlots':!0x1}),_0x40e275=Array[_0x19c8('0x19')](_0x244f67)[0x0]['cell'];if(_0x19e5fc){const _0x41063f=_0x54ed69[_0x19c8('0x3')](_0x38c46d);if(_0x40e275[_0x19c8('0x1b')](_0x41063f))return;_0x5adb43=_0x415897[_0x19c8('0x39')][_0x19c8('0x1e')](_0x415897[_0x19c8('0x39')][_0x19c8('0x46')](_0x41063f),_0x415897[_0x19c8('0x39')][_0x19c8('0x38')](_0x40e275));}else{const _0x17b91f=_0x54ed69[_0x19c8('0x3')](_0x38c46d-0x1);if(!_0x17b91f)return;_0x5adb43=_0x415897[_0x19c8('0x39')][_0x19c8('0x1e')](_0x415897['model'][_0x19c8('0x46')](_0x40e275),_0x415897[_0x19c8('0x39')]['createPositionAfter'](_0x17b91f));}_0x415897[_0x19c8('0x39')]['change'](()=>{_0x4f6add[_0x19c8('0x24')](_0x5adb43,{'commandName':_0x19c8('0x0'),'commandParams':[{'forceValue':_0x19e5fc}]},[],_0x19c8('0x0'));});}),_0x415897[_0x19c8('0x10')][_0x19c8('0x30')]['on'](_0x19c8('0x3d'),_0x545645(),{'priority':_0x19c8('0x14')}),_0x415897[_0x19c8('0x25')][_0x19c8('0x30')]['on'](_0x19c8('0x3d'),(_0x20d78b,_0x1041c9,_0x4fd22e)=>{_0x4fd22e[_0x19c8('0x44')][_0x19c8('0x47')]&&_0x545645({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x20d78b,_0x1041c9,_0x4fd22e);},{'priority':_0x19c8('0x14')}),_0x415897['editing'][_0x19c8('0x30')]['on'](_0x19c8('0xb'),(_0x199dc5,_0x352472,_0x34c3b0)=>{const {type:_0x3b5e7a,id:_0x59088e}=_0x4f6add[_0x19c8('0x3c')](_0x352472[_0x19c8('0x32')]),_0x18eae9=_0x4f6add[_0x19c8('0x9')](_0x59088e);if(!_0x18eae9[_0x19c8('0x25')]||_0x19c8('0x0')!=_0x18eae9[_0x19c8('0x25')][_0x19c8('0x29')])return;const _0x24d494=_0x34c3b0[_0x19c8('0x18')][_0x19c8('0x4d')](_0x352472['markerName']);if(_0x24d494)for(const _0x4b82ec of _0x24d494)_0x34c3b0[_0x19c8('0x4c')][_0x19c8('0x13')](_0x19c8('0x26')+_0x3b5e7a,_0x4b82ec),_0x34c3b0[_0x19c8('0x4c')]['removeClass'](_0x19c8('0x4b'),_0x4b82ec),_0x34c3b0['writer']['removeAttribute']('data-suggestion',_0x4b82ec),_0x34c3b0[_0x19c8('0x18')][_0x19c8('0xd')](_0x4b82ec,_0x352472[_0x19c8('0x32')]);},{'priority':_0x19c8('0x14')}),_0x4f6add[_0x19c8('0x1')][_0x19c8('0x4a')](_0x1a5605=>{const {data:_0xb57a9f}=_0x1a5605;if(_0xb57a9f){if(_0x19c8('0x36')==_0xb57a9f['commandName']){const _0x1a7d04=_0xb57a9f[_0x19c8('0x21')][0x0][_0x19c8('0x48')];return _0xbc4054(_0x12110c(_0x2a1601,_0x1a7d04?'FORMAT_HEADER_ROW':_0x19c8('0x42')));}if(_0x19c8('0x0')==_0xb57a9f[_0x19c8('0x29')]){const _0xac4293=_0xb57a9f[_0x19c8('0x21')][0x0][_0x19c8('0x48')];return _0xbc4054(_0x12110c(_0x2a1601,_0xac4293?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}function _0xbc4054(_0x3f3529){return{'type':_0x19c8('0x12'),'content':_0x12110c(_0x2a1601,_0x19c8('0x2e'),_0x3f3529)};}});const _0x1b7b8a=_0x29c7fd[_0x19c8('0xa')]();_0x4f6add[_0x19c8('0x4e')][_0x19c8('0x41')](_0x19c8('0x17'),'setTableRowHeader',_0x19c8('0x33'),_0x1b7b8a),_0x4f6add[_0x19c8('0x4e')]['registerCustomCallback'](_0x19c8('0x17'),_0x19c8('0x0'),_0x19c8('0x33'),_0x1b7b8a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d56=['value','document','subType','TableUtils','cell','refresh','map','getCellLocation','format','markMultiRangeBlockFormat','formatBlock','enableCommand','TrackChangesEditing','return','afterInit','*Merge\x20cells*','change','_isForcedDefaultExecutionBlock','$graveyard','add','commands','locale','trackChanges','getFirstPosition','markBlockFormat','from','model','author','tableCell','fromRange','_tablePostFixingSubtypes','registerCustomCallback','mergeTableCellLeft','type','_acceptFormatSuggestionCallbackFactory','commandName','createRangeOn','_areSelectedCellsMergable','_descriptionFactory','has','mergeTableCells','getAncestors','accept','plugins','_areMergableCells','forceDefaultExecution','getSuggestions','rootName','isEnabled','mergeTableCellDown','splitTableCellVertically','_suggestionFactory','horizontally','set:isEnabled','*Split\x20cell:*\x20horizontally','getSelectionAffectedTableCells','selection','mergeTableCellUp','direction','splitTableCellHorizontally','root','editor','insertion','getRanges','mergeTableCellRight','get','element','length','size','low','detach','execute','isInContent','createTableWalker','containsRange','find','registerDescriptionCallback','setSelection'];(function(_0x5af56b,_0x2d566d){const _0xd3e36=function(_0x5e9a52){while(--_0x5e9a52){_0x5af56b['push'](_0x5af56b['shift']());}};_0xd3e36(++_0x2d566d);}(_0x2d56,0x7b));const _0xd3e3=function(_0x5af56b,_0x2d566d){_0x5af56b=_0x5af56b-0x0;let _0xd3e36=_0x2d56[_0x5af56b];return _0xd3e36;};import{Plugin as _0x5ac38b}from'ckeditor5/src/core';import _0x2c159e from'./table';import{LiveRange as _0xbf0cf9}from'ckeditor5/src/engine';import{getTranslation as _0x51dce2}from'../utils/common-translations';export default class dt extends _0x5ac38b{static get['requires'](){return[_0x2c159e];}[_0xd3e3('0x2f')](){const _0x49cea3=this[_0xd3e3('0x10')],_0x3c1b95=_0x49cea3[_0xd3e3('0x3b')][_0xd3e3('0x22')]['selection'],_0x484823=_0x49cea3[_0xd3e3('0x36')];if(!_0x49cea3['plugins'][_0xd3e3('0x48')]('TableEditing'))return;const _0x2befa3=_0x49cea3[_0xd3e3('0x4c')][_0xd3e3('0x14')]('TrackChangesEditing'),_0x512498=_0x49cea3[_0xd3e3('0x4c')][_0xd3e3('0x14')](_0xd3e3('0x24')),_0x29a947=_0x49cea3['plugins']['get'](_0x2c159e);_0x29a947[_0xd3e3('0x3f')]['push'](_0xd3e3('0x49')),_0x2befa3['enableCommand']('mergeTableCells',()=>{const _0x55eefd=_0x512498[_0xd3e3('0xa')](_0x49cea3[_0xd3e3('0x3b')][_0xd3e3('0x22')]['selection']);_0x49cea3[_0xd3e3('0x3b')][_0xd3e3('0x31')](()=>{_0x2befa3[_0xd3e3('0x2a')](_0x55eefd,{'commandName':_0xd3e3('0x49'),'commandParams':[]},[],_0xd3e3('0x49'));});}),_0x49cea3['commands']['get']('mergeTableCells')['on'](_0xd3e3('0x1a'),(_0x2ba682,_0x13a992)=>{_0x49cea3[_0xd3e3('0x35')][_0xd3e3('0x14')](_0xd3e3('0x37'))['value']&&(_0x13a992[_0xd3e3('0x16')]>0x0&&_0x13a992[_0x13a992[_0xd3e3('0x16')]-0x1]&&_0x13a992[_0x13a992[_0xd3e3('0x16')]-0x1][_0xd3e3('0x0')]||_0x2befa3[_0xd3e3('0x32')]||this[_0xd3e3('0x46')]()||_0x2ba682['stop']());},{'priority':'highest'});for(const _0x28341f of['mergeTableCellUp',_0xd3e3('0x13'),'mergeTableCellDown','mergeTableCellLeft']){const _0x3c9668=_0x49cea3[_0xd3e3('0x35')]['get'](_0x28341f);_0x2befa3[_0xd3e3('0x2c')](_0x28341f,()=>{const _0x11ef6d=_0x49cea3[_0xd3e3('0x3b')][_0xd3e3('0x22')][_0xd3e3('0xb')][_0xd3e3('0x38')]()[_0xd3e3('0x4a')]()['find'](_0xa6cd1a=>_0xa6cd1a['is'](_0xd3e3('0x15'),_0xd3e3('0x3d'))),_0x2d5019=_0x3c9668['value'];_0x49cea3[_0xd3e3('0x3b')][_0xd3e3('0x31')](()=>{_0x2befa3[_0xd3e3('0x2a')]([_0x11ef6d,_0x2d5019],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x527907 of[_0xd3e3('0x5'),'splitTableCellHorizontally']){const _0x9606d2=_0x49cea3[_0xd3e3('0x35')]['get'](_0x527907);_0x2befa3[_0xd3e3('0x2c')](_0x527907,()=>{const _0x5a1ce7=_0x512498[_0xd3e3('0xa')](_0x49cea3[_0xd3e3('0x3b')][_0xd3e3('0x22')][_0xd3e3('0xb')])[0x0],_0x98ee31=_0x5a1ce7['findAncestor']('table'),{column:_0x388f71,row:_0x13bf61}=_0x512498[_0xd3e3('0x28')](_0x5a1ce7);let _0x581b17=[];if(_0xd3e3('0x7')==_0x9606d2[_0xd3e3('0xd')]){const _0x412241=_0x512498['createTableWalker'](_0x98ee31,{'startRow':_0x13bf61,'endRow':_0x13bf61,'includeAllSlots':!0x0});_0x581b17=Array[_0xd3e3('0x3a')](_0x412241)[_0xd3e3('0x27')](_0x2d9538=>_0x2d9538['cell']);}else{const _0xf8381a=_0x512498[_0xd3e3('0x1c')](_0x98ee31,{'column':_0x388f71,'includeAllSlots':!0x0});_0x581b17=Array[_0xd3e3('0x3a')](_0xf8381a)['map'](_0x5a7d8e=>_0x5a7d8e[_0xd3e3('0x25')]);}_0x49cea3[_0xd3e3('0x3b')][_0xd3e3('0x31')](_0x9e1b33=>{_0x2befa3[_0xd3e3('0x39')](_0x9e1b33[_0xd3e3('0x45')](_0x5a1ce7),{'commandName':_0x527907,'commandParams':[]},_0x581b17,_0x527907);});});}_0x2befa3['_descriptionFactory']['registerDescriptionCallback'](_0x7b6e55=>{const {data:_0x5cc6b3}=_0x7b6e55;if(_0x5cc6b3)return'mergeTableCells'==_0x5cc6b3[_0xd3e3('0x44')]?{'type':_0xd3e3('0x29'),'content':_0x51dce2(_0x484823,_0xd3e3('0x30'))}:void 0x0;}),_0x2befa3[_0xd3e3('0x47')][_0xd3e3('0x1f')](_0x199266=>{const {data:_0xaa2632}=_0x199266;if(_0xaa2632)return _0xd3e3('0x5')==_0xaa2632[_0xd3e3('0x44')]?{'type':_0xd3e3('0x29'),'content':_0x51dce2(_0x484823,'*Split\x20cell:*\x20vertically')}:_0xd3e3('0xe')==_0xaa2632[_0xd3e3('0x44')]?{'type':_0xd3e3('0x29'),'content':_0x51dce2(_0x484823,_0xd3e3('0x9'))}:void 0x0;});const _0x1b4ad1=_0x29a947[_0xd3e3('0x43')]();for(const _0x5eac9b of[_0xd3e3('0xc'),_0xd3e3('0x13'),_0xd3e3('0x4'),'mergeTableCellLeft'])_0x2befa3[_0xd3e3('0x6')][_0xd3e3('0x40')]('formatBlock',_0x5eac9b,_0xd3e3('0x4b'),_0x1b4ad1);for(const _0x32c05e of[_0xd3e3('0x5'),_0xd3e3('0xe')])_0x2befa3['_suggestionFactory']['registerCustomCallback'](_0xd3e3('0x2b'),_0x32c05e,_0xd3e3('0x4b'),_0x1b4ad1);_0x2befa3[_0xd3e3('0x6')]['registerCustomCallback'](_0xd3e3('0x2b'),_0xd3e3('0x49'),'accept',_0x34d134=>{_0x49cea3[_0xd3e3('0x3b')][_0xd3e3('0x31')](_0x543730=>{const _0x2c7d2f=Array[_0xd3e3('0x3a')](_0x3c1b95[_0xd3e3('0x12')]())['map'](_0x390add=>_0xbf0cf9[_0xd3e3('0x3e')](_0x390add));_0x543730[_0xd3e3('0x20')](_0x34d134),_0x49cea3['commands'][_0xd3e3('0x14')](_0xd3e3('0x49'))[_0xd3e3('0x26')](),_0x49cea3[_0xd3e3('0x1a')](_0xd3e3('0x49'),{'forceDefaultExecution':!0x0});const _0xcc2322=_0x2c7d2f['filter'](_0x128402=>_0xd3e3('0x33')!=_0x128402[_0xd3e3('0xf')][_0xd3e3('0x2')]);_0xcc2322['length']>0x0&&_0x543730[_0xd3e3('0x20')](_0xcc2322);for(const _0x3ac5e6 of _0x2c7d2f)_0x3ac5e6[_0xd3e3('0x19')]();});});for(const _0x242727 of[_0xd3e3('0xc'),'mergeTableCellDown',_0xd3e3('0x41'),_0xd3e3('0x13')]){const _0x43ece5=_0x49cea3['commands']['get'](_0x242727);_0x43ece5['on'](_0xd3e3('0x8'),(_0x2ea105,_0x2a2c47,_0x5ba62e)=>{if(_0x5ba62e){const _0x23335c=_0x49cea3[_0xd3e3('0x3b')][_0xd3e3('0x22')][_0xd3e3('0xb')][_0xd3e3('0x38')]()[_0xd3e3('0x4a')]()[_0xd3e3('0x1e')](_0x29577b=>_0x29577b['is'](_0xd3e3('0x15'),_0xd3e3('0x3d')));this[_0xd3e3('0x4d')](_0x43ece5[_0xd3e3('0x21')],_0x23335c)||(_0x2ea105[_0xd3e3('0x2e')]=!0x1,_0x2ea105['stop']());}},{'priority':_0xd3e3('0x18')});}}['_areSelectedCellsMergable'](){const _0x4c3551=this[_0xd3e3('0x10')][_0xd3e3('0x35')][_0xd3e3('0x14')]('mergeTableCells'),_0x1e08f3=this['editor'][_0xd3e3('0x4c')][_0xd3e3('0x14')]('TableUtils');if(!_0x4c3551[_0xd3e3('0x3')])return!0x1;const _0xf8763e=_0x1e08f3[_0xd3e3('0xa')](this['editor'][_0xd3e3('0x3b')][_0xd3e3('0x22')][_0xd3e3('0xb')]);for(const _0x1e65e7 of _0xf8763e)for(const _0x5c33e5 of _0xf8763e)if(_0x1e65e7!=_0x5c33e5&&!this[_0xd3e3('0x4d')](_0x1e65e7,_0x5c33e5))return!0x1;return!0x0;}[_0xd3e3('0x4d')](_0x41a074,_0x675861){const _0x290404=this[_0xd3e3('0x10')][_0xd3e3('0x4c')][_0xd3e3('0x14')](_0xd3e3('0x2d')),_0x56d938=this['editor'][_0xd3e3('0x3b')][_0xd3e3('0x45')](_0x41a074),_0x3fc888=this[_0xd3e3('0x10')][_0xd3e3('0x3b')][_0xd3e3('0x45')](_0x675861),_0x234cec=new Set(),_0x30f0ae=new Set();for(const _0x118dde of _0x290404[_0xd3e3('0x1')]())if((_0xd3e3('0x11')==_0x118dde[_0xd3e3('0x42')]||'deletion'==_0x118dde[_0xd3e3('0x42')]||_0xd3e3('0x49')==_0x118dde[_0xd3e3('0x23')])&&_0x118dde[_0xd3e3('0x1b')])for(const _0xa9eeab of _0x118dde[_0xd3e3('0x12')]())_0xa9eeab[_0xd3e3('0x1d')](_0x56d938,!0x0)&&_0x234cec[_0xd3e3('0x34')](_0x118dde[_0xd3e3('0x42')]+':'+_0x118dde['author']['id']),_0xa9eeab['containsRange'](_0x3fc888,!0x0)&&_0x30f0ae[_0xd3e3('0x34')](_0x118dde[_0xd3e3('0x42')]+':'+_0x118dde[_0xd3e3('0x3c')]['id']);if(_0x234cec[_0xd3e3('0x17')]!=_0x30f0ae['size'])return!0x1;for(const _0x578bcf of _0x234cec)if(!_0x30f0ae[_0xd3e3('0x48')](_0x578bcf))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51cd=['insertTableOfContents','enableCommand','afterInit','tableOfContents','plugins','editor','commands','get','locale','registerElementLabel','ELEMENT_TABLE_OF_CONTENTS','TrackChangesEditing','_descriptionFactory'];(function(_0x2f0025,_0x51cdc1){const _0x473eb4=function(_0x5f4646){while(--_0x5f4646){_0x2f0025['push'](_0x2f0025['shift']());}};_0x473eb4(++_0x51cdc1);}(_0x51cd,0x129));const _0x473e=function(_0x2f0025,_0x51cdc1){_0x2f0025=_0x2f0025-0x0;let _0x473eb4=_0x51cd[_0x2f0025];return _0x473eb4;};import{Plugin as _0x3799a9}from'ckeditor5/src/core';import{getTranslation as _0x368762}from'../utils/common-translations';export default class bt extends _0x3799a9{[_0x473e('0x4')](){const _0x15c350=this[_0x473e('0x7')];if(!_0x15c350[_0x473e('0x8')][_0x473e('0x9')](_0x473e('0x2')))return;_0x15c350[_0x473e('0x6')][_0x473e('0x9')](_0x473e('0x0'))[_0x473e('0x3')](_0x473e('0x2'));const _0xb878cf=_0x15c350[_0x473e('0x6')][_0x473e('0x9')](_0x473e('0x0')),_0x10b9f3=_0x15c350[_0x473e('0xa')];_0xb878cf[_0x473e('0x1')][_0x473e('0xb')](_0x473e('0x5'),_0x12ab77=>_0x368762(_0x10b9f3,_0x473e('0xc'),_0x12ab77));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1dae=['editor','nodeAfter','_suggestionFactory','document','tableBorderColor','data','_getSuggestion','registerCustomCallback','TrackChangesTableProperties','tableCellProperties','afterInit','TableUtils','discard','handleSuggestionDescription','subType','TablePropertiesEditing','format','table','tableProperties','TableCellPropertiesEditing','selection','tableHeight','registerDescriptionCallback','accept','_handlePropertyChange','change','getAttribute','markBlockFormat','TrackChangesEditing','batch','tableCellBackgroundColor','locale','plugins','model','getSelectionAffectedTableCells','enqueueChange','tableCellHeight','formatBlock','tableCellBorderColor','get','enableCommand','tableCellPadding','commandParams','tableAlignment','getContainedElement','tableCellVerticalAlignment','has','getSuggestionCallback','join','*Format:*\x20change\x20table\x20properties','setAttribute','getFirstPosition','tableBorderWidth','tableCellHorizontalAlignment','tableCellBorderStyle'];(function(_0xff3e2d,_0x1daef1){const _0x59256f=function(_0x2f1b80){while(--_0x2f1b80){_0xff3e2d['push'](_0xff3e2d['shift']());}};_0x59256f(++_0x1daef1);}(_0x1dae,0xa7));const _0x5925=function(_0xff3e2d,_0x1daef1){_0xff3e2d=_0xff3e2d-0x0;let _0x59256f=_0x1dae[_0xff3e2d];return _0x59256f;};import{Plugin as _0x5b6de4}from'ckeditor5/src/core';import{getTranslation as _0x27b1f6}from'../utils/common-translations';export default class Ct extends _0x5b6de4{constructor(_0x5308ec){super(_0x5308ec),this[_0x5925('0x10')]=[_0x5925('0x2'),'tableBorderStyle',_0x5925('0x32'),_0x5925('0x29'),'tableWidth',_0x5925('0x13'),'tableBackgroundColor'],this[_0x5925('0x7')]=[_0x5925('0x24'),_0x5925('0x34'),'tableCellBorderWidth',_0x5925('0x27'),'tableCellWidth',_0x5925('0x22'),_0x5925('0x1c'),_0x5925('0x33'),_0x5925('0x2b')];}static get['pluginName'](){return _0x5925('0x6');}[_0x5925('0x8')](){const _0x9faa61=this[_0x5925('0x35')][_0x5925('0x1e')]['get'](_0x5925('0x1a'));if(this[_0x5925('0x35')]['plugins'][_0x5925('0x2c')](_0x5925('0xd'))){for(const _0xb79bad of this[_0x5925('0x10')])_0x9faa61[_0x5925('0x26')](_0xb79bad,(_0x48d5e0,_0x176e64)=>{const _0x2f5791=this[_0x5925('0x35')]['model']['document'][_0x5925('0x12')][_0x5925('0x31')]()['findAncestor'](_0x5925('0xf'));this['_handlePropertyChange'](_0xb79bad,[_0x2f5791],this[_0x5925('0x10')],_0x5925('0x10'),_0x48d5e0,_0x176e64);});_0x9faa61['_suggestionFactory']['registerCustomCallback'](_0x5925('0x23'),_0x5925('0x10'),_0x5925('0x15'),_0x9faa61[_0x5925('0x0')][_0x5925('0x2d')](_0x5925('0x23'),null,_0x5925('0xa'))),_0x9faa61[_0x5925('0x0')][_0x5925('0x5')]('formatBlock','tableProperties',_0x5925('0xa'),(_0x89ccbe,_0x3ad429)=>this['handleDiscardAction'](this['tableProperties'],_0x89ccbe,_0x3ad429)),_0x9faa61[_0x5925('0x0')][_0x5925('0x5')](_0x5925('0x23'),'tableProperties',_0x5925('0x2e'),()=>!0x1);}if(this[_0x5925('0x35')][_0x5925('0x1e')][_0x5925('0x2c')](_0x5925('0x11'))){for(const _0xffb8a8 of this[_0x5925('0x7')])_0x9faa61['enableCommand'](_0xffb8a8,(_0x48d140,_0x54955c)=>{const _0x1f5a11=this[_0x5925('0x35')][_0x5925('0x1e')][_0x5925('0x25')](_0x5925('0x9'))[_0x5925('0x20')](this[_0x5925('0x35')][_0x5925('0x1f')][_0x5925('0x1')][_0x5925('0x12')]);this['_handlePropertyChange'](_0xffb8a8,_0x1f5a11,this[_0x5925('0x7')],_0x5925('0x7'),_0x48d140,_0x54955c);});_0x9faa61[_0x5925('0x0')]['registerCustomCallback']('formatBlock','tableCellProperties',_0x5925('0x15'),_0x9faa61[_0x5925('0x0')]['getSuggestionCallback']('formatBlock',null,'discard')),_0x9faa61[_0x5925('0x0')][_0x5925('0x5')](_0x5925('0x23'),'tableCellProperties',_0x5925('0xa'),(_0x1fd83e,_0x1988ed)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1fd83e,_0x1988ed)),_0x9faa61[_0x5925('0x0')]['registerCustomCallback'](_0x5925('0x23'),'tableCellProperties',_0x5925('0x2e'),()=>!0x1);}_0x9faa61['_descriptionFactory'][_0x5925('0x14')](_0x58b568=>this['handleSuggestionDescription'](_0x58b568));}[_0x5925('0x16')](_0x3efa36,_0xf7934c,_0x461410,_0x54d6ce,_0x352eae,_0x3d3292){const _0x314c95=this[_0x5925('0x35')][_0x5925('0x1e')][_0x5925('0x25')](_0x5925('0x1a'));this[_0x5925('0x35')]['model'][_0x5925('0x21')](_0x3d3292[_0x5925('0x1b')],()=>{for(const _0x2567e1 of _0xf7934c){if(this[_0x5925('0x4')](_0x2567e1,_0x54d6ce))_0x352eae(_0x3d3292);else{const _0x4d41cc={};for(const _0xfdd05f of _0x461410){const _0x438b61=_0x2567e1[_0x5925('0x18')](_0xfdd05f);void 0x0!==_0x438b61&&(_0x4d41cc[_0xfdd05f]=_0x438b61);}_0x352eae(_0x3d3292),_0x314c95[_0x5925('0x19')](_0x2567e1,{'commandParams':[_0x4d41cc]},[],_0x54d6ce);}}});}['handleDiscardAction'](_0x25621c,_0x501572,_0x24c37b){const _0xb139d9=_0x501572[0x0]['start'][_0x5925('0x36')],_0x42637e=_0x24c37b[_0x5925('0x28')][0x0];this[_0x5925('0x35')][_0x5925('0x1f')][_0x5925('0x17')](_0x10557f=>{for(const _0x27b0d5 of _0x25621c)void 0x0!==_0x42637e[_0x27b0d5]?_0x10557f[_0x5925('0x30')](_0x27b0d5,_0x42637e[_0x27b0d5],_0xb139d9):_0x10557f['removeAttribute'](_0x27b0d5,_0xb139d9);});}[_0x5925('0xb')](_0x1546e5){if(_0x1546e5[_0x5925('0x3')])switch(_0x1546e5[_0x5925('0xc')]){case _0x5925('0x10'):return{'type':_0x5925('0xe'),'content':_0x27b1f6(this['editor'][_0x5925('0x1d')],_0x5925('0x2f'))};case _0x5925('0x7'):return{'type':_0x5925('0xe'),'content':_0x27b1f6(this['editor'][_0x5925('0x1d')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x5925('0x4')](_0x34ab91,_0x45e317){const _0x1ef194=this[_0x5925('0x35')][_0x5925('0x1e')][_0x5925('0x25')]('TrackChangesEditing');for(const _0x5acdc6 of _0x1ef194['getSuggestions']({'skipNotAttached':!0x0})){const _0x3a48cd=_0x5acdc6[_0x5925('0x2a')]();if(_0x5acdc6[_0x5925('0xc')]===_0x45e317&&_0x3a48cd===_0x34ab91)return _0x5acdc6;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d22=['get','TrackChangesEditing','enableCommand','afterInit','insertTemplate','Template'];(function(_0x2d521f,_0x2d22e4){const _0x4f0408=function(_0x5635cb){while(--_0x5635cb){_0x2d521f['push'](_0x2d521f['shift']());}};_0x4f0408(++_0x2d22e4);}(_0x2d22,0x122));const _0x4f04=function(_0x2d521f,_0x2d22e4){_0x2d521f=_0x2d521f-0x0;let _0x4f0408=_0x2d22[_0x2d521f];return _0x4f0408;};import{Plugin as _0x503f29}from'ckeditor5/src/core';export default class yt extends _0x503f29{[_0x4f04('0x1')](){const _0x3ed07c=this['editor'];_0x3ed07c['plugins']['has'](_0x4f04('0x3'))&&_0x3ed07c['plugins'][_0x4f04('0x4')](_0x4f04('0x5'))[_0x4f04('0x0')](_0x4f04('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5819=['removeMarker','getChangedMarkers','isTouching','differ','model','has','newRange','start','get','registerPostFixer','editor','getNearestSelectionRange','_splitMarkerName','_descriptionFactory','title-content','end','nodeBefore','element','createRange','plugins','afterInit','Title','document'];(function(_0x26f2d9,_0x581982){const _0x117dfa=function(_0x5289ca){while(--_0x5289ca){_0x26f2d9['push'](_0x26f2d9['shift']());}};_0x117dfa(++_0x581982);}(_0x5819,0x107));const _0x117d=function(_0x26f2d9,_0x581982){_0x26f2d9=_0x26f2d9-0x0;let _0x117dfa=_0x5819[_0x26f2d9];return _0x117dfa;};import{Plugin as _0x5021fb}from'ckeditor5/src/core';import{getTranslation as _0x9777b3}from'../utils/common-translations';export default class St extends _0x5021fb{[_0x117d('0xa')](){const _0x33f007=this[_0x117d('0x0')];if(!_0x33f007['plugins'][_0x117d('0x12')](_0x117d('0xb')))return;const _0x53eda4=_0x33f007[_0x117d('0x9')][_0x117d('0x15')]('TrackChangesEditing');_0x53eda4[_0x117d('0x3')]['registerElementLabel']('title-content',()=>_0x9777b3(_0x33f007['locale'],'ELEMENT_TITLE')),_0x33f007['model'][_0x117d('0xc')][_0x117d('0x16')](_0x2ac0aa=>{let _0x32c23e=!0x1;const _0x35a2a2=Array['from'](_0x33f007['model'][_0x117d('0xc')][_0x117d('0x10')][_0x117d('0xe')]());for(const {name:_0x5a27bb,data:_0x5352e8}of _0x35a2a2){const {group:_0x515adb}=_0x53eda4[_0x117d('0x2')](_0x5a27bb);if('suggestion'!==_0x515adb||!_0x5352e8['newRange'])continue;const _0x503a78=_0x5352e8[_0x117d('0x13')],_0x3d7d3a=_0x503a78[_0x117d('0x5')][_0x117d('0x6')];if(!_0x3d7d3a||!_0x3d7d3a['is'](_0x117d('0x7'),_0x117d('0x4')))continue;if(!_0x503a78[_0x117d('0x14')][_0x117d('0xf')](_0x503a78['end']))continue;const _0x25b247=_0x33f007[_0x117d('0x11')]['schema'][_0x117d('0x1')](_0x503a78[_0x117d('0x5')],'forward');if(_0x25b247&&_0x25b247['isCollapsed']){const _0x286095=_0x2ac0aa[_0x117d('0x8')](_0x503a78[_0x117d('0x14')],_0x25b247[_0x117d('0x14')]);_0x286095['isEqual'](_0x503a78)||(_0x2ac0aa['updateMarker'](_0x5a27bb,{'range':_0x286095}),_0x32c23e=!0x0);}_0x32c23e||(_0x2ac0aa[_0x117d('0xd')](_0x5a27bb),_0x32c23e=!0x0);}return _0x32c23e;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5808=['plugins','enableCommand','redo','afterInit','has','TrackChangesEditing','undo','editor'];(function(_0x296106,_0x58087a){const _0x2c0887=function(_0xb6d6ee){while(--_0xb6d6ee){_0x296106['push'](_0x296106['shift']());}};_0x2c0887(++_0x58087a);}(_0x5808,0x111));const _0x2c08=function(_0x296106,_0x58087a){_0x296106=_0x296106-0x0;let _0x2c0887=_0x5808[_0x296106];return _0x2c0887;};import{Plugin as _0x3959ea}from'ckeditor5/src/core';export default class It extends _0x3959ea{[_0x2c08('0x2')](){const _0x585dcb=this[_0x2c08('0x6')],_0x25d30a=_0x585dcb[_0x2c08('0x7')]['get'](_0x2c08('0x4'));_0x585dcb[_0x2c08('0x7')][_0x2c08('0x3')]('UndoEditing')&&(_0x25d30a['enableCommand'](_0x2c08('0x5')),_0x25d30a[_0x2c08('0x0')](_0x2c08('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5629=['isContent','start','elementEnd','model','writer','getItems','TrackChangesEditing','getCustomProperty','isAtEnd','previousPosition','test','get','insert','span','element','hasAttribute','mapper','listIndent','listItem','getWalker','includes','markerRange','isLimit','addClass','toViewElement','nextSibling','schema','createRangeOn','type','push','isBlock','item','markerName'];(function(_0x265d97,_0x562966){const _0x360833=function(_0x7c621f){while(--_0x7c621f){_0x265d97['push'](_0x265d97['shift']());}};_0x360833(++_0x562966);}(_0x5629,0x105));const _0x3608=function(_0x265d97,_0x562966){_0x265d97=_0x265d97-0x0;let _0x360833=_0x5629[_0x265d97];return _0x360833;};export function getRangesWithAttribute(_0x1a4a80,_0x40d170,_0x420a6f){const _0x3d1c02=[];for(const _0x43be12 of _0x40d170[_0x3608('0x8')]())_0x43be12[_0x3608('0x12')](_0x1a4a80)&&_0x3d1c02[_0x3608('0x20')](_0x420a6f[_0x3608('0x1e')](_0x43be12));return _0x3d1c02;}export function getElementsAffectedByListItemRename(_0x16923f){const _0x13b506=[];if(_0x16923f['is'](_0x3608('0x11'),_0x3608('0x15'))){let _0x3c5990=_0x16923f['nextSibling'];for(;_0x3c5990&&_0x3c5990['is']('element',_0x3608('0x15'))&&_0x3c5990['getAttribute'](_0x3608('0x14'))>0x0;)_0x13b506[_0x3608('0x20')](_0x3c5990),_0x3c5990=_0x3c5990['nextSibling'];}return _0x13b506;}export function downcastSplitMergeMarker(_0x22b1d2,_0xd00b24,{showActiveMarker:_0x4a4e11=!0x0}={}){const _0x20c25a=_0x22b1d2['plugins'][_0x3608('0xe')](_0x3608('0x9'));return(_0x11183d,_0xc8dbe4,_0x1606a0)=>{if(!_0x1606a0['consumable'][_0x3608('0xd')](_0xc8dbe4[_0x3608('0x18')],_0x11183d['name']))return;const _0x4a43c7=_0xc8dbe4[_0x3608('0x18')][_0x3608('0x16')](),_0x5aab44=_0xc8dbe4['markerRange'][_0x3608('0x4')],_0x4b0770=_0x22b1d2[_0x3608('0x6')][_0x3608('0x1d')];let _0x58260f=null,_0x265d90=null,_0x1c7cdf=!0x1,_0x38eff8=!0x1;for(const _0x246e0e of _0x4a43c7){const _0x5cd021=_0x246e0e[_0x3608('0x1')];_0x1c7cdf=_0x1c7cdf||_0x4b0770[_0x3608('0x3')](_0x5cd021);const _0x185ae6=_0x1606a0[_0x3608('0x13')][_0x3608('0x1b')](_0x5cd021);if(_0x185ae6&&_0x185ae6[_0x3608('0xa')]('addHighlight'))return;_0x3608('0x5')==_0x246e0e[_0x3608('0x1f')]&&(_0x4b0770[_0x3608('0x0')](_0x5cd021)&&!_0x4b0770[_0x3608('0x19')](_0x5cd021)&&(_0x5cd021[_0x3608('0x1c')]||_0x5aab44[_0x3608('0xb')]?_0x58260f&&_0x58260f['parent']==_0x5cd021||(_0x58260f=_0x5cd021,_0x19141d(_0x246e0e[_0x3608('0xc')]),_0x38eff8=!0x0):_0x265d90=_0x265d90||_0x246e0e['previousPosition']));}function _0x19141d(_0x3f02c6){const _0x1dd5e6=_0x1606a0[_0x3608('0x7')]['createUIElement'](_0x3608('0x10'),{'class':'ck-suggestion-marker-'+_0xd00b24}),_0x52bde4=_0x1606a0[_0x3608('0x13')]['toViewPosition'](_0x3f02c6);_0x4a4e11&&_0x20c25a['activeMarkers'][_0x3608('0x17')](_0xc8dbe4[_0x3608('0x2')])&&_0x1606a0[_0x3608('0x7')][_0x3608('0x1a')]('ck-suggestion-marker--active',_0x1dd5e6),_0x1606a0[_0x3608('0x7')][_0x3608('0xf')](_0x52bde4,_0x1dd5e6),_0x1606a0['mapper']['bindElementToMarker'](_0x1dd5e6,_0xc8dbe4[_0x3608('0x2')]);}_0x1c7cdf||_0x38eff8||!_0x265d90||_0x19141d(_0x265d90);};}
|