@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230706.0 → 0.0.0-nightly-20230708.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 _0x3ee7=['forceDefaultExecution','findAncestor','markMultiRangeDeletion','dataDowncast','author','getAllAdjacentSuggestions','set','createTableWalker','*Replace\x20table\x20cells*','table','get','insertion','first','containsRange','trackChanges','suggestion','batch','has','from','redo','oldRange','createRange','includes','clipboardOutput','updateMarker','stop','setAttributes','createRangeIn','some','end','afterInit','change','view','model','listenTo','isEmpty','entries','selection','commands','tablePasteChainId','schema','hasSuggestion','tableCellBackgroundColor','high','endColumn','tablePasteColumn','markMultiRangeBlockFormat','getRange','tablePasteCell','join','root','plugins','editingDowncast','tableCellBorderColor','getRowIndexes','getRows','getContainedElement','TableClipboard','length','attributes','_createdBatches','ck-suggestion-marker-insertion','conversion','requires','tableCellSuggestion','document','startsWith','ck-suggestion-marker--active','find','getChildren','markerAttributes','deletion','tableCellHorizontalAlignment','row','tableCell','type','columnInsertionRanges','tablePasteRow','getShiftedBy','showSuggestionHighlights','suggestionUnloaded','$graveyard','deletionRanges','markerName','getAttributes','_getCoordsForCells','filter','discard','isInContent','editor','getChangedMarkers','rowInsertionRanges','_isForcedDefaultExecutionBlock','suggestion-td','endRow','registerCustomCallback','column','getSuggestions','wrap','reduce','suggestionLoaded','ck-suggestion-marker','getRanges','name','move','_suggestionFactory','previous','position','_splitMarkerName','previousSibling','cell','cells','setAttribute','insertionRanges','_tablePostFixingSubtypes','tableCellBorderWidth','getSuggestion','every','accept','content','removeMarkers','add','remove','element','suggestion:formatBlock:tablePasteCell','low','push','getTableIfOnlyTableInContent','getItems','insertContent','value','TrackChangesEditing','subType','columnInsertionIndexes','Users','paragraph','removeMarker','rowInsertionIndexes','newRange','last','registerPostFixer','insert','unwrap','markers','isEqual','insertRows','createRangeOn','formatBlock','markMultiRangeInsertion','map','tablePaste','differ','insertColumns','markerToHighlight','for','getChild','fill','getChanges','getColumns','getMarkers','activeMarkers','editing'];(function(_0x8767a7,_0x3ee77f){const _0x302f54=function(_0x5c4367){while(--_0x5c4367){_0x8767a7['push'](_0x8767a7['shift']());}};_0x302f54(++_0x3ee77f);}(_0x3ee7,0x87));const _0x302f=function(_0x8767a7,_0x3ee77f){_0x8767a7=_0x8767a7-0x0;let _0x302f54=_0x3ee7[_0x8767a7];return _0x302f54;};import{getTranslation as _0x9d017b}from'../utils/common-translations';import{Plugin as _0x343341}from'ckeditor5/src/core';import{uid as _0xced9ba,priorities as _0x3a74d0}from'ckeditor5/src/utils';import _0x204d4d from'./table';const le=[_0x302f('0x8e'),_0x302f('0x50'),'tableCellBorderStyle',_0x302f('0x63'),'tableCellVerticalAlignment',_0x302f('0x45'),'tableCellPadding'],ae=Object['fromEntries'](le[_0x302f('0xe')](_0x421afd=>[_0x421afd,null]));export default class kt extends _0x343341{static get[_0x302f('0x5a')](){return[_0x204d4d];}[_0x302f('0x39')](){const _0x1f2ce2=this['editor'];if(!_0x1f2ce2[_0x302f('0x4e')][_0x302f('0x2c')](_0x302f('0x54')))return;const _0x3fb169=_0x1f2ce2[_0x302f('0x4e')][_0x302f('0x25')](_0x302f('0x9e')),_0x1022ce=_0x1f2ce2[_0x302f('0x4e')][_0x302f('0x25')]('TableUtils'),_0x4dad0e=_0x1f2ce2[_0x302f('0x4e')]['get'](_0x204d4d),_0x4de664=_0x1f2ce2['plugins'][_0x302f('0x25')]('TableClipboard');_0x4dad0e[_0x302f('0x8d')][_0x302f('0x99')]('tablePasteRow',_0x302f('0x48')),_0x1f2ce2[_0x302f('0x3c')][_0x302f('0x43')]['register'](_0x302f('0x5b'),{'allowIn':_0x302f('0x65'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x1f2ce2['conversion']['elementToElement']({'model':_0x302f('0x5b'),'view':'suggestion-td'});let _0x4d797d=null;_0x1f2ce2[_0x302f('0x3c')]['on']('insertContent',(_0x482e1c,_0x5ec7be)=>{const [_0x1c4d73,_0x7bc6c3]=_0x5ec7be,_0x23dff6=_0x5ec7be[_0x5ec7be['length']-0x1];_0x23dff6&&_0x23dff6[_0x302f('0x1b')]||_0x3fb169[_0x302f('0x77')]||this[_0x302f('0x74')][_0x302f('0x41')][_0x302f('0x25')](_0x302f('0x29'))[_0x302f('0x9d')]&&function(_0x507da7,_0x4e92cd,_0x25fcfd,_0x41e8a3,_0x173c5b){if(_0x4e92cd&&!_0x4e92cd['is']('documentSelection'))return!0x1;const _0x400e82=_0x173c5b[_0x302f('0x9a')](_0x507da7,_0x25fcfd);if(!_0x400e82||!fe(_0x400e82,void 0x0,_0x41e8a3))return!0x1;const _0x1c1a66=_0x41e8a3['getSelectionAffectedTableCells'](_0x25fcfd[_0x302f('0x5c')][_0x302f('0x40')]);if(!_0x1c1a66['length'])return!0x1;const _0x282ac2=_0x1c1a66[0x0][_0x302f('0x1c')](_0x302f('0x24')),_0x5e664=_0x41e8a3[_0x302f('0x51')](_0x1c1a66),_0x2cb2b4=_0x41e8a3['getColumnIndexes'](_0x1c1a66),_0xcec411={'startRow':_0x5e664[_0x302f('0x27')],'endRow':_0x5e664[_0x302f('0x4')],'startColumn':_0x2cb2b4[_0x302f('0x27')],'endColumn':_0x2cb2b4['last']};return 0x1==_0x1c1a66[_0x302f('0x55')]&&(_0xcec411[_0x302f('0x79')]+=_0x41e8a3[_0x302f('0x52')](_0x400e82)-0x1,_0xcec411[_0x302f('0x47')]+=_0x41e8a3[_0x302f('0x17')](_0x400e82)-0x1),fe(_0x282ac2,_0xcec411,_0x41e8a3);}(_0x1c4d73,_0x7bc6c3,_0x1f2ce2['model'],_0x1022ce,_0x4de664)&&(_0x482e1c[_0x302f('0x34')](),_0x4d797d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1f2ce2[_0x302f('0x3c')][_0x302f('0x3a')](()=>{_0x1f2ce2[_0x302f('0x3c')][_0x302f('0x9c')](_0x5ec7be[0x0],_0x5ec7be[0x1],_0x5ec7be[0x2],{'forceDefaultExecution':!0x0});const _0x20352e=_0xced9ba(),{rowInsertionRanges:_0x43d1bc,columnInsertionRanges:_0xd95d62,insertionRanges:_0xe840ab,deletionRanges:_0x3b91ed,cells:_0x414743}=_0x4d797d;_0x43d1bc[_0x302f('0x55')]&&_0x3fb169[_0x302f('0xd')](_0x43d1bc,_0x302f('0x68'),{'tablePasteChainId':_0x20352e}),_0xd95d62['length']&&_0x3fb169[_0x302f('0xd')](_0xd95d62,_0x302f('0x48'),{'tablePasteChainId':_0x20352e}),_0xe840ab[_0x302f('0x55')]&&_0x3fb169['markMultiRangeInsertion'](_0xe840ab,_0x302f('0xf'),{'tablePasteChainId':_0x20352e,'skipNestingCheck':!0x0}),_0x3b91ed[_0x302f('0x55')]&&_0x3fb169[_0x302f('0x1d')](_0x3b91ed,_0x302f('0xf'),{'tablePasteChainId':_0x20352e,'skipNestingCheck':!0x0});const _0x5490bd=_0x3fb169[_0x302f('0x49')](_0x414743[_0x302f('0xe')](({element:_0x53b2e2})=>_0x53b2e2),{'formatGroupId':_0xced9ba()},[],_0x302f('0x4b'),{'tablePasteChainId':_0x20352e});if(_0x5490bd){const _0x5cfe9f=_0x5490bd[_0x302f('0x18')](),_0x4cbd01=[];for(const {element:_0x5de32c,attributes:_0x32a5d1}of _0x414743){if(!_0x32a5d1)continue;const _0x1b73e1=_0x1f2ce2[_0x302f('0x3c')][_0x302f('0xb')](_0x5de32c),_0x21a550=_0x5cfe9f[_0x302f('0x5f')](_0x380ced=>_0x380ced['getRange']()[_0x302f('0x9')](_0x1b73e1));_0x21a550&&_0x4cbd01[_0x302f('0x99')]([_0x21a550['name'],_0x32a5d1]);}_0x4cbd01[_0x302f('0x55')]&&_0x5490bd[_0x302f('0x8b')](_0x302f('0x61'),Object['fromEntries'](_0x4cbd01));}_0x4d797d=null;}));},{'priority':_0x3a74d0[_0x302f('0x46')]+0xa}),_0x1f2ce2[_0x302f('0x4e')]['get'](_0x302f('0x54'))['on']('_replaceTableSlotCell',(_0xb294e5,_0xfd4cd5)=>{const [_0x2afba9,_0x39b451,,_0x3c5edd]=_0xfd4cd5;if(!_0x4d797d)return;_0xb294e5['stop']();const _0x24fc38=_0x2afba9[_0x302f('0x89')],_0x10ebd7=_0x39b451,_0x5d1a47=ce(_0x24fc38),_0x44f445=ce(_0x10ebd7);_0xb294e5['return']=_0x24fc38;let _0xdc294e=null,_0x316b38=null;if(_0x44f445||_0x5d1a47){if(_0x5d1a47&&!_0x44f445){_0x3c5edd[_0x302f('0x95')](_0x24fc38['getChild'](0x0));for(const _0x220b3b of Array[_0x302f('0x2d')](_0x10ebd7[_0x302f('0x60')]()))_0x3c5edd[_0x302f('0x6')](_0x220b3b,_0x24fc38,_0x302f('0x38'));const _0x3429ad=_0x4d797d['rowInsertionIndexes']['includes'](_0x2afba9[_0x302f('0x64')]),_0x116002=_0x4d797d[_0x302f('0xa0')][_0x302f('0x31')](_0x2afba9[_0x302f('0x7b')]);_0x3429ad||_0x116002||(_0xdc294e=_0x3c5edd[_0x302f('0x36')](_0x24fc38));}else _0x44f445&&!_0x5d1a47&&(_0x316b38=_0x3c5edd[_0x302f('0x36')](_0x24fc38));}else{const _0x543538=_0x3c5edd['createElement']('tableCellSuggestion'),_0x898043=_0x3c5edd['createElement'](_0x302f('0x5b'));_0x3c5edd[_0x302f('0x7d')](_0x3c5edd[_0x302f('0x36')](_0x24fc38),_0x898043),_0x3c5edd[_0x302f('0x6')](_0x543538,_0x24fc38,0x0);for(const _0x2011b4 of Array[_0x302f('0x2d')](_0x10ebd7[_0x302f('0x60')]()))_0x3c5edd[_0x302f('0x6')](_0x2011b4,_0x543538,_0x302f('0x38'));_0xdc294e=_0x3c5edd['createRangeOn'](_0x543538),_0x316b38=_0x3c5edd[_0x302f('0xb')](_0x898043);}const _0x33201c=Array[_0x302f('0x2d')](_0x10ebd7[_0x302f('0x6f')]())[_0x302f('0x71')](([_0x367232])=>le[_0x302f('0x31')](_0x367232));_0x4d797d[_0x302f('0x8a')][_0x302f('0x99')]({'element':_0x24fc38,'attributes':_0x33201c['length']?Object['fromEntries'](_0x33201c):null}),_0xdc294e&&_0x4d797d[_0x302f('0x8c')]['push'](_0xdc294e),_0x316b38&&_0x4d797d[_0x302f('0x6d')][_0x302f('0x99')](_0x316b38);},{'priority':_0x302f('0x46')}),_0x1022ce['on'](_0x302f('0x11'),(_0x6ffcbb,_0x48bf50)=>{const [_0x29c894,_0x463839={}]=_0x48bf50;if(!_0x4d797d)return;const _0x15a28c=_0x463839['at']||0x0,_0x4d1776=_0x463839['columns']||0x1;_0x4d797d['columnInsertionIndexes']=new Array(_0x4d1776)[_0x302f('0x15')](_0x15a28c)[_0x302f('0xe')]((_0x2b367e,_0x6dc651)=>_0x2b367e+_0x6dc651);for(const {cell:_0x3f8b48}of _0x1022ce[_0x302f('0x22')](_0x29c894,{'startColumn':_0x15a28c,'endColumn':_0x15a28c+_0x4d1776-0x1}))_0x4d797d[_0x302f('0x67')]['push'](_0x1f2ce2[_0x302f('0x3c')][_0x302f('0xb')](_0x3f8b48));},{'priority':_0x302f('0x98')}),_0x1022ce['on'](_0x302f('0xa'),(_0x5ce8b2,_0x10d15f)=>{const [_0x4f5241,_0x1a416={}]=_0x10d15f;if(!_0x4d797d)return;const _0x5e7599=_0x1a416['at']||0x0,_0x3d63c7=_0x1a416['rows']||0x1;_0x4d797d[_0x302f('0x2')]=new Array(_0x3d63c7)[_0x302f('0x15')](_0x5e7599)[_0x302f('0xe')]((_0xc11e30,_0x5eccc4)=>_0xc11e30+_0x5eccc4);for(const {cell:_0x516857}of _0x1022ce['createTableWalker'](_0x4f5241,{'startRow':_0x5e7599,'endRow':_0x5e7599+_0x3d63c7-0x1}))_0x4d797d[_0x302f('0x76')][_0x302f('0x99')](_0x1f2ce2[_0x302f('0x3c')]['createRangeOn'](_0x516857));},{'priority':_0x302f('0x98')}),_0x3fb169['_descriptionFactory']['registerDescriptionCallback'](_0xd9de95=>{if(_0xd9de95[_0x302f('0x9f')]&&_0xd9de95['subType']['startsWith'](_0x302f('0xf')))return _0xd9de95[_0x302f('0x85')]?{}:{'type':_0x302f('0x26'),'content':_0x9d017b(_0x1f2ce2['locale'],_0x302f('0x23'))};});const _0x25a19c=()=>{};for(const _0x3b23dd of[_0x302f('0xf'),_0x302f('0x48'),'tablePasteRow',_0x302f('0x4b')])_0x3fb169['_suggestionFactory']['registerCustomCallback'](_0x302f('0x26'),_0x3b23dd,'join',_0x25a19c),_0x3fb169[_0x302f('0x84')]['registerCustomCallback']('deletion',_0x3b23dd,_0x302f('0x4c'),_0x25a19c);_0x3fb169['_suggestionFactory'][_0x302f('0x7a')](_0x302f('0xc'),_0x302f('0x4b'),_0x302f('0x72'),_0x25a19c),_0x3fb169[_0x302f('0x84')][_0x302f('0x7a')](_0x302f('0xc'),_0x302f('0x4b'),_0x302f('0x91'),(_0x3ad70d,_0x2cbd49,_0x1dda83)=>{const _0x500766=_0x3ad70d['map'](_0x9c05c4=>_0x9c05c4[_0x302f('0x53')]())['filter'](_0x1ce149=>_0x1ce149),_0xfb6a7d=new Map(_0x500766[_0x302f('0xe')](_0x1e1125=>[_0x1e1125,null]));if(_0x4d797d)for(const {element:_0x3cc8bb,attributes:_0x55c84a}of _0x4d797d['cells'])_0x55c84a&&_0xfb6a7d[_0x302f('0x21')](_0x3cc8bb,_0x55c84a);else{if(_0x1dda83&&_0x1dda83[_0x302f('0x61')])for(const [_0x27084b,_0x56bbd2]of Object[_0x302f('0x3f')](_0x1dda83[_0x302f('0x61')])){const _0x4d5175=_0x1f2ce2[_0x302f('0x3c')][_0x302f('0x8')][_0x302f('0x25')](_0x27084b),_0x391d6b=_0x4d5175?_0x4d5175[_0x302f('0x4a')]()[_0x302f('0x53')]():null;_0x391d6b&&_0xfb6a7d[_0x302f('0x21')](_0x391d6b,_0x56bbd2);}}_0x1f2ce2[_0x302f('0x3c')][_0x302f('0x3a')](_0x2d3738=>{for(const [_0x1e457e,_0x51ae4e]of _0xfb6a7d)_0x2d3738[_0x302f('0x35')]({...ae,..._0x51ae4e},_0x1e457e);});});const _0x3ae610=(_0xab89ac,_0x4742af)=>{_0x3fb169[_0x302f('0x84')][_0x302f('0x7a')](_0xab89ac,'tablePaste',_0x4742af,(_0x3b6299,_0x3b0171,_0x58567a)=>{_0x1f2ce2['model'][_0x302f('0x3a')](_0x5173e5=>{const _0x557b1e=[];for(const _0x11bdf0 of _0x3b6299){const _0x1afdf3=_0x11bdf0['start']['nodeAfter'];_0x1afdf3['is'](_0x302f('0x96'),_0x302f('0x5b'))&&_0x557b1e[_0x302f('0x99')](_0x1afdf3);}_0x3fb169['_suggestionFactory']['getSuggestionCallback'](_0xab89ac,null,_0x4742af)(_0x3b6299,_0x3b0171,_0x58567a);for(const _0x4220f6 of _0x557b1e)_0x302f('0x6c')!=_0x4220f6[_0x302f('0x4d')]['rootName']&&_0x5173e5[_0x302f('0x7')](_0x4220f6);});});};_0x3ae610(_0x302f('0x26'),_0x302f('0x91')),_0x3ae610(_0x302f('0x26'),'discard'),_0x3ae610(_0x302f('0x62'),_0x302f('0x91')),_0x3ae610(_0x302f('0x62'),_0x302f('0x72')),_0x3fb169[_0x302f('0x84')][_0x302f('0x7a')]('insertion',_0x302f('0x68'),'discard',_0x160446=>{const _0x4b84e9=_0x160446[_0x302f('0xe')](_0x46b1b7=>_0x46b1b7[_0x302f('0x53')]()),_0x1e7f01=_0x4b84e9[0x0][_0x302f('0x1c')]('table'),{minRow:_0x200bde,maxRow:_0x2688e1}=_0x4dad0e[_0x302f('0x70')](_0x4b84e9);_0x1022ce['removeRows'](_0x1e7f01,{'at':_0x200bde,'rows':_0x2688e1-_0x200bde+0x1});}),_0x3fb169[_0x302f('0x84')][_0x302f('0x7a')]('insertion',_0x302f('0x48'),_0x302f('0x72'),_0x2dcd3d=>{const _0x35ea4c=_0x2dcd3d[_0x302f('0xe')](_0xc30473=>_0xc30473['getContainedElement']()),_0x40b84e=_0x35ea4c[0x0][_0x302f('0x1c')](_0x302f('0x24')),{minColumn:_0x2e39bd,maxColumn:_0x3fce98}=_0x4dad0e['_getCoordsForCells'](_0x35ea4c);_0x1022ce['removeColumns'](_0x40b84e,{'at':_0x2e39bd,'columns':_0x3fce98-_0x2e39bd+0x1});});const _0x1e5210=(_0x398f52,_0x373e97)=>{if(!_0x373e97[_0x302f('0x9f')]||!_0x373e97[_0x302f('0x9f')]['startsWith']('tablePaste'))return;const _0x35cfe7=_0x373e97['attributes'][_0x302f('0x42')],_0x34b588=_0x3fb169[_0x302f('0x7c')]()[_0x302f('0x71')](_0x5ed5fe=>_0x5ed5fe['isInContent']&&_0x5ed5fe['attributes']&&_0x5ed5fe[_0x302f('0x56')][_0x302f('0x42')]==_0x35cfe7);_0x34b588[_0x302f('0x55')]&&_0x373e97[_0x302f('0x20')]()[_0x302f('0x55')]!=_0x34b588[_0x302f('0x55')]&&_0x34b588[_0x302f('0x7e')]((_0x40fe1d,_0x422ca4)=>(_0x40fe1d['next']=_0x422ca4,_0x422ca4[_0x302f('0x85')]=_0x40fe1d,_0x422ca4));};function _0x119183(_0x43c899,_0x1d9b38=!0x0){const {id:_0x31fd93}=_0x3fb169[_0x302f('0x87')](_0x43c899['markerName']),_0x48a5bd=[_0x302f('0x80'),_0x302f('0x58')],_0x197ec5=_0x3fb169[_0x302f('0x19')][_0x302f('0x31')](_0x43c899[_0x302f('0x6e')]);return _0x197ec5&&_0x48a5bd[_0x302f('0x99')](_0x302f('0x5e')),{'classes':_0x48a5bd,'attributes':{'data-suggestion':_0x31fd93},'priority':_0x197ec5&&_0x1d9b38?0xbc2:0xbb8};}_0x3fb169['on'](_0x302f('0x7f'),_0x1e5210,{'priority':_0x302f('0x46')}),_0x3fb169['on'](_0x302f('0x6b'),_0x1e5210,{'priority':_0x302f('0x46')}),_0x1f2ce2[_0x302f('0x3c')][_0x302f('0x5c')][_0x302f('0x5')](()=>{let _0x67ef1=!0x1;const _0x584363=Array[_0x302f('0x2d')](_0x1f2ce2[_0x302f('0x3c')][_0x302f('0x5c')][_0x302f('0x10')][_0x302f('0x75')]());for(const {name:_0x5b0ed5,data:_0x38280a}of _0x584363){const {group:_0x21f4a4,type:_0x5aa1a9,id:_0x23496e}=_0x3fb169[_0x302f('0x87')](_0x5b0ed5);if(_0x302f('0x2a')!=_0x21f4a4||_0x302f('0x62')!=_0x5aa1a9||_0x38280a[_0x302f('0x2f')])continue;if(!_0x3fb169[_0x302f('0x44')](_0x23496e))continue;const _0x399b99=_0x3fb169[_0x302f('0x8f')](_0x23496e)['getRanges'](),_0x1fe0a5=_0x1f2ce2[_0x302f('0x4e')][_0x302f('0x25')](_0x302f('0xa1'))['me'];for(const _0x1c3f44 of _0x3fb169['getSuggestions']()){if(!_0x1c3f44[_0x302f('0x73')]||_0x1c3f44[_0x302f('0x1f')]!=_0x1fe0a5)continue;if(_0x302f('0xc')!=_0x1c3f44[_0x302f('0x66')]||'tablePasteCell'!=_0x1c3f44[_0x302f('0x9f')])continue;if(_0x1c3f44[_0x302f('0x81')]()[_0x302f('0x90')](_0x26cf4b=>_0x399b99[_0x302f('0x37')](_0x2c19f0=>_0x2c19f0[_0x302f('0x28')](_0x26cf4b,!0x0))))for(const _0x3d27f7 of _0x1c3f44[_0x302f('0x20')]())_0x3d27f7[_0x302f('0x73')]&&(_0x3d27f7[_0x302f('0x72')](),_0x67ef1=!0x0);}}return _0x67ef1;}),_0x1f2ce2[_0x302f('0x3c')]['document'][_0x302f('0x5')](_0x386643=>{const _0x5a04ac=_0x1f2ce2[_0x302f('0x41')][_0x302f('0x25')](_0x302f('0x2e'));if(!_0x5a04ac||!_0x5a04ac[_0x302f('0x57')][_0x302f('0x2c')](_0x386643[_0x302f('0x2b')]))return!0x1;let _0x105169=!0x1;const _0x456ba2=_0x1f2ce2[_0x302f('0x4e')][_0x302f('0x25')](_0x302f('0xa1'))['me'],_0x1b2e5c=_0x1f2ce2[_0x302f('0x3c')][_0x302f('0x5c')][_0x302f('0x10')][_0x302f('0x16')](),_0x43236a=Array[_0x302f('0x2d')](_0x1f2ce2[_0x302f('0x3c')][_0x302f('0x5c')][_0x302f('0x10')]['getChangedMarkers']())[_0x302f('0x71')](({name:_0xa9daab,data:_0x345af4})=>{const {group:_0x5d5bd1,subType:_0x865f4d,authorId:_0x1e3bee}=_0x3fb169[_0x302f('0x87')](_0xa9daab);return'suggestion'==_0x5d5bd1&&'tablePaste'==_0x865f4d&&_0x1e3bee==_0x456ba2['id']&&!_0x345af4[_0x302f('0x2f')];});for(const _0x2794a2 of _0x1b2e5c){if(_0x302f('0x6')!=_0x2794a2[_0x302f('0x66')]||_0x302f('0x5b')!=_0x2794a2[_0x302f('0x82')]||0x1!=_0x2794a2[_0x302f('0x55')])continue;const _0x1d6bd9=_0x386643[_0x302f('0x30')](_0x2794a2['position'],_0x2794a2[_0x302f('0x86')][_0x302f('0x69')](0x1));if(!_0x43236a[_0x302f('0x5f')](({data:_0x13f76e})=>_0x13f76e[_0x302f('0x3')][_0x302f('0x9')](_0x1d6bd9)))for(const {name:_0x3ab078,data:_0x135cdd}of _0x43236a)if(_0x1d6bd9['containsRange'](_0x135cdd[_0x302f('0x3')])){_0x386643[_0x302f('0x33')](_0x3ab078,{'range':_0x1d6bd9}),_0x105169=!0x0;break;}}return _0x105169;}),_0x1f2ce2[_0x302f('0x3c')][_0x302f('0x5c')][_0x302f('0x5')](_0x1bda7f=>{let _0x3bb76a=!0x1;const _0x2d6c64=_0x1f2ce2[_0x302f('0x4e')]['get']('Users')['me'],_0x10ae62=_0x3fb169['getSuggestions']()[_0x302f('0x71')](_0x1bbf97=>_0x1bbf97[_0x302f('0x73')]&&_0x1bbf97['author']==_0x2d6c64),_0x5733e7=new Set(),_0x581ad7=new Set();for(const _0x4a5ee3 of _0x10ae62)if(_0x302f('0xf')==_0x4a5ee3['subType'])for(const _0x4778e2 of _0x4a5ee3['getMarkers']()){const _0x481d93=_0x4778e2[_0x302f('0x4a')]()[_0x302f('0x53')]();if(_0x481d93){if(_0x481d93['is']('element',_0x302f('0x5b'))&&ce(_0x481d93)){_0x4a5ee3[_0x302f('0x1')](_0x4778e2[_0x302f('0x82')]),_0x5733e7['add'](_0x481d93),_0x3bb76a=!0x0;const _0x138965=_0x481d93['nextSibling'],_0x45b3f8=_0x481d93[_0x302f('0x88')],_0x1d3f20=_0x138965&&_0x138965['is'](_0x302f('0x96'),_0x302f('0x5b')),_0x8a1a95=_0x45b3f8&&_0x45b3f8['is']('element',_0x302f('0x5b'));_0x1d3f20&&!_0x5733e7['has'](_0x138965)&&_0x581ad7[_0x302f('0x94')](_0x138965),_0x8a1a95&&!_0x5733e7[_0x302f('0x2c')](_0x45b3f8)&&_0x581ad7[_0x302f('0x94')](_0x45b3f8);}else _0x481d93['is']('element',_0x302f('0x0'))&&_0x481d93[_0x302f('0x3e')]&&(_0x4a5ee3['removeMarker'](_0x4778e2['name']),_0x3bb76a=!0x0);}}else{if(_0x302f('0x4b')==_0x4a5ee3[_0x302f('0x9f')]){if(!_0x4a5ee3[_0x302f('0x56')]||!_0x4a5ee3[_0x302f('0x56')][_0x302f('0x42')])continue;const _0x51dd74=_0x4a5ee3[_0x302f('0x56')]['markerAttributes'];if(_0x51dd74&&Object['keys'](_0x51dd74)[_0x302f('0x55')])continue;const _0x3db650=_0x4a5ee3[_0x302f('0x56')][_0x302f('0x42')];let _0x46232e=!0x0,_0x35b9ae=!0x0;for(const _0x4c56bc of _0x10ae62)if(_0x4c56bc[_0x302f('0x9f')]&&_0x4c56bc[_0x302f('0x9f')][_0x302f('0x5d')]('tablePaste')){if(!_0x4c56bc['attributes'][_0x302f('0x42')]){_0x35b9ae=!0x1;break;}if(_0x4c56bc['id']!=_0x4a5ee3['id']&&_0x4c56bc[_0x302f('0x56')][_0x302f('0x42')]==_0x3db650){_0x46232e=!0x1;break;}}_0x35b9ae&&_0x46232e&&(_0x4a5ee3[_0x302f('0x93')](),_0x3bb76a=!0x0);}}for(const _0x246a69 of _0x5733e7)_0x1bda7f[_0x302f('0x95')](_0x246a69);for(const _0x101190 of _0x581ad7)_0x1bda7f[_0x302f('0x7')](_0x101190);return _0x3bb76a;}),_0x1f2ce2[_0x302f('0x59')][_0x302f('0x13')](_0x302f('0x4f'))[_0x302f('0x12')]({'model':_0x302f('0x97'),'view':(_0x13383b,_0x45a03a)=>_0x119183(_0x13383b),'converterPriority':'high'}),_0x1f2ce2[_0x302f('0x59')][_0x302f('0x13')](_0x302f('0x1e'))[_0x302f('0x12')]({'model':_0x302f('0x97'),'view':(_0x357396,_0x1c7c2c)=>_0x1c7c2c['options'][_0x302f('0x6a')]?_0x119183(_0x357396,!0x1):null,'converterPriority':_0x302f('0x46')});const _0x20a7c4=_0x1f2ce2[_0x302f('0x1a')][_0x302f('0x3b')];this[_0x302f('0x3d')](_0x20a7c4[_0x302f('0x5c')],_0x302f('0x32'),(_0x274250,_0x4ed9bc)=>{const _0x37e4ab=[];for(const _0x11192f of _0x20a7c4[_0x302f('0x36')](_0x4ed9bc[_0x302f('0x92')])[_0x302f('0x9b')]())_0x11192f['is'](_0x302f('0x96'),_0x302f('0x78'))&&_0x37e4ab[_0x302f('0x99')](_0x11192f);_0x20a7c4[_0x302f('0x3a')](_0x146861=>{for(const _0xe6452c of _0x37e4ab)_0x146861[_0x302f('0x83')](_0x146861['createRangeIn'](_0xe6452c),_0x146861['createPositionBefore'](_0xe6452c)),_0x146861[_0x302f('0x95')](_0xe6452c);});});}}function ce(_0x57b647){if(_0x57b647[_0x302f('0x3e')])return!0x0;const _0x4c8235=_0x57b647[_0x302f('0x14')](0x0);return _0x4c8235['is']('element',_0x302f('0x0'))&&_0x4c8235[_0x302f('0x3e')];}function fe(_0x2cdc0a,_0x9e9cfb={},_0x43ebcd){for(const {isAnchor:_0x53c94f,cellHeight:_0x987908,cellWidth:_0x5a20d9}of _0x43ebcd[_0x302f('0x22')](_0x2cdc0a,{'includeAllSlots':!0x0,..._0x9e9cfb}))if(!_0x53c94f||0x1!=_0x987908||0x1!=_0x5a20d9)return!0x1;return!0x0;}
|
|
23
|
+
const _0x5718=['ck-suggestion-marker--active','_suggestionFactory','clipboardOutput','ck-suggestion-marker-insertion','author','removeColumns','push','tableCellHorizontalAlignment','schema','tableCellBackgroundColor','registerPostFixer','registerDescriptionCallback','hasSuggestion','deletionRanges','tableCellPadding','insertion','tableCellBorderWidth','tablePasteChainId','getContainedElement','table','_descriptionFactory','fill','newRange','_isForcedDefaultExecutionBlock','filter','_splitMarkerName','wrap','suggestion:formatBlock:tablePasteCell','stop','start','dataDowncast','markMultiRangeDeletion','tableCellBorderStyle','suggestionUnloaded','cell','TableClipboard','from','previousSibling','createTableWalker','columns','registerCustomCallback','getSuggestions','deletion','for','commands','paragraph','getAttributes','selection','getSelectionAffectedTableCells','afterInit','getRange','Users','fromEntries','suggestion-td','has','content','join','column','row','keys','reduce','rows','documentSelection','get','getChanges','tableCell','insert','set','getSuggestion','rowInsertionIndexes','map','next','markMultiRangeBlockFormat','activeMarkers','getAllAdjacentSuggestions','_replaceTableSlotCell','cells','end','_getCoordsForCells','showSuggestionHighlights','document','length','*Replace\x20table\x20cells*','createElement','listenTo','updateMarker','rowInsertionRanges','markerName','markerToHighlight','name','register','startsWith','createPositionBefore','accept','tablePasteRow','getColumns','remove','move','editingDowncast','last','isEmpty','getMarkers','getColumnIndexes','ck-suggestion-marker','tableCellSuggestion','some','conversion','getChildren','getRanges','type','markMultiRangeInsertion','insertRows','formatBlock','createRange','findAncestor','value','removeRows','differ','markers','plugins','columnInsertionIndexes','nextSibling','discard','getShiftedBy','requires','removeMarker','batch','element','getItems','model','insertionRanges','getChild','TrackChangesEditing','includes','attributes','isInContent','tablePaste','redo','entries','oldRange','getSuggestionCallback','_tablePostFixingSubtypes','isEqual','nodeAfter','insertContent','getRowIndexes','high','createRangeOn','markerAttributes','add','getChangedMarkers','editor','return','forceDefaultExecution','insertColumns','view','_createdBatches','options','position','tablePasteColumn','root','change','previous','createRangeIn','suggestionLoaded','subType','tablePasteCell'];(function(_0x597860,_0x5718b6){const _0x2a5ac9=function(_0xa50b25){while(--_0xa50b25){_0x597860['push'](_0x597860['shift']());}};_0x2a5ac9(++_0x5718b6);}(_0x5718,0x1dc));const _0x2a5a=function(_0x597860,_0x5718b6){_0x597860=_0x597860-0x0;let _0x2a5ac9=_0x5718[_0x597860];return _0x2a5ac9;};import{getTranslation as _0x4b3e8e}from'../utils/common-translations';import{Plugin as _0x5741c9}from'ckeditor5/src/core';import{uid as _0x2a4712,priorities as _0x5a57b0}from'ckeditor5/src/utils';import _0x15f222 from'./table';const le=[_0x2a5a('0x29'),'tableCellBorderColor',_0x2a5a('0x39'),_0x2a5a('0x20'),'tableCellVerticalAlignment',_0x2a5a('0x22'),_0x2a5a('0x27')],ae=Object[_0x2a5a('0x4d')](le['map'](_0x3401c2=>[_0x3401c2,null]));export default class kt extends _0x5741c9{static get[_0x2a5a('0x95')](){return[_0x15f222];}[_0x2a5a('0x4a')](){const _0x5f17a3=this[_0x2a5a('0x9')];if(!_0x5f17a3[_0x2a5a('0x90')][_0x2a5a('0x4f')](_0x2a5a('0x3c')))return;const _0x1062d6=_0x5f17a3[_0x2a5a('0x90')][_0x2a5a('0x58')](_0x2a5a('0x9d')),_0x56d93c=_0x5f17a3[_0x2a5a('0x90')]['get']('TableUtils'),_0x393cf6=_0x5f17a3[_0x2a5a('0x90')][_0x2a5a('0x58')](_0x15f222),_0x162033=_0x5f17a3[_0x2a5a('0x90')][_0x2a5a('0x58')]('TableClipboard');_0x393cf6[_0x2a5a('0xa6')][_0x2a5a('0x1f')](_0x2a5a('0x77'),_0x2a5a('0x11')),_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x21')][_0x2a5a('0x73')](_0x2a5a('0x81'),{'allowIn':_0x2a5a('0x5a'),'allowContentOf':_0x2a5a('0x5a'),'isLimit':!0x0}),_0x5f17a3[_0x2a5a('0x83')]['elementToElement']({'model':_0x2a5a('0x81'),'view':_0x2a5a('0x4e')});let _0x760716=null;_0x5f17a3[_0x2a5a('0x9a')]['on'](_0x2a5a('0x2'),(_0xee0b68,_0x4040da)=>{const [_0x5e051b,_0x475aa6]=_0x4040da,_0x247ef3=_0x4040da[_0x4040da['length']-0x1];_0x247ef3&&_0x247ef3[_0x2a5a('0xb')]||_0x1062d6[_0x2a5a('0x30')]||this['editor'][_0x2a5a('0x45')]['get']('trackChanges')[_0x2a5a('0x8c')]&&function(_0x4421ce,_0x2dd96a,_0x3682af,_0x42bb19,_0x1f5f1b){if(_0x2dd96a&&!_0x2dd96a['is'](_0x2a5a('0x57')))return!0x1;const _0x11d5c5=_0x1f5f1b['getTableIfOnlyTableInContent'](_0x4421ce,_0x3682af);if(!_0x11d5c5||!fe(_0x11d5c5,void 0x0,_0x42bb19))return!0x1;const _0x243bca=_0x42bb19[_0x2a5a('0x49')](_0x3682af[_0x2a5a('0x69')][_0x2a5a('0x48')]);if(!_0x243bca[_0x2a5a('0x6a')])return!0x1;const _0x3f6f56=_0x243bca[0x0][_0x2a5a('0x8b')](_0x2a5a('0x2c')),_0x48e6f0=_0x42bb19[_0x2a5a('0x3')](_0x243bca),_0x3464de=_0x42bb19[_0x2a5a('0x7f')](_0x243bca),_0x3ae192={'startRow':_0x48e6f0['first'],'endRow':_0x48e6f0[_0x2a5a('0x7c')],'startColumn':_0x3464de['first'],'endColumn':_0x3464de[_0x2a5a('0x7c')]};return 0x1==_0x243bca[_0x2a5a('0x6a')]&&(_0x3ae192['endRow']+=_0x42bb19['getRows'](_0x11d5c5)-0x1,_0x3ae192['endColumn']+=_0x42bb19[_0x2a5a('0x78')](_0x11d5c5)-0x1),fe(_0x3f6f56,_0x3ae192,_0x42bb19);}(_0x5e051b,_0x475aa6,_0x5f17a3[_0x2a5a('0x9a')],_0x56d93c,_0x162033)&&(_0xee0b68['stop'](),_0x760716={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5f17a3[_0x2a5a('0x9a')]['change'](()=>{_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x2')](_0x4040da[0x0],_0x4040da[0x1],_0x4040da[0x2],{'forceDefaultExecution':!0x0});const _0xabfff2=_0x2a4712(),{rowInsertionRanges:_0x2dac9f,columnInsertionRanges:_0x2f792b,insertionRanges:_0x3eade1,deletionRanges:_0x569ef3,cells:_0x1e022a}=_0x760716;_0x2dac9f['length']&&_0x1062d6[_0x2a5a('0x87')](_0x2dac9f,'tablePasteRow',{'tablePasteChainId':_0xabfff2}),_0x2f792b[_0x2a5a('0x6a')]&&_0x1062d6['markMultiRangeInsertion'](_0x2f792b,_0x2a5a('0x11'),{'tablePasteChainId':_0xabfff2}),_0x3eade1[_0x2a5a('0x6a')]&&_0x1062d6[_0x2a5a('0x87')](_0x3eade1,_0x2a5a('0xa1'),{'tablePasteChainId':_0xabfff2,'skipNestingCheck':!0x0}),_0x569ef3['length']&&_0x1062d6[_0x2a5a('0x38')](_0x569ef3,'tablePaste',{'tablePasteChainId':_0xabfff2,'skipNestingCheck':!0x0});const _0x10f73d=_0x1062d6[_0x2a5a('0x61')](_0x1e022a['map'](({element:_0x26414c})=>_0x26414c),{'formatGroupId':_0x2a4712()},[],'tablePasteCell',{'tablePasteChainId':_0xabfff2});if(_0x10f73d){const _0x311e96=_0x10f73d[_0x2a5a('0x7e')](),_0x343b27=[];for(const {element:_0x36525f,attributes:_0x2bc85e}of _0x1e022a){if(!_0x2bc85e)continue;const _0x37e29f=_0x5f17a3['model'][_0x2a5a('0x5')](_0x36525f),_0x2d5b76=_0x311e96['find'](_0x4b0236=>_0x4b0236[_0x2a5a('0x4b')]()['isEqual'](_0x37e29f));_0x2d5b76&&_0x343b27['push']([_0x2d5b76[_0x2a5a('0x72')],_0x2bc85e]);}_0x343b27['length']&&_0x10f73d['setAttribute']('markerAttributes',Object['fromEntries'](_0x343b27));}_0x760716=null;}));},{'priority':_0x5a57b0[_0x2a5a('0x4')]+0xa}),_0x5f17a3[_0x2a5a('0x90')][_0x2a5a('0x58')](_0x2a5a('0x3c'))['on'](_0x2a5a('0x64'),(_0x4fc36a,_0x1bd008)=>{const [_0x1131d7,_0x16aa80,,_0x2fb843]=_0x1bd008;if(!_0x760716)return;_0x4fc36a[_0x2a5a('0x35')]();const _0x12d066=_0x1131d7[_0x2a5a('0x3b')],_0x3d8553=_0x16aa80,_0x3b180f=ce(_0x12d066),_0x89f35f=ce(_0x3d8553);_0x4fc36a[_0x2a5a('0xa')]=_0x12d066;let _0x24d4c9=null,_0xb7a1b1=null;if(_0x89f35f||_0x3b180f){if(_0x3b180f&&!_0x89f35f){_0x2fb843['remove'](_0x12d066[_0x2a5a('0x9c')](0x0));for(const _0x55eabb of Array[_0x2a5a('0x3d')](_0x3d8553[_0x2a5a('0x84')]()))_0x2fb843[_0x2a5a('0x5b')](_0x55eabb,_0x12d066,_0x2a5a('0x66'));const _0x21190e=_0x760716[_0x2a5a('0x5e')][_0x2a5a('0x9e')](_0x1131d7[_0x2a5a('0x53')]),_0x2f8cce=_0x760716['columnInsertionIndexes'][_0x2a5a('0x9e')](_0x1131d7[_0x2a5a('0x52')]);_0x21190e||_0x2f8cce||(_0x24d4c9=_0x2fb843['createRangeIn'](_0x12d066));}else _0x89f35f&&!_0x3b180f&&(_0xb7a1b1=_0x2fb843['createRangeIn'](_0x12d066));}else{const _0xced275=_0x2fb843[_0x2a5a('0x6c')](_0x2a5a('0x81')),_0x5ebfe5=_0x2fb843[_0x2a5a('0x6c')]('tableCellSuggestion');_0x2fb843[_0x2a5a('0x33')](_0x2fb843[_0x2a5a('0x15')](_0x12d066),_0x5ebfe5),_0x2fb843[_0x2a5a('0x5b')](_0xced275,_0x12d066,0x0);for(const _0x44893e of Array['from'](_0x3d8553[_0x2a5a('0x84')]()))_0x2fb843[_0x2a5a('0x5b')](_0x44893e,_0xced275,_0x2a5a('0x66'));_0x24d4c9=_0x2fb843[_0x2a5a('0x5')](_0xced275),_0xb7a1b1=_0x2fb843[_0x2a5a('0x5')](_0x5ebfe5);}const _0x401d8c=Array[_0x2a5a('0x3d')](_0x3d8553[_0x2a5a('0x47')]())[_0x2a5a('0x31')](([_0x1481e7])=>le[_0x2a5a('0x9e')](_0x1481e7));_0x760716[_0x2a5a('0x65')][_0x2a5a('0x1f')]({'element':_0x12d066,'attributes':_0x401d8c['length']?Object['fromEntries'](_0x401d8c):null}),_0x24d4c9&&_0x760716[_0x2a5a('0x9b')][_0x2a5a('0x1f')](_0x24d4c9),_0xb7a1b1&&_0x760716[_0x2a5a('0x26')][_0x2a5a('0x1f')](_0xb7a1b1);},{'priority':_0x2a5a('0x4')}),_0x56d93c['on'](_0x2a5a('0xc'),(_0x3149b5,_0x3dc73d)=>{const [_0x4d6eac,_0x5bc15c={}]=_0x3dc73d;if(!_0x760716)return;const _0x34733a=_0x5bc15c['at']||0x0,_0x20d1a6=_0x5bc15c[_0x2a5a('0x40')]||0x1;_0x760716[_0x2a5a('0x91')]=new Array(_0x20d1a6)[_0x2a5a('0x2e')](_0x34733a)[_0x2a5a('0x5f')]((_0x53e354,_0x543c6a)=>_0x53e354+_0x543c6a);for(const {cell:_0x223216}of _0x56d93c[_0x2a5a('0x3f')](_0x4d6eac,{'startColumn':_0x34733a,'endColumn':_0x34733a+_0x20d1a6-0x1}))_0x760716['columnInsertionRanges']['push'](_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x5')](_0x223216));},{'priority':'low'}),_0x56d93c['on'](_0x2a5a('0x88'),(_0x58c2e6,_0x5a32cb)=>{const [_0x31f44d,_0x2ce581={}]=_0x5a32cb;if(!_0x760716)return;const _0x530da2=_0x2ce581['at']||0x0,_0x39a36f=_0x2ce581[_0x2a5a('0x56')]||0x1;_0x760716[_0x2a5a('0x5e')]=new Array(_0x39a36f)[_0x2a5a('0x2e')](_0x530da2)[_0x2a5a('0x5f')]((_0x1ed556,_0x17c762)=>_0x1ed556+_0x17c762);for(const {cell:_0x5aed58}of _0x56d93c[_0x2a5a('0x3f')](_0x31f44d,{'startRow':_0x530da2,'endRow':_0x530da2+_0x39a36f-0x1}))_0x760716[_0x2a5a('0x6f')]['push'](_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x5')](_0x5aed58));},{'priority':'low'}),_0x1062d6[_0x2a5a('0x2d')][_0x2a5a('0x24')](_0x5c1ed1=>{if(_0x5c1ed1[_0x2a5a('0x17')]&&_0x5c1ed1['subType'][_0x2a5a('0x74')](_0x2a5a('0xa1')))return _0x5c1ed1[_0x2a5a('0x14')]?{}:{'type':'insertion','content':_0x4b3e8e(_0x5f17a3['locale'],_0x2a5a('0x6b'))};});const _0x2a624b=()=>{};for(const _0x291693 of[_0x2a5a('0xa1'),_0x2a5a('0x11'),_0x2a5a('0x77'),'tablePasteCell'])_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0x41')](_0x2a5a('0x28'),_0x291693,_0x2a5a('0x51'),_0x2a624b),_0x1062d6[_0x2a5a('0x1a')]['registerCustomCallback'](_0x2a5a('0x43'),_0x291693,'join',_0x2a624b);_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0x41')](_0x2a5a('0x89'),_0x2a5a('0x18'),_0x2a5a('0x93'),_0x2a624b),_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0x41')](_0x2a5a('0x89'),_0x2a5a('0x18'),'accept',(_0x382499,_0x450a5c,_0x205979)=>{const _0x4aa570=_0x382499[_0x2a5a('0x5f')](_0x27ba71=>_0x27ba71[_0x2a5a('0x2b')]())[_0x2a5a('0x31')](_0x5265bb=>_0x5265bb),_0x1cb2f9=new Map(_0x4aa570[_0x2a5a('0x5f')](_0x57a22a=>[_0x57a22a,null]));if(_0x760716)for(const {element:_0x2cb0cb,attributes:_0x9ecbf}of _0x760716[_0x2a5a('0x65')])_0x9ecbf&&_0x1cb2f9[_0x2a5a('0x5c')](_0x2cb0cb,_0x9ecbf);else{if(_0x205979&&_0x205979[_0x2a5a('0x6')])for(const [_0x5c27fc,_0x58ab6e]of Object[_0x2a5a('0xa3')](_0x205979[_0x2a5a('0x6')])){const _0x155da6=_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x8f')][_0x2a5a('0x58')](_0x5c27fc),_0x1e36ce=_0x155da6?_0x155da6['getRange']()['getContainedElement']():null;_0x1e36ce&&_0x1cb2f9[_0x2a5a('0x5c')](_0x1e36ce,_0x58ab6e);}}_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x13')](_0x1ac517=>{for(const [_0xcd7421,_0x11ec40]of _0x1cb2f9)_0x1ac517['setAttributes']({...ae,..._0x11ec40},_0xcd7421);});});const _0x2b2a28=(_0xa0760f,_0x2d209e)=>{_0x1062d6['_suggestionFactory'][_0x2a5a('0x41')](_0xa0760f,_0x2a5a('0xa1'),_0x2d209e,(_0x4f7cb2,_0x581514,_0x2067bf)=>{_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x13')](_0x3fae47=>{const _0x18e01a=[];for(const _0x672108 of _0x4f7cb2){const _0x59241c=_0x672108[_0x2a5a('0x36')][_0x2a5a('0x1')];_0x59241c['is'](_0x2a5a('0x98'),_0x2a5a('0x81'))&&_0x18e01a['push'](_0x59241c);}_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0xa5')](_0xa0760f,null,_0x2d209e)(_0x4f7cb2,_0x581514,_0x2067bf);for(const _0x3ace2e of _0x18e01a)'$graveyard'!=_0x3ace2e[_0x2a5a('0x12')]['rootName']&&_0x3fae47['unwrap'](_0x3ace2e);});});};_0x2b2a28('insertion','accept'),_0x2b2a28(_0x2a5a('0x28'),_0x2a5a('0x93')),_0x2b2a28(_0x2a5a('0x43'),_0x2a5a('0x76')),_0x2b2a28(_0x2a5a('0x43'),_0x2a5a('0x93')),_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0x41')]('insertion',_0x2a5a('0x77'),_0x2a5a('0x93'),_0x30438c=>{const _0x542a78=_0x30438c[_0x2a5a('0x5f')](_0x31e20f=>_0x31e20f[_0x2a5a('0x2b')]()),_0x365d89=_0x542a78[0x0][_0x2a5a('0x8b')](_0x2a5a('0x2c')),{minRow:_0x30a83e,maxRow:_0x1bd787}=_0x393cf6[_0x2a5a('0x67')](_0x542a78);_0x56d93c[_0x2a5a('0x8d')](_0x365d89,{'at':_0x30a83e,'rows':_0x1bd787-_0x30a83e+0x1});}),_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0x41')](_0x2a5a('0x28'),_0x2a5a('0x11'),_0x2a5a('0x93'),_0x77adb7=>{const _0x18f8a4=_0x77adb7[_0x2a5a('0x5f')](_0x541dc4=>_0x541dc4[_0x2a5a('0x2b')]()),_0x55eaea=_0x18f8a4[0x0]['findAncestor']('table'),{minColumn:_0x51ad3b,maxColumn:_0x3b07b0}=_0x393cf6['_getCoordsForCells'](_0x18f8a4);_0x56d93c[_0x2a5a('0x1e')](_0x55eaea,{'at':_0x51ad3b,'columns':_0x3b07b0-_0x51ad3b+0x1});});const _0x1169f4=(_0x42ab56,_0x39836a)=>{if(!_0x39836a[_0x2a5a('0x17')]||!_0x39836a[_0x2a5a('0x17')]['startsWith'](_0x2a5a('0xa1')))return;const _0x5553c0=_0x39836a[_0x2a5a('0x9f')][_0x2a5a('0x2a')],_0x3ae88a=_0x1062d6[_0x2a5a('0x42')]()[_0x2a5a('0x31')](_0x112d54=>_0x112d54[_0x2a5a('0xa0')]&&_0x112d54[_0x2a5a('0x9f')]&&_0x112d54['attributes']['tablePasteChainId']==_0x5553c0);_0x3ae88a[_0x2a5a('0x6a')]&&_0x39836a[_0x2a5a('0x63')]()['length']!=_0x3ae88a['length']&&_0x3ae88a[_0x2a5a('0x55')]((_0x8a4213,_0x1615f7)=>(_0x8a4213[_0x2a5a('0x60')]=_0x1615f7,_0x1615f7['previous']=_0x8a4213,_0x1615f7));};function _0x5b676a(_0x362eb7,_0x30f24a=!0x0){const {id:_0x17eb87}=_0x1062d6[_0x2a5a('0x32')](_0x362eb7[_0x2a5a('0x70')]),_0x49de2c=[_0x2a5a('0x80'),_0x2a5a('0x1c')],_0x107fde=_0x1062d6[_0x2a5a('0x62')][_0x2a5a('0x9e')](_0x362eb7['markerName']);return _0x107fde&&_0x49de2c[_0x2a5a('0x1f')](_0x2a5a('0x19')),{'classes':_0x49de2c,'attributes':{'data-suggestion':_0x17eb87},'priority':_0x107fde&&_0x30f24a?0xbc2:0xbb8};}_0x1062d6['on'](_0x2a5a('0x16'),_0x1169f4,{'priority':_0x2a5a('0x4')}),_0x1062d6['on'](_0x2a5a('0x3a'),_0x1169f4,{'priority':_0x2a5a('0x4')}),_0x5f17a3['model'][_0x2a5a('0x69')][_0x2a5a('0x23')](()=>{let _0x21f64c=!0x1;const _0x163c44=Array[_0x2a5a('0x3d')](_0x5f17a3['model'][_0x2a5a('0x69')][_0x2a5a('0x8e')][_0x2a5a('0x8')]());for(const {name:_0xf82110,data:_0x2f4689}of _0x163c44){const {group:_0x4f0d73,type:_0x4fb89f,id:_0x4fac70}=_0x1062d6[_0x2a5a('0x32')](_0xf82110);if('suggestion'!=_0x4f0d73||_0x2a5a('0x43')!=_0x4fb89f||_0x2f4689[_0x2a5a('0xa4')])continue;if(!_0x1062d6[_0x2a5a('0x25')](_0x4fac70))continue;const _0x51ca9d=_0x1062d6[_0x2a5a('0x5d')](_0x4fac70)['getRanges'](),_0x2fc4f6=_0x5f17a3[_0x2a5a('0x90')]['get'](_0x2a5a('0x4c'))['me'];for(const _0x102444 of _0x1062d6['getSuggestions']()){if(!_0x102444[_0x2a5a('0xa0')]||_0x102444[_0x2a5a('0x1d')]!=_0x2fc4f6)continue;if(_0x2a5a('0x89')!=_0x102444['type']||'tablePasteCell'!=_0x102444['subType'])continue;if(_0x102444[_0x2a5a('0x85')]()['every'](_0x2a265f=>_0x51ca9d[_0x2a5a('0x82')](_0x445c43=>_0x445c43['containsRange'](_0x2a265f,!0x0))))for(const _0x482dac of _0x102444['getAllAdjacentSuggestions']())_0x482dac[_0x2a5a('0xa0')]&&(_0x482dac[_0x2a5a('0x93')](),_0x21f64c=!0x0);}}return _0x21f64c;}),_0x5f17a3['model'][_0x2a5a('0x69')][_0x2a5a('0x23')](_0x406603=>{const _0x14d5b0=_0x5f17a3[_0x2a5a('0x45')][_0x2a5a('0x58')](_0x2a5a('0xa2'));if(!_0x14d5b0||!_0x14d5b0[_0x2a5a('0xe')][_0x2a5a('0x4f')](_0x406603[_0x2a5a('0x97')]))return!0x1;let _0x1139f2=!0x1;const _0xacffb3=_0x5f17a3[_0x2a5a('0x90')]['get'](_0x2a5a('0x4c'))['me'],_0x8266f9=_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x69')][_0x2a5a('0x8e')][_0x2a5a('0x59')](),_0x57f982=Array['from'](_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x69')][_0x2a5a('0x8e')]['getChangedMarkers']())['filter'](({name:_0x535ee1,data:_0x5cbe5a})=>{const {group:_0x4dede9,subType:_0x1572be,authorId:_0x215c27}=_0x1062d6[_0x2a5a('0x32')](_0x535ee1);return'suggestion'==_0x4dede9&&_0x2a5a('0xa1')==_0x1572be&&_0x215c27==_0xacffb3['id']&&!_0x5cbe5a[_0x2a5a('0xa4')];});for(const _0x380237 of _0x8266f9){if(_0x2a5a('0x5b')!=_0x380237[_0x2a5a('0x86')]||_0x2a5a('0x81')!=_0x380237['name']||0x1!=_0x380237[_0x2a5a('0x6a')])continue;const _0x4a0253=_0x406603[_0x2a5a('0x8a')](_0x380237[_0x2a5a('0x10')],_0x380237[_0x2a5a('0x10')][_0x2a5a('0x94')](0x1));if(!_0x57f982['find'](({data:_0x201e44})=>_0x201e44[_0x2a5a('0x2f')][_0x2a5a('0x0')](_0x4a0253)))for(const {name:_0x4bae71,data:_0x1c145a}of _0x57f982)if(_0x4a0253['containsRange'](_0x1c145a[_0x2a5a('0x2f')])){_0x406603[_0x2a5a('0x6e')](_0x4bae71,{'range':_0x4a0253}),_0x1139f2=!0x0;break;}}return _0x1139f2;}),_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x69')][_0x2a5a('0x23')](_0x45590b=>{let _0x848b2b=!0x1;const _0x80a93d=_0x5f17a3['plugins'][_0x2a5a('0x58')](_0x2a5a('0x4c'))['me'],_0x42958d=_0x1062d6[_0x2a5a('0x42')]()[_0x2a5a('0x31')](_0x370ef4=>_0x370ef4[_0x2a5a('0xa0')]&&_0x370ef4['author']==_0x80a93d),_0x58ce11=new Set(),_0x4d862a=new Set();for(const _0x127776 of _0x42958d)if('tablePaste'==_0x127776[_0x2a5a('0x17')])for(const _0x46823e of _0x127776['getMarkers']()){const _0x12bd29=_0x46823e[_0x2a5a('0x4b')]()[_0x2a5a('0x2b')]();if(_0x12bd29){if(_0x12bd29['is'](_0x2a5a('0x98'),'tableCellSuggestion')&&ce(_0x12bd29)){_0x127776[_0x2a5a('0x96')](_0x46823e[_0x2a5a('0x72')]),_0x58ce11['add'](_0x12bd29),_0x848b2b=!0x0;const _0x57e825=_0x12bd29[_0x2a5a('0x92')],_0x303caf=_0x12bd29[_0x2a5a('0x3e')],_0x5c554c=_0x57e825&&_0x57e825['is'](_0x2a5a('0x98'),_0x2a5a('0x81')),_0x3e6cb8=_0x303caf&&_0x303caf['is'](_0x2a5a('0x98'),_0x2a5a('0x81'));_0x5c554c&&!_0x58ce11[_0x2a5a('0x4f')](_0x57e825)&&_0x4d862a[_0x2a5a('0x7')](_0x57e825),_0x3e6cb8&&!_0x58ce11[_0x2a5a('0x4f')](_0x303caf)&&_0x4d862a[_0x2a5a('0x7')](_0x303caf);}else _0x12bd29['is'](_0x2a5a('0x98'),'paragraph')&&_0x12bd29[_0x2a5a('0x7d')]&&(_0x127776[_0x2a5a('0x96')](_0x46823e['name']),_0x848b2b=!0x0);}}else{if('tablePasteCell'==_0x127776[_0x2a5a('0x17')]){if(!_0x127776[_0x2a5a('0x9f')]||!_0x127776[_0x2a5a('0x9f')][_0x2a5a('0x2a')])continue;const _0x2415c8=_0x127776[_0x2a5a('0x9f')][_0x2a5a('0x6')];if(_0x2415c8&&Object[_0x2a5a('0x54')](_0x2415c8)[_0x2a5a('0x6a')])continue;const _0x4fb843=_0x127776['attributes'][_0x2a5a('0x2a')];let _0x411cfd=!0x0,_0x52b76c=!0x0;for(const _0x4953d3 of _0x42958d)if(_0x4953d3[_0x2a5a('0x17')]&&_0x4953d3['subType'][_0x2a5a('0x74')]('tablePaste')){if(!_0x4953d3[_0x2a5a('0x9f')][_0x2a5a('0x2a')]){_0x52b76c=!0x1;break;}if(_0x4953d3['id']!=_0x127776['id']&&_0x4953d3[_0x2a5a('0x9f')][_0x2a5a('0x2a')]==_0x4fb843){_0x411cfd=!0x1;break;}}_0x52b76c&&_0x411cfd&&(_0x127776['removeMarkers'](),_0x848b2b=!0x0);}}for(const _0x54988f of _0x58ce11)_0x45590b[_0x2a5a('0x79')](_0x54988f);for(const _0x57d23d of _0x4d862a)_0x45590b['unwrap'](_0x57d23d);return _0x848b2b;}),_0x5f17a3['conversion'][_0x2a5a('0x44')](_0x2a5a('0x7b'))['markerToHighlight']({'model':_0x2a5a('0x34'),'view':(_0x3aaad0,_0x4cadf8)=>_0x5b676a(_0x3aaad0),'converterPriority':_0x2a5a('0x4')}),_0x5f17a3[_0x2a5a('0x83')]['for'](_0x2a5a('0x37'))[_0x2a5a('0x71')]({'model':_0x2a5a('0x34'),'view':(_0x17e7fd,_0x248878)=>_0x248878[_0x2a5a('0xf')][_0x2a5a('0x68')]?_0x5b676a(_0x17e7fd,!0x1):null,'converterPriority':_0x2a5a('0x4')});const _0x4e4cd9=_0x5f17a3['editing'][_0x2a5a('0xd')];this[_0x2a5a('0x6d')](_0x4e4cd9['document'],_0x2a5a('0x1b'),(_0x4385d0,_0x27b1ad)=>{const _0x3ef3f2=[];for(const _0x34c47f of _0x4e4cd9[_0x2a5a('0x15')](_0x27b1ad[_0x2a5a('0x50')])[_0x2a5a('0x99')]())_0x34c47f['is'](_0x2a5a('0x98'),'suggestion-td')&&_0x3ef3f2[_0x2a5a('0x1f')](_0x34c47f);_0x4e4cd9['change'](_0x1cfa66=>{for(const _0x2e1caf of _0x3ef3f2)_0x1cfa66[_0x2a5a('0x7a')](_0x1cfa66[_0x2a5a('0x15')](_0x2e1caf),_0x1cfa66[_0x2a5a('0x75')](_0x2e1caf)),_0x1cfa66[_0x2a5a('0x79')](_0x2e1caf);});});}}function ce(_0x4e8b6){if(_0x4e8b6[_0x2a5a('0x7d')])return!0x0;const _0x558878=_0x4e8b6[_0x2a5a('0x9c')](0x0);return _0x558878['is'](_0x2a5a('0x98'),_0x2a5a('0x46'))&&_0x558878[_0x2a5a('0x7d')];}function fe(_0x833b94,_0x330bcf={},_0x38b553){for(const {isAnchor:_0x1645ed,cellHeight:_0x30c0e0,cellWidth:_0x26d055}of _0x38b553[_0x2a5a('0x3f')](_0x833b94,{'includeAllSlots':!0x0,..._0x330bcf}))if(!_0x1645ed||0x1!=_0x30c0e0||0x1!=_0x26d055)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b02=['_descriptionFactory','formatGroupId','document','tableWidth','subType','resizeColumnWidths','*Format:*\x20resize\x20table','bind','commandParams','author','table','editor','enableCommand','resizeTable','registerDescriptionCallback','TrackChangesEditing','model','discard','plugins','accept','handleResizeTableWidthCommand','getTableColumnsWidths','getColumnGroupElement','selection','get','locale','resizeTableWidth','_suggestionFactory','has','data','registerCustomCallback','handleSuggestionDescription','getSuggestionCallback','getAttribute','columnWidths','format','formatBlock','markBlockFormat'];(function(_0x2b3c70,_0x5b0200){const _0x14c831=function(_0x345ea0){while(--_0x345ea0){_0x2b3c70['push'](_0x2b3c70['shift']());}};_0x14c831(++_0x5b0200);}(_0x5b02,0x119));const _0x14c8=function(_0x2b3c70,_0x5b0200){_0x2b3c70=_0x2b3c70-0x0;let _0x14c831=_0x5b02[_0x2b3c70];return _0x14c831;};import{Plugin as _0x5e58c4}from'ckeditor5/src/core';import{getTranslation as _0x492b09}from'../utils/common-translations';export default class wt extends _0x5e58c4{['afterInit'](){if(!this[_0x14c8('0x22')][_0x14c8('0x3')][_0x14c8('0xd')]('TableColumnResizeEditing'))return;const _0x306ff2=this[_0x14c8('0x22')][_0x14c8('0x3')][_0x14c8('0x9')](_0x14c8('0x0'));_0x306ff2[_0x14c8('0x23')]('resizeTableWidth',this[_0x14c8('0x5')][_0x14c8('0x1e')](this)),_0x306ff2[_0x14c8('0x23')](_0x14c8('0x1c'),this[_0x14c8('0x5')]['bind'](this)),_0x306ff2[_0x14c8('0xc')][_0x14c8('0xf')](_0x14c8('0x15'),_0x14c8('0x24'),_0x14c8('0x4'),_0x306ff2[_0x14c8('0xc')][_0x14c8('0x11')]('formatBlock',null,_0x14c8('0x2'))),_0x306ff2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14c8('0x24'),_0x14c8('0x2'),_0x306ff2[_0x14c8('0xc')][_0x14c8('0x11')](_0x14c8('0x15'),null,_0x14c8('0x4'))),_0x306ff2[_0x14c8('0x17')][_0x14c8('0x25')](this[_0x14c8('0x10')][_0x14c8('0x1e')](this));}[_0x14c8('0x5')](_0x4d378a,_0x386b71){const _0x135c33=this[_0x14c8('0x22')]['plugins'][_0x14c8('0x9')](_0x14c8('0x0')),_0x4052e9=this[_0x14c8('0x22')][_0x14c8('0x3')][_0x14c8('0x9')]('TableColumnResizeEditing'),_0x1ddf32=_0x386b71[_0x14c8('0x21')]||this[_0x14c8('0x22')][_0x14c8('0x1')][_0x14c8('0x19')][_0x14c8('0x8')]['getSelectedElement']();this['editor'][_0x14c8('0x1')]['change'](()=>{const _0x14b81c=_0x4052e9[_0x14c8('0x7')](_0x1ddf32);let _0x15be7c=_0x14b81c?_0x4052e9[_0x14c8('0x6')](_0x14b81c):null,_0x367d2c=_0x1ddf32[_0x14c8('0x12')](_0x14c8('0x1a'))||null;const _0x41122b=_0x386b71['tableWidth']||_0x367d2c,_0x16648a=_0x386b71[_0x14c8('0x13')]||_0x15be7c,_0x477cc8=this[_0x14c8('0x22')][_0x14c8('0x3')][_0x14c8('0x9')]('Users')['me'];for(const _0x2ac652 of _0x135c33['getSuggestions']()){const _0x40780f=_0x2ac652['getContainedElement']();if(_0x14c8('0x24')===_0x2ac652[_0x14c8('0x1b')]&&_0x40780f===_0x1ddf32){_0x2ac652[_0x14c8('0x20')]!==_0x477cc8&&_0x2ac652[_0x14c8('0x2')]();const _0x1478a6=_0x2ac652[_0x14c8('0xe')][_0x14c8('0x1f')];_0x367d2c=_0x1478a6[0x0][_0x14c8('0x1a')],_0x15be7c=_0x1478a6[0x0][_0x14c8('0x13')];break;}}_0x4d378a({'table':_0x1ddf32,'tableWidth':_0x41122b,'columnWidths':_0x16648a}),_0x135c33[_0x14c8('0x16')](_0x1ddf32,{'commandName':_0x14c8('0xb'),'commandParams':[{'tableWidth':_0x367d2c,'columnWidths':_0x15be7c}],'formatGroupId':_0x14c8('0x24')},[],_0x14c8('0x24'));});}[_0x14c8('0x10')](_0x53c2fa){const {data:_0x189b4f}=_0x53c2fa;if(_0x189b4f&&'resizeTable'===_0x189b4f[_0x14c8('0x18')]){const _0x4088a3=_0x14c8('0x1d');return{'type':_0x14c8('0x14'),'content':_0x492b09(this['editor'][_0x14c8('0xa')],_0x4088a3)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47fe=['nodeBefore','FORMAT_HEADER_ROW','table','_suggestionFactory','createRange','model','stop','FORMAT_REGULAR_ROW','highest','getColumnIndexes','_descriptionFactory','index','document','createPositionBefore','removeClass','markerNameToElements','enableCommand','setAttribute','activeMarkers','_splitMarkerName','setTableRowHeader','registerCustomCallback','data-suggestion','TableUtils','removeMarker:suggestion','getRowIndexes','getAttribute','name','findAncestor','from','parent','markerRange','getChild','editing','formatBlock','ck-suggestion-marker--active','item','cell','TrackChangesEditing','isBefore','headingRows','showSuggestionHighlights','plugins','nodeAfter','data','forceValue','consumable','createPositionAfter','downcastDispatcher','removeAttribute','markBlockFormat','markerName','commands','headingColumns','consume','locale','mapper','setTableColumnHeader','ck-suggestion-marker-','selection','get','editor','commandName','change','afterInit','childCount','end','first','getSuggestion','getCellLocation','addMarker:suggestion','FORMAT_HEADER_COLUMN','getSelectionAffectedTableCells','commandParams','TableEditing','createTableWalker','last','writer','requires','start','value','accept','addClass','*Format:*\x20%0','bindElementToMarker','has'];(function(_0x473513,_0x47fe99){const _0x2c90ca=function(_0x5623e5){while(--_0x5623e5){_0x473513['push'](_0x473513['shift']());}};_0x2c90ca(++_0x47fe99);}(_0x47fe,0x18f));const _0x2c90=function(_0x473513,_0x47fe99){_0x473513=_0x473513-0x0;let _0x2c90ca=_0x47fe[_0x473513];return _0x2c90ca;};import{Plugin as _0x45d683}from'ckeditor5/src/core';import _0x53f7cc from'./table';import{getTranslation as _0x16329d}from'../utils/common-translations';export default class pt extends _0x45d683{static get[_0x2c90('0x17')](){return[_0x53f7cc];}[_0x2c90('0x9')](){const _0x171665=this[_0x2c90('0x6')];if(!_0x171665['plugins'][_0x2c90('0x1e')](_0x2c90('0x13')))return;const _0x55e5f4=_0x171665[_0x2c90('0x0')],_0x223b1e=_0x171665[_0x2c90('0x49')]['get'](_0x2c90('0x45')),_0xa3bc32=_0x171665[_0x2c90('0x49')][_0x2c90('0x5')]('TableUtils'),_0x12e3e4=_0x171665[_0x2c90('0x49')]['get'](_0x53f7cc);function _0x28f7e5({showActiveMarker:_0x364b0a=!0x0,setDataAttribute:_0x9a4341=!0x0}={}){return(_0x557f86,_0x2990e6,_0x1e14fc)=>{const {type:_0x3f03f0,id:_0x2c09ac}=_0x223b1e[_0x2c90('0x32')](_0x2990e6[_0x2c90('0x52')]),_0x982feb=_0x223b1e[_0x2c90('0xd')](_0x2c09ac);if(!_0x982feb['data']||_0x2c90('0x2')!=_0x982feb[_0x2c90('0x4b')][_0x2c90('0x7')])return;if(_0x2990e6[_0x2c90('0x43')])return void _0x557f86[_0x2c90('0x25')]();if(!_0x1e14fc[_0x2c90('0x4d')][_0x2c90('0x55')](_0x2990e6[_0x2c90('0x3e')],_0x557f86[_0x2c90('0x3a')]))return;const _0x44b262=_0x2990e6[_0x2c90('0x3e')][_0x2c90('0x18')][_0x2c90('0x4a')],_0x54118d=_0x2990e6[_0x2c90('0x3e')][_0x2c90('0xb')][_0x2c90('0x1f')],_0x17de15=_0x44b262['parent'][_0x2c90('0x3d')],{column:_0x42f71c}=_0xa3bc32[_0x2c90('0xe')](_0x44b262),{column:_0x33e83d}=_0xa3bc32[_0x2c90('0xe')](_0x54118d);for(let _0x51a62c=_0x42f71c;_0x51a62c<=_0x33e83d;_0x51a62c++){const _0x2d87ce=_0xa3bc32[_0x2c90('0x14')](_0x17de15,{'column':_0x51a62c,'includeAllSlots':!0x1});for(const _0x1b0259 of _0x2d87ce){const _0x15caef=_0x1b0259[_0x2c90('0x44')],_0x35fa0b=_0x1e14fc[_0x2c90('0x1')]['toViewElement'](_0x15caef);_0x1e14fc[_0x2c90('0x16')][_0x2c90('0x1b')](_0x2c90('0x3')+_0x3f03f0,_0x35fa0b),_0x9a4341&&_0x1e14fc[_0x2c90('0x16')][_0x2c90('0x30')](_0x2c90('0x35'),_0x2c09ac,_0x35fa0b),_0x1e14fc[_0x2c90('0x1')][_0x2c90('0x1d')](_0x35fa0b,_0x2990e6[_0x2c90('0x52')]),_0x364b0a&&(_0x223b1e[_0x2c90('0x31')]['includes'](_0x2990e6[_0x2c90('0x52')])?_0x1e14fc[_0x2c90('0x16')][_0x2c90('0x1b')]('ck-suggestion-marker--active',_0x35fa0b):_0x1e14fc['writer'][_0x2c90('0x2d')](_0x2c90('0x42'),_0x35fa0b));}}};}_0x223b1e['enableCommand'](_0x2c90('0x33'),(_0x158608,_0x1a9e7b)=>{const _0x2b9449=_0xa3bc32[_0x2c90('0x11')](_0x171665[_0x2c90('0x24')][_0x2c90('0x2b')][_0x2c90('0x4')]),_0x1f1cf8=_0xa3bc32[_0x2c90('0x38')](_0x2b9449),_0x32630b=_0x2b9449[0x0][_0x2c90('0x3b')](_0x2c90('0x21')),_0x471c70=_0x32630b[_0x2c90('0x39')](_0x2c90('0x47'))||0x0,_0x493952=_0x1a9e7b&&null!==_0x1a9e7b['forceValue']?_0x1a9e7b[_0x2c90('0x4c')]:!_0x171665[_0x2c90('0x53')]['get'](_0x2c90('0x33'))['value'],_0x2f24b4=_0x493952?_0x1f1cf8[_0x2c90('0x15')]:_0x1f1cf8['first'],_0x3e3307=_0x32630b['getChild'](_0x2f24b4);let _0x3d889e;if(_0x493952){const _0xa8220f=_0x32630b[_0x2c90('0x3f')](_0x471c70);if(_0x3e3307[_0x2c90('0x2a')]<_0xa8220f['index'])return;_0x3d889e=_0x171665['model'][_0x2c90('0x23')](_0x171665[_0x2c90('0x24')][_0x2c90('0x2c')](_0xa8220f[_0x2c90('0x3f')](0x0)),_0x171665[_0x2c90('0x24')]['createPositionAfter'](_0x3e3307[_0x2c90('0x3f')](_0x3e3307[_0x2c90('0xa')]-0x1)));}else{const _0x18eb4d=_0x32630b[_0x2c90('0x3f')](_0x471c70-0x1);if(!_0x18eb4d)return;_0x3d889e=_0x171665[_0x2c90('0x24')][_0x2c90('0x23')](_0x171665[_0x2c90('0x24')][_0x2c90('0x2c')](_0x3e3307[_0x2c90('0x3f')](0x0)),_0x171665[_0x2c90('0x24')][_0x2c90('0x4e')](_0x18eb4d[_0x2c90('0x3f')](_0x18eb4d[_0x2c90('0xa')]-0x1)));}_0x171665['model'][_0x2c90('0x8')](()=>{_0x223b1e[_0x2c90('0x51')](_0x3d889e,{'commandName':_0x2c90('0x33'),'commandParams':[{'forceValue':_0x493952}]},[],_0x2c90('0x33'));});}),_0x223b1e[_0x2c90('0x2f')](_0x2c90('0x2'),(_0x4b56c0,_0x4d565f)=>{const _0x5e6bd9=_0x171665['plugins'][_0x2c90('0x5')](_0x2c90('0x36')),_0x442ea0=_0x5e6bd9[_0x2c90('0x11')](_0x171665[_0x2c90('0x24')]['document'][_0x2c90('0x4')]),_0x4857d9=_0x5e6bd9[_0x2c90('0x28')](_0x442ea0),_0x44c133=_0x442ea0[0x0][_0x2c90('0x3b')](_0x2c90('0x21')),_0x35ac41=_0x44c133[_0x2c90('0x39')](_0x2c90('0x54'))||0x0,_0x2d288d=_0x4d565f&&null!==_0x4d565f[_0x2c90('0x4c')]?_0x4d565f[_0x2c90('0x4c')]:!_0x171665[_0x2c90('0x53')][_0x2c90('0x5')](_0x2c90('0x2'))[_0x2c90('0x19')];let _0x242b4e;const _0x3a74ab=_0x44c133[_0x2c90('0x3f')](0x0),_0x2231a5=_0x2d288d?_0x4857d9[_0x2c90('0x15')]:_0x4857d9[_0x2c90('0xc')],_0x265639=_0x5e6bd9[_0x2c90('0x14')](_0x44c133,{'startRow':0x0,'column':_0x2231a5,'includeAllSlots':!0x1}),_0x2b7c87=Array[_0x2c90('0x3c')](_0x265639)[0x0][_0x2c90('0x44')];if(_0x2d288d){const _0x1bdbf6=_0x3a74ab[_0x2c90('0x3f')](_0x35ac41);if(_0x2b7c87[_0x2c90('0x46')](_0x1bdbf6))return;_0x242b4e=_0x171665[_0x2c90('0x24')][_0x2c90('0x23')](_0x171665['model'][_0x2c90('0x2c')](_0x1bdbf6),_0x171665[_0x2c90('0x24')]['createPositionAfter'](_0x2b7c87));}else{const _0x4c484b=_0x3a74ab[_0x2c90('0x3f')](_0x35ac41-0x1);if(!_0x4c484b)return;_0x242b4e=_0x171665[_0x2c90('0x24')][_0x2c90('0x23')](_0x171665[_0x2c90('0x24')][_0x2c90('0x2c')](_0x2b7c87),_0x171665[_0x2c90('0x24')]['createPositionAfter'](_0x4c484b));}_0x171665[_0x2c90('0x24')][_0x2c90('0x8')](()=>{_0x223b1e['markBlockFormat'](_0x242b4e,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0x2d288d}]},[],_0x2c90('0x2'));});}),_0x171665[_0x2c90('0x40')][_0x2c90('0x4f')]['on'](_0x2c90('0xf'),_0x28f7e5(),{'priority':'highest'}),_0x171665['data'][_0x2c90('0x4f')]['on']('addMarker:suggestion',(_0x2ecbd0,_0x4473ba,_0x221e13)=>{_0x221e13['options'][_0x2c90('0x48')]&&_0x28f7e5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2ecbd0,_0x4473ba,_0x221e13);},{'priority':_0x2c90('0x27')}),_0x171665[_0x2c90('0x40')][_0x2c90('0x4f')]['on'](_0x2c90('0x37'),(_0x4bd2b5,_0x207b5f,_0x242622)=>{const {type:_0x44751b,id:_0xc6492}=_0x223b1e[_0x2c90('0x32')](_0x207b5f['markerName']),_0x503b3d=_0x223b1e['getSuggestion'](_0xc6492);if(!_0x503b3d[_0x2c90('0x4b')]||_0x2c90('0x2')!=_0x503b3d['data'][_0x2c90('0x7')])return;const _0x556983=_0x242622[_0x2c90('0x1')][_0x2c90('0x2e')](_0x207b5f['markerName']);if(_0x556983)for(const _0x5e9da9 of _0x556983)_0x242622['writer'][_0x2c90('0x2d')](_0x2c90('0x3')+_0x44751b,_0x5e9da9),_0x242622[_0x2c90('0x16')]['removeClass'](_0x2c90('0x42'),_0x5e9da9),_0x242622[_0x2c90('0x16')][_0x2c90('0x50')](_0x2c90('0x35'),_0x5e9da9),_0x242622['mapper']['unbindElementFromMarkerName'](_0x5e9da9,_0x207b5f['markerName']);},{'priority':'highest'}),_0x223b1e[_0x2c90('0x29')]['registerDescriptionCallback'](_0x256b12=>{const {data:_0x54f058}=_0x256b12;if(_0x54f058){if(_0x2c90('0x33')==_0x54f058[_0x2c90('0x7')]){const _0x6ad74=_0x54f058[_0x2c90('0x12')][0x0]['forceValue'];return _0x561649(_0x16329d(_0x55e5f4,_0x6ad74?_0x2c90('0x20'):_0x2c90('0x26')));}if(_0x2c90('0x2')==_0x54f058[_0x2c90('0x7')]){const _0x425fc3=_0x54f058['commandParams'][0x0]['forceValue'];return _0x561649(_0x16329d(_0x55e5f4,_0x425fc3?_0x2c90('0x10'):'FORMAT_REGULAR_COLUMN'));}}function _0x561649(_0x2abcf5){return{'type':'format','content':_0x16329d(_0x55e5f4,_0x2c90('0x1c'),_0x2abcf5)};}});const _0x53ecb8=_0x12e3e4['_acceptFormatSuggestionCallbackFactory']();_0x223b1e[_0x2c90('0x22')][_0x2c90('0x34')](_0x2c90('0x41'),'setTableRowHeader',_0x2c90('0x1a'),_0x53ecb8),_0x223b1e[_0x2c90('0x22')][_0x2c90('0x34')](_0x2c90('0x41'),'setTableColumnHeader',_0x2c90('0x1a'),_0x53ecb8);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11a2=['highest','tableCell','execute','enableCommand','fromRange','cell','registerDescriptionCallback','getSelectionAffectedTableCells','horizontally','commands','TableUtils','mergeTableCellUp','find','TrackChangesEditing','getRanges','mergeTableCellLeft','setSelection','trackChanges','size','createTableWalker','stop','from','isEnabled','requires','locale','registerCustomCallback','markBlockFormat','markMultiRangeBlockFormat','_areMergableCells','editor','*Merge\x20cells*','element','return','containsRange','author','map','add','_areSelectedCellsMergable','selection','low','getFirstPosition','change','push','filter','findAncestor','*Split\x20cell:*\x20vertically','rootName','createRangeOn','accept','_acceptFormatSuggestionCallbackFactory','has','length','direction','mergeTableCellDown','splitTableCellHorizontally','plugins','get','root','model','afterInit','getAncestors','formatBlock','type','detach','value','format','commandName','_suggestionFactory','_tablePostFixingSubtypes','subType','document','set:isEnabled','refresh','mergeTableCells','mergeTableCellRight','isInContent','insertion','table','splitTableCellVertically'];(function(_0x4d4558,_0x11a220){const _0x5760d8=function(_0x473074){while(--_0x473074){_0x4d4558['push'](_0x4d4558['shift']());}};_0x5760d8(++_0x11a220);}(_0x11a2,0x1a8));const _0x5760=function(_0x4d4558,_0x11a220){_0x4d4558=_0x4d4558-0x0;let _0x5760d8=_0x11a2[_0x4d4558];return _0x5760d8;};import{Plugin as _0x196559}from'ckeditor5/src/core';import _0x20ebe0 from'./table';import{LiveRange as _0x2bf2c7}from'ckeditor5/src/engine';import{getTranslation as _0x4f7a4d}from'../utils/common-translations';export default class dt extends _0x196559{static get[_0x5760('0x49')](){return[_0x20ebe0];}[_0x5760('0x1e')](){const _0x3909e1=this[_0x5760('0x0')],_0x21de76=_0x3909e1[_0x5760('0x1d')][_0x5760('0x29')]['selection'],_0x4c18a3=_0x3909e1[_0x5760('0x4a')];if(!_0x3909e1[_0x5760('0x1a')][_0x5760('0x15')]('TableEditing'))return;const _0x486abd=_0x3909e1[_0x5760('0x1a')][_0x5760('0x1b')](_0x5760('0x3f')),_0x443a58=_0x3909e1[_0x5760('0x1a')]['get'](_0x5760('0x3c')),_0x8d708d=_0x3909e1[_0x5760('0x1a')][_0x5760('0x1b')](_0x20ebe0);_0x8d708d[_0x5760('0x27')][_0x5760('0xd')](_0x5760('0x2c')),_0x486abd['enableCommand']('mergeTableCells',()=>{const _0x38f2b=_0x443a58[_0x5760('0x39')](_0x3909e1[_0x5760('0x1d')][_0x5760('0x29')][_0x5760('0x9')]);_0x3909e1['model'][_0x5760('0xc')](()=>{_0x486abd['markMultiRangeBlockFormat'](_0x38f2b,{'commandName':_0x5760('0x2c'),'commandParams':[]},[],_0x5760('0x2c'));});}),_0x3909e1[_0x5760('0x3b')][_0x5760('0x1b')]('mergeTableCells')['on'](_0x5760('0x34'),(_0x4d2f29,_0x263f32)=>{_0x3909e1['commands'][_0x5760('0x1b')](_0x5760('0x43'))['value']&&(_0x263f32['length']>0x0&&_0x263f32[_0x263f32[_0x5760('0x16')]-0x1]&&_0x263f32[_0x263f32['length']-0x1]['forceDefaultExecution']||_0x486abd['_isForcedDefaultExecutionBlock']||this[_0x5760('0x8')]()||_0x4d2f29[_0x5760('0x46')]());},{'priority':_0x5760('0x32')});for(const _0x4b0ee9 of[_0x5760('0x3d'),_0x5760('0x2d'),_0x5760('0x18'),_0x5760('0x41')]){const _0x10ee46=_0x3909e1['commands'][_0x5760('0x1b')](_0x4b0ee9);_0x486abd[_0x5760('0x35')](_0x4b0ee9,()=>{const _0x3eff4d=_0x3909e1[_0x5760('0x1d')][_0x5760('0x29')][_0x5760('0x9')][_0x5760('0xb')]()['getAncestors']()['find'](_0x1bbc4a=>_0x1bbc4a['is'](_0x5760('0x2'),_0x5760('0x33'))),_0x3a0c59=_0x10ee46[_0x5760('0x23')];_0x3909e1[_0x5760('0x1d')][_0x5760('0xc')](()=>{_0x486abd[_0x5760('0x4d')]([_0x3eff4d,_0x3a0c59],{'commandName':_0x5760('0x2c'),'commandParams':[]},[],_0x5760('0x2c'));});});}for(const _0x4c509e of['splitTableCellVertically',_0x5760('0x19')]){const _0x132557=_0x3909e1[_0x5760('0x3b')][_0x5760('0x1b')](_0x4c509e);_0x486abd['enableCommand'](_0x4c509e,()=>{const _0x4f6b17=_0x443a58['getSelectionAffectedTableCells'](_0x3909e1[_0x5760('0x1d')][_0x5760('0x29')]['selection'])[0x0],_0x57532c=_0x4f6b17[_0x5760('0xf')](_0x5760('0x30')),{column:_0x2407bf,row:_0x30a8ce}=_0x443a58['getCellLocation'](_0x4f6b17);let _0x19ef5f=[];if(_0x5760('0x3a')==_0x132557[_0x5760('0x17')]){const _0x4dc781=_0x443a58[_0x5760('0x45')](_0x57532c,{'startRow':_0x30a8ce,'endRow':_0x30a8ce,'includeAllSlots':!0x0});_0x19ef5f=Array['from'](_0x4dc781)[_0x5760('0x6')](_0x54cc88=>_0x54cc88[_0x5760('0x37')]);}else{const _0x6caa72=_0x443a58['createTableWalker'](_0x57532c,{'column':_0x2407bf,'includeAllSlots':!0x0});_0x19ef5f=Array[_0x5760('0x47')](_0x6caa72)[_0x5760('0x6')](_0x2dd2da=>_0x2dd2da[_0x5760('0x37')]);}_0x3909e1[_0x5760('0x1d')][_0x5760('0xc')](_0x733309=>{_0x486abd[_0x5760('0x4c')](_0x733309[_0x5760('0x12')](_0x4f6b17),{'commandName':_0x4c509e,'commandParams':[]},_0x19ef5f,_0x4c509e);});});}_0x486abd['_descriptionFactory'][_0x5760('0x38')](_0x170905=>{const {data:_0x238cf7}=_0x170905;if(_0x238cf7)return _0x5760('0x2c')==_0x238cf7[_0x5760('0x25')]?{'type':_0x5760('0x24'),'content':_0x4f7a4d(_0x4c18a3,_0x5760('0x1'))}:void 0x0;}),_0x486abd['_descriptionFactory'][_0x5760('0x38')](_0x58ab98=>{const {data:_0xe1b14c}=_0x58ab98;if(_0xe1b14c)return _0x5760('0x31')==_0xe1b14c[_0x5760('0x25')]?{'type':'format','content':_0x4f7a4d(_0x4c18a3,_0x5760('0x10'))}:_0x5760('0x19')==_0xe1b14c[_0x5760('0x25')]?{'type':_0x5760('0x24'),'content':_0x4f7a4d(_0x4c18a3,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x542fbd=_0x8d708d[_0x5760('0x14')]();for(const _0x242e64 of[_0x5760('0x3d'),_0x5760('0x2d'),'mergeTableCellDown','mergeTableCellLeft'])_0x486abd[_0x5760('0x26')][_0x5760('0x4b')](_0x5760('0x20'),_0x242e64,_0x5760('0x13'),_0x542fbd);for(const _0x247015 of[_0x5760('0x31'),'splitTableCellHorizontally'])_0x486abd[_0x5760('0x26')][_0x5760('0x4b')](_0x5760('0x20'),_0x247015,_0x5760('0x13'),_0x542fbd);_0x486abd['_suggestionFactory'][_0x5760('0x4b')](_0x5760('0x20'),_0x5760('0x2c'),_0x5760('0x13'),_0x163873=>{_0x3909e1[_0x5760('0x1d')][_0x5760('0xc')](_0x2fdc92=>{const _0x785fb8=Array['from'](_0x21de76[_0x5760('0x40')]())['map'](_0x13a06c=>_0x2bf2c7[_0x5760('0x36')](_0x13a06c));_0x2fdc92['setSelection'](_0x163873),_0x3909e1['commands'][_0x5760('0x1b')](_0x5760('0x2c'))[_0x5760('0x2b')](),_0x3909e1[_0x5760('0x34')](_0x5760('0x2c'),{'forceDefaultExecution':!0x0});const _0x30d949=_0x785fb8[_0x5760('0xe')](_0x1ee161=>'$graveyard'!=_0x1ee161[_0x5760('0x1c')][_0x5760('0x11')]);_0x30d949[_0x5760('0x16')]>0x0&&_0x2fdc92[_0x5760('0x42')](_0x30d949);for(const _0xc9a5fa of _0x785fb8)_0xc9a5fa[_0x5760('0x22')]();});});for(const _0x310557 of[_0x5760('0x3d'),_0x5760('0x18'),_0x5760('0x41'),_0x5760('0x2d')]){const _0x879154=_0x3909e1['commands'][_0x5760('0x1b')](_0x310557);_0x879154['on'](_0x5760('0x2a'),(_0x5f4055,_0xfd1243,_0x35e0a9)=>{if(_0x35e0a9){const _0x1622bc=_0x3909e1[_0x5760('0x1d')][_0x5760('0x29')][_0x5760('0x9')][_0x5760('0xb')]()[_0x5760('0x1f')]()[_0x5760('0x3e')](_0x2c3c68=>_0x2c3c68['is']('element',_0x5760('0x33')));this['_areMergableCells'](_0x879154[_0x5760('0x23')],_0x1622bc)||(_0x5f4055[_0x5760('0x3')]=!0x1,_0x5f4055[_0x5760('0x46')]());}},{'priority':_0x5760('0xa')});}}[_0x5760('0x8')](){const _0x49daad=this[_0x5760('0x0')][_0x5760('0x3b')][_0x5760('0x1b')](_0x5760('0x2c')),_0x4b7518=this[_0x5760('0x0')][_0x5760('0x1a')][_0x5760('0x1b')](_0x5760('0x3c'));if(!_0x49daad[_0x5760('0x48')])return!0x1;const _0x4c1788=_0x4b7518[_0x5760('0x39')](this['editor']['model'][_0x5760('0x29')]['selection']);for(const _0x89497b of _0x4c1788)for(const _0x129ec1 of _0x4c1788)if(_0x89497b!=_0x129ec1&&!this[_0x5760('0x4e')](_0x89497b,_0x129ec1))return!0x1;return!0x0;}[_0x5760('0x4e')](_0x2bcbf3,_0x159104){const _0xf6fcfa=this[_0x5760('0x0')][_0x5760('0x1a')]['get']('TrackChangesEditing'),_0x568e0a=this[_0x5760('0x0')][_0x5760('0x1d')][_0x5760('0x12')](_0x2bcbf3),_0x762943=this[_0x5760('0x0')]['model'][_0x5760('0x12')](_0x159104),_0x5b7420=new Set(),_0x3276d8=new Set();for(const _0x567aef of _0xf6fcfa['getSuggestions']())if((_0x5760('0x2f')==_0x567aef[_0x5760('0x21')]||'deletion'==_0x567aef[_0x5760('0x21')]||'mergeTableCells'==_0x567aef[_0x5760('0x28')])&&_0x567aef[_0x5760('0x2e')])for(const _0x49ad22 of _0x567aef[_0x5760('0x40')]())_0x49ad22[_0x5760('0x4')](_0x568e0a,!0x0)&&_0x5b7420[_0x5760('0x7')](_0x567aef[_0x5760('0x21')]+':'+_0x567aef[_0x5760('0x5')]['id']),_0x49ad22[_0x5760('0x4')](_0x762943,!0x0)&&_0x3276d8['add'](_0x567aef['type']+':'+_0x567aef[_0x5760('0x5')]['id']);if(_0x5b7420[_0x5760('0x44')]!=_0x3276d8[_0x5760('0x44')])return!0x1;for(const _0x33c688 of _0x5b7420)if(!_0x3276d8[_0x5760('0x15')](_0x33c688))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x820a=['TrackChangesEditing','afterInit','commands','get','tableOfContents','plugins','ELEMENT_TABLE_OF_CONTENTS','_descriptionFactory','insertTableOfContents','locale'];(function(_0x5db145,_0x820a7f){const _0x1db6bd=function(_0x20ceab){while(--_0x20ceab){_0x5db145['push'](_0x5db145['shift']());}};_0x1db6bd(++_0x820a7f);}(_0x820a,0x1ed));const _0x1db6=function(_0x5db145,_0x820a7f){_0x5db145=_0x5db145-0x0;let _0x1db6bd=_0x820a[_0x5db145];return _0x1db6bd;};import{Plugin as _0xc6145f}from'ckeditor5/src/core';import{getTranslation as _0x592c12}from'../utils/common-translations';export default class bt extends _0xc6145f{[_0x1db6('0x8')](){const _0x2e2dbc=this['editor'];if(!_0x2e2dbc[_0x1db6('0x9')][_0x1db6('0x0')](_0x1db6('0x5')))return;_0x2e2dbc[_0x1db6('0x2')]['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x210209=_0x2e2dbc[_0x1db6('0x2')][_0x1db6('0x0')](_0x1db6('0x7')),_0x57e4c7=_0x2e2dbc[_0x1db6('0x6')];_0x210209[_0x1db6('0x4')]['registerElementLabel'](_0x1db6('0x1'),_0x40ba4f=>_0x592c12(_0x57e4c7,_0x1db6('0x3'),_0x40ba4f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x291a=['TableCellPropertiesEditing','plugins','enableCommand','getSuggestions','afterInit','tableCellVerticalAlignment','tableHeight','_descriptionFactory','handleDiscardAction','get','pluginName','getSuggestionCallback','tableBorderWidth','tableCellBorderWidth','registerCustomCallback','findAncestor','_getSuggestion','change','tableCellHeight','*Format:*\x20change\x20table\x20cell\x20properties','model','tableCellHorizontalAlignment','data','markBlockFormat','tableProperties','tableCellWidth','format','subType','discard','accept','TrackChangesEditing','getAttribute','editor','tableCellPadding','handleSuggestionDescription','tableCellProperties','_handlePropertyChange','_suggestionFactory','locale','formatBlock','document','selection','tableBorderStyle','table','join','*Format:*\x20change\x20table\x20properties','getFirstPosition','getSelectionAffectedTableCells','TablePropertiesEditing','has','nodeAfter','TrackChangesTableProperties','tableWidth','batch','tableCellBorderColor'];(function(_0x1c1aa9,_0x291a7b){const _0x583363=function(_0x4aa168){while(--_0x4aa168){_0x1c1aa9['push'](_0x1c1aa9['shift']());}};_0x583363(++_0x291a7b);}(_0x291a,0xda));const _0x5833=function(_0x1c1aa9,_0x291a7b){_0x1c1aa9=_0x1c1aa9-0x0;let _0x583363=_0x291a[_0x1c1aa9];return _0x583363;};import{Plugin as _0x39e53f}from'ckeditor5/src/core';import{getTranslation as _0x1f1501}from'../utils/common-translations';export default class Ct extends _0x39e53f{constructor(_0x27c18c){super(_0x27c18c),this[_0x5833('0x1a')]=['tableBorderColor',_0x5833('0x2c'),_0x5833('0xe'),'tableAlignment',_0x5833('0x36'),_0x5833('0x8'),'tableBackgroundColor'],this[_0x5833('0x25')]=[_0x5833('0x1'),'tableCellBorderStyle',_0x5833('0xf'),_0x5833('0x23'),_0x5833('0x1b'),_0x5833('0x14'),'tableCellBackgroundColor',_0x5833('0x17'),_0x5833('0x7')];}static get[_0x5833('0xc')](){return _0x5833('0x35');}[_0x5833('0x6')](){const _0x2f68d4=this[_0x5833('0x22')][_0x5833('0x3')][_0x5833('0xb')]('TrackChangesEditing');if(this['editor'][_0x5833('0x3')]['has'](_0x5833('0x32'))){for(const _0x19fb10 of this[_0x5833('0x1a')])_0x2f68d4[_0x5833('0x4')](_0x19fb10,(_0x3e4987,_0x5e1e48)=>{const _0x1fdaa7=this['editor'][_0x5833('0x16')][_0x5833('0x2a')][_0x5833('0x2b')][_0x5833('0x30')]()[_0x5833('0x11')](_0x5833('0x2d'));this[_0x5833('0x26')](_0x19fb10,[_0x1fdaa7],this[_0x5833('0x1a')],_0x5833('0x1a'),_0x3e4987,_0x5e1e48);});_0x2f68d4[_0x5833('0x27')]['registerCustomCallback'](_0x5833('0x29'),_0x5833('0x1a'),_0x5833('0x1f'),_0x2f68d4['_suggestionFactory'][_0x5833('0xd')](_0x5833('0x29'),null,_0x5833('0x1e'))),_0x2f68d4[_0x5833('0x27')][_0x5833('0x10')]('formatBlock',_0x5833('0x1a'),_0x5833('0x1e'),(_0xad0ebb,_0x23cf98)=>this[_0x5833('0xa')](this['tableProperties'],_0xad0ebb,_0x23cf98)),_0x2f68d4[_0x5833('0x27')][_0x5833('0x10')](_0x5833('0x29'),'tableProperties',_0x5833('0x2e'),()=>!0x1);}if(this[_0x5833('0x22')][_0x5833('0x3')][_0x5833('0x33')](_0x5833('0x2'))){for(const _0x348970 of this[_0x5833('0x25')])_0x2f68d4[_0x5833('0x4')](_0x348970,(_0x52e3d9,_0x2bc27c)=>{const _0x1fc21d=this[_0x5833('0x22')][_0x5833('0x3')][_0x5833('0xb')]('TableUtils')[_0x5833('0x31')](this[_0x5833('0x22')][_0x5833('0x16')][_0x5833('0x2a')][_0x5833('0x2b')]);this[_0x5833('0x26')](_0x348970,_0x1fc21d,this[_0x5833('0x25')],_0x5833('0x25'),_0x52e3d9,_0x2bc27c);});_0x2f68d4[_0x5833('0x27')][_0x5833('0x10')](_0x5833('0x29'),_0x5833('0x25'),_0x5833('0x1f'),_0x2f68d4[_0x5833('0x27')][_0x5833('0xd')](_0x5833('0x29'),null,'discard')),_0x2f68d4[_0x5833('0x27')][_0x5833('0x10')](_0x5833('0x29'),_0x5833('0x25'),_0x5833('0x1e'),(_0x344c59,_0x1e112a)=>this[_0x5833('0xa')](this[_0x5833('0x25')],_0x344c59,_0x1e112a)),_0x2f68d4[_0x5833('0x27')][_0x5833('0x10')](_0x5833('0x29'),'tableCellProperties',_0x5833('0x2e'),()=>!0x1);}_0x2f68d4[_0x5833('0x9')]['registerDescriptionCallback'](_0x35a97f=>this[_0x5833('0x24')](_0x35a97f));}[_0x5833('0x26')](_0x336477,_0x5a14b1,_0x4c5608,_0x239aba,_0x1ac394,_0xbb001a){const _0x393955=this[_0x5833('0x22')]['plugins'][_0x5833('0xb')](_0x5833('0x20'));this[_0x5833('0x22')][_0x5833('0x16')]['enqueueChange'](_0xbb001a[_0x5833('0x0')],()=>{for(const _0x390aa6 of _0x5a14b1){if(this['_getSuggestion'](_0x390aa6,_0x239aba))_0x1ac394(_0xbb001a);else{const _0x5d4ae1={};for(const _0x37e0aa of _0x4c5608){const _0x14b198=_0x390aa6[_0x5833('0x21')](_0x37e0aa);void 0x0!==_0x14b198&&(_0x5d4ae1[_0x37e0aa]=_0x14b198);}_0x1ac394(_0xbb001a),_0x393955[_0x5833('0x19')](_0x390aa6,{'commandParams':[_0x5d4ae1]},[],_0x239aba);}}});}[_0x5833('0xa')](_0x4d5055,_0x49cf37,_0x38b6c4){const _0x59cfc1=_0x49cf37[0x0]['start'][_0x5833('0x34')],_0x2d2f3e=_0x38b6c4['commandParams'][0x0];this[_0x5833('0x22')][_0x5833('0x16')][_0x5833('0x13')](_0x578c0c=>{for(const _0xaea808 of _0x4d5055)void 0x0!==_0x2d2f3e[_0xaea808]?_0x578c0c['setAttribute'](_0xaea808,_0x2d2f3e[_0xaea808],_0x59cfc1):_0x578c0c['removeAttribute'](_0xaea808,_0x59cfc1);});}['handleSuggestionDescription'](_0x4dfe0b){if(_0x4dfe0b[_0x5833('0x18')])switch(_0x4dfe0b[_0x5833('0x1d')]){case _0x5833('0x1a'):return{'type':_0x5833('0x1c'),'content':_0x1f1501(this[_0x5833('0x22')][_0x5833('0x28')],_0x5833('0x2f'))};case _0x5833('0x25'):return{'type':'format','content':_0x1f1501(this['editor'][_0x5833('0x28')],_0x5833('0x15'))};}}[_0x5833('0x12')](_0x2e70d9,_0x233bdb){const _0x23fcfb=this[_0x5833('0x22')]['plugins']['get'](_0x5833('0x20'));for(const _0x5ab9ad of _0x23fcfb[_0x5833('0x5')]({'skipNotAttached':!0x0})){const _0x36ba80=_0x5ab9ad['getContainedElement']();if(_0x5ab9ad['subType']===_0x233bdb&&_0x36ba80===_0x2e70d9)return _0x5ab9ad;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3965=['Template','get','plugins','insertTemplate','afterInit','TrackChangesEditing'];(function(_0x38703e,_0x396508){const _0x418d98=function(_0x29ad9e){while(--_0x29ad9e){_0x38703e['push'](_0x38703e['shift']());}};_0x418d98(++_0x396508);}(_0x3965,0x72));const _0x418d=function(_0x38703e,_0x396508){_0x38703e=_0x38703e-0x0;let _0x418d98=_0x3965[_0x38703e];return _0x418d98;};import{Plugin as _0x55f1ca}from'ckeditor5/src/core';export default class yt extends _0x55f1ca{[_0x418d('0x4')](){const _0x5deaf6=this['editor'];_0x5deaf6[_0x418d('0x2')]['has'](_0x418d('0x0'))&&_0x5deaf6[_0x418d('0x2')][_0x418d('0x1')](_0x418d('0x5'))['enableCommand'](_0x418d('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x172f=['title-content','getNearestSelectionRange','start','model','updateMarker','document','registerPostFixer','Title','has','differ','get','afterInit','_splitMarkerName','getChangedMarkers','locale','schema','editor','createRange','element','suggestion','isCollapsed','forward','ELEMENT_TITLE','end','newRange'];(function(_0x208fc9,_0x172f56){const _0x5464f5=function(_0x44b889){while(--_0x44b889){_0x208fc9['push'](_0x208fc9['shift']());}};_0x5464f5(++_0x172f56);}(_0x172f,0xec));const _0x5464=function(_0x208fc9,_0x172f56){_0x208fc9=_0x208fc9-0x0;let _0x5464f5=_0x172f[_0x208fc9];return _0x5464f5;};import{Plugin as _0x3b6884}from'ckeditor5/src/core';import{getTranslation as _0x3fbe8f}from'../utils/common-translations';export default class St extends _0x3b6884{[_0x5464('0x0')](){const _0x26302c=this[_0x5464('0x5')];if(!_0x26302c['plugins'][_0x5464('0x16')](_0x5464('0x15')))return;const _0x3da42a=_0x26302c['plugins'][_0x5464('0x18')]('TrackChangesEditing');_0x3da42a['_descriptionFactory']['registerElementLabel'](_0x5464('0xe'),()=>_0x3fbe8f(_0x26302c[_0x5464('0x3')],_0x5464('0xb'))),_0x26302c[_0x5464('0x11')][_0x5464('0x13')][_0x5464('0x14')](_0x34251c=>{let _0x33cdba=!0x1;const _0x324bb1=Array['from'](_0x26302c[_0x5464('0x11')][_0x5464('0x13')][_0x5464('0x17')][_0x5464('0x2')]());for(const {name:_0x2f2b80,data:_0x261fbc}of _0x324bb1){const {group:_0x2fc9d3}=_0x3da42a[_0x5464('0x1')](_0x2f2b80);if(_0x5464('0x8')!==_0x2fc9d3||!_0x261fbc[_0x5464('0xd')])continue;const _0x264e30=_0x261fbc[_0x5464('0xd')],_0x5dd8e5=_0x264e30[_0x5464('0xc')]['nodeBefore'];if(!_0x5dd8e5||!_0x5dd8e5['is'](_0x5464('0x7'),_0x5464('0xe')))continue;if(!_0x264e30[_0x5464('0x10')]['isTouching'](_0x264e30[_0x5464('0xc')]))continue;const _0x2c9ab0=_0x26302c[_0x5464('0x11')][_0x5464('0x4')][_0x5464('0xf')](_0x264e30['end'],_0x5464('0xa'));if(_0x2c9ab0&&_0x2c9ab0[_0x5464('0x9')]){const _0x21d0c5=_0x34251c[_0x5464('0x6')](_0x264e30[_0x5464('0x10')],_0x2c9ab0[_0x5464('0x10')]);_0x21d0c5['isEqual'](_0x264e30)||(_0x34251c[_0x5464('0x12')](_0x2f2b80,{'range':_0x21d0c5}),_0x33cdba=!0x0);}_0x33cdba||(_0x34251c['removeMarker'](_0x2f2b80),_0x33cdba=!0x0);}return _0x33cdba;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x337c=['editor','has','redo','plugins','TrackChangesEditing','undo','get','enableCommand'];(function(_0xade88b,_0x337cef){const _0x246685=function(_0x38e997){while(--_0x38e997){_0xade88b['push'](_0xade88b['shift']());}};_0x246685(++_0x337cef);}(_0x337c,0x91));const _0x2466=function(_0xade88b,_0x337cef){_0xade88b=_0xade88b-0x0;let _0x246685=_0x337c[_0xade88b];return _0x246685;};import{Plugin as _0x54bc53}from'ckeditor5/src/core';export default class It extends _0x54bc53{['afterInit'](){const _0x36a7d2=this[_0x2466('0x7')],_0x3668ef=_0x36a7d2[_0x2466('0x2')][_0x2466('0x5')](_0x2466('0x3'));_0x36a7d2[_0x2466('0x2')][_0x2466('0x0')]('UndoEditing')&&(_0x3668ef[_0x2466('0x6')](_0x2466('0x4')),_0x3668ef[_0x2466('0x6')](_0x2466('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28f8=['getAttribute','includes','consumable','hasAttribute','isLimit','createRangeOn','addHighlight','name','getItems','insert','nextSibling','mapper','test','parent','bindElementToMarker','get','plugins','ck-suggestion-marker--active','activeMarkers','markerRange','ck-suggestion-marker-','listItem','previousPosition','addClass','markerName','writer','schema','push','getWalker','element','elementEnd','toViewPosition','isBlock','model','toViewElement','TrackChangesEditing','start','getCustomProperty'];(function(_0x3f1c91,_0x28f826){const _0x14927c=function(_0xebb299){while(--_0xebb299){_0x3f1c91['push'](_0x3f1c91['shift']());}};_0x14927c(++_0x28f826);}(_0x28f8,0x16d));const _0x1492=function(_0x3f1c91,_0x28f826){_0x3f1c91=_0x3f1c91-0x0;let _0x14927c=_0x28f8[_0x3f1c91];return _0x14927c;};export function getRangesWithAttribute(_0x23c241,_0x4aa8f2,_0x680cd7){const _0x2e4033=[];for(const _0x5f1922 of _0x4aa8f2[_0x1492('0x17')]())_0x5f1922[_0x1492('0x12')](_0x23c241)&&_0x2e4033[_0x1492('0x4')](_0x680cd7[_0x1492('0x14')](_0x5f1922));return _0x2e4033;}export function getElementsAffectedByListItemRename(_0x5855bc){const _0x578a10=[];if(_0x5855bc['is']('element','listItem')){let _0x5b9f20=_0x5855bc[_0x1492('0x19')];for(;_0x5b9f20&&_0x5b9f20['is'](_0x1492('0x6'),_0x1492('0x24'))&&_0x5b9f20[_0x1492('0xf')]('listIndent')>0x0;)_0x578a10['push'](_0x5b9f20),_0x5b9f20=_0x5b9f20[_0x1492('0x19')];}return _0x578a10;}export function downcastSplitMergeMarker(_0x1d5867,_0x3faca6,{showActiveMarker:_0x4855b6=!0x0}={}){const _0x477bed=_0x1d5867[_0x1492('0x1f')][_0x1492('0x1e')](_0x1492('0xc'));return(_0x494148,_0x25ae17,_0x4bdb5b)=>{if(!_0x4bdb5b[_0x1492('0x11')][_0x1492('0x1b')](_0x25ae17['markerRange'],_0x494148[_0x1492('0x16')]))return;const _0xd60a90=_0x25ae17[_0x1492('0x22')][_0x1492('0x5')](),_0x1274e6=_0x25ae17[_0x1492('0x22')][_0x1492('0xd')],_0x3017b4=_0x1d5867[_0x1492('0xa')][_0x1492('0x3')];let _0xdc0434=null,_0x53fb2d=null,_0x5916ff=!0x1,_0x1cd2e2=!0x1;for(const _0x2a6731 of _0xd60a90){const _0x27e8fd=_0x2a6731['item'];_0x5916ff=_0x5916ff||_0x3017b4['isContent'](_0x27e8fd);const _0x8d1f8c=_0x4bdb5b[_0x1492('0x1a')][_0x1492('0xb')](_0x27e8fd);if(_0x8d1f8c&&_0x8d1f8c[_0x1492('0xe')](_0x1492('0x15')))return;_0x1492('0x7')==_0x2a6731['type']&&(_0x3017b4[_0x1492('0x9')](_0x27e8fd)&&!_0x3017b4[_0x1492('0x13')](_0x27e8fd)&&(_0x27e8fd[_0x1492('0x19')]||_0x1274e6['isAtEnd']?_0xdc0434&&_0xdc0434[_0x1492('0x1c')]==_0x27e8fd||(_0xdc0434=_0x27e8fd,_0x548197(_0x2a6731[_0x1492('0x25')]),_0x1cd2e2=!0x0):_0x53fb2d=_0x53fb2d||_0x2a6731['previousPosition']));}function _0x548197(_0x345244){const _0x595b56=_0x4bdb5b[_0x1492('0x2')]['createUIElement']('span',{'class':_0x1492('0x23')+_0x3faca6}),_0x360aea=_0x4bdb5b[_0x1492('0x1a')][_0x1492('0x8')](_0x345244);_0x4855b6&&_0x477bed[_0x1492('0x21')][_0x1492('0x10')](_0x25ae17[_0x1492('0x1')])&&_0x4bdb5b[_0x1492('0x2')][_0x1492('0x0')](_0x1492('0x20'),_0x595b56),_0x4bdb5b[_0x1492('0x2')][_0x1492('0x18')](_0x360aea,_0x595b56),_0x4bdb5b[_0x1492('0x1a')][_0x1492('0x1d')](_0x595b56,_0x25ae17['markerName']);}_0x5916ff||_0x1cd2e2||!_0x53fb2d||_0x548197(_0x53fb2d);};}
|