@ckeditor/ckeditor5-track-changes 35.4.0 → 36.0.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 (156) hide show
  1. package/build/track-changes.js +3 -3
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/az.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fi.js +1 -1
  15. package/build/translations/fr.js +1 -1
  16. package/build/translations/gl.js +1 -1
  17. package/build/translations/he.js +1 -1
  18. package/build/translations/hi.js +1 -1
  19. package/build/translations/hr.js +1 -1
  20. package/build/translations/hu.js +1 -1
  21. package/build/translations/id.js +1 -1
  22. package/build/translations/it.js +1 -1
  23. package/build/translations/ja.js +1 -1
  24. package/build/translations/ko.js +1 -1
  25. package/build/translations/lt.js +1 -1
  26. package/build/translations/lv.js +1 -1
  27. package/build/translations/ms.js +1 -1
  28. package/build/translations/nl.js +1 -1
  29. package/build/translations/no.js +1 -1
  30. package/build/translations/pl.js +1 -1
  31. package/build/translations/pt-br.js +1 -1
  32. package/build/translations/pt.js +1 -1
  33. package/build/translations/ro.js +1 -1
  34. package/build/translations/ru.js +1 -1
  35. package/build/translations/sk.js +1 -1
  36. package/build/translations/sr-latn.js +1 -1
  37. package/build/translations/sr.js +1 -1
  38. package/build/translations/sv.js +1 -1
  39. package/build/translations/th.js +1 -1
  40. package/build/translations/tk.js +1 -1
  41. package/build/translations/tr.js +1 -1
  42. package/build/translations/tt.js +1 -1
  43. package/build/translations/uk.js +1 -1
  44. package/build/translations/ur.js +1 -1
  45. package/build/translations/vi.js +1 -1
  46. package/build/translations/zh-cn.js +1 -1
  47. package/build/translations/zh.js +1 -1
  48. package/lang/contexts.json +6 -3
  49. package/lang/translations/ar.po +16 -4
  50. package/lang/translations/az.po +16 -4
  51. package/lang/translations/bg.po +16 -4
  52. package/lang/translations/bn.po +16 -4
  53. package/lang/translations/ca.po +16 -4
  54. package/lang/translations/cs.po +16 -4
  55. package/lang/translations/da.po +16 -4
  56. package/lang/translations/de.po +16 -4
  57. package/lang/translations/el.po +16 -4
  58. package/lang/translations/en-au.po +16 -4
  59. package/lang/translations/en.po +16 -4
  60. package/lang/translations/es.po +16 -4
  61. package/lang/translations/et.po +16 -4
  62. package/lang/translations/fi.po +16 -4
  63. package/lang/translations/fr.po +16 -4
  64. package/lang/translations/gl.po +16 -4
  65. package/lang/translations/he.po +16 -4
  66. package/lang/translations/hi.po +16 -4
  67. package/lang/translations/hr.po +16 -4
  68. package/lang/translations/hu.po +16 -4
  69. package/lang/translations/id.po +16 -4
  70. package/lang/translations/it.po +16 -4
  71. package/lang/translations/ja.po +16 -4
  72. package/lang/translations/ko.po +16 -4
  73. package/lang/translations/lt.po +16 -4
  74. package/lang/translations/lv.po +16 -4
  75. package/lang/translations/ms.po +16 -4
  76. package/lang/translations/nl.po +16 -4
  77. package/lang/translations/no.po +16 -4
  78. package/lang/translations/pl.po +16 -4
  79. package/lang/translations/pt-br.po +16 -4
  80. package/lang/translations/pt.po +16 -4
  81. package/lang/translations/ro.po +16 -4
  82. package/lang/translations/ru.po +16 -4
  83. package/lang/translations/sk.po +16 -4
  84. package/lang/translations/sr-latn.po +32 -20
  85. package/lang/translations/sr.po +33 -21
  86. package/lang/translations/sv.po +16 -4
  87. package/lang/translations/th.po +16 -4
  88. package/lang/translations/tk.po +16 -4
  89. package/lang/translations/tr.po +16 -4
  90. package/lang/translations/tt.po +16 -4
  91. package/lang/translations/uk.po +16 -4
  92. package/lang/translations/ur.po +16 -4
  93. package/lang/translations/vi.po +16 -4
  94. package/lang/translations/zh-cn.po +16 -4
  95. package/lang/translations/zh.po +16 -4
  96. package/package.json +4 -4
  97. package/src/commands/acceptsuggestioncommand.js +2 -2
  98. package/src/commands/discardsuggestioncommand.js +2 -2
  99. package/src/commands/executeonallsuggestionscommand.js +2 -2
  100. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  101. package/src/commands/trackchangescommand.js +2 -2
  102. package/src/index.js +1 -1
  103. package/src/integrations/alignment.js +2 -2
  104. package/src/integrations/basicstyles.js +2 -2
  105. package/src/integrations/blockquote.js +2 -2
  106. package/src/integrations/ckbox.js +2 -2
  107. package/src/integrations/codeblock.js +2 -2
  108. package/src/integrations/comments.js +2 -2
  109. package/src/integrations/deletecommand.js +2 -2
  110. package/src/integrations/documentlist.js +2 -2
  111. package/src/integrations/documentlistproperties.js +2 -2
  112. package/src/integrations/entercommand.js +2 -2
  113. package/src/integrations/findandreplace.js +23 -0
  114. package/src/integrations/font.js +2 -2
  115. package/src/integrations/heading.js +2 -2
  116. package/src/integrations/highlight.js +2 -2
  117. package/src/integrations/horizontalline.js +2 -2
  118. package/src/integrations/htmlembed.js +2 -2
  119. package/src/integrations/image.js +2 -2
  120. package/src/integrations/imagereplace.js +23 -0
  121. package/src/integrations/importword.js +2 -2
  122. package/src/integrations/indent.js +2 -2
  123. package/src/integrations/inputcommand.js +2 -2
  124. package/src/integrations/link.js +2 -2
  125. package/src/integrations/list.js +2 -2
  126. package/src/integrations/listproperties.js +2 -2
  127. package/src/integrations/mediaembed.js +2 -2
  128. package/src/integrations/mention.js +2 -2
  129. package/src/integrations/pagebreak.js +2 -2
  130. package/src/integrations/paragraph.js +2 -2
  131. package/src/integrations/removeformat.js +2 -2
  132. package/src/integrations/restrictededitingmode.js +2 -2
  133. package/src/integrations/shiftentercommand.js +2 -2
  134. package/src/integrations/standardeditingmode.js +2 -2
  135. package/src/integrations/style.js +2 -2
  136. package/src/integrations/table.js +2 -2
  137. package/src/integrations/tablecaption.js +2 -2
  138. package/src/integrations/tableclipboard.js +2 -2
  139. package/src/integrations/tablecolumnresize.js +2 -2
  140. package/src/integrations/tableheadings.js +2 -2
  141. package/src/integrations/tablemergesplit.js +2 -2
  142. package/src/integrations/tableproperties.js +23 -0
  143. package/src/integrations/title.js +2 -2
  144. package/src/integrations/undo.js +2 -2
  145. package/src/integrations/utils.js +2 -2
  146. package/src/suggestion.js +2 -2
  147. package/src/suggestiondescriptionfactory.js +2 -2
  148. package/src/trackchanges.js +2 -2
  149. package/src/trackchangesdata.js +2 -2
  150. package/src/trackchangesediting.js +2 -2
  151. package/src/trackchangesui.js +2 -2
  152. package/src/ui/suggestioncontroller.js +2 -2
  153. package/src/ui/view/basesuggestionthreadview.js +2 -2
  154. package/src/ui/view/suggestionthreadview.js +2 -2
  155. package/src/utils/common-translations.js +2 -2
  156. package/src/utils/utils.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e09=['reduce','has','redo','suggestion','findAncestor','deletionRanges','isInContent','tablePaste','differ','deletion','getRanges','documentSelection','clipboardOutput','activeMarkers','insertRows','next','setAttributes','createRange','isEqual','batch','options','columns','remove','change','elementToElement','insertion','_getCoordsForCells','_tablePostFixingSubtypes','markers','set','selection','oldRange','rows','_replaceTableSlotCell','tableCellBorderColor','getColumns','getContainedElement','columnInsertionIndexes','previous','createRangeIn','trackChanges','showSuggestionHighlights','_splitMarkerName','discard','registerPostFixer','isEmpty','tablePasteChainId','fill','plugins','first','tablePasteColumn','push','registerCustomCallback','subType','join','for','rootName','insertContent','ck-suggestion-marker--active','ck-suggestion-marker-insertion','afterInit','view','getItems','endRow','model','every','getMarkers','cell','suggestionLoaded','getChildren','_isForcedDefaultExecutionBlock','markerName','table','root','formatBlock','insert','registerDescriptionCallback','rowInsertionIndexes','removeMarker','get','row','locale','editor','editing','getChangedMarkers','editingDowncast','register','markMultiRangeDeletion','tableCellSuggestion','forceDefaultExecution','getSuggestion','createElement','length','filter','markMultiRangeInsertion','name','getAttributes','document','type','newRange','listenTo','element','from','high','removeColumns','getRange','accept','map','Users','TrackChangesEditing','dataDowncast','createRangeOn','paragraph','getSuggestions','attributes','startsWith','author','commands','low','tablePasteRow','find','position','tablePasteCell','return','updateMarker','createTableWalker','some','tableCellVerticalAlignment','getChild','getAllAdjacentSuggestions','_suggestionFactory','tableCellBackgroundColor','start','nextSibling','getTableIfOnlyTableInContent','suggestion:formatBlock:tablePasteCell','cells','*Replace\x20table\x20cells*','content','getShiftedBy','tableCellBorderStyle','includes','getColumnIndexes','fromEntries','$graveyard','tableCellPadding','add','last','TableClipboard','tableCell','unwrap','suggestion-td','insertColumns','tableCellBorderWidth','createPositionBefore','_createdBatches','conversion','getRows','getRowIndexes','hasSuggestion','requires','columnInsertionRanges','value','end','markerAttributes'];(function(_0x49b3a2,_0x2e0908){const _0x35db68=function(_0x2d5e73){while(--_0x2d5e73){_0x49b3a2['push'](_0x49b3a2['shift']());}};_0x35db68(++_0x2e0908);}(_0x2e09,0x199));const _0x35db=function(_0x49b3a2,_0x2e0908){_0x49b3a2=_0x49b3a2-0x0;let _0x35db68=_0x2e09[_0x49b3a2];return _0x35db68;};import{getTranslation as _0x305469}from'../utils/common-translations';import{Plugin as _0x28fe40}from'ckeditor5/src/core';import _0x3178ed from'./table';import{uid as _0x1dfe82,priorities as _0x4dc299}from'ckeditor5/src/utils';const le=[_0x35db('0x4a'),_0x35db('0x78'),_0x35db('0x3d'),'tableCellHorizontalAlignment',_0x35db('0x30'),_0x35db('0x34'),_0x35db('0x42')],ae=Object[_0x35db('0x40')](le[_0x35db('0x1c')](_0xadfbe6=>[_0xadfbe6,null]));export default class pt extends _0x28fe40{static get[_0x35db('0x51')](){return[_0x3178ed];}[_0x35db('0x92')](){const _0x55617f=this[_0x35db('0x3')];if(!_0x55617f[_0x35db('0x86')]['has'](_0x35db('0x45')))return;const _0xc47c7b=_0x55617f['plugins'][_0x35db('0x0')](_0x35db('0x1e')),_0xb69154=_0x55617f['plugins']['get']('TableUtils'),_0x26e2e9=_0x55617f['plugins'][_0x35db('0x0')](_0x3178ed),_0x575eba=_0x55617f[_0x35db('0x86')][_0x35db('0x0')](_0x35db('0x45'));_0x26e2e9[_0x35db('0x71')]['push'](_0x35db('0x28'),_0x35db('0x88')),_0x55617f[_0x35db('0x96')]['schema'][_0x35db('0x7')]('tableCellSuggestion',{'allowIn':_0x35db('0x46'),'allowContentOf':_0x35db('0x46'),'isLimit':!0x0}),_0x55617f[_0x35db('0x4d')][_0x35db('0x6e')]({'model':'tableCellSuggestion','view':_0x35db('0x48')});let _0x1452e6=null;_0x55617f[_0x35db('0x96')]['on'](_0x35db('0x8f'),(_0x2f239d,_0x415a35)=>{const [_0x1c71e1,_0x2e2761]=_0x415a35,_0x4f70b3=_0x415a35[_0x415a35[_0x35db('0xd')]-0x1];_0x4f70b3&&_0x4f70b3[_0x35db('0xa')]||_0xc47c7b[_0x35db('0x9c')]||this[_0x35db('0x3')][_0x35db('0x26')][_0x35db('0x0')](_0x35db('0x7e'))[_0x35db('0x53')]&&function(_0x17b42b,_0x46f660,_0x350c44,_0x1d6728,_0x5694be){if(_0x46f660&&!_0x46f660['is'](_0x35db('0x61')))return!0x1;const _0x5edb22=_0x5694be[_0x35db('0x37')](_0x17b42b,_0x350c44);if(!_0x5edb22||!fe(_0x5edb22,null,_0x1d6728))return!0x1;const _0x3d2c64=_0x1d6728['getSelectionAffectedTableCells'](_0x350c44['document'][_0x35db('0x74')]);if(!_0x3d2c64[_0x35db('0xd')])return!0x1;const _0x51c5aa=_0x3d2c64[0x0][_0x35db('0x5a')]('table'),_0x2210b6=_0x1d6728[_0x35db('0x4f')](_0x3d2c64),_0xdbbad7=_0x1d6728[_0x35db('0x3f')](_0x3d2c64),_0x295750={'startRow':_0x2210b6[_0x35db('0x87')],'endRow':_0x2210b6['last'],'startColumn':_0xdbbad7[_0x35db('0x87')],'endColumn':_0xdbbad7[_0x35db('0x44')]};return 0x1==_0x3d2c64[_0x35db('0xd')]&&(_0x295750[_0x35db('0x95')]+=_0x1d6728[_0x35db('0x4e')](_0x5edb22)-0x1,_0x295750['endColumn']+=_0x1d6728[_0x35db('0x79')](_0x5edb22)-0x1),fe(_0x51c5aa,_0x295750,_0x1d6728);}(_0x1c71e1,_0x2e2761,_0x55617f['model'],_0xb69154,_0x575eba)&&(_0x2f239d['stop'](),_0x1452e6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x55617f[_0x35db('0x96')][_0x35db('0x6d')](()=>{_0x55617f[_0x35db('0x96')][_0x35db('0x8f')](_0x415a35[0x0],_0x415a35[0x1],_0x415a35[0x2],_0x415a35[0x3],{'forceDefaultExecution':!0x0});const _0x371e19=_0x1dfe82(),{rowInsertionRanges:_0x2c89ad,columnInsertionRanges:_0x5ac65a,insertionRanges:_0x2fc5f9,deletionRanges:_0x4cdf35,cells:_0x4ce2ec}=_0x1452e6;_0x2c89ad['length']&&_0xc47c7b[_0x35db('0xf')](_0x2c89ad,_0x35db('0x28'),{'tablePasteChainId':_0x371e19}),_0x5ac65a[_0x35db('0xd')]&&_0xc47c7b[_0x35db('0xf')](_0x5ac65a,'tablePasteColumn',{'tablePasteChainId':_0x371e19}),_0x2fc5f9[_0x35db('0xd')]&&_0xc47c7b[_0x35db('0xf')](_0x2fc5f9,'tablePaste',{'tablePasteChainId':_0x371e19,'skipNestingCheck':!0x0}),_0x4cdf35[_0x35db('0xd')]&&_0xc47c7b[_0x35db('0x8')](_0x4cdf35,_0x35db('0x5d'),{'tablePasteChainId':_0x371e19,'skipNestingCheck':!0x0});const _0x105b43=_0xc47c7b['markMultiRangeBlockFormat'](_0x4ce2ec[_0x35db('0x1c')](({element:_0xa8f72a})=>_0xa8f72a),{'formatGroupId':_0x1dfe82()},[],_0x35db('0x2b'),{'tablePasteChainId':_0x371e19});if(_0x105b43){const _0x90a2b2=_0x105b43['getMarkers'](),_0x513059=[];for(const {element:_0x1a3f79,attributes:_0x520f02}of _0x4ce2ec){if(!_0x520f02)continue;const _0x247f48=_0x55617f[_0x35db('0x96')][_0x35db('0x20')](_0x1a3f79),_0xd67f9c=_0x90a2b2[_0x35db('0x29')](_0x3f9242=>_0x3f9242[_0x35db('0x1a')]()[_0x35db('0x68')](_0x247f48));_0xd67f9c&&_0x513059[_0x35db('0x89')]([_0xd67f9c[_0x35db('0x10')],_0x520f02]);}_0x513059[_0x35db('0xd')]&&_0x105b43['setAttribute'](_0x35db('0x55'),Object[_0x35db('0x40')](_0x513059));}_0x1452e6=null;}));},{'priority':_0x4dc299[_0x35db('0x18')]+0xa}),_0x55617f[_0x35db('0x86')][_0x35db('0x0')]('TableClipboard')['on'](_0x35db('0x77'),(_0xcba8d0,_0x59b53f)=>{const [_0xdbb9a9,_0x54dfcf,,_0x5f40a0]=_0x59b53f;if(!_0x1452e6)return;_0xcba8d0['stop']();const _0x4e52fb=_0xdbb9a9[_0x35db('0x99')],_0x50a15b=_0x54dfcf,_0xefa11f=ce(_0x4e52fb),_0x2136ac=ce(_0x50a15b);_0xcba8d0[_0x35db('0x2c')]=_0x4e52fb;let _0x585976=null,_0x42bbcc=null;if(_0x2136ac||_0xefa11f){if(_0xefa11f&&!_0x2136ac){_0x5f40a0[_0x35db('0x6c')](_0x4e52fb[_0x35db('0x31')](0x0));for(const _0x2c2c9f of Array['from'](_0x50a15b[_0x35db('0x9b')]()))_0x5f40a0['insert'](_0x2c2c9f,_0x4e52fb,'end');const _0x333ae1=_0x1452e6[_0x35db('0xa3')][_0x35db('0x3e')](_0xdbb9a9[_0x35db('0x1')]),_0xa6d334=_0x1452e6[_0x35db('0x7b')][_0x35db('0x3e')](_0xdbb9a9['column']);_0x333ae1||_0xa6d334||(_0x585976=_0x5f40a0[_0x35db('0x7d')](_0x4e52fb));}else _0x2136ac&&!_0xefa11f&&(_0x42bbcc=_0x5f40a0[_0x35db('0x7d')](_0x4e52fb));}else{const _0x3c3b0f=_0x5f40a0[_0x35db('0xc')](_0x35db('0x9')),_0x2aed02=_0x5f40a0[_0x35db('0xc')](_0x35db('0x9'));_0x5f40a0['wrap'](_0x5f40a0[_0x35db('0x7d')](_0x4e52fb),_0x2aed02),_0x5f40a0[_0x35db('0xa1')](_0x3c3b0f,_0x4e52fb,0x0);for(const _0x2952d4 of Array[_0x35db('0x17')](_0x50a15b[_0x35db('0x9b')]()))_0x5f40a0['insert'](_0x2952d4,_0x3c3b0f,_0x35db('0x54'));_0x585976=_0x5f40a0[_0x35db('0x20')](_0x3c3b0f),_0x42bbcc=_0x5f40a0[_0x35db('0x20')](_0x2aed02);}const _0x5171d0=Array[_0x35db('0x17')](_0x50a15b[_0x35db('0x11')]())['filter'](([_0x4d497e])=>le[_0x35db('0x3e')](_0x4d497e));_0x1452e6[_0x35db('0x39')][_0x35db('0x89')]({'element':_0x4e52fb,'attributes':_0x5171d0['length']?Object[_0x35db('0x40')](_0x5171d0):null}),_0x585976&&_0x1452e6['insertionRanges'][_0x35db('0x89')](_0x585976),_0x42bbcc&&_0x1452e6[_0x35db('0x5b')][_0x35db('0x89')](_0x42bbcc);},{'priority':_0x35db('0x18')}),_0xb69154['on'](_0x35db('0x49'),(_0x20a995,_0x54ed9b)=>{const [_0xe8dbf4,_0x1374da={}]=_0x54ed9b;if(!_0x1452e6)return;const _0x1d1282=_0x1374da['at']||0x0,_0x38444c=_0x1374da[_0x35db('0x6b')]||0x1;_0x1452e6[_0x35db('0x7b')]=new Array(_0x38444c)['fill'](_0x1d1282)[_0x35db('0x1c')]((_0x2028f4,_0x15205c)=>_0x2028f4+_0x15205c);for(const {cell:_0x491b1a}of _0xb69154[_0x35db('0x2e')](_0xe8dbf4,{'startColumn':_0x1d1282,'endColumn':_0x1d1282+_0x38444c-0x1}))_0x1452e6[_0x35db('0x52')]['push'](_0x55617f[_0x35db('0x96')][_0x35db('0x20')](_0x491b1a));},{'priority':'low'}),_0xb69154['on'](_0x35db('0x64'),(_0x4bbb58,_0x281a6c)=>{const [_0x3589be,_0x23c201={}]=_0x281a6c;if(!_0x1452e6)return;const _0x3930ab=_0x23c201['at']||0x0,_0x2d82fa=_0x23c201[_0x35db('0x76')]||0x1;_0x1452e6['rowInsertionIndexes']=new Array(_0x2d82fa)[_0x35db('0x85')](_0x3930ab)['map']((_0x21cf6c,_0x2ecbd3)=>_0x21cf6c+_0x2ecbd3);for(const {cell:_0x71ead7}of _0xb69154['createTableWalker'](_0x3589be,{'startRow':_0x3930ab,'endRow':_0x3930ab+_0x2d82fa-0x1}))_0x1452e6['rowInsertionRanges'][_0x35db('0x89')](_0x55617f[_0x35db('0x96')]['createRangeOn'](_0x71ead7));},{'priority':_0x35db('0x27')}),_0xc47c7b['_descriptionFactory'][_0x35db('0xa2')](_0x5aff06=>{if(_0x5aff06[_0x35db('0x8b')]&&_0x5aff06[_0x35db('0x8b')][_0x35db('0x24')]('tablePaste'))return _0x5aff06['previous']?{}:{'type':_0x35db('0x6f'),'content':_0x305469(_0x55617f[_0x35db('0x2')],_0x35db('0x3a'))};});const _0x18541f=()=>{};for(const _0x45c9ec of[_0x35db('0x5d'),_0x35db('0x88'),_0x35db('0x28'),_0x35db('0x2b')])_0xc47c7b['_suggestionFactory'][_0x35db('0x8a')](_0x35db('0x6f'),_0x45c9ec,'join',_0x18541f),_0xc47c7b['_suggestionFactory'][_0x35db('0x8a')](_0x35db('0x5f'),_0x45c9ec,_0x35db('0x8c'),_0x18541f);_0xc47c7b[_0x35db('0x33')][_0x35db('0x8a')](_0x35db('0xa0'),'tablePasteCell',_0x35db('0x81'),_0x18541f),_0xc47c7b['_suggestionFactory'][_0x35db('0x8a')](_0x35db('0xa0'),'tablePasteCell',_0x35db('0x1b'),(_0x5384ee,_0x7963ba,_0x2841ad)=>{const _0x1c6458=_0x5384ee['map'](_0x731b97=>_0x731b97[_0x35db('0x7a')]())['filter'](_0x317edc=>_0x317edc),_0x3359eb=new Map(_0x1c6458[_0x35db('0x1c')](_0x259429=>[_0x259429,null]));if(_0x1452e6)for(const {element:_0x333ef6,attributes:_0x2ae4e2}of _0x1452e6[_0x35db('0x39')])_0x2ae4e2&&_0x3359eb[_0x35db('0x73')](_0x333ef6,_0x2ae4e2);else{if(_0x2841ad&&_0x2841ad[_0x35db('0x55')])for(const [_0x414c31,_0x12f469]of Object['entries'](_0x2841ad[_0x35db('0x55')])){const _0x29f529=_0x55617f[_0x35db('0x96')][_0x35db('0x72')]['get'](_0x414c31),_0x20f67c=_0x29f529?_0x29f529[_0x35db('0x1a')]()[_0x35db('0x7a')]():null;_0x20f67c&&_0x3359eb[_0x35db('0x73')](_0x20f67c,_0x12f469);}}_0x55617f[_0x35db('0x96')][_0x35db('0x6d')](_0x41f749=>{for(const [_0x34107a,_0x2bd5d8]of _0x3359eb)_0x41f749[_0x35db('0x66')]({...ae,..._0x2bd5d8},_0x34107a);});});const _0x3734fd=(_0x5d3d83,_0x5d4006)=>{_0xc47c7b['_suggestionFactory'][_0x35db('0x8a')](_0x5d3d83,_0x35db('0x5d'),_0x5d4006,(_0x296c98,_0x3ea29d,_0x522c3d)=>{_0x55617f['model'][_0x35db('0x6d')](_0x50991f=>{const _0x34a89c=[];for(const _0x2e6449 of _0x296c98){const _0x24c5b1=_0x2e6449[_0x35db('0x35')]['nodeAfter'];_0x24c5b1['is'](_0x35db('0x16'),_0x35db('0x9'))&&_0x34a89c[_0x35db('0x89')](_0x24c5b1);}_0xc47c7b[_0x35db('0x33')]['getSuggestionCallback'](_0x5d3d83,null,_0x5d4006)(_0x296c98,_0x3ea29d,_0x522c3d);for(const _0x348a14 of _0x34a89c)_0x35db('0x41')!=_0x348a14[_0x35db('0x9f')][_0x35db('0x8e')]&&_0x50991f[_0x35db('0x47')](_0x348a14);});});};_0x3734fd(_0x35db('0x6f'),_0x35db('0x1b')),_0x3734fd(_0x35db('0x6f'),_0x35db('0x81')),_0x3734fd(_0x35db('0x5f'),'accept'),_0x3734fd(_0x35db('0x5f'),_0x35db('0x81')),_0xc47c7b['_suggestionFactory'][_0x35db('0x8a')](_0x35db('0x6f'),_0x35db('0x28'),_0x35db('0x81'),_0xf04e0b=>{const _0x4cd2b2=_0xf04e0b[_0x35db('0x1c')](_0x418326=>_0x418326[_0x35db('0x7a')]()),_0x4338a5=_0x4cd2b2[0x0][_0x35db('0x5a')](_0x35db('0x9e')),{minRow:_0x47964d,maxRow:_0x486855}=_0x26e2e9['_getCoordsForCells'](_0x4cd2b2);_0xb69154['removeRows'](_0x4338a5,{'at':_0x47964d,'rows':_0x486855-_0x47964d+0x1});}),_0xc47c7b[_0x35db('0x33')][_0x35db('0x8a')](_0x35db('0x6f'),_0x35db('0x88'),_0x35db('0x81'),_0x4bb2e5=>{const _0xec0c59=_0x4bb2e5[_0x35db('0x1c')](_0x157915=>_0x157915[_0x35db('0x7a')]()),_0x42ed5b=_0xec0c59[0x0][_0x35db('0x5a')](_0x35db('0x9e')),{minColumn:_0x63965f,maxColumn:_0x1b6fc2}=_0x26e2e9[_0x35db('0x70')](_0xec0c59);_0xb69154[_0x35db('0x19')](_0x42ed5b,{'at':_0x63965f,'columns':_0x1b6fc2-_0x63965f+0x1});});const _0x5a1b72=(_0x4c0aa8,_0x41a84c)=>{if(!_0x41a84c[_0x35db('0x8b')]||!_0x41a84c[_0x35db('0x8b')][_0x35db('0x24')]('tablePaste'))return;const _0x1ca691=_0x41a84c['attributes'][_0x35db('0x84')],_0x14c894=_0xc47c7b[_0x35db('0x22')]()['filter'](_0x2ba2fb=>_0x2ba2fb[_0x35db('0x5c')]&&_0x2ba2fb[_0x35db('0x23')]&&_0x2ba2fb[_0x35db('0x23')][_0x35db('0x84')]==_0x1ca691);_0x14c894['length']&&_0x41a84c[_0x35db('0x32')]()[_0x35db('0xd')]!=_0x14c894['length']&&_0x14c894[_0x35db('0x56')]((_0x2d835a,_0x429793)=>(_0x2d835a[_0x35db('0x65')]=_0x429793,_0x429793[_0x35db('0x7c')]=_0x2d835a,_0x429793));};function _0xc97f1d(_0x1427b0,{showActiveMarker:_0x25c69b=!0x0}={}){const {id:_0x512e9d}=_0xc47c7b[_0x35db('0x80')](_0x1427b0[_0x35db('0x9d')]),_0x470303=['ck-suggestion-marker',_0x35db('0x91')],_0xbda9c3=_0xc47c7b[_0x35db('0x63')][_0x35db('0x3e')](_0x1427b0[_0x35db('0x9d')]);return _0xbda9c3&&_0x470303[_0x35db('0x89')](_0x35db('0x90')),{'classes':_0x470303,'attributes':{'data-suggestion':_0x512e9d},'priority':_0xbda9c3&&_0x25c69b?0xbc2:0xbb8};}_0xc47c7b['on'](_0x35db('0x9a'),_0x5a1b72,{'priority':'high'}),_0xc47c7b['on']('suggestionUnloaded',_0x5a1b72,{'priority':_0x35db('0x18')}),_0x55617f['model']['document'][_0x35db('0x82')](()=>{let _0x402255=!0x1;const _0x4a940d=Array['from'](_0x55617f['model'][_0x35db('0x12')]['differ'][_0x35db('0x5')]());for(const {name:_0x422e45,data:_0x5d8dc1}of _0x4a940d){const {group:_0xce6ba1,type:_0x367d82,id:_0x1a1d2f}=_0xc47c7b[_0x35db('0x80')](_0x422e45);if(_0x35db('0x59')!=_0xce6ba1||'deletion'!=_0x367d82||_0x5d8dc1[_0x35db('0x75')])continue;if(!_0xc47c7b[_0x35db('0x50')](_0x1a1d2f))continue;const _0x4eb251=_0xc47c7b[_0x35db('0xb')](_0x1a1d2f)[_0x35db('0x60')](),_0x29cc3b=_0x55617f[_0x35db('0x86')][_0x35db('0x0')](_0x35db('0x1d'))['me'];for(const _0xb78eb6 of _0xc47c7b[_0x35db('0x22')]()){if(!_0xb78eb6[_0x35db('0x5c')]||_0xb78eb6[_0x35db('0x25')]!=_0x29cc3b)continue;if(_0x35db('0xa0')!=_0xb78eb6['type']||_0x35db('0x2b')!=_0xb78eb6[_0x35db('0x8b')])continue;if(_0xb78eb6[_0x35db('0x60')]()[_0x35db('0x97')](_0x4919d5=>_0x4eb251[_0x35db('0x2f')](_0x2d56d2=>_0x2d56d2['containsRange'](_0x4919d5,!0x0))))for(const _0x13dff2 of _0xb78eb6[_0x35db('0x32')]())_0x13dff2['isInContent']&&(_0x13dff2['discard'](),_0x402255=!0x0);}}return _0x402255;}),_0x55617f['model'][_0x35db('0x12')][_0x35db('0x82')](_0x48578e=>{const _0x562450=_0x55617f[_0x35db('0x26')]['get'](_0x35db('0x58'));if(!_0x562450||!_0x562450[_0x35db('0x4c')][_0x35db('0x57')](_0x48578e[_0x35db('0x69')]))return!0x1;let _0x29c0f0=!0x1;const _0x278d2b=_0x55617f['plugins'][_0x35db('0x0')](_0x35db('0x1d'))['me'],_0x1f0ef9=_0x55617f[_0x35db('0x96')]['document'][_0x35db('0x5e')]['getChanges'](),_0xa2b3a3=Array['from'](_0x55617f[_0x35db('0x96')][_0x35db('0x12')][_0x35db('0x5e')][_0x35db('0x5')]())[_0x35db('0xe')](({name:_0xfeb551,data:_0x58fa60})=>{const {group:_0x27215f,subType:_0x515674,authorId:_0x56a597}=_0xc47c7b[_0x35db('0x80')](_0xfeb551);return _0x35db('0x59')==_0x27215f&&_0x35db('0x5d')==_0x515674&&_0x56a597==_0x278d2b['id']&&!_0x58fa60[_0x35db('0x75')];});for(const _0x3bf32f of _0x1f0ef9){if(_0x35db('0xa1')!=_0x3bf32f[_0x35db('0x13')]||_0x35db('0x9')!=_0x3bf32f['name']||0x1!=_0x3bf32f[_0x35db('0xd')])continue;const _0x40c14c=_0x48578e[_0x35db('0x67')](_0x3bf32f['position'],_0x3bf32f[_0x35db('0x2a')][_0x35db('0x3c')](0x1));if(!_0xa2b3a3[_0x35db('0x29')](({data:_0x1b4e84})=>_0x1b4e84[_0x35db('0x14')][_0x35db('0x68')](_0x40c14c)))for(const {name:_0x3b67ee,data:_0x22a0a8}of _0xa2b3a3)if(_0x40c14c['containsRange'](_0x22a0a8['newRange'])){_0x48578e[_0x35db('0x2d')](_0x3b67ee,{'range':_0x40c14c}),_0x29c0f0=!0x0;break;}}return _0x29c0f0;}),_0x55617f[_0x35db('0x96')][_0x35db('0x12')]['registerPostFixer'](_0x2900bd=>{let _0x235f83=!0x1;const _0x1ee48c=_0x55617f[_0x35db('0x86')][_0x35db('0x0')](_0x35db('0x1d'))['me'],_0x6f18bf=_0xc47c7b['getSuggestions']()['filter'](_0x22c7b8=>_0x22c7b8[_0x35db('0x5c')]&&_0x22c7b8[_0x35db('0x25')]==_0x1ee48c),_0x4b71ab=new Set(),_0x54e5e7=new Set();for(const _0x698fae of _0x6f18bf)if(_0x35db('0x5d')==_0x698fae[_0x35db('0x8b')])for(const _0x1da382 of _0x698fae[_0x35db('0x98')]()){const _0xf3eb85=_0x1da382['getRange']()[_0x35db('0x7a')]();if(_0xf3eb85){if(_0xf3eb85['is'](_0x35db('0x16'),'tableCellSuggestion')&&ce(_0xf3eb85)){_0x698fae[_0x35db('0xa4')](_0x1da382[_0x35db('0x10')]),_0x4b71ab[_0x35db('0x43')](_0xf3eb85),_0x235f83=!0x0;const _0x12c073=_0xf3eb85[_0x35db('0x36')],_0x5e0139=_0xf3eb85['previousSibling'],_0x21d509=_0x12c073&&_0x12c073['is']('element',_0x35db('0x9')),_0x5e15c6=_0x5e0139&&_0x5e0139['is'](_0x35db('0x16'),'tableCellSuggestion');_0x21d509&&!_0x4b71ab['has'](_0x12c073)&&_0x54e5e7[_0x35db('0x43')](_0x12c073),_0x5e15c6&&!_0x4b71ab[_0x35db('0x57')](_0x5e0139)&&_0x54e5e7[_0x35db('0x43')](_0x5e0139);}else _0xf3eb85['is'](_0x35db('0x16'),'paragraph')&&_0xf3eb85[_0x35db('0x83')]&&(_0x698fae[_0x35db('0xa4')](_0x1da382[_0x35db('0x10')]),_0x235f83=!0x0);}}else{if(_0x35db('0x2b')==_0x698fae[_0x35db('0x8b')]){if(!_0x698fae[_0x35db('0x23')]||!_0x698fae[_0x35db('0x23')][_0x35db('0x84')])continue;const _0x2bcb32=_0x698fae[_0x35db('0x23')]['markerAttributes'];if(_0x2bcb32&&Object['keys'](_0x2bcb32)[_0x35db('0xd')])continue;const _0x26d9db=_0x698fae[_0x35db('0x23')][_0x35db('0x84')];let _0x23b496=!0x0,_0x255676=!0x0;for(const _0x3b5d60 of _0x6f18bf)if(_0x3b5d60[_0x35db('0x8b')]&&_0x3b5d60['subType'][_0x35db('0x24')](_0x35db('0x5d'))){if(!_0x3b5d60[_0x35db('0x23')][_0x35db('0x84')]){_0x255676=!0x1;break;}if(_0x3b5d60['id']!=_0x698fae['id']&&_0x3b5d60[_0x35db('0x23')]['tablePasteChainId']==_0x26d9db){_0x23b496=!0x1;break;}}_0x255676&&_0x23b496&&(_0x698fae['removeMarkers'](),_0x235f83=!0x0);}}for(const _0x1d44c0 of _0x4b71ab)_0x2900bd['remove'](_0x1d44c0);for(const _0x3c94e4 of _0x54e5e7)_0x2900bd[_0x35db('0x47')](_0x3c94e4);return _0x235f83;}),_0x55617f[_0x35db('0x4d')][_0x35db('0x8d')](_0x35db('0x6'))['markerToHighlight']({'model':_0x35db('0x38'),'view':_0xc97f1d,'converterPriority':_0x35db('0x18')}),_0x55617f[_0x35db('0x4d')]['for'](_0x35db('0x1f'))['markerToHighlight']({'model':_0x35db('0x38'),'view':(_0x450790,_0x1b4cb2)=>{if(_0x1b4cb2[_0x35db('0x6a')][_0x35db('0x7f')])return _0xc97f1d(_0x450790,{'showActiveMarker':!0x1});},'converterPriority':'high'});const _0xfc084f=_0x55617f[_0x35db('0x4')][_0x35db('0x93')];this[_0x35db('0x15')](_0xfc084f[_0x35db('0x12')],_0x35db('0x62'),(_0x1da648,_0x22fd89)=>{const _0x37167d=[];for(const _0xb6d5c3 of _0xfc084f['createRangeIn'](_0x22fd89[_0x35db('0x3b')])[_0x35db('0x94')]())_0xb6d5c3['is'](_0x35db('0x16'),'suggestion-td')&&_0x37167d[_0x35db('0x89')](_0xb6d5c3);_0xfc084f[_0x35db('0x6d')](_0x15e53c=>{for(const _0x5b817b of _0x37167d)_0x15e53c['move'](_0x15e53c['createRangeIn'](_0x5b817b),_0x15e53c[_0x35db('0x4b')](_0x5b817b)),_0x15e53c[_0x35db('0x6c')](_0x5b817b);});});}}function ce(_0xc82e7b){if(_0xc82e7b[_0x35db('0x83')])return!0x0;const _0x501896=_0xc82e7b['getChild'](0x0);return _0x501896['is'](_0x35db('0x16'),_0x35db('0x21'))&&_0x501896[_0x35db('0x83')];}function fe(_0x47cd71,_0x59785d={},_0xd72996){for(const {isAnchor:_0x1a306f,cellHeight:_0x26512f,cellWidth:_0x3de25e}of _0xd72996[_0x35db('0x2e')](_0x47cd71,{'includeAllSlots':!0x0,..._0x59785d}))if(!_0x1a306f||0x1!=_0x26512f||0x1!=_0x3de25e)return!0x1;return!0x0;}
23
+ const _0x592c=['tableCellBackgroundColor','TableClipboard','getSelectionAffectedTableCells','position','createTableWalker','every','showSuggestionHighlights','activeMarkers','TableUtils','suggestion-td','updateMarker','getRows','registerCustomCallback','fromEntries','containsRange','removeMarkers','move','_isForcedDefaultExecutionBlock','columnInsertionRanges','name','locale','markerAttributes','getAllAdjacentSuggestions','unwrap','Users','endColumn','element','previousSibling','isEmpty','tableCellBorderWidth','some','tableCellBorderColor','elementToElement','suggestionUnloaded','tablePasteCell','suggestion','_tablePostFixingSubtypes','author','getSuggestion','createElement','getChangedMarkers','editing','tableCellVerticalAlignment','insertion','removeMarker','tablePaste','createRangeIn','filter','getChanges','createRange','model','newRange','has','setAttributes','next','tableCell','getContainedElement','nextSibling','root','includes','join','createRangeOn','tablePasteColumn','getRange','forceDefaultExecution','rowInsertionIndexes','dataDowncast','rows','isEqual','insertRows','_suggestionFactory','length','isInContent','getTableIfOnlyTableInContent','tableCellSuggestion','discard','getItems','tableCellHorizontalAlignment','accept','getColumns','getMarkers','clipboardOutput','getChild','return','high','tablePasteChainId','registerDescriptionCallback','createPositionBefore','requires','suggestion:formatBlock:tablePasteCell','editor','tableCellPadding','oldRange','get','tablePasteRow','ck-suggestion-marker','options','table','selection','suggestionLoaded','attributes','map','previous','_splitMarkerName','trackChanges','commands','nodeAfter','find','view','TrackChangesEditing','_replaceTableSlotCell','for','add','insertionRanges','registerPostFixer','type','getChildren','stop','remove','column','paragraph','markerName','removeColumns','change','ck-suggestion-marker--active','register','deletion','documentSelection','_getCoordsForCells','end','insertColumns','startsWith','listenTo','getSuggestions','removeRows','content','last','reduce','insertContent','getShiftedBy','subType','getAttributes','value','cells','set','getRowIndexes','conversion','findAncestor','rowInsertionRanges','markMultiRangeBlockFormat','wrap','tableCellBorderStyle','schema','markers','plugins','markMultiRangeDeletion','from','low','markerToHighlight','insert','getRanges','setAttribute','getSuggestionCallback','markMultiRangeInsertion','entries','push','fill','first','differ','keys','document','cell','endRow','batch','redo','formatBlock'];(function(_0x46cbd9,_0x592c49){const _0x3e9042=function(_0x10ff7c){while(--_0x10ff7c){_0x46cbd9['push'](_0x46cbd9['shift']());}};_0x3e9042(++_0x592c49);}(_0x592c,0x18d));const _0x3e90=function(_0x46cbd9,_0x592c49){_0x46cbd9=_0x46cbd9-0x0;let _0x3e9042=_0x592c[_0x46cbd9];return _0x3e9042;};import{getTranslation as _0x1d2b3a}from'../utils/common-translations';import{Plugin as _0x5d9221}from'ckeditor5/src/core';import _0x14929f from'./table';import{uid as _0xe111f2,priorities as _0x29e003}from'ckeditor5/src/utils';const ae=[_0x3e90('0xa0'),_0x3e90('0xa2'),_0x3e90('0x6a'),_0x3e90('0x20'),_0x3e90('0xad'),_0x3e90('0x83'),_0x3e90('0x2e')],ce=Object[_0x3e90('0x90')](ae[_0x3e90('0x38')](_0x5cefa3=>[_0x5cefa3,null]));export default class wt extends _0x5d9221{static get[_0x3e90('0x2b')](){return[_0x14929f];}['afterInit'](){const _0x382e5e=this['editor'];if(!_0x382e5e[_0x3e90('0x6d')][_0x3e90('0x7')](_0x3e90('0x84')))return;const _0x4cf150=_0x382e5e['plugins'][_0x3e90('0x30')](_0x3e90('0x40')),_0x5cf5e7=_0x382e5e['plugins'][_0x3e90('0x30')](_0x3e90('0x8b')),_0x42d719=_0x382e5e[_0x3e90('0x6d')]['get'](_0x14929f),_0x2b3ace=_0x382e5e['plugins']['get'](_0x3e90('0x84'));_0x42d719[_0x3e90('0xa7')][_0x3e90('0x78')](_0x3e90('0x31'),'tablePasteColumn'),_0x382e5e[_0x3e90('0x5')][_0x3e90('0x6b')][_0x3e90('0x50')](_0x3e90('0x1d'),{'allowIn':_0x3e90('0xa'),'allowContentOf':_0x3e90('0xa'),'isLimit':!0x0}),_0x382e5e[_0x3e90('0x65')][_0x3e90('0xa3')]({'model':'tableCellSuggestion','view':_0x3e90('0x8c')});let _0x5d3d43=null;_0x382e5e[_0x3e90('0x5')]['on'](_0x3e90('0x5d'),(_0x7abd2d,_0x2e5597)=>{const [_0x30a1f9,_0x69f654]=_0x2e5597,_0x3317cc=_0x2e5597[_0x2e5597[_0x3e90('0x1a')]-0x1];_0x3317cc&&_0x3317cc[_0x3e90('0x13')]||_0x4cf150[_0x3e90('0x94')]||this[_0x3e90('0x2d')][_0x3e90('0x3c')]['get'](_0x3e90('0x3b'))[_0x3e90('0x61')]&&function(_0x166f38,_0x5df4c8,_0x4d2bd7,_0x4438a2,_0x389f0b){if(_0x5df4c8&&!_0x5df4c8['is'](_0x3e90('0x52')))return!0x1;const _0xfdb8b9=_0x389f0b[_0x3e90('0x1c')](_0x166f38,_0x4d2bd7);if(!_0xfdb8b9||!ue(_0xfdb8b9,null,_0x4438a2))return!0x1;const _0x19e898=_0x4438a2[_0x3e90('0x85')](_0x4d2bd7[_0x3e90('0x7d')][_0x3e90('0x35')]);if(!_0x19e898[_0x3e90('0x1a')])return!0x1;const _0xcff16=_0x19e898[0x0][_0x3e90('0x66')](_0x3e90('0x34')),_0x1729af=_0x4438a2[_0x3e90('0x64')](_0x19e898),_0x165aa9=_0x4438a2['getColumnIndexes'](_0x19e898),_0x4beb24={'startRow':_0x1729af[_0x3e90('0x7a')],'endRow':_0x1729af[_0x3e90('0x5b')],'startColumn':_0x165aa9[_0x3e90('0x7a')],'endColumn':_0x165aa9[_0x3e90('0x5b')]};return 0x1==_0x19e898[_0x3e90('0x1a')]&&(_0x4beb24[_0x3e90('0x7f')]+=_0x4438a2[_0x3e90('0x8e')](_0xfdb8b9)-0x1,_0x4beb24[_0x3e90('0x9c')]+=_0x4438a2[_0x3e90('0x22')](_0xfdb8b9)-0x1),ue(_0xcff16,_0x4beb24,_0x4438a2);}(_0x30a1f9,_0x69f654,_0x382e5e[_0x3e90('0x5')],_0x5cf5e7,_0x2b3ace)&&(_0x7abd2d['stop'](),_0x5d3d43={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x382e5e[_0x3e90('0x5')]['change'](()=>{_0x382e5e[_0x3e90('0x5')][_0x3e90('0x5d')](_0x2e5597[0x0],_0x2e5597[0x1],_0x2e5597[0x2],_0x2e5597[0x3],{'forceDefaultExecution':!0x0});const _0x336bb9=_0xe111f2(),{rowInsertionRanges:_0xab9bc2,columnInsertionRanges:_0x13b3f5,insertionRanges:_0x276bb1,deletionRanges:_0x343c8f,cells:_0x5272df}=_0x5d3d43;_0xab9bc2[_0x3e90('0x1a')]&&_0x4cf150[_0x3e90('0x76')](_0xab9bc2,'tablePasteRow',{'tablePasteChainId':_0x336bb9}),_0x13b3f5[_0x3e90('0x1a')]&&_0x4cf150[_0x3e90('0x76')](_0x13b3f5,_0x3e90('0x11'),{'tablePasteChainId':_0x336bb9}),_0x276bb1[_0x3e90('0x1a')]&&_0x4cf150['markMultiRangeInsertion'](_0x276bb1,_0x3e90('0x0'),{'tablePasteChainId':_0x336bb9,'skipNestingCheck':!0x0}),_0x343c8f['length']&&_0x4cf150[_0x3e90('0x6e')](_0x343c8f,_0x3e90('0x0'),{'tablePasteChainId':_0x336bb9,'skipNestingCheck':!0x0});const _0x1d8fdd=_0x4cf150[_0x3e90('0x68')](_0x5272df[_0x3e90('0x38')](({element:_0x2c74d8})=>_0x2c74d8),{'formatGroupId':_0xe111f2()},[],'tablePasteCell',{'tablePasteChainId':_0x336bb9});if(_0x1d8fdd){const _0x42baa5=_0x1d8fdd[_0x3e90('0x23')](),_0x58d623=[];for(const {element:_0x8a4faf,attributes:_0x5156e1}of _0x5272df){if(!_0x5156e1)continue;const _0x4b8988=_0x382e5e[_0x3e90('0x5')][_0x3e90('0x10')](_0x8a4faf),_0x3d1527=_0x42baa5[_0x3e90('0x3e')](_0x265b45=>_0x265b45[_0x3e90('0x12')]()[_0x3e90('0x17')](_0x4b8988));_0x3d1527&&_0x58d623[_0x3e90('0x78')]([_0x3d1527['name'],_0x5156e1]);}_0x58d623['length']&&_0x1d8fdd[_0x3e90('0x74')](_0x3e90('0x98'),Object[_0x3e90('0x90')](_0x58d623));}_0x5d3d43=null;}));},{'priority':_0x29e003[_0x3e90('0x27')]+0xa}),_0x382e5e[_0x3e90('0x6d')][_0x3e90('0x30')](_0x3e90('0x84'))['on'](_0x3e90('0x41'),(_0x140bf1,_0x112c89)=>{const [_0x1734a4,_0x440d37,,_0x19e2a4]=_0x112c89;if(!_0x5d3d43)return;_0x140bf1[_0x3e90('0x48')]();const _0x39d94c=_0x1734a4[_0x3e90('0x7e')],_0x2b4378=_0x440d37,_0x3cfe3d=fe(_0x39d94c),_0x4debf2=fe(_0x2b4378);_0x140bf1[_0x3e90('0x26')]=_0x39d94c;let _0x509b24=null,_0x398508=null;if(_0x4debf2||_0x3cfe3d){if(_0x3cfe3d&&!_0x4debf2){_0x19e2a4[_0x3e90('0x49')](_0x39d94c[_0x3e90('0x25')](0x0));for(const _0x49e42d of Array[_0x3e90('0x6f')](_0x2b4378[_0x3e90('0x47')]()))_0x19e2a4['insert'](_0x49e42d,_0x39d94c,'end');const _0xc85fad=_0x5d3d43[_0x3e90('0x14')][_0x3e90('0xe')](_0x1734a4['row']),_0x565443=_0x5d3d43['columnInsertionIndexes'][_0x3e90('0xe')](_0x1734a4[_0x3e90('0x4a')]);_0xc85fad||_0x565443||(_0x509b24=_0x19e2a4[_0x3e90('0x1')](_0x39d94c));}else _0x4debf2&&!_0x3cfe3d&&(_0x398508=_0x19e2a4[_0x3e90('0x1')](_0x39d94c));}else{const _0x6280ab=_0x19e2a4[_0x3e90('0xaa')](_0x3e90('0x1d')),_0x20523b=_0x19e2a4[_0x3e90('0xaa')](_0x3e90('0x1d'));_0x19e2a4[_0x3e90('0x69')](_0x19e2a4[_0x3e90('0x1')](_0x39d94c),_0x20523b),_0x19e2a4[_0x3e90('0x72')](_0x6280ab,_0x39d94c,0x0);for(const _0x57314d of Array[_0x3e90('0x6f')](_0x2b4378[_0x3e90('0x47')]()))_0x19e2a4['insert'](_0x57314d,_0x6280ab,_0x3e90('0x54'));_0x509b24=_0x19e2a4[_0x3e90('0x10')](_0x6280ab),_0x398508=_0x19e2a4[_0x3e90('0x10')](_0x20523b);}const _0x428d87=Array[_0x3e90('0x6f')](_0x2b4378[_0x3e90('0x60')]())[_0x3e90('0x2')](([_0xdb6d32])=>ae[_0x3e90('0xe')](_0xdb6d32));_0x5d3d43[_0x3e90('0x62')][_0x3e90('0x78')]({'element':_0x39d94c,'attributes':_0x428d87[_0x3e90('0x1a')]?Object[_0x3e90('0x90')](_0x428d87):null}),_0x509b24&&_0x5d3d43[_0x3e90('0x44')]['push'](_0x509b24),_0x398508&&_0x5d3d43['deletionRanges'][_0x3e90('0x78')](_0x398508);},{'priority':'high'}),_0x5cf5e7['on'](_0x3e90('0x55'),(_0x2c3815,_0x37de26)=>{const [_0x5cf13a,_0x3ac037={}]=_0x37de26;if(!_0x5d3d43)return;const _0xd490f=_0x3ac037['at']||0x0,_0x25158e=_0x3ac037['columns']||0x1;_0x5d3d43['columnInsertionIndexes']=new Array(_0x25158e)['fill'](_0xd490f)[_0x3e90('0x38')]((_0x22aba2,_0x18af35)=>_0x22aba2+_0x18af35);for(const {cell:_0xfe9e3d}of _0x5cf5e7[_0x3e90('0x87')](_0x5cf13a,{'startColumn':_0xd490f,'endColumn':_0xd490f+_0x25158e-0x1}))_0x5d3d43[_0x3e90('0x95')][_0x3e90('0x78')](_0x382e5e[_0x3e90('0x5')][_0x3e90('0x10')](_0xfe9e3d));},{'priority':'low'}),_0x5cf5e7['on'](_0x3e90('0x18'),(_0xafa2f6,_0x54dc99)=>{const [_0x9cb254,_0x1ad14d={}]=_0x54dc99;if(!_0x5d3d43)return;const _0x42371d=_0x1ad14d['at']||0x0,_0x2c39ab=_0x1ad14d[_0x3e90('0x16')]||0x1;_0x5d3d43[_0x3e90('0x14')]=new Array(_0x2c39ab)[_0x3e90('0x79')](_0x42371d)[_0x3e90('0x38')]((_0x3b1a74,_0x8b74d9)=>_0x3b1a74+_0x8b74d9);for(const {cell:_0x5ee2ac}of _0x5cf5e7[_0x3e90('0x87')](_0x9cb254,{'startRow':_0x42371d,'endRow':_0x42371d+_0x2c39ab-0x1}))_0x5d3d43[_0x3e90('0x67')][_0x3e90('0x78')](_0x382e5e['model']['createRangeOn'](_0x5ee2ac));},{'priority':_0x3e90('0x70')}),_0x4cf150['_descriptionFactory'][_0x3e90('0x29')](_0x598eec=>{if(_0x598eec[_0x3e90('0x5f')]&&_0x598eec[_0x3e90('0x5f')][_0x3e90('0x56')](_0x3e90('0x0')))return _0x598eec[_0x3e90('0x39')]?{}:{'type':_0x3e90('0xae'),'content':_0x1d2b3a(_0x382e5e[_0x3e90('0x97')],'*Replace\x20table\x20cells*')};});const _0xb3b576=()=>{};for(const _0x3390d1 of['tablePaste',_0x3e90('0x11'),_0x3e90('0x31'),_0x3e90('0xa5')])_0x4cf150[_0x3e90('0x19')]['registerCustomCallback'](_0x3e90('0xae'),_0x3390d1,_0x3e90('0xf'),_0xb3b576),_0x4cf150[_0x3e90('0x19')][_0x3e90('0x8f')](_0x3e90('0x51'),_0x3390d1,_0x3e90('0xf'),_0xb3b576);_0x4cf150[_0x3e90('0x19')][_0x3e90('0x8f')]('formatBlock',_0x3e90('0xa5'),'discard',_0xb3b576),_0x4cf150[_0x3e90('0x19')][_0x3e90('0x8f')](_0x3e90('0x82'),_0x3e90('0xa5'),_0x3e90('0x21'),(_0x21b6f2,_0x1f98c6,_0x36c4ef)=>{const _0x31ee47=_0x21b6f2[_0x3e90('0x38')](_0x4360f0=>_0x4360f0[_0x3e90('0xb')]())['filter'](_0x17bf6c=>_0x17bf6c),_0x21d981=new Map(_0x31ee47[_0x3e90('0x38')](_0x1c646a=>[_0x1c646a,null]));if(_0x5d3d43)for(const {element:_0x10ba7e,attributes:_0x46f9cc}of _0x5d3d43['cells'])_0x46f9cc&&_0x21d981[_0x3e90('0x63')](_0x10ba7e,_0x46f9cc);else{if(_0x36c4ef&&_0x36c4ef[_0x3e90('0x98')])for(const [_0x2763af,_0x4b6be4]of Object[_0x3e90('0x77')](_0x36c4ef[_0x3e90('0x98')])){const _0x48d385=_0x382e5e['model'][_0x3e90('0x6c')][_0x3e90('0x30')](_0x2763af),_0x5aac71=_0x48d385?_0x48d385[_0x3e90('0x12')]()[_0x3e90('0xb')]():null;_0x5aac71&&_0x21d981[_0x3e90('0x63')](_0x5aac71,_0x4b6be4);}}_0x382e5e[_0x3e90('0x5')]['change'](_0x453753=>{for(const [_0x3f706d,_0x251500]of _0x21d981)_0x453753[_0x3e90('0x8')]({...ce,..._0x251500},_0x3f706d);});});const _0x29ea74=(_0x39347f,_0x2cf81a)=>{_0x4cf150[_0x3e90('0x19')]['registerCustomCallback'](_0x39347f,'tablePaste',_0x2cf81a,(_0x5596b8,_0x44e05c,_0x592235)=>{_0x382e5e[_0x3e90('0x5')][_0x3e90('0x4e')](_0x1c8744=>{const _0x3ae630=[];for(const _0x1dee50 of _0x5596b8){const _0x3c4747=_0x1dee50['start'][_0x3e90('0x3d')];_0x3c4747['is']('element',_0x3e90('0x1d'))&&_0x3ae630['push'](_0x3c4747);}_0x4cf150[_0x3e90('0x19')][_0x3e90('0x75')](_0x39347f,null,_0x2cf81a)(_0x5596b8,_0x44e05c,_0x592235);for(const _0x36ced5 of _0x3ae630)'$graveyard'!=_0x36ced5[_0x3e90('0xd')]['rootName']&&_0x1c8744[_0x3e90('0x9a')](_0x36ced5);});});};_0x29ea74(_0x3e90('0xae'),_0x3e90('0x21')),_0x29ea74(_0x3e90('0xae'),_0x3e90('0x1e')),_0x29ea74('deletion','accept'),_0x29ea74('deletion','discard'),_0x4cf150['_suggestionFactory'][_0x3e90('0x8f')](_0x3e90('0xae'),_0x3e90('0x31'),'discard',_0x4efd21=>{const _0xc132ea=_0x4efd21[_0x3e90('0x38')](_0x1ab891=>_0x1ab891[_0x3e90('0xb')]()),_0x3dc462=_0xc132ea[0x0][_0x3e90('0x66')](_0x3e90('0x34')),{minRow:_0x43a861,maxRow:_0xf8aee8}=_0x42d719['_getCoordsForCells'](_0xc132ea);_0x5cf5e7[_0x3e90('0x59')](_0x3dc462,{'at':_0x43a861,'rows':_0xf8aee8-_0x43a861+0x1});}),_0x4cf150[_0x3e90('0x19')][_0x3e90('0x8f')](_0x3e90('0xae'),'tablePasteColumn','discard',_0xbab31=>{const _0x25d8f7=_0xbab31['map'](_0x4df1cc=>_0x4df1cc[_0x3e90('0xb')]()),_0x140702=_0x25d8f7[0x0][_0x3e90('0x66')](_0x3e90('0x34')),{minColumn:_0x1e4465,maxColumn:_0x5cf9c7}=_0x42d719[_0x3e90('0x53')](_0x25d8f7);_0x5cf5e7[_0x3e90('0x4d')](_0x140702,{'at':_0x1e4465,'columns':_0x5cf9c7-_0x1e4465+0x1});});const _0xd53eb5=(_0x22470f,_0x334cf8)=>{if(!_0x334cf8[_0x3e90('0x5f')]||!_0x334cf8[_0x3e90('0x5f')][_0x3e90('0x56')](_0x3e90('0x0')))return;const _0xa95a12=_0x334cf8[_0x3e90('0x37')]['tablePasteChainId'],_0x4588d4=_0x4cf150['getSuggestions']()[_0x3e90('0x2')](_0x4f0f00=>_0x4f0f00[_0x3e90('0x1b')]&&_0x4f0f00[_0x3e90('0x37')]&&_0x4f0f00['attributes'][_0x3e90('0x28')]==_0xa95a12);_0x4588d4[_0x3e90('0x1a')]&&_0x334cf8[_0x3e90('0x99')]()[_0x3e90('0x1a')]!=_0x4588d4[_0x3e90('0x1a')]&&_0x4588d4[_0x3e90('0x5c')]((_0x56e887,_0x3da199)=>(_0x56e887[_0x3e90('0x9')]=_0x3da199,_0x3da199['previous']=_0x56e887,_0x3da199));};function _0x4e37e0(_0x1efdc1,{showActiveMarker:_0x3ddbca=!0x0}={}){const {id:_0x1e0693}=_0x4cf150[_0x3e90('0x3a')](_0x1efdc1[_0x3e90('0x4c')]),_0x535398=[_0x3e90('0x32'),'ck-suggestion-marker-insertion'],_0x39f0cc=_0x4cf150[_0x3e90('0x8a')][_0x3e90('0xe')](_0x1efdc1[_0x3e90('0x4c')]);return _0x39f0cc&&_0x535398[_0x3e90('0x78')](_0x3e90('0x4f')),{'classes':_0x535398,'attributes':{'data-suggestion':_0x1e0693},'priority':_0x39f0cc&&_0x3ddbca?0xbc2:0xbb8};}_0x4cf150['on'](_0x3e90('0x36'),_0xd53eb5,{'priority':_0x3e90('0x27')}),_0x4cf150['on'](_0x3e90('0xa4'),_0xd53eb5,{'priority':'high'}),_0x382e5e[_0x3e90('0x5')][_0x3e90('0x7d')][_0x3e90('0x45')](()=>{let _0x3612d6=!0x1;const _0x2d00d=Array['from'](_0x382e5e[_0x3e90('0x5')][_0x3e90('0x7d')][_0x3e90('0x7b')][_0x3e90('0xab')]());for(const {name:_0x17b4d8,data:_0x146c62}of _0x2d00d){const {group:_0x4d2471,type:_0x9450e8,id:_0x395767}=_0x4cf150[_0x3e90('0x3a')](_0x17b4d8);if('suggestion'!=_0x4d2471||'deletion'!=_0x9450e8||_0x146c62[_0x3e90('0x2f')])continue;if(!_0x4cf150['hasSuggestion'](_0x395767))continue;const _0x437725=_0x4cf150[_0x3e90('0xa9')](_0x395767)[_0x3e90('0x73')](),_0x5cdd76=_0x382e5e[_0x3e90('0x6d')]['get']('Users')['me'];for(const _0x467630 of _0x4cf150[_0x3e90('0x58')]()){if(!_0x467630['isInContent']||_0x467630['author']!=_0x5cdd76)continue;if(_0x3e90('0x82')!=_0x467630[_0x3e90('0x46')]||_0x3e90('0xa5')!=_0x467630[_0x3e90('0x5f')])continue;if(_0x467630[_0x3e90('0x73')]()[_0x3e90('0x88')](_0x44c4f5=>_0x437725[_0x3e90('0xa1')](_0xd0198c=>_0xd0198c[_0x3e90('0x91')](_0x44c4f5,!0x0))))for(const _0x15147b of _0x467630[_0x3e90('0x99')]())_0x15147b[_0x3e90('0x1b')]&&(_0x15147b[_0x3e90('0x1e')](),_0x3612d6=!0x0);}}return _0x3612d6;}),_0x382e5e['model'][_0x3e90('0x7d')][_0x3e90('0x45')](_0x398b63=>{const _0x3890a6=_0x382e5e['commands']['get'](_0x3e90('0x81'));if(!_0x3890a6||!_0x3890a6['_createdBatches'][_0x3e90('0x7')](_0x398b63[_0x3e90('0x80')]))return!0x1;let _0x4e642f=!0x1;const _0x3b1529=_0x382e5e[_0x3e90('0x6d')][_0x3e90('0x30')](_0x3e90('0x9b'))['me'],_0x10670e=_0x382e5e[_0x3e90('0x5')][_0x3e90('0x7d')][_0x3e90('0x7b')][_0x3e90('0x3')](),_0x215d11=Array[_0x3e90('0x6f')](_0x382e5e[_0x3e90('0x5')][_0x3e90('0x7d')]['differ'][_0x3e90('0xab')]())[_0x3e90('0x2')](({name:_0x5ee7e1,data:_0x3c035a})=>{const {group:_0x2197bc,subType:_0x51945a,authorId:_0x4be037}=_0x4cf150[_0x3e90('0x3a')](_0x5ee7e1);return _0x3e90('0xa6')==_0x2197bc&&'tablePaste'==_0x51945a&&_0x4be037==_0x3b1529['id']&&!_0x3c035a[_0x3e90('0x2f')];});for(const _0x474292 of _0x10670e){if(_0x3e90('0x72')!=_0x474292[_0x3e90('0x46')]||_0x3e90('0x1d')!=_0x474292[_0x3e90('0x96')]||0x1!=_0x474292[_0x3e90('0x1a')])continue;const _0x4609c6=_0x398b63[_0x3e90('0x4')](_0x474292[_0x3e90('0x86')],_0x474292[_0x3e90('0x86')][_0x3e90('0x5e')](0x1));if(!_0x215d11['find'](({data:_0x25b067})=>_0x25b067['newRange'][_0x3e90('0x17')](_0x4609c6)))for(const {name:_0x579e6b,data:_0x202b25}of _0x215d11)if(_0x4609c6[_0x3e90('0x91')](_0x202b25[_0x3e90('0x6')])){_0x398b63[_0x3e90('0x8d')](_0x579e6b,{'range':_0x4609c6}),_0x4e642f=!0x0;break;}}return _0x4e642f;}),_0x382e5e[_0x3e90('0x5')][_0x3e90('0x7d')][_0x3e90('0x45')](_0x3e0a17=>{let _0x19b9d9=!0x1;const _0x28ee50=_0x382e5e[_0x3e90('0x6d')][_0x3e90('0x30')](_0x3e90('0x9b'))['me'],_0x47205c=_0x4cf150['getSuggestions']()[_0x3e90('0x2')](_0xf18e7c=>_0xf18e7c['isInContent']&&_0xf18e7c[_0x3e90('0xa8')]==_0x28ee50),_0x5a752e=new Set(),_0x2aef2d=new Set();for(const _0x25cb41 of _0x47205c)if('tablePaste'==_0x25cb41['subType'])for(const _0x2e0058 of _0x25cb41['getMarkers']()){const _0x5645c7=_0x2e0058[_0x3e90('0x12')]()[_0x3e90('0xb')]();if(_0x5645c7){if(_0x5645c7['is'](_0x3e90('0x9d'),_0x3e90('0x1d'))&&fe(_0x5645c7)){_0x25cb41[_0x3e90('0xaf')](_0x2e0058[_0x3e90('0x96')]),_0x5a752e['add'](_0x5645c7),_0x19b9d9=!0x0;const _0x1210b4=_0x5645c7[_0x3e90('0xc')],_0x5d7637=_0x5645c7[_0x3e90('0x9e')],_0x38cc51=_0x1210b4&&_0x1210b4['is'](_0x3e90('0x9d'),_0x3e90('0x1d')),_0x35715c=_0x5d7637&&_0x5d7637['is'](_0x3e90('0x9d'),_0x3e90('0x1d'));_0x38cc51&&!_0x5a752e['has'](_0x1210b4)&&_0x2aef2d[_0x3e90('0x43')](_0x1210b4),_0x35715c&&!_0x5a752e[_0x3e90('0x7')](_0x5d7637)&&_0x2aef2d[_0x3e90('0x43')](_0x5d7637);}else _0x5645c7['is']('element',_0x3e90('0x4b'))&&_0x5645c7[_0x3e90('0x9f')]&&(_0x25cb41[_0x3e90('0xaf')](_0x2e0058[_0x3e90('0x96')]),_0x19b9d9=!0x0);}}else{if(_0x3e90('0xa5')==_0x25cb41[_0x3e90('0x5f')]){if(!_0x25cb41['attributes']||!_0x25cb41[_0x3e90('0x37')][_0x3e90('0x28')])continue;const _0x46f25e=_0x25cb41[_0x3e90('0x37')][_0x3e90('0x98')];if(_0x46f25e&&Object[_0x3e90('0x7c')](_0x46f25e)[_0x3e90('0x1a')])continue;const _0x44645f=_0x25cb41[_0x3e90('0x37')]['tablePasteChainId'];let _0x5b7bc7=!0x0,_0x4ee267=!0x0;for(const _0x353ddc of _0x47205c)if(_0x353ddc[_0x3e90('0x5f')]&&_0x353ddc[_0x3e90('0x5f')][_0x3e90('0x56')](_0x3e90('0x0'))){if(!_0x353ddc[_0x3e90('0x37')]['tablePasteChainId']){_0x4ee267=!0x1;break;}if(_0x353ddc['id']!=_0x25cb41['id']&&_0x353ddc[_0x3e90('0x37')][_0x3e90('0x28')]==_0x44645f){_0x5b7bc7=!0x1;break;}}_0x4ee267&&_0x5b7bc7&&(_0x25cb41[_0x3e90('0x92')](),_0x19b9d9=!0x0);}}for(const _0x4cd696 of _0x5a752e)_0x3e0a17[_0x3e90('0x49')](_0x4cd696);for(const _0x1b694b of _0x2aef2d)_0x3e0a17[_0x3e90('0x9a')](_0x1b694b);return _0x19b9d9;}),_0x382e5e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':_0x3e90('0x2c'),'view':_0x4e37e0,'converterPriority':_0x3e90('0x27')}),_0x382e5e[_0x3e90('0x65')][_0x3e90('0x42')](_0x3e90('0x15'))[_0x3e90('0x71')]({'model':_0x3e90('0x2c'),'view':(_0x2865ee,_0x32c13c)=>{if(_0x32c13c[_0x3e90('0x33')][_0x3e90('0x89')])return _0x4e37e0(_0x2865ee,{'showActiveMarker':!0x1});},'converterPriority':_0x3e90('0x27')});const _0x5b5041=_0x382e5e[_0x3e90('0xac')][_0x3e90('0x3f')];this[_0x3e90('0x57')](_0x5b5041[_0x3e90('0x7d')],_0x3e90('0x24'),(_0x248cac,_0x21fd2c)=>{const _0x45f3fc=[];for(const _0x8ab0e5 of _0x5b5041[_0x3e90('0x1')](_0x21fd2c[_0x3e90('0x5a')])[_0x3e90('0x1f')]())_0x8ab0e5['is']('element',_0x3e90('0x8c'))&&_0x45f3fc[_0x3e90('0x78')](_0x8ab0e5);_0x5b5041[_0x3e90('0x4e')](_0x44078b=>{for(const _0x18e057 of _0x45f3fc)_0x44078b[_0x3e90('0x93')](_0x44078b[_0x3e90('0x1')](_0x18e057),_0x44078b[_0x3e90('0x2a')](_0x18e057)),_0x44078b[_0x3e90('0x49')](_0x18e057);});});}}function fe(_0x39c8cd){if(_0x39c8cd[_0x3e90('0x9f')])return!0x0;const _0x45afb2=_0x39c8cd[_0x3e90('0x25')](0x0);return _0x45afb2['is'](_0x3e90('0x9d'),_0x3e90('0x4b'))&&_0x45afb2['isEmpty'];}function ue(_0x22aa2c,_0x804adf={},_0x51b4c8){for(const {isAnchor:_0x22c4b6,cellHeight:_0x4fc79b,cellWidth:_0x4c3a5e}of _0x51b4c8[_0x3e90('0x87')](_0x22aa2c,{'includeAllSlots':!0x0,..._0x804adf}))if(!_0x22c4b6||0x1!=_0x4fc79b||0x1!=_0x4c3a5e)return!0x1;return!0x0;}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3717=['editor','change','registerCustomCallback','subType','setAttribute','*Format:*\x20resize\x20table','TableColumnResizeEditing','discard','bind','accept','handleResizeTableWidthCommand','commandParams','model','get','locale','selection','_suggestionFactory','data','resizeColumnWidths','plugins','getSuggestionCallback','tableWidth','table','resizeTableWidth','document','getContainedElement','resizeTable','author','formatBlock','_descriptionFactory','TrackChangesEditing','handleSuggestionDescription','afterInit','getAttribute','columnWidths'];(function(_0x19e0d9,_0x371790){const _0x30fe78=function(_0x2cf129){while(--_0x2cf129){_0x19e0d9['push'](_0x19e0d9['shift']());}};_0x30fe78(++_0x371790);}(_0x3717,0xd0));const _0x30fe=function(_0x19e0d9,_0x371790){_0x19e0d9=_0x19e0d9-0x0;let _0x30fe78=_0x3717[_0x19e0d9];return _0x30fe78;};import{Plugin as _0x192c9f}from'ckeditor5/src/core';import{getTranslation as _0x18885e}from'../utils/common-translations';export default class kt extends _0x192c9f{[_0x30fe('0x22')](){if(!this[_0x30fe('0x2')][_0x30fe('0x15')]['has'](_0x30fe('0x8')))return;const _0x2c6dfe=this[_0x30fe('0x2')]['plugins'][_0x30fe('0xf')](_0x30fe('0x20'));_0x2c6dfe['enableCommand'](_0x30fe('0x19'),this[_0x30fe('0xc')][_0x30fe('0xa')](this)),_0x2c6dfe['enableCommand'](_0x30fe('0x14'),this[_0x30fe('0xc')][_0x30fe('0xa')](this)),_0x2c6dfe[_0x30fe('0x12')][_0x30fe('0x4')](_0x30fe('0x1e'),_0x30fe('0x1c'),'accept',_0x2c6dfe['_suggestionFactory']['getSuggestionCallback'](_0x30fe('0x1e'),null,_0x30fe('0x9'))),_0x2c6dfe[_0x30fe('0x12')][_0x30fe('0x4')]('formatBlock','resizeTable',_0x30fe('0x9'),_0x2c6dfe[_0x30fe('0x12')][_0x30fe('0x16')](_0x30fe('0x1e'),null,_0x30fe('0xb'))),_0x2c6dfe[_0x30fe('0x1f')]['registerDescriptionCallback'](this[_0x30fe('0x21')][_0x30fe('0xa')](this));}[_0x30fe('0xc')](_0x4185a5,_0x47ac52){const _0x4ea5a8=this[_0x30fe('0x2')][_0x30fe('0x15')]['get']('TrackChangesEditing'),_0x3ad982=_0x47ac52[_0x30fe('0x18')]||this[_0x30fe('0x2')][_0x30fe('0xe')][_0x30fe('0x1a')][_0x30fe('0x11')]['getSelectedElement']();this[_0x30fe('0x2')]['model'][_0x30fe('0x3')](_0x1b7eae=>{let _0x1ecead=_0x3ad982[_0x30fe('0x0')](_0x30fe('0x17'))||null,_0x5b7dad=_0x3ad982[_0x30fe('0x0')]('columnWidths')||null;const _0x37f065=_0x47ac52[_0x30fe('0x17')]||_0x1ecead,_0x40afe2=_0x47ac52[_0x30fe('0x1')]||_0x5b7dad,_0x750c2a=this[_0x30fe('0x2')][_0x30fe('0x15')][_0x30fe('0xf')]('Users')['me'];for(const _0x496d43 of _0x4ea5a8['getSuggestions']()){const _0x156538=_0x496d43[_0x30fe('0x1b')]();if(_0x30fe('0x1c')===_0x496d43[_0x30fe('0x5')]&&_0x156538===_0x3ad982){_0x496d43[_0x30fe('0x1d')]!==_0x750c2a&&_0x496d43[_0x30fe('0x9')](),_0x1ecead=_0x496d43[_0x30fe('0x13')][_0x30fe('0xd')][0x0][_0x30fe('0x17')],_0x5b7dad=_0x496d43[_0x30fe('0x13')][_0x30fe('0xd')][0x0][_0x30fe('0x1')];break;}}_0x1b7eae[_0x30fe('0x6')](_0x30fe('0x17'),_0x37f065,_0x3ad982),_0x1b7eae['setAttribute'](_0x30fe('0x1'),_0x40afe2,_0x3ad982),_0x4ea5a8['markBlockFormat'](_0x3ad982,{'commandName':_0x30fe('0x19'),'commandParams':[{'tableWidth':_0x1ecead,'columnWidths':_0x5b7dad}],'formatGroupId':_0x30fe('0x1c')},[],_0x30fe('0x1c'));});}[_0x30fe('0x21')](_0x58e09e){const {data:_0x51ed87}=_0x58e09e;if(_0x51ed87&&_0x30fe('0x1c')===_0x51ed87['formatGroupId']){const _0x1cc70e=_0x30fe('0x7');return{'type':'format','content':_0x18885e(this[_0x30fe('0x2')][_0x30fe('0x10')],_0x1cc70e)};}}}
23
+ const _0x46b6=['columnWidths','commandParams','getContainedElement','formatGroupId','TrackChangesEditing','subType','change','data','Users','getAttribute','TableColumnResizeEditing','accept','registerCustomCallback','model','tableWidth','discard','formatBlock','locale','markBlockFormat','table','afterInit','handleSuggestionDescription','getSuggestions','getSelectedElement','editor','_descriptionFactory','getSuggestionCallback','get','enableCommand','format','*Format:*\x20resize\x20table','registerDescriptionCallback','resizeTable','setAttribute','handleResizeTableWidthCommand','plugins','_suggestionFactory','bind','selection','resizeTableWidth'];(function(_0x28db23,_0x46b642){const _0x8479d8=function(_0x1ed34a){while(--_0x1ed34a){_0x28db23['push'](_0x28db23['shift']());}};_0x8479d8(++_0x46b642);}(_0x46b6,0x10f));const _0x8479=function(_0x28db23,_0x46b642){_0x28db23=_0x28db23-0x0;let _0x8479d8=_0x46b6[_0x28db23];return _0x8479d8;};import{Plugin as _0x12405a}from'ckeditor5/src/core';import{getTranslation as _0x5a093d}from'../utils/common-translations';export default class yt extends _0x12405a{[_0x8479('0x1d')](){if(!this[_0x8479('0x21')][_0x8479('0x4')]['has'](_0x8479('0x13')))return;const _0x5d236f=this[_0x8479('0x21')]['plugins'][_0x8479('0x24')](_0x8479('0xd'));_0x5d236f[_0x8479('0x25')](_0x8479('0x8'),this[_0x8479('0x3')][_0x8479('0x6')](this)),_0x5d236f[_0x8479('0x25')]('resizeColumnWidths',this['handleResizeTableWidthCommand'][_0x8479('0x6')](this)),_0x5d236f[_0x8479('0x5')][_0x8479('0x15')](_0x8479('0x19'),_0x8479('0x1'),_0x8479('0x14'),_0x5d236f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,_0x8479('0x18'))),_0x5d236f['_suggestionFactory']['registerCustomCallback'](_0x8479('0x19'),_0x8479('0x1'),_0x8479('0x18'),_0x5d236f[_0x8479('0x5')][_0x8479('0x23')](_0x8479('0x19'),null,_0x8479('0x14'))),_0x5d236f[_0x8479('0x22')][_0x8479('0x0')](this[_0x8479('0x1e')][_0x8479('0x6')](this));}[_0x8479('0x3')](_0x2e9343,_0x44bf3a){const _0x439fff=this[_0x8479('0x21')][_0x8479('0x4')][_0x8479('0x24')](_0x8479('0xd')),_0x565361=_0x44bf3a[_0x8479('0x1c')]||this[_0x8479('0x21')][_0x8479('0x16')]['document'][_0x8479('0x7')][_0x8479('0x20')]();this[_0x8479('0x21')][_0x8479('0x16')][_0x8479('0xf')](_0x5e487d=>{let _0x2a8679=_0x565361[_0x8479('0x12')](_0x8479('0x17'))||null,_0x3b4a3a=_0x565361[_0x8479('0x12')](_0x8479('0x9'))||null;const _0x38c011=_0x44bf3a[_0x8479('0x17')]||_0x2a8679,_0x1f7fc8=_0x44bf3a[_0x8479('0x9')]||_0x3b4a3a,_0x1afe85=this[_0x8479('0x21')][_0x8479('0x4')]['get'](_0x8479('0x11'))['me'];for(const _0x45af1c of _0x439fff[_0x8479('0x1f')]()){const _0x2fbfcc=_0x45af1c[_0x8479('0xb')]();if(_0x8479('0x1')===_0x45af1c[_0x8479('0xe')]&&_0x2fbfcc===_0x565361){_0x45af1c['author']!==_0x1afe85&&_0x45af1c[_0x8479('0x18')](),_0x2a8679=_0x45af1c[_0x8479('0x10')][_0x8479('0xa')][0x0]['tableWidth'],_0x3b4a3a=_0x45af1c['data'][_0x8479('0xa')][0x0][_0x8479('0x9')];break;}}_0x5e487d[_0x8479('0x2')](_0x8479('0x17'),_0x38c011,_0x565361),_0x5e487d[_0x8479('0x2')](_0x8479('0x9'),_0x1f7fc8,_0x565361),_0x439fff[_0x8479('0x1b')](_0x565361,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2a8679,'columnWidths':_0x3b4a3a}],'formatGroupId':'resizeTable'},[],_0x8479('0x1'));});}[_0x8479('0x1e')](_0x135eaa){const {data:_0x4ab723}=_0x135eaa;if(_0x4ab723&&'resizeTable'===_0x4ab723[_0x8479('0xc')]){const _0x4f2c13=_0x8479('0x27');return{'type':_0x8479('0x26'),'content':_0x5a093d(this[_0x8479('0x21')][_0x8479('0x1a')],_0x4f2c13)};}}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x293d=['data-suggestion','change','getCellLocation','TableUtils','createPositionAfter','registerDescriptionCallback','writer','data','setTableColumnHeader','childCount','markBlockFormat','createPositionBefore','parent','format','FORMAT_HEADER_ROW','ck-suggestion-marker-','plugins','selection','showSuggestionHighlights','commandName','headingColumns','last','ck-suggestion-marker--active','model','_splitMarkerName','FORMAT_HEADER_COLUMN','options','setTableRowHeader','has','table','getAttribute','item','getChild','TableEditing','toViewElement','setAttribute','getSelectionAffectedTableCells','activeMarkers','downcastDispatcher','accept','afterInit','first','start','nodeBefore','addClass','editing','*Format:*\x20%0','index','markerNameToElements','markerName','registerCustomCallback','getColumnIndexes','includes','commands','removeClass','mapper','removeAttribute','createTableWalker','editor','enableCommand','cell','bindElementToMarker','headingRows','FORMAT_REGULAR_COLUMN','nodeAfter','stop','document','forceValue','createRange','markerRange','requires','formatBlock','getSuggestion','commandParams','_suggestionFactory','get','value','unbindElementFromMarkerName','isBefore','locale','_acceptFormatSuggestionCallbackFactory','consumable','TrackChangesEditing','findAncestor','highest'];(function(_0x461f6f,_0x293d90){const _0x12690c=function(_0x2c05ea){while(--_0x2c05ea){_0x461f6f['push'](_0x461f6f['shift']());}};_0x12690c(++_0x293d90);}(_0x293d,0x18a));const _0x1269=function(_0x461f6f,_0x293d90){_0x461f6f=_0x461f6f-0x0;let _0x12690c=_0x293d[_0x461f6f];return _0x12690c;};import{Plugin as _0xa10528}from'ckeditor5/src/core';import _0x40344c from'./table';import{getTranslation as _0x453f69}from'../utils/common-translations';export default class dt extends _0xa10528{static get[_0x1269('0x10')](){return[_0x40344c];}[_0x1269('0x47')](){const _0x2f6471=this[_0x1269('0x4')];if(!_0x2f6471['plugins'][_0x1269('0x3b')](_0x1269('0x40')))return;const _0x4667d6=_0x2f6471[_0x1269('0x19')],_0x116198=_0x2f6471[_0x1269('0x2f')]['get'](_0x1269('0x1c')),_0x544c4b=_0x2f6471[_0x1269('0x2f')][_0x1269('0x15')](_0x1269('0x22')),_0x2070dd=_0x2f6471['plugins'][_0x1269('0x15')](_0x40344c);function _0x56b638({showActiveMarker:_0x5d2fa6=!0x0,setDataAttribute:_0x335a7f=!0x0}={}){return(_0xe95927,_0x3669ad,_0x4de9c8)=>{const {type:_0x26fc3e,id:_0x435e40}=_0x116198[_0x1269('0x37')](_0x3669ad[_0x1269('0x50')]),_0x4a3b73=_0x116198[_0x1269('0x12')](_0x435e40);if(!_0x4a3b73[_0x1269('0x26')]||_0x1269('0x27')!=_0x4a3b73[_0x1269('0x26')][_0x1269('0x32')])return;if(_0x3669ad[_0x1269('0x3e')])return void _0xe95927[_0x1269('0xb')]();if(!_0x4de9c8[_0x1269('0x1b')]['consume'](_0x3669ad[_0x1269('0xf')],_0xe95927['name']))return;const _0x2c39e8=_0x3669ad[_0x1269('0xf')][_0x1269('0x49')][_0x1269('0xa')],_0x181323=_0x3669ad[_0x1269('0xf')]['end'][_0x1269('0x4a')],_0x428e52=_0x2c39e8[_0x1269('0x2b')][_0x1269('0x2b')],{column:_0x1c736d}=_0x544c4b[_0x1269('0x21')](_0x2c39e8),{column:_0x2b8bd8}=_0x544c4b[_0x1269('0x21')](_0x181323);for(let _0x178ca4=_0x1c736d;_0x178ca4<=_0x2b8bd8;_0x178ca4++){const _0x2106f4=_0x544c4b[_0x1269('0x3')](_0x428e52,{'column':_0x178ca4,'includeAllSlots':!0x1});for(const _0x418407 of _0x2106f4){const _0x29bd91=_0x418407[_0x1269('0x6')],_0x3bd8df=_0x4de9c8[_0x1269('0x1')][_0x1269('0x41')](_0x29bd91);_0x4de9c8[_0x1269('0x25')][_0x1269('0x4b')](_0x1269('0x2e')+_0x26fc3e,_0x3bd8df),_0x335a7f&&_0x4de9c8['writer'][_0x1269('0x42')](_0x1269('0x1f'),_0x435e40,_0x3bd8df),_0x4de9c8[_0x1269('0x1')][_0x1269('0x7')](_0x3bd8df,_0x3669ad['markerName']),_0x5d2fa6&&(_0x116198[_0x1269('0x44')][_0x1269('0x53')](_0x3669ad['markerName'])?_0x4de9c8[_0x1269('0x25')][_0x1269('0x4b')](_0x1269('0x35'),_0x3bd8df):_0x4de9c8['writer']['removeClass'](_0x1269('0x35'),_0x3bd8df));}}};}_0x116198[_0x1269('0x5')](_0x1269('0x3a'),(_0x20bd36,_0x24ec1a)=>{const _0x2ea962=_0x544c4b[_0x1269('0x43')](_0x2f6471[_0x1269('0x36')][_0x1269('0xc')]['selection']),_0xb58bd2=_0x544c4b['getRowIndexes'](_0x2ea962),_0x848b7f=_0x2ea962[0x0][_0x1269('0x1d')](_0x1269('0x3c')),_0x1784bd=_0x848b7f[_0x1269('0x3d')](_0x1269('0x8'))||0x0,_0x4acc6f=_0x24ec1a&&null!==_0x24ec1a[_0x1269('0xd')]?_0x24ec1a[_0x1269('0xd')]:!_0x2f6471[_0x1269('0x54')]['get']('setTableRowHeader')[_0x1269('0x16')],_0x3b4006=_0x4acc6f?_0xb58bd2[_0x1269('0x34')]:_0xb58bd2[_0x1269('0x48')],_0x1a820b=_0x848b7f[_0x1269('0x3f')](_0x3b4006);let _0x2e37d3;if(_0x4acc6f){const _0x29d5d5=_0x848b7f[_0x1269('0x3f')](_0x1784bd);if(_0x1a820b[_0x1269('0x4e')]<_0x29d5d5[_0x1269('0x4e')])return;_0x2e37d3=_0x2f6471[_0x1269('0x36')][_0x1269('0xe')](_0x2f6471[_0x1269('0x36')]['createPositionBefore'](_0x29d5d5['getChild'](0x0)),_0x2f6471[_0x1269('0x36')][_0x1269('0x23')](_0x1a820b[_0x1269('0x3f')](_0x1a820b[_0x1269('0x28')]-0x1)));}else{const _0x4d64fc=_0x848b7f['getChild'](_0x1784bd-0x1);if(!_0x4d64fc)return;_0x2e37d3=_0x2f6471['model']['createRange'](_0x2f6471[_0x1269('0x36')]['createPositionBefore'](_0x1a820b[_0x1269('0x3f')](0x0)),_0x2f6471['model'][_0x1269('0x23')](_0x4d64fc['getChild'](_0x4d64fc['childCount']-0x1)));}_0x2f6471['model'][_0x1269('0x20')](()=>{_0x116198[_0x1269('0x29')](_0x2e37d3,{'commandName':_0x1269('0x3a'),'commandParams':[{'forceValue':_0x4acc6f}]},[],_0x1269('0x3a'));});}),_0x116198['enableCommand'](_0x1269('0x27'),(_0x644a2a,_0x4e5580)=>{const _0x16f820=_0x2f6471[_0x1269('0x2f')][_0x1269('0x15')]('TableUtils'),_0x1b95eb=_0x16f820[_0x1269('0x43')](_0x2f6471['model'][_0x1269('0xc')][_0x1269('0x30')]),_0x4ca4dd=_0x16f820[_0x1269('0x52')](_0x1b95eb),_0x125b7a=_0x1b95eb[0x0][_0x1269('0x1d')](_0x1269('0x3c')),_0x242b4f=_0x125b7a['getAttribute'](_0x1269('0x33'))||0x0,_0x8cbf42=_0x4e5580&&null!==_0x4e5580[_0x1269('0xd')]?_0x4e5580[_0x1269('0xd')]:!_0x2f6471[_0x1269('0x54')][_0x1269('0x15')](_0x1269('0x27'))[_0x1269('0x16')];let _0x34e941;const _0x1c98f7=_0x125b7a['getChild'](0x0),_0x5f569c=_0x8cbf42?_0x4ca4dd[_0x1269('0x34')]:_0x4ca4dd[_0x1269('0x48')],_0x5275e3=_0x16f820[_0x1269('0x3')](_0x125b7a,{'startRow':0x0,'column':_0x5f569c,'includeAllSlots':!0x1}),_0x45907a=Array['from'](_0x5275e3)[0x0][_0x1269('0x6')];if(_0x8cbf42){const _0x3650f6=_0x1c98f7[_0x1269('0x3f')](_0x242b4f);if(_0x45907a[_0x1269('0x18')](_0x3650f6))return;_0x34e941=_0x2f6471[_0x1269('0x36')]['createRange'](_0x2f6471[_0x1269('0x36')]['createPositionBefore'](_0x3650f6),_0x2f6471[_0x1269('0x36')][_0x1269('0x23')](_0x45907a));}else{const _0x2548cb=_0x1c98f7[_0x1269('0x3f')](_0x242b4f-0x1);if(!_0x2548cb)return;_0x34e941=_0x2f6471[_0x1269('0x36')][_0x1269('0xe')](_0x2f6471[_0x1269('0x36')][_0x1269('0x2a')](_0x45907a),_0x2f6471[_0x1269('0x36')][_0x1269('0x23')](_0x2548cb));}_0x2f6471['model']['change'](()=>{_0x116198[_0x1269('0x29')](_0x34e941,{'commandName':_0x1269('0x27'),'commandParams':[{'forceValue':_0x8cbf42}]},[],_0x1269('0x27'));});}),_0x2f6471[_0x1269('0x4c')][_0x1269('0x45')]['on']('addMarker:suggestion',_0x56b638(),{'priority':_0x1269('0x1e')}),_0x2f6471[_0x1269('0x26')][_0x1269('0x45')]['on']('addMarker:suggestion',(_0x512e87,_0x1b7202,_0x2e82a9)=>{_0x2e82a9[_0x1269('0x39')][_0x1269('0x31')]&&_0x56b638({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x512e87,_0x1b7202,_0x2e82a9);},{'priority':'highest'}),_0x2f6471[_0x1269('0x4c')][_0x1269('0x45')]['on']('removeMarker:suggestion',(_0x3dfa1d,_0x193b52,_0x3149cd)=>{const {type:_0x3a4927,id:_0x315441}=_0x116198['_splitMarkerName'](_0x193b52['markerName']),_0x2b5e97=_0x116198['getSuggestion'](_0x315441);if(!_0x2b5e97['data']||'setTableColumnHeader'!=_0x2b5e97[_0x1269('0x26')][_0x1269('0x32')])return;const _0x346062=_0x3149cd['mapper'][_0x1269('0x4f')](_0x193b52[_0x1269('0x50')]);if(_0x346062)for(const _0xbc60e1 of _0x346062)_0x3149cd[_0x1269('0x25')][_0x1269('0x0')](_0x1269('0x2e')+_0x3a4927,_0xbc60e1),_0x3149cd['writer'][_0x1269('0x0')](_0x1269('0x35'),_0xbc60e1),_0x3149cd['writer'][_0x1269('0x2')](_0x1269('0x1f'),_0xbc60e1),_0x3149cd[_0x1269('0x1')][_0x1269('0x17')](_0xbc60e1,_0x193b52[_0x1269('0x50')]);},{'priority':_0x1269('0x1e')}),_0x116198['_descriptionFactory'][_0x1269('0x24')](_0x33aa6a=>{const {data:_0x164ac6}=_0x33aa6a;if(_0x164ac6){if(_0x1269('0x3a')==_0x164ac6[_0x1269('0x32')]){const _0x32d47f=_0x164ac6[_0x1269('0x13')][0x0][_0x1269('0xd')];return _0x544f15(_0x453f69(_0x4667d6,_0x32d47f?_0x1269('0x2d'):'FORMAT_REGULAR_ROW'));}if(_0x1269('0x27')==_0x164ac6[_0x1269('0x32')]){const _0x2ef184=_0x164ac6[_0x1269('0x13')][0x0][_0x1269('0xd')];return _0x544f15(_0x453f69(_0x4667d6,_0x2ef184?_0x1269('0x38'):_0x1269('0x9')));}}function _0x544f15(_0x13a0b0){return{'type':_0x1269('0x2c'),'content':_0x453f69(_0x4667d6,_0x1269('0x4d'),_0x13a0b0)};}});const _0x518182=_0x2070dd[_0x1269('0x1a')]();_0x116198[_0x1269('0x14')]['registerCustomCallback'](_0x1269('0x11'),'setTableRowHeader',_0x1269('0x46'),_0x518182),_0x116198[_0x1269('0x14')][_0x1269('0x51')](_0x1269('0x11'),_0x1269('0x27'),'accept',_0x518182);}}
23
+ const _0x259d=['getChild','removeClass','mapper','headingColumns','markerNameToElements','change','commands','requires','data-suggestion','includes','markerRange','FORMAT_HEADER_COLUMN','model','consume','selection','_splitMarkerName','nodeAfter','commandName','commandParams','FORMAT_REGULAR_COLUMN','index','highest','last','activeMarkers','showSuggestionHighlights','table','headingRows','TrackChangesEditing','unbindElementFromMarkerName','editing','document','get','ck-suggestion-marker--active','createRange','getSuggestion','registerCustomCallback','accept','data','findAncestor','editor','addClass','consumable','afterInit','bindElementToMarker','getAttribute','*Format:*\x20%0','name','getSelectionAffectedTableCells','first','TableUtils','formatBlock','createPositionAfter','downcastDispatcher','options','_suggestionFactory','getColumnIndexes','getRowIndexes','setTableRowHeader','FORMAT_HEADER_ROW','setAttribute','cell','createPositionBefore','parent','_acceptFormatSuggestionCallbackFactory','markerName','_descriptionFactory','forceValue','getCellLocation','item','locale','ck-suggestion-marker-','TableEditing','toViewElement','childCount','writer','has','plugins','removeAttribute','enableCommand','createTableWalker','value','nodeBefore','setTableColumnHeader','markBlockFormat'];(function(_0x51758e,_0x259d30){const _0x125f77=function(_0x5d2fce){while(--_0x5d2fce){_0x51758e['push'](_0x51758e['shift']());}};_0x125f77(++_0x259d30);}(_0x259d,0x79));const _0x125f=function(_0x51758e,_0x259d30){_0x51758e=_0x51758e-0x0;let _0x125f77=_0x259d[_0x51758e];return _0x125f77;};import{Plugin as _0x582a8b}from'ckeditor5/src/core';import _0x1d9b61 from'./table';import{getTranslation as _0x374d0c}from'../utils/common-translations';export default class kt extends _0x582a8b{static get[_0x125f('0x36')](){return[_0x1d9b61];}[_0x125f('0x5')](){const _0xbd761c=this[_0x125f('0x2')];if(!_0xbd761c['plugins'][_0x125f('0x26')](_0x125f('0x22')))return;const _0x121eb2=_0xbd761c[_0x125f('0x20')],_0x51d0f8=_0xbd761c[_0x125f('0x27')][_0x125f('0x4e')](_0x125f('0x4a')),_0x3f09ca=_0xbd761c['plugins'][_0x125f('0x4e')](_0x125f('0xc')),_0x545404=_0xbd761c[_0x125f('0x27')][_0x125f('0x4e')](_0x1d9b61);function _0x51c04e({showActiveMarker:_0xbf7ffd=!0x0,setDataAttribute:_0xd1b463=!0x0}={}){return(_0xd9bfbe,_0x42ff0b,_0x14265f)=>{const {type:_0x21d292,id:_0x19ffa1}=_0x51d0f8['_splitMarkerName'](_0x42ff0b[_0x125f('0x1b')]),_0x886276=_0x51d0f8[_0x125f('0x51')](_0x19ffa1);if(!_0x886276[_0x125f('0x0')]||_0x125f('0x2d')!=_0x886276[_0x125f('0x0')]['commandName'])return;if(_0x42ff0b[_0x125f('0x1f')])return void _0xd9bfbe['stop']();if(!_0x14265f[_0x125f('0x4')][_0x125f('0x3c')](_0x42ff0b[_0x125f('0x39')],_0xd9bfbe[_0x125f('0x9')]))return;const _0x4b6e17=_0x42ff0b[_0x125f('0x39')]['start'][_0x125f('0x3f')],_0x2789cd=_0x42ff0b['markerRange']['end'][_0x125f('0x2c')],_0xe1ffe3=_0x4b6e17[_0x125f('0x19')][_0x125f('0x19')],{column:_0x4efcdf}=_0x3f09ca[_0x125f('0x1e')](_0x4b6e17),{column:_0x4b3011}=_0x3f09ca[_0x125f('0x1e')](_0x2789cd);for(let _0x2988f3=_0x4efcdf;_0x2988f3<=_0x4b3011;_0x2988f3++){const _0x398f77=_0x3f09ca[_0x125f('0x2a')](_0xe1ffe3,{'column':_0x2988f3,'includeAllSlots':!0x1});for(const _0x394420 of _0x398f77){const _0x5c850d=_0x394420[_0x125f('0x17')],_0x59f76a=_0x14265f['mapper'][_0x125f('0x23')](_0x5c850d);_0x14265f['writer']['addClass'](_0x125f('0x21')+_0x21d292,_0x59f76a),_0xd1b463&&_0x14265f['writer'][_0x125f('0x16')](_0x125f('0x37'),_0x19ffa1,_0x59f76a),_0x14265f['mapper'][_0x125f('0x6')](_0x59f76a,_0x42ff0b[_0x125f('0x1b')]),_0xbf7ffd&&(_0x51d0f8[_0x125f('0x46')][_0x125f('0x38')](_0x42ff0b['markerName'])?_0x14265f[_0x125f('0x25')][_0x125f('0x3')](_0x125f('0x4f'),_0x59f76a):_0x14265f[_0x125f('0x25')][_0x125f('0x30')](_0x125f('0x4f'),_0x59f76a));}}};}_0x51d0f8[_0x125f('0x29')](_0x125f('0x14'),(_0x1e980d,_0x3e4733)=>{const _0x5221f5=_0x3f09ca['getSelectionAffectedTableCells'](_0xbd761c[_0x125f('0x3b')]['document'][_0x125f('0x3d')]),_0x4f720c=_0x3f09ca[_0x125f('0x13')](_0x5221f5),_0x57045f=_0x5221f5[0x0][_0x125f('0x1')](_0x125f('0x48')),_0x292a9e=_0x57045f[_0x125f('0x7')](_0x125f('0x49'))||0x0,_0x8235c9=_0x3e4733&&null!==_0x3e4733['forceValue']?_0x3e4733['forceValue']:!_0xbd761c[_0x125f('0x35')]['get'](_0x125f('0x14'))[_0x125f('0x2b')],_0x32ff80=_0x8235c9?_0x4f720c[_0x125f('0x45')]:_0x4f720c[_0x125f('0xb')],_0x2ac05f=_0x57045f[_0x125f('0x2f')](_0x32ff80);let _0x333aa0;if(_0x8235c9){const _0x301744=_0x57045f['getChild'](_0x292a9e);if(_0x2ac05f['index']<_0x301744[_0x125f('0x43')])return;_0x333aa0=_0xbd761c[_0x125f('0x3b')][_0x125f('0x50')](_0xbd761c[_0x125f('0x3b')][_0x125f('0x18')](_0x301744['getChild'](0x0)),_0xbd761c[_0x125f('0x3b')][_0x125f('0xe')](_0x2ac05f[_0x125f('0x2f')](_0x2ac05f[_0x125f('0x24')]-0x1)));}else{const _0x2eb5f8=_0x57045f[_0x125f('0x2f')](_0x292a9e-0x1);if(!_0x2eb5f8)return;_0x333aa0=_0xbd761c[_0x125f('0x3b')][_0x125f('0x50')](_0xbd761c['model'][_0x125f('0x18')](_0x2ac05f[_0x125f('0x2f')](0x0)),_0xbd761c[_0x125f('0x3b')][_0x125f('0xe')](_0x2eb5f8[_0x125f('0x2f')](_0x2eb5f8[_0x125f('0x24')]-0x1)));}_0xbd761c[_0x125f('0x3b')][_0x125f('0x34')](()=>{_0x51d0f8['markBlockFormat'](_0x333aa0,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x8235c9}]},[],_0x125f('0x14'));});}),_0x51d0f8[_0x125f('0x29')](_0x125f('0x2d'),(_0x327c78,_0x394169)=>{const _0x46afab=_0xbd761c['plugins'][_0x125f('0x4e')](_0x125f('0xc')),_0x5c2c08=_0x46afab[_0x125f('0xa')](_0xbd761c[_0x125f('0x3b')][_0x125f('0x4d')][_0x125f('0x3d')]),_0x4ca9ce=_0x46afab[_0x125f('0x12')](_0x5c2c08),_0x40ec77=_0x5c2c08[0x0]['findAncestor'](_0x125f('0x48')),_0x2c3d3c=_0x40ec77[_0x125f('0x7')](_0x125f('0x32'))||0x0,_0x5bd6b8=_0x394169&&null!==_0x394169[_0x125f('0x1d')]?_0x394169['forceValue']:!_0xbd761c[_0x125f('0x35')]['get'](_0x125f('0x2d'))[_0x125f('0x2b')];let _0x2115aa;const _0x2adf6e=_0x40ec77['getChild'](0x0),_0x579f9d=_0x5bd6b8?_0x4ca9ce[_0x125f('0x45')]:_0x4ca9ce[_0x125f('0xb')],_0x958a7d=_0x46afab['createTableWalker'](_0x40ec77,{'startRow':0x0,'column':_0x579f9d,'includeAllSlots':!0x1}),_0x32d3dc=Array['from'](_0x958a7d)[0x0][_0x125f('0x17')];if(_0x5bd6b8){const _0x26a755=_0x2adf6e[_0x125f('0x2f')](_0x2c3d3c);if(_0x32d3dc['isBefore'](_0x26a755))return;_0x2115aa=_0xbd761c[_0x125f('0x3b')]['createRange'](_0xbd761c[_0x125f('0x3b')][_0x125f('0x18')](_0x26a755),_0xbd761c['model'][_0x125f('0xe')](_0x32d3dc));}else{const _0x4db355=_0x2adf6e['getChild'](_0x2c3d3c-0x1);if(!_0x4db355)return;_0x2115aa=_0xbd761c[_0x125f('0x3b')][_0x125f('0x50')](_0xbd761c[_0x125f('0x3b')][_0x125f('0x18')](_0x32d3dc),_0xbd761c['model'][_0x125f('0xe')](_0x4db355));}_0xbd761c[_0x125f('0x3b')][_0x125f('0x34')](()=>{_0x51d0f8[_0x125f('0x2e')](_0x2115aa,{'commandName':_0x125f('0x2d'),'commandParams':[{'forceValue':_0x5bd6b8}]},[],'setTableColumnHeader');});}),_0xbd761c[_0x125f('0x4c')][_0x125f('0xf')]['on']('addMarker:suggestion',_0x51c04e(),{'priority':_0x125f('0x44')}),_0xbd761c[_0x125f('0x0')][_0x125f('0xf')]['on']('addMarker:suggestion',(_0x5ad84b,_0x50c037,_0x235847)=>{_0x235847[_0x125f('0x10')][_0x125f('0x47')]&&_0x51c04e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5ad84b,_0x50c037,_0x235847);},{'priority':_0x125f('0x44')}),_0xbd761c[_0x125f('0x4c')][_0x125f('0xf')]['on']('removeMarker:suggestion',(_0x1f8ddd,_0xd0ab76,_0x2fc09b)=>{const {type:_0x5d2d4d,id:_0x267637}=_0x51d0f8[_0x125f('0x3e')](_0xd0ab76[_0x125f('0x1b')]),_0x254172=_0x51d0f8['getSuggestion'](_0x267637);if(!_0x254172['data']||_0x125f('0x2d')!=_0x254172[_0x125f('0x0')][_0x125f('0x40')])return;const _0x28f326=_0x2fc09b[_0x125f('0x31')][_0x125f('0x33')](_0xd0ab76['markerName']);if(_0x28f326)for(const _0x513e6d of _0x28f326)_0x2fc09b[_0x125f('0x25')][_0x125f('0x30')](_0x125f('0x21')+_0x5d2d4d,_0x513e6d),_0x2fc09b[_0x125f('0x25')]['removeClass']('ck-suggestion-marker--active',_0x513e6d),_0x2fc09b[_0x125f('0x25')][_0x125f('0x28')](_0x125f('0x37'),_0x513e6d),_0x2fc09b['mapper'][_0x125f('0x4b')](_0x513e6d,_0xd0ab76[_0x125f('0x1b')]);},{'priority':'highest'}),_0x51d0f8[_0x125f('0x1c')]['registerDescriptionCallback'](_0x358b4d=>{const {data:_0x59b34d}=_0x358b4d;if(_0x59b34d){if('setTableRowHeader'==_0x59b34d[_0x125f('0x40')]){const _0x54e086=_0x59b34d[_0x125f('0x41')][0x0][_0x125f('0x1d')];return _0x22d163(_0x374d0c(_0x121eb2,_0x54e086?_0x125f('0x15'):'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x59b34d[_0x125f('0x40')]){const _0x305f36=_0x59b34d[_0x125f('0x41')][0x0][_0x125f('0x1d')];return _0x22d163(_0x374d0c(_0x121eb2,_0x305f36?_0x125f('0x3a'):_0x125f('0x42')));}}function _0x22d163(_0xa178b3){return{'type':'format','content':_0x374d0c(_0x121eb2,_0x125f('0x8'),_0xa178b3)};}});const _0xb70182=_0x545404[_0x125f('0x1a')]();_0x51d0f8[_0x125f('0x11')]['registerCustomCallback'](_0x125f('0xd'),'setTableRowHeader',_0x125f('0x53'),_0xb70182),_0x51d0f8[_0x125f('0x11')][_0x125f('0x52')](_0x125f('0xd'),_0x125f('0x2d'),'accept',_0xb70182);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d8f=['registerCustomCallback','rootName','refresh','selection','findAncestor','_areSelectedCellsMergable','_acceptFormatSuggestionCallbackFactory','highest','size','TrackChangesEditing','containsRange','tableCell','getCellLocation','getAncestors','horizontally','type','splitTableCellHorizontally','setSelection','mergeTableCellDown','commandName','enableCommand','push','_tablePostFixingSubtypes','createRangeOn','TableEditing','_suggestionFactory','get','TableUtils','registerDescriptionCallback','filter','mergeTableCellLeft','from','editor','detach','_areMergableCells','plugins','add','isEnabled','getSuggestions','trackChanges','deletion','getSelectionAffectedTableCells','mergeTableCellUp','change','*Split\x20cell:*\x20horizontally','root','forceDefaultExecution','*Merge\x20cells*','value','format','createTableWalker','splitTableCellVertically','*Split\x20cell:*\x20vertically','execute','_isForcedDefaultExecutionBlock','mergeTableCellRight','map','element','accept','$graveyard','afterInit','model','has','low','cell','document','commands','mergeTableCells','return','length','getFirstPosition','markMultiRangeBlockFormat','set:isEnabled','find','formatBlock','_descriptionFactory','insertion','requires'];(function(_0xd0dc32,_0x3d8f94){const _0x5e9ea9=function(_0x31afd0){while(--_0x31afd0){_0xd0dc32['push'](_0xd0dc32['shift']());}};_0x5e9ea9(++_0x3d8f94);}(_0x3d8f,0x9a));const _0x5e9e=function(_0xd0dc32,_0x3d8f94){_0xd0dc32=_0xd0dc32-0x0;let _0x5e9ea9=_0x3d8f[_0xd0dc32];return _0x5e9ea9;};import{Plugin as _0xfe3c5}from'ckeditor5/src/core';import _0x26bff5 from'./table';import{LiveRange as _0x2bda53}from'ckeditor5/src/engine';import{getTranslation as _0x4dda51}from'../utils/common-translations';export default class mt extends _0xfe3c5{static get[_0x5e9e('0x1')](){return[_0x26bff5];}[_0x5e9e('0x3e')](){const _0x4aaf89=this['editor'],_0x1be8ae=_0x4aaf89[_0x5e9e('0x3f')][_0x5e9e('0x43')][_0x5e9e('0x5')],_0x217f30=_0x4aaf89['locale'];if(!_0x4aaf89[_0x5e9e('0x25')][_0x5e9e('0x40')](_0x5e9e('0x1a')))return;const _0x44733c=_0x4aaf89['plugins'][_0x5e9e('0x1c')](_0x5e9e('0xb')),_0x404699=_0x4aaf89[_0x5e9e('0x25')][_0x5e9e('0x1c')](_0x5e9e('0x1d')),_0x32e785=_0x4aaf89[_0x5e9e('0x25')][_0x5e9e('0x1c')](_0x26bff5);_0x32e785[_0x5e9e('0x18')][_0x5e9e('0x17')](_0x5e9e('0x45')),_0x44733c[_0x5e9e('0x16')](_0x5e9e('0x45'),()=>{const _0x36c409=_0x404699[_0x5e9e('0x2b')](_0x4aaf89[_0x5e9e('0x3f')][_0x5e9e('0x43')][_0x5e9e('0x5')]);_0x4aaf89[_0x5e9e('0x3f')][_0x5e9e('0x2d')](()=>{_0x44733c['markMultiRangeBlockFormat'](_0x36c409,{'commandName':_0x5e9e('0x45'),'commandParams':[]},[],_0x5e9e('0x45'));});}),_0x4aaf89[_0x5e9e('0x44')]['get'](_0x5e9e('0x45'))['on'](_0x5e9e('0x37'),(_0xefc29c,_0x48c17e)=>{_0x4aaf89[_0x5e9e('0x44')][_0x5e9e('0x1c')](_0x5e9e('0x29'))[_0x5e9e('0x32')]&&(_0x48c17e[_0x5e9e('0x47')]>0x0&&_0x48c17e[_0x48c17e['length']-0x1]&&_0x48c17e[_0x48c17e[_0x5e9e('0x47')]-0x1][_0x5e9e('0x30')]||_0x44733c[_0x5e9e('0x38')]||this['_areSelectedCellsMergable']()||_0xefc29c['stop']());},{'priority':_0x5e9e('0x9')});for(const _0x52df09 of[_0x5e9e('0x2c'),_0x5e9e('0x39'),_0x5e9e('0x14'),_0x5e9e('0x20')]){const _0x389547=_0x4aaf89[_0x5e9e('0x44')]['get'](_0x52df09);_0x44733c[_0x5e9e('0x16')](_0x52df09,()=>{const _0x265a97=_0x4aaf89[_0x5e9e('0x3f')][_0x5e9e('0x43')][_0x5e9e('0x5')][_0x5e9e('0x48')]()['getAncestors']()[_0x5e9e('0x4b')](_0x5ed2f4=>_0x5ed2f4['is']('element',_0x5e9e('0xd'))),_0x1e0981=_0x389547[_0x5e9e('0x32')];_0x4aaf89[_0x5e9e('0x3f')][_0x5e9e('0x2d')](()=>{_0x44733c[_0x5e9e('0x49')]([_0x265a97,_0x1e0981],{'commandName':_0x5e9e('0x45'),'commandParams':[]},[],_0x5e9e('0x45'));});});}for(const _0x255c6c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x35142c=_0x4aaf89[_0x5e9e('0x44')][_0x5e9e('0x1c')](_0x255c6c);_0x44733c['enableCommand'](_0x255c6c,()=>{const _0x36a39b=_0x404699[_0x5e9e('0x2b')](_0x4aaf89['model'][_0x5e9e('0x43')][_0x5e9e('0x5')])[0x0],_0x598145=_0x36a39b[_0x5e9e('0x6')]('table'),{column:_0x352cb3,row:_0x5a4e11}=_0x404699[_0x5e9e('0xe')](_0x36a39b);let _0x7a0f8d=[];if(_0x5e9e('0x10')==_0x35142c['direction']){const _0x454287=_0x404699[_0x5e9e('0x34')](_0x598145,{'startRow':_0x5a4e11,'endRow':_0x5a4e11,'includeAllSlots':!0x0});_0x7a0f8d=Array[_0x5e9e('0x21')](_0x454287)[_0x5e9e('0x3a')](_0x1564f8=>_0x1564f8[_0x5e9e('0x42')]);}else{const _0x589cfa=_0x404699[_0x5e9e('0x34')](_0x598145,{'column':_0x352cb3,'includeAllSlots':!0x0});_0x7a0f8d=Array['from'](_0x589cfa)['map'](_0x375b58=>_0x375b58[_0x5e9e('0x42')]);}_0x4aaf89[_0x5e9e('0x3f')]['change'](_0x521912=>{_0x44733c['markBlockFormat'](_0x521912[_0x5e9e('0x19')](_0x36a39b),{'commandName':_0x255c6c,'commandParams':[]},_0x7a0f8d,_0x255c6c);});});}_0x44733c[_0x5e9e('0x4d')][_0x5e9e('0x1e')](_0x16cb43=>{const {data:_0x175c78}=_0x16cb43;if(_0x175c78)return _0x5e9e('0x45')==_0x175c78[_0x5e9e('0x15')]?{'type':_0x5e9e('0x33'),'content':_0x4dda51(_0x217f30,_0x5e9e('0x31'))}:void 0x0;}),_0x44733c[_0x5e9e('0x4d')][_0x5e9e('0x1e')](_0x202a2e=>{const {data:_0x5b8bc3}=_0x202a2e;if(_0x5b8bc3)return _0x5e9e('0x35')==_0x5b8bc3[_0x5e9e('0x15')]?{'type':_0x5e9e('0x33'),'content':_0x4dda51(_0x217f30,_0x5e9e('0x36'))}:'splitTableCellHorizontally'==_0x5b8bc3[_0x5e9e('0x15')]?{'type':_0x5e9e('0x33'),'content':_0x4dda51(_0x217f30,_0x5e9e('0x2e'))}:void 0x0;});const _0x25ffc5=_0x32e785[_0x5e9e('0x8')]();for(const _0x49a150 of[_0x5e9e('0x2c'),_0x5e9e('0x39'),_0x5e9e('0x14'),_0x5e9e('0x20')])_0x44733c[_0x5e9e('0x1b')]['registerCustomCallback'](_0x5e9e('0x4c'),_0x49a150,'accept',_0x25ffc5);for(const _0x537964 of[_0x5e9e('0x35'),_0x5e9e('0x12')])_0x44733c[_0x5e9e('0x1b')][_0x5e9e('0x2')](_0x5e9e('0x4c'),_0x537964,_0x5e9e('0x3c'),_0x25ffc5);_0x44733c[_0x5e9e('0x1b')][_0x5e9e('0x2')](_0x5e9e('0x4c'),'mergeTableCells','accept',_0x2565bb=>{_0x4aaf89[_0x5e9e('0x3f')][_0x5e9e('0x2d')](_0x4c84fd=>{const _0x5ccb4d=Array[_0x5e9e('0x21')](_0x1be8ae['getRanges']())[_0x5e9e('0x3a')](_0xa0e8e0=>_0x2bda53['fromRange'](_0xa0e8e0));_0x4c84fd[_0x5e9e('0x13')](_0x2565bb),_0x4aaf89['commands']['get']('mergeTableCells')[_0x5e9e('0x4')](),_0x4aaf89[_0x5e9e('0x37')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x20f13e=_0x5ccb4d[_0x5e9e('0x1f')](_0x4c2f7b=>_0x5e9e('0x3d')!=_0x4c2f7b[_0x5e9e('0x2f')][_0x5e9e('0x3')]);_0x20f13e['length']>0x0&&_0x4c84fd['setSelection'](_0x20f13e);for(const _0x1f9ec3 of _0x5ccb4d)_0x1f9ec3[_0x5e9e('0x23')]();});});for(const _0x18810a of['mergeTableCellUp',_0x5e9e('0x14'),_0x5e9e('0x20'),_0x5e9e('0x39')]){const _0x17923e=_0x4aaf89[_0x5e9e('0x44')]['get'](_0x18810a);_0x17923e['on'](_0x5e9e('0x4a'),(_0x37ec6f,_0x51f313,_0xd89e07)=>{if(_0xd89e07){const _0x1ac284=_0x4aaf89['model']['document'][_0x5e9e('0x5')][_0x5e9e('0x48')]()[_0x5e9e('0xf')]()[_0x5e9e('0x4b')](_0x3ce8ac=>_0x3ce8ac['is'](_0x5e9e('0x3b'),_0x5e9e('0xd')));this['_areMergableCells'](_0x17923e[_0x5e9e('0x32')],_0x1ac284)||(_0x37ec6f[_0x5e9e('0x46')]=!0x1,_0x37ec6f['stop']());}},{'priority':_0x5e9e('0x41')});}}[_0x5e9e('0x7')](){const _0x3d9be7=this[_0x5e9e('0x22')]['commands']['get'](_0x5e9e('0x45')),_0x52489c=this[_0x5e9e('0x22')][_0x5e9e('0x25')][_0x5e9e('0x1c')](_0x5e9e('0x1d'));if(!_0x3d9be7[_0x5e9e('0x27')])return!0x1;const _0x5d9b8e=_0x52489c[_0x5e9e('0x2b')](this[_0x5e9e('0x22')][_0x5e9e('0x3f')]['document'][_0x5e9e('0x5')]);for(const _0x7011ba of _0x5d9b8e)for(const _0x4e5bde of _0x5d9b8e)if(_0x7011ba!=_0x4e5bde&&!this[_0x5e9e('0x24')](_0x7011ba,_0x4e5bde))return!0x1;return!0x0;}[_0x5e9e('0x24')](_0x1bb651,_0x3c2ea5){const _0x5bb8bc=this[_0x5e9e('0x22')]['plugins'][_0x5e9e('0x1c')]('TrackChangesEditing'),_0x5eeabd=this['editor'][_0x5e9e('0x3f')][_0x5e9e('0x19')](_0x1bb651),_0x26c1ba=this['editor'][_0x5e9e('0x3f')][_0x5e9e('0x19')](_0x3c2ea5),_0x5f1638=new Set(),_0x4b1c9d=new Set();for(const _0x392414 of _0x5bb8bc[_0x5e9e('0x28')]())if((_0x5e9e('0x0')==_0x392414[_0x5e9e('0x11')]||_0x5e9e('0x2a')==_0x392414[_0x5e9e('0x11')]||'mergeTableCells'==_0x392414['subType'])&&_0x392414['isInContent'])for(const _0x3a4038 of _0x392414['getRanges']())_0x3a4038['containsRange'](_0x5eeabd,!0x0)&&_0x5f1638[_0x5e9e('0x26')](_0x392414['type']+':'+_0x392414['author']['id']),_0x3a4038[_0x5e9e('0xc')](_0x26c1ba,!0x0)&&_0x4b1c9d[_0x5e9e('0x26')](_0x392414[_0x5e9e('0x11')]+':'+_0x392414['author']['id']);if(_0x5f1638[_0x5e9e('0xa')]!=_0x4b1c9d[_0x5e9e('0xa')])return!0x1;for(const _0x119b0e of _0x5f1638)if(!_0x4b1c9d[_0x5e9e('0x40')](_0x119b0e))return!0x1;return!0x0;}}
23
+ const _0x246e=['has','createTableWalker','$graveyard','document','_areSelectedCellsMergable','commands','find','_acceptFormatSuggestionCallbackFactory','format','_suggestionFactory','*Split\x20cell:*\x20vertically','_areMergableCells','rootName','_isForcedDefaultExecutionBlock','trackChanges','markMultiRangeBlockFormat','afterInit','filter','table','push','tableCell','enableCommand','detach','mergeTableCells','formatBlock','execute','setSelection','refresh','plugins','*Merge\x20cells*','mergeTableCellLeft','getAncestors','getSuggestions','element','author','change','splitTableCellVertically','return','mergeTableCellDown','direction','size','map','getCellLocation','editor','TrackChangesEditing','splitTableCellHorizontally','registerDescriptionCallback','getFirstPosition','TableUtils','deletion','getRanges','length','model','containsRange','_tablePostFixingSubtypes','markBlockFormat','type','createRangeOn','commandName','_descriptionFactory','TableEditing','findAncestor','*Split\x20cell:*\x20horizontally','horizontally','highest','cell','set:isEnabled','mergeTableCellRight','mergeTableCellUp','isEnabled','stop','root','getSelectionAffectedTableCells','requires','subType','insertion','from','get','locale','accept','fromRange','selection','value','add'];(function(_0x3b66ef,_0x246ec2){const _0x2fe05b=function(_0x151669){while(--_0x151669){_0x3b66ef['push'](_0x3b66ef['shift']());}};_0x2fe05b(++_0x246ec2);}(_0x246e,0x15d));const _0x2fe0=function(_0x3b66ef,_0x246ec2){_0x3b66ef=_0x3b66ef-0x0;let _0x2fe05b=_0x246e[_0x3b66ef];return _0x2fe05b;};import{Plugin as _0x169fcf}from'ckeditor5/src/core';import _0x59f489 from'./table';import{LiveRange as _0x45b102}from'ckeditor5/src/engine';import{getTranslation as _0x5e55d5}from'../utils/common-translations';export default class pt extends _0x169fcf{static get[_0x2fe0('0x3c')](){return[_0x59f489];}[_0x2fe0('0x3')](){const _0x279e69=this[_0x2fe0('0x1e')],_0x3d3e54=_0x279e69[_0x2fe0('0x27')][_0x2fe0('0x4a')][_0x2fe0('0x44')],_0x54b434=_0x279e69[_0x2fe0('0x41')];if(!_0x279e69[_0x2fe0('0xf')]['has'](_0x2fe0('0x2f')))return;const _0x5384a2=_0x279e69['plugins']['get'](_0x2fe0('0x1f')),_0x556e0d=_0x279e69[_0x2fe0('0xf')]['get'](_0x2fe0('0x23')),_0x21b99f=_0x279e69[_0x2fe0('0xf')]['get'](_0x59f489);_0x21b99f[_0x2fe0('0x29')][_0x2fe0('0x6')](_0x2fe0('0xa')),_0x5384a2[_0x2fe0('0x8')](_0x2fe0('0xa'),()=>{const _0x18e87f=_0x556e0d[_0x2fe0('0x3b')](_0x279e69['model'][_0x2fe0('0x4a')][_0x2fe0('0x44')]);_0x279e69['model'][_0x2fe0('0x16')](()=>{_0x5384a2[_0x2fe0('0x2')](_0x18e87f,{'commandName':_0x2fe0('0xa'),'commandParams':[]},[],'mergeTableCells');});}),_0x279e69[_0x2fe0('0x4c')][_0x2fe0('0x40')](_0x2fe0('0xa'))['on'](_0x2fe0('0xc'),(_0x32a233,_0x415674)=>{_0x279e69['commands'][_0x2fe0('0x40')](_0x2fe0('0x1'))[_0x2fe0('0x45')]&&(_0x415674['length']>0x0&&_0x415674[_0x415674[_0x2fe0('0x26')]-0x1]&&_0x415674[_0x415674['length']-0x1]['forceDefaultExecution']||_0x5384a2[_0x2fe0('0x0')]||this[_0x2fe0('0x4b')]()||_0x32a233['stop']());},{'priority':_0x2fe0('0x33')});for(const _0x1888ce of[_0x2fe0('0x37'),_0x2fe0('0x36'),_0x2fe0('0x19'),_0x2fe0('0x11')]){const _0x104dab=_0x279e69[_0x2fe0('0x4c')][_0x2fe0('0x40')](_0x1888ce);_0x5384a2['enableCommand'](_0x1888ce,()=>{const _0x2deb63=_0x279e69[_0x2fe0('0x27')]['document'][_0x2fe0('0x44')][_0x2fe0('0x22')]()[_0x2fe0('0x12')]()[_0x2fe0('0x4d')](_0x92a2c0=>_0x92a2c0['is'](_0x2fe0('0x14'),_0x2fe0('0x7'))),_0x48c944=_0x104dab[_0x2fe0('0x45')];_0x279e69['model']['change'](()=>{_0x5384a2[_0x2fe0('0x2')]([_0x2deb63,_0x48c944],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1a7511 of['splitTableCellVertically',_0x2fe0('0x20')]){const _0x323bd1=_0x279e69['commands'][_0x2fe0('0x40')](_0x1a7511);_0x5384a2[_0x2fe0('0x8')](_0x1a7511,()=>{const _0x50ea1b=_0x556e0d[_0x2fe0('0x3b')](_0x279e69[_0x2fe0('0x27')]['document']['selection'])[0x0],_0x17a142=_0x50ea1b[_0x2fe0('0x30')](_0x2fe0('0x5')),{column:_0x5c4b9e,row:_0x37bf37}=_0x556e0d[_0x2fe0('0x1d')](_0x50ea1b);let _0x560d1f=[];if(_0x2fe0('0x32')==_0x323bd1[_0x2fe0('0x1a')]){const _0x4a467f=_0x556e0d[_0x2fe0('0x48')](_0x17a142,{'startRow':_0x37bf37,'endRow':_0x37bf37,'includeAllSlots':!0x0});_0x560d1f=Array[_0x2fe0('0x3f')](_0x4a467f)[_0x2fe0('0x1c')](_0x160e2c=>_0x160e2c['cell']);}else{const _0x514eb0=_0x556e0d['createTableWalker'](_0x17a142,{'column':_0x5c4b9e,'includeAllSlots':!0x0});_0x560d1f=Array[_0x2fe0('0x3f')](_0x514eb0)[_0x2fe0('0x1c')](_0x4c3cf7=>_0x4c3cf7[_0x2fe0('0x34')]);}_0x279e69[_0x2fe0('0x27')][_0x2fe0('0x16')](_0x499a4d=>{_0x5384a2[_0x2fe0('0x2a')](_0x499a4d['createRangeOn'](_0x50ea1b),{'commandName':_0x1a7511,'commandParams':[]},_0x560d1f,_0x1a7511);});});}_0x5384a2[_0x2fe0('0x2e')]['registerDescriptionCallback'](_0x7f74e8=>{const {data:_0x16b11a}=_0x7f74e8;if(_0x16b11a)return _0x2fe0('0xa')==_0x16b11a['commandName']?{'type':'format','content':_0x5e55d5(_0x54b434,_0x2fe0('0x10'))}:void 0x0;}),_0x5384a2[_0x2fe0('0x2e')][_0x2fe0('0x21')](_0x1e54ac=>{const {data:_0x5e8db2}=_0x1e54ac;if(_0x5e8db2)return _0x2fe0('0x17')==_0x5e8db2['commandName']?{'type':_0x2fe0('0x4f'),'content':_0x5e55d5(_0x54b434,_0x2fe0('0x51'))}:_0x2fe0('0x20')==_0x5e8db2[_0x2fe0('0x2d')]?{'type':_0x2fe0('0x4f'),'content':_0x5e55d5(_0x54b434,_0x2fe0('0x31'))}:void 0x0;});const _0x36e10c=_0x21b99f[_0x2fe0('0x4e')]();for(const _0x5591ad of[_0x2fe0('0x37'),_0x2fe0('0x36'),_0x2fe0('0x19'),_0x2fe0('0x11')])_0x5384a2[_0x2fe0('0x50')]['registerCustomCallback'](_0x2fe0('0xb'),_0x5591ad,_0x2fe0('0x42'),_0x36e10c);for(const _0x289e35 of[_0x2fe0('0x17'),_0x2fe0('0x20')])_0x5384a2[_0x2fe0('0x50')]['registerCustomCallback'](_0x2fe0('0xb'),_0x289e35,'accept',_0x36e10c);_0x5384a2[_0x2fe0('0x50')]['registerCustomCallback']('formatBlock',_0x2fe0('0xa'),_0x2fe0('0x42'),_0x6fd5f8=>{_0x279e69[_0x2fe0('0x27')][_0x2fe0('0x16')](_0x474036=>{const _0x3dc55c=Array['from'](_0x3d3e54[_0x2fe0('0x25')]())[_0x2fe0('0x1c')](_0x2d1f17=>_0x45b102[_0x2fe0('0x43')](_0x2d1f17));_0x474036['setSelection'](_0x6fd5f8),_0x279e69['commands'][_0x2fe0('0x40')](_0x2fe0('0xa'))[_0x2fe0('0xe')](),_0x279e69[_0x2fe0('0xc')](_0x2fe0('0xa'),{'forceDefaultExecution':!0x0});const _0x29180b=_0x3dc55c[_0x2fe0('0x4')](_0x35e613=>_0x2fe0('0x49')!=_0x35e613[_0x2fe0('0x3a')][_0x2fe0('0x53')]);_0x29180b[_0x2fe0('0x26')]>0x0&&_0x474036[_0x2fe0('0xd')](_0x29180b);for(const _0x3e197e of _0x3dc55c)_0x3e197e[_0x2fe0('0x9')]();});});for(const _0x35a749 of[_0x2fe0('0x37'),_0x2fe0('0x19'),_0x2fe0('0x11'),_0x2fe0('0x36')]){const _0x5e87b6=_0x279e69[_0x2fe0('0x4c')][_0x2fe0('0x40')](_0x35a749);_0x5e87b6['on'](_0x2fe0('0x35'),(_0x158f9b,_0x574b5a,_0x5ef03f)=>{if(_0x5ef03f){const _0x4ed3ab=_0x279e69[_0x2fe0('0x27')]['document'][_0x2fe0('0x44')][_0x2fe0('0x22')]()[_0x2fe0('0x12')]()[_0x2fe0('0x4d')](_0x49234e=>_0x49234e['is']('element',_0x2fe0('0x7')));this['_areMergableCells'](_0x5e87b6[_0x2fe0('0x45')],_0x4ed3ab)||(_0x158f9b[_0x2fe0('0x18')]=!0x1,_0x158f9b[_0x2fe0('0x39')]());}},{'priority':'low'});}}[_0x2fe0('0x4b')](){const _0xa33e22=this[_0x2fe0('0x1e')]['commands'][_0x2fe0('0x40')]('mergeTableCells'),_0x1c27af=this[_0x2fe0('0x1e')][_0x2fe0('0xf')][_0x2fe0('0x40')]('TableUtils');if(!_0xa33e22[_0x2fe0('0x38')])return!0x1;const _0x3edd93=_0x1c27af[_0x2fe0('0x3b')](this[_0x2fe0('0x1e')][_0x2fe0('0x27')][_0x2fe0('0x4a')][_0x2fe0('0x44')]);for(const _0x51ecfb of _0x3edd93)for(const _0x2313b0 of _0x3edd93)if(_0x51ecfb!=_0x2313b0&&!this[_0x2fe0('0x52')](_0x51ecfb,_0x2313b0))return!0x1;return!0x0;}[_0x2fe0('0x52')](_0x252a92,_0x1f3d60){const _0x12e1c7=this[_0x2fe0('0x1e')][_0x2fe0('0xf')][_0x2fe0('0x40')](_0x2fe0('0x1f')),_0x17e77b=this['editor']['model'][_0x2fe0('0x2c')](_0x252a92),_0xbfc4a3=this[_0x2fe0('0x1e')][_0x2fe0('0x27')]['createRangeOn'](_0x1f3d60),_0x49f07e=new Set(),_0x2f076a=new Set();for(const _0x34b70c of _0x12e1c7[_0x2fe0('0x13')]())if((_0x2fe0('0x3e')==_0x34b70c[_0x2fe0('0x2b')]||_0x2fe0('0x24')==_0x34b70c['type']||'mergeTableCells'==_0x34b70c[_0x2fe0('0x3d')])&&_0x34b70c['isInContent'])for(const _0x1dac62 of _0x34b70c[_0x2fe0('0x25')]())_0x1dac62[_0x2fe0('0x28')](_0x17e77b,!0x0)&&_0x49f07e[_0x2fe0('0x46')](_0x34b70c['type']+':'+_0x34b70c[_0x2fe0('0x15')]['id']),_0x1dac62[_0x2fe0('0x28')](_0xbfc4a3,!0x0)&&_0x2f076a[_0x2fe0('0x46')](_0x34b70c[_0x2fe0('0x2b')]+':'+_0x34b70c[_0x2fe0('0x15')]['id']);if(_0x49f07e[_0x2fe0('0x1b')]!=_0x2f076a[_0x2fe0('0x1b')])return!0x1;for(const _0x2967d0 of _0x49f07e)if(!_0x2f076a[_0x2fe0('0x47')](_0x2967d0))return!0x1;return!0x0;}}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x190a=['registerDescriptionCallback','TrackChangesTableProperties','enableCommand','tableCellBorderStyle','TableUtils','afterInit','handleDiscardAction','TrackChangesEditing','TableCellPropertiesEditing','document','markBlockFormat','_handlePropertyChange','setAttribute','selection','table','getSuggestions','_descriptionFactory','enqueueChange','tableCellBorderWidth','tableCellHorizontalAlignment','_getSuggestion','tableCellVerticalAlignment','get','tableProperties','tableWidth','getFirstPosition','formatBlock','tableBorderStyle','tableCellBackgroundColor','subType','tableBorderColor','tableCellBorderColor','start','discard','editor','getContainedElement','commandParams','tableCellProperties','tableCellPadding','tableCellWidth','accept','findAncestor','getAttribute','getSuggestionCallback','tableBorderWidth','plugins','_suggestionFactory','change','handleSuggestionDescription','format','*Format:*\x20change\x20table\x20cell\x20properties','registerCustomCallback','batch','pluginName','tableCellHeight','model','nodeAfter'];(function(_0x5e5192,_0x190aac){const _0x2ca38e=function(_0x544e4a){while(--_0x544e4a){_0x5e5192['push'](_0x5e5192['shift']());}};_0x2ca38e(++_0x190aac);}(_0x190a,0x1f0));const _0x2ca3=function(_0x5e5192,_0x190aac){_0x5e5192=_0x5e5192-0x0;let _0x2ca38e=_0x190a[_0x5e5192];return _0x2ca38e;};import{Plugin as _0x14c5a8}from'ckeditor5/src/core';import{getTranslation as _0x59db7b}from'../utils/common-translations';export default class At extends _0x14c5a8{static get[_0x2ca3('0xd')](){return _0x2ca3('0x12');}[_0x2ca3('0x16')](){const _0x6bfa97=this[_0x2ca3('0x33')][_0x2ca3('0x5')]['get']('TrackChangesEditing');if(this[_0x2ca3('0x33')][_0x2ca3('0x5')]['has']('TablePropertiesEditing')){this[_0x2ca3('0x28')]=[_0x2ca3('0x2f'),_0x2ca3('0x2c'),_0x2ca3('0x4'),'tableAlignment',_0x2ca3('0x29'),'tableHeight','tableBackgroundColor'];for(const _0x391e7d of this[_0x2ca3('0x28')])_0x6bfa97[_0x2ca3('0x13')](_0x391e7d,(_0x2da5cb,_0x403094)=>{const _0xf101be=this[_0x2ca3('0x33')]['model'][_0x2ca3('0x1a')][_0x2ca3('0x1e')][_0x2ca3('0x2a')]()[_0x2ca3('0x1')](_0x2ca3('0x1f'));this['_handlePropertyChange'](_0x391e7d,[_0xf101be],this[_0x2ca3('0x28')],'tableProperties',_0x2da5cb,_0x403094);});_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x28'),_0x2ca3('0x0'),_0x6bfa97[_0x2ca3('0x6')]['getSuggestionCallback'](_0x2ca3('0x2b'),null,_0x2ca3('0x32'))),_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x28'),_0x2ca3('0x32'),(_0x1e55f1,_0x49c58d)=>this[_0x2ca3('0x17')](this[_0x2ca3('0x28')],_0x1e55f1,_0x49c58d)),_0x6bfa97['_suggestionFactory'][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x28'),'join',()=>!0x1);}if(this[_0x2ca3('0x33')]['plugins']['has'](_0x2ca3('0x19'))){this[_0x2ca3('0x36')]=[_0x2ca3('0x30'),_0x2ca3('0x14'),_0x2ca3('0x23'),_0x2ca3('0x37'),_0x2ca3('0x38'),_0x2ca3('0xe'),_0x2ca3('0x2d'),_0x2ca3('0x24'),_0x2ca3('0x26')];for(const _0x35cf29 of this['tableCellProperties'])_0x6bfa97[_0x2ca3('0x13')](_0x35cf29,(_0x5e11be,_0x376194)=>{const _0x62f47d=this[_0x2ca3('0x33')]['plugins']['get'](_0x2ca3('0x15'))['getSelectionAffectedTableCells'](this[_0x2ca3('0x33')][_0x2ca3('0xf')][_0x2ca3('0x1a')][_0x2ca3('0x1e')]);this[_0x2ca3('0x1c')](_0x35cf29,_0x62f47d,this[_0x2ca3('0x36')],_0x2ca3('0x36'),_0x5e11be,_0x376194);});_0x6bfa97['_suggestionFactory']['registerCustomCallback'](_0x2ca3('0x2b'),_0x2ca3('0x36'),'accept',_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0x3')](_0x2ca3('0x2b'),null,'discard')),_0x6bfa97['_suggestionFactory'][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x36'),_0x2ca3('0x32'),(_0x220313,_0x11f51c)=>this[_0x2ca3('0x17')](this[_0x2ca3('0x36')],_0x220313,_0x11f51c)),_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x36'),'join',()=>!0x1);}_0x6bfa97[_0x2ca3('0x21')][_0x2ca3('0x11')](_0x5478a7=>this[_0x2ca3('0x8')](_0x5478a7));}['_handlePropertyChange'](_0x4a24a5,_0x4c5638,_0x7adbde,_0xdc0776,_0x31e6d8,_0x5bef19){const _0x10d68c=this[_0x2ca3('0x33')][_0x2ca3('0x5')][_0x2ca3('0x27')](_0x2ca3('0x18'));this['editor'][_0x2ca3('0xf')][_0x2ca3('0x22')](_0x5bef19[_0x2ca3('0xc')],()=>{for(const _0x10c894 of _0x4c5638){if(this['_getSuggestion'](_0x10c894,_0xdc0776))_0x31e6d8(_0x5bef19);else{const _0xdce01e={};for(const _0x41016a of _0x7adbde){const _0x235d9c=_0x10c894[_0x2ca3('0x2')](_0x41016a);void 0x0!==_0x235d9c&&(_0xdce01e[_0x41016a]=_0x235d9c);}_0x31e6d8(_0x5bef19),_0x10d68c[_0x2ca3('0x1b')](_0x10c894,{'commandParams':[_0xdce01e]},[],_0xdc0776);}}});}[_0x2ca3('0x17')](_0xb79ed8,_0x25c89c,_0x45c60a){const _0x86de88=_0x25c89c[0x0][_0x2ca3('0x31')][_0x2ca3('0x10')],_0x556c2c=_0x45c60a[_0x2ca3('0x35')][0x0];this[_0x2ca3('0x33')][_0x2ca3('0xf')][_0x2ca3('0x7')](_0xcf3b14=>{for(const _0x5ef3c1 of _0xb79ed8)void 0x0!==_0x556c2c[_0x5ef3c1]?_0xcf3b14[_0x2ca3('0x1d')](_0x5ef3c1,_0x556c2c[_0x5ef3c1],_0x86de88):_0xcf3b14['removeAttribute'](_0x5ef3c1,_0x86de88);});}[_0x2ca3('0x8')](_0xc8afec){if(_0xc8afec['data'])switch(_0xc8afec[_0x2ca3('0x2e')]){case'tableProperties':return{'type':_0x2ca3('0x9'),'content':_0x59db7b(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case _0x2ca3('0x36'):return{'type':_0x2ca3('0x9'),'content':_0x59db7b(this[_0x2ca3('0x33')]['locale'],_0x2ca3('0xa'))};}}[_0x2ca3('0x25')](_0x53d019,_0x26e68e){const _0x3ebbad=this['editor'][_0x2ca3('0x5')]['get'](_0x2ca3('0x18'));for(const _0xdf9792 of _0x3ebbad[_0x2ca3('0x20')]({'skipNotAttached':!0x0})){const _0x44e528=_0xdf9792[_0x2ca3('0x34')]();if(_0xdf9792[_0x2ca3('0x2e')]===_0x26e68e&&_0x44e528===_0x53d019)return _0xdf9792;}return null;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2440=['updateMarker','has','get','Title','nodeBefore','element','start','ELEMENT_TITLE','title-content','schema','locale','end','isTouching','forward','removeMarker','_descriptionFactory','document','plugins','registerPostFixer','TrackChangesEditing','suggestion','newRange','isCollapsed','model','afterInit','from'];(function(_0x44728,_0x2440b5){const _0x4d47b2=function(_0x247d6f){while(--_0x247d6f){_0x44728['push'](_0x44728['shift']());}};_0x4d47b2(++_0x2440b5);}(_0x2440,0x65));const _0x4d47=function(_0x44728,_0x2440b5){_0x44728=_0x44728-0x0;let _0x4d47b2=_0x2440[_0x44728];return _0x4d47b2;};import{Plugin as _0x593aec}from'ckeditor5/src/core';import{getTranslation as _0x1acea1}from'../utils/common-translations';export default class wt extends _0x593aec{[_0x4d47('0x1')](){const _0x575dd6=this['editor'];if(!_0x575dd6[_0x4d47('0x14')][_0x4d47('0x4')](_0x4d47('0x6')))return;const _0x2c47a5=_0x575dd6[_0x4d47('0x14')][_0x4d47('0x5')](_0x4d47('0x16'));_0x2c47a5[_0x4d47('0x12')]['registerElementLabel'](_0x4d47('0xb'),()=>_0x1acea1(_0x575dd6[_0x4d47('0xd')],_0x4d47('0xa'))),_0x575dd6[_0x4d47('0x0')][_0x4d47('0x13')][_0x4d47('0x15')](_0xdb6a35=>{let _0x30108c=!0x1;const _0x42fe59=Array[_0x4d47('0x2')](_0x575dd6[_0x4d47('0x0')][_0x4d47('0x13')]['differ']['getChangedMarkers']());for(const {name:_0x3ad1d9,data:_0x5e4ab0}of _0x42fe59){const {group:_0xcf7715}=_0x2c47a5['_splitMarkerName'](_0x3ad1d9);if(_0x4d47('0x17')!==_0xcf7715||!_0x5e4ab0[_0x4d47('0x18')])continue;const _0x41080a=_0x5e4ab0[_0x4d47('0x18')],_0x244b4e=_0x41080a['end'][_0x4d47('0x7')];if(!_0x244b4e||!_0x244b4e['is'](_0x4d47('0x8'),_0x4d47('0xb')))continue;if(!_0x41080a['start'][_0x4d47('0xf')](_0x41080a[_0x4d47('0xe')]))continue;const _0x2cd4e1=_0x575dd6[_0x4d47('0x0')][_0x4d47('0xc')]['getNearestSelectionRange'](_0x41080a[_0x4d47('0xe')],_0x4d47('0x10'));if(_0x2cd4e1&&_0x2cd4e1[_0x4d47('0x19')]){const _0x14a276=_0xdb6a35['createRange'](_0x41080a[_0x4d47('0x9')],_0x2cd4e1[_0x4d47('0x9')]);_0x14a276['isEqual'](_0x41080a)||(_0xdb6a35[_0x4d47('0x3')](_0x3ad1d9,{'range':_0x14a276}),_0x30108c=!0x0);}_0x30108c||(_0xdb6a35[_0x4d47('0x11')](_0x3ad1d9),_0x30108c=!0x0);}return _0x30108c;});}}
23
+ const _0x1120=['TrackChangesEditing','_descriptionFactory','createRange','updateMarker','Title','get','forward','registerPostFixer','getChangedMarkers','removeMarker','model','editor','end','plugins','from','locale','getNearestSelectionRange','title-content','has','start','isTouching','registerElementLabel','document','element','afterInit','schema','suggestion','differ','isCollapsed','newRange'];(function(_0x353a0f,_0x112058){const _0x3f4cb9=function(_0xbd409d){while(--_0xbd409d){_0x353a0f['push'](_0x353a0f['shift']());}};_0x3f4cb9(++_0x112058);}(_0x1120,0x143));const _0x3f4c=function(_0x353a0f,_0x112058){_0x353a0f=_0x353a0f-0x0;let _0x3f4cb9=_0x1120[_0x353a0f];return _0x3f4cb9;};import{Plugin as _0x1123aa}from'ckeditor5/src/core';import{getTranslation as _0x3d2f7f}from'../utils/common-translations';export default class bt extends _0x1123aa{[_0x3f4c('0x1')](){const _0x113081=this[_0x3f4c('0x12')];if(!_0x113081[_0x3f4c('0x14')][_0x3f4c('0x19')](_0x3f4c('0xb')))return;const _0x596d11=_0x113081[_0x3f4c('0x14')][_0x3f4c('0xc')](_0x3f4c('0x7'));_0x596d11[_0x3f4c('0x8')][_0x3f4c('0x1c')](_0x3f4c('0x18'),()=>_0x3d2f7f(_0x113081[_0x3f4c('0x16')],'ELEMENT_TITLE')),_0x113081[_0x3f4c('0x11')][_0x3f4c('0x1d')][_0x3f4c('0xe')](_0x1d3db3=>{let _0x59c9b2=!0x1;const _0x3d94d8=Array[_0x3f4c('0x15')](_0x113081[_0x3f4c('0x11')][_0x3f4c('0x1d')][_0x3f4c('0x4')][_0x3f4c('0xf')]());for(const {name:_0x542ea0,data:_0x45d6fc}of _0x3d94d8){const {group:_0x27cf07}=_0x596d11['_splitMarkerName'](_0x542ea0);if(_0x3f4c('0x3')!==_0x27cf07||!_0x45d6fc[_0x3f4c('0x6')])continue;const _0x3c2e61=_0x45d6fc[_0x3f4c('0x6')],_0x35200b=_0x3c2e61[_0x3f4c('0x13')]['nodeBefore'];if(!_0x35200b||!_0x35200b['is'](_0x3f4c('0x0'),_0x3f4c('0x18')))continue;if(!_0x3c2e61[_0x3f4c('0x1a')][_0x3f4c('0x1b')](_0x3c2e61[_0x3f4c('0x13')]))continue;const _0x101aae=_0x113081[_0x3f4c('0x11')][_0x3f4c('0x2')][_0x3f4c('0x17')](_0x3c2e61[_0x3f4c('0x13')],_0x3f4c('0xd'));if(_0x101aae&&_0x101aae[_0x3f4c('0x5')]){const _0x88c3f=_0x1d3db3[_0x3f4c('0x9')](_0x3c2e61[_0x3f4c('0x1a')],_0x101aae[_0x3f4c('0x1a')]);_0x88c3f['isEqual'](_0x3c2e61)||(_0x1d3db3[_0x3f4c('0xa')](_0x542ea0,{'range':_0x88c3f}),_0x59c9b2=!0x0);}_0x59c9b2||(_0x1d3db3[_0x3f4c('0x10')](_0x542ea0),_0x59c9b2=!0x0);}return _0x59c9b2;});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x579d=['plugins','editor','redo','has','get','UndoEditing','TrackChangesEditing','afterInit'];(function(_0x222c9c,_0x579d23){const _0x2d7d15=function(_0xab18d){while(--_0xab18d){_0x222c9c['push'](_0x222c9c['shift']());}};_0x2d7d15(++_0x579d23);}(_0x579d,0xf3));const _0x2d7d=function(_0x222c9c,_0x579d23){_0x222c9c=_0x222c9c-0x0;let _0x2d7d15=_0x579d[_0x222c9c];return _0x2d7d15;};import{Plugin as _0x540257}from'ckeditor5/src/core';export default class yt extends _0x540257{[_0x2d7d('0x4')](){const _0x151dc2=this[_0x2d7d('0x6')],_0x2bf193=_0x151dc2[_0x2d7d('0x5')][_0x2d7d('0x1')](_0x2d7d('0x3'));_0x151dc2[_0x2d7d('0x5')][_0x2d7d('0x0')](_0x2d7d('0x2'))&&(_0x2bf193['enableCommand']('undo'),_0x2bf193['enableCommand'](_0x2d7d('0x7')));}}
23
+ const _0x5a2b=['afterInit','editor','enableCommand','plugins','UndoEditing','redo','get'];(function(_0xc4f9db,_0x5a2b96){const _0x216ac0=function(_0x2b084c){while(--_0x2b084c){_0xc4f9db['push'](_0xc4f9db['shift']());}};_0x216ac0(++_0x5a2b96);}(_0x5a2b,0x97));const _0x216a=function(_0xc4f9db,_0x5a2b96){_0xc4f9db=_0xc4f9db-0x0;let _0x216ac0=_0x5a2b[_0xc4f9db];return _0x216ac0;};import{Plugin as _0x22cb3a}from'ckeditor5/src/core';export default class St extends _0x22cb3a{[_0x216a('0x3')](){const _0x28b7cb=this[_0x216a('0x4')],_0x4b2408=_0x28b7cb[_0x216a('0x6')][_0x216a('0x2')]('TrackChangesEditing');_0x28b7cb['plugins']['has'](_0x216a('0x0'))&&(_0x4b2408[_0x216a('0x5')]('undo'),_0x4b2408[_0x216a('0x5')](_0x216a('0x1')));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a5e=['isContent','test','getItems','ck-suggestion-marker--active','bindElementToMarker','listItem','markerRange','writer','ck-suggestion-marker-','nextSibling','addHighlight','schema','hasAttribute','plugins','element','getWalker','addClass','elementEnd','span','type','item','consumable','activeMarkers','toViewPosition','start','isLimit','model','TrackChangesEditing','markerName','previousPosition','toViewElement','mapper','parent','push','get','getAttribute'];(function(_0x325be4,_0x2a5e6a){const _0x9db3bc=function(_0x1d3db4){while(--_0x1d3db4){_0x325be4['push'](_0x325be4['shift']());}};_0x9db3bc(++_0x2a5e6a);}(_0x2a5e,0x137));const _0x9db3=function(_0x325be4,_0x2a5e6a){_0x325be4=_0x325be4-0x0;let _0x9db3bc=_0x2a5e[_0x325be4];return _0x9db3bc;};export function getRangesWithAttribute(_0x2a4f3f,_0x2d69be,_0x491eb8){const _0x5a0bb9=[];for(const _0x50c25b of _0x2d69be[_0x9db3('0xf')]())_0x50c25b[_0x9db3('0x19')](_0x2a4f3f)&&_0x5a0bb9['push'](_0x491eb8['createRangeOn'](_0x50c25b));return _0x5a0bb9;}export function getElementsAffectedByListItemRename(_0x2ed107){const _0x262bcc=[];if(_0x2ed107['is'](_0x9db3('0x1b'),_0x9db3('0x12'))){let _0xa0fd74=_0x2ed107[_0x9db3('0x16')];for(;_0xa0fd74&&_0xa0fd74['is'](_0x9db3('0x1b'),'listItem')&&_0xa0fd74[_0x9db3('0xc')]('listIndent')>0x0;)_0x262bcc[_0x9db3('0xa')](_0xa0fd74),_0xa0fd74=_0xa0fd74[_0x9db3('0x16')];}return _0x262bcc;}export function downcastSplitMergeMarker(_0xa8188,_0x56fa21,{showActiveMarker:_0x380e8f=!0x0}={}){const _0x432425=_0xa8188[_0x9db3('0x1a')][_0x9db3('0xb')](_0x9db3('0x4'));return(_0x268951,_0x4762b1,_0x1c3e84)=>{if(!_0x1c3e84[_0x9db3('0x22')][_0x9db3('0xe')](_0x4762b1[_0x9db3('0x13')],_0x268951['name']))return;const _0x7898a3=_0x4762b1[_0x9db3('0x13')][_0x9db3('0x1c')](),_0x4e5dbe=_0x4762b1['markerRange'][_0x9db3('0x1')],_0x2b97c6=_0xa8188[_0x9db3('0x3')][_0x9db3('0x18')];let _0x3f4506=null,_0x3a6994=null,_0x20a929=!0x1,_0x16c7fa=!0x1;for(const _0xc67671 of _0x7898a3){const _0x1b69ca=_0xc67671[_0x9db3('0x21')];_0x20a929=_0x20a929||_0x2b97c6[_0x9db3('0xd')](_0x1b69ca);const _0x317175=_0x1c3e84[_0x9db3('0x8')][_0x9db3('0x7')](_0x1b69ca);if(_0x317175&&_0x317175['getCustomProperty'](_0x9db3('0x17')))return;_0x9db3('0x1e')==_0xc67671[_0x9db3('0x20')]&&(_0x2b97c6['isBlock'](_0x1b69ca)&&!_0x2b97c6[_0x9db3('0x2')](_0x1b69ca)&&(_0x1b69ca[_0x9db3('0x16')]||_0x4e5dbe['isAtEnd']?_0x3f4506&&_0x3f4506[_0x9db3('0x9')]==_0x1b69ca||(_0x3f4506=_0x1b69ca,_0x575fac(_0xc67671[_0x9db3('0x6')]),_0x16c7fa=!0x0):_0x3a6994=_0x3a6994||_0xc67671[_0x9db3('0x6')]));}function _0x575fac(_0x13c728){const _0x50a3a6=_0x1c3e84[_0x9db3('0x14')]['createUIElement'](_0x9db3('0x1f'),{'class':_0x9db3('0x15')+_0x56fa21}),_0x45046b=_0x1c3e84[_0x9db3('0x8')][_0x9db3('0x0')](_0x13c728);_0x380e8f&&_0x432425[_0x9db3('0x23')]['includes'](_0x4762b1[_0x9db3('0x5')])&&_0x1c3e84[_0x9db3('0x14')][_0x9db3('0x1d')](_0x9db3('0x10'),_0x50a3a6),_0x1c3e84['writer']['insert'](_0x45046b,_0x50a3a6),_0x1c3e84['mapper'][_0x9db3('0x11')](_0x50a3a6,_0x4762b1[_0x9db3('0x5')]);}_0x20a929||_0x16c7fa||!_0x3a6994||_0x575fac(_0x3a6994);};}
23
+ const _0x249d=['createRangeOn','span','markerName','name','mapper','consumable','isContent','nextSibling','element','createUIElement','getItems','addClass','toViewPosition','get','push','TrackChangesEditing','toViewElement','isBlock','type','listItem','test','includes','start','getWalker','markerRange','addHighlight','previousPosition','elementEnd','writer','ck-suggestion-marker-','item','listIndent','activeMarkers','bindElementToMarker','getAttribute'];(function(_0x210e01,_0x249d30){const _0x15ebb2=function(_0x196545){while(--_0x196545){_0x210e01['push'](_0x210e01['shift']());}};_0x15ebb2(++_0x249d30);}(_0x249d,0xee));const _0x15eb=function(_0x210e01,_0x249d30){_0x210e01=_0x210e01-0x0;let _0x15ebb2=_0x249d[_0x210e01];return _0x15ebb2;};export function getRangesWithAttribute(_0x6dc7cf,_0x2a1d98,_0x5e88e2){const _0x562b2b=[];for(const _0x487368 of _0x2a1d98[_0x15eb('0x11')]())_0x487368['hasAttribute'](_0x6dc7cf)&&_0x562b2b[_0x15eb('0x15')](_0x5e88e2[_0x15eb('0x7')](_0x487368));return _0x562b2b;}export function getElementsAffectedByListItemRename(_0x5b5b56){const _0x4963ff=[];if(_0x5b5b56['is'](_0x15eb('0xf'),_0x15eb('0x1a'))){let _0x1a7577=_0x5b5b56[_0x15eb('0xe')];for(;_0x1a7577&&_0x1a7577['is'](_0x15eb('0xf'),_0x15eb('0x1a'))&&_0x1a7577[_0x15eb('0x6')](_0x15eb('0x3'))>0x0;)_0x4963ff[_0x15eb('0x15')](_0x1a7577),_0x1a7577=_0x1a7577[_0x15eb('0xe')];}return _0x4963ff;}export function downcastSplitMergeMarker(_0x55f953,_0x303bbf,{showActiveMarker:_0x1cad8f=!0x0}={}){const _0x3483c3=_0x55f953['plugins'][_0x15eb('0x14')](_0x15eb('0x16'));return(_0x3ce661,_0x154006,_0x39221a)=>{if(!_0x39221a[_0x15eb('0xc')][_0x15eb('0x1b')](_0x154006[_0x15eb('0x1f')],_0x3ce661[_0x15eb('0xa')]))return;const _0x27a0b1=_0x154006[_0x15eb('0x1f')][_0x15eb('0x1e')](),_0x135278=_0x154006[_0x15eb('0x1f')][_0x15eb('0x1d')],_0x80dada=_0x55f953['model']['schema'];let _0x3b0233=null,_0x8d5002=null,_0x12fda4=!0x1,_0x4f715d=!0x1;for(const _0x7af28d of _0x27a0b1){const _0x284369=_0x7af28d[_0x15eb('0x2')];_0x12fda4=_0x12fda4||_0x80dada[_0x15eb('0xd')](_0x284369);const _0x5ef84c=_0x39221a[_0x15eb('0xb')][_0x15eb('0x17')](_0x284369);if(_0x5ef84c&&_0x5ef84c['getCustomProperty'](_0x15eb('0x20')))return;_0x15eb('0x22')==_0x7af28d[_0x15eb('0x19')]&&(_0x80dada[_0x15eb('0x18')](_0x284369)&&!_0x80dada['isLimit'](_0x284369)&&(_0x284369[_0x15eb('0xe')]||_0x135278['isAtEnd']?_0x3b0233&&_0x3b0233['parent']==_0x284369||(_0x3b0233=_0x284369,_0x3db27d(_0x7af28d[_0x15eb('0x21')]),_0x4f715d=!0x0):_0x8d5002=_0x8d5002||_0x7af28d[_0x15eb('0x21')]));}function _0x3db27d(_0x498dcc){const _0x166bdf=_0x39221a[_0x15eb('0x0')][_0x15eb('0x10')](_0x15eb('0x8'),{'class':_0x15eb('0x1')+_0x303bbf}),_0x373473=_0x39221a[_0x15eb('0xb')][_0x15eb('0x13')](_0x498dcc);_0x1cad8f&&_0x3483c3[_0x15eb('0x4')][_0x15eb('0x1c')](_0x154006[_0x15eb('0x9')])&&_0x39221a[_0x15eb('0x0')][_0x15eb('0x12')]('ck-suggestion-marker--active',_0x166bdf),_0x39221a[_0x15eb('0x0')]['insert'](_0x373473,_0x166bdf),_0x39221a['mapper'][_0x15eb('0x5')](_0x166bdf,_0x154006['markerName']);}_0x12fda4||_0x4f715d||!_0x8d5002||_0x3db27d(_0x8d5002);};}