@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230911.0 → 0.0.0-nightly-20230913.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 +2 -2
- 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 _0x4308=['suggestion-td','document','getAttributes','previous','editing','findAncestor','tableCellBorderWidth','row','root','next','suggestion','differ','find','markMultiRangeBlockFormat','markers','tablePasteChainId','nodeAfter','columns','getShiftedBy','formatBlock','name','updateMarker','add','getSuggestionCallback','removeRows','options','documentSelection','getItems','suggestion:formatBlock:tablePasteCell','dataDowncast','newRange','subType','batch','move','start','includes','has','createPositionBefore','length','startsWith','tableCellHorizontalAlignment','for','tablePasteColumn','_isForcedDefaultExecutionBlock','element','tableCellBorderStyle','createRangeOn','createRangeIn','_splitMarkerName','isEqual','_suggestionFactory','_createdBatches','map','_descriptionFactory','tableCellBackgroundColor','getTableIfOnlyTableInContent','rowInsertionRanges','columnInsertionIndexes','unwrap','TrackChangesEditing','content','_tablePostFixingSubtypes','column','markMultiRangeDeletion','getSuggestion','tablePaste','rootName','table','tablePasteCell','requires','endRow','tableCell','last','schema','first','insertColumns','insertContent','model','markerName','getContainedElement','cell','getSuggestions','getRowIndexes','endColumn','showSuggestionHighlights','selection','ck-suggestion-marker--active','wrap','remove','author','getAllAdjacentSuggestions','containsRange','low','*Replace\x20table\x20cells*','oldRange','getChild','getColumnIndexes','getRanges','_getCoordsForCells','change','markerAttributes','suggestionLoaded','TableClipboard','Users','markerToHighlight','deletion','tableCellVerticalAlignment','some','tableCellPadding','clipboardOutput','attributes','discard','type','editingDowncast','end','getMarkers','reduce','_replaceTableSlotCell','rowInsertionIndexes','isInContent','afterInit','insertion','plugins','previousSibling','insert','getChangedMarkers','from','push','isEmpty','createTableWalker','accept','filter','insertRows','view','get','tableCellSuggestion','entries','keys','fill','TableUtils','set','getRange','registerPostFixer','paragraph','high','registerCustomCallback','stop','cells','markMultiRangeInsertion','conversion','locale','position','ck-suggestion-marker-insertion','createElement','ck-suggestion-marker','getChildren','deletionRanges','forceDefaultExecution','editor','getRows','removeMarker','$graveyard','trackChanges','tablePasteRow','elementToElement','every','commands'];(function(_0x1730ac,_0x430898){const _0x551ff2=function(_0x55d893){while(--_0x55d893){_0x1730ac['push'](_0x1730ac['shift']());}};_0x551ff2(++_0x430898);}(_0x4308,0xc5));const _0x551f=function(_0x1730ac,_0x430898){_0x1730ac=_0x1730ac-0x0;let _0x551ff2=_0x4308[_0x1730ac];return _0x551ff2;};import{getTranslation as _0x54105c}from'../utils/common-translations';import{Plugin as _0x19e520}from'ckeditor5/src/core';import{uid as _0x56a239,priorities as _0x1bb9ac}from'ckeditor5/src/utils';import _0x425bf0 from'./table';const le=[_0x551f('0x8f'),'tableCellBorderColor',_0x551f('0xf'),_0x551f('0xa'),_0x551f('0x4c'),_0x551f('0x18'),_0x551f('0x4e')],ae=Object['fromEntries'](le[_0x551f('0x16')](_0x33d4a8=>[_0x33d4a8,null]));export default class kt extends _0x19e520{static get[_0x551f('0x27')](){return[_0x425bf0];}[_0x551f('0x5a')](){const _0x5d8bd4=this['editor'];if(!_0x5d8bd4[_0x551f('0x5c')][_0x551f('0x6')](_0x551f('0x48')))return;const _0x274d92=_0x5d8bd4['plugins']['get'](_0x551f('0x1d')),_0x510534=_0x5d8bd4[_0x551f('0x5c')][_0x551f('0x68')](_0x551f('0x6d')),_0x4f7339=_0x5d8bd4[_0x551f('0x5c')][_0x551f('0x68')](_0x425bf0),_0x129c08=_0x5d8bd4[_0x551f('0x5c')][_0x551f('0x68')](_0x551f('0x48'));_0x4f7339[_0x551f('0x1f')][_0x551f('0x61')](_0x551f('0x85'),_0x551f('0xc')),_0x5d8bd4[_0x551f('0x2f')][_0x551f('0x2b')]['register'](_0x551f('0x69'),{'allowIn':_0x551f('0x29'),'allowContentOf':_0x551f('0x29'),'isLimit':!0x0}),_0x5d8bd4[_0x551f('0x77')][_0x551f('0x86')]({'model':_0x551f('0x69'),'view':_0x551f('0x89')});let _0x53ba1c=null;_0x5d8bd4[_0x551f('0x2f')]['on'](_0x551f('0x2e'),(_0x3ab84b,_0x407d29)=>{const [_0x18d6a1,_0xb6efb4]=_0x407d29,_0x175c34=_0x407d29[_0x407d29[_0x551f('0x8')]-0x1];_0x175c34&&_0x175c34[_0x551f('0x7f')]||_0x274d92[_0x551f('0xd')]||this[_0x551f('0x80')][_0x551f('0x88')][_0x551f('0x68')](_0x551f('0x84'))['value']&&function(_0x39d9d3,_0x5abda6,_0x456bc4,_0x438461,_0x2ecc24){if(_0x5abda6&&!_0x5abda6['is'](_0x551f('0xa3')))return!0x1;const _0x568863=_0x2ecc24[_0x551f('0x19')](_0x39d9d3,_0x456bc4);if(!_0x568863||!fe(_0x568863,void 0x0,_0x438461))return!0x1;const _0xaa7c74=_0x438461['getSelectionAffectedTableCells'](_0x456bc4[_0x551f('0x8a')][_0x551f('0x37')]);if(!_0xaa7c74[_0x551f('0x8')])return!0x1;const _0x6705e1=_0xaa7c74[0x0][_0x551f('0x8e')](_0x551f('0x25')),_0x3be573=_0x438461[_0x551f('0x34')](_0xaa7c74),_0x2327eb=_0x438461[_0x551f('0x42')](_0xaa7c74),_0x3c0842={'startRow':_0x3be573[_0x551f('0x2c')],'endRow':_0x3be573[_0x551f('0x2a')],'startColumn':_0x2327eb[_0x551f('0x2c')],'endColumn':_0x2327eb['last']};return 0x1==_0xaa7c74[_0x551f('0x8')]&&(_0x3c0842[_0x551f('0x28')]+=_0x438461[_0x551f('0x81')](_0x568863)-0x1,_0x3c0842[_0x551f('0x35')]+=_0x438461['getColumns'](_0x568863)-0x1),fe(_0x6705e1,_0x3c0842,_0x438461);}(_0x18d6a1,_0xb6efb4,_0x5d8bd4[_0x551f('0x2f')],_0x510534,_0x129c08)&&(_0x3ab84b[_0x551f('0x74')](),_0x53ba1c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5d8bd4[_0x551f('0x2f')][_0x551f('0x45')](()=>{_0x5d8bd4[_0x551f('0x2f')]['insertContent'](_0x407d29[0x0],_0x407d29[0x1],_0x407d29[0x2],{'forceDefaultExecution':!0x0});const _0xad84e7=_0x56a239(),{rowInsertionRanges:_0x39ac14,columnInsertionRanges:_0x1b522c,insertionRanges:_0x769b9c,deletionRanges:_0x4a6d28,cells:_0x33b145}=_0x53ba1c;_0x39ac14['length']&&_0x274d92[_0x551f('0x76')](_0x39ac14,_0x551f('0x85'),{'tablePasteChainId':_0xad84e7}),_0x1b522c[_0x551f('0x8')]&&_0x274d92['markMultiRangeInsertion'](_0x1b522c,_0x551f('0xc'),{'tablePasteChainId':_0xad84e7}),_0x769b9c[_0x551f('0x8')]&&_0x274d92[_0x551f('0x76')](_0x769b9c,_0x551f('0x23'),{'tablePasteChainId':_0xad84e7,'skipNestingCheck':!0x0}),_0x4a6d28[_0x551f('0x8')]&&_0x274d92[_0x551f('0x21')](_0x4a6d28,'tablePaste',{'tablePasteChainId':_0xad84e7,'skipNestingCheck':!0x0});const _0x53ce8a=_0x274d92[_0x551f('0x96')](_0x33b145[_0x551f('0x16')](({element:_0x1d5666})=>_0x1d5666),{'formatGroupId':_0x56a239()},[],_0x551f('0x26'),{'tablePasteChainId':_0xad84e7});if(_0x53ce8a){const _0x212916=_0x53ce8a[_0x551f('0x55')](),_0x3d766d=[];for(const {element:_0x13fe33,attributes:_0x1883ab}of _0x33b145){if(!_0x1883ab)continue;const _0x9eecc9=_0x5d8bd4[_0x551f('0x2f')][_0x551f('0x10')](_0x13fe33),_0x562b6b=_0x212916['find'](_0x96c542=>_0x96c542[_0x551f('0x6f')]()[_0x551f('0x13')](_0x9eecc9));_0x562b6b&&_0x3d766d['push']([_0x562b6b[_0x551f('0x9d')],_0x1883ab]);}_0x3d766d[_0x551f('0x8')]&&_0x53ce8a['setAttribute'](_0x551f('0x46'),Object['fromEntries'](_0x3d766d));}_0x53ba1c=null;}));},{'priority':_0x1bb9ac[_0x551f('0x72')]+0xa}),_0x5d8bd4[_0x551f('0x5c')][_0x551f('0x68')]('TableClipboard')['on'](_0x551f('0x57'),(_0xe0e7d7,_0x19ccaa)=>{const [_0x3125ed,_0x212f36,,_0x3e5fc1]=_0x19ccaa;if(!_0x53ba1c)return;_0xe0e7d7[_0x551f('0x74')]();const _0x413195=_0x3125ed[_0x551f('0x32')],_0x48bd0d=_0x212f36,_0x5d9c57=ce(_0x413195),_0x3cd40b=ce(_0x48bd0d);_0xe0e7d7['return']=_0x413195;let _0x5ccf81=null,_0x458746=null;if(_0x3cd40b||_0x5d9c57){if(_0x5d9c57&&!_0x3cd40b){_0x3e5fc1['remove'](_0x413195['getChild'](0x0));for(const _0x49b297 of Array[_0x551f('0x60')](_0x48bd0d['getChildren']()))_0x3e5fc1[_0x551f('0x5e')](_0x49b297,_0x413195,_0x551f('0x54'));const _0x188408=_0x53ba1c[_0x551f('0x58')][_0x551f('0x5')](_0x3125ed[_0x551f('0x90')]),_0x3eb64d=_0x53ba1c[_0x551f('0x1b')]['includes'](_0x3125ed[_0x551f('0x20')]);_0x188408||_0x3eb64d||(_0x5ccf81=_0x3e5fc1[_0x551f('0x11')](_0x413195));}else _0x3cd40b&&!_0x5d9c57&&(_0x458746=_0x3e5fc1[_0x551f('0x11')](_0x413195));}else{const _0x11f869=_0x3e5fc1[_0x551f('0x7b')](_0x551f('0x69')),_0x5552df=_0x3e5fc1[_0x551f('0x7b')](_0x551f('0x69'));_0x3e5fc1[_0x551f('0x39')](_0x3e5fc1[_0x551f('0x11')](_0x413195),_0x5552df),_0x3e5fc1[_0x551f('0x5e')](_0x11f869,_0x413195,0x0);for(const _0x42ccd7 of Array[_0x551f('0x60')](_0x48bd0d[_0x551f('0x7d')]()))_0x3e5fc1[_0x551f('0x5e')](_0x42ccd7,_0x11f869,_0x551f('0x54'));_0x5ccf81=_0x3e5fc1[_0x551f('0x10')](_0x11f869),_0x458746=_0x3e5fc1[_0x551f('0x10')](_0x5552df);}const _0x2f0093=Array['from'](_0x48bd0d[_0x551f('0x8b')]())[_0x551f('0x65')](([_0x186f0b])=>le[_0x551f('0x5')](_0x186f0b));_0x53ba1c[_0x551f('0x75')]['push']({'element':_0x413195,'attributes':_0x2f0093[_0x551f('0x8')]?Object['fromEntries'](_0x2f0093):null}),_0x5ccf81&&_0x53ba1c['insertionRanges'][_0x551f('0x61')](_0x5ccf81),_0x458746&&_0x53ba1c[_0x551f('0x7e')]['push'](_0x458746);},{'priority':_0x551f('0x72')}),_0x510534['on'](_0x551f('0x2d'),(_0x509f71,_0x3c0183)=>{const [_0x148f59,_0x1a6ef9={}]=_0x3c0183;if(!_0x53ba1c)return;const _0xb0e6c6=_0x1a6ef9['at']||0x0,_0x3725ee=_0x1a6ef9[_0x551f('0x9a')]||0x1;_0x53ba1c['columnInsertionIndexes']=new Array(_0x3725ee)[_0x551f('0x6c')](_0xb0e6c6)[_0x551f('0x16')]((_0x5a44f4,_0x2d0e09)=>_0x5a44f4+_0x2d0e09);for(const {cell:_0x11196f}of _0x510534[_0x551f('0x63')](_0x148f59,{'startColumn':_0xb0e6c6,'endColumn':_0xb0e6c6+_0x3725ee-0x1}))_0x53ba1c['columnInsertionRanges']['push'](_0x5d8bd4['model'][_0x551f('0x10')](_0x11196f));},{'priority':_0x551f('0x3e')}),_0x510534['on'](_0x551f('0x66'),(_0x4f679a,_0x273d97)=>{const [_0xe6a49d,_0x545b69={}]=_0x273d97;if(!_0x53ba1c)return;const _0x1716fc=_0x545b69['at']||0x0,_0x10671c=_0x545b69['rows']||0x1;_0x53ba1c[_0x551f('0x58')]=new Array(_0x10671c)[_0x551f('0x6c')](_0x1716fc)[_0x551f('0x16')]((_0xf8c376,_0x2b2e79)=>_0xf8c376+_0x2b2e79);for(const {cell:_0x38e414}of _0x510534[_0x551f('0x63')](_0xe6a49d,{'startRow':_0x1716fc,'endRow':_0x1716fc+_0x10671c-0x1}))_0x53ba1c[_0x551f('0x1a')][_0x551f('0x61')](_0x5d8bd4[_0x551f('0x2f')][_0x551f('0x10')](_0x38e414));},{'priority':'low'}),_0x274d92[_0x551f('0x17')]['registerDescriptionCallback'](_0x28da45=>{if(_0x28da45[_0x551f('0x1')]&&_0x28da45[_0x551f('0x1')][_0x551f('0x9')](_0x551f('0x23')))return _0x28da45['previous']?{}:{'type':_0x551f('0x5b'),'content':_0x54105c(_0x5d8bd4[_0x551f('0x78')],_0x551f('0x3f'))};});const _0x323bfb=()=>!0x1;for(const _0xcb4a99 of[_0x551f('0x23'),_0x551f('0xc'),'tablePasteRow',_0x551f('0x26')])_0x274d92[_0x551f('0x14')]['registerCustomCallback'](_0x551f('0x5b'),_0xcb4a99,'join',_0x323bfb),_0x274d92[_0x551f('0x14')][_0x551f('0x73')]('deletion',_0xcb4a99,'join',_0x323bfb),_0x274d92[_0x551f('0x14')][_0x551f('0x73')](_0x551f('0x9c'),_0xcb4a99,'join',_0x323bfb);_0x274d92['_suggestionFactory']['registerCustomCallback'](_0x551f('0x9c'),_0x551f('0x26'),_0x551f('0x51'),_0x323bfb),_0x274d92[_0x551f('0x14')][_0x551f('0x73')](_0x551f('0x9c'),_0x551f('0x26'),'accept',(_0x245930,_0x52a7c7,_0x1542db)=>{const _0x388e48=_0x245930[_0x551f('0x16')](_0x86ba78=>_0x86ba78[_0x551f('0x31')]())[_0x551f('0x65')](_0x28c410=>_0x28c410),_0x23d618=new Map(_0x388e48[_0x551f('0x16')](_0x189b0d=>[_0x189b0d,null]));if(_0x53ba1c)for(const {element:_0x21553c,attributes:_0x159987}of _0x53ba1c[_0x551f('0x75')])_0x159987&&_0x23d618['set'](_0x21553c,_0x159987);else{if(_0x1542db&&_0x1542db[_0x551f('0x46')])for(const [_0x1a3002,_0x39fd16]of Object[_0x551f('0x6a')](_0x1542db[_0x551f('0x46')])){const _0x1f726d=_0x5d8bd4[_0x551f('0x2f')][_0x551f('0x97')][_0x551f('0x68')](_0x1a3002),_0x893770=_0x1f726d?_0x1f726d[_0x551f('0x6f')]()['getContainedElement']():null;_0x893770&&_0x23d618[_0x551f('0x6e')](_0x893770,_0x39fd16);}}_0x5d8bd4[_0x551f('0x2f')][_0x551f('0x45')](_0x40452c=>{for(const [_0x4bdba3,_0x337bee]of _0x23d618)_0x40452c['setAttributes']({...ae,..._0x337bee},_0x4bdba3);});});const _0x16e014=(_0x5f15b6,_0x3f93ef)=>{_0x274d92[_0x551f('0x14')][_0x551f('0x73')](_0x5f15b6,'tablePaste',_0x3f93ef,(_0x2b7c5a,_0x3d4a38,_0x822654)=>{_0x5d8bd4['model'][_0x551f('0x45')](_0xa57b26=>{const _0x1ff820=[];for(const _0x4412d1 of _0x2b7c5a){const _0x1f337f=_0x4412d1[_0x551f('0x4')][_0x551f('0x99')];_0x1f337f['is'](_0x551f('0xe'),'tableCellSuggestion')&&_0x1ff820[_0x551f('0x61')](_0x1f337f);}_0x274d92[_0x551f('0x14')][_0x551f('0xa0')](_0x5f15b6,null,_0x3f93ef)(_0x2b7c5a,_0x3d4a38,_0x822654);for(const _0xa620b4 of _0x1ff820)_0x551f('0x83')!=_0xa620b4[_0x551f('0x91')][_0x551f('0x24')]&&_0xa57b26[_0x551f('0x1c')](_0xa620b4);});});};_0x16e014(_0x551f('0x5b'),_0x551f('0x64')),_0x16e014('insertion',_0x551f('0x51')),_0x16e014(_0x551f('0x4b'),_0x551f('0x64')),_0x16e014('deletion',_0x551f('0x51')),_0x274d92[_0x551f('0x14')]['registerCustomCallback']('insertion','tablePasteRow',_0x551f('0x51'),_0x2579a6=>{const _0x306b18=_0x2579a6[_0x551f('0x16')](_0x3e8271=>_0x3e8271[_0x551f('0x31')]()),_0x179a18=_0x306b18[0x0][_0x551f('0x8e')](_0x551f('0x25')),{minRow:_0x226aa9,maxRow:_0x1cc295}=_0x4f7339['_getCoordsForCells'](_0x306b18);_0x510534[_0x551f('0xa1')](_0x179a18,{'at':_0x226aa9,'rows':_0x1cc295-_0x226aa9+0x1});}),_0x274d92[_0x551f('0x14')][_0x551f('0x73')]('insertion','tablePasteColumn',_0x551f('0x51'),_0x455350=>{const _0x2b02e1=_0x455350[_0x551f('0x16')](_0x91c84b=>_0x91c84b[_0x551f('0x31')]()),_0x4d47ac=_0x2b02e1[0x0][_0x551f('0x8e')](_0x551f('0x25')),{minColumn:_0x12f647,maxColumn:_0x1389cb}=_0x4f7339[_0x551f('0x44')](_0x2b02e1);_0x510534['removeColumns'](_0x4d47ac,{'at':_0x12f647,'columns':_0x1389cb-_0x12f647+0x1});});const _0x166964=(_0x4cd22d,_0x1ecb58)=>{if(!_0x1ecb58['subType']||!_0x1ecb58['subType'][_0x551f('0x9')](_0x551f('0x23')))return;const _0x36091f=_0x1ecb58['attributes']['tablePasteChainId'],_0x48a46b=_0x274d92['getSuggestions']()[_0x551f('0x65')](_0x3d15f5=>_0x3d15f5[_0x551f('0x59')]&&_0x3d15f5[_0x551f('0x50')]&&_0x3d15f5[_0x551f('0x50')][_0x551f('0x98')]==_0x36091f);_0x48a46b[_0x551f('0x8')]&&_0x1ecb58[_0x551f('0x3c')]()[_0x551f('0x8')]!=_0x48a46b[_0x551f('0x8')]&&_0x48a46b[_0x551f('0x56')]((_0xe1c95d,_0x4ad8c7)=>(_0xe1c95d[_0x551f('0x92')]=_0x4ad8c7,_0x4ad8c7[_0x551f('0x8c')]=_0xe1c95d,_0x4ad8c7));};function _0x5678c7(_0x265022,_0x134325=!0x0){const {id:_0x16ea78}=_0x274d92['_splitMarkerName'](_0x265022[_0x551f('0x30')]),_0x1cda74=[_0x551f('0x7c'),_0x551f('0x7a')],_0x591e79=_0x274d92['activeMarkers']['includes'](_0x265022[_0x551f('0x30')]);return _0x591e79&&_0x1cda74[_0x551f('0x61')](_0x551f('0x38')),{'classes':_0x1cda74,'attributes':{'data-suggestion':_0x16ea78},'priority':_0x591e79&&_0x134325?0xbc2:0xbb8};}_0x274d92['on'](_0x551f('0x47'),_0x166964,{'priority':_0x551f('0x72')}),_0x274d92['on']('suggestionUnloaded',_0x166964,{'priority':_0x551f('0x72')}),_0x5d8bd4['model'][_0x551f('0x8a')][_0x551f('0x70')](()=>{let _0x136553=!0x1;const _0x5f19e4=Array['from'](_0x5d8bd4[_0x551f('0x2f')][_0x551f('0x8a')][_0x551f('0x94')][_0x551f('0x5f')]());for(const {name:_0x1da946,data:_0x407471}of _0x5f19e4){const {group:_0x6c7c20,type:_0xd39b3e,id:_0x461df9}=_0x274d92[_0x551f('0x12')](_0x1da946);if(_0x551f('0x93')!=_0x6c7c20||_0x551f('0x4b')!=_0xd39b3e||_0x407471[_0x551f('0x40')])continue;if(!_0x274d92['hasSuggestion'](_0x461df9))continue;const _0x3819a5=_0x274d92[_0x551f('0x22')](_0x461df9)[_0x551f('0x43')](),_0x3fbe36=_0x5d8bd4[_0x551f('0x5c')]['get'](_0x551f('0x49'))['me'];for(const _0x54e255 of _0x274d92[_0x551f('0x33')]()){if(!_0x54e255[_0x551f('0x59')]||_0x54e255[_0x551f('0x3b')]!=_0x3fbe36)continue;if('formatBlock'!=_0x54e255[_0x551f('0x52')]||_0x551f('0x26')!=_0x54e255[_0x551f('0x1')])continue;if(_0x54e255[_0x551f('0x43')]()[_0x551f('0x87')](_0x595b4e=>_0x3819a5[_0x551f('0x4d')](_0x350397=>_0x350397[_0x551f('0x3d')](_0x595b4e,!0x0))))for(const _0x4104ae of _0x54e255[_0x551f('0x3c')]())_0x4104ae[_0x551f('0x59')]&&(_0x4104ae[_0x551f('0x51')](),_0x136553=!0x0);}}return _0x136553;}),_0x5d8bd4[_0x551f('0x2f')]['document']['registerPostFixer'](_0x4712c0=>{const _0x4f44d3=_0x5d8bd4[_0x551f('0x88')][_0x551f('0x68')]('redo');if(!_0x4f44d3||!_0x4f44d3[_0x551f('0x15')][_0x551f('0x6')](_0x4712c0[_0x551f('0x2')]))return!0x1;let _0x23af07=!0x1;const _0x1d4fdf=_0x5d8bd4[_0x551f('0x5c')]['get'](_0x551f('0x49'))['me'],_0x54280=_0x5d8bd4[_0x551f('0x2f')][_0x551f('0x8a')][_0x551f('0x94')]['getChanges'](),_0x86dedc=Array[_0x551f('0x60')](_0x5d8bd4['model'][_0x551f('0x8a')][_0x551f('0x94')][_0x551f('0x5f')]())[_0x551f('0x65')](({name:_0x167722,data:_0x2329c5})=>{const {group:_0x3877a1,subType:_0x269d9a,authorId:_0x45f0d8}=_0x274d92[_0x551f('0x12')](_0x167722);return _0x551f('0x93')==_0x3877a1&&_0x551f('0x23')==_0x269d9a&&_0x45f0d8==_0x1d4fdf['id']&&!_0x2329c5['oldRange'];});for(const _0x24e003 of _0x54280){if('insert'!=_0x24e003[_0x551f('0x52')]||_0x551f('0x69')!=_0x24e003['name']||0x1!=_0x24e003[_0x551f('0x8')])continue;const _0x2eef04=_0x4712c0['createRange'](_0x24e003[_0x551f('0x79')],_0x24e003[_0x551f('0x79')][_0x551f('0x9b')](0x1));if(!_0x86dedc[_0x551f('0x95')](({data:_0x2aba00})=>_0x2aba00[_0x551f('0x0')]['isEqual'](_0x2eef04)))for(const {name:_0x41a38a,data:_0x384552}of _0x86dedc)if(_0x2eef04[_0x551f('0x3d')](_0x384552['newRange'])){_0x4712c0[_0x551f('0x9e')](_0x41a38a,{'range':_0x2eef04}),_0x23af07=!0x0;break;}}return _0x23af07;}),_0x5d8bd4['model'][_0x551f('0x8a')]['registerPostFixer'](_0x56fb6c=>{let _0x4683b0=!0x1;const _0x1216ef=_0x5d8bd4[_0x551f('0x5c')][_0x551f('0x68')](_0x551f('0x49'))['me'],_0x50357b=_0x274d92[_0x551f('0x33')]()[_0x551f('0x65')](_0x3a6d28=>_0x3a6d28[_0x551f('0x59')]&&_0x3a6d28[_0x551f('0x3b')]==_0x1216ef),_0x3f6651=new Set(),_0x1a05e3=new Set();for(const _0x1adbdd of _0x50357b)if('tablePaste'==_0x1adbdd['subType'])for(const _0x24535c of _0x1adbdd['getMarkers']()){const _0x3c559b=_0x24535c[_0x551f('0x6f')]()['getContainedElement']();if(_0x3c559b){if(_0x3c559b['is']('element',_0x551f('0x69'))&&ce(_0x3c559b)){_0x1adbdd[_0x551f('0x82')](_0x24535c[_0x551f('0x9d')]),_0x3f6651[_0x551f('0x9f')](_0x3c559b),_0x4683b0=!0x0;const _0x3ca6ab=_0x3c559b['nextSibling'],_0x9351dc=_0x3c559b[_0x551f('0x5d')],_0x5922c1=_0x3ca6ab&&_0x3ca6ab['is'](_0x551f('0xe'),'tableCellSuggestion'),_0x20e372=_0x9351dc&&_0x9351dc['is']('element',_0x551f('0x69'));_0x5922c1&&!_0x3f6651['has'](_0x3ca6ab)&&_0x1a05e3[_0x551f('0x9f')](_0x3ca6ab),_0x20e372&&!_0x3f6651[_0x551f('0x6')](_0x9351dc)&&_0x1a05e3[_0x551f('0x9f')](_0x9351dc);}else _0x3c559b['is'](_0x551f('0xe'),_0x551f('0x71'))&&_0x3c559b[_0x551f('0x62')]&&(_0x1adbdd[_0x551f('0x82')](_0x24535c['name']),_0x4683b0=!0x0);}}else{if(_0x551f('0x26')==_0x1adbdd[_0x551f('0x1')]){if(!_0x1adbdd[_0x551f('0x50')]||!_0x1adbdd['attributes'][_0x551f('0x98')])continue;const _0x70f57d=_0x1adbdd[_0x551f('0x50')][_0x551f('0x46')];if(_0x70f57d&&Object[_0x551f('0x6b')](_0x70f57d)[_0x551f('0x8')])continue;const _0x1081a0=_0x1adbdd[_0x551f('0x50')][_0x551f('0x98')];let _0x540b4f=!0x0,_0x21ce4a=!0x0;for(const _0x25110f of _0x50357b)if(_0x25110f[_0x551f('0x1')]&&_0x25110f[_0x551f('0x1')][_0x551f('0x9')](_0x551f('0x23'))){if(!_0x25110f['attributes'][_0x551f('0x98')]){_0x21ce4a=!0x1;break;}if(_0x25110f['id']!=_0x1adbdd['id']&&_0x25110f['attributes'][_0x551f('0x98')]==_0x1081a0){_0x540b4f=!0x1;break;}}_0x21ce4a&&_0x540b4f&&(_0x1adbdd['removeMarkers'](),_0x4683b0=!0x0);}}for(const _0x5c7925 of _0x3f6651)_0x56fb6c['remove'](_0x5c7925);for(const _0x24455c of _0x1a05e3)_0x56fb6c[_0x551f('0x1c')](_0x24455c);return _0x4683b0;}),_0x5d8bd4['conversion'][_0x551f('0xb')](_0x551f('0x53'))[_0x551f('0x4a')]({'model':_0x551f('0xa5'),'view':(_0x554099,_0x325662)=>_0x5678c7(_0x554099),'converterPriority':_0x551f('0x72')}),_0x5d8bd4[_0x551f('0x77')][_0x551f('0xb')](_0x551f('0xa6'))[_0x551f('0x4a')]({'model':_0x551f('0xa5'),'view':(_0x49222c,_0x331597)=>_0x331597[_0x551f('0xa2')][_0x551f('0x36')]?_0x5678c7(_0x49222c,!0x1):null,'converterPriority':_0x551f('0x72')});const _0x40ae2f=_0x5d8bd4[_0x551f('0x8d')][_0x551f('0x67')];this['listenTo'](_0x40ae2f[_0x551f('0x8a')],_0x551f('0x4f'),(_0x2cf29a,_0x15d78e)=>{const _0x36f860=[];for(const _0x197c60 of _0x40ae2f['createRangeIn'](_0x15d78e[_0x551f('0x1e')])[_0x551f('0xa4')]())_0x197c60['is']('element',_0x551f('0x89'))&&_0x36f860[_0x551f('0x61')](_0x197c60);_0x40ae2f[_0x551f('0x45')](_0x30fcec=>{for(const _0x39182a of _0x36f860)_0x30fcec[_0x551f('0x3')](_0x30fcec[_0x551f('0x11')](_0x39182a),_0x30fcec[_0x551f('0x7')](_0x39182a)),_0x30fcec[_0x551f('0x3a')](_0x39182a);});});}}function ce(_0x4f21a0){if(_0x4f21a0['isEmpty'])return!0x0;const _0x4cb25f=_0x4f21a0[_0x551f('0x41')](0x0);return _0x4cb25f['is'](_0x551f('0xe'),_0x551f('0x71'))&&_0x4cb25f[_0x551f('0x62')];}function fe(_0x4de9d6,_0x3f41ba={},_0x13476c){for(const {isAnchor:_0x2036e5,cellHeight:_0x1cd871,cellWidth:_0x5cf217}of _0x13476c[_0x551f('0x63')](_0x4de9d6,{'includeAllSlots':!0x0,..._0x3f41ba}))if(!_0x2036e5||0x1!=_0x1cd871||0x1!=_0x5cf217)return!0x1;return!0x0;}
|
|
23
|
+
const _0x78ad=['suggestion','getRows','ck-suggestion-marker-insertion','markerAttributes','getChild','tableCellBorderStyle','stop','removeColumns','deletion','dataDowncast','tableCellBorderColor','containsRange','suggestion-td','last','tableCellBorderWidth','_splitMarkerName','getSuggestion','markMultiRangeInsertion','first','locale','getAttributes','rows','tablePasteColumn','paragraph','*Replace\x20table\x20cells*','createPositionBefore','fromEntries','clipboardOutput','redo','plugins','cells','getMarkers','tableCellVerticalAlignment','TrackChangesEditing','some','options','nextSibling','getColumns','registerCustomCallback','TableUtils','Users','column','documentSelection','commands','_suggestionFactory','set','_isForcedDefaultExecutionBlock','markMultiRangeDeletion','tablePasteRow','filter','insert','unwrap','author','startsWith','discard','getRange','previousSibling','createElement','getColumnIndexes','createRange','schema','includes','trackChanges','attributes','reduce','conversion','registerDescriptionCallback','ck-suggestion-marker','fill','position','get','value','add','oldRange','markers','getSuggestionCallback','accept','suggestion:formatBlock:tablePasteCell','return','registerPostFixer','markerToHighlight','getTableIfOnlyTableInContent','tableCellPadding','_replaceTableSlotCell','_getCoordsForCells','requires','getChangedMarkers','$graveyard','root','rowInsertionIndexes','type','join','insertContent','subType','element','editingDowncast','keys','insertRows','for','formatBlock','low','createRangeIn','endRow','push','endColumn','listenTo','getAllAdjacentSuggestions','insertColumns','nodeAfter','getRowIndexes','has','insertionRanges','removeRows','next','tablePaste','getContainedElement','editor','remove','from','rowInsertionRanges','columnInsertionIndexes','markerName','row','deletionRanges','updateMarker','high','map','createRangeOn','_descriptionFactory','length','change','table','tablePasteChainId','ck-suggestion-marker--active','cell','tableCellSuggestion','setAttribute','getChildren','differ','end','wrap','name','getChanges','createTableWalker','getItems','TableClipboard','forceDefaultExecution','editing','insertion','findAncestor','selection','_createdBatches','removeMarker','model','previous','batch','document','isEqual','suggestionUnloaded','setAttributes','tablePasteCell','isInContent','activeMarkers','isEmpty','tableCellHorizontalAlignment','getSuggestions','hasSuggestion','afterInit'];(function(_0x5babd0,_0x78adfa){const _0x5aeb41=function(_0xc6cba3){while(--_0xc6cba3){_0x5babd0['push'](_0x5babd0['shift']());}};_0x5aeb41(++_0x78adfa);}(_0x78ad,0x1e5));const _0x5aeb=function(_0x5babd0,_0x78adfa){_0x5babd0=_0x5babd0-0x0;let _0x5aeb41=_0x78ad[_0x5babd0];return _0x5aeb41;};import{getTranslation as _0x270876}from'../utils/common-translations';import{Plugin as _0x3f52a2}from'ckeditor5/src/core';import{uid as _0x176aca,priorities as _0x1d9972}from'ckeditor5/src/utils';import _0x503104 from'./table';const le=[_0x5aeb('0x21'),_0x5aeb('0x1d'),_0x5aeb('0x18'),_0x5aeb('0xf'),_0x5aeb('0x33'),'tableCellBackgroundColor',_0x5aeb('0x65')],ae=Object[_0x5aeb('0x2d')](le[_0x5aeb('0x91')](_0x4cfce6=>[_0x4cfce6,null]));export default class kt extends _0x3f52a2{static get[_0x5aeb('0x68')](){return[_0x503104];}[_0x5aeb('0x12')](){const _0x1420c5=this[_0x5aeb('0x87')];if(!_0x1420c5[_0x5aeb('0x30')][_0x5aeb('0x81')](_0x5aeb('0xa4')))return;const _0x5cc5d3=_0x1420c5['plugins']['get'](_0x5aeb('0x34')),_0x1de589=_0x1420c5['plugins'][_0x5aeb('0x59')](_0x5aeb('0x3a')),_0x66fc44=_0x1420c5[_0x5aeb('0x30')][_0x5aeb('0x59')](_0x503104),_0x3c0fc4=_0x1420c5[_0x5aeb('0x30')][_0x5aeb('0x59')](_0x5aeb('0xa4'));_0x66fc44['_tablePostFixingSubtypes']['push'](_0x5aeb('0x43'),_0x5aeb('0x29')),_0x1420c5[_0x5aeb('0x4')][_0x5aeb('0x4f')]['register'](_0x5aeb('0x9a'),{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1420c5[_0x5aeb('0x54')]['elementToElement']({'model':_0x5aeb('0x9a'),'view':_0x5aeb('0x1f')});let _0xb6122c=null;_0x1420c5[_0x5aeb('0x4')]['on'](_0x5aeb('0x6f'),(_0x141b74,_0x362d84)=>{const [_0x3363d0,_0x4edc94]=_0x362d84,_0x44257a=_0x362d84[_0x362d84[_0x5aeb('0x94')]-0x1];_0x44257a&&_0x44257a[_0x5aeb('0xa5')]||_0x5cc5d3[_0x5aeb('0x41')]||this[_0x5aeb('0x87')]['commands']['get'](_0x5aeb('0x51'))[_0x5aeb('0x5a')]&&function(_0x17d6ea,_0x5cca9a,_0x1fc564,_0x15d309,_0x1c32fa){if(_0x5cca9a&&!_0x5cca9a['is'](_0x5aeb('0x3d')))return!0x1;const _0x4720fc=_0x1c32fa[_0x5aeb('0x64')](_0x17d6ea,_0x1fc564);if(!_0x4720fc||!fe(_0x4720fc,void 0x0,_0x15d309))return!0x1;const _0x4de050=_0x15d309['getSelectionAffectedTableCells'](_0x1fc564[_0x5aeb('0x7')][_0x5aeb('0x1')]);if(!_0x4de050['length'])return!0x1;const _0x526d29=_0x4de050[0x0][_0x5aeb('0x0')]('table'),_0x4e0371=_0x15d309[_0x5aeb('0x80')](_0x4de050),_0x1891f1=_0x15d309[_0x5aeb('0x4d')](_0x4de050),_0x5b10ea={'startRow':_0x4e0371['first'],'endRow':_0x4e0371[_0x5aeb('0x20')],'startColumn':_0x1891f1[_0x5aeb('0x25')],'endColumn':_0x1891f1['last']};return 0x1==_0x4de050[_0x5aeb('0x94')]&&(_0x5b10ea[_0x5aeb('0x79')]+=_0x15d309[_0x5aeb('0x14')](_0x4720fc)-0x1,_0x5b10ea[_0x5aeb('0x7b')]+=_0x15d309[_0x5aeb('0x38')](_0x4720fc)-0x1),fe(_0x526d29,_0x5b10ea,_0x15d309);}(_0x3363d0,_0x4edc94,_0x1420c5[_0x5aeb('0x4')],_0x1de589,_0x3c0fc4)&&(_0x141b74['stop'](),_0xb6122c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1420c5[_0x5aeb('0x4')][_0x5aeb('0x95')](()=>{_0x1420c5[_0x5aeb('0x4')][_0x5aeb('0x6f')](_0x362d84[0x0],_0x362d84[0x1],_0x362d84[0x2],{'forceDefaultExecution':!0x0});const _0x1cde2d=_0x176aca(),{rowInsertionRanges:_0x1fd189,columnInsertionRanges:_0x325d70,insertionRanges:_0x153375,deletionRanges:_0x15866a,cells:_0x276d31}=_0xb6122c;_0x1fd189['length']&&_0x5cc5d3[_0x5aeb('0x24')](_0x1fd189,_0x5aeb('0x43'),{'tablePasteChainId':_0x1cde2d}),_0x325d70[_0x5aeb('0x94')]&&_0x5cc5d3[_0x5aeb('0x24')](_0x325d70,_0x5aeb('0x29'),{'tablePasteChainId':_0x1cde2d}),_0x153375[_0x5aeb('0x94')]&&_0x5cc5d3[_0x5aeb('0x24')](_0x153375,_0x5aeb('0x85'),{'tablePasteChainId':_0x1cde2d,'skipNestingCheck':!0x0}),_0x15866a[_0x5aeb('0x94')]&&_0x5cc5d3[_0x5aeb('0x42')](_0x15866a,_0x5aeb('0x85'),{'tablePasteChainId':_0x1cde2d,'skipNestingCheck':!0x0});const _0x37265b=_0x5cc5d3['markMultiRangeBlockFormat'](_0x276d31[_0x5aeb('0x91')](({element:_0xf48bb1})=>_0xf48bb1),{'formatGroupId':_0x176aca()},[],_0x5aeb('0xb'),{'tablePasteChainId':_0x1cde2d});if(_0x37265b){const _0x28cbb8=_0x37265b[_0x5aeb('0x32')](),_0x2cd291=[];for(const {element:_0x3011d9,attributes:_0x283863}of _0x276d31){if(!_0x283863)continue;const _0x1c8e01=_0x1420c5['model'][_0x5aeb('0x92')](_0x3011d9),_0x3474af=_0x28cbb8['find'](_0x2e6d8b=>_0x2e6d8b['getRange']()[_0x5aeb('0x8')](_0x1c8e01));_0x3474af&&_0x2cd291[_0x5aeb('0x7a')]([_0x3474af[_0x5aeb('0xa0')],_0x283863]);}_0x2cd291[_0x5aeb('0x94')]&&_0x37265b[_0x5aeb('0x9b')](_0x5aeb('0x16'),Object['fromEntries'](_0x2cd291));}_0xb6122c=null;}));},{'priority':_0x1d9972['high']+0xa}),_0x1420c5['plugins'][_0x5aeb('0x59')](_0x5aeb('0xa4'))['on'](_0x5aeb('0x66'),(_0x3c9de7,_0x133f4a)=>{const [_0x15acf6,_0x312e46,,_0x2a568a]=_0x133f4a;if(!_0xb6122c)return;_0x3c9de7[_0x5aeb('0x19')]();const _0x17f1da=_0x15acf6[_0x5aeb('0x99')],_0x3b4e9d=_0x312e46,_0x4a533d=ce(_0x17f1da),_0x364e50=ce(_0x3b4e9d);_0x3c9de7[_0x5aeb('0x61')]=_0x17f1da;let _0xdcae9=null,_0x48facc=null;if(_0x364e50||_0x4a533d){if(_0x4a533d&&!_0x364e50){_0x2a568a[_0x5aeb('0x88')](_0x17f1da['getChild'](0x0));for(const _0x186aba of Array[_0x5aeb('0x89')](_0x3b4e9d[_0x5aeb('0x9c')]()))_0x2a568a['insert'](_0x186aba,_0x17f1da,_0x5aeb('0x9e'));const _0x2c28e1=_0xb6122c[_0x5aeb('0x6c')]['includes'](_0x15acf6[_0x5aeb('0x8d')]),_0x1ee372=_0xb6122c[_0x5aeb('0x8b')][_0x5aeb('0x50')](_0x15acf6[_0x5aeb('0x3c')]);_0x2c28e1||_0x1ee372||(_0xdcae9=_0x2a568a[_0x5aeb('0x78')](_0x17f1da));}else _0x364e50&&!_0x4a533d&&(_0x48facc=_0x2a568a['createRangeIn'](_0x17f1da));}else{const _0x42ba3b=_0x2a568a['createElement'](_0x5aeb('0x9a')),_0x1e47db=_0x2a568a[_0x5aeb('0x4c')](_0x5aeb('0x9a'));_0x2a568a[_0x5aeb('0x9f')](_0x2a568a[_0x5aeb('0x78')](_0x17f1da),_0x1e47db),_0x2a568a[_0x5aeb('0x45')](_0x42ba3b,_0x17f1da,0x0);for(const _0x24dde8 of Array[_0x5aeb('0x89')](_0x3b4e9d['getChildren']()))_0x2a568a[_0x5aeb('0x45')](_0x24dde8,_0x42ba3b,_0x5aeb('0x9e'));_0xdcae9=_0x2a568a[_0x5aeb('0x92')](_0x42ba3b),_0x48facc=_0x2a568a[_0x5aeb('0x92')](_0x1e47db);}const _0xddefa3=Array[_0x5aeb('0x89')](_0x3b4e9d[_0x5aeb('0x27')]())[_0x5aeb('0x44')](([_0x1ecd52])=>le[_0x5aeb('0x50')](_0x1ecd52));_0xb6122c[_0x5aeb('0x31')]['push']({'element':_0x17f1da,'attributes':_0xddefa3[_0x5aeb('0x94')]?Object[_0x5aeb('0x2d')](_0xddefa3):null}),_0xdcae9&&_0xb6122c[_0x5aeb('0x82')][_0x5aeb('0x7a')](_0xdcae9),_0x48facc&&_0xb6122c[_0x5aeb('0x8e')][_0x5aeb('0x7a')](_0x48facc);},{'priority':_0x5aeb('0x90')}),_0x1de589['on'](_0x5aeb('0x7e'),(_0x2510e6,_0x485eb1)=>{const [_0x2e5086,_0x21ea1d={}]=_0x485eb1;if(!_0xb6122c)return;const _0x1baa56=_0x21ea1d['at']||0x0,_0x52cb41=_0x21ea1d['columns']||0x1;_0xb6122c['columnInsertionIndexes']=new Array(_0x52cb41)[_0x5aeb('0x57')](_0x1baa56)[_0x5aeb('0x91')]((_0x372719,_0x1c17f2)=>_0x372719+_0x1c17f2);for(const {cell:_0x4654f0}of _0x1de589['createTableWalker'](_0x2e5086,{'startColumn':_0x1baa56,'endColumn':_0x1baa56+_0x52cb41-0x1}))_0xb6122c['columnInsertionRanges']['push'](_0x1420c5[_0x5aeb('0x4')][_0x5aeb('0x92')](_0x4654f0));},{'priority':_0x5aeb('0x77')}),_0x1de589['on'](_0x5aeb('0x74'),(_0xfb9221,_0xa6f647)=>{const [_0x1e8134,_0x47cbc5={}]=_0xa6f647;if(!_0xb6122c)return;const _0x23430a=_0x47cbc5['at']||0x0,_0x224271=_0x47cbc5[_0x5aeb('0x28')]||0x1;_0xb6122c[_0x5aeb('0x6c')]=new Array(_0x224271)[_0x5aeb('0x57')](_0x23430a)[_0x5aeb('0x91')]((_0x3325ff,_0x335864)=>_0x3325ff+_0x335864);for(const {cell:_0x27e51d}of _0x1de589[_0x5aeb('0xa2')](_0x1e8134,{'startRow':_0x23430a,'endRow':_0x23430a+_0x224271-0x1}))_0xb6122c[_0x5aeb('0x8a')][_0x5aeb('0x7a')](_0x1420c5[_0x5aeb('0x4')][_0x5aeb('0x92')](_0x27e51d));},{'priority':_0x5aeb('0x77')}),_0x5cc5d3[_0x5aeb('0x93')][_0x5aeb('0x55')](_0x1ef933=>{if(_0x1ef933[_0x5aeb('0x70')]&&_0x1ef933[_0x5aeb('0x70')][_0x5aeb('0x48')](_0x5aeb('0x85')))return _0x1ef933['previous']?{}:{'type':_0x5aeb('0xa7'),'content':_0x270876(_0x1420c5[_0x5aeb('0x26')],_0x5aeb('0x2b'))};});const _0x22452b=()=>!0x1;for(const _0x3e65a8 of[_0x5aeb('0x85'),_0x5aeb('0x29'),_0x5aeb('0x43'),_0x5aeb('0xb')])_0x5cc5d3[_0x5aeb('0x3f')][_0x5aeb('0x39')](_0x5aeb('0xa7'),_0x3e65a8,_0x5aeb('0x6e'),_0x22452b),_0x5cc5d3[_0x5aeb('0x3f')][_0x5aeb('0x39')](_0x5aeb('0x1b'),_0x3e65a8,_0x5aeb('0x6e'),_0x22452b),_0x5cc5d3[_0x5aeb('0x3f')]['registerCustomCallback'](_0x5aeb('0x76'),_0x3e65a8,_0x5aeb('0x6e'),_0x22452b);_0x5cc5d3['_suggestionFactory'][_0x5aeb('0x39')](_0x5aeb('0x76'),'tablePasteCell',_0x5aeb('0x49'),_0x22452b),_0x5cc5d3['_suggestionFactory'][_0x5aeb('0x39')](_0x5aeb('0x76'),_0x5aeb('0xb'),_0x5aeb('0x5f'),(_0x5491c9,_0x5879a2,_0x3926a3)=>{const _0x4ba69d=_0x5491c9[_0x5aeb('0x91')](_0x29e4a5=>_0x29e4a5[_0x5aeb('0x86')]())['filter'](_0x1b6280=>_0x1b6280),_0x504e7e=new Map(_0x4ba69d[_0x5aeb('0x91')](_0x108927=>[_0x108927,null]));if(_0xb6122c)for(const {element:_0x4326b8,attributes:_0x2d513c}of _0xb6122c[_0x5aeb('0x31')])_0x2d513c&&_0x504e7e[_0x5aeb('0x40')](_0x4326b8,_0x2d513c);else{if(_0x3926a3&&_0x3926a3['markerAttributes'])for(const [_0x49e323,_0x2d7dc1]of Object['entries'](_0x3926a3[_0x5aeb('0x16')])){const _0x4a72c4=_0x1420c5[_0x5aeb('0x4')][_0x5aeb('0x5d')][_0x5aeb('0x59')](_0x49e323),_0x5eda00=_0x4a72c4?_0x4a72c4[_0x5aeb('0x4a')]()[_0x5aeb('0x86')]():null;_0x5eda00&&_0x504e7e[_0x5aeb('0x40')](_0x5eda00,_0x2d7dc1);}}_0x1420c5[_0x5aeb('0x4')]['change'](_0x552b39=>{for(const [_0x574c01,_0x298d85]of _0x504e7e)_0x552b39[_0x5aeb('0xa')]({...ae,..._0x298d85},_0x574c01);});});const _0x53b692=(_0x1cf768,_0x32edb9)=>{_0x5cc5d3[_0x5aeb('0x3f')][_0x5aeb('0x39')](_0x1cf768,_0x5aeb('0x85'),_0x32edb9,(_0x531de6,_0x288d41,_0x10d9fd)=>{_0x1420c5['model']['change'](_0x3a8cc9=>{const _0x532526=[];for(const _0x53f548 of _0x531de6){const _0x26f011=_0x53f548['start'][_0x5aeb('0x7f')];_0x26f011['is'](_0x5aeb('0x71'),_0x5aeb('0x9a'))&&_0x532526[_0x5aeb('0x7a')](_0x26f011);}_0x5cc5d3[_0x5aeb('0x3f')][_0x5aeb('0x5e')](_0x1cf768,null,_0x32edb9)(_0x531de6,_0x288d41,_0x10d9fd);for(const _0x2441b9 of _0x532526)_0x5aeb('0x6a')!=_0x2441b9[_0x5aeb('0x6b')]['rootName']&&_0x3a8cc9[_0x5aeb('0x46')](_0x2441b9);});});};_0x53b692(_0x5aeb('0xa7'),_0x5aeb('0x5f')),_0x53b692(_0x5aeb('0xa7'),'discard'),_0x53b692('deletion',_0x5aeb('0x5f')),_0x53b692('deletion',_0x5aeb('0x49')),_0x5cc5d3['_suggestionFactory'][_0x5aeb('0x39')](_0x5aeb('0xa7'),'tablePasteRow','discard',_0x128933=>{const _0x3bc021=_0x128933[_0x5aeb('0x91')](_0x22f7d9=>_0x22f7d9[_0x5aeb('0x86')]()),_0x566111=_0x3bc021[0x0][_0x5aeb('0x0')](_0x5aeb('0x96')),{minRow:_0x5a5b91,maxRow:_0x5baa3c}=_0x66fc44[_0x5aeb('0x67')](_0x3bc021);_0x1de589[_0x5aeb('0x83')](_0x566111,{'at':_0x5a5b91,'rows':_0x5baa3c-_0x5a5b91+0x1});}),_0x5cc5d3[_0x5aeb('0x3f')][_0x5aeb('0x39')]('insertion',_0x5aeb('0x29'),_0x5aeb('0x49'),_0x4afb2e=>{const _0x34f165=_0x4afb2e['map'](_0x189973=>_0x189973[_0x5aeb('0x86')]()),_0x5b7664=_0x34f165[0x0]['findAncestor'](_0x5aeb('0x96')),{minColumn:_0x2416e9,maxColumn:_0xc955df}=_0x66fc44['_getCoordsForCells'](_0x34f165);_0x1de589[_0x5aeb('0x1a')](_0x5b7664,{'at':_0x2416e9,'columns':_0xc955df-_0x2416e9+0x1});});const _0x2f48c0=(_0x39b52a,_0x54f8de)=>{if(!_0x54f8de[_0x5aeb('0x70')]||!_0x54f8de[_0x5aeb('0x70')]['startsWith'](_0x5aeb('0x85')))return;const _0x4562ba=_0x54f8de[_0x5aeb('0x52')][_0x5aeb('0x97')],_0x3229c5=_0x5cc5d3['getSuggestions']()[_0x5aeb('0x44')](_0x5a4167=>_0x5a4167[_0x5aeb('0xc')]&&_0x5a4167[_0x5aeb('0x52')]&&_0x5a4167[_0x5aeb('0x52')][_0x5aeb('0x97')]==_0x4562ba);_0x3229c5[_0x5aeb('0x94')]&&_0x54f8de[_0x5aeb('0x7d')]()['length']!=_0x3229c5[_0x5aeb('0x94')]&&_0x3229c5[_0x5aeb('0x53')]((_0x3a25e5,_0x2c3463)=>(_0x3a25e5[_0x5aeb('0x84')]=_0x2c3463,_0x2c3463[_0x5aeb('0x5')]=_0x3a25e5,_0x2c3463));};function _0x207c64(_0x52c501,_0x7cfc59=!0x0){const {id:_0x30bff9}=_0x5cc5d3[_0x5aeb('0x22')](_0x52c501['markerName']),_0x13b648=[_0x5aeb('0x56'),_0x5aeb('0x15')],_0x1f4f52=_0x5cc5d3[_0x5aeb('0xd')][_0x5aeb('0x50')](_0x52c501[_0x5aeb('0x8c')]);return _0x1f4f52&&_0x13b648['push'](_0x5aeb('0x98')),{'classes':_0x13b648,'attributes':{'data-suggestion':_0x30bff9},'priority':_0x1f4f52&&_0x7cfc59?0xbc2:0xbb8};}_0x5cc5d3['on']('suggestionLoaded',_0x2f48c0,{'priority':_0x5aeb('0x90')}),_0x5cc5d3['on'](_0x5aeb('0x9'),_0x2f48c0,{'priority':_0x5aeb('0x90')}),_0x1420c5[_0x5aeb('0x4')][_0x5aeb('0x7')][_0x5aeb('0x62')](()=>{let _0x5bd117=!0x1;const _0x2aacfe=Array[_0x5aeb('0x89')](_0x1420c5[_0x5aeb('0x4')][_0x5aeb('0x7')][_0x5aeb('0x9d')][_0x5aeb('0x69')]());for(const {name:_0x212e9c,data:_0x59e173}of _0x2aacfe){const {group:_0x411599,type:_0x50d7fc,id:_0x257f5b}=_0x5cc5d3['_splitMarkerName'](_0x212e9c);if(_0x5aeb('0x13')!=_0x411599||'deletion'!=_0x50d7fc||_0x59e173[_0x5aeb('0x5c')])continue;if(!_0x5cc5d3[_0x5aeb('0x11')](_0x257f5b))continue;const _0x5e0750=_0x5cc5d3[_0x5aeb('0x23')](_0x257f5b)['getRanges'](),_0x471325=_0x1420c5[_0x5aeb('0x30')][_0x5aeb('0x59')]('Users')['me'];for(const _0x14cd7a of _0x5cc5d3[_0x5aeb('0x10')]()){if(!_0x14cd7a[_0x5aeb('0xc')]||_0x14cd7a['author']!=_0x471325)continue;if(_0x5aeb('0x76')!=_0x14cd7a['type']||_0x5aeb('0xb')!=_0x14cd7a[_0x5aeb('0x70')])continue;if(_0x14cd7a['getRanges']()['every'](_0x14ab96=>_0x5e0750[_0x5aeb('0x35')](_0x3af65b=>_0x3af65b[_0x5aeb('0x1e')](_0x14ab96,!0x0))))for(const _0x955b44 of _0x14cd7a[_0x5aeb('0x7d')]())_0x955b44[_0x5aeb('0xc')]&&(_0x955b44[_0x5aeb('0x49')](),_0x5bd117=!0x0);}}return _0x5bd117;}),_0x1420c5['model'][_0x5aeb('0x7')][_0x5aeb('0x62')](_0x3d2a07=>{const _0x1e7b2a=_0x1420c5[_0x5aeb('0x3e')][_0x5aeb('0x59')](_0x5aeb('0x2f'));if(!_0x1e7b2a||!_0x1e7b2a[_0x5aeb('0x2')][_0x5aeb('0x81')](_0x3d2a07[_0x5aeb('0x6')]))return!0x1;let _0x97eb63=!0x1;const _0x247da1=_0x1420c5[_0x5aeb('0x30')]['get'](_0x5aeb('0x3b'))['me'],_0x2cba1=_0x1420c5[_0x5aeb('0x4')][_0x5aeb('0x7')]['differ'][_0x5aeb('0xa1')](),_0x4dd531=Array[_0x5aeb('0x89')](_0x1420c5[_0x5aeb('0x4')]['document'][_0x5aeb('0x9d')]['getChangedMarkers']())[_0x5aeb('0x44')](({name:_0x49697a,data:_0xc73164})=>{const {group:_0x5ef437,subType:_0x1c391a,authorId:_0x334ada}=_0x5cc5d3[_0x5aeb('0x22')](_0x49697a);return _0x5aeb('0x13')==_0x5ef437&&_0x5aeb('0x85')==_0x1c391a&&_0x334ada==_0x247da1['id']&&!_0xc73164[_0x5aeb('0x5c')];});for(const _0x33a66f of _0x2cba1){if(_0x5aeb('0x45')!=_0x33a66f[_0x5aeb('0x6d')]||_0x5aeb('0x9a')!=_0x33a66f[_0x5aeb('0xa0')]||0x1!=_0x33a66f['length'])continue;const _0xd2534e=_0x3d2a07[_0x5aeb('0x4e')](_0x33a66f[_0x5aeb('0x58')],_0x33a66f[_0x5aeb('0x58')]['getShiftedBy'](0x1));if(!_0x4dd531['find'](({data:_0x280c35})=>_0x280c35['newRange'][_0x5aeb('0x8')](_0xd2534e)))for(const {name:_0x11dc78,data:_0x2f8428}of _0x4dd531)if(_0xd2534e[_0x5aeb('0x1e')](_0x2f8428['newRange'])){_0x3d2a07[_0x5aeb('0x8f')](_0x11dc78,{'range':_0xd2534e}),_0x97eb63=!0x0;break;}}return _0x97eb63;}),_0x1420c5[_0x5aeb('0x4')]['document']['registerPostFixer'](_0x59fbb1=>{let _0x12d08b=!0x1;const _0xf8582a=_0x1420c5[_0x5aeb('0x30')][_0x5aeb('0x59')](_0x5aeb('0x3b'))['me'],_0x49062d=_0x5cc5d3['getSuggestions']()['filter'](_0x481cb2=>_0x481cb2[_0x5aeb('0xc')]&&_0x481cb2[_0x5aeb('0x47')]==_0xf8582a),_0x115476=new Set(),_0x3ef986=new Set();for(const _0x1aeab0 of _0x49062d)if(_0x5aeb('0x85')==_0x1aeab0['subType'])for(const _0x1c0db7 of _0x1aeab0['getMarkers']()){const _0x12eb7f=_0x1c0db7[_0x5aeb('0x4a')]()['getContainedElement']();if(_0x12eb7f){if(_0x12eb7f['is'](_0x5aeb('0x71'),_0x5aeb('0x9a'))&&ce(_0x12eb7f)){_0x1aeab0['removeMarker'](_0x1c0db7[_0x5aeb('0xa0')]),_0x115476[_0x5aeb('0x5b')](_0x12eb7f),_0x12d08b=!0x0;const _0x506a76=_0x12eb7f[_0x5aeb('0x37')],_0x54fcdb=_0x12eb7f[_0x5aeb('0x4b')],_0x450b28=_0x506a76&&_0x506a76['is'](_0x5aeb('0x71'),_0x5aeb('0x9a')),_0x25e8cd=_0x54fcdb&&_0x54fcdb['is']('element',_0x5aeb('0x9a'));_0x450b28&&!_0x115476[_0x5aeb('0x81')](_0x506a76)&&_0x3ef986[_0x5aeb('0x5b')](_0x506a76),_0x25e8cd&&!_0x115476[_0x5aeb('0x81')](_0x54fcdb)&&_0x3ef986[_0x5aeb('0x5b')](_0x54fcdb);}else _0x12eb7f['is']('element','paragraph')&&_0x12eb7f[_0x5aeb('0xe')]&&(_0x1aeab0[_0x5aeb('0x3')](_0x1c0db7[_0x5aeb('0xa0')]),_0x12d08b=!0x0);}}else{if('tablePasteCell'==_0x1aeab0[_0x5aeb('0x70')]){if(!_0x1aeab0[_0x5aeb('0x52')]||!_0x1aeab0[_0x5aeb('0x52')][_0x5aeb('0x97')])continue;const _0x28b203=_0x1aeab0[_0x5aeb('0x52')][_0x5aeb('0x16')];if(_0x28b203&&Object[_0x5aeb('0x73')](_0x28b203)['length'])continue;const _0x4f58ff=_0x1aeab0[_0x5aeb('0x52')]['tablePasteChainId'];let _0x54fef0=!0x0,_0x4162b3=!0x0;for(const _0x3fcdb of _0x49062d)if(_0x3fcdb[_0x5aeb('0x70')]&&_0x3fcdb[_0x5aeb('0x70')][_0x5aeb('0x48')](_0x5aeb('0x85'))){if(!_0x3fcdb[_0x5aeb('0x52')][_0x5aeb('0x97')]){_0x4162b3=!0x1;break;}if(_0x3fcdb['id']!=_0x1aeab0['id']&&_0x3fcdb[_0x5aeb('0x52')][_0x5aeb('0x97')]==_0x4f58ff){_0x54fef0=!0x1;break;}}_0x4162b3&&_0x54fef0&&(_0x1aeab0['removeMarkers'](),_0x12d08b=!0x0);}}for(const _0x22cf89 of _0x115476)_0x59fbb1[_0x5aeb('0x88')](_0x22cf89);for(const _0x5549c7 of _0x3ef986)_0x59fbb1[_0x5aeb('0x46')](_0x5549c7);return _0x12d08b;}),_0x1420c5[_0x5aeb('0x54')][_0x5aeb('0x75')](_0x5aeb('0x72'))[_0x5aeb('0x63')]({'model':_0x5aeb('0x60'),'view':(_0x1184c8,_0x551501)=>_0x207c64(_0x1184c8),'converterPriority':_0x5aeb('0x90')}),_0x1420c5[_0x5aeb('0x54')][_0x5aeb('0x75')](_0x5aeb('0x1c'))[_0x5aeb('0x63')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3fdfcc,_0x130bd4)=>_0x130bd4[_0x5aeb('0x36')]['showSuggestionHighlights']?_0x207c64(_0x3fdfcc,!0x1):null,'converterPriority':_0x5aeb('0x90')});const _0x453d21=_0x1420c5[_0x5aeb('0xa6')]['view'];this[_0x5aeb('0x7c')](_0x453d21[_0x5aeb('0x7')],_0x5aeb('0x2e'),(_0x490085,_0x27beb5)=>{const _0x364106=[];for(const _0x41bded of _0x453d21[_0x5aeb('0x78')](_0x27beb5['content'])[_0x5aeb('0xa3')]())_0x41bded['is'](_0x5aeb('0x71'),_0x5aeb('0x1f'))&&_0x364106['push'](_0x41bded);_0x453d21['change'](_0x3195be=>{for(const _0x31d59f of _0x364106)_0x3195be['move'](_0x3195be[_0x5aeb('0x78')](_0x31d59f),_0x3195be[_0x5aeb('0x2c')](_0x31d59f)),_0x3195be[_0x5aeb('0x88')](_0x31d59f);});});}}function ce(_0x44bc96){if(_0x44bc96['isEmpty'])return!0x0;const _0x1f4bcc=_0x44bc96[_0x5aeb('0x17')](0x0);return _0x1f4bcc['is']('element',_0x5aeb('0x2a'))&&_0x1f4bcc['isEmpty'];}function fe(_0x4bc15,_0xa8ca4={},_0x388eec){for(const {isAnchor:_0x45470e,cellHeight:_0x104dfe,cellWidth:_0x5b8d89}of _0x388eec[_0x5aeb('0xa2')](_0x4bc15,{'includeAllSlots':!0x0,..._0xa8ca4}))if(!_0x45470e||0x1!=_0x104dfe||0x1!=_0x5b8d89)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x237f=['getSuggestionCallback','has','data','get','accept','getTableColumnsWidths','registerDescriptionCallback','model','afterInit','format','formatBlock','getColumnGroupElement','handleResizeTableWidthCommand','enableCommand','registerCustomCallback','locale','*Format:*\x20resize\x20table','columnWidths','formatGroupId','plugins','discard','getSelectedElement','getSuggestions','selection','_suggestionFactory','Users','commandParams','resizeTable','bind','TableColumnResizeEditing','change','resizeColumnWidths','getAttribute','author','markBlockFormat','TrackChangesEditing','tableWidth','table','getContainedElement','editor','resizeTableWidth'];(function(_0xfc3711,_0x237fed){const _0x580e66=function(_0x3d185d){while(--_0x3d185d){_0xfc3711['push'](_0xfc3711['shift']());}};_0x580e66(++_0x237fed);}(_0x237f,0xa6));const _0x580e=function(_0xfc3711,_0x237fed){_0xfc3711=_0xfc3711-0x0;let _0x580e66=_0x237f[_0xfc3711];return _0x580e66;};import{Plugin as _0x5bea56}from'ckeditor5/src/core';import{getTranslation as _0x939d12}from'../utils/common-translations';export default class wt extends _0x5bea56{[_0x580e('0x6')](){if(!this['editor'][_0x580e('0x11')][_0x580e('0x28')](_0x580e('0x1b')))return;const _0x24ba5e=this[_0x580e('0x25')]['plugins']['get'](_0x580e('0x21'));_0x24ba5e[_0x580e('0xb')](_0x580e('0x26'),this[_0x580e('0xa')][_0x580e('0x1a')](this)),_0x24ba5e[_0x580e('0xb')](_0x580e('0x1d'),this[_0x580e('0xa')][_0x580e('0x1a')](this)),_0x24ba5e[_0x580e('0x16')]['registerCustomCallback'](_0x580e('0x8'),_0x580e('0x19'),_0x580e('0x2'),_0x24ba5e[_0x580e('0x16')][_0x580e('0x27')](_0x580e('0x8'),null,_0x580e('0x12'))),_0x24ba5e['_suggestionFactory'][_0x580e('0xc')](_0x580e('0x8'),_0x580e('0x19'),'discard',_0x24ba5e[_0x580e('0x16')]['getSuggestionCallback']('formatBlock',null,_0x580e('0x2'))),_0x24ba5e['_descriptionFactory'][_0x580e('0x4')](this['handleSuggestionDescription'][_0x580e('0x1a')](this));}[_0x580e('0xa')](_0x107cae,_0x4a5187){const _0x1bd91d=this['editor'][_0x580e('0x11')][_0x580e('0x1')](_0x580e('0x21')),_0x38cfe7=this[_0x580e('0x25')][_0x580e('0x11')]['get'](_0x580e('0x1b')),_0x4f0e12=_0x4a5187[_0x580e('0x23')]||this[_0x580e('0x25')][_0x580e('0x5')]['document'][_0x580e('0x15')][_0x580e('0x13')]();this[_0x580e('0x25')][_0x580e('0x5')][_0x580e('0x1c')](()=>{const _0x301bb7=_0x38cfe7[_0x580e('0x9')](_0x4f0e12);let _0x3a85f4=_0x301bb7?_0x38cfe7[_0x580e('0x3')](_0x301bb7):null,_0x5a78ef=_0x4f0e12[_0x580e('0x1e')](_0x580e('0x22'))||null;const _0x2364d1=_0x4a5187['tableWidth']||_0x5a78ef,_0x28e958=_0x4a5187[_0x580e('0xf')]||_0x3a85f4,_0x632241=this['editor'][_0x580e('0x11')][_0x580e('0x1')](_0x580e('0x17'))['me'];for(const _0x35c226 of _0x1bd91d[_0x580e('0x14')]()){const _0x5510c0=_0x35c226[_0x580e('0x24')]();if(_0x580e('0x19')===_0x35c226['subType']&&_0x5510c0===_0x4f0e12){_0x35c226[_0x580e('0x1f')]!==_0x632241&&_0x35c226['discard']();const _0x1ac4e6=_0x35c226[_0x580e('0x0')][_0x580e('0x18')];_0x5a78ef=_0x1ac4e6[0x0][_0x580e('0x22')],_0x3a85f4=_0x1ac4e6[0x0][_0x580e('0xf')];break;}}_0x107cae({'table':_0x4f0e12,'tableWidth':_0x2364d1,'columnWidths':_0x28e958}),_0x1bd91d[_0x580e('0x20')](_0x4f0e12,{'commandName':_0x580e('0x26'),'commandParams':[{'tableWidth':_0x5a78ef,'columnWidths':_0x3a85f4}],'formatGroupId':_0x580e('0x19')},[],'resizeTable');});}['handleSuggestionDescription'](_0x43557a){const {data:_0x23826a}=_0x43557a;if(_0x23826a&&_0x580e('0x19')===_0x23826a[_0x580e('0x10')]){const _0x4d7df2=_0x580e('0xe');return{'type':_0x580e('0x7'),'content':_0x939d12(this[_0x580e('0x25')][_0x580e('0xd')],_0x4d7df2)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ee8=['index','FORMAT_REGULAR_ROW','parent','showSuggestionHighlights','format','getSelectionAffectedTableCells','childCount','consumable','unbindElementFromMarkerName','registerDescriptionCallback','forceValue','mapper','commandName','includes','requires','editing','_acceptFormatSuggestionCallbackFactory','setTableColumnHeader','addClass','commandParams','setTableRowHeader','consume','stop','nodeAfter','markerNameToElements','getAttribute','findAncestor','value','createRange','name','accept','end','getChild','createPositionBefore','cell','getRowIndexes','createPositionAfter','TableEditing','markerRange','headingRows','FORMAT_HEADER_ROW','activeMarkers','afterInit','FORMAT_HEADER_COLUMN','addMarker:suggestion','table','highest','registerCustomCallback','item','formatBlock','removeClass','last','data','_suggestionFactory','_splitMarkerName','nodeBefore','commands','ck-suggestion-marker-','data-suggestion','enableCommand','removeAttribute','createTableWalker','FORMAT_REGULAR_COLUMN','ck-suggestion-marker--active','document','getCellLocation','downcastDispatcher','has','first','toViewElement','TrackChangesEditing','setAttribute','markBlockFormat','writer','selection','markerName','change','get','model','plugins','headingColumns'];(function(_0x4a7bf5,_0x4ee83f){const _0x5e0309=function(_0x3af41a){while(--_0x3af41a){_0x4a7bf5['push'](_0x4a7bf5['shift']());}};_0x5e0309(++_0x4ee83f);}(_0x4ee8,0x19d));const _0x5e03=function(_0x4a7bf5,_0x4ee83f){_0x4a7bf5=_0x4a7bf5-0x0;let _0x5e0309=_0x4ee8[_0x4a7bf5];return _0x5e0309;};import{Plugin as _0x16d5fc}from'ckeditor5/src/core';import _0x3ef92f from'./table';import{getTranslation as _0x40fc74}from'../utils/common-translations';export default class pt extends _0x16d5fc{static get[_0x5e03('0x6')](){return[_0x3ef92f];}[_0x5e03('0x22')](){const _0x406c0e=this['editor'];if(!_0x406c0e[_0x5e03('0x47')][_0x5e03('0x3b')](_0x5e03('0x1d')))return;const _0x3bba12=_0x406c0e['locale'],_0x3e86c5=_0x406c0e[_0x5e03('0x47')]['get'](_0x5e03('0x3e')),_0x4efdd1=_0x406c0e[_0x5e03('0x47')]['get']('TableUtils'),_0x2f88dc=_0x406c0e['plugins'][_0x5e03('0x45')](_0x3ef92f);function _0xb32dd5({showActiveMarker:_0x12ad9b=!0x0,setDataAttribute:_0x192530=!0x0}={}){return(_0x508b9a,_0xacc31d,_0x512cdc)=>{const {type:_0x2762eb,id:_0x250635}=_0x3e86c5[_0x5e03('0x2e')](_0xacc31d['markerName']),_0x246412=_0x3e86c5['getSuggestion'](_0x250635);if(!_0x246412[_0x5e03('0x2c')]||_0x5e03('0x9')!=_0x246412['data'][_0x5e03('0x4')])return;if(_0xacc31d[_0x5e03('0x28')])return void _0x508b9a[_0x5e03('0xe')]();if(!_0x512cdc[_0x5e03('0x50')][_0x5e03('0xd')](_0xacc31d['markerRange'],_0x508b9a[_0x5e03('0x15')]))return;const _0x4dd950=_0xacc31d[_0x5e03('0x1e')]['start'][_0x5e03('0xf')],_0x21e5da=_0xacc31d[_0x5e03('0x1e')][_0x5e03('0x17')][_0x5e03('0x2f')],_0x1ed707=_0x4dd950['parent'][_0x5e03('0x4b')],{column:_0x257f9c}=_0x4efdd1[_0x5e03('0x39')](_0x4dd950),{column:_0x40ef8b}=_0x4efdd1[_0x5e03('0x39')](_0x21e5da);for(let _0x4e6db3=_0x257f9c;_0x4e6db3<=_0x40ef8b;_0x4e6db3++){const _0x48b929=_0x4efdd1[_0x5e03('0x35')](_0x1ed707,{'column':_0x4e6db3,'includeAllSlots':!0x1});for(const _0x492cba of _0x48b929){const _0x45ae8a=_0x492cba[_0x5e03('0x1a')],_0x427a2d=_0x512cdc[_0x5e03('0x3')][_0x5e03('0x3d')](_0x45ae8a);_0x512cdc[_0x5e03('0x41')][_0x5e03('0xa')](_0x5e03('0x31')+_0x2762eb,_0x427a2d),_0x192530&&_0x512cdc[_0x5e03('0x41')][_0x5e03('0x3f')]('data-suggestion',_0x250635,_0x427a2d),_0x512cdc[_0x5e03('0x3')]['bindElementToMarker'](_0x427a2d,_0xacc31d[_0x5e03('0x43')]),_0x12ad9b&&(_0x3e86c5[_0x5e03('0x21')][_0x5e03('0x5')](_0xacc31d[_0x5e03('0x43')])?_0x512cdc[_0x5e03('0x41')]['addClass'](_0x5e03('0x37'),_0x427a2d):_0x512cdc[_0x5e03('0x41')][_0x5e03('0x2a')]('ck-suggestion-marker--active',_0x427a2d));}}};}_0x3e86c5[_0x5e03('0x33')](_0x5e03('0xc'),(_0x556279,_0x40885f)=>{const _0x55459e=_0x4efdd1[_0x5e03('0x4e')](_0x406c0e['model'][_0x5e03('0x38')]['selection']),_0x5b1a0b=_0x4efdd1[_0x5e03('0x1b')](_0x55459e),_0x6bc141=_0x55459e[0x0][_0x5e03('0x12')](_0x5e03('0x25')),_0x2aab63=_0x6bc141[_0x5e03('0x11')](_0x5e03('0x1f'))||0x0,_0x21ef00=_0x40885f&&null!==_0x40885f['forceValue']?_0x40885f[_0x5e03('0x2')]:!_0x406c0e[_0x5e03('0x30')][_0x5e03('0x45')](_0x5e03('0xc'))[_0x5e03('0x13')],_0x136c83=_0x21ef00?_0x5b1a0b[_0x5e03('0x2b')]:_0x5b1a0b[_0x5e03('0x3c')],_0x5628c4=_0x6bc141[_0x5e03('0x18')](_0x136c83);let _0x2cebb3;if(_0x21ef00){const _0x34e277=_0x6bc141[_0x5e03('0x18')](_0x2aab63);if(_0x5628c4[_0x5e03('0x49')]<_0x34e277[_0x5e03('0x49')])return;_0x2cebb3=_0x406c0e[_0x5e03('0x46')][_0x5e03('0x14')](_0x406c0e[_0x5e03('0x46')][_0x5e03('0x19')](_0x34e277[_0x5e03('0x18')](0x0)),_0x406c0e[_0x5e03('0x46')][_0x5e03('0x1c')](_0x5628c4['getChild'](_0x5628c4[_0x5e03('0x4f')]-0x1)));}else{const _0x49922b=_0x6bc141['getChild'](_0x2aab63-0x1);if(!_0x49922b)return;_0x2cebb3=_0x406c0e['model'][_0x5e03('0x14')](_0x406c0e[_0x5e03('0x46')][_0x5e03('0x19')](_0x5628c4[_0x5e03('0x18')](0x0)),_0x406c0e[_0x5e03('0x46')]['createPositionAfter'](_0x49922b[_0x5e03('0x18')](_0x49922b[_0x5e03('0x4f')]-0x1)));}_0x406c0e[_0x5e03('0x46')][_0x5e03('0x44')](()=>{_0x3e86c5[_0x5e03('0x40')](_0x2cebb3,{'commandName':_0x5e03('0xc'),'commandParams':[{'forceValue':_0x21ef00}]},[],'setTableRowHeader');});}),_0x3e86c5[_0x5e03('0x33')](_0x5e03('0x9'),(_0x5d15ba,_0x50260a)=>{const _0x4c12d9=_0x406c0e[_0x5e03('0x47')]['get']('TableUtils'),_0x292a1a=_0x4c12d9[_0x5e03('0x4e')](_0x406c0e['model'][_0x5e03('0x38')][_0x5e03('0x42')]),_0x3cb632=_0x4c12d9['getColumnIndexes'](_0x292a1a),_0x465beb=_0x292a1a[0x0][_0x5e03('0x12')](_0x5e03('0x25')),_0x3d22f9=_0x465beb[_0x5e03('0x11')](_0x5e03('0x48'))||0x0,_0x2dff76=_0x50260a&&null!==_0x50260a[_0x5e03('0x2')]?_0x50260a[_0x5e03('0x2')]:!_0x406c0e['commands']['get'](_0x5e03('0x9'))[_0x5e03('0x13')];let _0x42e35f;const _0x2018fa=_0x465beb[_0x5e03('0x18')](0x0),_0x127e07=_0x2dff76?_0x3cb632[_0x5e03('0x2b')]:_0x3cb632['first'],_0x1deec7=_0x4c12d9[_0x5e03('0x35')](_0x465beb,{'startRow':0x0,'column':_0x127e07,'includeAllSlots':!0x1}),_0x402de3=Array['from'](_0x1deec7)[0x0][_0x5e03('0x1a')];if(_0x2dff76){const _0x3d6f3=_0x2018fa[_0x5e03('0x18')](_0x3d22f9);if(_0x402de3['isBefore'](_0x3d6f3))return;_0x42e35f=_0x406c0e[_0x5e03('0x46')][_0x5e03('0x14')](_0x406c0e[_0x5e03('0x46')][_0x5e03('0x19')](_0x3d6f3),_0x406c0e[_0x5e03('0x46')]['createPositionAfter'](_0x402de3));}else{const _0x489070=_0x2018fa[_0x5e03('0x18')](_0x3d22f9-0x1);if(!_0x489070)return;_0x42e35f=_0x406c0e[_0x5e03('0x46')]['createRange'](_0x406c0e[_0x5e03('0x46')][_0x5e03('0x19')](_0x402de3),_0x406c0e[_0x5e03('0x46')][_0x5e03('0x1c')](_0x489070));}_0x406c0e[_0x5e03('0x46')]['change'](()=>{_0x3e86c5['markBlockFormat'](_0x42e35f,{'commandName':_0x5e03('0x9'),'commandParams':[{'forceValue':_0x2dff76}]},[],_0x5e03('0x9'));});}),_0x406c0e[_0x5e03('0x7')][_0x5e03('0x3a')]['on'](_0x5e03('0x24'),_0xb32dd5(),{'priority':'highest'}),_0x406c0e['data'][_0x5e03('0x3a')]['on']('addMarker:suggestion',(_0x4201d0,_0x59509b,_0x545d29)=>{_0x545d29['options'][_0x5e03('0x4c')]&&_0xb32dd5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4201d0,_0x59509b,_0x545d29);},{'priority':_0x5e03('0x26')}),_0x406c0e[_0x5e03('0x7')][_0x5e03('0x3a')]['on']('removeMarker:suggestion',(_0x4777f8,_0x2af948,_0x3bceb3)=>{const {type:_0x3814ff,id:_0x2a7ccb}=_0x3e86c5[_0x5e03('0x2e')](_0x2af948[_0x5e03('0x43')]),_0xeb0d6d=_0x3e86c5['getSuggestion'](_0x2a7ccb);if(!_0xeb0d6d['data']||'setTableColumnHeader'!=_0xeb0d6d[_0x5e03('0x2c')][_0x5e03('0x4')])return;const _0x4a9d43=_0x3bceb3[_0x5e03('0x3')][_0x5e03('0x10')](_0x2af948[_0x5e03('0x43')]);if(_0x4a9d43)for(const _0x3b3b48 of _0x4a9d43)_0x3bceb3[_0x5e03('0x41')][_0x5e03('0x2a')](_0x5e03('0x31')+_0x3814ff,_0x3b3b48),_0x3bceb3[_0x5e03('0x41')][_0x5e03('0x2a')](_0x5e03('0x37'),_0x3b3b48),_0x3bceb3[_0x5e03('0x41')][_0x5e03('0x34')](_0x5e03('0x32'),_0x3b3b48),_0x3bceb3[_0x5e03('0x3')][_0x5e03('0x0')](_0x3b3b48,_0x2af948[_0x5e03('0x43')]);},{'priority':_0x5e03('0x26')}),_0x3e86c5['_descriptionFactory'][_0x5e03('0x1')](_0x46dd39=>{const {data:_0x30e76a}=_0x46dd39;if(_0x30e76a){if(_0x5e03('0xc')==_0x30e76a[_0x5e03('0x4')]){const _0x13f688=_0x30e76a[_0x5e03('0xb')][0x0]['forceValue'];return _0x53ed42(_0x40fc74(_0x3bba12,_0x13f688?_0x5e03('0x20'):_0x5e03('0x4a')));}if('setTableColumnHeader'==_0x30e76a[_0x5e03('0x4')]){const _0x5bae5c=_0x30e76a['commandParams'][0x0][_0x5e03('0x2')];return _0x53ed42(_0x40fc74(_0x3bba12,_0x5bae5c?_0x5e03('0x23'):_0x5e03('0x36')));}}function _0x53ed42(_0x44fa5b){return{'type':_0x5e03('0x4d'),'content':_0x40fc74(_0x3bba12,'*Format:*\x20%0',_0x44fa5b)};}});const _0x5e05b2=_0x2f88dc[_0x5e03('0x8')]();_0x3e86c5[_0x5e03('0x2d')]['registerCustomCallback'](_0x5e03('0x29'),'setTableRowHeader','accept',_0x5e05b2),_0x3e86c5[_0x5e03('0x2d')][_0x5e03('0x27')](_0x5e03('0x29'),'setTableColumnHeader',_0x5e03('0x16'),_0x5e05b2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f6a=['formatBlock','getFirstPosition','splitTableCellVertically','findAncestor','_isForcedDefaultExecutionBlock','plugins','mergeTableCellUp','from','push','mergeTableCells','getSelectionAffectedTableCells','_areSelectedCellsMergable','accept','length','element','subType','author','createRangeOn','selection','format','size','change','mergeTableCellRight','insertion','TableUtils','enableCommand','locale','has','markMultiRangeBlockFormat','detach','TrackChangesEditing','refresh','mergeTableCellDown','setSelection','rootName','registerCustomCallback','mergeTableCellLeft','getAncestors','find','_areMergableCells','TableEditing','set:isEnabled','createTableWalker','requires','tableCell','commands','trackChanges','table','direction','value','_acceptFormatSuggestionCallbackFactory','forceDefaultExecution','afterInit','commandName','_suggestionFactory','editor','splitTableCellHorizontally','type','document','low','_tablePostFixingSubtypes','getRanges','execute','fromRange','root','model','return','cell','add','containsRange','map','get'];(function(_0x43bb8d,_0x3f6af8){const _0xfbdff3=function(_0x1f7d90){while(--_0x1f7d90){_0x43bb8d['push'](_0x43bb8d['shift']());}};_0xfbdff3(++_0x3f6af8);}(_0x3f6a,0x180));const _0xfbdf=function(_0x43bb8d,_0x3f6af8){_0x43bb8d=_0x43bb8d-0x0;let _0xfbdff3=_0x3f6a[_0x43bb8d];return _0xfbdff3;};import{Plugin as _0x6be6cb}from'ckeditor5/src/core';import _0xc2b1be from'./table';import{LiveRange as _0x304151}from'ckeditor5/src/engine';import{getTranslation as _0x16a0ad}from'../utils/common-translations';export default class dt extends _0x6be6cb{static get[_0xfbdf('0x13')](){return[_0xc2b1be];}[_0xfbdf('0x1c')](){const _0xaceff=this['editor'],_0x5616dd=_0xaceff[_0xfbdf('0x29')][_0xfbdf('0x22')][_0xfbdf('0x42')],_0x22f2a0=_0xaceff[_0xfbdf('0x2')];if(!_0xaceff[_0xfbdf('0x35')][_0xfbdf('0x3')](_0xfbdf('0x10')))return;const _0x167f3b=_0xaceff[_0xfbdf('0x35')][_0xfbdf('0x2f')](_0xfbdf('0x6')),_0x298c2c=_0xaceff[_0xfbdf('0x35')][_0xfbdf('0x2f')](_0xfbdf('0x0')),_0x4b464e=_0xaceff[_0xfbdf('0x35')]['get'](_0xc2b1be);_0x4b464e[_0xfbdf('0x24')][_0xfbdf('0x38')](_0xfbdf('0x39')),_0x167f3b[_0xfbdf('0x1')](_0xfbdf('0x39'),()=>{const _0x5a58c7=_0x298c2c[_0xfbdf('0x3a')](_0xaceff['model'][_0xfbdf('0x22')]['selection']);_0xaceff['model'][_0xfbdf('0x45')](()=>{_0x167f3b[_0xfbdf('0x4')](_0x5a58c7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xaceff[_0xfbdf('0x15')][_0xfbdf('0x2f')](_0xfbdf('0x39'))['on'](_0xfbdf('0x26'),(_0x2d4db8,_0x5810ef)=>{_0xaceff[_0xfbdf('0x15')][_0xfbdf('0x2f')](_0xfbdf('0x16'))['value']&&(_0x5810ef[_0xfbdf('0x3d')]>0x0&&_0x5810ef[_0x5810ef[_0xfbdf('0x3d')]-0x1]&&_0x5810ef[_0x5810ef[_0xfbdf('0x3d')]-0x1][_0xfbdf('0x1b')]||_0x167f3b[_0xfbdf('0x34')]||this[_0xfbdf('0x3b')]()||_0x2d4db8['stop']());},{'priority':'highest'});for(const _0x203762 of[_0xfbdf('0x36'),_0xfbdf('0x46'),_0xfbdf('0x8'),_0xfbdf('0xc')]){const _0x5c2872=_0xaceff[_0xfbdf('0x15')][_0xfbdf('0x2f')](_0x203762);_0x167f3b[_0xfbdf('0x1')](_0x203762,()=>{const _0x37165b=_0xaceff['model'][_0xfbdf('0x22')]['selection'][_0xfbdf('0x31')]()[_0xfbdf('0xd')]()[_0xfbdf('0xe')](_0x31cc4d=>_0x31cc4d['is']('element',_0xfbdf('0x14'))),_0x3ed545=_0x5c2872[_0xfbdf('0x19')];_0xaceff[_0xfbdf('0x29')][_0xfbdf('0x45')](()=>{_0x167f3b['markMultiRangeBlockFormat']([_0x37165b,_0x3ed545],{'commandName':_0xfbdf('0x39'),'commandParams':[]},[],_0xfbdf('0x39'));});});}for(const _0x447632 of[_0xfbdf('0x32'),_0xfbdf('0x20')]){const _0x42b41e=_0xaceff[_0xfbdf('0x15')][_0xfbdf('0x2f')](_0x447632);_0x167f3b[_0xfbdf('0x1')](_0x447632,()=>{const _0x49289b=_0x298c2c[_0xfbdf('0x3a')](_0xaceff['model'][_0xfbdf('0x22')][_0xfbdf('0x42')])[0x0],_0x136e59=_0x49289b[_0xfbdf('0x33')](_0xfbdf('0x17')),{column:_0x1d0a84,row:_0x389773}=_0x298c2c['getCellLocation'](_0x49289b);let _0x33c4be=[];if('horizontally'==_0x42b41e[_0xfbdf('0x18')]){const _0x518db0=_0x298c2c[_0xfbdf('0x12')](_0x136e59,{'startRow':_0x389773,'endRow':_0x389773,'includeAllSlots':!0x0});_0x33c4be=Array['from'](_0x518db0)[_0xfbdf('0x2e')](_0x206b64=>_0x206b64[_0xfbdf('0x2b')]);}else{const _0x293f0b=_0x298c2c['createTableWalker'](_0x136e59,{'column':_0x1d0a84,'includeAllSlots':!0x0});_0x33c4be=Array['from'](_0x293f0b)[_0xfbdf('0x2e')](_0x1c5c4e=>_0x1c5c4e['cell']);}_0xaceff[_0xfbdf('0x29')][_0xfbdf('0x45')](_0x3239bb=>{_0x167f3b['markBlockFormat'](_0x3239bb[_0xfbdf('0x41')](_0x49289b),{'commandName':_0x447632,'commandParams':[]},_0x33c4be,_0x447632);});});}_0x167f3b['_descriptionFactory']['registerDescriptionCallback'](_0x5f59ee=>{const {data:_0x15b0dc}=_0x5f59ee;if(_0x15b0dc)return _0xfbdf('0x39')==_0x15b0dc['commandName']?{'type':_0xfbdf('0x43'),'content':_0x16a0ad(_0x22f2a0,'*Merge\x20cells*')}:void 0x0;}),_0x167f3b['_descriptionFactory']['registerDescriptionCallback'](_0x3eeab2=>{const {data:_0x3c9eed}=_0x3eeab2;if(_0x3c9eed)return'splitTableCellVertically'==_0x3c9eed[_0xfbdf('0x1d')]?{'type':_0xfbdf('0x43'),'content':_0x16a0ad(_0x22f2a0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3c9eed[_0xfbdf('0x1d')]?{'type':'format','content':_0x16a0ad(_0x22f2a0,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x7c4170=_0x4b464e[_0xfbdf('0x1a')]();for(const _0x25e246 of[_0xfbdf('0x36'),'mergeTableCellRight',_0xfbdf('0x8'),_0xfbdf('0xc')])_0x167f3b['_suggestionFactory'][_0xfbdf('0xb')](_0xfbdf('0x30'),_0x25e246,_0xfbdf('0x3c'),_0x7c4170);for(const _0x4c51f3 of['splitTableCellVertically','splitTableCellHorizontally'])_0x167f3b[_0xfbdf('0x1e')]['registerCustomCallback']('formatBlock',_0x4c51f3,'accept',_0x7c4170);_0x167f3b[_0xfbdf('0x1e')]['registerCustomCallback'](_0xfbdf('0x30'),'mergeTableCells',_0xfbdf('0x3c'),_0x1a9c33=>{_0xaceff[_0xfbdf('0x29')]['change'](_0x3dc9ec=>{const _0x14dc76=Array[_0xfbdf('0x37')](_0x5616dd[_0xfbdf('0x25')]())['map'](_0x3b2cd4=>_0x304151[_0xfbdf('0x27')](_0x3b2cd4));_0x3dc9ec[_0xfbdf('0x9')](_0x1a9c33),_0xaceff[_0xfbdf('0x15')]['get'](_0xfbdf('0x39'))[_0xfbdf('0x7')](),_0xaceff['execute'](_0xfbdf('0x39'),{'forceDefaultExecution':!0x0});const _0x48178f=_0x14dc76['filter'](_0x448b8c=>'$graveyard'!=_0x448b8c[_0xfbdf('0x28')][_0xfbdf('0xa')]);_0x48178f['length']>0x0&&_0x3dc9ec[_0xfbdf('0x9')](_0x48178f);for(const _0x22ce96 of _0x14dc76)_0x22ce96[_0xfbdf('0x5')]();});});for(const _0x423e92 of[_0xfbdf('0x36'),_0xfbdf('0x8'),_0xfbdf('0xc'),_0xfbdf('0x46')]){const _0x55bd8d=_0xaceff[_0xfbdf('0x15')][_0xfbdf('0x2f')](_0x423e92);_0x55bd8d['on'](_0xfbdf('0x11'),(_0x41b403,_0x10954e,_0x52be7b)=>{if(_0x52be7b){const _0xe5fdd=_0xaceff['model'][_0xfbdf('0x22')][_0xfbdf('0x42')][_0xfbdf('0x31')]()[_0xfbdf('0xd')]()[_0xfbdf('0xe')](_0xb17b63=>_0xb17b63['is'](_0xfbdf('0x3e'),_0xfbdf('0x14')));this[_0xfbdf('0xf')](_0x55bd8d[_0xfbdf('0x19')],_0xe5fdd)||(_0x41b403[_0xfbdf('0x2a')]=!0x1,_0x41b403['stop']());}},{'priority':_0xfbdf('0x23')});}}[_0xfbdf('0x3b')](){const _0x544941=this[_0xfbdf('0x1f')]['commands'][_0xfbdf('0x2f')]('mergeTableCells'),_0x27507a=this[_0xfbdf('0x1f')]['plugins'][_0xfbdf('0x2f')](_0xfbdf('0x0'));if(!_0x544941['isEnabled'])return!0x1;const _0x43f6fb=_0x27507a[_0xfbdf('0x3a')](this['editor'][_0xfbdf('0x29')]['document']['selection']);for(const _0x161e67 of _0x43f6fb)for(const _0x18ab15 of _0x43f6fb)if(_0x161e67!=_0x18ab15&&!this[_0xfbdf('0xf')](_0x161e67,_0x18ab15))return!0x1;return!0x0;}[_0xfbdf('0xf')](_0x3f15a9,_0x35c81e){const _0x1a7980=this[_0xfbdf('0x1f')][_0xfbdf('0x35')][_0xfbdf('0x2f')](_0xfbdf('0x6')),_0x138351=this['editor'][_0xfbdf('0x29')]['createRangeOn'](_0x3f15a9),_0x13d625=this[_0xfbdf('0x1f')][_0xfbdf('0x29')][_0xfbdf('0x41')](_0x35c81e),_0x43d870=new Set(),_0x35f8cc=new Set();for(const _0x155727 of _0x1a7980['getSuggestions']())if((_0xfbdf('0x47')==_0x155727[_0xfbdf('0x21')]||'deletion'==_0x155727[_0xfbdf('0x21')]||_0xfbdf('0x39')==_0x155727[_0xfbdf('0x3f')])&&_0x155727['isInContent'])for(const _0x324911 of _0x155727[_0xfbdf('0x25')]())_0x324911[_0xfbdf('0x2d')](_0x138351,!0x0)&&_0x43d870[_0xfbdf('0x2c')](_0x155727[_0xfbdf('0x21')]+':'+_0x155727[_0xfbdf('0x40')]['id']),_0x324911[_0xfbdf('0x2d')](_0x13d625,!0x0)&&_0x35f8cc[_0xfbdf('0x2c')](_0x155727[_0xfbdf('0x21')]+':'+_0x155727[_0xfbdf('0x40')]['id']);if(_0x43d870[_0xfbdf('0x44')]!=_0x35f8cc[_0xfbdf('0x44')])return!0x1;for(const _0x457171 of _0x43d870)if(!_0x35f8cc['has'](_0x457171))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a96=['afterInit','insertTableOfContents','TrackChangesEditing','commands','tableOfContents','registerElementLabel','get','editor','ELEMENT_TABLE_OF_CONTENTS','plugins'];(function(_0x377ab8,_0x2a9642){const _0x193864=function(_0x527468){while(--_0x527468){_0x377ab8['push'](_0x377ab8['shift']());}};_0x193864(++_0x2a9642);}(_0x2a96,0x14d));const _0x1938=function(_0x377ab8,_0x2a9642){_0x377ab8=_0x377ab8-0x0;let _0x193864=_0x2a96[_0x377ab8];return _0x193864;};import{Plugin as _0x4d134f}from'ckeditor5/src/core';import{getTranslation as _0x567c2c}from'../utils/common-translations';export default class bt extends _0x4d134f{[_0x1938('0x7')](){const _0x13fc2a=this[_0x1938('0x4')];if(!_0x13fc2a[_0x1938('0x0')][_0x1938('0x3')]('insertTableOfContents'))return;_0x13fc2a[_0x1938('0x6')]['get'](_0x1938('0x9'))['enableCommand'](_0x1938('0x8'));const _0x49cae1=_0x13fc2a['plugins'][_0x1938('0x3')]('TrackChangesEditing'),_0x3220a5=_0x13fc2a['locale'];_0x49cae1['_descriptionFactory'][_0x1938('0x2')](_0x1938('0x1'),_0x22bc7f=>_0x567c2c(_0x3220a5,_0x1938('0x5'),_0x22bc7f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11ce=['tableBorderStyle','getAttribute','tableCellBorderWidth','getFirstPosition','setAttribute','tableCellBackgroundColor','TrackChangesEditing','registerDescriptionCallback','_descriptionFactory','plugins','TablePropertiesEditing','discard','TrackChangesTableProperties','_getSuggestion','markBlockFormat','getContainedElement','removeAttribute','getSelectionAffectedTableCells','*Format:*\x20change\x20table\x20cell\x20properties','registerCustomCallback','tableWidth','has','subType','commandParams','batch','tableCellWidth','tableAlignment','model','locale','accept','document','_handlePropertyChange','get','getSuggestionCallback','_suggestionFactory','tableProperties','tableCellBorderStyle','enableCommand','editor','formatBlock','selection','tableBorderColor','handleDiscardAction','join','start','findAncestor','tableCellProperties','handleSuggestionDescription','TableCellPropertiesEditing','tableCellHorizontalAlignment'];(function(_0x3b3292,_0x11cec1){const _0x586529=function(_0x58186d){while(--_0x58186d){_0x3b3292['push'](_0x3b3292['shift']());}};_0x586529(++_0x11cec1);}(_0x11ce,0x15c));const _0x5865=function(_0x3b3292,_0x11cec1){_0x3b3292=_0x3b3292-0x0;let _0x586529=_0x11ce[_0x3b3292];return _0x586529;};import{Plugin as _0x5a4f12}from'ckeditor5/src/core';import{getTranslation as _0x4d5512}from'../utils/common-translations';export default class Ct extends _0x5a4f12{constructor(_0x395cb7){super(_0x395cb7),this[_0x5865('0x25')]=[_0x5865('0x2b'),_0x5865('0x2'),'tableBorderWidth',_0x5865('0x1c'),_0x5865('0x16'),'tableHeight','tableBackgroundColor'],this[_0x5865('0x30')]=['tableCellBorderColor',_0x5865('0x26'),_0x5865('0x4'),'tableCellPadding',_0x5865('0x1b'),'tableCellHeight',_0x5865('0x7'),_0x5865('0x1'),'tableCellVerticalAlignment'];}static get['pluginName'](){return _0x5865('0xe');}['afterInit'](){const _0x1afd04=this[_0x5865('0x28')][_0x5865('0xb')][_0x5865('0x22')](_0x5865('0x8'));if(this[_0x5865('0x28')]['plugins'][_0x5865('0x17')](_0x5865('0xc'))){for(const _0x2457f4 of this[_0x5865('0x25')])_0x1afd04['enableCommand'](_0x2457f4,(_0x3e85f5,_0x115b74)=>{const _0x5977fd=this[_0x5865('0x28')][_0x5865('0x1d')]['document']['selection'][_0x5865('0x5')]()[_0x5865('0x2f')]('table');this[_0x5865('0x21')](_0x2457f4,[_0x5977fd],this['tableProperties'],_0x5865('0x25'),_0x3e85f5,_0x115b74);});_0x1afd04[_0x5865('0x24')]['registerCustomCallback'](_0x5865('0x29'),_0x5865('0x25'),'accept',_0x1afd04[_0x5865('0x24')][_0x5865('0x23')]('formatBlock',null,'discard')),_0x1afd04[_0x5865('0x24')]['registerCustomCallback'](_0x5865('0x29'),'tableProperties',_0x5865('0xd'),(_0x577064,_0x5110f1)=>this[_0x5865('0x2c')](this['tableProperties'],_0x577064,_0x5110f1)),_0x1afd04[_0x5865('0x24')]['registerCustomCallback'](_0x5865('0x29'),_0x5865('0x25'),_0x5865('0x2d'),()=>!0x1);}if(this[_0x5865('0x28')][_0x5865('0xb')][_0x5865('0x17')](_0x5865('0x0'))){for(const _0x21cae0 of this[_0x5865('0x30')])_0x1afd04[_0x5865('0x27')](_0x21cae0,(_0x43ebcd,_0x5bc2ee)=>{const _0xc16ab9=this['editor'][_0x5865('0xb')][_0x5865('0x22')]('TableUtils')[_0x5865('0x13')](this[_0x5865('0x28')][_0x5865('0x1d')][_0x5865('0x20')][_0x5865('0x2a')]);this['_handlePropertyChange'](_0x21cae0,_0xc16ab9,this['tableCellProperties'],_0x5865('0x30'),_0x43ebcd,_0x5bc2ee);});_0x1afd04[_0x5865('0x24')]['registerCustomCallback'](_0x5865('0x29'),'tableCellProperties',_0x5865('0x1f'),_0x1afd04[_0x5865('0x24')][_0x5865('0x23')]('formatBlock',null,'discard')),_0x1afd04[_0x5865('0x24')]['registerCustomCallback'](_0x5865('0x29'),_0x5865('0x30'),'discard',(_0xa528ce,_0x4e03a4)=>this[_0x5865('0x2c')](this[_0x5865('0x30')],_0xa528ce,_0x4e03a4)),_0x1afd04['_suggestionFactory'][_0x5865('0x15')]('formatBlock',_0x5865('0x30'),'join',()=>!0x1);}_0x1afd04[_0x5865('0xa')][_0x5865('0x9')](_0x3f6918=>this[_0x5865('0x31')](_0x3f6918));}[_0x5865('0x21')](_0x243aaf,_0x4691fb,_0x326221,_0x36943f,_0x37c0c0,_0xbbd958){const _0x46d8a9=this[_0x5865('0x28')][_0x5865('0xb')][_0x5865('0x22')]('TrackChangesEditing');this[_0x5865('0x28')][_0x5865('0x1d')]['enqueueChange'](_0xbbd958[_0x5865('0x1a')],()=>{for(const _0x4e13a2 of _0x4691fb){if(this[_0x5865('0xf')](_0x4e13a2,_0x36943f))_0x37c0c0(_0xbbd958);else{const _0x446263={};for(const _0x593b0b of _0x326221){const _0x233668=_0x4e13a2[_0x5865('0x3')](_0x593b0b);void 0x0!==_0x233668&&(_0x446263[_0x593b0b]=_0x233668);}_0x37c0c0(_0xbbd958),_0x46d8a9[_0x5865('0x10')](_0x4e13a2,{'commandParams':[_0x446263]},[],_0x36943f);}}});}[_0x5865('0x2c')](_0x16425f,_0x6c9955,_0x5acde8){const _0x5e1022=_0x6c9955[0x0][_0x5865('0x2e')]['nodeAfter'],_0x2b9b1c=_0x5acde8[_0x5865('0x19')][0x0];this[_0x5865('0x28')][_0x5865('0x1d')]['change'](_0x4d332a=>{for(const _0x572594 of _0x16425f)void 0x0!==_0x2b9b1c[_0x572594]?_0x4d332a[_0x5865('0x6')](_0x572594,_0x2b9b1c[_0x572594],_0x5e1022):_0x4d332a[_0x5865('0x12')](_0x572594,_0x5e1022);});}[_0x5865('0x31')](_0x4dfe1e){if(_0x4dfe1e['data'])switch(_0x4dfe1e[_0x5865('0x18')]){case _0x5865('0x25'):return{'type':'format','content':_0x4d5512(this[_0x5865('0x28')][_0x5865('0x1e')],'*Format:*\x20change\x20table\x20properties')};case _0x5865('0x30'):return{'type':'format','content':_0x4d5512(this[_0x5865('0x28')][_0x5865('0x1e')],_0x5865('0x14'))};}}['_getSuggestion'](_0x504fe1,_0x19cb99){const _0x46ab65=this[_0x5865('0x28')][_0x5865('0xb')][_0x5865('0x22')](_0x5865('0x8'));for(const _0x1decd1 of _0x46ab65['getSuggestions']({'skipNotAttached':!0x0})){const _0x1c50a2=_0x1decd1[_0x5865('0x11')]();if(_0x1decd1['subType']===_0x19cb99&&_0x1c50a2===_0x504fe1)return _0x1decd1;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xed31=['editor','has','enableCommand','afterInit','get','Template','TrackChangesEditing'];(function(_0x441968,_0xed314f){const _0x41964c=function(_0x35fc80){while(--_0x35fc80){_0x441968['push'](_0x441968['shift']());}};_0x41964c(++_0xed314f);}(_0xed31,0x182));const _0x4196=function(_0x441968,_0xed314f){_0x441968=_0x441968-0x0;let _0x41964c=_0xed31[_0x441968];return _0x41964c;};import{Plugin as _0x3a6867}from'ckeditor5/src/core';export default class yt extends _0x3a6867{[_0x4196('0x2')](){const _0x403443=this[_0x4196('0x6')];_0x403443['plugins'][_0x4196('0x0')](_0x4196('0x4'))&&_0x403443['plugins'][_0x4196('0x3')](_0x4196('0x5'))[_0x4196('0x1')]('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x157c=['afterInit','document','suggestion','has','isTouching','_splitMarkerName','createRange','_descriptionFactory','plugins','start','registerPostFixer','element','get','Title','isCollapsed','end','updateMarker','TrackChangesEditing','getNearestSelectionRange','newRange','model','registerElementLabel','getChangedMarkers','differ','locale'];(function(_0x2afb0f,_0x157c3d){const _0x3bda5a=function(_0x113c75){while(--_0x113c75){_0x2afb0f['push'](_0x2afb0f['shift']());}};_0x3bda5a(++_0x157c3d);}(_0x157c,0x118));const _0x3bda=function(_0x2afb0f,_0x157c3d){_0x2afb0f=_0x2afb0f-0x0;let _0x3bda5a=_0x157c[_0x2afb0f];return _0x3bda5a;};import{Plugin as _0x5ea8a4}from'ckeditor5/src/core';import{getTranslation as _0x128808}from'../utils/common-translations';export default class St extends _0x5ea8a4{[_0x3bda('0x14')](){const _0x1a01f9=this['editor'];if(!_0x1a01f9[_0x3bda('0x3')][_0x3bda('0x17')](_0x3bda('0x8')))return;const _0x18091c=_0x1a01f9[_0x3bda('0x3')][_0x3bda('0x7')](_0x3bda('0xc'));_0x18091c[_0x3bda('0x2')][_0x3bda('0x10')]('title-content',()=>_0x128808(_0x1a01f9[_0x3bda('0x13')],'ELEMENT_TITLE')),_0x1a01f9[_0x3bda('0xf')][_0x3bda('0x15')][_0x3bda('0x5')](_0x6ec1e7=>{let _0x5c90f1=!0x1;const _0x1733e4=Array['from'](_0x1a01f9[_0x3bda('0xf')][_0x3bda('0x15')][_0x3bda('0x12')][_0x3bda('0x11')]());for(const {name:_0x3f37c6,data:_0x2e8913}of _0x1733e4){const {group:_0x5c8326}=_0x18091c[_0x3bda('0x0')](_0x3f37c6);if(_0x3bda('0x16')!==_0x5c8326||!_0x2e8913['newRange'])continue;const _0x41d7f3=_0x2e8913[_0x3bda('0xe')],_0x57f9fa=_0x41d7f3[_0x3bda('0xa')]['nodeBefore'];if(!_0x57f9fa||!_0x57f9fa['is'](_0x3bda('0x6'),'title-content'))continue;if(!_0x41d7f3[_0x3bda('0x4')][_0x3bda('0x18')](_0x41d7f3[_0x3bda('0xa')]))continue;const _0x37d617=_0x1a01f9[_0x3bda('0xf')]['schema'][_0x3bda('0xd')](_0x41d7f3['end'],'forward');if(_0x37d617&&_0x37d617[_0x3bda('0x9')]){const _0x2c5842=_0x6ec1e7[_0x3bda('0x1')](_0x41d7f3[_0x3bda('0x4')],_0x37d617[_0x3bda('0x4')]);_0x2c5842['isEqual'](_0x41d7f3)||(_0x6ec1e7[_0x3bda('0xb')](_0x3f37c6,{'range':_0x2c5842}),_0x5c90f1=!0x0);}_0x5c90f1||(_0x6ec1e7['removeMarker'](_0x3f37c6),_0x5c90f1=!0x0);}return _0x5c90f1;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x518d=['plugins','afterInit','TrackChangesEditing','enableCommand','redo','editor','get','has'];(function(_0x2b2517,_0x518d85){const _0x2a84d2=function(_0x2fbcea){while(--_0x2fbcea){_0x2b2517['push'](_0x2b2517['shift']());}};_0x2a84d2(++_0x518d85);}(_0x518d,0x119));const _0x2a84=function(_0x2b2517,_0x518d85){_0x2b2517=_0x2b2517-0x0;let _0x2a84d2=_0x518d[_0x2b2517];return _0x2a84d2;};import{Plugin as _0x3adc58}from'ckeditor5/src/core';export default class It extends _0x3adc58{[_0x2a84('0x0')](){const _0x30c88d=this[_0x2a84('0x4')],_0x5d1b9b=_0x30c88d[_0x2a84('0x7')][_0x2a84('0x5')](_0x2a84('0x1'));_0x30c88d[_0x2a84('0x7')][_0x2a84('0x6')]('UndoEditing')&&(_0x5d1b9b[_0x2a84('0x2')]('undo'),_0x5d1b9b['enableCommand'](_0x2a84('0x3')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xebb1=['push','listIndent','getWalker','previousPosition','insert','isLimit','getAttribute','type','mapper','get','isBlock','toViewElement','parent','toViewPosition','includes','TrackChangesEditing','elementEnd','getItems','name','markerName','start','addClass','schema','writer','markerRange','element','hasAttribute','bindElementToMarker','ck-suggestion-marker--active','isAtEnd','listItem','nextSibling','activeMarkers','getCustomProperty','createRangeOn'];(function(_0x449e5a,_0xebb1b3){const _0x2d6914=function(_0x5931ad){while(--_0x5931ad){_0x449e5a['push'](_0x449e5a['shift']());}};_0x2d6914(++_0xebb1b3);}(_0xebb1,0x184));const _0x2d69=function(_0x449e5a,_0xebb1b3){_0x449e5a=_0x449e5a-0x0;let _0x2d6914=_0xebb1[_0x449e5a];return _0x2d6914;};export function getRangesWithAttribute(_0xec8737,_0x2ca817,_0x12a8a2){const _0xcdcfc5=[];for(const _0x50bc81 of _0x2ca817[_0x2d69('0xe')]())_0x50bc81[_0x2d69('0x17')](_0xec8737)&&_0xcdcfc5['push'](_0x12a8a2[_0x2d69('0x1f')](_0x50bc81));return _0xcdcfc5;}export function getElementsAffectedByListItemRename(_0xcba23b){const _0x2211e1=[];if(_0xcba23b['is'](_0x2d69('0x16'),_0x2d69('0x1b'))){let _0xe7ce57=_0xcba23b[_0x2d69('0x1c')];for(;_0xe7ce57&&_0xe7ce57['is'](_0x2d69('0x16'),_0x2d69('0x1b'))&&_0xe7ce57[_0x2d69('0x3')](_0x2d69('0x21'))>0x0;)_0x2211e1[_0x2d69('0x20')](_0xe7ce57),_0xe7ce57=_0xe7ce57[_0x2d69('0x1c')];}return _0x2211e1;}export function downcastSplitMergeMarker(_0x34d1d5,_0x34957d,{showActiveMarker:_0x29423c=!0x0}={}){const _0x134154=_0x34d1d5['plugins'][_0x2d69('0x6')](_0x2d69('0xc'));return(_0x47cdea,_0x9e13cd,_0x371474)=>{if(!_0x371474['consumable']['test'](_0x9e13cd[_0x2d69('0x15')],_0x47cdea[_0x2d69('0xf')]))return;const _0x327bd5=_0x9e13cd[_0x2d69('0x15')][_0x2d69('0x22')](),_0x55d904=_0x9e13cd[_0x2d69('0x15')][_0x2d69('0x11')],_0x33dd15=_0x34d1d5['model'][_0x2d69('0x13')];let _0x20a319=null,_0x5bfd88=null,_0x5f4327=!0x1,_0x2a999a=!0x1;for(const _0x441abc of _0x327bd5){const _0x1e9010=_0x441abc['item'];_0x5f4327=_0x5f4327||_0x33dd15['isContent'](_0x1e9010);const _0x32bd25=_0x371474[_0x2d69('0x5')][_0x2d69('0x8')](_0x1e9010);if(_0x32bd25&&_0x32bd25[_0x2d69('0x1e')]('addHighlight'))return;_0x2d69('0xd')==_0x441abc[_0x2d69('0x4')]&&(_0x33dd15[_0x2d69('0x7')](_0x1e9010)&&!_0x33dd15[_0x2d69('0x2')](_0x1e9010)&&(_0x1e9010[_0x2d69('0x1c')]||_0x55d904[_0x2d69('0x1a')]?_0x20a319&&_0x20a319[_0x2d69('0x9')]==_0x1e9010||(_0x20a319=_0x1e9010,_0x5d1c96(_0x441abc[_0x2d69('0x0')]),_0x2a999a=!0x0):_0x5bfd88=_0x5bfd88||_0x441abc['previousPosition']));}function _0x5d1c96(_0x36e2ae){const _0x550e8e=_0x371474['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x34957d}),_0x5069d3=_0x371474[_0x2d69('0x5')][_0x2d69('0xa')](_0x36e2ae);_0x29423c&&_0x134154[_0x2d69('0x1d')][_0x2d69('0xb')](_0x9e13cd[_0x2d69('0x10')])&&_0x371474[_0x2d69('0x14')][_0x2d69('0x12')](_0x2d69('0x19'),_0x550e8e),_0x371474[_0x2d69('0x14')][_0x2d69('0x1')](_0x5069d3,_0x550e8e),_0x371474[_0x2d69('0x5')][_0x2d69('0x18')](_0x550e8e,_0x9e13cd[_0x2d69('0x10')]);}_0x5f4327||_0x2a999a||!_0x5bfd88||_0x5d1c96(_0x5bfd88);};}
|