@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230710.1 → 0.0.0-nightly-20230711.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +12 -0
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.d.ts +2 -2
- 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 _0x5718=['ck-suggestion-marker--active','_suggestionFactory','clipboardOutput','ck-suggestion-marker-insertion','author','removeColumns','push','tableCellHorizontalAlignment','schema','tableCellBackgroundColor','registerPostFixer','registerDescriptionCallback','hasSuggestion','deletionRanges','tableCellPadding','insertion','tableCellBorderWidth','tablePasteChainId','getContainedElement','table','_descriptionFactory','fill','newRange','_isForcedDefaultExecutionBlock','filter','_splitMarkerName','wrap','suggestion:formatBlock:tablePasteCell','stop','start','dataDowncast','markMultiRangeDeletion','tableCellBorderStyle','suggestionUnloaded','cell','TableClipboard','from','previousSibling','createTableWalker','columns','registerCustomCallback','getSuggestions','deletion','for','commands','paragraph','getAttributes','selection','getSelectionAffectedTableCells','afterInit','getRange','Users','fromEntries','suggestion-td','has','content','join','column','row','keys','reduce','rows','documentSelection','get','getChanges','tableCell','insert','set','getSuggestion','rowInsertionIndexes','map','next','markMultiRangeBlockFormat','activeMarkers','getAllAdjacentSuggestions','_replaceTableSlotCell','cells','end','_getCoordsForCells','showSuggestionHighlights','document','length','*Replace\x20table\x20cells*','createElement','listenTo','updateMarker','rowInsertionRanges','markerName','markerToHighlight','name','register','startsWith','createPositionBefore','accept','tablePasteRow','getColumns','remove','move','editingDowncast','last','isEmpty','getMarkers','getColumnIndexes','ck-suggestion-marker','tableCellSuggestion','some','conversion','getChildren','getRanges','type','markMultiRangeInsertion','insertRows','formatBlock','createRange','findAncestor','value','removeRows','differ','markers','plugins','columnInsertionIndexes','nextSibling','discard','getShiftedBy','requires','removeMarker','batch','element','getItems','model','insertionRanges','getChild','TrackChangesEditing','includes','attributes','isInContent','tablePaste','redo','entries','oldRange','getSuggestionCallback','_tablePostFixingSubtypes','isEqual','nodeAfter','insertContent','getRowIndexes','high','createRangeOn','markerAttributes','add','getChangedMarkers','editor','return','forceDefaultExecution','insertColumns','view','_createdBatches','options','position','tablePasteColumn','root','change','previous','createRangeIn','suggestionLoaded','subType','tablePasteCell'];(function(_0x597860,_0x5718b6){const _0x2a5ac9=function(_0xa50b25){while(--_0xa50b25){_0x597860['push'](_0x597860['shift']());}};_0x2a5ac9(++_0x5718b6);}(_0x5718,0x1dc));const _0x2a5a=function(_0x597860,_0x5718b6){_0x597860=_0x597860-0x0;let _0x2a5ac9=_0x5718[_0x597860];return _0x2a5ac9;};import{getTranslation as _0x4b3e8e}from'../utils/common-translations';import{Plugin as _0x5741c9}from'ckeditor5/src/core';import{uid as _0x2a4712,priorities as _0x5a57b0}from'ckeditor5/src/utils';import _0x15f222 from'./table';const le=[_0x2a5a('0x29'),'tableCellBorderColor',_0x2a5a('0x39'),_0x2a5a('0x20'),'tableCellVerticalAlignment',_0x2a5a('0x22'),_0x2a5a('0x27')],ae=Object[_0x2a5a('0x4d')](le['map'](_0x3401c2=>[_0x3401c2,null]));export default class kt extends _0x5741c9{static get[_0x2a5a('0x95')](){return[_0x15f222];}[_0x2a5a('0x4a')](){const _0x5f17a3=this[_0x2a5a('0x9')];if(!_0x5f17a3[_0x2a5a('0x90')][_0x2a5a('0x4f')](_0x2a5a('0x3c')))return;const _0x1062d6=_0x5f17a3[_0x2a5a('0x90')][_0x2a5a('0x58')](_0x2a5a('0x9d')),_0x56d93c=_0x5f17a3[_0x2a5a('0x90')]['get']('TableUtils'),_0x393cf6=_0x5f17a3[_0x2a5a('0x90')][_0x2a5a('0x58')](_0x15f222),_0x162033=_0x5f17a3[_0x2a5a('0x90')][_0x2a5a('0x58')]('TableClipboard');_0x393cf6[_0x2a5a('0xa6')][_0x2a5a('0x1f')](_0x2a5a('0x77'),_0x2a5a('0x11')),_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x21')][_0x2a5a('0x73')](_0x2a5a('0x81'),{'allowIn':_0x2a5a('0x5a'),'allowContentOf':_0x2a5a('0x5a'),'isLimit':!0x0}),_0x5f17a3[_0x2a5a('0x83')]['elementToElement']({'model':_0x2a5a('0x81'),'view':_0x2a5a('0x4e')});let _0x760716=null;_0x5f17a3[_0x2a5a('0x9a')]['on'](_0x2a5a('0x2'),(_0xee0b68,_0x4040da)=>{const [_0x5e051b,_0x475aa6]=_0x4040da,_0x247ef3=_0x4040da[_0x4040da['length']-0x1];_0x247ef3&&_0x247ef3[_0x2a5a('0xb')]||_0x1062d6[_0x2a5a('0x30')]||this['editor'][_0x2a5a('0x45')]['get']('trackChanges')[_0x2a5a('0x8c')]&&function(_0x4421ce,_0x2dd96a,_0x3682af,_0x42bb19,_0x1f5f1b){if(_0x2dd96a&&!_0x2dd96a['is'](_0x2a5a('0x57')))return!0x1;const _0x11d5c5=_0x1f5f1b['getTableIfOnlyTableInContent'](_0x4421ce,_0x3682af);if(!_0x11d5c5||!fe(_0x11d5c5,void 0x0,_0x42bb19))return!0x1;const _0x243bca=_0x42bb19[_0x2a5a('0x49')](_0x3682af[_0x2a5a('0x69')][_0x2a5a('0x48')]);if(!_0x243bca[_0x2a5a('0x6a')])return!0x1;const _0x3f6f56=_0x243bca[0x0][_0x2a5a('0x8b')](_0x2a5a('0x2c')),_0x48e6f0=_0x42bb19[_0x2a5a('0x3')](_0x243bca),_0x3464de=_0x42bb19[_0x2a5a('0x7f')](_0x243bca),_0x3ae192={'startRow':_0x48e6f0['first'],'endRow':_0x48e6f0[_0x2a5a('0x7c')],'startColumn':_0x3464de['first'],'endColumn':_0x3464de[_0x2a5a('0x7c')]};return 0x1==_0x243bca[_0x2a5a('0x6a')]&&(_0x3ae192['endRow']+=_0x42bb19['getRows'](_0x11d5c5)-0x1,_0x3ae192['endColumn']+=_0x42bb19[_0x2a5a('0x78')](_0x11d5c5)-0x1),fe(_0x3f6f56,_0x3ae192,_0x42bb19);}(_0x5e051b,_0x475aa6,_0x5f17a3[_0x2a5a('0x9a')],_0x56d93c,_0x162033)&&(_0xee0b68['stop'](),_0x760716={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5f17a3[_0x2a5a('0x9a')]['change'](()=>{_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x2')](_0x4040da[0x0],_0x4040da[0x1],_0x4040da[0x2],{'forceDefaultExecution':!0x0});const _0xabfff2=_0x2a4712(),{rowInsertionRanges:_0x2dac9f,columnInsertionRanges:_0x2f792b,insertionRanges:_0x3eade1,deletionRanges:_0x569ef3,cells:_0x1e022a}=_0x760716;_0x2dac9f['length']&&_0x1062d6[_0x2a5a('0x87')](_0x2dac9f,'tablePasteRow',{'tablePasteChainId':_0xabfff2}),_0x2f792b[_0x2a5a('0x6a')]&&_0x1062d6['markMultiRangeInsertion'](_0x2f792b,_0x2a5a('0x11'),{'tablePasteChainId':_0xabfff2}),_0x3eade1[_0x2a5a('0x6a')]&&_0x1062d6[_0x2a5a('0x87')](_0x3eade1,_0x2a5a('0xa1'),{'tablePasteChainId':_0xabfff2,'skipNestingCheck':!0x0}),_0x569ef3['length']&&_0x1062d6[_0x2a5a('0x38')](_0x569ef3,'tablePaste',{'tablePasteChainId':_0xabfff2,'skipNestingCheck':!0x0});const _0x10f73d=_0x1062d6[_0x2a5a('0x61')](_0x1e022a['map'](({element:_0x26414c})=>_0x26414c),{'formatGroupId':_0x2a4712()},[],'tablePasteCell',{'tablePasteChainId':_0xabfff2});if(_0x10f73d){const _0x311e96=_0x10f73d[_0x2a5a('0x7e')](),_0x343b27=[];for(const {element:_0x36525f,attributes:_0x2bc85e}of _0x1e022a){if(!_0x2bc85e)continue;const _0x37e29f=_0x5f17a3['model'][_0x2a5a('0x5')](_0x36525f),_0x2d5b76=_0x311e96['find'](_0x4b0236=>_0x4b0236[_0x2a5a('0x4b')]()['isEqual'](_0x37e29f));_0x2d5b76&&_0x343b27['push']([_0x2d5b76[_0x2a5a('0x72')],_0x2bc85e]);}_0x343b27['length']&&_0x10f73d['setAttribute']('markerAttributes',Object['fromEntries'](_0x343b27));}_0x760716=null;}));},{'priority':_0x5a57b0[_0x2a5a('0x4')]+0xa}),_0x5f17a3[_0x2a5a('0x90')][_0x2a5a('0x58')](_0x2a5a('0x3c'))['on'](_0x2a5a('0x64'),(_0x4fc36a,_0x1bd008)=>{const [_0x1131d7,_0x16aa80,,_0x2fb843]=_0x1bd008;if(!_0x760716)return;_0x4fc36a[_0x2a5a('0x35')]();const _0x12d066=_0x1131d7[_0x2a5a('0x3b')],_0x3d8553=_0x16aa80,_0x3b180f=ce(_0x12d066),_0x89f35f=ce(_0x3d8553);_0x4fc36a[_0x2a5a('0xa')]=_0x12d066;let _0x24d4c9=null,_0xb7a1b1=null;if(_0x89f35f||_0x3b180f){if(_0x3b180f&&!_0x89f35f){_0x2fb843['remove'](_0x12d066[_0x2a5a('0x9c')](0x0));for(const _0x55eabb of Array[_0x2a5a('0x3d')](_0x3d8553[_0x2a5a('0x84')]()))_0x2fb843[_0x2a5a('0x5b')](_0x55eabb,_0x12d066,_0x2a5a('0x66'));const _0x21190e=_0x760716[_0x2a5a('0x5e')][_0x2a5a('0x9e')](_0x1131d7[_0x2a5a('0x53')]),_0x2f8cce=_0x760716['columnInsertionIndexes'][_0x2a5a('0x9e')](_0x1131d7[_0x2a5a('0x52')]);_0x21190e||_0x2f8cce||(_0x24d4c9=_0x2fb843['createRangeIn'](_0x12d066));}else _0x89f35f&&!_0x3b180f&&(_0xb7a1b1=_0x2fb843['createRangeIn'](_0x12d066));}else{const _0xced275=_0x2fb843[_0x2a5a('0x6c')](_0x2a5a('0x81')),_0x5ebfe5=_0x2fb843[_0x2a5a('0x6c')]('tableCellSuggestion');_0x2fb843[_0x2a5a('0x33')](_0x2fb843[_0x2a5a('0x15')](_0x12d066),_0x5ebfe5),_0x2fb843[_0x2a5a('0x5b')](_0xced275,_0x12d066,0x0);for(const _0x44893e of Array['from'](_0x3d8553[_0x2a5a('0x84')]()))_0x2fb843[_0x2a5a('0x5b')](_0x44893e,_0xced275,_0x2a5a('0x66'));_0x24d4c9=_0x2fb843[_0x2a5a('0x5')](_0xced275),_0xb7a1b1=_0x2fb843[_0x2a5a('0x5')](_0x5ebfe5);}const _0x401d8c=Array[_0x2a5a('0x3d')](_0x3d8553[_0x2a5a('0x47')]())[_0x2a5a('0x31')](([_0x1481e7])=>le[_0x2a5a('0x9e')](_0x1481e7));_0x760716[_0x2a5a('0x65')][_0x2a5a('0x1f')]({'element':_0x12d066,'attributes':_0x401d8c['length']?Object['fromEntries'](_0x401d8c):null}),_0x24d4c9&&_0x760716[_0x2a5a('0x9b')][_0x2a5a('0x1f')](_0x24d4c9),_0xb7a1b1&&_0x760716[_0x2a5a('0x26')][_0x2a5a('0x1f')](_0xb7a1b1);},{'priority':_0x2a5a('0x4')}),_0x56d93c['on'](_0x2a5a('0xc'),(_0x3149b5,_0x3dc73d)=>{const [_0x4d6eac,_0x5bc15c={}]=_0x3dc73d;if(!_0x760716)return;const _0x34733a=_0x5bc15c['at']||0x0,_0x20d1a6=_0x5bc15c[_0x2a5a('0x40')]||0x1;_0x760716[_0x2a5a('0x91')]=new Array(_0x20d1a6)[_0x2a5a('0x2e')](_0x34733a)[_0x2a5a('0x5f')]((_0x53e354,_0x543c6a)=>_0x53e354+_0x543c6a);for(const {cell:_0x223216}of _0x56d93c[_0x2a5a('0x3f')](_0x4d6eac,{'startColumn':_0x34733a,'endColumn':_0x34733a+_0x20d1a6-0x1}))_0x760716['columnInsertionRanges']['push'](_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x5')](_0x223216));},{'priority':'low'}),_0x56d93c['on'](_0x2a5a('0x88'),(_0x58c2e6,_0x5a32cb)=>{const [_0x31f44d,_0x2ce581={}]=_0x5a32cb;if(!_0x760716)return;const _0x530da2=_0x2ce581['at']||0x0,_0x39a36f=_0x2ce581[_0x2a5a('0x56')]||0x1;_0x760716[_0x2a5a('0x5e')]=new Array(_0x39a36f)[_0x2a5a('0x2e')](_0x530da2)[_0x2a5a('0x5f')]((_0x1ed556,_0x17c762)=>_0x1ed556+_0x17c762);for(const {cell:_0x5aed58}of _0x56d93c[_0x2a5a('0x3f')](_0x31f44d,{'startRow':_0x530da2,'endRow':_0x530da2+_0x39a36f-0x1}))_0x760716[_0x2a5a('0x6f')]['push'](_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x5')](_0x5aed58));},{'priority':'low'}),_0x1062d6[_0x2a5a('0x2d')][_0x2a5a('0x24')](_0x5c1ed1=>{if(_0x5c1ed1[_0x2a5a('0x17')]&&_0x5c1ed1['subType'][_0x2a5a('0x74')](_0x2a5a('0xa1')))return _0x5c1ed1[_0x2a5a('0x14')]?{}:{'type':'insertion','content':_0x4b3e8e(_0x5f17a3['locale'],_0x2a5a('0x6b'))};});const _0x2a624b=()=>{};for(const _0x291693 of[_0x2a5a('0xa1'),_0x2a5a('0x11'),_0x2a5a('0x77'),'tablePasteCell'])_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0x41')](_0x2a5a('0x28'),_0x291693,_0x2a5a('0x51'),_0x2a624b),_0x1062d6[_0x2a5a('0x1a')]['registerCustomCallback'](_0x2a5a('0x43'),_0x291693,'join',_0x2a624b);_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0x41')](_0x2a5a('0x89'),_0x2a5a('0x18'),_0x2a5a('0x93'),_0x2a624b),_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0x41')](_0x2a5a('0x89'),_0x2a5a('0x18'),'accept',(_0x382499,_0x450a5c,_0x205979)=>{const _0x4aa570=_0x382499[_0x2a5a('0x5f')](_0x27ba71=>_0x27ba71[_0x2a5a('0x2b')]())[_0x2a5a('0x31')](_0x5265bb=>_0x5265bb),_0x1cb2f9=new Map(_0x4aa570[_0x2a5a('0x5f')](_0x57a22a=>[_0x57a22a,null]));if(_0x760716)for(const {element:_0x2cb0cb,attributes:_0x9ecbf}of _0x760716[_0x2a5a('0x65')])_0x9ecbf&&_0x1cb2f9[_0x2a5a('0x5c')](_0x2cb0cb,_0x9ecbf);else{if(_0x205979&&_0x205979[_0x2a5a('0x6')])for(const [_0x5c27fc,_0x58ab6e]of Object[_0x2a5a('0xa3')](_0x205979[_0x2a5a('0x6')])){const _0x155da6=_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x8f')][_0x2a5a('0x58')](_0x5c27fc),_0x1e36ce=_0x155da6?_0x155da6['getRange']()['getContainedElement']():null;_0x1e36ce&&_0x1cb2f9[_0x2a5a('0x5c')](_0x1e36ce,_0x58ab6e);}}_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x13')](_0x1ac517=>{for(const [_0xcd7421,_0x11ec40]of _0x1cb2f9)_0x1ac517['setAttributes']({...ae,..._0x11ec40},_0xcd7421);});});const _0x2b2a28=(_0xa0760f,_0x2d209e)=>{_0x1062d6['_suggestionFactory'][_0x2a5a('0x41')](_0xa0760f,_0x2a5a('0xa1'),_0x2d209e,(_0x4f7cb2,_0x581514,_0x2067bf)=>{_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x13')](_0x3fae47=>{const _0x18e01a=[];for(const _0x672108 of _0x4f7cb2){const _0x59241c=_0x672108[_0x2a5a('0x36')][_0x2a5a('0x1')];_0x59241c['is'](_0x2a5a('0x98'),_0x2a5a('0x81'))&&_0x18e01a['push'](_0x59241c);}_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0xa5')](_0xa0760f,null,_0x2d209e)(_0x4f7cb2,_0x581514,_0x2067bf);for(const _0x3ace2e of _0x18e01a)'$graveyard'!=_0x3ace2e[_0x2a5a('0x12')]['rootName']&&_0x3fae47['unwrap'](_0x3ace2e);});});};_0x2b2a28('insertion','accept'),_0x2b2a28(_0x2a5a('0x28'),_0x2a5a('0x93')),_0x2b2a28(_0x2a5a('0x43'),_0x2a5a('0x76')),_0x2b2a28(_0x2a5a('0x43'),_0x2a5a('0x93')),_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0x41')]('insertion',_0x2a5a('0x77'),_0x2a5a('0x93'),_0x30438c=>{const _0x542a78=_0x30438c[_0x2a5a('0x5f')](_0x31e20f=>_0x31e20f[_0x2a5a('0x2b')]()),_0x365d89=_0x542a78[0x0][_0x2a5a('0x8b')](_0x2a5a('0x2c')),{minRow:_0x30a83e,maxRow:_0x1bd787}=_0x393cf6[_0x2a5a('0x67')](_0x542a78);_0x56d93c[_0x2a5a('0x8d')](_0x365d89,{'at':_0x30a83e,'rows':_0x1bd787-_0x30a83e+0x1});}),_0x1062d6[_0x2a5a('0x1a')][_0x2a5a('0x41')](_0x2a5a('0x28'),_0x2a5a('0x11'),_0x2a5a('0x93'),_0x77adb7=>{const _0x18f8a4=_0x77adb7[_0x2a5a('0x5f')](_0x541dc4=>_0x541dc4[_0x2a5a('0x2b')]()),_0x55eaea=_0x18f8a4[0x0]['findAncestor']('table'),{minColumn:_0x51ad3b,maxColumn:_0x3b07b0}=_0x393cf6['_getCoordsForCells'](_0x18f8a4);_0x56d93c[_0x2a5a('0x1e')](_0x55eaea,{'at':_0x51ad3b,'columns':_0x3b07b0-_0x51ad3b+0x1});});const _0x1169f4=(_0x42ab56,_0x39836a)=>{if(!_0x39836a[_0x2a5a('0x17')]||!_0x39836a[_0x2a5a('0x17')]['startsWith'](_0x2a5a('0xa1')))return;const _0x5553c0=_0x39836a[_0x2a5a('0x9f')][_0x2a5a('0x2a')],_0x3ae88a=_0x1062d6[_0x2a5a('0x42')]()[_0x2a5a('0x31')](_0x112d54=>_0x112d54[_0x2a5a('0xa0')]&&_0x112d54[_0x2a5a('0x9f')]&&_0x112d54['attributes']['tablePasteChainId']==_0x5553c0);_0x3ae88a[_0x2a5a('0x6a')]&&_0x39836a[_0x2a5a('0x63')]()['length']!=_0x3ae88a['length']&&_0x3ae88a[_0x2a5a('0x55')]((_0x8a4213,_0x1615f7)=>(_0x8a4213[_0x2a5a('0x60')]=_0x1615f7,_0x1615f7['previous']=_0x8a4213,_0x1615f7));};function _0x5b676a(_0x362eb7,_0x30f24a=!0x0){const {id:_0x17eb87}=_0x1062d6[_0x2a5a('0x32')](_0x362eb7[_0x2a5a('0x70')]),_0x49de2c=[_0x2a5a('0x80'),_0x2a5a('0x1c')],_0x107fde=_0x1062d6[_0x2a5a('0x62')][_0x2a5a('0x9e')](_0x362eb7['markerName']);return _0x107fde&&_0x49de2c[_0x2a5a('0x1f')](_0x2a5a('0x19')),{'classes':_0x49de2c,'attributes':{'data-suggestion':_0x17eb87},'priority':_0x107fde&&_0x30f24a?0xbc2:0xbb8};}_0x1062d6['on'](_0x2a5a('0x16'),_0x1169f4,{'priority':_0x2a5a('0x4')}),_0x1062d6['on'](_0x2a5a('0x3a'),_0x1169f4,{'priority':_0x2a5a('0x4')}),_0x5f17a3['model'][_0x2a5a('0x69')][_0x2a5a('0x23')](()=>{let _0x21f64c=!0x1;const _0x163c44=Array[_0x2a5a('0x3d')](_0x5f17a3['model'][_0x2a5a('0x69')][_0x2a5a('0x8e')][_0x2a5a('0x8')]());for(const {name:_0xf82110,data:_0x2f4689}of _0x163c44){const {group:_0x4f0d73,type:_0x4fb89f,id:_0x4fac70}=_0x1062d6[_0x2a5a('0x32')](_0xf82110);if('suggestion'!=_0x4f0d73||_0x2a5a('0x43')!=_0x4fb89f||_0x2f4689[_0x2a5a('0xa4')])continue;if(!_0x1062d6[_0x2a5a('0x25')](_0x4fac70))continue;const _0x51ca9d=_0x1062d6[_0x2a5a('0x5d')](_0x4fac70)['getRanges'](),_0x2fc4f6=_0x5f17a3[_0x2a5a('0x90')]['get'](_0x2a5a('0x4c'))['me'];for(const _0x102444 of _0x1062d6['getSuggestions']()){if(!_0x102444[_0x2a5a('0xa0')]||_0x102444[_0x2a5a('0x1d')]!=_0x2fc4f6)continue;if(_0x2a5a('0x89')!=_0x102444['type']||'tablePasteCell'!=_0x102444['subType'])continue;if(_0x102444[_0x2a5a('0x85')]()['every'](_0x2a265f=>_0x51ca9d[_0x2a5a('0x82')](_0x445c43=>_0x445c43['containsRange'](_0x2a265f,!0x0))))for(const _0x482dac of _0x102444['getAllAdjacentSuggestions']())_0x482dac[_0x2a5a('0xa0')]&&(_0x482dac[_0x2a5a('0x93')](),_0x21f64c=!0x0);}}return _0x21f64c;}),_0x5f17a3['model'][_0x2a5a('0x69')][_0x2a5a('0x23')](_0x406603=>{const _0x14d5b0=_0x5f17a3[_0x2a5a('0x45')][_0x2a5a('0x58')](_0x2a5a('0xa2'));if(!_0x14d5b0||!_0x14d5b0[_0x2a5a('0xe')][_0x2a5a('0x4f')](_0x406603[_0x2a5a('0x97')]))return!0x1;let _0x1139f2=!0x1;const _0xacffb3=_0x5f17a3[_0x2a5a('0x90')]['get'](_0x2a5a('0x4c'))['me'],_0x8266f9=_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x69')][_0x2a5a('0x8e')][_0x2a5a('0x59')](),_0x57f982=Array['from'](_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x69')][_0x2a5a('0x8e')]['getChangedMarkers']())['filter'](({name:_0x535ee1,data:_0x5cbe5a})=>{const {group:_0x4dede9,subType:_0x1572be,authorId:_0x215c27}=_0x1062d6[_0x2a5a('0x32')](_0x535ee1);return'suggestion'==_0x4dede9&&_0x2a5a('0xa1')==_0x1572be&&_0x215c27==_0xacffb3['id']&&!_0x5cbe5a[_0x2a5a('0xa4')];});for(const _0x380237 of _0x8266f9){if(_0x2a5a('0x5b')!=_0x380237[_0x2a5a('0x86')]||_0x2a5a('0x81')!=_0x380237['name']||0x1!=_0x380237[_0x2a5a('0x6a')])continue;const _0x4a0253=_0x406603[_0x2a5a('0x8a')](_0x380237[_0x2a5a('0x10')],_0x380237[_0x2a5a('0x10')][_0x2a5a('0x94')](0x1));if(!_0x57f982['find'](({data:_0x201e44})=>_0x201e44[_0x2a5a('0x2f')][_0x2a5a('0x0')](_0x4a0253)))for(const {name:_0x4bae71,data:_0x1c145a}of _0x57f982)if(_0x4a0253['containsRange'](_0x1c145a[_0x2a5a('0x2f')])){_0x406603[_0x2a5a('0x6e')](_0x4bae71,{'range':_0x4a0253}),_0x1139f2=!0x0;break;}}return _0x1139f2;}),_0x5f17a3[_0x2a5a('0x9a')][_0x2a5a('0x69')][_0x2a5a('0x23')](_0x45590b=>{let _0x848b2b=!0x1;const _0x80a93d=_0x5f17a3['plugins'][_0x2a5a('0x58')](_0x2a5a('0x4c'))['me'],_0x42958d=_0x1062d6[_0x2a5a('0x42')]()[_0x2a5a('0x31')](_0x370ef4=>_0x370ef4[_0x2a5a('0xa0')]&&_0x370ef4['author']==_0x80a93d),_0x58ce11=new Set(),_0x4d862a=new Set();for(const _0x127776 of _0x42958d)if('tablePaste'==_0x127776[_0x2a5a('0x17')])for(const _0x46823e of _0x127776['getMarkers']()){const _0x12bd29=_0x46823e[_0x2a5a('0x4b')]()[_0x2a5a('0x2b')]();if(_0x12bd29){if(_0x12bd29['is'](_0x2a5a('0x98'),'tableCellSuggestion')&&ce(_0x12bd29)){_0x127776[_0x2a5a('0x96')](_0x46823e[_0x2a5a('0x72')]),_0x58ce11['add'](_0x12bd29),_0x848b2b=!0x0;const _0x57e825=_0x12bd29[_0x2a5a('0x92')],_0x303caf=_0x12bd29[_0x2a5a('0x3e')],_0x5c554c=_0x57e825&&_0x57e825['is'](_0x2a5a('0x98'),_0x2a5a('0x81')),_0x3e6cb8=_0x303caf&&_0x303caf['is'](_0x2a5a('0x98'),_0x2a5a('0x81'));_0x5c554c&&!_0x58ce11[_0x2a5a('0x4f')](_0x57e825)&&_0x4d862a[_0x2a5a('0x7')](_0x57e825),_0x3e6cb8&&!_0x58ce11[_0x2a5a('0x4f')](_0x303caf)&&_0x4d862a[_0x2a5a('0x7')](_0x303caf);}else _0x12bd29['is'](_0x2a5a('0x98'),'paragraph')&&_0x12bd29[_0x2a5a('0x7d')]&&(_0x127776[_0x2a5a('0x96')](_0x46823e['name']),_0x848b2b=!0x0);}}else{if('tablePasteCell'==_0x127776[_0x2a5a('0x17')]){if(!_0x127776[_0x2a5a('0x9f')]||!_0x127776[_0x2a5a('0x9f')][_0x2a5a('0x2a')])continue;const _0x2415c8=_0x127776[_0x2a5a('0x9f')][_0x2a5a('0x6')];if(_0x2415c8&&Object[_0x2a5a('0x54')](_0x2415c8)[_0x2a5a('0x6a')])continue;const _0x4fb843=_0x127776['attributes'][_0x2a5a('0x2a')];let _0x411cfd=!0x0,_0x52b76c=!0x0;for(const _0x4953d3 of _0x42958d)if(_0x4953d3[_0x2a5a('0x17')]&&_0x4953d3['subType'][_0x2a5a('0x74')]('tablePaste')){if(!_0x4953d3[_0x2a5a('0x9f')][_0x2a5a('0x2a')]){_0x52b76c=!0x1;break;}if(_0x4953d3['id']!=_0x127776['id']&&_0x4953d3[_0x2a5a('0x9f')][_0x2a5a('0x2a')]==_0x4fb843){_0x411cfd=!0x1;break;}}_0x52b76c&&_0x411cfd&&(_0x127776['removeMarkers'](),_0x848b2b=!0x0);}}for(const _0x54988f of _0x58ce11)_0x45590b[_0x2a5a('0x79')](_0x54988f);for(const _0x57d23d of _0x4d862a)_0x45590b['unwrap'](_0x57d23d);return _0x848b2b;}),_0x5f17a3['conversion'][_0x2a5a('0x44')](_0x2a5a('0x7b'))['markerToHighlight']({'model':_0x2a5a('0x34'),'view':(_0x3aaad0,_0x4cadf8)=>_0x5b676a(_0x3aaad0),'converterPriority':_0x2a5a('0x4')}),_0x5f17a3[_0x2a5a('0x83')]['for'](_0x2a5a('0x37'))[_0x2a5a('0x71')]({'model':_0x2a5a('0x34'),'view':(_0x17e7fd,_0x248878)=>_0x248878[_0x2a5a('0xf')][_0x2a5a('0x68')]?_0x5b676a(_0x17e7fd,!0x1):null,'converterPriority':_0x2a5a('0x4')});const _0x4e4cd9=_0x5f17a3['editing'][_0x2a5a('0xd')];this[_0x2a5a('0x6d')](_0x4e4cd9['document'],_0x2a5a('0x1b'),(_0x4385d0,_0x27b1ad)=>{const _0x3ef3f2=[];for(const _0x34c47f of _0x4e4cd9[_0x2a5a('0x15')](_0x27b1ad[_0x2a5a('0x50')])[_0x2a5a('0x99')]())_0x34c47f['is'](_0x2a5a('0x98'),'suggestion-td')&&_0x3ef3f2[_0x2a5a('0x1f')](_0x34c47f);_0x4e4cd9['change'](_0x1cfa66=>{for(const _0x2e1caf of _0x3ef3f2)_0x1cfa66[_0x2a5a('0x7a')](_0x1cfa66[_0x2a5a('0x15')](_0x2e1caf),_0x1cfa66[_0x2a5a('0x75')](_0x2e1caf)),_0x1cfa66[_0x2a5a('0x79')](_0x2e1caf);});});}}function ce(_0x4e8b6){if(_0x4e8b6[_0x2a5a('0x7d')])return!0x0;const _0x558878=_0x4e8b6[_0x2a5a('0x9c')](0x0);return _0x558878['is'](_0x2a5a('0x98'),_0x2a5a('0x46'))&&_0x558878[_0x2a5a('0x7d')];}function fe(_0x833b94,_0x330bcf={},_0x38b553){for(const {isAnchor:_0x1645ed,cellHeight:_0x30c0e0,cellWidth:_0x26d055}of _0x38b553[_0x2a5a('0x3f')](_0x833b94,{'includeAllSlots':!0x0,..._0x330bcf}))if(!_0x1645ed||0x1!=_0x30c0e0||0x1!=_0x26d055)return!0x1;return!0x0;}
|
|
23
|
+
const _0x4095=['getSuggestionCallback','type','tablePasteRow','selection','root','from','setAttribute','options','reduce','elementToElement','_getCoordsForCells','paragraph','deletion','differ','getSelectionAffectedTableCells','fill','nodeAfter','move','conversion','_suggestionFactory','_tablePostFixingSubtypes','length','low','for','return','getTableIfOnlyTableInContent','nextSibling','clipboardOutput','element','setAttributes','redo','first','dataDowncast','requires','editor','createElement','tableCellVerticalAlignment','map','removeMarker','findAncestor','entries','locale','getRange','getAllAdjacentSuggestions','suggestion:formatBlock:tablePasteCell','getRows','registerDescriptionCallback','get','formatBlock','name','model','_replaceTableSlotCell','Users','showSuggestionHighlights','_splitMarkerName','end','last','subType','content','tablePasteColumn','$graveyard','getContainedElement','_isForcedDefaultExecutionBlock','tablePaste','join','add','TableClipboard','tableCellBorderStyle','removeMarkers','getChild','start','insertColumns','tableCell','unwrap','fromEntries','TableUtils','isInContent','change','markMultiRangeDeletion','tableCellHorizontalAlignment','set','document','getSuggestions','table','_descriptionFactory','documentSelection','insertion','tableCellBorderColor','listenTo','stop','createRangeIn','isEqual','ck-suggestion-marker-insertion','commands','getMarkers','isEmpty','suggestion','registerPostFixer','keys','tableCellSuggestion','has','columnInsertionIndexes','previous','includes','getRowIndexes','createRangeOn','registerCustomCallback','activeMarkers','cells','accept','tablePasteChainId','insertContent','getChangedMarkers','rootName','rowInsertionRanges','previousSibling','find','schema','oldRange','value','remove','markerToHighlight','position','cell','rowInsertionIndexes','removeRows','markerName','register','ck-suggestion-marker','suggestionUnloaded','column','createPositionBefore','wrap','markMultiRangeInsertion','insert','discard','tablePasteCell','removeColumns','newRange','tableCellBackgroundColor','attributes','editing','getShiftedBy','getRanges','suggestion-td','high','TrackChangesEditing','_createdBatches','afterInit','plugins','updateMarker','markMultiRangeBlockFormat','createTableWalker','push','trackChanges','insertRows','filter','row','getChildren','markerAttributes','startsWith'];(function(_0x28fcc8,_0x40953c){const _0xf82212=function(_0x1d7580){while(--_0x1d7580){_0x28fcc8['push'](_0x28fcc8['shift']());}};_0xf82212(++_0x40953c);}(_0x4095,0x110));const _0xf822=function(_0x28fcc8,_0x40953c){_0x28fcc8=_0x28fcc8-0x0;let _0xf82212=_0x4095[_0x28fcc8];return _0xf82212;};import{getTranslation as _0x48c1fc}from'../utils/common-translations';import{Plugin as _0x5c1e43}from'ckeditor5/src/core';import{uid as _0x1b030c,priorities as _0xebabc8}from'ckeditor5/src/utils';import _0x3a9bb2 from'./table';const le=['tableCellBorderWidth',_0xf822('0x89'),_0xf822('0x75'),_0xf822('0x81'),_0xf822('0x56'),_0xf822('0x1c'),'tableCellPadding'],ae=Object['fromEntries'](le[_0xf822('0x57')](_0xbab6e6=>[_0xbab6e6,null]));export default class kt extends _0x5c1e43{static get[_0xf822('0x53')](){return[_0x3a9bb2];}[_0xf822('0x25')](){const _0x57afb6=this[_0xf822('0x54')];if(!_0x57afb6[_0xf822('0x26')][_0xf822('0x96')](_0xf822('0x74')))return;const _0xd6882a=_0x57afb6['plugins'][_0xf822('0x61')](_0xf822('0x23')),_0xee7190=_0x57afb6[_0xf822('0x26')][_0xf822('0x61')](_0xf822('0x7d')),_0x18cba9=_0x57afb6[_0xf822('0x26')][_0xf822('0x61')](_0x3a9bb2),_0x3410be=_0x57afb6[_0xf822('0x26')]['get'](_0xf822('0x74'));_0x18cba9[_0xf822('0x46')][_0xf822('0x2a')](_0xf822('0x34'),_0xf822('0x6d')),_0x57afb6[_0xf822('0x64')][_0xf822('0x6')][_0xf822('0x10')](_0xf822('0x95'),{'allowIn':'tableCell','allowContentOf':_0xf822('0x7a'),'isLimit':!0x0}),_0x57afb6['conversion'][_0xf822('0x3b')]({'model':'tableCellSuggestion','view':_0xf822('0x21')});let _0x1fcd3f=null;_0x57afb6[_0xf822('0x64')]['on'](_0xf822('0x0'),(_0x1d8888,_0x1fd8b0)=>{const [_0x264751,_0x1bbaa2]=_0x1fd8b0,_0x299ed6=_0x1fd8b0[_0x1fd8b0[_0xf822('0x47')]-0x1];_0x299ed6&&_0x299ed6['forceDefaultExecution']||_0xd6882a[_0xf822('0x70')]||this['editor'][_0xf822('0x8f')][_0xf822('0x61')](_0xf822('0x2b'))[_0xf822('0x8')]&&function(_0x407fd9,_0xb45258,_0x21fe07,_0x248284,_0x1130bb){if(_0xb45258&&!_0xb45258['is'](_0xf822('0x87')))return!0x1;const _0xf3d2e8=_0x1130bb[_0xf822('0x4b')](_0x407fd9,_0x21fe07);if(!_0xf3d2e8||!fe(_0xf3d2e8,void 0x0,_0x248284))return!0x1;const _0x2eb33b=_0x248284[_0xf822('0x40')](_0x21fe07['document'][_0xf822('0x35')]);if(!_0x2eb33b[_0xf822('0x47')])return!0x1;const _0x376f3f=_0x2eb33b[0x0][_0xf822('0x59')]('table'),_0x5d77f0=_0x248284[_0xf822('0x9a')](_0x2eb33b),_0x134127=_0x248284['getColumnIndexes'](_0x2eb33b),_0x2116ce={'startRow':_0x5d77f0['first'],'endRow':_0x5d77f0[_0xf822('0x6a')],'startColumn':_0x134127[_0xf822('0x51')],'endColumn':_0x134127[_0xf822('0x6a')]};return 0x1==_0x2eb33b['length']&&(_0x2116ce['endRow']+=_0x248284[_0xf822('0x5f')](_0xf3d2e8)-0x1,_0x2116ce['endColumn']+=_0x248284['getColumns'](_0xf3d2e8)-0x1),fe(_0x376f3f,_0x2116ce,_0x248284);}(_0x264751,_0x1bbaa2,_0x57afb6[_0xf822('0x64')],_0xee7190,_0x3410be)&&(_0x1d8888[_0xf822('0x8b')](),_0x1fcd3f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x57afb6[_0xf822('0x64')][_0xf822('0x7f')](()=>{_0x57afb6[_0xf822('0x64')][_0xf822('0x0')](_0x1fd8b0[0x0],_0x1fd8b0[0x1],_0x1fd8b0[0x2],{'forceDefaultExecution':!0x0});const _0x53e331=_0x1b030c(),{rowInsertionRanges:_0x427bb1,columnInsertionRanges:_0x5c8595,insertionRanges:_0x33f5dc,deletionRanges:_0x87312e,cells:_0x331a67}=_0x1fcd3f;_0x427bb1[_0xf822('0x47')]&&_0xd6882a[_0xf822('0x16')](_0x427bb1,_0xf822('0x34'),{'tablePasteChainId':_0x53e331}),_0x5c8595[_0xf822('0x47')]&&_0xd6882a['markMultiRangeInsertion'](_0x5c8595,'tablePasteColumn',{'tablePasteChainId':_0x53e331}),_0x33f5dc[_0xf822('0x47')]&&_0xd6882a[_0xf822('0x16')](_0x33f5dc,_0xf822('0x71'),{'tablePasteChainId':_0x53e331,'skipNestingCheck':!0x0}),_0x87312e[_0xf822('0x47')]&&_0xd6882a[_0xf822('0x80')](_0x87312e,'tablePaste',{'tablePasteChainId':_0x53e331,'skipNestingCheck':!0x0});const _0x1661f5=_0xd6882a[_0xf822('0x28')](_0x331a67['map'](({element:_0x584201})=>_0x584201),{'formatGroupId':_0x1b030c()},[],_0xf822('0x19'),{'tablePasteChainId':_0x53e331});if(_0x1661f5){const _0x2eceda=_0x1661f5[_0xf822('0x90')](),_0x3e7df3=[];for(const {element:_0x5cd3a9,attributes:_0x5a4ddd}of _0x331a67){if(!_0x5a4ddd)continue;const _0x1352f0=_0x57afb6['model'][_0xf822('0x9b')](_0x5cd3a9),_0x36e6ab=_0x2eceda['find'](_0x3a579c=>_0x3a579c[_0xf822('0x5c')]()['isEqual'](_0x1352f0));_0x36e6ab&&_0x3e7df3[_0xf822('0x2a')]([_0x36e6ab[_0xf822('0x63')],_0x5a4ddd]);}_0x3e7df3['length']&&_0x1661f5[_0xf822('0x38')](_0xf822('0x30'),Object[_0xf822('0x7c')](_0x3e7df3));}_0x1fcd3f=null;}));},{'priority':_0xebabc8[_0xf822('0x22')]+0xa}),_0x57afb6[_0xf822('0x26')][_0xf822('0x61')](_0xf822('0x74'))['on'](_0xf822('0x65'),(_0x41657e,_0x1fe272)=>{const [_0xe56baa,_0x5d1830,,_0x1eafc7]=_0x1fe272;if(!_0x1fcd3f)return;_0x41657e['stop']();const _0xbc4abf=_0xe56baa[_0xf822('0xc')],_0x52c7b9=_0x5d1830,_0x285ced=ce(_0xbc4abf),_0x5a50fe=ce(_0x52c7b9);_0x41657e[_0xf822('0x4a')]=_0xbc4abf;let _0x506422=null,_0x2685f3=null;if(_0x5a50fe||_0x285ced){if(_0x285ced&&!_0x5a50fe){_0x1eafc7[_0xf822('0x9')](_0xbc4abf[_0xf822('0x77')](0x0));for(const _0x30127a of Array['from'](_0x52c7b9[_0xf822('0x2f')]()))_0x1eafc7[_0xf822('0x17')](_0x30127a,_0xbc4abf,_0xf822('0x69'));const _0x444029=_0x1fcd3f[_0xf822('0xd')]['includes'](_0xe56baa[_0xf822('0x2e')]),_0x29241f=_0x1fcd3f[_0xf822('0x97')][_0xf822('0x99')](_0xe56baa[_0xf822('0x13')]);_0x444029||_0x29241f||(_0x506422=_0x1eafc7[_0xf822('0x8c')](_0xbc4abf));}else _0x5a50fe&&!_0x285ced&&(_0x2685f3=_0x1eafc7[_0xf822('0x8c')](_0xbc4abf));}else{const _0xacb8df=_0x1eafc7['createElement'](_0xf822('0x95')),_0x49da29=_0x1eafc7[_0xf822('0x55')](_0xf822('0x95'));_0x1eafc7[_0xf822('0x15')](_0x1eafc7[_0xf822('0x8c')](_0xbc4abf),_0x49da29),_0x1eafc7['insert'](_0xacb8df,_0xbc4abf,0x0);for(const _0x10d4da of Array[_0xf822('0x37')](_0x52c7b9[_0xf822('0x2f')]()))_0x1eafc7['insert'](_0x10d4da,_0xacb8df,_0xf822('0x69'));_0x506422=_0x1eafc7[_0xf822('0x9b')](_0xacb8df),_0x2685f3=_0x1eafc7[_0xf822('0x9b')](_0x49da29);}const _0x4862de=Array[_0xf822('0x37')](_0x52c7b9['getAttributes']())[_0xf822('0x2d')](([_0x1b3820])=>le[_0xf822('0x99')](_0x1b3820));_0x1fcd3f[_0xf822('0x9e')]['push']({'element':_0xbc4abf,'attributes':_0x4862de[_0xf822('0x47')]?Object[_0xf822('0x7c')](_0x4862de):null}),_0x506422&&_0x1fcd3f['insertionRanges'][_0xf822('0x2a')](_0x506422),_0x2685f3&&_0x1fcd3f['deletionRanges'][_0xf822('0x2a')](_0x2685f3);},{'priority':_0xf822('0x22')}),_0xee7190['on'](_0xf822('0x79'),(_0x25a455,_0x1a5c6c)=>{const [_0x149b4d,_0x556f3c={}]=_0x1a5c6c;if(!_0x1fcd3f)return;const _0x2ad3be=_0x556f3c['at']||0x0,_0x285dd4=_0x556f3c['columns']||0x1;_0x1fcd3f['columnInsertionIndexes']=new Array(_0x285dd4)[_0xf822('0x41')](_0x2ad3be)[_0xf822('0x57')]((_0x3bb667,_0xbee87e)=>_0x3bb667+_0xbee87e);for(const {cell:_0x2c6d87}of _0xee7190[_0xf822('0x29')](_0x149b4d,{'startColumn':_0x2ad3be,'endColumn':_0x2ad3be+_0x285dd4-0x1}))_0x1fcd3f['columnInsertionRanges']['push'](_0x57afb6[_0xf822('0x64')][_0xf822('0x9b')](_0x2c6d87));},{'priority':_0xf822('0x48')}),_0xee7190['on'](_0xf822('0x2c'),(_0x8c0ae8,_0x264b2e)=>{const [_0x4f6c8a,_0x26bcd={}]=_0x264b2e;if(!_0x1fcd3f)return;const _0x1c39dc=_0x26bcd['at']||0x0,_0x3b24c1=_0x26bcd['rows']||0x1;_0x1fcd3f['rowInsertionIndexes']=new Array(_0x3b24c1)[_0xf822('0x41')](_0x1c39dc)[_0xf822('0x57')]((_0x3991ef,_0x4d200a)=>_0x3991ef+_0x4d200a);for(const {cell:_0x5791ba}of _0xee7190[_0xf822('0x29')](_0x4f6c8a,{'startRow':_0x1c39dc,'endRow':_0x1c39dc+_0x3b24c1-0x1}))_0x1fcd3f[_0xf822('0x3')]['push'](_0x57afb6[_0xf822('0x64')][_0xf822('0x9b')](_0x5791ba));},{'priority':_0xf822('0x48')}),_0xd6882a[_0xf822('0x86')][_0xf822('0x60')](_0x3b0259=>{if(_0x3b0259['subType']&&_0x3b0259[_0xf822('0x6b')][_0xf822('0x31')](_0xf822('0x71')))return _0x3b0259[_0xf822('0x98')]?{}:{'type':_0xf822('0x88'),'content':_0x48c1fc(_0x57afb6[_0xf822('0x5b')],'*Replace\x20table\x20cells*')};});const _0x51205e=()=>{};for(const _0x162998 of[_0xf822('0x71'),_0xf822('0x6d'),'tablePasteRow',_0xf822('0x19')])_0xd6882a[_0xf822('0x45')][_0xf822('0x9c')](_0xf822('0x88'),_0x162998,_0xf822('0x72'),_0x51205e),_0xd6882a[_0xf822('0x45')][_0xf822('0x9c')](_0xf822('0x3e'),_0x162998,_0xf822('0x72'),_0x51205e);_0xd6882a['_suggestionFactory'][_0xf822('0x9c')](_0xf822('0x62'),_0xf822('0x19'),_0xf822('0x18'),_0x51205e),_0xd6882a[_0xf822('0x45')][_0xf822('0x9c')](_0xf822('0x62'),_0xf822('0x19'),'accept',(_0x46d889,_0x3c94e5,_0x39e921)=>{const _0x1a67f8=_0x46d889[_0xf822('0x57')](_0x4c55a1=>_0x4c55a1['getContainedElement']())[_0xf822('0x2d')](_0xaf812f=>_0xaf812f),_0xbfa45e=new Map(_0x1a67f8['map'](_0x3c2b39=>[_0x3c2b39,null]));if(_0x1fcd3f)for(const {element:_0x3e4a1b,attributes:_0x340774}of _0x1fcd3f[_0xf822('0x9e')])_0x340774&&_0xbfa45e['set'](_0x3e4a1b,_0x340774);else{if(_0x39e921&&_0x39e921['markerAttributes'])for(const [_0x4eebf4,_0x50b98d]of Object[_0xf822('0x5a')](_0x39e921['markerAttributes'])){const _0x26706a=_0x57afb6[_0xf822('0x64')]['markers'][_0xf822('0x61')](_0x4eebf4),_0xcdc128=_0x26706a?_0x26706a['getRange']()[_0xf822('0x6f')]():null;_0xcdc128&&_0xbfa45e[_0xf822('0x82')](_0xcdc128,_0x50b98d);}}_0x57afb6[_0xf822('0x64')]['change'](_0x111ac0=>{for(const [_0x572f4d,_0x5e3ca1]of _0xbfa45e)_0x111ac0[_0xf822('0x4f')]({...ae,..._0x5e3ca1},_0x572f4d);});});const _0x279e42=(_0x3606fc,_0x15654a)=>{_0xd6882a[_0xf822('0x45')]['registerCustomCallback'](_0x3606fc,_0xf822('0x71'),_0x15654a,(_0x296a23,_0x241153,_0x17480a)=>{_0x57afb6[_0xf822('0x64')]['change'](_0x7f8630=>{const _0x232fd3=[];for(const _0x4d4188 of _0x296a23){const _0x3dc3a7=_0x4d4188[_0xf822('0x78')][_0xf822('0x42')];_0x3dc3a7['is'](_0xf822('0x4e'),_0xf822('0x95'))&&_0x232fd3[_0xf822('0x2a')](_0x3dc3a7);}_0xd6882a[_0xf822('0x45')][_0xf822('0x32')](_0x3606fc,null,_0x15654a)(_0x296a23,_0x241153,_0x17480a);for(const _0x2c7021 of _0x232fd3)_0xf822('0x6e')!=_0x2c7021[_0xf822('0x36')][_0xf822('0x2')]&&_0x7f8630[_0xf822('0x7b')](_0x2c7021);});});};_0x279e42(_0xf822('0x88'),_0xf822('0x9f')),_0x279e42(_0xf822('0x88'),_0xf822('0x18')),_0x279e42(_0xf822('0x3e'),_0xf822('0x9f')),_0x279e42(_0xf822('0x3e'),_0xf822('0x18')),_0xd6882a['_suggestionFactory'][_0xf822('0x9c')](_0xf822('0x88'),_0xf822('0x34'),_0xf822('0x18'),_0x2697a0=>{const _0x251158=_0x2697a0['map'](_0x5138d8=>_0x5138d8['getContainedElement']()),_0x473d0a=_0x251158[0x0][_0xf822('0x59')](_0xf822('0x85')),{minRow:_0x2ed61e,maxRow:_0x53a6a6}=_0x18cba9[_0xf822('0x3c')](_0x251158);_0xee7190[_0xf822('0xe')](_0x473d0a,{'at':_0x2ed61e,'rows':_0x53a6a6-_0x2ed61e+0x1});}),_0xd6882a[_0xf822('0x45')]['registerCustomCallback'](_0xf822('0x88'),_0xf822('0x6d'),'discard',_0x35bad3=>{const _0x6d9a4e=_0x35bad3[_0xf822('0x57')](_0xb5a169=>_0xb5a169[_0xf822('0x6f')]()),_0x50ee70=_0x6d9a4e[0x0][_0xf822('0x59')](_0xf822('0x85')),{minColumn:_0x21bdb5,maxColumn:_0x26c5b4}=_0x18cba9['_getCoordsForCells'](_0x6d9a4e);_0xee7190[_0xf822('0x1a')](_0x50ee70,{'at':_0x21bdb5,'columns':_0x26c5b4-_0x21bdb5+0x1});});const _0x376469=(_0x14754d,_0x288fd1)=>{if(!_0x288fd1[_0xf822('0x6b')]||!_0x288fd1[_0xf822('0x6b')][_0xf822('0x31')](_0xf822('0x71')))return;const _0x58dc24=_0x288fd1[_0xf822('0x1d')]['tablePasteChainId'],_0x41d142=_0xd6882a['getSuggestions']()['filter'](_0x1adb72=>_0x1adb72[_0xf822('0x7e')]&&_0x1adb72['attributes']&&_0x1adb72['attributes']['tablePasteChainId']==_0x58dc24);_0x41d142[_0xf822('0x47')]&&_0x288fd1['getAllAdjacentSuggestions']()['length']!=_0x41d142['length']&&_0x41d142[_0xf822('0x3a')]((_0x2e123d,_0xd6c943)=>(_0x2e123d['next']=_0xd6c943,_0xd6c943[_0xf822('0x98')]=_0x2e123d,_0xd6c943));};function _0xd6475f(_0xb2cbfa,_0x407ab9=!0x0){const {id:_0x59ad00}=_0xd6882a[_0xf822('0x68')](_0xb2cbfa['markerName']),_0x24e174=[_0xf822('0x11'),_0xf822('0x8e')],_0x3151b9=_0xd6882a[_0xf822('0x9d')][_0xf822('0x99')](_0xb2cbfa[_0xf822('0xf')]);return _0x3151b9&&_0x24e174[_0xf822('0x2a')]('ck-suggestion-marker--active'),{'classes':_0x24e174,'attributes':{'data-suggestion':_0x59ad00},'priority':_0x3151b9&&_0x407ab9?0xbc2:0xbb8};}_0xd6882a['on']('suggestionLoaded',_0x376469,{'priority':_0xf822('0x22')}),_0xd6882a['on'](_0xf822('0x12'),_0x376469,{'priority':_0xf822('0x22')}),_0x57afb6[_0xf822('0x64')][_0xf822('0x83')]['registerPostFixer'](()=>{let _0x101747=!0x1;const _0x50101d=Array[_0xf822('0x37')](_0x57afb6['model']['document'][_0xf822('0x3f')][_0xf822('0x1')]());for(const {name:_0x501b17,data:_0x49bce3}of _0x50101d){const {group:_0x527516,type:_0x101e12,id:_0x547784}=_0xd6882a['_splitMarkerName'](_0x501b17);if(_0xf822('0x92')!=_0x527516||_0xf822('0x3e')!=_0x101e12||_0x49bce3[_0xf822('0x7')])continue;if(!_0xd6882a['hasSuggestion'](_0x547784))continue;const _0x48f6bd=_0xd6882a['getSuggestion'](_0x547784)[_0xf822('0x20')](),_0x23e3b6=_0x57afb6[_0xf822('0x26')][_0xf822('0x61')]('Users')['me'];for(const _0x1ba9da of _0xd6882a['getSuggestions']()){if(!_0x1ba9da[_0xf822('0x7e')]||_0x1ba9da['author']!=_0x23e3b6)continue;if(_0xf822('0x62')!=_0x1ba9da[_0xf822('0x33')]||'tablePasteCell'!=_0x1ba9da[_0xf822('0x6b')])continue;if(_0x1ba9da[_0xf822('0x20')]()['every'](_0x3616f1=>_0x48f6bd['some'](_0x4c31b6=>_0x4c31b6['containsRange'](_0x3616f1,!0x0))))for(const _0x575552 of _0x1ba9da[_0xf822('0x5d')]())_0x575552['isInContent']&&(_0x575552[_0xf822('0x18')](),_0x101747=!0x0);}}return _0x101747;}),_0x57afb6[_0xf822('0x64')][_0xf822('0x83')][_0xf822('0x93')](_0x58608b=>{const _0x55e5c2=_0x57afb6[_0xf822('0x8f')][_0xf822('0x61')](_0xf822('0x50'));if(!_0x55e5c2||!_0x55e5c2[_0xf822('0x24')][_0xf822('0x96')](_0x58608b['batch']))return!0x1;let _0x228980=!0x1;const _0x47c2c0=_0x57afb6[_0xf822('0x26')][_0xf822('0x61')]('Users')['me'],_0xacd11d=_0x57afb6[_0xf822('0x64')]['document'][_0xf822('0x3f')]['getChanges'](),_0x2ec06b=Array['from'](_0x57afb6[_0xf822('0x64')]['document'][_0xf822('0x3f')]['getChangedMarkers']())[_0xf822('0x2d')](({name:_0x5e963d,data:_0x375fec})=>{const {group:_0x22578d,subType:_0x5a63df,authorId:_0xaf9727}=_0xd6882a['_splitMarkerName'](_0x5e963d);return _0xf822('0x92')==_0x22578d&&_0xf822('0x71')==_0x5a63df&&_0xaf9727==_0x47c2c0['id']&&!_0x375fec['oldRange'];});for(const _0x15c9eb of _0xacd11d){if(_0xf822('0x17')!=_0x15c9eb[_0xf822('0x33')]||'tableCellSuggestion'!=_0x15c9eb[_0xf822('0x63')]||0x1!=_0x15c9eb['length'])continue;const _0x1badb5=_0x58608b['createRange'](_0x15c9eb[_0xf822('0xb')],_0x15c9eb[_0xf822('0xb')][_0xf822('0x1f')](0x1));if(!_0x2ec06b[_0xf822('0x5')](({data:_0x2b9524})=>_0x2b9524[_0xf822('0x1b')][_0xf822('0x8d')](_0x1badb5)))for(const {name:_0x582958,data:_0x3ce799}of _0x2ec06b)if(_0x1badb5['containsRange'](_0x3ce799[_0xf822('0x1b')])){_0x58608b[_0xf822('0x27')](_0x582958,{'range':_0x1badb5}),_0x228980=!0x0;break;}}return _0x228980;}),_0x57afb6[_0xf822('0x64')][_0xf822('0x83')][_0xf822('0x93')](_0x4c56e5=>{let _0x2cb500=!0x1;const _0x1af51f=_0x57afb6['plugins'][_0xf822('0x61')](_0xf822('0x66'))['me'],_0x3e8f73=_0xd6882a[_0xf822('0x84')]()[_0xf822('0x2d')](_0x121c57=>_0x121c57[_0xf822('0x7e')]&&_0x121c57['author']==_0x1af51f),_0x1cdba8=new Set(),_0x1b5a12=new Set();for(const _0x55aba8 of _0x3e8f73)if(_0xf822('0x71')==_0x55aba8[_0xf822('0x6b')])for(const _0x14e969 of _0x55aba8[_0xf822('0x90')]()){const _0x39f0fc=_0x14e969[_0xf822('0x5c')]()[_0xf822('0x6f')]();if(_0x39f0fc){if(_0x39f0fc['is'](_0xf822('0x4e'),_0xf822('0x95'))&&ce(_0x39f0fc)){_0x55aba8[_0xf822('0x58')](_0x14e969[_0xf822('0x63')]),_0x1cdba8[_0xf822('0x73')](_0x39f0fc),_0x2cb500=!0x0;const _0x5a0f4d=_0x39f0fc[_0xf822('0x4c')],_0x2e7402=_0x39f0fc[_0xf822('0x4')],_0x1ca7e5=_0x5a0f4d&&_0x5a0f4d['is']('element',_0xf822('0x95')),_0x4966d3=_0x2e7402&&_0x2e7402['is'](_0xf822('0x4e'),_0xf822('0x95'));_0x1ca7e5&&!_0x1cdba8[_0xf822('0x96')](_0x5a0f4d)&&_0x1b5a12[_0xf822('0x73')](_0x5a0f4d),_0x4966d3&&!_0x1cdba8[_0xf822('0x96')](_0x2e7402)&&_0x1b5a12[_0xf822('0x73')](_0x2e7402);}else _0x39f0fc['is']('element',_0xf822('0x3d'))&&_0x39f0fc['isEmpty']&&(_0x55aba8[_0xf822('0x58')](_0x14e969['name']),_0x2cb500=!0x0);}}else{if('tablePasteCell'==_0x55aba8[_0xf822('0x6b')]){if(!_0x55aba8['attributes']||!_0x55aba8[_0xf822('0x1d')][_0xf822('0xa0')])continue;const _0x20a15b=_0x55aba8[_0xf822('0x1d')][_0xf822('0x30')];if(_0x20a15b&&Object[_0xf822('0x94')](_0x20a15b)[_0xf822('0x47')])continue;const _0x1f067d=_0x55aba8[_0xf822('0x1d')]['tablePasteChainId'];let _0x37c812=!0x0,_0x48fb5b=!0x0;for(const _0xc4d0fb of _0x3e8f73)if(_0xc4d0fb['subType']&&_0xc4d0fb[_0xf822('0x6b')]['startsWith'](_0xf822('0x71'))){if(!_0xc4d0fb[_0xf822('0x1d')]['tablePasteChainId']){_0x48fb5b=!0x1;break;}if(_0xc4d0fb['id']!=_0x55aba8['id']&&_0xc4d0fb['attributes']['tablePasteChainId']==_0x1f067d){_0x37c812=!0x1;break;}}_0x48fb5b&&_0x37c812&&(_0x55aba8[_0xf822('0x76')](),_0x2cb500=!0x0);}}for(const _0x1fe097 of _0x1cdba8)_0x4c56e5[_0xf822('0x9')](_0x1fe097);for(const _0x37c9b3 of _0x1b5a12)_0x4c56e5[_0xf822('0x7b')](_0x37c9b3);return _0x2cb500;}),_0x57afb6[_0xf822('0x44')][_0xf822('0x49')]('editingDowncast')[_0xf822('0xa')]({'model':_0xf822('0x5e'),'view':(_0x46b0b4,_0x38d0c3)=>_0xd6475f(_0x46b0b4),'converterPriority':_0xf822('0x22')}),_0x57afb6['conversion'][_0xf822('0x49')](_0xf822('0x52'))[_0xf822('0xa')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x123a70,_0x18ecea)=>_0x18ecea[_0xf822('0x39')][_0xf822('0x67')]?_0xd6475f(_0x123a70,!0x1):null,'converterPriority':_0xf822('0x22')});const _0x18fee5=_0x57afb6[_0xf822('0x1e')]['view'];this[_0xf822('0x8a')](_0x18fee5[_0xf822('0x83')],_0xf822('0x4d'),(_0x1cb377,_0x424c28)=>{const _0x3e45f4=[];for(const _0x12d754 of _0x18fee5[_0xf822('0x8c')](_0x424c28[_0xf822('0x6c')])['getItems']())_0x12d754['is'](_0xf822('0x4e'),_0xf822('0x21'))&&_0x3e45f4[_0xf822('0x2a')](_0x12d754);_0x18fee5[_0xf822('0x7f')](_0xff27f9=>{for(const _0x369ade of _0x3e45f4)_0xff27f9[_0xf822('0x43')](_0xff27f9['createRangeIn'](_0x369ade),_0xff27f9[_0xf822('0x14')](_0x369ade)),_0xff27f9[_0xf822('0x9')](_0x369ade);});});}}function ce(_0x30cc38){if(_0x30cc38[_0xf822('0x91')])return!0x0;const _0xd73571=_0x30cc38['getChild'](0x0);return _0xd73571['is']('element',_0xf822('0x3d'))&&_0xd73571['isEmpty'];}function fe(_0x416b8f,_0x45d9db={},_0x394d25){for(const {isAnchor:_0x142231,cellHeight:_0x21be09,cellWidth:_0x3653d7}of _0x394d25['createTableWalker'](_0x416b8f,{'includeAllSlots':!0x0,..._0x45d9db}))if(!_0x142231||0x1!=_0x21be09||0x1!=_0x3653d7)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5422=['model','resizeTableWidth','format','tableWidth','getSuggestions','selection','plugins','locale','formatBlock','handleResizeTableWidthCommand','getTableColumnsWidths','get','_suggestionFactory','_descriptionFactory','accept','formatGroupId','getAttribute','columnWidths','markBlockFormat','table','getColumnGroupElement','discard','resizeTable','subType','data','change','getSuggestionCallback','editor','resizeColumnWidths','enableCommand','afterInit','handleSuggestionDescription','registerCustomCallback','TrackChangesEditing','has','bind','document','TableColumnResizeEditing'];(function(_0x6d591e,_0x542230){const _0x4335ac=function(_0x5e784d){while(--_0x5e784d){_0x6d591e['push'](_0x6d591e['shift']());}};_0x4335ac(++_0x542230);}(_0x5422,0x80));const _0x4335=function(_0x6d591e,_0x542230){_0x6d591e=_0x6d591e-0x0;let _0x4335ac=_0x5422[_0x6d591e];return _0x4335ac;};import{Plugin as _0x3e4612}from'ckeditor5/src/core';import{getTranslation as _0x4bb6f7}from'../utils/common-translations';export default class wt extends _0x3e4612{[_0x4335('0x10')](){if(!this[_0x4335('0xd')]['plugins'][_0x4335('0x14')]('TableColumnResizeEditing'))return;const _0x4f2ebc=this[_0x4335('0xd')][_0x4335('0x1e')][_0x4335('0x23')](_0x4335('0x13'));_0x4f2ebc[_0x4335('0xf')](_0x4335('0x19'),this[_0x4335('0x21')][_0x4335('0x15')](this)),_0x4f2ebc[_0x4335('0xf')](_0x4335('0xe'),this[_0x4335('0x21')]['bind'](this)),_0x4f2ebc[_0x4335('0x24')][_0x4335('0x12')](_0x4335('0x20'),_0x4335('0x8'),_0x4335('0x0'),_0x4f2ebc[_0x4335('0x24')]['getSuggestionCallback'](_0x4335('0x20'),null,_0x4335('0x7'))),_0x4f2ebc[_0x4335('0x24')]['registerCustomCallback'](_0x4335('0x20'),'resizeTable','discard',_0x4f2ebc[_0x4335('0x24')][_0x4335('0xc')](_0x4335('0x20'),null,_0x4335('0x0'))),_0x4f2ebc[_0x4335('0x25')]['registerDescriptionCallback'](this['handleSuggestionDescription'][_0x4335('0x15')](this));}[_0x4335('0x21')](_0x3723a8,_0x2b65f6){const _0x2c6a77=this[_0x4335('0xd')][_0x4335('0x1e')][_0x4335('0x23')](_0x4335('0x13')),_0x56da72=this[_0x4335('0xd')]['plugins'][_0x4335('0x23')](_0x4335('0x17')),_0x13e137=_0x2b65f6[_0x4335('0x5')]||this[_0x4335('0xd')][_0x4335('0x18')][_0x4335('0x16')][_0x4335('0x1d')]['getSelectedElement']();this[_0x4335('0xd')][_0x4335('0x18')][_0x4335('0xb')](()=>{const _0x4bd765=_0x56da72[_0x4335('0x6')](_0x13e137);let _0x385cc0=_0x4bd765?_0x56da72[_0x4335('0x22')](_0x4bd765):null,_0xaea4f4=_0x13e137[_0x4335('0x2')](_0x4335('0x1b'))||null;const _0x32f7d8=_0x2b65f6[_0x4335('0x1b')]||_0xaea4f4,_0x311643=_0x2b65f6[_0x4335('0x3')]||_0x385cc0,_0x4c8e48=this['editor'][_0x4335('0x1e')]['get']('Users')['me'];for(const _0xfe2615 of _0x2c6a77[_0x4335('0x1c')]()){const _0x38cec6=_0xfe2615['getContainedElement']();if(_0x4335('0x8')===_0xfe2615[_0x4335('0x9')]&&_0x38cec6===_0x13e137){_0xfe2615['author']!==_0x4c8e48&&_0xfe2615['discard']();const _0x58ddb0=_0xfe2615[_0x4335('0xa')]['commandParams'];_0xaea4f4=_0x58ddb0[0x0][_0x4335('0x1b')],_0x385cc0=_0x58ddb0[0x0]['columnWidths'];break;}}_0x3723a8({'table':_0x13e137,'tableWidth':_0x32f7d8,'columnWidths':_0x311643}),_0x2c6a77[_0x4335('0x4')](_0x13e137,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xaea4f4,'columnWidths':_0x385cc0}],'formatGroupId':_0x4335('0x8')},[],_0x4335('0x8'));});}[_0x4335('0x11')](_0xd1b853){const {data:_0x545656}=_0xd1b853;if(_0x545656&&'resizeTable'===_0x545656[_0x4335('0x1')]){const _0x13bb31='*Format:*\x20resize\x20table';return{'type':_0x4335('0x1a'),'content':_0x4bb6f7(this[_0x4335('0xd')][_0x4335('0x1f')],_0x13bb31)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11c6=['activeMarkers','headingColumns','first','requires','createPositionAfter','ck-suggestion-marker--active','unbindElementFromMarkerName','format','consumable','registerCustomCallback','locale','mapper','ck-suggestion-marker-','createRange','editing','last','enableCommand','table','commandName','getRowIndexes','setAttribute','getSuggestion','addMarker:suggestion','nodeAfter','_acceptFormatSuggestionCallbackFactory','removeMarker:suggestion','getCellLocation','model','start','getAttribute','TableUtils','registerDescriptionCallback','selection','getSelectionAffectedTableCells','consume','document','downcastDispatcher','value','name','removeClass','change','setTableColumnHeader','TrackChangesEditing','index','addClass','markerName','data-suggestion','commands','forceValue','nodeBefore','cell','_suggestionFactory','markBlockFormat','setTableRowHeader','formatBlock','findAncestor','options','accept','showSuggestionHighlights','highest','writer','markerRange','createTableWalker','*Format:*\x20%0','_descriptionFactory','isBefore','plugins','get','markerNameToElements','createPositionBefore','commandParams','getChild','data','childCount'];(function(_0x43a1ea,_0x11c680){const _0x394e4a=function(_0x2336db){while(--_0x2336db){_0x43a1ea['push'](_0x43a1ea['shift']());}};_0x394e4a(++_0x11c680);}(_0x11c6,0x180));const _0x394e=function(_0x43a1ea,_0x11c680){_0x43a1ea=_0x43a1ea-0x0;let _0x394e4a=_0x11c6[_0x43a1ea];return _0x394e4a;};import{Plugin as _0x2fb618}from'ckeditor5/src/core';import _0x4c423b from'./table';import{getTranslation as _0x438d89}from'../utils/common-translations';export default class pt extends _0x2fb618{static get[_0x394e('0x3f')](){return[_0x4c423b];}['afterInit'](){const _0x40f18e=this['editor'];if(!_0x40f18e[_0x394e('0x34')]['has']('TableEditing'))return;const _0x18d3e7=_0x40f18e[_0x394e('0x46')],_0x251788=_0x40f18e[_0x394e('0x34')][_0x394e('0x35')](_0x394e('0x1c')),_0x20f7c5=_0x40f18e[_0x394e('0x34')][_0x394e('0x35')](_0x394e('0x10')),_0x343bcb=_0x40f18e[_0x394e('0x34')][_0x394e('0x35')](_0x4c423b);function _0x562426({showActiveMarker:_0x3bc9b7=!0x0,setDataAttribute:_0x407e7a=!0x0}={}){return(_0x4bfb03,_0x36783a,_0x599aff)=>{const {type:_0x2f66d7,id:_0x1607c1}=_0x251788['_splitMarkerName'](_0x36783a[_0x394e('0x1f')]),_0x3be23d=_0x251788[_0x394e('0x7')](_0x1607c1);if(!_0x3be23d[_0x394e('0x3a')]||'setTableColumnHeader'!=_0x3be23d[_0x394e('0x3a')]['commandName'])return;if(_0x36783a['item'])return void _0x4bfb03['stop']();if(!_0x599aff[_0x394e('0x44')][_0x394e('0x14')](_0x36783a[_0x394e('0x2f')],_0x4bfb03[_0x394e('0x18')]))return;const _0x259a61=_0x36783a[_0x394e('0x2f')][_0x394e('0xe')][_0x394e('0x9')],_0x2273d3=_0x36783a[_0x394e('0x2f')]['end'][_0x394e('0x23')],_0x3e02d3=_0x259a61['parent']['parent'],{column:_0x1294b5}=_0x20f7c5[_0x394e('0xc')](_0x259a61),{column:_0x19caf4}=_0x20f7c5['getCellLocation'](_0x2273d3);for(let _0x288c92=_0x1294b5;_0x288c92<=_0x19caf4;_0x288c92++){const _0x269039=_0x20f7c5[_0x394e('0x30')](_0x3e02d3,{'column':_0x288c92,'includeAllSlots':!0x1});for(const _0x269e32 of _0x269039){const _0x11a9ac=_0x269e32[_0x394e('0x24')],_0x22ac50=_0x599aff[_0x394e('0x47')]['toViewElement'](_0x11a9ac);_0x599aff[_0x394e('0x2e')][_0x394e('0x1e')](_0x394e('0x48')+_0x2f66d7,_0x22ac50),_0x407e7a&&_0x599aff['writer'][_0x394e('0x6')]('data-suggestion',_0x1607c1,_0x22ac50),_0x599aff[_0x394e('0x47')]['bindElementToMarker'](_0x22ac50,_0x36783a[_0x394e('0x1f')]),_0x3bc9b7&&(_0x251788[_0x394e('0x3c')]['includes'](_0x36783a[_0x394e('0x1f')])?_0x599aff[_0x394e('0x2e')][_0x394e('0x1e')](_0x394e('0x41'),_0x22ac50):_0x599aff[_0x394e('0x2e')]['removeClass'](_0x394e('0x41'),_0x22ac50));}}};}_0x251788[_0x394e('0x2')]('setTableRowHeader',(_0x351164,_0x5c50d7)=>{const _0x3ffa7f=_0x20f7c5[_0x394e('0x13')](_0x40f18e[_0x394e('0xd')][_0x394e('0x15')]['selection']),_0x78f4df=_0x20f7c5[_0x394e('0x5')](_0x3ffa7f),_0x1b094c=_0x3ffa7f[0x0]['findAncestor'](_0x394e('0x3')),_0x101a3b=_0x1b094c['getAttribute']('headingRows')||0x0,_0xda65d3=_0x5c50d7&&null!==_0x5c50d7[_0x394e('0x22')]?_0x5c50d7[_0x394e('0x22')]:!_0x40f18e[_0x394e('0x21')]['get']('setTableRowHeader')['value'],_0x410f6e=_0xda65d3?_0x78f4df[_0x394e('0x1')]:_0x78f4df[_0x394e('0x3e')],_0x638a55=_0x1b094c[_0x394e('0x39')](_0x410f6e);let _0x57fdf2;if(_0xda65d3){const _0x2156ff=_0x1b094c[_0x394e('0x39')](_0x101a3b);if(_0x638a55[_0x394e('0x1d')]<_0x2156ff['index'])return;_0x57fdf2=_0x40f18e['model'][_0x394e('0x49')](_0x40f18e[_0x394e('0xd')][_0x394e('0x37')](_0x2156ff['getChild'](0x0)),_0x40f18e[_0x394e('0xd')][_0x394e('0x40')](_0x638a55['getChild'](_0x638a55[_0x394e('0x3b')]-0x1)));}else{const _0x20b978=_0x1b094c[_0x394e('0x39')](_0x101a3b-0x1);if(!_0x20b978)return;_0x57fdf2=_0x40f18e[_0x394e('0xd')]['createRange'](_0x40f18e[_0x394e('0xd')][_0x394e('0x37')](_0x638a55[_0x394e('0x39')](0x0)),_0x40f18e[_0x394e('0xd')][_0x394e('0x40')](_0x20b978[_0x394e('0x39')](_0x20b978[_0x394e('0x3b')]-0x1)));}_0x40f18e[_0x394e('0xd')][_0x394e('0x1a')](()=>{_0x251788[_0x394e('0x26')](_0x57fdf2,{'commandName':_0x394e('0x27'),'commandParams':[{'forceValue':_0xda65d3}]},[],_0x394e('0x27'));});}),_0x251788[_0x394e('0x2')](_0x394e('0x1b'),(_0x484a80,_0x49c68d)=>{const _0x3688c0=_0x40f18e[_0x394e('0x34')]['get'](_0x394e('0x10')),_0x37ee45=_0x3688c0['getSelectionAffectedTableCells'](_0x40f18e[_0x394e('0xd')][_0x394e('0x15')][_0x394e('0x12')]),_0x14be23=_0x3688c0['getColumnIndexes'](_0x37ee45),_0x1f705d=_0x37ee45[0x0][_0x394e('0x29')]('table'),_0x183d5d=_0x1f705d[_0x394e('0xf')](_0x394e('0x3d'))||0x0,_0xa470d6=_0x49c68d&&null!==_0x49c68d[_0x394e('0x22')]?_0x49c68d['forceValue']:!_0x40f18e[_0x394e('0x21')]['get'](_0x394e('0x1b'))[_0x394e('0x17')];let _0x5ad7d9;const _0x530047=_0x1f705d[_0x394e('0x39')](0x0),_0x266f24=_0xa470d6?_0x14be23[_0x394e('0x1')]:_0x14be23[_0x394e('0x3e')],_0x27ea0e=_0x3688c0[_0x394e('0x30')](_0x1f705d,{'startRow':0x0,'column':_0x266f24,'includeAllSlots':!0x1}),_0xaa4d7e=Array['from'](_0x27ea0e)[0x0][_0x394e('0x24')];if(_0xa470d6){const _0x27b2d9=_0x530047[_0x394e('0x39')](_0x183d5d);if(_0xaa4d7e[_0x394e('0x33')](_0x27b2d9))return;_0x5ad7d9=_0x40f18e[_0x394e('0xd')][_0x394e('0x49')](_0x40f18e[_0x394e('0xd')][_0x394e('0x37')](_0x27b2d9),_0x40f18e[_0x394e('0xd')][_0x394e('0x40')](_0xaa4d7e));}else{const _0x4fd6b5=_0x530047[_0x394e('0x39')](_0x183d5d-0x1);if(!_0x4fd6b5)return;_0x5ad7d9=_0x40f18e[_0x394e('0xd')][_0x394e('0x49')](_0x40f18e['model'][_0x394e('0x37')](_0xaa4d7e),_0x40f18e[_0x394e('0xd')]['createPositionAfter'](_0x4fd6b5));}_0x40f18e[_0x394e('0xd')][_0x394e('0x1a')](()=>{_0x251788['markBlockFormat'](_0x5ad7d9,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0xa470d6}]},[],_0x394e('0x1b'));});}),_0x40f18e[_0x394e('0x0')]['downcastDispatcher']['on'](_0x394e('0x8'),_0x562426(),{'priority':_0x394e('0x2d')}),_0x40f18e[_0x394e('0x3a')][_0x394e('0x16')]['on'](_0x394e('0x8'),(_0x530985,_0x483824,_0x2c1788)=>{_0x2c1788[_0x394e('0x2a')][_0x394e('0x2c')]&&_0x562426({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x530985,_0x483824,_0x2c1788);},{'priority':_0x394e('0x2d')}),_0x40f18e['editing']['downcastDispatcher']['on'](_0x394e('0xb'),(_0x20fc69,_0x3a70c1,_0x2ba561)=>{const {type:_0x453c7b,id:_0x4a4b80}=_0x251788['_splitMarkerName'](_0x3a70c1[_0x394e('0x1f')]),_0x139ccf=_0x251788[_0x394e('0x7')](_0x4a4b80);if(!_0x139ccf['data']||'setTableColumnHeader'!=_0x139ccf[_0x394e('0x3a')][_0x394e('0x4')])return;const _0x3c2fb2=_0x2ba561[_0x394e('0x47')][_0x394e('0x36')](_0x3a70c1[_0x394e('0x1f')]);if(_0x3c2fb2)for(const _0xe7574c of _0x3c2fb2)_0x2ba561[_0x394e('0x2e')][_0x394e('0x19')](_0x394e('0x48')+_0x453c7b,_0xe7574c),_0x2ba561['writer'][_0x394e('0x19')](_0x394e('0x41'),_0xe7574c),_0x2ba561[_0x394e('0x2e')]['removeAttribute'](_0x394e('0x20'),_0xe7574c),_0x2ba561[_0x394e('0x47')][_0x394e('0x42')](_0xe7574c,_0x3a70c1[_0x394e('0x1f')]);},{'priority':'highest'}),_0x251788[_0x394e('0x32')][_0x394e('0x11')](_0x5aa00d=>{const {data:_0x70e182}=_0x5aa00d;if(_0x70e182){if(_0x394e('0x27')==_0x70e182['commandName']){const _0x3f83ba=_0x70e182[_0x394e('0x38')][0x0][_0x394e('0x22')];return _0x11f6a8(_0x438d89(_0x18d3e7,_0x3f83ba?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if(_0x394e('0x1b')==_0x70e182[_0x394e('0x4')]){const _0x1b2c5f=_0x70e182[_0x394e('0x38')][0x0][_0x394e('0x22')];return _0x11f6a8(_0x438d89(_0x18d3e7,_0x1b2c5f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}function _0x11f6a8(_0x335031){return{'type':_0x394e('0x43'),'content':_0x438d89(_0x18d3e7,_0x394e('0x31'),_0x335031)};}});const _0x85e0e3=_0x343bcb[_0x394e('0xa')]();_0x251788[_0x394e('0x25')][_0x394e('0x45')](_0x394e('0x28'),_0x394e('0x27'),_0x394e('0x2b'),_0x85e0e3),_0x251788[_0x394e('0x25')][_0x394e('0x45')](_0x394e('0x28'),_0x394e('0x1b'),_0x394e('0x2b'),_0x85e0e3);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5858=['element','direction','mergeTableCellUp','from','low','getRanges','isEnabled','change','_suggestionFactory','mergeTableCells','commands','find','subType','forceDefaultExecution','set:isEnabled','setSelection','*Split\x20cell:*\x20vertically','author','getCellLocation','mergeTableCellDown','format','fromRange','size','table','getFirstPosition','findAncestor','has','requires','refresh','tableCell','containsRange','*Split\x20cell:*\x20horizontally','_isForcedDefaultExecutionBlock','value','getSelectionAffectedTableCells','formatBlock','TableUtils','_areMergableCells','map','selection','rootName','execute','TrackChangesEditing','mergeTableCellRight','trackChanges','_acceptFormatSuggestionCallbackFactory','createRangeOn','_descriptionFactory','highest','length','registerDescriptionCallback','accept','*Merge\x20cells*','filter','get','detach','registerCustomCallback','editor','document','createTableWalker','commandName','splitTableCellVertically','horizontally','cell','model','getSuggestions','_tablePostFixingSubtypes','getAncestors','add','TableEditing','root','return','plugins','locale','enableCommand','$graveyard','stop','mergeTableCellLeft','markMultiRangeBlockFormat'];(function(_0x2e5a11,_0x585835){const _0x47467a=function(_0x488099){while(--_0x488099){_0x2e5a11['push'](_0x2e5a11['shift']());}};_0x47467a(++_0x585835);}(_0x5858,0x126));const _0x4746=function(_0x2e5a11,_0x585835){_0x2e5a11=_0x2e5a11-0x0;let _0x47467a=_0x5858[_0x2e5a11];return _0x47467a;};import{Plugin as _0x314e50}from'ckeditor5/src/core';import _0x5ed102 from'./table';import{LiveRange as _0x592b06}from'ckeditor5/src/engine';import{getTranslation as _0x56f006}from'../utils/common-translations';export default class dt extends _0x314e50{static get[_0x4746('0x31')](){return[_0x5ed102];}['afterInit'](){const _0x16c6e3=this[_0x4746('0x0')],_0x5df487=_0x16c6e3[_0x4746('0x7')][_0x4746('0x1')][_0x4746('0x3d')],_0x2c6ca0=_0x16c6e3[_0x4746('0x10')];if(!_0x16c6e3[_0x4746('0xf')][_0x4746('0x30')](_0x4746('0xc')))return;const _0x5b3289=_0x16c6e3[_0x4746('0xf')][_0x4746('0x4c')](_0x4746('0x40')),_0x3cb5d7=_0x16c6e3[_0x4746('0xf')][_0x4746('0x4c')](_0x4746('0x3a')),_0x217e62=_0x16c6e3[_0x4746('0xf')]['get'](_0x5ed102);_0x217e62[_0x4746('0x9')]['push'](_0x4746('0x1f')),_0x5b3289[_0x4746('0x11')](_0x4746('0x1f'),()=>{const _0x532692=_0x3cb5d7[_0x4746('0x38')](_0x16c6e3[_0x4746('0x7')]['document']['selection']);_0x16c6e3[_0x4746('0x7')]['change'](()=>{_0x5b3289['markMultiRangeBlockFormat'](_0x532692,{'commandName':'mergeTableCells','commandParams':[]},[],_0x4746('0x1f'));});}),_0x16c6e3[_0x4746('0x20')][_0x4746('0x4c')](_0x4746('0x1f'))['on'](_0x4746('0x3f'),(_0x39e188,_0x2a17f7)=>{_0x16c6e3['commands']['get'](_0x4746('0x42'))[_0x4746('0x37')]&&(_0x2a17f7[_0x4746('0x47')]>0x0&&_0x2a17f7[_0x2a17f7[_0x4746('0x47')]-0x1]&&_0x2a17f7[_0x2a17f7[_0x4746('0x47')]-0x1][_0x4746('0x23')]||_0x5b3289[_0x4746('0x36')]||this['_areSelectedCellsMergable']()||_0x39e188[_0x4746('0x13')]());},{'priority':_0x4746('0x46')});for(const _0x1692b0 of[_0x4746('0x18'),_0x4746('0x41'),_0x4746('0x29'),_0x4746('0x14')]){const _0x191373=_0x16c6e3[_0x4746('0x20')][_0x4746('0x4c')](_0x1692b0);_0x5b3289[_0x4746('0x11')](_0x1692b0,()=>{const _0x44b60c=_0x16c6e3['model'][_0x4746('0x1')][_0x4746('0x3d')]['getFirstPosition']()[_0x4746('0xa')]()[_0x4746('0x21')](_0x3a21ec=>_0x3a21ec['is'](_0x4746('0x16'),_0x4746('0x33'))),_0x58c984=_0x191373['value'];_0x16c6e3[_0x4746('0x7')][_0x4746('0x1d')](()=>{_0x5b3289[_0x4746('0x15')]([_0x44b60c,_0x58c984],{'commandName':_0x4746('0x1f'),'commandParams':[]},[],_0x4746('0x1f'));});});}for(const _0x4ef1f1 of[_0x4746('0x4'),'splitTableCellHorizontally']){const _0x9b76f=_0x16c6e3['commands'][_0x4746('0x4c')](_0x4ef1f1);_0x5b3289[_0x4746('0x11')](_0x4ef1f1,()=>{const _0x463456=_0x3cb5d7['getSelectionAffectedTableCells'](_0x16c6e3[_0x4746('0x7')][_0x4746('0x1')][_0x4746('0x3d')])[0x0],_0x51ef66=_0x463456[_0x4746('0x2f')](_0x4746('0x2d')),{column:_0x4f9850,row:_0x4c33e3}=_0x3cb5d7[_0x4746('0x28')](_0x463456);let _0x369f86=[];if(_0x4746('0x5')==_0x9b76f[_0x4746('0x17')]){const _0xb7a17=_0x3cb5d7[_0x4746('0x2')](_0x51ef66,{'startRow':_0x4c33e3,'endRow':_0x4c33e3,'includeAllSlots':!0x0});_0x369f86=Array[_0x4746('0x19')](_0xb7a17)['map'](_0x55fde9=>_0x55fde9[_0x4746('0x6')]);}else{const _0x574424=_0x3cb5d7[_0x4746('0x2')](_0x51ef66,{'column':_0x4f9850,'includeAllSlots':!0x0});_0x369f86=Array[_0x4746('0x19')](_0x574424)[_0x4746('0x3c')](_0x166d4f=>_0x166d4f[_0x4746('0x6')]);}_0x16c6e3[_0x4746('0x7')][_0x4746('0x1d')](_0x1dc600=>{_0x5b3289['markBlockFormat'](_0x1dc600[_0x4746('0x44')](_0x463456),{'commandName':_0x4ef1f1,'commandParams':[]},_0x369f86,_0x4ef1f1);});});}_0x5b3289[_0x4746('0x45')][_0x4746('0x48')](_0x18a675=>{const {data:_0x4ac46a}=_0x18a675;if(_0x4ac46a)return _0x4746('0x1f')==_0x4ac46a[_0x4746('0x3')]?{'type':_0x4746('0x2a'),'content':_0x56f006(_0x2c6ca0,_0x4746('0x4a'))}:void 0x0;}),_0x5b3289['_descriptionFactory'][_0x4746('0x48')](_0x4f4598=>{const {data:_0x49f9b1}=_0x4f4598;if(_0x49f9b1)return _0x4746('0x4')==_0x49f9b1[_0x4746('0x3')]?{'type':_0x4746('0x2a'),'content':_0x56f006(_0x2c6ca0,_0x4746('0x26'))}:'splitTableCellHorizontally'==_0x49f9b1[_0x4746('0x3')]?{'type':_0x4746('0x2a'),'content':_0x56f006(_0x2c6ca0,_0x4746('0x35'))}:void 0x0;});const _0x4f9de8=_0x217e62[_0x4746('0x43')]();for(const _0x428508 of[_0x4746('0x18'),_0x4746('0x41'),_0x4746('0x29'),_0x4746('0x14')])_0x5b3289[_0x4746('0x1e')][_0x4746('0x4e')](_0x4746('0x39'),_0x428508,_0x4746('0x49'),_0x4f9de8);for(const _0x2158cc of[_0x4746('0x4'),'splitTableCellHorizontally'])_0x5b3289[_0x4746('0x1e')][_0x4746('0x4e')](_0x4746('0x39'),_0x2158cc,_0x4746('0x49'),_0x4f9de8);_0x5b3289['_suggestionFactory'][_0x4746('0x4e')](_0x4746('0x39'),'mergeTableCells',_0x4746('0x49'),_0x3fd122=>{_0x16c6e3[_0x4746('0x7')][_0x4746('0x1d')](_0x34c3c1=>{const _0x2cca00=Array['from'](_0x5df487[_0x4746('0x1b')]())['map'](_0x196dfc=>_0x592b06[_0x4746('0x2b')](_0x196dfc));_0x34c3c1[_0x4746('0x25')](_0x3fd122),_0x16c6e3[_0x4746('0x20')][_0x4746('0x4c')](_0x4746('0x1f'))[_0x4746('0x32')](),_0x16c6e3['execute'](_0x4746('0x1f'),{'forceDefaultExecution':!0x0});const _0x11136a=_0x2cca00[_0x4746('0x4b')](_0x26dde7=>_0x4746('0x12')!=_0x26dde7[_0x4746('0xd')][_0x4746('0x3e')]);_0x11136a[_0x4746('0x47')]>0x0&&_0x34c3c1[_0x4746('0x25')](_0x11136a);for(const _0x470846 of _0x2cca00)_0x470846[_0x4746('0x4d')]();});});for(const _0x493209 of[_0x4746('0x18'),_0x4746('0x29'),_0x4746('0x14'),_0x4746('0x41')]){const _0x13bb8e=_0x16c6e3[_0x4746('0x20')][_0x4746('0x4c')](_0x493209);_0x13bb8e['on'](_0x4746('0x24'),(_0x18481e,_0x2e17ce,_0x25780d)=>{if(_0x25780d){const _0x16ce4a=_0x16c6e3[_0x4746('0x7')][_0x4746('0x1')][_0x4746('0x3d')][_0x4746('0x2e')]()[_0x4746('0xa')]()[_0x4746('0x21')](_0x2e9cfa=>_0x2e9cfa['is'](_0x4746('0x16'),_0x4746('0x33')));this[_0x4746('0x3b')](_0x13bb8e['value'],_0x16ce4a)||(_0x18481e[_0x4746('0xe')]=!0x1,_0x18481e[_0x4746('0x13')]());}},{'priority':_0x4746('0x1a')});}}['_areSelectedCellsMergable'](){const _0x1a6afd=this[_0x4746('0x0')][_0x4746('0x20')]['get']('mergeTableCells'),_0x308853=this[_0x4746('0x0')][_0x4746('0xf')]['get']('TableUtils');if(!_0x1a6afd[_0x4746('0x1c')])return!0x1;const _0x2b188c=_0x308853[_0x4746('0x38')](this[_0x4746('0x0')][_0x4746('0x7')][_0x4746('0x1')][_0x4746('0x3d')]);for(const _0x350aaa of _0x2b188c)for(const _0x36f260 of _0x2b188c)if(_0x350aaa!=_0x36f260&&!this[_0x4746('0x3b')](_0x350aaa,_0x36f260))return!0x1;return!0x0;}[_0x4746('0x3b')](_0x16c7bf,_0x2ac3ae){const _0x36dbf2=this[_0x4746('0x0')][_0x4746('0xf')][_0x4746('0x4c')](_0x4746('0x40')),_0x1bfa33=this[_0x4746('0x0')][_0x4746('0x7')][_0x4746('0x44')](_0x16c7bf),_0x376fab=this[_0x4746('0x0')][_0x4746('0x7')][_0x4746('0x44')](_0x2ac3ae),_0x27bd4a=new Set(),_0x26a261=new Set();for(const _0xaca5a3 of _0x36dbf2[_0x4746('0x8')]())if(('insertion'==_0xaca5a3['type']||'deletion'==_0xaca5a3['type']||_0x4746('0x1f')==_0xaca5a3[_0x4746('0x22')])&&_0xaca5a3['isInContent'])for(const _0x3bba2a of _0xaca5a3[_0x4746('0x1b')]())_0x3bba2a[_0x4746('0x34')](_0x1bfa33,!0x0)&&_0x27bd4a[_0x4746('0xb')](_0xaca5a3['type']+':'+_0xaca5a3[_0x4746('0x27')]['id']),_0x3bba2a[_0x4746('0x34')](_0x376fab,!0x0)&&_0x26a261[_0x4746('0xb')](_0xaca5a3['type']+':'+_0xaca5a3[_0x4746('0x27')]['id']);if(_0x27bd4a[_0x4746('0x2c')]!=_0x26a261[_0x4746('0x2c')])return!0x1;for(const _0x37e4a2 of _0x27bd4a)if(!_0x26a261[_0x4746('0x30')](_0x37e4a2))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e24=['_descriptionFactory','plugins','tableOfContents','ELEMENT_TABLE_OF_CONTENTS','get','editor','TrackChangesEditing','commands','registerElementLabel','locale','insertTableOfContents'];(function(_0x4e7388,_0x5e24b2){const _0x1d1b7a=function(_0x25c254){while(--_0x25c254){_0x4e7388['push'](_0x4e7388['shift']());}};_0x1d1b7a(++_0x5e24b2);}(_0x5e24,0x1ad));const _0x1d1b=function(_0x4e7388,_0x5e24b2){_0x4e7388=_0x4e7388-0x0;let _0x1d1b7a=_0x5e24[_0x4e7388];return _0x1d1b7a;};import{Plugin as _0xd35047}from'ckeditor5/src/core';import{getTranslation as _0x10a33a}from'../utils/common-translations';export default class bt extends _0xd35047{['afterInit'](){const _0x341454=this[_0x1d1b('0x5')];if(!_0x341454[_0x1d1b('0x7')][_0x1d1b('0x4')](_0x1d1b('0xa')))return;_0x341454[_0x1d1b('0x1')][_0x1d1b('0x4')](_0x1d1b('0x6'))['enableCommand'](_0x1d1b('0xa'));const _0x3a8e24=_0x341454[_0x1d1b('0x1')][_0x1d1b('0x4')](_0x1d1b('0x6')),_0x562d13=_0x341454[_0x1d1b('0x9')];_0x3a8e24[_0x1d1b('0x0')][_0x1d1b('0x8')](_0x1d1b('0x2'),_0x2d2b40=>_0x10a33a(_0x562d13,_0x1d1b('0x3'),_0x2d2b40));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4129=['plugins','*Format:*\x20change\x20table\x20cell\x20properties','locale','tableAlignment','tableBorderWidth','batch','tableCellBorderColor','_suggestionFactory','accept','*Format:*\x20change\x20table\x20properties','getSuggestions','tableHeight','commandParams','handleSuggestionDescription','nodeAfter','TrackChangesEditing','change','has','discard','tableCellHeight','_handlePropertyChange','model','getSelectionAffectedTableCells','get','enableCommand','removeAttribute','formatBlock','pluginName','tableProperties','handleDiscardAction','findAncestor','editor','afterInit','getFirstPosition','TableUtils','table','tableCellHorizontalAlignment','_descriptionFactory','getContainedElement','start','selection','getSuggestionCallback','subType','tableWidth','document','tableCellProperties','markBlockFormat','TablePropertiesEditing','tableBorderStyle','TableCellPropertiesEditing','_getSuggestion','registerCustomCallback','tableCellWidth','join','format','tableCellBorderStyle','tableBorderColor'];(function(_0x57c296,_0x412928){const _0x177be6=function(_0x5d51e5){while(--_0x5d51e5){_0x57c296['push'](_0x57c296['shift']());}};_0x177be6(++_0x412928);}(_0x4129,0x1d5));const _0x177b=function(_0x57c296,_0x412928){_0x57c296=_0x57c296-0x0;let _0x177be6=_0x4129[_0x57c296];return _0x177be6;};import{Plugin as _0x5eb905}from'ckeditor5/src/core';import{getTranslation as _0x2c2be2}from'../utils/common-translations';export default class Ct extends _0x5eb905{constructor(_0x101202){super(_0x101202),this['tableProperties']=[_0x177b('0x2b'),_0x177b('0x23'),_0x177b('0x30'),_0x177b('0x2f'),_0x177b('0x1e'),_0x177b('0x37'),'tableBackgroundColor'],this[_0x177b('0x20')]=[_0x177b('0x32'),_0x177b('0x2a'),'tableCellBorderWidth','tableCellPadding',_0x177b('0x27'),_0x177b('0x6'),'tableCellBackgroundColor',_0x177b('0x17'),'tableCellVerticalAlignment'];}static get[_0x177b('0xe')](){return'TrackChangesTableProperties';}[_0x177b('0x13')](){const _0x1ca4e7=this['editor']['plugins']['get']('TrackChangesEditing');if(this[_0x177b('0x12')]['plugins'][_0x177b('0x4')](_0x177b('0x22'))){for(const _0x453015 of this[_0x177b('0xf')])_0x1ca4e7['enableCommand'](_0x453015,(_0x20feeb,_0x1f87ef)=>{const _0xe01cab=this[_0x177b('0x12')]['model'][_0x177b('0x1f')]['selection'][_0x177b('0x14')]()[_0x177b('0x11')](_0x177b('0x16'));this[_0x177b('0x7')](_0x453015,[_0xe01cab],this[_0x177b('0xf')],_0x177b('0xf'),_0x20feeb,_0x1f87ef);});_0x1ca4e7['_suggestionFactory'][_0x177b('0x26')](_0x177b('0xd'),_0x177b('0xf'),_0x177b('0x34'),_0x1ca4e7[_0x177b('0x33')]['getSuggestionCallback'](_0x177b('0xd'),null,_0x177b('0x5'))),_0x1ca4e7[_0x177b('0x33')]['registerCustomCallback'](_0x177b('0xd'),_0x177b('0xf'),'discard',(_0x4e01a2,_0x2249fa)=>this[_0x177b('0x10')](this['tableProperties'],_0x4e01a2,_0x2249fa)),_0x1ca4e7[_0x177b('0x33')][_0x177b('0x26')](_0x177b('0xd'),_0x177b('0xf'),'join',()=>!0x1);}if(this[_0x177b('0x12')][_0x177b('0x2c')][_0x177b('0x4')](_0x177b('0x24'))){for(const _0x4a4b9b of this['tableCellProperties'])_0x1ca4e7[_0x177b('0xb')](_0x4a4b9b,(_0x16df2d,_0x4d904f)=>{const _0x329a9b=this[_0x177b('0x12')][_0x177b('0x2c')]['get'](_0x177b('0x15'))[_0x177b('0x9')](this[_0x177b('0x12')][_0x177b('0x8')][_0x177b('0x1f')][_0x177b('0x1b')]);this['_handlePropertyChange'](_0x4a4b9b,_0x329a9b,this['tableCellProperties'],_0x177b('0x20'),_0x16df2d,_0x4d904f);});_0x1ca4e7[_0x177b('0x33')]['registerCustomCallback']('formatBlock',_0x177b('0x20'),_0x177b('0x34'),_0x1ca4e7['_suggestionFactory'][_0x177b('0x1c')](_0x177b('0xd'),null,_0x177b('0x5'))),_0x1ca4e7[_0x177b('0x33')][_0x177b('0x26')](_0x177b('0xd'),_0x177b('0x20'),_0x177b('0x5'),(_0x442077,_0x300da0)=>this[_0x177b('0x10')](this[_0x177b('0x20')],_0x442077,_0x300da0)),_0x1ca4e7[_0x177b('0x33')][_0x177b('0x26')](_0x177b('0xd'),_0x177b('0x20'),_0x177b('0x28'),()=>!0x1);}_0x1ca4e7[_0x177b('0x18')]['registerDescriptionCallback'](_0x2c53a3=>this[_0x177b('0x0')](_0x2c53a3));}['_handlePropertyChange'](_0x490a91,_0x2daf66,_0x1f4854,_0x489776,_0x4a36e9,_0x19058b){const _0x3a36a1=this[_0x177b('0x12')][_0x177b('0x2c')]['get']('TrackChangesEditing');this[_0x177b('0x12')][_0x177b('0x8')]['enqueueChange'](_0x19058b[_0x177b('0x31')],()=>{for(const _0x5c9154 of _0x2daf66){if(this[_0x177b('0x25')](_0x5c9154,_0x489776))_0x4a36e9(_0x19058b);else{const _0x303b63={};for(const _0x45b7da of _0x1f4854){const _0x215236=_0x5c9154['getAttribute'](_0x45b7da);void 0x0!==_0x215236&&(_0x303b63[_0x45b7da]=_0x215236);}_0x4a36e9(_0x19058b),_0x3a36a1[_0x177b('0x21')](_0x5c9154,{'commandParams':[_0x303b63]},[],_0x489776);}}});}['handleDiscardAction'](_0x202051,_0x316abe,_0x20d156){const _0x35cc0e=_0x316abe[0x0][_0x177b('0x1a')][_0x177b('0x1')],_0x307dd3=_0x20d156[_0x177b('0x38')][0x0];this[_0x177b('0x12')][_0x177b('0x8')][_0x177b('0x3')](_0x4aad8d=>{for(const _0x4c3af5 of _0x202051)void 0x0!==_0x307dd3[_0x4c3af5]?_0x4aad8d['setAttribute'](_0x4c3af5,_0x307dd3[_0x4c3af5],_0x35cc0e):_0x4aad8d[_0x177b('0xc')](_0x4c3af5,_0x35cc0e);});}['handleSuggestionDescription'](_0x127b82){if(_0x127b82['data'])switch(_0x127b82[_0x177b('0x1d')]){case _0x177b('0xf'):return{'type':_0x177b('0x29'),'content':_0x2c2be2(this['editor'][_0x177b('0x2e')],_0x177b('0x35'))};case _0x177b('0x20'):return{'type':_0x177b('0x29'),'content':_0x2c2be2(this[_0x177b('0x12')][_0x177b('0x2e')],_0x177b('0x2d'))};}}[_0x177b('0x25')](_0x310451,_0xa79fec){const _0x148739=this[_0x177b('0x12')][_0x177b('0x2c')][_0x177b('0xa')](_0x177b('0x2'));for(const _0x593771 of _0x148739[_0x177b('0x36')]({'skipNotAttached':!0x0})){const _0x5a9fda=_0x593771[_0x177b('0x19')]();if(_0x593771['subType']===_0xa79fec&&_0x5a9fda===_0x310451)return _0x593771;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4adf=['afterInit','enableCommand','get','Template','plugins','has','editor'];(function(_0xbd4c88,_0x4adf77){const _0x49b13d=function(_0x5743ca){while(--_0x5743ca){_0xbd4c88['push'](_0xbd4c88['shift']());}};_0x49b13d(++_0x4adf77);}(_0x4adf,0x95));const _0x49b1=function(_0xbd4c88,_0x4adf77){_0xbd4c88=_0xbd4c88-0x0;let _0x49b13d=_0x4adf[_0xbd4c88];return _0x49b13d;};import{Plugin as _0x57925f}from'ckeditor5/src/core';export default class yt extends _0x57925f{[_0x49b1('0x5')](){const _0x43e49d=this[_0x49b1('0x4')];_0x43e49d[_0x49b1('0x2')][_0x49b1('0x3')](_0x49b1('0x1'))&&_0x43e49d[_0x49b1('0x2')][_0x49b1('0x0')]('TrackChangesEditing')[_0x49b1('0x6')]('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd8ca=['suggestion','forward','plugins','title-content','document','from','getNearestSelectionRange','newRange','end','registerPostFixer','get','start','ELEMENT_TITLE','updateMarker','nodeBefore','registerElementLabel','isCollapsed','schema','differ','editor','Title','removeMarker','model','isEqual','createRange','locale','element'];(function(_0x5572ad,_0xd8ca88){const _0x103b28=function(_0x94ed98){while(--_0x94ed98){_0x5572ad['push'](_0x5572ad['shift']());}};_0x103b28(++_0xd8ca88);}(_0xd8ca,0x1cb));const _0x103b=function(_0x5572ad,_0xd8ca88){_0x5572ad=_0x5572ad-0x0;let _0x103b28=_0xd8ca[_0x5572ad];return _0x103b28;};import{Plugin as _0x21ec4b}from'ckeditor5/src/core';import{getTranslation as _0x120cf6}from'../utils/common-translations';export default class St extends _0x21ec4b{['afterInit'](){const _0x1a432c=this[_0x103b('0x13')];if(!_0x1a432c[_0x103b('0x2')]['has'](_0x103b('0x14')))return;const _0x4b81a1=_0x1a432c[_0x103b('0x2')][_0x103b('0xa')]('TrackChangesEditing');_0x4b81a1['_descriptionFactory'][_0x103b('0xf')](_0x103b('0x3'),()=>_0x120cf6(_0x1a432c[_0x103b('0x19')],_0x103b('0xc'))),_0x1a432c['model'][_0x103b('0x4')][_0x103b('0x9')](_0x245b8b=>{let _0x2cee8f=!0x1;const _0x2f0c4e=Array[_0x103b('0x5')](_0x1a432c[_0x103b('0x16')][_0x103b('0x4')][_0x103b('0x12')]['getChangedMarkers']());for(const {name:_0x2e5bdb,data:_0x4a46ac}of _0x2f0c4e){const {group:_0x14b26a}=_0x4b81a1['_splitMarkerName'](_0x2e5bdb);if(_0x103b('0x0')!==_0x14b26a||!_0x4a46ac[_0x103b('0x7')])continue;const _0xc5695e=_0x4a46ac[_0x103b('0x7')],_0x31df77=_0xc5695e[_0x103b('0x8')][_0x103b('0xe')];if(!_0x31df77||!_0x31df77['is'](_0x103b('0x1a'),_0x103b('0x3')))continue;if(!_0xc5695e[_0x103b('0xb')]['isTouching'](_0xc5695e[_0x103b('0x8')]))continue;const _0x2d2ff5=_0x1a432c[_0x103b('0x16')][_0x103b('0x11')][_0x103b('0x6')](_0xc5695e[_0x103b('0x8')],_0x103b('0x1'));if(_0x2d2ff5&&_0x2d2ff5[_0x103b('0x10')]){const _0x558598=_0x245b8b[_0x103b('0x18')](_0xc5695e['start'],_0x2d2ff5['start']);_0x558598[_0x103b('0x17')](_0xc5695e)||(_0x245b8b[_0x103b('0xd')](_0x2e5bdb,{'range':_0x558598}),_0x2cee8f=!0x0);}_0x2cee8f||(_0x245b8b[_0x103b('0x15')](_0x2e5bdb),_0x2cee8f=!0x0);}return _0x2cee8f;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5070=['plugins','editor','enableCommand','TrackChangesEditing','redo','UndoEditing','afterInit'];(function(_0x542971,_0x50703c){const _0x31dd56=function(_0x2d2bce){while(--_0x2d2bce){_0x542971['push'](_0x542971['shift']());}};_0x31dd56(++_0x50703c);}(_0x5070,0x1c5));const _0x31dd=function(_0x542971,_0x50703c){_0x542971=_0x542971-0x0;let _0x31dd56=_0x5070[_0x542971];return _0x31dd56;};import{Plugin as _0x14a7a3}from'ckeditor5/src/core';export default class It extends _0x14a7a3{[_0x31dd('0x1')](){const _0x55378a=this[_0x31dd('0x3')],_0x3726e4=_0x55378a['plugins']['get'](_0x31dd('0x5'));_0x55378a[_0x31dd('0x2')]['has'](_0x31dd('0x0'))&&(_0x3726e4[_0x31dd('0x4')]('undo'),_0x3726e4[_0x31dd('0x4')](_0x31dd('0x6')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4814=['toViewPosition','model','start','markerName','name','nextSibling','previousPosition','test','element','type','toViewElement','getCustomProperty','isAtEnd','getAttribute','getItems','markerRange','parent','activeMarkers','push','plugins','elementEnd','insert','listIndent','writer','ck-suggestion-marker-','mapper','addHighlight','hasAttribute','getWalker','isLimit','isBlock','includes','ck-suggestion-marker--active','isContent','createUIElement','consumable','TrackChangesEditing'];(function(_0x3bc996,_0x481445){const _0x58ed5c=function(_0x1140da){while(--_0x1140da){_0x3bc996['push'](_0x3bc996['shift']());}};_0x58ed5c(++_0x481445);}(_0x4814,0x15f));const _0x58ed=function(_0x3bc996,_0x481445){_0x3bc996=_0x3bc996-0x0;let _0x58ed5c=_0x4814[_0x3bc996];return _0x58ed5c;};export function getRangesWithAttribute(_0x215df3,_0x393e5c,_0x26539e){const _0x368f50=[];for(const _0x25b7d1 of _0x393e5c[_0x58ed('0x21')]())_0x25b7d1[_0x58ed('0x9')](_0x215df3)&&_0x368f50[_0x58ed('0x0')](_0x26539e['createRangeOn'](_0x25b7d1));return _0x368f50;}export function getElementsAffectedByListItemRename(_0x51d9e8){const _0x3f8fef=[];if(_0x51d9e8['is'](_0x58ed('0x1b'),'listItem')){let _0x347c27=_0x51d9e8[_0x58ed('0x18')];for(;_0x347c27&&_0x347c27['is']('element','listItem')&&_0x347c27[_0x58ed('0x20')](_0x58ed('0x4'))>0x0;)_0x3f8fef[_0x58ed('0x0')](_0x347c27),_0x347c27=_0x347c27[_0x58ed('0x18')];}return _0x3f8fef;}export function downcastSplitMergeMarker(_0x4f8881,_0x42ed81,{showActiveMarker:_0x3b511f=!0x0}={}){const _0x4b8278=_0x4f8881[_0x58ed('0x1')]['get'](_0x58ed('0x12'));return(_0x48931e,_0x5da9ea,_0x77f771)=>{if(!_0x77f771[_0x58ed('0x11')][_0x58ed('0x1a')](_0x5da9ea[_0x58ed('0x22')],_0x48931e[_0x58ed('0x17')]))return;const _0x177319=_0x5da9ea['markerRange'][_0x58ed('0xa')](),_0x59b1d0=_0x5da9ea[_0x58ed('0x22')][_0x58ed('0x15')],_0x5590d8=_0x4f8881[_0x58ed('0x14')]['schema'];let _0x25f843=null,_0x5b0c87=null,_0x2acefd=!0x1,_0x2beb7f=!0x1;for(const _0x2ff5a1 of _0x177319){const _0xeba980=_0x2ff5a1['item'];_0x2acefd=_0x2acefd||_0x5590d8[_0x58ed('0xf')](_0xeba980);const _0x577207=_0x77f771[_0x58ed('0x7')][_0x58ed('0x1d')](_0xeba980);if(_0x577207&&_0x577207[_0x58ed('0x1e')](_0x58ed('0x8')))return;_0x58ed('0x2')==_0x2ff5a1[_0x58ed('0x1c')]&&(_0x5590d8[_0x58ed('0xc')](_0xeba980)&&!_0x5590d8[_0x58ed('0xb')](_0xeba980)&&(_0xeba980[_0x58ed('0x18')]||_0x59b1d0[_0x58ed('0x1f')]?_0x25f843&&_0x25f843[_0x58ed('0x23')]==_0xeba980||(_0x25f843=_0xeba980,_0x82027d(_0x2ff5a1[_0x58ed('0x19')]),_0x2beb7f=!0x0):_0x5b0c87=_0x5b0c87||_0x2ff5a1[_0x58ed('0x19')]));}function _0x82027d(_0x3670be){const _0xc789b=_0x77f771[_0x58ed('0x5')][_0x58ed('0x10')]('span',{'class':_0x58ed('0x6')+_0x42ed81}),_0x48750d=_0x77f771['mapper'][_0x58ed('0x13')](_0x3670be);_0x3b511f&&_0x4b8278[_0x58ed('0x24')][_0x58ed('0xd')](_0x5da9ea[_0x58ed('0x16')])&&_0x77f771[_0x58ed('0x5')]['addClass'](_0x58ed('0xe'),_0xc789b),_0x77f771['writer'][_0x58ed('0x3')](_0x48750d,_0xc789b),_0x77f771[_0x58ed('0x7')]['bindElementToMarker'](_0xc789b,_0x5da9ea[_0x58ed('0x16')]);}_0x2acefd||_0x2beb7f||!_0x5b0c87||_0x82027d(_0x5b0c87);};}
|