@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231005.0 → 0.0.0-nightly-20231007.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/aiassistant.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 _0x47a6=['getRows','oldRange','elementToElement','document','suggestion','insertRows','formatBlock','tableCellHorizontalAlignment','getChangedMarkers','tableCellVerticalAlignment','filter','author','value','position','fromEntries','markerToHighlight','name','startsWith','forceDefaultExecution','add','cell','find','suggestionLoaded','tablePasteColumn','markerAttributes','_createdBatches','previous','activeMarkers','tablePasteRow','getMarkers','tableCellSuggestion','rows','type','end','createElement','TableClipboard','ck-suggestion-marker-insertion','unwrap','deletionRanges','move','map','tablePasteChainId','getTableIfOnlyTableInContent','nextSibling','registerPostFixer','plugins','stop','getSelectionAffectedTableCells','remove','isEmpty','push','accept','get','every','_getCoordsForCells','_tablePostFixingSubtypes','options','endRow','isEqual','insertion','discard','removeMarker','getColumns','register','requires','has','createPositionBefore','includes','_descriptionFactory','change','redo','$graveyard','editor','createRange','clipboardOutput','columnInsertionIndexes','updateMarker','content','rootName','locale','findAncestor','model','some','low','tableCell','deletion','commands','newRange','ck-suggestion-marker','next','documentSelection','suggestionUnloaded','high','first','_isForcedDefaultExecutionBlock','for','isInContent','getAllAdjacentSuggestions','ck-suggestion-marker--active','tablePaste','tableCellBorderStyle','_suggestionFactory','*Replace\x20table\x20cells*','column','getShiftedBy','view','root','tablePasteCell','createRangeOn','Users','setAttributes','getContainedElement','start','editingDowncast','conversion','registerDescriptionCallback','batch','nodeAfter','markMultiRangeInsertion','element','from','length','registerCustomCallback','fill','cells','createRangeIn','_replaceTableSlotCell','columns','entries','subType','columnInsertionRanges','rowInsertionRanges','insertContent','TrackChangesEditing','insert','row','dataDowncast','paragraph','tableCellPadding','table','selection','markerName','suggestion-td','getSuggestions','differ','suggestion:formatBlock:tablePasteCell','join','reduce','getSuggestion','TableUtils','attributes','last','keys','removeColumns','getChanges','rowInsertionIndexes','getRanges','hasSuggestion','getChildren','getRange','endColumn','wrap','set','createTableWalker'];(function(_0x1ed4c5,_0x47a6ac){const _0x447499=function(_0x30a298){while(--_0x30a298){_0x1ed4c5['push'](_0x1ed4c5['shift']());}};_0x447499(++_0x47a6ac);}(_0x47a6,0xe5));const _0x4474=function(_0x1ed4c5,_0x47a6ac){_0x1ed4c5=_0x1ed4c5-0x0;let _0x447499=_0x47a6[_0x1ed4c5];return _0x447499;};import{getTranslation as _0x5845e2}from'../utils/common-translations';import{Plugin as _0x4a28fe}from'ckeditor5/src/core';import{uid as _0x5a41c2,priorities as _0x18f1bf}from'ckeditor5/src/utils';import _0x1dab94 from'./table';const le=['tableCellBorderWidth','tableCellBorderColor',_0x4474('0x23'),_0x4474('0x6a'),_0x4474('0x6c'),'tableCellBackgroundColor',_0x4474('0x49')],ae=Object[_0x4474('0x71')](le[_0x4474('0x8b')](_0x527a4f=>[_0x527a4f,null]));export default class wt extends _0x4a28fe{static get[_0x4474('0xa3')](){return[_0x1dab94];}['afterInit'](){const _0x1d16ee=this[_0x4474('0x7')];if(!_0x1d16ee[_0x4474('0x90')][_0x4474('0x0')](_0x4474('0x86')))return;const _0x566433=_0x1d16ee[_0x4474('0x90')]['get'](_0x4474('0x44')),_0x22bc4e=_0x1d16ee['plugins']['get'](_0x4474('0x54')),_0x1482d9=_0x1d16ee[_0x4474('0x90')][_0x4474('0x97')](_0x1dab94),_0x52800f=_0x1d16ee[_0x4474('0x90')]['get'](_0x4474('0x86'));_0x1482d9[_0x4474('0x9a')][_0x4474('0x95')](_0x4474('0x7f'),_0x4474('0x7a')),_0x1d16ee[_0x4474('0x10')]['schema'][_0x4474('0xa2')](_0x4474('0x81'),{'allowIn':_0x4474('0x13'),'allowContentOf':_0x4474('0x13'),'isLimit':!0x0}),_0x1d16ee[_0x4474('0x31')][_0x4474('0x65')]({'model':_0x4474('0x81'),'view':_0x4474('0x4d')});let _0x3f9541=null;_0x1d16ee['model']['on'](_0x4474('0x43'),(_0x57bbbe,_0x53aac5)=>{const [_0x428746,_0x222766]=_0x53aac5,_0x3b79fb=_0x53aac5[_0x53aac5['length']-0x1];_0x3b79fb&&_0x3b79fb[_0x4474('0x75')]||_0x566433[_0x4474('0x1d')]||this[_0x4474('0x7')][_0x4474('0x15')][_0x4474('0x97')]('trackChanges')[_0x4474('0x6f')]&&function(_0x593f0a,_0x14db10,_0x421810,_0x44fa6b,_0x2b23e1){if(_0x14db10&&!_0x14db10['is'](_0x4474('0x19')))return!0x1;const _0x2bf0be=_0x2b23e1[_0x4474('0x8d')](_0x593f0a,_0x421810);if(!_0x2bf0be||!fe(_0x2bf0be,void 0x0,_0x44fa6b))return!0x1;const _0x487865=_0x44fa6b[_0x4474('0x92')](_0x421810[_0x4474('0x66')][_0x4474('0x4b')]);if(!_0x487865[_0x4474('0x38')])return!0x1;const _0x5518a7=_0x487865[0x0]['findAncestor']('table'),_0x250a62=_0x44fa6b['getRowIndexes'](_0x487865),_0x9b88f1=_0x44fa6b['getColumnIndexes'](_0x487865),_0x526eda={'startRow':_0x250a62[_0x4474('0x1c')],'endRow':_0x250a62[_0x4474('0x56')],'startColumn':_0x9b88f1[_0x4474('0x1c')],'endColumn':_0x9b88f1[_0x4474('0x56')]};return 0x1==_0x487865[_0x4474('0x38')]&&(_0x526eda[_0x4474('0x9c')]+=_0x44fa6b[_0x4474('0x63')](_0x2bf0be)-0x1,_0x526eda[_0x4474('0x5f')]+=_0x44fa6b[_0x4474('0xa1')](_0x2bf0be)-0x1),fe(_0x5518a7,_0x526eda,_0x44fa6b);}(_0x428746,_0x222766,_0x1d16ee[_0x4474('0x10')],_0x22bc4e,_0x52800f)&&(_0x57bbbe[_0x4474('0x91')](),_0x3f9541={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1d16ee[_0x4474('0x10')]['change'](()=>{_0x1d16ee[_0x4474('0x10')][_0x4474('0x43')](_0x53aac5[0x0],_0x53aac5[0x1],_0x53aac5[0x2],{'forceDefaultExecution':!0x0});const _0x5e63c2=_0x5a41c2(),{rowInsertionRanges:_0x3e5791,columnInsertionRanges:_0x5191d7,insertionRanges:_0x3c6b31,deletionRanges:_0x243d9e,cells:_0x3f98b1}=_0x3f9541;_0x3e5791[_0x4474('0x38')]&&_0x566433[_0x4474('0x35')](_0x3e5791,_0x4474('0x7f'),{'tablePasteChainId':_0x5e63c2}),_0x5191d7[_0x4474('0x38')]&&_0x566433[_0x4474('0x35')](_0x5191d7,_0x4474('0x7a'),{'tablePasteChainId':_0x5e63c2}),_0x3c6b31['length']&&_0x566433[_0x4474('0x35')](_0x3c6b31,_0x4474('0x22'),{'tablePasteChainId':_0x5e63c2,'skipNestingCheck':!0x0}),_0x243d9e['length']&&_0x566433['markMultiRangeDeletion'](_0x243d9e,'tablePaste',{'tablePasteChainId':_0x5e63c2,'skipNestingCheck':!0x0});const _0x1612d3=_0x566433['markMultiRangeBlockFormat'](_0x3f98b1['map'](({element:_0x381be5})=>_0x381be5),{'formatGroupId':_0x5a41c2()},[],_0x4474('0x2a'),{'tablePasteChainId':_0x5e63c2});if(_0x1612d3){const _0x32b103=_0x1612d3[_0x4474('0x80')](),_0xdf90a=[];for(const {element:_0x1347be,attributes:_0x5bdb7b}of _0x3f98b1){if(!_0x5bdb7b)continue;const _0x2df4f0=_0x1d16ee[_0x4474('0x10')]['createRangeOn'](_0x1347be),_0x43a696=_0x32b103[_0x4474('0x78')](_0x576f7c=>_0x576f7c[_0x4474('0x5e')]()[_0x4474('0x9d')](_0x2df4f0));_0x43a696&&_0xdf90a[_0x4474('0x95')]([_0x43a696['name'],_0x5bdb7b]);}_0xdf90a[_0x4474('0x38')]&&_0x1612d3['setAttribute']('markerAttributes',Object[_0x4474('0x71')](_0xdf90a));}_0x3f9541=null;}));},{'priority':_0x18f1bf[_0x4474('0x1b')]+0xa}),_0x1d16ee[_0x4474('0x90')][_0x4474('0x97')](_0x4474('0x86'))['on'](_0x4474('0x3d'),(_0x4790bb,_0x2701a2)=>{const [_0x3c96a7,_0x420ec3,,_0x3db879]=_0x2701a2;if(!_0x3f9541)return;_0x4790bb[_0x4474('0x91')]();const _0x305e45=_0x3c96a7[_0x4474('0x77')],_0x350d4a=_0x420ec3,_0x33772e=ce(_0x305e45),_0x5be97d=ce(_0x350d4a);_0x4790bb['return']=_0x305e45;let _0x2f9e89=null,_0x493702=null;if(_0x5be97d||_0x33772e){if(_0x33772e&&!_0x5be97d){_0x3db879[_0x4474('0x93')](_0x305e45['getChild'](0x0));for(const _0xf0581a of Array[_0x4474('0x37')](_0x350d4a[_0x4474('0x5d')]()))_0x3db879['insert'](_0xf0581a,_0x305e45,_0x4474('0x84'));const _0x1b937a=_0x3f9541[_0x4474('0x5a')][_0x4474('0x2')](_0x3c96a7[_0x4474('0x46')]),_0x5fe36e=_0x3f9541[_0x4474('0xa')][_0x4474('0x2')](_0x3c96a7[_0x4474('0x26')]);_0x1b937a||_0x5fe36e||(_0x2f9e89=_0x3db879['createRangeIn'](_0x305e45));}else _0x5be97d&&!_0x33772e&&(_0x493702=_0x3db879[_0x4474('0x3c')](_0x305e45));}else{const _0x534e0e=_0x3db879[_0x4474('0x85')](_0x4474('0x81')),_0x169869=_0x3db879['createElement'](_0x4474('0x81'));_0x3db879[_0x4474('0x60')](_0x3db879['createRangeIn'](_0x305e45),_0x169869),_0x3db879[_0x4474('0x45')](_0x534e0e,_0x305e45,0x0);for(const _0x5f004c of Array[_0x4474('0x37')](_0x350d4a[_0x4474('0x5d')]()))_0x3db879[_0x4474('0x45')](_0x5f004c,_0x534e0e,_0x4474('0x84'));_0x2f9e89=_0x3db879[_0x4474('0x2b')](_0x534e0e),_0x493702=_0x3db879[_0x4474('0x2b')](_0x169869);}const _0x158f37=Array[_0x4474('0x37')](_0x350d4a['getAttributes']())[_0x4474('0x6d')](([_0x56e309])=>le[_0x4474('0x2')](_0x56e309));_0x3f9541[_0x4474('0x3b')]['push']({'element':_0x305e45,'attributes':_0x158f37[_0x4474('0x38')]?Object['fromEntries'](_0x158f37):null}),_0x2f9e89&&_0x3f9541['insertionRanges'][_0x4474('0x95')](_0x2f9e89),_0x493702&&_0x3f9541[_0x4474('0x89')][_0x4474('0x95')](_0x493702);},{'priority':_0x4474('0x1b')}),_0x22bc4e['on']('insertColumns',(_0x121784,_0xb230f8)=>{const [_0x440f74,_0x3dbdf4={}]=_0xb230f8;if(!_0x3f9541)return;const _0x39a97b=_0x3dbdf4['at']||0x0,_0xb41e4d=_0x3dbdf4[_0x4474('0x3e')]||0x1;_0x3f9541[_0x4474('0xa')]=new Array(_0xb41e4d)['fill'](_0x39a97b)['map']((_0xc5ef03,_0xfca082)=>_0xc5ef03+_0xfca082);for(const {cell:_0x5a594e}of _0x22bc4e[_0x4474('0x62')](_0x440f74,{'startColumn':_0x39a97b,'endColumn':_0x39a97b+_0xb41e4d-0x1}))_0x3f9541[_0x4474('0x41')]['push'](_0x1d16ee[_0x4474('0x10')][_0x4474('0x2b')](_0x5a594e));},{'priority':_0x4474('0x12')}),_0x22bc4e['on'](_0x4474('0x68'),(_0x41f362,_0x55f9ed)=>{const [_0x37e24e,_0x44524b={}]=_0x55f9ed;if(!_0x3f9541)return;const _0x3025b9=_0x44524b['at']||0x0,_0x2f7e1d=_0x44524b[_0x4474('0x82')]||0x1;_0x3f9541[_0x4474('0x5a')]=new Array(_0x2f7e1d)[_0x4474('0x3a')](_0x3025b9)['map']((_0x3e130b,_0x1528f6)=>_0x3e130b+_0x1528f6);for(const {cell:_0x3b84b6}of _0x22bc4e[_0x4474('0x62')](_0x37e24e,{'startRow':_0x3025b9,'endRow':_0x3025b9+_0x2f7e1d-0x1}))_0x3f9541[_0x4474('0x42')]['push'](_0x1d16ee['model'][_0x4474('0x2b')](_0x3b84b6));},{'priority':'low'}),_0x566433[_0x4474('0x3')][_0x4474('0x32')](_0x4016c0=>{if(_0x4016c0[_0x4474('0x40')]&&_0x4016c0[_0x4474('0x40')][_0x4474('0x74')](_0x4474('0x22')))return _0x4016c0[_0x4474('0x7d')]?{}:{'type':_0x4474('0x9e'),'content':_0x5845e2(_0x1d16ee[_0x4474('0xe')],_0x4474('0x25'))};});const _0x1a0a4a=()=>!0x1;for(const _0x20fca6 of[_0x4474('0x22'),_0x4474('0x7a'),'tablePasteRow','tablePasteCell'])_0x566433[_0x4474('0x24')][_0x4474('0x39')]('insertion',_0x20fca6,'join',_0x1a0a4a),_0x566433[_0x4474('0x24')][_0x4474('0x39')](_0x4474('0x14'),_0x20fca6,_0x4474('0x51'),_0x1a0a4a),_0x566433[_0x4474('0x24')][_0x4474('0x39')](_0x4474('0x69'),_0x20fca6,'join',_0x1a0a4a);_0x566433['_suggestionFactory'][_0x4474('0x39')]('formatBlock',_0x4474('0x2a'),'discard',_0x1a0a4a),_0x566433[_0x4474('0x24')][_0x4474('0x39')](_0x4474('0x69'),_0x4474('0x2a'),_0x4474('0x96'),(_0x11ec7e,_0x3b10c7,_0x2f9f11)=>{const _0x3a8b41=_0x11ec7e['map'](_0x570d20=>_0x570d20[_0x4474('0x2e')]())[_0x4474('0x6d')](_0x27995c=>_0x27995c),_0x39dd41=new Map(_0x3a8b41[_0x4474('0x8b')](_0x19bcf4=>[_0x19bcf4,null]));if(_0x3f9541)for(const {element:_0x118cce,attributes:_0xb8023}of _0x3f9541[_0x4474('0x3b')])_0xb8023&&_0x39dd41[_0x4474('0x61')](_0x118cce,_0xb8023);else{if(_0x2f9f11&&_0x2f9f11[_0x4474('0x7b')])for(const [_0x5538e4,_0x5de479]of Object[_0x4474('0x3f')](_0x2f9f11['markerAttributes'])){const _0x348d37=_0x1d16ee['model']['markers']['get'](_0x5538e4),_0x13b401=_0x348d37?_0x348d37[_0x4474('0x5e')]()[_0x4474('0x2e')]():null;_0x13b401&&_0x39dd41[_0x4474('0x61')](_0x13b401,_0x5de479);}}_0x1d16ee['model']['change'](_0x256624=>{for(const [_0x2558ca,_0x52a047]of _0x39dd41)_0x256624[_0x4474('0x2d')]({...ae,..._0x52a047},_0x2558ca);});});const _0x2b2348=(_0x38b059,_0x59662c)=>{_0x566433[_0x4474('0x24')][_0x4474('0x39')](_0x38b059,_0x4474('0x22'),_0x59662c,(_0x21465f,_0x278a97,_0x57b631)=>{_0x1d16ee[_0x4474('0x10')]['change'](_0x4a00ca=>{const _0x4ced2c=[];for(const _0x138f36 of _0x21465f){const _0x33dc6f=_0x138f36[_0x4474('0x2f')][_0x4474('0x34')];_0x33dc6f['is'](_0x4474('0x36'),_0x4474('0x81'))&&_0x4ced2c[_0x4474('0x95')](_0x33dc6f);}_0x566433[_0x4474('0x24')]['getSuggestionCallback'](_0x38b059,null,_0x59662c)(_0x21465f,_0x278a97,_0x57b631);for(const _0xcd2b36 of _0x4ced2c)_0x4474('0x6')!=_0xcd2b36[_0x4474('0x29')][_0x4474('0xd')]&&_0x4a00ca['unwrap'](_0xcd2b36);});});};_0x2b2348(_0x4474('0x9e'),'accept'),_0x2b2348(_0x4474('0x9e'),_0x4474('0x9f')),_0x2b2348(_0x4474('0x14'),'accept'),_0x2b2348(_0x4474('0x14'),_0x4474('0x9f')),_0x566433[_0x4474('0x24')][_0x4474('0x39')](_0x4474('0x9e'),_0x4474('0x7f'),_0x4474('0x9f'),_0x4a8ed5=>{const _0x3f0b5f=_0x4a8ed5[_0x4474('0x8b')](_0x1d63ed=>_0x1d63ed[_0x4474('0x2e')]()),_0x56eca3=_0x3f0b5f[0x0][_0x4474('0xf')](_0x4474('0x4a')),{minRow:_0x4104fc,maxRow:_0x3a2d05}=_0x1482d9[_0x4474('0x99')](_0x3f0b5f);_0x22bc4e['removeRows'](_0x56eca3,{'at':_0x4104fc,'rows':_0x3a2d05-_0x4104fc+0x1});}),_0x566433[_0x4474('0x24')]['registerCustomCallback'](_0x4474('0x9e'),_0x4474('0x7a'),_0x4474('0x9f'),_0x1505e8=>{const _0x122166=_0x1505e8[_0x4474('0x8b')](_0x4c0892=>_0x4c0892[_0x4474('0x2e')]()),_0x59680c=_0x122166[0x0][_0x4474('0xf')](_0x4474('0x4a')),{minColumn:_0xf734bf,maxColumn:_0x58b2d2}=_0x1482d9[_0x4474('0x99')](_0x122166);_0x22bc4e[_0x4474('0x58')](_0x59680c,{'at':_0xf734bf,'columns':_0x58b2d2-_0xf734bf+0x1});});const _0x1d4e77=(_0x507793,_0x4af876)=>{if(!_0x4af876[_0x4474('0x40')]||!_0x4af876['subType'][_0x4474('0x74')](_0x4474('0x22')))return;const _0x306f41=_0x4af876[_0x4474('0x55')][_0x4474('0x8c')],_0xf06d2=_0x566433['getSuggestions']()['filter'](_0x2be674=>_0x2be674[_0x4474('0x1f')]&&_0x2be674['attributes']&&_0x2be674[_0x4474('0x55')]['tablePasteChainId']==_0x306f41);_0xf06d2[_0x4474('0x38')]&&_0x4af876[_0x4474('0x20')]()['length']!=_0xf06d2[_0x4474('0x38')]&&_0xf06d2[_0x4474('0x52')]((_0x294252,_0xace61e)=>(_0x294252[_0x4474('0x18')]=_0xace61e,_0xace61e[_0x4474('0x7d')]=_0x294252,_0xace61e));};function _0x30063b(_0x1315f4,_0x5ac7f3=!0x0){const {id:_0x592d8f}=_0x566433['_splitMarkerName'](_0x1315f4[_0x4474('0x4c')]),_0x2cf3e4=[_0x4474('0x17'),_0x4474('0x87')],_0x44ebf1=_0x566433[_0x4474('0x7e')]['includes'](_0x1315f4[_0x4474('0x4c')]);return _0x44ebf1&&_0x2cf3e4[_0x4474('0x95')](_0x4474('0x21')),{'classes':_0x2cf3e4,'attributes':{'data-suggestion':_0x592d8f},'priority':_0x44ebf1&&_0x5ac7f3?0xbc2:0xbb8};}_0x566433['on'](_0x4474('0x79'),_0x1d4e77,{'priority':_0x4474('0x1b')}),_0x566433['on'](_0x4474('0x1a'),_0x1d4e77,{'priority':_0x4474('0x1b')}),_0x1d16ee[_0x4474('0x10')][_0x4474('0x66')][_0x4474('0x8f')](()=>{let _0x5abc04=!0x1;const _0x4c37d9=Array[_0x4474('0x37')](_0x1d16ee[_0x4474('0x10')]['document'][_0x4474('0x4f')][_0x4474('0x6b')]());for(const {name:_0x86ff92,data:_0x68cea}of _0x4c37d9){const {group:_0x21256a,type:_0x3787e8,id:_0x2e9c1c}=_0x566433['_splitMarkerName'](_0x86ff92);if('suggestion'!=_0x21256a||'deletion'!=_0x3787e8||_0x68cea[_0x4474('0x64')])continue;if(!_0x566433[_0x4474('0x5c')](_0x2e9c1c))continue;const _0x283f72=_0x566433[_0x4474('0x53')](_0x2e9c1c)[_0x4474('0x5b')](),_0x3a8b97=_0x1d16ee[_0x4474('0x90')][_0x4474('0x97')](_0x4474('0x2c'))['me'];for(const _0x2ac853 of _0x566433[_0x4474('0x4e')]()){if(!_0x2ac853[_0x4474('0x1f')]||_0x2ac853['author']!=_0x3a8b97)continue;if(_0x4474('0x69')!=_0x2ac853['type']||_0x4474('0x2a')!=_0x2ac853[_0x4474('0x40')])continue;if(_0x2ac853[_0x4474('0x5b')]()[_0x4474('0x98')](_0x571dc2=>_0x283f72[_0x4474('0x11')](_0x948c97=>_0x948c97['containsRange'](_0x571dc2,!0x0))))for(const _0x256238 of _0x2ac853[_0x4474('0x20')]())_0x256238[_0x4474('0x1f')]&&(_0x256238[_0x4474('0x9f')](),_0x5abc04=!0x0);}}return _0x5abc04;}),_0x1d16ee[_0x4474('0x10')][_0x4474('0x66')][_0x4474('0x8f')](_0x4e24fc=>{const _0x3909c7=_0x1d16ee[_0x4474('0x15')]['get'](_0x4474('0x5'));if(!_0x3909c7||!_0x3909c7[_0x4474('0x7c')][_0x4474('0x0')](_0x4e24fc[_0x4474('0x33')]))return!0x1;let _0x4db1d3=!0x1;const _0x5efe31=_0x1d16ee['plugins'][_0x4474('0x97')](_0x4474('0x2c'))['me'],_0x464c15=_0x1d16ee['model'][_0x4474('0x66')][_0x4474('0x4f')][_0x4474('0x59')](),_0x1a2517=Array[_0x4474('0x37')](_0x1d16ee[_0x4474('0x10')][_0x4474('0x66')][_0x4474('0x4f')][_0x4474('0x6b')]())['filter'](({name:_0x4c31db,data:_0x210466})=>{const {group:_0x4b9a9c,subType:_0x340803,authorId:_0x19bf59}=_0x566433['_splitMarkerName'](_0x4c31db);return _0x4474('0x67')==_0x4b9a9c&&_0x4474('0x22')==_0x340803&&_0x19bf59==_0x5efe31['id']&&!_0x210466[_0x4474('0x64')];});for(const _0x414e54 of _0x464c15){if('insert'!=_0x414e54[_0x4474('0x83')]||_0x4474('0x81')!=_0x414e54[_0x4474('0x73')]||0x1!=_0x414e54[_0x4474('0x38')])continue;const _0x1eb926=_0x4e24fc[_0x4474('0x8')](_0x414e54[_0x4474('0x70')],_0x414e54[_0x4474('0x70')][_0x4474('0x27')](0x1));if(!_0x1a2517[_0x4474('0x78')](({data:_0x11dcfd})=>_0x11dcfd[_0x4474('0x16')][_0x4474('0x9d')](_0x1eb926)))for(const {name:_0x4f7434,data:_0x470347}of _0x1a2517)if(_0x1eb926['containsRange'](_0x470347[_0x4474('0x16')])){_0x4e24fc[_0x4474('0xb')](_0x4f7434,{'range':_0x1eb926}),_0x4db1d3=!0x0;break;}}return _0x4db1d3;}),_0x1d16ee[_0x4474('0x10')][_0x4474('0x66')]['registerPostFixer'](_0x5dc87f=>{let _0x35086f=!0x1;const _0x4ae77d=_0x1d16ee['plugins'][_0x4474('0x97')](_0x4474('0x2c'))['me'],_0x159bf2=_0x566433[_0x4474('0x4e')]()[_0x4474('0x6d')](_0x5d95b1=>_0x5d95b1['isInContent']&&_0x5d95b1[_0x4474('0x6e')]==_0x4ae77d),_0x2adefc=new Set(),_0x45ed40=new Set();for(const _0x29cc89 of _0x159bf2)if(_0x4474('0x22')==_0x29cc89[_0x4474('0x40')])for(const _0xc88192 of _0x29cc89[_0x4474('0x80')]()){const _0x41cfe6=_0xc88192['getRange']()[_0x4474('0x2e')]();if(_0x41cfe6){if(_0x41cfe6['is'](_0x4474('0x36'),_0x4474('0x81'))&&ce(_0x41cfe6)){_0x29cc89[_0x4474('0xa0')](_0xc88192[_0x4474('0x73')]),_0x2adefc['add'](_0x41cfe6),_0x35086f=!0x0;const _0x46bf92=_0x41cfe6[_0x4474('0x8e')],_0x6a73f=_0x41cfe6['previousSibling'],_0x481390=_0x46bf92&&_0x46bf92['is']('element',_0x4474('0x81')),_0x45b57c=_0x6a73f&&_0x6a73f['is'](_0x4474('0x36'),_0x4474('0x81'));_0x481390&&!_0x2adefc[_0x4474('0x0')](_0x46bf92)&&_0x45ed40[_0x4474('0x76')](_0x46bf92),_0x45b57c&&!_0x2adefc['has'](_0x6a73f)&&_0x45ed40[_0x4474('0x76')](_0x6a73f);}else _0x41cfe6['is']('element',_0x4474('0x48'))&&_0x41cfe6[_0x4474('0x94')]&&(_0x29cc89[_0x4474('0xa0')](_0xc88192[_0x4474('0x73')]),_0x35086f=!0x0);}}else{if('tablePasteCell'==_0x29cc89['subType']){if(!_0x29cc89[_0x4474('0x55')]||!_0x29cc89[_0x4474('0x55')][_0x4474('0x8c')])continue;const _0x3280fc=_0x29cc89[_0x4474('0x55')][_0x4474('0x7b')];if(_0x3280fc&&Object[_0x4474('0x57')](_0x3280fc)[_0x4474('0x38')])continue;const _0x1c05de=_0x29cc89['attributes']['tablePasteChainId'];let _0x394621=!0x0,_0x19bf08=!0x0;for(const _0x2246b1 of _0x159bf2)if(_0x2246b1[_0x4474('0x40')]&&_0x2246b1[_0x4474('0x40')][_0x4474('0x74')](_0x4474('0x22'))){if(!_0x2246b1[_0x4474('0x55')]['tablePasteChainId']){_0x19bf08=!0x1;break;}if(_0x2246b1['id']!=_0x29cc89['id']&&_0x2246b1[_0x4474('0x55')][_0x4474('0x8c')]==_0x1c05de){_0x394621=!0x1;break;}}_0x19bf08&&_0x394621&&(_0x29cc89['removeMarkers'](),_0x35086f=!0x0);}}for(const _0x4d7c98 of _0x2adefc)_0x5dc87f['remove'](_0x4d7c98);for(const _0x2fc73f of _0x45ed40)_0x5dc87f[_0x4474('0x88')](_0x2fc73f);return _0x35086f;}),_0x1d16ee['conversion'][_0x4474('0x1e')](_0x4474('0x30'))['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2e7684,_0x5e2092)=>_0x30063b(_0x2e7684),'converterPriority':_0x4474('0x1b')}),_0x1d16ee[_0x4474('0x31')][_0x4474('0x1e')](_0x4474('0x47'))[_0x4474('0x72')]({'model':_0x4474('0x50'),'view':(_0x3b7a9a,_0x257221)=>_0x257221[_0x4474('0x9b')]['showSuggestionHighlights']?_0x30063b(_0x3b7a9a,!0x1):null,'converterPriority':_0x4474('0x1b')});const _0x4b924c=_0x1d16ee['editing'][_0x4474('0x28')];this['listenTo'](_0x4b924c[_0x4474('0x66')],_0x4474('0x9'),(_0x430d75,_0x1d0744)=>{const _0x2e0dea=[];for(const _0x5ba776 of _0x4b924c[_0x4474('0x3c')](_0x1d0744[_0x4474('0xc')])['getItems']())_0x5ba776['is']('element',_0x4474('0x4d'))&&_0x2e0dea[_0x4474('0x95')](_0x5ba776);_0x4b924c[_0x4474('0x4')](_0x835fac=>{for(const _0x147ed6 of _0x2e0dea)_0x835fac[_0x4474('0x8a')](_0x835fac['createRangeIn'](_0x147ed6),_0x835fac[_0x4474('0x1')](_0x147ed6)),_0x835fac[_0x4474('0x93')](_0x147ed6);});});}}function ce(_0x392979){if(_0x392979['isEmpty'])return!0x0;const _0x1e5cfb=_0x392979['getChild'](0x0);return _0x1e5cfb['is'](_0x4474('0x36'),_0x4474('0x48'))&&_0x1e5cfb[_0x4474('0x94')];}function fe(_0xb0d74,_0x1a2073={},_0x5d4ed7){for(const {isAnchor:_0x4e6a3b,cellHeight:_0x34a28f,cellWidth:_0xc0364c}of _0x5d4ed7[_0x4474('0x62')](_0xb0d74,{'includeAllSlots':!0x0,..._0x1a2073}))if(!_0x4e6a3b||0x1!=_0x34a28f||0x1!=_0xc0364c)return!0x1;return!0x0;}
|
|
23
|
+
const _0x2e2f=['batch','filter','removeMarkers','markers','TrackChangesEditing','getSuggestion','Users','document','author','model','tableCellSuggestion','nodeAfter','element','map','previousSibling','accept','showSuggestionHighlights','newRange','row','getChangedMarkers','high','insertion','for','cells','formatBlock','isEmpty','columns','tableCellHorizontalAlignment','end','suggestionUnloaded','listenTo','ck-suggestion-marker','columnInsertionRanges','editing','editor','some','plugins','tablePasteColumn','length','name','getColumnIndexes','getChild','attributes','getChildren','startsWith','rowInsertionIndexes','tablePaste','oldRange','root','rows','containsRange','conversion','deletion','*Replace\x20table\x20cells*','tablePasteChainId','change','_suggestionFactory','columnInsertionIndexes','removeRows','createRange','view','elementToElement','getSelectionAffectedTableCells','setAttributes','tablePasteCell','editingDowncast','commands','markMultiRangeDeletion','getRanges','content','_createdBatches','last','$graveyard','schema','getTableIfOnlyTableInContent','keys','tableCellBorderColor','getAttributes','has','registerDescriptionCallback','value','getShiftedBy','type','suggestion','tableCellPadding','TableClipboard','_isForcedDefaultExecutionBlock','suggestion-td','get','locale','getChanges','deletionRanges','dataDowncast','insertColumns','activeMarkers','removeMarker','find','registerCustomCallback','from','subType','tablePasteRow','_descriptionFactory','markerToHighlight','tableCellBorderWidth','fromEntries','every','createRangeOn','includes','afterInit','selection','paragraph','_getCoordsForCells','getItems','insertContent','redo','getSuggestions','differ','getSuggestionCallback','position','createTableWalker','previous','getRange','first','next','forceDefaultExecution','markMultiRangeBlockFormat','insertRows','getRowIndexes','getAllAdjacentSuggestions','tableCell','getContainedElement','join','_splitMarkerName','low','getColumns','registerPostFixer','createPositionBefore','setAttribute','column','documentSelection','set','tableCellBorderStyle','insertionRanges','isEqual','remove','ck-suggestion-marker-insertion','markerAttributes','getRows','fill','markerName','table','stop','endColumn','suggestion:formatBlock:tablePasteCell','wrap','findAncestor','requires','tableCellBackgroundColor','options','_tablePostFixingSubtypes','add','TableUtils','updateMarker','isInContent','trackChanges','markMultiRangeInsertion','createRangeIn','unwrap','createElement','discard','removeColumns','endRow','push','insert'];(function(_0x5772ee,_0x2e2fa4){const _0x1adce8=function(_0xb83cb8){while(--_0xb83cb8){_0x5772ee['push'](_0x5772ee['shift']());}};_0x1adce8(++_0x2e2fa4);}(_0x2e2f,0x1d3));const _0x1adc=function(_0x5772ee,_0x2e2fa4){_0x5772ee=_0x5772ee-0x0;let _0x1adce8=_0x2e2f[_0x5772ee];return _0x1adce8;};import{getTranslation as _0xff4e7d}from'../utils/common-translations';import{Plugin as _0x5ac451}from'ckeditor5/src/core';import{uid as _0x39689b,priorities as _0x1ee6d8}from'ckeditor5/src/utils';import _0x1df8b0 from'./table';const le=[_0x1adc('0x9e'),_0x1adc('0x83'),_0x1adc('0x16'),_0x1adc('0x52'),'tableCellVerticalAlignment',_0x1adc('0x26'),_0x1adc('0x8b')],ae=Object[_0x1adc('0x9f')](le[_0x1adc('0x44')](_0x5185ad=>[_0x5185ad,null]));export default class wt extends _0x5ac451{static get[_0x1adc('0x25')](){return[_0x1df8b0];}[_0x1adc('0xa3')](){const _0x4a9fcb=this[_0x1adc('0x59')];if(!_0x4a9fcb['plugins'][_0x1adc('0x85')](_0x1adc('0x8c')))return;const _0x1f3d68=_0x4a9fcb[_0x1adc('0x5b')][_0x1adc('0x8f')](_0x1adc('0x3b')),_0x4b7cd4=_0x4a9fcb[_0x1adc('0x5b')][_0x1adc('0x8f')](_0x1adc('0x2a')),_0x5971b9=_0x4a9fcb['plugins']['get'](_0x1df8b0),_0x1c3c54=_0x4a9fcb[_0x1adc('0x5b')][_0x1adc('0x8f')](_0x1adc('0x8c'));_0x5971b9[_0x1adc('0x28')][_0x1adc('0x35')](_0x1adc('0x9b'),_0x1adc('0x5c')),_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x80')]['register'](_0x1adc('0x41'),{'allowIn':_0x1adc('0xa'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x4a9fcb['conversion'][_0x1adc('0x74')]({'model':_0x1adc('0x41'),'view':'suggestion-td'});let _0x233aca=null;_0x4a9fcb[_0x1adc('0x40')]['on'](_0x1adc('0xa8'),(_0x56e954,_0x126de3)=>{const [_0x19f19d,_0x3c8b48]=_0x126de3,_0x4c21c7=_0x126de3[_0x126de3[_0x1adc('0x5d')]-0x1];_0x4c21c7&&_0x4c21c7[_0x1adc('0x5')]||_0x1f3d68[_0x1adc('0x8d')]||this[_0x1adc('0x59')][_0x1adc('0x79')][_0x1adc('0x8f')](_0x1adc('0x2d'))[_0x1adc('0x87')]&&function(_0x60f368,_0x53ce33,_0x5f3ad9,_0x39407f,_0x22acfd){if(_0x53ce33&&!_0x53ce33['is'](_0x1adc('0x14')))return!0x1;const _0x530069=_0x22acfd[_0x1adc('0x81')](_0x60f368,_0x5f3ad9);if(!_0x530069||!fe(_0x530069,void 0x0,_0x39407f))return!0x1;const _0x484df8=_0x39407f[_0x1adc('0x75')](_0x5f3ad9[_0x1adc('0x3e')][_0x1adc('0xa4')]);if(!_0x484df8[_0x1adc('0x5d')])return!0x1;const _0x47dd51=_0x484df8[0x0][_0x1adc('0x24')](_0x1adc('0x1f')),_0x2cc69b=_0x39407f[_0x1adc('0x8')](_0x484df8),_0xda6bee=_0x39407f[_0x1adc('0x5f')](_0x484df8),_0x3315c8={'startRow':_0x2cc69b[_0x1adc('0x3')],'endRow':_0x2cc69b[_0x1adc('0x7e')],'startColumn':_0xda6bee[_0x1adc('0x3')],'endColumn':_0xda6bee[_0x1adc('0x7e')]};return 0x1==_0x484df8[_0x1adc('0x5d')]&&(_0x3315c8[_0x1adc('0x34')]+=_0x39407f[_0x1adc('0x1c')](_0x530069)-0x1,_0x3315c8[_0x1adc('0x21')]+=_0x39407f[_0x1adc('0xf')](_0x530069)-0x1),fe(_0x47dd51,_0x3315c8,_0x39407f);}(_0x19f19d,_0x3c8b48,_0x4a9fcb[_0x1adc('0x40')],_0x4b7cd4,_0x1c3c54)&&(_0x56e954[_0x1adc('0x20')](),_0x233aca={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x6e')](()=>{_0x4a9fcb['model'][_0x1adc('0xa8')](_0x126de3[0x0],_0x126de3[0x1],_0x126de3[0x2],{'forceDefaultExecution':!0x0});const _0x27654b=_0x39689b(),{rowInsertionRanges:_0x2ff95a,columnInsertionRanges:_0x6b9582,insertionRanges:_0x5623bf,deletionRanges:_0x50ba0b,cells:_0x185b59}=_0x233aca;_0x2ff95a['length']&&_0x1f3d68[_0x1adc('0x2e')](_0x2ff95a,_0x1adc('0x9b'),{'tablePasteChainId':_0x27654b}),_0x6b9582['length']&&_0x1f3d68[_0x1adc('0x2e')](_0x6b9582,_0x1adc('0x5c'),{'tablePasteChainId':_0x27654b}),_0x5623bf[_0x1adc('0x5d')]&&_0x1f3d68[_0x1adc('0x2e')](_0x5623bf,_0x1adc('0x65'),{'tablePasteChainId':_0x27654b,'skipNestingCheck':!0x0}),_0x50ba0b[_0x1adc('0x5d')]&&_0x1f3d68[_0x1adc('0x7a')](_0x50ba0b,_0x1adc('0x65'),{'tablePasteChainId':_0x27654b,'skipNestingCheck':!0x0});const _0x4f518b=_0x1f3d68[_0x1adc('0x6')](_0x185b59[_0x1adc('0x44')](({element:_0x3ac8e5})=>_0x3ac8e5),{'formatGroupId':_0x39689b()},[],_0x1adc('0x77'),{'tablePasteChainId':_0x27654b});if(_0x4f518b){const _0xa630f6=_0x4f518b['getMarkers'](),_0x634874=[];for(const {element:_0x29fe3b,attributes:_0x3a55d9}of _0x185b59){if(!_0x3a55d9)continue;const _0x3895dc=_0x4a9fcb['model']['createRangeOn'](_0x29fe3b),_0x134f54=_0xa630f6[_0x1adc('0x97')](_0x1ed158=>_0x1ed158['getRange']()[_0x1adc('0x18')](_0x3895dc));_0x134f54&&_0x634874[_0x1adc('0x35')]([_0x134f54['name'],_0x3a55d9]);}_0x634874[_0x1adc('0x5d')]&&_0x4f518b[_0x1adc('0x12')](_0x1adc('0x1b'),Object[_0x1adc('0x9f')](_0x634874));}_0x233aca=null;}));},{'priority':_0x1ee6d8['high']+0xa}),_0x4a9fcb[_0x1adc('0x5b')][_0x1adc('0x8f')](_0x1adc('0x8c'))['on']('_replaceTableSlotCell',(_0x2e3def,_0x4e9120)=>{const [_0x5f3cf0,_0x2a15d7,,_0x1dc8f9]=_0x4e9120;if(!_0x233aca)return;_0x2e3def['stop']();const _0x427d83=_0x5f3cf0['cell'],_0x39e311=_0x2a15d7,_0x1792ab=ce(_0x427d83),_0x6c802d=ce(_0x39e311);_0x2e3def['return']=_0x427d83;let _0x5e94e8=null,_0x21dafe=null;if(_0x6c802d||_0x1792ab){if(_0x1792ab&&!_0x6c802d){_0x1dc8f9[_0x1adc('0x19')](_0x427d83[_0x1adc('0x60')](0x0));for(const _0x174351 of Array['from'](_0x39e311[_0x1adc('0x62')]()))_0x1dc8f9[_0x1adc('0x36')](_0x174351,_0x427d83,_0x1adc('0x53'));const _0x3c8433=_0x233aca[_0x1adc('0x64')][_0x1adc('0xa2')](_0x5f3cf0[_0x1adc('0x49')]),_0x48a7a2=_0x233aca[_0x1adc('0x70')]['includes'](_0x5f3cf0[_0x1adc('0x13')]);_0x3c8433||_0x48a7a2||(_0x5e94e8=_0x1dc8f9[_0x1adc('0x2f')](_0x427d83));}else _0x6c802d&&!_0x1792ab&&(_0x21dafe=_0x1dc8f9['createRangeIn'](_0x427d83));}else{const _0x1e444e=_0x1dc8f9[_0x1adc('0x31')](_0x1adc('0x41')),_0x1215f7=_0x1dc8f9['createElement'](_0x1adc('0x41'));_0x1dc8f9[_0x1adc('0x23')](_0x1dc8f9['createRangeIn'](_0x427d83),_0x1215f7),_0x1dc8f9[_0x1adc('0x36')](_0x1e444e,_0x427d83,0x0);for(const _0x462f59 of Array[_0x1adc('0x99')](_0x39e311['getChildren']()))_0x1dc8f9[_0x1adc('0x36')](_0x462f59,_0x1e444e,_0x1adc('0x53'));_0x5e94e8=_0x1dc8f9[_0x1adc('0xa1')](_0x1e444e),_0x21dafe=_0x1dc8f9['createRangeOn'](_0x1215f7);}const _0x5b1492=Array[_0x1adc('0x99')](_0x39e311[_0x1adc('0x84')]())[_0x1adc('0x38')](([_0x599406])=>le[_0x1adc('0xa2')](_0x599406));_0x233aca[_0x1adc('0x4e')][_0x1adc('0x35')]({'element':_0x427d83,'attributes':_0x5b1492[_0x1adc('0x5d')]?Object[_0x1adc('0x9f')](_0x5b1492):null}),_0x5e94e8&&_0x233aca[_0x1adc('0x17')]['push'](_0x5e94e8),_0x21dafe&&_0x233aca[_0x1adc('0x92')][_0x1adc('0x35')](_0x21dafe);},{'priority':_0x1adc('0x4b')}),_0x4b7cd4['on'](_0x1adc('0x94'),(_0x3ddfed,_0x400011)=>{const [_0x13800b,_0x55a04e={}]=_0x400011;if(!_0x233aca)return;const _0x39b75b=_0x55a04e['at']||0x0,_0x1f5014=_0x55a04e[_0x1adc('0x51')]||0x1;_0x233aca['columnInsertionIndexes']=new Array(_0x1f5014)['fill'](_0x39b75b)['map']((_0x55d3c1,_0xb1a41b)=>_0x55d3c1+_0xb1a41b);for(const {cell:_0x3f9ba3}of _0x4b7cd4[_0x1adc('0x0')](_0x13800b,{'startColumn':_0x39b75b,'endColumn':_0x39b75b+_0x1f5014-0x1}))_0x233aca[_0x1adc('0x57')][_0x1adc('0x35')](_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0xa1')](_0x3f9ba3));},{'priority':'low'}),_0x4b7cd4['on'](_0x1adc('0x7'),(_0xbf12ca,_0x17aff1)=>{const [_0x51bae2,_0x226aa4={}]=_0x17aff1;if(!_0x233aca)return;const _0x50a392=_0x226aa4['at']||0x0,_0x23e66e=_0x226aa4[_0x1adc('0x68')]||0x1;_0x233aca[_0x1adc('0x64')]=new Array(_0x23e66e)[_0x1adc('0x1d')](_0x50a392)[_0x1adc('0x44')]((_0x50fb46,_0x1a9d00)=>_0x50fb46+_0x1a9d00);for(const {cell:_0x5f179d}of _0x4b7cd4['createTableWalker'](_0x51bae2,{'startRow':_0x50a392,'endRow':_0x50a392+_0x23e66e-0x1}))_0x233aca['rowInsertionRanges'][_0x1adc('0x35')](_0x4a9fcb['model'][_0x1adc('0xa1')](_0x5f179d));},{'priority':_0x1adc('0xe')}),_0x1f3d68[_0x1adc('0x9c')][_0x1adc('0x86')](_0x563053=>{if(_0x563053[_0x1adc('0x9a')]&&_0x563053[_0x1adc('0x9a')]['startsWith'](_0x1adc('0x65')))return _0x563053[_0x1adc('0x1')]?{}:{'type':_0x1adc('0x4c'),'content':_0xff4e7d(_0x4a9fcb[_0x1adc('0x90')],_0x1adc('0x6c'))};});const _0x4ffa76=()=>!0x1;for(const _0x6892ba of['tablePaste','tablePasteColumn',_0x1adc('0x9b'),_0x1adc('0x77')])_0x1f3d68[_0x1adc('0x6f')][_0x1adc('0x98')](_0x1adc('0x4c'),_0x6892ba,_0x1adc('0xc'),_0x4ffa76),_0x1f3d68[_0x1adc('0x6f')][_0x1adc('0x98')]('deletion',_0x6892ba,_0x1adc('0xc'),_0x4ffa76),_0x1f3d68[_0x1adc('0x6f')]['registerCustomCallback']('formatBlock',_0x6892ba,_0x1adc('0xc'),_0x4ffa76);_0x1f3d68[_0x1adc('0x6f')][_0x1adc('0x98')](_0x1adc('0x4f'),_0x1adc('0x77'),'discard',_0x4ffa76),_0x1f3d68[_0x1adc('0x6f')][_0x1adc('0x98')](_0x1adc('0x4f'),_0x1adc('0x77'),_0x1adc('0x46'),(_0x2e3ba5,_0xef0d42,_0x3da03a)=>{const _0x45fa9a=_0x2e3ba5['map'](_0x21d7c5=>_0x21d7c5[_0x1adc('0xb')]())['filter'](_0x4fd37f=>_0x4fd37f),_0xd138be=new Map(_0x45fa9a[_0x1adc('0x44')](_0xca260=>[_0xca260,null]));if(_0x233aca)for(const {element:_0x4403c3,attributes:_0x15da57}of _0x233aca[_0x1adc('0x4e')])_0x15da57&&_0xd138be[_0x1adc('0x15')](_0x4403c3,_0x15da57);else{if(_0x3da03a&&_0x3da03a[_0x1adc('0x1b')])for(const [_0x2fff8e,_0x40f7a5]of Object['entries'](_0x3da03a[_0x1adc('0x1b')])){const _0x42a5a8=_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x3a')][_0x1adc('0x8f')](_0x2fff8e),_0xc8a0c7=_0x42a5a8?_0x42a5a8['getRange']()[_0x1adc('0xb')]():null;_0xc8a0c7&&_0xd138be[_0x1adc('0x15')](_0xc8a0c7,_0x40f7a5);}}_0x4a9fcb[_0x1adc('0x40')]['change'](_0x638ffa=>{for(const [_0x442450,_0x648eaf]of _0xd138be)_0x638ffa[_0x1adc('0x76')]({...ae,..._0x648eaf},_0x442450);});});const _0x2a73bd=(_0x5aa627,_0x17cbc8)=>{_0x1f3d68[_0x1adc('0x6f')][_0x1adc('0x98')](_0x5aa627,'tablePaste',_0x17cbc8,(_0x397c59,_0x3faad7,_0x4eb2f2)=>{_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x6e')](_0x31df9d=>{const _0x5c2499=[];for(const _0x36f82c of _0x397c59){const _0x55a61b=_0x36f82c['start'][_0x1adc('0x42')];_0x55a61b['is'](_0x1adc('0x43'),_0x1adc('0x41'))&&_0x5c2499[_0x1adc('0x35')](_0x55a61b);}_0x1f3d68[_0x1adc('0x6f')][_0x1adc('0xac')](_0x5aa627,null,_0x17cbc8)(_0x397c59,_0x3faad7,_0x4eb2f2);for(const _0x4010f7 of _0x5c2499)_0x1adc('0x7f')!=_0x4010f7[_0x1adc('0x67')]['rootName']&&_0x31df9d[_0x1adc('0x30')](_0x4010f7);});});};_0x2a73bd(_0x1adc('0x4c'),_0x1adc('0x46')),_0x2a73bd('insertion',_0x1adc('0x32')),_0x2a73bd(_0x1adc('0x6b'),_0x1adc('0x46')),_0x2a73bd(_0x1adc('0x6b'),_0x1adc('0x32')),_0x1f3d68[_0x1adc('0x6f')][_0x1adc('0x98')](_0x1adc('0x4c'),'tablePasteRow',_0x1adc('0x32'),_0x4f41af=>{const _0xb009f1=_0x4f41af['map'](_0x1dcdd8=>_0x1dcdd8[_0x1adc('0xb')]()),_0x2b6e1f=_0xb009f1[0x0][_0x1adc('0x24')](_0x1adc('0x1f')),{minRow:_0x11916d,maxRow:_0x4bee91}=_0x5971b9['_getCoordsForCells'](_0xb009f1);_0x4b7cd4[_0x1adc('0x71')](_0x2b6e1f,{'at':_0x11916d,'rows':_0x4bee91-_0x11916d+0x1});}),_0x1f3d68[_0x1adc('0x6f')]['registerCustomCallback'](_0x1adc('0x4c'),_0x1adc('0x5c'),_0x1adc('0x32'),_0x40d24d=>{const _0x4585e9=_0x40d24d['map'](_0x404cae=>_0x404cae['getContainedElement']()),_0x456e5f=_0x4585e9[0x0][_0x1adc('0x24')](_0x1adc('0x1f')),{minColumn:_0x56a860,maxColumn:_0x3816ba}=_0x5971b9[_0x1adc('0xa6')](_0x4585e9);_0x4b7cd4[_0x1adc('0x33')](_0x456e5f,{'at':_0x56a860,'columns':_0x3816ba-_0x56a860+0x1});});const _0x21ed4f=(_0x40f5bb,_0x1d4c11)=>{if(!_0x1d4c11['subType']||!_0x1d4c11[_0x1adc('0x9a')][_0x1adc('0x63')](_0x1adc('0x65')))return;const _0xc7f4ea=_0x1d4c11[_0x1adc('0x61')]['tablePasteChainId'],_0x37fe16=_0x1f3d68['getSuggestions']()[_0x1adc('0x38')](_0x4e2b0d=>_0x4e2b0d[_0x1adc('0x2c')]&&_0x4e2b0d[_0x1adc('0x61')]&&_0x4e2b0d[_0x1adc('0x61')][_0x1adc('0x6d')]==_0xc7f4ea);_0x37fe16[_0x1adc('0x5d')]&&_0x1d4c11['getAllAdjacentSuggestions']()[_0x1adc('0x5d')]!=_0x37fe16[_0x1adc('0x5d')]&&_0x37fe16['reduce']((_0x43f5e7,_0x1c30d3)=>(_0x43f5e7[_0x1adc('0x4')]=_0x1c30d3,_0x1c30d3[_0x1adc('0x1')]=_0x43f5e7,_0x1c30d3));};function _0x5439c8(_0x362810,_0x2be86d=!0x0){const {id:_0x3da367}=_0x1f3d68['_splitMarkerName'](_0x362810[_0x1adc('0x1e')]),_0x3e908b=[_0x1adc('0x56'),_0x1adc('0x1a')],_0x2f5704=_0x1f3d68[_0x1adc('0x95')]['includes'](_0x362810[_0x1adc('0x1e')]);return _0x2f5704&&_0x3e908b[_0x1adc('0x35')]('ck-suggestion-marker--active'),{'classes':_0x3e908b,'attributes':{'data-suggestion':_0x3da367},'priority':_0x2f5704&&_0x2be86d?0xbc2:0xbb8};}_0x1f3d68['on']('suggestionLoaded',_0x21ed4f,{'priority':_0x1adc('0x4b')}),_0x1f3d68['on'](_0x1adc('0x54'),_0x21ed4f,{'priority':_0x1adc('0x4b')}),_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x3e')][_0x1adc('0x10')](()=>{let _0x257cb6=!0x1;const _0x4280ac=Array['from'](_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x3e')][_0x1adc('0xab')]['getChangedMarkers']());for(const {name:_0x5eb39e,data:_0x381abf}of _0x4280ac){const {group:_0x2b2cda,type:_0x56b0df,id:_0xe143ce}=_0x1f3d68['_splitMarkerName'](_0x5eb39e);if(_0x1adc('0x8a')!=_0x2b2cda||_0x1adc('0x6b')!=_0x56b0df||_0x381abf[_0x1adc('0x66')])continue;if(!_0x1f3d68['hasSuggestion'](_0xe143ce))continue;const _0x3cb616=_0x1f3d68[_0x1adc('0x3c')](_0xe143ce)[_0x1adc('0x7b')](),_0x339159=_0x4a9fcb['plugins']['get'](_0x1adc('0x3d'))['me'];for(const _0x5ba1d3 of _0x1f3d68[_0x1adc('0xaa')]()){if(!_0x5ba1d3['isInContent']||_0x5ba1d3[_0x1adc('0x3f')]!=_0x339159)continue;if('formatBlock'!=_0x5ba1d3[_0x1adc('0x89')]||_0x1adc('0x77')!=_0x5ba1d3['subType'])continue;if(_0x5ba1d3['getRanges']()[_0x1adc('0xa0')](_0x541939=>_0x3cb616[_0x1adc('0x5a')](_0xb7cda6=>_0xb7cda6[_0x1adc('0x69')](_0x541939,!0x0))))for(const _0x21e665 of _0x5ba1d3[_0x1adc('0x9')]())_0x21e665[_0x1adc('0x2c')]&&(_0x21e665[_0x1adc('0x32')](),_0x257cb6=!0x0);}}return _0x257cb6;}),_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x3e')][_0x1adc('0x10')](_0x2b241d=>{const _0x7336cd=_0x4a9fcb[_0x1adc('0x79')]['get'](_0x1adc('0xa9'));if(!_0x7336cd||!_0x7336cd[_0x1adc('0x7d')]['has'](_0x2b241d[_0x1adc('0x37')]))return!0x1;let _0x561e57=!0x1;const _0x24e2ae=_0x4a9fcb[_0x1adc('0x5b')][_0x1adc('0x8f')]('Users')['me'],_0x108ee0=_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x3e')][_0x1adc('0xab')][_0x1adc('0x91')](),_0x356de9=Array[_0x1adc('0x99')](_0x4a9fcb[_0x1adc('0x40')]['document'][_0x1adc('0xab')][_0x1adc('0x4a')]())['filter'](({name:_0x379c1e,data:_0x4e4fe9})=>{const {group:_0x44eeee,subType:_0x5e031c,authorId:_0x3c700e}=_0x1f3d68[_0x1adc('0xd')](_0x379c1e);return _0x1adc('0x8a')==_0x44eeee&&_0x1adc('0x65')==_0x5e031c&&_0x3c700e==_0x24e2ae['id']&&!_0x4e4fe9[_0x1adc('0x66')];});for(const _0x16b2ef of _0x108ee0){if(_0x1adc('0x36')!=_0x16b2ef[_0x1adc('0x89')]||_0x1adc('0x41')!=_0x16b2ef[_0x1adc('0x5e')]||0x1!=_0x16b2ef[_0x1adc('0x5d')])continue;const _0x2101d6=_0x2b241d[_0x1adc('0x72')](_0x16b2ef[_0x1adc('0xad')],_0x16b2ef[_0x1adc('0xad')][_0x1adc('0x88')](0x1));if(!_0x356de9[_0x1adc('0x97')](({data:_0x2307f5})=>_0x2307f5['newRange'][_0x1adc('0x18')](_0x2101d6)))for(const {name:_0x371a01,data:_0x204bc8}of _0x356de9)if(_0x2101d6['containsRange'](_0x204bc8[_0x1adc('0x48')])){_0x2b241d[_0x1adc('0x2b')](_0x371a01,{'range':_0x2101d6}),_0x561e57=!0x0;break;}}return _0x561e57;}),_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x3e')]['registerPostFixer'](_0x314b35=>{let _0x30bb79=!0x1;const _0x56620c=_0x4a9fcb[_0x1adc('0x5b')]['get'](_0x1adc('0x3d'))['me'],_0x10615a=_0x1f3d68[_0x1adc('0xaa')]()[_0x1adc('0x38')](_0x812498=>_0x812498[_0x1adc('0x2c')]&&_0x812498[_0x1adc('0x3f')]==_0x56620c),_0x8971f6=new Set(),_0x5d49a8=new Set();for(const _0x420375 of _0x10615a)if(_0x1adc('0x65')==_0x420375['subType'])for(const _0x48bd73 of _0x420375['getMarkers']()){const _0x24816f=_0x48bd73[_0x1adc('0x2')]()[_0x1adc('0xb')]();if(_0x24816f){if(_0x24816f['is'](_0x1adc('0x43'),_0x1adc('0x41'))&&ce(_0x24816f)){_0x420375[_0x1adc('0x96')](_0x48bd73[_0x1adc('0x5e')]),_0x8971f6[_0x1adc('0x29')](_0x24816f),_0x30bb79=!0x0;const _0x39d6b5=_0x24816f['nextSibling'],_0x529d80=_0x24816f[_0x1adc('0x45')],_0x305e6c=_0x39d6b5&&_0x39d6b5['is'](_0x1adc('0x43'),_0x1adc('0x41')),_0x5ccd51=_0x529d80&&_0x529d80['is'](_0x1adc('0x43'),_0x1adc('0x41'));_0x305e6c&&!_0x8971f6[_0x1adc('0x85')](_0x39d6b5)&&_0x5d49a8[_0x1adc('0x29')](_0x39d6b5),_0x5ccd51&&!_0x8971f6[_0x1adc('0x85')](_0x529d80)&&_0x5d49a8[_0x1adc('0x29')](_0x529d80);}else _0x24816f['is'](_0x1adc('0x43'),_0x1adc('0xa5'))&&_0x24816f[_0x1adc('0x50')]&&(_0x420375[_0x1adc('0x96')](_0x48bd73[_0x1adc('0x5e')]),_0x30bb79=!0x0);}}else{if(_0x1adc('0x77')==_0x420375[_0x1adc('0x9a')]){if(!_0x420375[_0x1adc('0x61')]||!_0x420375[_0x1adc('0x61')][_0x1adc('0x6d')])continue;const _0x578d69=_0x420375[_0x1adc('0x61')]['markerAttributes'];if(_0x578d69&&Object[_0x1adc('0x82')](_0x578d69)[_0x1adc('0x5d')])continue;const _0x2eb962=_0x420375['attributes'][_0x1adc('0x6d')];let _0xcb5041=!0x0,_0x3e7e68=!0x0;for(const _0x4aa98e of _0x10615a)if(_0x4aa98e['subType']&&_0x4aa98e[_0x1adc('0x9a')][_0x1adc('0x63')](_0x1adc('0x65'))){if(!_0x4aa98e[_0x1adc('0x61')][_0x1adc('0x6d')]){_0x3e7e68=!0x1;break;}if(_0x4aa98e['id']!=_0x420375['id']&&_0x4aa98e[_0x1adc('0x61')][_0x1adc('0x6d')]==_0x2eb962){_0xcb5041=!0x1;break;}}_0x3e7e68&&_0xcb5041&&(_0x420375[_0x1adc('0x39')](),_0x30bb79=!0x0);}}for(const _0x1260ac of _0x8971f6)_0x314b35['remove'](_0x1260ac);for(const _0x1dcf70 of _0x5d49a8)_0x314b35[_0x1adc('0x30')](_0x1dcf70);return _0x30bb79;}),_0x4a9fcb[_0x1adc('0x6a')][_0x1adc('0x4d')](_0x1adc('0x78'))[_0x1adc('0x9d')]({'model':_0x1adc('0x22'),'view':(_0x57aa0f,_0x53d42d)=>_0x5439c8(_0x57aa0f),'converterPriority':_0x1adc('0x4b')}),_0x4a9fcb[_0x1adc('0x6a')][_0x1adc('0x4d')](_0x1adc('0x93'))['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x57eb0b,_0x343c42)=>_0x343c42[_0x1adc('0x27')][_0x1adc('0x47')]?_0x5439c8(_0x57eb0b,!0x1):null,'converterPriority':_0x1adc('0x4b')});const _0x1f79f7=_0x4a9fcb[_0x1adc('0x58')][_0x1adc('0x73')];this[_0x1adc('0x55')](_0x1f79f7[_0x1adc('0x3e')],'clipboardOutput',(_0x292b73,_0x251454)=>{const _0x5a2415=[];for(const _0x53cf7c of _0x1f79f7[_0x1adc('0x2f')](_0x251454[_0x1adc('0x7c')])[_0x1adc('0xa7')]())_0x53cf7c['is'](_0x1adc('0x43'),_0x1adc('0x8e'))&&_0x5a2415[_0x1adc('0x35')](_0x53cf7c);_0x1f79f7[_0x1adc('0x6e')](_0xcc597b=>{for(const _0x4aa90e of _0x5a2415)_0xcc597b['move'](_0xcc597b[_0x1adc('0x2f')](_0x4aa90e),_0xcc597b[_0x1adc('0x11')](_0x4aa90e)),_0xcc597b['remove'](_0x4aa90e);});});}}function ce(_0x1a5012){if(_0x1a5012['isEmpty'])return!0x0;const _0xb987b5=_0x1a5012[_0x1adc('0x60')](0x0);return _0xb987b5['is'](_0x1adc('0x43'),_0x1adc('0xa5'))&&_0xb987b5[_0x1adc('0x50')];}function fe(_0x4cbc72,_0x174179={},_0x548313){for(const {isAnchor:_0x35ce15,cellHeight:_0x886c96,cellWidth:_0x1f7035}of _0x548313[_0x1adc('0x0')](_0x4cbc72,{'includeAllSlots':!0x0,..._0x174179}))if(!_0x35ce15||0x1!=_0x886c96||0x1!=_0x1f7035)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35c0=['registerCustomCallback','locale','resizeColumnWidths','selection','resizeTable','document','columnWidths','editor','getContainedElement','resizeTableWidth','plugins','handleResizeTableWidthCommand','registerDescriptionCallback','format','getSuggestionCallback','subType','table','discard','commandParams','handleSuggestionDescription','get','getSuggestions','formatBlock','_descriptionFactory','getColumnGroupElement','has','Users','afterInit','_suggestionFactory','getSelectedElement','TrackChangesEditing','*Format:*\x20resize\x20table','model','getAttribute','formatGroupId','enableCommand','accept','bind','tableWidth','getTableColumnsWidths'];(function(_0x316c9a,_0x35c03e){const _0xc2555e=function(_0x2730e6){while(--_0x2730e6){_0x316c9a['push'](_0x316c9a['shift']());}};_0xc2555e(++_0x35c03e);}(_0x35c0,0x133));const _0xc255=function(_0x316c9a,_0x35c03e){_0x316c9a=_0x316c9a-0x0;let _0xc2555e=_0x35c0[_0x316c9a];return _0xc2555e;};import{Plugin as _0x5ba34a}from'ckeditor5/src/core';import{getTranslation as _0x1d9c3a}from'../utils/common-translations';export default class yt extends _0x5ba34a{[_0xc255('0x0')](){if(!this['editor']['plugins'][_0xc255('0x26')]('TableColumnResizeEditing'))return;const _0xfc4b02=this[_0xc255('0x14')][_0xc255('0x17')]['get'](_0xc255('0x3'));_0xfc4b02[_0xc255('0x8')](_0xc255('0x16'),this[_0xc255('0x18')][_0xc255('0xa')](this)),_0xfc4b02[_0xc255('0x8')](_0xc255('0xf'),this[_0xc255('0x18')][_0xc255('0xa')](this)),_0xfc4b02[_0xc255('0x1')]['registerCustomCallback'](_0xc255('0x23'),'resizeTable','accept',_0xfc4b02[_0xc255('0x1')][_0xc255('0x1b')](_0xc255('0x23'),null,'discard')),_0xfc4b02[_0xc255('0x1')][_0xc255('0xd')](_0xc255('0x23'),'resizeTable',_0xc255('0x1e'),_0xfc4b02['_suggestionFactory'][_0xc255('0x1b')](_0xc255('0x23'),null,_0xc255('0x9'))),_0xfc4b02[_0xc255('0x24')][_0xc255('0x19')](this['handleSuggestionDescription']['bind'](this));}[_0xc255('0x18')](_0x8ec2eb,_0x450a77){const _0x5cef14=this['editor'][_0xc255('0x17')][_0xc255('0x21')](_0xc255('0x3')),_0x44ec94=this[_0xc255('0x14')][_0xc255('0x17')][_0xc255('0x21')]('TableColumnResizeEditing'),_0x5d7a5f=_0x450a77[_0xc255('0x1d')]||this[_0xc255('0x14')][_0xc255('0x5')][_0xc255('0x12')][_0xc255('0x10')][_0xc255('0x2')]();this[_0xc255('0x14')]['model']['change'](()=>{const _0x5a2fcd=_0x44ec94[_0xc255('0x25')](_0x5d7a5f);let _0x2379f4=_0x5a2fcd?_0x44ec94[_0xc255('0xc')](_0x5a2fcd):null,_0x24b2e5=_0x5d7a5f[_0xc255('0x6')](_0xc255('0xb'))||null;const _0x51b17d=_0x450a77[_0xc255('0xb')]||_0x24b2e5,_0x5a6ca3=_0x450a77[_0xc255('0x13')]||_0x2379f4,_0xd5f993=this[_0xc255('0x14')][_0xc255('0x17')][_0xc255('0x21')](_0xc255('0x27'))['me'];for(const _0x244306 of _0x5cef14[_0xc255('0x22')]()){const _0x1d5be9=_0x244306[_0xc255('0x15')]();if(_0xc255('0x11')===_0x244306[_0xc255('0x1c')]&&_0x1d5be9===_0x5d7a5f){_0x244306['author']!==_0xd5f993&&_0x244306[_0xc255('0x1e')]();const _0x2a7e29=_0x244306['data'][_0xc255('0x1f')];_0x24b2e5=_0x2a7e29[0x0][_0xc255('0xb')],_0x2379f4=_0x2a7e29[0x0][_0xc255('0x13')];break;}}_0x8ec2eb({'table':_0x5d7a5f,'tableWidth':_0x51b17d,'columnWidths':_0x5a6ca3}),_0x5cef14['markBlockFormat'](_0x5d7a5f,{'commandName':_0xc255('0x16'),'commandParams':[{'tableWidth':_0x24b2e5,'columnWidths':_0x2379f4}],'formatGroupId':_0xc255('0x11')},[],_0xc255('0x11'));});}[_0xc255('0x20')](_0x321557){const {data:_0x3ed257}=_0x321557;if(_0x3ed257&&_0xc255('0x11')===_0x3ed257[_0xc255('0x7')]){const _0x445b90=_0xc255('0x4');return{'type':_0xc255('0x1a'),'content':_0x1d9c3a(this[_0xc255('0x14')][_0xc255('0xe')],_0x445b90)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f94=['getColumnIndexes','headingColumns','name','unbindElementFromMarkerName','parent','_descriptionFactory','registerCustomCallback','createTableWalker','stop','getCellLocation','addClass','consume','ck-suggestion-marker--active','data','commandParams','commands','isBefore','getAttribute','selection','childCount','format','forceValue','createPositionAfter','getRowIndexes','getSelectionAffectedTableCells','writer','getSuggestion','editor','setTableRowHeader','*Format:*\x20%0','_suggestionFactory','cell','highest','formatBlock','enableCommand','ck-suggestion-marker-','removeClass','locale','FORMAT_REGULAR_COLUMN','removeMarker:suggestion','_splitMarkerName','options','value','from','includes','nodeAfter','commandName','removeAttribute','addMarker:suggestion','markerName','headingRows','bindElementToMarker','findAncestor','getChild','editing','markerRange','FORMAT_REGULAR_ROW','last','createPositionBefore','setTableColumnHeader','createRange','data-suggestion','requires','downcastDispatcher','FORMAT_HEADER_COLUMN','_acceptFormatSuggestionCallbackFactory','index','setAttribute','nodeBefore','mapper','markerNameToElements','toViewElement','FORMAT_HEADER_ROW','model','plugins','registerDescriptionCallback','first','start','activeMarkers','get','has','change','document'];(function(_0x2508fc,_0x4f94b5){const _0x23ac46=function(_0xf52e05){while(--_0xf52e05){_0x2508fc['push'](_0x2508fc['shift']());}};_0x23ac46(++_0x4f94b5);}(_0x4f94,0xff));const _0x23ac=function(_0x2508fc,_0x4f94b5){_0x2508fc=_0x2508fc-0x0;let _0x23ac46=_0x4f94[_0x2508fc];return _0x23ac46;};import{Plugin as _0xd45bda}from'ckeditor5/src/core';import _0x4e0331 from'./table';import{getTranslation as _0x28070c}from'../utils/common-translations';export default class kt extends _0xd45bda{static get[_0x23ac('0x38')](){return[_0x4e0331];}['afterInit'](){const _0x32b434=this[_0x23ac('0x15')];if(!_0x32b434['plugins'][_0x23ac('0x4a')]('TableEditing'))return;const _0x190881=_0x32b434[_0x23ac('0x1f')],_0x1254ab=_0x32b434[_0x23ac('0x44')][_0x23ac('0x49')]('TrackChangesEditing'),_0x3aade2=_0x32b434[_0x23ac('0x44')][_0x23ac('0x49')]('TableUtils'),_0x4d0666=_0x32b434[_0x23ac('0x44')][_0x23ac('0x49')](_0x4e0331);function _0x3fbf1a({showActiveMarker:_0xbda73f=!0x0,setDataAttribute:_0x216ad4=!0x0}={}){return(_0xb2a628,_0x35e510,_0xb577df)=>{const {type:_0x25a73b,id:_0x42dc47}=_0x1254ab[_0x23ac('0x22')](_0x35e510[_0x23ac('0x2b')]),_0x43b271=_0x1254ab[_0x23ac('0x14')](_0x42dc47);if(!_0x43b271['data']||_0x23ac('0x35')!=_0x43b271['data'][_0x23ac('0x28')])return;if(_0x35e510['item'])return void _0xb2a628[_0x23ac('0x2')]();if(!_0xb577df['consumable'][_0x23ac('0x5')](_0x35e510[_0x23ac('0x31')],_0xb2a628[_0x23ac('0x4f')]))return;const _0x4224b2=_0x35e510[_0x23ac('0x31')][_0x23ac('0x47')][_0x23ac('0x27')],_0x4379eb=_0x35e510['markerRange']['end'][_0x23ac('0x3e')],_0x144925=_0x4224b2[_0x23ac('0x51')][_0x23ac('0x51')],{column:_0x4040c6}=_0x3aade2[_0x23ac('0x3')](_0x4224b2),{column:_0x2baabc}=_0x3aade2['getCellLocation'](_0x4379eb);for(let _0x3275ce=_0x4040c6;_0x3275ce<=_0x2baabc;_0x3275ce++){const _0x4a088f=_0x3aade2['createTableWalker'](_0x144925,{'column':_0x3275ce,'includeAllSlots':!0x1});for(const _0x5682ed of _0x4a088f){const _0x29b1a9=_0x5682ed[_0x23ac('0x19')],_0xac35f8=_0xb577df[_0x23ac('0x3f')][_0x23ac('0x41')](_0x29b1a9);_0xb577df[_0x23ac('0x13')][_0x23ac('0x4')](_0x23ac('0x1d')+_0x25a73b,_0xac35f8),_0x216ad4&&_0xb577df[_0x23ac('0x13')][_0x23ac('0x3d')](_0x23ac('0x37'),_0x42dc47,_0xac35f8),_0xb577df[_0x23ac('0x3f')][_0x23ac('0x2d')](_0xac35f8,_0x35e510['markerName']),_0xbda73f&&(_0x1254ab[_0x23ac('0x48')][_0x23ac('0x26')](_0x35e510[_0x23ac('0x2b')])?_0xb577df[_0x23ac('0x13')][_0x23ac('0x4')]('ck-suggestion-marker--active',_0xac35f8):_0xb577df['writer'][_0x23ac('0x1e')](_0x23ac('0x6'),_0xac35f8));}}};}_0x1254ab[_0x23ac('0x1c')]('setTableRowHeader',(_0x3c8b22,_0x4e36e4)=>{const _0x26d760=_0x3aade2[_0x23ac('0x12')](_0x32b434[_0x23ac('0x43')][_0x23ac('0x4c')]['selection']),_0x568cd9=_0x3aade2[_0x23ac('0x11')](_0x26d760),_0x505c6b=_0x26d760[0x0][_0x23ac('0x2e')]('table'),_0x5f3d90=_0x505c6b[_0x23ac('0xb')](_0x23ac('0x2c'))||0x0,_0x593d3f=_0x4e36e4&&null!==_0x4e36e4[_0x23ac('0xf')]?_0x4e36e4[_0x23ac('0xf')]:!_0x32b434['commands'][_0x23ac('0x49')](_0x23ac('0x16'))[_0x23ac('0x24')],_0x40b1a9=_0x593d3f?_0x568cd9[_0x23ac('0x33')]:_0x568cd9[_0x23ac('0x46')],_0x220661=_0x505c6b[_0x23ac('0x2f')](_0x40b1a9);let _0x1476fa;if(_0x593d3f){const _0x4e9dc6=_0x505c6b['getChild'](_0x5f3d90);if(_0x220661[_0x23ac('0x3c')]<_0x4e9dc6[_0x23ac('0x3c')])return;_0x1476fa=_0x32b434[_0x23ac('0x43')][_0x23ac('0x36')](_0x32b434[_0x23ac('0x43')][_0x23ac('0x34')](_0x4e9dc6[_0x23ac('0x2f')](0x0)),_0x32b434[_0x23ac('0x43')][_0x23ac('0x10')](_0x220661['getChild'](_0x220661[_0x23ac('0xd')]-0x1)));}else{const _0x520f85=_0x505c6b[_0x23ac('0x2f')](_0x5f3d90-0x1);if(!_0x520f85)return;_0x1476fa=_0x32b434[_0x23ac('0x43')][_0x23ac('0x36')](_0x32b434['model']['createPositionBefore'](_0x220661[_0x23ac('0x2f')](0x0)),_0x32b434[_0x23ac('0x43')]['createPositionAfter'](_0x520f85[_0x23ac('0x2f')](_0x520f85[_0x23ac('0xd')]-0x1)));}_0x32b434[_0x23ac('0x43')][_0x23ac('0x4b')](()=>{_0x1254ab['markBlockFormat'](_0x1476fa,{'commandName':_0x23ac('0x16'),'commandParams':[{'forceValue':_0x593d3f}]},[],_0x23ac('0x16'));});}),_0x1254ab['enableCommand'](_0x23ac('0x35'),(_0x3733f5,_0x56d292)=>{const _0x11edc7=_0x32b434['plugins'][_0x23ac('0x49')]('TableUtils'),_0x30b9d3=_0x11edc7['getSelectionAffectedTableCells'](_0x32b434[_0x23ac('0x43')][_0x23ac('0x4c')][_0x23ac('0xc')]),_0x54a7b8=_0x11edc7[_0x23ac('0x4d')](_0x30b9d3),_0x3130de=_0x30b9d3[0x0]['findAncestor']('table'),_0xb80189=_0x3130de['getAttribute'](_0x23ac('0x4e'))||0x0,_0x4b9b16=_0x56d292&&null!==_0x56d292[_0x23ac('0xf')]?_0x56d292[_0x23ac('0xf')]:!_0x32b434[_0x23ac('0x9')][_0x23ac('0x49')](_0x23ac('0x35'))['value'];let _0x347ab3;const _0x5b8368=_0x3130de[_0x23ac('0x2f')](0x0),_0x5f17a1=_0x4b9b16?_0x54a7b8[_0x23ac('0x33')]:_0x54a7b8[_0x23ac('0x46')],_0x237b27=_0x11edc7[_0x23ac('0x1')](_0x3130de,{'startRow':0x0,'column':_0x5f17a1,'includeAllSlots':!0x1}),_0x3e4e19=Array[_0x23ac('0x25')](_0x237b27)[0x0][_0x23ac('0x19')];if(_0x4b9b16){const _0x5f4c89=_0x5b8368['getChild'](_0xb80189);if(_0x3e4e19[_0x23ac('0xa')](_0x5f4c89))return;_0x347ab3=_0x32b434['model'][_0x23ac('0x36')](_0x32b434[_0x23ac('0x43')][_0x23ac('0x34')](_0x5f4c89),_0x32b434['model'][_0x23ac('0x10')](_0x3e4e19));}else{const _0x19c41d=_0x5b8368['getChild'](_0xb80189-0x1);if(!_0x19c41d)return;_0x347ab3=_0x32b434['model'][_0x23ac('0x36')](_0x32b434['model'][_0x23ac('0x34')](_0x3e4e19),_0x32b434[_0x23ac('0x43')][_0x23ac('0x10')](_0x19c41d));}_0x32b434['model']['change'](()=>{_0x1254ab['markBlockFormat'](_0x347ab3,{'commandName':_0x23ac('0x35'),'commandParams':[{'forceValue':_0x4b9b16}]},[],_0x23ac('0x35'));});}),_0x32b434[_0x23ac('0x30')][_0x23ac('0x39')]['on'](_0x23ac('0x2a'),_0x3fbf1a(),{'priority':_0x23ac('0x1a')}),_0x32b434[_0x23ac('0x7')][_0x23ac('0x39')]['on']('addMarker:suggestion',(_0x5a6832,_0x58634b,_0x446291)=>{_0x446291[_0x23ac('0x23')]['showSuggestionHighlights']&&_0x3fbf1a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5a6832,_0x58634b,_0x446291);},{'priority':_0x23ac('0x1a')}),_0x32b434[_0x23ac('0x30')][_0x23ac('0x39')]['on'](_0x23ac('0x21'),(_0x41f34c,_0x1c2fb1,_0x38323e)=>{const {type:_0x20c268,id:_0x3be928}=_0x1254ab[_0x23ac('0x22')](_0x1c2fb1[_0x23ac('0x2b')]),_0x51ad05=_0x1254ab[_0x23ac('0x14')](_0x3be928);if(!_0x51ad05[_0x23ac('0x7')]||_0x23ac('0x35')!=_0x51ad05['data']['commandName'])return;const _0x38fcc6=_0x38323e['mapper'][_0x23ac('0x40')](_0x1c2fb1[_0x23ac('0x2b')]);if(_0x38fcc6)for(const _0x4e0a7a of _0x38fcc6)_0x38323e[_0x23ac('0x13')][_0x23ac('0x1e')](_0x23ac('0x1d')+_0x20c268,_0x4e0a7a),_0x38323e[_0x23ac('0x13')]['removeClass'](_0x23ac('0x6'),_0x4e0a7a),_0x38323e[_0x23ac('0x13')][_0x23ac('0x29')](_0x23ac('0x37'),_0x4e0a7a),_0x38323e[_0x23ac('0x3f')][_0x23ac('0x50')](_0x4e0a7a,_0x1c2fb1['markerName']);},{'priority':_0x23ac('0x1a')}),_0x1254ab[_0x23ac('0x52')][_0x23ac('0x45')](_0x298d27=>{const {data:_0x3e2f7a}=_0x298d27;if(_0x3e2f7a){if(_0x23ac('0x16')==_0x3e2f7a[_0x23ac('0x28')]){const _0x45f3c0=_0x3e2f7a[_0x23ac('0x8')][0x0][_0x23ac('0xf')];return _0x5dc489(_0x28070c(_0x190881,_0x45f3c0?_0x23ac('0x42'):_0x23ac('0x32')));}if(_0x23ac('0x35')==_0x3e2f7a['commandName']){const _0x4291c2=_0x3e2f7a[_0x23ac('0x8')][0x0][_0x23ac('0xf')];return _0x5dc489(_0x28070c(_0x190881,_0x4291c2?_0x23ac('0x3a'):_0x23ac('0x20')));}}function _0x5dc489(_0x5b9d58){return{'type':_0x23ac('0xe'),'content':_0x28070c(_0x190881,_0x23ac('0x17'),_0x5b9d58)};}});const _0xc21d12=_0x4d0666[_0x23ac('0x3b')]();_0x1254ab[_0x23ac('0x18')][_0x23ac('0x0')]('formatBlock','setTableRowHeader','accept',_0xc21d12),_0x1254ab[_0x23ac('0x18')][_0x23ac('0x0')](_0x23ac('0x1b'),_0x23ac('0x35'),'accept',_0xc21d12);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8a05=['getSelectionAffectedTableCells','commands','_descriptionFactory','mergeTableCellRight','detach','find','containsRange','filter','value','*Split\x20cell:*\x20vertically','length','stop','document','from','subType','setSelection','_suggestionFactory','author','model','low','mergeTableCells','mergeTableCellLeft','map','getAncestors','add','execute','deletion','direction','locale','_isForcedDefaultExecutionBlock','findAncestor','registerCustomCallback','TableEditing','editor','selection','_acceptFormatSuggestionCallbackFactory','getFirstPosition','splitTableCellVertically','createTableWalker','push','getCellLocation','table','formatBlock','registerDescriptionCallback','plugins','mergeTableCellUp','commandName','_areMergableCells','tableCell','get','return','mergeTableCellDown','TrackChangesEditing','cell','isInContent','markMultiRangeBlockFormat','createRangeOn','format','splitTableCellHorizontally','$graveyard','rootName','change','*Merge\x20cells*','element','TableUtils','set:isEnabled','fromRange','size','*Split\x20cell:*\x20horizontally','_areSelectedCellsMergable','getSuggestions','accept','enableCommand','markBlockFormat','type','refresh','horizontally'];(function(_0x49bbc1,_0x8a0554){const _0x4e8e17=function(_0x3305a4){while(--_0x3305a4){_0x49bbc1['push'](_0x49bbc1['shift']());}};_0x4e8e17(++_0x8a0554);}(_0x8a05,0x19a));const _0x4e8e=function(_0x49bbc1,_0x8a0554){_0x49bbc1=_0x49bbc1-0x0;let _0x4e8e17=_0x8a05[_0x49bbc1];return _0x4e8e17;};import{Plugin as _0x5d3dac}from'ckeditor5/src/core';import _0x4aa5e6 from'./table';import{LiveRange as _0x24ac9e}from'ckeditor5/src/engine';import{getTranslation as _0x166682}from'../utils/common-translations';export default class pt extends _0x5d3dac{static get['requires'](){return[_0x4aa5e6];}['afterInit'](){const _0x5c4a4a=this['editor'],_0x142f8c=_0x5c4a4a[_0x4e8e('0x46')]['document'][_0x4e8e('0x9')],_0x53b4bd=_0x5c4a4a[_0x4e8e('0x3')];if(!_0x5c4a4a['plugins']['has'](_0x4e8e('0x7')))return;const _0x34a09a=_0x5c4a4a[_0x4e8e('0x13')][_0x4e8e('0x18')](_0x4e8e('0x1b')),_0x39e069=_0x5c4a4a[_0x4e8e('0x13')][_0x4e8e('0x18')](_0x4e8e('0x27')),_0x591a2f=_0x5c4a4a[_0x4e8e('0x13')][_0x4e8e('0x18')](_0x4aa5e6);_0x591a2f['_tablePostFixingSubtypes'][_0x4e8e('0xe')](_0x4e8e('0x48')),_0x34a09a[_0x4e8e('0x2f')]('mergeTableCells',()=>{const _0x33586f=_0x39e069['getSelectionAffectedTableCells'](_0x5c4a4a[_0x4e8e('0x46')][_0x4e8e('0x40')][_0x4e8e('0x9')]);_0x5c4a4a[_0x4e8e('0x46')][_0x4e8e('0x24')](()=>{_0x34a09a[_0x4e8e('0x1e')](_0x33586f,{'commandName':_0x4e8e('0x48'),'commandParams':[]},[],_0x4e8e('0x48'));});}),_0x5c4a4a['commands'][_0x4e8e('0x18')](_0x4e8e('0x48'))['on']('execute',(_0x37eb7b,_0x3d1640)=>{_0x5c4a4a[_0x4e8e('0x35')][_0x4e8e('0x18')]('trackChanges')[_0x4e8e('0x3c')]&&(_0x3d1640[_0x4e8e('0x3e')]>0x0&&_0x3d1640[_0x3d1640[_0x4e8e('0x3e')]-0x1]&&_0x3d1640[_0x3d1640[_0x4e8e('0x3e')]-0x1]['forceDefaultExecution']||_0x34a09a[_0x4e8e('0x4')]||this[_0x4e8e('0x2c')]()||_0x37eb7b[_0x4e8e('0x3f')]());},{'priority':'highest'});for(const _0x4a11dc of[_0x4e8e('0x14'),_0x4e8e('0x37'),_0x4e8e('0x1a'),'mergeTableCellLeft']){const _0x4754cb=_0x5c4a4a[_0x4e8e('0x35')][_0x4e8e('0x18')](_0x4a11dc);_0x34a09a[_0x4e8e('0x2f')](_0x4a11dc,()=>{const _0x1a58ff=_0x5c4a4a[_0x4e8e('0x46')]['document'][_0x4e8e('0x9')][_0x4e8e('0xb')]()['getAncestors']()['find'](_0x1e6ba7=>_0x1e6ba7['is'](_0x4e8e('0x26'),'tableCell')),_0x28a092=_0x4754cb['value'];_0x5c4a4a[_0x4e8e('0x46')][_0x4e8e('0x24')](()=>{_0x34a09a[_0x4e8e('0x1e')]([_0x1a58ff,_0x28a092],{'commandName':'mergeTableCells','commandParams':[]},[],_0x4e8e('0x48'));});});}for(const _0x5b53f3 of['splitTableCellVertically',_0x4e8e('0x21')]){const _0x32922a=_0x5c4a4a[_0x4e8e('0x35')]['get'](_0x5b53f3);_0x34a09a[_0x4e8e('0x2f')](_0x5b53f3,()=>{const _0x464cbf=_0x39e069[_0x4e8e('0x34')](_0x5c4a4a['model'][_0x4e8e('0x40')]['selection'])[0x0],_0x3edcdd=_0x464cbf[_0x4e8e('0x5')](_0x4e8e('0x10')),{column:_0xf3ebc3,row:_0x180a8b}=_0x39e069[_0x4e8e('0xf')](_0x464cbf);let _0x3af1dd=[];if(_0x4e8e('0x33')==_0x32922a[_0x4e8e('0x2')]){const _0x1bbcf9=_0x39e069['createTableWalker'](_0x3edcdd,{'startRow':_0x180a8b,'endRow':_0x180a8b,'includeAllSlots':!0x0});_0x3af1dd=Array[_0x4e8e('0x41')](_0x1bbcf9)[_0x4e8e('0x4a')](_0x380216=>_0x380216[_0x4e8e('0x1c')]);}else{const _0xd0794e=_0x39e069[_0x4e8e('0xd')](_0x3edcdd,{'column':_0xf3ebc3,'includeAllSlots':!0x0});_0x3af1dd=Array[_0x4e8e('0x41')](_0xd0794e)['map'](_0x2d0fd0=>_0x2d0fd0[_0x4e8e('0x1c')]);}_0x5c4a4a[_0x4e8e('0x46')]['change'](_0x1e4a3a=>{_0x34a09a[_0x4e8e('0x30')](_0x1e4a3a[_0x4e8e('0x1f')](_0x464cbf),{'commandName':_0x5b53f3,'commandParams':[]},_0x3af1dd,_0x5b53f3);});});}_0x34a09a[_0x4e8e('0x36')][_0x4e8e('0x12')](_0x2c1027=>{const {data:_0x3a2fa9}=_0x2c1027;if(_0x3a2fa9)return _0x4e8e('0x48')==_0x3a2fa9[_0x4e8e('0x15')]?{'type':_0x4e8e('0x20'),'content':_0x166682(_0x53b4bd,_0x4e8e('0x25'))}:void 0x0;}),_0x34a09a[_0x4e8e('0x36')][_0x4e8e('0x12')](_0x12e28b=>{const {data:_0x2e2697}=_0x12e28b;if(_0x2e2697)return _0x4e8e('0xc')==_0x2e2697[_0x4e8e('0x15')]?{'type':_0x4e8e('0x20'),'content':_0x166682(_0x53b4bd,_0x4e8e('0x3d'))}:_0x4e8e('0x21')==_0x2e2697[_0x4e8e('0x15')]?{'type':_0x4e8e('0x20'),'content':_0x166682(_0x53b4bd,_0x4e8e('0x2b'))}:void 0x0;});const _0x489b84=_0x591a2f[_0x4e8e('0xa')]();for(const _0x459df2 of[_0x4e8e('0x14'),_0x4e8e('0x37'),_0x4e8e('0x1a'),_0x4e8e('0x49')])_0x34a09a[_0x4e8e('0x44')][_0x4e8e('0x6')](_0x4e8e('0x11'),_0x459df2,_0x4e8e('0x2e'),_0x489b84);for(const _0x408f40 of[_0x4e8e('0xc'),_0x4e8e('0x21')])_0x34a09a['_suggestionFactory'][_0x4e8e('0x6')](_0x4e8e('0x11'),_0x408f40,_0x4e8e('0x2e'),_0x489b84);_0x34a09a[_0x4e8e('0x44')][_0x4e8e('0x6')](_0x4e8e('0x11'),_0x4e8e('0x48'),'accept',_0x36c303=>{_0x5c4a4a[_0x4e8e('0x46')][_0x4e8e('0x24')](_0x5a79e8=>{const _0x267333=Array[_0x4e8e('0x41')](_0x142f8c['getRanges']())['map'](_0x3fa7b1=>_0x24ac9e[_0x4e8e('0x29')](_0x3fa7b1));_0x5a79e8[_0x4e8e('0x43')](_0x36c303),_0x5c4a4a[_0x4e8e('0x35')][_0x4e8e('0x18')]('mergeTableCells')[_0x4e8e('0x32')](),_0x5c4a4a[_0x4e8e('0x0')](_0x4e8e('0x48'),{'forceDefaultExecution':!0x0});const _0x43d1b1=_0x267333[_0x4e8e('0x3b')](_0x453be2=>_0x4e8e('0x22')!=_0x453be2['root'][_0x4e8e('0x23')]);_0x43d1b1[_0x4e8e('0x3e')]>0x0&&_0x5a79e8[_0x4e8e('0x43')](_0x43d1b1);for(const _0x337223 of _0x267333)_0x337223[_0x4e8e('0x38')]();});});for(const _0x3230db of[_0x4e8e('0x14'),'mergeTableCellDown',_0x4e8e('0x49'),_0x4e8e('0x37')]){const _0x52a009=_0x5c4a4a[_0x4e8e('0x35')][_0x4e8e('0x18')](_0x3230db);_0x52a009['on'](_0x4e8e('0x28'),(_0x2e03df,_0x265089,_0x35fd1f)=>{if(_0x35fd1f){const _0x14e9c5=_0x5c4a4a['model']['document'][_0x4e8e('0x9')][_0x4e8e('0xb')]()[_0x4e8e('0x4b')]()[_0x4e8e('0x39')](_0x2ecdf1=>_0x2ecdf1['is'](_0x4e8e('0x26'),_0x4e8e('0x17')));this[_0x4e8e('0x16')](_0x52a009[_0x4e8e('0x3c')],_0x14e9c5)||(_0x2e03df[_0x4e8e('0x19')]=!0x1,_0x2e03df[_0x4e8e('0x3f')]());}},{'priority':_0x4e8e('0x47')});}}[_0x4e8e('0x2c')](){const _0x5e7a31=this[_0x4e8e('0x8')]['commands']['get'](_0x4e8e('0x48')),_0x4cb52c=this[_0x4e8e('0x8')][_0x4e8e('0x13')]['get'](_0x4e8e('0x27'));if(!_0x5e7a31['isEnabled'])return!0x1;const _0xebb7ce=_0x4cb52c['getSelectionAffectedTableCells'](this[_0x4e8e('0x8')][_0x4e8e('0x46')][_0x4e8e('0x40')]['selection']);for(const _0x52cdc4 of _0xebb7ce)for(const _0x31a2a5 of _0xebb7ce)if(_0x52cdc4!=_0x31a2a5&&!this[_0x4e8e('0x16')](_0x52cdc4,_0x31a2a5))return!0x1;return!0x0;}[_0x4e8e('0x16')](_0xb6409,_0x32cc9b){const _0x57369b=this[_0x4e8e('0x8')][_0x4e8e('0x13')]['get']('TrackChangesEditing'),_0x37e1b9=this[_0x4e8e('0x8')][_0x4e8e('0x46')][_0x4e8e('0x1f')](_0xb6409),_0x39395f=this['editor'][_0x4e8e('0x46')]['createRangeOn'](_0x32cc9b),_0x1c73c6=new Set(),_0x2ce7eb=new Set();for(const _0x4526f3 of _0x57369b[_0x4e8e('0x2d')]())if(('insertion'==_0x4526f3[_0x4e8e('0x31')]||_0x4e8e('0x1')==_0x4526f3[_0x4e8e('0x31')]||_0x4e8e('0x48')==_0x4526f3[_0x4e8e('0x42')])&&_0x4526f3[_0x4e8e('0x1d')])for(const _0x9093e of _0x4526f3['getRanges']())_0x9093e[_0x4e8e('0x3a')](_0x37e1b9,!0x0)&&_0x1c73c6[_0x4e8e('0x4c')](_0x4526f3[_0x4e8e('0x31')]+':'+_0x4526f3[_0x4e8e('0x45')]['id']),_0x9093e[_0x4e8e('0x3a')](_0x39395f,!0x0)&&_0x2ce7eb['add'](_0x4526f3[_0x4e8e('0x31')]+':'+_0x4526f3[_0x4e8e('0x45')]['id']);if(_0x1c73c6[_0x4e8e('0x2a')]!=_0x2ce7eb[_0x4e8e('0x2a')])return!0x1;for(const _0x1184af of _0x1c73c6)if(!_0x2ce7eb['has'](_0x1184af))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x186d=['_descriptionFactory','insertTableOfContents','locale','registerElementLabel','tableOfContents','get','commands','TrackChangesEditing','ELEMENT_TABLE_OF_CONTENTS','editor','enableCommand','plugins'];(function(_0x3f572f,_0x186d1a){const _0x3142c6=function(_0x5e8093){while(--_0x5e8093){_0x3f572f['push'](_0x3f572f['shift']());}};_0x3142c6(++_0x186d1a);}(_0x186d,0x16e));const _0x3142=function(_0x3f572f,_0x186d1a){_0x3f572f=_0x3f572f-0x0;let _0x3142c6=_0x186d[_0x3f572f];return _0x3142c6;};import{Plugin as _0x3abad2}from'ckeditor5/src/core';import{getTranslation as _0x55cb70}from'../utils/common-translations';export default class St extends _0x3abad2{['afterInit'](){const _0xf2406b=this[_0x3142('0x3')];if(!_0xf2406b[_0x3142('0x0')]['get'](_0x3142('0x7')))return;_0xf2406b[_0x3142('0x5')][_0x3142('0xb')]('TrackChangesEditing')[_0x3142('0x4')]('insertTableOfContents');const _0x1bca7d=_0xf2406b[_0x3142('0x5')][_0x3142('0xb')](_0x3142('0x1')),_0x3caac5=_0xf2406b[_0x3142('0x8')];_0x1bca7d[_0x3142('0x6')][_0x3142('0x9')](_0x3142('0xa'),_0x78bc74=>_0x55cb70(_0x3caac5,_0x3142('0x2'),_0x78bc74));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ae3=['tableCellBorderColor','tableAlignment','getSuggestionCallback','tableCellProperties','tableBackgroundColor','enableCommand','registerDescriptionCallback','table','model','editor','plugins','get','getContainedElement','enqueueChange','discard','tableHeight','tableCellBackgroundColor','tableBorderColor','handleSuggestionDescription','start','has','tableBorderWidth','locale','data','tableCellBorderWidth','document','accept','join','TrackChangesEditing','afterInit','commandParams','tableCellVerticalAlignment','getAttribute','TableCellPropertiesEditing','formatBlock','tableCellWidth','pluginName','tableBorderStyle','_suggestionFactory','selection','tableCellHorizontalAlignment','removeAttribute','TableUtils','getSelectionAffectedTableCells','subType','tableProperties','registerCustomCallback','_getSuggestion','getSuggestions','findAncestor','format','TrackChangesTableProperties','change','*Format:*\x20change\x20table\x20cell\x20properties','tableWidth','setAttribute'];(function(_0x39ed68,_0x5ae347){const _0xfc8ec2=function(_0x2a385a){while(--_0x2a385a){_0x39ed68['push'](_0x39ed68['shift']());}};_0xfc8ec2(++_0x5ae347);}(_0x5ae3,0x157));const _0xfc8e=function(_0x39ed68,_0x5ae347){_0x39ed68=_0x39ed68-0x0;let _0xfc8ec2=_0x5ae3[_0x39ed68];return _0xfc8ec2;};import{Plugin as _0x1356e6}from'ckeditor5/src/core';import{getTranslation as _0x578340}from'../utils/common-translations';export default class Dt extends _0x1356e6{constructor(_0x545f68){super(_0x545f68),this[_0xfc8e('0x26')]=[_0xfc8e('0xa'),_0xfc8e('0x1e'),_0xfc8e('0xe'),_0xfc8e('0x32'),_0xfc8e('0x2f'),_0xfc8e('0x8'),_0xfc8e('0x35')],this[_0xfc8e('0x34')]=[_0xfc8e('0x31'),'tableCellBorderStyle',_0xfc8e('0x11'),'tableCellPadding',_0xfc8e('0x1c'),'tableCellHeight',_0xfc8e('0x9'),_0xfc8e('0x21'),_0xfc8e('0x18')];}static get[_0xfc8e('0x1d')](){return _0xfc8e('0x2c');}[_0xfc8e('0x16')](){const _0x172059=this[_0xfc8e('0x2')][_0xfc8e('0x3')]['get'](_0xfc8e('0x15'));if(this[_0xfc8e('0x2')][_0xfc8e('0x3')][_0xfc8e('0xd')]('TablePropertiesEditing')){for(const _0x34fabf of this[_0xfc8e('0x26')])_0x172059['enableCommand'](_0x34fabf,(_0x16c4e0,_0x42da81)=>{const _0x399b9a=this[_0xfc8e('0x2')][_0xfc8e('0x1')][_0xfc8e('0x12')][_0xfc8e('0x20')]['getFirstPosition']()[_0xfc8e('0x2a')](_0xfc8e('0x0'));this['_handlePropertyChange'](_0x34fabf,[_0x399b9a],this[_0xfc8e('0x26')],_0xfc8e('0x26'),_0x16c4e0,_0x42da81);});_0x172059[_0xfc8e('0x1f')][_0xfc8e('0x27')](_0xfc8e('0x1b'),_0xfc8e('0x26'),_0xfc8e('0x13'),_0x172059[_0xfc8e('0x1f')][_0xfc8e('0x33')](_0xfc8e('0x1b'),null,_0xfc8e('0x7'))),_0x172059[_0xfc8e('0x1f')][_0xfc8e('0x27')](_0xfc8e('0x1b'),_0xfc8e('0x26'),'discard',(_0x4d7bc1,_0x4c7c1d)=>this['handleDiscardAction'](this[_0xfc8e('0x26')],_0x4d7bc1,_0x4c7c1d)),_0x172059[_0xfc8e('0x1f')]['registerCustomCallback'](_0xfc8e('0x1b'),_0xfc8e('0x26'),'join',()=>!0x1);}if(this['editor'][_0xfc8e('0x3')]['has'](_0xfc8e('0x1a'))){for(const _0x319e2a of this[_0xfc8e('0x34')])_0x172059[_0xfc8e('0x36')](_0x319e2a,(_0xf8c85d,_0x527b19)=>{const _0x5f4c1c=this[_0xfc8e('0x2')][_0xfc8e('0x3')][_0xfc8e('0x4')](_0xfc8e('0x23'))[_0xfc8e('0x24')](this[_0xfc8e('0x2')]['model'][_0xfc8e('0x12')]['selection']);this['_handlePropertyChange'](_0x319e2a,_0x5f4c1c,this[_0xfc8e('0x34')],_0xfc8e('0x34'),_0xf8c85d,_0x527b19);});_0x172059[_0xfc8e('0x1f')][_0xfc8e('0x27')]('formatBlock',_0xfc8e('0x34'),_0xfc8e('0x13'),_0x172059[_0xfc8e('0x1f')][_0xfc8e('0x33')](_0xfc8e('0x1b'),null,_0xfc8e('0x7'))),_0x172059[_0xfc8e('0x1f')][_0xfc8e('0x27')]('formatBlock',_0xfc8e('0x34'),'discard',(_0xdaa04e,_0x22cd12)=>this['handleDiscardAction'](this[_0xfc8e('0x34')],_0xdaa04e,_0x22cd12)),_0x172059['_suggestionFactory'][_0xfc8e('0x27')]('formatBlock',_0xfc8e('0x34'),_0xfc8e('0x14'),()=>!0x1);}_0x172059['_descriptionFactory'][_0xfc8e('0x37')](_0x264f3c=>this[_0xfc8e('0xb')](_0x264f3c));}['_handlePropertyChange'](_0x5577d9,_0x3f24ac,_0x3e8987,_0x2f627d,_0x24194b,_0x5a57cf){const _0x2a265a=this['editor']['plugins'][_0xfc8e('0x4')](_0xfc8e('0x15'));this['editor']['model'][_0xfc8e('0x6')](_0x5a57cf['batch'],()=>{for(const _0x246a98 of _0x3f24ac){if(this[_0xfc8e('0x28')](_0x246a98,_0x2f627d))_0x24194b(_0x5a57cf);else{const _0x4b2b98={};for(const _0x21a590 of _0x3e8987){const _0x190a37=_0x246a98[_0xfc8e('0x19')](_0x21a590);void 0x0!==_0x190a37&&(_0x4b2b98[_0x21a590]=_0x190a37);}_0x24194b(_0x5a57cf),_0x2a265a['markBlockFormat'](_0x246a98,{'commandParams':[_0x4b2b98]},[],_0x2f627d);}}});}['handleDiscardAction'](_0x130c66,_0x77b037,_0x422ce4){const _0x5ced36=_0x77b037[0x0][_0xfc8e('0xc')]['nodeAfter'],_0x33ffba=_0x422ce4[_0xfc8e('0x17')][0x0];this[_0xfc8e('0x2')][_0xfc8e('0x1')][_0xfc8e('0x2d')](_0xb13c99=>{for(const _0x30ce99 of _0x130c66)void 0x0!==_0x33ffba[_0x30ce99]?_0xb13c99[_0xfc8e('0x30')](_0x30ce99,_0x33ffba[_0x30ce99],_0x5ced36):_0xb13c99[_0xfc8e('0x22')](_0x30ce99,_0x5ced36);});}['handleSuggestionDescription'](_0x4990d4){if(_0x4990d4[_0xfc8e('0x10')])switch(_0x4990d4[_0xfc8e('0x25')]){case _0xfc8e('0x26'):return{'type':_0xfc8e('0x2b'),'content':_0x578340(this[_0xfc8e('0x2')][_0xfc8e('0xf')],'*Format:*\x20change\x20table\x20properties')};case _0xfc8e('0x34'):return{'type':_0xfc8e('0x2b'),'content':_0x578340(this['editor'][_0xfc8e('0xf')],_0xfc8e('0x2e'))};}}['_getSuggestion'](_0x49a5db,_0x5b1ec0){const _0x44d8f9=this['editor'][_0xfc8e('0x3')][_0xfc8e('0x4')](_0xfc8e('0x15'));for(const _0x26f643 of _0x44d8f9[_0xfc8e('0x29')]({'skipNotAttached':!0x0})){const _0x212a3f=_0x26f643[_0xfc8e('0x5')]();if(_0x26f643[_0xfc8e('0x25')]===_0x5b1ec0&&_0x212a3f===_0x49a5db)return _0x26f643;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5019=['afterInit','has','plugins','TrackChangesEditing','enableCommand','get','editor','insertTemplate'];(function(_0x19743b,_0x501979){const _0x211720=function(_0x15cd40){while(--_0x15cd40){_0x19743b['push'](_0x19743b['shift']());}};_0x211720(++_0x501979);}(_0x5019,0xce));const _0x2117=function(_0x19743b,_0x501979){_0x19743b=_0x19743b-0x0;let _0x211720=_0x5019[_0x19743b];return _0x211720;};import{Plugin as _0x5144ae}from'ckeditor5/src/core';export default class bt extends _0x5144ae{[_0x2117('0x2')](){const _0x3156b0=this[_0x2117('0x0')];_0x3156b0[_0x2117('0x4')][_0x2117('0x3')]('Template')&&_0x3156b0[_0x2117('0x4')][_0x2117('0x7')](_0x2117('0x5'))[_0x2117('0x6')](_0x2117('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5034=['updateMarker','isTouching','suggestion','start','registerElementLabel','isEqual','Title','plugins','_splitMarkerName','end','_descriptionFactory','title-content','schema','removeMarker','TrackChangesEditing','nodeBefore','from','model','forward','ELEMENT_TITLE','editor','locale','differ','document','has','element','get','afterInit'];(function(_0x49bb2f,_0x5034fe){const _0x127ae3=function(_0x2f8a89){while(--_0x2f8a89){_0x49bb2f['push'](_0x49bb2f['shift']());}};_0x127ae3(++_0x5034fe);}(_0x5034,0x19a));const _0x127a=function(_0x49bb2f,_0x5034fe){_0x49bb2f=_0x49bb2f-0x0;let _0x127ae3=_0x5034[_0x49bb2f];return _0x127ae3;};import{Plugin as _0x4afe0c}from'ckeditor5/src/core';import{getTranslation as _0x1d60c1}from'../utils/common-translations';export default class It extends _0x4afe0c{[_0x127a('0x9')](){const _0x58a548=this[_0x127a('0x2')];if(!_0x58a548[_0x127a('0x11')][_0x127a('0x6')](_0x127a('0x10')))return;const _0x1d25e5=_0x58a548[_0x127a('0x11')][_0x127a('0x8')](_0x127a('0x18'));_0x1d25e5[_0x127a('0x14')][_0x127a('0xe')](_0x127a('0x15'),()=>_0x1d60c1(_0x58a548[_0x127a('0x3')],_0x127a('0x1'))),_0x58a548[_0x127a('0x1b')][_0x127a('0x5')]['registerPostFixer'](_0x2387b3=>{let _0x2687d0=!0x1;const _0x1f61c2=Array[_0x127a('0x1a')](_0x58a548['model'][_0x127a('0x5')][_0x127a('0x4')]['getChangedMarkers']());for(const {name:_0x5aebb7,data:_0x29a2c1}of _0x1f61c2){const {group:_0x2856e6}=_0x1d25e5[_0x127a('0x12')](_0x5aebb7);if(_0x127a('0xc')!==_0x2856e6||!_0x29a2c1['newRange'])continue;const _0x209187=_0x29a2c1['newRange'],_0x334625=_0x209187[_0x127a('0x13')][_0x127a('0x19')];if(!_0x334625||!_0x334625['is'](_0x127a('0x7'),_0x127a('0x15')))continue;if(!_0x209187[_0x127a('0xd')][_0x127a('0xb')](_0x209187[_0x127a('0x13')]))continue;const _0x1e0e28=_0x58a548[_0x127a('0x1b')][_0x127a('0x16')]['getNearestSelectionRange'](_0x209187[_0x127a('0x13')],_0x127a('0x0'));if(_0x1e0e28&&_0x1e0e28['isCollapsed']){const _0x1d99ed=_0x2387b3['createRange'](_0x209187['start'],_0x1e0e28[_0x127a('0xd')]);_0x1d99ed[_0x127a('0xf')](_0x209187)||(_0x2387b3[_0x127a('0xa')](_0x5aebb7,{'range':_0x1d99ed}),_0x2687d0=!0x0);}_0x2687d0||(_0x2387b3[_0x127a('0x17')](_0x5aebb7),_0x2687d0=!0x0);}return _0x2687d0;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34f0=['editor','UndoEditing','enableCommand','undo','redo','has','TrackChangesEditing','get','plugins'];(function(_0x1969ca,_0x34f0e2){const _0x360d50=function(_0x4a795f){while(--_0x4a795f){_0x1969ca['push'](_0x1969ca['shift']());}};_0x360d50(++_0x34f0e2);}(_0x34f0,0xce));const _0x360d=function(_0x1969ca,_0x34f0e2){_0x1969ca=_0x1969ca-0x0;let _0x360d50=_0x34f0[_0x1969ca];return _0x360d50;};import{Plugin as _0x56981f}from'ckeditor5/src/core';export default class vt extends _0x56981f{['afterInit'](){const _0x283fa7=this[_0x360d('0x1')],_0x8ecdfa=_0x283fa7[_0x360d('0x0')][_0x360d('0x8')](_0x360d('0x7'));_0x283fa7[_0x360d('0x0')][_0x360d('0x6')](_0x360d('0x2'))&&(_0x8ecdfa[_0x360d('0x3')](_0x360d('0x4')),_0x8ecdfa[_0x360d('0x3')](_0x360d('0x5')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x525d=['isBlock','getItems','nextSibling','createRangeOn','getAttribute','push','toViewPosition','TrackChangesEditing','mapper','element','activeMarkers','item','markerRange','markerName','consumable','hasAttribute','getWalker','get','includes','listIndent','schema','writer','test','plugins','ck-suggestion-marker-','previousPosition','addHighlight','model','addClass','listItem','span','elementEnd','isContent','ck-suggestion-marker--active','name','bindElementToMarker','toViewElement'];(function(_0x31cb73,_0x525d3f){const _0x5dd70e=function(_0xb2da17){while(--_0xb2da17){_0x31cb73['push'](_0x31cb73['shift']());}};_0x5dd70e(++_0x525d3f);}(_0x525d,0x135));const _0x5dd7=function(_0x31cb73,_0x525d3f){_0x31cb73=_0x31cb73-0x0;let _0x5dd70e=_0x525d[_0x31cb73];return _0x5dd70e;};export function getRangesWithAttribute(_0x4e6bc7,_0x423dc2,_0xd74bfb){const _0x1ceccd=[];for(const _0x473cab of _0x423dc2[_0x5dd7('0x19')]())_0x473cab[_0x5dd7('0x2')](_0x4e6bc7)&&_0x1ceccd[_0x5dd7('0x1d')](_0xd74bfb[_0x5dd7('0x1b')](_0x473cab));return _0x1ceccd;}export function getElementsAffectedByListItemRename(_0x456fb7){const _0x24ddad=[];if(_0x456fb7['is'](_0x5dd7('0x21'),_0x5dd7('0x10'))){let _0x39cffa=_0x456fb7['nextSibling'];for(;_0x39cffa&&_0x39cffa['is'](_0x5dd7('0x21'),_0x5dd7('0x10'))&&_0x39cffa[_0x5dd7('0x1c')](_0x5dd7('0x6'))>0x0;)_0x24ddad[_0x5dd7('0x1d')](_0x39cffa),_0x39cffa=_0x39cffa[_0x5dd7('0x1a')];}return _0x24ddad;}export function downcastSplitMergeMarker(_0x2f84ac,_0x44066d,{showActiveMarker:_0x3f0d96=!0x0}={}){const _0x328273=_0x2f84ac[_0x5dd7('0xa')][_0x5dd7('0x4')](_0x5dd7('0x1f'));return(_0x82154d,_0x397ed8,_0x268875)=>{if(!_0x268875[_0x5dd7('0x1')][_0x5dd7('0x9')](_0x397ed8[_0x5dd7('0x24')],_0x82154d[_0x5dd7('0x15')]))return;const _0x4179fc=_0x397ed8[_0x5dd7('0x24')][_0x5dd7('0x3')](),_0x462c86=_0x397ed8[_0x5dd7('0x24')]['start'],_0x260091=_0x2f84ac[_0x5dd7('0xe')][_0x5dd7('0x7')];let _0x4dd410=null,_0x61a813=null,_0x34458f=!0x1,_0x4caf7d=!0x1;for(const _0x3798d1 of _0x4179fc){const _0x424c2b=_0x3798d1[_0x5dd7('0x23')];_0x34458f=_0x34458f||_0x260091[_0x5dd7('0x13')](_0x424c2b);const _0x545f0e=_0x268875[_0x5dd7('0x20')][_0x5dd7('0x17')](_0x424c2b);if(_0x545f0e&&_0x545f0e['getCustomProperty'](_0x5dd7('0xd')))return;_0x5dd7('0x12')==_0x3798d1['type']&&(_0x260091[_0x5dd7('0x18')](_0x424c2b)&&!_0x260091['isLimit'](_0x424c2b)&&(_0x424c2b['nextSibling']||_0x462c86['isAtEnd']?_0x4dd410&&_0x4dd410['parent']==_0x424c2b||(_0x4dd410=_0x424c2b,_0x2d099c(_0x3798d1['previousPosition']),_0x4caf7d=!0x0):_0x61a813=_0x61a813||_0x3798d1[_0x5dd7('0xc')]));}function _0x2d099c(_0x2a9be8){const _0x2b7125=_0x268875[_0x5dd7('0x8')]['createUIElement'](_0x5dd7('0x11'),{'class':_0x5dd7('0xb')+_0x44066d}),_0x1bd348=_0x268875[_0x5dd7('0x20')][_0x5dd7('0x1e')](_0x2a9be8);_0x3f0d96&&_0x328273[_0x5dd7('0x22')][_0x5dd7('0x5')](_0x397ed8[_0x5dd7('0x0')])&&_0x268875[_0x5dd7('0x8')][_0x5dd7('0xf')](_0x5dd7('0x14'),_0x2b7125),_0x268875[_0x5dd7('0x8')]['insert'](_0x1bd348,_0x2b7125),_0x268875[_0x5dd7('0x20')][_0x5dd7('0x16')](_0x2b7125,_0x397ed8[_0x5dd7('0x0')]);}_0x34458f||_0x4caf7d||!_0x61a813||_0x2d099c(_0x61a813);};}
|