@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230720.0 → 0.0.0-nightly-20230722.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3122=['getRows','tableCellBorderWidth','removeRows','conversion','high','cells','getRowIndexes','plugins','editor','markMultiRangeInsertion','getContainedElement','insert','insertColumns','document','first','suggestion','deletionRanges','registerCustomCallback','showSuggestionHighlights','markerName','setAttributes','tableCellSuggestion','tablePasteCell','locale','columnInsertionIndexes','_suggestionFactory','rowInsertionIndexes','getSelectionAffectedTableCells','markerToHighlight','redo','change','length','createTableWalker','rootName','position','set','view','registerDescriptionCallback','keys','tablePasteRow','getChanges','find','findAncestor','TrackChangesEditing','element','tablePaste','setAttribute','root','_descriptionFactory','tableCellBorderStyle','content','value','startsWith','markMultiRangeDeletion','has','row','type','getSuggestions','tableCellPadding','isEmpty','createRangeIn','for','suggestionUnloaded','trackChanges','containsRange','columns','isEqual','tableCellHorizontalAlignment','suggestionLoaded','unwrap','model','getAllAdjacentSuggestions','column','includes','getTableIfOnlyTableInContent','_tablePostFixingSubtypes','end','*Replace\x20table\x20cells*','markers','removeColumns','from','entries','requires','nodeAfter','commands','fromEntries','getSuggestionCallback','createElement','getSuggestion','paragraph','wrap','push','tableCell','accept','editing','getChangedMarkers','suggestion:formatBlock:tablePasteCell','discard','_replaceTableSlotCell','tableCellVerticalAlignment','filter','oldRange','ck-suggestion-marker--active','start','insertContent','getShiftedBy','removeMarker','getItems','tablePasteChainId','endColumn','table','TableClipboard','cell','add','previousSibling','get','differ','nextSibling','formatBlock','remove','getColumns','createRangeOn','getAttributes','join','dataDowncast','tableCellBackgroundColor','forceDefaultExecution','getRange','attributes','insertion','ck-suggestion-marker-insertion','documentSelection','Users','map','insertRows','suggestion-td','markerAttributes','move','removeMarkers','stop','rows','clipboardOutput','getMarkers','newRange','getChildren','elementToElement','ck-suggestion-marker','insertionRanges','activeMarkers','return','subType','last','listenTo','name','reduce','author','fill','registerPostFixer','deletion','low','selection','getChild','isInContent','options'];(function(_0x18ccdc,_0x312258){const _0x2930ce=function(_0x45f285){while(--_0x45f285){_0x18ccdc['push'](_0x18ccdc['shift']());}};_0x2930ce(++_0x312258);}(_0x3122,0xcc));const _0x2930=function(_0x18ccdc,_0x312258){_0x18ccdc=_0x18ccdc-0x0;let _0x2930ce=_0x3122[_0x18ccdc];return _0x2930ce;};import{getTranslation as _0x499243}from'../utils/common-translations';import{Plugin as _0x4e3013}from'ckeditor5/src/core';import{uid as _0x230d37,priorities as _0x4770cb}from'ckeditor5/src/utils';import _0x44d2e4 from'./table';const le=[_0x2930('0x7d'),'tableCellBorderColor',_0x2930('0x9'),_0x2930('0x1b'),_0x2930('0x3b'),_0x2930('0x55'),_0x2930('0x12')],ae=Object[_0x2930('0x2d')](le[_0x2930('0x5d')](_0x1679c2=>[_0x1679c2,null]));export default class kt extends _0x4e3013{static get[_0x2930('0x2a')](){return[_0x44d2e4];}['afterInit'](){const _0x11e7c9=this[_0x2930('0x84')];if(!_0x11e7c9[_0x2930('0x83')][_0x2930('0xe')](_0x2930('0x47')))return;const _0x484bb2=_0x11e7c9[_0x2930('0x83')][_0x2930('0x4b')](_0x2930('0x3')),_0x142df1=_0x11e7c9['plugins'][_0x2930('0x4b')]('TableUtils'),_0x2e7a6a=_0x11e7c9['plugins'][_0x2930('0x4b')](_0x44d2e4),_0x39888e=_0x11e7c9[_0x2930('0x83')][_0x2930('0x4b')]('TableClipboard');_0x2e7a6a[_0x2930('0x23')][_0x2930('0x33')](_0x2930('0xa3'),'tablePasteColumn'),_0x11e7c9['model']['schema']['register']('tableCellSuggestion',{'allowIn':_0x2930('0x34'),'allowContentOf':_0x2930('0x34'),'isLimit':!0x0}),_0x11e7c9[_0x2930('0x7f')][_0x2930('0x69')]({'model':_0x2930('0x91'),'view':_0x2930('0x5f')});let _0x37925b=null;_0x11e7c9[_0x2930('0x1e')]['on'](_0x2930('0x40'),(_0x48e584,_0x2369ca)=>{const [_0x371b5d,_0x291a7a]=_0x2369ca,_0x8fbdf8=_0x2369ca[_0x2369ca['length']-0x1];_0x8fbdf8&&_0x8fbdf8[_0x2930('0x56')]||_0x484bb2['_isForcedDefaultExecutionBlock']||this[_0x2930('0x84')][_0x2930('0x2c')]['get'](_0x2930('0x17'))[_0x2930('0xb')]&&function(_0x2c4554,_0xff7b3d,_0x324651,_0x19fece,_0xeb7a23){if(_0xff7b3d&&!_0xff7b3d['is'](_0x2930('0x5b')))return!0x1;const _0x15df0a=_0xeb7a23[_0x2930('0x22')](_0x2c4554,_0x324651);if(!_0x15df0a||!fe(_0x15df0a,void 0x0,_0x19fece))return!0x1;const _0x3c49d3=_0x19fece[_0x2930('0x97')](_0x324651[_0x2930('0x89')][_0x2930('0x78')]);if(!_0x3c49d3[_0x2930('0x9b')])return!0x1;const _0x2566f4=_0x3c49d3[0x0][_0x2930('0x2')](_0x2930('0x46')),_0x54f9cc=_0x19fece[_0x2930('0x82')](_0x3c49d3),_0xa657eb=_0x19fece['getColumnIndexes'](_0x3c49d3),_0x1bad4d={'startRow':_0x54f9cc[_0x2930('0x8a')],'endRow':_0x54f9cc[_0x2930('0x6f')],'startColumn':_0xa657eb[_0x2930('0x8a')],'endColumn':_0xa657eb['last']};return 0x1==_0x3c49d3[_0x2930('0x9b')]&&(_0x1bad4d['endRow']+=_0x19fece[_0x2930('0x7c')](_0x15df0a)-0x1,_0x1bad4d[_0x2930('0x45')]+=_0x19fece[_0x2930('0x50')](_0x15df0a)-0x1),fe(_0x2566f4,_0x1bad4d,_0x19fece);}(_0x371b5d,_0x291a7a,_0x11e7c9[_0x2930('0x1e')],_0x142df1,_0x39888e)&&(_0x48e584[_0x2930('0x63')](),_0x37925b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x11e7c9[_0x2930('0x1e')][_0x2930('0x9a')](()=>{_0x11e7c9[_0x2930('0x1e')][_0x2930('0x40')](_0x2369ca[0x0],_0x2369ca[0x1],_0x2369ca[0x2],{'forceDefaultExecution':!0x0});const _0x1142ec=_0x230d37(),{rowInsertionRanges:_0x33a3fd,columnInsertionRanges:_0xd18c29,insertionRanges:_0x23934c,deletionRanges:_0x27d67f,cells:_0x46c68d}=_0x37925b;_0x33a3fd['length']&&_0x484bb2[_0x2930('0x85')](_0x33a3fd,_0x2930('0xa3'),{'tablePasteChainId':_0x1142ec}),_0xd18c29['length']&&_0x484bb2['markMultiRangeInsertion'](_0xd18c29,'tablePasteColumn',{'tablePasteChainId':_0x1142ec}),_0x23934c['length']&&_0x484bb2[_0x2930('0x85')](_0x23934c,_0x2930('0x5'),{'tablePasteChainId':_0x1142ec,'skipNestingCheck':!0x0}),_0x27d67f[_0x2930('0x9b')]&&_0x484bb2[_0x2930('0xd')](_0x27d67f,_0x2930('0x5'),{'tablePasteChainId':_0x1142ec,'skipNestingCheck':!0x0});const _0x3626d3=_0x484bb2['markMultiRangeBlockFormat'](_0x46c68d[_0x2930('0x5d')](({element:_0x469c80})=>_0x469c80),{'formatGroupId':_0x230d37()},[],_0x2930('0x92'),{'tablePasteChainId':_0x1142ec});if(_0x3626d3){const _0xee159e=_0x3626d3[_0x2930('0x66')](),_0xfc0680=[];for(const {element:_0x4e966b,attributes:_0x56afb2}of _0x46c68d){if(!_0x56afb2)continue;const _0x52ec26=_0x11e7c9[_0x2930('0x1e')]['createRangeOn'](_0x4e966b),_0x1bfea2=_0xee159e[_0x2930('0x1')](_0x8f9bde=>_0x8f9bde[_0x2930('0x57')]()[_0x2930('0x1a')](_0x52ec26));_0x1bfea2&&_0xfc0680[_0x2930('0x33')]([_0x1bfea2[_0x2930('0x71')],_0x56afb2]);}_0xfc0680[_0x2930('0x9b')]&&_0x3626d3[_0x2930('0x6')](_0x2930('0x60'),Object['fromEntries'](_0xfc0680));}_0x37925b=null;}));},{'priority':_0x4770cb[_0x2930('0x80')]+0xa}),_0x11e7c9[_0x2930('0x83')][_0x2930('0x4b')]('TableClipboard')['on'](_0x2930('0x3a'),(_0x2a0884,_0x4b8331)=>{const [_0x20dff5,_0x3bac88,,_0x2cdf52]=_0x4b8331;if(!_0x37925b)return;_0x2a0884[_0x2930('0x63')]();const _0x340cf0=_0x20dff5[_0x2930('0x48')],_0x4a4001=_0x3bac88,_0x3c510a=ce(_0x340cf0),_0x441444=ce(_0x4a4001);_0x2a0884[_0x2930('0x6d')]=_0x340cf0;let _0x41da11=null,_0x955ac3=null;if(_0x441444||_0x3c510a){if(_0x3c510a&&!_0x441444){_0x2cdf52['remove'](_0x340cf0[_0x2930('0x79')](0x0));for(const _0x2d60d8 of Array[_0x2930('0x28')](_0x4a4001[_0x2930('0x68')]()))_0x2cdf52[_0x2930('0x87')](_0x2d60d8,_0x340cf0,_0x2930('0x24'));const _0x334ffa=_0x37925b['rowInsertionIndexes'][_0x2930('0x21')](_0x20dff5[_0x2930('0xf')]),_0x2382a3=_0x37925b[_0x2930('0x94')][_0x2930('0x21')](_0x20dff5[_0x2930('0x20')]);_0x334ffa||_0x2382a3||(_0x41da11=_0x2cdf52[_0x2930('0x14')](_0x340cf0));}else _0x441444&&!_0x3c510a&&(_0x955ac3=_0x2cdf52[_0x2930('0x14')](_0x340cf0));}else{const _0x2aa504=_0x2cdf52[_0x2930('0x2f')](_0x2930('0x91')),_0x2f00a8=_0x2cdf52[_0x2930('0x2f')](_0x2930('0x91'));_0x2cdf52[_0x2930('0x32')](_0x2cdf52[_0x2930('0x14')](_0x340cf0),_0x2f00a8),_0x2cdf52[_0x2930('0x87')](_0x2aa504,_0x340cf0,0x0);for(const _0x311e4c of Array['from'](_0x4a4001['getChildren']()))_0x2cdf52[_0x2930('0x87')](_0x311e4c,_0x2aa504,'end');_0x41da11=_0x2cdf52[_0x2930('0x51')](_0x2aa504),_0x955ac3=_0x2cdf52['createRangeOn'](_0x2f00a8);}const _0x8cb158=Array['from'](_0x4a4001[_0x2930('0x52')]())[_0x2930('0x3c')](([_0x189553])=>le[_0x2930('0x21')](_0x189553));_0x37925b[_0x2930('0x81')][_0x2930('0x33')]({'element':_0x340cf0,'attributes':_0x8cb158[_0x2930('0x9b')]?Object[_0x2930('0x2d')](_0x8cb158):null}),_0x41da11&&_0x37925b[_0x2930('0x6b')][_0x2930('0x33')](_0x41da11),_0x955ac3&&_0x37925b[_0x2930('0x8c')][_0x2930('0x33')](_0x955ac3);},{'priority':'high'}),_0x142df1['on'](_0x2930('0x88'),(_0x137826,_0x3bcf84)=>{const [_0x1fc5e4,_0x1cba33={}]=_0x3bcf84;if(!_0x37925b)return;const _0x28efe7=_0x1cba33['at']||0x0,_0x4f1ba4=_0x1cba33[_0x2930('0x19')]||0x1;_0x37925b[_0x2930('0x94')]=new Array(_0x4f1ba4)['fill'](_0x28efe7)[_0x2930('0x5d')]((_0xdfae74,_0x2c600c)=>_0xdfae74+_0x2c600c);for(const {cell:_0x16fe6a}of _0x142df1[_0x2930('0x9c')](_0x1fc5e4,{'startColumn':_0x28efe7,'endColumn':_0x28efe7+_0x4f1ba4-0x1}))_0x37925b['columnInsertionRanges']['push'](_0x11e7c9[_0x2930('0x1e')][_0x2930('0x51')](_0x16fe6a));},{'priority':_0x2930('0x77')}),_0x142df1['on'](_0x2930('0x5e'),(_0x572d2d,_0x2a7878)=>{const [_0x4427b9,_0x58b95e={}]=_0x2a7878;if(!_0x37925b)return;const _0x5274d5=_0x58b95e['at']||0x0,_0x205794=_0x58b95e[_0x2930('0x64')]||0x1;_0x37925b[_0x2930('0x96')]=new Array(_0x205794)[_0x2930('0x74')](_0x5274d5)['map']((_0x10fe7e,_0x2cabc9)=>_0x10fe7e+_0x2cabc9);for(const {cell:_0x3f677b}of _0x142df1[_0x2930('0x9c')](_0x4427b9,{'startRow':_0x5274d5,'endRow':_0x5274d5+_0x205794-0x1}))_0x37925b['rowInsertionRanges'][_0x2930('0x33')](_0x11e7c9[_0x2930('0x1e')][_0x2930('0x51')](_0x3f677b));},{'priority':_0x2930('0x77')}),_0x484bb2[_0x2930('0x8')][_0x2930('0xa1')](_0x592edd=>{if(_0x592edd[_0x2930('0x6e')]&&_0x592edd[_0x2930('0x6e')][_0x2930('0xc')](_0x2930('0x5')))return _0x592edd['previous']?{}:{'type':_0x2930('0x59'),'content':_0x499243(_0x11e7c9[_0x2930('0x93')],_0x2930('0x25'))};});const _0x49f6fc=()=>{};for(const _0x36f6a4 of['tablePaste','tablePasteColumn',_0x2930('0xa3'),_0x2930('0x92')])_0x484bb2[_0x2930('0x95')][_0x2930('0x8d')](_0x2930('0x59'),_0x36f6a4,_0x2930('0x53'),_0x49f6fc),_0x484bb2[_0x2930('0x95')]['registerCustomCallback'](_0x2930('0x76'),_0x36f6a4,_0x2930('0x53'),_0x49f6fc);_0x484bb2[_0x2930('0x95')][_0x2930('0x8d')]('formatBlock',_0x2930('0x92'),'discard',_0x49f6fc),_0x484bb2[_0x2930('0x95')][_0x2930('0x8d')](_0x2930('0x4e'),'tablePasteCell',_0x2930('0x35'),(_0x2dba46,_0x4cb4bd,_0x31851a)=>{const _0x48ab78=_0x2dba46[_0x2930('0x5d')](_0x35cd77=>_0x35cd77['getContainedElement']())['filter'](_0x47839c=>_0x47839c),_0x55d672=new Map(_0x48ab78[_0x2930('0x5d')](_0x4e5b55=>[_0x4e5b55,null]));if(_0x37925b)for(const {element:_0x873f5b,attributes:_0x58d7e9}of _0x37925b[_0x2930('0x81')])_0x58d7e9&&_0x55d672[_0x2930('0x9f')](_0x873f5b,_0x58d7e9);else{if(_0x31851a&&_0x31851a[_0x2930('0x60')])for(const [_0x27fcc5,_0x127b32]of Object[_0x2930('0x29')](_0x31851a['markerAttributes'])){const _0x1e4bed=_0x11e7c9[_0x2930('0x1e')][_0x2930('0x26')][_0x2930('0x4b')](_0x27fcc5),_0x252895=_0x1e4bed?_0x1e4bed[_0x2930('0x57')]()['getContainedElement']():null;_0x252895&&_0x55d672[_0x2930('0x9f')](_0x252895,_0x127b32);}}_0x11e7c9[_0x2930('0x1e')][_0x2930('0x9a')](_0x102cf=>{for(const [_0x1c9bb4,_0xbb0ed5]of _0x55d672)_0x102cf[_0x2930('0x90')]({...ae,..._0xbb0ed5},_0x1c9bb4);});});const _0x5eddad=(_0x4735a1,_0x40d177)=>{_0x484bb2[_0x2930('0x95')][_0x2930('0x8d')](_0x4735a1,_0x2930('0x5'),_0x40d177,(_0x5d6872,_0x4a5189,_0x5be77a)=>{_0x11e7c9[_0x2930('0x1e')]['change'](_0x3dbc79=>{const _0x30a7f7=[];for(const _0x2a4717 of _0x5d6872){const _0x3be3d8=_0x2a4717[_0x2930('0x3f')][_0x2930('0x2b')];_0x3be3d8['is']('element',_0x2930('0x91'))&&_0x30a7f7[_0x2930('0x33')](_0x3be3d8);}_0x484bb2[_0x2930('0x95')][_0x2930('0x2e')](_0x4735a1,null,_0x40d177)(_0x5d6872,_0x4a5189,_0x5be77a);for(const _0x45cd8b of _0x30a7f7)'$graveyard'!=_0x45cd8b[_0x2930('0x7')][_0x2930('0x9d')]&&_0x3dbc79['unwrap'](_0x45cd8b);});});};_0x5eddad(_0x2930('0x59'),'accept'),_0x5eddad(_0x2930('0x59'),_0x2930('0x39')),_0x5eddad(_0x2930('0x76'),'accept'),_0x5eddad(_0x2930('0x76'),_0x2930('0x39')),_0x484bb2[_0x2930('0x95')][_0x2930('0x8d')]('insertion',_0x2930('0xa3'),_0x2930('0x39'),_0x2b81f0=>{const _0x59c314=_0x2b81f0[_0x2930('0x5d')](_0x4d6bef=>_0x4d6bef[_0x2930('0x86')]()),_0xfbb47c=_0x59c314[0x0]['findAncestor'](_0x2930('0x46')),{minRow:_0x5dd52a,maxRow:_0x5d0e6c}=_0x2e7a6a['_getCoordsForCells'](_0x59c314);_0x142df1[_0x2930('0x7e')](_0xfbb47c,{'at':_0x5dd52a,'rows':_0x5d0e6c-_0x5dd52a+0x1});}),_0x484bb2[_0x2930('0x95')][_0x2930('0x8d')](_0x2930('0x59'),'tablePasteColumn','discard',_0xe19aea=>{const _0x5e626f=_0xe19aea['map'](_0x2c4433=>_0x2c4433[_0x2930('0x86')]()),_0x57ca86=_0x5e626f[0x0][_0x2930('0x2')]('table'),{minColumn:_0x1a87b3,maxColumn:_0x2984d6}=_0x2e7a6a['_getCoordsForCells'](_0x5e626f);_0x142df1[_0x2930('0x27')](_0x57ca86,{'at':_0x1a87b3,'columns':_0x2984d6-_0x1a87b3+0x1});});const _0x2e0df6=(_0x41feae,_0x5c7dfe)=>{if(!_0x5c7dfe['subType']||!_0x5c7dfe[_0x2930('0x6e')][_0x2930('0xc')]('tablePaste'))return;const _0x282cb2=_0x5c7dfe[_0x2930('0x58')][_0x2930('0x44')],_0xa49ab=_0x484bb2[_0x2930('0x11')]()['filter'](_0x572904=>_0x572904['isInContent']&&_0x572904[_0x2930('0x58')]&&_0x572904[_0x2930('0x58')][_0x2930('0x44')]==_0x282cb2);_0xa49ab[_0x2930('0x9b')]&&_0x5c7dfe[_0x2930('0x1f')]()[_0x2930('0x9b')]!=_0xa49ab[_0x2930('0x9b')]&&_0xa49ab[_0x2930('0x72')]((_0x2f58d2,_0x4559e7)=>(_0x2f58d2['next']=_0x4559e7,_0x4559e7['previous']=_0x2f58d2,_0x4559e7));};function _0x42bd57(_0x187c49,_0x24a235=!0x0){const {id:_0x168cc3}=_0x484bb2['_splitMarkerName'](_0x187c49[_0x2930('0x8f')]),_0x3a820a=[_0x2930('0x6a'),_0x2930('0x5a')],_0xd27617=_0x484bb2[_0x2930('0x6c')][_0x2930('0x21')](_0x187c49['markerName']);return _0xd27617&&_0x3a820a[_0x2930('0x33')](_0x2930('0x3e')),{'classes':_0x3a820a,'attributes':{'data-suggestion':_0x168cc3},'priority':_0xd27617&&_0x24a235?0xbc2:0xbb8};}_0x484bb2['on'](_0x2930('0x1c'),_0x2e0df6,{'priority':'high'}),_0x484bb2['on'](_0x2930('0x16'),_0x2e0df6,{'priority':_0x2930('0x80')}),_0x11e7c9['model']['document'][_0x2930('0x75')](()=>{let _0x3d0a32=!0x1;const _0xe0df23=Array[_0x2930('0x28')](_0x11e7c9[_0x2930('0x1e')]['document'][_0x2930('0x4c')][_0x2930('0x37')]());for(const {name:_0x58242f,data:_0x42727e}of _0xe0df23){const {group:_0x555b43,type:_0x539a37,id:_0x5211c1}=_0x484bb2['_splitMarkerName'](_0x58242f);if(_0x2930('0x8b')!=_0x555b43||'deletion'!=_0x539a37||_0x42727e[_0x2930('0x3d')])continue;if(!_0x484bb2['hasSuggestion'](_0x5211c1))continue;const _0x57237c=_0x484bb2[_0x2930('0x30')](_0x5211c1)['getRanges'](),_0x44fe7d=_0x11e7c9['plugins'][_0x2930('0x4b')](_0x2930('0x5c'))['me'];for(const _0x3a0ff6 of _0x484bb2[_0x2930('0x11')]()){if(!_0x3a0ff6[_0x2930('0x7a')]||_0x3a0ff6[_0x2930('0x73')]!=_0x44fe7d)continue;if(_0x2930('0x4e')!=_0x3a0ff6[_0x2930('0x10')]||'tablePasteCell'!=_0x3a0ff6[_0x2930('0x6e')])continue;if(_0x3a0ff6['getRanges']()['every'](_0x5949a9=>_0x57237c['some'](_0x110fd7=>_0x110fd7[_0x2930('0x18')](_0x5949a9,!0x0))))for(const _0x10a117 of _0x3a0ff6[_0x2930('0x1f')]())_0x10a117[_0x2930('0x7a')]&&(_0x10a117['discard'](),_0x3d0a32=!0x0);}}return _0x3d0a32;}),_0x11e7c9['model']['document'][_0x2930('0x75')](_0x5551e4=>{const _0x3d5214=_0x11e7c9[_0x2930('0x2c')][_0x2930('0x4b')](_0x2930('0x99'));if(!_0x3d5214||!_0x3d5214['_createdBatches'][_0x2930('0xe')](_0x5551e4['batch']))return!0x1;let _0x4893ed=!0x1;const _0x4a3375=_0x11e7c9[_0x2930('0x83')][_0x2930('0x4b')](_0x2930('0x5c'))['me'],_0x3e9479=_0x11e7c9[_0x2930('0x1e')][_0x2930('0x89')][_0x2930('0x4c')][_0x2930('0x0')](),_0x3976fa=Array[_0x2930('0x28')](_0x11e7c9[_0x2930('0x1e')][_0x2930('0x89')]['differ']['getChangedMarkers']())[_0x2930('0x3c')](({name:_0x425447,data:_0x3e6475})=>{const {group:_0x5d531f,subType:_0x53a4e9,authorId:_0x2b994a}=_0x484bb2['_splitMarkerName'](_0x425447);return _0x2930('0x8b')==_0x5d531f&&_0x2930('0x5')==_0x53a4e9&&_0x2b994a==_0x4a3375['id']&&!_0x3e6475['oldRange'];});for(const _0x245f50 of _0x3e9479){if(_0x2930('0x87')!=_0x245f50[_0x2930('0x10')]||'tableCellSuggestion'!=_0x245f50[_0x2930('0x71')]||0x1!=_0x245f50['length'])continue;const _0x3895c8=_0x5551e4['createRange'](_0x245f50[_0x2930('0x9e')],_0x245f50[_0x2930('0x9e')][_0x2930('0x41')](0x1));if(!_0x3976fa[_0x2930('0x1')](({data:_0x823ac4})=>_0x823ac4[_0x2930('0x67')]['isEqual'](_0x3895c8)))for(const {name:_0x489672,data:_0x860a42}of _0x3976fa)if(_0x3895c8[_0x2930('0x18')](_0x860a42[_0x2930('0x67')])){_0x5551e4['updateMarker'](_0x489672,{'range':_0x3895c8}),_0x4893ed=!0x0;break;}}return _0x4893ed;}),_0x11e7c9[_0x2930('0x1e')][_0x2930('0x89')][_0x2930('0x75')](_0x3fab09=>{let _0x48faf8=!0x1;const _0x43b44c=_0x11e7c9[_0x2930('0x83')][_0x2930('0x4b')](_0x2930('0x5c'))['me'],_0x1c236f=_0x484bb2[_0x2930('0x11')]()[_0x2930('0x3c')](_0x505485=>_0x505485['isInContent']&&_0x505485[_0x2930('0x73')]==_0x43b44c),_0x1cc5d8=new Set(),_0x15c989=new Set();for(const _0x40db4d of _0x1c236f)if('tablePaste'==_0x40db4d[_0x2930('0x6e')])for(const _0x3a6881 of _0x40db4d['getMarkers']()){const _0x19fe83=_0x3a6881[_0x2930('0x57')]()[_0x2930('0x86')]();if(_0x19fe83){if(_0x19fe83['is']('element',_0x2930('0x91'))&&ce(_0x19fe83)){_0x40db4d[_0x2930('0x42')](_0x3a6881[_0x2930('0x71')]),_0x1cc5d8['add'](_0x19fe83),_0x48faf8=!0x0;const _0x219bf3=_0x19fe83[_0x2930('0x4d')],_0x4bbd0c=_0x19fe83[_0x2930('0x4a')],_0x122067=_0x219bf3&&_0x219bf3['is'](_0x2930('0x4'),_0x2930('0x91')),_0x54d938=_0x4bbd0c&&_0x4bbd0c['is'](_0x2930('0x4'),_0x2930('0x91'));_0x122067&&!_0x1cc5d8[_0x2930('0xe')](_0x219bf3)&&_0x15c989[_0x2930('0x49')](_0x219bf3),_0x54d938&&!_0x1cc5d8[_0x2930('0xe')](_0x4bbd0c)&&_0x15c989[_0x2930('0x49')](_0x4bbd0c);}else _0x19fe83['is'](_0x2930('0x4'),_0x2930('0x31'))&&_0x19fe83[_0x2930('0x13')]&&(_0x40db4d[_0x2930('0x42')](_0x3a6881['name']),_0x48faf8=!0x0);}}else{if('tablePasteCell'==_0x40db4d['subType']){if(!_0x40db4d[_0x2930('0x58')]||!_0x40db4d[_0x2930('0x58')][_0x2930('0x44')])continue;const _0x4b806c=_0x40db4d[_0x2930('0x58')][_0x2930('0x60')];if(_0x4b806c&&Object[_0x2930('0xa2')](_0x4b806c)[_0x2930('0x9b')])continue;const _0x5aa67e=_0x40db4d['attributes'][_0x2930('0x44')];let _0x3590d1=!0x0,_0x424bac=!0x0;for(const _0x51c98d of _0x1c236f)if(_0x51c98d[_0x2930('0x6e')]&&_0x51c98d[_0x2930('0x6e')][_0x2930('0xc')](_0x2930('0x5'))){if(!_0x51c98d[_0x2930('0x58')]['tablePasteChainId']){_0x424bac=!0x1;break;}if(_0x51c98d['id']!=_0x40db4d['id']&&_0x51c98d[_0x2930('0x58')][_0x2930('0x44')]==_0x5aa67e){_0x3590d1=!0x1;break;}}_0x424bac&&_0x3590d1&&(_0x40db4d[_0x2930('0x62')](),_0x48faf8=!0x0);}}for(const _0x10e119 of _0x1cc5d8)_0x3fab09[_0x2930('0x4f')](_0x10e119);for(const _0x4a7779 of _0x15c989)_0x3fab09[_0x2930('0x1d')](_0x4a7779);return _0x48faf8;}),_0x11e7c9[_0x2930('0x7f')]['for']('editingDowncast')[_0x2930('0x98')]({'model':_0x2930('0x38'),'view':(_0x24239c,_0xb4b478)=>_0x42bd57(_0x24239c),'converterPriority':_0x2930('0x80')}),_0x11e7c9[_0x2930('0x7f')][_0x2930('0x15')](_0x2930('0x54'))[_0x2930('0x98')]({'model':_0x2930('0x38'),'view':(_0x9e0b23,_0x921def)=>_0x921def[_0x2930('0x7b')][_0x2930('0x8e')]?_0x42bd57(_0x9e0b23,!0x1):null,'converterPriority':_0x2930('0x80')});const _0x286f71=_0x11e7c9[_0x2930('0x36')][_0x2930('0xa0')];this[_0x2930('0x70')](_0x286f71[_0x2930('0x89')],_0x2930('0x65'),(_0x13391a,_0xaffbb8)=>{const _0x5dd636=[];for(const _0x33ca19 of _0x286f71[_0x2930('0x14')](_0xaffbb8[_0x2930('0xa')])[_0x2930('0x43')]())_0x33ca19['is'](_0x2930('0x4'),_0x2930('0x5f'))&&_0x5dd636['push'](_0x33ca19);_0x286f71['change'](_0x1b7404=>{for(const _0x14381f of _0x5dd636)_0x1b7404[_0x2930('0x61')](_0x1b7404[_0x2930('0x14')](_0x14381f),_0x1b7404['createPositionBefore'](_0x14381f)),_0x1b7404[_0x2930('0x4f')](_0x14381f);});});}}function ce(_0x375684){if(_0x375684['isEmpty'])return!0x0;const _0x238822=_0x375684['getChild'](0x0);return _0x238822['is'](_0x2930('0x4'),'paragraph')&&_0x238822[_0x2930('0x13')];}function fe(_0x3e0175,_0x24e121={},_0x4c152f){for(const {isAnchor:_0x2e0643,cellHeight:_0x4c9b57,cellWidth:_0x4c70ed}of _0x4c152f[_0x2930('0x9c')](_0x3e0175,{'includeAllSlots':!0x0,..._0x24e121}))if(!_0x2e0643||0x1!=_0x4c9b57||0x1!=_0x4c70ed)return!0x1;return!0x0;}
|
|
23
|
+
const _0x1d8c=['columns','from','insertionRanges','createRangeIn','afterInit','getMarkers','removeMarker','element','column','getChangedMarkers','markerAttributes','locale','keys','markMultiRangeDeletion','model','suggestion-td','getItems','getAllAdjacentSuggestions','getRows','tableCellSuggestion','tablePasteRow','Users','dataDowncast','ck-suggestion-marker','conversion','markMultiRangeBlockFormat','tablePaste','removeMarkers','getSelectionAffectedTableCells','findAncestor','subType','forceDefaultExecution','options','register','find','cell','tableCellBorderWidth','getRange','markMultiRangeInsertion','paragraph','tableCellVerticalAlignment','nodeAfter','isEqual','markerName','for','last','getAttributes','isEmpty','createTableWalker','getShiftedBy','batch','elementToElement','map','createElement','cells','getChanges','insertColumns','markerToHighlight','author','$graveyard','differ','table','redo','_descriptionFactory','deletionRanges','trackChanges','stop','suggestion','editing','getSuggestions','oldRange','value','previousSibling','tablePasteColumn','TableClipboard','end','name','commands','includes','add','discard','join','remove','filter','rows','_tablePostFixingSubtypes','fill','root','plugins','low','getChild','showSuggestionHighlights','setAttribute','isInContent','markers','get','_suggestionFactory','move','rowInsertionRanges','_getCoordsForCells','length','push','removeRows','accept','view','TableUtils','getRowIndexes','insertion','start','wrap','document','newRange','startsWith','formatBlock','listenTo','ck-suggestion-marker-insertion','tableCellBackgroundColor','tableCell','fromEntries','tablePasteChainId','tableCellBorderStyle','rowInsertionIndexes','insertRows','unwrap','ck-suggestion-marker--active','containsRange','selection','attributes','registerPostFixer','change','type','deletion','createRange','suggestionUnloaded','insert','registerCustomCallback','getColumns','getSuggestion','tableCellPadding','suggestion:formatBlock:tablePasteCell','_splitMarkerName','columnInsertionRanges','getColumnIndexes','tablePasteCell','getTableIfOnlyTableInContent','first','endColumn','clipboardOutput','columnInsertionIndexes','set','getContainedElement','insertContent','rootName','*Replace\x20table\x20cells*','high','createRangeOn','has','getChildren'];(function(_0x233fa3,_0x1d8c18){const _0x4ad7d2=function(_0x189811){while(--_0x189811){_0x233fa3['push'](_0x233fa3['shift']());}};_0x4ad7d2(++_0x1d8c18);}(_0x1d8c,0xf8));const _0x4ad7=function(_0x233fa3,_0x1d8c18){_0x233fa3=_0x233fa3-0x0;let _0x4ad7d2=_0x1d8c[_0x233fa3];return _0x4ad7d2;};import{getTranslation as _0xe53ce8}from'../utils/common-translations';import{Plugin as _0xee7be4}from'ckeditor5/src/core';import{uid as _0x333155,priorities as _0x361eba}from'ckeditor5/src/utils';import _0x5df75a from'./table';const le=[_0x4ad7('0x68'),'tableCellBorderColor',_0x4ad7('0x1e'),'tableCellHorizontalAlignment',_0x4ad7('0x6c'),_0x4ad7('0x1a'),_0x4ad7('0x30')],ae=Object[_0x4ad7('0x1c')](le['map'](_0x440bad=>[_0x440bad,null]));export default class kt extends _0xee7be4{static get['requires'](){return[_0x5df75a];}[_0x4ad7('0x48')](){const _0x4e14b0=this['editor'];if(!_0x4e14b0[_0x4ad7('0x9c')][_0x4ad7('0x42')](_0x4ad7('0x8e')))return;const _0x2889f9=_0x4e14b0[_0x4ad7('0x9c')]['get']('TrackChangesEditing'),_0x4f47b8=_0x4e14b0['plugins'][_0x4ad7('0x5')](_0x4ad7('0xf')),_0x1ee4d9=_0x4e14b0[_0x4ad7('0x9c')][_0x4ad7('0x5')](_0x5df75a),_0x21f6ca=_0x4e14b0[_0x4ad7('0x9c')][_0x4ad7('0x5')](_0x4ad7('0x8e'));_0x1ee4d9[_0x4ad7('0x99')]['push']('tablePasteRow',_0x4ad7('0x8d')),_0x4e14b0[_0x4ad7('0x52')]['schema'][_0x4ad7('0x65')](_0x4ad7('0x57'),{'allowIn':_0x4ad7('0x1b'),'allowContentOf':_0x4ad7('0x1b'),'isLimit':!0x0}),_0x4e14b0['conversion'][_0x4ad7('0x77')]({'model':_0x4ad7('0x57'),'view':_0x4ad7('0x53')});let _0x193160=null;_0x4e14b0[_0x4ad7('0x52')]['on'](_0x4ad7('0x3d'),(_0x41bd90,_0x2be24d)=>{const [_0x2479c4,_0x4762a9]=_0x2be24d,_0x2ff337=_0x2be24d[_0x2be24d[_0x4ad7('0xa')]-0x1];_0x2ff337&&_0x2ff337[_0x4ad7('0x63')]||_0x2889f9['_isForcedDefaultExecutionBlock']||this['editor']['commands'][_0x4ad7('0x5')](_0x4ad7('0x85'))[_0x4ad7('0x8b')]&&function(_0x132d3f,_0x2ff62a,_0x1845d0,_0x51e2b0,_0x1921f5){if(_0x2ff62a&&!_0x2ff62a['is']('documentSelection'))return!0x1;const _0x21ddba=_0x1921f5[_0x4ad7('0x36')](_0x132d3f,_0x1845d0);if(!_0x21ddba||!fe(_0x21ddba,void 0x0,_0x51e2b0))return!0x1;const _0x26157e=_0x51e2b0[_0x4ad7('0x60')](_0x1845d0['document'][_0x4ad7('0x24')]);if(!_0x26157e['length'])return!0x1;const _0x282418=_0x26157e[0x0][_0x4ad7('0x61')]('table'),_0x4de32c=_0x51e2b0[_0x4ad7('0x10')](_0x26157e),_0x110c98=_0x51e2b0[_0x4ad7('0x34')](_0x26157e),_0x12aa5c={'startRow':_0x4de32c[_0x4ad7('0x37')],'endRow':_0x4de32c[_0x4ad7('0x71')],'startColumn':_0x110c98[_0x4ad7('0x37')],'endColumn':_0x110c98[_0x4ad7('0x71')]};return 0x1==_0x26157e[_0x4ad7('0xa')]&&(_0x12aa5c['endRow']+=_0x51e2b0[_0x4ad7('0x56')](_0x21ddba)-0x1,_0x12aa5c[_0x4ad7('0x38')]+=_0x51e2b0[_0x4ad7('0x2e')](_0x21ddba)-0x1),fe(_0x282418,_0x12aa5c,_0x51e2b0);}(_0x2479c4,_0x4762a9,_0x4e14b0[_0x4ad7('0x52')],_0x4f47b8,_0x21f6ca)&&(_0x41bd90[_0x4ad7('0x86')](),_0x193160={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x27')](()=>{_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x3d')](_0x2be24d[0x0],_0x2be24d[0x1],_0x2be24d[0x2],{'forceDefaultExecution':!0x0});const _0x3081e0=_0x333155(),{rowInsertionRanges:_0x446f92,columnInsertionRanges:_0x4cd347,insertionRanges:_0x1b7b5e,deletionRanges:_0x270cda,cells:_0xc90257}=_0x193160;_0x446f92[_0x4ad7('0xa')]&&_0x2889f9[_0x4ad7('0x6a')](_0x446f92,_0x4ad7('0x58'),{'tablePasteChainId':_0x3081e0}),_0x4cd347[_0x4ad7('0xa')]&&_0x2889f9[_0x4ad7('0x6a')](_0x4cd347,_0x4ad7('0x8d'),{'tablePasteChainId':_0x3081e0}),_0x1b7b5e[_0x4ad7('0xa')]&&_0x2889f9[_0x4ad7('0x6a')](_0x1b7b5e,_0x4ad7('0x5e'),{'tablePasteChainId':_0x3081e0,'skipNestingCheck':!0x0}),_0x270cda[_0x4ad7('0xa')]&&_0x2889f9[_0x4ad7('0x51')](_0x270cda,_0x4ad7('0x5e'),{'tablePasteChainId':_0x3081e0,'skipNestingCheck':!0x0});const _0x4f213f=_0x2889f9[_0x4ad7('0x5d')](_0xc90257[_0x4ad7('0x78')](({element:_0x5d92df})=>_0x5d92df),{'formatGroupId':_0x333155()},[],_0x4ad7('0x35'),{'tablePasteChainId':_0x3081e0});if(_0x4f213f){const _0x14ad36=_0x4f213f['getMarkers'](),_0x397b0a=[];for(const {element:_0x4ee25c,attributes:_0x5f1283}of _0xc90257){if(!_0x5f1283)continue;const _0x3ba897=_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x41')](_0x4ee25c),_0x27f9aa=_0x14ad36[_0x4ad7('0x66')](_0x7670cd=>_0x7670cd[_0x4ad7('0x69')]()[_0x4ad7('0x6e')](_0x3ba897));_0x27f9aa&&_0x397b0a[_0x4ad7('0xb')]([_0x27f9aa[_0x4ad7('0x90')],_0x5f1283]);}_0x397b0a[_0x4ad7('0xa')]&&_0x4f213f[_0x4ad7('0x2')]('markerAttributes',Object[_0x4ad7('0x1c')](_0x397b0a));}_0x193160=null;}));},{'priority':_0x361eba[_0x4ad7('0x40')]+0xa}),_0x4e14b0[_0x4ad7('0x9c')][_0x4ad7('0x5')](_0x4ad7('0x8e'))['on']('_replaceTableSlotCell',(_0x396d5b,_0x675e24)=>{const [_0x258d1e,_0x5aa390,,_0x361b4e]=_0x675e24;if(!_0x193160)return;_0x396d5b[_0x4ad7('0x86')]();const _0x46e9e5=_0x258d1e[_0x4ad7('0x67')],_0x3fb2aa=_0x5aa390,_0x1b62b4=ce(_0x46e9e5),_0xe4a83f=ce(_0x3fb2aa);_0x396d5b['return']=_0x46e9e5;let _0x3e0bfd=null,_0x546cb7=null;if(_0xe4a83f||_0x1b62b4){if(_0x1b62b4&&!_0xe4a83f){_0x361b4e['remove'](_0x46e9e5[_0x4ad7('0x0')](0x0));for(const _0x163946 of Array['from'](_0x3fb2aa[_0x4ad7('0x43')]()))_0x361b4e[_0x4ad7('0x2c')](_0x163946,_0x46e9e5,_0x4ad7('0x8f'));const _0x4fcd68=_0x193160[_0x4ad7('0x1f')][_0x4ad7('0x92')](_0x258d1e['row']),_0x2c112=_0x193160['columnInsertionIndexes'][_0x4ad7('0x92')](_0x258d1e[_0x4ad7('0x4c')]);_0x4fcd68||_0x2c112||(_0x3e0bfd=_0x361b4e['createRangeIn'](_0x46e9e5));}else _0xe4a83f&&!_0x1b62b4&&(_0x546cb7=_0x361b4e[_0x4ad7('0x47')](_0x46e9e5));}else{const _0xa470ec=_0x361b4e[_0x4ad7('0x79')]('tableCellSuggestion'),_0x46611b=_0x361b4e['createElement'](_0x4ad7('0x57'));_0x361b4e[_0x4ad7('0x13')](_0x361b4e[_0x4ad7('0x47')](_0x46e9e5),_0x46611b),_0x361b4e[_0x4ad7('0x2c')](_0xa470ec,_0x46e9e5,0x0);for(const _0x331a28 of Array['from'](_0x3fb2aa['getChildren']()))_0x361b4e['insert'](_0x331a28,_0xa470ec,'end');_0x3e0bfd=_0x361b4e[_0x4ad7('0x41')](_0xa470ec),_0x546cb7=_0x361b4e[_0x4ad7('0x41')](_0x46611b);}const _0x75bc18=Array[_0x4ad7('0x45')](_0x3fb2aa[_0x4ad7('0x72')]())[_0x4ad7('0x97')](([_0x261fa3])=>le[_0x4ad7('0x92')](_0x261fa3));_0x193160[_0x4ad7('0x7a')][_0x4ad7('0xb')]({'element':_0x46e9e5,'attributes':_0x75bc18[_0x4ad7('0xa')]?Object[_0x4ad7('0x1c')](_0x75bc18):null}),_0x3e0bfd&&_0x193160[_0x4ad7('0x46')][_0x4ad7('0xb')](_0x3e0bfd),_0x546cb7&&_0x193160[_0x4ad7('0x84')]['push'](_0x546cb7);},{'priority':_0x4ad7('0x40')}),_0x4f47b8['on'](_0x4ad7('0x7c'),(_0x1cca0e,_0x1fbbed)=>{const [_0xc67cf8,_0x3ded1f={}]=_0x1fbbed;if(!_0x193160)return;const _0x470842=_0x3ded1f['at']||0x0,_0x1c29dc=_0x3ded1f[_0x4ad7('0x44')]||0x1;_0x193160[_0x4ad7('0x3a')]=new Array(_0x1c29dc)['fill'](_0x470842)[_0x4ad7('0x78')]((_0x1b91e9,_0x2c69ae)=>_0x1b91e9+_0x2c69ae);for(const {cell:_0x54e880}of _0x4f47b8[_0x4ad7('0x74')](_0xc67cf8,{'startColumn':_0x470842,'endColumn':_0x470842+_0x1c29dc-0x1}))_0x193160[_0x4ad7('0x33')][_0x4ad7('0xb')](_0x4e14b0[_0x4ad7('0x52')]['createRangeOn'](_0x54e880));},{'priority':'low'}),_0x4f47b8['on'](_0x4ad7('0x20'),(_0x2b55da,_0xfaa75f)=>{const [_0x170cc5,_0x120d9c={}]=_0xfaa75f;if(!_0x193160)return;const _0x51bdab=_0x120d9c['at']||0x0,_0x2b2e7e=_0x120d9c[_0x4ad7('0x98')]||0x1;_0x193160[_0x4ad7('0x1f')]=new Array(_0x2b2e7e)[_0x4ad7('0x9a')](_0x51bdab)[_0x4ad7('0x78')]((_0x64afb5,_0x4379cc)=>_0x64afb5+_0x4379cc);for(const {cell:_0x428520}of _0x4f47b8[_0x4ad7('0x74')](_0x170cc5,{'startRow':_0x51bdab,'endRow':_0x51bdab+_0x2b2e7e-0x1}))_0x193160[_0x4ad7('0x8')][_0x4ad7('0xb')](_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x41')](_0x428520));},{'priority':_0x4ad7('0x9d')}),_0x2889f9[_0x4ad7('0x83')]['registerDescriptionCallback'](_0xcfb738=>{if(_0xcfb738['subType']&&_0xcfb738[_0x4ad7('0x62')][_0x4ad7('0x16')](_0x4ad7('0x5e')))return _0xcfb738['previous']?{}:{'type':_0x4ad7('0x11'),'content':_0xe53ce8(_0x4e14b0[_0x4ad7('0x4f')],_0x4ad7('0x3f'))};});const _0x1d867a=()=>{};for(const _0xacf9f9 of[_0x4ad7('0x5e'),'tablePasteColumn',_0x4ad7('0x58'),_0x4ad7('0x35')])_0x2889f9['_suggestionFactory']['registerCustomCallback'](_0x4ad7('0x11'),_0xacf9f9,_0x4ad7('0x95'),_0x1d867a),_0x2889f9[_0x4ad7('0x6')][_0x4ad7('0x2d')](_0x4ad7('0x29'),_0xacf9f9,_0x4ad7('0x95'),_0x1d867a);_0x2889f9[_0x4ad7('0x6')][_0x4ad7('0x2d')](_0x4ad7('0x17'),_0x4ad7('0x35'),'discard',_0x1d867a),_0x2889f9[_0x4ad7('0x6')][_0x4ad7('0x2d')](_0x4ad7('0x17'),_0x4ad7('0x35'),_0x4ad7('0xd'),(_0x37e8e8,_0x4316e7,_0x7f0b30)=>{const _0x30924f=_0x37e8e8[_0x4ad7('0x78')](_0x5095bd=>_0x5095bd[_0x4ad7('0x3c')]())[_0x4ad7('0x97')](_0x4abbc0=>_0x4abbc0),_0x5b1794=new Map(_0x30924f[_0x4ad7('0x78')](_0x1eeb16=>[_0x1eeb16,null]));if(_0x193160)for(const {element:_0x5c1234,attributes:_0x1c49cc}of _0x193160[_0x4ad7('0x7a')])_0x1c49cc&&_0x5b1794[_0x4ad7('0x3b')](_0x5c1234,_0x1c49cc);else{if(_0x7f0b30&&_0x7f0b30[_0x4ad7('0x4e')])for(const [_0x2aca3f,_0x1b0219]of Object['entries'](_0x7f0b30[_0x4ad7('0x4e')])){const _0x32c9a3=_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x4')][_0x4ad7('0x5')](_0x2aca3f),_0x2916c5=_0x32c9a3?_0x32c9a3[_0x4ad7('0x69')]()[_0x4ad7('0x3c')]():null;_0x2916c5&&_0x5b1794[_0x4ad7('0x3b')](_0x2916c5,_0x1b0219);}}_0x4e14b0[_0x4ad7('0x52')]['change'](_0x4c449f=>{for(const [_0x4533ba,_0x2337b3]of _0x5b1794)_0x4c449f['setAttributes']({...ae,..._0x2337b3},_0x4533ba);});});const _0x404f0a=(_0x2ac82d,_0x7301a1)=>{_0x2889f9[_0x4ad7('0x6')]['registerCustomCallback'](_0x2ac82d,_0x4ad7('0x5e'),_0x7301a1,(_0x4ef395,_0x55e293,_0x2b49ab)=>{_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x27')](_0x3a5268=>{const _0x601420=[];for(const _0x1aa45d of _0x4ef395){const _0x1063a4=_0x1aa45d[_0x4ad7('0x12')][_0x4ad7('0x6d')];_0x1063a4['is'](_0x4ad7('0x4b'),_0x4ad7('0x57'))&&_0x601420['push'](_0x1063a4);}_0x2889f9[_0x4ad7('0x6')]['getSuggestionCallback'](_0x2ac82d,null,_0x7301a1)(_0x4ef395,_0x55e293,_0x2b49ab);for(const _0x36df00 of _0x601420)_0x4ad7('0x7f')!=_0x36df00[_0x4ad7('0x9b')][_0x4ad7('0x3e')]&&_0x3a5268[_0x4ad7('0x21')](_0x36df00);});});};_0x404f0a(_0x4ad7('0x11'),_0x4ad7('0xd')),_0x404f0a(_0x4ad7('0x11'),_0x4ad7('0x94')),_0x404f0a(_0x4ad7('0x29'),_0x4ad7('0xd')),_0x404f0a(_0x4ad7('0x29'),_0x4ad7('0x94')),_0x2889f9[_0x4ad7('0x6')][_0x4ad7('0x2d')]('insertion',_0x4ad7('0x58'),_0x4ad7('0x94'),_0x15b682=>{const _0x5d93d0=_0x15b682[_0x4ad7('0x78')](_0x5ea574=>_0x5ea574[_0x4ad7('0x3c')]()),_0x461a5c=_0x5d93d0[0x0][_0x4ad7('0x61')](_0x4ad7('0x81')),{minRow:_0x48c1b5,maxRow:_0x36fbf8}=_0x1ee4d9['_getCoordsForCells'](_0x5d93d0);_0x4f47b8[_0x4ad7('0xc')](_0x461a5c,{'at':_0x48c1b5,'rows':_0x36fbf8-_0x48c1b5+0x1});}),_0x2889f9[_0x4ad7('0x6')][_0x4ad7('0x2d')](_0x4ad7('0x11'),_0x4ad7('0x8d'),_0x4ad7('0x94'),_0x3a8e97=>{const _0x4b3bd6=_0x3a8e97[_0x4ad7('0x78')](_0x181e2c=>_0x181e2c[_0x4ad7('0x3c')]()),_0xae142f=_0x4b3bd6[0x0][_0x4ad7('0x61')](_0x4ad7('0x81')),{minColumn:_0x1f2f22,maxColumn:_0x49b0a2}=_0x1ee4d9[_0x4ad7('0x9')](_0x4b3bd6);_0x4f47b8['removeColumns'](_0xae142f,{'at':_0x1f2f22,'columns':_0x49b0a2-_0x1f2f22+0x1});});const _0x1d472a=(_0x74df3b,_0x3c73af)=>{if(!_0x3c73af[_0x4ad7('0x62')]||!_0x3c73af['subType']['startsWith'](_0x4ad7('0x5e')))return;const _0x28b3e1=_0x3c73af[_0x4ad7('0x25')]['tablePasteChainId'],_0x32a647=_0x2889f9[_0x4ad7('0x89')]()[_0x4ad7('0x97')](_0x4ca7d1=>_0x4ca7d1['isInContent']&&_0x4ca7d1[_0x4ad7('0x25')]&&_0x4ca7d1[_0x4ad7('0x25')][_0x4ad7('0x1d')]==_0x28b3e1);_0x32a647['length']&&_0x3c73af[_0x4ad7('0x55')]()[_0x4ad7('0xa')]!=_0x32a647['length']&&_0x32a647['reduce']((_0x431f70,_0x12c3f5)=>(_0x431f70['next']=_0x12c3f5,_0x12c3f5['previous']=_0x431f70,_0x12c3f5));};function _0x1cbb9b(_0x1242e2,_0x38eb3f=!0x0){const {id:_0x46e604}=_0x2889f9['_splitMarkerName'](_0x1242e2[_0x4ad7('0x6f')]),_0x4228b6=[_0x4ad7('0x5b'),_0x4ad7('0x19')],_0x5bc8a5=_0x2889f9['activeMarkers'][_0x4ad7('0x92')](_0x1242e2['markerName']);return _0x5bc8a5&&_0x4228b6['push'](_0x4ad7('0x22')),{'classes':_0x4228b6,'attributes':{'data-suggestion':_0x46e604},'priority':_0x5bc8a5&&_0x38eb3f?0xbc2:0xbb8};}_0x2889f9['on']('suggestionLoaded',_0x1d472a,{'priority':'high'}),_0x2889f9['on'](_0x4ad7('0x2b'),_0x1d472a,{'priority':'high'}),_0x4e14b0['model'][_0x4ad7('0x14')]['registerPostFixer'](()=>{let _0x5137a2=!0x1;const _0x114c40=Array['from'](_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x14')][_0x4ad7('0x80')][_0x4ad7('0x4d')]());for(const {name:_0x4821c1,data:_0x2d10a1}of _0x114c40){const {group:_0xcf71b6,type:_0xa55bd,id:_0x15fc8c}=_0x2889f9[_0x4ad7('0x32')](_0x4821c1);if(_0x4ad7('0x87')!=_0xcf71b6||'deletion'!=_0xa55bd||_0x2d10a1[_0x4ad7('0x8a')])continue;if(!_0x2889f9['hasSuggestion'](_0x15fc8c))continue;const _0x3a30e9=_0x2889f9[_0x4ad7('0x2f')](_0x15fc8c)['getRanges'](),_0x5da57d=_0x4e14b0[_0x4ad7('0x9c')][_0x4ad7('0x5')](_0x4ad7('0x59'))['me'];for(const _0x5af0dc of _0x2889f9[_0x4ad7('0x89')]()){if(!_0x5af0dc[_0x4ad7('0x3')]||_0x5af0dc[_0x4ad7('0x7e')]!=_0x5da57d)continue;if(_0x4ad7('0x17')!=_0x5af0dc[_0x4ad7('0x28')]||_0x4ad7('0x35')!=_0x5af0dc[_0x4ad7('0x62')])continue;if(_0x5af0dc['getRanges']()['every'](_0x4c5ab6=>_0x3a30e9['some'](_0x5aa960=>_0x5aa960[_0x4ad7('0x23')](_0x4c5ab6,!0x0))))for(const _0x5f3190 of _0x5af0dc[_0x4ad7('0x55')]())_0x5f3190[_0x4ad7('0x3')]&&(_0x5f3190['discard'](),_0x5137a2=!0x0);}}return _0x5137a2;}),_0x4e14b0[_0x4ad7('0x52')]['document'][_0x4ad7('0x26')](_0x47f09e=>{const _0x1b271e=_0x4e14b0[_0x4ad7('0x91')][_0x4ad7('0x5')](_0x4ad7('0x82'));if(!_0x1b271e||!_0x1b271e['_createdBatches']['has'](_0x47f09e[_0x4ad7('0x76')]))return!0x1;let _0x578936=!0x1;const _0x519c25=_0x4e14b0[_0x4ad7('0x9c')]['get']('Users')['me'],_0x43d381=_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x14')][_0x4ad7('0x80')][_0x4ad7('0x7b')](),_0x18e43a=Array[_0x4ad7('0x45')](_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x14')]['differ'][_0x4ad7('0x4d')]())[_0x4ad7('0x97')](({name:_0x3fdd80,data:_0x27e27f})=>{const {group:_0x4f64bf,subType:_0x37a6c8,authorId:_0xe55bc9}=_0x2889f9[_0x4ad7('0x32')](_0x3fdd80);return _0x4ad7('0x87')==_0x4f64bf&&_0x4ad7('0x5e')==_0x37a6c8&&_0xe55bc9==_0x519c25['id']&&!_0x27e27f['oldRange'];});for(const _0xb1ddb9 of _0x43d381){if(_0x4ad7('0x2c')!=_0xb1ddb9[_0x4ad7('0x28')]||_0x4ad7('0x57')!=_0xb1ddb9[_0x4ad7('0x90')]||0x1!=_0xb1ddb9['length'])continue;const _0x509ed3=_0x47f09e[_0x4ad7('0x2a')](_0xb1ddb9['position'],_0xb1ddb9['position'][_0x4ad7('0x75')](0x1));if(!_0x18e43a[_0x4ad7('0x66')](({data:_0xfc23db})=>_0xfc23db[_0x4ad7('0x15')][_0x4ad7('0x6e')](_0x509ed3)))for(const {name:_0x45e151,data:_0x58b07a}of _0x18e43a)if(_0x509ed3['containsRange'](_0x58b07a['newRange'])){_0x47f09e['updateMarker'](_0x45e151,{'range':_0x509ed3}),_0x578936=!0x0;break;}}return _0x578936;}),_0x4e14b0[_0x4ad7('0x52')]['document'][_0x4ad7('0x26')](_0x5d644b=>{let _0x28288e=!0x1;const _0x2f7ec9=_0x4e14b0[_0x4ad7('0x9c')]['get'](_0x4ad7('0x59'))['me'],_0x5db781=_0x2889f9[_0x4ad7('0x89')]()[_0x4ad7('0x97')](_0x32f17c=>_0x32f17c[_0x4ad7('0x3')]&&_0x32f17c['author']==_0x2f7ec9),_0xfc0dd3=new Set(),_0xdc1d41=new Set();for(const _0x10206f of _0x5db781)if(_0x4ad7('0x5e')==_0x10206f[_0x4ad7('0x62')])for(const _0x2cc033 of _0x10206f[_0x4ad7('0x49')]()){const _0x255207=_0x2cc033[_0x4ad7('0x69')]()[_0x4ad7('0x3c')]();if(_0x255207){if(_0x255207['is'](_0x4ad7('0x4b'),_0x4ad7('0x57'))&&ce(_0x255207)){_0x10206f[_0x4ad7('0x4a')](_0x2cc033[_0x4ad7('0x90')]),_0xfc0dd3[_0x4ad7('0x93')](_0x255207),_0x28288e=!0x0;const _0xcdd525=_0x255207['nextSibling'],_0x301329=_0x255207[_0x4ad7('0x8c')],_0x1c93b4=_0xcdd525&&_0xcdd525['is'](_0x4ad7('0x4b'),_0x4ad7('0x57')),_0x19bf95=_0x301329&&_0x301329['is']('element','tableCellSuggestion');_0x1c93b4&&!_0xfc0dd3[_0x4ad7('0x42')](_0xcdd525)&&_0xdc1d41['add'](_0xcdd525),_0x19bf95&&!_0xfc0dd3[_0x4ad7('0x42')](_0x301329)&&_0xdc1d41[_0x4ad7('0x93')](_0x301329);}else _0x255207['is'](_0x4ad7('0x4b'),_0x4ad7('0x6b'))&&_0x255207[_0x4ad7('0x73')]&&(_0x10206f['removeMarker'](_0x2cc033[_0x4ad7('0x90')]),_0x28288e=!0x0);}}else{if('tablePasteCell'==_0x10206f[_0x4ad7('0x62')]){if(!_0x10206f['attributes']||!_0x10206f[_0x4ad7('0x25')][_0x4ad7('0x1d')])continue;const _0x575b4b=_0x10206f['attributes'][_0x4ad7('0x4e')];if(_0x575b4b&&Object[_0x4ad7('0x50')](_0x575b4b)[_0x4ad7('0xa')])continue;const _0x75e653=_0x10206f[_0x4ad7('0x25')][_0x4ad7('0x1d')];let _0x2a741b=!0x0,_0x26c96f=!0x0;for(const _0x5be274 of _0x5db781)if(_0x5be274[_0x4ad7('0x62')]&&_0x5be274['subType']['startsWith'](_0x4ad7('0x5e'))){if(!_0x5be274[_0x4ad7('0x25')][_0x4ad7('0x1d')]){_0x26c96f=!0x1;break;}if(_0x5be274['id']!=_0x10206f['id']&&_0x5be274[_0x4ad7('0x25')][_0x4ad7('0x1d')]==_0x75e653){_0x2a741b=!0x1;break;}}_0x26c96f&&_0x2a741b&&(_0x10206f[_0x4ad7('0x5f')](),_0x28288e=!0x0);}}for(const _0x17c72e of _0xfc0dd3)_0x5d644b['remove'](_0x17c72e);for(const _0x55aad5 of _0xdc1d41)_0x5d644b[_0x4ad7('0x21')](_0x55aad5);return _0x28288e;}),_0x4e14b0[_0x4ad7('0x5c')][_0x4ad7('0x70')]('editingDowncast')[_0x4ad7('0x7d')]({'model':_0x4ad7('0x31'),'view':(_0x42dd1d,_0x4a4c69)=>_0x1cbb9b(_0x42dd1d),'converterPriority':_0x4ad7('0x40')}),_0x4e14b0[_0x4ad7('0x5c')]['for'](_0x4ad7('0x5a'))[_0x4ad7('0x7d')]({'model':_0x4ad7('0x31'),'view':(_0x293d89,_0x32bcdb)=>_0x32bcdb[_0x4ad7('0x64')][_0x4ad7('0x1')]?_0x1cbb9b(_0x293d89,!0x1):null,'converterPriority':_0x4ad7('0x40')});const _0x498a49=_0x4e14b0[_0x4ad7('0x88')][_0x4ad7('0xe')];this[_0x4ad7('0x18')](_0x498a49[_0x4ad7('0x14')],_0x4ad7('0x39'),(_0x1e14a4,_0x3f3efc)=>{const _0x339520=[];for(const _0x81627d of _0x498a49[_0x4ad7('0x47')](_0x3f3efc['content'])[_0x4ad7('0x54')]())_0x81627d['is'](_0x4ad7('0x4b'),_0x4ad7('0x53'))&&_0x339520[_0x4ad7('0xb')](_0x81627d);_0x498a49[_0x4ad7('0x27')](_0x3b794d=>{for(const _0x37d3d5 of _0x339520)_0x3b794d[_0x4ad7('0x7')](_0x3b794d['createRangeIn'](_0x37d3d5),_0x3b794d['createPositionBefore'](_0x37d3d5)),_0x3b794d[_0x4ad7('0x96')](_0x37d3d5);});});}}function ce(_0x194b4e){if(_0x194b4e[_0x4ad7('0x73')])return!0x0;const _0x57629e=_0x194b4e[_0x4ad7('0x0')](0x0);return _0x57629e['is'](_0x4ad7('0x4b'),'paragraph')&&_0x57629e['isEmpty'];}function fe(_0x593dc8,_0x23d44c={},_0x2917f0){for(const {isAnchor:_0x1f633f,cellHeight:_0xfe9030,cellWidth:_0x5416c6}of _0x2917f0[_0x4ad7('0x74')](_0x593dc8,{'includeAllSlots':!0x0,..._0x23d44c}))if(!_0x1f633f||0x1!=_0xfe9030||0x1!=_0x5416c6)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bee=['formatBlock','registerDescriptionCallback','has','handleSuggestionDescription','get','columnWidths','table','resizeColumnWidths','TrackChangesEditing','data','getSelectedElement','getTableColumnsWidths','_suggestionFactory','bind','accept','subType','commandParams','getColumnGroupElement','getAttribute','discard','locale','_descriptionFactory','plugins','document','enableCommand','resizeTable','editor','model','handleResizeTableWidthCommand','resizeTableWidth','tableWidth','selection','Users','TableColumnResizeEditing','getSuggestions','*Format:*\x20resize\x20table','registerCustomCallback'];(function(_0xd65d2e,_0x3beee3){const _0x2dc1e1=function(_0x194b7e){while(--_0x194b7e){_0xd65d2e['push'](_0xd65d2e['shift']());}};_0x2dc1e1(++_0x3beee3);}(_0x3bee,0x9c));const _0x2dc1=function(_0xd65d2e,_0x3beee3){_0xd65d2e=_0xd65d2e-0x0;let _0x2dc1e1=_0x3bee[_0xd65d2e];return _0x2dc1e1;};import{Plugin as _0x3e97f6}from'ckeditor5/src/core';import{getTranslation as _0x4ddfe1}from'../utils/common-translations';export default class wt extends _0x3e97f6{['afterInit'](){if(!this[_0x2dc1('0x12')][_0x2dc1('0xe')][_0x2dc1('0x1f')](_0x2dc1('0x19')))return;const _0x13e23a=this[_0x2dc1('0x12')]['plugins'][_0x2dc1('0x21')](_0x2dc1('0x0'));_0x13e23a[_0x2dc1('0x10')](_0x2dc1('0x15'),this[_0x2dc1('0x14')][_0x2dc1('0x5')](this)),_0x13e23a[_0x2dc1('0x10')](_0x2dc1('0x24'),this[_0x2dc1('0x14')][_0x2dc1('0x5')](this)),_0x13e23a['_suggestionFactory'][_0x2dc1('0x1c')](_0x2dc1('0x1d'),_0x2dc1('0x11'),'accept',_0x13e23a[_0x2dc1('0x4')]['getSuggestionCallback'](_0x2dc1('0x1d'),null,'discard')),_0x13e23a[_0x2dc1('0x4')][_0x2dc1('0x1c')](_0x2dc1('0x1d'),_0x2dc1('0x11'),'discard',_0x13e23a[_0x2dc1('0x4')]['getSuggestionCallback'](_0x2dc1('0x1d'),null,_0x2dc1('0x6'))),_0x13e23a[_0x2dc1('0xd')][_0x2dc1('0x1e')](this['handleSuggestionDescription'][_0x2dc1('0x5')](this));}[_0x2dc1('0x14')](_0x10fcf1,_0x2c7bc1){const _0x207e9d=this[_0x2dc1('0x12')][_0x2dc1('0xe')]['get'](_0x2dc1('0x0')),_0x540543=this[_0x2dc1('0x12')][_0x2dc1('0xe')]['get'](_0x2dc1('0x19')),_0x136aa6=_0x2c7bc1[_0x2dc1('0x23')]||this['editor'][_0x2dc1('0x13')][_0x2dc1('0xf')][_0x2dc1('0x17')][_0x2dc1('0x2')]();this['editor'][_0x2dc1('0x13')]['change'](()=>{const _0x5a9e03=_0x540543[_0x2dc1('0x9')](_0x136aa6);let _0x4f2014=_0x5a9e03?_0x540543[_0x2dc1('0x3')](_0x5a9e03):null,_0x484a76=_0x136aa6[_0x2dc1('0xa')](_0x2dc1('0x16'))||null;const _0x2461a7=_0x2c7bc1[_0x2dc1('0x16')]||_0x484a76,_0x332124=_0x2c7bc1[_0x2dc1('0x22')]||_0x4f2014,_0x2e6c1e=this[_0x2dc1('0x12')][_0x2dc1('0xe')][_0x2dc1('0x21')](_0x2dc1('0x18'))['me'];for(const _0x31a0ac of _0x207e9d[_0x2dc1('0x1a')]()){const _0x18b347=_0x31a0ac['getContainedElement']();if(_0x2dc1('0x11')===_0x31a0ac[_0x2dc1('0x7')]&&_0x18b347===_0x136aa6){_0x31a0ac['author']!==_0x2e6c1e&&_0x31a0ac[_0x2dc1('0xb')]();const _0x33be5c=_0x31a0ac[_0x2dc1('0x1')][_0x2dc1('0x8')];_0x484a76=_0x33be5c[0x0][_0x2dc1('0x16')],_0x4f2014=_0x33be5c[0x0][_0x2dc1('0x22')];break;}}_0x10fcf1({'table':_0x136aa6,'tableWidth':_0x2461a7,'columnWidths':_0x332124}),_0x207e9d['markBlockFormat'](_0x136aa6,{'commandName':_0x2dc1('0x15'),'commandParams':[{'tableWidth':_0x484a76,'columnWidths':_0x4f2014}],'formatGroupId':_0x2dc1('0x11')},[],_0x2dc1('0x11'));});}[_0x2dc1('0x20')](_0x4293b5){const {data:_0x1dc860}=_0x4293b5;if(_0x1dc860&&'resizeTable'===_0x1dc860['formatGroupId']){const _0x9e2d68=_0x2dc1('0x1b');return{'type':'format','content':_0x4ddfe1(this['editor'][_0x2dc1('0xc')],_0x9e2d68)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2461=['toViewElement','format','isBefore','headingColumns','model','options','TableUtils','table','headingRows','createPositionAfter','showSuggestionHighlights','consume','change','index','setTableColumnHeader','getChild','activeMarkers','markBlockFormat','registerDescriptionCallback','accept','nodeAfter','removeClass','unbindElementFromMarkerName','getSuggestion','registerCustomCallback','document','selection','has','data-suggestion','commands','consumable','forceValue','stop','enableCommand','FORMAT_REGULAR_ROW','_descriptionFactory','childCount','ck-suggestion-marker-','commandParams','from','markerRange','parent','addMarker:suggestion','TrackChangesEditing','getRowIndexes','item','writer','FORMAT_HEADER_COLUMN','removeMarker:suggestion','ck-suggestion-marker--active','_splitMarkerName','_suggestionFactory','mapper','afterInit','commandName','setTableRowHeader','downcastDispatcher','value','highest','markerName','bindElementToMarker','*Format:*\x20%0','nodeBefore','requires','getSelectionAffectedTableCells','locale','createPositionBefore','editor','createTableWalker','FORMAT_HEADER_ROW','getAttribute','data','findAncestor','name','addClass','plugins','first','_acceptFormatSuggestionCallbackFactory','cell','editing','createRange','formatBlock','getColumnIndexes','get','getCellLocation','last'];(function(_0x118c5f,_0x246133){const _0x48781b=function(_0x9e5b3a){while(--_0x9e5b3a){_0x118c5f['push'](_0x118c5f['shift']());}};_0x48781b(++_0x246133);}(_0x2461,0xad));const _0x4878=function(_0x118c5f,_0x246133){_0x118c5f=_0x118c5f-0x0;let _0x48781b=_0x2461[_0x118c5f];return _0x48781b;};import{Plugin as _0x16deba}from'ckeditor5/src/core';import _0x262040 from'./table';import{getTranslation as _0x45a6c6}from'../utils/common-translations';export default class pt extends _0x16deba{static get[_0x4878('0x3e')](){return[_0x262040];}[_0x4878('0x34')](){const _0x4cb3ed=this[_0x4878('0x42')];if(!_0x4cb3ed[_0x4878('0x4a')][_0x4878('0x1a')]('TableEditing'))return;const _0x17a7f5=_0x4cb3ed[_0x4878('0x40')],_0x5ceadc=_0x4cb3ed['plugins'][_0x4878('0x52')](_0x4878('0x2a')),_0x3b94dc=_0x4cb3ed[_0x4878('0x4a')]['get'](_0x4878('0x5')),_0x3584d3=_0x4cb3ed[_0x4878('0x4a')][_0x4878('0x52')](_0x262040);function _0xed768c({showActiveMarker:_0x3306a1=!0x0,setDataAttribute:_0x2805ae=!0x0}={}){return(_0x4a8b72,_0x527f8c,_0x56f598)=>{const {type:_0x1f44b5,id:_0x22d3e9}=_0x5ceadc[_0x4878('0x31')](_0x527f8c[_0x4878('0x3a')]),_0x4dda20=_0x5ceadc[_0x4878('0x16')](_0x22d3e9);if(!_0x4dda20['data']||_0x4878('0xd')!=_0x4dda20[_0x4878('0x46')][_0x4878('0x35')])return;if(_0x527f8c[_0x4878('0x2c')])return void _0x4a8b72[_0x4878('0x1f')]();if(!_0x56f598[_0x4878('0x1d')][_0x4878('0xa')](_0x527f8c[_0x4878('0x27')],_0x4a8b72[_0x4878('0x48')]))return;const _0x386541=_0x527f8c['markerRange']['start'][_0x4878('0x13')],_0x1ace0d=_0x527f8c[_0x4878('0x27')]['end'][_0x4878('0x3d')],_0x48f3d9=_0x386541[_0x4878('0x28')]['parent'],{column:_0x969869}=_0x3b94dc['getCellLocation'](_0x386541),{column:_0x5048fa}=_0x3b94dc[_0x4878('0x53')](_0x1ace0d);for(let _0x4db8a5=_0x969869;_0x4db8a5<=_0x5048fa;_0x4db8a5++){const _0x5559ff=_0x3b94dc[_0x4878('0x43')](_0x48f3d9,{'column':_0x4db8a5,'includeAllSlots':!0x1});for(const _0x49e32c of _0x5559ff){const _0x2ff593=_0x49e32c[_0x4878('0x4d')],_0x18ce51=_0x56f598['mapper'][_0x4878('0x55')](_0x2ff593);_0x56f598[_0x4878('0x2d')][_0x4878('0x49')]('ck-suggestion-marker-'+_0x1f44b5,_0x18ce51),_0x2805ae&&_0x56f598[_0x4878('0x2d')]['setAttribute'](_0x4878('0x1b'),_0x22d3e9,_0x18ce51),_0x56f598[_0x4878('0x33')][_0x4878('0x3b')](_0x18ce51,_0x527f8c[_0x4878('0x3a')]),_0x3306a1&&(_0x5ceadc[_0x4878('0xf')]['includes'](_0x527f8c[_0x4878('0x3a')])?_0x56f598['writer'][_0x4878('0x49')](_0x4878('0x30'),_0x18ce51):_0x56f598[_0x4878('0x2d')]['removeClass'](_0x4878('0x30'),_0x18ce51));}}};}_0x5ceadc[_0x4878('0x20')](_0x4878('0x36'),(_0x539b4,_0x12ae55)=>{const _0x4aede0=_0x3b94dc[_0x4878('0x3f')](_0x4cb3ed[_0x4878('0x3')][_0x4878('0x18')]['selection']),_0x20b6b6=_0x3b94dc[_0x4878('0x2b')](_0x4aede0),_0x26d61a=_0x4aede0[0x0][_0x4878('0x47')](_0x4878('0x6')),_0x5afe13=_0x26d61a[_0x4878('0x45')](_0x4878('0x7'))||0x0,_0x3cb14e=_0x12ae55&&null!==_0x12ae55[_0x4878('0x1e')]?_0x12ae55[_0x4878('0x1e')]:!_0x4cb3ed[_0x4878('0x1c')]['get'](_0x4878('0x36'))[_0x4878('0x38')],_0x635adc=_0x3cb14e?_0x20b6b6[_0x4878('0x54')]:_0x20b6b6[_0x4878('0x4b')],_0x50fc65=_0x26d61a['getChild'](_0x635adc);let _0x49f098;if(_0x3cb14e){const _0x5bb094=_0x26d61a[_0x4878('0xe')](_0x5afe13);if(_0x50fc65[_0x4878('0xc')]<_0x5bb094['index'])return;_0x49f098=_0x4cb3ed[_0x4878('0x3')][_0x4878('0x4f')](_0x4cb3ed[_0x4878('0x3')][_0x4878('0x41')](_0x5bb094[_0x4878('0xe')](0x0)),_0x4cb3ed[_0x4878('0x3')][_0x4878('0x8')](_0x50fc65['getChild'](_0x50fc65[_0x4878('0x23')]-0x1)));}else{const _0x52ac34=_0x26d61a[_0x4878('0xe')](_0x5afe13-0x1);if(!_0x52ac34)return;_0x49f098=_0x4cb3ed[_0x4878('0x3')][_0x4878('0x4f')](_0x4cb3ed['model'][_0x4878('0x41')](_0x50fc65[_0x4878('0xe')](0x0)),_0x4cb3ed[_0x4878('0x3')]['createPositionAfter'](_0x52ac34[_0x4878('0xe')](_0x52ac34[_0x4878('0x23')]-0x1)));}_0x4cb3ed[_0x4878('0x3')][_0x4878('0xb')](()=>{_0x5ceadc[_0x4878('0x10')](_0x49f098,{'commandName':_0x4878('0x36'),'commandParams':[{'forceValue':_0x3cb14e}]},[],_0x4878('0x36'));});}),_0x5ceadc[_0x4878('0x20')](_0x4878('0xd'),(_0x32147f,_0x4c906e)=>{const _0x358ea2=_0x4cb3ed[_0x4878('0x4a')]['get'](_0x4878('0x5')),_0x1543d9=_0x358ea2[_0x4878('0x3f')](_0x4cb3ed['model']['document'][_0x4878('0x19')]),_0xaed775=_0x358ea2[_0x4878('0x51')](_0x1543d9),_0x39bf48=_0x1543d9[0x0][_0x4878('0x47')]('table'),_0x1e88b6=_0x39bf48[_0x4878('0x45')](_0x4878('0x2'))||0x0,_0x24ffbb=_0x4c906e&&null!==_0x4c906e[_0x4878('0x1e')]?_0x4c906e[_0x4878('0x1e')]:!_0x4cb3ed[_0x4878('0x1c')][_0x4878('0x52')]('setTableColumnHeader')[_0x4878('0x38')];let _0x5c60df;const _0x6d49c5=_0x39bf48[_0x4878('0xe')](0x0),_0x1c2a82=_0x24ffbb?_0xaed775[_0x4878('0x54')]:_0xaed775[_0x4878('0x4b')],_0x4dfd9c=_0x358ea2[_0x4878('0x43')](_0x39bf48,{'startRow':0x0,'column':_0x1c2a82,'includeAllSlots':!0x1}),_0x261d7a=Array[_0x4878('0x26')](_0x4dfd9c)[0x0][_0x4878('0x4d')];if(_0x24ffbb){const _0x331d06=_0x6d49c5['getChild'](_0x1e88b6);if(_0x261d7a[_0x4878('0x1')](_0x331d06))return;_0x5c60df=_0x4cb3ed[_0x4878('0x3')][_0x4878('0x4f')](_0x4cb3ed[_0x4878('0x3')][_0x4878('0x41')](_0x331d06),_0x4cb3ed['model'][_0x4878('0x8')](_0x261d7a));}else{const _0x55a7a3=_0x6d49c5[_0x4878('0xe')](_0x1e88b6-0x1);if(!_0x55a7a3)return;_0x5c60df=_0x4cb3ed[_0x4878('0x3')]['createRange'](_0x4cb3ed[_0x4878('0x3')][_0x4878('0x41')](_0x261d7a),_0x4cb3ed[_0x4878('0x3')][_0x4878('0x8')](_0x55a7a3));}_0x4cb3ed[_0x4878('0x3')][_0x4878('0xb')](()=>{_0x5ceadc['markBlockFormat'](_0x5c60df,{'commandName':_0x4878('0xd'),'commandParams':[{'forceValue':_0x24ffbb}]},[],_0x4878('0xd'));});}),_0x4cb3ed['editing'][_0x4878('0x37')]['on'](_0x4878('0x29'),_0xed768c(),{'priority':'highest'}),_0x4cb3ed[_0x4878('0x46')][_0x4878('0x37')]['on'](_0x4878('0x29'),(_0x30dc57,_0x27c248,_0x387c5e)=>{_0x387c5e[_0x4878('0x4')][_0x4878('0x9')]&&_0xed768c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x30dc57,_0x27c248,_0x387c5e);},{'priority':'highest'}),_0x4cb3ed[_0x4878('0x4e')][_0x4878('0x37')]['on'](_0x4878('0x2f'),(_0x559c26,_0x198d63,_0xc2ec0e)=>{const {type:_0x101b96,id:_0x3b8553}=_0x5ceadc[_0x4878('0x31')](_0x198d63[_0x4878('0x3a')]),_0x9e5c6d=_0x5ceadc[_0x4878('0x16')](_0x3b8553);if(!_0x9e5c6d[_0x4878('0x46')]||_0x4878('0xd')!=_0x9e5c6d[_0x4878('0x46')][_0x4878('0x35')])return;const _0x25d033=_0xc2ec0e[_0x4878('0x33')]['markerNameToElements'](_0x198d63[_0x4878('0x3a')]);if(_0x25d033)for(const _0xcdc96f of _0x25d033)_0xc2ec0e[_0x4878('0x2d')][_0x4878('0x14')](_0x4878('0x24')+_0x101b96,_0xcdc96f),_0xc2ec0e[_0x4878('0x2d')]['removeClass'](_0x4878('0x30'),_0xcdc96f),_0xc2ec0e[_0x4878('0x2d')]['removeAttribute'](_0x4878('0x1b'),_0xcdc96f),_0xc2ec0e[_0x4878('0x33')][_0x4878('0x15')](_0xcdc96f,_0x198d63['markerName']);},{'priority':_0x4878('0x39')}),_0x5ceadc[_0x4878('0x22')][_0x4878('0x11')](_0x294f9b=>{const {data:_0x46e556}=_0x294f9b;if(_0x46e556){if('setTableRowHeader'==_0x46e556['commandName']){const _0x4b3fbb=_0x46e556[_0x4878('0x25')][0x0][_0x4878('0x1e')];return _0x39d20e(_0x45a6c6(_0x17a7f5,_0x4b3fbb?_0x4878('0x44'):_0x4878('0x21')));}if(_0x4878('0xd')==_0x46e556[_0x4878('0x35')]){const _0x50f754=_0x46e556[_0x4878('0x25')][0x0]['forceValue'];return _0x39d20e(_0x45a6c6(_0x17a7f5,_0x50f754?_0x4878('0x2e'):'FORMAT_REGULAR_COLUMN'));}}function _0x39d20e(_0x10df3e){return{'type':_0x4878('0x0'),'content':_0x45a6c6(_0x17a7f5,_0x4878('0x3c'),_0x10df3e)};}});const _0x2d3c5f=_0x3584d3[_0x4878('0x4c')]();_0x5ceadc[_0x4878('0x32')][_0x4878('0x17')](_0x4878('0x50'),_0x4878('0x36'),'accept',_0x2d3c5f),_0x5ceadc[_0x4878('0x32')][_0x4878('0x17')](_0x4878('0x50'),_0x4878('0xd'),_0x4878('0x12'),_0x2d3c5f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e18=['mergeTableCellRight','splitTableCellVertically','createTableWalker','has','_suggestionFactory','element','find','splitTableCellHorizontally','plugins','size','containsRange','tableCell','low','document','subType','execute','getRanges','value','_isForcedDefaultExecutionBlock','author','deletion','refresh','getFirstPosition','push','model','markMultiRangeBlockFormat','forceDefaultExecution','TableUtils','_areMergableCells','registerDescriptionCallback','setSelection','*Merge\x20cells*','selection','from','locale','afterInit','set:isEnabled','*Split\x20cell:*\x20horizontally','*Split\x20cell:*\x20vertically','mergeTableCells','length','get','mergeTableCellUp','createRangeOn','add','mergeTableCellLeft','change','TrackChangesEditing','table','_descriptionFactory','accept','direction','_areSelectedCellsMergable','format','getCellLocation','markBlockFormat','mergeTableCellDown','getAncestors','commands','rootName','stop','map','type','trackChanges','highest','enableCommand','registerCustomCallback','TableEditing','editor','requires','$graveyard','commandName','getSelectionAffectedTableCells','_acceptFormatSuggestionCallbackFactory','formatBlock','cell','horizontally','detach'];(function(_0x59bc2a,_0x5e189a){const _0x686bda=function(_0x4ad95c){while(--_0x4ad95c){_0x59bc2a['push'](_0x59bc2a['shift']());}};_0x686bda(++_0x5e189a);}(_0x5e18,0x1dd));const _0x686b=function(_0x59bc2a,_0x5e189a){_0x59bc2a=_0x59bc2a-0x0;let _0x686bda=_0x5e18[_0x59bc2a];return _0x686bda;};import{Plugin as _0x5766ef}from'ckeditor5/src/core';import _0x5fc03c from'./table';import{LiveRange as _0x1f2f08}from'ckeditor5/src/engine';import{getTranslation as _0x243fda}from'../utils/common-translations';export default class dt extends _0x5766ef{static get[_0x686b('0x3c')](){return[_0x5fc03c];}[_0x686b('0x1a')](){const _0x27722e=this[_0x686b('0x3b')],_0x52e81d=_0x27722e[_0x686b('0xf')][_0x686b('0x4')]['selection'],_0x496ee9=_0x27722e[_0x686b('0x19')];if(!_0x27722e['plugins'][_0x686b('0x48')](_0x686b('0x3a')))return;const _0x1a3c8f=_0x27722e[_0x686b('0x4d')][_0x686b('0x20')]('TrackChangesEditing'),_0xfd9a4e=_0x27722e[_0x686b('0x4d')][_0x686b('0x20')](_0x686b('0x12')),_0x118c0b=_0x27722e[_0x686b('0x4d')][_0x686b('0x20')](_0x5fc03c);_0x118c0b['_tablePostFixingSubtypes'][_0x686b('0xe')](_0x686b('0x1e')),_0x1a3c8f[_0x686b('0x38')](_0x686b('0x1e'),()=>{const _0x3c936c=_0xfd9a4e[_0x686b('0x3f')](_0x27722e[_0x686b('0xf')][_0x686b('0x4')][_0x686b('0x17')]);_0x27722e[_0x686b('0xf')][_0x686b('0x25')](()=>{_0x1a3c8f['markMultiRangeBlockFormat'](_0x3c936c,{'commandName':_0x686b('0x1e'),'commandParams':[]},[],_0x686b('0x1e'));});}),_0x27722e[_0x686b('0x31')]['get'](_0x686b('0x1e'))['on']('execute',(_0x13faa5,_0x1c9606)=>{_0x27722e['commands'][_0x686b('0x20')](_0x686b('0x36'))[_0x686b('0x8')]&&(_0x1c9606[_0x686b('0x1f')]>0x0&&_0x1c9606[_0x1c9606[_0x686b('0x1f')]-0x1]&&_0x1c9606[_0x1c9606[_0x686b('0x1f')]-0x1][_0x686b('0x11')]||_0x1a3c8f[_0x686b('0x9')]||this[_0x686b('0x2b')]()||_0x13faa5[_0x686b('0x33')]());},{'priority':_0x686b('0x37')});for(const _0x12a2de of['mergeTableCellUp','mergeTableCellRight',_0x686b('0x2f'),_0x686b('0x24')]){const _0x5647b0=_0x27722e['commands'][_0x686b('0x20')](_0x12a2de);_0x1a3c8f['enableCommand'](_0x12a2de,()=>{const _0x58084b=_0x27722e[_0x686b('0xf')][_0x686b('0x4')][_0x686b('0x17')][_0x686b('0xd')]()[_0x686b('0x30')]()[_0x686b('0x4b')](_0x4b3943=>_0x4b3943['is']('element',_0x686b('0x2'))),_0xecb7ab=_0x5647b0['value'];_0x27722e['model'][_0x686b('0x25')](()=>{_0x1a3c8f[_0x686b('0x10')]([_0x58084b,_0xecb7ab],{'commandName':_0x686b('0x1e'),'commandParams':[]},[],_0x686b('0x1e'));});});}for(const _0xdebc21 of[_0x686b('0x46'),_0x686b('0x4c')]){const _0x3139b6=_0x27722e[_0x686b('0x31')][_0x686b('0x20')](_0xdebc21);_0x1a3c8f[_0x686b('0x38')](_0xdebc21,()=>{const _0x4cdc4d=_0xfd9a4e[_0x686b('0x3f')](_0x27722e[_0x686b('0xf')][_0x686b('0x4')]['selection'])[0x0],_0x40fa1b=_0x4cdc4d['findAncestor'](_0x686b('0x27')),{column:_0x132fd6,row:_0x990ff0}=_0xfd9a4e[_0x686b('0x2d')](_0x4cdc4d);let _0x1c11ec=[];if(_0x686b('0x43')==_0x3139b6[_0x686b('0x2a')]){const _0x31aa53=_0xfd9a4e[_0x686b('0x47')](_0x40fa1b,{'startRow':_0x990ff0,'endRow':_0x990ff0,'includeAllSlots':!0x0});_0x1c11ec=Array[_0x686b('0x18')](_0x31aa53)[_0x686b('0x34')](_0x552e71=>_0x552e71['cell']);}else{const _0x367ada=_0xfd9a4e[_0x686b('0x47')](_0x40fa1b,{'column':_0x132fd6,'includeAllSlots':!0x0});_0x1c11ec=Array[_0x686b('0x18')](_0x367ada)['map'](_0xedb8c0=>_0xedb8c0[_0x686b('0x42')]);}_0x27722e['model'][_0x686b('0x25')](_0x331a98=>{_0x1a3c8f[_0x686b('0x2e')](_0x331a98[_0x686b('0x22')](_0x4cdc4d),{'commandName':_0xdebc21,'commandParams':[]},_0x1c11ec,_0xdebc21);});});}_0x1a3c8f[_0x686b('0x28')][_0x686b('0x14')](_0x2dacc5=>{const {data:_0x42b024}=_0x2dacc5;if(_0x42b024)return _0x686b('0x1e')==_0x42b024[_0x686b('0x3e')]?{'type':_0x686b('0x2c'),'content':_0x243fda(_0x496ee9,_0x686b('0x16'))}:void 0x0;}),_0x1a3c8f[_0x686b('0x28')]['registerDescriptionCallback'](_0x128d9a=>{const {data:_0x12c6e3}=_0x128d9a;if(_0x12c6e3)return _0x686b('0x46')==_0x12c6e3[_0x686b('0x3e')]?{'type':_0x686b('0x2c'),'content':_0x243fda(_0x496ee9,_0x686b('0x1d'))}:'splitTableCellHorizontally'==_0x12c6e3['commandName']?{'type':'format','content':_0x243fda(_0x496ee9,_0x686b('0x1c'))}:void 0x0;});const _0x214703=_0x118c0b[_0x686b('0x40')]();for(const _0x5189e7 of['mergeTableCellUp',_0x686b('0x45'),_0x686b('0x2f'),_0x686b('0x24')])_0x1a3c8f[_0x686b('0x49')][_0x686b('0x39')]('formatBlock',_0x5189e7,'accept',_0x214703);for(const _0x34503c of['splitTableCellVertically',_0x686b('0x4c')])_0x1a3c8f[_0x686b('0x49')][_0x686b('0x39')](_0x686b('0x41'),_0x34503c,'accept',_0x214703);_0x1a3c8f[_0x686b('0x49')][_0x686b('0x39')](_0x686b('0x41'),_0x686b('0x1e'),_0x686b('0x29'),_0x5a4959=>{_0x27722e[_0x686b('0xf')][_0x686b('0x25')](_0x1d9ad4=>{const _0x2cdef6=Array[_0x686b('0x18')](_0x52e81d[_0x686b('0x7')]())[_0x686b('0x34')](_0x1e5777=>_0x1f2f08['fromRange'](_0x1e5777));_0x1d9ad4[_0x686b('0x15')](_0x5a4959),_0x27722e[_0x686b('0x31')][_0x686b('0x20')](_0x686b('0x1e'))[_0x686b('0xc')](),_0x27722e[_0x686b('0x6')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xa3b57c=_0x2cdef6['filter'](_0x59a60c=>_0x686b('0x3d')!=_0x59a60c['root'][_0x686b('0x32')]);_0xa3b57c['length']>0x0&&_0x1d9ad4[_0x686b('0x15')](_0xa3b57c);for(const _0x653e4d of _0x2cdef6)_0x653e4d[_0x686b('0x44')]();});});for(const _0x23e823 of[_0x686b('0x21'),_0x686b('0x2f'),_0x686b('0x24'),_0x686b('0x45')]){const _0xd3853c=_0x27722e[_0x686b('0x31')][_0x686b('0x20')](_0x23e823);_0xd3853c['on'](_0x686b('0x1b'),(_0x286154,_0x461157,_0x2025d6)=>{if(_0x2025d6){const _0xa15b2a=_0x27722e[_0x686b('0xf')][_0x686b('0x4')][_0x686b('0x17')][_0x686b('0xd')]()[_0x686b('0x30')]()[_0x686b('0x4b')](_0x4d164b=>_0x4d164b['is'](_0x686b('0x4a'),'tableCell'));this[_0x686b('0x13')](_0xd3853c['value'],_0xa15b2a)||(_0x286154['return']=!0x1,_0x286154[_0x686b('0x33')]());}},{'priority':_0x686b('0x3')});}}[_0x686b('0x2b')](){const _0x114136=this[_0x686b('0x3b')][_0x686b('0x31')][_0x686b('0x20')]('mergeTableCells'),_0x36e2e6=this[_0x686b('0x3b')][_0x686b('0x4d')]['get'](_0x686b('0x12'));if(!_0x114136['isEnabled'])return!0x1;const _0x3c00f1=_0x36e2e6[_0x686b('0x3f')](this[_0x686b('0x3b')]['model']['document'][_0x686b('0x17')]);for(const _0x1a3d48 of _0x3c00f1)for(const _0x3359da of _0x3c00f1)if(_0x1a3d48!=_0x3359da&&!this['_areMergableCells'](_0x1a3d48,_0x3359da))return!0x1;return!0x0;}[_0x686b('0x13')](_0x4a3c10,_0x15c93a){const _0x5d30a7=this[_0x686b('0x3b')][_0x686b('0x4d')]['get'](_0x686b('0x26')),_0x34a8fa=this[_0x686b('0x3b')][_0x686b('0xf')][_0x686b('0x22')](_0x4a3c10),_0x507443=this[_0x686b('0x3b')]['model'][_0x686b('0x22')](_0x15c93a),_0x3c9723=new Set(),_0x1ec580=new Set();for(const _0x5b8cde of _0x5d30a7['getSuggestions']())if(('insertion'==_0x5b8cde[_0x686b('0x35')]||_0x686b('0xb')==_0x5b8cde[_0x686b('0x35')]||_0x686b('0x1e')==_0x5b8cde[_0x686b('0x5')])&&_0x5b8cde['isInContent'])for(const _0x455f68 of _0x5b8cde[_0x686b('0x7')]())_0x455f68[_0x686b('0x1')](_0x34a8fa,!0x0)&&_0x3c9723[_0x686b('0x23')](_0x5b8cde[_0x686b('0x35')]+':'+_0x5b8cde[_0x686b('0xa')]['id']),_0x455f68[_0x686b('0x1')](_0x507443,!0x0)&&_0x1ec580[_0x686b('0x23')](_0x5b8cde[_0x686b('0x35')]+':'+_0x5b8cde['author']['id']);if(_0x3c9723[_0x686b('0x0')]!=_0x1ec580[_0x686b('0x0')])return!0x1;for(const _0xca2c96 of _0x3c9723)if(!_0x1ec580[_0x686b('0x48')](_0xca2c96))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x495b=['plugins','get','insertTableOfContents','enableCommand','TrackChangesEditing','_descriptionFactory','tableOfContents','commands','afterInit','editor','registerElementLabel'];(function(_0x1455f0,_0x495b9a){const _0x18ee0b=function(_0x27e009){while(--_0x27e009){_0x1455f0['push'](_0x1455f0['shift']());}};_0x18ee0b(++_0x495b9a);}(_0x495b,0xb9));const _0x18ee=function(_0x1455f0,_0x495b9a){_0x1455f0=_0x1455f0-0x0;let _0x18ee0b=_0x495b[_0x1455f0];return _0x18ee0b;};import{Plugin as _0x420f01}from'ckeditor5/src/core';import{getTranslation as _0x37d616}from'../utils/common-translations';export default class bt extends _0x420f01{[_0x18ee('0xa')](){const _0x5175a1=this[_0x18ee('0x0')];if(!_0x5175a1[_0x18ee('0x9')]['get'](_0x18ee('0x4')))return;_0x5175a1[_0x18ee('0x2')][_0x18ee('0x3')]('TrackChangesEditing')[_0x18ee('0x5')](_0x18ee('0x4'));const _0x3d062f=_0x5175a1[_0x18ee('0x2')]['get'](_0x18ee('0x6')),_0x2e0a86=_0x5175a1['locale'];_0x3d062f[_0x18ee('0x7')][_0x18ee('0x1')](_0x18ee('0x8'),_0x1c0b0b=>_0x37d616(_0x2e0a86,'ELEMENT_TABLE_OF_CONTENTS',_0x1c0b0b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ac3=['TableCellPropertiesEditing','getAttribute','table','getSelectionAffectedTableCells','markBlockFormat','accept','has','tableBorderWidth','tableCellBorderWidth','afterInit','commandParams','getSuggestions','*Format:*\x20change\x20table\x20cell\x20properties','selection','*Format:*\x20change\x20table\x20properties','enqueueChange','_descriptionFactory','model','_handlePropertyChange','pluginName','tableCellWidth','locale','_suggestionFactory','formatBlock','TableUtils','tableCellPadding','_getSuggestion','registerCustomCallback','format','tableProperties','document','removeAttribute','tableHeight','data','tableCellBorderColor','get','tableCellProperties','handleDiscardAction','nodeAfter','editor','registerDescriptionCallback','getFirstPosition','tableBorderColor','enableCommand','TrackChangesEditing','tableBorderStyle','handleSuggestionDescription','tableCellBorderStyle','plugins','batch','discard','change','tableBackgroundColor','join','setAttribute','getContainedElement'];(function(_0x2bdf95,_0x1ac307){const _0x561558=function(_0x57282b){while(--_0x57282b){_0x2bdf95['push'](_0x2bdf95['shift']());}};_0x561558(++_0x1ac307);}(_0x1ac3,0x11c));const _0x5615=function(_0x2bdf95,_0x1ac307){_0x2bdf95=_0x2bdf95-0x0;let _0x561558=_0x1ac3[_0x2bdf95];return _0x561558;};import{Plugin as _0x437dc2}from'ckeditor5/src/core';import{getTranslation as _0x3343c2}from'../utils/common-translations';export default class Ct extends _0x437dc2{constructor(_0x625c6){super(_0x625c6),this[_0x5615('0x19')]=[_0x5615('0x26'),_0x5615('0x29'),_0x5615('0x3'),'tableAlignment','tableWidth',_0x5615('0x1c'),_0x5615('0x30')],this['tableCellProperties']=[_0x5615('0x1e'),_0x5615('0x2b'),_0x5615('0x4'),_0x5615('0x15'),_0x5615('0x10'),'tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get[_0x5615('0xf')](){return'TrackChangesTableProperties';}[_0x5615('0x5')](){const _0x490d91=this[_0x5615('0x23')][_0x5615('0x2c')][_0x5615('0x1f')](_0x5615('0x28'));if(this['editor'][_0x5615('0x2c')][_0x5615('0x2')]('TablePropertiesEditing')){for(const _0x5c9bc3 of this[_0x5615('0x19')])_0x490d91[_0x5615('0x27')](_0x5c9bc3,(_0x2108e9,_0x1b4fe9)=>{const _0x3ec0d8=this[_0x5615('0x23')][_0x5615('0xd')][_0x5615('0x1a')][_0x5615('0x9')][_0x5615('0x25')]()['findAncestor'](_0x5615('0x36'));this[_0x5615('0xe')](_0x5c9bc3,[_0x3ec0d8],this[_0x5615('0x19')],_0x5615('0x19'),_0x2108e9,_0x1b4fe9);});_0x490d91[_0x5615('0x12')][_0x5615('0x17')](_0x5615('0x13'),_0x5615('0x19'),_0x5615('0x1'),_0x490d91[_0x5615('0x12')]['getSuggestionCallback'](_0x5615('0x13'),null,_0x5615('0x2e'))),_0x490d91[_0x5615('0x12')][_0x5615('0x17')]('formatBlock',_0x5615('0x19'),_0x5615('0x2e'),(_0x141cfd,_0x53d7cb)=>this['handleDiscardAction'](this[_0x5615('0x19')],_0x141cfd,_0x53d7cb)),_0x490d91[_0x5615('0x12')]['registerCustomCallback'](_0x5615('0x13'),_0x5615('0x19'),_0x5615('0x31'),()=>!0x1);}if(this['editor'][_0x5615('0x2c')]['has'](_0x5615('0x34'))){for(const _0x178a1b of this[_0x5615('0x20')])_0x490d91[_0x5615('0x27')](_0x178a1b,(_0x2a46b0,_0x5dbab3)=>{const _0x346ab1=this['editor'][_0x5615('0x2c')][_0x5615('0x1f')](_0x5615('0x14'))[_0x5615('0x37')](this[_0x5615('0x23')][_0x5615('0xd')][_0x5615('0x1a')][_0x5615('0x9')]);this[_0x5615('0xe')](_0x178a1b,_0x346ab1,this[_0x5615('0x20')],_0x5615('0x20'),_0x2a46b0,_0x5dbab3);});_0x490d91[_0x5615('0x12')]['registerCustomCallback'](_0x5615('0x13'),_0x5615('0x20'),'accept',_0x490d91[_0x5615('0x12')]['getSuggestionCallback'](_0x5615('0x13'),null,_0x5615('0x2e'))),_0x490d91[_0x5615('0x12')][_0x5615('0x17')](_0x5615('0x13'),'tableCellProperties',_0x5615('0x2e'),(_0x31d83f,_0x2130d7)=>this[_0x5615('0x21')](this['tableCellProperties'],_0x31d83f,_0x2130d7)),_0x490d91[_0x5615('0x12')]['registerCustomCallback'](_0x5615('0x13'),'tableCellProperties','join',()=>!0x1);}_0x490d91[_0x5615('0xc')][_0x5615('0x24')](_0x1debd5=>this[_0x5615('0x2a')](_0x1debd5));}['_handlePropertyChange'](_0x589e09,_0x2226bb,_0x4ab491,_0x585be1,_0x34b829,_0x562205){const _0x36b4ef=this['editor']['plugins'][_0x5615('0x1f')](_0x5615('0x28'));this[_0x5615('0x23')][_0x5615('0xd')][_0x5615('0xb')](_0x562205[_0x5615('0x2d')],()=>{for(const _0x1138b4 of _0x2226bb){if(this[_0x5615('0x16')](_0x1138b4,_0x585be1))_0x34b829(_0x562205);else{const _0x32e6fb={};for(const _0x5b1734 of _0x4ab491){const _0x242256=_0x1138b4[_0x5615('0x35')](_0x5b1734);void 0x0!==_0x242256&&(_0x32e6fb[_0x5b1734]=_0x242256);}_0x34b829(_0x562205),_0x36b4ef[_0x5615('0x0')](_0x1138b4,{'commandParams':[_0x32e6fb]},[],_0x585be1);}}});}[_0x5615('0x21')](_0x5c9025,_0x8f0c57,_0xaeaa74){const _0x2a3228=_0x8f0c57[0x0]['start'][_0x5615('0x22')],_0x125184=_0xaeaa74[_0x5615('0x6')][0x0];this[_0x5615('0x23')][_0x5615('0xd')][_0x5615('0x2f')](_0x371a3f=>{for(const _0xb2a875 of _0x5c9025)void 0x0!==_0x125184[_0xb2a875]?_0x371a3f[_0x5615('0x32')](_0xb2a875,_0x125184[_0xb2a875],_0x2a3228):_0x371a3f[_0x5615('0x1b')](_0xb2a875,_0x2a3228);});}['handleSuggestionDescription'](_0x555342){if(_0x555342[_0x5615('0x1d')])switch(_0x555342['subType']){case _0x5615('0x19'):return{'type':_0x5615('0x18'),'content':_0x3343c2(this[_0x5615('0x23')][_0x5615('0x11')],_0x5615('0xa'))};case _0x5615('0x20'):return{'type':_0x5615('0x18'),'content':_0x3343c2(this['editor'][_0x5615('0x11')],_0x5615('0x8'))};}}['_getSuggestion'](_0x4e622e,_0xee64f){const _0x1d610b=this[_0x5615('0x23')][_0x5615('0x2c')][_0x5615('0x1f')]('TrackChangesEditing');for(const _0x50d1df of _0x1d610b[_0x5615('0x7')]({'skipNotAttached':!0x0})){const _0x1c4c89=_0x50d1df[_0x5615('0x33')]();if(_0x50d1df['subType']===_0xee64f&&_0x1c4c89===_0x4e622e)return _0x50d1df;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4950=['TrackChangesEditing','has','Template'];(function(_0x3341f9,_0x495095){const _0x3cd6ea=function(_0x176884){while(--_0x176884){_0x3341f9['push'](_0x3341f9['shift']());}};_0x3cd6ea(++_0x495095);}(_0x4950,0x13b));const _0x3cd6=function(_0x3341f9,_0x495095){_0x3341f9=_0x3341f9-0x0;let _0x3cd6ea=_0x4950[_0x3341f9];return _0x3cd6ea;};import{Plugin as _0x3cb174}from'ckeditor5/src/core';export default class yt extends _0x3cb174{['afterInit'](){const _0x372774=this['editor'];_0x372774['plugins'][_0x3cd6('0x1')](_0x3cd6('0x2'))&&_0x372774['plugins']['get'](_0x3cd6('0x0'))['enableCommand']('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x332e=['schema','differ','element','end','from','TrackChangesEditing','removeMarker','model','_descriptionFactory','editor','ELEMENT_TITLE','suggestion','start','forward','afterInit','locale','get','Title','nodeBefore','isTouching','getChangedMarkers','newRange','getNearestSelectionRange','isEqual','plugins','document','updateMarker','title-content'];(function(_0x195b2d,_0x332ec2){const _0x148270=function(_0x2dd1b1){while(--_0x2dd1b1){_0x195b2d['push'](_0x195b2d['shift']());}};_0x148270(++_0x332ec2);}(_0x332e,0xce));const _0x1482=function(_0x195b2d,_0x332ec2){_0x195b2d=_0x195b2d-0x0;let _0x148270=_0x332e[_0x195b2d];return _0x148270;};import{Plugin as _0x5ddd72}from'ckeditor5/src/core';import{getTranslation as _0x4ffef8}from'../utils/common-translations';export default class St extends _0x5ddd72{[_0x1482('0x4')](){const _0x379d2e=this[_0x1482('0x1b')];if(!_0x379d2e['plugins']['has'](_0x1482('0x7')))return;const _0x46d986=_0x379d2e[_0x1482('0xe')][_0x1482('0x6')](_0x1482('0x17'));_0x46d986[_0x1482('0x1a')]['registerElementLabel'](_0x1482('0x11'),()=>_0x4ffef8(_0x379d2e[_0x1482('0x5')],_0x1482('0x0'))),_0x379d2e['model'][_0x1482('0xf')]['registerPostFixer'](_0x9bd5a5=>{let _0xfc0e29=!0x1;const _0xa28c9c=Array[_0x1482('0x16')](_0x379d2e[_0x1482('0x19')][_0x1482('0xf')][_0x1482('0x13')][_0x1482('0xa')]());for(const {name:_0x51eaee,data:_0x80a7f}of _0xa28c9c){const {group:_0x429cf2}=_0x46d986['_splitMarkerName'](_0x51eaee);if(_0x1482('0x1')!==_0x429cf2||!_0x80a7f[_0x1482('0xb')])continue;const _0x1c5bc2=_0x80a7f[_0x1482('0xb')],_0xb13d4a=_0x1c5bc2['end'][_0x1482('0x8')];if(!_0xb13d4a||!_0xb13d4a['is'](_0x1482('0x14'),'title-content'))continue;if(!_0x1c5bc2[_0x1482('0x2')][_0x1482('0x9')](_0x1c5bc2[_0x1482('0x15')]))continue;const _0x1e895d=_0x379d2e[_0x1482('0x19')][_0x1482('0x12')][_0x1482('0xc')](_0x1c5bc2[_0x1482('0x15')],_0x1482('0x3'));if(_0x1e895d&&_0x1e895d['isCollapsed']){const _0x5d5ed2=_0x9bd5a5['createRange'](_0x1c5bc2[_0x1482('0x2')],_0x1e895d[_0x1482('0x2')]);_0x5d5ed2[_0x1482('0xd')](_0x1c5bc2)||(_0x9bd5a5[_0x1482('0x10')](_0x51eaee,{'range':_0x5d5ed2}),_0xfc0e29=!0x0);}_0xfc0e29||(_0x9bd5a5[_0x1482('0x18')](_0x51eaee),_0xfc0e29=!0x0);}return _0xfc0e29;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49f9=['redo','TrackChangesEditing','undo','get','enableCommand','plugins','editor','has','UndoEditing'];(function(_0x36c05a,_0x49f95c){const _0x58bece=function(_0x3d7469){while(--_0x3d7469){_0x36c05a['push'](_0x36c05a['shift']());}};_0x58bece(++_0x49f95c);}(_0x49f9,0x14a));const _0x58be=function(_0x36c05a,_0x49f95c){_0x36c05a=_0x36c05a-0x0;let _0x58bece=_0x49f9[_0x36c05a];return _0x58bece;};import{Plugin as _0xf5cb7a}from'ckeditor5/src/core';export default class It extends _0xf5cb7a{['afterInit'](){const _0x2bd4d1=this[_0x58be('0x0')],_0x49faf2=_0x2bd4d1['plugins'][_0x58be('0x6')](_0x58be('0x4'));_0x2bd4d1[_0x58be('0x8')][_0x58be('0x1')](_0x58be('0x2'))&&(_0x49faf2[_0x58be('0x7')](_0x58be('0x5')),_0x49faf2[_0x58be('0x7')](_0x58be('0x3')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ff3=['TrackChangesEditing','isContent','ck-suggestion-marker-','toViewElement','createRangeOn','type','ck-suggestion-marker--active','model','test','nextSibling','activeMarkers','writer','item','isBlock','getAttribute','isAtEnd','mapper','includes','consumable','element','start','markerRange','previousPosition','listItem','getItems','name','listIndent','span','parent','toViewPosition','getCustomProperty','bindElementToMarker','addClass','markerName','schema','insert','createUIElement'];(function(_0x2ac673,_0x1ff372){const _0x43f505=function(_0x184d7f){while(--_0x184d7f){_0x2ac673['push'](_0x2ac673['shift']());}};_0x43f505(++_0x1ff372);}(_0x1ff3,0x117));const _0x43f5=function(_0x2ac673,_0x1ff372){_0x2ac673=_0x2ac673-0x0;let _0x43f505=_0x1ff3[_0x2ac673];return _0x43f505;};export function getRangesWithAttribute(_0x3040fe,_0x3a974f,_0x4a2257){const _0x2960e7=[];for(const _0x4c8c99 of _0x3a974f[_0x43f5('0x4')]())_0x4c8c99['hasAttribute'](_0x3040fe)&&_0x2960e7['push'](_0x4a2257[_0x43f5('0x15')](_0x4c8c99));return _0x2960e7;}export function getElementsAffectedByListItemRename(_0x846cdf){const _0x38510a=[];if(_0x846cdf['is']('element',_0x43f5('0x3'))){let _0x3965e0=_0x846cdf[_0x43f5('0x1a')];for(;_0x3965e0&&_0x3965e0['is'](_0x43f5('0x24'),_0x43f5('0x3'))&&_0x3965e0[_0x43f5('0x1f')](_0x43f5('0x6'))>0x0;)_0x38510a['push'](_0x3965e0),_0x3965e0=_0x3965e0[_0x43f5('0x1a')];}return _0x38510a;}export function downcastSplitMergeMarker(_0x3716eb,_0x314283,{showActiveMarker:_0x31cd62=!0x0}={}){const _0x135d4a=_0x3716eb['plugins']['get'](_0x43f5('0x11'));return(_0x2bb6b7,_0x131be7,_0x352457)=>{if(!_0x352457[_0x43f5('0x23')][_0x43f5('0x19')](_0x131be7[_0x43f5('0x1')],_0x2bb6b7[_0x43f5('0x5')]))return;const _0x415a17=_0x131be7[_0x43f5('0x1')]['getWalker'](),_0x3c656c=_0x131be7['markerRange'][_0x43f5('0x0')],_0x126d69=_0x3716eb[_0x43f5('0x18')][_0x43f5('0xe')];let _0x51894a=null,_0xd17870=null,_0x1ef01d=!0x1,_0x4dda04=!0x1;for(const _0x39352a of _0x415a17){const _0x1f4588=_0x39352a[_0x43f5('0x1d')];_0x1ef01d=_0x1ef01d||_0x126d69[_0x43f5('0x12')](_0x1f4588);const _0x369415=_0x352457[_0x43f5('0x21')][_0x43f5('0x14')](_0x1f4588);if(_0x369415&&_0x369415[_0x43f5('0xa')]('addHighlight'))return;'elementEnd'==_0x39352a[_0x43f5('0x16')]&&(_0x126d69[_0x43f5('0x1e')](_0x1f4588)&&!_0x126d69['isLimit'](_0x1f4588)&&(_0x1f4588['nextSibling']||_0x3c656c[_0x43f5('0x20')]?_0x51894a&&_0x51894a[_0x43f5('0x8')]==_0x1f4588||(_0x51894a=_0x1f4588,_0x5cde1a(_0x39352a['previousPosition']),_0x4dda04=!0x0):_0xd17870=_0xd17870||_0x39352a[_0x43f5('0x2')]));}function _0x5cde1a(_0x9b74f0){const _0x5a9b48=_0x352457[_0x43f5('0x1c')][_0x43f5('0x10')](_0x43f5('0x7'),{'class':_0x43f5('0x13')+_0x314283}),_0x43fa8e=_0x352457['mapper'][_0x43f5('0x9')](_0x9b74f0);_0x31cd62&&_0x135d4a[_0x43f5('0x1b')][_0x43f5('0x22')](_0x131be7[_0x43f5('0xd')])&&_0x352457[_0x43f5('0x1c')][_0x43f5('0xc')](_0x43f5('0x17'),_0x5a9b48),_0x352457['writer'][_0x43f5('0xf')](_0x43fa8e,_0x5a9b48),_0x352457[_0x43f5('0x21')][_0x43f5('0xb')](_0x5a9b48,_0x131be7[_0x43f5('0xd')]);}_0x1ef01d||_0x4dda04||!_0xd17870||_0x5cde1a(_0xd17870);};}
|