@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230810.0 → 0.0.0-nightly-20230811.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 _0x5ccb=['rows','fill','getSelectionAffectedTableCells','position','getMarkers','attributes','filter','tableCellHorizontalAlignment','registerCustomCallback','next','editingDowncast','suggestion:formatBlock:tablePasteCell','change','columnInsertionIndexes','entries','schema','clipboardOutput','join','removeColumns','trackChanges','getSuggestion','createRangeOn','insertContent','ck-suggestion-marker','setAttribute','table','plugins','Users','oldRange','insertColumns','cell','length','tablePaste','map','_createdBatches','getChildren','remove','find','move','deletion','get','push','from','getChanges','getContainedElement','createRangeIn','isEmpty','_getCoordsForCells','containsRange','markers','every','tableCellBackgroundColor','dataDowncast','insertRows','rowInsertionIndexes','some','markerToHighlight','differ','_splitMarkerName','_tablePostFixingSubtypes','removeRows','has','$graveyard','conversion','createElement','tableCell','TableUtils','columns','selection','cells','suggestionLoaded','deletionRanges','keys','previous','getRows','hasSuggestion','previousSibling','commands','tableCellBorderStyle','getChild','editor','add','startsWith','tablePasteColumn','insert','isInContent','_replaceTableSlotCell','high','batch','model','getColumns','view','first','start','type','_descriptionFactory','tablePasteRow','suggestionUnloaded','author','low','createRange','TableClipboard','createPositionBefore','getItems','getTableIfOnlyTableInContent','getChangedMarkers','formatBlock','tablePasteChainId','registerDescriptionCallback','unwrap','activeMarkers','listenTo','removeMarker','showSuggestionHighlights','isEqual','tableCellVerticalAlignment','element','set','_suggestionFactory','getRanges','newRange','getAllAdjacentSuggestions','markMultiRangeBlockFormat','updateMarker','getSuggestionCallback','getSuggestions','name','createTableWalker','documentSelection','insertion','markerName','fromEntries','root','_isForcedDefaultExecutionBlock','paragraph','getAttributes','last','tablePasteCell','suggestion-td','TrackChangesEditing','includes','accept','discard','suggestion','return','getRange','insertionRanges','afterInit','rowInsertionRanges','document','findAncestor','markMultiRangeInsertion','nodeAfter','elementToElement','markerAttributes','getShiftedBy','rootName','registerPostFixer','getColumnIndexes','endColumn','getRowIndexes','editing','end','redo','subType','tableCellSuggestion','register','ck-suggestion-marker--active'];(function(_0x116f42,_0x5ccb5b){const _0xaf3759=function(_0x177870){while(--_0x177870){_0x116f42['push'](_0x116f42['shift']());}};_0xaf3759(++_0x5ccb5b);}(_0x5ccb,0xad));const _0xaf37=function(_0x116f42,_0x5ccb5b){_0x116f42=_0x116f42-0x0;let _0xaf3759=_0x5ccb[_0x116f42];return _0xaf3759;};import{getTranslation as _0x5ece36}from'../utils/common-translations';import{Plugin as _0x1d3afe}from'ckeditor5/src/core';import{uid as _0x4b6786,priorities as _0x11887}from'ckeditor5/src/utils';import _0x300201 from'./table';const le=['tableCellBorderWidth','tableCellBorderColor',_0xaf37('0x49'),_0xaf37('0x2'),_0xaf37('0x6e'),_0xaf37('0x2e'),'tableCellPadding'],ae=Object[_0xaf37('0x7e')](le[_0xaf37('0x1c')](_0x4e7ba9=>[_0x4e7ba9,null]));export default class kt extends _0x1d3afe{static get['requires'](){return[_0x300201];}[_0xaf37('0x8e')](){const _0x9d1cb1=this[_0xaf37('0x4b')];if(!_0x9d1cb1[_0xaf37('0x15')][_0xaf37('0x38')](_0xaf37('0x60')))return;const _0x36813d=_0x9d1cb1[_0xaf37('0x15')][_0xaf37('0x23')](_0xaf37('0x86')),_0x52401e=_0x9d1cb1['plugins'][_0xaf37('0x23')](_0xaf37('0x3d')),_0x2cd4d6=_0x9d1cb1[_0xaf37('0x15')]['get'](_0x300201),_0x1ec4ed=_0x9d1cb1[_0xaf37('0x15')]['get']('TableClipboard');_0x2cd4d6[_0xaf37('0x36')][_0xaf37('0x24')](_0xaf37('0x5b'),_0xaf37('0x4e')),_0x9d1cb1['model'][_0xaf37('0xa')][_0xaf37('0xa1')](_0xaf37('0xa0'),{'allowIn':_0xaf37('0x3c'),'allowContentOf':_0xaf37('0x3c'),'isLimit':!0x0}),_0x9d1cb1['conversion'][_0xaf37('0x94')]({'model':_0xaf37('0xa0'),'view':_0xaf37('0x85')});let _0x47da1f=null;_0x9d1cb1[_0xaf37('0x54')]['on']('insertContent',(_0x215eb3,_0x1a3ae2)=>{const [_0xc20e22,_0x566c21]=_0x1a3ae2,_0x3a9649=_0x1a3ae2[_0x1a3ae2[_0xaf37('0x1a')]-0x1];_0x3a9649&&_0x3a9649['forceDefaultExecution']||_0x36813d[_0xaf37('0x80')]||this[_0xaf37('0x4b')][_0xaf37('0x48')][_0xaf37('0x23')](_0xaf37('0xe'))['value']&&function(_0x4c9aac,_0x16e765,_0x57cb72,_0x1b9d9e,_0x2e6a8d){if(_0x16e765&&!_0x16e765['is'](_0xaf37('0x7b')))return!0x1;const _0x230a25=_0x2e6a8d[_0xaf37('0x63')](_0x4c9aac,_0x57cb72);if(!_0x230a25||!fe(_0x230a25,void 0x0,_0x1b9d9e))return!0x1;const _0x841bbe=_0x1b9d9e[_0xaf37('0xa5')](_0x57cb72[_0xaf37('0x90')][_0xaf37('0x3f')]);if(!_0x841bbe[_0xaf37('0x1a')])return!0x1;const _0xb1aaec=_0x841bbe[0x0][_0xaf37('0x91')](_0xaf37('0x14')),_0x2477c1=_0x1b9d9e[_0xaf37('0x9b')](_0x841bbe),_0x51b556=_0x1b9d9e[_0xaf37('0x99')](_0x841bbe),_0x25ac2b={'startRow':_0x2477c1['first'],'endRow':_0x2477c1['last'],'startColumn':_0x51b556[_0xaf37('0x57')],'endColumn':_0x51b556[_0xaf37('0x83')]};return 0x1==_0x841bbe['length']&&(_0x25ac2b['endRow']+=_0x1b9d9e[_0xaf37('0x45')](_0x230a25)-0x1,_0x25ac2b[_0xaf37('0x9a')]+=_0x1b9d9e[_0xaf37('0x55')](_0x230a25)-0x1),fe(_0xb1aaec,_0x25ac2b,_0x1b9d9e);}(_0xc20e22,_0x566c21,_0x9d1cb1['model'],_0x52401e,_0x1ec4ed)&&(_0x215eb3['stop'](),_0x47da1f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x9d1cb1[_0xaf37('0x54')][_0xaf37('0x7')](()=>{_0x9d1cb1[_0xaf37('0x54')][_0xaf37('0x11')](_0x1a3ae2[0x0],_0x1a3ae2[0x1],_0x1a3ae2[0x2],{'forceDefaultExecution':!0x0});const _0x346f4c=_0x4b6786(),{rowInsertionRanges:_0x50d64c,columnInsertionRanges:_0x578c4d,insertionRanges:_0x4caf39,deletionRanges:_0x34fc3a,cells:_0x426895}=_0x47da1f;_0x50d64c[_0xaf37('0x1a')]&&_0x36813d['markMultiRangeInsertion'](_0x50d64c,_0xaf37('0x5b'),{'tablePasteChainId':_0x346f4c}),_0x578c4d[_0xaf37('0x1a')]&&_0x36813d[_0xaf37('0x92')](_0x578c4d,'tablePasteColumn',{'tablePasteChainId':_0x346f4c}),_0x4caf39[_0xaf37('0x1a')]&&_0x36813d['markMultiRangeInsertion'](_0x4caf39,_0xaf37('0x1b'),{'tablePasteChainId':_0x346f4c,'skipNestingCheck':!0x0}),_0x34fc3a['length']&&_0x36813d['markMultiRangeDeletion'](_0x34fc3a,_0xaf37('0x1b'),{'tablePasteChainId':_0x346f4c,'skipNestingCheck':!0x0});const _0x1dc597=_0x36813d[_0xaf37('0x75')](_0x426895[_0xaf37('0x1c')](({element:_0x14610d})=>_0x14610d),{'formatGroupId':_0x4b6786()},[],_0xaf37('0x84'),{'tablePasteChainId':_0x346f4c});if(_0x1dc597){const _0x48b95a=_0x1dc597[_0xaf37('0xa7')](),_0x4aaeba=[];for(const {element:_0x50ad9e,attributes:_0x14b21e}of _0x426895){if(!_0x14b21e)continue;const _0x1d8be3=_0x9d1cb1[_0xaf37('0x54')][_0xaf37('0x10')](_0x50ad9e),_0x2fdb3b=_0x48b95a[_0xaf37('0x20')](_0x27d2e1=>_0x27d2e1[_0xaf37('0x8c')]()[_0xaf37('0x6d')](_0x1d8be3));_0x2fdb3b&&_0x4aaeba[_0xaf37('0x24')]([_0x2fdb3b['name'],_0x14b21e]);}_0x4aaeba[_0xaf37('0x1a')]&&_0x1dc597[_0xaf37('0x13')](_0xaf37('0x95'),Object[_0xaf37('0x7e')](_0x4aaeba));}_0x47da1f=null;}));},{'priority':_0x11887['high']+0xa}),_0x9d1cb1[_0xaf37('0x15')][_0xaf37('0x23')](_0xaf37('0x60'))['on'](_0xaf37('0x51'),(_0x431605,_0x5cf212)=>{const [_0x2d4d36,_0x408a0d,,_0x2da717]=_0x5cf212;if(!_0x47da1f)return;_0x431605['stop']();const _0x468556=_0x2d4d36[_0xaf37('0x19')],_0x3d7d55=_0x408a0d,_0xbf8817=ce(_0x468556),_0x14b958=ce(_0x3d7d55);_0x431605[_0xaf37('0x8b')]=_0x468556;let _0x244493=null,_0x2c2029=null;if(_0x14b958||_0xbf8817){if(_0xbf8817&&!_0x14b958){_0x2da717['remove'](_0x468556[_0xaf37('0x4a')](0x0));for(const _0x5d92b8 of Array[_0xaf37('0x25')](_0x3d7d55[_0xaf37('0x1e')]()))_0x2da717[_0xaf37('0x4f')](_0x5d92b8,_0x468556,_0xaf37('0x9d'));const _0x29dc4f=_0x47da1f[_0xaf37('0x31')][_0xaf37('0x87')](_0x2d4d36['row']),_0x22d610=_0x47da1f['columnInsertionIndexes'][_0xaf37('0x87')](_0x2d4d36['column']);_0x29dc4f||_0x22d610||(_0x244493=_0x2da717[_0xaf37('0x28')](_0x468556));}else _0x14b958&&!_0xbf8817&&(_0x2c2029=_0x2da717['createRangeIn'](_0x468556));}else{const _0x3d8650=_0x2da717[_0xaf37('0x3b')](_0xaf37('0xa0')),_0x51d12e=_0x2da717[_0xaf37('0x3b')](_0xaf37('0xa0'));_0x2da717['wrap'](_0x2da717[_0xaf37('0x28')](_0x468556),_0x51d12e),_0x2da717[_0xaf37('0x4f')](_0x3d8650,_0x468556,0x0);for(const _0x276ea0 of Array[_0xaf37('0x25')](_0x3d7d55[_0xaf37('0x1e')]()))_0x2da717[_0xaf37('0x4f')](_0x276ea0,_0x3d8650,_0xaf37('0x9d'));_0x244493=_0x2da717[_0xaf37('0x10')](_0x3d8650),_0x2c2029=_0x2da717[_0xaf37('0x10')](_0x51d12e);}const _0x5a5c6f=Array[_0xaf37('0x25')](_0x3d7d55[_0xaf37('0x82')]())[_0xaf37('0x1')](([_0x88235c])=>le[_0xaf37('0x87')](_0x88235c));_0x47da1f[_0xaf37('0x40')]['push']({'element':_0x468556,'attributes':_0x5a5c6f[_0xaf37('0x1a')]?Object[_0xaf37('0x7e')](_0x5a5c6f):null}),_0x244493&&_0x47da1f[_0xaf37('0x8d')]['push'](_0x244493),_0x2c2029&&_0x47da1f[_0xaf37('0x42')][_0xaf37('0x24')](_0x2c2029);},{'priority':'high'}),_0x52401e['on'](_0xaf37('0x18'),(_0x26c3ec,_0x2d476c)=>{const [_0x17bde6,_0x29880c={}]=_0x2d476c;if(!_0x47da1f)return;const _0x289af4=_0x29880c['at']||0x0,_0x2e948a=_0x29880c[_0xaf37('0x3e')]||0x1;_0x47da1f[_0xaf37('0x8')]=new Array(_0x2e948a)[_0xaf37('0xa4')](_0x289af4)[_0xaf37('0x1c')]((_0x1694f9,_0x32c877)=>_0x1694f9+_0x32c877);for(const {cell:_0x5d1cd3}of _0x52401e[_0xaf37('0x7a')](_0x17bde6,{'startColumn':_0x289af4,'endColumn':_0x289af4+_0x2e948a-0x1}))_0x47da1f['columnInsertionRanges'][_0xaf37('0x24')](_0x9d1cb1[_0xaf37('0x54')][_0xaf37('0x10')](_0x5d1cd3));},{'priority':_0xaf37('0x5e')}),_0x52401e['on'](_0xaf37('0x30'),(_0x2b48ff,_0x37e3c2)=>{const [_0x202b61,_0xc98ee2={}]=_0x37e3c2;if(!_0x47da1f)return;const _0x2d1b59=_0xc98ee2['at']||0x0,_0x4179cd=_0xc98ee2[_0xaf37('0xa3')]||0x1;_0x47da1f[_0xaf37('0x31')]=new Array(_0x4179cd)[_0xaf37('0xa4')](_0x2d1b59)[_0xaf37('0x1c')]((_0x5eea6c,_0x3845a5)=>_0x5eea6c+_0x3845a5);for(const {cell:_0x229dd5}of _0x52401e['createTableWalker'](_0x202b61,{'startRow':_0x2d1b59,'endRow':_0x2d1b59+_0x4179cd-0x1}))_0x47da1f[_0xaf37('0x8f')][_0xaf37('0x24')](_0x9d1cb1[_0xaf37('0x54')][_0xaf37('0x10')](_0x229dd5));},{'priority':_0xaf37('0x5e')}),_0x36813d[_0xaf37('0x5a')][_0xaf37('0x67')](_0xfedc7=>{if(_0xfedc7[_0xaf37('0x9f')]&&_0xfedc7[_0xaf37('0x9f')][_0xaf37('0x4d')](_0xaf37('0x1b')))return _0xfedc7[_0xaf37('0x44')]?{}:{'type':_0xaf37('0x7c'),'content':_0x5ece36(_0x9d1cb1['locale'],'*Replace\x20table\x20cells*')};});const _0x21d70b=()=>{};for(const _0x2ba2e6 of[_0xaf37('0x1b'),_0xaf37('0x4e'),_0xaf37('0x5b'),'tablePasteCell'])_0x36813d['_suggestionFactory'][_0xaf37('0x3')]('insertion',_0x2ba2e6,'join',_0x21d70b),_0x36813d[_0xaf37('0x71')]['registerCustomCallback'](_0xaf37('0x22'),_0x2ba2e6,_0xaf37('0xc'),_0x21d70b);_0x36813d['_suggestionFactory'][_0xaf37('0x3')](_0xaf37('0x65'),_0xaf37('0x84'),'discard',_0x21d70b),_0x36813d[_0xaf37('0x71')][_0xaf37('0x3')](_0xaf37('0x65'),_0xaf37('0x84'),_0xaf37('0x88'),(_0x3eadfc,_0x5c1913,_0x53903c)=>{const _0x29a2af=_0x3eadfc[_0xaf37('0x1c')](_0x236d9e=>_0x236d9e[_0xaf37('0x27')]())[_0xaf37('0x1')](_0x2a44bc=>_0x2a44bc),_0x51eb76=new Map(_0x29a2af['map'](_0x39749f=>[_0x39749f,null]));if(_0x47da1f)for(const {element:_0x55a438,attributes:_0x27ac4c}of _0x47da1f[_0xaf37('0x40')])_0x27ac4c&&_0x51eb76[_0xaf37('0x70')](_0x55a438,_0x27ac4c);else{if(_0x53903c&&_0x53903c['markerAttributes'])for(const [_0x21ab81,_0x22c2ba]of Object[_0xaf37('0x9')](_0x53903c[_0xaf37('0x95')])){const _0x53baa4=_0x9d1cb1[_0xaf37('0x54')][_0xaf37('0x2c')][_0xaf37('0x23')](_0x21ab81),_0x2c9997=_0x53baa4?_0x53baa4[_0xaf37('0x8c')]()[_0xaf37('0x27')]():null;_0x2c9997&&_0x51eb76['set'](_0x2c9997,_0x22c2ba);}}_0x9d1cb1['model'][_0xaf37('0x7')](_0x90f394=>{for(const [_0x5330a3,_0x132841]of _0x51eb76)_0x90f394['setAttributes']({...ae,..._0x132841},_0x5330a3);});});const _0x3baa89=(_0xfaba36,_0x13f02d)=>{_0x36813d[_0xaf37('0x71')][_0xaf37('0x3')](_0xfaba36,_0xaf37('0x1b'),_0x13f02d,(_0x1aae2b,_0x33fde9,_0xa96fea)=>{_0x9d1cb1[_0xaf37('0x54')][_0xaf37('0x7')](_0x365aea=>{const _0x16b33c=[];for(const _0x45c5c6 of _0x1aae2b){const _0x4e49f7=_0x45c5c6[_0xaf37('0x58')][_0xaf37('0x93')];_0x4e49f7['is']('element',_0xaf37('0xa0'))&&_0x16b33c['push'](_0x4e49f7);}_0x36813d[_0xaf37('0x71')][_0xaf37('0x77')](_0xfaba36,null,_0x13f02d)(_0x1aae2b,_0x33fde9,_0xa96fea);for(const _0x21533e of _0x16b33c)_0xaf37('0x39')!=_0x21533e[_0xaf37('0x7f')][_0xaf37('0x97')]&&_0x365aea['unwrap'](_0x21533e);});});};_0x3baa89(_0xaf37('0x7c'),_0xaf37('0x88')),_0x3baa89('insertion',_0xaf37('0x89')),_0x3baa89(_0xaf37('0x22'),'accept'),_0x3baa89(_0xaf37('0x22'),'discard'),_0x36813d['_suggestionFactory'][_0xaf37('0x3')](_0xaf37('0x7c'),_0xaf37('0x5b'),_0xaf37('0x89'),_0x226ca3=>{const _0x2da25e=_0x226ca3['map'](_0x445394=>_0x445394[_0xaf37('0x27')]()),_0x12f2cd=_0x2da25e[0x0][_0xaf37('0x91')](_0xaf37('0x14')),{minRow:_0xb16928,maxRow:_0x42cb26}=_0x2cd4d6[_0xaf37('0x2a')](_0x2da25e);_0x52401e[_0xaf37('0x37')](_0x12f2cd,{'at':_0xb16928,'rows':_0x42cb26-_0xb16928+0x1});}),_0x36813d[_0xaf37('0x71')][_0xaf37('0x3')](_0xaf37('0x7c'),_0xaf37('0x4e'),_0xaf37('0x89'),_0x3a00c9=>{const _0x1c4166=_0x3a00c9[_0xaf37('0x1c')](_0xe145e6=>_0xe145e6[_0xaf37('0x27')]()),_0xb7856e=_0x1c4166[0x0][_0xaf37('0x91')](_0xaf37('0x14')),{minColumn:_0x4bde18,maxColumn:_0x388894}=_0x2cd4d6[_0xaf37('0x2a')](_0x1c4166);_0x52401e[_0xaf37('0xd')](_0xb7856e,{'at':_0x4bde18,'columns':_0x388894-_0x4bde18+0x1});});const _0x2aa6eb=(_0x1306bc,_0x5043ff)=>{if(!_0x5043ff[_0xaf37('0x9f')]||!_0x5043ff[_0xaf37('0x9f')][_0xaf37('0x4d')]('tablePaste'))return;const _0x359182=_0x5043ff[_0xaf37('0x0')]['tablePasteChainId'],_0xc73e58=_0x36813d['getSuggestions']()[_0xaf37('0x1')](_0x3bf9e9=>_0x3bf9e9[_0xaf37('0x50')]&&_0x3bf9e9['attributes']&&_0x3bf9e9[_0xaf37('0x0')][_0xaf37('0x66')]==_0x359182);_0xc73e58[_0xaf37('0x1a')]&&_0x5043ff[_0xaf37('0x74')]()['length']!=_0xc73e58['length']&&_0xc73e58['reduce']((_0x1b8171,_0x2bf14b)=>(_0x1b8171[_0xaf37('0x4')]=_0x2bf14b,_0x2bf14b[_0xaf37('0x44')]=_0x1b8171,_0x2bf14b));};function _0x9f7c03(_0x5cacc2,_0x5dfc2e=!0x0){const {id:_0x245f2d}=_0x36813d['_splitMarkerName'](_0x5cacc2[_0xaf37('0x7d')]),_0x341ca1=[_0xaf37('0x12'),'ck-suggestion-marker-insertion'],_0x295d6e=_0x36813d[_0xaf37('0x69')]['includes'](_0x5cacc2[_0xaf37('0x7d')]);return _0x295d6e&&_0x341ca1[_0xaf37('0x24')](_0xaf37('0xa2')),{'classes':_0x341ca1,'attributes':{'data-suggestion':_0x245f2d},'priority':_0x295d6e&&_0x5dfc2e?0xbc2:0xbb8};}_0x36813d['on'](_0xaf37('0x41'),_0x2aa6eb,{'priority':_0xaf37('0x52')}),_0x36813d['on'](_0xaf37('0x5c'),_0x2aa6eb,{'priority':_0xaf37('0x52')}),_0x9d1cb1[_0xaf37('0x54')][_0xaf37('0x90')][_0xaf37('0x98')](()=>{let _0xc91b5d=!0x1;const _0x30e3a5=Array[_0xaf37('0x25')](_0x9d1cb1[_0xaf37('0x54')][_0xaf37('0x90')][_0xaf37('0x34')][_0xaf37('0x64')]());for(const {name:_0x4924db,data:_0x4bdbb1}of _0x30e3a5){const {group:_0x49752b,type:_0x470d97,id:_0x302ca1}=_0x36813d['_splitMarkerName'](_0x4924db);if('suggestion'!=_0x49752b||_0xaf37('0x22')!=_0x470d97||_0x4bdbb1[_0xaf37('0x17')])continue;if(!_0x36813d[_0xaf37('0x46')](_0x302ca1))continue;const _0x241da1=_0x36813d[_0xaf37('0xf')](_0x302ca1)[_0xaf37('0x72')](),_0x4c4906=_0x9d1cb1[_0xaf37('0x15')][_0xaf37('0x23')]('Users')['me'];for(const _0x3da15b of _0x36813d[_0xaf37('0x78')]()){if(!_0x3da15b[_0xaf37('0x50')]||_0x3da15b[_0xaf37('0x5d')]!=_0x4c4906)continue;if(_0xaf37('0x65')!=_0x3da15b[_0xaf37('0x59')]||_0xaf37('0x84')!=_0x3da15b[_0xaf37('0x9f')])continue;if(_0x3da15b[_0xaf37('0x72')]()[_0xaf37('0x2d')](_0x3298ae=>_0x241da1[_0xaf37('0x32')](_0x2f0382=>_0x2f0382[_0xaf37('0x2b')](_0x3298ae,!0x0))))for(const _0x1a8a1e of _0x3da15b['getAllAdjacentSuggestions']())_0x1a8a1e[_0xaf37('0x50')]&&(_0x1a8a1e[_0xaf37('0x89')](),_0xc91b5d=!0x0);}}return _0xc91b5d;}),_0x9d1cb1[_0xaf37('0x54')][_0xaf37('0x90')][_0xaf37('0x98')](_0x41a031=>{const _0x2f4728=_0x9d1cb1[_0xaf37('0x48')]['get'](_0xaf37('0x9e'));if(!_0x2f4728||!_0x2f4728[_0xaf37('0x1d')]['has'](_0x41a031[_0xaf37('0x53')]))return!0x1;let _0x1a24c7=!0x1;const _0x576290=_0x9d1cb1['plugins'][_0xaf37('0x23')]('Users')['me'],_0x3c030a=_0x9d1cb1[_0xaf37('0x54')][_0xaf37('0x90')]['differ'][_0xaf37('0x26')](),_0x178647=Array[_0xaf37('0x25')](_0x9d1cb1[_0xaf37('0x54')][_0xaf37('0x90')][_0xaf37('0x34')][_0xaf37('0x64')]())[_0xaf37('0x1')](({name:_0x88c209,data:_0x34abcc})=>{const {group:_0x141332,subType:_0x1d8698,authorId:_0x3982f9}=_0x36813d[_0xaf37('0x35')](_0x88c209);return _0xaf37('0x8a')==_0x141332&&_0xaf37('0x1b')==_0x1d8698&&_0x3982f9==_0x576290['id']&&!_0x34abcc[_0xaf37('0x17')];});for(const _0x37d89d of _0x3c030a){if(_0xaf37('0x4f')!=_0x37d89d[_0xaf37('0x59')]||_0xaf37('0xa0')!=_0x37d89d[_0xaf37('0x79')]||0x1!=_0x37d89d['length'])continue;const _0x341d5b=_0x41a031[_0xaf37('0x5f')](_0x37d89d[_0xaf37('0xa6')],_0x37d89d['position'][_0xaf37('0x96')](0x1));if(!_0x178647[_0xaf37('0x20')](({data:_0x583f81})=>_0x583f81[_0xaf37('0x73')][_0xaf37('0x6d')](_0x341d5b)))for(const {name:_0x241063,data:_0x380117}of _0x178647)if(_0x341d5b[_0xaf37('0x2b')](_0x380117['newRange'])){_0x41a031[_0xaf37('0x76')](_0x241063,{'range':_0x341d5b}),_0x1a24c7=!0x0;break;}}return _0x1a24c7;}),_0x9d1cb1['model'][_0xaf37('0x90')][_0xaf37('0x98')](_0x4306c7=>{let _0x647202=!0x1;const _0x56d442=_0x9d1cb1[_0xaf37('0x15')]['get'](_0xaf37('0x16'))['me'],_0x223e0c=_0x36813d['getSuggestions']()[_0xaf37('0x1')](_0x4a5465=>_0x4a5465[_0xaf37('0x50')]&&_0x4a5465['author']==_0x56d442),_0x1b93d2=new Set(),_0xb44414=new Set();for(const _0x517ceb of _0x223e0c)if(_0xaf37('0x1b')==_0x517ceb[_0xaf37('0x9f')])for(const _0x4a6f32 of _0x517ceb['getMarkers']()){const _0x349d91=_0x4a6f32[_0xaf37('0x8c')]()[_0xaf37('0x27')]();if(_0x349d91){if(_0x349d91['is'](_0xaf37('0x6f'),_0xaf37('0xa0'))&&ce(_0x349d91)){_0x517ceb[_0xaf37('0x6b')](_0x4a6f32[_0xaf37('0x79')]),_0x1b93d2['add'](_0x349d91),_0x647202=!0x0;const _0x15ae90=_0x349d91['nextSibling'],_0x42b9fe=_0x349d91[_0xaf37('0x47')],_0x2eea56=_0x15ae90&&_0x15ae90['is'](_0xaf37('0x6f'),'tableCellSuggestion'),_0x116934=_0x42b9fe&&_0x42b9fe['is'](_0xaf37('0x6f'),_0xaf37('0xa0'));_0x2eea56&&!_0x1b93d2[_0xaf37('0x38')](_0x15ae90)&&_0xb44414['add'](_0x15ae90),_0x116934&&!_0x1b93d2[_0xaf37('0x38')](_0x42b9fe)&&_0xb44414[_0xaf37('0x4c')](_0x42b9fe);}else _0x349d91['is'](_0xaf37('0x6f'),_0xaf37('0x81'))&&_0x349d91[_0xaf37('0x29')]&&(_0x517ceb['removeMarker'](_0x4a6f32['name']),_0x647202=!0x0);}}else{if(_0xaf37('0x84')==_0x517ceb['subType']){if(!_0x517ceb['attributes']||!_0x517ceb['attributes'][_0xaf37('0x66')])continue;const _0x354f48=_0x517ceb['attributes']['markerAttributes'];if(_0x354f48&&Object[_0xaf37('0x43')](_0x354f48)['length'])continue;const _0x48b8b8=_0x517ceb[_0xaf37('0x0')][_0xaf37('0x66')];let _0x29ed39=!0x0,_0x1c196c=!0x0;for(const _0x238daf of _0x223e0c)if(_0x238daf[_0xaf37('0x9f')]&&_0x238daf[_0xaf37('0x9f')][_0xaf37('0x4d')]('tablePaste')){if(!_0x238daf['attributes']['tablePasteChainId']){_0x1c196c=!0x1;break;}if(_0x238daf['id']!=_0x517ceb['id']&&_0x238daf[_0xaf37('0x0')][_0xaf37('0x66')]==_0x48b8b8){_0x29ed39=!0x1;break;}}_0x1c196c&&_0x29ed39&&(_0x517ceb['removeMarkers'](),_0x647202=!0x0);}}for(const _0x1d715a of _0x1b93d2)_0x4306c7[_0xaf37('0x1f')](_0x1d715a);for(const _0x40ee7a of _0xb44414)_0x4306c7[_0xaf37('0x68')](_0x40ee7a);return _0x647202;}),_0x9d1cb1['conversion']['for'](_0xaf37('0x5'))['markerToHighlight']({'model':_0xaf37('0x6'),'view':(_0x1eb10f,_0x103de1)=>_0x9f7c03(_0x1eb10f),'converterPriority':_0xaf37('0x52')}),_0x9d1cb1[_0xaf37('0x3a')]['for'](_0xaf37('0x2f'))[_0xaf37('0x33')]({'model':_0xaf37('0x6'),'view':(_0xa7cec7,_0x4735f4)=>_0x4735f4['options'][_0xaf37('0x6c')]?_0x9f7c03(_0xa7cec7,!0x1):null,'converterPriority':_0xaf37('0x52')});const _0x1f569f=_0x9d1cb1[_0xaf37('0x9c')][_0xaf37('0x56')];this[_0xaf37('0x6a')](_0x1f569f[_0xaf37('0x90')],_0xaf37('0xb'),(_0x11e786,_0x363e43)=>{const _0x5141be=[];for(const _0x406e1c of _0x1f569f['createRangeIn'](_0x363e43['content'])[_0xaf37('0x62')]())_0x406e1c['is'](_0xaf37('0x6f'),_0xaf37('0x85'))&&_0x5141be[_0xaf37('0x24')](_0x406e1c);_0x1f569f[_0xaf37('0x7')](_0x364e3b=>{for(const _0xe7c1af of _0x5141be)_0x364e3b[_0xaf37('0x21')](_0x364e3b[_0xaf37('0x28')](_0xe7c1af),_0x364e3b[_0xaf37('0x61')](_0xe7c1af)),_0x364e3b[_0xaf37('0x1f')](_0xe7c1af);});});}}function ce(_0xd4ae45){if(_0xd4ae45[_0xaf37('0x29')])return!0x0;const _0x8ec325=_0xd4ae45[_0xaf37('0x4a')](0x0);return _0x8ec325['is'](_0xaf37('0x6f'),'paragraph')&&_0x8ec325[_0xaf37('0x29')];}function fe(_0x46cbf8,_0x5c1987={},_0x36e9cf){for(const {isAnchor:_0x1e970a,cellHeight:_0x229409,cellWidth:_0x3fe74a}of _0x36e9cf[_0xaf37('0x7a')](_0x46cbf8,{'includeAllSlots':!0x0,..._0x5c1987}))if(!_0x1e970a||0x1!=_0x229409||0x1!=_0x3fe74a)return!0x1;return!0x0;}
|
|
23
|
+
const _0x10a2=['editingDowncast','schema','markers','insertion','rows','markerAttributes','editing','wrap','change','getRanges','position','registerCustomCallback','fill','tableCell','getAllAdjacentSuggestions','unwrap','markMultiRangeInsertion','element','getAttributes','getRowIndexes','markerToHighlight','getChildren','start','value','listenTo','getRows','endColumn','registerDescriptionCallback','redo','createTableWalker','paragraph','columnInsertionRanges','model','suggestion:formatBlock:tablePasteCell','last','TrackChangesEditing','nextSibling','insert','cells','Users','row','reduce','getMarkers','deletionRanges','getColumnIndexes','some','getChild','tablePasteCell','suggestionLoaded','getTableIfOnlyTableInContent','createRangeIn','ck-suggestion-marker-insertion','column','remove','tableCellSuggestion','selection','deletion','setAttributes','isEmpty','previous','clipboardOutput','options','createElement','attributes','findAncestor','getShiftedBy','length','cell','from','tablePasteRow','insertColumns','containsRange','set','elementToElement','getRange','rootName','tablePaste','suggestionUnloaded','discard','rowInsertionIndexes','trackChanges','tableCellBorderColor','ck-suggestion-marker--active','$graveyard','_replaceTableSlotCell','formatBlock','fromEntries','hasSuggestion','endRow','add','type','filter','forceDefaultExecution','get','getSuggestion','root','join','tableCellVerticalAlignment','afterInit','subType','stop','tablePasteColumn','table','tableCellBorderStyle','isInContent','createRangeOn','first','has','view','newRange','author','suggestion','removeMarker','return','getColumns','ck-suggestion-marker','columnInsertionIndexes','end','activeMarkers','getContainedElement','getItems','tableCellHorizontalAlignment','createRange','every','differ','getChangedMarkers','removeMarkers','commands','plugins','getSuggestionCallback','_createdBatches','_tablePostFixingSubtypes','tablePasteChainId','registerPostFixer','getChanges','getSuggestions','markMultiRangeDeletion','nodeAfter','low','accept','getSelectionAffectedTableCells','push','for','map','oldRange','_splitMarkerName','tableCellBackgroundColor','high','includes','TableClipboard','suggestion-td','startsWith','document','name','_getCoordsForCells','markerName','rowInsertionRanges','entries','find','showSuggestionHighlights','documentSelection','setAttribute','_suggestionFactory','_descriptionFactory'];(function(_0x4ae7a0,_0x10a26d){const _0x55d570=function(_0x16d821){while(--_0x16d821){_0x4ae7a0['push'](_0x4ae7a0['shift']());}};_0x55d570(++_0x10a26d);}(_0x10a2,0x19e));const _0x55d5=function(_0x4ae7a0,_0x10a26d){_0x4ae7a0=_0x4ae7a0-0x0;let _0x55d570=_0x10a2[_0x4ae7a0];return _0x55d570;};import{getTranslation as _0x267cd4}from'../utils/common-translations';import{Plugin as _0x39a7e8}from'ckeditor5/src/core';import{uid as _0x19ee79,priorities as _0x303a0d}from'ckeditor5/src/utils';import _0x1e97d2 from'./table';const le=['tableCellBorderWidth',_0x55d5('0x9f'),_0x55d5('0x11'),_0x55d5('0x23'),_0x55d5('0xb'),_0x55d5('0x3c'),'tableCellPadding'],ae=Object[_0x55d5('0x0')](le[_0x55d5('0x39')](_0x5c1c01=>[_0x5c1c01,null]));export default class kt extends _0x39a7e8{static get['requires'](){return[_0x1e97d2];}[_0x55d5('0xc')](){const _0x1297a7=this['editor'];if(!_0x1297a7['plugins'][_0x55d5('0x15')](_0x55d5('0x3f')))return;const _0x28e8f2=_0x1297a7['plugins'][_0x55d5('0x7')](_0x55d5('0x71')),_0x282a12=_0x1297a7[_0x55d5('0x2a')][_0x55d5('0x7')]('TableUtils'),_0x3301fd=_0x1297a7[_0x55d5('0x2a')][_0x55d5('0x7')](_0x1e97d2),_0x10c6e1=_0x1297a7[_0x55d5('0x2a')][_0x55d5('0x7')]('TableClipboard');_0x3301fd[_0x55d5('0x2d')][_0x55d5('0x37')]('tablePasteRow','tablePasteColumn'),_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x4f')]['register']('tableCellSuggestion',{'allowIn':_0x55d5('0x5b'),'allowContentOf':_0x55d5('0x5b'),'isLimit':!0x0}),_0x1297a7['conversion'][_0x55d5('0x97')]({'model':'tableCellSuggestion','view':_0x55d5('0x40')});let _0x54c1b9=null;_0x1297a7[_0x55d5('0x6e')]['on']('insertContent',(_0x451c8c,_0x46a0fb)=>{const [_0x5c7577,_0x5681a8]=_0x46a0fb,_0x769460=_0x46a0fb[_0x46a0fb[_0x55d5('0x90')]-0x1];_0x769460&&_0x769460[_0x55d5('0x6')]||_0x28e8f2['_isForcedDefaultExecutionBlock']||this['editor'][_0x55d5('0x29')][_0x55d5('0x7')](_0x55d5('0x9e'))[_0x55d5('0x65')]&&function(_0x2b38df,_0x32054f,_0x5ef307,_0x37eb9a,_0x45317e){if(_0x32054f&&!_0x32054f['is'](_0x55d5('0x4a')))return!0x1;const _0x58d7d3=_0x45317e[_0x55d5('0x7f')](_0x2b38df,_0x5ef307);if(!_0x58d7d3||!fe(_0x58d7d3,void 0x0,_0x37eb9a))return!0x1;const _0x45b9bd=_0x37eb9a[_0x55d5('0x36')](_0x5ef307[_0x55d5('0x42')][_0x55d5('0x85')]);if(!_0x45b9bd[_0x55d5('0x90')])return!0x1;const _0x164f33=_0x45b9bd[0x0]['findAncestor'](_0x55d5('0x10')),_0x5c5c18=_0x37eb9a[_0x55d5('0x61')](_0x45b9bd),_0x19adab=_0x37eb9a[_0x55d5('0x7a')](_0x45b9bd),_0x239b05={'startRow':_0x5c5c18[_0x55d5('0x14')],'endRow':_0x5c5c18[_0x55d5('0x70')],'startColumn':_0x19adab[_0x55d5('0x14')],'endColumn':_0x19adab[_0x55d5('0x70')]};return 0x1==_0x45b9bd[_0x55d5('0x90')]&&(_0x239b05[_0x55d5('0x2')]+=_0x37eb9a[_0x55d5('0x67')](_0x58d7d3)-0x1,_0x239b05[_0x55d5('0x68')]+=_0x37eb9a[_0x55d5('0x1c')](_0x58d7d3)-0x1),fe(_0x164f33,_0x239b05,_0x37eb9a);}(_0x5c7577,_0x5681a8,_0x1297a7['model'],_0x282a12,_0x10c6e1)&&(_0x451c8c[_0x55d5('0xe')](),_0x54c1b9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1297a7[_0x55d5('0x6e')]['change'](()=>{_0x1297a7[_0x55d5('0x6e')]['insertContent'](_0x46a0fb[0x0],_0x46a0fb[0x1],_0x46a0fb[0x2],{'forceDefaultExecution':!0x0});const _0x3a5b6a=_0x19ee79(),{rowInsertionRanges:_0x16146f,columnInsertionRanges:_0x4f17c4,insertionRanges:_0x2497ac,deletionRanges:_0x5496ce,cells:_0x32a737}=_0x54c1b9;_0x16146f[_0x55d5('0x90')]&&_0x28e8f2[_0x55d5('0x5e')](_0x16146f,_0x55d5('0x93'),{'tablePasteChainId':_0x3a5b6a}),_0x4f17c4[_0x55d5('0x90')]&&_0x28e8f2[_0x55d5('0x5e')](_0x4f17c4,_0x55d5('0xf'),{'tablePasteChainId':_0x3a5b6a}),_0x2497ac[_0x55d5('0x90')]&&_0x28e8f2[_0x55d5('0x5e')](_0x2497ac,_0x55d5('0x9a'),{'tablePasteChainId':_0x3a5b6a,'skipNestingCheck':!0x0}),_0x5496ce['length']&&_0x28e8f2[_0x55d5('0x32')](_0x5496ce,_0x55d5('0x9a'),{'tablePasteChainId':_0x3a5b6a,'skipNestingCheck':!0x0});const _0x2a62f2=_0x28e8f2['markMultiRangeBlockFormat'](_0x32a737[_0x55d5('0x39')](({element:_0x55771c})=>_0x55771c),{'formatGroupId':_0x19ee79()},[],_0x55d5('0x7d'),{'tablePasteChainId':_0x3a5b6a});if(_0x2a62f2){const _0x200fa1=_0x2a62f2[_0x55d5('0x78')](),_0x2b7425=[];for(const {element:_0x380544,attributes:_0x5c917f}of _0x32a737){if(!_0x5c917f)continue;const _0x42049b=_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x13')](_0x380544),_0x524d33=_0x200fa1[_0x55d5('0x48')](_0x3d8815=>_0x3d8815[_0x55d5('0x98')]()['isEqual'](_0x42049b));_0x524d33&&_0x2b7425[_0x55d5('0x37')]([_0x524d33['name'],_0x5c917f]);}_0x2b7425[_0x55d5('0x90')]&&_0x2a62f2[_0x55d5('0x4b')]('markerAttributes',Object[_0x55d5('0x0')](_0x2b7425));}_0x54c1b9=null;}));},{'priority':_0x303a0d[_0x55d5('0x3d')]+0xa}),_0x1297a7[_0x55d5('0x2a')]['get'](_0x55d5('0x3f'))['on'](_0x55d5('0xa2'),(_0x444a0a,_0x4e5515)=>{const [_0x4f04f2,_0x4d08a1,,_0x458626]=_0x4e5515;if(!_0x54c1b9)return;_0x444a0a['stop']();const _0x3dd11d=_0x4f04f2[_0x55d5('0x91')],_0x47ca07=_0x4d08a1,_0x3ea340=ce(_0x3dd11d),_0x40526b=ce(_0x47ca07);_0x444a0a[_0x55d5('0x1b')]=_0x3dd11d;let _0x7cb6e5=null,_0x376bd7=null;if(_0x40526b||_0x3ea340){if(_0x3ea340&&!_0x40526b){_0x458626['remove'](_0x3dd11d[_0x55d5('0x7c')](0x0));for(const _0x2534dc of Array[_0x55d5('0x92')](_0x47ca07['getChildren']()))_0x458626[_0x55d5('0x73')](_0x2534dc,_0x3dd11d,_0x55d5('0x1f'));const _0x3f0eff=_0x54c1b9[_0x55d5('0x9d')][_0x55d5('0x3e')](_0x4f04f2[_0x55d5('0x76')]),_0x1945a2=_0x54c1b9[_0x55d5('0x1e')][_0x55d5('0x3e')](_0x4f04f2[_0x55d5('0x82')]);_0x3f0eff||_0x1945a2||(_0x7cb6e5=_0x458626[_0x55d5('0x80')](_0x3dd11d));}else _0x40526b&&!_0x3ea340&&(_0x376bd7=_0x458626[_0x55d5('0x80')](_0x3dd11d));}else{const _0xb68f=_0x458626['createElement'](_0x55d5('0x84')),_0x157ad6=_0x458626[_0x55d5('0x8c')](_0x55d5('0x84'));_0x458626[_0x55d5('0x55')](_0x458626['createRangeIn'](_0x3dd11d),_0x157ad6),_0x458626[_0x55d5('0x73')](_0xb68f,_0x3dd11d,0x0);for(const _0x5161c5 of Array[_0x55d5('0x92')](_0x47ca07[_0x55d5('0x63')]()))_0x458626[_0x55d5('0x73')](_0x5161c5,_0xb68f,_0x55d5('0x1f'));_0x7cb6e5=_0x458626[_0x55d5('0x13')](_0xb68f),_0x376bd7=_0x458626['createRangeOn'](_0x157ad6);}const _0x5ad7d9=Array[_0x55d5('0x92')](_0x47ca07[_0x55d5('0x60')]())[_0x55d5('0x5')](([_0x3f20fb])=>le[_0x55d5('0x3e')](_0x3f20fb));_0x54c1b9[_0x55d5('0x74')][_0x55d5('0x37')]({'element':_0x3dd11d,'attributes':_0x5ad7d9[_0x55d5('0x90')]?Object[_0x55d5('0x0')](_0x5ad7d9):null}),_0x7cb6e5&&_0x54c1b9['insertionRanges']['push'](_0x7cb6e5),_0x376bd7&&_0x54c1b9[_0x55d5('0x79')][_0x55d5('0x37')](_0x376bd7);},{'priority':_0x55d5('0x3d')}),_0x282a12['on'](_0x55d5('0x94'),(_0x3f8117,_0x2eec42)=>{const [_0x515ce5,_0x46d5cf={}]=_0x2eec42;if(!_0x54c1b9)return;const _0x510bca=_0x46d5cf['at']||0x0,_0xba4f05=_0x46d5cf['columns']||0x1;_0x54c1b9[_0x55d5('0x1e')]=new Array(_0xba4f05)[_0x55d5('0x5a')](_0x510bca)[_0x55d5('0x39')]((_0x3e819e,_0x5db857)=>_0x3e819e+_0x5db857);for(const {cell:_0x59d7a0}of _0x282a12[_0x55d5('0x6b')](_0x515ce5,{'startColumn':_0x510bca,'endColumn':_0x510bca+_0xba4f05-0x1}))_0x54c1b9[_0x55d5('0x6d')]['push'](_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x13')](_0x59d7a0));},{'priority':_0x55d5('0x34')}),_0x282a12['on']('insertRows',(_0x5a1764,_0x3acb1a)=>{const [_0x4d19f3,_0x24ba60={}]=_0x3acb1a;if(!_0x54c1b9)return;const _0x5327f1=_0x24ba60['at']||0x0,_0x50f849=_0x24ba60[_0x55d5('0x52')]||0x1;_0x54c1b9[_0x55d5('0x9d')]=new Array(_0x50f849)[_0x55d5('0x5a')](_0x5327f1)[_0x55d5('0x39')]((_0x2da548,_0x2623ed)=>_0x2da548+_0x2623ed);for(const {cell:_0x1d1298}of _0x282a12[_0x55d5('0x6b')](_0x4d19f3,{'startRow':_0x5327f1,'endRow':_0x5327f1+_0x50f849-0x1}))_0x54c1b9[_0x55d5('0x46')][_0x55d5('0x37')](_0x1297a7['model'][_0x55d5('0x13')](_0x1d1298));},{'priority':_0x55d5('0x34')}),_0x28e8f2[_0x55d5('0x4d')][_0x55d5('0x69')](_0x4033aa=>{if(_0x4033aa[_0x55d5('0xd')]&&_0x4033aa[_0x55d5('0xd')][_0x55d5('0x41')]('tablePaste'))return _0x4033aa['previous']?{}:{'type':_0x55d5('0x51'),'content':_0x267cd4(_0x1297a7['locale'],'*Replace\x20table\x20cells*')};});const _0x5b52b3=()=>{};for(const _0x21a9ed of[_0x55d5('0x9a'),_0x55d5('0xf'),'tablePasteRow',_0x55d5('0x7d')])_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x59')](_0x55d5('0x51'),_0x21a9ed,_0x55d5('0xa'),_0x5b52b3),_0x28e8f2[_0x55d5('0x4c')]['registerCustomCallback'](_0x55d5('0x86'),_0x21a9ed,'join',_0x5b52b3);_0x28e8f2[_0x55d5('0x4c')]['registerCustomCallback'](_0x55d5('0xa3'),_0x55d5('0x7d'),_0x55d5('0x9c'),_0x5b52b3),_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x59')](_0x55d5('0xa3'),_0x55d5('0x7d'),_0x55d5('0x35'),(_0xa12438,_0x1465ee,_0x2a5cf2)=>{const _0x35a9a6=_0xa12438['map'](_0x3680c2=>_0x3680c2['getContainedElement']())[_0x55d5('0x5')](_0x48aa34=>_0x48aa34),_0x5496bc=new Map(_0x35a9a6['map'](_0x38a915=>[_0x38a915,null]));if(_0x54c1b9)for(const {element:_0x20378d,attributes:_0x3443f1}of _0x54c1b9[_0x55d5('0x74')])_0x3443f1&&_0x5496bc[_0x55d5('0x96')](_0x20378d,_0x3443f1);else{if(_0x2a5cf2&&_0x2a5cf2[_0x55d5('0x53')])for(const [_0x393d4e,_0x350e22]of Object[_0x55d5('0x47')](_0x2a5cf2[_0x55d5('0x53')])){const _0x7fb2aa=_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x50')][_0x55d5('0x7')](_0x393d4e),_0xa71d0b=_0x7fb2aa?_0x7fb2aa[_0x55d5('0x98')]()[_0x55d5('0x21')]():null;_0xa71d0b&&_0x5496bc['set'](_0xa71d0b,_0x350e22);}}_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x56')](_0xfd918b=>{for(const [_0x16a108,_0x48ba2f]of _0x5496bc)_0xfd918b[_0x55d5('0x87')]({...ae,..._0x48ba2f},_0x16a108);});});const _0x5b28aa=(_0x61772e,_0x158f80)=>{_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x59')](_0x61772e,_0x55d5('0x9a'),_0x158f80,(_0x3c2dea,_0x35af6a,_0x6a3604)=>{_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x56')](_0x2d39fe=>{const _0x2f8fc=[];for(const _0x250407 of _0x3c2dea){const _0x57920d=_0x250407[_0x55d5('0x64')][_0x55d5('0x33')];_0x57920d['is'](_0x55d5('0x5f'),_0x55d5('0x84'))&&_0x2f8fc['push'](_0x57920d);}_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x2b')](_0x61772e,null,_0x158f80)(_0x3c2dea,_0x35af6a,_0x6a3604);for(const _0x3d9b92 of _0x2f8fc)_0x55d5('0xa1')!=_0x3d9b92[_0x55d5('0x9')][_0x55d5('0x99')]&&_0x2d39fe[_0x55d5('0x5d')](_0x3d9b92);});});};_0x5b28aa(_0x55d5('0x51'),_0x55d5('0x35')),_0x5b28aa(_0x55d5('0x51'),_0x55d5('0x9c')),_0x5b28aa(_0x55d5('0x86'),_0x55d5('0x35')),_0x5b28aa(_0x55d5('0x86'),_0x55d5('0x9c')),_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x59')](_0x55d5('0x51'),'tablePasteRow',_0x55d5('0x9c'),_0x90e4fc=>{const _0x350ccb=_0x90e4fc[_0x55d5('0x39')](_0x189eac=>_0x189eac[_0x55d5('0x21')]()),_0x90e887=_0x350ccb[0x0][_0x55d5('0x8e')]('table'),{minRow:_0x28be8e,maxRow:_0x5bdd17}=_0x3301fd[_0x55d5('0x44')](_0x350ccb);_0x282a12['removeRows'](_0x90e887,{'at':_0x28be8e,'rows':_0x5bdd17-_0x28be8e+0x1});}),_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x59')](_0x55d5('0x51'),_0x55d5('0xf'),_0x55d5('0x9c'),_0x52b452=>{const _0x210faa=_0x52b452[_0x55d5('0x39')](_0x5cdbab=>_0x5cdbab['getContainedElement']()),_0x1d5df3=_0x210faa[0x0][_0x55d5('0x8e')]('table'),{minColumn:_0x14d627,maxColumn:_0x12c4c5}=_0x3301fd[_0x55d5('0x44')](_0x210faa);_0x282a12['removeColumns'](_0x1d5df3,{'at':_0x14d627,'columns':_0x12c4c5-_0x14d627+0x1});});const _0xba96f0=(_0x32ac5b,_0x5752d1)=>{if(!_0x5752d1[_0x55d5('0xd')]||!_0x5752d1['subType']['startsWith'](_0x55d5('0x9a')))return;const _0x3a0d97=_0x5752d1[_0x55d5('0x8d')][_0x55d5('0x2e')],_0x33f435=_0x28e8f2[_0x55d5('0x31')]()['filter'](_0x5de553=>_0x5de553[_0x55d5('0x12')]&&_0x5de553[_0x55d5('0x8d')]&&_0x5de553[_0x55d5('0x8d')][_0x55d5('0x2e')]==_0x3a0d97);_0x33f435['length']&&_0x5752d1[_0x55d5('0x5c')]()[_0x55d5('0x90')]!=_0x33f435[_0x55d5('0x90')]&&_0x33f435[_0x55d5('0x77')]((_0x2df3f9,_0x4fdf62)=>(_0x2df3f9['next']=_0x4fdf62,_0x4fdf62[_0x55d5('0x89')]=_0x2df3f9,_0x4fdf62));};function _0xd6468f(_0x5f2000,_0x2851ea=!0x0){const {id:_0x1fdce6}=_0x28e8f2[_0x55d5('0x3b')](_0x5f2000['markerName']),_0x141240=[_0x55d5('0x1d'),_0x55d5('0x81')],_0x3d6465=_0x28e8f2[_0x55d5('0x20')]['includes'](_0x5f2000[_0x55d5('0x45')]);return _0x3d6465&&_0x141240[_0x55d5('0x37')](_0x55d5('0xa0')),{'classes':_0x141240,'attributes':{'data-suggestion':_0x1fdce6},'priority':_0x3d6465&&_0x2851ea?0xbc2:0xbb8};}_0x28e8f2['on'](_0x55d5('0x7e'),_0xba96f0,{'priority':_0x55d5('0x3d')}),_0x28e8f2['on'](_0x55d5('0x9b'),_0xba96f0,{'priority':_0x55d5('0x3d')}),_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x42')][_0x55d5('0x2f')](()=>{let _0x5d28a3=!0x1;const _0x3678f6=Array['from'](_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x42')][_0x55d5('0x26')][_0x55d5('0x27')]());for(const {name:_0xdcdbb4,data:_0x1c23d9}of _0x3678f6){const {group:_0x4c6d1d,type:_0x4ef505,id:_0x31e52e}=_0x28e8f2['_splitMarkerName'](_0xdcdbb4);if(_0x55d5('0x19')!=_0x4c6d1d||_0x55d5('0x86')!=_0x4ef505||_0x1c23d9[_0x55d5('0x3a')])continue;if(!_0x28e8f2[_0x55d5('0x1')](_0x31e52e))continue;const _0x116e75=_0x28e8f2[_0x55d5('0x8')](_0x31e52e)[_0x55d5('0x57')](),_0x3fcd60=_0x1297a7['plugins'][_0x55d5('0x7')](_0x55d5('0x75'))['me'];for(const _0x20953d of _0x28e8f2[_0x55d5('0x31')]()){if(!_0x20953d['isInContent']||_0x20953d[_0x55d5('0x18')]!=_0x3fcd60)continue;if('formatBlock'!=_0x20953d[_0x55d5('0x4')]||_0x55d5('0x7d')!=_0x20953d[_0x55d5('0xd')])continue;if(_0x20953d['getRanges']()[_0x55d5('0x25')](_0x592b1c=>_0x116e75[_0x55d5('0x7b')](_0x3ad641=>_0x3ad641[_0x55d5('0x95')](_0x592b1c,!0x0))))for(const _0x486407 of _0x20953d[_0x55d5('0x5c')]())_0x486407[_0x55d5('0x12')]&&(_0x486407[_0x55d5('0x9c')](),_0x5d28a3=!0x0);}}return _0x5d28a3;}),_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x42')][_0x55d5('0x2f')](_0x16d9e9=>{const _0x33c825=_0x1297a7['commands'][_0x55d5('0x7')](_0x55d5('0x6a'));if(!_0x33c825||!_0x33c825[_0x55d5('0x2c')]['has'](_0x16d9e9['batch']))return!0x1;let _0x2f6db7=!0x1;const _0xadaa4e=_0x1297a7['plugins'][_0x55d5('0x7')](_0x55d5('0x75'))['me'],_0x336c11=_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x42')]['differ'][_0x55d5('0x30')](),_0x3aa14c=Array[_0x55d5('0x92')](_0x1297a7[_0x55d5('0x6e')]['document'][_0x55d5('0x26')][_0x55d5('0x27')]())[_0x55d5('0x5')](({name:_0x1242ab,data:_0x10f602})=>{const {group:_0x255c6a,subType:_0x3b44d1,authorId:_0x22f425}=_0x28e8f2['_splitMarkerName'](_0x1242ab);return _0x55d5('0x19')==_0x255c6a&&_0x55d5('0x9a')==_0x3b44d1&&_0x22f425==_0xadaa4e['id']&&!_0x10f602[_0x55d5('0x3a')];});for(const _0x118754 of _0x336c11){if(_0x55d5('0x73')!=_0x118754[_0x55d5('0x4')]||'tableCellSuggestion'!=_0x118754[_0x55d5('0x43')]||0x1!=_0x118754[_0x55d5('0x90')])continue;const _0x5ccc93=_0x16d9e9[_0x55d5('0x24')](_0x118754['position'],_0x118754[_0x55d5('0x58')][_0x55d5('0x8f')](0x1));if(!_0x3aa14c[_0x55d5('0x48')](({data:_0x241839})=>_0x241839[_0x55d5('0x17')]['isEqual'](_0x5ccc93)))for(const {name:_0x3e07c3,data:_0x31a5e9}of _0x3aa14c)if(_0x5ccc93[_0x55d5('0x95')](_0x31a5e9[_0x55d5('0x17')])){_0x16d9e9['updateMarker'](_0x3e07c3,{'range':_0x5ccc93}),_0x2f6db7=!0x0;break;}}return _0x2f6db7;}),_0x1297a7['model'][_0x55d5('0x42')][_0x55d5('0x2f')](_0x586cff=>{let _0x35fa3d=!0x1;const _0x10ed07=_0x1297a7[_0x55d5('0x2a')][_0x55d5('0x7')](_0x55d5('0x75'))['me'],_0x1cdec0=_0x28e8f2['getSuggestions']()[_0x55d5('0x5')](_0x29b98a=>_0x29b98a[_0x55d5('0x12')]&&_0x29b98a[_0x55d5('0x18')]==_0x10ed07),_0x4a96d7=new Set(),_0x1be6d9=new Set();for(const _0x3b47e5 of _0x1cdec0)if('tablePaste'==_0x3b47e5[_0x55d5('0xd')])for(const _0x11d17c of _0x3b47e5[_0x55d5('0x78')]()){const _0x3a2d6a=_0x11d17c['getRange']()[_0x55d5('0x21')]();if(_0x3a2d6a){if(_0x3a2d6a['is'](_0x55d5('0x5f'),'tableCellSuggestion')&&ce(_0x3a2d6a)){_0x3b47e5['removeMarker'](_0x11d17c['name']),_0x4a96d7[_0x55d5('0x3')](_0x3a2d6a),_0x35fa3d=!0x0;const _0x10efa9=_0x3a2d6a[_0x55d5('0x72')],_0x3ce23c=_0x3a2d6a['previousSibling'],_0x2d5d0c=_0x10efa9&&_0x10efa9['is']('element','tableCellSuggestion'),_0x4bf0bd=_0x3ce23c&&_0x3ce23c['is'](_0x55d5('0x5f'),_0x55d5('0x84'));_0x2d5d0c&&!_0x4a96d7['has'](_0x10efa9)&&_0x1be6d9[_0x55d5('0x3')](_0x10efa9),_0x4bf0bd&&!_0x4a96d7[_0x55d5('0x15')](_0x3ce23c)&&_0x1be6d9[_0x55d5('0x3')](_0x3ce23c);}else _0x3a2d6a['is'](_0x55d5('0x5f'),_0x55d5('0x6c'))&&_0x3a2d6a[_0x55d5('0x88')]&&(_0x3b47e5[_0x55d5('0x1a')](_0x11d17c[_0x55d5('0x43')]),_0x35fa3d=!0x0);}}else{if('tablePasteCell'==_0x3b47e5[_0x55d5('0xd')]){if(!_0x3b47e5[_0x55d5('0x8d')]||!_0x3b47e5[_0x55d5('0x8d')][_0x55d5('0x2e')])continue;const _0x4b5df1=_0x3b47e5[_0x55d5('0x8d')][_0x55d5('0x53')];if(_0x4b5df1&&Object['keys'](_0x4b5df1)['length'])continue;const _0x42865e=_0x3b47e5['attributes']['tablePasteChainId'];let _0x5dcb89=!0x0,_0x45da5a=!0x0;for(const _0x287a87 of _0x1cdec0)if(_0x287a87['subType']&&_0x287a87[_0x55d5('0xd')]['startsWith'](_0x55d5('0x9a'))){if(!_0x287a87[_0x55d5('0x8d')][_0x55d5('0x2e')]){_0x45da5a=!0x1;break;}if(_0x287a87['id']!=_0x3b47e5['id']&&_0x287a87[_0x55d5('0x8d')][_0x55d5('0x2e')]==_0x42865e){_0x5dcb89=!0x1;break;}}_0x45da5a&&_0x5dcb89&&(_0x3b47e5[_0x55d5('0x28')](),_0x35fa3d=!0x0);}}for(const _0x31cc06 of _0x4a96d7)_0x586cff['remove'](_0x31cc06);for(const _0x201904 of _0x1be6d9)_0x586cff[_0x55d5('0x5d')](_0x201904);return _0x35fa3d;}),_0x1297a7['conversion'][_0x55d5('0x38')](_0x55d5('0x4e'))[_0x55d5('0x62')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x9852f1,_0x3a73b9)=>_0xd6468f(_0x9852f1),'converterPriority':_0x55d5('0x3d')}),_0x1297a7['conversion'][_0x55d5('0x38')]('dataDowncast')[_0x55d5('0x62')]({'model':_0x55d5('0x6f'),'view':(_0x202bec,_0x261773)=>_0x261773[_0x55d5('0x8b')][_0x55d5('0x49')]?_0xd6468f(_0x202bec,!0x1):null,'converterPriority':'high'});const _0x2ce9cf=_0x1297a7[_0x55d5('0x54')][_0x55d5('0x16')];this[_0x55d5('0x66')](_0x2ce9cf[_0x55d5('0x42')],_0x55d5('0x8a'),(_0x19be88,_0x54b7ac)=>{const _0x54056a=[];for(const _0x5487e8 of _0x2ce9cf[_0x55d5('0x80')](_0x54b7ac['content'])[_0x55d5('0x22')]())_0x5487e8['is']('element',_0x55d5('0x40'))&&_0x54056a[_0x55d5('0x37')](_0x5487e8);_0x2ce9cf[_0x55d5('0x56')](_0x5aa57d=>{for(const _0x2691c0 of _0x54056a)_0x5aa57d['move'](_0x5aa57d[_0x55d5('0x80')](_0x2691c0),_0x5aa57d['createPositionBefore'](_0x2691c0)),_0x5aa57d[_0x55d5('0x83')](_0x2691c0);});});}}function ce(_0x389333){if(_0x389333['isEmpty'])return!0x0;const _0x390d47=_0x389333[_0x55d5('0x7c')](0x0);return _0x390d47['is'](_0x55d5('0x5f'),'paragraph')&&_0x390d47['isEmpty'];}function fe(_0x489bc8,_0x287095={},_0x4f27e8){for(const {isAnchor:_0x389923,cellHeight:_0x46e769,cellWidth:_0x563b43}of _0x4f27e8[_0x55d5('0x6b')](_0x489bc8,{'includeAllSlots':!0x0,..._0x287095}))if(!_0x389923||0x1!=_0x46e769||0x1!=_0x563b43)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54e7=['registerCustomCallback','resizeTable','selection','columnWidths','handleResizeTableWidthCommand','editor','registerDescriptionCallback','TrackChangesEditing','model','_suggestionFactory','plugins','getSuggestionCallback','*Format:*\x20resize\x20table','getAttribute','has','getTableColumnsWidths','change','handleSuggestionDescription','afterInit','commandParams','enableCommand','document','getSuggestions','get','getContainedElement','getSelectedElement','TableColumnResizeEditing','formatBlock','tableWidth','resizeColumnWidths','markBlockFormat','data','bind','subType','resizeTableWidth','discard','getColumnGroupElement'];(function(_0x405035,_0x54e710){const _0x5e3520=function(_0x2d8d48){while(--_0x2d8d48){_0x405035['push'](_0x405035['shift']());}};_0x5e3520(++_0x54e710);}(_0x54e7,0x172));const _0x5e35=function(_0x405035,_0x54e710){_0x405035=_0x405035-0x0;let _0x5e3520=_0x54e7[_0x405035];return _0x5e3520;};import{Plugin as _0x838046}from'ckeditor5/src/core';import{getTranslation as _0x3a66f8}from'../utils/common-translations';export default class wt extends _0x838046{[_0x5e35('0x12')](){if(!this['editor'][_0x5e35('0xa')][_0x5e35('0xe')](_0x5e35('0x1a')))return;const _0x1be7e9=this[_0x5e35('0x5')][_0x5e35('0xa')][_0x5e35('0x17')](_0x5e35('0x7'));_0x1be7e9[_0x5e35('0x14')](_0x5e35('0x22'),this[_0x5e35('0x4')][_0x5e35('0x20')](this)),_0x1be7e9[_0x5e35('0x14')](_0x5e35('0x1d'),this[_0x5e35('0x4')][_0x5e35('0x20')](this)),_0x1be7e9[_0x5e35('0x9')][_0x5e35('0x0')](_0x5e35('0x1b'),_0x5e35('0x1'),'accept',_0x1be7e9[_0x5e35('0x9')][_0x5e35('0xb')]('formatBlock',null,_0x5e35('0x23'))),_0x1be7e9[_0x5e35('0x9')][_0x5e35('0x0')](_0x5e35('0x1b'),_0x5e35('0x1'),_0x5e35('0x23'),_0x1be7e9['_suggestionFactory'][_0x5e35('0xb')](_0x5e35('0x1b'),null,'accept')),_0x1be7e9['_descriptionFactory'][_0x5e35('0x6')](this['handleSuggestionDescription']['bind'](this));}[_0x5e35('0x4')](_0x382aba,_0x425083){const _0x3460cd=this[_0x5e35('0x5')][_0x5e35('0xa')][_0x5e35('0x17')]('TrackChangesEditing'),_0x52aa34=this[_0x5e35('0x5')][_0x5e35('0xa')][_0x5e35('0x17')]('TableColumnResizeEditing'),_0x4a390b=_0x425083['table']||this[_0x5e35('0x5')][_0x5e35('0x8')][_0x5e35('0x15')][_0x5e35('0x2')][_0x5e35('0x19')]();this[_0x5e35('0x5')][_0x5e35('0x8')][_0x5e35('0x10')](()=>{const _0x234a80=_0x52aa34[_0x5e35('0x24')](_0x4a390b);let _0x17c438=_0x234a80?_0x52aa34[_0x5e35('0xf')](_0x234a80):null,_0x5ee53b=_0x4a390b[_0x5e35('0xd')](_0x5e35('0x1c'))||null;const _0x201415=_0x425083[_0x5e35('0x1c')]||_0x5ee53b,_0x5ac243=_0x425083[_0x5e35('0x3')]||_0x17c438,_0x4455bb=this[_0x5e35('0x5')][_0x5e35('0xa')]['get']('Users')['me'];for(const _0x54b2cd of _0x3460cd[_0x5e35('0x16')]()){const _0x3f4798=_0x54b2cd[_0x5e35('0x18')]();if(_0x5e35('0x1')===_0x54b2cd[_0x5e35('0x21')]&&_0x3f4798===_0x4a390b){_0x54b2cd['author']!==_0x4455bb&&_0x54b2cd[_0x5e35('0x23')]();const _0x35e0c3=_0x54b2cd[_0x5e35('0x1f')][_0x5e35('0x13')];_0x5ee53b=_0x35e0c3[0x0][_0x5e35('0x1c')],_0x17c438=_0x35e0c3[0x0][_0x5e35('0x3')];break;}}_0x382aba({'table':_0x4a390b,'tableWidth':_0x201415,'columnWidths':_0x5ac243}),_0x3460cd[_0x5e35('0x1e')](_0x4a390b,{'commandName':_0x5e35('0x22'),'commandParams':[{'tableWidth':_0x5ee53b,'columnWidths':_0x17c438}],'formatGroupId':'resizeTable'},[],_0x5e35('0x1'));});}[_0x5e35('0x11')](_0x2479f2){const {data:_0x181d05}=_0x2479f2;if(_0x181d05&&_0x5e35('0x1')===_0x181d05['formatGroupId']){const _0x4cc6a7=_0x5e35('0xc');return{'type':'format','content':_0x3a66f8(this[_0x5e35('0x5')]['locale'],_0x4cc6a7)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3132=['editing','removeAttribute','createPositionBefore','getColumnIndexes','markerRange','start','showSuggestionHighlights','setTableColumnHeader','data','TableEditing','getSuggestion','FORMAT_HEADER_ROW','index','consumable','name','findAncestor','change','getAttribute','addMarker:suggestion','ck-suggestion-marker-','model','getChild','commandName','formatBlock','getCellLocation','afterInit','getSelectionAffectedTableCells','_suggestionFactory','end','requires','locale','setTableRowHeader','commands','stop','item','removeClass','addClass','childCount','ck-suggestion-marker--active','data-suggestion','_splitMarkerName','headingRows','TableUtils','FORMAT_REGULAR_COLUMN','toViewElement','createPositionAfter','activeMarkers','TrackChangesEditing','document','get','bindElementToMarker','consume','unbindElementFromMarkerName','writer','selection','mapper','from','cell','_acceptFormatSuggestionCallbackFactory','markerName','downcastDispatcher','registerCustomCallback','highest','forceValue','value','last','format','FORMAT_HEADER_COLUMN','parent','commandParams','nodeBefore','first','editor','_descriptionFactory','enableCommand','includes','options','markBlockFormat','markerNameToElements','plugins','createRange','nodeAfter','createTableWalker','*Format:*\x20%0','accept'];(function(_0x583c56,_0x3132a5){const _0x1f6f8b=function(_0x4343e5){while(--_0x4343e5){_0x583c56['push'](_0x583c56['shift']());}};_0x1f6f8b(++_0x3132a5);}(_0x3132,0x1d7));const _0x1f6f=function(_0x583c56,_0x3132a5){_0x583c56=_0x583c56-0x0;let _0x1f6f8b=_0x3132[_0x583c56];return _0x1f6f8b;};import{Plugin as _0x24e192}from'ckeditor5/src/core';import _0x439b83 from'./table';import{getTranslation as _0x365a08}from'../utils/common-translations';export default class pt extends _0x24e192{static get[_0x1f6f('0x44')](){return[_0x439b83];}[_0x1f6f('0x40')](){const _0x52429f=this[_0x1f6f('0x1a')];if(!_0x52429f[_0x1f6f('0x21')]['has'](_0x1f6f('0x30')))return;const _0x520b0f=_0x52429f[_0x1f6f('0x45')],_0x4f0b9b=_0x52429f['plugins']['get'](_0x1f6f('0x1')),_0x4b195d=_0x52429f['plugins'][_0x1f6f('0x3')](_0x1f6f('0x51')),_0x48f4ed=_0x52429f[_0x1f6f('0x21')][_0x1f6f('0x3')](_0x439b83);function _0x5f588b({showActiveMarker:_0x18dd47=!0x0,setDataAttribute:_0x476333=!0x0}={}){return(_0x2e44cf,_0x1ec14a,_0x143e67)=>{const {type:_0x2cb368,id:_0x47e7d5}=_0x4f0b9b['_splitMarkerName'](_0x1ec14a[_0x1f6f('0xd')]),_0x380d3e=_0x4f0b9b[_0x1f6f('0x31')](_0x47e7d5);if(!_0x380d3e['data']||_0x1f6f('0x2e')!=_0x380d3e[_0x1f6f('0x2f')]['commandName'])return;if(_0x1ec14a[_0x1f6f('0x49')])return void _0x2e44cf[_0x1f6f('0x48')]();if(!_0x143e67[_0x1f6f('0x34')][_0x1f6f('0x5')](_0x1ec14a[_0x1f6f('0x2b')],_0x2e44cf[_0x1f6f('0x35')]))return;const _0x4a6268=_0x1ec14a[_0x1f6f('0x2b')][_0x1f6f('0x2c')][_0x1f6f('0x23')],_0x564181=_0x1ec14a[_0x1f6f('0x2b')][_0x1f6f('0x43')][_0x1f6f('0x18')],_0x6efe1=_0x4a6268[_0x1f6f('0x16')][_0x1f6f('0x16')],{column:_0x2dd45b}=_0x4b195d[_0x1f6f('0x3f')](_0x4a6268),{column:_0x610125}=_0x4b195d['getCellLocation'](_0x564181);for(let _0x58bbf2=_0x2dd45b;_0x58bbf2<=_0x610125;_0x58bbf2++){const _0x24c2c4=_0x4b195d[_0x1f6f('0x24')](_0x6efe1,{'column':_0x58bbf2,'includeAllSlots':!0x1});for(const _0x1142b0 of _0x24c2c4){const _0x5729e8=_0x1142b0[_0x1f6f('0xb')],_0x3dfab9=_0x143e67[_0x1f6f('0x9')][_0x1f6f('0x53')](_0x5729e8);_0x143e67[_0x1f6f('0x7')][_0x1f6f('0x4b')]('ck-suggestion-marker-'+_0x2cb368,_0x3dfab9),_0x476333&&_0x143e67[_0x1f6f('0x7')]['setAttribute'](_0x1f6f('0x4e'),_0x47e7d5,_0x3dfab9),_0x143e67[_0x1f6f('0x9')][_0x1f6f('0x4')](_0x3dfab9,_0x1ec14a[_0x1f6f('0xd')]),_0x18dd47&&(_0x4f0b9b[_0x1f6f('0x0')][_0x1f6f('0x1d')](_0x1ec14a[_0x1f6f('0xd')])?_0x143e67[_0x1f6f('0x7')][_0x1f6f('0x4b')](_0x1f6f('0x4d'),_0x3dfab9):_0x143e67[_0x1f6f('0x7')]['removeClass']('ck-suggestion-marker--active',_0x3dfab9));}}};}_0x4f0b9b[_0x1f6f('0x1c')](_0x1f6f('0x46'),(_0x19809c,_0x42503c)=>{const _0x4eeb5f=_0x4b195d[_0x1f6f('0x41')](_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x2')][_0x1f6f('0x8')]),_0x1ca2c5=_0x4b195d['getRowIndexes'](_0x4eeb5f),_0x19b760=_0x4eeb5f[0x0][_0x1f6f('0x36')]('table'),_0x546e19=_0x19b760[_0x1f6f('0x38')](_0x1f6f('0x50'))||0x0,_0x4aa9da=_0x42503c&&null!==_0x42503c[_0x1f6f('0x11')]?_0x42503c[_0x1f6f('0x11')]:!_0x52429f[_0x1f6f('0x47')][_0x1f6f('0x3')](_0x1f6f('0x46'))[_0x1f6f('0x12')],_0x4bd9e8=_0x4aa9da?_0x1ca2c5[_0x1f6f('0x13')]:_0x1ca2c5[_0x1f6f('0x19')],_0x39f757=_0x19b760[_0x1f6f('0x3c')](_0x4bd9e8);let _0x5e31e5;if(_0x4aa9da){const _0x535a1c=_0x19b760[_0x1f6f('0x3c')](_0x546e19);if(_0x39f757[_0x1f6f('0x33')]<_0x535a1c[_0x1f6f('0x33')])return;_0x5e31e5=_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x22')](_0x52429f[_0x1f6f('0x3b')]['createPositionBefore'](_0x535a1c[_0x1f6f('0x3c')](0x0)),_0x52429f['model']['createPositionAfter'](_0x39f757[_0x1f6f('0x3c')](_0x39f757[_0x1f6f('0x4c')]-0x1)));}else{const _0x17884a=_0x19b760[_0x1f6f('0x3c')](_0x546e19-0x1);if(!_0x17884a)return;_0x5e31e5=_0x52429f[_0x1f6f('0x3b')]['createRange'](_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x29')](_0x39f757[_0x1f6f('0x3c')](0x0)),_0x52429f[_0x1f6f('0x3b')]['createPositionAfter'](_0x17884a[_0x1f6f('0x3c')](_0x17884a[_0x1f6f('0x4c')]-0x1)));}_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x37')](()=>{_0x4f0b9b['markBlockFormat'](_0x5e31e5,{'commandName':_0x1f6f('0x46'),'commandParams':[{'forceValue':_0x4aa9da}]},[],'setTableRowHeader');});}),_0x4f0b9b[_0x1f6f('0x1c')](_0x1f6f('0x2e'),(_0x1221a0,_0x4c5b87)=>{const _0x47ee10=_0x52429f[_0x1f6f('0x21')][_0x1f6f('0x3')](_0x1f6f('0x51')),_0x1269b9=_0x47ee10['getSelectionAffectedTableCells'](_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x2')][_0x1f6f('0x8')]),_0x4d38b6=_0x47ee10[_0x1f6f('0x2a')](_0x1269b9),_0x3a1d25=_0x1269b9[0x0][_0x1f6f('0x36')]('table'),_0x30e3c0=_0x3a1d25['getAttribute']('headingColumns')||0x0,_0x42e7a1=_0x4c5b87&&null!==_0x4c5b87['forceValue']?_0x4c5b87[_0x1f6f('0x11')]:!_0x52429f['commands'][_0x1f6f('0x3')]('setTableColumnHeader')['value'];let _0x39cc63;const _0x2abf0c=_0x3a1d25[_0x1f6f('0x3c')](0x0),_0x3a56b7=_0x42e7a1?_0x4d38b6[_0x1f6f('0x13')]:_0x4d38b6['first'],_0x30ca9b=_0x47ee10[_0x1f6f('0x24')](_0x3a1d25,{'startRow':0x0,'column':_0x3a56b7,'includeAllSlots':!0x1}),_0x374322=Array[_0x1f6f('0xa')](_0x30ca9b)[0x0][_0x1f6f('0xb')];if(_0x42e7a1){const _0x9c9192=_0x2abf0c['getChild'](_0x30e3c0);if(_0x374322['isBefore'](_0x9c9192))return;_0x39cc63=_0x52429f[_0x1f6f('0x3b')]['createRange'](_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x29')](_0x9c9192),_0x52429f[_0x1f6f('0x3b')]['createPositionAfter'](_0x374322));}else{const _0x43b67d=_0x2abf0c[_0x1f6f('0x3c')](_0x30e3c0-0x1);if(!_0x43b67d)return;_0x39cc63=_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x22')](_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x29')](_0x374322),_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x54')](_0x43b67d));}_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x37')](()=>{_0x4f0b9b[_0x1f6f('0x1f')](_0x39cc63,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0x42e7a1}]},[],_0x1f6f('0x2e'));});}),_0x52429f['editing'][_0x1f6f('0xe')]['on']('addMarker:suggestion',_0x5f588b(),{'priority':_0x1f6f('0x10')}),_0x52429f[_0x1f6f('0x2f')][_0x1f6f('0xe')]['on'](_0x1f6f('0x39'),(_0x159834,_0x37b160,_0x2d2288)=>{_0x2d2288[_0x1f6f('0x1e')][_0x1f6f('0x2d')]&&_0x5f588b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x159834,_0x37b160,_0x2d2288);},{'priority':_0x1f6f('0x10')}),_0x52429f[_0x1f6f('0x27')][_0x1f6f('0xe')]['on']('removeMarker:suggestion',(_0x4a7f0e,_0x4c24ef,_0xc09efb)=>{const {type:_0x514489,id:_0x1deb46}=_0x4f0b9b[_0x1f6f('0x4f')](_0x4c24ef[_0x1f6f('0xd')]),_0x5e4028=_0x4f0b9b['getSuggestion'](_0x1deb46);if(!_0x5e4028[_0x1f6f('0x2f')]||'setTableColumnHeader'!=_0x5e4028[_0x1f6f('0x2f')]['commandName'])return;const _0x4c4832=_0xc09efb['mapper'][_0x1f6f('0x20')](_0x4c24ef['markerName']);if(_0x4c4832)for(const _0x563444 of _0x4c4832)_0xc09efb[_0x1f6f('0x7')][_0x1f6f('0x4a')](_0x1f6f('0x3a')+_0x514489,_0x563444),_0xc09efb[_0x1f6f('0x7')][_0x1f6f('0x4a')](_0x1f6f('0x4d'),_0x563444),_0xc09efb[_0x1f6f('0x7')][_0x1f6f('0x28')](_0x1f6f('0x4e'),_0x563444),_0xc09efb['mapper'][_0x1f6f('0x6')](_0x563444,_0x4c24ef[_0x1f6f('0xd')]);},{'priority':_0x1f6f('0x10')}),_0x4f0b9b[_0x1f6f('0x1b')]['registerDescriptionCallback'](_0x512d65=>{const {data:_0x41d0b1}=_0x512d65;if(_0x41d0b1){if('setTableRowHeader'==_0x41d0b1[_0x1f6f('0x3d')]){const _0x2b254f=_0x41d0b1[_0x1f6f('0x17')][0x0][_0x1f6f('0x11')];return _0xad887e(_0x365a08(_0x520b0f,_0x2b254f?_0x1f6f('0x32'):'FORMAT_REGULAR_ROW'));}if(_0x1f6f('0x2e')==_0x41d0b1[_0x1f6f('0x3d')]){const _0x368c5f=_0x41d0b1[_0x1f6f('0x17')][0x0]['forceValue'];return _0xad887e(_0x365a08(_0x520b0f,_0x368c5f?_0x1f6f('0x15'):_0x1f6f('0x52')));}}function _0xad887e(_0x27087f){return{'type':_0x1f6f('0x14'),'content':_0x365a08(_0x520b0f,_0x1f6f('0x25'),_0x27087f)};}});const _0x3d059e=_0x48f4ed[_0x1f6f('0xc')]();_0x4f0b9b[_0x1f6f('0x42')]['registerCustomCallback']('formatBlock',_0x1f6f('0x46'),_0x1f6f('0x26'),_0x3d059e),_0x4f0b9b['_suggestionFactory'][_0x1f6f('0xf')](_0x1f6f('0x3e'),_0x1f6f('0x2e'),_0x1f6f('0x26'),_0x3d059e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4747=['getRanges','_suggestionFactory','forceDefaultExecution','cell','splitTableCellHorizontally','$graveyard','commandName','_isForcedDefaultExecutionBlock','afterInit','getCellLocation','getSelectionAffectedTableCells','createTableWalker','getAncestors','find','element','_areSelectedCellsMergable','getFirstPosition','commands','containsRange','accept','markMultiRangeBlockFormat','mergeTableCellDown','*Merge\x20cells*','mergeTableCellLeft','value','filter','return','rootName','fromRange','table','from','selection','add','mergeTableCellRight','trackChanges','_tablePostFixingSubtypes','execute','push','createRangeOn','formatBlock','detach','get','TrackChangesEditing','refresh','requires','document','isInContent','getSuggestions','size','length','TableEditing','enableCommand','_descriptionFactory','plugins','mergeTableCellUp','type','isEnabled','format','mergeTableCells','markBlockFormat','locale','TableUtils','editor','registerDescriptionCallback','model','low','horizontally','author','_areMergableCells','subType','registerCustomCallback','highest','has','change','tableCell','map','splitTableCellVertically','stop','_acceptFormatSuggestionCallbackFactory'];(function(_0x4f27b3,_0x474763){const _0x3dd97d=function(_0x420112){while(--_0x420112){_0x4f27b3['push'](_0x4f27b3['shift']());}};_0x3dd97d(++_0x474763);}(_0x4747,0x1b0));const _0x3dd9=function(_0x4f27b3,_0x474763){_0x4f27b3=_0x4f27b3-0x0;let _0x3dd97d=_0x4747[_0x4f27b3];return _0x3dd97d;};import{Plugin as _0x228159}from'ckeditor5/src/core';import _0x3bbed6 from'./table';import{LiveRange as _0x83d1f9}from'ckeditor5/src/engine';import{getTranslation as _0x396791}from'../utils/common-translations';export default class dt extends _0x228159{static get[_0x3dd9('0x7')](){return[_0x3bbed6];}[_0x3dd9('0x32')](){const _0x508b18=this['editor'],_0x35a947=_0x508b18[_0x3dd9('0x1b')]['document'][_0x3dd9('0x49')],_0xf5fe57=_0x508b18[_0x3dd9('0x17')];if(!_0x508b18[_0x3dd9('0x10')][_0x3dd9('0x23')](_0x3dd9('0xd')))return;const _0x289ac6=_0x508b18[_0x3dd9('0x10')][_0x3dd9('0x4')](_0x3dd9('0x5')),_0x1584a1=_0x508b18['plugins']['get'](_0x3dd9('0x18')),_0x1814d9=_0x508b18[_0x3dd9('0x10')][_0x3dd9('0x4')](_0x3bbed6);_0x1814d9[_0x3dd9('0x4d')][_0x3dd9('0x0')](_0x3dd9('0x15')),_0x289ac6['enableCommand']('mergeTableCells',()=>{const _0x42efc8=_0x1584a1[_0x3dd9('0x34')](_0x508b18[_0x3dd9('0x1b')][_0x3dd9('0x8')][_0x3dd9('0x49')]);_0x508b18[_0x3dd9('0x1b')][_0x3dd9('0x24')](()=>{_0x289ac6[_0x3dd9('0x3e')](_0x42efc8,{'commandName':_0x3dd9('0x15'),'commandParams':[]},[],_0x3dd9('0x15'));});}),_0x508b18[_0x3dd9('0x3b')]['get'](_0x3dd9('0x15'))['on'](_0x3dd9('0x4e'),(_0xb24a47,_0x55987c)=>{_0x508b18['commands'][_0x3dd9('0x4')](_0x3dd9('0x4c'))[_0x3dd9('0x42')]&&(_0x55987c['length']>0x0&&_0x55987c[_0x55987c[_0x3dd9('0xc')]-0x1]&&_0x55987c[_0x55987c['length']-0x1][_0x3dd9('0x2c')]||_0x289ac6[_0x3dd9('0x31')]||this[_0x3dd9('0x39')]()||_0xb24a47[_0x3dd9('0x28')]());},{'priority':_0x3dd9('0x22')});for(const _0x5948a3 of[_0x3dd9('0x11'),_0x3dd9('0x4b'),_0x3dd9('0x3f'),_0x3dd9('0x41')]){const _0x48c749=_0x508b18[_0x3dd9('0x3b')][_0x3dd9('0x4')](_0x5948a3);_0x289ac6[_0x3dd9('0xe')](_0x5948a3,()=>{const _0x2d1824=_0x508b18['model'][_0x3dd9('0x8')][_0x3dd9('0x49')][_0x3dd9('0x3a')]()[_0x3dd9('0x36')]()['find'](_0x342542=>_0x342542['is'](_0x3dd9('0x38'),_0x3dd9('0x25'))),_0xb7d53b=_0x48c749[_0x3dd9('0x42')];_0x508b18[_0x3dd9('0x1b')][_0x3dd9('0x24')](()=>{_0x289ac6[_0x3dd9('0x3e')]([_0x2d1824,_0xb7d53b],{'commandName':_0x3dd9('0x15'),'commandParams':[]},[],_0x3dd9('0x15'));});});}for(const _0x58284 of[_0x3dd9('0x27'),'splitTableCellHorizontally']){const _0xa43472=_0x508b18[_0x3dd9('0x3b')][_0x3dd9('0x4')](_0x58284);_0x289ac6['enableCommand'](_0x58284,()=>{const _0x341e5c=_0x1584a1['getSelectionAffectedTableCells'](_0x508b18[_0x3dd9('0x1b')][_0x3dd9('0x8')]['selection'])[0x0],_0x4c6835=_0x341e5c['findAncestor'](_0x3dd9('0x47')),{column:_0x25317a,row:_0x4f0a71}=_0x1584a1[_0x3dd9('0x33')](_0x341e5c);let _0x2398d5=[];if(_0x3dd9('0x1d')==_0xa43472['direction']){const _0x12dadf=_0x1584a1[_0x3dd9('0x35')](_0x4c6835,{'startRow':_0x4f0a71,'endRow':_0x4f0a71,'includeAllSlots':!0x0});_0x2398d5=Array[_0x3dd9('0x48')](_0x12dadf)['map'](_0x1c4670=>_0x1c4670['cell']);}else{const _0x2ad345=_0x1584a1[_0x3dd9('0x35')](_0x4c6835,{'column':_0x25317a,'includeAllSlots':!0x0});_0x2398d5=Array[_0x3dd9('0x48')](_0x2ad345)['map'](_0x552efd=>_0x552efd[_0x3dd9('0x2d')]);}_0x508b18[_0x3dd9('0x1b')][_0x3dd9('0x24')](_0x34b82e=>{_0x289ac6[_0x3dd9('0x16')](_0x34b82e[_0x3dd9('0x1')](_0x341e5c),{'commandName':_0x58284,'commandParams':[]},_0x2398d5,_0x58284);});});}_0x289ac6[_0x3dd9('0xf')][_0x3dd9('0x1a')](_0xa716d1=>{const {data:_0x4908e8}=_0xa716d1;if(_0x4908e8)return'mergeTableCells'==_0x4908e8[_0x3dd9('0x30')]?{'type':_0x3dd9('0x14'),'content':_0x396791(_0xf5fe57,_0x3dd9('0x40'))}:void 0x0;}),_0x289ac6[_0x3dd9('0xf')][_0x3dd9('0x1a')](_0x57ea6c=>{const {data:_0x3fcdfd}=_0x57ea6c;if(_0x3fcdfd)return _0x3dd9('0x27')==_0x3fcdfd[_0x3dd9('0x30')]?{'type':_0x3dd9('0x14'),'content':_0x396791(_0xf5fe57,'*Split\x20cell:*\x20vertically')}:_0x3dd9('0x2e')==_0x3fcdfd[_0x3dd9('0x30')]?{'type':_0x3dd9('0x14'),'content':_0x396791(_0xf5fe57,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x3cf79b=_0x1814d9[_0x3dd9('0x29')]();for(const _0x2aa85d of[_0x3dd9('0x11'),_0x3dd9('0x4b'),_0x3dd9('0x3f'),_0x3dd9('0x41')])_0x289ac6[_0x3dd9('0x2b')][_0x3dd9('0x21')](_0x3dd9('0x2'),_0x2aa85d,'accept',_0x3cf79b);for(const _0x315607 of[_0x3dd9('0x27'),'splitTableCellHorizontally'])_0x289ac6['_suggestionFactory']['registerCustomCallback'](_0x3dd9('0x2'),_0x315607,_0x3dd9('0x3d'),_0x3cf79b);_0x289ac6[_0x3dd9('0x2b')]['registerCustomCallback'](_0x3dd9('0x2'),_0x3dd9('0x15'),_0x3dd9('0x3d'),_0x58bf6c=>{_0x508b18[_0x3dd9('0x1b')]['change'](_0x5d27f3=>{const _0x4a6905=Array[_0x3dd9('0x48')](_0x35a947[_0x3dd9('0x2a')]())[_0x3dd9('0x26')](_0x85e349=>_0x83d1f9[_0x3dd9('0x46')](_0x85e349));_0x5d27f3['setSelection'](_0x58bf6c),_0x508b18[_0x3dd9('0x3b')][_0x3dd9('0x4')]('mergeTableCells')[_0x3dd9('0x6')](),_0x508b18['execute'](_0x3dd9('0x15'),{'forceDefaultExecution':!0x0});const _0x4c6567=_0x4a6905[_0x3dd9('0x43')](_0xb5d1da=>_0x3dd9('0x2f')!=_0xb5d1da['root'][_0x3dd9('0x45')]);_0x4c6567['length']>0x0&&_0x5d27f3['setSelection'](_0x4c6567);for(const _0x43fbbd of _0x4a6905)_0x43fbbd[_0x3dd9('0x3')]();});});for(const _0x335748 of[_0x3dd9('0x11'),'mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x236fcf=_0x508b18[_0x3dd9('0x3b')][_0x3dd9('0x4')](_0x335748);_0x236fcf['on']('set:isEnabled',(_0x3706ac,_0x50fcc2,_0x3448d0)=>{if(_0x3448d0){const _0x219c8e=_0x508b18[_0x3dd9('0x1b')][_0x3dd9('0x8')][_0x3dd9('0x49')][_0x3dd9('0x3a')]()['getAncestors']()[_0x3dd9('0x37')](_0x3d0e55=>_0x3d0e55['is'](_0x3dd9('0x38'),_0x3dd9('0x25')));this[_0x3dd9('0x1f')](_0x236fcf[_0x3dd9('0x42')],_0x219c8e)||(_0x3706ac[_0x3dd9('0x44')]=!0x1,_0x3706ac[_0x3dd9('0x28')]());}},{'priority':_0x3dd9('0x1c')});}}[_0x3dd9('0x39')](){const _0x22d0c2=this[_0x3dd9('0x19')][_0x3dd9('0x3b')][_0x3dd9('0x4')](_0x3dd9('0x15')),_0x5ed4bb=this['editor'][_0x3dd9('0x10')][_0x3dd9('0x4')](_0x3dd9('0x18'));if(!_0x22d0c2[_0x3dd9('0x13')])return!0x1;const _0x51a384=_0x5ed4bb[_0x3dd9('0x34')](this[_0x3dd9('0x19')][_0x3dd9('0x1b')][_0x3dd9('0x8')][_0x3dd9('0x49')]);for(const _0x281aa8 of _0x51a384)for(const _0xcdef9e of _0x51a384)if(_0x281aa8!=_0xcdef9e&&!this[_0x3dd9('0x1f')](_0x281aa8,_0xcdef9e))return!0x1;return!0x0;}['_areMergableCells'](_0x52f404,_0x28a34f){const _0x18cb91=this[_0x3dd9('0x19')][_0x3dd9('0x10')]['get'](_0x3dd9('0x5')),_0x1c09bd=this[_0x3dd9('0x19')]['model']['createRangeOn'](_0x52f404),_0x451ebc=this[_0x3dd9('0x19')][_0x3dd9('0x1b')][_0x3dd9('0x1')](_0x28a34f),_0x30410b=new Set(),_0x446cb9=new Set();for(const _0x10d1ac of _0x18cb91[_0x3dd9('0xa')]())if(('insertion'==_0x10d1ac['type']||'deletion'==_0x10d1ac['type']||_0x3dd9('0x15')==_0x10d1ac[_0x3dd9('0x20')])&&_0x10d1ac[_0x3dd9('0x9')])for(const _0x1d92b8 of _0x10d1ac[_0x3dd9('0x2a')]())_0x1d92b8[_0x3dd9('0x3c')](_0x1c09bd,!0x0)&&_0x30410b[_0x3dd9('0x4a')](_0x10d1ac[_0x3dd9('0x12')]+':'+_0x10d1ac[_0x3dd9('0x1e')]['id']),_0x1d92b8[_0x3dd9('0x3c')](_0x451ebc,!0x0)&&_0x446cb9['add'](_0x10d1ac['type']+':'+_0x10d1ac['author']['id']);if(_0x30410b[_0x3dd9('0xb')]!=_0x446cb9['size'])return!0x1;for(const _0x1667a4 of _0x30410b)if(!_0x446cb9[_0x3dd9('0x23')](_0x1667a4))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55e8=['insertTableOfContents','afterInit','TrackChangesEditing','get','commands','ELEMENT_TABLE_OF_CONTENTS','registerElementLabel','locale','_descriptionFactory','plugins'];(function(_0x206ae8,_0x55e808){const _0x220add=function(_0x4920fd){while(--_0x4920fd){_0x206ae8['push'](_0x206ae8['shift']());}};_0x220add(++_0x55e808);}(_0x55e8,0xec));const _0x220a=function(_0x206ae8,_0x55e808){_0x206ae8=_0x206ae8-0x0;let _0x220add=_0x55e8[_0x206ae8];return _0x220add;};import{Plugin as _0x520eb1}from'ckeditor5/src/core';import{getTranslation as _0x5a8c49}from'../utils/common-translations';export default class bt extends _0x520eb1{[_0x220a('0x5')](){const _0x24c56c=this['editor'];if(!_0x24c56c[_0x220a('0x8')]['get'](_0x220a('0x4')))return;_0x24c56c[_0x220a('0x3')]['get'](_0x220a('0x6'))['enableCommand'](_0x220a('0x4'));const _0x534f80=_0x24c56c[_0x220a('0x3')][_0x220a('0x7')](_0x220a('0x6')),_0x39db1c=_0x24c56c[_0x220a('0x1')];_0x534f80[_0x220a('0x2')][_0x220a('0x0')]('tableOfContents',_0x51b3d6=>_0x5a8c49(_0x39db1c,_0x220a('0x9'),_0x51b3d6));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24d0=['nodeAfter','getSuggestions','accept','afterInit','batch','has','tableCellBorderWidth','tableAlignment','*Format:*\x20change\x20table\x20properties','handleDiscardAction','tableHeight','tableCellPadding','registerCustomCallback','_getSuggestion','subType','getSelectionAffectedTableCells','TrackChangesEditing','start','setAttribute','tableProperties','tableCellHeight','tableCellProperties','getSuggestionCallback','TablePropertiesEditing','findAncestor','tableCellBackgroundColor','tableWidth','getFirstPosition','join','data','*Format:*\x20change\x20table\x20cell\x20properties','format','tableBorderColor','tableBorderWidth','discard','handleSuggestionDescription','commandParams','get','table','TableCellPropertiesEditing','selection','enableCommand','TrackChangesTableProperties','plugins','document','_suggestionFactory','model','tableBackgroundColor','editor','formatBlock','_handlePropertyChange','tableBorderStyle','locale'];(function(_0x231a96,_0x24d0eb){const _0xe30b9b=function(_0x58affc){while(--_0x58affc){_0x231a96['push'](_0x231a96['shift']());}};_0xe30b9b(++_0x24d0eb);}(_0x24d0,0xf7));const _0xe30b=function(_0x231a96,_0x24d0eb){_0x231a96=_0x231a96-0x0;let _0xe30b9b=_0x24d0[_0x231a96];return _0xe30b9b;};import{Plugin as _0x43bcbd}from'ckeditor5/src/core';import{getTranslation as _0x4b85af}from'../utils/common-translations';export default class Ct extends _0x43bcbd{constructor(_0xdb1dc0){super(_0xdb1dc0),this[_0xe30b('0x25')]=[_0xe30b('0x32'),_0xe30b('0x10'),_0xe30b('0x33'),_0xe30b('0x19'),_0xe30b('0x2c'),_0xe30b('0x1c'),_0xe30b('0xc')],this[_0xe30b('0x27')]=['tableCellBorderColor','tableCellBorderStyle',_0xe30b('0x18'),_0xe30b('0x1d'),'tableCellWidth',_0xe30b('0x26'),_0xe30b('0x2b'),'tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return _0xe30b('0x7');}[_0xe30b('0x15')](){const _0x2fbb05=this['editor'][_0xe30b('0x8')][_0xe30b('0x2')](_0xe30b('0x22'));if(this[_0xe30b('0xd')][_0xe30b('0x8')][_0xe30b('0x17')](_0xe30b('0x29'))){for(const _0x104fac of this['tableProperties'])_0x2fbb05[_0xe30b('0x6')](_0x104fac,(_0x5c298e,_0x307a8c)=>{const _0x26efed=this[_0xe30b('0xd')]['model'][_0xe30b('0x9')][_0xe30b('0x5')][_0xe30b('0x2d')]()[_0xe30b('0x2a')](_0xe30b('0x3'));this['_handlePropertyChange'](_0x104fac,[_0x26efed],this[_0xe30b('0x25')],_0xe30b('0x25'),_0x5c298e,_0x307a8c);});_0x2fbb05[_0xe30b('0xa')]['registerCustomCallback'](_0xe30b('0xe'),_0xe30b('0x25'),_0xe30b('0x14'),_0x2fbb05[_0xe30b('0xa')]['getSuggestionCallback']('formatBlock',null,_0xe30b('0x34'))),_0x2fbb05['_suggestionFactory'][_0xe30b('0x1e')]('formatBlock',_0xe30b('0x25'),_0xe30b('0x34'),(_0x27778b,_0xa63104)=>this[_0xe30b('0x1b')](this['tableProperties'],_0x27778b,_0xa63104)),_0x2fbb05[_0xe30b('0xa')]['registerCustomCallback'](_0xe30b('0xe'),_0xe30b('0x25'),_0xe30b('0x2e'),()=>!0x1);}if(this[_0xe30b('0xd')][_0xe30b('0x8')][_0xe30b('0x17')](_0xe30b('0x4'))){for(const _0x16258c of this[_0xe30b('0x27')])_0x2fbb05[_0xe30b('0x6')](_0x16258c,(_0x50134d,_0x4cde94)=>{const _0x545ccf=this['editor'][_0xe30b('0x8')][_0xe30b('0x2')]('TableUtils')[_0xe30b('0x21')](this[_0xe30b('0xd')][_0xe30b('0xb')][_0xe30b('0x9')][_0xe30b('0x5')]);this['_handlePropertyChange'](_0x16258c,_0x545ccf,this[_0xe30b('0x27')],_0xe30b('0x27'),_0x50134d,_0x4cde94);});_0x2fbb05[_0xe30b('0xa')][_0xe30b('0x1e')](_0xe30b('0xe'),_0xe30b('0x27'),'accept',_0x2fbb05[_0xe30b('0xa')][_0xe30b('0x28')]('formatBlock',null,'discard')),_0x2fbb05[_0xe30b('0xa')][_0xe30b('0x1e')](_0xe30b('0xe'),_0xe30b('0x27'),_0xe30b('0x34'),(_0x1b32dd,_0x27e7fb)=>this[_0xe30b('0x1b')](this[_0xe30b('0x27')],_0x1b32dd,_0x27e7fb)),_0x2fbb05[_0xe30b('0xa')][_0xe30b('0x1e')](_0xe30b('0xe'),_0xe30b('0x27'),_0xe30b('0x2e'),()=>!0x1);}_0x2fbb05['_descriptionFactory']['registerDescriptionCallback'](_0x3144f6=>this[_0xe30b('0x0')](_0x3144f6));}[_0xe30b('0xf')](_0x12cccd,_0x4de93b,_0x3496a4,_0x2d4319,_0x561b77,_0x17e321){const _0x307e6b=this[_0xe30b('0xd')][_0xe30b('0x8')][_0xe30b('0x2')](_0xe30b('0x22'));this['editor'][_0xe30b('0xb')]['enqueueChange'](_0x17e321[_0xe30b('0x16')],()=>{for(const _0x53fe32 of _0x4de93b){if(this[_0xe30b('0x1f')](_0x53fe32,_0x2d4319))_0x561b77(_0x17e321);else{const _0x3fd4f5={};for(const _0x106278 of _0x3496a4){const _0x301511=_0x53fe32['getAttribute'](_0x106278);void 0x0!==_0x301511&&(_0x3fd4f5[_0x106278]=_0x301511);}_0x561b77(_0x17e321),_0x307e6b['markBlockFormat'](_0x53fe32,{'commandParams':[_0x3fd4f5]},[],_0x2d4319);}}});}[_0xe30b('0x1b')](_0x3a4d3a,_0x286595,_0x46fd6a){const _0x5ce795=_0x286595[0x0][_0xe30b('0x23')][_0xe30b('0x12')],_0x3387fe=_0x46fd6a[_0xe30b('0x1')][0x0];this[_0xe30b('0xd')][_0xe30b('0xb')]['change'](_0x4a6e41=>{for(const _0x7fcbd2 of _0x3a4d3a)void 0x0!==_0x3387fe[_0x7fcbd2]?_0x4a6e41[_0xe30b('0x24')](_0x7fcbd2,_0x3387fe[_0x7fcbd2],_0x5ce795):_0x4a6e41['removeAttribute'](_0x7fcbd2,_0x5ce795);});}[_0xe30b('0x0')](_0x35a350){if(_0x35a350[_0xe30b('0x2f')])switch(_0x35a350[_0xe30b('0x20')]){case'tableProperties':return{'type':_0xe30b('0x31'),'content':_0x4b85af(this[_0xe30b('0xd')][_0xe30b('0x11')],_0xe30b('0x1a'))};case _0xe30b('0x27'):return{'type':_0xe30b('0x31'),'content':_0x4b85af(this[_0xe30b('0xd')][_0xe30b('0x11')],_0xe30b('0x30'))};}}[_0xe30b('0x1f')](_0x4386dc,_0x3dbe81){const _0x7c515d=this[_0xe30b('0xd')][_0xe30b('0x8')][_0xe30b('0x2')]('TrackChangesEditing');for(const _0x30a2ba of _0x7c515d[_0xe30b('0x13')]({'skipNotAttached':!0x0})){const _0x262a6a=_0x30a2ba['getContainedElement']();if(_0x30a2ba[_0xe30b('0x20')]===_0x3dbe81&&_0x262a6a===_0x4386dc)return _0x30a2ba;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b72=['insertTemplate','get','Template','plugins','enableCommand','editor','has','afterInit'];(function(_0x4a6e08,_0x3b72b2){const _0x498be0=function(_0x54cf59){while(--_0x54cf59){_0x4a6e08['push'](_0x4a6e08['shift']());}};_0x498be0(++_0x3b72b2);}(_0x3b72,0x19c));const _0x498b=function(_0x4a6e08,_0x3b72b2){_0x4a6e08=_0x4a6e08-0x0;let _0x498be0=_0x3b72[_0x4a6e08];return _0x498be0;};import{Plugin as _0x2d8cd3}from'ckeditor5/src/core';export default class yt extends _0x2d8cd3{[_0x498b('0x3')](){const _0x590e98=this[_0x498b('0x1')];_0x590e98['plugins'][_0x498b('0x2')](_0x498b('0x6'))&&_0x590e98[_0x498b('0x7')][_0x498b('0x5')]('TrackChangesEditing')[_0x498b('0x0')](_0x498b('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4043=['document','nodeBefore','createRange','end','isEqual','from','title-content','getNearestSelectionRange','model','ELEMENT_TITLE','element','Title','newRange','_descriptionFactory','get','getChangedMarkers','isTouching','_splitMarkerName','plugins','locale','editor','schema','start','TrackChangesEditing'];(function(_0x4b08aa,_0x40438d){const _0x489bb6=function(_0x309d21){while(--_0x309d21){_0x4b08aa['push'](_0x4b08aa['shift']());}};_0x489bb6(++_0x40438d);}(_0x4043,0x19f));const _0x489b=function(_0x4b08aa,_0x40438d){_0x4b08aa=_0x4b08aa-0x0;let _0x489bb6=_0x4043[_0x4b08aa];return _0x489bb6;};import{Plugin as _0x113493}from'ckeditor5/src/core';import{getTranslation as _0x16fa6d}from'../utils/common-translations';export default class St extends _0x113493{['afterInit'](){const _0x29a2e8=this[_0x489b('0xd')];if(!_0x29a2e8['plugins']['has'](_0x489b('0x4')))return;const _0x446a9b=_0x29a2e8[_0x489b('0xb')][_0x489b('0x7')](_0x489b('0x10'));_0x446a9b[_0x489b('0x6')]['registerElementLabel'](_0x489b('0x17'),()=>_0x16fa6d(_0x29a2e8[_0x489b('0xc')],_0x489b('0x2'))),_0x29a2e8[_0x489b('0x1')][_0x489b('0x11')]['registerPostFixer'](_0x81582=>{let _0x4c66d2=!0x1;const _0x4d6966=Array[_0x489b('0x16')](_0x29a2e8[_0x489b('0x1')][_0x489b('0x11')]['differ'][_0x489b('0x8')]());for(const {name:_0x38fad0,data:_0x4dd0f0}of _0x4d6966){const {group:_0x11d500}=_0x446a9b[_0x489b('0xa')](_0x38fad0);if('suggestion'!==_0x11d500||!_0x4dd0f0[_0x489b('0x5')])continue;const _0x43bf4f=_0x4dd0f0[_0x489b('0x5')],_0x1c0a23=_0x43bf4f[_0x489b('0x14')][_0x489b('0x12')];if(!_0x1c0a23||!_0x1c0a23['is'](_0x489b('0x3'),_0x489b('0x17')))continue;if(!_0x43bf4f[_0x489b('0xf')][_0x489b('0x9')](_0x43bf4f['end']))continue;const _0x3bc0dc=_0x29a2e8[_0x489b('0x1')][_0x489b('0xe')][_0x489b('0x0')](_0x43bf4f[_0x489b('0x14')],'forward');if(_0x3bc0dc&&_0x3bc0dc['isCollapsed']){const _0x15602e=_0x81582[_0x489b('0x13')](_0x43bf4f['start'],_0x3bc0dc['start']);_0x15602e[_0x489b('0x15')](_0x43bf4f)||(_0x81582['updateMarker'](_0x38fad0,{'range':_0x15602e}),_0x4c66d2=!0x0);}_0x4c66d2||(_0x81582['removeMarker'](_0x38fad0),_0x4c66d2=!0x0);}return _0x4c66d2;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25fa=['undo','UndoEditing','editor','redo','has','enableCommand','TrackChangesEditing','plugins'];(function(_0x25c28f,_0x25fa33){const _0x5e757c=function(_0x26c234){while(--_0x26c234){_0x25c28f['push'](_0x25c28f['shift']());}};_0x5e757c(++_0x25fa33);}(_0x25fa,0x102));const _0x5e75=function(_0x25c28f,_0x25fa33){_0x25c28f=_0x25c28f-0x0;let _0x5e757c=_0x25fa[_0x25c28f];return _0x5e757c;};import{Plugin as _0x2f95fb}from'ckeditor5/src/core';export default class It extends _0x2f95fb{['afterInit'](){const _0x2ae2b7=this[_0x5e75('0x0')],_0x23070e=_0x2ae2b7[_0x5e75('0x5')]['get'](_0x5e75('0x4'));_0x2ae2b7[_0x5e75('0x5')][_0x5e75('0x2')](_0x5e75('0x7'))&&(_0x23070e['enableCommand'](_0x5e75('0x6')),_0x23070e[_0x5e75('0x3')](_0x5e75('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcb48=['previousPosition','addHighlight','activeMarkers','element','markerRange','test','includes','type','schema','isBlock','elementEnd','item','plugins','writer','isContent','createRangeOn','isLimit','span','ck-suggestion-marker--active','toViewElement','bindElementToMarker','ck-suggestion-marker-','getItems','listIndent','consumable','isAtEnd','mapper','TrackChangesEditing','getWalker','toViewPosition','listItem','start','get','nextSibling','push'];(function(_0x42eada,_0xcb48c9){const _0x547600=function(_0x5129b2){while(--_0x5129b2){_0x42eada['push'](_0x42eada['shift']());}};_0x547600(++_0xcb48c9);}(_0xcb48,0x17d));const _0x5476=function(_0x42eada,_0xcb48c9){_0x42eada=_0x42eada-0x0;let _0x547600=_0xcb48[_0x42eada];return _0x547600;};export function getRangesWithAttribute(_0x4637a2,_0x1942c5,_0x4fb4c6){const _0x26eeab=[];for(const _0x55e4e0 of _0x1942c5[_0x5476('0x1a')]())_0x55e4e0['hasAttribute'](_0x4637a2)&&_0x26eeab[_0x5476('0x3')](_0x4fb4c6[_0x5476('0x13')](_0x55e4e0));return _0x26eeab;}export function getElementsAffectedByListItemRename(_0x3719c5){const _0xe54f52=[];if(_0x3719c5['is']('element',_0x5476('0x22'))){let _0x3abc08=_0x3719c5[_0x5476('0x2')];for(;_0x3abc08&&_0x3abc08['is'](_0x5476('0x7'),_0x5476('0x22'))&&_0x3abc08['getAttribute'](_0x5476('0x1b'))>0x0;)_0xe54f52[_0x5476('0x3')](_0x3abc08),_0x3abc08=_0x3abc08[_0x5476('0x2')];}return _0xe54f52;}export function downcastSplitMergeMarker(_0x2cae1a,_0x761380,{showActiveMarker:_0x2ea9ba=!0x0}={}){const _0x3192ca=_0x2cae1a[_0x5476('0x10')][_0x5476('0x1')](_0x5476('0x1f'));return(_0x40765e,_0x5d2671,_0x2ce115)=>{if(!_0x2ce115[_0x5476('0x1c')][_0x5476('0x9')](_0x5d2671['markerRange'],_0x40765e['name']))return;const _0x4ace30=_0x5d2671[_0x5476('0x8')][_0x5476('0x20')](),_0x230bd9=_0x5d2671[_0x5476('0x8')][_0x5476('0x0')],_0x28b0e2=_0x2cae1a['model'][_0x5476('0xc')];let _0x5df2e5=null,_0x1484a8=null,_0x162846=!0x1,_0xb8da47=!0x1;for(const _0x1ed1bd of _0x4ace30){const _0x2ba894=_0x1ed1bd[_0x5476('0xf')];_0x162846=_0x162846||_0x28b0e2[_0x5476('0x12')](_0x2ba894);const _0x555afa=_0x2ce115[_0x5476('0x1e')][_0x5476('0x17')](_0x2ba894);if(_0x555afa&&_0x555afa['getCustomProperty'](_0x5476('0x5')))return;_0x5476('0xe')==_0x1ed1bd[_0x5476('0xb')]&&(_0x28b0e2[_0x5476('0xd')](_0x2ba894)&&!_0x28b0e2[_0x5476('0x14')](_0x2ba894)&&(_0x2ba894[_0x5476('0x2')]||_0x230bd9[_0x5476('0x1d')]?_0x5df2e5&&_0x5df2e5['parent']==_0x2ba894||(_0x5df2e5=_0x2ba894,_0x5dd5d2(_0x1ed1bd['previousPosition']),_0xb8da47=!0x0):_0x1484a8=_0x1484a8||_0x1ed1bd[_0x5476('0x4')]));}function _0x5dd5d2(_0x18da39){const _0x2793af=_0x2ce115[_0x5476('0x11')]['createUIElement'](_0x5476('0x15'),{'class':_0x5476('0x19')+_0x761380}),_0x508b12=_0x2ce115['mapper'][_0x5476('0x21')](_0x18da39);_0x2ea9ba&&_0x3192ca[_0x5476('0x6')][_0x5476('0xa')](_0x5d2671['markerName'])&&_0x2ce115[_0x5476('0x11')]['addClass'](_0x5476('0x16'),_0x2793af),_0x2ce115['writer']['insert'](_0x508b12,_0x2793af),_0x2ce115[_0x5476('0x1e')][_0x5476('0x18')](_0x2793af,_0x5d2671['markerName']);}_0x162846||_0xb8da47||!_0x1484a8||_0x5dd5d2(_0x1484a8);};}
|