@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231025.0 → 0.0.0-nightly-20231026.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 _0x5bff=['add','registerPostFixer','getSelectionAffectedTableCells','options','tableCellBorderWidth','getChangedMarkers','editing','tableCellHorizontalAlignment','selection','cell','*Replace\x20table\x20cells*','reduce','startsWith','map','editingDowncast','rowInsertionRanges','tablePaste','removeMarker','getContainedElement','updateMarker','previous','plugins','first','next','registerDescriptionCallback','nodeAfter','accept','suggestion','keys','remove','documentSelection','getRanges','document','subType','markerToHighlight','TableUtils','markers','length','insertion','get','set','suggestionLoaded','conversion','view','rootName','ck-suggestion-marker-insertion','createRangeIn','getAttributes','low','discard','for','insert','insertColumns','createTableWalker','columns','deletionRanges','unwrap','_isForcedDefaultExecutionBlock','_createdBatches','has','registerCustomCallback','markMultiRangeInsertion','elementToElement','tableCellSuggestion','attributes','join','find','change','cells','_replaceTableSlotCell','some','previousSibling','clipboardOutput','rowInsertionIndexes','markMultiRangeBlockFormat','formatBlock','TrackChangesEditing','getChanges','isEqual','_tablePostFixingSubtypes','oldRange','getShiftedBy','requires','schema','push','getRange','paragraph','afterInit','suggestion:formatBlock:tablePasteCell','insertionRanges','findAncestor','isInContent','createRange','getRowIndexes','name','editor','tablePasteRow','stop','fill','getChildren','tableCellVerticalAlignment','high','getColumns','tablePasteCell','root','suggestionUnloaded','redo','insertRows','wrap','type','tableCellBorderColor','getMarkers','setAttribute','tablePasteChainId','end','nextSibling','endRow','ck-suggestion-marker--active','differ','getItems','column','TableClipboard','$graveyard','hasSuggestion','removeMarkers','model','getSuggestion','_suggestionFactory','columnInsertionIndexes','getRows','tableCell','containsRange','newRange','getSuggestionCallback','removeColumns','endColumn','value','register','commands','position','author','_splitMarkerName','isEmpty','tablePasteColumn','Users','tableCellBackgroundColor','markerName','createElement','createRangeOn','markerAttributes','forceDefaultExecution','locale','from','return','getSuggestions','filter','element','suggestion-td','fromEntries','getTableIfOnlyTableInContent','_getCoordsForCells','activeMarkers','includes','deletion','columnInsertionRanges'];(function(_0x2a8194,_0x5bff4d){const _0x3e0c6b=function(_0xe7633a){while(--_0xe7633a){_0x2a8194['push'](_0x2a8194['shift']());}};_0x3e0c6b(++_0x5bff4d);}(_0x5bff,0x116));const _0x3e0c=function(_0x2a8194,_0x5bff4d){_0x2a8194=_0x2a8194-0x0;let _0x3e0c6b=_0x5bff[_0x2a8194];return _0x3e0c6b;};import{getTranslation as _0x271a22}from'../utils/common-translations';import{Plugin as _0x3bf79b}from'ckeditor5/src/core';import{uid as _0x46046d,priorities as _0x459db8}from'ckeditor5/src/utils';import _0x4b647e from'./table';const le=[_0x3e0c('0x38'),_0x3e0c('0xa2'),'tableCellBorderStyle',_0x3e0c('0x3b'),_0x3e0c('0x98'),_0x3e0c('0x20'),'tableCellPadding'],ae=Object['fromEntries'](le['map'](_0x48a04f=>[_0x48a04f,null]));export default class wt extends _0x3bf79b{static get[_0x3e0c('0x86')](){return[_0x4b647e];}[_0x3e0c('0x8b')](){const _0x1b61f8=this[_0x3e0c('0x93')];if(!_0x1b61f8[_0x3e0c('0x49')][_0x3e0c('0x6f')](_0x3e0c('0x8')))return;const _0x19d1db=_0x1b61f8[_0x3e0c('0x49')][_0x3e0c('0x5b')](_0x3e0c('0x80')),_0x47d5ed=_0x1b61f8[_0x3e0c('0x49')][_0x3e0c('0x5b')](_0x3e0c('0x57')),_0xe6a1b=_0x1b61f8[_0x3e0c('0x49')][_0x3e0c('0x5b')](_0x4b647e),_0x4c0efb=_0x1b61f8[_0x3e0c('0x49')][_0x3e0c('0x5b')]('TableClipboard');_0xe6a1b[_0x3e0c('0x83')][_0x3e0c('0x88')](_0x3e0c('0x94'),_0x3e0c('0x1e')),_0x1b61f8['model'][_0x3e0c('0x87')][_0x3e0c('0x18')](_0x3e0c('0x73'),{'allowIn':_0x3e0c('0x11'),'allowContentOf':_0x3e0c('0x11'),'isLimit':!0x0}),_0x1b61f8['conversion'][_0x3e0c('0x72')]({'model':_0x3e0c('0x73'),'view':_0x3e0c('0x2c')});let _0x579112=null;_0x1b61f8[_0x3e0c('0xc')]['on']('insertContent',(_0x45f22a,_0x2f2565)=>{const [_0x2fe5f5,_0x11746d]=_0x2f2565,_0x19e0ec=_0x2f2565[_0x2f2565['length']-0x1];_0x19e0ec&&_0x19e0ec[_0x3e0c('0x25')]||_0x19d1db[_0x3e0c('0x6d')]||this[_0x3e0c('0x93')][_0x3e0c('0x19')][_0x3e0c('0x5b')]('trackChanges')[_0x3e0c('0x17')]&&function(_0x2e4c6a,_0x13ed4c,_0x4ca538,_0x1fffca,_0x58dbf1){if(_0x13ed4c&&!_0x13ed4c['is'](_0x3e0c('0x52')))return!0x1;const _0x4c6b38=_0x58dbf1[_0x3e0c('0x2e')](_0x2e4c6a,_0x4ca538);if(!_0x4c6b38||!fe(_0x4c6b38,void 0x0,_0x1fffca))return!0x1;const _0x43739e=_0x1fffca[_0x3e0c('0x36')](_0x4ca538[_0x3e0c('0x54')][_0x3e0c('0x3c')]);if(!_0x43739e[_0x3e0c('0x59')])return!0x1;const _0x2c7f14=_0x43739e[0x0][_0x3e0c('0x8e')]('table'),_0xc7bf38=_0x1fffca[_0x3e0c('0x91')](_0x43739e),_0x14970d=_0x1fffca['getColumnIndexes'](_0x43739e),_0x1459b0={'startRow':_0xc7bf38[_0x3e0c('0x4a')],'endRow':_0xc7bf38['last'],'startColumn':_0x14970d[_0x3e0c('0x4a')],'endColumn':_0x14970d['last']};return 0x1==_0x43739e[_0x3e0c('0x59')]&&(_0x1459b0[_0x3e0c('0x3')]+=_0x1fffca[_0x3e0c('0x10')](_0x4c6b38)-0x1,_0x1459b0[_0x3e0c('0x16')]+=_0x1fffca[_0x3e0c('0x9a')](_0x4c6b38)-0x1),fe(_0x2c7f14,_0x1459b0,_0x1fffca);}(_0x2fe5f5,_0x11746d,_0x1b61f8[_0x3e0c('0xc')],_0x47d5ed,_0x4c0efb)&&(_0x45f22a[_0x3e0c('0x95')](),_0x579112={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1b61f8[_0x3e0c('0xc')][_0x3e0c('0x77')](()=>{_0x1b61f8['model']['insertContent'](_0x2f2565[0x0],_0x2f2565[0x1],_0x2f2565[0x2],{'forceDefaultExecution':!0x0});const _0x3ffce1=_0x46046d(),{rowInsertionRanges:_0x2dc5e7,columnInsertionRanges:_0x43f62b,insertionRanges:_0x21e5e0,deletionRanges:_0x30df45,cells:_0x4cdd3e}=_0x579112;_0x2dc5e7['length']&&_0x19d1db[_0x3e0c('0x71')](_0x2dc5e7,_0x3e0c('0x94'),{'tablePasteChainId':_0x3ffce1}),_0x43f62b[_0x3e0c('0x59')]&&_0x19d1db[_0x3e0c('0x71')](_0x43f62b,'tablePasteColumn',{'tablePasteChainId':_0x3ffce1}),_0x21e5e0[_0x3e0c('0x59')]&&_0x19d1db[_0x3e0c('0x71')](_0x21e5e0,'tablePaste',{'tablePasteChainId':_0x3ffce1,'skipNestingCheck':!0x0}),_0x30df45[_0x3e0c('0x59')]&&_0x19d1db['markMultiRangeDeletion'](_0x30df45,'tablePaste',{'tablePasteChainId':_0x3ffce1,'skipNestingCheck':!0x0});const _0x529684=_0x19d1db[_0x3e0c('0x7e')](_0x4cdd3e[_0x3e0c('0x41')](({element:_0x330667})=>_0x330667),{'formatGroupId':_0x46046d()},[],_0x3e0c('0x9b'),{'tablePasteChainId':_0x3ffce1});if(_0x529684){const _0x2a88f8=_0x529684[_0x3e0c('0xa3')](),_0x564212=[];for(const {element:_0x4a93eb,attributes:_0x5e7847}of _0x4cdd3e){if(!_0x5e7847)continue;const _0x5188ab=_0x1b61f8[_0x3e0c('0xc')][_0x3e0c('0x23')](_0x4a93eb),_0xc85c15=_0x2a88f8[_0x3e0c('0x76')](_0x2de41f=>_0x2de41f[_0x3e0c('0x89')]()[_0x3e0c('0x82')](_0x5188ab));_0xc85c15&&_0x564212[_0x3e0c('0x88')]([_0xc85c15['name'],_0x5e7847]);}_0x564212[_0x3e0c('0x59')]&&_0x529684[_0x3e0c('0xa4')](_0x3e0c('0x24'),Object[_0x3e0c('0x2d')](_0x564212));}_0x579112=null;}));},{'priority':_0x459db8['high']+0xa}),_0x1b61f8[_0x3e0c('0x49')][_0x3e0c('0x5b')]('TableClipboard')['on'](_0x3e0c('0x79'),(_0x3fa1be,_0x3fd137)=>{const [_0x47c646,_0x42a23f,,_0x3ce59a]=_0x3fd137;if(!_0x579112)return;_0x3fa1be['stop']();const _0x11dcbd=_0x47c646[_0x3e0c('0x3d')],_0x20ac6c=_0x42a23f,_0x3bca9d=ce(_0x11dcbd),_0x581be3=ce(_0x20ac6c);_0x3fa1be[_0x3e0c('0x28')]=_0x11dcbd;let _0x4617a5=null,_0x88a158=null;if(_0x581be3||_0x3bca9d){if(_0x3bca9d&&!_0x581be3){_0x3ce59a[_0x3e0c('0x51')](_0x11dcbd['getChild'](0x0));for(const _0x3bf095 of Array[_0x3e0c('0x27')](_0x20ac6c[_0x3e0c('0x97')]()))_0x3ce59a[_0x3e0c('0x67')](_0x3bf095,_0x11dcbd,_0x3e0c('0x1'));const _0x49940d=_0x579112[_0x3e0c('0x7d')][_0x3e0c('0x31')](_0x47c646['row']),_0x14c8d1=_0x579112[_0x3e0c('0xf')][_0x3e0c('0x31')](_0x47c646[_0x3e0c('0x7')]);_0x49940d||_0x14c8d1||(_0x4617a5=_0x3ce59a[_0x3e0c('0x62')](_0x11dcbd));}else _0x581be3&&!_0x3bca9d&&(_0x88a158=_0x3ce59a[_0x3e0c('0x62')](_0x11dcbd));}else{const _0x5766c9=_0x3ce59a[_0x3e0c('0x22')](_0x3e0c('0x73')),_0x57b90a=_0x3ce59a[_0x3e0c('0x22')](_0x3e0c('0x73'));_0x3ce59a[_0x3e0c('0xa0')](_0x3ce59a['createRangeIn'](_0x11dcbd),_0x57b90a),_0x3ce59a['insert'](_0x5766c9,_0x11dcbd,0x0);for(const _0x117e42 of Array[_0x3e0c('0x27')](_0x20ac6c[_0x3e0c('0x97')]()))_0x3ce59a['insert'](_0x117e42,_0x5766c9,_0x3e0c('0x1'));_0x4617a5=_0x3ce59a[_0x3e0c('0x23')](_0x5766c9),_0x88a158=_0x3ce59a[_0x3e0c('0x23')](_0x57b90a);}const _0x40c0b0=Array[_0x3e0c('0x27')](_0x20ac6c[_0x3e0c('0x63')]())[_0x3e0c('0x2a')](([_0x596e98])=>le[_0x3e0c('0x31')](_0x596e98));_0x579112[_0x3e0c('0x78')]['push']({'element':_0x11dcbd,'attributes':_0x40c0b0[_0x3e0c('0x59')]?Object['fromEntries'](_0x40c0b0):null}),_0x4617a5&&_0x579112[_0x3e0c('0x8d')][_0x3e0c('0x88')](_0x4617a5),_0x88a158&&_0x579112[_0x3e0c('0x6b')][_0x3e0c('0x88')](_0x88a158);},{'priority':_0x3e0c('0x99')}),_0x47d5ed['on'](_0x3e0c('0x68'),(_0x405510,_0x1e67e0)=>{const [_0x15d436,_0x538220={}]=_0x1e67e0;if(!_0x579112)return;const _0xf5ac06=_0x538220['at']||0x0,_0x39ec66=_0x538220[_0x3e0c('0x6a')]||0x1;_0x579112[_0x3e0c('0xf')]=new Array(_0x39ec66)[_0x3e0c('0x96')](_0xf5ac06)[_0x3e0c('0x41')]((_0x20a10a,_0x1bd198)=>_0x20a10a+_0x1bd198);for(const {cell:_0x34329f}of _0x47d5ed['createTableWalker'](_0x15d436,{'startColumn':_0xf5ac06,'endColumn':_0xf5ac06+_0x39ec66-0x1}))_0x579112[_0x3e0c('0x33')][_0x3e0c('0x88')](_0x1b61f8[_0x3e0c('0xc')]['createRangeOn'](_0x34329f));},{'priority':_0x3e0c('0x64')}),_0x47d5ed['on'](_0x3e0c('0x9f'),(_0x50fba7,_0x399885)=>{const [_0x14c7a5,_0x43c4c5={}]=_0x399885;if(!_0x579112)return;const _0x1b2fba=_0x43c4c5['at']||0x0,_0x2518e7=_0x43c4c5['rows']||0x1;_0x579112[_0x3e0c('0x7d')]=new Array(_0x2518e7)['fill'](_0x1b2fba)[_0x3e0c('0x41')]((_0x2322ed,_0x319263)=>_0x2322ed+_0x319263);for(const {cell:_0x5dd4c1}of _0x47d5ed['createTableWalker'](_0x14c7a5,{'startRow':_0x1b2fba,'endRow':_0x1b2fba+_0x2518e7-0x1}))_0x579112[_0x3e0c('0x43')][_0x3e0c('0x88')](_0x1b61f8[_0x3e0c('0xc')][_0x3e0c('0x23')](_0x5dd4c1));},{'priority':'low'}),_0x19d1db['_descriptionFactory'][_0x3e0c('0x4c')](_0xa2c81d=>{if(_0xa2c81d['subType']&&_0xa2c81d[_0x3e0c('0x55')][_0x3e0c('0x40')](_0x3e0c('0x44')))return _0xa2c81d[_0x3e0c('0x48')]?{}:{'type':'insertion','content':_0x271a22(_0x1b61f8[_0x3e0c('0x26')],_0x3e0c('0x3e'))};});const _0x3f095e=()=>!0x1;for(const _0x2c1209 of[_0x3e0c('0x44'),_0x3e0c('0x1e'),'tablePasteRow',_0x3e0c('0x9b')])_0x19d1db['_suggestionFactory']['registerCustomCallback'](_0x3e0c('0x5a'),_0x2c1209,_0x3e0c('0x75'),_0x3f095e),_0x19d1db[_0x3e0c('0xe')][_0x3e0c('0x70')]('deletion',_0x2c1209,_0x3e0c('0x75'),_0x3f095e),_0x19d1db[_0x3e0c('0xe')][_0x3e0c('0x70')](_0x3e0c('0x7f'),_0x2c1209,_0x3e0c('0x75'),_0x3f095e);_0x19d1db[_0x3e0c('0xe')]['registerCustomCallback'](_0x3e0c('0x7f'),_0x3e0c('0x9b'),'discard',_0x3f095e),_0x19d1db['_suggestionFactory'][_0x3e0c('0x70')](_0x3e0c('0x7f'),_0x3e0c('0x9b'),_0x3e0c('0x4e'),(_0x54a468,_0x12e4b0,_0x130d81)=>{const _0x34a28a=_0x54a468[_0x3e0c('0x41')](_0x22fa13=>_0x22fa13['getContainedElement']())['filter'](_0x7f53c4=>_0x7f53c4),_0x183d51=new Map(_0x34a28a[_0x3e0c('0x41')](_0x53e6e5=>[_0x53e6e5,null]));if(_0x579112)for(const {element:_0x15dbcb,attributes:_0x10ab4c}of _0x579112[_0x3e0c('0x78')])_0x10ab4c&&_0x183d51[_0x3e0c('0x5c')](_0x15dbcb,_0x10ab4c);else{if(_0x130d81&&_0x130d81[_0x3e0c('0x24')])for(const [_0x73a3cb,_0x2b56c8]of Object['entries'](_0x130d81[_0x3e0c('0x24')])){const _0x8f9201=_0x1b61f8['model'][_0x3e0c('0x58')][_0x3e0c('0x5b')](_0x73a3cb),_0x2d3e82=_0x8f9201?_0x8f9201[_0x3e0c('0x89')]()[_0x3e0c('0x46')]():null;_0x2d3e82&&_0x183d51[_0x3e0c('0x5c')](_0x2d3e82,_0x2b56c8);}}_0x1b61f8[_0x3e0c('0xc')][_0x3e0c('0x77')](_0x4490b0=>{for(const [_0x20c243,_0x21c407]of _0x183d51)_0x4490b0['setAttributes']({...ae,..._0x21c407},_0x20c243);});});const _0x599321=(_0x3b5ea9,_0xd50e59)=>{_0x19d1db[_0x3e0c('0xe')][_0x3e0c('0x70')](_0x3b5ea9,_0x3e0c('0x44'),_0xd50e59,(_0x4764aa,_0x5991ef,_0x3fbf1a)=>{_0x1b61f8[_0x3e0c('0xc')]['change'](_0x2dcc2c=>{const _0x3adb54=[];for(const _0x576fc5 of _0x4764aa){const _0xccac7f=_0x576fc5['start'][_0x3e0c('0x4d')];_0xccac7f['is'](_0x3e0c('0x2b'),_0x3e0c('0x73'))&&_0x3adb54[_0x3e0c('0x88')](_0xccac7f);}_0x19d1db[_0x3e0c('0xe')][_0x3e0c('0x14')](_0x3b5ea9,null,_0xd50e59)(_0x4764aa,_0x5991ef,_0x3fbf1a);for(const _0x17611d of _0x3adb54)_0x3e0c('0x9')!=_0x17611d[_0x3e0c('0x9c')][_0x3e0c('0x60')]&&_0x2dcc2c[_0x3e0c('0x6c')](_0x17611d);});});};_0x599321('insertion','accept'),_0x599321(_0x3e0c('0x5a'),_0x3e0c('0x65')),_0x599321(_0x3e0c('0x32'),'accept'),_0x599321('deletion',_0x3e0c('0x65')),_0x19d1db[_0x3e0c('0xe')][_0x3e0c('0x70')](_0x3e0c('0x5a'),_0x3e0c('0x94'),_0x3e0c('0x65'),_0x5dcb97=>{const _0x1c6d6c=_0x5dcb97[_0x3e0c('0x41')](_0x29f726=>_0x29f726['getContainedElement']()),_0xccea9d=_0x1c6d6c[0x0]['findAncestor']('table'),{minRow:_0x631fe1,maxRow:_0x185cf7}=_0xe6a1b[_0x3e0c('0x2f')](_0x1c6d6c);_0x47d5ed['removeRows'](_0xccea9d,{'at':_0x631fe1,'rows':_0x185cf7-_0x631fe1+0x1});}),_0x19d1db['_suggestionFactory'][_0x3e0c('0x70')](_0x3e0c('0x5a'),'tablePasteColumn',_0x3e0c('0x65'),_0x41d2e8=>{const _0x28060d=_0x41d2e8[_0x3e0c('0x41')](_0x12dd5c=>_0x12dd5c['getContainedElement']()),_0x232bea=_0x28060d[0x0]['findAncestor']('table'),{minColumn:_0x708976,maxColumn:_0x3ee245}=_0xe6a1b['_getCoordsForCells'](_0x28060d);_0x47d5ed[_0x3e0c('0x15')](_0x232bea,{'at':_0x708976,'columns':_0x3ee245-_0x708976+0x1});});const _0x590b8e=(_0x3f63b3,_0x523d69)=>{if(!_0x523d69['subType']||!_0x523d69[_0x3e0c('0x55')]['startsWith'](_0x3e0c('0x44')))return;const _0x3acbda=_0x523d69[_0x3e0c('0x74')][_0x3e0c('0x0')],_0x1c770c=_0x19d1db[_0x3e0c('0x29')]()[_0x3e0c('0x2a')](_0x48b85b=>_0x48b85b[_0x3e0c('0x8f')]&&_0x48b85b['attributes']&&_0x48b85b[_0x3e0c('0x74')]['tablePasteChainId']==_0x3acbda);_0x1c770c[_0x3e0c('0x59')]&&_0x523d69['getAllAdjacentSuggestions']()[_0x3e0c('0x59')]!=_0x1c770c[_0x3e0c('0x59')]&&_0x1c770c[_0x3e0c('0x3f')]((_0xb8d63c,_0x361dd5)=>(_0xb8d63c[_0x3e0c('0x4b')]=_0x361dd5,_0x361dd5[_0x3e0c('0x48')]=_0xb8d63c,_0x361dd5));};function _0xfd3450(_0x187c3d,_0x4d0dbf=!0x0){const {id:_0x43afe1}=_0x19d1db[_0x3e0c('0x1c')](_0x187c3d[_0x3e0c('0x21')]),_0x16508c=['ck-suggestion-marker',_0x3e0c('0x61')],_0x20f0b0=_0x19d1db[_0x3e0c('0x30')][_0x3e0c('0x31')](_0x187c3d[_0x3e0c('0x21')]);return _0x20f0b0&&_0x16508c[_0x3e0c('0x88')](_0x3e0c('0x4')),{'classes':_0x16508c,'attributes':{'data-suggestion':_0x43afe1},'priority':_0x20f0b0&&_0x4d0dbf?0xbc2:0xbb8};}_0x19d1db['on'](_0x3e0c('0x5d'),_0x590b8e,{'priority':_0x3e0c('0x99')}),_0x19d1db['on'](_0x3e0c('0x9d'),_0x590b8e,{'priority':_0x3e0c('0x99')}),_0x1b61f8[_0x3e0c('0xc')][_0x3e0c('0x54')][_0x3e0c('0x35')](()=>{let _0x3a2b84=!0x1;const _0x251a20=Array[_0x3e0c('0x27')](_0x1b61f8[_0x3e0c('0xc')]['document'][_0x3e0c('0x5')][_0x3e0c('0x39')]());for(const {name:_0x77795,data:_0x44f5dd}of _0x251a20){const {group:_0x56ddc6,type:_0x495faa,id:_0x158fef}=_0x19d1db['_splitMarkerName'](_0x77795);if(_0x3e0c('0x4f')!=_0x56ddc6||_0x3e0c('0x32')!=_0x495faa||_0x44f5dd['oldRange'])continue;if(!_0x19d1db[_0x3e0c('0xa')](_0x158fef))continue;const _0x40e0f8=_0x19d1db[_0x3e0c('0xd')](_0x158fef)['getRanges'](),_0x1a58b0=_0x1b61f8[_0x3e0c('0x49')]['get']('Users')['me'];for(const _0x342178 of _0x19d1db['getSuggestions']()){if(!_0x342178[_0x3e0c('0x8f')]||_0x342178[_0x3e0c('0x1b')]!=_0x1a58b0)continue;if(_0x3e0c('0x7f')!=_0x342178[_0x3e0c('0xa1')]||_0x3e0c('0x9b')!=_0x342178[_0x3e0c('0x55')])continue;if(_0x342178[_0x3e0c('0x53')]()['every'](_0x1e11a7=>_0x40e0f8[_0x3e0c('0x7a')](_0x25e289=>_0x25e289['containsRange'](_0x1e11a7,!0x0))))for(const _0x4f6fe3 of _0x342178['getAllAdjacentSuggestions']())_0x4f6fe3[_0x3e0c('0x8f')]&&(_0x4f6fe3[_0x3e0c('0x65')](),_0x3a2b84=!0x0);}}return _0x3a2b84;}),_0x1b61f8[_0x3e0c('0xc')]['document'][_0x3e0c('0x35')](_0x3e8677=>{const _0x450d31=_0x1b61f8[_0x3e0c('0x19')][_0x3e0c('0x5b')](_0x3e0c('0x9e'));if(!_0x450d31||!_0x450d31[_0x3e0c('0x6e')]['has'](_0x3e8677['batch']))return!0x1;let _0x39c637=!0x1;const _0x3031e2=_0x1b61f8[_0x3e0c('0x49')]['get'](_0x3e0c('0x1f'))['me'],_0x1fa096=_0x1b61f8[_0x3e0c('0xc')][_0x3e0c('0x54')][_0x3e0c('0x5')][_0x3e0c('0x81')](),_0x313ddd=Array[_0x3e0c('0x27')](_0x1b61f8[_0x3e0c('0xc')][_0x3e0c('0x54')][_0x3e0c('0x5')][_0x3e0c('0x39')]())['filter'](({name:_0xbba164,data:_0x42e68b})=>{const {group:_0x1d701a,subType:_0x4a6047,authorId:_0x46872d}=_0x19d1db[_0x3e0c('0x1c')](_0xbba164);return _0x3e0c('0x4f')==_0x1d701a&&_0x3e0c('0x44')==_0x4a6047&&_0x46872d==_0x3031e2['id']&&!_0x42e68b[_0x3e0c('0x84')];});for(const _0x587a2f of _0x1fa096){if(_0x3e0c('0x67')!=_0x587a2f['type']||_0x3e0c('0x73')!=_0x587a2f[_0x3e0c('0x92')]||0x1!=_0x587a2f[_0x3e0c('0x59')])continue;const _0x2bc20b=_0x3e8677[_0x3e0c('0x90')](_0x587a2f['position'],_0x587a2f[_0x3e0c('0x1a')][_0x3e0c('0x85')](0x1));if(!_0x313ddd[_0x3e0c('0x76')](({data:_0x5ce915})=>_0x5ce915[_0x3e0c('0x13')][_0x3e0c('0x82')](_0x2bc20b)))for(const {name:_0xefcc7e,data:_0x25825b}of _0x313ddd)if(_0x2bc20b[_0x3e0c('0x12')](_0x25825b['newRange'])){_0x3e8677[_0x3e0c('0x47')](_0xefcc7e,{'range':_0x2bc20b}),_0x39c637=!0x0;break;}}return _0x39c637;}),_0x1b61f8['model'][_0x3e0c('0x54')][_0x3e0c('0x35')](_0x18101e=>{let _0x1381e8=!0x1;const _0x5d3c04=_0x1b61f8[_0x3e0c('0x49')][_0x3e0c('0x5b')](_0x3e0c('0x1f'))['me'],_0x6117f6=_0x19d1db['getSuggestions']()['filter'](_0x31009e=>_0x31009e[_0x3e0c('0x8f')]&&_0x31009e[_0x3e0c('0x1b')]==_0x5d3c04),_0x1dcb03=new Set(),_0xd7790=new Set();for(const _0x31387a of _0x6117f6)if('tablePaste'==_0x31387a['subType'])for(const _0x1c0a32 of _0x31387a[_0x3e0c('0xa3')]()){const _0x16af47=_0x1c0a32[_0x3e0c('0x89')]()[_0x3e0c('0x46')]();if(_0x16af47){if(_0x16af47['is']('element',_0x3e0c('0x73'))&&ce(_0x16af47)){_0x31387a[_0x3e0c('0x45')](_0x1c0a32[_0x3e0c('0x92')]),_0x1dcb03[_0x3e0c('0x34')](_0x16af47),_0x1381e8=!0x0;const _0x4f8c80=_0x16af47[_0x3e0c('0x2')],_0x120913=_0x16af47[_0x3e0c('0x7b')],_0x5c3bfb=_0x4f8c80&&_0x4f8c80['is']('element',_0x3e0c('0x73')),_0xeb560c=_0x120913&&_0x120913['is'](_0x3e0c('0x2b'),_0x3e0c('0x73'));_0x5c3bfb&&!_0x1dcb03[_0x3e0c('0x6f')](_0x4f8c80)&&_0xd7790[_0x3e0c('0x34')](_0x4f8c80),_0xeb560c&&!_0x1dcb03[_0x3e0c('0x6f')](_0x120913)&&_0xd7790['add'](_0x120913);}else _0x16af47['is'](_0x3e0c('0x2b'),'paragraph')&&_0x16af47[_0x3e0c('0x1d')]&&(_0x31387a[_0x3e0c('0x45')](_0x1c0a32[_0x3e0c('0x92')]),_0x1381e8=!0x0);}}else{if('tablePasteCell'==_0x31387a[_0x3e0c('0x55')]){if(!_0x31387a[_0x3e0c('0x74')]||!_0x31387a[_0x3e0c('0x74')][_0x3e0c('0x0')])continue;const _0x6a48c5=_0x31387a[_0x3e0c('0x74')]['markerAttributes'];if(_0x6a48c5&&Object[_0x3e0c('0x50')](_0x6a48c5)['length'])continue;const _0x1ba04f=_0x31387a['attributes'][_0x3e0c('0x0')];let _0x5a3afe=!0x0,_0x2dd75a=!0x0;for(const _0x2f257c of _0x6117f6)if(_0x2f257c[_0x3e0c('0x55')]&&_0x2f257c[_0x3e0c('0x55')]['startsWith'](_0x3e0c('0x44'))){if(!_0x2f257c[_0x3e0c('0x74')][_0x3e0c('0x0')]){_0x2dd75a=!0x1;break;}if(_0x2f257c['id']!=_0x31387a['id']&&_0x2f257c[_0x3e0c('0x74')]['tablePasteChainId']==_0x1ba04f){_0x5a3afe=!0x1;break;}}_0x2dd75a&&_0x5a3afe&&(_0x31387a[_0x3e0c('0xb')](),_0x1381e8=!0x0);}}for(const _0x4fe99d of _0x1dcb03)_0x18101e['remove'](_0x4fe99d);for(const _0x5e9e42 of _0xd7790)_0x18101e[_0x3e0c('0x6c')](_0x5e9e42);return _0x1381e8;}),_0x1b61f8[_0x3e0c('0x5e')]['for'](_0x3e0c('0x42'))['markerToHighlight']({'model':_0x3e0c('0x8c'),'view':(_0x131398,_0x32cbfa)=>_0xfd3450(_0x131398),'converterPriority':'high'}),_0x1b61f8[_0x3e0c('0x5e')][_0x3e0c('0x66')]('dataDowncast')[_0x3e0c('0x56')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1d3462,_0x4cc7af)=>_0x4cc7af[_0x3e0c('0x37')]['showSuggestionHighlights']?_0xfd3450(_0x1d3462,!0x1):null,'converterPriority':'high'});const _0x3f1776=_0x1b61f8[_0x3e0c('0x3a')][_0x3e0c('0x5f')];this['listenTo'](_0x3f1776[_0x3e0c('0x54')],_0x3e0c('0x7c'),(_0x554946,_0x35ad4e)=>{const _0x74cf8e=[];for(const _0x393284 of _0x3f1776[_0x3e0c('0x62')](_0x35ad4e['content'])[_0x3e0c('0x6')]())_0x393284['is'](_0x3e0c('0x2b'),_0x3e0c('0x2c'))&&_0x74cf8e['push'](_0x393284);_0x3f1776[_0x3e0c('0x77')](_0x94ffaa=>{for(const _0x3bc92a of _0x74cf8e)_0x94ffaa['move'](_0x94ffaa['createRangeIn'](_0x3bc92a),_0x94ffaa['createPositionBefore'](_0x3bc92a)),_0x94ffaa[_0x3e0c('0x51')](_0x3bc92a);});});}}function ce(_0x3ca9bc){if(_0x3ca9bc['isEmpty'])return!0x0;const _0x5dd0a6=_0x3ca9bc['getChild'](0x0);return _0x5dd0a6['is'](_0x3e0c('0x2b'),_0x3e0c('0x8a'))&&_0x5dd0a6[_0x3e0c('0x1d')];}function fe(_0x244b9e,_0x3fafb3={},_0x281904){for(const {isAnchor:_0x43f89,cellHeight:_0x63cd5,cellWidth:_0x4b9ea1}of _0x281904[_0x3e0c('0x69')](_0x244b9e,{'includeAllSlots':!0x0,..._0x3fafb3}))if(!_0x43f89||0x1!=_0x63cd5||0x1!=_0x4b9ea1)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x459d=['TrackChangesEditing','handleSuggestionDescription','format','model','resizeTable','document','selection','getSelectedElement','getAttribute','data','plugins','discard','table','resizeTableWidth','getSuggestionCallback','handleResizeTableWidthCommand','getTableColumnsWidths','bind','change','getColumnGroupElement','*Format:*\x20resize\x20table','resizeColumnWidths','afterInit','markBlockFormat','formatBlock','TableColumnResizeEditing','tableWidth','get','_suggestionFactory','registerDescriptionCallback','getContainedElement','getSuggestions','editor','formatGroupId','_descriptionFactory','locale','commandParams'];(function(_0x28ba33,_0x459d8a){const _0xbd3af7=function(_0x47d254){while(--_0x47d254){_0x28ba33['push'](_0x28ba33['shift']());}};_0xbd3af7(++_0x459d8a);}(_0x459d,0x6e));const _0xbd3a=function(_0x28ba33,_0x459d8a){_0x28ba33=_0x28ba33-0x0;let _0xbd3af7=_0x459d[_0x28ba33];return _0xbd3af7;};import{Plugin as _0x448586}from'ckeditor5/src/core';import{getTranslation as _0x4a6ada}from'../utils/common-translations';export default class yt extends _0x448586{[_0xbd3a('0x17')](){if(!this[_0xbd3a('0x21')][_0xbd3a('0xb')]['has'](_0xbd3a('0x1a')))return;const _0x21b45d=this[_0xbd3a('0x21')][_0xbd3a('0xb')][_0xbd3a('0x1c')](_0xbd3a('0x1'));_0x21b45d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand'][_0xbd3a('0x12')](this)),_0x21b45d['enableCommand'](_0xbd3a('0x16'),this[_0xbd3a('0x10')][_0xbd3a('0x12')](this)),_0x21b45d[_0xbd3a('0x1d')]['registerCustomCallback'](_0xbd3a('0x19'),_0xbd3a('0x5'),'accept',_0x21b45d[_0xbd3a('0x1d')][_0xbd3a('0xf')](_0xbd3a('0x19'),null,_0xbd3a('0xc'))),_0x21b45d['_suggestionFactory']['registerCustomCallback'](_0xbd3a('0x19'),'resizeTable',_0xbd3a('0xc'),_0x21b45d[_0xbd3a('0x1d')][_0xbd3a('0xf')](_0xbd3a('0x19'),null,'accept')),_0x21b45d[_0xbd3a('0x23')][_0xbd3a('0x1e')](this['handleSuggestionDescription'][_0xbd3a('0x12')](this));}['handleResizeTableWidthCommand'](_0x8bcf06,_0x362be9){const _0x15f3f5=this[_0xbd3a('0x21')][_0xbd3a('0xb')][_0xbd3a('0x1c')](_0xbd3a('0x1')),_0x56270f=this['editor']['plugins'][_0xbd3a('0x1c')](_0xbd3a('0x1a')),_0x15f129=_0x362be9[_0xbd3a('0xd')]||this[_0xbd3a('0x21')]['model'][_0xbd3a('0x6')][_0xbd3a('0x7')][_0xbd3a('0x8')]();this[_0xbd3a('0x21')][_0xbd3a('0x4')][_0xbd3a('0x13')](()=>{const _0xe97e44=_0x56270f[_0xbd3a('0x14')](_0x15f129);let _0x47b1df=_0xe97e44?_0x56270f[_0xbd3a('0x11')](_0xe97e44):null,_0x55317e=_0x15f129[_0xbd3a('0x9')](_0xbd3a('0x1b'))||null;const _0x4ff6c2=_0x362be9[_0xbd3a('0x1b')]||_0x55317e,_0x297edb=_0x362be9['columnWidths']||_0x47b1df,_0x315236=this['editor'][_0xbd3a('0xb')]['get']('Users')['me'];for(const _0x20c324 of _0x15f3f5[_0xbd3a('0x20')]()){const _0x371b9c=_0x20c324[_0xbd3a('0x1f')]();if(_0xbd3a('0x5')===_0x20c324['subType']&&_0x371b9c===_0x15f129){_0x20c324['author']!==_0x315236&&_0x20c324['discard']();const _0x4382a8=_0x20c324[_0xbd3a('0xa')][_0xbd3a('0x0')];_0x55317e=_0x4382a8[0x0][_0xbd3a('0x1b')],_0x47b1df=_0x4382a8[0x0]['columnWidths'];break;}}_0x8bcf06({'table':_0x15f129,'tableWidth':_0x4ff6c2,'columnWidths':_0x297edb}),_0x15f3f5[_0xbd3a('0x18')](_0x15f129,{'commandName':_0xbd3a('0xe'),'commandParams':[{'tableWidth':_0x55317e,'columnWidths':_0x47b1df}],'formatGroupId':_0xbd3a('0x5')},[],_0xbd3a('0x5'));});}[_0xbd3a('0x2')](_0x247dbf){const {data:_0x5aa839}=_0x247dbf;if(_0x5aa839&&_0xbd3a('0x5')===_0x5aa839[_0xbd3a('0x22')]){const _0x430854=_0xbd3a('0x15');return{'type':_0xbd3a('0x3'),'content':_0x4a6ada(this[_0xbd3a('0x21')][_0xbd3a('0x24')],_0x430854)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26ed=['_suggestionFactory','createPositionAfter','TrackChangesEditing','markerName','markerRange','markerNameToElements','format','getChild','findAncestor','getRowIndexes','table','getSuggestion','removeMarker:suggestion','enableCommand','removeAttribute','highest','ck-suggestion-marker-','childCount','TableUtils','get','addClass','TableEditing','value','last','getAttribute','showSuggestionHighlights','commandName','activeMarkers','consume','model','consumable','change','end','data','forceValue','item','setAttribute','writer','from','FORMAT_HEADER_COLUMN','FORMAT_REGULAR_ROW','getCellLocation','accept','createPositionBefore','commands','toViewElement','removeClass','setTableRowHeader','includes','nodeBefore','formatBlock','headingRows','getColumnIndexes','addMarker:suggestion','registerDescriptionCallback','registerCustomCallback','createRange','editing','stop','options','parent','_splitMarkerName','getSelectionAffectedTableCells','_descriptionFactory','plugins','downcastDispatcher','start','nodeAfter','selection','document','name','first','markBlockFormat','ck-suggestion-marker--active','setTableColumnHeader','mapper','cell','headingColumns','FORMAT_REGULAR_COLUMN','FORMAT_HEADER_ROW','commandParams'];(function(_0x4906af,_0x26edd6){const _0x50b731=function(_0x333d21){while(--_0x333d21){_0x4906af['push'](_0x4906af['shift']());}};_0x50b731(++_0x26edd6);}(_0x26ed,0x197));const _0x50b7=function(_0x4906af,_0x26edd6){_0x4906af=_0x4906af-0x0;let _0x50b731=_0x26ed[_0x4906af];return _0x50b731;};import{Plugin as _0x1f380e}from'ckeditor5/src/core';import _0x1dd7ae from'./table';import{getTranslation as _0x506018}from'../utils/common-translations';export default class kt extends _0x1f380e{static get['requires'](){return[_0x1dd7ae];}['afterInit'](){const _0x4eab56=this['editor'];if(!_0x4eab56['plugins']['has'](_0x50b7('0x13')))return;const _0x21c792=_0x4eab56['locale'],_0x12e28a=_0x4eab56[_0x50b7('0x3e')][_0x50b7('0x11')](_0x50b7('0x0')),_0x5386eb=_0x4eab56[_0x50b7('0x3e')]['get']('TableUtils'),_0x1e1039=_0x4eab56[_0x50b7('0x3e')][_0x50b7('0x11')](_0x1dd7ae);function _0x1119c1({showActiveMarker:_0x125fb6=!0x0,setDataAttribute:_0x5c058e=!0x0}={}){return(_0x370758,_0x18141b,_0x19752a)=>{const {type:_0xcc9469,id:_0x416964}=_0x12e28a[_0x50b7('0x3b')](_0x18141b['markerName']),_0x22a72c=_0x12e28a[_0x50b7('0x9')](_0x416964);if(!_0x22a72c[_0x50b7('0x1f')]||_0x50b7('0x48')!=_0x22a72c[_0x50b7('0x1f')]['commandName'])return;if(_0x18141b[_0x50b7('0x21')])return void _0x370758[_0x50b7('0x38')]();if(!_0x19752a[_0x50b7('0x1c')][_0x50b7('0x1a')](_0x18141b[_0x50b7('0x2')],_0x370758[_0x50b7('0x44')]))return;const _0xd92a23=_0x18141b[_0x50b7('0x2')][_0x50b7('0x40')][_0x50b7('0x41')],_0x5de415=_0x18141b[_0x50b7('0x2')][_0x50b7('0x1e')][_0x50b7('0x2f')],_0x552889=_0xd92a23[_0x50b7('0x3a')][_0x50b7('0x3a')],{column:_0x3949bb}=_0x5386eb['getCellLocation'](_0xd92a23),{column:_0x5cad94}=_0x5386eb[_0x50b7('0x27')](_0x5de415);for(let _0x2ee9ea=_0x3949bb;_0x2ee9ea<=_0x5cad94;_0x2ee9ea++){const _0x3f15e5=_0x5386eb['createTableWalker'](_0x552889,{'column':_0x2ee9ea,'includeAllSlots':!0x1});for(const _0x1f1dcd of _0x3f15e5){const _0x421e25=_0x1f1dcd['cell'],_0x53b397=_0x19752a['mapper'][_0x50b7('0x2b')](_0x421e25);_0x19752a[_0x50b7('0x23')]['addClass'](_0x50b7('0xe')+_0xcc9469,_0x53b397),_0x5c058e&&_0x19752a[_0x50b7('0x23')][_0x50b7('0x22')]('data-suggestion',_0x416964,_0x53b397),_0x19752a['mapper']['bindElementToMarker'](_0x53b397,_0x18141b[_0x50b7('0x1')]),_0x125fb6&&(_0x12e28a[_0x50b7('0x19')][_0x50b7('0x2e')](_0x18141b['markerName'])?_0x19752a[_0x50b7('0x23')][_0x50b7('0x12')](_0x50b7('0x47'),_0x53b397):_0x19752a[_0x50b7('0x23')][_0x50b7('0x2c')](_0x50b7('0x47'),_0x53b397));}}};}_0x12e28a[_0x50b7('0xb')](_0x50b7('0x2d'),(_0x3088bd,_0x129cf1)=>{const _0x5c7eb3=_0x5386eb['getSelectionAffectedTableCells'](_0x4eab56[_0x50b7('0x1b')][_0x50b7('0x43')][_0x50b7('0x42')]),_0x1e1449=_0x5386eb[_0x50b7('0x7')](_0x5c7eb3),_0x310b54=_0x5c7eb3[0x0][_0x50b7('0x6')](_0x50b7('0x8')),_0x58ac5a=_0x310b54[_0x50b7('0x16')](_0x50b7('0x31'))||0x0,_0x264cdf=_0x129cf1&&null!==_0x129cf1[_0x50b7('0x20')]?_0x129cf1[_0x50b7('0x20')]:!_0x4eab56[_0x50b7('0x2a')][_0x50b7('0x11')](_0x50b7('0x2d'))[_0x50b7('0x14')],_0x3cbac8=_0x264cdf?_0x1e1449[_0x50b7('0x15')]:_0x1e1449[_0x50b7('0x45')],_0xe2dc8e=_0x310b54['getChild'](_0x3cbac8);let _0x50ca56;if(_0x264cdf){const _0x22deb2=_0x310b54[_0x50b7('0x5')](_0x58ac5a);if(_0xe2dc8e['index']<_0x22deb2['index'])return;_0x50ca56=_0x4eab56[_0x50b7('0x1b')]['createRange'](_0x4eab56[_0x50b7('0x1b')][_0x50b7('0x29')](_0x22deb2['getChild'](0x0)),_0x4eab56['model'][_0x50b7('0x50')](_0xe2dc8e[_0x50b7('0x5')](_0xe2dc8e[_0x50b7('0xf')]-0x1)));}else{const _0x245ba4=_0x310b54[_0x50b7('0x5')](_0x58ac5a-0x1);if(!_0x245ba4)return;_0x50ca56=_0x4eab56[_0x50b7('0x1b')][_0x50b7('0x36')](_0x4eab56[_0x50b7('0x1b')]['createPositionBefore'](_0xe2dc8e[_0x50b7('0x5')](0x0)),_0x4eab56[_0x50b7('0x1b')][_0x50b7('0x50')](_0x245ba4[_0x50b7('0x5')](_0x245ba4[_0x50b7('0xf')]-0x1)));}_0x4eab56[_0x50b7('0x1b')][_0x50b7('0x1d')](()=>{_0x12e28a[_0x50b7('0x46')](_0x50ca56,{'commandName':_0x50b7('0x2d'),'commandParams':[{'forceValue':_0x264cdf}]},[],'setTableRowHeader');});}),_0x12e28a[_0x50b7('0xb')](_0x50b7('0x48'),(_0xa310f0,_0x4a99bd)=>{const _0xa09397=_0x4eab56[_0x50b7('0x3e')][_0x50b7('0x11')](_0x50b7('0x10')),_0x2a9eb1=_0xa09397[_0x50b7('0x3c')](_0x4eab56['model'][_0x50b7('0x43')][_0x50b7('0x42')]),_0x5255b6=_0xa09397[_0x50b7('0x32')](_0x2a9eb1),_0xd12c48=_0x2a9eb1[0x0][_0x50b7('0x6')]('table'),_0x43a982=_0xd12c48[_0x50b7('0x16')](_0x50b7('0x4b'))||0x0,_0x1db6fd=_0x4a99bd&&null!==_0x4a99bd[_0x50b7('0x20')]?_0x4a99bd[_0x50b7('0x20')]:!_0x4eab56[_0x50b7('0x2a')][_0x50b7('0x11')](_0x50b7('0x48'))[_0x50b7('0x14')];let _0x4a7afb;const _0x263e7a=_0xd12c48['getChild'](0x0),_0x1c6fba=_0x1db6fd?_0x5255b6[_0x50b7('0x15')]:_0x5255b6[_0x50b7('0x45')],_0x8a5ab4=_0xa09397['createTableWalker'](_0xd12c48,{'startRow':0x0,'column':_0x1c6fba,'includeAllSlots':!0x1}),_0x4c3651=Array[_0x50b7('0x24')](_0x8a5ab4)[0x0][_0x50b7('0x4a')];if(_0x1db6fd){const _0x422f9c=_0x263e7a['getChild'](_0x43a982);if(_0x4c3651['isBefore'](_0x422f9c))return;_0x4a7afb=_0x4eab56[_0x50b7('0x1b')][_0x50b7('0x36')](_0x4eab56[_0x50b7('0x1b')]['createPositionBefore'](_0x422f9c),_0x4eab56[_0x50b7('0x1b')][_0x50b7('0x50')](_0x4c3651));}else{const _0x4d58f5=_0x263e7a['getChild'](_0x43a982-0x1);if(!_0x4d58f5)return;_0x4a7afb=_0x4eab56[_0x50b7('0x1b')][_0x50b7('0x36')](_0x4eab56[_0x50b7('0x1b')][_0x50b7('0x29')](_0x4c3651),_0x4eab56['model'][_0x50b7('0x50')](_0x4d58f5));}_0x4eab56[_0x50b7('0x1b')][_0x50b7('0x1d')](()=>{_0x12e28a[_0x50b7('0x46')](_0x4a7afb,{'commandName':_0x50b7('0x48'),'commandParams':[{'forceValue':_0x1db6fd}]},[],_0x50b7('0x48'));});}),_0x4eab56['editing'][_0x50b7('0x3f')]['on'](_0x50b7('0x33'),_0x1119c1(),{'priority':_0x50b7('0xd')}),_0x4eab56[_0x50b7('0x1f')][_0x50b7('0x3f')]['on'](_0x50b7('0x33'),(_0x588100,_0x30f25b,_0x51bdb2)=>{_0x51bdb2[_0x50b7('0x39')][_0x50b7('0x17')]&&_0x1119c1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x588100,_0x30f25b,_0x51bdb2);},{'priority':_0x50b7('0xd')}),_0x4eab56[_0x50b7('0x37')][_0x50b7('0x3f')]['on'](_0x50b7('0xa'),(_0x5272f8,_0x30d945,_0x3abd)=>{const {type:_0x38cd04,id:_0x78c678}=_0x12e28a[_0x50b7('0x3b')](_0x30d945['markerName']),_0x23b3cd=_0x12e28a['getSuggestion'](_0x78c678);if(!_0x23b3cd[_0x50b7('0x1f')]||'setTableColumnHeader'!=_0x23b3cd[_0x50b7('0x1f')][_0x50b7('0x18')])return;const _0x169b03=_0x3abd[_0x50b7('0x49')][_0x50b7('0x3')](_0x30d945[_0x50b7('0x1')]);if(_0x169b03)for(const _0xa03762 of _0x169b03)_0x3abd[_0x50b7('0x23')][_0x50b7('0x2c')]('ck-suggestion-marker-'+_0x38cd04,_0xa03762),_0x3abd['writer']['removeClass']('ck-suggestion-marker--active',_0xa03762),_0x3abd['writer'][_0x50b7('0xc')]('data-suggestion',_0xa03762),_0x3abd[_0x50b7('0x49')]['unbindElementFromMarkerName'](_0xa03762,_0x30d945[_0x50b7('0x1')]);},{'priority':_0x50b7('0xd')}),_0x12e28a[_0x50b7('0x3d')][_0x50b7('0x34')](_0x1b5456=>{const {data:_0xd58862}=_0x1b5456;if(_0xd58862){if(_0x50b7('0x2d')==_0xd58862[_0x50b7('0x18')]){const _0x124a11=_0xd58862[_0x50b7('0x4e')][0x0][_0x50b7('0x20')];return _0x4b8327(_0x506018(_0x21c792,_0x124a11?_0x50b7('0x4d'):_0x50b7('0x26')));}if(_0x50b7('0x48')==_0xd58862['commandName']){const _0x58193b=_0xd58862[_0x50b7('0x4e')][0x0][_0x50b7('0x20')];return _0x4b8327(_0x506018(_0x21c792,_0x58193b?_0x50b7('0x25'):_0x50b7('0x4c')));}}function _0x4b8327(_0xada944){return{'type':_0x50b7('0x4'),'content':_0x506018(_0x21c792,'*Format:*\x20%0',_0xada944)};}});const _0x53b74c=_0x1e1039['_acceptFormatSuggestionCallbackFactory']();_0x12e28a[_0x50b7('0x4f')][_0x50b7('0x35')](_0x50b7('0x30'),'setTableRowHeader',_0x50b7('0x28'),_0x53b74c),_0x12e28a[_0x50b7('0x4f')][_0x50b7('0x35')](_0x50b7('0x30'),'setTableColumnHeader',_0x50b7('0x28'),_0x53b74c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x511e=['filter','set:isEnabled','$graveyard','commandName','length','getAncestors','getRanges','registerDescriptionCallback','push','accept','author','afterInit','registerCustomCallback','TrackChangesEditing','selection','TableUtils','detach','mergeTableCellLeft','splitTableCellVertically','getSelectionAffectedTableCells','*Split\x20cell:*\x20vertically','editor','splitTableCellHorizontally','root','markMultiRangeBlockFormat','element','return','commands','value','document','refresh','createRangeOn','type','_isForcedDefaultExecutionBlock','_suggestionFactory','*Split\x20cell:*\x20horizontally','getCellLocation','has','map','tableCell','plugins','locale','format','insertion','getFirstPosition','enableCommand','size','mergeTableCells','table','mergeTableCellDown','TableEditing','add','direction','forceDefaultExecution','model','execute','_areMergableCells','mergeTableCellRight','find','formatBlock','get','from','cell','containsRange','findAncestor','fromRange','horizontally','change','deletion','_descriptionFactory','mergeTableCellUp','createTableWalker','_areSelectedCellsMergable','subType','_tablePostFixingSubtypes'];(function(_0x444e94,_0x511e55){const _0x135906=function(_0x4cd4ea){while(--_0x4cd4ea){_0x444e94['push'](_0x444e94['shift']());}};_0x135906(++_0x511e55);}(_0x511e,0x183));const _0x1359=function(_0x444e94,_0x511e55){_0x444e94=_0x444e94-0x0;let _0x135906=_0x511e[_0x444e94];return _0x135906;};import{Plugin as _0x2c6ffc}from'ckeditor5/src/core';import _0x35dbe7 from'./table';import{LiveRange as _0x5de807}from'ckeditor5/src/engine';import{getTranslation as _0x5ed233}from'../utils/common-translations';export default class pt extends _0x2c6ffc{static get['requires'](){return[_0x35dbe7];}[_0x1359('0x4a')](){const _0xa0d648=this[_0x1359('0x9')],_0x334998=_0xa0d648[_0x1359('0x2a')][_0x1359('0x11')][_0x1359('0x2')],_0x20cf5a=_0xa0d648[_0x1359('0x1d')];if(!_0xa0d648['plugins'][_0x1359('0x19')](_0x1359('0x26')))return;const _0x436fbb=_0xa0d648[_0x1359('0x1c')][_0x1359('0x30')](_0x1359('0x1')),_0x3d86dd=_0xa0d648['plugins'][_0x1359('0x30')](_0x1359('0x3')),_0x4fa0cf=_0xa0d648[_0x1359('0x1c')]['get'](_0x35dbe7);_0x4fa0cf[_0x1359('0x3e')][_0x1359('0x47')](_0x1359('0x23')),_0x436fbb['enableCommand'](_0x1359('0x23'),()=>{const _0xa64aec=_0x3d86dd[_0x1359('0x7')](_0xa0d648[_0x1359('0x2a')][_0x1359('0x11')][_0x1359('0x2')]);_0xa0d648['model']['change'](()=>{_0x436fbb[_0x1359('0xc')](_0xa64aec,{'commandName':'mergeTableCells','commandParams':[]},[],_0x1359('0x23'));});}),_0xa0d648['commands'][_0x1359('0x30')](_0x1359('0x23'))['on'](_0x1359('0x2b'),(_0x51cb7e,_0x8c1092)=>{_0xa0d648[_0x1359('0xf')]['get']('trackChanges')[_0x1359('0x10')]&&(_0x8c1092[_0x1359('0x43')]>0x0&&_0x8c1092[_0x8c1092[_0x1359('0x43')]-0x1]&&_0x8c1092[_0x8c1092[_0x1359('0x43')]-0x1][_0x1359('0x29')]||_0x436fbb[_0x1359('0x15')]||this[_0x1359('0x3c')]()||_0x51cb7e['stop']());},{'priority':'highest'});for(const _0x221714 of['mergeTableCellUp',_0x1359('0x2d'),_0x1359('0x25'),_0x1359('0x5')]){const _0x539128=_0xa0d648['commands']['get'](_0x221714);_0x436fbb[_0x1359('0x21')](_0x221714,()=>{const _0x32846b=_0xa0d648[_0x1359('0x2a')]['document'][_0x1359('0x2')]['getFirstPosition']()[_0x1359('0x44')]()[_0x1359('0x2e')](_0xae70de=>_0xae70de['is'](_0x1359('0xd'),_0x1359('0x1b'))),_0x1f8bb1=_0x539128[_0x1359('0x10')];_0xa0d648[_0x1359('0x2a')][_0x1359('0x37')](()=>{_0x436fbb[_0x1359('0xc')]([_0x32846b,_0x1f8bb1],{'commandName':_0x1359('0x23'),'commandParams':[]},[],'mergeTableCells');});});}for(const _0x4b594a of[_0x1359('0x6'),'splitTableCellHorizontally']){const _0x22809a=_0xa0d648[_0x1359('0xf')][_0x1359('0x30')](_0x4b594a);_0x436fbb['enableCommand'](_0x4b594a,()=>{const _0x35d395=_0x3d86dd[_0x1359('0x7')](_0xa0d648[_0x1359('0x2a')]['document']['selection'])[0x0],_0x3c4b23=_0x35d395[_0x1359('0x34')](_0x1359('0x24')),{column:_0x14fbb4,row:_0x5d9ed7}=_0x3d86dd[_0x1359('0x18')](_0x35d395);let _0x3f2bb7=[];if(_0x1359('0x36')==_0x22809a[_0x1359('0x28')]){const _0x3473d4=_0x3d86dd[_0x1359('0x3b')](_0x3c4b23,{'startRow':_0x5d9ed7,'endRow':_0x5d9ed7,'includeAllSlots':!0x0});_0x3f2bb7=Array[_0x1359('0x31')](_0x3473d4)[_0x1359('0x1a')](_0xc06e5d=>_0xc06e5d['cell']);}else{const _0x43e3d2=_0x3d86dd[_0x1359('0x3b')](_0x3c4b23,{'column':_0x14fbb4,'includeAllSlots':!0x0});_0x3f2bb7=Array['from'](_0x43e3d2)[_0x1359('0x1a')](_0x12a47f=>_0x12a47f[_0x1359('0x32')]);}_0xa0d648['model'][_0x1359('0x37')](_0xc29487=>{_0x436fbb['markBlockFormat'](_0xc29487[_0x1359('0x13')](_0x35d395),{'commandName':_0x4b594a,'commandParams':[]},_0x3f2bb7,_0x4b594a);});});}_0x436fbb[_0x1359('0x39')][_0x1359('0x46')](_0x394e8b=>{const {data:_0xf274ad}=_0x394e8b;if(_0xf274ad)return'mergeTableCells'==_0xf274ad[_0x1359('0x42')]?{'type':_0x1359('0x1e'),'content':_0x5ed233(_0x20cf5a,'*Merge\x20cells*')}:void 0x0;}),_0x436fbb[_0x1359('0x39')][_0x1359('0x46')](_0x55b190=>{const {data:_0x5448c1}=_0x55b190;if(_0x5448c1)return _0x1359('0x6')==_0x5448c1[_0x1359('0x42')]?{'type':_0x1359('0x1e'),'content':_0x5ed233(_0x20cf5a,_0x1359('0x8'))}:_0x1359('0xa')==_0x5448c1[_0x1359('0x42')]?{'type':_0x1359('0x1e'),'content':_0x5ed233(_0x20cf5a,_0x1359('0x17'))}:void 0x0;});const _0x327efd=_0x4fa0cf['_acceptFormatSuggestionCallbackFactory']();for(const _0x5cf508 of[_0x1359('0x3a'),'mergeTableCellRight',_0x1359('0x25'),'mergeTableCellLeft'])_0x436fbb[_0x1359('0x16')][_0x1359('0x0')]('formatBlock',_0x5cf508,'accept',_0x327efd);for(const _0x17893e of[_0x1359('0x6'),_0x1359('0xa')])_0x436fbb['_suggestionFactory']['registerCustomCallback'](_0x1359('0x2f'),_0x17893e,_0x1359('0x48'),_0x327efd);_0x436fbb[_0x1359('0x16')][_0x1359('0x0')](_0x1359('0x2f'),_0x1359('0x23'),'accept',_0x13f07b=>{_0xa0d648[_0x1359('0x2a')][_0x1359('0x37')](_0x3e58d9=>{const _0x521468=Array[_0x1359('0x31')](_0x334998[_0x1359('0x45')]())[_0x1359('0x1a')](_0x2aa083=>_0x5de807[_0x1359('0x35')](_0x2aa083));_0x3e58d9['setSelection'](_0x13f07b),_0xa0d648['commands'][_0x1359('0x30')](_0x1359('0x23'))[_0x1359('0x12')](),_0xa0d648[_0x1359('0x2b')](_0x1359('0x23'),{'forceDefaultExecution':!0x0});const _0x19e1a5=_0x521468[_0x1359('0x3f')](_0x3a7af5=>_0x1359('0x41')!=_0x3a7af5[_0x1359('0xb')]['rootName']);_0x19e1a5['length']>0x0&&_0x3e58d9['setSelection'](_0x19e1a5);for(const _0x3335bb of _0x521468)_0x3335bb[_0x1359('0x4')]();});});for(const _0x33a324 of['mergeTableCellUp',_0x1359('0x25'),_0x1359('0x5'),'mergeTableCellRight']){const _0xcf633f=_0xa0d648[_0x1359('0xf')][_0x1359('0x30')](_0x33a324);_0xcf633f['on'](_0x1359('0x40'),(_0x3488e5,_0x5aa39c,_0x38f27b)=>{if(_0x38f27b){const _0x3c0010=_0xa0d648[_0x1359('0x2a')]['document'][_0x1359('0x2')][_0x1359('0x20')]()[_0x1359('0x44')]()[_0x1359('0x2e')](_0x18728a=>_0x18728a['is'](_0x1359('0xd'),_0x1359('0x1b')));this['_areMergableCells'](_0xcf633f[_0x1359('0x10')],_0x3c0010)||(_0x3488e5[_0x1359('0xe')]=!0x1,_0x3488e5['stop']());}},{'priority':'low'});}}[_0x1359('0x3c')](){const _0x28df49=this[_0x1359('0x9')][_0x1359('0xf')]['get'](_0x1359('0x23')),_0x585e3e=this['editor'][_0x1359('0x1c')]['get']('TableUtils');if(!_0x28df49['isEnabled'])return!0x1;const _0x7c34d1=_0x585e3e[_0x1359('0x7')](this[_0x1359('0x9')]['model'][_0x1359('0x11')][_0x1359('0x2')]);for(const _0x303d7e of _0x7c34d1)for(const _0x5f1ae3 of _0x7c34d1)if(_0x303d7e!=_0x5f1ae3&&!this[_0x1359('0x2c')](_0x303d7e,_0x5f1ae3))return!0x1;return!0x0;}['_areMergableCells'](_0x53ecc1,_0x3ccd75){const _0x350cb3=this[_0x1359('0x9')]['plugins'][_0x1359('0x30')](_0x1359('0x1')),_0x3bdfe1=this['editor'][_0x1359('0x2a')][_0x1359('0x13')](_0x53ecc1),_0x54c3e1=this[_0x1359('0x9')]['model'][_0x1359('0x13')](_0x3ccd75),_0x285732=new Set(),_0x6930d6=new Set();for(const _0x364b0c of _0x350cb3['getSuggestions']())if((_0x1359('0x1f')==_0x364b0c[_0x1359('0x14')]||_0x1359('0x38')==_0x364b0c[_0x1359('0x14')]||_0x1359('0x23')==_0x364b0c[_0x1359('0x3d')])&&_0x364b0c['isInContent'])for(const _0x4aab2c of _0x364b0c[_0x1359('0x45')]())_0x4aab2c[_0x1359('0x33')](_0x3bdfe1,!0x0)&&_0x285732[_0x1359('0x27')](_0x364b0c[_0x1359('0x14')]+':'+_0x364b0c[_0x1359('0x49')]['id']),_0x4aab2c[_0x1359('0x33')](_0x54c3e1,!0x0)&&_0x6930d6[_0x1359('0x27')](_0x364b0c[_0x1359('0x14')]+':'+_0x364b0c[_0x1359('0x49')]['id']);if(_0x285732[_0x1359('0x22')]!=_0x6930d6[_0x1359('0x22')])return!0x1;for(const _0x555449 of _0x285732)if(!_0x6930d6[_0x1359('0x19')](_0x555449))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3304=['get','enableCommand','tableOfContents','plugins','editor','_descriptionFactory','TrackChangesEditing','registerElementLabel','insertTableOfContents','commands','afterInit'];(function(_0x37d8ee,_0x3304df){const _0x4f419c=function(_0x17c9fd){while(--_0x17c9fd){_0x37d8ee['push'](_0x37d8ee['shift']());}};_0x4f419c(++_0x3304df);}(_0x3304,0x14e));const _0x4f41=function(_0x37d8ee,_0x3304df){_0x37d8ee=_0x37d8ee-0x0;let _0x4f419c=_0x3304[_0x37d8ee];return _0x4f419c;};import{Plugin as _0x362c35}from'ckeditor5/src/core';import{getTranslation as _0x996e8}from'../utils/common-translations';export default class St extends _0x362c35{[_0x4f41('0x6')](){const _0xa1e4bf=this[_0x4f41('0x0')];if(!_0xa1e4bf[_0x4f41('0x5')][_0x4f41('0x7')]('insertTableOfContents'))return;_0xa1e4bf[_0x4f41('0xa')][_0x4f41('0x7')](_0x4f41('0x2'))[_0x4f41('0x8')](_0x4f41('0x4'));const _0x57005d=_0xa1e4bf['plugins'][_0x4f41('0x7')](_0x4f41('0x2')),_0x59fc53=_0xa1e4bf['locale'];_0x57005d[_0x4f41('0x1')][_0x4f41('0x3')](_0x4f41('0x9'),_0x146ec1=>_0x996e8(_0x59fc53,'ELEMENT_TABLE_OF_CONTENTS',_0x146ec1));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fac=['registerCustomCallback','enqueueChange','accept','model','afterInit','has','tableCellHeight','tableBackgroundColor','getAttribute','subType','tableProperties','enableCommand','removeAttribute','document','editor','tableHeight','_getSuggestion','tableCellVerticalAlignment','tableWidth','getFirstPosition','join','get','tableBorderStyle','table','plugins','tableCellBorderWidth','*Format:*\x20change\x20table\x20properties','start','getContainedElement','_suggestionFactory','_descriptionFactory','commandParams','formatBlock','data','getSuggestions','handleDiscardAction','getSuggestionCallback','_handlePropertyChange','TrackChangesTableProperties','discard','tableCellPadding','TablePropertiesEditing','TableUtils','handleSuggestionDescription','TrackChangesEditing','selection','tableCellHorizontalAlignment','tableCellProperties','format'];(function(_0x262ec4,_0x2fac60){const _0xf2d03d=function(_0x3b0cbe){while(--_0x3b0cbe){_0x262ec4['push'](_0x262ec4['shift']());}};_0xf2d03d(++_0x2fac60);}(_0x2fac,0x104));const _0xf2d0=function(_0x262ec4,_0x2fac60){_0x262ec4=_0x262ec4-0x0;let _0xf2d03d=_0x2fac[_0x262ec4];return _0xf2d03d;};import{Plugin as _0x39eb35}from'ckeditor5/src/core';import{getTranslation as _0x4f32b6}from'../utils/common-translations';export default class Dt extends _0x39eb35{constructor(_0x59e23b){super(_0x59e23b),this[_0xf2d0('0x2c')]=['tableBorderColor',_0xf2d0('0x7'),'tableBorderWidth','tableAlignment',_0xf2d0('0x3'),_0xf2d0('0x0'),_0xf2d0('0x29')],this[_0xf2d0('0x20')]=['tableCellBorderColor','tableCellBorderStyle',_0xf2d0('0xa'),_0xf2d0('0x19'),'tableCellWidth',_0xf2d0('0x28'),'tableCellBackgroundColor',_0xf2d0('0x1f'),_0xf2d0('0x2')];}static get['pluginName'](){return _0xf2d0('0x17');}[_0xf2d0('0x26')](){const _0x56acff=this[_0xf2d0('0x30')][_0xf2d0('0x9')][_0xf2d0('0x6')](_0xf2d0('0x1d'));if(this[_0xf2d0('0x30')][_0xf2d0('0x9')][_0xf2d0('0x27')](_0xf2d0('0x1a'))){for(const _0x279566 of this['tableProperties'])_0x56acff[_0xf2d0('0x2d')](_0x279566,(_0x3422d9,_0x4504f8)=>{const _0x2ca72a=this[_0xf2d0('0x30')][_0xf2d0('0x25')][_0xf2d0('0x2f')][_0xf2d0('0x1e')][_0xf2d0('0x4')]()['findAncestor'](_0xf2d0('0x8'));this['_handlePropertyChange'](_0x279566,[_0x2ca72a],this['tableProperties'],'tableProperties',_0x3422d9,_0x4504f8);});_0x56acff[_0xf2d0('0xe')][_0xf2d0('0x22')](_0xf2d0('0x11'),_0xf2d0('0x2c'),_0xf2d0('0x24'),_0x56acff[_0xf2d0('0xe')][_0xf2d0('0x15')]('formatBlock',null,_0xf2d0('0x18'))),_0x56acff[_0xf2d0('0xe')][_0xf2d0('0x22')]('formatBlock',_0xf2d0('0x2c'),_0xf2d0('0x18'),(_0x5d15c3,_0xad83c9)=>this[_0xf2d0('0x14')](this['tableProperties'],_0x5d15c3,_0xad83c9)),_0x56acff['_suggestionFactory'][_0xf2d0('0x22')](_0xf2d0('0x11'),'tableProperties',_0xf2d0('0x5'),()=>!0x1);}if(this[_0xf2d0('0x30')][_0xf2d0('0x9')]['has']('TableCellPropertiesEditing')){for(const _0x1e72da of this['tableCellProperties'])_0x56acff[_0xf2d0('0x2d')](_0x1e72da,(_0x2980cc,_0x43a7c4)=>{const _0x22cac2=this[_0xf2d0('0x30')][_0xf2d0('0x9')]['get'](_0xf2d0('0x1b'))['getSelectionAffectedTableCells'](this[_0xf2d0('0x30')][_0xf2d0('0x25')][_0xf2d0('0x2f')][_0xf2d0('0x1e')]);this[_0xf2d0('0x16')](_0x1e72da,_0x22cac2,this['tableCellProperties'],_0xf2d0('0x20'),_0x2980cc,_0x43a7c4);});_0x56acff[_0xf2d0('0xe')][_0xf2d0('0x22')](_0xf2d0('0x11'),_0xf2d0('0x20'),_0xf2d0('0x24'),_0x56acff['_suggestionFactory']['getSuggestionCallback'](_0xf2d0('0x11'),null,_0xf2d0('0x18'))),_0x56acff['_suggestionFactory'][_0xf2d0('0x22')](_0xf2d0('0x11'),_0xf2d0('0x20'),_0xf2d0('0x18'),(_0x635f35,_0x4571f5)=>this[_0xf2d0('0x14')](this[_0xf2d0('0x20')],_0x635f35,_0x4571f5)),_0x56acff[_0xf2d0('0xe')][_0xf2d0('0x22')](_0xf2d0('0x11'),'tableCellProperties','join',()=>!0x1);}_0x56acff[_0xf2d0('0xf')]['registerDescriptionCallback'](_0x249f8d=>this[_0xf2d0('0x1c')](_0x249f8d));}[_0xf2d0('0x16')](_0xd0c1ac,_0x1564bd,_0x2cb12e,_0x2f5137,_0x194475,_0x38b26e){const _0x3207c8=this[_0xf2d0('0x30')]['plugins'][_0xf2d0('0x6')]('TrackChangesEditing');this[_0xf2d0('0x30')][_0xf2d0('0x25')][_0xf2d0('0x23')](_0x38b26e['batch'],()=>{for(const _0x3d57ff of _0x1564bd){if(this[_0xf2d0('0x1')](_0x3d57ff,_0x2f5137))_0x194475(_0x38b26e);else{const _0x2dea72={};for(const _0x5ce591 of _0x2cb12e){const _0xd45d1b=_0x3d57ff[_0xf2d0('0x2a')](_0x5ce591);void 0x0!==_0xd45d1b&&(_0x2dea72[_0x5ce591]=_0xd45d1b);}_0x194475(_0x38b26e),_0x3207c8['markBlockFormat'](_0x3d57ff,{'commandParams':[_0x2dea72]},[],_0x2f5137);}}});}[_0xf2d0('0x14')](_0x44f644,_0x4e07d4,_0x29ef51){const _0x20d797=_0x4e07d4[0x0][_0xf2d0('0xc')]['nodeAfter'],_0x323ae8=_0x29ef51[_0xf2d0('0x10')][0x0];this[_0xf2d0('0x30')][_0xf2d0('0x25')]['change'](_0x25f0dd=>{for(const _0x27e8dd of _0x44f644)void 0x0!==_0x323ae8[_0x27e8dd]?_0x25f0dd['setAttribute'](_0x27e8dd,_0x323ae8[_0x27e8dd],_0x20d797):_0x25f0dd[_0xf2d0('0x2e')](_0x27e8dd,_0x20d797);});}['handleSuggestionDescription'](_0x52b5df){if(_0x52b5df[_0xf2d0('0x12')])switch(_0x52b5df[_0xf2d0('0x2b')]){case _0xf2d0('0x2c'):return{'type':_0xf2d0('0x21'),'content':_0x4f32b6(this[_0xf2d0('0x30')]['locale'],_0xf2d0('0xb'))};case _0xf2d0('0x20'):return{'type':'format','content':_0x4f32b6(this[_0xf2d0('0x30')]['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0xf2d0('0x1')](_0x3589d6,_0x47b082){const _0x39b0f6=this['editor'][_0xf2d0('0x9')][_0xf2d0('0x6')](_0xf2d0('0x1d'));for(const _0x2bad8d of _0x39b0f6[_0xf2d0('0x13')]({'skipNotAttached':!0x0})){const _0x3f2ae0=_0x2bad8d[_0xf2d0('0xd')]();if(_0x2bad8d[_0xf2d0('0x2b')]===_0x47b082&&_0x3f2ae0===_0x3589d6)return _0x2bad8d;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30da=['insertTemplate','plugins','Template','TrackChangesEditing','get'];(function(_0x5a56f3,_0x30daa9){const _0x19d826=function(_0x1afa9c){while(--_0x1afa9c){_0x5a56f3['push'](_0x5a56f3['shift']());}};_0x19d826(++_0x30daa9);}(_0x30da,0x1df));const _0x19d8=function(_0x5a56f3,_0x30daa9){_0x5a56f3=_0x5a56f3-0x0;let _0x19d826=_0x30da[_0x5a56f3];return _0x19d826;};import{Plugin as _0x10073e}from'ckeditor5/src/core';export default class bt extends _0x10073e{['afterInit'](){const _0x3992aa=this['editor'];_0x3992aa[_0x19d8('0x2')]['has'](_0x19d8('0x3'))&&_0x3992aa[_0x19d8('0x2')][_0x19d8('0x0')](_0x19d8('0x4'))['enableCommand'](_0x19d8('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xac46=['plugins','Title','_splitMarkerName','document','locale','has','registerPostFixer','nodeBefore','TrackChangesEditing','newRange','registerElementLabel','editor','isCollapsed','model','end','isEqual','isTouching','element','start','schema','differ','afterInit','suggestion','ELEMENT_TITLE','title-content','forward','get','getChangedMarkers'];(function(_0x5e7c4d,_0xac46ba){const _0x34133b=function(_0x3c10ec){while(--_0x3c10ec){_0x5e7c4d['push'](_0x5e7c4d['shift']());}};_0x34133b(++_0xac46ba);}(_0xac46,0x1f1));const _0x3413=function(_0x5e7c4d,_0xac46ba){_0x5e7c4d=_0x5e7c4d-0x0;let _0x34133b=_0xac46[_0x5e7c4d];return _0x34133b;};import{Plugin as _0xecedf7}from'ckeditor5/src/core';import{getTranslation as _0x360a67}from'../utils/common-translations';export default class It extends _0xecedf7{[_0x3413('0x0')](){const _0x41bc94=this[_0x3413('0x12')];if(!_0x41bc94[_0x3413('0x7')][_0x3413('0xc')](_0x3413('0x8')))return;const _0x3f0c4b=_0x41bc94[_0x3413('0x7')][_0x3413('0x5')](_0x3413('0xf'));_0x3f0c4b['_descriptionFactory'][_0x3413('0x11')](_0x3413('0x3'),()=>_0x360a67(_0x41bc94[_0x3413('0xb')],_0x3413('0x2'))),_0x41bc94[_0x3413('0x14')]['document'][_0x3413('0xd')](_0x1be8da=>{let _0x4cdf96=!0x1;const _0x1e6a7d=Array['from'](_0x41bc94[_0x3413('0x14')][_0x3413('0xa')][_0x3413('0x1b')][_0x3413('0x6')]());for(const {name:_0x250af4,data:_0x3576d6}of _0x1e6a7d){const {group:_0x4a2fad}=_0x3f0c4b[_0x3413('0x9')](_0x250af4);if(_0x3413('0x1')!==_0x4a2fad||!_0x3576d6[_0x3413('0x10')])continue;const _0x1973e2=_0x3576d6[_0x3413('0x10')],_0x2367d4=_0x1973e2[_0x3413('0x15')][_0x3413('0xe')];if(!_0x2367d4||!_0x2367d4['is'](_0x3413('0x18'),_0x3413('0x3')))continue;if(!_0x1973e2[_0x3413('0x19')][_0x3413('0x17')](_0x1973e2[_0x3413('0x15')]))continue;const _0x26d4dc=_0x41bc94[_0x3413('0x14')][_0x3413('0x1a')]['getNearestSelectionRange'](_0x1973e2[_0x3413('0x15')],_0x3413('0x4'));if(_0x26d4dc&&_0x26d4dc[_0x3413('0x13')]){const _0xc20173=_0x1be8da['createRange'](_0x1973e2['start'],_0x26d4dc[_0x3413('0x19')]);_0xc20173[_0x3413('0x16')](_0x1973e2)||(_0x1be8da['updateMarker'](_0x250af4,{'range':_0xc20173}),_0x4cdf96=!0x0);}_0x4cdf96||(_0x1be8da['removeMarker'](_0x250af4),_0x4cdf96=!0x0);}return _0x4cdf96;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f23=['UndoEditing','plugins','afterInit','has','get','undo','redo','enableCommand'];(function(_0x4ddfec,_0x5f2335){const _0x1425dc=function(_0x2ecf34){while(--_0x2ecf34){_0x4ddfec['push'](_0x4ddfec['shift']());}};_0x1425dc(++_0x5f2335);}(_0x5f23,0x1ab));const _0x1425=function(_0x4ddfec,_0x5f2335){_0x4ddfec=_0x4ddfec-0x0;let _0x1425dc=_0x5f23[_0x4ddfec];return _0x1425dc;};import{Plugin as _0x5f1243}from'ckeditor5/src/core';export default class vt extends _0x5f1243{[_0x1425('0x7')](){const _0x260e6d=this['editor'],_0x9e26d7=_0x260e6d[_0x1425('0x6')][_0x1425('0x1')]('TrackChangesEditing');_0x260e6d['plugins'][_0x1425('0x0')](_0x1425('0x5'))&&(_0x9e26d7[_0x1425('0x4')](_0x1425('0x2')),_0x9e26d7['enableCommand'](_0x1425('0x3')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3735=['element','addClass','name','createRangeOn','markerRange','TrackChangesEditing','getAttribute','span','elementEnd','getCustomProperty','start','get','mapper','toViewElement','activeMarkers','plugins','markerName','item','isLimit','listIndent','test','createUIElement','insert','ck-suggestion-marker--active','bindElementToMarker','getItems','previousPosition','addHighlight','isContent','ck-suggestion-marker-','isAtEnd','nextSibling','writer','push','schema','listItem'];(function(_0x2a75ac,_0x3735c7){const _0x4f764c=function(_0x1155b2){while(--_0x1155b2){_0x2a75ac['push'](_0x2a75ac['shift']());}};_0x4f764c(++_0x3735c7);}(_0x3735,0x116));const _0x4f76=function(_0x2a75ac,_0x3735c7){_0x2a75ac=_0x2a75ac-0x0;let _0x4f764c=_0x3735[_0x2a75ac];return _0x4f764c;};export function getRangesWithAttribute(_0x2140aa,_0x3fd8a8,_0x2e04e0){const _0x38cc6c=[];for(const _0x346b11 of _0x3fd8a8[_0x4f76('0x23')]())_0x346b11['hasAttribute'](_0x2140aa)&&_0x38cc6c[_0x4f76('0x7')](_0x2e04e0[_0x4f76('0xd')](_0x346b11));return _0x38cc6c;}export function getElementsAffectedByListItemRename(_0x4c5f28){const _0x2d02c1=[];if(_0x4c5f28['is'](_0x4f76('0xa'),_0x4f76('0x9'))){let _0x4a398d=_0x4c5f28['nextSibling'];for(;_0x4a398d&&_0x4a398d['is']('element',_0x4f76('0x9'))&&_0x4a398d[_0x4f76('0x10')](_0x4f76('0x1d'))>0x0;)_0x2d02c1[_0x4f76('0x7')](_0x4a398d),_0x4a398d=_0x4a398d[_0x4f76('0x5')];}return _0x2d02c1;}export function downcastSplitMergeMarker(_0x797ac6,_0x259e5d,{showActiveMarker:_0x3452cb=!0x0}={}){const _0x2b178f=_0x797ac6[_0x4f76('0x19')][_0x4f76('0x15')](_0x4f76('0xf'));return(_0x624df1,_0x26155f,_0x3c4274)=>{if(!_0x3c4274['consumable'][_0x4f76('0x1e')](_0x26155f[_0x4f76('0xe')],_0x624df1[_0x4f76('0xc')]))return;const _0x83d921=_0x26155f[_0x4f76('0xe')]['getWalker'](),_0x2c2ddf=_0x26155f[_0x4f76('0xe')][_0x4f76('0x14')],_0x4b4216=_0x797ac6['model'][_0x4f76('0x8')];let _0x474f6c=null,_0x355640=null,_0x4177d5=!0x1,_0x4e0db6=!0x1;for(const _0x2c121d of _0x83d921){const _0xaaa23c=_0x2c121d[_0x4f76('0x1b')];_0x4177d5=_0x4177d5||_0x4b4216[_0x4f76('0x2')](_0xaaa23c);const _0x10c878=_0x3c4274['mapper'][_0x4f76('0x17')](_0xaaa23c);if(_0x10c878&&_0x10c878[_0x4f76('0x13')](_0x4f76('0x1')))return;_0x4f76('0x12')==_0x2c121d['type']&&(_0x4b4216['isBlock'](_0xaaa23c)&&!_0x4b4216[_0x4f76('0x1c')](_0xaaa23c)&&(_0xaaa23c[_0x4f76('0x5')]||_0x2c2ddf[_0x4f76('0x4')]?_0x474f6c&&_0x474f6c['parent']==_0xaaa23c||(_0x474f6c=_0xaaa23c,_0x3781e6(_0x2c121d[_0x4f76('0x0')]),_0x4e0db6=!0x0):_0x355640=_0x355640||_0x2c121d['previousPosition']));}function _0x3781e6(_0xe6c8a4){const _0x8eff24=_0x3c4274['writer'][_0x4f76('0x1f')](_0x4f76('0x11'),{'class':_0x4f76('0x3')+_0x259e5d}),_0x54bde1=_0x3c4274['mapper']['toViewPosition'](_0xe6c8a4);_0x3452cb&&_0x2b178f[_0x4f76('0x18')]['includes'](_0x26155f[_0x4f76('0x1a')])&&_0x3c4274[_0x4f76('0x6')][_0x4f76('0xb')](_0x4f76('0x21'),_0x8eff24),_0x3c4274[_0x4f76('0x6')][_0x4f76('0x20')](_0x54bde1,_0x8eff24),_0x3c4274[_0x4f76('0x16')][_0x4f76('0x22')](_0x8eff24,_0x26155f[_0x4f76('0x1a')]);}_0x4177d5||_0x4e0db6||!_0x355640||_0x3781e6(_0x355640);};}
|