@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240122.0 → 0.0.0-nightly-20240124.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/casechange.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/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/imagestyle.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/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.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 _0x29e3=['register','editing','move','getColumnIndexes','dataDowncast','updateMarker','subType','createElement','content','add','position','plugins','value','getShiftedBy','oldRange','markerToHighlight','suggestion','getRange','nodeAfter','TableClipboard','set','getChild','discard','last','tablePaste','nextSibling','TableUtils','formatBlock','reduce','every','getAttributes','suggestionLoaded','_getCoordsForCells','has','document','from','_isForcedDefaultExecutionBlock','forceDefaultExecution','registerDescriptionCallback','columns','getSuggestionCallback','getColumns','suggestionUnloaded','_replaceTableSlotCell','deletionRanges','getSuggestions','editingDowncast','suggestion-td','tableCellHorizontalAlignment','table','tableCellBackgroundColor','isEqual','getContainedElement','endColumn','createRangeIn','tablePasteRow','registerPostFixer','insertRows','some','conversion','setAttribute','return','createRange','batch','listenTo','tablePasteChainId','model','markMultiRangeInsertion','map','getRows','newRange','wrap','attributes','root','accept','view','removeMarker','registerCustomCallback','redo','element','insert','createPositionBefore','getSelectionAffectedTableCells','*Replace\x20table\x20cells*','tableCellVerticalAlignment','_splitMarkerName','tableCellSuggestion','_suggestionFactory','startsWith','filter','next','createRangeOn','$graveyard','fill','insertColumns','markMultiRangeBlockFormat','schema','setAttributes','markerName','fromEntries','selection','getSuggestion','removeColumns','previous','activeMarkers','endRow','find','tableCellBorderWidth','join','push','author','getChildren','markers','deletion','tableCell','afterInit','_tablePostFixingSubtypes','editor','removeRows','change','tablePasteColumn','options','ck-suggestion-marker-insertion','getChangedMarkers','insertion','rootName','markerAttributes','column','_createdBatches','isEmpty','isInContent','Users','findAncestor','remove','columnInsertionIndexes','insertContent','getChanges','stop','trackChanges','high','suggestion:formatBlock:tablePasteCell','unwrap','first','columnInsertionRanges','length','low','getMarkers','getAllAdjacentSuggestions','tableCellBorderStyle','getRanges','markMultiRangeDeletion','get','elementToElement','differ','showSuggestionHighlights','paragraph','tablePasteCell','tableCellPadding','includes','rowInsertionIndexes','locale','for','hasSuggestion','commands','rowInsertionRanges','end','createTableWalker','ck-suggestion-marker--active','type'];(function(_0x42b0f0,_0x29e3ac){const _0x46125f=function(_0xddeff2){while(--_0xddeff2){_0x42b0f0['push'](_0x42b0f0['shift']());}};_0x46125f(++_0x29e3ac);}(_0x29e3,0x17c));const _0x4612=function(_0x42b0f0,_0x29e3ac){_0x42b0f0=_0x42b0f0-0x0;let _0x46125f=_0x29e3[_0x42b0f0];return _0x46125f;};import{getTranslation as _0x46ec2a}from'../utils/common-translations.js';import{Plugin as _0x492425}from'ckeditor5/src/core.js';import{uid as _0xc35a1e,priorities as _0x17ac97}from'ckeditor5/src/utils.js';import _0x326d69 from'./table.js';const fe=[_0x4612('0x41'),'tableCellBorderColor',_0x4612('0x6a'),_0x4612('0x6'),_0x4612('0x2a'),_0x4612('0x8'),_0x4612('0x73')],be=Object['fromEntries'](fe[_0x4612('0x1a')](_0x1173ad=>[_0x1173ad,null]));export default class At extends _0x492425{static get['requires'](){return[_0x326d69];}[_0x4612('0x49')](){const _0x2002ed=this[_0x4612('0x4b')];if(!_0x2002ed[_0x4612('0x8a')][_0x4612('0xa0')]('TableClipboard'))return;const _0x15740b=_0x2002ed[_0x4612('0x8a')]['get']('TrackChangesEditing'),_0x41bc65=_0x2002ed['plugins'][_0x4612('0x6d')](_0x4612('0x99')),_0x1ce64f=_0x2002ed[_0x4612('0x8a')][_0x4612('0x6d')](_0x326d69),_0x99957d=_0x2002ed[_0x4612('0x8a')][_0x4612('0x6d')](_0x4612('0x92'));_0x1ce64f[_0x4612('0x4a')][_0x4612('0x43')](_0x4612('0xd'),_0x4612('0x4e')),_0x2002ed['model'][_0x4612('0x36')][_0x4612('0x7f')](_0x4612('0x2c'),{'allowIn':_0x4612('0x48'),'allowContentOf':_0x4612('0x48'),'isLimit':!0x0}),_0x2002ed[_0x4612('0x11')][_0x4612('0x6e')]({'model':_0x4612('0x2c'),'view':_0x4612('0x5')});let _0x4dbfbd=null;_0x2002ed[_0x4612('0x18')]['on']('insertContent',(_0x2bf7d6,_0x31851b)=>{const [_0x5dc946,_0x436b0b]=_0x31851b,_0x2c530f=_0x31851b[_0x31851b[_0x4612('0x66')]-0x1];_0x2c530f&&_0x2c530f[_0x4612('0xa4')]||_0x15740b[_0x4612('0xa3')]||this['editor'][_0x4612('0x79')][_0x4612('0x6d')](_0x4612('0x60'))[_0x4612('0x8b')]&&function(_0x3fbccb,_0x111691,_0x181d1f,_0x47fb9a,_0x4b0d49){if(_0x111691&&!_0x111691['is']('documentSelection'))return!0x1;const _0x41d9ea=_0x4b0d49['getTableIfOnlyTableInContent'](_0x3fbccb,_0x181d1f);if(!_0x41d9ea||!de(_0x41d9ea,void 0x0,_0x47fb9a))return!0x1;const _0x18f0b8=_0x47fb9a[_0x4612('0x28')](_0x181d1f[_0x4612('0xa1')][_0x4612('0x3a')]);if(!_0x18f0b8[_0x4612('0x66')])return!0x1;const _0x495de4=_0x18f0b8[0x0][_0x4612('0x5a')](_0x4612('0x7')),_0x5a5e3a=_0x47fb9a['getRowIndexes'](_0x18f0b8),_0x38c2e5=_0x47fb9a[_0x4612('0x82')](_0x18f0b8),_0x185aab={'startRow':_0x5a5e3a['first'],'endRow':_0x5a5e3a[_0x4612('0x96')],'startColumn':_0x38c2e5[_0x4612('0x64')],'endColumn':_0x38c2e5['last']};return 0x1==_0x18f0b8[_0x4612('0x66')]&&(_0x185aab[_0x4612('0x3f')]+=_0x47fb9a[_0x4612('0x1b')](_0x41d9ea)-0x1,_0x185aab[_0x4612('0xb')]+=_0x47fb9a[_0x4612('0xa8')](_0x41d9ea)-0x1),de(_0x495de4,_0x185aab,_0x47fb9a);}(_0x5dc946,_0x436b0b,_0x2002ed[_0x4612('0x18')],_0x41bc65,_0x99957d)&&(_0x2bf7d6['stop'](),_0x4dbfbd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2002ed[_0x4612('0x18')][_0x4612('0x4d')](()=>{_0x2002ed['model'][_0x4612('0x5d')](_0x31851b[0x0],_0x31851b[0x1],_0x31851b[0x2],{'forceDefaultExecution':!0x0});const _0x292fbc=_0xc35a1e(),{rowInsertionRanges:_0x3e27c6,columnInsertionRanges:_0x19548f,insertionRanges:_0x4361ae,deletionRanges:_0x32417b,cells:_0x3f4fa6}=_0x4dbfbd;_0x3e27c6[_0x4612('0x66')]&&_0x15740b[_0x4612('0x19')](_0x3e27c6,_0x4612('0xd'),{'tablePasteChainId':_0x292fbc}),_0x19548f[_0x4612('0x66')]&&_0x15740b[_0x4612('0x19')](_0x19548f,'tablePasteColumn',{'tablePasteChainId':_0x292fbc}),_0x4361ae[_0x4612('0x66')]&&_0x15740b[_0x4612('0x19')](_0x4361ae,'tablePaste',{'tablePasteChainId':_0x292fbc,'skipNestingCheck':!0x0}),_0x32417b[_0x4612('0x66')]&&_0x15740b[_0x4612('0x6c')](_0x32417b,_0x4612('0x97'),{'tablePasteChainId':_0x292fbc,'skipNestingCheck':!0x0});const _0xdc01b9=_0x15740b[_0x4612('0x35')](_0x3f4fa6[_0x4612('0x1a')](({element:_0x53f3d5})=>_0x53f3d5),{'formatGroupId':_0xc35a1e()},[],_0x4612('0x72'),{'tablePasteChainId':_0x292fbc});if(_0xdc01b9){const _0xcae93e=_0xdc01b9[_0x4612('0x68')](),_0x4e5982=[];for(const {element:_0x333b34,attributes:_0x304939}of _0x3f4fa6){if(!_0x304939)continue;const _0x52b4c3=_0x2002ed[_0x4612('0x18')]['createRangeOn'](_0x333b34),_0x2b4bdb=_0xcae93e['find'](_0xdbda2b=>_0xdbda2b['getRange']()['isEqual'](_0x52b4c3));_0x2b4bdb&&_0x4e5982['push']([_0x2b4bdb['name'],_0x304939]);}_0x4e5982[_0x4612('0x66')]&&_0xdc01b9[_0x4612('0x12')]('markerAttributes',Object[_0x4612('0x39')](_0x4e5982));}_0x4dbfbd=null;}));},{'priority':_0x17ac97[_0x4612('0x61')]+0xa}),_0x2002ed[_0x4612('0x8a')][_0x4612('0x6d')](_0x4612('0x92'))['on'](_0x4612('0x1'),(_0x2645cd,_0xb8a6f2)=>{const [_0x3786f1,_0x99761e,,_0x256cff]=_0xb8a6f2;if(!_0x4dbfbd)return;_0x2645cd[_0x4612('0x5f')]();const _0x40f740=_0x3786f1['cell'],_0x512b06=_0x99761e,_0x28aa75=ge(_0x40f740),_0x3788c8=ge(_0x512b06);_0x2645cd[_0x4612('0x13')]=_0x40f740;let _0x4f0473=null,_0x3406bd=null;if(_0x3788c8||_0x28aa75){if(_0x28aa75&&!_0x3788c8){_0x256cff[_0x4612('0x5b')](_0x40f740['getChild'](0x0));for(const _0x1c3b6d of Array[_0x4612('0xa2')](_0x512b06[_0x4612('0x45')]()))_0x256cff[_0x4612('0x26')](_0x1c3b6d,_0x40f740,_0x4612('0x7b'));const _0x2c3198=_0x4dbfbd[_0x4612('0x75')][_0x4612('0x74')](_0x3786f1['row']),_0x2e568e=_0x4dbfbd['columnInsertionIndexes']['includes'](_0x3786f1[_0x4612('0x55')]);_0x2c3198||_0x2e568e||(_0x4f0473=_0x256cff['createRangeIn'](_0x40f740));}else _0x3788c8&&!_0x28aa75&&(_0x3406bd=_0x256cff['createRangeIn'](_0x40f740));}else{const _0x20d1ff=_0x256cff['createElement']('tableCellSuggestion'),_0x205cc7=_0x256cff[_0x4612('0x86')]('tableCellSuggestion');_0x256cff[_0x4612('0x1d')](_0x256cff[_0x4612('0xc')](_0x40f740),_0x205cc7),_0x256cff[_0x4612('0x26')](_0x20d1ff,_0x40f740,0x0);for(const _0x2ac61f of Array[_0x4612('0xa2')](_0x512b06['getChildren']()))_0x256cff[_0x4612('0x26')](_0x2ac61f,_0x20d1ff,_0x4612('0x7b'));_0x4f0473=_0x256cff[_0x4612('0x31')](_0x20d1ff),_0x3406bd=_0x256cff['createRangeOn'](_0x205cc7);}const _0x2c185d=Array[_0x4612('0xa2')](_0x512b06[_0x4612('0x9d')]())[_0x4612('0x2f')](([_0x2dde47])=>fe['includes'](_0x2dde47));_0x4dbfbd['cells'][_0x4612('0x43')]({'element':_0x40f740,'attributes':_0x2c185d[_0x4612('0x66')]?Object[_0x4612('0x39')](_0x2c185d):null}),_0x4f0473&&_0x4dbfbd['insertionRanges'][_0x4612('0x43')](_0x4f0473),_0x3406bd&&_0x4dbfbd[_0x4612('0x2')]['push'](_0x3406bd);},{'priority':'high'}),_0x41bc65['on'](_0x4612('0x34'),(_0x31f9b2,_0x27df50)=>{const [_0x9b7092,_0x34b8ba={}]=_0x27df50;if(!_0x4dbfbd)return;const _0x2630af=_0x34b8ba['at']||0x0,_0x5251da=_0x34b8ba[_0x4612('0xa6')]||0x1;_0x4dbfbd[_0x4612('0x5c')]=new Array(_0x5251da)['fill'](_0x2630af)[_0x4612('0x1a')]((_0x233d1f,_0x378c36)=>_0x233d1f+_0x378c36);for(const {cell:_0x2ab4db}of _0x41bc65[_0x4612('0x7c')](_0x9b7092,{'startColumn':_0x2630af,'endColumn':_0x2630af+_0x5251da-0x1}))_0x4dbfbd[_0x4612('0x65')][_0x4612('0x43')](_0x2002ed['model'][_0x4612('0x31')](_0x2ab4db));},{'priority':_0x4612('0x67')}),_0x41bc65['on'](_0x4612('0xf'),(_0x5128e0,_0x439961)=>{const [_0x12e571,_0x1188d1={}]=_0x439961;if(!_0x4dbfbd)return;const _0x4eabe1=_0x1188d1['at']||0x0,_0x35f6a3=_0x1188d1['rows']||0x1;_0x4dbfbd[_0x4612('0x75')]=new Array(_0x35f6a3)[_0x4612('0x33')](_0x4eabe1)[_0x4612('0x1a')]((_0x2e0b98,_0x470e37)=>_0x2e0b98+_0x470e37);for(const {cell:_0x3dfb7b}of _0x41bc65[_0x4612('0x7c')](_0x12e571,{'startRow':_0x4eabe1,'endRow':_0x4eabe1+_0x35f6a3-0x1}))_0x4dbfbd[_0x4612('0x7a')][_0x4612('0x43')](_0x2002ed[_0x4612('0x18')][_0x4612('0x31')](_0x3dfb7b));},{'priority':_0x4612('0x67')}),_0x15740b['_descriptionFactory'][_0x4612('0xa5')](_0x34a2f9=>{if(_0x34a2f9[_0x4612('0x85')]&&_0x34a2f9[_0x4612('0x85')][_0x4612('0x2e')](_0x4612('0x97')))return _0x34a2f9[_0x4612('0x3d')]?{}:{'type':_0x4612('0x52'),'content':_0x46ec2a(_0x2002ed[_0x4612('0x76')],_0x4612('0x29'))};});const _0x2758f3=()=>!0x1;for(const _0xc7f359 of['tablePaste',_0x4612('0x4e'),_0x4612('0xd'),'tablePasteCell'])_0x15740b[_0x4612('0x2d')][_0x4612('0x23')](_0x4612('0x52'),_0xc7f359,'join',_0x2758f3),_0x15740b[_0x4612('0x2d')]['registerCustomCallback']('deletion',_0xc7f359,'join',_0x2758f3),_0x15740b['_suggestionFactory'][_0x4612('0x23')](_0x4612('0x9a'),_0xc7f359,_0x4612('0x42'),_0x2758f3);_0x15740b[_0x4612('0x2d')][_0x4612('0x23')]('formatBlock','tablePasteCell','discard',_0x2758f3),_0x15740b[_0x4612('0x2d')][_0x4612('0x23')](_0x4612('0x9a'),_0x4612('0x72'),_0x4612('0x20'),(_0x4917e4,_0x568b3b,_0x2f3b24)=>{const _0x1b211e=_0x4917e4['map'](_0x282b85=>_0x282b85['getContainedElement']())['filter'](_0x5b82e2=>_0x5b82e2),_0x763e7=new Map(_0x1b211e['map'](_0x542d6e=>[_0x542d6e,null]));if(_0x4dbfbd)for(const {element:_0x24cd3f,attributes:_0x41f3a5}of _0x4dbfbd['cells'])_0x41f3a5&&_0x763e7[_0x4612('0x93')](_0x24cd3f,_0x41f3a5);else{if(_0x2f3b24&&_0x2f3b24[_0x4612('0x54')])for(const [_0x50ece1,_0x41c0a0]of Object['entries'](_0x2f3b24['markerAttributes'])){const _0x1060bc=_0x2002ed['model'][_0x4612('0x46')][_0x4612('0x6d')](_0x50ece1),_0x39f328=_0x1060bc?_0x1060bc[_0x4612('0x90')]()['getContainedElement']():null;_0x39f328&&_0x763e7['set'](_0x39f328,_0x41c0a0);}}_0x2002ed['model'][_0x4612('0x4d')](_0x3e5997=>{for(const [_0x32f808,_0x279be6]of _0x763e7)_0x3e5997[_0x4612('0x37')]({...be,..._0x279be6},_0x32f808);});});const _0x11ae66=(_0x20074e,_0x23b9b5)=>{_0x15740b[_0x4612('0x2d')][_0x4612('0x23')](_0x20074e,'tablePaste',_0x23b9b5,(_0x441379,_0x3bef7c,_0x24ff55)=>{_0x2002ed[_0x4612('0x18')]['change'](_0x104c44=>{const _0x136f2d=[];for(const _0x491997 of _0x441379){const _0x48591f=_0x491997['start'][_0x4612('0x91')];_0x48591f['is'](_0x4612('0x25'),'tableCellSuggestion')&&_0x136f2d['push'](_0x48591f);}_0x15740b['_suggestionFactory'][_0x4612('0xa7')](_0x20074e,null,_0x23b9b5)(_0x441379,_0x3bef7c,_0x24ff55);for(const _0x5236d0 of _0x136f2d)_0x4612('0x32')!=_0x5236d0[_0x4612('0x1f')][_0x4612('0x53')]&&_0x104c44[_0x4612('0x63')](_0x5236d0);});});};_0x11ae66(_0x4612('0x52'),_0x4612('0x20')),_0x11ae66(_0x4612('0x52'),'discard'),_0x11ae66(_0x4612('0x47'),'accept'),_0x11ae66(_0x4612('0x47'),_0x4612('0x95')),_0x15740b[_0x4612('0x2d')][_0x4612('0x23')](_0x4612('0x52'),'tablePasteRow',_0x4612('0x95'),_0x29ce6c=>{const _0x57f669=_0x29ce6c[_0x4612('0x1a')](_0x91720d=>_0x91720d[_0x4612('0xa')]()),_0x4ddc08=_0x57f669[0x0][_0x4612('0x5a')]('table'),{minRow:_0x1402de,maxRow:_0x505af1}=_0x1ce64f[_0x4612('0x9f')](_0x57f669);_0x41bc65[_0x4612('0x4c')](_0x4ddc08,{'at':_0x1402de,'rows':_0x505af1-_0x1402de+0x1});}),_0x15740b[_0x4612('0x2d')][_0x4612('0x23')]('insertion',_0x4612('0x4e'),_0x4612('0x95'),_0x399f01=>{const _0xdf4b2a=_0x399f01[_0x4612('0x1a')](_0x5a5e7=>_0x5a5e7[_0x4612('0xa')]()),_0x515720=_0xdf4b2a[0x0]['findAncestor']('table'),{minColumn:_0xf8e6b8,maxColumn:_0x203481}=_0x1ce64f['_getCoordsForCells'](_0xdf4b2a);_0x41bc65[_0x4612('0x3c')](_0x515720,{'at':_0xf8e6b8,'columns':_0x203481-_0xf8e6b8+0x1});});const _0x37a682=(_0x2acd54,_0x2af946)=>{if(!_0x2af946[_0x4612('0x85')]||!_0x2af946['subType'][_0x4612('0x2e')](_0x4612('0x97')))return;const _0x30dd14=_0x2af946['attributes'][_0x4612('0x17')],_0x205320=_0x15740b[_0x4612('0x3')]()[_0x4612('0x2f')](_0x163afa=>_0x163afa[_0x4612('0x58')]&&_0x163afa[_0x4612('0x1e')]&&_0x163afa[_0x4612('0x1e')]['tablePasteChainId']==_0x30dd14);_0x205320['length']&&_0x2af946['getAllAdjacentSuggestions']()[_0x4612('0x66')]!=_0x205320[_0x4612('0x66')]&&_0x205320[_0x4612('0x9b')]((_0xce8e1c,_0x1e2870)=>(_0xce8e1c[_0x4612('0x30')]=_0x1e2870,_0x1e2870[_0x4612('0x3d')]=_0xce8e1c,_0x1e2870));};function _0x5f3b45(_0x3c6bf3,_0x48a12b=!0x0){const {id:_0x1a051c}=_0x15740b[_0x4612('0x2b')](_0x3c6bf3['markerName']),_0x4d9ae7=['ck-suggestion-marker',_0x4612('0x50')],_0x28f11b=_0x15740b[_0x4612('0x3e')][_0x4612('0x74')](_0x3c6bf3[_0x4612('0x38')]);return _0x28f11b&&_0x4d9ae7[_0x4612('0x43')](_0x4612('0x7d')),{'classes':_0x4d9ae7,'attributes':{'data-suggestion':_0x1a051c},'priority':_0x28f11b&&_0x48a12b?0xbc2:0xbb8};}_0x15740b['on'](_0x4612('0x9e'),_0x37a682,{'priority':_0x4612('0x61')}),_0x15740b['on'](_0x4612('0x0'),_0x37a682,{'priority':_0x4612('0x61')}),_0x2002ed['model'][_0x4612('0xa1')][_0x4612('0xe')](()=>{let _0x5ecdaa=!0x1;const _0x7dee2e=Array[_0x4612('0xa2')](_0x2002ed['model'][_0x4612('0xa1')][_0x4612('0x6f')][_0x4612('0x51')]());for(const {name:_0x461819,data:_0x338d50}of _0x7dee2e){const {group:_0x48746f,type:_0x21d671,id:_0x4c7a02}=_0x15740b[_0x4612('0x2b')](_0x461819);if(_0x4612('0x8f')!=_0x48746f||_0x4612('0x47')!=_0x21d671||_0x338d50[_0x4612('0x8d')])continue;if(!_0x15740b[_0x4612('0x78')](_0x4c7a02))continue;const _0x23c198=_0x15740b[_0x4612('0x3b')](_0x4c7a02)['getRanges'](),_0x210bf1=_0x2002ed[_0x4612('0x8a')][_0x4612('0x6d')](_0x4612('0x59'))['me'];for(const _0x5a8d61 of _0x15740b['getSuggestions']()){if(!_0x5a8d61['isInContent']||_0x5a8d61[_0x4612('0x44')]!=_0x210bf1)continue;if(_0x4612('0x9a')!=_0x5a8d61[_0x4612('0x7e')]||_0x4612('0x72')!=_0x5a8d61[_0x4612('0x85')])continue;if(_0x5a8d61[_0x4612('0x6b')]()[_0x4612('0x9c')](_0x50ed93=>_0x23c198[_0x4612('0x10')](_0x1a3657=>_0x1a3657['containsRange'](_0x50ed93,!0x0))))for(const _0x472cfe of _0x5a8d61[_0x4612('0x69')]())_0x472cfe[_0x4612('0x58')]&&(_0x472cfe[_0x4612('0x95')](),_0x5ecdaa=!0x0);}}return _0x5ecdaa;}),_0x2002ed[_0x4612('0x18')][_0x4612('0xa1')]['registerPostFixer'](_0x4e66d6=>{const _0x22cc3a=_0x2002ed[_0x4612('0x79')][_0x4612('0x6d')](_0x4612('0x24'));if(!_0x22cc3a||!_0x22cc3a[_0x4612('0x56')][_0x4612('0xa0')](_0x4e66d6[_0x4612('0x15')]))return!0x1;let _0xb5bfb8=!0x1;const _0x33baa3=_0x2002ed[_0x4612('0x8a')][_0x4612('0x6d')](_0x4612('0x59'))['me'],_0xefa359=_0x2002ed[_0x4612('0x18')][_0x4612('0xa1')][_0x4612('0x6f')][_0x4612('0x5e')](),_0x87b0b3=Array[_0x4612('0xa2')](_0x2002ed[_0x4612('0x18')][_0x4612('0xa1')]['differ'][_0x4612('0x51')]())[_0x4612('0x2f')](({name:_0x36906c,data:_0x445c25})=>{const {group:_0x397e96,subType:_0x59e208,authorId:_0x364e49}=_0x15740b[_0x4612('0x2b')](_0x36906c);return'suggestion'==_0x397e96&&_0x4612('0x97')==_0x59e208&&_0x364e49==_0x33baa3['id']&&!_0x445c25[_0x4612('0x8d')];});for(const _0x53852f of _0xefa359){if(_0x4612('0x26')!=_0x53852f['type']||_0x4612('0x2c')!=_0x53852f['name']||0x1!=_0x53852f[_0x4612('0x66')])continue;const _0x1c9ad1=_0x4e66d6[_0x4612('0x14')](_0x53852f[_0x4612('0x89')],_0x53852f[_0x4612('0x89')][_0x4612('0x8c')](0x1));if(!_0x87b0b3[_0x4612('0x40')](({data:_0x4e68e8})=>_0x4e68e8[_0x4612('0x1c')][_0x4612('0x9')](_0x1c9ad1)))for(const {name:_0x2f4b71,data:_0x234b9a}of _0x87b0b3)if(_0x1c9ad1['containsRange'](_0x234b9a[_0x4612('0x1c')])){_0x4e66d6[_0x4612('0x84')](_0x2f4b71,{'range':_0x1c9ad1}),_0xb5bfb8=!0x0;break;}}return _0xb5bfb8;}),_0x2002ed[_0x4612('0x18')][_0x4612('0xa1')]['registerPostFixer'](_0x3b56b4=>{let _0xb8ed67=!0x1;const _0x25bce1=_0x2002ed[_0x4612('0x8a')]['get'](_0x4612('0x59'))['me'],_0x1ddcb7=_0x15740b[_0x4612('0x3')]()['filter'](_0x349218=>_0x349218[_0x4612('0x58')]&&_0x349218[_0x4612('0x44')]==_0x25bce1),_0x5744ea=new Set(),_0x598dc2=new Set();for(const _0x47d9f2 of _0x1ddcb7)if(_0x4612('0x97')==_0x47d9f2[_0x4612('0x85')])for(const _0x37b5d7 of _0x47d9f2[_0x4612('0x68')]()){const _0x14e775=_0x37b5d7[_0x4612('0x90')]()[_0x4612('0xa')]();if(_0x14e775){if(_0x14e775['is'](_0x4612('0x25'),_0x4612('0x2c'))&&ge(_0x14e775)){_0x47d9f2[_0x4612('0x22')](_0x37b5d7['name']),_0x5744ea['add'](_0x14e775),_0xb8ed67=!0x0;const _0x18b1f5=_0x14e775[_0x4612('0x98')],_0x1c6b4d=_0x14e775['previousSibling'],_0x5e0fb7=_0x18b1f5&&_0x18b1f5['is'](_0x4612('0x25'),_0x4612('0x2c')),_0x18afec=_0x1c6b4d&&_0x1c6b4d['is'](_0x4612('0x25'),_0x4612('0x2c'));_0x5e0fb7&&!_0x5744ea['has'](_0x18b1f5)&&_0x598dc2[_0x4612('0x88')](_0x18b1f5),_0x18afec&&!_0x5744ea[_0x4612('0xa0')](_0x1c6b4d)&&_0x598dc2[_0x4612('0x88')](_0x1c6b4d);}else _0x14e775['is'](_0x4612('0x25'),_0x4612('0x71'))&&_0x14e775['isEmpty']&&(_0x47d9f2[_0x4612('0x22')](_0x37b5d7['name']),_0xb8ed67=!0x0);}}else{if('tablePasteCell'==_0x47d9f2[_0x4612('0x85')]){if(!_0x47d9f2[_0x4612('0x1e')]||!_0x47d9f2[_0x4612('0x1e')][_0x4612('0x17')])continue;const _0x45c970=_0x47d9f2['attributes']['markerAttributes'];if(_0x45c970&&Object['keys'](_0x45c970)[_0x4612('0x66')])continue;const _0x27d1a3=_0x47d9f2[_0x4612('0x1e')]['tablePasteChainId'];let _0x3255b7=!0x0,_0x499188=!0x0;for(const _0x18854d of _0x1ddcb7)if(_0x18854d['subType']&&_0x18854d[_0x4612('0x85')][_0x4612('0x2e')](_0x4612('0x97'))){if(!_0x18854d[_0x4612('0x1e')][_0x4612('0x17')]){_0x499188=!0x1;break;}if(_0x18854d['id']!=_0x47d9f2['id']&&_0x18854d[_0x4612('0x1e')][_0x4612('0x17')]==_0x27d1a3){_0x3255b7=!0x1;break;}}_0x499188&&_0x3255b7&&(_0x47d9f2['removeMarkers'](),_0xb8ed67=!0x0);}}for(const _0x3a6a67 of _0x5744ea)_0x3b56b4[_0x4612('0x5b')](_0x3a6a67);for(const _0x4878d5 of _0x598dc2)_0x3b56b4['unwrap'](_0x4878d5);return _0xb8ed67;}),_0x2002ed[_0x4612('0x11')][_0x4612('0x77')](_0x4612('0x4'))[_0x4612('0x8e')]({'model':_0x4612('0x62'),'view':(_0x2b66b9,_0x5ee30b)=>_0x5f3b45(_0x2b66b9),'converterPriority':_0x4612('0x61')}),_0x2002ed['conversion'][_0x4612('0x77')](_0x4612('0x83'))[_0x4612('0x8e')]({'model':_0x4612('0x62'),'view':(_0xa4e7b2,_0x575d44)=>_0x575d44[_0x4612('0x4f')][_0x4612('0x70')]?_0x5f3b45(_0xa4e7b2,!0x1):null,'converterPriority':_0x4612('0x61')});const _0xa8b0db=_0x2002ed[_0x4612('0x80')][_0x4612('0x21')];this[_0x4612('0x16')](_0xa8b0db[_0x4612('0xa1')],'clipboardOutput',(_0x15cd3f,_0x4273fa)=>{const _0x448a48=[];for(const _0x409b22 of _0xa8b0db[_0x4612('0xc')](_0x4273fa[_0x4612('0x87')])['getItems']())_0x409b22['is'](_0x4612('0x25'),_0x4612('0x5'))&&_0x448a48[_0x4612('0x43')](_0x409b22);_0xa8b0db[_0x4612('0x4d')](_0x41a61a=>{for(const _0x3bf8b7 of _0x448a48)_0x41a61a[_0x4612('0x81')](_0x41a61a['createRangeIn'](_0x3bf8b7),_0x41a61a[_0x4612('0x27')](_0x3bf8b7)),_0x41a61a[_0x4612('0x5b')](_0x3bf8b7);});});}}function ge(_0x43e5f9){if(_0x43e5f9['isEmpty'])return!0x0;const _0x558e54=_0x43e5f9[_0x4612('0x94')](0x0);return _0x558e54['is']('element',_0x4612('0x71'))&&_0x558e54[_0x4612('0x57')];}function de(_0x4f4eda,_0x4ebdd6={},_0x404664){for(const {isAnchor:_0x2685ef,cellHeight:_0x3d9f5b,cellWidth:_0x435bde}of _0x404664[_0x4612('0x7c')](_0x4f4eda,{'includeAllSlots':!0x0,..._0x4ebdd6}))if(!_0x2685ef||0x1!=_0x3d9f5b||0x1!=_0x435bde)return!0x1;return!0x0;}
|
|
23
|
+
const _0x1559=['register','getRanges','suggestion:formatBlock:tablePasteCell','removeRows','name','redo','getSuggestion','locale','Users','model','row','rowInsertionIndexes','suggestion','getColumnIndexes','createRangeOn','getContainedElement','TrackChangesEditing','set','tablePasteRow','discard','nodeAfter','getShiftedBy','isEqual','tableCellBorderColor','TableClipboard','newRange','formatBlock','fill','position','options','_suggestionFactory','requires','markerAttributes','plugins','includes','view','TableUtils','accept','tableCellHorizontalAlignment','for','dataDowncast','tableCellPadding','filter','_splitMarkerName','showSuggestionHighlights','getSelectionAffectedTableCells','getRowIndexes','markerToHighlight','tableCellBackgroundColor','conversion','differ','getTableIfOnlyTableInContent','isEmpty','getAllAdjacentSuggestions','content','keys','document','unwrap','some','attributes','insertContent','createPositionBefore','ck-suggestion-marker--active','clipboardOutput','tableCell','editor','low','change','batch','findAncestor','join','registerPostFixer','isInContent','getRange','tablePaste','getSuggestions','getColumns','getAttributes','trackChanges','documentSelection','add','deletion','selection','*Replace\x20table\x20cells*','move','markerName','markers','remove','getMarkers','start','getChangedMarkers','schema','first','markMultiRangeInsertion','subType','element','find','tableCellBorderStyle','removeMarker','rowInsertionRanges','columns','get','elementToElement','cells','removeMarkers','tablePasteChainId','_tablePostFixingSubtypes','paragraph','fromEntries','commands','stop','table','return','previous','ck-suggestion-marker-insertion','removeColumns','length','endRow','has','column','value','getChildren','forceDefaultExecution','getChild','_createdBatches','columnInsertionIndexes','afterInit','last','startsWith','createRange','activeMarkers','push','insertRows','containsRange','next','ck-suggestion-marker','insertion','author','high','tablePasteCell','endColumn','from','root','tableCellBorderWidth','tablePasteColumn','insertionRanges','map','wrap','getRows','editing','oldRange','registerCustomCallback','createRangeIn','suggestionUnloaded','columnInsertionRanges','cell','suggestion-td','listenTo','_isForcedDefaultExecutionBlock','tableCellSuggestion','type','_getCoordsForCells','createTableWalker','insert','createElement','setAttributes'];(function(_0x28f99a,_0x15598f){const _0x544b75=function(_0x312935){while(--_0x312935){_0x28f99a['push'](_0x28f99a['shift']());}};_0x544b75(++_0x15598f);}(_0x1559,0x110));const _0x544b=function(_0x28f99a,_0x15598f){_0x28f99a=_0x28f99a-0x0;let _0x544b75=_0x1559[_0x28f99a];return _0x544b75;};import{getTranslation as _0x2879e3}from'../utils/common-translations.js';import{Plugin as _0x12b9a6}from'ckeditor5/src/core.js';import{uid as _0x4622f5,priorities as _0x4f34fd}from'ckeditor5/src/utils.js';import _0x4b63f3 from'./table.js';const fe=[_0x544b('0x25'),_0x544b('0x53'),_0x544b('0x9d'),_0x544b('0x62'),'tableCellVerticalAlignment',_0x544b('0x6c'),_0x544b('0x65')],be=Object['fromEntries'](fe[_0x544b('0x28')](_0x15d117=>[_0x15d117,null]));export default class At extends _0x12b9a6{static get[_0x544b('0x5b')](){return[_0x4b63f3];}[_0x544b('0x14')](){const _0x1adb6a=this[_0x544b('0x7d')];if(!_0x1adb6a['plugins'][_0x544b('0xc')]('TableClipboard'))return;const _0xfcb76e=_0x1adb6a[_0x544b('0x5d')][_0x544b('0xa1')](_0x544b('0x4c')),_0x5831d4=_0x1adb6a['plugins']['get'](_0x544b('0x60')),_0x2a89cb=_0x1adb6a[_0x544b('0x5d')]['get'](_0x4b63f3),_0x4da2b1=_0x1adb6a['plugins'][_0x544b('0xa1')]('TableClipboard');_0x2a89cb[_0x544b('0x0')][_0x544b('0x19')]('tablePasteRow',_0x544b('0x26')),_0x1adb6a[_0x544b('0x45')][_0x544b('0x97')][_0x544b('0x3c')](_0x544b('0x35'),{'allowIn':_0x544b('0x7c'),'allowContentOf':_0x544b('0x7c'),'isLimit':!0x0}),_0x1adb6a[_0x544b('0x6d')][_0x544b('0xa2')]({'model':_0x544b('0x35'),'view':_0x544b('0x32')});let _0x256f34=null;_0x1adb6a[_0x544b('0x45')]['on'](_0x544b('0x78'),(_0x401547,_0x1982b5)=>{const [_0x3bc54c,_0xe23e63]=_0x1982b5,_0x413014=_0x1982b5[_0x1982b5[_0x544b('0xa')]-0x1];_0x413014&&_0x413014[_0x544b('0x10')]||_0xfcb76e[_0x544b('0x34')]||this[_0x544b('0x7d')][_0x544b('0x3')][_0x544b('0xa1')](_0x544b('0x8a'))[_0x544b('0xe')]&&function(_0x376d04,_0x4526ff,_0x8bacb7,_0x1a42f8,_0x3f7979){if(_0x4526ff&&!_0x4526ff['is'](_0x544b('0x8b')))return!0x1;const _0x3ac084=_0x3f7979[_0x544b('0x6f')](_0x376d04,_0x8bacb7);if(!_0x3ac084||!de(_0x3ac084,void 0x0,_0x1a42f8))return!0x1;const _0x14a563=_0x1a42f8[_0x544b('0x69')](_0x8bacb7['document'][_0x544b('0x8e')]);if(!_0x14a563[_0x544b('0xa')])return!0x1;const _0x18bc92=_0x14a563[0x0]['findAncestor']('table'),_0x5ca2a4=_0x1a42f8[_0x544b('0x6a')](_0x14a563),_0x5d1b3d=_0x1a42f8[_0x544b('0x49')](_0x14a563),_0x5280f8={'startRow':_0x5ca2a4[_0x544b('0x98')],'endRow':_0x5ca2a4[_0x544b('0x15')],'startColumn':_0x5d1b3d[_0x544b('0x98')],'endColumn':_0x5d1b3d[_0x544b('0x15')]};return 0x1==_0x14a563['length']&&(_0x5280f8[_0x544b('0xb')]+=_0x1a42f8[_0x544b('0x2a')](_0x3ac084)-0x1,_0x5280f8[_0x544b('0x22')]+=_0x1a42f8[_0x544b('0x88')](_0x3ac084)-0x1),de(_0x18bc92,_0x5280f8,_0x1a42f8);}(_0x3bc54c,_0xe23e63,_0x1adb6a[_0x544b('0x45')],_0x5831d4,_0x4da2b1)&&(_0x401547[_0x544b('0x4')](),_0x256f34={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1adb6a[_0x544b('0x45')][_0x544b('0x7f')](()=>{_0x1adb6a[_0x544b('0x45')][_0x544b('0x78')](_0x1982b5[0x0],_0x1982b5[0x1],_0x1982b5[0x2],{'forceDefaultExecution':!0x0});const _0x30c989=_0x4622f5(),{rowInsertionRanges:_0x44d3b8,columnInsertionRanges:_0x4d5e39,insertionRanges:_0x53aa1e,deletionRanges:_0x4c8d9a,cells:_0x149e65}=_0x256f34;_0x44d3b8[_0x544b('0xa')]&&_0xfcb76e['markMultiRangeInsertion'](_0x44d3b8,_0x544b('0x4e'),{'tablePasteChainId':_0x30c989}),_0x4d5e39['length']&&_0xfcb76e[_0x544b('0x99')](_0x4d5e39,_0x544b('0x26'),{'tablePasteChainId':_0x30c989}),_0x53aa1e[_0x544b('0xa')]&&_0xfcb76e['markMultiRangeInsertion'](_0x53aa1e,_0x544b('0x86'),{'tablePasteChainId':_0x30c989,'skipNestingCheck':!0x0}),_0x4c8d9a[_0x544b('0xa')]&&_0xfcb76e['markMultiRangeDeletion'](_0x4c8d9a,_0x544b('0x86'),{'tablePasteChainId':_0x30c989,'skipNestingCheck':!0x0});const _0x768b0c=_0xfcb76e['markMultiRangeBlockFormat'](_0x149e65[_0x544b('0x28')](({element:_0x7a539e})=>_0x7a539e),{'formatGroupId':_0x4622f5()},[],'tablePasteCell',{'tablePasteChainId':_0x30c989});if(_0x768b0c){const _0x14f48f=_0x768b0c['getMarkers'](),_0x36fd7a=[];for(const {element:_0x27bcc4,attributes:_0x3b9976}of _0x149e65){if(!_0x3b9976)continue;const _0x3facb6=_0x1adb6a['model'][_0x544b('0x4a')](_0x27bcc4),_0x588be9=_0x14f48f[_0x544b('0x9c')](_0x328801=>_0x328801['getRange']()[_0x544b('0x52')](_0x3facb6));_0x588be9&&_0x36fd7a[_0x544b('0x19')]([_0x588be9[_0x544b('0x40')],_0x3b9976]);}_0x36fd7a[_0x544b('0xa')]&&_0x768b0c['setAttribute']('markerAttributes',Object[_0x544b('0x2')](_0x36fd7a));}_0x256f34=null;}));},{'priority':_0x4f34fd[_0x544b('0x20')]+0xa}),_0x1adb6a[_0x544b('0x5d')][_0x544b('0xa1')](_0x544b('0x54'))['on']('_replaceTableSlotCell',(_0x1e481e,_0x5d6181)=>{const [_0x44274c,_0x16728e,,_0x1bf6b5]=_0x5d6181;if(!_0x256f34)return;_0x1e481e[_0x544b('0x4')]();const _0xb60dcd=_0x44274c[_0x544b('0x31')],_0x129d76=_0x16728e,_0x429478=ge(_0xb60dcd),_0x374e77=ge(_0x129d76);_0x1e481e[_0x544b('0x6')]=_0xb60dcd;let _0x1e3859=null,_0x5d271f=null;if(_0x374e77||_0x429478){if(_0x429478&&!_0x374e77){_0x1bf6b5['remove'](_0xb60dcd['getChild'](0x0));for(const _0x167970 of Array['from'](_0x129d76[_0x544b('0xf')]()))_0x1bf6b5[_0x544b('0x39')](_0x167970,_0xb60dcd,'end');const _0x43ff5e=_0x256f34[_0x544b('0x47')][_0x544b('0x5e')](_0x44274c[_0x544b('0x46')]),_0x3d122d=_0x256f34[_0x544b('0x13')]['includes'](_0x44274c[_0x544b('0xd')]);_0x43ff5e||_0x3d122d||(_0x1e3859=_0x1bf6b5[_0x544b('0x2e')](_0xb60dcd));}else _0x374e77&&!_0x429478&&(_0x5d271f=_0x1bf6b5[_0x544b('0x2e')](_0xb60dcd));}else{const _0x524cb0=_0x1bf6b5[_0x544b('0x3a')](_0x544b('0x35')),_0x3e24a2=_0x1bf6b5['createElement'](_0x544b('0x35'));_0x1bf6b5[_0x544b('0x29')](_0x1bf6b5[_0x544b('0x2e')](_0xb60dcd),_0x3e24a2),_0x1bf6b5[_0x544b('0x39')](_0x524cb0,_0xb60dcd,0x0);for(const _0x4a8bb8 of Array[_0x544b('0x23')](_0x129d76[_0x544b('0xf')]()))_0x1bf6b5[_0x544b('0x39')](_0x4a8bb8,_0x524cb0,'end');_0x1e3859=_0x1bf6b5[_0x544b('0x4a')](_0x524cb0),_0x5d271f=_0x1bf6b5[_0x544b('0x4a')](_0x3e24a2);}const _0x1974e2=Array[_0x544b('0x23')](_0x129d76[_0x544b('0x89')]())[_0x544b('0x66')](([_0x15e9f8])=>fe[_0x544b('0x5e')](_0x15e9f8));_0x256f34['cells']['push']({'element':_0xb60dcd,'attributes':_0x1974e2[_0x544b('0xa')]?Object['fromEntries'](_0x1974e2):null}),_0x1e3859&&_0x256f34[_0x544b('0x27')][_0x544b('0x19')](_0x1e3859),_0x5d271f&&_0x256f34['deletionRanges']['push'](_0x5d271f);},{'priority':_0x544b('0x20')}),_0x5831d4['on']('insertColumns',(_0x109fcc,_0x3e92ac)=>{const [_0x397a99,_0x3e042b={}]=_0x3e92ac;if(!_0x256f34)return;const _0x43a4e9=_0x3e042b['at']||0x0,_0x5377d1=_0x3e042b[_0x544b('0xa0')]||0x1;_0x256f34[_0x544b('0x13')]=new Array(_0x5377d1)[_0x544b('0x57')](_0x43a4e9)['map']((_0x11e9fe,_0x534cfa)=>_0x11e9fe+_0x534cfa);for(const {cell:_0x1a70b5}of _0x5831d4[_0x544b('0x38')](_0x397a99,{'startColumn':_0x43a4e9,'endColumn':_0x43a4e9+_0x5377d1-0x1}))_0x256f34[_0x544b('0x30')][_0x544b('0x19')](_0x1adb6a[_0x544b('0x45')]['createRangeOn'](_0x1a70b5));},{'priority':_0x544b('0x7e')}),_0x5831d4['on'](_0x544b('0x1a'),(_0x4ae2d1,_0x446dd4)=>{const [_0x2a4b3d,_0x312178={}]=_0x446dd4;if(!_0x256f34)return;const _0x50b9cf=_0x312178['at']||0x0,_0x51cef2=_0x312178['rows']||0x1;_0x256f34[_0x544b('0x47')]=new Array(_0x51cef2)['fill'](_0x50b9cf)[_0x544b('0x28')]((_0x5f2461,_0xf0d4d7)=>_0x5f2461+_0xf0d4d7);for(const {cell:_0x461c44}of _0x5831d4[_0x544b('0x38')](_0x2a4b3d,{'startRow':_0x50b9cf,'endRow':_0x50b9cf+_0x51cef2-0x1}))_0x256f34[_0x544b('0x9f')][_0x544b('0x19')](_0x1adb6a['model']['createRangeOn'](_0x461c44));},{'priority':_0x544b('0x7e')}),_0xfcb76e['_descriptionFactory']['registerDescriptionCallback'](_0x27e297=>{if(_0x27e297[_0x544b('0x9a')]&&_0x27e297['subType'][_0x544b('0x16')](_0x544b('0x86')))return _0x27e297[_0x544b('0x7')]?{}:{'type':_0x544b('0x1e'),'content':_0x2879e3(_0x1adb6a[_0x544b('0x43')],_0x544b('0x8f'))};});const _0x392543=()=>!0x1;for(const _0x351c78 of[_0x544b('0x86'),_0x544b('0x26'),'tablePasteRow','tablePasteCell'])_0xfcb76e[_0x544b('0x5a')][_0x544b('0x2d')]('insertion',_0x351c78,_0x544b('0x82'),_0x392543),_0xfcb76e['_suggestionFactory'][_0x544b('0x2d')](_0x544b('0x8d'),_0x351c78,_0x544b('0x82'),_0x392543),_0xfcb76e['_suggestionFactory'][_0x544b('0x2d')](_0x544b('0x56'),_0x351c78,_0x544b('0x82'),_0x392543);_0xfcb76e[_0x544b('0x5a')][_0x544b('0x2d')](_0x544b('0x56'),'tablePasteCell',_0x544b('0x4f'),_0x392543),_0xfcb76e['_suggestionFactory'][_0x544b('0x2d')](_0x544b('0x56'),_0x544b('0x21'),_0x544b('0x61'),(_0x50ad4b,_0x3d33e0,_0x4e7d25)=>{const _0x477f38=_0x50ad4b[_0x544b('0x28')](_0x28e5d1=>_0x28e5d1['getContainedElement']())[_0x544b('0x66')](_0x2fe9ac=>_0x2fe9ac),_0x36998f=new Map(_0x477f38['map'](_0x450b6a=>[_0x450b6a,null]));if(_0x256f34)for(const {element:_0x27e490,attributes:_0x1195a4}of _0x256f34[_0x544b('0xa3')])_0x1195a4&&_0x36998f[_0x544b('0x4d')](_0x27e490,_0x1195a4);else{if(_0x4e7d25&&_0x4e7d25[_0x544b('0x5c')])for(const [_0x5e0554,_0x5b00b4]of Object['entries'](_0x4e7d25[_0x544b('0x5c')])){const _0x350fd5=_0x1adb6a[_0x544b('0x45')][_0x544b('0x92')]['get'](_0x5e0554),_0x3fa8f5=_0x350fd5?_0x350fd5[_0x544b('0x85')]()[_0x544b('0x4b')]():null;_0x3fa8f5&&_0x36998f['set'](_0x3fa8f5,_0x5b00b4);}}_0x1adb6a[_0x544b('0x45')][_0x544b('0x7f')](_0x5f57d3=>{for(const [_0x5a44b4,_0x18c532]of _0x36998f)_0x5f57d3[_0x544b('0x3b')]({...be,..._0x18c532},_0x5a44b4);});});const _0x9f52ed=(_0x189d96,_0x1532a5)=>{_0xfcb76e[_0x544b('0x5a')][_0x544b('0x2d')](_0x189d96,'tablePaste',_0x1532a5,(_0x3ef3ad,_0x597f4a,_0x28039a)=>{_0x1adb6a['model'][_0x544b('0x7f')](_0x26c859=>{const _0x180a7c=[];for(const _0x5a09d2 of _0x3ef3ad){const _0x5b86e3=_0x5a09d2[_0x544b('0x95')][_0x544b('0x50')];_0x5b86e3['is'](_0x544b('0x9b'),_0x544b('0x35'))&&_0x180a7c[_0x544b('0x19')](_0x5b86e3);}_0xfcb76e[_0x544b('0x5a')]['getSuggestionCallback'](_0x189d96,null,_0x1532a5)(_0x3ef3ad,_0x597f4a,_0x28039a);for(const _0x46e027 of _0x180a7c)'$graveyard'!=_0x46e027[_0x544b('0x24')]['rootName']&&_0x26c859[_0x544b('0x75')](_0x46e027);});});};_0x9f52ed(_0x544b('0x1e'),_0x544b('0x61')),_0x9f52ed(_0x544b('0x1e'),'discard'),_0x9f52ed(_0x544b('0x8d'),_0x544b('0x61')),_0x9f52ed(_0x544b('0x8d'),'discard'),_0xfcb76e[_0x544b('0x5a')][_0x544b('0x2d')](_0x544b('0x1e'),'tablePasteRow','discard',_0x469065=>{const _0x188bd9=_0x469065[_0x544b('0x28')](_0x4b0221=>_0x4b0221[_0x544b('0x4b')]()),_0x4cbb72=_0x188bd9[0x0][_0x544b('0x81')](_0x544b('0x5')),{minRow:_0xfa3eeb,maxRow:_0x7202ac}=_0x2a89cb[_0x544b('0x37')](_0x188bd9);_0x5831d4[_0x544b('0x3f')](_0x4cbb72,{'at':_0xfa3eeb,'rows':_0x7202ac-_0xfa3eeb+0x1});}),_0xfcb76e[_0x544b('0x5a')][_0x544b('0x2d')]('insertion',_0x544b('0x26'),'discard',_0x5736b2=>{const _0xdd7d4f=_0x5736b2[_0x544b('0x28')](_0x44bdf2=>_0x44bdf2[_0x544b('0x4b')]()),_0x322c65=_0xdd7d4f[0x0]['findAncestor'](_0x544b('0x5')),{minColumn:_0x535d8e,maxColumn:_0x5c4f1a}=_0x2a89cb[_0x544b('0x37')](_0xdd7d4f);_0x5831d4[_0x544b('0x9')](_0x322c65,{'at':_0x535d8e,'columns':_0x5c4f1a-_0x535d8e+0x1});});const _0x49373b=(_0x5ad178,_0x5b587b)=>{if(!_0x5b587b[_0x544b('0x9a')]||!_0x5b587b[_0x544b('0x9a')][_0x544b('0x16')](_0x544b('0x86')))return;const _0x4b4338=_0x5b587b['attributes'][_0x544b('0xa5')],_0x33bbfe=_0xfcb76e[_0x544b('0x87')]()['filter'](_0x44c9a1=>_0x44c9a1[_0x544b('0x84')]&&_0x44c9a1['attributes']&&_0x44c9a1['attributes'][_0x544b('0xa5')]==_0x4b4338);_0x33bbfe[_0x544b('0xa')]&&_0x5b587b[_0x544b('0x71')]()['length']!=_0x33bbfe[_0x544b('0xa')]&&_0x33bbfe['reduce']((_0x44ba75,_0x38c636)=>(_0x44ba75[_0x544b('0x1c')]=_0x38c636,_0x38c636[_0x544b('0x7')]=_0x44ba75,_0x38c636));};function _0x4c655b(_0x3ae496,_0xb53efb=!0x0){const {id:_0x5a923e}=_0xfcb76e['_splitMarkerName'](_0x3ae496[_0x544b('0x91')]),_0x18bd33=[_0x544b('0x1d'),_0x544b('0x8')],_0x50eb2f=_0xfcb76e[_0x544b('0x18')]['includes'](_0x3ae496[_0x544b('0x91')]);return _0x50eb2f&&_0x18bd33[_0x544b('0x19')](_0x544b('0x7a')),{'classes':_0x18bd33,'attributes':{'data-suggestion':_0x5a923e},'priority':_0x50eb2f&&_0xb53efb?0xbc2:0xbb8};}_0xfcb76e['on']('suggestionLoaded',_0x49373b,{'priority':'high'}),_0xfcb76e['on'](_0x544b('0x2f'),_0x49373b,{'priority':_0x544b('0x20')}),_0x1adb6a[_0x544b('0x45')]['document'][_0x544b('0x83')](()=>{let _0x55e332=!0x1;const _0x483dbf=Array[_0x544b('0x23')](_0x1adb6a[_0x544b('0x45')][_0x544b('0x74')][_0x544b('0x6e')][_0x544b('0x96')]());for(const {name:_0x3b1c77,data:_0x4ddab8}of _0x483dbf){const {group:_0x290bd8,type:_0x1be752,id:_0x13fb61}=_0xfcb76e[_0x544b('0x67')](_0x3b1c77);if(_0x544b('0x48')!=_0x290bd8||_0x544b('0x8d')!=_0x1be752||_0x4ddab8[_0x544b('0x2c')])continue;if(!_0xfcb76e['hasSuggestion'](_0x13fb61))continue;const _0x1a42e5=_0xfcb76e[_0x544b('0x42')](_0x13fb61)[_0x544b('0x3d')](),_0x35ec45=_0x1adb6a['plugins'][_0x544b('0xa1')]('Users')['me'];for(const _0x975e70 of _0xfcb76e[_0x544b('0x87')]()){if(!_0x975e70[_0x544b('0x84')]||_0x975e70[_0x544b('0x1f')]!=_0x35ec45)continue;if(_0x544b('0x56')!=_0x975e70[_0x544b('0x36')]||_0x544b('0x21')!=_0x975e70[_0x544b('0x9a')])continue;if(_0x975e70[_0x544b('0x3d')]()['every'](_0x4a2d7e=>_0x1a42e5[_0x544b('0x76')](_0x45138a=>_0x45138a[_0x544b('0x1b')](_0x4a2d7e,!0x0))))for(const _0x812632 of _0x975e70[_0x544b('0x71')]())_0x812632[_0x544b('0x84')]&&(_0x812632[_0x544b('0x4f')](),_0x55e332=!0x0);}}return _0x55e332;}),_0x1adb6a[_0x544b('0x45')]['document']['registerPostFixer'](_0x1edc12=>{const _0x2d7c7e=_0x1adb6a[_0x544b('0x3')]['get'](_0x544b('0x41'));if(!_0x2d7c7e||!_0x2d7c7e[_0x544b('0x12')][_0x544b('0xc')](_0x1edc12[_0x544b('0x80')]))return!0x1;let _0x3b8d76=!0x1;const _0x25b498=_0x1adb6a[_0x544b('0x5d')]['get'](_0x544b('0x44'))['me'],_0x1bc2b4=_0x1adb6a[_0x544b('0x45')]['document'][_0x544b('0x6e')]['getChanges'](),_0x4d12b2=Array['from'](_0x1adb6a['model'][_0x544b('0x74')]['differ']['getChangedMarkers']())[_0x544b('0x66')](({name:_0x5c1027,data:_0x3482bf})=>{const {group:_0x38f290,subType:_0x7068e7,authorId:_0xb7075a}=_0xfcb76e[_0x544b('0x67')](_0x5c1027);return _0x544b('0x48')==_0x38f290&&_0x544b('0x86')==_0x7068e7&&_0xb7075a==_0x25b498['id']&&!_0x3482bf[_0x544b('0x2c')];});for(const _0x3833d3 of _0x1bc2b4){if(_0x544b('0x39')!=_0x3833d3['type']||'tableCellSuggestion'!=_0x3833d3[_0x544b('0x40')]||0x1!=_0x3833d3['length'])continue;const _0x524f25=_0x1edc12[_0x544b('0x17')](_0x3833d3[_0x544b('0x58')],_0x3833d3['position'][_0x544b('0x51')](0x1));if(!_0x4d12b2[_0x544b('0x9c')](({data:_0x4608bd})=>_0x4608bd[_0x544b('0x55')][_0x544b('0x52')](_0x524f25)))for(const {name:_0x31040d,data:_0x520cac}of _0x4d12b2)if(_0x524f25[_0x544b('0x1b')](_0x520cac['newRange'])){_0x1edc12['updateMarker'](_0x31040d,{'range':_0x524f25}),_0x3b8d76=!0x0;break;}}return _0x3b8d76;}),_0x1adb6a[_0x544b('0x45')][_0x544b('0x74')][_0x544b('0x83')](_0x4af83f=>{let _0x24e6f=!0x1;const _0x548814=_0x1adb6a[_0x544b('0x5d')][_0x544b('0xa1')](_0x544b('0x44'))['me'],_0x527959=_0xfcb76e[_0x544b('0x87')]()[_0x544b('0x66')](_0x2c5909=>_0x2c5909[_0x544b('0x84')]&&_0x2c5909[_0x544b('0x1f')]==_0x548814),_0x154370=new Set(),_0x1908d1=new Set();for(const _0x48b7db of _0x527959)if('tablePaste'==_0x48b7db[_0x544b('0x9a')])for(const _0x5bf095 of _0x48b7db[_0x544b('0x94')]()){const _0x82c651=_0x5bf095['getRange']()[_0x544b('0x4b')]();if(_0x82c651){if(_0x82c651['is'](_0x544b('0x9b'),'tableCellSuggestion')&&ge(_0x82c651)){_0x48b7db[_0x544b('0x9e')](_0x5bf095[_0x544b('0x40')]),_0x154370[_0x544b('0x8c')](_0x82c651),_0x24e6f=!0x0;const _0x40b94f=_0x82c651['nextSibling'],_0x1d2f0b=_0x82c651['previousSibling'],_0x3653a4=_0x40b94f&&_0x40b94f['is'](_0x544b('0x9b'),'tableCellSuggestion'),_0x530055=_0x1d2f0b&&_0x1d2f0b['is'](_0x544b('0x9b'),_0x544b('0x35'));_0x3653a4&&!_0x154370['has'](_0x40b94f)&&_0x1908d1['add'](_0x40b94f),_0x530055&&!_0x154370['has'](_0x1d2f0b)&&_0x1908d1[_0x544b('0x8c')](_0x1d2f0b);}else _0x82c651['is']('element','paragraph')&&_0x82c651[_0x544b('0x70')]&&(_0x48b7db[_0x544b('0x9e')](_0x5bf095[_0x544b('0x40')]),_0x24e6f=!0x0);}}else{if('tablePasteCell'==_0x48b7db[_0x544b('0x9a')]){if(!_0x48b7db['attributes']||!_0x48b7db[_0x544b('0x77')][_0x544b('0xa5')])continue;const _0x4f3ae9=_0x48b7db[_0x544b('0x77')]['markerAttributes'];if(_0x4f3ae9&&Object[_0x544b('0x73')](_0x4f3ae9)[_0x544b('0xa')])continue;const _0x40ab64=_0x48b7db[_0x544b('0x77')]['tablePasteChainId'];let _0x2ad30c=!0x0,_0x132ea1=!0x0;for(const _0x255557 of _0x527959)if(_0x255557[_0x544b('0x9a')]&&_0x255557[_0x544b('0x9a')][_0x544b('0x16')](_0x544b('0x86'))){if(!_0x255557[_0x544b('0x77')][_0x544b('0xa5')]){_0x132ea1=!0x1;break;}if(_0x255557['id']!=_0x48b7db['id']&&_0x255557[_0x544b('0x77')][_0x544b('0xa5')]==_0x40ab64){_0x2ad30c=!0x1;break;}}_0x132ea1&&_0x2ad30c&&(_0x48b7db[_0x544b('0xa4')](),_0x24e6f=!0x0);}}for(const _0x35da58 of _0x154370)_0x4af83f['remove'](_0x35da58);for(const _0x308120 of _0x1908d1)_0x4af83f[_0x544b('0x75')](_0x308120);return _0x24e6f;}),_0x1adb6a[_0x544b('0x6d')]['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x39ec08,_0x5f44d3)=>_0x4c655b(_0x39ec08),'converterPriority':'high'}),_0x1adb6a['conversion'][_0x544b('0x63')](_0x544b('0x64'))[_0x544b('0x6b')]({'model':_0x544b('0x3e'),'view':(_0x5f3613,_0x9ee268)=>_0x9ee268[_0x544b('0x59')][_0x544b('0x68')]?_0x4c655b(_0x5f3613,!0x1):null,'converterPriority':_0x544b('0x20')});const _0x1f4d57=_0x1adb6a[_0x544b('0x2b')][_0x544b('0x5f')];this[_0x544b('0x33')](_0x1f4d57[_0x544b('0x74')],_0x544b('0x7b'),(_0x179168,_0x1a7e6b)=>{const _0x1d9a90=[];for(const _0x22cfae of _0x1f4d57[_0x544b('0x2e')](_0x1a7e6b[_0x544b('0x72')])['getItems']())_0x22cfae['is'](_0x544b('0x9b'),_0x544b('0x32'))&&_0x1d9a90[_0x544b('0x19')](_0x22cfae);_0x1f4d57[_0x544b('0x7f')](_0x1b0a28=>{for(const _0x15a25a of _0x1d9a90)_0x1b0a28[_0x544b('0x90')](_0x1b0a28[_0x544b('0x2e')](_0x15a25a),_0x1b0a28[_0x544b('0x79')](_0x15a25a)),_0x1b0a28[_0x544b('0x93')](_0x15a25a);});});}}function ge(_0x4f985b){if(_0x4f985b[_0x544b('0x70')])return!0x0;const _0x361791=_0x4f985b[_0x544b('0x11')](0x0);return _0x361791['is'](_0x544b('0x9b'),_0x544b('0x1'))&&_0x361791[_0x544b('0x70')];}function de(_0x8c7713,_0x398702={},_0xa8df77){for(const {isAnchor:_0x5987eb,cellHeight:_0x3459d3,cellWidth:_0x683c6f}of _0xa8df77[_0x544b('0x38')](_0x8c7713,{'includeAllSlots':!0x0,..._0x398702}))if(!_0x5987eb||0x1!=_0x3459d3||0x1!=_0x683c6f)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e74=['model','get','afterInit','subType','accept','type','has','document','*Format:*\x20resize\x20table','resizeTable','_suggestionFactory','formatInline','formatGroupId','plugins','handleSuggestionDescription','author','tableWidth','bind','locale','TableColumnResizeEditing','table','Users','getSelectedElement','formatBlock','discard','columnWidths','change','getSuggestions','commandParams','resizeTableWidth','editor','_descriptionFactory','getColumnGroupElement','markBlockFormat','format','handleResizeTableWidthCommand','registerCustomCallback','getAttribute','registerDescriptionCallback'];(function(_0x40e1e4,_0x3e740f){const _0xc7c923=function(_0x136945){while(--_0x136945){_0x40e1e4['push'](_0x40e1e4['shift']());}};_0xc7c923(++_0x3e740f);}(_0x3e74,0x174));const _0xc7c9=function(_0x40e1e4,_0x3e740f){_0x40e1e4=_0x40e1e4-0x0;let _0xc7c923=_0x3e74[_0x40e1e4];return _0xc7c923;};import{Plugin as _0x2d67f5}from'ckeditor5/src/core.js';import{getTranslation as _0x168061}from'../utils/common-translations.js';export default class It extends _0x2d67f5{[_0xc7c9('0x14')](){if(!this[_0xc7c9('0x9')]['plugins'][_0xc7c9('0x18')](_0xc7c9('0x25')))return;const _0x36f89a=this['editor']['plugins'][_0xc7c9('0x13')]('TrackChangesEditing');_0x36f89a['enableCommand'](_0xc7c9('0x8'),this[_0xc7c9('0xe')][_0xc7c9('0x23')](this)),_0x36f89a[_0xc7c9('0x1c')][_0xc7c9('0xf')](_0xc7c9('0x2'),_0xc7c9('0x1b'),'accept',_0x36f89a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,_0xc7c9('0x3'))),_0x36f89a[_0xc7c9('0x1c')][_0xc7c9('0xf')](_0xc7c9('0x2'),_0xc7c9('0x1b'),_0xc7c9('0x3'),_0x36f89a[_0xc7c9('0x1c')]['getSuggestionCallback'](_0xc7c9('0x2'),null,_0xc7c9('0x16'))),_0x36f89a[_0xc7c9('0xa')][_0xc7c9('0x11')](this[_0xc7c9('0x20')][_0xc7c9('0x23')](this));}[_0xc7c9('0xe')](_0x55f585,_0x5de9f2){const _0x4c01df=this['editor'][_0xc7c9('0x1f')]['get']('TrackChangesEditing'),_0x200bf2=this[_0xc7c9('0x9')][_0xc7c9('0x1f')][_0xc7c9('0x13')](_0xc7c9('0x25')),_0x79be36=_0x5de9f2[_0xc7c9('0x26')]||this[_0xc7c9('0x9')][_0xc7c9('0x12')][_0xc7c9('0x19')]['selection'][_0xc7c9('0x1')]();this[_0xc7c9('0x9')][_0xc7c9('0x12')][_0xc7c9('0x5')](()=>{const _0x3c3119=_0x200bf2[_0xc7c9('0xb')](_0x79be36);let _0x5b010e=_0x3c3119?_0x200bf2['getTableColumnsWidths'](_0x3c3119):null,_0x2cbea4=_0x79be36[_0xc7c9('0x10')](_0xc7c9('0x22'))||null;const _0x316df0=_0x5de9f2['tableWidth']||_0x2cbea4,_0x148c8b=_0x5de9f2[_0xc7c9('0x4')]||_0x5b010e,_0x1ab2b8=this[_0xc7c9('0x9')][_0xc7c9('0x1f')][_0xc7c9('0x13')](_0xc7c9('0x0'))['me'];for(const _0x171a09 of _0x4c01df[_0xc7c9('0x6')]()){const _0x409665=_0x171a09['getContainedElement']();if('resizeTable'===_0x171a09[_0xc7c9('0x15')]&&_0x409665===_0x79be36){_0x171a09[_0xc7c9('0x21')]!==_0x1ab2b8&&_0x171a09[_0xc7c9('0x3')]();const _0x2e2e0a=_0x171a09['data'][_0xc7c9('0x7')];_0x2cbea4=_0x2e2e0a[0x0][_0xc7c9('0x22')],_0x5b010e=_0x2e2e0a[0x0][_0xc7c9('0x4')];break;}}_0x55f585({'table':_0x79be36,'tableWidth':_0x316df0,'columnWidths':_0x148c8b}),_0x4c01df[_0xc7c9('0xc')](_0x79be36,{'commandName':_0xc7c9('0x8'),'commandParams':[{'tableWidth':_0x2cbea4,'columnWidths':_0x5b010e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}[_0xc7c9('0x20')](_0x7d227b){if(_0xc7c9('0x2')!=_0x7d227b[_0xc7c9('0x17')]&&_0xc7c9('0x1d')!=_0x7d227b['type'])return;const {data:_0x3d0c41}=_0x7d227b;if(_0x3d0c41&&_0xc7c9('0x1b')===_0x3d0c41[_0xc7c9('0x1e')]){const _0x2efe3f=_0xc7c9('0x1a');return{'type':_0xc7c9('0xd'),'content':_0x168061(this[_0xc7c9('0x9')][_0xc7c9('0x24')],_0x2efe3f)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1803=['end','_enableDefaultAttributesIntegration','locale','type','addMarker:suggestion','markerNameToElements','formatBlock','has','forceValue','registerCustomCallback','ck-suggestion-marker-','nodeBefore','item','markerName','requires','downcastDispatcher','name','headingColumns','commandParams','format','bindElementToMarker','registerDescriptionCallback','getSuggestion','addClass','data-suggestion','setTableRowHeader','ck-suggestion-marker--active','nodeAfter','plugins','_registerLegacyDescription','createTableWalker','removeClass','TableUtils','editor','cell','_splitMarkerName','_suggestionFactory','FORMAT_REGULAR_COLUMN','*Format:*\x20%0','registerAttributeLabel','getCellLocation','FORMAT_HEADER_COLUMN','FORMAT_HEADER_ROW','accept','commandName','editing','activeMarkers','get','TableEditing','writer','showSuggestionHighlights','TrackChangesEditing','options','includes','mapper','_acceptFormatSuggestionCallbackFactory','headingRows','parent','_descriptionFactory','setTableColumnHeader','_handleLegacySuggestions','highest','data','removeMarker:suggestion','FORMAT_REGULAR_ROW','markerRange','unbindElementFromMarkerName'];(function(_0x178ee5,_0x1803d8){const _0x28ccc1=function(_0x136698){while(--_0x136698){_0x178ee5['push'](_0x178ee5['shift']());}};_0x28ccc1(++_0x1803d8);}(_0x1803,0x6a));const _0x28cc=function(_0x178ee5,_0x1803d8){_0x178ee5=_0x178ee5-0x0;let _0x28ccc1=_0x1803[_0x178ee5];return _0x28ccc1;};import{Plugin as _0x1af93d}from'ckeditor5/src/core.js';import _0x38398f from'./table.js';import{getTranslation as _0x1c799d}from'../utils/common-translations.js';export default class St extends _0x1af93d{static get[_0x28cc('0x2a')](){return[_0x38398f];}['afterInit'](){const _0x147ca3=this[_0x28cc('0x3d')];if(!_0x147ca3[_0x28cc('0x38')][_0x28cc('0x23')](_0x28cc('0x9')))return;const _0x161d83=_0x147ca3[_0x28cc('0x1e')],_0x5ba65c=_0x147ca3[_0x28cc('0x38')]['get'](_0x28cc('0xc'));_0x5ba65c[_0x28cc('0x1d')]('setTableRowHeader',[],[_0x28cc('0x11')]),_0x5ba65c[_0x28cc('0x1d')]('setTableColumnHeader',[],[_0x28cc('0x2d')]),_0x5ba65c['_descriptionFactory'][_0x28cc('0x0')]('headingRows',_0x1c799d(_0x161d83,_0x28cc('0x3'))),_0x5ba65c[_0x28cc('0x13')]['registerAttributeLabel']('headingColumns',_0x1c799d(_0x161d83,_0x28cc('0x2'))),this[_0x28cc('0x15')]();}[_0x28cc('0x15')](){const _0x11fd52=this[_0x28cc('0x3d')][_0x28cc('0x38')]['get']('TrackChangesEditing'),_0x28838d=this[_0x28cc('0x3d')][_0x28cc('0x38')]['get'](_0x28cc('0x3c')),_0x1bb59c=this[_0x28cc('0x3d')][_0x28cc('0x38')]['get'](_0x38398f)[_0x28cc('0x10')]();function _0x525e1e({showActiveMarker:_0x31d2d1=!0x0,setDataAttribute:_0x199e26=!0x0}={}){return(_0x5af3f7,_0x4d30f9,_0x1040c8)=>{const {type:_0x2cfb60,id:_0x307439}=_0x11fd52[_0x28cc('0x3f')](_0x4d30f9[_0x28cc('0x29')]),_0x561f8a=_0x11fd52[_0x28cc('0x32')](_0x307439),_0xe876f5=_0x561f8a[_0x28cc('0x17')];if('formatBlock'!=_0x561f8a[_0x28cc('0x1f')]||!_0xe876f5||_0x28cc('0x14')!=_0xe876f5['commandName'])return;if(_0x4d30f9[_0x28cc('0x28')])return void _0x5af3f7['stop']();if(!_0x1040c8['consumable']['consume'](_0x4d30f9[_0x28cc('0x1a')],_0x5af3f7[_0x28cc('0x2c')]))return;const _0x22cad5=_0x4d30f9[_0x28cc('0x1a')]['start'][_0x28cc('0x37')],_0x135a67=_0x4d30f9[_0x28cc('0x1a')][_0x28cc('0x1c')][_0x28cc('0x27')],_0x18471a=_0x22cad5['parent'][_0x28cc('0x12')],{column:_0x5d45a2}=_0x28838d[_0x28cc('0x1')](_0x22cad5),{column:_0x239e36}=_0x28838d[_0x28cc('0x1')](_0x135a67);for(let _0x2d5469=_0x5d45a2;_0x2d5469<=_0x239e36;_0x2d5469++){const _0xb62e7b=_0x28838d[_0x28cc('0x3a')](_0x18471a,{'column':_0x2d5469,'includeAllSlots':!0x1});for(const _0x38e61c of _0xb62e7b){const _0x29b24d=_0x38e61c[_0x28cc('0x3e')],_0x22a336=_0x1040c8[_0x28cc('0xf')]['toViewElement'](_0x29b24d);_0x1040c8[_0x28cc('0xa')]['addClass'](_0x28cc('0x26')+_0x2cfb60,_0x22a336),_0x199e26&&_0x1040c8[_0x28cc('0xa')]['setAttribute']('data-suggestion',_0x307439,_0x22a336),_0x1040c8[_0x28cc('0xf')][_0x28cc('0x30')](_0x22a336,_0x4d30f9['markerName']),_0x31d2d1&&(_0x11fd52[_0x28cc('0x7')][_0x28cc('0xe')](_0x4d30f9[_0x28cc('0x29')])?_0x1040c8[_0x28cc('0xa')][_0x28cc('0x33')]('ck-suggestion-marker--active',_0x22a336):_0x1040c8[_0x28cc('0xa')]['removeClass']('ck-suggestion-marker--active',_0x22a336));}}};}_0x11fd52[_0x28cc('0x40')][_0x28cc('0x25')]('formatBlock','setTableRowHeader',_0x28cc('0x4'),_0x1bb59c),_0x11fd52[_0x28cc('0x40')][_0x28cc('0x25')](_0x28cc('0x22'),_0x28cc('0x14'),_0x28cc('0x4'),_0x1bb59c),this[_0x28cc('0x3d')][_0x28cc('0x6')][_0x28cc('0x2b')]['on'](_0x28cc('0x20'),_0x525e1e(),{'priority':_0x28cc('0x16')}),this[_0x28cc('0x3d')][_0x28cc('0x17')][_0x28cc('0x2b')]['on']('addMarker:suggestion',(_0x1093c9,_0x3e456f,_0x24d4b0)=>{_0x24d4b0[_0x28cc('0xd')][_0x28cc('0xb')]&&_0x525e1e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1093c9,_0x3e456f,_0x24d4b0);},{'priority':_0x28cc('0x16')}),this[_0x28cc('0x3d')][_0x28cc('0x6')][_0x28cc('0x2b')]['on'](_0x28cc('0x18'),(_0x47b909,_0x1c630b,_0x18a6ed)=>{const {type:_0x52a733,id:_0x283a7a}=_0x11fd52['_splitMarkerName'](_0x1c630b[_0x28cc('0x29')]),_0x217d55=_0x11fd52[_0x28cc('0x32')](_0x283a7a),_0x1b24ec=_0x217d55['data'];if(_0x28cc('0x22')!=_0x217d55['type']||!_0x1b24ec||'setTableColumnHeader'!=_0x1b24ec['commandName'])return;const _0x1aed72=_0x18a6ed[_0x28cc('0xf')][_0x28cc('0x21')](_0x1c630b[_0x28cc('0x29')]);if(_0x1aed72)for(const _0xd2be6e of _0x1aed72)_0x18a6ed[_0x28cc('0xa')][_0x28cc('0x3b')](_0x28cc('0x26')+_0x52a733,_0xd2be6e),_0x18a6ed[_0x28cc('0xa')][_0x28cc('0x3b')](_0x28cc('0x36'),_0xd2be6e),_0x18a6ed[_0x28cc('0xa')]['removeAttribute'](_0x28cc('0x34'),_0xd2be6e),_0x18a6ed[_0x28cc('0xf')][_0x28cc('0x1b')](_0xd2be6e,_0x1c630b[_0x28cc('0x29')]);},{'priority':_0x28cc('0x16')}),this[_0x28cc('0x39')]();}[_0x28cc('0x39')](){const _0x59f82f=this['editor'],_0x4ea8ba=_0x59f82f[_0x28cc('0x1e')];function _0x23b582(_0x41f94a){return{'type':_0x28cc('0x2f'),'content':_0x1c799d(_0x4ea8ba,_0x28cc('0x42'),_0x41f94a)};}_0x59f82f[_0x28cc('0x38')][_0x28cc('0x8')](_0x28cc('0xc'))[_0x28cc('0x13')][_0x28cc('0x31')](_0x2f06a6=>{if(_0x28cc('0x22')!=_0x2f06a6[_0x28cc('0x1f')])return;const {data:_0x1be65f}=_0x2f06a6;if(_0x1be65f){if(_0x28cc('0x35')==_0x1be65f['commandName']){const _0xc7fc11=_0x1be65f[_0x28cc('0x2e')][0x0]['forceValue'];return _0x23b582(_0x1c799d(_0x4ea8ba,_0xc7fc11?'FORMAT_HEADER_ROW':_0x28cc('0x19')));}if('setTableColumnHeader'==_0x1be65f[_0x28cc('0x5')]){const _0x188b61=_0x1be65f[_0x28cc('0x2e')][0x0][_0x28cc('0x24')];return _0x23b582(_0x1c799d(_0x4ea8ba,_0x188b61?'FORMAT_HEADER_COLUMN':_0x28cc('0x41')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x94eb=['value','registerCustomCallback','insertion','getAncestors','has','deletion','findAncestor','_suggestionFactory','cell','markMultiRangeBlockFormat','commandName','formatBlock','TableEditing','return','getSuggestions','getCellLocation','registerDescriptionCallback','author','highest','selection','add','subType','map','mergeTableCellDown','format','_areSelectedCellsMergable','getRanges','TrackChangesEditing','root','horizontally','refresh','type','$graveyard','_descriptionFactory','_areMergableCells','tableCell','from','editor','detach','_acceptFormatSuggestionCallbackFactory','createRangeOn','size','*Split\x20cell:*\x20vertically','element','table','trackChanges','splitTableCellHorizontally','direction','mergeTableCellRight','stop','plugins','get','enableCommand','setSelection','getFirstPosition','isInContent','model','locale','mergeTableCellUp','formatInline','commands','set:isEnabled','afterInit','mergeTableCells','createTableWalker','change','splitTableCellVertically','mergeTableCellLeft','getSelectionAffectedTableCells','containsRange','TableUtils','*Split\x20cell:*\x20horizontally','find','forceDefaultExecution','document','execute','accept','length'];(function(_0x5384dc,_0x94eb60){const _0x3808de=function(_0x1a2c89){while(--_0x1a2c89){_0x5384dc['push'](_0x5384dc['shift']());}};_0x3808de(++_0x94eb60);}(_0x94eb,0x1c3));const _0x3808=function(_0x5384dc,_0x94eb60){_0x5384dc=_0x5384dc-0x0;let _0x3808de=_0x94eb[_0x5384dc];return _0x3808de;};import{Plugin as _0x3eedf0}from'ckeditor5/src/core.js';import _0x347925 from'./table.js';import{LiveRange as _0x265149}from'ckeditor5/src/engine.js';import{getTranslation as _0x58fc66}from'../utils/common-translations.js';export default class jt extends _0x3eedf0{static get['requires'](){return[_0x347925];}[_0x3808('0x1')](){const _0x7ce43=this['editor'],_0x41c1d5=_0x7ce43[_0x3808('0x49')][_0x3808('0xd')][_0x3808('0x24')],_0x4c6fe0=_0x7ce43[_0x3808('0x4a')];if(!_0x7ce43['plugins'][_0x3808('0x15')](_0x3808('0x1d')))return;const _0x4ade5b=_0x7ce43[_0x3808('0x43')][_0x3808('0x44')](_0x3808('0x2c')),_0x1764da=_0x7ce43[_0x3808('0x43')][_0x3808('0x44')](_0x3808('0x9')),_0xa6d6d7=_0x7ce43[_0x3808('0x43')][_0x3808('0x44')](_0x347925);_0xa6d6d7['_tablePostFixingSubtypes']['push'](_0x3808('0x2')),_0x4ade5b['enableCommand'](_0x3808('0x2'),()=>{const _0x3c0b74=_0x1764da[_0x3808('0x7')](_0x7ce43[_0x3808('0x49')][_0x3808('0xd')][_0x3808('0x24')]);_0x7ce43[_0x3808('0x49')]['change'](()=>{_0x4ade5b[_0x3808('0x1a')](_0x3c0b74,{'commandName':_0x3808('0x2'),'commandParams':[]},[],_0x3808('0x2'));});}),_0x7ce43['commands'][_0x3808('0x44')](_0x3808('0x2'))['on']('execute',(_0x2d63f9,_0x4ee977)=>{_0x7ce43[_0x3808('0x4d')]['get'](_0x3808('0x3e'))[_0x3808('0x11')]&&(_0x4ee977[_0x3808('0x10')]>0x0&&_0x4ee977[_0x4ee977[_0x3808('0x10')]-0x1]&&_0x4ee977[_0x4ee977['length']-0x1][_0x3808('0xc')]||_0x4ade5b['_isForcedDefaultExecutionBlock']||this[_0x3808('0x2a')]()||_0x2d63f9[_0x3808('0x42')]());},{'priority':_0x3808('0x23')});for(const _0x5b91ed of['mergeTableCellUp',_0x3808('0x41'),_0x3808('0x28'),_0x3808('0x6')]){const _0x40c73a=_0x7ce43['commands'][_0x3808('0x44')](_0x5b91ed);_0x4ade5b[_0x3808('0x45')](_0x5b91ed,()=>{const _0x18edcc=_0x7ce43['model'][_0x3808('0xd')]['selection'][_0x3808('0x47')]()[_0x3808('0x14')]()[_0x3808('0xb')](_0x14f67d=>_0x14f67d['is']('element',_0x3808('0x34'))),_0x248646=_0x40c73a[_0x3808('0x11')];_0x7ce43[_0x3808('0x49')][_0x3808('0x4')](()=>{_0x4ade5b[_0x3808('0x1a')]([_0x18edcc,_0x248646],{'commandName':_0x3808('0x2'),'commandParams':[]},[],_0x3808('0x2'));});});}for(const _0x371d71 of[_0x3808('0x5'),_0x3808('0x3f')]){const _0x3c76dd=_0x7ce43[_0x3808('0x4d')][_0x3808('0x44')](_0x371d71);_0x4ade5b[_0x3808('0x45')](_0x371d71,()=>{const _0x8a3360=_0x1764da[_0x3808('0x7')](_0x7ce43['model'][_0x3808('0xd')]['selection'])[0x0],_0x34d9d6=_0x8a3360[_0x3808('0x17')](_0x3808('0x3d')),{column:_0x1dd067,row:_0x9c289c}=_0x1764da[_0x3808('0x20')](_0x8a3360);let _0x35e892=[];if(_0x3808('0x2e')==_0x3c76dd[_0x3808('0x40')]){const _0x2e643f=_0x1764da[_0x3808('0x3')](_0x34d9d6,{'startRow':_0x9c289c,'endRow':_0x9c289c,'includeAllSlots':!0x0});_0x35e892=Array[_0x3808('0x35')](_0x2e643f)[_0x3808('0x27')](_0x1fd108=>_0x1fd108[_0x3808('0x19')]);}else{const _0x5c4b10=_0x1764da[_0x3808('0x3')](_0x34d9d6,{'column':_0x1dd067,'includeAllSlots':!0x0});_0x35e892=Array[_0x3808('0x35')](_0x5c4b10)['map'](_0x96e03=>_0x96e03[_0x3808('0x19')]);}_0x7ce43[_0x3808('0x49')][_0x3808('0x4')](_0x480030=>{_0x4ade5b['markBlockFormat'](_0x480030['createRangeOn'](_0x8a3360),{'commandName':_0x371d71,'commandParams':[]},_0x35e892,_0x371d71);});});}_0x4ade5b['_descriptionFactory']['registerDescriptionCallback'](_0xab53b0=>{if('formatBlock'!=_0xab53b0[_0x3808('0x30')]&&_0x3808('0x4c')!=_0xab53b0[_0x3808('0x30')])return;const {data:_0x4d696e}=_0xab53b0;return _0x4d696e&&_0x3808('0x2')==_0x4d696e[_0x3808('0x1b')]?{'type':'format','content':_0x58fc66(_0x4c6fe0,'*Merge\x20cells*')}:void 0x0;}),_0x4ade5b[_0x3808('0x32')][_0x3808('0x21')](_0x4d8368=>{if(_0x3808('0x1c')!=_0x4d8368[_0x3808('0x30')]&&_0x3808('0x4c')!=_0x4d8368['type'])return;const {data:_0x326e7c}=_0x4d8368;return _0x326e7c?'splitTableCellVertically'==_0x326e7c[_0x3808('0x1b')]?{'type':_0x3808('0x29'),'content':_0x58fc66(_0x4c6fe0,_0x3808('0x3b'))}:'splitTableCellHorizontally'==_0x326e7c['commandName']?{'type':_0x3808('0x29'),'content':_0x58fc66(_0x4c6fe0,_0x3808('0xa'))}:void 0x0:void 0x0;});const _0x1f440d=_0xa6d6d7[_0x3808('0x38')]();for(const _0x2de3df of[_0x3808('0x4b'),'mergeTableCellRight',_0x3808('0x28'),_0x3808('0x6')])_0x4ade5b[_0x3808('0x18')][_0x3808('0x12')]('formatBlock',_0x2de3df,'accept',_0x1f440d);for(const _0x344697 of[_0x3808('0x5'),_0x3808('0x3f')])_0x4ade5b['_suggestionFactory']['registerCustomCallback'](_0x3808('0x1c'),_0x344697,_0x3808('0xf'),_0x1f440d);_0x4ade5b[_0x3808('0x18')][_0x3808('0x12')](_0x3808('0x1c'),_0x3808('0x2'),'accept',_0x181fcd=>{_0x7ce43['model'][_0x3808('0x4')](_0x50723a=>{const _0x3b7846=Array[_0x3808('0x35')](_0x41c1d5[_0x3808('0x2b')]())[_0x3808('0x27')](_0x5c69d8=>_0x265149['fromRange'](_0x5c69d8));_0x50723a['setSelection'](_0x181fcd),_0x7ce43[_0x3808('0x4d')][_0x3808('0x44')]('mergeTableCells')[_0x3808('0x2f')](),_0x7ce43[_0x3808('0xe')](_0x3808('0x2'),{'forceDefaultExecution':!0x0});const _0x29c7b2=_0x3b7846['filter'](_0x262a7e=>_0x3808('0x31')!=_0x262a7e[_0x3808('0x2d')]['rootName']);_0x29c7b2['length']>0x0&&_0x50723a[_0x3808('0x46')](_0x29c7b2);for(const _0x438a64 of _0x3b7846)_0x438a64[_0x3808('0x37')]();});});for(const _0x2250b7 of[_0x3808('0x4b'),_0x3808('0x28'),'mergeTableCellLeft','mergeTableCellRight']){const _0x6d2fc4=_0x7ce43[_0x3808('0x4d')][_0x3808('0x44')](_0x2250b7);_0x6d2fc4['on'](_0x3808('0x0'),(_0x4bdd8a,_0x593225,_0x33dce9)=>{if(_0x33dce9){const _0xee98c9=_0x7ce43[_0x3808('0x49')][_0x3808('0xd')][_0x3808('0x24')][_0x3808('0x47')]()[_0x3808('0x14')]()[_0x3808('0xb')](_0x1ea7f6=>_0x1ea7f6['is'](_0x3808('0x3c'),'tableCell'));this[_0x3808('0x33')](_0x6d2fc4[_0x3808('0x11')],_0xee98c9)||(_0x4bdd8a[_0x3808('0x1e')]=!0x1,_0x4bdd8a[_0x3808('0x42')]());}},{'priority':'low'});}}[_0x3808('0x2a')](){const _0x18776e=this['editor'][_0x3808('0x4d')][_0x3808('0x44')](_0x3808('0x2')),_0x45cb81=this['editor'][_0x3808('0x43')][_0x3808('0x44')](_0x3808('0x9'));if(!_0x18776e['isEnabled'])return!0x1;const _0x4ce170=_0x45cb81[_0x3808('0x7')](this[_0x3808('0x36')][_0x3808('0x49')][_0x3808('0xd')][_0x3808('0x24')]);for(const _0x541f39 of _0x4ce170)for(const _0x15d999 of _0x4ce170)if(_0x541f39!=_0x15d999&&!this[_0x3808('0x33')](_0x541f39,_0x15d999))return!0x1;return!0x0;}[_0x3808('0x33')](_0x16aba5,_0x1a5a61){const _0x3918a3=this[_0x3808('0x36')][_0x3808('0x43')][_0x3808('0x44')](_0x3808('0x2c')),_0x36f21f=this[_0x3808('0x36')][_0x3808('0x49')][_0x3808('0x39')](_0x16aba5),_0x312fed=this[_0x3808('0x36')]['model'][_0x3808('0x39')](_0x1a5a61),_0x169250=new Set(),_0x59fda2=new Set();for(const _0x497cb6 of _0x3918a3[_0x3808('0x1f')]())if((_0x3808('0x13')==_0x497cb6['type']||_0x3808('0x16')==_0x497cb6[_0x3808('0x30')]||'mergeTableCells'==_0x497cb6[_0x3808('0x26')])&&_0x497cb6[_0x3808('0x48')])for(const _0x36cec4 of _0x497cb6[_0x3808('0x2b')]())_0x36cec4[_0x3808('0x8')](_0x36f21f,!0x0)&&_0x169250[_0x3808('0x25')](_0x497cb6[_0x3808('0x30')]+':'+_0x497cb6[_0x3808('0x22')]['id']),_0x36cec4[_0x3808('0x8')](_0x312fed,!0x0)&&_0x59fda2[_0x3808('0x25')](_0x497cb6[_0x3808('0x30')]+':'+_0x497cb6['author']['id']);if(_0x169250[_0x3808('0x3a')]!=_0x59fda2['size'])return!0x1;for(const _0x5028bf of _0x169250)if(!_0x59fda2[_0x3808('0x15')](_0x5028bf))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c41=['_descriptionFactory','get','editor','tableOfContents','insertTableOfContents','plugins','TrackChangesEditing','enableCommand','ELEMENT_TABLE_OF_CONTENTS'];(function(_0x21b177,_0x2c4175){const _0x3153c8=function(_0x292051){while(--_0x292051){_0x21b177['push'](_0x21b177['shift']());}};_0x3153c8(++_0x2c4175);}(_0x2c41,0xf1));const _0x3153=function(_0x21b177,_0x2c4175){_0x21b177=_0x21b177-0x0;let _0x3153c8=_0x2c41[_0x21b177];return _0x3153c8;};import{Plugin as _0x36963b}from'ckeditor5/src/core.js';import{getTranslation as _0x4a691a}from'../utils/common-translations.js';export default class _t extends _0x36963b{['afterInit'](){const _0x4024b7=this[_0x3153('0x4')];if(!_0x4024b7['commands']['get'](_0x3153('0x6')))return;_0x4024b7[_0x3153('0x7')]['get']('TrackChangesEditing')[_0x3153('0x0')]('insertTableOfContents');const _0x497fcc=_0x4024b7[_0x3153('0x7')][_0x3153('0x3')](_0x3153('0x8')),_0x61d816=_0x4024b7['locale'];_0x497fcc[_0x3153('0x2')]['registerElementLabel'](_0x3153('0x5'),_0x127a01=>_0x4a691a(_0x61d816,_0x3153('0x1'),_0x127a01));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe8b7=['TablePropertiesEditing','getSuggestions','tableAlignment','document','tableBorderColor','format','getSuggestionCallback','get','setAttribute','getContainedElement','TableCellPropertiesEditing','enableCommand','handleSuggestionDescription','nodeAfter','commandParams','tableCellProperties','tableBackgroundColor','TrackChangesEditing','has','_suggestionFactory','tableCellHorizontalAlignment','start','registerDescriptionCallback','change','data','_getSuggestion','accept','handleDiscardAction','discard','tableCellWidth','tableProperties','join','tableBorderWidth','selection','tableCellBorderColor','editor','getAttribute','_descriptionFactory','locale','registerCustomCallback','_handlePropertyChange','tableCellVerticalAlignment','TrackChangesTableProperties','model','subType','table','plugins','enqueueChange','tableBorderStyle','findAncestor','tableCellHeight','formatBlock','getSelectionAffectedTableCells','markBlockFormat','tableCellBorderStyle','tableCellBackgroundColor'];(function(_0x2a11c2,_0xe8b7e9){const _0x485034=function(_0x505904){while(--_0x505904){_0x2a11c2['push'](_0x2a11c2['shift']());}};_0x485034(++_0xe8b7e9);}(_0xe8b7,0x114));const _0x4850=function(_0x2a11c2,_0xe8b7e9){_0x2a11c2=_0x2a11c2-0x0;let _0x485034=_0xe8b7[_0x2a11c2];return _0x485034;};import{Plugin as _0x596199}from'ckeditor5/src/core.js';import{getTranslation as _0x469644}from'../utils/common-translations.js';export default class Mt extends _0x596199{constructor(_0x3ecfee){super(_0x3ecfee),this['tableProperties']=[_0x4850('0x8'),_0x4850('0x34'),_0x4850('0x24'),_0x4850('0x6'),'tableWidth','tableHeight',_0x4850('0x14')],this[_0x4850('0x13')]=[_0x4850('0x26'),_0x4850('0x2'),'tableCellBorderWidth','tableCellPadding',_0x4850('0x21'),_0x4850('0x36'),_0x4850('0x3'),_0x4850('0x18'),_0x4850('0x2d')];}static get['pluginName'](){return _0x4850('0x2e');}['afterInit'](){const _0x3d83fe=this[_0x4850('0x27')][_0x4850('0x32')]['get'](_0x4850('0x15'));if(this[_0x4850('0x27')][_0x4850('0x32')][_0x4850('0x16')](_0x4850('0x4'))){for(const _0x2d9e16 of this[_0x4850('0x22')])_0x3d83fe[_0x4850('0xf')](_0x2d9e16,(_0x3c6086,_0xce0e98)=>{const _0x2c3f33=this['editor'][_0x4850('0x2f')][_0x4850('0x7')][_0x4850('0x25')]['getFirstPosition']()[_0x4850('0x35')](_0x4850('0x31'));this[_0x4850('0x2c')](_0x2d9e16,[_0x2c3f33],this[_0x4850('0x22')],'tableProperties',_0x3c6086,_0xce0e98);});_0x3d83fe[_0x4850('0x17')][_0x4850('0x2b')]('formatBlock',_0x4850('0x22'),_0x4850('0x1e'),_0x3d83fe[_0x4850('0x17')][_0x4850('0xa')](_0x4850('0x37'),null,_0x4850('0x20'))),_0x3d83fe[_0x4850('0x17')]['registerCustomCallback'](_0x4850('0x37'),_0x4850('0x22'),'discard',(_0x39a8e4,_0x14fa30)=>this[_0x4850('0x1f')](this[_0x4850('0x22')],_0x39a8e4,_0x14fa30)),_0x3d83fe['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4850('0x22'),_0x4850('0x23'),()=>!0x1);}if(this[_0x4850('0x27')][_0x4850('0x32')][_0x4850('0x16')](_0x4850('0xe'))){for(const _0x19c4a7 of this[_0x4850('0x13')])_0x3d83fe[_0x4850('0xf')](_0x19c4a7,(_0x162d4e,_0x1499fb)=>{const _0x47064a=this[_0x4850('0x27')]['plugins'][_0x4850('0xb')]('TableUtils')[_0x4850('0x0')](this[_0x4850('0x27')]['model'][_0x4850('0x7')][_0x4850('0x25')]);this[_0x4850('0x2c')](_0x19c4a7,_0x47064a,this[_0x4850('0x13')],_0x4850('0x13'),_0x162d4e,_0x1499fb);});_0x3d83fe[_0x4850('0x17')][_0x4850('0x2b')](_0x4850('0x37'),_0x4850('0x13'),_0x4850('0x1e'),_0x3d83fe[_0x4850('0x17')][_0x4850('0xa')](_0x4850('0x37'),null,_0x4850('0x20'))),_0x3d83fe[_0x4850('0x17')][_0x4850('0x2b')]('formatBlock',_0x4850('0x13'),_0x4850('0x20'),(_0x1bbf49,_0x5b9435)=>this['handleDiscardAction'](this[_0x4850('0x13')],_0x1bbf49,_0x5b9435)),_0x3d83fe[_0x4850('0x17')][_0x4850('0x2b')](_0x4850('0x37'),_0x4850('0x13'),_0x4850('0x23'),()=>!0x1);}_0x3d83fe[_0x4850('0x29')][_0x4850('0x1a')](_0x35ee79=>this[_0x4850('0x10')](_0x35ee79));}[_0x4850('0x2c')](_0xc30c1a,_0x40f262,_0x1618e7,_0x6733ef,_0x1310a6,_0x467602){const _0x1f2b5e=this['editor'][_0x4850('0x32')]['get'](_0x4850('0x15'));this['editor'][_0x4850('0x2f')][_0x4850('0x33')](_0x467602['batch'],()=>{for(const _0x6434b5 of _0x40f262){if(this[_0x4850('0x1d')](_0x6434b5,_0x6733ef))_0x1310a6(_0x467602);else{const _0x12182e={};for(const _0xf4ffaf of _0x1618e7){const _0x57945f=_0x6434b5[_0x4850('0x28')](_0xf4ffaf);void 0x0!==_0x57945f&&(_0x12182e[_0xf4ffaf]=_0x57945f);}_0x1310a6(_0x467602),_0x1f2b5e[_0x4850('0x1')](_0x6434b5,{'commandParams':[_0x12182e]},[],_0x6733ef);}}});}[_0x4850('0x1f')](_0x3a78fe,_0x307b45,_0xee655b){const _0xbfe40f=_0x307b45[0x0][_0x4850('0x19')][_0x4850('0x11')],_0x21ba21=_0xee655b[_0x4850('0x12')][0x0];this[_0x4850('0x27')][_0x4850('0x2f')][_0x4850('0x1b')](_0x1073a8=>{for(const _0xab456c of _0x3a78fe)void 0x0!==_0x21ba21[_0xab456c]?_0x1073a8[_0x4850('0xc')](_0xab456c,_0x21ba21[_0xab456c],_0xbfe40f):_0x1073a8['removeAttribute'](_0xab456c,_0xbfe40f);});}['handleSuggestionDescription'](_0x24979b){if(_0x24979b[_0x4850('0x1c')])switch(_0x24979b[_0x4850('0x30')]){case _0x4850('0x22'):return{'type':'format','content':_0x469644(this[_0x4850('0x27')][_0x4850('0x2a')],'*Format:*\x20change\x20table\x20properties')};case _0x4850('0x13'):return{'type':_0x4850('0x9'),'content':_0x469644(this[_0x4850('0x27')][_0x4850('0x2a')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x4850('0x1d')](_0xab48c8,_0x3ecb53){const _0x4bfd49=this[_0x4850('0x27')]['plugins'][_0x4850('0xb')](_0x4850('0x15'));for(const _0x5b4289 of _0x4bfd49[_0x4850('0x5')]({'skipNotAttached':!0x0})){const _0x383b27=_0x5b4289[_0x4850('0xd')]();if(_0x5b4289[_0x4850('0x30')]===_0x3ecb53&&_0x383b27===_0xab48c8)return _0x5b4289;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x401e=['plugins','editor','has','Template','enableCommand','get','TrackChangesEditing'];(function(_0x37ee39,_0x401ee4){const _0x43833a=function(_0x75888e){while(--_0x75888e){_0x37ee39['push'](_0x37ee39['shift']());}};_0x43833a(++_0x401ee4);}(_0x401e,0x72));const _0x4383=function(_0x37ee39,_0x401ee4){_0x37ee39=_0x37ee39-0x0;let _0x43833a=_0x401e[_0x37ee39];return _0x43833a;};import{Plugin as _0x1d28c6}from'ckeditor5/src/core.js';export default class vt extends _0x1d28c6{['afterInit'](){const _0x27b776=this[_0x4383('0x6')];_0x27b776[_0x4383('0x5')][_0x4383('0x0')](_0x4383('0x1'))&&_0x27b776[_0x4383('0x5')][_0x4383('0x3')](_0x4383('0x4'))[_0x4383('0x2')]('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xce35=['ELEMENT_TITLE','isCollapsed','registerElementLabel','createRange','newRange','isTouching','registerPostFixer','plugins','end','start','document','has','_splitMarkerName','locale','model','differ','from','Title','get','element','getChangedMarkers','updateMarker','schema','TrackChangesEditing','suggestion','title-content','forward','nodeBefore'];(function(_0x50a55f,_0xce355b){const _0x14cad2=function(_0x15c3b7){while(--_0x15c3b7){_0x50a55f['push'](_0x50a55f['shift']());}};_0x14cad2(++_0xce355b);}(_0xce35,0x1b7));const _0x14ca=function(_0x50a55f,_0xce355b){_0x50a55f=_0x50a55f-0x0;let _0x14cad2=_0xce35[_0x50a55f];return _0x14cad2;};import{Plugin as _0x2effb2}from'ckeditor5/src/core.js';import{getTranslation as _0x5767bb}from'../utils/common-translations.js';export default class Ct extends _0x2effb2{['afterInit'](){const _0x37e797=this['editor'];if(!_0x37e797[_0x14ca('0x10')][_0x14ca('0x14')](_0x14ca('0x1a')))return;const _0x3b455c=_0x37e797[_0x14ca('0x10')][_0x14ca('0x1b')](_0x14ca('0x4'));_0x3b455c['_descriptionFactory'][_0x14ca('0xb')](_0x14ca('0x6'),()=>_0x5767bb(_0x37e797[_0x14ca('0x16')],_0x14ca('0x9'))),_0x37e797[_0x14ca('0x17')]['document'][_0x14ca('0xf')](_0x1e847e=>{let _0x1d002e=!0x1;const _0x227ac1=Array[_0x14ca('0x19')](_0x37e797[_0x14ca('0x17')][_0x14ca('0x13')][_0x14ca('0x18')][_0x14ca('0x1')]());for(const {name:_0x849199,data:_0x5ad42f}of _0x227ac1){const {group:_0x2fdce9}=_0x3b455c[_0x14ca('0x15')](_0x849199);if(_0x14ca('0x5')!==_0x2fdce9||!_0x5ad42f[_0x14ca('0xd')])continue;const _0x1886e8=_0x5ad42f[_0x14ca('0xd')],_0x465bce=_0x1886e8[_0x14ca('0x11')][_0x14ca('0x8')];if(!_0x465bce||!_0x465bce['is'](_0x14ca('0x0'),_0x14ca('0x6')))continue;if(!_0x1886e8[_0x14ca('0x12')][_0x14ca('0xe')](_0x1886e8['end']))continue;const _0x2473f7=_0x37e797[_0x14ca('0x17')][_0x14ca('0x3')]['getNearestSelectionRange'](_0x1886e8[_0x14ca('0x11')],_0x14ca('0x7'));if(_0x2473f7&&_0x2473f7[_0x14ca('0xa')]){const _0x1e8c72=_0x1e847e[_0x14ca('0xc')](_0x1886e8[_0x14ca('0x12')],_0x2473f7[_0x14ca('0x12')]);_0x1e8c72['isEqual'](_0x1886e8)||(_0x1e847e[_0x14ca('0x2')](_0x849199,{'range':_0x1e8c72}),_0x1d002e=!0x0);}_0x1d002e||(_0x1e847e['removeMarker'](_0x849199),_0x1d002e=!0x0);}return _0x1d002e;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4abf=['afterInit','redo','undo','enableCommand','plugins','UndoEditing','get'];(function(_0x2d8647,_0x4abf2d){const _0x4fa1c3=function(_0x4b0522){while(--_0x4b0522){_0x2d8647['push'](_0x2d8647['shift']());}};_0x4fa1c3(++_0x4abf2d);}(_0x4abf,0x123));const _0x4fa1=function(_0x2d8647,_0x4abf2d){_0x2d8647=_0x2d8647-0x0;let _0x4fa1c3=_0x4abf[_0x2d8647];return _0x4fa1c3;};import{Plugin as _0x57361e}from'ckeditor5/src/core.js';export default class Dt extends _0x57361e{[_0x4fa1('0x3')](){const _0x4bffcf=this['editor'],_0x1c447f=_0x4bffcf['plugins'][_0x4fa1('0x2')]('TrackChangesEditing');_0x4bffcf[_0x4fa1('0x0')]['has'](_0x4fa1('0x1'))&&(_0x1c447f[_0x4fa1('0x6')](_0x4fa1('0x5')),_0x1c447f[_0x4fa1('0x6')](_0x4fa1('0x4')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xdcab=['writer','hasAttribute','test','push','name','span','getAttribute','model','listIndent','isBlock','markerRange','elementEnd','consumable','includes','mapper','markerName','isAtEnd','isLimit','listItem','toViewPosition','TrackChangesEditing','addHighlight','nextSibling','isContent','plugins','previousPosition','bindElementToMarker','insert','element','createRangeOn','getItems'];(function(_0x29cfdc,_0xdcab16){const _0x9e2775=function(_0x41aeb9){while(--_0x41aeb9){_0x29cfdc['push'](_0x29cfdc['shift']());}};_0x9e2775(++_0xdcab16);}(_0xdcab,0x113));const _0x9e27=function(_0x29cfdc,_0xdcab16){_0x29cfdc=_0x29cfdc-0x0;let _0x9e2775=_0xdcab[_0x29cfdc];return _0x9e2775;};export function getRangesWithAttribute(_0x3fff2d,_0x15d433,_0x473c8a){const _0x5a3934=[];for(const _0x41b781 of _0x15d433[_0x9e27('0x3')]())_0x41b781[_0x9e27('0x5')](_0x3fff2d)&&_0x5a3934[_0x9e27('0x7')](_0x473c8a[_0x9e27('0x2')](_0x41b781));return _0x5a3934;}export function getElementsAffectedByListItemRename(_0x1ff703){const _0x494ced=[];if(_0x1ff703['is'](_0x9e27('0x1'),'listItem')){let _0x4fc1f1=_0x1ff703[_0x9e27('0x1a')];for(;_0x4fc1f1&&_0x4fc1f1['is'](_0x9e27('0x1'),_0x9e27('0x16'))&&_0x4fc1f1[_0x9e27('0xa')](_0x9e27('0xc'))>0x0;)_0x494ced[_0x9e27('0x7')](_0x4fc1f1),_0x4fc1f1=_0x4fc1f1[_0x9e27('0x1a')];}return _0x494ced;}export function downcastSplitMergeMarker(_0x244261,_0x5ccd7e,{showActiveMarker:_0x10de3b=!0x0}={}){const _0x24675b=_0x244261[_0x9e27('0x1c')]['get'](_0x9e27('0x18'));return(_0x3d9924,_0x13a606,_0x223eca)=>{if(!_0x223eca[_0x9e27('0x10')][_0x9e27('0x6')](_0x13a606['markerRange'],_0x3d9924[_0x9e27('0x8')]))return;const _0x4bdabd=_0x13a606[_0x9e27('0xe')]['getWalker'](),_0x59bbcd=_0x13a606[_0x9e27('0xe')]['start'],_0x367d2b=_0x244261[_0x9e27('0xb')]['schema'];let _0x4ffe83=null,_0x14f5c2=null,_0x29bf25=!0x1,_0x9035c7=!0x1;for(const _0x501bda of _0x4bdabd){const _0x4a09b8=_0x501bda['item'];_0x29bf25=_0x29bf25||_0x367d2b[_0x9e27('0x1b')](_0x4a09b8);const _0x4d5d03=_0x223eca[_0x9e27('0x12')]['toViewElement'](_0x4a09b8);if(_0x4d5d03&&_0x4d5d03['getCustomProperty'](_0x9e27('0x19')))return;_0x9e27('0xf')==_0x501bda['type']&&(_0x367d2b[_0x9e27('0xd')](_0x4a09b8)&&!_0x367d2b[_0x9e27('0x15')](_0x4a09b8)&&(_0x4a09b8[_0x9e27('0x1a')]||_0x59bbcd[_0x9e27('0x14')]?_0x4ffe83&&_0x4ffe83['parent']==_0x4a09b8||(_0x4ffe83=_0x4a09b8,_0x47a325(_0x501bda[_0x9e27('0x1d')]),_0x9035c7=!0x0):_0x14f5c2=_0x14f5c2||_0x501bda[_0x9e27('0x1d')]));}function _0x47a325(_0x286478){const _0x343ce1=_0x223eca[_0x9e27('0x4')]['createUIElement'](_0x9e27('0x9'),{'class':'ck-suggestion-marker-'+_0x5ccd7e}),_0x186d47=_0x223eca[_0x9e27('0x12')][_0x9e27('0x17')](_0x286478);_0x10de3b&&_0x24675b['activeMarkers'][_0x9e27('0x11')](_0x13a606[_0x9e27('0x13')])&&_0x223eca['writer']['addClass']('ck-suggestion-marker--active',_0x343ce1),_0x223eca[_0x9e27('0x4')][_0x9e27('0x0')](_0x186d47,_0x343ce1),_0x223eca[_0x9e27('0x12')][_0x9e27('0x1e')](_0x343ce1,_0x13a606[_0x9e27('0x13')]);}_0x29bf25||_0x9035c7||!_0x14f5c2||_0x47a325(_0x14f5c2);};}
|