@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231011.0 → 0.0.0-nightly-20231013.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 _0x31f1=['fill','schema','isInContent','map','suggestion:formatBlock:tablePasteCell','*Replace\x20table\x20cells*','accept','insertContent','showSuggestionHighlights','registerPostFixer','position','editor','tableCellBackgroundColor','join','cell','unwrap','getRows','tablePasteCell','elementToElement','cells','keys','includes','forceDefaultExecution','_suggestionFactory','paragraph','tableCellBorderStyle','getChild','suggestionUnloaded','startsWith','getSuggestion','listenTo','createRangeIn','tableCell','some','add','_tablePostFixingSubtypes','high','ck-suggestion-marker','isEmpty','rowInsertionRanges','insertion','change','conversion','push','length','_splitMarkerName','markerName','tablePasteChainId','return','tableCellBorderWidth','element','row','rowInsertionIndexes','name','remove','ck-suggestion-marker-insertion','trackChanges','last','differ','table','discard','getItems','getAttributes','requires','deletion','tableCellPadding','createTableWalker','TableUtils','dataDowncast','end','tableCellVerticalAlignment','tablePasteRow','_createdBatches','get','suggestion','createElement','markerAttributes','selection','getContainedElement','Users','deletionRanges','_isForcedDefaultExecutionBlock','view','insertColumns','rows','formatBlock','fromEntries','setAttributes','next','updateMarker','removeRows','getRange','markMultiRangeDeletion','first','locale','getSuggestionCallback','find','subType','previous','oldRange','from','TableClipboard','nextSibling','reduce','_descriptionFactory','_getCoordsForCells','columns','getAllAdjacentSuggestions','markMultiRangeInsertion','insert','findAncestor','set','getRanges','editingDowncast','tableCellBorderColor','columnInsertionIndexes','getChanges','attributes','markerToHighlight','filter','low','removeMarker','model','insertRows','document','clipboardOutput','documentSelection','tablePasteColumn','has','getSuggestions','tablePaste','for','isEqual','registerDescriptionCallback','getMarkers','content','getChangedMarkers','removeColumns','author','createRangeOn','entries','markers','getRowIndexes','columnInsertionRanges','getSelectionAffectedTableCells','stop','every','type','newRange','TrackChangesEditing','containsRange','tableCellSuggestion','suggestion-td','redo','setAttribute','endRow','getChildren','move','registerCustomCallback','$graveyard','wrap','plugins','previousSibling','commands','nodeAfter'];(function(_0x4e3a4f,_0x31f140){const _0x42c3e0=function(_0x1847b3){while(--_0x1847b3){_0x4e3a4f['push'](_0x4e3a4f['shift']());}};_0x42c3e0(++_0x31f140);}(_0x31f1,0x1ac));const _0x42c3=function(_0x4e3a4f,_0x31f140){_0x4e3a4f=_0x4e3a4f-0x0;let _0x42c3e0=_0x31f1[_0x4e3a4f];return _0x42c3e0;};import{getTranslation as _0x2a9e1c}from'../utils/common-translations';import{Plugin as _0x15bd7b}from'ckeditor5/src/core';import{uid as _0xa1f25b,priorities as _0x1c2837}from'ckeditor5/src/utils';import _0x5c7aaf from'./table';const le=[_0x42c3('0x74'),_0x42c3('0x10'),_0x42c3('0x5c'),'tableCellHorizontalAlignment',_0x42c3('0x89'),_0x42c3('0x4f'),_0x42c3('0x84')],ae=Object[_0x42c3('0x99')](le[_0x42c3('0x46')](_0x519832=>[_0x519832,null]));export default class wt extends _0x15bd7b{static get[_0x42c3('0x82')](){return[_0x5c7aaf];}['afterInit'](){const _0x198564=this['editor'];if(!_0x198564[_0x42c3('0x3f')][_0x42c3('0x1e')](_0x42c3('0x3')))return;const _0x36f7ee=_0x198564['plugins'][_0x42c3('0x8c')](_0x42c3('0x33')),_0x4e25a3=_0x198564[_0x42c3('0x3f')][_0x42c3('0x8c')](_0x42c3('0x86')),_0x3556c4=_0x198564[_0x42c3('0x3f')][_0x42c3('0x8c')](_0x5c7aaf),_0x2de09c=_0x198564[_0x42c3('0x3f')]['get'](_0x42c3('0x3'));_0x3556c4[_0x42c3('0x66')][_0x42c3('0x6e')](_0x42c3('0x8a'),_0x42c3('0x1d')),_0x198564['model'][_0x42c3('0x44')]['register'](_0x42c3('0x35'),{'allowIn':_0x42c3('0x63'),'allowContentOf':_0x42c3('0x63'),'isLimit':!0x0}),_0x198564['conversion'][_0x42c3('0x55')]({'model':_0x42c3('0x35'),'view':_0x42c3('0x36')});let _0x5063b1=null;_0x198564[_0x42c3('0x18')]['on'](_0x42c3('0x4a'),(_0x3ec91a,_0x3fe4eb)=>{const [_0x4e5397,_0x5a2e95]=_0x3fe4eb,_0x4ccc30=_0x3fe4eb[_0x3fe4eb['length']-0x1];_0x4ccc30&&_0x4ccc30[_0x42c3('0x59')]||_0x36f7ee[_0x42c3('0x94')]||this[_0x42c3('0x4e')][_0x42c3('0x41')][_0x42c3('0x8c')](_0x42c3('0x7b'))['value']&&function(_0x26025a,_0x24d146,_0x1bfa51,_0x134706,_0x3a1889){if(_0x24d146&&!_0x24d146['is'](_0x42c3('0x1c')))return!0x1;const _0x3e6e44=_0x3a1889['getTableIfOnlyTableInContent'](_0x26025a,_0x1bfa51);if(!_0x3e6e44||!fe(_0x3e6e44,void 0x0,_0x134706))return!0x1;const _0x298cb5=_0x134706[_0x42c3('0x2e')](_0x1bfa51['document'][_0x42c3('0x90')]);if(!_0x298cb5[_0x42c3('0x6f')])return!0x1;const _0x335226=_0x298cb5[0x0][_0x42c3('0xc')]('table'),_0x347fa5=_0x134706[_0x42c3('0x2c')](_0x298cb5),_0x2d681e=_0x134706['getColumnIndexes'](_0x298cb5),_0x1535ed={'startRow':_0x347fa5['first'],'endRow':_0x347fa5[_0x42c3('0x7c')],'startColumn':_0x2d681e[_0x42c3('0xa0')],'endColumn':_0x2d681e[_0x42c3('0x7c')]};return 0x1==_0x298cb5[_0x42c3('0x6f')]&&(_0x1535ed[_0x42c3('0x39')]+=_0x134706[_0x42c3('0x53')](_0x3e6e44)-0x1,_0x1535ed['endColumn']+=_0x134706['getColumns'](_0x3e6e44)-0x1),fe(_0x335226,_0x1535ed,_0x134706);}(_0x4e5397,_0x5a2e95,_0x198564[_0x42c3('0x18')],_0x4e25a3,_0x2de09c)&&(_0x3ec91a['stop'](),_0x5063b1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x198564[_0x42c3('0x18')][_0x42c3('0x6c')](()=>{_0x198564[_0x42c3('0x18')][_0x42c3('0x4a')](_0x3fe4eb[0x0],_0x3fe4eb[0x1],_0x3fe4eb[0x2],{'forceDefaultExecution':!0x0});const _0x5006af=_0xa1f25b(),{rowInsertionRanges:_0x52af91,columnInsertionRanges:_0x5c6cae,insertionRanges:_0x568d4b,deletionRanges:_0x57dbbd,cells:_0x1eb677}=_0x5063b1;_0x52af91[_0x42c3('0x6f')]&&_0x36f7ee[_0x42c3('0xa')](_0x52af91,_0x42c3('0x8a'),{'tablePasteChainId':_0x5006af}),_0x5c6cae[_0x42c3('0x6f')]&&_0x36f7ee[_0x42c3('0xa')](_0x5c6cae,'tablePasteColumn',{'tablePasteChainId':_0x5006af}),_0x568d4b[_0x42c3('0x6f')]&&_0x36f7ee[_0x42c3('0xa')](_0x568d4b,_0x42c3('0x20'),{'tablePasteChainId':_0x5006af,'skipNestingCheck':!0x0}),_0x57dbbd['length']&&_0x36f7ee[_0x42c3('0x9f')](_0x57dbbd,_0x42c3('0x20'),{'tablePasteChainId':_0x5006af,'skipNestingCheck':!0x0});const _0x1080bf=_0x36f7ee['markMultiRangeBlockFormat'](_0x1eb677['map'](({element:_0x344f36})=>_0x344f36),{'formatGroupId':_0xa1f25b()},[],'tablePasteCell',{'tablePasteChainId':_0x5006af});if(_0x1080bf){const _0x43fb73=_0x1080bf['getMarkers'](),_0xf1d7e7=[];for(const {element:_0x5e1631,attributes:_0x592a8d}of _0x1eb677){if(!_0x592a8d)continue;const _0x2e63b2=_0x198564[_0x42c3('0x18')][_0x42c3('0x29')](_0x5e1631),_0x5c8c33=_0x43fb73[_0x42c3('0xa3')](_0x2fedc3=>_0x2fedc3[_0x42c3('0x9e')]()['isEqual'](_0x2e63b2));_0x5c8c33&&_0xf1d7e7[_0x42c3('0x6e')]([_0x5c8c33[_0x42c3('0x78')],_0x592a8d]);}_0xf1d7e7['length']&&_0x1080bf[_0x42c3('0x38')]('markerAttributes',Object[_0x42c3('0x99')](_0xf1d7e7));}_0x5063b1=null;}));},{'priority':_0x1c2837[_0x42c3('0x67')]+0xa}),_0x198564['plugins'][_0x42c3('0x8c')]('TableClipboard')['on']('_replaceTableSlotCell',(_0x508b4d,_0x3d9096)=>{const [_0x365366,_0x5138e2,,_0xc83c02]=_0x3d9096;if(!_0x5063b1)return;_0x508b4d[_0x42c3('0x2f')]();const _0x2cf4ff=_0x365366[_0x42c3('0x51')],_0xafcef5=_0x5138e2,_0x205be9=ce(_0x2cf4ff),_0x41f92a=ce(_0xafcef5);_0x508b4d[_0x42c3('0x73')]=_0x2cf4ff;let _0xb6a873=null,_0x4afce1=null;if(_0x41f92a||_0x205be9){if(_0x205be9&&!_0x41f92a){_0xc83c02[_0x42c3('0x79')](_0x2cf4ff['getChild'](0x0));for(const _0x23e445 of Array['from'](_0xafcef5['getChildren']()))_0xc83c02[_0x42c3('0xb')](_0x23e445,_0x2cf4ff,_0x42c3('0x88'));const _0x4c1f06=_0x5063b1['rowInsertionIndexes']['includes'](_0x365366[_0x42c3('0x76')]),_0x36cc45=_0x5063b1['columnInsertionIndexes'][_0x42c3('0x58')](_0x365366['column']);_0x4c1f06||_0x36cc45||(_0xb6a873=_0xc83c02[_0x42c3('0x62')](_0x2cf4ff));}else _0x41f92a&&!_0x205be9&&(_0x4afce1=_0xc83c02['createRangeIn'](_0x2cf4ff));}else{const _0x4cb54b=_0xc83c02[_0x42c3('0x8e')](_0x42c3('0x35')),_0x45b23e=_0xc83c02['createElement'](_0x42c3('0x35'));_0xc83c02[_0x42c3('0x3e')](_0xc83c02['createRangeIn'](_0x2cf4ff),_0x45b23e),_0xc83c02[_0x42c3('0xb')](_0x4cb54b,_0x2cf4ff,0x0);for(const _0xcc3d92 of Array[_0x42c3('0x2')](_0xafcef5[_0x42c3('0x3a')]()))_0xc83c02[_0x42c3('0xb')](_0xcc3d92,_0x4cb54b,_0x42c3('0x88'));_0xb6a873=_0xc83c02[_0x42c3('0x29')](_0x4cb54b),_0x4afce1=_0xc83c02[_0x42c3('0x29')](_0x45b23e);}const _0x54fcea=Array[_0x42c3('0x2')](_0xafcef5[_0x42c3('0x81')]())[_0x42c3('0x15')](([_0xc782fa])=>le[_0x42c3('0x58')](_0xc782fa));_0x5063b1['cells'][_0x42c3('0x6e')]({'element':_0x2cf4ff,'attributes':_0x54fcea[_0x42c3('0x6f')]?Object['fromEntries'](_0x54fcea):null}),_0xb6a873&&_0x5063b1['insertionRanges']['push'](_0xb6a873),_0x4afce1&&_0x5063b1[_0x42c3('0x93')]['push'](_0x4afce1);},{'priority':_0x42c3('0x67')}),_0x4e25a3['on'](_0x42c3('0x96'),(_0xe2786d,_0x340582)=>{const [_0x13a4ad,_0x27b204={}]=_0x340582;if(!_0x5063b1)return;const _0x2cf703=_0x27b204['at']||0x0,_0x5d1791=_0x27b204[_0x42c3('0x8')]||0x1;_0x5063b1[_0x42c3('0x11')]=new Array(_0x5d1791)[_0x42c3('0x43')](_0x2cf703)['map']((_0x875f1b,_0x124714)=>_0x875f1b+_0x124714);for(const {cell:_0x1788f1}of _0x4e25a3[_0x42c3('0x85')](_0x13a4ad,{'startColumn':_0x2cf703,'endColumn':_0x2cf703+_0x5d1791-0x1}))_0x5063b1[_0x42c3('0x2d')][_0x42c3('0x6e')](_0x198564['model'][_0x42c3('0x29')](_0x1788f1));},{'priority':'low'}),_0x4e25a3['on'](_0x42c3('0x19'),(_0x48dc47,_0x46458a)=>{const [_0x40e2d2,_0x2d10fb={}]=_0x46458a;if(!_0x5063b1)return;const _0x1227bd=_0x2d10fb['at']||0x0,_0x22d441=_0x2d10fb[_0x42c3('0x97')]||0x1;_0x5063b1[_0x42c3('0x77')]=new Array(_0x22d441)[_0x42c3('0x43')](_0x1227bd)[_0x42c3('0x46')]((_0x38b68f,_0x17bec2)=>_0x38b68f+_0x17bec2);for(const {cell:_0x221568}of _0x4e25a3[_0x42c3('0x85')](_0x40e2d2,{'startRow':_0x1227bd,'endRow':_0x1227bd+_0x22d441-0x1}))_0x5063b1[_0x42c3('0x6a')][_0x42c3('0x6e')](_0x198564['model']['createRangeOn'](_0x221568));},{'priority':_0x42c3('0x16')}),_0x36f7ee[_0x42c3('0x6')][_0x42c3('0x23')](_0x4ac479=>{if(_0x4ac479[_0x42c3('0xa4')]&&_0x4ac479[_0x42c3('0xa4')][_0x42c3('0x5f')]('tablePaste'))return _0x4ac479['previous']?{}:{'type':_0x42c3('0x6b'),'content':_0x2a9e1c(_0x198564[_0x42c3('0xa1')],_0x42c3('0x48'))};});const _0xd01763=()=>!0x1;for(const _0x2f531e of[_0x42c3('0x20'),_0x42c3('0x1d'),_0x42c3('0x8a'),_0x42c3('0x54')])_0x36f7ee[_0x42c3('0x5a')][_0x42c3('0x3c')](_0x42c3('0x6b'),_0x2f531e,_0x42c3('0x50'),_0xd01763),_0x36f7ee['_suggestionFactory'][_0x42c3('0x3c')](_0x42c3('0x83'),_0x2f531e,'join',_0xd01763),_0x36f7ee[_0x42c3('0x5a')][_0x42c3('0x3c')](_0x42c3('0x98'),_0x2f531e,_0x42c3('0x50'),_0xd01763);_0x36f7ee['_suggestionFactory'][_0x42c3('0x3c')](_0x42c3('0x98'),_0x42c3('0x54'),'discard',_0xd01763),_0x36f7ee[_0x42c3('0x5a')][_0x42c3('0x3c')](_0x42c3('0x98'),_0x42c3('0x54'),_0x42c3('0x49'),(_0x35fe6b,_0x285e37,_0x10cf1e)=>{const _0x3a45cb=_0x35fe6b['map'](_0x133692=>_0x133692[_0x42c3('0x91')]())[_0x42c3('0x15')](_0xd25bf5=>_0xd25bf5),_0x18221f=new Map(_0x3a45cb[_0x42c3('0x46')](_0x34d61f=>[_0x34d61f,null]));if(_0x5063b1)for(const {element:_0x81f5e0,attributes:_0x488387}of _0x5063b1[_0x42c3('0x56')])_0x488387&&_0x18221f[_0x42c3('0xd')](_0x81f5e0,_0x488387);else{if(_0x10cf1e&&_0x10cf1e[_0x42c3('0x8f')])for(const [_0xbc5227,_0x28fbf7]of Object[_0x42c3('0x2a')](_0x10cf1e[_0x42c3('0x8f')])){const _0x45c3cf=_0x198564[_0x42c3('0x18')][_0x42c3('0x2b')][_0x42c3('0x8c')](_0xbc5227),_0x25b9f3=_0x45c3cf?_0x45c3cf[_0x42c3('0x9e')]()[_0x42c3('0x91')]():null;_0x25b9f3&&_0x18221f['set'](_0x25b9f3,_0x28fbf7);}}_0x198564['model'][_0x42c3('0x6c')](_0x12b918=>{for(const [_0x3baf5c,_0x1aadfe]of _0x18221f)_0x12b918[_0x42c3('0x9a')]({...ae,..._0x1aadfe},_0x3baf5c);});});const _0x28c69a=(_0x56a9de,_0x117766)=>{_0x36f7ee[_0x42c3('0x5a')][_0x42c3('0x3c')](_0x56a9de,_0x42c3('0x20'),_0x117766,(_0x5b32ab,_0x5dbba9,_0x45494c)=>{_0x198564['model'][_0x42c3('0x6c')](_0x239058=>{const _0x417204=[];for(const _0x49186c of _0x5b32ab){const _0x2ecf81=_0x49186c['start'][_0x42c3('0x42')];_0x2ecf81['is'](_0x42c3('0x75'),_0x42c3('0x35'))&&_0x417204[_0x42c3('0x6e')](_0x2ecf81);}_0x36f7ee['_suggestionFactory'][_0x42c3('0xa2')](_0x56a9de,null,_0x117766)(_0x5b32ab,_0x5dbba9,_0x45494c);for(const _0x5ed090 of _0x417204)_0x42c3('0x3d')!=_0x5ed090['root']['rootName']&&_0x239058[_0x42c3('0x52')](_0x5ed090);});});};_0x28c69a(_0x42c3('0x6b'),_0x42c3('0x49')),_0x28c69a(_0x42c3('0x6b'),_0x42c3('0x7f')),_0x28c69a('deletion',_0x42c3('0x49')),_0x28c69a('deletion','discard'),_0x36f7ee['_suggestionFactory'][_0x42c3('0x3c')](_0x42c3('0x6b'),_0x42c3('0x8a'),'discard',_0x338076=>{const _0x4a17f4=_0x338076[_0x42c3('0x46')](_0x4b0419=>_0x4b0419[_0x42c3('0x91')]()),_0x5cc0f2=_0x4a17f4[0x0][_0x42c3('0xc')](_0x42c3('0x7e')),{minRow:_0x216a46,maxRow:_0x1c70d6}=_0x3556c4['_getCoordsForCells'](_0x4a17f4);_0x4e25a3[_0x42c3('0x9d')](_0x5cc0f2,{'at':_0x216a46,'rows':_0x1c70d6-_0x216a46+0x1});}),_0x36f7ee[_0x42c3('0x5a')]['registerCustomCallback']('insertion','tablePasteColumn',_0x42c3('0x7f'),_0x337b0f=>{const _0x4cc483=_0x337b0f['map'](_0x1f491a=>_0x1f491a[_0x42c3('0x91')]()),_0x4553af=_0x4cc483[0x0][_0x42c3('0xc')](_0x42c3('0x7e')),{minColumn:_0x12638a,maxColumn:_0x132e6b}=_0x3556c4[_0x42c3('0x7')](_0x4cc483);_0x4e25a3[_0x42c3('0x27')](_0x4553af,{'at':_0x12638a,'columns':_0x132e6b-_0x12638a+0x1});});const _0x41b835=(_0x4ec6e1,_0x23c65a)=>{if(!_0x23c65a[_0x42c3('0xa4')]||!_0x23c65a[_0x42c3('0xa4')][_0x42c3('0x5f')](_0x42c3('0x20')))return;const _0x3f3677=_0x23c65a[_0x42c3('0x13')][_0x42c3('0x72')],_0x5dad5d=_0x36f7ee[_0x42c3('0x1f')]()['filter'](_0x2a9de2=>_0x2a9de2[_0x42c3('0x45')]&&_0x2a9de2[_0x42c3('0x13')]&&_0x2a9de2['attributes']['tablePasteChainId']==_0x3f3677);_0x5dad5d[_0x42c3('0x6f')]&&_0x23c65a[_0x42c3('0x9')]()[_0x42c3('0x6f')]!=_0x5dad5d[_0x42c3('0x6f')]&&_0x5dad5d[_0x42c3('0x5')]((_0xc413df,_0xeb02ac)=>(_0xc413df[_0x42c3('0x9b')]=_0xeb02ac,_0xeb02ac[_0x42c3('0x0')]=_0xc413df,_0xeb02ac));};function _0x2be153(_0x1fa987,_0x2ce122=!0x0){const {id:_0x4f61b6}=_0x36f7ee[_0x42c3('0x70')](_0x1fa987[_0x42c3('0x71')]),_0x5438ae=[_0x42c3('0x68'),_0x42c3('0x7a')],_0x5ee2f7=_0x36f7ee['activeMarkers']['includes'](_0x1fa987['markerName']);return _0x5ee2f7&&_0x5438ae[_0x42c3('0x6e')]('ck-suggestion-marker--active'),{'classes':_0x5438ae,'attributes':{'data-suggestion':_0x4f61b6},'priority':_0x5ee2f7&&_0x2ce122?0xbc2:0xbb8};}_0x36f7ee['on']('suggestionLoaded',_0x41b835,{'priority':'high'}),_0x36f7ee['on'](_0x42c3('0x5e'),_0x41b835,{'priority':_0x42c3('0x67')}),_0x198564[_0x42c3('0x18')][_0x42c3('0x1a')]['registerPostFixer'](()=>{let _0x79c41c=!0x1;const _0x10f5f0=Array[_0x42c3('0x2')](_0x198564[_0x42c3('0x18')]['document']['differ'][_0x42c3('0x26')]());for(const {name:_0x3a5f08,data:_0xb0214e}of _0x10f5f0){const {group:_0x26974c,type:_0x53c948,id:_0x624664}=_0x36f7ee[_0x42c3('0x70')](_0x3a5f08);if(_0x42c3('0x8d')!=_0x26974c||_0x42c3('0x83')!=_0x53c948||_0xb0214e[_0x42c3('0x1')])continue;if(!_0x36f7ee['hasSuggestion'](_0x624664))continue;const _0x5cc2f7=_0x36f7ee[_0x42c3('0x60')](_0x624664)[_0x42c3('0xe')](),_0x27eea2=_0x198564['plugins'][_0x42c3('0x8c')](_0x42c3('0x92'))['me'];for(const _0x2628f0 of _0x36f7ee['getSuggestions']()){if(!_0x2628f0[_0x42c3('0x45')]||_0x2628f0['author']!=_0x27eea2)continue;if('formatBlock'!=_0x2628f0[_0x42c3('0x31')]||_0x42c3('0x54')!=_0x2628f0[_0x42c3('0xa4')])continue;if(_0x2628f0[_0x42c3('0xe')]()[_0x42c3('0x30')](_0x3af731=>_0x5cc2f7[_0x42c3('0x64')](_0x409df4=>_0x409df4[_0x42c3('0x34')](_0x3af731,!0x0))))for(const _0x5be5a0 of _0x2628f0[_0x42c3('0x9')]())_0x5be5a0[_0x42c3('0x45')]&&(_0x5be5a0[_0x42c3('0x7f')](),_0x79c41c=!0x0);}}return _0x79c41c;}),_0x198564[_0x42c3('0x18')][_0x42c3('0x1a')][_0x42c3('0x4c')](_0x50d1b6=>{const _0x333a2b=_0x198564[_0x42c3('0x41')][_0x42c3('0x8c')](_0x42c3('0x37'));if(!_0x333a2b||!_0x333a2b[_0x42c3('0x8b')][_0x42c3('0x1e')](_0x50d1b6['batch']))return!0x1;let _0x47c71f=!0x1;const _0x4947d1=_0x198564[_0x42c3('0x3f')]['get'](_0x42c3('0x92'))['me'],_0x41fc1b=_0x198564[_0x42c3('0x18')][_0x42c3('0x1a')]['differ'][_0x42c3('0x12')](),_0x27cb16=Array['from'](_0x198564[_0x42c3('0x18')][_0x42c3('0x1a')][_0x42c3('0x7d')]['getChangedMarkers']())[_0x42c3('0x15')](({name:_0x42387e,data:_0x5bf084})=>{const {group:_0x4538d4,subType:_0x1651da,authorId:_0x4181fb}=_0x36f7ee[_0x42c3('0x70')](_0x42387e);return _0x42c3('0x8d')==_0x4538d4&&_0x42c3('0x20')==_0x1651da&&_0x4181fb==_0x4947d1['id']&&!_0x5bf084[_0x42c3('0x1')];});for(const _0xa4beb8 of _0x41fc1b){if('insert'!=_0xa4beb8[_0x42c3('0x31')]||_0x42c3('0x35')!=_0xa4beb8[_0x42c3('0x78')]||0x1!=_0xa4beb8[_0x42c3('0x6f')])continue;const _0xeb8e08=_0x50d1b6['createRange'](_0xa4beb8[_0x42c3('0x4d')],_0xa4beb8[_0x42c3('0x4d')]['getShiftedBy'](0x1));if(!_0x27cb16[_0x42c3('0xa3')](({data:_0x200023})=>_0x200023[_0x42c3('0x32')][_0x42c3('0x22')](_0xeb8e08)))for(const {name:_0xf99892,data:_0x321c01}of _0x27cb16)if(_0xeb8e08['containsRange'](_0x321c01[_0x42c3('0x32')])){_0x50d1b6[_0x42c3('0x9c')](_0xf99892,{'range':_0xeb8e08}),_0x47c71f=!0x0;break;}}return _0x47c71f;}),_0x198564[_0x42c3('0x18')]['document'][_0x42c3('0x4c')](_0x26cffb=>{let _0x4e3bd6=!0x1;const _0x2fe7f4=_0x198564[_0x42c3('0x3f')][_0x42c3('0x8c')](_0x42c3('0x92'))['me'],_0x4678ee=_0x36f7ee[_0x42c3('0x1f')]()[_0x42c3('0x15')](_0x286100=>_0x286100[_0x42c3('0x45')]&&_0x286100[_0x42c3('0x28')]==_0x2fe7f4),_0x4455f8=new Set(),_0x45287e=new Set();for(const _0x5e5fa0 of _0x4678ee)if(_0x42c3('0x20')==_0x5e5fa0['subType'])for(const _0x44ef22 of _0x5e5fa0[_0x42c3('0x24')]()){const _0x394a5e=_0x44ef22[_0x42c3('0x9e')]()[_0x42c3('0x91')]();if(_0x394a5e){if(_0x394a5e['is'](_0x42c3('0x75'),'tableCellSuggestion')&&ce(_0x394a5e)){_0x5e5fa0[_0x42c3('0x17')](_0x44ef22[_0x42c3('0x78')]),_0x4455f8[_0x42c3('0x65')](_0x394a5e),_0x4e3bd6=!0x0;const _0x957096=_0x394a5e[_0x42c3('0x4')],_0x2f01a8=_0x394a5e[_0x42c3('0x40')],_0x221cdb=_0x957096&&_0x957096['is'](_0x42c3('0x75'),_0x42c3('0x35')),_0x3315d2=_0x2f01a8&&_0x2f01a8['is'](_0x42c3('0x75'),'tableCellSuggestion');_0x221cdb&&!_0x4455f8[_0x42c3('0x1e')](_0x957096)&&_0x45287e[_0x42c3('0x65')](_0x957096),_0x3315d2&&!_0x4455f8['has'](_0x2f01a8)&&_0x45287e[_0x42c3('0x65')](_0x2f01a8);}else _0x394a5e['is'](_0x42c3('0x75'),'paragraph')&&_0x394a5e[_0x42c3('0x69')]&&(_0x5e5fa0[_0x42c3('0x17')](_0x44ef22[_0x42c3('0x78')]),_0x4e3bd6=!0x0);}}else{if('tablePasteCell'==_0x5e5fa0[_0x42c3('0xa4')]){if(!_0x5e5fa0[_0x42c3('0x13')]||!_0x5e5fa0['attributes'][_0x42c3('0x72')])continue;const _0x14ad23=_0x5e5fa0[_0x42c3('0x13')][_0x42c3('0x8f')];if(_0x14ad23&&Object[_0x42c3('0x57')](_0x14ad23)[_0x42c3('0x6f')])continue;const _0xc62230=_0x5e5fa0[_0x42c3('0x13')][_0x42c3('0x72')];let _0x4b0f20=!0x0,_0x12be91=!0x0;for(const _0x8ebf8d of _0x4678ee)if(_0x8ebf8d['subType']&&_0x8ebf8d[_0x42c3('0xa4')][_0x42c3('0x5f')]('tablePaste')){if(!_0x8ebf8d['attributes']['tablePasteChainId']){_0x12be91=!0x1;break;}if(_0x8ebf8d['id']!=_0x5e5fa0['id']&&_0x8ebf8d[_0x42c3('0x13')][_0x42c3('0x72')]==_0xc62230){_0x4b0f20=!0x1;break;}}_0x12be91&&_0x4b0f20&&(_0x5e5fa0['removeMarkers'](),_0x4e3bd6=!0x0);}}for(const _0x391100 of _0x4455f8)_0x26cffb[_0x42c3('0x79')](_0x391100);for(const _0x4de70f of _0x45287e)_0x26cffb[_0x42c3('0x52')](_0x4de70f);return _0x4e3bd6;}),_0x198564[_0x42c3('0x6d')][_0x42c3('0x21')](_0x42c3('0xf'))[_0x42c3('0x14')]({'model':_0x42c3('0x47'),'view':(_0x5270b7,_0x2abfd2)=>_0x2be153(_0x5270b7),'converterPriority':_0x42c3('0x67')}),_0x198564[_0x42c3('0x6d')][_0x42c3('0x21')](_0x42c3('0x87'))[_0x42c3('0x14')]({'model':_0x42c3('0x47'),'view':(_0x4d47ee,_0x490a32)=>_0x490a32['options'][_0x42c3('0x4b')]?_0x2be153(_0x4d47ee,!0x1):null,'converterPriority':'high'});const _0x223085=_0x198564['editing'][_0x42c3('0x95')];this[_0x42c3('0x61')](_0x223085[_0x42c3('0x1a')],_0x42c3('0x1b'),(_0x294e1e,_0xb7912a)=>{const _0x2700dd=[];for(const _0x247328 of _0x223085['createRangeIn'](_0xb7912a[_0x42c3('0x25')])[_0x42c3('0x80')]())_0x247328['is'](_0x42c3('0x75'),_0x42c3('0x36'))&&_0x2700dd[_0x42c3('0x6e')](_0x247328);_0x223085[_0x42c3('0x6c')](_0x4e5642=>{for(const _0x350635 of _0x2700dd)_0x4e5642[_0x42c3('0x3b')](_0x4e5642['createRangeIn'](_0x350635),_0x4e5642['createPositionBefore'](_0x350635)),_0x4e5642[_0x42c3('0x79')](_0x350635);});});}}function ce(_0x189d01){if(_0x189d01['isEmpty'])return!0x0;const _0x162e7e=_0x189d01[_0x42c3('0x5d')](0x0);return _0x162e7e['is'](_0x42c3('0x75'),_0x42c3('0x5b'))&&_0x162e7e[_0x42c3('0x69')];}function fe(_0x414a1b,_0x3890f3={},_0x10666c){for(const {isAnchor:_0x8c9ad0,cellHeight:_0x101f4a,cellWidth:_0x592b0d}of _0x10666c[_0x42c3('0x85')](_0x414a1b,{'includeAllSlots':!0x0,..._0x3890f3}))if(!_0x8c9ad0||0x1!=_0x101f4a||0x1!=_0x592b0d)return!0x1;return!0x0;}
|
|
23
|
+
const _0xb46e=['suggestionLoaded','dataDowncast','tableCell','reduce','content','editing','getAllAdjacentSuggestions','model','high','conversion','next','subType','tableCellBorderWidth','_getCoordsForCells','getColumnIndexes','options','tablePasteRow','endColumn','ck-suggestion-marker--active','start','getChanges','accept','editor','stop','last','tablePaste','createRangeIn','*Replace\x20table\x20cells*','every','rowInsertionRanges','Users','cells','type','name','getSuggestionCallback','isEqual','isEmpty','getRows','editingDowncast','elementToElement','requires','keys','getSuggestions','oldRange','rows','from','wrap','containsRange','TrackChangesEditing','ck-suggestion-marker-insertion','createElement','get','tablePasteCell','endRow','suggestionUnloaded','getRowIndexes','insertRows','has','commands','previousSibling','tableCellHorizontalAlignment','getTableIfOnlyTableInContent','getChildren','TableClipboard','removeRows','getContainedElement','some','rowInsertionIndexes','add','low','markerName','listenTo','tableCellBackgroundColor','selection','register','getAttributes','createPositionBefore','table','columns','change','_suggestionFactory','$graveyard','tableCellSuggestion','insert','markerToHighlight','updateMarker','createRange','discard','view','isInContent','_splitMarkerName','nodeAfter','_createdBatches','columnInsertionIndexes','getSuggestion','fromEntries','return','markers','tableCellPadding','forceDefaultExecution','insertColumns','fill','deletion','removeMarker','createRangeOn','previous','_descriptionFactory','suggestion:formatBlock:tablePasteCell','registerPostFixer','documentSelection','createTableWalker','insertionRanges','getShiftedBy','newRange','schema','startsWith','formatBlock','position','getRanges','attributes','move','getChild','ck-suggestion-marker','differ','paragraph','getItems','locale','map','tablePasteChainId','suggestion-td','clipboardOutput','author','entries','redo','filter','remove','deletionRanges','push','getMarkers','findAncestor','nextSibling','afterInit','insertion','showSuggestionHighlights','TableUtils','end','tablePasteColumn','join','document','removeMarkers','markerAttributes','tableCellVerticalAlignment','removeColumns','getColumns','row','markMultiRangeInsertion','find','setAttributes','set','registerCustomCallback','for','rootName','suggestion','plugins','insertContent','element','unwrap','length','activeMarkers','root','_tablePostFixingSubtypes','getRange','includes','markMultiRangeDeletion','hasSuggestion','getChangedMarkers','first'];(function(_0x59e450,_0xb46e21){const _0x25503f=function(_0x177fe1){while(--_0x177fe1){_0x59e450['push'](_0x59e450['shift']());}};_0x25503f(++_0xb46e21);}(_0xb46e,0x1dd));const _0x2550=function(_0x59e450,_0xb46e21){_0x59e450=_0x59e450-0x0;let _0x25503f=_0xb46e[_0x59e450];return _0x25503f;};import{getTranslation as _0x3d3207}from'../utils/common-translations';import{Plugin as _0x216e94}from'ckeditor5/src/core';import{uid as _0x29b8fb,priorities as _0x3c6e04}from'ckeditor5/src/utils';import _0x548c0e from'./table';const le=[_0x2550('0x42'),'tableCellBorderColor','tableCellBorderStyle',_0x2550('0x72'),_0x2550('0x1c'),_0x2550('0x7e'),_0x2550('0x98')],ae=Object[_0x2550('0x95')](le[_0x2550('0x4')](_0x31c0c4=>[_0x31c0c4,null]));export default class wt extends _0x216e94{static get[_0x2550('0x5e')](){return[_0x548c0e];}[_0x2550('0x12')](){const _0x1e6eba=this[_0x2550('0x4c')];if(!_0x1e6eba[_0x2550('0x28')][_0x2550('0x6f')]('TableClipboard'))return;const _0x27a4e0=_0x1e6eba['plugins'][_0x2550('0x69')](_0x2550('0x66')),_0x3c77dd=_0x1e6eba[_0x2550('0x28')]['get'](_0x2550('0x15')),_0x166730=_0x1e6eba[_0x2550('0x28')]['get'](_0x548c0e),_0x97b7f=_0x1e6eba['plugins']['get'](_0x2550('0x75'));_0x166730[_0x2550('0x2f')]['push']('tablePasteRow',_0x2550('0x17')),_0x1e6eba[_0x2550('0x3d')][_0x2550('0xa8')][_0x2550('0x80')]('tableCellSuggestion',{'allowIn':_0x2550('0x38'),'allowContentOf':_0x2550('0x38'),'isLimit':!0x0}),_0x1e6eba[_0x2550('0x3f')][_0x2550('0x5d')]({'model':'tableCellSuggestion','view':_0x2550('0x6')});let _0x565eca=null;_0x1e6eba['model']['on'](_0x2550('0x29'),(_0x291d83,_0x4ab97e)=>{const [_0x5c16b0,_0x130f0f]=_0x4ab97e,_0x5bcc79=_0x4ab97e[_0x4ab97e['length']-0x1];_0x5bcc79&&_0x5bcc79[_0x2550('0x99')]||_0x27a4e0['_isForcedDefaultExecutionBlock']||this[_0x2550('0x4c')][_0x2550('0x70')]['get']('trackChanges')['value']&&function(_0x4dc8f5,_0x287f3d,_0x1153dd,_0x329f55,_0x3283df){if(_0x287f3d&&!_0x287f3d['is'](_0x2550('0xa3')))return!0x1;const _0xeebf1b=_0x3283df[_0x2550('0x73')](_0x4dc8f5,_0x1153dd);if(!_0xeebf1b||!fe(_0xeebf1b,void 0x0,_0x329f55))return!0x1;const _0x50c66b=_0x329f55['getSelectionAffectedTableCells'](_0x1153dd['document'][_0x2550('0x7f')]);if(!_0x50c66b[_0x2550('0x2c')])return!0x1;const _0x1c5863=_0x50c66b[0x0]['findAncestor'](_0x2550('0x83')),_0x4c0c0a=_0x329f55[_0x2550('0x6d')](_0x50c66b),_0x17d009=_0x329f55[_0x2550('0x44')](_0x50c66b),_0x2f4725={'startRow':_0x4c0c0a['first'],'endRow':_0x4c0c0a[_0x2550('0x4e')],'startColumn':_0x17d009[_0x2550('0x35')],'endColumn':_0x17d009[_0x2550('0x4e')]};return 0x1==_0x50c66b[_0x2550('0x2c')]&&(_0x2f4725[_0x2550('0x6b')]+=_0x329f55[_0x2550('0x5b')](_0xeebf1b)-0x1,_0x2f4725[_0x2550('0x47')]+=_0x329f55[_0x2550('0x1e')](_0xeebf1b)-0x1),fe(_0x1c5863,_0x2f4725,_0x329f55);}(_0x5c16b0,_0x130f0f,_0x1e6eba[_0x2550('0x3d')],_0x3c77dd,_0x97b7f)&&(_0x291d83[_0x2550('0x4d')](),_0x565eca={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1e6eba[_0x2550('0x3d')][_0x2550('0x85')](()=>{_0x1e6eba[_0x2550('0x3d')][_0x2550('0x29')](_0x4ab97e[0x0],_0x4ab97e[0x1],_0x4ab97e[0x2],{'forceDefaultExecution':!0x0});const _0x53dbf7=_0x29b8fb(),{rowInsertionRanges:_0x6477d4,columnInsertionRanges:_0x47a058,insertionRanges:_0x31b93a,deletionRanges:_0x5f1dc9,cells:_0x29ca33}=_0x565eca;_0x6477d4[_0x2550('0x2c')]&&_0x27a4e0[_0x2550('0x20')](_0x6477d4,_0x2550('0x46'),{'tablePasteChainId':_0x53dbf7}),_0x47a058[_0x2550('0x2c')]&&_0x27a4e0[_0x2550('0x20')](_0x47a058,_0x2550('0x17'),{'tablePasteChainId':_0x53dbf7}),_0x31b93a['length']&&_0x27a4e0['markMultiRangeInsertion'](_0x31b93a,_0x2550('0x4f'),{'tablePasteChainId':_0x53dbf7,'skipNestingCheck':!0x0}),_0x5f1dc9[_0x2550('0x2c')]&&_0x27a4e0[_0x2550('0x32')](_0x5f1dc9,_0x2550('0x4f'),{'tablePasteChainId':_0x53dbf7,'skipNestingCheck':!0x0});const _0x30cf18=_0x27a4e0['markMultiRangeBlockFormat'](_0x29ca33[_0x2550('0x4')](({element:_0x21dce1})=>_0x21dce1),{'formatGroupId':_0x29b8fb()},[],_0x2550('0x6a'),{'tablePasteChainId':_0x53dbf7});if(_0x30cf18){const _0x3d7ace=_0x30cf18['getMarkers'](),_0x206bdb=[];for(const {element:_0x40f24b,attributes:_0x20658e}of _0x29ca33){if(!_0x20658e)continue;const _0x2acfb2=_0x1e6eba[_0x2550('0x3d')][_0x2550('0x9e')](_0x40f24b),_0x2211f0=_0x3d7ace[_0x2550('0x21')](_0x246ab3=>_0x246ab3[_0x2550('0x30')]()[_0x2550('0x59')](_0x2acfb2));_0x2211f0&&_0x206bdb[_0x2550('0xe')]([_0x2211f0[_0x2550('0x57')],_0x20658e]);}_0x206bdb[_0x2550('0x2c')]&&_0x30cf18['setAttribute']('markerAttributes',Object[_0x2550('0x95')](_0x206bdb));}_0x565eca=null;}));},{'priority':_0x3c6e04['high']+0xa}),_0x1e6eba[_0x2550('0x28')][_0x2550('0x69')](_0x2550('0x75'))['on']('_replaceTableSlotCell',(_0x5c1ef9,_0x596d61)=>{const [_0x4e337d,_0x2ca1b4,,_0x14ed06]=_0x596d61;if(!_0x565eca)return;_0x5c1ef9['stop']();const _0x4c634a=_0x4e337d['cell'],_0x3f4c9b=_0x2ca1b4,_0x294b27=ce(_0x4c634a),_0x47787c=ce(_0x3f4c9b);_0x5c1ef9[_0x2550('0x96')]=_0x4c634a;let _0x4a7d1=null,_0x19b48a=null;if(_0x47787c||_0x294b27){if(_0x294b27&&!_0x47787c){_0x14ed06[_0x2550('0xc')](_0x4c634a[_0x2550('0xaf')](0x0));for(const _0x3f6d5f of Array['from'](_0x3f4c9b[_0x2550('0x74')]()))_0x14ed06[_0x2550('0x89')](_0x3f6d5f,_0x4c634a,_0x2550('0x16'));const _0x21ed7f=_0x565eca[_0x2550('0x79')][_0x2550('0x31')](_0x4e337d[_0x2550('0x1f')]),_0x960a45=_0x565eca[_0x2550('0x93')]['includes'](_0x4e337d['column']);_0x21ed7f||_0x960a45||(_0x4a7d1=_0x14ed06[_0x2550('0x50')](_0x4c634a));}else _0x47787c&&!_0x294b27&&(_0x19b48a=_0x14ed06['createRangeIn'](_0x4c634a));}else{const _0x475af9=_0x14ed06[_0x2550('0x68')]('tableCellSuggestion'),_0x267c22=_0x14ed06[_0x2550('0x68')](_0x2550('0x88'));_0x14ed06[_0x2550('0x64')](_0x14ed06['createRangeIn'](_0x4c634a),_0x267c22),_0x14ed06[_0x2550('0x89')](_0x475af9,_0x4c634a,0x0);for(const _0x7cf5e2 of Array['from'](_0x3f4c9b[_0x2550('0x74')]()))_0x14ed06[_0x2550('0x89')](_0x7cf5e2,_0x475af9,'end');_0x4a7d1=_0x14ed06['createRangeOn'](_0x475af9),_0x19b48a=_0x14ed06[_0x2550('0x9e')](_0x267c22);}const _0x4c1e26=Array[_0x2550('0x63')](_0x3f4c9b[_0x2550('0x81')]())['filter'](([_0x49b1c8])=>le[_0x2550('0x31')](_0x49b1c8));_0x565eca[_0x2550('0x55')]['push']({'element':_0x4c634a,'attributes':_0x4c1e26[_0x2550('0x2c')]?Object[_0x2550('0x95')](_0x4c1e26):null}),_0x4a7d1&&_0x565eca[_0x2550('0xa5')][_0x2550('0xe')](_0x4a7d1),_0x19b48a&&_0x565eca[_0x2550('0xd')]['push'](_0x19b48a);},{'priority':_0x2550('0x3e')}),_0x3c77dd['on'](_0x2550('0x9a'),(_0x45058f,_0x551cc6)=>{const [_0x3e9552,_0x32aa22={}]=_0x551cc6;if(!_0x565eca)return;const _0x14176d=_0x32aa22['at']||0x0,_0x5e376b=_0x32aa22[_0x2550('0x84')]||0x1;_0x565eca['columnInsertionIndexes']=new Array(_0x5e376b)['fill'](_0x14176d)[_0x2550('0x4')]((_0x581558,_0xb50f07)=>_0x581558+_0xb50f07);for(const {cell:_0x156971}of _0x3c77dd[_0x2550('0xa4')](_0x3e9552,{'startColumn':_0x14176d,'endColumn':_0x14176d+_0x5e376b-0x1}))_0x565eca['columnInsertionRanges']['push'](_0x1e6eba['model'][_0x2550('0x9e')](_0x156971));},{'priority':_0x2550('0x7b')}),_0x3c77dd['on'](_0x2550('0x6e'),(_0x635eba,_0x185fee)=>{const [_0x1dc8ab,_0x5c0344={}]=_0x185fee;if(!_0x565eca)return;const _0x1c7dcf=_0x5c0344['at']||0x0,_0x2ac4b8=_0x5c0344[_0x2550('0x62')]||0x1;_0x565eca[_0x2550('0x79')]=new Array(_0x2ac4b8)[_0x2550('0x9b')](_0x1c7dcf)[_0x2550('0x4')]((_0x4b7d01,_0x19f8c0)=>_0x4b7d01+_0x19f8c0);for(const {cell:_0x1e26e4}of _0x3c77dd[_0x2550('0xa4')](_0x1dc8ab,{'startRow':_0x1c7dcf,'endRow':_0x1c7dcf+_0x2ac4b8-0x1}))_0x565eca[_0x2550('0x53')]['push'](_0x1e6eba[_0x2550('0x3d')][_0x2550('0x9e')](_0x1e26e4));},{'priority':_0x2550('0x7b')}),_0x27a4e0[_0x2550('0xa0')]['registerDescriptionCallback'](_0x26210e=>{if(_0x26210e[_0x2550('0x41')]&&_0x26210e[_0x2550('0x41')][_0x2550('0xa9')](_0x2550('0x4f')))return _0x26210e['previous']?{}:{'type':_0x2550('0x13'),'content':_0x3d3207(_0x1e6eba[_0x2550('0x3')],_0x2550('0x51'))};});const _0x55bca8=()=>!0x1;for(const _0x2e6843 of[_0x2550('0x4f'),_0x2550('0x17'),_0x2550('0x46'),_0x2550('0x6a')])_0x27a4e0[_0x2550('0x86')][_0x2550('0x24')](_0x2550('0x13'),_0x2e6843,_0x2550('0x18'),_0x55bca8),_0x27a4e0[_0x2550('0x86')]['registerCustomCallback']('deletion',_0x2e6843,_0x2550('0x18'),_0x55bca8),_0x27a4e0[_0x2550('0x86')][_0x2550('0x24')](_0x2550('0xaa'),_0x2e6843,_0x2550('0x18'),_0x55bca8);_0x27a4e0['_suggestionFactory'][_0x2550('0x24')]('formatBlock',_0x2550('0x6a'),_0x2550('0x8d'),_0x55bca8),_0x27a4e0[_0x2550('0x86')][_0x2550('0x24')](_0x2550('0xaa'),'tablePasteCell',_0x2550('0x4b'),(_0x1c0098,_0x33b2e1,_0xa63ffb)=>{const _0xcb52b3=_0x1c0098[_0x2550('0x4')](_0x1b34a6=>_0x1b34a6[_0x2550('0x77')]())[_0x2550('0xb')](_0x4a046e=>_0x4a046e),_0x2f98d1=new Map(_0xcb52b3['map'](_0xe5e363=>[_0xe5e363,null]));if(_0x565eca)for(const {element:_0x58bd6d,attributes:_0x4f8800}of _0x565eca[_0x2550('0x55')])_0x4f8800&&_0x2f98d1[_0x2550('0x23')](_0x58bd6d,_0x4f8800);else{if(_0xa63ffb&&_0xa63ffb[_0x2550('0x1b')])for(const [_0x55deac,_0x860947]of Object[_0x2550('0x9')](_0xa63ffb[_0x2550('0x1b')])){const _0x437b55=_0x1e6eba[_0x2550('0x3d')][_0x2550('0x97')]['get'](_0x55deac),_0x37b358=_0x437b55?_0x437b55[_0x2550('0x30')]()[_0x2550('0x77')]():null;_0x37b358&&_0x2f98d1['set'](_0x37b358,_0x860947);}}_0x1e6eba['model'][_0x2550('0x85')](_0x3a645e=>{for(const [_0x4b900a,_0x40e07f]of _0x2f98d1)_0x3a645e[_0x2550('0x22')]({...ae,..._0x40e07f},_0x4b900a);});});const _0x4abec6=(_0x4f87ec,_0x2d4a42)=>{_0x27a4e0['_suggestionFactory'][_0x2550('0x24')](_0x4f87ec,_0x2550('0x4f'),_0x2d4a42,(_0xbd4275,_0x50aef2,_0x85edd1)=>{_0x1e6eba['model'][_0x2550('0x85')](_0xe11760=>{const _0x8eff68=[];for(const _0x27746d of _0xbd4275){const _0x1dc15a=_0x27746d[_0x2550('0x49')][_0x2550('0x91')];_0x1dc15a['is'](_0x2550('0x2a'),'tableCellSuggestion')&&_0x8eff68[_0x2550('0xe')](_0x1dc15a);}_0x27a4e0[_0x2550('0x86')][_0x2550('0x58')](_0x4f87ec,null,_0x2d4a42)(_0xbd4275,_0x50aef2,_0x85edd1);for(const _0x2ee752 of _0x8eff68)_0x2550('0x87')!=_0x2ee752[_0x2550('0x2e')][_0x2550('0x26')]&&_0xe11760[_0x2550('0x2b')](_0x2ee752);});});};_0x4abec6(_0x2550('0x13'),_0x2550('0x4b')),_0x4abec6(_0x2550('0x13'),_0x2550('0x8d')),_0x4abec6(_0x2550('0x9c'),'accept'),_0x4abec6('deletion','discard'),_0x27a4e0[_0x2550('0x86')][_0x2550('0x24')]('insertion','tablePasteRow','discard',_0x43acf7=>{const _0x2be8b3=_0x43acf7[_0x2550('0x4')](_0x41337f=>_0x41337f[_0x2550('0x77')]()),_0x1a0bcd=_0x2be8b3[0x0][_0x2550('0x10')]('table'),{minRow:_0x247d8e,maxRow:_0x4cb1af}=_0x166730[_0x2550('0x43')](_0x2be8b3);_0x3c77dd[_0x2550('0x76')](_0x1a0bcd,{'at':_0x247d8e,'rows':_0x4cb1af-_0x247d8e+0x1});}),_0x27a4e0[_0x2550('0x86')]['registerCustomCallback'](_0x2550('0x13'),'tablePasteColumn','discard',_0x653510=>{const _0x1c91c1=_0x653510['map'](_0x59a3e9=>_0x59a3e9['getContainedElement']()),_0x351b20=_0x1c91c1[0x0][_0x2550('0x10')](_0x2550('0x83')),{minColumn:_0x5dfa1b,maxColumn:_0x1c751f}=_0x166730[_0x2550('0x43')](_0x1c91c1);_0x3c77dd[_0x2550('0x1d')](_0x351b20,{'at':_0x5dfa1b,'columns':_0x1c751f-_0x5dfa1b+0x1});});const _0x35ef51=(_0x135077,_0x2e091b)=>{if(!_0x2e091b[_0x2550('0x41')]||!_0x2e091b['subType'][_0x2550('0xa9')](_0x2550('0x4f')))return;const _0x3a9ff6=_0x2e091b[_0x2550('0xad')][_0x2550('0x5')],_0x4941b1=_0x27a4e0[_0x2550('0x60')]()[_0x2550('0xb')](_0x1c3b6d=>_0x1c3b6d['isInContent']&&_0x1c3b6d[_0x2550('0xad')]&&_0x1c3b6d[_0x2550('0xad')]['tablePasteChainId']==_0x3a9ff6);_0x4941b1[_0x2550('0x2c')]&&_0x2e091b[_0x2550('0x3c')]()[_0x2550('0x2c')]!=_0x4941b1[_0x2550('0x2c')]&&_0x4941b1[_0x2550('0x39')]((_0x213f33,_0xadd2b1)=>(_0x213f33[_0x2550('0x40')]=_0xadd2b1,_0xadd2b1[_0x2550('0x9f')]=_0x213f33,_0xadd2b1));};function _0x1e5ca3(_0x5379a1,_0x50262d=!0x0){const {id:_0x20bb5c}=_0x27a4e0[_0x2550('0x90')](_0x5379a1[_0x2550('0x7c')]),_0x2ed97c=[_0x2550('0xb0'),_0x2550('0x67')],_0x1b43e4=_0x27a4e0[_0x2550('0x2d')][_0x2550('0x31')](_0x5379a1[_0x2550('0x7c')]);return _0x1b43e4&&_0x2ed97c[_0x2550('0xe')](_0x2550('0x48')),{'classes':_0x2ed97c,'attributes':{'data-suggestion':_0x20bb5c},'priority':_0x1b43e4&&_0x50262d?0xbc2:0xbb8};}_0x27a4e0['on'](_0x2550('0x36'),_0x35ef51,{'priority':_0x2550('0x3e')}),_0x27a4e0['on'](_0x2550('0x6c'),_0x35ef51,{'priority':'high'}),_0x1e6eba[_0x2550('0x3d')][_0x2550('0x19')][_0x2550('0xa2')](()=>{let _0x1bf8bb=!0x1;const _0x206808=Array['from'](_0x1e6eba[_0x2550('0x3d')][_0x2550('0x19')]['differ'][_0x2550('0x34')]());for(const {name:_0x2f2ea8,data:_0x4f3992}of _0x206808){const {group:_0xf8bb9c,type:_0x2724b0,id:_0x323f50}=_0x27a4e0[_0x2550('0x90')](_0x2f2ea8);if(_0x2550('0x27')!=_0xf8bb9c||_0x2550('0x9c')!=_0x2724b0||_0x4f3992[_0x2550('0x61')])continue;if(!_0x27a4e0[_0x2550('0x33')](_0x323f50))continue;const _0x2d6196=_0x27a4e0[_0x2550('0x94')](_0x323f50)[_0x2550('0xac')](),_0x4809cd=_0x1e6eba[_0x2550('0x28')][_0x2550('0x69')](_0x2550('0x54'))['me'];for(const _0x4f6e92 of _0x27a4e0['getSuggestions']()){if(!_0x4f6e92[_0x2550('0x8f')]||_0x4f6e92[_0x2550('0x8')]!=_0x4809cd)continue;if(_0x2550('0xaa')!=_0x4f6e92['type']||_0x2550('0x6a')!=_0x4f6e92[_0x2550('0x41')])continue;if(_0x4f6e92[_0x2550('0xac')]()[_0x2550('0x52')](_0x37cc35=>_0x2d6196[_0x2550('0x78')](_0x4fa8e9=>_0x4fa8e9[_0x2550('0x65')](_0x37cc35,!0x0))))for(const _0xaec62f of _0x4f6e92['getAllAdjacentSuggestions']())_0xaec62f['isInContent']&&(_0xaec62f[_0x2550('0x8d')](),_0x1bf8bb=!0x0);}}return _0x1bf8bb;}),_0x1e6eba[_0x2550('0x3d')]['document']['registerPostFixer'](_0x554424=>{const _0x39f77e=_0x1e6eba['commands'][_0x2550('0x69')](_0x2550('0xa'));if(!_0x39f77e||!_0x39f77e[_0x2550('0x92')][_0x2550('0x6f')](_0x554424['batch']))return!0x1;let _0x33ef3a=!0x1;const _0x4d9c15=_0x1e6eba['plugins'][_0x2550('0x69')](_0x2550('0x54'))['me'],_0x53b083=_0x1e6eba[_0x2550('0x3d')][_0x2550('0x19')][_0x2550('0x0')][_0x2550('0x4a')](),_0x3769bd=Array[_0x2550('0x63')](_0x1e6eba['model']['document'][_0x2550('0x0')][_0x2550('0x34')]())['filter'](({name:_0x50f035,data:_0x49fcf3})=>{const {group:_0x56e4d1,subType:_0x17155d,authorId:_0x173647}=_0x27a4e0[_0x2550('0x90')](_0x50f035);return _0x2550('0x27')==_0x56e4d1&&'tablePaste'==_0x17155d&&_0x173647==_0x4d9c15['id']&&!_0x49fcf3[_0x2550('0x61')];});for(const _0x380c1f of _0x53b083){if(_0x2550('0x89')!=_0x380c1f[_0x2550('0x56')]||_0x2550('0x88')!=_0x380c1f[_0x2550('0x57')]||0x1!=_0x380c1f['length'])continue;const _0x2ad17d=_0x554424[_0x2550('0x8c')](_0x380c1f[_0x2550('0xab')],_0x380c1f[_0x2550('0xab')][_0x2550('0xa6')](0x1));if(!_0x3769bd[_0x2550('0x21')](({data:_0x3cb492})=>_0x3cb492[_0x2550('0xa7')][_0x2550('0x59')](_0x2ad17d)))for(const {name:_0x5c853d,data:_0x444a15}of _0x3769bd)if(_0x2ad17d[_0x2550('0x65')](_0x444a15[_0x2550('0xa7')])){_0x554424[_0x2550('0x8b')](_0x5c853d,{'range':_0x2ad17d}),_0x33ef3a=!0x0;break;}}return _0x33ef3a;}),_0x1e6eba[_0x2550('0x3d')][_0x2550('0x19')][_0x2550('0xa2')](_0x173995=>{let _0x3a44a6=!0x1;const _0x208684=_0x1e6eba[_0x2550('0x28')][_0x2550('0x69')](_0x2550('0x54'))['me'],_0x3cc2a4=_0x27a4e0[_0x2550('0x60')]()[_0x2550('0xb')](_0x464082=>_0x464082['isInContent']&&_0x464082['author']==_0x208684),_0x173506=new Set(),_0x34fded=new Set();for(const _0x30eadd of _0x3cc2a4)if(_0x2550('0x4f')==_0x30eadd['subType'])for(const _0x46294e of _0x30eadd[_0x2550('0xf')]()){const _0x4ba4cf=_0x46294e['getRange']()[_0x2550('0x77')]();if(_0x4ba4cf){if(_0x4ba4cf['is'](_0x2550('0x2a'),_0x2550('0x88'))&&ce(_0x4ba4cf)){_0x30eadd[_0x2550('0x9d')](_0x46294e['name']),_0x173506['add'](_0x4ba4cf),_0x3a44a6=!0x0;const _0x2de238=_0x4ba4cf[_0x2550('0x11')],_0x5a8c50=_0x4ba4cf[_0x2550('0x71')],_0x3f9b8e=_0x2de238&&_0x2de238['is'](_0x2550('0x2a'),_0x2550('0x88')),_0x2fcfc1=_0x5a8c50&&_0x5a8c50['is'](_0x2550('0x2a'),_0x2550('0x88'));_0x3f9b8e&&!_0x173506[_0x2550('0x6f')](_0x2de238)&&_0x34fded[_0x2550('0x7a')](_0x2de238),_0x2fcfc1&&!_0x173506[_0x2550('0x6f')](_0x5a8c50)&&_0x34fded[_0x2550('0x7a')](_0x5a8c50);}else _0x4ba4cf['is'](_0x2550('0x2a'),_0x2550('0x1'))&&_0x4ba4cf[_0x2550('0x5a')]&&(_0x30eadd['removeMarker'](_0x46294e[_0x2550('0x57')]),_0x3a44a6=!0x0);}}else{if(_0x2550('0x6a')==_0x30eadd[_0x2550('0x41')]){if(!_0x30eadd['attributes']||!_0x30eadd[_0x2550('0xad')]['tablePasteChainId'])continue;const _0x2f5cfd=_0x30eadd[_0x2550('0xad')][_0x2550('0x1b')];if(_0x2f5cfd&&Object[_0x2550('0x5f')](_0x2f5cfd)[_0x2550('0x2c')])continue;const _0x382b09=_0x30eadd[_0x2550('0xad')]['tablePasteChainId'];let _0x27a187=!0x0,_0xaa81bb=!0x0;for(const _0x277b6a of _0x3cc2a4)if(_0x277b6a[_0x2550('0x41')]&&_0x277b6a[_0x2550('0x41')]['startsWith'](_0x2550('0x4f'))){if(!_0x277b6a[_0x2550('0xad')][_0x2550('0x5')]){_0xaa81bb=!0x1;break;}if(_0x277b6a['id']!=_0x30eadd['id']&&_0x277b6a[_0x2550('0xad')][_0x2550('0x5')]==_0x382b09){_0x27a187=!0x1;break;}}_0xaa81bb&&_0x27a187&&(_0x30eadd[_0x2550('0x1a')](),_0x3a44a6=!0x0);}}for(const _0x24655e of _0x173506)_0x173995['remove'](_0x24655e);for(const _0x2c2b85 of _0x34fded)_0x173995['unwrap'](_0x2c2b85);return _0x3a44a6;}),_0x1e6eba[_0x2550('0x3f')][_0x2550('0x25')](_0x2550('0x5c'))[_0x2550('0x8a')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x107dfc,_0x98fcc7)=>_0x1e5ca3(_0x107dfc),'converterPriority':'high'}),_0x1e6eba[_0x2550('0x3f')][_0x2550('0x25')](_0x2550('0x37'))[_0x2550('0x8a')]({'model':_0x2550('0xa1'),'view':(_0x3c1284,_0x704da9)=>_0x704da9[_0x2550('0x45')][_0x2550('0x14')]?_0x1e5ca3(_0x3c1284,!0x1):null,'converterPriority':_0x2550('0x3e')});const _0x1c5bf6=_0x1e6eba[_0x2550('0x3b')][_0x2550('0x8e')];this[_0x2550('0x7d')](_0x1c5bf6['document'],_0x2550('0x7'),(_0x41ecde,_0x145b16)=>{const _0x3c70ca=[];for(const _0x33d6eb of _0x1c5bf6[_0x2550('0x50')](_0x145b16[_0x2550('0x3a')])[_0x2550('0x2')]())_0x33d6eb['is'](_0x2550('0x2a'),_0x2550('0x6'))&&_0x3c70ca[_0x2550('0xe')](_0x33d6eb);_0x1c5bf6[_0x2550('0x85')](_0x483768=>{for(const _0x5c0d93 of _0x3c70ca)_0x483768[_0x2550('0xae')](_0x483768[_0x2550('0x50')](_0x5c0d93),_0x483768[_0x2550('0x82')](_0x5c0d93)),_0x483768['remove'](_0x5c0d93);});});}}function ce(_0x49b1f2){if(_0x49b1f2[_0x2550('0x5a')])return!0x0;const _0xf9390b=_0x49b1f2[_0x2550('0xaf')](0x0);return _0xf9390b['is'](_0x2550('0x2a'),'paragraph')&&_0xf9390b[_0x2550('0x5a')];}function fe(_0x164bfa,_0x210a81={},_0x4b6faa){for(const {isAnchor:_0x490533,cellHeight:_0x2d27a3,cellWidth:_0x53f4f2}of _0x4b6faa[_0x2550('0xa4')](_0x164bfa,{'includeAllSlots':!0x0,..._0x210a81}))if(!_0x490533||0x1!=_0x2d27a3||0x1!=_0x53f4f2)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfb3b=['formatBlock','resizeColumnWidths','afterInit','getAttribute','document','tableWidth','TrackChangesEditing','resizeTable','table','commandParams','handleSuggestionDescription','change','columnWidths','editor','registerDescriptionCallback','getColumnGroupElement','get','enableCommand','_suggestionFactory','subType','accept','TableColumnResizeEditing','resizeTableWidth','bind','data','getTableColumnsWidths','Users','model','formatGroupId','plugins','discard','registerCustomCallback','handleResizeTableWidthCommand','has','*Format:*\x20resize\x20table'];(function(_0x2c745e,_0xfb3b01){const _0x854dbc=function(_0x461adb){while(--_0x461adb){_0x2c745e['push'](_0x2c745e['shift']());}};_0x854dbc(++_0xfb3b01);}(_0xfb3b,0x11e));const _0x854d=function(_0x2c745e,_0xfb3b01){_0x2c745e=_0x2c745e-0x0;let _0x854dbc=_0xfb3b[_0x2c745e];return _0x854dbc;};import{Plugin as _0x5e3c6b}from'ckeditor5/src/core';import{getTranslation as _0x57ac88}from'../utils/common-translations';export default class yt extends _0x5e3c6b{[_0x854d('0x1f')](){if(!this['editor'][_0x854d('0x17')][_0x854d('0x1b')](_0x854d('0xf')))return;const _0x2aa5c6=this[_0x854d('0x7')][_0x854d('0x17')][_0x854d('0xa')]('TrackChangesEditing');_0x2aa5c6['enableCommand'](_0x854d('0x10'),this['handleResizeTableWidthCommand'][_0x854d('0x11')](this)),_0x2aa5c6[_0x854d('0xb')](_0x854d('0x1e'),this[_0x854d('0x1a')]['bind'](this)),_0x2aa5c6[_0x854d('0xc')]['registerCustomCallback']('formatBlock',_0x854d('0x1'),_0x854d('0xe'),_0x2aa5c6['_suggestionFactory']['getSuggestionCallback'](_0x854d('0x1d'),null,'discard')),_0x2aa5c6[_0x854d('0xc')][_0x854d('0x19')](_0x854d('0x1d'),_0x854d('0x1'),_0x854d('0x18'),_0x2aa5c6[_0x854d('0xc')]['getSuggestionCallback']('formatBlock',null,_0x854d('0xe'))),_0x2aa5c6['_descriptionFactory'][_0x854d('0x8')](this[_0x854d('0x4')][_0x854d('0x11')](this));}[_0x854d('0x1a')](_0x311b11,_0x2a9aae){const _0x4eddde=this[_0x854d('0x7')][_0x854d('0x17')][_0x854d('0xa')](_0x854d('0x0')),_0x51ea99=this[_0x854d('0x7')][_0x854d('0x17')][_0x854d('0xa')](_0x854d('0xf')),_0x1b5547=_0x2a9aae[_0x854d('0x2')]||this[_0x854d('0x7')][_0x854d('0x15')][_0x854d('0x21')]['selection']['getSelectedElement']();this[_0x854d('0x7')][_0x854d('0x15')][_0x854d('0x5')](()=>{const _0x39b84f=_0x51ea99[_0x854d('0x9')](_0x1b5547);let _0xabbfc2=_0x39b84f?_0x51ea99[_0x854d('0x13')](_0x39b84f):null,_0x56930f=_0x1b5547[_0x854d('0x20')](_0x854d('0x22'))||null;const _0x4f9307=_0x2a9aae[_0x854d('0x22')]||_0x56930f,_0x330833=_0x2a9aae[_0x854d('0x6')]||_0xabbfc2,_0x10cb74=this[_0x854d('0x7')][_0x854d('0x17')][_0x854d('0xa')](_0x854d('0x14'))['me'];for(const _0x3504af of _0x4eddde['getSuggestions']()){const _0x59be2d=_0x3504af['getContainedElement']();if(_0x854d('0x1')===_0x3504af[_0x854d('0xd')]&&_0x59be2d===_0x1b5547){_0x3504af['author']!==_0x10cb74&&_0x3504af[_0x854d('0x18')]();const _0x393a35=_0x3504af[_0x854d('0x12')][_0x854d('0x3')];_0x56930f=_0x393a35[0x0][_0x854d('0x22')],_0xabbfc2=_0x393a35[0x0][_0x854d('0x6')];break;}}_0x311b11({'table':_0x1b5547,'tableWidth':_0x4f9307,'columnWidths':_0x330833}),_0x4eddde['markBlockFormat'](_0x1b5547,{'commandName':_0x854d('0x10'),'commandParams':[{'tableWidth':_0x56930f,'columnWidths':_0xabbfc2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}[_0x854d('0x4')](_0x40b804){const {data:_0x485eeb}=_0x40b804;if(_0x485eeb&&_0x854d('0x1')===_0x485eeb[_0x854d('0x16')]){const _0x1a6c1c=_0x854d('0x1c');return{'type':'format','content':_0x57ac88(this[_0x854d('0x7')]['locale'],_0x1a6c1c)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a5d=['removeClass','showSuggestionHighlights','addMarker:suggestion','editor','createPositionBefore','getChild','getCellLocation','getAttribute','writer','start','table','first','removeAttribute','nodeBefore','from','setAttribute','commandName','TrackChangesEditing','bindElementToMarker','findAncestor','forceValue','unbindElementFromMarkerName','createTableWalker','markBlockFormat','data','item','change','FORMAT_HEADER_COLUMN','downcastDispatcher','*Format:*\x20%0','FORMAT_REGULAR_COLUMN','consume','_splitMarkerName','getSelectionAffectedTableCells','format','get','includes','getColumnIndexes','getRowIndexes','isBefore','requires','highest','last','commandParams','createRange','setTableRowHeader','markerName','model','enableCommand','FORMAT_HEADER_ROW','registerDescriptionCallback','removeMarker:suggestion','_suggestionFactory','value','headingRows','_descriptionFactory','data-suggestion','parent','mapper','end','accept','getSuggestion','markerRange','options','createPositionAfter','editing','registerCustomCallback','activeMarkers','stop','addClass','ck-suggestion-marker--active','childCount','markerNameToElements','selection','_acceptFormatSuggestionCallbackFactory','setTableColumnHeader','cell','nodeAfter','plugins','ck-suggestion-marker-','TableUtils'];(function(_0x1996e2,_0x5a5d08){const _0x53b0f8=function(_0xfa254a){while(--_0xfa254a){_0x1996e2['push'](_0x1996e2['shift']());}};_0x53b0f8(++_0x5a5d08);}(_0x5a5d,0xcf));const _0x53b0=function(_0x1996e2,_0x5a5d08){_0x1996e2=_0x1996e2-0x0;let _0x53b0f8=_0x5a5d[_0x1996e2];return _0x53b0f8;};import{Plugin as _0x2a4cc0}from'ckeditor5/src/core';import _0x4b140c from'./table';import{getTranslation as _0x126df1}from'../utils/common-translations';export default class kt extends _0x2a4cc0{static get[_0x53b0('0x4c')](){return[_0x4b140c];}['afterInit'](){const _0x42f940=this[_0x53b0('0x27')];if(!_0x42f940['plugins']['has']('TableEditing'))return;const _0x5385b8=_0x42f940['locale'],_0x414ae8=_0x42f940[_0x53b0('0x21')][_0x53b0('0x47')](_0x53b0('0x35')),_0x4ca966=_0x42f940['plugins'][_0x53b0('0x47')]('TableUtils'),_0x1d89e2=_0x42f940[_0x53b0('0x21')][_0x53b0('0x47')](_0x4b140c);function _0xe53459({showActiveMarker:_0x256e49=!0x0,setDataAttribute:_0x327973=!0x0}={}){return(_0x1e4477,_0x161508,_0x39d16b)=>{const {type:_0x12cdc8,id:_0x43ed04}=_0x414ae8[_0x53b0('0x44')](_0x161508[_0x53b0('0x1')]),_0x11f4c4=_0x414ae8['getSuggestion'](_0x43ed04);if(!_0x11f4c4[_0x53b0('0x3c')]||_0x53b0('0x1e')!=_0x11f4c4['data']['commandName'])return;if(_0x161508[_0x53b0('0x3d')])return void _0x1e4477[_0x53b0('0x17')]();if(!_0x39d16b['consumable'][_0x53b0('0x43')](_0x161508[_0x53b0('0x11')],_0x1e4477['name']))return;const _0x278df4=_0x161508[_0x53b0('0x11')][_0x53b0('0x2d')][_0x53b0('0x20')],_0x35f0d0=_0x161508[_0x53b0('0x11')][_0x53b0('0xe')][_0x53b0('0x31')],_0x5ce1bc=_0x278df4[_0x53b0('0xc')][_0x53b0('0xc')],{column:_0x569805}=_0x4ca966[_0x53b0('0x2a')](_0x278df4),{column:_0x2366cf}=_0x4ca966[_0x53b0('0x2a')](_0x35f0d0);for(let _0x4738e8=_0x569805;_0x4738e8<=_0x2366cf;_0x4738e8++){const _0x1fc8ea=_0x4ca966[_0x53b0('0x3a')](_0x5ce1bc,{'column':_0x4738e8,'includeAllSlots':!0x1});for(const _0x50c51a of _0x1fc8ea){const _0xef7365=_0x50c51a[_0x53b0('0x1f')],_0x1d2116=_0x39d16b['mapper']['toViewElement'](_0xef7365);_0x39d16b['writer'][_0x53b0('0x18')](_0x53b0('0x22')+_0x12cdc8,_0x1d2116),_0x327973&&_0x39d16b[_0x53b0('0x2c')][_0x53b0('0x33')](_0x53b0('0xb'),_0x43ed04,_0x1d2116),_0x39d16b[_0x53b0('0xd')][_0x53b0('0x36')](_0x1d2116,_0x161508[_0x53b0('0x1')]),_0x256e49&&(_0x414ae8[_0x53b0('0x16')][_0x53b0('0x48')](_0x161508[_0x53b0('0x1')])?_0x39d16b['writer'][_0x53b0('0x18')](_0x53b0('0x19'),_0x1d2116):_0x39d16b[_0x53b0('0x2c')][_0x53b0('0x24')]('ck-suggestion-marker--active',_0x1d2116));}}};}_0x414ae8['enableCommand'](_0x53b0('0x0'),(_0x1ab097,_0x4a1a69)=>{const _0x2e006f=_0x4ca966[_0x53b0('0x45')](_0x42f940[_0x53b0('0x2')]['document'][_0x53b0('0x1c')]),_0x1e1f65=_0x4ca966[_0x53b0('0x4a')](_0x2e006f),_0x4f4db5=_0x2e006f[0x0][_0x53b0('0x37')](_0x53b0('0x2e')),_0xd52249=_0x4f4db5[_0x53b0('0x2b')](_0x53b0('0x9'))||0x0,_0x9bee4=_0x4a1a69&&null!==_0x4a1a69[_0x53b0('0x38')]?_0x4a1a69['forceValue']:!_0x42f940['commands'][_0x53b0('0x47')](_0x53b0('0x0'))['value'],_0x5b3a13=_0x9bee4?_0x1e1f65[_0x53b0('0x4e')]:_0x1e1f65[_0x53b0('0x2f')],_0x192139=_0x4f4db5[_0x53b0('0x29')](_0x5b3a13);let _0x9eaeb9;if(_0x9bee4){const _0x1b64ed=_0x4f4db5[_0x53b0('0x29')](_0xd52249);if(_0x192139['index']<_0x1b64ed['index'])return;_0x9eaeb9=_0x42f940[_0x53b0('0x2')][_0x53b0('0x50')](_0x42f940[_0x53b0('0x2')][_0x53b0('0x28')](_0x1b64ed['getChild'](0x0)),_0x42f940[_0x53b0('0x2')][_0x53b0('0x13')](_0x192139[_0x53b0('0x29')](_0x192139['childCount']-0x1)));}else{const _0x1ced08=_0x4f4db5[_0x53b0('0x29')](_0xd52249-0x1);if(!_0x1ced08)return;_0x9eaeb9=_0x42f940[_0x53b0('0x2')][_0x53b0('0x50')](_0x42f940['model'][_0x53b0('0x28')](_0x192139[_0x53b0('0x29')](0x0)),_0x42f940[_0x53b0('0x2')][_0x53b0('0x13')](_0x1ced08[_0x53b0('0x29')](_0x1ced08[_0x53b0('0x1a')]-0x1)));}_0x42f940[_0x53b0('0x2')]['change'](()=>{_0x414ae8[_0x53b0('0x3b')](_0x9eaeb9,{'commandName':_0x53b0('0x0'),'commandParams':[{'forceValue':_0x9bee4}]},[],_0x53b0('0x0'));});}),_0x414ae8[_0x53b0('0x3')](_0x53b0('0x1e'),(_0x12c740,_0x1997b1)=>{const _0xd5e67e=_0x42f940['plugins']['get'](_0x53b0('0x23')),_0x3c4a02=_0xd5e67e[_0x53b0('0x45')](_0x42f940[_0x53b0('0x2')]['document'][_0x53b0('0x1c')]),_0x202647=_0xd5e67e[_0x53b0('0x49')](_0x3c4a02),_0x37b4c6=_0x3c4a02[0x0][_0x53b0('0x37')]('table'),_0x4453fb=_0x37b4c6['getAttribute']('headingColumns')||0x0,_0x4ea48f=_0x1997b1&&null!==_0x1997b1['forceValue']?_0x1997b1['forceValue']:!_0x42f940['commands'][_0x53b0('0x47')](_0x53b0('0x1e'))[_0x53b0('0x8')];let _0xc4e610;const _0x136096=_0x37b4c6['getChild'](0x0),_0x2ab51c=_0x4ea48f?_0x202647[_0x53b0('0x4e')]:_0x202647['first'],_0x32fd07=_0xd5e67e[_0x53b0('0x3a')](_0x37b4c6,{'startRow':0x0,'column':_0x2ab51c,'includeAllSlots':!0x1}),_0x14900c=Array[_0x53b0('0x32')](_0x32fd07)[0x0][_0x53b0('0x1f')];if(_0x4ea48f){const _0x47f225=_0x136096[_0x53b0('0x29')](_0x4453fb);if(_0x14900c[_0x53b0('0x4b')](_0x47f225))return;_0xc4e610=_0x42f940[_0x53b0('0x2')][_0x53b0('0x50')](_0x42f940[_0x53b0('0x2')][_0x53b0('0x28')](_0x47f225),_0x42f940[_0x53b0('0x2')]['createPositionAfter'](_0x14900c));}else{const _0x5dcaa4=_0x136096[_0x53b0('0x29')](_0x4453fb-0x1);if(!_0x5dcaa4)return;_0xc4e610=_0x42f940[_0x53b0('0x2')]['createRange'](_0x42f940[_0x53b0('0x2')][_0x53b0('0x28')](_0x14900c),_0x42f940[_0x53b0('0x2')][_0x53b0('0x13')](_0x5dcaa4));}_0x42f940[_0x53b0('0x2')][_0x53b0('0x3e')](()=>{_0x414ae8[_0x53b0('0x3b')](_0xc4e610,{'commandName':_0x53b0('0x1e'),'commandParams':[{'forceValue':_0x4ea48f}]},[],_0x53b0('0x1e'));});}),_0x42f940['editing'][_0x53b0('0x40')]['on'](_0x53b0('0x26'),_0xe53459(),{'priority':_0x53b0('0x4d')}),_0x42f940[_0x53b0('0x3c')][_0x53b0('0x40')]['on'](_0x53b0('0x26'),(_0x3b6f8f,_0x3c9f80,_0x38f964)=>{_0x38f964[_0x53b0('0x12')][_0x53b0('0x25')]&&_0xe53459({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3b6f8f,_0x3c9f80,_0x38f964);},{'priority':_0x53b0('0x4d')}),_0x42f940[_0x53b0('0x14')][_0x53b0('0x40')]['on'](_0x53b0('0x6'),(_0x4e418c,_0x37653b,_0x2fd410)=>{const {type:_0x32d4e4,id:_0x4b101f}=_0x414ae8[_0x53b0('0x44')](_0x37653b[_0x53b0('0x1')]),_0x4d77cc=_0x414ae8[_0x53b0('0x10')](_0x4b101f);if(!_0x4d77cc[_0x53b0('0x3c')]||_0x53b0('0x1e')!=_0x4d77cc['data'][_0x53b0('0x34')])return;const _0x2cd659=_0x2fd410[_0x53b0('0xd')][_0x53b0('0x1b')](_0x37653b[_0x53b0('0x1')]);if(_0x2cd659)for(const _0x38be2e of _0x2cd659)_0x2fd410[_0x53b0('0x2c')][_0x53b0('0x24')](_0x53b0('0x22')+_0x32d4e4,_0x38be2e),_0x2fd410['writer'][_0x53b0('0x24')]('ck-suggestion-marker--active',_0x38be2e),_0x2fd410['writer'][_0x53b0('0x30')](_0x53b0('0xb'),_0x38be2e),_0x2fd410['mapper'][_0x53b0('0x39')](_0x38be2e,_0x37653b[_0x53b0('0x1')]);},{'priority':_0x53b0('0x4d')}),_0x414ae8[_0x53b0('0xa')][_0x53b0('0x5')](_0x32e32e=>{const {data:_0x1a9ab1}=_0x32e32e;if(_0x1a9ab1){if(_0x53b0('0x0')==_0x1a9ab1['commandName']){const _0x7df15d=_0x1a9ab1['commandParams'][0x0][_0x53b0('0x38')];return _0x41785c(_0x126df1(_0x5385b8,_0x7df15d?_0x53b0('0x4'):'FORMAT_REGULAR_ROW'));}if(_0x53b0('0x1e')==_0x1a9ab1[_0x53b0('0x34')]){const _0x5de302=_0x1a9ab1[_0x53b0('0x4f')][0x0]['forceValue'];return _0x41785c(_0x126df1(_0x5385b8,_0x5de302?_0x53b0('0x3f'):_0x53b0('0x42')));}}function _0x41785c(_0x51629e){return{'type':_0x53b0('0x46'),'content':_0x126df1(_0x5385b8,_0x53b0('0x41'),_0x51629e)};}});const _0x23950f=_0x1d89e2[_0x53b0('0x1d')]();_0x414ae8['_suggestionFactory'][_0x53b0('0x15')]('formatBlock',_0x53b0('0x0'),_0x53b0('0xf'),_0x23950f),_0x414ae8[_0x53b0('0x7')][_0x53b0('0x15')]('formatBlock',_0x53b0('0x1e'),_0x53b0('0xf'),_0x23950f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29a3=['_areSelectedCellsMergable','table','plugins','registerDescriptionCallback','direction','length','editor','TableUtils','setSelection','model','return','$graveyard','getRanges','markMultiRangeBlockFormat','accept','from','_acceptFormatSuggestionCallbackFactory','createRangeOn','find','execute','_tablePostFixingSubtypes','horizontally','registerCustomCallback','createTableWalker','splitTableCellHorizontally','format','findAncestor','document','markBlockFormat','commandName','commands','_descriptionFactory','mergeTableCellUp','add','selection','cell','afterInit','_isForcedDefaultExecutionBlock','fromRange','mergeTableCellLeft','getCellLocation','has','tableCell','splitTableCellVertically','type','root','size','_areMergableCells','containsRange','enableCommand','set:isEnabled','rootName','value','_suggestionFactory','isEnabled','getAncestors','forceDefaultExecution','locale','author','element','getFirstPosition','stop','getSelectionAffectedTableCells','mergeTableCells','TableEditing','refresh','TrackChangesEditing','getSuggestions','get','*Split\x20cell:*\x20horizontally','mergeTableCellRight','mergeTableCellDown','change','map'];(function(_0x1112a4,_0x29a360){const _0xa90593=function(_0x2727af){while(--_0x2727af){_0x1112a4['push'](_0x1112a4['shift']());}};_0xa90593(++_0x29a360);}(_0x29a3,0xab));const _0xa905=function(_0x1112a4,_0x29a360){_0x1112a4=_0x1112a4-0x0;let _0xa90593=_0x29a3[_0x1112a4];return _0xa90593;};import{Plugin as _0x468482}from'ckeditor5/src/core';import _0x56ce41 from'./table';import{LiveRange as _0x261038}from'ckeditor5/src/engine';import{getTranslation as _0x2f0fde}from'../utils/common-translations';export default class pt extends _0x468482{static get['requires'](){return[_0x56ce41];}[_0xa905('0xd')](){const _0x5bb0d8=this[_0xa905('0x39')],_0x18f05d=_0x5bb0d8[_0xa905('0x3c')][_0xa905('0x4')][_0xa905('0xb')],_0x3daade=_0x5bb0d8[_0xa905('0x22')];if(!_0x5bb0d8[_0xa905('0x35')]['has'](_0xa905('0x29')))return;const _0x11eed4=_0x5bb0d8['plugins'][_0xa905('0x2d')](_0xa905('0x2b')),_0x31b0b0=_0x5bb0d8[_0xa905('0x35')][_0xa905('0x2d')](_0xa905('0x3a')),_0x1d9c0a=_0x5bb0d8[_0xa905('0x35')][_0xa905('0x2d')](_0x56ce41);_0x1d9c0a[_0xa905('0x47')]['push'](_0xa905('0x28')),_0x11eed4[_0xa905('0x1a')](_0xa905('0x28'),()=>{const _0x14b821=_0x31b0b0[_0xa905('0x27')](_0x5bb0d8[_0xa905('0x3c')][_0xa905('0x4')]['selection']);_0x5bb0d8[_0xa905('0x3c')][_0xa905('0x31')](()=>{_0x11eed4[_0xa905('0x40')](_0x14b821,{'commandName':'mergeTableCells','commandParams':[]},[],_0xa905('0x28'));});}),_0x5bb0d8['commands']['get'](_0xa905('0x28'))['on'](_0xa905('0x46'),(_0x1b3f75,_0x458c9f)=>{_0x5bb0d8[_0xa905('0x7')][_0xa905('0x2d')]('trackChanges')['value']&&(_0x458c9f['length']>0x0&&_0x458c9f[_0x458c9f['length']-0x1]&&_0x458c9f[_0x458c9f[_0xa905('0x38')]-0x1][_0xa905('0x21')]||_0x11eed4[_0xa905('0xe')]||this[_0xa905('0x33')]()||_0x1b3f75[_0xa905('0x26')]());},{'priority':'highest'});for(const _0xaa64da of[_0xa905('0x9'),_0xa905('0x2f'),'mergeTableCellDown',_0xa905('0x10')]){const _0x965194=_0x5bb0d8[_0xa905('0x7')][_0xa905('0x2d')](_0xaa64da);_0x11eed4[_0xa905('0x1a')](_0xaa64da,()=>{const _0x57b3df=_0x5bb0d8[_0xa905('0x3c')][_0xa905('0x4')][_0xa905('0xb')]['getFirstPosition']()[_0xa905('0x20')]()[_0xa905('0x45')](_0x176fef=>_0x176fef['is'](_0xa905('0x24'),_0xa905('0x13'))),_0x12b88d=_0x965194['value'];_0x5bb0d8[_0xa905('0x3c')][_0xa905('0x31')](()=>{_0x11eed4['markMultiRangeBlockFormat']([_0x57b3df,_0x12b88d],{'commandName':_0xa905('0x28'),'commandParams':[]},[],_0xa905('0x28'));});});}for(const _0x2e2c3a of[_0xa905('0x14'),_0xa905('0x1')]){const _0x6ab7e1=_0x5bb0d8[_0xa905('0x7')][_0xa905('0x2d')](_0x2e2c3a);_0x11eed4['enableCommand'](_0x2e2c3a,()=>{const _0x31c1a9=_0x31b0b0['getSelectionAffectedTableCells'](_0x5bb0d8[_0xa905('0x3c')][_0xa905('0x4')][_0xa905('0xb')])[0x0],_0x1f47f2=_0x31c1a9[_0xa905('0x3')](_0xa905('0x34')),{column:_0x17f5a0,row:_0x5b984a}=_0x31b0b0[_0xa905('0x11')](_0x31c1a9);let _0x5f4659=[];if(_0xa905('0x48')==_0x6ab7e1[_0xa905('0x37')]){const _0x38edf5=_0x31b0b0[_0xa905('0x0')](_0x1f47f2,{'startRow':_0x5b984a,'endRow':_0x5b984a,'includeAllSlots':!0x0});_0x5f4659=Array[_0xa905('0x42')](_0x38edf5)['map'](_0x34c744=>_0x34c744[_0xa905('0xc')]);}else{const _0x59eacf=_0x31b0b0[_0xa905('0x0')](_0x1f47f2,{'column':_0x17f5a0,'includeAllSlots':!0x0});_0x5f4659=Array[_0xa905('0x42')](_0x59eacf)[_0xa905('0x32')](_0x46f08d=>_0x46f08d[_0xa905('0xc')]);}_0x5bb0d8[_0xa905('0x3c')][_0xa905('0x31')](_0x34130a=>{_0x11eed4[_0xa905('0x5')](_0x34130a[_0xa905('0x44')](_0x31c1a9),{'commandName':_0x2e2c3a,'commandParams':[]},_0x5f4659,_0x2e2c3a);});});}_0x11eed4[_0xa905('0x8')][_0xa905('0x36')](_0x57b9df=>{const {data:_0x976c02}=_0x57b9df;if(_0x976c02)return'mergeTableCells'==_0x976c02[_0xa905('0x6')]?{'type':_0xa905('0x2'),'content':_0x2f0fde(_0x3daade,'*Merge\x20cells*')}:void 0x0;}),_0x11eed4['_descriptionFactory'][_0xa905('0x36')](_0x50733d=>{const {data:_0x3b9279}=_0x50733d;if(_0x3b9279)return _0xa905('0x14')==_0x3b9279[_0xa905('0x6')]?{'type':_0xa905('0x2'),'content':_0x2f0fde(_0x3daade,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3b9279[_0xa905('0x6')]?{'type':'format','content':_0x2f0fde(_0x3daade,_0xa905('0x2e'))}:void 0x0;});const _0x19b8c5=_0x1d9c0a[_0xa905('0x43')]();for(const _0x43e9f3 of['mergeTableCellUp',_0xa905('0x2f'),'mergeTableCellDown',_0xa905('0x10')])_0x11eed4[_0xa905('0x1e')]['registerCustomCallback']('formatBlock',_0x43e9f3,_0xa905('0x41'),_0x19b8c5);for(const _0x23f92d of[_0xa905('0x14'),_0xa905('0x1')])_0x11eed4[_0xa905('0x1e')][_0xa905('0x49')]('formatBlock',_0x23f92d,_0xa905('0x41'),_0x19b8c5);_0x11eed4['_suggestionFactory'][_0xa905('0x49')]('formatBlock',_0xa905('0x28'),'accept',_0x17ad5c=>{_0x5bb0d8[_0xa905('0x3c')][_0xa905('0x31')](_0x2e0bc7=>{const _0x3017b6=Array[_0xa905('0x42')](_0x18f05d[_0xa905('0x3f')]())[_0xa905('0x32')](_0x1eefa1=>_0x261038[_0xa905('0xf')](_0x1eefa1));_0x2e0bc7[_0xa905('0x3b')](_0x17ad5c),_0x5bb0d8[_0xa905('0x7')][_0xa905('0x2d')]('mergeTableCells')[_0xa905('0x2a')](),_0x5bb0d8[_0xa905('0x46')](_0xa905('0x28'),{'forceDefaultExecution':!0x0});const _0x310f87=_0x3017b6['filter'](_0x14c438=>_0xa905('0x3e')!=_0x14c438[_0xa905('0x16')][_0xa905('0x1c')]);_0x310f87[_0xa905('0x38')]>0x0&&_0x2e0bc7[_0xa905('0x3b')](_0x310f87);for(const _0x41ffcf of _0x3017b6)_0x41ffcf['detach']();});});for(const _0x3bf3ba of['mergeTableCellUp',_0xa905('0x30'),_0xa905('0x10'),'mergeTableCellRight']){const _0x1aca62=_0x5bb0d8['commands'][_0xa905('0x2d')](_0x3bf3ba);_0x1aca62['on'](_0xa905('0x1b'),(_0x1b86cd,_0x28cc98,_0x67e43a)=>{if(_0x67e43a){const _0x3fb66b=_0x5bb0d8['model']['document'][_0xa905('0xb')][_0xa905('0x25')]()[_0xa905('0x20')]()[_0xa905('0x45')](_0x359061=>_0x359061['is'](_0xa905('0x24'),_0xa905('0x13')));this['_areMergableCells'](_0x1aca62[_0xa905('0x1d')],_0x3fb66b)||(_0x1b86cd[_0xa905('0x3d')]=!0x1,_0x1b86cd[_0xa905('0x26')]());}},{'priority':'low'});}}[_0xa905('0x33')](){const _0x3511d5=this[_0xa905('0x39')]['commands']['get']('mergeTableCells'),_0x410e32=this['editor']['plugins'][_0xa905('0x2d')](_0xa905('0x3a'));if(!_0x3511d5[_0xa905('0x1f')])return!0x1;const _0x2282b4=_0x410e32[_0xa905('0x27')](this[_0xa905('0x39')][_0xa905('0x3c')][_0xa905('0x4')][_0xa905('0xb')]);for(const _0x598969 of _0x2282b4)for(const _0x28c19b of _0x2282b4)if(_0x598969!=_0x28c19b&&!this[_0xa905('0x18')](_0x598969,_0x28c19b))return!0x1;return!0x0;}[_0xa905('0x18')](_0x2af4ad,_0x4fb326){const _0x247204=this[_0xa905('0x39')][_0xa905('0x35')][_0xa905('0x2d')](_0xa905('0x2b')),_0x43d5a9=this[_0xa905('0x39')]['model'][_0xa905('0x44')](_0x2af4ad),_0x18f119=this[_0xa905('0x39')][_0xa905('0x3c')]['createRangeOn'](_0x4fb326),_0x43345a=new Set(),_0x27a91c=new Set();for(const _0x5a5086 of _0x247204[_0xa905('0x2c')]())if(('insertion'==_0x5a5086[_0xa905('0x15')]||'deletion'==_0x5a5086['type']||'mergeTableCells'==_0x5a5086['subType'])&&_0x5a5086['isInContent'])for(const _0x158fc3 of _0x5a5086[_0xa905('0x3f')]())_0x158fc3[_0xa905('0x19')](_0x43d5a9,!0x0)&&_0x43345a['add'](_0x5a5086[_0xa905('0x15')]+':'+_0x5a5086['author']['id']),_0x158fc3[_0xa905('0x19')](_0x18f119,!0x0)&&_0x27a91c[_0xa905('0xa')](_0x5a5086[_0xa905('0x15')]+':'+_0x5a5086[_0xa905('0x23')]['id']);if(_0x43345a[_0xa905('0x17')]!=_0x27a91c[_0xa905('0x17')])return!0x1;for(const _0x51f106 of _0x43345a)if(!_0x27a91c[_0xa905('0x12')](_0x51f106))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f0f=['plugins','insertTableOfContents','tableOfContents','commands','get','enableCommand','TrackChangesEditing','registerElementLabel','ELEMENT_TABLE_OF_CONTENTS'];(function(_0x5d791e,_0x2f0f7e){const _0x539989=function(_0x523478){while(--_0x523478){_0x5d791e['push'](_0x5d791e['shift']());}};_0x539989(++_0x2f0f7e);}(_0x2f0f,0x1ed));const _0x5399=function(_0x5d791e,_0x2f0f7e){_0x5d791e=_0x5d791e-0x0;let _0x539989=_0x2f0f[_0x5d791e];return _0x539989;};import{Plugin as _0x158aa6}from'ckeditor5/src/core';import{getTranslation as _0x56d49c}from'../utils/common-translations';export default class St extends _0x158aa6{['afterInit'](){const _0x2fa688=this['editor'];if(!_0x2fa688[_0x5399('0x5')][_0x5399('0x6')]('insertTableOfContents'))return;_0x2fa688['plugins'][_0x5399('0x6')](_0x5399('0x8'))[_0x5399('0x7')](_0x5399('0x3'));const _0xf04c21=_0x2fa688[_0x5399('0x2')][_0x5399('0x6')](_0x5399('0x8')),_0x38191f=_0x2fa688['locale'];_0xf04c21['_descriptionFactory'][_0x5399('0x0')](_0x5399('0x4'),_0x30bf38=>_0x56d49c(_0x38191f,_0x5399('0x1'),_0x30bf38));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc498=['nodeAfter','commandParams','has','document','TablePropertiesEditing','handleDiscardAction','registerDescriptionCallback','accept','findAncestor','TableCellPropertiesEditing','_getSuggestion','*Format:*\x20change\x20table\x20cell\x20properties','_handlePropertyChange','subType','_suggestionFactory','tableCellVerticalAlignment','tableCellHeight','discard','tableCellPadding','registerCustomCallback','tableCellProperties','tableWidth','tableCellWidth','_descriptionFactory','getContainedElement','editor','join','selection','change','locale','tableAlignment','formatBlock','get','getFirstPosition','afterInit','plugins','tableHeight','tableProperties','TableUtils','model','*Format:*\x20change\x20table\x20properties','enableCommand','getSuggestionCallback','start','format','pluginName','TrackChangesEditing','TrackChangesTableProperties','tableBackgroundColor','enqueueChange','removeAttribute','tableCellBorderColor','tableBorderStyle','markBlockFormat','data','handleSuggestionDescription','tableCellHorizontalAlignment','setAttribute','batch'];(function(_0x49258b,_0xc498d2){const _0x518abf=function(_0x228823){while(--_0x228823){_0x49258b['push'](_0x49258b['shift']());}};_0x518abf(++_0xc498d2);}(_0xc498,0x197));const _0x518a=function(_0x49258b,_0xc498d2){_0x49258b=_0x49258b-0x0;let _0x518abf=_0xc498[_0x49258b];return _0x518abf;};import{Plugin as _0x507955}from'ckeditor5/src/core';import{getTranslation as _0x1b4a14}from'../utils/common-translations';export default class Dt extends _0x507955{constructor(_0x180a9b){super(_0x180a9b),this['tableProperties']=['tableBorderColor',_0x518a('0x3a'),'tableBorderWidth',_0x518a('0x24'),_0x518a('0x1b'),_0x518a('0x2a'),_0x518a('0x36')],this['tableCellProperties']=[_0x518a('0x39'),'tableCellBorderStyle','tableCellBorderWidth',_0x518a('0x18'),_0x518a('0x1c'),_0x518a('0x16'),'tableCellBackgroundColor',_0x518a('0x3'),_0x518a('0x15')];}static get[_0x518a('0x33')](){return _0x518a('0x35');}[_0x518a('0x28')](){const _0x40da1c=this['editor'][_0x518a('0x29')]['get']('TrackChangesEditing');if(this[_0x518a('0x1f')][_0x518a('0x29')][_0x518a('0x8')](_0x518a('0xa'))){for(const _0x222d37 of this[_0x518a('0x2b')])_0x40da1c['enableCommand'](_0x222d37,(_0x5f034f,_0x1199c6)=>{const _0x21ef05=this[_0x518a('0x1f')][_0x518a('0x2d')][_0x518a('0x9')]['selection'][_0x518a('0x27')]()[_0x518a('0xe')]('table');this[_0x518a('0x12')](_0x222d37,[_0x21ef05],this[_0x518a('0x2b')],_0x518a('0x2b'),_0x5f034f,_0x1199c6);});_0x40da1c[_0x518a('0x14')][_0x518a('0x19')](_0x518a('0x25'),'tableProperties',_0x518a('0xd'),_0x40da1c[_0x518a('0x14')][_0x518a('0x30')](_0x518a('0x25'),null,'discard')),_0x40da1c[_0x518a('0x14')]['registerCustomCallback'](_0x518a('0x25'),_0x518a('0x2b'),_0x518a('0x17'),(_0x43943b,_0x391428)=>this[_0x518a('0xb')](this['tableProperties'],_0x43943b,_0x391428)),_0x40da1c[_0x518a('0x14')][_0x518a('0x19')](_0x518a('0x25'),'tableProperties',_0x518a('0x20'),()=>!0x1);}if(this[_0x518a('0x1f')]['plugins'][_0x518a('0x8')](_0x518a('0xf'))){for(const _0x52caf9 of this[_0x518a('0x1a')])_0x40da1c[_0x518a('0x2f')](_0x52caf9,(_0x56ee32,_0x300561)=>{const _0xd56c2e=this[_0x518a('0x1f')][_0x518a('0x29')][_0x518a('0x26')](_0x518a('0x2c'))['getSelectionAffectedTableCells'](this[_0x518a('0x1f')][_0x518a('0x2d')]['document'][_0x518a('0x21')]);this[_0x518a('0x12')](_0x52caf9,_0xd56c2e,this[_0x518a('0x1a')],_0x518a('0x1a'),_0x56ee32,_0x300561);});_0x40da1c[_0x518a('0x14')][_0x518a('0x19')]('formatBlock',_0x518a('0x1a'),_0x518a('0xd'),_0x40da1c['_suggestionFactory'][_0x518a('0x30')](_0x518a('0x25'),null,'discard')),_0x40da1c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x518a('0x1a'),_0x518a('0x17'),(_0x4c5b83,_0x5a2cc6)=>this['handleDiscardAction'](this[_0x518a('0x1a')],_0x4c5b83,_0x5a2cc6)),_0x40da1c[_0x518a('0x14')]['registerCustomCallback'](_0x518a('0x25'),_0x518a('0x1a'),_0x518a('0x20'),()=>!0x1);}_0x40da1c[_0x518a('0x1d')][_0x518a('0xc')](_0x3f0f78=>this[_0x518a('0x2')](_0x3f0f78));}['_handlePropertyChange'](_0x4b46bc,_0xc7b52f,_0x10445a,_0x8fed62,_0x295193,_0x537047){const _0x199dbb=this[_0x518a('0x1f')][_0x518a('0x29')]['get'](_0x518a('0x34'));this[_0x518a('0x1f')][_0x518a('0x2d')][_0x518a('0x37')](_0x537047[_0x518a('0x5')],()=>{for(const _0x5ddea6 of _0xc7b52f){if(this['_getSuggestion'](_0x5ddea6,_0x8fed62))_0x295193(_0x537047);else{const _0x4fca58={};for(const _0x582473 of _0x10445a){const _0x5a0fbb=_0x5ddea6['getAttribute'](_0x582473);void 0x0!==_0x5a0fbb&&(_0x4fca58[_0x582473]=_0x5a0fbb);}_0x295193(_0x537047),_0x199dbb[_0x518a('0x0')](_0x5ddea6,{'commandParams':[_0x4fca58]},[],_0x8fed62);}}});}[_0x518a('0xb')](_0x2f42bf,_0x5c024d,_0x12e5c0){const _0x592c6b=_0x5c024d[0x0][_0x518a('0x31')][_0x518a('0x6')],_0x20bf9a=_0x12e5c0[_0x518a('0x7')][0x0];this[_0x518a('0x1f')][_0x518a('0x2d')][_0x518a('0x22')](_0x49dcd0=>{for(const _0x580e39 of _0x2f42bf)void 0x0!==_0x20bf9a[_0x580e39]?_0x49dcd0[_0x518a('0x4')](_0x580e39,_0x20bf9a[_0x580e39],_0x592c6b):_0x49dcd0[_0x518a('0x38')](_0x580e39,_0x592c6b);});}[_0x518a('0x2')](_0x562222){if(_0x562222[_0x518a('0x1')])switch(_0x562222['subType']){case _0x518a('0x2b'):return{'type':_0x518a('0x32'),'content':_0x1b4a14(this[_0x518a('0x1f')][_0x518a('0x23')],_0x518a('0x2e'))};case _0x518a('0x1a'):return{'type':_0x518a('0x32'),'content':_0x1b4a14(this[_0x518a('0x1f')][_0x518a('0x23')],_0x518a('0x11'))};}}[_0x518a('0x10')](_0x254c73,_0x333b27){const _0x467c2c=this[_0x518a('0x1f')]['plugins'][_0x518a('0x26')](_0x518a('0x34'));for(const _0xc75316 of _0x467c2c['getSuggestions']({'skipNotAttached':!0x0})){const _0x2d0d79=_0xc75316[_0x518a('0x1e')]();if(_0xc75316[_0x518a('0x13')]===_0x333b27&&_0x2d0d79===_0x254c73)return _0xc75316;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x451a=['plugins','editor','insertTemplate'];(function(_0x33de8e,_0x451aa8){const _0x50aff5=function(_0x3c6b40){while(--_0x3c6b40){_0x33de8e['push'](_0x33de8e['shift']());}};_0x50aff5(++_0x451aa8);}(_0x451a,0x13e));const _0x50af=function(_0x33de8e,_0x451aa8){_0x33de8e=_0x33de8e-0x0;let _0x50aff5=_0x451a[_0x33de8e];return _0x50aff5;};import{Plugin as _0x178990}from'ckeditor5/src/core';export default class bt extends _0x178990{['afterInit'](){const _0x2ea3a4=this[_0x50af('0x1')];_0x2ea3a4[_0x50af('0x0')]['has']('Template')&&_0x2ea3a4[_0x50af('0x0')]['get']('TrackChangesEditing')['enableCommand'](_0x50af('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d7b=['newRange','editor','suggestion','locale','has','TrackChangesEditing','afterInit','_descriptionFactory','model','createRange','get','plugins','registerPostFixer','schema','differ','isCollapsed','removeMarker','title-content','getChangedMarkers','start','Title','document','ELEMENT_TITLE','updateMarker','isTouching'];(function(_0x2d2553,_0x1d7b12){const _0x28e12f=function(_0x4c960b){while(--_0x4c960b){_0x2d2553['push'](_0x2d2553['shift']());}};_0x28e12f(++_0x1d7b12);}(_0x1d7b,0x121));const _0x28e1=function(_0x2d2553,_0x1d7b12){_0x2d2553=_0x2d2553-0x0;let _0x28e12f=_0x1d7b[_0x2d2553];return _0x28e12f;};import{Plugin as _0x4bd224}from'ckeditor5/src/core';import{getTranslation as _0x53baca}from'../utils/common-translations';export default class It extends _0x4bd224{[_0x28e1('0x11')](){const _0x49e7a5=this[_0x28e1('0xc')];if(!_0x49e7a5[_0x28e1('0x16')][_0x28e1('0xf')](_0x28e1('0x6')))return;const _0x45cce2=_0x49e7a5[_0x28e1('0x16')][_0x28e1('0x15')](_0x28e1('0x10'));_0x45cce2[_0x28e1('0x12')]['registerElementLabel']('title-content',()=>_0x53baca(_0x49e7a5[_0x28e1('0xe')],_0x28e1('0x8'))),_0x49e7a5[_0x28e1('0x13')]['document'][_0x28e1('0x17')](_0x1399fc=>{let _0x32d495=!0x1;const _0x3673d7=Array['from'](_0x49e7a5[_0x28e1('0x13')][_0x28e1('0x7')][_0x28e1('0x0')][_0x28e1('0x4')]());for(const {name:_0x5cf124,data:_0x12edaa}of _0x3673d7){const {group:_0x26a9cd}=_0x45cce2['_splitMarkerName'](_0x5cf124);if(_0x28e1('0xd')!==_0x26a9cd||!_0x12edaa[_0x28e1('0xb')])continue;const _0x512164=_0x12edaa[_0x28e1('0xb')],_0x4ee02d=_0x512164['end']['nodeBefore'];if(!_0x4ee02d||!_0x4ee02d['is']('element',_0x28e1('0x3')))continue;if(!_0x512164['start'][_0x28e1('0xa')](_0x512164['end']))continue;const _0x1fc451=_0x49e7a5[_0x28e1('0x13')][_0x28e1('0x18')]['getNearestSelectionRange'](_0x512164['end'],'forward');if(_0x1fc451&&_0x1fc451[_0x28e1('0x1')]){const _0xfa866a=_0x1399fc[_0x28e1('0x14')](_0x512164[_0x28e1('0x5')],_0x1fc451[_0x28e1('0x5')]);_0xfa866a['isEqual'](_0x512164)||(_0x1399fc[_0x28e1('0x9')](_0x5cf124,{'range':_0xfa866a}),_0x32d495=!0x0);}_0x32d495||(_0x1399fc[_0x28e1('0x2')](_0x5cf124),_0x32d495=!0x0);}return _0x32d495;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3511=['editor','enableCommand','undo','plugins','get','UndoEditing','afterInit','has','TrackChangesEditing'];(function(_0x2752f8,_0x3511d0){const _0x187811=function(_0x64b8b){while(--_0x64b8b){_0x2752f8['push'](_0x2752f8['shift']());}};_0x187811(++_0x3511d0);}(_0x3511,0x6e));const _0x1878=function(_0x2752f8,_0x3511d0){_0x2752f8=_0x2752f8-0x0;let _0x187811=_0x3511[_0x2752f8];return _0x187811;};import{Plugin as _0x4ef12d}from'ckeditor5/src/core';export default class vt extends _0x4ef12d{[_0x1878('0x4')](){const _0x5e2725=this[_0x1878('0x7')],_0x5791e2=_0x5e2725[_0x1878('0x1')][_0x1878('0x2')](_0x1878('0x6'));_0x5e2725[_0x1878('0x1')][_0x1878('0x5')](_0x1878('0x3'))&&(_0x5791e2[_0x1878('0x8')](_0x1878('0x0')),_0x5791e2['enableCommand']('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27b4=['consumable','previousPosition','isLimit','get','type','isBlock','getItems','item','elementEnd','listItem','toViewPosition','nextSibling','includes','insert','bindElementToMarker','name','listIndent','isContent','span','activeMarkers','schema','mapper','createRangeOn','element','toViewElement','writer','addClass','model','ck-suggestion-marker-','plugins','createUIElement','markerName','markerRange','ck-suggestion-marker--active','addHighlight','start','getCustomProperty','parent','push','getWalker','TrackChangesEditing'];(function(_0x1202e1,_0x27b4e3){const _0x4a0c7a=function(_0x4a6132){while(--_0x4a6132){_0x1202e1['push'](_0x1202e1['shift']());}};_0x4a0c7a(++_0x27b4e3);}(_0x27b4,0xaf));const _0x4a0c=function(_0x1202e1,_0x27b4e3){_0x1202e1=_0x1202e1-0x0;let _0x4a0c7a=_0x27b4[_0x1202e1];return _0x4a0c7a;};export function getRangesWithAttribute(_0x4d5822,_0x5c4600,_0xf0e0f0){const _0x70b256=[];for(const _0x68ea8a of _0x5c4600[_0x4a0c('0x24')]())_0x68ea8a['hasAttribute'](_0x4d5822)&&_0x70b256[_0x4a0c('0x1b')](_0xf0e0f0[_0x4a0c('0xb')](_0x68ea8a));return _0x70b256;}export function getElementsAffectedByListItemRename(_0x4a9364){const _0x5ab24b=[];if(_0x4a9364['is'](_0x4a0c('0xc'),_0x4a0c('0x27'))){let _0x2028a7=_0x4a9364[_0x4a0c('0x0')];for(;_0x2028a7&&_0x2028a7['is'](_0x4a0c('0xc'),'listItem')&&_0x2028a7['getAttribute'](_0x4a0c('0x5'))>0x0;)_0x5ab24b[_0x4a0c('0x1b')](_0x2028a7),_0x2028a7=_0x2028a7[_0x4a0c('0x0')];}return _0x5ab24b;}export function downcastSplitMergeMarker(_0x564fe6,_0x570cc6,{showActiveMarker:_0x463977=!0x0}={}){const _0x4f813e=_0x564fe6[_0x4a0c('0x12')][_0x4a0c('0x21')](_0x4a0c('0x1d'));return(_0x27dc89,_0x5b213d,_0x9e4d34)=>{if(!_0x9e4d34[_0x4a0c('0x1e')]['test'](_0x5b213d[_0x4a0c('0x15')],_0x27dc89[_0x4a0c('0x4')]))return;const _0x181492=_0x5b213d[_0x4a0c('0x15')][_0x4a0c('0x1c')](),_0x2809c1=_0x5b213d['markerRange'][_0x4a0c('0x18')],_0x6e6791=_0x564fe6[_0x4a0c('0x10')][_0x4a0c('0x9')];let _0x5e75ae=null,_0x2cf730=null,_0x59de56=!0x1,_0x53cc42=!0x1;for(const _0x29221b of _0x181492){const _0x55ed49=_0x29221b[_0x4a0c('0x25')];_0x59de56=_0x59de56||_0x6e6791[_0x4a0c('0x6')](_0x55ed49);const _0x51c4ea=_0x9e4d34[_0x4a0c('0xa')][_0x4a0c('0xd')](_0x55ed49);if(_0x51c4ea&&_0x51c4ea[_0x4a0c('0x19')](_0x4a0c('0x17')))return;_0x4a0c('0x26')==_0x29221b[_0x4a0c('0x22')]&&(_0x6e6791[_0x4a0c('0x23')](_0x55ed49)&&!_0x6e6791[_0x4a0c('0x20')](_0x55ed49)&&(_0x55ed49[_0x4a0c('0x0')]||_0x2809c1['isAtEnd']?_0x5e75ae&&_0x5e75ae[_0x4a0c('0x1a')]==_0x55ed49||(_0x5e75ae=_0x55ed49,_0x185bed(_0x29221b[_0x4a0c('0x1f')]),_0x53cc42=!0x0):_0x2cf730=_0x2cf730||_0x29221b[_0x4a0c('0x1f')]));}function _0x185bed(_0x3ad6c1){const _0x973906=_0x9e4d34[_0x4a0c('0xe')][_0x4a0c('0x13')](_0x4a0c('0x7'),{'class':_0x4a0c('0x11')+_0x570cc6}),_0x51335d=_0x9e4d34[_0x4a0c('0xa')][_0x4a0c('0x28')](_0x3ad6c1);_0x463977&&_0x4f813e[_0x4a0c('0x8')][_0x4a0c('0x1')](_0x5b213d[_0x4a0c('0x14')])&&_0x9e4d34['writer'][_0x4a0c('0xf')](_0x4a0c('0x16'),_0x973906),_0x9e4d34[_0x4a0c('0xe')][_0x4a0c('0x2')](_0x51335d,_0x973906),_0x9e4d34[_0x4a0c('0xa')][_0x4a0c('0x3')](_0x973906,_0x5b213d['markerName']);}_0x59de56||_0x53cc42||!_0x2cf730||_0x185bed(_0x2cf730);};}
|