@ckeditor/ckeditor5-track-changes 37.0.0-rc.0 → 37.0.1

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.
Files changed (61) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/heading.js +1 -1
  21. package/src/integrations/highlight.js +1 -1
  22. package/src/integrations/horizontalline.js +1 -1
  23. package/src/integrations/htmlembed.js +1 -1
  24. package/src/integrations/image.js +1 -1
  25. package/src/integrations/imagereplace.js +1 -1
  26. package/src/integrations/importword.js +1 -1
  27. package/src/integrations/indent.js +1 -1
  28. package/src/integrations/inputcommand.js +1 -1
  29. package/src/integrations/link.js +1 -1
  30. package/src/integrations/list.js +1 -1
  31. package/src/integrations/listproperties.js +1 -1
  32. package/src/integrations/mediaembed.js +1 -1
  33. package/src/integrations/mention.js +1 -1
  34. package/src/integrations/pagebreak.js +1 -1
  35. package/src/integrations/paragraph.js +1 -1
  36. package/src/integrations/removeformat.js +1 -1
  37. package/src/integrations/restrictededitingmode.js +1 -1
  38. package/src/integrations/shiftentercommand.js +1 -1
  39. package/src/integrations/standardeditingmode.js +1 -1
  40. package/src/integrations/style.js +1 -1
  41. package/src/integrations/table.js +1 -1
  42. package/src/integrations/tablecaption.js +1 -1
  43. package/src/integrations/tableclipboard.js +1 -1
  44. package/src/integrations/tablecolumnresize.js +1 -1
  45. package/src/integrations/tableheadings.js +1 -1
  46. package/src/integrations/tablemergesplit.js +1 -1
  47. package/src/integrations/tableproperties.js +1 -1
  48. package/src/integrations/title.js +1 -1
  49. package/src/integrations/undo.js +1 -1
  50. package/src/integrations/utils.js +1 -1
  51. package/src/suggestion.js +1 -1
  52. package/src/suggestiondescriptionfactory.js +1 -1
  53. package/src/trackchanges.js +1 -1
  54. package/src/trackchangesdata.js +1 -1
  55. package/src/trackchangesediting.js +1 -1
  56. package/src/trackchangesui.js +1 -1
  57. package/src/ui/suggestioncontroller.js +1 -1
  58. package/src/ui/view/basesuggestionthreadview.js +1 -1
  59. package/src/ui/view/suggestionthreadview.js +1 -1
  60. package/src/utils/common-translations.js +1 -1
  61. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf9bb=['ck-suggestion-marker','change','rowInsertionIndexes','getRowIndexes','fill','_tablePostFixingSubtypes','locale','paragraph','insertContent','listenTo','createElement','from','redo','createPositionBefore','getMarkers','_splitMarkerName','containsRange','tableCellHorizontalAlignment','markerToHighlight','position','getSuggestion','length','type','createRangeIn','setAttribute','getRange','createRange','subType','deletion','push','markerName','registerPostFixer','root','getAttributes','markMultiRangeInsertion','getChangedMarkers','tablePaste','tableCellSuggestion','TrackChangesEditing','deletionRanges','every','high','_createdBatches','element','insertion','editor','fromEntries','has','suggestionUnloaded','last','options','next','editingDowncast','move','markerAttributes','tableCell','tablePasteColumn','getItems','filter','name','columnInsertionIndexes','removeMarker','low','_getCoordsForCells','document','plugins','getRanges','oldRange','Users','schema','row','markMultiRangeBlockFormat','_replaceTableSlotCell','wrap','getChild','activeMarkers','registerDescriptionCallback','elementToElement','tablePasteCell','cells','getColumns','tableCellBorderWidth','content','getContainedElement','getChanges','rowInsertionRanges','removeColumns','return','keys','batch','remove','insertionRanges','cell','suggestion:formatBlock:tablePasteCell','end','nodeAfter','findAncestor','join','discard','TableUtils','attributes','_descriptionFactory','author','ck-suggestion-marker--active','getSuggestions','createTableWalker','editing','showSuggestionHighlights','tablePasteRow','nextSibling','isEqual','setAttributes','includes','model','dataDowncast','some','table','isInContent','stop','register','_suggestionFactory','newRange','reduce','formatBlock','forceDefaultExecution','requires','accept','TableClipboard','set','markMultiRangeDeletion','start','documentSelection','tableCellBorderColor','add','column','tablePasteChainId','getAllAdjacentSuggestions','selection','removeMarkers','conversion','first','getTableIfOnlyTableInContent','differ','getColumnIndexes','for','suggestionLoaded','map','find','columnInsertionRanges','getRows','value','commands','tableCellPadding','getChildren','insert','endColumn','registerCustomCallback','getShiftedBy','suggestion-td','isEmpty','previousSibling','previous','get','unwrap','startsWith','*Replace\x20table\x20cells*','createRangeOn'];(function(_0x6417ca,_0xf9bb54){const _0x4209ff=function(_0x38e83a){while(--_0x38e83a){_0x6417ca['push'](_0x6417ca['shift']());}};_0x4209ff(++_0xf9bb54);}(_0xf9bb,0x7e));const _0x4209=function(_0x6417ca,_0xf9bb54){_0x6417ca=_0x6417ca-0x0;let _0x4209ff=_0xf9bb[_0x6417ca];return _0x4209ff;};import{getTranslation as _0x45a8f2}from'../utils/common-translations';import{Plugin as _0x36df4b}from'ckeditor5/src/core';import{uid as _0x316d98,priorities as _0x499473}from'ckeditor5/src/utils';import _0x2884c5 from'./table';const le=[_0x4209('0x7a'),_0x4209('0x6'),'tableCellBorderStyle',_0x4209('0x3a'),'tableCellVerticalAlignment','tableCellBackgroundColor',_0x4209('0x1a')],ae=Object[_0x4209('0x57')](le['map'](_0x366f35=>[_0x366f35,null]));export default class pt extends _0x36df4b{static get[_0x4209('0xa6')](){return[_0x2884c5];}['afterInit'](){const _0x5f0254=this[_0x4209('0x56')];if(!_0x5f0254['plugins']['has']('TableClipboard'))return;const _0x4338f5=_0x5f0254[_0x4209('0x6a')][_0x4209('0x24')](_0x4209('0x4f')),_0x38bdd0=_0x5f0254[_0x4209('0x6a')]['get'](_0x4209('0x8c')),_0x2b8a38=_0x5f0254['plugins'][_0x4209('0x24')](_0x2884c5),_0x66fc0e=_0x5f0254[_0x4209('0x6a')][_0x4209('0x24')](_0x4209('0x1'));_0x2b8a38[_0x4209('0x2e')]['push'](_0x4209('0x95'),_0x4209('0x61')),_0x5f0254[_0x4209('0x9a')][_0x4209('0x6e')][_0x4209('0xa0')](_0x4209('0x4e'),{'allowIn':_0x4209('0x60'),'allowContentOf':_0x4209('0x60'),'isLimit':!0x0}),_0x5f0254[_0x4209('0xd')][_0x4209('0x76')]({'model':_0x4209('0x4e'),'view':_0x4209('0x20')});let _0x2f02af=null;_0x5f0254[_0x4209('0x9a')]['on']('insertContent',(_0x40b193,_0x2d7458)=>{const [_0x2eb5a4,_0x76022]=_0x2d7458,_0x527e18=_0x2d7458[_0x2d7458['length']-0x1];_0x527e18&&_0x527e18[_0x4209('0xa5')]||_0x4338f5['_isForcedDefaultExecutionBlock']||this[_0x4209('0x56')][_0x4209('0x19')][_0x4209('0x24')]('trackChanges')[_0x4209('0x18')]&&function(_0x1bbec8,_0xd60f6c,_0x36f244,_0x415195,_0x5a7c87){if(_0xd60f6c&&!_0xd60f6c['is'](_0x4209('0x5')))return!0x1;const _0x2396a5=_0x5a7c87[_0x4209('0xf')](_0x1bbec8,_0x36f244);if(!_0x2396a5||!fe(_0x2396a5,void 0x0,_0x415195))return!0x1;const _0x1b3374=_0x415195['getSelectionAffectedTableCells'](_0x36f244[_0x4209('0x69')][_0x4209('0xb')]);if(!_0x1b3374['length'])return!0x1;const _0x376798=_0x1b3374[0x0][_0x4209('0x89')](_0x4209('0x9d')),_0x13a949=_0x415195[_0x4209('0x2c')](_0x1b3374),_0x392840=_0x415195[_0x4209('0x11')](_0x1b3374),_0x4f80ee={'startRow':_0x13a949[_0x4209('0xe')],'endRow':_0x13a949[_0x4209('0x5a')],'startColumn':_0x392840['first'],'endColumn':_0x392840[_0x4209('0x5a')]};return 0x1==_0x1b3374[_0x4209('0x3e')]&&(_0x4f80ee['endRow']+=_0x415195[_0x4209('0x17')](_0x2396a5)-0x1,_0x4f80ee[_0x4209('0x1d')]+=_0x415195[_0x4209('0x79')](_0x2396a5)-0x1),fe(_0x376798,_0x4f80ee,_0x415195);}(_0x2eb5a4,_0x76022,_0x5f0254[_0x4209('0x9a')],_0x38bdd0,_0x66fc0e)&&(_0x40b193[_0x4209('0x9f')](),_0x2f02af={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5f0254[_0x4209('0x9a')][_0x4209('0x2a')](()=>{_0x5f0254[_0x4209('0x9a')][_0x4209('0x31')](_0x2d7458[0x0],_0x2d7458[0x1],_0x2d7458[0x2],{'forceDefaultExecution':!0x0});const _0x24c754=_0x316d98(),{rowInsertionRanges:_0x724ade,columnInsertionRanges:_0x18e46c,insertionRanges:_0x1d9865,deletionRanges:_0x28999d,cells:_0x10c032}=_0x2f02af;_0x724ade[_0x4209('0x3e')]&&_0x4338f5['markMultiRangeInsertion'](_0x724ade,_0x4209('0x95'),{'tablePasteChainId':_0x24c754}),_0x18e46c[_0x4209('0x3e')]&&_0x4338f5[_0x4209('0x4b')](_0x18e46c,_0x4209('0x61'),{'tablePasteChainId':_0x24c754}),_0x1d9865[_0x4209('0x3e')]&&_0x4338f5[_0x4209('0x4b')](_0x1d9865,_0x4209('0x4d'),{'tablePasteChainId':_0x24c754,'skipNestingCheck':!0x0}),_0x28999d[_0x4209('0x3e')]&&_0x4338f5[_0x4209('0x3')](_0x28999d,_0x4209('0x4d'),{'tablePasteChainId':_0x24c754,'skipNestingCheck':!0x0});const _0xc10ca8=_0x4338f5[_0x4209('0x70')](_0x10c032[_0x4209('0x14')](({element:_0x137f22})=>_0x137f22),{'formatGroupId':_0x316d98()},[],_0x4209('0x77'),{'tablePasteChainId':_0x24c754});if(_0xc10ca8){const _0x5eb185=_0xc10ca8[_0x4209('0x37')](),_0x366a96=[];for(const {element:_0x4b6b01,attributes:_0x142be2}of _0x10c032){if(!_0x142be2)continue;const _0x786008=_0x5f0254['model'][_0x4209('0x28')](_0x4b6b01),_0x3d88ce=_0x5eb185[_0x4209('0x15')](_0x5f5707=>_0x5f5707['getRange']()[_0x4209('0x97')](_0x786008));_0x3d88ce&&_0x366a96[_0x4209('0x46')]([_0x3d88ce[_0x4209('0x64')],_0x142be2]);}_0x366a96[_0x4209('0x3e')]&&_0xc10ca8[_0x4209('0x41')](_0x4209('0x5f'),Object[_0x4209('0x57')](_0x366a96));}_0x2f02af=null;}));},{'priority':_0x499473[_0x4209('0x52')]+0xa}),_0x5f0254[_0x4209('0x6a')]['get'](_0x4209('0x1'))['on'](_0x4209('0x71'),(_0x4ef8fd,_0x450ceb)=>{const [_0x4c264e,_0x35511a,,_0x38e7b6]=_0x450ceb;if(!_0x2f02af)return;_0x4ef8fd[_0x4209('0x9f')]();const _0x36fe33=_0x4c264e[_0x4209('0x85')],_0x10f05b=_0x35511a,_0x15e893=ce(_0x36fe33),_0x276942=ce(_0x10f05b);_0x4ef8fd[_0x4209('0x80')]=_0x36fe33;let _0x7f9782=null,_0x2911fc=null;if(_0x276942||_0x15e893){if(_0x15e893&&!_0x276942){_0x38e7b6[_0x4209('0x83')](_0x36fe33[_0x4209('0x73')](0x0));for(const _0x3d1a63 of Array[_0x4209('0x34')](_0x10f05b[_0x4209('0x1b')]()))_0x38e7b6[_0x4209('0x1c')](_0x3d1a63,_0x36fe33,_0x4209('0x87'));const _0x771867=_0x2f02af[_0x4209('0x2b')][_0x4209('0x99')](_0x4c264e[_0x4209('0x6f')]),_0x461d84=_0x2f02af[_0x4209('0x65')][_0x4209('0x99')](_0x4c264e[_0x4209('0x8')]);_0x771867||_0x461d84||(_0x7f9782=_0x38e7b6[_0x4209('0x40')](_0x36fe33));}else _0x276942&&!_0x15e893&&(_0x2911fc=_0x38e7b6['createRangeIn'](_0x36fe33));}else{const _0x24e6f1=_0x38e7b6[_0x4209('0x33')](_0x4209('0x4e')),_0x411dda=_0x38e7b6[_0x4209('0x33')](_0x4209('0x4e'));_0x38e7b6[_0x4209('0x72')](_0x38e7b6[_0x4209('0x40')](_0x36fe33),_0x411dda),_0x38e7b6['insert'](_0x24e6f1,_0x36fe33,0x0);for(const _0xaadd85 of Array[_0x4209('0x34')](_0x10f05b[_0x4209('0x1b')]()))_0x38e7b6[_0x4209('0x1c')](_0xaadd85,_0x24e6f1,_0x4209('0x87'));_0x7f9782=_0x38e7b6['createRangeOn'](_0x24e6f1),_0x2911fc=_0x38e7b6[_0x4209('0x28')](_0x411dda);}const _0x9f1535=Array['from'](_0x10f05b[_0x4209('0x4a')]())[_0x4209('0x63')](([_0x58c888])=>le['includes'](_0x58c888));_0x2f02af[_0x4209('0x78')][_0x4209('0x46')]({'element':_0x36fe33,'attributes':_0x9f1535[_0x4209('0x3e')]?Object[_0x4209('0x57')](_0x9f1535):null}),_0x7f9782&&_0x2f02af[_0x4209('0x84')]['push'](_0x7f9782),_0x2911fc&&_0x2f02af[_0x4209('0x50')]['push'](_0x2911fc);},{'priority':_0x4209('0x52')}),_0x38bdd0['on']('insertColumns',(_0x531416,_0x4b88b9)=>{const [_0x3d6aec,_0x33fd0e={}]=_0x4b88b9;if(!_0x2f02af)return;const _0x2690c4=_0x33fd0e['at']||0x0,_0x23822a=_0x33fd0e['columns']||0x1;_0x2f02af[_0x4209('0x65')]=new Array(_0x23822a)['fill'](_0x2690c4)[_0x4209('0x14')]((_0x350aa1,_0x4143fc)=>_0x350aa1+_0x4143fc);for(const {cell:_0x5d3c7e}of _0x38bdd0[_0x4209('0x92')](_0x3d6aec,{'startColumn':_0x2690c4,'endColumn':_0x2690c4+_0x23822a-0x1}))_0x2f02af[_0x4209('0x16')][_0x4209('0x46')](_0x5f0254[_0x4209('0x9a')]['createRangeOn'](_0x5d3c7e));},{'priority':_0x4209('0x67')}),_0x38bdd0['on']('insertRows',(_0x5cca8f,_0x53a7a6)=>{const [_0x3c037,_0x3b4689={}]=_0x53a7a6;if(!_0x2f02af)return;const _0x4ba825=_0x3b4689['at']||0x0,_0x1a675d=_0x3b4689['rows']||0x1;_0x2f02af[_0x4209('0x2b')]=new Array(_0x1a675d)[_0x4209('0x2d')](_0x4ba825)[_0x4209('0x14')]((_0x4d1e1a,_0x557b27)=>_0x4d1e1a+_0x557b27);for(const {cell:_0x26e5a4}of _0x38bdd0[_0x4209('0x92')](_0x3c037,{'startRow':_0x4ba825,'endRow':_0x4ba825+_0x1a675d-0x1}))_0x2f02af[_0x4209('0x7e')]['push'](_0x5f0254[_0x4209('0x9a')][_0x4209('0x28')](_0x26e5a4));},{'priority':_0x4209('0x67')}),_0x4338f5[_0x4209('0x8e')][_0x4209('0x75')](_0xdd880c=>{if(_0xdd880c[_0x4209('0x44')]&&_0xdd880c[_0x4209('0x44')][_0x4209('0x26')]('tablePaste'))return _0xdd880c[_0x4209('0x23')]?{}:{'type':'insertion','content':_0x45a8f2(_0x5f0254[_0x4209('0x2f')],_0x4209('0x27'))};});const _0x312bba=()=>{};for(const _0x296e10 of[_0x4209('0x4d'),_0x4209('0x61'),_0x4209('0x95'),_0x4209('0x77')])_0x4338f5[_0x4209('0xa1')]['registerCustomCallback'](_0x4209('0x55'),_0x296e10,_0x4209('0x8a'),_0x312bba),_0x4338f5['_suggestionFactory'][_0x4209('0x1e')](_0x4209('0x45'),_0x296e10,'join',_0x312bba);_0x4338f5[_0x4209('0xa1')]['registerCustomCallback'](_0x4209('0xa4'),'tablePasteCell',_0x4209('0x8b'),_0x312bba),_0x4338f5[_0x4209('0xa1')][_0x4209('0x1e')](_0x4209('0xa4'),_0x4209('0x77'),_0x4209('0x0'),(_0x27a96b,_0x4a6924,_0x254f97)=>{const _0x2c702f=_0x27a96b[_0x4209('0x14')](_0x5dd025=>_0x5dd025[_0x4209('0x7c')]())[_0x4209('0x63')](_0x28fd86=>_0x28fd86),_0x23f948=new Map(_0x2c702f[_0x4209('0x14')](_0x5c6690=>[_0x5c6690,null]));if(_0x2f02af)for(const {element:_0x104f83,attributes:_0x3cb690}of _0x2f02af[_0x4209('0x78')])_0x3cb690&&_0x23f948[_0x4209('0x2')](_0x104f83,_0x3cb690);else{if(_0x254f97&&_0x254f97[_0x4209('0x5f')])for(const [_0x5550cf,_0x20aa17]of Object['entries'](_0x254f97[_0x4209('0x5f')])){const _0x461b78=_0x5f0254[_0x4209('0x9a')]['markers'][_0x4209('0x24')](_0x5550cf),_0x3002ef=_0x461b78?_0x461b78[_0x4209('0x42')]()[_0x4209('0x7c')]():null;_0x3002ef&&_0x23f948['set'](_0x3002ef,_0x20aa17);}}_0x5f0254[_0x4209('0x9a')][_0x4209('0x2a')](_0x446149=>{for(const [_0xa55a61,_0x44c9db]of _0x23f948)_0x446149[_0x4209('0x98')]({...ae,..._0x44c9db},_0xa55a61);});});const _0x5deecf=(_0x1c1c64,_0x1b6693)=>{_0x4338f5[_0x4209('0xa1')][_0x4209('0x1e')](_0x1c1c64,'tablePaste',_0x1b6693,(_0x21dd21,_0x24370a,_0x153ce4)=>{_0x5f0254[_0x4209('0x9a')][_0x4209('0x2a')](_0x46c027=>{const _0x6c2118=[];for(const _0x19dfc1 of _0x21dd21){const _0x275b31=_0x19dfc1[_0x4209('0x4')][_0x4209('0x88')];_0x275b31['is'](_0x4209('0x54'),'tableCellSuggestion')&&_0x6c2118[_0x4209('0x46')](_0x275b31);}_0x4338f5[_0x4209('0xa1')]['getSuggestionCallback'](_0x1c1c64,null,_0x1b6693)(_0x21dd21,_0x24370a,_0x153ce4);for(const _0x771add of _0x6c2118)'$graveyard'!=_0x771add[_0x4209('0x49')]['rootName']&&_0x46c027['unwrap'](_0x771add);});});};_0x5deecf(_0x4209('0x55'),'accept'),_0x5deecf(_0x4209('0x55'),_0x4209('0x8b')),_0x5deecf('deletion',_0x4209('0x0')),_0x5deecf(_0x4209('0x45'),_0x4209('0x8b')),_0x4338f5[_0x4209('0xa1')]['registerCustomCallback'](_0x4209('0x55'),_0x4209('0x95'),_0x4209('0x8b'),_0x593e03=>{const _0x174165=_0x593e03[_0x4209('0x14')](_0x4ed84d=>_0x4ed84d[_0x4209('0x7c')]()),_0x360758=_0x174165[0x0][_0x4209('0x89')](_0x4209('0x9d')),{minRow:_0x137810,maxRow:_0x5c58d8}=_0x2b8a38['_getCoordsForCells'](_0x174165);_0x38bdd0['removeRows'](_0x360758,{'at':_0x137810,'rows':_0x5c58d8-_0x137810+0x1});}),_0x4338f5[_0x4209('0xa1')][_0x4209('0x1e')](_0x4209('0x55'),_0x4209('0x61'),'discard',_0xa4a0b6=>{const _0x3a7315=_0xa4a0b6[_0x4209('0x14')](_0x3b8378=>_0x3b8378[_0x4209('0x7c')]()),_0x18bff0=_0x3a7315[0x0]['findAncestor'](_0x4209('0x9d')),{minColumn:_0x4514cb,maxColumn:_0x247379}=_0x2b8a38[_0x4209('0x68')](_0x3a7315);_0x38bdd0[_0x4209('0x7f')](_0x18bff0,{'at':_0x4514cb,'columns':_0x247379-_0x4514cb+0x1});});const _0x3a5848=(_0x30d3e4,_0x49bc46)=>{if(!_0x49bc46[_0x4209('0x44')]||!_0x49bc46[_0x4209('0x44')][_0x4209('0x26')](_0x4209('0x4d')))return;const _0x33196d=_0x49bc46['attributes']['tablePasteChainId'],_0x3d613e=_0x4338f5[_0x4209('0x91')]()[_0x4209('0x63')](_0x1cd059=>_0x1cd059['isInContent']&&_0x1cd059[_0x4209('0x8d')]&&_0x1cd059['attributes'][_0x4209('0x9')]==_0x33196d);_0x3d613e['length']&&_0x49bc46[_0x4209('0xa')]()['length']!=_0x3d613e['length']&&_0x3d613e[_0x4209('0xa3')]((_0x3eb345,_0x3fb8a0)=>(_0x3eb345[_0x4209('0x5c')]=_0x3fb8a0,_0x3fb8a0[_0x4209('0x23')]=_0x3eb345,_0x3fb8a0));};function _0x5a531a(_0x260ef6,_0x5b93c2=!0x0){const {id:_0x3d5ff8}=_0x4338f5[_0x4209('0x38')](_0x260ef6[_0x4209('0x47')]),_0x3cea68=[_0x4209('0x29'),'ck-suggestion-marker-insertion'],_0xfa4853=_0x4338f5[_0x4209('0x74')][_0x4209('0x99')](_0x260ef6[_0x4209('0x47')]);return _0xfa4853&&_0x3cea68[_0x4209('0x46')](_0x4209('0x90')),{'classes':_0x3cea68,'attributes':{'data-suggestion':_0x3d5ff8},'priority':_0xfa4853&&_0x5b93c2?0xbc2:0xbb8};}_0x4338f5['on'](_0x4209('0x13'),_0x3a5848,{'priority':_0x4209('0x52')}),_0x4338f5['on'](_0x4209('0x59'),_0x3a5848,{'priority':_0x4209('0x52')}),_0x5f0254[_0x4209('0x9a')][_0x4209('0x69')][_0x4209('0x48')](()=>{let _0x1f039f=!0x1;const _0x30de59=Array[_0x4209('0x34')](_0x5f0254['model'][_0x4209('0x69')][_0x4209('0x10')][_0x4209('0x4c')]());for(const {name:_0x2f20f0,data:_0x4e5198}of _0x30de59){const {group:_0x12c3b2,type:_0x580828,id:_0x551833}=_0x4338f5[_0x4209('0x38')](_0x2f20f0);if('suggestion'!=_0x12c3b2||_0x4209('0x45')!=_0x580828||_0x4e5198['oldRange'])continue;if(!_0x4338f5['hasSuggestion'](_0x551833))continue;const _0x3a84c9=_0x4338f5[_0x4209('0x3d')](_0x551833)[_0x4209('0x6b')](),_0x57a46e=_0x5f0254[_0x4209('0x6a')][_0x4209('0x24')]('Users')['me'];for(const _0x3af761 of _0x4338f5[_0x4209('0x91')]()){if(!_0x3af761[_0x4209('0x9e')]||_0x3af761[_0x4209('0x8f')]!=_0x57a46e)continue;if(_0x4209('0xa4')!=_0x3af761[_0x4209('0x3f')]||_0x4209('0x77')!=_0x3af761[_0x4209('0x44')])continue;if(_0x3af761[_0x4209('0x6b')]()[_0x4209('0x51')](_0x350997=>_0x3a84c9[_0x4209('0x9c')](_0x14b68b=>_0x14b68b[_0x4209('0x39')](_0x350997,!0x0))))for(const _0x2bfde0 of _0x3af761['getAllAdjacentSuggestions']())_0x2bfde0['isInContent']&&(_0x2bfde0[_0x4209('0x8b')](),_0x1f039f=!0x0);}}return _0x1f039f;}),_0x5f0254[_0x4209('0x9a')][_0x4209('0x69')][_0x4209('0x48')](_0x197ad2=>{const _0x1a52b7=_0x5f0254['commands'][_0x4209('0x24')](_0x4209('0x35'));if(!_0x1a52b7||!_0x1a52b7[_0x4209('0x53')][_0x4209('0x58')](_0x197ad2[_0x4209('0x82')]))return!0x1;let _0x438955=!0x1;const _0x15f30c=_0x5f0254[_0x4209('0x6a')][_0x4209('0x24')](_0x4209('0x6d'))['me'],_0x36f011=_0x5f0254['model'][_0x4209('0x69')][_0x4209('0x10')][_0x4209('0x7d')](),_0x22c9c6=Array[_0x4209('0x34')](_0x5f0254['model'][_0x4209('0x69')][_0x4209('0x10')]['getChangedMarkers']())[_0x4209('0x63')](({name:_0x497c98,data:_0x480449})=>{const {group:_0xd611a5,subType:_0x2ad14e,authorId:_0x29b0ce}=_0x4338f5[_0x4209('0x38')](_0x497c98);return'suggestion'==_0xd611a5&&'tablePaste'==_0x2ad14e&&_0x29b0ce==_0x15f30c['id']&&!_0x480449[_0x4209('0x6c')];});for(const _0x23b31e of _0x36f011){if(_0x4209('0x1c')!=_0x23b31e[_0x4209('0x3f')]||'tableCellSuggestion'!=_0x23b31e[_0x4209('0x64')]||0x1!=_0x23b31e['length'])continue;const _0x4037ed=_0x197ad2[_0x4209('0x43')](_0x23b31e[_0x4209('0x3c')],_0x23b31e['position'][_0x4209('0x1f')](0x1));if(!_0x22c9c6[_0x4209('0x15')](({data:_0x3ad403})=>_0x3ad403[_0x4209('0xa2')]['isEqual'](_0x4037ed)))for(const {name:_0x2a0fc4,data:_0x185ad0}of _0x22c9c6)if(_0x4037ed[_0x4209('0x39')](_0x185ad0[_0x4209('0xa2')])){_0x197ad2['updateMarker'](_0x2a0fc4,{'range':_0x4037ed}),_0x438955=!0x0;break;}}return _0x438955;}),_0x5f0254[_0x4209('0x9a')][_0x4209('0x69')][_0x4209('0x48')](_0x623af6=>{let _0x581237=!0x1;const _0x432c89=_0x5f0254[_0x4209('0x6a')][_0x4209('0x24')](_0x4209('0x6d'))['me'],_0x1152fe=_0x4338f5[_0x4209('0x91')]()['filter'](_0x31cf03=>_0x31cf03[_0x4209('0x9e')]&&_0x31cf03['author']==_0x432c89),_0x4708cd=new Set(),_0x250d8f=new Set();for(const _0x65e646 of _0x1152fe)if(_0x4209('0x4d')==_0x65e646['subType'])for(const _0x124c54 of _0x65e646[_0x4209('0x37')]()){const _0x142d22=_0x124c54[_0x4209('0x42')]()[_0x4209('0x7c')]();if(_0x142d22){if(_0x142d22['is'](_0x4209('0x54'),_0x4209('0x4e'))&&ce(_0x142d22)){_0x65e646['removeMarker'](_0x124c54[_0x4209('0x64')]),_0x4708cd[_0x4209('0x7')](_0x142d22),_0x581237=!0x0;const _0x1a380d=_0x142d22[_0x4209('0x96')],_0x54df7e=_0x142d22[_0x4209('0x22')],_0x56f5e0=_0x1a380d&&_0x1a380d['is'](_0x4209('0x54'),_0x4209('0x4e')),_0x1140e0=_0x54df7e&&_0x54df7e['is'](_0x4209('0x54'),'tableCellSuggestion');_0x56f5e0&&!_0x4708cd['has'](_0x1a380d)&&_0x250d8f[_0x4209('0x7')](_0x1a380d),_0x1140e0&&!_0x4708cd[_0x4209('0x58')](_0x54df7e)&&_0x250d8f['add'](_0x54df7e);}else _0x142d22['is']('element',_0x4209('0x30'))&&_0x142d22['isEmpty']&&(_0x65e646[_0x4209('0x66')](_0x124c54[_0x4209('0x64')]),_0x581237=!0x0);}}else{if(_0x4209('0x77')==_0x65e646[_0x4209('0x44')]){if(!_0x65e646[_0x4209('0x8d')]||!_0x65e646['attributes'][_0x4209('0x9')])continue;const _0x139e3a=_0x65e646['attributes'][_0x4209('0x5f')];if(_0x139e3a&&Object[_0x4209('0x81')](_0x139e3a)[_0x4209('0x3e')])continue;const _0x409fbc=_0x65e646[_0x4209('0x8d')]['tablePasteChainId'];let _0x3a845b=!0x0,_0x4d9f73=!0x0;for(const _0x3a9ada of _0x1152fe)if(_0x3a9ada[_0x4209('0x44')]&&_0x3a9ada[_0x4209('0x44')][_0x4209('0x26')](_0x4209('0x4d'))){if(!_0x3a9ada[_0x4209('0x8d')]['tablePasteChainId']){_0x4d9f73=!0x1;break;}if(_0x3a9ada['id']!=_0x65e646['id']&&_0x3a9ada['attributes'][_0x4209('0x9')]==_0x409fbc){_0x3a845b=!0x1;break;}}_0x4d9f73&&_0x3a845b&&(_0x65e646[_0x4209('0xc')](),_0x581237=!0x0);}}for(const _0x54308d of _0x4708cd)_0x623af6['remove'](_0x54308d);for(const _0x133852 of _0x250d8f)_0x623af6[_0x4209('0x25')](_0x133852);return _0x581237;}),_0x5f0254[_0x4209('0xd')][_0x4209('0x12')](_0x4209('0x5d'))[_0x4209('0x3b')]({'model':_0x4209('0x86'),'view':(_0x21705d,_0x3382de)=>_0x5a531a(_0x21705d),'converterPriority':_0x4209('0x52')}),_0x5f0254[_0x4209('0xd')][_0x4209('0x12')](_0x4209('0x9b'))[_0x4209('0x3b')]({'model':_0x4209('0x86'),'view':(_0x5b47be,_0x51f5f8)=>_0x51f5f8[_0x4209('0x5b')][_0x4209('0x94')]?_0x5a531a(_0x5b47be,!0x1):null,'converterPriority':'high'});const _0x1de52b=_0x5f0254[_0x4209('0x93')]['view'];this[_0x4209('0x32')](_0x1de52b['document'],'clipboardOutput',(_0x14ead5,_0x11c718)=>{const _0x4fdc1f=[];for(const _0x1001d7 of _0x1de52b['createRangeIn'](_0x11c718[_0x4209('0x7b')])[_0x4209('0x62')]())_0x1001d7['is'](_0x4209('0x54'),_0x4209('0x20'))&&_0x4fdc1f['push'](_0x1001d7);_0x1de52b['change'](_0x31198d=>{for(const _0x5e122d of _0x4fdc1f)_0x31198d[_0x4209('0x5e')](_0x31198d[_0x4209('0x40')](_0x5e122d),_0x31198d[_0x4209('0x36')](_0x5e122d)),_0x31198d[_0x4209('0x83')](_0x5e122d);});});}}function ce(_0x39f459){if(_0x39f459[_0x4209('0x21')])return!0x0;const _0x4246fc=_0x39f459['getChild'](0x0);return _0x4246fc['is'](_0x4209('0x54'),_0x4209('0x30'))&&_0x4246fc[_0x4209('0x21')];}function fe(_0x593ec6,_0x1ae641={},_0x1b9ff8){for(const {isAnchor:_0x9ad7ee,cellHeight:_0x4f28f9,cellWidth:_0x240ba4}of _0x1b9ff8[_0x4209('0x92')](_0x593ec6,{'includeAllSlots':!0x0,..._0x1ae641}))if(!_0x9ad7ee||0x1!=_0x4f28f9||0x1!=_0x240ba4)return!0x1;return!0x0;}
23
+ const _0x71c6=['getChildren','has','tablePasteRow','low','_createdBatches','markerToHighlight','tableCellBorderColor','schema','insertContent','markerAttributes','discard','showSuggestionHighlights','getContainedElement','isEmpty','_suggestionFactory','_splitMarkerName','accept','createTableWalker','includes','removeColumns','createRangeIn','tablePasteCell','plugins','conversion','some','removeMarkers','getRange','root','selection','getChangedMarkers','columnInsertionIndexes','length','column','getRanges','getChild','endColumn','markers','getColumnIndexes','differ','markMultiRangeInsertion','element','suggestionLoaded','view','for','keys','getAllAdjacentSuggestions','stop','remove','cell','suggestionUnloaded','documentSelection','Users','push','TrackChangesEditing','every','setAttributes','markMultiRangeDeletion','batch','insertColumns','change','get','locale','registerDescriptionCallback','first','editing','createElement','getRowIndexes','tablePasteChainId','$graveyard','getSelectionAffectedTableCells','_getCoordsForCells','insertionRanges','paragraph','getTableIfOnlyTableInContent','subType','end','map','_tablePostFixingSubtypes','add','containsRange','suggestion','tableCell','getSuggestions','newRange','insertRows','listenTo','set','next','table','row','registerCustomCallback','afterInit','TableUtils','removeMarker','activeMarkers','formatBlock','ck-suggestion-marker','clipboardOutput','reduce','unwrap','value','join','rowInsertionRanges','suggestion:formatBlock:tablePasteCell','registerPostFixer','document','getAttributes','getMarkers','isEqual','elementToElement','from','insertion','deletion','startsWith','nodeAfter','oldRange','options','name','position','*Replace\x20table\x20cells*','hasSuggestion','tableCellSuggestion','_descriptionFactory','register','tablePasteColumn','find','markerName','isInContent','ck-suggestion-marker--active','getColumns','author','editor','filter','dataDowncast','model','markMultiRangeBlockFormat','commands','forceDefaultExecution','last','createRangeOn','insert','nextSibling','tableCellVerticalAlignment','fromEntries','removeRows','findAncestor','previous','type','columnInsertionRanges','rowInsertionIndexes','high','move','endRow','tablePaste','attributes','entries','cells','_replaceTableSlotCell','deletionRanges'];(function(_0x4b4bb2,_0x71c65c){const _0x2cca3d=function(_0x5793a2){while(--_0x5793a2){_0x4b4bb2['push'](_0x4b4bb2['shift']());}};_0x2cca3d(++_0x71c65c);}(_0x71c6,0x1a0));const _0x2cca=function(_0x4b4bb2,_0x71c65c){_0x4b4bb2=_0x4b4bb2-0x0;let _0x2cca3d=_0x71c6[_0x4b4bb2];return _0x2cca3d;};import{getTranslation as _0x5e8ed6}from'../utils/common-translations';import{Plugin as _0x4256b1}from'ckeditor5/src/core';import{uid as _0x235762,priorities as _0x1a16dd}from'ckeditor5/src/utils';import _0x58f7e0 from'./table';const le=['tableCellBorderWidth',_0x2cca('0x43'),'tableCellBorderStyle','tableCellHorizontalAlignment',_0x2cca('0x2c'),'tableCellBackgroundColor','tableCellPadding'],ae=Object['fromEntries'](le[_0x2cca('0x89')](_0x39c83=>[_0x39c83,null]));export default class pt extends _0x4256b1{static get['requires'](){return[_0x58f7e0];}[_0x2cca('0x98')](){const _0x14ab16=this[_0x2cca('0x21')];if(!_0x14ab16[_0x2cca('0x53')][_0x2cca('0x3e')]('TableClipboard'))return;const _0x5dd593=_0x14ab16['plugins']['get'](_0x2cca('0x72')),_0x2817a7=_0x14ab16[_0x2cca('0x53')]['get'](_0x2cca('0x99')),_0x20a9ee=_0x14ab16[_0x2cca('0x53')][_0x2cca('0x79')](_0x58f7e0),_0x2416b1=_0x14ab16[_0x2cca('0x53')][_0x2cca('0x79')]('TableClipboard');_0x20a9ee[_0x2cca('0x8a')][_0x2cca('0x71')](_0x2cca('0x3f'),_0x2cca('0x1a')),_0x14ab16[_0x2cca('0x24')][_0x2cca('0x44')][_0x2cca('0x19')](_0x2cca('0x17'),{'allowIn':_0x2cca('0x8e'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x14ab16[_0x2cca('0x54')][_0x2cca('0xb')]({'model':_0x2cca('0x17'),'view':'suggestion-td'});let _0x26319c=null;_0x14ab16[_0x2cca('0x24')]['on'](_0x2cca('0x45'),(_0x5dd413,_0x305c58)=>{const [_0xcae8aa,_0x480192]=_0x305c58,_0x52423d=_0x305c58[_0x305c58[_0x2cca('0x5c')]-0x1];_0x52423d&&_0x52423d[_0x2cca('0x27')]||_0x5dd593['_isForcedDefaultExecutionBlock']||this['editor'][_0x2cca('0x26')][_0x2cca('0x79')]('trackChanges')[_0x2cca('0x2')]&&function(_0x5e8ccc,_0x4c6453,_0x241646,_0x4a83c9,_0x30731f){if(_0x4c6453&&!_0x4c6453['is'](_0x2cca('0x6f')))return!0x1;const _0x28329d=_0x30731f[_0x2cca('0x86')](_0x5e8ccc,_0x241646);if(!_0x28329d||!fe(_0x28329d,void 0x0,_0x4a83c9))return!0x1;const _0x124553=_0x4a83c9[_0x2cca('0x82')](_0x241646[_0x2cca('0x7')][_0x2cca('0x59')]);if(!_0x124553[_0x2cca('0x5c')])return!0x1;const _0x1ce07d=_0x124553[0x0][_0x2cca('0x2f')](_0x2cca('0x95')),_0x2b03ba=_0x4a83c9[_0x2cca('0x7f')](_0x124553),_0x25064d=_0x4a83c9[_0x2cca('0x62')](_0x124553),_0x433654={'startRow':_0x2b03ba[_0x2cca('0x7c')],'endRow':_0x2b03ba[_0x2cca('0x28')],'startColumn':_0x25064d['first'],'endColumn':_0x25064d[_0x2cca('0x28')]};return 0x1==_0x124553['length']&&(_0x433654[_0x2cca('0x36')]+=_0x4a83c9['getRows'](_0x28329d)-0x1,_0x433654[_0x2cca('0x60')]+=_0x4a83c9[_0x2cca('0x1f')](_0x28329d)-0x1),fe(_0x1ce07d,_0x433654,_0x4a83c9);}(_0xcae8aa,_0x480192,_0x14ab16[_0x2cca('0x24')],_0x2817a7,_0x2416b1)&&(_0x5dd413[_0x2cca('0x6b')](),_0x26319c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x14ab16[_0x2cca('0x24')]['change'](()=>{_0x14ab16['model']['insertContent'](_0x305c58[0x0],_0x305c58[0x1],_0x305c58[0x2],{'forceDefaultExecution':!0x0});const _0x1e44fc=_0x235762(),{rowInsertionRanges:_0xacf4f5,columnInsertionRanges:_0x242805,insertionRanges:_0x2325f2,deletionRanges:_0x43afec,cells:_0x20dafa}=_0x26319c;_0xacf4f5[_0x2cca('0x5c')]&&_0x5dd593[_0x2cca('0x64')](_0xacf4f5,_0x2cca('0x3f'),{'tablePasteChainId':_0x1e44fc}),_0x242805['length']&&_0x5dd593[_0x2cca('0x64')](_0x242805,_0x2cca('0x1a'),{'tablePasteChainId':_0x1e44fc}),_0x2325f2[_0x2cca('0x5c')]&&_0x5dd593[_0x2cca('0x64')](_0x2325f2,_0x2cca('0x37'),{'tablePasteChainId':_0x1e44fc,'skipNestingCheck':!0x0}),_0x43afec[_0x2cca('0x5c')]&&_0x5dd593[_0x2cca('0x75')](_0x43afec,_0x2cca('0x37'),{'tablePasteChainId':_0x1e44fc,'skipNestingCheck':!0x0});const _0x3aa859=_0x5dd593[_0x2cca('0x25')](_0x20dafa['map'](({element:_0x5355c8})=>_0x5355c8),{'formatGroupId':_0x235762()},[],_0x2cca('0x52'),{'tablePasteChainId':_0x1e44fc});if(_0x3aa859){const _0x3358fc=_0x3aa859[_0x2cca('0x9')](),_0xf3b906=[];for(const {element:_0x21deed,attributes:_0x4b0c71}of _0x20dafa){if(!_0x4b0c71)continue;const _0x52e31b=_0x14ab16['model'][_0x2cca('0x29')](_0x21deed),_0x77b342=_0x3358fc[_0x2cca('0x1b')](_0x209b27=>_0x209b27['getRange']()[_0x2cca('0xa')](_0x52e31b));_0x77b342&&_0xf3b906['push']([_0x77b342[_0x2cca('0x13')],_0x4b0c71]);}_0xf3b906[_0x2cca('0x5c')]&&_0x3aa859['setAttribute'](_0x2cca('0x46'),Object[_0x2cca('0x2d')](_0xf3b906));}_0x26319c=null;}));},{'priority':_0x1a16dd['high']+0xa}),_0x14ab16[_0x2cca('0x53')]['get']('TableClipboard')['on'](_0x2cca('0x3b'),(_0xa69d,_0x5d0c1f)=>{const [_0x1018aa,_0x534af5,,_0x1f1707]=_0x5d0c1f;if(!_0x26319c)return;_0xa69d[_0x2cca('0x6b')]();const _0xa4e658=_0x1018aa[_0x2cca('0x6d')],_0xdbe847=_0x534af5,_0x3fa720=ce(_0xa4e658),_0x57f7a2=ce(_0xdbe847);_0xa69d['return']=_0xa4e658;let _0x20e8a9=null,_0x5874ca=null;if(_0x57f7a2||_0x3fa720){if(_0x3fa720&&!_0x57f7a2){_0x1f1707[_0x2cca('0x6c')](_0xa4e658[_0x2cca('0x5f')](0x0));for(const _0x251e93 of Array[_0x2cca('0xc')](_0xdbe847[_0x2cca('0x3d')]()))_0x1f1707[_0x2cca('0x2a')](_0x251e93,_0xa4e658,_0x2cca('0x88'));const _0x4cab78=_0x26319c[_0x2cca('0x33')]['includes'](_0x1018aa[_0x2cca('0x96')]),_0x2b802d=_0x26319c[_0x2cca('0x5b')]['includes'](_0x1018aa[_0x2cca('0x5d')]);_0x4cab78||_0x2b802d||(_0x20e8a9=_0x1f1707[_0x2cca('0x51')](_0xa4e658));}else _0x57f7a2&&!_0x3fa720&&(_0x5874ca=_0x1f1707[_0x2cca('0x51')](_0xa4e658));}else{const _0x1086fe=_0x1f1707[_0x2cca('0x7e')](_0x2cca('0x17')),_0x40c217=_0x1f1707[_0x2cca('0x7e')](_0x2cca('0x17'));_0x1f1707['wrap'](_0x1f1707['createRangeIn'](_0xa4e658),_0x40c217),_0x1f1707['insert'](_0x1086fe,_0xa4e658,0x0);for(const _0x40a09d of Array[_0x2cca('0xc')](_0xdbe847[_0x2cca('0x3d')]()))_0x1f1707[_0x2cca('0x2a')](_0x40a09d,_0x1086fe,_0x2cca('0x88'));_0x20e8a9=_0x1f1707[_0x2cca('0x29')](_0x1086fe),_0x5874ca=_0x1f1707[_0x2cca('0x29')](_0x40c217);}const _0x13f665=Array[_0x2cca('0xc')](_0xdbe847[_0x2cca('0x8')]())[_0x2cca('0x22')](([_0x221f68])=>le['includes'](_0x221f68));_0x26319c[_0x2cca('0x3a')][_0x2cca('0x71')]({'element':_0xa4e658,'attributes':_0x13f665['length']?Object['fromEntries'](_0x13f665):null}),_0x20e8a9&&_0x26319c[_0x2cca('0x84')][_0x2cca('0x71')](_0x20e8a9),_0x5874ca&&_0x26319c[_0x2cca('0x3c')][_0x2cca('0x71')](_0x5874ca);},{'priority':_0x2cca('0x34')}),_0x2817a7['on'](_0x2cca('0x77'),(_0x351d5f,_0x36160b)=>{const [_0x23f38b,_0xc0209b={}]=_0x36160b;if(!_0x26319c)return;const _0x394ade=_0xc0209b['at']||0x0,_0x5a5764=_0xc0209b['columns']||0x1;_0x26319c['columnInsertionIndexes']=new Array(_0x5a5764)['fill'](_0x394ade)[_0x2cca('0x89')]((_0x1a9cce,_0x5dd2ba)=>_0x1a9cce+_0x5dd2ba);for(const {cell:_0x17a929}of _0x2817a7[_0x2cca('0x4e')](_0x23f38b,{'startColumn':_0x394ade,'endColumn':_0x394ade+_0x5a5764-0x1}))_0x26319c[_0x2cca('0x32')][_0x2cca('0x71')](_0x14ab16[_0x2cca('0x24')][_0x2cca('0x29')](_0x17a929));},{'priority':_0x2cca('0x40')}),_0x2817a7['on'](_0x2cca('0x91'),(_0x196612,_0x4601cc)=>{const [_0x43b498,_0x307c24={}]=_0x4601cc;if(!_0x26319c)return;const _0x560b90=_0x307c24['at']||0x0,_0x2f479d=_0x307c24['rows']||0x1;_0x26319c[_0x2cca('0x33')]=new Array(_0x2f479d)['fill'](_0x560b90)[_0x2cca('0x89')]((_0x54b9da,_0x458825)=>_0x54b9da+_0x458825);for(const {cell:_0x358c07}of _0x2817a7['createTableWalker'](_0x43b498,{'startRow':_0x560b90,'endRow':_0x560b90+_0x2f479d-0x1}))_0x26319c[_0x2cca('0x4')][_0x2cca('0x71')](_0x14ab16[_0x2cca('0x24')][_0x2cca('0x29')](_0x358c07));},{'priority':'low'}),_0x5dd593[_0x2cca('0x18')][_0x2cca('0x7b')](_0x349a8e=>{if(_0x349a8e['subType']&&_0x349a8e['subType'][_0x2cca('0xf')](_0x2cca('0x37')))return _0x349a8e[_0x2cca('0x30')]?{}:{'type':_0x2cca('0xd'),'content':_0x5e8ed6(_0x14ab16[_0x2cca('0x7a')],_0x2cca('0x15'))};});const _0x43855f=()=>{};for(const _0x51f0f6 of[_0x2cca('0x37'),_0x2cca('0x1a'),_0x2cca('0x3f'),_0x2cca('0x52')])_0x5dd593[_0x2cca('0x4b')][_0x2cca('0x97')]('insertion',_0x51f0f6,_0x2cca('0x3'),_0x43855f),_0x5dd593[_0x2cca('0x4b')]['registerCustomCallback'](_0x2cca('0xe'),_0x51f0f6,'join',_0x43855f);_0x5dd593['_suggestionFactory'][_0x2cca('0x97')](_0x2cca('0x9c'),_0x2cca('0x52'),'discard',_0x43855f),_0x5dd593['_suggestionFactory'][_0x2cca('0x97')](_0x2cca('0x9c'),_0x2cca('0x52'),_0x2cca('0x4d'),(_0xb2e020,_0x2e42de,_0x23e8a9)=>{const _0x2cf659=_0xb2e020[_0x2cca('0x89')](_0x409798=>_0x409798[_0x2cca('0x49')]())[_0x2cca('0x22')](_0x43b858=>_0x43b858),_0x197f8c=new Map(_0x2cf659[_0x2cca('0x89')](_0x39300f=>[_0x39300f,null]));if(_0x26319c)for(const {element:_0x2c84f2,attributes:_0x361870}of _0x26319c[_0x2cca('0x3a')])_0x361870&&_0x197f8c[_0x2cca('0x93')](_0x2c84f2,_0x361870);else{if(_0x23e8a9&&_0x23e8a9['markerAttributes'])for(const [_0x1f4378,_0x4a0128]of Object[_0x2cca('0x39')](_0x23e8a9[_0x2cca('0x46')])){const _0xd1e4e=_0x14ab16[_0x2cca('0x24')][_0x2cca('0x61')]['get'](_0x1f4378),_0x196fa6=_0xd1e4e?_0xd1e4e[_0x2cca('0x57')]()[_0x2cca('0x49')]():null;_0x196fa6&&_0x197f8c[_0x2cca('0x93')](_0x196fa6,_0x4a0128);}}_0x14ab16['model'][_0x2cca('0x78')](_0x3546db=>{for(const [_0x33b6b3,_0x4d6c09]of _0x197f8c)_0x3546db[_0x2cca('0x74')]({...ae,..._0x4d6c09},_0x33b6b3);});});const _0xd06ea8=(_0x3aeb04,_0x3ca02f)=>{_0x5dd593['_suggestionFactory'][_0x2cca('0x97')](_0x3aeb04,_0x2cca('0x37'),_0x3ca02f,(_0x1657ce,_0x40036d,_0x72c4d7)=>{_0x14ab16[_0x2cca('0x24')]['change'](_0x2d6789=>{const _0x53d35b=[];for(const _0x1d4f5c of _0x1657ce){const _0x7ede1=_0x1d4f5c['start'][_0x2cca('0x10')];_0x7ede1['is'](_0x2cca('0x65'),'tableCellSuggestion')&&_0x53d35b[_0x2cca('0x71')](_0x7ede1);}_0x5dd593[_0x2cca('0x4b')]['getSuggestionCallback'](_0x3aeb04,null,_0x3ca02f)(_0x1657ce,_0x40036d,_0x72c4d7);for(const _0x492a58 of _0x53d35b)_0x2cca('0x81')!=_0x492a58[_0x2cca('0x58')]['rootName']&&_0x2d6789['unwrap'](_0x492a58);});});};_0xd06ea8('insertion',_0x2cca('0x4d')),_0xd06ea8(_0x2cca('0xd'),_0x2cca('0x47')),_0xd06ea8(_0x2cca('0xe'),_0x2cca('0x4d')),_0xd06ea8(_0x2cca('0xe'),'discard'),_0x5dd593[_0x2cca('0x4b')][_0x2cca('0x97')]('insertion',_0x2cca('0x3f'),_0x2cca('0x47'),_0x22752b=>{const _0x26dd18=_0x22752b[_0x2cca('0x89')](_0x29ede8=>_0x29ede8[_0x2cca('0x49')]()),_0x3a232c=_0x26dd18[0x0][_0x2cca('0x2f')](_0x2cca('0x95')),{minRow:_0x31e6e5,maxRow:_0x1e1f48}=_0x20a9ee[_0x2cca('0x83')](_0x26dd18);_0x2817a7[_0x2cca('0x2e')](_0x3a232c,{'at':_0x31e6e5,'rows':_0x1e1f48-_0x31e6e5+0x1});}),_0x5dd593[_0x2cca('0x4b')]['registerCustomCallback'](_0x2cca('0xd'),_0x2cca('0x1a'),_0x2cca('0x47'),_0x7c5758=>{const _0x24c87d=_0x7c5758[_0x2cca('0x89')](_0x13f264=>_0x13f264[_0x2cca('0x49')]()),_0x2c0686=_0x24c87d[0x0]['findAncestor'](_0x2cca('0x95')),{minColumn:_0x265c4a,maxColumn:_0x3e554a}=_0x20a9ee[_0x2cca('0x83')](_0x24c87d);_0x2817a7[_0x2cca('0x50')](_0x2c0686,{'at':_0x265c4a,'columns':_0x3e554a-_0x265c4a+0x1});});const _0x40d4f1=(_0x18062d,_0x258635)=>{if(!_0x258635[_0x2cca('0x87')]||!_0x258635[_0x2cca('0x87')]['startsWith'](_0x2cca('0x37')))return;const _0x20c337=_0x258635[_0x2cca('0x38')]['tablePasteChainId'],_0x12c18e=_0x5dd593[_0x2cca('0x8f')]()[_0x2cca('0x22')](_0x1c42c9=>_0x1c42c9[_0x2cca('0x1d')]&&_0x1c42c9[_0x2cca('0x38')]&&_0x1c42c9[_0x2cca('0x38')][_0x2cca('0x80')]==_0x20c337);_0x12c18e[_0x2cca('0x5c')]&&_0x258635[_0x2cca('0x6a')]()['length']!=_0x12c18e['length']&&_0x12c18e[_0x2cca('0x0')]((_0x2dd034,_0x5370cc)=>(_0x2dd034[_0x2cca('0x94')]=_0x5370cc,_0x5370cc['previous']=_0x2dd034,_0x5370cc));};function _0x5df43d(_0x332c37,_0x2e01ca=!0x0){const {id:_0x4ebeca}=_0x5dd593[_0x2cca('0x4c')](_0x332c37[_0x2cca('0x1c')]),_0x36aa23=[_0x2cca('0x9d'),'ck-suggestion-marker-insertion'],_0x564af2=_0x5dd593[_0x2cca('0x9b')][_0x2cca('0x4f')](_0x332c37['markerName']);return _0x564af2&&_0x36aa23[_0x2cca('0x71')](_0x2cca('0x1e')),{'classes':_0x36aa23,'attributes':{'data-suggestion':_0x4ebeca},'priority':_0x564af2&&_0x2e01ca?0xbc2:0xbb8};}_0x5dd593['on'](_0x2cca('0x66'),_0x40d4f1,{'priority':_0x2cca('0x34')}),_0x5dd593['on'](_0x2cca('0x6e'),_0x40d4f1,{'priority':_0x2cca('0x34')}),_0x14ab16[_0x2cca('0x24')][_0x2cca('0x7')]['registerPostFixer'](()=>{let _0x3e831b=!0x1;const _0x22dd1d=Array[_0x2cca('0xc')](_0x14ab16[_0x2cca('0x24')]['document'][_0x2cca('0x63')][_0x2cca('0x5a')]());for(const {name:_0x301838,data:_0x24d0ab}of _0x22dd1d){const {group:_0x2c6ffa,type:_0x1b6336,id:_0xd8b0ef}=_0x5dd593[_0x2cca('0x4c')](_0x301838);if('suggestion'!=_0x2c6ffa||_0x2cca('0xe')!=_0x1b6336||_0x24d0ab[_0x2cca('0x11')])continue;if(!_0x5dd593[_0x2cca('0x16')](_0xd8b0ef))continue;const _0x143ce8=_0x5dd593['getSuggestion'](_0xd8b0ef)[_0x2cca('0x5e')](),_0x12a607=_0x14ab16[_0x2cca('0x53')][_0x2cca('0x79')](_0x2cca('0x70'))['me'];for(const _0x308051 of _0x5dd593[_0x2cca('0x8f')]()){if(!_0x308051[_0x2cca('0x1d')]||_0x308051['author']!=_0x12a607)continue;if(_0x2cca('0x9c')!=_0x308051['type']||_0x2cca('0x52')!=_0x308051['subType'])continue;if(_0x308051[_0x2cca('0x5e')]()[_0x2cca('0x73')](_0x1e3e6c=>_0x143ce8[_0x2cca('0x55')](_0x2b2a51=>_0x2b2a51[_0x2cca('0x8c')](_0x1e3e6c,!0x0))))for(const _0x3a5dc5 of _0x308051[_0x2cca('0x6a')]())_0x3a5dc5[_0x2cca('0x1d')]&&(_0x3a5dc5[_0x2cca('0x47')](),_0x3e831b=!0x0);}}return _0x3e831b;}),_0x14ab16['model'][_0x2cca('0x7')][_0x2cca('0x6')](_0xbc79c5=>{const _0x26da86=_0x14ab16['commands'][_0x2cca('0x79')]('redo');if(!_0x26da86||!_0x26da86[_0x2cca('0x41')]['has'](_0xbc79c5[_0x2cca('0x76')]))return!0x1;let _0x1c42cc=!0x1;const _0x2cf7c8=_0x14ab16['plugins']['get']('Users')['me'],_0x3c8add=_0x14ab16[_0x2cca('0x24')][_0x2cca('0x7')][_0x2cca('0x63')]['getChanges'](),_0x4b58e5=Array[_0x2cca('0xc')](_0x14ab16[_0x2cca('0x24')][_0x2cca('0x7')]['differ'][_0x2cca('0x5a')]())['filter'](({name:_0x5d288b,data:_0xf0f4e})=>{const {group:_0xe1d5ce,subType:_0x30cd31,authorId:_0x53a167}=_0x5dd593[_0x2cca('0x4c')](_0x5d288b);return _0x2cca('0x8d')==_0xe1d5ce&&_0x2cca('0x37')==_0x30cd31&&_0x53a167==_0x2cf7c8['id']&&!_0xf0f4e[_0x2cca('0x11')];});for(const _0x4c7d56 of _0x3c8add){if(_0x2cca('0x2a')!=_0x4c7d56[_0x2cca('0x31')]||_0x2cca('0x17')!=_0x4c7d56[_0x2cca('0x13')]||0x1!=_0x4c7d56[_0x2cca('0x5c')])continue;const _0xccb815=_0xbc79c5['createRange'](_0x4c7d56['position'],_0x4c7d56[_0x2cca('0x14')]['getShiftedBy'](0x1));if(!_0x4b58e5[_0x2cca('0x1b')](({data:_0x2a7b7d})=>_0x2a7b7d[_0x2cca('0x90')]['isEqual'](_0xccb815)))for(const {name:_0x9cc94a,data:_0x443f67}of _0x4b58e5)if(_0xccb815['containsRange'](_0x443f67[_0x2cca('0x90')])){_0xbc79c5['updateMarker'](_0x9cc94a,{'range':_0xccb815}),_0x1c42cc=!0x0;break;}}return _0x1c42cc;}),_0x14ab16[_0x2cca('0x24')][_0x2cca('0x7')][_0x2cca('0x6')](_0x522923=>{let _0x390736=!0x1;const _0xf95f3e=_0x14ab16[_0x2cca('0x53')][_0x2cca('0x79')]('Users')['me'],_0x285bae=_0x5dd593[_0x2cca('0x8f')]()[_0x2cca('0x22')](_0x4d0d9f=>_0x4d0d9f[_0x2cca('0x1d')]&&_0x4d0d9f[_0x2cca('0x20')]==_0xf95f3e),_0x3f3f8a=new Set(),_0x155b52=new Set();for(const _0x3156fc of _0x285bae)if('tablePaste'==_0x3156fc[_0x2cca('0x87')])for(const _0x53abc5 of _0x3156fc[_0x2cca('0x9')]()){const _0x2bb0a=_0x53abc5[_0x2cca('0x57')]()[_0x2cca('0x49')]();if(_0x2bb0a){if(_0x2bb0a['is'](_0x2cca('0x65'),'tableCellSuggestion')&&ce(_0x2bb0a)){_0x3156fc['removeMarker'](_0x53abc5['name']),_0x3f3f8a[_0x2cca('0x8b')](_0x2bb0a),_0x390736=!0x0;const _0x15e109=_0x2bb0a[_0x2cca('0x2b')],_0x48df0f=_0x2bb0a['previousSibling'],_0x26394c=_0x15e109&&_0x15e109['is'](_0x2cca('0x65'),_0x2cca('0x17')),_0x398df4=_0x48df0f&&_0x48df0f['is']('element','tableCellSuggestion');_0x26394c&&!_0x3f3f8a[_0x2cca('0x3e')](_0x15e109)&&_0x155b52['add'](_0x15e109),_0x398df4&&!_0x3f3f8a['has'](_0x48df0f)&&_0x155b52[_0x2cca('0x8b')](_0x48df0f);}else _0x2bb0a['is']('element',_0x2cca('0x85'))&&_0x2bb0a[_0x2cca('0x4a')]&&(_0x3156fc[_0x2cca('0x9a')](_0x53abc5[_0x2cca('0x13')]),_0x390736=!0x0);}}else{if('tablePasteCell'==_0x3156fc['subType']){if(!_0x3156fc[_0x2cca('0x38')]||!_0x3156fc['attributes'][_0x2cca('0x80')])continue;const _0x534f6e=_0x3156fc['attributes']['markerAttributes'];if(_0x534f6e&&Object[_0x2cca('0x69')](_0x534f6e)[_0x2cca('0x5c')])continue;const _0x4ef22f=_0x3156fc[_0x2cca('0x38')]['tablePasteChainId'];let _0x3e5dfb=!0x0,_0x681467=!0x0;for(const _0x1ac1a6 of _0x285bae)if(_0x1ac1a6[_0x2cca('0x87')]&&_0x1ac1a6['subType']['startsWith'](_0x2cca('0x37'))){if(!_0x1ac1a6[_0x2cca('0x38')][_0x2cca('0x80')]){_0x681467=!0x1;break;}if(_0x1ac1a6['id']!=_0x3156fc['id']&&_0x1ac1a6['attributes'][_0x2cca('0x80')]==_0x4ef22f){_0x3e5dfb=!0x1;break;}}_0x681467&&_0x3e5dfb&&(_0x3156fc[_0x2cca('0x56')](),_0x390736=!0x0);}}for(const _0x402466 of _0x3f3f8a)_0x522923['remove'](_0x402466);for(const _0x2ba257 of _0x155b52)_0x522923[_0x2cca('0x1')](_0x2ba257);return _0x390736;}),_0x14ab16[_0x2cca('0x54')]['for']('editingDowncast')[_0x2cca('0x42')]({'model':_0x2cca('0x5'),'view':(_0x3defbd,_0x2d0ae7)=>_0x5df43d(_0x3defbd),'converterPriority':_0x2cca('0x34')}),_0x14ab16['conversion'][_0x2cca('0x68')](_0x2cca('0x23'))['markerToHighlight']({'model':_0x2cca('0x5'),'view':(_0x464948,_0x138874)=>_0x138874[_0x2cca('0x12')][_0x2cca('0x48')]?_0x5df43d(_0x464948,!0x1):null,'converterPriority':'high'});const _0x2b7f4f=_0x14ab16[_0x2cca('0x7d')][_0x2cca('0x67')];this[_0x2cca('0x92')](_0x2b7f4f[_0x2cca('0x7')],_0x2cca('0x9e'),(_0x4c9418,_0x1a5367)=>{const _0x34b6ad=[];for(const _0x252e0b of _0x2b7f4f[_0x2cca('0x51')](_0x1a5367['content'])['getItems']())_0x252e0b['is'](_0x2cca('0x65'),'suggestion-td')&&_0x34b6ad[_0x2cca('0x71')](_0x252e0b);_0x2b7f4f[_0x2cca('0x78')](_0x314849=>{for(const _0x1bc8f5 of _0x34b6ad)_0x314849[_0x2cca('0x35')](_0x314849[_0x2cca('0x51')](_0x1bc8f5),_0x314849['createPositionBefore'](_0x1bc8f5)),_0x314849[_0x2cca('0x6c')](_0x1bc8f5);});});}}function ce(_0x5245c6){if(_0x5245c6[_0x2cca('0x4a')])return!0x0;const _0x370e17=_0x5245c6['getChild'](0x0);return _0x370e17['is'](_0x2cca('0x65'),_0x2cca('0x85'))&&_0x370e17['isEmpty'];}function fe(_0x267355,_0x1ba51e={},_0x333b7c){for(const {isAnchor:_0x338207,cellHeight:_0x5287e4,cellWidth:_0x20286f}of _0x333b7c[_0x2cca('0x4e')](_0x267355,{'includeAllSlots':!0x0,..._0x1ba51e}))if(!_0x338207||0x1!=_0x5287e4||0x1!=_0x20286f)return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x165b=['registerDescriptionCallback','*Format:*\x20resize\x20table','getSuggestions','model','Users','plugins','getSelectedElement','registerCustomCallback','getAttribute','getTableColumnsWidths','has','author','formatBlock','getSuggestionCallback','TrackChangesEditing','change','resizeTable','handleSuggestionDescription','handleResizeTableWidthCommand','enableCommand','subType','locale','_suggestionFactory','selection','markBlockFormat','TableColumnResizeEditing','editor','document','afterInit','tableWidth','resizeTableWidth','resizeColumnWidths','discard','getColumnGroupElement','get','bind','data','formatGroupId','commandParams','format','getContainedElement','columnWidths'];(function(_0x423058,_0x165baf){const _0x4afd2e=function(_0x1def6b){while(--_0x1def6b){_0x423058['push'](_0x423058['shift']());}};_0x4afd2e(++_0x165baf);}(_0x165b,0x17a));const _0x4afd=function(_0x423058,_0x165baf){_0x423058=_0x423058-0x0;let _0x4afd2e=_0x165b[_0x423058];return _0x4afd2e;};import{Plugin as _0x1afb17}from'ckeditor5/src/core';import{getTranslation as _0x406a0b}from'../utils/common-translations';export default class kt extends _0x1afb17{[_0x4afd('0x1c')](){if(!this['editor'][_0x4afd('0x5')][_0x4afd('0xa')](_0x4afd('0x19')))return;const _0x1856b6=this[_0x4afd('0x1a')]['plugins'][_0x4afd('0x22')](_0x4afd('0xe'));_0x1856b6[_0x4afd('0x13')](_0x4afd('0x1e'),this[_0x4afd('0x12')]['bind'](this)),_0x1856b6['enableCommand'](_0x4afd('0x1f'),this['handleResizeTableWidthCommand'][_0x4afd('0x23')](this)),_0x1856b6[_0x4afd('0x16')][_0x4afd('0x7')](_0x4afd('0xc'),_0x4afd('0x10'),'accept',_0x1856b6[_0x4afd('0x16')][_0x4afd('0xd')]('formatBlock',null,_0x4afd('0x20'))),_0x1856b6['_suggestionFactory'][_0x4afd('0x7')]('formatBlock',_0x4afd('0x10'),'discard',_0x1856b6[_0x4afd('0x16')][_0x4afd('0xd')]('formatBlock',null,'accept')),_0x1856b6['_descriptionFactory'][_0x4afd('0x0')](this['handleSuggestionDescription'][_0x4afd('0x23')](this));}[_0x4afd('0x12')](_0x2bbed0,_0x28c5ce){const _0x3f5afd=this[_0x4afd('0x1a')]['plugins'][_0x4afd('0x22')]('TrackChangesEditing'),_0x1d3ad1=this[_0x4afd('0x1a')]['plugins'][_0x4afd('0x22')]('TableColumnResizeEditing'),_0x1c4f46=_0x28c5ce['table']||this['editor'][_0x4afd('0x3')][_0x4afd('0x1b')][_0x4afd('0x17')][_0x4afd('0x6')]();this[_0x4afd('0x1a')][_0x4afd('0x3')][_0x4afd('0xf')](()=>{const _0x816260=_0x1d3ad1[_0x4afd('0x21')](_0x1c4f46);let _0xae9cb0=_0x816260?_0x1d3ad1[_0x4afd('0x9')](_0x816260):null,_0x42cf95=_0x1c4f46[_0x4afd('0x8')](_0x4afd('0x1d'))||null;const _0x478d98=_0x28c5ce['tableWidth']||_0x42cf95,_0x14a76f=_0x28c5ce[_0x4afd('0x29')]||_0xae9cb0,_0x4b46b3=this[_0x4afd('0x1a')][_0x4afd('0x5')][_0x4afd('0x22')](_0x4afd('0x4'))['me'];for(const _0x206055 of _0x3f5afd[_0x4afd('0x2')]()){const _0x13ea2e=_0x206055[_0x4afd('0x28')]();if(_0x4afd('0x10')===_0x206055[_0x4afd('0x14')]&&_0x13ea2e===_0x1c4f46){_0x206055[_0x4afd('0xb')]!==_0x4b46b3&&_0x206055[_0x4afd('0x20')]();const _0x17b4a7=_0x206055[_0x4afd('0x24')][_0x4afd('0x26')];_0x42cf95=_0x17b4a7[0x0][_0x4afd('0x1d')],_0xae9cb0=_0x17b4a7[0x0][_0x4afd('0x29')];break;}}_0x2bbed0({'table':_0x1c4f46,'tableWidth':_0x478d98,'columnWidths':_0x14a76f}),_0x3f5afd[_0x4afd('0x18')](_0x1c4f46,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x42cf95,'columnWidths':_0xae9cb0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}[_0x4afd('0x11')](_0x56b49d){const {data:_0x19ea7c}=_0x56b49d;if(_0x19ea7c&&_0x4afd('0x10')===_0x19ea7c[_0x4afd('0x25')]){const _0x28f5cb=_0x4afd('0x1');return{'type':_0x4afd('0x27'),'content':_0x406a0b(this[_0x4afd('0x1a')][_0x4afd('0x15')],_0x28f5cb)};}}}
23
+ const _0x35f0=['*Format:*\x20resize\x20table','TableColumnResizeEditing','resizeTable','getSelectedElement','author','handleResizeTableWidthCommand','document','bind','enableCommand','model','registerCustomCallback','table','get','locale','tableWidth','commandParams','getTableColumnsWidths','discard','editor','getAttribute','getColumnGroupElement','_suggestionFactory','handleSuggestionDescription','TrackChangesEditing','resizeColumnWidths','subType','getContainedElement','columnWidths','resizeTableWidth','plugins','selection','registerDescriptionCallback','formatBlock','data','accept','Users','markBlockFormat','_descriptionFactory'];(function(_0x1d82ea,_0x35f0af){const _0x481814=function(_0x59636b){while(--_0x59636b){_0x1d82ea['push'](_0x1d82ea['shift']());}};_0x481814(++_0x35f0af);}(_0x35f0,0xe0));const _0x4818=function(_0x1d82ea,_0x35f0af){_0x1d82ea=_0x1d82ea-0x0;let _0x481814=_0x35f0[_0x1d82ea];return _0x481814;};import{Plugin as _0x4e792c}from'ckeditor5/src/core';import{getTranslation as _0x2e8317}from'../utils/common-translations';export default class kt extends _0x4e792c{['afterInit'](){if(!this['editor'][_0x4818('0x21')]['has']('TableColumnResizeEditing'))return;const _0x2afc3b=this[_0x4818('0x16')][_0x4818('0x21')][_0x4818('0x10')](_0x4818('0x1b'));_0x2afc3b[_0x4818('0xc')](_0x4818('0x20'),this[_0x4818('0x9')][_0x4818('0xb')](this)),_0x2afc3b[_0x4818('0xc')](_0x4818('0x1c'),this[_0x4818('0x9')][_0x4818('0xb')](this)),_0x2afc3b[_0x4818('0x19')][_0x4818('0xe')]('formatBlock',_0x4818('0x6'),_0x4818('0x0'),_0x2afc3b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2afc3b['_suggestionFactory'][_0x4818('0xe')]('formatBlock',_0x4818('0x6'),_0x4818('0x15'),_0x2afc3b[_0x4818('0x19')]['getSuggestionCallback'](_0x4818('0x24'),null,_0x4818('0x0'))),_0x2afc3b[_0x4818('0x3')][_0x4818('0x23')](this[_0x4818('0x1a')][_0x4818('0xb')](this));}['handleResizeTableWidthCommand'](_0x3ee7ad,_0x22fe1f){const _0x318c3c=this['editor'][_0x4818('0x21')][_0x4818('0x10')]('TrackChangesEditing'),_0x7d436b=this[_0x4818('0x16')][_0x4818('0x21')][_0x4818('0x10')](_0x4818('0x5')),_0xe3770=_0x22fe1f[_0x4818('0xf')]||this[_0x4818('0x16')][_0x4818('0xd')][_0x4818('0xa')][_0x4818('0x22')][_0x4818('0x7')]();this[_0x4818('0x16')][_0x4818('0xd')]['change'](()=>{const _0x2836db=_0x7d436b[_0x4818('0x18')](_0xe3770);let _0x4e9886=_0x2836db?_0x7d436b[_0x4818('0x14')](_0x2836db):null,_0x54431b=_0xe3770[_0x4818('0x17')](_0x4818('0x12'))||null;const _0x311085=_0x22fe1f['tableWidth']||_0x54431b,_0xe989c8=_0x22fe1f[_0x4818('0x1f')]||_0x4e9886,_0x11a020=this['editor']['plugins'][_0x4818('0x10')](_0x4818('0x1'))['me'];for(const _0x394b52 of _0x318c3c['getSuggestions']()){const _0x70fdab=_0x394b52[_0x4818('0x1e')]();if(_0x4818('0x6')===_0x394b52[_0x4818('0x1d')]&&_0x70fdab===_0xe3770){_0x394b52[_0x4818('0x8')]!==_0x11a020&&_0x394b52['discard']();const _0x3b60ac=_0x394b52[_0x4818('0x25')][_0x4818('0x13')];_0x54431b=_0x3b60ac[0x0][_0x4818('0x12')],_0x4e9886=_0x3b60ac[0x0]['columnWidths'];break;}}_0x3ee7ad({'table':_0xe3770,'tableWidth':_0x311085,'columnWidths':_0xe989c8}),_0x318c3c[_0x4818('0x2')](_0xe3770,{'commandName':_0x4818('0x20'),'commandParams':[{'tableWidth':_0x54431b,'columnWidths':_0x4e9886}],'formatGroupId':_0x4818('0x6')},[],_0x4818('0x6'));});}[_0x4818('0x1a')](_0x3b57b0){const {data:_0xc1a812}=_0x3b57b0;if(_0xc1a812&&_0x4818('0x6')===_0xc1a812['formatGroupId']){const _0x34b610=_0x4818('0x4');return{'type':'format','content':_0x2e8317(this['editor'][_0x4818('0x11')],_0x34b610)};}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ccd=['_suggestionFactory','highest','getAttribute','selection','options','FORMAT_HEADER_COLUMN','first','model','TrackChangesEditing','registerCustomCallback','getCellLocation','document','from','value','accept','childCount','markerNameToElements','createPositionBefore','setTableColumnHeader','forceValue','getRowIndexes','commands','activeMarkers','table','isBefore','get','enableCommand','formatBlock','downcastDispatcher','FORMAT_REGULAR_COLUMN','requires','cell','data','index','writer','nodeAfter','markBlockFormat','parent','change','start','data-suggestion','_splitMarkerName','plugins','getSelectionAffectedTableCells','editing','afterInit','*Format:*\x20%0','getChild','removeAttribute','createTableWalker','consume','addClass','getColumnIndexes','findAncestor','setAttribute','createRange','registerDescriptionCallback','markerName','name','commandName','includes','setTableRowHeader','addMarker:suggestion','removeMarker:suggestion','format','markerRange','mapper','_descriptionFactory','last','unbindElementFromMarkerName','stop','createPositionAfter','FORMAT_HEADER_ROW','ck-suggestion-marker-','removeClass','ck-suggestion-marker--active','toViewElement','_acceptFormatSuggestionCallbackFactory','getSuggestion','end','commandParams'];(function(_0x44a084,_0x1ccd91){const _0x404627=function(_0x3108f5){while(--_0x3108f5){_0x44a084['push'](_0x44a084['shift']());}};_0x404627(++_0x1ccd91);}(_0x1ccd,0x184));const _0x4046=function(_0x44a084,_0x1ccd91){_0x44a084=_0x44a084-0x0;let _0x404627=_0x1ccd[_0x44a084];return _0x404627;};import{Plugin as _0x1de8b5}from'ckeditor5/src/core';import _0x25f32e from'./table';import{getTranslation as _0xbe3ab0}from'../utils/common-translations';export default class dt extends _0x1de8b5{static get[_0x4046('0x2f')](){return[_0x25f32e];}[_0x4046('0x3e')](){const _0x58c360=this['editor'];if(!_0x58c360[_0x4046('0x3b')]['has']('TableEditing'))return;const _0x560fd5=_0x58c360['locale'],_0x1e5950=_0x58c360['plugins'][_0x4046('0x2a')](_0x4046('0x19')),_0x1110c3=_0x58c360[_0x4046('0x3b')][_0x4046('0x2a')]('TableUtils'),_0xf7bcbb=_0x58c360[_0x4046('0x3b')][_0x4046('0x2a')](_0x25f32e);function _0x55dd74({showActiveMarker:_0x89eac0=!0x0,setDataAttribute:_0xe38908=!0x0}={}){return(_0x3b555b,_0x60a4e5,_0x1ad828)=>{const {type:_0x3aaa5d,id:_0x38d0b6}=_0x1e5950['_splitMarkerName'](_0x60a4e5[_0x4046('0x4a')]),_0x5dd103=_0x1e5950[_0x4046('0xe')](_0x38d0b6);if(!_0x5dd103[_0x4046('0x31')]||_0x4046('0x23')!=_0x5dd103[_0x4046('0x31')]['commandName'])return;if(_0x60a4e5['item'])return void _0x3b555b[_0x4046('0x6')]();if(!_0x1ad828['consumable'][_0x4046('0x43')](_0x60a4e5[_0x4046('0x1')],_0x3b555b[_0x4046('0x4b')]))return;const _0x4a7148=_0x60a4e5[_0x4046('0x1')][_0x4046('0x38')][_0x4046('0x34')],_0x68ac12=_0x60a4e5[_0x4046('0x1')][_0x4046('0xf')]['nodeBefore'],_0x22999d=_0x4a7148[_0x4046('0x36')][_0x4046('0x36')],{column:_0x3fc4eb}=_0x1110c3[_0x4046('0x1b')](_0x4a7148),{column:_0x5c77e2}=_0x1110c3[_0x4046('0x1b')](_0x68ac12);for(let _0x1318db=_0x3fc4eb;_0x1318db<=_0x5c77e2;_0x1318db++){const _0xae658f=_0x1110c3['createTableWalker'](_0x22999d,{'column':_0x1318db,'includeAllSlots':!0x1});for(const _0x11ebe1 of _0xae658f){const _0x2c0123=_0x11ebe1[_0x4046('0x30')],_0x179c8f=_0x1ad828[_0x4046('0x2')][_0x4046('0xc')](_0x2c0123);_0x1ad828['writer'][_0x4046('0x44')]('ck-suggestion-marker-'+_0x3aaa5d,_0x179c8f),_0xe38908&&_0x1ad828['writer'][_0x4046('0x47')](_0x4046('0x39'),_0x38d0b6,_0x179c8f),_0x1ad828[_0x4046('0x2')]['bindElementToMarker'](_0x179c8f,_0x60a4e5['markerName']),_0x89eac0&&(_0x1e5950[_0x4046('0x27')][_0x4046('0x4d')](_0x60a4e5[_0x4046('0x4a')])?_0x1ad828[_0x4046('0x33')]['addClass'](_0x4046('0xb'),_0x179c8f):_0x1ad828['writer'][_0x4046('0xa')]('ck-suggestion-marker--active',_0x179c8f));}}};}_0x1e5950[_0x4046('0x2b')](_0x4046('0x4e'),(_0x1e9f4b,_0xa7b5ce)=>{const _0x1ff889=_0x1110c3[_0x4046('0x3c')](_0x58c360[_0x4046('0x18')]['document'][_0x4046('0x14')]),_0x10687a=_0x1110c3[_0x4046('0x25')](_0x1ff889),_0x1d3dd5=_0x1ff889[0x0][_0x4046('0x46')](_0x4046('0x28')),_0x35db3b=_0x1d3dd5['getAttribute']('headingRows')||0x0,_0x3fa33a=_0xa7b5ce&&null!==_0xa7b5ce[_0x4046('0x24')]?_0xa7b5ce[_0x4046('0x24')]:!_0x58c360[_0x4046('0x26')][_0x4046('0x2a')](_0x4046('0x4e'))[_0x4046('0x1e')],_0x2d28ba=_0x3fa33a?_0x10687a[_0x4046('0x4')]:_0x10687a[_0x4046('0x17')],_0x115cbe=_0x1d3dd5[_0x4046('0x40')](_0x2d28ba);let _0x34cfc3;if(_0x3fa33a){const _0x187feb=_0x1d3dd5['getChild'](_0x35db3b);if(_0x115cbe[_0x4046('0x32')]<_0x187feb['index'])return;_0x34cfc3=_0x58c360[_0x4046('0x18')][_0x4046('0x48')](_0x58c360['model'][_0x4046('0x22')](_0x187feb[_0x4046('0x40')](0x0)),_0x58c360['model'][_0x4046('0x7')](_0x115cbe[_0x4046('0x40')](_0x115cbe[_0x4046('0x20')]-0x1)));}else{const _0x5a9470=_0x1d3dd5['getChild'](_0x35db3b-0x1);if(!_0x5a9470)return;_0x34cfc3=_0x58c360[_0x4046('0x18')][_0x4046('0x48')](_0x58c360[_0x4046('0x18')][_0x4046('0x22')](_0x115cbe['getChild'](0x0)),_0x58c360[_0x4046('0x18')][_0x4046('0x7')](_0x5a9470[_0x4046('0x40')](_0x5a9470[_0x4046('0x20')]-0x1)));}_0x58c360[_0x4046('0x18')][_0x4046('0x37')](()=>{_0x1e5950[_0x4046('0x35')](_0x34cfc3,{'commandName':_0x4046('0x4e'),'commandParams':[{'forceValue':_0x3fa33a}]},[],'setTableRowHeader');});}),_0x1e5950[_0x4046('0x2b')](_0x4046('0x23'),(_0x5d13a8,_0x5f3346)=>{const _0x3f405d=_0x58c360[_0x4046('0x3b')]['get']('TableUtils'),_0xa4238a=_0x3f405d[_0x4046('0x3c')](_0x58c360[_0x4046('0x18')][_0x4046('0x1c')]['selection']),_0x437f78=_0x3f405d[_0x4046('0x45')](_0xa4238a),_0x16ae95=_0xa4238a[0x0][_0x4046('0x46')](_0x4046('0x28')),_0x146985=_0x16ae95[_0x4046('0x13')]('headingColumns')||0x0,_0x3a0aa7=_0x5f3346&&null!==_0x5f3346[_0x4046('0x24')]?_0x5f3346[_0x4046('0x24')]:!_0x58c360['commands'][_0x4046('0x2a')](_0x4046('0x23'))[_0x4046('0x1e')];let _0xaf776;const _0x7e07e=_0x16ae95['getChild'](0x0),_0x583037=_0x3a0aa7?_0x437f78[_0x4046('0x4')]:_0x437f78[_0x4046('0x17')],_0x2b0d67=_0x3f405d[_0x4046('0x42')](_0x16ae95,{'startRow':0x0,'column':_0x583037,'includeAllSlots':!0x1}),_0x43c3fe=Array[_0x4046('0x1d')](_0x2b0d67)[0x0]['cell'];if(_0x3a0aa7){const _0x4f2f38=_0x7e07e[_0x4046('0x40')](_0x146985);if(_0x43c3fe[_0x4046('0x29')](_0x4f2f38))return;_0xaf776=_0x58c360['model'][_0x4046('0x48')](_0x58c360[_0x4046('0x18')][_0x4046('0x22')](_0x4f2f38),_0x58c360['model'][_0x4046('0x7')](_0x43c3fe));}else{const _0x919b0d=_0x7e07e['getChild'](_0x146985-0x1);if(!_0x919b0d)return;_0xaf776=_0x58c360[_0x4046('0x18')][_0x4046('0x48')](_0x58c360[_0x4046('0x18')][_0x4046('0x22')](_0x43c3fe),_0x58c360['model'][_0x4046('0x7')](_0x919b0d));}_0x58c360['model']['change'](()=>{_0x1e5950[_0x4046('0x35')](_0xaf776,{'commandName':_0x4046('0x23'),'commandParams':[{'forceValue':_0x3a0aa7}]},[],'setTableColumnHeader');});}),_0x58c360[_0x4046('0x3d')][_0x4046('0x2d')]['on'](_0x4046('0x4f'),_0x55dd74(),{'priority':'highest'}),_0x58c360['data'][_0x4046('0x2d')]['on'](_0x4046('0x4f'),(_0x5cb92e,_0x204c4b,_0x367e25)=>{_0x367e25[_0x4046('0x15')]['showSuggestionHighlights']&&_0x55dd74({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5cb92e,_0x204c4b,_0x367e25);},{'priority':_0x4046('0x12')}),_0x58c360['editing'][_0x4046('0x2d')]['on'](_0x4046('0x50'),(_0x2f0468,_0x1aa32a,_0x173358)=>{const {type:_0x3fe502,id:_0x2ad6ea}=_0x1e5950[_0x4046('0x3a')](_0x1aa32a[_0x4046('0x4a')]),_0x2ecefe=_0x1e5950['getSuggestion'](_0x2ad6ea);if(!_0x2ecefe[_0x4046('0x31')]||'setTableColumnHeader'!=_0x2ecefe[_0x4046('0x31')]['commandName'])return;const _0x4e06c2=_0x173358[_0x4046('0x2')][_0x4046('0x21')](_0x1aa32a[_0x4046('0x4a')]);if(_0x4e06c2)for(const _0x405782 of _0x4e06c2)_0x173358[_0x4046('0x33')][_0x4046('0xa')](_0x4046('0x9')+_0x3fe502,_0x405782),_0x173358[_0x4046('0x33')]['removeClass'](_0x4046('0xb'),_0x405782),_0x173358[_0x4046('0x33')][_0x4046('0x41')](_0x4046('0x39'),_0x405782),_0x173358[_0x4046('0x2')][_0x4046('0x5')](_0x405782,_0x1aa32a[_0x4046('0x4a')]);},{'priority':_0x4046('0x12')}),_0x1e5950[_0x4046('0x3')][_0x4046('0x49')](_0x35cde3=>{const {data:_0x55a961}=_0x35cde3;if(_0x55a961){if(_0x4046('0x4e')==_0x55a961[_0x4046('0x4c')]){const _0x57abe7=_0x55a961[_0x4046('0x10')][0x0]['forceValue'];return _0xc6560e(_0xbe3ab0(_0x560fd5,_0x57abe7?_0x4046('0x8'):'FORMAT_REGULAR_ROW'));}if(_0x4046('0x23')==_0x55a961[_0x4046('0x4c')]){const _0x15dc87=_0x55a961['commandParams'][0x0][_0x4046('0x24')];return _0xc6560e(_0xbe3ab0(_0x560fd5,_0x15dc87?_0x4046('0x16'):_0x4046('0x2e')));}}function _0xc6560e(_0x4ef008){return{'type':_0x4046('0x0'),'content':_0xbe3ab0(_0x560fd5,_0x4046('0x3f'),_0x4ef008)};}});const _0x4ce29c=_0xf7bcbb[_0x4046('0xd')]();_0x1e5950[_0x4046('0x11')][_0x4046('0x1a')](_0x4046('0x2c'),'setTableRowHeader','accept',_0x4ce29c),_0x1e5950[_0x4046('0x11')][_0x4046('0x1a')](_0x4046('0x2c'),_0x4046('0x23'),_0x4046('0x1f'),_0x4ce29c);}}
23
+ const _0x2a95=['mapper','showSuggestionHighlights','format','TableUtils','removeClass','highest','last','nodeBefore','ck-suggestion-marker-','forceValue','markerRange','getCellLocation','index','getRowIndexes','_acceptFormatSuggestionCallbackFactory','findAncestor','end','locale','getSuggestion','getSelectionAffectedTableCells','headingColumns','FORMAT_HEADER_COLUMN','enableCommand','createRange','setTableRowHeader','data','addClass','change','_splitMarkerName','setAttribute','FORMAT_REGULAR_COLUMN','writer','nodeAfter','document','consumable','accept','_descriptionFactory','markerName','commandName','ck-suggestion-marker--active','formatBlock','getAttribute','downcastDispatcher','_suggestionFactory','has','get','registerCustomCallback','from','includes','cell','parent','createPositionAfter','FORMAT_HEADER_ROW','first','markBlockFormat','options','childCount','getColumnIndexes','commands','data-suggestion','setTableColumnHeader','registerDescriptionCallback','name','headingRows','start','plugins','createTableWalker','table','addMarker:suggestion','getChild','createPositionBefore','afterInit','toViewElement','model','bindElementToMarker'];(function(_0x503d7f,_0x2a95aa){const _0x1ec934=function(_0x371d2c){while(--_0x371d2c){_0x503d7f['push'](_0x503d7f['shift']());}};_0x1ec934(++_0x2a95aa);}(_0x2a95,0x1b5));const _0x1ec9=function(_0x503d7f,_0x2a95aa){_0x503d7f=_0x503d7f-0x0;let _0x1ec934=_0x2a95[_0x503d7f];return _0x1ec934;};import{Plugin as _0x5157a6}from'ckeditor5/src/core';import _0x24100c from'./table';import{getTranslation as _0x473ff6}from'../utils/common-translations';export default class dt extends _0x5157a6{static get['requires'](){return[_0x24100c];}[_0x1ec9('0x9')](){const _0x11582c=this['editor'];if(!_0x11582c[_0x1ec9('0x3')][_0x1ec9('0x39')]('TableEditing'))return;const _0x7365ba=_0x11582c[_0x1ec9('0x1e')],_0x2f8d48=_0x11582c[_0x1ec9('0x3')][_0x1ec9('0x3a')]('TrackChangesEditing'),_0x2094e6=_0x11582c[_0x1ec9('0x3')]['get'](_0x1ec9('0x10')),_0x268af9=_0x11582c[_0x1ec9('0x3')][_0x1ec9('0x3a')](_0x24100c);function _0x5adb04({showActiveMarker:_0x34f7ef=!0x0,setDataAttribute:_0x128cd8=!0x0}={}){return(_0x521ea1,_0x40d2e6,_0xf2d219)=>{const {type:_0x591ac9,id:_0x4a59a7}=_0x2f8d48[_0x1ec9('0x29')](_0x40d2e6['markerName']),_0x3e676b=_0x2f8d48[_0x1ec9('0x1f')](_0x4a59a7);if(!_0x3e676b[_0x1ec9('0x26')]||_0x1ec9('0x49')!=_0x3e676b[_0x1ec9('0x26')][_0x1ec9('0x33')])return;if(_0x40d2e6['item'])return void _0x521ea1['stop']();if(!_0xf2d219[_0x1ec9('0x2f')]['consume'](_0x40d2e6['markerRange'],_0x521ea1[_0x1ec9('0x0')]))return;const _0x19e7e9=_0x40d2e6['markerRange'][_0x1ec9('0x2')][_0x1ec9('0x2d')],_0x4a7e23=_0x40d2e6[_0x1ec9('0x17')][_0x1ec9('0x1d')][_0x1ec9('0x14')],_0x1d8adc=_0x19e7e9[_0x1ec9('0x3f')][_0x1ec9('0x3f')],{column:_0xd433a8}=_0x2094e6['getCellLocation'](_0x19e7e9),{column:_0x20c530}=_0x2094e6[_0x1ec9('0x18')](_0x4a7e23);for(let _0x4b3c07=_0xd433a8;_0x4b3c07<=_0x20c530;_0x4b3c07++){const _0x2b4bd8=_0x2094e6['createTableWalker'](_0x1d8adc,{'column':_0x4b3c07,'includeAllSlots':!0x1});for(const _0xa84f30 of _0x2b4bd8){const _0x392a08=_0xa84f30[_0x1ec9('0x3e')],_0x1a67e1=_0xf2d219['mapper'][_0x1ec9('0xa')](_0x392a08);_0xf2d219['writer']['addClass'](_0x1ec9('0x15')+_0x591ac9,_0x1a67e1),_0x128cd8&&_0xf2d219[_0x1ec9('0x2c')][_0x1ec9('0x2a')](_0x1ec9('0x48'),_0x4a59a7,_0x1a67e1),_0xf2d219[_0x1ec9('0xd')][_0x1ec9('0xc')](_0x1a67e1,_0x40d2e6[_0x1ec9('0x32')]),_0x34f7ef&&(_0x2f8d48['activeMarkers'][_0x1ec9('0x3d')](_0x40d2e6[_0x1ec9('0x32')])?_0xf2d219[_0x1ec9('0x2c')][_0x1ec9('0x27')](_0x1ec9('0x34'),_0x1a67e1):_0xf2d219['writer'][_0x1ec9('0x11')](_0x1ec9('0x34'),_0x1a67e1));}}};}_0x2f8d48[_0x1ec9('0x23')](_0x1ec9('0x25'),(_0x5bcf3f,_0x4abb59)=>{const _0x55dd22=_0x2094e6[_0x1ec9('0x20')](_0x11582c[_0x1ec9('0xb')]['document']['selection']),_0x200bd0=_0x2094e6[_0x1ec9('0x1a')](_0x55dd22),_0x5194ef=_0x55dd22[0x0][_0x1ec9('0x1c')](_0x1ec9('0x5')),_0x4d10fd=_0x5194ef['getAttribute'](_0x1ec9('0x1'))||0x0,_0x344bac=_0x4abb59&&null!==_0x4abb59['forceValue']?_0x4abb59['forceValue']:!_0x11582c[_0x1ec9('0x47')]['get'](_0x1ec9('0x25'))['value'],_0xb1a5d8=_0x344bac?_0x200bd0['last']:_0x200bd0[_0x1ec9('0x42')],_0x3f981e=_0x5194ef['getChild'](_0xb1a5d8);let _0xa60bd;if(_0x344bac){const _0x22eb32=_0x5194ef[_0x1ec9('0x7')](_0x4d10fd);if(_0x3f981e[_0x1ec9('0x19')]<_0x22eb32['index'])return;_0xa60bd=_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x24')](_0x11582c['model']['createPositionBefore'](_0x22eb32[_0x1ec9('0x7')](0x0)),_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x40')](_0x3f981e['getChild'](_0x3f981e['childCount']-0x1)));}else{const _0x593293=_0x5194ef[_0x1ec9('0x7')](_0x4d10fd-0x1);if(!_0x593293)return;_0xa60bd=_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x24')](_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x8')](_0x3f981e[_0x1ec9('0x7')](0x0)),_0x11582c['model']['createPositionAfter'](_0x593293[_0x1ec9('0x7')](_0x593293[_0x1ec9('0x45')]-0x1)));}_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x28')](()=>{_0x2f8d48[_0x1ec9('0x43')](_0xa60bd,{'commandName':_0x1ec9('0x25'),'commandParams':[{'forceValue':_0x344bac}]},[],_0x1ec9('0x25'));});}),_0x2f8d48[_0x1ec9('0x23')](_0x1ec9('0x49'),(_0x2eda07,_0x4151fc)=>{const _0x2b0d5a=_0x11582c[_0x1ec9('0x3')][_0x1ec9('0x3a')]('TableUtils'),_0x3eb882=_0x2b0d5a['getSelectionAffectedTableCells'](_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x2e')]['selection']),_0x1b5dd5=_0x2b0d5a[_0x1ec9('0x46')](_0x3eb882),_0x16db70=_0x3eb882[0x0][_0x1ec9('0x1c')](_0x1ec9('0x5')),_0x53e3ac=_0x16db70[_0x1ec9('0x36')](_0x1ec9('0x21'))||0x0,_0x295e1e=_0x4151fc&&null!==_0x4151fc[_0x1ec9('0x16')]?_0x4151fc[_0x1ec9('0x16')]:!_0x11582c[_0x1ec9('0x47')]['get'](_0x1ec9('0x49'))['value'];let _0x541396;const _0x3ef4e9=_0x16db70[_0x1ec9('0x7')](0x0),_0x105c8e=_0x295e1e?_0x1b5dd5[_0x1ec9('0x13')]:_0x1b5dd5[_0x1ec9('0x42')],_0x5dbe6e=_0x2b0d5a[_0x1ec9('0x4')](_0x16db70,{'startRow':0x0,'column':_0x105c8e,'includeAllSlots':!0x1}),_0x3590ca=Array[_0x1ec9('0x3c')](_0x5dbe6e)[0x0]['cell'];if(_0x295e1e){const _0x47a879=_0x3ef4e9[_0x1ec9('0x7')](_0x53e3ac);if(_0x3590ca['isBefore'](_0x47a879))return;_0x541396=_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x24')](_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x8')](_0x47a879),_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x40')](_0x3590ca));}else{const _0xa98ae8=_0x3ef4e9[_0x1ec9('0x7')](_0x53e3ac-0x1);if(!_0xa98ae8)return;_0x541396=_0x11582c['model']['createRange'](_0x11582c['model']['createPositionBefore'](_0x3590ca),_0x11582c['model'][_0x1ec9('0x40')](_0xa98ae8));}_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x28')](()=>{_0x2f8d48[_0x1ec9('0x43')](_0x541396,{'commandName':_0x1ec9('0x49'),'commandParams':[{'forceValue':_0x295e1e}]},[],_0x1ec9('0x49'));});}),_0x11582c['editing'][_0x1ec9('0x37')]['on'](_0x1ec9('0x6'),_0x5adb04(),{'priority':_0x1ec9('0x12')}),_0x11582c['data'][_0x1ec9('0x37')]['on'](_0x1ec9('0x6'),(_0x70e72d,_0x212717,_0x2f4bde)=>{_0x2f4bde[_0x1ec9('0x44')][_0x1ec9('0xe')]&&_0x5adb04({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x70e72d,_0x212717,_0x2f4bde);},{'priority':_0x1ec9('0x12')}),_0x11582c['editing'][_0x1ec9('0x37')]['on']('removeMarker:suggestion',(_0x218f21,_0x5d92ff,_0x282e9b)=>{const {type:_0x212744,id:_0x5c012c}=_0x2f8d48[_0x1ec9('0x29')](_0x5d92ff['markerName']),_0x5cb573=_0x2f8d48[_0x1ec9('0x1f')](_0x5c012c);if(!_0x5cb573['data']||_0x1ec9('0x49')!=_0x5cb573[_0x1ec9('0x26')]['commandName'])return;const _0x2a332d=_0x282e9b[_0x1ec9('0xd')]['markerNameToElements'](_0x5d92ff['markerName']);if(_0x2a332d)for(const _0x1d9258 of _0x2a332d)_0x282e9b[_0x1ec9('0x2c')]['removeClass']('ck-suggestion-marker-'+_0x212744,_0x1d9258),_0x282e9b[_0x1ec9('0x2c')]['removeClass']('ck-suggestion-marker--active',_0x1d9258),_0x282e9b['writer']['removeAttribute'](_0x1ec9('0x48'),_0x1d9258),_0x282e9b[_0x1ec9('0xd')]['unbindElementFromMarkerName'](_0x1d9258,_0x5d92ff['markerName']);},{'priority':_0x1ec9('0x12')}),_0x2f8d48[_0x1ec9('0x31')][_0x1ec9('0x4a')](_0x4ab384=>{const {data:_0x3a4e89}=_0x4ab384;if(_0x3a4e89){if(_0x1ec9('0x25')==_0x3a4e89['commandName']){const _0x2f74e8=_0x3a4e89['commandParams'][0x0][_0x1ec9('0x16')];return _0x37fadc(_0x473ff6(_0x7365ba,_0x2f74e8?_0x1ec9('0x41'):'FORMAT_REGULAR_ROW'));}if(_0x1ec9('0x49')==_0x3a4e89[_0x1ec9('0x33')]){const _0x418849=_0x3a4e89['commandParams'][0x0]['forceValue'];return _0x37fadc(_0x473ff6(_0x7365ba,_0x418849?_0x1ec9('0x22'):_0x1ec9('0x2b')));}}function _0x37fadc(_0xa4d9b7){return{'type':_0x1ec9('0xf'),'content':_0x473ff6(_0x7365ba,'*Format:*\x20%0',_0xa4d9b7)};}});const _0x2a640f=_0x268af9[_0x1ec9('0x1b')]();_0x2f8d48[_0x1ec9('0x38')][_0x1ec9('0x3b')]('formatBlock',_0x1ec9('0x25'),_0x1ec9('0x30'),_0x2a640f),_0x2f8d48[_0x1ec9('0x38')][_0x1ec9('0x3b')](_0x1ec9('0x35'),_0x1ec9('0x49'),_0x1ec9('0x30'),_0x2a640f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29c9=['editor','document','change','getAncestors','highest','*Split\x20cell:*\x20horizontally','_tablePostFixingSubtypes','requires','getFirstPosition','execute','commandName','$graveyard','author','splitTableCellHorizontally','formatBlock','get','root','from','value','plugins','tableCell','add','TrackChangesEditing','markMultiRangeBlockFormat','getSelectionAffectedTableCells','_areSelectedCellsMergable','getSuggestions','commands','mergeTableCellUp','subType','horizontally','element','stop','format','*Split\x20cell:*\x20vertically','*Merge\x20cells*','_areMergableCells','insertion','push','mergeTableCellLeft','containsRange','enableCommand','map','registerCustomCallback','splitTableCellVertically','filter','isInContent','find','locale','TableUtils','rootName','low','size','_suggestionFactory','mergeTableCellDown','refresh','accept','trackChanges','registerDescriptionCallback','_isForcedDefaultExecutionBlock','mergeTableCells','getRanges','afterInit','cell','direction','setSelection','selection','mergeTableCellRight','model','length','_acceptFormatSuggestionCallbackFactory','type','return','createRangeOn','_descriptionFactory'];(function(_0x517f6f,_0x29c91b){const _0x5e8cac=function(_0x23789f){while(--_0x23789f){_0x517f6f['push'](_0x517f6f['shift']());}};_0x5e8cac(++_0x29c91b);}(_0x29c9,0x1ba));const _0x5e8c=function(_0x517f6f,_0x29c91b){_0x517f6f=_0x517f6f-0x0;let _0x5e8cac=_0x29c9[_0x517f6f];return _0x5e8cac;};import{Plugin as _0x434730}from'ckeditor5/src/core';import _0x5c811f from'./table';import{LiveRange as _0x5f411e}from'ckeditor5/src/engine';import{getTranslation as _0x4af285}from'../utils/common-translations';export default class mt extends _0x434730{static get[_0x5e8c('0xf')](){return[_0x5c811f];}[_0x5e8c('0x46')](){const _0x414c40=this[_0x5e8c('0x8')],_0x180cf0=_0x414c40[_0x5e8c('0x1')][_0x5e8c('0x9')][_0x5e8c('0x4a')],_0x1f1266=_0x414c40[_0x5e8c('0x38')];if(!_0x414c40[_0x5e8c('0x1b')]['has']('TableEditing'))return;const _0x15bc21=_0x414c40[_0x5e8c('0x1b')][_0x5e8c('0x17')](_0x5e8c('0x1e')),_0x194eb0=_0x414c40[_0x5e8c('0x1b')][_0x5e8c('0x17')](_0x5e8c('0x39')),_0x45ff12=_0x414c40['plugins']['get'](_0x5c811f);_0x45ff12[_0x5e8c('0xe')][_0x5e8c('0x2e')](_0x5e8c('0x44')),_0x15bc21['enableCommand']('mergeTableCells',()=>{const _0x25e069=_0x194eb0[_0x5e8c('0x20')](_0x414c40['model'][_0x5e8c('0x9')][_0x5e8c('0x4a')]);_0x414c40[_0x5e8c('0x1')]['change'](()=>{_0x15bc21[_0x5e8c('0x1f')](_0x25e069,{'commandName':_0x5e8c('0x44'),'commandParams':[]},[],_0x5e8c('0x44'));});}),_0x414c40[_0x5e8c('0x23')][_0x5e8c('0x17')]('mergeTableCells')['on'](_0x5e8c('0x11'),(_0x243d23,_0x58dd67)=>{_0x414c40['commands']['get'](_0x5e8c('0x41'))[_0x5e8c('0x1a')]&&(_0x58dd67[_0x5e8c('0x2')]>0x0&&_0x58dd67[_0x58dd67[_0x5e8c('0x2')]-0x1]&&_0x58dd67[_0x58dd67['length']-0x1]['forceDefaultExecution']||_0x15bc21[_0x5e8c('0x43')]||this[_0x5e8c('0x21')]()||_0x243d23[_0x5e8c('0x28')]());},{'priority':_0x5e8c('0xc')});for(const _0x595004 of[_0x5e8c('0x24'),'mergeTableCellRight',_0x5e8c('0x3e'),_0x5e8c('0x2f')]){const _0x230db7=_0x414c40['commands']['get'](_0x595004);_0x15bc21[_0x5e8c('0x31')](_0x595004,()=>{const _0x294eb7=_0x414c40[_0x5e8c('0x1')][_0x5e8c('0x9')][_0x5e8c('0x4a')][_0x5e8c('0x10')]()[_0x5e8c('0xb')]()[_0x5e8c('0x37')](_0x39d7f3=>_0x39d7f3['is'](_0x5e8c('0x27'),_0x5e8c('0x1c'))),_0x1d9693=_0x230db7[_0x5e8c('0x1a')];_0x414c40['model'][_0x5e8c('0xa')](()=>{_0x15bc21[_0x5e8c('0x1f')]([_0x294eb7,_0x1d9693],{'commandName':'mergeTableCells','commandParams':[]},[],_0x5e8c('0x44'));});});}for(const _0x16d4c4 of['splitTableCellVertically',_0x5e8c('0x15')]){const _0x69c2f6=_0x414c40[_0x5e8c('0x23')][_0x5e8c('0x17')](_0x16d4c4);_0x15bc21[_0x5e8c('0x31')](_0x16d4c4,()=>{const _0x115b7a=_0x194eb0['getSelectionAffectedTableCells'](_0x414c40[_0x5e8c('0x1')][_0x5e8c('0x9')]['selection'])[0x0],_0x5341b1=_0x115b7a['findAncestor']('table'),{column:_0x15b32b,row:_0x58243c}=_0x194eb0['getCellLocation'](_0x115b7a);let _0x5ac49c=[];if(_0x5e8c('0x26')==_0x69c2f6[_0x5e8c('0x48')]){const _0x28833a=_0x194eb0['createTableWalker'](_0x5341b1,{'startRow':_0x58243c,'endRow':_0x58243c,'includeAllSlots':!0x0});_0x5ac49c=Array[_0x5e8c('0x19')](_0x28833a)['map'](_0x5b3455=>_0x5b3455['cell']);}else{const _0x49ab1d=_0x194eb0['createTableWalker'](_0x5341b1,{'column':_0x15b32b,'includeAllSlots':!0x0});_0x5ac49c=Array[_0x5e8c('0x19')](_0x49ab1d)[_0x5e8c('0x32')](_0x41117f=>_0x41117f[_0x5e8c('0x47')]);}_0x414c40[_0x5e8c('0x1')][_0x5e8c('0xa')](_0x3a7b67=>{_0x15bc21['markBlockFormat'](_0x3a7b67[_0x5e8c('0x6')](_0x115b7a),{'commandName':_0x16d4c4,'commandParams':[]},_0x5ac49c,_0x16d4c4);});});}_0x15bc21['_descriptionFactory'][_0x5e8c('0x42')](_0x254f10=>{const {data:_0x25ed80}=_0x254f10;if(_0x25ed80)return _0x5e8c('0x44')==_0x25ed80[_0x5e8c('0x12')]?{'type':'format','content':_0x4af285(_0x1f1266,_0x5e8c('0x2b'))}:void 0x0;}),_0x15bc21[_0x5e8c('0x7')]['registerDescriptionCallback'](_0x55d291=>{const {data:_0x48bba2}=_0x55d291;if(_0x48bba2)return _0x5e8c('0x34')==_0x48bba2[_0x5e8c('0x12')]?{'type':_0x5e8c('0x29'),'content':_0x4af285(_0x1f1266,_0x5e8c('0x2a'))}:'splitTableCellHorizontally'==_0x48bba2[_0x5e8c('0x12')]?{'type':'format','content':_0x4af285(_0x1f1266,_0x5e8c('0xd'))}:void 0x0;});const _0x3a0f59=_0x45ff12[_0x5e8c('0x3')]();for(const _0x3b38e1 of[_0x5e8c('0x24'),'mergeTableCellRight',_0x5e8c('0x3e'),'mergeTableCellLeft'])_0x15bc21[_0x5e8c('0x3d')][_0x5e8c('0x33')]('formatBlock',_0x3b38e1,'accept',_0x3a0f59);for(const _0x4fdd34 of[_0x5e8c('0x34'),'splitTableCellHorizontally'])_0x15bc21[_0x5e8c('0x3d')][_0x5e8c('0x33')](_0x5e8c('0x16'),_0x4fdd34,'accept',_0x3a0f59);_0x15bc21['_suggestionFactory']['registerCustomCallback'](_0x5e8c('0x16'),_0x5e8c('0x44'),_0x5e8c('0x40'),_0x51b6b6=>{_0x414c40[_0x5e8c('0x1')]['change'](_0x1a6f92=>{const _0x439ff2=Array[_0x5e8c('0x19')](_0x180cf0[_0x5e8c('0x45')]())['map'](_0x34d369=>_0x5f411e['fromRange'](_0x34d369));_0x1a6f92[_0x5e8c('0x49')](_0x51b6b6),_0x414c40['commands']['get'](_0x5e8c('0x44'))[_0x5e8c('0x3f')](),_0x414c40['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3a2c9c=_0x439ff2[_0x5e8c('0x35')](_0x3b8239=>_0x5e8c('0x13')!=_0x3b8239[_0x5e8c('0x18')][_0x5e8c('0x3a')]);_0x3a2c9c[_0x5e8c('0x2')]>0x0&&_0x1a6f92[_0x5e8c('0x49')](_0x3a2c9c);for(const _0x88043a of _0x439ff2)_0x88043a['detach']();});});for(const _0x1c54cb of[_0x5e8c('0x24'),'mergeTableCellDown',_0x5e8c('0x2f'),_0x5e8c('0x0')]){const _0x4f5eda=_0x414c40[_0x5e8c('0x23')][_0x5e8c('0x17')](_0x1c54cb);_0x4f5eda['on']('set:isEnabled',(_0x5b0b7c,_0x483df0,_0x327d6b)=>{if(_0x327d6b){const _0x5e352b=_0x414c40[_0x5e8c('0x1')][_0x5e8c('0x9')][_0x5e8c('0x4a')][_0x5e8c('0x10')]()[_0x5e8c('0xb')]()['find'](_0x586166=>_0x586166['is'](_0x5e8c('0x27'),_0x5e8c('0x1c')));this[_0x5e8c('0x2c')](_0x4f5eda[_0x5e8c('0x1a')],_0x5e352b)||(_0x5b0b7c[_0x5e8c('0x5')]=!0x1,_0x5b0b7c['stop']());}},{'priority':_0x5e8c('0x3b')});}}[_0x5e8c('0x21')](){const _0x2529b5=this[_0x5e8c('0x8')][_0x5e8c('0x23')][_0x5e8c('0x17')](_0x5e8c('0x44')),_0xfd0f69=this[_0x5e8c('0x8')][_0x5e8c('0x1b')][_0x5e8c('0x17')](_0x5e8c('0x39'));if(!_0x2529b5['isEnabled'])return!0x1;const _0x4103a6=_0xfd0f69[_0x5e8c('0x20')](this[_0x5e8c('0x8')][_0x5e8c('0x1')][_0x5e8c('0x9')][_0x5e8c('0x4a')]);for(const _0x58fe66 of _0x4103a6)for(const _0x1fde36 of _0x4103a6)if(_0x58fe66!=_0x1fde36&&!this[_0x5e8c('0x2c')](_0x58fe66,_0x1fde36))return!0x1;return!0x0;}[_0x5e8c('0x2c')](_0x5daca1,_0x239660){const _0x580246=this[_0x5e8c('0x8')][_0x5e8c('0x1b')][_0x5e8c('0x17')](_0x5e8c('0x1e')),_0xa86952=this[_0x5e8c('0x8')][_0x5e8c('0x1')][_0x5e8c('0x6')](_0x5daca1),_0x1cec9d=this['editor'][_0x5e8c('0x1')][_0x5e8c('0x6')](_0x239660),_0x4faf1a=new Set(),_0x4e3a2a=new Set();for(const _0x14518c of _0x580246[_0x5e8c('0x22')]())if((_0x5e8c('0x2d')==_0x14518c['type']||'deletion'==_0x14518c[_0x5e8c('0x4')]||_0x5e8c('0x44')==_0x14518c[_0x5e8c('0x25')])&&_0x14518c[_0x5e8c('0x36')])for(const _0x3810b7 of _0x14518c['getRanges']())_0x3810b7[_0x5e8c('0x30')](_0xa86952,!0x0)&&_0x4faf1a['add'](_0x14518c['type']+':'+_0x14518c[_0x5e8c('0x14')]['id']),_0x3810b7[_0x5e8c('0x30')](_0x1cec9d,!0x0)&&_0x4e3a2a[_0x5e8c('0x1d')](_0x14518c[_0x5e8c('0x4')]+':'+_0x14518c[_0x5e8c('0x14')]['id']);if(_0x4faf1a[_0x5e8c('0x3c')]!=_0x4e3a2a[_0x5e8c('0x3c')])return!0x1;for(const _0x36425a of _0x4faf1a)if(!_0x4e3a2a['has'](_0x36425a))return!0x1;return!0x0;}}
23
+ const _0x5910=['_descriptionFactory','model','_tablePostFixingSubtypes','TableEditing','mergeTableCellRight','cell','createRangeOn','format','fromRange','registerDescriptionCallback','mergeTableCellUp','createTableWalker','push','insertion','document','splitTableCellVertically','editor','$graveyard','_areSelectedCellsMergable','map','find','direction','deletion','getFirstPosition','commandName','set:isEnabled','execute','TableUtils','plugins','*Split\x20cell:*\x20vertically','stop','*Merge\x20cells*','formatBlock','horizontally','element','value','detach','TrackChangesEditing','findAncestor','*Split\x20cell:*\x20horizontally','markMultiRangeBlockFormat','subType','mergeTableCellDown','length','forceDefaultExecution','mergeTableCells','getSuggestions','commands','has','markBlockFormat','from','filter','enableCommand','containsRange','accept','locale','_suggestionFactory','selection','rootName','isEnabled','registerCustomCallback','author','add','type','_acceptFormatSuggestionCallbackFactory','get','splitTableCellHorizontally','setSelection','change','table','getSelectionAffectedTableCells','tableCell','mergeTableCellLeft','size','getRanges','_isForcedDefaultExecutionBlock'];(function(_0x559458,_0x591095){const _0x13bb0f=function(_0x55760b){while(--_0x55760b){_0x559458['push'](_0x559458['shift']());}};_0x13bb0f(++_0x591095);}(_0x5910,0x1cb));const _0x13bb=function(_0x559458,_0x591095){_0x559458=_0x559458-0x0;let _0x13bb0f=_0x5910[_0x559458];return _0x13bb0f;};import{Plugin as _0x37ab41}from'ckeditor5/src/core';import _0x522c26 from'./table';import{LiveRange as _0x2ab4ee}from'ckeditor5/src/engine';import{getTranslation as _0x591b62}from'../utils/common-translations';export default class mt extends _0x37ab41{static get['requires'](){return[_0x522c26];}['afterInit'](){const _0x53673f=this[_0x13bb('0xd')],_0x427a4b=_0x53673f[_0x13bb('0x4a')]['document'][_0x13bb('0x36')],_0x576ca4=_0x53673f[_0x13bb('0x34')];if(!_0x53673f[_0x13bb('0x19')][_0x13bb('0x2d')](_0x13bb('0x0')))return;const _0x10f6e2=_0x53673f['plugins'][_0x13bb('0x3e')](_0x13bb('0x22')),_0x5c3367=_0x53673f[_0x13bb('0x19')]['get']('TableUtils'),_0x13f70f=_0x53673f[_0x13bb('0x19')]['get'](_0x522c26);_0x13f70f[_0x13bb('0x4b')][_0x13bb('0x9')](_0x13bb('0x2a')),_0x10f6e2['enableCommand'](_0x13bb('0x2a'),()=>{const _0x24983=_0x5c3367[_0x13bb('0x43')](_0x53673f[_0x13bb('0x4a')]['document'][_0x13bb('0x36')]);_0x53673f['model'][_0x13bb('0x41')](()=>{_0x10f6e2[_0x13bb('0x25')](_0x24983,{'commandName':_0x13bb('0x2a'),'commandParams':[]},[],_0x13bb('0x2a'));});}),_0x53673f[_0x13bb('0x2c')][_0x13bb('0x3e')](_0x13bb('0x2a'))['on'](_0x13bb('0x17'),(_0x373ede,_0x5dfbdf)=>{_0x53673f[_0x13bb('0x2c')][_0x13bb('0x3e')]('trackChanges')[_0x13bb('0x20')]&&(_0x5dfbdf[_0x13bb('0x28')]>0x0&&_0x5dfbdf[_0x5dfbdf[_0x13bb('0x28')]-0x1]&&_0x5dfbdf[_0x5dfbdf[_0x13bb('0x28')]-0x1][_0x13bb('0x29')]||_0x10f6e2[_0x13bb('0x48')]||this[_0x13bb('0xf')]()||_0x373ede[_0x13bb('0x1b')]());},{'priority':'highest'});for(const _0x59acfe of['mergeTableCellUp','mergeTableCellRight',_0x13bb('0x27'),_0x13bb('0x45')]){const _0x2a65fd=_0x53673f[_0x13bb('0x2c')][_0x13bb('0x3e')](_0x59acfe);_0x10f6e2[_0x13bb('0x31')](_0x59acfe,()=>{const _0x1e584a=_0x53673f[_0x13bb('0x4a')]['document'][_0x13bb('0x36')]['getFirstPosition']()['getAncestors']()[_0x13bb('0x11')](_0x1e4850=>_0x1e4850['is'](_0x13bb('0x1f'),_0x13bb('0x44'))),_0x499e08=_0x2a65fd[_0x13bb('0x20')];_0x53673f['model'][_0x13bb('0x41')](()=>{_0x10f6e2[_0x13bb('0x25')]([_0x1e584a,_0x499e08],{'commandName':'mergeTableCells','commandParams':[]},[],_0x13bb('0x2a'));});});}for(const _0x58d6b4 of[_0x13bb('0xc'),_0x13bb('0x3f')]){const _0x19923c=_0x53673f[_0x13bb('0x2c')]['get'](_0x58d6b4);_0x10f6e2[_0x13bb('0x31')](_0x58d6b4,()=>{const _0x5d8578=_0x5c3367['getSelectionAffectedTableCells'](_0x53673f[_0x13bb('0x4a')]['document']['selection'])[0x0],_0x4a13a9=_0x5d8578[_0x13bb('0x23')](_0x13bb('0x42')),{column:_0x472c7d,row:_0x1634b2}=_0x5c3367['getCellLocation'](_0x5d8578);let _0x3c4da0=[];if(_0x13bb('0x1e')==_0x19923c[_0x13bb('0x12')]){const _0x3e8f00=_0x5c3367[_0x13bb('0x8')](_0x4a13a9,{'startRow':_0x1634b2,'endRow':_0x1634b2,'includeAllSlots':!0x0});_0x3c4da0=Array[_0x13bb('0x2f')](_0x3e8f00)[_0x13bb('0x10')](_0x5137b9=>_0x5137b9[_0x13bb('0x2')]);}else{const _0x544e97=_0x5c3367[_0x13bb('0x8')](_0x4a13a9,{'column':_0x472c7d,'includeAllSlots':!0x0});_0x3c4da0=Array[_0x13bb('0x2f')](_0x544e97)[_0x13bb('0x10')](_0x26120e=>_0x26120e['cell']);}_0x53673f[_0x13bb('0x4a')][_0x13bb('0x41')](_0x5ea129=>{_0x10f6e2[_0x13bb('0x2e')](_0x5ea129[_0x13bb('0x3')](_0x5d8578),{'commandName':_0x58d6b4,'commandParams':[]},_0x3c4da0,_0x58d6b4);});});}_0x10f6e2[_0x13bb('0x49')][_0x13bb('0x6')](_0x33dfcb=>{const {data:_0x25cf3e}=_0x33dfcb;if(_0x25cf3e)return _0x13bb('0x2a')==_0x25cf3e['commandName']?{'type':'format','content':_0x591b62(_0x576ca4,_0x13bb('0x1c'))}:void 0x0;}),_0x10f6e2[_0x13bb('0x49')][_0x13bb('0x6')](_0x52af98=>{const {data:_0x2c6b34}=_0x52af98;if(_0x2c6b34)return'splitTableCellVertically'==_0x2c6b34['commandName']?{'type':_0x13bb('0x4'),'content':_0x591b62(_0x576ca4,_0x13bb('0x1a'))}:_0x13bb('0x3f')==_0x2c6b34[_0x13bb('0x15')]?{'type':_0x13bb('0x4'),'content':_0x591b62(_0x576ca4,_0x13bb('0x24'))}:void 0x0;});const _0x1d0dab=_0x13f70f[_0x13bb('0x3d')]();for(const _0x37405b of[_0x13bb('0x7'),_0x13bb('0x1'),_0x13bb('0x27'),'mergeTableCellLeft'])_0x10f6e2[_0x13bb('0x35')][_0x13bb('0x39')](_0x13bb('0x1d'),_0x37405b,_0x13bb('0x33'),_0x1d0dab);for(const _0x2cc253 of[_0x13bb('0xc'),_0x13bb('0x3f')])_0x10f6e2[_0x13bb('0x35')][_0x13bb('0x39')](_0x13bb('0x1d'),_0x2cc253,'accept',_0x1d0dab);_0x10f6e2[_0x13bb('0x35')]['registerCustomCallback'](_0x13bb('0x1d'),_0x13bb('0x2a'),_0x13bb('0x33'),_0x2d89eb=>{_0x53673f[_0x13bb('0x4a')][_0x13bb('0x41')](_0x3d75f7=>{const _0x4214eb=Array['from'](_0x427a4b['getRanges']())['map'](_0x1a1056=>_0x2ab4ee[_0x13bb('0x5')](_0x1a1056));_0x3d75f7[_0x13bb('0x40')](_0x2d89eb),_0x53673f[_0x13bb('0x2c')][_0x13bb('0x3e')]('mergeTableCells')['refresh'](),_0x53673f[_0x13bb('0x17')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1b50b2=_0x4214eb[_0x13bb('0x30')](_0x2207ab=>_0x13bb('0xe')!=_0x2207ab['root'][_0x13bb('0x37')]);_0x1b50b2[_0x13bb('0x28')]>0x0&&_0x3d75f7['setSelection'](_0x1b50b2);for(const _0x35a7f6 of _0x4214eb)_0x35a7f6[_0x13bb('0x21')]();});});for(const _0x27c90a of['mergeTableCellUp',_0x13bb('0x27'),_0x13bb('0x45'),_0x13bb('0x1')]){const _0x105ce=_0x53673f['commands'][_0x13bb('0x3e')](_0x27c90a);_0x105ce['on'](_0x13bb('0x16'),(_0x131c87,_0x20bd90,_0x5df123)=>{if(_0x5df123){const _0x117ed4=_0x53673f[_0x13bb('0x4a')][_0x13bb('0xb')]['selection'][_0x13bb('0x14')]()['getAncestors']()['find'](_0x21aea1=>_0x21aea1['is'](_0x13bb('0x1f'),'tableCell'));this['_areMergableCells'](_0x105ce[_0x13bb('0x20')],_0x117ed4)||(_0x131c87['return']=!0x1,_0x131c87[_0x13bb('0x1b')]());}},{'priority':'low'});}}[_0x13bb('0xf')](){const _0x3943ee=this['editor']['commands'][_0x13bb('0x3e')](_0x13bb('0x2a')),_0x322eb2=this['editor'][_0x13bb('0x19')][_0x13bb('0x3e')](_0x13bb('0x18'));if(!_0x3943ee[_0x13bb('0x38')])return!0x1;const _0x1f96e6=_0x322eb2['getSelectionAffectedTableCells'](this[_0x13bb('0xd')][_0x13bb('0x4a')][_0x13bb('0xb')][_0x13bb('0x36')]);for(const _0x46613f of _0x1f96e6)for(const _0x5a2070 of _0x1f96e6)if(_0x46613f!=_0x5a2070&&!this['_areMergableCells'](_0x46613f,_0x5a2070))return!0x1;return!0x0;}['_areMergableCells'](_0x22cf50,_0xc82f2e){const _0x27c6bd=this[_0x13bb('0xd')][_0x13bb('0x19')][_0x13bb('0x3e')](_0x13bb('0x22')),_0x8df74b=this[_0x13bb('0xd')]['model']['createRangeOn'](_0x22cf50),_0x3117e8=this[_0x13bb('0xd')][_0x13bb('0x4a')][_0x13bb('0x3')](_0xc82f2e),_0x31b477=new Set(),_0x2aa5f8=new Set();for(const _0x53e03d of _0x27c6bd[_0x13bb('0x2b')]())if((_0x13bb('0xa')==_0x53e03d[_0x13bb('0x3c')]||_0x13bb('0x13')==_0x53e03d[_0x13bb('0x3c')]||'mergeTableCells'==_0x53e03d[_0x13bb('0x26')])&&_0x53e03d['isInContent'])for(const _0x35bf7f of _0x53e03d[_0x13bb('0x47')]())_0x35bf7f[_0x13bb('0x32')](_0x8df74b,!0x0)&&_0x31b477[_0x13bb('0x3b')](_0x53e03d['type']+':'+_0x53e03d['author']['id']),_0x35bf7f[_0x13bb('0x32')](_0x3117e8,!0x0)&&_0x2aa5f8['add'](_0x53e03d[_0x13bb('0x3c')]+':'+_0x53e03d[_0x13bb('0x3a')]['id']);if(_0x31b477[_0x13bb('0x46')]!=_0x2aa5f8['size'])return!0x1;for(const _0x51567f of _0x31b477)if(!_0x2aa5f8['has'](_0x51567f))return!0x1;return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x264a=['markBlockFormat','getSuggestionCallback','format','change','tableBorderColor','handleDiscardAction','getContainedElement','subType','getSuggestions','get','getSelectionAffectedTableCells','tableCellBorderStyle','*Format:*\x20change\x20table\x20properties','model','tableCellPadding','_handlePropertyChange','TableCellPropertiesEditing','_suggestionFactory','tableCellBorderWidth','nodeAfter','enqueueChange','tableCellProperties','registerCustomCallback','tableBorderStyle','*Format:*\x20change\x20table\x20cell\x20properties','getFirstPosition','tableCellWidth','table','data','enableCommand','document','getAttribute','start','locale','plugins','tableCellHorizontalAlignment','tableCellBorderColor','join','tableWidth','TablePropertiesEditing','selection','setAttribute','handleSuggestionDescription','discard','tableProperties','accept','has','formatBlock','tableCellHeight','findAncestor','tableCellBackgroundColor','_getSuggestion','TrackChangesEditing','commandParams','editor'];(function(_0x233e6e,_0x264a93){const _0x347979=function(_0x5cd2c3){while(--_0x5cd2c3){_0x233e6e['push'](_0x233e6e['shift']());}};_0x347979(++_0x264a93);}(_0x264a,0xf8));const _0x3479=function(_0x233e6e,_0x264a93){_0x233e6e=_0x233e6e-0x0;let _0x347979=_0x264a[_0x233e6e];return _0x347979;};import{Plugin as _0x264f34}from'ckeditor5/src/core';import{getTranslation as _0x26e3ed}from'../utils/common-translations';export default class It extends _0x264f34{constructor(_0x4116be){super(_0x4116be),this[_0x3479('0x10')]=[_0x3479('0x1f'),_0x3479('0x32'),'tableBorderWidth','tableAlignment',_0x3479('0xa'),'tableHeight','tableBackgroundColor'],this[_0x3479('0x30')]=[_0x3479('0x8'),_0x3479('0x26'),_0x3479('0x2d'),_0x3479('0x29'),_0x3479('0x35'),_0x3479('0x14'),_0x3479('0x16'),_0x3479('0x7'),'tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x312de5=this['editor'][_0x3479('0x6')][_0x3479('0x24')](_0x3479('0x18'));if(this[_0x3479('0x1a')]['plugins'][_0x3479('0x12')](_0x3479('0xb'))){for(const _0x38559f of this[_0x3479('0x10')])_0x312de5[_0x3479('0x1')](_0x38559f,(_0x226b14,_0x57c82d)=>{const _0x4fc610=this[_0x3479('0x1a')][_0x3479('0x28')]['document'][_0x3479('0xc')][_0x3479('0x34')]()[_0x3479('0x15')](_0x3479('0x36'));this[_0x3479('0x2a')](_0x38559f,[_0x4fc610],this[_0x3479('0x10')],_0x3479('0x10'),_0x226b14,_0x57c82d);});_0x312de5[_0x3479('0x2c')][_0x3479('0x31')]('formatBlock',_0x3479('0x10'),_0x3479('0x11'),_0x312de5[_0x3479('0x2c')][_0x3479('0x1c')](_0x3479('0x13'),null,'discard')),_0x312de5[_0x3479('0x2c')][_0x3479('0x31')](_0x3479('0x13'),'tableProperties',_0x3479('0xf'),(_0x401e47,_0x9da8d8)=>this[_0x3479('0x20')](this['tableProperties'],_0x401e47,_0x9da8d8)),_0x312de5[_0x3479('0x2c')][_0x3479('0x31')](_0x3479('0x13'),_0x3479('0x10'),_0x3479('0x9'),()=>!0x1);}if(this[_0x3479('0x1a')][_0x3479('0x6')][_0x3479('0x12')](_0x3479('0x2b'))){for(const _0xd20c88 of this['tableCellProperties'])_0x312de5[_0x3479('0x1')](_0xd20c88,(_0x568de9,_0x297487)=>{const _0x431a57=this[_0x3479('0x1a')]['plugins'][_0x3479('0x24')]('TableUtils')[_0x3479('0x25')](this[_0x3479('0x1a')]['model'][_0x3479('0x2')][_0x3479('0xc')]);this[_0x3479('0x2a')](_0xd20c88,_0x431a57,this[_0x3479('0x30')],_0x3479('0x30'),_0x568de9,_0x297487);});_0x312de5['_suggestionFactory'][_0x3479('0x31')](_0x3479('0x13'),_0x3479('0x30'),_0x3479('0x11'),_0x312de5[_0x3479('0x2c')][_0x3479('0x1c')]('formatBlock',null,_0x3479('0xf'))),_0x312de5[_0x3479('0x2c')]['registerCustomCallback'](_0x3479('0x13'),_0x3479('0x30'),_0x3479('0xf'),(_0x462365,_0x551a50)=>this['handleDiscardAction'](this['tableCellProperties'],_0x462365,_0x551a50)),_0x312de5[_0x3479('0x2c')][_0x3479('0x31')](_0x3479('0x13'),_0x3479('0x30'),'join',()=>!0x1);}_0x312de5['_descriptionFactory']['registerDescriptionCallback'](_0x3e2d29=>this[_0x3479('0xe')](_0x3e2d29));}[_0x3479('0x2a')](_0x50f075,_0x27dfaf,_0x22b183,_0x3d5a5e,_0x78644d,_0x290aa2){const _0x393073=this[_0x3479('0x1a')][_0x3479('0x6')][_0x3479('0x24')](_0x3479('0x18'));this[_0x3479('0x1a')]['model'][_0x3479('0x2f')](_0x290aa2['batch'],()=>{for(const _0x1b8b3a of _0x27dfaf){if(this['_getSuggestion'](_0x1b8b3a,_0x3d5a5e))_0x78644d(_0x290aa2);else{const _0x4a25c2={};for(const _0x2f843f of _0x22b183){const _0x1aa73d=_0x1b8b3a[_0x3479('0x3')](_0x2f843f);void 0x0!==_0x1aa73d&&(_0x4a25c2[_0x2f843f]=_0x1aa73d);}_0x78644d(_0x290aa2),_0x393073[_0x3479('0x1b')](_0x1b8b3a,{'commandParams':[_0x4a25c2]},[],_0x3d5a5e);}}});}[_0x3479('0x20')](_0x305a09,_0x4989a7,_0x2f4988){const _0x1fa92f=_0x4989a7[0x0][_0x3479('0x4')][_0x3479('0x2e')],_0x438b34=_0x2f4988[_0x3479('0x19')][0x0];this['editor']['model'][_0x3479('0x1e')](_0xe510da=>{for(const _0x191716 of _0x305a09)void 0x0!==_0x438b34[_0x191716]?_0xe510da[_0x3479('0xd')](_0x191716,_0x438b34[_0x191716],_0x1fa92f):_0xe510da['removeAttribute'](_0x191716,_0x1fa92f);});}['handleSuggestionDescription'](_0xe0d820){if(_0xe0d820[_0x3479('0x0')])switch(_0xe0d820[_0x3479('0x22')]){case'tableProperties':return{'type':_0x3479('0x1d'),'content':_0x26e3ed(this[_0x3479('0x1a')]['locale'],_0x3479('0x27'))};case _0x3479('0x30'):return{'type':'format','content':_0x26e3ed(this[_0x3479('0x1a')][_0x3479('0x5')],_0x3479('0x33'))};}}[_0x3479('0x17')](_0xc64b31,_0x36c4c3){const _0x12484b=this[_0x3479('0x1a')][_0x3479('0x6')][_0x3479('0x24')](_0x3479('0x18'));for(const _0x36cc10 of _0x12484b[_0x3479('0x23')]({'skipNotAttached':!0x0})){const _0x55087c=_0x36cc10[_0x3479('0x21')]();if(_0x36cc10[_0x3479('0x22')]===_0x36c4c3&&_0x55087c===_0xc64b31)return _0x36cc10;}return null;}}
23
+ const _0x4ba7=['join','registerCustomCallback','tableCellProperties','enableCommand','_suggestionFactory','tableCellPadding','removeAttribute','tableCellVerticalAlignment','TableCellPropertiesEditing','_handlePropertyChange','tableHeight','tableBackgroundColor','handleDiscardAction','tableAlignment','TrackChangesTableProperties','tableCellBorderWidth','data','format','enqueueChange','editor','_getSuggestion','tableCellHorizontalAlignment','tableBorderColor','start','tableCellBorderColor','getAttribute','getSuggestionCallback','getContainedElement','pluginName','plugins','commandParams','getFirstPosition','discard','afterInit','table','*Format:*\x20change\x20table\x20cell\x20properties','setAttribute','handleSuggestionDescription','tableProperties','selection','getSelectionAffectedTableCells','TablePropertiesEditing','change','model','*Format:*\x20change\x20table\x20properties','findAncestor','tableBorderWidth','get','TableUtils','has','subType','TrackChangesEditing','getSuggestions','accept','registerDescriptionCallback','formatBlock','tableWidth','locale','tableCellHeight','tableCellWidth','document'];(function(_0x5063a4,_0x4ba720){const _0x4df3af=function(_0x4b051d){while(--_0x4b051d){_0x5063a4['push'](_0x5063a4['shift']());}};_0x4df3af(++_0x4ba720);}(_0x4ba7,0x1b6));const _0x4df3=function(_0x5063a4,_0x4ba720){_0x5063a4=_0x5063a4-0x0;let _0x4df3af=_0x4ba7[_0x5063a4];return _0x4df3af;};import{Plugin as _0x3e56b8}from'ckeditor5/src/core';import{getTranslation as _0x37477f}from'../utils/common-translations';export default class It extends _0x3e56b8{constructor(_0x2e3371){super(_0x2e3371),this[_0x4df3('0x1b')]=[_0x4df3('0xb'),'tableBorderStyle',_0x4df3('0x23'),_0x4df3('0x2'),_0x4df3('0x2d'),_0x4df3('0x3c'),_0x4df3('0x0')],this[_0x4df3('0x34')]=[_0x4df3('0xd'),'tableCellBorderStyle',_0x4df3('0x4'),_0x4df3('0x37'),_0x4df3('0x30'),_0x4df3('0x2f'),'tableCellBackgroundColor',_0x4df3('0xa'),_0x4df3('0x39')];}static get[_0x4df3('0x11')](){return _0x4df3('0x3');}[_0x4df3('0x16')](){const _0x203bfd=this[_0x4df3('0x8')][_0x4df3('0x12')][_0x4df3('0x24')](_0x4df3('0x28'));if(this[_0x4df3('0x8')][_0x4df3('0x12')]['has'](_0x4df3('0x1e'))){for(const _0x248990 of this[_0x4df3('0x1b')])_0x203bfd[_0x4df3('0x35')](_0x248990,(_0x11fd8c,_0x4a897a)=>{const _0x4fd53a=this[_0x4df3('0x8')][_0x4df3('0x20')][_0x4df3('0x31')][_0x4df3('0x1c')][_0x4df3('0x14')]()[_0x4df3('0x22')](_0x4df3('0x17'));this['_handlePropertyChange'](_0x248990,[_0x4fd53a],this['tableProperties'],_0x4df3('0x1b'),_0x11fd8c,_0x4a897a);});_0x203bfd[_0x4df3('0x36')][_0x4df3('0x33')](_0x4df3('0x2c'),_0x4df3('0x1b'),_0x4df3('0x2a'),_0x203bfd['_suggestionFactory']['getSuggestionCallback'](_0x4df3('0x2c'),null,_0x4df3('0x15'))),_0x203bfd[_0x4df3('0x36')][_0x4df3('0x33')]('formatBlock',_0x4df3('0x1b'),_0x4df3('0x15'),(_0xaf72a0,_0x355253)=>this[_0x4df3('0x1')](this[_0x4df3('0x1b')],_0xaf72a0,_0x355253)),_0x203bfd[_0x4df3('0x36')]['registerCustomCallback'](_0x4df3('0x2c'),_0x4df3('0x1b'),_0x4df3('0x32'),()=>!0x1);}if(this['editor'][_0x4df3('0x12')][_0x4df3('0x26')](_0x4df3('0x3a'))){for(const _0x33554e of this['tableCellProperties'])_0x203bfd[_0x4df3('0x35')](_0x33554e,(_0x4ca592,_0x5a7edb)=>{const _0x196404=this[_0x4df3('0x8')][_0x4df3('0x12')]['get'](_0x4df3('0x25'))[_0x4df3('0x1d')](this[_0x4df3('0x8')]['model']['document']['selection']);this[_0x4df3('0x3b')](_0x33554e,_0x196404,this['tableCellProperties'],_0x4df3('0x34'),_0x4ca592,_0x5a7edb);});_0x203bfd[_0x4df3('0x36')]['registerCustomCallback'](_0x4df3('0x2c'),_0x4df3('0x34'),_0x4df3('0x2a'),_0x203bfd[_0x4df3('0x36')][_0x4df3('0xf')](_0x4df3('0x2c'),null,_0x4df3('0x15'))),_0x203bfd[_0x4df3('0x36')][_0x4df3('0x33')](_0x4df3('0x2c'),'tableCellProperties',_0x4df3('0x15'),(_0x14414f,_0x472364)=>this[_0x4df3('0x1')](this[_0x4df3('0x34')],_0x14414f,_0x472364)),_0x203bfd['_suggestionFactory'][_0x4df3('0x33')](_0x4df3('0x2c'),'tableCellProperties','join',()=>!0x1);}_0x203bfd['_descriptionFactory'][_0x4df3('0x2b')](_0x597ca1=>this['handleSuggestionDescription'](_0x597ca1));}[_0x4df3('0x3b')](_0x1fc7b5,_0x5c65e2,_0x20b061,_0x4b97a4,_0x410588,_0x46c70b){const _0x2e06ed=this[_0x4df3('0x8')]['plugins'][_0x4df3('0x24')](_0x4df3('0x28'));this[_0x4df3('0x8')]['model'][_0x4df3('0x7')](_0x46c70b['batch'],()=>{for(const _0x20e304 of _0x5c65e2){if(this[_0x4df3('0x9')](_0x20e304,_0x4b97a4))_0x410588(_0x46c70b);else{const _0x24a8a0={};for(const _0x13fe9c of _0x20b061){const _0x1743c6=_0x20e304[_0x4df3('0xe')](_0x13fe9c);void 0x0!==_0x1743c6&&(_0x24a8a0[_0x13fe9c]=_0x1743c6);}_0x410588(_0x46c70b),_0x2e06ed['markBlockFormat'](_0x20e304,{'commandParams':[_0x24a8a0]},[],_0x4b97a4);}}});}['handleDiscardAction'](_0x30aa9b,_0x5f35a0,_0x401d37){const _0x325fba=_0x5f35a0[0x0][_0x4df3('0xc')]['nodeAfter'],_0x3df365=_0x401d37[_0x4df3('0x13')][0x0];this[_0x4df3('0x8')][_0x4df3('0x20')][_0x4df3('0x1f')](_0x4b545f=>{for(const _0x1c6a46 of _0x30aa9b)void 0x0!==_0x3df365[_0x1c6a46]?_0x4b545f[_0x4df3('0x19')](_0x1c6a46,_0x3df365[_0x1c6a46],_0x325fba):_0x4b545f[_0x4df3('0x38')](_0x1c6a46,_0x325fba);});}[_0x4df3('0x1a')](_0xdb6fdc){if(_0xdb6fdc[_0x4df3('0x5')])switch(_0xdb6fdc[_0x4df3('0x27')]){case _0x4df3('0x1b'):return{'type':_0x4df3('0x6'),'content':_0x37477f(this['editor'][_0x4df3('0x2e')],_0x4df3('0x21'))};case _0x4df3('0x34'):return{'type':_0x4df3('0x6'),'content':_0x37477f(this[_0x4df3('0x8')][_0x4df3('0x2e')],_0x4df3('0x18'))};}}['_getSuggestion'](_0x26dfc6,_0x153e98){const _0x4372bc=this[_0x4df3('0x8')]['plugins']['get']('TrackChangesEditing');for(const _0x113783 of _0x4372bc[_0x4df3('0x29')]({'skipNotAttached':!0x0})){const _0x1e58bf=_0x113783[_0x4df3('0x10')]();if(_0x113783[_0x4df3('0x27')]===_0x153e98&&_0x1e58bf===_0x26dfc6)return _0x113783;}return null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41f3=['afterInit','title-content','locale','from','isEqual','isTouching','end','forward','editor','removeMarker','ELEMENT_TITLE','model','createRange','newRange','getChangedMarkers','getNearestSelectionRange','get','_splitMarkerName','suggestion','start','schema','registerPostFixer','has','Title','isCollapsed','plugins','TrackChangesEditing','element','updateMarker'];(function(_0x9f3626,_0x41f3e3){const _0x91fb5b=function(_0x223727){while(--_0x223727){_0x9f3626['push'](_0x9f3626['shift']());}};_0x91fb5b(++_0x41f3e3);}(_0x41f3,0x8d));const _0x91fb=function(_0x9f3626,_0x41f3e3){_0x9f3626=_0x9f3626-0x0;let _0x91fb5b=_0x41f3[_0x9f3626];return _0x91fb5b;};import{Plugin as _0x5efb28}from'ckeditor5/src/core';import{getTranslation as _0x274d7f}from'../utils/common-translations';export default class wt extends _0x5efb28{[_0x91fb('0x4')](){const _0x4fc8b2=this[_0x91fb('0xc')];if(!_0x4fc8b2[_0x91fb('0x0')][_0x91fb('0x1a')](_0x91fb('0x1b')))return;const _0x557924=_0x4fc8b2[_0x91fb('0x0')][_0x91fb('0x14')](_0x91fb('0x1'));_0x557924['_descriptionFactory']['registerElementLabel'](_0x91fb('0x5'),()=>_0x274d7f(_0x4fc8b2[_0x91fb('0x6')],_0x91fb('0xe'))),_0x4fc8b2[_0x91fb('0xf')]['document'][_0x91fb('0x19')](_0x598458=>{let _0x7640f3=!0x1;const _0x3dcc14=Array[_0x91fb('0x7')](_0x4fc8b2[_0x91fb('0xf')]['document']['differ'][_0x91fb('0x12')]());for(const {name:_0x180df2,data:_0x8f2d57}of _0x3dcc14){const {group:_0x3bc5be}=_0x557924[_0x91fb('0x15')](_0x180df2);if(_0x91fb('0x16')!==_0x3bc5be||!_0x8f2d57[_0x91fb('0x11')])continue;const _0x5a2a95=_0x8f2d57['newRange'],_0x29d5ae=_0x5a2a95[_0x91fb('0xa')]['nodeBefore'];if(!_0x29d5ae||!_0x29d5ae['is'](_0x91fb('0x2'),_0x91fb('0x5')))continue;if(!_0x5a2a95[_0x91fb('0x17')][_0x91fb('0x9')](_0x5a2a95['end']))continue;const _0x480e41=_0x4fc8b2['model'][_0x91fb('0x18')][_0x91fb('0x13')](_0x5a2a95[_0x91fb('0xa')],_0x91fb('0xb'));if(_0x480e41&&_0x480e41[_0x91fb('0x1c')]){const _0x5e3e05=_0x598458[_0x91fb('0x10')](_0x5a2a95[_0x91fb('0x17')],_0x480e41[_0x91fb('0x17')]);_0x5e3e05[_0x91fb('0x8')](_0x5a2a95)||(_0x598458[_0x91fb('0x3')](_0x180df2,{'range':_0x5e3e05}),_0x7640f3=!0x0);}_0x7640f3||(_0x598458[_0x91fb('0xd')](_0x180df2),_0x7640f3=!0x0);}return _0x7640f3;});}}
23
+ const _0x1d6c=['element','registerPostFixer','registerElementLabel','ELEMENT_TITLE','_splitMarkerName','get','differ','start','isTouching','TrackChangesEditing','nodeBefore','_descriptionFactory','document','locale','model','from','title-content','Title','removeMarker','isCollapsed','editor','getNearestSelectionRange','schema','getChangedMarkers','newRange','plugins','end','afterInit'];(function(_0x4a4851,_0x1d6cb4){const _0x5a0296=function(_0x29d626){while(--_0x29d626){_0x4a4851['push'](_0x4a4851['shift']());}};_0x5a0296(++_0x1d6cb4);}(_0x1d6c,0x77));const _0x5a02=function(_0x4a4851,_0x1d6cb4){_0x4a4851=_0x4a4851-0x0;let _0x5a0296=_0x1d6c[_0x4a4851];return _0x5a0296;};import{Plugin as _0x1148de}from'ckeditor5/src/core';import{getTranslation as _0x3b4727}from'../utils/common-translations';export default class wt extends _0x1148de{[_0x5a02('0x14')](){const _0x19c741=this[_0x5a02('0xd')];if(!_0x19c741[_0x5a02('0x12')]['has'](_0x5a02('0xa')))return;const _0x7b4f40=_0x19c741[_0x5a02('0x12')][_0x5a02('0x1a')](_0x5a02('0x2'));_0x7b4f40[_0x5a02('0x4')][_0x5a02('0x17')](_0x5a02('0x9'),()=>_0x3b4727(_0x19c741[_0x5a02('0x6')],_0x5a02('0x18'))),_0x19c741[_0x5a02('0x7')]['document'][_0x5a02('0x16')](_0x54995b=>{let _0x58018b=!0x1;const _0x35d0db=Array[_0x5a02('0x8')](_0x19c741[_0x5a02('0x7')][_0x5a02('0x5')][_0x5a02('0x1b')][_0x5a02('0x10')]());for(const {name:_0x62360d,data:_0x42e677}of _0x35d0db){const {group:_0x24d2d3}=_0x7b4f40[_0x5a02('0x19')](_0x62360d);if('suggestion'!==_0x24d2d3||!_0x42e677['newRange'])continue;const _0x22456e=_0x42e677[_0x5a02('0x11')],_0x148568=_0x22456e[_0x5a02('0x13')][_0x5a02('0x3')];if(!_0x148568||!_0x148568['is'](_0x5a02('0x15'),_0x5a02('0x9')))continue;if(!_0x22456e['start'][_0x5a02('0x1')](_0x22456e[_0x5a02('0x13')]))continue;const _0x4bf1d6=_0x19c741[_0x5a02('0x7')][_0x5a02('0xf')][_0x5a02('0xe')](_0x22456e[_0x5a02('0x13')],'forward');if(_0x4bf1d6&&_0x4bf1d6[_0x5a02('0xc')]){const _0x5e8162=_0x54995b['createRange'](_0x22456e[_0x5a02('0x0')],_0x4bf1d6[_0x5a02('0x0')]);_0x5e8162['isEqual'](_0x22456e)||(_0x54995b['updateMarker'](_0x62360d,{'range':_0x5e8162}),_0x58018b=!0x0);}_0x58018b||(_0x54995b[_0x5a02('0xb')](_0x62360d),_0x58018b=!0x0);}return _0x58018b;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9fa7=['undo','get','UndoEditing','enableCommand','TrackChangesEditing','redo','afterInit'];(function(_0x5054bf,_0x9fa7a0){const _0x4757e3=function(_0xe528bc){while(--_0xe528bc){_0x5054bf['push'](_0x5054bf['shift']());}};_0x4757e3(++_0x9fa7a0);}(_0x9fa7,0x1b5));const _0x4757=function(_0x5054bf,_0x9fa7a0){_0x5054bf=_0x5054bf-0x0;let _0x4757e3=_0x9fa7[_0x5054bf];return _0x4757e3;};import{Plugin as _0x28900d}from'ckeditor5/src/core';export default class yt extends _0x28900d{[_0x4757('0x3')](){const _0xa9b68f=this['editor'],_0x125c61=_0xa9b68f['plugins'][_0x4757('0x5')](_0x4757('0x1'));_0xa9b68f['plugins']['has'](_0x4757('0x6'))&&(_0x125c61[_0x4757('0x0')](_0x4757('0x4')),_0x125c61[_0x4757('0x0')](_0x4757('0x2')));}}
23
+ const _0xa766=['enableCommand','plugins','TrackChangesEditing','UndoEditing','undo','afterInit','get','editor'];(function(_0x15f101,_0xa7663a){const _0x59889f=function(_0x3968e3){while(--_0x3968e3){_0x15f101['push'](_0x15f101['shift']());}};_0x59889f(++_0xa7663a);}(_0xa766,0xc0));const _0x5988=function(_0x15f101,_0xa7663a){_0x15f101=_0x15f101-0x0;let _0x59889f=_0xa766[_0x15f101];return _0x59889f;};import{Plugin as _0x5bddb8}from'ckeditor5/src/core';export default class yt extends _0x5bddb8{[_0x5988('0x5')](){const _0x24a53e=this[_0x5988('0x7')],_0x205917=_0x24a53e['plugins'][_0x5988('0x6')](_0x5988('0x2'));_0x24a53e[_0x5988('0x1')]['has'](_0x5988('0x3'))&&(_0x205917[_0x5988('0x0')](_0x5988('0x4')),_0x205917['enableCommand']('redo'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10ff=['isContent','schema','markerRange','bindElementToMarker','TrackChangesEditing','hasAttribute','get','isLimit','getWalker','getItems','push','span','isAtEnd','includes','item','addHighlight','getAttribute','previousPosition','elementEnd','toViewElement','activeMarkers','markerName','element','nextSibling','isBlock','listItem','writer','insert','createUIElement','mapper','listIndent'];(function(_0x391dc6,_0x10ff87){const _0x555a98=function(_0x1c8b64){while(--_0x1c8b64){_0x391dc6['push'](_0x391dc6['shift']());}};_0x555a98(++_0x10ff87);}(_0x10ff,0x154));const _0x555a=function(_0x391dc6,_0x10ff87){_0x391dc6=_0x391dc6-0x0;let _0x555a98=_0x10ff[_0x391dc6];return _0x555a98;};export function getRangesWithAttribute(_0x457a74,_0x4e701e,_0x17aff2){const _0x2615e0=[];for(const _0xc0c53b of _0x4e701e[_0x555a('0xa')]())_0xc0c53b[_0x555a('0x6')](_0x457a74)&&_0x2615e0[_0x555a('0xb')](_0x17aff2['createRangeOn'](_0xc0c53b));return _0x2615e0;}export function getElementsAffectedByListItemRename(_0x2ff21c){const _0x3441d0=[];if(_0x2ff21c['is'](_0x555a('0x17'),_0x555a('0x1a'))){let _0x3de319=_0x2ff21c[_0x555a('0x18')];for(;_0x3de319&&_0x3de319['is'](_0x555a('0x17'),_0x555a('0x1a'))&&_0x3de319[_0x555a('0x11')](_0x555a('0x0'))>0x0;)_0x3441d0[_0x555a('0xb')](_0x3de319),_0x3de319=_0x3de319[_0x555a('0x18')];}return _0x3441d0;}export function downcastSplitMergeMarker(_0x2f6628,_0xbcbf0a,{showActiveMarker:_0x44d7de=!0x0}={}){const _0x130a8f=_0x2f6628['plugins'][_0x555a('0x7')](_0x555a('0x5'));return(_0x525d07,_0x271edc,_0x4529a6)=>{if(!_0x4529a6['consumable']['test'](_0x271edc[_0x555a('0x3')],_0x525d07['name']))return;const _0x4448a0=_0x271edc[_0x555a('0x3')][_0x555a('0x9')](),_0x4458f3=_0x271edc[_0x555a('0x3')]['start'],_0x37b3ae=_0x2f6628['model'][_0x555a('0x2')];let _0x3688a6=null,_0x4fabed=null,_0x26eb44=!0x1,_0x58aac4=!0x1;for(const _0x466931 of _0x4448a0){const _0x2f5dd1=_0x466931[_0x555a('0xf')];_0x26eb44=_0x26eb44||_0x37b3ae[_0x555a('0x1')](_0x2f5dd1);const _0x52e590=_0x4529a6[_0x555a('0x1e')][_0x555a('0x14')](_0x2f5dd1);if(_0x52e590&&_0x52e590['getCustomProperty'](_0x555a('0x10')))return;_0x555a('0x13')==_0x466931['type']&&(_0x37b3ae[_0x555a('0x19')](_0x2f5dd1)&&!_0x37b3ae[_0x555a('0x8')](_0x2f5dd1)&&(_0x2f5dd1[_0x555a('0x18')]||_0x4458f3[_0x555a('0xd')]?_0x3688a6&&_0x3688a6['parent']==_0x2f5dd1||(_0x3688a6=_0x2f5dd1,_0xf17379(_0x466931[_0x555a('0x12')]),_0x58aac4=!0x0):_0x4fabed=_0x4fabed||_0x466931['previousPosition']));}function _0xf17379(_0x49e073){const _0x1601fe=_0x4529a6[_0x555a('0x1b')][_0x555a('0x1d')](_0x555a('0xc'),{'class':'ck-suggestion-marker-'+_0xbcbf0a}),_0x4fb16a=_0x4529a6[_0x555a('0x1e')]['toViewPosition'](_0x49e073);_0x44d7de&&_0x130a8f[_0x555a('0x15')][_0x555a('0xe')](_0x271edc[_0x555a('0x16')])&&_0x4529a6['writer']['addClass']('ck-suggestion-marker--active',_0x1601fe),_0x4529a6[_0x555a('0x1b')][_0x555a('0x1c')](_0x4fb16a,_0x1601fe),_0x4529a6[_0x555a('0x1e')][_0x555a('0x4')](_0x1601fe,_0x271edc[_0x555a('0x16')]);}_0x26eb44||_0x58aac4||!_0x4fabed||_0xf17379(_0x4fabed);};}
23
+ const _0x1edc=['span','isBlock','listItem','createUIElement','getAttribute','ck-suggestion-marker-','markerName','TrackChangesEditing','get','includes','toViewElement','isLimit','insert','createRangeOn','previousPosition','listIndent','parent','writer','consumable','mapper','isContent','name','item','bindElementToMarker','nextSibling','push','ck-suggestion-marker--active','plugins','toViewPosition','test','markerRange','getItems','type','activeMarkers','element'];(function(_0x26e2a7,_0x1edc98){const _0x7b5ffe=function(_0x161ca6){while(--_0x161ca6){_0x26e2a7['push'](_0x26e2a7['shift']());}};_0x7b5ffe(++_0x1edc98);}(_0x1edc,0x107));const _0x7b5f=function(_0x26e2a7,_0x1edc98){_0x26e2a7=_0x26e2a7-0x0;let _0x7b5ffe=_0x1edc[_0x26e2a7];return _0x7b5ffe;};export function getRangesWithAttribute(_0x1deeaa,_0x169755,_0x374149){const _0x5dec77=[];for(const _0x378237 of _0x169755[_0x7b5f('0xd')]())_0x378237['hasAttribute'](_0x1deeaa)&&_0x5dec77[_0x7b5f('0x7')](_0x374149[_0x7b5f('0x1e')](_0x378237));return _0x5dec77;}export function getElementsAffectedByListItemRename(_0x219a86){const _0x184814=[];if(_0x219a86['is'](_0x7b5f('0x10'),_0x7b5f('0x13'))){let _0x4c68d5=_0x219a86['nextSibling'];for(;_0x4c68d5&&_0x4c68d5['is'](_0x7b5f('0x10'),'listItem')&&_0x4c68d5[_0x7b5f('0x15')](_0x7b5f('0x20'))>0x0;)_0x184814['push'](_0x4c68d5),_0x4c68d5=_0x4c68d5[_0x7b5f('0x6')];}return _0x184814;}export function downcastSplitMergeMarker(_0x1f5f2d,_0x4624b8,{showActiveMarker:_0x182060=!0x0}={}){const _0x39981c=_0x1f5f2d[_0x7b5f('0x9')][_0x7b5f('0x19')](_0x7b5f('0x18'));return(_0x28555b,_0x518706,_0x3a8a43)=>{if(!_0x3a8a43[_0x7b5f('0x0')][_0x7b5f('0xb')](_0x518706[_0x7b5f('0xc')],_0x28555b[_0x7b5f('0x3')]))return;const _0x1b1f83=_0x518706[_0x7b5f('0xc')]['getWalker'](),_0x3c7211=_0x518706[_0x7b5f('0xc')]['start'],_0x4fee0a=_0x1f5f2d['model']['schema'];let _0x1c6edb=null,_0x1608c6=null,_0x1aff7b=!0x1,_0x408d3a=!0x1;for(const _0x2aad85 of _0x1b1f83){const _0x4bb188=_0x2aad85[_0x7b5f('0x4')];_0x1aff7b=_0x1aff7b||_0x4fee0a[_0x7b5f('0x2')](_0x4bb188);const _0x4b0ea4=_0x3a8a43['mapper'][_0x7b5f('0x1b')](_0x4bb188);if(_0x4b0ea4&&_0x4b0ea4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2aad85[_0x7b5f('0xe')]&&(_0x4fee0a[_0x7b5f('0x12')](_0x4bb188)&&!_0x4fee0a[_0x7b5f('0x1c')](_0x4bb188)&&(_0x4bb188['nextSibling']||_0x3c7211['isAtEnd']?_0x1c6edb&&_0x1c6edb[_0x7b5f('0x21')]==_0x4bb188||(_0x1c6edb=_0x4bb188,_0x5444aa(_0x2aad85[_0x7b5f('0x1f')]),_0x408d3a=!0x0):_0x1608c6=_0x1608c6||_0x2aad85[_0x7b5f('0x1f')]));}function _0x5444aa(_0x25a46b){const _0x215bb7=_0x3a8a43[_0x7b5f('0x22')][_0x7b5f('0x14')](_0x7b5f('0x11'),{'class':_0x7b5f('0x16')+_0x4624b8}),_0x26e694=_0x3a8a43[_0x7b5f('0x1')][_0x7b5f('0xa')](_0x25a46b);_0x182060&&_0x39981c[_0x7b5f('0xf')][_0x7b5f('0x1a')](_0x518706[_0x7b5f('0x17')])&&_0x3a8a43[_0x7b5f('0x22')]['addClass'](_0x7b5f('0x8'),_0x215bb7),_0x3a8a43[_0x7b5f('0x22')][_0x7b5f('0x1d')](_0x26e694,_0x215bb7),_0x3a8a43[_0x7b5f('0x1')][_0x7b5f('0x5')](_0x215bb7,_0x518706[_0x7b5f('0x17')]);}_0x1aff7b||_0x408d3a||!_0x1608c6||_0x5444aa(_0x1608c6);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x26a9=['getMarkers','onAttributesChange','decorate','setAttribute','addRange','nodeBefore','onDiscard','substr','change','get','type','getContainedElement','add','toJSON','commentThread','markers','_onAccept','isIntersecting','removeAttribute','start','attributes','createdAt','isInContent','discard','removeMarker','creator','_onDiscard','from','push','getRanges','subType','split','next','getRange','authoredAt','hasComments','_model','getMultiRangeId','removeMarkers','onAccept','_markerNames','_saved','_onAttributesChange','length','head','author','filter','data','set','getMarkerNames','end','isIntersectingWithRange','getFirstMarker','map','accept','previous'];(function(_0x8e1a45,_0x26a936){const _0x7d93c3=function(_0x6ce4d){while(--_0x6ce4d){_0x8e1a45['push'](_0x8e1a45['shift']());}};_0x7d93c3(++_0x26a936);}(_0x26a9,0x89));const _0x7d93=function(_0x8e1a45,_0x26a936){_0x8e1a45=_0x8e1a45-0x0;let _0x7d93c3=_0x26a9[_0x8e1a45];return _0x7d93c3;};import{Element as _0x1fdb3a}from'ckeditor5/src/engine';import{ObservableMixin as _0x3719cf,uid as _0x567783}from'ckeditor5/src/utils';import{cloneDeep as _0x4d91a6,isEqual as _0x30739d,set as _0x2f742c,unset as _0x4343d6}from'lodash-es';export default class u extends _0x3719cf(){constructor(_0x1b82a2,_0x2c0f96){super(),this['id']=_0x2c0f96['id'],this[_0x7d93('0x29')]=_0x2c0f96[_0x7d93('0x29')],this[_0x7d93('0x5')]=_0x2c0f96[_0x7d93('0x5')]||null,this[_0x7d93('0x14')]=_0x2c0f96[_0x7d93('0x14')],this[_0x7d93('0x0')]=_0x2c0f96[_0x7d93('0x0')]||_0x2c0f96['author'],this['isExternal']=Boolean(_0x2c0f96['attributes']&&_0x2c0f96['attributes']['@external']),this[_0x7d93('0x16')]=null,this[_0x7d93('0xb')]=_0x1b82a2,this[_0x7d93('0x2f')]=_0x2c0f96[_0x7d93('0xe')],this[_0x7d93('0x1')]=_0x2c0f96[_0x7d93('0x25')],this[_0x7d93('0x11')]=_0x2c0f96[_0x7d93('0x20')],this[_0x7d93('0xf')]=new Set(),this[_0x7d93('0x34')]=null,this[_0x7d93('0x17')](_0x7d93('0x9'),null),this[_0x7d93('0x17')]('attributes',_0x2c0f96[_0x7d93('0x33')]||{}),this['set']('previous',null),this[_0x7d93('0x17')](_0x7d93('0x7'),null),this['set'](_0x7d93('0x2d'),null),this[_0x7d93('0x17')](_0x7d93('0x10'),!0x1),this[_0x7d93('0x21')](_0x7d93('0x1d')),this[_0x7d93('0x21')](_0x7d93('0x36'));}get[_0x7d93('0x13')](){let _0x4dddaf=this;for(;_0x4dddaf[_0x7d93('0x1e')];)_0x4dddaf=_0x4dddaf[_0x7d93('0x1e')];return _0x4dddaf;}get[_0x7d93('0xa')](){return!!this['commentThread']&&this[_0x7d93('0x2d')][_0x7d93('0x12')]>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array[_0x7d93('0x2')](this[_0x7d93('0xf')])[0x0][_0x7d93('0x6')](':')['length'];}get[_0x7d93('0x35')](){return null!==this[_0x7d93('0x1b')]();}['addMarkerName'](_0x3f608d){this[_0x7d93('0xf')][_0x7d93('0x2b')](_0x3f608d);}[_0x7d93('0x18')](){return Array['from'](this[_0x7d93('0xf')]);}[_0x7d93('0x1f')](){return this[_0x7d93('0x18')]()['map'](_0x240d8b=>this['_model'][_0x7d93('0x2e')][_0x7d93('0x28')](_0x240d8b))[_0x7d93('0x15')](_0x1c75cf=>_0x1c75cf);}[_0x7d93('0x1b')](){return this[_0x7d93('0x1f')]()[0x0]||null;}[_0x7d93('0xd')](){this[_0x7d93('0xb')]['change'](_0x2bfb37=>{for(const _0x481b32 of this[_0x7d93('0x1f')]())_0x2bfb37[_0x7d93('0x37')](_0x481b32);}),this['_markerNames']['clear']();}[_0x7d93('0x37')](_0xbddf03){this[_0x7d93('0xb')][_0x7d93('0x27')](_0x2152a6=>{_0x2152a6[_0x7d93('0x37')](_0xbddf03);}),this[_0x7d93('0xf')]['delete'](_0xbddf03);}[_0x7d93('0x23')](_0x5a2967){const _0xc60b80='suggestion:'+this[_0x7d93('0x29')]+':'+this['subType']+':'+this['id']+':'+this[_0x7d93('0x0')]['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xc60b80),this['_model'][_0x7d93('0x27')](_0x32af94=>{_0x32af94['addMarker'](_0xc60b80,{'range':_0x5a2967,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x7d93('0x1a')](_0x3ba00d){for(const _0x2c8840 of this['getRanges']())if(_0x2c8840[_0x7d93('0x30')](_0x3ba00d))return!0x0;return!0x1;}[_0x7d93('0x4')](){return this[_0x7d93('0x1f')]()[_0x7d93('0x1c')](_0x297c31=>_0x297c31[_0x7d93('0x8')]());}['getItems'](){return this[_0x7d93('0x4')]()['reduce']((_0x4c7854,_0x2932f8)=>[..._0x4c7854,..._0x2932f8['getItems']()],[]);}['getFirstRange'](){var _0x5b4c4c;return(null===(_0x5b4c4c=this[_0x7d93('0x1b')]())||void 0x0===_0x5b4c4c?void 0x0:_0x5b4c4c[_0x7d93('0x8')]())||null;}[_0x7d93('0x2a')](){const _0x11c830=this['getRanges']();if(0x1!=_0x11c830['length'])return null;const _0x526465=_0x11c830[0x0],_0x38ce04=_0x526465[_0x7d93('0x32')]['nodeAfter'],_0x211442=_0x526465[_0x7d93('0x19')][_0x7d93('0x24')];return _0x38ce04 instanceof _0x1fdb3a?_0x38ce04!=_0x211442?null:_0x38ce04:null;}[_0x7d93('0x1d')](){this[_0x7d93('0x2f')](this[_0x7d93('0x4')](),this['data'],this[_0x7d93('0x33')]),this[_0x7d93('0xd')]();}[_0x7d93('0x36')](){this['_onDiscard'](this[_0x7d93('0x4')](),this[_0x7d93('0x16')],this['attributes']),this[_0x7d93('0xd')]();}['getAllAdjacentSuggestions'](){const _0x8774e6=[];let _0x3d484f=this[_0x7d93('0x13')];for(;_0x3d484f;)_0x8774e6[_0x7d93('0x3')](_0x3d484f),_0x3d484f=_0x3d484f[_0x7d93('0x7')];return _0x8774e6;}[_0x7d93('0x22')](_0x47d7aa,_0x42501f){const _0xc45324=_0x4d91a6(this[_0x7d93('0x33')]);_0x2f742c(_0xc45324,_0x47d7aa,_0x42501f),_0x30739d(_0xc45324,this[_0x7d93('0x33')])||(this['attributes']=_0xc45324,this[_0x7d93('0x11')](_0xc45324));}[_0x7d93('0x31')](_0x13d583){const _0x2afbdc=_0x4d91a6(this[_0x7d93('0x33')]);_0x4343d6(_0x2afbdc,_0x13d583),_0x30739d(_0x2afbdc,this[_0x7d93('0x33')])||(this[_0x7d93('0x33')]=_0x2afbdc,this['_onAttributesChange'](this['attributes']));}[_0x7d93('0x2c')](){return{'id':this['id'],'type':this[_0x7d93('0x5')]?this[_0x7d93('0x29')]+':'+this[_0x7d93('0x5')]:this[_0x7d93('0x29')],'authorId':this[_0x7d93('0x0')]['id'],'createdAt':this[_0x7d93('0x34')],'hasComments':this[_0x7d93('0xa')],'data':this[_0x7d93('0x16')],'attributes':this['attributes']};}static[_0x7d93('0xc')](){return _0x567783()[_0x7d93('0x26')](0x1,0x5);}}
23
+ const _0x2f35=['push','accept','head','discard','createdAt','getMarkers','getMarkerNames','_saved','getContainedElement','onAccept','_onAccept','previous','isMultiRange','getAllAdjacentSuggestions','delete','nodeAfter','_onDiscard','removeAttribute','removeMarkers','author','attributes','clear','decorate','addMarker','removeMarker','creator','setAttribute','change','markers','authoredAt','size','getRanges','data','hasComments','reduce','subType','toJSON','map','filter','isInContent','add','getMultiRangeId','isIntersecting','addMarkerName','addRange','nodeBefore','getFirstMarker','set','onAttributesChange','getItems','_markerNames','length','getRange','commentThread','from','type','isIntersectingWithRange','_model','_onAttributesChange','onDiscard'];(function(_0x164fb6,_0x2f354a){const _0x3ff9b4=function(_0x5e25fc){while(--_0x5e25fc){_0x164fb6['push'](_0x164fb6['shift']());}};_0x3ff9b4(++_0x2f354a);}(_0x2f35,0xc1));const _0x3ff9=function(_0x164fb6,_0x2f354a){_0x164fb6=_0x164fb6-0x0;let _0x3ff9b4=_0x2f35[_0x164fb6];return _0x3ff9b4;};import{Element as _0x732472}from'ckeditor5/src/engine';import{ObservableMixin as _0x357297,uid as _0x43d692}from'ckeditor5/src/utils';import{cloneDeep as _0x30a10f,isEqual as _0x3c7654,set as _0x395f0d,unset as _0x313dce}from'lodash-es';export default class u extends _0x357297(){constructor(_0x339feb,_0x2f99f5){super(),this['id']=_0x2f99f5['id'],this[_0x3ff9('0x2a')]=_0x2f99f5[_0x3ff9('0x2a')],this[_0x3ff9('0x16')]=_0x2f99f5[_0x3ff9('0x16')]||null,this[_0x3ff9('0x6')]=_0x2f99f5['author'],this['creator']=_0x2f99f5['creator']||_0x2f99f5['author'],this['isExternal']=Boolean(_0x2f99f5[_0x3ff9('0x7')]&&_0x2f99f5[_0x3ff9('0x7')]['@external']),this[_0x3ff9('0x13')]=null,this['_model']=_0x339feb,this['_onAccept']=_0x2f99f5[_0x3ff9('0x38')],this[_0x3ff9('0x3')]=_0x2f99f5[_0x3ff9('0x2e')],this[_0x3ff9('0x2d')]=_0x2f99f5[_0x3ff9('0x23')],this['_markerNames']=new Set(),this['createdAt']=null,this['set'](_0x3ff9('0x10'),null),this[_0x3ff9('0x22')]('attributes',_0x2f99f5['attributes']||{}),this[_0x3ff9('0x22')](_0x3ff9('0x3a'),null),this[_0x3ff9('0x22')]('next',null),this[_0x3ff9('0x22')](_0x3ff9('0x28'),null),this[_0x3ff9('0x22')](_0x3ff9('0x36'),!0x1),this['decorate'](_0x3ff9('0x30')),this[_0x3ff9('0x9')](_0x3ff9('0x32'));}get['head'](){let _0x4d388b=this;for(;_0x4d388b[_0x3ff9('0x3a')];)_0x4d388b=_0x4d388b[_0x3ff9('0x3a')];return _0x4d388b;}get[_0x3ff9('0x14')](){return!!this[_0x3ff9('0x28')]&&this[_0x3ff9('0x28')][_0x3ff9('0x26')]>0x0;}get[_0x3ff9('0x3b')](){if(0x0==this[_0x3ff9('0x25')][_0x3ff9('0x11')])return!0x1;return 0x6==Array[_0x3ff9('0x29')](this[_0x3ff9('0x25')])[0x0]['split'](':')[_0x3ff9('0x26')];}get[_0x3ff9('0x1a')](){return null!==this['getFirstMarker']();}[_0x3ff9('0x1e')](_0x36ae12){this[_0x3ff9('0x25')][_0x3ff9('0x1b')](_0x36ae12);}[_0x3ff9('0x35')](){return Array[_0x3ff9('0x29')](this[_0x3ff9('0x25')]);}['getMarkers'](){return this[_0x3ff9('0x35')]()[_0x3ff9('0x18')](_0x401243=>this[_0x3ff9('0x2c')][_0x3ff9('0xf')]['get'](_0x401243))[_0x3ff9('0x19')](_0x419c8a=>_0x419c8a);}[_0x3ff9('0x21')](){return this[_0x3ff9('0x34')]()[0x0]||null;}[_0x3ff9('0x5')](){this[_0x3ff9('0x2c')][_0x3ff9('0xe')](_0x2b2ac9=>{for(const _0x389dec of this['getMarkers']())_0x2b2ac9[_0x3ff9('0xb')](_0x389dec);}),this[_0x3ff9('0x25')][_0x3ff9('0x8')]();}[_0x3ff9('0xb')](_0x3f908b){this[_0x3ff9('0x2c')][_0x3ff9('0xe')](_0x39e7d4=>{_0x39e7d4[_0x3ff9('0xb')](_0x3f908b);}),this['_markerNames'][_0x3ff9('0x1')](_0x3f908b);}[_0x3ff9('0x1f')](_0x1ac774){const _0x498f72='suggestion:'+this['type']+':'+this[_0x3ff9('0x16')]+':'+this['id']+':'+this[_0x3ff9('0xc')]['id']+':'+u[_0x3ff9('0x1c')]();this[_0x3ff9('0x1e')](_0x498f72),this[_0x3ff9('0x2c')][_0x3ff9('0xe')](_0x513eb4=>{_0x513eb4[_0x3ff9('0xa')](_0x498f72,{'range':_0x1ac774,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3ff9('0x2b')](_0x237a89){for(const _0x4fc1af of this['getRanges']())if(_0x4fc1af[_0x3ff9('0x1d')](_0x237a89))return!0x0;return!0x1;}[_0x3ff9('0x12')](){return this[_0x3ff9('0x34')]()[_0x3ff9('0x18')](_0xd0683e=>_0xd0683e[_0x3ff9('0x27')]());}[_0x3ff9('0x24')](){return this[_0x3ff9('0x12')]()[_0x3ff9('0x15')]((_0x4d19ab,_0x47dc94)=>[..._0x4d19ab,..._0x47dc94[_0x3ff9('0x24')]()],[]);}['getFirstRange'](){var _0xcb7361;return(null===(_0xcb7361=this[_0x3ff9('0x21')]())||void 0x0===_0xcb7361?void 0x0:_0xcb7361[_0x3ff9('0x27')]())||null;}[_0x3ff9('0x37')](){const _0x5a26a0=this['getRanges']();if(0x1!=_0x5a26a0[_0x3ff9('0x26')])return null;const _0x31cf94=_0x5a26a0[0x0],_0x6b71bb=_0x31cf94['start'][_0x3ff9('0x2')],_0x377dec=_0x31cf94['end'][_0x3ff9('0x20')];return _0x6b71bb instanceof _0x732472?_0x6b71bb!=_0x377dec?null:_0x6b71bb:null;}['accept'](){this[_0x3ff9('0x39')](this['getRanges'](),this['data'],this[_0x3ff9('0x7')]),this[_0x3ff9('0x5')]();}['discard'](){this[_0x3ff9('0x3')](this['getRanges'](),this[_0x3ff9('0x13')],this[_0x3ff9('0x7')]),this['removeMarkers']();}[_0x3ff9('0x0')](){const _0x914010=[];let _0x55d5fa=this[_0x3ff9('0x31')];for(;_0x55d5fa;)_0x914010[_0x3ff9('0x2f')](_0x55d5fa),_0x55d5fa=_0x55d5fa['next'];return _0x914010;}[_0x3ff9('0xd')](_0x243493,_0x438179){const _0x5283dd=_0x30a10f(this[_0x3ff9('0x7')]);_0x395f0d(_0x5283dd,_0x243493,_0x438179),_0x3c7654(_0x5283dd,this[_0x3ff9('0x7')])||(this[_0x3ff9('0x7')]=_0x5283dd,this[_0x3ff9('0x2d')](_0x5283dd));}[_0x3ff9('0x4')](_0x461e56){const _0x27dc0a=_0x30a10f(this[_0x3ff9('0x7')]);_0x313dce(_0x27dc0a,_0x461e56),_0x3c7654(_0x27dc0a,this[_0x3ff9('0x7')])||(this['attributes']=_0x27dc0a,this[_0x3ff9('0x2d')](this[_0x3ff9('0x7')]));}[_0x3ff9('0x17')](){return{'id':this['id'],'type':this['subType']?this[_0x3ff9('0x2a')]+':'+this[_0x3ff9('0x16')]:this[_0x3ff9('0x2a')],'authorId':this[_0x3ff9('0xc')]['id'],'createdAt':this[_0x3ff9('0x33')],'hasComments':this[_0x3ff9('0x14')],'data':this[_0x3ff9('0x13')],'attributes':this[_0x3ff9('0x7')]};}static[_0x3ff9('0x1c')](){return _0x43d692()['substr'](0x1,0x5);}}