@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240104.0 → 0.0.0-nightly-20240106.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/aiassistant.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/casechange.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/imagestyle.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 _0x1cd0=['remove','insertColumns','tableCellBackgroundColor','TableClipboard','isEmpty','activeMarkers','markMultiRangeBlockFormat','rootName','find','setAttributes','getChanges','newRange','tableCellVerticalAlignment','createRangeOn','markMultiRangeInsertion','_createdBatches','set','keys','has','_replaceTableSlotCell','conversion','getChildren','tablePasteChainId','Users','high','insertRows','registerDescriptionCallback','isEqual','createElement','_suggestionFactory','tablePasteRow','registerPostFixer','registerCustomCallback','getChild','name','ck-suggestion-marker','afterInit','updateMarker','tableCellSuggestion','endColumn','selection','tablePasteColumn','_descriptionFactory','TrackChangesEditing','for','options','fill','removeMarker','hasSuggestion','containsRange','stop','getRowIndexes','from','column','markerName','columns','getRanges','getSuggestionCallback','tablePasteCell','differ','getRows','_getCoordsForCells','add','get','accept','includes','getMarkers','fromEntries','batch','markerToHighlight','removeRows','insertion','low','commands','listenTo','unwrap','TableUtils','view','return','createRangeIn','getAllAdjacentSuggestions','tableCellBorderColor','_isForcedDefaultExecutionBlock','getContainedElement','getColumnIndexes','rowInsertionIndexes','insert','_splitMarkerName','type','getSuggestions','map','change','position','deletionRanges','insertContent','showSuggestionHighlights','deletion','register','tableCell','oldRange','_tablePostFixingSubtypes','isInContent','subType','columnInsertionIndexes','tableCellHorizontalAlignment','suggestionUnloaded','getChangedMarkers','tablePaste','suggestion-td','markMultiRangeDeletion','filter','createRange','getTableIfOnlyTableInContent','cells','nextSibling','rows','endRow','$graveyard','formatBlock','model','push','discard','wrap','document','every','elementToElement','startsWith','rowInsertionRanges','author','previousSibling','dataDowncast','getShiftedBy','first','join','end','suggestion','attributes','removeColumns','element','paragraph','getItems','suggestionLoaded','createTableWalker','editor','findAncestor','table','schema','getRange','ck-suggestion-marker-insertion','plugins','last','markers','length','editingDowncast','markerAttributes','nodeAfter'];(function(_0x1255ae,_0x1cd0a5){const _0x54c053=function(_0x1eb1bc){while(--_0x1eb1bc){_0x1255ae['push'](_0x1255ae['shift']());}};_0x54c053(++_0x1cd0a5);}(_0x1cd0,0xb1));const _0x54c0=function(_0x1255ae,_0x1cd0a5){_0x1255ae=_0x1255ae-0x0;let _0x54c053=_0x1cd0[_0x1255ae];return _0x54c053;};import{getTranslation as _0x285d30}from'../utils/common-translations.js';import{Plugin as _0x57b700}from'ckeditor5/src/core.js';import{uid as _0x1ef439,priorities as _0x517e06}from'ckeditor5/src/utils.js';import _0x101e57 from'./table.js';const le=['tableCellBorderWidth',_0x54c0('0x3c'),'tableCellBorderStyle',_0x54c0('0x53'),_0x54c0('0x93'),_0x54c0('0x89'),'tableCellPadding'],ae=Object['fromEntries'](le['map'](_0x32add2=>[_0x32add2,null]));export default class At extends _0x57b700{static get['requires'](){return[_0x101e57];}[_0x54c0('0xf')](){const _0x15ec79=this[_0x54c0('0x7a')];if(!_0x15ec79[_0x54c0('0x80')][_0x54c0('0x99')]('TableClipboard'))return;const _0x45296e=_0x15ec79[_0x54c0('0x80')][_0x54c0('0x2a')](_0x54c0('0x16')),_0x5883a3=_0x15ec79[_0x54c0('0x80')][_0x54c0('0x2a')](_0x54c0('0x37')),_0x47f973=_0x15ec79[_0x54c0('0x80')][_0x54c0('0x2a')](_0x101e57),_0x153220=_0x15ec79[_0x54c0('0x80')]['get'](_0x54c0('0x8a'));_0x47f973[_0x54c0('0x4f')][_0x54c0('0x63')](_0x54c0('0x9'),'tablePasteColumn'),_0x15ec79[_0x54c0('0x62')][_0x54c0('0x7d')][_0x54c0('0x4c')](_0x54c0('0x11'),{'allowIn':_0x54c0('0x4d'),'allowContentOf':_0x54c0('0x4d'),'isLimit':!0x0}),_0x15ec79[_0x54c0('0x9b')][_0x54c0('0x68')]({'model':_0x54c0('0x11'),'view':_0x54c0('0x57')});let _0x32b29d=null;_0x15ec79[_0x54c0('0x62')]['on'](_0x54c0('0x49'),(_0x3eea1c,_0x2feae5)=>{const [_0x401ce0,_0x507726]=_0x2feae5,_0x2f9739=_0x2feae5[_0x2feae5[_0x54c0('0x83')]-0x1];_0x2f9739&&_0x2f9739['forceDefaultExecution']||_0x45296e[_0x54c0('0x3d')]||this[_0x54c0('0x7a')][_0x54c0('0x34')]['get']('trackChanges')['value']&&function(_0x3426c3,_0x5c995c,_0x2d2a80,_0x5ceebf,_0x5074e5){if(_0x5c995c&&!_0x5c995c['is']('documentSelection'))return!0x1;const _0x5aa22d=_0x5074e5[_0x54c0('0x5b')](_0x3426c3,_0x2d2a80);if(!_0x5aa22d||!fe(_0x5aa22d,void 0x0,_0x5ceebf))return!0x1;const _0x3cf13a=_0x5ceebf['getSelectionAffectedTableCells'](_0x2d2a80[_0x54c0('0x66')][_0x54c0('0x13')]);if(!_0x3cf13a['length'])return!0x1;const _0x1ada91=_0x3cf13a[0x0]['findAncestor'](_0x54c0('0x7c')),_0xc13359=_0x5ceebf[_0x54c0('0x1e')](_0x3cf13a),_0x2ca664=_0x5ceebf[_0x54c0('0x3f')](_0x3cf13a),_0x1df091={'startRow':_0xc13359[_0x54c0('0x6f')],'endRow':_0xc13359[_0x54c0('0x81')],'startColumn':_0x2ca664[_0x54c0('0x6f')],'endColumn':_0x2ca664[_0x54c0('0x81')]};return 0x1==_0x3cf13a[_0x54c0('0x83')]&&(_0x1df091[_0x54c0('0x5f')]+=_0x5ceebf[_0x54c0('0x27')](_0x5aa22d)-0x1,_0x1df091[_0x54c0('0x12')]+=_0x5ceebf['getColumns'](_0x5aa22d)-0x1),fe(_0x1ada91,_0x1df091,_0x5ceebf);}(_0x401ce0,_0x507726,_0x15ec79[_0x54c0('0x62')],_0x5883a3,_0x153220)&&(_0x3eea1c['stop'](),_0x32b29d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x15ec79[_0x54c0('0x62')][_0x54c0('0x46')](()=>{_0x15ec79['model'][_0x54c0('0x49')](_0x2feae5[0x0],_0x2feae5[0x1],_0x2feae5[0x2],{'forceDefaultExecution':!0x0});const _0x110b8d=_0x1ef439(),{rowInsertionRanges:_0x515f1d,columnInsertionRanges:_0x253bba,insertionRanges:_0x50dafb,deletionRanges:_0x1b80e1,cells:_0x7b75b4}=_0x32b29d;_0x515f1d['length']&&_0x45296e[_0x54c0('0x95')](_0x515f1d,'tablePasteRow',{'tablePasteChainId':_0x110b8d}),_0x253bba[_0x54c0('0x83')]&&_0x45296e['markMultiRangeInsertion'](_0x253bba,_0x54c0('0x14'),{'tablePasteChainId':_0x110b8d}),_0x50dafb['length']&&_0x45296e[_0x54c0('0x95')](_0x50dafb,_0x54c0('0x56'),{'tablePasteChainId':_0x110b8d,'skipNestingCheck':!0x0}),_0x1b80e1[_0x54c0('0x83')]&&_0x45296e[_0x54c0('0x58')](_0x1b80e1,'tablePaste',{'tablePasteChainId':_0x110b8d,'skipNestingCheck':!0x0});const _0x18ed2f=_0x45296e[_0x54c0('0x8d')](_0x7b75b4['map'](({element:_0x5a4ee1})=>_0x5a4ee1),{'formatGroupId':_0x1ef439()},[],_0x54c0('0x25'),{'tablePasteChainId':_0x110b8d});if(_0x18ed2f){const _0x2e99e9=_0x18ed2f[_0x54c0('0x2d')](),_0x574538=[];for(const {element:_0x3e00f1,attributes:_0x498871}of _0x7b75b4){if(!_0x498871)continue;const _0x3a72ba=_0x15ec79[_0x54c0('0x62')][_0x54c0('0x94')](_0x3e00f1),_0x7fc4e3=_0x2e99e9[_0x54c0('0x8f')](_0x38e266=>_0x38e266[_0x54c0('0x7e')]()[_0x54c0('0x6')](_0x3a72ba));_0x7fc4e3&&_0x574538['push']([_0x7fc4e3['name'],_0x498871]);}_0x574538['length']&&_0x18ed2f['setAttribute'](_0x54c0('0x85'),Object['fromEntries'](_0x574538));}_0x32b29d=null;}));},{'priority':_0x517e06[_0x54c0('0x3')]+0xa}),_0x15ec79[_0x54c0('0x80')][_0x54c0('0x2a')]('TableClipboard')['on'](_0x54c0('0x9a'),(_0x403cc2,_0x126d17)=>{const [_0x49c6c9,_0x2f0306,,_0x57338d]=_0x126d17;if(!_0x32b29d)return;_0x403cc2[_0x54c0('0x1d')]();const _0x1e6e2f=_0x49c6c9['cell'],_0x162bbc=_0x2f0306,_0x1dfc50=ce(_0x1e6e2f),_0x3ea23d=ce(_0x162bbc);_0x403cc2[_0x54c0('0x39')]=_0x1e6e2f;let _0x3e0d0c=null,_0x43de70=null;if(_0x3ea23d||_0x1dfc50){if(_0x1dfc50&&!_0x3ea23d){_0x57338d[_0x54c0('0x87')](_0x1e6e2f['getChild'](0x0));for(const _0x4938ce of Array['from'](_0x162bbc[_0x54c0('0x0')]()))_0x57338d[_0x54c0('0x41')](_0x4938ce,_0x1e6e2f,'end');const _0x4d990b=_0x32b29d['rowInsertionIndexes']['includes'](_0x49c6c9['row']),_0x50e7a9=_0x32b29d[_0x54c0('0x52')][_0x54c0('0x2c')](_0x49c6c9[_0x54c0('0x20')]);_0x4d990b||_0x50e7a9||(_0x3e0d0c=_0x57338d[_0x54c0('0x3a')](_0x1e6e2f));}else _0x3ea23d&&!_0x1dfc50&&(_0x43de70=_0x57338d[_0x54c0('0x3a')](_0x1e6e2f));}else{const _0x948ddb=_0x57338d['createElement'](_0x54c0('0x11')),_0x56cc19=_0x57338d[_0x54c0('0x7')]('tableCellSuggestion');_0x57338d[_0x54c0('0x65')](_0x57338d[_0x54c0('0x3a')](_0x1e6e2f),_0x56cc19),_0x57338d[_0x54c0('0x41')](_0x948ddb,_0x1e6e2f,0x0);for(const _0x2ac784 of Array['from'](_0x162bbc[_0x54c0('0x0')]()))_0x57338d[_0x54c0('0x41')](_0x2ac784,_0x948ddb,_0x54c0('0x71'));_0x3e0d0c=_0x57338d['createRangeOn'](_0x948ddb),_0x43de70=_0x57338d[_0x54c0('0x94')](_0x56cc19);}const _0x25bc69=Array[_0x54c0('0x1f')](_0x162bbc['getAttributes']())[_0x54c0('0x59')](([_0x2f3a6d])=>le[_0x54c0('0x2c')](_0x2f3a6d));_0x32b29d['cells'][_0x54c0('0x63')]({'element':_0x1e6e2f,'attributes':_0x25bc69[_0x54c0('0x83')]?Object[_0x54c0('0x2e')](_0x25bc69):null}),_0x3e0d0c&&_0x32b29d['insertionRanges'][_0x54c0('0x63')](_0x3e0d0c),_0x43de70&&_0x32b29d[_0x54c0('0x48')]['push'](_0x43de70);},{'priority':_0x54c0('0x3')}),_0x5883a3['on'](_0x54c0('0x88'),(_0x551433,_0x105aaa)=>{const [_0xc265c,_0x11cfd3={}]=_0x105aaa;if(!_0x32b29d)return;const _0xb7185=_0x11cfd3['at']||0x0,_0x58808a=_0x11cfd3[_0x54c0('0x22')]||0x1;_0x32b29d['columnInsertionIndexes']=new Array(_0x58808a)[_0x54c0('0x19')](_0xb7185)[_0x54c0('0x45')]((_0x6a5f2c,_0x59608b)=>_0x6a5f2c+_0x59608b);for(const {cell:_0xcc0611}of _0x5883a3[_0x54c0('0x79')](_0xc265c,{'startColumn':_0xb7185,'endColumn':_0xb7185+_0x58808a-0x1}))_0x32b29d['columnInsertionRanges'][_0x54c0('0x63')](_0x15ec79[_0x54c0('0x62')][_0x54c0('0x94')](_0xcc0611));},{'priority':_0x54c0('0x33')}),_0x5883a3['on'](_0x54c0('0x4'),(_0x5bfa7b,_0x3f2e2a)=>{const [_0x3d917d,_0x39eddc={}]=_0x3f2e2a;if(!_0x32b29d)return;const _0x192b42=_0x39eddc['at']||0x0,_0x1d50d7=_0x39eddc[_0x54c0('0x5e')]||0x1;_0x32b29d[_0x54c0('0x40')]=new Array(_0x1d50d7)[_0x54c0('0x19')](_0x192b42)[_0x54c0('0x45')]((_0x86d32d,_0x16a8c9)=>_0x86d32d+_0x16a8c9);for(const {cell:_0x249267}of _0x5883a3[_0x54c0('0x79')](_0x3d917d,{'startRow':_0x192b42,'endRow':_0x192b42+_0x1d50d7-0x1}))_0x32b29d[_0x54c0('0x6a')]['push'](_0x15ec79[_0x54c0('0x62')]['createRangeOn'](_0x249267));},{'priority':'low'}),_0x45296e[_0x54c0('0x15')][_0x54c0('0x5')](_0x2b57af=>{if(_0x2b57af[_0x54c0('0x51')]&&_0x2b57af[_0x54c0('0x51')][_0x54c0('0x69')](_0x54c0('0x56')))return _0x2b57af['previous']?{}:{'type':'insertion','content':_0x285d30(_0x15ec79['locale'],'*Replace\x20table\x20cells*')};});const _0xdecbdd=()=>!0x1;for(const _0x2ced94 of['tablePaste','tablePasteColumn','tablePasteRow',_0x54c0('0x25')])_0x45296e[_0x54c0('0x8')][_0x54c0('0xb')](_0x54c0('0x32'),_0x2ced94,_0x54c0('0x70'),_0xdecbdd),_0x45296e['_suggestionFactory']['registerCustomCallback']('deletion',_0x2ced94,'join',_0xdecbdd),_0x45296e[_0x54c0('0x8')][_0x54c0('0xb')](_0x54c0('0x61'),_0x2ced94,_0x54c0('0x70'),_0xdecbdd);_0x45296e['_suggestionFactory']['registerCustomCallback'](_0x54c0('0x61'),_0x54c0('0x25'),_0x54c0('0x64'),_0xdecbdd),_0x45296e['_suggestionFactory']['registerCustomCallback'](_0x54c0('0x61'),_0x54c0('0x25'),_0x54c0('0x2b'),(_0x154e11,_0x2c0812,_0x55c15d)=>{const _0x3e7110=_0x154e11[_0x54c0('0x45')](_0x172894=>_0x172894[_0x54c0('0x3e')]())['filter'](_0x3de849=>_0x3de849),_0x135d6c=new Map(_0x3e7110[_0x54c0('0x45')](_0x107e83=>[_0x107e83,null]));if(_0x32b29d)for(const {element:_0x552239,attributes:_0x19703e}of _0x32b29d[_0x54c0('0x5c')])_0x19703e&&_0x135d6c[_0x54c0('0x97')](_0x552239,_0x19703e);else{if(_0x55c15d&&_0x55c15d[_0x54c0('0x85')])for(const [_0x3df194,_0x40fbe7]of Object['entries'](_0x55c15d[_0x54c0('0x85')])){const _0x404ddc=_0x15ec79[_0x54c0('0x62')][_0x54c0('0x82')][_0x54c0('0x2a')](_0x3df194),_0x2b065b=_0x404ddc?_0x404ddc['getRange']()[_0x54c0('0x3e')]():null;_0x2b065b&&_0x135d6c[_0x54c0('0x97')](_0x2b065b,_0x40fbe7);}}_0x15ec79[_0x54c0('0x62')][_0x54c0('0x46')](_0x3a1636=>{for(const [_0x3f5991,_0x40c1fe]of _0x135d6c)_0x3a1636[_0x54c0('0x90')]({...ae,..._0x40c1fe},_0x3f5991);});});const _0x5e9c75=(_0x58d9c6,_0x159f92)=>{_0x45296e['_suggestionFactory']['registerCustomCallback'](_0x58d9c6,_0x54c0('0x56'),_0x159f92,(_0x2fc308,_0x59ee4d,_0x3e3d8a)=>{_0x15ec79[_0x54c0('0x62')][_0x54c0('0x46')](_0xd205d7=>{const _0x391bd9=[];for(const _0x12ac5d of _0x2fc308){const _0x3ec964=_0x12ac5d['start'][_0x54c0('0x86')];_0x3ec964['is'](_0x54c0('0x75'),'tableCellSuggestion')&&_0x391bd9[_0x54c0('0x63')](_0x3ec964);}_0x45296e[_0x54c0('0x8')][_0x54c0('0x24')](_0x58d9c6,null,_0x159f92)(_0x2fc308,_0x59ee4d,_0x3e3d8a);for(const _0x332a4a of _0x391bd9)_0x54c0('0x60')!=_0x332a4a['root'][_0x54c0('0x8e')]&&_0xd205d7[_0x54c0('0x36')](_0x332a4a);});});};_0x5e9c75('insertion',_0x54c0('0x2b')),_0x5e9c75(_0x54c0('0x32'),_0x54c0('0x64')),_0x5e9c75('deletion',_0x54c0('0x2b')),_0x5e9c75(_0x54c0('0x4b'),'discard'),_0x45296e[_0x54c0('0x8')][_0x54c0('0xb')]('insertion',_0x54c0('0x9'),_0x54c0('0x64'),_0x4c4f87=>{const _0x4f1929=_0x4c4f87[_0x54c0('0x45')](_0x4d2acb=>_0x4d2acb[_0x54c0('0x3e')]()),_0x4038cf=_0x4f1929[0x0][_0x54c0('0x7b')](_0x54c0('0x7c')),{minRow:_0x45c27f,maxRow:_0x2c608b}=_0x47f973[_0x54c0('0x28')](_0x4f1929);_0x5883a3[_0x54c0('0x31')](_0x4038cf,{'at':_0x45c27f,'rows':_0x2c608b-_0x45c27f+0x1});}),_0x45296e[_0x54c0('0x8')][_0x54c0('0xb')](_0x54c0('0x32'),_0x54c0('0x14'),_0x54c0('0x64'),_0x53f9ed=>{const _0x442dd0=_0x53f9ed['map'](_0x1f02ea=>_0x1f02ea[_0x54c0('0x3e')]()),_0x4524b2=_0x442dd0[0x0][_0x54c0('0x7b')]('table'),{minColumn:_0x15fa29,maxColumn:_0x54a109}=_0x47f973[_0x54c0('0x28')](_0x442dd0);_0x5883a3[_0x54c0('0x74')](_0x4524b2,{'at':_0x15fa29,'columns':_0x54a109-_0x15fa29+0x1});});const _0x26fe5d=(_0x18f8f7,_0x31803f)=>{if(!_0x31803f['subType']||!_0x31803f['subType'][_0x54c0('0x69')]('tablePaste'))return;const _0x2ba736=_0x31803f['attributes'][_0x54c0('0x1')],_0x33aa85=_0x45296e[_0x54c0('0x44')]()[_0x54c0('0x59')](_0x5093e3=>_0x5093e3['isInContent']&&_0x5093e3[_0x54c0('0x73')]&&_0x5093e3[_0x54c0('0x73')][_0x54c0('0x1')]==_0x2ba736);_0x33aa85[_0x54c0('0x83')]&&_0x31803f[_0x54c0('0x3b')]()[_0x54c0('0x83')]!=_0x33aa85[_0x54c0('0x83')]&&_0x33aa85['reduce']((_0x7e54ec,_0x5ed220)=>(_0x7e54ec['next']=_0x5ed220,_0x5ed220['previous']=_0x7e54ec,_0x5ed220));};function _0x252051(_0xc3eddf,_0x29ba8e=!0x0){const {id:_0x1ddd7b}=_0x45296e[_0x54c0('0x42')](_0xc3eddf[_0x54c0('0x21')]),_0x293d59=[_0x54c0('0xe'),_0x54c0('0x7f')],_0x3fbd1f=_0x45296e[_0x54c0('0x8c')][_0x54c0('0x2c')](_0xc3eddf[_0x54c0('0x21')]);return _0x3fbd1f&&_0x293d59[_0x54c0('0x63')]('ck-suggestion-marker--active'),{'classes':_0x293d59,'attributes':{'data-suggestion':_0x1ddd7b},'priority':_0x3fbd1f&&_0x29ba8e?0xbc2:0xbb8};}_0x45296e['on'](_0x54c0('0x78'),_0x26fe5d,{'priority':'high'}),_0x45296e['on'](_0x54c0('0x54'),_0x26fe5d,{'priority':_0x54c0('0x3')}),_0x15ec79[_0x54c0('0x62')][_0x54c0('0x66')]['registerPostFixer'](()=>{let _0x478779=!0x1;const _0x1ce9c9=Array[_0x54c0('0x1f')](_0x15ec79[_0x54c0('0x62')][_0x54c0('0x66')][_0x54c0('0x26')]['getChangedMarkers']());for(const {name:_0x416638,data:_0x3465b4}of _0x1ce9c9){const {group:_0x2869f5,type:_0x405769,id:_0xed4db}=_0x45296e[_0x54c0('0x42')](_0x416638);if('suggestion'!=_0x2869f5||_0x54c0('0x4b')!=_0x405769||_0x3465b4[_0x54c0('0x4e')])continue;if(!_0x45296e[_0x54c0('0x1b')](_0xed4db))continue;const _0x255bab=_0x45296e['getSuggestion'](_0xed4db)['getRanges'](),_0x327c9d=_0x15ec79[_0x54c0('0x80')][_0x54c0('0x2a')](_0x54c0('0x2'))['me'];for(const _0x48b3cf of _0x45296e['getSuggestions']()){if(!_0x48b3cf['isInContent']||_0x48b3cf[_0x54c0('0x6b')]!=_0x327c9d)continue;if('formatBlock'!=_0x48b3cf[_0x54c0('0x43')]||_0x54c0('0x25')!=_0x48b3cf[_0x54c0('0x51')])continue;if(_0x48b3cf[_0x54c0('0x23')]()[_0x54c0('0x67')](_0x26c8ba=>_0x255bab['some'](_0x30ac1c=>_0x30ac1c[_0x54c0('0x1c')](_0x26c8ba,!0x0))))for(const _0x2550a2 of _0x48b3cf[_0x54c0('0x3b')]())_0x2550a2[_0x54c0('0x50')]&&(_0x2550a2[_0x54c0('0x64')](),_0x478779=!0x0);}}return _0x478779;}),_0x15ec79[_0x54c0('0x62')][_0x54c0('0x66')][_0x54c0('0xa')](_0x2b353d=>{const _0x57c40a=_0x15ec79[_0x54c0('0x34')][_0x54c0('0x2a')]('redo');if(!_0x57c40a||!_0x57c40a[_0x54c0('0x96')][_0x54c0('0x99')](_0x2b353d[_0x54c0('0x2f')]))return!0x1;let _0x351f55=!0x1;const _0x306040=_0x15ec79[_0x54c0('0x80')][_0x54c0('0x2a')]('Users')['me'],_0x51adaa=_0x15ec79[_0x54c0('0x62')]['document'][_0x54c0('0x26')][_0x54c0('0x91')](),_0x12937a=Array[_0x54c0('0x1f')](_0x15ec79[_0x54c0('0x62')]['document'][_0x54c0('0x26')][_0x54c0('0x55')]())['filter'](({name:_0x39fd8b,data:_0x47171})=>{const {group:_0x31bb6f,subType:_0x1b189d,authorId:_0x122e0e}=_0x45296e['_splitMarkerName'](_0x39fd8b);return _0x54c0('0x72')==_0x31bb6f&&_0x54c0('0x56')==_0x1b189d&&_0x122e0e==_0x306040['id']&&!_0x47171['oldRange'];});for(const _0x2b9a9a of _0x51adaa){if('insert'!=_0x2b9a9a['type']||_0x54c0('0x11')!=_0x2b9a9a[_0x54c0('0xd')]||0x1!=_0x2b9a9a[_0x54c0('0x83')])continue;const _0x556fbc=_0x2b353d[_0x54c0('0x5a')](_0x2b9a9a[_0x54c0('0x47')],_0x2b9a9a[_0x54c0('0x47')][_0x54c0('0x6e')](0x1));if(!_0x12937a[_0x54c0('0x8f')](({data:_0x1438e9})=>_0x1438e9['newRange'][_0x54c0('0x6')](_0x556fbc)))for(const {name:_0x230603,data:_0x26add1}of _0x12937a)if(_0x556fbc[_0x54c0('0x1c')](_0x26add1[_0x54c0('0x92')])){_0x2b353d[_0x54c0('0x10')](_0x230603,{'range':_0x556fbc}),_0x351f55=!0x0;break;}}return _0x351f55;}),_0x15ec79['model'][_0x54c0('0x66')][_0x54c0('0xa')](_0x6dfe33=>{let _0x1895ac=!0x1;const _0x2b0ac6=_0x15ec79[_0x54c0('0x80')][_0x54c0('0x2a')](_0x54c0('0x2'))['me'],_0x33d378=_0x45296e[_0x54c0('0x44')]()[_0x54c0('0x59')](_0x11193b=>_0x11193b[_0x54c0('0x50')]&&_0x11193b['author']==_0x2b0ac6),_0x1ef1ee=new Set(),_0x306e36=new Set();for(const _0x496e52 of _0x33d378)if(_0x54c0('0x56')==_0x496e52[_0x54c0('0x51')])for(const _0x41c608 of _0x496e52[_0x54c0('0x2d')]()){const _0x4d816d=_0x41c608[_0x54c0('0x7e')]()['getContainedElement']();if(_0x4d816d){if(_0x4d816d['is'](_0x54c0('0x75'),_0x54c0('0x11'))&&ce(_0x4d816d)){_0x496e52[_0x54c0('0x1a')](_0x41c608[_0x54c0('0xd')]),_0x1ef1ee['add'](_0x4d816d),_0x1895ac=!0x0;const _0x311a78=_0x4d816d[_0x54c0('0x5d')],_0x71b544=_0x4d816d[_0x54c0('0x6c')],_0x1bf443=_0x311a78&&_0x311a78['is'](_0x54c0('0x75'),_0x54c0('0x11')),_0x3892fc=_0x71b544&&_0x71b544['is'](_0x54c0('0x75'),'tableCellSuggestion');_0x1bf443&&!_0x1ef1ee[_0x54c0('0x99')](_0x311a78)&&_0x306e36['add'](_0x311a78),_0x3892fc&&!_0x1ef1ee['has'](_0x71b544)&&_0x306e36[_0x54c0('0x29')](_0x71b544);}else _0x4d816d['is'](_0x54c0('0x75'),_0x54c0('0x76'))&&_0x4d816d[_0x54c0('0x8b')]&&(_0x496e52[_0x54c0('0x1a')](_0x41c608[_0x54c0('0xd')]),_0x1895ac=!0x0);}}else{if(_0x54c0('0x25')==_0x496e52['subType']){if(!_0x496e52[_0x54c0('0x73')]||!_0x496e52['attributes'][_0x54c0('0x1')])continue;const _0x4b7c58=_0x496e52['attributes'][_0x54c0('0x85')];if(_0x4b7c58&&Object[_0x54c0('0x98')](_0x4b7c58)[_0x54c0('0x83')])continue;const _0x3deefc=_0x496e52[_0x54c0('0x73')][_0x54c0('0x1')];let _0x53ee2c=!0x0,_0x4fba11=!0x0;for(const _0xb352a3 of _0x33d378)if(_0xb352a3[_0x54c0('0x51')]&&_0xb352a3[_0x54c0('0x51')][_0x54c0('0x69')](_0x54c0('0x56'))){if(!_0xb352a3['attributes']['tablePasteChainId']){_0x4fba11=!0x1;break;}if(_0xb352a3['id']!=_0x496e52['id']&&_0xb352a3[_0x54c0('0x73')]['tablePasteChainId']==_0x3deefc){_0x53ee2c=!0x1;break;}}_0x4fba11&&_0x53ee2c&&(_0x496e52['removeMarkers'](),_0x1895ac=!0x0);}}for(const _0xe48a22 of _0x1ef1ee)_0x6dfe33[_0x54c0('0x87')](_0xe48a22);for(const _0x2674bf of _0x306e36)_0x6dfe33['unwrap'](_0x2674bf);return _0x1895ac;}),_0x15ec79[_0x54c0('0x9b')]['for'](_0x54c0('0x84'))[_0x54c0('0x30')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xe38901,_0x227129)=>_0x252051(_0xe38901),'converterPriority':_0x54c0('0x3')}),_0x15ec79[_0x54c0('0x9b')][_0x54c0('0x17')](_0x54c0('0x6d'))[_0x54c0('0x30')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x8e930,_0x516d3f)=>_0x516d3f[_0x54c0('0x18')][_0x54c0('0x4a')]?_0x252051(_0x8e930,!0x1):null,'converterPriority':_0x54c0('0x3')});const _0x36645d=_0x15ec79['editing'][_0x54c0('0x38')];this[_0x54c0('0x35')](_0x36645d['document'],'clipboardOutput',(_0x4f477a,_0x3c20ae)=>{const _0x109a5e=[];for(const _0x44e2bb of _0x36645d[_0x54c0('0x3a')](_0x3c20ae['content'])[_0x54c0('0x77')]())_0x44e2bb['is']('element',_0x54c0('0x57'))&&_0x109a5e['push'](_0x44e2bb);_0x36645d[_0x54c0('0x46')](_0x36d2e1=>{for(const _0x540ea0 of _0x109a5e)_0x36d2e1['move'](_0x36d2e1['createRangeIn'](_0x540ea0),_0x36d2e1['createPositionBefore'](_0x540ea0)),_0x36d2e1[_0x54c0('0x87')](_0x540ea0);});});}}function ce(_0x3fa61f){if(_0x3fa61f['isEmpty'])return!0x0;const _0x5ce347=_0x3fa61f[_0x54c0('0xc')](0x0);return _0x5ce347['is']('element',_0x54c0('0x76'))&&_0x5ce347[_0x54c0('0x8b')];}function fe(_0x47c07a,_0x2912c6={},_0x50f4a2){for(const {isAnchor:_0x410a3f,cellHeight:_0x5c48ef,cellWidth:_0x41dabd}of _0x50f4a2[_0x54c0('0x79')](_0x47c07a,{'includeAllSlots':!0x0,..._0x2912c6}))if(!_0x410a3f||0x1!=_0x5c48ef||0x1!=_0x41dabd)return!0x1;return!0x0;}
|
|
23
|
+
const _0xba71=['tableCellSuggestion','table','_replaceTableSlotCell','_descriptionFactory','get','_suggestionFactory','TableClipboard','redo','insertColumns','high','map','rows','removeRows','removeColumns','reduce','push','join','attributes','fill','requires','rootName','filter','editor','oldRange','row','registerPostFixer','from','insertion','getSuggestions','set','endColumn','subType','insertRows','removeMarkers','change','schema','trackChanges','insertContent','value','low','tableCellBorderStyle','endRow','cells','createElement','suggestion-td','suggestionLoaded','_splitMarkerName','markerToHighlight','root','getSuggestion','clipboardOutput','dataDowncast','entries','tablePasteCell','isEmpty','_getCoordsForCells','Users','markers','tableCellPadding','tablePasteChainId','_isForcedDefaultExecutionBlock','remove','previousSibling','getColumnIndexes','nextSibling','tableCellBackgroundColor','document','createRangeOn','editing','getRows','ck-suggestion-marker--active','commands','start','newRange','add','every','_createdBatches','ck-suggestion-marker-insertion','conversion','rowInsertionRanges','columnInsertionRanges','previous','updateMarker','tablePasteColumn','name','tablePasteRow','getMarkers','end','columnInsertionIndexes','deletion','ck-suggestion-marker','includes','markMultiRangeInsertion','tableCellBorderColor','isEqual','getAttributes','createPositionBefore','TableUtils','registerDescriptionCallback','createRangeIn','deletionRanges','plugins','createTableWalker','tableCellBorderWidth','selection','getShiftedBy','nodeAfter','unwrap','find','accept','insert','wrap','tableCellHorizontalAlignment','containsRange','getColumns','return','registerCustomCallback','first','last','suggestionUnloaded','getChild','discard','getChanges','for','tablePaste','markMultiRangeBlockFormat','some','position','getRange','cell','documentSelection','has','formatBlock','register','showSuggestionHighlights','columns','findAncestor','fromEntries','paragraph','length','model','suggestion','getRowIndexes','getItems','getTableIfOnlyTableInContent','getSelectionAffectedTableCells','hasSuggestion','tableCell','view','stop','differ','element','markerName','getChangedMarkers','suggestion:formatBlock:tablePasteCell','type','getChildren','getAllAdjacentSuggestions','options','removeMarker','markerAttributes','getSuggestionCallback','isInContent','rowInsertionIndexes','getContainedElement','author','content','startsWith'];(function(_0x268f17,_0xba71e7){const _0x2c0e19=function(_0x2ba10f){while(--_0x2ba10f){_0x268f17['push'](_0x268f17['shift']());}};_0x2c0e19(++_0xba71e7);}(_0xba71,0x106));const _0x2c0e=function(_0x268f17,_0xba71e7){_0x268f17=_0x268f17-0x0;let _0x2c0e19=_0xba71[_0x268f17];return _0x2c0e19;};import{getTranslation as _0x22dde3}from'../utils/common-translations.js';import{Plugin as _0x49be36}from'ckeditor5/src/core.js';import{uid as _0x49562f,priorities as _0x4807ea}from'ckeditor5/src/utils.js';import _0x4fff04 from'./table.js';const le=[_0x2c0e('0x9'),_0x2c0e('0xa7'),_0x2c0e('0x72'),_0x2c0e('0x12'),'tableCellVerticalAlignment',_0x2c0e('0x8b'),_0x2c0e('0x84')],ae=Object[_0x2c0e('0x2b')](le[_0x2c0e('0x54')](_0x26cca5=>[_0x26cca5,null]));export default class At extends _0x49be36{static get[_0x2c0e('0x5d')](){return[_0x4fff04];}['afterInit'](){const _0x19c883=this[_0x2c0e('0x60')];if(!_0x19c883[_0x2c0e('0x7')][_0x2c0e('0x25')]('TableClipboard'))return;const _0x46a9bf=_0x19c883['plugins'][_0x2c0e('0x4e')]('TrackChangesEditing'),_0x50dbe6=_0x19c883[_0x2c0e('0x7')][_0x2c0e('0x4e')](_0x2c0e('0x3')),_0x1a1bc4=_0x19c883[_0x2c0e('0x7')][_0x2c0e('0x4e')](_0x4fff04),_0x2d11c3=_0x19c883[_0x2c0e('0x7')]['get'](_0x2c0e('0x50'));_0x1a1bc4['_tablePostFixingSubtypes']['push'](_0x2c0e('0x9f'),'tablePasteColumn'),_0x19c883['model'][_0x2c0e('0x6d')][_0x2c0e('0x27')](_0x2c0e('0x4a'),{'allowIn':_0x2c0e('0x35'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x19c883['conversion']['elementToElement']({'model':_0x2c0e('0x4a'),'view':_0x2c0e('0x76')});let _0x1e0ca6=null;_0x19c883[_0x2c0e('0x2e')]['on'](_0x2c0e('0x6f'),(_0x4ba7e8,_0x3ed45f)=>{const [_0x32f2f9,_0xa4af1d]=_0x3ed45f,_0x1f32f3=_0x3ed45f[_0x3ed45f['length']-0x1];_0x1f32f3&&_0x1f32f3['forceDefaultExecution']||_0x46a9bf[_0x2c0e('0x86')]||this[_0x2c0e('0x60')]['commands'][_0x2c0e('0x4e')](_0x2c0e('0x6e'))[_0x2c0e('0x70')]&&function(_0x1ee34f,_0x18899f,_0x158e02,_0x2d914b,_0x3863ed){if(_0x18899f&&!_0x18899f['is'](_0x2c0e('0x24')))return!0x1;const _0x36bdd8=_0x3863ed[_0x2c0e('0x32')](_0x1ee34f,_0x158e02);if(!_0x36bdd8||!fe(_0x36bdd8,void 0x0,_0x2d914b))return!0x1;const _0x1cc257=_0x2d914b[_0x2c0e('0x33')](_0x158e02[_0x2c0e('0x8c')][_0x2c0e('0xa')]);if(!_0x1cc257[_0x2c0e('0x2d')])return!0x1;const _0x38f322=_0x1cc257[0x0]['findAncestor'](_0x2c0e('0x4b')),_0x5abba4=_0x2d914b[_0x2c0e('0x30')](_0x1cc257),_0x3bdd5e=_0x2d914b[_0x2c0e('0x89')](_0x1cc257),_0x4155a3={'startRow':_0x5abba4[_0x2c0e('0x17')],'endRow':_0x5abba4[_0x2c0e('0x18')],'startColumn':_0x3bdd5e['first'],'endColumn':_0x3bdd5e[_0x2c0e('0x18')]};return 0x1==_0x1cc257[_0x2c0e('0x2d')]&&(_0x4155a3[_0x2c0e('0x73')]+=_0x2d914b[_0x2c0e('0x8f')](_0x36bdd8)-0x1,_0x4155a3[_0x2c0e('0x68')]+=_0x2d914b[_0x2c0e('0x14')](_0x36bdd8)-0x1),fe(_0x38f322,_0x4155a3,_0x2d914b);}(_0x32f2f9,_0xa4af1d,_0x19c883[_0x2c0e('0x2e')],_0x50dbe6,_0x2d11c3)&&(_0x4ba7e8['stop'](),_0x1e0ca6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x19c883['model']['change'](()=>{_0x19c883[_0x2c0e('0x2e')][_0x2c0e('0x6f')](_0x3ed45f[0x0],_0x3ed45f[0x1],_0x3ed45f[0x2],{'forceDefaultExecution':!0x0});const _0x4addcb=_0x49562f(),{rowInsertionRanges:_0x507b72,columnInsertionRanges:_0x3dca0e,insertionRanges:_0xcf64c9,deletionRanges:_0x54d208,cells:_0x44894d}=_0x1e0ca6;_0x507b72[_0x2c0e('0x2d')]&&_0x46a9bf[_0x2c0e('0xa6')](_0x507b72,_0x2c0e('0x9f'),{'tablePasteChainId':_0x4addcb}),_0x3dca0e[_0x2c0e('0x2d')]&&_0x46a9bf[_0x2c0e('0xa6')](_0x3dca0e,_0x2c0e('0x9d'),{'tablePasteChainId':_0x4addcb}),_0xcf64c9[_0x2c0e('0x2d')]&&_0x46a9bf['markMultiRangeInsertion'](_0xcf64c9,_0x2c0e('0x1e'),{'tablePasteChainId':_0x4addcb,'skipNestingCheck':!0x0}),_0x54d208['length']&&_0x46a9bf['markMultiRangeDeletion'](_0x54d208,_0x2c0e('0x1e'),{'tablePasteChainId':_0x4addcb,'skipNestingCheck':!0x0});const _0x4851a6=_0x46a9bf[_0x2c0e('0x1f')](_0x44894d['map'](({element:_0x1f2933})=>_0x1f2933),{'formatGroupId':_0x49562f()},[],_0x2c0e('0x7f'),{'tablePasteChainId':_0x4addcb});if(_0x4851a6){const _0x25b41a=_0x4851a6[_0x2c0e('0xa0')](),_0x1e31d9=[];for(const {element:_0x47fe82,attributes:_0x32afc1}of _0x44894d){if(!_0x32afc1)continue;const _0x7eda38=_0x19c883[_0x2c0e('0x2e')][_0x2c0e('0x8d')](_0x47fe82),_0x487e2e=_0x25b41a['find'](_0x4c00bf=>_0x4c00bf[_0x2c0e('0x22')]()[_0x2c0e('0x0')](_0x7eda38));_0x487e2e&&_0x1e31d9['push']([_0x487e2e[_0x2c0e('0x9e')],_0x32afc1]);}_0x1e31d9[_0x2c0e('0x2d')]&&_0x4851a6['setAttribute']('markerAttributes',Object[_0x2c0e('0x2b')](_0x1e31d9));}_0x1e0ca6=null;}));},{'priority':_0x4807ea['high']+0xa}),_0x19c883['plugins'][_0x2c0e('0x4e')](_0x2c0e('0x50'))['on'](_0x2c0e('0x4c'),(_0x2575ca,_0x230eee)=>{const [_0x50c37e,_0x1e05f3,,_0x4afdd7]=_0x230eee;if(!_0x1e0ca6)return;_0x2575ca[_0x2c0e('0x37')]();const _0x8a6fe5=_0x50c37e[_0x2c0e('0x23')],_0x4cc280=_0x1e05f3,_0x48705f=ce(_0x8a6fe5),_0x1579b8=ce(_0x4cc280);_0x2575ca[_0x2c0e('0x15')]=_0x8a6fe5;let _0x28d95c=null,_0x1eb1f0=null;if(_0x1579b8||_0x48705f){if(_0x48705f&&!_0x1579b8){_0x4afdd7[_0x2c0e('0x87')](_0x8a6fe5[_0x2c0e('0x1a')](0x0));for(const _0x2e09fe of Array[_0x2c0e('0x64')](_0x4cc280[_0x2c0e('0x3e')]()))_0x4afdd7[_0x2c0e('0x10')](_0x2e09fe,_0x8a6fe5,_0x2c0e('0xa1'));const _0x24e5e1=_0x1e0ca6[_0x2c0e('0x45')][_0x2c0e('0xa5')](_0x50c37e[_0x2c0e('0x62')]),_0x5cfab5=_0x1e0ca6['columnInsertionIndexes'][_0x2c0e('0xa5')](_0x50c37e['column']);_0x24e5e1||_0x5cfab5||(_0x28d95c=_0x4afdd7[_0x2c0e('0x5')](_0x8a6fe5));}else _0x1579b8&&!_0x48705f&&(_0x1eb1f0=_0x4afdd7[_0x2c0e('0x5')](_0x8a6fe5));}else{const _0x5a7d79=_0x4afdd7[_0x2c0e('0x75')](_0x2c0e('0x4a')),_0x5a5666=_0x4afdd7[_0x2c0e('0x75')]('tableCellSuggestion');_0x4afdd7[_0x2c0e('0x11')](_0x4afdd7[_0x2c0e('0x5')](_0x8a6fe5),_0x5a5666),_0x4afdd7['insert'](_0x5a7d79,_0x8a6fe5,0x0);for(const _0x782a5 of Array[_0x2c0e('0x64')](_0x4cc280[_0x2c0e('0x3e')]()))_0x4afdd7[_0x2c0e('0x10')](_0x782a5,_0x5a7d79,_0x2c0e('0xa1'));_0x28d95c=_0x4afdd7['createRangeOn'](_0x5a7d79),_0x1eb1f0=_0x4afdd7[_0x2c0e('0x8d')](_0x5a5666);}const _0x491eb7=Array[_0x2c0e('0x64')](_0x4cc280[_0x2c0e('0x1')]())['filter'](([_0x36ffec])=>le[_0x2c0e('0xa5')](_0x36ffec));_0x1e0ca6[_0x2c0e('0x74')][_0x2c0e('0x59')]({'element':_0x8a6fe5,'attributes':_0x491eb7[_0x2c0e('0x2d')]?Object['fromEntries'](_0x491eb7):null}),_0x28d95c&&_0x1e0ca6['insertionRanges'][_0x2c0e('0x59')](_0x28d95c),_0x1eb1f0&&_0x1e0ca6[_0x2c0e('0x6')][_0x2c0e('0x59')](_0x1eb1f0);},{'priority':_0x2c0e('0x53')}),_0x50dbe6['on'](_0x2c0e('0x52'),(_0xa9e0e9,_0x574d3c)=>{const [_0x57a62c,_0x209e02={}]=_0x574d3c;if(!_0x1e0ca6)return;const _0xb89b15=_0x209e02['at']||0x0,_0x63fb44=_0x209e02[_0x2c0e('0x29')]||0x1;_0x1e0ca6[_0x2c0e('0xa2')]=new Array(_0x63fb44)[_0x2c0e('0x5c')](_0xb89b15)['map']((_0x1e5751,_0x14d9d2)=>_0x1e5751+_0x14d9d2);for(const {cell:_0x3fda4d}of _0x50dbe6[_0x2c0e('0x8')](_0x57a62c,{'startColumn':_0xb89b15,'endColumn':_0xb89b15+_0x63fb44-0x1}))_0x1e0ca6[_0x2c0e('0x9a')][_0x2c0e('0x59')](_0x19c883[_0x2c0e('0x2e')][_0x2c0e('0x8d')](_0x3fda4d));},{'priority':_0x2c0e('0x71')}),_0x50dbe6['on'](_0x2c0e('0x6a'),(_0x567f53,_0x3a40fb)=>{const [_0x2d917b,_0x4cfd80={}]=_0x3a40fb;if(!_0x1e0ca6)return;const _0x33558a=_0x4cfd80['at']||0x0,_0x434dc4=_0x4cfd80[_0x2c0e('0x55')]||0x1;_0x1e0ca6[_0x2c0e('0x45')]=new Array(_0x434dc4)[_0x2c0e('0x5c')](_0x33558a)['map']((_0x2d1b3d,_0x51c277)=>_0x2d1b3d+_0x51c277);for(const {cell:_0x50d466}of _0x50dbe6['createTableWalker'](_0x2d917b,{'startRow':_0x33558a,'endRow':_0x33558a+_0x434dc4-0x1}))_0x1e0ca6[_0x2c0e('0x99')][_0x2c0e('0x59')](_0x19c883[_0x2c0e('0x2e')][_0x2c0e('0x8d')](_0x50d466));},{'priority':_0x2c0e('0x71')}),_0x46a9bf[_0x2c0e('0x4d')][_0x2c0e('0x4')](_0x5239b9=>{if(_0x5239b9['subType']&&_0x5239b9[_0x2c0e('0x69')]['startsWith'](_0x2c0e('0x1e')))return _0x5239b9[_0x2c0e('0x9b')]?{}:{'type':_0x2c0e('0x65'),'content':_0x22dde3(_0x19c883['locale'],'*Replace\x20table\x20cells*')};});const _0x43f795=()=>!0x1;for(const _0x1d6ede of[_0x2c0e('0x1e'),_0x2c0e('0x9d'),_0x2c0e('0x9f'),_0x2c0e('0x7f')])_0x46a9bf['_suggestionFactory'][_0x2c0e('0x16')](_0x2c0e('0x65'),_0x1d6ede,'join',_0x43f795),_0x46a9bf[_0x2c0e('0x4f')]['registerCustomCallback'](_0x2c0e('0xa3'),_0x1d6ede,'join',_0x43f795),_0x46a9bf[_0x2c0e('0x4f')]['registerCustomCallback'](_0x2c0e('0x26'),_0x1d6ede,_0x2c0e('0x5a'),_0x43f795);_0x46a9bf[_0x2c0e('0x4f')][_0x2c0e('0x16')]('formatBlock',_0x2c0e('0x7f'),'discard',_0x43f795),_0x46a9bf['_suggestionFactory'][_0x2c0e('0x16')](_0x2c0e('0x26'),'tablePasteCell',_0x2c0e('0xf'),(_0x2bdbd5,_0x598b05,_0x3019cd)=>{const _0x468957=_0x2bdbd5[_0x2c0e('0x54')](_0x4808dc=>_0x4808dc[_0x2c0e('0x46')]())[_0x2c0e('0x5f')](_0x504071=>_0x504071),_0x2ee404=new Map(_0x468957[_0x2c0e('0x54')](_0x152f16=>[_0x152f16,null]));if(_0x1e0ca6)for(const {element:_0x3c4065,attributes:_0x4b1e43}of _0x1e0ca6['cells'])_0x4b1e43&&_0x2ee404['set'](_0x3c4065,_0x4b1e43);else{if(_0x3019cd&&_0x3019cd['markerAttributes'])for(const [_0x4ff07f,_0x3b3cab]of Object[_0x2c0e('0x7e')](_0x3019cd['markerAttributes'])){const _0x267af8=_0x19c883['model'][_0x2c0e('0x83')][_0x2c0e('0x4e')](_0x4ff07f),_0x15802b=_0x267af8?_0x267af8[_0x2c0e('0x22')]()[_0x2c0e('0x46')]():null;_0x15802b&&_0x2ee404[_0x2c0e('0x67')](_0x15802b,_0x3b3cab);}}_0x19c883[_0x2c0e('0x2e')][_0x2c0e('0x6c')](_0x3f2192=>{for(const [_0x5e2f6d,_0x51aa76]of _0x2ee404)_0x3f2192['setAttributes']({...ae,..._0x51aa76},_0x5e2f6d);});});const _0x2a32cd=(_0x3d1ced,_0x391fd8)=>{_0x46a9bf[_0x2c0e('0x4f')][_0x2c0e('0x16')](_0x3d1ced,_0x2c0e('0x1e'),_0x391fd8,(_0x1a6488,_0x41fed1,_0x8d332b)=>{_0x19c883[_0x2c0e('0x2e')][_0x2c0e('0x6c')](_0x39fcf2=>{const _0x45d2bc=[];for(const _0x411e70 of _0x1a6488){const _0x2b1650=_0x411e70[_0x2c0e('0x92')][_0x2c0e('0xc')];_0x2b1650['is']('element',_0x2c0e('0x4a'))&&_0x45d2bc[_0x2c0e('0x59')](_0x2b1650);}_0x46a9bf[_0x2c0e('0x4f')][_0x2c0e('0x43')](_0x3d1ced,null,_0x391fd8)(_0x1a6488,_0x41fed1,_0x8d332b);for(const _0x48d94d of _0x45d2bc)'$graveyard'!=_0x48d94d[_0x2c0e('0x7a')][_0x2c0e('0x5e')]&&_0x39fcf2['unwrap'](_0x48d94d);});});};_0x2a32cd(_0x2c0e('0x65'),_0x2c0e('0xf')),_0x2a32cd(_0x2c0e('0x65'),_0x2c0e('0x1b')),_0x2a32cd('deletion',_0x2c0e('0xf')),_0x2a32cd(_0x2c0e('0xa3'),_0x2c0e('0x1b')),_0x46a9bf['_suggestionFactory'][_0x2c0e('0x16')](_0x2c0e('0x65'),'tablePasteRow',_0x2c0e('0x1b'),_0x1fbc23=>{const _0x122efe=_0x1fbc23[_0x2c0e('0x54')](_0x52ffed=>_0x52ffed[_0x2c0e('0x46')]()),_0x1be4b4=_0x122efe[0x0][_0x2c0e('0x2a')]('table'),{minRow:_0x384829,maxRow:_0x2b13d1}=_0x1a1bc4[_0x2c0e('0x81')](_0x122efe);_0x50dbe6[_0x2c0e('0x56')](_0x1be4b4,{'at':_0x384829,'rows':_0x2b13d1-_0x384829+0x1});}),_0x46a9bf['_suggestionFactory'][_0x2c0e('0x16')](_0x2c0e('0x65'),_0x2c0e('0x9d'),'discard',_0x28e8d1=>{const _0x4d5ab2=_0x28e8d1[_0x2c0e('0x54')](_0x26b4a5=>_0x26b4a5[_0x2c0e('0x46')]()),_0x250dda=_0x4d5ab2[0x0][_0x2c0e('0x2a')](_0x2c0e('0x4b')),{minColumn:_0x55c956,maxColumn:_0x59ab41}=_0x1a1bc4['_getCoordsForCells'](_0x4d5ab2);_0x50dbe6[_0x2c0e('0x57')](_0x250dda,{'at':_0x55c956,'columns':_0x59ab41-_0x55c956+0x1});});const _0x895e89=(_0x21755c,_0x292618)=>{if(!_0x292618[_0x2c0e('0x69')]||!_0x292618['subType'][_0x2c0e('0x49')]('tablePaste'))return;const _0x224c27=_0x292618[_0x2c0e('0x5b')][_0x2c0e('0x85')],_0xce43ec=_0x46a9bf[_0x2c0e('0x66')]()[_0x2c0e('0x5f')](_0x74966b=>_0x74966b[_0x2c0e('0x44')]&&_0x74966b[_0x2c0e('0x5b')]&&_0x74966b[_0x2c0e('0x5b')]['tablePasteChainId']==_0x224c27);_0xce43ec[_0x2c0e('0x2d')]&&_0x292618['getAllAdjacentSuggestions']()[_0x2c0e('0x2d')]!=_0xce43ec[_0x2c0e('0x2d')]&&_0xce43ec[_0x2c0e('0x58')]((_0x5a15ef,_0x1ef42a)=>(_0x5a15ef['next']=_0x1ef42a,_0x1ef42a[_0x2c0e('0x9b')]=_0x5a15ef,_0x1ef42a));};function _0x7d9018(_0x166501,_0x4f4b03=!0x0){const {id:_0x46dee1}=_0x46a9bf[_0x2c0e('0x78')](_0x166501[_0x2c0e('0x3a')]),_0xf218bb=[_0x2c0e('0xa4'),_0x2c0e('0x97')],_0x4168a1=_0x46a9bf['activeMarkers'][_0x2c0e('0xa5')](_0x166501[_0x2c0e('0x3a')]);return _0x4168a1&&_0xf218bb['push'](_0x2c0e('0x90')),{'classes':_0xf218bb,'attributes':{'data-suggestion':_0x46dee1},'priority':_0x4168a1&&_0x4f4b03?0xbc2:0xbb8};}_0x46a9bf['on'](_0x2c0e('0x77'),_0x895e89,{'priority':_0x2c0e('0x53')}),_0x46a9bf['on'](_0x2c0e('0x19'),_0x895e89,{'priority':_0x2c0e('0x53')}),_0x19c883[_0x2c0e('0x2e')][_0x2c0e('0x8c')][_0x2c0e('0x63')](()=>{let _0x30d1f=!0x1;const _0x4c92de=Array['from'](_0x19c883['model'][_0x2c0e('0x8c')][_0x2c0e('0x38')]['getChangedMarkers']());for(const {name:_0x271640,data:_0x340a78}of _0x4c92de){const {group:_0x1a3df1,type:_0x202c60,id:_0x2d042d}=_0x46a9bf[_0x2c0e('0x78')](_0x271640);if(_0x2c0e('0x2f')!=_0x1a3df1||_0x2c0e('0xa3')!=_0x202c60||_0x340a78[_0x2c0e('0x61')])continue;if(!_0x46a9bf[_0x2c0e('0x34')](_0x2d042d))continue;const _0x27aa07=_0x46a9bf[_0x2c0e('0x7b')](_0x2d042d)['getRanges'](),_0x46a9d9=_0x19c883['plugins'][_0x2c0e('0x4e')](_0x2c0e('0x82'))['me'];for(const _0x555584 of _0x46a9bf[_0x2c0e('0x66')]()){if(!_0x555584[_0x2c0e('0x44')]||_0x555584[_0x2c0e('0x47')]!=_0x46a9d9)continue;if('formatBlock'!=_0x555584[_0x2c0e('0x3d')]||_0x2c0e('0x7f')!=_0x555584[_0x2c0e('0x69')])continue;if(_0x555584['getRanges']()[_0x2c0e('0x95')](_0x33a01c=>_0x27aa07[_0x2c0e('0x20')](_0x539386=>_0x539386[_0x2c0e('0x13')](_0x33a01c,!0x0))))for(const _0x3bb857 of _0x555584[_0x2c0e('0x3f')]())_0x3bb857[_0x2c0e('0x44')]&&(_0x3bb857[_0x2c0e('0x1b')](),_0x30d1f=!0x0);}}return _0x30d1f;}),_0x19c883[_0x2c0e('0x2e')][_0x2c0e('0x8c')]['registerPostFixer'](_0x2efb93=>{const _0x5b3776=_0x19c883[_0x2c0e('0x91')][_0x2c0e('0x4e')](_0x2c0e('0x51'));if(!_0x5b3776||!_0x5b3776[_0x2c0e('0x96')][_0x2c0e('0x25')](_0x2efb93['batch']))return!0x1;let _0x18923e=!0x1;const _0x289d4e=_0x19c883['plugins'][_0x2c0e('0x4e')](_0x2c0e('0x82'))['me'],_0x2d4570=_0x19c883['model'][_0x2c0e('0x8c')][_0x2c0e('0x38')][_0x2c0e('0x1c')](),_0x506f6d=Array[_0x2c0e('0x64')](_0x19c883[_0x2c0e('0x2e')][_0x2c0e('0x8c')][_0x2c0e('0x38')][_0x2c0e('0x3b')]())[_0x2c0e('0x5f')](({name:_0x26bd7b,data:_0x186bdc})=>{const {group:_0x5654aa,subType:_0x51108e,authorId:_0x57f58f}=_0x46a9bf[_0x2c0e('0x78')](_0x26bd7b);return _0x2c0e('0x2f')==_0x5654aa&&_0x2c0e('0x1e')==_0x51108e&&_0x57f58f==_0x289d4e['id']&&!_0x186bdc[_0x2c0e('0x61')];});for(const _0x4c89ce of _0x2d4570){if(_0x2c0e('0x10')!=_0x4c89ce[_0x2c0e('0x3d')]||'tableCellSuggestion'!=_0x4c89ce[_0x2c0e('0x9e')]||0x1!=_0x4c89ce[_0x2c0e('0x2d')])continue;const _0x2c039d=_0x2efb93['createRange'](_0x4c89ce['position'],_0x4c89ce[_0x2c0e('0x21')][_0x2c0e('0xb')](0x1));if(!_0x506f6d[_0x2c0e('0xe')](({data:_0x4be972})=>_0x4be972[_0x2c0e('0x93')]['isEqual'](_0x2c039d)))for(const {name:_0x514dde,data:_0x37f7e9}of _0x506f6d)if(_0x2c039d[_0x2c0e('0x13')](_0x37f7e9[_0x2c0e('0x93')])){_0x2efb93[_0x2c0e('0x9c')](_0x514dde,{'range':_0x2c039d}),_0x18923e=!0x0;break;}}return _0x18923e;}),_0x19c883['model'][_0x2c0e('0x8c')][_0x2c0e('0x63')](_0x52d21d=>{let _0x3193ee=!0x1;const _0xa26f19=_0x19c883[_0x2c0e('0x7')][_0x2c0e('0x4e')](_0x2c0e('0x82'))['me'],_0x428459=_0x46a9bf[_0x2c0e('0x66')]()[_0x2c0e('0x5f')](_0x18ea6f=>_0x18ea6f['isInContent']&&_0x18ea6f[_0x2c0e('0x47')]==_0xa26f19),_0x5cfaba=new Set(),_0x4ea807=new Set();for(const _0x340a4c of _0x428459)if(_0x2c0e('0x1e')==_0x340a4c['subType'])for(const _0x570b0f of _0x340a4c['getMarkers']()){const _0x1fffb6=_0x570b0f[_0x2c0e('0x22')]()[_0x2c0e('0x46')]();if(_0x1fffb6){if(_0x1fffb6['is']('element',_0x2c0e('0x4a'))&&ce(_0x1fffb6)){_0x340a4c[_0x2c0e('0x41')](_0x570b0f[_0x2c0e('0x9e')]),_0x5cfaba[_0x2c0e('0x94')](_0x1fffb6),_0x3193ee=!0x0;const _0x2d688c=_0x1fffb6[_0x2c0e('0x8a')],_0x28a0af=_0x1fffb6[_0x2c0e('0x88')],_0x62e9f3=_0x2d688c&&_0x2d688c['is'](_0x2c0e('0x39'),'tableCellSuggestion'),_0x60fd=_0x28a0af&&_0x28a0af['is'](_0x2c0e('0x39'),'tableCellSuggestion');_0x62e9f3&&!_0x5cfaba[_0x2c0e('0x25')](_0x2d688c)&&_0x4ea807[_0x2c0e('0x94')](_0x2d688c),_0x60fd&&!_0x5cfaba[_0x2c0e('0x25')](_0x28a0af)&&_0x4ea807[_0x2c0e('0x94')](_0x28a0af);}else _0x1fffb6['is'](_0x2c0e('0x39'),_0x2c0e('0x2c'))&&_0x1fffb6[_0x2c0e('0x80')]&&(_0x340a4c[_0x2c0e('0x41')](_0x570b0f[_0x2c0e('0x9e')]),_0x3193ee=!0x0);}}else{if(_0x2c0e('0x7f')==_0x340a4c[_0x2c0e('0x69')]){if(!_0x340a4c[_0x2c0e('0x5b')]||!_0x340a4c[_0x2c0e('0x5b')][_0x2c0e('0x85')])continue;const _0x3d93b5=_0x340a4c['attributes'][_0x2c0e('0x42')];if(_0x3d93b5&&Object['keys'](_0x3d93b5)[_0x2c0e('0x2d')])continue;const _0x40ae98=_0x340a4c[_0x2c0e('0x5b')][_0x2c0e('0x85')];let _0x45d3d1=!0x0,_0x3eb0b7=!0x0;for(const _0xece1f1 of _0x428459)if(_0xece1f1[_0x2c0e('0x69')]&&_0xece1f1[_0x2c0e('0x69')][_0x2c0e('0x49')](_0x2c0e('0x1e'))){if(!_0xece1f1[_0x2c0e('0x5b')][_0x2c0e('0x85')]){_0x3eb0b7=!0x1;break;}if(_0xece1f1['id']!=_0x340a4c['id']&&_0xece1f1[_0x2c0e('0x5b')][_0x2c0e('0x85')]==_0x40ae98){_0x45d3d1=!0x1;break;}}_0x3eb0b7&&_0x45d3d1&&(_0x340a4c[_0x2c0e('0x6b')](),_0x3193ee=!0x0);}}for(const _0x4cbf78 of _0x5cfaba)_0x52d21d['remove'](_0x4cbf78);for(const _0x1b95a0 of _0x4ea807)_0x52d21d[_0x2c0e('0xd')](_0x1b95a0);return _0x3193ee;}),_0x19c883[_0x2c0e('0x98')][_0x2c0e('0x1d')]('editingDowncast')[_0x2c0e('0x79')]({'model':_0x2c0e('0x3c'),'view':(_0x744194,_0x211b73)=>_0x7d9018(_0x744194),'converterPriority':_0x2c0e('0x53')}),_0x19c883[_0x2c0e('0x98')][_0x2c0e('0x1d')](_0x2c0e('0x7d'))[_0x2c0e('0x79')]({'model':_0x2c0e('0x3c'),'view':(_0x1ea29b,_0x560281)=>_0x560281[_0x2c0e('0x40')][_0x2c0e('0x28')]?_0x7d9018(_0x1ea29b,!0x1):null,'converterPriority':_0x2c0e('0x53')});const _0x4a3179=_0x19c883[_0x2c0e('0x8e')][_0x2c0e('0x36')];this['listenTo'](_0x4a3179[_0x2c0e('0x8c')],_0x2c0e('0x7c'),(_0x16e9e3,_0x47511f)=>{const _0x21aa26=[];for(const _0x4db618 of _0x4a3179[_0x2c0e('0x5')](_0x47511f[_0x2c0e('0x48')])[_0x2c0e('0x31')]())_0x4db618['is'](_0x2c0e('0x39'),_0x2c0e('0x76'))&&_0x21aa26['push'](_0x4db618);_0x4a3179[_0x2c0e('0x6c')](_0x55acc9=>{for(const _0x5f5167 of _0x21aa26)_0x55acc9['move'](_0x55acc9[_0x2c0e('0x5')](_0x5f5167),_0x55acc9[_0x2c0e('0x2')](_0x5f5167)),_0x55acc9[_0x2c0e('0x87')](_0x5f5167);});});}}function ce(_0x1394e5){if(_0x1394e5[_0x2c0e('0x80')])return!0x0;const _0x2a8102=_0x1394e5[_0x2c0e('0x1a')](0x0);return _0x2a8102['is']('element',_0x2c0e('0x2c'))&&_0x2a8102['isEmpty'];}function fe(_0x223a73,_0x3151b8={},_0x261fba){for(const {isAnchor:_0xa153e5,cellHeight:_0x45a6ec,cellWidth:_0x2eb8ab}of _0x261fba[_0x2c0e('0x8')](_0x223a73,{'includeAllSlots':!0x0,..._0x3151b8}))if(!_0xa153e5||0x1!=_0x45a6ec||0x1!=_0x2eb8ab)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3056=['TableColumnResizeEditing','type','getContainedElement','document','change','data','markBlockFormat','handleSuggestionDescription','plugins','Users','enableCommand','getSelectedElement','subType','bind','formatBlock','columnWidths','editor','registerDescriptionCallback','TrackChangesEditing','formatGroupId','*Format:*\x20resize\x20table','model','getTableColumnsWidths','formatInline','registerCustomCallback','_suggestionFactory','get','resizeTable','accept','afterInit','discard','getSuggestionCallback','resizeTableWidth','author','format','tableWidth','handleResizeTableWidthCommand','_descriptionFactory'];(function(_0x516dae,_0x3056b4){const _0xf1c10b=function(_0xb711ac){while(--_0xb711ac){_0x516dae['push'](_0x516dae['shift']());}};_0xf1c10b(++_0x3056b4);}(_0x3056,0x1ba));const _0xf1c1=function(_0x516dae,_0x3056b4){_0x516dae=_0x516dae-0x0;let _0xf1c10b=_0x3056[_0x516dae];return _0xf1c10b;};import{Plugin as _0x2c655f}from'ckeditor5/src/core.js';import{getTranslation as _0x4bfad2}from'../utils/common-translations.js';export default class It extends _0x2c655f{[_0xf1c1('0x5')](){if(!this[_0xf1c1('0x1e')][_0xf1c1('0x16')]['has'](_0xf1c1('0xe')))return;const _0x3cd2f4=this[_0xf1c1('0x1e')][_0xf1c1('0x16')][_0xf1c1('0x2')]('TrackChangesEditing');_0x3cd2f4[_0xf1c1('0x18')](_0xf1c1('0x8'),this[_0xf1c1('0xc')]['bind'](this)),_0x3cd2f4[_0xf1c1('0x1')][_0xf1c1('0x0')](_0xf1c1('0x1c'),'resizeTable',_0xf1c1('0x4'),_0x3cd2f4[_0xf1c1('0x1')]['getSuggestionCallback'](_0xf1c1('0x1c'),null,'discard')),_0x3cd2f4[_0xf1c1('0x1')]['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3cd2f4[_0xf1c1('0x1')][_0xf1c1('0x7')](_0xf1c1('0x1c'),null,_0xf1c1('0x4'))),_0x3cd2f4[_0xf1c1('0xd')][_0xf1c1('0x1f')](this[_0xf1c1('0x15')][_0xf1c1('0x1b')](this));}[_0xf1c1('0xc')](_0xf57d84,_0x99ea66){const _0x10507b=this[_0xf1c1('0x1e')][_0xf1c1('0x16')][_0xf1c1('0x2')](_0xf1c1('0x20')),_0x2a14d3=this[_0xf1c1('0x1e')][_0xf1c1('0x16')]['get']('TableColumnResizeEditing'),_0x52ccb6=_0x99ea66['table']||this[_0xf1c1('0x1e')][_0xf1c1('0x23')][_0xf1c1('0x11')]['selection'][_0xf1c1('0x19')]();this[_0xf1c1('0x1e')][_0xf1c1('0x23')][_0xf1c1('0x12')](()=>{const _0x440690=_0x2a14d3['getColumnGroupElement'](_0x52ccb6);let _0x311c1d=_0x440690?_0x2a14d3[_0xf1c1('0x24')](_0x440690):null,_0x19241f=_0x52ccb6['getAttribute']('tableWidth')||null;const _0x43d507=_0x99ea66[_0xf1c1('0xb')]||_0x19241f,_0x1c5c69=_0x99ea66[_0xf1c1('0x1d')]||_0x311c1d,_0x240f74=this['editor']['plugins']['get'](_0xf1c1('0x17'))['me'];for(const _0x55d4d1 of _0x10507b['getSuggestions']()){const _0x5c12cd=_0x55d4d1[_0xf1c1('0x10')]();if(_0xf1c1('0x3')===_0x55d4d1[_0xf1c1('0x1a')]&&_0x5c12cd===_0x52ccb6){_0x55d4d1[_0xf1c1('0x9')]!==_0x240f74&&_0x55d4d1[_0xf1c1('0x6')]();const _0x346af5=_0x55d4d1[_0xf1c1('0x13')]['commandParams'];_0x19241f=_0x346af5[0x0][_0xf1c1('0xb')],_0x311c1d=_0x346af5[0x0][_0xf1c1('0x1d')];break;}}_0xf57d84({'table':_0x52ccb6,'tableWidth':_0x43d507,'columnWidths':_0x1c5c69}),_0x10507b[_0xf1c1('0x14')](_0x52ccb6,{'commandName':_0xf1c1('0x8'),'commandParams':[{'tableWidth':_0x19241f,'columnWidths':_0x311c1d}],'formatGroupId':'resizeTable'},[],_0xf1c1('0x3'));});}[_0xf1c1('0x15')](_0x1d76f9){if('formatBlock'!=_0x1d76f9[_0xf1c1('0xf')]&&_0xf1c1('0x25')!=_0x1d76f9['type'])return;const {data:_0x542deb}=_0x1d76f9;if(_0x542deb&&'resizeTable'===_0x542deb[_0xf1c1('0x21')]){const _0x76b72a=_0xf1c1('0x22');return{'type':_0xf1c1('0xa'),'content':_0x4bfad2(this[_0xf1c1('0x1e')]['locale'],_0x76b72a)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e0d=['TableUtils','downcastDispatcher','removeClass','afterInit','_enableDefaultAttributesIntegration','consumable','commandParams','addClass','highest','format','formatBlock','addMarker:suggestion','accept','*Format:*\x20%0','data-suggestion','get','end','TrackChangesEditing','stop','type','editor','ck-suggestion-marker--active','getCellLocation','setTableColumnHeader','_handleLegacySuggestions','editing','forceValue','registerAttributeLabel','FORMAT_HEADER_ROW','commandName','options','setAttribute','registerDescriptionCallback','markerName','removeMarker:suggestion','parent','_splitMarkerName','_registerLegacyDescription','ck-suggestion-marker-','data','setTableRowHeader','showSuggestionHighlights','createTableWalker','FORMAT_REGULAR_COLUMN','name','has','headingColumns','plugins','_suggestionFactory','FORMAT_REGULAR_ROW','locale','markerNameToElements','includes','nodeAfter','writer','_acceptFormatSuggestionCallbackFactory','_descriptionFactory','registerCustomCallback','consume','markerRange','start','TableEditing','FORMAT_HEADER_COLUMN','mapper'];(function(_0x4d6aaa,_0x4e0d0b){const _0x38b904=function(_0x19dd74){while(--_0x19dd74){_0x4d6aaa['push'](_0x4d6aaa['shift']());}};_0x38b904(++_0x4e0d0b);}(_0x4e0d,0x1a9));const _0x38b9=function(_0x4d6aaa,_0x4e0d0b){_0x4d6aaa=_0x4d6aaa-0x0;let _0x38b904=_0x4e0d[_0x4d6aaa];return _0x38b904;};import{Plugin as _0x5b87f6}from'ckeditor5/src/core.js';import _0x5b99a8 from'./table.js';import{getTranslation as _0x5a9b93}from'../utils/common-translations.js';export default class St extends _0x5b87f6{static get['requires'](){return[_0x5b99a8];}[_0x38b9('0x1a')](){const _0x363ddb=this[_0x38b9('0x2b')];if(!_0x363ddb[_0x38b9('0x6')][_0x38b9('0x4')](_0x38b9('0x14')))return;const _0x55de62=_0x363ddb[_0x38b9('0x9')],_0x2188ad=_0x363ddb['plugins'][_0x38b9('0x26')]('TrackChangesEditing');_0x2188ad[_0x38b9('0x1b')](_0x38b9('0x3f'),[],['headingRows']),_0x2188ad[_0x38b9('0x1b')](_0x38b9('0x2e'),[],[_0x38b9('0x5')]),_0x2188ad[_0x38b9('0xf')][_0x38b9('0x32')]('headingRows',_0x5a9b93(_0x55de62,_0x38b9('0x33'))),_0x2188ad[_0x38b9('0xf')]['registerAttributeLabel']('headingColumns',_0x5a9b93(_0x55de62,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}[_0x38b9('0x2f')](){const _0x1ada5b=this[_0x38b9('0x2b')]['plugins'][_0x38b9('0x26')]('TrackChangesEditing'),_0x4f93ad=this[_0x38b9('0x2b')][_0x38b9('0x6')][_0x38b9('0x26')](_0x38b9('0x17')),_0x1a2791=this['editor'][_0x38b9('0x6')][_0x38b9('0x26')](_0x5b99a8)[_0x38b9('0xe')]();function _0x55bba6({showActiveMarker:_0x52b476=!0x0,setDataAttribute:_0x49ddd2=!0x0}={}){return(_0x2dff58,_0x36c5f3,_0x1c2673)=>{const {type:_0x7f91c3,id:_0x327d93}=_0x1ada5b[_0x38b9('0x3b')](_0x36c5f3['markerName']),_0x5d6d12=_0x1ada5b['getSuggestion'](_0x327d93),_0x54a33f=_0x5d6d12[_0x38b9('0x3e')];if(_0x38b9('0x21')!=_0x5d6d12[_0x38b9('0x2a')]||!_0x54a33f||'setTableColumnHeader'!=_0x54a33f[_0x38b9('0x34')])return;if(_0x36c5f3['item'])return void _0x2dff58[_0x38b9('0x29')]();if(!_0x1c2673[_0x38b9('0x1c')][_0x38b9('0x11')](_0x36c5f3['markerRange'],_0x2dff58[_0x38b9('0x3')]))return;const _0xb784a5=_0x36c5f3[_0x38b9('0x12')][_0x38b9('0x13')][_0x38b9('0xc')],_0x2a8e59=_0x36c5f3[_0x38b9('0x12')][_0x38b9('0x27')]['nodeBefore'],_0x291f1f=_0xb784a5[_0x38b9('0x3a')][_0x38b9('0x3a')],{column:_0x67da5f}=_0x4f93ad[_0x38b9('0x2d')](_0xb784a5),{column:_0x30c6d5}=_0x4f93ad[_0x38b9('0x2d')](_0x2a8e59);for(let _0x4390d0=_0x67da5f;_0x4390d0<=_0x30c6d5;_0x4390d0++){const _0x5d37da=_0x4f93ad[_0x38b9('0x1')](_0x291f1f,{'column':_0x4390d0,'includeAllSlots':!0x1});for(const _0x114960 of _0x5d37da){const _0x1381a1=_0x114960['cell'],_0x291620=_0x1c2673[_0x38b9('0x16')]['toViewElement'](_0x1381a1);_0x1c2673[_0x38b9('0xd')][_0x38b9('0x1e')](_0x38b9('0x3d')+_0x7f91c3,_0x291620),_0x49ddd2&&_0x1c2673[_0x38b9('0xd')][_0x38b9('0x36')](_0x38b9('0x25'),_0x327d93,_0x291620),_0x1c2673['mapper']['bindElementToMarker'](_0x291620,_0x36c5f3[_0x38b9('0x38')]),_0x52b476&&(_0x1ada5b['activeMarkers'][_0x38b9('0xb')](_0x36c5f3[_0x38b9('0x38')])?_0x1c2673[_0x38b9('0xd')][_0x38b9('0x1e')]('ck-suggestion-marker--active',_0x291620):_0x1c2673[_0x38b9('0xd')][_0x38b9('0x19')](_0x38b9('0x2c'),_0x291620));}}};}_0x1ada5b[_0x38b9('0x7')]['registerCustomCallback'](_0x38b9('0x21'),'setTableRowHeader',_0x38b9('0x23'),_0x1a2791),_0x1ada5b[_0x38b9('0x7')][_0x38b9('0x10')](_0x38b9('0x21'),_0x38b9('0x2e'),_0x38b9('0x23'),_0x1a2791),this[_0x38b9('0x2b')]['editing'][_0x38b9('0x18')]['on'](_0x38b9('0x22'),_0x55bba6(),{'priority':_0x38b9('0x1f')}),this['editor'][_0x38b9('0x3e')][_0x38b9('0x18')]['on'](_0x38b9('0x22'),(_0x5b849e,_0x21d5d1,_0x36faf7)=>{_0x36faf7[_0x38b9('0x35')][_0x38b9('0x0')]&&_0x55bba6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5b849e,_0x21d5d1,_0x36faf7);},{'priority':_0x38b9('0x1f')}),this['editor'][_0x38b9('0x30')][_0x38b9('0x18')]['on'](_0x38b9('0x39'),(_0x4f7cac,_0x3a433b,_0x2d66a9)=>{const {type:_0x20405b,id:_0x3046e5}=_0x1ada5b[_0x38b9('0x3b')](_0x3a433b[_0x38b9('0x38')]),_0x29c995=_0x1ada5b['getSuggestion'](_0x3046e5),_0x15f3a6=_0x29c995[_0x38b9('0x3e')];if(_0x38b9('0x21')!=_0x29c995[_0x38b9('0x2a')]||!_0x15f3a6||_0x38b9('0x2e')!=_0x15f3a6['commandName'])return;const _0x22a22f=_0x2d66a9['mapper'][_0x38b9('0xa')](_0x3a433b[_0x38b9('0x38')]);if(_0x22a22f)for(const _0x3112c0 of _0x22a22f)_0x2d66a9[_0x38b9('0xd')][_0x38b9('0x19')]('ck-suggestion-marker-'+_0x20405b,_0x3112c0),_0x2d66a9['writer']['removeClass'](_0x38b9('0x2c'),_0x3112c0),_0x2d66a9['writer']['removeAttribute'](_0x38b9('0x25'),_0x3112c0),_0x2d66a9[_0x38b9('0x16')]['unbindElementFromMarkerName'](_0x3112c0,_0x3a433b[_0x38b9('0x38')]);},{'priority':_0x38b9('0x1f')}),this['_registerLegacyDescription']();}[_0x38b9('0x3c')](){const _0x275316=this[_0x38b9('0x2b')],_0x5db80a=_0x275316['locale'];function _0x1966cd(_0x468a1b){return{'type':_0x38b9('0x20'),'content':_0x5a9b93(_0x5db80a,_0x38b9('0x24'),_0x468a1b)};}_0x275316[_0x38b9('0x6')][_0x38b9('0x26')](_0x38b9('0x28'))[_0x38b9('0xf')][_0x38b9('0x37')](_0x5d8b71=>{if(_0x38b9('0x21')!=_0x5d8b71['type'])return;const {data:_0x2eb524}=_0x5d8b71;if(_0x2eb524){if('setTableRowHeader'==_0x2eb524[_0x38b9('0x34')]){const _0x1a6387=_0x2eb524[_0x38b9('0x1d')][0x0][_0x38b9('0x31')];return _0x1966cd(_0x5a9b93(_0x5db80a,_0x1a6387?_0x38b9('0x33'):_0x38b9('0x8')));}if(_0x38b9('0x2e')==_0x2eb524[_0x38b9('0x34')]){const _0xabc76c=_0x2eb524[_0x38b9('0x1d')][0x0][_0x38b9('0x31')];return _0x1966cd(_0x5a9b93(_0x5db80a,_0xabc76c?_0x38b9('0x15'):_0x38b9('0x2')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31a0=['deletion','afterInit','length','filter','root','_areMergableCells','findAncestor','return','getAncestors','TableUtils','_suggestionFactory','enableCommand','markMultiRangeBlockFormat','locale','mergeTableCellRight','TableEditing','push','map','*Merge\x20cells*','markBlockFormat','formatBlock','element','has','cell','getRanges','mergeTableCellUp','containsRange','forceDefaultExecution','highest','setSelection','mergeTableCellDown','mergeTableCells','*Split\x20cell:*\x20vertically','splitTableCellHorizontally','_isForcedDefaultExecutionBlock','plugins','getCellLocation','direction','TrackChangesEditing','_areSelectedCellsMergable','isEnabled','createTableWalker','table','author','value','selection','_descriptionFactory','get','splitTableCellVertically','from','horizontally','subType','find','document','type','change','*Split\x20cell:*\x20horizontally','fromRange','$graveyard','commandName','getFirstPosition','stop','execute','createRangeOn','registerCustomCallback','editor','refresh','accept','tableCell','registerDescriptionCallback','model','mergeTableCellLeft','commands','getSelectionAffectedTableCells','format','add','_tablePostFixingSubtypes','detach','set:isEnabled','size'];(function(_0x364d82,_0x31a017){const _0x3e0b89=function(_0x1b318a){while(--_0x1b318a){_0x364d82['push'](_0x364d82['shift']());}};_0x3e0b89(++_0x31a017);}(_0x31a0,0x148));const _0x3e0b=function(_0x364d82,_0x31a017){_0x364d82=_0x364d82-0x0;let _0x3e0b89=_0x31a0[_0x364d82];return _0x3e0b89;};import{Plugin as _0xee6424}from'ckeditor5/src/core.js';import _0x50bde4 from'./table.js';import{LiveRange as _0x5c250f}from'ckeditor5/src/engine.js';import{getTranslation as _0x733dec}from'../utils/common-translations.js';export default class jt extends _0xee6424{static get['requires'](){return[_0x50bde4];}[_0x3e0b('0x49')](){const _0x316978=this[_0x3e0b('0x39')],_0x415b47=_0x316978[_0x3e0b('0x3e')][_0x3e0b('0x2d')][_0x3e0b('0x25')],_0x2b5699=_0x316978[_0x3e0b('0x5')];if(!_0x316978[_0x3e0b('0x1b')][_0x3e0b('0xe')](_0x3e0b('0x7')))return;const _0x211cfd=_0x316978[_0x3e0b('0x1b')]['get'](_0x3e0b('0x1e')),_0x294ca8=_0x316978[_0x3e0b('0x1b')][_0x3e0b('0x27')](_0x3e0b('0x1')),_0x5a61bc=_0x316978[_0x3e0b('0x1b')][_0x3e0b('0x27')](_0x50bde4);_0x5a61bc[_0x3e0b('0x44')][_0x3e0b('0x8')](_0x3e0b('0x17')),_0x211cfd[_0x3e0b('0x3')](_0x3e0b('0x17'),()=>{const _0x33027c=_0x294ca8[_0x3e0b('0x41')](_0x316978[_0x3e0b('0x3e')][_0x3e0b('0x2d')][_0x3e0b('0x25')]);_0x316978['model'][_0x3e0b('0x2f')](()=>{_0x211cfd[_0x3e0b('0x4')](_0x33027c,{'commandName':'mergeTableCells','commandParams':[]},[],_0x3e0b('0x17'));});}),_0x316978[_0x3e0b('0x40')][_0x3e0b('0x27')]('mergeTableCells')['on'](_0x3e0b('0x36'),(_0x2b623d,_0x511bf3)=>{_0x316978[_0x3e0b('0x40')][_0x3e0b('0x27')]('trackChanges')['value']&&(_0x511bf3['length']>0x0&&_0x511bf3[_0x511bf3[_0x3e0b('0x4a')]-0x1]&&_0x511bf3[_0x511bf3[_0x3e0b('0x4a')]-0x1][_0x3e0b('0x13')]||_0x211cfd[_0x3e0b('0x1a')]||this[_0x3e0b('0x1f')]()||_0x2b623d[_0x3e0b('0x35')]());},{'priority':_0x3e0b('0x14')});for(const _0xab4efa of[_0x3e0b('0x11'),'mergeTableCellRight',_0x3e0b('0x16'),'mergeTableCellLeft']){const _0x5a5ce3=_0x316978[_0x3e0b('0x40')][_0x3e0b('0x27')](_0xab4efa);_0x211cfd[_0x3e0b('0x3')](_0xab4efa,()=>{const _0x5a9b4d=_0x316978[_0x3e0b('0x3e')][_0x3e0b('0x2d')][_0x3e0b('0x25')]['getFirstPosition']()[_0x3e0b('0x0')]()[_0x3e0b('0x2c')](_0x4572e2=>_0x4572e2['is'](_0x3e0b('0xd'),_0x3e0b('0x3c'))),_0x21456c=_0x5a5ce3[_0x3e0b('0x24')];_0x316978['model'][_0x3e0b('0x2f')](()=>{_0x211cfd['markMultiRangeBlockFormat']([_0x5a9b4d,_0x21456c],{'commandName':_0x3e0b('0x17'),'commandParams':[]},[],_0x3e0b('0x17'));});});}for(const _0x4907e0 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3ad420=_0x316978[_0x3e0b('0x40')][_0x3e0b('0x27')](_0x4907e0);_0x211cfd[_0x3e0b('0x3')](_0x4907e0,()=>{const _0x13abaa=_0x294ca8[_0x3e0b('0x41')](_0x316978[_0x3e0b('0x3e')]['document'][_0x3e0b('0x25')])[0x0],_0x51d8a8=_0x13abaa[_0x3e0b('0x4e')](_0x3e0b('0x22')),{column:_0x487b28,row:_0x5ae829}=_0x294ca8[_0x3e0b('0x1c')](_0x13abaa);let _0x33bc18=[];if(_0x3e0b('0x2a')==_0x3ad420[_0x3e0b('0x1d')]){const _0xee8492=_0x294ca8[_0x3e0b('0x21')](_0x51d8a8,{'startRow':_0x5ae829,'endRow':_0x5ae829,'includeAllSlots':!0x0});_0x33bc18=Array[_0x3e0b('0x29')](_0xee8492)[_0x3e0b('0x9')](_0x202da9=>_0x202da9[_0x3e0b('0xf')]);}else{const _0x300616=_0x294ca8[_0x3e0b('0x21')](_0x51d8a8,{'column':_0x487b28,'includeAllSlots':!0x0});_0x33bc18=Array[_0x3e0b('0x29')](_0x300616)[_0x3e0b('0x9')](_0x479cf6=>_0x479cf6['cell']);}_0x316978[_0x3e0b('0x3e')][_0x3e0b('0x2f')](_0x552b16=>{_0x211cfd[_0x3e0b('0xb')](_0x552b16[_0x3e0b('0x37')](_0x13abaa),{'commandName':_0x4907e0,'commandParams':[]},_0x33bc18,_0x4907e0);});});}_0x211cfd[_0x3e0b('0x26')][_0x3e0b('0x3d')](_0x3104ec=>{if(_0x3e0b('0xc')!=_0x3104ec[_0x3e0b('0x2e')]&&'formatInline'!=_0x3104ec[_0x3e0b('0x2e')])return;const {data:_0x2510cb}=_0x3104ec;return _0x2510cb&&_0x3e0b('0x17')==_0x2510cb['commandName']?{'type':_0x3e0b('0x42'),'content':_0x733dec(_0x2b5699,_0x3e0b('0xa'))}:void 0x0;}),_0x211cfd[_0x3e0b('0x26')][_0x3e0b('0x3d')](_0x75c823=>{if(_0x3e0b('0xc')!=_0x75c823['type']&&'formatInline'!=_0x75c823['type'])return;const {data:_0x432da1}=_0x75c823;return _0x432da1?_0x3e0b('0x28')==_0x432da1['commandName']?{'type':_0x3e0b('0x42'),'content':_0x733dec(_0x2b5699,_0x3e0b('0x18'))}:'splitTableCellHorizontally'==_0x432da1[_0x3e0b('0x33')]?{'type':_0x3e0b('0x42'),'content':_0x733dec(_0x2b5699,_0x3e0b('0x30'))}:void 0x0:void 0x0;});const _0x58ad80=_0x5a61bc['_acceptFormatSuggestionCallbackFactory']();for(const _0x141b44 of['mergeTableCellUp',_0x3e0b('0x6'),'mergeTableCellDown',_0x3e0b('0x3f')])_0x211cfd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x141b44,_0x3e0b('0x3b'),_0x58ad80);for(const _0x7b25c8 of['splitTableCellVertically',_0x3e0b('0x19')])_0x211cfd[_0x3e0b('0x2')][_0x3e0b('0x38')]('formatBlock',_0x7b25c8,_0x3e0b('0x3b'),_0x58ad80);_0x211cfd[_0x3e0b('0x2')][_0x3e0b('0x38')]('formatBlock',_0x3e0b('0x17'),_0x3e0b('0x3b'),_0x5e29bd=>{_0x316978[_0x3e0b('0x3e')][_0x3e0b('0x2f')](_0x434702=>{const _0x5ba15=Array['from'](_0x415b47['getRanges']())['map'](_0x2b11d4=>_0x5c250f[_0x3e0b('0x31')](_0x2b11d4));_0x434702[_0x3e0b('0x15')](_0x5e29bd),_0x316978[_0x3e0b('0x40')][_0x3e0b('0x27')]('mergeTableCells')[_0x3e0b('0x3a')](),_0x316978[_0x3e0b('0x36')](_0x3e0b('0x17'),{'forceDefaultExecution':!0x0});const _0x1f9a33=_0x5ba15[_0x3e0b('0x4b')](_0x4930eb=>_0x3e0b('0x32')!=_0x4930eb[_0x3e0b('0x4c')]['rootName']);_0x1f9a33[_0x3e0b('0x4a')]>0x0&&_0x434702[_0x3e0b('0x15')](_0x1f9a33);for(const _0x482027 of _0x5ba15)_0x482027[_0x3e0b('0x45')]();});});for(const _0x43933d of['mergeTableCellUp',_0x3e0b('0x16'),_0x3e0b('0x3f'),_0x3e0b('0x6')]){const _0x5a2ebb=_0x316978['commands'][_0x3e0b('0x27')](_0x43933d);_0x5a2ebb['on'](_0x3e0b('0x46'),(_0x39fa85,_0x334707,_0x2abba0)=>{if(_0x2abba0){const _0x177c64=_0x316978['model'][_0x3e0b('0x2d')][_0x3e0b('0x25')][_0x3e0b('0x34')]()['getAncestors']()[_0x3e0b('0x2c')](_0x570570=>_0x570570['is'](_0x3e0b('0xd'),_0x3e0b('0x3c')));this[_0x3e0b('0x4d')](_0x5a2ebb[_0x3e0b('0x24')],_0x177c64)||(_0x39fa85[_0x3e0b('0x4f')]=!0x1,_0x39fa85[_0x3e0b('0x35')]());}},{'priority':'low'});}}[_0x3e0b('0x1f')](){const _0x14f3d7=this['editor']['commands'][_0x3e0b('0x27')](_0x3e0b('0x17')),_0x26e0dd=this[_0x3e0b('0x39')][_0x3e0b('0x1b')][_0x3e0b('0x27')]('TableUtils');if(!_0x14f3d7[_0x3e0b('0x20')])return!0x1;const _0x155c9b=_0x26e0dd[_0x3e0b('0x41')](this[_0x3e0b('0x39')][_0x3e0b('0x3e')][_0x3e0b('0x2d')]['selection']);for(const _0x3d1660 of _0x155c9b)for(const _0x500107 of _0x155c9b)if(_0x3d1660!=_0x500107&&!this[_0x3e0b('0x4d')](_0x3d1660,_0x500107))return!0x1;return!0x0;}[_0x3e0b('0x4d')](_0x48f49c,_0x8843ce){const _0x33cc98=this['editor'][_0x3e0b('0x1b')]['get'](_0x3e0b('0x1e')),_0x4659be=this[_0x3e0b('0x39')][_0x3e0b('0x3e')][_0x3e0b('0x37')](_0x48f49c),_0x21d31f=this[_0x3e0b('0x39')][_0x3e0b('0x3e')][_0x3e0b('0x37')](_0x8843ce),_0x4aa30a=new Set(),_0x5e4b00=new Set();for(const _0x336311 of _0x33cc98['getSuggestions']())if(('insertion'==_0x336311[_0x3e0b('0x2e')]||_0x3e0b('0x48')==_0x336311[_0x3e0b('0x2e')]||'mergeTableCells'==_0x336311[_0x3e0b('0x2b')])&&_0x336311['isInContent'])for(const _0x4ce12f of _0x336311[_0x3e0b('0x10')]())_0x4ce12f[_0x3e0b('0x12')](_0x4659be,!0x0)&&_0x4aa30a[_0x3e0b('0x43')](_0x336311['type']+':'+_0x336311[_0x3e0b('0x23')]['id']),_0x4ce12f[_0x3e0b('0x12')](_0x21d31f,!0x0)&&_0x5e4b00['add'](_0x336311[_0x3e0b('0x2e')]+':'+_0x336311['author']['id']);if(_0x4aa30a['size']!=_0x5e4b00[_0x3e0b('0x47')])return!0x1;for(const _0x297f55 of _0x4aa30a)if(!_0x5e4b00[_0x3e0b('0xe')](_0x297f55))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a62=['locale','insertTableOfContents','registerElementLabel','enableCommand','_descriptionFactory','plugins','TrackChangesEditing','ELEMENT_TABLE_OF_CONTENTS','get','tableOfContents','commands'];(function(_0x375042,_0x2a623d){const _0x548c8d=function(_0x3e5d91){while(--_0x3e5d91){_0x375042['push'](_0x375042['shift']());}};_0x548c8d(++_0x2a623d);}(_0x2a62,0x14c));const _0x548c=function(_0x375042,_0x2a623d){_0x375042=_0x375042-0x0;let _0x548c8d=_0x2a62[_0x375042];return _0x548c8d;};import{Plugin as _0x3278d5}from'ckeditor5/src/core.js';import{getTranslation as _0x4acd8c}from'../utils/common-translations.js';export default class Ct extends _0x3278d5{['afterInit'](){const _0x5c7cb0=this['editor'];if(!_0x5c7cb0[_0x548c('0x8')][_0x548c('0x6')](_0x548c('0xa')))return;_0x5c7cb0['plugins']['get'](_0x548c('0x4'))[_0x548c('0x1')](_0x548c('0xa'));const _0x127fe3=_0x5c7cb0[_0x548c('0x3')]['get'](_0x548c('0x4')),_0x40ddf9=_0x5c7cb0[_0x548c('0x9')];_0x127fe3[_0x548c('0x2')][_0x548c('0x0')](_0x548c('0x7'),_0x21ed56=>_0x4acd8c(_0x40ddf9,_0x548c('0x5'),_0x21ed56));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b6c=['get','accept','discard','nodeAfter','start','TablePropertiesEditing','tableHeight','setAttribute','_suggestionFactory','handleDiscardAction','handleSuggestionDescription','enableCommand','getSelectionAffectedTableCells','getFirstPosition','_descriptionFactory','format','tableBorderStyle','data','tableBorderWidth','selection','_getSuggestion','document','batch','tableCellBorderStyle','tableAlignment','commandParams','tableCellHeight','findAncestor','table','getSuggestions','model','has','registerCustomCallback','*Format:*\x20change\x20table\x20cell\x20properties','TrackChangesEditing','tableCellProperties','getSuggestionCallback','subType','_handlePropertyChange','getAttribute','plugins','tableCellWidth','getContainedElement','TrackChangesTableProperties','tableCellVerticalAlignment','locale','formatBlock','registerDescriptionCallback','tableCellHorizontalAlignment','enqueueChange','removeAttribute','editor','tableProperties','tableWidth','join','TableCellPropertiesEditing','tableCellBackgroundColor','afterInit','markBlockFormat'];(function(_0x23d334,_0x4b6c49){const _0x198d5b=function(_0x418537){while(--_0x418537){_0x23d334['push'](_0x23d334['shift']());}};_0x198d5b(++_0x4b6c49);}(_0x4b6c,0xfa));const _0x198d=function(_0x23d334,_0x4b6c49){_0x23d334=_0x23d334-0x0;let _0x198d5b=_0x4b6c[_0x23d334];return _0x198d5b;};import{Plugin as _0x411e8b}from'ckeditor5/src/core.js';import{getTranslation as _0x4838a3}from'../utils/common-translations.js';export default class Mt extends _0x411e8b{constructor(_0x1938c9){super(_0x1938c9),this['tableProperties']=['tableBorderColor',_0x198d('0x2'),_0x198d('0x4'),_0x198d('0xa'),_0x198d('0x27'),_0x198d('0x33'),'tableBackgroundColor'],this[_0x198d('0x15')]=['tableCellBorderColor',_0x198d('0x9'),'tableCellBorderWidth','tableCellPadding',_0x198d('0x1b'),_0x198d('0xc'),_0x198d('0x2a'),_0x198d('0x22'),_0x198d('0x1e')];}static get['pluginName'](){return _0x198d('0x1d');}[_0x198d('0x2b')](){const _0x176f0a=this[_0x198d('0x25')][_0x198d('0x1a')]['get'](_0x198d('0x14'));if(this[_0x198d('0x25')][_0x198d('0x1a')]['has'](_0x198d('0x32'))){for(const _0x37090e of this[_0x198d('0x26')])_0x176f0a['enableCommand'](_0x37090e,(_0x31efdd,_0x276fe6)=>{const _0x5ad2c3=this[_0x198d('0x25')][_0x198d('0x10')][_0x198d('0x7')][_0x198d('0x5')][_0x198d('0x3a')]()[_0x198d('0xd')](_0x198d('0xe'));this[_0x198d('0x18')](_0x37090e,[_0x5ad2c3],this[_0x198d('0x26')],'tableProperties',_0x31efdd,_0x276fe6);});_0x176f0a[_0x198d('0x35')]['registerCustomCallback'](_0x198d('0x20'),_0x198d('0x26'),'accept',_0x176f0a[_0x198d('0x35')][_0x198d('0x16')](_0x198d('0x20'),null,_0x198d('0x2f'))),_0x176f0a[_0x198d('0x35')][_0x198d('0x12')](_0x198d('0x20'),_0x198d('0x26'),'discard',(_0x2ffd1d,_0x5a1038)=>this['handleDiscardAction'](this[_0x198d('0x26')],_0x2ffd1d,_0x5a1038)),_0x176f0a[_0x198d('0x35')]['registerCustomCallback'](_0x198d('0x20'),_0x198d('0x26'),_0x198d('0x28'),()=>!0x1);}if(this[_0x198d('0x25')][_0x198d('0x1a')][_0x198d('0x11')](_0x198d('0x29'))){for(const _0x5f542f of this[_0x198d('0x15')])_0x176f0a[_0x198d('0x38')](_0x5f542f,(_0x272d7c,_0x577a63)=>{const _0x27ca70=this['editor']['plugins'][_0x198d('0x2d')]('TableUtils')[_0x198d('0x39')](this['editor'][_0x198d('0x10')][_0x198d('0x7')][_0x198d('0x5')]);this[_0x198d('0x18')](_0x5f542f,_0x27ca70,this[_0x198d('0x15')],_0x198d('0x15'),_0x272d7c,_0x577a63);});_0x176f0a[_0x198d('0x35')][_0x198d('0x12')](_0x198d('0x20'),_0x198d('0x15'),_0x198d('0x2e'),_0x176f0a[_0x198d('0x35')][_0x198d('0x16')](_0x198d('0x20'),null,_0x198d('0x2f'))),_0x176f0a[_0x198d('0x35')][_0x198d('0x12')](_0x198d('0x20'),_0x198d('0x15'),_0x198d('0x2f'),(_0x16ec07,_0x33e547)=>this[_0x198d('0x36')](this[_0x198d('0x15')],_0x16ec07,_0x33e547)),_0x176f0a[_0x198d('0x35')][_0x198d('0x12')]('formatBlock','tableCellProperties',_0x198d('0x28'),()=>!0x1);}_0x176f0a[_0x198d('0x0')][_0x198d('0x21')](_0x3dff82=>this[_0x198d('0x37')](_0x3dff82));}[_0x198d('0x18')](_0x4c6b07,_0x482abe,_0xf1d1cc,_0x1e6cdf,_0x5841d4,_0x386b14){const _0x599954=this[_0x198d('0x25')]['plugins'][_0x198d('0x2d')](_0x198d('0x14'));this['editor']['model'][_0x198d('0x23')](_0x386b14[_0x198d('0x8')],()=>{for(const _0x2913c8 of _0x482abe){if(this[_0x198d('0x6')](_0x2913c8,_0x1e6cdf))_0x5841d4(_0x386b14);else{const _0x43a83f={};for(const _0x32ea68 of _0xf1d1cc){const _0x54f269=_0x2913c8[_0x198d('0x19')](_0x32ea68);void 0x0!==_0x54f269&&(_0x43a83f[_0x32ea68]=_0x54f269);}_0x5841d4(_0x386b14),_0x599954[_0x198d('0x2c')](_0x2913c8,{'commandParams':[_0x43a83f]},[],_0x1e6cdf);}}});}[_0x198d('0x36')](_0x112bba,_0x399585,_0x4c321f){const _0x2a462f=_0x399585[0x0][_0x198d('0x31')][_0x198d('0x30')],_0x3293c7=_0x4c321f[_0x198d('0xb')][0x0];this['editor'][_0x198d('0x10')]['change'](_0x44c02d=>{for(const _0x457f7c of _0x112bba)void 0x0!==_0x3293c7[_0x457f7c]?_0x44c02d[_0x198d('0x34')](_0x457f7c,_0x3293c7[_0x457f7c],_0x2a462f):_0x44c02d[_0x198d('0x24')](_0x457f7c,_0x2a462f);});}[_0x198d('0x37')](_0x1e99ae){if(_0x1e99ae[_0x198d('0x3')])switch(_0x1e99ae[_0x198d('0x17')]){case _0x198d('0x26'):return{'type':_0x198d('0x1'),'content':_0x4838a3(this['editor'][_0x198d('0x1f')],'*Format:*\x20change\x20table\x20properties')};case _0x198d('0x15'):return{'type':'format','content':_0x4838a3(this[_0x198d('0x25')]['locale'],_0x198d('0x13'))};}}['_getSuggestion'](_0xb87006,_0x372be9){const _0x278cc0=this[_0x198d('0x25')][_0x198d('0x1a')][_0x198d('0x2d')]('TrackChangesEditing');for(const _0x47c925 of _0x278cc0[_0x198d('0xf')]({'skipNotAttached':!0x0})){const _0x4a2237=_0x47c925[_0x198d('0x1c')]();if(_0x47c925[_0x198d('0x17')]===_0x372be9&&_0x4a2237===_0xb87006)return _0x47c925;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dfc=['TrackChangesEditing','afterInit','has','editor','insertTemplate','enableCommand','get','plugins','Template'];(function(_0x5e2d2d,_0x5dfcbd){const _0x163935=function(_0x27b2d4){while(--_0x27b2d4){_0x5e2d2d['push'](_0x5e2d2d['shift']());}};_0x163935(++_0x5dfcbd);}(_0x5dfc,0x1ef));const _0x1639=function(_0x5e2d2d,_0x5dfcbd){_0x5e2d2d=_0x5e2d2d-0x0;let _0x163935=_0x5dfc[_0x5e2d2d];return _0x163935;};import{Plugin as _0x106105}from'ckeditor5/src/core.js';export default class vt extends _0x106105{[_0x1639('0x1')](){const _0x1a57c1=this[_0x1639('0x3')];_0x1a57c1[_0x1639('0x7')][_0x1639('0x2')](_0x1639('0x8'))&&_0x1a57c1[_0x1639('0x7')][_0x1639('0x6')](_0x1639('0x0'))[_0x1639('0x5')](_0x1639('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x456f=['element','ELEMENT_TITLE','model','removeMarker','_descriptionFactory','locale','TrackChangesEditing','newRange','isTouching','_splitMarkerName','from','isEqual','getChangedMarkers','afterInit','suggestion','isCollapsed','get','has','end','plugins','getNearestSelectionRange','differ','createRange','document','registerElementLabel','start','schema','forward'];(function(_0x59b5e3,_0x456fbd){const _0x2b4604=function(_0x23b2aa){while(--_0x23b2aa){_0x59b5e3['push'](_0x59b5e3['shift']());}};_0x2b4604(++_0x456fbd);}(_0x456f,0x1dd));const _0x2b46=function(_0x59b5e3,_0x456fbd){_0x59b5e3=_0x59b5e3-0x0;let _0x2b4604=_0x456f[_0x59b5e3];return _0x2b4604;};import{Plugin as _0xb13fb8}from'ckeditor5/src/core.js';import{getTranslation as _0x2c7df6}from'../utils/common-translations.js';export default class _t extends _0xb13fb8{[_0x2b46('0xc')](){const _0x57a48d=this['editor'];if(!_0x57a48d[_0x2b46('0x12')][_0x2b46('0x10')]('Title'))return;const _0x56a3cf=_0x57a48d[_0x2b46('0x12')][_0x2b46('0xf')](_0x2b46('0x5'));_0x56a3cf[_0x2b46('0x3')][_0x2b46('0x17')]('title-content',()=>_0x2c7df6(_0x57a48d[_0x2b46('0x4')],_0x2b46('0x0'))),_0x57a48d[_0x2b46('0x1')][_0x2b46('0x16')]['registerPostFixer'](_0x3d9f02=>{let _0x4197a6=!0x1;const _0x407e0b=Array[_0x2b46('0x9')](_0x57a48d[_0x2b46('0x1')][_0x2b46('0x16')][_0x2b46('0x14')][_0x2b46('0xb')]());for(const {name:_0x586052,data:_0x3f9ed2}of _0x407e0b){const {group:_0x12c57e}=_0x56a3cf[_0x2b46('0x8')](_0x586052);if(_0x2b46('0xd')!==_0x12c57e||!_0x3f9ed2[_0x2b46('0x6')])continue;const _0x65d33f=_0x3f9ed2[_0x2b46('0x6')],_0x27f987=_0x65d33f['end']['nodeBefore'];if(!_0x27f987||!_0x27f987['is'](_0x2b46('0x1b'),'title-content'))continue;if(!_0x65d33f[_0x2b46('0x18')][_0x2b46('0x7')](_0x65d33f[_0x2b46('0x11')]))continue;const _0xf32a80=_0x57a48d[_0x2b46('0x1')][_0x2b46('0x19')][_0x2b46('0x13')](_0x65d33f[_0x2b46('0x11')],_0x2b46('0x1a'));if(_0xf32a80&&_0xf32a80[_0x2b46('0xe')]){const _0x314923=_0x3d9f02[_0x2b46('0x15')](_0x65d33f[_0x2b46('0x18')],_0xf32a80[_0x2b46('0x18')]);_0x314923[_0x2b46('0xa')](_0x65d33f)||(_0x3d9f02['updateMarker'](_0x586052,{'range':_0x314923}),_0x4197a6=!0x0);}_0x4197a6||(_0x3d9f02[_0x2b46('0x2')](_0x586052),_0x4197a6=!0x0);}return _0x4197a6;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ddd=['plugins','enableCommand','afterInit','undo','editor','has','redo','get','TrackChangesEditing'];(function(_0x1da636,_0x2ddd9d){const _0x2381d7=function(_0x573d01){while(--_0x573d01){_0x1da636['push'](_0x1da636['shift']());}};_0x2381d7(++_0x2ddd9d);}(_0x2ddd,0xe0));const _0x2381=function(_0x1da636,_0x2ddd9d){_0x1da636=_0x1da636-0x0;let _0x2381d7=_0x2ddd[_0x1da636];return _0x2381d7;};import{Plugin as _0x3aa8a8}from'ckeditor5/src/core.js';export default class Dt extends _0x3aa8a8{[_0x2381('0x3')](){const _0x47a4df=this[_0x2381('0x5')],_0x28db29=_0x47a4df[_0x2381('0x1')][_0x2381('0x8')](_0x2381('0x0'));_0x47a4df[_0x2381('0x1')][_0x2381('0x6')]('UndoEditing')&&(_0x28db29['enableCommand'](_0x2381('0x4')),_0x28db29[_0x2381('0x2')](_0x2381('0x7')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1451=['getItems','addHighlight','listItem','markerRange','elementEnd','ck-suggestion-marker-','activeMarkers','TrackChangesEditing','isContent','isBlock','type','isLimit','get','includes','previousPosition','insert','getAttribute','plugins','mapper','createUIElement','ck-suggestion-marker--active','nextSibling','push','start','element','createRangeOn','toViewElement','markerName','isAtEnd','item','span','writer','hasAttribute'];(function(_0x407e55,_0x1451e5){const _0x44db2a=function(_0x5943e9){while(--_0x5943e9){_0x407e55['push'](_0x407e55['shift']());}};_0x44db2a(++_0x1451e5);}(_0x1451,0x173));const _0x44db=function(_0x407e55,_0x1451e5){_0x407e55=_0x407e55-0x0;let _0x44db2a=_0x1451[_0x407e55];return _0x44db2a;};export function getRangesWithAttribute(_0x766aca,_0x4179a6,_0x5cea9f){const _0x3b6169=[];for(const _0x12c84a of _0x4179a6[_0x44db('0x19')]())_0x12c84a[_0x44db('0x18')](_0x766aca)&&_0x3b6169['push'](_0x5cea9f[_0x44db('0x11')](_0x12c84a));return _0x3b6169;}export function getElementsAffectedByListItemRename(_0x281f66){const _0x232680=[];if(_0x281f66['is']('element',_0x44db('0x1b'))){let _0x3de95c=_0x281f66[_0x44db('0xd')];for(;_0x3de95c&&_0x3de95c['is'](_0x44db('0x10'),_0x44db('0x1b'))&&_0x3de95c[_0x44db('0x8')]('listIndent')>0x0;)_0x232680[_0x44db('0xe')](_0x3de95c),_0x3de95c=_0x3de95c['nextSibling'];}return _0x232680;}export function downcastSplitMergeMarker(_0x317d76,_0x282fd5,{showActiveMarker:_0xf34ccc=!0x0}={}){const _0x2492d3=_0x317d76[_0x44db('0x9')][_0x44db('0x4')](_0x44db('0x20'));return(_0xc524f4,_0x293c01,_0x1e2cb8)=>{if(!_0x1e2cb8['consumable']['test'](_0x293c01[_0x44db('0x1c')],_0xc524f4['name']))return;const _0x18726a=_0x293c01[_0x44db('0x1c')]['getWalker'](),_0x5328c0=_0x293c01[_0x44db('0x1c')][_0x44db('0xf')],_0x52824e=_0x317d76['model']['schema'];let _0x49ce9e=null,_0x1ffb8f=null,_0x4382a3=!0x1,_0x4970a2=!0x1;for(const _0x3fadbd of _0x18726a){const _0x20273d=_0x3fadbd[_0x44db('0x15')];_0x4382a3=_0x4382a3||_0x52824e[_0x44db('0x0')](_0x20273d);const _0x259b5b=_0x1e2cb8[_0x44db('0xa')][_0x44db('0x12')](_0x20273d);if(_0x259b5b&&_0x259b5b['getCustomProperty'](_0x44db('0x1a')))return;_0x44db('0x1d')==_0x3fadbd[_0x44db('0x2')]&&(_0x52824e[_0x44db('0x1')](_0x20273d)&&!_0x52824e[_0x44db('0x3')](_0x20273d)&&(_0x20273d[_0x44db('0xd')]||_0x5328c0[_0x44db('0x14')]?_0x49ce9e&&_0x49ce9e['parent']==_0x20273d||(_0x49ce9e=_0x20273d,_0x4990da(_0x3fadbd['previousPosition']),_0x4970a2=!0x0):_0x1ffb8f=_0x1ffb8f||_0x3fadbd[_0x44db('0x6')]));}function _0x4990da(_0x3b3afc){const _0x3df196=_0x1e2cb8[_0x44db('0x17')][_0x44db('0xb')](_0x44db('0x16'),{'class':_0x44db('0x1e')+_0x282fd5}),_0x199762=_0x1e2cb8[_0x44db('0xa')]['toViewPosition'](_0x3b3afc);_0xf34ccc&&_0x2492d3[_0x44db('0x1f')][_0x44db('0x5')](_0x293c01[_0x44db('0x13')])&&_0x1e2cb8['writer']['addClass'](_0x44db('0xc'),_0x3df196),_0x1e2cb8[_0x44db('0x17')][_0x44db('0x7')](_0x199762,_0x3df196),_0x1e2cb8['mapper']['bindElementToMarker'](_0x3df196,_0x293c01[_0x44db('0x13')]);}_0x4382a3||_0x4970a2||!_0x1ffb8f||_0x4990da(_0x1ffb8f);};}
|