@ckeditor/ckeditor5-track-changes 38.0.0-rc.1 → 38.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +2 -2
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x23d5=['markers','tableCell','removeMarker','_isForcedDefaultExecutionBlock','markMultiRangeInsertion','isEqual','$graveyard','newRange','editingDowncast','locale','markerAttributes','getColumnIndexes','tableCellVerticalAlignment','getAttributes','markerName','differ','move','ck-suggestion-marker','tableCellBorderStyle','columns','rowInsertionIndexes','remove','stop','batch','attributes','clipboardOutput','options','removeMarkers','elementToElement','createElement','getChildren','findAncestor','tableCellBorderColor','getShiftedBy','plugins','has','containsRange','map','first','fill','name','getItems','tablePasteChainId','_replaceTableSlotCell','content','getTableIfOnlyTableInContent','keys','afterInit','hasSuggestion','includes','getSelectionAffectedTableCells','dataDowncast','getContainedElement','forceDefaultExecution','removeColumns','columnInsertionIndexes','insertColumns','column','registerPostFixer','tableCellPadding','element','high','requires','author','_splitMarkerName','suggestion','filter','tablePasteRow','redo','reduce','last','_tablePostFixingSubtypes','_createdBatches','model','columnInsertionRanges','tablePasteColumn','from','formatBlock','commands','insertion','TableClipboard','getAllAdjacentSuggestions','setAttributes','cells','get','cell','createRangeIn','set','every','selection','Users','isInContent','wrap','join','find','insert','accept','registerDescriptionCallback','deletion','deletionRanges','unwrap','ck-suggestion-marker--active','ck-suggestion-marker-insertion','endRow','activeMarkers','add','startsWith','createRange','suggestion-td','subType','setAttribute','root','removeRows','createPositionBefore','insertionRanges','_suggestionFactory','for','table','createTableWalker','editing','conversion','getSuggestions','registerCustomCallback','low','markMultiRangeBlockFormat','isEmpty','type','entries','getChanges','return','tablePaste','length','getChild','end','tablePasteCell','getRange','change','getMarkers','createRangeOn','tableCellSuggestion','rows','TrackChangesEditing','_getCoordsForCells','suggestionUnloaded','previous','getSuggestion','getSuggestionCallback','getColumns','fromEntries','documentSelection','start','discard','push','oldRange','getChangedMarkers','editor','previousSibling','getRanges','markMultiRangeDeletion','position','suggestion:formatBlock:tablePasteCell','document','rowInsertionRanges','nodeAfter','markerToHighlight','view','register','row','insertContent','suggestionLoaded','endColumn'];(function(_0x52c97e,_0x23d5e5){const _0x41e162=function(_0x1a4131){while(--_0x1a4131){_0x52c97e['push'](_0x52c97e['shift']());}};_0x41e162(++_0x23d5e5);}(_0x23d5,0x1c0));const _0x41e1=function(_0x52c97e,_0x23d5e5){_0x52c97e=_0x52c97e-0x0;let _0x41e162=_0x23d5[_0x52c97e];return _0x41e162;};import{getTranslation as _0x37257a}from'../utils/common-translations';import{Plugin as _0x5b8d58}from'ckeditor5/src/core';import{uid as _0x1081c5,priorities as _0x908dc0}from'ckeditor5/src/utils';import _0x398a19 from'./table';const le=['tableCellBorderWidth',_0x41e1('0x61'),_0x41e1('0x53'),'tableCellHorizontalAlignment',_0x41e1('0x4d'),'tableCellBackgroundColor',_0x41e1('0x7c')],ae=Object[_0x41e1('0x2a')](le['map'](_0x254d3f=>[_0x254d3f,null]));export default class kt extends _0x5b8d58{static get[_0x41e1('0x7f')](){return[_0x398a19];}[_0x41e1('0x70')](){const _0x62ea88=this[_0x41e1('0x31')];if(!_0x62ea88[_0x41e1('0x63')][_0x41e1('0x64')](_0x41e1('0x91')))return;const _0x44202d=_0x62ea88[_0x41e1('0x63')][_0x41e1('0x95')](_0x41e1('0x23')),_0xaa3da9=_0x62ea88[_0x41e1('0x63')][_0x41e1('0x95')]('TableUtils'),_0x400784=_0x62ea88[_0x41e1('0x63')]['get'](_0x398a19),_0x2ac116=_0x62ea88['plugins'][_0x41e1('0x95')](_0x41e1('0x91'));_0x400784[_0x41e1('0x88')]['push'](_0x41e1('0x84'),_0x41e1('0x8c')),_0x62ea88[_0x41e1('0x8a')]['schema'][_0x41e1('0x3c')](_0x41e1('0x21'),{'allowIn':'tableCell','allowContentOf':_0x41e1('0x42'),'isLimit':!0x0}),_0x62ea88[_0x41e1('0xe')][_0x41e1('0x5d')]({'model':_0x41e1('0x21'),'view':_0x41e1('0x2')});let _0x1e8b12=null;_0x62ea88[_0x41e1('0x8a')]['on']('insertContent',(_0x10887c,_0x2c641d)=>{const [_0x338afe,_0x29e0d2]=_0x2c641d,_0x1c6bf3=_0x2c641d[_0x2c641d[_0x41e1('0x19')]-0x1];_0x1c6bf3&&_0x1c6bf3[_0x41e1('0x76')]||_0x44202d[_0x41e1('0x44')]||this[_0x41e1('0x31')][_0x41e1('0x8f')]['get']('trackChanges')['value']&&function(_0x1109e9,_0x18f984,_0x505992,_0x40d4d1,_0x20bb49){if(_0x18f984&&!_0x18f984['is'](_0x41e1('0x2b')))return!0x1;const _0x1b67f5=_0x20bb49[_0x41e1('0x6e')](_0x1109e9,_0x505992);if(!_0x1b67f5||!fe(_0x1b67f5,void 0x0,_0x40d4d1))return!0x1;const _0x5457d2=_0x40d4d1[_0x41e1('0x73')](_0x505992[_0x41e1('0x37')][_0x41e1('0x9a')]);if(!_0x5457d2[_0x41e1('0x19')])return!0x1;const _0x7d6fa6=_0x5457d2[0x0]['findAncestor'](_0x41e1('0xb')),_0x189861=_0x40d4d1['getRowIndexes'](_0x5457d2),_0xe13088=_0x40d4d1[_0x41e1('0x4c')](_0x5457d2),_0x382514={'startRow':_0x189861[_0x41e1('0x67')],'endRow':_0x189861[_0x41e1('0x87')],'startColumn':_0xe13088['first'],'endColumn':_0xe13088['last']};return 0x1==_0x5457d2[_0x41e1('0x19')]&&(_0x382514[_0x41e1('0xa8')]+=_0x40d4d1['getRows'](_0x1b67f5)-0x1,_0x382514[_0x41e1('0x40')]+=_0x40d4d1[_0x41e1('0x29')](_0x1b67f5)-0x1),fe(_0x7d6fa6,_0x382514,_0x40d4d1);}(_0x338afe,_0x29e0d2,_0x62ea88[_0x41e1('0x8a')],_0xaa3da9,_0x2ac116)&&(_0x10887c['stop'](),_0x1e8b12={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x62ea88[_0x41e1('0x8a')]['change'](()=>{_0x62ea88[_0x41e1('0x8a')][_0x41e1('0x3e')](_0x2c641d[0x0],_0x2c641d[0x1],_0x2c641d[0x2],{'forceDefaultExecution':!0x0});const _0x288de6=_0x1081c5(),{rowInsertionRanges:_0x52360b,columnInsertionRanges:_0x24accb,insertionRanges:_0x197c47,deletionRanges:_0x450b54,cells:_0x3a775a}=_0x1e8b12;_0x52360b[_0x41e1('0x19')]&&_0x44202d['markMultiRangeInsertion'](_0x52360b,'tablePasteRow',{'tablePasteChainId':_0x288de6}),_0x24accb[_0x41e1('0x19')]&&_0x44202d[_0x41e1('0x45')](_0x24accb,_0x41e1('0x8c'),{'tablePasteChainId':_0x288de6}),_0x197c47[_0x41e1('0x19')]&&_0x44202d[_0x41e1('0x45')](_0x197c47,_0x41e1('0x18'),{'tablePasteChainId':_0x288de6,'skipNestingCheck':!0x0}),_0x450b54[_0x41e1('0x19')]&&_0x44202d[_0x41e1('0x34')](_0x450b54,_0x41e1('0x18'),{'tablePasteChainId':_0x288de6,'skipNestingCheck':!0x0});const _0x548cf5=_0x44202d[_0x41e1('0x12')](_0x3a775a['map'](({element:_0x28b11c})=>_0x28b11c),{'formatGroupId':_0x1081c5()},[],_0x41e1('0x1c'),{'tablePasteChainId':_0x288de6});if(_0x548cf5){const _0x14beb2=_0x548cf5[_0x41e1('0x1f')](),_0x3aea01=[];for(const {element:_0x49a258,attributes:_0xb6e736}of _0x3a775a){if(!_0xb6e736)continue;const _0xaf1d7e=_0x62ea88['model'][_0x41e1('0x20')](_0x49a258),_0x23e57c=_0x14beb2[_0x41e1('0x9f')](_0x482989=>_0x482989[_0x41e1('0x1d')]()[_0x41e1('0x46')](_0xaf1d7e));_0x23e57c&&_0x3aea01[_0x41e1('0x2e')]([_0x23e57c[_0x41e1('0x69')],_0xb6e736]);}_0x3aea01[_0x41e1('0x19')]&&_0x548cf5[_0x41e1('0x4')](_0x41e1('0x4b'),Object['fromEntries'](_0x3aea01));}_0x1e8b12=null;}));},{'priority':_0x908dc0[_0x41e1('0x7e')]+0xa}),_0x62ea88['plugins'][_0x41e1('0x95')]('TableClipboard')['on'](_0x41e1('0x6c'),(_0x7a2d0f,_0x3ff35e)=>{const [_0x5b6516,_0x182af5,,_0x1a2e44]=_0x3ff35e;if(!_0x1e8b12)return;_0x7a2d0f[_0x41e1('0x57')]();const _0xb528ff=_0x5b6516[_0x41e1('0x96')],_0x2eb658=_0x182af5,_0x1e9455=ce(_0xb528ff),_0x1f5d17=ce(_0x2eb658);_0x7a2d0f[_0x41e1('0x17')]=_0xb528ff;let _0x77f3dd=null,_0x48a800=null;if(_0x1f5d17||_0x1e9455){if(_0x1e9455&&!_0x1f5d17){_0x1a2e44[_0x41e1('0x56')](_0xb528ff['getChild'](0x0));for(const _0x376ad4 of Array[_0x41e1('0x8d')](_0x2eb658[_0x41e1('0x5f')]()))_0x1a2e44['insert'](_0x376ad4,_0xb528ff,_0x41e1('0x1b'));const _0x3a06de=_0x1e8b12[_0x41e1('0x55')][_0x41e1('0x72')](_0x5b6516[_0x41e1('0x3d')]),_0x37f2ee=_0x1e8b12[_0x41e1('0x78')]['includes'](_0x5b6516[_0x41e1('0x7a')]);_0x3a06de||_0x37f2ee||(_0x77f3dd=_0x1a2e44[_0x41e1('0x97')](_0xb528ff));}else _0x1f5d17&&!_0x1e9455&&(_0x48a800=_0x1a2e44[_0x41e1('0x97')](_0xb528ff));}else{const _0x16ecd9=_0x1a2e44[_0x41e1('0x5e')](_0x41e1('0x21')),_0x2c7b48=_0x1a2e44[_0x41e1('0x5e')](_0x41e1('0x21'));_0x1a2e44[_0x41e1('0x9d')](_0x1a2e44['createRangeIn'](_0xb528ff),_0x2c7b48),_0x1a2e44[_0x41e1('0xa0')](_0x16ecd9,_0xb528ff,0x0);for(const _0x19e4ee of Array['from'](_0x2eb658[_0x41e1('0x5f')]()))_0x1a2e44['insert'](_0x19e4ee,_0x16ecd9,_0x41e1('0x1b'));_0x77f3dd=_0x1a2e44[_0x41e1('0x20')](_0x16ecd9),_0x48a800=_0x1a2e44[_0x41e1('0x20')](_0x2c7b48);}const _0x192ff7=Array[_0x41e1('0x8d')](_0x2eb658[_0x41e1('0x4e')]())[_0x41e1('0x83')](([_0x5000bd])=>le[_0x41e1('0x72')](_0x5000bd));_0x1e8b12[_0x41e1('0x94')][_0x41e1('0x2e')]({'element':_0xb528ff,'attributes':_0x192ff7[_0x41e1('0x19')]?Object[_0x41e1('0x2a')](_0x192ff7):null}),_0x77f3dd&&_0x1e8b12[_0x41e1('0x8')]['push'](_0x77f3dd),_0x48a800&&_0x1e8b12[_0x41e1('0xa4')][_0x41e1('0x2e')](_0x48a800);},{'priority':_0x41e1('0x7e')}),_0xaa3da9['on'](_0x41e1('0x79'),(_0x1363d7,_0x388abf)=>{const [_0xec74d5,_0x5cee9e={}]=_0x388abf;if(!_0x1e8b12)return;const _0x5154ae=_0x5cee9e['at']||0x0,_0x4bf888=_0x5cee9e[_0x41e1('0x54')]||0x1;_0x1e8b12[_0x41e1('0x78')]=new Array(_0x4bf888)[_0x41e1('0x68')](_0x5154ae)[_0x41e1('0x66')]((_0x3d99fe,_0xbf0820)=>_0x3d99fe+_0xbf0820);for(const {cell:_0x30d356}of _0xaa3da9['createTableWalker'](_0xec74d5,{'startColumn':_0x5154ae,'endColumn':_0x5154ae+_0x4bf888-0x1}))_0x1e8b12[_0x41e1('0x8b')][_0x41e1('0x2e')](_0x62ea88['model']['createRangeOn'](_0x30d356));},{'priority':_0x41e1('0x11')}),_0xaa3da9['on']('insertRows',(_0x3200b9,_0x2fb74b)=>{const [_0x27aef1,_0x537a73={}]=_0x2fb74b;if(!_0x1e8b12)return;const _0x2710b5=_0x537a73['at']||0x0,_0x2f0d8a=_0x537a73[_0x41e1('0x22')]||0x1;_0x1e8b12[_0x41e1('0x55')]=new Array(_0x2f0d8a)[_0x41e1('0x68')](_0x2710b5)[_0x41e1('0x66')]((_0x8a9e16,_0x1229ff)=>_0x8a9e16+_0x1229ff);for(const {cell:_0x2142a3}of _0xaa3da9[_0x41e1('0xc')](_0x27aef1,{'startRow':_0x2710b5,'endRow':_0x2710b5+_0x2f0d8a-0x1}))_0x1e8b12[_0x41e1('0x38')][_0x41e1('0x2e')](_0x62ea88[_0x41e1('0x8a')][_0x41e1('0x20')](_0x2142a3));},{'priority':_0x41e1('0x11')}),_0x44202d['_descriptionFactory'][_0x41e1('0xa2')](_0x317008=>{if(_0x317008['subType']&&_0x317008['subType'][_0x41e1('0x0')](_0x41e1('0x18')))return _0x317008[_0x41e1('0x26')]?{}:{'type':_0x41e1('0x90'),'content':_0x37257a(_0x62ea88[_0x41e1('0x4a')],'*Replace\x20table\x20cells*')};});const _0x346047=()=>{};for(const _0x3539c5 of['tablePaste',_0x41e1('0x8c'),_0x41e1('0x84'),_0x41e1('0x1c')])_0x44202d[_0x41e1('0x9')][_0x41e1('0x10')](_0x41e1('0x90'),_0x3539c5,_0x41e1('0x9e'),_0x346047),_0x44202d[_0x41e1('0x9')]['registerCustomCallback'](_0x41e1('0xa3'),_0x3539c5,_0x41e1('0x9e'),_0x346047);_0x44202d[_0x41e1('0x9')][_0x41e1('0x10')](_0x41e1('0x8e'),_0x41e1('0x1c'),_0x41e1('0x2d'),_0x346047),_0x44202d['_suggestionFactory'][_0x41e1('0x10')]('formatBlock',_0x41e1('0x1c'),_0x41e1('0xa1'),(_0x36a620,_0x57bef3,_0x171f18)=>{const _0x43c081=_0x36a620[_0x41e1('0x66')](_0x50d039=>_0x50d039[_0x41e1('0x75')]())[_0x41e1('0x83')](_0x4ed098=>_0x4ed098),_0x385342=new Map(_0x43c081[_0x41e1('0x66')](_0x164b09=>[_0x164b09,null]));if(_0x1e8b12)for(const {element:_0x54d0c5,attributes:_0x51e74d}of _0x1e8b12[_0x41e1('0x94')])_0x51e74d&&_0x385342[_0x41e1('0x98')](_0x54d0c5,_0x51e74d);else{if(_0x171f18&&_0x171f18[_0x41e1('0x4b')])for(const [_0x3a04e2,_0x22966c]of Object[_0x41e1('0x15')](_0x171f18[_0x41e1('0x4b')])){const _0x101f74=_0x62ea88[_0x41e1('0x8a')][_0x41e1('0x41')][_0x41e1('0x95')](_0x3a04e2),_0x5bfaaf=_0x101f74?_0x101f74[_0x41e1('0x1d')]()[_0x41e1('0x75')]():null;_0x5bfaaf&&_0x385342[_0x41e1('0x98')](_0x5bfaaf,_0x22966c);}}_0x62ea88[_0x41e1('0x8a')][_0x41e1('0x1e')](_0x56647c=>{for(const [_0x4ccf9d,_0x12ac3a]of _0x385342)_0x56647c[_0x41e1('0x93')]({...ae,..._0x12ac3a},_0x4ccf9d);});});const _0x2c8547=(_0x2df088,_0x460df8)=>{_0x44202d[_0x41e1('0x9')][_0x41e1('0x10')](_0x2df088,'tablePaste',_0x460df8,(_0x5ae344,_0x5e91f7,_0x340bd6)=>{_0x62ea88['model'][_0x41e1('0x1e')](_0xe3bb82=>{const _0x429ff8=[];for(const _0x5d5a34 of _0x5ae344){const _0x5e64ad=_0x5d5a34[_0x41e1('0x2c')][_0x41e1('0x39')];_0x5e64ad['is']('element','tableCellSuggestion')&&_0x429ff8['push'](_0x5e64ad);}_0x44202d[_0x41e1('0x9')][_0x41e1('0x28')](_0x2df088,null,_0x460df8)(_0x5ae344,_0x5e91f7,_0x340bd6);for(const _0xf9f0a8 of _0x429ff8)_0x41e1('0x47')!=_0xf9f0a8[_0x41e1('0x5')]['rootName']&&_0xe3bb82[_0x41e1('0xa5')](_0xf9f0a8);});});};_0x2c8547('insertion',_0x41e1('0xa1')),_0x2c8547(_0x41e1('0x90'),'discard'),_0x2c8547(_0x41e1('0xa3'),'accept'),_0x2c8547(_0x41e1('0xa3'),_0x41e1('0x2d')),_0x44202d['_suggestionFactory']['registerCustomCallback'](_0x41e1('0x90'),_0x41e1('0x84'),'discard',_0x99b54a=>{const _0x2935eb=_0x99b54a[_0x41e1('0x66')](_0x3910a1=>_0x3910a1[_0x41e1('0x75')]()),_0x20e339=_0x2935eb[0x0][_0x41e1('0x60')](_0x41e1('0xb')),{minRow:_0x5b0bac,maxRow:_0x2ada3a}=_0x400784[_0x41e1('0x24')](_0x2935eb);_0xaa3da9[_0x41e1('0x6')](_0x20e339,{'at':_0x5b0bac,'rows':_0x2ada3a-_0x5b0bac+0x1});}),_0x44202d['_suggestionFactory'][_0x41e1('0x10')](_0x41e1('0x90'),_0x41e1('0x8c'),_0x41e1('0x2d'),_0x42939e=>{const _0x520a57=_0x42939e[_0x41e1('0x66')](_0x3606dd=>_0x3606dd[_0x41e1('0x75')]()),_0x489dbc=_0x520a57[0x0][_0x41e1('0x60')](_0x41e1('0xb')),{minColumn:_0x6aa7b7,maxColumn:_0x3845c1}=_0x400784[_0x41e1('0x24')](_0x520a57);_0xaa3da9[_0x41e1('0x77')](_0x489dbc,{'at':_0x6aa7b7,'columns':_0x3845c1-_0x6aa7b7+0x1});});const _0x4c90db=(_0x4adcf8,_0x1c57e3)=>{if(!_0x1c57e3[_0x41e1('0x3')]||!_0x1c57e3[_0x41e1('0x3')]['startsWith'](_0x41e1('0x18')))return;const _0xa5c2f3=_0x1c57e3[_0x41e1('0x59')][_0x41e1('0x6b')],_0x59915a=_0x44202d[_0x41e1('0xf')]()[_0x41e1('0x83')](_0x3934e8=>_0x3934e8[_0x41e1('0x9c')]&&_0x3934e8[_0x41e1('0x59')]&&_0x3934e8[_0x41e1('0x59')][_0x41e1('0x6b')]==_0xa5c2f3);_0x59915a[_0x41e1('0x19')]&&_0x1c57e3[_0x41e1('0x92')]()[_0x41e1('0x19')]!=_0x59915a['length']&&_0x59915a[_0x41e1('0x86')]((_0x269299,_0x46b3ea)=>(_0x269299['next']=_0x46b3ea,_0x46b3ea[_0x41e1('0x26')]=_0x269299,_0x46b3ea));};function _0x4ee068(_0x59c4bb,_0xfeee27=!0x0){const {id:_0x461ceb}=_0x44202d[_0x41e1('0x81')](_0x59c4bb[_0x41e1('0x4f')]),_0x4525f0=[_0x41e1('0x52'),_0x41e1('0xa7')],_0x5ca5f6=_0x44202d[_0x41e1('0xa9')][_0x41e1('0x72')](_0x59c4bb[_0x41e1('0x4f')]);return _0x5ca5f6&&_0x4525f0[_0x41e1('0x2e')](_0x41e1('0xa6')),{'classes':_0x4525f0,'attributes':{'data-suggestion':_0x461ceb},'priority':_0x5ca5f6&&_0xfeee27?0xbc2:0xbb8};}_0x44202d['on'](_0x41e1('0x3f'),_0x4c90db,{'priority':'high'}),_0x44202d['on'](_0x41e1('0x25'),_0x4c90db,{'priority':_0x41e1('0x7e')}),_0x62ea88[_0x41e1('0x8a')][_0x41e1('0x37')][_0x41e1('0x7b')](()=>{let _0x4591e0=!0x1;const _0x5aa72a=Array['from'](_0x62ea88[_0x41e1('0x8a')]['document'][_0x41e1('0x50')][_0x41e1('0x30')]());for(const {name:_0x231839,data:_0x162a3c}of _0x5aa72a){const {group:_0x5bf776,type:_0xa8f15f,id:_0x59d6cf}=_0x44202d[_0x41e1('0x81')](_0x231839);if('suggestion'!=_0x5bf776||_0x41e1('0xa3')!=_0xa8f15f||_0x162a3c[_0x41e1('0x2f')])continue;if(!_0x44202d[_0x41e1('0x71')](_0x59d6cf))continue;const _0x2d3a53=_0x44202d[_0x41e1('0x27')](_0x59d6cf)['getRanges'](),_0x4494f7=_0x62ea88['plugins'][_0x41e1('0x95')](_0x41e1('0x9b'))['me'];for(const _0x481e49 of _0x44202d[_0x41e1('0xf')]()){if(!_0x481e49[_0x41e1('0x9c')]||_0x481e49[_0x41e1('0x80')]!=_0x4494f7)continue;if(_0x41e1('0x8e')!=_0x481e49['type']||_0x41e1('0x1c')!=_0x481e49['subType'])continue;if(_0x481e49[_0x41e1('0x33')]()[_0x41e1('0x99')](_0x3f2277=>_0x2d3a53['some'](_0x19fd19=>_0x19fd19[_0x41e1('0x65')](_0x3f2277,!0x0))))for(const _0x253fee of _0x481e49[_0x41e1('0x92')]())_0x253fee['isInContent']&&(_0x253fee['discard'](),_0x4591e0=!0x0);}}return _0x4591e0;}),_0x62ea88[_0x41e1('0x8a')][_0x41e1('0x37')]['registerPostFixer'](_0x85ac9b=>{const _0x2dc607=_0x62ea88['commands'][_0x41e1('0x95')](_0x41e1('0x85'));if(!_0x2dc607||!_0x2dc607[_0x41e1('0x89')][_0x41e1('0x64')](_0x85ac9b[_0x41e1('0x58')]))return!0x1;let _0x486f89=!0x1;const _0x5c405e=_0x62ea88[_0x41e1('0x63')][_0x41e1('0x95')](_0x41e1('0x9b'))['me'],_0x27c7f0=_0x62ea88[_0x41e1('0x8a')][_0x41e1('0x37')][_0x41e1('0x50')][_0x41e1('0x16')](),_0x4c00ab=Array[_0x41e1('0x8d')](_0x62ea88['model'][_0x41e1('0x37')]['differ'][_0x41e1('0x30')]())['filter'](({name:_0x5d73f0,data:_0xc18fc4})=>{const {group:_0xe03b1b,subType:_0x4d2c52,authorId:_0x59c6ed}=_0x44202d[_0x41e1('0x81')](_0x5d73f0);return _0x41e1('0x82')==_0xe03b1b&&_0x41e1('0x18')==_0x4d2c52&&_0x59c6ed==_0x5c405e['id']&&!_0xc18fc4[_0x41e1('0x2f')];});for(const _0x1aca44 of _0x27c7f0){if(_0x41e1('0xa0')!=_0x1aca44[_0x41e1('0x14')]||_0x41e1('0x21')!=_0x1aca44['name']||0x1!=_0x1aca44[_0x41e1('0x19')])continue;const _0x7896e9=_0x85ac9b[_0x41e1('0x1')](_0x1aca44[_0x41e1('0x35')],_0x1aca44[_0x41e1('0x35')][_0x41e1('0x62')](0x1));if(!_0x4c00ab[_0x41e1('0x9f')](({data:_0x435d47})=>_0x435d47[_0x41e1('0x48')][_0x41e1('0x46')](_0x7896e9)))for(const {name:_0x9087dd,data:_0x2f4599}of _0x4c00ab)if(_0x7896e9[_0x41e1('0x65')](_0x2f4599[_0x41e1('0x48')])){_0x85ac9b['updateMarker'](_0x9087dd,{'range':_0x7896e9}),_0x486f89=!0x0;break;}}return _0x486f89;}),_0x62ea88[_0x41e1('0x8a')]['document'][_0x41e1('0x7b')](_0x1c99b0=>{let _0x2e05bf=!0x1;const _0x1fb8cf=_0x62ea88['plugins'][_0x41e1('0x95')](_0x41e1('0x9b'))['me'],_0x17c92f=_0x44202d['getSuggestions']()[_0x41e1('0x83')](_0x463547=>_0x463547[_0x41e1('0x9c')]&&_0x463547[_0x41e1('0x80')]==_0x1fb8cf),_0x7c631e=new Set(),_0x23c747=new Set();for(const _0x5235c3 of _0x17c92f)if(_0x41e1('0x18')==_0x5235c3[_0x41e1('0x3')])for(const _0x51f8b0 of _0x5235c3[_0x41e1('0x1f')]()){const _0x52b85c=_0x51f8b0[_0x41e1('0x1d')]()[_0x41e1('0x75')]();if(_0x52b85c){if(_0x52b85c['is'](_0x41e1('0x7d'),_0x41e1('0x21'))&&ce(_0x52b85c)){_0x5235c3[_0x41e1('0x43')](_0x51f8b0[_0x41e1('0x69')]),_0x7c631e[_0x41e1('0xaa')](_0x52b85c),_0x2e05bf=!0x0;const _0x92e1aa=_0x52b85c['nextSibling'],_0x246de2=_0x52b85c[_0x41e1('0x32')],_0x2f8a3a=_0x92e1aa&&_0x92e1aa['is'](_0x41e1('0x7d'),_0x41e1('0x21')),_0x4776ce=_0x246de2&&_0x246de2['is'](_0x41e1('0x7d'),_0x41e1('0x21'));_0x2f8a3a&&!_0x7c631e[_0x41e1('0x64')](_0x92e1aa)&&_0x23c747[_0x41e1('0xaa')](_0x92e1aa),_0x4776ce&&!_0x7c631e[_0x41e1('0x64')](_0x246de2)&&_0x23c747[_0x41e1('0xaa')](_0x246de2);}else _0x52b85c['is'](_0x41e1('0x7d'),'paragraph')&&_0x52b85c[_0x41e1('0x13')]&&(_0x5235c3[_0x41e1('0x43')](_0x51f8b0['name']),_0x2e05bf=!0x0);}}else{if(_0x41e1('0x1c')==_0x5235c3['subType']){if(!_0x5235c3[_0x41e1('0x59')]||!_0x5235c3['attributes']['tablePasteChainId'])continue;const _0x1937b2=_0x5235c3['attributes'][_0x41e1('0x4b')];if(_0x1937b2&&Object[_0x41e1('0x6f')](_0x1937b2)[_0x41e1('0x19')])continue;const _0x1c824d=_0x5235c3[_0x41e1('0x59')][_0x41e1('0x6b')];let _0x548e4b=!0x0,_0x30d596=!0x0;for(const _0x471d4a of _0x17c92f)if(_0x471d4a[_0x41e1('0x3')]&&_0x471d4a[_0x41e1('0x3')][_0x41e1('0x0')](_0x41e1('0x18'))){if(!_0x471d4a[_0x41e1('0x59')][_0x41e1('0x6b')]){_0x30d596=!0x1;break;}if(_0x471d4a['id']!=_0x5235c3['id']&&_0x471d4a[_0x41e1('0x59')][_0x41e1('0x6b')]==_0x1c824d){_0x548e4b=!0x1;break;}}_0x30d596&&_0x548e4b&&(_0x5235c3[_0x41e1('0x5c')](),_0x2e05bf=!0x0);}}for(const _0x6f3d13 of _0x7c631e)_0x1c99b0[_0x41e1('0x56')](_0x6f3d13);for(const _0x19e341 of _0x23c747)_0x1c99b0[_0x41e1('0xa5')](_0x19e341);return _0x2e05bf;}),_0x62ea88[_0x41e1('0xe')][_0x41e1('0xa')](_0x41e1('0x49'))[_0x41e1('0x3a')]({'model':_0x41e1('0x36'),'view':(_0x1f4a66,_0x2ead68)=>_0x4ee068(_0x1f4a66),'converterPriority':_0x41e1('0x7e')}),_0x62ea88[_0x41e1('0xe')]['for'](_0x41e1('0x74'))[_0x41e1('0x3a')]({'model':_0x41e1('0x36'),'view':(_0x5e8299,_0x5f6f48)=>_0x5f6f48[_0x41e1('0x5b')]['showSuggestionHighlights']?_0x4ee068(_0x5e8299,!0x1):null,'converterPriority':_0x41e1('0x7e')});const _0x35e160=_0x62ea88[_0x41e1('0xd')][_0x41e1('0x3b')];this['listenTo'](_0x35e160[_0x41e1('0x37')],_0x41e1('0x5a'),(_0x8dd560,_0x4cb797)=>{const _0x522536=[];for(const _0x4ac9e8 of _0x35e160[_0x41e1('0x97')](_0x4cb797[_0x41e1('0x6d')])[_0x41e1('0x6a')]())_0x4ac9e8['is'](_0x41e1('0x7d'),_0x41e1('0x2'))&&_0x522536[_0x41e1('0x2e')](_0x4ac9e8);_0x35e160[_0x41e1('0x1e')](_0x5a9e83=>{for(const _0x233e92 of _0x522536)_0x5a9e83[_0x41e1('0x51')](_0x5a9e83[_0x41e1('0x97')](_0x233e92),_0x5a9e83[_0x41e1('0x7')](_0x233e92)),_0x5a9e83[_0x41e1('0x56')](_0x233e92);});});}}function ce(_0x45bc59){if(_0x45bc59['isEmpty'])return!0x0;const _0x4e24ab=_0x45bc59[_0x41e1('0x1a')](0x0);return _0x4e24ab['is'](_0x41e1('0x7d'),'paragraph')&&_0x4e24ab['isEmpty'];}function fe(_0xdf22ef,_0x25efe4={},_0x44abfe){for(const {isAnchor:_0x1c4f95,cellHeight:_0x53ea8f,cellWidth:_0x388860}of _0x44abfe[_0x41e1('0xc')](_0xdf22ef,{'includeAllSlots':!0x0,..._0x25efe4}))if(!_0x1c4f95||0x1!=_0x53ea8f||0x1!=_0x388860)return!0x1;return!0x0;}
|
|
23
|
+
const _0x1af3=['reduce','tableCellBorderStyle','row','tablePasteRow','createTableWalker','filter','model','remove','getRange','first','oldRange','insertRows','differ','has','insertColumns','markMultiRangeInsertion','stop','document','tableCellBackgroundColor','fromEntries','move','setAttributes','removeMarker','ck-suggestion-marker--active','getSuggestions','isInContent','some','getColumns','isEmpty','removeMarkers','TableUtils','getItems','position','TrackChangesEditing','getRows','registerCustomCallback','markerName','endRow','endColumn','suggestionLoaded','_suggestionFactory','map','suggestion','hasSuggestion','set','ck-suggestion-marker-insertion','options','commands','tableCellPadding','includes','push','cells','requires','removeRows','Users','plugins','last','find','rowInsertionRanges','listenTo','*Replace\x20table\x20cells*','entries','author','_createdBatches','insert','suggestion:formatBlock:tablePasteCell','_tablePostFixingSubtypes','createRangeIn','getContainedElement','$graveyard','ck-suggestion-marker','value','columns','tableCellBorderColor','isEqual','markerAttributes','nodeAfter','tableCellHorizontalAlignment','subType','batch','suggestionUnloaded','tablePasteCell','markMultiRangeBlockFormat','createRangeOn','root','from','getChild','insertContent','tableCell','getColumnIndexes','cell','getAttributes','markMultiRangeDeletion','createRange','suggestion-td','_getCoordsForCells','clipboardOutput','end','tablePaste','_replaceTableSlotCell','conversion','rowInsertionIndexes','insertion','previousSibling','deletion','_splitMarkerName','_descriptionFactory','schema','fill','elementToElement','attributes','getChanges','for','forceDefaultExecution','tableCellBorderWidth','length','tablePasteChainId','high','editing','activeMarkers','discard','createElement','columnInsertionIndexes','registerDescriptionCallback','setAttribute','rows','getMarkers','paragraph','tableCellSuggestion','every','TableClipboard','newRange','getChildren','keys','change','tableCellVerticalAlignment','registerPostFixer','table','previous','unwrap','findAncestor','getChangedMarkers','register','low','tablePasteColumn','column','getRanges','containsRange','getAllAdjacentSuggestions','type','getRowIndexes','get','accept','add','getSuggestion','getSelectionAffectedTableCells','nextSibling','formatBlock','name','redo','getShiftedBy','editor','startsWith','getSuggestionCallback','element'];(function(_0x44160e,_0x1af300){const _0x195fa1=function(_0x41e040){while(--_0x41e040){_0x44160e['push'](_0x44160e['shift']());}};_0x195fa1(++_0x1af300);}(_0x1af3,0x182));const _0x195f=function(_0x44160e,_0x1af300){_0x44160e=_0x44160e-0x0;let _0x195fa1=_0x1af3[_0x44160e];return _0x195fa1;};import{getTranslation as _0x1971cb}from'../utils/common-translations';import{Plugin as _0x59c556}from'ckeditor5/src/core';import{uid as _0x1cd048,priorities as _0x5a5494}from'ckeditor5/src/utils';import _0x38a1f3 from'./table';const le=[_0x195f('0x3a'),_0x195f('0x11'),_0x195f('0x6e'),_0x195f('0x15'),_0x195f('0x4f'),_0x195f('0x7f'),_0x195f('0x9d')],ae=Object[_0x195f('0x80')](le[_0x195f('0x96')](_0x2cf75a=>[_0x2cf75a,null]));export default class kt extends _0x59c556{static get[_0x195f('0xa1')](){return[_0x38a1f3];}['afterInit'](){const _0xe8d15a=this[_0x195f('0x69')];if(!_0xe8d15a['plugins'][_0x195f('0x7a')]('TableClipboard'))return;const _0x3adbb7=_0xe8d15a[_0x195f('0xa4')][_0x195f('0x5f')](_0x195f('0x8e')),_0x5712a8=_0xe8d15a[_0x195f('0xa4')][_0x195f('0x5f')](_0x195f('0x8b')),_0x728ed4=_0xe8d15a['plugins']['get'](_0x38a1f3),_0x51b442=_0xe8d15a[_0x195f('0xa4')]['get'](_0x195f('0x4a'));_0x728ed4[_0x195f('0xa')]['push'](_0x195f('0x70'),_0x195f('0x58')),_0xe8d15a[_0x195f('0x73')][_0x195f('0x33')][_0x195f('0x56')](_0x195f('0x48'),{'allowIn':'tableCell','allowContentOf':_0x195f('0x20'),'isLimit':!0x0}),_0xe8d15a[_0x195f('0x2c')][_0x195f('0x35')]({'model':_0x195f('0x48'),'view':_0x195f('0x26')});let _0x549054=null;_0xe8d15a['model']['on'](_0x195f('0x1f'),(_0x528cb8,_0x565377)=>{const [_0x219467,_0x55c783]=_0x565377,_0xdd8251=_0x565377[_0x565377['length']-0x1];_0xdd8251&&_0xdd8251[_0x195f('0x39')]||_0x3adbb7['_isForcedDefaultExecutionBlock']||this[_0x195f('0x69')][_0x195f('0x9c')][_0x195f('0x5f')]('trackChanges')[_0x195f('0xf')]&&function(_0x12d308,_0x41d2dd,_0x4da237,_0x13b6ca,_0x357496){if(_0x41d2dd&&!_0x41d2dd['is']('documentSelection'))return!0x1;const _0x56f9b5=_0x357496['getTableIfOnlyTableInContent'](_0x12d308,_0x4da237);if(!_0x56f9b5||!fe(_0x56f9b5,void 0x0,_0x13b6ca))return!0x1;const _0x1bb4df=_0x13b6ca[_0x195f('0x63')](_0x4da237[_0x195f('0x7e')]['selection']);if(!_0x1bb4df['length'])return!0x1;const _0x11bdd7=_0x1bb4df[0x0][_0x195f('0x54')](_0x195f('0x51')),_0x59b1c2=_0x13b6ca[_0x195f('0x5e')](_0x1bb4df),_0x4135f2=_0x13b6ca[_0x195f('0x21')](_0x1bb4df),_0xea930e={'startRow':_0x59b1c2[_0x195f('0x76')],'endRow':_0x59b1c2[_0x195f('0x0')],'startColumn':_0x4135f2['first'],'endColumn':_0x4135f2[_0x195f('0x0')]};return 0x1==_0x1bb4df[_0x195f('0x3b')]&&(_0xea930e[_0x195f('0x92')]+=_0x13b6ca[_0x195f('0x8f')](_0x56f9b5)-0x1,_0xea930e[_0x195f('0x93')]+=_0x13b6ca[_0x195f('0x88')](_0x56f9b5)-0x1),fe(_0x11bdd7,_0xea930e,_0x13b6ca);}(_0x219467,_0x55c783,_0xe8d15a[_0x195f('0x73')],_0x5712a8,_0x51b442)&&(_0x528cb8[_0x195f('0x7d')](),_0x549054={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xe8d15a[_0x195f('0x73')][_0x195f('0x4e')](()=>{_0xe8d15a[_0x195f('0x73')][_0x195f('0x1f')](_0x565377[0x0],_0x565377[0x1],_0x565377[0x2],{'forceDefaultExecution':!0x0});const _0x32cb73=_0x1cd048(),{rowInsertionRanges:_0x5cb6fe,columnInsertionRanges:_0x5330b0,insertionRanges:_0x56ec2f,deletionRanges:_0x4f136b,cells:_0x40ec95}=_0x549054;_0x5cb6fe['length']&&_0x3adbb7[_0x195f('0x7c')](_0x5cb6fe,_0x195f('0x70'),{'tablePasteChainId':_0x32cb73}),_0x5330b0[_0x195f('0x3b')]&&_0x3adbb7[_0x195f('0x7c')](_0x5330b0,_0x195f('0x58'),{'tablePasteChainId':_0x32cb73}),_0x56ec2f[_0x195f('0x3b')]&&_0x3adbb7['markMultiRangeInsertion'](_0x56ec2f,_0x195f('0x2a'),{'tablePasteChainId':_0x32cb73,'skipNestingCheck':!0x0}),_0x4f136b[_0x195f('0x3b')]&&_0x3adbb7[_0x195f('0x24')](_0x4f136b,_0x195f('0x2a'),{'tablePasteChainId':_0x32cb73,'skipNestingCheck':!0x0});const _0x5fb10c=_0x3adbb7[_0x195f('0x1a')](_0x40ec95[_0x195f('0x96')](({element:_0x3e90ae})=>_0x3e90ae),{'formatGroupId':_0x1cd048()},[],_0x195f('0x19'),{'tablePasteChainId':_0x32cb73});if(_0x5fb10c){const _0x5bf75f=_0x5fb10c['getMarkers'](),_0x4b0f4e=[];for(const {element:_0x481278,attributes:_0x13144f}of _0x40ec95){if(!_0x13144f)continue;const _0x3a3077=_0xe8d15a[_0x195f('0x73')][_0x195f('0x1b')](_0x481278),_0x22b942=_0x5bf75f[_0x195f('0x1')](_0x807500=>_0x807500[_0x195f('0x75')]()[_0x195f('0x12')](_0x3a3077));_0x22b942&&_0x4b0f4e['push']([_0x22b942[_0x195f('0x66')],_0x13144f]);}_0x4b0f4e['length']&&_0x5fb10c[_0x195f('0x44')](_0x195f('0x13'),Object[_0x195f('0x80')](_0x4b0f4e));}_0x549054=null;}));},{'priority':_0x5a5494[_0x195f('0x3d')]+0xa}),_0xe8d15a['plugins']['get'](_0x195f('0x4a'))['on'](_0x195f('0x2b'),(_0x140ae2,_0x53f0df)=>{const [_0x1c2b30,_0x3c0040,,_0x462975]=_0x53f0df;if(!_0x549054)return;_0x140ae2[_0x195f('0x7d')]();const _0x44d00d=_0x1c2b30[_0x195f('0x22')],_0x1f2df5=_0x3c0040,_0x45ec39=ce(_0x44d00d),_0x59a757=ce(_0x1f2df5);_0x140ae2['return']=_0x44d00d;let _0x46dfe9=null,_0x51b6af=null;if(_0x59a757||_0x45ec39){if(_0x45ec39&&!_0x59a757){_0x462975[_0x195f('0x74')](_0x44d00d[_0x195f('0x1e')](0x0));for(const _0x2bb24f of Array[_0x195f('0x1d')](_0x1f2df5[_0x195f('0x4c')]()))_0x462975[_0x195f('0x8')](_0x2bb24f,_0x44d00d,_0x195f('0x29'));const _0x39317b=_0x549054[_0x195f('0x2d')][_0x195f('0x9e')](_0x1c2b30[_0x195f('0x6f')]),_0x844528=_0x549054[_0x195f('0x42')][_0x195f('0x9e')](_0x1c2b30[_0x195f('0x59')]);_0x39317b||_0x844528||(_0x46dfe9=_0x462975[_0x195f('0xb')](_0x44d00d));}else _0x59a757&&!_0x45ec39&&(_0x51b6af=_0x462975['createRangeIn'](_0x44d00d));}else{const _0x571c9b=_0x462975[_0x195f('0x41')](_0x195f('0x48')),_0x55e466=_0x462975[_0x195f('0x41')](_0x195f('0x48'));_0x462975['wrap'](_0x462975[_0x195f('0xb')](_0x44d00d),_0x55e466),_0x462975[_0x195f('0x8')](_0x571c9b,_0x44d00d,0x0);for(const _0x1791f0 of Array[_0x195f('0x1d')](_0x1f2df5[_0x195f('0x4c')]()))_0x462975[_0x195f('0x8')](_0x1791f0,_0x571c9b,_0x195f('0x29'));_0x46dfe9=_0x462975[_0x195f('0x1b')](_0x571c9b),_0x51b6af=_0x462975[_0x195f('0x1b')](_0x55e466);}const _0x39f148=Array['from'](_0x1f2df5[_0x195f('0x23')]())[_0x195f('0x72')](([_0x27ad3a])=>le['includes'](_0x27ad3a));_0x549054[_0x195f('0xa0')]['push']({'element':_0x44d00d,'attributes':_0x39f148[_0x195f('0x3b')]?Object[_0x195f('0x80')](_0x39f148):null}),_0x46dfe9&&_0x549054['insertionRanges'][_0x195f('0x9f')](_0x46dfe9),_0x51b6af&&_0x549054['deletionRanges']['push'](_0x51b6af);},{'priority':_0x195f('0x3d')}),_0x5712a8['on'](_0x195f('0x7b'),(_0x15aa4e,_0x2c69f2)=>{const [_0x40955d,_0x2414d8={}]=_0x2c69f2;if(!_0x549054)return;const _0x395d08=_0x2414d8['at']||0x0,_0x5367c7=_0x2414d8[_0x195f('0x10')]||0x1;_0x549054['columnInsertionIndexes']=new Array(_0x5367c7)[_0x195f('0x34')](_0x395d08)[_0x195f('0x96')]((_0x2315d7,_0x2bcbfd)=>_0x2315d7+_0x2bcbfd);for(const {cell:_0x4ac0cc}of _0x5712a8['createTableWalker'](_0x40955d,{'startColumn':_0x395d08,'endColumn':_0x395d08+_0x5367c7-0x1}))_0x549054['columnInsertionRanges'][_0x195f('0x9f')](_0xe8d15a[_0x195f('0x73')]['createRangeOn'](_0x4ac0cc));},{'priority':_0x195f('0x57')}),_0x5712a8['on'](_0x195f('0x78'),(_0x45eaa6,_0x1e1d54)=>{const [_0x26f99c,_0x183800={}]=_0x1e1d54;if(!_0x549054)return;const _0x3ea136=_0x183800['at']||0x0,_0x2a9320=_0x183800[_0x195f('0x45')]||0x1;_0x549054[_0x195f('0x2d')]=new Array(_0x2a9320)[_0x195f('0x34')](_0x3ea136)[_0x195f('0x96')]((_0x4b7ab4,_0x542f88)=>_0x4b7ab4+_0x542f88);for(const {cell:_0x2034c0}of _0x5712a8[_0x195f('0x71')](_0x26f99c,{'startRow':_0x3ea136,'endRow':_0x3ea136+_0x2a9320-0x1}))_0x549054[_0x195f('0x2')]['push'](_0xe8d15a[_0x195f('0x73')][_0x195f('0x1b')](_0x2034c0));},{'priority':'low'}),_0x3adbb7[_0x195f('0x32')][_0x195f('0x43')](_0x1a71c5=>{if(_0x1a71c5[_0x195f('0x16')]&&_0x1a71c5[_0x195f('0x16')]['startsWith'](_0x195f('0x2a')))return _0x1a71c5[_0x195f('0x52')]?{}:{'type':_0x195f('0x2e'),'content':_0x1971cb(_0xe8d15a['locale'],_0x195f('0x4'))};});const _0x38b174=()=>{};for(const _0x2e75f7 of[_0x195f('0x2a'),'tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3adbb7[_0x195f('0x95')][_0x195f('0x90')](_0x195f('0x2e'),_0x2e75f7,'join',_0x38b174),_0x3adbb7[_0x195f('0x95')][_0x195f('0x90')](_0x195f('0x30'),_0x2e75f7,'join',_0x38b174);_0x3adbb7[_0x195f('0x95')][_0x195f('0x90')]('formatBlock',_0x195f('0x19'),_0x195f('0x40'),_0x38b174),_0x3adbb7[_0x195f('0x95')][_0x195f('0x90')](_0x195f('0x65'),_0x195f('0x19'),_0x195f('0x60'),(_0x2072d3,_0x32e159,_0x2a340e)=>{const _0x22c41a=_0x2072d3[_0x195f('0x96')](_0x5bbc95=>_0x5bbc95[_0x195f('0xc')]())[_0x195f('0x72')](_0x89d9e=>_0x89d9e),_0x34d15e=new Map(_0x22c41a['map'](_0x9d1d8d=>[_0x9d1d8d,null]));if(_0x549054)for(const {element:_0xfd79c5,attributes:_0x2945c5}of _0x549054[_0x195f('0xa0')])_0x2945c5&&_0x34d15e['set'](_0xfd79c5,_0x2945c5);else{if(_0x2a340e&&_0x2a340e[_0x195f('0x13')])for(const [_0x217164,_0x4747e6]of Object[_0x195f('0x5')](_0x2a340e['markerAttributes'])){const _0x2c6ca3=_0xe8d15a[_0x195f('0x73')]['markers'][_0x195f('0x5f')](_0x217164),_0x1035a9=_0x2c6ca3?_0x2c6ca3[_0x195f('0x75')]()['getContainedElement']():null;_0x1035a9&&_0x34d15e[_0x195f('0x99')](_0x1035a9,_0x4747e6);}}_0xe8d15a[_0x195f('0x73')][_0x195f('0x4e')](_0x41b14d=>{for(const [_0x56213c,_0x1bf98c]of _0x34d15e)_0x41b14d[_0x195f('0x82')]({...ae,..._0x1bf98c},_0x56213c);});});const _0x4e3b2c=(_0x39d390,_0x144e81)=>{_0x3adbb7[_0x195f('0x95')][_0x195f('0x90')](_0x39d390,_0x195f('0x2a'),_0x144e81,(_0x110434,_0x244910,_0x224781)=>{_0xe8d15a[_0x195f('0x73')][_0x195f('0x4e')](_0x2573b5=>{const _0x1b6f7d=[];for(const _0x3a838d of _0x110434){const _0x2dd5cb=_0x3a838d['start'][_0x195f('0x14')];_0x2dd5cb['is'](_0x195f('0x6c'),_0x195f('0x48'))&&_0x1b6f7d[_0x195f('0x9f')](_0x2dd5cb);}_0x3adbb7[_0x195f('0x95')][_0x195f('0x6b')](_0x39d390,null,_0x144e81)(_0x110434,_0x244910,_0x224781);for(const _0x2ce8b6 of _0x1b6f7d)_0x195f('0xd')!=_0x2ce8b6[_0x195f('0x1c')]['rootName']&&_0x2573b5[_0x195f('0x53')](_0x2ce8b6);});});};_0x4e3b2c(_0x195f('0x2e'),'accept'),_0x4e3b2c(_0x195f('0x2e'),'discard'),_0x4e3b2c('deletion',_0x195f('0x60')),_0x4e3b2c(_0x195f('0x30'),_0x195f('0x40')),_0x3adbb7[_0x195f('0x95')][_0x195f('0x90')]('insertion',_0x195f('0x70'),'discard',_0x2057cb=>{const _0x334d39=_0x2057cb[_0x195f('0x96')](_0x8f4b51=>_0x8f4b51['getContainedElement']()),_0x9c98da=_0x334d39[0x0][_0x195f('0x54')](_0x195f('0x51')),{minRow:_0x360f9c,maxRow:_0x5f5c43}=_0x728ed4['_getCoordsForCells'](_0x334d39);_0x5712a8[_0x195f('0xa2')](_0x9c98da,{'at':_0x360f9c,'rows':_0x5f5c43-_0x360f9c+0x1});}),_0x3adbb7[_0x195f('0x95')][_0x195f('0x90')](_0x195f('0x2e'),_0x195f('0x58'),_0x195f('0x40'),_0x371fab=>{const _0x244b17=_0x371fab['map'](_0xd3e795=>_0xd3e795[_0x195f('0xc')]()),_0x935194=_0x244b17[0x0][_0x195f('0x54')](_0x195f('0x51')),{minColumn:_0x530c87,maxColumn:_0x1f341e}=_0x728ed4[_0x195f('0x27')](_0x244b17);_0x5712a8['removeColumns'](_0x935194,{'at':_0x530c87,'columns':_0x1f341e-_0x530c87+0x1});});const _0x569031=(_0x4ae0eb,_0x25db5b)=>{if(!_0x25db5b[_0x195f('0x16')]||!_0x25db5b[_0x195f('0x16')]['startsWith']('tablePaste'))return;const _0x51fb82=_0x25db5b[_0x195f('0x36')][_0x195f('0x3c')],_0x14c59a=_0x3adbb7[_0x195f('0x85')]()[_0x195f('0x72')](_0x575cbb=>_0x575cbb[_0x195f('0x86')]&&_0x575cbb[_0x195f('0x36')]&&_0x575cbb[_0x195f('0x36')][_0x195f('0x3c')]==_0x51fb82);_0x14c59a[_0x195f('0x3b')]&&_0x25db5b[_0x195f('0x5c')]()[_0x195f('0x3b')]!=_0x14c59a[_0x195f('0x3b')]&&_0x14c59a[_0x195f('0x6d')]((_0x5ca76a,_0x3b2fdd)=>(_0x5ca76a['next']=_0x3b2fdd,_0x3b2fdd[_0x195f('0x52')]=_0x5ca76a,_0x3b2fdd));};function _0x41346f(_0x2bb7df,_0x242ba0=!0x0){const {id:_0x439a8d}=_0x3adbb7[_0x195f('0x31')](_0x2bb7df[_0x195f('0x91')]),_0x401276=[_0x195f('0xe'),_0x195f('0x9a')],_0x3e42d3=_0x3adbb7[_0x195f('0x3f')][_0x195f('0x9e')](_0x2bb7df['markerName']);return _0x3e42d3&&_0x401276[_0x195f('0x9f')](_0x195f('0x84')),{'classes':_0x401276,'attributes':{'data-suggestion':_0x439a8d},'priority':_0x3e42d3&&_0x242ba0?0xbc2:0xbb8};}_0x3adbb7['on'](_0x195f('0x94'),_0x569031,{'priority':_0x195f('0x3d')}),_0x3adbb7['on'](_0x195f('0x18'),_0x569031,{'priority':'high'}),_0xe8d15a[_0x195f('0x73')][_0x195f('0x7e')][_0x195f('0x50')](()=>{let _0xec1ed8=!0x1;const _0x1ceaab=Array[_0x195f('0x1d')](_0xe8d15a['model'][_0x195f('0x7e')][_0x195f('0x79')][_0x195f('0x55')]());for(const {name:_0x4a88d7,data:_0x1f9963}of _0x1ceaab){const {group:_0x1f7f46,type:_0x44be6e,id:_0x1b9978}=_0x3adbb7[_0x195f('0x31')](_0x4a88d7);if(_0x195f('0x97')!=_0x1f7f46||_0x195f('0x30')!=_0x44be6e||_0x1f9963[_0x195f('0x77')])continue;if(!_0x3adbb7[_0x195f('0x98')](_0x1b9978))continue;const _0x1662f0=_0x3adbb7[_0x195f('0x62')](_0x1b9978)[_0x195f('0x5a')](),_0x1ebeb5=_0xe8d15a[_0x195f('0xa4')][_0x195f('0x5f')]('Users')['me'];for(const _0x5b1ec2 of _0x3adbb7[_0x195f('0x85')]()){if(!_0x5b1ec2[_0x195f('0x86')]||_0x5b1ec2[_0x195f('0x6')]!=_0x1ebeb5)continue;if('formatBlock'!=_0x5b1ec2[_0x195f('0x5d')]||_0x195f('0x19')!=_0x5b1ec2[_0x195f('0x16')])continue;if(_0x5b1ec2[_0x195f('0x5a')]()[_0x195f('0x49')](_0x4919c0=>_0x1662f0[_0x195f('0x87')](_0x3e8750=>_0x3e8750['containsRange'](_0x4919c0,!0x0))))for(const _0x4e103f of _0x5b1ec2[_0x195f('0x5c')]())_0x4e103f[_0x195f('0x86')]&&(_0x4e103f['discard'](),_0xec1ed8=!0x0);}}return _0xec1ed8;}),_0xe8d15a[_0x195f('0x73')][_0x195f('0x7e')]['registerPostFixer'](_0x47adb5=>{const _0x521fa2=_0xe8d15a['commands'][_0x195f('0x5f')](_0x195f('0x67'));if(!_0x521fa2||!_0x521fa2[_0x195f('0x7')][_0x195f('0x7a')](_0x47adb5[_0x195f('0x17')]))return!0x1;let _0x1c5ac4=!0x1;const _0x5b87cb=_0xe8d15a[_0x195f('0xa4')][_0x195f('0x5f')]('Users')['me'],_0x297ae7=_0xe8d15a['model'][_0x195f('0x7e')]['differ'][_0x195f('0x37')](),_0x8c1e2d=Array[_0x195f('0x1d')](_0xe8d15a[_0x195f('0x73')]['document'][_0x195f('0x79')][_0x195f('0x55')]())['filter'](({name:_0x56239a,data:_0x5b5148})=>{const {group:_0x5ee7b3,subType:_0x21a28f,authorId:_0xeab07}=_0x3adbb7[_0x195f('0x31')](_0x56239a);return _0x195f('0x97')==_0x5ee7b3&&_0x195f('0x2a')==_0x21a28f&&_0xeab07==_0x5b87cb['id']&&!_0x5b5148[_0x195f('0x77')];});for(const _0x50fdd7 of _0x297ae7){if(_0x195f('0x8')!=_0x50fdd7[_0x195f('0x5d')]||'tableCellSuggestion'!=_0x50fdd7['name']||0x1!=_0x50fdd7['length'])continue;const _0x1d7e13=_0x47adb5[_0x195f('0x25')](_0x50fdd7['position'],_0x50fdd7[_0x195f('0x8d')][_0x195f('0x68')](0x1));if(!_0x8c1e2d[_0x195f('0x1')](({data:_0x205222})=>_0x205222[_0x195f('0x4b')][_0x195f('0x12')](_0x1d7e13)))for(const {name:_0x5a8556,data:_0x30a76a}of _0x8c1e2d)if(_0x1d7e13[_0x195f('0x5b')](_0x30a76a[_0x195f('0x4b')])){_0x47adb5['updateMarker'](_0x5a8556,{'range':_0x1d7e13}),_0x1c5ac4=!0x0;break;}}return _0x1c5ac4;}),_0xe8d15a[_0x195f('0x73')]['document'][_0x195f('0x50')](_0x488649=>{let _0x20539b=!0x1;const _0x1ae6c2=_0xe8d15a[_0x195f('0xa4')][_0x195f('0x5f')](_0x195f('0xa3'))['me'],_0x25fce3=_0x3adbb7[_0x195f('0x85')]()[_0x195f('0x72')](_0x5236ec=>_0x5236ec['isInContent']&&_0x5236ec[_0x195f('0x6')]==_0x1ae6c2),_0x5d7ab4=new Set(),_0xeb72aa=new Set();for(const _0x3cb44c of _0x25fce3)if(_0x195f('0x2a')==_0x3cb44c[_0x195f('0x16')])for(const _0x57f2cb of _0x3cb44c[_0x195f('0x46')]()){const _0x11a3d6=_0x57f2cb[_0x195f('0x75')]()[_0x195f('0xc')]();if(_0x11a3d6){if(_0x11a3d6['is'](_0x195f('0x6c'),_0x195f('0x48'))&&ce(_0x11a3d6)){_0x3cb44c[_0x195f('0x83')](_0x57f2cb[_0x195f('0x66')]),_0x5d7ab4[_0x195f('0x61')](_0x11a3d6),_0x20539b=!0x0;const _0x3ee365=_0x11a3d6[_0x195f('0x64')],_0x3dfc0c=_0x11a3d6[_0x195f('0x2f')],_0xaf9f68=_0x3ee365&&_0x3ee365['is'](_0x195f('0x6c'),_0x195f('0x48')),_0x127dcf=_0x3dfc0c&&_0x3dfc0c['is'](_0x195f('0x6c'),_0x195f('0x48'));_0xaf9f68&&!_0x5d7ab4['has'](_0x3ee365)&&_0xeb72aa['add'](_0x3ee365),_0x127dcf&&!_0x5d7ab4['has'](_0x3dfc0c)&&_0xeb72aa[_0x195f('0x61')](_0x3dfc0c);}else _0x11a3d6['is'](_0x195f('0x6c'),_0x195f('0x47'))&&_0x11a3d6['isEmpty']&&(_0x3cb44c[_0x195f('0x83')](_0x57f2cb[_0x195f('0x66')]),_0x20539b=!0x0);}}else{if(_0x195f('0x19')==_0x3cb44c[_0x195f('0x16')]){if(!_0x3cb44c[_0x195f('0x36')]||!_0x3cb44c[_0x195f('0x36')][_0x195f('0x3c')])continue;const _0x592e65=_0x3cb44c[_0x195f('0x36')]['markerAttributes'];if(_0x592e65&&Object[_0x195f('0x4d')](_0x592e65)['length'])continue;const _0x889e5f=_0x3cb44c[_0x195f('0x36')][_0x195f('0x3c')];let _0x4ee109=!0x0,_0x48dcf0=!0x0;for(const _0x4355d7 of _0x25fce3)if(_0x4355d7[_0x195f('0x16')]&&_0x4355d7['subType'][_0x195f('0x6a')](_0x195f('0x2a'))){if(!_0x4355d7[_0x195f('0x36')][_0x195f('0x3c')]){_0x48dcf0=!0x1;break;}if(_0x4355d7['id']!=_0x3cb44c['id']&&_0x4355d7['attributes'][_0x195f('0x3c')]==_0x889e5f){_0x4ee109=!0x1;break;}}_0x48dcf0&&_0x4ee109&&(_0x3cb44c[_0x195f('0x8a')](),_0x20539b=!0x0);}}for(const _0x53cc6 of _0x5d7ab4)_0x488649[_0x195f('0x74')](_0x53cc6);for(const _0x27acae of _0xeb72aa)_0x488649[_0x195f('0x53')](_0x27acae);return _0x20539b;}),_0xe8d15a[_0x195f('0x2c')][_0x195f('0x38')]('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x34d8c8,_0x4fd1cf)=>_0x41346f(_0x34d8c8),'converterPriority':'high'}),_0xe8d15a[_0x195f('0x2c')][_0x195f('0x38')]('dataDowncast')['markerToHighlight']({'model':_0x195f('0x9'),'view':(_0x3dbd86,_0x216dd4)=>_0x216dd4[_0x195f('0x9b')]['showSuggestionHighlights']?_0x41346f(_0x3dbd86,!0x1):null,'converterPriority':'high'});const _0x1954c3=_0xe8d15a[_0x195f('0x3e')]['view'];this[_0x195f('0x3')](_0x1954c3[_0x195f('0x7e')],_0x195f('0x28'),(_0x2052f8,_0x161806)=>{const _0x57561f=[];for(const _0x4c4d34 of _0x1954c3['createRangeIn'](_0x161806['content'])[_0x195f('0x8c')]())_0x4c4d34['is']('element',_0x195f('0x26'))&&_0x57561f[_0x195f('0x9f')](_0x4c4d34);_0x1954c3[_0x195f('0x4e')](_0x38dc3a=>{for(const _0x44f9ed of _0x57561f)_0x38dc3a[_0x195f('0x81')](_0x38dc3a[_0x195f('0xb')](_0x44f9ed),_0x38dc3a['createPositionBefore'](_0x44f9ed)),_0x38dc3a[_0x195f('0x74')](_0x44f9ed);});});}}function ce(_0xb055f1){if(_0xb055f1['isEmpty'])return!0x0;const _0xd16b17=_0xb055f1[_0x195f('0x1e')](0x0);return _0xd16b17['is']('element',_0x195f('0x47'))&&_0xd16b17[_0x195f('0x89')];}function fe(_0x29a79b,_0x40e6d1={},_0x1d10e4){for(const {isAnchor:_0x56f62e,cellHeight:_0x8ca25b,cellWidth:_0x41faa2}of _0x1d10e4[_0x195f('0x71')](_0x29a79b,{'includeAllSlots':!0x0,..._0x40e6d1}))if(!_0x56f62e||0x1!=_0x8ca25b||0x1!=_0x41faa2)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x418c=['columnWidths','getTableColumnsWidths','enableCommand','afterInit','commandParams','plugins','handleResizeTableWidthCommand','resizeTableWidth','handleSuggestionDescription','_suggestionFactory','locale','getSuggestionCallback','tableWidth','formatGroupId','registerCustomCallback','Users','resizeColumnWidths','subType','discard','author','editor','markBlockFormat','data','get','_descriptionFactory','TableColumnResizeEditing','format','has','change','accept','table','bind','model','document','formatBlock','resizeTable','TrackChangesEditing','selection'];(function(_0x14b53b,_0x418c41){const _0x5ac46f=function(_0xfeff27){while(--_0xfeff27){_0x14b53b['push'](_0x14b53b['shift']());}};_0x5ac46f(++_0x418c41);}(_0x418c,0xbb));const _0x5ac4=function(_0x14b53b,_0x418c41){_0x14b53b=_0x14b53b-0x0;let _0x5ac46f=_0x418c[_0x14b53b];return _0x5ac46f;};import{Plugin as _0xa19969}from'ckeditor5/src/core';import{getTranslation as _0x635fad}from'../utils/common-translations';export default class wt extends _0xa19969{[_0x5ac4('0x6')](){if(!this[_0x5ac4('0x17')][_0x5ac4('0x8')][_0x5ac4('0x1e')](_0x5ac4('0x1c')))return;const _0x321a6e=this[_0x5ac4('0x17')]['plugins'][_0x5ac4('0x1a')](_0x5ac4('0x1'));_0x321a6e['enableCommand'](_0x5ac4('0xa'),this[_0x5ac4('0x9')][_0x5ac4('0x22')](this)),_0x321a6e[_0x5ac4('0x5')](_0x5ac4('0x13'),this['handleResizeTableWidthCommand'][_0x5ac4('0x22')](this)),_0x321a6e[_0x5ac4('0xc')][_0x5ac4('0x11')]('formatBlock','resizeTable',_0x5ac4('0x20'),_0x321a6e[_0x5ac4('0xc')][_0x5ac4('0xe')](_0x5ac4('0x25'),null,_0x5ac4('0x15'))),_0x321a6e[_0x5ac4('0xc')][_0x5ac4('0x11')](_0x5ac4('0x25'),_0x5ac4('0x0'),_0x5ac4('0x15'),_0x321a6e[_0x5ac4('0xc')]['getSuggestionCallback'](_0x5ac4('0x25'),null,_0x5ac4('0x20'))),_0x321a6e[_0x5ac4('0x1b')]['registerDescriptionCallback'](this['handleSuggestionDescription'][_0x5ac4('0x22')](this));}[_0x5ac4('0x9')](_0x3cabf0,_0x430432){const _0x4d4b44=this['editor'][_0x5ac4('0x8')]['get'](_0x5ac4('0x1')),_0x29760f=this[_0x5ac4('0x17')][_0x5ac4('0x8')]['get']('TableColumnResizeEditing'),_0xa01d5f=_0x430432[_0x5ac4('0x21')]||this[_0x5ac4('0x17')]['model'][_0x5ac4('0x24')][_0x5ac4('0x2')]['getSelectedElement']();this['editor'][_0x5ac4('0x23')][_0x5ac4('0x1f')](()=>{const _0x368363=_0x29760f['getColumnGroupElement'](_0xa01d5f);let _0x142957=_0x368363?_0x29760f[_0x5ac4('0x4')](_0x368363):null,_0x288088=_0xa01d5f['getAttribute']('tableWidth')||null;const _0x324c15=_0x430432[_0x5ac4('0xf')]||_0x288088,_0x401333=_0x430432['columnWidths']||_0x142957,_0x5640fb=this[_0x5ac4('0x17')][_0x5ac4('0x8')]['get'](_0x5ac4('0x12'))['me'];for(const _0x24cb7e of _0x4d4b44['getSuggestions']()){const _0x1c3554=_0x24cb7e['getContainedElement']();if(_0x5ac4('0x0')===_0x24cb7e[_0x5ac4('0x14')]&&_0x1c3554===_0xa01d5f){_0x24cb7e[_0x5ac4('0x16')]!==_0x5640fb&&_0x24cb7e[_0x5ac4('0x15')]();const _0x5cb6aa=_0x24cb7e[_0x5ac4('0x19')][_0x5ac4('0x7')];_0x288088=_0x5cb6aa[0x0][_0x5ac4('0xf')],_0x142957=_0x5cb6aa[0x0][_0x5ac4('0x3')];break;}}_0x3cabf0({'table':_0xa01d5f,'tableWidth':_0x324c15,'columnWidths':_0x401333}),_0x4d4b44[_0x5ac4('0x18')](_0xa01d5f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x288088,'columnWidths':_0x142957}],'formatGroupId':_0x5ac4('0x0')},[],_0x5ac4('0x0'));});}[_0x5ac4('0xb')](_0x3eecc9){const {data:_0x50b201}=_0x3eecc9;if(_0x50b201&&_0x5ac4('0x0')===_0x50b201[_0x5ac4('0x10')]){const _0x5de7b2='*Format:*\x20resize\x20table';return{'type':_0x5ac4('0x1d'),'content':_0x635fad(this['editor'][_0x5ac4('0xd')],_0x5de7b2)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e9a=['accept','isBefore','createPositionBefore','TableUtils','afterInit','headingRows','data','plugins','writer','getSelectionAffectedTableCells','_acceptFormatSuggestionCallbackFactory','markBlockFormat','nodeBefore','addMarker:suggestion','editor','value','selection','bindElementToMarker','getSuggestion','getColumnIndexes','markerName','locale','formatBlock','unbindElementFromMarkerName','markerNameToElements','toViewElement','setTableRowHeader','enableCommand','registerDescriptionCallback','childCount','ck-suggestion-marker--active','getChild','highest','activeMarkers','_suggestionFactory','setTableColumnHeader','forceValue','consume','getRowIndexes','registerCustomCallback','change','ck-suggestion-marker-','removeMarker:suggestion','markerRange','commandName','commands','headingColumns','_descriptionFactory','_splitMarkerName','removeAttribute','showSuggestionHighlights','parent','FORMAT_REGULAR_COLUMN','editing','*Format:*\x20%0','createRange','index','data-suggestion','FORMAT_REGULAR_ROW','end','get','commandParams','mapper','getAttribute','FORMAT_HEADER_COLUMN','getCellLocation','includes','TableEditing','document','createPositionAfter','removeClass','table','format','downcastDispatcher','addClass','name','cell','from','model','consumable','findAncestor','start','last','createTableWalker'];(function(_0x4ec97f,_0x2e9aed){const _0x17d644=function(_0x1d49f7){while(--_0x1d49f7){_0x4ec97f['push'](_0x4ec97f['shift']());}};_0x17d644(++_0x2e9aed);}(_0x2e9a,0x1af));const _0x17d6=function(_0x4ec97f,_0x2e9aed){_0x4ec97f=_0x4ec97f-0x0;let _0x17d644=_0x2e9a[_0x4ec97f];return _0x17d644;};import{Plugin as _0x22f3bb}from'ckeditor5/src/core';import _0x27b886 from'./table';import{getTranslation as _0x42dc5f}from'../utils/common-translations';export default class pt extends _0x22f3bb{static get['requires'](){return[_0x27b886];}[_0x17d6('0x4d')](){const _0x3432be=this[_0x17d6('0x3')];if(!_0x3432be[_0x17d6('0x50')]['has'](_0x17d6('0x38')))return;const _0x2dfbb3=_0x3432be[_0x17d6('0xa')],_0x5973f8=_0x3432be[_0x17d6('0x50')][_0x17d6('0x31')]('TrackChangesEditing'),_0x57b038=_0x3432be[_0x17d6('0x50')][_0x17d6('0x31')](_0x17d6('0x4c')),_0x177495=_0x3432be[_0x17d6('0x50')][_0x17d6('0x31')](_0x27b886);function _0x1485e2({showActiveMarker:_0x3b2368=!0x0,setDataAttribute:_0x148b8b=!0x0}={}){return(_0x5a70f0,_0x33d812,_0x1e0d5d)=>{const {type:_0x1ea5a2,id:_0x5bebea}=_0x5973f8[_0x17d6('0x25')](_0x33d812['markerName']),_0x4b7f38=_0x5973f8[_0x17d6('0x7')](_0x5bebea);if(!_0x4b7f38[_0x17d6('0x4f')]||'setTableColumnHeader'!=_0x4b7f38['data'][_0x17d6('0x21')])return;if(_0x33d812['item'])return void _0x5a70f0['stop']();if(!_0x1e0d5d[_0x17d6('0x44')][_0x17d6('0x1a')](_0x33d812[_0x17d6('0x20')],_0x5a70f0[_0x17d6('0x40')]))return;const _0x10f476=_0x33d812[_0x17d6('0x20')][_0x17d6('0x46')]['nodeAfter'],_0x44eb19=_0x33d812[_0x17d6('0x20')][_0x17d6('0x30')][_0x17d6('0x1')],_0x335973=_0x10f476[_0x17d6('0x28')][_0x17d6('0x28')],{column:_0x3be0f5}=_0x57b038[_0x17d6('0x36')](_0x10f476),{column:_0x130e87}=_0x57b038[_0x17d6('0x36')](_0x44eb19);for(let _0x1fcc5f=_0x3be0f5;_0x1fcc5f<=_0x130e87;_0x1fcc5f++){const _0x28c411=_0x57b038['createTableWalker'](_0x335973,{'column':_0x1fcc5f,'includeAllSlots':!0x1});for(const _0xeac473 of _0x28c411){const _0x50c646=_0xeac473[_0x17d6('0x41')],_0x2a149a=_0x1e0d5d[_0x17d6('0x33')][_0x17d6('0xe')](_0x50c646);_0x1e0d5d[_0x17d6('0x51')][_0x17d6('0x3f')](_0x17d6('0x1e')+_0x1ea5a2,_0x2a149a),_0x148b8b&&_0x1e0d5d[_0x17d6('0x51')]['setAttribute'](_0x17d6('0x2e'),_0x5bebea,_0x2a149a),_0x1e0d5d[_0x17d6('0x33')][_0x17d6('0x6')](_0x2a149a,_0x33d812[_0x17d6('0x9')]),_0x3b2368&&(_0x5973f8[_0x17d6('0x16')][_0x17d6('0x37')](_0x33d812[_0x17d6('0x9')])?_0x1e0d5d[_0x17d6('0x51')][_0x17d6('0x3f')]('ck-suggestion-marker--active',_0x2a149a):_0x1e0d5d[_0x17d6('0x51')]['removeClass'](_0x17d6('0x13'),_0x2a149a));}}};}_0x5973f8['enableCommand']('setTableRowHeader',(_0x43c70c,_0x582ebf)=>{const _0x13d18d=_0x57b038[_0x17d6('0x52')](_0x3432be[_0x17d6('0x43')]['document'][_0x17d6('0x5')]),_0x18f569=_0x57b038[_0x17d6('0x1b')](_0x13d18d),_0x3ce3e2=_0x13d18d[0x0][_0x17d6('0x45')](_0x17d6('0x3c')),_0xd919b8=_0x3ce3e2[_0x17d6('0x34')](_0x17d6('0x4e'))||0x0,_0x310670=_0x582ebf&&null!==_0x582ebf[_0x17d6('0x19')]?_0x582ebf[_0x17d6('0x19')]:!_0x3432be['commands'][_0x17d6('0x31')]('setTableRowHeader')['value'],_0x56cf46=_0x310670?_0x18f569[_0x17d6('0x47')]:_0x18f569['first'],_0x4b9633=_0x3ce3e2[_0x17d6('0x14')](_0x56cf46);let _0x4bee94;if(_0x310670){const _0x2ca309=_0x3ce3e2['getChild'](_0xd919b8);if(_0x4b9633[_0x17d6('0x2d')]<_0x2ca309['index'])return;_0x4bee94=_0x3432be['model'][_0x17d6('0x2c')](_0x3432be[_0x17d6('0x43')]['createPositionBefore'](_0x2ca309['getChild'](0x0)),_0x3432be[_0x17d6('0x43')]['createPositionAfter'](_0x4b9633[_0x17d6('0x14')](_0x4b9633['childCount']-0x1)));}else{const _0x162fab=_0x3ce3e2[_0x17d6('0x14')](_0xd919b8-0x1);if(!_0x162fab)return;_0x4bee94=_0x3432be[_0x17d6('0x43')]['createRange'](_0x3432be[_0x17d6('0x43')][_0x17d6('0x4b')](_0x4b9633[_0x17d6('0x14')](0x0)),_0x3432be[_0x17d6('0x43')][_0x17d6('0x3a')](_0x162fab[_0x17d6('0x14')](_0x162fab[_0x17d6('0x12')]-0x1)));}_0x3432be['model'][_0x17d6('0x1d')](()=>{_0x5973f8[_0x17d6('0x0')](_0x4bee94,{'commandName':_0x17d6('0xf'),'commandParams':[{'forceValue':_0x310670}]},[],_0x17d6('0xf'));});}),_0x5973f8[_0x17d6('0x10')](_0x17d6('0x18'),(_0x2d7a46,_0x873dc6)=>{const _0x1651c8=_0x3432be['plugins'][_0x17d6('0x31')](_0x17d6('0x4c')),_0x38cd66=_0x1651c8[_0x17d6('0x52')](_0x3432be[_0x17d6('0x43')][_0x17d6('0x39')]['selection']),_0x34c07d=_0x1651c8[_0x17d6('0x8')](_0x38cd66),_0x2b8868=_0x38cd66[0x0][_0x17d6('0x45')](_0x17d6('0x3c')),_0x26ab65=_0x2b8868[_0x17d6('0x34')](_0x17d6('0x23'))||0x0,_0x222150=_0x873dc6&&null!==_0x873dc6['forceValue']?_0x873dc6[_0x17d6('0x19')]:!_0x3432be[_0x17d6('0x22')][_0x17d6('0x31')](_0x17d6('0x18'))[_0x17d6('0x4')];let _0x2fcc19;const _0x2c3dab=_0x2b8868[_0x17d6('0x14')](0x0),_0x406f33=_0x222150?_0x34c07d[_0x17d6('0x47')]:_0x34c07d['first'],_0x36e80f=_0x1651c8[_0x17d6('0x48')](_0x2b8868,{'startRow':0x0,'column':_0x406f33,'includeAllSlots':!0x1}),_0x46040e=Array[_0x17d6('0x42')](_0x36e80f)[0x0][_0x17d6('0x41')];if(_0x222150){const _0xc795c3=_0x2c3dab[_0x17d6('0x14')](_0x26ab65);if(_0x46040e[_0x17d6('0x4a')](_0xc795c3))return;_0x2fcc19=_0x3432be[_0x17d6('0x43')][_0x17d6('0x2c')](_0x3432be['model']['createPositionBefore'](_0xc795c3),_0x3432be[_0x17d6('0x43')][_0x17d6('0x3a')](_0x46040e));}else{const _0x5e26ec=_0x2c3dab[_0x17d6('0x14')](_0x26ab65-0x1);if(!_0x5e26ec)return;_0x2fcc19=_0x3432be['model'][_0x17d6('0x2c')](_0x3432be['model']['createPositionBefore'](_0x46040e),_0x3432be[_0x17d6('0x43')][_0x17d6('0x3a')](_0x5e26ec));}_0x3432be[_0x17d6('0x43')]['change'](()=>{_0x5973f8[_0x17d6('0x0')](_0x2fcc19,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0x222150}]},[],_0x17d6('0x18'));});}),_0x3432be[_0x17d6('0x2a')][_0x17d6('0x3e')]['on'](_0x17d6('0x2'),_0x1485e2(),{'priority':'highest'}),_0x3432be[_0x17d6('0x4f')][_0x17d6('0x3e')]['on'](_0x17d6('0x2'),(_0x4af11b,_0x8cbc34,_0x28c1b5)=>{_0x28c1b5['options'][_0x17d6('0x27')]&&_0x1485e2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4af11b,_0x8cbc34,_0x28c1b5);},{'priority':_0x17d6('0x15')}),_0x3432be['editing'][_0x17d6('0x3e')]['on'](_0x17d6('0x1f'),(_0x327bef,_0x4b5955,_0x1c56b5)=>{const {type:_0x1c86d4,id:_0x400bb1}=_0x5973f8[_0x17d6('0x25')](_0x4b5955[_0x17d6('0x9')]),_0x23a14d=_0x5973f8['getSuggestion'](_0x400bb1);if(!_0x23a14d[_0x17d6('0x4f')]||_0x17d6('0x18')!=_0x23a14d[_0x17d6('0x4f')][_0x17d6('0x21')])return;const _0x453d6b=_0x1c56b5[_0x17d6('0x33')][_0x17d6('0xd')](_0x4b5955[_0x17d6('0x9')]);if(_0x453d6b)for(const _0x3b4b32 of _0x453d6b)_0x1c56b5[_0x17d6('0x51')][_0x17d6('0x3b')]('ck-suggestion-marker-'+_0x1c86d4,_0x3b4b32),_0x1c56b5[_0x17d6('0x51')][_0x17d6('0x3b')](_0x17d6('0x13'),_0x3b4b32),_0x1c56b5['writer'][_0x17d6('0x26')](_0x17d6('0x2e'),_0x3b4b32),_0x1c56b5[_0x17d6('0x33')][_0x17d6('0xc')](_0x3b4b32,_0x4b5955[_0x17d6('0x9')]);},{'priority':_0x17d6('0x15')}),_0x5973f8[_0x17d6('0x24')][_0x17d6('0x11')](_0x1ed9de=>{const {data:_0x44f702}=_0x1ed9de;if(_0x44f702){if('setTableRowHeader'==_0x44f702[_0x17d6('0x21')]){const _0x1d66b0=_0x44f702[_0x17d6('0x32')][0x0][_0x17d6('0x19')];return _0xc97c09(_0x42dc5f(_0x2dfbb3,_0x1d66b0?'FORMAT_HEADER_ROW':_0x17d6('0x2f')));}if('setTableColumnHeader'==_0x44f702['commandName']){const _0x55fb7e=_0x44f702[_0x17d6('0x32')][0x0][_0x17d6('0x19')];return _0xc97c09(_0x42dc5f(_0x2dfbb3,_0x55fb7e?_0x17d6('0x35'):_0x17d6('0x29')));}}function _0xc97c09(_0x2d1dad){return{'type':_0x17d6('0x3d'),'content':_0x42dc5f(_0x2dfbb3,_0x17d6('0x2b'),_0x2d1dad)};}});const _0x5e0aed=_0x177495[_0x17d6('0x53')]();_0x5973f8[_0x17d6('0x17')][_0x17d6('0x1c')](_0x17d6('0xb'),'setTableRowHeader',_0x17d6('0x49'),_0x5e0aed),_0x5973f8[_0x17d6('0x17')][_0x17d6('0x1c')](_0x17d6('0xb'),_0x17d6('0x18'),_0x17d6('0x49'),_0x5e0aed);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2748=['getSelectionAffectedTableCells','$graveyard','execute','fromRange','change','registerDescriptionCallback','direction','value','cell','TableUtils','markBlockFormat','requires','mergeTableCellLeft','forceDefaultExecution','findAncestor','add','table','selection','commandName','registerCustomCallback','tableCell','highest','author','_tablePostFixingSubtypes','getCellLocation','setSelection','accept','rootName','createRangeOn','model','enableCommand','_suggestionFactory','TableEditing','has','getAncestors','deletion','markMultiRangeBlockFormat','horizontally','getFirstPosition','containsRange','insertion','afterInit','root','mergeTableCells','isEnabled','push','editor','locale','type','length','find','getSuggestions','isInContent','splitTableCellHorizontally','mergeTableCellRight','mergeTableCellUp','trackChanges','_areSelectedCellsMergable','TrackChangesEditing','stop','document','_areMergableCells','element','_isForcedDefaultExecutionBlock','get','map','plugins','splitTableCellVertically','createTableWalker','from','size','formatBlock','refresh','getRanges','mergeTableCellDown','commands','*Split\x20cell:*\x20horizontally','format'];(function(_0x24b729,_0x2748ac){const _0x40d0f5=function(_0x432b59){while(--_0x432b59){_0x24b729['push'](_0x24b729['shift']());}};_0x40d0f5(++_0x2748ac);}(_0x2748,0xfe));const _0x40d0=function(_0x24b729,_0x2748ac){_0x24b729=_0x24b729-0x0;let _0x40d0f5=_0x2748[_0x24b729];return _0x40d0f5;};import{Plugin as _0x57ec33}from'ckeditor5/src/core';import _0x1e21c8 from'./table';import{LiveRange as _0x5894b1}from'ckeditor5/src/engine';import{getTranslation as _0x3b74ef}from'../utils/common-translations';export default class dt extends _0x57ec33{static get[_0x40d0('0x45')](){return[_0x1e21c8];}[_0x40d0('0x15')](){const _0x34799d=this[_0x40d0('0x1a')],_0x400b0d=_0x34799d[_0x40d0('0x9')][_0x40d0('0x28')]['selection'],_0x34c500=_0x34799d[_0x40d0('0x1b')];if(!_0x34799d['plugins']['has'](_0x40d0('0xc')))return;const _0x544bdf=_0x34799d['plugins'][_0x40d0('0x2c')]('TrackChangesEditing'),_0x248410=_0x34799d[_0x40d0('0x2e')][_0x40d0('0x2c')]('TableUtils'),_0x5dbf4f=_0x34799d['plugins'][_0x40d0('0x2c')](_0x1e21c8);_0x5dbf4f[_0x40d0('0x3')][_0x40d0('0x19')](_0x40d0('0x17')),_0x544bdf['enableCommand'](_0x40d0('0x17'),()=>{const _0x7c87d1=_0x248410[_0x40d0('0x3a')](_0x34799d[_0x40d0('0x9')]['document'][_0x40d0('0x4b')]);_0x34799d[_0x40d0('0x9')][_0x40d0('0x3e')](()=>{_0x544bdf['markMultiRangeBlockFormat'](_0x7c87d1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x34799d[_0x40d0('0x37')]['get'](_0x40d0('0x17'))['on']('execute',(_0x5328d8,_0x1f43b1)=>{_0x34799d[_0x40d0('0x37')][_0x40d0('0x2c')](_0x40d0('0x24'))[_0x40d0('0x41')]&&(_0x1f43b1[_0x40d0('0x1d')]>0x0&&_0x1f43b1[_0x1f43b1[_0x40d0('0x1d')]-0x1]&&_0x1f43b1[_0x1f43b1[_0x40d0('0x1d')]-0x1][_0x40d0('0x47')]||_0x544bdf[_0x40d0('0x2b')]||this['_areSelectedCellsMergable']()||_0x5328d8[_0x40d0('0x27')]());},{'priority':_0x40d0('0x1')});for(const _0x47205a of[_0x40d0('0x23'),'mergeTableCellRight',_0x40d0('0x36'),_0x40d0('0x46')]){const _0x28fe9f=_0x34799d[_0x40d0('0x37')]['get'](_0x47205a);_0x544bdf[_0x40d0('0xa')](_0x47205a,()=>{const _0x262f28=_0x34799d[_0x40d0('0x9')][_0x40d0('0x28')][_0x40d0('0x4b')][_0x40d0('0x12')]()[_0x40d0('0xe')]()[_0x40d0('0x1e')](_0x12d24b=>_0x12d24b['is']('element',_0x40d0('0x0'))),_0xea7266=_0x28fe9f[_0x40d0('0x41')];_0x34799d[_0x40d0('0x9')][_0x40d0('0x3e')](()=>{_0x544bdf[_0x40d0('0x10')]([_0x262f28,_0xea7266],{'commandName':_0x40d0('0x17'),'commandParams':[]},[],_0x40d0('0x17'));});});}for(const _0x3dadaf of[_0x40d0('0x2f'),_0x40d0('0x21')]){const _0xab09f2=_0x34799d['commands']['get'](_0x3dadaf);_0x544bdf[_0x40d0('0xa')](_0x3dadaf,()=>{const _0x3687ea=_0x248410[_0x40d0('0x3a')](_0x34799d[_0x40d0('0x9')][_0x40d0('0x28')][_0x40d0('0x4b')])[0x0],_0x2fc298=_0x3687ea[_0x40d0('0x48')](_0x40d0('0x4a')),{column:_0x459fd4,row:_0x32a6e1}=_0x248410[_0x40d0('0x4')](_0x3687ea);let _0x34f162=[];if(_0x40d0('0x11')==_0xab09f2[_0x40d0('0x40')]){const _0x533c1c=_0x248410[_0x40d0('0x30')](_0x2fc298,{'startRow':_0x32a6e1,'endRow':_0x32a6e1,'includeAllSlots':!0x0});_0x34f162=Array[_0x40d0('0x31')](_0x533c1c)['map'](_0x3e502f=>_0x3e502f[_0x40d0('0x42')]);}else{const _0x4df45f=_0x248410[_0x40d0('0x30')](_0x2fc298,{'column':_0x459fd4,'includeAllSlots':!0x0});_0x34f162=Array[_0x40d0('0x31')](_0x4df45f)['map'](_0x33302e=>_0x33302e[_0x40d0('0x42')]);}_0x34799d[_0x40d0('0x9')]['change'](_0x4505d7=>{_0x544bdf[_0x40d0('0x44')](_0x4505d7['createRangeOn'](_0x3687ea),{'commandName':_0x3dadaf,'commandParams':[]},_0x34f162,_0x3dadaf);});});}_0x544bdf['_descriptionFactory'][_0x40d0('0x3f')](_0x503236=>{const {data:_0x52be28}=_0x503236;if(_0x52be28)return'mergeTableCells'==_0x52be28[_0x40d0('0x4c')]?{'type':_0x40d0('0x39'),'content':_0x3b74ef(_0x34c500,'*Merge\x20cells*')}:void 0x0;}),_0x544bdf['_descriptionFactory'][_0x40d0('0x3f')](_0x66f470=>{const {data:_0x3d3091}=_0x66f470;if(_0x3d3091)return _0x40d0('0x2f')==_0x3d3091['commandName']?{'type':_0x40d0('0x39'),'content':_0x3b74ef(_0x34c500,'*Split\x20cell:*\x20vertically')}:_0x40d0('0x21')==_0x3d3091['commandName']?{'type':_0x40d0('0x39'),'content':_0x3b74ef(_0x34c500,_0x40d0('0x38'))}:void 0x0;});const _0x4e5d2d=_0x5dbf4f['_acceptFormatSuggestionCallbackFactory']();for(const _0xc518 of[_0x40d0('0x23'),_0x40d0('0x22'),_0x40d0('0x36'),_0x40d0('0x46')])_0x544bdf[_0x40d0('0xb')]['registerCustomCallback'](_0x40d0('0x33'),_0xc518,_0x40d0('0x6'),_0x4e5d2d);for(const _0x4588df of[_0x40d0('0x2f'),'splitTableCellHorizontally'])_0x544bdf[_0x40d0('0xb')][_0x40d0('0x4d')](_0x40d0('0x33'),_0x4588df,'accept',_0x4e5d2d);_0x544bdf[_0x40d0('0xb')][_0x40d0('0x4d')](_0x40d0('0x33'),_0x40d0('0x17'),'accept',_0x3f9131=>{_0x34799d['model'][_0x40d0('0x3e')](_0x160936=>{const _0x361aef=Array[_0x40d0('0x31')](_0x400b0d[_0x40d0('0x35')]())[_0x40d0('0x2d')](_0x5681d0=>_0x5894b1[_0x40d0('0x3d')](_0x5681d0));_0x160936[_0x40d0('0x5')](_0x3f9131),_0x34799d[_0x40d0('0x37')][_0x40d0('0x2c')]('mergeTableCells')[_0x40d0('0x34')](),_0x34799d[_0x40d0('0x3c')](_0x40d0('0x17'),{'forceDefaultExecution':!0x0});const _0x1c9a58=_0x361aef['filter'](_0x338168=>_0x40d0('0x3b')!=_0x338168[_0x40d0('0x16')][_0x40d0('0x7')]);_0x1c9a58['length']>0x0&&_0x160936[_0x40d0('0x5')](_0x1c9a58);for(const _0x2cf677 of _0x361aef)_0x2cf677['detach']();});});for(const _0x39628b of[_0x40d0('0x23'),_0x40d0('0x36'),_0x40d0('0x46'),_0x40d0('0x22')]){const _0x4024d1=_0x34799d[_0x40d0('0x37')][_0x40d0('0x2c')](_0x39628b);_0x4024d1['on']('set:isEnabled',(_0x415f1b,_0x380d53,_0xd70115)=>{if(_0xd70115){const _0x10b5b7=_0x34799d['model']['document'][_0x40d0('0x4b')][_0x40d0('0x12')]()[_0x40d0('0xe')]()[_0x40d0('0x1e')](_0x3ed0c4=>_0x3ed0c4['is'](_0x40d0('0x2a'),'tableCell'));this['_areMergableCells'](_0x4024d1[_0x40d0('0x41')],_0x10b5b7)||(_0x415f1b['return']=!0x1,_0x415f1b[_0x40d0('0x27')]());}},{'priority':'low'});}}[_0x40d0('0x25')](){const _0x2e4508=this[_0x40d0('0x1a')][_0x40d0('0x37')]['get'](_0x40d0('0x17')),_0x2f8a30=this['editor'][_0x40d0('0x2e')][_0x40d0('0x2c')](_0x40d0('0x43'));if(!_0x2e4508[_0x40d0('0x18')])return!0x1;const _0x5320bc=_0x2f8a30[_0x40d0('0x3a')](this[_0x40d0('0x1a')]['model'][_0x40d0('0x28')]['selection']);for(const _0x1b6436 of _0x5320bc)for(const _0x32b710 of _0x5320bc)if(_0x1b6436!=_0x32b710&&!this['_areMergableCells'](_0x1b6436,_0x32b710))return!0x1;return!0x0;}[_0x40d0('0x29')](_0xfb62c8,_0x799039){const _0x71c678=this[_0x40d0('0x1a')]['plugins'][_0x40d0('0x2c')](_0x40d0('0x26')),_0x11dfcd=this[_0x40d0('0x1a')]['model'][_0x40d0('0x8')](_0xfb62c8),_0x18cc7c=this[_0x40d0('0x1a')][_0x40d0('0x9')][_0x40d0('0x8')](_0x799039),_0x3dd554=new Set(),_0x5225c5=new Set();for(const _0x24803f of _0x71c678[_0x40d0('0x1f')]())if((_0x40d0('0x14')==_0x24803f[_0x40d0('0x1c')]||_0x40d0('0xf')==_0x24803f['type']||'mergeTableCells'==_0x24803f['subType'])&&_0x24803f[_0x40d0('0x20')])for(const _0x408472 of _0x24803f['getRanges']())_0x408472[_0x40d0('0x13')](_0x11dfcd,!0x0)&&_0x3dd554[_0x40d0('0x49')](_0x24803f[_0x40d0('0x1c')]+':'+_0x24803f['author']['id']),_0x408472['containsRange'](_0x18cc7c,!0x0)&&_0x5225c5['add'](_0x24803f[_0x40d0('0x1c')]+':'+_0x24803f[_0x40d0('0x2')]['id']);if(_0x3dd554[_0x40d0('0x32')]!=_0x5225c5[_0x40d0('0x32')])return!0x1;for(const _0x6f07dc of _0x3dd554)if(!_0x5225c5[_0x40d0('0xd')](_0x6f07dc))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ea6=['locale','plugins','enableCommand','insertTableOfContents','commands','TrackChangesEditing','registerElementLabel','afterInit','get'];(function(_0x135cf0,_0x5ea6f4){const _0x4bf4e5=function(_0x1febaf){while(--_0x1febaf){_0x135cf0['push'](_0x135cf0['shift']());}};_0x4bf4e5(++_0x5ea6f4);}(_0x5ea6,0xb5));const _0x4bf4=function(_0x135cf0,_0x5ea6f4){_0x135cf0=_0x135cf0-0x0;let _0x4bf4e5=_0x5ea6[_0x135cf0];return _0x4bf4e5;};import{Plugin as _0x4d3958}from'ckeditor5/src/core';import{getTranslation as _0x3d8f1a}from'../utils/common-translations';export default class bt extends _0x4d3958{[_0x4bf4('0x6')](){const _0x5f3326=this['editor'];if(!_0x5f3326[_0x4bf4('0x3')][_0x4bf4('0x7')](_0x4bf4('0x2')))return;_0x5f3326[_0x4bf4('0x0')][_0x4bf4('0x7')](_0x4bf4('0x4'))[_0x4bf4('0x1')](_0x4bf4('0x2'));const _0x53022f=_0x5f3326[_0x4bf4('0x0')][_0x4bf4('0x7')](_0x4bf4('0x4')),_0x49654c=_0x5f3326[_0x4bf4('0x8')];_0x53022f['_descriptionFactory'][_0x4bf4('0x5')]('tableOfContents',_0x33dedf=>_0x3d8f1a(_0x49654c,'ELEMENT_TABLE_OF_CONTENTS',_0x33dedf));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23c1=['model','get','document','TrackChangesEditing','formatBlock','tableCellBackgroundColor','TableUtils','plugins','getSuggestions','enableCommand','tableBackgroundColor','registerCustomCallback','getFirstPosition','accept','table','subType','start','tableCellProperties','tableCellHorizontalAlignment','handleDiscardAction','format','markBlockFormat','tableBorderWidth','join','change','tableCellPadding','editor','tableBorderColor','handleSuggestionDescription','tableBorderStyle','nodeAfter','tableCellBorderColor','_getSuggestion','has','tableAlignment','discard','TableCellPropertiesEditing','TablePropertiesEditing','tableCellBorderStyle','tableHeight','_descriptionFactory','*Format:*\x20change\x20table\x20cell\x20properties','setAttribute','selection','findAncestor','getContainedElement','enqueueChange','getSelectionAffectedTableCells','registerDescriptionCallback','_suggestionFactory','getAttribute','tableCellBorderWidth','tableProperties','locale','_handlePropertyChange'];(function(_0x14d6ef,_0x23c1cf){const _0x43817b=function(_0x68b748){while(--_0x68b748){_0x14d6ef['push'](_0x14d6ef['shift']());}};_0x43817b(++_0x23c1cf);}(_0x23c1,0xbb));const _0x4381=function(_0x14d6ef,_0x23c1cf){_0x14d6ef=_0x14d6ef-0x0;let _0x43817b=_0x23c1[_0x14d6ef];return _0x43817b;};import{Plugin as _0x528bc6}from'ckeditor5/src/core';import{getTranslation as _0x109693}from'../utils/common-translations';export default class Ct extends _0x528bc6{constructor(_0x5ea309){super(_0x5ea309),this['tableProperties']=[_0x4381('0x5'),_0x4381('0x7'),_0x4381('0x0'),_0x4381('0xc'),'tableWidth',_0x4381('0x11'),_0x4381('0x2b')],this[_0x4381('0x32')]=[_0x4381('0x9'),_0x4381('0x10'),_0x4381('0x1d'),_0x4381('0x3'),'tableCellWidth','tableCellHeight',_0x4381('0x26'),_0x4381('0x33'),'tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x194778=this[_0x4381('0x4')]['plugins'][_0x4381('0x22')](_0x4381('0x24'));if(this[_0x4381('0x4')][_0x4381('0x28')][_0x4381('0xb')](_0x4381('0xf'))){for(const _0x4ffa3c of this[_0x4381('0x1e')])_0x194778[_0x4381('0x2a')](_0x4ffa3c,(_0x4f5931,_0x239abd)=>{const _0x3433d7=this[_0x4381('0x4')][_0x4381('0x21')][_0x4381('0x23')][_0x4381('0x15')][_0x4381('0x2d')]()[_0x4381('0x16')](_0x4381('0x2f'));this['_handlePropertyChange'](_0x4ffa3c,[_0x3433d7],this[_0x4381('0x1e')],_0x4381('0x1e'),_0x4f5931,_0x239abd);});_0x194778[_0x4381('0x1b')][_0x4381('0x2c')](_0x4381('0x25'),'tableProperties',_0x4381('0x2e'),_0x194778[_0x4381('0x1b')]['getSuggestionCallback']('formatBlock',null,'discard')),_0x194778['_suggestionFactory'][_0x4381('0x2c')](_0x4381('0x25'),'tableProperties',_0x4381('0xd'),(_0x2e370a,_0x514304)=>this[_0x4381('0x34')](this['tableProperties'],_0x2e370a,_0x514304)),_0x194778[_0x4381('0x1b')][_0x4381('0x2c')](_0x4381('0x25'),_0x4381('0x1e'),_0x4381('0x1'),()=>!0x1);}if(this[_0x4381('0x4')]['plugins'][_0x4381('0xb')](_0x4381('0xe'))){for(const _0x2f1b27 of this['tableCellProperties'])_0x194778[_0x4381('0x2a')](_0x2f1b27,(_0x5d62c4,_0x32ef0b)=>{const _0x56ae34=this[_0x4381('0x4')][_0x4381('0x28')][_0x4381('0x22')](_0x4381('0x27'))[_0x4381('0x19')](this[_0x4381('0x4')]['model']['document'][_0x4381('0x15')]);this[_0x4381('0x20')](_0x2f1b27,_0x56ae34,this['tableCellProperties'],_0x4381('0x32'),_0x5d62c4,_0x32ef0b);});_0x194778['_suggestionFactory'][_0x4381('0x2c')](_0x4381('0x25'),'tableCellProperties',_0x4381('0x2e'),_0x194778[_0x4381('0x1b')]['getSuggestionCallback'](_0x4381('0x25'),null,_0x4381('0xd'))),_0x194778['_suggestionFactory']['registerCustomCallback'](_0x4381('0x25'),_0x4381('0x32'),_0x4381('0xd'),(_0x5e9b8e,_0x1f4866)=>this[_0x4381('0x34')](this['tableCellProperties'],_0x5e9b8e,_0x1f4866)),_0x194778[_0x4381('0x1b')][_0x4381('0x2c')](_0x4381('0x25'),_0x4381('0x32'),'join',()=>!0x1);}_0x194778[_0x4381('0x12')][_0x4381('0x1a')](_0xc7eb2b=>this[_0x4381('0x6')](_0xc7eb2b));}[_0x4381('0x20')](_0x99eb76,_0x1c273a,_0x24ad3a,_0xd38f28,_0x1ea4ef,_0x447563){const _0x4ca15c=this[_0x4381('0x4')][_0x4381('0x28')]['get']('TrackChangesEditing');this[_0x4381('0x4')]['model'][_0x4381('0x18')](_0x447563['batch'],()=>{for(const _0x4e069e of _0x1c273a){if(this[_0x4381('0xa')](_0x4e069e,_0xd38f28))_0x1ea4ef(_0x447563);else{const _0x2a7c7c={};for(const _0x183f1f of _0x24ad3a){const _0xf0a08=_0x4e069e[_0x4381('0x1c')](_0x183f1f);void 0x0!==_0xf0a08&&(_0x2a7c7c[_0x183f1f]=_0xf0a08);}_0x1ea4ef(_0x447563),_0x4ca15c[_0x4381('0x36')](_0x4e069e,{'commandParams':[_0x2a7c7c]},[],_0xd38f28);}}});}[_0x4381('0x34')](_0x3c1bab,_0x3fed3e,_0x3d36ea){const _0x5f0983=_0x3fed3e[0x0][_0x4381('0x31')][_0x4381('0x8')],_0x158eeb=_0x3d36ea['commandParams'][0x0];this['editor'][_0x4381('0x21')][_0x4381('0x2')](_0x5e8ef2=>{for(const _0x7e69a6 of _0x3c1bab)void 0x0!==_0x158eeb[_0x7e69a6]?_0x5e8ef2[_0x4381('0x14')](_0x7e69a6,_0x158eeb[_0x7e69a6],_0x5f0983):_0x5e8ef2['removeAttribute'](_0x7e69a6,_0x5f0983);});}[_0x4381('0x6')](_0x4d1350){if(_0x4d1350['data'])switch(_0x4d1350[_0x4381('0x30')]){case'tableProperties':return{'type':_0x4381('0x35'),'content':_0x109693(this[_0x4381('0x4')]['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':_0x4381('0x35'),'content':_0x109693(this[_0x4381('0x4')][_0x4381('0x1f')],_0x4381('0x13'))};}}[_0x4381('0xa')](_0x5d6d3c,_0x4ec462){const _0x47ab07=this[_0x4381('0x4')][_0x4381('0x28')][_0x4381('0x22')]('TrackChangesEditing');for(const _0x470c0a of _0x47ab07[_0x4381('0x29')]({'skipNotAttached':!0x0})){const _0x248555=_0x470c0a[_0x4381('0x17')]();if(_0x470c0a[_0x4381('0x30')]===_0x4ec462&&_0x248555===_0x5d6d3c)return _0x470c0a;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4616=['TrackChangesEditing','Template','plugins','editor','has','insertTemplate','enableCommand'];(function(_0x4fb0cc,_0x461683){const _0x2bacc6=function(_0x2e0160){while(--_0x2e0160){_0x4fb0cc['push'](_0x4fb0cc['shift']());}};_0x2bacc6(++_0x461683);}(_0x4616,0x78));const _0x2bac=function(_0x4fb0cc,_0x461683){_0x4fb0cc=_0x4fb0cc-0x0;let _0x2bacc6=_0x4616[_0x4fb0cc];return _0x2bacc6;};import{Plugin as _0x24a5f1}from'ckeditor5/src/core';export default class yt extends _0x24a5f1{['afterInit'](){const _0x3b6512=this[_0x2bac('0x2')];_0x3b6512['plugins'][_0x2bac('0x3')](_0x2bac('0x0'))&&_0x3b6512[_0x2bac('0x1')]['get'](_0x2bac('0x6'))[_0x2bac('0x5')](_0x2bac('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32a5=['end','document','registerPostFixer','Title','suggestion','newRange','forward','TrackChangesEditing','title-content','registerElementLabel','plugins','locale','getNearestSelectionRange','editor','ELEMENT_TITLE','_splitMarkerName','schema','isCollapsed','getChangedMarkers','_descriptionFactory','model','from','get','differ','start','element','removeMarker','isEqual'];(function(_0xa6906,_0x32a57e){const _0x199b36=function(_0x5b58d9){while(--_0x5b58d9){_0xa6906['push'](_0xa6906['shift']());}};_0x199b36(++_0x32a57e);}(_0x32a5,0x66));const _0x199b=function(_0xa6906,_0x32a57e){_0xa6906=_0xa6906-0x0;let _0x199b36=_0x32a5[_0xa6906];return _0x199b36;};import{Plugin as _0x222441}from'ckeditor5/src/core';import{getTranslation as _0x4e419d}from'../utils/common-translations';export default class St extends _0x222441{['afterInit'](){const _0x49403c=this[_0x199b('0x17')];if(!_0x49403c[_0x199b('0x14')]['has'](_0x199b('0xd')))return;const _0x443e2e=_0x49403c['plugins'][_0x199b('0x4')](_0x199b('0x11'));_0x443e2e[_0x199b('0x1')][_0x199b('0x13')](_0x199b('0x12'),()=>_0x4e419d(_0x49403c[_0x199b('0x15')],_0x199b('0x18'))),_0x49403c[_0x199b('0x2')][_0x199b('0xb')][_0x199b('0xc')](_0x2dd96c=>{let _0xb8dd6b=!0x1;const _0x3b88f2=Array[_0x199b('0x3')](_0x49403c[_0x199b('0x2')][_0x199b('0xb')][_0x199b('0x5')][_0x199b('0x0')]());for(const {name:_0x31d4bf,data:_0x5b685c}of _0x3b88f2){const {group:_0x368ce4}=_0x443e2e[_0x199b('0x19')](_0x31d4bf);if(_0x199b('0xe')!==_0x368ce4||!_0x5b685c[_0x199b('0xf')])continue;const _0x4105ec=_0x5b685c['newRange'],_0x1b883c=_0x4105ec[_0x199b('0xa')]['nodeBefore'];if(!_0x1b883c||!_0x1b883c['is'](_0x199b('0x7'),_0x199b('0x12')))continue;if(!_0x4105ec[_0x199b('0x6')]['isTouching'](_0x4105ec[_0x199b('0xa')]))continue;const _0x29f0d3=_0x49403c[_0x199b('0x2')][_0x199b('0x1a')][_0x199b('0x16')](_0x4105ec[_0x199b('0xa')],_0x199b('0x10'));if(_0x29f0d3&&_0x29f0d3[_0x199b('0x1b')]){const _0x276017=_0x2dd96c['createRange'](_0x4105ec[_0x199b('0x6')],_0x29f0d3['start']);_0x276017[_0x199b('0x9')](_0x4105ec)||(_0x2dd96c['updateMarker'](_0x31d4bf,{'range':_0x276017}),_0xb8dd6b=!0x0);}_0xb8dd6b||(_0x2dd96c[_0x199b('0x8')](_0x31d4bf),_0xb8dd6b=!0x0);}return _0xb8dd6b;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27d5=['TrackChangesEditing','editor','enableCommand','plugins','afterInit','get','UndoEditing','undo'];(function(_0xb68fce,_0x27d507){const _0x57b857=function(_0x413c84){while(--_0x413c84){_0xb68fce['push'](_0xb68fce['shift']());}};_0x57b857(++_0x27d507);}(_0x27d5,0x93));const _0x57b8=function(_0xb68fce,_0x27d507){_0xb68fce=_0xb68fce-0x0;let _0x57b857=_0x27d5[_0xb68fce];return _0x57b857;};import{Plugin as _0x3394df}from'ckeditor5/src/core';export default class It extends _0x3394df{[_0x57b8('0x1')](){const _0x947f18=this[_0x57b8('0x6')],_0x39c4b1=_0x947f18['plugins'][_0x57b8('0x2')](_0x57b8('0x5'));_0x947f18[_0x57b8('0x0')]['has'](_0x57b8('0x3'))&&(_0x39c4b1[_0x57b8('0x7')](_0x57b8('0x4')),_0x39c4b1[_0x57b8('0x7')]('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11d7=['isContent','isBlock','previousPosition','bindElementToMarker','getItems','push','addClass','name','activeMarkers','parent','listIndent','test','elementEnd','getCustomProperty','includes','type','element','toViewPosition','toViewElement','nextSibling','getAttribute','markerName','TrackChangesEditing','listItem','hasAttribute','createRangeOn','addHighlight','mapper','writer','start','schema','ck-suggestion-marker-','markerRange','plugins','isAtEnd','model','consumable','createUIElement'];(function(_0xf6f5b2,_0x11d718){const _0x336778=function(_0x2fb6d6){while(--_0x2fb6d6){_0xf6f5b2['push'](_0xf6f5b2['shift']());}};_0x336778(++_0x11d718);}(_0x11d7,0xa4));const _0x3367=function(_0xf6f5b2,_0x11d718){_0xf6f5b2=_0xf6f5b2-0x0;let _0x336778=_0x11d7[_0xf6f5b2];return _0x336778;};export function getRangesWithAttribute(_0x2f5ef6,_0x5e4657,_0x347346){const _0x1c9ba8=[];for(const _0x4fc8c5 of _0x5e4657[_0x3367('0x1e')]())_0x4fc8c5[_0x3367('0xc')](_0x2f5ef6)&&_0x1c9ba8[_0x3367('0x1f')](_0x347346[_0x3367('0xd')](_0x4fc8c5));return _0x1c9ba8;}export function getElementsAffectedByListItemRename(_0x2a8b76){const _0xcf93a0=[];if(_0x2a8b76['is'](_0x3367('0x4'),_0x3367('0xb'))){let _0x13a9b5=_0x2a8b76[_0x3367('0x7')];for(;_0x13a9b5&&_0x13a9b5['is'](_0x3367('0x4'),_0x3367('0xb'))&&_0x13a9b5[_0x3367('0x8')](_0x3367('0x24'))>0x0;)_0xcf93a0[_0x3367('0x1f')](_0x13a9b5),_0x13a9b5=_0x13a9b5['nextSibling'];}return _0xcf93a0;}export function downcastSplitMergeMarker(_0x27b2fd,_0x3bc926,{showActiveMarker:_0x458509=!0x0}={}){const _0xe68ad8=_0x27b2fd[_0x3367('0x15')]['get'](_0x3367('0xa'));return(_0x118425,_0x312b1b,_0x5c1644)=>{if(!_0x5c1644[_0x3367('0x18')][_0x3367('0x25')](_0x312b1b['markerRange'],_0x118425[_0x3367('0x21')]))return;const _0x5ca7f3=_0x312b1b[_0x3367('0x14')]['getWalker'](),_0x421839=_0x312b1b['markerRange'][_0x3367('0x11')],_0x56e69d=_0x27b2fd[_0x3367('0x17')][_0x3367('0x12')];let _0x2badc3=null,_0x3605cf=null,_0x34999d=!0x1,_0x503bde=!0x1;for(const _0x47cfe1 of _0x5ca7f3){const _0x196205=_0x47cfe1['item'];_0x34999d=_0x34999d||_0x56e69d[_0x3367('0x1a')](_0x196205);const _0x380d02=_0x5c1644[_0x3367('0xf')][_0x3367('0x6')](_0x196205);if(_0x380d02&&_0x380d02[_0x3367('0x1')](_0x3367('0xe')))return;_0x3367('0x0')==_0x47cfe1[_0x3367('0x3')]&&(_0x56e69d[_0x3367('0x1b')](_0x196205)&&!_0x56e69d['isLimit'](_0x196205)&&(_0x196205[_0x3367('0x7')]||_0x421839[_0x3367('0x16')]?_0x2badc3&&_0x2badc3[_0x3367('0x23')]==_0x196205||(_0x2badc3=_0x196205,_0x2305fb(_0x47cfe1[_0x3367('0x1c')]),_0x503bde=!0x0):_0x3605cf=_0x3605cf||_0x47cfe1[_0x3367('0x1c')]));}function _0x2305fb(_0x5f5684){const _0x11f29b=_0x5c1644[_0x3367('0x10')][_0x3367('0x19')]('span',{'class':_0x3367('0x13')+_0x3bc926}),_0x3dc1d4=_0x5c1644[_0x3367('0xf')][_0x3367('0x5')](_0x5f5684);_0x458509&&_0xe68ad8[_0x3367('0x22')][_0x3367('0x2')](_0x312b1b[_0x3367('0x9')])&&_0x5c1644[_0x3367('0x10')][_0x3367('0x20')]('ck-suggestion-marker--active',_0x11f29b),_0x5c1644[_0x3367('0x10')]['insert'](_0x3dc1d4,_0x11f29b),_0x5c1644[_0x3367('0xf')][_0x3367('0x1d')](_0x11f29b,_0x312b1b['markerName']);}_0x34999d||_0x503bde||!_0x3605cf||_0x2305fb(_0x3605cf);};}
|