@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240117.0 → 0.0.0-nightly-20240119.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/casechange.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/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.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 _0xa09d=['from','setAttribute','suggestion','keys','commands','getSuggestion','reduce','length','getChild','dataDowncast','_splitMarkerName','element','tablePasteChainId','options','type','push','deletionRanges','tableCellBorderWidth','containsRange','newRange','includes','markerToHighlight','editingDowncast','columnInsertionIndexes','formatBlock','setAttributes','_createdBatches','listenTo','_suggestionFactory','start','rows','getSuggestionCallback','hasSuggestion','afterInit','removeColumns','tableCellHorizontalAlignment','columns','getMarkers','high','schema','isEqual','table','showSuggestionHighlights','cell','markerAttributes','getContainedElement','tablePasteColumn','isInContent','Users','insertContent','createTableWalker','trackChanges','createRangeOn','cells','getChildren','deletion','getTableIfOnlyTableInContent','getRowIndexes','getAllAdjacentSuggestions','isEmpty','updateMarker','markers','find','get','suggestionLoaded','getChangedMarkers','createPositionBefore','for','next','_getCoordsForCells','paragraph','filter','getAttributes','tableCellVerticalAlignment','endRow','insertionRanges','register','_replaceTableSlotCell','has','unwrap','forceDefaultExecution','markerName','rowInsertionRanges','remove','columnInsertionRanges','fromEntries','getSuggestions','add','startsWith','clipboardOutput','tableCellBorderColor','change','tablePasteRow','stop','differ','subType','getItems','createRangeIn','author','join','markMultiRangeDeletion','root','last','$graveyard','accept','insert','redo','endColumn','view','locale','_descriptionFactory','getColumns','position','editor','conversion','insertion','column','getColumnIndexes','getRanges','getSelectionAffectedTableCells','createElement','map','tablePasteCell','TableClipboard','plugins','tableCellSuggestion','value','markMultiRangeInsertion','first','some','tableCellBorderStyle','ck-suggestion-marker','attributes','suggestion-td','registerPostFixer','removeMarker','findAncestor','low','previous','fill','_tablePostFixingSubtypes','rowInsertionIndexes','registerCustomCallback','entries','selection','return','ck-suggestion-marker-insertion','suggestionUnloaded','model','batch','discard','oldRange','elementToElement','previousSibling','tablePaste','tableCell','set','createRange','getRange','tableCellBackgroundColor','every','document','nextSibling','getChanges','requires'];(function(_0x2a12df,_0xa09d32){const _0x4f7e85=function(_0x544235){while(--_0x544235){_0x2a12df['push'](_0x2a12df['shift']());}};_0x4f7e85(++_0xa09d32);}(_0xa09d,0x114));const _0x4f7e=function(_0x2a12df,_0xa09d32){_0x2a12df=_0x2a12df-0x0;let _0x4f7e85=_0xa09d[_0x2a12df];return _0x4f7e85;};import{getTranslation as _0x5a59f4}from'../utils/common-translations.js';import{Plugin as _0x5d0c85}from'ckeditor5/src/core.js';import{uid as _0x5a47d5,priorities as _0x53bc5e}from'ckeditor5/src/utils.js';import _0x1fdb83 from'./table.js';const fe=[_0x4f7e('0x47'),_0x4f7e('0x90'),_0x4f7e('0x13'),_0x4f7e('0x59'),_0x4f7e('0x7f'),_0x4f7e('0x30'),'tableCellPadding'],be=Object['fromEntries'](fe[_0x4f7e('0xa')](_0x25aab8=>[_0x25aab8,null]));export default class At extends _0x5d0c85{static get[_0x4f7e('0x35')](){return[_0x1fdb83];}[_0x4f7e('0x57')](){const _0x2d245a=this[_0x4f7e('0x2')];if(!_0x2d245a[_0x4f7e('0xd')][_0x4f7e('0x84')]('TableClipboard'))return;const _0xa3c064=_0x2d245a[_0x4f7e('0xd')][_0x4f7e('0x75')]('TrackChangesEditing'),_0x532c7b=_0x2d245a[_0x4f7e('0xd')][_0x4f7e('0x75')]('TableUtils'),_0x117122=_0x2d245a[_0x4f7e('0xd')][_0x4f7e('0x75')](_0x1fdb83),_0x2441a7=_0x2d245a[_0x4f7e('0xd')]['get'](_0x4f7e('0xc'));_0x117122[_0x4f7e('0x1d')][_0x4f7e('0x45')](_0x4f7e('0x92'),'tablePasteColumn'),_0x2d245a[_0x4f7e('0x25')][_0x4f7e('0x5d')][_0x4f7e('0x82')]('tableCellSuggestion',{'allowIn':_0x4f7e('0x2c'),'allowContentOf':_0x4f7e('0x2c'),'isLimit':!0x0}),_0x2d245a[_0x4f7e('0x3')][_0x4f7e('0x29')]({'model':_0x4f7e('0xe'),'view':_0x4f7e('0x16')});let _0x37cc9d=null;_0x2d245a[_0x4f7e('0x25')]['on'](_0x4f7e('0x67'),(_0x5f3512,_0xd9c9db)=>{const [_0x36d9c1,_0x2f9cf3]=_0xd9c9db,_0x3535b0=_0xd9c9db[_0xd9c9db[_0x4f7e('0x3d')]-0x1];_0x3535b0&&_0x3535b0[_0x4f7e('0x86')]||_0xa3c064['_isForcedDefaultExecutionBlock']||this[_0x4f7e('0x2')]['commands'][_0x4f7e('0x75')](_0x4f7e('0x69'))[_0x4f7e('0xf')]&&function(_0x50afa9,_0x2ea13a,_0x1875d0,_0x38d716,_0x1c9e51){if(_0x2ea13a&&!_0x2ea13a['is']('documentSelection'))return!0x1;const _0x2a2215=_0x1c9e51[_0x4f7e('0x6e')](_0x50afa9,_0x1875d0);if(!_0x2a2215||!de(_0x2a2215,void 0x0,_0x38d716))return!0x1;const _0x555536=_0x38d716[_0x4f7e('0x8')](_0x1875d0['document'][_0x4f7e('0x21')]);if(!_0x555536[_0x4f7e('0x3d')])return!0x1;const _0x372bec=_0x555536[0x0][_0x4f7e('0x19')]('table'),_0x33fb37=_0x38d716[_0x4f7e('0x6f')](_0x555536),_0xdc9d59=_0x38d716[_0x4f7e('0x6')](_0x555536),_0xeab6a7={'startRow':_0x33fb37[_0x4f7e('0x11')],'endRow':_0x33fb37[_0x4f7e('0x9c')],'startColumn':_0xdc9d59[_0x4f7e('0x11')],'endColumn':_0xdc9d59[_0x4f7e('0x9c')]};return 0x1==_0x555536[_0x4f7e('0x3d')]&&(_0xeab6a7[_0x4f7e('0x80')]+=_0x38d716['getRows'](_0x2a2215)-0x1,_0xeab6a7[_0x4f7e('0xa1')]+=_0x38d716[_0x4f7e('0x0')](_0x2a2215)-0x1),de(_0x372bec,_0xeab6a7,_0x38d716);}(_0x36d9c1,_0x2f9cf3,_0x2d245a[_0x4f7e('0x25')],_0x532c7b,_0x2441a7)&&(_0x5f3512[_0x4f7e('0x93')](),_0x37cc9d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2d245a[_0x4f7e('0x25')][_0x4f7e('0x91')](()=>{_0x2d245a[_0x4f7e('0x25')][_0x4f7e('0x67')](_0xd9c9db[0x0],_0xd9c9db[0x1],_0xd9c9db[0x2],{'forceDefaultExecution':!0x0});const _0x58e04d=_0x5a47d5(),{rowInsertionRanges:_0x425529,columnInsertionRanges:_0x54f182,insertionRanges:_0x3e5e0d,deletionRanges:_0x4c1cd5,cells:_0x1eb0fd}=_0x37cc9d;_0x425529[_0x4f7e('0x3d')]&&_0xa3c064[_0x4f7e('0x10')](_0x425529,_0x4f7e('0x92'),{'tablePasteChainId':_0x58e04d}),_0x54f182[_0x4f7e('0x3d')]&&_0xa3c064[_0x4f7e('0x10')](_0x54f182,_0x4f7e('0x64'),{'tablePasteChainId':_0x58e04d}),_0x3e5e0d[_0x4f7e('0x3d')]&&_0xa3c064[_0x4f7e('0x10')](_0x3e5e0d,'tablePaste',{'tablePasteChainId':_0x58e04d,'skipNestingCheck':!0x0}),_0x4c1cd5[_0x4f7e('0x3d')]&&_0xa3c064[_0x4f7e('0x9a')](_0x4c1cd5,_0x4f7e('0x2b'),{'tablePasteChainId':_0x58e04d,'skipNestingCheck':!0x0});const _0x261de6=_0xa3c064['markMultiRangeBlockFormat'](_0x1eb0fd[_0x4f7e('0xa')](({element:_0x164f51})=>_0x164f51),{'formatGroupId':_0x5a47d5()},[],_0x4f7e('0xb'),{'tablePasteChainId':_0x58e04d});if(_0x261de6){const _0x25704f=_0x261de6['getMarkers'](),_0x174b8e=[];for(const {element:_0x1f27d2,attributes:_0x31f7f1}of _0x1eb0fd){if(!_0x31f7f1)continue;const _0x3cbda6=_0x2d245a['model'][_0x4f7e('0x6a')](_0x1f27d2),_0x198af9=_0x25704f[_0x4f7e('0x74')](_0x3c42be=>_0x3c42be[_0x4f7e('0x2f')]()['isEqual'](_0x3cbda6));_0x198af9&&_0x174b8e[_0x4f7e('0x45')]([_0x198af9['name'],_0x31f7f1]);}_0x174b8e[_0x4f7e('0x3d')]&&_0x261de6[_0x4f7e('0x37')]('markerAttributes',Object[_0x4f7e('0x8b')](_0x174b8e));}_0x37cc9d=null;}));},{'priority':_0x53bc5e[_0x4f7e('0x5c')]+0xa}),_0x2d245a[_0x4f7e('0xd')][_0x4f7e('0x75')](_0x4f7e('0xc'))['on'](_0x4f7e('0x83'),(_0xfe6878,_0xd3564a)=>{const [_0x692d9d,_0x1845f5,,_0xa29c28]=_0xd3564a;if(!_0x37cc9d)return;_0xfe6878[_0x4f7e('0x93')]();const _0xba8812=_0x692d9d[_0x4f7e('0x61')],_0x18c50c=_0x1845f5,_0x58d8ef=ge(_0xba8812),_0x16189f=ge(_0x18c50c);_0xfe6878[_0x4f7e('0x22')]=_0xba8812;let _0x513ac5=null,_0xfed935=null;if(_0x16189f||_0x58d8ef){if(_0x58d8ef&&!_0x16189f){_0xa29c28[_0x4f7e('0x89')](_0xba8812[_0x4f7e('0x3e')](0x0));for(const _0x1349d5 of Array[_0x4f7e('0x36')](_0x18c50c[_0x4f7e('0x6c')]()))_0xa29c28[_0x4f7e('0x9f')](_0x1349d5,_0xba8812,'end');const _0x114f64=_0x37cc9d[_0x4f7e('0x1e')][_0x4f7e('0x4a')](_0x692d9d['row']),_0x191d9c=_0x37cc9d[_0x4f7e('0x4d')]['includes'](_0x692d9d[_0x4f7e('0x5')]);_0x114f64||_0x191d9c||(_0x513ac5=_0xa29c28[_0x4f7e('0x97')](_0xba8812));}else _0x16189f&&!_0x58d8ef&&(_0xfed935=_0xa29c28['createRangeIn'](_0xba8812));}else{const _0x371d56=_0xa29c28[_0x4f7e('0x9')](_0x4f7e('0xe')),_0x5caec9=_0xa29c28['createElement'](_0x4f7e('0xe'));_0xa29c28['wrap'](_0xa29c28[_0x4f7e('0x97')](_0xba8812),_0x5caec9),_0xa29c28[_0x4f7e('0x9f')](_0x371d56,_0xba8812,0x0);for(const _0x17a346 of Array['from'](_0x18c50c['getChildren']()))_0xa29c28[_0x4f7e('0x9f')](_0x17a346,_0x371d56,'end');_0x513ac5=_0xa29c28[_0x4f7e('0x6a')](_0x371d56),_0xfed935=_0xa29c28[_0x4f7e('0x6a')](_0x5caec9);}const _0x5b18f2=Array['from'](_0x18c50c[_0x4f7e('0x7e')]())[_0x4f7e('0x7d')](([_0x1fde7a])=>fe[_0x4f7e('0x4a')](_0x1fde7a));_0x37cc9d[_0x4f7e('0x6b')][_0x4f7e('0x45')]({'element':_0xba8812,'attributes':_0x5b18f2[_0x4f7e('0x3d')]?Object['fromEntries'](_0x5b18f2):null}),_0x513ac5&&_0x37cc9d[_0x4f7e('0x81')][_0x4f7e('0x45')](_0x513ac5),_0xfed935&&_0x37cc9d[_0x4f7e('0x46')][_0x4f7e('0x45')](_0xfed935);},{'priority':_0x4f7e('0x5c')}),_0x532c7b['on']('insertColumns',(_0x3a0f16,_0x246339)=>{const [_0x2413c9,_0x2bfa04={}]=_0x246339;if(!_0x37cc9d)return;const _0x40bd1c=_0x2bfa04['at']||0x0,_0x56f1c9=_0x2bfa04[_0x4f7e('0x5a')]||0x1;_0x37cc9d['columnInsertionIndexes']=new Array(_0x56f1c9)[_0x4f7e('0x1c')](_0x40bd1c)['map']((_0x112137,_0x258543)=>_0x112137+_0x258543);for(const {cell:_0x212b29}of _0x532c7b[_0x4f7e('0x68')](_0x2413c9,{'startColumn':_0x40bd1c,'endColumn':_0x40bd1c+_0x56f1c9-0x1}))_0x37cc9d[_0x4f7e('0x8a')]['push'](_0x2d245a[_0x4f7e('0x25')][_0x4f7e('0x6a')](_0x212b29));},{'priority':'low'}),_0x532c7b['on']('insertRows',(_0x75158a,_0x32727c)=>{const [_0xb66170,_0x18c473={}]=_0x32727c;if(!_0x37cc9d)return;const _0x2e6daf=_0x18c473['at']||0x0,_0x34b180=_0x18c473[_0x4f7e('0x54')]||0x1;_0x37cc9d[_0x4f7e('0x1e')]=new Array(_0x34b180)[_0x4f7e('0x1c')](_0x2e6daf)['map']((_0x5341a6,_0x33f32a)=>_0x5341a6+_0x33f32a);for(const {cell:_0x2a6835}of _0x532c7b[_0x4f7e('0x68')](_0xb66170,{'startRow':_0x2e6daf,'endRow':_0x2e6daf+_0x34b180-0x1}))_0x37cc9d[_0x4f7e('0x88')][_0x4f7e('0x45')](_0x2d245a[_0x4f7e('0x25')]['createRangeOn'](_0x2a6835));},{'priority':_0x4f7e('0x1a')}),_0xa3c064[_0x4f7e('0xa4')]['registerDescriptionCallback'](_0x1e3030=>{if(_0x1e3030[_0x4f7e('0x95')]&&_0x1e3030['subType'][_0x4f7e('0x8e')](_0x4f7e('0x2b')))return _0x1e3030[_0x4f7e('0x1b')]?{}:{'type':_0x4f7e('0x4'),'content':_0x5a59f4(_0x2d245a[_0x4f7e('0xa3')],'*Replace\x20table\x20cells*')};});const _0x488e68=()=>!0x1;for(const _0x3df37c of[_0x4f7e('0x2b'),_0x4f7e('0x64'),_0x4f7e('0x92'),_0x4f7e('0xb')])_0xa3c064[_0x4f7e('0x52')][_0x4f7e('0x1f')](_0x4f7e('0x4'),_0x3df37c,_0x4f7e('0x99'),_0x488e68),_0xa3c064[_0x4f7e('0x52')][_0x4f7e('0x1f')]('deletion',_0x3df37c,_0x4f7e('0x99'),_0x488e68),_0xa3c064[_0x4f7e('0x52')]['registerCustomCallback'](_0x4f7e('0x4e'),_0x3df37c,_0x4f7e('0x99'),_0x488e68);_0xa3c064[_0x4f7e('0x52')][_0x4f7e('0x1f')]('formatBlock',_0x4f7e('0xb'),_0x4f7e('0x27'),_0x488e68),_0xa3c064['_suggestionFactory'][_0x4f7e('0x1f')](_0x4f7e('0x4e'),_0x4f7e('0xb'),_0x4f7e('0x9e'),(_0x646e1,_0x523b07,_0x5d8c69)=>{const _0x53cabe=_0x646e1[_0x4f7e('0xa')](_0xbec774=>_0xbec774[_0x4f7e('0x63')]())[_0x4f7e('0x7d')](_0x178f31=>_0x178f31),_0x2aaf7e=new Map(_0x53cabe[_0x4f7e('0xa')](_0x1992a3=>[_0x1992a3,null]));if(_0x37cc9d)for(const {element:_0x4e3b92,attributes:_0x1f7460}of _0x37cc9d['cells'])_0x1f7460&&_0x2aaf7e['set'](_0x4e3b92,_0x1f7460);else{if(_0x5d8c69&&_0x5d8c69[_0x4f7e('0x62')])for(const [_0x29c267,_0x5f59f4]of Object[_0x4f7e('0x20')](_0x5d8c69[_0x4f7e('0x62')])){const _0xeb16af=_0x2d245a[_0x4f7e('0x25')][_0x4f7e('0x73')][_0x4f7e('0x75')](_0x29c267),_0x54917f=_0xeb16af?_0xeb16af[_0x4f7e('0x2f')]()[_0x4f7e('0x63')]():null;_0x54917f&&_0x2aaf7e[_0x4f7e('0x2d')](_0x54917f,_0x5f59f4);}}_0x2d245a[_0x4f7e('0x25')][_0x4f7e('0x91')](_0x3dfecf=>{for(const [_0x5cafc4,_0x20010]of _0x2aaf7e)_0x3dfecf[_0x4f7e('0x4f')]({...be,..._0x20010},_0x5cafc4);});});const _0x58e552=(_0x5dc056,_0x3cd639)=>{_0xa3c064[_0x4f7e('0x52')][_0x4f7e('0x1f')](_0x5dc056,_0x4f7e('0x2b'),_0x3cd639,(_0x4e5a04,_0x5f146e,_0x2eaa9)=>{_0x2d245a[_0x4f7e('0x25')][_0x4f7e('0x91')](_0x4e443c=>{const _0x4db87b=[];for(const _0x2da533 of _0x4e5a04){const _0x523fd2=_0x2da533[_0x4f7e('0x53')]['nodeAfter'];_0x523fd2['is']('element','tableCellSuggestion')&&_0x4db87b[_0x4f7e('0x45')](_0x523fd2);}_0xa3c064[_0x4f7e('0x52')][_0x4f7e('0x55')](_0x5dc056,null,_0x3cd639)(_0x4e5a04,_0x5f146e,_0x2eaa9);for(const _0x256566 of _0x4db87b)_0x4f7e('0x9d')!=_0x256566[_0x4f7e('0x9b')]['rootName']&&_0x4e443c[_0x4f7e('0x85')](_0x256566);});});};_0x58e552('insertion','accept'),_0x58e552('insertion',_0x4f7e('0x27')),_0x58e552(_0x4f7e('0x6d'),_0x4f7e('0x9e')),_0x58e552(_0x4f7e('0x6d'),'discard'),_0xa3c064[_0x4f7e('0x52')][_0x4f7e('0x1f')](_0x4f7e('0x4'),'tablePasteRow',_0x4f7e('0x27'),_0xbca7aa=>{const _0x3040d1=_0xbca7aa['map'](_0x38f3d9=>_0x38f3d9[_0x4f7e('0x63')]()),_0x171dce=_0x3040d1[0x0]['findAncestor']('table'),{minRow:_0x3e393d,maxRow:_0x4581f6}=_0x117122['_getCoordsForCells'](_0x3040d1);_0x532c7b['removeRows'](_0x171dce,{'at':_0x3e393d,'rows':_0x4581f6-_0x3e393d+0x1});}),_0xa3c064[_0x4f7e('0x52')]['registerCustomCallback'](_0x4f7e('0x4'),_0x4f7e('0x64'),_0x4f7e('0x27'),_0x42ec5b=>{const _0x167b5b=_0x42ec5b['map'](_0x5e0fe0=>_0x5e0fe0['getContainedElement']()),_0x4b2f0f=_0x167b5b[0x0]['findAncestor'](_0x4f7e('0x5f')),{minColumn:_0x122814,maxColumn:_0x24f13f}=_0x117122[_0x4f7e('0x7b')](_0x167b5b);_0x532c7b[_0x4f7e('0x58')](_0x4b2f0f,{'at':_0x122814,'columns':_0x24f13f-_0x122814+0x1});});const _0x244a01=(_0x4def4b,_0x54bb83)=>{if(!_0x54bb83[_0x4f7e('0x95')]||!_0x54bb83['subType']['startsWith'](_0x4f7e('0x2b')))return;const _0x2b20b2=_0x54bb83[_0x4f7e('0x15')][_0x4f7e('0x42')],_0x26f27e=_0xa3c064['getSuggestions']()[_0x4f7e('0x7d')](_0x2f3688=>_0x2f3688[_0x4f7e('0x65')]&&_0x2f3688[_0x4f7e('0x15')]&&_0x2f3688[_0x4f7e('0x15')][_0x4f7e('0x42')]==_0x2b20b2);_0x26f27e[_0x4f7e('0x3d')]&&_0x54bb83[_0x4f7e('0x70')]()['length']!=_0x26f27e[_0x4f7e('0x3d')]&&_0x26f27e[_0x4f7e('0x3c')]((_0x129f6b,_0x2ad9af)=>(_0x129f6b[_0x4f7e('0x7a')]=_0x2ad9af,_0x2ad9af['previous']=_0x129f6b,_0x2ad9af));};function _0x55bced(_0xfae8e9,_0x290282=!0x0){const {id:_0x1be8c0}=_0xa3c064[_0x4f7e('0x40')](_0xfae8e9['markerName']),_0x26f8e2=[_0x4f7e('0x14'),_0x4f7e('0x23')],_0x26f352=_0xa3c064['activeMarkers']['includes'](_0xfae8e9[_0x4f7e('0x87')]);return _0x26f352&&_0x26f8e2[_0x4f7e('0x45')]('ck-suggestion-marker--active'),{'classes':_0x26f8e2,'attributes':{'data-suggestion':_0x1be8c0},'priority':_0x26f352&&_0x290282?0xbc2:0xbb8};}_0xa3c064['on'](_0x4f7e('0x76'),_0x244a01,{'priority':_0x4f7e('0x5c')}),_0xa3c064['on'](_0x4f7e('0x24'),_0x244a01,{'priority':_0x4f7e('0x5c')}),_0x2d245a[_0x4f7e('0x25')][_0x4f7e('0x32')][_0x4f7e('0x17')](()=>{let _0x30dc54=!0x1;const _0x73442e=Array[_0x4f7e('0x36')](_0x2d245a[_0x4f7e('0x25')][_0x4f7e('0x32')][_0x4f7e('0x94')][_0x4f7e('0x77')]());for(const {name:_0x5d1f84,data:_0x42c70b}of _0x73442e){const {group:_0xa44c90,type:_0x4dbea6,id:_0x10619f}=_0xa3c064[_0x4f7e('0x40')](_0x5d1f84);if(_0x4f7e('0x38')!=_0xa44c90||_0x4f7e('0x6d')!=_0x4dbea6||_0x42c70b['oldRange'])continue;if(!_0xa3c064[_0x4f7e('0x56')](_0x10619f))continue;const _0x2c0d14=_0xa3c064[_0x4f7e('0x3b')](_0x10619f)[_0x4f7e('0x7')](),_0x3ccab9=_0x2d245a[_0x4f7e('0xd')][_0x4f7e('0x75')](_0x4f7e('0x66'))['me'];for(const _0x1e629e of _0xa3c064[_0x4f7e('0x8c')]()){if(!_0x1e629e[_0x4f7e('0x65')]||_0x1e629e[_0x4f7e('0x98')]!=_0x3ccab9)continue;if(_0x4f7e('0x4e')!=_0x1e629e[_0x4f7e('0x44')]||_0x4f7e('0xb')!=_0x1e629e[_0x4f7e('0x95')])continue;if(_0x1e629e[_0x4f7e('0x7')]()[_0x4f7e('0x31')](_0x4c78a1=>_0x2c0d14[_0x4f7e('0x12')](_0x1e7356=>_0x1e7356[_0x4f7e('0x48')](_0x4c78a1,!0x0))))for(const _0x29c4e3 of _0x1e629e['getAllAdjacentSuggestions']())_0x29c4e3[_0x4f7e('0x65')]&&(_0x29c4e3[_0x4f7e('0x27')](),_0x30dc54=!0x0);}}return _0x30dc54;}),_0x2d245a[_0x4f7e('0x25')]['document']['registerPostFixer'](_0x4e517d=>{const _0x2ad54f=_0x2d245a[_0x4f7e('0x3a')][_0x4f7e('0x75')](_0x4f7e('0xa0'));if(!_0x2ad54f||!_0x2ad54f[_0x4f7e('0x50')][_0x4f7e('0x84')](_0x4e517d[_0x4f7e('0x26')]))return!0x1;let _0x4ecd3d=!0x1;const _0x224c91=_0x2d245a[_0x4f7e('0xd')][_0x4f7e('0x75')]('Users')['me'],_0x564a6f=_0x2d245a[_0x4f7e('0x25')][_0x4f7e('0x32')]['differ'][_0x4f7e('0x34')](),_0x83a633=Array[_0x4f7e('0x36')](_0x2d245a[_0x4f7e('0x25')][_0x4f7e('0x32')]['differ'][_0x4f7e('0x77')]())[_0x4f7e('0x7d')](({name:_0x1e0998,data:_0x697b85})=>{const {group:_0x3d513c,subType:_0x2d82d7,authorId:_0x2def4a}=_0xa3c064[_0x4f7e('0x40')](_0x1e0998);return _0x4f7e('0x38')==_0x3d513c&&'tablePaste'==_0x2d82d7&&_0x2def4a==_0x224c91['id']&&!_0x697b85[_0x4f7e('0x28')];});for(const _0x578fc3 of _0x564a6f){if(_0x4f7e('0x9f')!=_0x578fc3[_0x4f7e('0x44')]||_0x4f7e('0xe')!=_0x578fc3['name']||0x1!=_0x578fc3[_0x4f7e('0x3d')])continue;const _0x3e7bef=_0x4e517d[_0x4f7e('0x2e')](_0x578fc3[_0x4f7e('0x1')],_0x578fc3[_0x4f7e('0x1')]['getShiftedBy'](0x1));if(!_0x83a633[_0x4f7e('0x74')](({data:_0x30aeef})=>_0x30aeef[_0x4f7e('0x49')][_0x4f7e('0x5e')](_0x3e7bef)))for(const {name:_0x443abf,data:_0x3c9ac4}of _0x83a633)if(_0x3e7bef[_0x4f7e('0x48')](_0x3c9ac4[_0x4f7e('0x49')])){_0x4e517d[_0x4f7e('0x72')](_0x443abf,{'range':_0x3e7bef}),_0x4ecd3d=!0x0;break;}}return _0x4ecd3d;}),_0x2d245a[_0x4f7e('0x25')][_0x4f7e('0x32')][_0x4f7e('0x17')](_0x29a906=>{let _0x36a691=!0x1;const _0x408803=_0x2d245a[_0x4f7e('0xd')]['get'](_0x4f7e('0x66'))['me'],_0x38c01e=_0xa3c064[_0x4f7e('0x8c')]()['filter'](_0x9e21d1=>_0x9e21d1['isInContent']&&_0x9e21d1[_0x4f7e('0x98')]==_0x408803),_0x145d11=new Set(),_0x2630e8=new Set();for(const _0x5c33a5 of _0x38c01e)if('tablePaste'==_0x5c33a5[_0x4f7e('0x95')])for(const _0xc0df8e of _0x5c33a5[_0x4f7e('0x5b')]()){const _0x10dec9=_0xc0df8e[_0x4f7e('0x2f')]()['getContainedElement']();if(_0x10dec9){if(_0x10dec9['is'](_0x4f7e('0x41'),'tableCellSuggestion')&&ge(_0x10dec9)){_0x5c33a5['removeMarker'](_0xc0df8e['name']),_0x145d11['add'](_0x10dec9),_0x36a691=!0x0;const _0x3e4d0c=_0x10dec9[_0x4f7e('0x33')],_0x16e9c1=_0x10dec9[_0x4f7e('0x2a')],_0x40f43b=_0x3e4d0c&&_0x3e4d0c['is'](_0x4f7e('0x41'),'tableCellSuggestion'),_0x22cd07=_0x16e9c1&&_0x16e9c1['is']('element','tableCellSuggestion');_0x40f43b&&!_0x145d11[_0x4f7e('0x84')](_0x3e4d0c)&&_0x2630e8[_0x4f7e('0x8d')](_0x3e4d0c),_0x22cd07&&!_0x145d11[_0x4f7e('0x84')](_0x16e9c1)&&_0x2630e8['add'](_0x16e9c1);}else _0x10dec9['is'](_0x4f7e('0x41'),'paragraph')&&_0x10dec9[_0x4f7e('0x71')]&&(_0x5c33a5[_0x4f7e('0x18')](_0xc0df8e['name']),_0x36a691=!0x0);}}else{if(_0x4f7e('0xb')==_0x5c33a5[_0x4f7e('0x95')]){if(!_0x5c33a5[_0x4f7e('0x15')]||!_0x5c33a5[_0x4f7e('0x15')][_0x4f7e('0x42')])continue;const _0x5c8d88=_0x5c33a5[_0x4f7e('0x15')][_0x4f7e('0x62')];if(_0x5c8d88&&Object[_0x4f7e('0x39')](_0x5c8d88)[_0x4f7e('0x3d')])continue;const _0x123a1b=_0x5c33a5[_0x4f7e('0x15')][_0x4f7e('0x42')];let _0x5ba7b8=!0x0,_0x43e323=!0x0;for(const _0x12e9f3 of _0x38c01e)if(_0x12e9f3[_0x4f7e('0x95')]&&_0x12e9f3[_0x4f7e('0x95')][_0x4f7e('0x8e')](_0x4f7e('0x2b'))){if(!_0x12e9f3[_0x4f7e('0x15')][_0x4f7e('0x42')]){_0x43e323=!0x1;break;}if(_0x12e9f3['id']!=_0x5c33a5['id']&&_0x12e9f3[_0x4f7e('0x15')]['tablePasteChainId']==_0x123a1b){_0x5ba7b8=!0x1;break;}}_0x43e323&&_0x5ba7b8&&(_0x5c33a5['removeMarkers'](),_0x36a691=!0x0);}}for(const _0x13425d of _0x145d11)_0x29a906[_0x4f7e('0x89')](_0x13425d);for(const _0x1adff of _0x2630e8)_0x29a906[_0x4f7e('0x85')](_0x1adff);return _0x36a691;}),_0x2d245a[_0x4f7e('0x3')][_0x4f7e('0x79')](_0x4f7e('0x4c'))[_0x4f7e('0x4b')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1555d2,_0x581afc)=>_0x55bced(_0x1555d2),'converterPriority':'high'}),_0x2d245a[_0x4f7e('0x3')][_0x4f7e('0x79')](_0x4f7e('0x3f'))['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x267e5d,_0x5c161a)=>_0x5c161a[_0x4f7e('0x43')][_0x4f7e('0x60')]?_0x55bced(_0x267e5d,!0x1):null,'converterPriority':_0x4f7e('0x5c')});const _0x3d6960=_0x2d245a['editing'][_0x4f7e('0xa2')];this[_0x4f7e('0x51')](_0x3d6960['document'],_0x4f7e('0x8f'),(_0x3264c0,_0x341613)=>{const _0x11dfa6=[];for(const _0x43dd25 of _0x3d6960[_0x4f7e('0x97')](_0x341613['content'])[_0x4f7e('0x96')]())_0x43dd25['is']('element','suggestion-td')&&_0x11dfa6['push'](_0x43dd25);_0x3d6960[_0x4f7e('0x91')](_0x5ee0cc=>{for(const _0x317bed of _0x11dfa6)_0x5ee0cc['move'](_0x5ee0cc['createRangeIn'](_0x317bed),_0x5ee0cc[_0x4f7e('0x78')](_0x317bed)),_0x5ee0cc[_0x4f7e('0x89')](_0x317bed);});});}}function ge(_0xefd8d2){if(_0xefd8d2['isEmpty'])return!0x0;const _0x2b3223=_0xefd8d2[_0x4f7e('0x3e')](0x0);return _0x2b3223['is'](_0x4f7e('0x41'),_0x4f7e('0x7c'))&&_0x2b3223[_0x4f7e('0x71')];}function de(_0x45721e,_0x335697={},_0x125a6b){for(const {isAnchor:_0x5dc55d,cellHeight:_0x146e89,cellWidth:_0x2ef1fb}of _0x125a6b['createTableWalker'](_0x45721e,{'includeAllSlots':!0x0,..._0x335697}))if(!_0x5dc55d||0x1!=_0x146e89||0x1!=_0x2ef1fb)return!0x1;return!0x0;}
|
|
23
|
+
const _0x29e3=['register','editing','move','getColumnIndexes','dataDowncast','updateMarker','subType','createElement','content','add','position','plugins','value','getShiftedBy','oldRange','markerToHighlight','suggestion','getRange','nodeAfter','TableClipboard','set','getChild','discard','last','tablePaste','nextSibling','TableUtils','formatBlock','reduce','every','getAttributes','suggestionLoaded','_getCoordsForCells','has','document','from','_isForcedDefaultExecutionBlock','forceDefaultExecution','registerDescriptionCallback','columns','getSuggestionCallback','getColumns','suggestionUnloaded','_replaceTableSlotCell','deletionRanges','getSuggestions','editingDowncast','suggestion-td','tableCellHorizontalAlignment','table','tableCellBackgroundColor','isEqual','getContainedElement','endColumn','createRangeIn','tablePasteRow','registerPostFixer','insertRows','some','conversion','setAttribute','return','createRange','batch','listenTo','tablePasteChainId','model','markMultiRangeInsertion','map','getRows','newRange','wrap','attributes','root','accept','view','removeMarker','registerCustomCallback','redo','element','insert','createPositionBefore','getSelectionAffectedTableCells','*Replace\x20table\x20cells*','tableCellVerticalAlignment','_splitMarkerName','tableCellSuggestion','_suggestionFactory','startsWith','filter','next','createRangeOn','$graveyard','fill','insertColumns','markMultiRangeBlockFormat','schema','setAttributes','markerName','fromEntries','selection','getSuggestion','removeColumns','previous','activeMarkers','endRow','find','tableCellBorderWidth','join','push','author','getChildren','markers','deletion','tableCell','afterInit','_tablePostFixingSubtypes','editor','removeRows','change','tablePasteColumn','options','ck-suggestion-marker-insertion','getChangedMarkers','insertion','rootName','markerAttributes','column','_createdBatches','isEmpty','isInContent','Users','findAncestor','remove','columnInsertionIndexes','insertContent','getChanges','stop','trackChanges','high','suggestion:formatBlock:tablePasteCell','unwrap','first','columnInsertionRanges','length','low','getMarkers','getAllAdjacentSuggestions','tableCellBorderStyle','getRanges','markMultiRangeDeletion','get','elementToElement','differ','showSuggestionHighlights','paragraph','tablePasteCell','tableCellPadding','includes','rowInsertionIndexes','locale','for','hasSuggestion','commands','rowInsertionRanges','end','createTableWalker','ck-suggestion-marker--active','type'];(function(_0x42b0f0,_0x29e3ac){const _0x46125f=function(_0xddeff2){while(--_0xddeff2){_0x42b0f0['push'](_0x42b0f0['shift']());}};_0x46125f(++_0x29e3ac);}(_0x29e3,0x17c));const _0x4612=function(_0x42b0f0,_0x29e3ac){_0x42b0f0=_0x42b0f0-0x0;let _0x46125f=_0x29e3[_0x42b0f0];return _0x46125f;};import{getTranslation as _0x46ec2a}from'../utils/common-translations.js';import{Plugin as _0x492425}from'ckeditor5/src/core.js';import{uid as _0xc35a1e,priorities as _0x17ac97}from'ckeditor5/src/utils.js';import _0x326d69 from'./table.js';const fe=[_0x4612('0x41'),'tableCellBorderColor',_0x4612('0x6a'),_0x4612('0x6'),_0x4612('0x2a'),_0x4612('0x8'),_0x4612('0x73')],be=Object['fromEntries'](fe[_0x4612('0x1a')](_0x1173ad=>[_0x1173ad,null]));export default class At extends _0x492425{static get['requires'](){return[_0x326d69];}[_0x4612('0x49')](){const _0x2002ed=this[_0x4612('0x4b')];if(!_0x2002ed[_0x4612('0x8a')][_0x4612('0xa0')]('TableClipboard'))return;const _0x15740b=_0x2002ed[_0x4612('0x8a')]['get']('TrackChangesEditing'),_0x41bc65=_0x2002ed['plugins'][_0x4612('0x6d')](_0x4612('0x99')),_0x1ce64f=_0x2002ed[_0x4612('0x8a')][_0x4612('0x6d')](_0x326d69),_0x99957d=_0x2002ed[_0x4612('0x8a')][_0x4612('0x6d')](_0x4612('0x92'));_0x1ce64f[_0x4612('0x4a')][_0x4612('0x43')](_0x4612('0xd'),_0x4612('0x4e')),_0x2002ed['model'][_0x4612('0x36')][_0x4612('0x7f')](_0x4612('0x2c'),{'allowIn':_0x4612('0x48'),'allowContentOf':_0x4612('0x48'),'isLimit':!0x0}),_0x2002ed[_0x4612('0x11')][_0x4612('0x6e')]({'model':_0x4612('0x2c'),'view':_0x4612('0x5')});let _0x4dbfbd=null;_0x2002ed[_0x4612('0x18')]['on']('insertContent',(_0x2bf7d6,_0x31851b)=>{const [_0x5dc946,_0x436b0b]=_0x31851b,_0x2c530f=_0x31851b[_0x31851b[_0x4612('0x66')]-0x1];_0x2c530f&&_0x2c530f[_0x4612('0xa4')]||_0x15740b[_0x4612('0xa3')]||this['editor'][_0x4612('0x79')][_0x4612('0x6d')](_0x4612('0x60'))[_0x4612('0x8b')]&&function(_0x3fbccb,_0x111691,_0x181d1f,_0x47fb9a,_0x4b0d49){if(_0x111691&&!_0x111691['is']('documentSelection'))return!0x1;const _0x41d9ea=_0x4b0d49['getTableIfOnlyTableInContent'](_0x3fbccb,_0x181d1f);if(!_0x41d9ea||!de(_0x41d9ea,void 0x0,_0x47fb9a))return!0x1;const _0x18f0b8=_0x47fb9a[_0x4612('0x28')](_0x181d1f[_0x4612('0xa1')][_0x4612('0x3a')]);if(!_0x18f0b8[_0x4612('0x66')])return!0x1;const _0x495de4=_0x18f0b8[0x0][_0x4612('0x5a')](_0x4612('0x7')),_0x5a5e3a=_0x47fb9a['getRowIndexes'](_0x18f0b8),_0x38c2e5=_0x47fb9a[_0x4612('0x82')](_0x18f0b8),_0x185aab={'startRow':_0x5a5e3a['first'],'endRow':_0x5a5e3a[_0x4612('0x96')],'startColumn':_0x38c2e5[_0x4612('0x64')],'endColumn':_0x38c2e5['last']};return 0x1==_0x18f0b8[_0x4612('0x66')]&&(_0x185aab[_0x4612('0x3f')]+=_0x47fb9a[_0x4612('0x1b')](_0x41d9ea)-0x1,_0x185aab[_0x4612('0xb')]+=_0x47fb9a[_0x4612('0xa8')](_0x41d9ea)-0x1),de(_0x495de4,_0x185aab,_0x47fb9a);}(_0x5dc946,_0x436b0b,_0x2002ed[_0x4612('0x18')],_0x41bc65,_0x99957d)&&(_0x2bf7d6['stop'](),_0x4dbfbd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2002ed[_0x4612('0x18')][_0x4612('0x4d')](()=>{_0x2002ed['model'][_0x4612('0x5d')](_0x31851b[0x0],_0x31851b[0x1],_0x31851b[0x2],{'forceDefaultExecution':!0x0});const _0x292fbc=_0xc35a1e(),{rowInsertionRanges:_0x3e27c6,columnInsertionRanges:_0x19548f,insertionRanges:_0x4361ae,deletionRanges:_0x32417b,cells:_0x3f4fa6}=_0x4dbfbd;_0x3e27c6[_0x4612('0x66')]&&_0x15740b[_0x4612('0x19')](_0x3e27c6,_0x4612('0xd'),{'tablePasteChainId':_0x292fbc}),_0x19548f[_0x4612('0x66')]&&_0x15740b[_0x4612('0x19')](_0x19548f,'tablePasteColumn',{'tablePasteChainId':_0x292fbc}),_0x4361ae[_0x4612('0x66')]&&_0x15740b[_0x4612('0x19')](_0x4361ae,'tablePaste',{'tablePasteChainId':_0x292fbc,'skipNestingCheck':!0x0}),_0x32417b[_0x4612('0x66')]&&_0x15740b[_0x4612('0x6c')](_0x32417b,_0x4612('0x97'),{'tablePasteChainId':_0x292fbc,'skipNestingCheck':!0x0});const _0xdc01b9=_0x15740b[_0x4612('0x35')](_0x3f4fa6[_0x4612('0x1a')](({element:_0x53f3d5})=>_0x53f3d5),{'formatGroupId':_0xc35a1e()},[],_0x4612('0x72'),{'tablePasteChainId':_0x292fbc});if(_0xdc01b9){const _0xcae93e=_0xdc01b9[_0x4612('0x68')](),_0x4e5982=[];for(const {element:_0x333b34,attributes:_0x304939}of _0x3f4fa6){if(!_0x304939)continue;const _0x52b4c3=_0x2002ed[_0x4612('0x18')]['createRangeOn'](_0x333b34),_0x2b4bdb=_0xcae93e['find'](_0xdbda2b=>_0xdbda2b['getRange']()['isEqual'](_0x52b4c3));_0x2b4bdb&&_0x4e5982['push']([_0x2b4bdb['name'],_0x304939]);}_0x4e5982[_0x4612('0x66')]&&_0xdc01b9[_0x4612('0x12')]('markerAttributes',Object[_0x4612('0x39')](_0x4e5982));}_0x4dbfbd=null;}));},{'priority':_0x17ac97[_0x4612('0x61')]+0xa}),_0x2002ed[_0x4612('0x8a')][_0x4612('0x6d')](_0x4612('0x92'))['on'](_0x4612('0x1'),(_0x2645cd,_0xb8a6f2)=>{const [_0x3786f1,_0x99761e,,_0x256cff]=_0xb8a6f2;if(!_0x4dbfbd)return;_0x2645cd[_0x4612('0x5f')]();const _0x40f740=_0x3786f1['cell'],_0x512b06=_0x99761e,_0x28aa75=ge(_0x40f740),_0x3788c8=ge(_0x512b06);_0x2645cd[_0x4612('0x13')]=_0x40f740;let _0x4f0473=null,_0x3406bd=null;if(_0x3788c8||_0x28aa75){if(_0x28aa75&&!_0x3788c8){_0x256cff[_0x4612('0x5b')](_0x40f740['getChild'](0x0));for(const _0x1c3b6d of Array[_0x4612('0xa2')](_0x512b06[_0x4612('0x45')]()))_0x256cff[_0x4612('0x26')](_0x1c3b6d,_0x40f740,_0x4612('0x7b'));const _0x2c3198=_0x4dbfbd[_0x4612('0x75')][_0x4612('0x74')](_0x3786f1['row']),_0x2e568e=_0x4dbfbd['columnInsertionIndexes']['includes'](_0x3786f1[_0x4612('0x55')]);_0x2c3198||_0x2e568e||(_0x4f0473=_0x256cff['createRangeIn'](_0x40f740));}else _0x3788c8&&!_0x28aa75&&(_0x3406bd=_0x256cff['createRangeIn'](_0x40f740));}else{const _0x20d1ff=_0x256cff['createElement']('tableCellSuggestion'),_0x205cc7=_0x256cff[_0x4612('0x86')]('tableCellSuggestion');_0x256cff[_0x4612('0x1d')](_0x256cff[_0x4612('0xc')](_0x40f740),_0x205cc7),_0x256cff[_0x4612('0x26')](_0x20d1ff,_0x40f740,0x0);for(const _0x2ac61f of Array[_0x4612('0xa2')](_0x512b06['getChildren']()))_0x256cff[_0x4612('0x26')](_0x2ac61f,_0x20d1ff,_0x4612('0x7b'));_0x4f0473=_0x256cff[_0x4612('0x31')](_0x20d1ff),_0x3406bd=_0x256cff['createRangeOn'](_0x205cc7);}const _0x2c185d=Array[_0x4612('0xa2')](_0x512b06[_0x4612('0x9d')]())[_0x4612('0x2f')](([_0x2dde47])=>fe['includes'](_0x2dde47));_0x4dbfbd['cells'][_0x4612('0x43')]({'element':_0x40f740,'attributes':_0x2c185d[_0x4612('0x66')]?Object[_0x4612('0x39')](_0x2c185d):null}),_0x4f0473&&_0x4dbfbd['insertionRanges'][_0x4612('0x43')](_0x4f0473),_0x3406bd&&_0x4dbfbd[_0x4612('0x2')]['push'](_0x3406bd);},{'priority':'high'}),_0x41bc65['on'](_0x4612('0x34'),(_0x31f9b2,_0x27df50)=>{const [_0x9b7092,_0x34b8ba={}]=_0x27df50;if(!_0x4dbfbd)return;const _0x2630af=_0x34b8ba['at']||0x0,_0x5251da=_0x34b8ba[_0x4612('0xa6')]||0x1;_0x4dbfbd[_0x4612('0x5c')]=new Array(_0x5251da)['fill'](_0x2630af)[_0x4612('0x1a')]((_0x233d1f,_0x378c36)=>_0x233d1f+_0x378c36);for(const {cell:_0x2ab4db}of _0x41bc65[_0x4612('0x7c')](_0x9b7092,{'startColumn':_0x2630af,'endColumn':_0x2630af+_0x5251da-0x1}))_0x4dbfbd[_0x4612('0x65')][_0x4612('0x43')](_0x2002ed['model'][_0x4612('0x31')](_0x2ab4db));},{'priority':_0x4612('0x67')}),_0x41bc65['on'](_0x4612('0xf'),(_0x5128e0,_0x439961)=>{const [_0x12e571,_0x1188d1={}]=_0x439961;if(!_0x4dbfbd)return;const _0x4eabe1=_0x1188d1['at']||0x0,_0x35f6a3=_0x1188d1['rows']||0x1;_0x4dbfbd[_0x4612('0x75')]=new Array(_0x35f6a3)[_0x4612('0x33')](_0x4eabe1)[_0x4612('0x1a')]((_0x2e0b98,_0x470e37)=>_0x2e0b98+_0x470e37);for(const {cell:_0x3dfb7b}of _0x41bc65[_0x4612('0x7c')](_0x12e571,{'startRow':_0x4eabe1,'endRow':_0x4eabe1+_0x35f6a3-0x1}))_0x4dbfbd[_0x4612('0x7a')][_0x4612('0x43')](_0x2002ed[_0x4612('0x18')][_0x4612('0x31')](_0x3dfb7b));},{'priority':_0x4612('0x67')}),_0x15740b['_descriptionFactory'][_0x4612('0xa5')](_0x34a2f9=>{if(_0x34a2f9[_0x4612('0x85')]&&_0x34a2f9[_0x4612('0x85')][_0x4612('0x2e')](_0x4612('0x97')))return _0x34a2f9[_0x4612('0x3d')]?{}:{'type':_0x4612('0x52'),'content':_0x46ec2a(_0x2002ed[_0x4612('0x76')],_0x4612('0x29'))};});const _0x2758f3=()=>!0x1;for(const _0xc7f359 of['tablePaste',_0x4612('0x4e'),_0x4612('0xd'),'tablePasteCell'])_0x15740b[_0x4612('0x2d')][_0x4612('0x23')](_0x4612('0x52'),_0xc7f359,'join',_0x2758f3),_0x15740b[_0x4612('0x2d')]['registerCustomCallback']('deletion',_0xc7f359,'join',_0x2758f3),_0x15740b['_suggestionFactory'][_0x4612('0x23')](_0x4612('0x9a'),_0xc7f359,_0x4612('0x42'),_0x2758f3);_0x15740b[_0x4612('0x2d')][_0x4612('0x23')]('formatBlock','tablePasteCell','discard',_0x2758f3),_0x15740b[_0x4612('0x2d')][_0x4612('0x23')](_0x4612('0x9a'),_0x4612('0x72'),_0x4612('0x20'),(_0x4917e4,_0x568b3b,_0x2f3b24)=>{const _0x1b211e=_0x4917e4['map'](_0x282b85=>_0x282b85['getContainedElement']())['filter'](_0x5b82e2=>_0x5b82e2),_0x763e7=new Map(_0x1b211e['map'](_0x542d6e=>[_0x542d6e,null]));if(_0x4dbfbd)for(const {element:_0x24cd3f,attributes:_0x41f3a5}of _0x4dbfbd['cells'])_0x41f3a5&&_0x763e7[_0x4612('0x93')](_0x24cd3f,_0x41f3a5);else{if(_0x2f3b24&&_0x2f3b24[_0x4612('0x54')])for(const [_0x50ece1,_0x41c0a0]of Object['entries'](_0x2f3b24['markerAttributes'])){const _0x1060bc=_0x2002ed['model'][_0x4612('0x46')][_0x4612('0x6d')](_0x50ece1),_0x39f328=_0x1060bc?_0x1060bc[_0x4612('0x90')]()['getContainedElement']():null;_0x39f328&&_0x763e7['set'](_0x39f328,_0x41c0a0);}}_0x2002ed['model'][_0x4612('0x4d')](_0x3e5997=>{for(const [_0x32f808,_0x279be6]of _0x763e7)_0x3e5997[_0x4612('0x37')]({...be,..._0x279be6},_0x32f808);});});const _0x11ae66=(_0x20074e,_0x23b9b5)=>{_0x15740b[_0x4612('0x2d')][_0x4612('0x23')](_0x20074e,'tablePaste',_0x23b9b5,(_0x441379,_0x3bef7c,_0x24ff55)=>{_0x2002ed[_0x4612('0x18')]['change'](_0x104c44=>{const _0x136f2d=[];for(const _0x491997 of _0x441379){const _0x48591f=_0x491997['start'][_0x4612('0x91')];_0x48591f['is'](_0x4612('0x25'),'tableCellSuggestion')&&_0x136f2d['push'](_0x48591f);}_0x15740b['_suggestionFactory'][_0x4612('0xa7')](_0x20074e,null,_0x23b9b5)(_0x441379,_0x3bef7c,_0x24ff55);for(const _0x5236d0 of _0x136f2d)_0x4612('0x32')!=_0x5236d0[_0x4612('0x1f')][_0x4612('0x53')]&&_0x104c44[_0x4612('0x63')](_0x5236d0);});});};_0x11ae66(_0x4612('0x52'),_0x4612('0x20')),_0x11ae66(_0x4612('0x52'),'discard'),_0x11ae66(_0x4612('0x47'),'accept'),_0x11ae66(_0x4612('0x47'),_0x4612('0x95')),_0x15740b[_0x4612('0x2d')][_0x4612('0x23')](_0x4612('0x52'),'tablePasteRow',_0x4612('0x95'),_0x29ce6c=>{const _0x57f669=_0x29ce6c[_0x4612('0x1a')](_0x91720d=>_0x91720d[_0x4612('0xa')]()),_0x4ddc08=_0x57f669[0x0][_0x4612('0x5a')]('table'),{minRow:_0x1402de,maxRow:_0x505af1}=_0x1ce64f[_0x4612('0x9f')](_0x57f669);_0x41bc65[_0x4612('0x4c')](_0x4ddc08,{'at':_0x1402de,'rows':_0x505af1-_0x1402de+0x1});}),_0x15740b[_0x4612('0x2d')][_0x4612('0x23')]('insertion',_0x4612('0x4e'),_0x4612('0x95'),_0x399f01=>{const _0xdf4b2a=_0x399f01[_0x4612('0x1a')](_0x5a5e7=>_0x5a5e7[_0x4612('0xa')]()),_0x515720=_0xdf4b2a[0x0]['findAncestor']('table'),{minColumn:_0xf8e6b8,maxColumn:_0x203481}=_0x1ce64f['_getCoordsForCells'](_0xdf4b2a);_0x41bc65[_0x4612('0x3c')](_0x515720,{'at':_0xf8e6b8,'columns':_0x203481-_0xf8e6b8+0x1});});const _0x37a682=(_0x2acd54,_0x2af946)=>{if(!_0x2af946[_0x4612('0x85')]||!_0x2af946['subType'][_0x4612('0x2e')](_0x4612('0x97')))return;const _0x30dd14=_0x2af946['attributes'][_0x4612('0x17')],_0x205320=_0x15740b[_0x4612('0x3')]()[_0x4612('0x2f')](_0x163afa=>_0x163afa[_0x4612('0x58')]&&_0x163afa[_0x4612('0x1e')]&&_0x163afa[_0x4612('0x1e')]['tablePasteChainId']==_0x30dd14);_0x205320['length']&&_0x2af946['getAllAdjacentSuggestions']()[_0x4612('0x66')]!=_0x205320[_0x4612('0x66')]&&_0x205320[_0x4612('0x9b')]((_0xce8e1c,_0x1e2870)=>(_0xce8e1c[_0x4612('0x30')]=_0x1e2870,_0x1e2870[_0x4612('0x3d')]=_0xce8e1c,_0x1e2870));};function _0x5f3b45(_0x3c6bf3,_0x48a12b=!0x0){const {id:_0x1a051c}=_0x15740b[_0x4612('0x2b')](_0x3c6bf3['markerName']),_0x4d9ae7=['ck-suggestion-marker',_0x4612('0x50')],_0x28f11b=_0x15740b[_0x4612('0x3e')][_0x4612('0x74')](_0x3c6bf3[_0x4612('0x38')]);return _0x28f11b&&_0x4d9ae7[_0x4612('0x43')](_0x4612('0x7d')),{'classes':_0x4d9ae7,'attributes':{'data-suggestion':_0x1a051c},'priority':_0x28f11b&&_0x48a12b?0xbc2:0xbb8};}_0x15740b['on'](_0x4612('0x9e'),_0x37a682,{'priority':_0x4612('0x61')}),_0x15740b['on'](_0x4612('0x0'),_0x37a682,{'priority':_0x4612('0x61')}),_0x2002ed['model'][_0x4612('0xa1')][_0x4612('0xe')](()=>{let _0x5ecdaa=!0x1;const _0x7dee2e=Array[_0x4612('0xa2')](_0x2002ed['model'][_0x4612('0xa1')][_0x4612('0x6f')][_0x4612('0x51')]());for(const {name:_0x461819,data:_0x338d50}of _0x7dee2e){const {group:_0x48746f,type:_0x21d671,id:_0x4c7a02}=_0x15740b[_0x4612('0x2b')](_0x461819);if(_0x4612('0x8f')!=_0x48746f||_0x4612('0x47')!=_0x21d671||_0x338d50[_0x4612('0x8d')])continue;if(!_0x15740b[_0x4612('0x78')](_0x4c7a02))continue;const _0x23c198=_0x15740b[_0x4612('0x3b')](_0x4c7a02)['getRanges'](),_0x210bf1=_0x2002ed[_0x4612('0x8a')][_0x4612('0x6d')](_0x4612('0x59'))['me'];for(const _0x5a8d61 of _0x15740b['getSuggestions']()){if(!_0x5a8d61['isInContent']||_0x5a8d61[_0x4612('0x44')]!=_0x210bf1)continue;if(_0x4612('0x9a')!=_0x5a8d61[_0x4612('0x7e')]||_0x4612('0x72')!=_0x5a8d61[_0x4612('0x85')])continue;if(_0x5a8d61[_0x4612('0x6b')]()[_0x4612('0x9c')](_0x50ed93=>_0x23c198[_0x4612('0x10')](_0x1a3657=>_0x1a3657['containsRange'](_0x50ed93,!0x0))))for(const _0x472cfe of _0x5a8d61[_0x4612('0x69')]())_0x472cfe[_0x4612('0x58')]&&(_0x472cfe[_0x4612('0x95')](),_0x5ecdaa=!0x0);}}return _0x5ecdaa;}),_0x2002ed[_0x4612('0x18')][_0x4612('0xa1')]['registerPostFixer'](_0x4e66d6=>{const _0x22cc3a=_0x2002ed[_0x4612('0x79')][_0x4612('0x6d')](_0x4612('0x24'));if(!_0x22cc3a||!_0x22cc3a[_0x4612('0x56')][_0x4612('0xa0')](_0x4e66d6[_0x4612('0x15')]))return!0x1;let _0xb5bfb8=!0x1;const _0x33baa3=_0x2002ed[_0x4612('0x8a')][_0x4612('0x6d')](_0x4612('0x59'))['me'],_0xefa359=_0x2002ed[_0x4612('0x18')][_0x4612('0xa1')][_0x4612('0x6f')][_0x4612('0x5e')](),_0x87b0b3=Array[_0x4612('0xa2')](_0x2002ed[_0x4612('0x18')][_0x4612('0xa1')]['differ'][_0x4612('0x51')]())[_0x4612('0x2f')](({name:_0x36906c,data:_0x445c25})=>{const {group:_0x397e96,subType:_0x59e208,authorId:_0x364e49}=_0x15740b[_0x4612('0x2b')](_0x36906c);return'suggestion'==_0x397e96&&_0x4612('0x97')==_0x59e208&&_0x364e49==_0x33baa3['id']&&!_0x445c25[_0x4612('0x8d')];});for(const _0x53852f of _0xefa359){if(_0x4612('0x26')!=_0x53852f['type']||_0x4612('0x2c')!=_0x53852f['name']||0x1!=_0x53852f[_0x4612('0x66')])continue;const _0x1c9ad1=_0x4e66d6[_0x4612('0x14')](_0x53852f[_0x4612('0x89')],_0x53852f[_0x4612('0x89')][_0x4612('0x8c')](0x1));if(!_0x87b0b3[_0x4612('0x40')](({data:_0x4e68e8})=>_0x4e68e8[_0x4612('0x1c')][_0x4612('0x9')](_0x1c9ad1)))for(const {name:_0x2f4b71,data:_0x234b9a}of _0x87b0b3)if(_0x1c9ad1['containsRange'](_0x234b9a[_0x4612('0x1c')])){_0x4e66d6[_0x4612('0x84')](_0x2f4b71,{'range':_0x1c9ad1}),_0xb5bfb8=!0x0;break;}}return _0xb5bfb8;}),_0x2002ed[_0x4612('0x18')][_0x4612('0xa1')]['registerPostFixer'](_0x3b56b4=>{let _0xb8ed67=!0x1;const _0x25bce1=_0x2002ed[_0x4612('0x8a')]['get'](_0x4612('0x59'))['me'],_0x1ddcb7=_0x15740b[_0x4612('0x3')]()['filter'](_0x349218=>_0x349218[_0x4612('0x58')]&&_0x349218[_0x4612('0x44')]==_0x25bce1),_0x5744ea=new Set(),_0x598dc2=new Set();for(const _0x47d9f2 of _0x1ddcb7)if(_0x4612('0x97')==_0x47d9f2[_0x4612('0x85')])for(const _0x37b5d7 of _0x47d9f2[_0x4612('0x68')]()){const _0x14e775=_0x37b5d7[_0x4612('0x90')]()[_0x4612('0xa')]();if(_0x14e775){if(_0x14e775['is'](_0x4612('0x25'),_0x4612('0x2c'))&&ge(_0x14e775)){_0x47d9f2[_0x4612('0x22')](_0x37b5d7['name']),_0x5744ea['add'](_0x14e775),_0xb8ed67=!0x0;const _0x18b1f5=_0x14e775[_0x4612('0x98')],_0x1c6b4d=_0x14e775['previousSibling'],_0x5e0fb7=_0x18b1f5&&_0x18b1f5['is'](_0x4612('0x25'),_0x4612('0x2c')),_0x18afec=_0x1c6b4d&&_0x1c6b4d['is'](_0x4612('0x25'),_0x4612('0x2c'));_0x5e0fb7&&!_0x5744ea['has'](_0x18b1f5)&&_0x598dc2[_0x4612('0x88')](_0x18b1f5),_0x18afec&&!_0x5744ea[_0x4612('0xa0')](_0x1c6b4d)&&_0x598dc2[_0x4612('0x88')](_0x1c6b4d);}else _0x14e775['is'](_0x4612('0x25'),_0x4612('0x71'))&&_0x14e775['isEmpty']&&(_0x47d9f2[_0x4612('0x22')](_0x37b5d7['name']),_0xb8ed67=!0x0);}}else{if('tablePasteCell'==_0x47d9f2[_0x4612('0x85')]){if(!_0x47d9f2[_0x4612('0x1e')]||!_0x47d9f2[_0x4612('0x1e')][_0x4612('0x17')])continue;const _0x45c970=_0x47d9f2['attributes']['markerAttributes'];if(_0x45c970&&Object['keys'](_0x45c970)[_0x4612('0x66')])continue;const _0x27d1a3=_0x47d9f2[_0x4612('0x1e')]['tablePasteChainId'];let _0x3255b7=!0x0,_0x499188=!0x0;for(const _0x18854d of _0x1ddcb7)if(_0x18854d['subType']&&_0x18854d[_0x4612('0x85')][_0x4612('0x2e')](_0x4612('0x97'))){if(!_0x18854d[_0x4612('0x1e')][_0x4612('0x17')]){_0x499188=!0x1;break;}if(_0x18854d['id']!=_0x47d9f2['id']&&_0x18854d[_0x4612('0x1e')][_0x4612('0x17')]==_0x27d1a3){_0x3255b7=!0x1;break;}}_0x499188&&_0x3255b7&&(_0x47d9f2['removeMarkers'](),_0xb8ed67=!0x0);}}for(const _0x3a6a67 of _0x5744ea)_0x3b56b4[_0x4612('0x5b')](_0x3a6a67);for(const _0x4878d5 of _0x598dc2)_0x3b56b4['unwrap'](_0x4878d5);return _0xb8ed67;}),_0x2002ed[_0x4612('0x11')][_0x4612('0x77')](_0x4612('0x4'))[_0x4612('0x8e')]({'model':_0x4612('0x62'),'view':(_0x2b66b9,_0x5ee30b)=>_0x5f3b45(_0x2b66b9),'converterPriority':_0x4612('0x61')}),_0x2002ed['conversion'][_0x4612('0x77')](_0x4612('0x83'))[_0x4612('0x8e')]({'model':_0x4612('0x62'),'view':(_0xa4e7b2,_0x575d44)=>_0x575d44[_0x4612('0x4f')][_0x4612('0x70')]?_0x5f3b45(_0xa4e7b2,!0x1):null,'converterPriority':_0x4612('0x61')});const _0xa8b0db=_0x2002ed[_0x4612('0x80')][_0x4612('0x21')];this[_0x4612('0x16')](_0xa8b0db[_0x4612('0xa1')],'clipboardOutput',(_0x15cd3f,_0x4273fa)=>{const _0x448a48=[];for(const _0x409b22 of _0xa8b0db[_0x4612('0xc')](_0x4273fa[_0x4612('0x87')])['getItems']())_0x409b22['is'](_0x4612('0x25'),_0x4612('0x5'))&&_0x448a48[_0x4612('0x43')](_0x409b22);_0xa8b0db[_0x4612('0x4d')](_0x41a61a=>{for(const _0x3bf8b7 of _0x448a48)_0x41a61a[_0x4612('0x81')](_0x41a61a['createRangeIn'](_0x3bf8b7),_0x41a61a[_0x4612('0x27')](_0x3bf8b7)),_0x41a61a[_0x4612('0x5b')](_0x3bf8b7);});});}}function ge(_0x43e5f9){if(_0x43e5f9['isEmpty'])return!0x0;const _0x558e54=_0x43e5f9[_0x4612('0x94')](0x0);return _0x558e54['is']('element',_0x4612('0x71'))&&_0x558e54[_0x4612('0x57')];}function de(_0x4f4eda,_0x4ebdd6={},_0x404664){for(const {isAnchor:_0x2685ef,cellHeight:_0x3d9f5b,cellWidth:_0x435bde}of _0x404664[_0x4612('0x7c')](_0x4f4eda,{'includeAllSlots':!0x0,..._0x4ebdd6}))if(!_0x2685ef||0x1!=_0x3d9f5b||0x1!=_0x435bde)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a08=['type','data','Users','markBlockFormat','accept','registerDescriptionCallback','discard','afterInit','formatBlock','getContainedElement','getSelectedElement','TableColumnResizeEditing','getTableColumnsWidths','formatInline','*Format:*\x20resize\x20table','getAttribute','change','columnWidths','enableCommand','editor','resizeTableWidth','_descriptionFactory','plugins','bind','handleSuggestionDescription','subType','has','TrackChangesEditing','getColumnGroupElement','tableWidth','document','handleResizeTableWidthCommand','getSuggestions','commandParams','resizeTable','_suggestionFactory','model','get','formatGroupId','table'];(function(_0x438d0d,_0x5a0892){const _0x24e226=function(_0x1fd58c){while(--_0x1fd58c){_0x438d0d['push'](_0x438d0d['shift']());}};_0x24e226(++_0x5a0892);}(_0x5a08,0x180));const _0x24e2=function(_0x438d0d,_0x5a0892){_0x438d0d=_0x438d0d-0x0;let _0x24e226=_0x5a08[_0x438d0d];return _0x24e226;};import{Plugin as _0x3690e4}from'ckeditor5/src/core.js';import{getTranslation as _0x4f503f}from'../utils/common-translations.js';export default class It extends _0x3690e4{[_0x24e2('0x17')](){if(!this['editor']['plugins'][_0x24e2('0x2')](_0x24e2('0x1b')))return;const _0x462089=this[_0x24e2('0x23')][_0x24e2('0x26')]['get'](_0x24e2('0x3'));_0x462089[_0x24e2('0x22')](_0x24e2('0x24'),this[_0x24e2('0x7')][_0x24e2('0x27')](this)),_0x462089[_0x24e2('0xb')]['registerCustomCallback'](_0x24e2('0x18'),_0x24e2('0xa'),_0x24e2('0x14'),_0x462089[_0x24e2('0xb')]['getSuggestionCallback'](_0x24e2('0x18'),null,_0x24e2('0x16'))),_0x462089[_0x24e2('0xb')]['registerCustomCallback'](_0x24e2('0x18'),'resizeTable',_0x24e2('0x16'),_0x462089[_0x24e2('0xb')]['getSuggestionCallback'](_0x24e2('0x18'),null,_0x24e2('0x14'))),_0x462089[_0x24e2('0x25')][_0x24e2('0x15')](this[_0x24e2('0x0')][_0x24e2('0x27')](this));}[_0x24e2('0x7')](_0x401b0a,_0x2d0646){const _0x9890db=this[_0x24e2('0x23')][_0x24e2('0x26')][_0x24e2('0xd')](_0x24e2('0x3')),_0x4817a7=this[_0x24e2('0x23')][_0x24e2('0x26')][_0x24e2('0xd')](_0x24e2('0x1b')),_0x1a7052=_0x2d0646[_0x24e2('0xf')]||this[_0x24e2('0x23')][_0x24e2('0xc')][_0x24e2('0x6')]['selection'][_0x24e2('0x1a')]();this['editor'][_0x24e2('0xc')][_0x24e2('0x20')](()=>{const _0x564d37=_0x4817a7[_0x24e2('0x4')](_0x1a7052);let _0xd3233d=_0x564d37?_0x4817a7[_0x24e2('0x1c')](_0x564d37):null,_0x32dbc9=_0x1a7052[_0x24e2('0x1f')]('tableWidth')||null;const _0x1db730=_0x2d0646[_0x24e2('0x5')]||_0x32dbc9,_0xbf15e6=_0x2d0646[_0x24e2('0x21')]||_0xd3233d,_0x1c2755=this[_0x24e2('0x23')][_0x24e2('0x26')]['get'](_0x24e2('0x12'))['me'];for(const _0x40f51b of _0x9890db[_0x24e2('0x8')]()){const _0x1ec37f=_0x40f51b[_0x24e2('0x19')]();if(_0x24e2('0xa')===_0x40f51b[_0x24e2('0x1')]&&_0x1ec37f===_0x1a7052){_0x40f51b['author']!==_0x1c2755&&_0x40f51b[_0x24e2('0x16')]();const _0x43bc84=_0x40f51b[_0x24e2('0x11')][_0x24e2('0x9')];_0x32dbc9=_0x43bc84[0x0][_0x24e2('0x5')],_0xd3233d=_0x43bc84[0x0][_0x24e2('0x21')];break;}}_0x401b0a({'table':_0x1a7052,'tableWidth':_0x1db730,'columnWidths':_0xbf15e6}),_0x9890db[_0x24e2('0x13')](_0x1a7052,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x32dbc9,'columnWidths':_0xd3233d}],'formatGroupId':_0x24e2('0xa')},[],_0x24e2('0xa'));});}[_0x24e2('0x0')](_0x380171){if(_0x24e2('0x18')!=_0x380171[_0x24e2('0x10')]&&_0x24e2('0x1d')!=_0x380171[_0x24e2('0x10')])return;const {data:_0x474b6c}=_0x380171;if(_0x474b6c&&_0x24e2('0xa')===_0x474b6c[_0x24e2('0xe')]){const _0x12604a=_0x24e2('0x1e');return{'type':'format','content':_0x4f503f(this['editor']['locale'],_0x12604a)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x561a=['setTableRowHeader','TableEditing','*Format:*\x20%0','plugins','addMarker:suggestion','getSuggestion','_suggestionFactory','setTableColumnHeader','removeClass','FORMAT_HEADER_ROW','_descriptionFactory','commandName','setAttribute','_acceptFormatSuggestionCallbackFactory','formatBlock','editor','_enableDefaultAttributesIntegration','cell','mapper','ck-suggestion-marker-','data','downcastDispatcher','_splitMarkerName','options','type','_registerLegacyDescription','getCellLocation','data-suggestion','writer','FORMAT_REGULAR_COLUMN','removeMarker:suggestion','unbindElementFromMarkerName','forceValue','editing','TableUtils','_handleLegacySuggestions','headingRows','accept','afterInit','locale','consume','TrackChangesEditing','stop','parent','createTableWalker','addClass','end','activeMarkers','registerDescriptionCallback','markerNameToElements','commandParams','nodeAfter','FORMAT_HEADER_COLUMN','highest','markerName','requires','ck-suggestion-marker--active','format','start','get','headingColumns','registerAttributeLabel','consumable','showSuggestionHighlights','item','markerRange'];(function(_0x430ad0,_0x561a11){const _0x3f464c=function(_0x5763a8){while(--_0x5763a8){_0x430ad0['push'](_0x430ad0['shift']());}};_0x3f464c(++_0x561a11);}(_0x561a,0x17d));const _0x3f46=function(_0x430ad0,_0x561a11){_0x430ad0=_0x430ad0-0x0;let _0x3f464c=_0x561a[_0x430ad0];return _0x3f464c;};import{Plugin as _0x23b495}from'ckeditor5/src/core.js';import _0x4fbcff from'./table.js';import{getTranslation as _0x5d8af5}from'../utils/common-translations.js';export default class St extends _0x23b495{static get[_0x3f46('0x4')](){return[_0x4fbcff];}[_0x3f46('0x35')](){const _0x1e8b01=this[_0x3f46('0x1e')];if(!_0x1e8b01['plugins']['has'](_0x3f46('0x10')))return;const _0x697716=_0x1e8b01[_0x3f46('0x36')],_0x1d396f=_0x1e8b01['plugins']['get'](_0x3f46('0x38'));_0x1d396f[_0x3f46('0x1f')](_0x3f46('0xf'),[],[_0x3f46('0x33')]),_0x1d396f[_0x3f46('0x1f')](_0x3f46('0x16'),[],[_0x3f46('0x9')]),_0x1d396f[_0x3f46('0x19')][_0x3f46('0xa')]('headingRows',_0x5d8af5(_0x697716,_0x3f46('0x18'))),_0x1d396f[_0x3f46('0x19')][_0x3f46('0xa')]('headingColumns',_0x5d8af5(_0x697716,_0x3f46('0x1'))),this[_0x3f46('0x32')]();}['_handleLegacySuggestions'](){const _0x56bbb6=this['editor'][_0x3f46('0x12')][_0x3f46('0x8')](_0x3f46('0x38')),_0x522218=this[_0x3f46('0x1e')][_0x3f46('0x12')][_0x3f46('0x8')](_0x3f46('0x31')),_0x1e3524=this[_0x3f46('0x1e')]['plugins'][_0x3f46('0x8')](_0x4fbcff)[_0x3f46('0x1c')]();function _0x517893({showActiveMarker:_0x39cfa3=!0x0,setDataAttribute:_0x32b397=!0x0}={}){return(_0x4d5c91,_0x5746f5,_0x488cac)=>{const {type:_0x4af8ab,id:_0x3d17bd}=_0x56bbb6[_0x3f46('0x25')](_0x5746f5[_0x3f46('0x3')]),_0x47b93e=_0x56bbb6[_0x3f46('0x14')](_0x3d17bd),_0x44ccdd=_0x47b93e[_0x3f46('0x23')];if('formatBlock'!=_0x47b93e[_0x3f46('0x27')]||!_0x44ccdd||_0x3f46('0x16')!=_0x44ccdd[_0x3f46('0x1a')])return;if(_0x5746f5[_0x3f46('0xd')])return void _0x4d5c91[_0x3f46('0x39')]();if(!_0x488cac[_0x3f46('0xb')][_0x3f46('0x37')](_0x5746f5[_0x3f46('0xe')],_0x4d5c91['name']))return;const _0x5aa910=_0x5746f5[_0x3f46('0xe')][_0x3f46('0x7')][_0x3f46('0x0')],_0x45edea=_0x5746f5['markerRange'][_0x3f46('0x3d')]['nodeBefore'],_0x4f5a96=_0x5aa910['parent'][_0x3f46('0x3a')],{column:_0x439506}=_0x522218[_0x3f46('0x29')](_0x5aa910),{column:_0x37327a}=_0x522218[_0x3f46('0x29')](_0x45edea);for(let _0x255485=_0x439506;_0x255485<=_0x37327a;_0x255485++){const _0x2915c4=_0x522218[_0x3f46('0x3b')](_0x4f5a96,{'column':_0x255485,'includeAllSlots':!0x1});for(const _0x15d977 of _0x2915c4){const _0x118d96=_0x15d977[_0x3f46('0x20')],_0x23cb75=_0x488cac[_0x3f46('0x21')]['toViewElement'](_0x118d96);_0x488cac[_0x3f46('0x2b')][_0x3f46('0x3c')]('ck-suggestion-marker-'+_0x4af8ab,_0x23cb75),_0x32b397&&_0x488cac[_0x3f46('0x2b')][_0x3f46('0x1b')](_0x3f46('0x2a'),_0x3d17bd,_0x23cb75),_0x488cac['mapper']['bindElementToMarker'](_0x23cb75,_0x5746f5[_0x3f46('0x3')]),_0x39cfa3&&(_0x56bbb6[_0x3f46('0x3e')]['includes'](_0x5746f5[_0x3f46('0x3')])?_0x488cac['writer'][_0x3f46('0x3c')](_0x3f46('0x5'),_0x23cb75):_0x488cac['writer'][_0x3f46('0x17')](_0x3f46('0x5'),_0x23cb75));}}};}_0x56bbb6['_suggestionFactory']['registerCustomCallback'](_0x3f46('0x1d'),_0x3f46('0xf'),'accept',_0x1e3524),_0x56bbb6[_0x3f46('0x15')]['registerCustomCallback'](_0x3f46('0x1d'),'setTableColumnHeader',_0x3f46('0x34'),_0x1e3524),this[_0x3f46('0x1e')][_0x3f46('0x30')]['downcastDispatcher']['on'](_0x3f46('0x13'),_0x517893(),{'priority':_0x3f46('0x2')}),this['editor'][_0x3f46('0x23')][_0x3f46('0x24')]['on'](_0x3f46('0x13'),(_0x297018,_0x55132c,_0x319193)=>{_0x319193[_0x3f46('0x26')][_0x3f46('0xc')]&&_0x517893({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x297018,_0x55132c,_0x319193);},{'priority':_0x3f46('0x2')}),this[_0x3f46('0x1e')]['editing']['downcastDispatcher']['on'](_0x3f46('0x2d'),(_0x14ead1,_0x18ed85,_0x4288d7)=>{const {type:_0x26e738,id:_0x1d6eed}=_0x56bbb6[_0x3f46('0x25')](_0x18ed85[_0x3f46('0x3')]),_0x21fed9=_0x56bbb6[_0x3f46('0x14')](_0x1d6eed),_0x3cddb8=_0x21fed9[_0x3f46('0x23')];if(_0x3f46('0x1d')!=_0x21fed9[_0x3f46('0x27')]||!_0x3cddb8||'setTableColumnHeader'!=_0x3cddb8['commandName'])return;const _0x4a17c2=_0x4288d7[_0x3f46('0x21')][_0x3f46('0x40')](_0x18ed85[_0x3f46('0x3')]);if(_0x4a17c2)for(const _0x274277 of _0x4a17c2)_0x4288d7[_0x3f46('0x2b')][_0x3f46('0x17')](_0x3f46('0x22')+_0x26e738,_0x274277),_0x4288d7['writer'][_0x3f46('0x17')]('ck-suggestion-marker--active',_0x274277),_0x4288d7['writer']['removeAttribute'](_0x3f46('0x2a'),_0x274277),_0x4288d7[_0x3f46('0x21')][_0x3f46('0x2e')](_0x274277,_0x18ed85[_0x3f46('0x3')]);},{'priority':_0x3f46('0x2')}),this[_0x3f46('0x28')]();}['_registerLegacyDescription'](){const _0x414118=this[_0x3f46('0x1e')],_0x11a44e=_0x414118[_0x3f46('0x36')];function _0x486491(_0x4e5c7c){return{'type':_0x3f46('0x6'),'content':_0x5d8af5(_0x11a44e,_0x3f46('0x11'),_0x4e5c7c)};}_0x414118['plugins']['get']('TrackChangesEditing')[_0x3f46('0x19')][_0x3f46('0x3f')](_0x14082e=>{if('formatBlock'!=_0x14082e[_0x3f46('0x27')])return;const {data:_0x882255}=_0x14082e;if(_0x882255){if(_0x3f46('0xf')==_0x882255[_0x3f46('0x1a')]){const _0x579289=_0x882255[_0x3f46('0x41')][0x0][_0x3f46('0x2f')];return _0x486491(_0x5d8af5(_0x11a44e,_0x579289?_0x3f46('0x18'):'FORMAT_REGULAR_ROW'));}if(_0x3f46('0x16')==_0x882255['commandName']){const _0x29a354=_0x882255[_0x3f46('0x41')][0x0][_0x3f46('0x2f')];return _0x486491(_0x5d8af5(_0x11a44e,_0x29a354?_0x3f46('0x1'):_0x3f46('0x2c')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2959=['type','stop','registerDescriptionCallback','getCellLocation','cell','element','map','afterInit','detach','commands','value','_suggestionFactory','markBlockFormat','size','isInContent','mergeTableCellUp','editor','author','enableCommand','formatInline','refresh','createTableWalker','TableEditing','TableUtils','forceDefaultExecution','execute','_areMergableCells','set:isEnabled','commandName','requires','table','plugins','mergeTableCells','filter','splitTableCellHorizontally','low','getAncestors','mergeTableCellDown','root','change','markMultiRangeBlockFormat','direction','subType','getSuggestions','$graveyard','highest','deletion','getFirstPosition','selection','from','TrackChangesEditing','_areSelectedCellsMergable','get','length','mergeTableCellRight','_descriptionFactory','model','has','*Split\x20cell:*\x20horizontally','trackChanges','containsRange','*Merge\x20cells*','_tablePostFixingSubtypes','find','tableCell','accept','mergeTableCellLeft','document','findAncestor','isEnabled','format','formatBlock','registerCustomCallback','getSelectionAffectedTableCells','horizontally','splitTableCellVertically','*Split\x20cell:*\x20vertically','createRangeOn','rootName','add','getRanges'];(function(_0x1ff47b,_0x2959c7){const _0x366183=function(_0x38e187){while(--_0x38e187){_0x1ff47b['push'](_0x1ff47b['shift']());}};_0x366183(++_0x2959c7);}(_0x2959,0xea));const _0x3661=function(_0x1ff47b,_0x2959c7){_0x1ff47b=_0x1ff47b-0x0;let _0x366183=_0x2959[_0x1ff47b];return _0x366183;};import{Plugin as _0x1ba91b}from'ckeditor5/src/core.js';import _0x25fb35 from'./table.js';import{LiveRange as _0x4b1375}from'ckeditor5/src/engine.js';import{getTranslation as _0x337955}from'../utils/common-translations.js';export default class jt extends _0x1ba91b{static get[_0x3661('0x26')](){return[_0x25fb35];}[_0x3661('0x10')](){const _0x119a83=this[_0x3661('0x19')],_0x371b52=_0x119a83[_0x3661('0x41')][_0x3661('0x4c')][_0x3661('0x39')],_0x515533=_0x119a83['locale'];if(!_0x119a83[_0x3661('0x28')]['has'](_0x3661('0x1f')))return;const _0x11a350=_0x119a83['plugins']['get'](_0x3661('0x3b')),_0x201ee6=_0x119a83[_0x3661('0x28')][_0x3661('0x3d')](_0x3661('0x20')),_0x2fa01b=_0x119a83[_0x3661('0x28')][_0x3661('0x3d')](_0x25fb35);_0x2fa01b[_0x3661('0x47')]['push']('mergeTableCells'),_0x11a350[_0x3661('0x1b')](_0x3661('0x29'),()=>{const _0x5bc854=_0x201ee6[_0x3661('0x1')](_0x119a83[_0x3661('0x41')]['document']['selection']);_0x119a83[_0x3661('0x41')]['change'](()=>{_0x11a350[_0x3661('0x31')](_0x5bc854,{'commandName':_0x3661('0x29'),'commandParams':[]},[],_0x3661('0x29'));});}),_0x119a83['commands'][_0x3661('0x3d')](_0x3661('0x29'))['on'](_0x3661('0x22'),(_0x3e266d,_0x39f5e8)=>{_0x119a83[_0x3661('0x12')][_0x3661('0x3d')](_0x3661('0x44'))[_0x3661('0x13')]&&(_0x39f5e8[_0x3661('0x3e')]>0x0&&_0x39f5e8[_0x39f5e8[_0x3661('0x3e')]-0x1]&&_0x39f5e8[_0x39f5e8[_0x3661('0x3e')]-0x1][_0x3661('0x21')]||_0x11a350['_isForcedDefaultExecutionBlock']||this[_0x3661('0x3c')]()||_0x3e266d[_0x3661('0xa')]());},{'priority':_0x3661('0x36')});for(const _0xc3b7b9 of[_0x3661('0x18'),'mergeTableCellRight',_0x3661('0x2e'),_0x3661('0x4b')]){const _0x250e1c=_0x119a83[_0x3661('0x12')][_0x3661('0x3d')](_0xc3b7b9);_0x11a350[_0x3661('0x1b')](_0xc3b7b9,()=>{const _0x1ab300=_0x119a83['model'][_0x3661('0x4c')][_0x3661('0x39')][_0x3661('0x38')]()[_0x3661('0x2d')]()[_0x3661('0x48')](_0x4b58b7=>_0x4b58b7['is'](_0x3661('0xe'),_0x3661('0x49'))),_0x4f5223=_0x250e1c[_0x3661('0x13')];_0x119a83[_0x3661('0x41')][_0x3661('0x30')](()=>{_0x11a350[_0x3661('0x31')]([_0x1ab300,_0x4f5223],{'commandName':_0x3661('0x29'),'commandParams':[]},[],_0x3661('0x29'));});});}for(const _0x37b09e of[_0x3661('0x3'),'splitTableCellHorizontally']){const _0x2c5534=_0x119a83[_0x3661('0x12')][_0x3661('0x3d')](_0x37b09e);_0x11a350[_0x3661('0x1b')](_0x37b09e,()=>{const _0x372c84=_0x201ee6[_0x3661('0x1')](_0x119a83['model'][_0x3661('0x4c')][_0x3661('0x39')])[0x0],_0x12036e=_0x372c84[_0x3661('0x4d')](_0x3661('0x27')),{column:_0x592e97,row:_0x4e3197}=_0x201ee6[_0x3661('0xc')](_0x372c84);let _0x578743=[];if(_0x3661('0x2')==_0x2c5534[_0x3661('0x32')]){const _0x5712db=_0x201ee6[_0x3661('0x1e')](_0x12036e,{'startRow':_0x4e3197,'endRow':_0x4e3197,'includeAllSlots':!0x0});_0x578743=Array[_0x3661('0x3a')](_0x5712db)['map'](_0x273e24=>_0x273e24[_0x3661('0xd')]);}else{const _0x3f7f3e=_0x201ee6[_0x3661('0x1e')](_0x12036e,{'column':_0x592e97,'includeAllSlots':!0x0});_0x578743=Array[_0x3661('0x3a')](_0x3f7f3e)[_0x3661('0xf')](_0x425e21=>_0x425e21[_0x3661('0xd')]);}_0x119a83[_0x3661('0x41')][_0x3661('0x30')](_0x5228e9=>{_0x11a350[_0x3661('0x15')](_0x5228e9[_0x3661('0x5')](_0x372c84),{'commandName':_0x37b09e,'commandParams':[]},_0x578743,_0x37b09e);});});}_0x11a350['_descriptionFactory'][_0x3661('0xb')](_0x9af0e0=>{if(_0x3661('0x50')!=_0x9af0e0[_0x3661('0x9')]&&_0x3661('0x1c')!=_0x9af0e0[_0x3661('0x9')])return;const {data:_0x4c4655}=_0x9af0e0;return _0x4c4655&&_0x3661('0x29')==_0x4c4655['commandName']?{'type':_0x3661('0x4f'),'content':_0x337955(_0x515533,_0x3661('0x46'))}:void 0x0;}),_0x11a350[_0x3661('0x40')][_0x3661('0xb')](_0x4ec67c=>{if(_0x3661('0x50')!=_0x4ec67c[_0x3661('0x9')]&&_0x3661('0x1c')!=_0x4ec67c[_0x3661('0x9')])return;const {data:_0x36faf3}=_0x4ec67c;return _0x36faf3?_0x3661('0x3')==_0x36faf3['commandName']?{'type':'format','content':_0x337955(_0x515533,_0x3661('0x4'))}:'splitTableCellHorizontally'==_0x36faf3[_0x3661('0x25')]?{'type':_0x3661('0x4f'),'content':_0x337955(_0x515533,_0x3661('0x43'))}:void 0x0:void 0x0;});const _0x2d9d42=_0x2fa01b['_acceptFormatSuggestionCallbackFactory']();for(const _0x2c864b of['mergeTableCellUp',_0x3661('0x3f'),_0x3661('0x2e'),_0x3661('0x4b')])_0x11a350['_suggestionFactory']['registerCustomCallback'](_0x3661('0x50'),_0x2c864b,_0x3661('0x4a'),_0x2d9d42);for(const _0x84dd79 of['splitTableCellVertically',_0x3661('0x2b')])_0x11a350[_0x3661('0x14')][_0x3661('0x0')]('formatBlock',_0x84dd79,'accept',_0x2d9d42);_0x11a350['_suggestionFactory'][_0x3661('0x0')]('formatBlock',_0x3661('0x29'),'accept',_0x1ff7c6=>{_0x119a83[_0x3661('0x41')][_0x3661('0x30')](_0xd5c3ff=>{const _0x1b58fd=Array['from'](_0x371b52[_0x3661('0x8')]())[_0x3661('0xf')](_0x377f87=>_0x4b1375['fromRange'](_0x377f87));_0xd5c3ff['setSelection'](_0x1ff7c6),_0x119a83[_0x3661('0x12')][_0x3661('0x3d')]('mergeTableCells')[_0x3661('0x1d')](),_0x119a83[_0x3661('0x22')](_0x3661('0x29'),{'forceDefaultExecution':!0x0});const _0x4427ec=_0x1b58fd[_0x3661('0x2a')](_0x1eee94=>_0x3661('0x35')!=_0x1eee94[_0x3661('0x2f')][_0x3661('0x6')]);_0x4427ec[_0x3661('0x3e')]>0x0&&_0xd5c3ff['setSelection'](_0x4427ec);for(const _0xdd7443 of _0x1b58fd)_0xdd7443[_0x3661('0x11')]();});});for(const _0x206cf9 of['mergeTableCellUp',_0x3661('0x2e'),_0x3661('0x4b'),_0x3661('0x3f')]){const _0x368c59=_0x119a83['commands']['get'](_0x206cf9);_0x368c59['on'](_0x3661('0x24'),(_0x23fd03,_0x5add6c,_0x52752f)=>{if(_0x52752f){const _0x691416=_0x119a83[_0x3661('0x41')]['document'][_0x3661('0x39')][_0x3661('0x38')]()[_0x3661('0x2d')]()[_0x3661('0x48')](_0x107a4e=>_0x107a4e['is']('element',_0x3661('0x49')));this['_areMergableCells'](_0x368c59[_0x3661('0x13')],_0x691416)||(_0x23fd03['return']=!0x1,_0x23fd03[_0x3661('0xa')]());}},{'priority':_0x3661('0x2c')});}}[_0x3661('0x3c')](){const _0xf44480=this['editor'][_0x3661('0x12')][_0x3661('0x3d')](_0x3661('0x29')),_0x14fb47=this[_0x3661('0x19')][_0x3661('0x28')][_0x3661('0x3d')](_0x3661('0x20'));if(!_0xf44480[_0x3661('0x4e')])return!0x1;const _0x49c111=_0x14fb47[_0x3661('0x1')](this[_0x3661('0x19')][_0x3661('0x41')][_0x3661('0x4c')][_0x3661('0x39')]);for(const _0x2b6664 of _0x49c111)for(const _0x2f4633 of _0x49c111)if(_0x2b6664!=_0x2f4633&&!this[_0x3661('0x23')](_0x2b6664,_0x2f4633))return!0x1;return!0x0;}['_areMergableCells'](_0x4270c4,_0x31e531){const _0x375a8c=this['editor']['plugins'][_0x3661('0x3d')]('TrackChangesEditing'),_0x2b8c2b=this[_0x3661('0x19')][_0x3661('0x41')][_0x3661('0x5')](_0x4270c4),_0x4c1b64=this[_0x3661('0x19')]['model'][_0x3661('0x5')](_0x31e531),_0x49bc29=new Set(),_0x55d1ce=new Set();for(const _0xcdb875 of _0x375a8c[_0x3661('0x34')]())if(('insertion'==_0xcdb875[_0x3661('0x9')]||_0x3661('0x37')==_0xcdb875[_0x3661('0x9')]||_0x3661('0x29')==_0xcdb875[_0x3661('0x33')])&&_0xcdb875[_0x3661('0x17')])for(const _0x3ef76c of _0xcdb875[_0x3661('0x8')]())_0x3ef76c[_0x3661('0x45')](_0x2b8c2b,!0x0)&&_0x49bc29[_0x3661('0x7')](_0xcdb875['type']+':'+_0xcdb875[_0x3661('0x1a')]['id']),_0x3ef76c[_0x3661('0x45')](_0x4c1b64,!0x0)&&_0x55d1ce[_0x3661('0x7')](_0xcdb875[_0x3661('0x9')]+':'+_0xcdb875[_0x3661('0x1a')]['id']);if(_0x49bc29[_0x3661('0x16')]!=_0x55d1ce[_0x3661('0x16')])return!0x1;for(const _0x5ee7bf of _0x49bc29)if(!_0x55d1ce[_0x3661('0x42')](_0x5ee7bf))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x78fd=['_descriptionFactory','enableCommand','commands','TrackChangesEditing','ELEMENT_TABLE_OF_CONTENTS','insertTableOfContents','get','editor','locale','afterInit','tableOfContents'];(function(_0x547291,_0x78fde9){const _0x4068cc=function(_0x5ea1af){while(--_0x5ea1af){_0x547291['push'](_0x547291['shift']());}};_0x4068cc(++_0x78fde9);}(_0x78fd,0x1c7));const _0x4068=function(_0x547291,_0x78fde9){_0x547291=_0x547291-0x0;let _0x4068cc=_0x78fd[_0x547291];return _0x4068cc;};import{Plugin as _0x507af0}from'ckeditor5/src/core.js';import{getTranslation as _0x53d4e6}from'../utils/common-translations.js';export default class _t extends _0x507af0{[_0x4068('0x5')](){const _0x2c7b7c=this[_0x4068('0x3')];if(!_0x2c7b7c[_0x4068('0x9')][_0x4068('0x2')](_0x4068('0x1')))return;_0x2c7b7c['plugins'][_0x4068('0x2')](_0x4068('0xa'))[_0x4068('0x8')]('insertTableOfContents');const _0x535ead=_0x2c7b7c['plugins'][_0x4068('0x2')](_0x4068('0xa')),_0x1f8720=_0x2c7b7c[_0x4068('0x4')];_0x535ead[_0x4068('0x7')]['registerElementLabel'](_0x4068('0x6'),_0x47067a=>_0x53d4e6(_0x1f8720,_0x4068('0x0'),_0x47067a));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3de6=['tableBorderStyle','join','tableCellWidth','TablePropertiesEditing','_suggestionFactory','afterInit','tableHeight','editor','getSuggestions','pluginName','getSelectionAffectedTableCells','get','markBlockFormat','plugins','removeAttribute','table','enableCommand','tableCellBorderWidth','TrackChangesTableProperties','tableWidth','getFirstPosition','locale','selection','tableBorderColor','getAttribute','setAttribute','handleDiscardAction','tableCellProperties','tableAlignment','format','formatBlock','start','*Format:*\x20change\x20table\x20properties','discard','tableBackgroundColor','subType','getContainedElement','tableCellHeight','TableUtils','model','document','registerCustomCallback','handleSuggestionDescription','tableCellBorderColor','tableProperties','TrackChangesEditing','tableCellHorizontalAlignment','_getSuggestion','change','data','_handlePropertyChange','has','tableCellBorderStyle','registerDescriptionCallback'];(function(_0x3949ee,_0x3de6f9){const _0x4408a2=function(_0x5a9670){while(--_0x5a9670){_0x3949ee['push'](_0x3949ee['shift']());}};_0x4408a2(++_0x3de6f9);}(_0x3de6,0x154));const _0x4408=function(_0x3949ee,_0x3de6f9){_0x3949ee=_0x3949ee-0x0;let _0x4408a2=_0x3de6[_0x3949ee];return _0x4408a2;};import{Plugin as _0x1175a4}from'ckeditor5/src/core.js';import{getTranslation as _0x202370}from'../utils/common-translations.js';export default class Mt extends _0x1175a4{constructor(_0x3341d7){super(_0x3341d7),this['tableProperties']=[_0x4408('0x7'),_0x4408('0x26'),'tableBorderWidth',_0x4408('0xc'),_0x4408('0x3'),_0x4408('0x2c'),_0x4408('0x12')],this[_0x4408('0xb')]=[_0x4408('0x1b'),_0x4408('0x24'),_0x4408('0x1'),'tableCellPadding',_0x4408('0x28'),_0x4408('0x15'),'tableCellBackgroundColor',_0x4408('0x1e'),'tableCellVerticalAlignment'];}static get[_0x4408('0x2f')](){return _0x4408('0x2');}[_0x4408('0x2b')](){const _0x4fc529=this[_0x4408('0x2d')][_0x4408('0x33')][_0x4408('0x31')](_0x4408('0x1d'));if(this[_0x4408('0x2d')]['plugins']['has'](_0x4408('0x29'))){for(const _0x458bf8 of this[_0x4408('0x1c')])_0x4fc529[_0x4408('0x0')](_0x458bf8,(_0x4b7fd6,_0x3788b6)=>{const _0x19bdae=this[_0x4408('0x2d')][_0x4408('0x17')]['document'][_0x4408('0x6')][_0x4408('0x4')]()['findAncestor'](_0x4408('0x35'));this['_handlePropertyChange'](_0x458bf8,[_0x19bdae],this[_0x4408('0x1c')],_0x4408('0x1c'),_0x4b7fd6,_0x3788b6);});_0x4fc529['_suggestionFactory'][_0x4408('0x19')](_0x4408('0xe'),_0x4408('0x1c'),'accept',_0x4fc529[_0x4408('0x2a')]['getSuggestionCallback'](_0x4408('0xe'),null,_0x4408('0x11'))),_0x4fc529['_suggestionFactory'][_0x4408('0x19')](_0x4408('0xe'),'tableProperties',_0x4408('0x11'),(_0x2fc362,_0x3526f2)=>this[_0x4408('0xa')](this[_0x4408('0x1c')],_0x2fc362,_0x3526f2)),_0x4fc529[_0x4408('0x2a')]['registerCustomCallback'](_0x4408('0xe'),_0x4408('0x1c'),_0x4408('0x27'),()=>!0x1);}if(this[_0x4408('0x2d')][_0x4408('0x33')][_0x4408('0x23')]('TableCellPropertiesEditing')){for(const _0x28c4d3 of this[_0x4408('0xb')])_0x4fc529[_0x4408('0x0')](_0x28c4d3,(_0x370224,_0x157a91)=>{const _0x375824=this[_0x4408('0x2d')][_0x4408('0x33')]['get'](_0x4408('0x16'))[_0x4408('0x30')](this[_0x4408('0x2d')][_0x4408('0x17')][_0x4408('0x18')][_0x4408('0x6')]);this[_0x4408('0x22')](_0x28c4d3,_0x375824,this['tableCellProperties'],_0x4408('0xb'),_0x370224,_0x157a91);});_0x4fc529[_0x4408('0x2a')][_0x4408('0x19')](_0x4408('0xe'),_0x4408('0xb'),'accept',_0x4fc529[_0x4408('0x2a')]['getSuggestionCallback'](_0x4408('0xe'),null,_0x4408('0x11'))),_0x4fc529[_0x4408('0x2a')][_0x4408('0x19')]('formatBlock',_0x4408('0xb'),_0x4408('0x11'),(_0x5e4259,_0x45e12f)=>this[_0x4408('0xa')](this[_0x4408('0xb')],_0x5e4259,_0x45e12f)),_0x4fc529[_0x4408('0x2a')][_0x4408('0x19')](_0x4408('0xe'),'tableCellProperties',_0x4408('0x27'),()=>!0x1);}_0x4fc529['_descriptionFactory'][_0x4408('0x25')](_0x5e7124=>this[_0x4408('0x1a')](_0x5e7124));}[_0x4408('0x22')](_0x621e34,_0x120d4b,_0x2e917b,_0x406fea,_0xf71f6,_0x382764){const _0x42d097=this[_0x4408('0x2d')][_0x4408('0x33')]['get'](_0x4408('0x1d'));this['editor'][_0x4408('0x17')]['enqueueChange'](_0x382764['batch'],()=>{for(const _0x5c3b07 of _0x120d4b){if(this[_0x4408('0x1f')](_0x5c3b07,_0x406fea))_0xf71f6(_0x382764);else{const _0x45c850={};for(const _0xc28e60 of _0x2e917b){const _0x40f12c=_0x5c3b07[_0x4408('0x8')](_0xc28e60);void 0x0!==_0x40f12c&&(_0x45c850[_0xc28e60]=_0x40f12c);}_0xf71f6(_0x382764),_0x42d097[_0x4408('0x32')](_0x5c3b07,{'commandParams':[_0x45c850]},[],_0x406fea);}}});}[_0x4408('0xa')](_0x1ff277,_0x27dc46,_0x3e2908){const _0x50b990=_0x27dc46[0x0][_0x4408('0xf')]['nodeAfter'],_0x25bb99=_0x3e2908['commandParams'][0x0];this[_0x4408('0x2d')]['model'][_0x4408('0x20')](_0x22b70b=>{for(const _0x2435ca of _0x1ff277)void 0x0!==_0x25bb99[_0x2435ca]?_0x22b70b[_0x4408('0x9')](_0x2435ca,_0x25bb99[_0x2435ca],_0x50b990):_0x22b70b[_0x4408('0x34')](_0x2435ca,_0x50b990);});}['handleSuggestionDescription'](_0x140703){if(_0x140703[_0x4408('0x21')])switch(_0x140703[_0x4408('0x13')]){case _0x4408('0x1c'):return{'type':_0x4408('0xd'),'content':_0x202370(this[_0x4408('0x2d')]['locale'],_0x4408('0x10'))};case _0x4408('0xb'):return{'type':_0x4408('0xd'),'content':_0x202370(this[_0x4408('0x2d')][_0x4408('0x5')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x4408('0x1f')](_0x3d28d4,_0x1b39ce){const _0x2ed0f4=this['editor'][_0x4408('0x33')][_0x4408('0x31')](_0x4408('0x1d'));for(const _0xc81c1b of _0x2ed0f4[_0x4408('0x2e')]({'skipNotAttached':!0x0})){const _0x349a78=_0xc81c1b[_0x4408('0x14')]();if(_0xc81c1b[_0x4408('0x13')]===_0x1b39ce&&_0x349a78===_0x3d28d4)return _0xc81c1b;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1149=['insertTemplate','get','plugins','enableCommand','Template','has','afterInit','editor'];(function(_0x39a8ed,_0x114955){const _0xdafcf0=function(_0xc3e410){while(--_0xc3e410){_0x39a8ed['push'](_0x39a8ed['shift']());}};_0xdafcf0(++_0x114955);}(_0x1149,0x156));const _0xdafc=function(_0x39a8ed,_0x114955){_0x39a8ed=_0x39a8ed-0x0;let _0xdafcf0=_0x1149[_0x39a8ed];return _0xdafcf0;};import{Plugin as _0x514bfc}from'ckeditor5/src/core.js';export default class vt extends _0x514bfc{[_0xdafc('0x0')](){const _0x13c5d9=this[_0xdafc('0x1')];_0x13c5d9[_0xdafc('0x4')][_0xdafc('0x7')](_0xdafc('0x6'))&&_0x13c5d9[_0xdafc('0x4')][_0xdafc('0x3')]('TrackChangesEditing')[_0xdafc('0x5')](_0xdafc('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49f5=['afterInit','element','getNearestSelectionRange','suggestion','schema','plugins','isEqual','document','forward','has','TrackChangesEditing','end','removeMarker','ELEMENT_TITLE','newRange','editor','start','registerPostFixer','differ','updateMarker','_descriptionFactory','model','getChangedMarkers','locale','isTouching','nodeBefore','get'];(function(_0x5f09f8,_0x49f5b9){const _0x3a6ee5=function(_0x32e5da){while(--_0x32e5da){_0x5f09f8['push'](_0x5f09f8['shift']());}};_0x3a6ee5(++_0x49f5b9);}(_0x49f5,0x1f3));const _0x3a6e=function(_0x5f09f8,_0x49f5b9){_0x5f09f8=_0x5f09f8-0x0;let _0x3a6ee5=_0x49f5[_0x5f09f8];return _0x3a6ee5;};import{Plugin as _0x296934}from'ckeditor5/src/core.js';import{getTranslation as _0x128cc0}from'../utils/common-translations.js';export default class Ct extends _0x296934{[_0x3a6e('0xe')](){const _0x57e3d3=this[_0x3a6e('0x2')];if(!_0x57e3d3[_0x3a6e('0x13')][_0x3a6e('0x17')]('Title'))return;const _0x74aaf6=_0x57e3d3['plugins'][_0x3a6e('0xd')](_0x3a6e('0x18'));_0x74aaf6[_0x3a6e('0x7')]['registerElementLabel']('title-content',()=>_0x128cc0(_0x57e3d3[_0x3a6e('0xa')],_0x3a6e('0x0'))),_0x57e3d3[_0x3a6e('0x8')][_0x3a6e('0x15')][_0x3a6e('0x4')](_0x348f49=>{let _0x4c6817=!0x1;const _0xc350fc=Array['from'](_0x57e3d3[_0x3a6e('0x8')][_0x3a6e('0x15')][_0x3a6e('0x5')][_0x3a6e('0x9')]());for(const {name:_0x57d365,data:_0x4b6c75}of _0xc350fc){const {group:_0x16791d}=_0x74aaf6['_splitMarkerName'](_0x57d365);if(_0x3a6e('0x11')!==_0x16791d||!_0x4b6c75[_0x3a6e('0x1')])continue;const _0x46cd0e=_0x4b6c75[_0x3a6e('0x1')],_0x24cade=_0x46cd0e['end'][_0x3a6e('0xc')];if(!_0x24cade||!_0x24cade['is'](_0x3a6e('0xf'),'title-content'))continue;if(!_0x46cd0e[_0x3a6e('0x3')][_0x3a6e('0xb')](_0x46cd0e[_0x3a6e('0x19')]))continue;const _0x46ede9=_0x57e3d3[_0x3a6e('0x8')][_0x3a6e('0x12')][_0x3a6e('0x10')](_0x46cd0e[_0x3a6e('0x19')],_0x3a6e('0x16'));if(_0x46ede9&&_0x46ede9['isCollapsed']){const _0x5e114d=_0x348f49['createRange'](_0x46cd0e[_0x3a6e('0x3')],_0x46ede9[_0x3a6e('0x3')]);_0x5e114d[_0x3a6e('0x14')](_0x46cd0e)||(_0x348f49[_0x3a6e('0x6')](_0x57d365,{'range':_0x5e114d}),_0x4c6817=!0x0);}_0x4c6817||(_0x348f49[_0x3a6e('0x1a')](_0x57d365),_0x4c6817=!0x0);}return _0x4c6817;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x223d=['plugins','has','afterInit','undo','redo','TrackChangesEditing','enableCommand','get','editor'];(function(_0x44a1c4,_0x223d39){const _0x20a962=function(_0x4d5522){while(--_0x4d5522){_0x44a1c4['push'](_0x44a1c4['shift']());}};_0x20a962(++_0x223d39);}(_0x223d,0x184));const _0x20a9=function(_0x44a1c4,_0x223d39){_0x44a1c4=_0x44a1c4-0x0;let _0x20a962=_0x223d[_0x44a1c4];return _0x20a962;};import{Plugin as _0x4f8942}from'ckeditor5/src/core.js';export default class Dt extends _0x4f8942{[_0x20a9('0x1')](){const _0x26d83b=this[_0x20a9('0x7')],_0x3d1a96=_0x26d83b[_0x20a9('0x8')][_0x20a9('0x6')](_0x20a9('0x4'));_0x26d83b[_0x20a9('0x8')][_0x20a9('0x0')]('UndoEditing')&&(_0x3d1a96[_0x20a9('0x5')](_0x20a9('0x2')),_0x3d1a96['enableCommand'](_0x20a9('0x3')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x427e=['isLimit','bindElementToMarker','markerName','insert','start','addClass','getItems','item','getWalker','get','isAtEnd','schema','hasAttribute','mapper','markerRange','getAttribute','listIndent','getCustomProperty','addHighlight','nextSibling','type','test','span','ck-suggestion-marker--active','toViewPosition','listItem','model','toViewElement','previousPosition','ck-suggestion-marker-','writer','elementEnd','push','plugins','isBlock','parent'];(function(_0x3c2b68,_0x427e88){const _0x1a823c=function(_0x5c1869){while(--_0x5c1869){_0x3c2b68['push'](_0x3c2b68['shift']());}};_0x1a823c(++_0x427e88);}(_0x427e,0x160));const _0x1a82=function(_0x3c2b68,_0x427e88){_0x3c2b68=_0x3c2b68-0x0;let _0x1a823c=_0x427e[_0x3c2b68];return _0x1a823c;};export function getRangesWithAttribute(_0x1de8ce,_0x195c70,_0x3b1d59){const _0x11c79c=[];for(const _0x4ac762 of _0x195c70[_0x1a82('0xe')]())_0x4ac762[_0x1a82('0x14')](_0x1de8ce)&&_0x11c79c['push'](_0x3b1d59['createRangeOn'](_0x4ac762));return _0x11c79c;}export function getElementsAffectedByListItemRename(_0x45a7aa){const _0x45f5e8=[];if(_0x45a7aa['is']('element',_0x1a82('0x21'))){let _0x1f6947=_0x45a7aa[_0x1a82('0x1b')];for(;_0x1f6947&&_0x1f6947['is']('element','listItem')&&_0x1f6947[_0x1a82('0x17')](_0x1a82('0x18'))>0x0;)_0x45f5e8[_0x1a82('0x4')](_0x1f6947),_0x1f6947=_0x1f6947['nextSibling'];}return _0x45f5e8;}export function downcastSplitMergeMarker(_0x434452,_0x4c2443,{showActiveMarker:_0x4c567c=!0x0}={}){const _0x51551b=_0x434452[_0x1a82('0x5')][_0x1a82('0x11')]('TrackChangesEditing');return(_0x29126d,_0x57327e,_0x445570)=>{if(!_0x445570['consumable'][_0x1a82('0x1d')](_0x57327e[_0x1a82('0x16')],_0x29126d['name']))return;const _0x3f4d38=_0x57327e[_0x1a82('0x16')][_0x1a82('0x10')](),_0x28eba0=_0x57327e[_0x1a82('0x16')][_0x1a82('0xc')],_0x2b762f=_0x434452[_0x1a82('0x22')][_0x1a82('0x13')];let _0x360d2f=null,_0x43f902=null,_0x2dccd5=!0x1,_0x5cfd02=!0x1;for(const _0x4242dd of _0x3f4d38){const _0x1810d2=_0x4242dd[_0x1a82('0xf')];_0x2dccd5=_0x2dccd5||_0x2b762f['isContent'](_0x1810d2);const _0x2f40ac=_0x445570[_0x1a82('0x15')][_0x1a82('0x23')](_0x1810d2);if(_0x2f40ac&&_0x2f40ac[_0x1a82('0x19')](_0x1a82('0x1a')))return;_0x1a82('0x3')==_0x4242dd[_0x1a82('0x1c')]&&(_0x2b762f[_0x1a82('0x6')](_0x1810d2)&&!_0x2b762f[_0x1a82('0x8')](_0x1810d2)&&(_0x1810d2[_0x1a82('0x1b')]||_0x28eba0[_0x1a82('0x12')]?_0x360d2f&&_0x360d2f[_0x1a82('0x7')]==_0x1810d2||(_0x360d2f=_0x1810d2,_0x367a1a(_0x4242dd[_0x1a82('0x0')]),_0x5cfd02=!0x0):_0x43f902=_0x43f902||_0x4242dd[_0x1a82('0x0')]));}function _0x367a1a(_0x248903){const _0x23a3ad=_0x445570[_0x1a82('0x2')]['createUIElement'](_0x1a82('0x1e'),{'class':_0x1a82('0x1')+_0x4c2443}),_0x39523d=_0x445570[_0x1a82('0x15')][_0x1a82('0x20')](_0x248903);_0x4c567c&&_0x51551b['activeMarkers']['includes'](_0x57327e[_0x1a82('0xa')])&&_0x445570[_0x1a82('0x2')][_0x1a82('0xd')](_0x1a82('0x1f'),_0x23a3ad),_0x445570[_0x1a82('0x2')][_0x1a82('0xb')](_0x39523d,_0x23a3ad),_0x445570[_0x1a82('0x15')][_0x1a82('0x9')](_0x23a3ad,_0x57327e[_0x1a82('0xa')]);}_0x2dccd5||_0x5cfd02||!_0x43f902||_0x367a1a(_0x43f902);};}
|