@ckeditor/ckeditor5-track-changes 34.0.0 → 35.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/build/track-changes.js +2 -2
  4. package/build/translations/ar.js +1 -0
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/bg.js +1 -0
  7. package/build/translations/bn.js +1 -0
  8. package/build/translations/ca.js +1 -0
  9. package/build/translations/cs.js +1 -1
  10. package/build/translations/da.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es.js +1 -1
  15. package/build/translations/et.js +1 -1
  16. package/build/translations/fi.js +1 -0
  17. package/build/translations/fr.js +1 -1
  18. package/build/translations/gl.js +1 -1
  19. package/build/translations/he.js +1 -0
  20. package/build/translations/hi.js +1 -1
  21. package/build/translations/hr.js +1 -1
  22. package/build/translations/hu.js +1 -0
  23. package/build/translations/id.js +1 -1
  24. package/build/translations/it.js +1 -1
  25. package/build/translations/ja.js +1 -0
  26. package/build/translations/ko.js +1 -0
  27. package/build/translations/lt.js +1 -0
  28. package/build/translations/lv.js +1 -0
  29. package/build/translations/ms.js +1 -0
  30. package/build/translations/nl.js +1 -1
  31. package/build/translations/no.js +1 -0
  32. package/build/translations/pl.js +1 -1
  33. package/build/translations/pt-br.js +1 -1
  34. package/build/translations/pt.js +1 -0
  35. package/build/translations/ro.js +1 -0
  36. package/build/translations/ru.js +1 -0
  37. package/build/translations/sk.js +1 -1
  38. package/build/translations/sr-latn.js +1 -1
  39. package/build/translations/sr.js +1 -1
  40. package/build/translations/sv.js +1 -0
  41. package/build/translations/th.js +1 -0
  42. package/build/translations/tk.js +1 -1
  43. package/build/translations/tr.js +1 -1
  44. package/build/translations/uk.js +1 -0
  45. package/build/translations/vi.js +1 -0
  46. package/build/translations/zh-cn.js +1 -1
  47. package/build/translations/zh.js +1 -1
  48. package/lang/contexts.json +2 -0
  49. package/lang/translations/ar.po +469 -0
  50. package/lang/translations/az.po +10 -0
  51. package/lang/translations/bg.po +397 -0
  52. package/lang/translations/bn.po +423 -0
  53. package/lang/translations/ca.po +397 -0
  54. package/lang/translations/cs.po +39 -27
  55. package/lang/translations/da.po +41 -31
  56. package/lang/translations/de.po +12 -2
  57. package/lang/translations/el.po +10 -0
  58. package/lang/translations/en-au.po +10 -0
  59. package/lang/translations/en.po +10 -0
  60. package/lang/translations/es.po +72 -44
  61. package/lang/translations/et.po +107 -97
  62. package/lang/translations/fi.po +397 -0
  63. package/lang/translations/fr.po +34 -6
  64. package/lang/translations/gl.po +10 -0
  65. package/lang/translations/he.po +433 -0
  66. package/lang/translations/hi.po +21 -11
  67. package/lang/translations/hr.po +11 -0
  68. package/lang/translations/hu.po +397 -0
  69. package/lang/translations/id.po +84 -75
  70. package/lang/translations/it.po +29 -1
  71. package/lang/translations/ja.po +379 -0
  72. package/lang/translations/ko.po +379 -0
  73. package/lang/translations/lt.po +433 -0
  74. package/lang/translations/lv.po +415 -0
  75. package/lang/translations/ms.po +379 -0
  76. package/lang/translations/nl.po +48 -38
  77. package/lang/translations/no.po +397 -0
  78. package/lang/translations/pl.po +25 -13
  79. package/lang/translations/pt-br.po +29 -1
  80. package/lang/translations/pt.po +415 -0
  81. package/lang/translations/ro.po +415 -0
  82. package/lang/translations/ru.po +435 -0
  83. package/lang/translations/sk.po +12 -0
  84. package/lang/translations/sr-latn.po +11 -0
  85. package/lang/translations/sr.po +62 -51
  86. package/lang/translations/sv.po +397 -0
  87. package/lang/translations/th.po +379 -0
  88. package/lang/translations/tk.po +10 -0
  89. package/lang/translations/tr.po +21 -11
  90. package/lang/translations/uk.po +433 -0
  91. package/lang/translations/vi.po +379 -0
  92. package/lang/translations/zh-cn.po +13 -4
  93. package/lang/translations/zh.po +73 -64
  94. package/package.json +5 -4
  95. package/src/commands/acceptallsuggestionscommand.js +1 -1
  96. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  97. package/src/commands/acceptsuggestioncommand.js +1 -1
  98. package/src/commands/discardallsuggestionscommand.js +1 -1
  99. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/commands/trackchangescommand.js +1 -1
  102. package/src/integrations/alignment.js +1 -1
  103. package/src/integrations/basicstyles.js +1 -1
  104. package/src/integrations/blockquote.js +1 -1
  105. package/src/integrations/ckbox.js +23 -0
  106. package/src/integrations/codeblock.js +1 -1
  107. package/src/integrations/comments.js +1 -1
  108. package/src/integrations/deletecommand.js +1 -1
  109. package/src/integrations/entercommand.js +1 -1
  110. package/src/integrations/font.js +1 -1
  111. package/src/integrations/heading.js +1 -1
  112. package/src/integrations/highlight.js +1 -1
  113. package/src/integrations/horizontalline.js +1 -1
  114. package/src/integrations/htmlembed.js +23 -0
  115. package/src/integrations/image.js +1 -1
  116. package/src/integrations/indent.js +1 -1
  117. package/src/integrations/inputcommand.js +1 -1
  118. package/src/integrations/link.js +1 -1
  119. package/src/integrations/list.js +1 -1
  120. package/src/integrations/mediaembed.js +1 -1
  121. package/src/integrations/mention.js +1 -1
  122. package/src/integrations/pagebreak.js +1 -1
  123. package/src/integrations/paragraph.js +1 -1
  124. package/src/integrations/removeformat.js +1 -1
  125. package/src/integrations/restrictededitingmode.js +1 -1
  126. package/src/integrations/shiftentercommand.js +1 -1
  127. package/src/integrations/standardeditingmode.js +1 -1
  128. package/src/integrations/style.js +23 -0
  129. package/src/integrations/table.js +1 -1
  130. package/src/integrations/tableclipboard.js +1 -1
  131. package/src/integrations/tableheadings.js +1 -1
  132. package/src/integrations/tablemergesplit.js +1 -1
  133. package/src/integrations/title.js +1 -1
  134. package/src/integrations/undo.js +1 -1
  135. package/src/integrations/utils.js +1 -1
  136. package/src/suggestion.js +1 -1
  137. package/src/suggestiondescriptionfactory.js +1 -1
  138. package/src/trackchanges.js +1 -1
  139. package/src/trackchangesdata.js +1 -1
  140. package/src/trackchangesediting.js +1 -1
  141. package/src/trackchangesui.js +1 -1
  142. package/src/ui/suggestioncontroller.js +1 -1
  143. package/src/ui/view/basesuggestionthreadview.js +1 -1
  144. package/src/ui/view/suggestionthreadview.js +1 -1
  145. package/src/utils/common-translations.js +23 -0
  146. package/src/utils/getrangesofblockgroups.js +23 -0
  147. package/src/utils/getselectedsuggestions.js +1 -1
  148. package/src/utils/hashobject.js +1 -1
  149. package/src/utils/normalizedescription.js +1 -1
  150. package/src/utils/sortsuggestions.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5d695c}from'ckeditor5/src/core';export default class it extends _0x5d695c{['afterInit'](){const _0x2b658f=this['editor'];if(!_0x2b658f['plugins']['has']('RemoveFormatEditing'))return;const _0xa89046=_0x2b658f['plugins']['get']('TrackChangesEditing');_0xa89046['enableCommand']('removeFormat',_0x37c99a=>{const _0x4b72c6=_0x2b658f['model']['document']['selection'];_0x4b72c6['isCollapsed']?_0x37c99a():_0x2b658f['model']['change'](()=>{const _0x81e714=Array['from'](_0x4b72c6['getRanges']());for(const _0x505233 of _0x81e714)for(const _0x14752f of _0x505233['getItems']())Gt(_0x14752f,_0x2b658f['model']['schema'])&&_0xa89046['markInlineFormat'](_0x2b658f['model']['createRangeOn'](_0x14752f),{'commandName':'removeFormat','commandParams':[]});});});const {t:t}=_0x2b658f['locale'];_0xa89046['_descriptionFactory']['registerDescriptionCallback'](_0x165180=>{const {data:_0x306f72}=_0x165180;if(_0x306f72&&'removeFormat'==_0x306f72['commandName'])return{'type':'format','content':t('*Remove\x20all\x20formatting*')};});}}function Gt(_0x4bdcec,_0x6fa470){for(const [_0x2f309f]of _0x4bdcec['getAttributes']()){const _0x85d5a9=_0x6fa470['getAttributeProperties'](_0x2f309f);if(_0x85d5a9&&_0x85d5a9['isFormatting'])return!0x0;}return!0x1;}
23
+ const _0x4e9f=['afterInit','registerDescriptionCallback','markInlineFormat','selection','isCollapsed','TrackChangesEditing','editor','model','change','plugins','getAttributeProperties','commandName','isFormatting','document','_descriptionFactory','enableCommand','has','createRangeOn','removeFormat','from','get'];(function(_0x2b65f8,_0x4e9fc5){const _0x3c14a8=function(_0x1848e4){while(--_0x1848e4){_0x2b65f8['push'](_0x2b65f8['shift']());}};_0x3c14a8(++_0x4e9fc5);}(_0x4e9f,0x11a));const _0x3c14=function(_0x2b65f8,_0x4e9fc5){_0x2b65f8=_0x2b65f8-0x0;let _0x3c14a8=_0x4e9f[_0x2b65f8];return _0x3c14a8;};import{Plugin as _0x3495d7}from'ckeditor5/src/core';import{getTranslation as _0x1f215a}from'../utils/common-translations';export default class et extends _0x3495d7{[_0x3c14('0xc')](){const _0x2a489e=this[_0x3c14('0x12')];if(!_0x2a489e[_0x3c14('0x0')][_0x3c14('0x7')]('RemoveFormatEditing'))return;const _0x43368b=_0x2a489e['plugins'][_0x3c14('0xb')](_0x3c14('0x11'));_0x43368b[_0x3c14('0x6')](_0x3c14('0x9'),_0xa3912e=>{const _0x97501b=_0x2a489e[_0x3c14('0x13')][_0x3c14('0x4')][_0x3c14('0xf')];_0x97501b[_0x3c14('0x10')]?_0xa3912e():_0x2a489e[_0x3c14('0x13')][_0x3c14('0x14')](()=>{const _0x1a1e18=Array[_0x3c14('0xa')](_0x97501b['getRanges']());for(const _0x1a9f6c of _0x1a1e18)for(const _0x430970 of _0x1a9f6c['getItems']())ro(_0x430970,_0x2a489e[_0x3c14('0x13')]['schema'])&&_0x43368b[_0x3c14('0xe')](_0x2a489e[_0x3c14('0x13')][_0x3c14('0x8')](_0x430970),{'commandName':_0x3c14('0x9'),'commandParams':[]});});}),_0x43368b[_0x3c14('0x5')][_0x3c14('0xd')](_0x45fc5a=>{const {data:_0x59b341}=_0x45fc5a;if(_0x59b341&&_0x3c14('0x9')==_0x59b341[_0x3c14('0x2')])return{'type':'format','content':_0x1f215a(_0x2a489e['locale'],'*Remove\x20all\x20formatting*')};});}}function ro(_0x29f832,_0x1da2cf){for(const [_0x40de3b]of _0x29f832['getAttributes']()){const _0x32943e=_0x1da2cf[_0x3c14('0x1')](_0x40de3b);if(_0x32943e&&_0x32943e[_0x3c14('0x3')])return!0x0;}return!0x1;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a2a=['discardSelectedSuggestions','TrackChangesEditing','goToPreviousRestrictedEditingException','editor','enableCommand','acceptSelectedSuggestions','acceptSuggestion','discardSuggestion','trackChanges','afterInit','acceptAllSuggestions','plugins','has','get','RestrictedEditingModeEditing'];(function(_0x9535b7,_0x1a2a6a){const _0x5a8598=function(_0x36545b){while(--_0x36545b){_0x9535b7['push'](_0x9535b7['shift']());}};_0x5a8598(++_0x1a2a6a);}(_0x1a2a,0x8b));const _0x5a85=function(_0x9535b7,_0x1a2a6a){_0x9535b7=_0x9535b7-0x0;let _0x5a8598=_0x1a2a[_0x9535b7];return _0x5a8598;};import{Plugin as _0x1be0aa}from'ckeditor5/src/core';export default class st extends _0x1be0aa{[_0x5a85('0x5')](){const _0x1972be=this[_0x5a85('0xe')];if(!_0x1972be[_0x5a85('0x7')][_0x5a85('0x8')](_0x5a85('0xa')))return;const _0x2b3f8a=_0x1972be[_0x5a85('0x7')][_0x5a85('0x9')](_0x5a85('0xc'));_0x2b3f8a['enableCommand'](_0x5a85('0xd')),_0x2b3f8a[_0x5a85('0x0')]('goToNextRestrictedEditingException');const _0x4249e2=_0x1972be[_0x5a85('0x7')][_0x5a85('0x9')]('RestrictedEditingModeEditing');_0x4249e2[_0x5a85('0x0')](_0x5a85('0x4')),_0x4249e2[_0x5a85('0x0')](_0x5a85('0x2')),_0x4249e2[_0x5a85('0x0')](_0x5a85('0x3')),_0x4249e2['enableCommand'](_0x5a85('0x6')),_0x4249e2['enableCommand']('discardAllSuggestions'),_0x4249e2['enableCommand'](_0x5a85('0x1')),_0x4249e2[_0x5a85('0x0')](_0x5a85('0xb'));}}
23
+ const _0x2034=['plugins','acceptSelectedSuggestions','editor','trackChanges','discardSuggestion','acceptAllSuggestions','get','TrackChangesEditing','acceptSuggestion','RestrictedEditingModeEditing','enableCommand','discardSelectedSuggestions','goToNextRestrictedEditingException'];(function(_0x2ebf7d,_0x203497){const _0x3eba72=function(_0x3e6558){while(--_0x3e6558){_0x2ebf7d['push'](_0x2ebf7d['shift']());}};_0x3eba72(++_0x203497);}(_0x2034,0x128));const _0x3eba=function(_0x2ebf7d,_0x203497){_0x2ebf7d=_0x2ebf7d-0x0;let _0x3eba72=_0x2034[_0x2ebf7d];return _0x3eba72;};import{Plugin as _0x53e805}from'ckeditor5/src/core';export default class rt extends _0x53e805{['afterInit'](){const _0x28c777=this[_0x3eba('0x5')];if(!_0x28c777[_0x3eba('0x3')]['has'](_0x3eba('0xc')))return;const _0x2f8964=_0x28c777[_0x3eba('0x3')][_0x3eba('0x9')](_0x3eba('0xa'));_0x2f8964['enableCommand']('goToPreviousRestrictedEditingException'),_0x2f8964['enableCommand'](_0x3eba('0x2'));const _0x126569=_0x28c777[_0x3eba('0x3')][_0x3eba('0x9')](_0x3eba('0xc'));_0x126569[_0x3eba('0x0')](_0x3eba('0x6')),_0x126569[_0x3eba('0x0')](_0x3eba('0xb')),_0x126569[_0x3eba('0x0')](_0x3eba('0x7')),_0x126569['enableCommand'](_0x3eba('0x8')),_0x126569[_0x3eba('0x0')]('discardAllSuggestions'),_0x126569[_0x3eba('0x0')](_0x3eba('0x4')),_0x126569['enableCommand'](_0x3eba('0x1'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x28e18f}from'ckeditor5/src/core';import{ShiftEnter as _0x19e18f}from'ckeditor5/src/enter';export default class nt extends _0x28e18f{static get['requires'](){return[_0x19e18f];}['init'](){const _0x3052c9=this['editor'],_0x578d3e=_0x3052c9['plugins']['get']('TrackChangesEditing'),t=_0x3052c9['t'];_0x578d3e['enableCommand']('shiftEnter'),_0x3052c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',re(_0x3052c9),{'priority':'high'}),_0x3052c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',re(_0x3052c9),{'priority':'high'}),_0x3052c9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27f59a,_0x5ae3d7,_0x8b1bde)=>{_0x8b1bde['options']['showSuggestionHighlights']&&re(_0x3052c9,{'showActiveMarker':!0x1})(_0x27f59a,_0x5ae3d7,_0x8b1bde);}),_0x578d3e['_descriptionFactory']['registerElementLabel']('softBreak',_0x2d8c97=>t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2d8c97));}}function re(_0x14888b,{showActiveMarker:_0x492412=!0x0}={}){return(_0x25aec5,_0x4196f9,_0x24d4d7)=>{const _0x563b28=_0x14888b['plugins']['get']('TrackChangesEditing');if(!_0x24d4d7['consumable']['test'](_0x4196f9['markerRange'],_0x25aec5['name']))return;const _0x51bbe3=_0x14888b['model'];for(const _0x2c073f of _0x4196f9['markerRange']['getItems']()){if(!_0x2c073f['is']('element','softBreak'))continue;const _0x1c8f4b='deletion'==_0x4196f9['markerName']['split'](':')[0x1]?'merge':'split',_0x3438a5=_0x24d4d7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c8f4b}),_0x3e1567=_0x24d4d7['mapper']['toViewPosition'](_0x51bbe3['createPositionBefore'](_0x2c073f));_0x492412&&_0x563b28['activeMarkers']['includes'](_0x4196f9['markerName'])&&_0x24d4d7['writer']['addClass']('ck-suggestion-marker--active',_0x3438a5),_0x24d4d7['writer']['insert'](_0x3e1567,_0x3438a5),_0x24d4d7['mapper']['bindElementToMarker'](_0x3438a5,_0x4196f9['markerName']);}};}
23
+ const _0xd5b6=['writer','options','bindElementToMarker','toViewPosition','downcastDispatcher','model','addClass','editing','registerElementLabel','ck-suggestion-marker--active','locale','shiftEnter','enableCommand','high','insert','consumable','activeMarkers','addMarker:suggestion:deletion','showSuggestionHighlights','editor','markerRange','requires','split','ck-suggestion-marker-','ELEMENT_LINE_BREAK','plugins','softBreak','test','getItems','markerName'];(function(_0xbde28f,_0xd5b66c){const _0x554404=function(_0x44fdcc){while(--_0x44fdcc){_0xbde28f['push'](_0xbde28f['shift']());}};_0x554404(++_0xd5b66c);}(_0xd5b6,0x95));const _0x5544=function(_0xbde28f,_0xd5b66c){_0xbde28f=_0xbde28f-0x0;let _0x554404=_0xd5b6[_0xbde28f];return _0x554404;};import{Plugin as _0x4a0931}from'ckeditor5/src/core';import{ShiftEnter as _0x48ddef}from'ckeditor5/src/enter';import{getTranslation as _0x99061}from'../utils/common-translations';export default class at extends _0x4a0931{static get[_0x5544('0x16')](){return[_0x48ddef];}['init'](){const _0x2a9816=this[_0x5544('0x14')],_0x259988=_0x2a9816[_0x5544('0x1a')]['get']('TrackChangesEditing');_0x259988[_0x5544('0xd')](_0x5544('0xc')),_0x2a9816[_0x5544('0x8')][_0x5544('0x5')]['on']('addMarker:suggestion:insertion',se(_0x2a9816),{'priority':_0x5544('0xe')}),_0x2a9816[_0x5544('0x8')]['downcastDispatcher']['on'](_0x5544('0x12'),se(_0x2a9816),{'priority':_0x5544('0xe')}),_0x2a9816['data'][_0x5544('0x5')]['on']('addMarker:suggestion',(_0x11bf79,_0xaccf8f,_0x6d7dd3)=>{_0x6d7dd3[_0x5544('0x2')][_0x5544('0x13')]&&se(_0x2a9816,{'showActiveMarker':!0x1})(_0x11bf79,_0xaccf8f,_0x6d7dd3);}),_0x259988['_descriptionFactory'][_0x5544('0x9')](_0x5544('0x1b'),_0x2cf344=>_0x99061(_0x2a9816[_0x5544('0xb')],_0x5544('0x19'),_0x2cf344));}}function se(_0x1af191,{showActiveMarker:_0x2701c7=!0x0}={}){return(_0x5f316e,_0x84f533,_0x4d93d6)=>{const _0x365c40=_0x1af191[_0x5544('0x1a')]['get']('TrackChangesEditing');if(!_0x4d93d6[_0x5544('0x10')][_0x5544('0x1c')](_0x84f533[_0x5544('0x15')],_0x5f316e['name']))return;const _0x4b72df=_0x1af191[_0x5544('0x6')];for(const _0x222f67 of _0x84f533['markerRange'][_0x5544('0x1d')]()){if(!_0x222f67['is']('element',_0x5544('0x1b')))continue;const _0x4d06f4='deletion'==_0x84f533[_0x5544('0x0')][_0x5544('0x17')](':')[0x1]?'merge':'split',_0x511f53=_0x4d93d6[_0x5544('0x1')]['createUIElement']('span',{'class':_0x5544('0x18')+_0x4d06f4}),_0x132b8d=_0x4d93d6['mapper'][_0x5544('0x4')](_0x4b72df['createPositionBefore'](_0x222f67));_0x2701c7&&_0x365c40[_0x5544('0x11')]['includes'](_0x84f533[_0x5544('0x0')])&&_0x4d93d6[_0x5544('0x1')][_0x5544('0x7')](_0x5544('0xa'),_0x511f53),_0x4d93d6[_0x5544('0x1')][_0x5544('0xf')](_0x132b8d,_0x511f53),_0x4d93d6['mapper'][_0x5544('0x3')](_0x511f53,_0x84f533[_0x5544('0x0')]);}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5810b7}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';export default class et extends _0x5810b7{['afterInit'](){const _0x2cffa5=this['editor'],_0x3bec2b=_0x2cffa5['model'];if(!_0x2cffa5['plugins']['has']('StandardEditingModeEditing'))return;const _0x124cda=_0x2cffa5['plugins']['get']('TrackChangesEditing'),_0x3756ef='restrictedEditingException',_0x11356c=_0x2cffa5['commands']['get'](_0x3756ef);_0x124cda['enableCommand'](_0x3756ef,(_0x2a0086,_0x11bf3b={})=>{const _0x24f06d=_0x3bec2b['document']['selection'];if(_0x24f06d['isCollapsed'])return void _0x2a0086(_0x11bf3b);const _0x1d52df=void 0x0!==_0x11bf3b['forceValue']?_0x11bf3b['forceValue']:!_0x11356c['value'];_0x3bec2b['change'](()=>{const _0x10ec9a=Array['from'](_0x24f06d['getRanges']());for(const _0x4c1395 of _0x10ec9a){const _0x29f2d7=_0x1d52df?[_0x4c1395]:Rt(_0x3756ef,_0x4c1395,_0x3bec2b);for(const _0x48e10a of _0x29f2d7)_0x124cda['markInlineFormat'](_0x48e10a,{'commandName':_0x3756ef,'commandParams':[{'forceValue':_0x1d52df}]});}});});const t=_0x2cffa5['t'];_0x124cda['_descriptionFactory']['registerDescriptionCallback'](_0x106e35=>{const {data:_0x527e78}=_0x106e35;if(_0x527e78&&_0x527e78['commandName']==_0x3756ef)return _0x527e78['commandParams'][0x0]['forceValue']?{'type':'format','content':t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'})}:{'type':'format','content':t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'})};});}}
23
+ const _0x57e2=['change','getRanges','forceValue','format','commands','has','registerDescriptionCallback','isCollapsed','get','editor','plugins','restrictedEditingException','locale','model','FORMAT_RESTRICTED_ENABLED','_descriptionFactory','commandParams','value','commandName'];(function(_0x21394e,_0x57e22d){const _0x135049=function(_0x31176c){while(--_0x31176c){_0x21394e['push'](_0x21394e['shift']());}};_0x135049(++_0x57e22d);}(_0x57e2,0xef));const _0x1350=function(_0x21394e,_0x57e22d){_0x21394e=_0x21394e-0x0;let _0x135049=_0x57e2[_0x21394e];return _0x135049;};import{Plugin as _0x3c0d1d}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x3c0c54}from'./utils';import{getTranslation as _0x4ebd7f}from'../utils/common-translations';export default class ct extends _0x3c0d1d{['afterInit'](){const _0x812a7a=this[_0x1350('0x11')],_0x533bd5=_0x812a7a[_0x1350('0x2')],_0x30397c=_0x812a7a[_0x1350('0x1')];if(!_0x812a7a[_0x1350('0x12')][_0x1350('0xd')]('StandardEditingModeEditing'))return;const _0x41f7bc=_0x812a7a['plugins'][_0x1350('0x10')]('TrackChangesEditing'),_0x491dca=_0x1350('0x0'),_0xddd944=_0x812a7a[_0x1350('0xc')][_0x1350('0x10')](_0x491dca);_0x41f7bc['enableCommand'](_0x491dca,(_0x3c599a,_0x941e39={})=>{const _0x4a8001=_0x533bd5['document']['selection'];if(_0x4a8001[_0x1350('0xf')])return void _0x3c599a(_0x941e39);const _0x375481=void 0x0!==_0x941e39[_0x1350('0xa')]?_0x941e39[_0x1350('0xa')]:!_0xddd944[_0x1350('0x6')];_0x533bd5[_0x1350('0x8')](()=>{const _0x1231f1=Array['from'](_0x4a8001[_0x1350('0x9')]());for(const _0x2d9bee of _0x1231f1){const _0x2c4e40=_0x375481?[_0x2d9bee]:_0x3c0c54(_0x491dca,_0x2d9bee,_0x533bd5);for(const _0x564241 of _0x2c4e40)_0x41f7bc['markInlineFormat'](_0x564241,{'commandName':_0x491dca,'commandParams':[{'forceValue':_0x375481}]});}});}),_0x41f7bc[_0x1350('0x4')][_0x1350('0xe')](_0x19d523=>{const {data:_0x1ae66a}=_0x19d523;if(_0x1ae66a&&_0x1ae66a[_0x1350('0x7')]==_0x491dca)return _0x1ae66a[_0x1350('0x5')][0x0]['forceValue']?{'type':_0x1350('0xb'),'content':_0x4ebd7f(_0x30397c,_0x1350('0x3'))}:{'type':_0x1350('0xb'),'content':_0x4ebd7f(_0x30397c,'FORMAT_RESTRICTED_DISABLED')};});}}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, 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 _0x4f11=['commands','*Format:*\x20%0','*Remove\x20format:*\x20%0','locale','getItems','includes','change','push','document','modelElements','isBlock','getStyleDefinition','styleName','has','inline','_descriptionFactory','style.definitions','value','style','TrackChangesEditing','DataSchema','filter','find','getSelectedBlocks','Style','model','getRangesWithClasses','classes','format','block','element','toLowerCase','enabledStyles','getRanges','name','get','getAttribute','markInlineFormat','style:','plugins','forceValue','commandParams','afterInit','editor','createRangeOn','config','commandName','from'];(function(_0x570539,_0x4f11f8){const _0x128b94=function(_0x2d69a8){while(--_0x2d69a8){_0x570539['push'](_0x570539['shift']());}};_0x128b94(++_0x4f11f8);}(_0x4f11,0x1d1));const _0x128b=function(_0x570539,_0x4f11f8){_0x570539=_0x570539-0x0;let _0x128b94=_0x4f11[_0x570539];return _0x128b94;};import{Plugin as _0x11e205}from'ckeditor5/src/core';import{normalizeConfig as _0x205607}from'@ckeditor/ckeditor5-style/src/utils';import{getTranslation as _0x1160c5}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x15d9a1}from'../utils/getrangesofblockgroups';export default class ht extends _0x11e205{[_0x128b('0x9')](){const _0x2696ce=this[_0x128b('0xa')];if(!_0x2696ce[_0x128b('0x6')][_0x128b('0x1c')](_0x128b('0x27')))return;const _0x3a38cd=_0x2696ce[_0x128b('0xf')][_0x128b('0x2')](_0x128b('0x21')),_0x23ea62=_0x2696ce['plugins'][_0x128b('0x2')](_0x128b('0x22')),_0x216da0=_0x2696ce[_0x128b('0x12')],_0x185cd2=_0x2696ce['plugins'][_0x128b('0x2')](_0x128b('0x23')),_0x4a0aea=_0x205607(_0x185cd2,_0x2696ce[_0x128b('0xc')][_0x128b('0x2')](_0x128b('0x1f')));_0x23ea62['enableCommand'](_0x128b('0x21'),(_0x189ae8,{styleName:_0x19c6de})=>{const _0x32e109=_0x2696ce[_0x128b('0x28')][_0x128b('0x17')]['selection'],_0x1c788d=this['getStyleDefinition'](_0x19c6de,_0x4a0aea);if(!_0x1c788d)return;if(!_0x3a38cd[_0x128b('0x2f')][_0x128b('0x14')](_0x19c6de))return;if(_0x32e109['isCollapsed']&&!_0x1c788d[_0x128b('0x19')])return void _0x189ae8({'styleName':_0x19c6de});const _0x6d122c=!_0x3a38cd[_0x128b('0x20')][_0x128b('0x14')](_0x1c788d[_0x128b('0x1')]);if(_0x1c788d[_0x128b('0x19')]){const _0x50c516=Array[_0x128b('0xe')](_0x32e109[_0x128b('0x26')]())[_0x128b('0x24')](_0x450e8b=>_0x1c788d[_0x128b('0x18')][_0x128b('0x14')](_0x450e8b[_0x128b('0x1')])),_0x536227=_0x15d9a1(_0x50c516,_0x2696ce['model']);_0x2696ce['model'][_0x128b('0x15')](()=>{for(const _0x3cd675 of _0x536227)_0x23ea62['markBlockFormat'](_0x3cd675,{'commandName':_0x128b('0x21'),'commandParams':[{'styleName':_0x19c6de,'forceValue':_0x6d122c}],'formatGroupId':_0x128b('0x5')+_0x19c6de});});}else{let _0x404bb0=Array[_0x128b('0xe')](_0x32e109[_0x128b('0x0')]());if(!_0x6d122c){const _0x1deedf=Array[_0x128b('0xe')](_0x185cd2['getDefinitionsForView'](_0x1c788d[_0x128b('0x2d')],!0x1))[0x0]['model'],_0x28720f=[];for(const _0x50a635 of _0x404bb0){const _0x2bc2f4=this[_0x128b('0x29')](_0x2696ce[_0x128b('0x28')],_0x50a635,_0x1c788d[_0x128b('0x2a')],_0x1deedf);_0x28720f[_0x128b('0x16')](..._0x2bc2f4);}_0x404bb0=_0x28720f;}_0x2696ce['model'][_0x128b('0x15')](()=>{for(const _0x57c6d9 of _0x404bb0)_0x23ea62[_0x128b('0x4')](_0x57c6d9,{'commandName':'style','commandParams':[{'styleName':_0x19c6de,'forceValue':_0x6d122c}]});});}}),_0x23ea62[_0x128b('0x1e')]['registerDescriptionCallback'](_0x12dc43=>{const {data:_0x33719c}=_0x12dc43;if(_0x33719c&&_0x128b('0x21')===_0x33719c[_0x128b('0xd')])return _0x33719c[_0x128b('0x8')][0x0][_0x128b('0x7')]?{'type':'format','content':_0x1160c5(_0x216da0,_0x128b('0x10'),_0x33719c['commandParams'][0x0][_0x128b('0x1b')][_0x128b('0x2e')]())}:{'type':_0x128b('0x2b'),'content':_0x1160c5(_0x216da0,_0x128b('0x11'),_0x33719c[_0x128b('0x8')][0x0][_0x128b('0x1b')][_0x128b('0x2e')]())};});}[_0x128b('0x1a')](_0x3fdc5f,_0x2d274d){let _0x3b58fb=_0x2d274d[_0x128b('0x2c')][_0x128b('0x25')](_0x3551af=>_0x3551af['name']===_0x3fdc5f);return _0x3b58fb||(_0x3b58fb=_0x2d274d[_0x128b('0x1d')]['find'](_0x2b405a=>_0x2b405a[_0x128b('0x1')]===_0x3fdc5f)),_0x3b58fb;}['getRangesWithClasses'](_0xdec459,_0x11d2fa,_0x3eb3bc,_0x2199f9){const _0x319486=[];for(const _0x3fd983 of _0x11d2fa[_0x128b('0x13')]()){const _0x58d179=_0x3fd983[_0x128b('0x3')](_0x2199f9);_0x58d179&&(_0x3eb3bc['every'](_0x5060bf=>_0x58d179[_0x128b('0x2a')][_0x128b('0x14')](_0x5060bf))&&_0x319486[_0x128b('0x16')](_0xdec459[_0x128b('0xb')](_0x3fd983)));}return _0x319486;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x2684b7}from'ckeditor5/src/core';import{LiveRange as _0x174ec1}from'ckeditor5/src/engine';import{setHighlightHandling as $t}from'ckeditor5/src/widget';export default class ot extends _0x2684b7{constructor(_0x16ce4b){super(_0x16ce4b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'];}['afterInit'](){const _0x282822=this['editor'],_0xd17a20=_0x282822['model']['document']['selection'];if(!_0x282822['plugins']['has']('TableEditing'))return;const {t:t}=_0x282822['locale'],_0x1804fa=_0x282822['plugins']['get']('TrackChangesEditing'),_0x5eabde=_0x282822['plugins']['get']('TableUtils');_0x1804fa['_descriptionFactory']['registerElementLabel']('table',_0x217638=>t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x217638)),this['_setupColumnsRowsFixing'](),_0x1804fa['enableCommand']('insertTable'),_0x1804fa['enableCommand']('selectTableRow'),_0x1804fa['enableCommand']('selectTableColumn');for(const _0x273c74 of['insertTableRowAbove','insertTableRowBelow']){const _0x4fd8f3=_0x282822['commands']['get'](_0x273c74);_0x1804fa['enableCommand'](_0x273c74,_0x264d49=>{_0x282822['model']['change'](_0x321f33=>{_0x264d49();const _0x496ee5='above'===_0x4fd8f3['order'],_0x18afab=_0x5eabde['getSelectionAffectedTableCells'](_0xd17a20),_0x3af80d=_0x5eabde['getRowIndexes'](_0x18afab),_0x4576d0=_0x496ee5?_0x3af80d['first']-0x1:_0x3af80d['last']+0x1,_0x2acda0=_0x18afab[0x0]['findAncestor']('table'),_0x318c2e=_0x5eabde['createTableWalker'](_0x2acda0,{'startRow':_0x4576d0,'endRow':_0x4576d0}),_0x2ea205=Array['from'](_0x318c2e)['map'](_0xc5df9d=>_0x321f33['createRangeOn'](_0xc5df9d['cell']));_0x1804fa['markMultiRangeInsertion'](_0x2ea205,'tableRow');});});}for(const _0x3f2223 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1b9533=_0x282822['commands']['get'](_0x3f2223);_0x1804fa['enableCommand'](_0x3f2223,_0x256f13=>{_0x282822['model']['change'](_0x204c74=>{_0x256f13();const _0x18e968='left'===_0x1b9533['order'],_0x142619=_0x5eabde['getSelectionAffectedTableCells'](_0xd17a20),_0x3334ce=_0x5eabde['getColumnIndexes'](_0x142619),_0x1ba40c=_0x18e968?_0x3334ce['first']-0x1:_0x3334ce['last']+0x1,_0x374816=_0x142619[0x0]['findAncestor']('table'),_0x24d047=_0x5eabde['createTableWalker'](_0x374816,{'startRow':0x0,'column':_0x1ba40c,'includeAllSlots':!0x1}),_0x2074f7=Array['from'](_0x24d047)['map'](_0x1ac653=>_0x204c74['createRangeOn'](_0x1ac653['cell']));_0x1804fa['markMultiRangeInsertion'](_0x2074f7,'tableColumn');});});}for(const _0x14d4ee of['removeTableRow','removeTableColumn']){const _0x9a53e6=_0x14d4ee['substr'](0xb),_0x5340de=_0x9a53e6['toLowerCase'](),_0x5bd142=_0x5340de['substr'](0x0,0x3)+'span',_0x239144='table'+_0x9a53e6,_0x1f011c='min'+_0x9a53e6,_0x4cd827='max'+_0x9a53e6;_0x1804fa['enableCommand'](_0x14d4ee,()=>{_0x282822['model']['change'](_0x7590fa=>{const _0x2d3e6b=_0x5eabde['getSelectionAffectedTableCells'](_0xd17a20),_0x2879b5=_0x2d3e6b[0x0]['findAncestor']('table');let _0x3828c6;if('removeTableRow'==_0x14d4ee){const _0x5bcf30=_0x5eabde['getRowIndexes'](_0x2d3e6b);_0x3828c6={'startRow':_0x5bcf30['first'],'endRow':_0x5bcf30['last'],'includeAllSlots':!0x0};}else{const _0x2cbcae=_0x5eabde['getColumnIndexes'](_0x2d3e6b);_0x3828c6={'startColumn':_0x2cbcae['first'],'endColumn':_0x2cbcae['last'],'includeAllSlots':!0x0};}const _0x4ffa00=_0x5eabde['createTableWalker'](_0x2879b5,_0x3828c6),_0x57e889=Array['from'](_0x4ffa00)['map'](({cell:_0x38b238})=>_0x38b238),_0x4dbc5f=Wt(_0x57e889['filter'](_0xd9df76=>_0xd9df76['hasAttribute'](_0x5bd142))),_0x581160=Wt(_0x57e889['filter'](_0x49d84e=>!_0x49d84e['hasAttribute'](_0x5bd142)))['map'](_0x448930=>_0x7590fa['createRangeOn'](_0x448930)),_0x2052be=_0x1804fa['markMultiRangeDeletion'](_0x581160,_0x239144);if(_0x2052be&&('tableRow'==_0x2052be['subType']||'tableColumn'==_0x2052be['subType'])){const _0x1d6113=this['_getSuggestionCoords'](_0x2052be);for(const _0xa1b43d of _0x4dbc5f){const _0x310e97=_0x7590fa['createRangeOn'](_0xa1b43d),_0x31e99d=_0x5eabde['getCellLocation'](_0xa1b43d),_0x1179cb=_0xa1b43d['getAttribute'](_0x5bd142)-0x1,_0x243fb6=_0x1d6113[_0x1f011c],_0x4d0577=_0x1d6113[_0x4cd827];_0x243fb6<=_0x31e99d[_0x5340de]&&_0x31e99d[_0x5340de]+_0x1179cb<=_0x4d0577&&_0x2052be['addRange'](_0x310e97);}}});});}function _0x12d1b6(_0x3cf696){const _0x3d40f6=Array['from'](_0xd17a20['getRanges']())['map'](_0x310009=>_0x174ec1['fromRange'](_0x310009));_0x282822['model']['change'](_0x4dac26=>{const _0x709b8=_0x4dac26['batch'];_0x3cf696=_0x3cf696['filter'](_0x4b5899=>'$graveyard'!=_0x4b5899['root']['rootName']),_0x4dac26['setSelection'](_0x3cf696),_0x282822['commands']['get']('removeTableRow')['refresh'](),_0x282822['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x282822['model']['enqueueChange'](()=>{_0x282822['model']['enqueueChange'](_0x709b8,_0xa9212d=>{const _0x944b56=_0x3d40f6['filter'](_0x44b1f7=>'$graveyard'!=_0x44b1f7['root']['rootName']);_0x944b56['length']>0x0&&_0xa9212d['setSelection'](_0x944b56);for(const _0x3726a4 of _0x3d40f6)_0x3726a4['detach']();});});});}function _0x415f41(_0x46bbc8){_0x282822['model']['change'](_0xb8096c=>{const _0x47dde1=Array['from'](_0xd17a20['getRanges']())['map'](_0x160bd9=>_0x174ec1['fromRange'](_0x160bd9)),_0x224f28=[];for(const _0x723459 of _0x46bbc8)for(const _0x43302a of _0x723459['getItems']({'shallow':!0x0}))_0x224f28['push'](_0x43302a);for(const _0x4b4422 of _0x224f28)'$graveyard'!=_0x4b4422['root']['rootName']&&(_0xb8096c['setSelection'](_0xb8096c['createPositionAt'](_0x4b4422,0x0)),_0x282822['commands']['get']('removeTableColumn')['refresh'](),_0x282822['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5c6871=_0x47dde1['filter'](_0x5c21e9=>'$graveyard'!=_0x5c21e9['root']['rootName']);_0x5c6871['length']>0x0&&_0xb8096c['setSelection'](_0x5c6871);for(const _0x2ed090 of _0x47dde1)_0x2ed090['detach']();});}function _0x9b7d57(_0x231b53,_0x46f4a8){return _0x46f4a8['every'](_0x5efb38=>_0x231b53['some'](_0x59468a=>_0x59468a['end']['isEqual'](_0x5efb38['start'])||_0x5efb38['end']['isEqual'](_0x59468a['start'])));}function _0x5a8c2e(_0xe4e72,_0x486097){return _0xe4e72['some'](_0x3d55da=>_0x486097['some'](_0xef789c=>_0x3d55da['end']['isTouching'](_0xef789c['start'])));}_0x282822['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1d1774,_0x15753f,_0x255de2)=>{if(!_0x255de2['options']['showSuggestionHighlights'])return;const _0x629306=_0x15753f['item'];if(!_0x629306)return;const _0x155bc0=_0x255de2['mapper']['toViewElement'](_0x629306);function _0x1a7247(_0x34ac1c){return Array['isArray'](_0x34ac1c)?_0x34ac1c:[_0x34ac1c];}_0x155bc0&&'tableCell'===_0x629306['name']&&$t(_0x155bc0,_0x255de2['writer'],(_0x3efc26,_0x112ddd,_0x17b65a)=>_0x17b65a['addClass'](_0x1a7247(_0x112ddd['classes']),_0x3efc26),(_0x329d02,_0x3a6bca,_0x36fc01)=>_0x36fc01['removeClass'](_0x1a7247(_0x3a6bca['classes']),_0x329d02));},{'priority':'highest'}),_0x1804fa['_descriptionFactory']['registerDescriptionCallback'](_0xe2ca76=>{if('insertion'!=_0xe2ca76['type']&&'deletion'!=_0xe2ca76['type'])return;const _0x363683=_0xe2ca76['getContainedElement']();if(null!=_0x363683&&_0x363683['is']('element','table')){if('insertion'==_0xe2ca76['type']){const _0x2f047d=_0xe2ca76['getItems']()['filter'](_0x272e26=>_0x272e26['is']('textProxy'))['map'](_0x4474ec=>_0x4474ec['data']);if(_0x2f047d['length'])return{'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},'\x22'+_0x2f047d['join']('\x20')+'\x22'))};}if('deletion'==_0xe2ca76['type']){const _0x292584=_0xe2ca76['getItems']()['filter'](_0x5f7763=>_0x5f7763['is']('textProxy'))['map'](_0x229652=>_0x229652['data']);if(_0x292584['length'])return{'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},'\x22'+_0x292584['join']('\x20')+'\x22'))};}}}),_0x1804fa['_descriptionFactory']['registerDescriptionCallback'](_0x1e8f8a=>{if('tableRow'==_0x1e8f8a['subType']){const _0x1b5409=_0x1e8f8a['getItems']()['filter'](_0x180c4c=>_0x180c4c['is']('textProxy'))['map'](_0x9271f=>_0x9271f['data']),_0x5a6251=this['_getSuggestionCoords'](_0x1e8f8a),_0x263d4d=_0x5a6251['maxRow']-_0x5a6251['minRow']+0x1;if('insertion'==_0x1e8f8a['type'])return _0x1b5409['length']?{'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},[_0x263d4d,'\x22'+_0x1b5409['join']('\x20')+'\x22']))}:{'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x263d4d))};if('deletion'==_0x1e8f8a['type'])return _0x1b5409['length']?{'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},[_0x263d4d,'\x22'+_0x1b5409['join']('\x20')+'\x22']))}:{'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x263d4d))};}if('tableColumn'==_0x1e8f8a['subType']){const _0xd8543d=_0x1e8f8a['getItems']()['filter'](_0x3e8068=>_0x3e8068['is']('textProxy'))['map'](_0x186aa3=>_0x186aa3['data']),_0x195b5e=this['_getSuggestionCoords'](_0x1e8f8a),_0x58344a=_0x195b5e['maxColumn']-_0x195b5e['minColumn']+0x1;if('insertion'==_0x1e8f8a['type'])return _0xd8543d['length']?{'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},[_0x58344a,'\x22'+_0xd8543d['join']('\x20')+'\x22']))}:{'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x58344a))};if('deletion'==_0x1e8f8a['type'])return _0xd8543d['length']?{'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},[_0x58344a,'\x22'+_0xd8543d['join']('\x20')+'\x22']))}:{'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x58344a))};}}),_0x1804fa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x12d1b6),_0x1804fa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x12d1b6),_0x1804fa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x415f41),_0x1804fa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x415f41),_0x1804fa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x9b7d57),_0x1804fa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x9b7d57),_0x1804fa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5a8c2e),_0x1804fa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5a8c2e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4dde7a=this['editor'],_0x48db5e=_0x4dde7a['model']['document']['selection'];return(_0x363b09,_0x25b295)=>{_0x4dde7a['model']['change'](_0x573ed7=>{const {commandName:_0x251e4d,commandParams:_0x17dd60}=_0x25b295;let _0x2c1a11=_0x363b09[0x0]['end']['nodeBefore'];_0x17dd60&&_0x17dd60[0x0]&&!0x1===_0x17dd60[0x0]['forceValue']&&(_0x2c1a11=_0x363b09[0x0]['start']['nodeAfter']);const _0x3a83c5=_0x573ed7['createRangeIn'](_0x2c1a11);if('$graveyard'==_0x3a83c5['root']['rootName'])return;const _0x2a233d=Array['from'](_0x48db5e['getRanges']())['map'](_0x4f76df=>_0x174ec1['fromRange'](_0x4f76df));_0x573ed7['setSelection'](_0x3a83c5),_0x4dde7a['commands']['get'](_0x251e4d)['refresh'](),_0x17dd60['push']({'forceDefaultExecution':!0x0}),_0x4dde7a['execute'](_0x251e4d,..._0x17dd60);const _0x4568e9=_0x2a233d['filter'](_0x49ff6b=>'$graveyard'!=_0x49ff6b['root']['rootName']);_0x4568e9['length']>0x0&&_0x573ed7['setSelection'](_0x4568e9);for(const _0xd5d2b6 of _0x2a233d)_0xd5d2b6['detach']();});};}['_getCoordsForCells'](_0x330038){const _0x1afe5f=this['editor']['plugins']['get']('TableUtils');let _0x48810f=Number['MAX_SAFE_INTEGER'],_0x54d0f3=Number['MIN_SAFE_INTEGER'],_0x30b5ac=Number['MAX_SAFE_INTEGER'],_0x1f308d=Number['MIN_SAFE_INTEGER'];for(const _0x2179bd of _0x330038){if('$graveyard'==_0x2179bd['root']['rootName'])continue;const {row:_0x84808,column:_0x5356dc}=_0x1afe5f['getCellLocation'](_0x2179bd),_0x3807d8=_0x2179bd['hasAttribute']('rowspan')?_0x2179bd['getAttribute']('rowspan')-0x1:0x0,_0x110a04=_0x2179bd['hasAttribute']('colspan')?_0x2179bd['getAttribute']('colspan')-0x1:0x0;_0x48810f=_0x84808<_0x48810f?_0x84808:_0x48810f,_0x54d0f3=_0x84808+_0x3807d8>_0x54d0f3?_0x84808+_0x3807d8:_0x54d0f3,_0x30b5ac=_0x5356dc<_0x30b5ac?_0x5356dc:_0x30b5ac,_0x1f308d=_0x5356dc+_0x110a04>_0x1f308d?_0x5356dc+_0x110a04:_0x1f308d;}return{'minRow':_0x48810f,'maxRow':_0x54d0f3,'minColumn':_0x30b5ac,'maxColumn':_0x1f308d};}['_setupColumnsRowsFixing'](){const _0xf73a75=this['editor'],_0x502c28=_0xf73a75['plugins']['get']('TrackChangesEditing'),_0x63af48=_0xf73a75['plugins']['get']('TableUtils');this['_tableSuggestions']=new Set(),_0xf73a75['model']['document']['on']('change:data',()=>{const _0x53c07b=Array['from'](_0xf73a75['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x44188e,data:_0x18a445}of _0x53c07b){const {group:_0x67cb28,id:_0x462807,subType:_0x53519a}=_0x502c28['_splitMarkerName'](_0x44188e);if('suggestion'!=_0x67cb28)continue;if(null!=_0x18a445['oldRange'])continue;const _0x1a8bc2=_0x502c28['getSuggestion'](_0x462807);this['_tablePostFixingSubtypes']['includes'](_0x53519a)&&this['_tableSuggestions']['add'](_0x1a8bc2);}},{'priority':'low'});const _0x1784f0=(_0x4b5056,_0x805f44)=>{let _0x4544fe=!0x1;const _0x318bd5=_0x805f44['createRangeOn'](_0x4b5056),_0x44c04a=_0x4b5056['findAncestor']('table'),_0x44a66f=_0x63af48['getCellLocation'](_0x4b5056);for(const _0x3d0551 of this['_tableSuggestions']){const _0x121662=_0x3d0551['subType'],_0x2ed3ef=_0x121662['startsWith']('tablePaste'),_0x3a5494=_0x121662['substr'](_0x2ed3ef?0xa:0x5),_0x4c8edf=_0x3a5494['toLowerCase'](),_0x4243a2=_0x4c8edf['substr'](0x0,0x3)+'span',_0x2c0298='min'+_0x3a5494,_0x295355='max'+_0x3a5494;if(!_0x3d0551['isInContent'])continue;if(_0x44c04a!=_0x3d0551['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3d0551['isIntersectingWithRange'](_0x318bd5))continue;const _0x2a847b=_0x4b5056['hasAttribute'](_0x4243a2)?_0x4b5056['getAttribute'](_0x4243a2)-0x1:0x0,_0x4c60bd=this['_getSuggestionCoords'](_0x3d0551),_0x1a1a7b=_0x4c60bd[_0x2c0298],_0x212deb=_0x4c60bd[_0x295355];_0x1a1a7b<=_0x44a66f[_0x4c8edf]&&_0x44a66f[_0x4c8edf]+_0x2a847b<=_0x212deb&&(_0x3d0551['addRange'](_0x318bd5),_0x4544fe=!0x0);}return _0x4544fe;};_0xf73a75['model']['document']['registerPostFixer'](_0x54e986=>{let _0x1443d=!0x1;for(const _0x448f4a of _0xf73a75['model']['document']['differ']['getChanges']())if('insert'==_0x448f4a['type']){if('tableRow'==_0x448f4a['name'])for(const _0x2caf7a of _0x448f4a['position']['nodeAfter']['getChildren']())_0x1443d=_0x1443d||_0x1784f0(_0x2caf7a,_0x54e986);else'tableCell'==_0x448f4a['name']&&(_0x1443d=_0x1443d||_0x1784f0(_0x448f4a['position']['nodeAfter'],_0x54e986));}return _0x1443d;});}['_getSuggestionCoords'](_0x3bca3b){return this['_getCoordsForCells'](_0x3bca3b['getRanges']()['map'](_0xf2ab0=>_0xf2ab0['start']['nodeAfter']));}}function Wt(_0x1e6aaa){return Array['from'](new Set(_0x1e6aaa)['values']());}
23
+ const _0x3e30=['registerCustomCallback','ELEMENT_TABLE_ROW_WITH_TEXT','insertTableRowAbove','low','setSelection','refresh','discard','getSuggestion','nodeAfter','element','minRow','values','start','execute','isTouching','_tablePostFixingSubtypes','colspan','highest','_tableSuggestions','getAttribute','tableCell','span','rowspan','classes','markMultiRangeDeletion','*Insert:*\x20%0','enqueueChange','maxColumn','hasAttribute','map','locale','insert','ELEMENT_TABLE_COLUMN_WITH_TEXT','get','detach','item','above','addClass','substr','tableRow','createTableWalker','getContainedElement','toViewElement','join','addRange','MAX_SAFE_INTEGER','rootName','$graveyard','root','mapper','getChanges','downcastDispatcher','minColumn','removeClass','length','order','ELEMENT_TABLE_COLUMN','enableCommand','change:data','getFirstRange','max','ELEMENT_TABLE_WITH_TEXT','from','table','MIN_SAFE_INTEGER','data','getSelectionAffectedTableCells','_getSuggestionCoords','getRowIndexes','filter','showSuggestionHighlights','getItems','isArray','toLowerCase','commands','plugins','push','forceValue','isEqual','TableUtils','last','afterInit','maxRow','deletion','insertion','getChangedMarkers','TrackChangesEditing','insertTableColumnLeft','accept','_suggestionFactory','registerDescriptionCallback','min','isInContent','oldRange','getCellLocation','createRangeIn','*Remove:*\x20%0','position','insertTableRowBelow','findAncestor','createRangeOn','editor','name','subType','createPositionAt','type','change','includes','batch','left','tableColumn','isIntersectingWithRange','selection','textProxy','insertTableColumnRight','getRanges','tablePaste','_splitMarkerName','suggestion','registerElementLabel','_setupColumnsRowsFixing','ELEMENT_TABLE_ROW','getChildren','getColumnIndexes','removeTableColumn','end','differ','insertTable','ELEMENT_TABLE','first','removeTableRow','_descriptionFactory','document','fromRange','startsWith','addMarker:suggestion','markMultiRangeInsertion','some','cell','model'];(function(_0x15d7c0,_0x3e302c){const _0x18e770=function(_0xe05f06){while(--_0xe05f06){_0x15d7c0['push'](_0x15d7c0['shift']());}};_0x18e770(++_0x3e302c);}(_0x3e30,0xbf));const _0x18e7=function(_0x15d7c0,_0x3e302c){_0x15d7c0=_0x15d7c0-0x0;let _0x18e770=_0x3e30[_0x15d7c0];return _0x18e770;};import{Plugin as _0x113be8}from'ckeditor5/src/core';import{LiveRange as _0x35ce7b}from'ckeditor5/src/engine';import{setHighlightHandling as _0x346de9}from'ckeditor5/src/widget';import{getTranslation as _0x55c1c5}from'../utils/common-translations';export default class ut extends _0x113be8{constructor(_0x433dbe){super(_0x433dbe),this['_tablePostFixingSubtypes']=[_0x18e7('0x80'),'tableColumn'];}[_0x18e7('0x1e')](){const _0x529f95=this[_0x18e7('0x32')],_0x430316=_0x529f95[_0x18e7('0x58')]['document']['selection'];if(!_0x529f95[_0x18e7('0x18')]['has']('TableEditing'))return;const _0x5adf49=_0x529f95[_0x18e7('0x77')],_0x302e26=_0x529f95[_0x18e7('0x18')][_0x18e7('0x7a')](_0x18e7('0x23')),_0x142045=_0x529f95[_0x18e7('0x18')][_0x18e7('0x7a')](_0x18e7('0x1c'));_0x302e26[_0x18e7('0x50')][_0x18e7('0x44')](_0x18e7('0xc'),_0x42e964=>_0x55c1c5(_0x5adf49,_0x18e7('0x4d'),_0x42e964)),this['_setupColumnsRowsFixing'](),_0x302e26[_0x18e7('0x6')](_0x18e7('0x4c')),_0x302e26['enableCommand']('selectTableRow'),_0x302e26['enableCommand']('selectTableColumn');for(const _0x22e7ec of[_0x18e7('0x5b'),_0x18e7('0x2f')]){const _0x362a2f=_0x529f95[_0x18e7('0x17')][_0x18e7('0x7a')](_0x22e7ec);_0x302e26[_0x18e7('0x6')](_0x22e7ec,_0x40ffed=>{_0x529f95['model'][_0x18e7('0x37')](_0x36ab7e=>{_0x40ffed();const _0x5f0e12=_0x18e7('0x7d')===_0x362a2f[_0x18e7('0x4')],_0x2d2a9b=_0x142045[_0x18e7('0xf')](_0x430316),_0x252e53=_0x142045[_0x18e7('0x11')](_0x2d2a9b),_0x971a2c=_0x5f0e12?_0x252e53['first']-0x1:_0x252e53[_0x18e7('0x1d')]+0x1,_0x45e7c1=_0x2d2a9b[0x0]['findAncestor'](_0x18e7('0xc')),_0x377628=_0x142045[_0x18e7('0x81')](_0x45e7c1,{'startRow':_0x971a2c,'endRow':_0x971a2c}),_0x1e792c=Array['from'](_0x377628)[_0x18e7('0x76')](_0x2968be=>_0x36ab7e[_0x18e7('0x31')](_0x2968be[_0x18e7('0x57')]));_0x302e26[_0x18e7('0x55')](_0x1e792c,_0x18e7('0x80'));});});}for(const _0x3f09ef of[_0x18e7('0x24'),_0x18e7('0x3f')]){const _0xf63eb8=_0x529f95[_0x18e7('0x17')][_0x18e7('0x7a')](_0x3f09ef);_0x302e26[_0x18e7('0x6')](_0x3f09ef,_0x2d3444=>{_0x529f95[_0x18e7('0x58')][_0x18e7('0x37')](_0x38fe21=>{_0x2d3444();const _0x1691d6=_0x18e7('0x3a')===_0xf63eb8[_0x18e7('0x4')],_0x280300=_0x142045[_0x18e7('0xf')](_0x430316),_0x560f3f=_0x142045[_0x18e7('0x48')](_0x280300),_0x105202=_0x1691d6?_0x560f3f[_0x18e7('0x4e')]-0x1:_0x560f3f[_0x18e7('0x1d')]+0x1,_0x2d2464=_0x280300[0x0][_0x18e7('0x30')]('table'),_0x168fa7=_0x142045[_0x18e7('0x81')](_0x2d2464,{'startRow':0x0,'column':_0x105202,'includeAllSlots':!0x1}),_0xb38a4c=Array['from'](_0x168fa7)[_0x18e7('0x76')](_0xceda2e=>_0x38fe21[_0x18e7('0x31')](_0xceda2e[_0x18e7('0x57')]));_0x302e26[_0x18e7('0x55')](_0xb38a4c,'tableColumn');});});}for(const _0x12ad9c of[_0x18e7('0x4f'),_0x18e7('0x49')]){const _0x4d1200=_0x12ad9c[_0x18e7('0x7f')](0xb),_0x18353e=_0x4d1200[_0x18e7('0x16')](),_0x31a5f2=_0x18353e[_0x18e7('0x7f')](0x0,0x3)+_0x18e7('0x6e'),_0x401189=_0x18e7('0xc')+_0x4d1200,_0x314beb=_0x18e7('0x28')+_0x4d1200,_0x5aa661='max'+_0x4d1200;_0x302e26[_0x18e7('0x6')](_0x12ad9c,()=>{_0x529f95[_0x18e7('0x58')][_0x18e7('0x37')](_0x37bb84=>{const _0x587f37=_0x142045['getSelectionAffectedTableCells'](_0x430316),_0x26422b=_0x587f37[0x0]['findAncestor']('table');let _0x487f2d;if(_0x18e7('0x4f')==_0x12ad9c){const _0x245df6=_0x142045[_0x18e7('0x11')](_0x587f37);_0x487f2d={'startRow':_0x245df6[_0x18e7('0x4e')],'endRow':_0x245df6[_0x18e7('0x1d')],'includeAllSlots':!0x0};}else{const _0x1fccb7=_0x142045[_0x18e7('0x48')](_0x587f37);_0x487f2d={'startColumn':_0x1fccb7['first'],'endColumn':_0x1fccb7[_0x18e7('0x1d')],'includeAllSlots':!0x0};}const _0x429c52=_0x142045[_0x18e7('0x81')](_0x26422b,_0x487f2d),_0x2cdded=Array[_0x18e7('0xb')](_0x429c52)[_0x18e7('0x76')](({cell:_0x1a6fc4})=>_0x1a6fc4),_0x22a52a=Xt(_0x2cdded[_0x18e7('0x12')](_0x58d43c=>_0x58d43c[_0x18e7('0x75')](_0x31a5f2))),_0x35f483=Xt(_0x2cdded['filter'](_0x597726=>!_0x597726[_0x18e7('0x75')](_0x31a5f2)))[_0x18e7('0x76')](_0x5c2935=>_0x37bb84['createRangeOn'](_0x5c2935)),_0xb51cf5=_0x302e26[_0x18e7('0x71')](_0x35f483,_0x401189);if(_0xb51cf5&&(_0x18e7('0x80')==_0xb51cf5[_0x18e7('0x34')]||'tableColumn'==_0xb51cf5['subType'])){const _0x315d08=this[_0x18e7('0x10')](_0xb51cf5);for(const _0xf0c868 of _0x22a52a){const _0x36ad83=_0x37bb84[_0x18e7('0x31')](_0xf0c868),_0x34e1be=_0x142045[_0x18e7('0x2b')](_0xf0c868),_0x514b99=_0xf0c868['getAttribute'](_0x31a5f2)-0x1,_0x219ee4=_0x315d08[_0x314beb],_0x35e57e=_0x315d08[_0x5aa661];_0x219ee4<=_0x34e1be[_0x18353e]&&_0x34e1be[_0x18353e]+_0x514b99<=_0x35e57e&&_0xb51cf5[_0x18e7('0x85')](_0x36ad83);}}});});}function _0x33e64b(_0x5742bb){const _0xd1b03b=Array[_0x18e7('0xb')](_0x430316['getRanges']())[_0x18e7('0x76')](_0x4a4060=>_0x35ce7b[_0x18e7('0x52')](_0x4a4060));_0x529f95['model']['change'](_0x18cd6e=>{const _0x443fbd=_0x18cd6e[_0x18e7('0x39')];_0x5742bb=_0x5742bb['filter'](_0x545634=>_0x18e7('0x88')!=_0x545634['root']['rootName']),_0x18cd6e[_0x18e7('0x5d')](_0x5742bb),_0x529f95['commands'][_0x18e7('0x7a')](_0x18e7('0x4f'))[_0x18e7('0x5e')](),_0x529f95[_0x18e7('0x66')](_0x18e7('0x4f'),{'forceDefaultExecution':!0x0}),_0x529f95['model'][_0x18e7('0x73')](()=>{_0x529f95[_0x18e7('0x58')][_0x18e7('0x73')](_0x443fbd,_0x2b39d2=>{const _0x457df1=_0xd1b03b['filter'](_0xec4c3c=>'$graveyard'!=_0xec4c3c[_0x18e7('0x89')][_0x18e7('0x87')]);_0x457df1['length']>0x0&&_0x2b39d2['setSelection'](_0x457df1);for(const _0x28f7e8 of _0xd1b03b)_0x28f7e8[_0x18e7('0x7b')]();});});});}function _0x17e19d(_0x2f7b45){_0x529f95[_0x18e7('0x58')][_0x18e7('0x37')](_0x199296=>{const _0x1aabe0=Array[_0x18e7('0xb')](_0x430316[_0x18e7('0x40')]())[_0x18e7('0x76')](_0x30eab2=>_0x35ce7b['fromRange'](_0x30eab2)),_0x5b104a=[];for(const _0xb352f8 of _0x2f7b45)for(const _0x4d0c98 of _0xb352f8['getItems']({'shallow':!0x0}))_0x5b104a[_0x18e7('0x19')](_0x4d0c98);for(const _0x39b4ae of _0x5b104a)'$graveyard'!=_0x39b4ae[_0x18e7('0x89')]['rootName']&&(_0x199296[_0x18e7('0x5d')](_0x199296[_0x18e7('0x35')](_0x39b4ae,0x0)),_0x529f95[_0x18e7('0x17')]['get'](_0x18e7('0x49'))['refresh'](),_0x529f95[_0x18e7('0x66')](_0x18e7('0x49'),{'forceDefaultExecution':!0x0}));const _0x3859ad=_0x1aabe0[_0x18e7('0x12')](_0x48174c=>_0x18e7('0x88')!=_0x48174c[_0x18e7('0x89')][_0x18e7('0x87')]);_0x3859ad[_0x18e7('0x3')]>0x0&&_0x199296[_0x18e7('0x5d')](_0x3859ad);for(const _0x16b907 of _0x1aabe0)_0x16b907[_0x18e7('0x7b')]();});}function _0x32aa0a(_0x5f445d,_0x4418dd){return _0x4418dd['every'](_0x80ec22=>_0x5f445d[_0x18e7('0x56')](_0x3141fa=>_0x3141fa[_0x18e7('0x4a')][_0x18e7('0x1b')](_0x80ec22[_0x18e7('0x65')])||_0x80ec22[_0x18e7('0x4a')]['isEqual'](_0x3141fa[_0x18e7('0x65')])));}function _0xdb2ab5(_0x48b076,_0x5e0547){return _0x48b076['some'](_0x5c159d=>_0x5e0547[_0x18e7('0x56')](_0x204d17=>_0x5c159d[_0x18e7('0x4a')][_0x18e7('0x67')](_0x204d17['start'])));}_0x529f95[_0x18e7('0xe')][_0x18e7('0x0')]['on'](_0x18e7('0x54'),(_0x748dc3,_0x4299f2,_0x3e3154)=>{if(!_0x3e3154['options'][_0x18e7('0x13')])return;const _0x22137f=_0x4299f2[_0x18e7('0x7c')];if(!_0x22137f)return;const _0x41a5a6=_0x3e3154[_0x18e7('0x8a')][_0x18e7('0x83')](_0x22137f);function _0x10d711(_0x5b756f){return Array[_0x18e7('0x15')](_0x5b756f)?_0x5b756f:[_0x5b756f];}_0x41a5a6&&_0x18e7('0x6d')===_0x22137f[_0x18e7('0x33')]&&_0x346de9(_0x41a5a6,_0x3e3154['writer'],(_0x4f0bf0,_0x114bc7,_0x526e40)=>_0x526e40[_0x18e7('0x7e')](_0x10d711(_0x114bc7[_0x18e7('0x70')]),_0x4f0bf0),(_0x498dc9,_0x588c0c,_0x1733d2)=>_0x1733d2[_0x18e7('0x2')](_0x10d711(_0x588c0c[_0x18e7('0x70')]),_0x498dc9));},{'priority':_0x18e7('0x6a')}),_0x302e26[_0x18e7('0x50')][_0x18e7('0x27')](_0x53aa51=>{if(_0x18e7('0x21')!=_0x53aa51[_0x18e7('0x36')]&&_0x18e7('0x20')!=_0x53aa51['type'])return;const _0x2a6093=_0x53aa51[_0x18e7('0x82')]();if(null!=_0x2a6093&&_0x2a6093['is'](_0x18e7('0x62'),_0x18e7('0xc'))){if(_0x18e7('0x21')==_0x53aa51['type']){const _0x2386da=_0x53aa51[_0x18e7('0x14')]()[_0x18e7('0x12')](_0x32d761=>_0x32d761['is'](_0x18e7('0x3e')))['map'](_0x45fde3=>_0x45fde3[_0x18e7('0xe')]);if(_0x2386da[_0x18e7('0x3')])return{'type':'insertion','content':_0x55c1c5(_0x5adf49,_0x18e7('0x72'),_0x55c1c5(_0x5adf49,_0x18e7('0xa'),'\x22'+_0x2386da[_0x18e7('0x84')]('\x20')+'\x22'))};}if('deletion'==_0x53aa51[_0x18e7('0x36')]){const _0x2717f1=_0x53aa51[_0x18e7('0x14')]()[_0x18e7('0x12')](_0x3daeba=>_0x3daeba['is'](_0x18e7('0x3e')))[_0x18e7('0x76')](_0x5b96be=>_0x5b96be[_0x18e7('0xe')]);if(_0x2717f1[_0x18e7('0x3')])return{'type':_0x18e7('0x20'),'content':_0x55c1c5(_0x5adf49,_0x18e7('0x2d'),_0x55c1c5(_0x5adf49,_0x18e7('0xa'),'\x22'+_0x2717f1[_0x18e7('0x84')]('\x20')+'\x22'))};}}}),_0x302e26['_descriptionFactory'][_0x18e7('0x27')](_0x3fff8f=>{if(_0x18e7('0x80')==_0x3fff8f[_0x18e7('0x34')]){const _0x2fef6b=_0x3fff8f[_0x18e7('0x14')]()[_0x18e7('0x12')](_0x54f0ed=>_0x54f0ed['is']('textProxy'))['map'](_0x5c87be=>_0x5c87be[_0x18e7('0xe')]),_0x1bb97b=this[_0x18e7('0x10')](_0x3fff8f),_0x1c630a=_0x1bb97b[_0x18e7('0x1f')]-_0x1bb97b[_0x18e7('0x63')]+0x1;if(_0x18e7('0x21')==_0x3fff8f[_0x18e7('0x36')])return _0x2fef6b[_0x18e7('0x3')]?{'type':'insertion','content':_0x55c1c5(_0x5adf49,_0x18e7('0x72'),_0x55c1c5(_0x5adf49,_0x18e7('0x5a'),[_0x1c630a,'\x22'+_0x2fef6b[_0x18e7('0x84')]('\x20')+'\x22']))}:{'type':_0x18e7('0x21'),'content':_0x55c1c5(_0x5adf49,_0x18e7('0x72'),_0x55c1c5(_0x5adf49,_0x18e7('0x46'),_0x1c630a))};if('deletion'==_0x3fff8f[_0x18e7('0x36')])return _0x2fef6b['length']?{'type':'deletion','content':_0x55c1c5(_0x5adf49,'*Remove:*\x20%0',_0x55c1c5(_0x5adf49,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c630a,'\x22'+_0x2fef6b['join']('\x20')+'\x22']))}:{'type':_0x18e7('0x20'),'content':_0x55c1c5(_0x5adf49,'*Remove:*\x20%0',_0x55c1c5(_0x5adf49,'ELEMENT_TABLE_ROW',_0x1c630a))};}if(_0x18e7('0x3b')==_0x3fff8f['subType']){const _0x5b52c9=_0x3fff8f[_0x18e7('0x14')]()['filter'](_0x22c911=>_0x22c911['is']('textProxy'))[_0x18e7('0x76')](_0x19530f=>_0x19530f['data']),_0x59735e=this[_0x18e7('0x10')](_0x3fff8f),_0x42be7f=_0x59735e[_0x18e7('0x74')]-_0x59735e[_0x18e7('0x1')]+0x1;if(_0x18e7('0x21')==_0x3fff8f[_0x18e7('0x36')])return _0x5b52c9['length']?{'type':'insertion','content':_0x55c1c5(_0x5adf49,_0x18e7('0x72'),_0x55c1c5(_0x5adf49,_0x18e7('0x79'),[_0x42be7f,'\x22'+_0x5b52c9[_0x18e7('0x84')]('\x20')+'\x22']))}:{'type':_0x18e7('0x21'),'content':_0x55c1c5(_0x5adf49,_0x18e7('0x72'),_0x55c1c5(_0x5adf49,_0x18e7('0x5'),_0x42be7f))};if(_0x18e7('0x20')==_0x3fff8f['type'])return _0x5b52c9[_0x18e7('0x3')]?{'type':_0x18e7('0x20'),'content':_0x55c1c5(_0x5adf49,_0x18e7('0x2d'),_0x55c1c5(_0x5adf49,_0x18e7('0x79'),[_0x42be7f,'\x22'+_0x5b52c9[_0x18e7('0x84')]('\x20')+'\x22']))}:{'type':_0x18e7('0x20'),'content':_0x55c1c5(_0x5adf49,_0x18e7('0x2d'),_0x55c1c5(_0x5adf49,'ELEMENT_TABLE_COLUMN',_0x42be7f))};}}),_0x302e26['_suggestionFactory'][_0x18e7('0x59')]('insertion',_0x18e7('0x80'),_0x18e7('0x5f'),_0x33e64b),_0x302e26[_0x18e7('0x26')][_0x18e7('0x59')](_0x18e7('0x20'),_0x18e7('0x80'),'accept',_0x33e64b),_0x302e26['_suggestionFactory'][_0x18e7('0x59')](_0x18e7('0x21'),'tableColumn',_0x18e7('0x5f'),_0x17e19d),_0x302e26['_suggestionFactory'][_0x18e7('0x59')](_0x18e7('0x20'),_0x18e7('0x3b'),_0x18e7('0x25'),_0x17e19d),_0x302e26[_0x18e7('0x26')][_0x18e7('0x59')]('insertion',_0x18e7('0x3b'),_0x18e7('0x84'),_0x32aa0a),_0x302e26[_0x18e7('0x26')][_0x18e7('0x59')](_0x18e7('0x20'),'tableColumn',_0x18e7('0x84'),_0x32aa0a),_0x302e26[_0x18e7('0x26')]['registerCustomCallback'](_0x18e7('0x21'),_0x18e7('0x80'),_0x18e7('0x84'),_0xdb2ab5),_0x302e26[_0x18e7('0x26')][_0x18e7('0x59')](_0x18e7('0x20'),'tableRow',_0x18e7('0x84'),_0xdb2ab5);}['_acceptFormatSuggestionCallbackFactory'](){const _0x26500f=this[_0x18e7('0x32')],_0x29c868=_0x26500f[_0x18e7('0x58')]['document'][_0x18e7('0x3d')];return(_0x5f4b35,_0xa93590)=>{_0x26500f[_0x18e7('0x58')][_0x18e7('0x37')](_0x52c7a2=>{const {commandName:_0x2f101b,commandParams:_0xeec3a3}=_0xa93590;let _0x26c6d4=_0x5f4b35[0x0]['end']['nodeBefore'];_0xeec3a3&&_0xeec3a3[0x0]&&!0x1===_0xeec3a3[0x0][_0x18e7('0x1a')]&&(_0x26c6d4=_0x5f4b35[0x0][_0x18e7('0x65')][_0x18e7('0x61')]);const _0x2435fc=_0x52c7a2[_0x18e7('0x2c')](_0x26c6d4);if(_0x18e7('0x88')==_0x2435fc[_0x18e7('0x89')]['rootName'])return;const _0x38c47b=Array['from'](_0x29c868[_0x18e7('0x40')]())[_0x18e7('0x76')](_0x4acbae=>_0x35ce7b[_0x18e7('0x52')](_0x4acbae));_0x52c7a2[_0x18e7('0x5d')](_0x2435fc),_0x26500f[_0x18e7('0x17')][_0x18e7('0x7a')](_0x2f101b)['refresh'](),_0xeec3a3['push']({'forceDefaultExecution':!0x0}),_0x26500f[_0x18e7('0x66')](_0x2f101b,..._0xeec3a3);const _0x354372=_0x38c47b['filter'](_0x37425e=>_0x18e7('0x88')!=_0x37425e[_0x18e7('0x89')][_0x18e7('0x87')]);_0x354372[_0x18e7('0x3')]>0x0&&_0x52c7a2[_0x18e7('0x5d')](_0x354372);for(const _0x17c42c of _0x38c47b)_0x17c42c[_0x18e7('0x7b')]();});};}['_getCoordsForCells'](_0x35251b){const _0x109efb=this[_0x18e7('0x32')][_0x18e7('0x18')][_0x18e7('0x7a')]('TableUtils');let _0x17cd80=Number[_0x18e7('0x86')],_0x40d741=Number[_0x18e7('0xd')],_0x2f5b94=Number['MAX_SAFE_INTEGER'],_0x46cebd=Number['MIN_SAFE_INTEGER'];for(const _0x248c2c of _0x35251b){if(_0x18e7('0x88')==_0x248c2c['root'][_0x18e7('0x87')])continue;const {row:_0x594217,column:_0x2a3d08}=_0x109efb[_0x18e7('0x2b')](_0x248c2c),_0xba7e8d=_0x248c2c[_0x18e7('0x75')](_0x18e7('0x6f'))?_0x248c2c[_0x18e7('0x6c')](_0x18e7('0x6f'))-0x1:0x0,_0x592280=_0x248c2c[_0x18e7('0x75')](_0x18e7('0x69'))?_0x248c2c[_0x18e7('0x6c')](_0x18e7('0x69'))-0x1:0x0;_0x17cd80=_0x594217<_0x17cd80?_0x594217:_0x17cd80,_0x40d741=_0x594217+_0xba7e8d>_0x40d741?_0x594217+_0xba7e8d:_0x40d741,_0x2f5b94=_0x2a3d08<_0x2f5b94?_0x2a3d08:_0x2f5b94,_0x46cebd=_0x2a3d08+_0x592280>_0x46cebd?_0x2a3d08+_0x592280:_0x46cebd;}return{'minRow':_0x17cd80,'maxRow':_0x40d741,'minColumn':_0x2f5b94,'maxColumn':_0x46cebd};}[_0x18e7('0x45')](){const _0x17b280=this[_0x18e7('0x32')],_0x54ba74=_0x17b280[_0x18e7('0x18')][_0x18e7('0x7a')](_0x18e7('0x23')),_0x57e2b0=_0x17b280[_0x18e7('0x18')][_0x18e7('0x7a')](_0x18e7('0x1c'));this[_0x18e7('0x6b')]=new Set(),_0x17b280[_0x18e7('0x58')][_0x18e7('0x51')]['on'](_0x18e7('0x7'),()=>{const _0x43bc15=Array[_0x18e7('0xb')](_0x17b280[_0x18e7('0x58')][_0x18e7('0x51')][_0x18e7('0x4b')][_0x18e7('0x22')]());for(const {name:_0x2ebabb,data:_0x478ced}of _0x43bc15){const {group:_0xf97245,id:_0x3798c4,subType:_0x567909}=_0x54ba74[_0x18e7('0x42')](_0x2ebabb);if(_0x18e7('0x43')!=_0xf97245)continue;if(null!=_0x478ced[_0x18e7('0x2a')])continue;const _0xf53728=_0x54ba74[_0x18e7('0x60')](_0x3798c4);this[_0x18e7('0x68')][_0x18e7('0x38')](_0x567909)&&this[_0x18e7('0x6b')]['add'](_0xf53728);}},{'priority':_0x18e7('0x5c')});const _0x5828f0=(_0x15ec21,_0x22b1eb)=>{let _0x253c0a=!0x1;const _0x3900b0=_0x22b1eb['createRangeOn'](_0x15ec21),_0x732c33=_0x15ec21['findAncestor'](_0x18e7('0xc')),_0x1775e7=_0x57e2b0[_0x18e7('0x2b')](_0x15ec21);for(const _0x363a9 of this['_tableSuggestions']){const _0xc03354=_0x363a9[_0x18e7('0x34')],_0x467c31=_0xc03354[_0x18e7('0x53')](_0x18e7('0x41')),_0x4a6e3b=_0xc03354[_0x18e7('0x7f')](_0x467c31?0xa:0x5),_0x55a16c=_0x4a6e3b[_0x18e7('0x16')](),_0x2e659a=_0x55a16c[_0x18e7('0x7f')](0x0,0x3)+'span',_0x155d32=_0x18e7('0x28')+_0x4a6e3b,_0x36b03a=_0x18e7('0x9')+_0x4a6e3b;if(!_0x363a9[_0x18e7('0x29')])continue;if(_0x732c33!=_0x363a9[_0x18e7('0x8')]()['start'][_0x18e7('0x30')](_0x18e7('0xc')))continue;if(_0x363a9[_0x18e7('0x3c')](_0x3900b0))continue;const _0x51b4be=_0x15ec21[_0x18e7('0x75')](_0x2e659a)?_0x15ec21[_0x18e7('0x6c')](_0x2e659a)-0x1:0x0,_0x2e3a55=this[_0x18e7('0x10')](_0x363a9),_0xcc0329=_0x2e3a55[_0x155d32],_0x11480b=_0x2e3a55[_0x36b03a];_0xcc0329<=_0x1775e7[_0x55a16c]&&_0x1775e7[_0x55a16c]+_0x51b4be<=_0x11480b&&(_0x363a9[_0x18e7('0x85')](_0x3900b0),_0x253c0a=!0x0);}return _0x253c0a;};_0x17b280['model'][_0x18e7('0x51')]['registerPostFixer'](_0x28aa85=>{let _0x413336=!0x1;for(const _0x181760 of _0x17b280[_0x18e7('0x58')][_0x18e7('0x51')][_0x18e7('0x4b')][_0x18e7('0x8b')]())if(_0x18e7('0x78')==_0x181760['type']){if('tableRow'==_0x181760[_0x18e7('0x33')])for(const _0x5c7089 of _0x181760[_0x18e7('0x2e')][_0x18e7('0x61')][_0x18e7('0x47')]())_0x413336=_0x413336||_0x5828f0(_0x5c7089,_0x28aa85);else _0x18e7('0x6d')==_0x181760[_0x18e7('0x33')]&&(_0x413336=_0x413336||_0x5828f0(_0x181760['position'][_0x18e7('0x61')],_0x28aa85));}return _0x413336;});}['_getSuggestionCoords'](_0x5d56a3){return this['_getCoordsForCells'](_0x5d56a3['getRanges']()[_0x18e7('0x76')](_0x2d6026=>_0x2d6026[_0x18e7('0x65')]['nodeAfter']));}}function Xt(_0x27bd91){return Array[_0x18e7('0xb')](new Set(_0x27bd91)[_0x18e7('0x64')]());}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3d7cdb}from'ckeditor5/src/core';import ot from'./table';import{uid as _0x3f5be4,priorities as _0x33f962}from'ckeditor5/src/utils';const ne=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],oe=Object['fromEntries'](ne['map'](_0x45ce69=>[_0x45ce69,null]));export default class ct extends _0x3d7cdb{static get['requires'](){return[ot];}['afterInit'](){const _0x3fb620=this['editor'];if(!_0x3fb620['plugins']['has']('TableClipboard'))return;const {t:t}=_0x3fb620['locale'],_0x22fb9e=_0x3fb620['plugins']['get']('TrackChangesEditing'),_0x79d9b=_0x3fb620['plugins']['get']('TableUtils'),_0x460385=_0x3fb620['plugins']['get'](ot),_0xf4d5d3=_0x3fb620['plugins']['get']('TableClipboard');_0x460385['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3fb620['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3fb620['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x453ac9=null;_0x3fb620['model']['on']('insertContent',(_0x33c02a,_0x5e689e)=>{const [_0xc584d7,_0x4a8be4]=_0x5e689e,_0xa79e1b=_0x5e689e[_0x5e689e['length']-0x1];_0xa79e1b&&_0xa79e1b['forceDefaultExecution']||_0x22fb9e['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x8855c6,_0x2bdfa0,_0x596830,_0x945f63,_0x1a554e){if(_0x2bdfa0&&!_0x2bdfa0['is']('documentSelection'))return!0x1;const _0x411438=_0x1a554e['getTableIfOnlyTableInContent'](_0x8855c6,_0x596830);if(!_0x411438||!se(_0x411438,null,_0x945f63))return!0x1;const _0x528766=_0x945f63['getSelectionAffectedTableCells'](_0x596830['document']['selection']);if(!_0x528766['length'])return!0x1;const _0x14c534=_0x528766[0x0]['findAncestor']('table'),_0x517912=_0x945f63['getRowIndexes'](_0x528766),_0x2b8d19=_0x945f63['getColumnIndexes'](_0x528766),_0x1c11cd={'startRow':_0x517912['first'],'endRow':_0x517912['last'],'startColumn':_0x2b8d19['first'],'endColumn':_0x2b8d19['last']};return 0x1==_0x528766['length']&&(_0x1c11cd['endRow']+=_0x945f63['getRows'](_0x411438)-0x1,_0x1c11cd['endColumn']+=_0x945f63['getColumns'](_0x411438)-0x1),se(_0x14c534,_0x1c11cd,_0x945f63);}(_0xc584d7,_0x4a8be4,_0x3fb620['model'],_0x79d9b,_0xf4d5d3)&&(_0x33c02a['stop'](),_0x453ac9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3fb620['model']['change'](()=>{_0x3fb620['model']['insertContent'](_0x5e689e[0x0],_0x5e689e[0x1],_0x5e689e[0x2],_0x5e689e[0x3],{'forceDefaultExecution':!0x0});const _0x5776b3=_0x3f5be4(),{rowInsertionRanges:_0x64817e,columnInsertionRanges:_0x43fd65,insertionRanges:_0x36e18c,deletionRanges:_0x1c2b40,cells:_0x582797}=_0x453ac9;_0x64817e['length']&&_0x22fb9e['markMultiRangeInsertion'](_0x64817e,'tablePasteRow',{'tablePasteChainId':_0x5776b3}),_0x43fd65['length']&&_0x22fb9e['markMultiRangeInsertion'](_0x43fd65,'tablePasteColumn',{'tablePasteChainId':_0x5776b3}),_0x36e18c['length']&&_0x22fb9e['markMultiRangeInsertion'](_0x36e18c,'tablePaste',{'tablePasteChainId':_0x5776b3,'skipNestingCheck':!0x0}),_0x1c2b40['length']&&_0x22fb9e['markMultiRangeDeletion'](_0x1c2b40,'tablePaste',{'tablePasteChainId':_0x5776b3,'skipNestingCheck':!0x0});const _0x41bed7=_0x22fb9e['markMultiRangeBlockFormat'](_0x582797['map'](({element:_0x3cddc2})=>_0x3cddc2),{'formatGroupId':_0x3f5be4()},[],'tablePasteCell',{'tablePasteChainId':_0x5776b3});if(_0x41bed7){const _0x2cb378=_0x41bed7['getMarkers'](),_0x27dc23=[];for(const {element:_0x3721c7,attributes:_0x428540}of _0x582797){if(!_0x428540)continue;const _0xd72fd9=_0x3fb620['model']['createRangeOn'](_0x3721c7),_0x119676=_0x2cb378['find'](_0x308e8b=>_0x308e8b['getRange']()['isEqual'](_0xd72fd9));_0x119676&&_0x27dc23['push']([_0x119676['name'],_0x428540]);}_0x27dc23['length']&&_0x41bed7['setAttribute']('markerAttributes',Object['fromEntries'](_0x27dc23));}_0x453ac9=null;}));},{'priority':_0x33f962['high']+0xa}),_0x3fb620['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x115b62,_0x4cc9f7)=>{const [_0x4de270,_0x52e52d,,_0x5534f8]=_0x4cc9f7;if(!_0x453ac9)return;_0x115b62['stop']();const _0x37e9a0=_0x4de270['cell'],_0x651152=_0x52e52d,_0xb789bb=le(_0x37e9a0),_0x555fcb=le(_0x651152);_0x115b62['return']=_0x37e9a0;let _0x296fe7=null,_0xa094a4=null;if(_0x555fcb||_0xb789bb){if(_0xb789bb&&!_0x555fcb){_0x5534f8['remove'](_0x37e9a0['getChild'](0x0));for(const _0x408d1e of Array['from'](_0x651152['getChildren']()))_0x5534f8['insert'](_0x408d1e,_0x37e9a0,'end');const _0xa19dea=_0x453ac9['rowInsertionIndexes']['includes'](_0x4de270['row']),_0x43cc03=_0x453ac9['columnInsertionIndexes']['includes'](_0x4de270['column']);_0xa19dea||_0x43cc03||(_0x296fe7=_0x5534f8['createRangeIn'](_0x37e9a0));}else _0x555fcb&&!_0xb789bb&&(_0xa094a4=_0x5534f8['createRangeIn'](_0x37e9a0));}else{const _0x18c58b=_0x5534f8['createElement']('tableCellSuggestion'),_0x4c4971=_0x5534f8['createElement']('tableCellSuggestion');_0x5534f8['wrap'](_0x5534f8['createRangeIn'](_0x37e9a0),_0x4c4971),_0x5534f8['insert'](_0x18c58b,_0x37e9a0,0x0);for(const _0x27b692 of Array['from'](_0x651152['getChildren']()))_0x5534f8['insert'](_0x27b692,_0x18c58b,'end');_0x296fe7=_0x5534f8['createRangeOn'](_0x18c58b),_0xa094a4=_0x5534f8['createRangeOn'](_0x4c4971);}const _0x1949b6=Array['from'](_0x651152['getAttributes']())['filter'](([_0xe92bbd])=>ne['includes'](_0xe92bbd));_0x453ac9['cells']['push']({'element':_0x37e9a0,'attributes':_0x1949b6['length']?Object['fromEntries'](_0x1949b6):null}),_0x296fe7&&_0x453ac9['insertionRanges']['push'](_0x296fe7),_0xa094a4&&_0x453ac9['deletionRanges']['push'](_0xa094a4);},{'priority':'high'}),_0x79d9b['on']('insertColumns',(_0x43accc,_0x4846a1)=>{const [_0x498fdd,_0x541720={}]=_0x4846a1;if(!_0x453ac9)return;const _0x2d2f43=_0x541720['at']||0x0,_0xaa0513=_0x541720['columns']||0x1;_0x453ac9['columnInsertionIndexes']=new Array(_0xaa0513)['fill'](_0x2d2f43)['map']((_0xc1ca2,_0x4e88ce)=>_0xc1ca2+_0x4e88ce);for(const {cell:_0x300d07}of _0x79d9b['createTableWalker'](_0x498fdd,{'startColumn':_0x2d2f43,'endColumn':_0x2d2f43+_0xaa0513-0x1}))_0x453ac9['columnInsertionRanges']['push'](_0x3fb620['model']['createRangeOn'](_0x300d07));},{'priority':'low'}),_0x79d9b['on']('insertRows',(_0x21abfe,_0x3ba5c3)=>{const [_0x4a5ebe,_0x379142={}]=_0x3ba5c3;if(!_0x453ac9)return;const _0x487c91=_0x379142['at']||0x0,_0x217485=_0x379142['rows']||0x1;_0x453ac9['rowInsertionIndexes']=new Array(_0x217485)['fill'](_0x487c91)['map']((_0x305ff6,_0x456658)=>_0x305ff6+_0x456658);for(const {cell:_0x5a317d}of _0x79d9b['createTableWalker'](_0x4a5ebe,{'startRow':_0x487c91,'endRow':_0x487c91+_0x217485-0x1}))_0x453ac9['rowInsertionRanges']['push'](_0x3fb620['model']['createRangeOn'](_0x5a317d));},{'priority':'low'}),_0x22fb9e['_descriptionFactory']['registerDescriptionCallback'](_0x1d660e=>{if(_0x1d660e['subType']&&_0x1d660e['subType']['startsWith']('tablePaste'))return _0x1d660e['previous']?{}:{'type':'insertion','content':t('*Replace\x20table\x20cells*')};});const _0x7d92b2=()=>{};for(const _0x1e91dd of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x22fb9e['_suggestionFactory']['registerCustomCallback']('insertion',_0x1e91dd,'join',_0x7d92b2),_0x22fb9e['_suggestionFactory']['registerCustomCallback']('deletion',_0x1e91dd,'join',_0x7d92b2);_0x22fb9e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x7d92b2),_0x22fb9e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1d7d10,_0x447937,_0x5d87d8)=>{const _0x4c1007=_0x1d7d10['map'](_0x4683a9=>_0x4683a9['getContainedElement']())['filter'](_0x31ef67=>_0x31ef67),_0x5390cb=new Map(_0x4c1007['map'](_0x235fbb=>[_0x235fbb,null]));if(_0x453ac9)for(const {element:_0x559ad8,attributes:_0x4cfcaa}of _0x453ac9['cells'])_0x4cfcaa&&_0x5390cb['set'](_0x559ad8,_0x4cfcaa);else{if(_0x5d87d8&&_0x5d87d8['markerAttributes'])for(const [_0x14135,_0xd8c2ec]of Object['entries'](_0x5d87d8['markerAttributes'])){const _0x4b6c19=_0x3fb620['model']['markers']['get'](_0x14135),_0x4086c2=_0x4b6c19?_0x4b6c19['getRange']()['getContainedElement']():null;_0x4086c2&&_0x5390cb['set'](_0x4086c2,_0xd8c2ec);}}_0x3fb620['model']['change'](_0x5ae6ea=>{for(const [_0x17a6c4,_0x17ba87]of _0x5390cb)_0x5ae6ea['setAttributes']({...oe,..._0x17ba87},_0x17a6c4);});});const _0x177a80=(_0x6e09c4,_0x136a97)=>{_0x22fb9e['_suggestionFactory']['registerCustomCallback'](_0x6e09c4,'tablePaste',_0x136a97,(_0x5a86c4,_0x56b4e0,_0x1ce978)=>{_0x3fb620['model']['change'](_0x408896=>{const _0x30788c=[];for(const _0x444fce of _0x5a86c4){const _0x4e203=_0x444fce['start']['nodeAfter'];_0x4e203['is']('element','tableCellSuggestion')&&_0x30788c['push'](_0x4e203);}_0x22fb9e['_suggestionFactory']['getSuggestionCallback'](_0x6e09c4,null,_0x136a97)(_0x5a86c4,_0x56b4e0,_0x1ce978);for(const _0x5e6c59 of _0x30788c)'$graveyard'!=_0x5e6c59['root']['rootName']&&_0x408896['unwrap'](_0x5e6c59);});});};_0x177a80('insertion','accept'),_0x177a80('insertion','discard'),_0x177a80('deletion','accept'),_0x177a80('deletion','discard'),_0x22fb9e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x29bb38=>{const _0x327d09=_0x29bb38['map'](_0x2a2bbd=>_0x2a2bbd['getContainedElement']()),_0x4fb17b=_0x327d09[0x0]['findAncestor']('table'),{minRow:_0x19fb68,maxRow:_0x2eb807}=_0x460385['_getCoordsForCells'](_0x327d09);_0x79d9b['removeRows'](_0x4fb17b,{'at':_0x19fb68,'rows':_0x2eb807-_0x19fb68+0x1});}),_0x22fb9e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3ea0c0=>{const _0x326f2d=_0x3ea0c0['map'](_0x237b3b=>_0x237b3b['getContainedElement']()),_0x28c2e3=_0x326f2d[0x0]['findAncestor']('table'),{minColumn:_0x21a3dc,maxColumn:_0x1c484c}=_0x460385['_getCoordsForCells'](_0x326f2d);_0x79d9b['removeColumns'](_0x28c2e3,{'at':_0x21a3dc,'columns':_0x1c484c-_0x21a3dc+0x1});});const _0x3208a7=(_0x57b8f,_0x2fff17)=>{if(!_0x2fff17['subType']||!_0x2fff17['subType']['startsWith']('tablePaste'))return;const _0x2a75d1=_0x2fff17['attributes']['tablePasteChainId'],_0xa59393=_0x22fb9e['getSuggestions']()['filter'](_0x19c72d=>_0x19c72d['isInContent']&&_0x19c72d['attributes']&&_0x19c72d['attributes']['tablePasteChainId']==_0x2a75d1);_0xa59393['length']&&_0x2fff17['getAllAdjacentSuggestions']()['length']!=_0xa59393['length']&&_0xa59393['reduce']((_0x19af44,_0xc46a0a)=>(_0x19af44['next']=_0xc46a0a,_0xc46a0a['previous']=_0x19af44,_0xc46a0a));};function _0x2f9d52(_0x34a502,{showActiveMarker:_0x5ce816=!0x0}={}){const {id:_0x32a8e4}=_0x22fb9e['_splitMarkerName'](_0x34a502['markerName']),_0x2b3432=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1a886f=_0x22fb9e['activeMarkers']['includes'](_0x34a502['markerName']);return _0x1a886f&&_0x2b3432['push']('ck-suggestion-marker--active'),{'classes':_0x2b3432,'attributes':{'data-suggestion':_0x32a8e4},'priority':_0x1a886f&&_0x5ce816?0xbc2:0xbb8};}_0x22fb9e['on']('suggestionLoaded',_0x3208a7,{'priority':'high'}),_0x22fb9e['on']('suggestionUnloaded',_0x3208a7,{'priority':'high'}),_0x3fb620['model']['document']['registerPostFixer'](()=>{let _0x58b7cd=!0x1;const _0x4d13ac=Array['from'](_0x3fb620['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x195bd8,data:_0x26c4e4}of _0x4d13ac){const {group:_0x1472e9,type:_0x1a0ad4,id:_0x40a01e}=_0x22fb9e['_splitMarkerName'](_0x195bd8);if('suggestion'!=_0x1472e9||'deletion'!=_0x1a0ad4||_0x26c4e4['oldRange'])continue;if(!_0x22fb9e['hasSuggestion'](_0x40a01e))continue;const _0x561181=_0x22fb9e['getSuggestion'](_0x40a01e)['getRanges'](),_0x5443cf=_0x3fb620['plugins']['get']('Users')['me'];for(const _0x3f84e6 of _0x22fb9e['getSuggestions']()){if(!_0x3f84e6['isInContent']||_0x3f84e6['author']!=_0x5443cf)continue;if('formatBlock'!=_0x3f84e6['type']||'tablePasteCell'!=_0x3f84e6['subType'])continue;if(_0x3f84e6['getRanges']()['every'](_0x5f144a=>_0x561181['some'](_0x4347b8=>_0x4347b8['containsRange'](_0x5f144a,!0x0))))for(const _0x155a94 of _0x3f84e6['getAllAdjacentSuggestions']())_0x155a94['isInContent']&&(_0x155a94['discard'](),_0x58b7cd=!0x0);}}return _0x58b7cd;}),_0x3fb620['model']['document']['registerPostFixer'](_0x5781f4=>{const _0x297b85=_0x3fb620['commands']['get']('redo');if(!_0x297b85||!_0x297b85['_createdBatches']['has'](_0x5781f4['batch']))return!0x1;let _0x2deb51=!0x1;const _0x5676da=_0x3fb620['plugins']['get']('Users')['me'],_0x1a7ce1=_0x3fb620['model']['document']['differ']['getChanges'](),_0x775876=Array['from'](_0x3fb620['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x31ccab,data:_0x19ac2d})=>{const {group:_0x55385c,subType:_0x52189f,authorId:_0x49c0d1}=_0x22fb9e['_splitMarkerName'](_0x31ccab);return'suggestion'==_0x55385c&&'tablePaste'==_0x52189f&&_0x49c0d1==_0x5676da['id']&&!_0x19ac2d['oldRange'];});for(const _0x9115e7 of _0x1a7ce1){if('insert'!=_0x9115e7['type']||'tableCellSuggestion'!=_0x9115e7['name']||0x1!=_0x9115e7['length'])continue;const _0x571716=_0x5781f4['createRange'](_0x9115e7['position'],_0x9115e7['position']['getShiftedBy'](0x1));if(!_0x775876['find'](({data:_0xd33b6c})=>_0xd33b6c['newRange']['isEqual'](_0x571716)))for(const {name:_0x11ea2a,data:_0x117b8a}of _0x775876)if(_0x571716['containsRange'](_0x117b8a['newRange'])){_0x5781f4['updateMarker'](_0x11ea2a,{'range':_0x571716}),_0x2deb51=!0x0;break;}}return _0x2deb51;}),_0x3fb620['model']['document']['registerPostFixer'](_0x319224=>{let _0x21032e=!0x1;const _0x209645=_0x3fb620['plugins']['get']('Users')['me'],_0x3bbcd0=_0x22fb9e['getSuggestions']()['filter'](_0x21a052=>_0x21a052['isInContent']&&_0x21a052['author']==_0x209645),_0x4706d0=new Set(),_0x4d83e9=new Set();for(const _0xee0849 of _0x3bbcd0)if('tablePaste'==_0xee0849['subType'])for(const _0x3693fd of _0xee0849['getMarkers']()){const _0x2b25af=_0x3693fd['getRange']()['getContainedElement']();if(_0x2b25af){if(_0x2b25af['is']('element','tableCellSuggestion')&&le(_0x2b25af)){_0xee0849['removeMarker'](_0x3693fd['name']),_0x4706d0['add'](_0x2b25af),_0x21032e=!0x0;const _0x5c5579=_0x2b25af['nextSibling'],_0x514c9b=_0x2b25af['previousSibling'],_0x2daea8=_0x5c5579&&_0x5c5579['is']('element','tableCellSuggestion'),_0x38f361=_0x514c9b&&_0x514c9b['is']('element','tableCellSuggestion');_0x2daea8&&!_0x4706d0['has'](_0x5c5579)&&_0x4d83e9['add'](_0x5c5579),_0x38f361&&!_0x4706d0['has'](_0x514c9b)&&_0x4d83e9['add'](_0x514c9b);}else _0x2b25af['is']('element','paragraph')&&_0x2b25af['isEmpty']&&(_0xee0849['removeMarker'](_0x3693fd['name']),_0x21032e=!0x0);}}else{if('tablePasteCell'==_0xee0849['subType']){if(!_0xee0849['attributes']||!_0xee0849['attributes']['tablePasteChainId'])continue;const _0x2cd95c=_0xee0849['attributes']['markerAttributes'];if(_0x2cd95c&&Object['keys'](_0x2cd95c)['length'])continue;const _0x4da79d=_0xee0849['attributes']['tablePasteChainId'];let _0x20aeae=!0x0,_0x37770c=!0x0;for(const _0x10f012 of _0x3bbcd0)if(_0x10f012['subType']&&_0x10f012['subType']['startsWith']('tablePaste')){if(!_0x10f012['attributes']['tablePasteChainId']){_0x37770c=!0x1;break;}if(_0x10f012['id']!=_0xee0849['id']&&_0x10f012['attributes']['tablePasteChainId']==_0x4da79d){_0x20aeae=!0x1;break;}}_0x37770c&&_0x20aeae&&(_0xee0849['removeMarkers'](),_0x21032e=!0x0);}}for(const _0x1e695d of _0x4706d0)_0x319224['remove'](_0x1e695d);for(const _0x546de3 of _0x4d83e9)_0x319224['unwrap'](_0x546de3);return _0x21032e;}),_0x3fb620['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2f9d52,'converterPriority':'high'}),_0x3fb620['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4f18bc,_0x4f60ea)=>{if(_0x4f60ea['options']['showSuggestionHighlights'])return _0x2f9d52(_0x4f18bc,{'showActiveMarker':!0x1});},'converterPriority':'high'});const _0x22f0ab=_0x3fb620['editing']['view'];this['listenTo'](_0x22f0ab['document'],'clipboardOutput',(_0x3edcde,_0xa0e3cb)=>{const _0x218fdd=[];for(const _0x1c00d9 of _0x22f0ab['createRangeIn'](_0xa0e3cb['content'])['getItems']())_0x1c00d9['is']('element','suggestion-td')&&_0x218fdd['push'](_0x1c00d9);_0x22f0ab['change'](_0x3de092=>{for(const _0xb0eee2 of _0x218fdd)_0x3de092['move'](_0x3de092['createRangeIn'](_0xb0eee2),_0x3de092['createPositionBefore'](_0xb0eee2)),_0x3de092['remove'](_0xb0eee2);});});}}function le(_0x24ae51){if(_0x24ae51['isEmpty'])return!0x0;const _0x549ce3=_0x24ae51['getChild'](0x0);return _0x549ce3['is']('element','paragraph')&&_0x549ce3['isEmpty'];}function se(_0x5c674a,_0x8f5de0={},_0x42bde0){for(const {isAnchor:_0x1690dc,cellHeight:_0x2afb44,cellWidth:_0x3ef75c}of _0x42bde0['createTableWalker'](_0x5c674a,{'includeAllSlots':!0x0,..._0x8f5de0}))if(!_0x1690dc||0x1!=_0x2afb44||0x1!=_0x3ef75c)return!0x1;return!0x0;}
23
+ const _0x23e9=['last','previous','fill','join','getChangedMarkers','accept','TrackChangesEditing','insertContent','getSelectionAffectedTableCells','reduce','batch','tableCellBackgroundColor','TableClipboard','createTableWalker','set','getColumnIndexes','return','getRanges','tablePasteCell','filter','suggestion:formatBlock:tablePasteCell','_getCoordsForCells','afterInit','remove','fromEntries','map','isEqual','_createdBatches','startsWith','insertColumns','markMultiRangeInsertion','editing','isEmpty','from','next','table','clipboardOutput','rootName','tableCellBorderStyle','tablePasteColumn','ck-suggestion-marker--active','markerToHighlight','includes','entries','suggestionUnloaded','dataDowncast','selection','get','getRange','tableCell','markers','setAttributes','tableCellHorizontalAlignment','length','row','every','suggestion','view','options','getAttributes','root','getShiftedBy','for','createRangeIn','registerCustomCallback','high','removeMarker','tablePasteChainId','markMultiRangeBlockFormat','markerName','element','name','register','low','getItems','model','find','removeMarkers','attributes','end','add','setAttribute','keys','value','content','editor','push','markerAttributes','change','columns','findAncestor','move','nextSibling','isInContent','getRowIndexes','endRow','tableCellBorderColor','insertRows','suggestion-td','editingDowncast','plugins','Users','removeRows','tablePasteRow','tableCellPadding','forceDefaultExecution','commands','rowInsertionRanges','insert','deletionRanges','_splitMarkerName','removeColumns','getSuggestions','column','stop','activeMarkers','type','paragraph','getSuggestionCallback','redo','containsRange','rowInsertionIndexes','getSuggestion','author','TableUtils','registerPostFixer','start','suggestionLoaded','insertion','_replaceTableSlotCell','columnInsertionRanges','_isForcedDefaultExecutionBlock','getContainedElement','rows','getChild','unwrap','elementToElement','tablePaste','getMarkers','markMultiRangeDeletion','endColumn','discard','documentSelection','tableCellSuggestion','showSuggestionHighlights','schema','_tablePostFixingSubtypes','first','differ','position','getAllAdjacentSuggestions','requires','listenTo','document','getChildren','_suggestionFactory','deletion','newRange','cells','has','_descriptionFactory','wrap','oldRange','getRows','conversion','subType','createRangeOn'];(function(_0x49b24c,_0x23e9c4){const _0x42b6ca=function(_0x5c0a2b){while(--_0x5c0a2b){_0x49b24c['push'](_0x49b24c['shift']());}};_0x42b6ca(++_0x23e9c4);}(_0x23e9,0x199));const _0x42b6=function(_0x49b24c,_0x23e9c4){_0x49b24c=_0x49b24c-0x0;let _0x42b6ca=_0x23e9[_0x49b24c];return _0x42b6ca;};import{getTranslation as _0x8e66e5}from'../utils/common-translations';import{Plugin as _0x34bbfc}from'ckeditor5/src/core';import _0x601945 from'./table';import{uid as _0x55c53c,priorities as _0x3a171c}from'ckeditor5/src/utils';const le=['tableCellBorderWidth',_0x42b6('0x15'),_0x42b6('0x82'),_0x42b6('0x90'),'tableCellVerticalAlignment',_0x42b6('0x67'),_0x42b6('0x1d')],ce=Object[_0x42b6('0x74')](le['map'](_0x22dc77=>[_0x22dc77,null]));export default class lt extends _0x34bbfc{static get[_0x42b6('0x4c')](){return[_0x601945];}[_0x42b6('0x72')](){const _0x2bc90a=this[_0x42b6('0xa')];if(!_0x2bc90a[_0x42b6('0x19')]['has'](_0x42b6('0x68')))return;const _0x281083=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x42b6('0x62')),_0x3340f3=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x42b6('0x31')),_0x507b34=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x601945),_0x1bfbf3=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x42b6('0x68'));_0x507b34[_0x42b6('0x47')][_0x42b6('0xb')](_0x42b6('0x1c'),_0x42b6('0x83')),_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x46')][_0x42b6('0xa4')](_0x42b6('0x44'),{'allowIn':_0x42b6('0x8d'),'allowContentOf':_0x42b6('0x8d'),'isLimit':!0x0}),_0x2bc90a['conversion'][_0x42b6('0x3d')]({'model':_0x42b6('0x44'),'view':_0x42b6('0x17')});let _0x39a589=null;_0x2bc90a[_0x42b6('0x0')]['on']('insertContent',(_0x4707c5,_0x5ceb29)=>{const [_0x56770d,_0x19fb01]=_0x5ceb29,_0x2dcd9e=_0x5ceb29[_0x5ceb29[_0x42b6('0x91')]-0x1];_0x2dcd9e&&_0x2dcd9e[_0x42b6('0x1e')]||_0x281083[_0x42b6('0x38')]||this['editor'][_0x42b6('0x1f')][_0x42b6('0x8b')]('trackChanges')[_0x42b6('0x8')]&&function(_0x467549,_0x44d6d9,_0x7211c7,_0x29002b,_0x4b1b7b){if(_0x44d6d9&&!_0x44d6d9['is'](_0x42b6('0x43')))return!0x1;const _0x2127ca=_0x4b1b7b['getTableIfOnlyTableInContent'](_0x467549,_0x7211c7);if(!_0x2127ca||!ue(_0x2127ca,null,_0x29002b))return!0x1;const _0x4e61a1=_0x29002b[_0x42b6('0x64')](_0x7211c7[_0x42b6('0x4e')][_0x42b6('0x8a')]);if(!_0x4e61a1['length'])return!0x1;const _0x7dc220=_0x4e61a1[0x0]['findAncestor']('table'),_0x104cf8=_0x29002b[_0x42b6('0x13')](_0x4e61a1),_0x44945a=_0x29002b[_0x42b6('0x6b')](_0x4e61a1),_0x332fa0={'startRow':_0x104cf8[_0x42b6('0x48')],'endRow':_0x104cf8[_0x42b6('0x5c')],'startColumn':_0x44945a['first'],'endColumn':_0x44945a[_0x42b6('0x5c')]};return 0x1==_0x4e61a1[_0x42b6('0x91')]&&(_0x332fa0[_0x42b6('0x14')]+=_0x29002b[_0x42b6('0x58')](_0x2127ca)-0x1,_0x332fa0[_0x42b6('0x41')]+=_0x29002b['getColumns'](_0x2127ca)-0x1),ue(_0x7dc220,_0x332fa0,_0x29002b);}(_0x56770d,_0x19fb01,_0x2bc90a[_0x42b6('0x0')],_0x3340f3,_0x1bfbf3)&&(_0x4707c5[_0x42b6('0x27')](),_0x39a589={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2bc90a[_0x42b6('0x0')][_0x42b6('0xd')](()=>{_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x63')](_0x5ceb29[0x0],_0x5ceb29[0x1],_0x5ceb29[0x2],_0x5ceb29[0x3],{'forceDefaultExecution':!0x0});const _0x5cbddf=_0x55c53c(),{rowInsertionRanges:_0x4f914d,columnInsertionRanges:_0x1787fb,insertionRanges:_0x7f844a,deletionRanges:_0x57a51a,cells:_0x654029}=_0x39a589;_0x4f914d[_0x42b6('0x91')]&&_0x281083[_0x42b6('0x7a')](_0x4f914d,_0x42b6('0x1c'),{'tablePasteChainId':_0x5cbddf}),_0x1787fb[_0x42b6('0x91')]&&_0x281083[_0x42b6('0x7a')](_0x1787fb,_0x42b6('0x83'),{'tablePasteChainId':_0x5cbddf}),_0x7f844a[_0x42b6('0x91')]&&_0x281083[_0x42b6('0x7a')](_0x7f844a,_0x42b6('0x3e'),{'tablePasteChainId':_0x5cbddf,'skipNestingCheck':!0x0}),_0x57a51a[_0x42b6('0x91')]&&_0x281083[_0x42b6('0x40')](_0x57a51a,_0x42b6('0x3e'),{'tablePasteChainId':_0x5cbddf,'skipNestingCheck':!0x0});const _0x202a4d=_0x281083[_0x42b6('0xa0')](_0x654029[_0x42b6('0x75')](({element:_0x5a41b6})=>_0x5a41b6),{'formatGroupId':_0x55c53c()},[],_0x42b6('0x6e'),{'tablePasteChainId':_0x5cbddf});if(_0x202a4d){const _0x4c6e7d=_0x202a4d[_0x42b6('0x3f')](),_0x522070=[];for(const {element:_0x35f25d,attributes:_0x2c98fa}of _0x654029){if(!_0x2c98fa)continue;const _0x44c0d8=_0x2bc90a['model'][_0x42b6('0x5b')](_0x35f25d),_0x4515c6=_0x4c6e7d[_0x42b6('0x1')](_0x45791e=>_0x45791e[_0x42b6('0x8c')]()[_0x42b6('0x76')](_0x44c0d8));_0x4515c6&&_0x522070['push']([_0x4515c6[_0x42b6('0xa3')],_0x2c98fa]);}_0x522070[_0x42b6('0x91')]&&_0x202a4d[_0x42b6('0x6')](_0x42b6('0xc'),Object[_0x42b6('0x74')](_0x522070));}_0x39a589=null;}));},{'priority':_0x3a171c['high']+0xa}),_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x42b6('0x68'))['on'](_0x42b6('0x36'),(_0x3e4638,_0x404487)=>{const [_0x5cc8af,_0x2437fc,,_0x4501a5]=_0x404487;if(!_0x39a589)return;_0x3e4638['stop']();const _0x51c9d5=_0x5cc8af['cell'],_0x4240a0=_0x2437fc,_0x362a56=fe(_0x51c9d5),_0x2a33b4=fe(_0x4240a0);_0x3e4638[_0x42b6('0x6c')]=_0x51c9d5;let _0x4f56d1=null,_0x40e226=null;if(_0x2a33b4||_0x362a56){if(_0x362a56&&!_0x2a33b4){_0x4501a5['remove'](_0x51c9d5[_0x42b6('0x3b')](0x0));for(const _0x4abcf2 of Array[_0x42b6('0x7d')](_0x4240a0[_0x42b6('0x4f')]()))_0x4501a5[_0x42b6('0x21')](_0x4abcf2,_0x51c9d5,_0x42b6('0x4'));const _0x5abb12=_0x39a589[_0x42b6('0x2e')][_0x42b6('0x86')](_0x5cc8af[_0x42b6('0x92')]),_0x2a03f3=_0x39a589['columnInsertionIndexes']['includes'](_0x5cc8af[_0x42b6('0x26')]);_0x5abb12||_0x2a03f3||(_0x4f56d1=_0x4501a5[_0x42b6('0x9b')](_0x51c9d5));}else _0x2a33b4&&!_0x362a56&&(_0x40e226=_0x4501a5[_0x42b6('0x9b')](_0x51c9d5));}else{const _0x326099=_0x4501a5['createElement'](_0x42b6('0x44')),_0x45416a=_0x4501a5['createElement']('tableCellSuggestion');_0x4501a5[_0x42b6('0x56')](_0x4501a5[_0x42b6('0x9b')](_0x51c9d5),_0x45416a),_0x4501a5[_0x42b6('0x21')](_0x326099,_0x51c9d5,0x0);for(const _0x20aebe of Array[_0x42b6('0x7d')](_0x4240a0[_0x42b6('0x4f')]()))_0x4501a5[_0x42b6('0x21')](_0x20aebe,_0x326099,'end');_0x4f56d1=_0x4501a5['createRangeOn'](_0x326099),_0x40e226=_0x4501a5[_0x42b6('0x5b')](_0x45416a);}const _0x48a322=Array[_0x42b6('0x7d')](_0x4240a0[_0x42b6('0x97')]())[_0x42b6('0x6f')](([_0x4d45c7])=>le['includes'](_0x4d45c7));_0x39a589['cells'][_0x42b6('0xb')]({'element':_0x51c9d5,'attributes':_0x48a322[_0x42b6('0x91')]?Object['fromEntries'](_0x48a322):null}),_0x4f56d1&&_0x39a589['insertionRanges'][_0x42b6('0xb')](_0x4f56d1),_0x40e226&&_0x39a589[_0x42b6('0x22')][_0x42b6('0xb')](_0x40e226);},{'priority':'high'}),_0x3340f3['on'](_0x42b6('0x79'),(_0x2c9888,_0x254e77)=>{const [_0x5b3e11,_0x167d35={}]=_0x254e77;if(!_0x39a589)return;const _0x2dcf32=_0x167d35['at']||0x0,_0x2a2f9d=_0x167d35[_0x42b6('0xe')]||0x1;_0x39a589['columnInsertionIndexes']=new Array(_0x2a2f9d)[_0x42b6('0x5e')](_0x2dcf32)[_0x42b6('0x75')]((_0x282c00,_0x513a16)=>_0x282c00+_0x513a16);for(const {cell:_0x37e5ba}of _0x3340f3[_0x42b6('0x69')](_0x5b3e11,{'startColumn':_0x2dcf32,'endColumn':_0x2dcf32+_0x2a2f9d-0x1}))_0x39a589[_0x42b6('0x37')][_0x42b6('0xb')](_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x5b')](_0x37e5ba));},{'priority':_0x42b6('0xa5')}),_0x3340f3['on'](_0x42b6('0x16'),(_0x4b958b,_0x255226)=>{const [_0x301628,_0x4ffc63={}]=_0x255226;if(!_0x39a589)return;const _0x52b7fe=_0x4ffc63['at']||0x0,_0x175079=_0x4ffc63[_0x42b6('0x3a')]||0x1;_0x39a589[_0x42b6('0x2e')]=new Array(_0x175079)[_0x42b6('0x5e')](_0x52b7fe)['map']((_0x1dc609,_0x5805ff)=>_0x1dc609+_0x5805ff);for(const {cell:_0x18ec84}of _0x3340f3[_0x42b6('0x69')](_0x301628,{'startRow':_0x52b7fe,'endRow':_0x52b7fe+_0x175079-0x1}))_0x39a589[_0x42b6('0x20')][_0x42b6('0xb')](_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x5b')](_0x18ec84));},{'priority':_0x42b6('0xa5')}),_0x281083[_0x42b6('0x55')]['registerDescriptionCallback'](_0x54279f=>{if(_0x54279f[_0x42b6('0x5a')]&&_0x54279f['subType'][_0x42b6('0x78')]('tablePaste'))return _0x54279f['previous']?{}:{'type':'insertion','content':_0x8e66e5(_0x2bc90a['locale'],'*Replace\x20table\x20cells*')};});const _0x62ab89=()=>{};for(const _0x266e2e of[_0x42b6('0x3e'),_0x42b6('0x83'),_0x42b6('0x1c'),_0x42b6('0x6e')])_0x281083['_suggestionFactory'][_0x42b6('0x9c')](_0x42b6('0x35'),_0x266e2e,_0x42b6('0x5f'),_0x62ab89),_0x281083[_0x42b6('0x50')][_0x42b6('0x9c')](_0x42b6('0x51'),_0x266e2e,'join',_0x62ab89);_0x281083[_0x42b6('0x50')][_0x42b6('0x9c')]('formatBlock',_0x42b6('0x6e'),'discard',_0x62ab89),_0x281083[_0x42b6('0x50')][_0x42b6('0x9c')]('formatBlock',_0x42b6('0x6e'),'accept',(_0x2df1d0,_0x52fbd1,_0x4d5109)=>{const _0x224131=_0x2df1d0[_0x42b6('0x75')](_0x157393=>_0x157393[_0x42b6('0x39')]())['filter'](_0x13375c=>_0x13375c),_0x5186c2=new Map(_0x224131[_0x42b6('0x75')](_0x1555b4=>[_0x1555b4,null]));if(_0x39a589)for(const {element:_0xa889f7,attributes:_0x3e1bdd}of _0x39a589[_0x42b6('0x53')])_0x3e1bdd&&_0x5186c2[_0x42b6('0x6a')](_0xa889f7,_0x3e1bdd);else{if(_0x4d5109&&_0x4d5109['markerAttributes'])for(const [_0x4eefa3,_0x1df1b1]of Object[_0x42b6('0x87')](_0x4d5109['markerAttributes'])){const _0x148a21=_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x8e')]['get'](_0x4eefa3),_0x36f55b=_0x148a21?_0x148a21[_0x42b6('0x8c')]()['getContainedElement']():null;_0x36f55b&&_0x5186c2[_0x42b6('0x6a')](_0x36f55b,_0x1df1b1);}}_0x2bc90a[_0x42b6('0x0')][_0x42b6('0xd')](_0x59c0b6=>{for(const [_0x4a2aa2,_0xf21325]of _0x5186c2)_0x59c0b6[_0x42b6('0x8f')]({...ce,..._0xf21325},_0x4a2aa2);});});const _0x385c4d=(_0x12cd49,_0x30126e)=>{_0x281083['_suggestionFactory']['registerCustomCallback'](_0x12cd49,_0x42b6('0x3e'),_0x30126e,(_0x264b63,_0x165d1c,_0x11ae3d)=>{_0x2bc90a['model'][_0x42b6('0xd')](_0x13723d=>{const _0x4ba75e=[];for(const _0x7ca36 of _0x264b63){const _0x136982=_0x7ca36[_0x42b6('0x33')]['nodeAfter'];_0x136982['is'](_0x42b6('0xa2'),_0x42b6('0x44'))&&_0x4ba75e[_0x42b6('0xb')](_0x136982);}_0x281083['_suggestionFactory'][_0x42b6('0x2b')](_0x12cd49,null,_0x30126e)(_0x264b63,_0x165d1c,_0x11ae3d);for(const _0x5ef74b of _0x4ba75e)'$graveyard'!=_0x5ef74b[_0x42b6('0x98')][_0x42b6('0x81')]&&_0x13723d[_0x42b6('0x3c')](_0x5ef74b);});});};_0x385c4d(_0x42b6('0x35'),_0x42b6('0x61')),_0x385c4d(_0x42b6('0x35'),_0x42b6('0x42')),_0x385c4d(_0x42b6('0x51'),_0x42b6('0x61')),_0x385c4d(_0x42b6('0x51'),'discard'),_0x281083['_suggestionFactory'][_0x42b6('0x9c')](_0x42b6('0x35'),'tablePasteRow',_0x42b6('0x42'),_0x279c96=>{const _0x2a6952=_0x279c96[_0x42b6('0x75')](_0x1ce40f=>_0x1ce40f[_0x42b6('0x39')]()),_0x54ee75=_0x2a6952[0x0][_0x42b6('0xf')](_0x42b6('0x7f')),{minRow:_0xab9c5d,maxRow:_0x5626c7}=_0x507b34[_0x42b6('0x71')](_0x2a6952);_0x3340f3[_0x42b6('0x1b')](_0x54ee75,{'at':_0xab9c5d,'rows':_0x5626c7-_0xab9c5d+0x1});}),_0x281083[_0x42b6('0x50')][_0x42b6('0x9c')](_0x42b6('0x35'),_0x42b6('0x83'),_0x42b6('0x42'),_0x339cfb=>{const _0x2768a0=_0x339cfb[_0x42b6('0x75')](_0xd047fd=>_0xd047fd[_0x42b6('0x39')]()),_0x2df974=_0x2768a0[0x0][_0x42b6('0xf')](_0x42b6('0x7f')),{minColumn:_0xdeb7b1,maxColumn:_0x5da46a}=_0x507b34[_0x42b6('0x71')](_0x2768a0);_0x3340f3[_0x42b6('0x24')](_0x2df974,{'at':_0xdeb7b1,'columns':_0x5da46a-_0xdeb7b1+0x1});});const _0x5573f4=(_0x136d88,_0x3beb92)=>{if(!_0x3beb92[_0x42b6('0x5a')]||!_0x3beb92[_0x42b6('0x5a')][_0x42b6('0x78')](_0x42b6('0x3e')))return;const _0x4a1baa=_0x3beb92[_0x42b6('0x3')][_0x42b6('0x9f')],_0x39ade0=_0x281083[_0x42b6('0x25')]()[_0x42b6('0x6f')](_0x316b23=>_0x316b23['isInContent']&&_0x316b23[_0x42b6('0x3')]&&_0x316b23[_0x42b6('0x3')][_0x42b6('0x9f')]==_0x4a1baa);_0x39ade0[_0x42b6('0x91')]&&_0x3beb92[_0x42b6('0x4b')]()[_0x42b6('0x91')]!=_0x39ade0[_0x42b6('0x91')]&&_0x39ade0[_0x42b6('0x65')]((_0x37f236,_0x2ba30c)=>(_0x37f236[_0x42b6('0x7e')]=_0x2ba30c,_0x2ba30c[_0x42b6('0x5d')]=_0x37f236,_0x2ba30c));};function _0x229f52(_0x1cb283,{showActiveMarker:_0x5f42e4=!0x0}={}){const {id:_0x44e635}=_0x281083['_splitMarkerName'](_0x1cb283['markerName']),_0x1044ef=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d79cf=_0x281083[_0x42b6('0x28')][_0x42b6('0x86')](_0x1cb283[_0x42b6('0xa1')]);return _0x1d79cf&&_0x1044ef['push'](_0x42b6('0x84')),{'classes':_0x1044ef,'attributes':{'data-suggestion':_0x44e635},'priority':_0x1d79cf&&_0x5f42e4?0xbc2:0xbb8};}_0x281083['on'](_0x42b6('0x34'),_0x5573f4,{'priority':'high'}),_0x281083['on'](_0x42b6('0x88'),_0x5573f4,{'priority':_0x42b6('0x9d')}),_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x4e')]['registerPostFixer'](()=>{let _0xfc7ca6=!0x1;const _0x13e65b=Array[_0x42b6('0x7d')](_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x4e')]['differ'][_0x42b6('0x60')]());for(const {name:_0x41f20e,data:_0x2fd3ea}of _0x13e65b){const {group:_0x1555cc,type:_0x4a2c49,id:_0x2984f6}=_0x281083[_0x42b6('0x23')](_0x41f20e);if(_0x42b6('0x94')!=_0x1555cc||_0x42b6('0x51')!=_0x4a2c49||_0x2fd3ea[_0x42b6('0x57')])continue;if(!_0x281083['hasSuggestion'](_0x2984f6))continue;const _0x28be12=_0x281083[_0x42b6('0x2f')](_0x2984f6)[_0x42b6('0x6d')](),_0x26f847=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')]('Users')['me'];for(const _0x5ebf99 of _0x281083[_0x42b6('0x25')]()){if(!_0x5ebf99['isInContent']||_0x5ebf99[_0x42b6('0x30')]!=_0x26f847)continue;if('formatBlock'!=_0x5ebf99[_0x42b6('0x29')]||'tablePasteCell'!=_0x5ebf99['subType'])continue;if(_0x5ebf99[_0x42b6('0x6d')]()[_0x42b6('0x93')](_0xd60028=>_0x28be12['some'](_0x5da1a4=>_0x5da1a4[_0x42b6('0x2d')](_0xd60028,!0x0))))for(const _0x31de09 of _0x5ebf99[_0x42b6('0x4b')]())_0x31de09[_0x42b6('0x12')]&&(_0x31de09[_0x42b6('0x42')](),_0xfc7ca6=!0x0);}}return _0xfc7ca6;}),_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x4e')][_0x42b6('0x32')](_0x3abf3c=>{const _0x28905e=_0x2bc90a[_0x42b6('0x1f')]['get'](_0x42b6('0x2c'));if(!_0x28905e||!_0x28905e[_0x42b6('0x77')][_0x42b6('0x54')](_0x3abf3c[_0x42b6('0x66')]))return!0x1;let _0x233f31=!0x1;const _0x4109db=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x42b6('0x1a'))['me'],_0x4561bd=_0x2bc90a[_0x42b6('0x0')]['document']['differ']['getChanges'](),_0x39dcd0=Array['from'](_0x2bc90a['model']['document'][_0x42b6('0x49')][_0x42b6('0x60')]())[_0x42b6('0x6f')](({name:_0x312ba1,data:_0x31f633})=>{const {group:_0x2e71f1,subType:_0x1690c1,authorId:_0x21d88b}=_0x281083['_splitMarkerName'](_0x312ba1);return _0x42b6('0x94')==_0x2e71f1&&_0x42b6('0x3e')==_0x1690c1&&_0x21d88b==_0x4109db['id']&&!_0x31f633[_0x42b6('0x57')];});for(const _0x471ef3 of _0x4561bd){if(_0x42b6('0x21')!=_0x471ef3[_0x42b6('0x29')]||'tableCellSuggestion'!=_0x471ef3[_0x42b6('0xa3')]||0x1!=_0x471ef3['length'])continue;const _0x6facf9=_0x3abf3c['createRange'](_0x471ef3[_0x42b6('0x4a')],_0x471ef3[_0x42b6('0x4a')][_0x42b6('0x99')](0x1));if(!_0x39dcd0[_0x42b6('0x1')](({data:_0x1e0f02})=>_0x1e0f02[_0x42b6('0x52')][_0x42b6('0x76')](_0x6facf9)))for(const {name:_0x471cfd,data:_0x2c602c}of _0x39dcd0)if(_0x6facf9[_0x42b6('0x2d')](_0x2c602c[_0x42b6('0x52')])){_0x3abf3c['updateMarker'](_0x471cfd,{'range':_0x6facf9}),_0x233f31=!0x0;break;}}return _0x233f31;}),_0x2bc90a['model'][_0x42b6('0x4e')]['registerPostFixer'](_0x4ff9ba=>{let _0x7bfe78=!0x1;const _0x18eb3e=_0x2bc90a['plugins']['get'](_0x42b6('0x1a'))['me'],_0x5c5214=_0x281083[_0x42b6('0x25')]()[_0x42b6('0x6f')](_0x2eabe5=>_0x2eabe5[_0x42b6('0x12')]&&_0x2eabe5[_0x42b6('0x30')]==_0x18eb3e),_0x417e6b=new Set(),_0x540923=new Set();for(const _0x29b9bf of _0x5c5214)if(_0x42b6('0x3e')==_0x29b9bf[_0x42b6('0x5a')])for(const _0x58a542 of _0x29b9bf[_0x42b6('0x3f')]()){const _0x4d5bf2=_0x58a542[_0x42b6('0x8c')]()[_0x42b6('0x39')]();if(_0x4d5bf2){if(_0x4d5bf2['is'](_0x42b6('0xa2'),_0x42b6('0x44'))&&fe(_0x4d5bf2)){_0x29b9bf[_0x42b6('0x9e')](_0x58a542['name']),_0x417e6b[_0x42b6('0x5')](_0x4d5bf2),_0x7bfe78=!0x0;const _0x394069=_0x4d5bf2[_0x42b6('0x11')],_0x29235e=_0x4d5bf2['previousSibling'],_0x28a405=_0x394069&&_0x394069['is'](_0x42b6('0xa2'),_0x42b6('0x44')),_0x3590e3=_0x29235e&&_0x29235e['is'](_0x42b6('0xa2'),_0x42b6('0x44'));_0x28a405&&!_0x417e6b['has'](_0x394069)&&_0x540923[_0x42b6('0x5')](_0x394069),_0x3590e3&&!_0x417e6b['has'](_0x29235e)&&_0x540923[_0x42b6('0x5')](_0x29235e);}else _0x4d5bf2['is']('element','paragraph')&&_0x4d5bf2[_0x42b6('0x7c')]&&(_0x29b9bf[_0x42b6('0x9e')](_0x58a542[_0x42b6('0xa3')]),_0x7bfe78=!0x0);}}else{if(_0x42b6('0x6e')==_0x29b9bf[_0x42b6('0x5a')]){if(!_0x29b9bf['attributes']||!_0x29b9bf[_0x42b6('0x3')]['tablePasteChainId'])continue;const _0x38bdaf=_0x29b9bf[_0x42b6('0x3')][_0x42b6('0xc')];if(_0x38bdaf&&Object[_0x42b6('0x7')](_0x38bdaf)[_0x42b6('0x91')])continue;const _0x469519=_0x29b9bf[_0x42b6('0x3')]['tablePasteChainId'];let _0x14e568=!0x0,_0x36c75c=!0x0;for(const _0x3422f4 of _0x5c5214)if(_0x3422f4[_0x42b6('0x5a')]&&_0x3422f4[_0x42b6('0x5a')]['startsWith'](_0x42b6('0x3e'))){if(!_0x3422f4[_0x42b6('0x3')][_0x42b6('0x9f')]){_0x36c75c=!0x1;break;}if(_0x3422f4['id']!=_0x29b9bf['id']&&_0x3422f4[_0x42b6('0x3')][_0x42b6('0x9f')]==_0x469519){_0x14e568=!0x1;break;}}_0x36c75c&&_0x14e568&&(_0x29b9bf[_0x42b6('0x2')](),_0x7bfe78=!0x0);}}for(const _0x243e34 of _0x417e6b)_0x4ff9ba[_0x42b6('0x73')](_0x243e34);for(const _0x3482cd of _0x540923)_0x4ff9ba['unwrap'](_0x3482cd);return _0x7bfe78;}),_0x2bc90a[_0x42b6('0x59')][_0x42b6('0x9a')](_0x42b6('0x18'))['markerToHighlight']({'model':_0x42b6('0x70'),'view':_0x229f52,'converterPriority':_0x42b6('0x9d')}),_0x2bc90a[_0x42b6('0x59')][_0x42b6('0x9a')](_0x42b6('0x89'))[_0x42b6('0x85')]({'model':_0x42b6('0x70'),'view':(_0x1a179c,_0x364ded)=>{if(_0x364ded[_0x42b6('0x96')][_0x42b6('0x45')])return _0x229f52(_0x1a179c,{'showActiveMarker':!0x1});},'converterPriority':_0x42b6('0x9d')});const _0x26937b=_0x2bc90a[_0x42b6('0x7b')][_0x42b6('0x95')];this[_0x42b6('0x4d')](_0x26937b[_0x42b6('0x4e')],_0x42b6('0x80'),(_0x2452ba,_0x49a547)=>{const _0x577555=[];for(const _0x376697 of _0x26937b[_0x42b6('0x9b')](_0x49a547[_0x42b6('0x9')])[_0x42b6('0xa6')]())_0x376697['is']('element',_0x42b6('0x17'))&&_0x577555['push'](_0x376697);_0x26937b[_0x42b6('0xd')](_0x5a23c4=>{for(const _0x1bcc1f of _0x577555)_0x5a23c4[_0x42b6('0x10')](_0x5a23c4[_0x42b6('0x9b')](_0x1bcc1f),_0x5a23c4['createPositionBefore'](_0x1bcc1f)),_0x5a23c4[_0x42b6('0x73')](_0x1bcc1f);});});}}function fe(_0x4e342a){if(_0x4e342a[_0x42b6('0x7c')])return!0x0;const _0x45bcfe=_0x4e342a[_0x42b6('0x3b')](0x0);return _0x45bcfe['is'](_0x42b6('0xa2'),_0x42b6('0x2a'))&&_0x45bcfe[_0x42b6('0x7c')];}function ue(_0x3a864e,_0x36065c={},_0x13e79f){for(const {isAnchor:_0x18f632,cellHeight:_0x5328d2,cellWidth:_0x3d6100}of _0x13e79f[_0x42b6('0x69')](_0x3a864e,{'includeAllSlots':!0x0,..._0x36065c}))if(!_0x18f632||0x1!=_0x5328d2||0x1!=_0x3d6100)return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x19389a}from'ckeditor5/src/core';import ot from'./table';export default class at extends _0x19389a{static get['requires'](){return[ot];}['afterInit'](){const _0x5e922d=this['editor'];if(!_0x5e922d['plugins']['has']('TableEditing'))return;const {t:t}=_0x5e922d['locale'],_0x3ccaca=_0x5e922d['plugins']['get']('TrackChangesEditing'),_0x5e415e=_0x5e922d['plugins']['get']('TableUtils'),_0x4ab39d=_0x5e922d['plugins']['get'](ot);function _0xb489f1({showActiveMarker:_0x51a56b=!0x0,setDataAttribute:_0x56df1e=!0x0}={}){return(_0x17dda8,_0x530aff,_0x2be268)=>{const {type:_0x3472e6,id:_0x480c31}=_0x3ccaca['_splitMarkerName'](_0x530aff['markerName']),_0x2a615d=_0x3ccaca['getSuggestion'](_0x480c31);if(!_0x2a615d['data']||'setTableColumnHeader'!=_0x2a615d['data']['commandName'])return;if(_0x530aff['item'])return void _0x17dda8['stop']();if(!_0x2be268['consumable']['consume'](_0x530aff['markerRange'],_0x17dda8['name']))return;const _0x402830=_0x530aff['markerRange']['start']['nodeAfter'],_0x31844e=_0x530aff['markerRange']['end']['nodeBefore'],_0x4b964a=_0x402830['parent']['parent'],{column:_0x5889f6}=_0x5e415e['getCellLocation'](_0x402830),{column:_0x2f9d23}=_0x5e415e['getCellLocation'](_0x31844e);for(let _0x4277e3=_0x5889f6;_0x4277e3<=_0x2f9d23;_0x4277e3++){const _0x41feb2=_0x5e415e['createTableWalker'](_0x4b964a,{'column':_0x4277e3,'includeAllSlots':!0x1});for(const _0x58a0d0 of _0x41feb2){const _0x4db2e3=_0x58a0d0['cell'],_0x1f51ad=_0x2be268['mapper']['toViewElement'](_0x4db2e3);_0x2be268['writer']['addClass']('ck-suggestion-marker-'+_0x3472e6,_0x1f51ad),_0x56df1e&&_0x2be268['writer']['setAttribute']('data-suggestion',_0x480c31,_0x1f51ad),_0x2be268['mapper']['bindElementToMarker'](_0x1f51ad,_0x530aff['markerName']),_0x51a56b&&(_0x3ccaca['activeMarkers']['includes'](_0x530aff['markerName'])?_0x2be268['writer']['addClass']('ck-suggestion-marker--active',_0x1f51ad):_0x2be268['writer']['removeClass']('ck-suggestion-marker--active',_0x1f51ad));}}};}_0x3ccaca['enableCommand']('setTableRowHeader',(_0x3e969d,_0x58246d)=>{const _0x2b582a=_0x5e415e['getSelectionAffectedTableCells'](_0x5e922d['model']['document']['selection']),_0x8eb13=_0x5e415e['getRowIndexes'](_0x2b582a),_0x5956f7=_0x2b582a[0x0]['findAncestor']('table'),_0xa7b713=_0x5956f7['getAttribute']('headingRows')||0x0,_0x1dbd40=_0x58246d&&null!==_0x58246d['forceValue']?_0x58246d['forceValue']:!_0x5e922d['commands']['get']('setTableRowHeader')['value'],_0xdb7ed4=_0x1dbd40?_0x8eb13['last']:_0x8eb13['first'],_0x480532=_0x5956f7['getChild'](_0xdb7ed4);let _0x95ce98;if(_0x1dbd40){const _0x5a0a34=_0x5956f7['getChild'](_0xa7b713);if(_0x480532['index']<_0x5a0a34['index'])return;_0x95ce98=_0x5e922d['model']['createRange'](_0x5e922d['model']['createPositionBefore'](_0x5a0a34['getChild'](0x0)),_0x5e922d['model']['createPositionAfter'](_0x480532['getChild'](_0x480532['childCount']-0x1)));}else{const _0x2da097=_0x5956f7['getChild'](_0xa7b713-0x1);if(!_0x2da097)return;_0x95ce98=_0x5e922d['model']['createRange'](_0x5e922d['model']['createPositionBefore'](_0x480532['getChild'](0x0)),_0x5e922d['model']['createPositionAfter'](_0x2da097['getChild'](_0x2da097['childCount']-0x1)));}_0x5e922d['model']['change'](()=>{_0x3ccaca['markBlockFormat'](_0x95ce98,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x1dbd40}]},[],'setTableRowHeader');});}),_0x3ccaca['enableCommand']('setTableColumnHeader',(_0x4928d7,_0x4734e1)=>{const _0x2fb17f=_0x5e922d['plugins']['get']('TableUtils'),_0x2c27aa=_0x2fb17f['getSelectionAffectedTableCells'](_0x5e922d['model']['document']['selection']),_0x4b5998=_0x2fb17f['getColumnIndexes'](_0x2c27aa),_0xfaa9bb=_0x2c27aa[0x0]['findAncestor']('table'),_0x227113=_0xfaa9bb['getAttribute']('headingColumns')||0x0,_0x370b8d=_0x4734e1&&null!==_0x4734e1['forceValue']?_0x4734e1['forceValue']:!_0x5e922d['commands']['get']('setTableColumnHeader')['value'];let _0x42f315;const _0x10548d=_0xfaa9bb['getChild'](0x0),_0x48db77=_0x370b8d?_0x4b5998['last']:_0x4b5998['first'],_0x16412a=_0x2fb17f['createTableWalker'](_0xfaa9bb,{'startRow':0x0,'column':_0x48db77,'includeAllSlots':!0x1}),_0x416f02=Array['from'](_0x16412a)[0x0]['cell'];if(_0x370b8d){const _0x1aeef0=_0x10548d['getChild'](_0x227113);if(_0x416f02['isBefore'](_0x1aeef0))return;_0x42f315=_0x5e922d['model']['createRange'](_0x5e922d['model']['createPositionBefore'](_0x1aeef0),_0x5e922d['model']['createPositionAfter'](_0x416f02));}else{const _0x46121c=_0x10548d['getChild'](_0x227113-0x1);if(!_0x46121c)return;_0x42f315=_0x5e922d['model']['createRange'](_0x5e922d['model']['createPositionBefore'](_0x416f02),_0x5e922d['model']['createPositionAfter'](_0x46121c));}_0x5e922d['model']['change'](()=>{_0x3ccaca['markBlockFormat'](_0x42f315,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0x370b8d}]},[],'setTableColumnHeader');});}),_0x5e922d['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xb489f1(),{'priority':'highest'}),_0x5e922d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x44069e,_0x4c3f92,_0x5a1cc5)=>{_0x5a1cc5['options']['showSuggestionHighlights']&&_0xb489f1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x44069e,_0x4c3f92,_0x5a1cc5);},{'priority':'highest'}),_0x5e922d['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x365ee5,_0x59d199,_0x2d50cf)=>{const {type:_0x27a641,id:_0x5499d5}=_0x3ccaca['_splitMarkerName'](_0x59d199['markerName']),_0x2c2401=_0x3ccaca['getSuggestion'](_0x5499d5);if(!_0x2c2401['data']||'setTableColumnHeader'!=_0x2c2401['data']['commandName'])return;const _0x21d45f=_0x2d50cf['mapper']['markerNameToElements'](_0x59d199['markerName']);if(_0x21d45f)for(const _0x4afa57 of _0x21d45f)_0x2d50cf['writer']['removeClass']('ck-suggestion-marker-'+_0x27a641,_0x4afa57),_0x2d50cf['writer']['removeClass']('ck-suggestion-marker--active',_0x4afa57),_0x2d50cf['writer']['removeAttribute']('data-suggestion',_0x4afa57),_0x2d50cf['mapper']['unbindElementFromMarkerName'](_0x4afa57,_0x59d199['markerName']);},{'priority':'highest'}),_0x3ccaca['_descriptionFactory']['registerDescriptionCallback'](_0x11cf3e=>{const {data:_0x2d52c1}=_0x11cf3e;if(_0x2d52c1){if('setTableRowHeader'==_0x2d52c1['commandName']){const _0x1b18c1=_0x2d52c1['commandParams'][0x0]['forceValue'];return _0x5087f2(t(_0x1b18c1?{'string':'header\x20row','id':'FORMAT_HEADER_ROW'}:{'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'}));}if('setTableColumnHeader'==_0x2d52c1['commandName']){const _0x33b4a5=_0x2d52c1['commandParams'][0x0]['forceValue'];return _0x5087f2(t(_0x33b4a5?{'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'}:{'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'}));}}function _0x5087f2(_0xb54cc1){return{'type':'format','content':t('*Format:*\x20%0',_0xb54cc1)};}});const _0x2e391e=_0x4ab39d['_acceptFormatSuggestionCallbackFactory']();_0x3ccaca['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2e391e),_0x3ccaca['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2e391e);}}
23
+ const _0x2e09=['getSuggestion','findAncestor','commandParams','model','cell','getRowIndexes','toViewElement','first','selection','addMarker:suggestion','change','stop','item','ck-suggestion-marker-','createPositionAfter','index','formatBlock','writer','FORMAT_REGULAR_COLUMN','last','options','_suggestionFactory','parent','createTableWalker','removeClass','has','ck-suggestion-marker--active','getChild','removeMarker:suggestion','headingColumns','TrackChangesEditing','_descriptionFactory','createPositionBefore','mapper','editor','plugins','childCount','markerRange','locale','getColumnIndexes','getSelectionAffectedTableCells','consume','end','get','editing','removeAttribute','setTableRowHeader','unbindElementFromMarkerName','bindElementToMarker','table','forceValue','getCellLocation','TableUtils','requires','enableCommand','_splitMarkerName','markerName','name','setAttribute','from','markBlockFormat','commandName','data','includes','document','downcastDispatcher','headingRows','isBefore','createRange','nodeBefore','consumable','highest','data-suggestion','markerNameToElements','getAttribute','format','registerCustomCallback','activeMarkers','FORMAT_HEADER_ROW','addClass','commands','accept','value','setTableColumnHeader'];(function(_0x2bcc59,_0x2e09ff){const _0x44b589=function(_0x3aa868){while(--_0x3aa868){_0x2bcc59['push'](_0x2bcc59['shift']());}};_0x44b589(++_0x2e09ff);}(_0x2e09,0x11c));const _0x44b5=function(_0x2bcc59,_0x2e09ff){_0x2bcc59=_0x2bcc59-0x0;let _0x44b589=_0x2e09[_0x2bcc59];return _0x44b589;};import{Plugin as _0x119690}from'ckeditor5/src/core';import _0x423e16 from'./table';import{getTranslation as _0x82bc40}from'../utils/common-translations';export default class gt extends _0x119690{static get[_0x44b5('0x15')](){return[_0x423e16];}['afterInit'](){const _0x411f41=this[_0x44b5('0x2')];if(!_0x411f41[_0x44b5('0x3')][_0x44b5('0x4d')]('TableEditing'))return;const _0x361b81=_0x411f41[_0x44b5('0x6')],_0x2dc58f=_0x411f41[_0x44b5('0x3')]['get'](_0x44b5('0x52')),_0x184648=_0x411f41['plugins'][_0x44b5('0xb')](_0x44b5('0x14')),_0x4bf085=_0x411f41['plugins'][_0x44b5('0xb')](_0x423e16);function _0xbac303({showActiveMarker:_0x7e3fc1=!0x0,setDataAttribute:_0x33c97b=!0x0}={}){return(_0x423401,_0x2f028c,_0x51722d)=>{const {type:_0x2d44b8,id:_0x31e666}=_0x2dc58f[_0x44b5('0x17')](_0x2f028c[_0x44b5('0x18')]),_0x4099e6=_0x2dc58f[_0x44b5('0x34')](_0x31e666);if(!_0x4099e6[_0x44b5('0x1e')]||_0x44b5('0x33')!=_0x4099e6[_0x44b5('0x1e')][_0x44b5('0x1d')])return;if(_0x2f028c[_0x44b5('0x40')])return void _0x423401[_0x44b5('0x3f')]();if(!_0x51722d[_0x44b5('0x26')][_0x44b5('0x9')](_0x2f028c[_0x44b5('0x5')],_0x423401[_0x44b5('0x19')]))return;const _0x29c024=_0x2f028c[_0x44b5('0x5')]['start']['nodeAfter'],_0xdca943=_0x2f028c[_0x44b5('0x5')][_0x44b5('0xa')][_0x44b5('0x25')],_0x7299a3=_0x29c024[_0x44b5('0x4a')][_0x44b5('0x4a')],{column:_0x30862a}=_0x184648[_0x44b5('0x13')](_0x29c024),{column:_0x8f5291}=_0x184648['getCellLocation'](_0xdca943);for(let _0x720ac6=_0x30862a;_0x720ac6<=_0x8f5291;_0x720ac6++){const _0x82b9a7=_0x184648[_0x44b5('0x4b')](_0x7299a3,{'column':_0x720ac6,'includeAllSlots':!0x1});for(const _0x3bfe80 of _0x82b9a7){const _0x3247ab=_0x3bfe80[_0x44b5('0x38')],_0x25ad75=_0x51722d[_0x44b5('0x1')][_0x44b5('0x3a')](_0x3247ab);_0x51722d[_0x44b5('0x45')][_0x44b5('0x2f')](_0x44b5('0x41')+_0x2d44b8,_0x25ad75),_0x33c97b&&_0x51722d['writer'][_0x44b5('0x1a')]('data-suggestion',_0x31e666,_0x25ad75),_0x51722d[_0x44b5('0x1')][_0x44b5('0x10')](_0x25ad75,_0x2f028c[_0x44b5('0x18')]),_0x7e3fc1&&(_0x2dc58f[_0x44b5('0x2d')][_0x44b5('0x1f')](_0x2f028c[_0x44b5('0x18')])?_0x51722d[_0x44b5('0x45')][_0x44b5('0x2f')]('ck-suggestion-marker--active',_0x25ad75):_0x51722d[_0x44b5('0x45')][_0x44b5('0x4c')](_0x44b5('0x4e'),_0x25ad75));}}};}_0x2dc58f[_0x44b5('0x16')](_0x44b5('0xe'),(_0x3c9298,_0x59817c)=>{const _0x90eb84=_0x184648['getSelectionAffectedTableCells'](_0x411f41['model'][_0x44b5('0x20')][_0x44b5('0x3c')]),_0x39078f=_0x184648[_0x44b5('0x39')](_0x90eb84),_0x2a952a=_0x90eb84[0x0][_0x44b5('0x35')](_0x44b5('0x11')),_0x1ec327=_0x2a952a[_0x44b5('0x2a')](_0x44b5('0x22'))||0x0,_0x531f21=_0x59817c&&null!==_0x59817c['forceValue']?_0x59817c[_0x44b5('0x12')]:!_0x411f41['commands']['get']('setTableRowHeader')[_0x44b5('0x32')],_0x58d654=_0x531f21?_0x39078f[_0x44b5('0x47')]:_0x39078f[_0x44b5('0x3b')],_0x3b4c60=_0x2a952a[_0x44b5('0x4f')](_0x58d654);let _0x560ff1;if(_0x531f21){const _0x4f431a=_0x2a952a[_0x44b5('0x4f')](_0x1ec327);if(_0x3b4c60['index']<_0x4f431a[_0x44b5('0x43')])return;_0x560ff1=_0x411f41['model'][_0x44b5('0x24')](_0x411f41[_0x44b5('0x37')]['createPositionBefore'](_0x4f431a[_0x44b5('0x4f')](0x0)),_0x411f41['model'][_0x44b5('0x42')](_0x3b4c60[_0x44b5('0x4f')](_0x3b4c60['childCount']-0x1)));}else{const _0x2b6c53=_0x2a952a[_0x44b5('0x4f')](_0x1ec327-0x1);if(!_0x2b6c53)return;_0x560ff1=_0x411f41['model'][_0x44b5('0x24')](_0x411f41[_0x44b5('0x37')][_0x44b5('0x0')](_0x3b4c60[_0x44b5('0x4f')](0x0)),_0x411f41[_0x44b5('0x37')]['createPositionAfter'](_0x2b6c53[_0x44b5('0x4f')](_0x2b6c53[_0x44b5('0x4')]-0x1)));}_0x411f41[_0x44b5('0x37')]['change'](()=>{_0x2dc58f[_0x44b5('0x1c')](_0x560ff1,{'commandName':_0x44b5('0xe'),'commandParams':[{'forceValue':_0x531f21}]},[],'setTableRowHeader');});}),_0x2dc58f[_0x44b5('0x16')](_0x44b5('0x33'),(_0xb39165,_0x1ac9c7)=>{const _0x5f448c=_0x411f41[_0x44b5('0x3')]['get'](_0x44b5('0x14')),_0x1a5834=_0x5f448c[_0x44b5('0x8')](_0x411f41[_0x44b5('0x37')][_0x44b5('0x20')][_0x44b5('0x3c')]),_0x39a333=_0x5f448c[_0x44b5('0x7')](_0x1a5834),_0x2b5d06=_0x1a5834[0x0]['findAncestor'](_0x44b5('0x11')),_0x20cba5=_0x2b5d06[_0x44b5('0x2a')](_0x44b5('0x51'))||0x0,_0x595d31=_0x1ac9c7&&null!==_0x1ac9c7['forceValue']?_0x1ac9c7['forceValue']:!_0x411f41[_0x44b5('0x30')][_0x44b5('0xb')](_0x44b5('0x33'))['value'];let _0x319c81;const _0x37e413=_0x2b5d06[_0x44b5('0x4f')](0x0),_0x3df80d=_0x595d31?_0x39a333[_0x44b5('0x47')]:_0x39a333[_0x44b5('0x3b')],_0x2b0dbc=_0x5f448c[_0x44b5('0x4b')](_0x2b5d06,{'startRow':0x0,'column':_0x3df80d,'includeAllSlots':!0x1}),_0x1115f4=Array[_0x44b5('0x1b')](_0x2b0dbc)[0x0][_0x44b5('0x38')];if(_0x595d31){const _0x1f7350=_0x37e413[_0x44b5('0x4f')](_0x20cba5);if(_0x1115f4[_0x44b5('0x23')](_0x1f7350))return;_0x319c81=_0x411f41[_0x44b5('0x37')][_0x44b5('0x24')](_0x411f41[_0x44b5('0x37')][_0x44b5('0x0')](_0x1f7350),_0x411f41[_0x44b5('0x37')][_0x44b5('0x42')](_0x1115f4));}else{const _0x469aa2=_0x37e413[_0x44b5('0x4f')](_0x20cba5-0x1);if(!_0x469aa2)return;_0x319c81=_0x411f41[_0x44b5('0x37')][_0x44b5('0x24')](_0x411f41[_0x44b5('0x37')][_0x44b5('0x0')](_0x1115f4),_0x411f41[_0x44b5('0x37')][_0x44b5('0x42')](_0x469aa2));}_0x411f41['model'][_0x44b5('0x3e')](()=>{_0x2dc58f[_0x44b5('0x1c')](_0x319c81,{'commandName':_0x44b5('0x33'),'commandParams':[{'forceValue':_0x595d31}]},[],_0x44b5('0x33'));});}),_0x411f41[_0x44b5('0xc')][_0x44b5('0x21')]['on'](_0x44b5('0x3d'),_0xbac303(),{'priority':'highest'}),_0x411f41[_0x44b5('0x1e')][_0x44b5('0x21')]['on'](_0x44b5('0x3d'),(_0x2fd7d1,_0x4a980e,_0x57ef63)=>{_0x57ef63[_0x44b5('0x48')]['showSuggestionHighlights']&&_0xbac303({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2fd7d1,_0x4a980e,_0x57ef63);},{'priority':_0x44b5('0x27')}),_0x411f41[_0x44b5('0xc')][_0x44b5('0x21')]['on'](_0x44b5('0x50'),(_0x1602c6,_0x2743ff,_0x373ada)=>{const {type:_0x1ef61f,id:_0x1e8fb6}=_0x2dc58f[_0x44b5('0x17')](_0x2743ff[_0x44b5('0x18')]),_0x3fe52b=_0x2dc58f[_0x44b5('0x34')](_0x1e8fb6);if(!_0x3fe52b[_0x44b5('0x1e')]||_0x44b5('0x33')!=_0x3fe52b[_0x44b5('0x1e')][_0x44b5('0x1d')])return;const _0x408e7f=_0x373ada[_0x44b5('0x1')][_0x44b5('0x29')](_0x2743ff['markerName']);if(_0x408e7f)for(const _0x54efd1 of _0x408e7f)_0x373ada[_0x44b5('0x45')][_0x44b5('0x4c')]('ck-suggestion-marker-'+_0x1ef61f,_0x54efd1),_0x373ada[_0x44b5('0x45')][_0x44b5('0x4c')]('ck-suggestion-marker--active',_0x54efd1),_0x373ada[_0x44b5('0x45')][_0x44b5('0xd')](_0x44b5('0x28'),_0x54efd1),_0x373ada[_0x44b5('0x1')][_0x44b5('0xf')](_0x54efd1,_0x2743ff['markerName']);},{'priority':_0x44b5('0x27')}),_0x2dc58f[_0x44b5('0x53')]['registerDescriptionCallback'](_0x5a9bb4=>{const {data:_0x257f3b}=_0x5a9bb4;if(_0x257f3b){if(_0x44b5('0xe')==_0x257f3b[_0x44b5('0x1d')]){const _0x292e74=_0x257f3b['commandParams'][0x0][_0x44b5('0x12')];return _0x583ba7(_0x82bc40(_0x361b81,_0x292e74?_0x44b5('0x2e'):'FORMAT_REGULAR_ROW'));}if(_0x44b5('0x33')==_0x257f3b[_0x44b5('0x1d')]){const _0x4f91a2=_0x257f3b[_0x44b5('0x36')][0x0]['forceValue'];return _0x583ba7(_0x82bc40(_0x361b81,_0x4f91a2?'FORMAT_HEADER_COLUMN':_0x44b5('0x46')));}}function _0x583ba7(_0x10ee4d){return{'type':_0x44b5('0x2b'),'content':_0x82bc40(_0x361b81,'*Format:*\x20%0',_0x10ee4d)};}});const _0x2a901f=_0x4bf085['_acceptFormatSuggestionCallbackFactory']();_0x2dc58f[_0x44b5('0x49')][_0x44b5('0x2c')](_0x44b5('0x44'),_0x44b5('0xe'),_0x44b5('0x31'),_0x2a901f),_0x2dc58f['_suggestionFactory']['registerCustomCallback'](_0x44b5('0x44'),_0x44b5('0x33'),_0x44b5('0x31'),_0x2a901f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x12c901}from'ckeditor5/src/core';import ot from'./table';import{LiveRange as _0x37ab5a}from'ckeditor5/src/engine';export default class rt extends _0x12c901{static get['requires'](){return[ot];}['afterInit'](){const _0x5728da=this['editor'],_0x46aa5c=_0x5728da['model']['document']['selection'];if(!_0x5728da['plugins']['has']('TableEditing'))return;const {t:t}=_0x5728da['locale'],_0x389463=_0x5728da['plugins']['get']('TrackChangesEditing'),_0x45bb7a=_0x5728da['plugins']['get']('TableUtils'),_0x37ba51=_0x5728da['plugins']['get'](ot);_0x37ba51['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x389463['enableCommand']('mergeTableCells',()=>{const _0x5be023=_0x45bb7a['getSelectionAffectedTableCells'](_0x5728da['model']['document']['selection']);_0x5728da['model']['change'](()=>{_0x389463['markMultiRangeBlockFormat'](_0x5be023,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5728da['commands']['get']('mergeTableCells')['on']('execute',(_0x59a1a8,_0x3c789a)=>{_0x5728da['commands']['get']('trackChanges')['value']&&(_0x3c789a['length']>0x0&&_0x3c789a[_0x3c789a['length']-0x1]&&_0x3c789a[_0x3c789a['length']-0x1]['forceDefaultExecution']||_0x389463['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x59a1a8['stop']());},{'priority':'highest'});for(const _0x8e4c29 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x599827=_0x5728da['commands']['get'](_0x8e4c29);_0x389463['enableCommand'](_0x8e4c29,()=>{const _0x132a57=_0x5728da['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x346831=>_0x346831['is']('element','tableCell')),_0x2c00aa=_0x599827['value'];_0x5728da['model']['change'](()=>{_0x389463['markMultiRangeBlockFormat']([_0x132a57,_0x2c00aa],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x36a437 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4ca09f=_0x5728da['commands']['get'](_0x36a437);_0x389463['enableCommand'](_0x36a437,()=>{const _0x1e840d=_0x45bb7a['getSelectionAffectedTableCells'](_0x5728da['model']['document']['selection'])[0x0],_0x5d0bae=_0x1e840d['findAncestor']('table'),{column:_0x5a8a0d,row:_0x53957a}=_0x45bb7a['getCellLocation'](_0x1e840d);let _0x4f049f=[];if('horizontally'==_0x4ca09f['direction']){const _0x58a128=_0x45bb7a['createTableWalker'](_0x5d0bae,{'startRow':_0x53957a,'endRow':_0x53957a,'includeAllSlots':!0x0});_0x4f049f=Array['from'](_0x58a128)['map'](_0xdf3f83=>_0xdf3f83['cell']);}else{const _0x2e80d1=_0x45bb7a['createTableWalker'](_0x5d0bae,{'column':_0x5a8a0d,'includeAllSlots':!0x0});_0x4f049f=Array['from'](_0x2e80d1)['map'](_0x4417df=>_0x4417df['cell']);}_0x5728da['model']['change'](_0x3c645c=>{_0x389463['markBlockFormat'](_0x3c645c['createRangeOn'](_0x1e840d),{'commandName':_0x36a437,'commandParams':[]},_0x4f049f,_0x36a437);});});}_0x389463['_descriptionFactory']['registerDescriptionCallback'](_0x5acfb1=>{const {data:_0x4eb240}=_0x5acfb1;if(_0x4eb240)return'mergeTableCells'==_0x4eb240['commandName']?{'type':'format','content':t('*Merge\x20cells*')}:void 0x0;}),_0x389463['_descriptionFactory']['registerDescriptionCallback'](_0x4bde9b=>{const {data:_0x59f402}=_0x4bde9b;if(_0x59f402)return'splitTableCellVertically'==_0x59f402['commandName']?{'type':'format','content':t('*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x59f402['commandName']?{'type':'format','content':t('*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x5a3d07=_0x37ba51['_acceptFormatSuggestionCallbackFactory']();for(const _0x2c7a4e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x389463['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c7a4e,'accept',_0x5a3d07);for(const _0x2136d3 of['splitTableCellVertically','splitTableCellHorizontally'])_0x389463['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2136d3,'accept',_0x5a3d07);_0x389463['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x598811=>{_0x5728da['model']['change'](_0x4702e2=>{const _0x26f498=Array['from'](_0x46aa5c['getRanges']())['map'](_0x52a77e=>_0x37ab5a['fromRange'](_0x52a77e));_0x4702e2['setSelection'](_0x598811),_0x5728da['commands']['get']('mergeTableCells')['refresh'](),_0x5728da['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x133b95=_0x26f498['filter'](_0x4afa1f=>'$graveyard'!=_0x4afa1f['root']['rootName']);_0x133b95['length']>0x0&&_0x4702e2['setSelection'](_0x133b95);for(const _0x169992 of _0x26f498)_0x169992['detach']();});});for(const _0x1144d6 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x419c87=_0x5728da['commands']['get'](_0x1144d6);_0x419c87['on']('set:isEnabled',(_0x505d51,_0x280506,_0x23b6eb)=>{if(_0x23b6eb){const _0xb07b67=_0x5728da['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x16a5f7=>_0x16a5f7['is']('element','tableCell'));this['_areMergableCells'](_0x419c87['value'],_0xb07b67)||(_0x505d51['return']=!0x1,_0x505d51['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3e36c9=this['editor']['commands']['get']('mergeTableCells'),_0x4f6289=this['editor']['plugins']['get']('TableUtils');if(!_0x3e36c9['isEnabled'])return!0x1;const _0x59e400=_0x4f6289['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4cf4bf of _0x59e400)for(const _0x2de6b3 of _0x59e400)if(_0x4cf4bf!=_0x2de6b3&&!this['_areMergableCells'](_0x4cf4bf,_0x2de6b3))return!0x1;return!0x0;}['_areMergableCells'](_0x76cfd7,_0x5a6a7f){const _0x39ac19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46e06c=this['editor']['model']['createRangeOn'](_0x76cfd7),_0x40cba6=this['editor']['model']['createRangeOn'](_0x5a6a7f),_0x3eedd6=new Set(),_0x5aa415=new Set();for(const _0x8830e9 of _0x39ac19['getSuggestions']())if(('insertion'==_0x8830e9['type']||'deletion'==_0x8830e9['type']||'mergeTableCells'==_0x8830e9['subType'])&&_0x8830e9['isInContent'])for(const _0x47aca6 of _0x8830e9['getRanges']())_0x47aca6['containsRange'](_0x46e06c,!0x0)&&_0x3eedd6['add'](_0x8830e9['type']+':'+_0x8830e9['author']['id']),_0x47aca6['containsRange'](_0x40cba6,!0x0)&&_0x5aa415['add'](_0x8830e9['type']+':'+_0x8830e9['author']['id']);if(_0x3eedd6['size']!=_0x5aa415['size'])return!0x1;for(const _0x2d1567 of _0x3eedd6)if(!_0x5aa415['has'](_0x2d1567))return!0x1;return!0x0;}}
23
+ const _0x3a1a=['table','_suggestionFactory','TableEditing','registerCustomCallback','size','document','commands','change','isEnabled','_areSelectedCellsMergable','markMultiRangeBlockFormat','get','containsRange','from','_areMergableCells','splitTableCellVertically','setSelection','cell','direction','createTableWalker','splitTableCellHorizontally','registerDescriptionCallback','findAncestor','execute','value','_descriptionFactory','*Split\x20cell:*\x20horizontally','tableCell','TableUtils','enableCommand','filter','_acceptFormatSuggestionCallbackFactory','forceDefaultExecution','selection','length','requires','map','afterInit','has','push','getSuggestions','fromRange','format','horizontally','markBlockFormat','subType','element','_tablePostFixingSubtypes','stop','formatBlock','commandName','type','mergeTableCellDown','plugins','low','refresh','mergeTableCellRight','insertion','add','createRangeOn','getFirstPosition','getSelectionAffectedTableCells','root','_isForcedDefaultExecutionBlock','getCellLocation','mergeTableCellLeft','*Merge\x20cells*','model','$graveyard','TrackChangesEditing','getAncestors','isInContent','editor','trackChanges','find','accept','author','locale','getRanges','mergeTableCells','mergeTableCellUp','highest','*Split\x20cell:*\x20vertically'];(function(_0x4345a1,_0x3a1aec){const _0x401fbe=function(_0x577ed9){while(--_0x577ed9){_0x4345a1['push'](_0x4345a1['shift']());}};_0x401fbe(++_0x3a1aec);}(_0x3a1a,0x17e));const _0x401f=function(_0x4345a1,_0x3a1aec){_0x4345a1=_0x4345a1-0x0;let _0x401fbe=_0x3a1a[_0x4345a1];return _0x401fbe;};import{Plugin as _0x71894c}from'ckeditor5/src/core';import _0x2910cd from'./table';import{LiveRange as _0x2bb5fb}from'ckeditor5/src/engine';import{getTranslation as _0x5a8700}from'../utils/common-translations';export default class ft extends _0x71894c{static get[_0x401f('0x44')](){return[_0x2910cd];}[_0x401f('0x46')](){const _0x4487a9=this[_0x401f('0x16')],_0x3a3255=_0x4487a9[_0x401f('0x11')]['document'][_0x401f('0x42')],_0x1aa6e3=_0x4487a9[_0x401f('0x1b')];if(!_0x4487a9[_0x401f('0x3')]['has'](_0x401f('0x23')))return;const _0x152501=_0x4487a9['plugins']['get'](_0x401f('0x13')),_0xa80fb2=_0x4487a9[_0x401f('0x3')][_0x401f('0x2c')](_0x401f('0x3d')),_0x1ed8d4=_0x4487a9[_0x401f('0x3')][_0x401f('0x2c')](_0x2910cd);_0x1ed8d4[_0x401f('0x50')][_0x401f('0x48')]('mergeTableCells'),_0x152501[_0x401f('0x3e')](_0x401f('0x1d'),()=>{const _0xdf93aa=_0xa80fb2[_0x401f('0xb')](_0x4487a9['model']['document'][_0x401f('0x42')]);_0x4487a9[_0x401f('0x11')][_0x401f('0x28')](()=>{_0x152501[_0x401f('0x2b')](_0xdf93aa,{'commandName':'mergeTableCells','commandParams':[]},[],_0x401f('0x1d'));});}),_0x4487a9['commands'][_0x401f('0x2c')](_0x401f('0x1d'))['on'](_0x401f('0x38'),(_0x265e3b,_0x378895)=>{_0x4487a9[_0x401f('0x27')]['get'](_0x401f('0x17'))[_0x401f('0x39')]&&(_0x378895[_0x401f('0x43')]>0x0&&_0x378895[_0x378895[_0x401f('0x43')]-0x1]&&_0x378895[_0x378895[_0x401f('0x43')]-0x1][_0x401f('0x41')]||_0x152501[_0x401f('0xd')]||this['_areSelectedCellsMergable']()||_0x265e3b[_0x401f('0x51')]());},{'priority':_0x401f('0x1f')});for(const _0x232adb of[_0x401f('0x1e'),_0x401f('0x6'),_0x401f('0x2'),_0x401f('0xf')]){const _0x33a3ac=_0x4487a9[_0x401f('0x27')]['get'](_0x232adb);_0x152501[_0x401f('0x3e')](_0x232adb,()=>{const _0x403e1e=_0x4487a9[_0x401f('0x11')][_0x401f('0x26')][_0x401f('0x42')][_0x401f('0xa')]()[_0x401f('0x14')]()[_0x401f('0x18')](_0x2fcf89=>_0x2fcf89['is'](_0x401f('0x4f'),_0x401f('0x3c'))),_0x3399c=_0x33a3ac[_0x401f('0x39')];_0x4487a9[_0x401f('0x11')]['change'](()=>{_0x152501[_0x401f('0x2b')]([_0x403e1e,_0x3399c],{'commandName':_0x401f('0x1d'),'commandParams':[]},[],_0x401f('0x1d'));});});}for(const _0x3f51ee of['splitTableCellVertically',_0x401f('0x35')]){const _0x1a4fc2=_0x4487a9[_0x401f('0x27')][_0x401f('0x2c')](_0x3f51ee);_0x152501[_0x401f('0x3e')](_0x3f51ee,()=>{const _0x5c8a3c=_0xa80fb2[_0x401f('0xb')](_0x4487a9[_0x401f('0x11')][_0x401f('0x26')][_0x401f('0x42')])[0x0],_0x291cb3=_0x5c8a3c[_0x401f('0x37')](_0x401f('0x21')),{column:_0x2adffb,row:_0x1f9b2b}=_0xa80fb2[_0x401f('0xe')](_0x5c8a3c);let _0x19a6d0=[];if(_0x401f('0x4c')==_0x1a4fc2[_0x401f('0x33')]){const _0x67abe0=_0xa80fb2[_0x401f('0x34')](_0x291cb3,{'startRow':_0x1f9b2b,'endRow':_0x1f9b2b,'includeAllSlots':!0x0});_0x19a6d0=Array[_0x401f('0x2e')](_0x67abe0)[_0x401f('0x45')](_0x15a04b=>_0x15a04b[_0x401f('0x32')]);}else{const _0x43f9d3=_0xa80fb2['createTableWalker'](_0x291cb3,{'column':_0x2adffb,'includeAllSlots':!0x0});_0x19a6d0=Array[_0x401f('0x2e')](_0x43f9d3)['map'](_0x357b6e=>_0x357b6e[_0x401f('0x32')]);}_0x4487a9['model'][_0x401f('0x28')](_0x2845b9=>{_0x152501[_0x401f('0x4d')](_0x2845b9[_0x401f('0x9')](_0x5c8a3c),{'commandName':_0x3f51ee,'commandParams':[]},_0x19a6d0,_0x3f51ee);});});}_0x152501[_0x401f('0x3a')][_0x401f('0x36')](_0x478538=>{const {data:_0x6a2d69}=_0x478538;if(_0x6a2d69)return _0x401f('0x1d')==_0x6a2d69[_0x401f('0x0')]?{'type':'format','content':_0x5a8700(_0x1aa6e3,_0x401f('0x10'))}:void 0x0;}),_0x152501[_0x401f('0x3a')][_0x401f('0x36')](_0x1590f7=>{const {data:_0x77c516}=_0x1590f7;if(_0x77c516)return _0x401f('0x30')==_0x77c516['commandName']?{'type':_0x401f('0x4b'),'content':_0x5a8700(_0x1aa6e3,_0x401f('0x20'))}:_0x401f('0x35')==_0x77c516['commandName']?{'type':'format','content':_0x5a8700(_0x1aa6e3,_0x401f('0x3b'))}:void 0x0;});const _0x4a01de=_0x1ed8d4[_0x401f('0x40')]();for(const _0x5a96ee of[_0x401f('0x1e'),_0x401f('0x6'),_0x401f('0x2'),_0x401f('0xf')])_0x152501[_0x401f('0x22')][_0x401f('0x24')](_0x401f('0x52'),_0x5a96ee,_0x401f('0x19'),_0x4a01de);for(const _0x3c6388 of[_0x401f('0x30'),_0x401f('0x35')])_0x152501[_0x401f('0x22')][_0x401f('0x24')]('formatBlock',_0x3c6388,'accept',_0x4a01de);_0x152501[_0x401f('0x22')][_0x401f('0x24')]('formatBlock',_0x401f('0x1d'),'accept',_0x5563f4=>{_0x4487a9[_0x401f('0x11')][_0x401f('0x28')](_0x12edbc=>{const _0x5cf67f=Array['from'](_0x3a3255['getRanges']())['map'](_0x1690ef=>_0x2bb5fb[_0x401f('0x4a')](_0x1690ef));_0x12edbc[_0x401f('0x31')](_0x5563f4),_0x4487a9[_0x401f('0x27')][_0x401f('0x2c')](_0x401f('0x1d'))[_0x401f('0x5')](),_0x4487a9['execute'](_0x401f('0x1d'),{'forceDefaultExecution':!0x0});const _0x5607ac=_0x5cf67f[_0x401f('0x3f')](_0x5b0f23=>_0x401f('0x12')!=_0x5b0f23[_0x401f('0xc')]['rootName']);_0x5607ac['length']>0x0&&_0x12edbc[_0x401f('0x31')](_0x5607ac);for(const _0x341a51 of _0x5cf67f)_0x341a51['detach']();});});for(const _0x916ac5 of['mergeTableCellUp',_0x401f('0x2'),_0x401f('0xf'),'mergeTableCellRight']){const _0x48a592=_0x4487a9[_0x401f('0x27')][_0x401f('0x2c')](_0x916ac5);_0x48a592['on']('set:isEnabled',(_0x1f7e3b,_0x3b9d9d,_0x131c68)=>{if(_0x131c68){const _0x2419f6=_0x4487a9[_0x401f('0x11')]['document'][_0x401f('0x42')]['getFirstPosition']()[_0x401f('0x14')]()[_0x401f('0x18')](_0x1f5292=>_0x1f5292['is']('element',_0x401f('0x3c')));this['_areMergableCells'](_0x48a592[_0x401f('0x39')],_0x2419f6)||(_0x1f7e3b['return']=!0x1,_0x1f7e3b[_0x401f('0x51')]());}},{'priority':_0x401f('0x4')});}}[_0x401f('0x2a')](){const _0x2774bd=this['editor'][_0x401f('0x27')][_0x401f('0x2c')](_0x401f('0x1d')),_0x666873=this[_0x401f('0x16')][_0x401f('0x3')][_0x401f('0x2c')](_0x401f('0x3d'));if(!_0x2774bd[_0x401f('0x29')])return!0x1;const _0x540467=_0x666873[_0x401f('0xb')](this[_0x401f('0x16')][_0x401f('0x11')][_0x401f('0x26')]['selection']);for(const _0x487156 of _0x540467)for(const _0x496b79 of _0x540467)if(_0x487156!=_0x496b79&&!this[_0x401f('0x2f')](_0x487156,_0x496b79))return!0x1;return!0x0;}[_0x401f('0x2f')](_0xfb4459,_0x116145){const _0x52150f=this[_0x401f('0x16')][_0x401f('0x3')][_0x401f('0x2c')](_0x401f('0x13')),_0x33120f=this[_0x401f('0x16')][_0x401f('0x11')]['createRangeOn'](_0xfb4459),_0x297cb1=this[_0x401f('0x16')][_0x401f('0x11')][_0x401f('0x9')](_0x116145),_0x234c67=new Set(),_0x572b19=new Set();for(const _0x42d629 of _0x52150f[_0x401f('0x49')]())if((_0x401f('0x7')==_0x42d629[_0x401f('0x1')]||'deletion'==_0x42d629[_0x401f('0x1')]||_0x401f('0x1d')==_0x42d629[_0x401f('0x4e')])&&_0x42d629[_0x401f('0x15')])for(const _0x333452 of _0x42d629[_0x401f('0x1c')]())_0x333452[_0x401f('0x2d')](_0x33120f,!0x0)&&_0x234c67[_0x401f('0x8')](_0x42d629[_0x401f('0x1')]+':'+_0x42d629[_0x401f('0x1a')]['id']),_0x333452[_0x401f('0x2d')](_0x297cb1,!0x0)&&_0x572b19[_0x401f('0x8')](_0x42d629[_0x401f('0x1')]+':'+_0x42d629[_0x401f('0x1a')]['id']);if(_0x234c67[_0x401f('0x25')]!=_0x572b19[_0x401f('0x25')])return!0x1;for(const _0x49ff28 of _0x234c67)if(!_0x572b19[_0x401f('0x47')](_0x49ff28))return!0x1;return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1983b7}from'ckeditor5/src/core';export default class ht extends _0x1983b7{['afterInit'](){const _0x4a35dc=this['editor'],t=_0x4a35dc['t'];if(!_0x4a35dc['plugins']['has']('Title'))return;const _0x51dede=_0x4a35dc['plugins']['get']('TrackChangesEditing');_0x51dede['_descriptionFactory']['registerElementLabel']('title-content',()=>t({'id':'ELEMENT_TITLE','string':'title'})),_0x4a35dc['model']['document']['registerPostFixer'](_0x272f00=>{let _0x1c4261=!0x1;const _0x3dd2bd=Array['from'](_0x4a35dc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ee794,data:_0x35bb77}of _0x3dd2bd){const {group:_0x221470}=_0x51dede['_splitMarkerName'](_0x1ee794);if('suggestion'!==_0x221470||!_0x35bb77['newRange'])continue;const _0x15fc6c=_0x35bb77['newRange'],_0x16b701=_0x15fc6c['end']['nodeBefore'];if(!_0x16b701||!_0x16b701['is']('element','title-content'))continue;if(!_0x15fc6c['start']['isTouching'](_0x15fc6c['end']))continue;const _0x1f78c0=_0x4a35dc['model']['schema']['getNearestSelectionRange'](_0x15fc6c['end'],'forward');if(_0x1f78c0&&_0x1f78c0['isCollapsed']){const _0x398280=_0x272f00['createRange'](_0x15fc6c['start'],_0x1f78c0['start']);_0x398280['isEqual'](_0x15fc6c)||(_0x272f00['updateMarker'](_0x1ee794,{'range':_0x398280}),_0x1c4261=!0x0);}_0x1c4261||(_0x272f00['removeMarker'](_0x1ee794),_0x1c4261=!0x0);}return _0x1c4261;});}}
23
+ const _0x1e67=['document','start','registerElementLabel','plugins','isEqual','differ','_splitMarkerName','model','isTouching','isCollapsed','afterInit','suggestion','locale','get','getNearestSelectionRange','removeMarker','title-content','end','editor','has','forward','updateMarker','ELEMENT_TITLE','element','schema'];(function(_0x5f2d24,_0x1e67a9){const _0x1819ed=function(_0x5e6271){while(--_0x5e6271){_0x5f2d24['push'](_0x5f2d24['shift']());}};_0x1819ed(++_0x1e67a9);}(_0x1e67,0x1f4));const _0x1819=function(_0x5f2d24,_0x1e67a9){_0x5f2d24=_0x5f2d24-0x0;let _0x1819ed=_0x1e67[_0x5f2d24];return _0x1819ed;};import{Plugin as _0x585892}from'ckeditor5/src/core';import{getTranslation as _0x2bc551}from'../utils/common-translations';export default class mt extends _0x585892{[_0x1819('0xa')](){const _0x5b625a=this[_0x1819('0x12')];if(!_0x5b625a[_0x1819('0x3')][_0x1819('0x13')]('Title'))return;const _0x544f61=_0x5b625a[_0x1819('0x3')][_0x1819('0xd')]('TrackChangesEditing');_0x544f61['_descriptionFactory'][_0x1819('0x2')](_0x1819('0x10'),()=>_0x2bc551(_0x5b625a[_0x1819('0xc')],_0x1819('0x16'))),_0x5b625a['model'][_0x1819('0x0')]['registerPostFixer'](_0x25e12a=>{let _0x25cb05=!0x1;const _0x230e23=Array['from'](_0x5b625a[_0x1819('0x7')][_0x1819('0x0')][_0x1819('0x5')]['getChangedMarkers']());for(const {name:_0x1007c8,data:_0x43fa52}of _0x230e23){const {group:_0x1a41a7}=_0x544f61[_0x1819('0x6')](_0x1007c8);if(_0x1819('0xb')!==_0x1a41a7||!_0x43fa52['newRange'])continue;const _0x337c8e=_0x43fa52['newRange'],_0xe3b788=_0x337c8e[_0x1819('0x11')]['nodeBefore'];if(!_0xe3b788||!_0xe3b788['is'](_0x1819('0x17'),_0x1819('0x10')))continue;if(!_0x337c8e[_0x1819('0x1')][_0x1819('0x8')](_0x337c8e[_0x1819('0x11')]))continue;const _0x1874f4=_0x5b625a[_0x1819('0x7')][_0x1819('0x18')][_0x1819('0xe')](_0x337c8e[_0x1819('0x11')],_0x1819('0x14'));if(_0x1874f4&&_0x1874f4[_0x1819('0x9')]){const _0x220627=_0x25e12a['createRange'](_0x337c8e['start'],_0x1874f4[_0x1819('0x1')]);_0x220627[_0x1819('0x4')](_0x337c8e)||(_0x25e12a[_0x1819('0x15')](_0x1007c8,{'range':_0x220627}),_0x25cb05=!0x0);}_0x25cb05||(_0x25e12a[_0x1819('0xf')](_0x1007c8),_0x25cb05=!0x0);}return _0x25cb05;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4057=['has','undo','plugins','UndoEditing','get','redo','TrackChangesEditing','afterInit'];(function(_0x4487a8,_0x4057b5){const _0x4fa310=function(_0x3acd3c){while(--_0x3acd3c){_0x4487a8['push'](_0x4487a8['shift']());}};_0x4fa310(++_0x4057b5);}(_0x4057,0x184));const _0x4fa3=function(_0x4487a8,_0x4057b5){_0x4487a8=_0x4487a8-0x0;let _0x4fa310=_0x4057[_0x4487a8];return _0x4fa310;};import{Plugin as _0x2bbcbe}from'ckeditor5/src/core';export default class ut extends _0x2bbcbe{[_0x4fa3('0x3')](){const _0x408c6b=this['editor'],_0x2ff105=_0x408c6b[_0x4fa3('0x6')][_0x4fa3('0x0')](_0x4fa3('0x2'));_0x408c6b[_0x4fa3('0x6')][_0x4fa3('0x4')](_0x4fa3('0x7'))&&(_0x2ff105['enableCommand'](_0x4fa3('0x5')),_0x2ff105['enableCommand'](_0x4fa3('0x1')));}}
23
+ const _0x18d7=['afterInit','plugins','enableCommand','editor','has','undo','redo'];(function(_0x21d8c3,_0x18d7b2){const _0x4338c5=function(_0x1da496){while(--_0x1da496){_0x21d8c3['push'](_0x21d8c3['shift']());}};_0x4338c5(++_0x18d7b2);}(_0x18d7,0xf2));const _0x4338=function(_0x21d8c3,_0x18d7b2){_0x21d8c3=_0x21d8c3-0x0;let _0x4338c5=_0x18d7[_0x21d8c3];return _0x4338c5;};import{Plugin as _0x486097}from'ckeditor5/src/core';export default class dt extends _0x486097{[_0x4338('0x3')](){const _0xbae86b=this[_0x4338('0x6')],_0x2c7de5=_0xbae86b['plugins']['get']('TrackChangesEditing');_0xbae86b[_0x4338('0x4')][_0x4338('0x0')]('UndoEditing')&&(_0x2c7de5['enableCommand'](_0x4338('0x1')),_0x2c7de5[_0x4338('0x5')](_0x4338('0x2')));}}