@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230710.1 → 0.0.0-nightly-20230712.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 _0x5089=['entries','find','_descriptionFactory','remove','tablePasteColumn','endColumn','previous','tableCellBorderColor','insertionRanges','insertContent','suggestionLoaded','removeColumns','dataDowncast','locale','registerCustomCallback','register','getChild','previousSibling','editingDowncast','map','createRangeIn','_getCoordsForCells','getShiftedBy','getColumnIndexes','getAllAdjacentSuggestions','has','add','row','subType','tableCellHorizontalAlignment','options','join','tablePaste','markerAttributes','fromEntries','createRangeOn','rowInsertionRanges','for','forceDefaultExecution','removeRows','endRow','high','cells','tablePasteCell','discard','tableCellSuggestion','author','redo','document','getSuggestion','some','root','trackChanges','getRange','return','table','requires','newRange','*Replace\x20table\x20cells*','tableCellBackgroundColor','suggestion:formatBlock:tablePasteCell','set','markerToHighlight','TableClipboard','registerPostFixer','setAttributes','commands','ck-suggestion-marker--active','removeMarkers','getSuggestions','suggestion-td','findAncestor','markMultiRangeInsertion','getRows','unwrap','deletion','includes','markMultiRangeDeletion','conversion','differ','filter','listenTo','getChangedMarkers','editor','model','activeMarkers','paragraph','wrap','markerName','columnInsertionIndexes','insert','name','type','Users','attributes','documentSelection','createTableWalker','getTableIfOnlyTableInContent','hasSuggestion','isEmpty','get','_splitMarkerName','createElement','content','isInContent','accept','stop','rowInsertionIndexes','getSuggestionCallback','removeMarker','_isForcedDefaultExecutionBlock','suggestionUnloaded','formatBlock','end','element','deletionRanges','_suggestionFactory','getColumns','tableCellBorderWidth','suggestion','insertion','push','from','position','getMarkers','length','_replaceTableSlotCell','columnInsertionRanges','markMultiRangeBlockFormat','tableCell','oldRange','columns','batch','view','containsRange','plugins','getContainedElement','tablePasteRow','value','getSelectionAffectedTableCells','change','registerDescriptionCallback','startsWith','tablePasteChainId','TrackChangesEditing','first','reduce','selection','low','next','cell','nodeAfter','isEqual','getRowIndexes','_tablePostFixingSubtypes','fill','TableUtils','column'];(function(_0x1e0bfd,_0x5089ed){const _0x4ecbe0=function(_0x311c9c){while(--_0x311c9c){_0x1e0bfd['push'](_0x1e0bfd['shift']());}};_0x4ecbe0(++_0x5089ed);}(_0x5089,0xe2));const _0x4ecb=function(_0x1e0bfd,_0x5089ed){_0x1e0bfd=_0x1e0bfd-0x0;let _0x4ecbe0=_0x5089[_0x1e0bfd];return _0x4ecbe0;};import{getTranslation as _0x16138d}from'../utils/common-translations';import{Plugin as _0x476fac}from'ckeditor5/src/core';import{uid as _0x87425d,priorities as _0x164959}from'ckeditor5/src/utils';import _0x3cafe6 from'./table';const le=[_0x4ecb('0x32'),_0x4ecb('0x61'),'tableCellBorderStyle',_0x4ecb('0x77'),'tableCellVerticalAlignment',_0x4ecb('0x95'),'tableCellPadding'],ae=Object['fromEntries'](le['map'](_0x302ca0=>[_0x302ca0,null]));export default class kt extends _0x476fac{static get[_0x4ecb('0x92')](){return[_0x3cafe6];}['afterInit'](){const _0x164839=this[_0x4ecb('0xf')];if(!_0x164839[_0x4ecb('0x43')][_0x4ecb('0x73')](_0x4ecb('0x99')))return;const _0x6a7ab5=_0x164839['plugins'][_0x4ecb('0x20')](_0x4ecb('0x4c')),_0x576c8e=_0x164839[_0x4ecb('0x43')][_0x4ecb('0x20')](_0x4ecb('0x58')),_0x414cdd=_0x164839[_0x4ecb('0x43')]['get'](_0x3cafe6),_0x4b761c=_0x164839[_0x4ecb('0x43')][_0x4ecb('0x20')](_0x4ecb('0x99'));_0x414cdd[_0x4ecb('0x56')][_0x4ecb('0x35')]('tablePasteRow',_0x4ecb('0x5e')),_0x164839[_0x4ecb('0x10')]['schema'][_0x4ecb('0x69')](_0x4ecb('0x87'),{'allowIn':_0x4ecb('0x3d'),'allowContentOf':_0x4ecb('0x3d'),'isLimit':!0x0}),_0x164839[_0x4ecb('0xa')]['elementToElement']({'model':'tableCellSuggestion','view':_0x4ecb('0x2')});let _0x4d53af=null;_0x164839[_0x4ecb('0x10')]['on'](_0x4ecb('0x63'),(_0x146738,_0x4e417b)=>{const [_0x4839e9,_0x4afdbe]=_0x4e417b,_0x23ae51=_0x4e417b[_0x4e417b['length']-0x1];_0x23ae51&&_0x23ae51[_0x4ecb('0x80')]||_0x6a7ab5[_0x4ecb('0x2a')]||this[_0x4ecb('0xf')][_0x4ecb('0x9c')]['get'](_0x4ecb('0x8e'))[_0x4ecb('0x46')]&&function(_0x2d0cb7,_0x402e9b,_0x4bba10,_0x4361df,_0x57d330){if(_0x402e9b&&!_0x402e9b['is'](_0x4ecb('0x1b')))return!0x1;const _0x4c31bc=_0x57d330[_0x4ecb('0x1d')](_0x2d0cb7,_0x4bba10);if(!_0x4c31bc||!fe(_0x4c31bc,void 0x0,_0x4361df))return!0x1;const _0x510017=_0x4361df[_0x4ecb('0x47')](_0x4bba10[_0x4ecb('0x8a')][_0x4ecb('0x4f')]);if(!_0x510017[_0x4ecb('0x39')])return!0x1;const _0x2b735f=_0x510017[0x0][_0x4ecb('0x3')](_0x4ecb('0x91')),_0x2a1940=_0x4361df[_0x4ecb('0x55')](_0x510017),_0x52dcb5=_0x4361df[_0x4ecb('0x71')](_0x510017),_0x557623={'startRow':_0x2a1940[_0x4ecb('0x4d')],'endRow':_0x2a1940['last'],'startColumn':_0x52dcb5[_0x4ecb('0x4d')],'endColumn':_0x52dcb5['last']};return 0x1==_0x510017['length']&&(_0x557623[_0x4ecb('0x82')]+=_0x4361df[_0x4ecb('0x5')](_0x4c31bc)-0x1,_0x557623[_0x4ecb('0x5f')]+=_0x4361df[_0x4ecb('0x31')](_0x4c31bc)-0x1),fe(_0x2b735f,_0x557623,_0x4361df);}(_0x4839e9,_0x4afdbe,_0x164839[_0x4ecb('0x10')],_0x576c8e,_0x4b761c)&&(_0x146738[_0x4ecb('0x26')](),_0x4d53af={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x164839['model'][_0x4ecb('0x48')](()=>{_0x164839[_0x4ecb('0x10')]['insertContent'](_0x4e417b[0x0],_0x4e417b[0x1],_0x4e417b[0x2],{'forceDefaultExecution':!0x0});const _0x27cd1d=_0x87425d(),{rowInsertionRanges:_0x223895,columnInsertionRanges:_0x3a9268,insertionRanges:_0xe5ffbc,deletionRanges:_0x341a76,cells:_0x4dcd17}=_0x4d53af;_0x223895[_0x4ecb('0x39')]&&_0x6a7ab5[_0x4ecb('0x4')](_0x223895,_0x4ecb('0x45'),{'tablePasteChainId':_0x27cd1d}),_0x3a9268[_0x4ecb('0x39')]&&_0x6a7ab5[_0x4ecb('0x4')](_0x3a9268,'tablePasteColumn',{'tablePasteChainId':_0x27cd1d}),_0xe5ffbc[_0x4ecb('0x39')]&&_0x6a7ab5[_0x4ecb('0x4')](_0xe5ffbc,_0x4ecb('0x7a'),{'tablePasteChainId':_0x27cd1d,'skipNestingCheck':!0x0}),_0x341a76[_0x4ecb('0x39')]&&_0x6a7ab5[_0x4ecb('0x9')](_0x341a76,'tablePaste',{'tablePasteChainId':_0x27cd1d,'skipNestingCheck':!0x0});const _0xae9f0f=_0x6a7ab5[_0x4ecb('0x3c')](_0x4dcd17[_0x4ecb('0x6d')](({element:_0x1202bc})=>_0x1202bc),{'formatGroupId':_0x87425d()},[],_0x4ecb('0x85'),{'tablePasteChainId':_0x27cd1d});if(_0xae9f0f){const _0x4512d4=_0xae9f0f[_0x4ecb('0x38')](),_0x19b355=[];for(const {element:_0x4651ff,attributes:_0x18fdb7}of _0x4dcd17){if(!_0x18fdb7)continue;const _0x2bb905=_0x164839['model'][_0x4ecb('0x7d')](_0x4651ff),_0x6d825b=_0x4512d4[_0x4ecb('0x5b')](_0x2e7c73=>_0x2e7c73[_0x4ecb('0x8f')]()[_0x4ecb('0x54')](_0x2bb905));_0x6d825b&&_0x19b355['push']([_0x6d825b[_0x4ecb('0x17')],_0x18fdb7]);}_0x19b355[_0x4ecb('0x39')]&&_0xae9f0f['setAttribute'](_0x4ecb('0x7b'),Object[_0x4ecb('0x7c')](_0x19b355));}_0x4d53af=null;}));},{'priority':_0x164959[_0x4ecb('0x83')]+0xa}),_0x164839[_0x4ecb('0x43')]['get']('TableClipboard')['on'](_0x4ecb('0x3a'),(_0x44d516,_0x4b88ed)=>{const [_0x264136,_0x108904,,_0x3e4901]=_0x4b88ed;if(!_0x4d53af)return;_0x44d516[_0x4ecb('0x26')]();const _0x2d6dad=_0x264136[_0x4ecb('0x52')],_0x3061bc=_0x108904,_0xb90857=ce(_0x2d6dad),_0x1741a7=ce(_0x3061bc);_0x44d516[_0x4ecb('0x90')]=_0x2d6dad;let _0x2aceeb=null,_0x1a0cf8=null;if(_0x1741a7||_0xb90857){if(_0xb90857&&!_0x1741a7){_0x3e4901[_0x4ecb('0x5d')](_0x2d6dad[_0x4ecb('0x6a')](0x0));for(const _0x3c7b64 of Array[_0x4ecb('0x36')](_0x3061bc['getChildren']()))_0x3e4901['insert'](_0x3c7b64,_0x2d6dad,_0x4ecb('0x2d'));const _0x1368b2=_0x4d53af[_0x4ecb('0x27')]['includes'](_0x264136[_0x4ecb('0x75')]),_0x47fa4a=_0x4d53af[_0x4ecb('0x15')][_0x4ecb('0x8')](_0x264136[_0x4ecb('0x59')]);_0x1368b2||_0x47fa4a||(_0x2aceeb=_0x3e4901['createRangeIn'](_0x2d6dad));}else _0x1741a7&&!_0xb90857&&(_0x1a0cf8=_0x3e4901[_0x4ecb('0x6e')](_0x2d6dad));}else{const _0x21e5f8=_0x3e4901[_0x4ecb('0x22')]('tableCellSuggestion'),_0xa8e6a9=_0x3e4901[_0x4ecb('0x22')](_0x4ecb('0x87'));_0x3e4901[_0x4ecb('0x13')](_0x3e4901['createRangeIn'](_0x2d6dad),_0xa8e6a9),_0x3e4901[_0x4ecb('0x16')](_0x21e5f8,_0x2d6dad,0x0);for(const _0x4e3e1c of Array[_0x4ecb('0x36')](_0x3061bc['getChildren']()))_0x3e4901[_0x4ecb('0x16')](_0x4e3e1c,_0x21e5f8,'end');_0x2aceeb=_0x3e4901[_0x4ecb('0x7d')](_0x21e5f8),_0x1a0cf8=_0x3e4901['createRangeOn'](_0xa8e6a9);}const _0x4cb5b8=Array[_0x4ecb('0x36')](_0x3061bc['getAttributes']())[_0x4ecb('0xc')](([_0x5e9a3f])=>le['includes'](_0x5e9a3f));_0x4d53af[_0x4ecb('0x84')][_0x4ecb('0x35')]({'element':_0x2d6dad,'attributes':_0x4cb5b8['length']?Object[_0x4ecb('0x7c')](_0x4cb5b8):null}),_0x2aceeb&&_0x4d53af[_0x4ecb('0x62')][_0x4ecb('0x35')](_0x2aceeb),_0x1a0cf8&&_0x4d53af[_0x4ecb('0x2f')][_0x4ecb('0x35')](_0x1a0cf8);},{'priority':_0x4ecb('0x83')}),_0x576c8e['on']('insertColumns',(_0x330e11,_0x501b67)=>{const [_0x2d6d67,_0x321cca={}]=_0x501b67;if(!_0x4d53af)return;const _0x4f2179=_0x321cca['at']||0x0,_0x187b17=_0x321cca[_0x4ecb('0x3f')]||0x1;_0x4d53af['columnInsertionIndexes']=new Array(_0x187b17)[_0x4ecb('0x57')](_0x4f2179)[_0x4ecb('0x6d')]((_0x21c5ad,_0x135183)=>_0x21c5ad+_0x135183);for(const {cell:_0xb7ac89}of _0x576c8e['createTableWalker'](_0x2d6d67,{'startColumn':_0x4f2179,'endColumn':_0x4f2179+_0x187b17-0x1}))_0x4d53af[_0x4ecb('0x3b')][_0x4ecb('0x35')](_0x164839[_0x4ecb('0x10')][_0x4ecb('0x7d')](_0xb7ac89));},{'priority':_0x4ecb('0x50')}),_0x576c8e['on']('insertRows',(_0x51d6e8,_0x39e4eb)=>{const [_0x140abc,_0x12e30f={}]=_0x39e4eb;if(!_0x4d53af)return;const _0x104f28=_0x12e30f['at']||0x0,_0x24621a=_0x12e30f['rows']||0x1;_0x4d53af[_0x4ecb('0x27')]=new Array(_0x24621a)['fill'](_0x104f28)[_0x4ecb('0x6d')]((_0x465f7a,_0x297024)=>_0x465f7a+_0x297024);for(const {cell:_0x19cc96}of _0x576c8e[_0x4ecb('0x1c')](_0x140abc,{'startRow':_0x104f28,'endRow':_0x104f28+_0x24621a-0x1}))_0x4d53af[_0x4ecb('0x7e')]['push'](_0x164839['model'][_0x4ecb('0x7d')](_0x19cc96));},{'priority':_0x4ecb('0x50')}),_0x6a7ab5[_0x4ecb('0x5c')][_0x4ecb('0x49')](_0x202154=>{if(_0x202154[_0x4ecb('0x76')]&&_0x202154[_0x4ecb('0x76')][_0x4ecb('0x4a')](_0x4ecb('0x7a')))return _0x202154['previous']?{}:{'type':'insertion','content':_0x16138d(_0x164839[_0x4ecb('0x67')],_0x4ecb('0x94'))};});const _0x1795de=()=>{};for(const _0x44bdff of[_0x4ecb('0x7a'),_0x4ecb('0x5e'),_0x4ecb('0x45'),'tablePasteCell'])_0x6a7ab5[_0x4ecb('0x30')]['registerCustomCallback'](_0x4ecb('0x34'),_0x44bdff,_0x4ecb('0x79'),_0x1795de),_0x6a7ab5[_0x4ecb('0x30')][_0x4ecb('0x68')]('deletion',_0x44bdff,_0x4ecb('0x79'),_0x1795de);_0x6a7ab5[_0x4ecb('0x30')][_0x4ecb('0x68')]('formatBlock',_0x4ecb('0x85'),_0x4ecb('0x86'),_0x1795de),_0x6a7ab5[_0x4ecb('0x30')][_0x4ecb('0x68')]('formatBlock',_0x4ecb('0x85'),_0x4ecb('0x25'),(_0x203134,_0x498d44,_0xad307f)=>{const _0x139083=_0x203134[_0x4ecb('0x6d')](_0x24c38d=>_0x24c38d[_0x4ecb('0x44')]())[_0x4ecb('0xc')](_0x92b7c1=>_0x92b7c1),_0x13027f=new Map(_0x139083['map'](_0x31d649=>[_0x31d649,null]));if(_0x4d53af)for(const {element:_0x3245b6,attributes:_0x3f59f6}of _0x4d53af[_0x4ecb('0x84')])_0x3f59f6&&_0x13027f[_0x4ecb('0x97')](_0x3245b6,_0x3f59f6);else{if(_0xad307f&&_0xad307f[_0x4ecb('0x7b')])for(const [_0x3b0741,_0xaaa5fd]of Object[_0x4ecb('0x5a')](_0xad307f['markerAttributes'])){const _0x1dee48=_0x164839[_0x4ecb('0x10')]['markers'][_0x4ecb('0x20')](_0x3b0741),_0x323601=_0x1dee48?_0x1dee48[_0x4ecb('0x8f')]()[_0x4ecb('0x44')]():null;_0x323601&&_0x13027f[_0x4ecb('0x97')](_0x323601,_0xaaa5fd);}}_0x164839['model']['change'](_0x3d7dcc=>{for(const [_0x46b7e7,_0x3a4900]of _0x13027f)_0x3d7dcc[_0x4ecb('0x9b')]({...ae,..._0x3a4900},_0x46b7e7);});});const _0x22d332=(_0x1034a5,_0x3e9350)=>{_0x6a7ab5[_0x4ecb('0x30')]['registerCustomCallback'](_0x1034a5,_0x4ecb('0x7a'),_0x3e9350,(_0x418ea2,_0x272c6f,_0x5dad84)=>{_0x164839[_0x4ecb('0x10')][_0x4ecb('0x48')](_0x4e7cb8=>{const _0x5f2fc9=[];for(const _0x3f72c6 of _0x418ea2){const _0x52f17a=_0x3f72c6['start'][_0x4ecb('0x53')];_0x52f17a['is'](_0x4ecb('0x2e'),'tableCellSuggestion')&&_0x5f2fc9[_0x4ecb('0x35')](_0x52f17a);}_0x6a7ab5['_suggestionFactory'][_0x4ecb('0x28')](_0x1034a5,null,_0x3e9350)(_0x418ea2,_0x272c6f,_0x5dad84);for(const _0x15a9bd of _0x5f2fc9)'$graveyard'!=_0x15a9bd[_0x4ecb('0x8d')]['rootName']&&_0x4e7cb8[_0x4ecb('0x6')](_0x15a9bd);});});};_0x22d332('insertion',_0x4ecb('0x25')),_0x22d332('insertion',_0x4ecb('0x86')),_0x22d332(_0x4ecb('0x7'),_0x4ecb('0x25')),_0x22d332(_0x4ecb('0x7'),'discard'),_0x6a7ab5[_0x4ecb('0x30')][_0x4ecb('0x68')]('insertion',_0x4ecb('0x45'),_0x4ecb('0x86'),_0x482775=>{const _0x19d207=_0x482775['map'](_0x5d5397=>_0x5d5397[_0x4ecb('0x44')]()),_0x1b55cb=_0x19d207[0x0][_0x4ecb('0x3')]('table'),{minRow:_0x2fe0c9,maxRow:_0x4e2a87}=_0x414cdd['_getCoordsForCells'](_0x19d207);_0x576c8e[_0x4ecb('0x81')](_0x1b55cb,{'at':_0x2fe0c9,'rows':_0x4e2a87-_0x2fe0c9+0x1});}),_0x6a7ab5[_0x4ecb('0x30')][_0x4ecb('0x68')](_0x4ecb('0x34'),_0x4ecb('0x5e'),_0x4ecb('0x86'),_0x595c00=>{const _0x1c62ef=_0x595c00[_0x4ecb('0x6d')](_0x4fe207=>_0x4fe207[_0x4ecb('0x44')]()),_0x5e8ef6=_0x1c62ef[0x0][_0x4ecb('0x3')](_0x4ecb('0x91')),{minColumn:_0x1b1206,maxColumn:_0x291b32}=_0x414cdd[_0x4ecb('0x6f')](_0x1c62ef);_0x576c8e[_0x4ecb('0x65')](_0x5e8ef6,{'at':_0x1b1206,'columns':_0x291b32-_0x1b1206+0x1});});const _0x50acc3=(_0xbcb567,_0xebce84)=>{if(!_0xebce84['subType']||!_0xebce84['subType'][_0x4ecb('0x4a')](_0x4ecb('0x7a')))return;const _0x31bfee=_0xebce84['attributes'][_0x4ecb('0x4b')],_0x192d47=_0x6a7ab5[_0x4ecb('0x1')]()['filter'](_0x33e76a=>_0x33e76a[_0x4ecb('0x24')]&&_0x33e76a[_0x4ecb('0x1a')]&&_0x33e76a[_0x4ecb('0x1a')]['tablePasteChainId']==_0x31bfee);_0x192d47[_0x4ecb('0x39')]&&_0xebce84[_0x4ecb('0x72')]()[_0x4ecb('0x39')]!=_0x192d47[_0x4ecb('0x39')]&&_0x192d47[_0x4ecb('0x4e')]((_0xb15d6a,_0x1ca36c)=>(_0xb15d6a[_0x4ecb('0x51')]=_0x1ca36c,_0x1ca36c[_0x4ecb('0x60')]=_0xb15d6a,_0x1ca36c));};function _0x38e8ee(_0x471020,_0x56912c=!0x0){const {id:_0x22f01e}=_0x6a7ab5[_0x4ecb('0x21')](_0x471020[_0x4ecb('0x14')]),_0x3f2fe0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1cd13f=_0x6a7ab5[_0x4ecb('0x11')][_0x4ecb('0x8')](_0x471020[_0x4ecb('0x14')]);return _0x1cd13f&&_0x3f2fe0['push'](_0x4ecb('0x9d')),{'classes':_0x3f2fe0,'attributes':{'data-suggestion':_0x22f01e},'priority':_0x1cd13f&&_0x56912c?0xbc2:0xbb8};}_0x6a7ab5['on'](_0x4ecb('0x64'),_0x50acc3,{'priority':'high'}),_0x6a7ab5['on'](_0x4ecb('0x2b'),_0x50acc3,{'priority':_0x4ecb('0x83')}),_0x164839[_0x4ecb('0x10')]['document'][_0x4ecb('0x9a')](()=>{let _0x74d5b=!0x1;const _0x3d587d=Array['from'](_0x164839[_0x4ecb('0x10')]['document'][_0x4ecb('0xb')]['getChangedMarkers']());for(const {name:_0x3bf380,data:_0x4b11a5}of _0x3d587d){const {group:_0xab7f9b,type:_0x198bf9,id:_0x3f6dad}=_0x6a7ab5[_0x4ecb('0x21')](_0x3bf380);if(_0x4ecb('0x33')!=_0xab7f9b||_0x4ecb('0x7')!=_0x198bf9||_0x4b11a5[_0x4ecb('0x3e')])continue;if(!_0x6a7ab5[_0x4ecb('0x1e')](_0x3f6dad))continue;const _0x68ad3f=_0x6a7ab5[_0x4ecb('0x8b')](_0x3f6dad)['getRanges'](),_0x1173b0=_0x164839[_0x4ecb('0x43')]['get'](_0x4ecb('0x19'))['me'];for(const _0x1d3f8a of _0x6a7ab5[_0x4ecb('0x1')]()){if(!_0x1d3f8a['isInContent']||_0x1d3f8a[_0x4ecb('0x88')]!=_0x1173b0)continue;if(_0x4ecb('0x2c')!=_0x1d3f8a[_0x4ecb('0x18')]||'tablePasteCell'!=_0x1d3f8a['subType'])continue;if(_0x1d3f8a['getRanges']()['every'](_0x24fd4e=>_0x68ad3f[_0x4ecb('0x8c')](_0xe56f25=>_0xe56f25[_0x4ecb('0x42')](_0x24fd4e,!0x0))))for(const _0x232667 of _0x1d3f8a[_0x4ecb('0x72')]())_0x232667[_0x4ecb('0x24')]&&(_0x232667[_0x4ecb('0x86')](),_0x74d5b=!0x0);}}return _0x74d5b;}),_0x164839['model']['document'][_0x4ecb('0x9a')](_0x4e2ec5=>{const _0xcd6189=_0x164839[_0x4ecb('0x9c')][_0x4ecb('0x20')](_0x4ecb('0x89'));if(!_0xcd6189||!_0xcd6189['_createdBatches']['has'](_0x4e2ec5[_0x4ecb('0x40')]))return!0x1;let _0x108386=!0x1;const _0x51ff8c=_0x164839[_0x4ecb('0x43')][_0x4ecb('0x20')](_0x4ecb('0x19'))['me'],_0x2eb7bd=_0x164839[_0x4ecb('0x10')][_0x4ecb('0x8a')]['differ']['getChanges'](),_0x337209=Array[_0x4ecb('0x36')](_0x164839[_0x4ecb('0x10')][_0x4ecb('0x8a')]['differ'][_0x4ecb('0xe')]())['filter'](({name:_0x386486,data:_0x2de888})=>{const {group:_0x3be8fd,subType:_0x15566b,authorId:_0x21885a}=_0x6a7ab5[_0x4ecb('0x21')](_0x386486);return _0x4ecb('0x33')==_0x3be8fd&&_0x4ecb('0x7a')==_0x15566b&&_0x21885a==_0x51ff8c['id']&&!_0x2de888[_0x4ecb('0x3e')];});for(const _0x1d2f63 of _0x2eb7bd){if(_0x4ecb('0x16')!=_0x1d2f63[_0x4ecb('0x18')]||_0x4ecb('0x87')!=_0x1d2f63[_0x4ecb('0x17')]||0x1!=_0x1d2f63[_0x4ecb('0x39')])continue;const _0x2bd539=_0x4e2ec5['createRange'](_0x1d2f63[_0x4ecb('0x37')],_0x1d2f63[_0x4ecb('0x37')][_0x4ecb('0x70')](0x1));if(!_0x337209[_0x4ecb('0x5b')](({data:_0x384915})=>_0x384915[_0x4ecb('0x93')]['isEqual'](_0x2bd539)))for(const {name:_0x3131c1,data:_0x1abf86}of _0x337209)if(_0x2bd539['containsRange'](_0x1abf86['newRange'])){_0x4e2ec5['updateMarker'](_0x3131c1,{'range':_0x2bd539}),_0x108386=!0x0;break;}}return _0x108386;}),_0x164839[_0x4ecb('0x10')][_0x4ecb('0x8a')][_0x4ecb('0x9a')](_0x2e881d=>{let _0x4ed580=!0x1;const _0x402a92=_0x164839[_0x4ecb('0x43')]['get'](_0x4ecb('0x19'))['me'],_0x12e1df=_0x6a7ab5['getSuggestions']()[_0x4ecb('0xc')](_0x4cb62e=>_0x4cb62e[_0x4ecb('0x24')]&&_0x4cb62e['author']==_0x402a92),_0x3548a9=new Set(),_0x43df72=new Set();for(const _0x34bae3 of _0x12e1df)if(_0x4ecb('0x7a')==_0x34bae3['subType'])for(const _0x38ff22 of _0x34bae3[_0x4ecb('0x38')]()){const _0x276b19=_0x38ff22[_0x4ecb('0x8f')]()[_0x4ecb('0x44')]();if(_0x276b19){if(_0x276b19['is'](_0x4ecb('0x2e'),_0x4ecb('0x87'))&&ce(_0x276b19)){_0x34bae3[_0x4ecb('0x29')](_0x38ff22[_0x4ecb('0x17')]),_0x3548a9[_0x4ecb('0x74')](_0x276b19),_0x4ed580=!0x0;const _0x3f794b=_0x276b19['nextSibling'],_0x502438=_0x276b19[_0x4ecb('0x6b')],_0x244443=_0x3f794b&&_0x3f794b['is'](_0x4ecb('0x2e'),'tableCellSuggestion'),_0x51c933=_0x502438&&_0x502438['is']('element',_0x4ecb('0x87'));_0x244443&&!_0x3548a9[_0x4ecb('0x73')](_0x3f794b)&&_0x43df72[_0x4ecb('0x74')](_0x3f794b),_0x51c933&&!_0x3548a9[_0x4ecb('0x73')](_0x502438)&&_0x43df72[_0x4ecb('0x74')](_0x502438);}else _0x276b19['is'](_0x4ecb('0x2e'),_0x4ecb('0x12'))&&_0x276b19[_0x4ecb('0x1f')]&&(_0x34bae3['removeMarker'](_0x38ff22[_0x4ecb('0x17')]),_0x4ed580=!0x0);}}else{if(_0x4ecb('0x85')==_0x34bae3[_0x4ecb('0x76')]){if(!_0x34bae3[_0x4ecb('0x1a')]||!_0x34bae3[_0x4ecb('0x1a')][_0x4ecb('0x4b')])continue;const _0x2bd37e=_0x34bae3[_0x4ecb('0x1a')]['markerAttributes'];if(_0x2bd37e&&Object['keys'](_0x2bd37e)[_0x4ecb('0x39')])continue;const _0x6d0123=_0x34bae3['attributes'][_0x4ecb('0x4b')];let _0x3faf95=!0x0,_0x21842b=!0x0;for(const _0x4ce60e of _0x12e1df)if(_0x4ce60e['subType']&&_0x4ce60e[_0x4ecb('0x76')][_0x4ecb('0x4a')]('tablePaste')){if(!_0x4ce60e[_0x4ecb('0x1a')][_0x4ecb('0x4b')]){_0x21842b=!0x1;break;}if(_0x4ce60e['id']!=_0x34bae3['id']&&_0x4ce60e[_0x4ecb('0x1a')][_0x4ecb('0x4b')]==_0x6d0123){_0x3faf95=!0x1;break;}}_0x21842b&&_0x3faf95&&(_0x34bae3[_0x4ecb('0x0')](),_0x4ed580=!0x0);}}for(const _0x3b407f of _0x3548a9)_0x2e881d[_0x4ecb('0x5d')](_0x3b407f);for(const _0x9a06cc of _0x43df72)_0x2e881d[_0x4ecb('0x6')](_0x9a06cc);return _0x4ed580;}),_0x164839[_0x4ecb('0xa')][_0x4ecb('0x7f')](_0x4ecb('0x6c'))[_0x4ecb('0x98')]({'model':_0x4ecb('0x96'),'view':(_0x4db278,_0x2bad81)=>_0x38e8ee(_0x4db278),'converterPriority':_0x4ecb('0x83')}),_0x164839['conversion'][_0x4ecb('0x7f')](_0x4ecb('0x66'))['markerToHighlight']({'model':_0x4ecb('0x96'),'view':(_0x1670de,_0x196ed4)=>_0x196ed4[_0x4ecb('0x78')]['showSuggestionHighlights']?_0x38e8ee(_0x1670de,!0x1):null,'converterPriority':_0x4ecb('0x83')});const _0x4b9eef=_0x164839['editing'][_0x4ecb('0x41')];this[_0x4ecb('0xd')](_0x4b9eef['document'],'clipboardOutput',(_0x555884,_0x56d0f2)=>{const _0x57a77f=[];for(const _0x415d46 of _0x4b9eef['createRangeIn'](_0x56d0f2[_0x4ecb('0x23')])['getItems']())_0x415d46['is'](_0x4ecb('0x2e'),_0x4ecb('0x2'))&&_0x57a77f['push'](_0x415d46);_0x4b9eef['change'](_0x2d7d15=>{for(const _0x23bb80 of _0x57a77f)_0x2d7d15['move'](_0x2d7d15[_0x4ecb('0x6e')](_0x23bb80),_0x2d7d15['createPositionBefore'](_0x23bb80)),_0x2d7d15[_0x4ecb('0x5d')](_0x23bb80);});});}}function ce(_0x338af2){if(_0x338af2[_0x4ecb('0x1f')])return!0x0;const _0x39bb20=_0x338af2[_0x4ecb('0x6a')](0x0);return _0x39bb20['is'](_0x4ecb('0x2e'),_0x4ecb('0x12'))&&_0x39bb20[_0x4ecb('0x1f')];}function fe(_0x9fd21b,_0x2f84e4={},_0x3b9631){for(const {isAnchor:_0x3ff568,cellHeight:_0x11dd51,cellWidth:_0x47bad8}of _0x3b9631[_0x4ecb('0x1c')](_0x9fd21b,{'includeAllSlots':!0x0,..._0x2f84e4}))if(!_0x3ff568||0x1!=_0x11dd51||0x1!=_0x47bad8)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a9a=['getSuggestionCallback','getSelectedElement','markBlockFormat','author','plugins','get','editor','tableWidth','change','selection','model','data','format','getSuggestions','getAttribute','resizeColumnWidths','formatBlock','getTableColumnsWidths','handleResizeTableWidthCommand','_suggestionFactory','registerCustomCallback','discard','TableColumnResizeEditing','resizeTable','registerDescriptionCallback','locale','commandParams','bind','accept','getColumnGroupElement','Users'];(function(_0x2e97a3,_0x5a9a56){const _0x561155=function(_0x25ad94){while(--_0x25ad94){_0x2e97a3['push'](_0x2e97a3['shift']());}};_0x561155(++_0x5a9a56);}(_0x5a9a,0x127));const _0x5611=function(_0x2e97a3,_0x5a9a56){_0x2e97a3=_0x2e97a3-0x0;let _0x561155=_0x5a9a[_0x2e97a3];return _0x561155;};import{Plugin as _0x52cfd9}from'ckeditor5/src/core';import{getTranslation as _0x5bb01d}from'../utils/common-translations';export default class wt extends _0x52cfd9{['afterInit'](){if(!this[_0x5611('0x15')][_0x5611('0x13')]['has'](_0x5611('0x6')))return;const _0x52630f=this[_0x5611('0x15')][_0x5611('0x13')][_0x5611('0x14')]('TrackChangesEditing');_0x52630f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand'][_0x5611('0xb')](this)),_0x52630f['enableCommand'](_0x5611('0x1e'),this[_0x5611('0x2')][_0x5611('0xb')](this)),_0x52630f[_0x5611('0x3')]['registerCustomCallback'](_0x5611('0x0'),_0x5611('0x7'),_0x5611('0xc'),_0x52630f['_suggestionFactory'][_0x5611('0xf')](_0x5611('0x0'),null,_0x5611('0x5'))),_0x52630f[_0x5611('0x3')][_0x5611('0x4')]('formatBlock',_0x5611('0x7'),_0x5611('0x5'),_0x52630f[_0x5611('0x3')][_0x5611('0xf')](_0x5611('0x0'),null,_0x5611('0xc'))),_0x52630f['_descriptionFactory'][_0x5611('0x8')](this['handleSuggestionDescription'][_0x5611('0xb')](this));}['handleResizeTableWidthCommand'](_0x203602,_0x55beb6){const _0x19d8cf=this[_0x5611('0x15')][_0x5611('0x13')][_0x5611('0x14')]('TrackChangesEditing'),_0x265403=this['editor']['plugins'][_0x5611('0x14')](_0x5611('0x6')),_0x274c0b=_0x55beb6['table']||this['editor'][_0x5611('0x19')]['document'][_0x5611('0x18')][_0x5611('0x10')]();this[_0x5611('0x15')]['model'][_0x5611('0x17')](()=>{const _0x2e2f6d=_0x265403[_0x5611('0xd')](_0x274c0b);let _0x34b6ec=_0x2e2f6d?_0x265403[_0x5611('0x1')](_0x2e2f6d):null,_0x1e9917=_0x274c0b[_0x5611('0x1d')]('tableWidth')||null;const _0x5ba384=_0x55beb6['tableWidth']||_0x1e9917,_0x5b37c0=_0x55beb6['columnWidths']||_0x34b6ec,_0x2f5ec4=this[_0x5611('0x15')][_0x5611('0x13')][_0x5611('0x14')](_0x5611('0xe'))['me'];for(const _0x1df1c7 of _0x19d8cf[_0x5611('0x1c')]()){const _0x1fa8cb=_0x1df1c7['getContainedElement']();if(_0x5611('0x7')===_0x1df1c7['subType']&&_0x1fa8cb===_0x274c0b){_0x1df1c7[_0x5611('0x12')]!==_0x2f5ec4&&_0x1df1c7[_0x5611('0x5')]();const _0x3af534=_0x1df1c7[_0x5611('0x1a')][_0x5611('0xa')];_0x1e9917=_0x3af534[0x0][_0x5611('0x16')],_0x34b6ec=_0x3af534[0x0]['columnWidths'];break;}}_0x203602({'table':_0x274c0b,'tableWidth':_0x5ba384,'columnWidths':_0x5b37c0}),_0x19d8cf[_0x5611('0x11')](_0x274c0b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1e9917,'columnWidths':_0x34b6ec}],'formatGroupId':'resizeTable'},[],_0x5611('0x7'));});}['handleSuggestionDescription'](_0x5b3b0c){const {data:_0x4c76dc}=_0x5b3b0c;if(_0x4c76dc&&_0x5611('0x7')===_0x4c76dc['formatGroupId']){const _0x54271a='*Format:*\x20resize\x20table';return{'type':_0x5611('0x1b'),'content':_0x5bb01d(this[_0x5611('0x15')][_0x5611('0x9')],_0x54271a)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42cd=['createRange','options','markerNameToElements','getChild','data','removeAttribute','TableEditing','isBefore','FORMAT_REGULAR_ROW','requires','table','writer','headingColumns','commands','_descriptionFactory','markerRange','registerCustomCallback','getRowIndexes','editing','consumable','getSuggestion','plugins','enableCommand','FORMAT_HEADER_COLUMN','_splitMarkerName','registerDescriptionCallback','markBlockFormat','*Format:*\x20%0','first','TrackChangesEditing','commandParams','value','accept','setAttribute','createPositionAfter','index','includes','createTableWalker','formatBlock','get','nodeBefore','ck-suggestion-marker-','bindElementToMarker','ck-suggestion-marker--active','setTableColumnHeader','highest','createPositionBefore','last','data-suggestion','removeMarker:suggestion','setTableRowHeader','toViewElement','model','from','document','findAncestor','consume','activeMarkers','_suggestionFactory','getColumnIndexes','start','FORMAT_REGULAR_COLUMN','has','commandName','childCount','getSelectionAffectedTableCells','markerName','cell','getAttribute','removeClass','getCellLocation','downcastDispatcher','addClass','change','mapper','forceValue','addMarker:suggestion','stop','parent','FORMAT_HEADER_ROW','TableUtils'];(function(_0x289e67,_0x42cd7f){const _0x2916e6=function(_0x46bfaa){while(--_0x46bfaa){_0x289e67['push'](_0x289e67['shift']());}};_0x2916e6(++_0x42cd7f);}(_0x42cd,0x10e));const _0x2916=function(_0x289e67,_0x42cd7f){_0x289e67=_0x289e67-0x0;let _0x2916e6=_0x42cd[_0x289e67];return _0x2916e6;};import{Plugin as _0x24d612}from'ckeditor5/src/core';import _0x50a7a2 from'./table';import{getTranslation as _0x726731}from'../utils/common-translations';export default class pt extends _0x24d612{static get[_0x2916('0x3f')](){return[_0x50a7a2];}['afterInit'](){const _0x28a4c3=this['editor'];if(!_0x28a4c3[_0x2916('0x4b')][_0x2916('0x23')](_0x2916('0x3c')))return;const _0x104c0f=_0x28a4c3['locale'],_0x53b59f=_0x28a4c3[_0x2916('0x4b')][_0x2916('0xc')](_0x2916('0x2')),_0x3324f5=_0x28a4c3[_0x2916('0x4b')]['get'](_0x2916('0x35')),_0x17b6c8=_0x28a4c3['plugins'][_0x2916('0xc')](_0x50a7a2);function _0x4b3ca0({showActiveMarker:_0x140f85=!0x0,setDataAttribute:_0x11ce78=!0x0}={}){return(_0x1e6119,_0x2cd409,_0x48fc56)=>{const {type:_0x571955,id:_0x49f814}=_0x53b59f[_0x2916('0x4e')](_0x2cd409[_0x2916('0x27')]),_0xcdbb9d=_0x53b59f[_0x2916('0x4a')](_0x49f814);if(!_0xcdbb9d[_0x2916('0x3a')]||'setTableColumnHeader'!=_0xcdbb9d[_0x2916('0x3a')][_0x2916('0x24')])return;if(_0x2cd409['item'])return void _0x1e6119[_0x2916('0x32')]();if(!_0x48fc56[_0x2916('0x49')][_0x2916('0x1d')](_0x2cd409[_0x2916('0x45')],_0x1e6119['name']))return;const _0x354322=_0x2cd409[_0x2916('0x45')][_0x2916('0x21')]['nodeAfter'],_0x5d7063=_0x2cd409[_0x2916('0x45')]['end'][_0x2916('0xd')],_0xd85201=_0x354322['parent'][_0x2916('0x33')],{column:_0x499d7f}=_0x3324f5[_0x2916('0x2b')](_0x354322),{column:_0x88803f}=_0x3324f5['getCellLocation'](_0x5d7063);for(let _0x498513=_0x499d7f;_0x498513<=_0x88803f;_0x498513++){const _0x5e55ba=_0x3324f5['createTableWalker'](_0xd85201,{'column':_0x498513,'includeAllSlots':!0x1});for(const _0x108d46 of _0x5e55ba){const _0x4fa4ef=_0x108d46['cell'],_0x49adc7=_0x48fc56[_0x2916('0x2f')][_0x2916('0x18')](_0x4fa4ef);_0x48fc56[_0x2916('0x41')][_0x2916('0x2d')](_0x2916('0xe')+_0x571955,_0x49adc7),_0x11ce78&&_0x48fc56[_0x2916('0x41')][_0x2916('0x6')]('data-suggestion',_0x49f814,_0x49adc7),_0x48fc56[_0x2916('0x2f')][_0x2916('0xf')](_0x49adc7,_0x2cd409[_0x2916('0x27')]),_0x140f85&&(_0x53b59f[_0x2916('0x1e')][_0x2916('0x9')](_0x2cd409[_0x2916('0x27')])?_0x48fc56[_0x2916('0x41')][_0x2916('0x2d')](_0x2916('0x10'),_0x49adc7):_0x48fc56[_0x2916('0x41')][_0x2916('0x2a')](_0x2916('0x10'),_0x49adc7));}}};}_0x53b59f[_0x2916('0x4c')]('setTableRowHeader',(_0x5dc20d,_0x4d4e2e)=>{const _0x2a99de=_0x3324f5[_0x2916('0x26')](_0x28a4c3[_0x2916('0x19')][_0x2916('0x1b')]['selection']),_0x1abe74=_0x3324f5[_0x2916('0x47')](_0x2a99de),_0x1c0faf=_0x2a99de[0x0][_0x2916('0x1c')](_0x2916('0x40')),_0x3a8b6b=_0x1c0faf['getAttribute']('headingRows')||0x0,_0x466da0=_0x4d4e2e&&null!==_0x4d4e2e[_0x2916('0x30')]?_0x4d4e2e['forceValue']:!_0x28a4c3['commands'][_0x2916('0xc')](_0x2916('0x17'))[_0x2916('0x4')],_0x2f2d8c=_0x466da0?_0x1abe74['last']:_0x1abe74[_0x2916('0x1')],_0x146f48=_0x1c0faf[_0x2916('0x39')](_0x2f2d8c);let _0x33b5f3;if(_0x466da0){const _0x3a98c8=_0x1c0faf[_0x2916('0x39')](_0x3a8b6b);if(_0x146f48[_0x2916('0x8')]<_0x3a98c8[_0x2916('0x8')])return;_0x33b5f3=_0x28a4c3[_0x2916('0x19')][_0x2916('0x36')](_0x28a4c3[_0x2916('0x19')][_0x2916('0x13')](_0x3a98c8[_0x2916('0x39')](0x0)),_0x28a4c3[_0x2916('0x19')]['createPositionAfter'](_0x146f48[_0x2916('0x39')](_0x146f48[_0x2916('0x25')]-0x1)));}else{const _0x4b5060=_0x1c0faf[_0x2916('0x39')](_0x3a8b6b-0x1);if(!_0x4b5060)return;_0x33b5f3=_0x28a4c3[_0x2916('0x19')][_0x2916('0x36')](_0x28a4c3['model'][_0x2916('0x13')](_0x146f48[_0x2916('0x39')](0x0)),_0x28a4c3[_0x2916('0x19')][_0x2916('0x7')](_0x4b5060[_0x2916('0x39')](_0x4b5060['childCount']-0x1)));}_0x28a4c3['model'][_0x2916('0x2e')](()=>{_0x53b59f[_0x2916('0x50')](_0x33b5f3,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x466da0}]},[],_0x2916('0x17'));});}),_0x53b59f['enableCommand'](_0x2916('0x11'),(_0x5d48b8,_0x13bd90)=>{const _0x5ed8a9=_0x28a4c3['plugins']['get'](_0x2916('0x35')),_0xf33bb2=_0x5ed8a9[_0x2916('0x26')](_0x28a4c3[_0x2916('0x19')][_0x2916('0x1b')]['selection']),_0x3fbcd1=_0x5ed8a9[_0x2916('0x20')](_0xf33bb2),_0xc32243=_0xf33bb2[0x0][_0x2916('0x1c')]('table'),_0x4f37cf=_0xc32243[_0x2916('0x29')](_0x2916('0x42'))||0x0,_0x5c7033=_0x13bd90&&null!==_0x13bd90[_0x2916('0x30')]?_0x13bd90['forceValue']:!_0x28a4c3[_0x2916('0x43')][_0x2916('0xc')](_0x2916('0x11'))['value'];let _0x2f4289;const _0x33b821=_0xc32243[_0x2916('0x39')](0x0),_0x2c980a=_0x5c7033?_0x3fbcd1[_0x2916('0x14')]:_0x3fbcd1[_0x2916('0x1')],_0x4ed382=_0x5ed8a9[_0x2916('0xa')](_0xc32243,{'startRow':0x0,'column':_0x2c980a,'includeAllSlots':!0x1}),_0x4e9132=Array[_0x2916('0x1a')](_0x4ed382)[0x0][_0x2916('0x28')];if(_0x5c7033){const _0x57595d=_0x33b821[_0x2916('0x39')](_0x4f37cf);if(_0x4e9132[_0x2916('0x3d')](_0x57595d))return;_0x2f4289=_0x28a4c3[_0x2916('0x19')][_0x2916('0x36')](_0x28a4c3['model'][_0x2916('0x13')](_0x57595d),_0x28a4c3['model'][_0x2916('0x7')](_0x4e9132));}else{const _0x3540fb=_0x33b821[_0x2916('0x39')](_0x4f37cf-0x1);if(!_0x3540fb)return;_0x2f4289=_0x28a4c3[_0x2916('0x19')][_0x2916('0x36')](_0x28a4c3['model'][_0x2916('0x13')](_0x4e9132),_0x28a4c3[_0x2916('0x19')]['createPositionAfter'](_0x3540fb));}_0x28a4c3[_0x2916('0x19')][_0x2916('0x2e')](()=>{_0x53b59f[_0x2916('0x50')](_0x2f4289,{'commandName':_0x2916('0x11'),'commandParams':[{'forceValue':_0x5c7033}]},[],'setTableColumnHeader');});}),_0x28a4c3[_0x2916('0x48')][_0x2916('0x2c')]['on'](_0x2916('0x31'),_0x4b3ca0(),{'priority':'highest'}),_0x28a4c3[_0x2916('0x3a')]['downcastDispatcher']['on'](_0x2916('0x31'),(_0x37f103,_0x324bb5,_0x21fe34)=>{_0x21fe34[_0x2916('0x37')]['showSuggestionHighlights']&&_0x4b3ca0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x37f103,_0x324bb5,_0x21fe34);},{'priority':_0x2916('0x12')}),_0x28a4c3['editing'][_0x2916('0x2c')]['on'](_0x2916('0x16'),(_0x58c606,_0x1aa580,_0x4562d9)=>{const {type:_0x46e86a,id:_0x3d5150}=_0x53b59f[_0x2916('0x4e')](_0x1aa580[_0x2916('0x27')]),_0x21bb21=_0x53b59f[_0x2916('0x4a')](_0x3d5150);if(!_0x21bb21[_0x2916('0x3a')]||_0x2916('0x11')!=_0x21bb21['data'][_0x2916('0x24')])return;const _0x217a7a=_0x4562d9[_0x2916('0x2f')][_0x2916('0x38')](_0x1aa580[_0x2916('0x27')]);if(_0x217a7a)for(const _0x5cdaf8 of _0x217a7a)_0x4562d9[_0x2916('0x41')][_0x2916('0x2a')](_0x2916('0xe')+_0x46e86a,_0x5cdaf8),_0x4562d9[_0x2916('0x41')][_0x2916('0x2a')](_0x2916('0x10'),_0x5cdaf8),_0x4562d9['writer'][_0x2916('0x3b')](_0x2916('0x15'),_0x5cdaf8),_0x4562d9[_0x2916('0x2f')]['unbindElementFromMarkerName'](_0x5cdaf8,_0x1aa580[_0x2916('0x27')]);},{'priority':_0x2916('0x12')}),_0x53b59f[_0x2916('0x44')][_0x2916('0x4f')](_0x188360=>{const {data:_0x5df4e2}=_0x188360;if(_0x5df4e2){if('setTableRowHeader'==_0x5df4e2['commandName']){const _0x57e171=_0x5df4e2[_0x2916('0x3')][0x0][_0x2916('0x30')];return _0x2975c7(_0x726731(_0x104c0f,_0x57e171?_0x2916('0x34'):_0x2916('0x3e')));}if(_0x2916('0x11')==_0x5df4e2[_0x2916('0x24')]){const _0x326f6a=_0x5df4e2[_0x2916('0x3')][0x0]['forceValue'];return _0x2975c7(_0x726731(_0x104c0f,_0x326f6a?_0x2916('0x4d'):_0x2916('0x22')));}}function _0x2975c7(_0x39c5dc){return{'type':'format','content':_0x726731(_0x104c0f,_0x2916('0x0'),_0x39c5dc)};}});const _0x3cb446=_0x17b6c8['_acceptFormatSuggestionCallbackFactory']();_0x53b59f[_0x2916('0x1f')]['registerCustomCallback'](_0x2916('0xb'),'setTableRowHeader','accept',_0x3cb446),_0x53b59f['_suggestionFactory'][_0x2916('0x46')]('formatBlock',_0x2916('0x11'),_0x2916('0x5'),_0x3cb446);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20da=['element','fromRange','_isForcedDefaultExecutionBlock','author','splitTableCellVertically','getSuggestions','*Split\x20cell:*\x20horizontally','push','document','value','*Merge\x20cells*','plugins','mergeTableCellDown','mergeTableCells','TrackChangesEditing','tableCell','requires','splitTableCellHorizontally','detach','createRangeOn','get','commands','table','TableUtils','trackChanges','*Split\x20cell:*\x20vertically','_areSelectedCellsMergable','low','formatBlock','mergeTableCellUp','change','forceDefaultExecution','_tablePostFixingSubtypes','length','_descriptionFactory','subType','mergeTableCellLeft','getCellLocation','execute','mergeTableCellRight','filter','registerCustomCallback','rootName','model','$graveyard','type','_areMergableCells','createTableWalker','getSelectionAffectedTableCells','getFirstPosition','direction','horizontally','TableEditing','selection','map','stop','afterInit','accept','from','isInContent','enableCommand','root','registerDescriptionCallback','containsRange','find','return','setSelection','cell','commandName','editor','markBlockFormat','isEnabled','set:isEnabled','format','size','_suggestionFactory','markMultiRangeBlockFormat','getAncestors','highest','add'];(function(_0x1c1ea7,_0x20da1f){const _0x32111d=function(_0x154714){while(--_0x154714){_0x1c1ea7['push'](_0x1c1ea7['shift']());}};_0x32111d(++_0x20da1f);}(_0x20da,0xda));const _0x3211=function(_0x1c1ea7,_0x20da1f){_0x1c1ea7=_0x1c1ea7-0x0;let _0x32111d=_0x20da[_0x1c1ea7];return _0x32111d;};import{Plugin as _0x48e3a1}from'ckeditor5/src/core';import _0x2dc283 from'./table';import{LiveRange as _0x27a45b}from'ckeditor5/src/engine';import{getTranslation as _0x52c3d8}from'../utils/common-translations';export default class dt extends _0x48e3a1{static get[_0x3211('0x26')](){return[_0x2dc283];}[_0x3211('0x4e')](){const _0x4c700e=this[_0x3211('0xb')],_0x42d11a=_0x4c700e[_0x3211('0x41')][_0x3211('0x1e')][_0x3211('0x4b')],_0x2a92f4=_0x4c700e['locale'];if(!_0x4c700e[_0x3211('0x21')]['has'](_0x3211('0x4a')))return;const _0x4b9bb1=_0x4c700e[_0x3211('0x21')][_0x3211('0x2a')](_0x3211('0x24')),_0x1012c4=_0x4c700e[_0x3211('0x21')][_0x3211('0x2a')](_0x3211('0x2d')),_0x218fb0=_0x4c700e[_0x3211('0x21')][_0x3211('0x2a')](_0x2dc283);_0x218fb0[_0x3211('0x36')][_0x3211('0x1d')](_0x3211('0x23')),_0x4b9bb1[_0x3211('0x2')]('mergeTableCells',()=>{const _0xab3baf=_0x1012c4[_0x3211('0x46')](_0x4c700e['model']['document'][_0x3211('0x4b')]);_0x4c700e[_0x3211('0x41')]['change'](()=>{_0x4b9bb1['markMultiRangeBlockFormat'](_0xab3baf,{'commandName':_0x3211('0x23'),'commandParams':[]},[],_0x3211('0x23'));});}),_0x4c700e['commands'][_0x3211('0x2a')]('mergeTableCells')['on'](_0x3211('0x3c'),(_0xa790d2,_0x3c3020)=>{_0x4c700e[_0x3211('0x2b')][_0x3211('0x2a')](_0x3211('0x2e'))['value']&&(_0x3c3020[_0x3211('0x37')]>0x0&&_0x3c3020[_0x3c3020[_0x3211('0x37')]-0x1]&&_0x3c3020[_0x3c3020['length']-0x1][_0x3211('0x35')]||_0x4b9bb1[_0x3211('0x18')]||this[_0x3211('0x30')]()||_0xa790d2['stop']());},{'priority':_0x3211('0x14')});for(const _0x5baf12 of[_0x3211('0x33'),'mergeTableCellRight',_0x3211('0x22'),_0x3211('0x3a')]){const _0x31b8ef=_0x4c700e['commands'][_0x3211('0x2a')](_0x5baf12);_0x4b9bb1['enableCommand'](_0x5baf12,()=>{const _0x1ff342=_0x4c700e[_0x3211('0x41')]['document'][_0x3211('0x4b')][_0x3211('0x47')]()[_0x3211('0x13')]()['find'](_0x1a2a3b=>_0x1a2a3b['is'](_0x3211('0x16'),_0x3211('0x25'))),_0x225eac=_0x31b8ef[_0x3211('0x1f')];_0x4c700e[_0x3211('0x41')][_0x3211('0x34')](()=>{_0x4b9bb1[_0x3211('0x12')]([_0x1ff342,_0x225eac],{'commandName':_0x3211('0x23'),'commandParams':[]},[],_0x3211('0x23'));});});}for(const _0x2a7dd7 of[_0x3211('0x1a'),'splitTableCellHorizontally']){const _0x56a89a=_0x4c700e[_0x3211('0x2b')][_0x3211('0x2a')](_0x2a7dd7);_0x4b9bb1[_0x3211('0x2')](_0x2a7dd7,()=>{const _0x2785ab=_0x1012c4[_0x3211('0x46')](_0x4c700e[_0x3211('0x41')][_0x3211('0x1e')][_0x3211('0x4b')])[0x0],_0x49c903=_0x2785ab['findAncestor'](_0x3211('0x2c')),{column:_0x2d9a4c,row:_0x2d8cb9}=_0x1012c4[_0x3211('0x3b')](_0x2785ab);let _0x52c495=[];if(_0x3211('0x49')==_0x56a89a[_0x3211('0x48')]){const _0x3ae52d=_0x1012c4['createTableWalker'](_0x49c903,{'startRow':_0x2d8cb9,'endRow':_0x2d8cb9,'includeAllSlots':!0x0});_0x52c495=Array[_0x3211('0x0')](_0x3ae52d)[_0x3211('0x4c')](_0x2551b6=>_0x2551b6[_0x3211('0x9')]);}else{const _0x2aa4c2=_0x1012c4[_0x3211('0x45')](_0x49c903,{'column':_0x2d9a4c,'includeAllSlots':!0x0});_0x52c495=Array[_0x3211('0x0')](_0x2aa4c2)[_0x3211('0x4c')](_0x5c4c98=>_0x5c4c98['cell']);}_0x4c700e[_0x3211('0x41')][_0x3211('0x34')](_0x5501d8=>{_0x4b9bb1[_0x3211('0xc')](_0x5501d8[_0x3211('0x29')](_0x2785ab),{'commandName':_0x2a7dd7,'commandParams':[]},_0x52c495,_0x2a7dd7);});});}_0x4b9bb1[_0x3211('0x38')][_0x3211('0x4')](_0x31eb68=>{const {data:_0x4fede1}=_0x31eb68;if(_0x4fede1)return _0x3211('0x23')==_0x4fede1[_0x3211('0xa')]?{'type':_0x3211('0xf'),'content':_0x52c3d8(_0x2a92f4,_0x3211('0x20'))}:void 0x0;}),_0x4b9bb1[_0x3211('0x38')][_0x3211('0x4')](_0x5af0f1=>{const {data:_0x5351af}=_0x5af0f1;if(_0x5351af)return _0x3211('0x1a')==_0x5351af[_0x3211('0xa')]?{'type':_0x3211('0xf'),'content':_0x52c3d8(_0x2a92f4,_0x3211('0x2f'))}:_0x3211('0x27')==_0x5351af[_0x3211('0xa')]?{'type':'format','content':_0x52c3d8(_0x2a92f4,_0x3211('0x1c'))}:void 0x0;});const _0xd3f0fc=_0x218fb0['_acceptFormatSuggestionCallbackFactory']();for(const _0x223844 of[_0x3211('0x33'),_0x3211('0x3d'),_0x3211('0x22'),'mergeTableCellLeft'])_0x4b9bb1[_0x3211('0x11')][_0x3211('0x3f')](_0x3211('0x32'),_0x223844,_0x3211('0x4f'),_0xd3f0fc);for(const _0x36d143 of['splitTableCellVertically',_0x3211('0x27')])_0x4b9bb1[_0x3211('0x11')][_0x3211('0x3f')]('formatBlock',_0x36d143,'accept',_0xd3f0fc);_0x4b9bb1[_0x3211('0x11')][_0x3211('0x3f')](_0x3211('0x32'),_0x3211('0x23'),_0x3211('0x4f'),_0x5df78f=>{_0x4c700e['model']['change'](_0x110c7b=>{const _0x32155c=Array[_0x3211('0x0')](_0x42d11a['getRanges']())[_0x3211('0x4c')](_0xee46fc=>_0x27a45b[_0x3211('0x17')](_0xee46fc));_0x110c7b[_0x3211('0x8')](_0x5df78f),_0x4c700e[_0x3211('0x2b')][_0x3211('0x2a')]('mergeTableCells')['refresh'](),_0x4c700e[_0x3211('0x3c')](_0x3211('0x23'),{'forceDefaultExecution':!0x0});const _0x30db94=_0x32155c[_0x3211('0x3e')](_0xa9d1bb=>_0x3211('0x42')!=_0xa9d1bb[_0x3211('0x3')][_0x3211('0x40')]);_0x30db94[_0x3211('0x37')]>0x0&&_0x110c7b[_0x3211('0x8')](_0x30db94);for(const _0x8c7829 of _0x32155c)_0x8c7829[_0x3211('0x28')]();});});for(const _0x9cb9c0 of['mergeTableCellUp',_0x3211('0x22'),_0x3211('0x3a'),'mergeTableCellRight']){const _0x65bd97=_0x4c700e[_0x3211('0x2b')][_0x3211('0x2a')](_0x9cb9c0);_0x65bd97['on'](_0x3211('0xe'),(_0x21fc26,_0x4fedab,_0x52afb9)=>{if(_0x52afb9){const _0x23e767=_0x4c700e[_0x3211('0x41')][_0x3211('0x1e')]['selection'][_0x3211('0x47')]()[_0x3211('0x13')]()[_0x3211('0x6')](_0x3939aa=>_0x3939aa['is'](_0x3211('0x16'),'tableCell'));this[_0x3211('0x44')](_0x65bd97[_0x3211('0x1f')],_0x23e767)||(_0x21fc26[_0x3211('0x7')]=!0x1,_0x21fc26[_0x3211('0x4d')]());}},{'priority':_0x3211('0x31')});}}[_0x3211('0x30')](){const _0x394df9=this[_0x3211('0xb')][_0x3211('0x2b')]['get'](_0x3211('0x23')),_0x17a557=this[_0x3211('0xb')][_0x3211('0x21')][_0x3211('0x2a')]('TableUtils');if(!_0x394df9[_0x3211('0xd')])return!0x1;const _0x1da51e=_0x17a557[_0x3211('0x46')](this[_0x3211('0xb')]['model'][_0x3211('0x1e')][_0x3211('0x4b')]);for(const _0xdc3733 of _0x1da51e)for(const _0x1f7b69 of _0x1da51e)if(_0xdc3733!=_0x1f7b69&&!this[_0x3211('0x44')](_0xdc3733,_0x1f7b69))return!0x1;return!0x0;}[_0x3211('0x44')](_0x289412,_0x18c160){const _0x153407=this[_0x3211('0xb')][_0x3211('0x21')]['get']('TrackChangesEditing'),_0xc68f2b=this[_0x3211('0xb')][_0x3211('0x41')][_0x3211('0x29')](_0x289412),_0x214ef6=this['editor']['model'][_0x3211('0x29')](_0x18c160),_0x4ecbac=new Set(),_0xe4d10b=new Set();for(const _0x2e408e of _0x153407[_0x3211('0x1b')]())if(('insertion'==_0x2e408e[_0x3211('0x43')]||'deletion'==_0x2e408e['type']||'mergeTableCells'==_0x2e408e[_0x3211('0x39')])&&_0x2e408e[_0x3211('0x1')])for(const _0x1edd38 of _0x2e408e['getRanges']())_0x1edd38[_0x3211('0x5')](_0xc68f2b,!0x0)&&_0x4ecbac['add'](_0x2e408e[_0x3211('0x43')]+':'+_0x2e408e['author']['id']),_0x1edd38[_0x3211('0x5')](_0x214ef6,!0x0)&&_0xe4d10b[_0x3211('0x15')](_0x2e408e['type']+':'+_0x2e408e[_0x3211('0x19')]['id']);if(_0x4ecbac['size']!=_0xe4d10b[_0x3211('0x10')])return!0x1;for(const _0x5c2655 of _0x4ecbac)if(!_0xe4d10b['has'](_0x5c2655))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa2d3=['commands','enableCommand','get','plugins','TrackChangesEditing','insertTableOfContents','tableOfContents','afterInit','registerElementLabel','ELEMENT_TABLE_OF_CONTENTS','locale'];(function(_0x4a4d96,_0xa2d37){const _0x3a0e5c=function(_0x407f36){while(--_0x407f36){_0x4a4d96['push'](_0x4a4d96['shift']());}};_0x3a0e5c(++_0xa2d37);}(_0xa2d3,0x19c));const _0x3a0e=function(_0x4a4d96,_0xa2d37){_0x4a4d96=_0x4a4d96-0x0;let _0x3a0e5c=_0xa2d3[_0x4a4d96];return _0x3a0e5c;};import{Plugin as _0x15466b}from'ckeditor5/src/core';import{getTranslation as _0xb8d599}from'../utils/common-translations';export default class bt extends _0x15466b{[_0x3a0e('0x2')](){const _0x4c473b=this['editor'];if(!_0x4c473b[_0x3a0e('0x6')][_0x3a0e('0x8')](_0x3a0e('0x0')))return;_0x4c473b[_0x3a0e('0x9')][_0x3a0e('0x8')]('TrackChangesEditing')[_0x3a0e('0x7')](_0x3a0e('0x0'));const _0x2fd855=_0x4c473b[_0x3a0e('0x9')][_0x3a0e('0x8')](_0x3a0e('0xa')),_0x508c5a=_0x4c473b[_0x3a0e('0x5')];_0x2fd855['_descriptionFactory'][_0x3a0e('0x3')](_0x3a0e('0x1'),_0xf6d763=>_0xb8d599(_0x508c5a,_0x3a0e('0x4'),_0xf6d763));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5683=['TrackChangesEditing','tableCellBorderStyle','discard','_handlePropertyChange','handleDiscardAction','tableBackgroundColor','model','batch','handleSuggestionDescription','tableCellBorderColor','getAttribute','tableCellWidth','tableProperties','getSuggestionCallback','enableCommand','pluginName','data','get','nodeAfter','_descriptionFactory','accept','tableBorderColor','editor','enqueueChange','getFirstPosition','subType','tableCellHeight','plugins','locale','removeAttribute','formatBlock','_suggestionFactory','change','getSuggestions','tableBorderWidth','markBlockFormat','tableCellPadding','table','*Format:*\x20change\x20table\x20cell\x20properties','TableCellPropertiesEditing','tableCellProperties','tableBorderStyle','format','tableCellBackgroundColor','afterInit','findAncestor','tableAlignment','document','has','registerCustomCallback','getContainedElement','tableHeight','join','selection','tableCellVerticalAlignment','_getSuggestion','tableCellHorizontalAlignment'];(function(_0x31e1fc,_0x568394){const _0xaf4753=function(_0x593840){while(--_0x593840){_0x31e1fc['push'](_0x31e1fc['shift']());}};_0xaf4753(++_0x568394);}(_0x5683,0x71));const _0xaf47=function(_0x31e1fc,_0x568394){_0x31e1fc=_0x31e1fc-0x0;let _0xaf4753=_0x5683[_0x31e1fc];return _0xaf4753;};import{Plugin as _0x18e352}from'ckeditor5/src/core';import{getTranslation as _0x16d45e}from'../utils/common-translations';export default class Ct extends _0x18e352{constructor(_0x2bc5b2){super(_0x2bc5b2),this['tableProperties']=[_0xaf47('0x16'),_0xaf47('0x2a'),_0xaf47('0x23'),_0xaf47('0x2f'),'tableWidth',_0xaf47('0x34'),_0xaf47('0x6')],this[_0xaf47('0x29')]=[_0xaf47('0xa'),_0xaf47('0x2'),'tableCellBorderWidth',_0xaf47('0x25'),_0xaf47('0xc'),_0xaf47('0x1b'),_0xaf47('0x2c'),_0xaf47('0x0'),_0xaf47('0x37')];}static get[_0xaf47('0x10')](){return'TrackChangesTableProperties';}[_0xaf47('0x2d')](){const _0x523cbc=this[_0xaf47('0x17')][_0xaf47('0x1c')][_0xaf47('0x12')](_0xaf47('0x1'));if(this['editor'][_0xaf47('0x1c')]['has']('TablePropertiesEditing')){for(const _0x2b025d of this['tableProperties'])_0x523cbc[_0xaf47('0xf')](_0x2b025d,(_0x3b68fe,_0x2635fc)=>{const _0x24cbdb=this['editor']['model'][_0xaf47('0x30')][_0xaf47('0x36')][_0xaf47('0x19')]()[_0xaf47('0x2e')](_0xaf47('0x26'));this['_handlePropertyChange'](_0x2b025d,[_0x24cbdb],this[_0xaf47('0xd')],'tableProperties',_0x3b68fe,_0x2635fc);});_0x523cbc[_0xaf47('0x20')][_0xaf47('0x32')](_0xaf47('0x1f'),_0xaf47('0xd'),'accept',_0x523cbc['_suggestionFactory'][_0xaf47('0xe')](_0xaf47('0x1f'),null,_0xaf47('0x3'))),_0x523cbc[_0xaf47('0x20')][_0xaf47('0x32')](_0xaf47('0x1f'),_0xaf47('0xd'),_0xaf47('0x3'),(_0x326262,_0x2de036)=>this[_0xaf47('0x5')](this[_0xaf47('0xd')],_0x326262,_0x2de036)),_0x523cbc[_0xaf47('0x20')][_0xaf47('0x32')](_0xaf47('0x1f'),_0xaf47('0xd'),_0xaf47('0x35'),()=>!0x1);}if(this[_0xaf47('0x17')][_0xaf47('0x1c')][_0xaf47('0x31')](_0xaf47('0x28'))){for(const _0x8583d of this[_0xaf47('0x29')])_0x523cbc[_0xaf47('0xf')](_0x8583d,(_0x27dbca,_0x4a1da1)=>{const _0x4deb39=this[_0xaf47('0x17')][_0xaf47('0x1c')][_0xaf47('0x12')]('TableUtils')['getSelectionAffectedTableCells'](this['editor'][_0xaf47('0x7')][_0xaf47('0x30')][_0xaf47('0x36')]);this[_0xaf47('0x4')](_0x8583d,_0x4deb39,this['tableCellProperties'],_0xaf47('0x29'),_0x27dbca,_0x4a1da1);});_0x523cbc[_0xaf47('0x20')][_0xaf47('0x32')](_0xaf47('0x1f'),'tableCellProperties',_0xaf47('0x15'),_0x523cbc['_suggestionFactory'][_0xaf47('0xe')](_0xaf47('0x1f'),null,'discard')),_0x523cbc[_0xaf47('0x20')][_0xaf47('0x32')]('formatBlock',_0xaf47('0x29'),_0xaf47('0x3'),(_0x1cb9b5,_0x94718c)=>this[_0xaf47('0x5')](this[_0xaf47('0x29')],_0x1cb9b5,_0x94718c)),_0x523cbc[_0xaf47('0x20')]['registerCustomCallback'](_0xaf47('0x1f'),'tableCellProperties',_0xaf47('0x35'),()=>!0x1);}_0x523cbc[_0xaf47('0x14')]['registerDescriptionCallback'](_0x28272f=>this[_0xaf47('0x9')](_0x28272f));}[_0xaf47('0x4')](_0x383dce,_0x44f66d,_0x27fb19,_0x51dfbe,_0x2a199e,_0x116e4f){const _0x5c014a=this[_0xaf47('0x17')][_0xaf47('0x1c')][_0xaf47('0x12')](_0xaf47('0x1'));this[_0xaf47('0x17')][_0xaf47('0x7')][_0xaf47('0x18')](_0x116e4f[_0xaf47('0x8')],()=>{for(const _0xc31473 of _0x44f66d){if(this['_getSuggestion'](_0xc31473,_0x51dfbe))_0x2a199e(_0x116e4f);else{const _0x1cae3e={};for(const _0x1385c0 of _0x27fb19){const _0x55dcd1=_0xc31473[_0xaf47('0xb')](_0x1385c0);void 0x0!==_0x55dcd1&&(_0x1cae3e[_0x1385c0]=_0x55dcd1);}_0x2a199e(_0x116e4f),_0x5c014a[_0xaf47('0x24')](_0xc31473,{'commandParams':[_0x1cae3e]},[],_0x51dfbe);}}});}['handleDiscardAction'](_0x243618,_0x2f505b,_0x987eac){const _0x117c4f=_0x2f505b[0x0]['start'][_0xaf47('0x13')],_0x193ca0=_0x987eac['commandParams'][0x0];this[_0xaf47('0x17')][_0xaf47('0x7')][_0xaf47('0x21')](_0x588a1e=>{for(const _0x901ba9 of _0x243618)void 0x0!==_0x193ca0[_0x901ba9]?_0x588a1e['setAttribute'](_0x901ba9,_0x193ca0[_0x901ba9],_0x117c4f):_0x588a1e[_0xaf47('0x1e')](_0x901ba9,_0x117c4f);});}[_0xaf47('0x9')](_0x1ccf42){if(_0x1ccf42[_0xaf47('0x11')])switch(_0x1ccf42[_0xaf47('0x1a')]){case _0xaf47('0xd'):return{'type':_0xaf47('0x2b'),'content':_0x16d45e(this[_0xaf47('0x17')][_0xaf47('0x1d')],'*Format:*\x20change\x20table\x20properties')};case _0xaf47('0x29'):return{'type':_0xaf47('0x2b'),'content':_0x16d45e(this[_0xaf47('0x17')][_0xaf47('0x1d')],_0xaf47('0x27'))};}}[_0xaf47('0x38')](_0x596382,_0x24ae60){const _0x59c1ad=this[_0xaf47('0x17')][_0xaf47('0x1c')]['get'](_0xaf47('0x1'));for(const _0x5a8838 of _0x59c1ad[_0xaf47('0x22')]({'skipNotAttached':!0x0})){const _0x357ab1=_0x5a8838[_0xaf47('0x33')]();if(_0x5a8838[_0xaf47('0x1a')]===_0x24ae60&&_0x357ab1===_0x596382)return _0x5a8838;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x206b=['get','plugins','editor','afterInit','Template','has'];(function(_0x10b728,_0x206b52){const _0x656c73=function(_0x54f358){while(--_0x54f358){_0x10b728['push'](_0x10b728['shift']());}};_0x656c73(++_0x206b52);}(_0x206b,0xaa));const _0x656c=function(_0x10b728,_0x206b52){_0x10b728=_0x10b728-0x0;let _0x656c73=_0x206b[_0x10b728];return _0x656c73;};import{Plugin as _0x4dde8d}from'ckeditor5/src/core';export default class yt extends _0x4dde8d{[_0x656c('0x1')](){const _0x4b8c10=this[_0x656c('0x0')];_0x4b8c10[_0x656c('0x5')][_0x656c('0x3')](_0x656c('0x2'))&&_0x4b8c10[_0x656c('0x5')][_0x656c('0x4')]('TrackChangesEditing')['enableCommand']('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d96=['start','from','getChangedMarkers','locale','getNearestSelectionRange','editor','newRange','Title','end','registerPostFixer','nodeBefore','element','updateMarker','differ','_descriptionFactory','plugins','isTouching','forward','model','_splitMarkerName','registerElementLabel','isEqual','schema','suggestion','get','document','has','title-content','isCollapsed'];(function(_0x70fbb3,_0x4d9687){const _0x3a8e34=function(_0x10a6b3){while(--_0x10a6b3){_0x70fbb3['push'](_0x70fbb3['shift']());}};_0x3a8e34(++_0x4d9687);}(_0x4d96,0x81));const _0x3a8e=function(_0x70fbb3,_0x4d9687){_0x70fbb3=_0x70fbb3-0x0;let _0x3a8e34=_0x4d96[_0x70fbb3];return _0x3a8e34;};import{Plugin as _0xb67e75}from'ckeditor5/src/core';import{getTranslation as _0x5de515}from'../utils/common-translations';export default class St extends _0xb67e75{['afterInit'](){const _0x2c3d74=this[_0x3a8e('0x15')];if(!_0x2c3d74['plugins'][_0x3a8e('0xd')](_0x3a8e('0x17')))return;const _0x11f587=_0x2c3d74[_0x3a8e('0x2')][_0x3a8e('0xb')]('TrackChangesEditing');_0x11f587[_0x3a8e('0x1')][_0x3a8e('0x7')](_0x3a8e('0xe'),()=>_0x5de515(_0x2c3d74[_0x3a8e('0x13')],'ELEMENT_TITLE')),_0x2c3d74['model']['document'][_0x3a8e('0x19')](_0x5ee705=>{let _0x451ae1=!0x1;const _0x57fada=Array[_0x3a8e('0x11')](_0x2c3d74[_0x3a8e('0x5')][_0x3a8e('0xc')][_0x3a8e('0x0')][_0x3a8e('0x12')]());for(const {name:_0x1482a1,data:_0x1242f9}of _0x57fada){const {group:_0x2f279b}=_0x11f587[_0x3a8e('0x6')](_0x1482a1);if(_0x3a8e('0xa')!==_0x2f279b||!_0x1242f9[_0x3a8e('0x16')])continue;const _0x3240fb=_0x1242f9[_0x3a8e('0x16')],_0x294b10=_0x3240fb[_0x3a8e('0x18')][_0x3a8e('0x1a')];if(!_0x294b10||!_0x294b10['is'](_0x3a8e('0x1b'),_0x3a8e('0xe')))continue;if(!_0x3240fb[_0x3a8e('0x10')][_0x3a8e('0x3')](_0x3240fb[_0x3a8e('0x18')]))continue;const _0x147015=_0x2c3d74[_0x3a8e('0x5')][_0x3a8e('0x9')][_0x3a8e('0x14')](_0x3240fb['end'],_0x3a8e('0x4'));if(_0x147015&&_0x147015[_0x3a8e('0xf')]){const _0x3d4db1=_0x5ee705['createRange'](_0x3240fb[_0x3a8e('0x10')],_0x147015['start']);_0x3d4db1[_0x3a8e('0x8')](_0x3240fb)||(_0x5ee705[_0x3a8e('0x1c')](_0x1482a1,{'range':_0x3d4db1}),_0x451ae1=!0x0);}_0x451ae1||(_0x5ee705['removeMarker'](_0x1482a1),_0x451ae1=!0x0);}return _0x451ae1;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4244=['plugins','enableCommand','TrackChangesEditing','has','get','undo','afterInit'];(function(_0x45b54d,_0x42442d){const _0x49e6fe=function(_0x3f7260){while(--_0x3f7260){_0x45b54d['push'](_0x45b54d['shift']());}};_0x49e6fe(++_0x42442d);}(_0x4244,0x189));const _0x49e6=function(_0x45b54d,_0x42442d){_0x45b54d=_0x45b54d-0x0;let _0x49e6fe=_0x4244[_0x45b54d];return _0x49e6fe;};import{Plugin as _0x388242}from'ckeditor5/src/core';export default class It extends _0x388242{[_0x49e6('0x5')](){const _0x317f64=this['editor'],_0x4775b8=_0x317f64[_0x49e6('0x6')][_0x49e6('0x3')](_0x49e6('0x1'));_0x317f64['plugins'][_0x49e6('0x2')]('UndoEditing')&&(_0x4775b8[_0x49e6('0x0')](_0x49e6('0x4')),_0x4775b8['enableCommand']('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5eab=['model','addHighlight','addClass','markerName','getAttribute','listItem','bindElementToMarker','hasAttribute','TrackChangesEditing','elementEnd','span','parent','toViewElement','ck-suggestion-marker--active','nextSibling','test','writer','get','getCustomProperty','type','isLimit','plugins','activeMarkers','mapper','element','consumable','getWalker','isBlock','push','isAtEnd','toViewPosition','getItems','ck-suggestion-marker-','previousPosition','name','markerRange','item'];(function(_0x299041,_0x5eab8a){const _0x4f7c95=function(_0x14c5ba){while(--_0x14c5ba){_0x299041['push'](_0x299041['shift']());}};_0x4f7c95(++_0x5eab8a);}(_0x5eab,0x112));const _0x4f7c=function(_0x299041,_0x5eab8a){_0x299041=_0x299041-0x0;let _0x4f7c95=_0x5eab[_0x299041];return _0x4f7c95;};export function getRangesWithAttribute(_0x34a102,_0x31ef65,_0x13c3f5){const _0x24e3cc=[];for(const _0x257b9e of _0x31ef65[_0x4f7c('0x10')]())_0x257b9e[_0x4f7c('0x1d')](_0x34a102)&&_0x24e3cc['push'](_0x13c3f5['createRangeOn'](_0x257b9e));return _0x24e3cc;}export function getElementsAffectedByListItemRename(_0x8cbd2c){const _0x37c1b9=[];if(_0x8cbd2c['is'](_0x4f7c('0x9'),_0x4f7c('0x1b'))){let _0xd3e9b8=_0x8cbd2c[_0x4f7c('0x24')];for(;_0xd3e9b8&&_0xd3e9b8['is'](_0x4f7c('0x9'),'listItem')&&_0xd3e9b8[_0x4f7c('0x1a')]('listIndent')>0x0;)_0x37c1b9[_0x4f7c('0xd')](_0xd3e9b8),_0xd3e9b8=_0xd3e9b8[_0x4f7c('0x24')];}return _0x37c1b9;}export function downcastSplitMergeMarker(_0x81d625,_0x681cef,{showActiveMarker:_0x2aed25=!0x0}={}){const _0x2f6386=_0x81d625[_0x4f7c('0x6')][_0x4f7c('0x2')](_0x4f7c('0x1e'));return(_0x43e13d,_0x1fa7f7,_0x4ae529)=>{if(!_0x4ae529[_0x4f7c('0xa')][_0x4f7c('0x0')](_0x1fa7f7[_0x4f7c('0x14')],_0x43e13d[_0x4f7c('0x13')]))return;const _0x4492f1=_0x1fa7f7[_0x4f7c('0x14')][_0x4f7c('0xb')](),_0x3c06c3=_0x1fa7f7['markerRange']['start'],_0x2bf004=_0x81d625[_0x4f7c('0x16')]['schema'];let _0x2235cf=null,_0x42654c=null,_0x2ed93a=!0x1,_0x48cf45=!0x1;for(const _0x4dd7f6 of _0x4492f1){const _0x2ecd48=_0x4dd7f6[_0x4f7c('0x15')];_0x2ed93a=_0x2ed93a||_0x2bf004['isContent'](_0x2ecd48);const _0x49f6ea=_0x4ae529['mapper'][_0x4f7c('0x22')](_0x2ecd48);if(_0x49f6ea&&_0x49f6ea[_0x4f7c('0x3')](_0x4f7c('0x17')))return;_0x4f7c('0x1f')==_0x4dd7f6[_0x4f7c('0x4')]&&(_0x2bf004[_0x4f7c('0xc')](_0x2ecd48)&&!_0x2bf004[_0x4f7c('0x5')](_0x2ecd48)&&(_0x2ecd48['nextSibling']||_0x3c06c3[_0x4f7c('0xe')]?_0x2235cf&&_0x2235cf[_0x4f7c('0x21')]==_0x2ecd48||(_0x2235cf=_0x2ecd48,_0x1e6fc8(_0x4dd7f6[_0x4f7c('0x12')]),_0x48cf45=!0x0):_0x42654c=_0x42654c||_0x4dd7f6[_0x4f7c('0x12')]));}function _0x1e6fc8(_0x30b4bf){const _0x1a426f=_0x4ae529[_0x4f7c('0x1')]['createUIElement'](_0x4f7c('0x20'),{'class':_0x4f7c('0x11')+_0x681cef}),_0x4561ec=_0x4ae529[_0x4f7c('0x8')][_0x4f7c('0xf')](_0x30b4bf);_0x2aed25&&_0x2f6386[_0x4f7c('0x7')]['includes'](_0x1fa7f7['markerName'])&&_0x4ae529[_0x4f7c('0x1')][_0x4f7c('0x18')](_0x4f7c('0x23'),_0x1a426f),_0x4ae529['writer']['insert'](_0x4561ec,_0x1a426f),_0x4ae529[_0x4f7c('0x8')][_0x4f7c('0x1c')](_0x1a426f,_0x1fa7f7[_0x4f7c('0x19')]);}_0x2ed93a||_0x48cf45||!_0x42654c||_0x1e6fc8(_0x42654c);};}
|