@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230807.0 → 0.0.0-nightly-20230809.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/CHANGELOG.md +2 -2
- package/LICENSE.md +5 -5
- package/README.md +13 -13
- 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 _0x1455=['getSuggestionCallback','discard','add','_descriptionFactory','differ','getAllAdjacentSuggestions','map','nodeAfter','tablePasteRow','rootName','documentSelection','insertContent','tablePasteColumn','getTableIfOnlyTableInContent','document','plugins','getRows','registerPostFixer','subType','TableClipboard','model','table','getShiftedBy','_createdBatches','$graveyard','createRange','getRanges','_suggestionFactory','createRangeIn','getChanges','activeMarkers','startsWith','ck-suggestion-marker','join','conversion','move','getRowIndexes','newRange','insertion','getChildren','isInContent','tablePasteCell','getMarkers','registerCustomCallback','tablePaste','tableCellBackgroundColor','includes','getChild','suggestion','find','type','trackChanges','last','start','content','isEqual','listenTo','isEmpty','push','markerAttributes','_replaceTableSlotCell','insertionRanges','name','endColumn','updateMarker','clipboardOutput','redo','getColumns','column','entries','createRangeOn','locale','tableCellBorderColor','deletion','position','paragraph','tableCellVerticalAlignment','removeMarker','suggestion:formatBlock:tablePasteCell','value','findAncestor','tablePasteChainId','_splitMarkerName','editor','root','*Replace\x20table\x20cells*','accept','markerToHighlight','oldRange','tableCellBorderStyle','tableCellPadding','setAttribute','register','_getCoordsForCells','end','tableCellSuggestion','cells','insertColumns','formatBlock','stop','markMultiRangeDeletion','getSelectionAffectedTableCells','getSuggestions','change','every','createTableWalker','for','endRow','has','keys','row','reduce','tableCell','return','TableUtils','tableCellHorizontalAlignment','requires','columnInsertionRanges','high','schema','createElement','insertRows','some','getRange','batch','removeMarkers','deletionRanges','columns','hasSuggestion','remove','markMultiRangeBlockFormat','unwrap','tableCellBorderWidth','getColumnIndexes','attributes','element','TrackChangesEditing','filter','markers','rowInsertionIndexes','_tablePostFixingSubtypes','getAttributes','columnInsertionIndexes','ck-suggestion-marker-insertion','markerName','fill','getContainedElement','author','rowInsertionRanges','get','insert','cell','editing','Users','commands','markMultiRangeInsertion','first','set','next','length','suggestion-td','suggestionUnloaded','from'];(function(_0x31942a,_0x14556d){const _0x1ac331=function(_0x505ff0){while(--_0x505ff0){_0x31942a['push'](_0x31942a['shift']());}};_0x1ac331(++_0x14556d);}(_0x1455,0x70));const _0x1ac3=function(_0x31942a,_0x14556d){_0x31942a=_0x31942a-0x0;let _0x1ac331=_0x1455[_0x31942a];return _0x1ac331;};import{getTranslation as _0x5c1ad8}from'../utils/common-translations';import{Plugin as _0x5da337}from'ckeditor5/src/core';import{uid as _0x118951,priorities as _0x4fc36d}from'ckeditor5/src/utils';import _0x284242 from'./table';const le=[_0x1ac3('0x14'),_0x1ac3('0x7b'),_0x1ac3('0x8c'),_0x1ac3('0x3'),_0x1ac3('0x7f'),_0x1ac3('0x60'),_0x1ac3('0x8d')],ae=Object['fromEntries'](le[_0x1ac3('0x39')](_0x224a30=>[_0x224a30,null]));export default class kt extends _0x5da337{static get[_0x1ac3('0x4')](){return[_0x284242];}['afterInit'](){const _0x3fd9f6=this[_0x1ac3('0x86')];if(!_0x3fd9f6[_0x1ac3('0x42')]['has'](_0x1ac3('0x46')))return;const _0x8ff44a=_0x3fd9f6['plugins'][_0x1ac3('0x25')](_0x1ac3('0x18')),_0x1bf8e0=_0x3fd9f6[_0x1ac3('0x42')][_0x1ac3('0x25')](_0x1ac3('0x2')),_0x559c5c=_0x3fd9f6[_0x1ac3('0x42')][_0x1ac3('0x25')](_0x284242),_0xe11fcb=_0x3fd9f6['plugins'][_0x1ac3('0x25')](_0x1ac3('0x46'));_0x559c5c[_0x1ac3('0x1c')][_0x1ac3('0x6d')](_0x1ac3('0x3b'),_0x1ac3('0x3f')),_0x3fd9f6[_0x1ac3('0x47')][_0x1ac3('0x7')][_0x1ac3('0x8f')]('tableCellSuggestion',{'allowIn':_0x1ac3('0x0'),'allowContentOf':_0x1ac3('0x0'),'isLimit':!0x0}),_0x3fd9f6[_0x1ac3('0x55')]['elementToElement']({'model':'tableCellSuggestion','view':_0x1ac3('0x30')});let _0x1ba689=null;_0x3fd9f6[_0x1ac3('0x47')]['on'](_0x1ac3('0x3e'),(_0x3b73c1,_0x135598)=>{const [_0x3fc577,_0x517739]=_0x135598,_0xcc7e86=_0x135598[_0x135598[_0x1ac3('0x2f')]-0x1];_0xcc7e86&&_0xcc7e86['forceDefaultExecution']||_0x8ff44a['_isForcedDefaultExecutionBlock']||this[_0x1ac3('0x86')][_0x1ac3('0x2a')][_0x1ac3('0x25')](_0x1ac3('0x66'))[_0x1ac3('0x82')]&&function(_0x32e474,_0x6b604e,_0x205626,_0xb5115e,_0x5e5051){if(_0x6b604e&&!_0x6b604e['is'](_0x1ac3('0x3d')))return!0x1;const _0x53288e=_0x5e5051[_0x1ac3('0x40')](_0x32e474,_0x205626);if(!_0x53288e||!fe(_0x53288e,void 0x0,_0xb5115e))return!0x1;const _0x54349d=_0xb5115e[_0x1ac3('0x98')](_0x205626[_0x1ac3('0x41')]['selection']);if(!_0x54349d[_0x1ac3('0x2f')])return!0x1;const _0x47a49e=_0x54349d[0x0][_0x1ac3('0x83')](_0x1ac3('0x48')),_0x407400=_0xb5115e[_0x1ac3('0x57')](_0x54349d),_0xdfcf92=_0xb5115e[_0x1ac3('0x15')](_0x54349d),_0x595bb7={'startRow':_0x407400[_0x1ac3('0x2c')],'endRow':_0x407400[_0x1ac3('0x67')],'startColumn':_0xdfcf92[_0x1ac3('0x2c')],'endColumn':_0xdfcf92[_0x1ac3('0x67')]};return 0x1==_0x54349d[_0x1ac3('0x2f')]&&(_0x595bb7[_0x1ac3('0x9e')]+=_0xb5115e[_0x1ac3('0x43')](_0x53288e)-0x1,_0x595bb7[_0x1ac3('0x72')]+=_0xb5115e[_0x1ac3('0x76')](_0x53288e)-0x1),fe(_0x47a49e,_0x595bb7,_0xb5115e);}(_0x3fc577,_0x517739,_0x3fd9f6[_0x1ac3('0x47')],_0x1bf8e0,_0xe11fcb)&&(_0x3b73c1[_0x1ac3('0x96')](),_0x1ba689={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3fd9f6[_0x1ac3('0x47')]['change'](()=>{_0x3fd9f6['model']['insertContent'](_0x135598[0x0],_0x135598[0x1],_0x135598[0x2],{'forceDefaultExecution':!0x0});const _0x4f51c3=_0x118951(),{rowInsertionRanges:_0x4488d7,columnInsertionRanges:_0x254506,insertionRanges:_0x25d3bb,deletionRanges:_0x4e91cc,cells:_0x581b3d}=_0x1ba689;_0x4488d7['length']&&_0x8ff44a[_0x1ac3('0x2b')](_0x4488d7,_0x1ac3('0x3b'),{'tablePasteChainId':_0x4f51c3}),_0x254506['length']&&_0x8ff44a[_0x1ac3('0x2b')](_0x254506,'tablePasteColumn',{'tablePasteChainId':_0x4f51c3}),_0x25d3bb[_0x1ac3('0x2f')]&&_0x8ff44a['markMultiRangeInsertion'](_0x25d3bb,'tablePaste',{'tablePasteChainId':_0x4f51c3,'skipNestingCheck':!0x0}),_0x4e91cc[_0x1ac3('0x2f')]&&_0x8ff44a[_0x1ac3('0x97')](_0x4e91cc,'tablePaste',{'tablePasteChainId':_0x4f51c3,'skipNestingCheck':!0x0});const _0x2d8975=_0x8ff44a[_0x1ac3('0x12')](_0x581b3d[_0x1ac3('0x39')](({element:_0x4da7b2})=>_0x4da7b2),{'formatGroupId':_0x118951()},[],_0x1ac3('0x5c'),{'tablePasteChainId':_0x4f51c3});if(_0x2d8975){const _0x151326=_0x2d8975['getMarkers'](),_0x3978c9=[];for(const {element:_0x57fdbb,attributes:_0x4af227}of _0x581b3d){if(!_0x4af227)continue;const _0x23b1bd=_0x3fd9f6[_0x1ac3('0x47')][_0x1ac3('0x79')](_0x57fdbb),_0x86f5ba=_0x151326['find'](_0x2a9cae=>_0x2a9cae[_0x1ac3('0xb')]()[_0x1ac3('0x6a')](_0x23b1bd));_0x86f5ba&&_0x3978c9['push']([_0x86f5ba[_0x1ac3('0x71')],_0x4af227]);}_0x3978c9['length']&&_0x2d8975[_0x1ac3('0x8e')](_0x1ac3('0x6e'),Object['fromEntries'](_0x3978c9));}_0x1ba689=null;}));},{'priority':_0x4fc36d[_0x1ac3('0x6')]+0xa}),_0x3fd9f6[_0x1ac3('0x42')]['get'](_0x1ac3('0x46'))['on'](_0x1ac3('0x6f'),(_0x2622ae,_0x172838)=>{const [_0x363878,_0x285343,,_0x116f09]=_0x172838;if(!_0x1ba689)return;_0x2622ae[_0x1ac3('0x96')]();const _0x1f3568=_0x363878[_0x1ac3('0x27')],_0x457b8d=_0x285343,_0x40d089=ce(_0x1f3568),_0x13ec4c=ce(_0x457b8d);_0x2622ae[_0x1ac3('0x1')]=_0x1f3568;let _0x54c5a1=null,_0x4b7d12=null;if(_0x13ec4c||_0x40d089){if(_0x40d089&&!_0x13ec4c){_0x116f09[_0x1ac3('0x11')](_0x1f3568[_0x1ac3('0x62')](0x0));for(const _0x1a3860 of Array[_0x1ac3('0x32')](_0x457b8d[_0x1ac3('0x5a')]()))_0x116f09[_0x1ac3('0x26')](_0x1a3860,_0x1f3568,_0x1ac3('0x91'));const _0x5dd153=_0x1ba689[_0x1ac3('0x1b')][_0x1ac3('0x61')](_0x363878[_0x1ac3('0xa1')]),_0x6e186b=_0x1ba689['columnInsertionIndexes']['includes'](_0x363878[_0x1ac3('0x77')]);_0x5dd153||_0x6e186b||(_0x54c5a1=_0x116f09[_0x1ac3('0x4f')](_0x1f3568));}else _0x13ec4c&&!_0x40d089&&(_0x4b7d12=_0x116f09[_0x1ac3('0x4f')](_0x1f3568));}else{const _0x1f2673=_0x116f09[_0x1ac3('0x8')]('tableCellSuggestion'),_0x4de3e7=_0x116f09[_0x1ac3('0x8')](_0x1ac3('0x92'));_0x116f09['wrap'](_0x116f09[_0x1ac3('0x4f')](_0x1f3568),_0x4de3e7),_0x116f09['insert'](_0x1f2673,_0x1f3568,0x0);for(const _0x4849fe of Array[_0x1ac3('0x32')](_0x457b8d[_0x1ac3('0x5a')]()))_0x116f09[_0x1ac3('0x26')](_0x4849fe,_0x1f2673,'end');_0x54c5a1=_0x116f09[_0x1ac3('0x79')](_0x1f2673),_0x4b7d12=_0x116f09[_0x1ac3('0x79')](_0x4de3e7);}const _0x34148a=Array['from'](_0x457b8d[_0x1ac3('0x1d')]())['filter'](([_0x2f3aa2])=>le['includes'](_0x2f3aa2));_0x1ba689[_0x1ac3('0x93')][_0x1ac3('0x6d')]({'element':_0x1f3568,'attributes':_0x34148a[_0x1ac3('0x2f')]?Object['fromEntries'](_0x34148a):null}),_0x54c5a1&&_0x1ba689[_0x1ac3('0x70')][_0x1ac3('0x6d')](_0x54c5a1),_0x4b7d12&&_0x1ba689[_0x1ac3('0xe')][_0x1ac3('0x6d')](_0x4b7d12);},{'priority':_0x1ac3('0x6')}),_0x1bf8e0['on'](_0x1ac3('0x94'),(_0x171f50,_0x484c59)=>{const [_0x12c73b,_0x491b2a={}]=_0x484c59;if(!_0x1ba689)return;const _0x2938fb=_0x491b2a['at']||0x0,_0xab91eb=_0x491b2a[_0x1ac3('0xf')]||0x1;_0x1ba689[_0x1ac3('0x1e')]=new Array(_0xab91eb)[_0x1ac3('0x21')](_0x2938fb)[_0x1ac3('0x39')]((_0xeab7b,_0x1703e5)=>_0xeab7b+_0x1703e5);for(const {cell:_0x382ffd}of _0x1bf8e0[_0x1ac3('0x9c')](_0x12c73b,{'startColumn':_0x2938fb,'endColumn':_0x2938fb+_0xab91eb-0x1}))_0x1ba689[_0x1ac3('0x5')][_0x1ac3('0x6d')](_0x3fd9f6[_0x1ac3('0x47')][_0x1ac3('0x79')](_0x382ffd));},{'priority':'low'}),_0x1bf8e0['on'](_0x1ac3('0x9'),(_0x12ea34,_0x2ac1b5)=>{const [_0x4eff76,_0xf2d78a={}]=_0x2ac1b5;if(!_0x1ba689)return;const _0xbd6123=_0xf2d78a['at']||0x0,_0x4cc35d=_0xf2d78a['rows']||0x1;_0x1ba689[_0x1ac3('0x1b')]=new Array(_0x4cc35d)['fill'](_0xbd6123)[_0x1ac3('0x39')]((_0x2a52cb,_0x177fc6)=>_0x2a52cb+_0x177fc6);for(const {cell:_0x2b5779}of _0x1bf8e0['createTableWalker'](_0x4eff76,{'startRow':_0xbd6123,'endRow':_0xbd6123+_0x4cc35d-0x1}))_0x1ba689[_0x1ac3('0x24')][_0x1ac3('0x6d')](_0x3fd9f6[_0x1ac3('0x47')][_0x1ac3('0x79')](_0x2b5779));},{'priority':'low'}),_0x8ff44a[_0x1ac3('0x36')]['registerDescriptionCallback'](_0x5e225e=>{if(_0x5e225e[_0x1ac3('0x45')]&&_0x5e225e[_0x1ac3('0x45')][_0x1ac3('0x52')](_0x1ac3('0x5f')))return _0x5e225e['previous']?{}:{'type':_0x1ac3('0x59'),'content':_0x5c1ad8(_0x3fd9f6[_0x1ac3('0x7a')],_0x1ac3('0x88'))};});const _0x1c1a05=()=>{};for(const _0x997a9c of[_0x1ac3('0x5f'),'tablePasteColumn','tablePasteRow',_0x1ac3('0x5c')])_0x8ff44a[_0x1ac3('0x4e')][_0x1ac3('0x5e')](_0x1ac3('0x59'),_0x997a9c,_0x1ac3('0x54'),_0x1c1a05),_0x8ff44a[_0x1ac3('0x4e')][_0x1ac3('0x5e')](_0x1ac3('0x7c'),_0x997a9c,_0x1ac3('0x54'),_0x1c1a05);_0x8ff44a['_suggestionFactory'][_0x1ac3('0x5e')](_0x1ac3('0x95'),'tablePasteCell',_0x1ac3('0x34'),_0x1c1a05),_0x8ff44a[_0x1ac3('0x4e')][_0x1ac3('0x5e')](_0x1ac3('0x95'),'tablePasteCell',_0x1ac3('0x89'),(_0xe91c0b,_0x4d8930,_0x4086cf)=>{const _0x562a3c=_0xe91c0b[_0x1ac3('0x39')](_0x2a1708=>_0x2a1708['getContainedElement']())[_0x1ac3('0x19')](_0x422ad5=>_0x422ad5),_0x5c9341=new Map(_0x562a3c[_0x1ac3('0x39')](_0x106eb9=>[_0x106eb9,null]));if(_0x1ba689)for(const {element:_0x34f0df,attributes:_0x19a5ce}of _0x1ba689[_0x1ac3('0x93')])_0x19a5ce&&_0x5c9341[_0x1ac3('0x2d')](_0x34f0df,_0x19a5ce);else{if(_0x4086cf&&_0x4086cf['markerAttributes'])for(const [_0xdaeec6,_0x55f74a]of Object[_0x1ac3('0x78')](_0x4086cf['markerAttributes'])){const _0x417c54=_0x3fd9f6[_0x1ac3('0x47')][_0x1ac3('0x1a')][_0x1ac3('0x25')](_0xdaeec6),_0x973206=_0x417c54?_0x417c54[_0x1ac3('0xb')]()[_0x1ac3('0x22')]():null;_0x973206&&_0x5c9341[_0x1ac3('0x2d')](_0x973206,_0x55f74a);}}_0x3fd9f6[_0x1ac3('0x47')]['change'](_0xdf8217=>{for(const [_0x33b95b,_0xb9f376]of _0x5c9341)_0xdf8217['setAttributes']({...ae,..._0xb9f376},_0x33b95b);});});const _0x3f0c5b=(_0x53a69d,_0xb7f409)=>{_0x8ff44a[_0x1ac3('0x4e')][_0x1ac3('0x5e')](_0x53a69d,_0x1ac3('0x5f'),_0xb7f409,(_0x5cba3e,_0x544bbb,_0x532c57)=>{_0x3fd9f6[_0x1ac3('0x47')][_0x1ac3('0x9a')](_0x1d0301=>{const _0x266738=[];for(const _0x2e748e of _0x5cba3e){const _0x1eb932=_0x2e748e[_0x1ac3('0x68')][_0x1ac3('0x3a')];_0x1eb932['is'](_0x1ac3('0x17'),'tableCellSuggestion')&&_0x266738[_0x1ac3('0x6d')](_0x1eb932);}_0x8ff44a[_0x1ac3('0x4e')][_0x1ac3('0x33')](_0x53a69d,null,_0xb7f409)(_0x5cba3e,_0x544bbb,_0x532c57);for(const _0x1f2168 of _0x266738)_0x1ac3('0x4b')!=_0x1f2168[_0x1ac3('0x87')][_0x1ac3('0x3c')]&&_0x1d0301['unwrap'](_0x1f2168);});});};_0x3f0c5b(_0x1ac3('0x59'),'accept'),_0x3f0c5b(_0x1ac3('0x59'),_0x1ac3('0x34')),_0x3f0c5b(_0x1ac3('0x7c'),_0x1ac3('0x89')),_0x3f0c5b(_0x1ac3('0x7c'),_0x1ac3('0x34')),_0x8ff44a[_0x1ac3('0x4e')][_0x1ac3('0x5e')](_0x1ac3('0x59'),_0x1ac3('0x3b'),_0x1ac3('0x34'),_0x17541e=>{const _0x41542f=_0x17541e[_0x1ac3('0x39')](_0x53c384=>_0x53c384[_0x1ac3('0x22')]()),_0x25a709=_0x41542f[0x0]['findAncestor']('table'),{minRow:_0x4327fc,maxRow:_0xd34720}=_0x559c5c['_getCoordsForCells'](_0x41542f);_0x1bf8e0['removeRows'](_0x25a709,{'at':_0x4327fc,'rows':_0xd34720-_0x4327fc+0x1});}),_0x8ff44a[_0x1ac3('0x4e')][_0x1ac3('0x5e')](_0x1ac3('0x59'),'tablePasteColumn','discard',_0x472684=>{const _0x5f5bdf=_0x472684['map'](_0x4b7bdc=>_0x4b7bdc[_0x1ac3('0x22')]()),_0x2d509f=_0x5f5bdf[0x0][_0x1ac3('0x83')]('table'),{minColumn:_0x4ccbc5,maxColumn:_0x1b930e}=_0x559c5c[_0x1ac3('0x90')](_0x5f5bdf);_0x1bf8e0['removeColumns'](_0x2d509f,{'at':_0x4ccbc5,'columns':_0x1b930e-_0x4ccbc5+0x1});});const _0x5638e7=(_0x47d5ce,_0x207be4)=>{if(!_0x207be4[_0x1ac3('0x45')]||!_0x207be4[_0x1ac3('0x45')][_0x1ac3('0x52')](_0x1ac3('0x5f')))return;const _0x1643fd=_0x207be4[_0x1ac3('0x16')][_0x1ac3('0x84')],_0x3f8e0e=_0x8ff44a[_0x1ac3('0x99')]()[_0x1ac3('0x19')](_0xc01e6b=>_0xc01e6b[_0x1ac3('0x5b')]&&_0xc01e6b[_0x1ac3('0x16')]&&_0xc01e6b['attributes']['tablePasteChainId']==_0x1643fd);_0x3f8e0e[_0x1ac3('0x2f')]&&_0x207be4[_0x1ac3('0x38')]()['length']!=_0x3f8e0e['length']&&_0x3f8e0e[_0x1ac3('0xa2')]((_0x487ff2,_0x4a8244)=>(_0x487ff2[_0x1ac3('0x2e')]=_0x4a8244,_0x4a8244['previous']=_0x487ff2,_0x4a8244));};function _0x37dfc3(_0x33be17,_0x34b028=!0x0){const {id:_0x360f87}=_0x8ff44a[_0x1ac3('0x85')](_0x33be17[_0x1ac3('0x20')]),_0x357f20=[_0x1ac3('0x53'),_0x1ac3('0x1f')],_0x374be5=_0x8ff44a[_0x1ac3('0x51')][_0x1ac3('0x61')](_0x33be17[_0x1ac3('0x20')]);return _0x374be5&&_0x357f20[_0x1ac3('0x6d')]('ck-suggestion-marker--active'),{'classes':_0x357f20,'attributes':{'data-suggestion':_0x360f87},'priority':_0x374be5&&_0x34b028?0xbc2:0xbb8};}_0x8ff44a['on']('suggestionLoaded',_0x5638e7,{'priority':_0x1ac3('0x6')}),_0x8ff44a['on'](_0x1ac3('0x31'),_0x5638e7,{'priority':_0x1ac3('0x6')}),_0x3fd9f6['model'][_0x1ac3('0x41')][_0x1ac3('0x44')](()=>{let _0x16debc=!0x1;const _0x3ab861=Array[_0x1ac3('0x32')](_0x3fd9f6[_0x1ac3('0x47')][_0x1ac3('0x41')][_0x1ac3('0x37')]['getChangedMarkers']());for(const {name:_0x3ca018,data:_0x2cb16d}of _0x3ab861){const {group:_0x2bc196,type:_0x36c8bf,id:_0xf286c7}=_0x8ff44a[_0x1ac3('0x85')](_0x3ca018);if(_0x1ac3('0x63')!=_0x2bc196||_0x1ac3('0x7c')!=_0x36c8bf||_0x2cb16d[_0x1ac3('0x8b')])continue;if(!_0x8ff44a[_0x1ac3('0x10')](_0xf286c7))continue;const _0x378640=_0x8ff44a['getSuggestion'](_0xf286c7)[_0x1ac3('0x4d')](),_0x476a0c=_0x3fd9f6[_0x1ac3('0x42')]['get'](_0x1ac3('0x29'))['me'];for(const _0x25de6b of _0x8ff44a['getSuggestions']()){if(!_0x25de6b[_0x1ac3('0x5b')]||_0x25de6b[_0x1ac3('0x23')]!=_0x476a0c)continue;if(_0x1ac3('0x95')!=_0x25de6b[_0x1ac3('0x65')]||_0x1ac3('0x5c')!=_0x25de6b[_0x1ac3('0x45')])continue;if(_0x25de6b[_0x1ac3('0x4d')]()[_0x1ac3('0x9b')](_0x2d1587=>_0x378640[_0x1ac3('0xa')](_0x12d518=>_0x12d518['containsRange'](_0x2d1587,!0x0))))for(const _0x1bbba1 of _0x25de6b[_0x1ac3('0x38')]())_0x1bbba1['isInContent']&&(_0x1bbba1[_0x1ac3('0x34')](),_0x16debc=!0x0);}}return _0x16debc;}),_0x3fd9f6[_0x1ac3('0x47')][_0x1ac3('0x41')][_0x1ac3('0x44')](_0x3e9381=>{const _0x1646ff=_0x3fd9f6[_0x1ac3('0x2a')]['get'](_0x1ac3('0x75'));if(!_0x1646ff||!_0x1646ff[_0x1ac3('0x4a')][_0x1ac3('0x9f')](_0x3e9381[_0x1ac3('0xc')]))return!0x1;let _0x3b50e9=!0x1;const _0x40bd54=_0x3fd9f6[_0x1ac3('0x42')][_0x1ac3('0x25')]('Users')['me'],_0x35a1e6=_0x3fd9f6[_0x1ac3('0x47')][_0x1ac3('0x41')][_0x1ac3('0x37')][_0x1ac3('0x50')](),_0x36d147=Array[_0x1ac3('0x32')](_0x3fd9f6['model']['document'][_0x1ac3('0x37')]['getChangedMarkers']())[_0x1ac3('0x19')](({name:_0x450491,data:_0x2cd99b})=>{const {group:_0x3b4fc7,subType:_0x43bdbf,authorId:_0x61fdb3}=_0x8ff44a['_splitMarkerName'](_0x450491);return _0x1ac3('0x63')==_0x3b4fc7&&_0x1ac3('0x5f')==_0x43bdbf&&_0x61fdb3==_0x40bd54['id']&&!_0x2cd99b['oldRange'];});for(const _0x53c025 of _0x35a1e6){if('insert'!=_0x53c025[_0x1ac3('0x65')]||_0x1ac3('0x92')!=_0x53c025[_0x1ac3('0x71')]||0x1!=_0x53c025['length'])continue;const _0x3b19f4=_0x3e9381[_0x1ac3('0x4c')](_0x53c025[_0x1ac3('0x7d')],_0x53c025[_0x1ac3('0x7d')][_0x1ac3('0x49')](0x1));if(!_0x36d147[_0x1ac3('0x64')](({data:_0x457931})=>_0x457931[_0x1ac3('0x58')][_0x1ac3('0x6a')](_0x3b19f4)))for(const {name:_0x4d97f1,data:_0x4ac20b}of _0x36d147)if(_0x3b19f4['containsRange'](_0x4ac20b['newRange'])){_0x3e9381[_0x1ac3('0x73')](_0x4d97f1,{'range':_0x3b19f4}),_0x3b50e9=!0x0;break;}}return _0x3b50e9;}),_0x3fd9f6[_0x1ac3('0x47')][_0x1ac3('0x41')]['registerPostFixer'](_0xd0a943=>{let _0x555e2f=!0x1;const _0x4a8516=_0x3fd9f6[_0x1ac3('0x42')][_0x1ac3('0x25')]('Users')['me'],_0x34609b=_0x8ff44a[_0x1ac3('0x99')]()['filter'](_0x28ddc7=>_0x28ddc7[_0x1ac3('0x5b')]&&_0x28ddc7[_0x1ac3('0x23')]==_0x4a8516),_0x11e283=new Set(),_0x28f0d1=new Set();for(const _0x4898a0 of _0x34609b)if(_0x1ac3('0x5f')==_0x4898a0[_0x1ac3('0x45')])for(const _0x353ef0 of _0x4898a0[_0x1ac3('0x5d')]()){const _0x59a17d=_0x353ef0[_0x1ac3('0xb')]()[_0x1ac3('0x22')]();if(_0x59a17d){if(_0x59a17d['is'](_0x1ac3('0x17'),_0x1ac3('0x92'))&&ce(_0x59a17d)){_0x4898a0[_0x1ac3('0x80')](_0x353ef0['name']),_0x11e283['add'](_0x59a17d),_0x555e2f=!0x0;const _0x2240e0=_0x59a17d['nextSibling'],_0x296108=_0x59a17d['previousSibling'],_0x49bc6b=_0x2240e0&&_0x2240e0['is'](_0x1ac3('0x17'),'tableCellSuggestion'),_0x49e0be=_0x296108&&_0x296108['is']('element',_0x1ac3('0x92'));_0x49bc6b&&!_0x11e283[_0x1ac3('0x9f')](_0x2240e0)&&_0x28f0d1[_0x1ac3('0x35')](_0x2240e0),_0x49e0be&&!_0x11e283[_0x1ac3('0x9f')](_0x296108)&&_0x28f0d1['add'](_0x296108);}else _0x59a17d['is'](_0x1ac3('0x17'),_0x1ac3('0x7e'))&&_0x59a17d['isEmpty']&&(_0x4898a0['removeMarker'](_0x353ef0[_0x1ac3('0x71')]),_0x555e2f=!0x0);}}else{if(_0x1ac3('0x5c')==_0x4898a0['subType']){if(!_0x4898a0[_0x1ac3('0x16')]||!_0x4898a0[_0x1ac3('0x16')][_0x1ac3('0x84')])continue;const _0x4ea0ff=_0x4898a0[_0x1ac3('0x16')][_0x1ac3('0x6e')];if(_0x4ea0ff&&Object[_0x1ac3('0xa0')](_0x4ea0ff)['length'])continue;const _0x35eaca=_0x4898a0[_0x1ac3('0x16')][_0x1ac3('0x84')];let _0x556152=!0x0,_0x202935=!0x0;for(const _0x251a66 of _0x34609b)if(_0x251a66[_0x1ac3('0x45')]&&_0x251a66[_0x1ac3('0x45')]['startsWith'](_0x1ac3('0x5f'))){if(!_0x251a66[_0x1ac3('0x16')][_0x1ac3('0x84')]){_0x202935=!0x1;break;}if(_0x251a66['id']!=_0x4898a0['id']&&_0x251a66['attributes'][_0x1ac3('0x84')]==_0x35eaca){_0x556152=!0x1;break;}}_0x202935&&_0x556152&&(_0x4898a0[_0x1ac3('0xd')](),_0x555e2f=!0x0);}}for(const _0x52e324 of _0x11e283)_0xd0a943[_0x1ac3('0x11')](_0x52e324);for(const _0x5e53ca of _0x28f0d1)_0xd0a943[_0x1ac3('0x13')](_0x5e53ca);return _0x555e2f;}),_0x3fd9f6[_0x1ac3('0x55')][_0x1ac3('0x9d')]('editingDowncast')['markerToHighlight']({'model':_0x1ac3('0x81'),'view':(_0x5229e0,_0x86ec95)=>_0x37dfc3(_0x5229e0),'converterPriority':_0x1ac3('0x6')}),_0x3fd9f6[_0x1ac3('0x55')][_0x1ac3('0x9d')]('dataDowncast')[_0x1ac3('0x8a')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2068c5,_0x24e595)=>_0x24e595['options']['showSuggestionHighlights']?_0x37dfc3(_0x2068c5,!0x1):null,'converterPriority':'high'});const _0x108e24=_0x3fd9f6[_0x1ac3('0x28')]['view'];this[_0x1ac3('0x6b')](_0x108e24[_0x1ac3('0x41')],_0x1ac3('0x74'),(_0x453add,_0x563647)=>{const _0x49de40=[];for(const _0x2ff477 of _0x108e24[_0x1ac3('0x4f')](_0x563647[_0x1ac3('0x69')])['getItems']())_0x2ff477['is'](_0x1ac3('0x17'),'suggestion-td')&&_0x49de40[_0x1ac3('0x6d')](_0x2ff477);_0x108e24[_0x1ac3('0x9a')](_0x4d1f8f=>{for(const _0x47162a of _0x49de40)_0x4d1f8f[_0x1ac3('0x56')](_0x4d1f8f[_0x1ac3('0x4f')](_0x47162a),_0x4d1f8f['createPositionBefore'](_0x47162a)),_0x4d1f8f[_0x1ac3('0x11')](_0x47162a);});});}}function ce(_0x1f65ae){if(_0x1f65ae['isEmpty'])return!0x0;const _0x49d741=_0x1f65ae[_0x1ac3('0x62')](0x0);return _0x49d741['is'](_0x1ac3('0x17'),_0x1ac3('0x7e'))&&_0x49d741[_0x1ac3('0x6c')];}function fe(_0x8513ae,_0x395b81={},_0x549c4b){for(const {isAnchor:_0x35b795,cellHeight:_0x59841d,cellWidth:_0x15b811}of _0x549c4b[_0x1ac3('0x9c')](_0x8513ae,{'includeAllSlots':!0x0,..._0x395b81}))if(!_0x35b795||0x1!=_0x59841d||0x1!=_0x15b811)return!0x1;return!0x0;}
|
|
23
|
+
const _0x1f11=['type','nextSibling','editingDowncast','endRow','tableCellBorderColor','markMultiRangeInsertion','unwrap','start','document','markers','rowInsertionIndexes','_splitMarkerName','previous','_replaceTableSlotCell','tableCellSuggestion','tableCellHorizontalAlignment','tableCellPadding','_suggestionFactory','suggestion-td','tableCellBorderWidth','trackChanges','tablePasteChainId','editing','element','getColumns','fromEntries','join','register','dataDowncast','content','columnInsertionRanges','$graveyard','createRange','suggestion:formatBlock:tablePasteCell','registerCustomCallback','getTableIfOnlyTableInContent','differ','tablePasteRow','commands','tablePaste','for','tableCellBorderStyle','schema','markMultiRangeBlockFormat','removeColumns','isInContent','Users','tableCell','editor','includes','rowInsertionRanges','suggestion','tablePasteColumn','length','row','accept','low','add','registerPostFixer','redo','from','tableCellBackgroundColor','getContainedElement','locale','findAncestor','position','tablePasteCell','startsWith','setAttribute','get','stop','selection','getSelectionAffectedTableCells','previousSibling','ck-suggestion-marker--active','_getCoordsForCells','return','createRangeIn','getRows','some','getChild','set','getSuggestion','insertContent','setAttributes','columnInsertionIndexes','cell','batch','removeMarker','insertColumns','deletion','getSuggestions','getChanges','formatBlock','registerDescriptionCallback','ck-suggestion-marker','removeMarkers','clipboardOutput','first','map','value','move','containsRange','markerAttributes','getRanges','last','_createdBatches','elementToElement','getRange','insert','hasSuggestion','removeRows','forceDefaultExecution','createTableWalker','every','name','getAttributes','insertionRanges','rows','createRangeOn','getChildren','newRange','plugins','filter','model','afterInit','getSuggestionCallback','subType','remove','fill','markerName','getColumnIndexes','high','markMultiRangeDeletion','TableUtils','isEqual','documentSelection','push','reduce','_isForcedDefaultExecutionBlock','createElement','next','paragraph','showSuggestionHighlights','getChangedMarkers','requires','getMarkers','getShiftedBy','endColumn','*Replace\x20table\x20cells*','TableClipboard','find','change','oldRange','attributes','discard','has','insertion','isEmpty','_descriptionFactory','cells','table','markerToHighlight'];(function(_0x41da1a,_0x1f11cf){const _0x47e194=function(_0x5f20f1){while(--_0x5f20f1){_0x41da1a['push'](_0x41da1a['shift']());}};_0x47e194(++_0x1f11cf);}(_0x1f11,0x178));const _0x47e1=function(_0x41da1a,_0x1f11cf){_0x41da1a=_0x41da1a-0x0;let _0x47e194=_0x1f11[_0x41da1a];return _0x47e194;};import{getTranslation as _0xafdc07}from'../utils/common-translations';import{Plugin as _0x41864d}from'ckeditor5/src/core';import{uid as _0x32119c,priorities as _0x3e8157}from'ckeditor5/src/utils';import _0x560d41 from'./table';const le=[_0x47e1('0x84'),_0x47e1('0x75'),_0x47e1('0x9a'),_0x47e1('0x80'),'tableCellVerticalAlignment',_0x47e1('0xb'),_0x47e1('0x81')],ae=Object[_0x47e1('0x8a')](le['map'](_0x3de32d=>[_0x3de32d,null]));export default class kt extends _0x41864d{static get[_0x47e1('0x5f')](){return[_0x560d41];}[_0x47e1('0x4b')](){const _0x3f86f7=this[_0x47e1('0xa1')];if(!_0x3f86f7[_0x47e1('0x48')][_0x47e1('0x6a')](_0x47e1('0x64')))return;const _0x474843=_0x3f86f7[_0x47e1('0x48')][_0x47e1('0x13')]('TrackChangesEditing'),_0xf83e42=_0x3f86f7['plugins']['get'](_0x47e1('0x54')),_0xbc6d28=_0x3f86f7[_0x47e1('0x48')][_0x47e1('0x13')](_0x560d41),_0x443261=_0x3f86f7[_0x47e1('0x48')][_0x47e1('0x13')](_0x47e1('0x64'));_0xbc6d28['_tablePostFixingSubtypes'][_0x47e1('0x57')](_0x47e1('0x96'),_0x47e1('0x2')),_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x9b')][_0x47e1('0x8c')](_0x47e1('0x7f'),{'allowIn':_0x47e1('0xa0'),'allowContentOf':_0x47e1('0xa0'),'isLimit':!0x0}),_0x3f86f7['conversion'][_0x47e1('0x39')]({'model':'tableCellSuggestion','view':_0x47e1('0x83')});let _0x524490=null;_0x3f86f7[_0x47e1('0x4a')]['on'](_0x47e1('0x21'),(_0x47f63b,_0x444c56)=>{const [_0x4f82ca,_0x326c3b]=_0x444c56,_0x4f36f9=_0x444c56[_0x444c56['length']-0x1];_0x4f36f9&&_0x4f36f9[_0x47e1('0x3e')]||_0x474843[_0x47e1('0x59')]||this[_0x47e1('0xa1')][_0x47e1('0x97')][_0x47e1('0x13')](_0x47e1('0x85'))[_0x47e1('0x32')]&&function(_0x1f4709,_0x5d8201,_0x19b456,_0x210bca,_0x2a6bd2){if(_0x5d8201&&!_0x5d8201['is'](_0x47e1('0x56')))return!0x1;const _0x5b0edd=_0x2a6bd2[_0x47e1('0x94')](_0x1f4709,_0x19b456);if(!_0x5b0edd||!fe(_0x5b0edd,void 0x0,_0x210bca))return!0x1;const _0x1b0f1a=_0x210bca[_0x47e1('0x16')](_0x19b456['document'][_0x47e1('0x15')]);if(!_0x1b0f1a[_0x47e1('0x3')])return!0x1;const _0xd9c70f=_0x1b0f1a[0x0][_0x47e1('0xe')](_0x47e1('0x6f')),_0x21b29f=_0x210bca['getRowIndexes'](_0x1b0f1a),_0x2c5262=_0x210bca[_0x47e1('0x51')](_0x1b0f1a),_0x2d9091={'startRow':_0x21b29f['first'],'endRow':_0x21b29f[_0x47e1('0x37')],'startColumn':_0x2c5262[_0x47e1('0x30')],'endColumn':_0x2c5262[_0x47e1('0x37')]};return 0x1==_0x1b0f1a['length']&&(_0x2d9091[_0x47e1('0x74')]+=_0x210bca[_0x47e1('0x1c')](_0x5b0edd)-0x1,_0x2d9091[_0x47e1('0x62')]+=_0x210bca[_0x47e1('0x89')](_0x5b0edd)-0x1),fe(_0xd9c70f,_0x2d9091,_0x210bca);}(_0x4f82ca,_0x326c3b,_0x3f86f7[_0x47e1('0x4a')],_0xf83e42,_0x443261)&&(_0x47f63b[_0x47e1('0x14')](),_0x524490={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x66')](()=>{_0x3f86f7['model'][_0x47e1('0x21')](_0x444c56[0x0],_0x444c56[0x1],_0x444c56[0x2],{'forceDefaultExecution':!0x0});const _0x1acaeb=_0x32119c(),{rowInsertionRanges:_0x390982,columnInsertionRanges:_0x3c5ae7,insertionRanges:_0x1c7295,deletionRanges:_0x41ba9a,cells:_0x3732b7}=_0x524490;_0x390982[_0x47e1('0x3')]&&_0x474843[_0x47e1('0x76')](_0x390982,_0x47e1('0x96'),{'tablePasteChainId':_0x1acaeb}),_0x3c5ae7[_0x47e1('0x3')]&&_0x474843[_0x47e1('0x76')](_0x3c5ae7,_0x47e1('0x2'),{'tablePasteChainId':_0x1acaeb}),_0x1c7295[_0x47e1('0x3')]&&_0x474843['markMultiRangeInsertion'](_0x1c7295,_0x47e1('0x98'),{'tablePasteChainId':_0x1acaeb,'skipNestingCheck':!0x0}),_0x41ba9a[_0x47e1('0x3')]&&_0x474843[_0x47e1('0x53')](_0x41ba9a,'tablePaste',{'tablePasteChainId':_0x1acaeb,'skipNestingCheck':!0x0});const _0x3a6eba=_0x474843[_0x47e1('0x9c')](_0x3732b7[_0x47e1('0x31')](({element:_0x17b477})=>_0x17b477),{'formatGroupId':_0x32119c()},[],_0x47e1('0x10'),{'tablePasteChainId':_0x1acaeb});if(_0x3a6eba){const _0x66c4a6=_0x3a6eba[_0x47e1('0x60')](),_0x2e2e55=[];for(const {element:_0x5cffd5,attributes:_0xc79d1e}of _0x3732b7){if(!_0xc79d1e)continue;const _0x5782fa=_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x45')](_0x5cffd5),_0x2c1e3b=_0x66c4a6[_0x47e1('0x65')](_0x2035ba=>_0x2035ba[_0x47e1('0x3a')]()[_0x47e1('0x55')](_0x5782fa));_0x2c1e3b&&_0x2e2e55[_0x47e1('0x57')]([_0x2c1e3b['name'],_0xc79d1e]);}_0x2e2e55[_0x47e1('0x3')]&&_0x3a6eba[_0x47e1('0x12')](_0x47e1('0x35'),Object[_0x47e1('0x8a')](_0x2e2e55));}_0x524490=null;}));},{'priority':_0x3e8157[_0x47e1('0x52')]+0xa}),_0x3f86f7[_0x47e1('0x48')][_0x47e1('0x13')](_0x47e1('0x64'))['on'](_0x47e1('0x7e'),(_0x5ef8b6,_0x73fdf7)=>{const [_0x23c6c7,_0x18b7cd,,_0x1f72b9]=_0x73fdf7;if(!_0x524490)return;_0x5ef8b6[_0x47e1('0x14')]();const _0x59082a=_0x23c6c7[_0x47e1('0x24')],_0x498ad3=_0x18b7cd,_0x3a7883=ce(_0x59082a),_0x5c137c=ce(_0x498ad3);_0x5ef8b6[_0x47e1('0x1a')]=_0x59082a;let _0x1eb836=null,_0x2d6f8f=null;if(_0x5c137c||_0x3a7883){if(_0x3a7883&&!_0x5c137c){_0x1f72b9[_0x47e1('0x4e')](_0x59082a[_0x47e1('0x1e')](0x0));for(const _0x5df523 of Array[_0x47e1('0xa')](_0x498ad3['getChildren']()))_0x1f72b9[_0x47e1('0x3b')](_0x5df523,_0x59082a,'end');const _0x507b73=_0x524490[_0x47e1('0x7b')][_0x47e1('0xa2')](_0x23c6c7[_0x47e1('0x4')]),_0x2fd2db=_0x524490[_0x47e1('0x23')]['includes'](_0x23c6c7['column']);_0x507b73||_0x2fd2db||(_0x1eb836=_0x1f72b9[_0x47e1('0x1b')](_0x59082a));}else _0x5c137c&&!_0x3a7883&&(_0x2d6f8f=_0x1f72b9[_0x47e1('0x1b')](_0x59082a));}else{const _0x3708c2=_0x1f72b9[_0x47e1('0x5a')]('tableCellSuggestion'),_0x36ae08=_0x1f72b9['createElement'](_0x47e1('0x7f'));_0x1f72b9['wrap'](_0x1f72b9[_0x47e1('0x1b')](_0x59082a),_0x36ae08),_0x1f72b9[_0x47e1('0x3b')](_0x3708c2,_0x59082a,0x0);for(const _0x2e2f1f of Array[_0x47e1('0xa')](_0x498ad3[_0x47e1('0x46')]()))_0x1f72b9['insert'](_0x2e2f1f,_0x3708c2,'end');_0x1eb836=_0x1f72b9[_0x47e1('0x45')](_0x3708c2),_0x2d6f8f=_0x1f72b9['createRangeOn'](_0x36ae08);}const _0x35bb73=Array[_0x47e1('0xa')](_0x498ad3[_0x47e1('0x42')]())['filter'](([_0x53d0ea])=>le[_0x47e1('0xa2')](_0x53d0ea));_0x524490[_0x47e1('0x6e')]['push']({'element':_0x59082a,'attributes':_0x35bb73[_0x47e1('0x3')]?Object[_0x47e1('0x8a')](_0x35bb73):null}),_0x1eb836&&_0x524490[_0x47e1('0x43')][_0x47e1('0x57')](_0x1eb836),_0x2d6f8f&&_0x524490['deletionRanges'][_0x47e1('0x57')](_0x2d6f8f);},{'priority':_0x47e1('0x52')}),_0xf83e42['on'](_0x47e1('0x27'),(_0x510dfe,_0x19e399)=>{const [_0x25af0c,_0x5e90f6={}]=_0x19e399;if(!_0x524490)return;const _0x21e9b7=_0x5e90f6['at']||0x0,_0x2c574e=_0x5e90f6['columns']||0x1;_0x524490[_0x47e1('0x23')]=new Array(_0x2c574e)[_0x47e1('0x4f')](_0x21e9b7)[_0x47e1('0x31')]((_0x2c8015,_0x49487f)=>_0x2c8015+_0x49487f);for(const {cell:_0x15540b}of _0xf83e42[_0x47e1('0x3f')](_0x25af0c,{'startColumn':_0x21e9b7,'endColumn':_0x21e9b7+_0x2c574e-0x1}))_0x524490[_0x47e1('0x8f')][_0x47e1('0x57')](_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x45')](_0x15540b));},{'priority':_0x47e1('0x6')}),_0xf83e42['on']('insertRows',(_0x313218,_0x6ccf8b)=>{const [_0x1a6675,_0x3a7b16={}]=_0x6ccf8b;if(!_0x524490)return;const _0x58cbd3=_0x3a7b16['at']||0x0,_0x323d80=_0x3a7b16[_0x47e1('0x44')]||0x1;_0x524490[_0x47e1('0x7b')]=new Array(_0x323d80)[_0x47e1('0x4f')](_0x58cbd3)[_0x47e1('0x31')]((_0x4eebeb,_0x30f510)=>_0x4eebeb+_0x30f510);for(const {cell:_0x244886}of _0xf83e42[_0x47e1('0x3f')](_0x1a6675,{'startRow':_0x58cbd3,'endRow':_0x58cbd3+_0x323d80-0x1}))_0x524490[_0x47e1('0x0')][_0x47e1('0x57')](_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x45')](_0x244886));},{'priority':_0x47e1('0x6')}),_0x474843[_0x47e1('0x6d')][_0x47e1('0x2c')](_0x173e1c=>{if(_0x173e1c[_0x47e1('0x4d')]&&_0x173e1c[_0x47e1('0x4d')][_0x47e1('0x11')](_0x47e1('0x98')))return _0x173e1c[_0x47e1('0x7d')]?{}:{'type':_0x47e1('0x6b'),'content':_0xafdc07(_0x3f86f7[_0x47e1('0xd')],_0x47e1('0x63'))};});const _0x30fb29=()=>{};for(const _0x1c6b48 of['tablePaste',_0x47e1('0x2'),'tablePasteRow',_0x47e1('0x10')])_0x474843[_0x47e1('0x82')][_0x47e1('0x93')](_0x47e1('0x6b'),_0x1c6b48,_0x47e1('0x8b'),_0x30fb29),_0x474843['_suggestionFactory'][_0x47e1('0x93')](_0x47e1('0x28'),_0x1c6b48,'join',_0x30fb29);_0x474843['_suggestionFactory'][_0x47e1('0x93')](_0x47e1('0x2b'),_0x47e1('0x10'),_0x47e1('0x69'),_0x30fb29),_0x474843[_0x47e1('0x82')][_0x47e1('0x93')](_0x47e1('0x2b'),_0x47e1('0x10'),_0x47e1('0x5'),(_0x1192d7,_0x44377b,_0x418715)=>{const _0x5e14e4=_0x1192d7[_0x47e1('0x31')](_0x338c1e=>_0x338c1e[_0x47e1('0xc')]())['filter'](_0x3d7b77=>_0x3d7b77),_0x23bd65=new Map(_0x5e14e4[_0x47e1('0x31')](_0x18c138=>[_0x18c138,null]));if(_0x524490)for(const {element:_0x214799,attributes:_0x5db7d2}of _0x524490[_0x47e1('0x6e')])_0x5db7d2&&_0x23bd65[_0x47e1('0x1f')](_0x214799,_0x5db7d2);else{if(_0x418715&&_0x418715[_0x47e1('0x35')])for(const [_0x50fc7d,_0x40fd47]of Object['entries'](_0x418715[_0x47e1('0x35')])){const _0xd49fc4=_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x7a')][_0x47e1('0x13')](_0x50fc7d),_0x16dafb=_0xd49fc4?_0xd49fc4[_0x47e1('0x3a')]()[_0x47e1('0xc')]():null;_0x16dafb&&_0x23bd65[_0x47e1('0x1f')](_0x16dafb,_0x40fd47);}}_0x3f86f7['model'][_0x47e1('0x66')](_0x2b0d0f=>{for(const [_0x3bda71,_0x2b5dc6]of _0x23bd65)_0x2b0d0f[_0x47e1('0x22')]({...ae,..._0x2b5dc6},_0x3bda71);});});const _0x2878ad=(_0x4f887b,_0x92d517)=>{_0x474843[_0x47e1('0x82')][_0x47e1('0x93')](_0x4f887b,'tablePaste',_0x92d517,(_0x1d777b,_0xef10e6,_0x19768b)=>{_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x66')](_0x359876=>{const _0x19771e=[];for(const _0x4343ca of _0x1d777b){const _0x121755=_0x4343ca[_0x47e1('0x78')]['nodeAfter'];_0x121755['is'](_0x47e1('0x88'),_0x47e1('0x7f'))&&_0x19771e[_0x47e1('0x57')](_0x121755);}_0x474843[_0x47e1('0x82')][_0x47e1('0x4c')](_0x4f887b,null,_0x92d517)(_0x1d777b,_0xef10e6,_0x19768b);for(const _0x4ead0c of _0x19771e)_0x47e1('0x90')!=_0x4ead0c['root']['rootName']&&_0x359876[_0x47e1('0x77')](_0x4ead0c);});});};_0x2878ad(_0x47e1('0x6b'),_0x47e1('0x5')),_0x2878ad(_0x47e1('0x6b'),_0x47e1('0x69')),_0x2878ad(_0x47e1('0x28'),'accept'),_0x2878ad(_0x47e1('0x28'),_0x47e1('0x69')),_0x474843[_0x47e1('0x82')][_0x47e1('0x93')](_0x47e1('0x6b'),_0x47e1('0x96'),_0x47e1('0x69'),_0x4a27f8=>{const _0x5aa7fa=_0x4a27f8[_0x47e1('0x31')](_0x493cc4=>_0x493cc4[_0x47e1('0xc')]()),_0x37d793=_0x5aa7fa[0x0][_0x47e1('0xe')](_0x47e1('0x6f')),{minRow:_0x49fbd5,maxRow:_0x87cdd5}=_0xbc6d28[_0x47e1('0x19')](_0x5aa7fa);_0xf83e42[_0x47e1('0x3d')](_0x37d793,{'at':_0x49fbd5,'rows':_0x87cdd5-_0x49fbd5+0x1});}),_0x474843[_0x47e1('0x82')]['registerCustomCallback'](_0x47e1('0x6b'),_0x47e1('0x2'),_0x47e1('0x69'),_0x42496c=>{const _0x268446=_0x42496c[_0x47e1('0x31')](_0x4911fa=>_0x4911fa['getContainedElement']()),_0x447987=_0x268446[0x0][_0x47e1('0xe')](_0x47e1('0x6f')),{minColumn:_0x497fc3,maxColumn:_0x12bfba}=_0xbc6d28[_0x47e1('0x19')](_0x268446);_0xf83e42[_0x47e1('0x9d')](_0x447987,{'at':_0x497fc3,'columns':_0x12bfba-_0x497fc3+0x1});});const _0x19e624=(_0x1da252,_0x1d3f8d)=>{if(!_0x1d3f8d[_0x47e1('0x4d')]||!_0x1d3f8d[_0x47e1('0x4d')][_0x47e1('0x11')](_0x47e1('0x98')))return;const _0x48e1ec=_0x1d3f8d[_0x47e1('0x68')][_0x47e1('0x86')],_0x4c5f3f=_0x474843[_0x47e1('0x29')]()['filter'](_0x4cf6ed=>_0x4cf6ed[_0x47e1('0x9e')]&&_0x4cf6ed['attributes']&&_0x4cf6ed[_0x47e1('0x68')][_0x47e1('0x86')]==_0x48e1ec);_0x4c5f3f[_0x47e1('0x3')]&&_0x1d3f8d['getAllAdjacentSuggestions']()[_0x47e1('0x3')]!=_0x4c5f3f[_0x47e1('0x3')]&&_0x4c5f3f[_0x47e1('0x58')]((_0x1cb8fa,_0x3e7a81)=>(_0x1cb8fa[_0x47e1('0x5b')]=_0x3e7a81,_0x3e7a81[_0x47e1('0x7d')]=_0x1cb8fa,_0x3e7a81));};function _0x22b68d(_0x1b9ed7,_0x5308a1=!0x0){const {id:_0x2dc0a7}=_0x474843[_0x47e1('0x7c')](_0x1b9ed7[_0x47e1('0x50')]),_0x3b62e3=[_0x47e1('0x2d'),'ck-suggestion-marker-insertion'],_0x2b3d1b=_0x474843['activeMarkers']['includes'](_0x1b9ed7['markerName']);return _0x2b3d1b&&_0x3b62e3[_0x47e1('0x57')](_0x47e1('0x18')),{'classes':_0x3b62e3,'attributes':{'data-suggestion':_0x2dc0a7},'priority':_0x2b3d1b&&_0x5308a1?0xbc2:0xbb8};}_0x474843['on']('suggestionLoaded',_0x19e624,{'priority':_0x47e1('0x52')}),_0x474843['on']('suggestionUnloaded',_0x19e624,{'priority':'high'}),_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x79')]['registerPostFixer'](()=>{let _0x36ba82=!0x1;const _0x27840b=Array['from'](_0x3f86f7[_0x47e1('0x4a')]['document']['differ'][_0x47e1('0x5e')]());for(const {name:_0x544bcd,data:_0xd52747}of _0x27840b){const {group:_0x400977,type:_0x10cf15,id:_0x5f3956}=_0x474843['_splitMarkerName'](_0x544bcd);if(_0x47e1('0x1')!=_0x400977||_0x47e1('0x28')!=_0x10cf15||_0xd52747[_0x47e1('0x67')])continue;if(!_0x474843[_0x47e1('0x3c')](_0x5f3956))continue;const _0x3283d8=_0x474843[_0x47e1('0x20')](_0x5f3956)['getRanges'](),_0x376996=_0x3f86f7[_0x47e1('0x48')][_0x47e1('0x13')](_0x47e1('0x9f'))['me'];for(const _0x579e9a of _0x474843[_0x47e1('0x29')]()){if(!_0x579e9a[_0x47e1('0x9e')]||_0x579e9a['author']!=_0x376996)continue;if('formatBlock'!=_0x579e9a[_0x47e1('0x71')]||'tablePasteCell'!=_0x579e9a[_0x47e1('0x4d')])continue;if(_0x579e9a[_0x47e1('0x36')]()[_0x47e1('0x40')](_0x19634d=>_0x3283d8[_0x47e1('0x1d')](_0x49ab06=>_0x49ab06['containsRange'](_0x19634d,!0x0))))for(const _0x382825 of _0x579e9a['getAllAdjacentSuggestions']())_0x382825[_0x47e1('0x9e')]&&(_0x382825['discard'](),_0x36ba82=!0x0);}}return _0x36ba82;}),_0x3f86f7[_0x47e1('0x4a')]['document']['registerPostFixer'](_0x5ba19a=>{const _0x2720a6=_0x3f86f7['commands']['get'](_0x47e1('0x9'));if(!_0x2720a6||!_0x2720a6[_0x47e1('0x38')][_0x47e1('0x6a')](_0x5ba19a[_0x47e1('0x25')]))return!0x1;let _0x2e64fb=!0x1;const _0x54516f=_0x3f86f7[_0x47e1('0x48')][_0x47e1('0x13')]('Users')['me'],_0x323673=_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x79')][_0x47e1('0x95')][_0x47e1('0x2a')](),_0x2bc9aa=Array[_0x47e1('0xa')](_0x3f86f7[_0x47e1('0x4a')]['document'][_0x47e1('0x95')][_0x47e1('0x5e')]())['filter'](({name:_0x15539f,data:_0x38635f})=>{const {group:_0x4af825,subType:_0x3ad807,authorId:_0x53737e}=_0x474843[_0x47e1('0x7c')](_0x15539f);return'suggestion'==_0x4af825&&_0x47e1('0x98')==_0x3ad807&&_0x53737e==_0x54516f['id']&&!_0x38635f[_0x47e1('0x67')];});for(const _0x5020e5 of _0x323673){if('insert'!=_0x5020e5['type']||_0x47e1('0x7f')!=_0x5020e5[_0x47e1('0x41')]||0x1!=_0x5020e5['length'])continue;const _0x455d7e=_0x5ba19a[_0x47e1('0x91')](_0x5020e5['position'],_0x5020e5[_0x47e1('0xf')][_0x47e1('0x61')](0x1));if(!_0x2bc9aa['find'](({data:_0x4e4e72})=>_0x4e4e72[_0x47e1('0x47')][_0x47e1('0x55')](_0x455d7e)))for(const {name:_0x3d7e31,data:_0x55bdef}of _0x2bc9aa)if(_0x455d7e[_0x47e1('0x34')](_0x55bdef[_0x47e1('0x47')])){_0x5ba19a['updateMarker'](_0x3d7e31,{'range':_0x455d7e}),_0x2e64fb=!0x0;break;}}return _0x2e64fb;}),_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x79')][_0x47e1('0x8')](_0x122231=>{let _0x559e47=!0x1;const _0x3e6fcd=_0x3f86f7['plugins']['get'](_0x47e1('0x9f'))['me'],_0xb885d6=_0x474843[_0x47e1('0x29')]()[_0x47e1('0x49')](_0x5ab112=>_0x5ab112['isInContent']&&_0x5ab112['author']==_0x3e6fcd),_0x24e942=new Set(),_0x2f6a80=new Set();for(const _0x3c1a76 of _0xb885d6)if(_0x47e1('0x98')==_0x3c1a76['subType'])for(const _0x4f5dae of _0x3c1a76['getMarkers']()){const _0x5ac266=_0x4f5dae[_0x47e1('0x3a')]()['getContainedElement']();if(_0x5ac266){if(_0x5ac266['is'](_0x47e1('0x88'),_0x47e1('0x7f'))&&ce(_0x5ac266)){_0x3c1a76['removeMarker'](_0x4f5dae[_0x47e1('0x41')]),_0x24e942[_0x47e1('0x7')](_0x5ac266),_0x559e47=!0x0;const _0x35730d=_0x5ac266[_0x47e1('0x72')],_0xb30c61=_0x5ac266[_0x47e1('0x17')],_0x5dc347=_0x35730d&&_0x35730d['is'](_0x47e1('0x88'),_0x47e1('0x7f')),_0x1d383e=_0xb30c61&&_0xb30c61['is']('element','tableCellSuggestion');_0x5dc347&&!_0x24e942['has'](_0x35730d)&&_0x2f6a80[_0x47e1('0x7')](_0x35730d),_0x1d383e&&!_0x24e942[_0x47e1('0x6a')](_0xb30c61)&&_0x2f6a80[_0x47e1('0x7')](_0xb30c61);}else _0x5ac266['is'](_0x47e1('0x88'),_0x47e1('0x5c'))&&_0x5ac266[_0x47e1('0x6c')]&&(_0x3c1a76[_0x47e1('0x26')](_0x4f5dae['name']),_0x559e47=!0x0);}}else{if(_0x47e1('0x10')==_0x3c1a76[_0x47e1('0x4d')]){if(!_0x3c1a76[_0x47e1('0x68')]||!_0x3c1a76[_0x47e1('0x68')][_0x47e1('0x86')])continue;const _0x1df176=_0x3c1a76['attributes'][_0x47e1('0x35')];if(_0x1df176&&Object['keys'](_0x1df176)['length'])continue;const _0x43ee1f=_0x3c1a76[_0x47e1('0x68')][_0x47e1('0x86')];let _0x2e4548=!0x0,_0x1364f8=!0x0;for(const _0x565121 of _0xb885d6)if(_0x565121[_0x47e1('0x4d')]&&_0x565121[_0x47e1('0x4d')][_0x47e1('0x11')](_0x47e1('0x98'))){if(!_0x565121[_0x47e1('0x68')]['tablePasteChainId']){_0x1364f8=!0x1;break;}if(_0x565121['id']!=_0x3c1a76['id']&&_0x565121['attributes'][_0x47e1('0x86')]==_0x43ee1f){_0x2e4548=!0x1;break;}}_0x1364f8&&_0x2e4548&&(_0x3c1a76[_0x47e1('0x2e')](),_0x559e47=!0x0);}}for(const _0x3ae28c of _0x24e942)_0x122231['remove'](_0x3ae28c);for(const _0xc827cc of _0x2f6a80)_0x122231['unwrap'](_0xc827cc);return _0x559e47;}),_0x3f86f7['conversion']['for'](_0x47e1('0x73'))[_0x47e1('0x70')]({'model':_0x47e1('0x92'),'view':(_0x683a58,_0x2324b3)=>_0x22b68d(_0x683a58),'converterPriority':'high'}),_0x3f86f7['conversion'][_0x47e1('0x99')](_0x47e1('0x8d'))[_0x47e1('0x70')]({'model':_0x47e1('0x92'),'view':(_0x3b6b5a,_0x3953c0)=>_0x3953c0['options'][_0x47e1('0x5d')]?_0x22b68d(_0x3b6b5a,!0x1):null,'converterPriority':_0x47e1('0x52')});const _0x4bd61a=_0x3f86f7[_0x47e1('0x87')]['view'];this['listenTo'](_0x4bd61a[_0x47e1('0x79')],_0x47e1('0x2f'),(_0x4e357a,_0x3c806c)=>{const _0x3a02fc=[];for(const _0x204a59 of _0x4bd61a['createRangeIn'](_0x3c806c[_0x47e1('0x8e')])['getItems']())_0x204a59['is'](_0x47e1('0x88'),_0x47e1('0x83'))&&_0x3a02fc[_0x47e1('0x57')](_0x204a59);_0x4bd61a['change'](_0x451c51=>{for(const _0x523360 of _0x3a02fc)_0x451c51[_0x47e1('0x33')](_0x451c51[_0x47e1('0x1b')](_0x523360),_0x451c51['createPositionBefore'](_0x523360)),_0x451c51['remove'](_0x523360);});});}}function ce(_0xd216df){if(_0xd216df[_0x47e1('0x6c')])return!0x0;const _0x3339d1=_0xd216df[_0x47e1('0x1e')](0x0);return _0x3339d1['is'](_0x47e1('0x88'),_0x47e1('0x5c'))&&_0x3339d1[_0x47e1('0x6c')];}function fe(_0x3552ae,_0x2bc982={},_0xf3da21){for(const {isAnchor:_0x2cf0f2,cellHeight:_0x4b5c11,cellWidth:_0x27e5a3}of _0xf3da21[_0x47e1('0x3f')](_0x3552ae,{'includeAllSlots':!0x0,..._0x2bc982}))if(!_0x2cf0f2||0x1!=_0x4b5c11||0x1!=_0x27e5a3)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xce64=['change','tableWidth','discard','model','subType','_descriptionFactory','getColumnGroupElement','formatBlock','resizeColumnWidths','markBlockFormat','accept','locale','Users','editor','handleSuggestionDescription','selection','author','resizeTableWidth','handleResizeTableWidthCommand','TableColumnResizeEditing','data','getSuggestions','enableCommand','get','getTableColumnsWidths','getAttribute','table','resizeTable','_suggestionFactory','registerDescriptionCallback','bind','commandParams','plugins','TrackChangesEditing','columnWidths','format','getContainedElement','document'];(function(_0x941ca8,_0xce64a7){const _0xa6090a=function(_0x4b738f){while(--_0x4b738f){_0x941ca8['push'](_0x941ca8['shift']());}};_0xa6090a(++_0xce64a7);}(_0xce64,0x8a));const _0xa609=function(_0x941ca8,_0xce64a7){_0x941ca8=_0x941ca8-0x0;let _0xa6090a=_0xce64[_0x941ca8];return _0xa6090a;};import{Plugin as _0x5675e1}from'ckeditor5/src/core';import{getTranslation as _0x3189a5}from'../utils/common-translations';export default class wt extends _0x5675e1{['afterInit'](){if(!this[_0xa609('0x1b')][_0xa609('0x8')]['has'](_0xa609('0x21')))return;const _0x253cc6=this[_0xa609('0x1b')][_0xa609('0x8')][_0xa609('0x25')](_0xa609('0x9'));_0x253cc6[_0xa609('0x24')](_0xa609('0x1f'),this[_0xa609('0x20')][_0xa609('0x6')](this)),_0x253cc6[_0xa609('0x24')](_0xa609('0x16'),this['handleResizeTableWidthCommand'][_0xa609('0x6')](this)),_0x253cc6['_suggestionFactory']['registerCustomCallback'](_0xa609('0x15'),_0xa609('0x3'),_0xa609('0x18'),_0x253cc6[_0xa609('0x4')]['getSuggestionCallback']('formatBlock',null,'discard')),_0x253cc6[_0xa609('0x4')]['registerCustomCallback'](_0xa609('0x15'),_0xa609('0x3'),_0xa609('0x10'),_0x253cc6[_0xa609('0x4')]['getSuggestionCallback'](_0xa609('0x15'),null,_0xa609('0x18'))),_0x253cc6[_0xa609('0x13')][_0xa609('0x5')](this[_0xa609('0x1c')][_0xa609('0x6')](this));}[_0xa609('0x20')](_0x38aa73,_0xd31a11){const _0x33a16e=this[_0xa609('0x1b')][_0xa609('0x8')]['get'](_0xa609('0x9')),_0x2e840a=this[_0xa609('0x1b')]['plugins'][_0xa609('0x25')](_0xa609('0x21')),_0x331c86=_0xd31a11[_0xa609('0x2')]||this[_0xa609('0x1b')][_0xa609('0x11')][_0xa609('0xd')][_0xa609('0x1d')]['getSelectedElement']();this[_0xa609('0x1b')]['model'][_0xa609('0xe')](()=>{const _0x1037df=_0x2e840a[_0xa609('0x14')](_0x331c86);let _0x3e65e5=_0x1037df?_0x2e840a[_0xa609('0x0')](_0x1037df):null,_0x29cc7f=_0x331c86[_0xa609('0x1')]('tableWidth')||null;const _0x5ddbff=_0xd31a11[_0xa609('0xf')]||_0x29cc7f,_0x540f4c=_0xd31a11[_0xa609('0xa')]||_0x3e65e5,_0x3d39f7=this[_0xa609('0x1b')][_0xa609('0x8')][_0xa609('0x25')](_0xa609('0x1a'))['me'];for(const _0x108cda of _0x33a16e[_0xa609('0x23')]()){const _0x5c5498=_0x108cda[_0xa609('0xc')]();if(_0xa609('0x3')===_0x108cda[_0xa609('0x12')]&&_0x5c5498===_0x331c86){_0x108cda[_0xa609('0x1e')]!==_0x3d39f7&&_0x108cda[_0xa609('0x10')]();const _0x262a6b=_0x108cda[_0xa609('0x22')][_0xa609('0x7')];_0x29cc7f=_0x262a6b[0x0][_0xa609('0xf')],_0x3e65e5=_0x262a6b[0x0][_0xa609('0xa')];break;}}_0x38aa73({'table':_0x331c86,'tableWidth':_0x5ddbff,'columnWidths':_0x540f4c}),_0x33a16e[_0xa609('0x17')](_0x331c86,{'commandName':_0xa609('0x1f'),'commandParams':[{'tableWidth':_0x29cc7f,'columnWidths':_0x3e65e5}],'formatGroupId':'resizeTable'},[],_0xa609('0x3'));});}[_0xa609('0x1c')](_0x29cc4a){const {data:_0x56ce23}=_0x29cc4a;if(_0x56ce23&&'resizeTable'===_0x56ce23['formatGroupId']){const _0x501fce='*Format:*\x20resize\x20table';return{'type':_0xa609('0xb'),'content':_0x3189a5(this[_0xa609('0x1b')][_0xa609('0x19')],_0x501fce)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a58=['downcastDispatcher','writer','_descriptionFactory','FORMAT_REGULAR_ROW','childCount','options','registerCustomCallback','addMarker:suggestion','consume','removeClass','value','_acceptFormatSuggestionCallbackFactory','editing','ck-suggestion-marker--active','consumable','setTableColumnHeader','isBefore','removeAttribute','setAttribute','TableUtils','forceValue','plugins','findAncestor','commandParams','data','locale','createPositionAfter','getChild','getAttribute','has','headingRows','commands','stop','mapper','model','ck-suggestion-marker-','markerNameToElements','createTableWalker','getColumnIndexes','format','formatBlock','last','accept','addClass','item','getRowIndexes','nodeAfter','get','TrackChangesEditing','from','change','nodeBefore','afterInit','setTableRowHeader','end','getCellLocation','cell','_suggestionFactory','*Format:*\x20%0','markerRange','bindElementToMarker','createPositionBefore','index','highest','parent','_splitMarkerName','getSuggestion','createRange','toViewElement','removeMarker:suggestion','unbindElementFromMarkerName','selection','FORMAT_HEADER_COLUMN','table','requires','commandName','editor','registerDescriptionCallback','getSelectionAffectedTableCells','data-suggestion','document','markerName','first'];(function(_0x158ad6,_0x2a58ae){const _0x59aae8=function(_0x2a8ad5){while(--_0x2a8ad5){_0x158ad6['push'](_0x158ad6['shift']());}};_0x59aae8(++_0x2a58ae);}(_0x2a58,0xbe));const _0x59aa=function(_0x158ad6,_0x2a58ae){_0x158ad6=_0x158ad6-0x0;let _0x59aae8=_0x2a58[_0x158ad6];return _0x59aae8;};import{Plugin as _0x309d54}from'ckeditor5/src/core';import _0x14006d from'./table';import{getTranslation as _0x3b9a4d}from'../utils/common-translations';export default class pt extends _0x309d54{static get[_0x59aa('0x32')](){return[_0x14006d];}[_0x59aa('0x1c')](){const _0x4345e6=this[_0x59aa('0x34')];if(!_0x4345e6['plugins'][_0x59aa('0x5')]('TableEditing'))return;const _0xdc7f6d=_0x4345e6[_0x59aa('0x1')],_0x32e8e6=_0x4345e6[_0x59aa('0x50')][_0x59aa('0x17')](_0x59aa('0x18')),_0x3543e1=_0x4345e6[_0x59aa('0x50')]['get'](_0x59aa('0x4e')),_0x38c92c=_0x4345e6[_0x59aa('0x50')]['get'](_0x14006d);function _0x4e1927({showActiveMarker:_0x10f568=!0x0,setDataAttribute:_0x2de3ca=!0x0}={}){return(_0x5aa2e9,_0x298039,_0x126df6)=>{const {type:_0x20a220,id:_0x35284d}=_0x32e8e6[_0x59aa('0x29')](_0x298039[_0x59aa('0x39')]),_0x390c14=_0x32e8e6[_0x59aa('0x2a')](_0x35284d);if(!_0x390c14[_0x59aa('0x0')]||'setTableColumnHeader'!=_0x390c14[_0x59aa('0x0')][_0x59aa('0x33')])return;if(_0x298039[_0x59aa('0x14')])return void _0x5aa2e9[_0x59aa('0x8')]();if(!_0x126df6[_0x59aa('0x49')][_0x59aa('0x43')](_0x298039[_0x59aa('0x23')],_0x5aa2e9['name']))return;const _0xba436e=_0x298039[_0x59aa('0x23')]['start'][_0x59aa('0x16')],_0x17d79f=_0x298039['markerRange'][_0x59aa('0x1e')][_0x59aa('0x1b')],_0x172338=_0xba436e[_0x59aa('0x28')]['parent'],{column:_0x11eb2f}=_0x3543e1[_0x59aa('0x1f')](_0xba436e),{column:_0x499c47}=_0x3543e1[_0x59aa('0x1f')](_0x17d79f);for(let _0xdc23e9=_0x11eb2f;_0xdc23e9<=_0x499c47;_0xdc23e9++){const _0x66bb11=_0x3543e1[_0x59aa('0xd')](_0x172338,{'column':_0xdc23e9,'includeAllSlots':!0x1});for(const _0x2dca97 of _0x66bb11){const _0x4e241a=_0x2dca97[_0x59aa('0x20')],_0x178a1a=_0x126df6[_0x59aa('0x9')][_0x59aa('0x2c')](_0x4e241a);_0x126df6['writer'][_0x59aa('0x13')](_0x59aa('0xb')+_0x20a220,_0x178a1a),_0x2de3ca&&_0x126df6[_0x59aa('0x3c')][_0x59aa('0x4d')](_0x59aa('0x37'),_0x35284d,_0x178a1a),_0x126df6[_0x59aa('0x9')][_0x59aa('0x24')](_0x178a1a,_0x298039[_0x59aa('0x39')]),_0x10f568&&(_0x32e8e6['activeMarkers']['includes'](_0x298039[_0x59aa('0x39')])?_0x126df6['writer'][_0x59aa('0x13')](_0x59aa('0x48'),_0x178a1a):_0x126df6['writer']['removeClass']('ck-suggestion-marker--active',_0x178a1a));}}};}_0x32e8e6['enableCommand'](_0x59aa('0x1d'),(_0x598b10,_0x17f142)=>{const _0x200754=_0x3543e1[_0x59aa('0x36')](_0x4345e6['model']['document'][_0x59aa('0x2f')]),_0x54da1e=_0x3543e1[_0x59aa('0x15')](_0x200754),_0x99695f=_0x200754[0x0]['findAncestor'](_0x59aa('0x31')),_0x542017=_0x99695f['getAttribute'](_0x59aa('0x6'))||0x0,_0x1b7fde=_0x17f142&&null!==_0x17f142[_0x59aa('0x4f')]?_0x17f142[_0x59aa('0x4f')]:!_0x4345e6[_0x59aa('0x7')][_0x59aa('0x17')](_0x59aa('0x1d'))[_0x59aa('0x45')],_0x1f1ad6=_0x1b7fde?_0x54da1e['last']:_0x54da1e[_0x59aa('0x3a')],_0x571573=_0x99695f[_0x59aa('0x3')](_0x1f1ad6);let _0x2df9d2;if(_0x1b7fde){const _0x264c54=_0x99695f[_0x59aa('0x3')](_0x542017);if(_0x571573[_0x59aa('0x26')]<_0x264c54['index'])return;_0x2df9d2=_0x4345e6[_0x59aa('0xa')][_0x59aa('0x2b')](_0x4345e6[_0x59aa('0xa')][_0x59aa('0x25')](_0x264c54[_0x59aa('0x3')](0x0)),_0x4345e6[_0x59aa('0xa')][_0x59aa('0x2')](_0x571573[_0x59aa('0x3')](_0x571573[_0x59aa('0x3f')]-0x1)));}else{const _0x239ac6=_0x99695f['getChild'](_0x542017-0x1);if(!_0x239ac6)return;_0x2df9d2=_0x4345e6[_0x59aa('0xa')][_0x59aa('0x2b')](_0x4345e6[_0x59aa('0xa')][_0x59aa('0x25')](_0x571573[_0x59aa('0x3')](0x0)),_0x4345e6[_0x59aa('0xa')][_0x59aa('0x2')](_0x239ac6[_0x59aa('0x3')](_0x239ac6[_0x59aa('0x3f')]-0x1)));}_0x4345e6['model']['change'](()=>{_0x32e8e6['markBlockFormat'](_0x2df9d2,{'commandName':_0x59aa('0x1d'),'commandParams':[{'forceValue':_0x1b7fde}]},[],'setTableRowHeader');});}),_0x32e8e6['enableCommand']('setTableColumnHeader',(_0x5e2586,_0x58daf3)=>{const _0x58cd27=_0x4345e6[_0x59aa('0x50')][_0x59aa('0x17')](_0x59aa('0x4e')),_0x1796ba=_0x58cd27[_0x59aa('0x36')](_0x4345e6[_0x59aa('0xa')][_0x59aa('0x38')][_0x59aa('0x2f')]),_0x4b6617=_0x58cd27[_0x59aa('0xe')](_0x1796ba),_0x72678=_0x1796ba[0x0][_0x59aa('0x51')]('table'),_0x4ed47c=_0x72678[_0x59aa('0x4')]('headingColumns')||0x0,_0x2d0267=_0x58daf3&&null!==_0x58daf3[_0x59aa('0x4f')]?_0x58daf3['forceValue']:!_0x4345e6[_0x59aa('0x7')][_0x59aa('0x17')]('setTableColumnHeader')[_0x59aa('0x45')];let _0x306379;const _0x5f25ee=_0x72678[_0x59aa('0x3')](0x0),_0x5e092b=_0x2d0267?_0x4b6617[_0x59aa('0x11')]:_0x4b6617[_0x59aa('0x3a')],_0x40ca0a=_0x58cd27[_0x59aa('0xd')](_0x72678,{'startRow':0x0,'column':_0x5e092b,'includeAllSlots':!0x1}),_0x559579=Array[_0x59aa('0x19')](_0x40ca0a)[0x0][_0x59aa('0x20')];if(_0x2d0267){const _0x2a4bed=_0x5f25ee['getChild'](_0x4ed47c);if(_0x559579[_0x59aa('0x4b')](_0x2a4bed))return;_0x306379=_0x4345e6[_0x59aa('0xa')][_0x59aa('0x2b')](_0x4345e6[_0x59aa('0xa')][_0x59aa('0x25')](_0x2a4bed),_0x4345e6[_0x59aa('0xa')][_0x59aa('0x2')](_0x559579));}else{const _0x23096a=_0x5f25ee[_0x59aa('0x3')](_0x4ed47c-0x1);if(!_0x23096a)return;_0x306379=_0x4345e6[_0x59aa('0xa')]['createRange'](_0x4345e6[_0x59aa('0xa')][_0x59aa('0x25')](_0x559579),_0x4345e6[_0x59aa('0xa')][_0x59aa('0x2')](_0x23096a));}_0x4345e6[_0x59aa('0xa')][_0x59aa('0x1a')](()=>{_0x32e8e6['markBlockFormat'](_0x306379,{'commandName':_0x59aa('0x4a'),'commandParams':[{'forceValue':_0x2d0267}]},[],_0x59aa('0x4a'));});}),_0x4345e6[_0x59aa('0x47')][_0x59aa('0x3b')]['on'](_0x59aa('0x42'),_0x4e1927(),{'priority':_0x59aa('0x27')}),_0x4345e6['data'][_0x59aa('0x3b')]['on']('addMarker:suggestion',(_0x46d977,_0x2bc4a2,_0x1e51da)=>{_0x1e51da[_0x59aa('0x40')]['showSuggestionHighlights']&&_0x4e1927({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x46d977,_0x2bc4a2,_0x1e51da);},{'priority':_0x59aa('0x27')}),_0x4345e6[_0x59aa('0x47')][_0x59aa('0x3b')]['on'](_0x59aa('0x2d'),(_0x46d999,_0x2e3eb0,_0x54db51)=>{const {type:_0x19c8aa,id:_0xeb79a5}=_0x32e8e6['_splitMarkerName'](_0x2e3eb0[_0x59aa('0x39')]),_0x515a91=_0x32e8e6[_0x59aa('0x2a')](_0xeb79a5);if(!_0x515a91[_0x59aa('0x0')]||_0x59aa('0x4a')!=_0x515a91[_0x59aa('0x0')]['commandName'])return;const _0x18a9b2=_0x54db51['mapper'][_0x59aa('0xc')](_0x2e3eb0['markerName']);if(_0x18a9b2)for(const _0x3be81a of _0x18a9b2)_0x54db51[_0x59aa('0x3c')][_0x59aa('0x44')](_0x59aa('0xb')+_0x19c8aa,_0x3be81a),_0x54db51['writer'][_0x59aa('0x44')](_0x59aa('0x48'),_0x3be81a),_0x54db51[_0x59aa('0x3c')][_0x59aa('0x4c')](_0x59aa('0x37'),_0x3be81a),_0x54db51['mapper'][_0x59aa('0x2e')](_0x3be81a,_0x2e3eb0[_0x59aa('0x39')]);},{'priority':_0x59aa('0x27')}),_0x32e8e6[_0x59aa('0x3d')][_0x59aa('0x35')](_0x8f2c04=>{const {data:_0x243dd9}=_0x8f2c04;if(_0x243dd9){if(_0x59aa('0x1d')==_0x243dd9[_0x59aa('0x33')]){const _0x4d9e96=_0x243dd9[_0x59aa('0x52')][0x0][_0x59aa('0x4f')];return _0x1254c4(_0x3b9a4d(_0xdc7f6d,_0x4d9e96?'FORMAT_HEADER_ROW':_0x59aa('0x3e')));}if('setTableColumnHeader'==_0x243dd9[_0x59aa('0x33')]){const _0x56160b=_0x243dd9[_0x59aa('0x52')][0x0]['forceValue'];return _0x1254c4(_0x3b9a4d(_0xdc7f6d,_0x56160b?_0x59aa('0x30'):'FORMAT_REGULAR_COLUMN'));}}function _0x1254c4(_0x35a134){return{'type':_0x59aa('0xf'),'content':_0x3b9a4d(_0xdc7f6d,_0x59aa('0x22'),_0x35a134)};}});const _0x5960c2=_0x38c92c[_0x59aa('0x46')]();_0x32e8e6[_0x59aa('0x21')][_0x59aa('0x41')](_0x59aa('0x10'),_0x59aa('0x1d'),'accept',_0x5960c2),_0x32e8e6[_0x59aa('0x21')]['registerCustomCallback'](_0x59aa('0x10'),_0x59aa('0x4a'),_0x59aa('0x12'),_0x5960c2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1106=['getAncestors','low','find','enableCommand','mergeTableCellUp','plugins','*Merge\x20cells*','commandName','containsRange','detach','direction','_areSelectedCellsMergable','TableEditing','getSuggestions','insertion','registerDescriptionCallback','mergeTableCellLeft','TableUtils','filter','isInContent','length','setSelection','execute','set:isEnabled','getRanges','cell','getSelectionAffectedTableCells','editor','fromRange','_descriptionFactory','getFirstPosition','$graveyard','model','tableCell','markMultiRangeBlockFormat','add','findAncestor','value','change','isEnabled','registerCustomCallback','requires','splitTableCellHorizontally','afterInit','createRangeOn','refresh','mergeTableCells','document','subType','root','stop','size','commands','splitTableCellVertically','deletion','markBlockFormat','author','locale','selection','_isForcedDefaultExecutionBlock','table','trackChanges','get','mergeTableCellDown','*Split\x20cell:*\x20vertically','map','accept','from','element','push','format','TrackChangesEditing','type','_areMergableCells','rootName','has','formatBlock','_suggestionFactory','mergeTableCellRight'];(function(_0x1ff3e8,_0x1106a4){const _0x2c61cf=function(_0x1f60b9){while(--_0x1f60b9){_0x1ff3e8['push'](_0x1ff3e8['shift']());}};_0x2c61cf(++_0x1106a4);}(_0x1106,0xea));const _0x2c61=function(_0x1ff3e8,_0x1106a4){_0x1ff3e8=_0x1ff3e8-0x0;let _0x2c61cf=_0x1106[_0x1ff3e8];return _0x2c61cf;};import{Plugin as _0xb72da2}from'ckeditor5/src/core';import _0x3b47bc from'./table';import{LiveRange as _0x105eb0}from'ckeditor5/src/engine';import{getTranslation as _0x4d7d8d}from'../utils/common-translations';export default class dt extends _0xb72da2{static get[_0x2c61('0x2c')](){return[_0x3b47bc];}[_0x2c61('0x2e')](){const _0x466fed=this[_0x2c61('0x1e')],_0x33c004=_0x466fed[_0x2c61('0x23')][_0x2c61('0x32')][_0x2c61('0x3d')],_0x238068=_0x466fed[_0x2c61('0x3c')];if(!_0x466fed[_0x2c61('0x8')]['has'](_0x2c61('0xf')))return;const _0x4b5ed3=_0x466fed['plugins']['get']('TrackChangesEditing'),_0x1fc994=_0x466fed[_0x2c61('0x8')][_0x2c61('0x41')](_0x2c61('0x14')),_0x19a605=_0x466fed['plugins'][_0x2c61('0x41')](_0x3b47bc);_0x19a605['_tablePostFixingSubtypes'][_0x2c61('0x48')](_0x2c61('0x31')),_0x4b5ed3['enableCommand'](_0x2c61('0x31'),()=>{const _0x1d5d62=_0x1fc994[_0x2c61('0x1d')](_0x466fed['model']['document'][_0x2c61('0x3d')]);_0x466fed[_0x2c61('0x23')]['change'](()=>{_0x4b5ed3[_0x2c61('0x25')](_0x1d5d62,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x466fed[_0x2c61('0x37')][_0x2c61('0x41')](_0x2c61('0x31'))['on']('execute',(_0x4d55e8,_0x12a5b6)=>{_0x466fed[_0x2c61('0x37')][_0x2c61('0x41')](_0x2c61('0x40'))[_0x2c61('0x28')]&&(_0x12a5b6[_0x2c61('0x17')]>0x0&&_0x12a5b6[_0x12a5b6['length']-0x1]&&_0x12a5b6[_0x12a5b6['length']-0x1]['forceDefaultExecution']||_0x4b5ed3[_0x2c61('0x3e')]||this[_0x2c61('0xe')]()||_0x4d55e8[_0x2c61('0x35')]());},{'priority':'highest'});for(const _0x1c6634 of[_0x2c61('0x7'),_0x2c61('0x2'),'mergeTableCellDown','mergeTableCellLeft']){const _0x487509=_0x466fed[_0x2c61('0x37')][_0x2c61('0x41')](_0x1c6634);_0x4b5ed3[_0x2c61('0x6')](_0x1c6634,()=>{const _0x35f2d7=_0x466fed[_0x2c61('0x23')]['document']['selection'][_0x2c61('0x21')]()[_0x2c61('0x3')]()[_0x2c61('0x5')](_0x22f144=>_0x22f144['is']('element','tableCell')),_0x2844f6=_0x487509[_0x2c61('0x28')];_0x466fed[_0x2c61('0x23')]['change'](()=>{_0x4b5ed3[_0x2c61('0x25')]([_0x35f2d7,_0x2844f6],{'commandName':_0x2c61('0x31'),'commandParams':[]},[],_0x2c61('0x31'));});});}for(const _0x2747a2 of[_0x2c61('0x38'),_0x2c61('0x2d')]){const _0x2a1192=_0x466fed[_0x2c61('0x37')][_0x2c61('0x41')](_0x2747a2);_0x4b5ed3[_0x2c61('0x6')](_0x2747a2,()=>{const _0x4249c1=_0x1fc994[_0x2c61('0x1d')](_0x466fed[_0x2c61('0x23')][_0x2c61('0x32')][_0x2c61('0x3d')])[0x0],_0x35adad=_0x4249c1[_0x2c61('0x27')](_0x2c61('0x3f')),{column:_0x5b1f8a,row:_0x15a032}=_0x1fc994['getCellLocation'](_0x4249c1);let _0x1d6261=[];if('horizontally'==_0x2a1192[_0x2c61('0xd')]){const _0x4bee74=_0x1fc994['createTableWalker'](_0x35adad,{'startRow':_0x15a032,'endRow':_0x15a032,'includeAllSlots':!0x0});_0x1d6261=Array[_0x2c61('0x46')](_0x4bee74)[_0x2c61('0x44')](_0x2051cd=>_0x2051cd[_0x2c61('0x1c')]);}else{const _0x23628a=_0x1fc994['createTableWalker'](_0x35adad,{'column':_0x5b1f8a,'includeAllSlots':!0x0});_0x1d6261=Array[_0x2c61('0x46')](_0x23628a)[_0x2c61('0x44')](_0x15c50a=>_0x15c50a[_0x2c61('0x1c')]);}_0x466fed[_0x2c61('0x23')][_0x2c61('0x29')](_0x55909f=>{_0x4b5ed3[_0x2c61('0x3a')](_0x55909f[_0x2c61('0x2f')](_0x4249c1),{'commandName':_0x2747a2,'commandParams':[]},_0x1d6261,_0x2747a2);});});}_0x4b5ed3['_descriptionFactory']['registerDescriptionCallback'](_0x1a12b5=>{const {data:_0xf8ae4a}=_0x1a12b5;if(_0xf8ae4a)return'mergeTableCells'==_0xf8ae4a[_0x2c61('0xa')]?{'type':_0x2c61('0x49'),'content':_0x4d7d8d(_0x238068,_0x2c61('0x9'))}:void 0x0;}),_0x4b5ed3[_0x2c61('0x20')][_0x2c61('0x12')](_0x1f3c5f=>{const {data:_0xf59995}=_0x1f3c5f;if(_0xf59995)return _0x2c61('0x38')==_0xf59995[_0x2c61('0xa')]?{'type':_0x2c61('0x49'),'content':_0x4d7d8d(_0x238068,_0x2c61('0x43'))}:_0x2c61('0x2d')==_0xf59995[_0x2c61('0xa')]?{'type':_0x2c61('0x49'),'content':_0x4d7d8d(_0x238068,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x13124b=_0x19a605['_acceptFormatSuggestionCallbackFactory']();for(const _0x172ee7 of['mergeTableCellUp',_0x2c61('0x2'),_0x2c61('0x42'),_0x2c61('0x13')])_0x4b5ed3[_0x2c61('0x1')]['registerCustomCallback'](_0x2c61('0x0'),_0x172ee7,_0x2c61('0x45'),_0x13124b);for(const _0x57ea64 of[_0x2c61('0x38'),'splitTableCellHorizontally'])_0x4b5ed3[_0x2c61('0x1')][_0x2c61('0x2b')](_0x2c61('0x0'),_0x57ea64,_0x2c61('0x45'),_0x13124b);_0x4b5ed3[_0x2c61('0x1')][_0x2c61('0x2b')]('formatBlock',_0x2c61('0x31'),_0x2c61('0x45'),_0x86639c=>{_0x466fed[_0x2c61('0x23')][_0x2c61('0x29')](_0x39b43d=>{const _0x7b161a=Array[_0x2c61('0x46')](_0x33c004['getRanges']())[_0x2c61('0x44')](_0x18e123=>_0x105eb0[_0x2c61('0x1f')](_0x18e123));_0x39b43d[_0x2c61('0x18')](_0x86639c),_0x466fed[_0x2c61('0x37')]['get'](_0x2c61('0x31'))[_0x2c61('0x30')](),_0x466fed[_0x2c61('0x19')](_0x2c61('0x31'),{'forceDefaultExecution':!0x0});const _0x3f8806=_0x7b161a[_0x2c61('0x15')](_0x35e175=>_0x2c61('0x22')!=_0x35e175[_0x2c61('0x34')][_0x2c61('0x4d')]);_0x3f8806[_0x2c61('0x17')]>0x0&&_0x39b43d[_0x2c61('0x18')](_0x3f8806);for(const _0x2b83b3 of _0x7b161a)_0x2b83b3[_0x2c61('0xc')]();});});for(const _0x30d388 of[_0x2c61('0x7'),'mergeTableCellDown',_0x2c61('0x13'),_0x2c61('0x2')]){const _0x2fdbf2=_0x466fed[_0x2c61('0x37')][_0x2c61('0x41')](_0x30d388);_0x2fdbf2['on'](_0x2c61('0x1a'),(_0x3123ce,_0x41044f,_0x4484b0)=>{if(_0x4484b0){const _0x20a2d3=_0x466fed[_0x2c61('0x23')][_0x2c61('0x32')][_0x2c61('0x3d')][_0x2c61('0x21')]()[_0x2c61('0x3')]()[_0x2c61('0x5')](_0x2159c7=>_0x2159c7['is'](_0x2c61('0x47'),_0x2c61('0x24')));this[_0x2c61('0x4c')](_0x2fdbf2['value'],_0x20a2d3)||(_0x3123ce['return']=!0x1,_0x3123ce[_0x2c61('0x35')]());}},{'priority':_0x2c61('0x4')});}}['_areSelectedCellsMergable'](){const _0xd1e86b=this['editor'][_0x2c61('0x37')]['get'](_0x2c61('0x31')),_0x3e57b2=this[_0x2c61('0x1e')][_0x2c61('0x8')][_0x2c61('0x41')](_0x2c61('0x14'));if(!_0xd1e86b[_0x2c61('0x2a')])return!0x1;const _0x4d5a92=_0x3e57b2[_0x2c61('0x1d')](this[_0x2c61('0x1e')][_0x2c61('0x23')][_0x2c61('0x32')][_0x2c61('0x3d')]);for(const _0x494b91 of _0x4d5a92)for(const _0xecad0d of _0x4d5a92)if(_0x494b91!=_0xecad0d&&!this[_0x2c61('0x4c')](_0x494b91,_0xecad0d))return!0x1;return!0x0;}[_0x2c61('0x4c')](_0x3a8b0e,_0x2d4fe0){const _0x5ec06c=this['editor'][_0x2c61('0x8')]['get'](_0x2c61('0x4a')),_0x4e0ab9=this[_0x2c61('0x1e')][_0x2c61('0x23')][_0x2c61('0x2f')](_0x3a8b0e),_0x52204b=this[_0x2c61('0x1e')][_0x2c61('0x23')][_0x2c61('0x2f')](_0x2d4fe0),_0x20b8cc=new Set(),_0x180c00=new Set();for(const _0x1a8087 of _0x5ec06c[_0x2c61('0x10')]())if((_0x2c61('0x11')==_0x1a8087[_0x2c61('0x4b')]||_0x2c61('0x39')==_0x1a8087[_0x2c61('0x4b')]||_0x2c61('0x31')==_0x1a8087[_0x2c61('0x33')])&&_0x1a8087[_0x2c61('0x16')])for(const _0x549b3a of _0x1a8087[_0x2c61('0x1b')]())_0x549b3a['containsRange'](_0x4e0ab9,!0x0)&&_0x20b8cc[_0x2c61('0x26')](_0x1a8087['type']+':'+_0x1a8087[_0x2c61('0x3b')]['id']),_0x549b3a[_0x2c61('0xb')](_0x52204b,!0x0)&&_0x180c00[_0x2c61('0x26')](_0x1a8087['type']+':'+_0x1a8087['author']['id']);if(_0x20b8cc['size']!=_0x180c00[_0x2c61('0x36')])return!0x1;for(const _0x29d600 of _0x20b8cc)if(!_0x180c00[_0x2c61('0x4e')](_0x29d600))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b3a=['_descriptionFactory','plugins','get','locale','insertTableOfContents','afterInit','registerElementLabel','TrackChangesEditing','commands','enableCommand','ELEMENT_TABLE_OF_CONTENTS'];(function(_0x3b47a4,_0x4b3a09){const _0x14561d=function(_0x3abca4){while(--_0x3abca4){_0x3b47a4['push'](_0x3b47a4['shift']());}};_0x14561d(++_0x4b3a09);}(_0x4b3a,0x15d));const _0x1456=function(_0x3b47a4,_0x4b3a09){_0x3b47a4=_0x3b47a4-0x0;let _0x14561d=_0x4b3a[_0x3b47a4];return _0x14561d;};import{Plugin as _0x584b2c}from'ckeditor5/src/core';import{getTranslation as _0x40c45c}from'../utils/common-translations';export default class bt extends _0x584b2c{[_0x1456('0x8')](){const _0xf224c6=this['editor'];if(!_0xf224c6[_0x1456('0x0')][_0x1456('0x5')]('insertTableOfContents'))return;_0xf224c6[_0x1456('0x4')][_0x1456('0x5')]('TrackChangesEditing')[_0x1456('0x1')](_0x1456('0x7'));const _0x34f5be=_0xf224c6[_0x1456('0x4')][_0x1456('0x5')](_0x1456('0xa')),_0x4deb17=_0xf224c6[_0x1456('0x6')];_0x34f5be[_0x1456('0x3')][_0x1456('0x9')]('tableOfContents',_0x4370ef=>_0x40c45c(_0x4deb17,_0x1456('0x2'),_0x4370ef));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcdc5=['_suggestionFactory','TrackChangesTableProperties','TrackChangesEditing','getSelectionAffectedTableCells','*Format:*\x20change\x20table\x20cell\x20properties','editor','subType','TableCellPropertiesEditing','tableCellBorderColor','markBlockFormat','document','_handlePropertyChange','plugins','tableCellHorizontalAlignment','_descriptionFactory','getSuggestions','_getSuggestion','tableHeight','join','data','handleDiscardAction','tableBorderWidth','pluginName','tableCellBorderWidth','has','getFirstPosition','locale','tableCellBorderStyle','removeAttribute','enqueueChange','selection','tableProperties','formatBlock','enableCommand','registerCustomCallback','getAttribute','getSuggestionCallback','tableBackgroundColor','registerDescriptionCallback','afterInit','batch','get','model','start','discard','*Format:*\x20change\x20table\x20properties','tableCellWidth','setAttribute','tableCellBackgroundColor','tableCellProperties','tableBorderStyle','handleSuggestionDescription','tableCellHeight','TableUtils','TablePropertiesEditing','accept','format','tableCellPadding'];(function(_0x2a5df8,_0xcdc594){const _0x313eb8=function(_0x4a3b1c){while(--_0x4a3b1c){_0x2a5df8['push'](_0x2a5df8['shift']());}};_0x313eb8(++_0xcdc594);}(_0xcdc5,0x116));const _0x313e=function(_0x2a5df8,_0xcdc594){_0x2a5df8=_0x2a5df8-0x0;let _0x313eb8=_0xcdc5[_0x2a5df8];return _0x313eb8;};import{Plugin as _0x356151}from'ckeditor5/src/core';import{getTranslation as _0x1a38da}from'../utils/common-translations';export default class Ct extends _0x356151{constructor(_0x5ee155){super(_0x5ee155),this[_0x313e('0x2b')]=['tableBorderColor',_0x313e('0x4'),_0x313e('0x21'),'tableAlignment','tableWidth',_0x313e('0x1d'),_0x313e('0x31')],this['tableCellProperties']=[_0x313e('0x14'),_0x313e('0x27'),_0x313e('0x23'),_0x313e('0xb'),_0x313e('0x0'),_0x313e('0x6'),_0x313e('0x2'),_0x313e('0x19'),'tableCellVerticalAlignment'];}static get[_0x313e('0x22')](){return _0x313e('0xd');}[_0x313e('0x33')](){const _0x2664ff=this['editor'][_0x313e('0x18')][_0x313e('0x35')](_0x313e('0xe'));if(this[_0x313e('0x11')][_0x313e('0x18')][_0x313e('0x24')](_0x313e('0x8'))){for(const _0x63d805 of this[_0x313e('0x2b')])_0x2664ff[_0x313e('0x2d')](_0x63d805,(_0x5ac207,_0x2b19a6)=>{const _0x3d75a8=this['editor'][_0x313e('0x36')]['document'][_0x313e('0x2a')][_0x313e('0x25')]()['findAncestor']('table');this[_0x313e('0x17')](_0x63d805,[_0x3d75a8],this[_0x313e('0x2b')],_0x313e('0x2b'),_0x5ac207,_0x2b19a6);});_0x2664ff[_0x313e('0xc')]['registerCustomCallback'](_0x313e('0x2c'),_0x313e('0x2b'),'accept',_0x2664ff[_0x313e('0xc')][_0x313e('0x30')](_0x313e('0x2c'),null,_0x313e('0x38'))),_0x2664ff['_suggestionFactory'][_0x313e('0x2e')](_0x313e('0x2c'),_0x313e('0x2b'),_0x313e('0x38'),(_0x368bea,_0x5146d0)=>this[_0x313e('0x20')](this[_0x313e('0x2b')],_0x368bea,_0x5146d0)),_0x2664ff[_0x313e('0xc')][_0x313e('0x2e')](_0x313e('0x2c'),_0x313e('0x2b'),'join',()=>!0x1);}if(this[_0x313e('0x11')][_0x313e('0x18')][_0x313e('0x24')](_0x313e('0x13'))){for(const _0x11153e of this['tableCellProperties'])_0x2664ff[_0x313e('0x2d')](_0x11153e,(_0x19669d,_0x2aeee)=>{const _0x33de5a=this['editor']['plugins'][_0x313e('0x35')](_0x313e('0x7'))[_0x313e('0xf')](this[_0x313e('0x11')][_0x313e('0x36')][_0x313e('0x16')][_0x313e('0x2a')]);this[_0x313e('0x17')](_0x11153e,_0x33de5a,this[_0x313e('0x3')],_0x313e('0x3'),_0x19669d,_0x2aeee);});_0x2664ff[_0x313e('0xc')][_0x313e('0x2e')](_0x313e('0x2c'),_0x313e('0x3'),_0x313e('0x9'),_0x2664ff[_0x313e('0xc')]['getSuggestionCallback'](_0x313e('0x2c'),null,_0x313e('0x38'))),_0x2664ff[_0x313e('0xc')][_0x313e('0x2e')](_0x313e('0x2c'),'tableCellProperties','discard',(_0x226985,_0x4ceadf)=>this['handleDiscardAction'](this[_0x313e('0x3')],_0x226985,_0x4ceadf)),_0x2664ff['_suggestionFactory'][_0x313e('0x2e')](_0x313e('0x2c'),_0x313e('0x3'),_0x313e('0x1e'),()=>!0x1);}_0x2664ff[_0x313e('0x1a')][_0x313e('0x32')](_0x5e0f7e=>this[_0x313e('0x5')](_0x5e0f7e));}[_0x313e('0x17')](_0x3958e8,_0x33f083,_0x11b3a4,_0x53decb,_0x5dd2f7,_0x33d252){const _0x2f8d98=this[_0x313e('0x11')][_0x313e('0x18')][_0x313e('0x35')](_0x313e('0xe'));this['editor'][_0x313e('0x36')][_0x313e('0x29')](_0x33d252[_0x313e('0x34')],()=>{for(const _0x4228d3 of _0x33f083){if(this['_getSuggestion'](_0x4228d3,_0x53decb))_0x5dd2f7(_0x33d252);else{const _0x182c0d={};for(const _0x20a50c of _0x11b3a4){const _0x52e245=_0x4228d3[_0x313e('0x2f')](_0x20a50c);void 0x0!==_0x52e245&&(_0x182c0d[_0x20a50c]=_0x52e245);}_0x5dd2f7(_0x33d252),_0x2f8d98[_0x313e('0x15')](_0x4228d3,{'commandParams':[_0x182c0d]},[],_0x53decb);}}});}['handleDiscardAction'](_0x4f9b4f,_0x4cf875,_0x442ef5){const _0x46e412=_0x4cf875[0x0][_0x313e('0x37')]['nodeAfter'],_0x2d7834=_0x442ef5['commandParams'][0x0];this[_0x313e('0x11')]['model']['change'](_0x5593d2=>{for(const _0x373b17 of _0x4f9b4f)void 0x0!==_0x2d7834[_0x373b17]?_0x5593d2[_0x313e('0x1')](_0x373b17,_0x2d7834[_0x373b17],_0x46e412):_0x5593d2[_0x313e('0x28')](_0x373b17,_0x46e412);});}[_0x313e('0x5')](_0x5025c2){if(_0x5025c2[_0x313e('0x1f')])switch(_0x5025c2[_0x313e('0x12')]){case _0x313e('0x2b'):return{'type':_0x313e('0xa'),'content':_0x1a38da(this['editor']['locale'],_0x313e('0x39'))};case'tableCellProperties':return{'type':'format','content':_0x1a38da(this[_0x313e('0x11')][_0x313e('0x26')],_0x313e('0x10'))};}}[_0x313e('0x1c')](_0x14abda,_0xadcfe2){const _0x288340=this['editor']['plugins']['get'](_0x313e('0xe'));for(const _0xfdff89 of _0x288340[_0x313e('0x1b')]({'skipNotAttached':!0x0})){const _0x20c26d=_0xfdff89['getContainedElement']();if(_0xfdff89[_0x313e('0x12')]===_0xadcfe2&&_0x20c26d===_0x14abda)return _0xfdff89;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4080=['get','afterInit','Template','has','insertTemplate','editor','enableCommand','plugins','TrackChangesEditing'];(function(_0x12c15f,_0x408050){const _0xb9f1dd=function(_0x455498){while(--_0x455498){_0x12c15f['push'](_0x12c15f['shift']());}};_0xb9f1dd(++_0x408050);}(_0x4080,0xb2));const _0xb9f1=function(_0x12c15f,_0x408050){_0x12c15f=_0x12c15f-0x0;let _0xb9f1dd=_0x4080[_0x12c15f];return _0xb9f1dd;};import{Plugin as _0x410538}from'ckeditor5/src/core';export default class yt extends _0x410538{[_0xb9f1('0x3')](){const _0x5f36d7=this[_0xb9f1('0x7')];_0x5f36d7[_0xb9f1('0x0')][_0xb9f1('0x5')](_0xb9f1('0x4'))&&_0x5f36d7[_0xb9f1('0x0')][_0xb9f1('0x2')](_0xb9f1('0x1'))[_0xb9f1('0x8')](_0xb9f1('0x6'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d90=['start','differ','Title','get','registerElementLabel','TrackChangesEditing','newRange','_descriptionFactory','isTouching','element','getChangedMarkers','editor','has','createRange','model','getNearestSelectionRange','title-content','from','end','schema','forward','isEqual','document','suggestion','plugins'];(function(_0x3db2d8,_0x1d90d4){const _0x4c722d=function(_0x50e9e2){while(--_0x50e9e2){_0x3db2d8['push'](_0x3db2d8['shift']());}};_0x4c722d(++_0x1d90d4);}(_0x1d90,0x167));const _0x4c72=function(_0x3db2d8,_0x1d90d4){_0x3db2d8=_0x3db2d8-0x0;let _0x4c722d=_0x1d90[_0x3db2d8];return _0x4c722d;};import{Plugin as _0x4a7ff8}from'ckeditor5/src/core';import{getTranslation as _0x216327}from'../utils/common-translations';export default class St extends _0x4a7ff8{['afterInit'](){const _0x31113c=this[_0x4c72('0x2')];if(!_0x31113c[_0x4c72('0xf')][_0x4c72('0x3')](_0x4c72('0x12')))return;const _0x12171a=_0x31113c[_0x4c72('0xf')][_0x4c72('0x13')](_0x4c72('0x15'));_0x12171a[_0x4c72('0x17')][_0x4c72('0x14')]('title-content',()=>_0x216327(_0x31113c['locale'],'ELEMENT_TITLE')),_0x31113c[_0x4c72('0x5')][_0x4c72('0xd')]['registerPostFixer'](_0x303531=>{let _0x56e65d=!0x1;const _0x2e7730=Array[_0x4c72('0x8')](_0x31113c[_0x4c72('0x5')][_0x4c72('0xd')][_0x4c72('0x11')][_0x4c72('0x1')]());for(const {name:_0x52249d,data:_0x1997f1}of _0x2e7730){const {group:_0x27abd8}=_0x12171a['_splitMarkerName'](_0x52249d);if(_0x4c72('0xe')!==_0x27abd8||!_0x1997f1[_0x4c72('0x16')])continue;const _0x5f47e7=_0x1997f1[_0x4c72('0x16')],_0x41f4c8=_0x5f47e7[_0x4c72('0x9')]['nodeBefore'];if(!_0x41f4c8||!_0x41f4c8['is'](_0x4c72('0x0'),_0x4c72('0x7')))continue;if(!_0x5f47e7[_0x4c72('0x10')][_0x4c72('0x18')](_0x5f47e7[_0x4c72('0x9')]))continue;const _0x39695f=_0x31113c[_0x4c72('0x5')][_0x4c72('0xa')][_0x4c72('0x6')](_0x5f47e7[_0x4c72('0x9')],_0x4c72('0xb'));if(_0x39695f&&_0x39695f['isCollapsed']){const _0x52216a=_0x303531[_0x4c72('0x4')](_0x5f47e7['start'],_0x39695f[_0x4c72('0x10')]);_0x52216a[_0x4c72('0xc')](_0x5f47e7)||(_0x303531['updateMarker'](_0x52249d,{'range':_0x52216a}),_0x56e65d=!0x0);}_0x56e65d||(_0x303531['removeMarker'](_0x52249d),_0x56e65d=!0x0);}return _0x56e65d;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32a1=['TrackChangesEditing','afterInit','plugins','redo','undo','editor','get','has','UndoEditing','enableCommand'];(function(_0x2b9a58,_0x32a15f){const _0x6b5eb8=function(_0x51873d){while(--_0x51873d){_0x2b9a58['push'](_0x2b9a58['shift']());}};_0x6b5eb8(++_0x32a15f);}(_0x32a1,0x11b));const _0x6b5e=function(_0x2b9a58,_0x32a15f){_0x2b9a58=_0x2b9a58-0x0;let _0x6b5eb8=_0x32a1[_0x2b9a58];return _0x6b5eb8;};import{Plugin as _0x15c95f}from'ckeditor5/src/core';export default class It extends _0x15c95f{[_0x6b5e('0x8')](){const _0x22719e=this[_0x6b5e('0x2')],_0x44e0b0=_0x22719e[_0x6b5e('0x9')][_0x6b5e('0x3')](_0x6b5e('0x7'));_0x22719e[_0x6b5e('0x9')][_0x6b5e('0x4')](_0x6b5e('0x5'))&&(_0x44e0b0[_0x6b5e('0x6')](_0x6b5e('0x1')),_0x44e0b0[_0x6b5e('0x6')](_0x6b5e('0x0')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e59=['name','schema','activeMarkers','element','addClass','elementEnd','getItems','plugins','isBlock','consumable','start','get','listIndent','listItem','test','ck-suggestion-marker--active','item','toViewPosition','previousPosition','mapper','isContent','isAtEnd','writer','parent','addHighlight','hasAttribute','getWalker','nextSibling','markerName','markerRange','createRangeOn','isLimit','ck-suggestion-marker-','includes','getAttribute','push','bindElementToMarker','insert','createUIElement','TrackChangesEditing'];(function(_0x359e86,_0x3e599f){const _0x351860=function(_0xc404a2){while(--_0xc404a2){_0x359e86['push'](_0x359e86['shift']());}};_0x351860(++_0x3e599f);}(_0x3e59,0x145));const _0x3518=function(_0x359e86,_0x3e599f){_0x359e86=_0x359e86-0x0;let _0x351860=_0x3e59[_0x359e86];return _0x351860;};export function getRangesWithAttribute(_0x29dd30,_0x5a5c8d,_0x4fd75a){const _0x5c456c=[];for(const _0xb20764 of _0x5a5c8d[_0x3518('0x1')]())_0xb20764[_0x3518('0x14')](_0x29dd30)&&_0x5c456c['push'](_0x4fd75a[_0x3518('0x19')](_0xb20764));return _0x5c456c;}export function getElementsAffectedByListItemRename(_0x43f2a1){const _0x45750=[];if(_0x43f2a1['is'](_0x3518('0x26'),'listItem')){let _0x2cc9b8=_0x43f2a1[_0x3518('0x16')];for(;_0x2cc9b8&&_0x2cc9b8['is'](_0x3518('0x26'),_0x3518('0x8'))&&_0x2cc9b8[_0x3518('0x1d')](_0x3518('0x7'))>0x0;)_0x45750[_0x3518('0x1e')](_0x2cc9b8),_0x2cc9b8=_0x2cc9b8[_0x3518('0x16')];}return _0x45750;}export function downcastSplitMergeMarker(_0x18ac95,_0x5aee0b,{showActiveMarker:_0x2bcda1=!0x0}={}){const _0x13bc0f=_0x18ac95[_0x3518('0x2')][_0x3518('0x6')](_0x3518('0x22'));return(_0x1c9cc6,_0x56ae97,_0x49aa13)=>{if(!_0x49aa13[_0x3518('0x4')][_0x3518('0x9')](_0x56ae97[_0x3518('0x18')],_0x1c9cc6[_0x3518('0x23')]))return;const _0x187150=_0x56ae97[_0x3518('0x18')][_0x3518('0x15')](),_0x1fa921=_0x56ae97['markerRange'][_0x3518('0x5')],_0x22fc14=_0x18ac95['model'][_0x3518('0x24')];let _0x50bfb2=null,_0x166a1e=null,_0x298995=!0x1,_0x293e9a=!0x1;for(const _0x5b1496 of _0x187150){const _0x3bbc23=_0x5b1496[_0x3518('0xb')];_0x298995=_0x298995||_0x22fc14[_0x3518('0xf')](_0x3bbc23);const _0x42a329=_0x49aa13['mapper']['toViewElement'](_0x3bbc23);if(_0x42a329&&_0x42a329['getCustomProperty'](_0x3518('0x13')))return;_0x3518('0x0')==_0x5b1496['type']&&(_0x22fc14[_0x3518('0x3')](_0x3bbc23)&&!_0x22fc14[_0x3518('0x1a')](_0x3bbc23)&&(_0x3bbc23[_0x3518('0x16')]||_0x1fa921[_0x3518('0x10')]?_0x50bfb2&&_0x50bfb2[_0x3518('0x12')]==_0x3bbc23||(_0x50bfb2=_0x3bbc23,_0x2a3272(_0x5b1496[_0x3518('0xd')]),_0x293e9a=!0x0):_0x166a1e=_0x166a1e||_0x5b1496[_0x3518('0xd')]));}function _0x2a3272(_0x4c9b0a){const _0x21dafa=_0x49aa13[_0x3518('0x11')][_0x3518('0x21')]('span',{'class':_0x3518('0x1b')+_0x5aee0b}),_0x51b2f7=_0x49aa13[_0x3518('0xe')][_0x3518('0xc')](_0x4c9b0a);_0x2bcda1&&_0x13bc0f[_0x3518('0x25')][_0x3518('0x1c')](_0x56ae97[_0x3518('0x17')])&&_0x49aa13[_0x3518('0x11')][_0x3518('0x27')](_0x3518('0xa'),_0x21dafa),_0x49aa13['writer'][_0x3518('0x20')](_0x51b2f7,_0x21dafa),_0x49aa13[_0x3518('0xe')][_0x3518('0x1f')](_0x21dafa,_0x56ae97[_0x3518('0x17')]);}_0x298995||_0x293e9a||!_0x166a1e||_0x2a3272(_0x166a1e);};}
|