@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240130.0 → 0.0.0-nightly-20240131.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) 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/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/casechange.js +1 -1
  13. package/src/integrations/ckbox.js +1 -1
  14. package/src/integrations/codeblock.js +1 -1
  15. package/src/integrations/comments.js +1 -1
  16. package/src/integrations/deletecommand.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/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/imagestyle.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/legacylist.js +1 -1
  32. package/src/integrations/legacylistproperties.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.js +1 -1
  43. package/src/integrations/standardeditingmode.js +1 -1
  44. package/src/integrations/style.js +1 -1
  45. package/src/integrations/table.js +1 -1
  46. package/src/integrations/tablecaption.js +1 -1
  47. package/src/integrations/tableclipboard.js +1 -1
  48. package/src/integrations/tablecolumnresize.js +1 -1
  49. package/src/integrations/tableheadings.js +1 -1
  50. package/src/integrations/tablemergesplit.js +1 -1
  51. package/src/integrations/tableofcontents.js +1 -1
  52. package/src/integrations/tableproperties.js +1 -1
  53. package/src/integrations/template.js +1 -1
  54. package/src/integrations/title.js +1 -1
  55. package/src/integrations/undo.js +1 -1
  56. package/src/integrations/utils.js +1 -1
  57. package/src/suggestion.js +1 -1
  58. package/src/suggestiondescriptionfactory.js +1 -1
  59. package/src/trackchanges.js +1 -1
  60. package/src/trackchangesdata.js +1 -1
  61. package/src/trackchangesediting.js +1 -1
  62. package/src/trackchangesui.js +1 -1
  63. package/src/ui/suggestioncontroller.js +1 -1
  64. package/src/ui/view/basesuggestionthreadview.js +1 -1
  65. package/src/ui/view/suggestionthreadview.js +1 -1
  66. package/src/utils/common-translations.js +1 -1
  67. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5068=['reduce','redo','add','suggestion:formatBlock:tablePasteCell','createPositionBefore','formatBlock','plugins','documentSelection','rowInsertionRanges','editor','tableCellPadding','document','type','markerToHighlight','afterInit','*Replace\x20table\x20cells*','getSelectionAffectedTableCells','createRangeIn','get','filter','change','removeColumns','getRange','hasSuggestion','length','tablePasteCell','suggestion-td','discard','column','keys','every','columnInsertionIndexes','includes','remove','tableCellBackgroundColor','getItems','getAttributes','high','_createdBatches','insertion','ck-suggestion-marker--active','locale','createRange','map','some','root','markMultiRangeBlockFormat','trackChanges','has','low','table','markerName','getContainedElement','Users','editing','tableCellBorderWidth','clipboardOutput','findAncestor','startsWith','deletion','row','entries','getChild','set','first','createTableWalker','suggestionLoaded','accept','tablePasteColumn','tableCell','name','batch','ck-suggestion-marker','model','setAttribute','insertColumns','showSuggestionHighlights','differ','commands','wrap','isInContent','tablePaste','getRanges','getSuggestions','_suggestionFactory','tableCellBorderStyle','for','columns','_splitMarkerName','deletionRanges','ck-suggestion-marker-insertion','elementToElement','getTableIfOnlyTableInContent','activeMarkers','getChangedMarkers','markMultiRangeDeletion','registerCustomCallback','_replaceTableSlotCell','suggestion','element','from','tableCellSuggestion','unwrap','editingDowncast','getColumns','updateMarker','insert','insertContent','next','markers','forceDefaultExecution','TableClipboard','removeMarker','subType','$graveyard','getChildren','tableCellHorizontalAlignment','columnInsertionRanges','createElement','suggestionUnloaded','isEqual','previousSibling','_isForcedDefaultExecutionBlock','getSuggestionCallback','stop','dataDowncast','selection','tableCellVerticalAlignment','move','rootName','listenTo','containsRange','isEmpty','start','removeRows','oldRange','getAllAdjacentSuggestions','getRows','_getCoordsForCells','markerAttributes','_descriptionFactory','newRange','tablePasteChainId','createRangeOn','attributes','author','registerDescriptionCallback','last','cells','rowInsertionIndexes','paragraph','fromEntries','getRowIndexes','rows','end','markMultiRangeInsertion','push','getMarkers','conversion','join','registerPostFixer','position','schema','getSuggestion','previous','insertRows','tablePasteRow'];(function(_0x40f0ec,_0x506858){const _0x462ffc=function(_0x596bb1){while(--_0x596bb1){_0x40f0ec['push'](_0x40f0ec['shift']());}};_0x462ffc(++_0x506858);}(_0x5068,0x175));const _0x462f=function(_0x40f0ec,_0x506858){_0x40f0ec=_0x40f0ec-0x0;let _0x462ffc=_0x5068[_0x40f0ec];return _0x462ffc;};import{getTranslation as _0xf13c80}from'../utils/common-translations.js';import{Plugin as _0x1f7411}from'ckeditor5/src/core.js';import{uid as _0x45a4ba,priorities as _0x51b782}from'ckeditor5/src/utils.js';import _0x22e901 from'./table.js';const fe=[_0x462f('0x10'),'tableCellBorderColor',_0x462f('0x2e'),_0x462f('0x4d'),_0x462f('0x58'),_0x462f('0xa2'),_0x462f('0x8a')],be=Object[_0x462f('0x70')](fe[_0x462f('0x4')](_0x538d38=>[_0x538d38,null]));export default class At extends _0x1f7411{static get['requires'](){return[_0x22e901];}[_0x462f('0x8e')](){const _0x2ececd=this[_0x462f('0x89')];if(!_0x2ececd[_0x462f('0x86')]['has'](_0x462f('0x48')))return;const _0x2bae16=_0x2ececd['plugins'][_0x462f('0x92')]('TrackChangesEditing'),_0x24ee0b=_0x2ececd[_0x462f('0x86')][_0x462f('0x92')]('TableUtils'),_0x377472=_0x2ececd['plugins'][_0x462f('0x92')](_0x22e901),_0x24c3f2=_0x2ececd['plugins'][_0x462f('0x92')](_0x462f('0x48'));_0x377472['_tablePostFixingSubtypes']['push'](_0x462f('0x7f'),'tablePasteColumn'),_0x2ececd[_0x462f('0x22')][_0x462f('0x7b')]['register'](_0x462f('0x3e'),{'allowIn':_0x462f('0x1e'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x2ececd[_0x462f('0x77')][_0x462f('0x34')]({'model':_0x462f('0x3e'),'view':'suggestion-td'});let _0x479d2a=null;_0x2ececd['model']['on'](_0x462f('0x44'),(_0x590b7b,_0x3f915a)=>{const [_0x19215f,_0x428e91]=_0x3f915a,_0x4aa200=_0x3f915a[_0x3f915a[_0x462f('0x98')]-0x1];_0x4aa200&&_0x4aa200[_0x462f('0x47')]||_0x2bae16[_0x462f('0x53')]||this[_0x462f('0x89')][_0x462f('0x27')][_0x462f('0x92')](_0x462f('0x8'))['value']&&function(_0x3fdf33,_0x39f467,_0x2dc434,_0x5f4d5a,_0x3df040){if(_0x39f467&&!_0x39f467['is'](_0x462f('0x87')))return!0x1;const _0x4fadf2=_0x3df040[_0x462f('0x35')](_0x3fdf33,_0x2dc434);if(!_0x4fadf2||!de(_0x4fadf2,void 0x0,_0x5f4d5a))return!0x1;const _0x1f7846=_0x5f4d5a[_0x462f('0x90')](_0x2dc434[_0x462f('0x8b')][_0x462f('0x57')]);if(!_0x1f7846['length'])return!0x1;const _0x2e211c=_0x1f7846[0x0]['findAncestor']('table'),_0x10852d=_0x5f4d5a[_0x462f('0x71')](_0x1f7846),_0x3237b8=_0x5f4d5a['getColumnIndexes'](_0x1f7846),_0x33ddce={'startRow':_0x10852d[_0x462f('0x19')],'endRow':_0x10852d[_0x462f('0x6c')],'startColumn':_0x3237b8[_0x462f('0x19')],'endColumn':_0x3237b8['last']};return 0x1==_0x1f7846[_0x462f('0x98')]&&(_0x33ddce['endRow']+=_0x5f4d5a[_0x462f('0x62')](_0x4fadf2)-0x1,_0x33ddce['endColumn']+=_0x5f4d5a[_0x462f('0x41')](_0x4fadf2)-0x1),de(_0x2e211c,_0x33ddce,_0x5f4d5a);}(_0x19215f,_0x428e91,_0x2ececd['model'],_0x24ee0b,_0x24c3f2)&&(_0x590b7b['stop'](),_0x479d2a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2ececd[_0x462f('0x22')][_0x462f('0x94')](()=>{_0x2ececd['model'][_0x462f('0x44')](_0x3f915a[0x0],_0x3f915a[0x1],_0x3f915a[0x2],{'forceDefaultExecution':!0x0});const _0x4c7f85=_0x45a4ba(),{rowInsertionRanges:_0x37dddd,columnInsertionRanges:_0x401916,insertionRanges:_0x2701fa,deletionRanges:_0x4432a6,cells:_0x4ceb5c}=_0x479d2a;_0x37dddd['length']&&_0x2bae16['markMultiRangeInsertion'](_0x37dddd,_0x462f('0x7f'),{'tablePasteChainId':_0x4c7f85}),_0x401916[_0x462f('0x98')]&&_0x2bae16[_0x462f('0x74')](_0x401916,_0x462f('0x1d'),{'tablePasteChainId':_0x4c7f85}),_0x2701fa[_0x462f('0x98')]&&_0x2bae16[_0x462f('0x74')](_0x2701fa,_0x462f('0x2a'),{'tablePasteChainId':_0x4c7f85,'skipNestingCheck':!0x0}),_0x4432a6[_0x462f('0x98')]&&_0x2bae16[_0x462f('0x38')](_0x4432a6,_0x462f('0x2a'),{'tablePasteChainId':_0x4c7f85,'skipNestingCheck':!0x0});const _0x120bea=_0x2bae16[_0x462f('0x7')](_0x4ceb5c[_0x462f('0x4')](({element:_0x3e1869})=>_0x3e1869),{'formatGroupId':_0x45a4ba()},[],_0x462f('0x99'),{'tablePasteChainId':_0x4c7f85});if(_0x120bea){const _0x265a30=_0x120bea['getMarkers'](),_0x2be7aa=[];for(const {element:_0x16a7a6,attributes:_0x3c8927}of _0x4ceb5c){if(!_0x3c8927)continue;const _0x3962e4=_0x2ececd[_0x462f('0x22')][_0x462f('0x68')](_0x16a7a6),_0x460208=_0x265a30['find'](_0x5da88b=>_0x5da88b[_0x462f('0x96')]()[_0x462f('0x51')](_0x3962e4));_0x460208&&_0x2be7aa[_0x462f('0x75')]([_0x460208['name'],_0x3c8927]);}_0x2be7aa['length']&&_0x120bea[_0x462f('0x23')](_0x462f('0x64'),Object[_0x462f('0x70')](_0x2be7aa));}_0x479d2a=null;}));},{'priority':_0x51b782['high']+0xa}),_0x2ececd[_0x462f('0x86')][_0x462f('0x92')](_0x462f('0x48'))['on'](_0x462f('0x3a'),(_0x1927c6,_0x3b65b4)=>{const [_0x10cfd6,_0x426223,,_0x2fea1d]=_0x3b65b4;if(!_0x479d2a)return;_0x1927c6[_0x462f('0x55')]();const _0x369ad2=_0x10cfd6['cell'],_0x56ad98=_0x426223,_0x21b775=ge(_0x369ad2),_0x5900b5=ge(_0x56ad98);_0x1927c6['return']=_0x369ad2;let _0x2901d0=null,_0x52613c=null;if(_0x5900b5||_0x21b775){if(_0x21b775&&!_0x5900b5){_0x2fea1d[_0x462f('0xa1')](_0x369ad2[_0x462f('0x17')](0x0));for(const _0x413f02 of Array['from'](_0x56ad98[_0x462f('0x4c')]()))_0x2fea1d[_0x462f('0x43')](_0x413f02,_0x369ad2,'end');const _0x1926e3=_0x479d2a[_0x462f('0x6e')][_0x462f('0xa0')](_0x10cfd6[_0x462f('0x15')]),_0xb0b6a0=_0x479d2a[_0x462f('0x9f')][_0x462f('0xa0')](_0x10cfd6[_0x462f('0x9c')]);_0x1926e3||_0xb0b6a0||(_0x2901d0=_0x2fea1d['createRangeIn'](_0x369ad2));}else _0x5900b5&&!_0x21b775&&(_0x52613c=_0x2fea1d[_0x462f('0x91')](_0x369ad2));}else{const _0x4e0a6e=_0x2fea1d['createElement']('tableCellSuggestion'),_0x5b46ba=_0x2fea1d[_0x462f('0x4f')](_0x462f('0x3e'));_0x2fea1d[_0x462f('0x28')](_0x2fea1d[_0x462f('0x91')](_0x369ad2),_0x5b46ba),_0x2fea1d[_0x462f('0x43')](_0x4e0a6e,_0x369ad2,0x0);for(const _0x93bf56 of Array[_0x462f('0x3d')](_0x56ad98[_0x462f('0x4c')]()))_0x2fea1d[_0x462f('0x43')](_0x93bf56,_0x4e0a6e,_0x462f('0x73'));_0x2901d0=_0x2fea1d[_0x462f('0x68')](_0x4e0a6e),_0x52613c=_0x2fea1d[_0x462f('0x68')](_0x5b46ba);}const _0x52592f=Array[_0x462f('0x3d')](_0x56ad98[_0x462f('0xa4')]())['filter'](([_0x7dc831])=>fe[_0x462f('0xa0')](_0x7dc831));_0x479d2a['cells']['push']({'element':_0x369ad2,'attributes':_0x52592f['length']?Object[_0x462f('0x70')](_0x52592f):null}),_0x2901d0&&_0x479d2a['insertionRanges'][_0x462f('0x75')](_0x2901d0),_0x52613c&&_0x479d2a[_0x462f('0x32')]['push'](_0x52613c);},{'priority':_0x462f('0xa5')}),_0x24ee0b['on'](_0x462f('0x24'),(_0x2f200f,_0x19ea3a)=>{const [_0x3bd08a,_0x4baaba={}]=_0x19ea3a;if(!_0x479d2a)return;const _0x53145a=_0x4baaba['at']||0x0,_0x46e03f=_0x4baaba[_0x462f('0x30')]||0x1;_0x479d2a[_0x462f('0x9f')]=new Array(_0x46e03f)['fill'](_0x53145a)['map']((_0x8a00a3,_0x154832)=>_0x8a00a3+_0x154832);for(const {cell:_0xef6c4a}of _0x24ee0b[_0x462f('0x1a')](_0x3bd08a,{'startColumn':_0x53145a,'endColumn':_0x53145a+_0x46e03f-0x1}))_0x479d2a[_0x462f('0x4e')][_0x462f('0x75')](_0x2ececd[_0x462f('0x22')][_0x462f('0x68')](_0xef6c4a));},{'priority':'low'}),_0x24ee0b['on'](_0x462f('0x7e'),(_0x83971b,_0x523082)=>{const [_0x5adf30,_0x44e0b0={}]=_0x523082;if(!_0x479d2a)return;const _0x5e7764=_0x44e0b0['at']||0x0,_0x2ff767=_0x44e0b0[_0x462f('0x72')]||0x1;_0x479d2a[_0x462f('0x6e')]=new Array(_0x2ff767)['fill'](_0x5e7764)[_0x462f('0x4')]((_0x36d746,_0x5295ec)=>_0x36d746+_0x5295ec);for(const {cell:_0x24dc7f}of _0x24ee0b[_0x462f('0x1a')](_0x5adf30,{'startRow':_0x5e7764,'endRow':_0x5e7764+_0x2ff767-0x1}))_0x479d2a[_0x462f('0x88')][_0x462f('0x75')](_0x2ececd[_0x462f('0x22')][_0x462f('0x68')](_0x24dc7f));},{'priority':_0x462f('0xa')}),_0x2bae16[_0x462f('0x65')][_0x462f('0x6b')](_0x22eaf9=>{if(_0x22eaf9[_0x462f('0x4a')]&&_0x22eaf9[_0x462f('0x4a')]['startsWith'](_0x462f('0x2a')))return _0x22eaf9[_0x462f('0x7d')]?{}:{'type':'insertion','content':_0xf13c80(_0x2ececd[_0x462f('0x2')],_0x462f('0x8f'))};});const _0x4e9e6b=()=>!0x1;for(const _0x56e49e of[_0x462f('0x2a'),_0x462f('0x1d'),'tablePasteRow',_0x462f('0x99')])_0x2bae16[_0x462f('0x2d')][_0x462f('0x39')](_0x462f('0x0'),_0x56e49e,'join',_0x4e9e6b),_0x2bae16['_suggestionFactory'][_0x462f('0x39')](_0x462f('0x14'),_0x56e49e,'join',_0x4e9e6b),_0x2bae16[_0x462f('0x2d')][_0x462f('0x39')](_0x462f('0x85'),_0x56e49e,_0x462f('0x78'),_0x4e9e6b);_0x2bae16[_0x462f('0x2d')]['registerCustomCallback'](_0x462f('0x85'),'tablePasteCell',_0x462f('0x9b'),_0x4e9e6b),_0x2bae16[_0x462f('0x2d')][_0x462f('0x39')](_0x462f('0x85'),_0x462f('0x99'),_0x462f('0x1c'),(_0xb7edab,_0x19efe7,_0x4a7ab2)=>{const _0x174e7d=_0xb7edab[_0x462f('0x4')](_0x2d3975=>_0x2d3975[_0x462f('0xd')]())['filter'](_0x288845=>_0x288845),_0x26a7e2=new Map(_0x174e7d[_0x462f('0x4')](_0x52bea8=>[_0x52bea8,null]));if(_0x479d2a)for(const {element:_0x46a81d,attributes:_0x2ac1c6}of _0x479d2a[_0x462f('0x6d')])_0x2ac1c6&&_0x26a7e2[_0x462f('0x18')](_0x46a81d,_0x2ac1c6);else{if(_0x4a7ab2&&_0x4a7ab2[_0x462f('0x64')])for(const [_0x549f6a,_0x209972]of Object[_0x462f('0x16')](_0x4a7ab2[_0x462f('0x64')])){const _0x19b3ee=_0x2ececd[_0x462f('0x22')][_0x462f('0x46')][_0x462f('0x92')](_0x549f6a),_0x7e7b62=_0x19b3ee?_0x19b3ee[_0x462f('0x96')]()[_0x462f('0xd')]():null;_0x7e7b62&&_0x26a7e2['set'](_0x7e7b62,_0x209972);}}_0x2ececd[_0x462f('0x22')][_0x462f('0x94')](_0x2a7785=>{for(const [_0x596516,_0x1fde0e]of _0x26a7e2)_0x2a7785['setAttributes']({...be,..._0x1fde0e},_0x596516);});});const _0x27f9b2=(_0x7e103f,_0x64c1a6)=>{_0x2bae16[_0x462f('0x2d')][_0x462f('0x39')](_0x7e103f,_0x462f('0x2a'),_0x64c1a6,(_0x1554b9,_0x1ab314,_0x27fb76)=>{_0x2ececd[_0x462f('0x22')][_0x462f('0x94')](_0x2430dc=>{const _0x5de3eb=[];for(const _0x586b50 of _0x1554b9){const _0x321e21=_0x586b50[_0x462f('0x5e')]['nodeAfter'];_0x321e21['is'](_0x462f('0x3c'),_0x462f('0x3e'))&&_0x5de3eb[_0x462f('0x75')](_0x321e21);}_0x2bae16[_0x462f('0x2d')][_0x462f('0x54')](_0x7e103f,null,_0x64c1a6)(_0x1554b9,_0x1ab314,_0x27fb76);for(const _0x39c852 of _0x5de3eb)_0x462f('0x4b')!=_0x39c852[_0x462f('0x6')][_0x462f('0x5a')]&&_0x2430dc['unwrap'](_0x39c852);});});};_0x27f9b2(_0x462f('0x0'),_0x462f('0x1c')),_0x27f9b2(_0x462f('0x0'),'discard'),_0x27f9b2(_0x462f('0x14'),_0x462f('0x1c')),_0x27f9b2('deletion','discard'),_0x2bae16[_0x462f('0x2d')]['registerCustomCallback'](_0x462f('0x0'),_0x462f('0x7f'),_0x462f('0x9b'),_0x1812f9=>{const _0x3f4916=_0x1812f9[_0x462f('0x4')](_0x308522=>_0x308522[_0x462f('0xd')]()),_0x5498b6=_0x3f4916[0x0][_0x462f('0x12')](_0x462f('0xb')),{minRow:_0x1a34f7,maxRow:_0x340a11}=_0x377472[_0x462f('0x63')](_0x3f4916);_0x24ee0b[_0x462f('0x5f')](_0x5498b6,{'at':_0x1a34f7,'rows':_0x340a11-_0x1a34f7+0x1});}),_0x2bae16[_0x462f('0x2d')]['registerCustomCallback'](_0x462f('0x0'),_0x462f('0x1d'),_0x462f('0x9b'),_0x4e1278=>{const _0x495e82=_0x4e1278['map'](_0x889cea=>_0x889cea[_0x462f('0xd')]()),_0x25d08f=_0x495e82[0x0][_0x462f('0x12')](_0x462f('0xb')),{minColumn:_0x1d5a59,maxColumn:_0x10a1e1}=_0x377472['_getCoordsForCells'](_0x495e82);_0x24ee0b[_0x462f('0x95')](_0x25d08f,{'at':_0x1d5a59,'columns':_0x10a1e1-_0x1d5a59+0x1});});const _0xbab9d3=(_0x1ee85d,_0x2f53b7)=>{if(!_0x2f53b7['subType']||!_0x2f53b7[_0x462f('0x4a')][_0x462f('0x13')](_0x462f('0x2a')))return;const _0x4d54b9=_0x2f53b7[_0x462f('0x69')][_0x462f('0x67')],_0x4e9ccb=_0x2bae16[_0x462f('0x2c')]()[_0x462f('0x93')](_0x5e2117=>_0x5e2117[_0x462f('0x29')]&&_0x5e2117[_0x462f('0x69')]&&_0x5e2117['attributes'][_0x462f('0x67')]==_0x4d54b9);_0x4e9ccb[_0x462f('0x98')]&&_0x2f53b7[_0x462f('0x61')]()['length']!=_0x4e9ccb[_0x462f('0x98')]&&_0x4e9ccb[_0x462f('0x80')]((_0x2a5b81,_0xa5d60e)=>(_0x2a5b81[_0x462f('0x45')]=_0xa5d60e,_0xa5d60e[_0x462f('0x7d')]=_0x2a5b81,_0xa5d60e));};function _0xe4d228(_0x265674,_0x3f18a2=!0x0){const {id:_0x51ba5f}=_0x2bae16['_splitMarkerName'](_0x265674[_0x462f('0xc')]),_0x1dcf9c=[_0x462f('0x21'),_0x462f('0x33')],_0x1906e3=_0x2bae16[_0x462f('0x36')][_0x462f('0xa0')](_0x265674[_0x462f('0xc')]);return _0x1906e3&&_0x1dcf9c[_0x462f('0x75')](_0x462f('0x1')),{'classes':_0x1dcf9c,'attributes':{'data-suggestion':_0x51ba5f},'priority':_0x1906e3&&_0x3f18a2?0xbc2:0xbb8};}_0x2bae16['on'](_0x462f('0x1b'),_0xbab9d3,{'priority':'high'}),_0x2bae16['on'](_0x462f('0x50'),_0xbab9d3,{'priority':'high'}),_0x2ececd['model'][_0x462f('0x8b')][_0x462f('0x79')](()=>{let _0x27026c=!0x1;const _0x54e3d0=Array[_0x462f('0x3d')](_0x2ececd[_0x462f('0x22')][_0x462f('0x8b')][_0x462f('0x26')][_0x462f('0x37')]());for(const {name:_0x2c6f11,data:_0x3f5a96}of _0x54e3d0){const {group:_0x5c2c03,type:_0x345e51,id:_0x31f500}=_0x2bae16['_splitMarkerName'](_0x2c6f11);if(_0x462f('0x3b')!=_0x5c2c03||_0x462f('0x14')!=_0x345e51||_0x3f5a96[_0x462f('0x60')])continue;if(!_0x2bae16[_0x462f('0x97')](_0x31f500))continue;const _0x537a39=_0x2bae16[_0x462f('0x7c')](_0x31f500)['getRanges'](),_0xda85bb=_0x2ececd[_0x462f('0x86')]['get'](_0x462f('0xe'))['me'];for(const _0xc94dc8 of _0x2bae16['getSuggestions']()){if(!_0xc94dc8[_0x462f('0x29')]||_0xc94dc8[_0x462f('0x6a')]!=_0xda85bb)continue;if(_0x462f('0x85')!=_0xc94dc8['type']||_0x462f('0x99')!=_0xc94dc8[_0x462f('0x4a')])continue;if(_0xc94dc8[_0x462f('0x2b')]()[_0x462f('0x9e')](_0x49d176=>_0x537a39[_0x462f('0x5')](_0x5af386=>_0x5af386['containsRange'](_0x49d176,!0x0))))for(const _0x7c3b85 of _0xc94dc8[_0x462f('0x61')]())_0x7c3b85[_0x462f('0x29')]&&(_0x7c3b85[_0x462f('0x9b')](),_0x27026c=!0x0);}}return _0x27026c;}),_0x2ececd[_0x462f('0x22')]['document'][_0x462f('0x79')](_0x1b84e4=>{const _0x43e518=_0x2ececd[_0x462f('0x27')][_0x462f('0x92')](_0x462f('0x81'));if(!_0x43e518||!_0x43e518[_0x462f('0xa6')][_0x462f('0x9')](_0x1b84e4[_0x462f('0x20')]))return!0x1;let _0x36f948=!0x1;const _0x2f8781=_0x2ececd[_0x462f('0x86')][_0x462f('0x92')](_0x462f('0xe'))['me'],_0x13efd6=_0x2ececd[_0x462f('0x22')][_0x462f('0x8b')][_0x462f('0x26')]['getChanges'](),_0x4fe3dd=Array[_0x462f('0x3d')](_0x2ececd[_0x462f('0x22')][_0x462f('0x8b')][_0x462f('0x26')][_0x462f('0x37')]())[_0x462f('0x93')](({name:_0x1de2e8,data:_0x36b1f5})=>{const {group:_0x18decb,subType:_0x287711,authorId:_0x3f2741}=_0x2bae16[_0x462f('0x31')](_0x1de2e8);return'suggestion'==_0x18decb&&'tablePaste'==_0x287711&&_0x3f2741==_0x2f8781['id']&&!_0x36b1f5[_0x462f('0x60')];});for(const _0x573fcd of _0x13efd6){if('insert'!=_0x573fcd[_0x462f('0x8c')]||'tableCellSuggestion'!=_0x573fcd[_0x462f('0x1f')]||0x1!=_0x573fcd[_0x462f('0x98')])continue;const _0x498b1c=_0x1b84e4[_0x462f('0x3')](_0x573fcd[_0x462f('0x7a')],_0x573fcd[_0x462f('0x7a')]['getShiftedBy'](0x1));if(!_0x4fe3dd['find'](({data:_0x1b8003})=>_0x1b8003[_0x462f('0x66')][_0x462f('0x51')](_0x498b1c)))for(const {name:_0x34e02b,data:_0x4e22b0}of _0x4fe3dd)if(_0x498b1c[_0x462f('0x5c')](_0x4e22b0['newRange'])){_0x1b84e4[_0x462f('0x42')](_0x34e02b,{'range':_0x498b1c}),_0x36f948=!0x0;break;}}return _0x36f948;}),_0x2ececd[_0x462f('0x22')][_0x462f('0x8b')][_0x462f('0x79')](_0x639be=>{let _0xd1fc81=!0x1;const _0xf50111=_0x2ececd['plugins'][_0x462f('0x92')]('Users')['me'],_0x6e124b=_0x2bae16[_0x462f('0x2c')]()[_0x462f('0x93')](_0x55ff1d=>_0x55ff1d[_0x462f('0x29')]&&_0x55ff1d[_0x462f('0x6a')]==_0xf50111),_0x583995=new Set(),_0x45291c=new Set();for(const _0x209ee3 of _0x6e124b)if(_0x462f('0x2a')==_0x209ee3[_0x462f('0x4a')])for(const _0x432c14 of _0x209ee3[_0x462f('0x76')]()){const _0x42bd0d=_0x432c14[_0x462f('0x96')]()[_0x462f('0xd')]();if(_0x42bd0d){if(_0x42bd0d['is'](_0x462f('0x3c'),_0x462f('0x3e'))&&ge(_0x42bd0d)){_0x209ee3[_0x462f('0x49')](_0x432c14[_0x462f('0x1f')]),_0x583995[_0x462f('0x82')](_0x42bd0d),_0xd1fc81=!0x0;const _0x5a2464=_0x42bd0d['nextSibling'],_0x11f30a=_0x42bd0d[_0x462f('0x52')],_0x39f340=_0x5a2464&&_0x5a2464['is'](_0x462f('0x3c'),_0x462f('0x3e')),_0x5a3f7b=_0x11f30a&&_0x11f30a['is']('element','tableCellSuggestion');_0x39f340&&!_0x583995['has'](_0x5a2464)&&_0x45291c[_0x462f('0x82')](_0x5a2464),_0x5a3f7b&&!_0x583995[_0x462f('0x9')](_0x11f30a)&&_0x45291c[_0x462f('0x82')](_0x11f30a);}else _0x42bd0d['is'](_0x462f('0x3c'),_0x462f('0x6f'))&&_0x42bd0d[_0x462f('0x5d')]&&(_0x209ee3[_0x462f('0x49')](_0x432c14[_0x462f('0x1f')]),_0xd1fc81=!0x0);}}else{if(_0x462f('0x99')==_0x209ee3['subType']){if(!_0x209ee3['attributes']||!_0x209ee3[_0x462f('0x69')][_0x462f('0x67')])continue;const _0x592012=_0x209ee3[_0x462f('0x69')][_0x462f('0x64')];if(_0x592012&&Object[_0x462f('0x9d')](_0x592012)[_0x462f('0x98')])continue;const _0x5dea10=_0x209ee3['attributes']['tablePasteChainId'];let _0x5965e1=!0x0,_0x1b730c=!0x0;for(const _0x1495f0 of _0x6e124b)if(_0x1495f0[_0x462f('0x4a')]&&_0x1495f0[_0x462f('0x4a')][_0x462f('0x13')]('tablePaste')){if(!_0x1495f0[_0x462f('0x69')]['tablePasteChainId']){_0x1b730c=!0x1;break;}if(_0x1495f0['id']!=_0x209ee3['id']&&_0x1495f0[_0x462f('0x69')][_0x462f('0x67')]==_0x5dea10){_0x5965e1=!0x1;break;}}_0x1b730c&&_0x5965e1&&(_0x209ee3['removeMarkers'](),_0xd1fc81=!0x0);}}for(const _0xfd63a9 of _0x583995)_0x639be['remove'](_0xfd63a9);for(const _0x2fdea6 of _0x45291c)_0x639be[_0x462f('0x3f')](_0x2fdea6);return _0xd1fc81;}),_0x2ececd[_0x462f('0x77')]['for'](_0x462f('0x40'))[_0x462f('0x8d')]({'model':_0x462f('0x83'),'view':(_0x5b1ed5,_0x166681)=>_0xe4d228(_0x5b1ed5),'converterPriority':_0x462f('0xa5')}),_0x2ececd[_0x462f('0x77')][_0x462f('0x2f')](_0x462f('0x56'))['markerToHighlight']({'model':_0x462f('0x83'),'view':(_0x1c81fb,_0x58d7a1)=>_0x58d7a1['options'][_0x462f('0x25')]?_0xe4d228(_0x1c81fb,!0x1):null,'converterPriority':_0x462f('0xa5')});const _0x3fd505=_0x2ececd[_0x462f('0xf')]['view'];this[_0x462f('0x5b')](_0x3fd505[_0x462f('0x8b')],_0x462f('0x11'),(_0x6d28d5,_0x18d4ad)=>{const _0x406985=[];for(const _0x1baa6a of _0x3fd505['createRangeIn'](_0x18d4ad['content'])[_0x462f('0xa3')]())_0x1baa6a['is'](_0x462f('0x3c'),_0x462f('0x9a'))&&_0x406985[_0x462f('0x75')](_0x1baa6a);_0x3fd505[_0x462f('0x94')](_0x3a96b1=>{for(const _0x5c7de2 of _0x406985)_0x3a96b1[_0x462f('0x59')](_0x3a96b1[_0x462f('0x91')](_0x5c7de2),_0x3a96b1[_0x462f('0x84')](_0x5c7de2)),_0x3a96b1[_0x462f('0xa1')](_0x5c7de2);});});}}function ge(_0x5a7e0c){if(_0x5a7e0c[_0x462f('0x5d')])return!0x0;const _0x38a2e6=_0x5a7e0c[_0x462f('0x17')](0x0);return _0x38a2e6['is'](_0x462f('0x3c'),_0x462f('0x6f'))&&_0x38a2e6[_0x462f('0x5d')];}function de(_0x19fab9,_0x2751a2={},_0xe047d){for(const {isAnchor:_0x4041f4,cellHeight:_0x57db98,cellWidth:_0x1ee321}of _0xe047d['createTableWalker'](_0x19fab9,{'includeAllSlots':!0x0,..._0x2751a2}))if(!_0x4041f4||0x1!=_0x57db98||0x1!=_0x1ee321)return!0x1;return!0x0;}
23
+ const _0x58e1=['rowInsertionRanges','tablePasteRow','createTableWalker','start','return','afterInit','findAncestor','remove','model','getChild','batch','redo','tableCellBorderColor','$graveyard','insert','differ','fromEntries','getMarkers','includes','columnInsertionRanges','tableCellBorderStyle','_suggestionFactory','removeColumns','next','columnInsertionIndexes','unwrap','createElement','discard','column','deletion','options','getRange','reduce','entries','join','insertion','cells','tablePasteCell','tablePasteChainId','forceDefaultExecution','fill','newRange','isInContent','markerAttributes','every','end','createRangeOn','add','getRanges','isEmpty','createRange','tableCellHorizontalAlignment','getShiftedBy','root','endRow','commands','clipboardOutput','set','getSuggestion','tableCellVerticalAlignment','createPositionBefore','removeMarker','getChanges','registerDescriptionCallback','rowInsertionIndexes','getTableIfOnlyTableInContent','previousSibling','value','type','markerToHighlight','tableCellSuggestion','createRangeIn','insertRows','insertionRanges','insertColumns','removeMarkers','high','markers','_isForcedDefaultExecutionBlock','getSuggestionCallback','setAttribute','getContainedElement','markMultiRangeBlockFormat','getChangedMarkers','filter','formatBlock','nodeAfter','getRows','getColumns','tablePaste','editingDowncast','_getCoordsForCells','insertContent','registerPostFixer','keys','schema','name','TrackChangesEditing','markerName','cell','hasSuggestion','dataDowncast','selection','position','length','removeRows','startsWith','markMultiRangeInsertion','tableCellBorderWidth','getAllAdjacentSuggestions','wrap','get','change','tablePasteColumn','subType','ck-suggestion-marker-insertion','trackChanges','table','map','attributes','setAttributes','from','view','TableClipboard','low','previous','nextSibling','rootName','document','paragraph','Users','tableCellPadding','suggestion:formatBlock:tablePasteCell','content','element','rows','editing','author','getChildren','_replaceTableSlotCell','registerCustomCallback','editor','elementToElement','find','conversion','getColumnIndexes','*Replace\x20table\x20cells*','getSuggestions','tableCell','plugins','for','push','first','_splitMarkerName','stop','deletionRanges','isEqual','containsRange','move','some','oldRange','has','accept'];(function(_0x298184,_0x58e157){const _0x4ba91c=function(_0x3d220c){while(--_0x3d220c){_0x298184['push'](_0x298184['shift']());}};_0x4ba91c(++_0x58e157);}(_0x58e1,0x6e));const _0x4ba9=function(_0x298184,_0x58e157){_0x298184=_0x298184-0x0;let _0x4ba91c=_0x58e1[_0x298184];return _0x4ba91c;};import{getTranslation as _0x4f2f78}from'../utils/common-translations.js';import{Plugin as _0x15f2cf}from'ckeditor5/src/core.js';import{uid as _0x24c2df,priorities as _0x4894d5}from'ckeditor5/src/utils.js';import _0x3e7091 from'./table.js';const fe=[_0x4ba9('0xa1'),_0x4ba9('0x41'),_0x4ba9('0x49'),_0x4ba9('0x68'),_0x4ba9('0x70'),'tableCellBackgroundColor',_0x4ba9('0x15')],be=Object['fromEntries'](fe[_0x4ba9('0x8')](_0x2301dc=>[_0x2301dc,null]));export default class At extends _0x15f2cf{static get['requires'](){return[_0x3e7091];}[_0x4ba9('0x3a')](){const _0xaa1103=this[_0x4ba9('0x1f')];if(!_0xaa1103[_0x4ba9('0x27')][_0x4ba9('0x33')]('TableClipboard'))return;const _0x2370f0=_0xaa1103['plugins'][_0x4ba9('0x1')](_0x4ba9('0x96')),_0x14a392=_0xaa1103[_0x4ba9('0x27')]['get']('TableUtils'),_0x158ac9=_0xaa1103['plugins']['get'](_0x3e7091),_0x4a6f50=_0xaa1103['plugins']['get'](_0x4ba9('0xd'));_0x158ac9['_tablePostFixingSubtypes'][_0x4ba9('0x29')]('tablePasteRow',_0x4ba9('0x3')),_0xaa1103['model'][_0x4ba9('0x94')]['register']('tableCellSuggestion',{'allowIn':_0x4ba9('0x26'),'allowContentOf':_0x4ba9('0x26'),'isLimit':!0x0}),_0xaa1103['conversion'][_0x4ba9('0x20')]({'model':_0x4ba9('0x7b'),'view':'suggestion-td'});let _0x26f24c=null;_0xaa1103[_0x4ba9('0x3d')]['on'](_0x4ba9('0x91'),(_0x4da330,_0x517e35)=>{const [_0x57d6e1,_0x311c6d]=_0x517e35,_0x5073c6=_0x517e35[_0x517e35[_0x4ba9('0x9d')]-0x1];_0x5073c6&&_0x5073c6[_0x4ba9('0x5c')]||_0x2370f0[_0x4ba9('0x83')]||this[_0x4ba9('0x1f')][_0x4ba9('0x6c')][_0x4ba9('0x1')](_0x4ba9('0x6'))[_0x4ba9('0x78')]&&function(_0x400b74,_0x207114,_0x4b54ce,_0x994145,_0x104352){if(_0x207114&&!_0x207114['is']('documentSelection'))return!0x1;const _0x1879d6=_0x104352[_0x4ba9('0x76')](_0x400b74,_0x4b54ce);if(!_0x1879d6||!de(_0x1879d6,void 0x0,_0x994145))return!0x1;const _0x182b0f=_0x994145['getSelectionAffectedTableCells'](_0x4b54ce['document'][_0x4ba9('0x9b')]);if(!_0x182b0f[_0x4ba9('0x9d')])return!0x1;const _0x2e3c0a=_0x182b0f[0x0][_0x4ba9('0x3b')](_0x4ba9('0x7')),_0x44f7fc=_0x994145['getRowIndexes'](_0x182b0f),_0x398a4d=_0x994145[_0x4ba9('0x23')](_0x182b0f),_0x4bae24={'startRow':_0x44f7fc[_0x4ba9('0x2a')],'endRow':_0x44f7fc['last'],'startColumn':_0x398a4d['first'],'endColumn':_0x398a4d['last']};return 0x1==_0x182b0f[_0x4ba9('0x9d')]&&(_0x4bae24[_0x4ba9('0x6b')]+=_0x994145[_0x4ba9('0x8c')](_0x1879d6)-0x1,_0x4bae24['endColumn']+=_0x994145[_0x4ba9('0x8d')](_0x1879d6)-0x1),de(_0x2e3c0a,_0x4bae24,_0x994145);}(_0x57d6e1,_0x311c6d,_0xaa1103['model'],_0x14a392,_0x4a6f50)&&(_0x4da330[_0x4ba9('0x2c')](),_0x26f24c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x2')](()=>{_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x91')](_0x517e35[0x0],_0x517e35[0x1],_0x517e35[0x2],{'forceDefaultExecution':!0x0});const _0x236bc7=_0x24c2df(),{rowInsertionRanges:_0x8c3cd7,columnInsertionRanges:_0x4310bc,insertionRanges:_0x526c8f,deletionRanges:_0x2adaa3,cells:_0x1d0520}=_0x26f24c;_0x8c3cd7[_0x4ba9('0x9d')]&&_0x2370f0[_0x4ba9('0xa0')](_0x8c3cd7,_0x4ba9('0x36'),{'tablePasteChainId':_0x236bc7}),_0x4310bc[_0x4ba9('0x9d')]&&_0x2370f0[_0x4ba9('0xa0')](_0x4310bc,'tablePasteColumn',{'tablePasteChainId':_0x236bc7}),_0x526c8f[_0x4ba9('0x9d')]&&_0x2370f0[_0x4ba9('0xa0')](_0x526c8f,'tablePaste',{'tablePasteChainId':_0x236bc7,'skipNestingCheck':!0x0}),_0x2adaa3[_0x4ba9('0x9d')]&&_0x2370f0['markMultiRangeDeletion'](_0x2adaa3,'tablePaste',{'tablePasteChainId':_0x236bc7,'skipNestingCheck':!0x0});const _0x47c21f=_0x2370f0[_0x4ba9('0x87')](_0x1d0520[_0x4ba9('0x8')](({element:_0x3cb06d})=>_0x3cb06d),{'formatGroupId':_0x24c2df()},[],_0x4ba9('0x5a'),{'tablePasteChainId':_0x236bc7});if(_0x47c21f){const _0x13ecdd=_0x47c21f[_0x4ba9('0x46')](),_0x765625=[];for(const {element:_0x301b96,attributes:_0x361c4c}of _0x1d0520){if(!_0x361c4c)continue;const _0x3dcdb7=_0xaa1103[_0x4ba9('0x3d')]['createRangeOn'](_0x301b96),_0xe77d97=_0x13ecdd['find'](_0x261713=>_0x261713[_0x4ba9('0x54')]()[_0x4ba9('0x2e')](_0x3dcdb7));_0xe77d97&&_0x765625['push']([_0xe77d97[_0x4ba9('0x95')],_0x361c4c]);}_0x765625['length']&&_0x47c21f[_0x4ba9('0x85')](_0x4ba9('0x60'),Object[_0x4ba9('0x45')](_0x765625));}_0x26f24c=null;}));},{'priority':_0x4894d5[_0x4ba9('0x81')]+0xa}),_0xaa1103[_0x4ba9('0x27')][_0x4ba9('0x1')]('TableClipboard')['on'](_0x4ba9('0x1d'),(_0x4047b6,_0x2b67c7)=>{const [_0x1f6aac,_0x35b18e,,_0x3d0e4f]=_0x2b67c7;if(!_0x26f24c)return;_0x4047b6['stop']();const _0x5e5a53=_0x1f6aac[_0x4ba9('0x98')],_0x5403f0=_0x35b18e,_0x5b993b=ge(_0x5e5a53),_0x2fff65=ge(_0x5403f0);_0x4047b6[_0x4ba9('0x39')]=_0x5e5a53;let _0x5cee1e=null,_0x64127b=null;if(_0x2fff65||_0x5b993b){if(_0x5b993b&&!_0x2fff65){_0x3d0e4f['remove'](_0x5e5a53[_0x4ba9('0x3e')](0x0));for(const _0x36a117 of Array[_0x4ba9('0xb')](_0x5403f0[_0x4ba9('0x1c')]()))_0x3d0e4f[_0x4ba9('0x43')](_0x36a117,_0x5e5a53,_0x4ba9('0x62'));const _0x392332=_0x26f24c[_0x4ba9('0x75')]['includes'](_0x1f6aac['row']),_0x4ec1fe=_0x26f24c[_0x4ba9('0x4d')]['includes'](_0x1f6aac[_0x4ba9('0x51')]);_0x392332||_0x4ec1fe||(_0x5cee1e=_0x3d0e4f[_0x4ba9('0x7c')](_0x5e5a53));}else _0x2fff65&&!_0x5b993b&&(_0x64127b=_0x3d0e4f['createRangeIn'](_0x5e5a53));}else{const _0x33a491=_0x3d0e4f[_0x4ba9('0x4f')](_0x4ba9('0x7b')),_0x5eadfd=_0x3d0e4f[_0x4ba9('0x4f')](_0x4ba9('0x7b'));_0x3d0e4f[_0x4ba9('0x0')](_0x3d0e4f[_0x4ba9('0x7c')](_0x5e5a53),_0x5eadfd),_0x3d0e4f['insert'](_0x33a491,_0x5e5a53,0x0);for(const _0x442192 of Array['from'](_0x5403f0['getChildren']()))_0x3d0e4f['insert'](_0x442192,_0x33a491,_0x4ba9('0x62'));_0x5cee1e=_0x3d0e4f[_0x4ba9('0x63')](_0x33a491),_0x64127b=_0x3d0e4f['createRangeOn'](_0x5eadfd);}const _0xe9b6e0=Array['from'](_0x5403f0['getAttributes']())[_0x4ba9('0x89')](([_0x31f66e])=>fe[_0x4ba9('0x47')](_0x31f66e));_0x26f24c[_0x4ba9('0x59')][_0x4ba9('0x29')]({'element':_0x5e5a53,'attributes':_0xe9b6e0[_0x4ba9('0x9d')]?Object[_0x4ba9('0x45')](_0xe9b6e0):null}),_0x5cee1e&&_0x26f24c[_0x4ba9('0x7e')][_0x4ba9('0x29')](_0x5cee1e),_0x64127b&&_0x26f24c[_0x4ba9('0x2d')][_0x4ba9('0x29')](_0x64127b);},{'priority':'high'}),_0x14a392['on'](_0x4ba9('0x7f'),(_0x20f08f,_0x1c66a2)=>{const [_0x325868,_0x3a3d3b={}]=_0x1c66a2;if(!_0x26f24c)return;const _0xb70487=_0x3a3d3b['at']||0x0,_0x435f16=_0x3a3d3b['columns']||0x1;_0x26f24c[_0x4ba9('0x4d')]=new Array(_0x435f16)['fill'](_0xb70487)[_0x4ba9('0x8')]((_0x5171dc,_0x372176)=>_0x5171dc+_0x372176);for(const {cell:_0x419441}of _0x14a392[_0x4ba9('0x37')](_0x325868,{'startColumn':_0xb70487,'endColumn':_0xb70487+_0x435f16-0x1}))_0x26f24c[_0x4ba9('0x48')][_0x4ba9('0x29')](_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x63')](_0x419441));},{'priority':_0x4ba9('0xe')}),_0x14a392['on'](_0x4ba9('0x7d'),(_0x4830de,_0x5c3add)=>{const [_0x301a69,_0x2c35bd={}]=_0x5c3add;if(!_0x26f24c)return;const _0x144b77=_0x2c35bd['at']||0x0,_0x504d57=_0x2c35bd[_0x4ba9('0x19')]||0x1;_0x26f24c['rowInsertionIndexes']=new Array(_0x504d57)[_0x4ba9('0x5d')](_0x144b77)['map']((_0x876cf,_0x291ed3)=>_0x876cf+_0x291ed3);for(const {cell:_0x47ac2e}of _0x14a392[_0x4ba9('0x37')](_0x301a69,{'startRow':_0x144b77,'endRow':_0x144b77+_0x504d57-0x1}))_0x26f24c[_0x4ba9('0x35')][_0x4ba9('0x29')](_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x63')](_0x47ac2e));},{'priority':_0x4ba9('0xe')}),_0x2370f0['_descriptionFactory'][_0x4ba9('0x74')](_0x3c9b0a=>{if(_0x3c9b0a['subType']&&_0x3c9b0a[_0x4ba9('0x4')][_0x4ba9('0x9f')](_0x4ba9('0x8e')))return _0x3c9b0a[_0x4ba9('0xf')]?{}:{'type':_0x4ba9('0x58'),'content':_0x4f2f78(_0xaa1103['locale'],_0x4ba9('0x24'))};});const _0x49f5ff=()=>!0x1;for(const _0x10b8a6 of['tablePaste','tablePasteColumn',_0x4ba9('0x36'),'tablePasteCell'])_0x2370f0[_0x4ba9('0x4a')][_0x4ba9('0x1e')]('insertion',_0x10b8a6,'join',_0x49f5ff),_0x2370f0[_0x4ba9('0x4a')][_0x4ba9('0x1e')](_0x4ba9('0x52'),_0x10b8a6,_0x4ba9('0x57'),_0x49f5ff),_0x2370f0[_0x4ba9('0x4a')]['registerCustomCallback'](_0x4ba9('0x8a'),_0x10b8a6,'join',_0x49f5ff);_0x2370f0[_0x4ba9('0x4a')]['registerCustomCallback']('formatBlock',_0x4ba9('0x5a'),'discard',_0x49f5ff),_0x2370f0[_0x4ba9('0x4a')][_0x4ba9('0x1e')]('formatBlock',_0x4ba9('0x5a'),_0x4ba9('0x34'),(_0x552cab,_0x5e2d8c,_0x253b64)=>{const _0xe872b0=_0x552cab[_0x4ba9('0x8')](_0x2a4732=>_0x2a4732[_0x4ba9('0x86')]())[_0x4ba9('0x89')](_0x31bb4c=>_0x31bb4c),_0x566686=new Map(_0xe872b0[_0x4ba9('0x8')](_0x464ac2=>[_0x464ac2,null]));if(_0x26f24c)for(const {element:_0x4ce600,attributes:_0x5e64d3}of _0x26f24c[_0x4ba9('0x59')])_0x5e64d3&&_0x566686[_0x4ba9('0x6e')](_0x4ce600,_0x5e64d3);else{if(_0x253b64&&_0x253b64[_0x4ba9('0x60')])for(const [_0xbe4324,_0x5cfda0]of Object[_0x4ba9('0x56')](_0x253b64[_0x4ba9('0x60')])){const _0x295212=_0xaa1103['model'][_0x4ba9('0x82')][_0x4ba9('0x1')](_0xbe4324),_0x408092=_0x295212?_0x295212[_0x4ba9('0x54')]()[_0x4ba9('0x86')]():null;_0x408092&&_0x566686[_0x4ba9('0x6e')](_0x408092,_0x5cfda0);}}_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x2')](_0x321551=>{for(const [_0x15e9a7,_0x129eff]of _0x566686)_0x321551[_0x4ba9('0xa')]({...be,..._0x129eff},_0x15e9a7);});});const _0x1c9f57=(_0x2a445e,_0x4ebb01)=>{_0x2370f0['_suggestionFactory'][_0x4ba9('0x1e')](_0x2a445e,_0x4ba9('0x8e'),_0x4ebb01,(_0x4ce410,_0x3a3bd7,_0x4bdf61)=>{_0xaa1103['model'][_0x4ba9('0x2')](_0x1231a8=>{const _0x44c676=[];for(const _0x18812f of _0x4ce410){const _0x1ce102=_0x18812f[_0x4ba9('0x38')][_0x4ba9('0x8b')];_0x1ce102['is'](_0x4ba9('0x18'),_0x4ba9('0x7b'))&&_0x44c676[_0x4ba9('0x29')](_0x1ce102);}_0x2370f0[_0x4ba9('0x4a')][_0x4ba9('0x84')](_0x2a445e,null,_0x4ebb01)(_0x4ce410,_0x3a3bd7,_0x4bdf61);for(const _0x4c5a2d of _0x44c676)_0x4ba9('0x42')!=_0x4c5a2d[_0x4ba9('0x6a')][_0x4ba9('0x11')]&&_0x1231a8[_0x4ba9('0x4e')](_0x4c5a2d);});});};_0x1c9f57('insertion',_0x4ba9('0x34')),_0x1c9f57('insertion',_0x4ba9('0x50')),_0x1c9f57(_0x4ba9('0x52'),_0x4ba9('0x34')),_0x1c9f57('deletion','discard'),_0x2370f0['_suggestionFactory'][_0x4ba9('0x1e')](_0x4ba9('0x58'),_0x4ba9('0x36'),_0x4ba9('0x50'),_0x54a2d8=>{const _0x576dd0=_0x54a2d8[_0x4ba9('0x8')](_0x130bff=>_0x130bff['getContainedElement']()),_0x5a9fb0=_0x576dd0[0x0][_0x4ba9('0x3b')](_0x4ba9('0x7')),{minRow:_0x4be408,maxRow:_0x546dac}=_0x158ac9['_getCoordsForCells'](_0x576dd0);_0x14a392[_0x4ba9('0x9e')](_0x5a9fb0,{'at':_0x4be408,'rows':_0x546dac-_0x4be408+0x1});}),_0x2370f0[_0x4ba9('0x4a')]['registerCustomCallback'](_0x4ba9('0x58'),_0x4ba9('0x3'),_0x4ba9('0x50'),_0x5a748e=>{const _0x139d6f=_0x5a748e[_0x4ba9('0x8')](_0x3ff9db=>_0x3ff9db[_0x4ba9('0x86')]()),_0x16bcfe=_0x139d6f[0x0][_0x4ba9('0x3b')](_0x4ba9('0x7')),{minColumn:_0x526ddc,maxColumn:_0x22d4ee}=_0x158ac9[_0x4ba9('0x90')](_0x139d6f);_0x14a392[_0x4ba9('0x4b')](_0x16bcfe,{'at':_0x526ddc,'columns':_0x22d4ee-_0x526ddc+0x1});});const _0x354c57=(_0x35585a,_0x1112ab)=>{if(!_0x1112ab[_0x4ba9('0x4')]||!_0x1112ab[_0x4ba9('0x4')][_0x4ba9('0x9f')](_0x4ba9('0x8e')))return;const _0x4a5971=_0x1112ab[_0x4ba9('0x9')]['tablePasteChainId'],_0x461b14=_0x2370f0['getSuggestions']()[_0x4ba9('0x89')](_0x4bbb34=>_0x4bbb34[_0x4ba9('0x5f')]&&_0x4bbb34[_0x4ba9('0x9')]&&_0x4bbb34[_0x4ba9('0x9')][_0x4ba9('0x5b')]==_0x4a5971);_0x461b14[_0x4ba9('0x9d')]&&_0x1112ab[_0x4ba9('0xa2')]()[_0x4ba9('0x9d')]!=_0x461b14[_0x4ba9('0x9d')]&&_0x461b14[_0x4ba9('0x55')]((_0x2bc539,_0x30330f)=>(_0x2bc539[_0x4ba9('0x4c')]=_0x30330f,_0x30330f[_0x4ba9('0xf')]=_0x2bc539,_0x30330f));};function _0x17e5dd(_0x4ac762,_0xb50a07=!0x0){const {id:_0x5aada0}=_0x2370f0[_0x4ba9('0x2b')](_0x4ac762[_0x4ba9('0x97')]),_0x35d5be=['ck-suggestion-marker',_0x4ba9('0x5')],_0x5abe89=_0x2370f0['activeMarkers']['includes'](_0x4ac762[_0x4ba9('0x97')]);return _0x5abe89&&_0x35d5be[_0x4ba9('0x29')]('ck-suggestion-marker--active'),{'classes':_0x35d5be,'attributes':{'data-suggestion':_0x5aada0},'priority':_0x5abe89&&_0xb50a07?0xbc2:0xbb8};}_0x2370f0['on']('suggestionLoaded',_0x354c57,{'priority':_0x4ba9('0x81')}),_0x2370f0['on']('suggestionUnloaded',_0x354c57,{'priority':_0x4ba9('0x81')}),_0xaa1103['model'][_0x4ba9('0x12')][_0x4ba9('0x92')](()=>{let _0x2d309a=!0x1;const _0x45e91e=Array[_0x4ba9('0xb')](_0xaa1103['model'][_0x4ba9('0x12')][_0x4ba9('0x44')][_0x4ba9('0x88')]());for(const {name:_0x56dabc,data:_0x121cea}of _0x45e91e){const {group:_0x40e9cc,type:_0x348f15,id:_0xba84b3}=_0x2370f0[_0x4ba9('0x2b')](_0x56dabc);if('suggestion'!=_0x40e9cc||'deletion'!=_0x348f15||_0x121cea['oldRange'])continue;if(!_0x2370f0[_0x4ba9('0x99')](_0xba84b3))continue;const _0x439d44=_0x2370f0[_0x4ba9('0x6f')](_0xba84b3)[_0x4ba9('0x65')](),_0x39ecbb=_0xaa1103[_0x4ba9('0x27')][_0x4ba9('0x1')](_0x4ba9('0x14'))['me'];for(const _0x4b988b of _0x2370f0[_0x4ba9('0x25')]()){if(!_0x4b988b[_0x4ba9('0x5f')]||_0x4b988b[_0x4ba9('0x1b')]!=_0x39ecbb)continue;if(_0x4ba9('0x8a')!=_0x4b988b[_0x4ba9('0x79')]||_0x4ba9('0x5a')!=_0x4b988b['subType'])continue;if(_0x4b988b[_0x4ba9('0x65')]()[_0x4ba9('0x61')](_0x151d66=>_0x439d44[_0x4ba9('0x31')](_0x88cd42=>_0x88cd42[_0x4ba9('0x2f')](_0x151d66,!0x0))))for(const _0x15dcf9 of _0x4b988b[_0x4ba9('0xa2')]())_0x15dcf9[_0x4ba9('0x5f')]&&(_0x15dcf9['discard'](),_0x2d309a=!0x0);}}return _0x2d309a;}),_0xaa1103[_0x4ba9('0x3d')]['document'][_0x4ba9('0x92')](_0x5703c2=>{const _0x582c7f=_0xaa1103[_0x4ba9('0x6c')][_0x4ba9('0x1')](_0x4ba9('0x40'));if(!_0x582c7f||!_0x582c7f['_createdBatches'][_0x4ba9('0x33')](_0x5703c2[_0x4ba9('0x3f')]))return!0x1;let _0x1700d7=!0x1;const _0x2a0861=_0xaa1103[_0x4ba9('0x27')][_0x4ba9('0x1')](_0x4ba9('0x14'))['me'],_0xd0a8f4=_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x12')][_0x4ba9('0x44')][_0x4ba9('0x73')](),_0x8d1550=Array[_0x4ba9('0xb')](_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x12')][_0x4ba9('0x44')]['getChangedMarkers']())[_0x4ba9('0x89')](({name:_0x4c533f,data:_0x4a5ead})=>{const {group:_0x5a9358,subType:_0x30b22d,authorId:_0x2d7c00}=_0x2370f0[_0x4ba9('0x2b')](_0x4c533f);return'suggestion'==_0x5a9358&&_0x4ba9('0x8e')==_0x30b22d&&_0x2d7c00==_0x2a0861['id']&&!_0x4a5ead[_0x4ba9('0x32')];});for(const _0x52b226 of _0xd0a8f4){if('insert'!=_0x52b226[_0x4ba9('0x79')]||_0x4ba9('0x7b')!=_0x52b226[_0x4ba9('0x95')]||0x1!=_0x52b226[_0x4ba9('0x9d')])continue;const _0x4fad56=_0x5703c2[_0x4ba9('0x67')](_0x52b226[_0x4ba9('0x9c')],_0x52b226[_0x4ba9('0x9c')][_0x4ba9('0x69')](0x1));if(!_0x8d1550[_0x4ba9('0x21')](({data:_0x565b2a})=>_0x565b2a[_0x4ba9('0x5e')][_0x4ba9('0x2e')](_0x4fad56)))for(const {name:_0x463a1b,data:_0xb8890}of _0x8d1550)if(_0x4fad56[_0x4ba9('0x2f')](_0xb8890[_0x4ba9('0x5e')])){_0x5703c2['updateMarker'](_0x463a1b,{'range':_0x4fad56}),_0x1700d7=!0x0;break;}}return _0x1700d7;}),_0xaa1103['model']['document'][_0x4ba9('0x92')](_0x453a32=>{let _0x2f4378=!0x1;const _0x36b49b=_0xaa1103[_0x4ba9('0x27')][_0x4ba9('0x1')](_0x4ba9('0x14'))['me'],_0x406cc9=_0x2370f0[_0x4ba9('0x25')]()[_0x4ba9('0x89')](_0x1a6af1=>_0x1a6af1[_0x4ba9('0x5f')]&&_0x1a6af1[_0x4ba9('0x1b')]==_0x36b49b),_0x4263ee=new Set(),_0x2b6ddd=new Set();for(const _0x10de84 of _0x406cc9)if(_0x4ba9('0x8e')==_0x10de84[_0x4ba9('0x4')])for(const _0x17c702 of _0x10de84[_0x4ba9('0x46')]()){const _0x525f5a=_0x17c702[_0x4ba9('0x54')]()[_0x4ba9('0x86')]();if(_0x525f5a){if(_0x525f5a['is'](_0x4ba9('0x18'),_0x4ba9('0x7b'))&&ge(_0x525f5a)){_0x10de84[_0x4ba9('0x72')](_0x17c702[_0x4ba9('0x95')]),_0x4263ee[_0x4ba9('0x64')](_0x525f5a),_0x2f4378=!0x0;const _0x3e1219=_0x525f5a[_0x4ba9('0x10')],_0x3c4b8f=_0x525f5a[_0x4ba9('0x77')],_0x3d85e0=_0x3e1219&&_0x3e1219['is'](_0x4ba9('0x18'),_0x4ba9('0x7b')),_0x55ee58=_0x3c4b8f&&_0x3c4b8f['is'](_0x4ba9('0x18'),_0x4ba9('0x7b'));_0x3d85e0&&!_0x4263ee[_0x4ba9('0x33')](_0x3e1219)&&_0x2b6ddd[_0x4ba9('0x64')](_0x3e1219),_0x55ee58&&!_0x4263ee['has'](_0x3c4b8f)&&_0x2b6ddd[_0x4ba9('0x64')](_0x3c4b8f);}else _0x525f5a['is'](_0x4ba9('0x18'),_0x4ba9('0x13'))&&_0x525f5a[_0x4ba9('0x66')]&&(_0x10de84[_0x4ba9('0x72')](_0x17c702[_0x4ba9('0x95')]),_0x2f4378=!0x0);}}else{if(_0x4ba9('0x5a')==_0x10de84[_0x4ba9('0x4')]){if(!_0x10de84[_0x4ba9('0x9')]||!_0x10de84[_0x4ba9('0x9')][_0x4ba9('0x5b')])continue;const _0x1473f4=_0x10de84[_0x4ba9('0x9')]['markerAttributes'];if(_0x1473f4&&Object[_0x4ba9('0x93')](_0x1473f4)[_0x4ba9('0x9d')])continue;const _0x4e33aa=_0x10de84['attributes'][_0x4ba9('0x5b')];let _0x1a3915=!0x0,_0x3329ae=!0x0;for(const _0x40fc6e of _0x406cc9)if(_0x40fc6e[_0x4ba9('0x4')]&&_0x40fc6e[_0x4ba9('0x4')][_0x4ba9('0x9f')](_0x4ba9('0x8e'))){if(!_0x40fc6e[_0x4ba9('0x9')][_0x4ba9('0x5b')]){_0x3329ae=!0x1;break;}if(_0x40fc6e['id']!=_0x10de84['id']&&_0x40fc6e['attributes'][_0x4ba9('0x5b')]==_0x4e33aa){_0x1a3915=!0x1;break;}}_0x3329ae&&_0x1a3915&&(_0x10de84[_0x4ba9('0x80')](),_0x2f4378=!0x0);}}for(const _0x208541 of _0x4263ee)_0x453a32[_0x4ba9('0x3c')](_0x208541);for(const _0x3783bc of _0x2b6ddd)_0x453a32['unwrap'](_0x3783bc);return _0x2f4378;}),_0xaa1103[_0x4ba9('0x22')][_0x4ba9('0x28')](_0x4ba9('0x8f'))[_0x4ba9('0x7a')]({'model':_0x4ba9('0x16'),'view':(_0x523731,_0x1e637d)=>_0x17e5dd(_0x523731),'converterPriority':'high'}),_0xaa1103[_0x4ba9('0x22')][_0x4ba9('0x28')](_0x4ba9('0x9a'))['markerToHighlight']({'model':_0x4ba9('0x16'),'view':(_0x444580,_0x3e3b58)=>_0x3e3b58[_0x4ba9('0x53')]['showSuggestionHighlights']?_0x17e5dd(_0x444580,!0x1):null,'converterPriority':'high'});const _0x37ff70=_0xaa1103[_0x4ba9('0x1a')][_0x4ba9('0xc')];this['listenTo'](_0x37ff70[_0x4ba9('0x12')],_0x4ba9('0x6d'),(_0x4fdaee,_0x37e10c)=>{const _0x33d1cd=[];for(const _0x1e2e01 of _0x37ff70[_0x4ba9('0x7c')](_0x37e10c[_0x4ba9('0x17')])['getItems']())_0x1e2e01['is'](_0x4ba9('0x18'),'suggestion-td')&&_0x33d1cd[_0x4ba9('0x29')](_0x1e2e01);_0x37ff70[_0x4ba9('0x2')](_0x385b9c=>{for(const _0x214c1e of _0x33d1cd)_0x385b9c[_0x4ba9('0x30')](_0x385b9c[_0x4ba9('0x7c')](_0x214c1e),_0x385b9c[_0x4ba9('0x71')](_0x214c1e)),_0x385b9c[_0x4ba9('0x3c')](_0x214c1e);});});}}function ge(_0x19f644){if(_0x19f644[_0x4ba9('0x66')])return!0x0;const _0x4033aa=_0x19f644[_0x4ba9('0x3e')](0x0);return _0x4033aa['is'](_0x4ba9('0x18'),_0x4ba9('0x13'))&&_0x4033aa[_0x4ba9('0x66')];}function de(_0x54258f,_0x2072e8={},_0x443e19){for(const {isAnchor:_0x42799a,cellHeight:_0x31aa15,cellWidth:_0xda29c6}of _0x443e19[_0x4ba9('0x37')](_0x54258f,{'includeAllSlots':!0x0,..._0x2072e8}))if(!_0x42799a||0x1!=_0x31aa15||0x1!=_0xda29c6)return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2403=['handleResizeTableWidthCommand','columnWidths','*Format:*\x20resize\x20table','document','author','tableWidth','locale','_descriptionFactory','data','registerCustomCallback','plugins','TableColumnResizeEditing','resizeTable','model','commandParams','TrackChangesEditing','formatBlock','resizeTableWidth','registerDescriptionCallback','getSuggestions','markBlockFormat','Users','change','table','bind','get','getSelectedElement','selection','afterInit','getAttribute','formatInline','format','type','getContainedElement','getTableColumnsWidths','handleSuggestionDescription','_suggestionFactory','discard','formatGroupId','accept','editor'];(function(_0x1f3160,_0x240325){const _0x2c7a6f=function(_0x7ef4f7){while(--_0x7ef4f7){_0x1f3160['push'](_0x1f3160['shift']());}};_0x2c7a6f(++_0x240325);}(_0x2403,0xe7));const _0x2c7a=function(_0x1f3160,_0x240325){_0x1f3160=_0x1f3160-0x0;let _0x2c7a6f=_0x2403[_0x1f3160];return _0x2c7a6f;};import{Plugin as _0x218755}from'ckeditor5/src/core.js';import{getTranslation as _0x47ba42}from'../utils/common-translations.js';export default class It extends _0x218755{[_0x2c7a('0x2')](){if(!this[_0x2c7a('0xe')][_0x2c7a('0x19')]['has'](_0x2c7a('0x1a')))return;const _0x421619=this[_0x2c7a('0xe')]['plugins'][_0x2c7a('0x28')](_0x2c7a('0x1e'));_0x421619['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand'][_0x2c7a('0x27')](this)),_0x421619[_0x2c7a('0xa')]['registerCustomCallback'](_0x2c7a('0x1f'),_0x2c7a('0x1b'),'accept',_0x421619[_0x2c7a('0xa')]['getSuggestionCallback'](_0x2c7a('0x1f'),null,_0x2c7a('0xb'))),_0x421619[_0x2c7a('0xa')][_0x2c7a('0x18')](_0x2c7a('0x1f'),'resizeTable','discard',_0x421619['_suggestionFactory']['getSuggestionCallback'](_0x2c7a('0x1f'),null,_0x2c7a('0xd'))),_0x421619[_0x2c7a('0x16')][_0x2c7a('0x21')](this[_0x2c7a('0x9')]['bind'](this));}[_0x2c7a('0xf')](_0x1000ce,_0x5ba341){const _0x347578=this['editor']['plugins'][_0x2c7a('0x28')]('TrackChangesEditing'),_0x4ae465=this[_0x2c7a('0xe')][_0x2c7a('0x19')]['get'](_0x2c7a('0x1a')),_0x558572=_0x5ba341[_0x2c7a('0x26')]||this[_0x2c7a('0xe')][_0x2c7a('0x1c')][_0x2c7a('0x12')][_0x2c7a('0x1')][_0x2c7a('0x0')]();this['editor']['model'][_0x2c7a('0x25')](()=>{const _0x536cb1=_0x4ae465['getColumnGroupElement'](_0x558572);let _0xa491=_0x536cb1?_0x4ae465[_0x2c7a('0x8')](_0x536cb1):null,_0x591385=_0x558572[_0x2c7a('0x3')](_0x2c7a('0x14'))||null;const _0xaf1ced=_0x5ba341[_0x2c7a('0x14')]||_0x591385,_0x56d0a6=_0x5ba341[_0x2c7a('0x10')]||_0xa491,_0x4ee698=this[_0x2c7a('0xe')][_0x2c7a('0x19')][_0x2c7a('0x28')](_0x2c7a('0x24'))['me'];for(const _0x354cde of _0x347578[_0x2c7a('0x22')]()){const _0x740ca=_0x354cde[_0x2c7a('0x7')]();if(_0x2c7a('0x1b')===_0x354cde['subType']&&_0x740ca===_0x558572){_0x354cde[_0x2c7a('0x13')]!==_0x4ee698&&_0x354cde[_0x2c7a('0xb')]();const _0x31d014=_0x354cde[_0x2c7a('0x17')][_0x2c7a('0x1d')];_0x591385=_0x31d014[0x0][_0x2c7a('0x14')],_0xa491=_0x31d014[0x0][_0x2c7a('0x10')];break;}}_0x1000ce({'table':_0x558572,'tableWidth':_0xaf1ced,'columnWidths':_0x56d0a6}),_0x347578[_0x2c7a('0x23')](_0x558572,{'commandName':_0x2c7a('0x20'),'commandParams':[{'tableWidth':_0x591385,'columnWidths':_0xa491}],'formatGroupId':_0x2c7a('0x1b')},[],'resizeTable');});}[_0x2c7a('0x9')](_0x36d784){if(_0x2c7a('0x1f')!=_0x36d784[_0x2c7a('0x6')]&&_0x2c7a('0x4')!=_0x36d784[_0x2c7a('0x6')])return;const {data:_0x451104}=_0x36d784;if(_0x451104&&_0x2c7a('0x1b')===_0x451104[_0x2c7a('0xc')]){const _0x2251e9=_0x2c7a('0x11');return{'type':_0x2c7a('0x5'),'content':_0x47ba42(this[_0x2c7a('0xe')][_0x2c7a('0x15')],_0x2251e9)};}}}
23
+ const _0x59d6=['afterInit','model','*Format:*\x20resize\x20table','formatBlock','type','getSuggestionCallback','handleSuggestionDescription','formatInline','plugins','bind','TableColumnResizeEditing','editor','format','has','registerCustomCallback','change','get','Users','registerDescriptionCallback','discard','_descriptionFactory','selection','resizeTable','table','getContainedElement','data','getTableColumnsWidths','getSuggestions','TrackChangesEditing','columnWidths','handleResizeTableWidthCommand','tableWidth','author','subType','accept','_suggestionFactory','formatGroupId'];(function(_0x372809,_0x59d6e4){const _0x45ad19=function(_0x476ede){while(--_0x476ede){_0x372809['push'](_0x372809['shift']());}};_0x45ad19(++_0x59d6e4);}(_0x59d6,0x14b));const _0x45ad=function(_0x372809,_0x59d6e4){_0x372809=_0x372809-0x0;let _0x45ad19=_0x59d6[_0x372809];return _0x45ad19;};import{Plugin as _0x1a0766}from'ckeditor5/src/core.js';import{getTranslation as _0x10c26e}from'../utils/common-translations.js';export default class It extends _0x1a0766{[_0x45ad('0x2')](){if(!this[_0x45ad('0xd')]['plugins'][_0x45ad('0xf')](_0x45ad('0xc')))return;const _0x17316d=this['editor'][_0x45ad('0xa')]['get'](_0x45ad('0x1e'));_0x17316d['enableCommand']('resizeTableWidth',this[_0x45ad('0x20')]['bind'](this)),_0x17316d[_0x45ad('0x0')][_0x45ad('0x10')](_0x45ad('0x5'),_0x45ad('0x18'),_0x45ad('0x24'),_0x17316d['_suggestionFactory'][_0x45ad('0x7')](_0x45ad('0x5'),null,_0x45ad('0x15'))),_0x17316d[_0x45ad('0x0')][_0x45ad('0x10')](_0x45ad('0x5'),'resizeTable',_0x45ad('0x15'),_0x17316d[_0x45ad('0x0')][_0x45ad('0x7')](_0x45ad('0x5'),null,_0x45ad('0x24'))),_0x17316d[_0x45ad('0x16')][_0x45ad('0x14')](this['handleSuggestionDescription'][_0x45ad('0xb')](this));}[_0x45ad('0x20')](_0x5294d6,_0x2271c6){const _0x3ad5ec=this[_0x45ad('0xd')][_0x45ad('0xa')]['get'](_0x45ad('0x1e')),_0x15a400=this[_0x45ad('0xd')][_0x45ad('0xa')][_0x45ad('0x12')]('TableColumnResizeEditing'),_0x1acc09=_0x2271c6[_0x45ad('0x19')]||this[_0x45ad('0xd')][_0x45ad('0x3')]['document'][_0x45ad('0x17')]['getSelectedElement']();this[_0x45ad('0xd')]['model'][_0x45ad('0x11')](()=>{const _0x55d44f=_0x15a400['getColumnGroupElement'](_0x1acc09);let _0x52c27e=_0x55d44f?_0x15a400[_0x45ad('0x1c')](_0x55d44f):null,_0x2c4ae3=_0x1acc09['getAttribute'](_0x45ad('0x21'))||null;const _0x1907d5=_0x2271c6[_0x45ad('0x21')]||_0x2c4ae3,_0x59892e=_0x2271c6[_0x45ad('0x1f')]||_0x52c27e,_0x2bb136=this[_0x45ad('0xd')][_0x45ad('0xa')][_0x45ad('0x12')](_0x45ad('0x13'))['me'];for(const _0x4cdf4f of _0x3ad5ec[_0x45ad('0x1d')]()){const _0x2083e2=_0x4cdf4f[_0x45ad('0x1a')]();if(_0x45ad('0x18')===_0x4cdf4f[_0x45ad('0x23')]&&_0x2083e2===_0x1acc09){_0x4cdf4f[_0x45ad('0x22')]!==_0x2bb136&&_0x4cdf4f[_0x45ad('0x15')]();const _0x131577=_0x4cdf4f[_0x45ad('0x1b')]['commandParams'];_0x2c4ae3=_0x131577[0x0][_0x45ad('0x21')],_0x52c27e=_0x131577[0x0]['columnWidths'];break;}}_0x5294d6({'table':_0x1acc09,'tableWidth':_0x1907d5,'columnWidths':_0x59892e}),_0x3ad5ec['markBlockFormat'](_0x1acc09,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2c4ae3,'columnWidths':_0x52c27e}],'formatGroupId':_0x45ad('0x18')},[],'resizeTable');});}[_0x45ad('0x8')](_0x17ef26){if(_0x45ad('0x5')!=_0x17ef26[_0x45ad('0x6')]&&_0x45ad('0x9')!=_0x17ef26[_0x45ad('0x6')])return;const {data:_0x4c48dd}=_0x17ef26;if(_0x4c48dd&&_0x45ad('0x18')===_0x4c48dd[_0x45ad('0x1')]){const _0x4f5b98=_0x45ad('0x4');return{'type':_0x45ad('0xe'),'content':_0x10c26e(this[_0x45ad('0xd')]['locale'],_0x4f5b98)};}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x143c=['formatBlock','registerDescriptionCallback','FORMAT_HEADER_COLUMN','showSuggestionHighlights','commandName','highest','data-suggestion','type','markerName','FORMAT_REGULAR_ROW','consumable','data','nodeBefore','setTableRowHeader','_enableDefaultAttributesIntegration','addMarker:suggestion','ck-suggestion-marker--active','TableUtils','plugins','cell','removeClass','end','_acceptFormatSuggestionCallbackFactory','includes','getSuggestion','parent','createTableWalker','setAttribute','forceValue','markerNameToElements','consume','headingRows','name','markerRange','_handleLegacySuggestions','editing','nodeAfter','get','_descriptionFactory','afterInit','registerAttributeLabel','writer','requires','locale','registerCustomCallback','editor','TableEditing','*Format:*\x20%0','commandParams','bindElementToMarker','item','ck-suggestion-marker-','TrackChangesEditing','mapper','unbindElementFromMarkerName','addClass','headingColumns','getCellLocation','_registerLegacyDescription','removeMarker:suggestion','setTableColumnHeader','format','has'];(function(_0x5aa576,_0x143c37){const _0x124333=function(_0x31772d){while(--_0x31772d){_0x5aa576['push'](_0x5aa576['shift']());}};_0x124333(++_0x143c37);}(_0x143c,0x1e1));const _0x1243=function(_0x5aa576,_0x143c37){_0x5aa576=_0x5aa576-0x0;let _0x124333=_0x143c[_0x5aa576];return _0x124333;};import{Plugin as _0x4d8f32}from'ckeditor5/src/core.js';import _0x4ca7f2 from'./table.js';import{getTranslation as _0x12b0e1}from'../utils/common-translations.js';export default class St extends _0x4d8f32{static get[_0x1243('0x2')](){return[_0x4ca7f2];}[_0x1243('0x3e')](){const _0x472a14=this[_0x1243('0x5')];if(!_0x472a14['plugins'][_0x1243('0x16')](_0x1243('0x6')))return;const _0x33ad8c=_0x472a14[_0x1243('0x3')],_0x208231=_0x472a14['plugins'][_0x1243('0x3c')](_0x1243('0xc'));_0x208231[_0x1243('0x25')](_0x1243('0x24'),[],[_0x1243('0x36')]),_0x208231[_0x1243('0x25')](_0x1243('0x14'),[],[_0x1243('0x10')]),_0x208231[_0x1243('0x3d')][_0x1243('0x0')](_0x1243('0x36'),_0x12b0e1(_0x33ad8c,'FORMAT_HEADER_ROW')),_0x208231[_0x1243('0x3d')][_0x1243('0x0')](_0x1243('0x10'),_0x12b0e1(_0x33ad8c,_0x1243('0x19'))),this[_0x1243('0x39')]();}[_0x1243('0x39')](){const _0x1e722a=this[_0x1243('0x5')][_0x1243('0x29')][_0x1243('0x3c')]('TrackChangesEditing'),_0x2632df=this[_0x1243('0x5')][_0x1243('0x29')][_0x1243('0x3c')](_0x1243('0x28')),_0x401c79=this['editor'][_0x1243('0x29')][_0x1243('0x3c')](_0x4ca7f2)[_0x1243('0x2d')]();function _0x15c693({showActiveMarker:_0x5c19aa=!0x0,setDataAttribute:_0x2580b3=!0x0}={}){return(_0x595d31,_0x4c168e,_0x825a2d)=>{const {type:_0x4a9e98,id:_0x7ac5b0}=_0x1e722a['_splitMarkerName'](_0x4c168e[_0x1243('0x1f')]),_0x4a8115=_0x1e722a['getSuggestion'](_0x7ac5b0),_0x1d8dd6=_0x4a8115[_0x1243('0x22')];if(_0x1243('0x17')!=_0x4a8115[_0x1243('0x1e')]||!_0x1d8dd6||_0x1243('0x14')!=_0x1d8dd6[_0x1243('0x1b')])return;if(_0x4c168e[_0x1243('0xa')])return void _0x595d31['stop']();if(!_0x825a2d[_0x1243('0x21')][_0x1243('0x35')](_0x4c168e[_0x1243('0x38')],_0x595d31[_0x1243('0x37')]))return;const _0x684be8=_0x4c168e['markerRange']['start'][_0x1243('0x3b')],_0x125017=_0x4c168e['markerRange'][_0x1243('0x2c')][_0x1243('0x23')],_0x41d942=_0x684be8['parent'][_0x1243('0x30')],{column:_0x26a102}=_0x2632df[_0x1243('0x11')](_0x684be8),{column:_0xd4fa3f}=_0x2632df[_0x1243('0x11')](_0x125017);for(let _0xc06b5b=_0x26a102;_0xc06b5b<=_0xd4fa3f;_0xc06b5b++){const _0x7a77a4=_0x2632df[_0x1243('0x31')](_0x41d942,{'column':_0xc06b5b,'includeAllSlots':!0x1});for(const _0x33a38d of _0x7a77a4){const _0x23e03d=_0x33a38d[_0x1243('0x2a')],_0x2ac3ab=_0x825a2d[_0x1243('0xd')]['toViewElement'](_0x23e03d);_0x825a2d[_0x1243('0x1')][_0x1243('0xf')]('ck-suggestion-marker-'+_0x4a9e98,_0x2ac3ab),_0x2580b3&&_0x825a2d[_0x1243('0x1')][_0x1243('0x32')](_0x1243('0x1d'),_0x7ac5b0,_0x2ac3ab),_0x825a2d[_0x1243('0xd')][_0x1243('0x9')](_0x2ac3ab,_0x4c168e[_0x1243('0x1f')]),_0x5c19aa&&(_0x1e722a['activeMarkers'][_0x1243('0x2e')](_0x4c168e[_0x1243('0x1f')])?_0x825a2d[_0x1243('0x1')][_0x1243('0xf')]('ck-suggestion-marker--active',_0x2ac3ab):_0x825a2d['writer']['removeClass'](_0x1243('0x27'),_0x2ac3ab));}}};}_0x1e722a['_suggestionFactory'][_0x1243('0x4')]('formatBlock','setTableRowHeader','accept',_0x401c79),_0x1e722a['_suggestionFactory'][_0x1243('0x4')](_0x1243('0x17'),'setTableColumnHeader','accept',_0x401c79),this['editor'][_0x1243('0x3a')]['downcastDispatcher']['on'](_0x1243('0x26'),_0x15c693(),{'priority':_0x1243('0x1c')}),this[_0x1243('0x5')][_0x1243('0x22')]['downcastDispatcher']['on'](_0x1243('0x26'),(_0xba60a1,_0x16a8c1,_0x4b8ce3)=>{_0x4b8ce3['options'][_0x1243('0x1a')]&&_0x15c693({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xba60a1,_0x16a8c1,_0x4b8ce3);},{'priority':_0x1243('0x1c')}),this['editor']['editing']['downcastDispatcher']['on'](_0x1243('0x13'),(_0x43b70d,_0x2d884e,_0x1385cf)=>{const {type:_0x1555bd,id:_0x1e9fa2}=_0x1e722a['_splitMarkerName'](_0x2d884e[_0x1243('0x1f')]),_0x57d693=_0x1e722a[_0x1243('0x2f')](_0x1e9fa2),_0x16424b=_0x57d693[_0x1243('0x22')];if(_0x1243('0x17')!=_0x57d693['type']||!_0x16424b||_0x1243('0x14')!=_0x16424b['commandName'])return;const _0x4f9101=_0x1385cf[_0x1243('0xd')][_0x1243('0x34')](_0x2d884e[_0x1243('0x1f')]);if(_0x4f9101)for(const _0x58ad02 of _0x4f9101)_0x1385cf['writer'][_0x1243('0x2b')](_0x1243('0xb')+_0x1555bd,_0x58ad02),_0x1385cf[_0x1243('0x1')][_0x1243('0x2b')](_0x1243('0x27'),_0x58ad02),_0x1385cf[_0x1243('0x1')]['removeAttribute'](_0x1243('0x1d'),_0x58ad02),_0x1385cf[_0x1243('0xd')][_0x1243('0xe')](_0x58ad02,_0x2d884e['markerName']);},{'priority':_0x1243('0x1c')}),this[_0x1243('0x12')]();}[_0x1243('0x12')](){const _0x2688e4=this[_0x1243('0x5')],_0x50ad6a=_0x2688e4[_0x1243('0x3')];function _0x41e183(_0x2a2977){return{'type':_0x1243('0x15'),'content':_0x12b0e1(_0x50ad6a,_0x1243('0x7'),_0x2a2977)};}_0x2688e4[_0x1243('0x29')][_0x1243('0x3c')](_0x1243('0xc'))[_0x1243('0x3d')][_0x1243('0x18')](_0x122309=>{if(_0x1243('0x17')!=_0x122309[_0x1243('0x1e')])return;const {data:_0x174289}=_0x122309;if(_0x174289){if(_0x1243('0x24')==_0x174289[_0x1243('0x1b')]){const _0x16c424=_0x174289[_0x1243('0x8')][0x0]['forceValue'];return _0x41e183(_0x12b0e1(_0x50ad6a,_0x16c424?'FORMAT_HEADER_ROW':_0x1243('0x20')));}if('setTableColumnHeader'==_0x174289[_0x1243('0x1b')]){const _0x566906=_0x174289[_0x1243('0x8')][0x0][_0x1243('0x33')];return _0x41e183(_0x12b0e1(_0x50ad6a,_0x566906?_0x1243('0x19'):'FORMAT_REGULAR_COLUMN'));}}});}}
23
+ const _0x316d=['highest','downcastDispatcher','_handleLegacySuggestions','FORMAT_HEADER_ROW','addClass','bindElementToMarker','stop','headingRows','*Format:*\x20%0','registerDescriptionCallback','getSuggestion','nodeBefore','afterInit','plugins','locale','headingColumns','requires','forceValue','get','setTableColumnHeader','commandParams','setTableRowHeader','_splitMarkerName','_descriptionFactory','writer','addMarker:suggestion','FORMAT_HEADER_COLUMN','editing','nodeAfter','mapper','ck-suggestion-marker--active','cell','registerCustomCallback','name','activeMarkers','_suggestionFactory','parent','data-suggestion','commandName','has','type','removeMarker:suggestion','TrackChangesEditing','markerName','markerNameToElements','markerRange','_acceptFormatSuggestionCallbackFactory','accept','unbindElementFromMarkerName','_registerLegacyDescription','FORMAT_REGULAR_ROW','format','createTableWalker','registerAttributeLabel','ck-suggestion-marker-','getCellLocation','formatBlock','data','toViewElement','_enableDefaultAttributesIntegration','editor'];(function(_0x2536bc,_0x316d89){const _0x3697ba=function(_0x481ffc){while(--_0x481ffc){_0x2536bc['push'](_0x2536bc['shift']());}};_0x3697ba(++_0x316d89);}(_0x316d,0x100));const _0x3697=function(_0x2536bc,_0x316d89){_0x2536bc=_0x2536bc-0x0;let _0x3697ba=_0x316d[_0x2536bc];return _0x3697ba;};import{Plugin as _0x4f3581}from'ckeditor5/src/core.js';import _0x53a4a4 from'./table.js';import{getTranslation as _0x4af261}from'../utils/common-translations.js';export default class St extends _0x4f3581{static get[_0x3697('0x4')](){return[_0x53a4a4];}[_0x3697('0x0')](){const _0x2d7b10=this['editor'];if(!_0x2d7b10[_0x3697('0x1')][_0x3697('0x1b')]('TableEditing'))return;const _0x8af1ac=_0x2d7b10[_0x3697('0x2')],_0x181fdf=_0x2d7b10[_0x3697('0x1')]['get'](_0x3697('0x1e'));_0x181fdf[_0x3697('0x2f')]('setTableRowHeader',[],[_0x3697('0x38')]),_0x181fdf['_enableDefaultAttributesIntegration'](_0x3697('0x7'),[],[_0x3697('0x3')]),_0x181fdf['_descriptionFactory']['registerAttributeLabel'](_0x3697('0x38'),_0x4af261(_0x8af1ac,_0x3697('0x34'))),_0x181fdf[_0x3697('0xb')][_0x3697('0x29')](_0x3697('0x3'),_0x4af261(_0x8af1ac,_0x3697('0xe'))),this['_handleLegacySuggestions']();}[_0x3697('0x33')](){const _0x48dbd9=this[_0x3697('0x30')][_0x3697('0x1')][_0x3697('0x6')](_0x3697('0x1e')),_0x331c85=this[_0x3697('0x30')][_0x3697('0x1')][_0x3697('0x6')]('TableUtils'),_0x10e463=this[_0x3697('0x30')][_0x3697('0x1')][_0x3697('0x6')](_0x53a4a4)[_0x3697('0x22')]();function _0x572f20({showActiveMarker:_0x452f7d=!0x0,setDataAttribute:_0x2dd4ba=!0x0}={}){return(_0x5c22cc,_0x44fbcb,_0x5a36ba)=>{const {type:_0x5a640c,id:_0x2a3155}=_0x48dbd9[_0x3697('0xa')](_0x44fbcb[_0x3697('0x1f')]),_0x5ab3a7=_0x48dbd9[_0x3697('0x3b')](_0x2a3155),_0x310aaa=_0x5ab3a7[_0x3697('0x2d')];if('formatBlock'!=_0x5ab3a7['type']||!_0x310aaa||_0x3697('0x7')!=_0x310aaa[_0x3697('0x1a')])return;if(_0x44fbcb['item'])return void _0x5c22cc[_0x3697('0x37')]();if(!_0x5a36ba['consumable']['consume'](_0x44fbcb[_0x3697('0x21')],_0x5c22cc[_0x3697('0x15')]))return;const _0xa01702=_0x44fbcb[_0x3697('0x21')]['start'][_0x3697('0x10')],_0x1ff223=_0x44fbcb[_0x3697('0x21')]['end'][_0x3697('0x3c')],_0x487084=_0xa01702['parent'][_0x3697('0x18')],{column:_0x2c90d0}=_0x331c85['getCellLocation'](_0xa01702),{column:_0x4f2f95}=_0x331c85[_0x3697('0x2b')](_0x1ff223);for(let _0x19cfe7=_0x2c90d0;_0x19cfe7<=_0x4f2f95;_0x19cfe7++){const _0x498e8e=_0x331c85[_0x3697('0x28')](_0x487084,{'column':_0x19cfe7,'includeAllSlots':!0x1});for(const _0x1ff677 of _0x498e8e){const _0x3a4c7b=_0x1ff677[_0x3697('0x13')],_0x5455b6=_0x5a36ba[_0x3697('0x11')][_0x3697('0x2e')](_0x3a4c7b);_0x5a36ba[_0x3697('0xc')][_0x3697('0x35')](_0x3697('0x2a')+_0x5a640c,_0x5455b6),_0x2dd4ba&&_0x5a36ba['writer']['setAttribute'](_0x3697('0x19'),_0x2a3155,_0x5455b6),_0x5a36ba[_0x3697('0x11')][_0x3697('0x36')](_0x5455b6,_0x44fbcb[_0x3697('0x1f')]),_0x452f7d&&(_0x48dbd9[_0x3697('0x16')]['includes'](_0x44fbcb[_0x3697('0x1f')])?_0x5a36ba['writer'][_0x3697('0x35')](_0x3697('0x12'),_0x5455b6):_0x5a36ba['writer']['removeClass'](_0x3697('0x12'),_0x5455b6));}}};}_0x48dbd9[_0x3697('0x17')][_0x3697('0x14')]('formatBlock','setTableRowHeader',_0x3697('0x23'),_0x10e463),_0x48dbd9[_0x3697('0x17')]['registerCustomCallback'](_0x3697('0x2c'),_0x3697('0x7'),'accept',_0x10e463),this[_0x3697('0x30')][_0x3697('0xf')][_0x3697('0x32')]['on']('addMarker:suggestion',_0x572f20(),{'priority':_0x3697('0x31')}),this[_0x3697('0x30')][_0x3697('0x2d')]['downcastDispatcher']['on'](_0x3697('0xd'),(_0x4018e5,_0x2b0da2,_0x2ac1b1)=>{_0x2ac1b1['options']['showSuggestionHighlights']&&_0x572f20({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4018e5,_0x2b0da2,_0x2ac1b1);},{'priority':_0x3697('0x31')}),this['editor'][_0x3697('0xf')][_0x3697('0x32')]['on'](_0x3697('0x1d'),(_0x31440f,_0x4ca199,_0x38c271)=>{const {type:_0x346688,id:_0x550ee4}=_0x48dbd9['_splitMarkerName'](_0x4ca199[_0x3697('0x1f')]),_0x1f888f=_0x48dbd9['getSuggestion'](_0x550ee4),_0x2a41ce=_0x1f888f['data'];if(_0x3697('0x2c')!=_0x1f888f[_0x3697('0x1c')]||!_0x2a41ce||_0x3697('0x7')!=_0x2a41ce[_0x3697('0x1a')])return;const _0x5710fe=_0x38c271[_0x3697('0x11')][_0x3697('0x20')](_0x4ca199['markerName']);if(_0x5710fe)for(const _0x54ad6a of _0x5710fe)_0x38c271[_0x3697('0xc')]['removeClass']('ck-suggestion-marker-'+_0x346688,_0x54ad6a),_0x38c271[_0x3697('0xc')]['removeClass'](_0x3697('0x12'),_0x54ad6a),_0x38c271[_0x3697('0xc')]['removeAttribute'](_0x3697('0x19'),_0x54ad6a),_0x38c271[_0x3697('0x11')][_0x3697('0x24')](_0x54ad6a,_0x4ca199[_0x3697('0x1f')]);},{'priority':_0x3697('0x31')}),this[_0x3697('0x25')]();}[_0x3697('0x25')](){const _0xcc983b=this[_0x3697('0x30')],_0xe278fe=_0xcc983b['locale'];function _0x2745a6(_0xa3d5fa){return{'type':_0x3697('0x27'),'content':_0x4af261(_0xe278fe,_0x3697('0x39'),_0xa3d5fa)};}_0xcc983b[_0x3697('0x1')][_0x3697('0x6')](_0x3697('0x1e'))[_0x3697('0xb')][_0x3697('0x3a')](_0x1d957a=>{if(_0x3697('0x2c')!=_0x1d957a[_0x3697('0x1c')])return;const {data:_0xf6baaf}=_0x1d957a;if(_0xf6baaf){if(_0x3697('0x9')==_0xf6baaf[_0x3697('0x1a')]){const _0x3c150f=_0xf6baaf[_0x3697('0x8')][0x0]['forceValue'];return _0x2745a6(_0x4af261(_0xe278fe,_0x3c150f?_0x3697('0x34'):_0x3697('0x26')));}if(_0x3697('0x7')==_0xf6baaf[_0x3697('0x1a')]){const _0x4fd16f=_0xf6baaf[_0x3697('0x8')][0x0][_0x3697('0x5')];return _0x2745a6(_0x4af261(_0xe278fe,_0x4fd16f?_0x3697('0xe'):'FORMAT_REGULAR_COLUMN'));}}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22e5=['mergeTableCells','enableCommand','requires','mergeTableCellUp','horizontally','*Split\x20cell:*\x20vertically','return','commands','detach','findAncestor','createRangeOn','$graveyard','_areSelectedCellsMergable','mergeTableCellDown','change','createTableWalker','accept','registerCustomCallback','size','TrackChangesEditing','mergeTableCellRight','highest','getFirstPosition','forceDefaultExecution','*Split\x20cell:*\x20horizontally','plugins','registerDescriptionCallback','value','locale','getRanges','selection','table','type','stop','author','format','deletion','isEnabled','markBlockFormat','subType','TableUtils','map','find','formatBlock','_suggestionFactory','fromRange','length','from','filter','TableEditing','document','has','splitTableCellHorizontally','_descriptionFactory','editor','_tablePostFixingSubtypes','getSuggestions','markMultiRangeBlockFormat','insertion','*Merge\x20cells*','get','getSelectionAffectedTableCells','isInContent','root','getAncestors','tableCell','refresh','_areMergableCells','mergeTableCellLeft','getCellLocation','formatInline','containsRange','setSelection','splitTableCellVertically','cell','model','execute','low','trackChanges','commandName','element'];(function(_0x2d5cc7,_0x22e5b3){const _0x7dc02d=function(_0x5671a9){while(--_0x5671a9){_0x2d5cc7['push'](_0x2d5cc7['shift']());}};_0x7dc02d(++_0x22e5b3);}(_0x22e5,0x122));const _0x7dc0=function(_0x2d5cc7,_0x22e5b3){_0x2d5cc7=_0x2d5cc7-0x0;let _0x7dc02d=_0x22e5[_0x2d5cc7];return _0x7dc02d;};import{Plugin as _0x18ff58}from'ckeditor5/src/core.js';import _0x159373 from'./table.js';import{LiveRange as _0x8ae680}from'ckeditor5/src/engine.js';import{getTranslation as _0x147b2c}from'../utils/common-translations.js';export default class jt extends _0x18ff58{static get[_0x7dc0('0x24')](){return[_0x159373];}['afterInit'](){const _0x27f93f=this[_0x7dc0('0x7')],_0x361186=_0x27f93f['model'][_0x7dc0('0x3')][_0x7dc0('0x40')],_0x7acfe9=_0x27f93f[_0x7dc0('0x3e')];if(!_0x27f93f[_0x7dc0('0x3b')][_0x7dc0('0x4')](_0x7dc0('0x2')))return;const _0x426725=_0x27f93f[_0x7dc0('0x3b')][_0x7dc0('0xd')](_0x7dc0('0x35')),_0x3cbb5d=_0x27f93f[_0x7dc0('0x3b')][_0x7dc0('0xd')](_0x7dc0('0x4a')),_0x4db1c8=_0x27f93f['plugins'][_0x7dc0('0xd')](_0x159373);_0x4db1c8[_0x7dc0('0x8')]['push'](_0x7dc0('0x22')),_0x426725[_0x7dc0('0x23')]('mergeTableCells',()=>{const _0x14a3fc=_0x3cbb5d['getSelectionAffectedTableCells'](_0x27f93f[_0x7dc0('0x1c')][_0x7dc0('0x3')][_0x7dc0('0x40')]);_0x27f93f['model'][_0x7dc0('0x30')](()=>{_0x426725['markMultiRangeBlockFormat'](_0x14a3fc,{'commandName':'mergeTableCells','commandParams':[]},[],_0x7dc0('0x22'));});}),_0x27f93f['commands'][_0x7dc0('0xd')](_0x7dc0('0x22'))['on'](_0x7dc0('0x1d'),(_0x54efb6,_0xb516f0)=>{_0x27f93f['commands'][_0x7dc0('0xd')](_0x7dc0('0x1f'))['value']&&(_0xb516f0[_0x7dc0('0x50')]>0x0&&_0xb516f0[_0xb516f0[_0x7dc0('0x50')]-0x1]&&_0xb516f0[_0xb516f0[_0x7dc0('0x50')]-0x1][_0x7dc0('0x39')]||_0x426725['_isForcedDefaultExecutionBlock']||this[_0x7dc0('0x2e')]()||_0x54efb6[_0x7dc0('0x43')]());},{'priority':_0x7dc0('0x37')});for(const _0x123634 of['mergeTableCellUp',_0x7dc0('0x36'),_0x7dc0('0x2f'),_0x7dc0('0x15')]){const _0x19894c=_0x27f93f['commands']['get'](_0x123634);_0x426725[_0x7dc0('0x23')](_0x123634,()=>{const _0x51d7cd=_0x27f93f[_0x7dc0('0x1c')][_0x7dc0('0x3')][_0x7dc0('0x40')][_0x7dc0('0x38')]()[_0x7dc0('0x11')]()[_0x7dc0('0x4c')](_0x1252a2=>_0x1252a2['is'](_0x7dc0('0x21'),_0x7dc0('0x12'))),_0x3122a9=_0x19894c[_0x7dc0('0x3d')];_0x27f93f['model'][_0x7dc0('0x30')](()=>{_0x426725[_0x7dc0('0xa')]([_0x51d7cd,_0x3122a9],{'commandName':_0x7dc0('0x22'),'commandParams':[]},[],'mergeTableCells');});});}for(const _0x24c2cf of[_0x7dc0('0x1a'),_0x7dc0('0x5')]){const _0x54bca7=_0x27f93f[_0x7dc0('0x29')][_0x7dc0('0xd')](_0x24c2cf);_0x426725[_0x7dc0('0x23')](_0x24c2cf,()=>{const _0x259db9=_0x3cbb5d[_0x7dc0('0xe')](_0x27f93f[_0x7dc0('0x1c')]['document'][_0x7dc0('0x40')])[0x0],_0x1d64f6=_0x259db9[_0x7dc0('0x2b')](_0x7dc0('0x41')),{column:_0x1da171,row:_0x2d1323}=_0x3cbb5d[_0x7dc0('0x16')](_0x259db9);let _0x5e269c=[];if(_0x7dc0('0x26')==_0x54bca7['direction']){const _0x1cfced=_0x3cbb5d['createTableWalker'](_0x1d64f6,{'startRow':_0x2d1323,'endRow':_0x2d1323,'includeAllSlots':!0x0});_0x5e269c=Array[_0x7dc0('0x0')](_0x1cfced)[_0x7dc0('0x4b')](_0x374b49=>_0x374b49[_0x7dc0('0x1b')]);}else{const _0x51132c=_0x3cbb5d[_0x7dc0('0x31')](_0x1d64f6,{'column':_0x1da171,'includeAllSlots':!0x0});_0x5e269c=Array[_0x7dc0('0x0')](_0x51132c)['map'](_0x40bca1=>_0x40bca1[_0x7dc0('0x1b')]);}_0x27f93f[_0x7dc0('0x1c')]['change'](_0x36ac60=>{_0x426725[_0x7dc0('0x48')](_0x36ac60[_0x7dc0('0x2c')](_0x259db9),{'commandName':_0x24c2cf,'commandParams':[]},_0x5e269c,_0x24c2cf);});});}_0x426725[_0x7dc0('0x6')][_0x7dc0('0x3c')](_0x12881a=>{if(_0x7dc0('0x4d')!=_0x12881a[_0x7dc0('0x42')]&&_0x7dc0('0x17')!=_0x12881a[_0x7dc0('0x42')])return;const {data:_0x54e823}=_0x12881a;return _0x54e823&&_0x7dc0('0x22')==_0x54e823[_0x7dc0('0x20')]?{'type':_0x7dc0('0x45'),'content':_0x147b2c(_0x7acfe9,_0x7dc0('0xc'))}:void 0x0;}),_0x426725['_descriptionFactory'][_0x7dc0('0x3c')](_0x4533fc=>{if(_0x7dc0('0x4d')!=_0x4533fc[_0x7dc0('0x42')]&&_0x7dc0('0x17')!=_0x4533fc[_0x7dc0('0x42')])return;const {data:_0x1f0e9a}=_0x4533fc;return _0x1f0e9a?_0x7dc0('0x1a')==_0x1f0e9a[_0x7dc0('0x20')]?{'type':'format','content':_0x147b2c(_0x7acfe9,_0x7dc0('0x27'))}:_0x7dc0('0x5')==_0x1f0e9a[_0x7dc0('0x20')]?{'type':_0x7dc0('0x45'),'content':_0x147b2c(_0x7acfe9,_0x7dc0('0x3a'))}:void 0x0:void 0x0;});const _0x50458b=_0x4db1c8['_acceptFormatSuggestionCallbackFactory']();for(const _0x37801b of[_0x7dc0('0x25'),'mergeTableCellRight',_0x7dc0('0x2f'),_0x7dc0('0x15')])_0x426725['_suggestionFactory'][_0x7dc0('0x33')](_0x7dc0('0x4d'),_0x37801b,'accept',_0x50458b);for(const _0x1c1cd8 of['splitTableCellVertically',_0x7dc0('0x5')])_0x426725[_0x7dc0('0x4e')][_0x7dc0('0x33')](_0x7dc0('0x4d'),_0x1c1cd8,'accept',_0x50458b);_0x426725['_suggestionFactory'][_0x7dc0('0x33')](_0x7dc0('0x4d'),_0x7dc0('0x22'),_0x7dc0('0x32'),_0x140213=>{_0x27f93f[_0x7dc0('0x1c')][_0x7dc0('0x30')](_0x2a4054=>{const _0x5b9c39=Array[_0x7dc0('0x0')](_0x361186[_0x7dc0('0x3f')]())[_0x7dc0('0x4b')](_0x3bf5dd=>_0x8ae680[_0x7dc0('0x4f')](_0x3bf5dd));_0x2a4054[_0x7dc0('0x19')](_0x140213),_0x27f93f[_0x7dc0('0x29')][_0x7dc0('0xd')]('mergeTableCells')[_0x7dc0('0x13')](),_0x27f93f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1f0112=_0x5b9c39[_0x7dc0('0x1')](_0x125e21=>_0x7dc0('0x2d')!=_0x125e21[_0x7dc0('0x10')]['rootName']);_0x1f0112[_0x7dc0('0x50')]>0x0&&_0x2a4054[_0x7dc0('0x19')](_0x1f0112);for(const _0x55a29b of _0x5b9c39)_0x55a29b[_0x7dc0('0x2a')]();});});for(const _0x2ba8dc of[_0x7dc0('0x25'),_0x7dc0('0x2f'),_0x7dc0('0x15'),_0x7dc0('0x36')]){const _0x3fd051=_0x27f93f[_0x7dc0('0x29')][_0x7dc0('0xd')](_0x2ba8dc);_0x3fd051['on']('set:isEnabled',(_0x14d861,_0x1d03a4,_0x1dc948)=>{if(_0x1dc948){const _0x27c44b=_0x27f93f[_0x7dc0('0x1c')][_0x7dc0('0x3')][_0x7dc0('0x40')][_0x7dc0('0x38')]()['getAncestors']()[_0x7dc0('0x4c')](_0x4fb45d=>_0x4fb45d['is'](_0x7dc0('0x21'),_0x7dc0('0x12')));this[_0x7dc0('0x14')](_0x3fd051[_0x7dc0('0x3d')],_0x27c44b)||(_0x14d861[_0x7dc0('0x28')]=!0x1,_0x14d861[_0x7dc0('0x43')]());}},{'priority':_0x7dc0('0x1e')});}}[_0x7dc0('0x2e')](){const _0xd4b72f=this[_0x7dc0('0x7')]['commands']['get'](_0x7dc0('0x22')),_0x4bb8a3=this[_0x7dc0('0x7')][_0x7dc0('0x3b')][_0x7dc0('0xd')](_0x7dc0('0x4a'));if(!_0xd4b72f[_0x7dc0('0x47')])return!0x1;const _0x5ee225=_0x4bb8a3[_0x7dc0('0xe')](this['editor'][_0x7dc0('0x1c')]['document'][_0x7dc0('0x40')]);for(const _0x11fc41 of _0x5ee225)for(const _0x5054d1 of _0x5ee225)if(_0x11fc41!=_0x5054d1&&!this[_0x7dc0('0x14')](_0x11fc41,_0x5054d1))return!0x1;return!0x0;}[_0x7dc0('0x14')](_0x4bd039,_0x332246){const _0x15652c=this['editor'][_0x7dc0('0x3b')][_0x7dc0('0xd')](_0x7dc0('0x35')),_0x2e3e63=this[_0x7dc0('0x7')][_0x7dc0('0x1c')][_0x7dc0('0x2c')](_0x4bd039),_0x3212dc=this[_0x7dc0('0x7')][_0x7dc0('0x1c')]['createRangeOn'](_0x332246),_0x1a46f6=new Set(),_0x48c4a6=new Set();for(const _0xc4860b of _0x15652c[_0x7dc0('0x9')]())if((_0x7dc0('0xb')==_0xc4860b[_0x7dc0('0x42')]||_0x7dc0('0x46')==_0xc4860b[_0x7dc0('0x42')]||_0x7dc0('0x22')==_0xc4860b[_0x7dc0('0x49')])&&_0xc4860b[_0x7dc0('0xf')])for(const _0x417b20 of _0xc4860b['getRanges']())_0x417b20['containsRange'](_0x2e3e63,!0x0)&&_0x1a46f6['add'](_0xc4860b[_0x7dc0('0x42')]+':'+_0xc4860b[_0x7dc0('0x44')]['id']),_0x417b20[_0x7dc0('0x18')](_0x3212dc,!0x0)&&_0x48c4a6['add'](_0xc4860b[_0x7dc0('0x42')]+':'+_0xc4860b[_0x7dc0('0x44')]['id']);if(_0x1a46f6[_0x7dc0('0x34')]!=_0x48c4a6['size'])return!0x1;for(const _0x751ea4 of _0x1a46f6)if(!_0x48c4a6['has'](_0x751ea4))return!0x1;return!0x0;}}
23
+ const _0x34fc=['element','findAncestor','length','mergeTableCellUp','rootName','cell','*Split\x20cell:*\x20horizontally','splitTableCellVertically','enableCommand','mergeTableCellRight','requires','low','document','getFirstPosition','detach','mergeTableCellLeft','afterInit','get','markMultiRangeBlockFormat','map','isInContent','setSelection','commands','splitTableCellHorizontally','_areMergableCells','value','_tablePostFixingSubtypes','root','fromRange','from','getSelectionAffectedTableCells','mergeTableCellDown','getCellLocation','createTableWalker','*Merge\x20cells*','refresh','getRanges','model','registerCustomCallback','locale','size','set:isEnabled','TableEditing','formatBlock','accept','isEnabled','markBlockFormat','stop','has','tableCell','_descriptionFactory','_isForcedDefaultExecutionBlock','add','_areSelectedCellsMergable','highest','change','format','author','type','push','plugins','TableUtils','forceDefaultExecution','commandName','TrackChangesEditing','execute','horizontally','table','formatInline','selection','createRangeOn','trackChanges','containsRange','editor','mergeTableCells','direction','_suggestionFactory','getAncestors'];(function(_0x232abd,_0x34fcc7){const _0x35f06e=function(_0x5aaedb){while(--_0x5aaedb){_0x232abd['push'](_0x232abd['shift']());}};_0x35f06e(++_0x34fcc7);}(_0x34fc,0xf7));const _0x35f0=function(_0x232abd,_0x34fcc7){_0x232abd=_0x232abd-0x0;let _0x35f06e=_0x34fc[_0x232abd];return _0x35f06e;};import{Plugin as _0x5695b0}from'ckeditor5/src/core.js';import _0x5d45f7 from'./table.js';import{LiveRange as _0x52eca2}from'ckeditor5/src/engine.js';import{getTranslation as _0x466484}from'../utils/common-translations.js';export default class jt extends _0x5695b0{static get[_0x35f0('0x4b')](){return[_0x5d45f7];}[_0x35f0('0x3')](){const _0x416bcc=this[_0x35f0('0x3c')],_0x1c8843=_0x416bcc[_0x35f0('0x18')][_0x35f0('0x4d')][_0x35f0('0x38')],_0x24c7e2=_0x416bcc[_0x35f0('0x1a')];if(!_0x416bcc['plugins'][_0x35f0('0x23')](_0x35f0('0x1d')))return;const _0x23edb3=_0x416bcc['plugins'][_0x35f0('0x4')](_0x35f0('0x33')),_0x3a6a9a=_0x416bcc[_0x35f0('0x2f')][_0x35f0('0x4')](_0x35f0('0x30')),_0x250cad=_0x416bcc[_0x35f0('0x2f')][_0x35f0('0x4')](_0x5d45f7);_0x250cad[_0x35f0('0xd')][_0x35f0('0x2e')](_0x35f0('0x3d')),_0x23edb3['enableCommand']('mergeTableCells',()=>{const _0xfb9f2b=_0x3a6a9a['getSelectionAffectedTableCells'](_0x416bcc[_0x35f0('0x18')]['document'][_0x35f0('0x38')]);_0x416bcc[_0x35f0('0x18')][_0x35f0('0x2a')](()=>{_0x23edb3[_0x35f0('0x5')](_0xfb9f2b,{'commandName':_0x35f0('0x3d'),'commandParams':[]},[],_0x35f0('0x3d'));});}),_0x416bcc[_0x35f0('0x9')][_0x35f0('0x4')](_0x35f0('0x3d'))['on'](_0x35f0('0x34'),(_0x222ec1,_0x54d7da)=>{_0x416bcc['commands'][_0x35f0('0x4')](_0x35f0('0x3a'))[_0x35f0('0xc')]&&(_0x54d7da[_0x35f0('0x43')]>0x0&&_0x54d7da[_0x54d7da['length']-0x1]&&_0x54d7da[_0x54d7da[_0x35f0('0x43')]-0x1][_0x35f0('0x31')]||_0x23edb3[_0x35f0('0x26')]||this[_0x35f0('0x28')]()||_0x222ec1[_0x35f0('0x22')]());},{'priority':_0x35f0('0x29')});for(const _0x15dd8e of[_0x35f0('0x44'),_0x35f0('0x4a'),_0x35f0('0x12'),_0x35f0('0x2')]){const _0x273251=_0x416bcc['commands']['get'](_0x15dd8e);_0x23edb3[_0x35f0('0x49')](_0x15dd8e,()=>{const _0x17f841=_0x416bcc[_0x35f0('0x18')][_0x35f0('0x4d')][_0x35f0('0x38')][_0x35f0('0x0')]()['getAncestors']()['find'](_0x4a6cfe=>_0x4a6cfe['is'](_0x35f0('0x41'),_0x35f0('0x24'))),_0xe70d1a=_0x273251[_0x35f0('0xc')];_0x416bcc[_0x35f0('0x18')]['change'](()=>{_0x23edb3[_0x35f0('0x5')]([_0x17f841,_0xe70d1a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x490799 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5cc797=_0x416bcc[_0x35f0('0x9')][_0x35f0('0x4')](_0x490799);_0x23edb3['enableCommand'](_0x490799,()=>{const _0x1e4ab5=_0x3a6a9a[_0x35f0('0x11')](_0x416bcc[_0x35f0('0x18')][_0x35f0('0x4d')][_0x35f0('0x38')])[0x0],_0xf63635=_0x1e4ab5[_0x35f0('0x42')](_0x35f0('0x36')),{column:_0x2bb00b,row:_0x4f027b}=_0x3a6a9a[_0x35f0('0x13')](_0x1e4ab5);let _0x557365=[];if(_0x35f0('0x35')==_0x5cc797[_0x35f0('0x3e')]){const _0x46d6f0=_0x3a6a9a[_0x35f0('0x14')](_0xf63635,{'startRow':_0x4f027b,'endRow':_0x4f027b,'includeAllSlots':!0x0});_0x557365=Array[_0x35f0('0x10')](_0x46d6f0)[_0x35f0('0x6')](_0x6eeb06=>_0x6eeb06[_0x35f0('0x46')]);}else{const _0x3f38bd=_0x3a6a9a[_0x35f0('0x14')](_0xf63635,{'column':_0x2bb00b,'includeAllSlots':!0x0});_0x557365=Array[_0x35f0('0x10')](_0x3f38bd)[_0x35f0('0x6')](_0x19942e=>_0x19942e[_0x35f0('0x46')]);}_0x416bcc[_0x35f0('0x18')][_0x35f0('0x2a')](_0x7fbbe4=>{_0x23edb3[_0x35f0('0x21')](_0x7fbbe4[_0x35f0('0x39')](_0x1e4ab5),{'commandName':_0x490799,'commandParams':[]},_0x557365,_0x490799);});});}_0x23edb3[_0x35f0('0x25')]['registerDescriptionCallback'](_0x2f6197=>{if(_0x35f0('0x1e')!=_0x2f6197[_0x35f0('0x2d')]&&'formatInline'!=_0x2f6197[_0x35f0('0x2d')])return;const {data:_0x5d4f86}=_0x2f6197;return _0x5d4f86&&_0x35f0('0x3d')==_0x5d4f86['commandName']?{'type':'format','content':_0x466484(_0x24c7e2,_0x35f0('0x15'))}:void 0x0;}),_0x23edb3[_0x35f0('0x25')]['registerDescriptionCallback'](_0x5797d7=>{if(_0x35f0('0x1e')!=_0x5797d7[_0x35f0('0x2d')]&&_0x35f0('0x37')!=_0x5797d7[_0x35f0('0x2d')])return;const {data:_0xae8b4}=_0x5797d7;return _0xae8b4?_0x35f0('0x48')==_0xae8b4['commandName']?{'type':_0x35f0('0x2b'),'content':_0x466484(_0x24c7e2,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xae8b4[_0x35f0('0x32')]?{'type':'format','content':_0x466484(_0x24c7e2,_0x35f0('0x47'))}:void 0x0:void 0x0;});const _0x647eae=_0x250cad['_acceptFormatSuggestionCallbackFactory']();for(const _0x1f58c0 of[_0x35f0('0x44'),_0x35f0('0x4a'),_0x35f0('0x12'),_0x35f0('0x2')])_0x23edb3['_suggestionFactory']['registerCustomCallback'](_0x35f0('0x1e'),_0x1f58c0,_0x35f0('0x1f'),_0x647eae);for(const _0x3181d2 of[_0x35f0('0x48'),_0x35f0('0xa')])_0x23edb3[_0x35f0('0x3f')][_0x35f0('0x19')](_0x35f0('0x1e'),_0x3181d2,_0x35f0('0x1f'),_0x647eae);_0x23edb3[_0x35f0('0x3f')]['registerCustomCallback'](_0x35f0('0x1e'),_0x35f0('0x3d'),_0x35f0('0x1f'),_0x409624=>{_0x416bcc[_0x35f0('0x18')][_0x35f0('0x2a')](_0x29cc48=>{const _0x36f473=Array[_0x35f0('0x10')](_0x1c8843[_0x35f0('0x17')]())[_0x35f0('0x6')](_0x340b31=>_0x52eca2[_0x35f0('0xf')](_0x340b31));_0x29cc48[_0x35f0('0x8')](_0x409624),_0x416bcc[_0x35f0('0x9')]['get']('mergeTableCells')[_0x35f0('0x16')](),_0x416bcc[_0x35f0('0x34')](_0x35f0('0x3d'),{'forceDefaultExecution':!0x0});const _0x5cea70=_0x36f473['filter'](_0x477ab1=>'$graveyard'!=_0x477ab1[_0x35f0('0xe')][_0x35f0('0x45')]);_0x5cea70['length']>0x0&&_0x29cc48['setSelection'](_0x5cea70);for(const _0x5a9dce of _0x36f473)_0x5a9dce[_0x35f0('0x1')]();});});for(const _0x538e30 of['mergeTableCellUp','mergeTableCellDown',_0x35f0('0x2'),'mergeTableCellRight']){const _0x575ea0=_0x416bcc[_0x35f0('0x9')][_0x35f0('0x4')](_0x538e30);_0x575ea0['on'](_0x35f0('0x1c'),(_0x39caab,_0x4696c4,_0x258b05)=>{if(_0x258b05){const _0x217761=_0x416bcc[_0x35f0('0x18')]['document'][_0x35f0('0x38')]['getFirstPosition']()[_0x35f0('0x40')]()['find'](_0x12e72b=>_0x12e72b['is']('element',_0x35f0('0x24')));this[_0x35f0('0xb')](_0x575ea0[_0x35f0('0xc')],_0x217761)||(_0x39caab['return']=!0x1,_0x39caab[_0x35f0('0x22')]());}},{'priority':_0x35f0('0x4c')});}}[_0x35f0('0x28')](){const _0x167b47=this[_0x35f0('0x3c')]['commands'][_0x35f0('0x4')](_0x35f0('0x3d')),_0x424aa9=this[_0x35f0('0x3c')]['plugins'][_0x35f0('0x4')](_0x35f0('0x30'));if(!_0x167b47[_0x35f0('0x20')])return!0x1;const _0x57fa7d=_0x424aa9[_0x35f0('0x11')](this[_0x35f0('0x3c')][_0x35f0('0x18')]['document']['selection']);for(const _0x4f4e4d of _0x57fa7d)for(const _0x327623 of _0x57fa7d)if(_0x4f4e4d!=_0x327623&&!this[_0x35f0('0xb')](_0x4f4e4d,_0x327623))return!0x1;return!0x0;}[_0x35f0('0xb')](_0x44b684,_0x264a62){const _0xd53e07=this[_0x35f0('0x3c')]['plugins'][_0x35f0('0x4')]('TrackChangesEditing'),_0x39bcf1=this[_0x35f0('0x3c')]['model'][_0x35f0('0x39')](_0x44b684),_0x332471=this[_0x35f0('0x3c')][_0x35f0('0x18')][_0x35f0('0x39')](_0x264a62),_0x9b6c51=new Set(),_0x531a80=new Set();for(const _0x299024 of _0xd53e07['getSuggestions']())if(('insertion'==_0x299024['type']||'deletion'==_0x299024['type']||'mergeTableCells'==_0x299024['subType'])&&_0x299024[_0x35f0('0x7')])for(const _0x1f9cea of _0x299024[_0x35f0('0x17')]())_0x1f9cea['containsRange'](_0x39bcf1,!0x0)&&_0x9b6c51[_0x35f0('0x27')](_0x299024['type']+':'+_0x299024[_0x35f0('0x2c')]['id']),_0x1f9cea[_0x35f0('0x3b')](_0x332471,!0x0)&&_0x531a80[_0x35f0('0x27')](_0x299024[_0x35f0('0x2d')]+':'+_0x299024[_0x35f0('0x2c')]['id']);if(_0x9b6c51[_0x35f0('0x1b')]!=_0x531a80[_0x35f0('0x1b')])return!0x1;for(const _0x4a29e6 of _0x9b6c51)if(!_0x531a80['has'](_0x4a29e6))return!0x1;return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59b0=['plugins','tableOfContents','get','enableCommand','afterInit','editor','locale','_descriptionFactory','commands','insertTableOfContents','TrackChangesEditing'];(function(_0x25e661,_0x59b010){const _0xd806ab=function(_0x34f6d0){while(--_0x34f6d0){_0x25e661['push'](_0x25e661['shift']());}};_0xd806ab(++_0x59b010);}(_0x59b0,0x103));const _0xd806=function(_0x25e661,_0x59b010){_0x25e661=_0x25e661-0x0;let _0xd806ab=_0x59b0[_0x25e661];return _0xd806ab;};import{Plugin as _0x7b0a1c}from'ckeditor5/src/core.js';import{getTranslation as _0x36e703}from'../utils/common-translations.js';export default class _t extends _0x7b0a1c{[_0xd806('0x9')](){const _0x463341=this[_0xd806('0xa')];if(!_0x463341[_0xd806('0x2')][_0xd806('0x7')](_0xd806('0x3')))return;_0x463341[_0xd806('0x5')][_0xd806('0x7')](_0xd806('0x4'))[_0xd806('0x8')](_0xd806('0x3'));const _0x23c1f5=_0x463341['plugins']['get'](_0xd806('0x4')),_0x38f2a2=_0x463341[_0xd806('0x0')];_0x23c1f5[_0xd806('0x1')]['registerElementLabel'](_0xd806('0x6'),_0x256631=>_0x36e703(_0x38f2a2,'ELEMENT_TABLE_OF_CONTENTS',_0x256631));}}
23
+ const _0x33ee=['insertTableOfContents','tableOfContents','registerElementLabel','ELEMENT_TABLE_OF_CONTENTS','afterInit','get','commands','locale','editor','TrackChangesEditing','_descriptionFactory','plugins'];(function(_0x5d2853,_0x33eeb7){const _0x296eef=function(_0x4f7500){while(--_0x4f7500){_0x5d2853['push'](_0x5d2853['shift']());}};_0x296eef(++_0x33eeb7);}(_0x33ee,0x1eb));const _0x296e=function(_0x5d2853,_0x33eeb7){_0x5d2853=_0x5d2853-0x0;let _0x296eef=_0x33ee[_0x5d2853];return _0x296eef;};import{Plugin as _0x143379}from'ckeditor5/src/core.js';import{getTranslation as _0x58d8ff}from'../utils/common-translations.js';export default class _t extends _0x143379{[_0x296e('0x5')](){const _0x28d3c3=this[_0x296e('0x9')];if(!_0x28d3c3[_0x296e('0x7')][_0x296e('0x6')](_0x296e('0x1')))return;_0x28d3c3[_0x296e('0x0')][_0x296e('0x6')](_0x296e('0xa'))['enableCommand'](_0x296e('0x1'));const _0x5cd46f=_0x28d3c3[_0x296e('0x0')]['get'](_0x296e('0xa')),_0x386df4=_0x28d3c3[_0x296e('0x8')];_0x5cd46f[_0x296e('0xb')][_0x296e('0x3')](_0x296e('0x2'),_0x181bd1=>_0x58d8ff(_0x386df4,_0x296e('0x4'),_0x181bd1));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19ec=['start','tableCellPadding','*Format:*\x20change\x20table\x20properties','tableProperties','getFirstPosition','subType','selection','tableBackgroundColor','TableCellPropertiesEditing','handleSuggestionDescription','accept','pluginName','TableUtils','tableWidth','afterInit','getSelectionAffectedTableCells','nodeAfter','formatBlock','table','handleDiscardAction','tableCellBackgroundColor','_handlePropertyChange','join','enableCommand','registerCustomCallback','TrackChangesEditing','editor','discard','markBlockFormat','change','plugins','tableCellBorderColor','commandParams','getSuggestionCallback','batch','locale','has','setAttribute','tableCellHorizontalAlignment','enqueueChange','tableCellProperties','_suggestionFactory','getContainedElement','removeAttribute','tableCellBorderWidth','*Format:*\x20change\x20table\x20cell\x20properties','get','document','tableAlignment','tableCellBorderStyle','_getSuggestion','registerDescriptionCallback','model','tableBorderWidth','tableCellVerticalAlignment'];(function(_0x3ecc00,_0x19ec65){const _0x412808=function(_0x1ea3f1){while(--_0x1ea3f1){_0x3ecc00['push'](_0x3ecc00['shift']());}};_0x412808(++_0x19ec65);}(_0x19ec,0x16c));const _0x4128=function(_0x3ecc00,_0x19ec65){_0x3ecc00=_0x3ecc00-0x0;let _0x412808=_0x19ec[_0x3ecc00];return _0x412808;};import{Plugin as _0x87437d}from'ckeditor5/src/core.js';import{getTranslation as _0x3a6078}from'../utils/common-translations.js';export default class Mt extends _0x87437d{constructor(_0x48b81a){super(_0x48b81a),this[_0x4128('0x18')]=['tableBorderColor','tableBorderStyle',_0x4128('0x13'),_0x4128('0xe'),_0x4128('0x22'),'tableHeight',_0x4128('0x1c')],this['tableCellProperties']=[_0x4128('0x34'),_0x4128('0xf'),_0x4128('0xa'),_0x4128('0x16'),'tableCellWidth','tableCellHeight',_0x4128('0x29'),_0x4128('0x4'),_0x4128('0x14')];}static get[_0x4128('0x20')](){return'TrackChangesTableProperties';}[_0x4128('0x23')](){const _0xf05a4b=this[_0x4128('0x2f')][_0x4128('0x33')][_0x4128('0xc')](_0x4128('0x2e'));if(this[_0x4128('0x2f')]['plugins']['has']('TablePropertiesEditing')){for(const _0x8a9b9c of this['tableProperties'])_0xf05a4b['enableCommand'](_0x8a9b9c,(_0xf83c97,_0x4d637c)=>{const _0x116b4e=this[_0x4128('0x2f')][_0x4128('0x12')]['document'][_0x4128('0x1b')][_0x4128('0x19')]()['findAncestor'](_0x4128('0x27'));this['_handlePropertyChange'](_0x8a9b9c,[_0x116b4e],this['tableProperties'],'tableProperties',_0xf83c97,_0x4d637c);});_0xf05a4b[_0x4128('0x7')]['registerCustomCallback']('formatBlock',_0x4128('0x18'),_0x4128('0x1f'),_0xf05a4b[_0x4128('0x7')][_0x4128('0x36')]('formatBlock',null,_0x4128('0x30'))),_0xf05a4b[_0x4128('0x7')][_0x4128('0x2d')]('formatBlock',_0x4128('0x18'),_0x4128('0x30'),(_0x420ff3,_0x553b77)=>this['handleDiscardAction'](this['tableProperties'],_0x420ff3,_0x553b77)),_0xf05a4b[_0x4128('0x7')][_0x4128('0x2d')](_0x4128('0x26'),_0x4128('0x18'),'join',()=>!0x1);}if(this[_0x4128('0x2f')][_0x4128('0x33')][_0x4128('0x2')](_0x4128('0x1d'))){for(const _0x555fd6 of this[_0x4128('0x6')])_0xf05a4b[_0x4128('0x2c')](_0x555fd6,(_0xd39604,_0x5c60ba)=>{const _0x529f20=this[_0x4128('0x2f')]['plugins'][_0x4128('0xc')](_0x4128('0x21'))[_0x4128('0x24')](this['editor']['model'][_0x4128('0xd')][_0x4128('0x1b')]);this[_0x4128('0x2a')](_0x555fd6,_0x529f20,this[_0x4128('0x6')],'tableCellProperties',_0xd39604,_0x5c60ba);});_0xf05a4b['_suggestionFactory'][_0x4128('0x2d')](_0x4128('0x26'),'tableCellProperties',_0x4128('0x1f'),_0xf05a4b[_0x4128('0x7')]['getSuggestionCallback'](_0x4128('0x26'),null,_0x4128('0x30'))),_0xf05a4b[_0x4128('0x7')][_0x4128('0x2d')]('formatBlock','tableCellProperties',_0x4128('0x30'),(_0x588e46,_0xa14ecd)=>this['handleDiscardAction'](this[_0x4128('0x6')],_0x588e46,_0xa14ecd)),_0xf05a4b[_0x4128('0x7')][_0x4128('0x2d')](_0x4128('0x26'),'tableCellProperties',_0x4128('0x2b'),()=>!0x1);}_0xf05a4b['_descriptionFactory'][_0x4128('0x11')](_0x503064=>this[_0x4128('0x1e')](_0x503064));}[_0x4128('0x2a')](_0x4acded,_0xd2446c,_0x6b436b,_0x149907,_0x3f971e,_0x511d33){const _0x4e1ad7=this[_0x4128('0x2f')][_0x4128('0x33')][_0x4128('0xc')](_0x4128('0x2e'));this['editor']['model'][_0x4128('0x5')](_0x511d33[_0x4128('0x0')],()=>{for(const _0x17709e of _0xd2446c){if(this[_0x4128('0x10')](_0x17709e,_0x149907))_0x3f971e(_0x511d33);else{const _0x4bfc13={};for(const _0x1142ea of _0x6b436b){const _0xf3eb34=_0x17709e['getAttribute'](_0x1142ea);void 0x0!==_0xf3eb34&&(_0x4bfc13[_0x1142ea]=_0xf3eb34);}_0x3f971e(_0x511d33),_0x4e1ad7[_0x4128('0x31')](_0x17709e,{'commandParams':[_0x4bfc13]},[],_0x149907);}}});}[_0x4128('0x28')](_0x3fc1ab,_0x175daf,_0x478b95){const _0x288bf8=_0x175daf[0x0][_0x4128('0x15')][_0x4128('0x25')],_0x197480=_0x478b95[_0x4128('0x35')][0x0];this['editor'][_0x4128('0x12')][_0x4128('0x32')](_0x3d7bec=>{for(const _0x37d1b4 of _0x3fc1ab)void 0x0!==_0x197480[_0x37d1b4]?_0x3d7bec[_0x4128('0x3')](_0x37d1b4,_0x197480[_0x37d1b4],_0x288bf8):_0x3d7bec[_0x4128('0x9')](_0x37d1b4,_0x288bf8);});}[_0x4128('0x1e')](_0x4c46cc){if(_0x4c46cc['data'])switch(_0x4c46cc[_0x4128('0x1a')]){case _0x4128('0x18'):return{'type':'format','content':_0x3a6078(this[_0x4128('0x2f')]['locale'],_0x4128('0x17'))};case _0x4128('0x6'):return{'type':'format','content':_0x3a6078(this['editor'][_0x4128('0x1')],_0x4128('0xb'))};}}[_0x4128('0x10')](_0x2a9da6,_0x527cac){const _0x3e51f7=this[_0x4128('0x2f')][_0x4128('0x33')][_0x4128('0xc')](_0x4128('0x2e'));for(const _0xc23d6 of _0x3e51f7['getSuggestions']({'skipNotAttached':!0x0})){const _0x3d1cac=_0xc23d6[_0x4128('0x8')]();if(_0xc23d6['subType']===_0x527cac&&_0x3d1cac===_0x2a9da6)return _0xc23d6;}return null;}}
23
+ const _0x5dc6=['tableProperties','_suggestionFactory','registerDescriptionCallback','change','join','*Format:*\x20change\x20table\x20cell\x20properties','formatBlock','tableCellBorderStyle','subType','_handlePropertyChange','getFirstPosition','getContainedElement','handleDiscardAction','tableWidth','plugins','has','markBlockFormat','tableBorderColor','format','afterInit','get','nodeAfter','document','findAncestor','enableCommand','model','*Format:*\x20change\x20table\x20properties','enqueueChange','tableCellProperties','registerCustomCallback','locale','tableBorderStyle','handleSuggestionDescription','setAttribute','tableCellPadding','_getSuggestion','selection','table','tableCellHorizontalAlignment','accept','discard','getSelectionAffectedTableCells','TrackChangesTableProperties','tableCellVerticalAlignment','TrackChangesEditing','tableHeight','editor','tableAlignment'];(function(_0x26adc6,_0x5dc6a9){const _0x2e5780=function(_0xb7de02){while(--_0xb7de02){_0x26adc6['push'](_0x26adc6['shift']());}};_0x2e5780(++_0x5dc6a9);}(_0x5dc6,0x106));const _0x2e57=function(_0x26adc6,_0x5dc6a9){_0x26adc6=_0x26adc6-0x0;let _0x2e5780=_0x5dc6[_0x26adc6];return _0x2e5780;};import{Plugin as _0xb197a4}from'ckeditor5/src/core.js';import{getTranslation as _0x1e7a29}from'../utils/common-translations.js';export default class Mt extends _0xb197a4{constructor(_0x23af2b){super(_0x23af2b),this[_0x2e57('0x1a')]=[_0x2e57('0x2b'),_0x2e57('0x9'),'tableBorderWidth',_0x2e57('0x19'),_0x2e57('0x27'),_0x2e57('0x17'),'tableBackgroundColor'],this[_0x2e57('0x6')]=['tableCellBorderColor',_0x2e57('0x21'),'tableCellBorderWidth',_0x2e57('0xc'),'tableCellWidth','tableCellHeight','tableCellBackgroundColor',_0x2e57('0x10'),_0x2e57('0x15')];}static get['pluginName'](){return _0x2e57('0x14');}[_0x2e57('0x2d')](){const _0x5eadfa=this[_0x2e57('0x18')][_0x2e57('0x28')][_0x2e57('0x2e')](_0x2e57('0x16'));if(this['editor']['plugins'][_0x2e57('0x29')]('TablePropertiesEditing')){for(const _0x57a09f of this[_0x2e57('0x1a')])_0x5eadfa[_0x2e57('0x2')](_0x57a09f,(_0x258a91,_0x5156aa)=>{const _0x19332a=this[_0x2e57('0x18')][_0x2e57('0x3')][_0x2e57('0x0')]['selection'][_0x2e57('0x24')]()[_0x2e57('0x1')](_0x2e57('0xf'));this[_0x2e57('0x23')](_0x57a09f,[_0x19332a],this[_0x2e57('0x1a')],'tableProperties',_0x258a91,_0x5156aa);});_0x5eadfa[_0x2e57('0x1b')][_0x2e57('0x7')](_0x2e57('0x20'),'tableProperties',_0x2e57('0x11'),_0x5eadfa[_0x2e57('0x1b')]['getSuggestionCallback'](_0x2e57('0x20'),null,'discard')),_0x5eadfa[_0x2e57('0x1b')][_0x2e57('0x7')](_0x2e57('0x20'),_0x2e57('0x1a'),'discard',(_0x5324cc,_0xdc48e9)=>this['handleDiscardAction'](this['tableProperties'],_0x5324cc,_0xdc48e9)),_0x5eadfa[_0x2e57('0x1b')][_0x2e57('0x7')](_0x2e57('0x20'),_0x2e57('0x1a'),_0x2e57('0x1e'),()=>!0x1);}if(this[_0x2e57('0x18')][_0x2e57('0x28')][_0x2e57('0x29')]('TableCellPropertiesEditing')){for(const _0x1f07dc of this[_0x2e57('0x6')])_0x5eadfa[_0x2e57('0x2')](_0x1f07dc,(_0x3edd5d,_0x5f3b78)=>{const _0x2f4374=this[_0x2e57('0x18')][_0x2e57('0x28')][_0x2e57('0x2e')]('TableUtils')[_0x2e57('0x13')](this[_0x2e57('0x18')][_0x2e57('0x3')]['document'][_0x2e57('0xe')]);this[_0x2e57('0x23')](_0x1f07dc,_0x2f4374,this['tableCellProperties'],_0x2e57('0x6'),_0x3edd5d,_0x5f3b78);});_0x5eadfa['_suggestionFactory'][_0x2e57('0x7')](_0x2e57('0x20'),_0x2e57('0x6'),_0x2e57('0x11'),_0x5eadfa[_0x2e57('0x1b')]['getSuggestionCallback'](_0x2e57('0x20'),null,_0x2e57('0x12'))),_0x5eadfa[_0x2e57('0x1b')][_0x2e57('0x7')](_0x2e57('0x20'),_0x2e57('0x6'),_0x2e57('0x12'),(_0x5a8139,_0x248d36)=>this[_0x2e57('0x26')](this[_0x2e57('0x6')],_0x5a8139,_0x248d36)),_0x5eadfa[_0x2e57('0x1b')]['registerCustomCallback'](_0x2e57('0x20'),_0x2e57('0x6'),_0x2e57('0x1e'),()=>!0x1);}_0x5eadfa['_descriptionFactory'][_0x2e57('0x1c')](_0x4d36ca=>this[_0x2e57('0xa')](_0x4d36ca));}[_0x2e57('0x23')](_0x37747e,_0x5a9dff,_0xfd93b0,_0x3cd52f,_0x3963eb,_0x41271e){const _0x2cbb2e=this[_0x2e57('0x18')][_0x2e57('0x28')][_0x2e57('0x2e')]('TrackChangesEditing');this[_0x2e57('0x18')]['model'][_0x2e57('0x5')](_0x41271e['batch'],()=>{for(const _0x12f053 of _0x5a9dff){if(this[_0x2e57('0xd')](_0x12f053,_0x3cd52f))_0x3963eb(_0x41271e);else{const _0x3964c4={};for(const _0x4eee8d of _0xfd93b0){const _0xef9843=_0x12f053['getAttribute'](_0x4eee8d);void 0x0!==_0xef9843&&(_0x3964c4[_0x4eee8d]=_0xef9843);}_0x3963eb(_0x41271e),_0x2cbb2e[_0x2e57('0x2a')](_0x12f053,{'commandParams':[_0x3964c4]},[],_0x3cd52f);}}});}[_0x2e57('0x26')](_0x591aae,_0x200ff0,_0x327120){const _0x190610=_0x200ff0[0x0]['start'][_0x2e57('0x2f')],_0x2c4c55=_0x327120['commandParams'][0x0];this[_0x2e57('0x18')][_0x2e57('0x3')][_0x2e57('0x1d')](_0x453142=>{for(const _0x2f586a of _0x591aae)void 0x0!==_0x2c4c55[_0x2f586a]?_0x453142[_0x2e57('0xb')](_0x2f586a,_0x2c4c55[_0x2f586a],_0x190610):_0x453142['removeAttribute'](_0x2f586a,_0x190610);});}[_0x2e57('0xa')](_0x7199bd){if(_0x7199bd['data'])switch(_0x7199bd[_0x2e57('0x22')]){case'tableProperties':return{'type':'format','content':_0x1e7a29(this['editor']['locale'],_0x2e57('0x4'))};case _0x2e57('0x6'):return{'type':_0x2e57('0x2c'),'content':_0x1e7a29(this[_0x2e57('0x18')][_0x2e57('0x8')],_0x2e57('0x1f'))};}}[_0x2e57('0xd')](_0x316863,_0x3bbcde){const _0x2df3e2=this[_0x2e57('0x18')][_0x2e57('0x28')][_0x2e57('0x2e')](_0x2e57('0x16'));for(const _0x5123ba of _0x2df3e2['getSuggestions']({'skipNotAttached':!0x0})){const _0x1d4e17=_0x5123ba[_0x2e57('0x25')]();if(_0x5123ba[_0x2e57('0x22')]===_0x3bbcde&&_0x1d4e17===_0x316863)return _0x5123ba;}return null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55de=['editor','TrackChangesEditing','has','afterInit','enableCommand','get','Template'];(function(_0x1f14fa,_0x55def0){const _0x310f22=function(_0x482bc0){while(--_0x482bc0){_0x1f14fa['push'](_0x1f14fa['shift']());}};_0x310f22(++_0x55def0);}(_0x55de,0xe6));const _0x310f=function(_0x1f14fa,_0x55def0){_0x1f14fa=_0x1f14fa-0x0;let _0x310f22=_0x55de[_0x1f14fa];return _0x310f22;};import{Plugin as _0x1fd7bd}from'ckeditor5/src/core.js';export default class vt extends _0x1fd7bd{[_0x310f('0x4')](){const _0x2dc40c=this[_0x310f('0x1')];_0x2dc40c['plugins'][_0x310f('0x3')](_0x310f('0x0'))&&_0x2dc40c['plugins'][_0x310f('0x6')](_0x310f('0x2'))[_0x310f('0x5')]('insertTemplate');}}
23
+ const _0x4e52=['Template','insertTemplate','afterInit','get','TrackChangesEditing','enableCommand','plugins','editor'];(function(_0x4adf06,_0x4e5271){const _0x56f3f5=function(_0x1667a9){while(--_0x1667a9){_0x4adf06['push'](_0x4adf06['shift']());}};_0x56f3f5(++_0x4e5271);}(_0x4e52,0x19e));const _0x56f3=function(_0x4adf06,_0x4e5271){_0x4adf06=_0x4adf06-0x0;let _0x56f3f5=_0x4e52[_0x4adf06];return _0x56f3f5;};import{Plugin as _0x549ac2}from'ckeditor5/src/core.js';export default class vt extends _0x549ac2{[_0x56f3('0x4')](){const _0x9d28c5=this[_0x56f3('0x1')];_0x9d28c5[_0x56f3('0x0')]['has'](_0x56f3('0x2'))&&_0x9d28c5[_0x56f3('0x0')][_0x56f3('0x5')](_0x56f3('0x6'))[_0x56f3('0x7')](_0x56f3('0x3'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4159=['forward','start','isCollapsed','Title','afterInit','TrackChangesEditing','model','removeMarker','isTouching','updateMarker','element','createRange','newRange','title-content','isEqual','_descriptionFactory','registerPostFixer','get','ELEMENT_TITLE','has','document','end','plugins','suggestion','locale','getNearestSelectionRange','registerElementLabel'];(function(_0x64e4c,_0x415995){const _0x302284=function(_0x4fab09){while(--_0x4fab09){_0x64e4c['push'](_0x64e4c['shift']());}};_0x302284(++_0x415995);}(_0x4159,0x65));const _0x3022=function(_0x64e4c,_0x415995){_0x64e4c=_0x64e4c-0x0;let _0x302284=_0x4159[_0x64e4c];return _0x302284;};import{Plugin as _0x16e7d4}from'ckeditor5/src/core.js';import{getTranslation as _0x120614}from'../utils/common-translations.js';export default class Ct extends _0x16e7d4{[_0x3022('0xb')](){const _0x188c7d=this['editor'];if(!_0x188c7d[_0x3022('0x2')][_0x3022('0x1a')](_0x3022('0xa')))return;const _0x3091f6=_0x188c7d[_0x3022('0x2')][_0x3022('0x18')](_0x3022('0xc'));_0x3091f6[_0x3022('0x16')][_0x3022('0x6')](_0x3022('0x14'),()=>_0x120614(_0x188c7d[_0x3022('0x4')],_0x3022('0x19'))),_0x188c7d[_0x3022('0xd')][_0x3022('0x0')][_0x3022('0x17')](_0x202cc0=>{let _0xe0940d=!0x1;const _0x11dfef=Array['from'](_0x188c7d[_0x3022('0xd')][_0x3022('0x0')]['differ']['getChangedMarkers']());for(const {name:_0x1baf1a,data:_0x5aa4d8}of _0x11dfef){const {group:_0x128487}=_0x3091f6['_splitMarkerName'](_0x1baf1a);if(_0x3022('0x3')!==_0x128487||!_0x5aa4d8[_0x3022('0x13')])continue;const _0x317804=_0x5aa4d8[_0x3022('0x13')],_0x344712=_0x317804[_0x3022('0x1')]['nodeBefore'];if(!_0x344712||!_0x344712['is'](_0x3022('0x11'),_0x3022('0x14')))continue;if(!_0x317804[_0x3022('0x8')][_0x3022('0xf')](_0x317804[_0x3022('0x1')]))continue;const _0x54f738=_0x188c7d['model']['schema'][_0x3022('0x5')](_0x317804['end'],_0x3022('0x7'));if(_0x54f738&&_0x54f738[_0x3022('0x9')]){const _0x25e255=_0x202cc0[_0x3022('0x12')](_0x317804['start'],_0x54f738[_0x3022('0x8')]);_0x25e255[_0x3022('0x15')](_0x317804)||(_0x202cc0[_0x3022('0x10')](_0x1baf1a,{'range':_0x25e255}),_0xe0940d=!0x0);}_0xe0940d||(_0x202cc0[_0x3022('0xe')](_0x1baf1a),_0xe0940d=!0x0);}return _0xe0940d;});}}
23
+ const _0x8b9b=['TrackChangesEditing','suggestion','title-content','plugins','locale','element','registerElementLabel','schema','getChangedMarkers','start','newRange','get','isEqual','model','nodeBefore','isCollapsed','Title','document','end','afterInit','createRange','editor','registerPostFixer','removeMarker','updateMarker','differ'];(function(_0x342d70,_0x8b9be3){const _0x2f2e7c=function(_0x5e4b00){while(--_0x5e4b00){_0x342d70['push'](_0x342d70['shift']());}};_0x2f2e7c(++_0x8b9be3);}(_0x8b9b,0x13f));const _0x2f2e=function(_0x342d70,_0x8b9be3){_0x342d70=_0x342d70-0x0;let _0x2f2e7c=_0x8b9b[_0x342d70];return _0x2f2e7c;};import{Plugin as _0x1306e8}from'ckeditor5/src/core.js';import{getTranslation as _0x150be8}from'../utils/common-translations.js';export default class Ct extends _0x1306e8{[_0x2f2e('0xc')](){const _0x574074=this[_0x2f2e('0xe')];if(!_0x574074[_0x2f2e('0x16')]['has'](_0x2f2e('0x9')))return;const _0x4476f0=_0x574074['plugins'][_0x2f2e('0x4')](_0x2f2e('0x13'));_0x4476f0['_descriptionFactory'][_0x2f2e('0x19')](_0x2f2e('0x15'),()=>_0x150be8(_0x574074[_0x2f2e('0x17')],'ELEMENT_TITLE')),_0x574074[_0x2f2e('0x6')][_0x2f2e('0xa')][_0x2f2e('0xf')](_0x452c07=>{let _0x31f9e2=!0x1;const _0x46093a=Array['from'](_0x574074[_0x2f2e('0x6')]['document'][_0x2f2e('0x12')][_0x2f2e('0x1')]());for(const {name:_0x2cc854,data:_0x4e312a}of _0x46093a){const {group:_0x55ab2a}=_0x4476f0['_splitMarkerName'](_0x2cc854);if(_0x2f2e('0x14')!==_0x55ab2a||!_0x4e312a[_0x2f2e('0x3')])continue;const _0x22d664=_0x4e312a[_0x2f2e('0x3')],_0x315078=_0x22d664['end'][_0x2f2e('0x7')];if(!_0x315078||!_0x315078['is'](_0x2f2e('0x18'),_0x2f2e('0x15')))continue;if(!_0x22d664[_0x2f2e('0x2')]['isTouching'](_0x22d664[_0x2f2e('0xb')]))continue;const _0x16d163=_0x574074[_0x2f2e('0x6')][_0x2f2e('0x0')]['getNearestSelectionRange'](_0x22d664[_0x2f2e('0xb')],'forward');if(_0x16d163&&_0x16d163[_0x2f2e('0x8')]){const _0x304ef3=_0x452c07[_0x2f2e('0xd')](_0x22d664[_0x2f2e('0x2')],_0x16d163[_0x2f2e('0x2')]);_0x304ef3[_0x2f2e('0x5')](_0x22d664)||(_0x452c07[_0x2f2e('0x11')](_0x2cc854,{'range':_0x304ef3}),_0x31f9e2=!0x0);}_0x31f9e2||(_0x452c07[_0x2f2e('0x10')](_0x2cc854),_0x31f9e2=!0x0);}return _0x31f9e2;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c0b=['UndoEditing','TrackChangesEditing','afterInit','redo','editor','plugins','enableCommand'];(function(_0x4e4d3d,_0x3c0be0){const _0x11e231=function(_0x43b438){while(--_0x43b438){_0x4e4d3d['push'](_0x4e4d3d['shift']());}};_0x11e231(++_0x3c0be0);}(_0x3c0b,0x1ad));const _0x11e2=function(_0x4e4d3d,_0x3c0be0){_0x4e4d3d=_0x4e4d3d-0x0;let _0x11e231=_0x3c0b[_0x4e4d3d];return _0x11e231;};import{Plugin as _0x596554}from'ckeditor5/src/core.js';export default class Dt extends _0x596554{[_0x11e2('0x0')](){const _0x23ac11=this[_0x11e2('0x2')],_0x137813=_0x23ac11['plugins']['get'](_0x11e2('0x6'));_0x23ac11[_0x11e2('0x3')]['has'](_0x11e2('0x5'))&&(_0x137813[_0x11e2('0x4')]('undo'),_0x137813[_0x11e2('0x4')](_0x11e2('0x1')));}}
23
+ const _0x3cba=['redo','editor','enableCommand','TrackChangesEditing','undo','plugins','has','UndoEditing'];(function(_0x1da82e,_0x3cbaa8){const _0x500e35=function(_0x5ad131){while(--_0x5ad131){_0x1da82e['push'](_0x1da82e['shift']());}};_0x500e35(++_0x3cbaa8);}(_0x3cba,0xe0));const _0x500e=function(_0x1da82e,_0x3cbaa8){_0x1da82e=_0x1da82e-0x0;let _0x500e35=_0x3cba[_0x1da82e];return _0x500e35;};import{Plugin as _0x13395a}from'ckeditor5/src/core.js';export default class Dt extends _0x13395a{['afterInit'](){const _0x42f0cf=this[_0x500e('0x1')],_0x480515=_0x42f0cf[_0x500e('0x5')]['get'](_0x500e('0x3'));_0x42f0cf['plugins'][_0x500e('0x6')](_0x500e('0x7'))&&(_0x480515[_0x500e('0x2')](_0x500e('0x4')),_0x480515[_0x500e('0x2')](_0x500e('0x0')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ca3=['schema','listItem','push','hasAttribute','toViewElement','mapper','getAttribute','createUIElement','toViewPosition','writer','getCustomProperty','isContent','get','listIndent','elementEnd','insert','ck-suggestion-marker--active','addClass','plugins','test','getWalker','nextSibling','type','markerRange','element','ck-suggestion-marker-','previousPosition','bindElementToMarker','consumable','markerName','getItems','TrackChangesEditing','isAtEnd','includes','name','span'];(function(_0x382325,_0x3ca3c6){const _0x54dd82=function(_0x9b8873){while(--_0x9b8873){_0x382325['push'](_0x382325['shift']());}};_0x54dd82(++_0x3ca3c6);}(_0x3ca3,0x150));const _0x54dd=function(_0x382325,_0x3ca3c6){_0x382325=_0x382325-0x0;let _0x54dd82=_0x3ca3[_0x382325];return _0x54dd82;};export function getRangesWithAttribute(_0x137ca3,_0x2ec12a,_0x3e43b1){const _0x3f7b16=[];for(const _0x5643e7 of _0x2ec12a[_0x54dd('0x12')]())_0x5643e7[_0x54dd('0x1b')](_0x137ca3)&&_0x3f7b16[_0x54dd('0x1a')](_0x3e43b1['createRangeOn'](_0x5643e7));return _0x3f7b16;}export function getElementsAffectedByListItemRename(_0x20dea2){const _0x25e669=[];if(_0x20dea2['is'](_0x54dd('0xc'),_0x54dd('0x19'))){let _0x174212=_0x20dea2[_0x54dd('0x9')];for(;_0x174212&&_0x174212['is'](_0x54dd('0xc'),_0x54dd('0x19'))&&_0x174212[_0x54dd('0x1e')](_0x54dd('0x1'))>0x0;)_0x25e669[_0x54dd('0x1a')](_0x174212),_0x174212=_0x174212[_0x54dd('0x9')];}return _0x25e669;}export function downcastSplitMergeMarker(_0x40ee58,_0x1cc28f,{showActiveMarker:_0x335ff1=!0x0}={}){const _0x5b4921=_0x40ee58[_0x54dd('0x6')][_0x54dd('0x0')](_0x54dd('0x13'));return(_0x46a1b3,_0x96fb2e,_0x59d476)=>{if(!_0x59d476[_0x54dd('0x10')][_0x54dd('0x7')](_0x96fb2e[_0x54dd('0xb')],_0x46a1b3[_0x54dd('0x16')]))return;const _0x2ef14e=_0x96fb2e['markerRange'][_0x54dd('0x8')](),_0x5bd980=_0x96fb2e[_0x54dd('0xb')]['start'],_0x5c03f0=_0x40ee58['model'][_0x54dd('0x18')];let _0x20339c=null,_0xfc22e4=null,_0x7eebf1=!0x1,_0xcf98b0=!0x1;for(const _0x2347ab of _0x2ef14e){const _0x296ddb=_0x2347ab['item'];_0x7eebf1=_0x7eebf1||_0x5c03f0[_0x54dd('0x23')](_0x296ddb);const _0x44459f=_0x59d476[_0x54dd('0x1d')][_0x54dd('0x1c')](_0x296ddb);if(_0x44459f&&_0x44459f[_0x54dd('0x22')]('addHighlight'))return;_0x54dd('0x2')==_0x2347ab[_0x54dd('0xa')]&&(_0x5c03f0['isBlock'](_0x296ddb)&&!_0x5c03f0['isLimit'](_0x296ddb)&&(_0x296ddb[_0x54dd('0x9')]||_0x5bd980[_0x54dd('0x14')]?_0x20339c&&_0x20339c['parent']==_0x296ddb||(_0x20339c=_0x296ddb,_0x291916(_0x2347ab['previousPosition']),_0xcf98b0=!0x0):_0xfc22e4=_0xfc22e4||_0x2347ab[_0x54dd('0xe')]));}function _0x291916(_0x3c48cd){const _0x503dfd=_0x59d476[_0x54dd('0x21')][_0x54dd('0x1f')](_0x54dd('0x17'),{'class':_0x54dd('0xd')+_0x1cc28f}),_0x1eb772=_0x59d476[_0x54dd('0x1d')][_0x54dd('0x20')](_0x3c48cd);_0x335ff1&&_0x5b4921['activeMarkers'][_0x54dd('0x15')](_0x96fb2e[_0x54dd('0x11')])&&_0x59d476[_0x54dd('0x21')][_0x54dd('0x5')](_0x54dd('0x4'),_0x503dfd),_0x59d476[_0x54dd('0x21')][_0x54dd('0x3')](_0x1eb772,_0x503dfd),_0x59d476['mapper'][_0x54dd('0xf')](_0x503dfd,_0x96fb2e[_0x54dd('0x11')]);}_0x7eebf1||_0xcf98b0||!_0xfc22e4||_0x291916(_0xfc22e4);};}
23
+ const _0x418e=['span','mapper','element','includes','markerName','writer','isContent','markerRange','consumable','createUIElement','plugins','push','getItems','insert','getWalker','createRangeOn','parent','ck-suggestion-marker-','isAtEnd','model','getAttribute','previousPosition','start','item','ck-suggestion-marker--active','name','toViewElement','hasAttribute','getCustomProperty','addClass','listItem','get','TrackChangesEditing','nextSibling'];(function(_0x7a8864,_0x418e30){const _0xc5a004=function(_0x3f2892){while(--_0x3f2892){_0x7a8864['push'](_0x7a8864['shift']());}};_0xc5a004(++_0x418e30);}(_0x418e,0x84));const _0xc5a0=function(_0x7a8864,_0x418e30){_0x7a8864=_0x7a8864-0x0;let _0xc5a004=_0x418e[_0x7a8864];return _0xc5a004;};export function getRangesWithAttribute(_0x2f678c,_0x438002,_0x2b94f8){const _0x248432=[];for(const _0x4c83f8 of _0x438002[_0xc5a0('0x10')]())_0x4c83f8[_0xc5a0('0x1f')](_0x2f678c)&&_0x248432[_0xc5a0('0xf')](_0x2b94f8[_0xc5a0('0x13')](_0x4c83f8));return _0x248432;}export function getElementsAffectedByListItemRename(_0x15db71){const _0x5ad833=[];if(_0x15db71['is']('element',_0xc5a0('0x0'))){let _0x40110f=_0x15db71[_0xc5a0('0x3')];for(;_0x40110f&&_0x40110f['is'](_0xc5a0('0x6'),'listItem')&&_0x40110f[_0xc5a0('0x18')]('listIndent')>0x0;)_0x5ad833[_0xc5a0('0xf')](_0x40110f),_0x40110f=_0x40110f[_0xc5a0('0x3')];}return _0x5ad833;}export function downcastSplitMergeMarker(_0x27076f,_0x434834,{showActiveMarker:_0x130dc4=!0x0}={}){const _0x94c4c1=_0x27076f[_0xc5a0('0xe')][_0xc5a0('0x1')](_0xc5a0('0x2'));return(_0x193511,_0x1ca8b4,_0x4abbd4)=>{if(!_0x4abbd4[_0xc5a0('0xc')]['test'](_0x1ca8b4[_0xc5a0('0xb')],_0x193511[_0xc5a0('0x1d')]))return;const _0x17f7a6=_0x1ca8b4[_0xc5a0('0xb')][_0xc5a0('0x12')](),_0x3cc831=_0x1ca8b4['markerRange'][_0xc5a0('0x1a')],_0x398a43=_0x27076f[_0xc5a0('0x17')]['schema'];let _0x118ecb=null,_0x5542f0=null,_0x2a9f27=!0x1,_0x16d87c=!0x1;for(const _0x43f0ad of _0x17f7a6){const _0x5b6cbb=_0x43f0ad[_0xc5a0('0x1b')];_0x2a9f27=_0x2a9f27||_0x398a43[_0xc5a0('0xa')](_0x5b6cbb);const _0x3c2427=_0x4abbd4[_0xc5a0('0x5')][_0xc5a0('0x1e')](_0x5b6cbb);if(_0x3c2427&&_0x3c2427[_0xc5a0('0x20')]('addHighlight'))return;'elementEnd'==_0x43f0ad['type']&&(_0x398a43['isBlock'](_0x5b6cbb)&&!_0x398a43['isLimit'](_0x5b6cbb)&&(_0x5b6cbb[_0xc5a0('0x3')]||_0x3cc831[_0xc5a0('0x16')]?_0x118ecb&&_0x118ecb[_0xc5a0('0x14')]==_0x5b6cbb||(_0x118ecb=_0x5b6cbb,_0x400dab(_0x43f0ad[_0xc5a0('0x19')]),_0x16d87c=!0x0):_0x5542f0=_0x5542f0||_0x43f0ad[_0xc5a0('0x19')]));}function _0x400dab(_0x1c71a8){const _0x538d71=_0x4abbd4[_0xc5a0('0x9')][_0xc5a0('0xd')](_0xc5a0('0x4'),{'class':_0xc5a0('0x15')+_0x434834}),_0x211edf=_0x4abbd4[_0xc5a0('0x5')]['toViewPosition'](_0x1c71a8);_0x130dc4&&_0x94c4c1['activeMarkers'][_0xc5a0('0x7')](_0x1ca8b4['markerName'])&&_0x4abbd4['writer'][_0xc5a0('0x21')](_0xc5a0('0x1c'),_0x538d71),_0x4abbd4[_0xc5a0('0x9')][_0xc5a0('0x11')](_0x211edf,_0x538d71),_0x4abbd4[_0xc5a0('0x5')]['bindElementToMarker'](_0x538d71,_0x1ca8b4[_0xc5a0('0x8')]);}_0x2a9f27||_0x16d87c||!_0x5542f0||_0x400dab(_0x5542f0);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ee2=['reduce','data','split','getRanges','_saved','end','delete','getMultiRangeId','_markerNames','map','getMarkers','removeMarker','commentThread','onAccept','markers','addMarkerName','nodeBefore','author','_isDataLoaded','length','decorate','head','hasComments','_onAccept','previous','getRange','getMarkerNames','discard','getFirstMarker','from','type','_onAttributesChange','getContainedElement','getItems','setAttribute','attributes','creator','toJSON','isIntersectingWithRange','authoredAt','getFirstRange','accept','subType','start','set','next','change','clear','_model','isExternal','_onDiscard','removeMarkers','addMarker','onAttributesChange','getAllAdjacentSuggestions','get','isMultiRange','@external','createdAt','addRange','isIntersecting','add','nodeAfter'];(function(_0x45fa24,_0x4ee27f){const _0x4368e7=function(_0x34b4a6){while(--_0x34b4a6){_0x45fa24['push'](_0x45fa24['shift']());}};_0x4368e7(++_0x4ee27f);}(_0x4ee2,0x18a));const _0x4368=function(_0x45fa24,_0x4ee27f){_0x45fa24=_0x45fa24-0x0;let _0x4368e7=_0x4ee2[_0x45fa24];return _0x4368e7;};import{Element as _0x547a8d}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x1dc614,uid as _0x5303a2}from'ckeditor5/src/utils.js';import{cloneDeep as _0x5b3a6c,isEqual as _0x34cfae,set as _0xc22a59,unset as _0x4c8ac7}from'lodash-es';export default class u extends _0x1dc614(){constructor(_0x4ef936,_0x62a734){super(),this[_0x4368('0x2')]=!0x1,this['id']=_0x62a734['id'],this[_0x4368('0xe')]=_0x62a734['type'],this[_0x4368('0x1a')]=_0x62a734[_0x4368('0x1a')]||null,this[_0x4368('0x1')]=_0x62a734['author'],this[_0x4368('0x14')]=_0x62a734[_0x4368('0x14')]||_0x62a734['author'],this[_0x4368('0x21')]=Boolean(_0x62a734[_0x4368('0x13')]&&_0x62a734['attributes'][_0x4368('0x29')]),this[_0x4368('0x30')]=null,this[_0x4368('0x20')]=_0x4ef936,this['_onAccept']=_0x62a734[_0x4368('0x3c')],this[_0x4368('0x22')]=_0x62a734['onDiscard'],this['_onAttributesChange']=_0x62a734[_0x4368('0x25')],this['_markerNames']=new Set(),this['createdAt']=null,this[_0x4368('0x1c')](_0x4368('0x17'),null),this['set'](_0x4368('0x13'),_0x62a734['attributes']||{}),this[_0x4368('0x1c')](_0x4368('0x8'),null),this[_0x4368('0x1c')]('next',null),this[_0x4368('0x1c')](_0x4368('0x3b'),null),this['set'](_0x4368('0x33'),!0x1),this[_0x4368('0x4')]('accept'),this['decorate'](_0x4368('0xb'));}get[_0x4368('0x5')](){let _0x3c959b=this;for(;_0x3c959b[_0x4368('0x8')];)_0x3c959b=_0x3c959b['previous'];return _0x3c959b;}get[_0x4368('0x6')](){return!!this[_0x4368('0x3b')]&&this[_0x4368('0x3b')]['length']>0x0;}get[_0x4368('0x28')](){if(0x0==this[_0x4368('0x37')]['size'])return!0x1;return 0x6==Array[_0x4368('0xd')](this[_0x4368('0x37')])[0x0][_0x4368('0x31')](':')[_0x4368('0x3')];}get['isInContent'](){return null!==this[_0x4368('0xc')]();}[_0x4368('0x3e')](_0x51a512){this[_0x4368('0x37')][_0x4368('0x2d')](_0x51a512);}[_0x4368('0xa')](){return Array[_0x4368('0xd')](this[_0x4368('0x37')]);}[_0x4368('0x39')](){return this[_0x4368('0xa')]()[_0x4368('0x38')](_0x23c0b9=>this[_0x4368('0x20')][_0x4368('0x3d')][_0x4368('0x27')](_0x23c0b9))['filter'](_0x13f6d3=>_0x13f6d3);}[_0x4368('0xc')](){return this[_0x4368('0x39')]()[0x0]||null;}[_0x4368('0x23')](){this[_0x4368('0x20')][_0x4368('0x1e')](_0x24f9a0=>{for(const _0x4b33ec of this['getMarkers']())_0x24f9a0[_0x4368('0x3a')](_0x4b33ec);}),this[_0x4368('0x37')][_0x4368('0x1f')]();}[_0x4368('0x3a')](_0x474138){this['_model'][_0x4368('0x1e')](_0x203fd9=>{_0x203fd9['removeMarker'](_0x474138);}),this[_0x4368('0x37')][_0x4368('0x35')](_0x474138);}[_0x4368('0x2b')](_0x4337fc){const _0x1767d3='suggestion:'+this['type']+':'+this[_0x4368('0x1a')]+':'+this['id']+':'+this['creator']['id']+':'+u[_0x4368('0x36')]();this[_0x4368('0x3e')](_0x1767d3),this[_0x4368('0x20')][_0x4368('0x1e')](_0x359f51=>{_0x359f51[_0x4368('0x24')](_0x1767d3,{'range':_0x4337fc,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4368('0x16')](_0xd57c0){for(const _0x55dc3c of this['getRanges']())if(_0x55dc3c[_0x4368('0x2c')](_0xd57c0))return!0x0;return!0x1;}[_0x4368('0x32')](){return this[_0x4368('0x39')]()[_0x4368('0x38')](_0x2bfe09=>_0x2bfe09[_0x4368('0x9')]());}['getItems'](){return this['getRanges']()[_0x4368('0x2f')]((_0x2ba7a1,_0x5f09dc)=>[..._0x2ba7a1,..._0x5f09dc[_0x4368('0x11')]()],[]);}[_0x4368('0x18')](){var _0x4906d3;return(null===(_0x4906d3=this[_0x4368('0xc')]())||void 0x0===_0x4906d3?void 0x0:_0x4906d3[_0x4368('0x9')]())||null;}[_0x4368('0x10')](){const _0x1df29=this[_0x4368('0x32')]();if(0x1!=_0x1df29[_0x4368('0x3')])return null;const _0x58dbae=_0x1df29[0x0],_0x4032ff=_0x58dbae[_0x4368('0x1b')][_0x4368('0x2e')],_0x56991b=_0x58dbae[_0x4368('0x34')][_0x4368('0x0')];return _0x4032ff instanceof _0x547a8d?_0x4032ff!=_0x56991b?null:_0x4032ff:null;}[_0x4368('0x19')](){this[_0x4368('0x7')](this[_0x4368('0x32')](),this[_0x4368('0x30')],this[_0x4368('0x13')]),this['removeMarkers']();}[_0x4368('0xb')](){this[_0x4368('0x22')](this[_0x4368('0x32')](),this[_0x4368('0x30')],this[_0x4368('0x13')]),this['removeMarkers']();}[_0x4368('0x26')](){const _0x13aa00=[];let _0x2772c3=this[_0x4368('0x5')];for(;_0x2772c3;)_0x13aa00['push'](_0x2772c3),_0x2772c3=_0x2772c3[_0x4368('0x1d')];return _0x13aa00;}[_0x4368('0x12')](_0x416d1d,_0x38a735){const _0x1f0690=_0x5b3a6c(this[_0x4368('0x13')]);_0xc22a59(_0x1f0690,_0x416d1d,_0x38a735),_0x34cfae(_0x1f0690,this[_0x4368('0x13')])||(this[_0x4368('0x13')]=_0x1f0690,this[_0x4368('0xf')](_0x1f0690));}['removeAttribute'](_0xf7c189){const _0x9a1dc8=_0x5b3a6c(this['attributes']);_0x4c8ac7(_0x9a1dc8,_0xf7c189),_0x34cfae(_0x9a1dc8,this[_0x4368('0x13')])||(this[_0x4368('0x13')]=_0x9a1dc8,this[_0x4368('0xf')](this['attributes']));}[_0x4368('0x15')](){return{'id':this['id'],'type':this[_0x4368('0x1a')]?this[_0x4368('0xe')]+':'+this[_0x4368('0x1a')]:this[_0x4368('0xe')],'authorId':this[_0x4368('0x14')]['id'],'createdAt':this[_0x4368('0x2a')],'hasComments':this[_0x4368('0x6')],'data':this[_0x4368('0x30')],'attributes':this[_0x4368('0x13')]};}static['getMultiRangeId'](){return _0x5303a2()['substr'](0x1,0x5);}}
23
+ const _0x45ee=['reduce','removeMarker','attributes','getMultiRangeId','type','onAttributesChange','length','set','end','isInContent','onAccept','getRange','isIntersectingWithRange','subType','accept','_onDiscard','data','isIntersecting','suggestion:','change','getAllAdjacentSuggestions','_onAttributesChange','getItems','authoredAt','_markerNames','commentThread','onDiscard','createdAt','head','addMarkerName','substr','creator','_onAccept','hasComments','clear','_saved','delete','author','markers','push','decorate','removeMarkers','previous','nodeAfter','@external','getMarkers','getRanges','removeAttribute','discard','start','getContainedElement','map','getFirstMarker','getMarkerNames','addRange','next','isMultiRange','_isDataLoaded','_model','filter'];(function(_0xbfe915,_0x45eeae){const _0x175b3e=function(_0x20897b){while(--_0x20897b){_0xbfe915['push'](_0xbfe915['shift']());}};_0x175b3e(++_0x45eeae);}(_0x45ee,0x96));const _0x175b=function(_0xbfe915,_0x45eeae){_0xbfe915=_0xbfe915-0x0;let _0x175b3e=_0x45ee[_0xbfe915];return _0x175b3e;};import{Element as _0x5e7585}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x5aa926,uid as _0x11dea9}from'ckeditor5/src/utils.js';import{cloneDeep as _0x26c792,isEqual as _0x24011b,set as _0xeb2ba,unset as _0x404a5f}from'lodash-es';export default class u extends _0x5aa926(){constructor(_0x2f779c,_0x677bd3){super(),this[_0x175b('0x1b')]=!0x1,this['id']=_0x677bd3['id'],this[_0x175b('0x22')]=_0x677bd3[_0x175b('0x22')],this['subType']=_0x677bd3[_0x175b('0x2b')]||null,this[_0x175b('0x7')]=_0x677bd3['author'],this[_0x175b('0x1')]=_0x677bd3['creator']||_0x677bd3['author'],this['isExternal']=Boolean(_0x677bd3['attributes']&&_0x677bd3[_0x175b('0x20')][_0x175b('0xe')]),this[_0x175b('0x2e')]=null,this['_model']=_0x2f779c,this['_onAccept']=_0x677bd3[_0x175b('0x28')],this[_0x175b('0x2d')]=_0x677bd3[_0x175b('0x38')],this[_0x175b('0x33')]=_0x677bd3[_0x175b('0x23')],this[_0x175b('0x36')]=new Set(),this[_0x175b('0x39')]=null,this[_0x175b('0x25')](_0x175b('0x35'),null),this['set'](_0x175b('0x20'),_0x677bd3['attributes']||{}),this[_0x175b('0x25')](_0x175b('0xc'),null),this[_0x175b('0x25')](_0x175b('0x19'),null),this['set'](_0x175b('0x37'),null),this[_0x175b('0x25')](_0x175b('0x5'),!0x1),this[_0x175b('0xa')](_0x175b('0x2c')),this[_0x175b('0xa')](_0x175b('0x12'));}get[_0x175b('0x3a')](){let _0x524399=this;for(;_0x524399[_0x175b('0xc')];)_0x524399=_0x524399['previous'];return _0x524399;}get[_0x175b('0x3')](){return!!this['commentThread']&&this['commentThread'][_0x175b('0x24')]>0x0;}get[_0x175b('0x1a')](){if(0x0==this[_0x175b('0x36')]['size'])return!0x1;return 0x6==Array['from'](this[_0x175b('0x36')])[0x0]['split'](':')[_0x175b('0x24')];}get[_0x175b('0x27')](){return null!==this[_0x175b('0x16')]();}[_0x175b('0x3b')](_0x459b57){this[_0x175b('0x36')]['add'](_0x459b57);}[_0x175b('0x17')](){return Array['from'](this[_0x175b('0x36')]);}['getMarkers'](){return this[_0x175b('0x17')]()[_0x175b('0x15')](_0x16de1d=>this[_0x175b('0x1c')][_0x175b('0x8')]['get'](_0x16de1d))[_0x175b('0x1d')](_0x5c616f=>_0x5c616f);}['getFirstMarker'](){return this[_0x175b('0xf')]()[0x0]||null;}['removeMarkers'](){this[_0x175b('0x1c')]['change'](_0x25e2b8=>{for(const _0x5aab33 of this['getMarkers']())_0x25e2b8[_0x175b('0x1f')](_0x5aab33);}),this['_markerNames'][_0x175b('0x4')]();}[_0x175b('0x1f')](_0x25abb3){this['_model'][_0x175b('0x31')](_0x7e15e2=>{_0x7e15e2[_0x175b('0x1f')](_0x25abb3);}),this['_markerNames'][_0x175b('0x6')](_0x25abb3);}[_0x175b('0x18')](_0x138746){const _0x2ba2d1=_0x175b('0x30')+this[_0x175b('0x22')]+':'+this[_0x175b('0x2b')]+':'+this['id']+':'+this['creator']['id']+':'+u[_0x175b('0x21')]();this[_0x175b('0x3b')](_0x2ba2d1),this[_0x175b('0x1c')][_0x175b('0x31')](_0x39ed2e=>{_0x39ed2e['addMarker'](_0x2ba2d1,{'range':_0x138746,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x175b('0x2a')](_0x50bbc1){for(const _0x5c106c of this[_0x175b('0x10')]())if(_0x5c106c[_0x175b('0x2f')](_0x50bbc1))return!0x0;return!0x1;}[_0x175b('0x10')](){return this['getMarkers']()[_0x175b('0x15')](_0x123e10=>_0x123e10[_0x175b('0x29')]());}[_0x175b('0x34')](){return this['getRanges']()[_0x175b('0x1e')]((_0x2fd174,_0x16ff79)=>[..._0x2fd174,..._0x16ff79[_0x175b('0x34')]()],[]);}['getFirstRange'](){var _0x5945ff;return(null===(_0x5945ff=this[_0x175b('0x16')]())||void 0x0===_0x5945ff?void 0x0:_0x5945ff['getRange']())||null;}[_0x175b('0x14')](){const _0x5b1d8b=this[_0x175b('0x10')]();if(0x1!=_0x5b1d8b[_0x175b('0x24')])return null;const _0x249c4c=_0x5b1d8b[0x0],_0xf35202=_0x249c4c[_0x175b('0x13')][_0x175b('0xd')],_0x59e324=_0x249c4c[_0x175b('0x26')]['nodeBefore'];return _0xf35202 instanceof _0x5e7585?_0xf35202!=_0x59e324?null:_0xf35202:null;}[_0x175b('0x2c')](){this[_0x175b('0x2')](this[_0x175b('0x10')](),this[_0x175b('0x2e')],this[_0x175b('0x20')]),this['removeMarkers']();}[_0x175b('0x12')](){this[_0x175b('0x2d')](this[_0x175b('0x10')](),this[_0x175b('0x2e')],this['attributes']),this[_0x175b('0xb')]();}[_0x175b('0x32')](){const _0x4b3273=[];let _0x297c30=this[_0x175b('0x3a')];for(;_0x297c30;)_0x4b3273[_0x175b('0x9')](_0x297c30),_0x297c30=_0x297c30[_0x175b('0x19')];return _0x4b3273;}['setAttribute'](_0x465590,_0x27ddba){const _0x1b352d=_0x26c792(this['attributes']);_0xeb2ba(_0x1b352d,_0x465590,_0x27ddba),_0x24011b(_0x1b352d,this[_0x175b('0x20')])||(this[_0x175b('0x20')]=_0x1b352d,this[_0x175b('0x33')](_0x1b352d));}[_0x175b('0x11')](_0x1c31e7){const _0x6ee088=_0x26c792(this[_0x175b('0x20')]);_0x404a5f(_0x6ee088,_0x1c31e7),_0x24011b(_0x6ee088,this[_0x175b('0x20')])||(this[_0x175b('0x20')]=_0x6ee088,this['_onAttributesChange'](this[_0x175b('0x20')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x175b('0x2b')]?this[_0x175b('0x22')]+':'+this[_0x175b('0x2b')]:this[_0x175b('0x22')],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this[_0x175b('0x3')],'data':this[_0x175b('0x2e')],'attributes':this[_0x175b('0x20')]};}static[_0x175b('0x21')](){return _0x11dea9()[_0x175b('0x0')](0x1,0x5);}}