@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231222.0 → 0.0.0-nightly-20231223.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/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/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 _0xf308=['markers','getRanges','getAttributes','table','low','stop','markerAttributes','return','model','get','from','clipboardOutput','tablePasteCell','requires','find','_descriptionFactory','registerCustomCallback','paragraph','attributes','move','batch','showSuggestionHighlights','remove','markMultiRangeDeletion','getShiftedBy','root','removeRows','columnInsertionIndexes','previous','for','findAncestor','ck-suggestion-marker-insertion','registerPostFixer','createPositionBefore','_suggestionFactory','removeColumns','accept','discard','TableClipboard','insertContent','isInContent','getMarkers','getColumnIndexes','forceDefaultExecution','fill','some','type','setAttributes','document','map','unwrap','value','dataDowncast','rowInsertionRanges','fromEntries','getChangedMarkers','_splitMarkerName','plugins','TableUtils','editingDowncast','_replaceTableSlotCell','push','insertColumns','createRangeOn','differ','suggestion','markerName','tableCellPadding','listenTo','elementToElement','conversion','element','createRangeIn','markerToHighlight','oldRange','startsWith','join','row','options','length','endRow','Users','getRows','getSuggestion','tableCellVerticalAlignment','removeMarkers','getSelectionAffectedTableCells','tableCellBorderColor','name','isEmpty','position','subType','formatBlock','insertionRanges','insertRows','locale','change','createElement','registerDescriptionCallback','getContainedElement','getChildren','getTableIfOnlyTableInContent','tablePasteColumn','newRange','_getCoordsForCells','isEqual','schema','includes','rowInsertionIndexes','author','TrackChangesEditing','editor','endColumn','end','createTableWalker','filter','register','documentSelection','set','removeMarker','activeMarkers','tableCellBorderWidth','tableCellSuggestion','markMultiRangeInsertion','suggestion:formatBlock:tablePasteCell','tablePasteRow','updateMarker','tablePaste','insert','cells','getChanges','rows','containsRange','deletionRanges','selection','high','tablePasteChainId','getRange','suggestion-td','tableCellBackgroundColor','markMultiRangeBlockFormat','deletion','columnInsertionRanges','first','_tablePostFixingSubtypes','previousSibling','setAttribute','last','redo','getAllAdjacentSuggestions','getChild','tableCellBorderStyle','add','has','commands','nextSibling','every','suggestionLoaded','keys','getSuggestions','insertion','hasSuggestion','columns'];(function(_0x48baef,_0xf3088c){const _0xa9ef8c=function(_0x22b785){while(--_0x22b785){_0x48baef['push'](_0x48baef['shift']());}};_0xa9ef8c(++_0xf3088c);}(_0xf308,0x195));const _0xa9ef=function(_0x48baef,_0xf3088c){_0x48baef=_0x48baef-0x0;let _0xa9ef8c=_0xf308[_0x48baef];return _0xa9ef8c;};import{getTranslation as _0x10dc85}from'../utils/common-translations.js';import{Plugin as _0x3ec56a}from'ckeditor5/src/core.js';import{uid as _0x5764c9,priorities as _0x3ace7b}from'ckeditor5/src/utils.js';import _0x548bed from'./table.js';const le=[_0xa9ef('0x2a'),_0xa9ef('0x8'),_0xa9ef('0x48'),'tableCellHorizontalAlignment',_0xa9ef('0x5'),_0xa9ef('0x3c'),_0xa9ef('0x97')],ae=Object[_0xa9ef('0x8a')](le[_0xa9ef('0x85')](_0x3289dd=>[_0x3289dd,null]));export default class St extends _0x3ec56a{static get[_0xa9ef('0x61')](){return[_0x548bed];}['afterInit'](){const _0x48376b=this[_0xa9ef('0x20')];if(!_0x48376b[_0xa9ef('0x8d')]['has'](_0xa9ef('0x7a')))return;const _0x40ae9d=_0x48376b[_0xa9ef('0x8d')]['get'](_0xa9ef('0x1f')),_0x3c1006=_0x48376b[_0xa9ef('0x8d')][_0xa9ef('0x5d')](_0xa9ef('0x8e')),_0x4fc7c0=_0x48376b[_0xa9ef('0x8d')][_0xa9ef('0x5d')](_0x548bed),_0xc2a76c=_0x48376b['plugins'][_0xa9ef('0x5d')](_0xa9ef('0x7a'));_0x4fc7c0[_0xa9ef('0x41')][_0xa9ef('0x91')]('tablePasteRow',_0xa9ef('0x17')),_0x48376b[_0xa9ef('0x5c')][_0xa9ef('0x1b')][_0xa9ef('0x25')]('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x48376b[_0xa9ef('0x9a')][_0xa9ef('0x99')]({'model':_0xa9ef('0x2b'),'view':'suggestion-td'});let _0x58cf89=null;_0x48376b[_0xa9ef('0x5c')]['on'](_0xa9ef('0x7b'),(_0x582071,_0x53f456)=>{const [_0x264da6,_0x358aef]=_0x53f456,_0x2f2ab7=_0x53f456[_0x53f456[_0xa9ef('0x0')]-0x1];_0x2f2ab7&&_0x2f2ab7[_0xa9ef('0x7f')]||_0x40ae9d['_isForcedDefaultExecutionBlock']||this[_0xa9ef('0x20')][_0xa9ef('0x4b')][_0xa9ef('0x5d')]('trackChanges')[_0xa9ef('0x87')]&&function(_0x50ff4a,_0xe6b05,_0x25fe02,_0x3c2dfa,_0x385855){if(_0xe6b05&&!_0xe6b05['is'](_0xa9ef('0x26')))return!0x1;const _0x258dc6=_0x385855[_0xa9ef('0x16')](_0x50ff4a,_0x25fe02);if(!_0x258dc6||!fe(_0x258dc6,void 0x0,_0x3c2dfa))return!0x1;const _0x599ec4=_0x3c2dfa[_0xa9ef('0x7')](_0x25fe02[_0xa9ef('0x84')][_0xa9ef('0x37')]);if(!_0x599ec4['length'])return!0x1;const _0x315da1=_0x599ec4[0x0][_0xa9ef('0x72')](_0xa9ef('0x57')),_0x2febaf=_0x3c2dfa['getRowIndexes'](_0x599ec4),_0x4796b1=_0x3c2dfa[_0xa9ef('0x7e')](_0x599ec4),_0x1b0a88={'startRow':_0x2febaf[_0xa9ef('0x40')],'endRow':_0x2febaf[_0xa9ef('0x44')],'startColumn':_0x4796b1['first'],'endColumn':_0x4796b1[_0xa9ef('0x44')]};return 0x1==_0x599ec4[_0xa9ef('0x0')]&&(_0x1b0a88[_0xa9ef('0x1')]+=_0x3c2dfa[_0xa9ef('0x3')](_0x258dc6)-0x1,_0x1b0a88[_0xa9ef('0x21')]+=_0x3c2dfa['getColumns'](_0x258dc6)-0x1),fe(_0x315da1,_0x1b0a88,_0x3c2dfa);}(_0x264da6,_0x358aef,_0x48376b[_0xa9ef('0x5c')],_0x3c1006,_0xc2a76c)&&(_0x582071[_0xa9ef('0x59')](),_0x58cf89={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x48376b[_0xa9ef('0x5c')]['change'](()=>{_0x48376b['model']['insertContent'](_0x53f456[0x0],_0x53f456[0x1],_0x53f456[0x2],{'forceDefaultExecution':!0x0});const _0x181562=_0x5764c9(),{rowInsertionRanges:_0x5b40dc,columnInsertionRanges:_0x4e5b46,insertionRanges:_0xe96fcc,deletionRanges:_0x3bbef8,cells:_0x37bc0c}=_0x58cf89;_0x5b40dc[_0xa9ef('0x0')]&&_0x40ae9d[_0xa9ef('0x2c')](_0x5b40dc,_0xa9ef('0x2e'),{'tablePasteChainId':_0x181562}),_0x4e5b46[_0xa9ef('0x0')]&&_0x40ae9d['markMultiRangeInsertion'](_0x4e5b46,'tablePasteColumn',{'tablePasteChainId':_0x181562}),_0xe96fcc[_0xa9ef('0x0')]&&_0x40ae9d[_0xa9ef('0x2c')](_0xe96fcc,_0xa9ef('0x30'),{'tablePasteChainId':_0x181562,'skipNestingCheck':!0x0}),_0x3bbef8[_0xa9ef('0x0')]&&_0x40ae9d[_0xa9ef('0x6b')](_0x3bbef8,'tablePaste',{'tablePasteChainId':_0x181562,'skipNestingCheck':!0x0});const _0x52d57d=_0x40ae9d[_0xa9ef('0x3d')](_0x37bc0c[_0xa9ef('0x85')](({element:_0xe8341f})=>_0xe8341f),{'formatGroupId':_0x5764c9()},[],'tablePasteCell',{'tablePasteChainId':_0x181562});if(_0x52d57d){const _0x410ffc=_0x52d57d['getMarkers'](),_0x138e36=[];for(const {element:_0x4562ca,attributes:_0x14dad8}of _0x37bc0c){if(!_0x14dad8)continue;const _0x309be1=_0x48376b[_0xa9ef('0x5c')]['createRangeOn'](_0x4562ca),_0x53bf80=_0x410ffc[_0xa9ef('0x62')](_0x27802a=>_0x27802a[_0xa9ef('0x3a')]()['isEqual'](_0x309be1));_0x53bf80&&_0x138e36['push']([_0x53bf80[_0xa9ef('0x9')],_0x14dad8]);}_0x138e36[_0xa9ef('0x0')]&&_0x52d57d[_0xa9ef('0x43')]('markerAttributes',Object['fromEntries'](_0x138e36));}_0x58cf89=null;}));},{'priority':_0x3ace7b[_0xa9ef('0x38')]+0xa}),_0x48376b[_0xa9ef('0x8d')][_0xa9ef('0x5d')](_0xa9ef('0x7a'))['on'](_0xa9ef('0x90'),(_0x1b7801,_0x56e8ee)=>{const [_0x49f807,_0x83262f,,_0x3bb463]=_0x56e8ee;if(!_0x58cf89)return;_0x1b7801[_0xa9ef('0x59')]();const _0x1a5ce6=_0x49f807['cell'],_0x26e810=_0x83262f,_0x5cd97c=ce(_0x1a5ce6),_0x22499c=ce(_0x26e810);_0x1b7801[_0xa9ef('0x5b')]=_0x1a5ce6;let _0xafade4=null,_0x423269=null;if(_0x22499c||_0x5cd97c){if(_0x5cd97c&&!_0x22499c){_0x3bb463[_0xa9ef('0x6a')](_0x1a5ce6[_0xa9ef('0x47')](0x0));for(const _0x4c32c8 of Array[_0xa9ef('0x5e')](_0x26e810['getChildren']()))_0x3bb463['insert'](_0x4c32c8,_0x1a5ce6,_0xa9ef('0x22'));const _0x10e33a=_0x58cf89[_0xa9ef('0x1d')][_0xa9ef('0x1c')](_0x49f807[_0xa9ef('0xa1')]),_0x3e4973=_0x58cf89['columnInsertionIndexes'][_0xa9ef('0x1c')](_0x49f807['column']);_0x10e33a||_0x3e4973||(_0xafade4=_0x3bb463[_0xa9ef('0x9c')](_0x1a5ce6));}else _0x22499c&&!_0x5cd97c&&(_0x423269=_0x3bb463[_0xa9ef('0x9c')](_0x1a5ce6));}else{const _0x3a5846=_0x3bb463['createElement'](_0xa9ef('0x2b')),_0x576b3d=_0x3bb463[_0xa9ef('0x12')]('tableCellSuggestion');_0x3bb463['wrap'](_0x3bb463[_0xa9ef('0x9c')](_0x1a5ce6),_0x576b3d),_0x3bb463[_0xa9ef('0x31')](_0x3a5846,_0x1a5ce6,0x0);for(const _0x969446 of Array[_0xa9ef('0x5e')](_0x26e810[_0xa9ef('0x15')]()))_0x3bb463[_0xa9ef('0x31')](_0x969446,_0x3a5846,'end');_0xafade4=_0x3bb463[_0xa9ef('0x93')](_0x3a5846),_0x423269=_0x3bb463[_0xa9ef('0x93')](_0x576b3d);}const _0x600e88=Array['from'](_0x26e810[_0xa9ef('0x56')]())['filter'](([_0x382190])=>le[_0xa9ef('0x1c')](_0x382190));_0x58cf89['cells'][_0xa9ef('0x91')]({'element':_0x1a5ce6,'attributes':_0x600e88[_0xa9ef('0x0')]?Object[_0xa9ef('0x8a')](_0x600e88):null}),_0xafade4&&_0x58cf89[_0xa9ef('0xe')]['push'](_0xafade4),_0x423269&&_0x58cf89[_0xa9ef('0x36')][_0xa9ef('0x91')](_0x423269);},{'priority':'high'}),_0x3c1006['on'](_0xa9ef('0x92'),(_0x451b96,_0x49d005)=>{const [_0x159d52,_0x40f5b7={}]=_0x49d005;if(!_0x58cf89)return;const _0x5aa40f=_0x40f5b7['at']||0x0,_0x26f518=_0x40f5b7[_0xa9ef('0x53')]||0x1;_0x58cf89[_0xa9ef('0x6f')]=new Array(_0x26f518)[_0xa9ef('0x80')](_0x5aa40f)['map']((_0x26f3a1,_0x3f1968)=>_0x26f3a1+_0x3f1968);for(const {cell:_0x113177}of _0x3c1006[_0xa9ef('0x23')](_0x159d52,{'startColumn':_0x5aa40f,'endColumn':_0x5aa40f+_0x26f518-0x1}))_0x58cf89[_0xa9ef('0x3f')][_0xa9ef('0x91')](_0x48376b[_0xa9ef('0x5c')]['createRangeOn'](_0x113177));},{'priority':_0xa9ef('0x58')}),_0x3c1006['on'](_0xa9ef('0xf'),(_0x5750dc,_0xabe28f)=>{const [_0x4acce6,_0x9c4f75={}]=_0xabe28f;if(!_0x58cf89)return;const _0x5384b8=_0x9c4f75['at']||0x0,_0x5d4688=_0x9c4f75[_0xa9ef('0x34')]||0x1;_0x58cf89['rowInsertionIndexes']=new Array(_0x5d4688)[_0xa9ef('0x80')](_0x5384b8)[_0xa9ef('0x85')]((_0x27148,_0x246f45)=>_0x27148+_0x246f45);for(const {cell:_0x56026d}of _0x3c1006[_0xa9ef('0x23')](_0x4acce6,{'startRow':_0x5384b8,'endRow':_0x5384b8+_0x5d4688-0x1}))_0x58cf89[_0xa9ef('0x89')][_0xa9ef('0x91')](_0x48376b[_0xa9ef('0x5c')][_0xa9ef('0x93')](_0x56026d));},{'priority':_0xa9ef('0x58')}),_0x40ae9d[_0xa9ef('0x63')][_0xa9ef('0x13')](_0xee3bbc=>{if(_0xee3bbc[_0xa9ef('0xc')]&&_0xee3bbc[_0xa9ef('0xc')][_0xa9ef('0x9f')]('tablePaste'))return _0xee3bbc[_0xa9ef('0x70')]?{}:{'type':_0xa9ef('0x51'),'content':_0x10dc85(_0x48376b[_0xa9ef('0x10')],'*Replace\x20table\x20cells*')};});const _0x531ce6=()=>!0x1;for(const _0x3ae08e of[_0xa9ef('0x30'),_0xa9ef('0x17'),_0xa9ef('0x2e'),_0xa9ef('0x60')])_0x40ae9d[_0xa9ef('0x76')][_0xa9ef('0x64')](_0xa9ef('0x51'),_0x3ae08e,_0xa9ef('0xa0'),_0x531ce6),_0x40ae9d[_0xa9ef('0x76')]['registerCustomCallback'](_0xa9ef('0x3e'),_0x3ae08e,_0xa9ef('0xa0'),_0x531ce6),_0x40ae9d['_suggestionFactory'][_0xa9ef('0x64')](_0xa9ef('0xd'),_0x3ae08e,_0xa9ef('0xa0'),_0x531ce6);_0x40ae9d[_0xa9ef('0x76')]['registerCustomCallback']('formatBlock',_0xa9ef('0x60'),_0xa9ef('0x79'),_0x531ce6),_0x40ae9d['_suggestionFactory'][_0xa9ef('0x64')](_0xa9ef('0xd'),_0xa9ef('0x60'),_0xa9ef('0x78'),(_0x343db2,_0x1b310b,_0x4df5a4)=>{const _0x1b481d=_0x343db2[_0xa9ef('0x85')](_0x2d523e=>_0x2d523e[_0xa9ef('0x14')]())[_0xa9ef('0x24')](_0x324e43=>_0x324e43),_0x4e8c39=new Map(_0x1b481d['map'](_0x1182c7=>[_0x1182c7,null]));if(_0x58cf89)for(const {element:_0x218d03,attributes:_0x322cf5}of _0x58cf89[_0xa9ef('0x32')])_0x322cf5&&_0x4e8c39[_0xa9ef('0x27')](_0x218d03,_0x322cf5);else{if(_0x4df5a4&&_0x4df5a4['markerAttributes'])for(const [_0x189161,_0x20ecb2]of Object['entries'](_0x4df5a4[_0xa9ef('0x5a')])){const _0x48dd79=_0x48376b[_0xa9ef('0x5c')][_0xa9ef('0x54')][_0xa9ef('0x5d')](_0x189161),_0x1f9820=_0x48dd79?_0x48dd79[_0xa9ef('0x3a')]()[_0xa9ef('0x14')]():null;_0x1f9820&&_0x4e8c39['set'](_0x1f9820,_0x20ecb2);}}_0x48376b[_0xa9ef('0x5c')]['change'](_0x85c012=>{for(const [_0x33b84c,_0x2c177f]of _0x4e8c39)_0x85c012[_0xa9ef('0x83')]({...ae,..._0x2c177f},_0x33b84c);});});const _0x7e155=(_0x26bffb,_0x362c75)=>{_0x40ae9d['_suggestionFactory'][_0xa9ef('0x64')](_0x26bffb,_0xa9ef('0x30'),_0x362c75,(_0x14ff44,_0x1b0160,_0x5f4c07)=>{_0x48376b[_0xa9ef('0x5c')][_0xa9ef('0x11')](_0x43e25f=>{const _0x3ba0f0=[];for(const _0x1db2b2 of _0x14ff44){const _0xcb2d7c=_0x1db2b2['start']['nodeAfter'];_0xcb2d7c['is'](_0xa9ef('0x9b'),'tableCellSuggestion')&&_0x3ba0f0['push'](_0xcb2d7c);}_0x40ae9d['_suggestionFactory']['getSuggestionCallback'](_0x26bffb,null,_0x362c75)(_0x14ff44,_0x1b0160,_0x5f4c07);for(const _0x33dcad of _0x3ba0f0)'$graveyard'!=_0x33dcad[_0xa9ef('0x6d')]['rootName']&&_0x43e25f['unwrap'](_0x33dcad);});});};_0x7e155('insertion','accept'),_0x7e155(_0xa9ef('0x51'),_0xa9ef('0x79')),_0x7e155(_0xa9ef('0x3e'),_0xa9ef('0x78')),_0x7e155(_0xa9ef('0x3e'),_0xa9ef('0x79')),_0x40ae9d[_0xa9ef('0x76')][_0xa9ef('0x64')](_0xa9ef('0x51'),'tablePasteRow',_0xa9ef('0x79'),_0x3822f9=>{const _0x1294c5=_0x3822f9[_0xa9ef('0x85')](_0x3f6d23=>_0x3f6d23['getContainedElement']()),_0x332459=_0x1294c5[0x0][_0xa9ef('0x72')](_0xa9ef('0x57')),{minRow:_0x31004c,maxRow:_0x3f5673}=_0x4fc7c0[_0xa9ef('0x19')](_0x1294c5);_0x3c1006[_0xa9ef('0x6e')](_0x332459,{'at':_0x31004c,'rows':_0x3f5673-_0x31004c+0x1});}),_0x40ae9d[_0xa9ef('0x76')][_0xa9ef('0x64')](_0xa9ef('0x51'),_0xa9ef('0x17'),'discard',_0x49e730=>{const _0x2fde89=_0x49e730['map'](_0x35c580=>_0x35c580[_0xa9ef('0x14')]()),_0x421824=_0x2fde89[0x0]['findAncestor'](_0xa9ef('0x57')),{minColumn:_0x44238b,maxColumn:_0x789911}=_0x4fc7c0[_0xa9ef('0x19')](_0x2fde89);_0x3c1006[_0xa9ef('0x77')](_0x421824,{'at':_0x44238b,'columns':_0x789911-_0x44238b+0x1});});const _0x35990d=(_0x72cecf,_0x56bd8b)=>{if(!_0x56bd8b[_0xa9ef('0xc')]||!_0x56bd8b[_0xa9ef('0xc')][_0xa9ef('0x9f')](_0xa9ef('0x30')))return;const _0x142180=_0x56bd8b[_0xa9ef('0x66')]['tablePasteChainId'],_0x2be94a=_0x40ae9d[_0xa9ef('0x50')]()[_0xa9ef('0x24')](_0x1db594=>_0x1db594[_0xa9ef('0x7c')]&&_0x1db594[_0xa9ef('0x66')]&&_0x1db594[_0xa9ef('0x66')][_0xa9ef('0x39')]==_0x142180);_0x2be94a[_0xa9ef('0x0')]&&_0x56bd8b[_0xa9ef('0x46')]()[_0xa9ef('0x0')]!=_0x2be94a[_0xa9ef('0x0')]&&_0x2be94a['reduce']((_0x4de3d2,_0x5a54ba)=>(_0x4de3d2['next']=_0x5a54ba,_0x5a54ba['previous']=_0x4de3d2,_0x5a54ba));};function _0x78876b(_0x552655,_0x2f5140=!0x0){const {id:_0x35a4e8}=_0x40ae9d['_splitMarkerName'](_0x552655[_0xa9ef('0x96')]),_0x3eb2b5=['ck-suggestion-marker',_0xa9ef('0x73')],_0x5e5fa1=_0x40ae9d[_0xa9ef('0x29')][_0xa9ef('0x1c')](_0x552655[_0xa9ef('0x96')]);return _0x5e5fa1&&_0x3eb2b5['push']('ck-suggestion-marker--active'),{'classes':_0x3eb2b5,'attributes':{'data-suggestion':_0x35a4e8},'priority':_0x5e5fa1&&_0x2f5140?0xbc2:0xbb8};}_0x40ae9d['on'](_0xa9ef('0x4e'),_0x35990d,{'priority':'high'}),_0x40ae9d['on']('suggestionUnloaded',_0x35990d,{'priority':'high'}),_0x48376b['model'][_0xa9ef('0x84')][_0xa9ef('0x74')](()=>{let _0x207516=!0x1;const _0x205b1d=Array[_0xa9ef('0x5e')](_0x48376b[_0xa9ef('0x5c')][_0xa9ef('0x84')][_0xa9ef('0x94')]['getChangedMarkers']());for(const {name:_0xa340f,data:_0x167d34}of _0x205b1d){const {group:_0x57272e,type:_0x4ae68d,id:_0x11af83}=_0x40ae9d[_0xa9ef('0x8c')](_0xa340f);if(_0xa9ef('0x95')!=_0x57272e||_0xa9ef('0x3e')!=_0x4ae68d||_0x167d34[_0xa9ef('0x9e')])continue;if(!_0x40ae9d[_0xa9ef('0x52')](_0x11af83))continue;const _0x2ad637=_0x40ae9d[_0xa9ef('0x4')](_0x11af83)[_0xa9ef('0x55')](),_0x3071d6=_0x48376b[_0xa9ef('0x8d')]['get'](_0xa9ef('0x2'))['me'];for(const _0x1c5e03 of _0x40ae9d[_0xa9ef('0x50')]()){if(!_0x1c5e03[_0xa9ef('0x7c')]||_0x1c5e03[_0xa9ef('0x1e')]!=_0x3071d6)continue;if(_0xa9ef('0xd')!=_0x1c5e03[_0xa9ef('0x82')]||_0xa9ef('0x60')!=_0x1c5e03['subType'])continue;if(_0x1c5e03[_0xa9ef('0x55')]()[_0xa9ef('0x4d')](_0x41d4f7=>_0x2ad637[_0xa9ef('0x81')](_0x942411=>_0x942411[_0xa9ef('0x35')](_0x41d4f7,!0x0))))for(const _0x438157 of _0x1c5e03[_0xa9ef('0x46')]())_0x438157[_0xa9ef('0x7c')]&&(_0x438157[_0xa9ef('0x79')](),_0x207516=!0x0);}}return _0x207516;}),_0x48376b[_0xa9ef('0x5c')][_0xa9ef('0x84')]['registerPostFixer'](_0x5e2a6b=>{const _0x43ca4e=_0x48376b[_0xa9ef('0x4b')][_0xa9ef('0x5d')](_0xa9ef('0x45'));if(!_0x43ca4e||!_0x43ca4e['_createdBatches'][_0xa9ef('0x4a')](_0x5e2a6b[_0xa9ef('0x68')]))return!0x1;let _0x1bb746=!0x1;const _0x1d1cf4=_0x48376b[_0xa9ef('0x8d')]['get'](_0xa9ef('0x2'))['me'],_0x33081a=_0x48376b[_0xa9ef('0x5c')][_0xa9ef('0x84')][_0xa9ef('0x94')][_0xa9ef('0x33')](),_0x217b83=Array[_0xa9ef('0x5e')](_0x48376b['model'][_0xa9ef('0x84')][_0xa9ef('0x94')][_0xa9ef('0x8b')]())[_0xa9ef('0x24')](({name:_0x9caee6,data:_0x1e97b3})=>{const {group:_0x201b43,subType:_0x579549,authorId:_0x4b474e}=_0x40ae9d[_0xa9ef('0x8c')](_0x9caee6);return'suggestion'==_0x201b43&&_0xa9ef('0x30')==_0x579549&&_0x4b474e==_0x1d1cf4['id']&&!_0x1e97b3[_0xa9ef('0x9e')];});for(const _0xdb098c of _0x33081a){if(_0xa9ef('0x31')!=_0xdb098c['type']||_0xa9ef('0x2b')!=_0xdb098c['name']||0x1!=_0xdb098c[_0xa9ef('0x0')])continue;const _0x423058=_0x5e2a6b['createRange'](_0xdb098c[_0xa9ef('0xb')],_0xdb098c[_0xa9ef('0xb')][_0xa9ef('0x6c')](0x1));if(!_0x217b83['find'](({data:_0x174666})=>_0x174666[_0xa9ef('0x18')][_0xa9ef('0x1a')](_0x423058)))for(const {name:_0x49b8c0,data:_0x50aacb}of _0x217b83)if(_0x423058[_0xa9ef('0x35')](_0x50aacb[_0xa9ef('0x18')])){_0x5e2a6b[_0xa9ef('0x2f')](_0x49b8c0,{'range':_0x423058}),_0x1bb746=!0x0;break;}}return _0x1bb746;}),_0x48376b[_0xa9ef('0x5c')]['document'][_0xa9ef('0x74')](_0x36c2d2=>{let _0x4bc6d9=!0x1;const _0x151a29=_0x48376b[_0xa9ef('0x8d')][_0xa9ef('0x5d')](_0xa9ef('0x2'))['me'],_0x1d45a1=_0x40ae9d['getSuggestions']()[_0xa9ef('0x24')](_0x42dd07=>_0x42dd07[_0xa9ef('0x7c')]&&_0x42dd07[_0xa9ef('0x1e')]==_0x151a29),_0xe767bc=new Set(),_0x53af04=new Set();for(const _0x13b455 of _0x1d45a1)if('tablePaste'==_0x13b455[_0xa9ef('0xc')])for(const _0x491486 of _0x13b455[_0xa9ef('0x7d')]()){const _0x77f8e2=_0x491486['getRange']()[_0xa9ef('0x14')]();if(_0x77f8e2){if(_0x77f8e2['is'](_0xa9ef('0x9b'),'tableCellSuggestion')&&ce(_0x77f8e2)){_0x13b455['removeMarker'](_0x491486[_0xa9ef('0x9')]),_0xe767bc[_0xa9ef('0x49')](_0x77f8e2),_0x4bc6d9=!0x0;const _0x3188fa=_0x77f8e2[_0xa9ef('0x4c')],_0x54e9ef=_0x77f8e2[_0xa9ef('0x42')],_0x52e887=_0x3188fa&&_0x3188fa['is'](_0xa9ef('0x9b'),'tableCellSuggestion'),_0x393a82=_0x54e9ef&&_0x54e9ef['is'](_0xa9ef('0x9b'),_0xa9ef('0x2b'));_0x52e887&&!_0xe767bc[_0xa9ef('0x4a')](_0x3188fa)&&_0x53af04[_0xa9ef('0x49')](_0x3188fa),_0x393a82&&!_0xe767bc[_0xa9ef('0x4a')](_0x54e9ef)&&_0x53af04[_0xa9ef('0x49')](_0x54e9ef);}else _0x77f8e2['is'](_0xa9ef('0x9b'),_0xa9ef('0x65'))&&_0x77f8e2['isEmpty']&&(_0x13b455[_0xa9ef('0x28')](_0x491486[_0xa9ef('0x9')]),_0x4bc6d9=!0x0);}}else{if(_0xa9ef('0x60')==_0x13b455['subType']){if(!_0x13b455[_0xa9ef('0x66')]||!_0x13b455[_0xa9ef('0x66')][_0xa9ef('0x39')])continue;const _0x1e316b=_0x13b455['attributes'][_0xa9ef('0x5a')];if(_0x1e316b&&Object[_0xa9ef('0x4f')](_0x1e316b)[_0xa9ef('0x0')])continue;const _0x52be8d=_0x13b455[_0xa9ef('0x66')][_0xa9ef('0x39')];let _0x5379d5=!0x0,_0x2e499f=!0x0;for(const _0x3da309 of _0x1d45a1)if(_0x3da309[_0xa9ef('0xc')]&&_0x3da309[_0xa9ef('0xc')][_0xa9ef('0x9f')](_0xa9ef('0x30'))){if(!_0x3da309[_0xa9ef('0x66')][_0xa9ef('0x39')]){_0x2e499f=!0x1;break;}if(_0x3da309['id']!=_0x13b455['id']&&_0x3da309['attributes'][_0xa9ef('0x39')]==_0x52be8d){_0x5379d5=!0x1;break;}}_0x2e499f&&_0x5379d5&&(_0x13b455[_0xa9ef('0x6')](),_0x4bc6d9=!0x0);}}for(const _0x53cbfb of _0xe767bc)_0x36c2d2[_0xa9ef('0x6a')](_0x53cbfb);for(const _0x221f0c of _0x53af04)_0x36c2d2[_0xa9ef('0x86')](_0x221f0c);return _0x4bc6d9;}),_0x48376b[_0xa9ef('0x9a')][_0xa9ef('0x71')](_0xa9ef('0x8f'))[_0xa9ef('0x9d')]({'model':_0xa9ef('0x2d'),'view':(_0x3392e8,_0x59026d)=>_0x78876b(_0x3392e8),'converterPriority':_0xa9ef('0x38')}),_0x48376b[_0xa9ef('0x9a')][_0xa9ef('0x71')](_0xa9ef('0x88'))[_0xa9ef('0x9d')]({'model':_0xa9ef('0x2d'),'view':(_0x382946,_0x4e5695)=>_0x4e5695[_0xa9ef('0xa2')][_0xa9ef('0x69')]?_0x78876b(_0x382946,!0x1):null,'converterPriority':_0xa9ef('0x38')});const _0x434b1f=_0x48376b['editing']['view'];this[_0xa9ef('0x98')](_0x434b1f[_0xa9ef('0x84')],_0xa9ef('0x5f'),(_0x23dbf9,_0x1245a9)=>{const _0x563a98=[];for(const _0x3b573c of _0x434b1f[_0xa9ef('0x9c')](_0x1245a9['content'])['getItems']())_0x3b573c['is'](_0xa9ef('0x9b'),_0xa9ef('0x3b'))&&_0x563a98[_0xa9ef('0x91')](_0x3b573c);_0x434b1f[_0xa9ef('0x11')](_0x25c519=>{for(const _0xb76fb3 of _0x563a98)_0x25c519[_0xa9ef('0x67')](_0x25c519[_0xa9ef('0x9c')](_0xb76fb3),_0x25c519[_0xa9ef('0x75')](_0xb76fb3)),_0x25c519['remove'](_0xb76fb3);});});}}function ce(_0x1fa930){if(_0x1fa930[_0xa9ef('0xa')])return!0x0;const _0x1605bd=_0x1fa930[_0xa9ef('0x47')](0x0);return _0x1605bd['is'](_0xa9ef('0x9b'),'paragraph')&&_0x1605bd[_0xa9ef('0xa')];}function fe(_0x5a30a1,_0x3b951d={},_0x46e6fb){for(const {isAnchor:_0x448b00,cellHeight:_0x27fd37,cellWidth:_0x25fc20}of _0x46e6fb[_0xa9ef('0x23')](_0x5a30a1,{'includeAllSlots':!0x0,..._0x3b951d}))if(!_0x448b00||0x1!=_0x27fd37||0x1!=_0x25fc20)return!0x1;return!0x0;}
|
|
23
|
+
const _0x5534=['ck-suggestion-marker--active','options','tableCellSuggestion','model','selection','tablePaste','filter','getChanges','root','getSuggestion','reduce','tableCellBorderColor','every','join','nextSibling','insert','isEqual','tablePasteCell','table','nodeAfter','tablePasteRow','getSuggestions','markerAttributes','batch','paragraph','subType','markers','markMultiRangeInsertion','createRangeIn','insertion','cell','getRowIndexes','getChild','push','move','deletion','registerPostFixer','has','requires','_replaceTableSlotCell','endRow','tableCellHorizontalAlignment','high','length','getColumnIndexes','_descriptionFactory','_createdBatches','tableCell','columnInsertionRanges','columnInsertionIndexes','markerToHighlight','createRangeOn','tableCellPadding','createTableWalker','registerDescriptionCallback','tableCellVerticalAlignment','insertColumns','tableCellBorderStyle','getSelectionAffectedTableCells','registerCustomCallback','fill','listenTo','from','hasSuggestion','isEmpty','deletionRanges','low','map','newRange','last','_splitMarkerName','removeMarkers','removeMarker','formatBlock','rootName','getChildren','element','tablePasteColumn','conversion','suggestion-td','attributes','includes','discard','remove','suggestionLoaded','TableClipboard','createElement','getRows','add','view','ck-suggestion-marker-insertion','editing','position','startsWith','suggestion','first','getItems','findAncestor','end','commands','Users','insertRows','createPositionBefore','getAllAdjacentSuggestions','editor','document','getMarkers','insertContent','find','return','accept','getRange','wrap','start','endColumn','name','register','type','for','author','change','showSuggestionHighlights','rowInsertionIndexes','get','getShiftedBy','createRange','tablePasteChainId','_suggestionFactory','column','differ','containsRange','getContainedElement','removeRows','getRanges','cells','_getCoordsForCells','isInContent','redo','markerName','documentSelection','getSuggestionCallback','value','insertionRanges','updateMarker','getTableIfOnlyTableInContent','rowInsertionRanges','getChangedMarkers','previous','columns','entries','ck-suggestion-marker','tableCellBackgroundColor','elementToElement','trackChanges','fromEntries','setAttribute','_tablePostFixingSubtypes','markMultiRangeBlockFormat','removeColumns','unwrap','markMultiRangeDeletion','editingDowncast','getColumns','plugins'];(function(_0x2a5ef4,_0x5534ae){const _0x69b59a=function(_0x1891f1){while(--_0x1891f1){_0x2a5ef4['push'](_0x2a5ef4['shift']());}};_0x69b59a(++_0x5534ae);}(_0x5534,0x116));const _0x69b5=function(_0x2a5ef4,_0x5534ae){_0x2a5ef4=_0x2a5ef4-0x0;let _0x69b59a=_0x5534[_0x2a5ef4];return _0x69b59a;};import{getTranslation as _0x24bbbe}from'../utils/common-translations.js';import{Plugin as _0x126aa3}from'ckeditor5/src/core.js';import{uid as _0x503528,priorities as _0x93bc9f}from'ckeditor5/src/utils.js';import _0x231041 from'./table.js';const le=['tableCellBorderWidth',_0x69b5('0x3d'),_0x69b5('0x6b'),_0x69b5('0x5b'),_0x69b5('0x69'),_0x69b5('0x25'),_0x69b5('0x66')],ae=Object[_0x69b5('0x28')](le[_0x69b5('0x75')](_0x1394a8=>[_0x1394a8,null]));export default class St extends _0x126aa3{static get[_0x69b5('0x58')](){return[_0x231041];}['afterInit'](){const _0x1d5b19=this[_0x69b5('0x9a')];if(!_0x1d5b19['plugins'][_0x69b5('0x57')](_0x69b5('0x87')))return;const _0x50a9e6=_0x1d5b19[_0x69b5('0x31')]['get']('TrackChangesEditing'),_0x1d9941=_0x1d5b19[_0x69b5('0x31')][_0x69b5('0x9')]('TableUtils'),_0x5b48e3=_0x1d5b19[_0x69b5('0x31')][_0x69b5('0x9')](_0x231041),_0xffe17f=_0x1d5b19[_0x69b5('0x31')][_0x69b5('0x9')](_0x69b5('0x87'));_0x5b48e3[_0x69b5('0x2a')][_0x69b5('0x53')](_0x69b5('0x46'),'tablePasteColumn'),_0x1d5b19[_0x69b5('0x35')]['schema'][_0x69b5('0x2')](_0x69b5('0x34'),{'allowIn':_0x69b5('0x61'),'allowContentOf':_0x69b5('0x61'),'isLimit':!0x0}),_0x1d5b19['conversion'][_0x69b5('0x26')]({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xe23987=null;_0x1d5b19[_0x69b5('0x35')]['on'](_0x69b5('0x9d'),(_0x21287f,_0x389238)=>{const [_0x22bab1,_0x472a6b]=_0x389238,_0x1c60eb=_0x389238[_0x389238[_0x69b5('0x5d')]-0x1];_0x1c60eb&&_0x1c60eb['forceDefaultExecution']||_0x50a9e6['_isForcedDefaultExecutionBlock']||this[_0x69b5('0x9a')][_0x69b5('0x95')][_0x69b5('0x9')](_0x69b5('0x27'))[_0x69b5('0x1b')]&&function(_0x3da316,_0x449879,_0x17545a,_0x517ca3,_0x1ba2be){if(_0x449879&&!_0x449879['is'](_0x69b5('0x19')))return!0x1;const _0x24d1df=_0x1ba2be[_0x69b5('0x1e')](_0x3da316,_0x17545a);if(!_0x24d1df||!fe(_0x24d1df,void 0x0,_0x517ca3))return!0x1;const _0x46a81a=_0x517ca3[_0x69b5('0x6c')](_0x17545a['document'][_0x69b5('0x36')]);if(!_0x46a81a[_0x69b5('0x5d')])return!0x1;const _0x55921d=_0x46a81a[0x0]['findAncestor'](_0x69b5('0x44')),_0x14484b=_0x517ca3[_0x69b5('0x51')](_0x46a81a),_0x311767=_0x517ca3[_0x69b5('0x5e')](_0x46a81a),_0x41becb={'startRow':_0x14484b[_0x69b5('0x91')],'endRow':_0x14484b['last'],'startColumn':_0x311767[_0x69b5('0x91')],'endColumn':_0x311767[_0x69b5('0x77')]};return 0x1==_0x46a81a['length']&&(_0x41becb[_0x69b5('0x5a')]+=_0x517ca3[_0x69b5('0x89')](_0x24d1df)-0x1,_0x41becb[_0x69b5('0x0')]+=_0x517ca3[_0x69b5('0x30')](_0x24d1df)-0x1),fe(_0x55921d,_0x41becb,_0x517ca3);}(_0x22bab1,_0x472a6b,_0x1d5b19[_0x69b5('0x35')],_0x1d9941,_0xffe17f)&&(_0x21287f['stop'](),_0xe23987={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1d5b19['model'][_0x69b5('0x6')](()=>{_0x1d5b19[_0x69b5('0x35')][_0x69b5('0x9d')](_0x389238[0x0],_0x389238[0x1],_0x389238[0x2],{'forceDefaultExecution':!0x0});const _0x433771=_0x503528(),{rowInsertionRanges:_0x3332c0,columnInsertionRanges:_0x40aa29,insertionRanges:_0xfa13dc,deletionRanges:_0x78e011,cells:_0x21e8a1}=_0xe23987;_0x3332c0[_0x69b5('0x5d')]&&_0x50a9e6['markMultiRangeInsertion'](_0x3332c0,_0x69b5('0x46'),{'tablePasteChainId':_0x433771}),_0x40aa29[_0x69b5('0x5d')]&&_0x50a9e6['markMultiRangeInsertion'](_0x40aa29,_0x69b5('0x7f'),{'tablePasteChainId':_0x433771}),_0xfa13dc[_0x69b5('0x5d')]&&_0x50a9e6[_0x69b5('0x4d')](_0xfa13dc,'tablePaste',{'tablePasteChainId':_0x433771,'skipNestingCheck':!0x0}),_0x78e011[_0x69b5('0x5d')]&&_0x50a9e6[_0x69b5('0x2e')](_0x78e011,_0x69b5('0x37'),{'tablePasteChainId':_0x433771,'skipNestingCheck':!0x0});const _0x237130=_0x50a9e6[_0x69b5('0x2b')](_0x21e8a1[_0x69b5('0x75')](({element:_0x58397d})=>_0x58397d),{'formatGroupId':_0x503528()},[],'tablePasteCell',{'tablePasteChainId':_0x433771});if(_0x237130){const _0x27d921=_0x237130[_0x69b5('0x9c')](),_0x2aad2e=[];for(const {element:_0x659f31,attributes:_0x346c52}of _0x21e8a1){if(!_0x346c52)continue;const _0x4b2e56=_0x1d5b19['model']['createRangeOn'](_0x659f31),_0x2ea689=_0x27d921['find'](_0xb0105d=>_0xb0105d[_0x69b5('0xa1')]()[_0x69b5('0x42')](_0x4b2e56));_0x2ea689&&_0x2aad2e[_0x69b5('0x53')]([_0x2ea689[_0x69b5('0x1')],_0x346c52]);}_0x2aad2e[_0x69b5('0x5d')]&&_0x237130[_0x69b5('0x29')](_0x69b5('0x48'),Object[_0x69b5('0x28')](_0x2aad2e));}_0xe23987=null;}));},{'priority':_0x93bc9f[_0x69b5('0x5c')]+0xa}),_0x1d5b19[_0x69b5('0x31')][_0x69b5('0x9')](_0x69b5('0x87'))['on'](_0x69b5('0x59'),(_0x26f6d3,_0x315a8d)=>{const [_0x23cf10,_0x2f2fff,,_0x5af1a5]=_0x315a8d;if(!_0xe23987)return;_0x26f6d3['stop']();const _0x273db6=_0x23cf10[_0x69b5('0x50')],_0x2e2c28=_0x2f2fff,_0x4a787b=ce(_0x273db6),_0x17fd24=ce(_0x2e2c28);_0x26f6d3[_0x69b5('0x9f')]=_0x273db6;let _0x402053=null,_0x1ee832=null;if(_0x17fd24||_0x4a787b){if(_0x4a787b&&!_0x17fd24){_0x5af1a5[_0x69b5('0x85')](_0x273db6[_0x69b5('0x52')](0x0));for(const _0x3d37f9 of Array[_0x69b5('0x70')](_0x2e2c28[_0x69b5('0x7d')]()))_0x5af1a5['insert'](_0x3d37f9,_0x273db6,_0x69b5('0x94'));const _0x323456=_0xe23987[_0x69b5('0x8')]['includes'](_0x23cf10['row']),_0x72aee2=_0xe23987[_0x69b5('0x63')][_0x69b5('0x83')](_0x23cf10[_0x69b5('0xe')]);_0x323456||_0x72aee2||(_0x402053=_0x5af1a5[_0x69b5('0x4e')](_0x273db6));}else _0x17fd24&&!_0x4a787b&&(_0x1ee832=_0x5af1a5[_0x69b5('0x4e')](_0x273db6));}else{const _0x39e213=_0x5af1a5[_0x69b5('0x88')]('tableCellSuggestion'),_0x27fda3=_0x5af1a5[_0x69b5('0x88')]('tableCellSuggestion');_0x5af1a5[_0x69b5('0xa2')](_0x5af1a5[_0x69b5('0x4e')](_0x273db6),_0x27fda3),_0x5af1a5[_0x69b5('0x41')](_0x39e213,_0x273db6,0x0);for(const _0xa65f0e of Array[_0x69b5('0x70')](_0x2e2c28[_0x69b5('0x7d')]()))_0x5af1a5[_0x69b5('0x41')](_0xa65f0e,_0x39e213,'end');_0x402053=_0x5af1a5[_0x69b5('0x65')](_0x39e213),_0x1ee832=_0x5af1a5[_0x69b5('0x65')](_0x27fda3);}const _0x16bb56=Array['from'](_0x2e2c28['getAttributes']())['filter'](([_0xa23c0f])=>le[_0x69b5('0x83')](_0xa23c0f));_0xe23987[_0x69b5('0x14')]['push']({'element':_0x273db6,'attributes':_0x16bb56['length']?Object[_0x69b5('0x28')](_0x16bb56):null}),_0x402053&&_0xe23987[_0x69b5('0x1c')][_0x69b5('0x53')](_0x402053),_0x1ee832&&_0xe23987[_0x69b5('0x73')][_0x69b5('0x53')](_0x1ee832);},{'priority':_0x69b5('0x5c')}),_0x1d9941['on'](_0x69b5('0x6a'),(_0xa9af78,_0x4fa2b2)=>{const [_0x48d738,_0x300271={}]=_0x4fa2b2;if(!_0xe23987)return;const _0x2482b8=_0x300271['at']||0x0,_0x46fdda=_0x300271[_0x69b5('0x22')]||0x1;_0xe23987[_0x69b5('0x63')]=new Array(_0x46fdda)[_0x69b5('0x6e')](_0x2482b8)['map']((_0x447bc1,_0x2874b0)=>_0x447bc1+_0x2874b0);for(const {cell:_0x4e67af}of _0x1d9941[_0x69b5('0x67')](_0x48d738,{'startColumn':_0x2482b8,'endColumn':_0x2482b8+_0x46fdda-0x1}))_0xe23987[_0x69b5('0x62')]['push'](_0x1d5b19['model'][_0x69b5('0x65')](_0x4e67af));},{'priority':_0x69b5('0x74')}),_0x1d9941['on'](_0x69b5('0x97'),(_0x20b37f,_0x3885e6)=>{const [_0x5a7c5f,_0xd5c7bc={}]=_0x3885e6;if(!_0xe23987)return;const _0x597f13=_0xd5c7bc['at']||0x0,_0x156774=_0xd5c7bc['rows']||0x1;_0xe23987[_0x69b5('0x8')]=new Array(_0x156774)['fill'](_0x597f13)[_0x69b5('0x75')]((_0xc184a3,_0x196bfa)=>_0xc184a3+_0x196bfa);for(const {cell:_0x488251}of _0x1d9941[_0x69b5('0x67')](_0x5a7c5f,{'startRow':_0x597f13,'endRow':_0x597f13+_0x156774-0x1}))_0xe23987[_0x69b5('0x1f')][_0x69b5('0x53')](_0x1d5b19[_0x69b5('0x35')][_0x69b5('0x65')](_0x488251));},{'priority':_0x69b5('0x74')}),_0x50a9e6[_0x69b5('0x5f')][_0x69b5('0x68')](_0x97c75b=>{if(_0x97c75b['subType']&&_0x97c75b[_0x69b5('0x4b')][_0x69b5('0x8f')](_0x69b5('0x37')))return _0x97c75b['previous']?{}:{'type':_0x69b5('0x4f'),'content':_0x24bbbe(_0x1d5b19['locale'],'*Replace\x20table\x20cells*')};});const _0x4e6b7c=()=>!0x1;for(const _0x22d122 of[_0x69b5('0x37'),'tablePasteColumn',_0x69b5('0x46'),_0x69b5('0x43')])_0x50a9e6['_suggestionFactory']['registerCustomCallback'](_0x69b5('0x4f'),_0x22d122,'join',_0x4e6b7c),_0x50a9e6[_0x69b5('0xd')][_0x69b5('0x6d')](_0x69b5('0x55'),_0x22d122,_0x69b5('0x3f'),_0x4e6b7c),_0x50a9e6[_0x69b5('0xd')][_0x69b5('0x6d')](_0x69b5('0x7b'),_0x22d122,_0x69b5('0x3f'),_0x4e6b7c);_0x50a9e6['_suggestionFactory'][_0x69b5('0x6d')](_0x69b5('0x7b'),'tablePasteCell',_0x69b5('0x84'),_0x4e6b7c),_0x50a9e6[_0x69b5('0xd')][_0x69b5('0x6d')](_0x69b5('0x7b'),_0x69b5('0x43'),_0x69b5('0xa0'),(_0xb05931,_0x165b57,_0x46c778)=>{const _0x2d5d41=_0xb05931[_0x69b5('0x75')](_0x4af892=>_0x4af892[_0x69b5('0x11')]())[_0x69b5('0x38')](_0x245fa8=>_0x245fa8),_0x5b09aa=new Map(_0x2d5d41[_0x69b5('0x75')](_0x3b4fc4=>[_0x3b4fc4,null]));if(_0xe23987)for(const {element:_0x11e8db,attributes:_0x236461}of _0xe23987[_0x69b5('0x14')])_0x236461&&_0x5b09aa['set'](_0x11e8db,_0x236461);else{if(_0x46c778&&_0x46c778['markerAttributes'])for(const [_0x270f05,_0x58dac3]of Object[_0x69b5('0x23')](_0x46c778[_0x69b5('0x48')])){const _0x20cf21=_0x1d5b19[_0x69b5('0x35')][_0x69b5('0x4c')][_0x69b5('0x9')](_0x270f05),_0x4a1f87=_0x20cf21?_0x20cf21[_0x69b5('0xa1')]()['getContainedElement']():null;_0x4a1f87&&_0x5b09aa['set'](_0x4a1f87,_0x58dac3);}}_0x1d5b19['model'][_0x69b5('0x6')](_0x3be1c1=>{for(const [_0x5c539d,_0xd50f8]of _0x5b09aa)_0x3be1c1['setAttributes']({...ae,..._0xd50f8},_0x5c539d);});});const _0x2efd6c=(_0x4f2844,_0x5d1ec2)=>{_0x50a9e6[_0x69b5('0xd')][_0x69b5('0x6d')](_0x4f2844,_0x69b5('0x37'),_0x5d1ec2,(_0x7d001c,_0x8a4a24,_0x301d3e)=>{_0x1d5b19['model']['change'](_0x3d57b3=>{const _0x38645c=[];for(const _0x485ac6 of _0x7d001c){const _0x25afb8=_0x485ac6[_0x69b5('0xa3')][_0x69b5('0x45')];_0x25afb8['is']('element',_0x69b5('0x34'))&&_0x38645c[_0x69b5('0x53')](_0x25afb8);}_0x50a9e6['_suggestionFactory'][_0x69b5('0x1a')](_0x4f2844,null,_0x5d1ec2)(_0x7d001c,_0x8a4a24,_0x301d3e);for(const _0x13ba29 of _0x38645c)'$graveyard'!=_0x13ba29[_0x69b5('0x3a')][_0x69b5('0x7c')]&&_0x3d57b3['unwrap'](_0x13ba29);});});};_0x2efd6c(_0x69b5('0x4f'),_0x69b5('0xa0')),_0x2efd6c('insertion','discard'),_0x2efd6c(_0x69b5('0x55'),_0x69b5('0xa0')),_0x2efd6c(_0x69b5('0x55'),'discard'),_0x50a9e6[_0x69b5('0xd')][_0x69b5('0x6d')](_0x69b5('0x4f'),_0x69b5('0x46'),_0x69b5('0x84'),_0x568ed6=>{const _0x1226cb=_0x568ed6['map'](_0x2f1652=>_0x2f1652[_0x69b5('0x11')]()),_0x517335=_0x1226cb[0x0][_0x69b5('0x93')](_0x69b5('0x44')),{minRow:_0x531355,maxRow:_0x1affa5}=_0x5b48e3[_0x69b5('0x15')](_0x1226cb);_0x1d9941[_0x69b5('0x12')](_0x517335,{'at':_0x531355,'rows':_0x1affa5-_0x531355+0x1});}),_0x50a9e6[_0x69b5('0xd')]['registerCustomCallback'](_0x69b5('0x4f'),_0x69b5('0x7f'),_0x69b5('0x84'),_0xc6f0a9=>{const _0x203326=_0xc6f0a9['map'](_0x1375a8=>_0x1375a8[_0x69b5('0x11')]()),_0x2961b8=_0x203326[0x0]['findAncestor'](_0x69b5('0x44')),{minColumn:_0x2b6d68,maxColumn:_0x1ec90b}=_0x5b48e3['_getCoordsForCells'](_0x203326);_0x1d9941[_0x69b5('0x2c')](_0x2961b8,{'at':_0x2b6d68,'columns':_0x1ec90b-_0x2b6d68+0x1});});const _0xf469cc=(_0x59ee36,_0x2bbaa1)=>{if(!_0x2bbaa1[_0x69b5('0x4b')]||!_0x2bbaa1[_0x69b5('0x4b')][_0x69b5('0x8f')](_0x69b5('0x37')))return;const _0x255fe1=_0x2bbaa1[_0x69b5('0x82')][_0x69b5('0xc')],_0x4f44db=_0x50a9e6[_0x69b5('0x47')]()['filter'](_0x24df8d=>_0x24df8d[_0x69b5('0x16')]&&_0x24df8d[_0x69b5('0x82')]&&_0x24df8d[_0x69b5('0x82')]['tablePasteChainId']==_0x255fe1);_0x4f44db[_0x69b5('0x5d')]&&_0x2bbaa1[_0x69b5('0x99')]()[_0x69b5('0x5d')]!=_0x4f44db['length']&&_0x4f44db[_0x69b5('0x3c')]((_0x1da28e,_0x4edf5c)=>(_0x1da28e['next']=_0x4edf5c,_0x4edf5c[_0x69b5('0x21')]=_0x1da28e,_0x4edf5c));};function _0x2d66b9(_0x322215,_0x59e7a4=!0x0){const {id:_0x169738}=_0x50a9e6['_splitMarkerName'](_0x322215[_0x69b5('0x18')]),_0x2698ea=[_0x69b5('0x24'),_0x69b5('0x8c')],_0x154913=_0x50a9e6['activeMarkers']['includes'](_0x322215[_0x69b5('0x18')]);return _0x154913&&_0x2698ea[_0x69b5('0x53')](_0x69b5('0x32')),{'classes':_0x2698ea,'attributes':{'data-suggestion':_0x169738},'priority':_0x154913&&_0x59e7a4?0xbc2:0xbb8};}_0x50a9e6['on'](_0x69b5('0x86'),_0xf469cc,{'priority':'high'}),_0x50a9e6['on']('suggestionUnloaded',_0xf469cc,{'priority':_0x69b5('0x5c')}),_0x1d5b19['model'][_0x69b5('0x9b')][_0x69b5('0x56')](()=>{let _0x5cf7db=!0x1;const _0x30f3ce=Array['from'](_0x1d5b19[_0x69b5('0x35')][_0x69b5('0x9b')][_0x69b5('0xf')][_0x69b5('0x20')]());for(const {name:_0x511e1a,data:_0x5e92b0}of _0x30f3ce){const {group:_0x2739d4,type:_0x3e3f65,id:_0x102b9}=_0x50a9e6[_0x69b5('0x78')](_0x511e1a);if(_0x69b5('0x90')!=_0x2739d4||_0x69b5('0x55')!=_0x3e3f65||_0x5e92b0['oldRange'])continue;if(!_0x50a9e6[_0x69b5('0x71')](_0x102b9))continue;const _0x559726=_0x50a9e6[_0x69b5('0x3b')](_0x102b9)[_0x69b5('0x13')](),_0x178cde=_0x1d5b19[_0x69b5('0x31')]['get'](_0x69b5('0x96'))['me'];for(const _0x3fecf8 of _0x50a9e6[_0x69b5('0x47')]()){if(!_0x3fecf8[_0x69b5('0x16')]||_0x3fecf8[_0x69b5('0x5')]!=_0x178cde)continue;if(_0x69b5('0x7b')!=_0x3fecf8[_0x69b5('0x3')]||_0x69b5('0x43')!=_0x3fecf8[_0x69b5('0x4b')])continue;if(_0x3fecf8['getRanges']()[_0x69b5('0x3e')](_0x4d519c=>_0x559726['some'](_0x2c7435=>_0x2c7435[_0x69b5('0x10')](_0x4d519c,!0x0))))for(const _0x48fb86 of _0x3fecf8[_0x69b5('0x99')]())_0x48fb86[_0x69b5('0x16')]&&(_0x48fb86[_0x69b5('0x84')](),_0x5cf7db=!0x0);}}return _0x5cf7db;}),_0x1d5b19['model'][_0x69b5('0x9b')][_0x69b5('0x56')](_0x5aac7d=>{const _0x30786d=_0x1d5b19[_0x69b5('0x95')][_0x69b5('0x9')](_0x69b5('0x17'));if(!_0x30786d||!_0x30786d[_0x69b5('0x60')][_0x69b5('0x57')](_0x5aac7d[_0x69b5('0x49')]))return!0x1;let _0x4bcb09=!0x1;const _0x4d7ff5=_0x1d5b19[_0x69b5('0x31')]['get'](_0x69b5('0x96'))['me'],_0x5bef01=_0x1d5b19['model'][_0x69b5('0x9b')][_0x69b5('0xf')][_0x69b5('0x39')](),_0x4283d4=Array[_0x69b5('0x70')](_0x1d5b19['model']['document'][_0x69b5('0xf')][_0x69b5('0x20')]())[_0x69b5('0x38')](({name:_0x385fbf,data:_0x1cb679})=>{const {group:_0x4d35a2,subType:_0x2489fa,authorId:_0x4e8b09}=_0x50a9e6[_0x69b5('0x78')](_0x385fbf);return _0x69b5('0x90')==_0x4d35a2&&_0x69b5('0x37')==_0x2489fa&&_0x4e8b09==_0x4d7ff5['id']&&!_0x1cb679['oldRange'];});for(const _0x338203 of _0x5bef01){if(_0x69b5('0x41')!=_0x338203[_0x69b5('0x3')]||_0x69b5('0x34')!=_0x338203['name']||0x1!=_0x338203[_0x69b5('0x5d')])continue;const _0x4382f5=_0x5aac7d[_0x69b5('0xb')](_0x338203[_0x69b5('0x8e')],_0x338203[_0x69b5('0x8e')][_0x69b5('0xa')](0x1));if(!_0x4283d4[_0x69b5('0x9e')](({data:_0x523dc7})=>_0x523dc7[_0x69b5('0x76')][_0x69b5('0x42')](_0x4382f5)))for(const {name:_0x2e4d04,data:_0xde8849}of _0x4283d4)if(_0x4382f5[_0x69b5('0x10')](_0xde8849['newRange'])){_0x5aac7d[_0x69b5('0x1d')](_0x2e4d04,{'range':_0x4382f5}),_0x4bcb09=!0x0;break;}}return _0x4bcb09;}),_0x1d5b19[_0x69b5('0x35')][_0x69b5('0x9b')][_0x69b5('0x56')](_0x2e7396=>{let _0x3baed6=!0x1;const _0x5fa996=_0x1d5b19[_0x69b5('0x31')][_0x69b5('0x9')]('Users')['me'],_0x15b850=_0x50a9e6[_0x69b5('0x47')]()[_0x69b5('0x38')](_0x1a79eb=>_0x1a79eb[_0x69b5('0x16')]&&_0x1a79eb[_0x69b5('0x5')]==_0x5fa996),_0x350b0d=new Set(),_0x147c0c=new Set();for(const _0x21adc0 of _0x15b850)if(_0x69b5('0x37')==_0x21adc0['subType'])for(const _0x57403d of _0x21adc0[_0x69b5('0x9c')]()){const _0x39a4c7=_0x57403d[_0x69b5('0xa1')]()['getContainedElement']();if(_0x39a4c7){if(_0x39a4c7['is'](_0x69b5('0x7e'),_0x69b5('0x34'))&&ce(_0x39a4c7)){_0x21adc0[_0x69b5('0x7a')](_0x57403d[_0x69b5('0x1')]),_0x350b0d['add'](_0x39a4c7),_0x3baed6=!0x0;const _0x382c7b=_0x39a4c7[_0x69b5('0x40')],_0x5791e6=_0x39a4c7['previousSibling'],_0x49139d=_0x382c7b&&_0x382c7b['is'](_0x69b5('0x7e'),'tableCellSuggestion'),_0x35d4b2=_0x5791e6&&_0x5791e6['is'](_0x69b5('0x7e'),_0x69b5('0x34'));_0x49139d&&!_0x350b0d[_0x69b5('0x57')](_0x382c7b)&&_0x147c0c[_0x69b5('0x8a')](_0x382c7b),_0x35d4b2&&!_0x350b0d[_0x69b5('0x57')](_0x5791e6)&&_0x147c0c[_0x69b5('0x8a')](_0x5791e6);}else _0x39a4c7['is'](_0x69b5('0x7e'),'paragraph')&&_0x39a4c7[_0x69b5('0x72')]&&(_0x21adc0[_0x69b5('0x7a')](_0x57403d[_0x69b5('0x1')]),_0x3baed6=!0x0);}}else{if(_0x69b5('0x43')==_0x21adc0[_0x69b5('0x4b')]){if(!_0x21adc0[_0x69b5('0x82')]||!_0x21adc0['attributes']['tablePasteChainId'])continue;const _0x10a83d=_0x21adc0[_0x69b5('0x82')][_0x69b5('0x48')];if(_0x10a83d&&Object['keys'](_0x10a83d)[_0x69b5('0x5d')])continue;const _0x4ddb3b=_0x21adc0[_0x69b5('0x82')][_0x69b5('0xc')];let _0x14b471=!0x0,_0x5f0a68=!0x0;for(const _0x5148a0 of _0x15b850)if(_0x5148a0[_0x69b5('0x4b')]&&_0x5148a0[_0x69b5('0x4b')][_0x69b5('0x8f')](_0x69b5('0x37'))){if(!_0x5148a0[_0x69b5('0x82')][_0x69b5('0xc')]){_0x5f0a68=!0x1;break;}if(_0x5148a0['id']!=_0x21adc0['id']&&_0x5148a0[_0x69b5('0x82')][_0x69b5('0xc')]==_0x4ddb3b){_0x14b471=!0x1;break;}}_0x5f0a68&&_0x14b471&&(_0x21adc0[_0x69b5('0x79')](),_0x3baed6=!0x0);}}for(const _0x3b22ad of _0x350b0d)_0x2e7396[_0x69b5('0x85')](_0x3b22ad);for(const _0x2a58c8 of _0x147c0c)_0x2e7396[_0x69b5('0x2d')](_0x2a58c8);return _0x3baed6;}),_0x1d5b19[_0x69b5('0x80')][_0x69b5('0x4')](_0x69b5('0x2f'))[_0x69b5('0x64')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x36def7,_0x2155b8)=>_0x2d66b9(_0x36def7),'converterPriority':_0x69b5('0x5c')}),_0x1d5b19[_0x69b5('0x80')][_0x69b5('0x4')]('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x555331,_0x574464)=>_0x574464[_0x69b5('0x33')][_0x69b5('0x7')]?_0x2d66b9(_0x555331,!0x1):null,'converterPriority':_0x69b5('0x5c')});const _0x5a5032=_0x1d5b19[_0x69b5('0x8d')][_0x69b5('0x8b')];this[_0x69b5('0x6f')](_0x5a5032[_0x69b5('0x9b')],'clipboardOutput',(_0x361139,_0x5931e1)=>{const _0x332e5b=[];for(const _0x44afb9 of _0x5a5032[_0x69b5('0x4e')](_0x5931e1['content'])[_0x69b5('0x92')]())_0x44afb9['is'](_0x69b5('0x7e'),_0x69b5('0x81'))&&_0x332e5b['push'](_0x44afb9);_0x5a5032[_0x69b5('0x6')](_0x529f1c=>{for(const _0x1db303 of _0x332e5b)_0x529f1c[_0x69b5('0x54')](_0x529f1c[_0x69b5('0x4e')](_0x1db303),_0x529f1c[_0x69b5('0x98')](_0x1db303)),_0x529f1c[_0x69b5('0x85')](_0x1db303);});});}}function ce(_0x31e540){if(_0x31e540[_0x69b5('0x72')])return!0x0;const _0x3e0839=_0x31e540[_0x69b5('0x52')](0x0);return _0x3e0839['is'](_0x69b5('0x7e'),_0x69b5('0x4a'))&&_0x3e0839[_0x69b5('0x72')];}function fe(_0x1f75b4,_0xc25854={},_0x454f16){for(const {isAnchor:_0x2ade60,cellHeight:_0x5e1bb7,cellWidth:_0x2652da}of _0x454f16[_0x69b5('0x67')](_0x1f75b4,{'includeAllSlots':!0x0,..._0xc25854}))if(!_0x2ade60||0x1!=_0x5e1bb7||0x1!=_0x2652da)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x575a=['type','formatInline','getAttribute','_suggestionFactory','commandParams','formatBlock','discard','resizeTableWidth','data','tableWidth','document','TrackChangesEditing','_descriptionFactory','handleResizeTableWidthCommand','registerCustomCallback','format','columnWidths','author','getContainedElement','getSuggestionCallback','editor','enableCommand','getSuggestions','afterInit','selection','handleSuggestionDescription','getTableColumnsWidths','resizeTable','plugins','locale','bind','formatGroupId','*Format:*\x20resize\x20table','getColumnGroupElement','get','accept','registerDescriptionCallback','model'];(function(_0x2c4d98,_0x575abe){const _0x51263c=function(_0x36e824){while(--_0x36e824){_0x2c4d98['push'](_0x2c4d98['shift']());}};_0x51263c(++_0x575abe);}(_0x575a,0x11e));const _0x5126=function(_0x2c4d98,_0x575abe){_0x2c4d98=_0x2c4d98-0x0;let _0x51263c=_0x575a[_0x2c4d98];return _0x51263c;};import{Plugin as _0x5c114b}from'ckeditor5/src/core.js';import{getTranslation as _0x5cd475}from'../utils/common-translations.js';export default class At extends _0x5c114b{[_0x5126('0x3')](){if(!this[_0x5126('0x0')][_0x5126('0x8')]['has']('TableColumnResizeEditing'))return;const _0x583311=this[_0x5126('0x0')][_0x5126('0x8')][_0x5126('0xe')](_0x5126('0x1d'));_0x583311[_0x5126('0x1')](_0x5126('0x19'),this[_0x5126('0x1f')][_0x5126('0xa')](this)),_0x583311[_0x5126('0x15')][_0x5126('0x20')](_0x5126('0x17'),_0x5126('0x7'),'accept',_0x583311[_0x5126('0x15')][_0x5126('0x25')](_0x5126('0x17'),null,_0x5126('0x18'))),_0x583311[_0x5126('0x15')]['registerCustomCallback'](_0x5126('0x17'),'resizeTable',_0x5126('0x18'),_0x583311[_0x5126('0x15')][_0x5126('0x25')](_0x5126('0x17'),null,_0x5126('0xf'))),_0x583311[_0x5126('0x1e')][_0x5126('0x10')](this[_0x5126('0x5')]['bind'](this));}['handleResizeTableWidthCommand'](_0x10240e,_0x4fb74){const _0x5e54bb=this[_0x5126('0x0')][_0x5126('0x8')]['get'](_0x5126('0x1d')),_0x222387=this[_0x5126('0x0')][_0x5126('0x8')][_0x5126('0xe')]('TableColumnResizeEditing'),_0x2e01ce=_0x4fb74['table']||this[_0x5126('0x0')][_0x5126('0x11')][_0x5126('0x1c')][_0x5126('0x4')]['getSelectedElement']();this[_0x5126('0x0')][_0x5126('0x11')]['change'](()=>{const _0x407690=_0x222387[_0x5126('0xd')](_0x2e01ce);let _0x194725=_0x407690?_0x222387[_0x5126('0x6')](_0x407690):null,_0x309ce0=_0x2e01ce[_0x5126('0x14')]('tableWidth')||null;const _0x26f776=_0x4fb74['tableWidth']||_0x309ce0,_0x3e942c=_0x4fb74['columnWidths']||_0x194725,_0x3edf7d=this[_0x5126('0x0')]['plugins'][_0x5126('0xe')]('Users')['me'];for(const _0x59ecfe of _0x5e54bb[_0x5126('0x2')]()){const _0x3208f8=_0x59ecfe[_0x5126('0x24')]();if('resizeTable'===_0x59ecfe['subType']&&_0x3208f8===_0x2e01ce){_0x59ecfe[_0x5126('0x23')]!==_0x3edf7d&&_0x59ecfe['discard']();const _0x3d70ac=_0x59ecfe[_0x5126('0x1a')][_0x5126('0x16')];_0x309ce0=_0x3d70ac[0x0][_0x5126('0x1b')],_0x194725=_0x3d70ac[0x0][_0x5126('0x22')];break;}}_0x10240e({'table':_0x2e01ce,'tableWidth':_0x26f776,'columnWidths':_0x3e942c}),_0x5e54bb['markBlockFormat'](_0x2e01ce,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x309ce0,'columnWidths':_0x194725}],'formatGroupId':'resizeTable'},[],'resizeTable');});}[_0x5126('0x5')](_0x562f50){if(_0x5126('0x17')!=_0x562f50[_0x5126('0x12')]&&_0x5126('0x13')!=_0x562f50['type'])return;const {data:_0x95e975}=_0x562f50;if(_0x95e975&&_0x5126('0x7')===_0x95e975[_0x5126('0xb')]){const _0x4192bf=_0x5126('0xc');return{'type':_0x5126('0x21'),'content':_0x5cd475(this[_0x5126('0x0')][_0x5126('0x9')],_0x4192bf)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a54=['_descriptionFactory','downcastDispatcher','stop','format','registerCustomCallback','FORMAT_REGULAR_ROW','formatBlock','removeClass','_acceptFormatSuggestionCallbackFactory','bindElementToMarker','showSuggestionHighlights','accept','editor','toViewElement','addClass','commandParams','getCellLocation','cell','data','setTableRowHeader','markerName','ck-suggestion-marker--active','getSuggestion','*Format:*\x20%0','writer','options','setTableColumnHeader','end','_enableDefaultAttributesIntegration','removeAttribute','start','markerRange','includes','setAttribute','createTableWalker','locale','headingColumns','FORMAT_HEADER_ROW','headingRows','_handleLegacySuggestions','parent','nodeAfter','registerDescriptionCallback','TableUtils','commandName','get','activeMarkers','TrackChangesEditing','editing','mapper','consume','item','requires','FORMAT_HEADER_COLUMN','data-suggestion','_suggestionFactory','registerAttributeLabel','addMarker:suggestion','highest','_registerLegacyDescription','plugins','type','TableEditing','forceValue','ck-suggestion-marker-','unbindElementFromMarkerName'];(function(_0x2444de,_0x5a541f){const _0x11a65a=function(_0x57c48b){while(--_0x57c48b){_0x2444de['push'](_0x2444de['shift']());}};_0x11a65a(++_0x5a541f);}(_0x5a54,0xfc));const _0x11a6=function(_0x2444de,_0x5a541f){_0x2444de=_0x2444de-0x0;let _0x11a65a=_0x5a54[_0x2444de];return _0x11a65a;};import{Plugin as _0x11a855}from'ckeditor5/src/core.js';import _0x3588a6 from'./table.js';import{getTranslation as _0x283fc5}from'../utils/common-translations.js';export default class jt extends _0x11a855{static get[_0x11a6('0x40')](){return[_0x3588a6];}['afterInit'](){const _0x44335f=this[_0x11a6('0x18')];if(!_0x44335f['plugins']['has'](_0x11a6('0x8')))return;const _0x25fc30=_0x44335f[_0x11a6('0x2f')],_0x49685b=_0x44335f[_0x11a6('0x6')][_0x11a6('0x39')]('TrackChangesEditing');_0x49685b[_0x11a6('0x28')](_0x11a6('0x1f'),[],[_0x11a6('0x32')]),_0x49685b[_0x11a6('0x28')](_0x11a6('0x26'),[],[_0x11a6('0x30')]),_0x49685b[_0x11a6('0xc')][_0x11a6('0x2')]('headingRows',_0x283fc5(_0x25fc30,_0x11a6('0x31'))),_0x49685b[_0x11a6('0xc')]['registerAttributeLabel']('headingColumns',_0x283fc5(_0x25fc30,_0x11a6('0x41'))),this[_0x11a6('0x33')]();}['_handleLegacySuggestions'](){const _0x509586=this['editor'][_0x11a6('0x6')]['get'](_0x11a6('0x3b')),_0x2db4ff=this[_0x11a6('0x18')][_0x11a6('0x6')][_0x11a6('0x39')](_0x11a6('0x37')),_0x30cd44=this[_0x11a6('0x18')]['plugins']['get'](_0x3588a6)[_0x11a6('0x14')]();function _0x29452f({showActiveMarker:_0x5cd5aa=!0x0,setDataAttribute:_0x49097d=!0x0}={}){return(_0x279598,_0x50d4b5,_0xbf258e)=>{const {type:_0x37e8d4,id:_0x32b853}=_0x509586['_splitMarkerName'](_0x50d4b5[_0x11a6('0x20')]),_0x363036=_0x509586[_0x11a6('0x22')](_0x32b853),_0xdcbafb=_0x363036['data'];if(_0x11a6('0x12')!=_0x363036[_0x11a6('0x7')]||!_0xdcbafb||_0x11a6('0x26')!=_0xdcbafb['commandName'])return;if(_0x50d4b5[_0x11a6('0x3f')])return void _0x279598[_0x11a6('0xe')]();if(!_0xbf258e['consumable'][_0x11a6('0x3e')](_0x50d4b5[_0x11a6('0x2b')],_0x279598['name']))return;const _0x4bf2ee=_0x50d4b5[_0x11a6('0x2b')][_0x11a6('0x2a')][_0x11a6('0x35')],_0xd82f05=_0x50d4b5[_0x11a6('0x2b')][_0x11a6('0x27')]['nodeBefore'],_0x3744cd=_0x4bf2ee[_0x11a6('0x34')][_0x11a6('0x34')],{column:_0x40243a}=_0x2db4ff['getCellLocation'](_0x4bf2ee),{column:_0x387ad4}=_0x2db4ff[_0x11a6('0x1c')](_0xd82f05);for(let _0xd93eb4=_0x40243a;_0xd93eb4<=_0x387ad4;_0xd93eb4++){const _0x1218ea=_0x2db4ff[_0x11a6('0x2e')](_0x3744cd,{'column':_0xd93eb4,'includeAllSlots':!0x1});for(const _0x5981e7 of _0x1218ea){const _0x5e0c1a=_0x5981e7[_0x11a6('0x1d')],_0x1b9f6b=_0xbf258e[_0x11a6('0x3d')][_0x11a6('0x19')](_0x5e0c1a);_0xbf258e['writer'][_0x11a6('0x1a')]('ck-suggestion-marker-'+_0x37e8d4,_0x1b9f6b),_0x49097d&&_0xbf258e['writer'][_0x11a6('0x2d')]('data-suggestion',_0x32b853,_0x1b9f6b),_0xbf258e[_0x11a6('0x3d')][_0x11a6('0x15')](_0x1b9f6b,_0x50d4b5['markerName']),_0x5cd5aa&&(_0x509586[_0x11a6('0x3a')][_0x11a6('0x2c')](_0x50d4b5['markerName'])?_0xbf258e['writer']['addClass'](_0x11a6('0x21'),_0x1b9f6b):_0xbf258e[_0x11a6('0x24')][_0x11a6('0x13')](_0x11a6('0x21'),_0x1b9f6b));}}};}_0x509586[_0x11a6('0x1')][_0x11a6('0x10')](_0x11a6('0x12'),'setTableRowHeader',_0x11a6('0x17'),_0x30cd44),_0x509586[_0x11a6('0x1')]['registerCustomCallback']('formatBlock',_0x11a6('0x26'),'accept',_0x30cd44),this[_0x11a6('0x18')]['editing']['downcastDispatcher']['on'](_0x11a6('0x3'),_0x29452f(),{'priority':_0x11a6('0x4')}),this[_0x11a6('0x18')][_0x11a6('0x1e')][_0x11a6('0xd')]['on'](_0x11a6('0x3'),(_0x441b7,_0x15f298,_0x4cf64a)=>{_0x4cf64a[_0x11a6('0x25')][_0x11a6('0x16')]&&_0x29452f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x441b7,_0x15f298,_0x4cf64a);},{'priority':_0x11a6('0x4')}),this[_0x11a6('0x18')][_0x11a6('0x3c')][_0x11a6('0xd')]['on']('removeMarker:suggestion',(_0x4d4196,_0x248a70,_0x1c2106)=>{const {type:_0x52f562,id:_0x44bfb6}=_0x509586['_splitMarkerName'](_0x248a70[_0x11a6('0x20')]),_0x5d4e27=_0x509586[_0x11a6('0x22')](_0x44bfb6),_0x2d03e6=_0x5d4e27[_0x11a6('0x1e')];if(_0x11a6('0x12')!=_0x5d4e27[_0x11a6('0x7')]||!_0x2d03e6||_0x11a6('0x26')!=_0x2d03e6[_0x11a6('0x38')])return;const _0x3e07a8=_0x1c2106[_0x11a6('0x3d')]['markerNameToElements'](_0x248a70['markerName']);if(_0x3e07a8)for(const _0x8877d of _0x3e07a8)_0x1c2106[_0x11a6('0x24')]['removeClass'](_0x11a6('0xa')+_0x52f562,_0x8877d),_0x1c2106[_0x11a6('0x24')][_0x11a6('0x13')](_0x11a6('0x21'),_0x8877d),_0x1c2106['writer'][_0x11a6('0x29')](_0x11a6('0x0'),_0x8877d),_0x1c2106['mapper'][_0x11a6('0xb')](_0x8877d,_0x248a70[_0x11a6('0x20')]);},{'priority':'highest'}),this[_0x11a6('0x5')]();}[_0x11a6('0x5')](){const _0x515dc5=this[_0x11a6('0x18')],_0x1bca8b=_0x515dc5['locale'];function _0x4cf79e(_0xdd2f80){return{'type':_0x11a6('0xf'),'content':_0x283fc5(_0x1bca8b,_0x11a6('0x23'),_0xdd2f80)};}_0x515dc5[_0x11a6('0x6')]['get'](_0x11a6('0x3b'))[_0x11a6('0xc')][_0x11a6('0x36')](_0x659180=>{if(_0x11a6('0x12')!=_0x659180[_0x11a6('0x7')])return;const {data:_0x190a89}=_0x659180;if(_0x190a89){if(_0x11a6('0x1f')==_0x190a89['commandName']){const _0x5adc4e=_0x190a89[_0x11a6('0x1b')][0x0][_0x11a6('0x9')];return _0x4cf79e(_0x283fc5(_0x1bca8b,_0x5adc4e?_0x11a6('0x31'):_0x11a6('0x11')));}if(_0x11a6('0x26')==_0x190a89[_0x11a6('0x38')]){const _0xf9677e=_0x190a89[_0x11a6('0x1b')][0x0]['forceValue'];return _0x4cf79e(_0x283fc5(_0x1bca8b,_0xf9677e?_0x11a6('0x41'):'FORMAT_REGULAR_COLUMN'));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d10=['_areSelectedCellsMergable','TableEditing','add','locale','createRangeOn','getRanges','setSelection','*Split\x20cell:*\x20horizontally','set:isEnabled','length','get','insertion','commandName','editor','commands','accept','mergeTableCells','_acceptFormatSuggestionCallbackFactory','createTableWalker','author','formatBlock','_tablePostFixingSubtypes','mergeTableCellLeft','push','containsRange','has','tableCell','format','_areMergableCells','_isForcedDefaultExecutionBlock','markMultiRangeBlockFormat','splitTableCellHorizontally','trackChanges','enableCommand','_suggestionFactory','direction','afterInit','subType','_descriptionFactory','mergeTableCellDown','mergeTableCellRight','document','execute','refresh','requires','type','*Split\x20cell:*\x20vertically','map','deletion','fromRange','registerDescriptionCallback','getSelectionAffectedTableCells','stop','formatInline','forceDefaultExecution','getFirstPosition','$graveyard','value','cell','markBlockFormat','element','filter','horizontally','size','TableUtils','isInContent','selection','model','splitTableCellVertically','getCellLocation','plugins','change','find','mergeTableCellUp','highest','*Merge\x20cells*','getAncestors','registerCustomCallback','from'];(function(_0x1a0765,_0x1d104b){const _0x495ba1=function(_0x1d8c4a){while(--_0x1d8c4a){_0x1a0765['push'](_0x1a0765['shift']());}};_0x495ba1(++_0x1d104b);}(_0x1d10,0xd1));const _0x495b=function(_0x1a0765,_0x1d104b){_0x1a0765=_0x1a0765-0x0;let _0x495ba1=_0x1d10[_0x1a0765];return _0x495ba1;};import{Plugin as _0x14a261}from'ckeditor5/src/core.js';import _0x22b8a0 from'./table.js';import{LiveRange as _0x58594b}from'ckeditor5/src/engine.js';import{getTranslation as _0x5229e3}from'../utils/common-translations.js';export default class yt extends _0x14a261{static get[_0x495b('0x48')](){return[_0x22b8a0];}[_0x495b('0x40')](){const _0x550dcd=this[_0x495b('0x29')],_0x3450e1=_0x550dcd['model'][_0x495b('0x45')][_0x495b('0xf')],_0x2994bd=_0x550dcd[_0x495b('0x1f')];if(!_0x550dcd[_0x495b('0x13')][_0x495b('0x35')](_0x495b('0x1d')))return;const _0x324c7d=_0x550dcd[_0x495b('0x13')]['get']('TrackChangesEditing'),_0x345a73=_0x550dcd['plugins'][_0x495b('0x26')](_0x495b('0xd')),_0x30b6f4=_0x550dcd['plugins'][_0x495b('0x26')](_0x22b8a0);_0x30b6f4[_0x495b('0x31')][_0x495b('0x33')](_0x495b('0x2c')),_0x324c7d['enableCommand'](_0x495b('0x2c'),()=>{const _0xdf6f28=_0x345a73[_0x495b('0x0')](_0x550dcd[_0x495b('0x10')][_0x495b('0x45')][_0x495b('0xf')]);_0x550dcd[_0x495b('0x10')][_0x495b('0x14')](()=>{_0x324c7d[_0x495b('0x3a')](_0xdf6f28,{'commandName':'mergeTableCells','commandParams':[]},[],_0x495b('0x2c'));});}),_0x550dcd[_0x495b('0x2a')][_0x495b('0x26')](_0x495b('0x2c'))['on'](_0x495b('0x46'),(_0x2dcd24,_0x4e0610)=>{_0x550dcd[_0x495b('0x2a')][_0x495b('0x26')](_0x495b('0x3c'))[_0x495b('0x6')]&&(_0x4e0610['length']>0x0&&_0x4e0610[_0x4e0610['length']-0x1]&&_0x4e0610[_0x4e0610[_0x495b('0x25')]-0x1][_0x495b('0x3')]||_0x324c7d[_0x495b('0x39')]||this[_0x495b('0x1c')]()||_0x2dcd24[_0x495b('0x1')]());},{'priority':_0x495b('0x17')});for(const _0x4ba72b of[_0x495b('0x16'),_0x495b('0x44'),_0x495b('0x43'),_0x495b('0x32')]){const _0x57b614=_0x550dcd[_0x495b('0x2a')]['get'](_0x4ba72b);_0x324c7d[_0x495b('0x3d')](_0x4ba72b,()=>{const _0x4dfac0=_0x550dcd['model'][_0x495b('0x45')][_0x495b('0xf')][_0x495b('0x4')]()[_0x495b('0x19')]()[_0x495b('0x15')](_0x8ad9=>_0x8ad9['is'](_0x495b('0x9'),_0x495b('0x36'))),_0x4c6c58=_0x57b614[_0x495b('0x6')];_0x550dcd[_0x495b('0x10')]['change'](()=>{_0x324c7d[_0x495b('0x3a')]([_0x4dfac0,_0x4c6c58],{'commandName':_0x495b('0x2c'),'commandParams':[]},[],'mergeTableCells');});});}for(const _0x3516e2 of[_0x495b('0x11'),'splitTableCellHorizontally']){const _0x323228=_0x550dcd[_0x495b('0x2a')][_0x495b('0x26')](_0x3516e2);_0x324c7d['enableCommand'](_0x3516e2,()=>{const _0x491036=_0x345a73['getSelectionAffectedTableCells'](_0x550dcd['model']['document'][_0x495b('0xf')])[0x0],_0x4e8b19=_0x491036['findAncestor']('table'),{column:_0x517195,row:_0x36ca59}=_0x345a73[_0x495b('0x12')](_0x491036);let _0x2a4a51=[];if(_0x495b('0xb')==_0x323228[_0x495b('0x3f')]){const _0x196358=_0x345a73['createTableWalker'](_0x4e8b19,{'startRow':_0x36ca59,'endRow':_0x36ca59,'includeAllSlots':!0x0});_0x2a4a51=Array['from'](_0x196358)['map'](_0x286c7e=>_0x286c7e[_0x495b('0x7')]);}else{const _0x125fdf=_0x345a73[_0x495b('0x2e')](_0x4e8b19,{'column':_0x517195,'includeAllSlots':!0x0});_0x2a4a51=Array[_0x495b('0x1b')](_0x125fdf)[_0x495b('0x4b')](_0x20d0cd=>_0x20d0cd[_0x495b('0x7')]);}_0x550dcd[_0x495b('0x10')]['change'](_0x3d2796=>{_0x324c7d[_0x495b('0x8')](_0x3d2796['createRangeOn'](_0x491036),{'commandName':_0x3516e2,'commandParams':[]},_0x2a4a51,_0x3516e2);});});}_0x324c7d[_0x495b('0x42')][_0x495b('0x4e')](_0x27d2a0=>{if(_0x495b('0x30')!=_0x27d2a0['type']&&_0x495b('0x2')!=_0x27d2a0['type'])return;const {data:_0x4debd4}=_0x27d2a0;return _0x4debd4&&_0x495b('0x2c')==_0x4debd4[_0x495b('0x28')]?{'type':_0x495b('0x37'),'content':_0x5229e3(_0x2994bd,_0x495b('0x18'))}:void 0x0;}),_0x324c7d[_0x495b('0x42')][_0x495b('0x4e')](_0x3a80f9=>{if(_0x495b('0x30')!=_0x3a80f9[_0x495b('0x49')]&&_0x495b('0x2')!=_0x3a80f9[_0x495b('0x49')])return;const {data:_0x33e703}=_0x3a80f9;return _0x33e703?_0x495b('0x11')==_0x33e703['commandName']?{'type':'format','content':_0x5229e3(_0x2994bd,_0x495b('0x4a'))}:_0x495b('0x3b')==_0x33e703[_0x495b('0x28')]?{'type':_0x495b('0x37'),'content':_0x5229e3(_0x2994bd,_0x495b('0x23'))}:void 0x0:void 0x0;});const _0x462a3c=_0x30b6f4[_0x495b('0x2d')]();for(const _0x72c522 of[_0x495b('0x16'),_0x495b('0x44'),'mergeTableCellDown',_0x495b('0x32')])_0x324c7d[_0x495b('0x3e')]['registerCustomCallback']('formatBlock',_0x72c522,_0x495b('0x2b'),_0x462a3c);for(const _0x53289a of['splitTableCellVertically',_0x495b('0x3b')])_0x324c7d[_0x495b('0x3e')][_0x495b('0x1a')](_0x495b('0x30'),_0x53289a,_0x495b('0x2b'),_0x462a3c);_0x324c7d[_0x495b('0x3e')][_0x495b('0x1a')](_0x495b('0x30'),_0x495b('0x2c'),_0x495b('0x2b'),_0x5909a0=>{_0x550dcd['model']['change'](_0x57ba85=>{const _0x54ec8e=Array[_0x495b('0x1b')](_0x3450e1['getRanges']())[_0x495b('0x4b')](_0x442c99=>_0x58594b[_0x495b('0x4d')](_0x442c99));_0x57ba85['setSelection'](_0x5909a0),_0x550dcd[_0x495b('0x2a')][_0x495b('0x26')](_0x495b('0x2c'))[_0x495b('0x47')](),_0x550dcd[_0x495b('0x46')](_0x495b('0x2c'),{'forceDefaultExecution':!0x0});const _0x40e7d=_0x54ec8e[_0x495b('0xa')](_0x2d01ec=>_0x495b('0x5')!=_0x2d01ec['root']['rootName']);_0x40e7d[_0x495b('0x25')]>0x0&&_0x57ba85[_0x495b('0x22')](_0x40e7d);for(const _0x3096b6 of _0x54ec8e)_0x3096b6['detach']();});});for(const _0x2a1122 of['mergeTableCellUp',_0x495b('0x43'),_0x495b('0x32'),'mergeTableCellRight']){const _0x23b972=_0x550dcd['commands'][_0x495b('0x26')](_0x2a1122);_0x23b972['on'](_0x495b('0x24'),(_0x4dd44a,_0x49ea61,_0x57ac38)=>{if(_0x57ac38){const _0x3f02c3=_0x550dcd[_0x495b('0x10')][_0x495b('0x45')][_0x495b('0xf')][_0x495b('0x4')]()[_0x495b('0x19')]()[_0x495b('0x15')](_0x4571b9=>_0x4571b9['is']('element',_0x495b('0x36')));this['_areMergableCells'](_0x23b972['value'],_0x3f02c3)||(_0x4dd44a['return']=!0x1,_0x4dd44a[_0x495b('0x1')]());}},{'priority':'low'});}}[_0x495b('0x1c')](){const _0x56555c=this[_0x495b('0x29')][_0x495b('0x2a')][_0x495b('0x26')](_0x495b('0x2c')),_0x3767e8=this[_0x495b('0x29')][_0x495b('0x13')][_0x495b('0x26')](_0x495b('0xd'));if(!_0x56555c['isEnabled'])return!0x1;const _0x10d79f=_0x3767e8['getSelectionAffectedTableCells'](this[_0x495b('0x29')][_0x495b('0x10')][_0x495b('0x45')][_0x495b('0xf')]);for(const _0xe9b9fc of _0x10d79f)for(const _0x372c7d of _0x10d79f)if(_0xe9b9fc!=_0x372c7d&&!this['_areMergableCells'](_0xe9b9fc,_0x372c7d))return!0x1;return!0x0;}[_0x495b('0x38')](_0x37fa59,_0x3cab01){const _0x35671b=this[_0x495b('0x29')][_0x495b('0x13')]['get']('TrackChangesEditing'),_0x3980f8=this[_0x495b('0x29')][_0x495b('0x10')][_0x495b('0x20')](_0x37fa59),_0x25d243=this['editor'][_0x495b('0x10')][_0x495b('0x20')](_0x3cab01),_0x59cc8e=new Set(),_0x1add45=new Set();for(const _0x40e88c of _0x35671b['getSuggestions']())if((_0x495b('0x27')==_0x40e88c[_0x495b('0x49')]||_0x495b('0x4c')==_0x40e88c[_0x495b('0x49')]||_0x495b('0x2c')==_0x40e88c[_0x495b('0x41')])&&_0x40e88c[_0x495b('0xe')])for(const _0xdecb60 of _0x40e88c[_0x495b('0x21')]())_0xdecb60[_0x495b('0x34')](_0x3980f8,!0x0)&&_0x59cc8e[_0x495b('0x1e')](_0x40e88c[_0x495b('0x49')]+':'+_0x40e88c[_0x495b('0x2f')]['id']),_0xdecb60[_0x495b('0x34')](_0x25d243,!0x0)&&_0x1add45[_0x495b('0x1e')](_0x40e88c['type']+':'+_0x40e88c[_0x495b('0x2f')]['id']);if(_0x59cc8e['size']!=_0x1add45[_0x495b('0xc')])return!0x1;for(const _0x30ec50 of _0x59cc8e)if(!_0x1add45[_0x495b('0x35')](_0x30ec50))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8537=['locale','get','editor','_descriptionFactory','afterInit','insertTableOfContents','commands','ELEMENT_TABLE_OF_CONTENTS','registerElementLabel','tableOfContents','plugins'];(function(_0x835033,_0x853713){const _0x28f5ab=function(_0x5e4be1){while(--_0x5e4be1){_0x835033['push'](_0x835033['shift']());}};_0x28f5ab(++_0x853713);}(_0x8537,0x86));const _0x28f5=function(_0x835033,_0x853713){_0x835033=_0x835033-0x0;let _0x28f5ab=_0x8537[_0x835033];return _0x28f5ab;};import{Plugin as _0x4aba54}from'ckeditor5/src/core.js';import{getTranslation as _0x100413}from'../utils/common-translations.js';export default class vt extends _0x4aba54{[_0x28f5('0x2')](){const _0x4f5369=this[_0x28f5('0x0')];if(!_0x4f5369[_0x28f5('0x4')][_0x28f5('0xa')](_0x28f5('0x3')))return;_0x4f5369[_0x28f5('0x8')][_0x28f5('0xa')]('TrackChangesEditing')['enableCommand'](_0x28f5('0x3'));const _0x27aed3=_0x4f5369['plugins'][_0x28f5('0xa')]('TrackChangesEditing'),_0x4dc35c=_0x4f5369[_0x28f5('0x9')];_0x27aed3[_0x28f5('0x1')][_0x28f5('0x6')](_0x28f5('0x7'),_0x4aecc7=>_0x100413(_0x4dc35c,_0x28f5('0x5'),_0x4aecc7));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11a2=['change','table','getAttribute','tableCellBorderColor','enableCommand','tableBackgroundColor','selection','_descriptionFactory','getSuggestionCallback','TablePropertiesEditing','markBlockFormat','getContainedElement','enqueueChange','tableAlignment','document','get','tableCellProperties','removeAttribute','findAncestor','tableCellVerticalAlignment','tableCellBorderStyle','TableCellPropertiesEditing','tableBorderColor','data','afterInit','commandParams','getSuggestions','TrackChangesTableProperties','*Format:*\x20change\x20table\x20cell\x20properties','model','_handlePropertyChange','registerDescriptionCallback','discard','_suggestionFactory','locale','join','handleDiscardAction','_getSuggestion','plugins','tableCellBackgroundColor','editor','tableWidth','tableBorderStyle','registerCustomCallback','formatBlock','setAttribute','format','tableBorderWidth','tableCellBorderWidth','pluginName','tableCellWidth','tableHeight','tableProperties','subType','accept','has','TrackChangesEditing','tableCellPadding','start','getSelectionAffectedTableCells'];(function(_0x413544,_0x11a2b0){const _0x49d218=function(_0x3d7e8b){while(--_0x3d7e8b){_0x413544['push'](_0x413544['shift']());}};_0x49d218(++_0x11a2b0);}(_0x11a2,0x176));const _0x49d2=function(_0x413544,_0x11a2b0){_0x413544=_0x413544-0x0;let _0x49d218=_0x11a2[_0x413544];return _0x49d218;};import{Plugin as _0x1f8177}from'ckeditor5/src/core.js';import{getTranslation as _0x5b7844}from'../utils/common-translations.js';export default class Nt extends _0x1f8177{constructor(_0x5be03d){super(_0x5be03d),this['tableProperties']=[_0x49d2('0x8'),_0x49d2('0x1c'),_0x49d2('0x21'),_0x49d2('0x3b'),_0x49d2('0x1b'),_0x49d2('0x25'),_0x49d2('0x33')],this[_0x49d2('0x2')]=[_0x49d2('0x31'),_0x49d2('0x6'),_0x49d2('0x22'),_0x49d2('0x2b'),_0x49d2('0x24'),'tableCellHeight',_0x49d2('0x19'),'tableCellHorizontalAlignment',_0x49d2('0x5')];}static get[_0x49d2('0x23')](){return _0x49d2('0xd');}[_0x49d2('0xa')](){const _0x429d1b=this['editor'][_0x49d2('0x18')][_0x49d2('0x1')](_0x49d2('0x2a'));if(this['editor']['plugins'][_0x49d2('0x29')](_0x49d2('0x37'))){for(const _0x55206e of this[_0x49d2('0x26')])_0x429d1b[_0x49d2('0x32')](_0x55206e,(_0x12f346,_0x53815c)=>{const _0x16e794=this[_0x49d2('0x1a')]['model'][_0x49d2('0x0')]['selection']['getFirstPosition']()[_0x49d2('0x4')](_0x49d2('0x2f'));this['_handlePropertyChange'](_0x55206e,[_0x16e794],this[_0x49d2('0x26')],_0x49d2('0x26'),_0x12f346,_0x53815c);});_0x429d1b['_suggestionFactory'][_0x49d2('0x1d')]('formatBlock','tableProperties',_0x49d2('0x28'),_0x429d1b[_0x49d2('0x13')]['getSuggestionCallback'](_0x49d2('0x1e'),null,_0x49d2('0x12'))),_0x429d1b[_0x49d2('0x13')]['registerCustomCallback'](_0x49d2('0x1e'),'tableProperties','discard',(_0x44436d,_0x35b695)=>this[_0x49d2('0x16')](this['tableProperties'],_0x44436d,_0x35b695)),_0x429d1b[_0x49d2('0x13')][_0x49d2('0x1d')]('formatBlock',_0x49d2('0x26'),_0x49d2('0x15'),()=>!0x1);}if(this['editor'][_0x49d2('0x18')][_0x49d2('0x29')](_0x49d2('0x7'))){for(const _0x5a9179 of this['tableCellProperties'])_0x429d1b[_0x49d2('0x32')](_0x5a9179,(_0x32eefa,_0x20626a)=>{const _0x54d0e7=this['editor'][_0x49d2('0x18')][_0x49d2('0x1')]('TableUtils')[_0x49d2('0x2d')](this[_0x49d2('0x1a')]['model'][_0x49d2('0x0')][_0x49d2('0x34')]);this['_handlePropertyChange'](_0x5a9179,_0x54d0e7,this[_0x49d2('0x2')],_0x49d2('0x2'),_0x32eefa,_0x20626a);});_0x429d1b[_0x49d2('0x13')][_0x49d2('0x1d')](_0x49d2('0x1e'),_0x49d2('0x2'),_0x49d2('0x28'),_0x429d1b[_0x49d2('0x13')][_0x49d2('0x36')](_0x49d2('0x1e'),null,_0x49d2('0x12'))),_0x429d1b[_0x49d2('0x13')]['registerCustomCallback']('formatBlock',_0x49d2('0x2'),_0x49d2('0x12'),(_0x9a7c0e,_0x18eeba)=>this[_0x49d2('0x16')](this[_0x49d2('0x2')],_0x9a7c0e,_0x18eeba)),_0x429d1b[_0x49d2('0x13')][_0x49d2('0x1d')](_0x49d2('0x1e'),_0x49d2('0x2'),'join',()=>!0x1);}_0x429d1b[_0x49d2('0x35')][_0x49d2('0x11')](_0x3e6343=>this['handleSuggestionDescription'](_0x3e6343));}[_0x49d2('0x10')](_0x5b4390,_0x41cd01,_0x2c0517,_0x429cc2,_0x4c47ef,_0x46d0a5){const _0x5eaadf=this['editor'][_0x49d2('0x18')][_0x49d2('0x1')](_0x49d2('0x2a'));this['editor'][_0x49d2('0xf')][_0x49d2('0x3a')](_0x46d0a5['batch'],()=>{for(const _0x37e518 of _0x41cd01){if(this['_getSuggestion'](_0x37e518,_0x429cc2))_0x4c47ef(_0x46d0a5);else{const _0x40b9fe={};for(const _0xc06739 of _0x2c0517){const _0x1de2c3=_0x37e518[_0x49d2('0x30')](_0xc06739);void 0x0!==_0x1de2c3&&(_0x40b9fe[_0xc06739]=_0x1de2c3);}_0x4c47ef(_0x46d0a5),_0x5eaadf[_0x49d2('0x38')](_0x37e518,{'commandParams':[_0x40b9fe]},[],_0x429cc2);}}});}['handleDiscardAction'](_0x41f704,_0x40cd9a,_0x3ae387){const _0x3d12c3=_0x40cd9a[0x0][_0x49d2('0x2c')]['nodeAfter'],_0x59100d=_0x3ae387[_0x49d2('0xb')][0x0];this[_0x49d2('0x1a')][_0x49d2('0xf')][_0x49d2('0x2e')](_0x55fe73=>{for(const _0xa64436 of _0x41f704)void 0x0!==_0x59100d[_0xa64436]?_0x55fe73[_0x49d2('0x1f')](_0xa64436,_0x59100d[_0xa64436],_0x3d12c3):_0x55fe73[_0x49d2('0x3')](_0xa64436,_0x3d12c3);});}['handleSuggestionDescription'](_0x1e20ad){if(_0x1e20ad[_0x49d2('0x9')])switch(_0x1e20ad[_0x49d2('0x27')]){case _0x49d2('0x26'):return{'type':'format','content':_0x5b7844(this[_0x49d2('0x1a')][_0x49d2('0x14')],'*Format:*\x20change\x20table\x20properties')};case _0x49d2('0x2'):return{'type':_0x49d2('0x20'),'content':_0x5b7844(this[_0x49d2('0x1a')][_0x49d2('0x14')],_0x49d2('0xe'))};}}[_0x49d2('0x17')](_0x42d1a8,_0x3800fe){const _0x7fdd3a=this[_0x49d2('0x1a')][_0x49d2('0x18')][_0x49d2('0x1')]('TrackChangesEditing');for(const _0x2db199 of _0x7fdd3a[_0x49d2('0xc')]({'skipNotAttached':!0x0})){const _0x1eca1d=_0x2db199[_0x49d2('0x39')]();if(_0x2db199['subType']===_0x3800fe&&_0x1eca1d===_0x42d1a8)return _0x2db199;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35d6=['has','enableCommand','TrackChangesEditing','plugins','get','insertTemplate','afterInit','Template'];(function(_0x22843a,_0x35d61c){const _0x35820d=function(_0x3a8111){while(--_0x3a8111){_0x22843a['push'](_0x22843a['shift']());}};_0x35820d(++_0x35d61c);}(_0x35d6,0xf5));const _0x3582=function(_0x22843a,_0x35d61c){_0x22843a=_0x22843a-0x0;let _0x35820d=_0x35d6[_0x22843a];return _0x35820d;};import{Plugin as _0xfd06a}from'ckeditor5/src/core.js';export default class It extends _0xfd06a{[_0x3582('0x1')](){const _0x45f339=this['editor'];_0x45f339['plugins'][_0x3582('0x3')](_0x3582('0x2'))&&_0x45f339[_0x3582('0x6')][_0x3582('0x7')](_0x3582('0x5'))[_0x3582('0x4')](_0x3582('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x175f=['differ','_descriptionFactory','ELEMENT_TITLE','afterInit','getNearestSelectionRange','has','end','isTouching','model','document','suggestion','schema','_splitMarkerName','updateMarker','start','isCollapsed','nodeBefore','newRange','plugins','element','registerElementLabel','locale','title-content','forward'];(function(_0x33eec1,_0x175f2f){const _0x32295a=function(_0x422969){while(--_0x422969){_0x33eec1['push'](_0x33eec1['shift']());}};_0x32295a(++_0x175f2f);}(_0x175f,0x13e));const _0x3229=function(_0x33eec1,_0x175f2f){_0x33eec1=_0x33eec1-0x0;let _0x32295a=_0x175f[_0x33eec1];return _0x32295a;};import{Plugin as _0x300a3e}from'ckeditor5/src/core.js';import{getTranslation as _0x19582f}from'../utils/common-translations.js';export default class Ct extends _0x300a3e{[_0x3229('0x15')](){const _0x4e6610=this['editor'];if(!_0x4e6610[_0x3229('0xc')][_0x3229('0x17')]('Title'))return;const _0x10ba13=_0x4e6610[_0x3229('0xc')]['get']('TrackChangesEditing');_0x10ba13[_0x3229('0x13')][_0x3229('0xe')](_0x3229('0x10'),()=>_0x19582f(_0x4e6610[_0x3229('0xf')],_0x3229('0x14'))),_0x4e6610[_0x3229('0x2')][_0x3229('0x3')]['registerPostFixer'](_0x1f1822=>{let _0x154b90=!0x1;const _0x3488aa=Array['from'](_0x4e6610['model']['document'][_0x3229('0x12')]['getChangedMarkers']());for(const {name:_0x5638d6,data:_0xa77053}of _0x3488aa){const {group:_0x51e096}=_0x10ba13[_0x3229('0x6')](_0x5638d6);if(_0x3229('0x4')!==_0x51e096||!_0xa77053[_0x3229('0xb')])continue;const _0x4ed5b9=_0xa77053[_0x3229('0xb')],_0x5aad76=_0x4ed5b9[_0x3229('0x0')][_0x3229('0xa')];if(!_0x5aad76||!_0x5aad76['is'](_0x3229('0xd'),_0x3229('0x10')))continue;if(!_0x4ed5b9[_0x3229('0x8')][_0x3229('0x1')](_0x4ed5b9['end']))continue;const _0x1ad740=_0x4e6610['model'][_0x3229('0x5')][_0x3229('0x16')](_0x4ed5b9[_0x3229('0x0')],_0x3229('0x11'));if(_0x1ad740&&_0x1ad740[_0x3229('0x9')]){const _0x1c33a2=_0x1f1822['createRange'](_0x4ed5b9[_0x3229('0x8')],_0x1ad740[_0x3229('0x8')]);_0x1c33a2['isEqual'](_0x4ed5b9)||(_0x1f1822[_0x3229('0x7')](_0x5638d6,{'range':_0x1c33a2}),_0x154b90=!0x0);}_0x154b90||(_0x1f1822['removeMarker'](_0x5638d6),_0x154b90=!0x0);}return _0x154b90;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11ce=['UndoEditing','enableCommand','editor','get','afterInit','TrackChangesEditing','undo','plugins'];(function(_0x37c5e1,_0x11ce45){const _0x2e6604=function(_0xfbd1c2){while(--_0xfbd1c2){_0x37c5e1['push'](_0x37c5e1['shift']());}};_0x2e6604(++_0x11ce45);}(_0x11ce,0x14e));const _0x2e66=function(_0x37c5e1,_0x11ce45){_0x37c5e1=_0x37c5e1-0x0;let _0x2e6604=_0x11ce[_0x37c5e1];return _0x2e6604;};import{Plugin as _0x33299e}from'ckeditor5/src/core.js';export default class _t extends _0x33299e{[_0x2e66('0x6')](){const _0xa70b51=this[_0x2e66('0x4')],_0x323ddf=_0xa70b51[_0x2e66('0x1')][_0x2e66('0x5')](_0x2e66('0x7'));_0xa70b51[_0x2e66('0x1')]['has'](_0x2e66('0x2'))&&(_0x323ddf[_0x2e66('0x3')](_0x2e66('0x0')),_0x323ddf[_0x2e66('0x3')]('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24d8=['item','listItem','getCustomProperty','get','addClass','getWalker','name','isAtEnd','consumable','writer','TrackChangesEditing','type','activeMarkers','addHighlight','mapper','ck-suggestion-marker--active','createRangeOn','insert','nextSibling','createUIElement','span','listIndent','model','markerRange','getItems','push','isBlock','plugins','hasAttribute','ck-suggestion-marker-','test','markerName','parent','previousPosition','getAttribute','isLimit'];(function(_0x4b2606,_0x24d84d){const _0x59343e=function(_0xd4f9e5){while(--_0xd4f9e5){_0x4b2606['push'](_0x4b2606['shift']());}};_0x59343e(++_0x24d84d);}(_0x24d8,0x19f));const _0x5934=function(_0x4b2606,_0x24d84d){_0x4b2606=_0x4b2606-0x0;let _0x59343e=_0x24d8[_0x4b2606];return _0x59343e;};export function getRangesWithAttribute(_0x6cc7ad,_0x10834f,_0x17a10c){const _0x188437=[];for(const _0xadd587 of _0x10834f[_0x5934('0x5')]())_0xadd587[_0x5934('0x9')](_0x6cc7ad)&&_0x188437[_0x5934('0x6')](_0x17a10c[_0x5934('0x21')](_0xadd587));return _0x188437;}export function getElementsAffectedByListItemRename(_0x4fdc8b){const _0x1a0167=[];if(_0x4fdc8b['is']('element',_0x5934('0x12'))){let _0x4533c7=_0x4fdc8b['nextSibling'];for(;_0x4533c7&&_0x4533c7['is']('element',_0x5934('0x12'))&&_0x4533c7[_0x5934('0xf')](_0x5934('0x2'))>0x0;)_0x1a0167[_0x5934('0x6')](_0x4533c7),_0x4533c7=_0x4533c7[_0x5934('0x23')];}return _0x1a0167;}export function downcastSplitMergeMarker(_0x29bf88,_0x1145d5,{showActiveMarker:_0x10e8fe=!0x0}={}){const _0x3e80df=_0x29bf88[_0x5934('0x8')][_0x5934('0x14')](_0x5934('0x1b'));return(_0x4226ab,_0x33efe8,_0x341bdc)=>{if(!_0x341bdc[_0x5934('0x19')][_0x5934('0xb')](_0x33efe8['markerRange'],_0x4226ab[_0x5934('0x17')]))return;const _0x21d7cc=_0x33efe8[_0x5934('0x4')][_0x5934('0x16')](),_0x312af8=_0x33efe8[_0x5934('0x4')]['start'],_0x59b463=_0x29bf88[_0x5934('0x3')]['schema'];let _0x3d9267=null,_0x561594=null,_0x2ae53a=!0x1,_0xf2e37b=!0x1;for(const _0x27baea of _0x21d7cc){const _0x2ad4a8=_0x27baea[_0x5934('0x11')];_0x2ae53a=_0x2ae53a||_0x59b463['isContent'](_0x2ad4a8);const _0x728a2d=_0x341bdc[_0x5934('0x1f')]['toViewElement'](_0x2ad4a8);if(_0x728a2d&&_0x728a2d[_0x5934('0x13')](_0x5934('0x1e')))return;'elementEnd'==_0x27baea[_0x5934('0x1c')]&&(_0x59b463[_0x5934('0x7')](_0x2ad4a8)&&!_0x59b463[_0x5934('0x10')](_0x2ad4a8)&&(_0x2ad4a8['nextSibling']||_0x312af8[_0x5934('0x18')]?_0x3d9267&&_0x3d9267[_0x5934('0xd')]==_0x2ad4a8||(_0x3d9267=_0x2ad4a8,_0x9852dc(_0x27baea['previousPosition']),_0xf2e37b=!0x0):_0x561594=_0x561594||_0x27baea[_0x5934('0xe')]));}function _0x9852dc(_0x36e1ed){const _0xa4fa4f=_0x341bdc[_0x5934('0x1a')][_0x5934('0x0')](_0x5934('0x1'),{'class':_0x5934('0xa')+_0x1145d5}),_0x49be00=_0x341bdc[_0x5934('0x1f')]['toViewPosition'](_0x36e1ed);_0x10e8fe&&_0x3e80df[_0x5934('0x1d')]['includes'](_0x33efe8[_0x5934('0xc')])&&_0x341bdc['writer'][_0x5934('0x15')](_0x5934('0x20'),_0xa4fa4f),_0x341bdc[_0x5934('0x1a')][_0x5934('0x22')](_0x49be00,_0xa4fa4f),_0x341bdc[_0x5934('0x1f')]['bindElementToMarker'](_0xa4fa4f,_0x33efe8[_0x5934('0xc')]);}_0x2ae53a||_0xf2e37b||!_0x561594||_0x9852dc(_0x561594);};}
|