@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231128.0 → 0.0.0-nightly-20231130.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/CHANGELOG.md +15 -15
- package/README.md +1 -1
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/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/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 _0x3074=['getSuggestions','getSuggestion','getRanges','column','wrap','editingDowncast','root','suggestion-td','insertion','previous','createRangeOn','differ','unwrap','return','requires','insertRows','_getCoordsForCells','plugins','getRows','forceDefaultExecution','*Replace\x20table\x20cells*','listenTo','fromEntries','has','model','registerPostFixer','markers','markerName','_suggestionFactory','_splitMarkerName','stop','includes','getColumnIndexes','remove','filter','getShiftedBy','findAncestor','ck-suggestion-marker--active','row','createElement','getRange','paragraph','next','nextSibling','subType','ck-suggestion-marker-insertion','every','end','suggestion','keys','_tablePostFixingSubtypes','cells','insert','_replaceTableSlotCell','tableCellBorderWidth','TableUtils','endRow','high','tablePasteColumn','isInContent','containsRange','last','columns','setAttribute','getChangedMarkers','createTableWalker','getAttributes','Users','markerToHighlight','registerCustomCallback','start','view','createPositionBefore','_isForcedDefaultExecutionBlock','deletion','clipboardOutput','nodeAfter','first','for','getAllAdjacentSuggestions','isEmpty','discard','redo','type','options','tableCell','rows','name','batch','tablePasteCell','find','selection','getChild','change','activeMarkers','move','insertColumns','map','_descriptionFactory','tablePaste','removeMarkers','getColumns','register','tableCellSuggestion','join','hasSuggestion','createRange','setAttributes','tableCellVerticalAlignment','documentSelection','cell','commands','columnInsertionRanges','removeMarker','getChildren','getSuggestionCallback','reduce','markerAttributes','getTableIfOnlyTableInContent','entries','getChanges','editor','document','low','isEqual','author','from','ck-suggestion-marker','get','previousSibling','removeRows','tableCellBorderColor','tableCellPadding','TableClipboard','tablePasteRow','markMultiRangeBlockFormat','push','getMarkers','updateMarker','endColumn','getRowIndexes','oldRange','schema','$graveyard','conversion','markMultiRangeDeletion','length','getItems','deletionRanges','add','value','fill','content','attributes','markMultiRangeInsertion','formatBlock','registerDescriptionCallback','newRange','element','insertContent','tablePasteChainId','removeColumns','some','table','getContainedElement','suggestion:formatBlock:tablePasteCell','tableCellBackgroundColor','_createdBatches','showSuggestionHighlights','rootName','rowInsertionRanges','afterInit','accept','startsWith','position'];(function(_0x5aecf9,_0x3074e6){const _0x397538=function(_0x57eac0){while(--_0x57eac0){_0x5aecf9['push'](_0x5aecf9['shift']());}};_0x397538(++_0x3074e6);}(_0x3074,0x1e2));const _0x3975=function(_0x5aecf9,_0x3074e6){_0x5aecf9=_0x5aecf9-0x0;let _0x397538=_0x3074[_0x5aecf9];return _0x397538;};import{getTranslation as _0x1739ff}from'../utils/common-translations';import{Plugin as _0x380b97}from'ckeditor5/src/core';import{uid as _0x59de26,priorities as _0x1fcb11}from'ckeditor5/src/utils';import _0x3e6302 from'./table';const le=[_0x3975('0x61'),_0x3975('0xae'),'tableCellBorderStyle','tableCellHorizontalAlignment',_0x3975('0x97'),_0x3975('0x22'),_0x3975('0x0')],ae=Object[_0x3975('0x41')](le[_0x3975('0x8c')](_0x5636a8=>[_0x5636a8,null]));export default class At extends _0x380b97{static get[_0x3975('0x39')](){return[_0x3e6302];}[_0x3975('0x27')](){const _0x2e0868=this[_0x3975('0xa4')];if(!_0x2e0868[_0x3975('0x3c')][_0x3975('0x42')](_0x3975('0x1')))return;const _0x2dcb04=_0x2e0868[_0x3975('0x3c')][_0x3975('0xab')]('TrackChangesEditing'),_0x36cfd5=_0x2e0868[_0x3975('0x3c')][_0x3975('0xab')](_0x3975('0x62')),_0x1a20c7=_0x2e0868[_0x3975('0x3c')][_0x3975('0xab')](_0x3e6302),_0x421cd4=_0x2e0868[_0x3975('0x3c')][_0x3975('0xab')](_0x3975('0x1'));_0x1a20c7[_0x3975('0x5d')][_0x3975('0x4')]('tablePasteRow',_0x3975('0x65')),_0x2e0868[_0x3975('0x43')][_0x3975('0xa')][_0x3975('0x91')](_0x3975('0x92'),{'allowIn':_0x3975('0x80'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x2e0868['conversion']['elementToElement']({'model':_0x3975('0x92'),'view':'suggestion-td'});let _0x5242ad=null;_0x2e0868[_0x3975('0x43')]['on'](_0x3975('0x1b'),(_0x157d66,_0x4eaf30)=>{const [_0x105fe1,_0x414426]=_0x4eaf30,_0x19acdf=_0x4eaf30[_0x4eaf30[_0x3975('0xe')]-0x1];_0x19acdf&&_0x19acdf[_0x3975('0x3e')]||_0x2dcb04[_0x3975('0x74')]||this[_0x3975('0xa4')][_0x3975('0x9a')][_0x3975('0xab')]('trackChanges')[_0x3975('0x12')]&&function(_0x5475e1,_0x7d00cd,_0x55da81,_0x4944ed,_0x9e5a51){if(_0x7d00cd&&!_0x7d00cd['is'](_0x3975('0x98')))return!0x1;const _0xf34a0d=_0x9e5a51[_0x3975('0xa1')](_0x5475e1,_0x55da81);if(!_0xf34a0d||!fe(_0xf34a0d,void 0x0,_0x4944ed))return!0x1;const _0x13fbff=_0x4944ed['getSelectionAffectedTableCells'](_0x55da81[_0x3975('0xa5')][_0x3975('0x86')]);if(!_0x13fbff[_0x3975('0xe')])return!0x1;const _0x3e97aa=_0x13fbff[0x0][_0x3975('0x4f')](_0x3975('0x1f')),_0x51de04=_0x4944ed[_0x3975('0x8')](_0x13fbff),_0x36b687=_0x4944ed[_0x3975('0x4b')](_0x13fbff),_0x34c2d2={'startRow':_0x51de04[_0x3975('0x78')],'endRow':_0x51de04[_0x3975('0x68')],'startColumn':_0x36b687[_0x3975('0x78')],'endColumn':_0x36b687[_0x3975('0x68')]};return 0x1==_0x13fbff[_0x3975('0xe')]&&(_0x34c2d2[_0x3975('0x63')]+=_0x4944ed[_0x3975('0x3d')](_0xf34a0d)-0x1,_0x34c2d2[_0x3975('0x7')]+=_0x4944ed[_0x3975('0x90')](_0xf34a0d)-0x1),fe(_0x3e97aa,_0x34c2d2,_0x4944ed);}(_0x105fe1,_0x414426,_0x2e0868['model'],_0x36cfd5,_0x421cd4)&&(_0x157d66['stop'](),_0x5242ad={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2e0868['model'][_0x3975('0x88')](()=>{_0x2e0868[_0x3975('0x43')][_0x3975('0x1b')](_0x4eaf30[0x0],_0x4eaf30[0x1],_0x4eaf30[0x2],{'forceDefaultExecution':!0x0});const _0x345d3a=_0x59de26(),{rowInsertionRanges:_0x3c50b8,columnInsertionRanges:_0x3f8b8c,insertionRanges:_0x3fd81e,deletionRanges:_0x1d8d03,cells:_0x38d1d1}=_0x5242ad;_0x3c50b8[_0x3975('0xe')]&&_0x2dcb04[_0x3975('0x16')](_0x3c50b8,_0x3975('0x2'),{'tablePasteChainId':_0x345d3a}),_0x3f8b8c[_0x3975('0xe')]&&_0x2dcb04[_0x3975('0x16')](_0x3f8b8c,_0x3975('0x65'),{'tablePasteChainId':_0x345d3a}),_0x3fd81e[_0x3975('0xe')]&&_0x2dcb04[_0x3975('0x16')](_0x3fd81e,_0x3975('0x8e'),{'tablePasteChainId':_0x345d3a,'skipNestingCheck':!0x0}),_0x1d8d03[_0x3975('0xe')]&&_0x2dcb04[_0x3975('0xd')](_0x1d8d03,'tablePaste',{'tablePasteChainId':_0x345d3a,'skipNestingCheck':!0x0});const _0x28945b=_0x2dcb04[_0x3975('0x3')](_0x38d1d1[_0x3975('0x8c')](({element:_0x4aa535})=>_0x4aa535),{'formatGroupId':_0x59de26()},[],'tablePasteCell',{'tablePasteChainId':_0x345d3a});if(_0x28945b){const _0x297d0b=_0x28945b['getMarkers'](),_0x4a9355=[];for(const {element:_0x373b98,attributes:_0x75199c}of _0x38d1d1){if(!_0x75199c)continue;const _0x4e67c2=_0x2e0868['model']['createRangeOn'](_0x373b98),_0x1471cf=_0x297d0b['find'](_0x2f3b7f=>_0x2f3b7f[_0x3975('0x53')]()[_0x3975('0xa7')](_0x4e67c2));_0x1471cf&&_0x4a9355[_0x3975('0x4')]([_0x1471cf['name'],_0x75199c]);}_0x4a9355[_0x3975('0xe')]&&_0x28945b[_0x3975('0x6a')](_0x3975('0xa0'),Object['fromEntries'](_0x4a9355));}_0x5242ad=null;}));},{'priority':_0x1fcb11['high']+0xa}),_0x2e0868[_0x3975('0x3c')]['get'](_0x3975('0x1'))['on'](_0x3975('0x60'),(_0x35eab3,_0x2f24a1)=>{const [_0x218565,_0x1d0a9b,,_0x8abfe3]=_0x2f24a1;if(!_0x5242ad)return;_0x35eab3[_0x3975('0x49')]();const _0x50954c=_0x218565[_0x3975('0x99')],_0x58ba24=_0x1d0a9b,_0x445f93=ce(_0x50954c),_0x50a9ad=ce(_0x58ba24);_0x35eab3[_0x3975('0x38')]=_0x50954c;let _0x5d83a5=null,_0x20e21d=null;if(_0x50a9ad||_0x445f93){if(_0x445f93&&!_0x50a9ad){_0x8abfe3['remove'](_0x50954c[_0x3975('0x87')](0x0));for(const _0x267297 of Array[_0x3975('0xa9')](_0x58ba24[_0x3975('0x9d')]()))_0x8abfe3[_0x3975('0x5f')](_0x267297,_0x50954c,'end');const _0x261d29=_0x5242ad['rowInsertionIndexes'][_0x3975('0x4a')](_0x218565[_0x3975('0x51')]),_0x3f8abd=_0x5242ad['columnInsertionIndexes']['includes'](_0x218565[_0x3975('0x2e')]);_0x261d29||_0x3f8abd||(_0x5d83a5=_0x8abfe3['createRangeIn'](_0x50954c));}else _0x50a9ad&&!_0x445f93&&(_0x20e21d=_0x8abfe3['createRangeIn'](_0x50954c));}else{const _0x407ac1=_0x8abfe3[_0x3975('0x52')](_0x3975('0x92')),_0x31313f=_0x8abfe3['createElement'](_0x3975('0x92'));_0x8abfe3[_0x3975('0x2f')](_0x8abfe3['createRangeIn'](_0x50954c),_0x31313f),_0x8abfe3[_0x3975('0x5f')](_0x407ac1,_0x50954c,0x0);for(const _0x424f76 of Array[_0x3975('0xa9')](_0x58ba24[_0x3975('0x9d')]()))_0x8abfe3[_0x3975('0x5f')](_0x424f76,_0x407ac1,_0x3975('0x5a'));_0x5d83a5=_0x8abfe3[_0x3975('0x35')](_0x407ac1),_0x20e21d=_0x8abfe3[_0x3975('0x35')](_0x31313f);}const _0x2e904b=Array[_0x3975('0xa9')](_0x58ba24[_0x3975('0x6d')]())[_0x3975('0x4d')](([_0x5b18ba])=>le[_0x3975('0x4a')](_0x5b18ba));_0x5242ad[_0x3975('0x5e')]['push']({'element':_0x50954c,'attributes':_0x2e904b['length']?Object[_0x3975('0x41')](_0x2e904b):null}),_0x5d83a5&&_0x5242ad['insertionRanges'][_0x3975('0x4')](_0x5d83a5),_0x20e21d&&_0x5242ad[_0x3975('0x10')][_0x3975('0x4')](_0x20e21d);},{'priority':_0x3975('0x64')}),_0x36cfd5['on'](_0x3975('0x8b'),(_0x5c7382,_0x24e4a0)=>{const [_0x5bb5d1,_0x2bc60c={}]=_0x24e4a0;if(!_0x5242ad)return;const _0x22aa8e=_0x2bc60c['at']||0x0,_0x351ecd=_0x2bc60c[_0x3975('0x69')]||0x1;_0x5242ad['columnInsertionIndexes']=new Array(_0x351ecd)[_0x3975('0x13')](_0x22aa8e)[_0x3975('0x8c')]((_0x50bc63,_0x39cb0c)=>_0x50bc63+_0x39cb0c);for(const {cell:_0x5f4474}of _0x36cfd5['createTableWalker'](_0x5bb5d1,{'startColumn':_0x22aa8e,'endColumn':_0x22aa8e+_0x351ecd-0x1}))_0x5242ad[_0x3975('0x9b')]['push'](_0x2e0868[_0x3975('0x43')][_0x3975('0x35')](_0x5f4474));},{'priority':_0x3975('0xa6')}),_0x36cfd5['on'](_0x3975('0x3a'),(_0x535bfb,_0x319ef6)=>{const [_0x30d287,_0x3e3967={}]=_0x319ef6;if(!_0x5242ad)return;const _0x44b0f1=_0x3e3967['at']||0x0,_0x219a18=_0x3e3967[_0x3975('0x81')]||0x1;_0x5242ad['rowInsertionIndexes']=new Array(_0x219a18)[_0x3975('0x13')](_0x44b0f1)[_0x3975('0x8c')]((_0x36fafa,_0x504f22)=>_0x36fafa+_0x504f22);for(const {cell:_0x22b331}of _0x36cfd5[_0x3975('0x6c')](_0x30d287,{'startRow':_0x44b0f1,'endRow':_0x44b0f1+_0x219a18-0x1}))_0x5242ad[_0x3975('0x26')]['push'](_0x2e0868['model'][_0x3975('0x35')](_0x22b331));},{'priority':_0x3975('0xa6')}),_0x2dcb04[_0x3975('0x8d')][_0x3975('0x18')](_0x264378=>{if(_0x264378[_0x3975('0x57')]&&_0x264378[_0x3975('0x57')][_0x3975('0x29')](_0x3975('0x8e')))return _0x264378['previous']?{}:{'type':_0x3975('0x33'),'content':_0x1739ff(_0x2e0868['locale'],_0x3975('0x3f'))};});const _0x3a9dd7=()=>!0x1;for(const _0x5f4c09 of[_0x3975('0x8e'),_0x3975('0x65'),_0x3975('0x2'),_0x3975('0x84')])_0x2dcb04[_0x3975('0x47')][_0x3975('0x70')](_0x3975('0x33'),_0x5f4c09,'join',_0x3a9dd7),_0x2dcb04[_0x3975('0x47')][_0x3975('0x70')](_0x3975('0x75'),_0x5f4c09,_0x3975('0x93'),_0x3a9dd7),_0x2dcb04[_0x3975('0x47')][_0x3975('0x70')](_0x3975('0x17'),_0x5f4c09,_0x3975('0x93'),_0x3a9dd7);_0x2dcb04['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell',_0x3975('0x7c'),_0x3a9dd7),_0x2dcb04[_0x3975('0x47')][_0x3975('0x70')](_0x3975('0x17'),_0x3975('0x84'),_0x3975('0x28'),(_0x408730,_0x277add,_0x19070d)=>{const _0x43f505=_0x408730[_0x3975('0x8c')](_0x440195=>_0x440195[_0x3975('0x20')]())[_0x3975('0x4d')](_0x5b0dbb=>_0x5b0dbb),_0x147173=new Map(_0x43f505[_0x3975('0x8c')](_0x47bee2=>[_0x47bee2,null]));if(_0x5242ad)for(const {element:_0x523d5c,attributes:_0x1deab5}of _0x5242ad['cells'])_0x1deab5&&_0x147173['set'](_0x523d5c,_0x1deab5);else{if(_0x19070d&&_0x19070d[_0x3975('0xa0')])for(const [_0x1e7c48,_0x2b3869]of Object[_0x3975('0xa2')](_0x19070d[_0x3975('0xa0')])){const _0x550317=_0x2e0868[_0x3975('0x43')][_0x3975('0x45')]['get'](_0x1e7c48),_0x2c1629=_0x550317?_0x550317[_0x3975('0x53')]()[_0x3975('0x20')]():null;_0x2c1629&&_0x147173['set'](_0x2c1629,_0x2b3869);}}_0x2e0868[_0x3975('0x43')][_0x3975('0x88')](_0x512ced=>{for(const [_0x2618a3,_0x5d4ac6]of _0x147173)_0x512ced[_0x3975('0x96')]({...ae,..._0x5d4ac6},_0x2618a3);});});const _0x322bec=(_0x4335c6,_0x54a233)=>{_0x2dcb04[_0x3975('0x47')][_0x3975('0x70')](_0x4335c6,'tablePaste',_0x54a233,(_0x540d83,_0x5880bd,_0x3680ca)=>{_0x2e0868[_0x3975('0x43')]['change'](_0x1b19ed=>{const _0x1a5ebc=[];for(const _0x37a840 of _0x540d83){const _0x5a4a1f=_0x37a840[_0x3975('0x71')][_0x3975('0x77')];_0x5a4a1f['is'](_0x3975('0x1a'),_0x3975('0x92'))&&_0x1a5ebc[_0x3975('0x4')](_0x5a4a1f);}_0x2dcb04[_0x3975('0x47')][_0x3975('0x9e')](_0x4335c6,null,_0x54a233)(_0x540d83,_0x5880bd,_0x3680ca);for(const _0x4d6204 of _0x1a5ebc)_0x3975('0xb')!=_0x4d6204[_0x3975('0x31')][_0x3975('0x25')]&&_0x1b19ed['unwrap'](_0x4d6204);});});};_0x322bec(_0x3975('0x33'),_0x3975('0x28')),_0x322bec(_0x3975('0x33'),_0x3975('0x7c')),_0x322bec('deletion',_0x3975('0x28')),_0x322bec('deletion',_0x3975('0x7c')),_0x2dcb04[_0x3975('0x47')][_0x3975('0x70')](_0x3975('0x33'),_0x3975('0x2'),'discard',_0x51d221=>{const _0x4cc92c=_0x51d221[_0x3975('0x8c')](_0x4870f5=>_0x4870f5['getContainedElement']()),_0x45827f=_0x4cc92c[0x0]['findAncestor'](_0x3975('0x1f')),{minRow:_0xeb546e,maxRow:_0x4e4a2c}=_0x1a20c7[_0x3975('0x3b')](_0x4cc92c);_0x36cfd5[_0x3975('0xad')](_0x45827f,{'at':_0xeb546e,'rows':_0x4e4a2c-_0xeb546e+0x1});}),_0x2dcb04[_0x3975('0x47')][_0x3975('0x70')](_0x3975('0x33'),_0x3975('0x65'),_0x3975('0x7c'),_0x16037e=>{const _0x384a46=_0x16037e[_0x3975('0x8c')](_0x5ef9fe=>_0x5ef9fe[_0x3975('0x20')]()),_0x512403=_0x384a46[0x0][_0x3975('0x4f')](_0x3975('0x1f')),{minColumn:_0x4fdab3,maxColumn:_0x3f904d}=_0x1a20c7[_0x3975('0x3b')](_0x384a46);_0x36cfd5[_0x3975('0x1d')](_0x512403,{'at':_0x4fdab3,'columns':_0x3f904d-_0x4fdab3+0x1});});const _0x2a6edc=(_0xb04653,_0x597e7a)=>{if(!_0x597e7a[_0x3975('0x57')]||!_0x597e7a[_0x3975('0x57')][_0x3975('0x29')](_0x3975('0x8e')))return;const _0x2e6bbc=_0x597e7a[_0x3975('0x15')]['tablePasteChainId'],_0x1da2eb=_0x2dcb04[_0x3975('0x2b')]()[_0x3975('0x4d')](_0x3b1fe1=>_0x3b1fe1[_0x3975('0x66')]&&_0x3b1fe1['attributes']&&_0x3b1fe1['attributes'][_0x3975('0x1c')]==_0x2e6bbc);_0x1da2eb[_0x3975('0xe')]&&_0x597e7a[_0x3975('0x7a')]()[_0x3975('0xe')]!=_0x1da2eb[_0x3975('0xe')]&&_0x1da2eb[_0x3975('0x9f')]((_0x37bfb2,_0x36e2a6)=>(_0x37bfb2[_0x3975('0x55')]=_0x36e2a6,_0x36e2a6[_0x3975('0x34')]=_0x37bfb2,_0x36e2a6));};function _0x4b9aaa(_0x705a40,_0x52ba27=!0x0){const {id:_0x464c71}=_0x2dcb04[_0x3975('0x48')](_0x705a40['markerName']),_0x3c2b12=[_0x3975('0xaa'),_0x3975('0x58')],_0x25bf3a=_0x2dcb04[_0x3975('0x89')][_0x3975('0x4a')](_0x705a40[_0x3975('0x46')]);return _0x25bf3a&&_0x3c2b12[_0x3975('0x4')](_0x3975('0x50')),{'classes':_0x3c2b12,'attributes':{'data-suggestion':_0x464c71},'priority':_0x25bf3a&&_0x52ba27?0xbc2:0xbb8};}_0x2dcb04['on']('suggestionLoaded',_0x2a6edc,{'priority':_0x3975('0x64')}),_0x2dcb04['on']('suggestionUnloaded',_0x2a6edc,{'priority':_0x3975('0x64')}),_0x2e0868[_0x3975('0x43')][_0x3975('0xa5')][_0x3975('0x44')](()=>{let _0x12448e=!0x1;const _0x4aa001=Array[_0x3975('0xa9')](_0x2e0868['model']['document'][_0x3975('0x36')][_0x3975('0x6b')]());for(const {name:_0x112fe6,data:_0x5ca26f}of _0x4aa001){const {group:_0x1f3e1d,type:_0x368a2e,id:_0x3b6481}=_0x2dcb04['_splitMarkerName'](_0x112fe6);if(_0x3975('0x5b')!=_0x1f3e1d||_0x3975('0x75')!=_0x368a2e||_0x5ca26f[_0x3975('0x9')])continue;if(!_0x2dcb04[_0x3975('0x94')](_0x3b6481))continue;const _0x22ee11=_0x2dcb04[_0x3975('0x2c')](_0x3b6481)[_0x3975('0x2d')](),_0x13aea2=_0x2e0868[_0x3975('0x3c')]['get'](_0x3975('0x6e'))['me'];for(const _0x117d28 of _0x2dcb04[_0x3975('0x2b')]()){if(!_0x117d28['isInContent']||_0x117d28['author']!=_0x13aea2)continue;if(_0x3975('0x17')!=_0x117d28['type']||_0x3975('0x84')!=_0x117d28[_0x3975('0x57')])continue;if(_0x117d28[_0x3975('0x2d')]()[_0x3975('0x59')](_0x1901c5=>_0x22ee11[_0x3975('0x1e')](_0x5e5b1d=>_0x5e5b1d[_0x3975('0x67')](_0x1901c5,!0x0))))for(const _0x5e2c40 of _0x117d28[_0x3975('0x7a')]())_0x5e2c40[_0x3975('0x66')]&&(_0x5e2c40['discard'](),_0x12448e=!0x0);}}return _0x12448e;}),_0x2e0868[_0x3975('0x43')][_0x3975('0xa5')][_0x3975('0x44')](_0x9d5e5a=>{const _0x4d45c5=_0x2e0868[_0x3975('0x9a')][_0x3975('0xab')](_0x3975('0x7d'));if(!_0x4d45c5||!_0x4d45c5[_0x3975('0x23')][_0x3975('0x42')](_0x9d5e5a[_0x3975('0x83')]))return!0x1;let _0x4bd16f=!0x1;const _0x39e9d3=_0x2e0868[_0x3975('0x3c')][_0x3975('0xab')](_0x3975('0x6e'))['me'],_0xf7b33=_0x2e0868[_0x3975('0x43')][_0x3975('0xa5')]['differ'][_0x3975('0xa3')](),_0x2e19de=Array[_0x3975('0xa9')](_0x2e0868[_0x3975('0x43')][_0x3975('0xa5')][_0x3975('0x36')][_0x3975('0x6b')]())['filter'](({name:_0x33ddd4,data:_0x74b416})=>{const {group:_0x349d0d,subType:_0xceb439,authorId:_0x2a330c}=_0x2dcb04[_0x3975('0x48')](_0x33ddd4);return _0x3975('0x5b')==_0x349d0d&&_0x3975('0x8e')==_0xceb439&&_0x2a330c==_0x39e9d3['id']&&!_0x74b416[_0x3975('0x9')];});for(const _0x3d160e of _0xf7b33){if(_0x3975('0x5f')!=_0x3d160e[_0x3975('0x7e')]||_0x3975('0x92')!=_0x3d160e[_0x3975('0x82')]||0x1!=_0x3d160e[_0x3975('0xe')])continue;const _0x1bc423=_0x9d5e5a[_0x3975('0x95')](_0x3d160e[_0x3975('0x2a')],_0x3d160e[_0x3975('0x2a')][_0x3975('0x4e')](0x1));if(!_0x2e19de[_0x3975('0x85')](({data:_0x579ee4})=>_0x579ee4[_0x3975('0x19')][_0x3975('0xa7')](_0x1bc423)))for(const {name:_0x1d30f6,data:_0x11a2a2}of _0x2e19de)if(_0x1bc423[_0x3975('0x67')](_0x11a2a2['newRange'])){_0x9d5e5a[_0x3975('0x6')](_0x1d30f6,{'range':_0x1bc423}),_0x4bd16f=!0x0;break;}}return _0x4bd16f;}),_0x2e0868[_0x3975('0x43')]['document'][_0x3975('0x44')](_0xfb1d69=>{let _0x153851=!0x1;const _0x134880=_0x2e0868[_0x3975('0x3c')][_0x3975('0xab')]('Users')['me'],_0x326a85=_0x2dcb04[_0x3975('0x2b')]()['filter'](_0x4a1e43=>_0x4a1e43[_0x3975('0x66')]&&_0x4a1e43[_0x3975('0xa8')]==_0x134880),_0x236219=new Set(),_0x42556a=new Set();for(const _0x601d8e of _0x326a85)if(_0x3975('0x8e')==_0x601d8e[_0x3975('0x57')])for(const _0x5caadc of _0x601d8e[_0x3975('0x5')]()){const _0x56b1c7=_0x5caadc[_0x3975('0x53')]()[_0x3975('0x20')]();if(_0x56b1c7){if(_0x56b1c7['is'](_0x3975('0x1a'),_0x3975('0x92'))&&ce(_0x56b1c7)){_0x601d8e[_0x3975('0x9c')](_0x5caadc[_0x3975('0x82')]),_0x236219[_0x3975('0x11')](_0x56b1c7),_0x153851=!0x0;const _0x4d640a=_0x56b1c7[_0x3975('0x56')],_0x47de71=_0x56b1c7[_0x3975('0xac')],_0x163148=_0x4d640a&&_0x4d640a['is'](_0x3975('0x1a'),'tableCellSuggestion'),_0x366882=_0x47de71&&_0x47de71['is']('element',_0x3975('0x92'));_0x163148&&!_0x236219[_0x3975('0x42')](_0x4d640a)&&_0x42556a[_0x3975('0x11')](_0x4d640a),_0x366882&&!_0x236219[_0x3975('0x42')](_0x47de71)&&_0x42556a[_0x3975('0x11')](_0x47de71);}else _0x56b1c7['is']('element',_0x3975('0x54'))&&_0x56b1c7[_0x3975('0x7b')]&&(_0x601d8e['removeMarker'](_0x5caadc[_0x3975('0x82')]),_0x153851=!0x0);}}else{if(_0x3975('0x84')==_0x601d8e[_0x3975('0x57')]){if(!_0x601d8e[_0x3975('0x15')]||!_0x601d8e['attributes']['tablePasteChainId'])continue;const _0x231bc8=_0x601d8e[_0x3975('0x15')][_0x3975('0xa0')];if(_0x231bc8&&Object[_0x3975('0x5c')](_0x231bc8)['length'])continue;const _0x3b1bcc=_0x601d8e[_0x3975('0x15')][_0x3975('0x1c')];let _0x512a54=!0x0,_0x51923f=!0x0;for(const _0x15b895 of _0x326a85)if(_0x15b895[_0x3975('0x57')]&&_0x15b895[_0x3975('0x57')][_0x3975('0x29')](_0x3975('0x8e'))){if(!_0x15b895['attributes'][_0x3975('0x1c')]){_0x51923f=!0x1;break;}if(_0x15b895['id']!=_0x601d8e['id']&&_0x15b895[_0x3975('0x15')][_0x3975('0x1c')]==_0x3b1bcc){_0x512a54=!0x1;break;}}_0x51923f&&_0x512a54&&(_0x601d8e[_0x3975('0x8f')](),_0x153851=!0x0);}}for(const _0x6c5b94 of _0x236219)_0xfb1d69[_0x3975('0x4c')](_0x6c5b94);for(const _0x202b6d of _0x42556a)_0xfb1d69[_0x3975('0x37')](_0x202b6d);return _0x153851;}),_0x2e0868['conversion'][_0x3975('0x79')](_0x3975('0x30'))[_0x3975('0x6f')]({'model':_0x3975('0x21'),'view':(_0x4c5f9c,_0x1d86f8)=>_0x4b9aaa(_0x4c5f9c),'converterPriority':_0x3975('0x64')}),_0x2e0868[_0x3975('0xc')][_0x3975('0x79')]('dataDowncast')[_0x3975('0x6f')]({'model':_0x3975('0x21'),'view':(_0x56492c,_0xd4836a)=>_0xd4836a[_0x3975('0x7f')][_0x3975('0x24')]?_0x4b9aaa(_0x56492c,!0x1):null,'converterPriority':'high'});const _0x5ce24c=_0x2e0868['editing'][_0x3975('0x72')];this[_0x3975('0x40')](_0x5ce24c['document'],_0x3975('0x76'),(_0x2bbc83,_0x2f3341)=>{const _0x2f6c5f=[];for(const _0xdd353a of _0x5ce24c['createRangeIn'](_0x2f3341[_0x3975('0x14')])[_0x3975('0xf')]())_0xdd353a['is'](_0x3975('0x1a'),_0x3975('0x32'))&&_0x2f6c5f[_0x3975('0x4')](_0xdd353a);_0x5ce24c[_0x3975('0x88')](_0x3c0d37=>{for(const _0x91e68e of _0x2f6c5f)_0x3c0d37[_0x3975('0x8a')](_0x3c0d37['createRangeIn'](_0x91e68e),_0x3c0d37[_0x3975('0x73')](_0x91e68e)),_0x3c0d37[_0x3975('0x4c')](_0x91e68e);});});}}function ce(_0x19d085){if(_0x19d085['isEmpty'])return!0x0;const _0xded826=_0x19d085[_0x3975('0x87')](0x0);return _0xded826['is'](_0x3975('0x1a'),'paragraph')&&_0xded826['isEmpty'];}function fe(_0x49fa29,_0x1cbb76={},_0x3852e1){for(const {isAnchor:_0x37d172,cellHeight:_0x10e966,cellWidth:_0x238f5d}of _0x3852e1[_0x3975('0x6c')](_0x49fa29,{'includeAllSlots':!0x0,..._0x1cbb76}))if(!_0x37d172||0x1!=_0x10e966||0x1!=_0x238f5d)return!0x1;return!0x0;}
|
|
23
|
+
const _0xb39d=['deletionRanges','endColumn','suggestionUnloaded','trackChanges','getChanges','getChildren','columnInsertionIndexes','set','schema','elementToElement','getColumnIndexes','insertColumns','remove','low','getShiftedBy','options','isEmpty','value','getMarkers','registerDescriptionCallback','rows','wrap','_isForcedDefaultExecutionBlock','has','register','join','tableCellBorderColor','filter','getAllAdjacentSuggestions','locale','end','unwrap','activeMarkers','row','push','markerAttributes','root','markMultiRangeDeletion','cells','registerCustomCallback','get','getSuggestions','model','previous','hasSuggestion','_splitMarkerName','newRange','_suggestionFactory','_getCoordsForCells','getTableIfOnlyTableInContent','some','suggestion-td','tableCellBackgroundColor','tableCellVerticalAlignment','removeColumns','getContainedElement','markers','name','from','clipboardOutput','tablePasteRow','createElement','entries','tablePasteColumn','_tablePostFixingSubtypes','previousSibling','findAncestor','rootName','oldRange','author','move','createTableWalker','listenTo','getRanges','getRange','insertion','containsRange','last','tablePaste','ck-suggestion-marker-insertion','selection','cell','length','insertRows','TrackChangesEditing','tableCellPadding','dataDowncast','suggestion','tablePasteCell','includes','setAttributes','columnInsertionRanges','removeMarker','plugins','isInContent','rowInsertionRanges','conversion','column','paragraph','insertionRanges','_createdBatches','type','subType','requires','getItems','TableClipboard','TableUtils','removeRows','next','discard','stop','markerName','tablePasteChainId','tableCell','insert','endRow','createPositionBefore','updateMarker','getRows','createRangeIn','getSuggestionCallback','differ','fill','start','commands','attributes','getAttributes','change','first','suggestion:formatBlock:tablePasteCell','editor','add','fromEntries','editing','keys','for','Users','_replaceTableSlotCell','ck-suggestion-marker--active','tableCellSuggestion','insertContent','reduce','showSuggestionHighlights','removeMarkers','accept','registerPostFixer','startsWith','deletion','table','createRangeOn','map','position','editingDowncast','getSelectionAffectedTableCells','element','document','forceDefaultExecution','high','isEqual','batch','redo','nextSibling','nodeAfter','formatBlock','getChild'];(function(_0x9bbdf8,_0xb39dec){const _0xf81448=function(_0x3ad426){while(--_0x3ad426){_0x9bbdf8['push'](_0x9bbdf8['shift']());}};_0xf81448(++_0xb39dec);}(_0xb39d,0x8c));const _0xf814=function(_0x9bbdf8,_0xb39dec){_0x9bbdf8=_0x9bbdf8-0x0;let _0xf81448=_0xb39d[_0x9bbdf8];return _0xf81448;};import{getTranslation as _0x369705}from'../utils/common-translations';import{Plugin as _0x1a1d97}from'ckeditor5/src/core';import{uid as _0xd02e8e,priorities as _0x2df47b}from'ckeditor5/src/utils';import _0x303f88 from'./table';const le=['tableCellBorderWidth',_0xf814('0x33'),'tableCellBorderStyle','tableCellHorizontalAlignment',_0xf814('0x4e'),_0xf814('0x4d'),_0xf814('0x6e')],ae=Object[_0xf814('0x9d')](le['map'](_0x158289=>[_0x158289,null]));export default class At extends _0x1a1d97{static get[_0xf814('0x80')](){return[_0x303f88];}['afterInit'](){const _0x10345f=this[_0xf814('0x9b')];if(!_0x10345f[_0xf814('0x76')][_0xf814('0x30')](_0xf814('0x82')))return;const _0x192601=_0x10345f[_0xf814('0x76')][_0xf814('0x41')](_0xf814('0x6d')),_0x57b270=_0x10345f['plugins'][_0xf814('0x41')](_0xf814('0x83')),_0x157393=_0x10345f[_0xf814('0x76')][_0xf814('0x41')](_0x303f88),_0x138959=_0x10345f[_0xf814('0x76')][_0xf814('0x41')]('TableClipboard');_0x157393[_0xf814('0x59')][_0xf814('0x3b')](_0xf814('0x55'),_0xf814('0x58')),_0x10345f['model'][_0xf814('0x21')][_0xf814('0x31')](_0xf814('0xa4'),{'allowIn':_0xf814('0x8a'),'allowContentOf':_0xf814('0x8a'),'isLimit':!0x0}),_0x10345f['conversion'][_0xf814('0x22')]({'model':_0xf814('0xa4'),'view':_0xf814('0x4c')});let _0x4bd469=null;_0x10345f[_0xf814('0x43')]['on'](_0xf814('0x0'),(_0x23fa6c,_0x59e65a)=>{const [_0x155b40,_0x36e395]=_0x59e65a,_0x37ae3c=_0x59e65a[_0x59e65a[_0xf814('0x6b')]-0x1];_0x37ae3c&&_0x37ae3c[_0xf814('0x10')]||_0x192601[_0xf814('0x2f')]||this[_0xf814('0x9b')][_0xf814('0x95')][_0xf814('0x41')](_0xf814('0x1c'))[_0xf814('0x2a')]&&function(_0x11586a,_0x3f3369,_0x1c4dd4,_0x3365d3,_0x1d215f){if(_0x3f3369&&!_0x3f3369['is']('documentSelection'))return!0x1;const _0x2f4e6f=_0x1d215f[_0xf814('0x4a')](_0x11586a,_0x1c4dd4);if(!_0x2f4e6f||!fe(_0x2f4e6f,void 0x0,_0x3365d3))return!0x1;const _0x438bdd=_0x3365d3[_0xf814('0xd')](_0x1c4dd4[_0xf814('0xf')][_0xf814('0x69')]);if(!_0x438bdd['length'])return!0x1;const _0x15f694=_0x438bdd[0x0][_0xf814('0x5b')]('table'),_0x2085af=_0x3365d3['getRowIndexes'](_0x438bdd),_0x37365b=_0x3365d3[_0xf814('0x23')](_0x438bdd),_0xafa7bc={'startRow':_0x2085af[_0xf814('0x99')],'endRow':_0x2085af[_0xf814('0x66')],'startColumn':_0x37365b[_0xf814('0x99')],'endColumn':_0x37365b[_0xf814('0x66')]};return 0x1==_0x438bdd[_0xf814('0x6b')]&&(_0xafa7bc[_0xf814('0x8c')]+=_0x3365d3[_0xf814('0x8f')](_0x2f4e6f)-0x1,_0xafa7bc[_0xf814('0x1a')]+=_0x3365d3['getColumns'](_0x2f4e6f)-0x1),fe(_0x15f694,_0xafa7bc,_0x3365d3);}(_0x155b40,_0x36e395,_0x10345f[_0xf814('0x43')],_0x57b270,_0x138959)&&(_0x23fa6c[_0xf814('0x87')](),_0x4bd469={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x10345f[_0xf814('0x43')]['change'](()=>{_0x10345f['model'][_0xf814('0x0')](_0x59e65a[0x0],_0x59e65a[0x1],_0x59e65a[0x2],{'forceDefaultExecution':!0x0});const _0x34aa56=_0xd02e8e(),{rowInsertionRanges:_0x1845f0,columnInsertionRanges:_0x5b6a70,insertionRanges:_0x315958,deletionRanges:_0x4696f6,cells:_0x4a4cd3}=_0x4bd469;_0x1845f0[_0xf814('0x6b')]&&_0x192601['markMultiRangeInsertion'](_0x1845f0,_0xf814('0x55'),{'tablePasteChainId':_0x34aa56}),_0x5b6a70[_0xf814('0x6b')]&&_0x192601['markMultiRangeInsertion'](_0x5b6a70,_0xf814('0x58'),{'tablePasteChainId':_0x34aa56}),_0x315958['length']&&_0x192601['markMultiRangeInsertion'](_0x315958,_0xf814('0x67'),{'tablePasteChainId':_0x34aa56,'skipNestingCheck':!0x0}),_0x4696f6[_0xf814('0x6b')]&&_0x192601[_0xf814('0x3e')](_0x4696f6,_0xf814('0x67'),{'tablePasteChainId':_0x34aa56,'skipNestingCheck':!0x0});const _0x38cf89=_0x192601['markMultiRangeBlockFormat'](_0x4a4cd3[_0xf814('0xa')](({element:_0x96247})=>_0x96247),{'formatGroupId':_0xd02e8e()},[],'tablePasteCell',{'tablePasteChainId':_0x34aa56});if(_0x38cf89){const _0x108091=_0x38cf89[_0xf814('0x2b')](),_0x44331d=[];for(const {element:_0x17a87d,attributes:_0x13f98b}of _0x4a4cd3){if(!_0x13f98b)continue;const _0x4e7c35=_0x10345f['model'][_0xf814('0x9')](_0x17a87d),_0x2c7a46=_0x108091['find'](_0x2e987e=>_0x2e987e[_0xf814('0x63')]()[_0xf814('0x12')](_0x4e7c35));_0x2c7a46&&_0x44331d[_0xf814('0x3b')]([_0x2c7a46[_0xf814('0x52')],_0x13f98b]);}_0x44331d[_0xf814('0x6b')]&&_0x38cf89['setAttribute'](_0xf814('0x3c'),Object['fromEntries'](_0x44331d));}_0x4bd469=null;}));},{'priority':_0x2df47b[_0xf814('0x11')]+0xa}),_0x10345f[_0xf814('0x76')][_0xf814('0x41')](_0xf814('0x82'))['on'](_0xf814('0xa2'),(_0x5a809e,_0x5ede0c)=>{const [_0x3bcf88,_0x23e9f2,,_0x5cec51]=_0x5ede0c;if(!_0x4bd469)return;_0x5a809e['stop']();const _0x2b76f0=_0x3bcf88[_0xf814('0x6a')],_0x378a5c=_0x23e9f2,_0x4bd5e7=ce(_0x2b76f0),_0x16bce4=ce(_0x378a5c);_0x5a809e['return']=_0x2b76f0;let _0x32b4d8=null,_0x534602=null;if(_0x16bce4||_0x4bd5e7){if(_0x4bd5e7&&!_0x16bce4){_0x5cec51[_0xf814('0x25')](_0x2b76f0[_0xf814('0x18')](0x0));for(const _0x47ed5e of Array[_0xf814('0x53')](_0x378a5c[_0xf814('0x1e')]()))_0x5cec51[_0xf814('0x8b')](_0x47ed5e,_0x2b76f0,_0xf814('0x37'));const _0x5d06e9=_0x4bd469['rowInsertionIndexes'][_0xf814('0x72')](_0x3bcf88[_0xf814('0x3a')]),_0x840d50=_0x4bd469[_0xf814('0x1f')][_0xf814('0x72')](_0x3bcf88[_0xf814('0x7a')]);_0x5d06e9||_0x840d50||(_0x32b4d8=_0x5cec51['createRangeIn'](_0x2b76f0));}else _0x16bce4&&!_0x4bd5e7&&(_0x534602=_0x5cec51['createRangeIn'](_0x2b76f0));}else{const _0x4b7282=_0x5cec51[_0xf814('0x56')]('tableCellSuggestion'),_0x117ec5=_0x5cec51[_0xf814('0x56')](_0xf814('0xa4'));_0x5cec51[_0xf814('0x2e')](_0x5cec51[_0xf814('0x90')](_0x2b76f0),_0x117ec5),_0x5cec51['insert'](_0x4b7282,_0x2b76f0,0x0);for(const _0x3ab8f2 of Array[_0xf814('0x53')](_0x378a5c[_0xf814('0x1e')]()))_0x5cec51[_0xf814('0x8b')](_0x3ab8f2,_0x4b7282,'end');_0x32b4d8=_0x5cec51[_0xf814('0x9')](_0x4b7282),_0x534602=_0x5cec51[_0xf814('0x9')](_0x117ec5);}const _0x11ab94=Array[_0xf814('0x53')](_0x378a5c[_0xf814('0x97')]())['filter'](([_0x2fdd67])=>le[_0xf814('0x72')](_0x2fdd67));_0x4bd469[_0xf814('0x3f')][_0xf814('0x3b')]({'element':_0x2b76f0,'attributes':_0x11ab94[_0xf814('0x6b')]?Object[_0xf814('0x9d')](_0x11ab94):null}),_0x32b4d8&&_0x4bd469[_0xf814('0x7c')][_0xf814('0x3b')](_0x32b4d8),_0x534602&&_0x4bd469[_0xf814('0x19')][_0xf814('0x3b')](_0x534602);},{'priority':_0xf814('0x11')}),_0x57b270['on'](_0xf814('0x24'),(_0x186b3b,_0x559207)=>{const [_0x4ef6db,_0x131b4b={}]=_0x559207;if(!_0x4bd469)return;const _0x41e3c1=_0x131b4b['at']||0x0,_0x760e3b=_0x131b4b['columns']||0x1;_0x4bd469[_0xf814('0x1f')]=new Array(_0x760e3b)[_0xf814('0x93')](_0x41e3c1)[_0xf814('0xa')]((_0x17a92c,_0x428137)=>_0x17a92c+_0x428137);for(const {cell:_0xe5fb14}of _0x57b270[_0xf814('0x60')](_0x4ef6db,{'startColumn':_0x41e3c1,'endColumn':_0x41e3c1+_0x760e3b-0x1}))_0x4bd469[_0xf814('0x74')][_0xf814('0x3b')](_0x10345f[_0xf814('0x43')][_0xf814('0x9')](_0xe5fb14));},{'priority':_0xf814('0x26')}),_0x57b270['on'](_0xf814('0x6c'),(_0x26d5fd,_0x2d5eb3)=>{const [_0x2fb40e,_0x1b1b10={}]=_0x2d5eb3;if(!_0x4bd469)return;const _0x448653=_0x1b1b10['at']||0x0,_0x15a99b=_0x1b1b10[_0xf814('0x2d')]||0x1;_0x4bd469['rowInsertionIndexes']=new Array(_0x15a99b)[_0xf814('0x93')](_0x448653)[_0xf814('0xa')]((_0x44a289,_0x28d53d)=>_0x44a289+_0x28d53d);for(const {cell:_0x498498}of _0x57b270[_0xf814('0x60')](_0x2fb40e,{'startRow':_0x448653,'endRow':_0x448653+_0x15a99b-0x1}))_0x4bd469[_0xf814('0x78')][_0xf814('0x3b')](_0x10345f[_0xf814('0x43')][_0xf814('0x9')](_0x498498));},{'priority':_0xf814('0x26')}),_0x192601['_descriptionFactory'][_0xf814('0x2c')](_0x1fc670=>{if(_0x1fc670[_0xf814('0x7f')]&&_0x1fc670[_0xf814('0x7f')]['startsWith'](_0xf814('0x67')))return _0x1fc670[_0xf814('0x44')]?{}:{'type':_0xf814('0x64'),'content':_0x369705(_0x10345f[_0xf814('0x36')],'*Replace\x20table\x20cells*')};});const _0x10ad01=()=>!0x1;for(const _0x34de02 of['tablePaste',_0xf814('0x58'),'tablePasteRow',_0xf814('0x71')])_0x192601[_0xf814('0x48')][_0xf814('0x40')]('insertion',_0x34de02,_0xf814('0x32'),_0x10ad01),_0x192601['_suggestionFactory'][_0xf814('0x40')](_0xf814('0x7'),_0x34de02,_0xf814('0x32'),_0x10ad01),_0x192601[_0xf814('0x48')][_0xf814('0x40')](_0xf814('0x17'),_0x34de02,_0xf814('0x32'),_0x10ad01);_0x192601[_0xf814('0x48')]['registerCustomCallback'](_0xf814('0x17'),'tablePasteCell',_0xf814('0x86'),_0x10ad01),_0x192601[_0xf814('0x48')]['registerCustomCallback'](_0xf814('0x17'),_0xf814('0x71'),_0xf814('0x4'),(_0x412d29,_0x11e5db,_0x18b4a8)=>{const _0x4d3978=_0x412d29[_0xf814('0xa')](_0x20e472=>_0x20e472[_0xf814('0x50')]())[_0xf814('0x34')](_0x14eedf=>_0x14eedf),_0x589d59=new Map(_0x4d3978[_0xf814('0xa')](_0x30452e=>[_0x30452e,null]));if(_0x4bd469)for(const {element:_0x17f436,attributes:_0x2158ed}of _0x4bd469[_0xf814('0x3f')])_0x2158ed&&_0x589d59[_0xf814('0x20')](_0x17f436,_0x2158ed);else{if(_0x18b4a8&&_0x18b4a8['markerAttributes'])for(const [_0x15a1e7,_0x55fd53]of Object[_0xf814('0x57')](_0x18b4a8[_0xf814('0x3c')])){const _0x178c74=_0x10345f[_0xf814('0x43')][_0xf814('0x51')][_0xf814('0x41')](_0x15a1e7),_0x5157d5=_0x178c74?_0x178c74[_0xf814('0x63')]()['getContainedElement']():null;_0x5157d5&&_0x589d59['set'](_0x5157d5,_0x55fd53);}}_0x10345f[_0xf814('0x43')][_0xf814('0x98')](_0x4fd847=>{for(const [_0x57c704,_0x385451]of _0x589d59)_0x4fd847[_0xf814('0x73')]({...ae,..._0x385451},_0x57c704);});});const _0x656a7d=(_0xec2045,_0x20f81a)=>{_0x192601[_0xf814('0x48')][_0xf814('0x40')](_0xec2045,'tablePaste',_0x20f81a,(_0x22698c,_0x5a498e,_0x330b6c)=>{_0x10345f[_0xf814('0x43')]['change'](_0x35ae5a=>{const _0x22ba13=[];for(const _0x2a1063 of _0x22698c){const _0xec5c3e=_0x2a1063[_0xf814('0x94')][_0xf814('0x16')];_0xec5c3e['is']('element',_0xf814('0xa4'))&&_0x22ba13[_0xf814('0x3b')](_0xec5c3e);}_0x192601[_0xf814('0x48')][_0xf814('0x91')](_0xec2045,null,_0x20f81a)(_0x22698c,_0x5a498e,_0x330b6c);for(const _0x87c420 of _0x22ba13)'$graveyard'!=_0x87c420[_0xf814('0x3d')][_0xf814('0x5c')]&&_0x35ae5a[_0xf814('0x38')](_0x87c420);});});};_0x656a7d('insertion',_0xf814('0x4')),_0x656a7d('insertion',_0xf814('0x86')),_0x656a7d(_0xf814('0x7'),_0xf814('0x4')),_0x656a7d(_0xf814('0x7'),_0xf814('0x86')),_0x192601[_0xf814('0x48')][_0xf814('0x40')](_0xf814('0x64'),'tablePasteRow',_0xf814('0x86'),_0x289226=>{const _0x5674e7=_0x289226[_0xf814('0xa')](_0x2833b1=>_0x2833b1['getContainedElement']()),_0x6dca29=_0x5674e7[0x0][_0xf814('0x5b')](_0xf814('0x8')),{minRow:_0x379748,maxRow:_0x4957fd}=_0x157393[_0xf814('0x49')](_0x5674e7);_0x57b270[_0xf814('0x84')](_0x6dca29,{'at':_0x379748,'rows':_0x4957fd-_0x379748+0x1});}),_0x192601[_0xf814('0x48')][_0xf814('0x40')]('insertion',_0xf814('0x58'),_0xf814('0x86'),_0x22a0a1=>{const _0x1d013c=_0x22a0a1[_0xf814('0xa')](_0x493134=>_0x493134[_0xf814('0x50')]()),_0x2c13c7=_0x1d013c[0x0][_0xf814('0x5b')]('table'),{minColumn:_0x1c448b,maxColumn:_0x2e000d}=_0x157393['_getCoordsForCells'](_0x1d013c);_0x57b270[_0xf814('0x4f')](_0x2c13c7,{'at':_0x1c448b,'columns':_0x2e000d-_0x1c448b+0x1});});const _0x1154b1=(_0x5d99c6,_0x1d5b8d)=>{if(!_0x1d5b8d[_0xf814('0x7f')]||!_0x1d5b8d['subType']['startsWith']('tablePaste'))return;const _0x59fc89=_0x1d5b8d[_0xf814('0x96')][_0xf814('0x89')],_0x48a0cb=_0x192601['getSuggestions']()[_0xf814('0x34')](_0xcdceb8=>_0xcdceb8[_0xf814('0x77')]&&_0xcdceb8['attributes']&&_0xcdceb8[_0xf814('0x96')][_0xf814('0x89')]==_0x59fc89);_0x48a0cb['length']&&_0x1d5b8d[_0xf814('0x35')]()['length']!=_0x48a0cb[_0xf814('0x6b')]&&_0x48a0cb[_0xf814('0x1')]((_0x314282,_0x88cd7)=>(_0x314282[_0xf814('0x85')]=_0x88cd7,_0x88cd7[_0xf814('0x44')]=_0x314282,_0x88cd7));};function _0x320187(_0x4ad8c9,_0x839237=!0x0){const {id:_0x39fb45}=_0x192601[_0xf814('0x46')](_0x4ad8c9['markerName']),_0x5323f0=['ck-suggestion-marker',_0xf814('0x68')],_0x37fc07=_0x192601[_0xf814('0x39')]['includes'](_0x4ad8c9[_0xf814('0x88')]);return _0x37fc07&&_0x5323f0['push'](_0xf814('0xa3')),{'classes':_0x5323f0,'attributes':{'data-suggestion':_0x39fb45},'priority':_0x37fc07&&_0x839237?0xbc2:0xbb8};}_0x192601['on']('suggestionLoaded',_0x1154b1,{'priority':'high'}),_0x192601['on'](_0xf814('0x1b'),_0x1154b1,{'priority':_0xf814('0x11')}),_0x10345f[_0xf814('0x43')]['document'][_0xf814('0x5')](()=>{let _0x3add41=!0x1;const _0x10f7c7=Array[_0xf814('0x53')](_0x10345f[_0xf814('0x43')][_0xf814('0xf')]['differ']['getChangedMarkers']());for(const {name:_0x22f0b4,data:_0x38f986}of _0x10f7c7){const {group:_0x460cf1,type:_0x18caa6,id:_0x3262b1}=_0x192601[_0xf814('0x46')](_0x22f0b4);if(_0xf814('0x70')!=_0x460cf1||_0xf814('0x7')!=_0x18caa6||_0x38f986[_0xf814('0x5d')])continue;if(!_0x192601[_0xf814('0x45')](_0x3262b1))continue;const _0x257ccf=_0x192601['getSuggestion'](_0x3262b1)[_0xf814('0x62')](),_0x4d297d=_0x10345f[_0xf814('0x76')][_0xf814('0x41')](_0xf814('0xa1'))['me'];for(const _0x2c42f7 of _0x192601['getSuggestions']()){if(!_0x2c42f7[_0xf814('0x77')]||_0x2c42f7[_0xf814('0x5e')]!=_0x4d297d)continue;if(_0xf814('0x17')!=_0x2c42f7[_0xf814('0x7e')]||_0xf814('0x71')!=_0x2c42f7['subType'])continue;if(_0x2c42f7[_0xf814('0x62')]()['every'](_0x43708c=>_0x257ccf[_0xf814('0x4b')](_0x9cb2ee=>_0x9cb2ee[_0xf814('0x65')](_0x43708c,!0x0))))for(const _0x58b598 of _0x2c42f7[_0xf814('0x35')]())_0x58b598[_0xf814('0x77')]&&(_0x58b598['discard'](),_0x3add41=!0x0);}}return _0x3add41;}),_0x10345f['model'][_0xf814('0xf')][_0xf814('0x5')](_0x3a9508=>{const _0x3aaa01=_0x10345f[_0xf814('0x95')][_0xf814('0x41')](_0xf814('0x14'));if(!_0x3aaa01||!_0x3aaa01[_0xf814('0x7d')][_0xf814('0x30')](_0x3a9508[_0xf814('0x13')]))return!0x1;let _0x2d18a0=!0x1;const _0x4bee1c=_0x10345f[_0xf814('0x76')][_0xf814('0x41')]('Users')['me'],_0x5393e6=_0x10345f[_0xf814('0x43')][_0xf814('0xf')][_0xf814('0x92')][_0xf814('0x1d')](),_0x4de3c9=Array[_0xf814('0x53')](_0x10345f[_0xf814('0x43')][_0xf814('0xf')][_0xf814('0x92')]['getChangedMarkers']())[_0xf814('0x34')](({name:_0x5e9c7d,data:_0x5baab7})=>{const {group:_0x5146a4,subType:_0x2dfb2c,authorId:_0x2a57b7}=_0x192601[_0xf814('0x46')](_0x5e9c7d);return'suggestion'==_0x5146a4&&_0xf814('0x67')==_0x2dfb2c&&_0x2a57b7==_0x4bee1c['id']&&!_0x5baab7[_0xf814('0x5d')];});for(const _0x1c3d09 of _0x5393e6){if(_0xf814('0x8b')!=_0x1c3d09['type']||_0xf814('0xa4')!=_0x1c3d09[_0xf814('0x52')]||0x1!=_0x1c3d09[_0xf814('0x6b')])continue;const _0x5ce1e5=_0x3a9508['createRange'](_0x1c3d09[_0xf814('0xb')],_0x1c3d09[_0xf814('0xb')][_0xf814('0x27')](0x1));if(!_0x4de3c9['find'](({data:_0x5a4575})=>_0x5a4575['newRange'][_0xf814('0x12')](_0x5ce1e5)))for(const {name:_0xeeeae3,data:_0x2e4861}of _0x4de3c9)if(_0x5ce1e5['containsRange'](_0x2e4861[_0xf814('0x47')])){_0x3a9508[_0xf814('0x8e')](_0xeeeae3,{'range':_0x5ce1e5}),_0x2d18a0=!0x0;break;}}return _0x2d18a0;}),_0x10345f[_0xf814('0x43')][_0xf814('0xf')][_0xf814('0x5')](_0x341c18=>{let _0x447977=!0x1;const _0x4d304b=_0x10345f[_0xf814('0x76')][_0xf814('0x41')](_0xf814('0xa1'))['me'],_0x27430a=_0x192601[_0xf814('0x42')]()[_0xf814('0x34')](_0x348d34=>_0x348d34[_0xf814('0x77')]&&_0x348d34['author']==_0x4d304b),_0x332214=new Set(),_0x148137=new Set();for(const _0x4582dd of _0x27430a)if(_0xf814('0x67')==_0x4582dd[_0xf814('0x7f')])for(const _0x5bcd24 of _0x4582dd[_0xf814('0x2b')]()){const _0x293be8=_0x5bcd24[_0xf814('0x63')]()[_0xf814('0x50')]();if(_0x293be8){if(_0x293be8['is'](_0xf814('0xe'),_0xf814('0xa4'))&&ce(_0x293be8)){_0x4582dd[_0xf814('0x75')](_0x5bcd24[_0xf814('0x52')]),_0x332214[_0xf814('0x9c')](_0x293be8),_0x447977=!0x0;const _0x5be2e3=_0x293be8[_0xf814('0x15')],_0x2041d6=_0x293be8[_0xf814('0x5a')],_0x163a4b=_0x5be2e3&&_0x5be2e3['is'](_0xf814('0xe'),'tableCellSuggestion'),_0x53f4b4=_0x2041d6&&_0x2041d6['is']('element',_0xf814('0xa4'));_0x163a4b&&!_0x332214[_0xf814('0x30')](_0x5be2e3)&&_0x148137[_0xf814('0x9c')](_0x5be2e3),_0x53f4b4&&!_0x332214[_0xf814('0x30')](_0x2041d6)&&_0x148137[_0xf814('0x9c')](_0x2041d6);}else _0x293be8['is'](_0xf814('0xe'),_0xf814('0x7b'))&&_0x293be8[_0xf814('0x29')]&&(_0x4582dd['removeMarker'](_0x5bcd24[_0xf814('0x52')]),_0x447977=!0x0);}}else{if(_0xf814('0x71')==_0x4582dd[_0xf814('0x7f')]){if(!_0x4582dd[_0xf814('0x96')]||!_0x4582dd[_0xf814('0x96')]['tablePasteChainId'])continue;const _0x49e0ca=_0x4582dd['attributes'][_0xf814('0x3c')];if(_0x49e0ca&&Object[_0xf814('0x9f')](_0x49e0ca)['length'])continue;const _0x2fb172=_0x4582dd[_0xf814('0x96')][_0xf814('0x89')];let _0x5cd6e7=!0x0,_0x5012de=!0x0;for(const _0x2fd222 of _0x27430a)if(_0x2fd222[_0xf814('0x7f')]&&_0x2fd222[_0xf814('0x7f')][_0xf814('0x6')](_0xf814('0x67'))){if(!_0x2fd222[_0xf814('0x96')]['tablePasteChainId']){_0x5012de=!0x1;break;}if(_0x2fd222['id']!=_0x4582dd['id']&&_0x2fd222[_0xf814('0x96')][_0xf814('0x89')]==_0x2fb172){_0x5cd6e7=!0x1;break;}}_0x5012de&&_0x5cd6e7&&(_0x4582dd[_0xf814('0x3')](),_0x447977=!0x0);}}for(const _0x4c6c21 of _0x332214)_0x341c18['remove'](_0x4c6c21);for(const _0x2a178c of _0x148137)_0x341c18[_0xf814('0x38')](_0x2a178c);return _0x447977;}),_0x10345f['conversion'][_0xf814('0xa0')](_0xf814('0xc'))['markerToHighlight']({'model':_0xf814('0x9a'),'view':(_0x2f09c3,_0x1635ff)=>_0x320187(_0x2f09c3),'converterPriority':_0xf814('0x11')}),_0x10345f[_0xf814('0x79')]['for'](_0xf814('0x6f'))['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xdc5f2a,_0x588cb1)=>_0x588cb1[_0xf814('0x28')][_0xf814('0x2')]?_0x320187(_0xdc5f2a,!0x1):null,'converterPriority':_0xf814('0x11')});const _0x1def38=_0x10345f[_0xf814('0x9e')]['view'];this[_0xf814('0x61')](_0x1def38['document'],_0xf814('0x54'),(_0x4142e5,_0x1141ea)=>{const _0x2403a4=[];for(const _0x1f1691 of _0x1def38['createRangeIn'](_0x1141ea['content'])[_0xf814('0x81')]())_0x1f1691['is'](_0xf814('0xe'),_0xf814('0x4c'))&&_0x2403a4[_0xf814('0x3b')](_0x1f1691);_0x1def38[_0xf814('0x98')](_0x2b41a4=>{for(const _0x1618e1 of _0x2403a4)_0x2b41a4[_0xf814('0x5f')](_0x2b41a4[_0xf814('0x90')](_0x1618e1),_0x2b41a4[_0xf814('0x8d')](_0x1618e1)),_0x2b41a4[_0xf814('0x25')](_0x1618e1);});});}}function ce(_0x355e89){if(_0x355e89[_0xf814('0x29')])return!0x0;const _0x2df947=_0x355e89[_0xf814('0x18')](0x0);return _0x2df947['is'](_0xf814('0xe'),_0xf814('0x7b'))&&_0x2df947['isEmpty'];}function fe(_0x192cef,_0x2f8967={},_0x5a25ac){for(const {isAnchor:_0x3ca2d3,cellHeight:_0x3f80a3,cellWidth:_0x266fda}of _0x5a25ac[_0xf814('0x60')](_0x192cef,{'includeAllSlots':!0x0,..._0x2f8967}))if(!_0x3ca2d3||0x1!=_0x3f80a3||0x1!=_0x266fda)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd9da=['model','accept','get','getSuggestionCallback','getTableColumnsWidths','getSuggestions','TableColumnResizeEditing','formatGroupId','Users','tableWidth','locale','formatBlock','markBlockFormat','getColumnGroupElement','getAttribute','data','resizeTable','columnWidths','commandParams','afterInit','_descriptionFactory','formatInline','handleSuggestionDescription','format','discard','table','enableCommand','registerCustomCallback','editor','handleResizeTableWidthCommand','change','_suggestionFactory','document','TrackChangesEditing','getContainedElement','getSelectedElement','bind','has','type','plugins'];(function(_0x364a48,_0xd9da47){const _0x3bab15=function(_0x25b1a6){while(--_0x25b1a6){_0x364a48['push'](_0x364a48['shift']());}};_0x3bab15(++_0xd9da47);}(_0xd9da,0x148));const _0x3bab=function(_0x364a48,_0xd9da47){_0x364a48=_0x364a48-0x0;let _0x3bab15=_0xd9da[_0x364a48];return _0x3bab15;};import{Plugin as _0x38e101}from'ckeditor5/src/core';import{getTranslation as _0x6379c4}from'../utils/common-translations';export default class It extends _0x38e101{[_0x3bab('0xb')](){if(!this['editor'][_0x3bab('0x1f')][_0x3bab('0x1d')](_0x3bab('0x26')))return;const _0x5168ff=this[_0x3bab('0x14')][_0x3bab('0x1f')][_0x3bab('0x22')]('TrackChangesEditing');_0x5168ff[_0x3bab('0x12')]('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5168ff[_0x3bab('0x17')][_0x3bab('0x13')](_0x3bab('0x3'),_0x3bab('0x8'),_0x3bab('0x21'),_0x5168ff['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,_0x3bab('0x10'))),_0x5168ff['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3bab('0x8'),_0x3bab('0x10'),_0x5168ff[_0x3bab('0x17')][_0x3bab('0x23')](_0x3bab('0x3'),null,_0x3bab('0x21'))),_0x5168ff[_0x3bab('0xc')]['registerDescriptionCallback'](this[_0x3bab('0xe')][_0x3bab('0x1c')](this));}[_0x3bab('0x15')](_0x37db1f,_0x266570){const _0xad4412=this['editor'][_0x3bab('0x1f')]['get'](_0x3bab('0x19')),_0xe659b2=this[_0x3bab('0x14')]['plugins'][_0x3bab('0x22')](_0x3bab('0x26')),_0x2591ef=_0x266570[_0x3bab('0x11')]||this[_0x3bab('0x14')][_0x3bab('0x20')][_0x3bab('0x18')]['selection'][_0x3bab('0x1b')]();this['editor'][_0x3bab('0x20')][_0x3bab('0x16')](()=>{const _0x3a151b=_0xe659b2[_0x3bab('0x5')](_0x2591ef);let _0x551d0a=_0x3a151b?_0xe659b2[_0x3bab('0x24')](_0x3a151b):null,_0x555863=_0x2591ef[_0x3bab('0x6')](_0x3bab('0x1'))||null;const _0x3a246d=_0x266570['tableWidth']||_0x555863,_0x387256=_0x266570['columnWidths']||_0x551d0a,_0x3f369b=this[_0x3bab('0x14')][_0x3bab('0x1f')][_0x3bab('0x22')](_0x3bab('0x0'))['me'];for(const _0x5cd954 of _0xad4412[_0x3bab('0x25')]()){const _0x10989f=_0x5cd954[_0x3bab('0x1a')]();if('resizeTable'===_0x5cd954['subType']&&_0x10989f===_0x2591ef){_0x5cd954['author']!==_0x3f369b&&_0x5cd954[_0x3bab('0x10')]();const _0x5642f5=_0x5cd954[_0x3bab('0x7')][_0x3bab('0xa')];_0x555863=_0x5642f5[0x0][_0x3bab('0x1')],_0x551d0a=_0x5642f5[0x0][_0x3bab('0x9')];break;}}_0x37db1f({'table':_0x2591ef,'tableWidth':_0x3a246d,'columnWidths':_0x387256}),_0xad4412[_0x3bab('0x4')](_0x2591ef,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x555863,'columnWidths':_0x551d0a}],'formatGroupId':_0x3bab('0x8')},[],'resizeTable');});}[_0x3bab('0xe')](_0x37f080){if(_0x3bab('0x3')!=_0x37f080[_0x3bab('0x1e')]&&_0x3bab('0xd')!=_0x37f080[_0x3bab('0x1e')])return;const {data:_0x5658c5}=_0x37f080;if(_0x5658c5&&'resizeTable'===_0x5658c5[_0x3bab('0x27')]){const _0x4e9e83='*Format:*\x20resize\x20table';return{'type':_0x3bab('0xf'),'content':_0x6379c4(this[_0x3bab('0x14')][_0x3bab('0x2')],_0x4e9e83)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2dc4=['setTableColumnHeader','_descriptionFactory','stop','data-suggestion','unbindElementFromMarkerName','ck-suggestion-marker-','highest','FORMAT_REGULAR_ROW','markerName','editor','TrackChangesEditing','get','setAttribute','removeClass','accept','mapper','_suggestionFactory','name','FORMAT_REGULAR_COLUMN','writer','includes','consume','requires','_acceptFormatSuggestionCallbackFactory','addClass','_handleLegacySuggestions','addMarker:suggestion','TableEditing','setTableRowHeader','FORMAT_HEADER_COLUMN','afterInit','activeMarkers','getSuggestion','markerRange','formatBlock','registerAttributeLabel','has','ck-suggestion-marker--active','markerNameToElements','registerCustomCallback','forceValue','format','_enableDefaultAttributesIntegration','parent','headingRows','commandParams','getCellLocation','nodeBefore','FORMAT_HEADER_ROW','plugins','registerDescriptionCallback','data','item','commandName','locale','nodeAfter','cell','start','downcastDispatcher','_registerLegacyDescription','editing','type'];(function(_0x279338,_0x2dc467){const _0x17785c=function(_0x2b0d98){while(--_0x2b0d98){_0x279338['push'](_0x279338['shift']());}};_0x17785c(++_0x2dc467);}(_0x2dc4,0x10a));const _0x1778=function(_0x279338,_0x2dc467){_0x279338=_0x279338-0x0;let _0x17785c=_0x2dc4[_0x279338];return _0x17785c;};import{Plugin as _0x56d380}from'ckeditor5/src/core';import _0x3061a1 from'./table';import{getTranslation as _0x5aef08}from'../utils/common-translations';export default class St extends _0x56d380{static get[_0x1778('0x4')](){return[_0x3061a1];}[_0x1778('0xc')](){const _0xcb79d1=this['editor'];if(!_0xcb79d1[_0x1778('0x1f')][_0x1778('0x12')](_0x1778('0x9')))return;const _0x35e502=_0xcb79d1['locale'],_0x2a0867=_0xcb79d1['plugins'][_0x1778('0x37')]('TrackChangesEditing');_0x2a0867[_0x1778('0x18')](_0x1778('0xa'),[],[_0x1778('0x1a')]),_0x2a0867['_enableDefaultAttributesIntegration']('setTableColumnHeader',[],['headingColumns']),_0x2a0867[_0x1778('0x2d')][_0x1778('0x11')](_0x1778('0x1a'),_0x5aef08(_0x35e502,_0x1778('0x1e'))),_0x2a0867[_0x1778('0x2d')][_0x1778('0x11')]('headingColumns',_0x5aef08(_0x35e502,_0x1778('0xb'))),this[_0x1778('0x7')]();}['_handleLegacySuggestions'](){const _0x4edddf=this['editor']['plugins'][_0x1778('0x37')](_0x1778('0x36')),_0x4590fe=this['editor']['plugins'][_0x1778('0x37')]('TableUtils'),_0x11fd98=this[_0x1778('0x35')]['plugins']['get'](_0x3061a1)[_0x1778('0x5')]();function _0x41e532({showActiveMarker:_0x56e534=!0x0,setDataAttribute:_0x3f44eb=!0x0}={}){return(_0x5de40c,_0x56fdfa,_0x33b2d)=>{const {type:_0x5e33bb,id:_0x1a2fb1}=_0x4edddf['_splitMarkerName'](_0x56fdfa[_0x1778('0x34')]),_0x19138f=_0x4edddf[_0x1778('0xe')](_0x1a2fb1),_0x3d7310=_0x19138f[_0x1778('0x21')];if(_0x1778('0x10')!=_0x19138f[_0x1778('0x2b')]||!_0x3d7310||'setTableColumnHeader'!=_0x3d7310[_0x1778('0x23')])return;if(_0x56fdfa[_0x1778('0x22')])return void _0x5de40c[_0x1778('0x2e')]();if(!_0x33b2d['consumable'][_0x1778('0x3')](_0x56fdfa[_0x1778('0xf')],_0x5de40c[_0x1778('0x3d')]))return;const _0x5dd2a2=_0x56fdfa['markerRange'][_0x1778('0x27')][_0x1778('0x25')],_0x46e6ed=_0x56fdfa[_0x1778('0xf')]['end'][_0x1778('0x1d')],_0x4faae2=_0x5dd2a2[_0x1778('0x19')][_0x1778('0x19')],{column:_0xf71748}=_0x4590fe[_0x1778('0x1c')](_0x5dd2a2),{column:_0xce92c}=_0x4590fe[_0x1778('0x1c')](_0x46e6ed);for(let _0x5565fb=_0xf71748;_0x5565fb<=_0xce92c;_0x5565fb++){const _0x2ea430=_0x4590fe['createTableWalker'](_0x4faae2,{'column':_0x5565fb,'includeAllSlots':!0x1});for(const _0x12eb96 of _0x2ea430){const _0x3607d9=_0x12eb96[_0x1778('0x26')],_0x16f443=_0x33b2d[_0x1778('0x3b')]['toViewElement'](_0x3607d9);_0x33b2d[_0x1778('0x1')][_0x1778('0x6')](_0x1778('0x31')+_0x5e33bb,_0x16f443),_0x3f44eb&&_0x33b2d['writer'][_0x1778('0x38')](_0x1778('0x2f'),_0x1a2fb1,_0x16f443),_0x33b2d[_0x1778('0x3b')]['bindElementToMarker'](_0x16f443,_0x56fdfa['markerName']),_0x56e534&&(_0x4edddf[_0x1778('0xd')][_0x1778('0x2')](_0x56fdfa['markerName'])?_0x33b2d[_0x1778('0x1')][_0x1778('0x6')](_0x1778('0x13'),_0x16f443):_0x33b2d['writer'][_0x1778('0x39')](_0x1778('0x13'),_0x16f443));}}};}_0x4edddf[_0x1778('0x3c')][_0x1778('0x15')](_0x1778('0x10'),_0x1778('0xa'),'accept',_0x11fd98),_0x4edddf[_0x1778('0x3c')][_0x1778('0x15')](_0x1778('0x10'),_0x1778('0x2c'),_0x1778('0x3a'),_0x11fd98),this[_0x1778('0x35')][_0x1778('0x2a')][_0x1778('0x28')]['on'](_0x1778('0x8'),_0x41e532(),{'priority':'highest'}),this[_0x1778('0x35')][_0x1778('0x21')][_0x1778('0x28')]['on'](_0x1778('0x8'),(_0x1b5968,_0x548f1c,_0x4fa181)=>{_0x4fa181['options']['showSuggestionHighlights']&&_0x41e532({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1b5968,_0x548f1c,_0x4fa181);},{'priority':'highest'}),this[_0x1778('0x35')][_0x1778('0x2a')]['downcastDispatcher']['on']('removeMarker:suggestion',(_0x49fa23,_0x52a683,_0x3d8391)=>{const {type:_0x5eb99b,id:_0x5497fb}=_0x4edddf['_splitMarkerName'](_0x52a683[_0x1778('0x34')]),_0x3b4bdd=_0x4edddf['getSuggestion'](_0x5497fb),_0xdc90c=_0x3b4bdd[_0x1778('0x21')];if(_0x1778('0x10')!=_0x3b4bdd[_0x1778('0x2b')]||!_0xdc90c||_0x1778('0x2c')!=_0xdc90c[_0x1778('0x23')])return;const _0x25e342=_0x3d8391[_0x1778('0x3b')][_0x1778('0x14')](_0x52a683[_0x1778('0x34')]);if(_0x25e342)for(const _0x2b6b1c of _0x25e342)_0x3d8391[_0x1778('0x1')][_0x1778('0x39')](_0x1778('0x31')+_0x5eb99b,_0x2b6b1c),_0x3d8391[_0x1778('0x1')][_0x1778('0x39')]('ck-suggestion-marker--active',_0x2b6b1c),_0x3d8391[_0x1778('0x1')]['removeAttribute'](_0x1778('0x2f'),_0x2b6b1c),_0x3d8391['mapper'][_0x1778('0x30')](_0x2b6b1c,_0x52a683['markerName']);},{'priority':_0x1778('0x32')}),this[_0x1778('0x29')]();}[_0x1778('0x29')](){const _0x3d969d=this['editor'],_0x5f48eb=_0x3d969d[_0x1778('0x24')];function _0x5ef128(_0x456923){return{'type':_0x1778('0x17'),'content':_0x5aef08(_0x5f48eb,'*Format:*\x20%0',_0x456923)};}_0x3d969d['plugins']['get'](_0x1778('0x36'))[_0x1778('0x2d')][_0x1778('0x20')](_0x5e0f97=>{if(_0x1778('0x10')!=_0x5e0f97[_0x1778('0x2b')])return;const {data:_0x1efd75}=_0x5e0f97;if(_0x1efd75){if(_0x1778('0xa')==_0x1efd75[_0x1778('0x23')]){const _0x22474f=_0x1efd75['commandParams'][0x0][_0x1778('0x16')];return _0x5ef128(_0x5aef08(_0x5f48eb,_0x22474f?_0x1778('0x1e'):_0x1778('0x33')));}if(_0x1778('0x2c')==_0x1efd75[_0x1778('0x23')]){const _0xaded93=_0x1efd75[_0x1778('0x1b')][0x0][_0x1778('0x16')];return _0x5ef128(_0x5aef08(_0x5f48eb,_0xaded93?_0x1778('0xb'):_0x1778('0x0')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17ef=['selection','getAncestors','_tablePostFixingSubtypes','afterInit','getSelectionAffectedTableCells','_areMergableCells','TableUtils','mergeTableCellLeft','enableCommand','author','insertion','from','*Merge\x20cells*','formatBlock','registerDescriptionCallback','createRangeOn','set:isEnabled','format','_suggestionFactory','locale','find','detach','isInContent','mergeTableCells','_areSelectedCellsMergable','commands','commandName','*Split\x20cell:*\x20vertically','subType','_isForcedDefaultExecutionBlock','element','stop','$graveyard','markBlockFormat','change','editor','size','TrackChangesEditing','mergeTableCellRight','isEnabled','markMultiRangeBlockFormat','mergeTableCellDown','getCellLocation','model','length','get','formatInline','plugins','getRanges','value','rootName','mergeTableCellUp','horizontally','document','_descriptionFactory','return','createTableWalker','registerCustomCallback','cell','map','containsRange','execute','splitTableCellHorizontally','findAncestor','TableEditing','trackChanges','splitTableCellVertically','tableCell','push','type','getSuggestions','add','*Split\x20cell:*\x20horizontally','deletion','low'];(function(_0x5cf8db,_0x17ef0e){const _0x1edc22=function(_0x4e934e){while(--_0x4e934e){_0x5cf8db['push'](_0x5cf8db['shift']());}};_0x1edc22(++_0x17ef0e);}(_0x17ef,0x1ea));const _0x1edc=function(_0x5cf8db,_0x17ef0e){_0x5cf8db=_0x5cf8db-0x0;let _0x1edc22=_0x17ef[_0x5cf8db];return _0x1edc22;};import{Plugin as _0x3756fc}from'ckeditor5/src/core';import _0x231ad9 from'./table';import{LiveRange as _0x29480d}from'ckeditor5/src/engine';import{getTranslation as _0x3272c5}from'../utils/common-translations';export default class yt extends _0x3756fc{static get['requires'](){return[_0x231ad9];}[_0x1edc('0x26')](){const _0x45eee1=this[_0x1edc('0x46')],_0x4c64fd=_0x45eee1['model'][_0x1edc('0xd')][_0x1edc('0x23')],_0x1181e9=_0x45eee1[_0x1edc('0x36')];if(!_0x45eee1[_0x1edc('0x7')]['has'](_0x1edc('0x18')))return;const _0x575cac=_0x45eee1[_0x1edc('0x7')]['get']('TrackChangesEditing'),_0x52d88a=_0x45eee1[_0x1edc('0x7')]['get'](_0x1edc('0x29')),_0x4e7131=_0x45eee1[_0x1edc('0x7')][_0x1edc('0x5')](_0x231ad9);_0x4e7131[_0x1edc('0x25')][_0x1edc('0x1c')](_0x1edc('0x3a')),_0x575cac[_0x1edc('0x2b')](_0x1edc('0x3a'),()=>{const _0x4e9dfe=_0x52d88a['getSelectionAffectedTableCells'](_0x45eee1[_0x1edc('0x3')][_0x1edc('0xd')][_0x1edc('0x23')]);_0x45eee1[_0x1edc('0x3')][_0x1edc('0x45')](()=>{_0x575cac[_0x1edc('0x0')](_0x4e9dfe,{'commandName':_0x1edc('0x3a'),'commandParams':[]},[],_0x1edc('0x3a'));});}),_0x45eee1[_0x1edc('0x3c')][_0x1edc('0x5')](_0x1edc('0x3a'))['on'](_0x1edc('0x15'),(_0x3a40b9,_0x1bbe8e)=>{_0x45eee1[_0x1edc('0x3c')][_0x1edc('0x5')](_0x1edc('0x19'))['value']&&(_0x1bbe8e['length']>0x0&&_0x1bbe8e[_0x1bbe8e[_0x1edc('0x4')]-0x1]&&_0x1bbe8e[_0x1bbe8e[_0x1edc('0x4')]-0x1]['forceDefaultExecution']||_0x575cac[_0x1edc('0x40')]||this[_0x1edc('0x3b')]()||_0x3a40b9[_0x1edc('0x42')]());},{'priority':'highest'});for(const _0x430443 of[_0x1edc('0xb'),_0x1edc('0x49'),_0x1edc('0x1'),_0x1edc('0x2a')]){const _0x210e98=_0x45eee1[_0x1edc('0x3c')][_0x1edc('0x5')](_0x430443);_0x575cac['enableCommand'](_0x430443,()=>{const _0x4eb8e4=_0x45eee1['model'][_0x1edc('0xd')][_0x1edc('0x23')]['getFirstPosition']()[_0x1edc('0x24')]()[_0x1edc('0x37')](_0x66ff08=>_0x66ff08['is'](_0x1edc('0x41'),_0x1edc('0x1b'))),_0x21955e=_0x210e98['value'];_0x45eee1['model'][_0x1edc('0x45')](()=>{_0x575cac[_0x1edc('0x0')]([_0x4eb8e4,_0x21955e],{'commandName':'mergeTableCells','commandParams':[]},[],_0x1edc('0x3a'));});});}for(const _0x198c9a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1d7a4d=_0x45eee1['commands']['get'](_0x198c9a);_0x575cac[_0x1edc('0x2b')](_0x198c9a,()=>{const _0x1eea47=_0x52d88a[_0x1edc('0x27')](_0x45eee1[_0x1edc('0x3')]['document']['selection'])[0x0],_0x12c16a=_0x1eea47[_0x1edc('0x17')]('table'),{column:_0x3daac4,row:_0x16cd50}=_0x52d88a[_0x1edc('0x2')](_0x1eea47);let _0x1a05c1=[];if(_0x1edc('0xc')==_0x1d7a4d['direction']){const _0x2730b4=_0x52d88a['createTableWalker'](_0x12c16a,{'startRow':_0x16cd50,'endRow':_0x16cd50,'includeAllSlots':!0x0});_0x1a05c1=Array[_0x1edc('0x2e')](_0x2730b4)[_0x1edc('0x13')](_0xdd3792=>_0xdd3792[_0x1edc('0x12')]);}else{const _0x50f033=_0x52d88a[_0x1edc('0x10')](_0x12c16a,{'column':_0x3daac4,'includeAllSlots':!0x0});_0x1a05c1=Array['from'](_0x50f033)[_0x1edc('0x13')](_0x2e3125=>_0x2e3125[_0x1edc('0x12')]);}_0x45eee1[_0x1edc('0x3')][_0x1edc('0x45')](_0x285cc7=>{_0x575cac[_0x1edc('0x44')](_0x285cc7['createRangeOn'](_0x1eea47),{'commandName':_0x198c9a,'commandParams':[]},_0x1a05c1,_0x198c9a);});});}_0x575cac[_0x1edc('0xe')][_0x1edc('0x31')](_0x1fc46d=>{if('formatBlock'!=_0x1fc46d['type']&&_0x1edc('0x6')!=_0x1fc46d['type'])return;const {data:_0x54fd53}=_0x1fc46d;return _0x54fd53&&_0x1edc('0x3a')==_0x54fd53[_0x1edc('0x3d')]?{'type':_0x1edc('0x34'),'content':_0x3272c5(_0x1181e9,_0x1edc('0x2f'))}:void 0x0;}),_0x575cac[_0x1edc('0xe')]['registerDescriptionCallback'](_0x10c5d5=>{if(_0x1edc('0x30')!=_0x10c5d5['type']&&'formatInline'!=_0x10c5d5[_0x1edc('0x1d')])return;const {data:_0x56f413}=_0x10c5d5;return _0x56f413?_0x1edc('0x1a')==_0x56f413[_0x1edc('0x3d')]?{'type':_0x1edc('0x34'),'content':_0x3272c5(_0x1181e9,_0x1edc('0x3e'))}:'splitTableCellHorizontally'==_0x56f413[_0x1edc('0x3d')]?{'type':_0x1edc('0x34'),'content':_0x3272c5(_0x1181e9,_0x1edc('0x20'))}:void 0x0:void 0x0;});const _0x5962b4=_0x4e7131['_acceptFormatSuggestionCallbackFactory']();for(const _0x104993 of[_0x1edc('0xb'),_0x1edc('0x49'),_0x1edc('0x1'),'mergeTableCellLeft'])_0x575cac[_0x1edc('0x35')][_0x1edc('0x11')](_0x1edc('0x30'),_0x104993,'accept',_0x5962b4);for(const _0x16f65d of[_0x1edc('0x1a'),_0x1edc('0x16')])_0x575cac['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x16f65d,'accept',_0x5962b4);_0x575cac['_suggestionFactory'][_0x1edc('0x11')](_0x1edc('0x30'),_0x1edc('0x3a'),'accept',_0x5b5de3=>{_0x45eee1[_0x1edc('0x3')][_0x1edc('0x45')](_0x5862b8=>{const _0x2fffe6=Array[_0x1edc('0x2e')](_0x4c64fd[_0x1edc('0x8')]())[_0x1edc('0x13')](_0x30b18a=>_0x29480d['fromRange'](_0x30b18a));_0x5862b8['setSelection'](_0x5b5de3),_0x45eee1[_0x1edc('0x3c')][_0x1edc('0x5')](_0x1edc('0x3a'))['refresh'](),_0x45eee1[_0x1edc('0x15')](_0x1edc('0x3a'),{'forceDefaultExecution':!0x0});const _0x2f814e=_0x2fffe6['filter'](_0x127c38=>_0x1edc('0x43')!=_0x127c38['root'][_0x1edc('0xa')]);_0x2f814e[_0x1edc('0x4')]>0x0&&_0x5862b8['setSelection'](_0x2f814e);for(const _0xfdfda4 of _0x2fffe6)_0xfdfda4[_0x1edc('0x38')]();});});for(const _0x2552b5 of['mergeTableCellUp',_0x1edc('0x1'),_0x1edc('0x2a'),_0x1edc('0x49')]){const _0x1b530c=_0x45eee1[_0x1edc('0x3c')][_0x1edc('0x5')](_0x2552b5);_0x1b530c['on'](_0x1edc('0x33'),(_0x18c785,_0x1d6291,_0x3883cb)=>{if(_0x3883cb){const _0x341d69=_0x45eee1[_0x1edc('0x3')]['document'][_0x1edc('0x23')]['getFirstPosition']()[_0x1edc('0x24')]()[_0x1edc('0x37')](_0x182b45=>_0x182b45['is']('element',_0x1edc('0x1b')));this[_0x1edc('0x28')](_0x1b530c[_0x1edc('0x9')],_0x341d69)||(_0x18c785[_0x1edc('0xf')]=!0x1,_0x18c785['stop']());}},{'priority':_0x1edc('0x22')});}}[_0x1edc('0x3b')](){const _0x516616=this['editor']['commands'][_0x1edc('0x5')]('mergeTableCells'),_0x409434=this[_0x1edc('0x46')][_0x1edc('0x7')][_0x1edc('0x5')](_0x1edc('0x29'));if(!_0x516616[_0x1edc('0x4a')])return!0x1;const _0x4912de=_0x409434[_0x1edc('0x27')](this[_0x1edc('0x46')][_0x1edc('0x3')]['document'][_0x1edc('0x23')]);for(const _0x3d199e of _0x4912de)for(const _0xe69a49 of _0x4912de)if(_0x3d199e!=_0xe69a49&&!this['_areMergableCells'](_0x3d199e,_0xe69a49))return!0x1;return!0x0;}[_0x1edc('0x28')](_0x5d6252,_0x16a453){const _0x5d1d73=this['editor'][_0x1edc('0x7')][_0x1edc('0x5')](_0x1edc('0x48')),_0x4c7592=this[_0x1edc('0x46')][_0x1edc('0x3')][_0x1edc('0x32')](_0x5d6252),_0x115a09=this[_0x1edc('0x46')][_0x1edc('0x3')][_0x1edc('0x32')](_0x16a453),_0x4f2737=new Set(),_0x399291=new Set();for(const _0x255d94 of _0x5d1d73[_0x1edc('0x1e')]())if((_0x1edc('0x2d')==_0x255d94[_0x1edc('0x1d')]||_0x1edc('0x21')==_0x255d94[_0x1edc('0x1d')]||'mergeTableCells'==_0x255d94[_0x1edc('0x3f')])&&_0x255d94[_0x1edc('0x39')])for(const _0x2bb960 of _0x255d94[_0x1edc('0x8')]())_0x2bb960[_0x1edc('0x14')](_0x4c7592,!0x0)&&_0x4f2737[_0x1edc('0x1f')](_0x255d94[_0x1edc('0x1d')]+':'+_0x255d94[_0x1edc('0x2c')]['id']),_0x2bb960[_0x1edc('0x14')](_0x115a09,!0x0)&&_0x399291['add'](_0x255d94[_0x1edc('0x1d')]+':'+_0x255d94[_0x1edc('0x2c')]['id']);if(_0x4f2737['size']!=_0x399291[_0x1edc('0x47')])return!0x1;for(const _0x1c2377 of _0x4f2737)if(!_0x399291['has'](_0x1c2377))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c05=['plugins','insertTableOfContents','registerElementLabel','get','TrackChangesEditing','_descriptionFactory','ELEMENT_TABLE_OF_CONTENTS','tableOfContents','locale','afterInit','commands','editor'];(function(_0x12570d,_0x3c05a6){const _0x223c98=function(_0xe7a86e){while(--_0xe7a86e){_0x12570d['push'](_0x12570d['shift']());}};_0x223c98(++_0x3c05a6);}(_0x3c05,0xb1));const _0x223c=function(_0x12570d,_0x3c05a6){_0x12570d=_0x12570d-0x0;let _0x223c98=_0x3c05[_0x12570d];return _0x223c98;};import{Plugin as _0x570dc7}from'ckeditor5/src/core';import{getTranslation as _0x475fca}from'../utils/common-translations';export default class _t extends _0x570dc7{[_0x223c('0x0')](){const _0x8870ff=this[_0x223c('0x2')];if(!_0x8870ff[_0x223c('0x1')][_0x223c('0x6')]('insertTableOfContents'))return;_0x8870ff[_0x223c('0x3')][_0x223c('0x6')](_0x223c('0x7'))['enableCommand'](_0x223c('0x4'));const _0x547f8f=_0x8870ff[_0x223c('0x3')][_0x223c('0x6')](_0x223c('0x7')),_0x26cd5b=_0x8870ff[_0x223c('0xb')];_0x547f8f[_0x223c('0x8')][_0x223c('0x5')](_0x223c('0xa'),_0x3f31f9=>_0x475fca(_0x26cd5b,_0x223c('0x9'),_0x3f31f9));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33bc=['getSuggestions','getFirstPosition','getAttribute','change','get','enableCommand','tableBorderStyle','getSelectionAffectedTableCells','model','tableWidth','handleSuggestionDescription','getSuggestionCallback','tableCellHorizontalAlignment','_getSuggestion','tableAlignment','locale','table','tableCellHeight','_descriptionFactory','tableCellBackgroundColor','tableProperties','has','_handlePropertyChange','plugins','*Format:*\x20change\x20table\x20properties','tableCellProperties','tableHeight','discard','TrackChangesEditing','start','markBlockFormat','registerCustomCallback','data','format','tableCellVerticalAlignment','TableCellPropertiesEditing','_suggestionFactory','accept','removeAttribute','handleDiscardAction','registerDescriptionCallback','tableCellWidth','afterInit','tableCellBorderColor','commandParams','batch','formatBlock','editor','join','tableCellBorderWidth','tableBorderColor','subType','tableBorderWidth','selection','enqueueChange','tableCellBorderStyle'];(function(_0x3898a5,_0x33bc6b){const _0x1c79b6=function(_0xace9a0){while(--_0xace9a0){_0x3898a5['push'](_0x3898a5['shift']());}};_0x1c79b6(++_0x33bc6b);}(_0x33bc,0x151));const _0x1c79=function(_0x3898a5,_0x33bc6b){_0x3898a5=_0x3898a5-0x0;let _0x1c79b6=_0x33bc[_0x3898a5];return _0x1c79b6;};import{Plugin as _0x23ec50}from'ckeditor5/src/core';import{getTranslation as _0x2d9ca3}from'../utils/common-translations';export default class Mt extends _0x23ec50{constructor(_0x3ca89a){super(_0x3ca89a),this[_0x1c79('0x13')]=[_0x1c79('0x31'),_0x1c79('0x5'),_0x1c79('0x33'),_0x1c79('0xd'),_0x1c79('0x8'),_0x1c79('0x19'),'tableBackgroundColor'],this[_0x1c79('0x18')]=[_0x1c79('0x2a'),_0x1c79('0x36'),_0x1c79('0x30'),'tableCellPadding',_0x1c79('0x28'),_0x1c79('0x10'),_0x1c79('0x12'),_0x1c79('0xb'),_0x1c79('0x21')];}static get['pluginName'](){return'TrackChangesTableProperties';}[_0x1c79('0x29')](){const _0x542ed9=this[_0x1c79('0x2e')]['plugins']['get'](_0x1c79('0x1b'));if(this['editor'][_0x1c79('0x16')][_0x1c79('0x14')]('TablePropertiesEditing')){for(const _0x4736db of this[_0x1c79('0x13')])_0x542ed9[_0x1c79('0x4')](_0x4736db,(_0x2bcbcf,_0x2e0ce5)=>{const _0x1cafc9=this[_0x1c79('0x2e')][_0x1c79('0x7')]['document'][_0x1c79('0x34')][_0x1c79('0x0')]()['findAncestor'](_0x1c79('0xf'));this[_0x1c79('0x15')](_0x4736db,[_0x1cafc9],this[_0x1c79('0x13')],_0x1c79('0x13'),_0x2bcbcf,_0x2e0ce5);});_0x542ed9['_suggestionFactory'][_0x1c79('0x1e')](_0x1c79('0x2d'),_0x1c79('0x13'),_0x1c79('0x24'),_0x542ed9[_0x1c79('0x23')]['getSuggestionCallback'](_0x1c79('0x2d'),null,_0x1c79('0x1a'))),_0x542ed9[_0x1c79('0x23')][_0x1c79('0x1e')](_0x1c79('0x2d'),'tableProperties',_0x1c79('0x1a'),(_0x34bcb9,_0x237d7c)=>this[_0x1c79('0x26')](this[_0x1c79('0x13')],_0x34bcb9,_0x237d7c)),_0x542ed9[_0x1c79('0x23')][_0x1c79('0x1e')](_0x1c79('0x2d'),_0x1c79('0x13'),_0x1c79('0x2f'),()=>!0x1);}if(this[_0x1c79('0x2e')]['plugins'][_0x1c79('0x14')](_0x1c79('0x22'))){for(const _0x1ed8c1 of this['tableCellProperties'])_0x542ed9[_0x1c79('0x4')](_0x1ed8c1,(_0x6f545,_0x3539de)=>{const _0x4816a1=this[_0x1c79('0x2e')][_0x1c79('0x16')][_0x1c79('0x3')]('TableUtils')[_0x1c79('0x6')](this[_0x1c79('0x2e')]['model']['document'][_0x1c79('0x34')]);this['_handlePropertyChange'](_0x1ed8c1,_0x4816a1,this[_0x1c79('0x18')],_0x1c79('0x18'),_0x6f545,_0x3539de);});_0x542ed9[_0x1c79('0x23')][_0x1c79('0x1e')](_0x1c79('0x2d'),'tableCellProperties',_0x1c79('0x24'),_0x542ed9[_0x1c79('0x23')][_0x1c79('0xa')]('formatBlock',null,_0x1c79('0x1a'))),_0x542ed9['_suggestionFactory'][_0x1c79('0x1e')](_0x1c79('0x2d'),_0x1c79('0x18'),_0x1c79('0x1a'),(_0x4ff9ab,_0x217940)=>this[_0x1c79('0x26')](this[_0x1c79('0x18')],_0x4ff9ab,_0x217940)),_0x542ed9['_suggestionFactory'][_0x1c79('0x1e')](_0x1c79('0x2d'),_0x1c79('0x18'),_0x1c79('0x2f'),()=>!0x1);}_0x542ed9[_0x1c79('0x11')][_0x1c79('0x27')](_0x1d76ec=>this[_0x1c79('0x9')](_0x1d76ec));}[_0x1c79('0x15')](_0x1d6fbe,_0x47a450,_0x1a0385,_0x382590,_0x3d2f74,_0x98c73e){const _0x4caec7=this[_0x1c79('0x2e')][_0x1c79('0x16')][_0x1c79('0x3')]('TrackChangesEditing');this[_0x1c79('0x2e')][_0x1c79('0x7')][_0x1c79('0x35')](_0x98c73e[_0x1c79('0x2c')],()=>{for(const _0x228a73 of _0x47a450){if(this['_getSuggestion'](_0x228a73,_0x382590))_0x3d2f74(_0x98c73e);else{const _0x5ce2ef={};for(const _0x18fcfe of _0x1a0385){const _0x43e656=_0x228a73[_0x1c79('0x1')](_0x18fcfe);void 0x0!==_0x43e656&&(_0x5ce2ef[_0x18fcfe]=_0x43e656);}_0x3d2f74(_0x98c73e),_0x4caec7[_0x1c79('0x1d')](_0x228a73,{'commandParams':[_0x5ce2ef]},[],_0x382590);}}});}[_0x1c79('0x26')](_0x5e31b9,_0x440732,_0x2f9c9a){const _0x1f832e=_0x440732[0x0][_0x1c79('0x1c')]['nodeAfter'],_0x11925c=_0x2f9c9a[_0x1c79('0x2b')][0x0];this[_0x1c79('0x2e')][_0x1c79('0x7')][_0x1c79('0x2')](_0x328261=>{for(const _0x5745fe of _0x5e31b9)void 0x0!==_0x11925c[_0x5745fe]?_0x328261['setAttribute'](_0x5745fe,_0x11925c[_0x5745fe],_0x1f832e):_0x328261[_0x1c79('0x25')](_0x5745fe,_0x1f832e);});}[_0x1c79('0x9')](_0x20edb2){if(_0x20edb2[_0x1c79('0x1f')])switch(_0x20edb2['subType']){case _0x1c79('0x13'):return{'type':_0x1c79('0x20'),'content':_0x2d9ca3(this[_0x1c79('0x2e')]['locale'],_0x1c79('0x17'))};case'tableCellProperties':return{'type':'format','content':_0x2d9ca3(this[_0x1c79('0x2e')][_0x1c79('0xe')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x1c79('0xc')](_0x44b306,_0x4d98f7){const _0x224e47=this[_0x1c79('0x2e')]['plugins']['get'](_0x1c79('0x1b'));for(const _0x5d23b2 of _0x224e47[_0x1c79('0x37')]({'skipNotAttached':!0x0})){const _0x435dc4=_0x5d23b2['getContainedElement']();if(_0x5d23b2[_0x1c79('0x32')]===_0x4d98f7&&_0x435dc4===_0x44b306)return _0x5d23b2;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bb9=['TrackChangesEditing','plugins','editor','enableCommand','insertTemplate','get','has','Template'];(function(_0x543080,_0x2bb987){const _0x39dd7c=function(_0x1e4881){while(--_0x1e4881){_0x543080['push'](_0x543080['shift']());}};_0x39dd7c(++_0x2bb987);}(_0x2bb9,0x1c5));const _0x39dd=function(_0x543080,_0x2bb987){_0x543080=_0x543080-0x0;let _0x39dd7c=_0x2bb9[_0x543080];return _0x39dd7c;};import{Plugin as _0x1b983f}from'ckeditor5/src/core';export default class vt extends _0x1b983f{['afterInit'](){const _0x380559=this[_0x39dd('0x5')];_0x380559[_0x39dd('0x4')][_0x39dd('0x1')](_0x39dd('0x2'))&&_0x380559[_0x39dd('0x4')][_0x39dd('0x0')](_0x39dd('0x3'))[_0x39dd('0x6')](_0x39dd('0x7'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bbc=['ELEMENT_TITLE','registerPostFixer','_descriptionFactory','locale','schema','model','createRange','start','updateMarker','getNearestSelectionRange','title-content','newRange','TrackChangesEditing','from','differ','removeMarker','document','_splitMarkerName','element','Title','has','end','isTouching','get','registerElementLabel','plugins','forward','suggestion','editor'];(function(_0x1b7492,_0x2bbccd){const _0x32d3e4=function(_0x3e76f1){while(--_0x3e76f1){_0x1b7492['push'](_0x1b7492['shift']());}};_0x32d3e4(++_0x2bbccd);}(_0x2bbc,0xd7));const _0x32d3=function(_0x1b7492,_0x2bbccd){_0x1b7492=_0x1b7492-0x0;let _0x32d3e4=_0x2bbc[_0x1b7492];return _0x32d3e4;};import{Plugin as _0x2a9ced}from'ckeditor5/src/core';import{getTranslation as _0x463442}from'../utils/common-translations';export default class Ct extends _0x2a9ced{['afterInit'](){const _0x23919a=this[_0x32d3('0x10')];if(!_0x23919a[_0x32d3('0xd')][_0x32d3('0x8')](_0x32d3('0x7')))return;const _0x1eb8b6=_0x23919a[_0x32d3('0xd')][_0x32d3('0xb')](_0x32d3('0x0'));_0x1eb8b6[_0x32d3('0x13')][_0x32d3('0xc')]('title-content',()=>_0x463442(_0x23919a[_0x32d3('0x14')],_0x32d3('0x11'))),_0x23919a[_0x32d3('0x16')][_0x32d3('0x4')][_0x32d3('0x12')](_0x327fd6=>{let _0x30b1c8=!0x1;const _0x198060=Array[_0x32d3('0x1')](_0x23919a['model'][_0x32d3('0x4')][_0x32d3('0x2')]['getChangedMarkers']());for(const {name:_0x3dd824,data:_0x3fe952}of _0x198060){const {group:_0x522fc8}=_0x1eb8b6[_0x32d3('0x5')](_0x3dd824);if(_0x32d3('0xf')!==_0x522fc8||!_0x3fe952[_0x32d3('0x1c')])continue;const _0xa89f=_0x3fe952[_0x32d3('0x1c')],_0x2465af=_0xa89f[_0x32d3('0x9')]['nodeBefore'];if(!_0x2465af||!_0x2465af['is'](_0x32d3('0x6'),_0x32d3('0x1b')))continue;if(!_0xa89f[_0x32d3('0x18')][_0x32d3('0xa')](_0xa89f[_0x32d3('0x9')]))continue;const _0x2bde5b=_0x23919a[_0x32d3('0x16')][_0x32d3('0x15')][_0x32d3('0x1a')](_0xa89f[_0x32d3('0x9')],_0x32d3('0xe'));if(_0x2bde5b&&_0x2bde5b['isCollapsed']){const _0x13a127=_0x327fd6[_0x32d3('0x17')](_0xa89f['start'],_0x2bde5b['start']);_0x13a127['isEqual'](_0xa89f)||(_0x327fd6[_0x32d3('0x19')](_0x3dd824,{'range':_0x13a127}),_0x30b1c8=!0x0);}_0x30b1c8||(_0x327fd6[_0x32d3('0x3')](_0x3dd824),_0x30b1c8=!0x0);}return _0x30b1c8;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cd6=['enableCommand','editor','redo','get','afterInit','UndoEditing','undo','TrackChangesEditing','has'];(function(_0x5e6cf4,_0x4cd63f){const _0x325823=function(_0x1054da){while(--_0x1054da){_0x5e6cf4['push'](_0x5e6cf4['shift']());}};_0x325823(++_0x4cd63f);}(_0x4cd6,0x7c));const _0x3258=function(_0x5e6cf4,_0x4cd63f){_0x5e6cf4=_0x5e6cf4-0x0;let _0x325823=_0x4cd6[_0x5e6cf4];return _0x325823;};import{Plugin as _0x1f3277}from'ckeditor5/src/core';export default class Dt extends _0x1f3277{[_0x3258('0x6')](){const _0x17eb30=this[_0x3258('0x3')],_0x5601eb=_0x17eb30['plugins'][_0x3258('0x5')](_0x3258('0x0'));_0x17eb30['plugins'][_0x3258('0x1')](_0x3258('0x7'))&&(_0x5601eb[_0x3258('0x2')](_0x3258('0x8')),_0x5601eb['enableCommand'](_0x3258('0x4')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x494b=['nextSibling','get','span','push','bindElementToMarker','listItem','includes','addClass','consumable','getCustomProperty','type','createRangeOn','test','mapper','model','markerName','ck-suggestion-marker-','elementEnd','writer','isBlock','previousPosition','getAttribute','getItems','markerRange','toViewElement','activeMarkers','plugins','parent','createUIElement','toViewPosition','addHighlight','isLimit','start','hasAttribute','schema','insert','listIndent'];(function(_0xec31d4,_0x494b18){const _0x5e1a68=function(_0x40f68a){while(--_0x40f68a){_0xec31d4['push'](_0xec31d4['shift']());}};_0x5e1a68(++_0x494b18);}(_0x494b,0xa2));const _0x5e1a=function(_0xec31d4,_0x494b18){_0xec31d4=_0xec31d4-0x0;let _0x5e1a68=_0x494b[_0xec31d4];return _0x5e1a68;};export function getRangesWithAttribute(_0x3faf27,_0x2d7766,_0x537be8){const _0xededc8=[];for(const _0x3a4029 of _0x2d7766[_0x5e1a('0x8')]())_0x3a4029[_0x5e1a('0x13')](_0x3faf27)&&_0xededc8[_0x5e1a('0x1a')](_0x537be8[_0x5e1a('0x22')](_0x3a4029));return _0xededc8;}export function getElementsAffectedByListItemRename(_0x31215a){const _0x20d3f9=[];if(_0x31215a['is']('element',_0x5e1a('0x1c'))){let _0x5f0471=_0x31215a[_0x5e1a('0x17')];for(;_0x5f0471&&_0x5f0471['is']('element',_0x5e1a('0x1c'))&&_0x5f0471[_0x5e1a('0x7')](_0x5e1a('0x16'))>0x0;)_0x20d3f9[_0x5e1a('0x1a')](_0x5f0471),_0x5f0471=_0x5f0471['nextSibling'];}return _0x20d3f9;}export function downcastSplitMergeMarker(_0x5adeab,_0xce7479,{showActiveMarker:_0x533c08=!0x0}={}){const _0x18df32=_0x5adeab[_0x5e1a('0xc')][_0x5e1a('0x18')]('TrackChangesEditing');return(_0x3176c,_0x17c755,_0x3202fb)=>{if(!_0x3202fb[_0x5e1a('0x1f')][_0x5e1a('0x23')](_0x17c755[_0x5e1a('0x9')],_0x3176c['name']))return;const _0x1bfd6e=_0x17c755['markerRange']['getWalker'](),_0x32a44d=_0x17c755[_0x5e1a('0x9')][_0x5e1a('0x12')],_0x5c5c69=_0x5adeab[_0x5e1a('0x0')][_0x5e1a('0x14')];let _0x2b0c3e=null,_0x24040b=null,_0x26e628=!0x1,_0x29d2d6=!0x1;for(const _0x33007e of _0x1bfd6e){const _0x863b04=_0x33007e['item'];_0x26e628=_0x26e628||_0x5c5c69['isContent'](_0x863b04);const _0x16689f=_0x3202fb['mapper'][_0x5e1a('0xa')](_0x863b04);if(_0x16689f&&_0x16689f[_0x5e1a('0x20')](_0x5e1a('0x10')))return;_0x5e1a('0x3')==_0x33007e[_0x5e1a('0x21')]&&(_0x5c5c69[_0x5e1a('0x5')](_0x863b04)&&!_0x5c5c69[_0x5e1a('0x11')](_0x863b04)&&(_0x863b04[_0x5e1a('0x17')]||_0x32a44d['isAtEnd']?_0x2b0c3e&&_0x2b0c3e[_0x5e1a('0xd')]==_0x863b04||(_0x2b0c3e=_0x863b04,_0x263cc6(_0x33007e[_0x5e1a('0x6')]),_0x29d2d6=!0x0):_0x24040b=_0x24040b||_0x33007e[_0x5e1a('0x6')]));}function _0x263cc6(_0x148330){const _0x4bc64e=_0x3202fb[_0x5e1a('0x4')][_0x5e1a('0xe')](_0x5e1a('0x19'),{'class':_0x5e1a('0x2')+_0xce7479}),_0x444b4d=_0x3202fb['mapper'][_0x5e1a('0xf')](_0x148330);_0x533c08&&_0x18df32[_0x5e1a('0xb')][_0x5e1a('0x1d')](_0x17c755[_0x5e1a('0x1')])&&_0x3202fb[_0x5e1a('0x4')][_0x5e1a('0x1e')]('ck-suggestion-marker--active',_0x4bc64e),_0x3202fb['writer'][_0x5e1a('0x15')](_0x444b4d,_0x4bc64e),_0x3202fb[_0x5e1a('0x24')][_0x5e1a('0x1b')](_0x4bc64e,_0x17c755[_0x5e1a('0x1')]);}_0x26e628||_0x29d2d6||!_0x24040b||_0x263cc6(_0x24040b);};}
|