@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231027.0 → 0.0.0-nightly-20231028.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x57bd=['isInContent','Users','getColumnIndexes','_getCoordsForCells','table','next','low','markerToHighlight','removeMarkers','add','some','subType','getRanges','insertion','getAllAdjacentSuggestions','getShiftedBy','tableCellBorderStyle','_splitMarkerName','editor','getAttributes','createTableWalker','findAncestor','view','columnInsertionRanges','tablePasteCell','keys','suggestionLoaded','containsRange','registerPostFixer','$graveyard','getTableIfOnlyTableInContent','conversion','suggestionUnloaded','getSelectionAffectedTableCells','newRange','activeMarkers','tableCellSuggestion','rootName','move','set','suggestion','getSuggestionCallback','options','createRangeOn','removeMarker','model','value','last','position','map','change','entries','isEqual','elementToElement','markMultiRangeInsertion','selection','tablePasteRow','batch','cell','getRange','registerCustomCallback','first','_isForcedDefaultExecutionBlock','nodeAfter','commands','ck-suggestion-marker-insertion','paragraph','insertionRanges','removeRows','get','_replaceTableSlotCell','deletion','find','fromEntries','editingDowncast','fill','getRows','formatBlock','TableClipboard','forceDefaultExecution','oldRange','getChildren','tablePaste','listenTo','length','content','insertRows','endColumn','setAttribute','suggestion:formatBlock:tablePasteCell','insertContent','ck-suggestion-marker--active','markerName','hasSuggestion','markerAttributes','reduce','getSuggestion','endRow','tableCellHorizontalAlignment','setAttributes','tableCellPadding','column','remove','getSuggestions','insert','start','getChild','updateMarker','ck-suggestion-marker','discard','tableCellBackgroundColor','getChanges','getColumns','high','dataDowncast','cells','removeColumns','root','author','unwrap','_suggestionFactory','element','for','columns','showSuggestionHighlights','isEmpty','differ','getMarkers','documentSelection','tablePasteColumn','createRangeIn','has','wrap','insertColumns','registerDescriptionCallback','schema','afterInit','rowInsertionRanges','_createdBatches','name','createPositionBefore','rows','columnInsertionIndexes','from','push','register','*Replace\x20table\x20cells*','tablePasteChainId','return','previous','startsWith','join','editing','tableCell','_descriptionFactory','getChangedMarkers','end','suggestion-td','plugins','document','every','getContainedElement','tableCellBorderColor','rowInsertionIndexes','attributes','markers','includes','type','TableUtils','filter'];(function(_0x13f805,_0x57bd61){const _0x1b54b1=function(_0xfd27be){while(--_0xfd27be){_0x13f805['push'](_0x13f805['shift']());}};_0x1b54b1(++_0x57bd61);}(_0x57bd,0xb7));const _0x1b54=function(_0x13f805,_0x57bd61){_0x13f805=_0x13f805-0x0;let _0x1b54b1=_0x57bd[_0x13f805];return _0x1b54b1;};import{getTranslation as _0x564313}from'../utils/common-translations';import{Plugin as _0x4d94e8}from'ckeditor5/src/core';import{uid as _0x38df7e,priorities as _0x262a71}from'ckeditor5/src/utils';import _0xb46687 from'./table';const le=['tableCellBorderWidth',_0x1b54('0x95'),_0x1b54('0x3'),_0x1b54('0x55'),'tableCellVerticalAlignment',_0x1b54('0x61'),_0x1b54('0x57')],ae=Object['fromEntries'](le[_0x1b54('0x24')](_0x37686a=>[_0x37686a,null]));export default class wt extends _0x4d94e8{static get['requires'](){return[_0xb46687];}[_0x1b54('0x7b')](){const _0x2cbfd8=this[_0x1b54('0x5')];if(!_0x2cbfd8[_0x1b54('0x91')][_0x1b54('0x76')](_0x1b54('0x41')))return;const _0x2eb947=_0x2cbfd8['plugins']['get']('TrackChangesEditing'),_0x4ab70c=_0x2cbfd8[_0x1b54('0x91')][_0x1b54('0x38')](_0x1b54('0x9b')),_0xffee66=_0x2cbfd8[_0x1b54('0x91')]['get'](_0xb46687),_0x3c0348=_0x2cbfd8[_0x1b54('0x91')][_0x1b54('0x38')](_0x1b54('0x41'));_0xffee66['_tablePostFixingSubtypes']['push']('tablePasteRow',_0x1b54('0x74')),_0x2cbfd8[_0x1b54('0x20')][_0x1b54('0x7a')][_0x1b54('0x84')](_0x1b54('0x17'),{'allowIn':_0x1b54('0x8c'),'allowContentOf':_0x1b54('0x8c'),'isLimit':!0x0}),_0x2cbfd8[_0x1b54('0x12')][_0x1b54('0x28')]({'model':_0x1b54('0x17'),'view':_0x1b54('0x90')});let _0x227022=null;_0x2cbfd8[_0x1b54('0x20')]['on'](_0x1b54('0x4d'),(_0x56b635,_0x97ec77)=>{const [_0x33f2ec,_0x4a4de5]=_0x97ec77,_0x424fc8=_0x97ec77[_0x97ec77[_0x1b54('0x47')]-0x1];_0x424fc8&&_0x424fc8[_0x1b54('0x42')]||_0x2eb947[_0x1b54('0x31')]||this[_0x1b54('0x5')]['commands'][_0x1b54('0x38')]('trackChanges')[_0x1b54('0x21')]&&function(_0x512727,_0x366b85,_0xf8ca6e,_0x3b266e,_0x3cfe86){if(_0x366b85&&!_0x366b85['is'](_0x1b54('0x73')))return!0x1;const _0x3bc2f6=_0x3cfe86[_0x1b54('0x11')](_0x512727,_0xf8ca6e);if(!_0x3bc2f6||!fe(_0x3bc2f6,void 0x0,_0x3b266e))return!0x1;const _0x242b46=_0x3b266e[_0x1b54('0x14')](_0xf8ca6e[_0x1b54('0x92')][_0x1b54('0x2a')]);if(!_0x242b46[_0x1b54('0x47')])return!0x1;const _0x11fa1d=_0x242b46[0x0][_0x1b54('0x8')](_0x1b54('0xa1')),_0x467be7=_0x3b266e['getRowIndexes'](_0x242b46),_0x1f67cd=_0x3b266e[_0x1b54('0x9f')](_0x242b46),_0x252afe={'startRow':_0x467be7[_0x1b54('0x30')],'endRow':_0x467be7['last'],'startColumn':_0x1f67cd[_0x1b54('0x30')],'endColumn':_0x1f67cd[_0x1b54('0x22')]};return 0x1==_0x242b46[_0x1b54('0x47')]&&(_0x252afe[_0x1b54('0x54')]+=_0x3b266e[_0x1b54('0x3f')](_0x3bc2f6)-0x1,_0x252afe[_0x1b54('0x4a')]+=_0x3b266e[_0x1b54('0x63')](_0x3bc2f6)-0x1),fe(_0x11fa1d,_0x252afe,_0x3b266e);}(_0x33f2ec,_0x4a4de5,_0x2cbfd8[_0x1b54('0x20')],_0x4ab70c,_0x3c0348)&&(_0x56b635['stop'](),_0x227022={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2cbfd8['model'][_0x1b54('0x25')](()=>{_0x2cbfd8[_0x1b54('0x20')][_0x1b54('0x4d')](_0x97ec77[0x0],_0x97ec77[0x1],_0x97ec77[0x2],{'forceDefaultExecution':!0x0});const _0x49246c=_0x38df7e(),{rowInsertionRanges:_0x15fbb5,columnInsertionRanges:_0x2180ec,insertionRanges:_0x4bd0df,deletionRanges:_0x425a72,cells:_0x2e5c05}=_0x227022;_0x15fbb5[_0x1b54('0x47')]&&_0x2eb947[_0x1b54('0x29')](_0x15fbb5,_0x1b54('0x2b'),{'tablePasteChainId':_0x49246c}),_0x2180ec['length']&&_0x2eb947[_0x1b54('0x29')](_0x2180ec,_0x1b54('0x74'),{'tablePasteChainId':_0x49246c}),_0x4bd0df[_0x1b54('0x47')]&&_0x2eb947[_0x1b54('0x29')](_0x4bd0df,_0x1b54('0x45'),{'tablePasteChainId':_0x49246c,'skipNestingCheck':!0x0}),_0x425a72[_0x1b54('0x47')]&&_0x2eb947['markMultiRangeDeletion'](_0x425a72,_0x1b54('0x45'),{'tablePasteChainId':_0x49246c,'skipNestingCheck':!0x0});const _0x52487c=_0x2eb947['markMultiRangeBlockFormat'](_0x2e5c05[_0x1b54('0x24')](({element:_0x5aa020})=>_0x5aa020),{'formatGroupId':_0x38df7e()},[],_0x1b54('0xb'),{'tablePasteChainId':_0x49246c});if(_0x52487c){const _0x2f7c2e=_0x52487c[_0x1b54('0x72')](),_0xf06e45=[];for(const {element:_0x732798,attributes:_0x45937f}of _0x2e5c05){if(!_0x45937f)continue;const _0x394dad=_0x2cbfd8['model'][_0x1b54('0x1e')](_0x732798),_0x50c7e6=_0x2f7c2e[_0x1b54('0x3b')](_0x18438b=>_0x18438b[_0x1b54('0x2e')]()[_0x1b54('0x27')](_0x394dad));_0x50c7e6&&_0xf06e45[_0x1b54('0x83')]([_0x50c7e6[_0x1b54('0x7e')],_0x45937f]);}_0xf06e45[_0x1b54('0x47')]&&_0x52487c[_0x1b54('0x4b')](_0x1b54('0x51'),Object[_0x1b54('0x3c')](_0xf06e45));}_0x227022=null;}));},{'priority':_0x262a71[_0x1b54('0x64')]+0xa}),_0x2cbfd8['plugins'][_0x1b54('0x38')](_0x1b54('0x41'))['on'](_0x1b54('0x39'),(_0x1e1517,_0xbd5211)=>{const [_0x17890d,_0x7901e7,,_0x36d640]=_0xbd5211;if(!_0x227022)return;_0x1e1517['stop']();const _0x4f0fe8=_0x17890d[_0x1b54('0x2d')],_0x8dc822=_0x7901e7,_0x552498=ce(_0x4f0fe8),_0x8d32f0=ce(_0x8dc822);_0x1e1517[_0x1b54('0x87')]=_0x4f0fe8;let _0x161e36=null,_0x5dcac0=null;if(_0x8d32f0||_0x552498){if(_0x552498&&!_0x8d32f0){_0x36d640['remove'](_0x4f0fe8[_0x1b54('0x5d')](0x0));for(const _0x7752dd of Array[_0x1b54('0x82')](_0x8dc822[_0x1b54('0x44')]()))_0x36d640[_0x1b54('0x5b')](_0x7752dd,_0x4f0fe8,_0x1b54('0x8f'));const _0xca0676=_0x227022['rowInsertionIndexes']['includes'](_0x17890d['row']),_0x52f545=_0x227022[_0x1b54('0x81')][_0x1b54('0x99')](_0x17890d[_0x1b54('0x58')]);_0xca0676||_0x52f545||(_0x161e36=_0x36d640[_0x1b54('0x75')](_0x4f0fe8));}else _0x8d32f0&&!_0x552498&&(_0x5dcac0=_0x36d640[_0x1b54('0x75')](_0x4f0fe8));}else{const _0x5285a1=_0x36d640['createElement'](_0x1b54('0x17')),_0x5dc16c=_0x36d640['createElement']('tableCellSuggestion');_0x36d640[_0x1b54('0x77')](_0x36d640['createRangeIn'](_0x4f0fe8),_0x5dc16c),_0x36d640[_0x1b54('0x5b')](_0x5285a1,_0x4f0fe8,0x0);for(const _0x33afb0 of Array['from'](_0x8dc822[_0x1b54('0x44')]()))_0x36d640['insert'](_0x33afb0,_0x5285a1,_0x1b54('0x8f'));_0x161e36=_0x36d640[_0x1b54('0x1e')](_0x5285a1),_0x5dcac0=_0x36d640[_0x1b54('0x1e')](_0x5dc16c);}const _0x35e14b=Array[_0x1b54('0x82')](_0x8dc822[_0x1b54('0x6')]())[_0x1b54('0x9c')](([_0x2999a5])=>le[_0x1b54('0x99')](_0x2999a5));_0x227022[_0x1b54('0x66')][_0x1b54('0x83')]({'element':_0x4f0fe8,'attributes':_0x35e14b[_0x1b54('0x47')]?Object['fromEntries'](_0x35e14b):null}),_0x161e36&&_0x227022[_0x1b54('0x36')][_0x1b54('0x83')](_0x161e36),_0x5dcac0&&_0x227022['deletionRanges'][_0x1b54('0x83')](_0x5dcac0);},{'priority':_0x1b54('0x64')}),_0x4ab70c['on'](_0x1b54('0x78'),(_0x4577f6,_0x1b858b)=>{const [_0x5932c8,_0x2b51fa={}]=_0x1b858b;if(!_0x227022)return;const _0x48a2bf=_0x2b51fa['at']||0x0,_0x397866=_0x2b51fa[_0x1b54('0x6e')]||0x1;_0x227022[_0x1b54('0x81')]=new Array(_0x397866)[_0x1b54('0x3e')](_0x48a2bf)[_0x1b54('0x24')]((_0x115a48,_0x5ad5a9)=>_0x115a48+_0x5ad5a9);for(const {cell:_0x3ae94f}of _0x4ab70c[_0x1b54('0x7')](_0x5932c8,{'startColumn':_0x48a2bf,'endColumn':_0x48a2bf+_0x397866-0x1}))_0x227022[_0x1b54('0xa')]['push'](_0x2cbfd8['model'][_0x1b54('0x1e')](_0x3ae94f));},{'priority':'low'}),_0x4ab70c['on'](_0x1b54('0x49'),(_0x563926,_0x4a3152)=>{const [_0x195b43,_0xd874a0={}]=_0x4a3152;if(!_0x227022)return;const _0x4b37ff=_0xd874a0['at']||0x0,_0x51b6a2=_0xd874a0[_0x1b54('0x80')]||0x1;_0x227022[_0x1b54('0x96')]=new Array(_0x51b6a2)[_0x1b54('0x3e')](_0x4b37ff)['map']((_0x427b88,_0x1da1da)=>_0x427b88+_0x1da1da);for(const {cell:_0x357ee7}of _0x4ab70c[_0x1b54('0x7')](_0x195b43,{'startRow':_0x4b37ff,'endRow':_0x4b37ff+_0x51b6a2-0x1}))_0x227022[_0x1b54('0x7c')][_0x1b54('0x83')](_0x2cbfd8['model'][_0x1b54('0x1e')](_0x357ee7));},{'priority':_0x1b54('0xa3')}),_0x2eb947[_0x1b54('0x8d')][_0x1b54('0x79')](_0x42d39f=>{if(_0x42d39f[_0x1b54('0xa8')]&&_0x42d39f[_0x1b54('0xa8')][_0x1b54('0x89')](_0x1b54('0x45')))return _0x42d39f[_0x1b54('0x88')]?{}:{'type':_0x1b54('0x0'),'content':_0x564313(_0x2cbfd8['locale'],_0x1b54('0x85'))};});const _0x5a763e=()=>!0x1;for(const _0x3994a4 of[_0x1b54('0x45'),_0x1b54('0x74'),'tablePasteRow',_0x1b54('0xb')])_0x2eb947[_0x1b54('0x6b')][_0x1b54('0x2f')]('insertion',_0x3994a4,_0x1b54('0x8a'),_0x5a763e),_0x2eb947['_suggestionFactory'][_0x1b54('0x2f')](_0x1b54('0x3a'),_0x3994a4,_0x1b54('0x8a'),_0x5a763e),_0x2eb947[_0x1b54('0x6b')][_0x1b54('0x2f')](_0x1b54('0x40'),_0x3994a4,'join',_0x5a763e);_0x2eb947['_suggestionFactory']['registerCustomCallback'](_0x1b54('0x40'),_0x1b54('0xb'),_0x1b54('0x60'),_0x5a763e),_0x2eb947['_suggestionFactory']['registerCustomCallback'](_0x1b54('0x40'),'tablePasteCell','accept',(_0x3ab01e,_0x1dac7e,_0x13414e)=>{const _0x1edc0=_0x3ab01e[_0x1b54('0x24')](_0x409e1d=>_0x409e1d['getContainedElement']())[_0x1b54('0x9c')](_0x114a9b=>_0x114a9b),_0xfaad3f=new Map(_0x1edc0[_0x1b54('0x24')](_0x5e55e4=>[_0x5e55e4,null]));if(_0x227022)for(const {element:_0x424977,attributes:_0x2bb0e5}of _0x227022[_0x1b54('0x66')])_0x2bb0e5&&_0xfaad3f[_0x1b54('0x1a')](_0x424977,_0x2bb0e5);else{if(_0x13414e&&_0x13414e[_0x1b54('0x51')])for(const [_0x460b57,_0x4f5163]of Object[_0x1b54('0x26')](_0x13414e[_0x1b54('0x51')])){const _0x8345a=_0x2cbfd8['model'][_0x1b54('0x98')][_0x1b54('0x38')](_0x460b57),_0x376e65=_0x8345a?_0x8345a[_0x1b54('0x2e')]()['getContainedElement']():null;_0x376e65&&_0xfaad3f['set'](_0x376e65,_0x4f5163);}}_0x2cbfd8[_0x1b54('0x20')][_0x1b54('0x25')](_0x3ed3da=>{for(const [_0xc9066b,_0x4cb975]of _0xfaad3f)_0x3ed3da[_0x1b54('0x56')]({...ae,..._0x4cb975},_0xc9066b);});});const _0x3fc2d6=(_0x11e323,_0x594f48)=>{_0x2eb947['_suggestionFactory'][_0x1b54('0x2f')](_0x11e323,_0x1b54('0x45'),_0x594f48,(_0x2f3f2c,_0x5a3a85,_0x5950bc)=>{_0x2cbfd8[_0x1b54('0x20')][_0x1b54('0x25')](_0x4aa9cb=>{const _0x3b2f55=[];for(const _0x2e7276 of _0x2f3f2c){const _0x494c5f=_0x2e7276[_0x1b54('0x5c')][_0x1b54('0x32')];_0x494c5f['is']('element',_0x1b54('0x17'))&&_0x3b2f55[_0x1b54('0x83')](_0x494c5f);}_0x2eb947[_0x1b54('0x6b')][_0x1b54('0x1c')](_0x11e323,null,_0x594f48)(_0x2f3f2c,_0x5a3a85,_0x5950bc);for(const _0x2c3c5d of _0x3b2f55)_0x1b54('0x10')!=_0x2c3c5d[_0x1b54('0x68')][_0x1b54('0x18')]&&_0x4aa9cb[_0x1b54('0x6a')](_0x2c3c5d);});});};_0x3fc2d6('insertion','accept'),_0x3fc2d6(_0x1b54('0x0'),'discard'),_0x3fc2d6(_0x1b54('0x3a'),'accept'),_0x3fc2d6(_0x1b54('0x3a'),_0x1b54('0x60')),_0x2eb947[_0x1b54('0x6b')]['registerCustomCallback'](_0x1b54('0x0'),_0x1b54('0x2b'),_0x1b54('0x60'),_0x4fc02c=>{const _0x5eb5c8=_0x4fc02c[_0x1b54('0x24')](_0x11895e=>_0x11895e[_0x1b54('0x94')]()),_0xf61f53=_0x5eb5c8[0x0][_0x1b54('0x8')](_0x1b54('0xa1')),{minRow:_0x25cbb9,maxRow:_0x54300b}=_0xffee66['_getCoordsForCells'](_0x5eb5c8);_0x4ab70c[_0x1b54('0x37')](_0xf61f53,{'at':_0x25cbb9,'rows':_0x54300b-_0x25cbb9+0x1});}),_0x2eb947[_0x1b54('0x6b')][_0x1b54('0x2f')]('insertion',_0x1b54('0x74'),_0x1b54('0x60'),_0x17b484=>{const _0x3c0f2d=_0x17b484[_0x1b54('0x24')](_0x13a8fe=>_0x13a8fe[_0x1b54('0x94')]()),_0xcfd50=_0x3c0f2d[0x0][_0x1b54('0x8')](_0x1b54('0xa1')),{minColumn:_0xfbf4ab,maxColumn:_0x2b4922}=_0xffee66[_0x1b54('0xa0')](_0x3c0f2d);_0x4ab70c[_0x1b54('0x67')](_0xcfd50,{'at':_0xfbf4ab,'columns':_0x2b4922-_0xfbf4ab+0x1});});const _0x96a959=(_0x338127,_0x982690)=>{if(!_0x982690[_0x1b54('0xa8')]||!_0x982690['subType'][_0x1b54('0x89')](_0x1b54('0x45')))return;const _0x33b21d=_0x982690[_0x1b54('0x97')][_0x1b54('0x86')],_0x4a1d51=_0x2eb947[_0x1b54('0x5a')]()[_0x1b54('0x9c')](_0x7b06f3=>_0x7b06f3['isInContent']&&_0x7b06f3[_0x1b54('0x97')]&&_0x7b06f3['attributes'][_0x1b54('0x86')]==_0x33b21d);_0x4a1d51[_0x1b54('0x47')]&&_0x982690[_0x1b54('0x1')]()['length']!=_0x4a1d51[_0x1b54('0x47')]&&_0x4a1d51[_0x1b54('0x52')]((_0x3e7aa4,_0x3ef710)=>(_0x3e7aa4[_0x1b54('0xa2')]=_0x3ef710,_0x3ef710[_0x1b54('0x88')]=_0x3e7aa4,_0x3ef710));};function _0x172a35(_0x1646af,_0x32201f=!0x0){const {id:_0x4f5459}=_0x2eb947[_0x1b54('0x4')](_0x1646af[_0x1b54('0x4f')]),_0x1d115f=[_0x1b54('0x5f'),_0x1b54('0x34')],_0x689efa=_0x2eb947[_0x1b54('0x16')]['includes'](_0x1646af[_0x1b54('0x4f')]);return _0x689efa&&_0x1d115f[_0x1b54('0x83')](_0x1b54('0x4e')),{'classes':_0x1d115f,'attributes':{'data-suggestion':_0x4f5459},'priority':_0x689efa&&_0x32201f?0xbc2:0xbb8};}_0x2eb947['on'](_0x1b54('0xd'),_0x96a959,{'priority':_0x1b54('0x64')}),_0x2eb947['on'](_0x1b54('0x13'),_0x96a959,{'priority':_0x1b54('0x64')}),_0x2cbfd8[_0x1b54('0x20')][_0x1b54('0x92')]['registerPostFixer'](()=>{let _0x1d7814=!0x1;const _0x31f0d0=Array[_0x1b54('0x82')](_0x2cbfd8['model'][_0x1b54('0x92')][_0x1b54('0x71')]['getChangedMarkers']());for(const {name:_0x43d0b8,data:_0x1a6f53}of _0x31f0d0){const {group:_0x3e1cc7,type:_0x3684ce,id:_0x4dd74e}=_0x2eb947[_0x1b54('0x4')](_0x43d0b8);if(_0x1b54('0x1b')!=_0x3e1cc7||_0x1b54('0x3a')!=_0x3684ce||_0x1a6f53[_0x1b54('0x43')])continue;if(!_0x2eb947[_0x1b54('0x50')](_0x4dd74e))continue;const _0xb6ca61=_0x2eb947[_0x1b54('0x53')](_0x4dd74e)[_0x1b54('0xa9')](),_0x420dfa=_0x2cbfd8[_0x1b54('0x91')][_0x1b54('0x38')](_0x1b54('0x9e'))['me'];for(const _0x20e310 of _0x2eb947[_0x1b54('0x5a')]()){if(!_0x20e310[_0x1b54('0x9d')]||_0x20e310[_0x1b54('0x69')]!=_0x420dfa)continue;if(_0x1b54('0x40')!=_0x20e310[_0x1b54('0x9a')]||_0x1b54('0xb')!=_0x20e310[_0x1b54('0xa8')])continue;if(_0x20e310['getRanges']()[_0x1b54('0x93')](_0x20fb17=>_0xb6ca61[_0x1b54('0xa7')](_0x1ec539=>_0x1ec539[_0x1b54('0xe')](_0x20fb17,!0x0))))for(const _0x4aa96f of _0x20e310[_0x1b54('0x1')]())_0x4aa96f[_0x1b54('0x9d')]&&(_0x4aa96f[_0x1b54('0x60')](),_0x1d7814=!0x0);}}return _0x1d7814;}),_0x2cbfd8['model'][_0x1b54('0x92')][_0x1b54('0xf')](_0x66edad=>{const _0x24ce2a=_0x2cbfd8[_0x1b54('0x33')][_0x1b54('0x38')]('redo');if(!_0x24ce2a||!_0x24ce2a[_0x1b54('0x7d')][_0x1b54('0x76')](_0x66edad[_0x1b54('0x2c')]))return!0x1;let _0x1a6576=!0x1;const _0x349037=_0x2cbfd8['plugins'][_0x1b54('0x38')](_0x1b54('0x9e'))['me'],_0x5e242e=_0x2cbfd8['model']['document']['differ'][_0x1b54('0x62')](),_0x2f1c63=Array['from'](_0x2cbfd8[_0x1b54('0x20')][_0x1b54('0x92')]['differ'][_0x1b54('0x8e')]())[_0x1b54('0x9c')](({name:_0x3a3146,data:_0x2ee118})=>{const {group:_0x45325c,subType:_0x28d9ff,authorId:_0x239e4d}=_0x2eb947[_0x1b54('0x4')](_0x3a3146);return _0x1b54('0x1b')==_0x45325c&&_0x1b54('0x45')==_0x28d9ff&&_0x239e4d==_0x349037['id']&&!_0x2ee118[_0x1b54('0x43')];});for(const _0x2ef4fe of _0x5e242e){if('insert'!=_0x2ef4fe['type']||_0x1b54('0x17')!=_0x2ef4fe[_0x1b54('0x7e')]||0x1!=_0x2ef4fe[_0x1b54('0x47')])continue;const _0x9fd56c=_0x66edad['createRange'](_0x2ef4fe['position'],_0x2ef4fe[_0x1b54('0x23')][_0x1b54('0x2')](0x1));if(!_0x2f1c63[_0x1b54('0x3b')](({data:_0x497182})=>_0x497182[_0x1b54('0x15')]['isEqual'](_0x9fd56c)))for(const {name:_0x4497a3,data:_0x36fbcb}of _0x2f1c63)if(_0x9fd56c[_0x1b54('0xe')](_0x36fbcb[_0x1b54('0x15')])){_0x66edad[_0x1b54('0x5e')](_0x4497a3,{'range':_0x9fd56c}),_0x1a6576=!0x0;break;}}return _0x1a6576;}),_0x2cbfd8[_0x1b54('0x20')][_0x1b54('0x92')][_0x1b54('0xf')](_0x2da5e4=>{let _0x241b7b=!0x1;const _0x5eac93=_0x2cbfd8[_0x1b54('0x91')]['get'](_0x1b54('0x9e'))['me'],_0x4e2ea2=_0x2eb947[_0x1b54('0x5a')]()[_0x1b54('0x9c')](_0x2b3a36=>_0x2b3a36[_0x1b54('0x9d')]&&_0x2b3a36[_0x1b54('0x69')]==_0x5eac93),_0x38e85a=new Set(),_0x4c83be=new Set();for(const _0x2feb2f of _0x4e2ea2)if(_0x1b54('0x45')==_0x2feb2f[_0x1b54('0xa8')])for(const _0x7c576 of _0x2feb2f['getMarkers']()){const _0x255ec1=_0x7c576[_0x1b54('0x2e')]()[_0x1b54('0x94')]();if(_0x255ec1){if(_0x255ec1['is']('element',_0x1b54('0x17'))&&ce(_0x255ec1)){_0x2feb2f[_0x1b54('0x1f')](_0x7c576[_0x1b54('0x7e')]),_0x38e85a[_0x1b54('0xa6')](_0x255ec1),_0x241b7b=!0x0;const _0x59f275=_0x255ec1['nextSibling'],_0x4145c9=_0x255ec1['previousSibling'],_0x2a8225=_0x59f275&&_0x59f275['is']('element',_0x1b54('0x17')),_0x56e873=_0x4145c9&&_0x4145c9['is'](_0x1b54('0x6c'),_0x1b54('0x17'));_0x2a8225&&!_0x38e85a['has'](_0x59f275)&&_0x4c83be[_0x1b54('0xa6')](_0x59f275),_0x56e873&&!_0x38e85a[_0x1b54('0x76')](_0x4145c9)&&_0x4c83be['add'](_0x4145c9);}else _0x255ec1['is'](_0x1b54('0x6c'),_0x1b54('0x35'))&&_0x255ec1[_0x1b54('0x70')]&&(_0x2feb2f[_0x1b54('0x1f')](_0x7c576['name']),_0x241b7b=!0x0);}}else{if(_0x1b54('0xb')==_0x2feb2f[_0x1b54('0xa8')]){if(!_0x2feb2f[_0x1b54('0x97')]||!_0x2feb2f[_0x1b54('0x97')][_0x1b54('0x86')])continue;const _0x4b3095=_0x2feb2f[_0x1b54('0x97')][_0x1b54('0x51')];if(_0x4b3095&&Object[_0x1b54('0xc')](_0x4b3095)[_0x1b54('0x47')])continue;const _0x410eb7=_0x2feb2f[_0x1b54('0x97')][_0x1b54('0x86')];let _0x30ebed=!0x0,_0x43c29a=!0x0;for(const _0x44dc3c of _0x4e2ea2)if(_0x44dc3c['subType']&&_0x44dc3c[_0x1b54('0xa8')][_0x1b54('0x89')](_0x1b54('0x45'))){if(!_0x44dc3c[_0x1b54('0x97')][_0x1b54('0x86')]){_0x43c29a=!0x1;break;}if(_0x44dc3c['id']!=_0x2feb2f['id']&&_0x44dc3c[_0x1b54('0x97')][_0x1b54('0x86')]==_0x410eb7){_0x30ebed=!0x1;break;}}_0x43c29a&&_0x30ebed&&(_0x2feb2f[_0x1b54('0xa5')](),_0x241b7b=!0x0);}}for(const _0x18b9d2 of _0x38e85a)_0x2da5e4[_0x1b54('0x59')](_0x18b9d2);for(const _0x2aa5bf of _0x4c83be)_0x2da5e4[_0x1b54('0x6a')](_0x2aa5bf);return _0x241b7b;}),_0x2cbfd8['conversion'][_0x1b54('0x6d')](_0x1b54('0x3d'))[_0x1b54('0xa4')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1c61e9,_0x3cdc73)=>_0x172a35(_0x1c61e9),'converterPriority':_0x1b54('0x64')}),_0x2cbfd8[_0x1b54('0x12')][_0x1b54('0x6d')](_0x1b54('0x65'))[_0x1b54('0xa4')]({'model':_0x1b54('0x4c'),'view':(_0x4f16ab,_0x2fdfc8)=>_0x2fdfc8[_0x1b54('0x1d')][_0x1b54('0x6f')]?_0x172a35(_0x4f16ab,!0x1):null,'converterPriority':_0x1b54('0x64')});const _0x290097=_0x2cbfd8[_0x1b54('0x8b')][_0x1b54('0x9')];this[_0x1b54('0x46')](_0x290097[_0x1b54('0x92')],'clipboardOutput',(_0x3cbf20,_0x29e7cb)=>{const _0x13318b=[];for(const _0x4116a6 of _0x290097[_0x1b54('0x75')](_0x29e7cb[_0x1b54('0x48')])['getItems']())_0x4116a6['is']('element',_0x1b54('0x90'))&&_0x13318b['push'](_0x4116a6);_0x290097[_0x1b54('0x25')](_0x5ab247=>{for(const _0x20fde5 of _0x13318b)_0x5ab247[_0x1b54('0x19')](_0x5ab247[_0x1b54('0x75')](_0x20fde5),_0x5ab247[_0x1b54('0x7f')](_0x20fde5)),_0x5ab247[_0x1b54('0x59')](_0x20fde5);});});}}function ce(_0x3a5a5e){if(_0x3a5a5e['isEmpty'])return!0x0;const _0x3f1166=_0x3a5a5e[_0x1b54('0x5d')](0x0);return _0x3f1166['is'](_0x1b54('0x6c'),_0x1b54('0x35'))&&_0x3f1166[_0x1b54('0x70')];}function fe(_0x49559e,_0x49f1d2={},_0x23aca1){for(const {isAnchor:_0x252c00,cellHeight:_0x193037,cellWidth:_0x13f287}of _0x23aca1['createTableWalker'](_0x49559e,{'includeAllSlots':!0x0,..._0x49f1d2}))if(!_0x252c00||0x1!=_0x193037||0x1!=_0x13f287)return!0x1;return!0x0;}
|
|
23
|
+
const _0x11e7=['keys','elementToElement','markerToHighlight','createElement','filter','editing','model','createPositionBefore','getRange','registerDescriptionCallback','name','getShiftedBy','editor','formatBlock','markerName','afterInit','cell','getChangedMarkers','*Replace\x20table\x20cells*','getAttributes','nextSibling','endRow','conversion','getContainedElement','getChild','next','unwrap','getRows','rows','containsRange','return','insert','markMultiRangeDeletion','for','nodeAfter','table','accept','low','newRange','findAncestor','subType','getSelectionAffectedTableCells','join','getChildren','_suggestionFactory','TableUtils','find','previousSibling','tablePasteCell','insertionRanges','getSuggestions','insertContent','cells','_splitMarkerName','_createdBatches','length','first','set','column','removeColumns','suggestion:formatBlock:tablePasteCell','getSuggestionCallback','TableClipboard','suggestion','_replaceTableSlotCell','options','row','type','insertion','register','documentSelection','some','isEqual','fromEntries','tableCellPadding','every','createRangeOn','move','removeMarkers','setAttribute','isInContent','ck-suggestion-marker--active','createRangeIn','deletionRanges','startsWith','fill','remove','discard','createTableWalker','last','markerAttributes','_tablePostFixingSubtypes','redo','tableCellSuggestion','tablePaste','differ','getMarkers','listenTo','getTableIfOnlyTableInContent','removeRows','removeMarker','getRanges','push','tablePasteRow','tablePasteChainId','has','$graveyard','includes','document','insertRows','paragraph','requires','updateMarker','stop','end','suggestion-td','wrap','selection','registerPostFixer','root','from','showSuggestionHighlights','entries','map','tableCell','high','attributes','rootName','_getCoordsForCells','ck-suggestion-marker-insertion','author','activeMarkers','tableCellBorderWidth','getColumnIndexes','tableCellBorderStyle','Users','change','tableCellBackgroundColor','add','get','tableCellVerticalAlignment','tablePasteColumn','markers','batch','deletion','element','previous','_descriptionFactory','TrackChangesEditing','clipboardOutput','isEmpty','value','createRange','trackChanges','plugins','getSuggestion','reduce','markMultiRangeBlockFormat','tableCellBorderColor','getAllAdjacentSuggestions','setAttributes','getRowIndexes','registerCustomCallback'];(function(_0x1cb5ec,_0x11e78f){const _0xf1023f=function(_0x3ea80f){while(--_0x3ea80f){_0x1cb5ec['push'](_0x1cb5ec['shift']());}};_0xf1023f(++_0x11e78f);}(_0x11e7,0xdc));const _0xf102=function(_0x1cb5ec,_0x11e78f){_0x1cb5ec=_0x1cb5ec-0x0;let _0xf1023f=_0x11e7[_0x1cb5ec];return _0xf1023f;};import{getTranslation as _0x2ff337}from'../utils/common-translations';import{Plugin as _0x5d8833}from'ckeditor5/src/core';import{uid as _0x4aecfa,priorities as _0x37d1d1}from'ckeditor5/src/utils';import _0x3bbc0b from'./table';const le=[_0xf102('0x4b'),_0xf102('0x65'),_0xf102('0x4d'),'tableCellHorizontalAlignment',_0xf102('0x53'),_0xf102('0x50'),_0xf102('0x11')],ae=Object[_0xf102('0x10')](le[_0xf102('0x42')](_0x40aacd=>[_0x40aacd,null]));export default class wt extends _0x5d8833{static get[_0xf102('0x36')](){return[_0x3bbc0b];}[_0xf102('0x79')](){const _0x40af49=this['editor'];if(!_0x40af49[_0xf102('0x61')][_0xf102('0x30')]('TableClipboard'))return;const _0x223397=_0x40af49[_0xf102('0x61')][_0xf102('0x52')](_0xf102('0x5b')),_0x5296a8=_0x40af49[_0xf102('0x61')]['get'](_0xf102('0x97')),_0xcd4d41=_0x40af49[_0xf102('0x61')]['get'](_0x3bbc0b),_0x998718=_0x40af49[_0xf102('0x61')][_0xf102('0x52')](_0xf102('0x5'));_0xcd4d41[_0xf102('0x22')]['push'](_0xf102('0x2e'),_0xf102('0x54')),_0x40af49[_0xf102('0x70')]['schema'][_0xf102('0xc')](_0xf102('0x24'),{'allowIn':_0xf102('0x43'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x40af49[_0xf102('0x80')][_0xf102('0x6b')]({'model':_0xf102('0x24'),'view':_0xf102('0x3a')});let _0x509e8b=null;_0x40af49[_0xf102('0x70')]['on'](_0xf102('0x9d'),(_0x6fe525,_0x4445a4)=>{const [_0x425ea2,_0xeb8ab]=_0x4445a4,_0x21f06e=_0x4445a4[_0x4445a4[_0xf102('0xa1')]-0x1];_0x21f06e&&_0x21f06e['forceDefaultExecution']||_0x223397['_isForcedDefaultExecutionBlock']||this[_0xf102('0x76')]['commands'][_0xf102('0x52')](_0xf102('0x60'))[_0xf102('0x5e')]&&function(_0x13d66b,_0x197779,_0x53abf5,_0x326679,_0x1ff022){if(_0x197779&&!_0x197779['is'](_0xf102('0xd')))return!0x1;const _0x2e7948=_0x1ff022[_0xf102('0x29')](_0x13d66b,_0x53abf5);if(!_0x2e7948||!fe(_0x2e7948,void 0x0,_0x326679))return!0x1;const _0x5cade8=_0x326679[_0xf102('0x93')](_0x53abf5[_0xf102('0x33')][_0xf102('0x3c')]);if(!_0x5cade8[_0xf102('0xa1')])return!0x1;const _0x537343=_0x5cade8[0x0][_0xf102('0x91')](_0xf102('0x8d')),_0x3e5fea=_0x326679[_0xf102('0x68')](_0x5cade8),_0xb9a8e0=_0x326679[_0xf102('0x4c')](_0x5cade8),_0x5e1310={'startRow':_0x3e5fea[_0xf102('0xa2')],'endRow':_0x3e5fea[_0xf102('0x20')],'startColumn':_0xb9a8e0[_0xf102('0xa2')],'endColumn':_0xb9a8e0[_0xf102('0x20')]};return 0x1==_0x5cade8[_0xf102('0xa1')]&&(_0x5e1310[_0xf102('0x7f')]+=_0x326679[_0xf102('0x85')](_0x2e7948)-0x1,_0x5e1310['endColumn']+=_0x326679['getColumns'](_0x2e7948)-0x1),fe(_0x537343,_0x5e1310,_0x326679);}(_0x425ea2,_0xeb8ab,_0x40af49[_0xf102('0x70')],_0x5296a8,_0x998718)&&(_0x6fe525['stop'](),_0x509e8b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x40af49[_0xf102('0x70')][_0xf102('0x4f')](()=>{_0x40af49[_0xf102('0x70')]['insertContent'](_0x4445a4[0x0],_0x4445a4[0x1],_0x4445a4[0x2],{'forceDefaultExecution':!0x0});const _0x463a50=_0x4aecfa(),{rowInsertionRanges:_0x41d577,columnInsertionRanges:_0x1469bc,insertionRanges:_0x33f8d8,deletionRanges:_0x50e02a,cells:_0xae3c4c}=_0x509e8b;_0x41d577['length']&&_0x223397['markMultiRangeInsertion'](_0x41d577,_0xf102('0x2e'),{'tablePasteChainId':_0x463a50}),_0x1469bc['length']&&_0x223397['markMultiRangeInsertion'](_0x1469bc,_0xf102('0x54'),{'tablePasteChainId':_0x463a50}),_0x33f8d8['length']&&_0x223397['markMultiRangeInsertion'](_0x33f8d8,_0xf102('0x25'),{'tablePasteChainId':_0x463a50,'skipNestingCheck':!0x0}),_0x50e02a[_0xf102('0xa1')]&&_0x223397[_0xf102('0x8a')](_0x50e02a,'tablePaste',{'tablePasteChainId':_0x463a50,'skipNestingCheck':!0x0});const _0x1961a3=_0x223397[_0xf102('0x64')](_0xae3c4c['map'](({element:_0x33113b})=>_0x33113b),{'formatGroupId':_0x4aecfa()},[],_0xf102('0x9a'),{'tablePasteChainId':_0x463a50});if(_0x1961a3){const _0x88233f=_0x1961a3[_0xf102('0x27')](),_0x54c52c=[];for(const {element:_0x43320d,attributes:_0x3b7e41}of _0xae3c4c){if(!_0x3b7e41)continue;const _0x4d54e8=_0x40af49[_0xf102('0x70')]['createRangeOn'](_0x43320d),_0x15c382=_0x88233f['find'](_0x2d81de=>_0x2d81de[_0xf102('0x72')]()[_0xf102('0xf')](_0x4d54e8));_0x15c382&&_0x54c52c[_0xf102('0x2d')]([_0x15c382[_0xf102('0x74')],_0x3b7e41]);}_0x54c52c[_0xf102('0xa1')]&&_0x1961a3[_0xf102('0x16')]('markerAttributes',Object['fromEntries'](_0x54c52c));}_0x509e8b=null;}));},{'priority':_0x37d1d1['high']+0xa}),_0x40af49['plugins'][_0xf102('0x52')](_0xf102('0x5'))['on'](_0xf102('0x7'),(_0x14dcaf,_0x128013)=>{const [_0x310bdb,_0x42f1cc,,_0x318358]=_0x128013;if(!_0x509e8b)return;_0x14dcaf[_0xf102('0x38')]();const _0x499645=_0x310bdb[_0xf102('0x7a')],_0x5708d8=_0x42f1cc,_0x3068ec=ce(_0x499645),_0x30295c=ce(_0x5708d8);_0x14dcaf[_0xf102('0x88')]=_0x499645;let _0x130faa=null,_0x52d668=null;if(_0x30295c||_0x3068ec){if(_0x3068ec&&!_0x30295c){_0x318358[_0xf102('0x1d')](_0x499645[_0xf102('0x82')](0x0));for(const _0x28696 of Array['from'](_0x5708d8[_0xf102('0x95')]()))_0x318358['insert'](_0x28696,_0x499645,_0xf102('0x39'));const _0x5c7681=_0x509e8b['rowInsertionIndexes'][_0xf102('0x32')](_0x310bdb[_0xf102('0x9')]),_0x452651=_0x509e8b['columnInsertionIndexes'][_0xf102('0x32')](_0x310bdb[_0xf102('0x1')]);_0x5c7681||_0x452651||(_0x130faa=_0x318358['createRangeIn'](_0x499645));}else _0x30295c&&!_0x3068ec&&(_0x52d668=_0x318358[_0xf102('0x19')](_0x499645));}else{const _0x5864b8=_0x318358[_0xf102('0x6d')](_0xf102('0x24')),_0x481e5e=_0x318358['createElement'](_0xf102('0x24'));_0x318358[_0xf102('0x3b')](_0x318358[_0xf102('0x19')](_0x499645),_0x481e5e),_0x318358[_0xf102('0x89')](_0x5864b8,_0x499645,0x0);for(const _0x37c29f of Array['from'](_0x5708d8['getChildren']()))_0x318358['insert'](_0x37c29f,_0x5864b8,_0xf102('0x39'));_0x130faa=_0x318358['createRangeOn'](_0x5864b8),_0x52d668=_0x318358[_0xf102('0x13')](_0x481e5e);}const _0x1fcb43=Array[_0xf102('0x3f')](_0x5708d8[_0xf102('0x7d')]())[_0xf102('0x6e')](([_0x5b23fc])=>le[_0xf102('0x32')](_0x5b23fc));_0x509e8b[_0xf102('0x9e')]['push']({'element':_0x499645,'attributes':_0x1fcb43[_0xf102('0xa1')]?Object[_0xf102('0x10')](_0x1fcb43):null}),_0x130faa&&_0x509e8b[_0xf102('0x9b')][_0xf102('0x2d')](_0x130faa),_0x52d668&&_0x509e8b[_0xf102('0x1a')]['push'](_0x52d668);},{'priority':_0xf102('0x44')}),_0x5296a8['on']('insertColumns',(_0xf179e,_0x3d0c2c)=>{const [_0x5a6959,_0x5afba2={}]=_0x3d0c2c;if(!_0x509e8b)return;const _0x32c3a4=_0x5afba2['at']||0x0,_0x425f68=_0x5afba2['columns']||0x1;_0x509e8b['columnInsertionIndexes']=new Array(_0x425f68)[_0xf102('0x1c')](_0x32c3a4)[_0xf102('0x42')]((_0x414d5c,_0x4ac175)=>_0x414d5c+_0x4ac175);for(const {cell:_0x1d7110}of _0x5296a8[_0xf102('0x1f')](_0x5a6959,{'startColumn':_0x32c3a4,'endColumn':_0x32c3a4+_0x425f68-0x1}))_0x509e8b['columnInsertionRanges']['push'](_0x40af49[_0xf102('0x70')][_0xf102('0x13')](_0x1d7110));},{'priority':_0xf102('0x8f')}),_0x5296a8['on'](_0xf102('0x34'),(_0x4a01df,_0x523391)=>{const [_0x181b95,_0x5d1613={}]=_0x523391;if(!_0x509e8b)return;const _0x3be05b=_0x5d1613['at']||0x0,_0x2cb952=_0x5d1613[_0xf102('0x86')]||0x1;_0x509e8b['rowInsertionIndexes']=new Array(_0x2cb952)[_0xf102('0x1c')](_0x3be05b)[_0xf102('0x42')]((_0x5a9a0f,_0x5d6756)=>_0x5a9a0f+_0x5d6756);for(const {cell:_0x1d4caf}of _0x5296a8[_0xf102('0x1f')](_0x181b95,{'startRow':_0x3be05b,'endRow':_0x3be05b+_0x2cb952-0x1}))_0x509e8b['rowInsertionRanges'][_0xf102('0x2d')](_0x40af49['model'][_0xf102('0x13')](_0x1d4caf));},{'priority':_0xf102('0x8f')}),_0x223397[_0xf102('0x5a')][_0xf102('0x73')](_0x12ae71=>{if(_0x12ae71[_0xf102('0x92')]&&_0x12ae71[_0xf102('0x92')][_0xf102('0x1b')](_0xf102('0x25')))return _0x12ae71[_0xf102('0x59')]?{}:{'type':'insertion','content':_0x2ff337(_0x40af49['locale'],_0xf102('0x7c'))};});const _0x383c9a=()=>!0x1;for(const _0x33b9f7 of[_0xf102('0x25'),_0xf102('0x54'),_0xf102('0x2e'),_0xf102('0x9a')])_0x223397[_0xf102('0x96')][_0xf102('0x69')](_0xf102('0xb'),_0x33b9f7,_0xf102('0x94'),_0x383c9a),_0x223397[_0xf102('0x96')][_0xf102('0x69')](_0xf102('0x57'),_0x33b9f7,_0xf102('0x94'),_0x383c9a),_0x223397[_0xf102('0x96')][_0xf102('0x69')](_0xf102('0x77'),_0x33b9f7,_0xf102('0x94'),_0x383c9a);_0x223397[_0xf102('0x96')]['registerCustomCallback'](_0xf102('0x77'),_0xf102('0x9a'),'discard',_0x383c9a),_0x223397[_0xf102('0x96')][_0xf102('0x69')](_0xf102('0x77'),_0xf102('0x9a'),'accept',(_0x219f86,_0x4861ff,_0x54e9bb)=>{const _0x21f109=_0x219f86[_0xf102('0x42')](_0x2f1bd2=>_0x2f1bd2['getContainedElement']())['filter'](_0x1cfa65=>_0x1cfa65),_0x194ef4=new Map(_0x21f109['map'](_0x596dd5=>[_0x596dd5,null]));if(_0x509e8b)for(const {element:_0x4b0677,attributes:_0x8c6491}of _0x509e8b[_0xf102('0x9e')])_0x8c6491&&_0x194ef4[_0xf102('0x0')](_0x4b0677,_0x8c6491);else{if(_0x54e9bb&&_0x54e9bb[_0xf102('0x21')])for(const [_0x317196,_0x3fc3ea]of Object[_0xf102('0x41')](_0x54e9bb[_0xf102('0x21')])){const _0x572a4c=_0x40af49[_0xf102('0x70')][_0xf102('0x55')][_0xf102('0x52')](_0x317196),_0x2c1eba=_0x572a4c?_0x572a4c['getRange']()['getContainedElement']():null;_0x2c1eba&&_0x194ef4[_0xf102('0x0')](_0x2c1eba,_0x3fc3ea);}}_0x40af49['model'][_0xf102('0x4f')](_0x8156d4=>{for(const [_0x362da1,_0x33c9de]of _0x194ef4)_0x8156d4[_0xf102('0x67')]({...ae,..._0x33c9de},_0x362da1);});});const _0x36268d=(_0x124916,_0x4c54c7)=>{_0x223397['_suggestionFactory']['registerCustomCallback'](_0x124916,'tablePaste',_0x4c54c7,(_0x38e48b,_0x211d63,_0x168cc7)=>{_0x40af49['model'][_0xf102('0x4f')](_0x16f019=>{const _0x855962=[];for(const _0x1ba969 of _0x38e48b){const _0x42442f=_0x1ba969['start'][_0xf102('0x8c')];_0x42442f['is'](_0xf102('0x58'),_0xf102('0x24'))&&_0x855962['push'](_0x42442f);}_0x223397[_0xf102('0x96')][_0xf102('0x4')](_0x124916,null,_0x4c54c7)(_0x38e48b,_0x211d63,_0x168cc7);for(const _0x3d8287 of _0x855962)_0xf102('0x31')!=_0x3d8287[_0xf102('0x3e')][_0xf102('0x46')]&&_0x16f019[_0xf102('0x84')](_0x3d8287);});});};_0x36268d(_0xf102('0xb'),_0xf102('0x8e')),_0x36268d(_0xf102('0xb'),'discard'),_0x36268d(_0xf102('0x57'),_0xf102('0x8e')),_0x36268d(_0xf102('0x57'),_0xf102('0x1e')),_0x223397[_0xf102('0x96')][_0xf102('0x69')]('insertion',_0xf102('0x2e'),_0xf102('0x1e'),_0x2b4505=>{const _0xd8a3fc=_0x2b4505[_0xf102('0x42')](_0x5ec8dc=>_0x5ec8dc[_0xf102('0x81')]()),_0x242d52=_0xd8a3fc[0x0]['findAncestor'](_0xf102('0x8d')),{minRow:_0x2196d2,maxRow:_0x5795ab}=_0xcd4d41[_0xf102('0x47')](_0xd8a3fc);_0x5296a8[_0xf102('0x2a')](_0x242d52,{'at':_0x2196d2,'rows':_0x5795ab-_0x2196d2+0x1});}),_0x223397[_0xf102('0x96')][_0xf102('0x69')](_0xf102('0xb'),_0xf102('0x54'),_0xf102('0x1e'),_0x3776c8=>{const _0x1512d9=_0x3776c8['map'](_0x3469da=>_0x3469da[_0xf102('0x81')]()),_0x32f768=_0x1512d9[0x0][_0xf102('0x91')](_0xf102('0x8d')),{minColumn:_0x8066ea,maxColumn:_0x320967}=_0xcd4d41[_0xf102('0x47')](_0x1512d9);_0x5296a8[_0xf102('0x2')](_0x32f768,{'at':_0x8066ea,'columns':_0x320967-_0x8066ea+0x1});});const _0x5edf70=(_0x125f34,_0x147504)=>{if(!_0x147504[_0xf102('0x92')]||!_0x147504[_0xf102('0x92')]['startsWith']('tablePaste'))return;const _0x181d5e=_0x147504['attributes'][_0xf102('0x2f')],_0x338029=_0x223397['getSuggestions']()[_0xf102('0x6e')](_0x5f584e=>_0x5f584e[_0xf102('0x17')]&&_0x5f584e[_0xf102('0x45')]&&_0x5f584e[_0xf102('0x45')][_0xf102('0x2f')]==_0x181d5e);_0x338029[_0xf102('0xa1')]&&_0x147504[_0xf102('0x66')]()[_0xf102('0xa1')]!=_0x338029[_0xf102('0xa1')]&&_0x338029[_0xf102('0x63')]((_0x24044e,_0x252f3d)=>(_0x24044e[_0xf102('0x83')]=_0x252f3d,_0x252f3d[_0xf102('0x59')]=_0x24044e,_0x252f3d));};function _0x3ab965(_0x2b72b4,_0x209dfd=!0x0){const {id:_0x2d3878}=_0x223397[_0xf102('0x9f')](_0x2b72b4[_0xf102('0x78')]),_0x4e73e7=['ck-suggestion-marker',_0xf102('0x48')],_0x47001c=_0x223397[_0xf102('0x4a')][_0xf102('0x32')](_0x2b72b4['markerName']);return _0x47001c&&_0x4e73e7['push'](_0xf102('0x18')),{'classes':_0x4e73e7,'attributes':{'data-suggestion':_0x2d3878},'priority':_0x47001c&&_0x209dfd?0xbc2:0xbb8};}_0x223397['on']('suggestionLoaded',_0x5edf70,{'priority':_0xf102('0x44')}),_0x223397['on']('suggestionUnloaded',_0x5edf70,{'priority':_0xf102('0x44')}),_0x40af49[_0xf102('0x70')][_0xf102('0x33')]['registerPostFixer'](()=>{let _0x4b1d42=!0x1;const _0x4fd22d=Array['from'](_0x40af49['model'][_0xf102('0x33')][_0xf102('0x26')]['getChangedMarkers']());for(const {name:_0x2913c4,data:_0x7d7e6e}of _0x4fd22d){const {group:_0x329e87,type:_0x4b5597,id:_0x252e9f}=_0x223397[_0xf102('0x9f')](_0x2913c4);if(_0xf102('0x6')!=_0x329e87||_0xf102('0x57')!=_0x4b5597||_0x7d7e6e['oldRange'])continue;if(!_0x223397['hasSuggestion'](_0x252e9f))continue;const _0x5a8a56=_0x223397[_0xf102('0x62')](_0x252e9f)[_0xf102('0x2c')](),_0x42660e=_0x40af49[_0xf102('0x61')][_0xf102('0x52')](_0xf102('0x4e'))['me'];for(const _0x9417c3 of _0x223397[_0xf102('0x9c')]()){if(!_0x9417c3[_0xf102('0x17')]||_0x9417c3[_0xf102('0x49')]!=_0x42660e)continue;if(_0xf102('0x77')!=_0x9417c3[_0xf102('0xa')]||'tablePasteCell'!=_0x9417c3['subType'])continue;if(_0x9417c3[_0xf102('0x2c')]()[_0xf102('0x12')](_0x5be59e=>_0x5a8a56[_0xf102('0xe')](_0xd4830a=>_0xd4830a[_0xf102('0x87')](_0x5be59e,!0x0))))for(const _0x411ef4 of _0x9417c3['getAllAdjacentSuggestions']())_0x411ef4[_0xf102('0x17')]&&(_0x411ef4[_0xf102('0x1e')](),_0x4b1d42=!0x0);}}return _0x4b1d42;}),_0x40af49['model'][_0xf102('0x33')]['registerPostFixer'](_0x2f841f=>{const _0x5290ed=_0x40af49['commands'][_0xf102('0x52')](_0xf102('0x23'));if(!_0x5290ed||!_0x5290ed[_0xf102('0xa0')][_0xf102('0x30')](_0x2f841f[_0xf102('0x56')]))return!0x1;let _0x58d5ee=!0x1;const _0x2d32ac=_0x40af49['plugins']['get'](_0xf102('0x4e'))['me'],_0x4c6570=_0x40af49[_0xf102('0x70')][_0xf102('0x33')][_0xf102('0x26')]['getChanges'](),_0x251546=Array[_0xf102('0x3f')](_0x40af49[_0xf102('0x70')]['document']['differ'][_0xf102('0x7b')]())[_0xf102('0x6e')](({name:_0x2bbc03,data:_0x5dc4bc})=>{const {group:_0x5ee581,subType:_0x5f3f90,authorId:_0x38fcfe}=_0x223397[_0xf102('0x9f')](_0x2bbc03);return _0xf102('0x6')==_0x5ee581&&_0xf102('0x25')==_0x5f3f90&&_0x38fcfe==_0x2d32ac['id']&&!_0x5dc4bc['oldRange'];});for(const _0x3469c0 of _0x4c6570){if('insert'!=_0x3469c0[_0xf102('0xa')]||_0xf102('0x24')!=_0x3469c0['name']||0x1!=_0x3469c0[_0xf102('0xa1')])continue;const _0x597c84=_0x2f841f[_0xf102('0x5f')](_0x3469c0['position'],_0x3469c0['position'][_0xf102('0x75')](0x1));if(!_0x251546[_0xf102('0x98')](({data:_0x4270d1})=>_0x4270d1['newRange'][_0xf102('0xf')](_0x597c84)))for(const {name:_0x332e32,data:_0x208796}of _0x251546)if(_0x597c84[_0xf102('0x87')](_0x208796[_0xf102('0x90')])){_0x2f841f[_0xf102('0x37')](_0x332e32,{'range':_0x597c84}),_0x58d5ee=!0x0;break;}}return _0x58d5ee;}),_0x40af49[_0xf102('0x70')][_0xf102('0x33')][_0xf102('0x3d')](_0x24b7bc=>{let _0x2a5bcb=!0x1;const _0x2d380d=_0x40af49[_0xf102('0x61')][_0xf102('0x52')](_0xf102('0x4e'))['me'],_0x3a87de=_0x223397[_0xf102('0x9c')]()[_0xf102('0x6e')](_0x7cb0c7=>_0x7cb0c7[_0xf102('0x17')]&&_0x7cb0c7[_0xf102('0x49')]==_0x2d380d),_0x4a932b=new Set(),_0x586407=new Set();for(const _0x5ce94a of _0x3a87de)if(_0xf102('0x25')==_0x5ce94a[_0xf102('0x92')])for(const _0x2d8069 of _0x5ce94a[_0xf102('0x27')]()){const _0x50bed9=_0x2d8069[_0xf102('0x72')]()[_0xf102('0x81')]();if(_0x50bed9){if(_0x50bed9['is'](_0xf102('0x58'),_0xf102('0x24'))&&ce(_0x50bed9)){_0x5ce94a[_0xf102('0x2b')](_0x2d8069['name']),_0x4a932b[_0xf102('0x51')](_0x50bed9),_0x2a5bcb=!0x0;const _0x52b037=_0x50bed9[_0xf102('0x7e')],_0x16d63f=_0x50bed9[_0xf102('0x99')],_0x4f1faf=_0x52b037&&_0x52b037['is'](_0xf102('0x58'),_0xf102('0x24')),_0x142c4a=_0x16d63f&&_0x16d63f['is'](_0xf102('0x58'),_0xf102('0x24'));_0x4f1faf&&!_0x4a932b[_0xf102('0x30')](_0x52b037)&&_0x586407[_0xf102('0x51')](_0x52b037),_0x142c4a&&!_0x4a932b[_0xf102('0x30')](_0x16d63f)&&_0x586407[_0xf102('0x51')](_0x16d63f);}else _0x50bed9['is'](_0xf102('0x58'),_0xf102('0x35'))&&_0x50bed9[_0xf102('0x5d')]&&(_0x5ce94a[_0xf102('0x2b')](_0x2d8069[_0xf102('0x74')]),_0x2a5bcb=!0x0);}}else{if(_0xf102('0x9a')==_0x5ce94a['subType']){if(!_0x5ce94a[_0xf102('0x45')]||!_0x5ce94a[_0xf102('0x45')]['tablePasteChainId'])continue;const _0x4ccc44=_0x5ce94a['attributes']['markerAttributes'];if(_0x4ccc44&&Object[_0xf102('0x6a')](_0x4ccc44)[_0xf102('0xa1')])continue;const _0x2c285c=_0x5ce94a[_0xf102('0x45')][_0xf102('0x2f')];let _0x38d869=!0x0,_0x3368c6=!0x0;for(const _0x3123c1 of _0x3a87de)if(_0x3123c1[_0xf102('0x92')]&&_0x3123c1['subType'][_0xf102('0x1b')](_0xf102('0x25'))){if(!_0x3123c1[_0xf102('0x45')][_0xf102('0x2f')]){_0x3368c6=!0x1;break;}if(_0x3123c1['id']!=_0x5ce94a['id']&&_0x3123c1[_0xf102('0x45')]['tablePasteChainId']==_0x2c285c){_0x38d869=!0x1;break;}}_0x3368c6&&_0x38d869&&(_0x5ce94a[_0xf102('0x15')](),_0x2a5bcb=!0x0);}}for(const _0x36e5c0 of _0x4a932b)_0x24b7bc[_0xf102('0x1d')](_0x36e5c0);for(const _0x237804 of _0x586407)_0x24b7bc[_0xf102('0x84')](_0x237804);return _0x2a5bcb;}),_0x40af49[_0xf102('0x80')][_0xf102('0x8b')]('editingDowncast')['markerToHighlight']({'model':_0xf102('0x3'),'view':(_0x52b1ec,_0xaad1b1)=>_0x3ab965(_0x52b1ec),'converterPriority':_0xf102('0x44')}),_0x40af49['conversion'][_0xf102('0x8b')]('dataDowncast')[_0xf102('0x6c')]({'model':_0xf102('0x3'),'view':(_0xa5c760,_0x4932e0)=>_0x4932e0[_0xf102('0x8')][_0xf102('0x40')]?_0x3ab965(_0xa5c760,!0x1):null,'converterPriority':_0xf102('0x44')});const _0x45dffe=_0x40af49[_0xf102('0x6f')]['view'];this[_0xf102('0x28')](_0x45dffe[_0xf102('0x33')],_0xf102('0x5c'),(_0x801124,_0x58d1ce)=>{const _0x528fd5=[];for(const _0x511daa of _0x45dffe[_0xf102('0x19')](_0x58d1ce['content'])['getItems']())_0x511daa['is'](_0xf102('0x58'),'suggestion-td')&&_0x528fd5[_0xf102('0x2d')](_0x511daa);_0x45dffe['change'](_0x19d6cd=>{for(const _0x1d8e70 of _0x528fd5)_0x19d6cd[_0xf102('0x14')](_0x19d6cd[_0xf102('0x19')](_0x1d8e70),_0x19d6cd[_0xf102('0x71')](_0x1d8e70)),_0x19d6cd['remove'](_0x1d8e70);});});}}function ce(_0x4bad79){if(_0x4bad79[_0xf102('0x5d')])return!0x0;const _0x4831e0=_0x4bad79[_0xf102('0x82')](0x0);return _0x4831e0['is'](_0xf102('0x58'),'paragraph')&&_0x4831e0[_0xf102('0x5d')];}function fe(_0x2830bd,_0x4bf71f={},_0x12f7b1){for(const {isAnchor:_0x3cd9da,cellHeight:_0x3f3ce4,cellWidth:_0x195802}of _0x12f7b1[_0xf102('0x1f')](_0x2830bd,{'includeAllSlots':!0x0,..._0x4bf71f}))if(!_0x3cd9da||0x1!=_0x3f3ce4||0x1!=_0x195802)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3243=['Users','getSuggestions','formatBlock','model','has','resizeTableWidth','_suggestionFactory','resizeColumnWidths','getAttribute','accept','bind','getContainedElement','handleSuggestionDescription','TrackChangesEditing','get','getTableColumnsWidths','resizeTable','registerCustomCallback','enableCommand','data','subType','getSelectedElement','selection','_descriptionFactory','getSuggestionCallback','handleResizeTableWidthCommand','plugins','format','getColumnGroupElement','registerDescriptionCallback','editor','author','change','TableColumnResizeEditing','columnWidths','discard','markBlockFormat'];(function(_0x56123b,_0x324332){const _0x5e9783=function(_0x30528d){while(--_0x30528d){_0x56123b['push'](_0x56123b['shift']());}};_0x5e9783(++_0x324332);}(_0x3243,0x1cd));const _0x5e97=function(_0x56123b,_0x324332){_0x56123b=_0x56123b-0x0;let _0x5e9783=_0x3243[_0x56123b];return _0x5e9783;};import{Plugin as _0x6a33c0}from'ckeditor5/src/core';import{getTranslation as _0x47a8f9}from'../utils/common-translations';export default class yt extends _0x6a33c0{['afterInit'](){if(!this[_0x5e97('0xd')]['plugins'][_0x5e97('0x18')](_0x5e97('0x10')))return;const _0x59f232=this[_0x5e97('0xd')][_0x5e97('0x9')][_0x5e97('0x22')](_0x5e97('0x21'));_0x59f232[_0x5e97('0x1')]('resizeTableWidth',this[_0x5e97('0x8')][_0x5e97('0x1e')](this)),_0x59f232['enableCommand'](_0x5e97('0x1b'),this[_0x5e97('0x8')]['bind'](this)),_0x59f232[_0x5e97('0x1a')]['registerCustomCallback'](_0x5e97('0x16'),_0x5e97('0x24'),_0x5e97('0x1d'),_0x59f232[_0x5e97('0x1a')][_0x5e97('0x7')]('formatBlock',null,'discard')),_0x59f232[_0x5e97('0x1a')][_0x5e97('0x0')](_0x5e97('0x16'),_0x5e97('0x24'),_0x5e97('0x12'),_0x59f232[_0x5e97('0x1a')][_0x5e97('0x7')]('formatBlock',null,_0x5e97('0x1d'))),_0x59f232[_0x5e97('0x6')][_0x5e97('0xc')](this[_0x5e97('0x20')][_0x5e97('0x1e')](this));}['handleResizeTableWidthCommand'](_0x15f460,_0x26626c){const _0x3db280=this['editor']['plugins'][_0x5e97('0x22')]('TrackChangesEditing'),_0x27f9e9=this[_0x5e97('0xd')][_0x5e97('0x9')][_0x5e97('0x22')](_0x5e97('0x10')),_0x335399=_0x26626c['table']||this[_0x5e97('0xd')][_0x5e97('0x17')]['document'][_0x5e97('0x5')][_0x5e97('0x4')]();this[_0x5e97('0xd')][_0x5e97('0x17')][_0x5e97('0xf')](()=>{const _0x5215a7=_0x27f9e9[_0x5e97('0xb')](_0x335399);let _0x1ee083=_0x5215a7?_0x27f9e9[_0x5e97('0x23')](_0x5215a7):null,_0x411862=_0x335399[_0x5e97('0x1c')]('tableWidth')||null;const _0x5332a0=_0x26626c['tableWidth']||_0x411862,_0x3a0844=_0x26626c[_0x5e97('0x11')]||_0x1ee083,_0x133659=this[_0x5e97('0xd')][_0x5e97('0x9')][_0x5e97('0x22')](_0x5e97('0x14'))['me'];for(const _0xd7f171 of _0x3db280[_0x5e97('0x15')]()){const _0xa18f8c=_0xd7f171[_0x5e97('0x1f')]();if(_0x5e97('0x24')===_0xd7f171[_0x5e97('0x3')]&&_0xa18f8c===_0x335399){_0xd7f171[_0x5e97('0xe')]!==_0x133659&&_0xd7f171[_0x5e97('0x12')]();const _0x1960c4=_0xd7f171[_0x5e97('0x2')]['commandParams'];_0x411862=_0x1960c4[0x0]['tableWidth'],_0x1ee083=_0x1960c4[0x0]['columnWidths'];break;}}_0x15f460({'table':_0x335399,'tableWidth':_0x5332a0,'columnWidths':_0x3a0844}),_0x3db280[_0x5e97('0x13')](_0x335399,{'commandName':_0x5e97('0x19'),'commandParams':[{'tableWidth':_0x411862,'columnWidths':_0x1ee083}],'formatGroupId':_0x5e97('0x24')},[],_0x5e97('0x24'));});}[_0x5e97('0x20')](_0x24b115){const {data:_0x565476}=_0x24b115;if(_0x565476&&_0x5e97('0x24')===_0x565476['formatGroupId']){const _0x3d7f03='*Format:*\x20resize\x20table';return{'type':_0x5e97('0xa'),'content':_0x47a8f9(this['editor']['locale'],_0x3d7f03)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fdc=['FORMAT_HEADER_ROW','createPositionBefore','unbindElementFromMarkerName','isBefore','_descriptionFactory','*Format:*\x20%0','markBlockFormat','plugins','afterInit','createPositionAfter','enableCommand','setAttribute','nodeAfter','findAncestor','registerCustomCallback','activeMarkers','markerName','headingColumns','addMarker:suggestion','data','TrackChangesEditing','markerNameToElements','_suggestionFactory','consumable','consume','from','FORMAT_REGULAR_COLUMN','model','highest','getCellLocation','setTableColumnHeader','get','commandParams','downcastDispatcher','index','registerDescriptionCallback','getSuggestion','last','removeMarker:suggestion','includes','selection','commands','nodeBefore','name','_acceptFormatSuggestionCallbackFactory','writer','table','createRange','_splitMarkerName','end','forceValue','change','getRowIndexes','data-suggestion','locale','TableUtils','getSelectionAffectedTableCells','formatBlock','FORMAT_HEADER_COLUMN','ck-suggestion-marker--active','setTableRowHeader','childCount','document','toViewElement','options','commandName','cell','removeClass','first','markerRange','parent','createTableWalker','item','TableEditing','getChild','requires','editing','format','accept','FORMAT_REGULAR_ROW','addClass','getAttribute','removeAttribute','ck-suggestion-marker-','mapper'];(function(_0x3efdc6,_0x2fdcaa){const _0x3f8716=function(_0x5c0cf7){while(--_0x5c0cf7){_0x3efdc6['push'](_0x3efdc6['shift']());}};_0x3f8716(++_0x2fdcaa);}(_0x2fdc,0x16c));const _0x3f87=function(_0x3efdc6,_0x2fdcaa){_0x3efdc6=_0x3efdc6-0x0;let _0x3f8716=_0x2fdc[_0x3efdc6];return _0x3f8716;};import{Plugin as _0xf40504}from'ckeditor5/src/core';import _0x37c839 from'./table';import{getTranslation as _0x4e1252}from'../utils/common-translations';export default class kt extends _0xf40504{static get[_0x3f87('0x33')](){return[_0x37c839];}[_0x3f87('0x45')](){const _0xbc913c=this['editor'];if(!_0xbc913c[_0x3f87('0x44')]['has'](_0x3f87('0x31')))return;const _0x352911=_0xbc913c[_0x3f87('0x1e')],_0x5c8e85=_0xbc913c[_0x3f87('0x44')][_0x3f87('0x7')](_0x3f87('0x51')),_0x231ea9=_0xbc913c[_0x3f87('0x44')][_0x3f87('0x7')](_0x3f87('0x1f')),_0x40656f=_0xbc913c[_0x3f87('0x44')][_0x3f87('0x7')](_0x37c839);function _0x5d3b35({showActiveMarker:_0x14bdfe=!0x0,setDataAttribute:_0x78e0d5=!0x0}={}){return(_0x1adc8f,_0x2853d3,_0x483e27)=>{const {type:_0x4db0c0,id:_0x4902bc}=_0x5c8e85['_splitMarkerName'](_0x2853d3[_0x3f87('0x4d')]),_0x370c9d=_0x5c8e85[_0x3f87('0xc')](_0x4902bc);if(!_0x370c9d[_0x3f87('0x50')]||_0x3f87('0x6')!=_0x370c9d[_0x3f87('0x50')][_0x3f87('0x29')])return;if(_0x2853d3[_0x3f87('0x30')])return void _0x1adc8f['stop']();if(!_0x483e27[_0x3f87('0x54')][_0x3f87('0x0')](_0x2853d3[_0x3f87('0x2d')],_0x1adc8f[_0x3f87('0x13')]))return;const _0x28e5ac=_0x2853d3[_0x3f87('0x2d')]['start'][_0x3f87('0x49')],_0x1a919f=_0x2853d3[_0x3f87('0x2d')][_0x3f87('0x19')][_0x3f87('0x12')],_0x2c9470=_0x28e5ac[_0x3f87('0x2e')][_0x3f87('0x2e')],{column:_0x3ae123}=_0x231ea9[_0x3f87('0x5')](_0x28e5ac),{column:_0x1ae439}=_0x231ea9[_0x3f87('0x5')](_0x1a919f);for(let _0x1c27b1=_0x3ae123;_0x1c27b1<=_0x1ae439;_0x1c27b1++){const _0x52fa9c=_0x231ea9[_0x3f87('0x2f')](_0x2c9470,{'column':_0x1c27b1,'includeAllSlots':!0x1});for(const _0x116d71 of _0x52fa9c){const _0x35ffbc=_0x116d71[_0x3f87('0x2a')],_0x3d0813=_0x483e27[_0x3f87('0x3c')][_0x3f87('0x27')](_0x35ffbc);_0x483e27[_0x3f87('0x15')][_0x3f87('0x38')]('ck-suggestion-marker-'+_0x4db0c0,_0x3d0813),_0x78e0d5&&_0x483e27[_0x3f87('0x15')][_0x3f87('0x48')](_0x3f87('0x1d'),_0x4902bc,_0x3d0813),_0x483e27['mapper']['bindElementToMarker'](_0x3d0813,_0x2853d3['markerName']),_0x14bdfe&&(_0x5c8e85[_0x3f87('0x4c')][_0x3f87('0xf')](_0x2853d3[_0x3f87('0x4d')])?_0x483e27[_0x3f87('0x15')][_0x3f87('0x38')]('ck-suggestion-marker--active',_0x3d0813):_0x483e27[_0x3f87('0x15')][_0x3f87('0x2b')](_0x3f87('0x23'),_0x3d0813));}}};}_0x5c8e85['enableCommand'](_0x3f87('0x24'),(_0x38a433,_0x1edf55)=>{const _0x50345a=_0x231ea9['getSelectionAffectedTableCells'](_0xbc913c[_0x3f87('0x3')][_0x3f87('0x26')][_0x3f87('0x10')]),_0x20f53d=_0x231ea9[_0x3f87('0x1c')](_0x50345a),_0x565dbc=_0x50345a[0x0]['findAncestor']('table'),_0x52e1de=_0x565dbc[_0x3f87('0x39')]('headingRows')||0x0,_0x4d4ade=_0x1edf55&&null!==_0x1edf55[_0x3f87('0x1a')]?_0x1edf55[_0x3f87('0x1a')]:!_0xbc913c[_0x3f87('0x11')][_0x3f87('0x7')](_0x3f87('0x24'))['value'],_0x400c8c=_0x4d4ade?_0x20f53d[_0x3f87('0xd')]:_0x20f53d[_0x3f87('0x2c')],_0x28feed=_0x565dbc[_0x3f87('0x32')](_0x400c8c);let _0x440439;if(_0x4d4ade){const _0x59055b=_0x565dbc[_0x3f87('0x32')](_0x52e1de);if(_0x28feed[_0x3f87('0xa')]<_0x59055b['index'])return;_0x440439=_0xbc913c[_0x3f87('0x3')]['createRange'](_0xbc913c[_0x3f87('0x3')][_0x3f87('0x3e')](_0x59055b[_0x3f87('0x32')](0x0)),_0xbc913c[_0x3f87('0x3')][_0x3f87('0x46')](_0x28feed['getChild'](_0x28feed['childCount']-0x1)));}else{const _0x51f750=_0x565dbc['getChild'](_0x52e1de-0x1);if(!_0x51f750)return;_0x440439=_0xbc913c[_0x3f87('0x3')]['createRange'](_0xbc913c['model'][_0x3f87('0x3e')](_0x28feed['getChild'](0x0)),_0xbc913c['model'][_0x3f87('0x46')](_0x51f750[_0x3f87('0x32')](_0x51f750[_0x3f87('0x25')]-0x1)));}_0xbc913c[_0x3f87('0x3')][_0x3f87('0x1b')](()=>{_0x5c8e85[_0x3f87('0x43')](_0x440439,{'commandName':_0x3f87('0x24'),'commandParams':[{'forceValue':_0x4d4ade}]},[],_0x3f87('0x24'));});}),_0x5c8e85[_0x3f87('0x47')](_0x3f87('0x6'),(_0x4d7926,_0x35b91e)=>{const _0x4f6cf9=_0xbc913c[_0x3f87('0x44')]['get']('TableUtils'),_0x4f20f6=_0x4f6cf9[_0x3f87('0x20')](_0xbc913c[_0x3f87('0x3')][_0x3f87('0x26')]['selection']),_0x1d8ed1=_0x4f6cf9['getColumnIndexes'](_0x4f20f6),_0x462e99=_0x4f20f6[0x0][_0x3f87('0x4a')](_0x3f87('0x16')),_0x5f444f=_0x462e99[_0x3f87('0x39')](_0x3f87('0x4e'))||0x0,_0x4d49bb=_0x35b91e&&null!==_0x35b91e[_0x3f87('0x1a')]?_0x35b91e[_0x3f87('0x1a')]:!_0xbc913c['commands']['get'](_0x3f87('0x6'))['value'];let _0x4ef1eb;const _0x38bf0b=_0x462e99['getChild'](0x0),_0x50fc98=_0x4d49bb?_0x1d8ed1[_0x3f87('0xd')]:_0x1d8ed1[_0x3f87('0x2c')],_0xa23c65=_0x4f6cf9['createTableWalker'](_0x462e99,{'startRow':0x0,'column':_0x50fc98,'includeAllSlots':!0x1}),_0x366def=Array[_0x3f87('0x1')](_0xa23c65)[0x0]['cell'];if(_0x4d49bb){const _0x222ae3=_0x38bf0b[_0x3f87('0x32')](_0x5f444f);if(_0x366def[_0x3f87('0x40')](_0x222ae3))return;_0x4ef1eb=_0xbc913c[_0x3f87('0x3')][_0x3f87('0x17')](_0xbc913c[_0x3f87('0x3')][_0x3f87('0x3e')](_0x222ae3),_0xbc913c['model'][_0x3f87('0x46')](_0x366def));}else{const _0x532a7a=_0x38bf0b[_0x3f87('0x32')](_0x5f444f-0x1);if(!_0x532a7a)return;_0x4ef1eb=_0xbc913c[_0x3f87('0x3')][_0x3f87('0x17')](_0xbc913c[_0x3f87('0x3')][_0x3f87('0x3e')](_0x366def),_0xbc913c[_0x3f87('0x3')]['createPositionAfter'](_0x532a7a));}_0xbc913c[_0x3f87('0x3')][_0x3f87('0x1b')](()=>{_0x5c8e85[_0x3f87('0x43')](_0x4ef1eb,{'commandName':_0x3f87('0x6'),'commandParams':[{'forceValue':_0x4d49bb}]},[],_0x3f87('0x6'));});}),_0xbc913c[_0x3f87('0x34')][_0x3f87('0x9')]['on']('addMarker:suggestion',_0x5d3b35(),{'priority':_0x3f87('0x4')}),_0xbc913c[_0x3f87('0x50')]['downcastDispatcher']['on'](_0x3f87('0x4f'),(_0x227933,_0x11d8ce,_0x4ad3be)=>{_0x4ad3be[_0x3f87('0x28')]['showSuggestionHighlights']&&_0x5d3b35({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x227933,_0x11d8ce,_0x4ad3be);},{'priority':_0x3f87('0x4')}),_0xbc913c[_0x3f87('0x34')][_0x3f87('0x9')]['on'](_0x3f87('0xe'),(_0x3476a7,_0x326b7e,_0xe122d1)=>{const {type:_0x404902,id:_0x3c1fa3}=_0x5c8e85[_0x3f87('0x18')](_0x326b7e['markerName']),_0x2bf53b=_0x5c8e85[_0x3f87('0xc')](_0x3c1fa3);if(!_0x2bf53b[_0x3f87('0x50')]||_0x3f87('0x6')!=_0x2bf53b[_0x3f87('0x50')]['commandName'])return;const _0x20b751=_0xe122d1[_0x3f87('0x3c')][_0x3f87('0x52')](_0x326b7e[_0x3f87('0x4d')]);if(_0x20b751)for(const _0x4c5d1e of _0x20b751)_0xe122d1[_0x3f87('0x15')][_0x3f87('0x2b')](_0x3f87('0x3b')+_0x404902,_0x4c5d1e),_0xe122d1[_0x3f87('0x15')][_0x3f87('0x2b')]('ck-suggestion-marker--active',_0x4c5d1e),_0xe122d1[_0x3f87('0x15')][_0x3f87('0x3a')](_0x3f87('0x1d'),_0x4c5d1e),_0xe122d1[_0x3f87('0x3c')][_0x3f87('0x3f')](_0x4c5d1e,_0x326b7e[_0x3f87('0x4d')]);},{'priority':_0x3f87('0x4')}),_0x5c8e85[_0x3f87('0x41')][_0x3f87('0xb')](_0x51c076=>{const {data:_0x4c7bf1}=_0x51c076;if(_0x4c7bf1){if(_0x3f87('0x24')==_0x4c7bf1[_0x3f87('0x29')]){const _0x3ff436=_0x4c7bf1[_0x3f87('0x8')][0x0][_0x3f87('0x1a')];return _0xfcd78f(_0x4e1252(_0x352911,_0x3ff436?_0x3f87('0x3d'):_0x3f87('0x37')));}if(_0x3f87('0x6')==_0x4c7bf1[_0x3f87('0x29')]){const _0x535f43=_0x4c7bf1[_0x3f87('0x8')][0x0][_0x3f87('0x1a')];return _0xfcd78f(_0x4e1252(_0x352911,_0x535f43?_0x3f87('0x22'):_0x3f87('0x2')));}}function _0xfcd78f(_0x5e6f1b){return{'type':_0x3f87('0x35'),'content':_0x4e1252(_0x352911,_0x3f87('0x42'),_0x5e6f1b)};}});const _0x43c12d=_0x40656f[_0x3f87('0x14')]();_0x5c8e85[_0x3f87('0x53')]['registerCustomCallback']('formatBlock',_0x3f87('0x24'),_0x3f87('0x36'),_0x43c12d),_0x5c8e85[_0x3f87('0x53')][_0x3f87('0x4b')](_0x3f87('0x21'),_0x3f87('0x6'),_0x3f87('0x36'),_0x43c12d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51fa=['document','isInContent','format','cell','TableEditing','mergeTableCellRight','fromRange','registerCustomCallback','set:isEnabled','*Split\x20cell:*\x20horizontally','size','requires','model','add','markMultiRangeBlockFormat','low','deletion','registerDescriptionCallback','find','createRangeOn','detach','accept','formatBlock','findAncestor','getAncestors','length','subType','from','splitTableCellHorizontally','getSuggestions','$graveyard','rootName','get','refresh','mergeTableCellUp','getCellLocation','horizontally','mergeTableCells','_tablePostFixingSubtypes','_suggestionFactory','editor','*Split\x20cell:*\x20vertically','_areMergableCells','root','isEnabled','_descriptionFactory','locale','markBlockFormat','createTableWalker','type','execute','trackChanges','TrackChangesEditing','getRanges','splitTableCellVertically','setSelection','mergeTableCellLeft','has','push','*Merge\x20cells*','plugins','element','commands','selection','containsRange','value','highest','author','map','change','TableUtils','filter','getFirstPosition','getSelectionAffectedTableCells','tableCell','direction','mergeTableCellDown','_acceptFormatSuggestionCallbackFactory','afterInit','enableCommand'];(function(_0x48c926,_0x51fabb){const _0x496172=function(_0x8a1095){while(--_0x8a1095){_0x48c926['push'](_0x48c926['shift']());}};_0x496172(++_0x51fabb);}(_0x51fa,0x196));const _0x4961=function(_0x48c926,_0x51fabb){_0x48c926=_0x48c926-0x0;let _0x496172=_0x51fa[_0x48c926];return _0x496172;};import{Plugin as _0x62aecf}from'ckeditor5/src/core';import _0x3c7851 from'./table';import{LiveRange as _0x2f918a}from'ckeditor5/src/engine';import{getTranslation as _0x426e9e}from'../utils/common-translations';export default class pt extends _0x62aecf{static get[_0x4961('0x5')](){return[_0x3c7851];}[_0x4961('0x48')](){const _0x1286fb=this[_0x4961('0x22')],_0x2fee77=_0x1286fb['model'][_0x4961('0x4a')][_0x4961('0x39')],_0x4031e0=_0x1286fb[_0x4961('0x28')];if(!_0x1286fb[_0x4961('0x36')][_0x4961('0x33')](_0x4961('0x4e')))return;const _0x2d7d48=_0x1286fb[_0x4961('0x36')][_0x4961('0x1a')](_0x4961('0x2e')),_0x618699=_0x1286fb[_0x4961('0x36')][_0x4961('0x1a')](_0x4961('0x40')),_0x2ae41c=_0x1286fb[_0x4961('0x36')][_0x4961('0x1a')](_0x3c7851);_0x2ae41c[_0x4961('0x20')][_0x4961('0x34')](_0x4961('0x1f')),_0x2d7d48[_0x4961('0x49')](_0x4961('0x1f'),()=>{const _0x71c898=_0x618699[_0x4961('0x43')](_0x1286fb[_0x4961('0x6')][_0x4961('0x4a')]['selection']);_0x1286fb[_0x4961('0x6')][_0x4961('0x3f')](()=>{_0x2d7d48[_0x4961('0x8')](_0x71c898,{'commandName':_0x4961('0x1f'),'commandParams':[]},[],_0x4961('0x1f'));});}),_0x1286fb[_0x4961('0x38')][_0x4961('0x1a')](_0x4961('0x1f'))['on']('execute',(_0xcb9f21,_0x1cf55f)=>{_0x1286fb[_0x4961('0x38')][_0x4961('0x1a')](_0x4961('0x2d'))[_0x4961('0x3b')]&&(_0x1cf55f['length']>0x0&&_0x1cf55f[_0x1cf55f['length']-0x1]&&_0x1cf55f[_0x1cf55f['length']-0x1]['forceDefaultExecution']||_0x2d7d48['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xcb9f21['stop']());},{'priority':_0x4961('0x3c')});for(const _0x4339b7 of['mergeTableCellUp',_0x4961('0x4f'),_0x4961('0x46'),_0x4961('0x32')]){const _0x36d4f9=_0x1286fb[_0x4961('0x38')][_0x4961('0x1a')](_0x4339b7);_0x2d7d48[_0x4961('0x49')](_0x4339b7,()=>{const _0x37d07d=_0x1286fb[_0x4961('0x6')][_0x4961('0x4a')]['selection']['getFirstPosition']()[_0x4961('0x12')]()['find'](_0x3aa1c5=>_0x3aa1c5['is'](_0x4961('0x37'),'tableCell')),_0x1c9754=_0x36d4f9['value'];_0x1286fb[_0x4961('0x6')][_0x4961('0x3f')](()=>{_0x2d7d48[_0x4961('0x8')]([_0x37d07d,_0x1c9754],{'commandName':_0x4961('0x1f'),'commandParams':[]},[],_0x4961('0x1f'));});});}for(const _0xf6971a of[_0x4961('0x30'),_0x4961('0x16')]){const _0x52d1e3=_0x1286fb[_0x4961('0x38')]['get'](_0xf6971a);_0x2d7d48['enableCommand'](_0xf6971a,()=>{const _0x3c9ed0=_0x618699[_0x4961('0x43')](_0x1286fb[_0x4961('0x6')][_0x4961('0x4a')][_0x4961('0x39')])[0x0],_0x35dd20=_0x3c9ed0[_0x4961('0x11')]('table'),{column:_0x515cc9,row:_0x30c411}=_0x618699[_0x4961('0x1d')](_0x3c9ed0);let _0x48a52a=[];if(_0x4961('0x1e')==_0x52d1e3[_0x4961('0x45')]){const _0x4fe2d8=_0x618699[_0x4961('0x2a')](_0x35dd20,{'startRow':_0x30c411,'endRow':_0x30c411,'includeAllSlots':!0x0});_0x48a52a=Array['from'](_0x4fe2d8)[_0x4961('0x3e')](_0xe3e0d=>_0xe3e0d['cell']);}else{const _0x21e53f=_0x618699[_0x4961('0x2a')](_0x35dd20,{'column':_0x515cc9,'includeAllSlots':!0x0});_0x48a52a=Array[_0x4961('0x15')](_0x21e53f)['map'](_0x14a6ef=>_0x14a6ef[_0x4961('0x4d')]);}_0x1286fb[_0x4961('0x6')][_0x4961('0x3f')](_0x200d02=>{_0x2d7d48[_0x4961('0x29')](_0x200d02[_0x4961('0xd')](_0x3c9ed0),{'commandName':_0xf6971a,'commandParams':[]},_0x48a52a,_0xf6971a);});});}_0x2d7d48[_0x4961('0x27')][_0x4961('0xb')](_0x3d83b7=>{const {data:_0x4d3f68}=_0x3d83b7;if(_0x4d3f68)return _0x4961('0x1f')==_0x4d3f68['commandName']?{'type':'format','content':_0x426e9e(_0x4031e0,_0x4961('0x35'))}:void 0x0;}),_0x2d7d48[_0x4961('0x27')]['registerDescriptionCallback'](_0x1b91b2=>{const {data:_0x24125f}=_0x1b91b2;if(_0x24125f)return _0x4961('0x30')==_0x24125f['commandName']?{'type':_0x4961('0x4c'),'content':_0x426e9e(_0x4031e0,_0x4961('0x23'))}:_0x4961('0x16')==_0x24125f['commandName']?{'type':_0x4961('0x4c'),'content':_0x426e9e(_0x4031e0,_0x4961('0x3'))}:void 0x0;});const _0x5b7606=_0x2ae41c[_0x4961('0x47')]();for(const _0x281725 of['mergeTableCellUp','mergeTableCellRight',_0x4961('0x46'),_0x4961('0x32')])_0x2d7d48[_0x4961('0x21')][_0x4961('0x1')](_0x4961('0x10'),_0x281725,_0x4961('0xf'),_0x5b7606);for(const _0x3c8d70 of['splitTableCellVertically',_0x4961('0x16')])_0x2d7d48[_0x4961('0x21')]['registerCustomCallback'](_0x4961('0x10'),_0x3c8d70,_0x4961('0xf'),_0x5b7606);_0x2d7d48['_suggestionFactory'][_0x4961('0x1')]('formatBlock',_0x4961('0x1f'),_0x4961('0xf'),_0x4f9397=>{_0x1286fb['model'][_0x4961('0x3f')](_0x3eca91=>{const _0x108133=Array[_0x4961('0x15')](_0x2fee77[_0x4961('0x2f')]())[_0x4961('0x3e')](_0x2d5c53=>_0x2f918a[_0x4961('0x0')](_0x2d5c53));_0x3eca91[_0x4961('0x31')](_0x4f9397),_0x1286fb[_0x4961('0x38')][_0x4961('0x1a')]('mergeTableCells')[_0x4961('0x1b')](),_0x1286fb[_0x4961('0x2c')](_0x4961('0x1f'),{'forceDefaultExecution':!0x0});const _0x2a058c=_0x108133[_0x4961('0x41')](_0x3953b1=>_0x4961('0x18')!=_0x3953b1[_0x4961('0x25')][_0x4961('0x19')]);_0x2a058c[_0x4961('0x13')]>0x0&&_0x3eca91[_0x4961('0x31')](_0x2a058c);for(const _0x430935 of _0x108133)_0x430935[_0x4961('0xe')]();});});for(const _0x4bd290 of[_0x4961('0x1c'),'mergeTableCellDown',_0x4961('0x32'),_0x4961('0x4f')]){const _0x2971c8=_0x1286fb['commands']['get'](_0x4bd290);_0x2971c8['on'](_0x4961('0x2'),(_0xd08118,_0x38aae6,_0x5981ca)=>{if(_0x5981ca){const _0x57a7ed=_0x1286fb[_0x4961('0x6')][_0x4961('0x4a')]['selection'][_0x4961('0x42')]()['getAncestors']()[_0x4961('0xc')](_0x4e16e1=>_0x4e16e1['is'](_0x4961('0x37'),_0x4961('0x44')));this[_0x4961('0x24')](_0x2971c8['value'],_0x57a7ed)||(_0xd08118['return']=!0x1,_0xd08118['stop']());}},{'priority':_0x4961('0x9')});}}['_areSelectedCellsMergable'](){const _0x3aeb1e=this['editor'][_0x4961('0x38')][_0x4961('0x1a')](_0x4961('0x1f')),_0x4f7ace=this[_0x4961('0x22')][_0x4961('0x36')]['get'](_0x4961('0x40'));if(!_0x3aeb1e[_0x4961('0x26')])return!0x1;const _0x51da3d=_0x4f7ace[_0x4961('0x43')](this[_0x4961('0x22')][_0x4961('0x6')][_0x4961('0x4a')][_0x4961('0x39')]);for(const _0x4c7674 of _0x51da3d)for(const _0x549f93 of _0x51da3d)if(_0x4c7674!=_0x549f93&&!this['_areMergableCells'](_0x4c7674,_0x549f93))return!0x1;return!0x0;}[_0x4961('0x24')](_0x563ba6,_0x1cb771){const _0x1df8fb=this[_0x4961('0x22')][_0x4961('0x36')][_0x4961('0x1a')](_0x4961('0x2e')),_0x1aed47=this['editor']['model'][_0x4961('0xd')](_0x563ba6),_0x27b206=this[_0x4961('0x22')][_0x4961('0x6')][_0x4961('0xd')](_0x1cb771),_0x3566ba=new Set(),_0x591f7c=new Set();for(const _0x3e9cac of _0x1df8fb[_0x4961('0x17')]())if(('insertion'==_0x3e9cac[_0x4961('0x2b')]||_0x4961('0xa')==_0x3e9cac['type']||_0x4961('0x1f')==_0x3e9cac[_0x4961('0x14')])&&_0x3e9cac[_0x4961('0x4b')])for(const _0x38823e of _0x3e9cac[_0x4961('0x2f')]())_0x38823e[_0x4961('0x3a')](_0x1aed47,!0x0)&&_0x3566ba['add'](_0x3e9cac[_0x4961('0x2b')]+':'+_0x3e9cac[_0x4961('0x3d')]['id']),_0x38823e['containsRange'](_0x27b206,!0x0)&&_0x591f7c[_0x4961('0x7')](_0x3e9cac[_0x4961('0x2b')]+':'+_0x3e9cac['author']['id']);if(_0x3566ba[_0x4961('0x4')]!=_0x591f7c[_0x4961('0x4')])return!0x1;for(const _0x11dad9 of _0x3566ba)if(!_0x591f7c[_0x4961('0x33')](_0x11dad9))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e45=['plugins','insertTableOfContents','editor','get','TrackChangesEditing','enableCommand','ELEMENT_TABLE_OF_CONTENTS','locale','tableOfContents','afterInit','registerElementLabel','commands'];(function(_0xf3e7ec,_0x2e4518){const _0xe9eab7=function(_0x5db4d3){while(--_0x5db4d3){_0xf3e7ec['push'](_0xf3e7ec['shift']());}};_0xe9eab7(++_0x2e4518);}(_0x2e45,0xa4));const _0xe9ea=function(_0xf3e7ec,_0x2e4518){_0xf3e7ec=_0xf3e7ec-0x0;let _0xe9eab7=_0x2e45[_0xf3e7ec];return _0xe9eab7;};import{Plugin as _0x26a5aa}from'ckeditor5/src/core';import{getTranslation as _0x2ed183}from'../utils/common-translations';export default class St extends _0x26a5aa{[_0xe9ea('0x1')](){const _0x543a81=this[_0xe9ea('0x6')];if(!_0x543a81[_0xe9ea('0x3')][_0xe9ea('0x7')](_0xe9ea('0x5')))return;_0x543a81[_0xe9ea('0x4')][_0xe9ea('0x7')]('TrackChangesEditing')[_0xe9ea('0x9')](_0xe9ea('0x5'));const _0x207c87=_0x543a81[_0xe9ea('0x4')][_0xe9ea('0x7')](_0xe9ea('0x8')),_0x14e761=_0x543a81[_0xe9ea('0xb')];_0x207c87['_descriptionFactory'][_0xe9ea('0x2')](_0xe9ea('0x0'),_0x4426c8=>_0x2ed183(_0x14e761,_0xe9ea('0xa'),_0x4426c8));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5859=['tableBorderStyle','TrackChangesEditing','has','tableBorderWidth','removeAttribute','tableCellBorderWidth','TablePropertiesEditing','tableCellWidth','join','tableWidth','plugins','getAttribute','enableCommand','handleSuggestionDescription','tableCellBackgroundColor','table','_handlePropertyChange','TrackChangesTableProperties','getSelectionAffectedTableCells','tableCellProperties','registerDescriptionCallback','document','tableProperties','locale','tableCellHeight','TableUtils','get','discard','registerCustomCallback','markBlockFormat','_suggestionFactory','getSuggestions','tableCellBorderStyle','formatBlock','accept','tableCellHorizontalAlignment','change','tableHeight','editor','tableBackgroundColor','afterInit','selection','TableCellPropertiesEditing','model','_getSuggestion','*Format:*\x20change\x20table\x20properties','handleDiscardAction','setAttribute','findAncestor','batch','tableBorderColor','getSuggestionCallback'];(function(_0x32fbc7,_0x5859d5){const _0x4ee970=function(_0x43d265){while(--_0x43d265){_0x32fbc7['push'](_0x32fbc7['shift']());}};_0x4ee970(++_0x5859d5);}(_0x5859,0x13a));const _0x4ee9=function(_0x32fbc7,_0x5859d5){_0x32fbc7=_0x32fbc7-0x0;let _0x4ee970=_0x5859[_0x32fbc7];return _0x4ee970;};import{Plugin as _0x2e7dcb}from'ckeditor5/src/core';import{getTranslation as _0x310da2}from'../utils/common-translations';export default class Dt extends _0x2e7dcb{constructor(_0x10447e){super(_0x10447e),this[_0x4ee9('0x14')]=[_0x4ee9('0x30'),_0x4ee9('0x32'),_0x4ee9('0x1'),'tableAlignment',_0x4ee9('0x7'),_0x4ee9('0x23'),_0x4ee9('0x25')],this['tableCellProperties']=['tableCellBorderColor',_0x4ee9('0x1e'),_0x4ee9('0x3'),'tableCellPadding',_0x4ee9('0x5'),_0x4ee9('0x16'),_0x4ee9('0xc'),_0x4ee9('0x21'),'tableCellVerticalAlignment'];}static get['pluginName'](){return _0x4ee9('0xf');}[_0x4ee9('0x26')](){const _0x2d5d28=this[_0x4ee9('0x24')][_0x4ee9('0x8')]['get']('TrackChangesEditing');if(this['editor'][_0x4ee9('0x8')][_0x4ee9('0x0')](_0x4ee9('0x4'))){for(const _0xcc0e98 of this[_0x4ee9('0x14')])_0x2d5d28[_0x4ee9('0xa')](_0xcc0e98,(_0x2ce63d,_0x39a679)=>{const _0x147e4c=this[_0x4ee9('0x24')]['model'][_0x4ee9('0x13')]['selection']['getFirstPosition']()[_0x4ee9('0x2e')](_0x4ee9('0xd'));this[_0x4ee9('0xe')](_0xcc0e98,[_0x147e4c],this[_0x4ee9('0x14')],'tableProperties',_0x2ce63d,_0x39a679);});_0x2d5d28[_0x4ee9('0x1c')][_0x4ee9('0x1a')](_0x4ee9('0x1f'),_0x4ee9('0x14'),_0x4ee9('0x20'),_0x2d5d28['_suggestionFactory'][_0x4ee9('0x31')](_0x4ee9('0x1f'),null,_0x4ee9('0x19'))),_0x2d5d28['_suggestionFactory'][_0x4ee9('0x1a')](_0x4ee9('0x1f'),_0x4ee9('0x14'),_0x4ee9('0x19'),(_0x202e1d,_0x53d0c7)=>this[_0x4ee9('0x2c')](this['tableProperties'],_0x202e1d,_0x53d0c7)),_0x2d5d28[_0x4ee9('0x1c')][_0x4ee9('0x1a')]('formatBlock',_0x4ee9('0x14'),_0x4ee9('0x6'),()=>!0x1);}if(this[_0x4ee9('0x24')][_0x4ee9('0x8')]['has'](_0x4ee9('0x28'))){for(const _0x2e8c98 of this[_0x4ee9('0x11')])_0x2d5d28[_0x4ee9('0xa')](_0x2e8c98,(_0x1a78b1,_0x3e81dc)=>{const _0x51a823=this[_0x4ee9('0x24')]['plugins'][_0x4ee9('0x18')](_0x4ee9('0x17'))[_0x4ee9('0x10')](this[_0x4ee9('0x24')]['model']['document'][_0x4ee9('0x27')]);this[_0x4ee9('0xe')](_0x2e8c98,_0x51a823,this['tableCellProperties'],_0x4ee9('0x11'),_0x1a78b1,_0x3e81dc);});_0x2d5d28[_0x4ee9('0x1c')][_0x4ee9('0x1a')](_0x4ee9('0x1f'),_0x4ee9('0x11'),_0x4ee9('0x20'),_0x2d5d28['_suggestionFactory'][_0x4ee9('0x31')](_0x4ee9('0x1f'),null,_0x4ee9('0x19'))),_0x2d5d28[_0x4ee9('0x1c')][_0x4ee9('0x1a')](_0x4ee9('0x1f'),_0x4ee9('0x11'),_0x4ee9('0x19'),(_0x4c4f99,_0xc1ade3)=>this[_0x4ee9('0x2c')](this[_0x4ee9('0x11')],_0x4c4f99,_0xc1ade3)),_0x2d5d28['_suggestionFactory'][_0x4ee9('0x1a')](_0x4ee9('0x1f'),'tableCellProperties',_0x4ee9('0x6'),()=>!0x1);}_0x2d5d28['_descriptionFactory'][_0x4ee9('0x12')](_0x2c41a6=>this[_0x4ee9('0xb')](_0x2c41a6));}[_0x4ee9('0xe')](_0x13688c,_0x2a9687,_0x10cd7c,_0x3b41d1,_0x2dbd1c,_0x5807fa){const _0xbbd2fe=this[_0x4ee9('0x24')][_0x4ee9('0x8')][_0x4ee9('0x18')](_0x4ee9('0x33'));this[_0x4ee9('0x24')][_0x4ee9('0x29')]['enqueueChange'](_0x5807fa[_0x4ee9('0x2f')],()=>{for(const _0x28b4cc of _0x2a9687){if(this['_getSuggestion'](_0x28b4cc,_0x3b41d1))_0x2dbd1c(_0x5807fa);else{const _0xb998c5={};for(const _0x4b600a of _0x10cd7c){const _0xd76a00=_0x28b4cc[_0x4ee9('0x9')](_0x4b600a);void 0x0!==_0xd76a00&&(_0xb998c5[_0x4b600a]=_0xd76a00);}_0x2dbd1c(_0x5807fa),_0xbbd2fe[_0x4ee9('0x1b')](_0x28b4cc,{'commandParams':[_0xb998c5]},[],_0x3b41d1);}}});}['handleDiscardAction'](_0x2037cb,_0x495cde,_0x6da82a){const _0x433fdb=_0x495cde[0x0]['start']['nodeAfter'],_0x466432=_0x6da82a['commandParams'][0x0];this[_0x4ee9('0x24')][_0x4ee9('0x29')][_0x4ee9('0x22')](_0x2920a3=>{for(const _0x47e166 of _0x2037cb)void 0x0!==_0x466432[_0x47e166]?_0x2920a3[_0x4ee9('0x2d')](_0x47e166,_0x466432[_0x47e166],_0x433fdb):_0x2920a3[_0x4ee9('0x2')](_0x47e166,_0x433fdb);});}[_0x4ee9('0xb')](_0x1e6efc){if(_0x1e6efc['data'])switch(_0x1e6efc['subType']){case _0x4ee9('0x14'):return{'type':'format','content':_0x310da2(this[_0x4ee9('0x24')][_0x4ee9('0x15')],_0x4ee9('0x2b'))};case _0x4ee9('0x11'):return{'type':'format','content':_0x310da2(this[_0x4ee9('0x24')][_0x4ee9('0x15')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x4ee9('0x2a')](_0x5d3f42,_0x1a3e69){const _0x352ef4=this[_0x4ee9('0x24')][_0x4ee9('0x8')]['get'](_0x4ee9('0x33'));for(const _0x51117f of _0x352ef4[_0x4ee9('0x1d')]({'skipNotAttached':!0x0})){const _0x4a8a06=_0x51117f['getContainedElement']();if(_0x51117f['subType']===_0x1a3e69&&_0x4a8a06===_0x5d3f42)return _0x51117f;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3cf7=['afterInit','enableCommand','TrackChangesEditing','Template','insertTemplate','has','plugins'];(function(_0x7f179b,_0x3cf71b){const _0x259e2e=function(_0x57ab1f){while(--_0x57ab1f){_0x7f179b['push'](_0x7f179b['shift']());}};_0x259e2e(++_0x3cf71b);}(_0x3cf7,0x85));const _0x259e=function(_0x7f179b,_0x3cf71b){_0x7f179b=_0x7f179b-0x0;let _0x259e2e=_0x3cf7[_0x7f179b];return _0x259e2e;};import{Plugin as _0x7ac89d}from'ckeditor5/src/core';export default class bt extends _0x7ac89d{[_0x259e('0x0')](){const _0x52b9e2=this['editor'];_0x52b9e2[_0x259e('0x6')][_0x259e('0x5')](_0x259e('0x3'))&&_0x52b9e2[_0x259e('0x6')]['get'](_0x259e('0x2'))[_0x259e('0x1')](_0x259e('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2182=['start','end','schema','plugins','has','get','registerPostFixer','locale','differ','Title','getNearestSelectionRange','title-content','suggestion','document','isCollapsed','newRange','TrackChangesEditing','_descriptionFactory','registerElementLabel','ELEMENT_TITLE','updateMarker','removeMarker','getChangedMarkers','nodeBefore','model','forward','createRange','_splitMarkerName','afterInit'];(function(_0x29a562,_0x218245){const _0x2273fb=function(_0x399c4d){while(--_0x399c4d){_0x29a562['push'](_0x29a562['shift']());}};_0x2273fb(++_0x218245);}(_0x2182,0x113));const _0x2273=function(_0x29a562,_0x218245){_0x29a562=_0x29a562-0x0;let _0x2273fb=_0x2182[_0x29a562];return _0x2273fb;};import{Plugin as _0x3bf6f6}from'ckeditor5/src/core';import{getTranslation as _0xc61843}from'../utils/common-translations';export default class It extends _0x3bf6f6{[_0x2273('0xe')](){const _0x6c232e=this['editor'];if(!_0x6c232e['plugins'][_0x2273('0x13')](_0x2273('0x18')))return;const _0x427978=_0x6c232e[_0x2273('0x12')][_0x2273('0x14')](_0x2273('0x2'));_0x427978[_0x2273('0x3')][_0x2273('0x4')](_0x2273('0x1a'),()=>_0xc61843(_0x6c232e[_0x2273('0x16')],_0x2273('0x5'))),_0x6c232e['model'][_0x2273('0x1c')][_0x2273('0x15')](_0x27b7ce=>{let _0x4fb2ca=!0x1;const _0x2ba838=Array['from'](_0x6c232e[_0x2273('0xa')][_0x2273('0x1c')][_0x2273('0x17')][_0x2273('0x8')]());for(const {name:_0x46af55,data:_0x4a4f70}of _0x2ba838){const {group:_0x2c96d0}=_0x427978[_0x2273('0xd')](_0x46af55);if(_0x2273('0x1b')!==_0x2c96d0||!_0x4a4f70[_0x2273('0x1')])continue;const _0x40d90c=_0x4a4f70['newRange'],_0xa9580b=_0x40d90c[_0x2273('0x10')][_0x2273('0x9')];if(!_0xa9580b||!_0xa9580b['is']('element',_0x2273('0x1a')))continue;if(!_0x40d90c[_0x2273('0xf')]['isTouching'](_0x40d90c[_0x2273('0x10')]))continue;const _0x43c0ac=_0x6c232e['model'][_0x2273('0x11')][_0x2273('0x19')](_0x40d90c['end'],_0x2273('0xb'));if(_0x43c0ac&&_0x43c0ac[_0x2273('0x0')]){const _0xc152cb=_0x27b7ce[_0x2273('0xc')](_0x40d90c[_0x2273('0xf')],_0x43c0ac['start']);_0xc152cb['isEqual'](_0x40d90c)||(_0x27b7ce[_0x2273('0x6')](_0x46af55,{'range':_0xc152cb}),_0x4fb2ca=!0x0);}_0x4fb2ca||(_0x27b7ce[_0x2273('0x7')](_0x46af55),_0x4fb2ca=!0x0);}return _0x4fb2ca;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d27=['afterInit','TrackChangesEditing','enableCommand','undo','has','redo','UndoEditing','editor','plugins'];(function(_0x18c8d8,_0x4d27fe){const _0x4686be=function(_0x196988){while(--_0x196988){_0x18c8d8['push'](_0x18c8d8['shift']());}};_0x4686be(++_0x4d27fe);}(_0x4d27,0xcc));const _0x4686=function(_0x18c8d8,_0x4d27fe){_0x18c8d8=_0x18c8d8-0x0;let _0x4686be=_0x4d27[_0x18c8d8];return _0x4686be;};import{Plugin as _0xc0e8ae}from'ckeditor5/src/core';export default class vt extends _0xc0e8ae{[_0x4686('0x3')](){const _0x7ece95=this[_0x4686('0x1')],_0x262408=_0x7ece95[_0x4686('0x2')]['get'](_0x4686('0x4'));_0x7ece95[_0x4686('0x2')][_0x4686('0x7')](_0x4686('0x0'))&&(_0x262408[_0x4686('0x5')](_0x4686('0x6')),_0x262408[_0x4686('0x5')](_0x4686('0x8')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b01=['hasAttribute','listItem','name','writer','element','get','type','nextSibling','consumable','test','schema','addHighlight','push','elementEnd','markerRange','mapper','getAttribute','model','listIndent','ck-suggestion-marker-','addClass','item','activeMarkers','previousPosition','parent','isContent','createUIElement','start','markerName','createRangeOn','isLimit','getCustomProperty'];(function(_0x1173ca,_0x4b01f4){const _0x4a097e=function(_0x50618a){while(--_0x50618a){_0x1173ca['push'](_0x1173ca['shift']());}};_0x4a097e(++_0x4b01f4);}(_0x4b01,0xad));const _0x4a09=function(_0x1173ca,_0x4b01f4){_0x1173ca=_0x1173ca-0x0;let _0x4a097e=_0x4b01[_0x1173ca];return _0x4a097e;};export function getRangesWithAttribute(_0x3ff13c,_0x596362,_0x2b4f85){const _0x29c462=[];for(const _0x2c948e of _0x596362['getItems']())_0x2c948e[_0x4a09('0x13')](_0x3ff13c)&&_0x29c462['push'](_0x2b4f85[_0x4a09('0x10')](_0x2c948e));return _0x29c462;}export function getElementsAffectedByListItemRename(_0x8f192d){const _0x38363b=[];if(_0x8f192d['is'](_0x4a09('0x17'),_0x4a09('0x14'))){let _0x2607c9=_0x8f192d[_0x4a09('0x1a')];for(;_0x2607c9&&_0x2607c9['is'](_0x4a09('0x17'),_0x4a09('0x14'))&&_0x2607c9[_0x4a09('0x3')](_0x4a09('0x5'))>0x0;)_0x38363b[_0x4a09('0x1f')](_0x2607c9),_0x2607c9=_0x2607c9[_0x4a09('0x1a')];}return _0x38363b;}export function downcastSplitMergeMarker(_0x3fc186,_0x1fb8cd,{showActiveMarker:_0x182a27=!0x0}={}){const _0x34d2ae=_0x3fc186['plugins'][_0x4a09('0x18')]('TrackChangesEditing');return(_0x1020ed,_0x214dcd,_0x2ac054)=>{if(!_0x2ac054[_0x4a09('0x1b')][_0x4a09('0x1c')](_0x214dcd[_0x4a09('0x1')],_0x1020ed[_0x4a09('0x15')]))return;const _0x5d5596=_0x214dcd['markerRange']['getWalker'](),_0x4c604a=_0x214dcd['markerRange'][_0x4a09('0xe')],_0x26b70c=_0x3fc186[_0x4a09('0x4')][_0x4a09('0x1d')];let _0x3097ce=null,_0x28a1de=null,_0x28a3a7=!0x1,_0x4315ab=!0x1;for(const _0x4f8ec8 of _0x5d5596){const _0x41fc85=_0x4f8ec8[_0x4a09('0x8')];_0x28a3a7=_0x28a3a7||_0x26b70c[_0x4a09('0xc')](_0x41fc85);const _0xb15d73=_0x2ac054[_0x4a09('0x2')]['toViewElement'](_0x41fc85);if(_0xb15d73&&_0xb15d73[_0x4a09('0x12')](_0x4a09('0x1e')))return;_0x4a09('0x0')==_0x4f8ec8[_0x4a09('0x19')]&&(_0x26b70c['isBlock'](_0x41fc85)&&!_0x26b70c[_0x4a09('0x11')](_0x41fc85)&&(_0x41fc85['nextSibling']||_0x4c604a['isAtEnd']?_0x3097ce&&_0x3097ce[_0x4a09('0xb')]==_0x41fc85||(_0x3097ce=_0x41fc85,_0x3c4579(_0x4f8ec8[_0x4a09('0xa')]),_0x4315ab=!0x0):_0x28a1de=_0x28a1de||_0x4f8ec8[_0x4a09('0xa')]));}function _0x3c4579(_0x2c8042){const _0x1fabb4=_0x2ac054['writer'][_0x4a09('0xd')]('span',{'class':_0x4a09('0x6')+_0x1fb8cd}),_0x1761c5=_0x2ac054[_0x4a09('0x2')]['toViewPosition'](_0x2c8042);_0x182a27&&_0x34d2ae[_0x4a09('0x9')]['includes'](_0x214dcd[_0x4a09('0xf')])&&_0x2ac054[_0x4a09('0x16')][_0x4a09('0x7')]('ck-suggestion-marker--active',_0x1fabb4),_0x2ac054[_0x4a09('0x16')]['insert'](_0x1761c5,_0x1fabb4),_0x2ac054[_0x4a09('0x2')]['bindElementToMarker'](_0x1fabb4,_0x214dcd['markerName']);}_0x28a3a7||_0x4315ab||!_0x28a1de||_0x3c4579(_0x28a1de);};}
|