@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231025.0 → 0.0.0-nightly-20231027.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/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 _0x269b=['findAncestor','forceDefaultExecution','isInContent','dataDowncast','last','getAttributes','getColumns','getSelectionAffectedTableCells','stop','createPositionBefore','wrap','insertColumns','subType','paragraph','registerDescriptionCallback','rootName','_splitMarkerName','keys','options','author','createRangeIn','nextSibling','tableCellPadding','getChildren','set','getChild','differ','tableCellVerticalAlignment','accept','registerPostFixer','registerCustomCallback','ck-suggestion-marker--active','startsWith','entries','conversion','start','position','cells','plugins','tableCellBorderStyle','name','insertionRanges','columnInsertionIndexes','suggestion-td','insertRows','getChanges','first','endRow','suggestionUnloaded','add','TableUtils','push','createElement','tableCellBorderWidth','getRange','getItems','tableCellBackgroundColor','isEmpty','document','map','hasSuggestion','markerToHighlight','afterInit','_descriptionFactory','*Replace\x20table\x20cells*','requires','listenTo','low','deletion','end','trackChanges','newRange','filter','markers','rowInsertionRanges','markerName','tableCellBorderColor','model','some','tablePasteChainId','clipboardOutput','find','getContainedElement','suggestion','tablePasteColumn','getRows','type','Users','editingDowncast','getShiftedBy','getAllAdjacentSuggestions','remove','fill','_getCoordsForCells','locale','createTableWalker','row','TrackChangesEditing','getMarkers','getChangedMarkers','TableClipboard','reduce','tablePasteRow','move','tablePasteCell','removeColumns','documentSelection','root','tableCellSuggestion','suggestionLoaded','element','columns','commands','column','attributes','isEqual','insert','has','_tablePostFixingSubtypes','unwrap','fromEntries','removeMarkers','join','table','$graveyard','rowInsertionIndexes','discard','markerAttributes','ck-suggestion-marker','setAttributes','containsRange','insertContent','formatBlock','getSuggestion','change','activeMarkers','markMultiRangeBlockFormat','endColumn','_suggestionFactory','insertion','schema','includes','from','getRanges','register','get','showSuggestionHighlights','_createdBatches','_isForcedDefaultExecutionBlock','setAttribute','redo','getSuggestionCallback','length','oldRange','tablePaste','removeMarker','getSuggestions','markMultiRangeInsertion','high','_replaceTableSlotCell','batch','getColumnIndexes','tableCell','editor','removeRows','createRangeOn','tableCellHorizontalAlignment','view','previous','for'];(function(_0x8522eb,_0x269bb3){const _0x694c88=function(_0x359d17){while(--_0x359d17){_0x8522eb['push'](_0x8522eb['shift']());}};_0x694c88(++_0x269bb3);}(_0x269b,0x86));const _0x694c=function(_0x8522eb,_0x269bb3){_0x8522eb=_0x8522eb-0x0;let _0x694c88=_0x269b[_0x8522eb];return _0x694c88;};import{getTranslation as _0x908e9d}from'../utils/common-translations';import{Plugin as _0x2eaa5f}from'ckeditor5/src/core';import{uid as _0x5b32ea,priorities as _0x2feb0a}from'ckeditor5/src/utils';import _0xa7eb8f from'./table';const le=[_0x694c('0x59'),_0x694c('0x70'),_0x694c('0x4b'),_0x694c('0x20'),_0x694c('0x3f'),_0x694c('0x5c'),_0x694c('0x3a')],ae=Object['fromEntries'](le[_0x694c('0x5f')](_0x359144=>[_0x359144,null]));export default class wt extends _0x2eaa5f{static get[_0x694c('0x65')](){return[_0xa7eb8f];}[_0x694c('0x62')](){const _0x47d3f7=this[_0x694c('0x1d')];if(!_0x47d3f7[_0x694c('0x4a')]['has'](_0x694c('0x88')))return;const _0x514fc0=_0x47d3f7['plugins'][_0x694c('0xb')](_0x694c('0x85')),_0x2c6dfd=_0x47d3f7[_0x694c('0x4a')][_0x694c('0xb')](_0x694c('0x56')),_0x9c4fc9=_0x47d3f7[_0x694c('0x4a')][_0x694c('0xb')](_0xa7eb8f),_0x3fefb6=_0x47d3f7[_0x694c('0x4a')][_0x694c('0xb')](_0x694c('0x88'));_0x9c4fc9[_0x694c('0x9a')][_0x694c('0x57')]('tablePasteRow','tablePasteColumn'),_0x47d3f7['model'][_0x694c('0x6')][_0x694c('0xa')]('tableCellSuggestion',{'allowIn':_0x694c('0x1c'),'allowContentOf':_0x694c('0x1c'),'isLimit':!0x0}),_0x47d3f7[_0x694c('0x46')]['elementToElement']({'model':_0x694c('0x90'),'view':'suggestion-td'});let _0x5ce603=null;_0x47d3f7[_0x694c('0x71')]['on'](_0x694c('0xa7'),(_0x422a34,_0xbd14f1)=>{const [_0x1da4ee,_0x580700]=_0xbd14f1,_0x3b4fc3=_0xbd14f1[_0xbd14f1[_0x694c('0x12')]-0x1];_0x3b4fc3&&_0x3b4fc3[_0x694c('0x25')]||_0x514fc0[_0x694c('0xe')]||this['editor']['commands'][_0x694c('0xb')](_0x694c('0x6a'))['value']&&function(_0x43692d,_0x474258,_0x17709e,_0x5da1c7,_0x49968a){if(_0x474258&&!_0x474258['is'](_0x694c('0x8e')))return!0x1;const _0x334b45=_0x49968a['getTableIfOnlyTableInContent'](_0x43692d,_0x17709e);if(!_0x334b45||!fe(_0x334b45,void 0x0,_0x5da1c7))return!0x1;const _0x4fc510=_0x5da1c7[_0x694c('0x2b')](_0x17709e[_0x694c('0x5e')]['selection']);if(!_0x4fc510[_0x694c('0x12')])return!0x1;const _0x8c6b50=_0x4fc510[0x0][_0x694c('0x24')](_0x694c('0x9f')),_0x4f4366=_0x5da1c7['getRowIndexes'](_0x4fc510),_0x1761f9=_0x5da1c7[_0x694c('0x1b')](_0x4fc510),_0x12d588={'startRow':_0x4f4366[_0x694c('0x52')],'endRow':_0x4f4366[_0x694c('0x28')],'startColumn':_0x1761f9[_0x694c('0x52')],'endColumn':_0x1761f9['last']};return 0x1==_0x4fc510['length']&&(_0x12d588[_0x694c('0x53')]+=_0x5da1c7[_0x694c('0x79')](_0x334b45)-0x1,_0x12d588[_0x694c('0x3')]+=_0x5da1c7[_0x694c('0x2a')](_0x334b45)-0x1),fe(_0x8c6b50,_0x12d588,_0x5da1c7);}(_0x1da4ee,_0x580700,_0x47d3f7[_0x694c('0x71')],_0x2c6dfd,_0x3fefb6)&&(_0x422a34[_0x694c('0x2c')](),_0x5ce603={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x47d3f7[_0x694c('0x71')][_0x694c('0x0')](()=>{_0x47d3f7[_0x694c('0x71')]['insertContent'](_0xbd14f1[0x0],_0xbd14f1[0x1],_0xbd14f1[0x2],{'forceDefaultExecution':!0x0});const _0x19715b=_0x5b32ea(),{rowInsertionRanges:_0x3f8dc9,columnInsertionRanges:_0x412522,insertionRanges:_0x36f462,deletionRanges:_0xbd1be1,cells:_0x657f74}=_0x5ce603;_0x3f8dc9['length']&&_0x514fc0['markMultiRangeInsertion'](_0x3f8dc9,'tablePasteRow',{'tablePasteChainId':_0x19715b}),_0x412522[_0x694c('0x12')]&&_0x514fc0[_0x694c('0x17')](_0x412522,_0x694c('0x78'),{'tablePasteChainId':_0x19715b}),_0x36f462[_0x694c('0x12')]&&_0x514fc0['markMultiRangeInsertion'](_0x36f462,_0x694c('0x14'),{'tablePasteChainId':_0x19715b,'skipNestingCheck':!0x0}),_0xbd1be1['length']&&_0x514fc0['markMultiRangeDeletion'](_0xbd1be1,_0x694c('0x14'),{'tablePasteChainId':_0x19715b,'skipNestingCheck':!0x0});const _0x518390=_0x514fc0[_0x694c('0x2')](_0x657f74[_0x694c('0x5f')](({element:_0x1387fc})=>_0x1387fc),{'formatGroupId':_0x5b32ea()},[],_0x694c('0x8c'),{'tablePasteChainId':_0x19715b});if(_0x518390){const _0x39cd4b=_0x518390[_0x694c('0x86')](),_0x152a4d=[];for(const {element:_0x31d4ef,attributes:_0xf253a0}of _0x657f74){if(!_0xf253a0)continue;const _0x13d97d=_0x47d3f7['model'][_0x694c('0x1f')](_0x31d4ef),_0x50a5ac=_0x39cd4b['find'](_0x306dd5=>_0x306dd5[_0x694c('0x5a')]()['isEqual'](_0x13d97d));_0x50a5ac&&_0x152a4d['push']([_0x50a5ac[_0x694c('0x4c')],_0xf253a0]);}_0x152a4d[_0x694c('0x12')]&&_0x518390[_0x694c('0xf')](_0x694c('0xa3'),Object[_0x694c('0x9c')](_0x152a4d));}_0x5ce603=null;}));},{'priority':_0x2feb0a[_0x694c('0x18')]+0xa}),_0x47d3f7[_0x694c('0x4a')]['get'](_0x694c('0x88'))['on'](_0x694c('0x19'),(_0x48dee3,_0x5ce9d7)=>{const [_0x128f78,_0x13aee2,,_0x315028]=_0x5ce9d7;if(!_0x5ce603)return;_0x48dee3[_0x694c('0x2c')]();const _0x581843=_0x128f78['cell'],_0x20cfb2=_0x13aee2,_0x4ebd7d=ce(_0x581843),_0x287b9d=ce(_0x20cfb2);_0x48dee3['return']=_0x581843;let _0x5cc5a7=null,_0x817209=null;if(_0x287b9d||_0x4ebd7d){if(_0x4ebd7d&&!_0x287b9d){_0x315028[_0x694c('0x7f')](_0x581843['getChild'](0x0));for(const _0x15a4e6 of Array['from'](_0x20cfb2[_0x694c('0x3b')]()))_0x315028[_0x694c('0x98')](_0x15a4e6,_0x581843,_0x694c('0x69'));const _0xd2fd2b=_0x5ce603[_0x694c('0xa1')]['includes'](_0x128f78[_0x694c('0x84')]),_0x12fac0=_0x5ce603[_0x694c('0x4e')]['includes'](_0x128f78[_0x694c('0x95')]);_0xd2fd2b||_0x12fac0||(_0x5cc5a7=_0x315028['createRangeIn'](_0x581843));}else _0x287b9d&&!_0x4ebd7d&&(_0x817209=_0x315028[_0x694c('0x38')](_0x581843));}else{const _0x52c517=_0x315028[_0x694c('0x58')](_0x694c('0x90')),_0x4227ed=_0x315028[_0x694c('0x58')](_0x694c('0x90'));_0x315028[_0x694c('0x2e')](_0x315028[_0x694c('0x38')](_0x581843),_0x4227ed),_0x315028['insert'](_0x52c517,_0x581843,0x0);for(const _0x1a287d of Array[_0x694c('0x8')](_0x20cfb2[_0x694c('0x3b')]()))_0x315028[_0x694c('0x98')](_0x1a287d,_0x52c517,_0x694c('0x69'));_0x5cc5a7=_0x315028[_0x694c('0x1f')](_0x52c517),_0x817209=_0x315028[_0x694c('0x1f')](_0x4227ed);}const _0x483711=Array[_0x694c('0x8')](_0x20cfb2[_0x694c('0x29')]())[_0x694c('0x6c')](([_0x11b717])=>le[_0x694c('0x7')](_0x11b717));_0x5ce603[_0x694c('0x49')]['push']({'element':_0x581843,'attributes':_0x483711[_0x694c('0x12')]?Object[_0x694c('0x9c')](_0x483711):null}),_0x5cc5a7&&_0x5ce603[_0x694c('0x4d')][_0x694c('0x57')](_0x5cc5a7),_0x817209&&_0x5ce603['deletionRanges'][_0x694c('0x57')](_0x817209);},{'priority':_0x694c('0x18')}),_0x2c6dfd['on'](_0x694c('0x2f'),(_0x2b15af,_0x165a45)=>{const [_0x2f5314,_0x328939={}]=_0x165a45;if(!_0x5ce603)return;const _0x314c93=_0x328939['at']||0x0,_0x50a65a=_0x328939[_0x694c('0x93')]||0x1;_0x5ce603[_0x694c('0x4e')]=new Array(_0x50a65a)[_0x694c('0x80')](_0x314c93)[_0x694c('0x5f')]((_0x397098,_0x392871)=>_0x397098+_0x392871);for(const {cell:_0x342106}of _0x2c6dfd[_0x694c('0x83')](_0x2f5314,{'startColumn':_0x314c93,'endColumn':_0x314c93+_0x50a65a-0x1}))_0x5ce603['columnInsertionRanges'][_0x694c('0x57')](_0x47d3f7[_0x694c('0x71')][_0x694c('0x1f')](_0x342106));},{'priority':'low'}),_0x2c6dfd['on'](_0x694c('0x50'),(_0x4435f5,_0x416074)=>{const [_0x1f8bb4,_0x5f4462={}]=_0x416074;if(!_0x5ce603)return;const _0x50daef=_0x5f4462['at']||0x0,_0xfa62a2=_0x5f4462['rows']||0x1;_0x5ce603[_0x694c('0xa1')]=new Array(_0xfa62a2)['fill'](_0x50daef)['map']((_0x17a2e9,_0x1d6c10)=>_0x17a2e9+_0x1d6c10);for(const {cell:_0x2aef0f}of _0x2c6dfd[_0x694c('0x83')](_0x1f8bb4,{'startRow':_0x50daef,'endRow':_0x50daef+_0xfa62a2-0x1}))_0x5ce603[_0x694c('0x6e')]['push'](_0x47d3f7[_0x694c('0x71')]['createRangeOn'](_0x2aef0f));},{'priority':_0x694c('0x67')}),_0x514fc0[_0x694c('0x63')][_0x694c('0x32')](_0x450c83=>{if(_0x450c83['subType']&&_0x450c83['subType'][_0x694c('0x44')](_0x694c('0x14')))return _0x450c83[_0x694c('0x22')]?{}:{'type':_0x694c('0x5'),'content':_0x908e9d(_0x47d3f7[_0x694c('0x82')],_0x694c('0x64'))};});const _0x4fcf5b=()=>!0x1;for(const _0x34a3fc of['tablePaste',_0x694c('0x78'),_0x694c('0x8a'),'tablePasteCell'])_0x514fc0['_suggestionFactory'][_0x694c('0x42')](_0x694c('0x5'),_0x34a3fc,_0x694c('0x9e'),_0x4fcf5b),_0x514fc0[_0x694c('0x4')][_0x694c('0x42')](_0x694c('0x68'),_0x34a3fc,'join',_0x4fcf5b),_0x514fc0[_0x694c('0x4')][_0x694c('0x42')](_0x694c('0xa8'),_0x34a3fc,_0x694c('0x9e'),_0x4fcf5b);_0x514fc0[_0x694c('0x4')][_0x694c('0x42')](_0x694c('0xa8'),_0x694c('0x8c'),_0x694c('0xa2'),_0x4fcf5b),_0x514fc0['_suggestionFactory'][_0x694c('0x42')](_0x694c('0xa8'),'tablePasteCell',_0x694c('0x40'),(_0x58862f,_0x2604f7,_0x5bae72)=>{const _0x43ea0e=_0x58862f['map'](_0x1961ef=>_0x1961ef[_0x694c('0x76')]())[_0x694c('0x6c')](_0x3aac23=>_0x3aac23),_0x1578db=new Map(_0x43ea0e[_0x694c('0x5f')](_0x582bc3=>[_0x582bc3,null]));if(_0x5ce603)for(const {element:_0x2c72cd,attributes:_0x5b1c5c}of _0x5ce603['cells'])_0x5b1c5c&&_0x1578db[_0x694c('0x3c')](_0x2c72cd,_0x5b1c5c);else{if(_0x5bae72&&_0x5bae72['markerAttributes'])for(const [_0x384c40,_0x571ba9]of Object[_0x694c('0x45')](_0x5bae72[_0x694c('0xa3')])){const _0xb1ce48=_0x47d3f7['model'][_0x694c('0x6d')][_0x694c('0xb')](_0x384c40),_0x199fbe=_0xb1ce48?_0xb1ce48[_0x694c('0x5a')]()['getContainedElement']():null;_0x199fbe&&_0x1578db[_0x694c('0x3c')](_0x199fbe,_0x571ba9);}}_0x47d3f7[_0x694c('0x71')][_0x694c('0x0')](_0x47253d=>{for(const [_0xa16c2e,_0x175253]of _0x1578db)_0x47253d[_0x694c('0xa5')]({...ae,..._0x175253},_0xa16c2e);});});const _0x74399c=(_0x65ea9,_0x3055ce)=>{_0x514fc0['_suggestionFactory'][_0x694c('0x42')](_0x65ea9,_0x694c('0x14'),_0x3055ce,(_0x36b179,_0x1fc5c4,_0x24f548)=>{_0x47d3f7[_0x694c('0x71')][_0x694c('0x0')](_0x3f13e8=>{const _0x4994f7=[];for(const _0x2dbca1 of _0x36b179){const _0x17e0f8=_0x2dbca1[_0x694c('0x47')]['nodeAfter'];_0x17e0f8['is'](_0x694c('0x92'),'tableCellSuggestion')&&_0x4994f7['push'](_0x17e0f8);}_0x514fc0['_suggestionFactory'][_0x694c('0x11')](_0x65ea9,null,_0x3055ce)(_0x36b179,_0x1fc5c4,_0x24f548);for(const _0x365088 of _0x4994f7)_0x694c('0xa0')!=_0x365088[_0x694c('0x8f')][_0x694c('0x33')]&&_0x3f13e8[_0x694c('0x9b')](_0x365088);});});};_0x74399c('insertion',_0x694c('0x40')),_0x74399c(_0x694c('0x5'),'discard'),_0x74399c('deletion',_0x694c('0x40')),_0x74399c(_0x694c('0x68'),_0x694c('0xa2')),_0x514fc0[_0x694c('0x4')]['registerCustomCallback'](_0x694c('0x5'),_0x694c('0x8a'),_0x694c('0xa2'),_0x5175d0=>{const _0x368ea0=_0x5175d0['map'](_0xc2e85b=>_0xc2e85b[_0x694c('0x76')]()),_0xbb7df7=_0x368ea0[0x0][_0x694c('0x24')]('table'),{minRow:_0x4c4f3e,maxRow:_0x3ad63c}=_0x9c4fc9[_0x694c('0x81')](_0x368ea0);_0x2c6dfd[_0x694c('0x1e')](_0xbb7df7,{'at':_0x4c4f3e,'rows':_0x3ad63c-_0x4c4f3e+0x1});}),_0x514fc0[_0x694c('0x4')]['registerCustomCallback'](_0x694c('0x5'),_0x694c('0x78'),'discard',_0x145a27=>{const _0x1a489c=_0x145a27['map'](_0x323440=>_0x323440['getContainedElement']()),_0x5b77a3=_0x1a489c[0x0][_0x694c('0x24')]('table'),{minColumn:_0x4e401f,maxColumn:_0x727652}=_0x9c4fc9[_0x694c('0x81')](_0x1a489c);_0x2c6dfd[_0x694c('0x8d')](_0x5b77a3,{'at':_0x4e401f,'columns':_0x727652-_0x4e401f+0x1});});const _0x2270b0=(_0x244224,_0x559dec)=>{if(!_0x559dec[_0x694c('0x30')]||!_0x559dec['subType'][_0x694c('0x44')](_0x694c('0x14')))return;const _0x514def=_0x559dec[_0x694c('0x96')][_0x694c('0x73')],_0x4181e5=_0x514fc0[_0x694c('0x16')]()[_0x694c('0x6c')](_0x1fbc9=>_0x1fbc9['isInContent']&&_0x1fbc9[_0x694c('0x96')]&&_0x1fbc9['attributes'][_0x694c('0x73')]==_0x514def);_0x4181e5['length']&&_0x559dec[_0x694c('0x7e')]()[_0x694c('0x12')]!=_0x4181e5['length']&&_0x4181e5[_0x694c('0x89')]((_0x55bd64,_0x10a684)=>(_0x55bd64['next']=_0x10a684,_0x10a684['previous']=_0x55bd64,_0x10a684));};function _0x434bab(_0x3c909d,_0x3a876e=!0x0){const {id:_0x450702}=_0x514fc0[_0x694c('0x34')](_0x3c909d[_0x694c('0x6f')]),_0x161003=[_0x694c('0xa4'),'ck-suggestion-marker-insertion'],_0x5cfaf5=_0x514fc0[_0x694c('0x1')]['includes'](_0x3c909d[_0x694c('0x6f')]);return _0x5cfaf5&&_0x161003[_0x694c('0x57')](_0x694c('0x43')),{'classes':_0x161003,'attributes':{'data-suggestion':_0x450702},'priority':_0x5cfaf5&&_0x3a876e?0xbc2:0xbb8};}_0x514fc0['on'](_0x694c('0x91'),_0x2270b0,{'priority':_0x694c('0x18')}),_0x514fc0['on'](_0x694c('0x54'),_0x2270b0,{'priority':_0x694c('0x18')}),_0x47d3f7['model'][_0x694c('0x5e')]['registerPostFixer'](()=>{let _0x5b3b88=!0x1;const _0x14d45a=Array[_0x694c('0x8')](_0x47d3f7[_0x694c('0x71')]['document'][_0x694c('0x3e')][_0x694c('0x87')]());for(const {name:_0x3e2dbe,data:_0x51021f}of _0x14d45a){const {group:_0x3b634b,type:_0x32037c,id:_0x466adf}=_0x514fc0[_0x694c('0x34')](_0x3e2dbe);if('suggestion'!=_0x3b634b||'deletion'!=_0x32037c||_0x51021f[_0x694c('0x13')])continue;if(!_0x514fc0[_0x694c('0x60')](_0x466adf))continue;const _0x4d0696=_0x514fc0[_0x694c('0xa9')](_0x466adf)['getRanges'](),_0x42af28=_0x47d3f7['plugins'][_0x694c('0xb')](_0x694c('0x7b'))['me'];for(const _0x4f01f0 of _0x514fc0[_0x694c('0x16')]()){if(!_0x4f01f0[_0x694c('0x26')]||_0x4f01f0[_0x694c('0x37')]!=_0x42af28)continue;if(_0x694c('0xa8')!=_0x4f01f0['type']||_0x694c('0x8c')!=_0x4f01f0[_0x694c('0x30')])continue;if(_0x4f01f0[_0x694c('0x9')]()['every'](_0x347018=>_0x4d0696[_0x694c('0x72')](_0x414c6d=>_0x414c6d[_0x694c('0xa6')](_0x347018,!0x0))))for(const _0x3796aa of _0x4f01f0['getAllAdjacentSuggestions']())_0x3796aa[_0x694c('0x26')]&&(_0x3796aa[_0x694c('0xa2')](),_0x5b3b88=!0x0);}}return _0x5b3b88;}),_0x47d3f7[_0x694c('0x71')][_0x694c('0x5e')]['registerPostFixer'](_0x2d34e2=>{const _0x1326c4=_0x47d3f7[_0x694c('0x94')]['get'](_0x694c('0x10'));if(!_0x1326c4||!_0x1326c4[_0x694c('0xd')][_0x694c('0x99')](_0x2d34e2[_0x694c('0x1a')]))return!0x1;let _0xd2a0ac=!0x1;const _0x119f10=_0x47d3f7[_0x694c('0x4a')][_0x694c('0xb')]('Users')['me'],_0x427499=_0x47d3f7['model'][_0x694c('0x5e')][_0x694c('0x3e')][_0x694c('0x51')](),_0x457682=Array[_0x694c('0x8')](_0x47d3f7['model'][_0x694c('0x5e')][_0x694c('0x3e')][_0x694c('0x87')]())[_0x694c('0x6c')](({name:_0x4499c0,data:_0x2da045})=>{const {group:_0x22e28e,subType:_0x83c4a2,authorId:_0x3136fc}=_0x514fc0['_splitMarkerName'](_0x4499c0);return _0x694c('0x77')==_0x22e28e&&'tablePaste'==_0x83c4a2&&_0x3136fc==_0x119f10['id']&&!_0x2da045[_0x694c('0x13')];});for(const _0x301358 of _0x427499){if(_0x694c('0x98')!=_0x301358[_0x694c('0x7a')]||'tableCellSuggestion'!=_0x301358[_0x694c('0x4c')]||0x1!=_0x301358[_0x694c('0x12')])continue;const _0x19a2dc=_0x2d34e2['createRange'](_0x301358['position'],_0x301358[_0x694c('0x48')][_0x694c('0x7d')](0x1));if(!_0x457682[_0x694c('0x75')](({data:_0x4f9acc})=>_0x4f9acc[_0x694c('0x6b')][_0x694c('0x97')](_0x19a2dc)))for(const {name:_0x3cae99,data:_0x3f3c52}of _0x457682)if(_0x19a2dc[_0x694c('0xa6')](_0x3f3c52['newRange'])){_0x2d34e2['updateMarker'](_0x3cae99,{'range':_0x19a2dc}),_0xd2a0ac=!0x0;break;}}return _0xd2a0ac;}),_0x47d3f7[_0x694c('0x71')][_0x694c('0x5e')][_0x694c('0x41')](_0x3260fe=>{let _0x23b6c9=!0x1;const _0x2337fa=_0x47d3f7[_0x694c('0x4a')]['get'](_0x694c('0x7b'))['me'],_0xd1b280=_0x514fc0['getSuggestions']()[_0x694c('0x6c')](_0x49d22e=>_0x49d22e[_0x694c('0x26')]&&_0x49d22e[_0x694c('0x37')]==_0x2337fa),_0x505896=new Set(),_0x1e8120=new Set();for(const _0x1411f1 of _0xd1b280)if(_0x694c('0x14')==_0x1411f1[_0x694c('0x30')])for(const _0x104a30 of _0x1411f1[_0x694c('0x86')]()){const _0x14f1a8=_0x104a30[_0x694c('0x5a')]()['getContainedElement']();if(_0x14f1a8){if(_0x14f1a8['is'](_0x694c('0x92'),_0x694c('0x90'))&&ce(_0x14f1a8)){_0x1411f1[_0x694c('0x15')](_0x104a30[_0x694c('0x4c')]),_0x505896[_0x694c('0x55')](_0x14f1a8),_0x23b6c9=!0x0;const _0x35500b=_0x14f1a8[_0x694c('0x39')],_0x359ee6=_0x14f1a8['previousSibling'],_0x423912=_0x35500b&&_0x35500b['is'](_0x694c('0x92'),'tableCellSuggestion'),_0x2adfdf=_0x359ee6&&_0x359ee6['is'](_0x694c('0x92'),_0x694c('0x90'));_0x423912&&!_0x505896['has'](_0x35500b)&&_0x1e8120[_0x694c('0x55')](_0x35500b),_0x2adfdf&&!_0x505896[_0x694c('0x99')](_0x359ee6)&&_0x1e8120[_0x694c('0x55')](_0x359ee6);}else _0x14f1a8['is'](_0x694c('0x92'),'paragraph')&&_0x14f1a8[_0x694c('0x5d')]&&(_0x1411f1[_0x694c('0x15')](_0x104a30[_0x694c('0x4c')]),_0x23b6c9=!0x0);}}else{if(_0x694c('0x8c')==_0x1411f1[_0x694c('0x30')]){if(!_0x1411f1[_0x694c('0x96')]||!_0x1411f1[_0x694c('0x96')][_0x694c('0x73')])continue;const _0x3daaa4=_0x1411f1[_0x694c('0x96')][_0x694c('0xa3')];if(_0x3daaa4&&Object[_0x694c('0x35')](_0x3daaa4)[_0x694c('0x12')])continue;const _0x4f819e=_0x1411f1[_0x694c('0x96')]['tablePasteChainId'];let _0x15fa21=!0x0,_0xd9ecaf=!0x0;for(const _0x509fb0 of _0xd1b280)if(_0x509fb0[_0x694c('0x30')]&&_0x509fb0['subType']['startsWith'](_0x694c('0x14'))){if(!_0x509fb0['attributes']['tablePasteChainId']){_0xd9ecaf=!0x1;break;}if(_0x509fb0['id']!=_0x1411f1['id']&&_0x509fb0[_0x694c('0x96')][_0x694c('0x73')]==_0x4f819e){_0x15fa21=!0x1;break;}}_0xd9ecaf&&_0x15fa21&&(_0x1411f1[_0x694c('0x9d')](),_0x23b6c9=!0x0);}}for(const _0x535273 of _0x505896)_0x3260fe[_0x694c('0x7f')](_0x535273);for(const _0x280817 of _0x1e8120)_0x3260fe[_0x694c('0x9b')](_0x280817);return _0x23b6c9;}),_0x47d3f7['conversion'][_0x694c('0x23')](_0x694c('0x7c'))[_0x694c('0x61')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5a348e,_0x48e694)=>_0x434bab(_0x5a348e),'converterPriority':'high'}),_0x47d3f7['conversion'][_0x694c('0x23')](_0x694c('0x27'))['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x221275,_0x12e8f7)=>_0x12e8f7[_0x694c('0x36')][_0x694c('0xc')]?_0x434bab(_0x221275,!0x1):null,'converterPriority':_0x694c('0x18')});const _0x59dfd0=_0x47d3f7['editing'][_0x694c('0x21')];this[_0x694c('0x66')](_0x59dfd0[_0x694c('0x5e')],_0x694c('0x74'),(_0x280249,_0x913ce3)=>{const _0x99fc36=[];for(const _0x10cc52 of _0x59dfd0[_0x694c('0x38')](_0x913ce3['content'])[_0x694c('0x5b')]())_0x10cc52['is'](_0x694c('0x92'),_0x694c('0x4f'))&&_0x99fc36[_0x694c('0x57')](_0x10cc52);_0x59dfd0[_0x694c('0x0')](_0x3bf723=>{for(const _0x115bf3 of _0x99fc36)_0x3bf723[_0x694c('0x8b')](_0x3bf723[_0x694c('0x38')](_0x115bf3),_0x3bf723[_0x694c('0x2d')](_0x115bf3)),_0x3bf723[_0x694c('0x7f')](_0x115bf3);});});}}function ce(_0xadb2fd){if(_0xadb2fd[_0x694c('0x5d')])return!0x0;const _0x5c3c31=_0xadb2fd[_0x694c('0x3d')](0x0);return _0x5c3c31['is'](_0x694c('0x92'),_0x694c('0x31'))&&_0x5c3c31[_0x694c('0x5d')];}function fe(_0x17cf55,_0x2f7e1c={},_0x27dfca){for(const {isAnchor:_0x513b4f,cellHeight:_0x59a018,cellWidth:_0x10eee8}of _0x27dfca['createTableWalker'](_0x17cf55,{'includeAllSlots':!0x0,..._0x2f7e1c}))if(!_0x513b4f||0x1!=_0x59a018||0x1!=_0x10eee8)return!0x1;return!0x0;}
|
|
23
|
+
const _0x57bd=['isInContent','Users','getColumnIndexes','_getCoordsForCells','table','next','low','markerToHighlight','removeMarkers','add','some','subType','getRanges','insertion','getAllAdjacentSuggestions','getShiftedBy','tableCellBorderStyle','_splitMarkerName','editor','getAttributes','createTableWalker','findAncestor','view','columnInsertionRanges','tablePasteCell','keys','suggestionLoaded','containsRange','registerPostFixer','$graveyard','getTableIfOnlyTableInContent','conversion','suggestionUnloaded','getSelectionAffectedTableCells','newRange','activeMarkers','tableCellSuggestion','rootName','move','set','suggestion','getSuggestionCallback','options','createRangeOn','removeMarker','model','value','last','position','map','change','entries','isEqual','elementToElement','markMultiRangeInsertion','selection','tablePasteRow','batch','cell','getRange','registerCustomCallback','first','_isForcedDefaultExecutionBlock','nodeAfter','commands','ck-suggestion-marker-insertion','paragraph','insertionRanges','removeRows','get','_replaceTableSlotCell','deletion','find','fromEntries','editingDowncast','fill','getRows','formatBlock','TableClipboard','forceDefaultExecution','oldRange','getChildren','tablePaste','listenTo','length','content','insertRows','endColumn','setAttribute','suggestion:formatBlock:tablePasteCell','insertContent','ck-suggestion-marker--active','markerName','hasSuggestion','markerAttributes','reduce','getSuggestion','endRow','tableCellHorizontalAlignment','setAttributes','tableCellPadding','column','remove','getSuggestions','insert','start','getChild','updateMarker','ck-suggestion-marker','discard','tableCellBackgroundColor','getChanges','getColumns','high','dataDowncast','cells','removeColumns','root','author','unwrap','_suggestionFactory','element','for','columns','showSuggestionHighlights','isEmpty','differ','getMarkers','documentSelection','tablePasteColumn','createRangeIn','has','wrap','insertColumns','registerDescriptionCallback','schema','afterInit','rowInsertionRanges','_createdBatches','name','createPositionBefore','rows','columnInsertionIndexes','from','push','register','*Replace\x20table\x20cells*','tablePasteChainId','return','previous','startsWith','join','editing','tableCell','_descriptionFactory','getChangedMarkers','end','suggestion-td','plugins','document','every','getContainedElement','tableCellBorderColor','rowInsertionIndexes','attributes','markers','includes','type','TableUtils','filter'];(function(_0x13f805,_0x57bd61){const _0x1b54b1=function(_0xfd27be){while(--_0xfd27be){_0x13f805['push'](_0x13f805['shift']());}};_0x1b54b1(++_0x57bd61);}(_0x57bd,0xb7));const _0x1b54=function(_0x13f805,_0x57bd61){_0x13f805=_0x13f805-0x0;let _0x1b54b1=_0x57bd[_0x13f805];return _0x1b54b1;};import{getTranslation as _0x564313}from'../utils/common-translations';import{Plugin as _0x4d94e8}from'ckeditor5/src/core';import{uid as _0x38df7e,priorities as _0x262a71}from'ckeditor5/src/utils';import _0xb46687 from'./table';const le=['tableCellBorderWidth',_0x1b54('0x95'),_0x1b54('0x3'),_0x1b54('0x55'),'tableCellVerticalAlignment',_0x1b54('0x61'),_0x1b54('0x57')],ae=Object['fromEntries'](le[_0x1b54('0x24')](_0x37686a=>[_0x37686a,null]));export default class wt extends _0x4d94e8{static get['requires'](){return[_0xb46687];}[_0x1b54('0x7b')](){const _0x2cbfd8=this[_0x1b54('0x5')];if(!_0x2cbfd8[_0x1b54('0x91')][_0x1b54('0x76')](_0x1b54('0x41')))return;const _0x2eb947=_0x2cbfd8['plugins']['get']('TrackChangesEditing'),_0x4ab70c=_0x2cbfd8[_0x1b54('0x91')][_0x1b54('0x38')](_0x1b54('0x9b')),_0xffee66=_0x2cbfd8[_0x1b54('0x91')]['get'](_0xb46687),_0x3c0348=_0x2cbfd8[_0x1b54('0x91')][_0x1b54('0x38')](_0x1b54('0x41'));_0xffee66['_tablePostFixingSubtypes']['push']('tablePasteRow',_0x1b54('0x74')),_0x2cbfd8[_0x1b54('0x20')][_0x1b54('0x7a')][_0x1b54('0x84')](_0x1b54('0x17'),{'allowIn':_0x1b54('0x8c'),'allowContentOf':_0x1b54('0x8c'),'isLimit':!0x0}),_0x2cbfd8[_0x1b54('0x12')][_0x1b54('0x28')]({'model':_0x1b54('0x17'),'view':_0x1b54('0x90')});let _0x227022=null;_0x2cbfd8[_0x1b54('0x20')]['on'](_0x1b54('0x4d'),(_0x56b635,_0x97ec77)=>{const [_0x33f2ec,_0x4a4de5]=_0x97ec77,_0x424fc8=_0x97ec77[_0x97ec77[_0x1b54('0x47')]-0x1];_0x424fc8&&_0x424fc8[_0x1b54('0x42')]||_0x2eb947[_0x1b54('0x31')]||this[_0x1b54('0x5')]['commands'][_0x1b54('0x38')]('trackChanges')[_0x1b54('0x21')]&&function(_0x512727,_0x366b85,_0xf8ca6e,_0x3b266e,_0x3cfe86){if(_0x366b85&&!_0x366b85['is'](_0x1b54('0x73')))return!0x1;const _0x3bc2f6=_0x3cfe86[_0x1b54('0x11')](_0x512727,_0xf8ca6e);if(!_0x3bc2f6||!fe(_0x3bc2f6,void 0x0,_0x3b266e))return!0x1;const _0x242b46=_0x3b266e[_0x1b54('0x14')](_0xf8ca6e[_0x1b54('0x92')][_0x1b54('0x2a')]);if(!_0x242b46[_0x1b54('0x47')])return!0x1;const _0x11fa1d=_0x242b46[0x0][_0x1b54('0x8')](_0x1b54('0xa1')),_0x467be7=_0x3b266e['getRowIndexes'](_0x242b46),_0x1f67cd=_0x3b266e[_0x1b54('0x9f')](_0x242b46),_0x252afe={'startRow':_0x467be7[_0x1b54('0x30')],'endRow':_0x467be7['last'],'startColumn':_0x1f67cd[_0x1b54('0x30')],'endColumn':_0x1f67cd[_0x1b54('0x22')]};return 0x1==_0x242b46[_0x1b54('0x47')]&&(_0x252afe[_0x1b54('0x54')]+=_0x3b266e[_0x1b54('0x3f')](_0x3bc2f6)-0x1,_0x252afe[_0x1b54('0x4a')]+=_0x3b266e[_0x1b54('0x63')](_0x3bc2f6)-0x1),fe(_0x11fa1d,_0x252afe,_0x3b266e);}(_0x33f2ec,_0x4a4de5,_0x2cbfd8[_0x1b54('0x20')],_0x4ab70c,_0x3c0348)&&(_0x56b635['stop'](),_0x227022={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2cbfd8['model'][_0x1b54('0x25')](()=>{_0x2cbfd8[_0x1b54('0x20')][_0x1b54('0x4d')](_0x97ec77[0x0],_0x97ec77[0x1],_0x97ec77[0x2],{'forceDefaultExecution':!0x0});const _0x49246c=_0x38df7e(),{rowInsertionRanges:_0x15fbb5,columnInsertionRanges:_0x2180ec,insertionRanges:_0x4bd0df,deletionRanges:_0x425a72,cells:_0x2e5c05}=_0x227022;_0x15fbb5[_0x1b54('0x47')]&&_0x2eb947[_0x1b54('0x29')](_0x15fbb5,_0x1b54('0x2b'),{'tablePasteChainId':_0x49246c}),_0x2180ec['length']&&_0x2eb947[_0x1b54('0x29')](_0x2180ec,_0x1b54('0x74'),{'tablePasteChainId':_0x49246c}),_0x4bd0df[_0x1b54('0x47')]&&_0x2eb947[_0x1b54('0x29')](_0x4bd0df,_0x1b54('0x45'),{'tablePasteChainId':_0x49246c,'skipNestingCheck':!0x0}),_0x425a72[_0x1b54('0x47')]&&_0x2eb947['markMultiRangeDeletion'](_0x425a72,_0x1b54('0x45'),{'tablePasteChainId':_0x49246c,'skipNestingCheck':!0x0});const _0x52487c=_0x2eb947['markMultiRangeBlockFormat'](_0x2e5c05[_0x1b54('0x24')](({element:_0x5aa020})=>_0x5aa020),{'formatGroupId':_0x38df7e()},[],_0x1b54('0xb'),{'tablePasteChainId':_0x49246c});if(_0x52487c){const _0x2f7c2e=_0x52487c[_0x1b54('0x72')](),_0xf06e45=[];for(const {element:_0x732798,attributes:_0x45937f}of _0x2e5c05){if(!_0x45937f)continue;const _0x394dad=_0x2cbfd8['model'][_0x1b54('0x1e')](_0x732798),_0x50c7e6=_0x2f7c2e[_0x1b54('0x3b')](_0x18438b=>_0x18438b[_0x1b54('0x2e')]()[_0x1b54('0x27')](_0x394dad));_0x50c7e6&&_0xf06e45[_0x1b54('0x83')]([_0x50c7e6[_0x1b54('0x7e')],_0x45937f]);}_0xf06e45[_0x1b54('0x47')]&&_0x52487c[_0x1b54('0x4b')](_0x1b54('0x51'),Object[_0x1b54('0x3c')](_0xf06e45));}_0x227022=null;}));},{'priority':_0x262a71[_0x1b54('0x64')]+0xa}),_0x2cbfd8['plugins'][_0x1b54('0x38')](_0x1b54('0x41'))['on'](_0x1b54('0x39'),(_0x1e1517,_0xbd5211)=>{const [_0x17890d,_0x7901e7,,_0x36d640]=_0xbd5211;if(!_0x227022)return;_0x1e1517['stop']();const _0x4f0fe8=_0x17890d[_0x1b54('0x2d')],_0x8dc822=_0x7901e7,_0x552498=ce(_0x4f0fe8),_0x8d32f0=ce(_0x8dc822);_0x1e1517[_0x1b54('0x87')]=_0x4f0fe8;let _0x161e36=null,_0x5dcac0=null;if(_0x8d32f0||_0x552498){if(_0x552498&&!_0x8d32f0){_0x36d640['remove'](_0x4f0fe8[_0x1b54('0x5d')](0x0));for(const _0x7752dd of Array[_0x1b54('0x82')](_0x8dc822[_0x1b54('0x44')]()))_0x36d640[_0x1b54('0x5b')](_0x7752dd,_0x4f0fe8,_0x1b54('0x8f'));const _0xca0676=_0x227022['rowInsertionIndexes']['includes'](_0x17890d['row']),_0x52f545=_0x227022[_0x1b54('0x81')][_0x1b54('0x99')](_0x17890d[_0x1b54('0x58')]);_0xca0676||_0x52f545||(_0x161e36=_0x36d640[_0x1b54('0x75')](_0x4f0fe8));}else _0x8d32f0&&!_0x552498&&(_0x5dcac0=_0x36d640[_0x1b54('0x75')](_0x4f0fe8));}else{const _0x5285a1=_0x36d640['createElement'](_0x1b54('0x17')),_0x5dc16c=_0x36d640['createElement']('tableCellSuggestion');_0x36d640[_0x1b54('0x77')](_0x36d640['createRangeIn'](_0x4f0fe8),_0x5dc16c),_0x36d640[_0x1b54('0x5b')](_0x5285a1,_0x4f0fe8,0x0);for(const _0x33afb0 of Array['from'](_0x8dc822[_0x1b54('0x44')]()))_0x36d640['insert'](_0x33afb0,_0x5285a1,_0x1b54('0x8f'));_0x161e36=_0x36d640[_0x1b54('0x1e')](_0x5285a1),_0x5dcac0=_0x36d640[_0x1b54('0x1e')](_0x5dc16c);}const _0x35e14b=Array[_0x1b54('0x82')](_0x8dc822[_0x1b54('0x6')]())[_0x1b54('0x9c')](([_0x2999a5])=>le[_0x1b54('0x99')](_0x2999a5));_0x227022[_0x1b54('0x66')][_0x1b54('0x83')]({'element':_0x4f0fe8,'attributes':_0x35e14b[_0x1b54('0x47')]?Object['fromEntries'](_0x35e14b):null}),_0x161e36&&_0x227022[_0x1b54('0x36')][_0x1b54('0x83')](_0x161e36),_0x5dcac0&&_0x227022['deletionRanges'][_0x1b54('0x83')](_0x5dcac0);},{'priority':_0x1b54('0x64')}),_0x4ab70c['on'](_0x1b54('0x78'),(_0x4577f6,_0x1b858b)=>{const [_0x5932c8,_0x2b51fa={}]=_0x1b858b;if(!_0x227022)return;const _0x48a2bf=_0x2b51fa['at']||0x0,_0x397866=_0x2b51fa[_0x1b54('0x6e')]||0x1;_0x227022[_0x1b54('0x81')]=new Array(_0x397866)[_0x1b54('0x3e')](_0x48a2bf)[_0x1b54('0x24')]((_0x115a48,_0x5ad5a9)=>_0x115a48+_0x5ad5a9);for(const {cell:_0x3ae94f}of _0x4ab70c[_0x1b54('0x7')](_0x5932c8,{'startColumn':_0x48a2bf,'endColumn':_0x48a2bf+_0x397866-0x1}))_0x227022[_0x1b54('0xa')]['push'](_0x2cbfd8['model'][_0x1b54('0x1e')](_0x3ae94f));},{'priority':'low'}),_0x4ab70c['on'](_0x1b54('0x49'),(_0x563926,_0x4a3152)=>{const [_0x195b43,_0xd874a0={}]=_0x4a3152;if(!_0x227022)return;const _0x4b37ff=_0xd874a0['at']||0x0,_0x51b6a2=_0xd874a0[_0x1b54('0x80')]||0x1;_0x227022[_0x1b54('0x96')]=new Array(_0x51b6a2)[_0x1b54('0x3e')](_0x4b37ff)['map']((_0x427b88,_0x1da1da)=>_0x427b88+_0x1da1da);for(const {cell:_0x357ee7}of _0x4ab70c[_0x1b54('0x7')](_0x195b43,{'startRow':_0x4b37ff,'endRow':_0x4b37ff+_0x51b6a2-0x1}))_0x227022[_0x1b54('0x7c')][_0x1b54('0x83')](_0x2cbfd8['model'][_0x1b54('0x1e')](_0x357ee7));},{'priority':_0x1b54('0xa3')}),_0x2eb947[_0x1b54('0x8d')][_0x1b54('0x79')](_0x42d39f=>{if(_0x42d39f[_0x1b54('0xa8')]&&_0x42d39f[_0x1b54('0xa8')][_0x1b54('0x89')](_0x1b54('0x45')))return _0x42d39f[_0x1b54('0x88')]?{}:{'type':_0x1b54('0x0'),'content':_0x564313(_0x2cbfd8['locale'],_0x1b54('0x85'))};});const _0x5a763e=()=>!0x1;for(const _0x3994a4 of[_0x1b54('0x45'),_0x1b54('0x74'),'tablePasteRow',_0x1b54('0xb')])_0x2eb947[_0x1b54('0x6b')][_0x1b54('0x2f')]('insertion',_0x3994a4,_0x1b54('0x8a'),_0x5a763e),_0x2eb947['_suggestionFactory'][_0x1b54('0x2f')](_0x1b54('0x3a'),_0x3994a4,_0x1b54('0x8a'),_0x5a763e),_0x2eb947[_0x1b54('0x6b')][_0x1b54('0x2f')](_0x1b54('0x40'),_0x3994a4,'join',_0x5a763e);_0x2eb947['_suggestionFactory']['registerCustomCallback'](_0x1b54('0x40'),_0x1b54('0xb'),_0x1b54('0x60'),_0x5a763e),_0x2eb947['_suggestionFactory']['registerCustomCallback'](_0x1b54('0x40'),'tablePasteCell','accept',(_0x3ab01e,_0x1dac7e,_0x13414e)=>{const _0x1edc0=_0x3ab01e[_0x1b54('0x24')](_0x409e1d=>_0x409e1d['getContainedElement']())[_0x1b54('0x9c')](_0x114a9b=>_0x114a9b),_0xfaad3f=new Map(_0x1edc0[_0x1b54('0x24')](_0x5e55e4=>[_0x5e55e4,null]));if(_0x227022)for(const {element:_0x424977,attributes:_0x2bb0e5}of _0x227022[_0x1b54('0x66')])_0x2bb0e5&&_0xfaad3f[_0x1b54('0x1a')](_0x424977,_0x2bb0e5);else{if(_0x13414e&&_0x13414e[_0x1b54('0x51')])for(const [_0x460b57,_0x4f5163]of Object[_0x1b54('0x26')](_0x13414e[_0x1b54('0x51')])){const _0x8345a=_0x2cbfd8['model'][_0x1b54('0x98')][_0x1b54('0x38')](_0x460b57),_0x376e65=_0x8345a?_0x8345a[_0x1b54('0x2e')]()['getContainedElement']():null;_0x376e65&&_0xfaad3f['set'](_0x376e65,_0x4f5163);}}_0x2cbfd8[_0x1b54('0x20')][_0x1b54('0x25')](_0x3ed3da=>{for(const [_0xc9066b,_0x4cb975]of _0xfaad3f)_0x3ed3da[_0x1b54('0x56')]({...ae,..._0x4cb975},_0xc9066b);});});const _0x3fc2d6=(_0x11e323,_0x594f48)=>{_0x2eb947['_suggestionFactory'][_0x1b54('0x2f')](_0x11e323,_0x1b54('0x45'),_0x594f48,(_0x2f3f2c,_0x5a3a85,_0x5950bc)=>{_0x2cbfd8[_0x1b54('0x20')][_0x1b54('0x25')](_0x4aa9cb=>{const _0x3b2f55=[];for(const _0x2e7276 of _0x2f3f2c){const _0x494c5f=_0x2e7276[_0x1b54('0x5c')][_0x1b54('0x32')];_0x494c5f['is']('element',_0x1b54('0x17'))&&_0x3b2f55[_0x1b54('0x83')](_0x494c5f);}_0x2eb947[_0x1b54('0x6b')][_0x1b54('0x1c')](_0x11e323,null,_0x594f48)(_0x2f3f2c,_0x5a3a85,_0x5950bc);for(const _0x2c3c5d of _0x3b2f55)_0x1b54('0x10')!=_0x2c3c5d[_0x1b54('0x68')][_0x1b54('0x18')]&&_0x4aa9cb[_0x1b54('0x6a')](_0x2c3c5d);});});};_0x3fc2d6('insertion','accept'),_0x3fc2d6(_0x1b54('0x0'),'discard'),_0x3fc2d6(_0x1b54('0x3a'),'accept'),_0x3fc2d6(_0x1b54('0x3a'),_0x1b54('0x60')),_0x2eb947[_0x1b54('0x6b')]['registerCustomCallback'](_0x1b54('0x0'),_0x1b54('0x2b'),_0x1b54('0x60'),_0x4fc02c=>{const _0x5eb5c8=_0x4fc02c[_0x1b54('0x24')](_0x11895e=>_0x11895e[_0x1b54('0x94')]()),_0xf61f53=_0x5eb5c8[0x0][_0x1b54('0x8')](_0x1b54('0xa1')),{minRow:_0x25cbb9,maxRow:_0x54300b}=_0xffee66['_getCoordsForCells'](_0x5eb5c8);_0x4ab70c[_0x1b54('0x37')](_0xf61f53,{'at':_0x25cbb9,'rows':_0x54300b-_0x25cbb9+0x1});}),_0x2eb947[_0x1b54('0x6b')][_0x1b54('0x2f')]('insertion',_0x1b54('0x74'),_0x1b54('0x60'),_0x17b484=>{const _0x3c0f2d=_0x17b484[_0x1b54('0x24')](_0x13a8fe=>_0x13a8fe[_0x1b54('0x94')]()),_0xcfd50=_0x3c0f2d[0x0][_0x1b54('0x8')](_0x1b54('0xa1')),{minColumn:_0xfbf4ab,maxColumn:_0x2b4922}=_0xffee66[_0x1b54('0xa0')](_0x3c0f2d);_0x4ab70c[_0x1b54('0x67')](_0xcfd50,{'at':_0xfbf4ab,'columns':_0x2b4922-_0xfbf4ab+0x1});});const _0x96a959=(_0x338127,_0x982690)=>{if(!_0x982690[_0x1b54('0xa8')]||!_0x982690['subType'][_0x1b54('0x89')](_0x1b54('0x45')))return;const _0x33b21d=_0x982690[_0x1b54('0x97')][_0x1b54('0x86')],_0x4a1d51=_0x2eb947[_0x1b54('0x5a')]()[_0x1b54('0x9c')](_0x7b06f3=>_0x7b06f3['isInContent']&&_0x7b06f3[_0x1b54('0x97')]&&_0x7b06f3['attributes'][_0x1b54('0x86')]==_0x33b21d);_0x4a1d51[_0x1b54('0x47')]&&_0x982690[_0x1b54('0x1')]()['length']!=_0x4a1d51[_0x1b54('0x47')]&&_0x4a1d51[_0x1b54('0x52')]((_0x3e7aa4,_0x3ef710)=>(_0x3e7aa4[_0x1b54('0xa2')]=_0x3ef710,_0x3ef710[_0x1b54('0x88')]=_0x3e7aa4,_0x3ef710));};function _0x172a35(_0x1646af,_0x32201f=!0x0){const {id:_0x4f5459}=_0x2eb947[_0x1b54('0x4')](_0x1646af[_0x1b54('0x4f')]),_0x1d115f=[_0x1b54('0x5f'),_0x1b54('0x34')],_0x689efa=_0x2eb947[_0x1b54('0x16')]['includes'](_0x1646af[_0x1b54('0x4f')]);return _0x689efa&&_0x1d115f[_0x1b54('0x83')](_0x1b54('0x4e')),{'classes':_0x1d115f,'attributes':{'data-suggestion':_0x4f5459},'priority':_0x689efa&&_0x32201f?0xbc2:0xbb8};}_0x2eb947['on'](_0x1b54('0xd'),_0x96a959,{'priority':_0x1b54('0x64')}),_0x2eb947['on'](_0x1b54('0x13'),_0x96a959,{'priority':_0x1b54('0x64')}),_0x2cbfd8[_0x1b54('0x20')][_0x1b54('0x92')]['registerPostFixer'](()=>{let _0x1d7814=!0x1;const _0x31f0d0=Array[_0x1b54('0x82')](_0x2cbfd8['model'][_0x1b54('0x92')][_0x1b54('0x71')]['getChangedMarkers']());for(const {name:_0x43d0b8,data:_0x1a6f53}of _0x31f0d0){const {group:_0x3e1cc7,type:_0x3684ce,id:_0x4dd74e}=_0x2eb947[_0x1b54('0x4')](_0x43d0b8);if(_0x1b54('0x1b')!=_0x3e1cc7||_0x1b54('0x3a')!=_0x3684ce||_0x1a6f53[_0x1b54('0x43')])continue;if(!_0x2eb947[_0x1b54('0x50')](_0x4dd74e))continue;const _0xb6ca61=_0x2eb947[_0x1b54('0x53')](_0x4dd74e)[_0x1b54('0xa9')](),_0x420dfa=_0x2cbfd8[_0x1b54('0x91')][_0x1b54('0x38')](_0x1b54('0x9e'))['me'];for(const _0x20e310 of _0x2eb947[_0x1b54('0x5a')]()){if(!_0x20e310[_0x1b54('0x9d')]||_0x20e310[_0x1b54('0x69')]!=_0x420dfa)continue;if(_0x1b54('0x40')!=_0x20e310[_0x1b54('0x9a')]||_0x1b54('0xb')!=_0x20e310[_0x1b54('0xa8')])continue;if(_0x20e310['getRanges']()[_0x1b54('0x93')](_0x20fb17=>_0xb6ca61[_0x1b54('0xa7')](_0x1ec539=>_0x1ec539[_0x1b54('0xe')](_0x20fb17,!0x0))))for(const _0x4aa96f of _0x20e310[_0x1b54('0x1')]())_0x4aa96f[_0x1b54('0x9d')]&&(_0x4aa96f[_0x1b54('0x60')](),_0x1d7814=!0x0);}}return _0x1d7814;}),_0x2cbfd8['model'][_0x1b54('0x92')][_0x1b54('0xf')](_0x66edad=>{const _0x24ce2a=_0x2cbfd8[_0x1b54('0x33')][_0x1b54('0x38')]('redo');if(!_0x24ce2a||!_0x24ce2a[_0x1b54('0x7d')][_0x1b54('0x76')](_0x66edad[_0x1b54('0x2c')]))return!0x1;let _0x1a6576=!0x1;const _0x349037=_0x2cbfd8['plugins'][_0x1b54('0x38')](_0x1b54('0x9e'))['me'],_0x5e242e=_0x2cbfd8['model']['document']['differ'][_0x1b54('0x62')](),_0x2f1c63=Array['from'](_0x2cbfd8[_0x1b54('0x20')][_0x1b54('0x92')]['differ'][_0x1b54('0x8e')]())[_0x1b54('0x9c')](({name:_0x3a3146,data:_0x2ee118})=>{const {group:_0x45325c,subType:_0x28d9ff,authorId:_0x239e4d}=_0x2eb947[_0x1b54('0x4')](_0x3a3146);return _0x1b54('0x1b')==_0x45325c&&_0x1b54('0x45')==_0x28d9ff&&_0x239e4d==_0x349037['id']&&!_0x2ee118[_0x1b54('0x43')];});for(const _0x2ef4fe of _0x5e242e){if('insert'!=_0x2ef4fe['type']||_0x1b54('0x17')!=_0x2ef4fe[_0x1b54('0x7e')]||0x1!=_0x2ef4fe[_0x1b54('0x47')])continue;const _0x9fd56c=_0x66edad['createRange'](_0x2ef4fe['position'],_0x2ef4fe[_0x1b54('0x23')][_0x1b54('0x2')](0x1));if(!_0x2f1c63[_0x1b54('0x3b')](({data:_0x497182})=>_0x497182[_0x1b54('0x15')]['isEqual'](_0x9fd56c)))for(const {name:_0x4497a3,data:_0x36fbcb}of _0x2f1c63)if(_0x9fd56c[_0x1b54('0xe')](_0x36fbcb[_0x1b54('0x15')])){_0x66edad[_0x1b54('0x5e')](_0x4497a3,{'range':_0x9fd56c}),_0x1a6576=!0x0;break;}}return _0x1a6576;}),_0x2cbfd8[_0x1b54('0x20')][_0x1b54('0x92')][_0x1b54('0xf')](_0x2da5e4=>{let _0x241b7b=!0x1;const _0x5eac93=_0x2cbfd8[_0x1b54('0x91')]['get'](_0x1b54('0x9e'))['me'],_0x4e2ea2=_0x2eb947[_0x1b54('0x5a')]()[_0x1b54('0x9c')](_0x2b3a36=>_0x2b3a36[_0x1b54('0x9d')]&&_0x2b3a36[_0x1b54('0x69')]==_0x5eac93),_0x38e85a=new Set(),_0x4c83be=new Set();for(const _0x2feb2f of _0x4e2ea2)if(_0x1b54('0x45')==_0x2feb2f[_0x1b54('0xa8')])for(const _0x7c576 of _0x2feb2f['getMarkers']()){const _0x255ec1=_0x7c576[_0x1b54('0x2e')]()[_0x1b54('0x94')]();if(_0x255ec1){if(_0x255ec1['is']('element',_0x1b54('0x17'))&&ce(_0x255ec1)){_0x2feb2f[_0x1b54('0x1f')](_0x7c576[_0x1b54('0x7e')]),_0x38e85a[_0x1b54('0xa6')](_0x255ec1),_0x241b7b=!0x0;const _0x59f275=_0x255ec1['nextSibling'],_0x4145c9=_0x255ec1['previousSibling'],_0x2a8225=_0x59f275&&_0x59f275['is']('element',_0x1b54('0x17')),_0x56e873=_0x4145c9&&_0x4145c9['is'](_0x1b54('0x6c'),_0x1b54('0x17'));_0x2a8225&&!_0x38e85a['has'](_0x59f275)&&_0x4c83be[_0x1b54('0xa6')](_0x59f275),_0x56e873&&!_0x38e85a[_0x1b54('0x76')](_0x4145c9)&&_0x4c83be['add'](_0x4145c9);}else _0x255ec1['is'](_0x1b54('0x6c'),_0x1b54('0x35'))&&_0x255ec1[_0x1b54('0x70')]&&(_0x2feb2f[_0x1b54('0x1f')](_0x7c576['name']),_0x241b7b=!0x0);}}else{if(_0x1b54('0xb')==_0x2feb2f[_0x1b54('0xa8')]){if(!_0x2feb2f[_0x1b54('0x97')]||!_0x2feb2f[_0x1b54('0x97')][_0x1b54('0x86')])continue;const _0x4b3095=_0x2feb2f[_0x1b54('0x97')][_0x1b54('0x51')];if(_0x4b3095&&Object[_0x1b54('0xc')](_0x4b3095)[_0x1b54('0x47')])continue;const _0x410eb7=_0x2feb2f[_0x1b54('0x97')][_0x1b54('0x86')];let _0x30ebed=!0x0,_0x43c29a=!0x0;for(const _0x44dc3c of _0x4e2ea2)if(_0x44dc3c['subType']&&_0x44dc3c[_0x1b54('0xa8')][_0x1b54('0x89')](_0x1b54('0x45'))){if(!_0x44dc3c[_0x1b54('0x97')][_0x1b54('0x86')]){_0x43c29a=!0x1;break;}if(_0x44dc3c['id']!=_0x2feb2f['id']&&_0x44dc3c[_0x1b54('0x97')][_0x1b54('0x86')]==_0x410eb7){_0x30ebed=!0x1;break;}}_0x43c29a&&_0x30ebed&&(_0x2feb2f[_0x1b54('0xa5')](),_0x241b7b=!0x0);}}for(const _0x18b9d2 of _0x38e85a)_0x2da5e4[_0x1b54('0x59')](_0x18b9d2);for(const _0x2aa5bf of _0x4c83be)_0x2da5e4[_0x1b54('0x6a')](_0x2aa5bf);return _0x241b7b;}),_0x2cbfd8['conversion'][_0x1b54('0x6d')](_0x1b54('0x3d'))[_0x1b54('0xa4')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1c61e9,_0x3cdc73)=>_0x172a35(_0x1c61e9),'converterPriority':_0x1b54('0x64')}),_0x2cbfd8[_0x1b54('0x12')][_0x1b54('0x6d')](_0x1b54('0x65'))[_0x1b54('0xa4')]({'model':_0x1b54('0x4c'),'view':(_0x4f16ab,_0x2fdfc8)=>_0x2fdfc8[_0x1b54('0x1d')][_0x1b54('0x6f')]?_0x172a35(_0x4f16ab,!0x1):null,'converterPriority':_0x1b54('0x64')});const _0x290097=_0x2cbfd8[_0x1b54('0x8b')][_0x1b54('0x9')];this[_0x1b54('0x46')](_0x290097[_0x1b54('0x92')],'clipboardOutput',(_0x3cbf20,_0x29e7cb)=>{const _0x13318b=[];for(const _0x4116a6 of _0x290097[_0x1b54('0x75')](_0x29e7cb[_0x1b54('0x48')])['getItems']())_0x4116a6['is']('element',_0x1b54('0x90'))&&_0x13318b['push'](_0x4116a6);_0x290097[_0x1b54('0x25')](_0x5ab247=>{for(const _0x20fde5 of _0x13318b)_0x5ab247[_0x1b54('0x19')](_0x5ab247[_0x1b54('0x75')](_0x20fde5),_0x5ab247[_0x1b54('0x7f')](_0x20fde5)),_0x5ab247[_0x1b54('0x59')](_0x20fde5);});});}}function ce(_0x3a5a5e){if(_0x3a5a5e['isEmpty'])return!0x0;const _0x3f1166=_0x3a5a5e[_0x1b54('0x5d')](0x0);return _0x3f1166['is'](_0x1b54('0x6c'),_0x1b54('0x35'))&&_0x3f1166[_0x1b54('0x70')];}function fe(_0x49559e,_0x49f1d2={},_0x23aca1){for(const {isAnchor:_0x252c00,cellHeight:_0x193037,cellWidth:_0x13f287}of _0x23aca1['createTableWalker'](_0x49559e,{'includeAllSlots':!0x0,..._0x49f1d2}))if(!_0x252c00||0x1!=_0x193037||0x1!=_0x13f287)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e9f=['resizeColumnWidths','_suggestionFactory','commandParams','format','subType','formatBlock','registerDescriptionCallback','editor','resizeTable','selection','enableCommand','tableWidth','formatGroupId','getSuggestionCallback','plugins','getContainedElement','handleSuggestionDescription','bind','data','*Format:*\x20resize\x20table','Users','document','change','handleResizeTableWidthCommand','model','author','table','get','markBlockFormat','TrackChangesEditing','accept','getSelectedElement','discard','registerCustomCallback','TableColumnResizeEditing','columnWidths'];(function(_0x1a3883,_0x5e9fcb){const _0x5c400b=function(_0x2cedbe){while(--_0x2cedbe){_0x1a3883['push'](_0x1a3883['shift']());}};_0x5c400b(++_0x5e9fcb);}(_0x5e9f,0xd2));const _0x5c40=function(_0x1a3883,_0x5e9fcb){_0x1a3883=_0x1a3883-0x0;let _0x5c400b=_0x5e9f[_0x1a3883];return _0x5c400b;};import{Plugin as _0x51c225}from'ckeditor5/src/core';import{getTranslation as _0x34a1af}from'../utils/common-translations';export default class yt extends _0x51c225{['afterInit'](){if(!this[_0x5c40('0xd')]['plugins']['has'](_0x5c40('0x4')))return;const _0x2278ed=this[_0x5c40('0xd')][_0x5c40('0x14')][_0x5c40('0x21')](_0x5c40('0x23'));_0x2278ed[_0x5c40('0x10')]('resizeTableWidth',this['handleResizeTableWidthCommand'][_0x5c40('0x17')](this)),_0x2278ed['enableCommand'](_0x5c40('0x6'),this[_0x5c40('0x1d')]['bind'](this)),_0x2278ed[_0x5c40('0x7')][_0x5c40('0x3')](_0x5c40('0xb'),_0x5c40('0xe'),_0x5c40('0x0'),_0x2278ed['_suggestionFactory'][_0x5c40('0x13')]('formatBlock',null,_0x5c40('0x2'))),_0x2278ed[_0x5c40('0x7')]['registerCustomCallback'](_0x5c40('0xb'),_0x5c40('0xe'),'discard',_0x2278ed[_0x5c40('0x7')][_0x5c40('0x13')](_0x5c40('0xb'),null,_0x5c40('0x0'))),_0x2278ed['_descriptionFactory'][_0x5c40('0xc')](this[_0x5c40('0x16')][_0x5c40('0x17')](this));}[_0x5c40('0x1d')](_0x31e6de,_0x509c4b){const _0x492180=this['editor']['plugins']['get'](_0x5c40('0x23')),_0x21a06f=this[_0x5c40('0xd')][_0x5c40('0x14')][_0x5c40('0x21')](_0x5c40('0x4')),_0x262859=_0x509c4b[_0x5c40('0x20')]||this[_0x5c40('0xd')]['model'][_0x5c40('0x1b')][_0x5c40('0xf')][_0x5c40('0x1')]();this[_0x5c40('0xd')][_0x5c40('0x1e')][_0x5c40('0x1c')](()=>{const _0x38ecbb=_0x21a06f['getColumnGroupElement'](_0x262859);let _0xb6aaa3=_0x38ecbb?_0x21a06f['getTableColumnsWidths'](_0x38ecbb):null,_0x260df5=_0x262859['getAttribute']('tableWidth')||null;const _0x11ec07=_0x509c4b['tableWidth']||_0x260df5,_0x55772c=_0x509c4b[_0x5c40('0x5')]||_0xb6aaa3,_0x51c38c=this[_0x5c40('0xd')]['plugins'][_0x5c40('0x21')](_0x5c40('0x1a'))['me'];for(const _0x3bbfa8 of _0x492180['getSuggestions']()){const _0x403c11=_0x3bbfa8[_0x5c40('0x15')]();if('resizeTable'===_0x3bbfa8[_0x5c40('0xa')]&&_0x403c11===_0x262859){_0x3bbfa8[_0x5c40('0x1f')]!==_0x51c38c&&_0x3bbfa8['discard']();const _0x4e56b2=_0x3bbfa8[_0x5c40('0x18')][_0x5c40('0x8')];_0x260df5=_0x4e56b2[0x0][_0x5c40('0x11')],_0xb6aaa3=_0x4e56b2[0x0][_0x5c40('0x5')];break;}}_0x31e6de({'table':_0x262859,'tableWidth':_0x11ec07,'columnWidths':_0x55772c}),_0x492180[_0x5c40('0x22')](_0x262859,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x260df5,'columnWidths':_0xb6aaa3}],'formatGroupId':'resizeTable'},[],_0x5c40('0xe'));});}[_0x5c40('0x16')](_0xe6e343){const {data:_0x424c2c}=_0xe6e343;if(_0x424c2c&&'resizeTable'===_0x424c2c[_0x5c40('0x12')]){const _0x37a0f=_0x5c40('0x19');return{'type':_0x5c40('0x9'),'content':_0x34a1af(this[_0x5c40('0xd')]['locale'],_0x37a0f)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2567=['headingColumns','_splitMarkerName','includes','addClass','last','selection','markBlockFormat','removeAttribute','cell','model','document','registerDescriptionCallback','getSelectionAffectedTableCells','setTableRowHeader','editing','data','editor','plugins','data-suggestion','showSuggestionHighlights','enableCommand','createTableWalker','getChild','mapper','childCount','table','TrackChangesEditing','getRowIndexes','index','consume','ck-suggestion-marker--active','setTableColumnHeader','*Format:*\x20%0','getAttribute','createRange','from','setAttribute','FORMAT_HEADER_ROW','value','isBefore','accept','options','getSuggestion','first','consumable','FORMAT_HEADER_COLUMN','highest','markerName','commands','get','change','writer','stop','createPositionAfter','formatBlock','activeMarkers','TableEditing','markerRange','TableUtils','findAncestor','commandParams','afterInit','forceValue','removeClass','downcastDispatcher','_suggestionFactory','registerCustomCallback','getCellLocation','FORMAT_REGULAR_ROW','FORMAT_REGULAR_COLUMN','name','unbindElementFromMarkerName','createPositionBefore','addMarker:suggestion','parent','nodeBefore','commandName','format'];(function(_0x26c0bf,_0x25678d){const _0x48f92a=function(_0x2c230c){while(--_0x2c230c){_0x26c0bf['push'](_0x26c0bf['shift']());}};_0x48f92a(++_0x25678d);}(_0x2567,0x106));const _0x48f9=function(_0x26c0bf,_0x25678d){_0x26c0bf=_0x26c0bf-0x0;let _0x48f92a=_0x2567[_0x26c0bf];return _0x48f92a;};import{Plugin as _0x433a13}from'ckeditor5/src/core';import _0x526283 from'./table';import{getTranslation as _0x4b3884}from'../utils/common-translations';export default class kt extends _0x433a13{static get['requires'](){return[_0x526283];}[_0x48f9('0x21')](){const _0x87c71e=this[_0x48f9('0x42')];if(!_0x87c71e[_0x48f9('0x43')]['has'](_0x48f9('0x1c')))return;const _0x458aaa=_0x87c71e['locale'],_0x13fe46=_0x87c71e[_0x48f9('0x43')][_0x48f9('0x15')](_0x48f9('0x4c')),_0x4b6565=_0x87c71e['plugins']['get'](_0x48f9('0x1e')),_0x4089f3=_0x87c71e[_0x48f9('0x43')][_0x48f9('0x15')](_0x526283);function _0x8ab841({showActiveMarker:_0x4e057d=!0x0,setDataAttribute:_0x423a40=!0x0}={}){return(_0x49ac62,_0x4e5809,_0x45e006)=>{const {type:_0x2684cc,id:_0x97f2c2}=_0x13fe46[_0x48f9('0x33')](_0x4e5809[_0x48f9('0x13')]),_0x17af97=_0x13fe46[_0x48f9('0xe')](_0x97f2c2);if(!_0x17af97[_0x48f9('0x41')]||_0x48f9('0x3')!=_0x17af97[_0x48f9('0x41')][_0x48f9('0x30')])return;if(_0x4e5809['item'])return void _0x49ac62[_0x48f9('0x18')]();if(!_0x45e006[_0x48f9('0x10')][_0x48f9('0x1')](_0x4e5809[_0x48f9('0x1d')],_0x49ac62[_0x48f9('0x2a')]))return;const _0x2c3488=_0x4e5809[_0x48f9('0x1d')]['start']['nodeAfter'],_0x37436c=_0x4e5809[_0x48f9('0x1d')]['end'][_0x48f9('0x2f')],_0x616198=_0x2c3488['parent'][_0x48f9('0x2e')],{column:_0x1c5680}=_0x4b6565['getCellLocation'](_0x2c3488),{column:_0x5a5a1c}=_0x4b6565[_0x48f9('0x27')](_0x37436c);for(let _0x47aa8d=_0x1c5680;_0x47aa8d<=_0x5a5a1c;_0x47aa8d++){const _0x4c9492=_0x4b6565[_0x48f9('0x47')](_0x616198,{'column':_0x47aa8d,'includeAllSlots':!0x1});for(const _0x10924a of _0x4c9492){const _0x1ff4f5=_0x10924a['cell'],_0x4f610d=_0x45e006[_0x48f9('0x49')]['toViewElement'](_0x1ff4f5);_0x45e006['writer']['addClass']('ck-suggestion-marker-'+_0x2684cc,_0x4f610d),_0x423a40&&_0x45e006[_0x48f9('0x17')][_0x48f9('0x8')]('data-suggestion',_0x97f2c2,_0x4f610d),_0x45e006[_0x48f9('0x49')]['bindElementToMarker'](_0x4f610d,_0x4e5809['markerName']),_0x4e057d&&(_0x13fe46[_0x48f9('0x1b')][_0x48f9('0x34')](_0x4e5809[_0x48f9('0x13')])?_0x45e006[_0x48f9('0x17')][_0x48f9('0x35')](_0x48f9('0x2'),_0x4f610d):_0x45e006[_0x48f9('0x17')][_0x48f9('0x23')](_0x48f9('0x2'),_0x4f610d));}}};}_0x13fe46[_0x48f9('0x46')]('setTableRowHeader',(_0x26aa82,_0x2c8a60)=>{const _0x14dd71=_0x4b6565[_0x48f9('0x3e')](_0x87c71e[_0x48f9('0x3b')][_0x48f9('0x3c')]['selection']),_0x5a0d8c=_0x4b6565[_0x48f9('0x4d')](_0x14dd71),_0x19a5c3=_0x14dd71[0x0]['findAncestor'](_0x48f9('0x4b')),_0x22b073=_0x19a5c3['getAttribute']('headingRows')||0x0,_0x52998d=_0x2c8a60&&null!==_0x2c8a60[_0x48f9('0x22')]?_0x2c8a60['forceValue']:!_0x87c71e[_0x48f9('0x14')][_0x48f9('0x15')]('setTableRowHeader')[_0x48f9('0xa')],_0x81b4a=_0x52998d?_0x5a0d8c[_0x48f9('0x36')]:_0x5a0d8c[_0x48f9('0xf')],_0x286dda=_0x19a5c3['getChild'](_0x81b4a);let _0x8f6a0a;if(_0x52998d){const _0x1c5f93=_0x19a5c3['getChild'](_0x22b073);if(_0x286dda[_0x48f9('0x0')]<_0x1c5f93[_0x48f9('0x0')])return;_0x8f6a0a=_0x87c71e[_0x48f9('0x3b')][_0x48f9('0x6')](_0x87c71e[_0x48f9('0x3b')][_0x48f9('0x2c')](_0x1c5f93[_0x48f9('0x48')](0x0)),_0x87c71e[_0x48f9('0x3b')]['createPositionAfter'](_0x286dda[_0x48f9('0x48')](_0x286dda[_0x48f9('0x4a')]-0x1)));}else{const _0x520997=_0x19a5c3['getChild'](_0x22b073-0x1);if(!_0x520997)return;_0x8f6a0a=_0x87c71e[_0x48f9('0x3b')][_0x48f9('0x6')](_0x87c71e[_0x48f9('0x3b')][_0x48f9('0x2c')](_0x286dda[_0x48f9('0x48')](0x0)),_0x87c71e['model'][_0x48f9('0x19')](_0x520997[_0x48f9('0x48')](_0x520997[_0x48f9('0x4a')]-0x1)));}_0x87c71e['model'][_0x48f9('0x16')](()=>{_0x13fe46[_0x48f9('0x38')](_0x8f6a0a,{'commandName':_0x48f9('0x3f'),'commandParams':[{'forceValue':_0x52998d}]},[],_0x48f9('0x3f'));});}),_0x13fe46['enableCommand']('setTableColumnHeader',(_0x42bce4,_0x48dc4b)=>{const _0xe881=_0x87c71e[_0x48f9('0x43')]['get'](_0x48f9('0x1e')),_0x30c8b7=_0xe881[_0x48f9('0x3e')](_0x87c71e['model'][_0x48f9('0x3c')][_0x48f9('0x37')]),_0x3523de=_0xe881['getColumnIndexes'](_0x30c8b7),_0x45875d=_0x30c8b7[0x0][_0x48f9('0x1f')]('table'),_0x14f84f=_0x45875d[_0x48f9('0x5')](_0x48f9('0x32'))||0x0,_0x5e9535=_0x48dc4b&&null!==_0x48dc4b[_0x48f9('0x22')]?_0x48dc4b[_0x48f9('0x22')]:!_0x87c71e[_0x48f9('0x14')][_0x48f9('0x15')](_0x48f9('0x3'))[_0x48f9('0xa')];let _0x209223;const _0x285db9=_0x45875d['getChild'](0x0),_0x20950a=_0x5e9535?_0x3523de[_0x48f9('0x36')]:_0x3523de[_0x48f9('0xf')],_0x4fb931=_0xe881[_0x48f9('0x47')](_0x45875d,{'startRow':0x0,'column':_0x20950a,'includeAllSlots':!0x1}),_0xb7f979=Array[_0x48f9('0x7')](_0x4fb931)[0x0][_0x48f9('0x3a')];if(_0x5e9535){const _0x2a7164=_0x285db9[_0x48f9('0x48')](_0x14f84f);if(_0xb7f979[_0x48f9('0xb')](_0x2a7164))return;_0x209223=_0x87c71e[_0x48f9('0x3b')][_0x48f9('0x6')](_0x87c71e[_0x48f9('0x3b')][_0x48f9('0x2c')](_0x2a7164),_0x87c71e['model'][_0x48f9('0x19')](_0xb7f979));}else{const _0x48b870=_0x285db9[_0x48f9('0x48')](_0x14f84f-0x1);if(!_0x48b870)return;_0x209223=_0x87c71e[_0x48f9('0x3b')][_0x48f9('0x6')](_0x87c71e['model'][_0x48f9('0x2c')](_0xb7f979),_0x87c71e[_0x48f9('0x3b')]['createPositionAfter'](_0x48b870));}_0x87c71e[_0x48f9('0x3b')][_0x48f9('0x16')](()=>{_0x13fe46[_0x48f9('0x38')](_0x209223,{'commandName':_0x48f9('0x3'),'commandParams':[{'forceValue':_0x5e9535}]},[],'setTableColumnHeader');});}),_0x87c71e['editing'][_0x48f9('0x24')]['on'](_0x48f9('0x2d'),_0x8ab841(),{'priority':_0x48f9('0x12')}),_0x87c71e[_0x48f9('0x41')][_0x48f9('0x24')]['on']('addMarker:suggestion',(_0x13eca9,_0xb57173,_0x32cacf)=>{_0x32cacf[_0x48f9('0xd')][_0x48f9('0x45')]&&_0x8ab841({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x13eca9,_0xb57173,_0x32cacf);},{'priority':_0x48f9('0x12')}),_0x87c71e[_0x48f9('0x40')][_0x48f9('0x24')]['on']('removeMarker:suggestion',(_0x5e9b64,_0x94971e,_0x5ca315)=>{const {type:_0x231549,id:_0x5b22b7}=_0x13fe46[_0x48f9('0x33')](_0x94971e[_0x48f9('0x13')]),_0x4706e2=_0x13fe46[_0x48f9('0xe')](_0x5b22b7);if(!_0x4706e2[_0x48f9('0x41')]||_0x48f9('0x3')!=_0x4706e2[_0x48f9('0x41')][_0x48f9('0x30')])return;const _0x1662a6=_0x5ca315[_0x48f9('0x49')]['markerNameToElements'](_0x94971e[_0x48f9('0x13')]);if(_0x1662a6)for(const _0x11f0d5 of _0x1662a6)_0x5ca315[_0x48f9('0x17')][_0x48f9('0x23')]('ck-suggestion-marker-'+_0x231549,_0x11f0d5),_0x5ca315[_0x48f9('0x17')][_0x48f9('0x23')](_0x48f9('0x2'),_0x11f0d5),_0x5ca315[_0x48f9('0x17')][_0x48f9('0x39')](_0x48f9('0x44'),_0x11f0d5),_0x5ca315[_0x48f9('0x49')][_0x48f9('0x2b')](_0x11f0d5,_0x94971e[_0x48f9('0x13')]);},{'priority':_0x48f9('0x12')}),_0x13fe46['_descriptionFactory'][_0x48f9('0x3d')](_0x407889=>{const {data:_0x5e9731}=_0x407889;if(_0x5e9731){if(_0x48f9('0x3f')==_0x5e9731['commandName']){const _0x21c985=_0x5e9731[_0x48f9('0x20')][0x0][_0x48f9('0x22')];return _0x2534ec(_0x4b3884(_0x458aaa,_0x21c985?_0x48f9('0x9'):_0x48f9('0x28')));}if('setTableColumnHeader'==_0x5e9731[_0x48f9('0x30')]){const _0x2e113a=_0x5e9731[_0x48f9('0x20')][0x0]['forceValue'];return _0x2534ec(_0x4b3884(_0x458aaa,_0x2e113a?_0x48f9('0x11'):_0x48f9('0x29')));}}function _0x2534ec(_0x512a2a){return{'type':_0x48f9('0x31'),'content':_0x4b3884(_0x458aaa,_0x48f9('0x4'),_0x512a2a)};}});const _0x142028=_0x4089f3['_acceptFormatSuggestionCallbackFactory']();_0x13fe46[_0x48f9('0x25')][_0x48f9('0x26')]('formatBlock',_0x48f9('0x3f'),_0x48f9('0xc'),_0x142028),_0x13fe46[_0x48f9('0x25')][_0x48f9('0x26')](_0x48f9('0x1a'),'setTableColumnHeader','accept',_0x142028);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a2f=['type','mergeTableCellRight','deletion','set:isEnabled','return','TrackChangesEditing','plugins','afterInit','document','element','findAncestor','from','createRangeOn','stop','TableUtils','execute','locale','accept','root','length','_descriptionFactory','splitTableCellVertically','mergeTableCellDown','markBlockFormat','format','getRanges','push','has','tableCell','registerDescriptionCallback','map','TableEditing','forceDefaultExecution','_areSelectedCellsMergable','enableCommand','change','requires','horizontally','formatBlock','_suggestionFactory','direction','value','author','getCellLocation','setSelection','get','refresh','highest','trackChanges','_isForcedDefaultExecutionBlock','*Merge\x20cells*','registerCustomCallback','model','filter','commandName','_areMergableCells','low','editor','getFirstPosition','splitTableCellHorizontally','mergeTableCells','getSelectionAffectedTableCells','rootName','find','selection','createTableWalker','mergeTableCellLeft','commands','detach','subType','add','$graveyard','mergeTableCellUp','containsRange'];(function(_0x1b71ba,_0x2a2f81){const _0x2715cf=function(_0x50ec3a){while(--_0x50ec3a){_0x1b71ba['push'](_0x1b71ba['shift']());}};_0x2715cf(++_0x2a2f81);}(_0x2a2f,0xd7));const _0x2715=function(_0x1b71ba,_0x2a2f81){_0x1b71ba=_0x1b71ba-0x0;let _0x2715cf=_0x2a2f[_0x1b71ba];return _0x2715cf;};import{Plugin as _0x5bfea9}from'ckeditor5/src/core';import _0x526143 from'./table';import{LiveRange as _0x403380}from'ckeditor5/src/engine';import{getTranslation as _0xc0c99f}from'../utils/common-translations';export default class pt extends _0x5bfea9{static get[_0x2715('0x2b')](){return[_0x526143];}[_0x2715('0xe')](){const _0x9fd0b=this[_0x2715('0x40')],_0x38f4ff=_0x9fd0b[_0x2715('0x3b')]['document'][_0x2715('0x47')],_0x29532d=_0x9fd0b[_0x2715('0x17')];if(!_0x9fd0b[_0x2715('0xd')][_0x2715('0x22')](_0x2715('0x26')))return;const _0x1f75a9=_0x9fd0b['plugins'][_0x2715('0x34')](_0x2715('0xc')),_0x271771=_0x9fd0b[_0x2715('0xd')][_0x2715('0x34')](_0x2715('0x15')),_0x422fb1=_0x9fd0b['plugins'][_0x2715('0x34')](_0x526143);_0x422fb1['_tablePostFixingSubtypes'][_0x2715('0x21')](_0x2715('0x43')),_0x1f75a9[_0x2715('0x29')](_0x2715('0x43'),()=>{const _0xadf6b2=_0x271771[_0x2715('0x44')](_0x9fd0b[_0x2715('0x3b')][_0x2715('0xf')]['selection']);_0x9fd0b[_0x2715('0x3b')][_0x2715('0x2a')](()=>{_0x1f75a9['markMultiRangeBlockFormat'](_0xadf6b2,{'commandName':_0x2715('0x43'),'commandParams':[]},[],'mergeTableCells');});}),_0x9fd0b[_0x2715('0x0')][_0x2715('0x34')](_0x2715('0x43'))['on'](_0x2715('0x16'),(_0xb1a2cd,_0x52103d)=>{_0x9fd0b[_0x2715('0x0')][_0x2715('0x34')](_0x2715('0x37'))[_0x2715('0x30')]&&(_0x52103d['length']>0x0&&_0x52103d[_0x52103d['length']-0x1]&&_0x52103d[_0x52103d[_0x2715('0x1a')]-0x1][_0x2715('0x27')]||_0x1f75a9[_0x2715('0x38')]||this[_0x2715('0x28')]()||_0xb1a2cd[_0x2715('0x14')]());},{'priority':_0x2715('0x36')});for(const _0x508db6 of[_0x2715('0x5'),'mergeTableCellRight','mergeTableCellDown',_0x2715('0x49')]){const _0x1056fa=_0x9fd0b['commands']['get'](_0x508db6);_0x1f75a9['enableCommand'](_0x508db6,()=>{const _0x44dcad=_0x9fd0b[_0x2715('0x3b')][_0x2715('0xf')][_0x2715('0x47')]['getFirstPosition']()['getAncestors']()['find'](_0x2a6fcc=>_0x2a6fcc['is'](_0x2715('0x10'),_0x2715('0x23'))),_0x10a897=_0x1056fa[_0x2715('0x30')];_0x9fd0b[_0x2715('0x3b')]['change'](()=>{_0x1f75a9['markMultiRangeBlockFormat']([_0x44dcad,_0x10a897],{'commandName':'mergeTableCells','commandParams':[]},[],_0x2715('0x43'));});});}for(const _0x45a3eb of[_0x2715('0x1c'),_0x2715('0x42')]){const _0x2791c9=_0x9fd0b[_0x2715('0x0')][_0x2715('0x34')](_0x45a3eb);_0x1f75a9['enableCommand'](_0x45a3eb,()=>{const _0x442d8e=_0x271771[_0x2715('0x44')](_0x9fd0b['model'][_0x2715('0xf')][_0x2715('0x47')])[0x0],_0x1b0a9c=_0x442d8e[_0x2715('0x11')]('table'),{column:_0x4cbf27,row:_0x3a536d}=_0x271771[_0x2715('0x32')](_0x442d8e);let _0x574c12=[];if(_0x2715('0x2c')==_0x2791c9[_0x2715('0x2f')]){const _0x15385c=_0x271771[_0x2715('0x48')](_0x1b0a9c,{'startRow':_0x3a536d,'endRow':_0x3a536d,'includeAllSlots':!0x0});_0x574c12=Array['from'](_0x15385c)[_0x2715('0x25')](_0x16aa53=>_0x16aa53['cell']);}else{const _0x336f57=_0x271771[_0x2715('0x48')](_0x1b0a9c,{'column':_0x4cbf27,'includeAllSlots':!0x0});_0x574c12=Array['from'](_0x336f57)[_0x2715('0x25')](_0x4960c3=>_0x4960c3['cell']);}_0x9fd0b[_0x2715('0x3b')][_0x2715('0x2a')](_0x427861=>{_0x1f75a9[_0x2715('0x1e')](_0x427861[_0x2715('0x13')](_0x442d8e),{'commandName':_0x45a3eb,'commandParams':[]},_0x574c12,_0x45a3eb);});});}_0x1f75a9[_0x2715('0x1b')][_0x2715('0x24')](_0x5ee93c=>{const {data:_0xd21d60}=_0x5ee93c;if(_0xd21d60)return'mergeTableCells'==_0xd21d60[_0x2715('0x3d')]?{'type':_0x2715('0x1f'),'content':_0xc0c99f(_0x29532d,_0x2715('0x39'))}:void 0x0;}),_0x1f75a9[_0x2715('0x1b')][_0x2715('0x24')](_0x2bad0c=>{const {data:_0x4e8d81}=_0x2bad0c;if(_0x4e8d81)return _0x2715('0x1c')==_0x4e8d81[_0x2715('0x3d')]?{'type':_0x2715('0x1f'),'content':_0xc0c99f(_0x29532d,'*Split\x20cell:*\x20vertically')}:_0x2715('0x42')==_0x4e8d81[_0x2715('0x3d')]?{'type':'format','content':_0xc0c99f(_0x29532d,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0xc49f8c=_0x422fb1['_acceptFormatSuggestionCallbackFactory']();for(const _0x292dd7 of[_0x2715('0x5'),_0x2715('0x8'),_0x2715('0x1d'),_0x2715('0x49')])_0x1f75a9[_0x2715('0x2e')][_0x2715('0x3a')]('formatBlock',_0x292dd7,_0x2715('0x18'),_0xc49f8c);for(const _0x407c75 of[_0x2715('0x1c'),'splitTableCellHorizontally'])_0x1f75a9[_0x2715('0x2e')][_0x2715('0x3a')](_0x2715('0x2d'),_0x407c75,'accept',_0xc49f8c);_0x1f75a9[_0x2715('0x2e')][_0x2715('0x3a')](_0x2715('0x2d'),_0x2715('0x43'),_0x2715('0x18'),_0x464bd5=>{_0x9fd0b[_0x2715('0x3b')]['change'](_0x4e7b03=>{const _0x289aa6=Array[_0x2715('0x12')](_0x38f4ff['getRanges']())[_0x2715('0x25')](_0x3b176e=>_0x403380['fromRange'](_0x3b176e));_0x4e7b03['setSelection'](_0x464bd5),_0x9fd0b['commands'][_0x2715('0x34')](_0x2715('0x43'))[_0x2715('0x35')](),_0x9fd0b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x45ac3d=_0x289aa6[_0x2715('0x3c')](_0x4db3b5=>_0x2715('0x4')!=_0x4db3b5[_0x2715('0x19')][_0x2715('0x45')]);_0x45ac3d[_0x2715('0x1a')]>0x0&&_0x4e7b03[_0x2715('0x33')](_0x45ac3d);for(const _0x451ed3 of _0x289aa6)_0x451ed3[_0x2715('0x1')]();});});for(const _0x362596 of[_0x2715('0x5'),_0x2715('0x1d'),_0x2715('0x49'),'mergeTableCellRight']){const _0x1aeb27=_0x9fd0b['commands'][_0x2715('0x34')](_0x362596);_0x1aeb27['on'](_0x2715('0xa'),(_0x3dd395,_0x27ac34,_0x43202d)=>{if(_0x43202d){const _0x23b417=_0x9fd0b[_0x2715('0x3b')][_0x2715('0xf')][_0x2715('0x47')][_0x2715('0x41')]()['getAncestors']()[_0x2715('0x46')](_0x3a737a=>_0x3a737a['is']('element',_0x2715('0x23')));this[_0x2715('0x3e')](_0x1aeb27[_0x2715('0x30')],_0x23b417)||(_0x3dd395[_0x2715('0xb')]=!0x1,_0x3dd395[_0x2715('0x14')]());}},{'priority':_0x2715('0x3f')});}}['_areSelectedCellsMergable'](){const _0x2f8f43=this['editor'][_0x2715('0x0')][_0x2715('0x34')](_0x2715('0x43')),_0x45d807=this[_0x2715('0x40')][_0x2715('0xd')][_0x2715('0x34')](_0x2715('0x15'));if(!_0x2f8f43['isEnabled'])return!0x1;const _0x262bd8=_0x45d807[_0x2715('0x44')](this[_0x2715('0x40')][_0x2715('0x3b')]['document'][_0x2715('0x47')]);for(const _0x1013f6 of _0x262bd8)for(const _0x5b36d6 of _0x262bd8)if(_0x1013f6!=_0x5b36d6&&!this[_0x2715('0x3e')](_0x1013f6,_0x5b36d6))return!0x1;return!0x0;}[_0x2715('0x3e')](_0x25e4c4,_0x4045ba){const _0x3309e6=this[_0x2715('0x40')][_0x2715('0xd')][_0x2715('0x34')](_0x2715('0xc')),_0x4a856f=this['editor'][_0x2715('0x3b')][_0x2715('0x13')](_0x25e4c4),_0x5169e8=this[_0x2715('0x40')][_0x2715('0x3b')][_0x2715('0x13')](_0x4045ba),_0x48d290=new Set(),_0x1dba8d=new Set();for(const _0x17ad20 of _0x3309e6['getSuggestions']())if(('insertion'==_0x17ad20[_0x2715('0x7')]||_0x2715('0x9')==_0x17ad20[_0x2715('0x7')]||_0x2715('0x43')==_0x17ad20[_0x2715('0x2')])&&_0x17ad20['isInContent'])for(const _0x568bdf of _0x17ad20[_0x2715('0x20')]())_0x568bdf[_0x2715('0x6')](_0x4a856f,!0x0)&&_0x48d290[_0x2715('0x3')](_0x17ad20[_0x2715('0x7')]+':'+_0x17ad20[_0x2715('0x31')]['id']),_0x568bdf[_0x2715('0x6')](_0x5169e8,!0x0)&&_0x1dba8d[_0x2715('0x3')](_0x17ad20[_0x2715('0x7')]+':'+_0x17ad20[_0x2715('0x31')]['id']);if(_0x48d290['size']!=_0x1dba8d['size'])return!0x1;for(const _0x1abe88 of _0x48d290)if(!_0x1dba8d['has'](_0x1abe88))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40f6=['ELEMENT_TABLE_OF_CONTENTS','insertTableOfContents','registerElementLabel','get','locale','tableOfContents','editor','_descriptionFactory','plugins','TrackChangesEditing','afterInit','enableCommand','commands'];(function(_0x49d57a,_0x40f6a3){const _0xed13aa=function(_0x19a19e){while(--_0x19a19e){_0x49d57a['push'](_0x49d57a['shift']());}};_0xed13aa(++_0x40f6a3);}(_0x40f6,0x19a));const _0xed13=function(_0x49d57a,_0x40f6a3){_0x49d57a=_0x49d57a-0x0;let _0xed13aa=_0x40f6[_0x49d57a];return _0xed13aa;};import{Plugin as _0x3799cc}from'ckeditor5/src/core';import{getTranslation as _0x17d9b9}from'../utils/common-translations';export default class St extends _0x3799cc{[_0xed13('0x3')](){const _0x3a6f87=this[_0xed13('0xc')];if(!_0x3a6f87[_0xed13('0x5')][_0xed13('0x9')](_0xed13('0x7')))return;_0x3a6f87[_0xed13('0x1')]['get'](_0xed13('0x2'))[_0xed13('0x4')](_0xed13('0x7'));const _0x37da54=_0x3a6f87[_0xed13('0x1')][_0xed13('0x9')](_0xed13('0x2')),_0xc02736=_0x3a6f87[_0xed13('0xa')];_0x37da54[_0xed13('0x0')][_0xed13('0x8')](_0xed13('0xb'),_0x536d1e=>_0x17d9b9(_0xc02736,_0xed13('0x6'),_0x536d1e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa395=['registerCustomCallback','TableCellPropertiesEditing','plugins','join','TrackChangesTableProperties','*Format:*\x20change\x20table\x20cell\x20properties','subType','formatBlock','handleSuggestionDescription','editor','getSelectionAffectedTableCells','_getSuggestion','_handlePropertyChange','getContainedElement','TablePropertiesEditing','_suggestionFactory','TrackChangesEditing','tableCellBackgroundColor','registerDescriptionCallback','tableCellHeight','tableBorderStyle','change','pluginName','getAttribute','tableHeight','*Format:*\x20change\x20table\x20properties','handleDiscardAction','getSuggestionCallback','removeAttribute','nodeAfter','getFirstPosition','get','table','tableCellBorderColor','enableCommand','tableCellPadding','has','findAncestor','document','data','markBlockFormat','model','tableCellProperties','accept','tableWidth','tableBorderWidth','format','afterInit','selection','tableCellHorizontalAlignment','tableCellWidth','getSuggestions','locale','tableProperties','discard','TableUtils'];(function(_0x362bc0,_0xa3955e){const _0x2e5251=function(_0x5d62c4){while(--_0x5d62c4){_0x362bc0['push'](_0x362bc0['shift']());}};_0x2e5251(++_0xa3955e);}(_0xa395,0x147));const _0x2e52=function(_0x362bc0,_0xa3955e){_0x362bc0=_0x362bc0-0x0;let _0x2e5251=_0xa395[_0x362bc0];return _0x2e5251;};import{Plugin as _0x57fa04}from'ckeditor5/src/core';import{getTranslation as _0x1c12dd}from'../utils/common-translations';export default class Dt extends _0x57fa04{constructor(_0x5175d6){super(_0x5175d6),this[_0x2e52('0x6')]=['tableBorderColor',_0x2e52('0x1d'),_0x2e52('0x36'),'tableAlignment',_0x2e52('0x35'),_0x2e52('0x21'),'tableBackgroundColor'],this['tableCellProperties']=[_0x2e52('0x2a'),'tableCellBorderStyle','tableCellBorderWidth',_0x2e52('0x2c'),_0x2e52('0x3'),_0x2e52('0x1c'),_0x2e52('0x1a'),_0x2e52('0x2'),'tableCellVerticalAlignment'];}static get[_0x2e52('0x1f')](){return _0x2e52('0xd');}[_0x2e52('0x0')](){const _0x96d971=this[_0x2e52('0x12')]['plugins'][_0x2e52('0x28')]('TrackChangesEditing');if(this[_0x2e52('0x12')][_0x2e52('0xb')][_0x2e52('0x2d')](_0x2e52('0x17'))){for(const _0x4babeb of this['tableProperties'])_0x96d971[_0x2e52('0x2b')](_0x4babeb,(_0x109baf,_0x68a96e)=>{const _0xc82edd=this[_0x2e52('0x12')][_0x2e52('0x32')]['document'][_0x2e52('0x1')][_0x2e52('0x27')]()[_0x2e52('0x2e')](_0x2e52('0x29'));this[_0x2e52('0x15')](_0x4babeb,[_0xc82edd],this['tableProperties'],_0x2e52('0x6'),_0x109baf,_0x68a96e);});_0x96d971[_0x2e52('0x18')]['registerCustomCallback'](_0x2e52('0x10'),_0x2e52('0x6'),_0x2e52('0x34'),_0x96d971[_0x2e52('0x18')][_0x2e52('0x24')]('formatBlock',null,'discard')),_0x96d971[_0x2e52('0x18')][_0x2e52('0x9')](_0x2e52('0x10'),_0x2e52('0x6'),'discard',(_0x39b126,_0x2f91d9)=>this[_0x2e52('0x23')](this[_0x2e52('0x6')],_0x39b126,_0x2f91d9)),_0x96d971['_suggestionFactory'][_0x2e52('0x9')](_0x2e52('0x10'),'tableProperties',_0x2e52('0xc'),()=>!0x1);}if(this[_0x2e52('0x12')][_0x2e52('0xb')][_0x2e52('0x2d')](_0x2e52('0xa'))){for(const _0xb99971 of this['tableCellProperties'])_0x96d971[_0x2e52('0x2b')](_0xb99971,(_0x367db7,_0x23d26d)=>{const _0x150208=this[_0x2e52('0x12')][_0x2e52('0xb')]['get'](_0x2e52('0x8'))[_0x2e52('0x13')](this[_0x2e52('0x12')][_0x2e52('0x32')][_0x2e52('0x2f')][_0x2e52('0x1')]);this['_handlePropertyChange'](_0xb99971,_0x150208,this[_0x2e52('0x33')],_0x2e52('0x33'),_0x367db7,_0x23d26d);});_0x96d971['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2e52('0x33'),'accept',_0x96d971[_0x2e52('0x18')]['getSuggestionCallback'](_0x2e52('0x10'),null,_0x2e52('0x7'))),_0x96d971['_suggestionFactory'][_0x2e52('0x9')](_0x2e52('0x10'),_0x2e52('0x33'),_0x2e52('0x7'),(_0x3fde0d,_0x4bc90d)=>this[_0x2e52('0x23')](this[_0x2e52('0x33')],_0x3fde0d,_0x4bc90d)),_0x96d971[_0x2e52('0x18')][_0x2e52('0x9')](_0x2e52('0x10'),_0x2e52('0x33'),_0x2e52('0xc'),()=>!0x1);}_0x96d971['_descriptionFactory'][_0x2e52('0x1b')](_0x14f262=>this['handleSuggestionDescription'](_0x14f262));}[_0x2e52('0x15')](_0x5811ca,_0x53625a,_0x14ce3c,_0xc57789,_0x59a55a,_0xc52272){const _0x23fc83=this[_0x2e52('0x12')][_0x2e52('0xb')][_0x2e52('0x28')]('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc52272['batch'],()=>{for(const _0x159e85 of _0x53625a){if(this[_0x2e52('0x14')](_0x159e85,_0xc57789))_0x59a55a(_0xc52272);else{const _0x317c3d={};for(const _0x42c13c of _0x14ce3c){const _0x416178=_0x159e85[_0x2e52('0x20')](_0x42c13c);void 0x0!==_0x416178&&(_0x317c3d[_0x42c13c]=_0x416178);}_0x59a55a(_0xc52272),_0x23fc83[_0x2e52('0x31')](_0x159e85,{'commandParams':[_0x317c3d]},[],_0xc57789);}}});}[_0x2e52('0x23')](_0x705dee,_0x4fa7dd,_0x42ad8d){const _0x5a8e69=_0x4fa7dd[0x0]['start'][_0x2e52('0x26')],_0x195452=_0x42ad8d['commandParams'][0x0];this[_0x2e52('0x12')][_0x2e52('0x32')][_0x2e52('0x1e')](_0x55585c=>{for(const _0x28baac of _0x705dee)void 0x0!==_0x195452[_0x28baac]?_0x55585c['setAttribute'](_0x28baac,_0x195452[_0x28baac],_0x5a8e69):_0x55585c[_0x2e52('0x25')](_0x28baac,_0x5a8e69);});}[_0x2e52('0x11')](_0x29d3ac){if(_0x29d3ac[_0x2e52('0x30')])switch(_0x29d3ac[_0x2e52('0xf')]){case _0x2e52('0x6'):return{'type':_0x2e52('0x37'),'content':_0x1c12dd(this[_0x2e52('0x12')]['locale'],_0x2e52('0x22'))};case'tableCellProperties':return{'type':'format','content':_0x1c12dd(this['editor'][_0x2e52('0x5')],_0x2e52('0xe'))};}}[_0x2e52('0x14')](_0x5259cd,_0x53d217){const _0x3185d0=this[_0x2e52('0x12')]['plugins'][_0x2e52('0x28')](_0x2e52('0x19'));for(const _0x33f18a of _0x3185d0[_0x2e52('0x4')]({'skipNotAttached':!0x0})){const _0x5cf35f=_0x33f18a[_0x2e52('0x16')]();if(_0x33f18a[_0x2e52('0xf')]===_0x53d217&&_0x5cf35f===_0x5259cd)return _0x33f18a;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36b6=['insertTemplate','enableCommand','afterInit','Template','plugins'];(function(_0x6aedb2,_0x36b6a7){const _0x449be2=function(_0x335571){while(--_0x335571){_0x6aedb2['push'](_0x6aedb2['shift']());}};_0x449be2(++_0x36b6a7);}(_0x36b6,0x80));const _0x449b=function(_0x6aedb2,_0x36b6a7){_0x6aedb2=_0x6aedb2-0x0;let _0x449be2=_0x36b6[_0x6aedb2];return _0x449be2;};import{Plugin as _0x4fd4c3}from'ckeditor5/src/core';export default class bt extends _0x4fd4c3{[_0x449b('0x4')](){const _0x1c39e7=this['editor'];_0x1c39e7['plugins']['has'](_0x449b('0x0'))&&_0x1c39e7[_0x449b('0x1')]['get']('TrackChangesEditing')[_0x449b('0x3')](_0x449b('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c43=['createRange','_splitMarkerName','_descriptionFactory','model','ELEMENT_TITLE','isTouching','afterInit','editor','locale','getNearestSelectionRange','updateMarker','forward','differ','isEqual','start','get','title-content','removeMarker','schema','suggestion','Title','getChangedMarkers','newRange','has','document','nodeBefore','isCollapsed','from','registerElementLabel','plugins','end'];(function(_0x437b70,_0x1c43c4){const _0x4a8715=function(_0x50d0e7){while(--_0x50d0e7){_0x437b70['push'](_0x437b70['shift']());}};_0x4a8715(++_0x1c43c4);}(_0x1c43,0x17f));const _0x4a87=function(_0x437b70,_0x1c43c4){_0x437b70=_0x437b70-0x0;let _0x4a8715=_0x1c43[_0x437b70];return _0x4a8715;};import{Plugin as _0x2a1b80}from'ckeditor5/src/core';import{getTranslation as _0x16261a}from'../utils/common-translations';export default class It extends _0x2a1b80{[_0x4a87('0x1a')](){const _0x33fce2=this[_0x4a87('0x1b')];if(!_0x33fce2[_0x4a87('0x12')][_0x4a87('0xc')](_0x4a87('0x9')))return;const _0x2fefb9=_0x33fce2[_0x4a87('0x12')][_0x4a87('0x4')]('TrackChangesEditing');_0x2fefb9[_0x4a87('0x16')][_0x4a87('0x11')]('title-content',()=>_0x16261a(_0x33fce2[_0x4a87('0x1c')],_0x4a87('0x18'))),_0x33fce2[_0x4a87('0x17')][_0x4a87('0xd')]['registerPostFixer'](_0x44bef7=>{let _0x527356=!0x1;const _0x30adaf=Array[_0x4a87('0x10')](_0x33fce2[_0x4a87('0x17')][_0x4a87('0xd')][_0x4a87('0x1')][_0x4a87('0xa')]());for(const {name:_0x5e3e07,data:_0x1bc4ad}of _0x30adaf){const {group:_0x412a1b}=_0x2fefb9[_0x4a87('0x15')](_0x5e3e07);if(_0x4a87('0x8')!==_0x412a1b||!_0x1bc4ad['newRange'])continue;const _0x3a7667=_0x1bc4ad[_0x4a87('0xb')],_0x151e19=_0x3a7667[_0x4a87('0x13')][_0x4a87('0xe')];if(!_0x151e19||!_0x151e19['is']('element',_0x4a87('0x5')))continue;if(!_0x3a7667['start'][_0x4a87('0x19')](_0x3a7667[_0x4a87('0x13')]))continue;const _0x1ff586=_0x33fce2[_0x4a87('0x17')][_0x4a87('0x7')][_0x4a87('0x1d')](_0x3a7667[_0x4a87('0x13')],_0x4a87('0x0'));if(_0x1ff586&&_0x1ff586[_0x4a87('0xf')]){const _0x4d22b5=_0x44bef7[_0x4a87('0x14')](_0x3a7667[_0x4a87('0x3')],_0x1ff586['start']);_0x4d22b5[_0x4a87('0x2')](_0x3a7667)||(_0x44bef7[_0x4a87('0x1e')](_0x5e3e07,{'range':_0x4d22b5}),_0x527356=!0x0);}_0x527356||(_0x44bef7[_0x4a87('0x6')](_0x5e3e07),_0x527356=!0x0);}return _0x527356;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44be=['has','editor','UndoEditing','enableCommand','TrackChangesEditing','undo','get','redo','plugins'];(function(_0x1d1e57,_0x44bec2){const _0x209ea9=function(_0x397e9a){while(--_0x397e9a){_0x1d1e57['push'](_0x1d1e57['shift']());}};_0x209ea9(++_0x44bec2);}(_0x44be,0xde));const _0x209e=function(_0x1d1e57,_0x44bec2){_0x1d1e57=_0x1d1e57-0x0;let _0x209ea9=_0x44be[_0x1d1e57];return _0x209ea9;};import{Plugin as _0x4d2edc}from'ckeditor5/src/core';export default class vt extends _0x4d2edc{['afterInit'](){const _0x626218=this[_0x209e('0x4')],_0x4085f5=_0x626218[_0x209e('0x2')][_0x209e('0x0')](_0x209e('0x7'));_0x626218['plugins'][_0x209e('0x3')](_0x209e('0x5'))&&(_0x4085f5['enableCommand'](_0x209e('0x8')),_0x4085f5[_0x209e('0x6')](_0x209e('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb953=['getCustomProperty','ck-suggestion-marker-','createUIElement','isLimit','writer','item','insert','type','start','plugins','includes','listIndent','consumable','getWalker','get','nextSibling','TrackChangesEditing','name','getItems','element','addHighlight','activeMarkers','test','model','toViewPosition','mapper','isContent','schema','previousPosition','addClass','createRangeOn','markerName','getAttribute','push','markerRange','toViewElement','isBlock','listItem'];(function(_0x5f2b0a,_0xb95313){const _0x5dc19c=function(_0xabe457){while(--_0xabe457){_0x5f2b0a['push'](_0x5f2b0a['shift']());}};_0x5dc19c(++_0xb95313);}(_0xb953,0x1f4));const _0x5dc1=function(_0x5f2b0a,_0xb95313){_0x5f2b0a=_0x5f2b0a-0x0;let _0x5dc19c=_0xb953[_0x5f2b0a];return _0x5dc19c;};export function getRangesWithAttribute(_0x31bfe0,_0x3016b6,_0x5291a1){const _0x5cc529=[];for(const _0xba791b of _0x3016b6[_0x5dc1('0xc')]())_0xba791b['hasAttribute'](_0x31bfe0)&&_0x5cc529[_0x5dc1('0x1b')](_0x5291a1[_0x5dc1('0x18')](_0xba791b));return _0x5cc529;}export function getElementsAffectedByListItemRename(_0x444263){const _0x4491cf=[];if(_0x444263['is'](_0x5dc1('0xd'),'listItem')){let _0xf9ff45=_0x444263[_0x5dc1('0x9')];for(;_0xf9ff45&&_0xf9ff45['is'](_0x5dc1('0xd'),_0x5dc1('0x1f'))&&_0xf9ff45[_0x5dc1('0x1a')](_0x5dc1('0x5'))>0x0;)_0x4491cf['push'](_0xf9ff45),_0xf9ff45=_0xf9ff45['nextSibling'];}return _0x4491cf;}export function downcastSplitMergeMarker(_0x138c35,_0x569ae3,{showActiveMarker:_0x4da96b=!0x0}={}){const _0x2f7aea=_0x138c35[_0x5dc1('0x3')][_0x5dc1('0x8')](_0x5dc1('0xa'));return(_0x1c38c6,_0x342a9d,_0x4c5427)=>{if(!_0x4c5427[_0x5dc1('0x6')][_0x5dc1('0x10')](_0x342a9d[_0x5dc1('0x1c')],_0x1c38c6[_0x5dc1('0xb')]))return;const _0x3b7750=_0x342a9d[_0x5dc1('0x1c')][_0x5dc1('0x7')](),_0x220c5e=_0x342a9d[_0x5dc1('0x1c')][_0x5dc1('0x2')],_0x2a18d4=_0x138c35[_0x5dc1('0x11')][_0x5dc1('0x15')];let _0x4bff4e=null,_0x29df98=null,_0xbc9f77=!0x1,_0x3117fc=!0x1;for(const _0x670a64 of _0x3b7750){const _0x2b9ea2=_0x670a64[_0x5dc1('0x25')];_0xbc9f77=_0xbc9f77||_0x2a18d4[_0x5dc1('0x14')](_0x2b9ea2);const _0xccf0be=_0x4c5427['mapper'][_0x5dc1('0x1d')](_0x2b9ea2);if(_0xccf0be&&_0xccf0be[_0x5dc1('0x20')](_0x5dc1('0xe')))return;'elementEnd'==_0x670a64[_0x5dc1('0x1')]&&(_0x2a18d4[_0x5dc1('0x1e')](_0x2b9ea2)&&!_0x2a18d4[_0x5dc1('0x23')](_0x2b9ea2)&&(_0x2b9ea2[_0x5dc1('0x9')]||_0x220c5e['isAtEnd']?_0x4bff4e&&_0x4bff4e['parent']==_0x2b9ea2||(_0x4bff4e=_0x2b9ea2,_0x252676(_0x670a64[_0x5dc1('0x16')]),_0x3117fc=!0x0):_0x29df98=_0x29df98||_0x670a64[_0x5dc1('0x16')]));}function _0x252676(_0x41f107){const _0x50fcfb=_0x4c5427[_0x5dc1('0x24')][_0x5dc1('0x22')]('span',{'class':_0x5dc1('0x21')+_0x569ae3}),_0x50db81=_0x4c5427['mapper'][_0x5dc1('0x12')](_0x41f107);_0x4da96b&&_0x2f7aea[_0x5dc1('0xf')][_0x5dc1('0x4')](_0x342a9d[_0x5dc1('0x19')])&&_0x4c5427[_0x5dc1('0x24')][_0x5dc1('0x17')]('ck-suggestion-marker--active',_0x50fcfb),_0x4c5427[_0x5dc1('0x24')][_0x5dc1('0x0')](_0x50db81,_0x50fcfb),_0x4c5427[_0x5dc1('0x13')]['bindElementToMarker'](_0x50fcfb,_0x342a9d[_0x5dc1('0x19')]);}_0xbc9f77||_0x3117fc||!_0x29df98||_0x252676(_0x29df98);};}
|