@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231010.0 → 0.0.0-nightly-20231012.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/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.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/link.js +1 -1
  32. package/src/integrations/list.js +1 -1
  33. package/src/integrations/listproperties.js +1 -1
  34. package/src/integrations/mediaembed.js +1 -1
  35. package/src/integrations/mention.js +1 -1
  36. package/src/integrations/pagebreak.js +1 -1
  37. package/src/integrations/paragraph.js +1 -1
  38. package/src/integrations/removeformat.js +1 -1
  39. package/src/integrations/restrictededitingmode.js +1 -1
  40. package/src/integrations/shiftentercommand.js +1 -1
  41. package/src/integrations/standardeditingmode.js +1 -1
  42. package/src/integrations/style.js +1 -1
  43. package/src/integrations/table.js +1 -1
  44. package/src/integrations/tablecaption.js +1 -1
  45. package/src/integrations/tableclipboard.js +1 -1
  46. package/src/integrations/tablecolumnresize.js +1 -1
  47. package/src/integrations/tableheadings.js +1 -1
  48. package/src/integrations/tablemergesplit.js +1 -1
  49. package/src/integrations/tableofcontents.js +1 -1
  50. package/src/integrations/tableproperties.js +1 -1
  51. package/src/integrations/template.js +1 -1
  52. package/src/integrations/title.js +1 -1
  53. package/src/integrations/undo.js +1 -1
  54. package/src/integrations/utils.js +1 -1
  55. package/src/suggestion.d.ts +21 -0
  56. package/src/suggestion.js +1 -1
  57. package/src/suggestiondescriptionfactory.js +1 -1
  58. package/src/trackchanges.d.ts +5 -2
  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 _0x4b01=['tablePasteRow','getColumnIndexes','startsWith','markerName','tableCellBorderWidth','from','editor','editing','_getCoordsForCells','endColumn','stop','TableUtils','value','keys','tableCellBackgroundColor','listenTo','for','trackChanges','high','discard','getAllAdjacentSuggestions','dataDowncast','_createdBatches','getChild','createRangeOn','cell','conversion','content','cells','set','document','register','createRangeIn','isEmpty','_suggestionFactory','getRanges','start','tableCellBorderColor','columns','suggestionUnloaded','position','ck-suggestion-marker-insertion','formatBlock','tablePasteColumn','deletion','_replaceTableSlotCell','insertColumns','last','rowInsertionIndexes','nodeAfter','containsRange','Users','markerToHighlight','createElement','removeColumns','columnInsertionRanges','getContainedElement','suggestion:formatBlock:tablePasteCell','getChildren','filter','*Replace\x20table\x20cells*','$graveyard','requires','TrackChangesEditing','tablePaste','first','getShiftedBy','find','insertionRanges','remove','removeMarkers','subType','plugins','registerCustomCallback','some','push','insert','map','differ','afterInit','tableCellHorizontalAlignment','join','removeRows','oldRange','getMarkers','getChangedMarkers','_splitMarkerName','element','end','add','author','registerDescriptionCallback','includes','column','get','model','length','table','tableCell','tableCellSuggestion','fromEntries','insertContent','batch','columnInsertionIndexes','ck-suggestion-marker--active','removeMarker','rootName','name','previousSibling','getSuggestions','markerAttributes','previous','tableCellPadding','commands','next','activeMarkers','rowInsertionRanges','getSuggestion','getRowIndexes','tablePasteCell','tableCellVerticalAlignment','type','fill','unwrap','every','getTableIfOnlyTableInContent','accept','updateMarker','getSuggestionCallback','registerPostFixer','isEqual','isInContent','entries','setAttributes','markMultiRangeInsertion','suggestion-td','move','view','schema','locale','getRows','tablePasteChainId','suggestionLoaded','tableCellBorderStyle','redo','insertion','wrap','createRange','findAncestor','getRange','deletionRanges','elementToElement','createTableWalker','newRange','attributes','clipboardOutput','return','insertRows','change','_tablePostFixingSubtypes','suggestion','has','TableClipboard'];(function(_0x6c9c25,_0x4b01d5){const _0x184da6=function(_0x10abfa){while(--_0x10abfa){_0x6c9c25['push'](_0x6c9c25['shift']());}};_0x184da6(++_0x4b01d5);}(_0x4b01,0x80));const _0x184d=function(_0x6c9c25,_0x4b01d5){_0x6c9c25=_0x6c9c25-0x0;let _0x184da6=_0x4b01[_0x6c9c25];return _0x184da6;};import{getTranslation as _0x38897b}from'../utils/common-translations';import{Plugin as _0x4ddeb8}from'ckeditor5/src/core';import{uid as _0x34be95,priorities as _0x481e82}from'ckeditor5/src/utils';import _0x1f9f87 from'./table';const le=[_0x184d('0x27'),_0x184d('0x48'),_0x184d('0xf'),_0x184d('0x73'),_0x184d('0x9b'),_0x184d('0x31'),_0x184d('0x93')],ae=Object[_0x184d('0x87')](le[_0x184d('0x70')](_0xac1943=>[_0xac1943,null]));export default class wt extends _0x4ddeb8{static get[_0x184d('0x61')](){return[_0x1f9f87];}[_0x184d('0x72')](){const _0xd4fad9=this[_0x184d('0x29')];if(!_0xd4fad9['plugins'][_0x184d('0x21')]('TableClipboard'))return;const _0x4e2471=_0xd4fad9[_0x184d('0x6b')][_0x184d('0x81')](_0x184d('0x62')),_0x3f6e58=_0xd4fad9[_0x184d('0x6b')]['get'](_0x184d('0x2e')),_0x523495=_0xd4fad9[_0x184d('0x6b')][_0x184d('0x81')](_0x1f9f87),_0x8c8a3a=_0xd4fad9[_0x184d('0x6b')][_0x184d('0x81')](_0x184d('0x22'));_0x523495[_0x184d('0x1f')][_0x184d('0x6e')](_0x184d('0x23'),_0x184d('0x4e')),_0xd4fad9[_0x184d('0x82')][_0x184d('0xa')][_0x184d('0x42')]('tableCellSuggestion',{'allowIn':_0x184d('0x85'),'allowContentOf':'tableCell','isLimit':!0x0}),_0xd4fad9[_0x184d('0x3d')][_0x184d('0x17')]({'model':_0x184d('0x86'),'view':_0x184d('0x7')});let _0x265b82=null;_0xd4fad9['model']['on'](_0x184d('0x88'),(_0x203dce,_0x511b6d)=>{const [_0x1159ba,_0x92be55]=_0x511b6d,_0x94c313=_0x511b6d[_0x511b6d[_0x184d('0x83')]-0x1];_0x94c313&&_0x94c313['forceDefaultExecution']||_0x4e2471['_isForcedDefaultExecutionBlock']||this[_0x184d('0x29')][_0x184d('0x94')][_0x184d('0x81')](_0x184d('0x34'))[_0x184d('0x2f')]&&function(_0x4289a6,_0x4e8600,_0x114d45,_0xa15b59,_0x20d335){if(_0x4e8600&&!_0x4e8600['is']('documentSelection'))return!0x1;const _0xae13a2=_0x20d335[_0x184d('0xa0')](_0x4289a6,_0x114d45);if(!_0xae13a2||!fe(_0xae13a2,void 0x0,_0xa15b59))return!0x1;const _0xbb44c1=_0xa15b59['getSelectionAffectedTableCells'](_0x114d45['document']['selection']);if(!_0xbb44c1[_0x184d('0x83')])return!0x1;const _0x44780c=_0xbb44c1[0x0][_0x184d('0x14')](_0x184d('0x84')),_0x4a834f=_0xa15b59[_0x184d('0x99')](_0xbb44c1),_0x2de1d0=_0xa15b59[_0x184d('0x24')](_0xbb44c1),_0x12e68f={'startRow':_0x4a834f['first'],'endRow':_0x4a834f[_0x184d('0x52')],'startColumn':_0x2de1d0[_0x184d('0x64')],'endColumn':_0x2de1d0[_0x184d('0x52')]};return 0x1==_0xbb44c1[_0x184d('0x83')]&&(_0x12e68f['endRow']+=_0xa15b59[_0x184d('0xc')](_0xae13a2)-0x1,_0x12e68f[_0x184d('0x2c')]+=_0xa15b59['getColumns'](_0xae13a2)-0x1),fe(_0x44780c,_0x12e68f,_0xa15b59);}(_0x1159ba,_0x92be55,_0xd4fad9[_0x184d('0x82')],_0x3f6e58,_0x8c8a3a)&&(_0x203dce[_0x184d('0x2d')](),_0x265b82={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xd4fad9[_0x184d('0x82')]['change'](()=>{_0xd4fad9['model'][_0x184d('0x88')](_0x511b6d[0x0],_0x511b6d[0x1],_0x511b6d[0x2],{'forceDefaultExecution':!0x0});const _0x198529=_0x34be95(),{rowInsertionRanges:_0x2f28eb,columnInsertionRanges:_0x26edba,insertionRanges:_0x5be680,deletionRanges:_0x50da88,cells:_0x157d5a}=_0x265b82;_0x2f28eb[_0x184d('0x83')]&&_0x4e2471['markMultiRangeInsertion'](_0x2f28eb,_0x184d('0x23'),{'tablePasteChainId':_0x198529}),_0x26edba['length']&&_0x4e2471['markMultiRangeInsertion'](_0x26edba,_0x184d('0x4e'),{'tablePasteChainId':_0x198529}),_0x5be680['length']&&_0x4e2471[_0x184d('0x6')](_0x5be680,'tablePaste',{'tablePasteChainId':_0x198529,'skipNestingCheck':!0x0}),_0x50da88['length']&&_0x4e2471['markMultiRangeDeletion'](_0x50da88,'tablePaste',{'tablePasteChainId':_0x198529,'skipNestingCheck':!0x0});const _0x1b505c=_0x4e2471['markMultiRangeBlockFormat'](_0x157d5a[_0x184d('0x70')](({element:_0x4c0e84})=>_0x4c0e84),{'formatGroupId':_0x34be95()},[],_0x184d('0x9a'),{'tablePasteChainId':_0x198529});if(_0x1b505c){const _0x5f181a=_0x1b505c[_0x184d('0x77')](),_0x47654a=[];for(const {element:_0x2c3732,attributes:_0x2d5cd8}of _0x157d5a){if(!_0x2d5cd8)continue;const _0xd91fb9=_0xd4fad9['model'][_0x184d('0x3b')](_0x2c3732),_0x39a470=_0x5f181a[_0x184d('0x66')](_0x503c86=>_0x503c86[_0x184d('0x15')]()[_0x184d('0x2')](_0xd91fb9));_0x39a470&&_0x47654a[_0x184d('0x6e')]([_0x39a470['name'],_0x2d5cd8]);}_0x47654a[_0x184d('0x83')]&&_0x1b505c['setAttribute'](_0x184d('0x91'),Object[_0x184d('0x87')](_0x47654a));}_0x265b82=null;}));},{'priority':_0x481e82[_0x184d('0x35')]+0xa}),_0xd4fad9['plugins'][_0x184d('0x81')](_0x184d('0x22'))['on'](_0x184d('0x50'),(_0x4aa292,_0x23d722)=>{const [_0xf0ffbe,_0x51fa1a,,_0x2c9485]=_0x23d722;if(!_0x265b82)return;_0x4aa292[_0x184d('0x2d')]();const _0xe9a789=_0xf0ffbe[_0x184d('0x3c')],_0x239f41=_0x51fa1a,_0x44789a=ce(_0xe9a789),_0x353310=ce(_0x239f41);_0x4aa292[_0x184d('0x1c')]=_0xe9a789;let _0x3b4640=null,_0x5eaa38=null;if(_0x353310||_0x44789a){if(_0x44789a&&!_0x353310){_0x2c9485[_0x184d('0x68')](_0xe9a789[_0x184d('0x3a')](0x0));for(const _0x3ba4c1 of Array[_0x184d('0x28')](_0x239f41[_0x184d('0x5d')]()))_0x2c9485[_0x184d('0x6f')](_0x3ba4c1,_0xe9a789,'end');const _0xf583f9=_0x265b82[_0x184d('0x53')][_0x184d('0x7f')](_0xf0ffbe['row']),_0x4f75e9=_0x265b82[_0x184d('0x8a')][_0x184d('0x7f')](_0xf0ffbe[_0x184d('0x80')]);_0xf583f9||_0x4f75e9||(_0x3b4640=_0x2c9485[_0x184d('0x43')](_0xe9a789));}else _0x353310&&!_0x44789a&&(_0x5eaa38=_0x2c9485[_0x184d('0x43')](_0xe9a789));}else{const _0x299c1f=_0x2c9485['createElement']('tableCellSuggestion'),_0x457f5f=_0x2c9485[_0x184d('0x58')](_0x184d('0x86'));_0x2c9485[_0x184d('0x12')](_0x2c9485['createRangeIn'](_0xe9a789),_0x457f5f),_0x2c9485[_0x184d('0x6f')](_0x299c1f,_0xe9a789,0x0);for(const _0x5d77b0 of Array[_0x184d('0x28')](_0x239f41[_0x184d('0x5d')]()))_0x2c9485[_0x184d('0x6f')](_0x5d77b0,_0x299c1f,_0x184d('0x7b'));_0x3b4640=_0x2c9485['createRangeOn'](_0x299c1f),_0x5eaa38=_0x2c9485[_0x184d('0x3b')](_0x457f5f);}const _0x419098=Array[_0x184d('0x28')](_0x239f41['getAttributes']())['filter'](([_0x5081ac])=>le[_0x184d('0x7f')](_0x5081ac));_0x265b82[_0x184d('0x3f')][_0x184d('0x6e')]({'element':_0xe9a789,'attributes':_0x419098[_0x184d('0x83')]?Object[_0x184d('0x87')](_0x419098):null}),_0x3b4640&&_0x265b82[_0x184d('0x67')][_0x184d('0x6e')](_0x3b4640),_0x5eaa38&&_0x265b82[_0x184d('0x16')]['push'](_0x5eaa38);},{'priority':_0x184d('0x35')}),_0x3f6e58['on'](_0x184d('0x51'),(_0x162296,_0x41ad7e)=>{const [_0x22833e,_0x4d1730={}]=_0x41ad7e;if(!_0x265b82)return;const _0x3cb664=_0x4d1730['at']||0x0,_0x42cec9=_0x4d1730[_0x184d('0x49')]||0x1;_0x265b82[_0x184d('0x8a')]=new Array(_0x42cec9)[_0x184d('0x9d')](_0x3cb664)[_0x184d('0x70')]((_0x57207b,_0x58fa54)=>_0x57207b+_0x58fa54);for(const {cell:_0x1ad320}of _0x3f6e58[_0x184d('0x18')](_0x22833e,{'startColumn':_0x3cb664,'endColumn':_0x3cb664+_0x42cec9-0x1}))_0x265b82[_0x184d('0x5a')][_0x184d('0x6e')](_0xd4fad9[_0x184d('0x82')]['createRangeOn'](_0x1ad320));},{'priority':'low'}),_0x3f6e58['on'](_0x184d('0x1d'),(_0x4f915f,_0x57a23d)=>{const [_0x2a5839,_0x24e40b={}]=_0x57a23d;if(!_0x265b82)return;const _0x3ac23c=_0x24e40b['at']||0x0,_0x30138f=_0x24e40b['rows']||0x1;_0x265b82[_0x184d('0x53')]=new Array(_0x30138f)[_0x184d('0x9d')](_0x3ac23c)['map']((_0x455d6f,_0x2077b1)=>_0x455d6f+_0x2077b1);for(const {cell:_0x50a8f7}of _0x3f6e58[_0x184d('0x18')](_0x2a5839,{'startRow':_0x3ac23c,'endRow':_0x3ac23c+_0x30138f-0x1}))_0x265b82[_0x184d('0x97')]['push'](_0xd4fad9[_0x184d('0x82')][_0x184d('0x3b')](_0x50a8f7));},{'priority':'low'}),_0x4e2471['_descriptionFactory'][_0x184d('0x7e')](_0x37320b=>{if(_0x37320b['subType']&&_0x37320b[_0x184d('0x6a')][_0x184d('0x25')](_0x184d('0x63')))return _0x37320b[_0x184d('0x92')]?{}:{'type':_0x184d('0x11'),'content':_0x38897b(_0xd4fad9[_0x184d('0xb')],_0x184d('0x5f'))};});const _0x3c40e5=()=>!0x1;for(const _0x3998e1 of[_0x184d('0x63'),_0x184d('0x4e'),_0x184d('0x23'),_0x184d('0x9a')])_0x4e2471[_0x184d('0x45')][_0x184d('0x6c')](_0x184d('0x11'),_0x3998e1,_0x184d('0x74'),_0x3c40e5),_0x4e2471[_0x184d('0x45')][_0x184d('0x6c')](_0x184d('0x4f'),_0x3998e1,_0x184d('0x74'),_0x3c40e5),_0x4e2471['_suggestionFactory'][_0x184d('0x6c')](_0x184d('0x4d'),_0x3998e1,_0x184d('0x74'),_0x3c40e5);_0x4e2471[_0x184d('0x45')][_0x184d('0x6c')]('formatBlock',_0x184d('0x9a'),_0x184d('0x36'),_0x3c40e5),_0x4e2471[_0x184d('0x45')][_0x184d('0x6c')](_0x184d('0x4d'),_0x184d('0x9a'),_0x184d('0xa1'),(_0x51f182,_0x15d7fd,_0x23098a)=>{const _0x3b17fa=_0x51f182['map'](_0x4f4b4c=>_0x4f4b4c['getContainedElement']())['filter'](_0xe3d0ca=>_0xe3d0ca),_0x3e2212=new Map(_0x3b17fa[_0x184d('0x70')](_0x5c320a=>[_0x5c320a,null]));if(_0x265b82)for(const {element:_0x1d9a21,attributes:_0x11ca34}of _0x265b82[_0x184d('0x3f')])_0x11ca34&&_0x3e2212[_0x184d('0x40')](_0x1d9a21,_0x11ca34);else{if(_0x23098a&&_0x23098a[_0x184d('0x91')])for(const [_0x349e64,_0x2641b3]of Object[_0x184d('0x4')](_0x23098a['markerAttributes'])){const _0x372eed=_0xd4fad9[_0x184d('0x82')]['markers'][_0x184d('0x81')](_0x349e64),_0x360db7=_0x372eed?_0x372eed[_0x184d('0x15')]()[_0x184d('0x5b')]():null;_0x360db7&&_0x3e2212['set'](_0x360db7,_0x2641b3);}}_0xd4fad9[_0x184d('0x82')][_0x184d('0x1e')](_0x2c9add=>{for(const [_0x1493a9,_0x56f5e1]of _0x3e2212)_0x2c9add[_0x184d('0x5')]({...ae,..._0x56f5e1},_0x1493a9);});});const _0xce662d=(_0x3b0240,_0x1777a6)=>{_0x4e2471[_0x184d('0x45')][_0x184d('0x6c')](_0x3b0240,_0x184d('0x63'),_0x1777a6,(_0x1bef7e,_0x1b2479,_0x368f43)=>{_0xd4fad9[_0x184d('0x82')][_0x184d('0x1e')](_0xa01bbd=>{const _0x50ca0f=[];for(const _0x484d0d of _0x1bef7e){const _0x55ae0c=_0x484d0d[_0x184d('0x47')][_0x184d('0x54')];_0x55ae0c['is'](_0x184d('0x7a'),_0x184d('0x86'))&&_0x50ca0f[_0x184d('0x6e')](_0x55ae0c);}_0x4e2471[_0x184d('0x45')][_0x184d('0x0')](_0x3b0240,null,_0x1777a6)(_0x1bef7e,_0x1b2479,_0x368f43);for(const _0x190e74 of _0x50ca0f)_0x184d('0x60')!=_0x190e74['root'][_0x184d('0x8d')]&&_0xa01bbd['unwrap'](_0x190e74);});});};_0xce662d(_0x184d('0x11'),_0x184d('0xa1')),_0xce662d(_0x184d('0x11'),_0x184d('0x36')),_0xce662d(_0x184d('0x4f'),_0x184d('0xa1')),_0xce662d(_0x184d('0x4f'),_0x184d('0x36')),_0x4e2471[_0x184d('0x45')]['registerCustomCallback'](_0x184d('0x11'),'tablePasteRow',_0x184d('0x36'),_0x398f67=>{const _0x167a72=_0x398f67[_0x184d('0x70')](_0x4244e9=>_0x4244e9[_0x184d('0x5b')]()),_0x418def=_0x167a72[0x0][_0x184d('0x14')](_0x184d('0x84')),{minRow:_0x257b4d,maxRow:_0x3dbb1b}=_0x523495[_0x184d('0x2b')](_0x167a72);_0x3f6e58[_0x184d('0x75')](_0x418def,{'at':_0x257b4d,'rows':_0x3dbb1b-_0x257b4d+0x1});}),_0x4e2471[_0x184d('0x45')]['registerCustomCallback'](_0x184d('0x11'),_0x184d('0x4e'),_0x184d('0x36'),_0x50c56e=>{const _0x109bc1=_0x50c56e[_0x184d('0x70')](_0x49eacb=>_0x49eacb[_0x184d('0x5b')]()),_0x17b6be=_0x109bc1[0x0]['findAncestor'](_0x184d('0x84')),{minColumn:_0x1513ae,maxColumn:_0x35a933}=_0x523495[_0x184d('0x2b')](_0x109bc1);_0x3f6e58[_0x184d('0x59')](_0x17b6be,{'at':_0x1513ae,'columns':_0x35a933-_0x1513ae+0x1});});const _0x495104=(_0x2aec1a,_0x2f3166)=>{if(!_0x2f3166[_0x184d('0x6a')]||!_0x2f3166[_0x184d('0x6a')][_0x184d('0x25')](_0x184d('0x63')))return;const _0xc9e099=_0x2f3166[_0x184d('0x1a')][_0x184d('0xd')],_0xbecfe=_0x4e2471[_0x184d('0x90')]()[_0x184d('0x5e')](_0x579be8=>_0x579be8[_0x184d('0x3')]&&_0x579be8[_0x184d('0x1a')]&&_0x579be8[_0x184d('0x1a')][_0x184d('0xd')]==_0xc9e099);_0xbecfe[_0x184d('0x83')]&&_0x2f3166[_0x184d('0x37')]()[_0x184d('0x83')]!=_0xbecfe[_0x184d('0x83')]&&_0xbecfe['reduce']((_0x25f3b3,_0x80583b)=>(_0x25f3b3[_0x184d('0x95')]=_0x80583b,_0x80583b['previous']=_0x25f3b3,_0x80583b));};function _0x36f288(_0x242c4d,_0x4061a8=!0x0){const {id:_0x57809e}=_0x4e2471[_0x184d('0x79')](_0x242c4d[_0x184d('0x26')]),_0x34c97d=['ck-suggestion-marker',_0x184d('0x4c')],_0xa34315=_0x4e2471[_0x184d('0x96')][_0x184d('0x7f')](_0x242c4d[_0x184d('0x26')]);return _0xa34315&&_0x34c97d[_0x184d('0x6e')](_0x184d('0x8b')),{'classes':_0x34c97d,'attributes':{'data-suggestion':_0x57809e},'priority':_0xa34315&&_0x4061a8?0xbc2:0xbb8};}_0x4e2471['on'](_0x184d('0xe'),_0x495104,{'priority':'high'}),_0x4e2471['on'](_0x184d('0x4a'),_0x495104,{'priority':'high'}),_0xd4fad9[_0x184d('0x82')]['document']['registerPostFixer'](()=>{let _0x3b2eb7=!0x1;const _0x361168=Array['from'](_0xd4fad9['model']['document'][_0x184d('0x71')][_0x184d('0x78')]());for(const {name:_0x1b6069,data:_0x4ee39c}of _0x361168){const {group:_0x2223b3,type:_0x287c8e,id:_0x5d7060}=_0x4e2471[_0x184d('0x79')](_0x1b6069);if(_0x184d('0x20')!=_0x2223b3||'deletion'!=_0x287c8e||_0x4ee39c['oldRange'])continue;if(!_0x4e2471['hasSuggestion'](_0x5d7060))continue;const _0x1c7220=_0x4e2471[_0x184d('0x98')](_0x5d7060)[_0x184d('0x46')](),_0x1b461c=_0xd4fad9[_0x184d('0x6b')]['get'](_0x184d('0x56'))['me'];for(const _0x2de52f of _0x4e2471[_0x184d('0x90')]()){if(!_0x2de52f[_0x184d('0x3')]||_0x2de52f['author']!=_0x1b461c)continue;if(_0x184d('0x4d')!=_0x2de52f[_0x184d('0x9c')]||'tablePasteCell'!=_0x2de52f[_0x184d('0x6a')])continue;if(_0x2de52f[_0x184d('0x46')]()[_0x184d('0x9f')](_0x4f8dfd=>_0x1c7220[_0x184d('0x6d')](_0x173de0=>_0x173de0[_0x184d('0x55')](_0x4f8dfd,!0x0))))for(const _0xaef2da of _0x2de52f[_0x184d('0x37')]())_0xaef2da[_0x184d('0x3')]&&(_0xaef2da['discard'](),_0x3b2eb7=!0x0);}}return _0x3b2eb7;}),_0xd4fad9[_0x184d('0x82')]['document'][_0x184d('0x1')](_0x4e901c=>{const _0x5e13ae=_0xd4fad9[_0x184d('0x94')][_0x184d('0x81')](_0x184d('0x10'));if(!_0x5e13ae||!_0x5e13ae[_0x184d('0x39')][_0x184d('0x21')](_0x4e901c[_0x184d('0x89')]))return!0x1;let _0x135ecf=!0x1;const _0x2cc81e=_0xd4fad9[_0x184d('0x6b')][_0x184d('0x81')](_0x184d('0x56'))['me'],_0x287397=_0xd4fad9[_0x184d('0x82')]['document']['differ']['getChanges'](),_0x54c62b=Array[_0x184d('0x28')](_0xd4fad9['model'][_0x184d('0x41')][_0x184d('0x71')][_0x184d('0x78')]())[_0x184d('0x5e')](({name:_0x4c5541,data:_0x328607})=>{const {group:_0xf824cb,subType:_0x418705,authorId:_0x5e5a31}=_0x4e2471[_0x184d('0x79')](_0x4c5541);return _0x184d('0x20')==_0xf824cb&&_0x184d('0x63')==_0x418705&&_0x5e5a31==_0x2cc81e['id']&&!_0x328607[_0x184d('0x76')];});for(const _0x321505 of _0x287397){if(_0x184d('0x6f')!=_0x321505[_0x184d('0x9c')]||_0x184d('0x86')!=_0x321505[_0x184d('0x8e')]||0x1!=_0x321505[_0x184d('0x83')])continue;const _0x399d68=_0x4e901c[_0x184d('0x13')](_0x321505['position'],_0x321505[_0x184d('0x4b')][_0x184d('0x65')](0x1));if(!_0x54c62b['find'](({data:_0x12ebc8})=>_0x12ebc8['newRange'][_0x184d('0x2')](_0x399d68)))for(const {name:_0xe36d9d,data:_0x106554}of _0x54c62b)if(_0x399d68['containsRange'](_0x106554[_0x184d('0x19')])){_0x4e901c[_0x184d('0xa2')](_0xe36d9d,{'range':_0x399d68}),_0x135ecf=!0x0;break;}}return _0x135ecf;}),_0xd4fad9['model'][_0x184d('0x41')][_0x184d('0x1')](_0x35aa14=>{let _0x55d2dc=!0x1;const _0x27625a=_0xd4fad9[_0x184d('0x6b')]['get'](_0x184d('0x56'))['me'],_0x5c8696=_0x4e2471['getSuggestions']()[_0x184d('0x5e')](_0x5c40cc=>_0x5c40cc[_0x184d('0x3')]&&_0x5c40cc[_0x184d('0x7d')]==_0x27625a),_0x3a0518=new Set(),_0x567c2f=new Set();for(const _0x39fb1c of _0x5c8696)if('tablePaste'==_0x39fb1c[_0x184d('0x6a')])for(const _0x3daad9 of _0x39fb1c[_0x184d('0x77')]()){const _0x1b3ab1=_0x3daad9[_0x184d('0x15')]()[_0x184d('0x5b')]();if(_0x1b3ab1){if(_0x1b3ab1['is'](_0x184d('0x7a'),'tableCellSuggestion')&&ce(_0x1b3ab1)){_0x39fb1c[_0x184d('0x8c')](_0x3daad9[_0x184d('0x8e')]),_0x3a0518[_0x184d('0x7c')](_0x1b3ab1),_0x55d2dc=!0x0;const _0x23c3ab=_0x1b3ab1['nextSibling'],_0x26a6a6=_0x1b3ab1[_0x184d('0x8f')],_0x4103a1=_0x23c3ab&&_0x23c3ab['is'](_0x184d('0x7a'),_0x184d('0x86')),_0xaa50d4=_0x26a6a6&&_0x26a6a6['is'](_0x184d('0x7a'),'tableCellSuggestion');_0x4103a1&&!_0x3a0518[_0x184d('0x21')](_0x23c3ab)&&_0x567c2f[_0x184d('0x7c')](_0x23c3ab),_0xaa50d4&&!_0x3a0518[_0x184d('0x21')](_0x26a6a6)&&_0x567c2f[_0x184d('0x7c')](_0x26a6a6);}else _0x1b3ab1['is'](_0x184d('0x7a'),'paragraph')&&_0x1b3ab1['isEmpty']&&(_0x39fb1c['removeMarker'](_0x3daad9[_0x184d('0x8e')]),_0x55d2dc=!0x0);}}else{if(_0x184d('0x9a')==_0x39fb1c['subType']){if(!_0x39fb1c[_0x184d('0x1a')]||!_0x39fb1c[_0x184d('0x1a')][_0x184d('0xd')])continue;const _0x5c0c28=_0x39fb1c['attributes'][_0x184d('0x91')];if(_0x5c0c28&&Object[_0x184d('0x30')](_0x5c0c28)[_0x184d('0x83')])continue;const _0x183c3c=_0x39fb1c[_0x184d('0x1a')][_0x184d('0xd')];let _0x41448b=!0x0,_0x5c5894=!0x0;for(const _0x3815e2 of _0x5c8696)if(_0x3815e2[_0x184d('0x6a')]&&_0x3815e2[_0x184d('0x6a')][_0x184d('0x25')]('tablePaste')){if(!_0x3815e2[_0x184d('0x1a')][_0x184d('0xd')]){_0x5c5894=!0x1;break;}if(_0x3815e2['id']!=_0x39fb1c['id']&&_0x3815e2[_0x184d('0x1a')][_0x184d('0xd')]==_0x183c3c){_0x41448b=!0x1;break;}}_0x5c5894&&_0x41448b&&(_0x39fb1c[_0x184d('0x69')](),_0x55d2dc=!0x0);}}for(const _0x47438d of _0x3a0518)_0x35aa14[_0x184d('0x68')](_0x47438d);for(const _0x3d7989 of _0x567c2f)_0x35aa14[_0x184d('0x9e')](_0x3d7989);return _0x55d2dc;}),_0xd4fad9['conversion'][_0x184d('0x33')]('editingDowncast')[_0x184d('0x57')]({'model':_0x184d('0x5c'),'view':(_0x27534e,_0x432ef7)=>_0x36f288(_0x27534e),'converterPriority':_0x184d('0x35')}),_0xd4fad9['conversion'][_0x184d('0x33')](_0x184d('0x38'))[_0x184d('0x57')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x195a9a,_0xe88f5d)=>_0xe88f5d['options']['showSuggestionHighlights']?_0x36f288(_0x195a9a,!0x1):null,'converterPriority':'high'});const _0x536271=_0xd4fad9[_0x184d('0x2a')][_0x184d('0x9')];this[_0x184d('0x32')](_0x536271[_0x184d('0x41')],_0x184d('0x1b'),(_0x3ab4d6,_0x1076ec)=>{const _0x276151=[];for(const _0x47d1da of _0x536271['createRangeIn'](_0x1076ec[_0x184d('0x3e')])['getItems']())_0x47d1da['is'](_0x184d('0x7a'),'suggestion-td')&&_0x276151[_0x184d('0x6e')](_0x47d1da);_0x536271[_0x184d('0x1e')](_0x584dd1=>{for(const _0x1359ef of _0x276151)_0x584dd1[_0x184d('0x8')](_0x584dd1['createRangeIn'](_0x1359ef),_0x584dd1['createPositionBefore'](_0x1359ef)),_0x584dd1[_0x184d('0x68')](_0x1359ef);});});}}function ce(_0x390952){if(_0x390952[_0x184d('0x44')])return!0x0;const _0x4670b6=_0x390952[_0x184d('0x3a')](0x0);return _0x4670b6['is'](_0x184d('0x7a'),'paragraph')&&_0x4670b6[_0x184d('0x44')];}function fe(_0x541746,_0x3e97c9={},_0x49bc39){for(const {isAnchor:_0x1adaf4,cellHeight:_0x3bb692,cellWidth:_0x2b8614}of _0x49bc39[_0x184d('0x18')](_0x541746,{'includeAllSlots':!0x0,..._0x3e97c9}))if(!_0x1adaf4||0x1!=_0x3bb692||0x1!=_0x2b8614)return!0x1;return!0x0;}
23
+ const _0x12bd=['getRows','includes','tableCellSuggestion','markerToHighlight','entries','insertionRanges','newRange','root','rowInsertionIndexes','options','name','showSuggestionHighlights','Users','deletionRanges','first','afterInit','rootName','endRow','add','tableCellHorizontalAlignment','createPositionBefore','$graveyard','getRowIndexes','set','for','high','markMultiRangeBlockFormat','next','tablePasteColumn','rows','getSuggestions','differ','tablePasteRow','elementToElement','_createdBatches','getSuggestion','tablePasteCell','tableCellBorderColor','insertColumns','join','length','createTableWalker','suggestionUnloaded','type','move','locale','suggestion-td','TableUtils','createRange','cells','*Replace\x20table\x20cells*','attributes','insertContent','view','removeMarkers','redo','has','oldRange','markMultiRangeDeletion','getRanges','tableCell','getChanges','every','change','createRangeOn','setAttribute','ck-suggestion-marker-insertion','fromEntries','start','nodeAfter','documentSelection','insertRows','createElement','accept','document','tableCellBackgroundColor','insert','last','author','columnInsertionIndexes','unwrap','getChildren','registerDescriptionCallback','_descriptionFactory','tableCellBorderStyle','forceDefaultExecution','paragraph','_isForcedDefaultExecutionBlock','editor','subType','plugins','containsRange','isInContent','discard','_splitMarkerName','map','getAllAdjacentSuggestions','setAttributes','tableCellBorderWidth','listenTo','filter','removeRows','hasSuggestion','insertion','suggestion','isEmpty','cell','stop','getMarkers','getSuggestionCallback','findAncestor','position','formatBlock','model','suggestion:formatBlock:tablePasteCell','tablePasteChainId','markMultiRangeInsertion','remove','registerCustomCallback','deletion','tablePaste','low','push','TrackChangesEditing','_suggestionFactory','from','batch','markerAttributes','updateMarker','value','registerPostFixer','selection','element','previous','getColumnIndexes','TableClipboard','rowInsertionRanges','getContainedElement','_replaceTableSlotCell','commands','get','ck-suggestion-marker--active','startsWith','createRangeIn','isEqual','editingDowncast','getRange','getChangedMarkers','conversion','_getCoordsForCells','find','end','return','getTableIfOnlyTableInContent','editing','wrap','markerName','column','some','markers','previousSibling','getColumns','register','table'];(function(_0x483898,_0x12bdd4){const _0x1af1db=function(_0x21d0c9){while(--_0x21d0c9){_0x483898['push'](_0x483898['shift']());}};_0x1af1db(++_0x12bdd4);}(_0x12bd,0x76));const _0x1af1=function(_0x483898,_0x12bdd4){_0x483898=_0x483898-0x0;let _0x1af1db=_0x12bd[_0x483898];return _0x1af1db;};import{getTranslation as _0x415e9c}from'../utils/common-translations';import{Plugin as _0x539ac7}from'ckeditor5/src/core';import{uid as _0x19fc1f,priorities as _0x3369cb}from'ckeditor5/src/utils';import _0x46247e from'./table';const le=[_0x1af1('0x90'),_0x1af1('0x53'),_0x1af1('0x82'),_0x1af1('0x41'),'tableCellVerticalAlignment',_0x1af1('0x79'),'tableCellPadding'],ae=Object[_0x1af1('0x71')](le[_0x1af1('0x8d')](_0x150c11=>[_0x150c11,null]));export default class wt extends _0x539ac7{static get['requires'](){return[_0x46247e];}[_0x1af1('0x3d')](){const _0x3c81d6=this[_0x1af1('0x86')];if(!_0x3c81d6[_0x1af1('0x88')]['has'](_0x1af1('0x11')))return;const _0x5d8906=_0x3c81d6[_0x1af1('0x88')]['get'](_0x1af1('0x5')),_0x393c9a=_0x3c81d6['plugins'][_0x1af1('0x16')](_0x1af1('0x5d')),_0x47f257=_0x3c81d6['plugins'][_0x1af1('0x16')](_0x46247e),_0x2be902=_0x3c81d6[_0x1af1('0x88')][_0x1af1('0x16')](_0x1af1('0x11'));_0x47f257['_tablePostFixingSubtypes'][_0x1af1('0x4')](_0x1af1('0x4e'),'tablePasteColumn'),_0x3c81d6[_0x1af1('0x9f')]['schema'][_0x1af1('0x2c')]('tableCellSuggestion',{'allowIn':_0x1af1('0x6a'),'allowContentOf':_0x1af1('0x6a'),'isLimit':!0x0}),_0x3c81d6[_0x1af1('0x1e')][_0x1af1('0x4f')]({'model':_0x1af1('0x30'),'view':_0x1af1('0x5c')});let _0x5d29b5=null;_0x3c81d6['model']['on'](_0x1af1('0x62'),(_0x2d95fd,_0x4099e4)=>{const [_0x116667,_0x5b4f3a]=_0x4099e4,_0x2a4070=_0x4099e4[_0x4099e4[_0x1af1('0x56')]-0x1];_0x2a4070&&_0x2a4070[_0x1af1('0x83')]||_0x5d8906[_0x1af1('0x85')]||this[_0x1af1('0x86')][_0x1af1('0x15')][_0x1af1('0x16')]('trackChanges')[_0x1af1('0xb')]&&function(_0x54cd99,_0x46256b,_0x1d5dbe,_0x885788,_0x2e9beb){if(_0x46256b&&!_0x46256b['is'](_0x1af1('0x74')))return!0x1;const _0x412a38=_0x2e9beb[_0x1af1('0x23')](_0x54cd99,_0x1d5dbe);if(!_0x412a38||!fe(_0x412a38,void 0x0,_0x885788))return!0x1;const _0x28db9a=_0x885788['getSelectionAffectedTableCells'](_0x1d5dbe['document'][_0x1af1('0xd')]);if(!_0x28db9a['length'])return!0x1;const _0x408319=_0x28db9a[0x0][_0x1af1('0x9c')](_0x1af1('0x2d')),_0x5116ba=_0x885788[_0x1af1('0x44')](_0x28db9a),_0x534cec=_0x885788[_0x1af1('0x10')](_0x28db9a),_0x5241af={'startRow':_0x5116ba[_0x1af1('0x3c')],'endRow':_0x5116ba[_0x1af1('0x7b')],'startColumn':_0x534cec[_0x1af1('0x3c')],'endColumn':_0x534cec[_0x1af1('0x7b')]};return 0x1==_0x28db9a[_0x1af1('0x56')]&&(_0x5241af[_0x1af1('0x3f')]+=_0x885788[_0x1af1('0x2e')](_0x412a38)-0x1,_0x5241af['endColumn']+=_0x885788[_0x1af1('0x2b')](_0x412a38)-0x1),fe(_0x408319,_0x5241af,_0x885788);}(_0x116667,_0x5b4f3a,_0x3c81d6['model'],_0x393c9a,_0x2be902)&&(_0x2d95fd[_0x1af1('0x99')](),_0x5d29b5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x6d')](()=>{_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x62')](_0x4099e4[0x0],_0x4099e4[0x1],_0x4099e4[0x2],{'forceDefaultExecution':!0x0});const _0x404386=_0x19fc1f(),{rowInsertionRanges:_0x3d95d2,columnInsertionRanges:_0x1a548e,insertionRanges:_0x4e5c3c,deletionRanges:_0x270733,cells:_0x439d38}=_0x5d29b5;_0x3d95d2[_0x1af1('0x56')]&&_0x5d8906[_0x1af1('0xa2')](_0x3d95d2,'tablePasteRow',{'tablePasteChainId':_0x404386}),_0x1a548e[_0x1af1('0x56')]&&_0x5d8906['markMultiRangeInsertion'](_0x1a548e,_0x1af1('0x4a'),{'tablePasteChainId':_0x404386}),_0x4e5c3c['length']&&_0x5d8906[_0x1af1('0xa2')](_0x4e5c3c,_0x1af1('0x2'),{'tablePasteChainId':_0x404386,'skipNestingCheck':!0x0}),_0x270733[_0x1af1('0x56')]&&_0x5d8906[_0x1af1('0x68')](_0x270733,_0x1af1('0x2'),{'tablePasteChainId':_0x404386,'skipNestingCheck':!0x0});const _0x36e239=_0x5d8906[_0x1af1('0x48')](_0x439d38[_0x1af1('0x8d')](({element:_0xc5bd1})=>_0xc5bd1),{'formatGroupId':_0x19fc1f()},[],_0x1af1('0x52'),{'tablePasteChainId':_0x404386});if(_0x36e239){const _0x579755=_0x36e239[_0x1af1('0x9a')](),_0x34a9ff=[];for(const {element:_0x4d0624,attributes:_0x558aa4}of _0x439d38){if(!_0x558aa4)continue;const _0x2f7ec6=_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x6e')](_0x4d0624),_0x10c99b=_0x579755[_0x1af1('0x20')](_0x1cded1=>_0x1cded1['getRange']()[_0x1af1('0x1a')](_0x2f7ec6));_0x10c99b&&_0x34a9ff['push']([_0x10c99b[_0x1af1('0x38')],_0x558aa4]);}_0x34a9ff[_0x1af1('0x56')]&&_0x36e239[_0x1af1('0x6f')]('markerAttributes',Object[_0x1af1('0x71')](_0x34a9ff));}_0x5d29b5=null;}));},{'priority':_0x3369cb['high']+0xa}),_0x3c81d6[_0x1af1('0x88')][_0x1af1('0x16')](_0x1af1('0x11'))['on'](_0x1af1('0x14'),(_0x1b35de,_0x3bc58e)=>{const [_0x373cbc,_0x54a8e8,,_0x226d43]=_0x3bc58e;if(!_0x5d29b5)return;_0x1b35de[_0x1af1('0x99')]();const _0x642463=_0x373cbc[_0x1af1('0x98')],_0x2bb803=_0x54a8e8,_0x4a188b=ce(_0x642463),_0x4c8dcf=ce(_0x2bb803);_0x1b35de[_0x1af1('0x22')]=_0x642463;let _0x517ce2=null,_0x5eee1f=null;if(_0x4c8dcf||_0x4a188b){if(_0x4a188b&&!_0x4c8dcf){_0x226d43[_0x1af1('0xa3')](_0x642463['getChild'](0x0));for(const _0x5be8d7 of Array[_0x1af1('0x7')](_0x2bb803[_0x1af1('0x7f')]()))_0x226d43[_0x1af1('0x7a')](_0x5be8d7,_0x642463,'end');const _0x2087e6=_0x5d29b5[_0x1af1('0x36')][_0x1af1('0x2f')](_0x373cbc['row']),_0x31effd=_0x5d29b5['columnInsertionIndexes'][_0x1af1('0x2f')](_0x373cbc[_0x1af1('0x27')]);_0x2087e6||_0x31effd||(_0x517ce2=_0x226d43[_0x1af1('0x19')](_0x642463));}else _0x4c8dcf&&!_0x4a188b&&(_0x5eee1f=_0x226d43[_0x1af1('0x19')](_0x642463));}else{const _0x461bcd=_0x226d43[_0x1af1('0x76')](_0x1af1('0x30')),_0x1e9d3d=_0x226d43[_0x1af1('0x76')](_0x1af1('0x30'));_0x226d43[_0x1af1('0x25')](_0x226d43[_0x1af1('0x19')](_0x642463),_0x1e9d3d),_0x226d43[_0x1af1('0x7a')](_0x461bcd,_0x642463,0x0);for(const _0x56a6d8 of Array[_0x1af1('0x7')](_0x2bb803[_0x1af1('0x7f')]()))_0x226d43[_0x1af1('0x7a')](_0x56a6d8,_0x461bcd,_0x1af1('0x21'));_0x517ce2=_0x226d43[_0x1af1('0x6e')](_0x461bcd),_0x5eee1f=_0x226d43[_0x1af1('0x6e')](_0x1e9d3d);}const _0x5e7e2f=Array[_0x1af1('0x7')](_0x2bb803['getAttributes']())[_0x1af1('0x92')](([_0x326e15])=>le[_0x1af1('0x2f')](_0x326e15));_0x5d29b5[_0x1af1('0x5f')]['push']({'element':_0x642463,'attributes':_0x5e7e2f[_0x1af1('0x56')]?Object[_0x1af1('0x71')](_0x5e7e2f):null}),_0x517ce2&&_0x5d29b5[_0x1af1('0x33')]['push'](_0x517ce2),_0x5eee1f&&_0x5d29b5[_0x1af1('0x3b')][_0x1af1('0x4')](_0x5eee1f);},{'priority':_0x1af1('0x47')}),_0x393c9a['on'](_0x1af1('0x54'),(_0x1e17d3,_0x52f728)=>{const [_0x491083,_0x289a42={}]=_0x52f728;if(!_0x5d29b5)return;const _0x1f1cad=_0x289a42['at']||0x0,_0x34bbbc=_0x289a42['columns']||0x1;_0x5d29b5[_0x1af1('0x7d')]=new Array(_0x34bbbc)['fill'](_0x1f1cad)[_0x1af1('0x8d')]((_0x51b539,_0x29be28)=>_0x51b539+_0x29be28);for(const {cell:_0x13b128}of _0x393c9a[_0x1af1('0x57')](_0x491083,{'startColumn':_0x1f1cad,'endColumn':_0x1f1cad+_0x34bbbc-0x1}))_0x5d29b5['columnInsertionRanges'][_0x1af1('0x4')](_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x6e')](_0x13b128));},{'priority':_0x1af1('0x3')}),_0x393c9a['on'](_0x1af1('0x75'),(_0x96ccb6,_0x26de40)=>{const [_0x48ea20,_0x1a158f={}]=_0x26de40;if(!_0x5d29b5)return;const _0x7209d6=_0x1a158f['at']||0x0,_0xa5e2c=_0x1a158f[_0x1af1('0x4b')]||0x1;_0x5d29b5[_0x1af1('0x36')]=new Array(_0xa5e2c)['fill'](_0x7209d6)[_0x1af1('0x8d')]((_0x2c63d0,_0x3ed200)=>_0x2c63d0+_0x3ed200);for(const {cell:_0x54bb59}of _0x393c9a[_0x1af1('0x57')](_0x48ea20,{'startRow':_0x7209d6,'endRow':_0x7209d6+_0xa5e2c-0x1}))_0x5d29b5[_0x1af1('0x12')]['push'](_0x3c81d6[_0x1af1('0x9f')]['createRangeOn'](_0x54bb59));},{'priority':_0x1af1('0x3')}),_0x5d8906[_0x1af1('0x81')][_0x1af1('0x80')](_0x573848=>{if(_0x573848[_0x1af1('0x87')]&&_0x573848[_0x1af1('0x87')][_0x1af1('0x18')]('tablePaste'))return _0x573848['previous']?{}:{'type':_0x1af1('0x95'),'content':_0x415e9c(_0x3c81d6[_0x1af1('0x5b')],_0x1af1('0x60'))};});const _0x517604=()=>!0x1;for(const _0x5487f2 of[_0x1af1('0x2'),_0x1af1('0x4a'),_0x1af1('0x4e'),_0x1af1('0x52')])_0x5d8906[_0x1af1('0x6')][_0x1af1('0x0')](_0x1af1('0x95'),_0x5487f2,'join',_0x517604),_0x5d8906[_0x1af1('0x6')]['registerCustomCallback'](_0x1af1('0x1'),_0x5487f2,_0x1af1('0x55'),_0x517604),_0x5d8906[_0x1af1('0x6')]['registerCustomCallback'](_0x1af1('0x9e'),_0x5487f2,'join',_0x517604);_0x5d8906['_suggestionFactory']['registerCustomCallback'](_0x1af1('0x9e'),'tablePasteCell',_0x1af1('0x8b'),_0x517604),_0x5d8906[_0x1af1('0x6')]['registerCustomCallback'](_0x1af1('0x9e'),_0x1af1('0x52'),_0x1af1('0x77'),(_0x413588,_0x2a8f6d,_0x5a08ff)=>{const _0x15ea34=_0x413588[_0x1af1('0x8d')](_0x1c8938=>_0x1c8938[_0x1af1('0x13')]())[_0x1af1('0x92')](_0x23da3e=>_0x23da3e),_0x27d360=new Map(_0x15ea34[_0x1af1('0x8d')](_0x1535ce=>[_0x1535ce,null]));if(_0x5d29b5)for(const {element:_0x32b464,attributes:_0x5c7326}of _0x5d29b5[_0x1af1('0x5f')])_0x5c7326&&_0x27d360[_0x1af1('0x45')](_0x32b464,_0x5c7326);else{if(_0x5a08ff&&_0x5a08ff[_0x1af1('0x9')])for(const [_0x4655a4,_0x531fb6]of Object[_0x1af1('0x32')](_0x5a08ff[_0x1af1('0x9')])){const _0x200cfc=_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x29')]['get'](_0x4655a4),_0x12d08f=_0x200cfc?_0x200cfc[_0x1af1('0x1c')]()['getContainedElement']():null;_0x12d08f&&_0x27d360[_0x1af1('0x45')](_0x12d08f,_0x531fb6);}}_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x6d')](_0x36ecb3=>{for(const [_0x2e45c1,_0x5ec78c]of _0x27d360)_0x36ecb3[_0x1af1('0x8f')]({...ae,..._0x5ec78c},_0x2e45c1);});});const _0x16d74a=(_0xcb8be1,_0x31a532)=>{_0x5d8906[_0x1af1('0x6')]['registerCustomCallback'](_0xcb8be1,_0x1af1('0x2'),_0x31a532,(_0x2f6fe4,_0x577eb7,_0x484f61)=>{_0x3c81d6['model'][_0x1af1('0x6d')](_0x54c3fb=>{const _0x371863=[];for(const _0x3da90b of _0x2f6fe4){const _0x11ff9e=_0x3da90b[_0x1af1('0x72')][_0x1af1('0x73')];_0x11ff9e['is'](_0x1af1('0xe'),_0x1af1('0x30'))&&_0x371863[_0x1af1('0x4')](_0x11ff9e);}_0x5d8906[_0x1af1('0x6')][_0x1af1('0x9b')](_0xcb8be1,null,_0x31a532)(_0x2f6fe4,_0x577eb7,_0x484f61);for(const _0x3525a8 of _0x371863)_0x1af1('0x43')!=_0x3525a8[_0x1af1('0x35')][_0x1af1('0x3e')]&&_0x54c3fb['unwrap'](_0x3525a8);});});};_0x16d74a(_0x1af1('0x95'),'accept'),_0x16d74a(_0x1af1('0x95'),_0x1af1('0x8b')),_0x16d74a(_0x1af1('0x1'),_0x1af1('0x77')),_0x16d74a(_0x1af1('0x1'),'discard'),_0x5d8906[_0x1af1('0x6')][_0x1af1('0x0')](_0x1af1('0x95'),'tablePasteRow',_0x1af1('0x8b'),_0x11c0f6=>{const _0x452eee=_0x11c0f6[_0x1af1('0x8d')](_0x3a1864=>_0x3a1864[_0x1af1('0x13')]()),_0x56533d=_0x452eee[0x0][_0x1af1('0x9c')](_0x1af1('0x2d')),{minRow:_0x15dbd4,maxRow:_0x510d43}=_0x47f257['_getCoordsForCells'](_0x452eee);_0x393c9a[_0x1af1('0x93')](_0x56533d,{'at':_0x15dbd4,'rows':_0x510d43-_0x15dbd4+0x1});}),_0x5d8906[_0x1af1('0x6')]['registerCustomCallback'](_0x1af1('0x95'),_0x1af1('0x4a'),_0x1af1('0x8b'),_0x2d04c8=>{const _0x2c892a=_0x2d04c8[_0x1af1('0x8d')](_0x317b25=>_0x317b25[_0x1af1('0x13')]()),_0x187d6c=_0x2c892a[0x0]['findAncestor']('table'),{minColumn:_0x59d073,maxColumn:_0x15fc29}=_0x47f257[_0x1af1('0x1f')](_0x2c892a);_0x393c9a['removeColumns'](_0x187d6c,{'at':_0x59d073,'columns':_0x15fc29-_0x59d073+0x1});});const _0x297139=(_0x5cf062,_0xa563d9)=>{if(!_0xa563d9[_0x1af1('0x87')]||!_0xa563d9[_0x1af1('0x87')]['startsWith'](_0x1af1('0x2')))return;const _0x2c5c52=_0xa563d9[_0x1af1('0x61')][_0x1af1('0xa1')],_0x5a8aeb=_0x5d8906[_0x1af1('0x4c')]()[_0x1af1('0x92')](_0x45e2a7=>_0x45e2a7[_0x1af1('0x8a')]&&_0x45e2a7[_0x1af1('0x61')]&&_0x45e2a7['attributes'][_0x1af1('0xa1')]==_0x2c5c52);_0x5a8aeb['length']&&_0xa563d9[_0x1af1('0x8e')]()[_0x1af1('0x56')]!=_0x5a8aeb['length']&&_0x5a8aeb['reduce']((_0x317c90,_0x33dab8)=>(_0x317c90[_0x1af1('0x49')]=_0x33dab8,_0x33dab8[_0x1af1('0xf')]=_0x317c90,_0x33dab8));};function _0x2036ab(_0x2ce291,_0x19ad11=!0x0){const {id:_0x4a5bab}=_0x5d8906[_0x1af1('0x8c')](_0x2ce291['markerName']),_0x3ad9ce=['ck-suggestion-marker',_0x1af1('0x70')],_0x91869d=_0x5d8906['activeMarkers'][_0x1af1('0x2f')](_0x2ce291[_0x1af1('0x26')]);return _0x91869d&&_0x3ad9ce['push'](_0x1af1('0x17')),{'classes':_0x3ad9ce,'attributes':{'data-suggestion':_0x4a5bab},'priority':_0x91869d&&_0x19ad11?0xbc2:0xbb8};}_0x5d8906['on']('suggestionLoaded',_0x297139,{'priority':_0x1af1('0x47')}),_0x5d8906['on'](_0x1af1('0x58'),_0x297139,{'priority':'high'}),_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x78')][_0x1af1('0xc')](()=>{let _0x1c9736=!0x1;const _0x5e5cdf=Array[_0x1af1('0x7')](_0x3c81d6['model'][_0x1af1('0x78')][_0x1af1('0x4d')][_0x1af1('0x1d')]());for(const {name:_0x334645,data:_0x39478b}of _0x5e5cdf){const {group:_0x51d1b0,type:_0xdf673b,id:_0x2dc24e}=_0x5d8906[_0x1af1('0x8c')](_0x334645);if(_0x1af1('0x96')!=_0x51d1b0||_0x1af1('0x1')!=_0xdf673b||_0x39478b['oldRange'])continue;if(!_0x5d8906[_0x1af1('0x94')](_0x2dc24e))continue;const _0x103dda=_0x5d8906[_0x1af1('0x51')](_0x2dc24e)[_0x1af1('0x69')](),_0x2f8354=_0x3c81d6[_0x1af1('0x88')]['get']('Users')['me'];for(const _0x8adfe7 of _0x5d8906[_0x1af1('0x4c')]()){if(!_0x8adfe7['isInContent']||_0x8adfe7[_0x1af1('0x7c')]!=_0x2f8354)continue;if(_0x1af1('0x9e')!=_0x8adfe7[_0x1af1('0x59')]||_0x1af1('0x52')!=_0x8adfe7[_0x1af1('0x87')])continue;if(_0x8adfe7['getRanges']()[_0x1af1('0x6c')](_0x50f7e7=>_0x103dda[_0x1af1('0x28')](_0x147a25=>_0x147a25[_0x1af1('0x89')](_0x50f7e7,!0x0))))for(const _0x53f917 of _0x8adfe7[_0x1af1('0x8e')]())_0x53f917[_0x1af1('0x8a')]&&(_0x53f917['discard'](),_0x1c9736=!0x0);}}return _0x1c9736;}),_0x3c81d6['model']['document']['registerPostFixer'](_0x40807c=>{const _0x35ce02=_0x3c81d6['commands'][_0x1af1('0x16')](_0x1af1('0x65'));if(!_0x35ce02||!_0x35ce02[_0x1af1('0x50')][_0x1af1('0x66')](_0x40807c[_0x1af1('0x8')]))return!0x1;let _0x10ca33=!0x1;const _0x368dca=_0x3c81d6[_0x1af1('0x88')]['get']('Users')['me'],_0x26eaed=_0x3c81d6['model'][_0x1af1('0x78')][_0x1af1('0x4d')][_0x1af1('0x6b')](),_0x32bff7=Array[_0x1af1('0x7')](_0x3c81d6[_0x1af1('0x9f')]['document'][_0x1af1('0x4d')][_0x1af1('0x1d')]())[_0x1af1('0x92')](({name:_0x52e93c,data:_0x355f81})=>{const {group:_0x8e6116,subType:_0x54af57,authorId:_0x27e696}=_0x5d8906['_splitMarkerName'](_0x52e93c);return'suggestion'==_0x8e6116&&_0x1af1('0x2')==_0x54af57&&_0x27e696==_0x368dca['id']&&!_0x355f81[_0x1af1('0x67')];});for(const _0x24c8db of _0x26eaed){if(_0x1af1('0x7a')!=_0x24c8db[_0x1af1('0x59')]||'tableCellSuggestion'!=_0x24c8db[_0x1af1('0x38')]||0x1!=_0x24c8db[_0x1af1('0x56')])continue;const _0x589f39=_0x40807c[_0x1af1('0x5e')](_0x24c8db[_0x1af1('0x9d')],_0x24c8db[_0x1af1('0x9d')]['getShiftedBy'](0x1));if(!_0x32bff7[_0x1af1('0x20')](({data:_0x1e096c})=>_0x1e096c[_0x1af1('0x34')][_0x1af1('0x1a')](_0x589f39)))for(const {name:_0x1157e5,data:_0x174c3}of _0x32bff7)if(_0x589f39[_0x1af1('0x89')](_0x174c3[_0x1af1('0x34')])){_0x40807c[_0x1af1('0xa')](_0x1157e5,{'range':_0x589f39}),_0x10ca33=!0x0;break;}}return _0x10ca33;}),_0x3c81d6[_0x1af1('0x9f')][_0x1af1('0x78')][_0x1af1('0xc')](_0xf637f5=>{let _0x56fe8d=!0x1;const _0x1f58ac=_0x3c81d6[_0x1af1('0x88')][_0x1af1('0x16')](_0x1af1('0x3a'))['me'],_0x3904ab=_0x5d8906[_0x1af1('0x4c')]()[_0x1af1('0x92')](_0xb02771=>_0xb02771[_0x1af1('0x8a')]&&_0xb02771['author']==_0x1f58ac),_0xa0a387=new Set(),_0x55baa3=new Set();for(const _0x1e15f3 of _0x3904ab)if(_0x1af1('0x2')==_0x1e15f3[_0x1af1('0x87')])for(const _0xdc1439 of _0x1e15f3[_0x1af1('0x9a')]()){const _0x264929=_0xdc1439['getRange']()[_0x1af1('0x13')]();if(_0x264929){if(_0x264929['is'](_0x1af1('0xe'),_0x1af1('0x30'))&&ce(_0x264929)){_0x1e15f3['removeMarker'](_0xdc1439[_0x1af1('0x38')]),_0xa0a387[_0x1af1('0x40')](_0x264929),_0x56fe8d=!0x0;const _0x32ce2f=_0x264929['nextSibling'],_0x3b6420=_0x264929[_0x1af1('0x2a')],_0x1dcd90=_0x32ce2f&&_0x32ce2f['is']('element',_0x1af1('0x30')),_0x244577=_0x3b6420&&_0x3b6420['is'](_0x1af1('0xe'),_0x1af1('0x30'));_0x1dcd90&&!_0xa0a387[_0x1af1('0x66')](_0x32ce2f)&&_0x55baa3['add'](_0x32ce2f),_0x244577&&!_0xa0a387['has'](_0x3b6420)&&_0x55baa3[_0x1af1('0x40')](_0x3b6420);}else _0x264929['is']('element',_0x1af1('0x84'))&&_0x264929['isEmpty']&&(_0x1e15f3['removeMarker'](_0xdc1439[_0x1af1('0x38')]),_0x56fe8d=!0x0);}}else{if(_0x1af1('0x52')==_0x1e15f3['subType']){if(!_0x1e15f3['attributes']||!_0x1e15f3['attributes']['tablePasteChainId'])continue;const _0x41dd4d=_0x1e15f3['attributes'][_0x1af1('0x9')];if(_0x41dd4d&&Object['keys'](_0x41dd4d)['length'])continue;const _0x54b47b=_0x1e15f3[_0x1af1('0x61')][_0x1af1('0xa1')];let _0x217bb1=!0x0,_0x2aa258=!0x0;for(const _0x122a20 of _0x3904ab)if(_0x122a20[_0x1af1('0x87')]&&_0x122a20[_0x1af1('0x87')][_0x1af1('0x18')](_0x1af1('0x2'))){if(!_0x122a20[_0x1af1('0x61')][_0x1af1('0xa1')]){_0x2aa258=!0x1;break;}if(_0x122a20['id']!=_0x1e15f3['id']&&_0x122a20['attributes'][_0x1af1('0xa1')]==_0x54b47b){_0x217bb1=!0x1;break;}}_0x2aa258&&_0x217bb1&&(_0x1e15f3[_0x1af1('0x64')](),_0x56fe8d=!0x0);}}for(const _0x4fe3a2 of _0xa0a387)_0xf637f5[_0x1af1('0xa3')](_0x4fe3a2);for(const _0xe8c5ac of _0x55baa3)_0xf637f5[_0x1af1('0x7e')](_0xe8c5ac);return _0x56fe8d;}),_0x3c81d6[_0x1af1('0x1e')]['for'](_0x1af1('0x1b'))[_0x1af1('0x31')]({'model':_0x1af1('0xa0'),'view':(_0x31ffb6,_0x60b453)=>_0x2036ab(_0x31ffb6),'converterPriority':'high'}),_0x3c81d6[_0x1af1('0x1e')][_0x1af1('0x46')]('dataDowncast')[_0x1af1('0x31')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5774b0,_0x23d53b)=>_0x23d53b[_0x1af1('0x37')][_0x1af1('0x39')]?_0x2036ab(_0x5774b0,!0x1):null,'converterPriority':'high'});const _0x56ed38=_0x3c81d6[_0x1af1('0x24')][_0x1af1('0x63')];this[_0x1af1('0x91')](_0x56ed38[_0x1af1('0x78')],'clipboardOutput',(_0x34775e,_0x6abac4)=>{const _0x114c54=[];for(const _0x53596e of _0x56ed38[_0x1af1('0x19')](_0x6abac4['content'])['getItems']())_0x53596e['is'](_0x1af1('0xe'),_0x1af1('0x5c'))&&_0x114c54[_0x1af1('0x4')](_0x53596e);_0x56ed38[_0x1af1('0x6d')](_0xc43b83=>{for(const _0xffaf66 of _0x114c54)_0xc43b83[_0x1af1('0x5a')](_0xc43b83[_0x1af1('0x19')](_0xffaf66),_0xc43b83[_0x1af1('0x42')](_0xffaf66)),_0xc43b83[_0x1af1('0xa3')](_0xffaf66);});});}}function ce(_0x5ac00e){if(_0x5ac00e[_0x1af1('0x97')])return!0x0;const _0x51fcb6=_0x5ac00e['getChild'](0x0);return _0x51fcb6['is'](_0x1af1('0xe'),_0x1af1('0x84'))&&_0x51fcb6['isEmpty'];}function fe(_0x47acff,_0xadca00={},_0x3c74b4){for(const {isAnchor:_0x53677f,cellHeight:_0x5d8a26,cellWidth:_0x23c2c7}of _0x3c74b4[_0x1af1('0x57')](_0x47acff,{'includeAllSlots':!0x0,..._0xadca00}))if(!_0x53677f||0x1!=_0x5d8a26||0x1!=_0x23c2c7)return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa717=['registerCustomCallback','format','handleSuggestionDescription','commandParams','resizeTableWidth','get','resizeColumnWidths','discard','locale','selection','has','getTableColumnsWidths','*Format:*\x20resize\x20table','TrackChangesEditing','afterInit','accept','resizeTable','getSelectedElement','TableColumnResizeEditing','formatBlock','_descriptionFactory','getAttribute','registerDescriptionCallback','data','markBlockFormat','handleResizeTableWidthCommand','formatGroupId','model','_suggestionFactory','table','tableWidth','change','getSuggestions','bind','plugins','columnWidths','editor','enableCommand','getSuggestionCallback','Users','getColumnGroupElement'];(function(_0x285c96,_0xa717a1){const _0x16bf12=function(_0x330ab7){while(--_0x330ab7){_0x285c96['push'](_0x285c96['shift']());}};_0x16bf12(++_0xa717a1);}(_0xa717,0x10d));const _0x16bf=function(_0x285c96,_0xa717a1){_0x285c96=_0x285c96-0x0;let _0x16bf12=_0xa717[_0x285c96];return _0x16bf12;};import{Plugin as _0x1d8ef1}from'ckeditor5/src/core';import{getTranslation as _0x2e15d9}from'../utils/common-translations';export default class yt extends _0x1d8ef1{[_0x16bf('0x20')](){if(!this[_0x16bf('0xd')][_0x16bf('0xb')][_0x16bf('0x1c')](_0x16bf('0x24')))return;const _0x22c1f8=this[_0x16bf('0xd')][_0x16bf('0xb')][_0x16bf('0x17')](_0x16bf('0x1f'));_0x22c1f8['enableCommand'](_0x16bf('0x16'),this[_0x16bf('0x2')][_0x16bf('0xa')](this)),_0x22c1f8[_0x16bf('0xe')](_0x16bf('0x18'),this['handleResizeTableWidthCommand'][_0x16bf('0xa')](this)),_0x22c1f8[_0x16bf('0x5')][_0x16bf('0x12')](_0x16bf('0x25'),'resizeTable','accept',_0x22c1f8[_0x16bf('0x5')][_0x16bf('0xf')](_0x16bf('0x25'),null,_0x16bf('0x19'))),_0x22c1f8[_0x16bf('0x5')][_0x16bf('0x12')](_0x16bf('0x25'),'resizeTable','discard',_0x22c1f8[_0x16bf('0x5')][_0x16bf('0xf')](_0x16bf('0x25'),null,_0x16bf('0x21'))),_0x22c1f8[_0x16bf('0x26')][_0x16bf('0x28')](this[_0x16bf('0x14')][_0x16bf('0xa')](this));}['handleResizeTableWidthCommand'](_0x387095,_0x53dc2e){const _0x19e294=this[_0x16bf('0xd')][_0x16bf('0xb')][_0x16bf('0x17')](_0x16bf('0x1f')),_0x4ac5b2=this[_0x16bf('0xd')][_0x16bf('0xb')][_0x16bf('0x17')]('TableColumnResizeEditing'),_0x1b4064=_0x53dc2e[_0x16bf('0x6')]||this['editor'][_0x16bf('0x4')]['document'][_0x16bf('0x1b')][_0x16bf('0x23')]();this[_0x16bf('0xd')][_0x16bf('0x4')][_0x16bf('0x8')](()=>{const _0x16e8a6=_0x4ac5b2[_0x16bf('0x11')](_0x1b4064);let _0x1e4b16=_0x16e8a6?_0x4ac5b2[_0x16bf('0x1d')](_0x16e8a6):null,_0x24a5d3=_0x1b4064[_0x16bf('0x27')](_0x16bf('0x7'))||null;const _0x961f4=_0x53dc2e[_0x16bf('0x7')]||_0x24a5d3,_0x57beea=_0x53dc2e[_0x16bf('0xc')]||_0x1e4b16,_0x53959d=this[_0x16bf('0xd')][_0x16bf('0xb')][_0x16bf('0x17')](_0x16bf('0x10'))['me'];for(const _0x2f99e6 of _0x19e294[_0x16bf('0x9')]()){const _0x18b5f2=_0x2f99e6['getContainedElement']();if(_0x16bf('0x22')===_0x2f99e6['subType']&&_0x18b5f2===_0x1b4064){_0x2f99e6['author']!==_0x53959d&&_0x2f99e6[_0x16bf('0x19')]();const _0xac7365=_0x2f99e6[_0x16bf('0x0')][_0x16bf('0x15')];_0x24a5d3=_0xac7365[0x0][_0x16bf('0x7')],_0x1e4b16=_0xac7365[0x0][_0x16bf('0xc')];break;}}_0x387095({'table':_0x1b4064,'tableWidth':_0x961f4,'columnWidths':_0x57beea}),_0x19e294[_0x16bf('0x1')](_0x1b4064,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x24a5d3,'columnWidths':_0x1e4b16}],'formatGroupId':_0x16bf('0x22')},[],_0x16bf('0x22'));});}[_0x16bf('0x14')](_0x4e6c02){const {data:_0x58a369}=_0x4e6c02;if(_0x58a369&&'resizeTable'===_0x58a369[_0x16bf('0x3')]){const _0x29a2bf=_0x16bf('0x1e');return{'type':_0x16bf('0x13'),'content':_0x2e15d9(this[_0x16bf('0xd')][_0x16bf('0x1a')],_0x29a2bf)};}}}
23
+ const _0x2332=['discard','enableCommand','markBlockFormat','Users','bind','TableColumnResizeEditing','TrackChangesEditing','tableWidth','resizeTableWidth','getSuggestions','resizeColumnWidths','document','registerCustomCallback','editor','handleSuggestionDescription','formatBlock','subType','_suggestionFactory','model','plugins','locale','getContainedElement','accept','getSelectedElement','columnWidths','has','get','change','handleResizeTableWidthCommand','author','data','commandParams','_descriptionFactory','resizeTable','getAttribute','getSuggestionCallback','selection'];(function(_0x1bfffc,_0x233256){const _0x4131c5=function(_0x40fc52){while(--_0x40fc52){_0x1bfffc['push'](_0x1bfffc['shift']());}};_0x4131c5(++_0x233256);}(_0x2332,0xd9));const _0x4131=function(_0x1bfffc,_0x233256){_0x1bfffc=_0x1bfffc-0x0;let _0x4131c5=_0x2332[_0x1bfffc];return _0x4131c5;};import{Plugin as _0x3c3c82}from'ckeditor5/src/core';import{getTranslation as _0xe28c25}from'../utils/common-translations';export default class yt extends _0x3c3c82{['afterInit'](){if(!this[_0x4131('0x12')][_0x4131('0x18')][_0x4131('0x1e')](_0x4131('0xa')))return;const _0x24b836=this['editor'][_0x4131('0x18')][_0x4131('0x1f')](_0x4131('0xb'));_0x24b836['enableCommand'](_0x4131('0xd'),this[_0x4131('0x21')][_0x4131('0x9')](this)),_0x24b836[_0x4131('0x6')](_0x4131('0xf'),this[_0x4131('0x21')]['bind'](this)),_0x24b836['_suggestionFactory'][_0x4131('0x11')](_0x4131('0x14'),'resizeTable','accept',_0x24b836[_0x4131('0x16')][_0x4131('0x3')](_0x4131('0x14'),null,_0x4131('0x5'))),_0x24b836['_suggestionFactory'][_0x4131('0x11')]('formatBlock',_0x4131('0x1'),_0x4131('0x5'),_0x24b836[_0x4131('0x16')][_0x4131('0x3')](_0x4131('0x14'),null,_0x4131('0x1b'))),_0x24b836[_0x4131('0x0')]['registerDescriptionCallback'](this[_0x4131('0x13')]['bind'](this));}['handleResizeTableWidthCommand'](_0x26d0e5,_0x139c7f){const _0x3f4725=this[_0x4131('0x12')]['plugins'][_0x4131('0x1f')]('TrackChangesEditing'),_0x1c8405=this[_0x4131('0x12')][_0x4131('0x18')][_0x4131('0x1f')](_0x4131('0xa')),_0x4a563b=_0x139c7f['table']||this[_0x4131('0x12')][_0x4131('0x17')][_0x4131('0x10')][_0x4131('0x4')][_0x4131('0x1c')]();this[_0x4131('0x12')][_0x4131('0x17')][_0x4131('0x20')](()=>{const _0xbfaa57=_0x1c8405['getColumnGroupElement'](_0x4a563b);let _0x1bdb0b=_0xbfaa57?_0x1c8405['getTableColumnsWidths'](_0xbfaa57):null,_0xf17a76=_0x4a563b[_0x4131('0x2')](_0x4131('0xc'))||null;const _0x4db60d=_0x139c7f[_0x4131('0xc')]||_0xf17a76,_0x3b31a6=_0x139c7f[_0x4131('0x1d')]||_0x1bdb0b,_0x2e7e92=this[_0x4131('0x12')][_0x4131('0x18')][_0x4131('0x1f')](_0x4131('0x8'))['me'];for(const _0x39a173 of _0x3f4725[_0x4131('0xe')]()){const _0x1f3153=_0x39a173[_0x4131('0x1a')]();if('resizeTable'===_0x39a173[_0x4131('0x15')]&&_0x1f3153===_0x4a563b){_0x39a173[_0x4131('0x22')]!==_0x2e7e92&&_0x39a173[_0x4131('0x5')]();const _0x50f256=_0x39a173[_0x4131('0x23')][_0x4131('0x24')];_0xf17a76=_0x50f256[0x0][_0x4131('0xc')],_0x1bdb0b=_0x50f256[0x0][_0x4131('0x1d')];break;}}_0x26d0e5({'table':_0x4a563b,'tableWidth':_0x4db60d,'columnWidths':_0x3b31a6}),_0x3f4725[_0x4131('0x7')](_0x4a563b,{'commandName':_0x4131('0xd'),'commandParams':[{'tableWidth':_0xf17a76,'columnWidths':_0x1bdb0b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}[_0x4131('0x13')](_0x596fa1){const {data:_0x3bdd1c}=_0x596fa1;if(_0x3bdd1c&&_0x4131('0x1')===_0x3bdd1c['formatGroupId']){const _0x16737b='*Format:*\x20resize\x20table';return{'type':'format','content':_0xe28c25(this[_0x4131('0x12')][_0x4131('0x19')],_0x16737b)};}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe822=['forceValue','findAncestor','consume','TableUtils','getSuggestion','addMarker:suggestion','enableCommand','_acceptFormatSuggestionCallbackFactory','stop','change','includes','ck-suggestion-marker--active','headingRows','accept','editing','createRange','addClass','document','_splitMarkerName','mapper','getCellLocation','FORMAT_HEADER_COLUMN','FORMAT_HEADER_ROW','selection','value','*Format:*\x20%0','cell','removeMarker:suggestion','ck-suggestion-marker-','setTableColumnHeader','TrackChangesEditing','options','createPositionAfter','end','_suggestionFactory','model','index','markerNameToElements','_descriptionFactory','FORMAT_REGULAR_ROW','afterInit','highest','getChild','removeClass','getAttribute','plugins','commandName','registerCustomCallback','getRowIndexes','parent','FORMAT_REGULAR_COLUMN','getSelectionAffectedTableCells','name','from','format','activeMarkers','item','markerRange','commandParams','markBlockFormat','formatBlock','getColumnIndexes','setTableRowHeader','toViewElement','registerDescriptionCallback','unbindElementFromMarkerName','headingColumns','downcastDispatcher','createTableWalker','data-suggestion','removeAttribute','nodeBefore','consumable','start','markerName','createPositionBefore','nodeAfter','writer','get','editor','data','commands'];(function(_0x2635e9,_0xe8221a){const _0x2cc73a=function(_0x397cd6){while(--_0x397cd6){_0x2635e9['push'](_0x2635e9['shift']());}};_0x2cc73a(++_0xe8221a);}(_0xe822,0x104));const _0x2cc7=function(_0x2635e9,_0xe8221a){_0x2635e9=_0x2635e9-0x0;let _0x2cc73a=_0xe822[_0x2635e9];return _0x2cc73a;};import{Plugin as _0x539ccb}from'ckeditor5/src/core';import _0x101b6e from'./table';import{getTranslation as _0x586ca8}from'../utils/common-translations';export default class kt extends _0x539ccb{static get['requires'](){return[_0x101b6e];}[_0x2cc7('0x1a')](){const _0x5a6fc5=this[_0x2cc7('0x41')];if(!_0x5a6fc5['plugins']['has']('TableEditing'))return;const _0x33f95c=_0x5a6fc5['locale'],_0x581ba7=_0x5a6fc5[_0x2cc7('0x1f')][_0x2cc7('0x40')](_0x2cc7('0x10')),_0xd1dbdd=_0x5a6fc5['plugins'][_0x2cc7('0x40')](_0x2cc7('0x47')),_0x268c15=_0x5a6fc5['plugins'][_0x2cc7('0x40')](_0x101b6e);function _0x266653({showActiveMarker:_0x118376=!0x0,setDataAttribute:_0x22230d=!0x0}={}){return(_0x5cb8ce,_0x418ac5,_0x5460cf)=>{const {type:_0x121453,id:_0x4907f6}=_0x581ba7[_0x2cc7('0x4')](_0x418ac5['markerName']),_0x5e36f6=_0x581ba7[_0x2cc7('0x48')](_0x4907f6);if(!_0x5e36f6[_0x2cc7('0x42')]||'setTableColumnHeader'!=_0x5e36f6[_0x2cc7('0x42')][_0x2cc7('0x20')])return;if(_0x418ac5[_0x2cc7('0x2a')])return void _0x5cb8ce[_0x2cc7('0x4c')]();if(!_0x5460cf[_0x2cc7('0x3a')][_0x2cc7('0x46')](_0x418ac5[_0x2cc7('0x2b')],_0x5cb8ce[_0x2cc7('0x26')]))return;const _0x10629d=_0x418ac5[_0x2cc7('0x2b')][_0x2cc7('0x3b')][_0x2cc7('0x3e')],_0x4f6991=_0x418ac5[_0x2cc7('0x2b')][_0x2cc7('0x13')][_0x2cc7('0x39')],_0x1a0257=_0x10629d['parent'][_0x2cc7('0x23')],{column:_0x562f7e}=_0xd1dbdd[_0x2cc7('0x6')](_0x10629d),{column:_0x2807c6}=_0xd1dbdd[_0x2cc7('0x6')](_0x4f6991);for(let _0x56084b=_0x562f7e;_0x56084b<=_0x2807c6;_0x56084b++){const _0xc96c31=_0xd1dbdd['createTableWalker'](_0x1a0257,{'column':_0x56084b,'includeAllSlots':!0x1});for(const _0x4a6322 of _0xc96c31){const _0x32e92a=_0x4a6322[_0x2cc7('0xc')],_0x3336cd=_0x5460cf['mapper'][_0x2cc7('0x31')](_0x32e92a);_0x5460cf[_0x2cc7('0x3f')]['addClass'](_0x2cc7('0xe')+_0x121453,_0x3336cd),_0x22230d&&_0x5460cf['writer']['setAttribute']('data-suggestion',_0x4907f6,_0x3336cd),_0x5460cf[_0x2cc7('0x5')]['bindElementToMarker'](_0x3336cd,_0x418ac5['markerName']),_0x118376&&(_0x581ba7[_0x2cc7('0x29')][_0x2cc7('0x4e')](_0x418ac5[_0x2cc7('0x3c')])?_0x5460cf[_0x2cc7('0x3f')][_0x2cc7('0x2')]('ck-suggestion-marker--active',_0x3336cd):_0x5460cf[_0x2cc7('0x3f')][_0x2cc7('0x1d')](_0x2cc7('0x4f'),_0x3336cd));}}};}_0x581ba7[_0x2cc7('0x4a')]('setTableRowHeader',(_0x5d2d54,_0x4c8dec)=>{const _0x799a82=_0xd1dbdd[_0x2cc7('0x25')](_0x5a6fc5['model']['document']['selection']),_0x526f04=_0xd1dbdd[_0x2cc7('0x22')](_0x799a82),_0xe8057f=_0x799a82[0x0][_0x2cc7('0x45')]('table'),_0x201d51=_0xe8057f['getAttribute'](_0x2cc7('0x50'))||0x0,_0x286405=_0x4c8dec&&null!==_0x4c8dec[_0x2cc7('0x44')]?_0x4c8dec[_0x2cc7('0x44')]:!_0x5a6fc5[_0x2cc7('0x43')][_0x2cc7('0x40')](_0x2cc7('0x30'))[_0x2cc7('0xa')],_0x20179d=_0x286405?_0x526f04['last']:_0x526f04['first'],_0x2e6a50=_0xe8057f[_0x2cc7('0x1c')](_0x20179d);let _0x465ed1;if(_0x286405){const _0x379667=_0xe8057f[_0x2cc7('0x1c')](_0x201d51);if(_0x2e6a50[_0x2cc7('0x16')]<_0x379667[_0x2cc7('0x16')])return;_0x465ed1=_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x1')](_0x5a6fc5['model']['createPositionBefore'](_0x379667[_0x2cc7('0x1c')](0x0)),_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x12')](_0x2e6a50[_0x2cc7('0x1c')](_0x2e6a50['childCount']-0x1)));}else{const _0xd9bcbd=_0xe8057f[_0x2cc7('0x1c')](_0x201d51-0x1);if(!_0xd9bcbd)return;_0x465ed1=_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x1')](_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x3d')](_0x2e6a50[_0x2cc7('0x1c')](0x0)),_0x5a6fc5['model'][_0x2cc7('0x12')](_0xd9bcbd['getChild'](_0xd9bcbd['childCount']-0x1)));}_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x4d')](()=>{_0x581ba7['markBlockFormat'](_0x465ed1,{'commandName':_0x2cc7('0x30'),'commandParams':[{'forceValue':_0x286405}]},[],'setTableRowHeader');});}),_0x581ba7[_0x2cc7('0x4a')](_0x2cc7('0xf'),(_0x875bbc,_0x4c7a7c)=>{const _0x4899cf=_0x5a6fc5[_0x2cc7('0x1f')][_0x2cc7('0x40')](_0x2cc7('0x47')),_0x209ec1=_0x4899cf['getSelectionAffectedTableCells'](_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x3')][_0x2cc7('0x9')]),_0x4f93b0=_0x4899cf[_0x2cc7('0x2f')](_0x209ec1),_0x486c36=_0x209ec1[0x0][_0x2cc7('0x45')]('table'),_0x9f7a6=_0x486c36[_0x2cc7('0x1e')](_0x2cc7('0x34'))||0x0,_0x297936=_0x4c7a7c&&null!==_0x4c7a7c[_0x2cc7('0x44')]?_0x4c7a7c['forceValue']:!_0x5a6fc5[_0x2cc7('0x43')]['get']('setTableColumnHeader')[_0x2cc7('0xa')];let _0x57e894;const _0x2171aa=_0x486c36['getChild'](0x0),_0x4adb68=_0x297936?_0x4f93b0['last']:_0x4f93b0['first'],_0xacd3f4=_0x4899cf[_0x2cc7('0x36')](_0x486c36,{'startRow':0x0,'column':_0x4adb68,'includeAllSlots':!0x1}),_0x4fff62=Array[_0x2cc7('0x27')](_0xacd3f4)[0x0]['cell'];if(_0x297936){const _0x3940ea=_0x2171aa[_0x2cc7('0x1c')](_0x9f7a6);if(_0x4fff62['isBefore'](_0x3940ea))return;_0x57e894=_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x1')](_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x3d')](_0x3940ea),_0x5a6fc5['model'][_0x2cc7('0x12')](_0x4fff62));}else{const _0x3e4ca4=_0x2171aa[_0x2cc7('0x1c')](_0x9f7a6-0x1);if(!_0x3e4ca4)return;_0x57e894=_0x5a6fc5[_0x2cc7('0x15')]['createRange'](_0x5a6fc5['model'][_0x2cc7('0x3d')](_0x4fff62),_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x12')](_0x3e4ca4));}_0x5a6fc5[_0x2cc7('0x15')]['change'](()=>{_0x581ba7[_0x2cc7('0x2d')](_0x57e894,{'commandName':_0x2cc7('0xf'),'commandParams':[{'forceValue':_0x297936}]},[],'setTableColumnHeader');});}),_0x5a6fc5[_0x2cc7('0x0')][_0x2cc7('0x35')]['on'](_0x2cc7('0x49'),_0x266653(),{'priority':_0x2cc7('0x1b')}),_0x5a6fc5[_0x2cc7('0x42')]['downcastDispatcher']['on'](_0x2cc7('0x49'),(_0x5ef988,_0x555014,_0x53b9ee)=>{_0x53b9ee[_0x2cc7('0x11')]['showSuggestionHighlights']&&_0x266653({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5ef988,_0x555014,_0x53b9ee);},{'priority':'highest'}),_0x5a6fc5[_0x2cc7('0x0')][_0x2cc7('0x35')]['on'](_0x2cc7('0xd'),(_0xaa4358,_0x4a9ffe,_0x172c1c)=>{const {type:_0x45354c,id:_0x3fc5aa}=_0x581ba7[_0x2cc7('0x4')](_0x4a9ffe['markerName']),_0x42e207=_0x581ba7['getSuggestion'](_0x3fc5aa);if(!_0x42e207['data']||_0x2cc7('0xf')!=_0x42e207[_0x2cc7('0x42')][_0x2cc7('0x20')])return;const _0x1c44ad=_0x172c1c['mapper'][_0x2cc7('0x17')](_0x4a9ffe[_0x2cc7('0x3c')]);if(_0x1c44ad)for(const _0x175ac2 of _0x1c44ad)_0x172c1c[_0x2cc7('0x3f')][_0x2cc7('0x1d')](_0x2cc7('0xe')+_0x45354c,_0x175ac2),_0x172c1c[_0x2cc7('0x3f')][_0x2cc7('0x1d')](_0x2cc7('0x4f'),_0x175ac2),_0x172c1c[_0x2cc7('0x3f')][_0x2cc7('0x38')](_0x2cc7('0x37'),_0x175ac2),_0x172c1c[_0x2cc7('0x5')][_0x2cc7('0x33')](_0x175ac2,_0x4a9ffe['markerName']);},{'priority':_0x2cc7('0x1b')}),_0x581ba7[_0x2cc7('0x18')][_0x2cc7('0x32')](_0x466c90=>{const {data:_0x118902}=_0x466c90;if(_0x118902){if('setTableRowHeader'==_0x118902['commandName']){const _0xbf718e=_0x118902[_0x2cc7('0x2c')][0x0][_0x2cc7('0x44')];return _0x1f4e5e(_0x586ca8(_0x33f95c,_0xbf718e?_0x2cc7('0x8'):_0x2cc7('0x19')));}if('setTableColumnHeader'==_0x118902[_0x2cc7('0x20')]){const _0x5e7254=_0x118902[_0x2cc7('0x2c')][0x0]['forceValue'];return _0x1f4e5e(_0x586ca8(_0x33f95c,_0x5e7254?_0x2cc7('0x7'):_0x2cc7('0x24')));}}function _0x1f4e5e(_0x4864cb){return{'type':_0x2cc7('0x28'),'content':_0x586ca8(_0x33f95c,_0x2cc7('0xb'),_0x4864cb)};}});const _0xfadaf8=_0x268c15[_0x2cc7('0x4b')]();_0x581ba7[_0x2cc7('0x14')][_0x2cc7('0x21')](_0x2cc7('0x2e'),_0x2cc7('0x30'),'accept',_0xfadaf8),_0x581ba7['_suggestionFactory']['registerCustomCallback'](_0x2cc7('0x2e'),_0x2cc7('0xf'),_0x2cc7('0x51'),_0xfadaf8);}}
23
+ const _0x4d4d=['forceValue','TrackChangesEditing','TableUtils','addMarker:suggestion','has','plugins','createTableWalker','cell','value','addClass','item','first','markerNameToElements','markBlockFormat','activeMarkers','markerRange','change','createPositionAfter','parent','requires','document','FORMAT_HEADER_ROW','nodeAfter','toViewElement','from','registerDescriptionCallback','FORMAT_HEADER_COLUMN','getChild','registerCustomCallback','locale','commandParams','headingRows','getAttribute','formatBlock','nodeBefore','options','isBefore','createRange','ck-suggestion-marker-','_acceptFormatSuggestionCallbackFactory','bindElementToMarker','ck-suggestion-marker--active','showSuggestionHighlights','includes','unbindElementFromMarkerName','start','table','highest','_suggestionFactory','index','getSuggestion','mapper','consume','setTableColumnHeader','last','FORMAT_REGULAR_ROW','afterInit','enableCommand','removeAttribute','getColumnIndexes','childCount','editing','_splitMarkerName','get','FORMAT_REGULAR_COLUMN','setTableRowHeader','name','removeClass','accept','selection','createPositionBefore','TableEditing','commands','*Format:*\x20%0','getRowIndexes','end','data-suggestion','markerName','model','getCellLocation','data','commandName','downcastDispatcher','writer','setAttribute'];(function(_0x42bb44,_0x4d4d99){const _0x342f3e=function(_0x530505){while(--_0x530505){_0x42bb44['push'](_0x42bb44['shift']());}};_0x342f3e(++_0x4d4d99);}(_0x4d4d,0x75));const _0x342f=function(_0x42bb44,_0x4d4d99){_0x42bb44=_0x42bb44-0x0;let _0x342f3e=_0x4d4d[_0x42bb44];return _0x342f3e;};import{Plugin as _0xfa43ca}from'ckeditor5/src/core';import _0x502dcd from'./table';import{getTranslation as _0x5e84d0}from'../utils/common-translations';export default class kt extends _0xfa43ca{static get[_0x342f('0x48')](){return[_0x502dcd];}[_0x342f('0x18')](){const _0x11914a=this['editor'];if(!_0x11914a[_0x342f('0x3a')][_0x342f('0x39')](_0x342f('0x27')))return;const _0x281043=_0x11914a[_0x342f('0x52')],_0x51ca67=_0x11914a['plugins'][_0x342f('0x1f')](_0x342f('0x36')),_0x1bc6c0=_0x11914a[_0x342f('0x3a')][_0x342f('0x1f')]('TableUtils'),_0x2ba12d=_0x11914a[_0x342f('0x3a')][_0x342f('0x1f')](_0x502dcd);function _0x2e0912({showActiveMarker:_0x1f650f=!0x0,setDataAttribute:_0x1ae9f5=!0x0}={}){return(_0x1eea87,_0x3184bb,_0x3eff0f)=>{const {type:_0x3e55cc,id:_0x524700}=_0x51ca67[_0x342f('0x1e')](_0x3184bb[_0x342f('0x2d')]),_0x17dbb2=_0x51ca67[_0x342f('0x12')](_0x524700);if(!_0x17dbb2[_0x342f('0x30')]||_0x342f('0x15')!=_0x17dbb2[_0x342f('0x30')][_0x342f('0x31')])return;if(_0x3184bb[_0x342f('0x3f')])return void _0x1eea87['stop']();if(!_0x3eff0f['consumable'][_0x342f('0x14')](_0x3184bb['markerRange'],_0x1eea87[_0x342f('0x22')]))return;const _0x4bbda8=_0x3184bb['markerRange'][_0x342f('0xd')][_0x342f('0x4b')],_0x42a520=_0x3184bb[_0x342f('0x44')][_0x342f('0x2b')][_0x342f('0x2')],_0x138b43=_0x4bbda8[_0x342f('0x47')][_0x342f('0x47')],{column:_0xa7ac0}=_0x1bc6c0[_0x342f('0x2f')](_0x4bbda8),{column:_0x3d55c6}=_0x1bc6c0[_0x342f('0x2f')](_0x42a520);for(let _0x22bf49=_0xa7ac0;_0x22bf49<=_0x3d55c6;_0x22bf49++){const _0xc0b925=_0x1bc6c0[_0x342f('0x3b')](_0x138b43,{'column':_0x22bf49,'includeAllSlots':!0x1});for(const _0x4f11fe of _0xc0b925){const _0xc6ecba=_0x4f11fe[_0x342f('0x3c')],_0x20710c=_0x3eff0f[_0x342f('0x13')][_0x342f('0x4c')](_0xc6ecba);_0x3eff0f[_0x342f('0x33')][_0x342f('0x3e')]('ck-suggestion-marker-'+_0x3e55cc,_0x20710c),_0x1ae9f5&&_0x3eff0f['writer'][_0x342f('0x34')](_0x342f('0x2c'),_0x524700,_0x20710c),_0x3eff0f[_0x342f('0x13')][_0x342f('0x8')](_0x20710c,_0x3184bb[_0x342f('0x2d')]),_0x1f650f&&(_0x51ca67[_0x342f('0x43')][_0x342f('0xb')](_0x3184bb[_0x342f('0x2d')])?_0x3eff0f[_0x342f('0x33')][_0x342f('0x3e')](_0x342f('0x9'),_0x20710c):_0x3eff0f[_0x342f('0x33')][_0x342f('0x23')](_0x342f('0x9'),_0x20710c));}}};}_0x51ca67[_0x342f('0x19')]('setTableRowHeader',(_0x27ffd3,_0x5272a5)=>{const _0x33d13d=_0x1bc6c0['getSelectionAffectedTableCells'](_0x11914a['model'][_0x342f('0x49')][_0x342f('0x25')]),_0x4e0270=_0x1bc6c0[_0x342f('0x2a')](_0x33d13d),_0x535c79=_0x33d13d[0x0]['findAncestor'](_0x342f('0xe')),_0x238f6d=_0x535c79[_0x342f('0x0')](_0x342f('0x54'))||0x0,_0x39ced0=_0x5272a5&&null!==_0x5272a5[_0x342f('0x35')]?_0x5272a5[_0x342f('0x35')]:!_0x11914a[_0x342f('0x28')][_0x342f('0x1f')](_0x342f('0x21'))['value'],_0x55206e=_0x39ced0?_0x4e0270[_0x342f('0x16')]:_0x4e0270[_0x342f('0x40')],_0x3c3dd5=_0x535c79[_0x342f('0x50')](_0x55206e);let _0x9f3be7;if(_0x39ced0){const _0x2da4ef=_0x535c79[_0x342f('0x50')](_0x238f6d);if(_0x3c3dd5[_0x342f('0x11')]<_0x2da4ef[_0x342f('0x11')])return;_0x9f3be7=_0x11914a[_0x342f('0x2e')][_0x342f('0x5')](_0x11914a['model'][_0x342f('0x26')](_0x2da4ef['getChild'](0x0)),_0x11914a[_0x342f('0x2e')][_0x342f('0x46')](_0x3c3dd5[_0x342f('0x50')](_0x3c3dd5[_0x342f('0x1c')]-0x1)));}else{const _0x1c8a02=_0x535c79[_0x342f('0x50')](_0x238f6d-0x1);if(!_0x1c8a02)return;_0x9f3be7=_0x11914a[_0x342f('0x2e')]['createRange'](_0x11914a[_0x342f('0x2e')][_0x342f('0x26')](_0x3c3dd5[_0x342f('0x50')](0x0)),_0x11914a['model'][_0x342f('0x46')](_0x1c8a02[_0x342f('0x50')](_0x1c8a02['childCount']-0x1)));}_0x11914a['model'][_0x342f('0x45')](()=>{_0x51ca67[_0x342f('0x42')](_0x9f3be7,{'commandName':_0x342f('0x21'),'commandParams':[{'forceValue':_0x39ced0}]},[],'setTableRowHeader');});}),_0x51ca67[_0x342f('0x19')](_0x342f('0x15'),(_0x57f20f,_0x78f2b0)=>{const _0x4ce541=_0x11914a[_0x342f('0x3a')][_0x342f('0x1f')](_0x342f('0x37')),_0x6fb854=_0x4ce541['getSelectionAffectedTableCells'](_0x11914a[_0x342f('0x2e')][_0x342f('0x49')][_0x342f('0x25')]),_0x5d7ddb=_0x4ce541[_0x342f('0x1b')](_0x6fb854),_0x3406ee=_0x6fb854[0x0]['findAncestor'](_0x342f('0xe')),_0x57fc67=_0x3406ee[_0x342f('0x0')]('headingColumns')||0x0,_0x7b8b24=_0x78f2b0&&null!==_0x78f2b0[_0x342f('0x35')]?_0x78f2b0[_0x342f('0x35')]:!_0x11914a[_0x342f('0x28')]['get']('setTableColumnHeader')[_0x342f('0x3d')];let _0x177c1d;const _0x1f5d12=_0x3406ee[_0x342f('0x50')](0x0),_0x510aea=_0x7b8b24?_0x5d7ddb[_0x342f('0x16')]:_0x5d7ddb[_0x342f('0x40')],_0x1a11ed=_0x4ce541[_0x342f('0x3b')](_0x3406ee,{'startRow':0x0,'column':_0x510aea,'includeAllSlots':!0x1}),_0x464088=Array[_0x342f('0x4d')](_0x1a11ed)[0x0]['cell'];if(_0x7b8b24){const _0x5f59b7=_0x1f5d12[_0x342f('0x50')](_0x57fc67);if(_0x464088[_0x342f('0x4')](_0x5f59b7))return;_0x177c1d=_0x11914a[_0x342f('0x2e')][_0x342f('0x5')](_0x11914a['model'][_0x342f('0x26')](_0x5f59b7),_0x11914a[_0x342f('0x2e')][_0x342f('0x46')](_0x464088));}else{const _0x4e9e3a=_0x1f5d12['getChild'](_0x57fc67-0x1);if(!_0x4e9e3a)return;_0x177c1d=_0x11914a[_0x342f('0x2e')][_0x342f('0x5')](_0x11914a[_0x342f('0x2e')][_0x342f('0x26')](_0x464088),_0x11914a[_0x342f('0x2e')][_0x342f('0x46')](_0x4e9e3a));}_0x11914a[_0x342f('0x2e')]['change'](()=>{_0x51ca67['markBlockFormat'](_0x177c1d,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0x7b8b24}]},[],'setTableColumnHeader');});}),_0x11914a[_0x342f('0x1d')][_0x342f('0x32')]['on']('addMarker:suggestion',_0x2e0912(),{'priority':_0x342f('0xf')}),_0x11914a[_0x342f('0x30')][_0x342f('0x32')]['on'](_0x342f('0x38'),(_0x4350aa,_0x113e3c,_0x36a757)=>{_0x36a757[_0x342f('0x3')][_0x342f('0xa')]&&_0x2e0912({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4350aa,_0x113e3c,_0x36a757);},{'priority':_0x342f('0xf')}),_0x11914a['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2937c7,_0x347b34,_0x19ed33)=>{const {type:_0x4c3d4e,id:_0x410dbd}=_0x51ca67[_0x342f('0x1e')](_0x347b34['markerName']),_0x3693a5=_0x51ca67[_0x342f('0x12')](_0x410dbd);if(!_0x3693a5[_0x342f('0x30')]||_0x342f('0x15')!=_0x3693a5[_0x342f('0x30')][_0x342f('0x31')])return;const _0xc69523=_0x19ed33[_0x342f('0x13')][_0x342f('0x41')](_0x347b34[_0x342f('0x2d')]);if(_0xc69523)for(const _0x1b782a of _0xc69523)_0x19ed33[_0x342f('0x33')][_0x342f('0x23')](_0x342f('0x6')+_0x4c3d4e,_0x1b782a),_0x19ed33[_0x342f('0x33')][_0x342f('0x23')](_0x342f('0x9'),_0x1b782a),_0x19ed33[_0x342f('0x33')][_0x342f('0x1a')](_0x342f('0x2c'),_0x1b782a),_0x19ed33[_0x342f('0x13')][_0x342f('0xc')](_0x1b782a,_0x347b34[_0x342f('0x2d')]);},{'priority':_0x342f('0xf')}),_0x51ca67['_descriptionFactory'][_0x342f('0x4e')](_0x1a4742=>{const {data:_0x522b5e}=_0x1a4742;if(_0x522b5e){if('setTableRowHeader'==_0x522b5e[_0x342f('0x31')]){const _0x37267e=_0x522b5e[_0x342f('0x53')][0x0]['forceValue'];return _0x17c8a7(_0x5e84d0(_0x281043,_0x37267e?_0x342f('0x4a'):_0x342f('0x17')));}if(_0x342f('0x15')==_0x522b5e[_0x342f('0x31')]){const _0x18e825=_0x522b5e[_0x342f('0x53')][0x0][_0x342f('0x35')];return _0x17c8a7(_0x5e84d0(_0x281043,_0x18e825?_0x342f('0x4f'):_0x342f('0x20')));}}function _0x17c8a7(_0xe4def2){return{'type':'format','content':_0x5e84d0(_0x281043,_0x342f('0x29'),_0xe4def2)};}});const _0x40c9d6=_0x2ba12d[_0x342f('0x7')]();_0x51ca67[_0x342f('0x10')]['registerCustomCallback'](_0x342f('0x1'),_0x342f('0x21'),'accept',_0x40c9d6),_0x51ca67[_0x342f('0x10')][_0x342f('0x51')](_0x342f('0x1'),_0x342f('0x15'),_0x342f('0x24'),_0x40c9d6);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f63=['type','push','_areMergableCells','TrackChangesEditing','tableCell','editor','createRangeOn','subType','findAncestor','getFirstPosition','rootName','containsRange','forceDefaultExecution','fromRange','selection','highest','horizontally','getRanges','afterInit','*Split\x20cell:*\x20vertically','createTableWalker','model','accept','mergeTableCellUp','root','change','cell','_suggestionFactory','markMultiRangeBlockFormat','author','plugins','size','direction','element','splitTableCellVertically','set:isEnabled','*Split\x20cell:*\x20horizontally','add','insertion','isInContent','refresh','deletion','detach','format','stop','_tablePostFixingSubtypes','registerCustomCallback','mergeTableCellLeft','TableEditing','requires','execute','enableCommand','return','TableUtils','has','document','getAncestors','mergeTableCellRight','isEnabled','markBlockFormat','value','mergeTableCells','length','registerDescriptionCallback','map','splitTableCellHorizontally','mergeTableCellDown','formatBlock','$graveyard','_acceptFormatSuggestionCallbackFactory','_areSelectedCellsMergable','commands','*Merge\x20cells*','commandName','from','_descriptionFactory','getSelectionAffectedTableCells','get'];(function(_0x1174b6,_0x4f6324){const _0x287e31=function(_0x49de4d){while(--_0x49de4d){_0x1174b6['push'](_0x1174b6['shift']());}};_0x287e31(++_0x4f6324);}(_0x4f63,0xad));const _0x287e=function(_0x1174b6,_0x4f6324){_0x1174b6=_0x1174b6-0x0;let _0x287e31=_0x4f63[_0x1174b6];return _0x287e31;};import{Plugin as _0x37d910}from'ckeditor5/src/core';import _0x549b01 from'./table';import{LiveRange as _0x1c885f}from'ckeditor5/src/engine';import{getTranslation as _0x1f7d08}from'../utils/common-translations';export default class pt extends _0x37d910{static get[_0x287e('0x20')](){return[_0x549b01];}[_0x287e('0x1')](){const _0xeb7e82=this[_0x287e('0x42')],_0x14b379=_0xeb7e82[_0x287e('0x4')][_0x287e('0x26')]['selection'],_0x24a4d7=_0xeb7e82['locale'];if(!_0xeb7e82[_0x287e('0xd')][_0x287e('0x25')](_0x287e('0x1f')))return;const _0x2a371b=_0xeb7e82['plugins'][_0x287e('0x3c')](_0x287e('0x40')),_0x6e8759=_0xeb7e82['plugins'][_0x287e('0x3c')](_0x287e('0x24')),_0x4a6a18=_0xeb7e82[_0x287e('0xd')][_0x287e('0x3c')](_0x549b01);_0x4a6a18[_0x287e('0x1c')][_0x287e('0x3e')]('mergeTableCells'),_0x2a371b[_0x287e('0x22')](_0x287e('0x2c'),()=>{const _0x5997a7=_0x6e8759['getSelectionAffectedTableCells'](_0xeb7e82['model'][_0x287e('0x26')]['selection']);_0xeb7e82[_0x287e('0x4')][_0x287e('0x8')](()=>{_0x2a371b[_0x287e('0xb')](_0x5997a7,{'commandName':_0x287e('0x2c'),'commandParams':[]},[],_0x287e('0x2c'));});}),_0xeb7e82[_0x287e('0x36')][_0x287e('0x3c')](_0x287e('0x2c'))['on']('execute',(_0x2b510e,_0x36b628)=>{_0xeb7e82['commands']['get']('trackChanges')[_0x287e('0x2b')]&&(_0x36b628['length']>0x0&&_0x36b628[_0x36b628[_0x287e('0x2d')]-0x1]&&_0x36b628[_0x36b628[_0x287e('0x2d')]-0x1][_0x287e('0x49')]||_0x2a371b['_isForcedDefaultExecutionBlock']||this[_0x287e('0x35')]()||_0x2b510e[_0x287e('0x1b')]());},{'priority':_0x287e('0x4c')});for(const _0x541afd of['mergeTableCellUp',_0x287e('0x28'),_0x287e('0x31'),_0x287e('0x1e')]){const _0x30bbca=_0xeb7e82[_0x287e('0x36')][_0x287e('0x3c')](_0x541afd);_0x2a371b[_0x287e('0x22')](_0x541afd,()=>{const _0x47302e=_0xeb7e82['model']['document'][_0x287e('0x4b')][_0x287e('0x46')]()[_0x287e('0x27')]()['find'](_0x25d0d4=>_0x25d0d4['is'](_0x287e('0x10'),_0x287e('0x41'))),_0x2bddc4=_0x30bbca[_0x287e('0x2b')];_0xeb7e82[_0x287e('0x4')]['change'](()=>{_0x2a371b[_0x287e('0xb')]([_0x47302e,_0x2bddc4],{'commandName':_0x287e('0x2c'),'commandParams':[]},[],_0x287e('0x2c'));});});}for(const _0x572fa3 of['splitTableCellVertically',_0x287e('0x30')]){const _0x524b9d=_0xeb7e82[_0x287e('0x36')][_0x287e('0x3c')](_0x572fa3);_0x2a371b[_0x287e('0x22')](_0x572fa3,()=>{const _0x1b417f=_0x6e8759[_0x287e('0x3b')](_0xeb7e82[_0x287e('0x4')][_0x287e('0x26')]['selection'])[0x0],_0x3c42d9=_0x1b417f[_0x287e('0x45')]('table'),{column:_0x30daef,row:_0x4da2fe}=_0x6e8759['getCellLocation'](_0x1b417f);let _0x4b5059=[];if(_0x287e('0x4d')==_0x524b9d[_0x287e('0xf')]){const _0x12a96b=_0x6e8759[_0x287e('0x3')](_0x3c42d9,{'startRow':_0x4da2fe,'endRow':_0x4da2fe,'includeAllSlots':!0x0});_0x4b5059=Array[_0x287e('0x39')](_0x12a96b)['map'](_0xf898cf=>_0xf898cf['cell']);}else{const _0x4ce764=_0x6e8759[_0x287e('0x3')](_0x3c42d9,{'column':_0x30daef,'includeAllSlots':!0x0});_0x4b5059=Array['from'](_0x4ce764)['map'](_0x1692e2=>_0x1692e2[_0x287e('0x9')]);}_0xeb7e82['model']['change'](_0x599631=>{_0x2a371b[_0x287e('0x2a')](_0x599631[_0x287e('0x43')](_0x1b417f),{'commandName':_0x572fa3,'commandParams':[]},_0x4b5059,_0x572fa3);});});}_0x2a371b[_0x287e('0x3a')][_0x287e('0x2e')](_0x32bc1d=>{const {data:_0x322bf8}=_0x32bc1d;if(_0x322bf8)return _0x287e('0x2c')==_0x322bf8['commandName']?{'type':_0x287e('0x1a'),'content':_0x1f7d08(_0x24a4d7,_0x287e('0x37'))}:void 0x0;}),_0x2a371b['_descriptionFactory'][_0x287e('0x2e')](_0x5a7ebf=>{const {data:_0x1a3949}=_0x5a7ebf;if(_0x1a3949)return'splitTableCellVertically'==_0x1a3949['commandName']?{'type':_0x287e('0x1a'),'content':_0x1f7d08(_0x24a4d7,_0x287e('0x2'))}:'splitTableCellHorizontally'==_0x1a3949[_0x287e('0x38')]?{'type':_0x287e('0x1a'),'content':_0x1f7d08(_0x24a4d7,_0x287e('0x13'))}:void 0x0;});const _0x2d1046=_0x4a6a18[_0x287e('0x34')]();for(const _0x325d74 of[_0x287e('0x6'),'mergeTableCellRight',_0x287e('0x31'),_0x287e('0x1e')])_0x2a371b['_suggestionFactory'][_0x287e('0x1d')](_0x287e('0x32'),_0x325d74,'accept',_0x2d1046);for(const _0x4d6c98 of[_0x287e('0x11'),_0x287e('0x30')])_0x2a371b[_0x287e('0xa')]['registerCustomCallback'](_0x287e('0x32'),_0x4d6c98,_0x287e('0x5'),_0x2d1046);_0x2a371b[_0x287e('0xa')][_0x287e('0x1d')](_0x287e('0x32'),_0x287e('0x2c'),'accept',_0x2c7d37=>{_0xeb7e82['model'][_0x287e('0x8')](_0x36ec98=>{const _0x29395b=Array[_0x287e('0x39')](_0x14b379[_0x287e('0x0')]())[_0x287e('0x2f')](_0x57abc5=>_0x1c885f[_0x287e('0x4a')](_0x57abc5));_0x36ec98['setSelection'](_0x2c7d37),_0xeb7e82['commands'][_0x287e('0x3c')]('mergeTableCells')[_0x287e('0x17')](),_0xeb7e82[_0x287e('0x21')](_0x287e('0x2c'),{'forceDefaultExecution':!0x0});const _0x18258b=_0x29395b['filter'](_0xc1374=>_0x287e('0x33')!=_0xc1374[_0x287e('0x7')][_0x287e('0x47')]);_0x18258b[_0x287e('0x2d')]>0x0&&_0x36ec98['setSelection'](_0x18258b);for(const _0x4b63e4 of _0x29395b)_0x4b63e4[_0x287e('0x19')]();});});for(const _0x31ba80 of[_0x287e('0x6'),'mergeTableCellDown','mergeTableCellLeft',_0x287e('0x28')]){const _0x8a3360=_0xeb7e82['commands']['get'](_0x31ba80);_0x8a3360['on'](_0x287e('0x12'),(_0x50a5ad,_0x2fa60a,_0x572ef5)=>{if(_0x572ef5){const _0x5c027c=_0xeb7e82[_0x287e('0x4')][_0x287e('0x26')][_0x287e('0x4b')][_0x287e('0x46')]()[_0x287e('0x27')]()['find'](_0x59f29f=>_0x59f29f['is'](_0x287e('0x10'),_0x287e('0x41')));this['_areMergableCells'](_0x8a3360[_0x287e('0x2b')],_0x5c027c)||(_0x50a5ad[_0x287e('0x23')]=!0x1,_0x50a5ad[_0x287e('0x1b')]());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xd58051=this[_0x287e('0x42')][_0x287e('0x36')]['get'](_0x287e('0x2c')),_0x1ab389=this['editor'][_0x287e('0xd')]['get'](_0x287e('0x24'));if(!_0xd58051[_0x287e('0x29')])return!0x1;const _0x31995d=_0x1ab389['getSelectionAffectedTableCells'](this[_0x287e('0x42')][_0x287e('0x4')][_0x287e('0x26')]['selection']);for(const _0x1fc9ac of _0x31995d)for(const _0x213741 of _0x31995d)if(_0x1fc9ac!=_0x213741&&!this['_areMergableCells'](_0x1fc9ac,_0x213741))return!0x1;return!0x0;}[_0x287e('0x3f')](_0x7b7b59,_0x1e8575){const _0x55957f=this[_0x287e('0x42')]['plugins'][_0x287e('0x3c')](_0x287e('0x40')),_0x116477=this[_0x287e('0x42')][_0x287e('0x4')][_0x287e('0x43')](_0x7b7b59),_0x2e130c=this[_0x287e('0x42')][_0x287e('0x4')][_0x287e('0x43')](_0x1e8575),_0x5ac04e=new Set(),_0x10ca6c=new Set();for(const _0x269576 of _0x55957f['getSuggestions']())if((_0x287e('0x15')==_0x269576[_0x287e('0x3d')]||_0x287e('0x18')==_0x269576['type']||_0x287e('0x2c')==_0x269576[_0x287e('0x44')])&&_0x269576[_0x287e('0x16')])for(const _0x485420 of _0x269576[_0x287e('0x0')]())_0x485420[_0x287e('0x48')](_0x116477,!0x0)&&_0x5ac04e[_0x287e('0x14')](_0x269576[_0x287e('0x3d')]+':'+_0x269576['author']['id']),_0x485420['containsRange'](_0x2e130c,!0x0)&&_0x10ca6c[_0x287e('0x14')](_0x269576['type']+':'+_0x269576[_0x287e('0xc')]['id']);if(_0x5ac04e[_0x287e('0xe')]!=_0x10ca6c[_0x287e('0xe')])return!0x1;for(const _0x75de8 of _0x5ac04e)if(!_0x10ca6c['has'](_0x75de8))return!0x1;return!0x0;}}
23
+ const _0x2dcd=['stop','TableUtils','detach','has','map','createTableWalker','isEnabled','_acceptFormatSuggestionCallbackFactory','getCellLocation','*Merge\x20cells*','document','element','value','selection','cell','findAncestor','splitTableCellHorizontally','_isForcedDefaultExecutionBlock','_areSelectedCellsMergable','fromRange','add','return','direction','*Split\x20cell:*\x20horizontally','table','mergeTableCells','from','*Split\x20cell:*\x20vertically','getFirstPosition','editor','_descriptionFactory','getRanges','mergeTableCellUp','subType','mergeTableCellDown','formatBlock','splitTableCellVertically','registerCustomCallback','afterInit','accept','tableCell','size','author','format','change','getSelectionAffectedTableCells','deletion','model','commandName','low','forceDefaultExecution','plugins','set:isEnabled','_suggestionFactory','mergeTableCellLeft','TableEditing','locale','length','setSelection','markBlockFormat','_tablePostFixingSubtypes','registerDescriptionCallback','commands','highest','get','getAncestors','_areMergableCells','createRangeOn','trackChanges','type','mergeTableCellRight','TrackChangesEditing','enableCommand','find','horizontally'];(function(_0x322cdf,_0x2dcdb3){const _0x50ef42=function(_0x51fd58){while(--_0x51fd58){_0x322cdf['push'](_0x322cdf['shift']());}};_0x50ef42(++_0x2dcdb3);}(_0x2dcd,0x136));const _0x50ef=function(_0x322cdf,_0x2dcdb3){_0x322cdf=_0x322cdf-0x0;let _0x50ef42=_0x2dcd[_0x322cdf];return _0x50ef42;};import{Plugin as _0x34dd62}from'ckeditor5/src/core';import _0x56a4ba from'./table';import{LiveRange as _0x515dbf}from'ckeditor5/src/engine';import{getTranslation as _0x3d1ce0}from'../utils/common-translations';export default class pt extends _0x34dd62{static get['requires'](){return[_0x56a4ba];}[_0x50ef('0x1c')](){const _0x123c8b=this[_0x50ef('0x13')],_0x1b61c9=_0x123c8b[_0x50ef('0x25')]['document'][_0x50ef('0x3')],_0x1d3def=_0x123c8b[_0x50ef('0x2e')];if(!_0x123c8b['plugins']['has'](_0x50ef('0x2d')))return;const _0x34a664=_0x123c8b[_0x50ef('0x29')][_0x50ef('0x36')](_0x50ef('0x3d')),_0x245175=_0x123c8b[_0x50ef('0x29')][_0x50ef('0x36')](_0x50ef('0x42')),_0x1a78b6=_0x123c8b['plugins'][_0x50ef('0x36')](_0x56a4ba);_0x1a78b6[_0x50ef('0x32')]['push'](_0x50ef('0xf')),_0x34a664['enableCommand'](_0x50ef('0xf'),()=>{const _0x515fe9=_0x245175[_0x50ef('0x23')](_0x123c8b[_0x50ef('0x25')][_0x50ef('0x0')][_0x50ef('0x3')]);_0x123c8b['model'][_0x50ef('0x22')](()=>{_0x34a664['markMultiRangeBlockFormat'](_0x515fe9,{'commandName':_0x50ef('0xf'),'commandParams':[]},[],_0x50ef('0xf'));});}),_0x123c8b[_0x50ef('0x34')][_0x50ef('0x36')](_0x50ef('0xf'))['on']('execute',(_0x3387fe,_0x4ce3e9)=>{_0x123c8b[_0x50ef('0x34')]['get'](_0x50ef('0x3a'))[_0x50ef('0x2')]&&(_0x4ce3e9[_0x50ef('0x2f')]>0x0&&_0x4ce3e9[_0x4ce3e9[_0x50ef('0x2f')]-0x1]&&_0x4ce3e9[_0x4ce3e9['length']-0x1][_0x50ef('0x28')]||_0x34a664[_0x50ef('0x7')]||this['_areSelectedCellsMergable']()||_0x3387fe[_0x50ef('0x41')]());},{'priority':_0x50ef('0x35')});for(const _0xbc0a31 of[_0x50ef('0x16'),'mergeTableCellRight',_0x50ef('0x18'),'mergeTableCellLeft']){const _0x22fcf0=_0x123c8b[_0x50ef('0x34')]['get'](_0xbc0a31);_0x34a664[_0x50ef('0x3e')](_0xbc0a31,()=>{const _0x5f2304=_0x123c8b[_0x50ef('0x25')]['document'][_0x50ef('0x3')]['getFirstPosition']()[_0x50ef('0x37')]()[_0x50ef('0x3f')](_0x31f415=>_0x31f415['is'](_0x50ef('0x1'),_0x50ef('0x1e'))),_0x1e036d=_0x22fcf0[_0x50ef('0x2')];_0x123c8b[_0x50ef('0x25')][_0x50ef('0x22')](()=>{_0x34a664['markMultiRangeBlockFormat']([_0x5f2304,_0x1e036d],{'commandName':_0x50ef('0xf'),'commandParams':[]},[],_0x50ef('0xf'));});});}for(const _0x221c32 of[_0x50ef('0x1a'),_0x50ef('0x6')]){const _0x39af3f=_0x123c8b[_0x50ef('0x34')][_0x50ef('0x36')](_0x221c32);_0x34a664['enableCommand'](_0x221c32,()=>{const _0xeb00f4=_0x245175[_0x50ef('0x23')](_0x123c8b[_0x50ef('0x25')][_0x50ef('0x0')][_0x50ef('0x3')])[0x0],_0x535a2e=_0xeb00f4[_0x50ef('0x5')](_0x50ef('0xe')),{column:_0x5f2395,row:_0x1656b6}=_0x245175[_0x50ef('0x49')](_0xeb00f4);let _0x194e68=[];if(_0x50ef('0x40')==_0x39af3f[_0x50ef('0xc')]){const _0x7b435=_0x245175[_0x50ef('0x46')](_0x535a2e,{'startRow':_0x1656b6,'endRow':_0x1656b6,'includeAllSlots':!0x0});_0x194e68=Array[_0x50ef('0x10')](_0x7b435)['map'](_0x55e3aa=>_0x55e3aa['cell']);}else{const _0x4d0b67=_0x245175[_0x50ef('0x46')](_0x535a2e,{'column':_0x5f2395,'includeAllSlots':!0x0});_0x194e68=Array['from'](_0x4d0b67)[_0x50ef('0x45')](_0x359c5d=>_0x359c5d[_0x50ef('0x4')]);}_0x123c8b[_0x50ef('0x25')]['change'](_0x27cd94=>{_0x34a664[_0x50ef('0x31')](_0x27cd94[_0x50ef('0x39')](_0xeb00f4),{'commandName':_0x221c32,'commandParams':[]},_0x194e68,_0x221c32);});});}_0x34a664[_0x50ef('0x14')]['registerDescriptionCallback'](_0x3b6926=>{const {data:_0x245599}=_0x3b6926;if(_0x245599)return _0x50ef('0xf')==_0x245599[_0x50ef('0x26')]?{'type':_0x50ef('0x21'),'content':_0x3d1ce0(_0x1d3def,_0x50ef('0x4a'))}:void 0x0;}),_0x34a664[_0x50ef('0x14')][_0x50ef('0x33')](_0x2e5da5=>{const {data:_0x53f53f}=_0x2e5da5;if(_0x53f53f)return _0x50ef('0x1a')==_0x53f53f[_0x50ef('0x26')]?{'type':_0x50ef('0x21'),'content':_0x3d1ce0(_0x1d3def,_0x50ef('0x11'))}:_0x50ef('0x6')==_0x53f53f[_0x50ef('0x26')]?{'type':'format','content':_0x3d1ce0(_0x1d3def,_0x50ef('0xd'))}:void 0x0;});const _0x1e9b2b=_0x1a78b6[_0x50ef('0x48')]();for(const _0xd54731 of[_0x50ef('0x16'),_0x50ef('0x3c'),_0x50ef('0x18'),_0x50ef('0x2c')])_0x34a664[_0x50ef('0x2b')][_0x50ef('0x1b')]('formatBlock',_0xd54731,_0x50ef('0x1d'),_0x1e9b2b);for(const _0x4e0fad of['splitTableCellVertically','splitTableCellHorizontally'])_0x34a664[_0x50ef('0x2b')][_0x50ef('0x1b')](_0x50ef('0x19'),_0x4e0fad,_0x50ef('0x1d'),_0x1e9b2b);_0x34a664['_suggestionFactory'][_0x50ef('0x1b')]('formatBlock',_0x50ef('0xf'),'accept',_0xf44ec8=>{_0x123c8b[_0x50ef('0x25')][_0x50ef('0x22')](_0x5d59a5=>{const _0x619f15=Array[_0x50ef('0x10')](_0x1b61c9[_0x50ef('0x15')]())['map'](_0x1d0017=>_0x515dbf[_0x50ef('0x9')](_0x1d0017));_0x5d59a5[_0x50ef('0x30')](_0xf44ec8),_0x123c8b['commands'][_0x50ef('0x36')](_0x50ef('0xf'))['refresh'](),_0x123c8b['execute'](_0x50ef('0xf'),{'forceDefaultExecution':!0x0});const _0x1dab7d=_0x619f15['filter'](_0x1fb017=>'$graveyard'!=_0x1fb017['root']['rootName']);_0x1dab7d[_0x50ef('0x2f')]>0x0&&_0x5d59a5[_0x50ef('0x30')](_0x1dab7d);for(const _0x4b5143 of _0x619f15)_0x4b5143[_0x50ef('0x43')]();});});for(const _0x84750 of['mergeTableCellUp',_0x50ef('0x18'),'mergeTableCellLeft',_0x50ef('0x3c')]){const _0x5bed67=_0x123c8b[_0x50ef('0x34')]['get'](_0x84750);_0x5bed67['on'](_0x50ef('0x2a'),(_0x107786,_0x488e31,_0x2739f4)=>{if(_0x2739f4){const _0x2d1231=_0x123c8b[_0x50ef('0x25')][_0x50ef('0x0')]['selection'][_0x50ef('0x12')]()['getAncestors']()[_0x50ef('0x3f')](_0x3031ed=>_0x3031ed['is']('element','tableCell'));this['_areMergableCells'](_0x5bed67[_0x50ef('0x2')],_0x2d1231)||(_0x107786[_0x50ef('0xb')]=!0x1,_0x107786['stop']());}},{'priority':_0x50ef('0x27')});}}[_0x50ef('0x8')](){const _0x4d0c90=this[_0x50ef('0x13')][_0x50ef('0x34')]['get'](_0x50ef('0xf')),_0x57f8b1=this[_0x50ef('0x13')][_0x50ef('0x29')][_0x50ef('0x36')](_0x50ef('0x42'));if(!_0x4d0c90[_0x50ef('0x47')])return!0x1;const _0x744e8b=_0x57f8b1[_0x50ef('0x23')](this['editor'][_0x50ef('0x25')][_0x50ef('0x0')]['selection']);for(const _0x9c4afa of _0x744e8b)for(const _0x7e7900 of _0x744e8b)if(_0x9c4afa!=_0x7e7900&&!this[_0x50ef('0x38')](_0x9c4afa,_0x7e7900))return!0x1;return!0x0;}[_0x50ef('0x38')](_0x2bf34c,_0x2b2424){const _0x5bc3b3=this['editor'][_0x50ef('0x29')][_0x50ef('0x36')](_0x50ef('0x3d')),_0x378a41=this[_0x50ef('0x13')][_0x50ef('0x25')][_0x50ef('0x39')](_0x2bf34c),_0x3b615e=this[_0x50ef('0x13')][_0x50ef('0x25')][_0x50ef('0x39')](_0x2b2424),_0xdc1f7a=new Set(),_0x10c78e=new Set();for(const _0x477a84 of _0x5bc3b3['getSuggestions']())if(('insertion'==_0x477a84[_0x50ef('0x3b')]||_0x50ef('0x24')==_0x477a84[_0x50ef('0x3b')]||_0x50ef('0xf')==_0x477a84[_0x50ef('0x17')])&&_0x477a84['isInContent'])for(const _0x165803 of _0x477a84[_0x50ef('0x15')]())_0x165803['containsRange'](_0x378a41,!0x0)&&_0xdc1f7a['add'](_0x477a84[_0x50ef('0x3b')]+':'+_0x477a84[_0x50ef('0x20')]['id']),_0x165803['containsRange'](_0x3b615e,!0x0)&&_0x10c78e[_0x50ef('0xa')](_0x477a84[_0x50ef('0x3b')]+':'+_0x477a84[_0x50ef('0x20')]['id']);if(_0xdc1f7a[_0x50ef('0x1f')]!=_0x10c78e[_0x50ef('0x1f')])return!0x1;for(const _0xe827fa of _0xdc1f7a)if(!_0x10c78e[_0x50ef('0x44')](_0xe827fa))return!0x1;return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1779=['editor','insertTableOfContents','tableOfContents','registerElementLabel','_descriptionFactory','locale','afterInit','commands','TrackChangesEditing','get','plugins','enableCommand'];(function(_0x58422b,_0x177926){const _0x36eee8=function(_0x2b0a45){while(--_0x2b0a45){_0x58422b['push'](_0x58422b['shift']());}};_0x36eee8(++_0x177926);}(_0x1779,0x1d7));const _0x36ee=function(_0x58422b,_0x177926){_0x58422b=_0x58422b-0x0;let _0x36eee8=_0x1779[_0x58422b];return _0x36eee8;};import{Plugin as _0x435035}from'ckeditor5/src/core';import{getTranslation as _0x1dca84}from'../utils/common-translations';export default class St extends _0x435035{[_0x36ee('0x3')](){const _0x178496=this[_0x36ee('0x9')];if(!_0x178496[_0x36ee('0x4')][_0x36ee('0x6')]('insertTableOfContents'))return;_0x178496['plugins'][_0x36ee('0x6')](_0x36ee('0x5'))[_0x36ee('0x8')](_0x36ee('0xa'));const _0x1adcdb=_0x178496[_0x36ee('0x7')][_0x36ee('0x6')]('TrackChangesEditing'),_0x5be082=_0x178496[_0x36ee('0x2')];_0x1adcdb[_0x36ee('0x1')][_0x36ee('0x0')](_0x36ee('0xb'),_0x40671=>_0x1dca84(_0x5be082,'ELEMENT_TABLE_OF_CONTENTS',_0x40671));}}
23
+ const _0x52dd=['editor','plugins','get','insertTableOfContents','afterInit','tableOfContents','enableCommand','TrackChangesEditing','commands'];(function(_0x34974c,_0x52ddc4){const _0x33d967=function(_0x37975f){while(--_0x37975f){_0x34974c['push'](_0x34974c['shift']());}};_0x33d967(++_0x52ddc4);}(_0x52dd,0x141));const _0x33d9=function(_0x34974c,_0x52ddc4){_0x34974c=_0x34974c-0x0;let _0x33d967=_0x52dd[_0x34974c];return _0x33d967;};import{Plugin as _0x2c002b}from'ckeditor5/src/core';import{getTranslation as _0x26b641}from'../utils/common-translations';export default class St extends _0x2c002b{[_0x33d9('0x7')](){const _0x5366c8=this[_0x33d9('0x3')];if(!_0x5366c8[_0x33d9('0x2')][_0x33d9('0x5')]('insertTableOfContents'))return;_0x5366c8[_0x33d9('0x4')][_0x33d9('0x5')](_0x33d9('0x1'))[_0x33d9('0x0')](_0x33d9('0x6'));const _0x2183a6=_0x5366c8['plugins'][_0x33d9('0x5')](_0x33d9('0x1')),_0x2dc871=_0x5366c8['locale'];_0x2183a6['_descriptionFactory']['registerElementLabel'](_0x33d9('0x8'),_0x299872=>_0x26b641(_0x2dc871,'ELEMENT_TABLE_OF_CONTENTS',_0x299872));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3398=['nodeAfter','findAncestor','editor','TableCellPropertiesEditing','tableCellBorderColor','tableCellHorizontalAlignment','*Format:*\x20change\x20table\x20properties','_handlePropertyChange','model','handleSuggestionDescription','TableUtils','document','tableProperties','registerCustomCallback','getSuggestions','tableAlignment','TablePropertiesEditing','tableBorderWidth','tableBackgroundColor','has','plugins','pluginName','tableCellBorderWidth','TrackChangesTableProperties','tableCellBackgroundColor','tableCellBorderStyle','getContainedElement','afterInit','getSuggestionCallback','TrackChangesEditing','table','removeAttribute','tableWidth','registerDescriptionCallback','discard','tableHeight','handleDiscardAction','selection','subType','tableCellProperties','locale','getAttribute','get','tableBorderColor','tableCellWidth','getSelectionAffectedTableCells','batch','tableCellVerticalAlignment','formatBlock','commandParams','start','data','_suggestionFactory','markBlockFormat','tableBorderStyle','format','enableCommand','accept','getFirstPosition','*Format:*\x20change\x20table\x20cell\x20properties','_getSuggestion'];(function(_0x52335b,_0x3398cc){const _0x5637c3=function(_0x221045){while(--_0x221045){_0x52335b['push'](_0x52335b['shift']());}};_0x5637c3(++_0x3398cc);}(_0x3398,0x1bd));const _0x5637=function(_0x52335b,_0x3398cc){_0x52335b=_0x52335b-0x0;let _0x5637c3=_0x3398[_0x52335b];return _0x5637c3;};import{Plugin as _0x46f0d7}from'ckeditor5/src/core';import{getTranslation as _0x4cb7e2}from'../utils/common-translations';export default class Dt extends _0x46f0d7{constructor(_0x59bfb){super(_0x59bfb),this[_0x5637('0x37')]=[_0x5637('0x19'),_0x5637('0x24'),_0x5637('0x3c'),_0x5637('0x3a'),_0x5637('0xe'),_0x5637('0x11'),_0x5637('0x0')],this['tableCellProperties']=[_0x5637('0x2f'),_0x5637('0x7'),_0x5637('0x4'),'tableCellPadding',_0x5637('0x1a'),'tableCellHeight',_0x5637('0x6'),_0x5637('0x30'),_0x5637('0x1d')];}static get[_0x5637('0x3')](){return _0x5637('0x5');}[_0x5637('0x9')](){const _0x5072f3=this[_0x5637('0x2d')][_0x5637('0x2')]['get']('TrackChangesEditing');if(this[_0x5637('0x2d')]['plugins'][_0x5637('0x1')](_0x5637('0x3b'))){for(const _0x3c28ae of this[_0x5637('0x37')])_0x5072f3[_0x5637('0x26')](_0x3c28ae,(_0x301af5,_0x4f0e26)=>{const _0x30e358=this[_0x5637('0x2d')][_0x5637('0x33')][_0x5637('0x36')][_0x5637('0x13')][_0x5637('0x28')]()[_0x5637('0x2c')](_0x5637('0xc'));this[_0x5637('0x32')](_0x3c28ae,[_0x30e358],this['tableProperties'],'tableProperties',_0x301af5,_0x4f0e26);});_0x5072f3[_0x5637('0x22')]['registerCustomCallback']('formatBlock',_0x5637('0x37'),_0x5637('0x27'),_0x5072f3['_suggestionFactory'][_0x5637('0xa')](_0x5637('0x1e'),null,'discard')),_0x5072f3[_0x5637('0x22')][_0x5637('0x38')](_0x5637('0x1e'),'tableProperties','discard',(_0x169593,_0x22e6af)=>this[_0x5637('0x12')](this['tableProperties'],_0x169593,_0x22e6af)),_0x5072f3[_0x5637('0x22')]['registerCustomCallback'](_0x5637('0x1e'),_0x5637('0x37'),'join',()=>!0x1);}if(this[_0x5637('0x2d')][_0x5637('0x2')][_0x5637('0x1')](_0x5637('0x2e'))){for(const _0x5c0c9a of this[_0x5637('0x15')])_0x5072f3[_0x5637('0x26')](_0x5c0c9a,(_0x13d71b,_0x37a999)=>{const _0x59be5d=this[_0x5637('0x2d')][_0x5637('0x2')][_0x5637('0x18')](_0x5637('0x35'))[_0x5637('0x1b')](this['editor'][_0x5637('0x33')]['document'][_0x5637('0x13')]);this[_0x5637('0x32')](_0x5c0c9a,_0x59be5d,this[_0x5637('0x15')],_0x5637('0x15'),_0x13d71b,_0x37a999);});_0x5072f3[_0x5637('0x22')][_0x5637('0x38')](_0x5637('0x1e'),_0x5637('0x15'),_0x5637('0x27'),_0x5072f3['_suggestionFactory']['getSuggestionCallback'](_0x5637('0x1e'),null,_0x5637('0x10'))),_0x5072f3[_0x5637('0x22')][_0x5637('0x38')](_0x5637('0x1e'),_0x5637('0x15'),'discard',(_0x3841ca,_0x3944fa)=>this[_0x5637('0x12')](this['tableCellProperties'],_0x3841ca,_0x3944fa)),_0x5072f3['_suggestionFactory'][_0x5637('0x38')](_0x5637('0x1e'),_0x5637('0x15'),'join',()=>!0x1);}_0x5072f3['_descriptionFactory'][_0x5637('0xf')](_0x20c6d6=>this[_0x5637('0x34')](_0x20c6d6));}['_handlePropertyChange'](_0x52d07f,_0x1b9029,_0x346371,_0x5c0768,_0x34b998,_0x33e1f4){const _0x2ae60e=this[_0x5637('0x2d')][_0x5637('0x2')]['get'](_0x5637('0xb'));this['editor'][_0x5637('0x33')]['enqueueChange'](_0x33e1f4[_0x5637('0x1c')],()=>{for(const _0x2a768a of _0x1b9029){if(this[_0x5637('0x2a')](_0x2a768a,_0x5c0768))_0x34b998(_0x33e1f4);else{const _0x3e6bdd={};for(const _0x5ce2f0 of _0x346371){const _0x4bd470=_0x2a768a[_0x5637('0x17')](_0x5ce2f0);void 0x0!==_0x4bd470&&(_0x3e6bdd[_0x5ce2f0]=_0x4bd470);}_0x34b998(_0x33e1f4),_0x2ae60e[_0x5637('0x23')](_0x2a768a,{'commandParams':[_0x3e6bdd]},[],_0x5c0768);}}});}[_0x5637('0x12')](_0x2c4d93,_0x25e255,_0x2cf579){const _0x234003=_0x25e255[0x0][_0x5637('0x20')][_0x5637('0x2b')],_0x1920b7=_0x2cf579[_0x5637('0x1f')][0x0];this[_0x5637('0x2d')][_0x5637('0x33')]['change'](_0x58fc56=>{for(const _0x318632 of _0x2c4d93)void 0x0!==_0x1920b7[_0x318632]?_0x58fc56['setAttribute'](_0x318632,_0x1920b7[_0x318632],_0x234003):_0x58fc56[_0x5637('0xd')](_0x318632,_0x234003);});}[_0x5637('0x34')](_0x35c1af){if(_0x35c1af[_0x5637('0x21')])switch(_0x35c1af[_0x5637('0x14')]){case _0x5637('0x37'):return{'type':_0x5637('0x25'),'content':_0x4cb7e2(this[_0x5637('0x2d')][_0x5637('0x16')],_0x5637('0x31'))};case _0x5637('0x15'):return{'type':_0x5637('0x25'),'content':_0x4cb7e2(this[_0x5637('0x2d')][_0x5637('0x16')],_0x5637('0x29'))};}}[_0x5637('0x2a')](_0xe43d5,_0x55bdbf){const _0x318b04=this[_0x5637('0x2d')]['plugins'][_0x5637('0x18')](_0x5637('0xb'));for(const _0x364390 of _0x318b04[_0x5637('0x39')]({'skipNotAttached':!0x0})){const _0x33784b=_0x364390[_0x5637('0x8')]();if(_0x364390[_0x5637('0x14')]===_0x55bdbf&&_0x33784b===_0xe43d5)return _0x364390;}return null;}}
23
+ const _0x2b31=['tableHeight','join','commandParams','handleSuggestionDescription','getSelectionAffectedTableCells','registerDescriptionCallback','TableCellPropertiesEditing','_suggestionFactory','getSuggestions','getFirstPosition','format','plugins','pluginName','tableProperties','model','subType','editor','data','handleDiscardAction','tableCellBorderColor','TableUtils','tableCellProperties','tableCellHeight','getAttribute','getSuggestionCallback','has','afterInit','tableCellHorizontalAlignment','formatBlock','*Format:*\x20change\x20table\x20cell\x20properties','nodeAfter','accept','tableCellBackgroundColor','batch','findAncestor','tableBackgroundColor','_handlePropertyChange','markBlockFormat','tableCellWidth','discard','tableCellPadding','tableWidth','enableCommand','tableCellBorderWidth','selection','tableCellVerticalAlignment','document','tableBorderColor','*Format:*\x20change\x20table\x20properties','TrackChangesTableProperties','registerCustomCallback','TrackChangesEditing','change','get'];(function(_0x4caa3d,_0x2b317a){const _0x21b272=function(_0x39bef2){while(--_0x39bef2){_0x4caa3d['push'](_0x4caa3d['shift']());}};_0x21b272(++_0x2b317a);}(_0x2b31,0x1a6));const _0x21b2=function(_0x4caa3d,_0x2b317a){_0x4caa3d=_0x4caa3d-0x0;let _0x21b272=_0x2b31[_0x4caa3d];return _0x21b272;};import{Plugin as _0x4d593e}from'ckeditor5/src/core';import{getTranslation as _0x5e7f55}from'../utils/common-translations';export default class Dt extends _0x4d593e{constructor(_0x5220f9){super(_0x5220f9),this[_0x21b2('0x17')]=[_0x21b2('0x3'),'tableBorderStyle','tableBorderWidth','tableAlignment',_0x21b2('0x33'),_0x21b2('0xa'),_0x21b2('0x2d')],this['tableCellProperties']=[_0x21b2('0x1d'),'tableCellBorderStyle',_0x21b2('0x35'),_0x21b2('0x32'),_0x21b2('0x30'),_0x21b2('0x20'),_0x21b2('0x2a'),_0x21b2('0x25'),_0x21b2('0x1')];}static get[_0x21b2('0x16')](){return _0x21b2('0x5');}[_0x21b2('0x24')](){const _0x4254aa=this['editor'][_0x21b2('0x15')][_0x21b2('0x9')](_0x21b2('0x7'));if(this[_0x21b2('0x1a')][_0x21b2('0x15')][_0x21b2('0x23')]('TablePropertiesEditing')){for(const _0x45dea3 of this[_0x21b2('0x17')])_0x4254aa[_0x21b2('0x34')](_0x45dea3,(_0x28c748,_0x39fafc)=>{const _0x3c6861=this[_0x21b2('0x1a')][_0x21b2('0x18')][_0x21b2('0x2')][_0x21b2('0x0')][_0x21b2('0x13')]()[_0x21b2('0x2c')]('table');this[_0x21b2('0x2e')](_0x45dea3,[_0x3c6861],this[_0x21b2('0x17')],_0x21b2('0x17'),_0x28c748,_0x39fafc);});_0x4254aa[_0x21b2('0x11')][_0x21b2('0x6')](_0x21b2('0x26'),_0x21b2('0x17'),_0x21b2('0x29'),_0x4254aa[_0x21b2('0x11')][_0x21b2('0x22')](_0x21b2('0x26'),null,_0x21b2('0x31'))),_0x4254aa[_0x21b2('0x11')][_0x21b2('0x6')](_0x21b2('0x26'),_0x21b2('0x17'),'discard',(_0x4b8c26,_0x22a77b)=>this['handleDiscardAction'](this[_0x21b2('0x17')],_0x4b8c26,_0x22a77b)),_0x4254aa[_0x21b2('0x11')][_0x21b2('0x6')]('formatBlock','tableProperties',_0x21b2('0xb'),()=>!0x1);}if(this['editor']['plugins']['has'](_0x21b2('0x10'))){for(const _0x24edbb of this[_0x21b2('0x1f')])_0x4254aa[_0x21b2('0x34')](_0x24edbb,(_0x44b1ae,_0x31e421)=>{const _0x39b0d8=this[_0x21b2('0x1a')][_0x21b2('0x15')]['get'](_0x21b2('0x1e'))[_0x21b2('0xe')](this[_0x21b2('0x1a')][_0x21b2('0x18')][_0x21b2('0x2')][_0x21b2('0x0')]);this['_handlePropertyChange'](_0x24edbb,_0x39b0d8,this[_0x21b2('0x1f')],_0x21b2('0x1f'),_0x44b1ae,_0x31e421);});_0x4254aa['_suggestionFactory'][_0x21b2('0x6')](_0x21b2('0x26'),_0x21b2('0x1f'),_0x21b2('0x29'),_0x4254aa[_0x21b2('0x11')][_0x21b2('0x22')](_0x21b2('0x26'),null,_0x21b2('0x31'))),_0x4254aa[_0x21b2('0x11')][_0x21b2('0x6')]('formatBlock',_0x21b2('0x1f'),_0x21b2('0x31'),(_0x4970a7,_0x4fcbab)=>this[_0x21b2('0x1c')](this[_0x21b2('0x1f')],_0x4970a7,_0x4fcbab)),_0x4254aa[_0x21b2('0x11')][_0x21b2('0x6')]('formatBlock',_0x21b2('0x1f'),'join',()=>!0x1);}_0x4254aa['_descriptionFactory'][_0x21b2('0xf')](_0x3a9a52=>this[_0x21b2('0xd')](_0x3a9a52));}[_0x21b2('0x2e')](_0x23e333,_0xc33ccd,_0x42cced,_0xbcae2c,_0x54f95a,_0x993ad4){const _0x218da7=this[_0x21b2('0x1a')][_0x21b2('0x15')][_0x21b2('0x9')](_0x21b2('0x7'));this[_0x21b2('0x1a')][_0x21b2('0x18')]['enqueueChange'](_0x993ad4[_0x21b2('0x2b')],()=>{for(const _0x53b241 of _0xc33ccd){if(this['_getSuggestion'](_0x53b241,_0xbcae2c))_0x54f95a(_0x993ad4);else{const _0x56363b={};for(const _0x48c859 of _0x42cced){const _0x868326=_0x53b241[_0x21b2('0x21')](_0x48c859);void 0x0!==_0x868326&&(_0x56363b[_0x48c859]=_0x868326);}_0x54f95a(_0x993ad4),_0x218da7[_0x21b2('0x2f')](_0x53b241,{'commandParams':[_0x56363b]},[],_0xbcae2c);}}});}[_0x21b2('0x1c')](_0x31f450,_0x551e67,_0x3d777){const _0x48addc=_0x551e67[0x0]['start'][_0x21b2('0x28')],_0x4e373d=_0x3d777[_0x21b2('0xc')][0x0];this['editor']['model'][_0x21b2('0x8')](_0x303a14=>{for(const _0x580d85 of _0x31f450)void 0x0!==_0x4e373d[_0x580d85]?_0x303a14['setAttribute'](_0x580d85,_0x4e373d[_0x580d85],_0x48addc):_0x303a14['removeAttribute'](_0x580d85,_0x48addc);});}[_0x21b2('0xd')](_0x45abdb){if(_0x45abdb[_0x21b2('0x1b')])switch(_0x45abdb[_0x21b2('0x19')]){case _0x21b2('0x17'):return{'type':'format','content':_0x5e7f55(this[_0x21b2('0x1a')]['locale'],_0x21b2('0x4'))};case _0x21b2('0x1f'):return{'type':_0x21b2('0x14'),'content':_0x5e7f55(this[_0x21b2('0x1a')]['locale'],_0x21b2('0x27'))};}}['_getSuggestion'](_0xa6495b,_0x353687){const _0x5980ff=this[_0x21b2('0x1a')][_0x21b2('0x15')][_0x21b2('0x9')](_0x21b2('0x7'));for(const _0x477351 of _0x5980ff[_0x21b2('0x12')]({'skipNotAttached':!0x0})){const _0x1eaa90=_0x477351['getContainedElement']();if(_0x477351['subType']===_0x353687&&_0x1eaa90===_0xa6495b)return _0x477351;}return null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x704c=['plugins','enableCommand','TrackChangesEditing','insertTemplate','has','editor'];(function(_0x42ddc4,_0x704c29){const _0x4a29a8=function(_0x1ce8bd){while(--_0x1ce8bd){_0x42ddc4['push'](_0x42ddc4['shift']());}};_0x4a29a8(++_0x704c29);}(_0x704c,0x17d));const _0x4a29=function(_0x42ddc4,_0x704c29){_0x42ddc4=_0x42ddc4-0x0;let _0x4a29a8=_0x704c[_0x42ddc4];return _0x4a29a8;};import{Plugin as _0x1e1648}from'ckeditor5/src/core';export default class bt extends _0x1e1648{['afterInit'](){const _0x308a6d=this[_0x4a29('0x2')];_0x308a6d['plugins'][_0x4a29('0x1')]('Template')&&_0x308a6d[_0x4a29('0x3')]['get'](_0x4a29('0x5'))[_0x4a29('0x4')](_0x4a29('0x0'));}}
23
+ const _0x1908=['plugins','Template','insertTemplate','enableCommand','afterInit'];(function(_0x13b6f9,_0x190899){const _0x33424f=function(_0x28004a){while(--_0x28004a){_0x13b6f9['push'](_0x13b6f9['shift']());}};_0x33424f(++_0x190899);}(_0x1908,0xb6));const _0x3342=function(_0x13b6f9,_0x190899){_0x13b6f9=_0x13b6f9-0x0;let _0x33424f=_0x1908[_0x13b6f9];return _0x33424f;};import{Plugin as _0x5a4655}from'ckeditor5/src/core';export default class bt extends _0x5a4655{[_0x3342('0x2')](){const _0x2c2953=this['editor'];_0x2c2953[_0x3342('0x3')]['has'](_0x3342('0x4'))&&_0x2c2953[_0x3342('0x3')]['get']('TrackChangesEditing')[_0x3342('0x1')](_0x3342('0x0'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4572=['end','document','nodeBefore','isTouching','ELEMENT_TITLE','model','getChangedMarkers','locale','_descriptionFactory','get','start','afterInit','forward','title-content','newRange','createRange','removeMarker','suggestion','editor','getNearestSelectionRange','TrackChangesEditing','registerElementLabel','Title','isEqual','differ','from'];(function(_0xb88797,_0x4572cd){const _0x17440b=function(_0x502f5c){while(--_0x502f5c){_0xb88797['push'](_0xb88797['shift']());}};_0x17440b(++_0x4572cd);}(_0x4572,0x94));const _0x1744=function(_0xb88797,_0x4572cd){_0xb88797=_0xb88797-0x0;let _0x17440b=_0x4572[_0xb88797];return _0x17440b;};import{Plugin as _0x438acf}from'ckeditor5/src/core';import{getTranslation as _0x2e2481}from'../utils/common-translations';export default class It extends _0x438acf{[_0x1744('0x13')](){const _0x4899b5=this[_0x1744('0x0')];if(!_0x4899b5['plugins']['has'](_0x1744('0x4')))return;const _0xadbb63=_0x4899b5['plugins'][_0x1744('0x11')](_0x1744('0x2'));_0xadbb63[_0x1744('0x10')][_0x1744('0x3')]('title-content',()=>_0x2e2481(_0x4899b5[_0x1744('0xf')],_0x1744('0xc'))),_0x4899b5[_0x1744('0xd')]['document']['registerPostFixer'](_0x51bcf5=>{let _0x3194a3=!0x1;const _0x111b37=Array[_0x1744('0x7')](_0x4899b5[_0x1744('0xd')][_0x1744('0x9')][_0x1744('0x6')][_0x1744('0xe')]());for(const {name:_0x586ff6,data:_0x2e298a}of _0x111b37){const {group:_0x357221}=_0xadbb63['_splitMarkerName'](_0x586ff6);if(_0x1744('0x19')!==_0x357221||!_0x2e298a[_0x1744('0x16')])continue;const _0x243e87=_0x2e298a[_0x1744('0x16')],_0x4a2ce4=_0x243e87[_0x1744('0x8')][_0x1744('0xa')];if(!_0x4a2ce4||!_0x4a2ce4['is']('element',_0x1744('0x15')))continue;if(!_0x243e87[_0x1744('0x12')][_0x1744('0xb')](_0x243e87[_0x1744('0x8')]))continue;const _0x2d3eb2=_0x4899b5[_0x1744('0xd')]['schema'][_0x1744('0x1')](_0x243e87['end'],_0x1744('0x14'));if(_0x2d3eb2&&_0x2d3eb2['isCollapsed']){const _0x11a27c=_0x51bcf5[_0x1744('0x17')](_0x243e87[_0x1744('0x12')],_0x2d3eb2[_0x1744('0x12')]);_0x11a27c[_0x1744('0x5')](_0x243e87)||(_0x51bcf5['updateMarker'](_0x586ff6,{'range':_0x11a27c}),_0x3194a3=!0x0);}_0x3194a3||(_0x51bcf5[_0x1744('0x18')](_0x586ff6),_0x3194a3=!0x0);}return _0x3194a3;});}}
23
+ const _0x538b=['suggestion','start','getNearestSelectionRange','Title','newRange','locale','isCollapsed','schema','registerElementLabel','getChangedMarkers','updateMarker','createRange','get','model','has','isTouching','_splitMarkerName','registerPostFixer','_descriptionFactory','end','isEqual','nodeBefore','editor','removeMarker','plugins','document','afterInit','title-content'];(function(_0x38ffd6,_0x538bdb){const _0x1c9b59=function(_0x43b248){while(--_0x43b248){_0x38ffd6['push'](_0x38ffd6['shift']());}};_0x1c9b59(++_0x538bdb);}(_0x538b,0x153));const _0x1c9b=function(_0x38ffd6,_0x538bdb){_0x38ffd6=_0x38ffd6-0x0;let _0x1c9b59=_0x538b[_0x38ffd6];return _0x1c9b59;};import{Plugin as _0x49ca10}from'ckeditor5/src/core';import{getTranslation as _0x1f55f5}from'../utils/common-translations';export default class It extends _0x49ca10{[_0x1c9b('0x17')](){const _0x32ce1c=this[_0x1c9b('0x13')];if(!_0x32ce1c[_0x1c9b('0x15')][_0x1c9b('0xb')](_0x1c9b('0x0')))return;const _0x586139=_0x32ce1c[_0x1c9b('0x15')][_0x1c9b('0x9')]('TrackChangesEditing');_0x586139[_0x1c9b('0xf')][_0x1c9b('0x5')](_0x1c9b('0x18'),()=>_0x1f55f5(_0x32ce1c[_0x1c9b('0x2')],'ELEMENT_TITLE')),_0x32ce1c[_0x1c9b('0xa')][_0x1c9b('0x16')][_0x1c9b('0xe')](_0x33dc76=>{let _0x26c31a=!0x1;const _0x158cd9=Array['from'](_0x32ce1c[_0x1c9b('0xa')][_0x1c9b('0x16')]['differ'][_0x1c9b('0x6')]());for(const {name:_0x39ade7,data:_0x1d1b31}of _0x158cd9){const {group:_0x1cbcdf}=_0x586139[_0x1c9b('0xd')](_0x39ade7);if(_0x1c9b('0x19')!==_0x1cbcdf||!_0x1d1b31[_0x1c9b('0x1')])continue;const _0x59fe10=_0x1d1b31[_0x1c9b('0x1')],_0x1538fa=_0x59fe10['end'][_0x1c9b('0x12')];if(!_0x1538fa||!_0x1538fa['is']('element',_0x1c9b('0x18')))continue;if(!_0x59fe10[_0x1c9b('0x1a')][_0x1c9b('0xc')](_0x59fe10[_0x1c9b('0x10')]))continue;const _0x4624b6=_0x32ce1c[_0x1c9b('0xa')][_0x1c9b('0x4')][_0x1c9b('0x1b')](_0x59fe10['end'],'forward');if(_0x4624b6&&_0x4624b6[_0x1c9b('0x3')]){const _0x5b263f=_0x33dc76[_0x1c9b('0x8')](_0x59fe10[_0x1c9b('0x1a')],_0x4624b6['start']);_0x5b263f[_0x1c9b('0x11')](_0x59fe10)||(_0x33dc76[_0x1c9b('0x7')](_0x39ade7,{'range':_0x5b263f}),_0x26c31a=!0x0);}_0x26c31a||(_0x33dc76[_0x1c9b('0x14')](_0x39ade7),_0x26c31a=!0x0);}return _0x26c31a;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4192=['afterInit','get','has','TrackChangesEditing','enableCommand'];(function(_0x3501bd,_0x41924b){const _0x2e084c=function(_0x1a44f4){while(--_0x1a44f4){_0x3501bd['push'](_0x3501bd['shift']());}};_0x2e084c(++_0x41924b);}(_0x4192,0x142));const _0x2e08=function(_0x3501bd,_0x41924b){_0x3501bd=_0x3501bd-0x0;let _0x2e084c=_0x4192[_0x3501bd];return _0x2e084c;};import{Plugin as _0x57d043}from'ckeditor5/src/core';export default class vt extends _0x57d043{[_0x2e08('0x3')](){const _0x515f71=this['editor'],_0x462730=_0x515f71['plugins'][_0x2e08('0x4')](_0x2e08('0x1'));_0x515f71['plugins'][_0x2e08('0x0')]('UndoEditing')&&(_0x462730[_0x2e08('0x2')]('undo'),_0x462730[_0x2e08('0x2')]('redo'));}}
23
+ const _0x413f=['redo','has','UndoEditing','afterInit','TrackChangesEditing','enableCommand','undo','plugins','editor'];(function(_0x5d1d2b,_0x413fe7){const _0x43547d=function(_0x4e0efa){while(--_0x4e0efa){_0x5d1d2b['push'](_0x5d1d2b['shift']());}};_0x43547d(++_0x413fe7);}(_0x413f,0x1eb));const _0x4354=function(_0x5d1d2b,_0x413fe7){_0x5d1d2b=_0x5d1d2b-0x0;let _0x43547d=_0x413f[_0x5d1d2b];return _0x43547d;};import{Plugin as _0x1f5b9c}from'ckeditor5/src/core';export default class vt extends _0x1f5b9c{[_0x4354('0x7')](){const _0xdb7e7d=this[_0x4354('0x3')],_0x40ceae=_0xdb7e7d[_0x4354('0x2')]['get'](_0x4354('0x8'));_0xdb7e7d[_0x4354('0x2')][_0x4354('0x5')](_0x4354('0x6'))&&(_0x40ceae[_0x4354('0x0')](_0x4354('0x1')),_0x40ceae[_0x4354('0x0')](_0x4354('0x4')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f87=['isLimit','element','insert','consumable','activeMarkers','writer','previousPosition','push','includes','span','getWalker','ck-suggestion-marker--active','name','start','isAtEnd','mapper','toViewElement','listIndent','listItem','nextSibling','addClass','TrackChangesEditing','markerName','toViewPosition','hasAttribute','ck-suggestion-marker-','elementEnd','markerRange','getAttribute','schema','getItems','createRangeOn','isContent','model','createUIElement','plugins','get','item','type'];(function(_0xc344f6,_0x1f87fc){const _0x1fd5c7=function(_0xd3d162){while(--_0xd3d162){_0xc344f6['push'](_0xc344f6['shift']());}};_0x1fd5c7(++_0x1f87fc);}(_0x1f87,0x97));const _0x1fd5=function(_0xc344f6,_0x1f87fc){_0xc344f6=_0xc344f6-0x0;let _0x1fd5c7=_0x1f87[_0xc344f6];return _0x1fd5c7;};export function getRangesWithAttribute(_0x363ed3,_0x2b020b,_0x562092){const _0x145b2c=[];for(const _0x2618de of _0x2b020b[_0x1fd5('0x23')]())_0x2618de[_0x1fd5('0x1d')](_0x363ed3)&&_0x145b2c[_0x1fd5('0xc')](_0x562092[_0x1fd5('0x24')](_0x2618de));return _0x145b2c;}export function getElementsAffectedByListItemRename(_0x2d5324){const _0x511dcc=[];if(_0x2d5324['is']('element','listItem')){let _0x165e69=_0x2d5324['nextSibling'];for(;_0x165e69&&_0x165e69['is'](_0x1fd5('0x6'),_0x1fd5('0x17'))&&_0x165e69[_0x1fd5('0x21')](_0x1fd5('0x16'))>0x0;)_0x511dcc['push'](_0x165e69),_0x165e69=_0x165e69[_0x1fd5('0x18')];}return _0x511dcc;}export function downcastSplitMergeMarker(_0x3b1bfe,_0x28362b,{showActiveMarker:_0x3d3f4b=!0x0}={}){const _0xea9eaf=_0x3b1bfe[_0x1fd5('0x1')][_0x1fd5('0x2')](_0x1fd5('0x1a'));return(_0x56bcb6,_0x4296ee,_0x17f7f1)=>{if(!_0x17f7f1[_0x1fd5('0x8')]['test'](_0x4296ee['markerRange'],_0x56bcb6[_0x1fd5('0x11')]))return;const _0x966572=_0x4296ee['markerRange'][_0x1fd5('0xf')](),_0x24a5e1=_0x4296ee[_0x1fd5('0x20')][_0x1fd5('0x12')],_0x579957=_0x3b1bfe[_0x1fd5('0x26')][_0x1fd5('0x22')];let _0x448b7a=null,_0x2433c4=null,_0x5e4460=!0x1,_0x28e719=!0x1;for(const _0x248fbd of _0x966572){const _0x2ebeb6=_0x248fbd[_0x1fd5('0x3')];_0x5e4460=_0x5e4460||_0x579957[_0x1fd5('0x25')](_0x2ebeb6);const _0x2bcd1f=_0x17f7f1[_0x1fd5('0x14')][_0x1fd5('0x15')](_0x2ebeb6);if(_0x2bcd1f&&_0x2bcd1f['getCustomProperty']('addHighlight'))return;_0x1fd5('0x1f')==_0x248fbd[_0x1fd5('0x4')]&&(_0x579957['isBlock'](_0x2ebeb6)&&!_0x579957[_0x1fd5('0x5')](_0x2ebeb6)&&(_0x2ebeb6['nextSibling']||_0x24a5e1[_0x1fd5('0x13')]?_0x448b7a&&_0x448b7a['parent']==_0x2ebeb6||(_0x448b7a=_0x2ebeb6,_0x4ded04(_0x248fbd[_0x1fd5('0xb')]),_0x28e719=!0x0):_0x2433c4=_0x2433c4||_0x248fbd[_0x1fd5('0xb')]));}function _0x4ded04(_0x534644){const _0x57b785=_0x17f7f1[_0x1fd5('0xa')][_0x1fd5('0x0')](_0x1fd5('0xe'),{'class':_0x1fd5('0x1e')+_0x28362b}),_0xe61473=_0x17f7f1[_0x1fd5('0x14')][_0x1fd5('0x1c')](_0x534644);_0x3d3f4b&&_0xea9eaf[_0x1fd5('0x9')][_0x1fd5('0xd')](_0x4296ee[_0x1fd5('0x1b')])&&_0x17f7f1['writer'][_0x1fd5('0x19')](_0x1fd5('0x10'),_0x57b785),_0x17f7f1[_0x1fd5('0xa')][_0x1fd5('0x7')](_0xe61473,_0x57b785),_0x17f7f1[_0x1fd5('0x14')]['bindElementToMarker'](_0x57b785,_0x4296ee[_0x1fd5('0x1b')]);}_0x5e4460||_0x28e719||!_0x2433c4||_0x4ded04(_0x2433c4);};}
23
+ const _0x36bd=['elementEnd','toViewElement','createUIElement','start','nextSibling','insert','toViewPosition','type','ck-suggestion-marker--active','isBlock','bindElementToMarker','mapper','listIndent','parent','name','addClass','span','get','test','getItems','TrackChangesEditing','model','getAttribute','activeMarkers','markerName','includes','isContent','element','writer','markerRange','schema','getWalker','getCustomProperty','hasAttribute','listItem','item','push','previousPosition'];(function(_0x22dc1a,_0x36bda8){const _0x2f8056=function(_0x1cd70b){while(--_0x1cd70b){_0x22dc1a['push'](_0x22dc1a['shift']());}};_0x2f8056(++_0x36bda8);}(_0x36bd,0xf6));const _0x2f80=function(_0x22dc1a,_0x36bda8){_0x22dc1a=_0x22dc1a-0x0;let _0x2f8056=_0x36bd[_0x22dc1a];return _0x2f8056;};export function getRangesWithAttribute(_0x24c343,_0x1622fe,_0x2c4859){const _0x153f19=[];for(const _0x4294d0 of _0x1622fe[_0x2f80('0x1')]())_0x4294d0[_0x2f80('0xf')](_0x24c343)&&_0x153f19[_0x2f80('0x12')](_0x2c4859['createRangeOn'](_0x4294d0));return _0x153f19;}export function getElementsAffectedByListItemRename(_0x133bb7){const _0x236c49=[];if(_0x133bb7['is']('element',_0x2f80('0x10'))){let _0x1656c4=_0x133bb7[_0x2f80('0x18')];for(;_0x1656c4&&_0x1656c4['is'](_0x2f80('0x9'),_0x2f80('0x10'))&&_0x1656c4[_0x2f80('0x4')](_0x2f80('0x20'))>0x0;)_0x236c49[_0x2f80('0x12')](_0x1656c4),_0x1656c4=_0x1656c4[_0x2f80('0x18')];}return _0x236c49;}export function downcastSplitMergeMarker(_0x3b2505,_0x5deb3d,{showActiveMarker:_0x143a7f=!0x0}={}){const _0x207ba9=_0x3b2505['plugins'][_0x2f80('0x25')](_0x2f80('0x2'));return(_0x157393,_0x396550,_0x50e86d)=>{if(!_0x50e86d['consumable'][_0x2f80('0x0')](_0x396550[_0x2f80('0xb')],_0x157393[_0x2f80('0x22')]))return;const _0x2d60ef=_0x396550[_0x2f80('0xb')][_0x2f80('0xd')](),_0x4b5b7c=_0x396550[_0x2f80('0xb')][_0x2f80('0x17')],_0xe415f4=_0x3b2505[_0x2f80('0x3')][_0x2f80('0xc')];let _0xf5fceb=null,_0x2c8641=null,_0x4cbc00=!0x1,_0x8752d0=!0x1;for(const _0x476e98 of _0x2d60ef){const _0x3c4c35=_0x476e98[_0x2f80('0x11')];_0x4cbc00=_0x4cbc00||_0xe415f4[_0x2f80('0x8')](_0x3c4c35);const _0x4e0508=_0x50e86d[_0x2f80('0x1f')][_0x2f80('0x15')](_0x3c4c35);if(_0x4e0508&&_0x4e0508[_0x2f80('0xe')]('addHighlight'))return;_0x2f80('0x14')==_0x476e98[_0x2f80('0x1b')]&&(_0xe415f4[_0x2f80('0x1d')](_0x3c4c35)&&!_0xe415f4['isLimit'](_0x3c4c35)&&(_0x3c4c35[_0x2f80('0x18')]||_0x4b5b7c['isAtEnd']?_0xf5fceb&&_0xf5fceb[_0x2f80('0x21')]==_0x3c4c35||(_0xf5fceb=_0x3c4c35,_0x2b033c(_0x476e98[_0x2f80('0x13')]),_0x8752d0=!0x0):_0x2c8641=_0x2c8641||_0x476e98['previousPosition']));}function _0x2b033c(_0x3880b8){const _0x3813a4=_0x50e86d['writer'][_0x2f80('0x16')](_0x2f80('0x24'),{'class':'ck-suggestion-marker-'+_0x5deb3d}),_0x26213f=_0x50e86d['mapper'][_0x2f80('0x1a')](_0x3880b8);_0x143a7f&&_0x207ba9[_0x2f80('0x5')][_0x2f80('0x7')](_0x396550[_0x2f80('0x6')])&&_0x50e86d[_0x2f80('0xa')][_0x2f80('0x23')](_0x2f80('0x1c'),_0x3813a4),_0x50e86d[_0x2f80('0xa')][_0x2f80('0x19')](_0x26213f,_0x3813a4),_0x50e86d[_0x2f80('0x1f')][_0x2f80('0x1e')](_0x3813a4,_0x396550[_0x2f80('0x6')]);}_0x4cbc00||_0x8752d0||!_0x2c8641||_0x2b033c(_0x2c8641);};}
@@ -262,12 +262,33 @@ export interface SuggestionOptions {
262
262
  onAttributesChange: Function;
263
263
  }
264
264
  export interface SuggestionJSON {
265
+ /**
266
+ * Suggestion ID.
267
+ */
265
268
  id: string;
269
+ /**
270
+ * Contains the information about the type and subtype of the suggestion.
271
+ */
266
272
  type: string;
273
+ /**
274
+ * The ID of the author.
275
+ */
267
276
  authorId: string;
277
+ /**
278
+ * Date when the suggestion was saved in the database.
279
+ */
268
280
  createdAt: Date | null;
281
+ /**
282
+ * Informs whether suggestion has at least one comment.
283
+ */
269
284
  hasComments?: boolean;
285
+ /**
286
+ * Additional suggestion data.
287
+ */
270
288
  data?: FormatData | null;
289
+ /**
290
+ * Custom suggestion attributes.
291
+ */
271
292
  attributes: {
272
293
  [k: string]: unknown;
273
294
  };