@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230906.0 → 0.0.0-nightly-20230908.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 _0x4a51=['start','ck-suggestion-marker','paragraph','columnInsertionRanges','join','documentSelection','first','tableCellBorderStyle','name','Users','register','_splitMarkerName','getShiftedBy','getAttributes','removeMarker','dataDowncast','element','change','registerPostFixer','tableCellVerticalAlignment','ck-suggestion-marker--active','set','getSuggestionCallback','suggestion-td','differ','getSelectionAffectedTableCells','rowInsertionIndexes','createRange','findAncestor','markMultiRangeDeletion','suggestion','endColumn','requires','getChangedMarkers','createRangeOn','accept','insertContent','move','fill','getRange','trackChanges','for','TrackChangesEditing','setAttribute','getAllAdjacentSuggestions','hasSuggestion','createTableWalker','tableCellBorderColor','getSuggestions','getContainedElement','getSuggestion','tablePasteColumn','redo','suggestion:formatBlock:tablePasteCell','view','stop','getMarkers','low','from','isEqual','createPositionBefore','createRangeIn','selection','getChanges','setAttributes','commands','TableUtils','nextSibling','table','insertionRanges','markMultiRangeInsertion','tableCellHorizontalAlignment','editing','previous','tableCellBorderWidth','conversion','add','filter','cell','tablePasteChainId','tableCell','entries','clipboardOutput','end','last','includes','editor','discard','afterInit','activeMarkers','column','oldRange','every','tablePaste','_replaceTableSlotCell','markers','_suggestionFactory','locale','insertion','getRowIndexes','previousSibling','getItems','tableCellBackgroundColor','find','markerToHighlight','tablePasteCell','push','plugins','getColumns','getRows','showSuggestionHighlights','map','_getCoordsForCells','next','model','startsWith','updateMarker','fromEntries','$graveyard','remove','endRow','getTableIfOnlyTableInContent','author','suggestionUnloaded','get','newRange','formatBlock','cells','some','type','insert','high','row','schema','deletionRanges','removeMarkers','has','attributes','elementToElement','length','TableClipboard','rowInsertionRanges','value','document','_descriptionFactory','getRanges','unwrap','batch','markerName','listenTo','root','registerCustomCallback','position','tableCellSuggestion','subType','deletion','registerDescriptionCallback','isInContent','markerAttributes','isEmpty','getChild','tablePasteRow'];(function(_0x5b6be1,_0x4a51ba){const _0x5ec3d4=function(_0x535b86){while(--_0x535b86){_0x5b6be1['push'](_0x5b6be1['shift']());}};_0x5ec3d4(++_0x4a51ba);}(_0x4a51,0x1e4));const _0x5ec3=function(_0x5b6be1,_0x4a51ba){_0x5b6be1=_0x5b6be1-0x0;let _0x5ec3d4=_0x4a51[_0x5b6be1];return _0x5ec3d4;};import{getTranslation as _0x27b50a}from'../utils/common-translations';import{Plugin as _0x289017}from'ckeditor5/src/core';import{uid as _0x5abd9a,priorities as _0x371b0d}from'ckeditor5/src/utils';import _0x370dac from'./table';const le=[_0x5ec3('0x4c'),_0x5ec3('0x31'),_0x5ec3('0x9'),_0x5ec3('0x49'),_0x5ec3('0x15'),_0x5ec3('0x68'),'tableCellPadding'],ae=Object[_0x5ec3('0x77')](le['map'](_0x1680fd=>[_0x1680fd,null]));export default class kt extends _0x289017{static get[_0x5ec3('0x22')](){return[_0x370dac];}[_0x5ec3('0x5a')](){const _0x598d5c=this[_0x5ec3('0x58')];if(!_0x598d5c['plugins'][_0x5ec3('0x8a')](_0x5ec3('0x8e')))return;const _0x276e1d=_0x598d5c[_0x5ec3('0x6d')]['get'](_0x5ec3('0x2c')),_0x534df4=_0x598d5c[_0x5ec3('0x6d')][_0x5ec3('0x7e')](_0x5ec3('0x44')),_0x43204b=_0x598d5c['plugins']['get'](_0x370dac),_0x4509e5=_0x598d5c[_0x5ec3('0x6d')]['get'](_0x5ec3('0x8e'));_0x43204b['_tablePostFixingSubtypes']['push'](_0x5ec3('0x1'),_0x5ec3('0x35')),_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x87')][_0x5ec3('0xc')](_0x5ec3('0x9b'),{'allowIn':'tableCell','allowContentOf':_0x5ec3('0x52'),'isLimit':!0x0}),_0x598d5c[_0x5ec3('0x4d')][_0x5ec3('0x8c')]({'model':_0x5ec3('0x9b'),'view':_0x5ec3('0x19')});let _0x24331c=null;_0x598d5c[_0x5ec3('0x74')]['on'](_0x5ec3('0x26'),(_0x1d3d8f,_0x515892)=>{const [_0x3e2591,_0x47663b]=_0x515892,_0x37dd09=_0x515892[_0x515892[_0x5ec3('0x8d')]-0x1];_0x37dd09&&_0x37dd09['forceDefaultExecution']||_0x276e1d['_isForcedDefaultExecutionBlock']||this['editor'][_0x5ec3('0x43')][_0x5ec3('0x7e')](_0x5ec3('0x2a'))[_0x5ec3('0x90')]&&function(_0x1bcede,_0xf98726,_0x6460fd,_0xb7b66d,_0x1027d8){if(_0xf98726&&!_0xf98726['is'](_0x5ec3('0x7')))return!0x1;const _0x2f894a=_0x1027d8[_0x5ec3('0x7b')](_0x1bcede,_0x6460fd);if(!_0x2f894a||!fe(_0x2f894a,void 0x0,_0xb7b66d))return!0x1;const _0x137ea7=_0xb7b66d[_0x5ec3('0x1b')](_0x6460fd['document'][_0x5ec3('0x40')]);if(!_0x137ea7['length'])return!0x1;const _0x2143f4=_0x137ea7[0x0]['findAncestor'](_0x5ec3('0x46')),_0x2ec750=_0xb7b66d[_0x5ec3('0x65')](_0x137ea7),_0xf72d75=_0xb7b66d['getColumnIndexes'](_0x137ea7),_0x198dc2={'startRow':_0x2ec750[_0x5ec3('0x8')],'endRow':_0x2ec750[_0x5ec3('0x56')],'startColumn':_0xf72d75[_0x5ec3('0x8')],'endColumn':_0xf72d75[_0x5ec3('0x56')]};return 0x1==_0x137ea7[_0x5ec3('0x8d')]&&(_0x198dc2[_0x5ec3('0x7a')]+=_0xb7b66d[_0x5ec3('0x6f')](_0x2f894a)-0x1,_0x198dc2[_0x5ec3('0x21')]+=_0xb7b66d[_0x5ec3('0x6e')](_0x2f894a)-0x1),fe(_0x2143f4,_0x198dc2,_0xb7b66d);}(_0x3e2591,_0x47663b,_0x598d5c[_0x5ec3('0x74')],_0x534df4,_0x4509e5)&&(_0x1d3d8f[_0x5ec3('0x39')](),_0x24331c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x13')](()=>{_0x598d5c[_0x5ec3('0x74')]['insertContent'](_0x515892[0x0],_0x515892[0x1],_0x515892[0x2],{'forceDefaultExecution':!0x0});const _0x5a0122=_0x5abd9a(),{rowInsertionRanges:_0x45cea2,columnInsertionRanges:_0x84086,insertionRanges:_0x547965,deletionRanges:_0x370761,cells:_0x5db0df}=_0x24331c;_0x45cea2[_0x5ec3('0x8d')]&&_0x276e1d[_0x5ec3('0x48')](_0x45cea2,'tablePasteRow',{'tablePasteChainId':_0x5a0122}),_0x84086[_0x5ec3('0x8d')]&&_0x276e1d[_0x5ec3('0x48')](_0x84086,'tablePasteColumn',{'tablePasteChainId':_0x5a0122}),_0x547965['length']&&_0x276e1d[_0x5ec3('0x48')](_0x547965,'tablePaste',{'tablePasteChainId':_0x5a0122,'skipNestingCheck':!0x0}),_0x370761['length']&&_0x276e1d[_0x5ec3('0x1f')](_0x370761,_0x5ec3('0x5f'),{'tablePasteChainId':_0x5a0122,'skipNestingCheck':!0x0});const _0x24b019=_0x276e1d['markMultiRangeBlockFormat'](_0x5db0df[_0x5ec3('0x71')](({element:_0xef481})=>_0xef481),{'formatGroupId':_0x5abd9a()},[],_0x5ec3('0x6b'),{'tablePasteChainId':_0x5a0122});if(_0x24b019){const _0x5e0404=_0x24b019[_0x5ec3('0x3a')](),_0x3eb0b4=[];for(const {element:_0x15be97,attributes:_0x1abfac}of _0x5db0df){if(!_0x1abfac)continue;const _0xcfc1df=_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x24')](_0x15be97),_0x3cf133=_0x5e0404[_0x5ec3('0x69')](_0x144bf6=>_0x144bf6[_0x5ec3('0x29')]()[_0x5ec3('0x3d')](_0xcfc1df));_0x3cf133&&_0x3eb0b4[_0x5ec3('0x6c')]([_0x3cf133[_0x5ec3('0xa')],_0x1abfac]);}_0x3eb0b4['length']&&_0x24b019[_0x5ec3('0x2d')](_0x5ec3('0xa0'),Object['fromEntries'](_0x3eb0b4));}_0x24331c=null;}));},{'priority':_0x371b0d[_0x5ec3('0x85')]+0xa}),_0x598d5c['plugins'][_0x5ec3('0x7e')](_0x5ec3('0x8e'))['on'](_0x5ec3('0x60'),(_0x281502,_0x3a81ce)=>{const [_0xc96f2c,_0x2121f2,,_0x17d0e0]=_0x3a81ce;if(!_0x24331c)return;_0x281502[_0x5ec3('0x39')]();const _0x57368e=_0xc96f2c[_0x5ec3('0x50')],_0x253790=_0x2121f2,_0x46e099=ce(_0x57368e),_0x18b092=ce(_0x253790);_0x281502['return']=_0x57368e;let _0x48066c=null,_0x395045=null;if(_0x18b092||_0x46e099){if(_0x46e099&&!_0x18b092){_0x17d0e0[_0x5ec3('0x79')](_0x57368e[_0x5ec3('0x0')](0x0));for(const _0x4ad435 of Array[_0x5ec3('0x3c')](_0x253790['getChildren']()))_0x17d0e0[_0x5ec3('0x84')](_0x4ad435,_0x57368e,_0x5ec3('0x55'));const _0x395f84=_0x24331c[_0x5ec3('0x1c')][_0x5ec3('0x57')](_0xc96f2c[_0x5ec3('0x86')]),_0x5b4742=_0x24331c['columnInsertionIndexes'][_0x5ec3('0x57')](_0xc96f2c[_0x5ec3('0x5c')]);_0x395f84||_0x5b4742||(_0x48066c=_0x17d0e0['createRangeIn'](_0x57368e));}else _0x18b092&&!_0x46e099&&(_0x395045=_0x17d0e0[_0x5ec3('0x3f')](_0x57368e));}else{const _0x1fc01f=_0x17d0e0['createElement'](_0x5ec3('0x9b')),_0x31f068=_0x17d0e0['createElement']('tableCellSuggestion');_0x17d0e0['wrap'](_0x17d0e0[_0x5ec3('0x3f')](_0x57368e),_0x31f068),_0x17d0e0[_0x5ec3('0x84')](_0x1fc01f,_0x57368e,0x0);for(const _0x16c850 of Array['from'](_0x253790['getChildren']()))_0x17d0e0[_0x5ec3('0x84')](_0x16c850,_0x1fc01f,'end');_0x48066c=_0x17d0e0[_0x5ec3('0x24')](_0x1fc01f),_0x395045=_0x17d0e0[_0x5ec3('0x24')](_0x31f068);}const _0x28bc2b=Array[_0x5ec3('0x3c')](_0x253790[_0x5ec3('0xf')]())[_0x5ec3('0x4f')](([_0x1ae290])=>le['includes'](_0x1ae290));_0x24331c['cells']['push']({'element':_0x57368e,'attributes':_0x28bc2b[_0x5ec3('0x8d')]?Object[_0x5ec3('0x77')](_0x28bc2b):null}),_0x48066c&&_0x24331c[_0x5ec3('0x47')][_0x5ec3('0x6c')](_0x48066c),_0x395045&&_0x24331c[_0x5ec3('0x88')][_0x5ec3('0x6c')](_0x395045);},{'priority':_0x5ec3('0x85')}),_0x534df4['on']('insertColumns',(_0x3407fa,_0x4750e4)=>{const [_0x2b4921,_0x3e6119={}]=_0x4750e4;if(!_0x24331c)return;const _0x37d37f=_0x3e6119['at']||0x0,_0x4a47ae=_0x3e6119['columns']||0x1;_0x24331c['columnInsertionIndexes']=new Array(_0x4a47ae)['fill'](_0x37d37f)['map']((_0x55b04e,_0x5e2102)=>_0x55b04e+_0x5e2102);for(const {cell:_0x5bb78d}of _0x534df4[_0x5ec3('0x30')](_0x2b4921,{'startColumn':_0x37d37f,'endColumn':_0x37d37f+_0x4a47ae-0x1}))_0x24331c[_0x5ec3('0x5')]['push'](_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x24')](_0x5bb78d));},{'priority':'low'}),_0x534df4['on']('insertRows',(_0x4273d7,_0x2d4c5e)=>{const [_0x23f3fe,_0x4d12d1={}]=_0x2d4c5e;if(!_0x24331c)return;const _0x1c0dc9=_0x4d12d1['at']||0x0,_0x58930d=_0x4d12d1['rows']||0x1;_0x24331c[_0x5ec3('0x1c')]=new Array(_0x58930d)[_0x5ec3('0x28')](_0x1c0dc9)['map']((_0x25e716,_0x3ea2ad)=>_0x25e716+_0x3ea2ad);for(const {cell:_0xbd0a5a}of _0x534df4['createTableWalker'](_0x23f3fe,{'startRow':_0x1c0dc9,'endRow':_0x1c0dc9+_0x58930d-0x1}))_0x24331c[_0x5ec3('0x8f')][_0x5ec3('0x6c')](_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x24')](_0xbd0a5a));},{'priority':_0x5ec3('0x3b')}),_0x276e1d[_0x5ec3('0x92')][_0x5ec3('0x9e')](_0x6dd82e=>{if(_0x6dd82e['subType']&&_0x6dd82e[_0x5ec3('0x9c')][_0x5ec3('0x75')](_0x5ec3('0x5f')))return _0x6dd82e[_0x5ec3('0x4b')]?{}:{'type':_0x5ec3('0x64'),'content':_0x27b50a(_0x598d5c[_0x5ec3('0x63')],'*Replace\x20table\x20cells*')};});const _0x44b330=()=>!0x1;for(const _0x47ce6e of[_0x5ec3('0x5f'),_0x5ec3('0x35'),'tablePasteRow',_0x5ec3('0x6b')])_0x276e1d[_0x5ec3('0x62')]['registerCustomCallback'](_0x5ec3('0x64'),_0x47ce6e,_0x5ec3('0x6'),_0x44b330),_0x276e1d[_0x5ec3('0x62')][_0x5ec3('0x99')](_0x5ec3('0x9d'),_0x47ce6e,'join',_0x44b330),_0x276e1d[_0x5ec3('0x62')]['registerCustomCallback'](_0x5ec3('0x80'),_0x47ce6e,'join',_0x44b330);_0x276e1d[_0x5ec3('0x62')][_0x5ec3('0x99')](_0x5ec3('0x80'),_0x5ec3('0x6b'),_0x5ec3('0x59'),_0x44b330),_0x276e1d[_0x5ec3('0x62')]['registerCustomCallback'](_0x5ec3('0x80'),'tablePasteCell','accept',(_0xc0ddb2,_0x170dbc,_0x2852cc)=>{const _0x206d1d=_0xc0ddb2['map'](_0x1e4a57=>_0x1e4a57[_0x5ec3('0x33')]())[_0x5ec3('0x4f')](_0x4d152b=>_0x4d152b),_0x3295cc=new Map(_0x206d1d[_0x5ec3('0x71')](_0x4c183a=>[_0x4c183a,null]));if(_0x24331c)for(const {element:_0x175fa7,attributes:_0x2c65af}of _0x24331c[_0x5ec3('0x81')])_0x2c65af&&_0x3295cc[_0x5ec3('0x17')](_0x175fa7,_0x2c65af);else{if(_0x2852cc&&_0x2852cc[_0x5ec3('0xa0')])for(const [_0x154202,_0x1a3dc9]of Object[_0x5ec3('0x53')](_0x2852cc[_0x5ec3('0xa0')])){const _0x815d5b=_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x61')][_0x5ec3('0x7e')](_0x154202),_0x4f8ada=_0x815d5b?_0x815d5b[_0x5ec3('0x29')]()[_0x5ec3('0x33')]():null;_0x4f8ada&&_0x3295cc[_0x5ec3('0x17')](_0x4f8ada,_0x1a3dc9);}}_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x13')](_0x180978=>{for(const [_0x513181,_0x4a113c]of _0x3295cc)_0x180978[_0x5ec3('0x42')]({...ae,..._0x4a113c},_0x513181);});});const _0x55a6a7=(_0x9b29c6,_0x418bb5)=>{_0x276e1d['_suggestionFactory']['registerCustomCallback'](_0x9b29c6,_0x5ec3('0x5f'),_0x418bb5,(_0x371036,_0x5bb435,_0x5e8e12)=>{_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x13')](_0x35a5cc=>{const _0x119e7a=[];for(const _0x490cba of _0x371036){const _0x5e0982=_0x490cba[_0x5ec3('0x2')]['nodeAfter'];_0x5e0982['is'](_0x5ec3('0x12'),'tableCellSuggestion')&&_0x119e7a[_0x5ec3('0x6c')](_0x5e0982);}_0x276e1d['_suggestionFactory'][_0x5ec3('0x18')](_0x9b29c6,null,_0x418bb5)(_0x371036,_0x5bb435,_0x5e8e12);for(const _0x152b51 of _0x119e7a)_0x5ec3('0x78')!=_0x152b51[_0x5ec3('0x98')]['rootName']&&_0x35a5cc[_0x5ec3('0x94')](_0x152b51);});});};_0x55a6a7(_0x5ec3('0x64'),_0x5ec3('0x25')),_0x55a6a7(_0x5ec3('0x64'),_0x5ec3('0x59')),_0x55a6a7(_0x5ec3('0x9d'),_0x5ec3('0x25')),_0x55a6a7(_0x5ec3('0x9d'),_0x5ec3('0x59')),_0x276e1d[_0x5ec3('0x62')][_0x5ec3('0x99')](_0x5ec3('0x64'),_0x5ec3('0x1'),_0x5ec3('0x59'),_0x370294=>{const _0x2c384d=_0x370294[_0x5ec3('0x71')](_0x39e18f=>_0x39e18f[_0x5ec3('0x33')]()),_0x2ee94a=_0x2c384d[0x0][_0x5ec3('0x1e')](_0x5ec3('0x46')),{minRow:_0x1ec2d9,maxRow:_0x482118}=_0x43204b['_getCoordsForCells'](_0x2c384d);_0x534df4['removeRows'](_0x2ee94a,{'at':_0x1ec2d9,'rows':_0x482118-_0x1ec2d9+0x1});}),_0x276e1d['_suggestionFactory']['registerCustomCallback'](_0x5ec3('0x64'),'tablePasteColumn','discard',_0x24d374=>{const _0x522313=_0x24d374[_0x5ec3('0x71')](_0x43b934=>_0x43b934['getContainedElement']()),_0x48f8cd=_0x522313[0x0][_0x5ec3('0x1e')](_0x5ec3('0x46')),{minColumn:_0x4d1d0f,maxColumn:_0x19faa3}=_0x43204b[_0x5ec3('0x72')](_0x522313);_0x534df4['removeColumns'](_0x48f8cd,{'at':_0x4d1d0f,'columns':_0x19faa3-_0x4d1d0f+0x1});});const _0x294ecd=(_0x4192bb,_0x4318f0)=>{if(!_0x4318f0[_0x5ec3('0x9c')]||!_0x4318f0['subType'][_0x5ec3('0x75')]('tablePaste'))return;const _0x2ed35=_0x4318f0[_0x5ec3('0x8b')]['tablePasteChainId'],_0x11485e=_0x276e1d[_0x5ec3('0x32')]()[_0x5ec3('0x4f')](_0x1bbc57=>_0x1bbc57['isInContent']&&_0x1bbc57[_0x5ec3('0x8b')]&&_0x1bbc57['attributes'][_0x5ec3('0x51')]==_0x2ed35);_0x11485e[_0x5ec3('0x8d')]&&_0x4318f0[_0x5ec3('0x2e')]()[_0x5ec3('0x8d')]!=_0x11485e[_0x5ec3('0x8d')]&&_0x11485e['reduce']((_0x51253b,_0x79c4a9)=>(_0x51253b[_0x5ec3('0x73')]=_0x79c4a9,_0x79c4a9['previous']=_0x51253b,_0x79c4a9));};function _0x902e43(_0x42b9e9,_0x1fb97c=!0x0){const {id:_0x26860f}=_0x276e1d[_0x5ec3('0xd')](_0x42b9e9[_0x5ec3('0x96')]),_0x139d15=[_0x5ec3('0x3'),'ck-suggestion-marker-insertion'],_0x5eda34=_0x276e1d[_0x5ec3('0x5b')][_0x5ec3('0x57')](_0x42b9e9[_0x5ec3('0x96')]);return _0x5eda34&&_0x139d15['push'](_0x5ec3('0x16')),{'classes':_0x139d15,'attributes':{'data-suggestion':_0x26860f},'priority':_0x5eda34&&_0x1fb97c?0xbc2:0xbb8};}_0x276e1d['on']('suggestionLoaded',_0x294ecd,{'priority':_0x5ec3('0x85')}),_0x276e1d['on'](_0x5ec3('0x7d'),_0x294ecd,{'priority':_0x5ec3('0x85')}),_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x91')][_0x5ec3('0x14')](()=>{let _0x537fac=!0x1;const _0xfa39=Array[_0x5ec3('0x3c')](_0x598d5c['model'][_0x5ec3('0x91')][_0x5ec3('0x1a')][_0x5ec3('0x23')]());for(const {name:_0x317a6e,data:_0x50011c}of _0xfa39){const {group:_0x8f246d,type:_0xf7060f,id:_0x5797f3}=_0x276e1d[_0x5ec3('0xd')](_0x317a6e);if(_0x5ec3('0x20')!=_0x8f246d||'deletion'!=_0xf7060f||_0x50011c['oldRange'])continue;if(!_0x276e1d[_0x5ec3('0x2f')](_0x5797f3))continue;const _0x465a21=_0x276e1d[_0x5ec3('0x34')](_0x5797f3)['getRanges'](),_0x422fd5=_0x598d5c[_0x5ec3('0x6d')][_0x5ec3('0x7e')](_0x5ec3('0xb'))['me'];for(const _0x4f1738 of _0x276e1d['getSuggestions']()){if(!_0x4f1738[_0x5ec3('0x9f')]||_0x4f1738[_0x5ec3('0x7c')]!=_0x422fd5)continue;if('formatBlock'!=_0x4f1738['type']||_0x5ec3('0x6b')!=_0x4f1738['subType'])continue;if(_0x4f1738[_0x5ec3('0x93')]()[_0x5ec3('0x5e')](_0x290321=>_0x465a21[_0x5ec3('0x82')](_0x1cddea=>_0x1cddea['containsRange'](_0x290321,!0x0))))for(const _0x4ab8d4 of _0x4f1738[_0x5ec3('0x2e')]())_0x4ab8d4[_0x5ec3('0x9f')]&&(_0x4ab8d4[_0x5ec3('0x59')](),_0x537fac=!0x0);}}return _0x537fac;}),_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x91')][_0x5ec3('0x14')](_0x3b3c58=>{const _0xc20c59=_0x598d5c[_0x5ec3('0x43')][_0x5ec3('0x7e')](_0x5ec3('0x36'));if(!_0xc20c59||!_0xc20c59['_createdBatches'][_0x5ec3('0x8a')](_0x3b3c58[_0x5ec3('0x95')]))return!0x1;let _0x516a8e=!0x1;const _0x1f1632=_0x598d5c[_0x5ec3('0x6d')][_0x5ec3('0x7e')](_0x5ec3('0xb'))['me'],_0x3e66b3=_0x598d5c[_0x5ec3('0x74')][_0x5ec3('0x91')][_0x5ec3('0x1a')][_0x5ec3('0x41')](),_0x45eff2=Array[_0x5ec3('0x3c')](_0x598d5c[_0x5ec3('0x74')]['document'][_0x5ec3('0x1a')][_0x5ec3('0x23')]())['filter'](({name:_0x616083,data:_0x295a04})=>{const {group:_0x5afc98,subType:_0x5459d0,authorId:_0x5b307f}=_0x276e1d[_0x5ec3('0xd')](_0x616083);return'suggestion'==_0x5afc98&&_0x5ec3('0x5f')==_0x5459d0&&_0x5b307f==_0x1f1632['id']&&!_0x295a04[_0x5ec3('0x5d')];});for(const _0x202a42 of _0x3e66b3){if(_0x5ec3('0x84')!=_0x202a42[_0x5ec3('0x83')]||_0x5ec3('0x9b')!=_0x202a42['name']||0x1!=_0x202a42[_0x5ec3('0x8d')])continue;const _0x2e55d0=_0x3b3c58[_0x5ec3('0x1d')](_0x202a42[_0x5ec3('0x9a')],_0x202a42['position'][_0x5ec3('0xe')](0x1));if(!_0x45eff2[_0x5ec3('0x69')](({data:_0x2d05f0})=>_0x2d05f0[_0x5ec3('0x7f')][_0x5ec3('0x3d')](_0x2e55d0)))for(const {name:_0xc3a048,data:_0x8ee886}of _0x45eff2)if(_0x2e55d0['containsRange'](_0x8ee886['newRange'])){_0x3b3c58[_0x5ec3('0x76')](_0xc3a048,{'range':_0x2e55d0}),_0x516a8e=!0x0;break;}}return _0x516a8e;}),_0x598d5c['model']['document'][_0x5ec3('0x14')](_0x464d53=>{let _0x1e8e1=!0x1;const _0x431ee8=_0x598d5c[_0x5ec3('0x6d')][_0x5ec3('0x7e')](_0x5ec3('0xb'))['me'],_0x8212a2=_0x276e1d['getSuggestions']()[_0x5ec3('0x4f')](_0x398dd4=>_0x398dd4['isInContent']&&_0x398dd4[_0x5ec3('0x7c')]==_0x431ee8),_0x53ef29=new Set(),_0x1557b0=new Set();for(const _0x5972fb of _0x8212a2)if('tablePaste'==_0x5972fb[_0x5ec3('0x9c')])for(const _0x5ef9ef of _0x5972fb[_0x5ec3('0x3a')]()){const _0x31c0f3=_0x5ef9ef[_0x5ec3('0x29')]()[_0x5ec3('0x33')]();if(_0x31c0f3){if(_0x31c0f3['is']('element','tableCellSuggestion')&&ce(_0x31c0f3)){_0x5972fb['removeMarker'](_0x5ef9ef[_0x5ec3('0xa')]),_0x53ef29[_0x5ec3('0x4e')](_0x31c0f3),_0x1e8e1=!0x0;const _0x4e4cb9=_0x31c0f3[_0x5ec3('0x45')],_0x3aeb81=_0x31c0f3[_0x5ec3('0x66')],_0x2a80da=_0x4e4cb9&&_0x4e4cb9['is'](_0x5ec3('0x12'),_0x5ec3('0x9b')),_0x1b2a76=_0x3aeb81&&_0x3aeb81['is']('element',_0x5ec3('0x9b'));_0x2a80da&&!_0x53ef29[_0x5ec3('0x8a')](_0x4e4cb9)&&_0x1557b0[_0x5ec3('0x4e')](_0x4e4cb9),_0x1b2a76&&!_0x53ef29[_0x5ec3('0x8a')](_0x3aeb81)&&_0x1557b0[_0x5ec3('0x4e')](_0x3aeb81);}else _0x31c0f3['is']('element',_0x5ec3('0x4'))&&_0x31c0f3[_0x5ec3('0xa1')]&&(_0x5972fb[_0x5ec3('0x10')](_0x5ef9ef[_0x5ec3('0xa')]),_0x1e8e1=!0x0);}}else{if(_0x5ec3('0x6b')==_0x5972fb[_0x5ec3('0x9c')]){if(!_0x5972fb[_0x5ec3('0x8b')]||!_0x5972fb[_0x5ec3('0x8b')][_0x5ec3('0x51')])continue;const _0x1cef79=_0x5972fb[_0x5ec3('0x8b')]['markerAttributes'];if(_0x1cef79&&Object['keys'](_0x1cef79)['length'])continue;const _0x262dd6=_0x5972fb[_0x5ec3('0x8b')][_0x5ec3('0x51')];let _0x49bdbc=!0x0,_0x12c865=!0x0;for(const _0x3b7b2d of _0x8212a2)if(_0x3b7b2d[_0x5ec3('0x9c')]&&_0x3b7b2d[_0x5ec3('0x9c')][_0x5ec3('0x75')](_0x5ec3('0x5f'))){if(!_0x3b7b2d[_0x5ec3('0x8b')][_0x5ec3('0x51')]){_0x12c865=!0x1;break;}if(_0x3b7b2d['id']!=_0x5972fb['id']&&_0x3b7b2d[_0x5ec3('0x8b')][_0x5ec3('0x51')]==_0x262dd6){_0x49bdbc=!0x1;break;}}_0x12c865&&_0x49bdbc&&(_0x5972fb[_0x5ec3('0x89')](),_0x1e8e1=!0x0);}}for(const _0x10e726 of _0x53ef29)_0x464d53[_0x5ec3('0x79')](_0x10e726);for(const _0x70e106 of _0x1557b0)_0x464d53[_0x5ec3('0x94')](_0x70e106);return _0x1e8e1;}),_0x598d5c[_0x5ec3('0x4d')][_0x5ec3('0x2b')]('editingDowncast')[_0x5ec3('0x6a')]({'model':_0x5ec3('0x37'),'view':(_0x97d35e,_0x2c358c)=>_0x902e43(_0x97d35e),'converterPriority':_0x5ec3('0x85')}),_0x598d5c[_0x5ec3('0x4d')][_0x5ec3('0x2b')](_0x5ec3('0x11'))['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xf095a9,_0x187dfa)=>_0x187dfa['options'][_0x5ec3('0x70')]?_0x902e43(_0xf095a9,!0x1):null,'converterPriority':_0x5ec3('0x85')});const _0x3d9cbb=_0x598d5c[_0x5ec3('0x4a')][_0x5ec3('0x38')];this[_0x5ec3('0x97')](_0x3d9cbb[_0x5ec3('0x91')],_0x5ec3('0x54'),(_0x32c06e,_0x3d81b5)=>{const _0x323532=[];for(const _0x2610b1 of _0x3d9cbb['createRangeIn'](_0x3d81b5['content'])[_0x5ec3('0x67')]())_0x2610b1['is'](_0x5ec3('0x12'),'suggestion-td')&&_0x323532[_0x5ec3('0x6c')](_0x2610b1);_0x3d9cbb[_0x5ec3('0x13')](_0xc1911a=>{for(const _0x4ec20b of _0x323532)_0xc1911a[_0x5ec3('0x27')](_0xc1911a[_0x5ec3('0x3f')](_0x4ec20b),_0xc1911a[_0x5ec3('0x3e')](_0x4ec20b)),_0xc1911a['remove'](_0x4ec20b);});});}}function ce(_0x3bfe2a){if(_0x3bfe2a[_0x5ec3('0xa1')])return!0x0;const _0x1bb44e=_0x3bfe2a[_0x5ec3('0x0')](0x0);return _0x1bb44e['is'](_0x5ec3('0x12'),_0x5ec3('0x4'))&&_0x1bb44e[_0x5ec3('0xa1')];}function fe(_0x510d5f,_0x20a658={},_0x2f9e3d){for(const {isAnchor:_0x3991c6,cellHeight:_0x10fee9,cellWidth:_0x23ff6e}of _0x2f9e3d[_0x5ec3('0x30')](_0x510d5f,{'includeAllSlots':!0x0,..._0x20a658}))if(!_0x3991c6||0x1!=_0x10fee9||0x1!=_0x23ff6e)return!0x1;return!0x0;}
|
|
23
|
+
const _0x2670=['_replaceTableSlotCell','high','has','tableCell','registerCustomCallback','column','join','suggestionUnloaded','keys','Users','root','ck-suggestion-marker--active','cells','getAllAdjacentSuggestions','commands','includes','containsRange','_getCoordsForCells','plugins','getRange','batch','suggestion-td','createTableWalker','rowInsertionIndexes','subType','oldRange','markMultiRangeInsertion','position','tableCellSuggestion','tableCellBorderColor','markerName','forceDefaultExecution','hasSuggestion','suggestionLoaded','length','clipboardOutput','suggestion:formatBlock:tablePasteCell','filter','selection','low','wrap','getSelectionAffectedTableCells','content','markerAttributes','getTableIfOnlyTableInContent','_tablePostFixingSubtypes','fill','showSuggestionHighlights','from','tablePasteChainId','tablePasteRow','add','value','document','isInContent','model','unwrap','insertion','getItems','fromEntries','rowInsertionRanges','element','deletion','deletionRanges','formatBlock','endRow','previousSibling','_createdBatches','first','tablePasteColumn','redo','activeMarkers','insertRows','setAttribute','$graveyard','tableCellBackgroundColor','ck-suggestion-marker','registerPostFixer','_suggestionFactory','tablePaste','markMultiRangeBlockFormat','get','removeMarker','ck-suggestion-marker-insertion','tablePasteCell','createPositionBefore','columnInsertionRanges','name','getMarkers','schema','getColumns','_splitMarkerName','documentSelection','startsWith','type','row','createElement','tableCellHorizontalAlignment','TrackChangesEditing','endColumn','getRanges','newRange','setAttributes','end','getSuggestions','start','attributes','locale','isEmpty','elementToElement','isEqual','findAncestor','tableCellBorderWidth','nextSibling','columnInsertionIndexes','accept','getRowIndexes','markers','rows','stop','every','trackChanges','reduce','removeColumns','differ','getChangedMarkers','tableCellVerticalAlignment','getColumnIndexes','getChanges','push','removeMarkers','registerDescriptionCallback','register','createRangeOn','editing','paragraph','change','markerToHighlight','*Replace\x20table\x20cells*','dataDowncast','TableClipboard','createRangeIn','nodeAfter','remove','_descriptionFactory','getChild','editingDowncast','set','table','map','getContainedElement','discard','rootName','suggestion','getRows','tableCellBorderStyle','options','conversion','getSuggestionCallback','getChildren','insert','find','entries','afterInit','tableCellPadding','author','_isForcedDefaultExecutionBlock','cell','next','for','getShiftedBy'];(function(_0x5e3596,_0x2670da){const _0x57bdaa=function(_0xba5dca){while(--_0xba5dca){_0x5e3596['push'](_0x5e3596['shift']());}};_0x57bdaa(++_0x2670da);}(_0x2670,0x1f0));const _0x57bd=function(_0x5e3596,_0x2670da){_0x5e3596=_0x5e3596-0x0;let _0x57bdaa=_0x2670[_0x5e3596];return _0x57bdaa;};import{getTranslation as _0x5bff6f}from'../utils/common-translations';import{Plugin as _0x83a10b}from'ckeditor5/src/core';import{uid as _0x198896,priorities as _0x23292c}from'ckeditor5/src/utils';import _0x1df6b9 from'./table';const le=[_0x57bd('0x81'),_0x57bd('0x2e'),_0x57bd('0x1'),_0x57bd('0x72'),_0x57bd('0x8f'),_0x57bd('0x5c'),_0x57bd('0xa')],ae=Object[_0x57bd('0x4c')](le[_0x57bd('0xa6')](_0x1dff6e=>[_0x1dff6e,null]));export default class kt extends _0x83a10b{static get['requires'](){return[_0x1df6b9];}[_0x57bd('0x9')](){const _0x56b108=this['editor'];if(!_0x56b108['plugins'][_0x57bd('0x13')](_0x57bd('0x9d')))return;const _0x5a1790=_0x56b108[_0x57bd('0x23')]['get'](_0x57bd('0x73')),_0x170fa6=_0x56b108[_0x57bd('0x23')][_0x57bd('0x62')]('TableUtils'),_0x7df81f=_0x56b108[_0x57bd('0x23')][_0x57bd('0x62')](_0x1df6b9),_0x25a187=_0x56b108[_0x57bd('0x23')]['get'](_0x57bd('0x9d'));_0x7df81f[_0x57bd('0x3e')][_0x57bd('0x92')](_0x57bd('0x43'),_0x57bd('0x56')),_0x56b108['model'][_0x57bd('0x6a')][_0x57bd('0x95')](_0x57bd('0x2d'),{'allowIn':_0x57bd('0x14'),'allowContentOf':_0x57bd('0x14'),'isLimit':!0x0}),_0x56b108[_0x57bd('0x3')][_0x57bd('0x7e')]({'model':_0x57bd('0x2d'),'view':_0x57bd('0x26')});let _0x4b47cc=null;_0x56b108[_0x57bd('0x48')]['on']('insertContent',(_0x1f2506,_0x479e18)=>{const [_0x23e24b,_0x4e8565]=_0x479e18,_0x572e60=_0x479e18[_0x479e18['length']-0x1];_0x572e60&&_0x572e60[_0x57bd('0x30')]||_0x5a1790[_0x57bd('0xc')]||this['editor'][_0x57bd('0x1f')][_0x57bd('0x62')](_0x57bd('0x8a'))[_0x57bd('0x45')]&&function(_0x588074,_0x3d239,_0x352a58,_0x39597b,_0x5ece7b){if(_0x3d239&&!_0x3d239['is'](_0x57bd('0x6d')))return!0x1;const _0x845f17=_0x5ece7b[_0x57bd('0x3d')](_0x588074,_0x352a58);if(!_0x845f17||!fe(_0x845f17,void 0x0,_0x39597b))return!0x1;const _0x4653b2=_0x39597b[_0x57bd('0x3a')](_0x352a58['document'][_0x57bd('0x37')]);if(!_0x4653b2[_0x57bd('0x33')])return!0x1;const _0x4b71fc=_0x4653b2[0x0][_0x57bd('0x80')]('table'),_0x2217bb=_0x39597b[_0x57bd('0x85')](_0x4653b2),_0x59da67=_0x39597b[_0x57bd('0x90')](_0x4653b2),_0x32bbff={'startRow':_0x2217bb[_0x57bd('0x55')],'endRow':_0x2217bb['last'],'startColumn':_0x59da67['first'],'endColumn':_0x59da67['last']};return 0x1==_0x4653b2[_0x57bd('0x33')]&&(_0x32bbff[_0x57bd('0x52')]+=_0x39597b[_0x57bd('0x0')](_0x845f17)-0x1,_0x32bbff[_0x57bd('0x74')]+=_0x39597b[_0x57bd('0x6b')](_0x845f17)-0x1),fe(_0x4b71fc,_0x32bbff,_0x39597b);}(_0x23e24b,_0x4e8565,_0x56b108[_0x57bd('0x48')],_0x170fa6,_0x25a187)&&(_0x1f2506['stop'](),_0x4b47cc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x56b108[_0x57bd('0x48')][_0x57bd('0x99')](()=>{_0x56b108[_0x57bd('0x48')]['insertContent'](_0x479e18[0x0],_0x479e18[0x1],_0x479e18[0x2],{'forceDefaultExecution':!0x0});const _0x430520=_0x198896(),{rowInsertionRanges:_0x1fe1ca,columnInsertionRanges:_0xc18953,insertionRanges:_0x249265,deletionRanges:_0x143ccb,cells:_0x1df9f8}=_0x4b47cc;_0x1fe1ca['length']&&_0x5a1790['markMultiRangeInsertion'](_0x1fe1ca,'tablePasteRow',{'tablePasteChainId':_0x430520}),_0xc18953[_0x57bd('0x33')]&&_0x5a1790[_0x57bd('0x2b')](_0xc18953,'tablePasteColumn',{'tablePasteChainId':_0x430520}),_0x249265[_0x57bd('0x33')]&&_0x5a1790[_0x57bd('0x2b')](_0x249265,_0x57bd('0x60'),{'tablePasteChainId':_0x430520,'skipNestingCheck':!0x0}),_0x143ccb[_0x57bd('0x33')]&&_0x5a1790['markMultiRangeDeletion'](_0x143ccb,'tablePaste',{'tablePasteChainId':_0x430520,'skipNestingCheck':!0x0});const _0x5a82ba=_0x5a1790[_0x57bd('0x61')](_0x1df9f8[_0x57bd('0xa6')](({element:_0x56d33e})=>_0x56d33e),{'formatGroupId':_0x198896()},[],'tablePasteCell',{'tablePasteChainId':_0x430520});if(_0x5a82ba){const _0x125159=_0x5a82ba[_0x57bd('0x69')](),_0x3eab13=[];for(const {element:_0x8c866e,attributes:_0x5e29ff}of _0x1df9f8){if(!_0x5e29ff)continue;const _0x42ca35=_0x56b108[_0x57bd('0x48')][_0x57bd('0x96')](_0x8c866e),_0x2feca7=_0x125159[_0x57bd('0x7')](_0x24663d=>_0x24663d[_0x57bd('0x24')]()[_0x57bd('0x7f')](_0x42ca35));_0x2feca7&&_0x3eab13[_0x57bd('0x92')]([_0x2feca7[_0x57bd('0x68')],_0x5e29ff]);}_0x3eab13['length']&&_0x5a82ba[_0x57bd('0x5a')](_0x57bd('0x3c'),Object[_0x57bd('0x4c')](_0x3eab13));}_0x4b47cc=null;}));},{'priority':_0x23292c[_0x57bd('0x12')]+0xa}),_0x56b108[_0x57bd('0x23')][_0x57bd('0x62')](_0x57bd('0x9d'))['on'](_0x57bd('0x11'),(_0x27ee74,_0x43aea3)=>{const [_0x3b9ef1,_0x42ad57,,_0xbae66c]=_0x43aea3;if(!_0x4b47cc)return;_0x27ee74[_0x57bd('0x88')]();const _0x1b9826=_0x3b9ef1[_0x57bd('0xd')],_0x5d5ff5=_0x42ad57,_0xe1d827=ce(_0x1b9826),_0x544fd7=ce(_0x5d5ff5);_0x27ee74['return']=_0x1b9826;let _0x297a83=null,_0x356ab2=null;if(_0x544fd7||_0xe1d827){if(_0xe1d827&&!_0x544fd7){_0xbae66c['remove'](_0x1b9826[_0x57bd('0xa2')](0x0));for(const _0x4b4dd9 of Array[_0x57bd('0x41')](_0x5d5ff5[_0x57bd('0x5')]()))_0xbae66c[_0x57bd('0x6')](_0x4b4dd9,_0x1b9826,_0x57bd('0x78'));const _0x49f49d=_0x4b47cc[_0x57bd('0x28')]['includes'](_0x3b9ef1[_0x57bd('0x70')]),_0x1912c1=_0x4b47cc[_0x57bd('0x83')][_0x57bd('0x20')](_0x3b9ef1[_0x57bd('0x16')]);_0x49f49d||_0x1912c1||(_0x297a83=_0xbae66c[_0x57bd('0x9e')](_0x1b9826));}else _0x544fd7&&!_0xe1d827&&(_0x356ab2=_0xbae66c['createRangeIn'](_0x1b9826));}else{const _0x5098df=_0xbae66c[_0x57bd('0x71')]('tableCellSuggestion'),_0x5b2f13=_0xbae66c[_0x57bd('0x71')](_0x57bd('0x2d'));_0xbae66c[_0x57bd('0x39')](_0xbae66c['createRangeIn'](_0x1b9826),_0x5b2f13),_0xbae66c[_0x57bd('0x6')](_0x5098df,_0x1b9826,0x0);for(const _0x26efc7 of Array[_0x57bd('0x41')](_0x5d5ff5[_0x57bd('0x5')]()))_0xbae66c[_0x57bd('0x6')](_0x26efc7,_0x5098df,'end');_0x297a83=_0xbae66c['createRangeOn'](_0x5098df),_0x356ab2=_0xbae66c[_0x57bd('0x96')](_0x5b2f13);}const _0x235531=Array[_0x57bd('0x41')](_0x5d5ff5['getAttributes']())[_0x57bd('0x36')](([_0x4c6b0e])=>le[_0x57bd('0x20')](_0x4c6b0e));_0x4b47cc[_0x57bd('0x1d')]['push']({'element':_0x1b9826,'attributes':_0x235531[_0x57bd('0x33')]?Object[_0x57bd('0x4c')](_0x235531):null}),_0x297a83&&_0x4b47cc['insertionRanges'][_0x57bd('0x92')](_0x297a83),_0x356ab2&&_0x4b47cc[_0x57bd('0x50')][_0x57bd('0x92')](_0x356ab2);},{'priority':_0x57bd('0x12')}),_0x170fa6['on']('insertColumns',(_0x319ca3,_0x17bae0)=>{const [_0x2d682f,_0x3b6d40={}]=_0x17bae0;if(!_0x4b47cc)return;const _0x5aa72a=_0x3b6d40['at']||0x0,_0x2f74db=_0x3b6d40['columns']||0x1;_0x4b47cc['columnInsertionIndexes']=new Array(_0x2f74db)[_0x57bd('0x3f')](_0x5aa72a)[_0x57bd('0xa6')]((_0x3e09b4,_0x3f8176)=>_0x3e09b4+_0x3f8176);for(const {cell:_0x2e065b}of _0x170fa6['createTableWalker'](_0x2d682f,{'startColumn':_0x5aa72a,'endColumn':_0x5aa72a+_0x2f74db-0x1}))_0x4b47cc[_0x57bd('0x67')][_0x57bd('0x92')](_0x56b108['model'][_0x57bd('0x96')](_0x2e065b));},{'priority':'low'}),_0x170fa6['on'](_0x57bd('0x59'),(_0x1e54fc,_0x3e2ebf)=>{const [_0x56f69e,_0x3c9fa7={}]=_0x3e2ebf;if(!_0x4b47cc)return;const _0x221d12=_0x3c9fa7['at']||0x0,_0x5533a6=_0x3c9fa7[_0x57bd('0x87')]||0x1;_0x4b47cc[_0x57bd('0x28')]=new Array(_0x5533a6)['fill'](_0x221d12)[_0x57bd('0xa6')]((_0x3a37cd,_0x2d0da5)=>_0x3a37cd+_0x2d0da5);for(const {cell:_0x10ea3d}of _0x170fa6[_0x57bd('0x27')](_0x56f69e,{'startRow':_0x221d12,'endRow':_0x221d12+_0x5533a6-0x1}))_0x4b47cc[_0x57bd('0x4d')][_0x57bd('0x92')](_0x56b108['model']['createRangeOn'](_0x10ea3d));},{'priority':_0x57bd('0x38')}),_0x5a1790[_0x57bd('0xa1')][_0x57bd('0x94')](_0x232664=>{if(_0x232664[_0x57bd('0x29')]&&_0x232664[_0x57bd('0x29')][_0x57bd('0x6e')]('tablePaste'))return _0x232664['previous']?{}:{'type':_0x57bd('0x4a'),'content':_0x5bff6f(_0x56b108[_0x57bd('0x7c')],_0x57bd('0x9b'))};});const _0x2d19dc=()=>!0x1;for(const _0x248acc of[_0x57bd('0x60'),_0x57bd('0x56'),'tablePasteRow',_0x57bd('0x65')])_0x5a1790[_0x57bd('0x5f')][_0x57bd('0x15')]('insertion',_0x248acc,_0x57bd('0x17'),_0x2d19dc),_0x5a1790[_0x57bd('0x5f')]['registerCustomCallback'](_0x57bd('0x4f'),_0x248acc,'join',_0x2d19dc),_0x5a1790[_0x57bd('0x5f')][_0x57bd('0x15')](_0x57bd('0x51'),_0x248acc,_0x57bd('0x17'),_0x2d19dc);_0x5a1790[_0x57bd('0x5f')][_0x57bd('0x15')]('formatBlock',_0x57bd('0x65'),_0x57bd('0xa8'),_0x2d19dc),_0x5a1790['_suggestionFactory'][_0x57bd('0x15')](_0x57bd('0x51'),_0x57bd('0x65'),_0x57bd('0x84'),(_0x38bfdc,_0x73ba61,_0x544afd)=>{const _0x35653c=_0x38bfdc[_0x57bd('0xa6')](_0x3b4096=>_0x3b4096[_0x57bd('0xa7')]())['filter'](_0x4debb0=>_0x4debb0),_0x3fefeb=new Map(_0x35653c[_0x57bd('0xa6')](_0xc05c7=>[_0xc05c7,null]));if(_0x4b47cc)for(const {element:_0x5cbb07,attributes:_0x5d47c3}of _0x4b47cc[_0x57bd('0x1d')])_0x5d47c3&&_0x3fefeb['set'](_0x5cbb07,_0x5d47c3);else{if(_0x544afd&&_0x544afd[_0x57bd('0x3c')])for(const [_0x355669,_0x43f191]of Object[_0x57bd('0x8')](_0x544afd[_0x57bd('0x3c')])){const _0x3cf290=_0x56b108['model'][_0x57bd('0x86')][_0x57bd('0x62')](_0x355669),_0x55749e=_0x3cf290?_0x3cf290[_0x57bd('0x24')]()['getContainedElement']():null;_0x55749e&&_0x3fefeb[_0x57bd('0xa4')](_0x55749e,_0x43f191);}}_0x56b108[_0x57bd('0x48')][_0x57bd('0x99')](_0x532bc4=>{for(const [_0x4225af,_0x44e536]of _0x3fefeb)_0x532bc4[_0x57bd('0x77')]({...ae,..._0x44e536},_0x4225af);});});const _0x5b05da=(_0x2ca065,_0xb08344)=>{_0x5a1790[_0x57bd('0x5f')][_0x57bd('0x15')](_0x2ca065,_0x57bd('0x60'),_0xb08344,(_0x61b831,_0x207f29,_0x47db73)=>{_0x56b108['model'][_0x57bd('0x99')](_0x2a7859=>{const _0x57881=[];for(const _0x58c30c of _0x61b831){const _0x3a5b0a=_0x58c30c[_0x57bd('0x7a')][_0x57bd('0x9f')];_0x3a5b0a['is'](_0x57bd('0x4e'),'tableCellSuggestion')&&_0x57881['push'](_0x3a5b0a);}_0x5a1790[_0x57bd('0x5f')][_0x57bd('0x4')](_0x2ca065,null,_0xb08344)(_0x61b831,_0x207f29,_0x47db73);for(const _0x503a62 of _0x57881)_0x57bd('0x5b')!=_0x503a62[_0x57bd('0x1b')][_0x57bd('0xa9')]&&_0x2a7859[_0x57bd('0x49')](_0x503a62);});});};_0x5b05da('insertion',_0x57bd('0x84')),_0x5b05da(_0x57bd('0x4a'),_0x57bd('0xa8')),_0x5b05da(_0x57bd('0x4f'),_0x57bd('0x84')),_0x5b05da('deletion',_0x57bd('0xa8')),_0x5a1790[_0x57bd('0x5f')][_0x57bd('0x15')]('insertion',_0x57bd('0x43'),_0x57bd('0xa8'),_0xa92056=>{const _0x9805e5=_0xa92056['map'](_0x2f99be=>_0x2f99be[_0x57bd('0xa7')]()),_0x4275bc=_0x9805e5[0x0][_0x57bd('0x80')](_0x57bd('0xa5')),{minRow:_0x4d2cad,maxRow:_0x1e2d42}=_0x7df81f[_0x57bd('0x22')](_0x9805e5);_0x170fa6['removeRows'](_0x4275bc,{'at':_0x4d2cad,'rows':_0x1e2d42-_0x4d2cad+0x1});}),_0x5a1790['_suggestionFactory'][_0x57bd('0x15')](_0x57bd('0x4a'),_0x57bd('0x56'),_0x57bd('0xa8'),_0x2fb94a=>{const _0x5a3b5f=_0x2fb94a['map'](_0x2221c4=>_0x2221c4['getContainedElement']()),_0x339cc8=_0x5a3b5f[0x0][_0x57bd('0x80')]('table'),{minColumn:_0x515f48,maxColumn:_0x2079b3}=_0x7df81f['_getCoordsForCells'](_0x5a3b5f);_0x170fa6[_0x57bd('0x8c')](_0x339cc8,{'at':_0x515f48,'columns':_0x2079b3-_0x515f48+0x1});});const _0x1b1cbf=(_0x42414d,_0x4607d5)=>{if(!_0x4607d5[_0x57bd('0x29')]||!_0x4607d5[_0x57bd('0x29')][_0x57bd('0x6e')]('tablePaste'))return;const _0x27a586=_0x4607d5['attributes'][_0x57bd('0x42')],_0x5f4559=_0x5a1790['getSuggestions']()['filter'](_0x74fd75=>_0x74fd75[_0x57bd('0x47')]&&_0x74fd75[_0x57bd('0x7b')]&&_0x74fd75[_0x57bd('0x7b')][_0x57bd('0x42')]==_0x27a586);_0x5f4559['length']&&_0x4607d5[_0x57bd('0x1e')]()[_0x57bd('0x33')]!=_0x5f4559['length']&&_0x5f4559[_0x57bd('0x8b')]((_0x585316,_0x3cad2c)=>(_0x585316[_0x57bd('0xe')]=_0x3cad2c,_0x3cad2c['previous']=_0x585316,_0x3cad2c));};function _0x545e57(_0x44c6a7,_0x3adfea=!0x0){const {id:_0x220d29}=_0x5a1790[_0x57bd('0x6c')](_0x44c6a7[_0x57bd('0x2f')]),_0x13891a=[_0x57bd('0x5d'),_0x57bd('0x64')],_0x2a9f57=_0x5a1790[_0x57bd('0x58')]['includes'](_0x44c6a7[_0x57bd('0x2f')]);return _0x2a9f57&&_0x13891a[_0x57bd('0x92')](_0x57bd('0x1c')),{'classes':_0x13891a,'attributes':{'data-suggestion':_0x220d29},'priority':_0x2a9f57&&_0x3adfea?0xbc2:0xbb8};}_0x5a1790['on'](_0x57bd('0x32'),_0x1b1cbf,{'priority':_0x57bd('0x12')}),_0x5a1790['on'](_0x57bd('0x18'),_0x1b1cbf,{'priority':_0x57bd('0x12')}),_0x56b108[_0x57bd('0x48')][_0x57bd('0x46')][_0x57bd('0x5e')](()=>{let _0x2c7fca=!0x1;const _0x24e7e7=Array[_0x57bd('0x41')](_0x56b108[_0x57bd('0x48')][_0x57bd('0x46')][_0x57bd('0x8d')][_0x57bd('0x8e')]());for(const {name:_0x1200f0,data:_0x2f0c3c}of _0x24e7e7){const {group:_0x5d5172,type:_0x2f5ce5,id:_0x529cac}=_0x5a1790['_splitMarkerName'](_0x1200f0);if(_0x57bd('0xaa')!=_0x5d5172||_0x57bd('0x4f')!=_0x2f5ce5||_0x2f0c3c[_0x57bd('0x2a')])continue;if(!_0x5a1790[_0x57bd('0x31')](_0x529cac))continue;const _0x25d6ae=_0x5a1790['getSuggestion'](_0x529cac)['getRanges'](),_0x2b56f0=_0x56b108[_0x57bd('0x23')][_0x57bd('0x62')](_0x57bd('0x1a'))['me'];for(const _0x2120ac of _0x5a1790[_0x57bd('0x79')]()){if(!_0x2120ac[_0x57bd('0x47')]||_0x2120ac[_0x57bd('0xb')]!=_0x2b56f0)continue;if(_0x57bd('0x51')!=_0x2120ac['type']||_0x57bd('0x65')!=_0x2120ac[_0x57bd('0x29')])continue;if(_0x2120ac[_0x57bd('0x75')]()[_0x57bd('0x89')](_0x379cff=>_0x25d6ae['some'](_0xbf0387=>_0xbf0387[_0x57bd('0x21')](_0x379cff,!0x0))))for(const _0x35ffa7 of _0x2120ac[_0x57bd('0x1e')]())_0x35ffa7['isInContent']&&(_0x35ffa7[_0x57bd('0xa8')](),_0x2c7fca=!0x0);}}return _0x2c7fca;}),_0x56b108['model']['document']['registerPostFixer'](_0x57a262=>{const _0x761eef=_0x56b108['commands'][_0x57bd('0x62')](_0x57bd('0x57'));if(!_0x761eef||!_0x761eef[_0x57bd('0x54')][_0x57bd('0x13')](_0x57a262[_0x57bd('0x25')]))return!0x1;let _0xd6aae=!0x1;const _0x13798f=_0x56b108[_0x57bd('0x23')][_0x57bd('0x62')]('Users')['me'],_0x2955d9=_0x56b108[_0x57bd('0x48')][_0x57bd('0x46')]['differ'][_0x57bd('0x91')](),_0xd5b0c5=Array[_0x57bd('0x41')](_0x56b108[_0x57bd('0x48')][_0x57bd('0x46')][_0x57bd('0x8d')][_0x57bd('0x8e')]())[_0x57bd('0x36')](({name:_0x16ec5f,data:_0x48cd01})=>{const {group:_0xdb4707,subType:_0x97ef22,authorId:_0x5bc97c}=_0x5a1790[_0x57bd('0x6c')](_0x16ec5f);return _0x57bd('0xaa')==_0xdb4707&&_0x57bd('0x60')==_0x97ef22&&_0x5bc97c==_0x13798f['id']&&!_0x48cd01[_0x57bd('0x2a')];});for(const _0x448876 of _0x2955d9){if(_0x57bd('0x6')!=_0x448876[_0x57bd('0x6f')]||_0x57bd('0x2d')!=_0x448876['name']||0x1!=_0x448876['length'])continue;const _0x5806e7=_0x57a262['createRange'](_0x448876[_0x57bd('0x2c')],_0x448876[_0x57bd('0x2c')][_0x57bd('0x10')](0x1));if(!_0xd5b0c5['find'](({data:_0x247093})=>_0x247093['newRange'][_0x57bd('0x7f')](_0x5806e7)))for(const {name:_0x404488,data:_0xd4943b}of _0xd5b0c5)if(_0x5806e7[_0x57bd('0x21')](_0xd4943b[_0x57bd('0x76')])){_0x57a262['updateMarker'](_0x404488,{'range':_0x5806e7}),_0xd6aae=!0x0;break;}}return _0xd6aae;}),_0x56b108[_0x57bd('0x48')][_0x57bd('0x46')][_0x57bd('0x5e')](_0x487917=>{let _0x1734c5=!0x1;const _0x5613aa=_0x56b108['plugins']['get'](_0x57bd('0x1a'))['me'],_0x1be407=_0x5a1790[_0x57bd('0x79')]()[_0x57bd('0x36')](_0x5f345a=>_0x5f345a['isInContent']&&_0x5f345a[_0x57bd('0xb')]==_0x5613aa),_0x237d92=new Set(),_0x43dbf0=new Set();for(const _0x24797a of _0x1be407)if(_0x57bd('0x60')==_0x24797a[_0x57bd('0x29')])for(const _0x53c82b of _0x24797a[_0x57bd('0x69')]()){const _0x14aaff=_0x53c82b[_0x57bd('0x24')]()[_0x57bd('0xa7')]();if(_0x14aaff){if(_0x14aaff['is'](_0x57bd('0x4e'),_0x57bd('0x2d'))&&ce(_0x14aaff)){_0x24797a['removeMarker'](_0x53c82b[_0x57bd('0x68')]),_0x237d92[_0x57bd('0x44')](_0x14aaff),_0x1734c5=!0x0;const _0x225edf=_0x14aaff[_0x57bd('0x82')],_0x2670e5=_0x14aaff[_0x57bd('0x53')],_0x165ff9=_0x225edf&&_0x225edf['is']('element',_0x57bd('0x2d')),_0x79aa6d=_0x2670e5&&_0x2670e5['is'](_0x57bd('0x4e'),'tableCellSuggestion');_0x165ff9&&!_0x237d92[_0x57bd('0x13')](_0x225edf)&&_0x43dbf0['add'](_0x225edf),_0x79aa6d&&!_0x237d92[_0x57bd('0x13')](_0x2670e5)&&_0x43dbf0[_0x57bd('0x44')](_0x2670e5);}else _0x14aaff['is'](_0x57bd('0x4e'),'paragraph')&&_0x14aaff[_0x57bd('0x7d')]&&(_0x24797a[_0x57bd('0x63')](_0x53c82b[_0x57bd('0x68')]),_0x1734c5=!0x0);}}else{if(_0x57bd('0x65')==_0x24797a[_0x57bd('0x29')]){if(!_0x24797a['attributes']||!_0x24797a['attributes'][_0x57bd('0x42')])continue;const _0xaf7de2=_0x24797a['attributes'][_0x57bd('0x3c')];if(_0xaf7de2&&Object[_0x57bd('0x19')](_0xaf7de2)['length'])continue;const _0x304dce=_0x24797a[_0x57bd('0x7b')][_0x57bd('0x42')];let _0x24684a=!0x0,_0xcfbce1=!0x0;for(const _0x16b92d of _0x1be407)if(_0x16b92d[_0x57bd('0x29')]&&_0x16b92d[_0x57bd('0x29')][_0x57bd('0x6e')](_0x57bd('0x60'))){if(!_0x16b92d['attributes'][_0x57bd('0x42')]){_0xcfbce1=!0x1;break;}if(_0x16b92d['id']!=_0x24797a['id']&&_0x16b92d[_0x57bd('0x7b')][_0x57bd('0x42')]==_0x304dce){_0x24684a=!0x1;break;}}_0xcfbce1&&_0x24684a&&(_0x24797a[_0x57bd('0x93')](),_0x1734c5=!0x0);}}for(const _0x3dd410 of _0x237d92)_0x487917['remove'](_0x3dd410);for(const _0x20adca of _0x43dbf0)_0x487917['unwrap'](_0x20adca);return _0x1734c5;}),_0x56b108[_0x57bd('0x3')][_0x57bd('0xf')](_0x57bd('0xa3'))[_0x57bd('0x9a')]({'model':_0x57bd('0x35'),'view':(_0x51fbaa,_0x5adc62)=>_0x545e57(_0x51fbaa),'converterPriority':_0x57bd('0x12')}),_0x56b108['conversion']['for'](_0x57bd('0x9c'))[_0x57bd('0x9a')]({'model':_0x57bd('0x35'),'view':(_0x250997,_0x3c1380)=>_0x3c1380[_0x57bd('0x2')][_0x57bd('0x40')]?_0x545e57(_0x250997,!0x1):null,'converterPriority':_0x57bd('0x12')});const _0x570ccb=_0x56b108[_0x57bd('0x97')]['view'];this['listenTo'](_0x570ccb['document'],_0x57bd('0x34'),(_0x2fb49b,_0x593735)=>{const _0x9a91c3=[];for(const _0x446d4a of _0x570ccb[_0x57bd('0x9e')](_0x593735[_0x57bd('0x3b')])[_0x57bd('0x4b')]())_0x446d4a['is']('element',_0x57bd('0x26'))&&_0x9a91c3['push'](_0x446d4a);_0x570ccb[_0x57bd('0x99')](_0x49e654=>{for(const _0xf32417 of _0x9a91c3)_0x49e654['move'](_0x49e654[_0x57bd('0x9e')](_0xf32417),_0x49e654[_0x57bd('0x66')](_0xf32417)),_0x49e654[_0x57bd('0xa0')](_0xf32417);});});}}function ce(_0x159949){if(_0x159949[_0x57bd('0x7d')])return!0x0;const _0x34a5fd=_0x159949['getChild'](0x0);return _0x34a5fd['is']('element',_0x57bd('0x98'))&&_0x34a5fd['isEmpty'];}function fe(_0x395f93,_0x316d28={},_0x2e090c){for(const {isAnchor:_0x886fd3,cellHeight:_0x4e085b,cellWidth:_0x4ba664}of _0x2e090c['createTableWalker'](_0x395f93,{'includeAllSlots':!0x0,..._0x316d28}))if(!_0x886fd3||0x1!=_0x4e085b||0x1!=_0x4ba664)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26a2=['accept','getTableColumnsWidths','resizeTable','TrackChangesEditing','formatBlock','handleResizeTableWidthCommand','handleSuggestionDescription','columnWidths','change','selection','document','author','editor','getContainedElement','getSuggestionCallback','afterInit','format','enableCommand','registerCustomCallback','bind','discard','resizeColumnWidths','model','get','Users','subType','*Format:*\x20resize\x20table','tableWidth','table','_suggestionFactory','resizeTableWidth','_descriptionFactory','getAttribute','TableColumnResizeEditing','has','plugins','getColumnGroupElement','locale','formatGroupId'];(function(_0x1e9fcb,_0x26a273){const _0x1f4f7c=function(_0x2b428f){while(--_0x2b428f){_0x1e9fcb['push'](_0x1e9fcb['shift']());}};_0x1f4f7c(++_0x26a273);}(_0x26a2,0xe4));const _0x1f4f=function(_0x1e9fcb,_0x26a273){_0x1e9fcb=_0x1e9fcb-0x0;let _0x1f4f7c=_0x26a2[_0x1e9fcb];return _0x1f4f7c;};import{Plugin as _0xab3633}from'ckeditor5/src/core';import{getTranslation as _0x3fb37d}from'../utils/common-translations';export default class wt extends _0xab3633{[_0x1f4f('0x15')](){if(!this[_0x1f4f('0x12')][_0x1f4f('0x2')][_0x1f4f('0x1')]('TableColumnResizeEditing'))return;const _0x3f6820=this[_0x1f4f('0x12')][_0x1f4f('0x2')][_0x1f4f('0x1d')]('TrackChangesEditing');_0x3f6820[_0x1f4f('0x17')](_0x1f4f('0x24'),this[_0x1f4f('0xb')][_0x1f4f('0x19')](this)),_0x3f6820['enableCommand'](_0x1f4f('0x1b'),this[_0x1f4f('0xb')]['bind'](this)),_0x3f6820['_suggestionFactory'][_0x1f4f('0x18')](_0x1f4f('0xa'),_0x1f4f('0x8'),'accept',_0x3f6820[_0x1f4f('0x23')][_0x1f4f('0x14')](_0x1f4f('0xa'),null,_0x1f4f('0x1a'))),_0x3f6820[_0x1f4f('0x23')]['registerCustomCallback'](_0x1f4f('0xa'),_0x1f4f('0x8'),'discard',_0x3f6820[_0x1f4f('0x23')][_0x1f4f('0x14')](_0x1f4f('0xa'),null,_0x1f4f('0x6'))),_0x3f6820[_0x1f4f('0x25')]['registerDescriptionCallback'](this['handleSuggestionDescription'][_0x1f4f('0x19')](this));}['handleResizeTableWidthCommand'](_0x546960,_0x29113e){const _0x2980c3=this[_0x1f4f('0x12')][_0x1f4f('0x2')][_0x1f4f('0x1d')](_0x1f4f('0x9')),_0xab64f7=this[_0x1f4f('0x12')][_0x1f4f('0x2')][_0x1f4f('0x1d')](_0x1f4f('0x0')),_0x4cb4a7=_0x29113e[_0x1f4f('0x22')]||this[_0x1f4f('0x12')]['model'][_0x1f4f('0x10')][_0x1f4f('0xf')]['getSelectedElement']();this[_0x1f4f('0x12')][_0x1f4f('0x1c')][_0x1f4f('0xe')](()=>{const _0x3df278=_0xab64f7[_0x1f4f('0x3')](_0x4cb4a7);let _0x3bc336=_0x3df278?_0xab64f7[_0x1f4f('0x7')](_0x3df278):null,_0x5c6dee=_0x4cb4a7[_0x1f4f('0x26')]('tableWidth')||null;const _0x55d30=_0x29113e[_0x1f4f('0x21')]||_0x5c6dee,_0x33cfa2=_0x29113e[_0x1f4f('0xd')]||_0x3bc336,_0x4cc43f=this[_0x1f4f('0x12')][_0x1f4f('0x2')][_0x1f4f('0x1d')](_0x1f4f('0x1e'))['me'];for(const _0x2c2db9 of _0x2980c3['getSuggestions']()){const _0x1457fc=_0x2c2db9[_0x1f4f('0x13')]();if('resizeTable'===_0x2c2db9[_0x1f4f('0x1f')]&&_0x1457fc===_0x4cb4a7){_0x2c2db9[_0x1f4f('0x11')]!==_0x4cc43f&&_0x2c2db9[_0x1f4f('0x1a')]();const _0x383d87=_0x2c2db9['data']['commandParams'];_0x5c6dee=_0x383d87[0x0][_0x1f4f('0x21')],_0x3bc336=_0x383d87[0x0][_0x1f4f('0xd')];break;}}_0x546960({'table':_0x4cb4a7,'tableWidth':_0x55d30,'columnWidths':_0x33cfa2}),_0x2980c3['markBlockFormat'](_0x4cb4a7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5c6dee,'columnWidths':_0x3bc336}],'formatGroupId':_0x1f4f('0x8')},[],_0x1f4f('0x8'));});}[_0x1f4f('0xc')](_0x8c9c05){const {data:_0x166198}=_0x8c9c05;if(_0x166198&&_0x1f4f('0x8')===_0x166198[_0x1f4f('0x5')]){const _0x42a4d3=_0x1f4f('0x20');return{'type':_0x1f4f('0x16'),'content':_0x3fb37d(this['editor'][_0x1f4f('0x4')],_0x42a4d3)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x453a=['model','first','removeAttribute','createPositionBefore','showSuggestionHighlights','markerName','getSuggestion','getColumnIndexes','formatBlock','_descriptionFactory','nodeAfter','consume','getRowIndexes','editor','childCount','FORMAT_REGULAR_ROW','_splitMarkerName','headingRows','data','writer','item','setAttribute','data-suggestion','ck-suggestion-marker--active','TableEditing','setTableColumnHeader','markerRange','enableCommand','getAttribute','consumable','forceValue','format','parent','bindElementToMarker','downcastDispatcher','commandName','setTableRowHeader','addMarker:suggestion','name','createRange','stop','createTableWalker','end','markBlockFormat','ck-suggestion-marker-','FORMAT_HEADER_ROW','findAncestor','unbindElementFromMarkerName','last','registerCustomCallback','createPositionAfter','*Format:*\x20%0','selection','get','requires','nodeBefore','registerDescriptionCallback','isBefore','toViewElement','from','value','getCellLocation','cell','commandParams','document','removeMarker:suggestion','highest','removeClass','getChild','has','mapper','TableUtils','index','getSelectionAffectedTableCells','plugins','FORMAT_HEADER_COLUMN','FORMAT_REGULAR_COLUMN','TrackChangesEditing','markerNameToElements','afterInit'];(function(_0x424be1,_0x453aca){const _0x1ad02a=function(_0x32e402){while(--_0x32e402){_0x424be1['push'](_0x424be1['shift']());}};_0x1ad02a(++_0x453aca);}(_0x453a,0x17a));const _0x1ad0=function(_0x424be1,_0x453aca){_0x424be1=_0x424be1-0x0;let _0x1ad02a=_0x453a[_0x424be1];return _0x1ad02a;};import{Plugin as _0x461e0f}from'ckeditor5/src/core';import _0x33a2c0 from'./table';import{getTranslation as _0x11faa5}from'../utils/common-translations';export default class pt extends _0x461e0f{static get[_0x1ad0('0x4c')](){return[_0x33a2c0];}[_0x1ad0('0x15')](){const _0x493011=this[_0x1ad0('0x23')];if(!_0x493011[_0x1ad0('0x10')][_0x1ad0('0xb')](_0x1ad0('0x2e')))return;const _0xb11e6f=_0x493011['locale'],_0x360aed=_0x493011[_0x1ad0('0x10')][_0x1ad0('0x4b')](_0x1ad0('0x13')),_0x1880f1=_0x493011[_0x1ad0('0x10')][_0x1ad0('0x4b')](_0x1ad0('0xd')),_0x3368df=_0x493011[_0x1ad0('0x10')][_0x1ad0('0x4b')](_0x33a2c0);function _0x15ffe4({showActiveMarker:_0xb0fd5d=!0x0,setDataAttribute:_0x4bef4a=!0x0}={}){return(_0x20a2a8,_0x492ea1,_0x4cd438)=>{const {type:_0x1e9e36,id:_0x485d3f}=_0x360aed[_0x1ad0('0x26')](_0x492ea1[_0x1ad0('0x1b')]),_0x3bf2ac=_0x360aed['getSuggestion'](_0x485d3f);if(!_0x3bf2ac[_0x1ad0('0x28')]||'setTableColumnHeader'!=_0x3bf2ac[_0x1ad0('0x28')][_0x1ad0('0x39')])return;if(_0x492ea1[_0x1ad0('0x2a')])return void _0x20a2a8[_0x1ad0('0x3e')]();if(!_0x4cd438[_0x1ad0('0x33')][_0x1ad0('0x21')](_0x492ea1[_0x1ad0('0x30')],_0x20a2a8[_0x1ad0('0x3c')]))return;const _0x1c4148=_0x492ea1['markerRange']['start'][_0x1ad0('0x20')],_0x64e13=_0x492ea1[_0x1ad0('0x30')][_0x1ad0('0x40')][_0x1ad0('0x4d')],_0x4e87eb=_0x1c4148[_0x1ad0('0x36')]['parent'],{column:_0x1af414}=_0x1880f1[_0x1ad0('0x3')](_0x1c4148),{column:_0x3a4ca5}=_0x1880f1[_0x1ad0('0x3')](_0x64e13);for(let _0x5f5b98=_0x1af414;_0x5f5b98<=_0x3a4ca5;_0x5f5b98++){const _0x536d14=_0x1880f1[_0x1ad0('0x3f')](_0x4e87eb,{'column':_0x5f5b98,'includeAllSlots':!0x1});for(const _0x477bd2 of _0x536d14){const _0x28d8e6=_0x477bd2[_0x1ad0('0x4')],_0x3d9847=_0x4cd438[_0x1ad0('0xc')][_0x1ad0('0x0')](_0x28d8e6);_0x4cd438[_0x1ad0('0x29')]['addClass'](_0x1ad0('0x42')+_0x1e9e36,_0x3d9847),_0x4bef4a&&_0x4cd438[_0x1ad0('0x29')][_0x1ad0('0x2b')](_0x1ad0('0x2c'),_0x485d3f,_0x3d9847),_0x4cd438[_0x1ad0('0xc')][_0x1ad0('0x37')](_0x3d9847,_0x492ea1[_0x1ad0('0x1b')]),_0xb0fd5d&&(_0x360aed['activeMarkers']['includes'](_0x492ea1[_0x1ad0('0x1b')])?_0x4cd438[_0x1ad0('0x29')]['addClass'](_0x1ad0('0x2d'),_0x3d9847):_0x4cd438[_0x1ad0('0x29')]['removeClass'](_0x1ad0('0x2d'),_0x3d9847));}}};}_0x360aed[_0x1ad0('0x31')](_0x1ad0('0x3a'),(_0x3fdcf8,_0x2fbe18)=>{const _0x5ace7e=_0x1880f1[_0x1ad0('0xf')](_0x493011[_0x1ad0('0x16')][_0x1ad0('0x6')][_0x1ad0('0x4a')]),_0x370546=_0x1880f1[_0x1ad0('0x22')](_0x5ace7e),_0x4cca61=_0x5ace7e[0x0]['findAncestor']('table'),_0x450221=_0x4cca61[_0x1ad0('0x32')](_0x1ad0('0x27'))||0x0,_0x5e5e5b=_0x2fbe18&&null!==_0x2fbe18[_0x1ad0('0x34')]?_0x2fbe18[_0x1ad0('0x34')]:!_0x493011['commands'][_0x1ad0('0x4b')]('setTableRowHeader')[_0x1ad0('0x2')],_0x39d3c8=_0x5e5e5b?_0x370546[_0x1ad0('0x46')]:_0x370546[_0x1ad0('0x17')],_0xcb2fbc=_0x4cca61[_0x1ad0('0xa')](_0x39d3c8);let _0x17b0f8;if(_0x5e5e5b){const _0x193edf=_0x4cca61[_0x1ad0('0xa')](_0x450221);if(_0xcb2fbc[_0x1ad0('0xe')]<_0x193edf[_0x1ad0('0xe')])return;_0x17b0f8=_0x493011['model'][_0x1ad0('0x3d')](_0x493011[_0x1ad0('0x16')][_0x1ad0('0x19')](_0x193edf[_0x1ad0('0xa')](0x0)),_0x493011[_0x1ad0('0x16')][_0x1ad0('0x48')](_0xcb2fbc[_0x1ad0('0xa')](_0xcb2fbc['childCount']-0x1)));}else{const _0x22e195=_0x4cca61[_0x1ad0('0xa')](_0x450221-0x1);if(!_0x22e195)return;_0x17b0f8=_0x493011[_0x1ad0('0x16')]['createRange'](_0x493011['model']['createPositionBefore'](_0xcb2fbc[_0x1ad0('0xa')](0x0)),_0x493011['model'][_0x1ad0('0x48')](_0x22e195[_0x1ad0('0xa')](_0x22e195[_0x1ad0('0x24')]-0x1)));}_0x493011[_0x1ad0('0x16')]['change'](()=>{_0x360aed[_0x1ad0('0x41')](_0x17b0f8,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x5e5e5b}]},[],_0x1ad0('0x3a'));});}),_0x360aed[_0x1ad0('0x31')](_0x1ad0('0x2f'),(_0x2b4379,_0x2f153b)=>{const _0x35e41e=_0x493011['plugins'][_0x1ad0('0x4b')](_0x1ad0('0xd')),_0x4e02b4=_0x35e41e['getSelectionAffectedTableCells'](_0x493011[_0x1ad0('0x16')]['document'][_0x1ad0('0x4a')]),_0x2a8c94=_0x35e41e[_0x1ad0('0x1d')](_0x4e02b4),_0x2409b4=_0x4e02b4[0x0][_0x1ad0('0x44')]('table'),_0x528bfa=_0x2409b4[_0x1ad0('0x32')]('headingColumns')||0x0,_0x4c4e5a=_0x2f153b&&null!==_0x2f153b[_0x1ad0('0x34')]?_0x2f153b[_0x1ad0('0x34')]:!_0x493011['commands'][_0x1ad0('0x4b')]('setTableColumnHeader')[_0x1ad0('0x2')];let _0x4d186e;const _0x2c19d9=_0x2409b4[_0x1ad0('0xa')](0x0),_0xc0c7ae=_0x4c4e5a?_0x2a8c94[_0x1ad0('0x46')]:_0x2a8c94[_0x1ad0('0x17')],_0x540174=_0x35e41e['createTableWalker'](_0x2409b4,{'startRow':0x0,'column':_0xc0c7ae,'includeAllSlots':!0x1}),_0x38f966=Array[_0x1ad0('0x1')](_0x540174)[0x0][_0x1ad0('0x4')];if(_0x4c4e5a){const _0x2bb47e=_0x2c19d9[_0x1ad0('0xa')](_0x528bfa);if(_0x38f966[_0x1ad0('0x4f')](_0x2bb47e))return;_0x4d186e=_0x493011['model'][_0x1ad0('0x3d')](_0x493011[_0x1ad0('0x16')][_0x1ad0('0x19')](_0x2bb47e),_0x493011[_0x1ad0('0x16')]['createPositionAfter'](_0x38f966));}else{const _0x4ca06f=_0x2c19d9[_0x1ad0('0xa')](_0x528bfa-0x1);if(!_0x4ca06f)return;_0x4d186e=_0x493011[_0x1ad0('0x16')][_0x1ad0('0x3d')](_0x493011[_0x1ad0('0x16')]['createPositionBefore'](_0x38f966),_0x493011[_0x1ad0('0x16')][_0x1ad0('0x48')](_0x4ca06f));}_0x493011[_0x1ad0('0x16')]['change'](()=>{_0x360aed[_0x1ad0('0x41')](_0x4d186e,{'commandName':_0x1ad0('0x2f'),'commandParams':[{'forceValue':_0x4c4e5a}]},[],_0x1ad0('0x2f'));});}),_0x493011['editing'][_0x1ad0('0x38')]['on']('addMarker:suggestion',_0x15ffe4(),{'priority':_0x1ad0('0x8')}),_0x493011[_0x1ad0('0x28')]['downcastDispatcher']['on'](_0x1ad0('0x3b'),(_0x1c289f,_0x604da,_0x26327f)=>{_0x26327f['options'][_0x1ad0('0x1a')]&&_0x15ffe4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1c289f,_0x604da,_0x26327f);},{'priority':_0x1ad0('0x8')}),_0x493011['editing']['downcastDispatcher']['on'](_0x1ad0('0x7'),(_0x4a8f76,_0x2baeff,_0x506f5a)=>{const {type:_0x1d61f1,id:_0xae08f1}=_0x360aed['_splitMarkerName'](_0x2baeff[_0x1ad0('0x1b')]),_0x4178fd=_0x360aed[_0x1ad0('0x1c')](_0xae08f1);if(!_0x4178fd[_0x1ad0('0x28')]||'setTableColumnHeader'!=_0x4178fd[_0x1ad0('0x28')]['commandName'])return;const _0x2adeaf=_0x506f5a[_0x1ad0('0xc')][_0x1ad0('0x14')](_0x2baeff['markerName']);if(_0x2adeaf)for(const _0x4bd8c2 of _0x2adeaf)_0x506f5a[_0x1ad0('0x29')][_0x1ad0('0x9')](_0x1ad0('0x42')+_0x1d61f1,_0x4bd8c2),_0x506f5a[_0x1ad0('0x29')][_0x1ad0('0x9')](_0x1ad0('0x2d'),_0x4bd8c2),_0x506f5a[_0x1ad0('0x29')][_0x1ad0('0x18')](_0x1ad0('0x2c'),_0x4bd8c2),_0x506f5a[_0x1ad0('0xc')][_0x1ad0('0x45')](_0x4bd8c2,_0x2baeff[_0x1ad0('0x1b')]);},{'priority':_0x1ad0('0x8')}),_0x360aed[_0x1ad0('0x1f')][_0x1ad0('0x4e')](_0x3f58c1=>{const {data:_0x428b3c}=_0x3f58c1;if(_0x428b3c){if(_0x1ad0('0x3a')==_0x428b3c[_0x1ad0('0x39')]){const _0x2d3c14=_0x428b3c[_0x1ad0('0x5')][0x0][_0x1ad0('0x34')];return _0x41d208(_0x11faa5(_0xb11e6f,_0x2d3c14?_0x1ad0('0x43'):_0x1ad0('0x25')));}if(_0x1ad0('0x2f')==_0x428b3c[_0x1ad0('0x39')]){const _0x1e15d9=_0x428b3c[_0x1ad0('0x5')][0x0]['forceValue'];return _0x41d208(_0x11faa5(_0xb11e6f,_0x1e15d9?_0x1ad0('0x11'):_0x1ad0('0x12')));}}function _0x41d208(_0x3f2c16){return{'type':_0x1ad0('0x35'),'content':_0x11faa5(_0xb11e6f,_0x1ad0('0x49'),_0x3f2c16)};}});const _0x2f9bd9=_0x3368df['_acceptFormatSuggestionCallbackFactory']();_0x360aed['_suggestionFactory'][_0x1ad0('0x47')](_0x1ad0('0x1e'),_0x1ad0('0x3a'),'accept',_0x2f9bd9),_0x360aed['_suggestionFactory'][_0x1ad0('0x47')](_0x1ad0('0x1e'),_0x1ad0('0x2f'),'accept',_0x2f9bd9);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44dd=['has','stop','createRangeOn','commands','length','mergeTableCellLeft','trackChanges','add','_areMergableCells','map','commandName','mergeTableCellDown','get','rootName','horizontally','markMultiRangeBlockFormat','splitTableCellVertically','editor','_descriptionFactory','_areSelectedCellsMergable','formatBlock','model','afterInit','getSelectionAffectedTableCells','$graveyard','enableCommand','splitTableCellHorizontally','getSuggestions','getAncestors','size','TrackChangesEditing','refresh','*Merge\x20cells*','direction','tableCell','isInContent','from','registerCustomCallback','table','detach','requires','isEnabled','TableEditing','value','locale','insertion','findAncestor','type','getRanges','push','_isForcedDefaultExecutionBlock','element','low','mergeTableCells','root','highest','createTableWalker','filter','accept','format','setSelection','selection','TableUtils','deletion','change','find','registerDescriptionCallback','containsRange','cell','fromRange','document','forceDefaultExecution','plugins','_tablePostFixingSubtypes','getCellLocation','mergeTableCellRight','*Split\x20cell:*\x20horizontally','getFirstPosition','author','_suggestionFactory','return','_acceptFormatSuggestionCallbackFactory'];(function(_0x479c4d,_0x44ddcf){const _0x257672=function(_0xef651c){while(--_0xef651c){_0x479c4d['push'](_0x479c4d['shift']());}};_0x257672(++_0x44ddcf);}(_0x44dd,0x191));const _0x2576=function(_0x479c4d,_0x44ddcf){_0x479c4d=_0x479c4d-0x0;let _0x257672=_0x44dd[_0x479c4d];return _0x257672;};import{Plugin as _0xfe5ebc}from'ckeditor5/src/core';import _0x535eb2 from'./table';import{LiveRange as _0x5078c4}from'ckeditor5/src/engine';import{getTranslation as _0x12d9d7}from'../utils/common-translations';export default class dt extends _0xfe5ebc{static get[_0x2576('0x31')](){return[_0x535eb2];}[_0x2576('0x1f')](){const _0x3b11e6=this['editor'],_0x229ac2=_0x3b11e6[_0x2576('0x1e')][_0x2576('0x4f')][_0x2576('0x46')],_0xe7180d=_0x3b11e6[_0x2576('0x35')];if(!_0x3b11e6[_0x2576('0x51')][_0x2576('0x9')](_0x2576('0x33')))return;const _0x130224=_0x3b11e6[_0x2576('0x51')][_0x2576('0x15')]('TrackChangesEditing'),_0x227a01=_0x3b11e6['plugins']['get'](_0x2576('0x47')),_0x4c7365=_0x3b11e6[_0x2576('0x51')][_0x2576('0x15')](_0x535eb2);_0x4c7365[_0x2576('0x0')][_0x2576('0x3a')](_0x2576('0x3e')),_0x130224[_0x2576('0x22')](_0x2576('0x3e'),()=>{const _0x4ea996=_0x227a01[_0x2576('0x20')](_0x3b11e6[_0x2576('0x1e')]['document'][_0x2576('0x46')]);_0x3b11e6['model']['change'](()=>{_0x130224[_0x2576('0x18')](_0x4ea996,{'commandName':_0x2576('0x3e'),'commandParams':[]},[],_0x2576('0x3e'));});}),_0x3b11e6[_0x2576('0xc')]['get'](_0x2576('0x3e'))['on']('execute',(_0x5872d0,_0x285dd8)=>{_0x3b11e6[_0x2576('0xc')][_0x2576('0x15')](_0x2576('0xf'))[_0x2576('0x34')]&&(_0x285dd8[_0x2576('0xd')]>0x0&&_0x285dd8[_0x285dd8['length']-0x1]&&_0x285dd8[_0x285dd8[_0x2576('0xd')]-0x1][_0x2576('0x50')]||_0x130224[_0x2576('0x3b')]||this[_0x2576('0x1c')]()||_0x5872d0[_0x2576('0xa')]());},{'priority':_0x2576('0x40')});for(const _0x4ff5e8 of['mergeTableCellUp',_0x2576('0x2'),_0x2576('0x14'),_0x2576('0xe')]){const _0x1744f1=_0x3b11e6['commands']['get'](_0x4ff5e8);_0x130224['enableCommand'](_0x4ff5e8,()=>{const _0x405396=_0x3b11e6[_0x2576('0x1e')][_0x2576('0x4f')][_0x2576('0x46')][_0x2576('0x4')]()['getAncestors']()[_0x2576('0x4a')](_0x5cd6ee=>_0x5cd6ee['is']('element',_0x2576('0x2b'))),_0x4bcf2b=_0x1744f1[_0x2576('0x34')];_0x3b11e6[_0x2576('0x1e')]['change'](()=>{_0x130224[_0x2576('0x18')]([_0x405396,_0x4bcf2b],{'commandName':_0x2576('0x3e'),'commandParams':[]},[],_0x2576('0x3e'));});});}for(const _0x40b8cb of[_0x2576('0x19'),_0x2576('0x23')]){const _0x41797c=_0x3b11e6[_0x2576('0xc')][_0x2576('0x15')](_0x40b8cb);_0x130224[_0x2576('0x22')](_0x40b8cb,()=>{const _0x337f39=_0x227a01[_0x2576('0x20')](_0x3b11e6[_0x2576('0x1e')][_0x2576('0x4f')][_0x2576('0x46')])[0x0],_0xf34829=_0x337f39[_0x2576('0x37')](_0x2576('0x2f')),{column:_0x35dd48,row:_0x1ce950}=_0x227a01[_0x2576('0x1')](_0x337f39);let _0x37d3eb=[];if(_0x2576('0x17')==_0x41797c[_0x2576('0x2a')]){const _0x2cd86b=_0x227a01[_0x2576('0x41')](_0xf34829,{'startRow':_0x1ce950,'endRow':_0x1ce950,'includeAllSlots':!0x0});_0x37d3eb=Array['from'](_0x2cd86b)['map'](_0x1faff2=>_0x1faff2[_0x2576('0x4d')]);}else{const _0x3c980c=_0x227a01['createTableWalker'](_0xf34829,{'column':_0x35dd48,'includeAllSlots':!0x0});_0x37d3eb=Array[_0x2576('0x2d')](_0x3c980c)[_0x2576('0x12')](_0xde8c46=>_0xde8c46[_0x2576('0x4d')]);}_0x3b11e6['model'][_0x2576('0x49')](_0x1f66a3=>{_0x130224['markBlockFormat'](_0x1f66a3[_0x2576('0xb')](_0x337f39),{'commandName':_0x40b8cb,'commandParams':[]},_0x37d3eb,_0x40b8cb);});});}_0x130224[_0x2576('0x1b')][_0x2576('0x4b')](_0x506cd0=>{const {data:_0x1b31c3}=_0x506cd0;if(_0x1b31c3)return _0x2576('0x3e')==_0x1b31c3[_0x2576('0x13')]?{'type':_0x2576('0x44'),'content':_0x12d9d7(_0xe7180d,_0x2576('0x29'))}:void 0x0;}),_0x130224['_descriptionFactory']['registerDescriptionCallback'](_0x33ec99=>{const {data:_0x3ddf5c}=_0x33ec99;if(_0x3ddf5c)return _0x2576('0x19')==_0x3ddf5c['commandName']?{'type':_0x2576('0x44'),'content':_0x12d9d7(_0xe7180d,'*Split\x20cell:*\x20vertically')}:_0x2576('0x23')==_0x3ddf5c[_0x2576('0x13')]?{'type':_0x2576('0x44'),'content':_0x12d9d7(_0xe7180d,_0x2576('0x3'))}:void 0x0;});const _0x4e65d5=_0x4c7365[_0x2576('0x8')]();for(const _0x53e0b6 of['mergeTableCellUp',_0x2576('0x2'),_0x2576('0x14'),_0x2576('0xe')])_0x130224[_0x2576('0x6')][_0x2576('0x2e')](_0x2576('0x1d'),_0x53e0b6,_0x2576('0x43'),_0x4e65d5);for(const _0x45acdc of[_0x2576('0x19'),'splitTableCellHorizontally'])_0x130224[_0x2576('0x6')][_0x2576('0x2e')](_0x2576('0x1d'),_0x45acdc,_0x2576('0x43'),_0x4e65d5);_0x130224[_0x2576('0x6')][_0x2576('0x2e')](_0x2576('0x1d'),_0x2576('0x3e'),_0x2576('0x43'),_0x53c988=>{_0x3b11e6[_0x2576('0x1e')][_0x2576('0x49')](_0x128dae=>{const _0x1e0a09=Array['from'](_0x229ac2['getRanges']())[_0x2576('0x12')](_0x4679ee=>_0x5078c4[_0x2576('0x4e')](_0x4679ee));_0x128dae['setSelection'](_0x53c988),_0x3b11e6[_0x2576('0xc')][_0x2576('0x15')]('mergeTableCells')[_0x2576('0x28')](),_0x3b11e6['execute'](_0x2576('0x3e'),{'forceDefaultExecution':!0x0});const _0x5dd3d4=_0x1e0a09[_0x2576('0x42')](_0x1fa5db=>_0x2576('0x21')!=_0x1fa5db[_0x2576('0x3f')][_0x2576('0x16')]);_0x5dd3d4[_0x2576('0xd')]>0x0&&_0x128dae[_0x2576('0x45')](_0x5dd3d4);for(const _0x189f63 of _0x1e0a09)_0x189f63[_0x2576('0x30')]();});});for(const _0x5802dd of['mergeTableCellUp',_0x2576('0x14'),_0x2576('0xe'),_0x2576('0x2')]){const _0x1c71d7=_0x3b11e6[_0x2576('0xc')][_0x2576('0x15')](_0x5802dd);_0x1c71d7['on']('set:isEnabled',(_0x3f42cf,_0x3483af,_0x29b85f)=>{if(_0x29b85f){const _0x46bc42=_0x3b11e6[_0x2576('0x1e')][_0x2576('0x4f')][_0x2576('0x46')][_0x2576('0x4')]()[_0x2576('0x25')]()[_0x2576('0x4a')](_0x2d3075=>_0x2d3075['is'](_0x2576('0x3c'),_0x2576('0x2b')));this[_0x2576('0x11')](_0x1c71d7[_0x2576('0x34')],_0x46bc42)||(_0x3f42cf[_0x2576('0x7')]=!0x1,_0x3f42cf['stop']());}},{'priority':_0x2576('0x3d')});}}['_areSelectedCellsMergable'](){const _0x55f29b=this[_0x2576('0x1a')][_0x2576('0xc')][_0x2576('0x15')]('mergeTableCells'),_0x3ffe2c=this[_0x2576('0x1a')][_0x2576('0x51')]['get'](_0x2576('0x47'));if(!_0x55f29b[_0x2576('0x32')])return!0x1;const _0x30bc5a=_0x3ffe2c['getSelectionAffectedTableCells'](this[_0x2576('0x1a')][_0x2576('0x1e')][_0x2576('0x4f')]['selection']);for(const _0x6680fe of _0x30bc5a)for(const _0x88c5fb of _0x30bc5a)if(_0x6680fe!=_0x88c5fb&&!this[_0x2576('0x11')](_0x6680fe,_0x88c5fb))return!0x1;return!0x0;}['_areMergableCells'](_0x3e2cf3,_0x43cf65){const _0x301d84=this[_0x2576('0x1a')][_0x2576('0x51')][_0x2576('0x15')](_0x2576('0x27')),_0x482386=this[_0x2576('0x1a')][_0x2576('0x1e')]['createRangeOn'](_0x3e2cf3),_0x1676af=this[_0x2576('0x1a')][_0x2576('0x1e')][_0x2576('0xb')](_0x43cf65),_0x5ccaaa=new Set(),_0x38421b=new Set();for(const _0x2e44f0 of _0x301d84[_0x2576('0x24')]())if((_0x2576('0x36')==_0x2e44f0[_0x2576('0x38')]||_0x2576('0x48')==_0x2e44f0[_0x2576('0x38')]||_0x2576('0x3e')==_0x2e44f0['subType'])&&_0x2e44f0[_0x2576('0x2c')])for(const _0x258fdf of _0x2e44f0[_0x2576('0x39')]())_0x258fdf[_0x2576('0x4c')](_0x482386,!0x0)&&_0x5ccaaa[_0x2576('0x10')](_0x2e44f0[_0x2576('0x38')]+':'+_0x2e44f0[_0x2576('0x5')]['id']),_0x258fdf[_0x2576('0x4c')](_0x1676af,!0x0)&&_0x38421b[_0x2576('0x10')](_0x2e44f0[_0x2576('0x38')]+':'+_0x2e44f0[_0x2576('0x5')]['id']);if(_0x5ccaaa[_0x2576('0x26')]!=_0x38421b['size'])return!0x1;for(const _0x23a818 of _0x5ccaaa)if(!_0x38421b[_0x2576('0x9')](_0x23a818))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c86=['get','tableOfContents','editor','plugins','ELEMENT_TABLE_OF_CONTENTS','_descriptionFactory','registerElementLabel','afterInit','insertTableOfContents','TrackChangesEditing','enableCommand'];(function(_0x59d945,_0x2c8647){const _0x4f10bf=function(_0x1a3b83){while(--_0x1a3b83){_0x59d945['push'](_0x59d945['shift']());}};_0x4f10bf(++_0x2c8647);}(_0x2c86,0x1dd));const _0x4f10=function(_0x59d945,_0x2c8647){_0x59d945=_0x59d945-0x0;let _0x4f10bf=_0x2c86[_0x59d945];return _0x4f10bf;};import{Plugin as _0x2a75a8}from'ckeditor5/src/core';import{getTranslation as _0x3f1324}from'../utils/common-translations';export default class bt extends _0x2a75a8{[_0x4f10('0x3')](){const _0x541f31=this[_0x4f10('0x9')];if(!_0x541f31['commands'][_0x4f10('0x7')]('insertTableOfContents'))return;_0x541f31[_0x4f10('0xa')]['get'](_0x4f10('0x5'))[_0x4f10('0x6')](_0x4f10('0x4'));const _0x47563a=_0x541f31['plugins']['get'](_0x4f10('0x5')),_0x4a30f2=_0x541f31['locale'];_0x47563a[_0x4f10('0x1')][_0x4f10('0x2')](_0x4f10('0x8'),_0x52fb86=>_0x3f1324(_0x4a30f2,_0x4f10('0x0'),_0x52fb86));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44e7=['TrackChangesTableProperties','TablePropertiesEditing','selection','tableCellBorderStyle','handleDiscardAction','change','model','accept','plugins','tableCellProperties','enableCommand','getContainedElement','TrackChangesEditing','enqueueChange','registerCustomCallback','tableProperties','_suggestionFactory','afterInit','formatBlock','has','nodeAfter','start','_getSuggestion','batch','tableBorderStyle','removeAttribute','*Format:*\x20change\x20table\x20properties','tableCellHorizontalAlignment','data','getSelectionAffectedTableCells','discard','editor','getSuggestionCallback','format','handleSuggestionDescription','getFirstPosition','document','join','tableHeight','*Format:*\x20change\x20table\x20cell\x20properties','getSuggestions','commandParams','registerDescriptionCallback','get','findAncestor','getAttribute','tableCellHeight','pluginName','_handlePropertyChange','TableUtils','tableBorderWidth','_descriptionFactory','TableCellPropertiesEditing','table','tableAlignment','tableBorderColor'];(function(_0x44a92d,_0x44e766){const _0x485e64=function(_0x5b1540){while(--_0x5b1540){_0x44a92d['push'](_0x44a92d['shift']());}};_0x485e64(++_0x44e766);}(_0x44e7,0x184));const _0x485e=function(_0x44a92d,_0x44e766){_0x44a92d=_0x44a92d-0x0;let _0x485e64=_0x44e7[_0x44a92d];return _0x485e64;};import{Plugin as _0xa8e360}from'ckeditor5/src/core';import{getTranslation as _0x18a71a}from'../utils/common-translations';export default class Ct extends _0xa8e360{constructor(_0x295103){super(_0x295103),this[_0x485e('0x13')]=[_0x485e('0x3'),_0x485e('0x1c'),_0x485e('0x36'),_0x485e('0x2'),'tableWidth',_0x485e('0x2a'),'tableBackgroundColor'],this[_0x485e('0xd')]=['tableCellBorderColor',_0x485e('0x7'),'tableCellBorderWidth','tableCellPadding','tableCellWidth',_0x485e('0x32'),'tableCellBackgroundColor',_0x485e('0x1f'),'tableCellVerticalAlignment'];}static get[_0x485e('0x33')](){return _0x485e('0x4');}[_0x485e('0x15')](){const _0x23ca5e=this[_0x485e('0x23')]['plugins'][_0x485e('0x2f')](_0x485e('0x10'));if(this[_0x485e('0x23')][_0x485e('0xc')][_0x485e('0x17')](_0x485e('0x5'))){for(const _0x27d4ff of this[_0x485e('0x13')])_0x23ca5e[_0x485e('0xe')](_0x27d4ff,(_0x3250b8,_0x55f6bc)=>{const _0x60cd33=this['editor'][_0x485e('0xa')][_0x485e('0x28')][_0x485e('0x6')][_0x485e('0x27')]()[_0x485e('0x30')](_0x485e('0x1'));this[_0x485e('0x34')](_0x27d4ff,[_0x60cd33],this[_0x485e('0x13')],_0x485e('0x13'),_0x3250b8,_0x55f6bc);});_0x23ca5e[_0x485e('0x14')]['registerCustomCallback'](_0x485e('0x16'),_0x485e('0x13'),'accept',_0x23ca5e['_suggestionFactory'][_0x485e('0x24')]('formatBlock',null,_0x485e('0x22'))),_0x23ca5e[_0x485e('0x14')]['registerCustomCallback'](_0x485e('0x16'),'tableProperties','discard',(_0x435b92,_0x479dcb)=>this[_0x485e('0x8')](this[_0x485e('0x13')],_0x435b92,_0x479dcb)),_0x23ca5e[_0x485e('0x14')][_0x485e('0x12')](_0x485e('0x16'),'tableProperties','join',()=>!0x1);}if(this[_0x485e('0x23')]['plugins'][_0x485e('0x17')](_0x485e('0x0'))){for(const _0x3df895 of this[_0x485e('0xd')])_0x23ca5e[_0x485e('0xe')](_0x3df895,(_0x47f6b1,_0x2994a3)=>{const _0x5922b1=this[_0x485e('0x23')][_0x485e('0xc')]['get'](_0x485e('0x35'))[_0x485e('0x21')](this[_0x485e('0x23')][_0x485e('0xa')][_0x485e('0x28')][_0x485e('0x6')]);this[_0x485e('0x34')](_0x3df895,_0x5922b1,this[_0x485e('0xd')],_0x485e('0xd'),_0x47f6b1,_0x2994a3);});_0x23ca5e[_0x485e('0x14')][_0x485e('0x12')](_0x485e('0x16'),_0x485e('0xd'),_0x485e('0xb'),_0x23ca5e['_suggestionFactory'][_0x485e('0x24')](_0x485e('0x16'),null,_0x485e('0x22'))),_0x23ca5e[_0x485e('0x14')][_0x485e('0x12')](_0x485e('0x16'),'tableCellProperties',_0x485e('0x22'),(_0x3ecc07,_0x5b657c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3ecc07,_0x5b657c)),_0x23ca5e['_suggestionFactory']['registerCustomCallback'](_0x485e('0x16'),_0x485e('0xd'),_0x485e('0x29'),()=>!0x1);}_0x23ca5e[_0x485e('0x37')][_0x485e('0x2e')](_0x52f9d3=>this[_0x485e('0x26')](_0x52f9d3));}[_0x485e('0x34')](_0x5d13b2,_0x5a862e,_0x2628fe,_0x244ac4,_0x132bc5,_0x444798){const _0x4d77b6=this['editor']['plugins'][_0x485e('0x2f')](_0x485e('0x10'));this['editor'][_0x485e('0xa')][_0x485e('0x11')](_0x444798[_0x485e('0x1b')],()=>{for(const _0x45e19d of _0x5a862e){if(this[_0x485e('0x1a')](_0x45e19d,_0x244ac4))_0x132bc5(_0x444798);else{const _0x1eaf3a={};for(const _0x5e6b7d of _0x2628fe){const _0x36d230=_0x45e19d[_0x485e('0x31')](_0x5e6b7d);void 0x0!==_0x36d230&&(_0x1eaf3a[_0x5e6b7d]=_0x36d230);}_0x132bc5(_0x444798),_0x4d77b6['markBlockFormat'](_0x45e19d,{'commandParams':[_0x1eaf3a]},[],_0x244ac4);}}});}[_0x485e('0x8')](_0x179490,_0x5e1437,_0x1fdfb9){const _0x549166=_0x5e1437[0x0][_0x485e('0x19')][_0x485e('0x18')],_0x4d9414=_0x1fdfb9[_0x485e('0x2d')][0x0];this[_0x485e('0x23')]['model'][_0x485e('0x9')](_0x49363b=>{for(const _0x1c01a2 of _0x179490)void 0x0!==_0x4d9414[_0x1c01a2]?_0x49363b['setAttribute'](_0x1c01a2,_0x4d9414[_0x1c01a2],_0x549166):_0x49363b[_0x485e('0x1d')](_0x1c01a2,_0x549166);});}[_0x485e('0x26')](_0x46ef93){if(_0x46ef93[_0x485e('0x20')])switch(_0x46ef93['subType']){case _0x485e('0x13'):return{'type':_0x485e('0x25'),'content':_0x18a71a(this[_0x485e('0x23')]['locale'],_0x485e('0x1e'))};case'tableCellProperties':return{'type':_0x485e('0x25'),'content':_0x18a71a(this['editor']['locale'],_0x485e('0x2b'))};}}[_0x485e('0x1a')](_0x5e96f,_0x302fed){const _0x3d0d2b=this[_0x485e('0x23')]['plugins'][_0x485e('0x2f')](_0x485e('0x10'));for(const _0x3bbbfe of _0x3d0d2b[_0x485e('0x2c')]({'skipNotAttached':!0x0})){const _0x25f104=_0x3bbbfe[_0x485e('0xf')]();if(_0x3bbbfe['subType']===_0x302fed&&_0x25f104===_0x5e96f)return _0x3bbbfe;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8ee2=['has','insertTemplate','editor','enableCommand','Template','plugins'];(function(_0x332710,_0x8ee2b5){const _0x14a706=function(_0x23bb8e){while(--_0x23bb8e){_0x332710['push'](_0x332710['shift']());}};_0x14a706(++_0x8ee2b5);}(_0x8ee2,0x13b));const _0x14a7=function(_0x332710,_0x8ee2b5){_0x332710=_0x332710-0x0;let _0x14a706=_0x8ee2[_0x332710];return _0x14a706;};import{Plugin as _0x5c64b0}from'ckeditor5/src/core';export default class yt extends _0x5c64b0{['afterInit'](){const _0x43f025=this[_0x14a7('0x5')];_0x43f025['plugins'][_0x14a7('0x3')](_0x14a7('0x1'))&&_0x43f025[_0x14a7('0x2')]['get']('TrackChangesEditing')[_0x14a7('0x0')](_0x14a7('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4100=['has','title-content','nodeBefore','document','get','start','suggestion','editor','isCollapsed','plugins','from','getChangedMarkers','getNearestSelectionRange','differ','schema','newRange','removeMarker','end','TrackChangesEditing','updateMarker','Title','forward','registerElementLabel','ELEMENT_TITLE','createRange','registerPostFixer','_descriptionFactory','model','isEqual'];(function(_0x1af08a,_0x4100e8){const _0x223528=function(_0x54ac90){while(--_0x54ac90){_0x1af08a['push'](_0x1af08a['shift']());}};_0x223528(++_0x4100e8);}(_0x4100,0xd5));const _0x2235=function(_0x1af08a,_0x4100e8){_0x1af08a=_0x1af08a-0x0;let _0x223528=_0x4100[_0x1af08a];return _0x223528;};import{Plugin as _0x34e0b3}from'ckeditor5/src/core';import{getTranslation as _0x123557}from'../utils/common-translations';export default class St extends _0x34e0b3{['afterInit'](){const _0x377c05=this[_0x2235('0x1a')];if(!_0x377c05[_0x2235('0x1c')][_0x2235('0x13')](_0x2235('0xa')))return;const _0x5051f9=_0x377c05[_0x2235('0x1c')][_0x2235('0x17')](_0x2235('0x8'));_0x5051f9[_0x2235('0x10')][_0x2235('0xc')](_0x2235('0x14'),()=>_0x123557(_0x377c05['locale'],_0x2235('0xd'))),_0x377c05[_0x2235('0x11')][_0x2235('0x16')][_0x2235('0xf')](_0x4933f8=>{let _0x5a9bef=!0x1;const _0x32c1fb=Array[_0x2235('0x0')](_0x377c05[_0x2235('0x11')]['document'][_0x2235('0x3')][_0x2235('0x1')]());for(const {name:_0x28ad50,data:_0x12d8b5}of _0x32c1fb){const {group:_0x2ddde7}=_0x5051f9['_splitMarkerName'](_0x28ad50);if(_0x2235('0x19')!==_0x2ddde7||!_0x12d8b5['newRange'])continue;const _0x733bc5=_0x12d8b5[_0x2235('0x5')],_0x5a98f7=_0x733bc5[_0x2235('0x7')][_0x2235('0x15')];if(!_0x5a98f7||!_0x5a98f7['is']('element',_0x2235('0x14')))continue;if(!_0x733bc5[_0x2235('0x18')]['isTouching'](_0x733bc5[_0x2235('0x7')]))continue;const _0x406a04=_0x377c05[_0x2235('0x11')][_0x2235('0x4')][_0x2235('0x2')](_0x733bc5[_0x2235('0x7')],_0x2235('0xb'));if(_0x406a04&&_0x406a04[_0x2235('0x1b')]){const _0x3eb883=_0x4933f8[_0x2235('0xe')](_0x733bc5['start'],_0x406a04[_0x2235('0x18')]);_0x3eb883[_0x2235('0x12')](_0x733bc5)||(_0x4933f8[_0x2235('0x9')](_0x28ad50,{'range':_0x3eb883}),_0x5a9bef=!0x0);}_0x5a9bef||(_0x4933f8[_0x2235('0x6')](_0x28ad50),_0x5a9bef=!0x0);}return _0x5a9bef;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c62=['enableCommand','afterInit','TrackChangesEditing','plugins','get','editor','redo'];(function(_0x2a3d6a,_0x1c62aa){const _0x254a02=function(_0x519984){while(--_0x519984){_0x2a3d6a['push'](_0x2a3d6a['shift']());}};_0x254a02(++_0x1c62aa);}(_0x1c62,0x115));const _0x254a=function(_0x2a3d6a,_0x1c62aa){_0x2a3d6a=_0x2a3d6a-0x0;let _0x254a02=_0x1c62[_0x2a3d6a];return _0x254a02;};import{Plugin as _0x55741f}from'ckeditor5/src/core';export default class It extends _0x55741f{[_0x254a('0x4')](){const _0x5a40d4=this[_0x254a('0x1')],_0x88f816=_0x5a40d4['plugins'][_0x254a('0x0')](_0x254a('0x5'));_0x5a40d4[_0x254a('0x6')]['has']('UndoEditing')&&(_0x88f816[_0x254a('0x3')]('undo'),_0x88f816[_0x254a('0x3')](_0x254a('0x2')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ca3=['name','includes','ck-suggestion-marker--active','getItems','listIndent','createUIElement','markerName','push','schema','createRangeOn','toViewPosition','markerRange','isLimit','span','mapper','addClass','model','ck-suggestion-marker-','getWalker','listItem','type','TrackChangesEditing','hasAttribute','element','nextSibling','get','previousPosition','item','getAttribute','writer'];(function(_0x3c22c1,_0x3ca38c){const _0x33d0ac=function(_0x328736){while(--_0x328736){_0x3c22c1['push'](_0x3c22c1['shift']());}};_0x33d0ac(++_0x3ca38c);}(_0x3ca3,0x160));const _0x33d0=function(_0x3c22c1,_0x3ca38c){_0x3c22c1=_0x3c22c1-0x0;let _0x33d0ac=_0x3ca3[_0x3c22c1];return _0x33d0ac;};export function getRangesWithAttribute(_0x4d17c8,_0x418ada,_0x4fc680){const _0x484c6e=[];for(const _0x25fa09 of _0x418ada[_0x33d0('0xb')]())_0x25fa09[_0x33d0('0x0')](_0x4d17c8)&&_0x484c6e[_0x33d0('0xf')](_0x4fc680[_0x33d0('0x11')](_0x25fa09));return _0x484c6e;}export function getElementsAffectedByListItemRename(_0x27913e){const _0x5e3cf2=[];if(_0x27913e['is'](_0x33d0('0x1'),_0x33d0('0x1b'))){let _0x187aa6=_0x27913e[_0x33d0('0x2')];for(;_0x187aa6&&_0x187aa6['is'](_0x33d0('0x1'),_0x33d0('0x1b'))&&_0x187aa6[_0x33d0('0x6')](_0x33d0('0xc'))>0x0;)_0x5e3cf2[_0x33d0('0xf')](_0x187aa6),_0x187aa6=_0x187aa6[_0x33d0('0x2')];}return _0x5e3cf2;}export function downcastSplitMergeMarker(_0x1e1acb,_0x27a490,{showActiveMarker:_0x590cd7=!0x0}={}){const _0x4ff228=_0x1e1acb['plugins'][_0x33d0('0x3')](_0x33d0('0x1d'));return(_0x13c3ce,_0x544151,_0x1a3a83)=>{if(!_0x1a3a83['consumable']['test'](_0x544151[_0x33d0('0x13')],_0x13c3ce[_0x33d0('0x8')]))return;const _0x22b365=_0x544151[_0x33d0('0x13')][_0x33d0('0x1a')](),_0x209b5b=_0x544151['markerRange']['start'],_0x1ae69c=_0x1e1acb[_0x33d0('0x18')][_0x33d0('0x10')];let _0x131186=null,_0x4809f3=null,_0x1275b4=!0x1,_0x2c8b67=!0x1;for(const _0x335761 of _0x22b365){const _0x427205=_0x335761[_0x33d0('0x5')];_0x1275b4=_0x1275b4||_0x1ae69c['isContent'](_0x427205);const _0x5c38fe=_0x1a3a83[_0x33d0('0x16')]['toViewElement'](_0x427205);if(_0x5c38fe&&_0x5c38fe['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x335761[_0x33d0('0x1c')]&&(_0x1ae69c['isBlock'](_0x427205)&&!_0x1ae69c[_0x33d0('0x14')](_0x427205)&&(_0x427205['nextSibling']||_0x209b5b['isAtEnd']?_0x131186&&_0x131186['parent']==_0x427205||(_0x131186=_0x427205,_0x1c4e55(_0x335761[_0x33d0('0x4')]),_0x2c8b67=!0x0):_0x4809f3=_0x4809f3||_0x335761[_0x33d0('0x4')]));}function _0x1c4e55(_0x17e4c7){const _0x5c43e2=_0x1a3a83[_0x33d0('0x7')][_0x33d0('0xd')](_0x33d0('0x15'),{'class':_0x33d0('0x19')+_0x27a490}),_0x1878d0=_0x1a3a83[_0x33d0('0x16')][_0x33d0('0x12')](_0x17e4c7);_0x590cd7&&_0x4ff228['activeMarkers'][_0x33d0('0x9')](_0x544151[_0x33d0('0xe')])&&_0x1a3a83[_0x33d0('0x7')][_0x33d0('0x17')](_0x33d0('0xa'),_0x5c43e2),_0x1a3a83[_0x33d0('0x7')]['insert'](_0x1878d0,_0x5c43e2),_0x1a3a83[_0x33d0('0x16')]['bindElementToMarker'](_0x5c43e2,_0x544151[_0x33d0('0xe')]);}_0x1275b4||_0x2c8b67||!_0x4809f3||_0x1c4e55(_0x4809f3);};}
|