@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230912.0 → 0.0.0-nightly-20230914.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 _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 _0x28df=['differ','previous','insert','tableCellSuggestion','author','removeMarkers','getSuggestions','endColumn','registerCustomCallback','deletion','tableCell','length','paragraph','suggestion:formatBlock:tablePasteCell','forceDefaultExecution','rows','_suggestionFactory','endRow','insertColumns','*Replace\x20table\x20cells*','rootName','register','keys','afterInit','getItems','getChild','removeRows','setAttributes','selection','hasSuggestion','ck-suggestion-marker','type','filter','_tablePostFixingSubtypes','getChildren','registerPostFixer','requires','markerName','every','TrackChangesEditing','insertRows','find','get','getColumns','model','getChanges','columns','removeColumns','tablePaste','value','markerToHighlight','suggestionUnloaded','end','map','deletionRanges','trackChanges','editing','discard','has','push','cells','subType','high','root','suggestionLoaded','tableCellVerticalAlignment','tablePasteChainId','tableCellHorizontalAlignment','getRange','getRowIndexes','fromEntries','fill','includes','from','position','rowInsertionRanges','insertion','getContainedElement','markerAttributes','markers','editingDowncast','createPositionBefore','view','createTableWalker','move','for','getMarkers','getAllAdjacentSuggestions','Users','_getCoordsForCells','commands','showSuggestionHighlights','_createdBatches','last','document','change','insertContent','listenTo','tableCellBorderStyle','getRanges','startsWith','next','oldRange','_replaceTableSlotCell','elementToElement','rowInsertionIndexes','formatBlock','_splitMarkerName','accept','findAncestor','isInContent','getSelectionAffectedTableCells','markMultiRangeInsertion','insertionRanges','table','tablePasteColumn','first','$graveyard','suggestion-td','stop','columnInsertionRanges','updateMarker','plugins','cell','removeMarker','isEmpty','editor','return','content','TableUtils','TableClipboard','getTableIfOnlyTableInContent','attributes','_isForcedDefaultExecutionBlock','isEqual','_descriptionFactory','low','createElement','tablePasteCell','batch','createRangeOn','columnInsertionIndexes','tablePasteRow','locale','getSuggestion','set','documentSelection','element','markMultiRangeBlockFormat','nextSibling','name','nodeAfter','tableCellPadding','some','createRangeIn','suggestion','add','tableCellBackgroundColor','getRows','join','conversion','containsRange','remove'];(function(_0x48fcba,_0x28df6b){const _0x34ab3f=function(_0xe29049){while(--_0xe29049){_0x48fcba['push'](_0x48fcba['shift']());}};_0x34ab3f(++_0x28df6b);}(_0x28df,0x196));const _0x34ab=function(_0x48fcba,_0x28df6b){_0x48fcba=_0x48fcba-0x0;let _0x34ab3f=_0x28df[_0x48fcba];return _0x34ab3f;};import{getTranslation as _0x559fe2}from'../utils/common-translations';import{Plugin as _0x196c94}from'ckeditor5/src/core';import{uid as _0x38968b,priorities as _0x3f8007}from'ckeditor5/src/utils';import _0x3e1866 from'./table';const le=['tableCellBorderWidth','tableCellBorderColor',_0x34ab('0x12'),_0x34ab('0x96'),_0x34ab('0x94'),_0x34ab('0x4d'),_0x34ab('0x48')],ae=Object['fromEntries'](le[_0x34ab('0x88')](_0xb0238a=>[_0xb0238a,null]));export default class kt extends _0x196c94{static get[_0x34ab('0x77')](){return[_0x3e1866];}[_0x34ab('0x6a')](){const _0x4fd3db=this[_0x34ab('0x2e')];if(!_0x4fd3db[_0x34ab('0x2a')][_0x34ab('0x8d')](_0x34ab('0x32')))return;const _0x3d0712=_0x4fd3db['plugins']['get'](_0x34ab('0x7a')),_0x58635c=_0x4fd3db[_0x34ab('0x2a')][_0x34ab('0x7d')](_0x34ab('0x31')),_0x5bc371=_0x4fd3db[_0x34ab('0x2a')][_0x34ab('0x7d')](_0x3e1866),_0x152192=_0x4fd3db['plugins'][_0x34ab('0x7d')](_0x34ab('0x32'));_0x5bc371[_0x34ab('0x74')][_0x34ab('0x8e')](_0x34ab('0x3e'),_0x34ab('0x23')),_0x4fd3db[_0x34ab('0x7f')]['schema'][_0x34ab('0x68')](_0x34ab('0x56'),{'allowIn':_0x34ab('0x5d'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x4fd3db[_0x34ab('0x50')][_0x34ab('0x18')]({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4a2617=null;_0x4fd3db['model']['on'](_0x34ab('0x10'),(_0x5b29f2,_0xfe4fe7)=>{const [_0x6191bc,_0x1066b4]=_0xfe4fe7,_0x4b67da=_0xfe4fe7[_0xfe4fe7[_0x34ab('0x5e')]-0x1];_0x4b67da&&_0x4b67da[_0x34ab('0x61')]||_0x3d0712[_0x34ab('0x35')]||this[_0x34ab('0x2e')][_0x34ab('0xa')]['get'](_0x34ab('0x8a'))[_0x34ab('0x84')]&&function(_0x42ed64,_0x13fb91,_0x3bfae3,_0x44d154,_0x556e23){if(_0x13fb91&&!_0x13fb91['is'](_0x34ab('0x42')))return!0x1;const _0x5614a6=_0x556e23[_0x34ab('0x33')](_0x42ed64,_0x3bfae3);if(!_0x5614a6||!fe(_0x5614a6,void 0x0,_0x44d154))return!0x1;const _0x520962=_0x44d154[_0x34ab('0x1f')](_0x3bfae3[_0x34ab('0xe')][_0x34ab('0x6f')]);if(!_0x520962[_0x34ab('0x5e')])return!0x1;const _0x4aba5a=_0x520962[0x0]['findAncestor']('table'),_0xf8f28c=_0x44d154[_0x34ab('0x98')](_0x520962),_0x1dbafe=_0x44d154['getColumnIndexes'](_0x520962),_0x44634f={'startRow':_0xf8f28c[_0x34ab('0x24')],'endRow':_0xf8f28c[_0x34ab('0xd')],'startColumn':_0x1dbafe[_0x34ab('0x24')],'endColumn':_0x1dbafe[_0x34ab('0xd')]};return 0x1==_0x520962[_0x34ab('0x5e')]&&(_0x44634f[_0x34ab('0x64')]+=_0x44d154[_0x34ab('0x4e')](_0x5614a6)-0x1,_0x44634f[_0x34ab('0x5a')]+=_0x44d154[_0x34ab('0x7e')](_0x5614a6)-0x1),fe(_0x4aba5a,_0x44634f,_0x44d154);}(_0x6191bc,_0x1066b4,_0x4fd3db[_0x34ab('0x7f')],_0x58635c,_0x152192)&&(_0x5b29f2[_0x34ab('0x27')](),_0x4a2617={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4fd3db[_0x34ab('0x7f')][_0x34ab('0xf')](()=>{_0x4fd3db[_0x34ab('0x7f')][_0x34ab('0x10')](_0xfe4fe7[0x0],_0xfe4fe7[0x1],_0xfe4fe7[0x2],{'forceDefaultExecution':!0x0});const _0x4dd52c=_0x38968b(),{rowInsertionRanges:_0x6bcb35,columnInsertionRanges:_0x4f0847,insertionRanges:_0x32e413,deletionRanges:_0x517d52,cells:_0x2355fe}=_0x4a2617;_0x6bcb35[_0x34ab('0x5e')]&&_0x3d0712[_0x34ab('0x20')](_0x6bcb35,'tablePasteRow',{'tablePasteChainId':_0x4dd52c}),_0x4f0847[_0x34ab('0x5e')]&&_0x3d0712['markMultiRangeInsertion'](_0x4f0847,_0x34ab('0x23'),{'tablePasteChainId':_0x4dd52c}),_0x32e413['length']&&_0x3d0712[_0x34ab('0x20')](_0x32e413,'tablePaste',{'tablePasteChainId':_0x4dd52c,'skipNestingCheck':!0x0}),_0x517d52['length']&&_0x3d0712['markMultiRangeDeletion'](_0x517d52,_0x34ab('0x83'),{'tablePasteChainId':_0x4dd52c,'skipNestingCheck':!0x0});const _0x38dbeb=_0x3d0712[_0x34ab('0x44')](_0x2355fe[_0x34ab('0x88')](({element:_0x75be17})=>_0x75be17),{'formatGroupId':_0x38968b()},[],'tablePasteCell',{'tablePasteChainId':_0x4dd52c});if(_0x38dbeb){const _0x337a63=_0x38dbeb['getMarkers'](),_0x3fea42=[];for(const {element:_0x10c18c,attributes:_0x2096ab}of _0x2355fe){if(!_0x2096ab)continue;const _0x3315e7=_0x4fd3db['model'][_0x34ab('0x3c')](_0x10c18c),_0x36e320=_0x337a63['find'](_0x46a89f=>_0x46a89f[_0x34ab('0x97')]()[_0x34ab('0x36')](_0x3315e7));_0x36e320&&_0x3fea42[_0x34ab('0x8e')]([_0x36e320[_0x34ab('0x46')],_0x2096ab]);}_0x3fea42['length']&&_0x38dbeb['setAttribute'](_0x34ab('0xa1'),Object[_0x34ab('0x99')](_0x3fea42));}_0x4a2617=null;}));},{'priority':_0x3f8007['high']+0xa}),_0x4fd3db[_0x34ab('0x2a')][_0x34ab('0x7d')](_0x34ab('0x32'))['on'](_0x34ab('0x17'),(_0x21bfa0,_0x5285b6)=>{const [_0x29c71a,_0x101cd7,,_0x530923]=_0x5285b6;if(!_0x4a2617)return;_0x21bfa0[_0x34ab('0x27')]();const _0x4062e9=_0x29c71a[_0x34ab('0x2b')],_0x1ef3fc=_0x101cd7,_0x5c5d9f=ce(_0x4062e9),_0x4ca572=ce(_0x1ef3fc);_0x21bfa0[_0x34ab('0x2f')]=_0x4062e9;let _0xedb0cb=null,_0x4cdbd5=null;if(_0x4ca572||_0x5c5d9f){if(_0x5c5d9f&&!_0x4ca572){_0x530923[_0x34ab('0x52')](_0x4062e9[_0x34ab('0x6c')](0x0));for(const _0x217c11 of Array[_0x34ab('0x9c')](_0x1ef3fc['getChildren']()))_0x530923[_0x34ab('0x55')](_0x217c11,_0x4062e9,_0x34ab('0x87'));const _0x534edc=_0x4a2617[_0x34ab('0x19')][_0x34ab('0x9b')](_0x29c71a['row']),_0x1ea1d9=_0x4a2617[_0x34ab('0x3d')][_0x34ab('0x9b')](_0x29c71a['column']);_0x534edc||_0x1ea1d9||(_0xedb0cb=_0x530923['createRangeIn'](_0x4062e9));}else _0x4ca572&&!_0x5c5d9f&&(_0x4cdbd5=_0x530923[_0x34ab('0x4a')](_0x4062e9));}else{const _0x324ae8=_0x530923[_0x34ab('0x39')](_0x34ab('0x56')),_0x1899d6=_0x530923[_0x34ab('0x39')]('tableCellSuggestion');_0x530923['wrap'](_0x530923['createRangeIn'](_0x4062e9),_0x1899d6),_0x530923[_0x34ab('0x55')](_0x324ae8,_0x4062e9,0x0);for(const _0x4c40d0 of Array[_0x34ab('0x9c')](_0x1ef3fc[_0x34ab('0x75')]()))_0x530923[_0x34ab('0x55')](_0x4c40d0,_0x324ae8,_0x34ab('0x87'));_0xedb0cb=_0x530923[_0x34ab('0x3c')](_0x324ae8),_0x4cdbd5=_0x530923[_0x34ab('0x3c')](_0x1899d6);}const _0x180ce3=Array[_0x34ab('0x9c')](_0x1ef3fc['getAttributes']())[_0x34ab('0x73')](([_0x2d8eed])=>le[_0x34ab('0x9b')](_0x2d8eed));_0x4a2617[_0x34ab('0x8f')]['push']({'element':_0x4062e9,'attributes':_0x180ce3[_0x34ab('0x5e')]?Object[_0x34ab('0x99')](_0x180ce3):null}),_0xedb0cb&&_0x4a2617[_0x34ab('0x21')][_0x34ab('0x8e')](_0xedb0cb),_0x4cdbd5&&_0x4a2617[_0x34ab('0x89')][_0x34ab('0x8e')](_0x4cdbd5);},{'priority':_0x34ab('0x91')}),_0x58635c['on'](_0x34ab('0x65'),(_0xcac97d,_0x3353a9)=>{const [_0x52eea0,_0x42f5d4={}]=_0x3353a9;if(!_0x4a2617)return;const _0x642a6e=_0x42f5d4['at']||0x0,_0x331316=_0x42f5d4[_0x34ab('0x81')]||0x1;_0x4a2617[_0x34ab('0x3d')]=new Array(_0x331316)[_0x34ab('0x9a')](_0x642a6e)[_0x34ab('0x88')]((_0x458a15,_0x42524b)=>_0x458a15+_0x42524b);for(const {cell:_0x404ac6}of _0x58635c[_0x34ab('0x3')](_0x52eea0,{'startColumn':_0x642a6e,'endColumn':_0x642a6e+_0x331316-0x1}))_0x4a2617[_0x34ab('0x28')][_0x34ab('0x8e')](_0x4fd3db[_0x34ab('0x7f')][_0x34ab('0x3c')](_0x404ac6));},{'priority':_0x34ab('0x38')}),_0x58635c['on'](_0x34ab('0x7b'),(_0x59b3d9,_0x2d1cfc)=>{const [_0x3e1b09,_0x10e7a3={}]=_0x2d1cfc;if(!_0x4a2617)return;const _0x23a7a6=_0x10e7a3['at']||0x0,_0x3d18e8=_0x10e7a3[_0x34ab('0x62')]||0x1;_0x4a2617[_0x34ab('0x19')]=new Array(_0x3d18e8)[_0x34ab('0x9a')](_0x23a7a6)[_0x34ab('0x88')]((_0x197be5,_0x154146)=>_0x197be5+_0x154146);for(const {cell:_0x5128c1}of _0x58635c[_0x34ab('0x3')](_0x3e1b09,{'startRow':_0x23a7a6,'endRow':_0x23a7a6+_0x3d18e8-0x1}))_0x4a2617[_0x34ab('0x9e')]['push'](_0x4fd3db[_0x34ab('0x7f')][_0x34ab('0x3c')](_0x5128c1));},{'priority':_0x34ab('0x38')}),_0x3d0712[_0x34ab('0x37')]['registerDescriptionCallback'](_0x80d369=>{if(_0x80d369['subType']&&_0x80d369['subType']['startsWith'](_0x34ab('0x83')))return _0x80d369['previous']?{}:{'type':_0x34ab('0x9f'),'content':_0x559fe2(_0x4fd3db[_0x34ab('0x3f')],_0x34ab('0x66'))};});const _0x730e47=()=>!0x1;for(const _0x14586b of['tablePaste',_0x34ab('0x23'),_0x34ab('0x3e'),_0x34ab('0x3a')])_0x3d0712[_0x34ab('0x63')]['registerCustomCallback'](_0x34ab('0x9f'),_0x14586b,'join',_0x730e47),_0x3d0712[_0x34ab('0x63')]['registerCustomCallback'](_0x34ab('0x5c'),_0x14586b,_0x34ab('0x4f'),_0x730e47),_0x3d0712['_suggestionFactory'][_0x34ab('0x5b')]('formatBlock',_0x14586b,_0x34ab('0x4f'),_0x730e47);_0x3d0712[_0x34ab('0x63')][_0x34ab('0x5b')](_0x34ab('0x1a'),'tablePasteCell',_0x34ab('0x8c'),_0x730e47),_0x3d0712[_0x34ab('0x63')]['registerCustomCallback'](_0x34ab('0x1a'),'tablePasteCell',_0x34ab('0x1c'),(_0x355dd9,_0x26c6c0,_0x26eeea)=>{const _0x4bc21d=_0x355dd9[_0x34ab('0x88')](_0x30bdd5=>_0x30bdd5['getContainedElement']())[_0x34ab('0x73')](_0x1cc49a=>_0x1cc49a),_0x24015e=new Map(_0x4bc21d[_0x34ab('0x88')](_0x44c378=>[_0x44c378,null]));if(_0x4a2617)for(const {element:_0x4e0164,attributes:_0x186252}of _0x4a2617['cells'])_0x186252&&_0x24015e[_0x34ab('0x41')](_0x4e0164,_0x186252);else{if(_0x26eeea&&_0x26eeea['markerAttributes'])for(const [_0x10a74b,_0x2a760b]of Object['entries'](_0x26eeea[_0x34ab('0xa1')])){const _0x2f8588=_0x4fd3db[_0x34ab('0x7f')][_0x34ab('0xa2')][_0x34ab('0x7d')](_0x10a74b),_0x2d2387=_0x2f8588?_0x2f8588[_0x34ab('0x97')]()[_0x34ab('0xa0')]():null;_0x2d2387&&_0x24015e[_0x34ab('0x41')](_0x2d2387,_0x2a760b);}}_0x4fd3db[_0x34ab('0x7f')][_0x34ab('0xf')](_0x1e36ad=>{for(const [_0x42f660,_0xd5ed7]of _0x24015e)_0x1e36ad[_0x34ab('0x6e')]({...ae,..._0xd5ed7},_0x42f660);});});const _0x362ff2=(_0x5f408c,_0x42189b)=>{_0x3d0712['_suggestionFactory'][_0x34ab('0x5b')](_0x5f408c,_0x34ab('0x83'),_0x42189b,(_0x4d4eda,_0x2d36a4,_0x2bc342)=>{_0x4fd3db[_0x34ab('0x7f')][_0x34ab('0xf')](_0x33ce1e=>{const _0x44493c=[];for(const _0x18f0db of _0x4d4eda){const _0x393e06=_0x18f0db['start'][_0x34ab('0x47')];_0x393e06['is']('element','tableCellSuggestion')&&_0x44493c['push'](_0x393e06);}_0x3d0712[_0x34ab('0x63')]['getSuggestionCallback'](_0x5f408c,null,_0x42189b)(_0x4d4eda,_0x2d36a4,_0x2bc342);for(const _0x3b271f of _0x44493c)_0x34ab('0x25')!=_0x3b271f[_0x34ab('0x92')][_0x34ab('0x67')]&&_0x33ce1e['unwrap'](_0x3b271f);});});};_0x362ff2('insertion',_0x34ab('0x1c')),_0x362ff2(_0x34ab('0x9f'),'discard'),_0x362ff2(_0x34ab('0x5c'),'accept'),_0x362ff2(_0x34ab('0x5c'),'discard'),_0x3d0712['_suggestionFactory'][_0x34ab('0x5b')](_0x34ab('0x9f'),'tablePasteRow',_0x34ab('0x8c'),_0x17d1ed=>{const _0xe20118=_0x17d1ed[_0x34ab('0x88')](_0x5f2e2a=>_0x5f2e2a[_0x34ab('0xa0')]()),_0x39cafb=_0xe20118[0x0][_0x34ab('0x1d')](_0x34ab('0x22')),{minRow:_0x5c726a,maxRow:_0x3bf951}=_0x5bc371[_0x34ab('0x9')](_0xe20118);_0x58635c[_0x34ab('0x6d')](_0x39cafb,{'at':_0x5c726a,'rows':_0x3bf951-_0x5c726a+0x1});}),_0x3d0712[_0x34ab('0x63')][_0x34ab('0x5b')](_0x34ab('0x9f'),_0x34ab('0x23'),_0x34ab('0x8c'),_0x298add=>{const _0x351747=_0x298add[_0x34ab('0x88')](_0x4ed766=>_0x4ed766[_0x34ab('0xa0')]()),_0xcc1e49=_0x351747[0x0]['findAncestor'](_0x34ab('0x22')),{minColumn:_0xcd242c,maxColumn:_0x4d7b0a}=_0x5bc371['_getCoordsForCells'](_0x351747);_0x58635c[_0x34ab('0x82')](_0xcc1e49,{'at':_0xcd242c,'columns':_0x4d7b0a-_0xcd242c+0x1});});const _0x5728c1=(_0x4f5118,_0x4fccdd)=>{if(!_0x4fccdd[_0x34ab('0x90')]||!_0x4fccdd['subType'][_0x34ab('0x14')](_0x34ab('0x83')))return;const _0x4dbe76=_0x4fccdd[_0x34ab('0x34')][_0x34ab('0x95')],_0x5ad5cc=_0x3d0712[_0x34ab('0x59')]()[_0x34ab('0x73')](_0x4b0b3c=>_0x4b0b3c['isInContent']&&_0x4b0b3c[_0x34ab('0x34')]&&_0x4b0b3c['attributes']['tablePasteChainId']==_0x4dbe76);_0x5ad5cc[_0x34ab('0x5e')]&&_0x4fccdd[_0x34ab('0x7')]()['length']!=_0x5ad5cc[_0x34ab('0x5e')]&&_0x5ad5cc['reduce']((_0x3976c3,_0x21ade4)=>(_0x3976c3[_0x34ab('0x15')]=_0x21ade4,_0x21ade4[_0x34ab('0x54')]=_0x3976c3,_0x21ade4));};function _0x12c6cf(_0xc3ede5,_0x46da4c=!0x0){const {id:_0x7acc1c}=_0x3d0712[_0x34ab('0x1b')](_0xc3ede5['markerName']),_0x93086e=[_0x34ab('0x71'),'ck-suggestion-marker-insertion'],_0x244474=_0x3d0712['activeMarkers'][_0x34ab('0x9b')](_0xc3ede5[_0x34ab('0x78')]);return _0x244474&&_0x93086e[_0x34ab('0x8e')]('ck-suggestion-marker--active'),{'classes':_0x93086e,'attributes':{'data-suggestion':_0x7acc1c},'priority':_0x244474&&_0x46da4c?0xbc2:0xbb8};}_0x3d0712['on'](_0x34ab('0x93'),_0x5728c1,{'priority':_0x34ab('0x91')}),_0x3d0712['on'](_0x34ab('0x86'),_0x5728c1,{'priority':_0x34ab('0x91')}),_0x4fd3db[_0x34ab('0x7f')][_0x34ab('0xe')][_0x34ab('0x76')](()=>{let _0x59c699=!0x1;const _0x47c6f0=Array[_0x34ab('0x9c')](_0x4fd3db[_0x34ab('0x7f')][_0x34ab('0xe')][_0x34ab('0x53')]['getChangedMarkers']());for(const {name:_0x41cbeb,data:_0x18b37e}of _0x47c6f0){const {group:_0x4bcffa,type:_0x287ea2,id:_0x1c120c}=_0x3d0712[_0x34ab('0x1b')](_0x41cbeb);if(_0x34ab('0x4b')!=_0x4bcffa||_0x34ab('0x5c')!=_0x287ea2||_0x18b37e[_0x34ab('0x16')])continue;if(!_0x3d0712[_0x34ab('0x70')](_0x1c120c))continue;const _0x144058=_0x3d0712[_0x34ab('0x40')](_0x1c120c)[_0x34ab('0x13')](),_0xa7f3e1=_0x4fd3db[_0x34ab('0x2a')][_0x34ab('0x7d')]('Users')['me'];for(const _0x48eca0 of _0x3d0712['getSuggestions']()){if(!_0x48eca0[_0x34ab('0x1e')]||_0x48eca0[_0x34ab('0x57')]!=_0xa7f3e1)continue;if(_0x34ab('0x1a')!=_0x48eca0[_0x34ab('0x72')]||_0x34ab('0x3a')!=_0x48eca0[_0x34ab('0x90')])continue;if(_0x48eca0[_0x34ab('0x13')]()[_0x34ab('0x79')](_0x29665c=>_0x144058[_0x34ab('0x49')](_0x356390=>_0x356390[_0x34ab('0x51')](_0x29665c,!0x0))))for(const _0x3f359d of _0x48eca0[_0x34ab('0x7')]())_0x3f359d[_0x34ab('0x1e')]&&(_0x3f359d[_0x34ab('0x8c')](),_0x59c699=!0x0);}}return _0x59c699;}),_0x4fd3db[_0x34ab('0x7f')][_0x34ab('0xe')]['registerPostFixer'](_0x1dc60a=>{const _0x1be9cc=_0x4fd3db['commands'][_0x34ab('0x7d')]('redo');if(!_0x1be9cc||!_0x1be9cc[_0x34ab('0xc')]['has'](_0x1dc60a[_0x34ab('0x3b')]))return!0x1;let _0x30a793=!0x1;const _0x4e93a6=_0x4fd3db['plugins'][_0x34ab('0x7d')](_0x34ab('0x8'))['me'],_0x6542d4=_0x4fd3db[_0x34ab('0x7f')][_0x34ab('0xe')]['differ'][_0x34ab('0x80')](),_0x4f1211=Array[_0x34ab('0x9c')](_0x4fd3db[_0x34ab('0x7f')][_0x34ab('0xe')][_0x34ab('0x53')]['getChangedMarkers']())[_0x34ab('0x73')](({name:_0x142add,data:_0x3c6648})=>{const {group:_0x452056,subType:_0x67a62d,authorId:_0x59047b}=_0x3d0712[_0x34ab('0x1b')](_0x142add);return'suggestion'==_0x452056&&_0x34ab('0x83')==_0x67a62d&&_0x59047b==_0x4e93a6['id']&&!_0x3c6648[_0x34ab('0x16')];});for(const _0x36cc85 of _0x6542d4){if(_0x34ab('0x55')!=_0x36cc85[_0x34ab('0x72')]||'tableCellSuggestion'!=_0x36cc85[_0x34ab('0x46')]||0x1!=_0x36cc85[_0x34ab('0x5e')])continue;const _0x41b9fa=_0x1dc60a['createRange'](_0x36cc85[_0x34ab('0x9d')],_0x36cc85[_0x34ab('0x9d')]['getShiftedBy'](0x1));if(!_0x4f1211[_0x34ab('0x7c')](({data:_0xd4d705})=>_0xd4d705['newRange'][_0x34ab('0x36')](_0x41b9fa)))for(const {name:_0x2fde0f,data:_0x3194e0}of _0x4f1211)if(_0x41b9fa[_0x34ab('0x51')](_0x3194e0['newRange'])){_0x1dc60a[_0x34ab('0x29')](_0x2fde0f,{'range':_0x41b9fa}),_0x30a793=!0x0;break;}}return _0x30a793;}),_0x4fd3db[_0x34ab('0x7f')][_0x34ab('0xe')][_0x34ab('0x76')](_0x12c956=>{let _0x15c416=!0x1;const _0x194aeb=_0x4fd3db[_0x34ab('0x2a')][_0x34ab('0x7d')]('Users')['me'],_0x2283c6=_0x3d0712['getSuggestions']()['filter'](_0x19e46d=>_0x19e46d[_0x34ab('0x1e')]&&_0x19e46d[_0x34ab('0x57')]==_0x194aeb),_0x5ac162=new Set(),_0x27f232=new Set();for(const _0x31e6c1 of _0x2283c6)if(_0x34ab('0x83')==_0x31e6c1[_0x34ab('0x90')])for(const _0x3b52c0 of _0x31e6c1[_0x34ab('0x6')]()){const _0x4f753d=_0x3b52c0[_0x34ab('0x97')]()['getContainedElement']();if(_0x4f753d){if(_0x4f753d['is'](_0x34ab('0x43'),'tableCellSuggestion')&&ce(_0x4f753d)){_0x31e6c1['removeMarker'](_0x3b52c0[_0x34ab('0x46')]),_0x5ac162['add'](_0x4f753d),_0x15c416=!0x0;const _0x3c67ef=_0x4f753d[_0x34ab('0x45')],_0x23f031=_0x4f753d['previousSibling'],_0x456ee5=_0x3c67ef&&_0x3c67ef['is'](_0x34ab('0x43'),_0x34ab('0x56')),_0x582a45=_0x23f031&&_0x23f031['is'](_0x34ab('0x43'),_0x34ab('0x56'));_0x456ee5&&!_0x5ac162['has'](_0x3c67ef)&&_0x27f232[_0x34ab('0x4c')](_0x3c67ef),_0x582a45&&!_0x5ac162['has'](_0x23f031)&&_0x27f232[_0x34ab('0x4c')](_0x23f031);}else _0x4f753d['is']('element',_0x34ab('0x5f'))&&_0x4f753d[_0x34ab('0x2d')]&&(_0x31e6c1[_0x34ab('0x2c')](_0x3b52c0[_0x34ab('0x46')]),_0x15c416=!0x0);}}else{if(_0x34ab('0x3a')==_0x31e6c1['subType']){if(!_0x31e6c1[_0x34ab('0x34')]||!_0x31e6c1[_0x34ab('0x34')][_0x34ab('0x95')])continue;const _0x21eaf6=_0x31e6c1[_0x34ab('0x34')][_0x34ab('0xa1')];if(_0x21eaf6&&Object[_0x34ab('0x69')](_0x21eaf6)[_0x34ab('0x5e')])continue;const _0x492103=_0x31e6c1['attributes']['tablePasteChainId'];let _0x39394e=!0x0,_0x5aca6e=!0x0;for(const _0x4caadd of _0x2283c6)if(_0x4caadd[_0x34ab('0x90')]&&_0x4caadd['subType'][_0x34ab('0x14')]('tablePaste')){if(!_0x4caadd['attributes'][_0x34ab('0x95')]){_0x5aca6e=!0x1;break;}if(_0x4caadd['id']!=_0x31e6c1['id']&&_0x4caadd[_0x34ab('0x34')][_0x34ab('0x95')]==_0x492103){_0x39394e=!0x1;break;}}_0x5aca6e&&_0x39394e&&(_0x31e6c1[_0x34ab('0x58')](),_0x15c416=!0x0);}}for(const _0x4a9166 of _0x5ac162)_0x12c956[_0x34ab('0x52')](_0x4a9166);for(const _0x39c885 of _0x27f232)_0x12c956['unwrap'](_0x39c885);return _0x15c416;}),_0x4fd3db['conversion'][_0x34ab('0x5')](_0x34ab('0x0'))[_0x34ab('0x85')]({'model':_0x34ab('0x60'),'view':(_0x3eeb23,_0x936eb3)=>_0x12c6cf(_0x3eeb23),'converterPriority':_0x34ab('0x91')}),_0x4fd3db['conversion'][_0x34ab('0x5')]('dataDowncast')[_0x34ab('0x85')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x45a0f5,_0x294e4e)=>_0x294e4e['options'][_0x34ab('0xb')]?_0x12c6cf(_0x45a0f5,!0x1):null,'converterPriority':_0x34ab('0x91')});const _0x46cac2=_0x4fd3db[_0x34ab('0x8b')][_0x34ab('0x2')];this[_0x34ab('0x11')](_0x46cac2[_0x34ab('0xe')],'clipboardOutput',(_0x416514,_0x298357)=>{const _0x43a984=[];for(const _0x5b8f17 of _0x46cac2['createRangeIn'](_0x298357[_0x34ab('0x30')])[_0x34ab('0x6b')]())_0x5b8f17['is'](_0x34ab('0x43'),_0x34ab('0x26'))&&_0x43a984[_0x34ab('0x8e')](_0x5b8f17);_0x46cac2[_0x34ab('0xf')](_0x2294b3=>{for(const _0x329015 of _0x43a984)_0x2294b3[_0x34ab('0x4')](_0x2294b3[_0x34ab('0x4a')](_0x329015),_0x2294b3[_0x34ab('0x1')](_0x329015)),_0x2294b3[_0x34ab('0x52')](_0x329015);});});}}function ce(_0x384067){if(_0x384067[_0x34ab('0x2d')])return!0x0;const _0xf2a714=_0x384067['getChild'](0x0);return _0xf2a714['is'](_0x34ab('0x43'),'paragraph')&&_0xf2a714[_0x34ab('0x2d')];}function fe(_0x5b5b25,_0x3b89b6={},_0x92ce80){for(const {isAnchor:_0x41eae3,cellHeight:_0x4fac3d,cellWidth:_0x26d2aa}of _0x92ce80[_0x34ab('0x3')](_0x5b5b25,{'includeAllSlots':!0x0,..._0x3b89b6}))if(!_0x41eae3||0x1!=_0x4fac3d||0x1!=_0x26d2aa)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c59=['bind','Users','format','getSuggestionCallback','data','TableColumnResizeEditing','handleResizeTableWidthCommand','author','get','plugins','editor','getContainedElement','_descriptionFactory','_suggestionFactory','resizeTableWidth','registerDescriptionCallback','resizeTable','getColumnGroupElement','afterInit','has','accept','*Format:*\x20resize\x20table','change','table','tableWidth','model','formatBlock','discard','markBlockFormat','TrackChangesEditing','columnWidths','subType','handleSuggestionDescription','commandParams','locale','getTableColumnsWidths','registerCustomCallback'];(function(_0x21189e,_0x4c597d){const _0x283a54=function(_0x221a8b){while(--_0x221a8b){_0x21189e['push'](_0x21189e['shift']());}};_0x283a54(++_0x4c597d);}(_0x4c59,0x6c));const _0x283a=function(_0x21189e,_0x4c597d){_0x21189e=_0x21189e-0x0;let _0x283a54=_0x4c59[_0x21189e];return _0x283a54;};import{Plugin as _0x243161}from'ckeditor5/src/core';import{getTranslation as _0x511da3}from'../utils/common-translations';export default class wt extends _0x243161{[_0x283a('0x15')](){if(!this['editor'][_0x283a('0xc')][_0x283a('0x16')](_0x283a('0x8')))return;const _0x850ce9=this[_0x283a('0xd')][_0x283a('0xc')][_0x283a('0xb')](_0x283a('0x20'));_0x850ce9['enableCommand']('resizeTableWidth',this[_0x283a('0x9')][_0x283a('0x3')](this)),_0x850ce9['enableCommand']('resizeColumnWidths',this[_0x283a('0x9')]['bind'](this)),_0x850ce9[_0x283a('0x10')][_0x283a('0x2')](_0x283a('0x1d'),'resizeTable',_0x283a('0x17'),_0x850ce9[_0x283a('0x10')][_0x283a('0x6')](_0x283a('0x1d'),null,'discard')),_0x850ce9[_0x283a('0x10')]['registerCustomCallback'](_0x283a('0x1d'),'resizeTable',_0x283a('0x1e'),_0x850ce9[_0x283a('0x10')][_0x283a('0x6')](_0x283a('0x1d'),null,'accept')),_0x850ce9[_0x283a('0xf')][_0x283a('0x12')](this[_0x283a('0x23')][_0x283a('0x3')](this));}[_0x283a('0x9')](_0x3c226b,_0x33d7c2){const _0x557202=this[_0x283a('0xd')]['plugins'][_0x283a('0xb')]('TrackChangesEditing'),_0x315c9a=this[_0x283a('0xd')][_0x283a('0xc')]['get']('TableColumnResizeEditing'),_0x12ebe4=_0x33d7c2[_0x283a('0x1a')]||this[_0x283a('0xd')][_0x283a('0x1c')]['document']['selection']['getSelectedElement']();this['editor'][_0x283a('0x1c')][_0x283a('0x19')](()=>{const _0x4826b1=_0x315c9a[_0x283a('0x14')](_0x12ebe4);let _0x1561d9=_0x4826b1?_0x315c9a[_0x283a('0x1')](_0x4826b1):null,_0x421ca4=_0x12ebe4['getAttribute']('tableWidth')||null;const _0x4d63fb=_0x33d7c2[_0x283a('0x1b')]||_0x421ca4,_0x584d86=_0x33d7c2['columnWidths']||_0x1561d9,_0xf1bbcc=this[_0x283a('0xd')]['plugins'][_0x283a('0xb')](_0x283a('0x4'))['me'];for(const _0x5e4594 of _0x557202['getSuggestions']()){const _0x41b4b4=_0x5e4594[_0x283a('0xe')]();if(_0x283a('0x13')===_0x5e4594[_0x283a('0x22')]&&_0x41b4b4===_0x12ebe4){_0x5e4594[_0x283a('0xa')]!==_0xf1bbcc&&_0x5e4594[_0x283a('0x1e')]();const _0x1a3f96=_0x5e4594[_0x283a('0x7')][_0x283a('0x24')];_0x421ca4=_0x1a3f96[0x0][_0x283a('0x1b')],_0x1561d9=_0x1a3f96[0x0][_0x283a('0x21')];break;}}_0x3c226b({'table':_0x12ebe4,'tableWidth':_0x4d63fb,'columnWidths':_0x584d86}),_0x557202[_0x283a('0x1f')](_0x12ebe4,{'commandName':_0x283a('0x11'),'commandParams':[{'tableWidth':_0x421ca4,'columnWidths':_0x1561d9}],'formatGroupId':_0x283a('0x13')},[],_0x283a('0x13'));});}[_0x283a('0x23')](_0x5f230b){const {data:_0x33f2fc}=_0x5f230b;if(_0x33f2fc&&'resizeTable'===_0x33f2fc['formatGroupId']){const _0x1315fe=_0x283a('0x18');return{'type':_0x283a('0x5'),'content':_0x511da3(this['editor'][_0x283a('0x0')],_0x1315fe)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a6a=['highest','markerRange','headingColumns','get','options','requires','registerCustomCallback','editing','model','data','removeAttribute','start','toViewElement','table','*Format:*\x20%0','getSuggestion','_splitMarkerName','first','FORMAT_HEADER_ROW','change','findAncestor','consume','commandParams','_acceptFormatSuggestionCallbackFactory','nodeBefore','_suggestionFactory','getChild','activeMarkers','childCount','addMarker:suggestion','parent','TableUtils','markerName','getSelectionAffectedTableCells','from','FORMAT_REGULAR_ROW','markerNameToElements','commands','end','setAttribute','addClass','index','showSuggestionHighlights','data-suggestion','formatBlock','locale','removeMarker:suggestion','value','createPositionAfter','selection','afterInit','createPositionBefore','forceValue','getAttribute','createRange','downcastDispatcher','accept','markBlockFormat','enableCommand','commandName','ck-suggestion-marker--active','unbindElementFromMarkerName','last','consumable','removeClass','plugins','format','ck-suggestion-marker-','setTableColumnHeader','writer','mapper','has','cell','bindElementToMarker','getRowIndexes','FORMAT_REGULAR_COLUMN','getCellLocation','document','name','createTableWalker','setTableRowHeader','editor','isBefore'];(function(_0x541d1b,_0x1a6af9){const _0x35298f=function(_0x453ccb){while(--_0x453ccb){_0x541d1b['push'](_0x541d1b['shift']());}};_0x35298f(++_0x1a6af9);}(_0x1a6a,0x1c5));const _0x3529=function(_0x541d1b,_0x1a6af9){_0x541d1b=_0x541d1b-0x0;let _0x35298f=_0x1a6a[_0x541d1b];return _0x35298f;};import{Plugin as _0x48a3be}from'ckeditor5/src/core';import _0x164cea from'./table';import{getTranslation as _0x3bae42}from'../utils/common-translations';export default class pt extends _0x48a3be{static get[_0x3529('0x32')](){return[_0x164cea];}[_0x3529('0xc')](){const _0x2c52ce=this[_0x3529('0x2b')];if(!_0x2c52ce[_0x3529('0x1b')][_0x3529('0x21')]('TableEditing'))return;const _0x339c0a=_0x2c52ce[_0x3529('0x7')],_0x338926=_0x2c52ce[_0x3529('0x1b')][_0x3529('0x30')]('TrackChangesEditing'),_0x3a539e=_0x2c52ce[_0x3529('0x1b')][_0x3529('0x30')](_0x3529('0x4c')),_0x6feb60=_0x2c52ce['plugins'][_0x3529('0x30')](_0x164cea);function _0x1eb278({showActiveMarker:_0x59f545=!0x0,setDataAttribute:_0x16a276=!0x0}={}){return(_0x559ad4,_0x58acb3,_0x3f1bd4)=>{const {type:_0x4dd9f9,id:_0x19af8b}=_0x338926[_0x3529('0x3d')](_0x58acb3[_0x3529('0x4d')]),_0x323f80=_0x338926[_0x3529('0x3c')](_0x19af8b);if(!_0x323f80['data']||'setTableColumnHeader'!=_0x323f80['data'][_0x3529('0x15')])return;if(_0x58acb3['item'])return void _0x559ad4['stop']();if(!_0x3f1bd4[_0x3529('0x19')][_0x3529('0x42')](_0x58acb3[_0x3529('0x2e')],_0x559ad4[_0x3529('0x28')]))return;const _0x311395=_0x58acb3[_0x3529('0x2e')][_0x3529('0x38')]['nodeAfter'],_0x50e771=_0x58acb3[_0x3529('0x2e')][_0x3529('0x0')][_0x3529('0x45')],_0x232aac=_0x311395['parent'][_0x3529('0x4b')],{column:_0x2633b5}=_0x3a539e[_0x3529('0x26')](_0x311395),{column:_0xa2853f}=_0x3a539e[_0x3529('0x26')](_0x50e771);for(let _0x2ab585=_0x2633b5;_0x2ab585<=_0xa2853f;_0x2ab585++){const _0x13d6aa=_0x3a539e[_0x3529('0x29')](_0x232aac,{'column':_0x2ab585,'includeAllSlots':!0x1});for(const _0x15653a of _0x13d6aa){const _0x551180=_0x15653a[_0x3529('0x22')],_0x2cb3fe=_0x3f1bd4[_0x3529('0x20')][_0x3529('0x39')](_0x551180);_0x3f1bd4[_0x3529('0x1f')]['addClass'](_0x3529('0x1d')+_0x4dd9f9,_0x2cb3fe),_0x16a276&&_0x3f1bd4[_0x3529('0x1f')][_0x3529('0x1')]('data-suggestion',_0x19af8b,_0x2cb3fe),_0x3f1bd4[_0x3529('0x20')][_0x3529('0x23')](_0x2cb3fe,_0x58acb3[_0x3529('0x4d')]),_0x59f545&&(_0x338926[_0x3529('0x48')]['includes'](_0x58acb3[_0x3529('0x4d')])?_0x3f1bd4[_0x3529('0x1f')][_0x3529('0x2')](_0x3529('0x16'),_0x2cb3fe):_0x3f1bd4[_0x3529('0x1f')]['removeClass']('ck-suggestion-marker--active',_0x2cb3fe));}}};}_0x338926[_0x3529('0x14')](_0x3529('0x2a'),(_0x26df69,_0x374f1d)=>{const _0x48cdab=_0x3a539e['getSelectionAffectedTableCells'](_0x2c52ce[_0x3529('0x35')][_0x3529('0x27')][_0x3529('0xb')]),_0x427aad=_0x3a539e[_0x3529('0x24')](_0x48cdab),_0x565784=_0x48cdab[0x0][_0x3529('0x41')](_0x3529('0x3a')),_0x101e7d=_0x565784[_0x3529('0xf')]('headingRows')||0x0,_0x19efee=_0x374f1d&&null!==_0x374f1d['forceValue']?_0x374f1d['forceValue']:!_0x2c52ce[_0x3529('0x52')][_0x3529('0x30')](_0x3529('0x2a'))[_0x3529('0x9')],_0x32aaaf=_0x19efee?_0x427aad['last']:_0x427aad[_0x3529('0x3e')],_0x51ce38=_0x565784[_0x3529('0x47')](_0x32aaaf);let _0x1793ec;if(_0x19efee){const _0x535782=_0x565784[_0x3529('0x47')](_0x101e7d);if(_0x51ce38['index']<_0x535782[_0x3529('0x3')])return;_0x1793ec=_0x2c52ce[_0x3529('0x35')][_0x3529('0x10')](_0x2c52ce[_0x3529('0x35')][_0x3529('0xd')](_0x535782[_0x3529('0x47')](0x0)),_0x2c52ce[_0x3529('0x35')][_0x3529('0xa')](_0x51ce38[_0x3529('0x47')](_0x51ce38[_0x3529('0x49')]-0x1)));}else{const _0x547e2d=_0x565784['getChild'](_0x101e7d-0x1);if(!_0x547e2d)return;_0x1793ec=_0x2c52ce[_0x3529('0x35')][_0x3529('0x10')](_0x2c52ce[_0x3529('0x35')][_0x3529('0xd')](_0x51ce38['getChild'](0x0)),_0x2c52ce['model'][_0x3529('0xa')](_0x547e2d[_0x3529('0x47')](_0x547e2d[_0x3529('0x49')]-0x1)));}_0x2c52ce[_0x3529('0x35')][_0x3529('0x40')](()=>{_0x338926[_0x3529('0x13')](_0x1793ec,{'commandName':_0x3529('0x2a'),'commandParams':[{'forceValue':_0x19efee}]},[],_0x3529('0x2a'));});}),_0x338926[_0x3529('0x14')](_0x3529('0x1e'),(_0x1bef16,_0x2d381a)=>{const _0x3814cb=_0x2c52ce[_0x3529('0x1b')][_0x3529('0x30')](_0x3529('0x4c')),_0xdddca4=_0x3814cb[_0x3529('0x4e')](_0x2c52ce[_0x3529('0x35')]['document'][_0x3529('0xb')]),_0x1c4505=_0x3814cb['getColumnIndexes'](_0xdddca4),_0x2f3d97=_0xdddca4[0x0][_0x3529('0x41')](_0x3529('0x3a')),_0x2eec2c=_0x2f3d97[_0x3529('0xf')](_0x3529('0x2f'))||0x0,_0x2e4371=_0x2d381a&&null!==_0x2d381a[_0x3529('0xe')]?_0x2d381a[_0x3529('0xe')]:!_0x2c52ce['commands'][_0x3529('0x30')](_0x3529('0x1e'))['value'];let _0x208d6d;const _0xe6068b=_0x2f3d97[_0x3529('0x47')](0x0),_0x49acdd=_0x2e4371?_0x1c4505[_0x3529('0x18')]:_0x1c4505[_0x3529('0x3e')],_0x46e5a7=_0x3814cb[_0x3529('0x29')](_0x2f3d97,{'startRow':0x0,'column':_0x49acdd,'includeAllSlots':!0x1}),_0x5756d5=Array[_0x3529('0x4f')](_0x46e5a7)[0x0]['cell'];if(_0x2e4371){const _0x54dc90=_0xe6068b[_0x3529('0x47')](_0x2eec2c);if(_0x5756d5[_0x3529('0x2c')](_0x54dc90))return;_0x208d6d=_0x2c52ce[_0x3529('0x35')][_0x3529('0x10')](_0x2c52ce[_0x3529('0x35')][_0x3529('0xd')](_0x54dc90),_0x2c52ce['model']['createPositionAfter'](_0x5756d5));}else{const _0x3b5244=_0xe6068b[_0x3529('0x47')](_0x2eec2c-0x1);if(!_0x3b5244)return;_0x208d6d=_0x2c52ce[_0x3529('0x35')][_0x3529('0x10')](_0x2c52ce[_0x3529('0x35')][_0x3529('0xd')](_0x5756d5),_0x2c52ce[_0x3529('0x35')]['createPositionAfter'](_0x3b5244));}_0x2c52ce['model'][_0x3529('0x40')](()=>{_0x338926[_0x3529('0x13')](_0x208d6d,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0x2e4371}]},[],_0x3529('0x1e'));});}),_0x2c52ce['editing'][_0x3529('0x11')]['on'](_0x3529('0x4a'),_0x1eb278(),{'priority':_0x3529('0x2d')}),_0x2c52ce['data'][_0x3529('0x11')]['on'](_0x3529('0x4a'),(_0x82c99b,_0xa49e3e,_0x6ed57b)=>{_0x6ed57b[_0x3529('0x31')][_0x3529('0x4')]&&_0x1eb278({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x82c99b,_0xa49e3e,_0x6ed57b);},{'priority':_0x3529('0x2d')}),_0x2c52ce[_0x3529('0x34')]['downcastDispatcher']['on'](_0x3529('0x8'),(_0xc23e45,_0x29a204,_0x524dcd)=>{const {type:_0xb342e3,id:_0x5059ec}=_0x338926['_splitMarkerName'](_0x29a204[_0x3529('0x4d')]),_0x270eb4=_0x338926['getSuggestion'](_0x5059ec);if(!_0x270eb4['data']||'setTableColumnHeader'!=_0x270eb4[_0x3529('0x36')][_0x3529('0x15')])return;const _0x2a657e=_0x524dcd[_0x3529('0x20')][_0x3529('0x51')](_0x29a204[_0x3529('0x4d')]);if(_0x2a657e)for(const _0x589494 of _0x2a657e)_0x524dcd['writer'][_0x3529('0x1a')]('ck-suggestion-marker-'+_0xb342e3,_0x589494),_0x524dcd['writer']['removeClass'](_0x3529('0x16'),_0x589494),_0x524dcd['writer'][_0x3529('0x37')](_0x3529('0x5'),_0x589494),_0x524dcd[_0x3529('0x20')][_0x3529('0x17')](_0x589494,_0x29a204['markerName']);},{'priority':_0x3529('0x2d')}),_0x338926['_descriptionFactory']['registerDescriptionCallback'](_0x31fdfe=>{const {data:_0x53eee7}=_0x31fdfe;if(_0x53eee7){if(_0x3529('0x2a')==_0x53eee7[_0x3529('0x15')]){const _0x4e7854=_0x53eee7[_0x3529('0x43')][0x0][_0x3529('0xe')];return _0x2c8a1f(_0x3bae42(_0x339c0a,_0x4e7854?_0x3529('0x3f'):_0x3529('0x50')));}if('setTableColumnHeader'==_0x53eee7[_0x3529('0x15')]){const _0x4d553c=_0x53eee7['commandParams'][0x0]['forceValue'];return _0x2c8a1f(_0x3bae42(_0x339c0a,_0x4d553c?'FORMAT_HEADER_COLUMN':_0x3529('0x25')));}}function _0x2c8a1f(_0xfb3369){return{'type':_0x3529('0x1c'),'content':_0x3bae42(_0x339c0a,_0x3529('0x3b'),_0xfb3369)};}});const _0x2d1c67=_0x6feb60[_0x3529('0x44')]();_0x338926[_0x3529('0x46')][_0x3529('0x33')](_0x3529('0x6'),_0x3529('0x2a'),_0x3529('0x12'),_0x2d1c67),_0x338926[_0x3529('0x46')]['registerCustomCallback']('formatBlock','setTableColumnHeader',_0x3529('0x12'),_0x2d1c67);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2742=['length','_tablePostFixingSubtypes','document','change','refresh','direction','*Merge\x20cells*','getSuggestions','commands','locale','getAncestors','createRangeOn','return','_areSelectedCellsMergable','registerCustomCallback','accept','getFirstPosition','from','map','trackChanges','cell','mergeTableCellDown','add','table','mergeTableCellLeft','filter','low','_descriptionFactory','isInContent','author','splitTableCellHorizontally','type','mergeTableCells','rootName','_suggestionFactory','_areMergableCells','get','execute','setSelection','TableUtils','editor','forceDefaultExecution','plugins','TrackChangesEditing','createTableWalker','containsRange','registerDescriptionCallback','_acceptFormatSuggestionCallbackFactory','getRanges','value','enableCommand','afterInit','insertion','tableCell','commandName','push','root','formatBlock','splitTableCellVertically','format','getSelectionAffectedTableCells','element','deletion','fromRange','model','markMultiRangeBlockFormat','*Split\x20cell:*\x20vertically','mergeTableCellRight','detach','findAncestor','selection','has'];(function(_0x117f77,_0x2742c2){const _0x8081d3=function(_0x3fd1e4){while(--_0x3fd1e4){_0x117f77['push'](_0x117f77['shift']());}};_0x8081d3(++_0x2742c2);}(_0x2742,0xad));const _0x8081=function(_0x117f77,_0x2742c2){_0x117f77=_0x117f77-0x0;let _0x8081d3=_0x2742[_0x117f77];return _0x8081d3;};import{Plugin as _0x298b79}from'ckeditor5/src/core';import _0xba271f from'./table';import{LiveRange as _0x453de1}from'ckeditor5/src/engine';import{getTranslation as _0xa21cc3}from'../utils/common-translations';export default class dt extends _0x298b79{static get['requires'](){return[_0xba271f];}[_0x8081('0x16')](){const _0x4134c6=this[_0x8081('0xb')],_0x18d8ee=_0x4134c6[_0x8081('0x23')][_0x8081('0x2d')][_0x8081('0x29')],_0x5d60e8=_0x4134c6[_0x8081('0x34')];if(!_0x4134c6['plugins'][_0x8081('0x2a')]('TableEditing'))return;const _0x82b437=_0x4134c6[_0x8081('0xd')][_0x8081('0x7')](_0x8081('0xe')),_0x3bb9b0=_0x4134c6['plugins'][_0x8081('0x7')](_0x8081('0xa')),_0x1749ac=_0x4134c6[_0x8081('0xd')]['get'](_0xba271f);_0x1749ac[_0x8081('0x2c')][_0x8081('0x1a')](_0x8081('0x3')),_0x82b437['enableCommand']('mergeTableCells',()=>{const _0x2d9563=_0x3bb9b0[_0x8081('0x1f')](_0x4134c6[_0x8081('0x23')][_0x8081('0x2d')][_0x8081('0x29')]);_0x4134c6[_0x8081('0x23')][_0x8081('0x2e')](()=>{_0x82b437[_0x8081('0x24')](_0x2d9563,{'commandName':_0x8081('0x3'),'commandParams':[]},[],_0x8081('0x3'));});}),_0x4134c6[_0x8081('0x33')]['get']('mergeTableCells')['on'](_0x8081('0x8'),(_0x5d1449,_0x445767)=>{_0x4134c6[_0x8081('0x33')][_0x8081('0x7')](_0x8081('0x3e'))[_0x8081('0x14')]&&(_0x445767[_0x8081('0x2b')]>0x0&&_0x445767[_0x445767[_0x8081('0x2b')]-0x1]&&_0x445767[_0x445767[_0x8081('0x2b')]-0x1][_0x8081('0xc')]||_0x82b437['_isForcedDefaultExecutionBlock']||this[_0x8081('0x38')]()||_0x5d1449['stop']());},{'priority':'highest'});for(const _0x309f26 of['mergeTableCellUp',_0x8081('0x26'),'mergeTableCellDown',_0x8081('0x43')]){const _0x16d7b3=_0x4134c6[_0x8081('0x33')][_0x8081('0x7')](_0x309f26);_0x82b437[_0x8081('0x15')](_0x309f26,()=>{const _0x4eb154=_0x4134c6['model'][_0x8081('0x2d')][_0x8081('0x29')][_0x8081('0x3b')]()[_0x8081('0x35')]()['find'](_0x43add3=>_0x43add3['is']('element',_0x8081('0x18'))),_0x5bd5e6=_0x16d7b3[_0x8081('0x14')];_0x4134c6['model'][_0x8081('0x2e')](()=>{_0x82b437[_0x8081('0x24')]([_0x4eb154,_0x5bd5e6],{'commandName':_0x8081('0x3'),'commandParams':[]},[],_0x8081('0x3'));});});}for(const _0x4c8a5d of[_0x8081('0x1d'),_0x8081('0x1')]){const _0x8b9eaa=_0x4134c6['commands']['get'](_0x4c8a5d);_0x82b437[_0x8081('0x15')](_0x4c8a5d,()=>{const _0x582ce1=_0x3bb9b0[_0x8081('0x1f')](_0x4134c6[_0x8081('0x23')][_0x8081('0x2d')]['selection'])[0x0],_0x50b99a=_0x582ce1[_0x8081('0x28')](_0x8081('0x42')),{column:_0x5b2dbd,row:_0x5c234d}=_0x3bb9b0['getCellLocation'](_0x582ce1);let _0x2aa3d0=[];if('horizontally'==_0x8b9eaa[_0x8081('0x30')]){const _0xedf7a2=_0x3bb9b0[_0x8081('0xf')](_0x50b99a,{'startRow':_0x5c234d,'endRow':_0x5c234d,'includeAllSlots':!0x0});_0x2aa3d0=Array[_0x8081('0x3c')](_0xedf7a2)['map'](_0x403ec0=>_0x403ec0[_0x8081('0x3f')]);}else{const _0x25075d=_0x3bb9b0[_0x8081('0xf')](_0x50b99a,{'column':_0x5b2dbd,'includeAllSlots':!0x0});_0x2aa3d0=Array[_0x8081('0x3c')](_0x25075d)[_0x8081('0x3d')](_0x4589d4=>_0x4589d4[_0x8081('0x3f')]);}_0x4134c6['model'][_0x8081('0x2e')](_0x35eb70=>{_0x82b437['markBlockFormat'](_0x35eb70[_0x8081('0x36')](_0x582ce1),{'commandName':_0x4c8a5d,'commandParams':[]},_0x2aa3d0,_0x4c8a5d);});});}_0x82b437[_0x8081('0x46')][_0x8081('0x11')](_0x1a1095=>{const {data:_0x2b1baa}=_0x1a1095;if(_0x2b1baa)return _0x8081('0x3')==_0x2b1baa[_0x8081('0x19')]?{'type':_0x8081('0x1e'),'content':_0xa21cc3(_0x5d60e8,_0x8081('0x31'))}:void 0x0;}),_0x82b437[_0x8081('0x46')][_0x8081('0x11')](_0x273501=>{const {data:_0x2a57be}=_0x273501;if(_0x2a57be)return _0x8081('0x1d')==_0x2a57be[_0x8081('0x19')]?{'type':_0x8081('0x1e'),'content':_0xa21cc3(_0x5d60e8,_0x8081('0x25'))}:_0x8081('0x1')==_0x2a57be[_0x8081('0x19')]?{'type':_0x8081('0x1e'),'content':_0xa21cc3(_0x5d60e8,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x3190dc=_0x1749ac[_0x8081('0x12')]();for(const _0x24c660 of['mergeTableCellUp',_0x8081('0x26'),'mergeTableCellDown',_0x8081('0x43')])_0x82b437[_0x8081('0x5')][_0x8081('0x39')]('formatBlock',_0x24c660,'accept',_0x3190dc);for(const _0x572dc2 of['splitTableCellVertically',_0x8081('0x1')])_0x82b437[_0x8081('0x5')][_0x8081('0x39')](_0x8081('0x1c'),_0x572dc2,_0x8081('0x3a'),_0x3190dc);_0x82b437[_0x8081('0x5')]['registerCustomCallback'](_0x8081('0x1c'),_0x8081('0x3'),'accept',_0x31cb85=>{_0x4134c6[_0x8081('0x23')][_0x8081('0x2e')](_0x53799b=>{const _0x3acd9=Array[_0x8081('0x3c')](_0x18d8ee[_0x8081('0x13')]())[_0x8081('0x3d')](_0x30d4ec=>_0x453de1[_0x8081('0x22')](_0x30d4ec));_0x53799b[_0x8081('0x9')](_0x31cb85),_0x4134c6[_0x8081('0x33')][_0x8081('0x7')](_0x8081('0x3'))[_0x8081('0x2f')](),_0x4134c6['execute'](_0x8081('0x3'),{'forceDefaultExecution':!0x0});const _0x3ee702=_0x3acd9[_0x8081('0x44')](_0x22a715=>'$graveyard'!=_0x22a715[_0x8081('0x1b')][_0x8081('0x4')]);_0x3ee702[_0x8081('0x2b')]>0x0&&_0x53799b['setSelection'](_0x3ee702);for(const _0x1d29a5 of _0x3acd9)_0x1d29a5[_0x8081('0x27')]();});});for(const _0x2939f4 of['mergeTableCellUp',_0x8081('0x40'),_0x8081('0x43'),_0x8081('0x26')]){const _0x3d33b7=_0x4134c6[_0x8081('0x33')][_0x8081('0x7')](_0x2939f4);_0x3d33b7['on']('set:isEnabled',(_0x1723aa,_0x348d18,_0x525fc3)=>{if(_0x525fc3){const _0x1da7b0=_0x4134c6['model'][_0x8081('0x2d')][_0x8081('0x29')][_0x8081('0x3b')]()[_0x8081('0x35')]()['find'](_0x1819bf=>_0x1819bf['is'](_0x8081('0x20'),_0x8081('0x18')));this[_0x8081('0x6')](_0x3d33b7['value'],_0x1da7b0)||(_0x1723aa[_0x8081('0x37')]=!0x1,_0x1723aa['stop']());}},{'priority':_0x8081('0x45')});}}[_0x8081('0x38')](){const _0x574de8=this['editor']['commands'][_0x8081('0x7')](_0x8081('0x3')),_0x423964=this[_0x8081('0xb')][_0x8081('0xd')][_0x8081('0x7')](_0x8081('0xa'));if(!_0x574de8['isEnabled'])return!0x1;const _0x20e921=_0x423964[_0x8081('0x1f')](this[_0x8081('0xb')][_0x8081('0x23')][_0x8081('0x2d')][_0x8081('0x29')]);for(const _0x2d1512 of _0x20e921)for(const _0x3caec1 of _0x20e921)if(_0x2d1512!=_0x3caec1&&!this[_0x8081('0x6')](_0x2d1512,_0x3caec1))return!0x1;return!0x0;}[_0x8081('0x6')](_0x5e1b25,_0x544a00){const _0x42f696=this['editor']['plugins'][_0x8081('0x7')](_0x8081('0xe')),_0x4c84d4=this['editor'][_0x8081('0x23')][_0x8081('0x36')](_0x5e1b25),_0x520f21=this['editor'][_0x8081('0x23')][_0x8081('0x36')](_0x544a00),_0x1852ec=new Set(),_0x2f53e5=new Set();for(const _0x15ab31 of _0x42f696[_0x8081('0x32')]())if((_0x8081('0x17')==_0x15ab31['type']||_0x8081('0x21')==_0x15ab31[_0x8081('0x2')]||_0x8081('0x3')==_0x15ab31['subType'])&&_0x15ab31[_0x8081('0x47')])for(const _0x4f0058 of _0x15ab31['getRanges']())_0x4f0058[_0x8081('0x10')](_0x4c84d4,!0x0)&&_0x1852ec[_0x8081('0x41')](_0x15ab31[_0x8081('0x2')]+':'+_0x15ab31[_0x8081('0x0')]['id']),_0x4f0058[_0x8081('0x10')](_0x520f21,!0x0)&&_0x2f53e5[_0x8081('0x41')](_0x15ab31[_0x8081('0x2')]+':'+_0x15ab31[_0x8081('0x0')]['id']);if(_0x1852ec['size']!=_0x2f53e5['size'])return!0x1;for(const _0x201558 of _0x1852ec)if(!_0x2f53e5[_0x8081('0x2a')](_0x201558))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d13=['get','editor','plugins','commands','insertTableOfContents','ELEMENT_TABLE_OF_CONTENTS','registerElementLabel','locale','enableCommand','TrackChangesEditing','afterInit'];(function(_0x6977c4,_0x1d1392){const _0x568cd2=function(_0x521b15){while(--_0x521b15){_0x6977c4['push'](_0x6977c4['shift']());}};_0x568cd2(++_0x1d1392);}(_0x1d13,0x7f));const _0x568c=function(_0x6977c4,_0x1d1392){_0x6977c4=_0x6977c4-0x0;let _0x568cd2=_0x1d13[_0x6977c4];return _0x568cd2;};import{Plugin as _0x4e7ad7}from'ckeditor5/src/core';import{getTranslation as _0x14cd68}from'../utils/common-translations';export default class bt extends _0x4e7ad7{[_0x568c('0x4')](){const _0x457ba6=this[_0x568c('0x6')];if(!_0x457ba6[_0x568c('0x8')]['get'](_0x568c('0x9')))return;_0x457ba6['plugins'][_0x568c('0x5')](_0x568c('0x3'))[_0x568c('0x2')](_0x568c('0x9'));const _0x279eb3=_0x457ba6[_0x568c('0x7')][_0x568c('0x5')](_0x568c('0x3')),_0x5a5ecd=_0x457ba6[_0x568c('0x1')];_0x279eb3['_descriptionFactory'][_0x568c('0x0')]('tableOfContents',_0x39d5d7=>_0x14cd68(_0x5a5ecd,_0x568c('0xa'),_0x39d5d7));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16b0=['handleSuggestionDescription','tableCellBorderWidth','TablePropertiesEditing','locale','getSuggestions','tableBorderWidth','TableCellPropertiesEditing','TrackChangesTableProperties','*Format:*\x20change\x20table\x20cell\x20properties','getSuggestionCallback','tableBorderStyle','_descriptionFactory','change','afterInit','getAttribute','handleDiscardAction','start','accept','editor','findAncestor','join','tableCellBackgroundColor','selection','getFirstPosition','tableCellProperties','setAttribute','enableCommand','get','registerDescriptionCallback','_suggestionFactory','removeAttribute','getContainedElement','model','TrackChangesEditing','plugins','data','_getSuggestion','_handlePropertyChange','tableCellPadding','tableBorderColor','format','document','tableWidth','table','TableUtils','discard','formatBlock','tableAlignment','getSelectionAffectedTableCells','subType','registerCustomCallback','tableHeight','*Format:*\x20change\x20table\x20properties','tableCellWidth','tableProperties','tableCellBorderStyle','markBlockFormat'];(function(_0x264895,_0x16b00e){const _0x198026=function(_0x307a17){while(--_0x307a17){_0x264895['push'](_0x264895['shift']());}};_0x198026(++_0x16b00e);}(_0x16b0,0x104));const _0x1980=function(_0x264895,_0x16b00e){_0x264895=_0x264895-0x0;let _0x198026=_0x16b0[_0x264895];return _0x198026;};import{Plugin as _0x3c97bc}from'ckeditor5/src/core';import{getTranslation as _0x244c9b}from'../utils/common-translations';export default class Ct extends _0x3c97bc{constructor(_0x3f0a27){super(_0x3f0a27),this[_0x1980('0x16')]=[_0x1980('0x7'),_0x1980('0x23'),_0x1980('0x1e'),_0x1980('0xf'),_0x1980('0xa'),_0x1980('0x13'),'tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor',_0x1980('0x17'),_0x1980('0x1a'),_0x1980('0x6'),_0x1980('0x15'),'tableCellHeight',_0x1980('0x2e'),'tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return _0x1980('0x20');}[_0x1980('0x26')](){const _0x3f642c=this[_0x1980('0x2b')][_0x1980('0x2')][_0x1980('0x34')](_0x1980('0x1'));if(this['editor'][_0x1980('0x2')]['has'](_0x1980('0x1b'))){for(const _0xb68032 of this[_0x1980('0x16')])_0x3f642c[_0x1980('0x33')](_0xb68032,(_0x540a6b,_0x9ca7cf)=>{const _0x1e71a0=this[_0x1980('0x2b')][_0x1980('0x0')][_0x1980('0x9')][_0x1980('0x2f')][_0x1980('0x30')]()[_0x1980('0x2c')](_0x1980('0xb'));this['_handlePropertyChange'](_0xb68032,[_0x1e71a0],this['tableProperties'],_0x1980('0x16'),_0x540a6b,_0x9ca7cf);});_0x3f642c['_suggestionFactory'][_0x1980('0x12')](_0x1980('0xe'),_0x1980('0x16'),_0x1980('0x2a'),_0x3f642c[_0x1980('0x36')][_0x1980('0x22')](_0x1980('0xe'),null,_0x1980('0xd'))),_0x3f642c[_0x1980('0x36')][_0x1980('0x12')]('formatBlock','tableProperties',_0x1980('0xd'),(_0x31a9f2,_0xdc8d)=>this['handleDiscardAction'](this[_0x1980('0x16')],_0x31a9f2,_0xdc8d)),_0x3f642c[_0x1980('0x36')][_0x1980('0x12')]('formatBlock',_0x1980('0x16'),'join',()=>!0x1);}if(this[_0x1980('0x2b')][_0x1980('0x2')]['has'](_0x1980('0x1f'))){for(const _0x2c6551 of this[_0x1980('0x31')])_0x3f642c[_0x1980('0x33')](_0x2c6551,(_0x1dcd9f,_0x2cac0c)=>{const _0x563392=this['editor'][_0x1980('0x2')][_0x1980('0x34')](_0x1980('0xc'))[_0x1980('0x10')](this[_0x1980('0x2b')][_0x1980('0x0')][_0x1980('0x9')][_0x1980('0x2f')]);this[_0x1980('0x5')](_0x2c6551,_0x563392,this['tableCellProperties'],_0x1980('0x31'),_0x1dcd9f,_0x2cac0c);});_0x3f642c[_0x1980('0x36')][_0x1980('0x12')]('formatBlock','tableCellProperties',_0x1980('0x2a'),_0x3f642c[_0x1980('0x36')]['getSuggestionCallback'](_0x1980('0xe'),null,'discard')),_0x3f642c['_suggestionFactory'][_0x1980('0x12')]('formatBlock',_0x1980('0x31'),_0x1980('0xd'),(_0x16d7c4,_0x5d1fb9)=>this[_0x1980('0x28')](this['tableCellProperties'],_0x16d7c4,_0x5d1fb9)),_0x3f642c[_0x1980('0x36')]['registerCustomCallback'](_0x1980('0xe'),_0x1980('0x31'),_0x1980('0x2d'),()=>!0x1);}_0x3f642c[_0x1980('0x24')][_0x1980('0x35')](_0x41b556=>this[_0x1980('0x19')](_0x41b556));}[_0x1980('0x5')](_0x528144,_0x356e9f,_0x5b8dff,_0x5f8c1a,_0x20eaf3,_0x54082c){const _0x33c5f7=this[_0x1980('0x2b')]['plugins']['get'](_0x1980('0x1'));this[_0x1980('0x2b')]['model']['enqueueChange'](_0x54082c['batch'],()=>{for(const _0x453ae4 of _0x356e9f){if(this[_0x1980('0x4')](_0x453ae4,_0x5f8c1a))_0x20eaf3(_0x54082c);else{const _0x4b6d30={};for(const _0x160a8a of _0x5b8dff){const _0x5a4105=_0x453ae4[_0x1980('0x27')](_0x160a8a);void 0x0!==_0x5a4105&&(_0x4b6d30[_0x160a8a]=_0x5a4105);}_0x20eaf3(_0x54082c),_0x33c5f7[_0x1980('0x18')](_0x453ae4,{'commandParams':[_0x4b6d30]},[],_0x5f8c1a);}}});}['handleDiscardAction'](_0x16019a,_0xe8cd2f,_0x3036ff){const _0x4be74c=_0xe8cd2f[0x0][_0x1980('0x29')]['nodeAfter'],_0x69dd7c=_0x3036ff['commandParams'][0x0];this[_0x1980('0x2b')]['model'][_0x1980('0x25')](_0x2a68bd=>{for(const _0x5affa6 of _0x16019a)void 0x0!==_0x69dd7c[_0x5affa6]?_0x2a68bd[_0x1980('0x32')](_0x5affa6,_0x69dd7c[_0x5affa6],_0x4be74c):_0x2a68bd[_0x1980('0x37')](_0x5affa6,_0x4be74c);});}[_0x1980('0x19')](_0x3d7539){if(_0x3d7539[_0x1980('0x3')])switch(_0x3d7539[_0x1980('0x11')]){case _0x1980('0x16'):return{'type':_0x1980('0x8'),'content':_0x244c9b(this[_0x1980('0x2b')]['locale'],_0x1980('0x14'))};case _0x1980('0x31'):return{'type':'format','content':_0x244c9b(this['editor'][_0x1980('0x1c')],_0x1980('0x21'))};}}[_0x1980('0x4')](_0x5202d1,_0x231e4e){const _0x1d1550=this[_0x1980('0x2b')]['plugins'][_0x1980('0x34')](_0x1980('0x1'));for(const _0x13798a of _0x1d1550[_0x1980('0x1d')]({'skipNotAttached':!0x0})){const _0x35cbe1=_0x13798a[_0x1980('0x38')]();if(_0x13798a['subType']===_0x231e4e&&_0x35cbe1===_0x5202d1)return _0x13798a;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d59=['get','enableCommand','Template','editor','TrackChangesEditing','plugins'];(function(_0x36922f,_0x2d5917){const _0x396ab1=function(_0x55fea0){while(--_0x55fea0){_0x36922f['push'](_0x36922f['shift']());}};_0x396ab1(++_0x2d5917);}(_0x2d59,0x149));const _0x396a=function(_0x36922f,_0x2d5917){_0x36922f=_0x36922f-0x0;let _0x396ab1=_0x2d59[_0x36922f];return _0x396ab1;};import{Plugin as _0x52522a}from'ckeditor5/src/core';export default class yt extends _0x52522a{['afterInit'](){const _0x3083fd=this[_0x396a('0x4')];_0x3083fd['plugins']['has'](_0x396a('0x3'))&&_0x3083fd[_0x396a('0x0')][_0x396a('0x1')](_0x396a('0x5'))[_0x396a('0x2')]('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e74=['createRange','isCollapsed','from','afterInit','suggestion','element','_splitMarkerName','isTouching','get','end','removeMarker','TrackChangesEditing','title-content','model','getChangedMarkers','forward','plugins','getNearestSelectionRange','document','start','Title','has','ELEMENT_TITLE','newRange','editor','differ','nodeBefore'];(function(_0x3e9d40,_0x5e7403){const _0xe28e4b=function(_0x1a53c0){while(--_0x1a53c0){_0x3e9d40['push'](_0x3e9d40['shift']());}};_0xe28e4b(++_0x5e7403);}(_0x5e74,0x16b));const _0xe28e=function(_0x3e9d40,_0x5e7403){_0x3e9d40=_0x3e9d40-0x0;let _0xe28e4b=_0x5e74[_0x3e9d40];return _0xe28e4b;};import{Plugin as _0x3fd2c3}from'ckeditor5/src/core';import{getTranslation as _0x4e96b9}from'../utils/common-translations';export default class St extends _0x3fd2c3{[_0xe28e('0x12')](){const _0xdffb0e=this[_0xe28e('0xc')];if(!_0xdffb0e[_0xe28e('0x4')][_0xe28e('0x9')](_0xe28e('0x8')))return;const _0x356e0b=_0xdffb0e[_0xe28e('0x4')][_0xe28e('0x17')](_0xe28e('0x1a'));_0x356e0b['_descriptionFactory']['registerElementLabel']('title-content',()=>_0x4e96b9(_0xdffb0e['locale'],_0xe28e('0xa'))),_0xdffb0e[_0xe28e('0x1')][_0xe28e('0x6')]['registerPostFixer'](_0x2f116b=>{let _0x26bcc9=!0x1;const _0x54a93b=Array[_0xe28e('0x11')](_0xdffb0e['model'][_0xe28e('0x6')][_0xe28e('0xd')][_0xe28e('0x2')]());for(const {name:_0x348758,data:_0x58651b}of _0x54a93b){const {group:_0x2e9b90}=_0x356e0b[_0xe28e('0x15')](_0x348758);if(_0xe28e('0x13')!==_0x2e9b90||!_0x58651b[_0xe28e('0xb')])continue;const _0x4c3a05=_0x58651b[_0xe28e('0xb')],_0x363420=_0x4c3a05[_0xe28e('0x18')][_0xe28e('0xe')];if(!_0x363420||!_0x363420['is'](_0xe28e('0x14'),_0xe28e('0x0')))continue;if(!_0x4c3a05[_0xe28e('0x7')][_0xe28e('0x16')](_0x4c3a05['end']))continue;const _0x4a9056=_0xdffb0e[_0xe28e('0x1')]['schema'][_0xe28e('0x5')](_0x4c3a05[_0xe28e('0x18')],_0xe28e('0x3'));if(_0x4a9056&&_0x4a9056[_0xe28e('0x10')]){const _0x33a63e=_0x2f116b[_0xe28e('0xf')](_0x4c3a05[_0xe28e('0x7')],_0x4a9056[_0xe28e('0x7')]);_0x33a63e['isEqual'](_0x4c3a05)||(_0x2f116b['updateMarker'](_0x348758,{'range':_0x33a63e}),_0x26bcc9=!0x0);}_0x26bcc9||(_0x2f116b[_0xe28e('0x19')](_0x348758),_0x26bcc9=!0x0);}return _0x26bcc9;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1495=['afterInit','enableCommand','undo','redo','get','UndoEditing'];(function(_0x4999af,_0x1495fc){const _0x3c0653=function(_0x5a991a){while(--_0x5a991a){_0x4999af['push'](_0x4999af['shift']());}};_0x3c0653(++_0x1495fc);}(_0x1495,0x199));const _0x3c06=function(_0x4999af,_0x1495fc){_0x4999af=_0x4999af-0x0;let _0x3c0653=_0x1495[_0x4999af];return _0x3c0653;};import{Plugin as _0xd42353}from'ckeditor5/src/core';export default class It extends _0xd42353{[_0x3c06('0x5')](){const _0x3cc06e=this['editor'],_0x3cb6bd=_0x3cc06e['plugins'][_0x3c06('0x3')]('TrackChangesEditing');_0x3cc06e['plugins']['has'](_0x3c06('0x4'))&&(_0x3cb6bd[_0x3c06('0x0')](_0x3c06('0x1')),_0x3cb6bd['enableCommand'](_0x3c06('0x2')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28bf=['getWalker','includes','listItem','addHighlight','get','isBlock','TrackChangesEditing','toViewPosition','nextSibling','ck-suggestion-marker--active','bindElementToMarker','parent','writer','hasAttribute','isLimit','markerName','markerRange','plugins','activeMarkers','item','isAtEnd','push','createUIElement','test','getAttribute','element','insert','previousPosition','elementEnd','schema','consumable','mapper','ck-suggestion-marker-','addClass','name'];(function(_0x4a344f,_0x28bffd){const _0x2b4ef0=function(_0x18f349){while(--_0x18f349){_0x4a344f['push'](_0x4a344f['shift']());}};_0x2b4ef0(++_0x28bffd);}(_0x28bf,0x19c));const _0x2b4e=function(_0x4a344f,_0x28bffd){_0x4a344f=_0x4a344f-0x0;let _0x2b4ef0=_0x28bf[_0x4a344f];return _0x2b4ef0;};export function getRangesWithAttribute(_0xa2e849,_0x44f878,_0x34dda7){const _0x7bf20c=[];for(const _0x397dd4 of _0x44f878['getItems']())_0x397dd4[_0x2b4e('0x15')](_0xa2e849)&&_0x7bf20c[_0x2b4e('0x1d')](_0x34dda7['createRangeOn'](_0x397dd4));return _0x7bf20c;}export function getElementsAffectedByListItemRename(_0xf9a90f){const _0x28ab11=[];if(_0xf9a90f['is'](_0x2b4e('0x21'),_0x2b4e('0xa'))){let _0x4036c4=_0xf9a90f[_0x2b4e('0x10')];for(;_0x4036c4&&_0x4036c4['is'](_0x2b4e('0x21'),_0x2b4e('0xa'))&&_0x4036c4[_0x2b4e('0x20')]('listIndent')>0x0;)_0x28ab11[_0x2b4e('0x1d')](_0x4036c4),_0x4036c4=_0x4036c4[_0x2b4e('0x10')];}return _0x28ab11;}export function downcastSplitMergeMarker(_0x5a9021,_0x486097,{showActiveMarker:_0x4913ff=!0x0}={}){const _0xa3b4b=_0x5a9021[_0x2b4e('0x19')][_0x2b4e('0xc')](_0x2b4e('0xe'));return(_0x323e78,_0x5d07c6,_0x585236)=>{if(!_0x585236[_0x2b4e('0x3')][_0x2b4e('0x1f')](_0x5d07c6['markerRange'],_0x323e78[_0x2b4e('0x7')]))return;const _0x44ce3d=_0x5d07c6[_0x2b4e('0x18')][_0x2b4e('0x8')](),_0x26359b=_0x5d07c6[_0x2b4e('0x18')]['start'],_0x2cac99=_0x5a9021['model'][_0x2b4e('0x2')];let _0x4645c4=null,_0x4e03b9=null,_0x5b4da2=!0x1,_0x151c1b=!0x1;for(const _0x2ba3b2 of _0x44ce3d){const _0x11133b=_0x2ba3b2[_0x2b4e('0x1b')];_0x5b4da2=_0x5b4da2||_0x2cac99['isContent'](_0x11133b);const _0x3bdfa2=_0x585236[_0x2b4e('0x4')]['toViewElement'](_0x11133b);if(_0x3bdfa2&&_0x3bdfa2['getCustomProperty'](_0x2b4e('0xb')))return;_0x2b4e('0x1')==_0x2ba3b2['type']&&(_0x2cac99[_0x2b4e('0xd')](_0x11133b)&&!_0x2cac99[_0x2b4e('0x16')](_0x11133b)&&(_0x11133b[_0x2b4e('0x10')]||_0x26359b[_0x2b4e('0x1c')]?_0x4645c4&&_0x4645c4[_0x2b4e('0x13')]==_0x11133b||(_0x4645c4=_0x11133b,_0x577a19(_0x2ba3b2[_0x2b4e('0x0')]),_0x151c1b=!0x0):_0x4e03b9=_0x4e03b9||_0x2ba3b2[_0x2b4e('0x0')]));}function _0x577a19(_0x3b0101){const _0x39d876=_0x585236['writer'][_0x2b4e('0x1e')]('span',{'class':_0x2b4e('0x5')+_0x486097}),_0x2a4b83=_0x585236[_0x2b4e('0x4')][_0x2b4e('0xf')](_0x3b0101);_0x4913ff&&_0xa3b4b[_0x2b4e('0x1a')][_0x2b4e('0x9')](_0x5d07c6[_0x2b4e('0x17')])&&_0x585236[_0x2b4e('0x14')][_0x2b4e('0x6')](_0x2b4e('0x11'),_0x39d876),_0x585236[_0x2b4e('0x14')][_0x2b4e('0x22')](_0x2a4b83,_0x39d876),_0x585236[_0x2b4e('0x4')][_0x2b4e('0x12')](_0x39d876,_0x5d07c6[_0x2b4e('0x17')]);}_0x5b4da2||_0x151c1b||!_0x4e03b9||_0x577a19(_0x4e03b9);};}
|