@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231030.0 → 0.0.0-nightly-20231101.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x11e7=['keys','elementToElement','markerToHighlight','createElement','filter','editing','model','createPositionBefore','getRange','registerDescriptionCallback','name','getShiftedBy','editor','formatBlock','markerName','afterInit','cell','getChangedMarkers','*Replace\x20table\x20cells*','getAttributes','nextSibling','endRow','conversion','getContainedElement','getChild','next','unwrap','getRows','rows','containsRange','return','insert','markMultiRangeDeletion','for','nodeAfter','table','accept','low','newRange','findAncestor','subType','getSelectionAffectedTableCells','join','getChildren','_suggestionFactory','TableUtils','find','previousSibling','tablePasteCell','insertionRanges','getSuggestions','insertContent','cells','_splitMarkerName','_createdBatches','length','first','set','column','removeColumns','suggestion:formatBlock:tablePasteCell','getSuggestionCallback','TableClipboard','suggestion','_replaceTableSlotCell','options','row','type','insertion','register','documentSelection','some','isEqual','fromEntries','tableCellPadding','every','createRangeOn','move','removeMarkers','setAttribute','isInContent','ck-suggestion-marker--active','createRangeIn','deletionRanges','startsWith','fill','remove','discard','createTableWalker','last','markerAttributes','_tablePostFixingSubtypes','redo','tableCellSuggestion','tablePaste','differ','getMarkers','listenTo','getTableIfOnlyTableInContent','removeRows','removeMarker','getRanges','push','tablePasteRow','tablePasteChainId','has','$graveyard','includes','document','insertRows','paragraph','requires','updateMarker','stop','end','suggestion-td','wrap','selection','registerPostFixer','root','from','showSuggestionHighlights','entries','map','tableCell','high','attributes','rootName','_getCoordsForCells','ck-suggestion-marker-insertion','author','activeMarkers','tableCellBorderWidth','getColumnIndexes','tableCellBorderStyle','Users','change','tableCellBackgroundColor','add','get','tableCellVerticalAlignment','tablePasteColumn','markers','batch','deletion','element','previous','_descriptionFactory','TrackChangesEditing','clipboardOutput','isEmpty','value','createRange','trackChanges','plugins','getSuggestion','reduce','markMultiRangeBlockFormat','tableCellBorderColor','getAllAdjacentSuggestions','setAttributes','getRowIndexes','registerCustomCallback'];(function(_0x1cb5ec,_0x11e78f){const _0xf1023f=function(_0x3ea80f){while(--_0x3ea80f){_0x1cb5ec['push'](_0x1cb5ec['shift']());}};_0xf1023f(++_0x11e78f);}(_0x11e7,0xdc));const _0xf102=function(_0x1cb5ec,_0x11e78f){_0x1cb5ec=_0x1cb5ec-0x0;let _0xf1023f=_0x11e7[_0x1cb5ec];return _0xf1023f;};import{getTranslation as _0x2ff337}from'../utils/common-translations';import{Plugin as _0x5d8833}from'ckeditor5/src/core';import{uid as _0x4aecfa,priorities as _0x37d1d1}from'ckeditor5/src/utils';import _0x3bbc0b from'./table';const le=[_0xf102('0x4b'),_0xf102('0x65'),_0xf102('0x4d'),'tableCellHorizontalAlignment',_0xf102('0x53'),_0xf102('0x50'),_0xf102('0x11')],ae=Object[_0xf102('0x10')](le[_0xf102('0x42')](_0x40aacd=>[_0x40aacd,null]));export default class wt extends _0x5d8833{static get[_0xf102('0x36')](){return[_0x3bbc0b];}[_0xf102('0x79')](){const _0x40af49=this['editor'];if(!_0x40af49[_0xf102('0x61')][_0xf102('0x30')]('TableClipboard'))return;const _0x223397=_0x40af49[_0xf102('0x61')][_0xf102('0x52')](_0xf102('0x5b')),_0x5296a8=_0x40af49[_0xf102('0x61')]['get'](_0xf102('0x97')),_0xcd4d41=_0x40af49[_0xf102('0x61')]['get'](_0x3bbc0b),_0x998718=_0x40af49[_0xf102('0x61')][_0xf102('0x52')](_0xf102('0x5'));_0xcd4d41[_0xf102('0x22')]['push'](_0xf102('0x2e'),_0xf102('0x54')),_0x40af49[_0xf102('0x70')]['schema'][_0xf102('0xc')](_0xf102('0x24'),{'allowIn':_0xf102('0x43'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x40af49[_0xf102('0x80')][_0xf102('0x6b')]({'model':_0xf102('0x24'),'view':_0xf102('0x3a')});let _0x509e8b=null;_0x40af49[_0xf102('0x70')]['on'](_0xf102('0x9d'),(_0x6fe525,_0x4445a4)=>{const [_0x425ea2,_0xeb8ab]=_0x4445a4,_0x21f06e=_0x4445a4[_0x4445a4[_0xf102('0xa1')]-0x1];_0x21f06e&&_0x21f06e['forceDefaultExecution']||_0x223397['_isForcedDefaultExecutionBlock']||this[_0xf102('0x76')]['commands'][_0xf102('0x52')](_0xf102('0x60'))[_0xf102('0x5e')]&&function(_0x13d66b,_0x197779,_0x53abf5,_0x326679,_0x1ff022){if(_0x197779&&!_0x197779['is'](_0xf102('0xd')))return!0x1;const _0x2e7948=_0x1ff022[_0xf102('0x29')](_0x13d66b,_0x53abf5);if(!_0x2e7948||!fe(_0x2e7948,void 0x0,_0x326679))return!0x1;const _0x5cade8=_0x326679[_0xf102('0x93')](_0x53abf5[_0xf102('0x33')][_0xf102('0x3c')]);if(!_0x5cade8[_0xf102('0xa1')])return!0x1;const _0x537343=_0x5cade8[0x0][_0xf102('0x91')](_0xf102('0x8d')),_0x3e5fea=_0x326679[_0xf102('0x68')](_0x5cade8),_0xb9a8e0=_0x326679[_0xf102('0x4c')](_0x5cade8),_0x5e1310={'startRow':_0x3e5fea[_0xf102('0xa2')],'endRow':_0x3e5fea[_0xf102('0x20')],'startColumn':_0xb9a8e0[_0xf102('0xa2')],'endColumn':_0xb9a8e0[_0xf102('0x20')]};return 0x1==_0x5cade8[_0xf102('0xa1')]&&(_0x5e1310[_0xf102('0x7f')]+=_0x326679[_0xf102('0x85')](_0x2e7948)-0x1,_0x5e1310['endColumn']+=_0x326679['getColumns'](_0x2e7948)-0x1),fe(_0x537343,_0x5e1310,_0x326679);}(_0x425ea2,_0xeb8ab,_0x40af49[_0xf102('0x70')],_0x5296a8,_0x998718)&&(_0x6fe525['stop'](),_0x509e8b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x40af49[_0xf102('0x70')][_0xf102('0x4f')](()=>{_0x40af49[_0xf102('0x70')]['insertContent'](_0x4445a4[0x0],_0x4445a4[0x1],_0x4445a4[0x2],{'forceDefaultExecution':!0x0});const _0x463a50=_0x4aecfa(),{rowInsertionRanges:_0x41d577,columnInsertionRanges:_0x1469bc,insertionRanges:_0x33f8d8,deletionRanges:_0x50e02a,cells:_0xae3c4c}=_0x509e8b;_0x41d577['length']&&_0x223397['markMultiRangeInsertion'](_0x41d577,_0xf102('0x2e'),{'tablePasteChainId':_0x463a50}),_0x1469bc['length']&&_0x223397['markMultiRangeInsertion'](_0x1469bc,_0xf102('0x54'),{'tablePasteChainId':_0x463a50}),_0x33f8d8['length']&&_0x223397['markMultiRangeInsertion'](_0x33f8d8,_0xf102('0x25'),{'tablePasteChainId':_0x463a50,'skipNestingCheck':!0x0}),_0x50e02a[_0xf102('0xa1')]&&_0x223397[_0xf102('0x8a')](_0x50e02a,'tablePaste',{'tablePasteChainId':_0x463a50,'skipNestingCheck':!0x0});const _0x1961a3=_0x223397[_0xf102('0x64')](_0xae3c4c['map'](({element:_0x33113b})=>_0x33113b),{'formatGroupId':_0x4aecfa()},[],_0xf102('0x9a'),{'tablePasteChainId':_0x463a50});if(_0x1961a3){const _0x88233f=_0x1961a3[_0xf102('0x27')](),_0x54c52c=[];for(const {element:_0x43320d,attributes:_0x3b7e41}of _0xae3c4c){if(!_0x3b7e41)continue;const _0x4d54e8=_0x40af49[_0xf102('0x70')]['createRangeOn'](_0x43320d),_0x15c382=_0x88233f['find'](_0x2d81de=>_0x2d81de[_0xf102('0x72')]()[_0xf102('0xf')](_0x4d54e8));_0x15c382&&_0x54c52c[_0xf102('0x2d')]([_0x15c382[_0xf102('0x74')],_0x3b7e41]);}_0x54c52c[_0xf102('0xa1')]&&_0x1961a3[_0xf102('0x16')]('markerAttributes',Object['fromEntries'](_0x54c52c));}_0x509e8b=null;}));},{'priority':_0x37d1d1['high']+0xa}),_0x40af49['plugins'][_0xf102('0x52')](_0xf102('0x5'))['on'](_0xf102('0x7'),(_0x14dcaf,_0x128013)=>{const [_0x310bdb,_0x42f1cc,,_0x318358]=_0x128013;if(!_0x509e8b)return;_0x14dcaf[_0xf102('0x38')]();const _0x499645=_0x310bdb[_0xf102('0x7a')],_0x5708d8=_0x42f1cc,_0x3068ec=ce(_0x499645),_0x30295c=ce(_0x5708d8);_0x14dcaf[_0xf102('0x88')]=_0x499645;let _0x130faa=null,_0x52d668=null;if(_0x30295c||_0x3068ec){if(_0x3068ec&&!_0x30295c){_0x318358[_0xf102('0x1d')](_0x499645[_0xf102('0x82')](0x0));for(const _0x28696 of Array['from'](_0x5708d8[_0xf102('0x95')]()))_0x318358['insert'](_0x28696,_0x499645,_0xf102('0x39'));const _0x5c7681=_0x509e8b['rowInsertionIndexes'][_0xf102('0x32')](_0x310bdb[_0xf102('0x9')]),_0x452651=_0x509e8b['columnInsertionIndexes'][_0xf102('0x32')](_0x310bdb[_0xf102('0x1')]);_0x5c7681||_0x452651||(_0x130faa=_0x318358['createRangeIn'](_0x499645));}else _0x30295c&&!_0x3068ec&&(_0x52d668=_0x318358[_0xf102('0x19')](_0x499645));}else{const _0x5864b8=_0x318358[_0xf102('0x6d')](_0xf102('0x24')),_0x481e5e=_0x318358['createElement'](_0xf102('0x24'));_0x318358[_0xf102('0x3b')](_0x318358[_0xf102('0x19')](_0x499645),_0x481e5e),_0x318358[_0xf102('0x89')](_0x5864b8,_0x499645,0x0);for(const _0x37c29f of Array['from'](_0x5708d8['getChildren']()))_0x318358['insert'](_0x37c29f,_0x5864b8,_0xf102('0x39'));_0x130faa=_0x318358['createRangeOn'](_0x5864b8),_0x52d668=_0x318358[_0xf102('0x13')](_0x481e5e);}const _0x1fcb43=Array[_0xf102('0x3f')](_0x5708d8[_0xf102('0x7d')]())[_0xf102('0x6e')](([_0x5b23fc])=>le[_0xf102('0x32')](_0x5b23fc));_0x509e8b[_0xf102('0x9e')]['push']({'element':_0x499645,'attributes':_0x1fcb43[_0xf102('0xa1')]?Object[_0xf102('0x10')](_0x1fcb43):null}),_0x130faa&&_0x509e8b[_0xf102('0x9b')][_0xf102('0x2d')](_0x130faa),_0x52d668&&_0x509e8b[_0xf102('0x1a')]['push'](_0x52d668);},{'priority':_0xf102('0x44')}),_0x5296a8['on']('insertColumns',(_0xf179e,_0x3d0c2c)=>{const [_0x5a6959,_0x5afba2={}]=_0x3d0c2c;if(!_0x509e8b)return;const _0x32c3a4=_0x5afba2['at']||0x0,_0x425f68=_0x5afba2['columns']||0x1;_0x509e8b['columnInsertionIndexes']=new Array(_0x425f68)[_0xf102('0x1c')](_0x32c3a4)[_0xf102('0x42')]((_0x414d5c,_0x4ac175)=>_0x414d5c+_0x4ac175);for(const {cell:_0x1d7110}of _0x5296a8[_0xf102('0x1f')](_0x5a6959,{'startColumn':_0x32c3a4,'endColumn':_0x32c3a4+_0x425f68-0x1}))_0x509e8b['columnInsertionRanges']['push'](_0x40af49[_0xf102('0x70')][_0xf102('0x13')](_0x1d7110));},{'priority':_0xf102('0x8f')}),_0x5296a8['on'](_0xf102('0x34'),(_0x4a01df,_0x523391)=>{const [_0x181b95,_0x5d1613={}]=_0x523391;if(!_0x509e8b)return;const _0x3be05b=_0x5d1613['at']||0x0,_0x2cb952=_0x5d1613[_0xf102('0x86')]||0x1;_0x509e8b['rowInsertionIndexes']=new Array(_0x2cb952)[_0xf102('0x1c')](_0x3be05b)[_0xf102('0x42')]((_0x5a9a0f,_0x5d6756)=>_0x5a9a0f+_0x5d6756);for(const {cell:_0x1d4caf}of _0x5296a8[_0xf102('0x1f')](_0x181b95,{'startRow':_0x3be05b,'endRow':_0x3be05b+_0x2cb952-0x1}))_0x509e8b['rowInsertionRanges'][_0xf102('0x2d')](_0x40af49['model'][_0xf102('0x13')](_0x1d4caf));},{'priority':_0xf102('0x8f')}),_0x223397[_0xf102('0x5a')][_0xf102('0x73')](_0x12ae71=>{if(_0x12ae71[_0xf102('0x92')]&&_0x12ae71[_0xf102('0x92')][_0xf102('0x1b')](_0xf102('0x25')))return _0x12ae71[_0xf102('0x59')]?{}:{'type':'insertion','content':_0x2ff337(_0x40af49['locale'],_0xf102('0x7c'))};});const _0x383c9a=()=>!0x1;for(const _0x33b9f7 of[_0xf102('0x25'),_0xf102('0x54'),_0xf102('0x2e'),_0xf102('0x9a')])_0x223397[_0xf102('0x96')][_0xf102('0x69')](_0xf102('0xb'),_0x33b9f7,_0xf102('0x94'),_0x383c9a),_0x223397[_0xf102('0x96')][_0xf102('0x69')](_0xf102('0x57'),_0x33b9f7,_0xf102('0x94'),_0x383c9a),_0x223397[_0xf102('0x96')][_0xf102('0x69')](_0xf102('0x77'),_0x33b9f7,_0xf102('0x94'),_0x383c9a);_0x223397[_0xf102('0x96')]['registerCustomCallback'](_0xf102('0x77'),_0xf102('0x9a'),'discard',_0x383c9a),_0x223397[_0xf102('0x96')][_0xf102('0x69')](_0xf102('0x77'),_0xf102('0x9a'),'accept',(_0x219f86,_0x4861ff,_0x54e9bb)=>{const _0x21f109=_0x219f86[_0xf102('0x42')](_0x2f1bd2=>_0x2f1bd2['getContainedElement']())['filter'](_0x1cfa65=>_0x1cfa65),_0x194ef4=new Map(_0x21f109['map'](_0x596dd5=>[_0x596dd5,null]));if(_0x509e8b)for(const {element:_0x4b0677,attributes:_0x8c6491}of _0x509e8b[_0xf102('0x9e')])_0x8c6491&&_0x194ef4[_0xf102('0x0')](_0x4b0677,_0x8c6491);else{if(_0x54e9bb&&_0x54e9bb[_0xf102('0x21')])for(const [_0x317196,_0x3fc3ea]of Object[_0xf102('0x41')](_0x54e9bb[_0xf102('0x21')])){const _0x572a4c=_0x40af49[_0xf102('0x70')][_0xf102('0x55')][_0xf102('0x52')](_0x317196),_0x2c1eba=_0x572a4c?_0x572a4c['getRange']()['getContainedElement']():null;_0x2c1eba&&_0x194ef4[_0xf102('0x0')](_0x2c1eba,_0x3fc3ea);}}_0x40af49['model'][_0xf102('0x4f')](_0x8156d4=>{for(const [_0x362da1,_0x33c9de]of _0x194ef4)_0x8156d4[_0xf102('0x67')]({...ae,..._0x33c9de},_0x362da1);});});const _0x36268d=(_0x124916,_0x4c54c7)=>{_0x223397['_suggestionFactory']['registerCustomCallback'](_0x124916,'tablePaste',_0x4c54c7,(_0x38e48b,_0x211d63,_0x168cc7)=>{_0x40af49['model'][_0xf102('0x4f')](_0x16f019=>{const _0x855962=[];for(const _0x1ba969 of _0x38e48b){const _0x42442f=_0x1ba969['start'][_0xf102('0x8c')];_0x42442f['is'](_0xf102('0x58'),_0xf102('0x24'))&&_0x855962['push'](_0x42442f);}_0x223397[_0xf102('0x96')][_0xf102('0x4')](_0x124916,null,_0x4c54c7)(_0x38e48b,_0x211d63,_0x168cc7);for(const _0x3d8287 of _0x855962)_0xf102('0x31')!=_0x3d8287[_0xf102('0x3e')][_0xf102('0x46')]&&_0x16f019[_0xf102('0x84')](_0x3d8287);});});};_0x36268d(_0xf102('0xb'),_0xf102('0x8e')),_0x36268d(_0xf102('0xb'),'discard'),_0x36268d(_0xf102('0x57'),_0xf102('0x8e')),_0x36268d(_0xf102('0x57'),_0xf102('0x1e')),_0x223397[_0xf102('0x96')][_0xf102('0x69')]('insertion',_0xf102('0x2e'),_0xf102('0x1e'),_0x2b4505=>{const _0xd8a3fc=_0x2b4505[_0xf102('0x42')](_0x5ec8dc=>_0x5ec8dc[_0xf102('0x81')]()),_0x242d52=_0xd8a3fc[0x0]['findAncestor'](_0xf102('0x8d')),{minRow:_0x2196d2,maxRow:_0x5795ab}=_0xcd4d41[_0xf102('0x47')](_0xd8a3fc);_0x5296a8[_0xf102('0x2a')](_0x242d52,{'at':_0x2196d2,'rows':_0x5795ab-_0x2196d2+0x1});}),_0x223397[_0xf102('0x96')][_0xf102('0x69')](_0xf102('0xb'),_0xf102('0x54'),_0xf102('0x1e'),_0x3776c8=>{const _0x1512d9=_0x3776c8['map'](_0x3469da=>_0x3469da[_0xf102('0x81')]()),_0x32f768=_0x1512d9[0x0][_0xf102('0x91')](_0xf102('0x8d')),{minColumn:_0x8066ea,maxColumn:_0x320967}=_0xcd4d41[_0xf102('0x47')](_0x1512d9);_0x5296a8[_0xf102('0x2')](_0x32f768,{'at':_0x8066ea,'columns':_0x320967-_0x8066ea+0x1});});const _0x5edf70=(_0x125f34,_0x147504)=>{if(!_0x147504[_0xf102('0x92')]||!_0x147504[_0xf102('0x92')]['startsWith']('tablePaste'))return;const _0x181d5e=_0x147504['attributes'][_0xf102('0x2f')],_0x338029=_0x223397['getSuggestions']()[_0xf102('0x6e')](_0x5f584e=>_0x5f584e[_0xf102('0x17')]&&_0x5f584e[_0xf102('0x45')]&&_0x5f584e[_0xf102('0x45')][_0xf102('0x2f')]==_0x181d5e);_0x338029[_0xf102('0xa1')]&&_0x147504[_0xf102('0x66')]()[_0xf102('0xa1')]!=_0x338029[_0xf102('0xa1')]&&_0x338029[_0xf102('0x63')]((_0x24044e,_0x252f3d)=>(_0x24044e[_0xf102('0x83')]=_0x252f3d,_0x252f3d[_0xf102('0x59')]=_0x24044e,_0x252f3d));};function _0x3ab965(_0x2b72b4,_0x209dfd=!0x0){const {id:_0x2d3878}=_0x223397[_0xf102('0x9f')](_0x2b72b4[_0xf102('0x78')]),_0x4e73e7=['ck-suggestion-marker',_0xf102('0x48')],_0x47001c=_0x223397[_0xf102('0x4a')][_0xf102('0x32')](_0x2b72b4['markerName']);return _0x47001c&&_0x4e73e7['push'](_0xf102('0x18')),{'classes':_0x4e73e7,'attributes':{'data-suggestion':_0x2d3878},'priority':_0x47001c&&_0x209dfd?0xbc2:0xbb8};}_0x223397['on']('suggestionLoaded',_0x5edf70,{'priority':_0xf102('0x44')}),_0x223397['on']('suggestionUnloaded',_0x5edf70,{'priority':_0xf102('0x44')}),_0x40af49[_0xf102('0x70')][_0xf102('0x33')]['registerPostFixer'](()=>{let _0x4b1d42=!0x1;const _0x4fd22d=Array['from'](_0x40af49['model'][_0xf102('0x33')][_0xf102('0x26')]['getChangedMarkers']());for(const {name:_0x2913c4,data:_0x7d7e6e}of _0x4fd22d){const {group:_0x329e87,type:_0x4b5597,id:_0x252e9f}=_0x223397[_0xf102('0x9f')](_0x2913c4);if(_0xf102('0x6')!=_0x329e87||_0xf102('0x57')!=_0x4b5597||_0x7d7e6e['oldRange'])continue;if(!_0x223397['hasSuggestion'](_0x252e9f))continue;const _0x5a8a56=_0x223397[_0xf102('0x62')](_0x252e9f)[_0xf102('0x2c')](),_0x42660e=_0x40af49[_0xf102('0x61')][_0xf102('0x52')](_0xf102('0x4e'))['me'];for(const _0x9417c3 of _0x223397[_0xf102('0x9c')]()){if(!_0x9417c3[_0xf102('0x17')]||_0x9417c3[_0xf102('0x49')]!=_0x42660e)continue;if(_0xf102('0x77')!=_0x9417c3[_0xf102('0xa')]||'tablePasteCell'!=_0x9417c3['subType'])continue;if(_0x9417c3[_0xf102('0x2c')]()[_0xf102('0x12')](_0x5be59e=>_0x5a8a56[_0xf102('0xe')](_0xd4830a=>_0xd4830a[_0xf102('0x87')](_0x5be59e,!0x0))))for(const _0x411ef4 of _0x9417c3['getAllAdjacentSuggestions']())_0x411ef4[_0xf102('0x17')]&&(_0x411ef4[_0xf102('0x1e')](),_0x4b1d42=!0x0);}}return _0x4b1d42;}),_0x40af49['model'][_0xf102('0x33')]['registerPostFixer'](_0x2f841f=>{const _0x5290ed=_0x40af49['commands'][_0xf102('0x52')](_0xf102('0x23'));if(!_0x5290ed||!_0x5290ed[_0xf102('0xa0')][_0xf102('0x30')](_0x2f841f[_0xf102('0x56')]))return!0x1;let _0x58d5ee=!0x1;const _0x2d32ac=_0x40af49['plugins']['get'](_0xf102('0x4e'))['me'],_0x4c6570=_0x40af49[_0xf102('0x70')][_0xf102('0x33')][_0xf102('0x26')]['getChanges'](),_0x251546=Array[_0xf102('0x3f')](_0x40af49[_0xf102('0x70')]['document']['differ'][_0xf102('0x7b')]())[_0xf102('0x6e')](({name:_0x2bbc03,data:_0x5dc4bc})=>{const {group:_0x5ee581,subType:_0x5f3f90,authorId:_0x38fcfe}=_0x223397[_0xf102('0x9f')](_0x2bbc03);return _0xf102('0x6')==_0x5ee581&&_0xf102('0x25')==_0x5f3f90&&_0x38fcfe==_0x2d32ac['id']&&!_0x5dc4bc['oldRange'];});for(const _0x3469c0 of _0x4c6570){if('insert'!=_0x3469c0[_0xf102('0xa')]||_0xf102('0x24')!=_0x3469c0['name']||0x1!=_0x3469c0[_0xf102('0xa1')])continue;const _0x597c84=_0x2f841f[_0xf102('0x5f')](_0x3469c0['position'],_0x3469c0['position'][_0xf102('0x75')](0x1));if(!_0x251546[_0xf102('0x98')](({data:_0x4270d1})=>_0x4270d1['newRange'][_0xf102('0xf')](_0x597c84)))for(const {name:_0x332e32,data:_0x208796}of _0x251546)if(_0x597c84[_0xf102('0x87')](_0x208796[_0xf102('0x90')])){_0x2f841f[_0xf102('0x37')](_0x332e32,{'range':_0x597c84}),_0x58d5ee=!0x0;break;}}return _0x58d5ee;}),_0x40af49[_0xf102('0x70')][_0xf102('0x33')][_0xf102('0x3d')](_0x24b7bc=>{let _0x2a5bcb=!0x1;const _0x2d380d=_0x40af49[_0xf102('0x61')][_0xf102('0x52')](_0xf102('0x4e'))['me'],_0x3a87de=_0x223397[_0xf102('0x9c')]()[_0xf102('0x6e')](_0x7cb0c7=>_0x7cb0c7[_0xf102('0x17')]&&_0x7cb0c7[_0xf102('0x49')]==_0x2d380d),_0x4a932b=new Set(),_0x586407=new Set();for(const _0x5ce94a of _0x3a87de)if(_0xf102('0x25')==_0x5ce94a[_0xf102('0x92')])for(const _0x2d8069 of _0x5ce94a[_0xf102('0x27')]()){const _0x50bed9=_0x2d8069[_0xf102('0x72')]()[_0xf102('0x81')]();if(_0x50bed9){if(_0x50bed9['is'](_0xf102('0x58'),_0xf102('0x24'))&&ce(_0x50bed9)){_0x5ce94a[_0xf102('0x2b')](_0x2d8069['name']),_0x4a932b[_0xf102('0x51')](_0x50bed9),_0x2a5bcb=!0x0;const _0x52b037=_0x50bed9[_0xf102('0x7e')],_0x16d63f=_0x50bed9[_0xf102('0x99')],_0x4f1faf=_0x52b037&&_0x52b037['is'](_0xf102('0x58'),_0xf102('0x24')),_0x142c4a=_0x16d63f&&_0x16d63f['is'](_0xf102('0x58'),_0xf102('0x24'));_0x4f1faf&&!_0x4a932b[_0xf102('0x30')](_0x52b037)&&_0x586407[_0xf102('0x51')](_0x52b037),_0x142c4a&&!_0x4a932b[_0xf102('0x30')](_0x16d63f)&&_0x586407[_0xf102('0x51')](_0x16d63f);}else _0x50bed9['is'](_0xf102('0x58'),_0xf102('0x35'))&&_0x50bed9[_0xf102('0x5d')]&&(_0x5ce94a[_0xf102('0x2b')](_0x2d8069[_0xf102('0x74')]),_0x2a5bcb=!0x0);}}else{if(_0xf102('0x9a')==_0x5ce94a['subType']){if(!_0x5ce94a[_0xf102('0x45')]||!_0x5ce94a[_0xf102('0x45')]['tablePasteChainId'])continue;const _0x4ccc44=_0x5ce94a['attributes']['markerAttributes'];if(_0x4ccc44&&Object[_0xf102('0x6a')](_0x4ccc44)[_0xf102('0xa1')])continue;const _0x2c285c=_0x5ce94a[_0xf102('0x45')][_0xf102('0x2f')];let _0x38d869=!0x0,_0x3368c6=!0x0;for(const _0x3123c1 of _0x3a87de)if(_0x3123c1[_0xf102('0x92')]&&_0x3123c1['subType'][_0xf102('0x1b')](_0xf102('0x25'))){if(!_0x3123c1[_0xf102('0x45')][_0xf102('0x2f')]){_0x3368c6=!0x1;break;}if(_0x3123c1['id']!=_0x5ce94a['id']&&_0x3123c1[_0xf102('0x45')]['tablePasteChainId']==_0x2c285c){_0x38d869=!0x1;break;}}_0x3368c6&&_0x38d869&&(_0x5ce94a[_0xf102('0x15')](),_0x2a5bcb=!0x0);}}for(const _0x36e5c0 of _0x4a932b)_0x24b7bc[_0xf102('0x1d')](_0x36e5c0);for(const _0x237804 of _0x586407)_0x24b7bc[_0xf102('0x84')](_0x237804);return _0x2a5bcb;}),_0x40af49[_0xf102('0x80')][_0xf102('0x8b')]('editingDowncast')['markerToHighlight']({'model':_0xf102('0x3'),'view':(_0x52b1ec,_0xaad1b1)=>_0x3ab965(_0x52b1ec),'converterPriority':_0xf102('0x44')}),_0x40af49['conversion'][_0xf102('0x8b')]('dataDowncast')[_0xf102('0x6c')]({'model':_0xf102('0x3'),'view':(_0xa5c760,_0x4932e0)=>_0x4932e0[_0xf102('0x8')][_0xf102('0x40')]?_0x3ab965(_0xa5c760,!0x1):null,'converterPriority':_0xf102('0x44')});const _0x45dffe=_0x40af49[_0xf102('0x6f')]['view'];this[_0xf102('0x28')](_0x45dffe[_0xf102('0x33')],_0xf102('0x5c'),(_0x801124,_0x58d1ce)=>{const _0x528fd5=[];for(const _0x511daa of _0x45dffe[_0xf102('0x19')](_0x58d1ce['content'])['getItems']())_0x511daa['is'](_0xf102('0x58'),'suggestion-td')&&_0x528fd5[_0xf102('0x2d')](_0x511daa);_0x45dffe['change'](_0x19d6cd=>{for(const _0x1d8e70 of _0x528fd5)_0x19d6cd[_0xf102('0x14')](_0x19d6cd[_0xf102('0x19')](_0x1d8e70),_0x19d6cd[_0xf102('0x71')](_0x1d8e70)),_0x19d6cd['remove'](_0x1d8e70);});});}}function ce(_0x4bad79){if(_0x4bad79[_0xf102('0x5d')])return!0x0;const _0x4831e0=_0x4bad79[_0xf102('0x82')](0x0);return _0x4831e0['is'](_0xf102('0x58'),'paragraph')&&_0x4831e0[_0xf102('0x5d')];}function fe(_0x2830bd,_0x4bf71f={},_0x12f7b1){for(const {isAnchor:_0x3cd9da,cellHeight:_0x3f3ce4,cellWidth:_0x195802}of _0x12f7b1[_0xf102('0x1f')](_0x2830bd,{'includeAllSlots':!0x0,..._0x4bf71f}))if(!_0x3cd9da||0x1!=_0x3f3ce4||0x1!=_0x195802)return!0x1;return!0x0;}
|
|
23
|
+
const _0x3862=['deletion','markers','low','editor','getColumns','cell','plugins','TableUtils','filter','oldRange','document','tableCellHorizontalAlignment','differ','start','suggestionUnloaded','elementToElement','getChild','insertContent','push','unwrap','return','register','_isForcedDefaultExecutionBlock','get','includes','suggestionLoaded','high','updateMarker','createTableWalker','paragraph','add','selection','tablePaste','join','end','registerCustomCallback','subType','tableCell','tableCellBorderStyle','createRangeOn','previous','createRangeIn','listenTo','createRange','from','fromEntries','tableCellVerticalAlignment','_getCoordsForCells','insertion','accept','afterInit','registerPostFixer','discard','documentSelection','tablePasteChainId','tableCellBackgroundColor','getItems','hasSuggestion','getSuggestionCallback','next','markMultiRangeBlockFormat','getRanges','position','rows','nodeAfter','Users','schema','element','markerToHighlight','row','map','createElement','markMultiRangeDeletion','setAttribute','remove','tablePasteCell','has','columnInsertionIndexes','dataDowncast','getAllAdjacentSuggestions','nextSibling','requires','conversion','isEqual','getSelectionAffectedTableCells','registerDescriptionCallback','_createdBatches','getSuggestions','keys','change','model','startsWith','set','isEmpty','name','table','newRange','insertRows','containsRange','rowInsertionIndexes','commands','_suggestionFactory','TrackChangesEditing','showSuggestionHighlights','tableCellBorderWidth','getChanges','stop','author','ck-suggestion-marker-insertion','endRow','endColumn','deletionRanges','for','content','forceDefaultExecution','getChildren','tableCellSuggestion','markMultiRangeInsertion','attributes','suggestion:formatBlock:tablePasteCell','getShiftedBy','value','some','cells','getTableIfOnlyTableInContent','previousSibling','editing','getSuggestion','removeRows','rootName','every','find','reduce','first','createPositionBefore','TableClipboard','markerName','tablePasteColumn','editingDowncast','_splitMarkerName','insert','removeMarker','getMarkers','fill','tablePasteRow','move','redo','getRows','getContainedElement','insertColumns','column','_descriptionFactory','suggestion','formatBlock','markerAttributes','view','getChangedMarkers','isInContent','_tablePostFixingSubtypes','length','getRange','activeMarkers','findAncestor','columns','suggestion-td','batch','_replaceTableSlotCell','last','locale'];(function(_0x44aecd,_0x38622e){const _0x28c9e0=function(_0x255b1e){while(--_0x255b1e){_0x44aecd['push'](_0x44aecd['shift']());}};_0x28c9e0(++_0x38622e);}(_0x3862,0x184));const _0x28c9=function(_0x44aecd,_0x38622e){_0x44aecd=_0x44aecd-0x0;let _0x28c9e0=_0x3862[_0x44aecd];return _0x28c9e0;};import{getTranslation as _0x6f4cb8}from'../utils/common-translations';import{Plugin as _0x38c12e}from'ckeditor5/src/core';import{uid as _0x2c7fe8,priorities as _0x377691}from'ckeditor5/src/utils';import _0x25a472 from'./table';const le=[_0x28c9('0x36'),'tableCellBorderColor',_0x28c9('0x9d'),_0x28c9('0x82'),_0x28c9('0xa5'),_0x28c9('0x5'),'tableCellPadding'],ae=Object[_0x28c9('0xa4')](le[_0x28c9('0x14')](_0x308f54=>[_0x308f54,null]));export default class wt extends _0x38c12e{static get[_0x28c9('0x1f')](){return[_0x25a472];}[_0x28c9('0x0')](){const _0x4585d3=this[_0x28c9('0x7a')];if(!_0x4585d3[_0x28c9('0x7d')]['has'](_0x28c9('0x55')))return;const _0xef5e97=_0x4585d3[_0x28c9('0x7d')][_0x28c9('0x8e')](_0x28c9('0x34')),_0x45e433=_0x4585d3[_0x28c9('0x7d')]['get'](_0x28c9('0x7e')),_0x368641=_0x4585d3[_0x28c9('0x7d')][_0x28c9('0x8e')](_0x25a472),_0x38eb3c=_0x4585d3['plugins'][_0x28c9('0x8e')](_0x28c9('0x55'));_0x368641[_0x28c9('0x6c')]['push'](_0x28c9('0x5e'),_0x28c9('0x57')),_0x4585d3[_0x28c9('0x28')][_0x28c9('0x10')][_0x28c9('0x8c')]('tableCellSuggestion',{'allowIn':_0x28c9('0x9c'),'allowContentOf':_0x28c9('0x9c'),'isLimit':!0x0}),_0x4585d3[_0x28c9('0x20')][_0x28c9('0x86')]({'model':'tableCellSuggestion','view':_0x28c9('0x72')});let _0x2230f1=null;_0x4585d3[_0x28c9('0x28')]['on']('insertContent',(_0x38a04c,_0x168ba7)=>{const [_0x430f5d,_0x5f1e4f]=_0x168ba7,_0x292ae2=_0x168ba7[_0x168ba7[_0x28c9('0x6d')]-0x1];_0x292ae2&&_0x292ae2[_0x28c9('0x40')]||_0xef5e97[_0x28c9('0x8d')]||this[_0x28c9('0x7a')][_0x28c9('0x32')][_0x28c9('0x8e')]('trackChanges')[_0x28c9('0x47')]&&function(_0x25fe26,_0x1787e7,_0xb85c7e,_0x3b02cc,_0xea42a8){if(_0x1787e7&&!_0x1787e7['is'](_0x28c9('0x3')))return!0x1;const _0x3f8556=_0xea42a8[_0x28c9('0x4a')](_0x25fe26,_0xb85c7e);if(!_0x3f8556||!fe(_0x3f8556,void 0x0,_0x3b02cc))return!0x1;const _0x1c139b=_0x3b02cc[_0x28c9('0x22')](_0xb85c7e[_0x28c9('0x81')][_0x28c9('0x96')]);if(!_0x1c139b['length'])return!0x1;const _0x5bbd5a=_0x1c139b[0x0][_0x28c9('0x70')]('table'),_0x1e7b1b=_0x3b02cc['getRowIndexes'](_0x1c139b),_0x2582e1=_0x3b02cc['getColumnIndexes'](_0x1c139b),_0x47f1be={'startRow':_0x1e7b1b[_0x28c9('0x53')],'endRow':_0x1e7b1b[_0x28c9('0x75')],'startColumn':_0x2582e1['first'],'endColumn':_0x2582e1['last']};return 0x1==_0x1c139b[_0x28c9('0x6d')]&&(_0x47f1be[_0x28c9('0x3b')]+=_0x3b02cc[_0x28c9('0x61')](_0x3f8556)-0x1,_0x47f1be[_0x28c9('0x3c')]+=_0x3b02cc[_0x28c9('0x7b')](_0x3f8556)-0x1),fe(_0x5bbd5a,_0x47f1be,_0x3b02cc);}(_0x430f5d,_0x5f1e4f,_0x4585d3[_0x28c9('0x28')],_0x45e433,_0x38eb3c)&&(_0x38a04c[_0x28c9('0x38')](),_0x2230f1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4585d3['model'][_0x28c9('0x27')](()=>{_0x4585d3['model'][_0x28c9('0x88')](_0x168ba7[0x0],_0x168ba7[0x1],_0x168ba7[0x2],{'forceDefaultExecution':!0x0});const _0x280914=_0x2c7fe8(),{rowInsertionRanges:_0x167c17,columnInsertionRanges:_0x1ef5a7,insertionRanges:_0x3d015a,deletionRanges:_0x235850,cells:_0x3a2e03}=_0x2230f1;_0x167c17[_0x28c9('0x6d')]&&_0xef5e97[_0x28c9('0x43')](_0x167c17,_0x28c9('0x5e'),{'tablePasteChainId':_0x280914}),_0x1ef5a7['length']&&_0xef5e97[_0x28c9('0x43')](_0x1ef5a7,_0x28c9('0x57'),{'tablePasteChainId':_0x280914}),_0x3d015a['length']&&_0xef5e97[_0x28c9('0x43')](_0x3d015a,'tablePaste',{'tablePasteChainId':_0x280914,'skipNestingCheck':!0x0}),_0x235850[_0x28c9('0x6d')]&&_0xef5e97[_0x28c9('0x16')](_0x235850,'tablePaste',{'tablePasteChainId':_0x280914,'skipNestingCheck':!0x0});const _0x3747c1=_0xef5e97[_0x28c9('0xa')](_0x3a2e03['map'](({element:_0x310180})=>_0x310180),{'formatGroupId':_0x2c7fe8()},[],_0x28c9('0x19'),{'tablePasteChainId':_0x280914});if(_0x3747c1){const _0x2f7d1d=_0x3747c1[_0x28c9('0x5c')](),_0x5dd47b=[];for(const {element:_0x5b252b,attributes:_0x3a96b5}of _0x3a2e03){if(!_0x3a96b5)continue;const _0x3d3399=_0x4585d3[_0x28c9('0x28')][_0x28c9('0x9e')](_0x5b252b),_0x49444e=_0x2f7d1d[_0x28c9('0x51')](_0x505fdb=>_0x505fdb[_0x28c9('0x6e')]()[_0x28c9('0x21')](_0x3d3399));_0x49444e&&_0x5dd47b[_0x28c9('0x89')]([_0x49444e[_0x28c9('0x2c')],_0x3a96b5]);}_0x5dd47b[_0x28c9('0x6d')]&&_0x3747c1[_0x28c9('0x17')](_0x28c9('0x68'),Object[_0x28c9('0xa4')](_0x5dd47b));}_0x2230f1=null;}));},{'priority':_0x377691[_0x28c9('0x91')]+0xa}),_0x4585d3[_0x28c9('0x7d')][_0x28c9('0x8e')]('TableClipboard')['on'](_0x28c9('0x74'),(_0x3067cd,_0x5807f6)=>{const [_0x309aa8,_0x33a726,,_0x44c87c]=_0x5807f6;if(!_0x2230f1)return;_0x3067cd[_0x28c9('0x38')]();const _0x15f1e2=_0x309aa8[_0x28c9('0x7c')],_0x1c50f9=_0x33a726,_0x3ec4e3=ce(_0x15f1e2),_0x5b4c52=ce(_0x1c50f9);_0x3067cd[_0x28c9('0x8b')]=_0x15f1e2;let _0xbf9129=null,_0x3ca1ea=null;if(_0x5b4c52||_0x3ec4e3){if(_0x3ec4e3&&!_0x5b4c52){_0x44c87c[_0x28c9('0x18')](_0x15f1e2['getChild'](0x0));for(const _0x50b3ac of Array[_0x28c9('0xa3')](_0x1c50f9[_0x28c9('0x41')]()))_0x44c87c[_0x28c9('0x5a')](_0x50b3ac,_0x15f1e2,_0x28c9('0x99'));const _0x34726f=_0x2230f1[_0x28c9('0x31')][_0x28c9('0x8f')](_0x309aa8[_0x28c9('0x13')]),_0x11b461=_0x2230f1[_0x28c9('0x1b')][_0x28c9('0x8f')](_0x309aa8[_0x28c9('0x64')]);_0x34726f||_0x11b461||(_0xbf9129=_0x44c87c['createRangeIn'](_0x15f1e2));}else _0x5b4c52&&!_0x3ec4e3&&(_0x3ca1ea=_0x44c87c[_0x28c9('0xa0')](_0x15f1e2));}else{const _0x2d78ff=_0x44c87c['createElement'](_0x28c9('0x42')),_0x13862b=_0x44c87c[_0x28c9('0x15')](_0x28c9('0x42'));_0x44c87c['wrap'](_0x44c87c[_0x28c9('0xa0')](_0x15f1e2),_0x13862b),_0x44c87c[_0x28c9('0x5a')](_0x2d78ff,_0x15f1e2,0x0);for(const _0x236699 of Array[_0x28c9('0xa3')](_0x1c50f9[_0x28c9('0x41')]()))_0x44c87c[_0x28c9('0x5a')](_0x236699,_0x2d78ff,'end');_0xbf9129=_0x44c87c[_0x28c9('0x9e')](_0x2d78ff),_0x3ca1ea=_0x44c87c[_0x28c9('0x9e')](_0x13862b);}const _0x30a393=Array[_0x28c9('0xa3')](_0x1c50f9['getAttributes']())[_0x28c9('0x7f')](([_0xfec6f0])=>le[_0x28c9('0x8f')](_0xfec6f0));_0x2230f1[_0x28c9('0x49')]['push']({'element':_0x15f1e2,'attributes':_0x30a393[_0x28c9('0x6d')]?Object[_0x28c9('0xa4')](_0x30a393):null}),_0xbf9129&&_0x2230f1['insertionRanges'][_0x28c9('0x89')](_0xbf9129),_0x3ca1ea&&_0x2230f1[_0x28c9('0x3d')][_0x28c9('0x89')](_0x3ca1ea);},{'priority':_0x28c9('0x91')}),_0x45e433['on'](_0x28c9('0x63'),(_0x5de655,_0x585944)=>{const [_0x2a5314,_0x5bf7ab={}]=_0x585944;if(!_0x2230f1)return;const _0x4f36cd=_0x5bf7ab['at']||0x0,_0x265ede=_0x5bf7ab[_0x28c9('0x71')]||0x1;_0x2230f1['columnInsertionIndexes']=new Array(_0x265ede)[_0x28c9('0x5d')](_0x4f36cd)[_0x28c9('0x14')]((_0x547f04,_0x5a6dd6)=>_0x547f04+_0x5a6dd6);for(const {cell:_0x4cd3d8}of _0x45e433[_0x28c9('0x93')](_0x2a5314,{'startColumn':_0x4f36cd,'endColumn':_0x4f36cd+_0x265ede-0x1}))_0x2230f1['columnInsertionRanges']['push'](_0x4585d3[_0x28c9('0x28')]['createRangeOn'](_0x4cd3d8));},{'priority':_0x28c9('0x79')}),_0x45e433['on'](_0x28c9('0x2f'),(_0x1050dc,_0x2f2b51)=>{const [_0x51d2b6,_0x4cca1f={}]=_0x2f2b51;if(!_0x2230f1)return;const _0x125e1e=_0x4cca1f['at']||0x0,_0x344d0f=_0x4cca1f[_0x28c9('0xd')]||0x1;_0x2230f1[_0x28c9('0x31')]=new Array(_0x344d0f)[_0x28c9('0x5d')](_0x125e1e)[_0x28c9('0x14')]((_0x14f0b2,_0x245414)=>_0x14f0b2+_0x245414);for(const {cell:_0x341334}of _0x45e433[_0x28c9('0x93')](_0x51d2b6,{'startRow':_0x125e1e,'endRow':_0x125e1e+_0x344d0f-0x1}))_0x2230f1['rowInsertionRanges'][_0x28c9('0x89')](_0x4585d3[_0x28c9('0x28')][_0x28c9('0x9e')](_0x341334));},{'priority':'low'}),_0xef5e97[_0x28c9('0x65')][_0x28c9('0x23')](_0x216810=>{if(_0x216810[_0x28c9('0x9b')]&&_0x216810[_0x28c9('0x9b')][_0x28c9('0x29')](_0x28c9('0x97')))return _0x216810['previous']?{}:{'type':_0x28c9('0xa7'),'content':_0x6f4cb8(_0x4585d3[_0x28c9('0x76')],'*Replace\x20table\x20cells*')};});const _0x51aaec=()=>!0x1;for(const _0x1ace84 of[_0x28c9('0x97'),'tablePasteColumn',_0x28c9('0x5e'),_0x28c9('0x19')])_0xef5e97[_0x28c9('0x33')][_0x28c9('0x9a')](_0x28c9('0xa7'),_0x1ace84,_0x28c9('0x98'),_0x51aaec),_0xef5e97['_suggestionFactory'][_0x28c9('0x9a')](_0x28c9('0x77'),_0x1ace84,'join',_0x51aaec),_0xef5e97['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ace84,_0x28c9('0x98'),_0x51aaec);_0xef5e97[_0x28c9('0x33')]['registerCustomCallback']('formatBlock','tablePasteCell',_0x28c9('0x2'),_0x51aaec),_0xef5e97[_0x28c9('0x33')][_0x28c9('0x9a')](_0x28c9('0x67'),_0x28c9('0x19'),'accept',(_0x5aec89,_0x54729d,_0x191c6d)=>{const _0x3bb88a=_0x5aec89['map'](_0x216d92=>_0x216d92['getContainedElement']())[_0x28c9('0x7f')](_0x1deb1c=>_0x1deb1c),_0x56c954=new Map(_0x3bb88a[_0x28c9('0x14')](_0x25732e=>[_0x25732e,null]));if(_0x2230f1)for(const {element:_0x4c89e5,attributes:_0x1e7d01}of _0x2230f1[_0x28c9('0x49')])_0x1e7d01&&_0x56c954[_0x28c9('0x2a')](_0x4c89e5,_0x1e7d01);else{if(_0x191c6d&&_0x191c6d[_0x28c9('0x68')])for(const [_0x5d3b8e,_0x2264c5]of Object['entries'](_0x191c6d[_0x28c9('0x68')])){const _0x371e83=_0x4585d3[_0x28c9('0x28')][_0x28c9('0x78')]['get'](_0x5d3b8e),_0x40e028=_0x371e83?_0x371e83[_0x28c9('0x6e')]()[_0x28c9('0x62')]():null;_0x40e028&&_0x56c954[_0x28c9('0x2a')](_0x40e028,_0x2264c5);}}_0x4585d3[_0x28c9('0x28')][_0x28c9('0x27')](_0x16f392=>{for(const [_0x46ebe3,_0x4eee3b]of _0x56c954)_0x16f392['setAttributes']({...ae,..._0x4eee3b},_0x46ebe3);});});const _0x4d050a=(_0x282acb,_0x17b1d7)=>{_0xef5e97['_suggestionFactory'][_0x28c9('0x9a')](_0x282acb,_0x28c9('0x97'),_0x17b1d7,(_0x5da849,_0x1402eb,_0x12e102)=>{_0x4585d3[_0x28c9('0x28')][_0x28c9('0x27')](_0x20809d=>{const _0x1e2b76=[];for(const _0x35f422 of _0x5da849){const _0x4cda66=_0x35f422[_0x28c9('0x84')][_0x28c9('0xe')];_0x4cda66['is'](_0x28c9('0x11'),'tableCellSuggestion')&&_0x1e2b76[_0x28c9('0x89')](_0x4cda66);}_0xef5e97['_suggestionFactory'][_0x28c9('0x8')](_0x282acb,null,_0x17b1d7)(_0x5da849,_0x1402eb,_0x12e102);for(const _0x17f2cb of _0x1e2b76)'$graveyard'!=_0x17f2cb['root'][_0x28c9('0x4f')]&&_0x20809d[_0x28c9('0x8a')](_0x17f2cb);});});};_0x4d050a(_0x28c9('0xa7'),_0x28c9('0xa8')),_0x4d050a('insertion',_0x28c9('0x2')),_0x4d050a(_0x28c9('0x77'),'accept'),_0x4d050a(_0x28c9('0x77'),_0x28c9('0x2')),_0xef5e97[_0x28c9('0x33')]['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3df412=>{const _0x3fd298=_0x3df412['map'](_0x56ce85=>_0x56ce85[_0x28c9('0x62')]()),_0x17f72e=_0x3fd298[0x0][_0x28c9('0x70')](_0x28c9('0x2d')),{minRow:_0x29de52,maxRow:_0x230424}=_0x368641[_0x28c9('0xa6')](_0x3fd298);_0x45e433[_0x28c9('0x4e')](_0x17f72e,{'at':_0x29de52,'rows':_0x230424-_0x29de52+0x1});}),_0xef5e97[_0x28c9('0x33')][_0x28c9('0x9a')](_0x28c9('0xa7'),_0x28c9('0x57'),_0x28c9('0x2'),_0x44bacc=>{const _0x3376e4=_0x44bacc[_0x28c9('0x14')](_0x1a0930=>_0x1a0930[_0x28c9('0x62')]()),_0x33777b=_0x3376e4[0x0][_0x28c9('0x70')](_0x28c9('0x2d')),{minColumn:_0x1b66c9,maxColumn:_0x16b83e}=_0x368641[_0x28c9('0xa6')](_0x3376e4);_0x45e433['removeColumns'](_0x33777b,{'at':_0x1b66c9,'columns':_0x16b83e-_0x1b66c9+0x1});});const _0x18b541=(_0x45fb71,_0x7f37d)=>{if(!_0x7f37d['subType']||!_0x7f37d['subType'][_0x28c9('0x29')]('tablePaste'))return;const _0x31ca99=_0x7f37d[_0x28c9('0x44')][_0x28c9('0x4')],_0x2ec27d=_0xef5e97['getSuggestions']()['filter'](_0x3c7d07=>_0x3c7d07['isInContent']&&_0x3c7d07['attributes']&&_0x3c7d07['attributes'][_0x28c9('0x4')]==_0x31ca99);_0x2ec27d['length']&&_0x7f37d['getAllAdjacentSuggestions']()[_0x28c9('0x6d')]!=_0x2ec27d[_0x28c9('0x6d')]&&_0x2ec27d[_0x28c9('0x52')]((_0x4cbc0c,_0x128000)=>(_0x4cbc0c[_0x28c9('0x9')]=_0x128000,_0x128000[_0x28c9('0x9f')]=_0x4cbc0c,_0x128000));};function _0x3809fe(_0x30911f,_0x4073c5=!0x0){const {id:_0xa90dab}=_0xef5e97['_splitMarkerName'](_0x30911f[_0x28c9('0x56')]),_0x27aaa4=['ck-suggestion-marker',_0x28c9('0x3a')],_0xc340c4=_0xef5e97[_0x28c9('0x6f')][_0x28c9('0x8f')](_0x30911f[_0x28c9('0x56')]);return _0xc340c4&&_0x27aaa4[_0x28c9('0x89')]('ck-suggestion-marker--active'),{'classes':_0x27aaa4,'attributes':{'data-suggestion':_0xa90dab},'priority':_0xc340c4&&_0x4073c5?0xbc2:0xbb8};}_0xef5e97['on'](_0x28c9('0x90'),_0x18b541,{'priority':_0x28c9('0x91')}),_0xef5e97['on'](_0x28c9('0x85'),_0x18b541,{'priority':_0x28c9('0x91')}),_0x4585d3[_0x28c9('0x28')][_0x28c9('0x81')][_0x28c9('0x1')](()=>{let _0x447df4=!0x1;const _0x2c3a79=Array['from'](_0x4585d3[_0x28c9('0x28')][_0x28c9('0x81')]['differ'][_0x28c9('0x6a')]());for(const {name:_0x50669e,data:_0x13e763}of _0x2c3a79){const {group:_0x420b61,type:_0x2f4780,id:_0x64d22d}=_0xef5e97[_0x28c9('0x59')](_0x50669e);if(_0x28c9('0x66')!=_0x420b61||_0x28c9('0x77')!=_0x2f4780||_0x13e763[_0x28c9('0x80')])continue;if(!_0xef5e97[_0x28c9('0x7')](_0x64d22d))continue;const _0x45b769=_0xef5e97[_0x28c9('0x4d')](_0x64d22d)['getRanges'](),_0x3a1c1d=_0x4585d3[_0x28c9('0x7d')][_0x28c9('0x8e')](_0x28c9('0xf'))['me'];for(const _0x4a7151 of _0xef5e97[_0x28c9('0x25')]()){if(!_0x4a7151[_0x28c9('0x6b')]||_0x4a7151[_0x28c9('0x39')]!=_0x3a1c1d)continue;if(_0x28c9('0x67')!=_0x4a7151['type']||_0x28c9('0x19')!=_0x4a7151[_0x28c9('0x9b')])continue;if(_0x4a7151[_0x28c9('0xb')]()[_0x28c9('0x50')](_0x3ebca5=>_0x45b769[_0x28c9('0x48')](_0x4fd10e=>_0x4fd10e[_0x28c9('0x30')](_0x3ebca5,!0x0))))for(const _0x40e298 of _0x4a7151[_0x28c9('0x1d')]())_0x40e298[_0x28c9('0x6b')]&&(_0x40e298[_0x28c9('0x2')](),_0x447df4=!0x0);}}return _0x447df4;}),_0x4585d3[_0x28c9('0x28')][_0x28c9('0x81')][_0x28c9('0x1')](_0x29558c=>{const _0x3a2d8c=_0x4585d3[_0x28c9('0x32')]['get'](_0x28c9('0x60'));if(!_0x3a2d8c||!_0x3a2d8c[_0x28c9('0x24')]['has'](_0x29558c[_0x28c9('0x73')]))return!0x1;let _0x92317e=!0x1;const _0x273fe0=_0x4585d3[_0x28c9('0x7d')][_0x28c9('0x8e')](_0x28c9('0xf'))['me'],_0x41af4e=_0x4585d3[_0x28c9('0x28')][_0x28c9('0x81')]['differ'][_0x28c9('0x37')](),_0x550aba=Array['from'](_0x4585d3[_0x28c9('0x28')][_0x28c9('0x81')][_0x28c9('0x83')][_0x28c9('0x6a')]())[_0x28c9('0x7f')](({name:_0x3561c2,data:_0x52e7c1})=>{const {group:_0x2c92df,subType:_0x5ebf72,authorId:_0x15bff0}=_0xef5e97['_splitMarkerName'](_0x3561c2);return _0x28c9('0x66')==_0x2c92df&&_0x28c9('0x97')==_0x5ebf72&&_0x15bff0==_0x273fe0['id']&&!_0x52e7c1[_0x28c9('0x80')];});for(const _0x37bccf of _0x41af4e){if(_0x28c9('0x5a')!=_0x37bccf['type']||_0x28c9('0x42')!=_0x37bccf[_0x28c9('0x2c')]||0x1!=_0x37bccf[_0x28c9('0x6d')])continue;const _0x1c848d=_0x29558c[_0x28c9('0xa2')](_0x37bccf[_0x28c9('0xc')],_0x37bccf[_0x28c9('0xc')][_0x28c9('0x46')](0x1));if(!_0x550aba['find'](({data:_0x512c51})=>_0x512c51[_0x28c9('0x2e')][_0x28c9('0x21')](_0x1c848d)))for(const {name:_0x2eccfc,data:_0xd42cb3}of _0x550aba)if(_0x1c848d[_0x28c9('0x30')](_0xd42cb3['newRange'])){_0x29558c[_0x28c9('0x92')](_0x2eccfc,{'range':_0x1c848d}),_0x92317e=!0x0;break;}}return _0x92317e;}),_0x4585d3[_0x28c9('0x28')]['document']['registerPostFixer'](_0x197eb0=>{let _0x11e01c=!0x1;const _0xb3f0e9=_0x4585d3[_0x28c9('0x7d')]['get'](_0x28c9('0xf'))['me'],_0x425ddd=_0xef5e97[_0x28c9('0x25')]()[_0x28c9('0x7f')](_0x20d791=>_0x20d791[_0x28c9('0x6b')]&&_0x20d791['author']==_0xb3f0e9),_0x157901=new Set(),_0x67054=new Set();for(const _0x597bed of _0x425ddd)if(_0x28c9('0x97')==_0x597bed[_0x28c9('0x9b')])for(const _0x233f51 of _0x597bed['getMarkers']()){const _0x52f154=_0x233f51[_0x28c9('0x6e')]()[_0x28c9('0x62')]();if(_0x52f154){if(_0x52f154['is'](_0x28c9('0x11'),_0x28c9('0x42'))&&ce(_0x52f154)){_0x597bed[_0x28c9('0x5b')](_0x233f51[_0x28c9('0x2c')]),_0x157901[_0x28c9('0x95')](_0x52f154),_0x11e01c=!0x0;const _0x53cabd=_0x52f154[_0x28c9('0x1e')],_0x3f1e09=_0x52f154[_0x28c9('0x4b')],_0x1c6714=_0x53cabd&&_0x53cabd['is'](_0x28c9('0x11'),_0x28c9('0x42')),_0x781e3a=_0x3f1e09&&_0x3f1e09['is'](_0x28c9('0x11'),'tableCellSuggestion');_0x1c6714&&!_0x157901[_0x28c9('0x1a')](_0x53cabd)&&_0x67054[_0x28c9('0x95')](_0x53cabd),_0x781e3a&&!_0x157901[_0x28c9('0x1a')](_0x3f1e09)&&_0x67054['add'](_0x3f1e09);}else _0x52f154['is']('element',_0x28c9('0x94'))&&_0x52f154[_0x28c9('0x2b')]&&(_0x597bed[_0x28c9('0x5b')](_0x233f51[_0x28c9('0x2c')]),_0x11e01c=!0x0);}}else{if(_0x28c9('0x19')==_0x597bed['subType']){if(!_0x597bed['attributes']||!_0x597bed[_0x28c9('0x44')][_0x28c9('0x4')])continue;const _0x75b701=_0x597bed[_0x28c9('0x44')][_0x28c9('0x68')];if(_0x75b701&&Object[_0x28c9('0x26')](_0x75b701)[_0x28c9('0x6d')])continue;const _0x5db44e=_0x597bed[_0x28c9('0x44')][_0x28c9('0x4')];let _0x4012f3=!0x0,_0x625832=!0x0;for(const _0x4cefad of _0x425ddd)if(_0x4cefad['subType']&&_0x4cefad[_0x28c9('0x9b')][_0x28c9('0x29')]('tablePaste')){if(!_0x4cefad[_0x28c9('0x44')]['tablePasteChainId']){_0x625832=!0x1;break;}if(_0x4cefad['id']!=_0x597bed['id']&&_0x4cefad[_0x28c9('0x44')][_0x28c9('0x4')]==_0x5db44e){_0x4012f3=!0x1;break;}}_0x625832&&_0x4012f3&&(_0x597bed['removeMarkers'](),_0x11e01c=!0x0);}}for(const _0x489009 of _0x157901)_0x197eb0[_0x28c9('0x18')](_0x489009);for(const _0xebf30 of _0x67054)_0x197eb0[_0x28c9('0x8a')](_0xebf30);return _0x11e01c;}),_0x4585d3[_0x28c9('0x20')]['for'](_0x28c9('0x58'))[_0x28c9('0x12')]({'model':_0x28c9('0x45'),'view':(_0x21aab5,_0x2db691)=>_0x3809fe(_0x21aab5),'converterPriority':_0x28c9('0x91')}),_0x4585d3['conversion'][_0x28c9('0x3e')](_0x28c9('0x1c'))[_0x28c9('0x12')]({'model':_0x28c9('0x45'),'view':(_0x5b2ebf,_0x9400f)=>_0x9400f['options'][_0x28c9('0x35')]?_0x3809fe(_0x5b2ebf,!0x1):null,'converterPriority':_0x28c9('0x91')});const _0x1f79b0=_0x4585d3[_0x28c9('0x4c')][_0x28c9('0x69')];this[_0x28c9('0xa1')](_0x1f79b0[_0x28c9('0x81')],'clipboardOutput',(_0x1a9489,_0x25f9c4)=>{const _0x45f98a=[];for(const _0x5df3b3 of _0x1f79b0[_0x28c9('0xa0')](_0x25f9c4[_0x28c9('0x3f')])[_0x28c9('0x6')]())_0x5df3b3['is']('element','suggestion-td')&&_0x45f98a[_0x28c9('0x89')](_0x5df3b3);_0x1f79b0['change'](_0x128ff4=>{for(const _0x10ebed of _0x45f98a)_0x128ff4[_0x28c9('0x5f')](_0x128ff4[_0x28c9('0xa0')](_0x10ebed),_0x128ff4[_0x28c9('0x54')](_0x10ebed)),_0x128ff4['remove'](_0x10ebed);});});}}function ce(_0x4c6abf){if(_0x4c6abf['isEmpty'])return!0x0;const _0x27c509=_0x4c6abf[_0x28c9('0x87')](0x0);return _0x27c509['is'](_0x28c9('0x11'),_0x28c9('0x94'))&&_0x27c509[_0x28c9('0x2b')];}function fe(_0x11b6ef,_0x226380={},_0x49e04d){for(const {isAnchor:_0xbe0727,cellHeight:_0xe2cc1c,cellWidth:_0x512f7d}of _0x49e04d['createTableWalker'](_0x11b6ef,{'includeAllSlots':!0x0,..._0x226380}))if(!_0xbe0727||0x1!=_0xe2cc1c||0x1!=_0x512f7d)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7737=['TableColumnResizeEditing','resizeColumnWidths','formatBlock','subType','discard','TrackChangesEditing','getTableColumnsWidths','format','commandParams','resizeTableWidth','model','registerDescriptionCallback','editor','formatGroupId','getSuggestions','getAttribute','author','data','_suggestionFactory','handleResizeTableWidthCommand','columnWidths','get','_descriptionFactory','registerCustomCallback','resizeTable','markBlockFormat','afterInit','locale','accept','enableCommand','selection','bind','document','getSuggestionCallback','change','tableWidth','plugins','handleSuggestionDescription'];(function(_0x44150a,_0x77378){const _0x51233c=function(_0x29d3a0){while(--_0x29d3a0){_0x44150a['push'](_0x44150a['shift']());}};_0x51233c(++_0x77378);}(_0x7737,0x182));const _0x5123=function(_0x44150a,_0x77378){_0x44150a=_0x44150a-0x0;let _0x51233c=_0x7737[_0x44150a];return _0x51233c;};import{Plugin as _0x3b2f9b}from'ckeditor5/src/core';import{getTranslation as _0x5e09da}from'../utils/common-translations';export default class yt extends _0x3b2f9b{[_0x5123('0x14')](){if(!this['editor'][_0x5123('0x1e')]['has'](_0x5123('0x20')))return;const _0x1cff87=this[_0x5123('0x6')][_0x5123('0x1e')][_0x5123('0xf')](_0x5123('0x25'));_0x1cff87[_0x5123('0x17')](_0x5123('0x3'),this[_0x5123('0xd')]['bind'](this)),_0x1cff87[_0x5123('0x17')](_0x5123('0x21'),this[_0x5123('0xd')][_0x5123('0x19')](this)),_0x1cff87[_0x5123('0xc')][_0x5123('0x11')]('formatBlock',_0x5123('0x12'),_0x5123('0x16'),_0x1cff87[_0x5123('0xc')]['getSuggestionCallback']('formatBlock',null,_0x5123('0x24'))),_0x1cff87['_suggestionFactory'][_0x5123('0x11')](_0x5123('0x22'),_0x5123('0x12'),_0x5123('0x24'),_0x1cff87['_suggestionFactory'][_0x5123('0x1b')](_0x5123('0x22'),null,'accept')),_0x1cff87[_0x5123('0x10')][_0x5123('0x5')](this[_0x5123('0x1f')][_0x5123('0x19')](this));}['handleResizeTableWidthCommand'](_0x357aa5,_0x44ea1b){const _0x37f3aa=this[_0x5123('0x6')][_0x5123('0x1e')][_0x5123('0xf')](_0x5123('0x25')),_0x1833cf=this[_0x5123('0x6')][_0x5123('0x1e')][_0x5123('0xf')](_0x5123('0x20')),_0x4c3df6=_0x44ea1b['table']||this[_0x5123('0x6')][_0x5123('0x4')][_0x5123('0x1a')][_0x5123('0x18')]['getSelectedElement']();this['editor'][_0x5123('0x4')][_0x5123('0x1c')](()=>{const _0x513c2c=_0x1833cf['getColumnGroupElement'](_0x4c3df6);let _0x14825b=_0x513c2c?_0x1833cf[_0x5123('0x0')](_0x513c2c):null,_0xf8ce02=_0x4c3df6[_0x5123('0x9')](_0x5123('0x1d'))||null;const _0x587f28=_0x44ea1b[_0x5123('0x1d')]||_0xf8ce02,_0x15a551=_0x44ea1b[_0x5123('0xe')]||_0x14825b,_0x4ec5c7=this[_0x5123('0x6')][_0x5123('0x1e')][_0x5123('0xf')]('Users')['me'];for(const _0x4e9f87 of _0x37f3aa[_0x5123('0x8')]()){const _0x1b0b19=_0x4e9f87['getContainedElement']();if(_0x5123('0x12')===_0x4e9f87[_0x5123('0x23')]&&_0x1b0b19===_0x4c3df6){_0x4e9f87[_0x5123('0xa')]!==_0x4ec5c7&&_0x4e9f87['discard']();const _0x2e914e=_0x4e9f87[_0x5123('0xb')][_0x5123('0x2')];_0xf8ce02=_0x2e914e[0x0][_0x5123('0x1d')],_0x14825b=_0x2e914e[0x0]['columnWidths'];break;}}_0x357aa5({'table':_0x4c3df6,'tableWidth':_0x587f28,'columnWidths':_0x15a551}),_0x37f3aa[_0x5123('0x13')](_0x4c3df6,{'commandName':_0x5123('0x3'),'commandParams':[{'tableWidth':_0xf8ce02,'columnWidths':_0x14825b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}[_0x5123('0x1f')](_0x30b18c){const {data:_0x4a38bf}=_0x30b18c;if(_0x4a38bf&&'resizeTable'===_0x4a38bf[_0x5123('0x7')]){const _0x5b691c='*Format:*\x20resize\x20table';return{'type':_0x5123('0x1'),'content':_0x5e09da(this[_0x5123('0x6')][_0x5123('0x15')],_0x5b691c)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4755=['registerCustomCallback','_acceptFormatSuggestionCallbackFactory','commandName','markerNameToElements','childCount','FORMAT_REGULAR_ROW','registerDescriptionCallback','consumable','isBefore','accept','locale','headingColumns','createPositionBefore','document','requires','stop','has','change','getCellLocation','createTableWalker','formatBlock','cell','removeClass','addClass','addMarker:suggestion','item','getSelectionAffectedTableCells','createPositionAfter','TrackChangesEditing','selection','getChild','headingRows','ck-suggestion-marker-','data-suggestion','consume','includes','highest','markerRange','commandParams','TableUtils','removeAttribute','FORMAT_HEADER_COLUMN','ck-suggestion-marker--active','markerName','toViewElement','get','nodeAfter','setTableColumnHeader','last','markBlockFormat','model','TableEditing','FORMAT_REGULAR_COLUMN','format','options','_splitMarkerName','first','afterInit','data','writer','createRange','mapper','plugins','*Format:*\x20%0','name','findAncestor','start','editing','index','end','activeMarkers','enableCommand','value','table','getAttribute','setTableRowHeader','forceValue','_descriptionFactory','commands'];(function(_0x551dea,_0x4755fb){const _0x240415=function(_0x11fa55){while(--_0x11fa55){_0x551dea['push'](_0x551dea['shift']());}};_0x240415(++_0x4755fb);}(_0x4755,0x1c9));const _0x2404=function(_0x551dea,_0x4755fb){_0x551dea=_0x551dea-0x0;let _0x240415=_0x4755[_0x551dea];return _0x240415;};import{Plugin as _0x2821ea}from'ckeditor5/src/core';import _0x4b255d from'./table';import{getTranslation as _0x1718bf}from'../utils/common-translations';export default class kt extends _0x2821ea{static get[_0x2404('0x1f')](){return[_0x4b255d];}[_0x2404('0x4a')](){const _0x2305fe=this['editor'];if(!_0x2305fe[_0x2404('0x0')][_0x2404('0x21')](_0x2404('0x44')))return;const _0x373c72=_0x2305fe[_0x2404('0x1b')],_0x513285=_0x2305fe[_0x2404('0x0')]['get'](_0x2404('0x2d')),_0x5cd89e=_0x2305fe[_0x2404('0x0')][_0x2404('0x3e')](_0x2404('0x38')),_0x347045=_0x2305fe[_0x2404('0x0')][_0x2404('0x3e')](_0x4b255d);function _0x1f2779({showActiveMarker:_0x35df88=!0x0,setDataAttribute:_0x41278d=!0x0}={}){return(_0x18c064,_0x51907b,_0x529ad5)=>{const {type:_0x3d7f5a,id:_0x87e06a}=_0x513285[_0x2404('0x48')](_0x51907b[_0x2404('0x3c')]),_0x313caf=_0x513285['getSuggestion'](_0x87e06a);if(!_0x313caf[_0x2404('0x4b')]||_0x2404('0x40')!=_0x313caf['data'][_0x2404('0x13')])return;if(_0x51907b[_0x2404('0x2a')])return void _0x18c064[_0x2404('0x20')]();if(!_0x529ad5[_0x2404('0x18')][_0x2404('0x33')](_0x51907b[_0x2404('0x36')],_0x18c064[_0x2404('0x2')]))return;const _0x511d8f=_0x51907b[_0x2404('0x36')][_0x2404('0x4')][_0x2404('0x3f')],_0x2fa66d=_0x51907b[_0x2404('0x36')][_0x2404('0x7')]['nodeBefore'],_0x50d8db=_0x511d8f['parent']['parent'],{column:_0x1f1165}=_0x5cd89e['getCellLocation'](_0x511d8f),{column:_0x5164fb}=_0x5cd89e[_0x2404('0x23')](_0x2fa66d);for(let _0x3b09be=_0x1f1165;_0x3b09be<=_0x5164fb;_0x3b09be++){const _0x49678=_0x5cd89e[_0x2404('0x24')](_0x50d8db,{'column':_0x3b09be,'includeAllSlots':!0x1});for(const _0x29a6f7 of _0x49678){const _0x2dbc49=_0x29a6f7[_0x2404('0x26')],_0x19bb1b=_0x529ad5[_0x2404('0x4e')][_0x2404('0x3d')](_0x2dbc49);_0x529ad5['writer']['addClass'](_0x2404('0x31')+_0x3d7f5a,_0x19bb1b),_0x41278d&&_0x529ad5[_0x2404('0x4c')]['setAttribute'](_0x2404('0x32'),_0x87e06a,_0x19bb1b),_0x529ad5[_0x2404('0x4e')]['bindElementToMarker'](_0x19bb1b,_0x51907b[_0x2404('0x3c')]),_0x35df88&&(_0x513285[_0x2404('0x8')][_0x2404('0x34')](_0x51907b[_0x2404('0x3c')])?_0x529ad5[_0x2404('0x4c')][_0x2404('0x28')](_0x2404('0x3b'),_0x19bb1b):_0x529ad5[_0x2404('0x4c')][_0x2404('0x27')](_0x2404('0x3b'),_0x19bb1b));}}};}_0x513285[_0x2404('0x9')]('setTableRowHeader',(_0x8cb4a0,_0x302ca8)=>{const _0x740890=_0x5cd89e[_0x2404('0x2b')](_0x2305fe[_0x2404('0x43')][_0x2404('0x1e')][_0x2404('0x2e')]),_0x4d49e8=_0x5cd89e['getRowIndexes'](_0x740890),_0x18e803=_0x740890[0x0][_0x2404('0x3')](_0x2404('0xb')),_0x44d211=_0x18e803[_0x2404('0xc')](_0x2404('0x30'))||0x0,_0x543eb9=_0x302ca8&&null!==_0x302ca8[_0x2404('0xe')]?_0x302ca8[_0x2404('0xe')]:!_0x2305fe['commands'][_0x2404('0x3e')](_0x2404('0xd'))[_0x2404('0xa')],_0x17b228=_0x543eb9?_0x4d49e8[_0x2404('0x41')]:_0x4d49e8[_0x2404('0x49')],_0x2ab472=_0x18e803[_0x2404('0x2f')](_0x17b228);let _0x48b82b;if(_0x543eb9){const _0x2bc7e3=_0x18e803[_0x2404('0x2f')](_0x44d211);if(_0x2ab472[_0x2404('0x6')]<_0x2bc7e3['index'])return;_0x48b82b=_0x2305fe[_0x2404('0x43')]['createRange'](_0x2305fe[_0x2404('0x43')][_0x2404('0x1d')](_0x2bc7e3[_0x2404('0x2f')](0x0)),_0x2305fe[_0x2404('0x43')][_0x2404('0x2c')](_0x2ab472[_0x2404('0x2f')](_0x2ab472[_0x2404('0x15')]-0x1)));}else{const _0x28d307=_0x18e803[_0x2404('0x2f')](_0x44d211-0x1);if(!_0x28d307)return;_0x48b82b=_0x2305fe[_0x2404('0x43')]['createRange'](_0x2305fe['model'][_0x2404('0x1d')](_0x2ab472['getChild'](0x0)),_0x2305fe['model'][_0x2404('0x2c')](_0x28d307['getChild'](_0x28d307[_0x2404('0x15')]-0x1)));}_0x2305fe[_0x2404('0x43')][_0x2404('0x22')](()=>{_0x513285[_0x2404('0x42')](_0x48b82b,{'commandName':_0x2404('0xd'),'commandParams':[{'forceValue':_0x543eb9}]},[],_0x2404('0xd'));});}),_0x513285[_0x2404('0x9')](_0x2404('0x40'),(_0x4265bc,_0x32cd3a)=>{const _0xbaaaa8=_0x2305fe[_0x2404('0x0')][_0x2404('0x3e')](_0x2404('0x38')),_0x13a63d=_0xbaaaa8[_0x2404('0x2b')](_0x2305fe[_0x2404('0x43')][_0x2404('0x1e')][_0x2404('0x2e')]),_0x172d11=_0xbaaaa8['getColumnIndexes'](_0x13a63d),_0xc85869=_0x13a63d[0x0][_0x2404('0x3')](_0x2404('0xb')),_0x42fb41=_0xc85869[_0x2404('0xc')](_0x2404('0x1c'))||0x0,_0x2b1dea=_0x32cd3a&&null!==_0x32cd3a[_0x2404('0xe')]?_0x32cd3a[_0x2404('0xe')]:!_0x2305fe[_0x2404('0x10')][_0x2404('0x3e')](_0x2404('0x40'))[_0x2404('0xa')];let _0x4a8515;const _0x34569c=_0xc85869['getChild'](0x0),_0x295600=_0x2b1dea?_0x172d11[_0x2404('0x41')]:_0x172d11[_0x2404('0x49')],_0x4a5914=_0xbaaaa8[_0x2404('0x24')](_0xc85869,{'startRow':0x0,'column':_0x295600,'includeAllSlots':!0x1}),_0x3f10ca=Array['from'](_0x4a5914)[0x0][_0x2404('0x26')];if(_0x2b1dea){const _0x1b39d6=_0x34569c[_0x2404('0x2f')](_0x42fb41);if(_0x3f10ca[_0x2404('0x19')](_0x1b39d6))return;_0x4a8515=_0x2305fe['model'][_0x2404('0x4d')](_0x2305fe[_0x2404('0x43')]['createPositionBefore'](_0x1b39d6),_0x2305fe[_0x2404('0x43')]['createPositionAfter'](_0x3f10ca));}else{const _0x51ce0d=_0x34569c[_0x2404('0x2f')](_0x42fb41-0x1);if(!_0x51ce0d)return;_0x4a8515=_0x2305fe['model'][_0x2404('0x4d')](_0x2305fe[_0x2404('0x43')][_0x2404('0x1d')](_0x3f10ca),_0x2305fe[_0x2404('0x43')][_0x2404('0x2c')](_0x51ce0d));}_0x2305fe[_0x2404('0x43')][_0x2404('0x22')](()=>{_0x513285[_0x2404('0x42')](_0x4a8515,{'commandName':_0x2404('0x40'),'commandParams':[{'forceValue':_0x2b1dea}]},[],_0x2404('0x40'));});}),_0x2305fe[_0x2404('0x5')]['downcastDispatcher']['on']('addMarker:suggestion',_0x1f2779(),{'priority':'highest'}),_0x2305fe[_0x2404('0x4b')]['downcastDispatcher']['on'](_0x2404('0x29'),(_0x473d0a,_0x641a5f,_0x5092ba)=>{_0x5092ba[_0x2404('0x47')]['showSuggestionHighlights']&&_0x1f2779({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x473d0a,_0x641a5f,_0x5092ba);},{'priority':_0x2404('0x35')}),_0x2305fe[_0x2404('0x5')]['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5e8465,_0x3fc787,_0x477da9)=>{const {type:_0x5cb9e6,id:_0xb52d25}=_0x513285[_0x2404('0x48')](_0x3fc787[_0x2404('0x3c')]),_0x3c33dd=_0x513285['getSuggestion'](_0xb52d25);if(!_0x3c33dd['data']||'setTableColumnHeader'!=_0x3c33dd[_0x2404('0x4b')]['commandName'])return;const _0x127530=_0x477da9[_0x2404('0x4e')][_0x2404('0x14')](_0x3fc787[_0x2404('0x3c')]);if(_0x127530)for(const _0x4dae66 of _0x127530)_0x477da9[_0x2404('0x4c')]['removeClass'](_0x2404('0x31')+_0x5cb9e6,_0x4dae66),_0x477da9[_0x2404('0x4c')][_0x2404('0x27')](_0x2404('0x3b'),_0x4dae66),_0x477da9[_0x2404('0x4c')][_0x2404('0x39')]('data-suggestion',_0x4dae66),_0x477da9['mapper']['unbindElementFromMarkerName'](_0x4dae66,_0x3fc787['markerName']);},{'priority':_0x2404('0x35')}),_0x513285[_0x2404('0xf')][_0x2404('0x17')](_0x181ff1=>{const {data:_0x35b235}=_0x181ff1;if(_0x35b235){if('setTableRowHeader'==_0x35b235['commandName']){const _0x2118e5=_0x35b235[_0x2404('0x37')][0x0][_0x2404('0xe')];return _0xbd0e7e(_0x1718bf(_0x373c72,_0x2118e5?'FORMAT_HEADER_ROW':_0x2404('0x16')));}if(_0x2404('0x40')==_0x35b235[_0x2404('0x13')]){const _0x504231=_0x35b235[_0x2404('0x37')][0x0][_0x2404('0xe')];return _0xbd0e7e(_0x1718bf(_0x373c72,_0x504231?_0x2404('0x3a'):_0x2404('0x45')));}}function _0xbd0e7e(_0x21543c){return{'type':_0x2404('0x46'),'content':_0x1718bf(_0x373c72,_0x2404('0x1'),_0x21543c)};}});const _0x302ace=_0x347045[_0x2404('0x12')]();_0x513285['_suggestionFactory'][_0x2404('0x11')](_0x2404('0x25'),'setTableRowHeader',_0x2404('0x1a'),_0x302ace),_0x513285['_suggestionFactory']['registerCustomCallback'](_0x2404('0x25'),_0x2404('0x40'),_0x2404('0x1a'),_0x302ace);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1244=['type','mergeTableCellRight','document','commands','horizontally','has','containsRange','mergeTableCellLeft','getSuggestions','return','TableUtils','createTableWalker','low','registerCustomCallback','push','mergeTableCellUp','plugins','format','*Merge\x20cells*','insertion','mergeTableCellDown','_areSelectedCellsMergable','markMultiRangeBlockFormat','locale','filter','formatBlock','commandName','stop','root','getRanges','cell','editor','author','highest','$graveyard','value','add','map','from','splitTableCellHorizontally','registerDescriptionCallback','createRangeOn','selection','forceDefaultExecution','get','change','getAncestors','rootName','afterInit','getFirstPosition','findAncestor','TrackChangesEditing','set:isEnabled','_descriptionFactory','size','*Split\x20cell:*\x20vertically','model','tableCell','enableCommand','setSelection','_isForcedDefaultExecutionBlock','find','_acceptFormatSuggestionCallbackFactory','markBlockFormat','getSelectionAffectedTableCells','_tablePostFixingSubtypes','mergeTableCells','refresh','direction','splitTableCellVertically','element','trackChanges','length','accept','_areMergableCells'];(function(_0x5ab325,_0x12448e){const _0x4112cf=function(_0x39c04c){while(--_0x39c04c){_0x5ab325['push'](_0x5ab325['shift']());}};_0x4112cf(++_0x12448e);}(_0x1244,0x1e1));const _0x4112=function(_0x5ab325,_0x12448e){_0x5ab325=_0x5ab325-0x0;let _0x4112cf=_0x1244[_0x5ab325];return _0x4112cf;};import{Plugin as _0x2c4165}from'ckeditor5/src/core';import _0x557df3 from'./table';import{LiveRange as _0x31c31a}from'ckeditor5/src/engine';import{getTranslation as _0x54c887}from'../utils/common-translations';export default class pt extends _0x2c4165{static get['requires'](){return[_0x557df3];}[_0x4112('0x11')](){const _0x50b689=this[_0x4112('0x0')],_0x43b7d4=_0x50b689[_0x4112('0x19')]['document'][_0x4112('0xb')],_0x3d0dfc=_0x50b689[_0x4112('0x43')];if(!_0x50b689['plugins'][_0x4112('0x31')]('TableEditing'))return;const _0x1fdebc=_0x50b689['plugins'][_0x4112('0xd')](_0x4112('0x14')),_0x827a92=_0x50b689[_0x4112('0x3c')]['get'](_0x4112('0x36')),_0x4e052d=_0x50b689['plugins'][_0x4112('0xd')](_0x557df3);_0x4e052d[_0x4112('0x22')][_0x4112('0x3a')](_0x4112('0x23')),_0x1fdebc[_0x4112('0x1b')](_0x4112('0x23'),()=>{const _0x2c0806=_0x827a92[_0x4112('0x21')](_0x50b689[_0x4112('0x19')][_0x4112('0x2e')]['selection']);_0x50b689[_0x4112('0x19')][_0x4112('0xe')](()=>{_0x1fdebc['markMultiRangeBlockFormat'](_0x2c0806,{'commandName':'mergeTableCells','commandParams':[]},[],_0x4112('0x23'));});}),_0x50b689['commands'][_0x4112('0xd')](_0x4112('0x23'))['on']('execute',(_0x260295,_0x55e118)=>{_0x50b689[_0x4112('0x2f')][_0x4112('0xd')](_0x4112('0x28'))['value']&&(_0x55e118[_0x4112('0x29')]>0x0&&_0x55e118[_0x55e118['length']-0x1]&&_0x55e118[_0x55e118[_0x4112('0x29')]-0x1][_0x4112('0xc')]||_0x1fdebc[_0x4112('0x1d')]||this[_0x4112('0x41')]()||_0x260295[_0x4112('0x47')]());},{'priority':_0x4112('0x2')});for(const _0x4aa51d of[_0x4112('0x3b'),_0x4112('0x2d'),_0x4112('0x40'),_0x4112('0x33')]){const _0x46c30f=_0x50b689[_0x4112('0x2f')][_0x4112('0xd')](_0x4aa51d);_0x1fdebc['enableCommand'](_0x4aa51d,()=>{const _0x5d0b86=_0x50b689[_0x4112('0x19')][_0x4112('0x2e')][_0x4112('0xb')][_0x4112('0x12')]()[_0x4112('0xf')]()[_0x4112('0x1e')](_0x542de7=>_0x542de7['is'](_0x4112('0x27'),_0x4112('0x1a'))),_0x46fa42=_0x46c30f['value'];_0x50b689[_0x4112('0x19')]['change'](()=>{_0x1fdebc[_0x4112('0x42')]([_0x5d0b86,_0x46fa42],{'commandName':_0x4112('0x23'),'commandParams':[]},[],_0x4112('0x23'));});});}for(const _0xbfd9a8 of[_0x4112('0x26'),_0x4112('0x8')]){const _0x246ead=_0x50b689[_0x4112('0x2f')][_0x4112('0xd')](_0xbfd9a8);_0x1fdebc[_0x4112('0x1b')](_0xbfd9a8,()=>{const _0xe965c=_0x827a92[_0x4112('0x21')](_0x50b689[_0x4112('0x19')]['document']['selection'])[0x0],_0x5975c9=_0xe965c[_0x4112('0x13')]('table'),{column:_0x478674,row:_0x24ef1a}=_0x827a92['getCellLocation'](_0xe965c);let _0x171e52=[];if(_0x4112('0x30')==_0x246ead[_0x4112('0x25')]){const _0x2778a2=_0x827a92['createTableWalker'](_0x5975c9,{'startRow':_0x24ef1a,'endRow':_0x24ef1a,'includeAllSlots':!0x0});_0x171e52=Array[_0x4112('0x7')](_0x2778a2)[_0x4112('0x6')](_0x53b7f2=>_0x53b7f2[_0x4112('0x4a')]);}else{const _0x3ba13f=_0x827a92[_0x4112('0x37')](_0x5975c9,{'column':_0x478674,'includeAllSlots':!0x0});_0x171e52=Array['from'](_0x3ba13f)[_0x4112('0x6')](_0x9a4624=>_0x9a4624[_0x4112('0x4a')]);}_0x50b689['model'][_0x4112('0xe')](_0x3e3bdd=>{_0x1fdebc[_0x4112('0x20')](_0x3e3bdd[_0x4112('0xa')](_0xe965c),{'commandName':_0xbfd9a8,'commandParams':[]},_0x171e52,_0xbfd9a8);});});}_0x1fdebc[_0x4112('0x16')]['registerDescriptionCallback'](_0x502c9c=>{const {data:_0x1b252c}=_0x502c9c;if(_0x1b252c)return'mergeTableCells'==_0x1b252c[_0x4112('0x46')]?{'type':'format','content':_0x54c887(_0x3d0dfc,_0x4112('0x3e'))}:void 0x0;}),_0x1fdebc[_0x4112('0x16')][_0x4112('0x9')](_0x581bdb=>{const {data:_0xa553ba}=_0x581bdb;if(_0xa553ba)return _0x4112('0x26')==_0xa553ba[_0x4112('0x46')]?{'type':_0x4112('0x3d'),'content':_0x54c887(_0x3d0dfc,_0x4112('0x18'))}:_0x4112('0x8')==_0xa553ba['commandName']?{'type':_0x4112('0x3d'),'content':_0x54c887(_0x3d0dfc,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x54369a=_0x4e052d[_0x4112('0x1f')]();for(const _0x1155e3 of['mergeTableCellUp',_0x4112('0x2d'),_0x4112('0x40'),_0x4112('0x33')])_0x1fdebc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1155e3,_0x4112('0x2a'),_0x54369a);for(const _0x175dc2 of[_0x4112('0x26'),_0x4112('0x8')])_0x1fdebc['_suggestionFactory'][_0x4112('0x39')](_0x4112('0x45'),_0x175dc2,_0x4112('0x2a'),_0x54369a);_0x1fdebc['_suggestionFactory'][_0x4112('0x39')](_0x4112('0x45'),_0x4112('0x23'),_0x4112('0x2a'),_0xa90c73=>{_0x50b689['model'][_0x4112('0xe')](_0xd17aba=>{const _0xc6ca32=Array[_0x4112('0x7')](_0x43b7d4['getRanges']())['map'](_0xada9fc=>_0x31c31a['fromRange'](_0xada9fc));_0xd17aba[_0x4112('0x1c')](_0xa90c73),_0x50b689[_0x4112('0x2f')][_0x4112('0xd')]('mergeTableCells')[_0x4112('0x24')](),_0x50b689['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x56166a=_0xc6ca32[_0x4112('0x44')](_0x5aa0aa=>_0x4112('0x3')!=_0x5aa0aa[_0x4112('0x48')][_0x4112('0x10')]);_0x56166a[_0x4112('0x29')]>0x0&&_0xd17aba['setSelection'](_0x56166a);for(const _0xc47a01 of _0xc6ca32)_0xc47a01['detach']();});});for(const _0x1c8897 of[_0x4112('0x3b'),_0x4112('0x40'),'mergeTableCellLeft',_0x4112('0x2d')]){const _0x498e61=_0x50b689[_0x4112('0x2f')][_0x4112('0xd')](_0x1c8897);_0x498e61['on'](_0x4112('0x15'),(_0x14af44,_0x35451b,_0x4c29b9)=>{if(_0x4c29b9){const _0x27e7bb=_0x50b689[_0x4112('0x19')][_0x4112('0x2e')][_0x4112('0xb')]['getFirstPosition']()[_0x4112('0xf')]()[_0x4112('0x1e')](_0x4684f4=>_0x4684f4['is'](_0x4112('0x27'),_0x4112('0x1a')));this[_0x4112('0x2b')](_0x498e61[_0x4112('0x4')],_0x27e7bb)||(_0x14af44[_0x4112('0x35')]=!0x1,_0x14af44[_0x4112('0x47')]());}},{'priority':_0x4112('0x38')});}}['_areSelectedCellsMergable'](){const _0x2e366b=this['editor'][_0x4112('0x2f')][_0x4112('0xd')]('mergeTableCells'),_0x518fa8=this[_0x4112('0x0')][_0x4112('0x3c')][_0x4112('0xd')](_0x4112('0x36'));if(!_0x2e366b['isEnabled'])return!0x1;const _0x516ce2=_0x518fa8[_0x4112('0x21')](this[_0x4112('0x0')][_0x4112('0x19')]['document']['selection']);for(const _0x9117e0 of _0x516ce2)for(const _0x3fc150 of _0x516ce2)if(_0x9117e0!=_0x3fc150&&!this['_areMergableCells'](_0x9117e0,_0x3fc150))return!0x1;return!0x0;}[_0x4112('0x2b')](_0x545a01,_0x22bfa9){const _0x370e69=this[_0x4112('0x0')][_0x4112('0x3c')][_0x4112('0xd')]('TrackChangesEditing'),_0x133913=this[_0x4112('0x0')]['model'][_0x4112('0xa')](_0x545a01),_0x24aa41=this[_0x4112('0x0')][_0x4112('0x19')][_0x4112('0xa')](_0x22bfa9),_0x536916=new Set(),_0x1f78e0=new Set();for(const _0x7a3889 of _0x370e69[_0x4112('0x34')]())if((_0x4112('0x3f')==_0x7a3889[_0x4112('0x2c')]||'deletion'==_0x7a3889[_0x4112('0x2c')]||_0x4112('0x23')==_0x7a3889['subType'])&&_0x7a3889['isInContent'])for(const _0x46e153 of _0x7a3889[_0x4112('0x49')]())_0x46e153[_0x4112('0x32')](_0x133913,!0x0)&&_0x536916[_0x4112('0x5')](_0x7a3889[_0x4112('0x2c')]+':'+_0x7a3889[_0x4112('0x1')]['id']),_0x46e153[_0x4112('0x32')](_0x24aa41,!0x0)&&_0x1f78e0[_0x4112('0x5')](_0x7a3889['type']+':'+_0x7a3889[_0x4112('0x1')]['id']);if(_0x536916['size']!=_0x1f78e0[_0x4112('0x17')])return!0x1;for(const _0x1f1065 of _0x536916)if(!_0x1f78e0[_0x4112('0x31')](_0x1f1065))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d75=['get','enableCommand','plugins','insertTableOfContents','TrackChangesEditing','registerElementLabel','afterInit','commands','tableOfContents'];(function(_0x527c32,_0x3d7525){const _0x3c93e8=function(_0x1710b1){while(--_0x1710b1){_0x527c32['push'](_0x527c32['shift']());}};_0x3c93e8(++_0x3d7525);}(_0x3d75,0x1be));const _0x3c93=function(_0x527c32,_0x3d7525){_0x527c32=_0x527c32-0x0;let _0x3c93e8=_0x3d75[_0x527c32];return _0x3c93e8;};import{Plugin as _0x2eb181}from'ckeditor5/src/core';import{getTranslation as _0x2bcb9d}from'../utils/common-translations';export default class St extends _0x2eb181{[_0x3c93('0x1')](){const _0x3f3d36=this['editor'];if(!_0x3f3d36[_0x3c93('0x2')]['get'](_0x3c93('0x7')))return;_0x3f3d36[_0x3c93('0x6')][_0x3c93('0x4')]('TrackChangesEditing')[_0x3c93('0x5')]('insertTableOfContents');const _0x13dd31=_0x3f3d36['plugins'][_0x3c93('0x4')](_0x3c93('0x8')),_0x89f20b=_0x3f3d36['locale'];_0x13dd31['_descriptionFactory'][_0x3c93('0x0')](_0x3c93('0x3'),_0x2c44ab=>_0x2bcb9d(_0x89f20b,'ELEMENT_TABLE_OF_CONTENTS',_0x2c44ab));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ff4=['TrackChangesTableProperties','subType','getSelectionAffectedTableCells','change','handleDiscardAction','document','tableCellBorderStyle','tableCellPadding','removeAttribute','tableCellBorderWidth','tableCellWidth','join','_descriptionFactory','start','batch','format','*Format:*\x20change\x20table\x20properties','locale','_handlePropertyChange','discard','_getSuggestion','tableCellVerticalAlignment','plugins','tableProperties','getFirstPosition','data','tableCellBorderColor','tableAlignment','registerCustomCallback','_suggestionFactory','handleSuggestionDescription','pluginName','tableCellProperties','table','TrackChangesEditing','formatBlock','selection','tableCellHorizontalAlignment','getSuggestionCallback','TableUtils','TablePropertiesEditing','model','tableCellHeight','enableCommand','accept','get','has','editor','getAttribute','tableBorderWidth','tableBorderColor','afterInit'];(function(_0x2e4ff8,_0x2ff421){const _0x5a4f91=function(_0x428c5b){while(--_0x428c5b){_0x2e4ff8['push'](_0x2e4ff8['shift']());}};_0x5a4f91(++_0x2ff421);}(_0x2ff4,0x126));const _0x5a4f=function(_0x2e4ff8,_0x2ff421){_0x2e4ff8=_0x2e4ff8-0x0;let _0x5a4f91=_0x2ff4[_0x2e4ff8];return _0x5a4f91;};import{Plugin as _0x8c4243}from'ckeditor5/src/core';import{getTranslation as _0x5aaa4f}from'../utils/common-translations';export default class Dt extends _0x8c4243{constructor(_0x94019c){super(_0x94019c),this['tableProperties']=[_0x5a4f('0x10'),'tableBorderStyle',_0x5a4f('0xf'),_0x5a4f('0x2d'),'tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=[_0x5a4f('0x2c'),_0x5a4f('0x18'),_0x5a4f('0x1b'),_0x5a4f('0x19'),_0x5a4f('0x1c'),_0x5a4f('0x8'),'tableCellBackgroundColor',_0x5a4f('0x3'),_0x5a4f('0x27')];}static get[_0x5a4f('0x31')](){return _0x5a4f('0x12');}[_0x5a4f('0x11')](){const _0x39d59d=this['editor'][_0x5a4f('0x28')]['get'](_0x5a4f('0x0'));if(this[_0x5a4f('0xd')][_0x5a4f('0x28')][_0x5a4f('0xc')](_0x5a4f('0x6'))){for(const _0x1fec5d of this[_0x5a4f('0x29')])_0x39d59d[_0x5a4f('0x9')](_0x1fec5d,(_0x5559ca,_0x1e1529)=>{const _0x3917b9=this[_0x5a4f('0xd')][_0x5a4f('0x7')][_0x5a4f('0x17')][_0x5a4f('0x2')][_0x5a4f('0x2a')]()['findAncestor'](_0x5a4f('0x33'));this['_handlePropertyChange'](_0x1fec5d,[_0x3917b9],this['tableProperties'],_0x5a4f('0x29'),_0x5559ca,_0x1e1529);});_0x39d59d[_0x5a4f('0x2f')][_0x5a4f('0x2e')](_0x5a4f('0x1'),'tableProperties',_0x5a4f('0xa'),_0x39d59d['_suggestionFactory'][_0x5a4f('0x4')]('formatBlock',null,_0x5a4f('0x25'))),_0x39d59d[_0x5a4f('0x2f')][_0x5a4f('0x2e')](_0x5a4f('0x1'),_0x5a4f('0x29'),_0x5a4f('0x25'),(_0x40e2ac,_0x59ce67)=>this[_0x5a4f('0x16')](this[_0x5a4f('0x29')],_0x40e2ac,_0x59ce67)),_0x39d59d['_suggestionFactory'][_0x5a4f('0x2e')](_0x5a4f('0x1'),_0x5a4f('0x29'),'join',()=>!0x1);}if(this[_0x5a4f('0xd')][_0x5a4f('0x28')][_0x5a4f('0xc')]('TableCellPropertiesEditing')){for(const _0x4d9829 of this['tableCellProperties'])_0x39d59d[_0x5a4f('0x9')](_0x4d9829,(_0x752c92,_0x4b5679)=>{const _0x2ba51a=this[_0x5a4f('0xd')][_0x5a4f('0x28')]['get'](_0x5a4f('0x5'))[_0x5a4f('0x14')](this['editor'][_0x5a4f('0x7')][_0x5a4f('0x17')][_0x5a4f('0x2')]);this[_0x5a4f('0x24')](_0x4d9829,_0x2ba51a,this[_0x5a4f('0x32')],_0x5a4f('0x32'),_0x752c92,_0x4b5679);});_0x39d59d['_suggestionFactory'][_0x5a4f('0x2e')](_0x5a4f('0x1'),'tableCellProperties',_0x5a4f('0xa'),_0x39d59d['_suggestionFactory'][_0x5a4f('0x4')](_0x5a4f('0x1'),null,_0x5a4f('0x25'))),_0x39d59d[_0x5a4f('0x2f')]['registerCustomCallback'](_0x5a4f('0x1'),'tableCellProperties',_0x5a4f('0x25'),(_0x11b0e2,_0x1111d3)=>this[_0x5a4f('0x16')](this[_0x5a4f('0x32')],_0x11b0e2,_0x1111d3)),_0x39d59d[_0x5a4f('0x2f')]['registerCustomCallback'](_0x5a4f('0x1'),_0x5a4f('0x32'),_0x5a4f('0x1d'),()=>!0x1);}_0x39d59d[_0x5a4f('0x1e')]['registerDescriptionCallback'](_0x5c7245=>this[_0x5a4f('0x30')](_0x5c7245));}[_0x5a4f('0x24')](_0x12edd5,_0x17a701,_0x2228fc,_0x1afb65,_0x2bddb9,_0x4bfe82){const _0x1c072c=this[_0x5a4f('0xd')][_0x5a4f('0x28')][_0x5a4f('0xb')]('TrackChangesEditing');this[_0x5a4f('0xd')][_0x5a4f('0x7')]['enqueueChange'](_0x4bfe82[_0x5a4f('0x20')],()=>{for(const _0x4df7e7 of _0x17a701){if(this[_0x5a4f('0x26')](_0x4df7e7,_0x1afb65))_0x2bddb9(_0x4bfe82);else{const _0x2f2943={};for(const _0x1d2272 of _0x2228fc){const _0x196680=_0x4df7e7[_0x5a4f('0xe')](_0x1d2272);void 0x0!==_0x196680&&(_0x2f2943[_0x1d2272]=_0x196680);}_0x2bddb9(_0x4bfe82),_0x1c072c['markBlockFormat'](_0x4df7e7,{'commandParams':[_0x2f2943]},[],_0x1afb65);}}});}['handleDiscardAction'](_0xda69f0,_0x2744e4,_0x2bb2bb){const _0x2f3f31=_0x2744e4[0x0][_0x5a4f('0x1f')]['nodeAfter'],_0xd25673=_0x2bb2bb['commandParams'][0x0];this['editor'][_0x5a4f('0x7')][_0x5a4f('0x15')](_0x3fc1f8=>{for(const _0x1a459b of _0xda69f0)void 0x0!==_0xd25673[_0x1a459b]?_0x3fc1f8['setAttribute'](_0x1a459b,_0xd25673[_0x1a459b],_0x2f3f31):_0x3fc1f8[_0x5a4f('0x1a')](_0x1a459b,_0x2f3f31);});}[_0x5a4f('0x30')](_0x151942){if(_0x151942[_0x5a4f('0x2b')])switch(_0x151942[_0x5a4f('0x13')]){case _0x5a4f('0x29'):return{'type':_0x5a4f('0x21'),'content':_0x5aaa4f(this[_0x5a4f('0xd')]['locale'],_0x5a4f('0x22'))};case _0x5a4f('0x32'):return{'type':_0x5a4f('0x21'),'content':_0x5aaa4f(this[_0x5a4f('0xd')][_0x5a4f('0x23')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x5a4f('0x26')](_0x6fd33d,_0x2555c5){const _0x1d0ea3=this[_0x5a4f('0xd')][_0x5a4f('0x28')]['get'](_0x5a4f('0x0'));for(const _0x31cdf5 of _0x1d0ea3['getSuggestions']({'skipNotAttached':!0x0})){const _0x469d3a=_0x31cdf5['getContainedElement']();if(_0x31cdf5['subType']===_0x2555c5&&_0x469d3a===_0x6fd33d)return _0x31cdf5;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21e7=['afterInit','Template','TrackChangesEditing','has','editor','enableCommand','get'];(function(_0x437c50,_0x21e748){const _0x577109=function(_0x3500af){while(--_0x3500af){_0x437c50['push'](_0x437c50['shift']());}};_0x577109(++_0x21e748);}(_0x21e7,0x17f));const _0x5771=function(_0x437c50,_0x21e748){_0x437c50=_0x437c50-0x0;let _0x577109=_0x21e7[_0x437c50];return _0x577109;};import{Plugin as _0x149bd3}from'ckeditor5/src/core';export default class bt extends _0x149bd3{[_0x5771('0x2')](){const _0x45f94c=this[_0x5771('0x6')];_0x45f94c['plugins'][_0x5771('0x5')](_0x5771('0x3'))&&_0x45f94c['plugins'][_0x5771('0x1')](_0x5771('0x4'))[_0x5771('0x0')]('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13e6=['suggestion','_descriptionFactory','end','isCollapsed','has','element','newRange','from','editor','isTouching','TrackChangesEditing','registerPostFixer','title-content','differ','createRange','getNearestSelectionRange','get','locale','start','_splitMarkerName','updateMarker','forward','document','ELEMENT_TITLE','model'];(function(_0x3827d4,_0x13e63b){const _0x15bc06=function(_0x4484af){while(--_0x4484af){_0x3827d4['push'](_0x3827d4['shift']());}};_0x15bc06(++_0x13e63b);}(_0x13e6,0x150));const _0x15bc=function(_0x3827d4,_0x13e63b){_0x3827d4=_0x3827d4-0x0;let _0x15bc06=_0x13e6[_0x3827d4];return _0x15bc06;};import{Plugin as _0x590ac9}from'ckeditor5/src/core';import{getTranslation as _0x4d3431}from'../utils/common-translations';export default class It extends _0x590ac9{['afterInit'](){const _0x3ecee9=this[_0x15bc('0x16')];if(!_0x3ecee9['plugins'][_0x15bc('0x12')]('Title'))return;const _0x15d7b8=_0x3ecee9['plugins'][_0x15bc('0x5')](_0x15bc('0x18'));_0x15d7b8[_0x15bc('0xf')]['registerElementLabel']('title-content',()=>_0x4d3431(_0x3ecee9[_0x15bc('0x6')],_0x15bc('0xc'))),_0x3ecee9[_0x15bc('0xd')][_0x15bc('0xb')][_0x15bc('0x0')](_0x5b626f=>{let _0x44d217=!0x1;const _0x3feb03=Array[_0x15bc('0x15')](_0x3ecee9['model'][_0x15bc('0xb')][_0x15bc('0x2')]['getChangedMarkers']());for(const {name:_0x22b5fc,data:_0x53e4cc}of _0x3feb03){const {group:_0x4f7fcc}=_0x15d7b8[_0x15bc('0x8')](_0x22b5fc);if(_0x15bc('0xe')!==_0x4f7fcc||!_0x53e4cc['newRange'])continue;const _0x34246e=_0x53e4cc[_0x15bc('0x14')],_0x3257c9=_0x34246e[_0x15bc('0x10')]['nodeBefore'];if(!_0x3257c9||!_0x3257c9['is'](_0x15bc('0x13'),_0x15bc('0x1')))continue;if(!_0x34246e[_0x15bc('0x7')][_0x15bc('0x17')](_0x34246e[_0x15bc('0x10')]))continue;const _0x3f1ce8=_0x3ecee9['model']['schema'][_0x15bc('0x4')](_0x34246e[_0x15bc('0x10')],_0x15bc('0xa'));if(_0x3f1ce8&&_0x3f1ce8[_0x15bc('0x11')]){const _0xa25cea=_0x5b626f[_0x15bc('0x3')](_0x34246e['start'],_0x3f1ce8[_0x15bc('0x7')]);_0xa25cea['isEqual'](_0x34246e)||(_0x5b626f[_0x15bc('0x9')](_0x22b5fc,{'range':_0xa25cea}),_0x44d217=!0x0);}_0x44d217||(_0x5b626f['removeMarker'](_0x22b5fc),_0x44d217=!0x0);}return _0x44d217;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ed3=['plugins','afterInit','undo','enableCommand','get','UndoEditing','has','TrackChangesEditing','redo'];(function(_0x1125a6,_0x1ed30b){const _0x189f15=function(_0x36c4c1){while(--_0x36c4c1){_0x1125a6['push'](_0x1125a6['shift']());}};_0x189f15(++_0x1ed30b);}(_0x1ed3,0xac));const _0x189f=function(_0x1125a6,_0x1ed30b){_0x1125a6=_0x1125a6-0x0;let _0x189f15=_0x1ed3[_0x1125a6];return _0x189f15;};import{Plugin as _0x1ee5d1}from'ckeditor5/src/core';export default class vt extends _0x1ee5d1{[_0x189f('0x0')](){const _0x174e3c=this['editor'],_0x1f27f2=_0x174e3c[_0x189f('0x8')][_0x189f('0x3')](_0x189f('0x6'));_0x174e3c[_0x189f('0x8')][_0x189f('0x5')](_0x189f('0x4'))&&(_0x1f27f2[_0x189f('0x2')](_0x189f('0x1')),_0x1f27f2[_0x189f('0x2')](_0x189f('0x7')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x595d=['previousPosition','activeMarkers','TrackChangesEditing','getItems','createRangeOn','isAtEnd','ck-suggestion-marker--active','name','item','bindElementToMarker','type','nextSibling','getCustomProperty','listIndent','get','plugins','markerName','elementEnd','insert','isBlock','mapper','test','listItem','markerRange','isLimit','isContent','hasAttribute','getWalker','ck-suggestion-marker-','includes','span','writer','getAttribute','parent'];(function(_0x86ea39,_0x595df5){const _0x582754=function(_0x11cb24){while(--_0x11cb24){_0x86ea39['push'](_0x86ea39['shift']());}};_0x582754(++_0x595df5);}(_0x595d,0x87));const _0x5827=function(_0x86ea39,_0x595df5){_0x86ea39=_0x86ea39-0x0;let _0x582754=_0x595d[_0x86ea39];return _0x582754;};export function getRangesWithAttribute(_0x413a97,_0x261c29,_0x401304){const _0x570d18=[];for(const _0x55eec8 of _0x261c29[_0x5827('0x4')]())_0x55eec8[_0x5827('0x1b')](_0x413a97)&&_0x570d18['push'](_0x401304[_0x5827('0x5')](_0x55eec8));return _0x570d18;}export function getElementsAffectedByListItemRename(_0x1e261d){const _0x2df1b9=[];if(_0x1e261d['is']('element',_0x5827('0x17'))){let _0xff9382=_0x1e261d[_0x5827('0xc')];for(;_0xff9382&&_0xff9382['is']('element',_0x5827('0x17'))&&_0xff9382[_0x5827('0x21')](_0x5827('0xe'))>0x0;)_0x2df1b9['push'](_0xff9382),_0xff9382=_0xff9382['nextSibling'];}return _0x2df1b9;}export function downcastSplitMergeMarker(_0x506b13,_0x4ee16e,{showActiveMarker:_0x56e183=!0x0}={}){const _0x3eba72=_0x506b13[_0x5827('0x10')][_0x5827('0xf')](_0x5827('0x3'));return(_0x2c876d,_0x23c0ef,_0x228613)=>{if(!_0x228613['consumable'][_0x5827('0x16')](_0x23c0ef[_0x5827('0x18')],_0x2c876d[_0x5827('0x8')]))return;const _0x39a47e=_0x23c0ef[_0x5827('0x18')][_0x5827('0x1c')](),_0x1a3b7b=_0x23c0ef[_0x5827('0x18')]['start'],_0x294c3d=_0x506b13['model']['schema'];let _0x4ab423=null,_0x536f6e=null,_0x2af311=!0x1,_0x47d9ba=!0x1;for(const _0x2bfeaa of _0x39a47e){const _0x506381=_0x2bfeaa[_0x5827('0x9')];_0x2af311=_0x2af311||_0x294c3d[_0x5827('0x1a')](_0x506381);const _0x965483=_0x228613[_0x5827('0x15')]['toViewElement'](_0x506381);if(_0x965483&&_0x965483[_0x5827('0xd')]('addHighlight'))return;_0x5827('0x12')==_0x2bfeaa[_0x5827('0xb')]&&(_0x294c3d[_0x5827('0x14')](_0x506381)&&!_0x294c3d[_0x5827('0x19')](_0x506381)&&(_0x506381[_0x5827('0xc')]||_0x1a3b7b[_0x5827('0x6')]?_0x4ab423&&_0x4ab423[_0x5827('0x0')]==_0x506381||(_0x4ab423=_0x506381,_0x259b99(_0x2bfeaa[_0x5827('0x1')]),_0x47d9ba=!0x0):_0x536f6e=_0x536f6e||_0x2bfeaa[_0x5827('0x1')]));}function _0x259b99(_0x3aa837){const _0x425afc=_0x228613[_0x5827('0x20')]['createUIElement'](_0x5827('0x1f'),{'class':_0x5827('0x1d')+_0x4ee16e}),_0x13e3de=_0x228613['mapper']['toViewPosition'](_0x3aa837);_0x56e183&&_0x3eba72[_0x5827('0x2')][_0x5827('0x1e')](_0x23c0ef[_0x5827('0x11')])&&_0x228613['writer']['addClass'](_0x5827('0x7'),_0x425afc),_0x228613[_0x5827('0x20')][_0x5827('0x13')](_0x13e3de,_0x425afc),_0x228613['mapper'][_0x5827('0xa')](_0x425afc,_0x23c0ef['markerName']);}_0x2af311||_0x47d9ba||!_0x536f6e||_0x259b99(_0x536f6e);};}
|