@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230721.0 → 0.0.0-nightly-20230723.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3fdb=['getSuggestion','editingDowncast','removeColumns','documentSelection','stop','author','ck-suggestion-marker--active','add','requires','reduce','suggestion','getChildren','value','TrackChangesEditing','accept','getColumnIndexes','_createdBatches','tableCellHorizontalAlignment','_getCoordsForCells','commands','isInContent','from','position','table','root','previousSibling','markers','low','editor','setAttribute','tablePasteRow','markMultiRangeInsertion','conversion','oldRange','first','$graveyard','cells','nextSibling','document','Users','redo','getChangedMarkers','selection','getSuggestions','getChild','editing','removeRows','model','rootName','includes','createRange','discard','getRanges','tableCellBorderStyle','schema','registerDescriptionCallback','formatBlock','previous','registerCustomCallback','columns','suggestion-td','type','getContainedElement','last','markerToHighlight','paragraph','next','wrap','fill','tableCellBorderWidth','_descriptionFactory','deletion','ck-suggestion-marker','push','for','containsRange','tableCellSuggestion','setAttributes','insert','markerName','_splitMarkerName','remove','tablePaste','move','updateMarker','columnInsertionRanges','insertRows','every','name','rowInsertionIndexes','getMarkers','insertionRanges','batch','isEmpty','endColumn','tablePasteCell','newRange','unwrap','high','hasSuggestion','markerAttributes','listenTo','getRange','dataDowncast','clipboardOutput','find','createRangeIn','tableCellVerticalAlignment','tablePasteChainId','markMultiRangeDeletion','tableCellBorderColor','startsWith','set','return','createTableWalker','suggestion:formatBlock:tablePasteCell','ck-suggestion-marker-insertion','elementToElement','suggestionLoaded','column','register','suggestionUnloaded','getAllAdjacentSuggestions','plugins','registerPostFixer','findAncestor','_suggestionFactory','removeMarkers','change','TableClipboard','removeMarker','view','attributes','createRangeOn','subType','keys','cell','fromEntries','has','insertion','start','isEqual','showSuggestionHighlights','tablePasteColumn','insertColumns','differ','filter','length','insertContent','end','getChanges','get','options','element','join','map','createPositionBefore','markMultiRangeBlockFormat','getColumns','trackChanges','tableCell','_tablePostFixingSubtypes','some','createElement','deletionRanges'];(function(_0x187632,_0x3fdb0e){const _0x5ace36=function(_0x34a125){while(--_0x34a125){_0x187632['push'](_0x187632['shift']());}};_0x5ace36(++_0x3fdb0e);}(_0x3fdb,0xca));const _0x5ace=function(_0x187632,_0x3fdb0e){_0x187632=_0x187632-0x0;let _0x5ace36=_0x3fdb[_0x187632];return _0x5ace36;};import{getTranslation as _0x5eee4d}from'../utils/common-translations';import{Plugin as _0x18732e}from'ckeditor5/src/core';import{uid as _0x50fd1f,priorities as _0x1a7134}from'ckeditor5/src/utils';import _0x5b68a1 from'./table';const le=[_0x5ace('0x20'),_0x5ace('0x49'),_0x5ace('0x10'),_0x5ace('0x91'),_0x5ace('0x46'),'tableCellBackgroundColor','tableCellPadding'],ae=Object[_0x5ace('0x64')](le[_0x5ace('0x76')](_0x7baba2=>[_0x7baba2,null]));export default class kt extends _0x18732e{static get[_0x5ace('0x88')](){return[_0x5b68a1];}['afterInit'](){const _0x56bf5c=this['editor'];if(!_0x56bf5c['plugins']['has'](_0x5ace('0x5c')))return;const _0x590b6f=_0x56bf5c[_0x5ace('0x56')]['get'](_0x5ace('0x8d')),_0x100933=_0x56bf5c['plugins'][_0x5ace('0x72')]('TableUtils'),_0x9aa838=_0x56bf5c[_0x5ace('0x56')][_0x5ace('0x72')](_0x5b68a1),_0x3c32c5=_0x56bf5c[_0x5ace('0x56')]['get'](_0x5ace('0x5c'));_0x9aa838[_0x5ace('0x7c')][_0x5ace('0x24')]('tablePasteRow','tablePasteColumn'),_0x56bf5c['model'][_0x5ace('0x11')][_0x5ace('0x53')]('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':_0x5ace('0x7b'),'isLimit':!0x0}),_0x56bf5c[_0x5ace('0xa0')][_0x5ace('0x50')]({'model':_0x5ace('0x27'),'view':_0x5ace('0x17')});let _0x2b374a=null;_0x56bf5c[_0x5ace('0xa')]['on'](_0x5ace('0x6f'),(_0x46b02a,_0x3f1d02)=>{const [_0x58f117,_0x4184b9]=_0x3f1d02,_0x37026a=_0x3f1d02[_0x3f1d02[_0x5ace('0x6e')]-0x1];_0x37026a&&_0x37026a['forceDefaultExecution']||_0x590b6f['_isForcedDefaultExecutionBlock']||this[_0x5ace('0x9c')]['commands']['get'](_0x5ace('0x7a'))[_0x5ace('0x8c')]&&function(_0x2439e2,_0x2b9565,_0x122151,_0x9f3101,_0x1daed3){if(_0x2b9565&&!_0x2b9565['is'](_0x5ace('0x83')))return!0x1;const _0x4cb5a8=_0x1daed3['getTableIfOnlyTableInContent'](_0x2439e2,_0x122151);if(!_0x4cb5a8||!fe(_0x4cb5a8,void 0x0,_0x9f3101))return!0x1;const _0x571859=_0x9f3101['getSelectionAffectedTableCells'](_0x122151[_0x5ace('0x1')][_0x5ace('0x5')]);if(!_0x571859[_0x5ace('0x6e')])return!0x1;const _0x459065=_0x571859[0x0]['findAncestor']('table'),_0x29ecd2=_0x9f3101['getRowIndexes'](_0x571859),_0x207a53=_0x9f3101[_0x5ace('0x8f')](_0x571859),_0x5d8f9c={'startRow':_0x29ecd2[_0x5ace('0xa2')],'endRow':_0x29ecd2[_0x5ace('0x1a')],'startColumn':_0x207a53[_0x5ace('0xa2')],'endColumn':_0x207a53[_0x5ace('0x1a')]};return 0x1==_0x571859[_0x5ace('0x6e')]&&(_0x5d8f9c['endRow']+=_0x9f3101['getRows'](_0x4cb5a8)-0x1,_0x5d8f9c[_0x5ace('0x39')]+=_0x9f3101[_0x5ace('0x79')](_0x4cb5a8)-0x1),fe(_0x459065,_0x5d8f9c,_0x9f3101);}(_0x58f117,_0x4184b9,_0x56bf5c[_0x5ace('0xa')],_0x100933,_0x3c32c5)&&(_0x46b02a[_0x5ace('0x84')](),_0x2b374a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x5b')](()=>{_0x56bf5c[_0x5ace('0xa')]['insertContent'](_0x3f1d02[0x0],_0x3f1d02[0x1],_0x3f1d02[0x2],{'forceDefaultExecution':!0x0});const _0x298974=_0x50fd1f(),{rowInsertionRanges:_0x3bdfaa,columnInsertionRanges:_0x43bb83,insertionRanges:_0xe2593e,deletionRanges:_0x1fb0bb,cells:_0x15ecb9}=_0x2b374a;_0x3bdfaa[_0x5ace('0x6e')]&&_0x590b6f[_0x5ace('0x9f')](_0x3bdfaa,_0x5ace('0x9e'),{'tablePasteChainId':_0x298974}),_0x43bb83['length']&&_0x590b6f[_0x5ace('0x9f')](_0x43bb83,'tablePasteColumn',{'tablePasteChainId':_0x298974}),_0xe2593e['length']&&_0x590b6f[_0x5ace('0x9f')](_0xe2593e,'tablePaste',{'tablePasteChainId':_0x298974,'skipNestingCheck':!0x0}),_0x1fb0bb[_0x5ace('0x6e')]&&_0x590b6f[_0x5ace('0x48')](_0x1fb0bb,_0x5ace('0x2d'),{'tablePasteChainId':_0x298974,'skipNestingCheck':!0x0});const _0x352e42=_0x590b6f[_0x5ace('0x78')](_0x15ecb9[_0x5ace('0x76')](({element:_0x60510f})=>_0x60510f),{'formatGroupId':_0x50fd1f()},[],_0x5ace('0x3a'),{'tablePasteChainId':_0x298974});if(_0x352e42){const _0x45fdb5=_0x352e42[_0x5ace('0x35')](),_0x396f7f=[];for(const {element:_0x4e80a1,attributes:_0x4d3b28}of _0x15ecb9){if(!_0x4d3b28)continue;const _0x5aaf56=_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x60')](_0x4e80a1),_0x35560b=_0x45fdb5[_0x5ace('0x44')](_0x34de7c=>_0x34de7c[_0x5ace('0x41')]()[_0x5ace('0x68')](_0x5aaf56));_0x35560b&&_0x396f7f[_0x5ace('0x24')]([_0x35560b['name'],_0x4d3b28]);}_0x396f7f[_0x5ace('0x6e')]&&_0x352e42[_0x5ace('0x9d')](_0x5ace('0x3f'),Object['fromEntries'](_0x396f7f));}_0x2b374a=null;}));},{'priority':_0x1a7134[_0x5ace('0x3d')]+0xa}),_0x56bf5c[_0x5ace('0x56')]['get'](_0x5ace('0x5c'))['on']('_replaceTableSlotCell',(_0x383feb,_0x1f3e7b)=>{const [_0x4df857,_0x2b0f8f,,_0x1f82d4]=_0x1f3e7b;if(!_0x2b374a)return;_0x383feb[_0x5ace('0x84')]();const _0x5ba791=_0x4df857[_0x5ace('0x63')],_0x33ac88=_0x2b0f8f,_0x234c73=ce(_0x5ba791),_0x256eec=ce(_0x33ac88);_0x383feb[_0x5ace('0x4c')]=_0x5ba791;let _0x37c511=null,_0x31c25b=null;if(_0x256eec||_0x234c73){if(_0x234c73&&!_0x256eec){_0x1f82d4[_0x5ace('0x2c')](_0x5ba791[_0x5ace('0x7')](0x0));for(const _0x538e8b of Array[_0x5ace('0x95')](_0x33ac88[_0x5ace('0x8b')]()))_0x1f82d4['insert'](_0x538e8b,_0x5ba791,_0x5ace('0x70'));const _0x1e3b9e=_0x2b374a[_0x5ace('0x34')][_0x5ace('0xc')](_0x4df857['row']),_0x4bc399=_0x2b374a['columnInsertionIndexes']['includes'](_0x4df857[_0x5ace('0x52')]);_0x1e3b9e||_0x4bc399||(_0x37c511=_0x1f82d4[_0x5ace('0x45')](_0x5ba791));}else _0x256eec&&!_0x234c73&&(_0x31c25b=_0x1f82d4[_0x5ace('0x45')](_0x5ba791));}else{const _0x15a097=_0x1f82d4[_0x5ace('0x7e')](_0x5ace('0x27')),_0x58cae4=_0x1f82d4[_0x5ace('0x7e')]('tableCellSuggestion');_0x1f82d4[_0x5ace('0x1e')](_0x1f82d4[_0x5ace('0x45')](_0x5ba791),_0x58cae4),_0x1f82d4[_0x5ace('0x29')](_0x15a097,_0x5ba791,0x0);for(const _0x54333f of Array['from'](_0x33ac88['getChildren']()))_0x1f82d4[_0x5ace('0x29')](_0x54333f,_0x15a097,_0x5ace('0x70'));_0x37c511=_0x1f82d4['createRangeOn'](_0x15a097),_0x31c25b=_0x1f82d4[_0x5ace('0x60')](_0x58cae4);}const _0x19d11b=Array[_0x5ace('0x95')](_0x33ac88['getAttributes']())[_0x5ace('0x6d')](([_0x3b40bf])=>le[_0x5ace('0xc')](_0x3b40bf));_0x2b374a[_0x5ace('0xa4')][_0x5ace('0x24')]({'element':_0x5ba791,'attributes':_0x19d11b['length']?Object['fromEntries'](_0x19d11b):null}),_0x37c511&&_0x2b374a[_0x5ace('0x36')][_0x5ace('0x24')](_0x37c511),_0x31c25b&&_0x2b374a[_0x5ace('0x7f')][_0x5ace('0x24')](_0x31c25b);},{'priority':'high'}),_0x100933['on'](_0x5ace('0x6b'),(_0x3dcf95,_0x2959bb)=>{const [_0x25acb6,_0x3089b9={}]=_0x2959bb;if(!_0x2b374a)return;const _0x19ddeb=_0x3089b9['at']||0x0,_0x24e92d=_0x3089b9[_0x5ace('0x16')]||0x1;_0x2b374a['columnInsertionIndexes']=new Array(_0x24e92d)[_0x5ace('0x1f')](_0x19ddeb)['map']((_0x40139c,_0x37d4b8)=>_0x40139c+_0x37d4b8);for(const {cell:_0x2d49e0}of _0x100933[_0x5ace('0x4d')](_0x25acb6,{'startColumn':_0x19ddeb,'endColumn':_0x19ddeb+_0x24e92d-0x1}))_0x2b374a[_0x5ace('0x30')][_0x5ace('0x24')](_0x56bf5c[_0x5ace('0xa')]['createRangeOn'](_0x2d49e0));},{'priority':_0x5ace('0x9b')}),_0x100933['on'](_0x5ace('0x31'),(_0x389b5e,_0xd5ed5f)=>{const [_0x1427d4,_0x45a089={}]=_0xd5ed5f;if(!_0x2b374a)return;const _0x3cc8b5=_0x45a089['at']||0x0,_0x195515=_0x45a089['rows']||0x1;_0x2b374a['rowInsertionIndexes']=new Array(_0x195515)[_0x5ace('0x1f')](_0x3cc8b5)['map']((_0x475610,_0x143c44)=>_0x475610+_0x143c44);for(const {cell:_0x2fa19a}of _0x100933[_0x5ace('0x4d')](_0x1427d4,{'startRow':_0x3cc8b5,'endRow':_0x3cc8b5+_0x195515-0x1}))_0x2b374a['rowInsertionRanges'][_0x5ace('0x24')](_0x56bf5c[_0x5ace('0xa')]['createRangeOn'](_0x2fa19a));},{'priority':_0x5ace('0x9b')}),_0x590b6f[_0x5ace('0x21')][_0x5ace('0x12')](_0x77748b=>{if(_0x77748b[_0x5ace('0x61')]&&_0x77748b[_0x5ace('0x61')][_0x5ace('0x4a')]('tablePaste'))return _0x77748b['previous']?{}:{'type':'insertion','content':_0x5eee4d(_0x56bf5c['locale'],'*Replace\x20table\x20cells*')};});const _0x5d07d1=()=>{};for(const _0x10e81c of[_0x5ace('0x2d'),_0x5ace('0x6a'),_0x5ace('0x9e'),_0x5ace('0x3a')])_0x590b6f[_0x5ace('0x59')][_0x5ace('0x15')](_0x5ace('0x66'),_0x10e81c,_0x5ace('0x75'),_0x5d07d1),_0x590b6f['_suggestionFactory'][_0x5ace('0x15')](_0x5ace('0x22'),_0x10e81c,_0x5ace('0x75'),_0x5d07d1);_0x590b6f['_suggestionFactory'][_0x5ace('0x15')](_0x5ace('0x13'),_0x5ace('0x3a'),_0x5ace('0xe'),_0x5d07d1),_0x590b6f[_0x5ace('0x59')]['registerCustomCallback']('formatBlock',_0x5ace('0x3a'),_0x5ace('0x8e'),(_0x50e99d,_0x583838,_0x1c19f1)=>{const _0x44b4b4=_0x50e99d['map'](_0x3b8c8f=>_0x3b8c8f[_0x5ace('0x19')]())[_0x5ace('0x6d')](_0x2f2df5=>_0x2f2df5),_0x2971cd=new Map(_0x44b4b4['map'](_0x905fe2=>[_0x905fe2,null]));if(_0x2b374a)for(const {element:_0x411bed,attributes:_0x3f79f0}of _0x2b374a['cells'])_0x3f79f0&&_0x2971cd[_0x5ace('0x4b')](_0x411bed,_0x3f79f0);else{if(_0x1c19f1&&_0x1c19f1['markerAttributes'])for(const [_0x15f4ea,_0x7685a6]of Object['entries'](_0x1c19f1['markerAttributes'])){const _0x2d4111=_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x9a')][_0x5ace('0x72')](_0x15f4ea),_0xa9d6cf=_0x2d4111?_0x2d4111['getRange']()[_0x5ace('0x19')]():null;_0xa9d6cf&&_0x2971cd[_0x5ace('0x4b')](_0xa9d6cf,_0x7685a6);}}_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x5b')](_0x3d0951=>{for(const [_0x31cb06,_0x46beec]of _0x2971cd)_0x3d0951[_0x5ace('0x28')]({...ae,..._0x46beec},_0x31cb06);});});const _0x44f19d=(_0x361d03,_0x18b7d4)=>{_0x590b6f[_0x5ace('0x59')]['registerCustomCallback'](_0x361d03,_0x5ace('0x2d'),_0x18b7d4,(_0x120e04,_0x1a6dd7,_0x12c48f)=>{_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x5b')](_0x49c02e=>{const _0x557fe8=[];for(const _0x39d45b of _0x120e04){const _0x3ca558=_0x39d45b[_0x5ace('0x67')]['nodeAfter'];_0x3ca558['is']('element',_0x5ace('0x27'))&&_0x557fe8[_0x5ace('0x24')](_0x3ca558);}_0x590b6f[_0x5ace('0x59')]['getSuggestionCallback'](_0x361d03,null,_0x18b7d4)(_0x120e04,_0x1a6dd7,_0x12c48f);for(const _0x22c73b of _0x557fe8)_0x5ace('0xa3')!=_0x22c73b[_0x5ace('0x98')][_0x5ace('0xb')]&&_0x49c02e[_0x5ace('0x3c')](_0x22c73b);});});};_0x44f19d(_0x5ace('0x66'),_0x5ace('0x8e')),_0x44f19d(_0x5ace('0x66'),'discard'),_0x44f19d(_0x5ace('0x22'),_0x5ace('0x8e')),_0x44f19d(_0x5ace('0x22'),'discard'),_0x590b6f['_suggestionFactory'][_0x5ace('0x15')](_0x5ace('0x66'),_0x5ace('0x9e'),_0x5ace('0xe'),_0x391a3a=>{const _0x730775=_0x391a3a[_0x5ace('0x76')](_0x32bf1f=>_0x32bf1f['getContainedElement']()),_0x3dd1dc=_0x730775[0x0][_0x5ace('0x58')](_0x5ace('0x97')),{minRow:_0x3599cd,maxRow:_0x2515a9}=_0x9aa838[_0x5ace('0x92')](_0x730775);_0x100933[_0x5ace('0x9')](_0x3dd1dc,{'at':_0x3599cd,'rows':_0x2515a9-_0x3599cd+0x1});}),_0x590b6f['_suggestionFactory'][_0x5ace('0x15')]('insertion','tablePasteColumn','discard',_0x2f595a=>{const _0x9a0e3b=_0x2f595a['map'](_0x5d1f5c=>_0x5d1f5c[_0x5ace('0x19')]()),_0x14eac1=_0x9a0e3b[0x0]['findAncestor'](_0x5ace('0x97')),{minColumn:_0x4e31fc,maxColumn:_0x2a8487}=_0x9aa838['_getCoordsForCells'](_0x9a0e3b);_0x100933[_0x5ace('0x82')](_0x14eac1,{'at':_0x4e31fc,'columns':_0x2a8487-_0x4e31fc+0x1});});const _0x57c9a0=(_0xcc4fab,_0x2b10d1)=>{if(!_0x2b10d1[_0x5ace('0x61')]||!_0x2b10d1['subType'][_0x5ace('0x4a')](_0x5ace('0x2d')))return;const _0x136cca=_0x2b10d1[_0x5ace('0x5f')][_0x5ace('0x47')],_0x4dd740=_0x590b6f[_0x5ace('0x6')]()['filter'](_0x3413b4=>_0x3413b4[_0x5ace('0x94')]&&_0x3413b4[_0x5ace('0x5f')]&&_0x3413b4[_0x5ace('0x5f')]['tablePasteChainId']==_0x136cca);_0x4dd740[_0x5ace('0x6e')]&&_0x2b10d1[_0x5ace('0x55')]()[_0x5ace('0x6e')]!=_0x4dd740[_0x5ace('0x6e')]&&_0x4dd740[_0x5ace('0x89')]((_0x582af0,_0x583e34)=>(_0x582af0[_0x5ace('0x1d')]=_0x583e34,_0x583e34[_0x5ace('0x14')]=_0x582af0,_0x583e34));};function _0x2ca03a(_0x48fa60,_0x230eb7=!0x0){const {id:_0x42a367}=_0x590b6f[_0x5ace('0x2b')](_0x48fa60[_0x5ace('0x2a')]),_0x5f4268=[_0x5ace('0x23'),_0x5ace('0x4f')],_0x4aa70e=_0x590b6f['activeMarkers'][_0x5ace('0xc')](_0x48fa60[_0x5ace('0x2a')]);return _0x4aa70e&&_0x5f4268['push'](_0x5ace('0x86')),{'classes':_0x5f4268,'attributes':{'data-suggestion':_0x42a367},'priority':_0x4aa70e&&_0x230eb7?0xbc2:0xbb8};}_0x590b6f['on'](_0x5ace('0x51'),_0x57c9a0,{'priority':_0x5ace('0x3d')}),_0x590b6f['on'](_0x5ace('0x54'),_0x57c9a0,{'priority':_0x5ace('0x3d')}),_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x1')][_0x5ace('0x57')](()=>{let _0x23b7c2=!0x1;const _0x431c11=Array[_0x5ace('0x95')](_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x1')]['differ'][_0x5ace('0x4')]());for(const {name:_0x493c42,data:_0x795655}of _0x431c11){const {group:_0x358da6,type:_0x5b3afd,id:_0x543ec3}=_0x590b6f[_0x5ace('0x2b')](_0x493c42);if(_0x5ace('0x8a')!=_0x358da6||_0x5ace('0x22')!=_0x5b3afd||_0x795655['oldRange'])continue;if(!_0x590b6f[_0x5ace('0x3e')](_0x543ec3))continue;const _0x431f49=_0x590b6f[_0x5ace('0x80')](_0x543ec3)[_0x5ace('0xf')](),_0x1ef77b=_0x56bf5c[_0x5ace('0x56')][_0x5ace('0x72')](_0x5ace('0x2'))['me'];for(const _0x3a7bcb of _0x590b6f[_0x5ace('0x6')]()){if(!_0x3a7bcb[_0x5ace('0x94')]||_0x3a7bcb[_0x5ace('0x85')]!=_0x1ef77b)continue;if(_0x5ace('0x13')!=_0x3a7bcb[_0x5ace('0x18')]||_0x5ace('0x3a')!=_0x3a7bcb['subType'])continue;if(_0x3a7bcb[_0x5ace('0xf')]()[_0x5ace('0x32')](_0x16a7bc=>_0x431f49[_0x5ace('0x7d')](_0x59462a=>_0x59462a[_0x5ace('0x26')](_0x16a7bc,!0x0))))for(const _0x25176c of _0x3a7bcb[_0x5ace('0x55')]())_0x25176c[_0x5ace('0x94')]&&(_0x25176c[_0x5ace('0xe')](),_0x23b7c2=!0x0);}}return _0x23b7c2;}),_0x56bf5c['model'][_0x5ace('0x1')][_0x5ace('0x57')](_0x333fec=>{const _0x360d2b=_0x56bf5c[_0x5ace('0x93')]['get'](_0x5ace('0x3'));if(!_0x360d2b||!_0x360d2b[_0x5ace('0x90')][_0x5ace('0x65')](_0x333fec[_0x5ace('0x37')]))return!0x1;let _0x39fc20=!0x1;const _0x14ba8d=_0x56bf5c[_0x5ace('0x56')][_0x5ace('0x72')]('Users')['me'],_0x16be09=_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x1')][_0x5ace('0x6c')][_0x5ace('0x71')](),_0x150f02=Array[_0x5ace('0x95')](_0x56bf5c[_0x5ace('0xa')]['document'][_0x5ace('0x6c')][_0x5ace('0x4')]())[_0x5ace('0x6d')](({name:_0x283fb8,data:_0xaddd7c})=>{const {group:_0x4f7ee1,subType:_0x1ffb13,authorId:_0x47514d}=_0x590b6f['_splitMarkerName'](_0x283fb8);return _0x5ace('0x8a')==_0x4f7ee1&&'tablePaste'==_0x1ffb13&&_0x47514d==_0x14ba8d['id']&&!_0xaddd7c[_0x5ace('0xa1')];});for(const _0xac9bf9 of _0x16be09){if(_0x5ace('0x29')!=_0xac9bf9[_0x5ace('0x18')]||_0x5ace('0x27')!=_0xac9bf9[_0x5ace('0x33')]||0x1!=_0xac9bf9[_0x5ace('0x6e')])continue;const _0x25c477=_0x333fec[_0x5ace('0xd')](_0xac9bf9['position'],_0xac9bf9[_0x5ace('0x96')]['getShiftedBy'](0x1));if(!_0x150f02[_0x5ace('0x44')](({data:_0x1f6569})=>_0x1f6569[_0x5ace('0x3b')][_0x5ace('0x68')](_0x25c477)))for(const {name:_0x50c9bb,data:_0x4e14a0}of _0x150f02)if(_0x25c477['containsRange'](_0x4e14a0['newRange'])){_0x333fec[_0x5ace('0x2f')](_0x50c9bb,{'range':_0x25c477}),_0x39fc20=!0x0;break;}}return _0x39fc20;}),_0x56bf5c[_0x5ace('0xa')][_0x5ace('0x1')][_0x5ace('0x57')](_0x18da4d=>{let _0x2d0d1f=!0x1;const _0x8ec674=_0x56bf5c[_0x5ace('0x56')]['get']('Users')['me'],_0x5ddc3d=_0x590b6f[_0x5ace('0x6')]()[_0x5ace('0x6d')](_0x1864b3=>_0x1864b3[_0x5ace('0x94')]&&_0x1864b3[_0x5ace('0x85')]==_0x8ec674),_0x30b92d=new Set(),_0x3786b7=new Set();for(const _0x3c743f of _0x5ddc3d)if('tablePaste'==_0x3c743f[_0x5ace('0x61')])for(const _0x2b0f31 of _0x3c743f['getMarkers']()){const _0x1bd04a=_0x2b0f31[_0x5ace('0x41')]()[_0x5ace('0x19')]();if(_0x1bd04a){if(_0x1bd04a['is'](_0x5ace('0x74'),'tableCellSuggestion')&&ce(_0x1bd04a)){_0x3c743f['removeMarker'](_0x2b0f31[_0x5ace('0x33')]),_0x30b92d[_0x5ace('0x87')](_0x1bd04a),_0x2d0d1f=!0x0;const _0x763b7c=_0x1bd04a[_0x5ace('0x0')],_0x41f730=_0x1bd04a[_0x5ace('0x99')],_0x38896c=_0x763b7c&&_0x763b7c['is'](_0x5ace('0x74'),'tableCellSuggestion'),_0x165720=_0x41f730&&_0x41f730['is']('element',_0x5ace('0x27'));_0x38896c&&!_0x30b92d[_0x5ace('0x65')](_0x763b7c)&&_0x3786b7[_0x5ace('0x87')](_0x763b7c),_0x165720&&!_0x30b92d[_0x5ace('0x65')](_0x41f730)&&_0x3786b7[_0x5ace('0x87')](_0x41f730);}else _0x1bd04a['is'](_0x5ace('0x74'),_0x5ace('0x1c'))&&_0x1bd04a[_0x5ace('0x38')]&&(_0x3c743f[_0x5ace('0x5d')](_0x2b0f31[_0x5ace('0x33')]),_0x2d0d1f=!0x0);}}else{if(_0x5ace('0x3a')==_0x3c743f['subType']){if(!_0x3c743f[_0x5ace('0x5f')]||!_0x3c743f[_0x5ace('0x5f')]['tablePasteChainId'])continue;const _0x4c6349=_0x3c743f[_0x5ace('0x5f')][_0x5ace('0x3f')];if(_0x4c6349&&Object[_0x5ace('0x62')](_0x4c6349)['length'])continue;const _0x2ea779=_0x3c743f[_0x5ace('0x5f')]['tablePasteChainId'];let _0x483e61=!0x0,_0x407aa3=!0x0;for(const _0x1d3000 of _0x5ddc3d)if(_0x1d3000['subType']&&_0x1d3000[_0x5ace('0x61')][_0x5ace('0x4a')]('tablePaste')){if(!_0x1d3000[_0x5ace('0x5f')][_0x5ace('0x47')]){_0x407aa3=!0x1;break;}if(_0x1d3000['id']!=_0x3c743f['id']&&_0x1d3000[_0x5ace('0x5f')]['tablePasteChainId']==_0x2ea779){_0x483e61=!0x1;break;}}_0x407aa3&&_0x483e61&&(_0x3c743f[_0x5ace('0x5a')](),_0x2d0d1f=!0x0);}}for(const _0x5d2f02 of _0x30b92d)_0x18da4d['remove'](_0x5d2f02);for(const _0x411713 of _0x3786b7)_0x18da4d[_0x5ace('0x3c')](_0x411713);return _0x2d0d1f;}),_0x56bf5c['conversion'][_0x5ace('0x25')](_0x5ace('0x81'))[_0x5ace('0x1b')]({'model':_0x5ace('0x4e'),'view':(_0x9c979a,_0x905464)=>_0x2ca03a(_0x9c979a),'converterPriority':'high'}),_0x56bf5c[_0x5ace('0xa0')][_0x5ace('0x25')](_0x5ace('0x42'))['markerToHighlight']({'model':_0x5ace('0x4e'),'view':(_0x36ac2e,_0x97f7c1)=>_0x97f7c1[_0x5ace('0x73')][_0x5ace('0x69')]?_0x2ca03a(_0x36ac2e,!0x1):null,'converterPriority':_0x5ace('0x3d')});const _0x3fb369=_0x56bf5c[_0x5ace('0x8')][_0x5ace('0x5e')];this[_0x5ace('0x40')](_0x3fb369[_0x5ace('0x1')],_0x5ace('0x43'),(_0x51dfef,_0x575b78)=>{const _0x4299f4=[];for(const _0xe3a1b1 of _0x3fb369['createRangeIn'](_0x575b78['content'])['getItems']())_0xe3a1b1['is'](_0x5ace('0x74'),_0x5ace('0x17'))&&_0x4299f4[_0x5ace('0x24')](_0xe3a1b1);_0x3fb369['change'](_0x4ba4e7=>{for(const _0x5695f4 of _0x4299f4)_0x4ba4e7[_0x5ace('0x2e')](_0x4ba4e7[_0x5ace('0x45')](_0x5695f4),_0x4ba4e7[_0x5ace('0x77')](_0x5695f4)),_0x4ba4e7['remove'](_0x5695f4);});});}}function ce(_0x29286c){if(_0x29286c['isEmpty'])return!0x0;const _0x15599c=_0x29286c[_0x5ace('0x7')](0x0);return _0x15599c['is'](_0x5ace('0x74'),_0x5ace('0x1c'))&&_0x15599c['isEmpty'];}function fe(_0x2731af,_0x47555c={},_0x229d1f){for(const {isAnchor:_0x72d50c,cellHeight:_0x13bcbb,cellWidth:_0x137c3b}of _0x229d1f[_0x5ace('0x4d')](_0x2731af,{'includeAllSlots':!0x0,..._0x47555c}))if(!_0x72d50c||0x1!=_0x13bcbb||0x1!=_0x137c3b)return!0x1;return!0x0;}
|
|
23
|
+
const _0x1d8c=['columns','from','insertionRanges','createRangeIn','afterInit','getMarkers','removeMarker','element','column','getChangedMarkers','markerAttributes','locale','keys','markMultiRangeDeletion','model','suggestion-td','getItems','getAllAdjacentSuggestions','getRows','tableCellSuggestion','tablePasteRow','Users','dataDowncast','ck-suggestion-marker','conversion','markMultiRangeBlockFormat','tablePaste','removeMarkers','getSelectionAffectedTableCells','findAncestor','subType','forceDefaultExecution','options','register','find','cell','tableCellBorderWidth','getRange','markMultiRangeInsertion','paragraph','tableCellVerticalAlignment','nodeAfter','isEqual','markerName','for','last','getAttributes','isEmpty','createTableWalker','getShiftedBy','batch','elementToElement','map','createElement','cells','getChanges','insertColumns','markerToHighlight','author','$graveyard','differ','table','redo','_descriptionFactory','deletionRanges','trackChanges','stop','suggestion','editing','getSuggestions','oldRange','value','previousSibling','tablePasteColumn','TableClipboard','end','name','commands','includes','add','discard','join','remove','filter','rows','_tablePostFixingSubtypes','fill','root','plugins','low','getChild','showSuggestionHighlights','setAttribute','isInContent','markers','get','_suggestionFactory','move','rowInsertionRanges','_getCoordsForCells','length','push','removeRows','accept','view','TableUtils','getRowIndexes','insertion','start','wrap','document','newRange','startsWith','formatBlock','listenTo','ck-suggestion-marker-insertion','tableCellBackgroundColor','tableCell','fromEntries','tablePasteChainId','tableCellBorderStyle','rowInsertionIndexes','insertRows','unwrap','ck-suggestion-marker--active','containsRange','selection','attributes','registerPostFixer','change','type','deletion','createRange','suggestionUnloaded','insert','registerCustomCallback','getColumns','getSuggestion','tableCellPadding','suggestion:formatBlock:tablePasteCell','_splitMarkerName','columnInsertionRanges','getColumnIndexes','tablePasteCell','getTableIfOnlyTableInContent','first','endColumn','clipboardOutput','columnInsertionIndexes','set','getContainedElement','insertContent','rootName','*Replace\x20table\x20cells*','high','createRangeOn','has','getChildren'];(function(_0x233fa3,_0x1d8c18){const _0x4ad7d2=function(_0x189811){while(--_0x189811){_0x233fa3['push'](_0x233fa3['shift']());}};_0x4ad7d2(++_0x1d8c18);}(_0x1d8c,0xf8));const _0x4ad7=function(_0x233fa3,_0x1d8c18){_0x233fa3=_0x233fa3-0x0;let _0x4ad7d2=_0x1d8c[_0x233fa3];return _0x4ad7d2;};import{getTranslation as _0xe53ce8}from'../utils/common-translations';import{Plugin as _0xee7be4}from'ckeditor5/src/core';import{uid as _0x333155,priorities as _0x361eba}from'ckeditor5/src/utils';import _0x5df75a from'./table';const le=[_0x4ad7('0x68'),'tableCellBorderColor',_0x4ad7('0x1e'),'tableCellHorizontalAlignment',_0x4ad7('0x6c'),_0x4ad7('0x1a'),_0x4ad7('0x30')],ae=Object[_0x4ad7('0x1c')](le['map'](_0x440bad=>[_0x440bad,null]));export default class kt extends _0xee7be4{static get['requires'](){return[_0x5df75a];}[_0x4ad7('0x48')](){const _0x4e14b0=this['editor'];if(!_0x4e14b0[_0x4ad7('0x9c')][_0x4ad7('0x42')](_0x4ad7('0x8e')))return;const _0x2889f9=_0x4e14b0[_0x4ad7('0x9c')]['get']('TrackChangesEditing'),_0x4f47b8=_0x4e14b0['plugins'][_0x4ad7('0x5')](_0x4ad7('0xf')),_0x1ee4d9=_0x4e14b0[_0x4ad7('0x9c')][_0x4ad7('0x5')](_0x5df75a),_0x21f6ca=_0x4e14b0[_0x4ad7('0x9c')][_0x4ad7('0x5')](_0x4ad7('0x8e'));_0x1ee4d9[_0x4ad7('0x99')]['push']('tablePasteRow',_0x4ad7('0x8d')),_0x4e14b0[_0x4ad7('0x52')]['schema'][_0x4ad7('0x65')](_0x4ad7('0x57'),{'allowIn':_0x4ad7('0x1b'),'allowContentOf':_0x4ad7('0x1b'),'isLimit':!0x0}),_0x4e14b0['conversion'][_0x4ad7('0x77')]({'model':_0x4ad7('0x57'),'view':_0x4ad7('0x53')});let _0x193160=null;_0x4e14b0[_0x4ad7('0x52')]['on'](_0x4ad7('0x3d'),(_0x41bd90,_0x2be24d)=>{const [_0x2479c4,_0x4762a9]=_0x2be24d,_0x2ff337=_0x2be24d[_0x2be24d[_0x4ad7('0xa')]-0x1];_0x2ff337&&_0x2ff337[_0x4ad7('0x63')]||_0x2889f9['_isForcedDefaultExecutionBlock']||this['editor']['commands'][_0x4ad7('0x5')](_0x4ad7('0x85'))[_0x4ad7('0x8b')]&&function(_0x132d3f,_0x2ff62a,_0x1845d0,_0x51e2b0,_0x1921f5){if(_0x2ff62a&&!_0x2ff62a['is']('documentSelection'))return!0x1;const _0x21ddba=_0x1921f5[_0x4ad7('0x36')](_0x132d3f,_0x1845d0);if(!_0x21ddba||!fe(_0x21ddba,void 0x0,_0x51e2b0))return!0x1;const _0x26157e=_0x51e2b0[_0x4ad7('0x60')](_0x1845d0['document'][_0x4ad7('0x24')]);if(!_0x26157e['length'])return!0x1;const _0x282418=_0x26157e[0x0][_0x4ad7('0x61')]('table'),_0x4de32c=_0x51e2b0[_0x4ad7('0x10')](_0x26157e),_0x110c98=_0x51e2b0[_0x4ad7('0x34')](_0x26157e),_0x12aa5c={'startRow':_0x4de32c[_0x4ad7('0x37')],'endRow':_0x4de32c[_0x4ad7('0x71')],'startColumn':_0x110c98[_0x4ad7('0x37')],'endColumn':_0x110c98[_0x4ad7('0x71')]};return 0x1==_0x26157e[_0x4ad7('0xa')]&&(_0x12aa5c['endRow']+=_0x51e2b0[_0x4ad7('0x56')](_0x21ddba)-0x1,_0x12aa5c[_0x4ad7('0x38')]+=_0x51e2b0[_0x4ad7('0x2e')](_0x21ddba)-0x1),fe(_0x282418,_0x12aa5c,_0x51e2b0);}(_0x2479c4,_0x4762a9,_0x4e14b0[_0x4ad7('0x52')],_0x4f47b8,_0x21f6ca)&&(_0x41bd90[_0x4ad7('0x86')](),_0x193160={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x27')](()=>{_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x3d')](_0x2be24d[0x0],_0x2be24d[0x1],_0x2be24d[0x2],{'forceDefaultExecution':!0x0});const _0x3081e0=_0x333155(),{rowInsertionRanges:_0x446f92,columnInsertionRanges:_0x4cd347,insertionRanges:_0x1b7b5e,deletionRanges:_0x270cda,cells:_0xc90257}=_0x193160;_0x446f92[_0x4ad7('0xa')]&&_0x2889f9[_0x4ad7('0x6a')](_0x446f92,_0x4ad7('0x58'),{'tablePasteChainId':_0x3081e0}),_0x4cd347[_0x4ad7('0xa')]&&_0x2889f9[_0x4ad7('0x6a')](_0x4cd347,_0x4ad7('0x8d'),{'tablePasteChainId':_0x3081e0}),_0x1b7b5e[_0x4ad7('0xa')]&&_0x2889f9[_0x4ad7('0x6a')](_0x1b7b5e,_0x4ad7('0x5e'),{'tablePasteChainId':_0x3081e0,'skipNestingCheck':!0x0}),_0x270cda[_0x4ad7('0xa')]&&_0x2889f9[_0x4ad7('0x51')](_0x270cda,_0x4ad7('0x5e'),{'tablePasteChainId':_0x3081e0,'skipNestingCheck':!0x0});const _0x4f213f=_0x2889f9[_0x4ad7('0x5d')](_0xc90257[_0x4ad7('0x78')](({element:_0x5d92df})=>_0x5d92df),{'formatGroupId':_0x333155()},[],_0x4ad7('0x35'),{'tablePasteChainId':_0x3081e0});if(_0x4f213f){const _0x14ad36=_0x4f213f['getMarkers'](),_0x397b0a=[];for(const {element:_0x4ee25c,attributes:_0x5f1283}of _0xc90257){if(!_0x5f1283)continue;const _0x3ba897=_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x41')](_0x4ee25c),_0x27f9aa=_0x14ad36[_0x4ad7('0x66')](_0x7670cd=>_0x7670cd[_0x4ad7('0x69')]()[_0x4ad7('0x6e')](_0x3ba897));_0x27f9aa&&_0x397b0a[_0x4ad7('0xb')]([_0x27f9aa[_0x4ad7('0x90')],_0x5f1283]);}_0x397b0a[_0x4ad7('0xa')]&&_0x4f213f[_0x4ad7('0x2')]('markerAttributes',Object[_0x4ad7('0x1c')](_0x397b0a));}_0x193160=null;}));},{'priority':_0x361eba[_0x4ad7('0x40')]+0xa}),_0x4e14b0[_0x4ad7('0x9c')][_0x4ad7('0x5')](_0x4ad7('0x8e'))['on']('_replaceTableSlotCell',(_0x396d5b,_0x675e24)=>{const [_0x258d1e,_0x5aa390,,_0x361b4e]=_0x675e24;if(!_0x193160)return;_0x396d5b[_0x4ad7('0x86')]();const _0x46e9e5=_0x258d1e[_0x4ad7('0x67')],_0x3fb2aa=_0x5aa390,_0x1b62b4=ce(_0x46e9e5),_0xe4a83f=ce(_0x3fb2aa);_0x396d5b['return']=_0x46e9e5;let _0x3e0bfd=null,_0x546cb7=null;if(_0xe4a83f||_0x1b62b4){if(_0x1b62b4&&!_0xe4a83f){_0x361b4e['remove'](_0x46e9e5[_0x4ad7('0x0')](0x0));for(const _0x163946 of Array['from'](_0x3fb2aa[_0x4ad7('0x43')]()))_0x361b4e[_0x4ad7('0x2c')](_0x163946,_0x46e9e5,_0x4ad7('0x8f'));const _0x4fcd68=_0x193160[_0x4ad7('0x1f')][_0x4ad7('0x92')](_0x258d1e['row']),_0x2c112=_0x193160['columnInsertionIndexes'][_0x4ad7('0x92')](_0x258d1e[_0x4ad7('0x4c')]);_0x4fcd68||_0x2c112||(_0x3e0bfd=_0x361b4e['createRangeIn'](_0x46e9e5));}else _0xe4a83f&&!_0x1b62b4&&(_0x546cb7=_0x361b4e[_0x4ad7('0x47')](_0x46e9e5));}else{const _0xa470ec=_0x361b4e[_0x4ad7('0x79')]('tableCellSuggestion'),_0x46611b=_0x361b4e['createElement'](_0x4ad7('0x57'));_0x361b4e[_0x4ad7('0x13')](_0x361b4e[_0x4ad7('0x47')](_0x46e9e5),_0x46611b),_0x361b4e[_0x4ad7('0x2c')](_0xa470ec,_0x46e9e5,0x0);for(const _0x331a28 of Array['from'](_0x3fb2aa['getChildren']()))_0x361b4e['insert'](_0x331a28,_0xa470ec,'end');_0x3e0bfd=_0x361b4e[_0x4ad7('0x41')](_0xa470ec),_0x546cb7=_0x361b4e[_0x4ad7('0x41')](_0x46611b);}const _0x75bc18=Array[_0x4ad7('0x45')](_0x3fb2aa[_0x4ad7('0x72')]())[_0x4ad7('0x97')](([_0x261fa3])=>le[_0x4ad7('0x92')](_0x261fa3));_0x193160[_0x4ad7('0x7a')][_0x4ad7('0xb')]({'element':_0x46e9e5,'attributes':_0x75bc18[_0x4ad7('0xa')]?Object[_0x4ad7('0x1c')](_0x75bc18):null}),_0x3e0bfd&&_0x193160[_0x4ad7('0x46')][_0x4ad7('0xb')](_0x3e0bfd),_0x546cb7&&_0x193160[_0x4ad7('0x84')]['push'](_0x546cb7);},{'priority':_0x4ad7('0x40')}),_0x4f47b8['on'](_0x4ad7('0x7c'),(_0x1cca0e,_0x1fbbed)=>{const [_0xc67cf8,_0x3ded1f={}]=_0x1fbbed;if(!_0x193160)return;const _0x470842=_0x3ded1f['at']||0x0,_0x1c29dc=_0x3ded1f[_0x4ad7('0x44')]||0x1;_0x193160[_0x4ad7('0x3a')]=new Array(_0x1c29dc)['fill'](_0x470842)[_0x4ad7('0x78')]((_0x1b91e9,_0x2c69ae)=>_0x1b91e9+_0x2c69ae);for(const {cell:_0x54e880}of _0x4f47b8[_0x4ad7('0x74')](_0xc67cf8,{'startColumn':_0x470842,'endColumn':_0x470842+_0x1c29dc-0x1}))_0x193160[_0x4ad7('0x33')][_0x4ad7('0xb')](_0x4e14b0[_0x4ad7('0x52')]['createRangeOn'](_0x54e880));},{'priority':'low'}),_0x4f47b8['on'](_0x4ad7('0x20'),(_0x2b55da,_0xfaa75f)=>{const [_0x170cc5,_0x120d9c={}]=_0xfaa75f;if(!_0x193160)return;const _0x51bdab=_0x120d9c['at']||0x0,_0x2b2e7e=_0x120d9c[_0x4ad7('0x98')]||0x1;_0x193160[_0x4ad7('0x1f')]=new Array(_0x2b2e7e)[_0x4ad7('0x9a')](_0x51bdab)[_0x4ad7('0x78')]((_0x64afb5,_0x4379cc)=>_0x64afb5+_0x4379cc);for(const {cell:_0x428520}of _0x4f47b8[_0x4ad7('0x74')](_0x170cc5,{'startRow':_0x51bdab,'endRow':_0x51bdab+_0x2b2e7e-0x1}))_0x193160[_0x4ad7('0x8')][_0x4ad7('0xb')](_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x41')](_0x428520));},{'priority':_0x4ad7('0x9d')}),_0x2889f9[_0x4ad7('0x83')]['registerDescriptionCallback'](_0xcfb738=>{if(_0xcfb738['subType']&&_0xcfb738[_0x4ad7('0x62')][_0x4ad7('0x16')](_0x4ad7('0x5e')))return _0xcfb738['previous']?{}:{'type':_0x4ad7('0x11'),'content':_0xe53ce8(_0x4e14b0[_0x4ad7('0x4f')],_0x4ad7('0x3f'))};});const _0x1d867a=()=>{};for(const _0xacf9f9 of[_0x4ad7('0x5e'),'tablePasteColumn',_0x4ad7('0x58'),_0x4ad7('0x35')])_0x2889f9['_suggestionFactory']['registerCustomCallback'](_0x4ad7('0x11'),_0xacf9f9,_0x4ad7('0x95'),_0x1d867a),_0x2889f9[_0x4ad7('0x6')][_0x4ad7('0x2d')](_0x4ad7('0x29'),_0xacf9f9,_0x4ad7('0x95'),_0x1d867a);_0x2889f9[_0x4ad7('0x6')][_0x4ad7('0x2d')](_0x4ad7('0x17'),_0x4ad7('0x35'),'discard',_0x1d867a),_0x2889f9[_0x4ad7('0x6')][_0x4ad7('0x2d')](_0x4ad7('0x17'),_0x4ad7('0x35'),_0x4ad7('0xd'),(_0x37e8e8,_0x4316e7,_0x7f0b30)=>{const _0x30924f=_0x37e8e8[_0x4ad7('0x78')](_0x5095bd=>_0x5095bd[_0x4ad7('0x3c')]())[_0x4ad7('0x97')](_0x4abbc0=>_0x4abbc0),_0x5b1794=new Map(_0x30924f[_0x4ad7('0x78')](_0x1eeb16=>[_0x1eeb16,null]));if(_0x193160)for(const {element:_0x5c1234,attributes:_0x1c49cc}of _0x193160[_0x4ad7('0x7a')])_0x1c49cc&&_0x5b1794[_0x4ad7('0x3b')](_0x5c1234,_0x1c49cc);else{if(_0x7f0b30&&_0x7f0b30[_0x4ad7('0x4e')])for(const [_0x2aca3f,_0x1b0219]of Object['entries'](_0x7f0b30[_0x4ad7('0x4e')])){const _0x32c9a3=_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x4')][_0x4ad7('0x5')](_0x2aca3f),_0x2916c5=_0x32c9a3?_0x32c9a3[_0x4ad7('0x69')]()[_0x4ad7('0x3c')]():null;_0x2916c5&&_0x5b1794[_0x4ad7('0x3b')](_0x2916c5,_0x1b0219);}}_0x4e14b0[_0x4ad7('0x52')]['change'](_0x4c449f=>{for(const [_0x4533ba,_0x2337b3]of _0x5b1794)_0x4c449f['setAttributes']({...ae,..._0x2337b3},_0x4533ba);});});const _0x404f0a=(_0x2ac82d,_0x7301a1)=>{_0x2889f9[_0x4ad7('0x6')]['registerCustomCallback'](_0x2ac82d,_0x4ad7('0x5e'),_0x7301a1,(_0x4ef395,_0x55e293,_0x2b49ab)=>{_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x27')](_0x3a5268=>{const _0x601420=[];for(const _0x1aa45d of _0x4ef395){const _0x1063a4=_0x1aa45d[_0x4ad7('0x12')][_0x4ad7('0x6d')];_0x1063a4['is'](_0x4ad7('0x4b'),_0x4ad7('0x57'))&&_0x601420['push'](_0x1063a4);}_0x2889f9[_0x4ad7('0x6')]['getSuggestionCallback'](_0x2ac82d,null,_0x7301a1)(_0x4ef395,_0x55e293,_0x2b49ab);for(const _0x36df00 of _0x601420)_0x4ad7('0x7f')!=_0x36df00[_0x4ad7('0x9b')][_0x4ad7('0x3e')]&&_0x3a5268[_0x4ad7('0x21')](_0x36df00);});});};_0x404f0a(_0x4ad7('0x11'),_0x4ad7('0xd')),_0x404f0a(_0x4ad7('0x11'),_0x4ad7('0x94')),_0x404f0a(_0x4ad7('0x29'),_0x4ad7('0xd')),_0x404f0a(_0x4ad7('0x29'),_0x4ad7('0x94')),_0x2889f9[_0x4ad7('0x6')][_0x4ad7('0x2d')]('insertion',_0x4ad7('0x58'),_0x4ad7('0x94'),_0x15b682=>{const _0x5d93d0=_0x15b682[_0x4ad7('0x78')](_0x5ea574=>_0x5ea574[_0x4ad7('0x3c')]()),_0x461a5c=_0x5d93d0[0x0][_0x4ad7('0x61')](_0x4ad7('0x81')),{minRow:_0x48c1b5,maxRow:_0x36fbf8}=_0x1ee4d9['_getCoordsForCells'](_0x5d93d0);_0x4f47b8[_0x4ad7('0xc')](_0x461a5c,{'at':_0x48c1b5,'rows':_0x36fbf8-_0x48c1b5+0x1});}),_0x2889f9[_0x4ad7('0x6')][_0x4ad7('0x2d')](_0x4ad7('0x11'),_0x4ad7('0x8d'),_0x4ad7('0x94'),_0x3a8e97=>{const _0x4b3bd6=_0x3a8e97[_0x4ad7('0x78')](_0x181e2c=>_0x181e2c[_0x4ad7('0x3c')]()),_0xae142f=_0x4b3bd6[0x0][_0x4ad7('0x61')](_0x4ad7('0x81')),{minColumn:_0x1f2f22,maxColumn:_0x49b0a2}=_0x1ee4d9[_0x4ad7('0x9')](_0x4b3bd6);_0x4f47b8['removeColumns'](_0xae142f,{'at':_0x1f2f22,'columns':_0x49b0a2-_0x1f2f22+0x1});});const _0x1d472a=(_0x74df3b,_0x3c73af)=>{if(!_0x3c73af[_0x4ad7('0x62')]||!_0x3c73af['subType']['startsWith'](_0x4ad7('0x5e')))return;const _0x28b3e1=_0x3c73af[_0x4ad7('0x25')]['tablePasteChainId'],_0x32a647=_0x2889f9[_0x4ad7('0x89')]()[_0x4ad7('0x97')](_0x4ca7d1=>_0x4ca7d1['isInContent']&&_0x4ca7d1[_0x4ad7('0x25')]&&_0x4ca7d1[_0x4ad7('0x25')][_0x4ad7('0x1d')]==_0x28b3e1);_0x32a647['length']&&_0x3c73af[_0x4ad7('0x55')]()[_0x4ad7('0xa')]!=_0x32a647['length']&&_0x32a647['reduce']((_0x431f70,_0x12c3f5)=>(_0x431f70['next']=_0x12c3f5,_0x12c3f5['previous']=_0x431f70,_0x12c3f5));};function _0x1cbb9b(_0x1242e2,_0x38eb3f=!0x0){const {id:_0x46e604}=_0x2889f9['_splitMarkerName'](_0x1242e2[_0x4ad7('0x6f')]),_0x4228b6=[_0x4ad7('0x5b'),_0x4ad7('0x19')],_0x5bc8a5=_0x2889f9['activeMarkers'][_0x4ad7('0x92')](_0x1242e2['markerName']);return _0x5bc8a5&&_0x4228b6['push'](_0x4ad7('0x22')),{'classes':_0x4228b6,'attributes':{'data-suggestion':_0x46e604},'priority':_0x5bc8a5&&_0x38eb3f?0xbc2:0xbb8};}_0x2889f9['on']('suggestionLoaded',_0x1d472a,{'priority':'high'}),_0x2889f9['on'](_0x4ad7('0x2b'),_0x1d472a,{'priority':'high'}),_0x4e14b0['model'][_0x4ad7('0x14')]['registerPostFixer'](()=>{let _0x5137a2=!0x1;const _0x114c40=Array['from'](_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x14')][_0x4ad7('0x80')][_0x4ad7('0x4d')]());for(const {name:_0x4821c1,data:_0x2d10a1}of _0x114c40){const {group:_0xcf71b6,type:_0xa55bd,id:_0x15fc8c}=_0x2889f9[_0x4ad7('0x32')](_0x4821c1);if(_0x4ad7('0x87')!=_0xcf71b6||'deletion'!=_0xa55bd||_0x2d10a1[_0x4ad7('0x8a')])continue;if(!_0x2889f9['hasSuggestion'](_0x15fc8c))continue;const _0x3a30e9=_0x2889f9[_0x4ad7('0x2f')](_0x15fc8c)['getRanges'](),_0x5da57d=_0x4e14b0[_0x4ad7('0x9c')][_0x4ad7('0x5')](_0x4ad7('0x59'))['me'];for(const _0x5af0dc of _0x2889f9[_0x4ad7('0x89')]()){if(!_0x5af0dc[_0x4ad7('0x3')]||_0x5af0dc[_0x4ad7('0x7e')]!=_0x5da57d)continue;if(_0x4ad7('0x17')!=_0x5af0dc[_0x4ad7('0x28')]||_0x4ad7('0x35')!=_0x5af0dc[_0x4ad7('0x62')])continue;if(_0x5af0dc['getRanges']()['every'](_0x4c5ab6=>_0x3a30e9['some'](_0x5aa960=>_0x5aa960[_0x4ad7('0x23')](_0x4c5ab6,!0x0))))for(const _0x5f3190 of _0x5af0dc[_0x4ad7('0x55')]())_0x5f3190[_0x4ad7('0x3')]&&(_0x5f3190['discard'](),_0x5137a2=!0x0);}}return _0x5137a2;}),_0x4e14b0[_0x4ad7('0x52')]['document'][_0x4ad7('0x26')](_0x47f09e=>{const _0x1b271e=_0x4e14b0[_0x4ad7('0x91')][_0x4ad7('0x5')](_0x4ad7('0x82'));if(!_0x1b271e||!_0x1b271e['_createdBatches']['has'](_0x47f09e[_0x4ad7('0x76')]))return!0x1;let _0x578936=!0x1;const _0x519c25=_0x4e14b0[_0x4ad7('0x9c')]['get']('Users')['me'],_0x43d381=_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x14')][_0x4ad7('0x80')][_0x4ad7('0x7b')](),_0x18e43a=Array[_0x4ad7('0x45')](_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x14')]['differ'][_0x4ad7('0x4d')]())[_0x4ad7('0x97')](({name:_0x3fdd80,data:_0x27e27f})=>{const {group:_0x4f64bf,subType:_0x37a6c8,authorId:_0xe55bc9}=_0x2889f9[_0x4ad7('0x32')](_0x3fdd80);return _0x4ad7('0x87')==_0x4f64bf&&_0x4ad7('0x5e')==_0x37a6c8&&_0xe55bc9==_0x519c25['id']&&!_0x27e27f['oldRange'];});for(const _0xb1ddb9 of _0x43d381){if(_0x4ad7('0x2c')!=_0xb1ddb9[_0x4ad7('0x28')]||_0x4ad7('0x57')!=_0xb1ddb9[_0x4ad7('0x90')]||0x1!=_0xb1ddb9['length'])continue;const _0x509ed3=_0x47f09e[_0x4ad7('0x2a')](_0xb1ddb9['position'],_0xb1ddb9['position'][_0x4ad7('0x75')](0x1));if(!_0x18e43a[_0x4ad7('0x66')](({data:_0xfc23db})=>_0xfc23db[_0x4ad7('0x15')][_0x4ad7('0x6e')](_0x509ed3)))for(const {name:_0x45e151,data:_0x58b07a}of _0x18e43a)if(_0x509ed3['containsRange'](_0x58b07a['newRange'])){_0x47f09e['updateMarker'](_0x45e151,{'range':_0x509ed3}),_0x578936=!0x0;break;}}return _0x578936;}),_0x4e14b0[_0x4ad7('0x52')]['document'][_0x4ad7('0x26')](_0x5d644b=>{let _0x28288e=!0x1;const _0x2f7ec9=_0x4e14b0[_0x4ad7('0x9c')]['get'](_0x4ad7('0x59'))['me'],_0x5db781=_0x2889f9[_0x4ad7('0x89')]()[_0x4ad7('0x97')](_0x32f17c=>_0x32f17c[_0x4ad7('0x3')]&&_0x32f17c['author']==_0x2f7ec9),_0xfc0dd3=new Set(),_0xdc1d41=new Set();for(const _0x10206f of _0x5db781)if(_0x4ad7('0x5e')==_0x10206f[_0x4ad7('0x62')])for(const _0x2cc033 of _0x10206f[_0x4ad7('0x49')]()){const _0x255207=_0x2cc033[_0x4ad7('0x69')]()[_0x4ad7('0x3c')]();if(_0x255207){if(_0x255207['is'](_0x4ad7('0x4b'),_0x4ad7('0x57'))&&ce(_0x255207)){_0x10206f[_0x4ad7('0x4a')](_0x2cc033[_0x4ad7('0x90')]),_0xfc0dd3[_0x4ad7('0x93')](_0x255207),_0x28288e=!0x0;const _0xcdd525=_0x255207['nextSibling'],_0x301329=_0x255207[_0x4ad7('0x8c')],_0x1c93b4=_0xcdd525&&_0xcdd525['is'](_0x4ad7('0x4b'),_0x4ad7('0x57')),_0x19bf95=_0x301329&&_0x301329['is']('element','tableCellSuggestion');_0x1c93b4&&!_0xfc0dd3[_0x4ad7('0x42')](_0xcdd525)&&_0xdc1d41['add'](_0xcdd525),_0x19bf95&&!_0xfc0dd3[_0x4ad7('0x42')](_0x301329)&&_0xdc1d41[_0x4ad7('0x93')](_0x301329);}else _0x255207['is'](_0x4ad7('0x4b'),_0x4ad7('0x6b'))&&_0x255207[_0x4ad7('0x73')]&&(_0x10206f['removeMarker'](_0x2cc033[_0x4ad7('0x90')]),_0x28288e=!0x0);}}else{if('tablePasteCell'==_0x10206f[_0x4ad7('0x62')]){if(!_0x10206f['attributes']||!_0x10206f[_0x4ad7('0x25')][_0x4ad7('0x1d')])continue;const _0x575b4b=_0x10206f['attributes'][_0x4ad7('0x4e')];if(_0x575b4b&&Object[_0x4ad7('0x50')](_0x575b4b)[_0x4ad7('0xa')])continue;const _0x75e653=_0x10206f[_0x4ad7('0x25')][_0x4ad7('0x1d')];let _0x2a741b=!0x0,_0x26c96f=!0x0;for(const _0x5be274 of _0x5db781)if(_0x5be274[_0x4ad7('0x62')]&&_0x5be274['subType']['startsWith'](_0x4ad7('0x5e'))){if(!_0x5be274[_0x4ad7('0x25')][_0x4ad7('0x1d')]){_0x26c96f=!0x1;break;}if(_0x5be274['id']!=_0x10206f['id']&&_0x5be274[_0x4ad7('0x25')][_0x4ad7('0x1d')]==_0x75e653){_0x2a741b=!0x1;break;}}_0x26c96f&&_0x2a741b&&(_0x10206f[_0x4ad7('0x5f')](),_0x28288e=!0x0);}}for(const _0x17c72e of _0xfc0dd3)_0x5d644b['remove'](_0x17c72e);for(const _0x55aad5 of _0xdc1d41)_0x5d644b[_0x4ad7('0x21')](_0x55aad5);return _0x28288e;}),_0x4e14b0[_0x4ad7('0x5c')][_0x4ad7('0x70')]('editingDowncast')[_0x4ad7('0x7d')]({'model':_0x4ad7('0x31'),'view':(_0x42dd1d,_0x4a4c69)=>_0x1cbb9b(_0x42dd1d),'converterPriority':_0x4ad7('0x40')}),_0x4e14b0[_0x4ad7('0x5c')]['for'](_0x4ad7('0x5a'))[_0x4ad7('0x7d')]({'model':_0x4ad7('0x31'),'view':(_0x293d89,_0x32bcdb)=>_0x32bcdb[_0x4ad7('0x64')][_0x4ad7('0x1')]?_0x1cbb9b(_0x293d89,!0x1):null,'converterPriority':_0x4ad7('0x40')});const _0x498a49=_0x4e14b0[_0x4ad7('0x88')][_0x4ad7('0xe')];this[_0x4ad7('0x18')](_0x498a49[_0x4ad7('0x14')],_0x4ad7('0x39'),(_0x1e14a4,_0x3f3efc)=>{const _0x339520=[];for(const _0x81627d of _0x498a49[_0x4ad7('0x47')](_0x3f3efc['content'])[_0x4ad7('0x54')]())_0x81627d['is'](_0x4ad7('0x4b'),_0x4ad7('0x53'))&&_0x339520[_0x4ad7('0xb')](_0x81627d);_0x498a49[_0x4ad7('0x27')](_0x3b794d=>{for(const _0x37d3d5 of _0x339520)_0x3b794d[_0x4ad7('0x7')](_0x3b794d['createRangeIn'](_0x37d3d5),_0x3b794d['createPositionBefore'](_0x37d3d5)),_0x3b794d[_0x4ad7('0x96')](_0x37d3d5);});});}}function ce(_0x194b4e){if(_0x194b4e[_0x4ad7('0x73')])return!0x0;const _0x57629e=_0x194b4e[_0x4ad7('0x0')](0x0);return _0x57629e['is'](_0x4ad7('0x4b'),'paragraph')&&_0x57629e['isEmpty'];}function fe(_0x593dc8,_0x23d44c={},_0x2917f0){for(const {isAnchor:_0x1f633f,cellHeight:_0xfe9030,cellWidth:_0x5416c6}of _0x2917f0[_0x4ad7('0x74')](_0x593dc8,{'includeAllSlots':!0x0,..._0x23d44c}))if(!_0x1f633f||0x1!=_0xfe9030||0x1!=_0x5416c6)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bee=['formatBlock','registerDescriptionCallback','has','handleSuggestionDescription','get','columnWidths','table','resizeColumnWidths','TrackChangesEditing','data','getSelectedElement','getTableColumnsWidths','_suggestionFactory','bind','accept','subType','commandParams','getColumnGroupElement','getAttribute','discard','locale','_descriptionFactory','plugins','document','enableCommand','resizeTable','editor','model','handleResizeTableWidthCommand','resizeTableWidth','tableWidth','selection','Users','TableColumnResizeEditing','getSuggestions','*Format:*\x20resize\x20table','registerCustomCallback'];(function(_0xd65d2e,_0x3beee3){const _0x2dc1e1=function(_0x194b7e){while(--_0x194b7e){_0xd65d2e['push'](_0xd65d2e['shift']());}};_0x2dc1e1(++_0x3beee3);}(_0x3bee,0x9c));const _0x2dc1=function(_0xd65d2e,_0x3beee3){_0xd65d2e=_0xd65d2e-0x0;let _0x2dc1e1=_0x3bee[_0xd65d2e];return _0x2dc1e1;};import{Plugin as _0x3e97f6}from'ckeditor5/src/core';import{getTranslation as _0x4ddfe1}from'../utils/common-translations';export default class wt extends _0x3e97f6{['afterInit'](){if(!this[_0x2dc1('0x12')][_0x2dc1('0xe')][_0x2dc1('0x1f')](_0x2dc1('0x19')))return;const _0x13e23a=this[_0x2dc1('0x12')]['plugins'][_0x2dc1('0x21')](_0x2dc1('0x0'));_0x13e23a[_0x2dc1('0x10')](_0x2dc1('0x15'),this[_0x2dc1('0x14')][_0x2dc1('0x5')](this)),_0x13e23a[_0x2dc1('0x10')](_0x2dc1('0x24'),this[_0x2dc1('0x14')][_0x2dc1('0x5')](this)),_0x13e23a['_suggestionFactory'][_0x2dc1('0x1c')](_0x2dc1('0x1d'),_0x2dc1('0x11'),'accept',_0x13e23a[_0x2dc1('0x4')]['getSuggestionCallback'](_0x2dc1('0x1d'),null,'discard')),_0x13e23a[_0x2dc1('0x4')][_0x2dc1('0x1c')](_0x2dc1('0x1d'),_0x2dc1('0x11'),'discard',_0x13e23a[_0x2dc1('0x4')]['getSuggestionCallback'](_0x2dc1('0x1d'),null,_0x2dc1('0x6'))),_0x13e23a[_0x2dc1('0xd')][_0x2dc1('0x1e')](this['handleSuggestionDescription'][_0x2dc1('0x5')](this));}[_0x2dc1('0x14')](_0x10fcf1,_0x2c7bc1){const _0x207e9d=this[_0x2dc1('0x12')][_0x2dc1('0xe')]['get'](_0x2dc1('0x0')),_0x540543=this[_0x2dc1('0x12')][_0x2dc1('0xe')]['get'](_0x2dc1('0x19')),_0x136aa6=_0x2c7bc1[_0x2dc1('0x23')]||this['editor'][_0x2dc1('0x13')][_0x2dc1('0xf')][_0x2dc1('0x17')][_0x2dc1('0x2')]();this['editor'][_0x2dc1('0x13')]['change'](()=>{const _0x5a9e03=_0x540543[_0x2dc1('0x9')](_0x136aa6);let _0x4f2014=_0x5a9e03?_0x540543[_0x2dc1('0x3')](_0x5a9e03):null,_0x484a76=_0x136aa6[_0x2dc1('0xa')](_0x2dc1('0x16'))||null;const _0x2461a7=_0x2c7bc1[_0x2dc1('0x16')]||_0x484a76,_0x332124=_0x2c7bc1[_0x2dc1('0x22')]||_0x4f2014,_0x2e6c1e=this[_0x2dc1('0x12')][_0x2dc1('0xe')][_0x2dc1('0x21')](_0x2dc1('0x18'))['me'];for(const _0x31a0ac of _0x207e9d[_0x2dc1('0x1a')]()){const _0x18b347=_0x31a0ac['getContainedElement']();if(_0x2dc1('0x11')===_0x31a0ac[_0x2dc1('0x7')]&&_0x18b347===_0x136aa6){_0x31a0ac['author']!==_0x2e6c1e&&_0x31a0ac[_0x2dc1('0xb')]();const _0x33be5c=_0x31a0ac[_0x2dc1('0x1')][_0x2dc1('0x8')];_0x484a76=_0x33be5c[0x0][_0x2dc1('0x16')],_0x4f2014=_0x33be5c[0x0][_0x2dc1('0x22')];break;}}_0x10fcf1({'table':_0x136aa6,'tableWidth':_0x2461a7,'columnWidths':_0x332124}),_0x207e9d['markBlockFormat'](_0x136aa6,{'commandName':_0x2dc1('0x15'),'commandParams':[{'tableWidth':_0x484a76,'columnWidths':_0x4f2014}],'formatGroupId':_0x2dc1('0x11')},[],_0x2dc1('0x11'));});}[_0x2dc1('0x20')](_0x4293b5){const {data:_0x1dc860}=_0x4293b5;if(_0x1dc860&&'resizeTable'===_0x1dc860['formatGroupId']){const _0x9e2d68=_0x2dc1('0x1b');return{'type':'format','content':_0x4ddfe1(this['editor'][_0x2dc1('0xc')],_0x9e2d68)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2461=['toViewElement','format','isBefore','headingColumns','model','options','TableUtils','table','headingRows','createPositionAfter','showSuggestionHighlights','consume','change','index','setTableColumnHeader','getChild','activeMarkers','markBlockFormat','registerDescriptionCallback','accept','nodeAfter','removeClass','unbindElementFromMarkerName','getSuggestion','registerCustomCallback','document','selection','has','data-suggestion','commands','consumable','forceValue','stop','enableCommand','FORMAT_REGULAR_ROW','_descriptionFactory','childCount','ck-suggestion-marker-','commandParams','from','markerRange','parent','addMarker:suggestion','TrackChangesEditing','getRowIndexes','item','writer','FORMAT_HEADER_COLUMN','removeMarker:suggestion','ck-suggestion-marker--active','_splitMarkerName','_suggestionFactory','mapper','afterInit','commandName','setTableRowHeader','downcastDispatcher','value','highest','markerName','bindElementToMarker','*Format:*\x20%0','nodeBefore','requires','getSelectionAffectedTableCells','locale','createPositionBefore','editor','createTableWalker','FORMAT_HEADER_ROW','getAttribute','data','findAncestor','name','addClass','plugins','first','_acceptFormatSuggestionCallbackFactory','cell','editing','createRange','formatBlock','getColumnIndexes','get','getCellLocation','last'];(function(_0x118c5f,_0x246133){const _0x48781b=function(_0x9e5b3a){while(--_0x9e5b3a){_0x118c5f['push'](_0x118c5f['shift']());}};_0x48781b(++_0x246133);}(_0x2461,0xad));const _0x4878=function(_0x118c5f,_0x246133){_0x118c5f=_0x118c5f-0x0;let _0x48781b=_0x2461[_0x118c5f];return _0x48781b;};import{Plugin as _0x16deba}from'ckeditor5/src/core';import _0x262040 from'./table';import{getTranslation as _0x45a6c6}from'../utils/common-translations';export default class pt extends _0x16deba{static get[_0x4878('0x3e')](){return[_0x262040];}[_0x4878('0x34')](){const _0x4cb3ed=this[_0x4878('0x42')];if(!_0x4cb3ed[_0x4878('0x4a')][_0x4878('0x1a')]('TableEditing'))return;const _0x17a7f5=_0x4cb3ed[_0x4878('0x40')],_0x5ceadc=_0x4cb3ed['plugins'][_0x4878('0x52')](_0x4878('0x2a')),_0x3b94dc=_0x4cb3ed[_0x4878('0x4a')]['get'](_0x4878('0x5')),_0x3584d3=_0x4cb3ed[_0x4878('0x4a')][_0x4878('0x52')](_0x262040);function _0xed768c({showActiveMarker:_0x3306a1=!0x0,setDataAttribute:_0x2805ae=!0x0}={}){return(_0x4a8b72,_0x527f8c,_0x56f598)=>{const {type:_0x1f44b5,id:_0x22d3e9}=_0x5ceadc[_0x4878('0x31')](_0x527f8c[_0x4878('0x3a')]),_0x4dda20=_0x5ceadc[_0x4878('0x16')](_0x22d3e9);if(!_0x4dda20['data']||_0x4878('0xd')!=_0x4dda20[_0x4878('0x46')][_0x4878('0x35')])return;if(_0x527f8c[_0x4878('0x2c')])return void _0x4a8b72[_0x4878('0x1f')]();if(!_0x56f598[_0x4878('0x1d')][_0x4878('0xa')](_0x527f8c[_0x4878('0x27')],_0x4a8b72[_0x4878('0x48')]))return;const _0x386541=_0x527f8c['markerRange']['start'][_0x4878('0x13')],_0x1ace0d=_0x527f8c[_0x4878('0x27')]['end'][_0x4878('0x3d')],_0x48f3d9=_0x386541[_0x4878('0x28')]['parent'],{column:_0x969869}=_0x3b94dc['getCellLocation'](_0x386541),{column:_0x5048fa}=_0x3b94dc[_0x4878('0x53')](_0x1ace0d);for(let _0x4db8a5=_0x969869;_0x4db8a5<=_0x5048fa;_0x4db8a5++){const _0x5559ff=_0x3b94dc[_0x4878('0x43')](_0x48f3d9,{'column':_0x4db8a5,'includeAllSlots':!0x1});for(const _0x49e32c of _0x5559ff){const _0x2ff593=_0x49e32c[_0x4878('0x4d')],_0x18ce51=_0x56f598['mapper'][_0x4878('0x55')](_0x2ff593);_0x56f598[_0x4878('0x2d')][_0x4878('0x49')]('ck-suggestion-marker-'+_0x1f44b5,_0x18ce51),_0x2805ae&&_0x56f598[_0x4878('0x2d')]['setAttribute'](_0x4878('0x1b'),_0x22d3e9,_0x18ce51),_0x56f598[_0x4878('0x33')][_0x4878('0x3b')](_0x18ce51,_0x527f8c[_0x4878('0x3a')]),_0x3306a1&&(_0x5ceadc[_0x4878('0xf')]['includes'](_0x527f8c[_0x4878('0x3a')])?_0x56f598['writer'][_0x4878('0x49')](_0x4878('0x30'),_0x18ce51):_0x56f598[_0x4878('0x2d')]['removeClass'](_0x4878('0x30'),_0x18ce51));}}};}_0x5ceadc[_0x4878('0x20')](_0x4878('0x36'),(_0x539b4,_0x12ae55)=>{const _0x4aede0=_0x3b94dc[_0x4878('0x3f')](_0x4cb3ed[_0x4878('0x3')][_0x4878('0x18')]['selection']),_0x20b6b6=_0x3b94dc[_0x4878('0x2b')](_0x4aede0),_0x26d61a=_0x4aede0[0x0][_0x4878('0x47')](_0x4878('0x6')),_0x5afe13=_0x26d61a[_0x4878('0x45')](_0x4878('0x7'))||0x0,_0x3cb14e=_0x12ae55&&null!==_0x12ae55[_0x4878('0x1e')]?_0x12ae55[_0x4878('0x1e')]:!_0x4cb3ed[_0x4878('0x1c')]['get'](_0x4878('0x36'))[_0x4878('0x38')],_0x635adc=_0x3cb14e?_0x20b6b6[_0x4878('0x54')]:_0x20b6b6[_0x4878('0x4b')],_0x50fc65=_0x26d61a['getChild'](_0x635adc);let _0x49f098;if(_0x3cb14e){const _0x5bb094=_0x26d61a[_0x4878('0xe')](_0x5afe13);if(_0x50fc65[_0x4878('0xc')]<_0x5bb094['index'])return;_0x49f098=_0x4cb3ed[_0x4878('0x3')][_0x4878('0x4f')](_0x4cb3ed[_0x4878('0x3')][_0x4878('0x41')](_0x5bb094[_0x4878('0xe')](0x0)),_0x4cb3ed[_0x4878('0x3')][_0x4878('0x8')](_0x50fc65['getChild'](_0x50fc65[_0x4878('0x23')]-0x1)));}else{const _0x52ac34=_0x26d61a[_0x4878('0xe')](_0x5afe13-0x1);if(!_0x52ac34)return;_0x49f098=_0x4cb3ed[_0x4878('0x3')][_0x4878('0x4f')](_0x4cb3ed['model'][_0x4878('0x41')](_0x50fc65[_0x4878('0xe')](0x0)),_0x4cb3ed[_0x4878('0x3')]['createPositionAfter'](_0x52ac34[_0x4878('0xe')](_0x52ac34[_0x4878('0x23')]-0x1)));}_0x4cb3ed[_0x4878('0x3')][_0x4878('0xb')](()=>{_0x5ceadc[_0x4878('0x10')](_0x49f098,{'commandName':_0x4878('0x36'),'commandParams':[{'forceValue':_0x3cb14e}]},[],_0x4878('0x36'));});}),_0x5ceadc[_0x4878('0x20')](_0x4878('0xd'),(_0x32147f,_0x4c906e)=>{const _0x358ea2=_0x4cb3ed[_0x4878('0x4a')]['get'](_0x4878('0x5')),_0x1543d9=_0x358ea2[_0x4878('0x3f')](_0x4cb3ed['model']['document'][_0x4878('0x19')]),_0xaed775=_0x358ea2[_0x4878('0x51')](_0x1543d9),_0x39bf48=_0x1543d9[0x0][_0x4878('0x47')]('table'),_0x1e88b6=_0x39bf48[_0x4878('0x45')](_0x4878('0x2'))||0x0,_0x24ffbb=_0x4c906e&&null!==_0x4c906e[_0x4878('0x1e')]?_0x4c906e[_0x4878('0x1e')]:!_0x4cb3ed[_0x4878('0x1c')][_0x4878('0x52')]('setTableColumnHeader')[_0x4878('0x38')];let _0x5c60df;const _0x6d49c5=_0x39bf48[_0x4878('0xe')](0x0),_0x1c2a82=_0x24ffbb?_0xaed775[_0x4878('0x54')]:_0xaed775[_0x4878('0x4b')],_0x4dfd9c=_0x358ea2[_0x4878('0x43')](_0x39bf48,{'startRow':0x0,'column':_0x1c2a82,'includeAllSlots':!0x1}),_0x261d7a=Array[_0x4878('0x26')](_0x4dfd9c)[0x0][_0x4878('0x4d')];if(_0x24ffbb){const _0x331d06=_0x6d49c5['getChild'](_0x1e88b6);if(_0x261d7a[_0x4878('0x1')](_0x331d06))return;_0x5c60df=_0x4cb3ed[_0x4878('0x3')][_0x4878('0x4f')](_0x4cb3ed[_0x4878('0x3')][_0x4878('0x41')](_0x331d06),_0x4cb3ed['model'][_0x4878('0x8')](_0x261d7a));}else{const _0x55a7a3=_0x6d49c5[_0x4878('0xe')](_0x1e88b6-0x1);if(!_0x55a7a3)return;_0x5c60df=_0x4cb3ed[_0x4878('0x3')]['createRange'](_0x4cb3ed[_0x4878('0x3')][_0x4878('0x41')](_0x261d7a),_0x4cb3ed[_0x4878('0x3')][_0x4878('0x8')](_0x55a7a3));}_0x4cb3ed[_0x4878('0x3')][_0x4878('0xb')](()=>{_0x5ceadc['markBlockFormat'](_0x5c60df,{'commandName':_0x4878('0xd'),'commandParams':[{'forceValue':_0x24ffbb}]},[],_0x4878('0xd'));});}),_0x4cb3ed['editing'][_0x4878('0x37')]['on'](_0x4878('0x29'),_0xed768c(),{'priority':'highest'}),_0x4cb3ed[_0x4878('0x46')][_0x4878('0x37')]['on'](_0x4878('0x29'),(_0x30dc57,_0x27c248,_0x387c5e)=>{_0x387c5e[_0x4878('0x4')][_0x4878('0x9')]&&_0xed768c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x30dc57,_0x27c248,_0x387c5e);},{'priority':'highest'}),_0x4cb3ed[_0x4878('0x4e')][_0x4878('0x37')]['on'](_0x4878('0x2f'),(_0x559c26,_0x198d63,_0xc2ec0e)=>{const {type:_0x101b96,id:_0x3b8553}=_0x5ceadc[_0x4878('0x31')](_0x198d63[_0x4878('0x3a')]),_0x9e5c6d=_0x5ceadc[_0x4878('0x16')](_0x3b8553);if(!_0x9e5c6d[_0x4878('0x46')]||_0x4878('0xd')!=_0x9e5c6d[_0x4878('0x46')][_0x4878('0x35')])return;const _0x25d033=_0xc2ec0e[_0x4878('0x33')]['markerNameToElements'](_0x198d63[_0x4878('0x3a')]);if(_0x25d033)for(const _0xcdc96f of _0x25d033)_0xc2ec0e[_0x4878('0x2d')][_0x4878('0x14')](_0x4878('0x24')+_0x101b96,_0xcdc96f),_0xc2ec0e[_0x4878('0x2d')]['removeClass'](_0x4878('0x30'),_0xcdc96f),_0xc2ec0e[_0x4878('0x2d')]['removeAttribute'](_0x4878('0x1b'),_0xcdc96f),_0xc2ec0e[_0x4878('0x33')][_0x4878('0x15')](_0xcdc96f,_0x198d63['markerName']);},{'priority':_0x4878('0x39')}),_0x5ceadc[_0x4878('0x22')][_0x4878('0x11')](_0x294f9b=>{const {data:_0x46e556}=_0x294f9b;if(_0x46e556){if('setTableRowHeader'==_0x46e556['commandName']){const _0x4b3fbb=_0x46e556[_0x4878('0x25')][0x0][_0x4878('0x1e')];return _0x39d20e(_0x45a6c6(_0x17a7f5,_0x4b3fbb?_0x4878('0x44'):_0x4878('0x21')));}if(_0x4878('0xd')==_0x46e556[_0x4878('0x35')]){const _0x50f754=_0x46e556[_0x4878('0x25')][0x0]['forceValue'];return _0x39d20e(_0x45a6c6(_0x17a7f5,_0x50f754?_0x4878('0x2e'):'FORMAT_REGULAR_COLUMN'));}}function _0x39d20e(_0x10df3e){return{'type':_0x4878('0x0'),'content':_0x45a6c6(_0x17a7f5,_0x4878('0x3c'),_0x10df3e)};}});const _0x2d3c5f=_0x3584d3[_0x4878('0x4c')]();_0x5ceadc[_0x4878('0x32')][_0x4878('0x17')](_0x4878('0x50'),_0x4878('0x36'),'accept',_0x2d3c5f),_0x5ceadc[_0x4878('0x32')][_0x4878('0x17')](_0x4878('0x50'),_0x4878('0xd'),_0x4878('0x12'),_0x2d3c5f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e18=['mergeTableCellRight','splitTableCellVertically','createTableWalker','has','_suggestionFactory','element','find','splitTableCellHorizontally','plugins','size','containsRange','tableCell','low','document','subType','execute','getRanges','value','_isForcedDefaultExecutionBlock','author','deletion','refresh','getFirstPosition','push','model','markMultiRangeBlockFormat','forceDefaultExecution','TableUtils','_areMergableCells','registerDescriptionCallback','setSelection','*Merge\x20cells*','selection','from','locale','afterInit','set:isEnabled','*Split\x20cell:*\x20horizontally','*Split\x20cell:*\x20vertically','mergeTableCells','length','get','mergeTableCellUp','createRangeOn','add','mergeTableCellLeft','change','TrackChangesEditing','table','_descriptionFactory','accept','direction','_areSelectedCellsMergable','format','getCellLocation','markBlockFormat','mergeTableCellDown','getAncestors','commands','rootName','stop','map','type','trackChanges','highest','enableCommand','registerCustomCallback','TableEditing','editor','requires','$graveyard','commandName','getSelectionAffectedTableCells','_acceptFormatSuggestionCallbackFactory','formatBlock','cell','horizontally','detach'];(function(_0x59bc2a,_0x5e189a){const _0x686bda=function(_0x4ad95c){while(--_0x4ad95c){_0x59bc2a['push'](_0x59bc2a['shift']());}};_0x686bda(++_0x5e189a);}(_0x5e18,0x1dd));const _0x686b=function(_0x59bc2a,_0x5e189a){_0x59bc2a=_0x59bc2a-0x0;let _0x686bda=_0x5e18[_0x59bc2a];return _0x686bda;};import{Plugin as _0x5766ef}from'ckeditor5/src/core';import _0x5fc03c from'./table';import{LiveRange as _0x1f2f08}from'ckeditor5/src/engine';import{getTranslation as _0x243fda}from'../utils/common-translations';export default class dt extends _0x5766ef{static get[_0x686b('0x3c')](){return[_0x5fc03c];}[_0x686b('0x1a')](){const _0x27722e=this[_0x686b('0x3b')],_0x52e81d=_0x27722e[_0x686b('0xf')][_0x686b('0x4')]['selection'],_0x496ee9=_0x27722e[_0x686b('0x19')];if(!_0x27722e['plugins'][_0x686b('0x48')](_0x686b('0x3a')))return;const _0x1a3c8f=_0x27722e[_0x686b('0x4d')][_0x686b('0x20')]('TrackChangesEditing'),_0xfd9a4e=_0x27722e[_0x686b('0x4d')][_0x686b('0x20')](_0x686b('0x12')),_0x118c0b=_0x27722e[_0x686b('0x4d')][_0x686b('0x20')](_0x5fc03c);_0x118c0b['_tablePostFixingSubtypes'][_0x686b('0xe')](_0x686b('0x1e')),_0x1a3c8f[_0x686b('0x38')](_0x686b('0x1e'),()=>{const _0x3c936c=_0xfd9a4e[_0x686b('0x3f')](_0x27722e[_0x686b('0xf')][_0x686b('0x4')][_0x686b('0x17')]);_0x27722e[_0x686b('0xf')][_0x686b('0x25')](()=>{_0x1a3c8f['markMultiRangeBlockFormat'](_0x3c936c,{'commandName':_0x686b('0x1e'),'commandParams':[]},[],_0x686b('0x1e'));});}),_0x27722e[_0x686b('0x31')]['get'](_0x686b('0x1e'))['on']('execute',(_0x13faa5,_0x1c9606)=>{_0x27722e['commands'][_0x686b('0x20')](_0x686b('0x36'))[_0x686b('0x8')]&&(_0x1c9606[_0x686b('0x1f')]>0x0&&_0x1c9606[_0x1c9606[_0x686b('0x1f')]-0x1]&&_0x1c9606[_0x1c9606[_0x686b('0x1f')]-0x1][_0x686b('0x11')]||_0x1a3c8f[_0x686b('0x9')]||this[_0x686b('0x2b')]()||_0x13faa5[_0x686b('0x33')]());},{'priority':_0x686b('0x37')});for(const _0x12a2de of['mergeTableCellUp','mergeTableCellRight',_0x686b('0x2f'),_0x686b('0x24')]){const _0x5647b0=_0x27722e['commands'][_0x686b('0x20')](_0x12a2de);_0x1a3c8f['enableCommand'](_0x12a2de,()=>{const _0x58084b=_0x27722e[_0x686b('0xf')][_0x686b('0x4')][_0x686b('0x17')][_0x686b('0xd')]()[_0x686b('0x30')]()[_0x686b('0x4b')](_0x4b3943=>_0x4b3943['is']('element',_0x686b('0x2'))),_0xecb7ab=_0x5647b0['value'];_0x27722e['model'][_0x686b('0x25')](()=>{_0x1a3c8f[_0x686b('0x10')]([_0x58084b,_0xecb7ab],{'commandName':_0x686b('0x1e'),'commandParams':[]},[],_0x686b('0x1e'));});});}for(const _0xdebc21 of[_0x686b('0x46'),_0x686b('0x4c')]){const _0x3139b6=_0x27722e[_0x686b('0x31')][_0x686b('0x20')](_0xdebc21);_0x1a3c8f[_0x686b('0x38')](_0xdebc21,()=>{const _0x4cdc4d=_0xfd9a4e[_0x686b('0x3f')](_0x27722e[_0x686b('0xf')][_0x686b('0x4')]['selection'])[0x0],_0x40fa1b=_0x4cdc4d['findAncestor'](_0x686b('0x27')),{column:_0x132fd6,row:_0x990ff0}=_0xfd9a4e[_0x686b('0x2d')](_0x4cdc4d);let _0x1c11ec=[];if(_0x686b('0x43')==_0x3139b6[_0x686b('0x2a')]){const _0x31aa53=_0xfd9a4e[_0x686b('0x47')](_0x40fa1b,{'startRow':_0x990ff0,'endRow':_0x990ff0,'includeAllSlots':!0x0});_0x1c11ec=Array[_0x686b('0x18')](_0x31aa53)[_0x686b('0x34')](_0x552e71=>_0x552e71['cell']);}else{const _0x367ada=_0xfd9a4e[_0x686b('0x47')](_0x40fa1b,{'column':_0x132fd6,'includeAllSlots':!0x0});_0x1c11ec=Array[_0x686b('0x18')](_0x367ada)['map'](_0xedb8c0=>_0xedb8c0[_0x686b('0x42')]);}_0x27722e['model'][_0x686b('0x25')](_0x331a98=>{_0x1a3c8f[_0x686b('0x2e')](_0x331a98[_0x686b('0x22')](_0x4cdc4d),{'commandName':_0xdebc21,'commandParams':[]},_0x1c11ec,_0xdebc21);});});}_0x1a3c8f[_0x686b('0x28')][_0x686b('0x14')](_0x2dacc5=>{const {data:_0x42b024}=_0x2dacc5;if(_0x42b024)return _0x686b('0x1e')==_0x42b024[_0x686b('0x3e')]?{'type':_0x686b('0x2c'),'content':_0x243fda(_0x496ee9,_0x686b('0x16'))}:void 0x0;}),_0x1a3c8f[_0x686b('0x28')]['registerDescriptionCallback'](_0x128d9a=>{const {data:_0x12c6e3}=_0x128d9a;if(_0x12c6e3)return _0x686b('0x46')==_0x12c6e3[_0x686b('0x3e')]?{'type':_0x686b('0x2c'),'content':_0x243fda(_0x496ee9,_0x686b('0x1d'))}:'splitTableCellHorizontally'==_0x12c6e3['commandName']?{'type':'format','content':_0x243fda(_0x496ee9,_0x686b('0x1c'))}:void 0x0;});const _0x214703=_0x118c0b[_0x686b('0x40')]();for(const _0x5189e7 of['mergeTableCellUp',_0x686b('0x45'),_0x686b('0x2f'),_0x686b('0x24')])_0x1a3c8f[_0x686b('0x49')][_0x686b('0x39')]('formatBlock',_0x5189e7,'accept',_0x214703);for(const _0x34503c of['splitTableCellVertically',_0x686b('0x4c')])_0x1a3c8f[_0x686b('0x49')][_0x686b('0x39')](_0x686b('0x41'),_0x34503c,'accept',_0x214703);_0x1a3c8f[_0x686b('0x49')][_0x686b('0x39')](_0x686b('0x41'),_0x686b('0x1e'),_0x686b('0x29'),_0x5a4959=>{_0x27722e[_0x686b('0xf')][_0x686b('0x25')](_0x1d9ad4=>{const _0x2cdef6=Array[_0x686b('0x18')](_0x52e81d[_0x686b('0x7')]())[_0x686b('0x34')](_0x1e5777=>_0x1f2f08['fromRange'](_0x1e5777));_0x1d9ad4[_0x686b('0x15')](_0x5a4959),_0x27722e[_0x686b('0x31')][_0x686b('0x20')](_0x686b('0x1e'))[_0x686b('0xc')](),_0x27722e[_0x686b('0x6')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xa3b57c=_0x2cdef6['filter'](_0x59a60c=>_0x686b('0x3d')!=_0x59a60c['root'][_0x686b('0x32')]);_0xa3b57c['length']>0x0&&_0x1d9ad4[_0x686b('0x15')](_0xa3b57c);for(const _0x653e4d of _0x2cdef6)_0x653e4d[_0x686b('0x44')]();});});for(const _0x23e823 of[_0x686b('0x21'),_0x686b('0x2f'),_0x686b('0x24'),_0x686b('0x45')]){const _0xd3853c=_0x27722e[_0x686b('0x31')][_0x686b('0x20')](_0x23e823);_0xd3853c['on'](_0x686b('0x1b'),(_0x286154,_0x461157,_0x2025d6)=>{if(_0x2025d6){const _0xa15b2a=_0x27722e[_0x686b('0xf')][_0x686b('0x4')][_0x686b('0x17')][_0x686b('0xd')]()[_0x686b('0x30')]()[_0x686b('0x4b')](_0x4d164b=>_0x4d164b['is'](_0x686b('0x4a'),'tableCell'));this[_0x686b('0x13')](_0xd3853c['value'],_0xa15b2a)||(_0x286154['return']=!0x1,_0x286154[_0x686b('0x33')]());}},{'priority':_0x686b('0x3')});}}[_0x686b('0x2b')](){const _0x114136=this[_0x686b('0x3b')][_0x686b('0x31')][_0x686b('0x20')]('mergeTableCells'),_0x36e2e6=this[_0x686b('0x3b')][_0x686b('0x4d')]['get'](_0x686b('0x12'));if(!_0x114136['isEnabled'])return!0x1;const _0x3c00f1=_0x36e2e6[_0x686b('0x3f')](this[_0x686b('0x3b')]['model']['document'][_0x686b('0x17')]);for(const _0x1a3d48 of _0x3c00f1)for(const _0x3359da of _0x3c00f1)if(_0x1a3d48!=_0x3359da&&!this['_areMergableCells'](_0x1a3d48,_0x3359da))return!0x1;return!0x0;}[_0x686b('0x13')](_0x4a3c10,_0x15c93a){const _0x5d30a7=this[_0x686b('0x3b')][_0x686b('0x4d')]['get'](_0x686b('0x26')),_0x34a8fa=this[_0x686b('0x3b')][_0x686b('0xf')][_0x686b('0x22')](_0x4a3c10),_0x507443=this[_0x686b('0x3b')]['model'][_0x686b('0x22')](_0x15c93a),_0x3c9723=new Set(),_0x1ec580=new Set();for(const _0x5b8cde of _0x5d30a7['getSuggestions']())if(('insertion'==_0x5b8cde[_0x686b('0x35')]||_0x686b('0xb')==_0x5b8cde[_0x686b('0x35')]||_0x686b('0x1e')==_0x5b8cde[_0x686b('0x5')])&&_0x5b8cde['isInContent'])for(const _0x455f68 of _0x5b8cde[_0x686b('0x7')]())_0x455f68[_0x686b('0x1')](_0x34a8fa,!0x0)&&_0x3c9723[_0x686b('0x23')](_0x5b8cde[_0x686b('0x35')]+':'+_0x5b8cde[_0x686b('0xa')]['id']),_0x455f68[_0x686b('0x1')](_0x507443,!0x0)&&_0x1ec580[_0x686b('0x23')](_0x5b8cde[_0x686b('0x35')]+':'+_0x5b8cde['author']['id']);if(_0x3c9723[_0x686b('0x0')]!=_0x1ec580[_0x686b('0x0')])return!0x1;for(const _0xca2c96 of _0x3c9723)if(!_0x1ec580[_0x686b('0x48')](_0xca2c96))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x495b=['plugins','get','insertTableOfContents','enableCommand','TrackChangesEditing','_descriptionFactory','tableOfContents','commands','afterInit','editor','registerElementLabel'];(function(_0x1455f0,_0x495b9a){const _0x18ee0b=function(_0x27e009){while(--_0x27e009){_0x1455f0['push'](_0x1455f0['shift']());}};_0x18ee0b(++_0x495b9a);}(_0x495b,0xb9));const _0x18ee=function(_0x1455f0,_0x495b9a){_0x1455f0=_0x1455f0-0x0;let _0x18ee0b=_0x495b[_0x1455f0];return _0x18ee0b;};import{Plugin as _0x420f01}from'ckeditor5/src/core';import{getTranslation as _0x37d616}from'../utils/common-translations';export default class bt extends _0x420f01{[_0x18ee('0xa')](){const _0x5175a1=this[_0x18ee('0x0')];if(!_0x5175a1[_0x18ee('0x9')]['get'](_0x18ee('0x4')))return;_0x5175a1[_0x18ee('0x2')][_0x18ee('0x3')]('TrackChangesEditing')[_0x18ee('0x5')](_0x18ee('0x4'));const _0x3d062f=_0x5175a1[_0x18ee('0x2')]['get'](_0x18ee('0x6')),_0x2e0a86=_0x5175a1['locale'];_0x3d062f[_0x18ee('0x7')][_0x18ee('0x1')](_0x18ee('0x8'),_0x1c0b0b=>_0x37d616(_0x2e0a86,'ELEMENT_TABLE_OF_CONTENTS',_0x1c0b0b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ac3=['TableCellPropertiesEditing','getAttribute','table','getSelectionAffectedTableCells','markBlockFormat','accept','has','tableBorderWidth','tableCellBorderWidth','afterInit','commandParams','getSuggestions','*Format:*\x20change\x20table\x20cell\x20properties','selection','*Format:*\x20change\x20table\x20properties','enqueueChange','_descriptionFactory','model','_handlePropertyChange','pluginName','tableCellWidth','locale','_suggestionFactory','formatBlock','TableUtils','tableCellPadding','_getSuggestion','registerCustomCallback','format','tableProperties','document','removeAttribute','tableHeight','data','tableCellBorderColor','get','tableCellProperties','handleDiscardAction','nodeAfter','editor','registerDescriptionCallback','getFirstPosition','tableBorderColor','enableCommand','TrackChangesEditing','tableBorderStyle','handleSuggestionDescription','tableCellBorderStyle','plugins','batch','discard','change','tableBackgroundColor','join','setAttribute','getContainedElement'];(function(_0x2bdf95,_0x1ac307){const _0x561558=function(_0x57282b){while(--_0x57282b){_0x2bdf95['push'](_0x2bdf95['shift']());}};_0x561558(++_0x1ac307);}(_0x1ac3,0x11c));const _0x5615=function(_0x2bdf95,_0x1ac307){_0x2bdf95=_0x2bdf95-0x0;let _0x561558=_0x1ac3[_0x2bdf95];return _0x561558;};import{Plugin as _0x437dc2}from'ckeditor5/src/core';import{getTranslation as _0x3343c2}from'../utils/common-translations';export default class Ct extends _0x437dc2{constructor(_0x625c6){super(_0x625c6),this[_0x5615('0x19')]=[_0x5615('0x26'),_0x5615('0x29'),_0x5615('0x3'),'tableAlignment','tableWidth',_0x5615('0x1c'),_0x5615('0x30')],this['tableCellProperties']=[_0x5615('0x1e'),_0x5615('0x2b'),_0x5615('0x4'),_0x5615('0x15'),_0x5615('0x10'),'tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get[_0x5615('0xf')](){return'TrackChangesTableProperties';}[_0x5615('0x5')](){const _0x490d91=this[_0x5615('0x23')][_0x5615('0x2c')][_0x5615('0x1f')](_0x5615('0x28'));if(this['editor'][_0x5615('0x2c')][_0x5615('0x2')]('TablePropertiesEditing')){for(const _0x5c9bc3 of this[_0x5615('0x19')])_0x490d91[_0x5615('0x27')](_0x5c9bc3,(_0x2108e9,_0x1b4fe9)=>{const _0x3ec0d8=this[_0x5615('0x23')][_0x5615('0xd')][_0x5615('0x1a')][_0x5615('0x9')][_0x5615('0x25')]()['findAncestor'](_0x5615('0x36'));this[_0x5615('0xe')](_0x5c9bc3,[_0x3ec0d8],this[_0x5615('0x19')],_0x5615('0x19'),_0x2108e9,_0x1b4fe9);});_0x490d91[_0x5615('0x12')][_0x5615('0x17')](_0x5615('0x13'),_0x5615('0x19'),_0x5615('0x1'),_0x490d91[_0x5615('0x12')]['getSuggestionCallback'](_0x5615('0x13'),null,_0x5615('0x2e'))),_0x490d91[_0x5615('0x12')][_0x5615('0x17')]('formatBlock',_0x5615('0x19'),_0x5615('0x2e'),(_0x141cfd,_0x53d7cb)=>this['handleDiscardAction'](this[_0x5615('0x19')],_0x141cfd,_0x53d7cb)),_0x490d91[_0x5615('0x12')]['registerCustomCallback'](_0x5615('0x13'),_0x5615('0x19'),_0x5615('0x31'),()=>!0x1);}if(this['editor'][_0x5615('0x2c')]['has'](_0x5615('0x34'))){for(const _0x178a1b of this[_0x5615('0x20')])_0x490d91[_0x5615('0x27')](_0x178a1b,(_0x2a46b0,_0x5dbab3)=>{const _0x346ab1=this['editor'][_0x5615('0x2c')][_0x5615('0x1f')](_0x5615('0x14'))[_0x5615('0x37')](this[_0x5615('0x23')][_0x5615('0xd')][_0x5615('0x1a')][_0x5615('0x9')]);this[_0x5615('0xe')](_0x178a1b,_0x346ab1,this[_0x5615('0x20')],_0x5615('0x20'),_0x2a46b0,_0x5dbab3);});_0x490d91[_0x5615('0x12')]['registerCustomCallback'](_0x5615('0x13'),_0x5615('0x20'),'accept',_0x490d91[_0x5615('0x12')]['getSuggestionCallback'](_0x5615('0x13'),null,_0x5615('0x2e'))),_0x490d91[_0x5615('0x12')][_0x5615('0x17')](_0x5615('0x13'),'tableCellProperties',_0x5615('0x2e'),(_0x31d83f,_0x2130d7)=>this[_0x5615('0x21')](this['tableCellProperties'],_0x31d83f,_0x2130d7)),_0x490d91[_0x5615('0x12')]['registerCustomCallback'](_0x5615('0x13'),'tableCellProperties','join',()=>!0x1);}_0x490d91[_0x5615('0xc')][_0x5615('0x24')](_0x1debd5=>this[_0x5615('0x2a')](_0x1debd5));}['_handlePropertyChange'](_0x589e09,_0x2226bb,_0x4ab491,_0x585be1,_0x34b829,_0x562205){const _0x36b4ef=this['editor']['plugins'][_0x5615('0x1f')](_0x5615('0x28'));this[_0x5615('0x23')][_0x5615('0xd')][_0x5615('0xb')](_0x562205[_0x5615('0x2d')],()=>{for(const _0x1138b4 of _0x2226bb){if(this[_0x5615('0x16')](_0x1138b4,_0x585be1))_0x34b829(_0x562205);else{const _0x32e6fb={};for(const _0x5b1734 of _0x4ab491){const _0x242256=_0x1138b4[_0x5615('0x35')](_0x5b1734);void 0x0!==_0x242256&&(_0x32e6fb[_0x5b1734]=_0x242256);}_0x34b829(_0x562205),_0x36b4ef[_0x5615('0x0')](_0x1138b4,{'commandParams':[_0x32e6fb]},[],_0x585be1);}}});}[_0x5615('0x21')](_0x5c9025,_0x8f0c57,_0xaeaa74){const _0x2a3228=_0x8f0c57[0x0]['start'][_0x5615('0x22')],_0x125184=_0xaeaa74[_0x5615('0x6')][0x0];this[_0x5615('0x23')][_0x5615('0xd')][_0x5615('0x2f')](_0x371a3f=>{for(const _0xb2a875 of _0x5c9025)void 0x0!==_0x125184[_0xb2a875]?_0x371a3f[_0x5615('0x32')](_0xb2a875,_0x125184[_0xb2a875],_0x2a3228):_0x371a3f[_0x5615('0x1b')](_0xb2a875,_0x2a3228);});}['handleSuggestionDescription'](_0x555342){if(_0x555342[_0x5615('0x1d')])switch(_0x555342['subType']){case _0x5615('0x19'):return{'type':_0x5615('0x18'),'content':_0x3343c2(this[_0x5615('0x23')][_0x5615('0x11')],_0x5615('0xa'))};case _0x5615('0x20'):return{'type':_0x5615('0x18'),'content':_0x3343c2(this['editor'][_0x5615('0x11')],_0x5615('0x8'))};}}['_getSuggestion'](_0x4e622e,_0xee64f){const _0x1d610b=this[_0x5615('0x23')][_0x5615('0x2c')][_0x5615('0x1f')]('TrackChangesEditing');for(const _0x50d1df of _0x1d610b[_0x5615('0x7')]({'skipNotAttached':!0x0})){const _0x1c4c89=_0x50d1df[_0x5615('0x33')]();if(_0x50d1df['subType']===_0xee64f&&_0x1c4c89===_0x4e622e)return _0x50d1df;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4950=['TrackChangesEditing','has','Template'];(function(_0x3341f9,_0x495095){const _0x3cd6ea=function(_0x176884){while(--_0x176884){_0x3341f9['push'](_0x3341f9['shift']());}};_0x3cd6ea(++_0x495095);}(_0x4950,0x13b));const _0x3cd6=function(_0x3341f9,_0x495095){_0x3341f9=_0x3341f9-0x0;let _0x3cd6ea=_0x4950[_0x3341f9];return _0x3cd6ea;};import{Plugin as _0x3cb174}from'ckeditor5/src/core';export default class yt extends _0x3cb174{['afterInit'](){const _0x372774=this['editor'];_0x372774['plugins'][_0x3cd6('0x1')](_0x3cd6('0x2'))&&_0x372774['plugins']['get'](_0x3cd6('0x0'))['enableCommand']('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x332e=['schema','differ','element','end','from','TrackChangesEditing','removeMarker','model','_descriptionFactory','editor','ELEMENT_TITLE','suggestion','start','forward','afterInit','locale','get','Title','nodeBefore','isTouching','getChangedMarkers','newRange','getNearestSelectionRange','isEqual','plugins','document','updateMarker','title-content'];(function(_0x195b2d,_0x332ec2){const _0x148270=function(_0x2dd1b1){while(--_0x2dd1b1){_0x195b2d['push'](_0x195b2d['shift']());}};_0x148270(++_0x332ec2);}(_0x332e,0xce));const _0x1482=function(_0x195b2d,_0x332ec2){_0x195b2d=_0x195b2d-0x0;let _0x148270=_0x332e[_0x195b2d];return _0x148270;};import{Plugin as _0x5ddd72}from'ckeditor5/src/core';import{getTranslation as _0x4ffef8}from'../utils/common-translations';export default class St extends _0x5ddd72{[_0x1482('0x4')](){const _0x379d2e=this[_0x1482('0x1b')];if(!_0x379d2e['plugins']['has'](_0x1482('0x7')))return;const _0x46d986=_0x379d2e[_0x1482('0xe')][_0x1482('0x6')](_0x1482('0x17'));_0x46d986[_0x1482('0x1a')]['registerElementLabel'](_0x1482('0x11'),()=>_0x4ffef8(_0x379d2e[_0x1482('0x5')],_0x1482('0x0'))),_0x379d2e['model'][_0x1482('0xf')]['registerPostFixer'](_0x9bd5a5=>{let _0xfc0e29=!0x1;const _0xa28c9c=Array[_0x1482('0x16')](_0x379d2e[_0x1482('0x19')][_0x1482('0xf')][_0x1482('0x13')][_0x1482('0xa')]());for(const {name:_0x51eaee,data:_0x80a7f}of _0xa28c9c){const {group:_0x429cf2}=_0x46d986['_splitMarkerName'](_0x51eaee);if(_0x1482('0x1')!==_0x429cf2||!_0x80a7f[_0x1482('0xb')])continue;const _0x1c5bc2=_0x80a7f[_0x1482('0xb')],_0xb13d4a=_0x1c5bc2['end'][_0x1482('0x8')];if(!_0xb13d4a||!_0xb13d4a['is'](_0x1482('0x14'),'title-content'))continue;if(!_0x1c5bc2[_0x1482('0x2')][_0x1482('0x9')](_0x1c5bc2[_0x1482('0x15')]))continue;const _0x1e895d=_0x379d2e[_0x1482('0x19')][_0x1482('0x12')][_0x1482('0xc')](_0x1c5bc2[_0x1482('0x15')],_0x1482('0x3'));if(_0x1e895d&&_0x1e895d['isCollapsed']){const _0x5d5ed2=_0x9bd5a5['createRange'](_0x1c5bc2[_0x1482('0x2')],_0x1e895d[_0x1482('0x2')]);_0x5d5ed2[_0x1482('0xd')](_0x1c5bc2)||(_0x9bd5a5[_0x1482('0x10')](_0x51eaee,{'range':_0x5d5ed2}),_0xfc0e29=!0x0);}_0xfc0e29||(_0x9bd5a5[_0x1482('0x18')](_0x51eaee),_0xfc0e29=!0x0);}return _0xfc0e29;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49f9=['redo','TrackChangesEditing','undo','get','enableCommand','plugins','editor','has','UndoEditing'];(function(_0x36c05a,_0x49f95c){const _0x58bece=function(_0x3d7469){while(--_0x3d7469){_0x36c05a['push'](_0x36c05a['shift']());}};_0x58bece(++_0x49f95c);}(_0x49f9,0x14a));const _0x58be=function(_0x36c05a,_0x49f95c){_0x36c05a=_0x36c05a-0x0;let _0x58bece=_0x49f9[_0x36c05a];return _0x58bece;};import{Plugin as _0xf5cb7a}from'ckeditor5/src/core';export default class It extends _0xf5cb7a{['afterInit'](){const _0x2bd4d1=this[_0x58be('0x0')],_0x49faf2=_0x2bd4d1['plugins'][_0x58be('0x6')](_0x58be('0x4'));_0x2bd4d1[_0x58be('0x8')][_0x58be('0x1')](_0x58be('0x2'))&&(_0x49faf2[_0x58be('0x7')](_0x58be('0x5')),_0x49faf2[_0x58be('0x7')](_0x58be('0x3')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ff3=['TrackChangesEditing','isContent','ck-suggestion-marker-','toViewElement','createRangeOn','type','ck-suggestion-marker--active','model','test','nextSibling','activeMarkers','writer','item','isBlock','getAttribute','isAtEnd','mapper','includes','consumable','element','start','markerRange','previousPosition','listItem','getItems','name','listIndent','span','parent','toViewPosition','getCustomProperty','bindElementToMarker','addClass','markerName','schema','insert','createUIElement'];(function(_0x2ac673,_0x1ff372){const _0x43f505=function(_0x184d7f){while(--_0x184d7f){_0x2ac673['push'](_0x2ac673['shift']());}};_0x43f505(++_0x1ff372);}(_0x1ff3,0x117));const _0x43f5=function(_0x2ac673,_0x1ff372){_0x2ac673=_0x2ac673-0x0;let _0x43f505=_0x1ff3[_0x2ac673];return _0x43f505;};export function getRangesWithAttribute(_0x3040fe,_0x3a974f,_0x4a2257){const _0x2960e7=[];for(const _0x4c8c99 of _0x3a974f[_0x43f5('0x4')]())_0x4c8c99['hasAttribute'](_0x3040fe)&&_0x2960e7['push'](_0x4a2257[_0x43f5('0x15')](_0x4c8c99));return _0x2960e7;}export function getElementsAffectedByListItemRename(_0x846cdf){const _0x38510a=[];if(_0x846cdf['is']('element',_0x43f5('0x3'))){let _0x3965e0=_0x846cdf[_0x43f5('0x1a')];for(;_0x3965e0&&_0x3965e0['is'](_0x43f5('0x24'),_0x43f5('0x3'))&&_0x3965e0[_0x43f5('0x1f')](_0x43f5('0x6'))>0x0;)_0x38510a['push'](_0x3965e0),_0x3965e0=_0x3965e0[_0x43f5('0x1a')];}return _0x38510a;}export function downcastSplitMergeMarker(_0x3716eb,_0x314283,{showActiveMarker:_0x31cd62=!0x0}={}){const _0x135d4a=_0x3716eb['plugins']['get'](_0x43f5('0x11'));return(_0x2bb6b7,_0x131be7,_0x352457)=>{if(!_0x352457[_0x43f5('0x23')][_0x43f5('0x19')](_0x131be7[_0x43f5('0x1')],_0x2bb6b7[_0x43f5('0x5')]))return;const _0x415a17=_0x131be7[_0x43f5('0x1')]['getWalker'](),_0x3c656c=_0x131be7['markerRange'][_0x43f5('0x0')],_0x126d69=_0x3716eb[_0x43f5('0x18')][_0x43f5('0xe')];let _0x51894a=null,_0xd17870=null,_0x1ef01d=!0x1,_0x4dda04=!0x1;for(const _0x39352a of _0x415a17){const _0x1f4588=_0x39352a[_0x43f5('0x1d')];_0x1ef01d=_0x1ef01d||_0x126d69[_0x43f5('0x12')](_0x1f4588);const _0x369415=_0x352457[_0x43f5('0x21')][_0x43f5('0x14')](_0x1f4588);if(_0x369415&&_0x369415[_0x43f5('0xa')]('addHighlight'))return;'elementEnd'==_0x39352a[_0x43f5('0x16')]&&(_0x126d69[_0x43f5('0x1e')](_0x1f4588)&&!_0x126d69['isLimit'](_0x1f4588)&&(_0x1f4588['nextSibling']||_0x3c656c[_0x43f5('0x20')]?_0x51894a&&_0x51894a[_0x43f5('0x8')]==_0x1f4588||(_0x51894a=_0x1f4588,_0x5cde1a(_0x39352a['previousPosition']),_0x4dda04=!0x0):_0xd17870=_0xd17870||_0x39352a[_0x43f5('0x2')]));}function _0x5cde1a(_0x9b74f0){const _0x5a9b48=_0x352457[_0x43f5('0x1c')][_0x43f5('0x10')](_0x43f5('0x7'),{'class':_0x43f5('0x13')+_0x314283}),_0x43fa8e=_0x352457['mapper'][_0x43f5('0x9')](_0x9b74f0);_0x31cd62&&_0x135d4a[_0x43f5('0x1b')][_0x43f5('0x22')](_0x131be7[_0x43f5('0xd')])&&_0x352457[_0x43f5('0x1c')][_0x43f5('0xc')](_0x43f5('0x17'),_0x5a9b48),_0x352457['writer'][_0x43f5('0xf')](_0x43fa8e,_0x5a9b48),_0x352457[_0x43f5('0x21')][_0x43f5('0xb')](_0x5a9b48,_0x131be7[_0x43f5('0xd')]);}_0x1ef01d||_0x4dda04||!_0xd17870||_0x5cde1a(_0xd17870);};}
|