@ckeditor/ckeditor5-track-changes 37.0.1 → 37.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/build/track-changes.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/az.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fi.js +1 -1
  15. package/build/translations/fr.js +1 -1
  16. package/build/translations/gl.js +1 -1
  17. package/build/translations/he.js +1 -1
  18. package/build/translations/hi.js +1 -1
  19. package/build/translations/hr.js +1 -1
  20. package/build/translations/hu.js +1 -1
  21. package/build/translations/id.js +1 -1
  22. package/build/translations/it.js +1 -1
  23. package/build/translations/ja.js +1 -1
  24. package/build/translations/ko.js +1 -1
  25. package/build/translations/lt.js +1 -1
  26. package/build/translations/lv.js +1 -1
  27. package/build/translations/ms.js +1 -1
  28. package/build/translations/nl.js +1 -1
  29. package/build/translations/no.js +1 -1
  30. package/build/translations/pl.js +1 -1
  31. package/build/translations/pt-br.js +1 -1
  32. package/build/translations/pt.js +1 -1
  33. package/build/translations/ro.js +1 -1
  34. package/build/translations/ru.js +1 -1
  35. package/build/translations/sk.js +1 -1
  36. package/build/translations/sr-latn.js +1 -1
  37. package/build/translations/sr.js +1 -1
  38. package/build/translations/sv.js +1 -1
  39. package/build/translations/th.js +1 -1
  40. package/build/translations/tk.js +1 -1
  41. package/build/translations/tr.js +1 -1
  42. package/build/translations/tt.js +1 -1
  43. package/build/translations/uk.js +1 -1
  44. package/build/translations/ur.js +1 -1
  45. package/build/translations/vi.js +1 -1
  46. package/build/translations/zh-cn.js +1 -1
  47. package/build/translations/zh.js +1 -1
  48. package/lang/contexts.json +2 -0
  49. package/lang/translations/ar.po +15 -1
  50. package/lang/translations/az.po +11 -1
  51. package/lang/translations/bg.po +11 -1
  52. package/lang/translations/bn.po +11 -1
  53. package/lang/translations/ca.po +11 -1
  54. package/lang/translations/cs.po +13 -1
  55. package/lang/translations/da.po +11 -1
  56. package/lang/translations/de.po +11 -1
  57. package/lang/translations/el.po +11 -1
  58. package/lang/translations/en-au.po +11 -1
  59. package/lang/translations/en.po +10 -0
  60. package/lang/translations/es.po +12 -1
  61. package/lang/translations/et.po +11 -1
  62. package/lang/translations/fi.po +11 -1
  63. package/lang/translations/fr.po +12 -1
  64. package/lang/translations/gl.po +11 -1
  65. package/lang/translations/he.po +13 -1
  66. package/lang/translations/hi.po +11 -1
  67. package/lang/translations/hr.po +12 -1
  68. package/lang/translations/hu.po +11 -1
  69. package/lang/translations/id.po +10 -1
  70. package/lang/translations/it.po +12 -1
  71. package/lang/translations/ja.po +10 -1
  72. package/lang/translations/ko.po +10 -1
  73. package/lang/translations/lt.po +13 -1
  74. package/lang/translations/lv.po +12 -1
  75. package/lang/translations/ms.po +10 -1
  76. package/lang/translations/nl.po +11 -1
  77. package/lang/translations/no.po +11 -1
  78. package/lang/translations/pl.po +13 -1
  79. package/lang/translations/pt-br.po +12 -1
  80. package/lang/translations/pt.po +12 -1
  81. package/lang/translations/ro.po +12 -1
  82. package/lang/translations/ru.po +13 -1
  83. package/lang/translations/sk.po +13 -1
  84. package/lang/translations/sr-latn.po +12 -1
  85. package/lang/translations/sr.po +33 -22
  86. package/lang/translations/sv.po +11 -1
  87. package/lang/translations/th.po +10 -1
  88. package/lang/translations/tk.po +11 -1
  89. package/lang/translations/tr.po +11 -1
  90. package/lang/translations/tt.po +10 -1
  91. package/lang/translations/uk.po +13 -1
  92. package/lang/translations/ur.po +11 -1
  93. package/lang/translations/vi.po +10 -1
  94. package/lang/translations/zh-cn.po +10 -1
  95. package/lang/translations/zh.po +10 -1
  96. package/package.json +3 -3
  97. package/src/commands/acceptsuggestioncommand.js +1 -1
  98. package/src/commands/discardsuggestioncommand.js +1 -1
  99. package/src/commands/executeonallsuggestionscommand.js +1 -1
  100. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  101. package/src/commands/trackchangescommand.js +1 -1
  102. package/src/index.d.ts +1 -1
  103. package/src/integrations/alignment.js +1 -1
  104. package/src/integrations/basicstyles.js +1 -1
  105. package/src/integrations/blockquote.js +1 -1
  106. package/src/integrations/ckbox.js +1 -1
  107. package/src/integrations/codeblock.js +1 -1
  108. package/src/integrations/comments.js +1 -1
  109. package/src/integrations/deletecommand.js +1 -1
  110. package/src/integrations/documentlist.js +1 -1
  111. package/src/integrations/documentlistproperties.js +1 -1
  112. package/src/integrations/entercommand.js +1 -1
  113. package/src/integrations/findandreplace.js +1 -1
  114. package/src/integrations/font.js +1 -1
  115. package/src/integrations/formatpainter.d.ts +13 -0
  116. package/src/integrations/formatpainter.js +23 -0
  117. package/src/integrations/heading.js +1 -1
  118. package/src/integrations/highlight.js +1 -1
  119. package/src/integrations/horizontalline.js +1 -1
  120. package/src/integrations/htmlembed.js +1 -1
  121. package/src/integrations/image.js +1 -1
  122. package/src/integrations/imagereplace.js +1 -1
  123. package/src/integrations/importword.js +1 -1
  124. package/src/integrations/indent.js +1 -1
  125. package/src/integrations/inputcommand.js +1 -1
  126. package/src/integrations/link.js +1 -1
  127. package/src/integrations/list.js +1 -1
  128. package/src/integrations/listproperties.js +1 -1
  129. package/src/integrations/mediaembed.js +1 -1
  130. package/src/integrations/mention.js +1 -1
  131. package/src/integrations/pagebreak.js +1 -1
  132. package/src/integrations/paragraph.js +1 -1
  133. package/src/integrations/removeformat.js +1 -1
  134. package/src/integrations/restrictededitingmode.js +1 -1
  135. package/src/integrations/shiftentercommand.js +1 -1
  136. package/src/integrations/standardeditingmode.js +1 -1
  137. package/src/integrations/style.js +1 -1
  138. package/src/integrations/table.js +1 -1
  139. package/src/integrations/tablecaption.js +1 -1
  140. package/src/integrations/tableclipboard.js +1 -1
  141. package/src/integrations/tablecolumnresize.js +1 -1
  142. package/src/integrations/tableheadings.js +1 -1
  143. package/src/integrations/tablemergesplit.js +1 -1
  144. package/src/integrations/tableofcontents.d.ts +13 -0
  145. package/src/integrations/tableofcontents.js +23 -0
  146. package/src/integrations/tableproperties.js +1 -1
  147. package/src/integrations/template.d.ts +13 -0
  148. package/src/integrations/template.js +23 -0
  149. package/src/integrations/title.js +1 -1
  150. package/src/integrations/undo.js +1 -1
  151. package/src/integrations/utils.js +1 -1
  152. package/src/suggestion.js +1 -1
  153. package/src/suggestiondescriptionfactory.js +1 -1
  154. package/src/trackchanges.js +1 -1
  155. package/src/trackchangesdata.js +1 -1
  156. package/src/trackchangesediting.js +1 -1
  157. package/src/trackchangesui.js +1 -1
  158. package/src/ui/suggestioncontroller.js +1 -1
  159. package/src/ui/view/basesuggestionthreadview.js +1 -1
  160. package/src/ui/view/suggestionthreadview.js +1 -1
  161. package/src/utils/common-translations.js +1 -1
  162. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a95=['mapper','showSuggestionHighlights','format','TableUtils','removeClass','highest','last','nodeBefore','ck-suggestion-marker-','forceValue','markerRange','getCellLocation','index','getRowIndexes','_acceptFormatSuggestionCallbackFactory','findAncestor','end','locale','getSuggestion','getSelectionAffectedTableCells','headingColumns','FORMAT_HEADER_COLUMN','enableCommand','createRange','setTableRowHeader','data','addClass','change','_splitMarkerName','setAttribute','FORMAT_REGULAR_COLUMN','writer','nodeAfter','document','consumable','accept','_descriptionFactory','markerName','commandName','ck-suggestion-marker--active','formatBlock','getAttribute','downcastDispatcher','_suggestionFactory','has','get','registerCustomCallback','from','includes','cell','parent','createPositionAfter','FORMAT_HEADER_ROW','first','markBlockFormat','options','childCount','getColumnIndexes','commands','data-suggestion','setTableColumnHeader','registerDescriptionCallback','name','headingRows','start','plugins','createTableWalker','table','addMarker:suggestion','getChild','createPositionBefore','afterInit','toViewElement','model','bindElementToMarker'];(function(_0x503d7f,_0x2a95aa){const _0x1ec934=function(_0x371d2c){while(--_0x371d2c){_0x503d7f['push'](_0x503d7f['shift']());}};_0x1ec934(++_0x2a95aa);}(_0x2a95,0x1b5));const _0x1ec9=function(_0x503d7f,_0x2a95aa){_0x503d7f=_0x503d7f-0x0;let _0x1ec934=_0x2a95[_0x503d7f];return _0x1ec934;};import{Plugin as _0x5157a6}from'ckeditor5/src/core';import _0x24100c from'./table';import{getTranslation as _0x473ff6}from'../utils/common-translations';export default class dt extends _0x5157a6{static get['requires'](){return[_0x24100c];}[_0x1ec9('0x9')](){const _0x11582c=this['editor'];if(!_0x11582c[_0x1ec9('0x3')][_0x1ec9('0x39')]('TableEditing'))return;const _0x7365ba=_0x11582c[_0x1ec9('0x1e')],_0x2f8d48=_0x11582c[_0x1ec9('0x3')][_0x1ec9('0x3a')]('TrackChangesEditing'),_0x2094e6=_0x11582c[_0x1ec9('0x3')]['get'](_0x1ec9('0x10')),_0x268af9=_0x11582c[_0x1ec9('0x3')][_0x1ec9('0x3a')](_0x24100c);function _0x5adb04({showActiveMarker:_0x34f7ef=!0x0,setDataAttribute:_0x128cd8=!0x0}={}){return(_0x521ea1,_0x40d2e6,_0xf2d219)=>{const {type:_0x591ac9,id:_0x4a59a7}=_0x2f8d48[_0x1ec9('0x29')](_0x40d2e6['markerName']),_0x3e676b=_0x2f8d48[_0x1ec9('0x1f')](_0x4a59a7);if(!_0x3e676b[_0x1ec9('0x26')]||_0x1ec9('0x49')!=_0x3e676b[_0x1ec9('0x26')][_0x1ec9('0x33')])return;if(_0x40d2e6['item'])return void _0x521ea1['stop']();if(!_0xf2d219[_0x1ec9('0x2f')]['consume'](_0x40d2e6['markerRange'],_0x521ea1[_0x1ec9('0x0')]))return;const _0x19e7e9=_0x40d2e6['markerRange'][_0x1ec9('0x2')][_0x1ec9('0x2d')],_0x4a7e23=_0x40d2e6[_0x1ec9('0x17')][_0x1ec9('0x1d')][_0x1ec9('0x14')],_0x1d8adc=_0x19e7e9[_0x1ec9('0x3f')][_0x1ec9('0x3f')],{column:_0xd433a8}=_0x2094e6['getCellLocation'](_0x19e7e9),{column:_0x20c530}=_0x2094e6[_0x1ec9('0x18')](_0x4a7e23);for(let _0x4b3c07=_0xd433a8;_0x4b3c07<=_0x20c530;_0x4b3c07++){const _0x2b4bd8=_0x2094e6['createTableWalker'](_0x1d8adc,{'column':_0x4b3c07,'includeAllSlots':!0x1});for(const _0xa84f30 of _0x2b4bd8){const _0x392a08=_0xa84f30[_0x1ec9('0x3e')],_0x1a67e1=_0xf2d219['mapper'][_0x1ec9('0xa')](_0x392a08);_0xf2d219['writer']['addClass'](_0x1ec9('0x15')+_0x591ac9,_0x1a67e1),_0x128cd8&&_0xf2d219[_0x1ec9('0x2c')][_0x1ec9('0x2a')](_0x1ec9('0x48'),_0x4a59a7,_0x1a67e1),_0xf2d219[_0x1ec9('0xd')][_0x1ec9('0xc')](_0x1a67e1,_0x40d2e6[_0x1ec9('0x32')]),_0x34f7ef&&(_0x2f8d48['activeMarkers'][_0x1ec9('0x3d')](_0x40d2e6[_0x1ec9('0x32')])?_0xf2d219[_0x1ec9('0x2c')][_0x1ec9('0x27')](_0x1ec9('0x34'),_0x1a67e1):_0xf2d219['writer'][_0x1ec9('0x11')](_0x1ec9('0x34'),_0x1a67e1));}}};}_0x2f8d48[_0x1ec9('0x23')](_0x1ec9('0x25'),(_0x5bcf3f,_0x4abb59)=>{const _0x55dd22=_0x2094e6[_0x1ec9('0x20')](_0x11582c[_0x1ec9('0xb')]['document']['selection']),_0x200bd0=_0x2094e6[_0x1ec9('0x1a')](_0x55dd22),_0x5194ef=_0x55dd22[0x0][_0x1ec9('0x1c')](_0x1ec9('0x5')),_0x4d10fd=_0x5194ef['getAttribute'](_0x1ec9('0x1'))||0x0,_0x344bac=_0x4abb59&&null!==_0x4abb59['forceValue']?_0x4abb59['forceValue']:!_0x11582c[_0x1ec9('0x47')]['get'](_0x1ec9('0x25'))['value'],_0xb1a5d8=_0x344bac?_0x200bd0['last']:_0x200bd0[_0x1ec9('0x42')],_0x3f981e=_0x5194ef['getChild'](_0xb1a5d8);let _0xa60bd;if(_0x344bac){const _0x22eb32=_0x5194ef[_0x1ec9('0x7')](_0x4d10fd);if(_0x3f981e[_0x1ec9('0x19')]<_0x22eb32['index'])return;_0xa60bd=_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x24')](_0x11582c['model']['createPositionBefore'](_0x22eb32[_0x1ec9('0x7')](0x0)),_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x40')](_0x3f981e['getChild'](_0x3f981e['childCount']-0x1)));}else{const _0x593293=_0x5194ef[_0x1ec9('0x7')](_0x4d10fd-0x1);if(!_0x593293)return;_0xa60bd=_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x24')](_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x8')](_0x3f981e[_0x1ec9('0x7')](0x0)),_0x11582c['model']['createPositionAfter'](_0x593293[_0x1ec9('0x7')](_0x593293[_0x1ec9('0x45')]-0x1)));}_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x28')](()=>{_0x2f8d48[_0x1ec9('0x43')](_0xa60bd,{'commandName':_0x1ec9('0x25'),'commandParams':[{'forceValue':_0x344bac}]},[],_0x1ec9('0x25'));});}),_0x2f8d48[_0x1ec9('0x23')](_0x1ec9('0x49'),(_0x2eda07,_0x4151fc)=>{const _0x2b0d5a=_0x11582c[_0x1ec9('0x3')][_0x1ec9('0x3a')]('TableUtils'),_0x3eb882=_0x2b0d5a['getSelectionAffectedTableCells'](_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x2e')]['selection']),_0x1b5dd5=_0x2b0d5a[_0x1ec9('0x46')](_0x3eb882),_0x16db70=_0x3eb882[0x0][_0x1ec9('0x1c')](_0x1ec9('0x5')),_0x53e3ac=_0x16db70[_0x1ec9('0x36')](_0x1ec9('0x21'))||0x0,_0x295e1e=_0x4151fc&&null!==_0x4151fc[_0x1ec9('0x16')]?_0x4151fc[_0x1ec9('0x16')]:!_0x11582c[_0x1ec9('0x47')]['get'](_0x1ec9('0x49'))['value'];let _0x541396;const _0x3ef4e9=_0x16db70[_0x1ec9('0x7')](0x0),_0x105c8e=_0x295e1e?_0x1b5dd5[_0x1ec9('0x13')]:_0x1b5dd5[_0x1ec9('0x42')],_0x5dbe6e=_0x2b0d5a[_0x1ec9('0x4')](_0x16db70,{'startRow':0x0,'column':_0x105c8e,'includeAllSlots':!0x1}),_0x3590ca=Array[_0x1ec9('0x3c')](_0x5dbe6e)[0x0]['cell'];if(_0x295e1e){const _0x47a879=_0x3ef4e9[_0x1ec9('0x7')](_0x53e3ac);if(_0x3590ca['isBefore'](_0x47a879))return;_0x541396=_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x24')](_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x8')](_0x47a879),_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x40')](_0x3590ca));}else{const _0xa98ae8=_0x3ef4e9[_0x1ec9('0x7')](_0x53e3ac-0x1);if(!_0xa98ae8)return;_0x541396=_0x11582c['model']['createRange'](_0x11582c['model']['createPositionBefore'](_0x3590ca),_0x11582c['model'][_0x1ec9('0x40')](_0xa98ae8));}_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x28')](()=>{_0x2f8d48[_0x1ec9('0x43')](_0x541396,{'commandName':_0x1ec9('0x49'),'commandParams':[{'forceValue':_0x295e1e}]},[],_0x1ec9('0x49'));});}),_0x11582c['editing'][_0x1ec9('0x37')]['on'](_0x1ec9('0x6'),_0x5adb04(),{'priority':_0x1ec9('0x12')}),_0x11582c['data'][_0x1ec9('0x37')]['on'](_0x1ec9('0x6'),(_0x70e72d,_0x212717,_0x2f4bde)=>{_0x2f4bde[_0x1ec9('0x44')][_0x1ec9('0xe')]&&_0x5adb04({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x70e72d,_0x212717,_0x2f4bde);},{'priority':_0x1ec9('0x12')}),_0x11582c['editing'][_0x1ec9('0x37')]['on']('removeMarker:suggestion',(_0x218f21,_0x5d92ff,_0x282e9b)=>{const {type:_0x212744,id:_0x5c012c}=_0x2f8d48[_0x1ec9('0x29')](_0x5d92ff['markerName']),_0x5cb573=_0x2f8d48[_0x1ec9('0x1f')](_0x5c012c);if(!_0x5cb573['data']||_0x1ec9('0x49')!=_0x5cb573[_0x1ec9('0x26')]['commandName'])return;const _0x2a332d=_0x282e9b[_0x1ec9('0xd')]['markerNameToElements'](_0x5d92ff['markerName']);if(_0x2a332d)for(const _0x1d9258 of _0x2a332d)_0x282e9b[_0x1ec9('0x2c')]['removeClass']('ck-suggestion-marker-'+_0x212744,_0x1d9258),_0x282e9b[_0x1ec9('0x2c')]['removeClass']('ck-suggestion-marker--active',_0x1d9258),_0x282e9b['writer']['removeAttribute'](_0x1ec9('0x48'),_0x1d9258),_0x282e9b[_0x1ec9('0xd')]['unbindElementFromMarkerName'](_0x1d9258,_0x5d92ff['markerName']);},{'priority':_0x1ec9('0x12')}),_0x2f8d48[_0x1ec9('0x31')][_0x1ec9('0x4a')](_0x4ab384=>{const {data:_0x3a4e89}=_0x4ab384;if(_0x3a4e89){if(_0x1ec9('0x25')==_0x3a4e89['commandName']){const _0x2f74e8=_0x3a4e89['commandParams'][0x0][_0x1ec9('0x16')];return _0x37fadc(_0x473ff6(_0x7365ba,_0x2f74e8?_0x1ec9('0x41'):'FORMAT_REGULAR_ROW'));}if(_0x1ec9('0x49')==_0x3a4e89[_0x1ec9('0x33')]){const _0x418849=_0x3a4e89['commandParams'][0x0]['forceValue'];return _0x37fadc(_0x473ff6(_0x7365ba,_0x418849?_0x1ec9('0x22'):_0x1ec9('0x2b')));}}function _0x37fadc(_0xa4d9b7){return{'type':_0x1ec9('0xf'),'content':_0x473ff6(_0x7365ba,'*Format:*\x20%0',_0xa4d9b7)};}});const _0x2a640f=_0x268af9[_0x1ec9('0x1b')]();_0x2f8d48[_0x1ec9('0x38')][_0x1ec9('0x3b')]('formatBlock',_0x1ec9('0x25'),_0x1ec9('0x30'),_0x2a640f),_0x2f8d48[_0x1ec9('0x38')][_0x1ec9('0x3b')](_0x1ec9('0x35'),_0x1ec9('0x49'),_0x1ec9('0x30'),_0x2a640f);}}
23
+ const _0x2294=['locale','showSuggestionHighlights','ck-suggestion-marker-','forceValue','document','registerCustomCallback','formatBlock','createPositionBefore','selection','TableUtils','FORMAT_REGULAR_COLUMN','from','index','first','createPositionAfter','_suggestionFactory','writer','stop','nodeAfter','data','editor','requires','afterInit','unbindElementFromMarkerName','commands','consumable','TableEditing','end','downcastDispatcher','has','plugins','createTableWalker','headingRows','includes','*Format:*\x20%0','isBefore','ck-suggestion-marker--active','setTableColumnHeader','cell','addMarker:suggestion','markerName','childCount','markBlockFormat','getChild','_descriptionFactory','data-suggestion','removeClass','mapper','item','get','headingColumns','_splitMarkerName','highest','findAncestor','FORMAT_HEADER_ROW','markerNameToElements','accept','commandName','activeMarkers','editing','getCellLocation','removeAttribute','createRange','format','table','consume','enableCommand','options','markerRange','value','TrackChangesEditing','last','commandParams','getAttribute','setTableRowHeader','parent','getSelectionAffectedTableCells','toViewElement','setAttribute','registerDescriptionCallback','model','change'];(function(_0x2c1ee9,_0x22947a){const _0x3b32c9=function(_0x62bdc0){while(--_0x62bdc0){_0x2c1ee9['push'](_0x2c1ee9['shift']());}};_0x3b32c9(++_0x22947a);}(_0x2294,0x11d));const _0x3b32=function(_0x2c1ee9,_0x22947a){_0x2c1ee9=_0x2c1ee9-0x0;let _0x3b32c9=_0x2294[_0x2c1ee9];return _0x3b32c9;};import{Plugin as _0xe23478}from'ckeditor5/src/core';import _0x3a46e3 from'./table';import{getTranslation as _0x38158d}from'../utils/common-translations';export default class pt extends _0xe23478{static get[_0x3b32('0x40')](){return[_0x3a46e3];}[_0x3b32('0x41')](){const _0x2b60d8=this[_0x3b32('0x3f')];if(!_0x2b60d8['plugins'][_0x3b32('0x48')](_0x3b32('0x45')))return;const _0x316bfe=_0x2b60d8[_0x3b32('0x2b')],_0x287c4d=_0x2b60d8[_0x3b32('0x49')][_0x3b32('0xa')](_0x3b32('0x1f')),_0x4be1f4=_0x2b60d8[_0x3b32('0x49')][_0x3b32('0xa')](_0x3b32('0x34')),_0x3045ba=_0x2b60d8[_0x3b32('0x49')][_0x3b32('0xa')](_0x3a46e3);function _0x2cb40f({showActiveMarker:_0x14ad39=!0x0,setDataAttribute:_0x4b1d3a=!0x0}={}){return(_0x5f2654,_0x4903f0,_0x5d6c1d)=>{const {type:_0x45b4e8,id:_0x158866}=_0x287c4d[_0x3b32('0xc')](_0x4903f0[_0x3b32('0x1')]),_0x385202=_0x287c4d['getSuggestion'](_0x158866);if(!_0x385202[_0x3b32('0x3e')]||_0x3b32('0x50')!=_0x385202[_0x3b32('0x3e')]['commandName'])return;if(_0x4903f0[_0x3b32('0x9')])return void _0x5f2654[_0x3b32('0x3c')]();if(!_0x5d6c1d[_0x3b32('0x44')][_0x3b32('0x1a')](_0x4903f0[_0x3b32('0x1d')],_0x5f2654['name']))return;const _0x244af4=_0x4903f0[_0x3b32('0x1d')]['start'][_0x3b32('0x3d')],_0x38daf3=_0x4903f0['markerRange'][_0x3b32('0x46')]['nodeBefore'],_0x30992d=_0x244af4[_0x3b32('0x24')][_0x3b32('0x24')],{column:_0x2fb0b9}=_0x4be1f4[_0x3b32('0x15')](_0x244af4),{column:_0x402341}=_0x4be1f4[_0x3b32('0x15')](_0x38daf3);for(let _0x556aa6=_0x2fb0b9;_0x556aa6<=_0x402341;_0x556aa6++){const _0x178982=_0x4be1f4[_0x3b32('0x4a')](_0x30992d,{'column':_0x556aa6,'includeAllSlots':!0x1});for(const _0x2d7c6b of _0x178982){const _0x5ef385=_0x2d7c6b[_0x3b32('0x51')],_0x3afa22=_0x5d6c1d[_0x3b32('0x8')][_0x3b32('0x26')](_0x5ef385);_0x5d6c1d[_0x3b32('0x3b')]['addClass'](_0x3b32('0x2d')+_0x45b4e8,_0x3afa22),_0x4b1d3a&&_0x5d6c1d[_0x3b32('0x3b')][_0x3b32('0x27')](_0x3b32('0x6'),_0x158866,_0x3afa22),_0x5d6c1d[_0x3b32('0x8')]['bindElementToMarker'](_0x3afa22,_0x4903f0[_0x3b32('0x1')]),_0x14ad39&&(_0x287c4d[_0x3b32('0x13')][_0x3b32('0x4c')](_0x4903f0['markerName'])?_0x5d6c1d['writer']['addClass'](_0x3b32('0x4f'),_0x3afa22):_0x5d6c1d[_0x3b32('0x3b')][_0x3b32('0x7')](_0x3b32('0x4f'),_0x3afa22));}}};}_0x287c4d[_0x3b32('0x1b')](_0x3b32('0x23'),(_0xab16d2,_0x471c1c)=>{const _0x58bebe=_0x4be1f4[_0x3b32('0x25')](_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x2f')][_0x3b32('0x33')]),_0xf6d528=_0x4be1f4['getRowIndexes'](_0x58bebe),_0x45c03e=_0x58bebe[0x0][_0x3b32('0xe')](_0x3b32('0x19')),_0x35b7aa=_0x45c03e[_0x3b32('0x22')](_0x3b32('0x4b'))||0x0,_0xc6b258=_0x471c1c&&null!==_0x471c1c[_0x3b32('0x2e')]?_0x471c1c[_0x3b32('0x2e')]:!_0x2b60d8[_0x3b32('0x43')]['get'](_0x3b32('0x23'))[_0x3b32('0x1e')],_0x4e66d9=_0xc6b258?_0xf6d528[_0x3b32('0x20')]:_0xf6d528[_0x3b32('0x38')],_0x2c92de=_0x45c03e[_0x3b32('0x4')](_0x4e66d9);let _0x316641;if(_0xc6b258){const _0xe13de7=_0x45c03e[_0x3b32('0x4')](_0x35b7aa);if(_0x2c92de[_0x3b32('0x37')]<_0xe13de7['index'])return;_0x316641=_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x17')](_0x2b60d8['model'][_0x3b32('0x32')](_0xe13de7[_0x3b32('0x4')](0x0)),_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x39')](_0x2c92de[_0x3b32('0x4')](_0x2c92de[_0x3b32('0x2')]-0x1)));}else{const _0x5ae620=_0x45c03e['getChild'](_0x35b7aa-0x1);if(!_0x5ae620)return;_0x316641=_0x2b60d8['model'][_0x3b32('0x17')](_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x32')](_0x2c92de['getChild'](0x0)),_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x39')](_0x5ae620[_0x3b32('0x4')](_0x5ae620[_0x3b32('0x2')]-0x1)));}_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x2a')](()=>{_0x287c4d['markBlockFormat'](_0x316641,{'commandName':_0x3b32('0x23'),'commandParams':[{'forceValue':_0xc6b258}]},[],'setTableRowHeader');});}),_0x287c4d[_0x3b32('0x1b')](_0x3b32('0x50'),(_0xde6481,_0x1d1b3c)=>{const _0x3aaf40=_0x2b60d8[_0x3b32('0x49')][_0x3b32('0xa')]('TableUtils'),_0x40d6e2=_0x3aaf40['getSelectionAffectedTableCells'](_0x2b60d8['model']['document']['selection']),_0x58f826=_0x3aaf40['getColumnIndexes'](_0x40d6e2),_0x570ecf=_0x40d6e2[0x0]['findAncestor'](_0x3b32('0x19')),_0x55cfc9=_0x570ecf['getAttribute'](_0x3b32('0xb'))||0x0,_0x2c43c2=_0x1d1b3c&&null!==_0x1d1b3c[_0x3b32('0x2e')]?_0x1d1b3c[_0x3b32('0x2e')]:!_0x2b60d8[_0x3b32('0x43')][_0x3b32('0xa')](_0x3b32('0x50'))[_0x3b32('0x1e')];let _0x2738a7;const _0x29c4fd=_0x570ecf[_0x3b32('0x4')](0x0),_0x426387=_0x2c43c2?_0x58f826['last']:_0x58f826[_0x3b32('0x38')],_0xdaf4eb=_0x3aaf40[_0x3b32('0x4a')](_0x570ecf,{'startRow':0x0,'column':_0x426387,'includeAllSlots':!0x1}),_0x8b0b3=Array[_0x3b32('0x36')](_0xdaf4eb)[0x0][_0x3b32('0x51')];if(_0x2c43c2){const _0x2f4113=_0x29c4fd[_0x3b32('0x4')](_0x55cfc9);if(_0x8b0b3[_0x3b32('0x4e')](_0x2f4113))return;_0x2738a7=_0x2b60d8['model'][_0x3b32('0x17')](_0x2b60d8[_0x3b32('0x29')]['createPositionBefore'](_0x2f4113),_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x39')](_0x8b0b3));}else{const _0x3cb9f9=_0x29c4fd[_0x3b32('0x4')](_0x55cfc9-0x1);if(!_0x3cb9f9)return;_0x2738a7=_0x2b60d8[_0x3b32('0x29')]['createRange'](_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x32')](_0x8b0b3),_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x39')](_0x3cb9f9));}_0x2b60d8[_0x3b32('0x29')]['change'](()=>{_0x287c4d[_0x3b32('0x3')](_0x2738a7,{'commandName':_0x3b32('0x50'),'commandParams':[{'forceValue':_0x2c43c2}]},[],_0x3b32('0x50'));});}),_0x2b60d8['editing'][_0x3b32('0x47')]['on'](_0x3b32('0x0'),_0x2cb40f(),{'priority':_0x3b32('0xd')}),_0x2b60d8[_0x3b32('0x3e')][_0x3b32('0x47')]['on'](_0x3b32('0x0'),(_0x1fa8af,_0x3cd83e,_0x389aaf)=>{_0x389aaf[_0x3b32('0x1c')][_0x3b32('0x2c')]&&_0x2cb40f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1fa8af,_0x3cd83e,_0x389aaf);},{'priority':_0x3b32('0xd')}),_0x2b60d8[_0x3b32('0x14')][_0x3b32('0x47')]['on']('removeMarker:suggestion',(_0x14673b,_0x19852d,_0xfccdf5)=>{const {type:_0x2850af,id:_0xf08398}=_0x287c4d[_0x3b32('0xc')](_0x19852d[_0x3b32('0x1')]),_0x1b5352=_0x287c4d['getSuggestion'](_0xf08398);if(!_0x1b5352[_0x3b32('0x3e')]||'setTableColumnHeader'!=_0x1b5352[_0x3b32('0x3e')][_0x3b32('0x12')])return;const _0x521045=_0xfccdf5['mapper'][_0x3b32('0x10')](_0x19852d[_0x3b32('0x1')]);if(_0x521045)for(const _0x1cd703 of _0x521045)_0xfccdf5[_0x3b32('0x3b')][_0x3b32('0x7')](_0x3b32('0x2d')+_0x2850af,_0x1cd703),_0xfccdf5[_0x3b32('0x3b')][_0x3b32('0x7')](_0x3b32('0x4f'),_0x1cd703),_0xfccdf5[_0x3b32('0x3b')][_0x3b32('0x16')](_0x3b32('0x6'),_0x1cd703),_0xfccdf5[_0x3b32('0x8')][_0x3b32('0x42')](_0x1cd703,_0x19852d['markerName']);},{'priority':_0x3b32('0xd')}),_0x287c4d[_0x3b32('0x5')][_0x3b32('0x28')](_0x17a51b=>{const {data:_0x2260a8}=_0x17a51b;if(_0x2260a8){if(_0x3b32('0x23')==_0x2260a8['commandName']){const _0x32725f=_0x2260a8[_0x3b32('0x21')][0x0][_0x3b32('0x2e')];return _0x2b1662(_0x38158d(_0x316bfe,_0x32725f?_0x3b32('0xf'):'FORMAT_REGULAR_ROW'));}if(_0x3b32('0x50')==_0x2260a8[_0x3b32('0x12')]){const _0x4997ce=_0x2260a8[_0x3b32('0x21')][0x0]['forceValue'];return _0x2b1662(_0x38158d(_0x316bfe,_0x4997ce?'FORMAT_HEADER_COLUMN':_0x3b32('0x35')));}}function _0x2b1662(_0x1933f2){return{'type':_0x3b32('0x18'),'content':_0x38158d(_0x316bfe,_0x3b32('0x4d'),_0x1933f2)};}});const _0x232816=_0x3045ba['_acceptFormatSuggestionCallbackFactory']();_0x287c4d[_0x3b32('0x3a')][_0x3b32('0x30')]('formatBlock',_0x3b32('0x23'),_0x3b32('0x11'),_0x232816),_0x287c4d[_0x3b32('0x3a')][_0x3b32('0x30')](_0x3b32('0x31'),_0x3b32('0x50'),'accept',_0x232816);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5910=['_descriptionFactory','model','_tablePostFixingSubtypes','TableEditing','mergeTableCellRight','cell','createRangeOn','format','fromRange','registerDescriptionCallback','mergeTableCellUp','createTableWalker','push','insertion','document','splitTableCellVertically','editor','$graveyard','_areSelectedCellsMergable','map','find','direction','deletion','getFirstPosition','commandName','set:isEnabled','execute','TableUtils','plugins','*Split\x20cell:*\x20vertically','stop','*Merge\x20cells*','formatBlock','horizontally','element','value','detach','TrackChangesEditing','findAncestor','*Split\x20cell:*\x20horizontally','markMultiRangeBlockFormat','subType','mergeTableCellDown','length','forceDefaultExecution','mergeTableCells','getSuggestions','commands','has','markBlockFormat','from','filter','enableCommand','containsRange','accept','locale','_suggestionFactory','selection','rootName','isEnabled','registerCustomCallback','author','add','type','_acceptFormatSuggestionCallbackFactory','get','splitTableCellHorizontally','setSelection','change','table','getSelectionAffectedTableCells','tableCell','mergeTableCellLeft','size','getRanges','_isForcedDefaultExecutionBlock'];(function(_0x559458,_0x591095){const _0x13bb0f=function(_0x55760b){while(--_0x55760b){_0x559458['push'](_0x559458['shift']());}};_0x13bb0f(++_0x591095);}(_0x5910,0x1cb));const _0x13bb=function(_0x559458,_0x591095){_0x559458=_0x559458-0x0;let _0x13bb0f=_0x5910[_0x559458];return _0x13bb0f;};import{Plugin as _0x37ab41}from'ckeditor5/src/core';import _0x522c26 from'./table';import{LiveRange as _0x2ab4ee}from'ckeditor5/src/engine';import{getTranslation as _0x591b62}from'../utils/common-translations';export default class mt extends _0x37ab41{static get['requires'](){return[_0x522c26];}['afterInit'](){const _0x53673f=this[_0x13bb('0xd')],_0x427a4b=_0x53673f[_0x13bb('0x4a')]['document'][_0x13bb('0x36')],_0x576ca4=_0x53673f[_0x13bb('0x34')];if(!_0x53673f[_0x13bb('0x19')][_0x13bb('0x2d')](_0x13bb('0x0')))return;const _0x10f6e2=_0x53673f['plugins'][_0x13bb('0x3e')](_0x13bb('0x22')),_0x5c3367=_0x53673f[_0x13bb('0x19')]['get']('TableUtils'),_0x13f70f=_0x53673f[_0x13bb('0x19')]['get'](_0x522c26);_0x13f70f[_0x13bb('0x4b')][_0x13bb('0x9')](_0x13bb('0x2a')),_0x10f6e2['enableCommand'](_0x13bb('0x2a'),()=>{const _0x24983=_0x5c3367[_0x13bb('0x43')](_0x53673f[_0x13bb('0x4a')]['document'][_0x13bb('0x36')]);_0x53673f['model'][_0x13bb('0x41')](()=>{_0x10f6e2[_0x13bb('0x25')](_0x24983,{'commandName':_0x13bb('0x2a'),'commandParams':[]},[],_0x13bb('0x2a'));});}),_0x53673f[_0x13bb('0x2c')][_0x13bb('0x3e')](_0x13bb('0x2a'))['on'](_0x13bb('0x17'),(_0x373ede,_0x5dfbdf)=>{_0x53673f[_0x13bb('0x2c')][_0x13bb('0x3e')]('trackChanges')[_0x13bb('0x20')]&&(_0x5dfbdf[_0x13bb('0x28')]>0x0&&_0x5dfbdf[_0x5dfbdf[_0x13bb('0x28')]-0x1]&&_0x5dfbdf[_0x5dfbdf[_0x13bb('0x28')]-0x1][_0x13bb('0x29')]||_0x10f6e2[_0x13bb('0x48')]||this[_0x13bb('0xf')]()||_0x373ede[_0x13bb('0x1b')]());},{'priority':'highest'});for(const _0x59acfe of['mergeTableCellUp','mergeTableCellRight',_0x13bb('0x27'),_0x13bb('0x45')]){const _0x2a65fd=_0x53673f[_0x13bb('0x2c')][_0x13bb('0x3e')](_0x59acfe);_0x10f6e2[_0x13bb('0x31')](_0x59acfe,()=>{const _0x1e584a=_0x53673f[_0x13bb('0x4a')]['document'][_0x13bb('0x36')]['getFirstPosition']()['getAncestors']()[_0x13bb('0x11')](_0x1e4850=>_0x1e4850['is'](_0x13bb('0x1f'),_0x13bb('0x44'))),_0x499e08=_0x2a65fd[_0x13bb('0x20')];_0x53673f['model'][_0x13bb('0x41')](()=>{_0x10f6e2[_0x13bb('0x25')]([_0x1e584a,_0x499e08],{'commandName':'mergeTableCells','commandParams':[]},[],_0x13bb('0x2a'));});});}for(const _0x58d6b4 of[_0x13bb('0xc'),_0x13bb('0x3f')]){const _0x19923c=_0x53673f[_0x13bb('0x2c')]['get'](_0x58d6b4);_0x10f6e2[_0x13bb('0x31')](_0x58d6b4,()=>{const _0x5d8578=_0x5c3367['getSelectionAffectedTableCells'](_0x53673f[_0x13bb('0x4a')]['document']['selection'])[0x0],_0x4a13a9=_0x5d8578[_0x13bb('0x23')](_0x13bb('0x42')),{column:_0x472c7d,row:_0x1634b2}=_0x5c3367['getCellLocation'](_0x5d8578);let _0x3c4da0=[];if(_0x13bb('0x1e')==_0x19923c[_0x13bb('0x12')]){const _0x3e8f00=_0x5c3367[_0x13bb('0x8')](_0x4a13a9,{'startRow':_0x1634b2,'endRow':_0x1634b2,'includeAllSlots':!0x0});_0x3c4da0=Array[_0x13bb('0x2f')](_0x3e8f00)[_0x13bb('0x10')](_0x5137b9=>_0x5137b9[_0x13bb('0x2')]);}else{const _0x544e97=_0x5c3367[_0x13bb('0x8')](_0x4a13a9,{'column':_0x472c7d,'includeAllSlots':!0x0});_0x3c4da0=Array[_0x13bb('0x2f')](_0x544e97)[_0x13bb('0x10')](_0x26120e=>_0x26120e['cell']);}_0x53673f[_0x13bb('0x4a')][_0x13bb('0x41')](_0x5ea129=>{_0x10f6e2[_0x13bb('0x2e')](_0x5ea129[_0x13bb('0x3')](_0x5d8578),{'commandName':_0x58d6b4,'commandParams':[]},_0x3c4da0,_0x58d6b4);});});}_0x10f6e2[_0x13bb('0x49')][_0x13bb('0x6')](_0x33dfcb=>{const {data:_0x25cf3e}=_0x33dfcb;if(_0x25cf3e)return _0x13bb('0x2a')==_0x25cf3e['commandName']?{'type':'format','content':_0x591b62(_0x576ca4,_0x13bb('0x1c'))}:void 0x0;}),_0x10f6e2[_0x13bb('0x49')][_0x13bb('0x6')](_0x52af98=>{const {data:_0x2c6b34}=_0x52af98;if(_0x2c6b34)return'splitTableCellVertically'==_0x2c6b34['commandName']?{'type':_0x13bb('0x4'),'content':_0x591b62(_0x576ca4,_0x13bb('0x1a'))}:_0x13bb('0x3f')==_0x2c6b34[_0x13bb('0x15')]?{'type':_0x13bb('0x4'),'content':_0x591b62(_0x576ca4,_0x13bb('0x24'))}:void 0x0;});const _0x1d0dab=_0x13f70f[_0x13bb('0x3d')]();for(const _0x37405b of[_0x13bb('0x7'),_0x13bb('0x1'),_0x13bb('0x27'),'mergeTableCellLeft'])_0x10f6e2[_0x13bb('0x35')][_0x13bb('0x39')](_0x13bb('0x1d'),_0x37405b,_0x13bb('0x33'),_0x1d0dab);for(const _0x2cc253 of[_0x13bb('0xc'),_0x13bb('0x3f')])_0x10f6e2[_0x13bb('0x35')][_0x13bb('0x39')](_0x13bb('0x1d'),_0x2cc253,'accept',_0x1d0dab);_0x10f6e2[_0x13bb('0x35')]['registerCustomCallback'](_0x13bb('0x1d'),_0x13bb('0x2a'),_0x13bb('0x33'),_0x2d89eb=>{_0x53673f[_0x13bb('0x4a')][_0x13bb('0x41')](_0x3d75f7=>{const _0x4214eb=Array['from'](_0x427a4b['getRanges']())['map'](_0x1a1056=>_0x2ab4ee[_0x13bb('0x5')](_0x1a1056));_0x3d75f7[_0x13bb('0x40')](_0x2d89eb),_0x53673f[_0x13bb('0x2c')][_0x13bb('0x3e')]('mergeTableCells')['refresh'](),_0x53673f[_0x13bb('0x17')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1b50b2=_0x4214eb[_0x13bb('0x30')](_0x2207ab=>_0x13bb('0xe')!=_0x2207ab['root'][_0x13bb('0x37')]);_0x1b50b2[_0x13bb('0x28')]>0x0&&_0x3d75f7['setSelection'](_0x1b50b2);for(const _0x35a7f6 of _0x4214eb)_0x35a7f6[_0x13bb('0x21')]();});});for(const _0x27c90a of['mergeTableCellUp',_0x13bb('0x27'),_0x13bb('0x45'),_0x13bb('0x1')]){const _0x105ce=_0x53673f['commands'][_0x13bb('0x3e')](_0x27c90a);_0x105ce['on'](_0x13bb('0x16'),(_0x131c87,_0x20bd90,_0x5df123)=>{if(_0x5df123){const _0x117ed4=_0x53673f[_0x13bb('0x4a')][_0x13bb('0xb')]['selection'][_0x13bb('0x14')]()['getAncestors']()['find'](_0x21aea1=>_0x21aea1['is'](_0x13bb('0x1f'),'tableCell'));this['_areMergableCells'](_0x105ce[_0x13bb('0x20')],_0x117ed4)||(_0x131c87['return']=!0x1,_0x131c87[_0x13bb('0x1b')]());}},{'priority':'low'});}}[_0x13bb('0xf')](){const _0x3943ee=this['editor']['commands'][_0x13bb('0x3e')](_0x13bb('0x2a')),_0x322eb2=this['editor'][_0x13bb('0x19')][_0x13bb('0x3e')](_0x13bb('0x18'));if(!_0x3943ee[_0x13bb('0x38')])return!0x1;const _0x1f96e6=_0x322eb2['getSelectionAffectedTableCells'](this[_0x13bb('0xd')][_0x13bb('0x4a')][_0x13bb('0xb')][_0x13bb('0x36')]);for(const _0x46613f of _0x1f96e6)for(const _0x5a2070 of _0x1f96e6)if(_0x46613f!=_0x5a2070&&!this['_areMergableCells'](_0x46613f,_0x5a2070))return!0x1;return!0x0;}['_areMergableCells'](_0x22cf50,_0xc82f2e){const _0x27c6bd=this[_0x13bb('0xd')][_0x13bb('0x19')][_0x13bb('0x3e')](_0x13bb('0x22')),_0x8df74b=this[_0x13bb('0xd')]['model']['createRangeOn'](_0x22cf50),_0x3117e8=this[_0x13bb('0xd')][_0x13bb('0x4a')][_0x13bb('0x3')](_0xc82f2e),_0x31b477=new Set(),_0x2aa5f8=new Set();for(const _0x53e03d of _0x27c6bd[_0x13bb('0x2b')]())if((_0x13bb('0xa')==_0x53e03d[_0x13bb('0x3c')]||_0x13bb('0x13')==_0x53e03d[_0x13bb('0x3c')]||'mergeTableCells'==_0x53e03d[_0x13bb('0x26')])&&_0x53e03d['isInContent'])for(const _0x35bf7f of _0x53e03d[_0x13bb('0x47')]())_0x35bf7f[_0x13bb('0x32')](_0x8df74b,!0x0)&&_0x31b477[_0x13bb('0x3b')](_0x53e03d['type']+':'+_0x53e03d['author']['id']),_0x35bf7f[_0x13bb('0x32')](_0x3117e8,!0x0)&&_0x2aa5f8['add'](_0x53e03d[_0x13bb('0x3c')]+':'+_0x53e03d[_0x13bb('0x3a')]['id']);if(_0x31b477[_0x13bb('0x46')]!=_0x2aa5f8['size'])return!0x1;for(const _0x51567f of _0x31b477)if(!_0x2aa5f8['has'](_0x51567f))return!0x1;return!0x0;}}
23
+ const _0x3211=['insertion','getSuggestions','TableUtils','getFirstPosition','length','mergeTableCells','forceDefaultExecution','has','isInContent','push','getAncestors','get','low','model','$graveyard','return','trackChanges','registerCustomCallback','find','stop','enableCommand','author','editor','TableEditing','document','containsRange','set:isEnabled','from','getRanges','format','_areSelectedCellsMergable','_isForcedDefaultExecutionBlock','createTableWalker','cell','change','_suggestionFactory','getSelectionAffectedTableCells','commandName','*Merge\x20cells*','_tablePostFixingSubtypes','size','splitTableCellVertically','_descriptionFactory','rootName','add','accept','registerDescriptionCallback','requires','mergeTableCellLeft','*Split\x20cell:*\x20vertically','mergeTableCellRight','table','tableCell','refresh','plugins','setSelection','*Split\x20cell:*\x20horizontally','element','markMultiRangeBlockFormat','type','getCellLocation','mergeTableCellDown','selection','isEnabled','TrackChangesEditing','value','detach','fromRange','filter','createRangeOn','mergeTableCellUp','splitTableCellHorizontally','commands','markBlockFormat','map','_areMergableCells','execute','formatBlock','locale'];(function(_0x480e3c,_0x3211aa){const _0x293ab0=function(_0x1a85f5){while(--_0x1a85f5){_0x480e3c['push'](_0x480e3c['shift']());}};_0x293ab0(++_0x3211aa);}(_0x3211,0x192));const _0x293a=function(_0x480e3c,_0x3211aa){_0x480e3c=_0x480e3c-0x0;let _0x293ab0=_0x3211[_0x480e3c];return _0x293ab0;};import{Plugin as _0x1cccc9}from'ckeditor5/src/core';import _0x3b97b1 from'./table';import{LiveRange as _0x9e4797}from'ckeditor5/src/engine';import{getTranslation as _0x4949c7}from'../utils/common-translations';export default class dt extends _0x1cccc9{static get[_0x293a('0x28')](){return[_0x3b97b1];}['afterInit'](){const _0x4f17ab=this['editor'],_0x56f0b4=_0x4f17ab['model'][_0x293a('0x11')][_0x293a('0x37')],_0x23c268=_0x4f17ab[_0x293a('0x47')];if(!_0x4f17ab[_0x293a('0x2f')][_0x293a('0x0')](_0x293a('0x10')))return;const _0x357492=_0x4f17ab['plugins']['get'](_0x293a('0x39')),_0x1dfbc1=_0x4f17ab[_0x293a('0x2f')][_0x293a('0x4')]('TableUtils'),_0x1428f0=_0x4f17ab[_0x293a('0x2f')][_0x293a('0x4')](_0x3b97b1);_0x1428f0[_0x293a('0x20')][_0x293a('0x2')](_0x293a('0x4d')),_0x357492['enableCommand'](_0x293a('0x4d'),()=>{const _0x337aec=_0x1dfbc1[_0x293a('0x1d')](_0x4f17ab[_0x293a('0x6')]['document']['selection']);_0x4f17ab['model'][_0x293a('0x1b')](()=>{_0x357492['markMultiRangeBlockFormat'](_0x337aec,{'commandName':_0x293a('0x4d'),'commandParams':[]},[],_0x293a('0x4d'));});}),_0x4f17ab[_0x293a('0x41')]['get'](_0x293a('0x4d'))['on'](_0x293a('0x45'),(_0x49a3a2,_0x4fa82a)=>{_0x4f17ab[_0x293a('0x41')][_0x293a('0x4')](_0x293a('0x9'))[_0x293a('0x3a')]&&(_0x4fa82a[_0x293a('0x4c')]>0x0&&_0x4fa82a[_0x4fa82a[_0x293a('0x4c')]-0x1]&&_0x4fa82a[_0x4fa82a[_0x293a('0x4c')]-0x1][_0x293a('0x4e')]||_0x357492[_0x293a('0x18')]||this['_areSelectedCellsMergable']()||_0x49a3a2[_0x293a('0xc')]());},{'priority':'highest'});for(const _0x1309ba of['mergeTableCellUp',_0x293a('0x2b'),_0x293a('0x36'),_0x293a('0x29')]){const _0x2c06ac=_0x4f17ab[_0x293a('0x41')][_0x293a('0x4')](_0x1309ba);_0x357492[_0x293a('0xd')](_0x1309ba,()=>{const _0x53a6a9=_0x4f17ab[_0x293a('0x6')][_0x293a('0x11')][_0x293a('0x37')][_0x293a('0x4b')]()[_0x293a('0x3')]()[_0x293a('0xb')](_0x6e7fe=>_0x6e7fe['is'](_0x293a('0x32'),_0x293a('0x2d'))),_0x1643b5=_0x2c06ac[_0x293a('0x3a')];_0x4f17ab[_0x293a('0x6')][_0x293a('0x1b')](()=>{_0x357492[_0x293a('0x33')]([_0x53a6a9,_0x1643b5],{'commandName':_0x293a('0x4d'),'commandParams':[]},[],'mergeTableCells');});});}for(const _0x299b39 of[_0x293a('0x22'),_0x293a('0x40')]){const _0x494b56=_0x4f17ab[_0x293a('0x41')][_0x293a('0x4')](_0x299b39);_0x357492['enableCommand'](_0x299b39,()=>{const _0x1d9a67=_0x1dfbc1[_0x293a('0x1d')](_0x4f17ab['model'][_0x293a('0x11')][_0x293a('0x37')])[0x0],_0x172241=_0x1d9a67['findAncestor'](_0x293a('0x2c')),{column:_0x54d174,row:_0x1acd30}=_0x1dfbc1[_0x293a('0x35')](_0x1d9a67);let _0x36d8a4=[];if('horizontally'==_0x494b56['direction']){const _0x1c8e23=_0x1dfbc1[_0x293a('0x19')](_0x172241,{'startRow':_0x1acd30,'endRow':_0x1acd30,'includeAllSlots':!0x0});_0x36d8a4=Array[_0x293a('0x14')](_0x1c8e23)[_0x293a('0x43')](_0x33a640=>_0x33a640[_0x293a('0x1a')]);}else{const _0x21aab9=_0x1dfbc1['createTableWalker'](_0x172241,{'column':_0x54d174,'includeAllSlots':!0x0});_0x36d8a4=Array[_0x293a('0x14')](_0x21aab9)[_0x293a('0x43')](_0x5a2e15=>_0x5a2e15[_0x293a('0x1a')]);}_0x4f17ab[_0x293a('0x6')][_0x293a('0x1b')](_0x47209d=>{_0x357492[_0x293a('0x42')](_0x47209d[_0x293a('0x3e')](_0x1d9a67),{'commandName':_0x299b39,'commandParams':[]},_0x36d8a4,_0x299b39);});});}_0x357492[_0x293a('0x23')][_0x293a('0x27')](_0x132740=>{const {data:_0x11ba47}=_0x132740;if(_0x11ba47)return'mergeTableCells'==_0x11ba47['commandName']?{'type':'format','content':_0x4949c7(_0x23c268,_0x293a('0x1f'))}:void 0x0;}),_0x357492[_0x293a('0x23')][_0x293a('0x27')](_0x58bd88=>{const {data:_0x289784}=_0x58bd88;if(_0x289784)return'splitTableCellVertically'==_0x289784[_0x293a('0x1e')]?{'type':'format','content':_0x4949c7(_0x23c268,_0x293a('0x2a'))}:_0x293a('0x40')==_0x289784['commandName']?{'type':_0x293a('0x16'),'content':_0x4949c7(_0x23c268,_0x293a('0x31'))}:void 0x0;});const _0x1d8ea1=_0x1428f0['_acceptFormatSuggestionCallbackFactory']();for(const _0x206bf8 of[_0x293a('0x3f'),_0x293a('0x2b'),_0x293a('0x36'),_0x293a('0x29')])_0x357492['_suggestionFactory'][_0x293a('0xa')](_0x293a('0x46'),_0x206bf8,_0x293a('0x26'),_0x1d8ea1);for(const _0x1a583b of[_0x293a('0x22'),'splitTableCellHorizontally'])_0x357492[_0x293a('0x1c')][_0x293a('0xa')](_0x293a('0x46'),_0x1a583b,'accept',_0x1d8ea1);_0x357492[_0x293a('0x1c')]['registerCustomCallback'](_0x293a('0x46'),_0x293a('0x4d'),'accept',_0x46676c=>{_0x4f17ab[_0x293a('0x6')]['change'](_0x352721=>{const _0x56760a=Array[_0x293a('0x14')](_0x56f0b4[_0x293a('0x15')]())[_0x293a('0x43')](_0x4f82f7=>_0x9e4797[_0x293a('0x3c')](_0x4f82f7));_0x352721[_0x293a('0x30')](_0x46676c),_0x4f17ab['commands']['get']('mergeTableCells')[_0x293a('0x2e')](),_0x4f17ab['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x584417=_0x56760a[_0x293a('0x3d')](_0x247699=>_0x293a('0x7')!=_0x247699['root'][_0x293a('0x24')]);_0x584417[_0x293a('0x4c')]>0x0&&_0x352721[_0x293a('0x30')](_0x584417);for(const _0x56e0c5 of _0x56760a)_0x56e0c5[_0x293a('0x3b')]();});});for(const _0x3f1049 of[_0x293a('0x3f'),_0x293a('0x36'),_0x293a('0x29'),'mergeTableCellRight']){const _0xee5f34=_0x4f17ab[_0x293a('0x41')][_0x293a('0x4')](_0x3f1049);_0xee5f34['on'](_0x293a('0x13'),(_0x1c65e6,_0x66c182,_0x5bcbb9)=>{if(_0x5bcbb9){const _0x2119a1=_0x4f17ab['model'][_0x293a('0x11')]['selection'][_0x293a('0x4b')]()['getAncestors']()[_0x293a('0xb')](_0x52ab8e=>_0x52ab8e['is'](_0x293a('0x32'),'tableCell'));this['_areMergableCells'](_0xee5f34['value'],_0x2119a1)||(_0x1c65e6[_0x293a('0x8')]=!0x1,_0x1c65e6['stop']());}},{'priority':_0x293a('0x5')});}}[_0x293a('0x17')](){const _0x1f277a=this['editor'][_0x293a('0x41')][_0x293a('0x4')](_0x293a('0x4d')),_0xb82bbf=this['editor'][_0x293a('0x2f')][_0x293a('0x4')](_0x293a('0x4a'));if(!_0x1f277a[_0x293a('0x38')])return!0x1;const _0x41a2c7=_0xb82bbf['getSelectionAffectedTableCells'](this[_0x293a('0xf')]['model'][_0x293a('0x11')]['selection']);for(const _0x4bb772 of _0x41a2c7)for(const _0x15e69b of _0x41a2c7)if(_0x4bb772!=_0x15e69b&&!this[_0x293a('0x44')](_0x4bb772,_0x15e69b))return!0x1;return!0x0;}[_0x293a('0x44')](_0x2fbcd4,_0x1f71d8){const _0x4a9ba4=this[_0x293a('0xf')][_0x293a('0x2f')][_0x293a('0x4')]('TrackChangesEditing'),_0x1f8c02=this[_0x293a('0xf')][_0x293a('0x6')][_0x293a('0x3e')](_0x2fbcd4),_0x260ece=this[_0x293a('0xf')][_0x293a('0x6')][_0x293a('0x3e')](_0x1f71d8),_0x146dd9=new Set(),_0x458db7=new Set();for(const _0x54e107 of _0x4a9ba4[_0x293a('0x49')]())if((_0x293a('0x48')==_0x54e107[_0x293a('0x34')]||'deletion'==_0x54e107[_0x293a('0x34')]||'mergeTableCells'==_0x54e107['subType'])&&_0x54e107[_0x293a('0x1')])for(const _0x4348e0 of _0x54e107['getRanges']())_0x4348e0['containsRange'](_0x1f8c02,!0x0)&&_0x146dd9['add'](_0x54e107[_0x293a('0x34')]+':'+_0x54e107[_0x293a('0xe')]['id']),_0x4348e0[_0x293a('0x12')](_0x260ece,!0x0)&&_0x458db7[_0x293a('0x25')](_0x54e107[_0x293a('0x34')]+':'+_0x54e107['author']['id']);if(_0x146dd9[_0x293a('0x21')]!=_0x458db7[_0x293a('0x21')])return!0x1;for(const _0x403d01 of _0x146dd9)if(!_0x458db7[_0x293a('0x0')](_0x403d01))return!0x1;return!0x0;}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/tableofcontents
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for the Table of contents feature.
7
+ */
8
+ export default class TrackChangesTableOfContents extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x429a=['plugins','afterInit','get','ELEMENT_TABLE_OF_CONTENTS','enableCommand','editor','commands','registerElementLabel','_descriptionFactory','TrackChangesEditing','insertTableOfContents','tableOfContents'];(function(_0x564e31,_0x429a6c){const _0x58c325=function(_0x26285a){while(--_0x26285a){_0x564e31['push'](_0x564e31['shift']());}};_0x58c325(++_0x429a6c);}(_0x429a,0x1ce));const _0x58c3=function(_0x564e31,_0x429a6c){_0x564e31=_0x564e31-0x0;let _0x58c325=_0x429a[_0x564e31];return _0x58c325;};import{Plugin as _0x9da20b}from'ckeditor5/src/core';import{getTranslation as _0x543cb4}from'../utils/common-translations';export default class bt extends _0x9da20b{[_0x58c3('0x7')](){const _0x4e8be4=this[_0x58c3('0xb')];if(!_0x4e8be4[_0x58c3('0x0')][_0x58c3('0x8')](_0x58c3('0x4')))return;_0x4e8be4[_0x58c3('0x6')]['get'](_0x58c3('0x3'))[_0x58c3('0xa')](_0x58c3('0x4'));const _0x220d64=_0x4e8be4['plugins']['get'](_0x58c3('0x3')),_0x181515=_0x4e8be4['locale'];_0x220d64[_0x58c3('0x2')][_0x58c3('0x1')](_0x58c3('0x5'),_0x36d10e=>_0x543cb4(_0x181515,_0x58c3('0x9'),_0x36d10e));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ba7=['join','registerCustomCallback','tableCellProperties','enableCommand','_suggestionFactory','tableCellPadding','removeAttribute','tableCellVerticalAlignment','TableCellPropertiesEditing','_handlePropertyChange','tableHeight','tableBackgroundColor','handleDiscardAction','tableAlignment','TrackChangesTableProperties','tableCellBorderWidth','data','format','enqueueChange','editor','_getSuggestion','tableCellHorizontalAlignment','tableBorderColor','start','tableCellBorderColor','getAttribute','getSuggestionCallback','getContainedElement','pluginName','plugins','commandParams','getFirstPosition','discard','afterInit','table','*Format:*\x20change\x20table\x20cell\x20properties','setAttribute','handleSuggestionDescription','tableProperties','selection','getSelectionAffectedTableCells','TablePropertiesEditing','change','model','*Format:*\x20change\x20table\x20properties','findAncestor','tableBorderWidth','get','TableUtils','has','subType','TrackChangesEditing','getSuggestions','accept','registerDescriptionCallback','formatBlock','tableWidth','locale','tableCellHeight','tableCellWidth','document'];(function(_0x5063a4,_0x4ba720){const _0x4df3af=function(_0x4b051d){while(--_0x4b051d){_0x5063a4['push'](_0x5063a4['shift']());}};_0x4df3af(++_0x4ba720);}(_0x4ba7,0x1b6));const _0x4df3=function(_0x5063a4,_0x4ba720){_0x5063a4=_0x5063a4-0x0;let _0x4df3af=_0x4ba7[_0x5063a4];return _0x4df3af;};import{Plugin as _0x3e56b8}from'ckeditor5/src/core';import{getTranslation as _0x37477f}from'../utils/common-translations';export default class It extends _0x3e56b8{constructor(_0x2e3371){super(_0x2e3371),this[_0x4df3('0x1b')]=[_0x4df3('0xb'),'tableBorderStyle',_0x4df3('0x23'),_0x4df3('0x2'),_0x4df3('0x2d'),_0x4df3('0x3c'),_0x4df3('0x0')],this[_0x4df3('0x34')]=[_0x4df3('0xd'),'tableCellBorderStyle',_0x4df3('0x4'),_0x4df3('0x37'),_0x4df3('0x30'),_0x4df3('0x2f'),'tableCellBackgroundColor',_0x4df3('0xa'),_0x4df3('0x39')];}static get[_0x4df3('0x11')](){return _0x4df3('0x3');}[_0x4df3('0x16')](){const _0x203bfd=this[_0x4df3('0x8')][_0x4df3('0x12')][_0x4df3('0x24')](_0x4df3('0x28'));if(this[_0x4df3('0x8')][_0x4df3('0x12')]['has'](_0x4df3('0x1e'))){for(const _0x248990 of this[_0x4df3('0x1b')])_0x203bfd[_0x4df3('0x35')](_0x248990,(_0x11fd8c,_0x4a897a)=>{const _0x4fd53a=this[_0x4df3('0x8')][_0x4df3('0x20')][_0x4df3('0x31')][_0x4df3('0x1c')][_0x4df3('0x14')]()[_0x4df3('0x22')](_0x4df3('0x17'));this['_handlePropertyChange'](_0x248990,[_0x4fd53a],this['tableProperties'],_0x4df3('0x1b'),_0x11fd8c,_0x4a897a);});_0x203bfd[_0x4df3('0x36')][_0x4df3('0x33')](_0x4df3('0x2c'),_0x4df3('0x1b'),_0x4df3('0x2a'),_0x203bfd['_suggestionFactory']['getSuggestionCallback'](_0x4df3('0x2c'),null,_0x4df3('0x15'))),_0x203bfd[_0x4df3('0x36')][_0x4df3('0x33')]('formatBlock',_0x4df3('0x1b'),_0x4df3('0x15'),(_0xaf72a0,_0x355253)=>this[_0x4df3('0x1')](this[_0x4df3('0x1b')],_0xaf72a0,_0x355253)),_0x203bfd[_0x4df3('0x36')]['registerCustomCallback'](_0x4df3('0x2c'),_0x4df3('0x1b'),_0x4df3('0x32'),()=>!0x1);}if(this['editor'][_0x4df3('0x12')][_0x4df3('0x26')](_0x4df3('0x3a'))){for(const _0x33554e of this['tableCellProperties'])_0x203bfd[_0x4df3('0x35')](_0x33554e,(_0x4ca592,_0x5a7edb)=>{const _0x196404=this[_0x4df3('0x8')][_0x4df3('0x12')]['get'](_0x4df3('0x25'))[_0x4df3('0x1d')](this[_0x4df3('0x8')]['model']['document']['selection']);this[_0x4df3('0x3b')](_0x33554e,_0x196404,this['tableCellProperties'],_0x4df3('0x34'),_0x4ca592,_0x5a7edb);});_0x203bfd[_0x4df3('0x36')]['registerCustomCallback'](_0x4df3('0x2c'),_0x4df3('0x34'),_0x4df3('0x2a'),_0x203bfd[_0x4df3('0x36')][_0x4df3('0xf')](_0x4df3('0x2c'),null,_0x4df3('0x15'))),_0x203bfd[_0x4df3('0x36')][_0x4df3('0x33')](_0x4df3('0x2c'),'tableCellProperties',_0x4df3('0x15'),(_0x14414f,_0x472364)=>this[_0x4df3('0x1')](this[_0x4df3('0x34')],_0x14414f,_0x472364)),_0x203bfd['_suggestionFactory'][_0x4df3('0x33')](_0x4df3('0x2c'),'tableCellProperties','join',()=>!0x1);}_0x203bfd['_descriptionFactory'][_0x4df3('0x2b')](_0x597ca1=>this['handleSuggestionDescription'](_0x597ca1));}[_0x4df3('0x3b')](_0x1fc7b5,_0x5c65e2,_0x20b061,_0x4b97a4,_0x410588,_0x46c70b){const _0x2e06ed=this[_0x4df3('0x8')]['plugins'][_0x4df3('0x24')](_0x4df3('0x28'));this[_0x4df3('0x8')]['model'][_0x4df3('0x7')](_0x46c70b['batch'],()=>{for(const _0x20e304 of _0x5c65e2){if(this[_0x4df3('0x9')](_0x20e304,_0x4b97a4))_0x410588(_0x46c70b);else{const _0x24a8a0={};for(const _0x13fe9c of _0x20b061){const _0x1743c6=_0x20e304[_0x4df3('0xe')](_0x13fe9c);void 0x0!==_0x1743c6&&(_0x24a8a0[_0x13fe9c]=_0x1743c6);}_0x410588(_0x46c70b),_0x2e06ed['markBlockFormat'](_0x20e304,{'commandParams':[_0x24a8a0]},[],_0x4b97a4);}}});}['handleDiscardAction'](_0x30aa9b,_0x5f35a0,_0x401d37){const _0x325fba=_0x5f35a0[0x0][_0x4df3('0xc')]['nodeAfter'],_0x3df365=_0x401d37[_0x4df3('0x13')][0x0];this[_0x4df3('0x8')][_0x4df3('0x20')][_0x4df3('0x1f')](_0x4b545f=>{for(const _0x1c6a46 of _0x30aa9b)void 0x0!==_0x3df365[_0x1c6a46]?_0x4b545f[_0x4df3('0x19')](_0x1c6a46,_0x3df365[_0x1c6a46],_0x325fba):_0x4b545f[_0x4df3('0x38')](_0x1c6a46,_0x325fba);});}[_0x4df3('0x1a')](_0xdb6fdc){if(_0xdb6fdc[_0x4df3('0x5')])switch(_0xdb6fdc[_0x4df3('0x27')]){case _0x4df3('0x1b'):return{'type':_0x4df3('0x6'),'content':_0x37477f(this['editor'][_0x4df3('0x2e')],_0x4df3('0x21'))};case _0x4df3('0x34'):return{'type':_0x4df3('0x6'),'content':_0x37477f(this[_0x4df3('0x8')][_0x4df3('0x2e')],_0x4df3('0x18'))};}}['_getSuggestion'](_0x26dfc6,_0x153e98){const _0x4372bc=this[_0x4df3('0x8')]['plugins']['get']('TrackChangesEditing');for(const _0x113783 of _0x4372bc[_0x4df3('0x29')]({'skipNotAttached':!0x0})){const _0x1e58bf=_0x113783[_0x4df3('0x10')]();if(_0x113783[_0x4df3('0x27')]===_0x153e98&&_0x1e58bf===_0x26dfc6)return _0x113783;}return null;}}
23
+ const _0x3453=['model','getSelectionAffectedTableCells','registerDescriptionCallback','findAncestor','TableUtils','tableCellPadding','TrackChangesTableProperties','get','TrackChangesEditing','locale','commandParams','afterInit','*Format:*\x20change\x20table\x20properties','subType','tableCellWidth','tableBackgroundColor','getSuggestionCallback','tableCellHeight','registerCustomCallback','tableCellBorderWidth','document','tableBorderStyle','getAttribute','tableHeight','getContainedElement','*Format:*\x20change\x20table\x20cell\x20properties','tableWidth','tableCellProperties','pluginName','has','enqueueChange','tableBorderColor','handleSuggestionDescription','_suggestionFactory','removeAttribute','discard','tableCellVerticalAlignment','setAttribute','join','nodeAfter','tableCellBackgroundColor','markBlockFormat','_getSuggestion','plugins','tableProperties','tableCellHorizontalAlignment','_handlePropertyChange','TableCellPropertiesEditing','editor','handleDiscardAction','accept','formatBlock','enableCommand'];(function(_0x5d81ac,_0x345384){const _0x48535e=function(_0x4cd237){while(--_0x4cd237){_0x5d81ac['push'](_0x5d81ac['shift']());}};_0x48535e(++_0x345384);}(_0x3453,0x1ed));const _0x4853=function(_0x5d81ac,_0x345384){_0x5d81ac=_0x5d81ac-0x0;let _0x48535e=_0x3453[_0x5d81ac];return _0x48535e;};import{Plugin as _0x5d020e}from'ckeditor5/src/core';import{getTranslation as _0x283817}from'../utils/common-translations';export default class Dt extends _0x5d020e{constructor(_0x39189b){super(_0x39189b),this['tableProperties']=[_0x4853('0xf'),_0x4853('0x5'),'tableBorderWidth','tableAlignment',_0x4853('0xa'),_0x4853('0x7'),_0x4853('0x34')],this[_0x4853('0xb')]=['tableCellBorderColor','tableCellBorderStyle',_0x4853('0x3'),_0x4853('0x2a'),_0x4853('0x33'),_0x4853('0x1'),_0x4853('0x18'),_0x4853('0x1d'),_0x4853('0x14')];}static get[_0x4853('0xc')](){return _0x4853('0x2b');}[_0x4853('0x30')](){const _0x21cb6d=this[_0x4853('0x20')][_0x4853('0x1b')][_0x4853('0x2c')](_0x4853('0x2d'));if(this['editor'][_0x4853('0x1b')]['has']('TablePropertiesEditing')){for(const _0x58fb90 of this[_0x4853('0x1c')])_0x21cb6d[_0x4853('0x24')](_0x58fb90,(_0x2368f8,_0x15f9f9)=>{const _0x45bf45=this[_0x4853('0x20')][_0x4853('0x25')][_0x4853('0x4')]['selection']['getFirstPosition']()[_0x4853('0x28')]('table');this[_0x4853('0x1e')](_0x58fb90,[_0x45bf45],this[_0x4853('0x1c')],_0x4853('0x1c'),_0x2368f8,_0x15f9f9);});_0x21cb6d[_0x4853('0x11')][_0x4853('0x2')](_0x4853('0x23'),_0x4853('0x1c'),_0x4853('0x22'),_0x21cb6d['_suggestionFactory'][_0x4853('0x0')](_0x4853('0x23'),null,'discard')),_0x21cb6d[_0x4853('0x11')][_0x4853('0x2')](_0x4853('0x23'),_0x4853('0x1c'),_0x4853('0x13'),(_0x19adda,_0x448fd9)=>this['handleDiscardAction'](this[_0x4853('0x1c')],_0x19adda,_0x448fd9)),_0x21cb6d['_suggestionFactory'][_0x4853('0x2')]('formatBlock',_0x4853('0x1c'),_0x4853('0x16'),()=>!0x1);}if(this[_0x4853('0x20')][_0x4853('0x1b')][_0x4853('0xd')](_0x4853('0x1f'))){for(const _0x2b878f of this[_0x4853('0xb')])_0x21cb6d['enableCommand'](_0x2b878f,(_0x43244e,_0x5366cb)=>{const _0x227b9c=this[_0x4853('0x20')]['plugins'][_0x4853('0x2c')](_0x4853('0x29'))[_0x4853('0x26')](this['editor'][_0x4853('0x25')][_0x4853('0x4')]['selection']);this[_0x4853('0x1e')](_0x2b878f,_0x227b9c,this[_0x4853('0xb')],_0x4853('0xb'),_0x43244e,_0x5366cb);});_0x21cb6d['_suggestionFactory']['registerCustomCallback'](_0x4853('0x23'),_0x4853('0xb'),'accept',_0x21cb6d[_0x4853('0x11')][_0x4853('0x0')](_0x4853('0x23'),null,'discard')),_0x21cb6d[_0x4853('0x11')][_0x4853('0x2')](_0x4853('0x23'),'tableCellProperties','discard',(_0xda03e5,_0x43d501)=>this[_0x4853('0x21')](this[_0x4853('0xb')],_0xda03e5,_0x43d501)),_0x21cb6d['_suggestionFactory'][_0x4853('0x2')]('formatBlock',_0x4853('0xb'),_0x4853('0x16'),()=>!0x1);}_0x21cb6d['_descriptionFactory'][_0x4853('0x27')](_0x32ca9a=>this[_0x4853('0x10')](_0x32ca9a));}[_0x4853('0x1e')](_0x319852,_0xe9203d,_0x3d0077,_0x176638,_0x3af63d,_0x368fbd){const _0x135b5a=this[_0x4853('0x20')][_0x4853('0x1b')]['get']('TrackChangesEditing');this[_0x4853('0x20')][_0x4853('0x25')][_0x4853('0xe')](_0x368fbd['batch'],()=>{for(const _0x1b1689 of _0xe9203d){if(this['_getSuggestion'](_0x1b1689,_0x176638))_0x3af63d(_0x368fbd);else{const _0x3d7720={};for(const _0x3bd9b9 of _0x3d0077){const _0x3a4599=_0x1b1689[_0x4853('0x6')](_0x3bd9b9);void 0x0!==_0x3a4599&&(_0x3d7720[_0x3bd9b9]=_0x3a4599);}_0x3af63d(_0x368fbd),_0x135b5a[_0x4853('0x19')](_0x1b1689,{'commandParams':[_0x3d7720]},[],_0x176638);}}});}[_0x4853('0x21')](_0x196a78,_0x1ef7f2,_0x5de72d){const _0x4f324e=_0x1ef7f2[0x0]['start'][_0x4853('0x17')],_0x16bb92=_0x5de72d[_0x4853('0x2f')][0x0];this[_0x4853('0x20')][_0x4853('0x25')]['change'](_0x3a968a=>{for(const _0x5e364f of _0x196a78)void 0x0!==_0x16bb92[_0x5e364f]?_0x3a968a[_0x4853('0x15')](_0x5e364f,_0x16bb92[_0x5e364f],_0x4f324e):_0x3a968a[_0x4853('0x12')](_0x5e364f,_0x4f324e);});}['handleSuggestionDescription'](_0x46069f){if(_0x46069f['data'])switch(_0x46069f['subType']){case _0x4853('0x1c'):return{'type':'format','content':_0x283817(this[_0x4853('0x20')]['locale'],_0x4853('0x31'))};case _0x4853('0xb'):return{'type':'format','content':_0x283817(this['editor'][_0x4853('0x2e')],_0x4853('0x9'))};}}[_0x4853('0x1a')](_0x514d9,_0x265f4f){const _0x88dded=this[_0x4853('0x20')][_0x4853('0x1b')][_0x4853('0x2c')]('TrackChangesEditing');for(const _0xb1ed1a of _0x88dded['getSuggestions']({'skipNotAttached':!0x0})){const _0x4dced5=_0xb1ed1a[_0x4853('0x8')]();if(_0xb1ed1a[_0x4853('0x32')]===_0x265f4f&&_0x4dced5===_0x514d9)return _0xb1ed1a;}return null;}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/template
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for template feature.
7
+ */
8
+ export default class TrackChangesTemplate extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x1a40=['Template','insertTemplate','plugins','afterInit','has','enableCommand','editor'];(function(_0x3d08c3,_0x1a4060){const _0x33e6bf=function(_0x586c81){while(--_0x586c81){_0x3d08c3['push'](_0x3d08c3['shift']());}};_0x33e6bf(++_0x1a4060);}(_0x1a40,0x164));const _0x33e6=function(_0x3d08c3,_0x1a4060){_0x3d08c3=_0x3d08c3-0x0;let _0x33e6bf=_0x1a40[_0x3d08c3];return _0x33e6bf;};import{Plugin as _0x537cc6}from'ckeditor5/src/core';export default class yt extends _0x537cc6{[_0x33e6('0x4')](){const _0x272bfa=this[_0x33e6('0x0')];_0x272bfa[_0x33e6('0x3')][_0x33e6('0x5')](_0x33e6('0x1'))&&_0x272bfa[_0x33e6('0x3')]['get']('TrackChangesEditing')[_0x33e6('0x6')](_0x33e6('0x2'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d6c=['element','registerPostFixer','registerElementLabel','ELEMENT_TITLE','_splitMarkerName','get','differ','start','isTouching','TrackChangesEditing','nodeBefore','_descriptionFactory','document','locale','model','from','title-content','Title','removeMarker','isCollapsed','editor','getNearestSelectionRange','schema','getChangedMarkers','newRange','plugins','end','afterInit'];(function(_0x4a4851,_0x1d6cb4){const _0x5a0296=function(_0x29d626){while(--_0x29d626){_0x4a4851['push'](_0x4a4851['shift']());}};_0x5a0296(++_0x1d6cb4);}(_0x1d6c,0x77));const _0x5a02=function(_0x4a4851,_0x1d6cb4){_0x4a4851=_0x4a4851-0x0;let _0x5a0296=_0x1d6c[_0x4a4851];return _0x5a0296;};import{Plugin as _0x1148de}from'ckeditor5/src/core';import{getTranslation as _0x3b4727}from'../utils/common-translations';export default class wt extends _0x1148de{[_0x5a02('0x14')](){const _0x19c741=this[_0x5a02('0xd')];if(!_0x19c741[_0x5a02('0x12')]['has'](_0x5a02('0xa')))return;const _0x7b4f40=_0x19c741[_0x5a02('0x12')][_0x5a02('0x1a')](_0x5a02('0x2'));_0x7b4f40[_0x5a02('0x4')][_0x5a02('0x17')](_0x5a02('0x9'),()=>_0x3b4727(_0x19c741[_0x5a02('0x6')],_0x5a02('0x18'))),_0x19c741[_0x5a02('0x7')]['document'][_0x5a02('0x16')](_0x54995b=>{let _0x58018b=!0x1;const _0x35d0db=Array[_0x5a02('0x8')](_0x19c741[_0x5a02('0x7')][_0x5a02('0x5')][_0x5a02('0x1b')][_0x5a02('0x10')]());for(const {name:_0x62360d,data:_0x42e677}of _0x35d0db){const {group:_0x24d2d3}=_0x7b4f40[_0x5a02('0x19')](_0x62360d);if('suggestion'!==_0x24d2d3||!_0x42e677['newRange'])continue;const _0x22456e=_0x42e677[_0x5a02('0x11')],_0x148568=_0x22456e[_0x5a02('0x13')][_0x5a02('0x3')];if(!_0x148568||!_0x148568['is'](_0x5a02('0x15'),_0x5a02('0x9')))continue;if(!_0x22456e['start'][_0x5a02('0x1')](_0x22456e[_0x5a02('0x13')]))continue;const _0x4bf1d6=_0x19c741[_0x5a02('0x7')][_0x5a02('0xf')][_0x5a02('0xe')](_0x22456e[_0x5a02('0x13')],'forward');if(_0x4bf1d6&&_0x4bf1d6[_0x5a02('0xc')]){const _0x5e8162=_0x54995b['createRange'](_0x22456e[_0x5a02('0x0')],_0x4bf1d6[_0x5a02('0x0')]);_0x5e8162['isEqual'](_0x22456e)||(_0x54995b['updateMarker'](_0x62360d,{'range':_0x5e8162}),_0x58018b=!0x0);}_0x58018b||(_0x54995b[_0x5a02('0xb')](_0x62360d),_0x58018b=!0x0);}return _0x58018b;});}}
23
+ const _0x5a64=['createRange','schema','locale','registerPostFixer','editor','getNearestSelectionRange','newRange','removeMarker','element','get','end','start','Title','suggestion','isEqual','forward','isCollapsed','document','model','getChangedMarkers','nodeBefore','plugins','title-content','afterInit','from','_descriptionFactory','registerElementLabel','updateMarker','TrackChangesEditing','differ'];(function(_0x15be03,_0x5a64bc){const _0x1173b5=function(_0x2f2fce){while(--_0x2f2fce){_0x15be03['push'](_0x15be03['shift']());}};_0x1173b5(++_0x5a64bc);}(_0x5a64,0xbf));const _0x1173=function(_0x15be03,_0x5a64bc){_0x15be03=_0x15be03-0x0;let _0x1173b5=_0x5a64[_0x15be03];return _0x1173b5;};import{Plugin as _0x26ce7b}from'ckeditor5/src/core';import{getTranslation as _0x1d1e82}from'../utils/common-translations';export default class St extends _0x26ce7b{[_0x1173('0xc')](){const _0x2eae5f=this[_0x1173('0x17')];if(!_0x2eae5f[_0x1173('0xa')]['has'](_0x1173('0x1')))return;const _0x483cb3=_0x2eae5f[_0x1173('0xa')][_0x1173('0x1c')](_0x1173('0x11'));_0x483cb3[_0x1173('0xe')][_0x1173('0xf')](_0x1173('0xb'),()=>_0x1d1e82(_0x2eae5f[_0x1173('0x15')],'ELEMENT_TITLE')),_0x2eae5f[_0x1173('0x7')][_0x1173('0x6')][_0x1173('0x16')](_0x22c1fa=>{let _0x11b228=!0x1;const _0x11584f=Array[_0x1173('0xd')](_0x2eae5f[_0x1173('0x7')][_0x1173('0x6')][_0x1173('0x12')][_0x1173('0x8')]());for(const {name:_0x2499f6,data:_0x3795a3}of _0x11584f){const {group:_0x282032}=_0x483cb3['_splitMarkerName'](_0x2499f6);if(_0x1173('0x2')!==_0x282032||!_0x3795a3[_0x1173('0x19')])continue;const _0x276dcf=_0x3795a3['newRange'],_0x59446a=_0x276dcf['end'][_0x1173('0x9')];if(!_0x59446a||!_0x59446a['is'](_0x1173('0x1b'),_0x1173('0xb')))continue;if(!_0x276dcf[_0x1173('0x0')]['isTouching'](_0x276dcf[_0x1173('0x1d')]))continue;const _0x2e9eff=_0x2eae5f['model'][_0x1173('0x14')][_0x1173('0x18')](_0x276dcf[_0x1173('0x1d')],_0x1173('0x4'));if(_0x2e9eff&&_0x2e9eff[_0x1173('0x5')]){const _0x180ab4=_0x22c1fa[_0x1173('0x13')](_0x276dcf[_0x1173('0x0')],_0x2e9eff['start']);_0x180ab4[_0x1173('0x3')](_0x276dcf)||(_0x22c1fa[_0x1173('0x10')](_0x2499f6,{'range':_0x180ab4}),_0x11b228=!0x0);}_0x11b228||(_0x22c1fa[_0x1173('0x1a')](_0x2499f6),_0x11b228=!0x0);}return _0x11b228;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa766=['enableCommand','plugins','TrackChangesEditing','UndoEditing','undo','afterInit','get','editor'];(function(_0x15f101,_0xa7663a){const _0x59889f=function(_0x3968e3){while(--_0x3968e3){_0x15f101['push'](_0x15f101['shift']());}};_0x59889f(++_0xa7663a);}(_0xa766,0xc0));const _0x5988=function(_0x15f101,_0xa7663a){_0x15f101=_0x15f101-0x0;let _0x59889f=_0xa766[_0x15f101];return _0x59889f;};import{Plugin as _0x5bddb8}from'ckeditor5/src/core';export default class yt extends _0x5bddb8{[_0x5988('0x5')](){const _0x24a53e=this[_0x5988('0x7')],_0x205917=_0x24a53e['plugins'][_0x5988('0x6')](_0x5988('0x2'));_0x24a53e[_0x5988('0x1')]['has'](_0x5988('0x3'))&&(_0x205917[_0x5988('0x0')](_0x5988('0x4')),_0x205917['enableCommand']('redo'));}}
23
+ const _0x45de=['undo','has','editor','UndoEditing','enableCommand','plugins','afterInit','redo'];(function(_0x50e851,_0x45de93){const _0x1318b6=function(_0x2cc389){while(--_0x2cc389){_0x50e851['push'](_0x50e851['shift']());}};_0x1318b6(++_0x45de93);}(_0x45de,0x1b8));const _0x1318=function(_0x50e851,_0x45de93){_0x50e851=_0x50e851-0x0;let _0x1318b6=_0x45de[_0x50e851];return _0x1318b6;};import{Plugin as _0x59201a}from'ckeditor5/src/core';export default class It extends _0x59201a{[_0x1318('0x6')](){const _0x553f66=this[_0x1318('0x2')],_0x37e43d=_0x553f66[_0x1318('0x5')]['get']('TrackChangesEditing');_0x553f66[_0x1318('0x5')][_0x1318('0x1')](_0x1318('0x3'))&&(_0x37e43d[_0x1318('0x4')](_0x1318('0x0')),_0x37e43d[_0x1318('0x4')](_0x1318('0x7')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1edc=['span','isBlock','listItem','createUIElement','getAttribute','ck-suggestion-marker-','markerName','TrackChangesEditing','get','includes','toViewElement','isLimit','insert','createRangeOn','previousPosition','listIndent','parent','writer','consumable','mapper','isContent','name','item','bindElementToMarker','nextSibling','push','ck-suggestion-marker--active','plugins','toViewPosition','test','markerRange','getItems','type','activeMarkers','element'];(function(_0x26e2a7,_0x1edc98){const _0x7b5ffe=function(_0x161ca6){while(--_0x161ca6){_0x26e2a7['push'](_0x26e2a7['shift']());}};_0x7b5ffe(++_0x1edc98);}(_0x1edc,0x107));const _0x7b5f=function(_0x26e2a7,_0x1edc98){_0x26e2a7=_0x26e2a7-0x0;let _0x7b5ffe=_0x1edc[_0x26e2a7];return _0x7b5ffe;};export function getRangesWithAttribute(_0x1deeaa,_0x169755,_0x374149){const _0x5dec77=[];for(const _0x378237 of _0x169755[_0x7b5f('0xd')]())_0x378237['hasAttribute'](_0x1deeaa)&&_0x5dec77[_0x7b5f('0x7')](_0x374149[_0x7b5f('0x1e')](_0x378237));return _0x5dec77;}export function getElementsAffectedByListItemRename(_0x219a86){const _0x184814=[];if(_0x219a86['is'](_0x7b5f('0x10'),_0x7b5f('0x13'))){let _0x4c68d5=_0x219a86['nextSibling'];for(;_0x4c68d5&&_0x4c68d5['is'](_0x7b5f('0x10'),'listItem')&&_0x4c68d5[_0x7b5f('0x15')](_0x7b5f('0x20'))>0x0;)_0x184814['push'](_0x4c68d5),_0x4c68d5=_0x4c68d5[_0x7b5f('0x6')];}return _0x184814;}export function downcastSplitMergeMarker(_0x1f5f2d,_0x4624b8,{showActiveMarker:_0x182060=!0x0}={}){const _0x39981c=_0x1f5f2d[_0x7b5f('0x9')][_0x7b5f('0x19')](_0x7b5f('0x18'));return(_0x28555b,_0x518706,_0x3a8a43)=>{if(!_0x3a8a43[_0x7b5f('0x0')][_0x7b5f('0xb')](_0x518706[_0x7b5f('0xc')],_0x28555b[_0x7b5f('0x3')]))return;const _0x1b1f83=_0x518706[_0x7b5f('0xc')]['getWalker'](),_0x3c7211=_0x518706[_0x7b5f('0xc')]['start'],_0x4fee0a=_0x1f5f2d['model']['schema'];let _0x1c6edb=null,_0x1608c6=null,_0x1aff7b=!0x1,_0x408d3a=!0x1;for(const _0x2aad85 of _0x1b1f83){const _0x4bb188=_0x2aad85[_0x7b5f('0x4')];_0x1aff7b=_0x1aff7b||_0x4fee0a[_0x7b5f('0x2')](_0x4bb188);const _0x4b0ea4=_0x3a8a43['mapper'][_0x7b5f('0x1b')](_0x4bb188);if(_0x4b0ea4&&_0x4b0ea4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2aad85[_0x7b5f('0xe')]&&(_0x4fee0a[_0x7b5f('0x12')](_0x4bb188)&&!_0x4fee0a[_0x7b5f('0x1c')](_0x4bb188)&&(_0x4bb188['nextSibling']||_0x3c7211['isAtEnd']?_0x1c6edb&&_0x1c6edb[_0x7b5f('0x21')]==_0x4bb188||(_0x1c6edb=_0x4bb188,_0x5444aa(_0x2aad85[_0x7b5f('0x1f')]),_0x408d3a=!0x0):_0x1608c6=_0x1608c6||_0x2aad85[_0x7b5f('0x1f')]));}function _0x5444aa(_0x25a46b){const _0x215bb7=_0x3a8a43[_0x7b5f('0x22')][_0x7b5f('0x14')](_0x7b5f('0x11'),{'class':_0x7b5f('0x16')+_0x4624b8}),_0x26e694=_0x3a8a43[_0x7b5f('0x1')][_0x7b5f('0xa')](_0x25a46b);_0x182060&&_0x39981c[_0x7b5f('0xf')][_0x7b5f('0x1a')](_0x518706[_0x7b5f('0x17')])&&_0x3a8a43[_0x7b5f('0x22')]['addClass'](_0x7b5f('0x8'),_0x215bb7),_0x3a8a43[_0x7b5f('0x22')][_0x7b5f('0x1d')](_0x26e694,_0x215bb7),_0x3a8a43[_0x7b5f('0x1')][_0x7b5f('0x5')](_0x215bb7,_0x518706[_0x7b5f('0x17')]);}_0x1aff7b||_0x408d3a||!_0x1608c6||_0x5444aa(_0x1608c6);};}
23
+ const _0x1576=['name','createUIElement','push','schema','previousPosition','type','getItems','addClass','model','nextSibling','isLimit','ck-suggestion-marker--active','get','test','toViewElement','bindElementToMarker','consumable','ck-suggestion-marker-','plugins','TrackChangesEditing','includes','activeMarkers','markerRange','isContent','isAtEnd','item','getCustomProperty','element','toViewPosition','isBlock','getWalker','start','mapper','insert','writer','listItem','elementEnd','span'];(function(_0x593219,_0x15761b){const _0x358c5e=function(_0x3f9536){while(--_0x3f9536){_0x593219['push'](_0x593219['shift']());}};_0x358c5e(++_0x15761b);}(_0x1576,0x1db));const _0x358c=function(_0x593219,_0x15761b){_0x593219=_0x593219-0x0;let _0x358c5e=_0x1576[_0x593219];return _0x358c5e;};export function getRangesWithAttribute(_0x4d7945,_0x2d9724,_0x3b7834){const _0x52e2a6=[];for(const _0x3a06c2 of _0x2d9724[_0x358c('0x19')]())_0x3a06c2['hasAttribute'](_0x4d7945)&&_0x52e2a6[_0x358c('0x15')](_0x3b7834['createRangeOn'](_0x3a06c2));return _0x52e2a6;}export function getElementsAffectedByListItemRename(_0x3ea5c6){const _0x1ca53d=[];if(_0x3ea5c6['is'](_0x358c('0x8'),_0x358c('0x10'))){let _0x8ecd06=_0x3ea5c6[_0x358c('0x1c')];for(;_0x8ecd06&&_0x8ecd06['is'](_0x358c('0x8'),_0x358c('0x10'))&&_0x8ecd06['getAttribute']('listIndent')>0x0;)_0x1ca53d[_0x358c('0x15')](_0x8ecd06),_0x8ecd06=_0x8ecd06[_0x358c('0x1c')];}return _0x1ca53d;}export function downcastSplitMergeMarker(_0xb08edd,_0x22cdb0,{showActiveMarker:_0x5d7b66=!0x0}={}){const _0x36e750=_0xb08edd[_0x358c('0x25')][_0x358c('0x1f')](_0x358c('0x0'));return(_0x1aa5d2,_0x1516bc,_0x3fa009)=>{if(!_0x3fa009[_0x358c('0x23')][_0x358c('0x20')](_0x1516bc[_0x358c('0x3')],_0x1aa5d2[_0x358c('0x13')]))return;const _0x1d99d0=_0x1516bc[_0x358c('0x3')][_0x358c('0xb')](),_0x323b24=_0x1516bc[_0x358c('0x3')][_0x358c('0xc')],_0x57bc41=_0xb08edd[_0x358c('0x1b')][_0x358c('0x16')];let _0x34234f=null,_0x5c9fd0=null,_0x1489f5=!0x1,_0x23ec84=!0x1;for(const _0x4c78f6 of _0x1d99d0){const _0x267f29=_0x4c78f6[_0x358c('0x6')];_0x1489f5=_0x1489f5||_0x57bc41[_0x358c('0x4')](_0x267f29);const _0x2ed3d6=_0x3fa009[_0x358c('0xd')][_0x358c('0x21')](_0x267f29);if(_0x2ed3d6&&_0x2ed3d6[_0x358c('0x7')]('addHighlight'))return;_0x358c('0x11')==_0x4c78f6[_0x358c('0x18')]&&(_0x57bc41[_0x358c('0xa')](_0x267f29)&&!_0x57bc41[_0x358c('0x1d')](_0x267f29)&&(_0x267f29['nextSibling']||_0x323b24[_0x358c('0x5')]?_0x34234f&&_0x34234f['parent']==_0x267f29||(_0x34234f=_0x267f29,_0x2fdfe0(_0x4c78f6[_0x358c('0x17')]),_0x23ec84=!0x0):_0x5c9fd0=_0x5c9fd0||_0x4c78f6[_0x358c('0x17')]));}function _0x2fdfe0(_0x2b53e9){const _0x1b2ed3=_0x3fa009[_0x358c('0xf')][_0x358c('0x14')](_0x358c('0x12'),{'class':_0x358c('0x24')+_0x22cdb0}),_0xc3217=_0x3fa009[_0x358c('0xd')][_0x358c('0x9')](_0x2b53e9);_0x5d7b66&&_0x36e750[_0x358c('0x2')][_0x358c('0x1')](_0x1516bc['markerName'])&&_0x3fa009['writer'][_0x358c('0x1a')](_0x358c('0x1e'),_0x1b2ed3),_0x3fa009['writer'][_0x358c('0xe')](_0xc3217,_0x1b2ed3),_0x3fa009[_0x358c('0xd')][_0x358c('0x22')](_0x1b2ed3,_0x1516bc['markerName']);}_0x1489f5||_0x23ec84||!_0x5c9fd0||_0x2fdfe0(_0x5c9fd0);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f35=['push','accept','head','discard','createdAt','getMarkers','getMarkerNames','_saved','getContainedElement','onAccept','_onAccept','previous','isMultiRange','getAllAdjacentSuggestions','delete','nodeAfter','_onDiscard','removeAttribute','removeMarkers','author','attributes','clear','decorate','addMarker','removeMarker','creator','setAttribute','change','markers','authoredAt','size','getRanges','data','hasComments','reduce','subType','toJSON','map','filter','isInContent','add','getMultiRangeId','isIntersecting','addMarkerName','addRange','nodeBefore','getFirstMarker','set','onAttributesChange','getItems','_markerNames','length','getRange','commentThread','from','type','isIntersectingWithRange','_model','_onAttributesChange','onDiscard'];(function(_0x164fb6,_0x2f354a){const _0x3ff9b4=function(_0x5e25fc){while(--_0x5e25fc){_0x164fb6['push'](_0x164fb6['shift']());}};_0x3ff9b4(++_0x2f354a);}(_0x2f35,0xc1));const _0x3ff9=function(_0x164fb6,_0x2f354a){_0x164fb6=_0x164fb6-0x0;let _0x3ff9b4=_0x2f35[_0x164fb6];return _0x3ff9b4;};import{Element as _0x732472}from'ckeditor5/src/engine';import{ObservableMixin as _0x357297,uid as _0x43d692}from'ckeditor5/src/utils';import{cloneDeep as _0x30a10f,isEqual as _0x3c7654,set as _0x395f0d,unset as _0x313dce}from'lodash-es';export default class u extends _0x357297(){constructor(_0x339feb,_0x2f99f5){super(),this['id']=_0x2f99f5['id'],this[_0x3ff9('0x2a')]=_0x2f99f5[_0x3ff9('0x2a')],this[_0x3ff9('0x16')]=_0x2f99f5[_0x3ff9('0x16')]||null,this[_0x3ff9('0x6')]=_0x2f99f5['author'],this['creator']=_0x2f99f5['creator']||_0x2f99f5['author'],this['isExternal']=Boolean(_0x2f99f5[_0x3ff9('0x7')]&&_0x2f99f5[_0x3ff9('0x7')]['@external']),this[_0x3ff9('0x13')]=null,this['_model']=_0x339feb,this['_onAccept']=_0x2f99f5[_0x3ff9('0x38')],this[_0x3ff9('0x3')]=_0x2f99f5[_0x3ff9('0x2e')],this[_0x3ff9('0x2d')]=_0x2f99f5[_0x3ff9('0x23')],this['_markerNames']=new Set(),this['createdAt']=null,this['set'](_0x3ff9('0x10'),null),this[_0x3ff9('0x22')]('attributes',_0x2f99f5['attributes']||{}),this[_0x3ff9('0x22')](_0x3ff9('0x3a'),null),this[_0x3ff9('0x22')]('next',null),this[_0x3ff9('0x22')](_0x3ff9('0x28'),null),this[_0x3ff9('0x22')](_0x3ff9('0x36'),!0x1),this['decorate'](_0x3ff9('0x30')),this[_0x3ff9('0x9')](_0x3ff9('0x32'));}get['head'](){let _0x4d388b=this;for(;_0x4d388b[_0x3ff9('0x3a')];)_0x4d388b=_0x4d388b[_0x3ff9('0x3a')];return _0x4d388b;}get[_0x3ff9('0x14')](){return!!this[_0x3ff9('0x28')]&&this[_0x3ff9('0x28')][_0x3ff9('0x26')]>0x0;}get[_0x3ff9('0x3b')](){if(0x0==this[_0x3ff9('0x25')][_0x3ff9('0x11')])return!0x1;return 0x6==Array[_0x3ff9('0x29')](this[_0x3ff9('0x25')])[0x0]['split'](':')[_0x3ff9('0x26')];}get[_0x3ff9('0x1a')](){return null!==this['getFirstMarker']();}[_0x3ff9('0x1e')](_0x36ae12){this[_0x3ff9('0x25')][_0x3ff9('0x1b')](_0x36ae12);}[_0x3ff9('0x35')](){return Array[_0x3ff9('0x29')](this[_0x3ff9('0x25')]);}['getMarkers'](){return this[_0x3ff9('0x35')]()[_0x3ff9('0x18')](_0x401243=>this[_0x3ff9('0x2c')][_0x3ff9('0xf')]['get'](_0x401243))[_0x3ff9('0x19')](_0x419c8a=>_0x419c8a);}[_0x3ff9('0x21')](){return this[_0x3ff9('0x34')]()[0x0]||null;}[_0x3ff9('0x5')](){this[_0x3ff9('0x2c')][_0x3ff9('0xe')](_0x2b2ac9=>{for(const _0x389dec of this['getMarkers']())_0x2b2ac9[_0x3ff9('0xb')](_0x389dec);}),this[_0x3ff9('0x25')][_0x3ff9('0x8')]();}[_0x3ff9('0xb')](_0x3f908b){this[_0x3ff9('0x2c')][_0x3ff9('0xe')](_0x39e7d4=>{_0x39e7d4[_0x3ff9('0xb')](_0x3f908b);}),this['_markerNames'][_0x3ff9('0x1')](_0x3f908b);}[_0x3ff9('0x1f')](_0x1ac774){const _0x498f72='suggestion:'+this['type']+':'+this[_0x3ff9('0x16')]+':'+this['id']+':'+this[_0x3ff9('0xc')]['id']+':'+u[_0x3ff9('0x1c')]();this[_0x3ff9('0x1e')](_0x498f72),this[_0x3ff9('0x2c')][_0x3ff9('0xe')](_0x513eb4=>{_0x513eb4[_0x3ff9('0xa')](_0x498f72,{'range':_0x1ac774,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3ff9('0x2b')](_0x237a89){for(const _0x4fc1af of this['getRanges']())if(_0x4fc1af[_0x3ff9('0x1d')](_0x237a89))return!0x0;return!0x1;}[_0x3ff9('0x12')](){return this[_0x3ff9('0x34')]()[_0x3ff9('0x18')](_0xd0683e=>_0xd0683e[_0x3ff9('0x27')]());}[_0x3ff9('0x24')](){return this[_0x3ff9('0x12')]()[_0x3ff9('0x15')]((_0x4d19ab,_0x47dc94)=>[..._0x4d19ab,..._0x47dc94[_0x3ff9('0x24')]()],[]);}['getFirstRange'](){var _0xcb7361;return(null===(_0xcb7361=this[_0x3ff9('0x21')]())||void 0x0===_0xcb7361?void 0x0:_0xcb7361[_0x3ff9('0x27')]())||null;}[_0x3ff9('0x37')](){const _0x5a26a0=this['getRanges']();if(0x1!=_0x5a26a0[_0x3ff9('0x26')])return null;const _0x31cf94=_0x5a26a0[0x0],_0x6b71bb=_0x31cf94['start'][_0x3ff9('0x2')],_0x377dec=_0x31cf94['end'][_0x3ff9('0x20')];return _0x6b71bb instanceof _0x732472?_0x6b71bb!=_0x377dec?null:_0x6b71bb:null;}['accept'](){this[_0x3ff9('0x39')](this['getRanges'](),this['data'],this[_0x3ff9('0x7')]),this[_0x3ff9('0x5')]();}['discard'](){this[_0x3ff9('0x3')](this['getRanges'](),this[_0x3ff9('0x13')],this[_0x3ff9('0x7')]),this['removeMarkers']();}[_0x3ff9('0x0')](){const _0x914010=[];let _0x55d5fa=this[_0x3ff9('0x31')];for(;_0x55d5fa;)_0x914010[_0x3ff9('0x2f')](_0x55d5fa),_0x55d5fa=_0x55d5fa['next'];return _0x914010;}[_0x3ff9('0xd')](_0x243493,_0x438179){const _0x5283dd=_0x30a10f(this[_0x3ff9('0x7')]);_0x395f0d(_0x5283dd,_0x243493,_0x438179),_0x3c7654(_0x5283dd,this[_0x3ff9('0x7')])||(this[_0x3ff9('0x7')]=_0x5283dd,this[_0x3ff9('0x2d')](_0x5283dd));}[_0x3ff9('0x4')](_0x461e56){const _0x27dc0a=_0x30a10f(this[_0x3ff9('0x7')]);_0x313dce(_0x27dc0a,_0x461e56),_0x3c7654(_0x27dc0a,this[_0x3ff9('0x7')])||(this['attributes']=_0x27dc0a,this[_0x3ff9('0x2d')](this[_0x3ff9('0x7')]));}[_0x3ff9('0x17')](){return{'id':this['id'],'type':this['subType']?this[_0x3ff9('0x2a')]+':'+this[_0x3ff9('0x16')]:this[_0x3ff9('0x2a')],'authorId':this[_0x3ff9('0xc')]['id'],'createdAt':this[_0x3ff9('0x33')],'hasComments':this[_0x3ff9('0x14')],'data':this[_0x3ff9('0x13')],'attributes':this[_0x3ff9('0x7')]};}static[_0x3ff9('0x1c')](){return _0x43d692()['substr'](0x1,0x5);}}
23
+ const _0x5730=['isInContent','removeMarker','delete','addRange','head','get','onDiscard','removeAttribute','createdAt','_onAttributesChange','commentThread','reduce','markers','toJSON','substr','_markerNames','onAccept','@external','authoredAt','decorate','onAttributesChange','getMarkerNames','set','suggestion:','author','creator','getRanges','getMarkers','getItems','attributes','discard','setAttribute','nodeAfter','map','getAllAdjacentSuggestions','isExternal','getContainedElement','length','getFirstRange','getFirstMarker','data','push','start','isIntersectingWithRange','getRange','removeMarkers','nodeBefore','accept','add','subType','_model','clear','type','addMarkerName','from','hasComments','_onDiscard','previous','isMultiRange','size','getMultiRangeId','_onAccept'];(function(_0x502d3c,_0x573092){const _0x402ef7=function(_0x4c66ac){while(--_0x4c66ac){_0x502d3c['push'](_0x502d3c['shift']());}};_0x402ef7(++_0x573092);}(_0x5730,0x1b5));const _0x402e=function(_0x502d3c,_0x573092){_0x502d3c=_0x502d3c-0x0;let _0x402ef7=_0x5730[_0x502d3c];return _0x402ef7;};import{Element as _0x14feac}from'ckeditor5/src/engine';import{ObservableMixin as _0x692ce4,uid as _0x1a6781}from'ckeditor5/src/utils';import{cloneDeep as _0x15376d,isEqual as _0xff4964,set as _0x113be0,unset as _0x15db31}from'lodash-es';export default class u extends _0x692ce4(){constructor(_0x32c12a,_0x3ca637){super(),this['id']=_0x3ca637['id'],this[_0x402e('0x31')]=_0x3ca637[_0x402e('0x31')],this[_0x402e('0x2e')]=_0x3ca637[_0x402e('0x2e')]||null,this['author']=_0x3ca637[_0x402e('0x15')],this[_0x402e('0x16')]=_0x3ca637[_0x402e('0x16')]||_0x3ca637[_0x402e('0x15')],this[_0x402e('0x20')]=Boolean(_0x3ca637[_0x402e('0x1a')]&&_0x3ca637[_0x402e('0x1a')][_0x402e('0xe')]),this['data']=null,this[_0x402e('0x2f')]=_0x32c12a,this[_0x402e('0x3a')]=_0x3ca637[_0x402e('0xd')],this[_0x402e('0x35')]=_0x3ca637[_0x402e('0x3')],this[_0x402e('0x6')]=_0x3ca637[_0x402e('0x11')],this[_0x402e('0xc')]=new Set(),this[_0x402e('0x5')]=null,this[_0x402e('0x13')](_0x402e('0xf'),null),this[_0x402e('0x13')](_0x402e('0x1a'),_0x3ca637[_0x402e('0x1a')]||{}),this[_0x402e('0x13')](_0x402e('0x36'),null),this['set']('next',null),this[_0x402e('0x13')](_0x402e('0x7'),null),this[_0x402e('0x13')]('_saved',!0x1),this[_0x402e('0x10')](_0x402e('0x2c')),this[_0x402e('0x10')](_0x402e('0x1b'));}get[_0x402e('0x1')](){let _0x3c9c0b=this;for(;_0x3c9c0b[_0x402e('0x36')];)_0x3c9c0b=_0x3c9c0b[_0x402e('0x36')];return _0x3c9c0b;}get[_0x402e('0x34')](){return!!this[_0x402e('0x7')]&&this[_0x402e('0x7')][_0x402e('0x22')]>0x0;}get[_0x402e('0x37')](){if(0x0==this['_markerNames'][_0x402e('0x38')])return!0x1;return 0x6==Array['from'](this[_0x402e('0xc')])[0x0]['split'](':')[_0x402e('0x22')];}get[_0x402e('0x3b')](){return null!==this[_0x402e('0x24')]();}[_0x402e('0x32')](_0x637801){this[_0x402e('0xc')][_0x402e('0x2d')](_0x637801);}[_0x402e('0x12')](){return Array[_0x402e('0x33')](this[_0x402e('0xc')]);}[_0x402e('0x18')](){return this[_0x402e('0x12')]()['map'](_0x2dc022=>this[_0x402e('0x2f')][_0x402e('0x9')][_0x402e('0x2')](_0x2dc022))['filter'](_0xfd4503=>_0xfd4503);}[_0x402e('0x24')](){return this['getMarkers']()[0x0]||null;}[_0x402e('0x2a')](){this[_0x402e('0x2f')]['change'](_0x218117=>{for(const _0xd6bb54 of this[_0x402e('0x18')]())_0x218117[_0x402e('0x3c')](_0xd6bb54);}),this[_0x402e('0xc')][_0x402e('0x30')]();}['removeMarker'](_0x2413d6){this[_0x402e('0x2f')]['change'](_0x47327d=>{_0x47327d[_0x402e('0x3c')](_0x2413d6);}),this['_markerNames'][_0x402e('0x3d')](_0x2413d6);}[_0x402e('0x0')](_0x124ff9){const _0xafcdf7=_0x402e('0x14')+this['type']+':'+this[_0x402e('0x2e')]+':'+this['id']+':'+this['creator']['id']+':'+u[_0x402e('0x39')]();this[_0x402e('0x32')](_0xafcdf7),this[_0x402e('0x2f')]['change'](_0x565483=>{_0x565483['addMarker'](_0xafcdf7,{'range':_0x124ff9,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x402e('0x28')](_0x1864bd){for(const _0x38fb55 of this[_0x402e('0x17')]())if(_0x38fb55['isIntersecting'](_0x1864bd))return!0x0;return!0x1;}[_0x402e('0x17')](){return this[_0x402e('0x18')]()[_0x402e('0x1e')](_0x436d03=>_0x436d03['getRange']());}[_0x402e('0x19')](){return this[_0x402e('0x17')]()[_0x402e('0x8')]((_0x3b79fa,_0xf92ac)=>[..._0x3b79fa,..._0xf92ac[_0x402e('0x19')]()],[]);}[_0x402e('0x23')](){var _0x519cc0;return(null===(_0x519cc0=this['getFirstMarker']())||void 0x0===_0x519cc0?void 0x0:_0x519cc0[_0x402e('0x29')]())||null;}[_0x402e('0x21')](){const _0x186f76=this[_0x402e('0x17')]();if(0x1!=_0x186f76[_0x402e('0x22')])return null;const _0x448c1b=_0x186f76[0x0],_0x518a88=_0x448c1b[_0x402e('0x27')][_0x402e('0x1d')],_0x174773=_0x448c1b['end'][_0x402e('0x2b')];return _0x518a88 instanceof _0x14feac?_0x518a88!=_0x174773?null:_0x518a88:null;}[_0x402e('0x2c')](){this[_0x402e('0x3a')](this[_0x402e('0x17')](),this[_0x402e('0x25')],this[_0x402e('0x1a')]),this[_0x402e('0x2a')]();}['discard'](){this[_0x402e('0x35')](this['getRanges'](),this[_0x402e('0x25')],this[_0x402e('0x1a')]),this[_0x402e('0x2a')]();}[_0x402e('0x1f')](){const _0x3988ce=[];let _0x4bed89=this[_0x402e('0x1')];for(;_0x4bed89;)_0x3988ce[_0x402e('0x26')](_0x4bed89),_0x4bed89=_0x4bed89['next'];return _0x3988ce;}[_0x402e('0x1c')](_0x3c4b99,_0x32a009){const _0x50502c=_0x15376d(this[_0x402e('0x1a')]);_0x113be0(_0x50502c,_0x3c4b99,_0x32a009),_0xff4964(_0x50502c,this['attributes'])||(this['attributes']=_0x50502c,this['_onAttributesChange'](_0x50502c));}[_0x402e('0x4')](_0x4dd5bd){const _0xf9273f=_0x15376d(this[_0x402e('0x1a')]);_0x15db31(_0xf9273f,_0x4dd5bd),_0xff4964(_0xf9273f,this['attributes'])||(this['attributes']=_0xf9273f,this['_onAttributesChange'](this[_0x402e('0x1a')]));}[_0x402e('0xa')](){return{'id':this['id'],'type':this[_0x402e('0x2e')]?this[_0x402e('0x31')]+':'+this['subType']:this[_0x402e('0x31')],'authorId':this[_0x402e('0x16')]['id'],'createdAt':this[_0x402e('0x5')],'hasComments':this[_0x402e('0x34')],'data':this['data'],'attributes':this[_0x402e('0x1a')]};}static['getMultiRangeId'](){return _0x1a6781()[_0x402e('0xb')](0x1,0x5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2142=['_schema','text','matchingCallback','previousSibling','checkChild','_itemLabels','_itemLabelsCallbacks','indexOf','deletion','_resolveDescriptionItems','getFirstRange','element','item','elementEnd','$1\x20$2','replace','ELEMENT_SPACE','addObject','length','label','data','registerDescriptionCallback','*Merge:*\x20%0','isObject','type','*Insert:*\x20%0','isEmpty','start','function','registerElementLabel','isEqual','elementStart','getDescriptions','get','softBreak','add','_addDescriptionItems','normal','push','name','match','quantity','Container','Object','getItemLabel','addContainer','removeObject','insertion','isInContent','nextSibling','*Remove:*\x20%0','EmptyContainer','_locale','skip','end','_customCallbacks','remove'];(function(_0x278d2e,_0x2142cf){const _0x24d782=function(_0x49b693){while(--_0x49b693){_0x278d2e['push'](_0x278d2e['shift']());}};_0x24d782(++_0x2142cf);}(_0x2142,0x10a));const _0x24d7=function(_0x278d2e,_0x2142cf){_0x278d2e=_0x278d2e-0x0;let _0x24d782=_0x2142[_0x278d2e];return _0x24d782;};import{getTranslation as _0x59c14e}from'./utils/common-translations';import{priorities as _0xc5af37,insertToPriorityArray as _0x5dc15b}from'ckeditor5/src/utils';export default class m{constructor(_0x1dd1ab,_0x3afcaf){this[_0x24d7('0x11')]=[],this['_itemLabels']=new Map(),this[_0x24d7('0x19')]=[],this[_0x24d7('0x13')]=_0x1dd1ab,this[_0x24d7('0xe')]=_0x3afcaf;}[_0x24d7('0x33')](_0x5289ea){const _0x42c638=[];for(let _0x209e50=0x0;_0x209e50<_0x5289ea[_0x24d7('0x25')];_0x209e50++){const _0x13eedf=_0x5289ea[_0x209e50];if(!_0x13eedf[_0x24d7('0xa')])continue;let _0x292deb=!0x1;for(const _0x2a0e29 of this[_0x24d7('0x11')]){const _0xa39f95=_0x2a0e29(_0x13eedf);if(_0xa39f95){_0x24d7('0x2b')in _0xa39f95&&_0x42c638[_0x24d7('0x0')](_0xa39f95),_0x292deb=!0x0;break;}}if(!_0x292deb){this[_0x24d7('0x37')](_0x42c638,_0x13eedf);const _0x1ca998=_0x5289ea[_0x209e50+0x1];if(_0x1ca998&&!_0x13eedf[_0x24d7('0x1d')]()[_0x24d7('0x10')][_0x24d7('0x31')](_0x1ca998[_0x24d7('0x1d')]()[_0x24d7('0x2e')])){const _0xbc33ec=_0x42c638[_0x42c638[_0x24d7('0x25')]-0x1],_0x4fd32c=_0x24d7('0x9')==_0x13eedf[_0x24d7('0x2b')]?_0x24d7('0x36'):'remove';_0xbc33ec&&_0x24d7('0x14')==_0xbc33ec[_0x24d7('0x2b')]&&(_0xbc33ec[_0x4fd32c]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x42c638);}[_0x24d7('0x28')](_0xe8340d){this['_customCallbacks'][_0x24d7('0x0')](_0xe8340d);}[_0x24d7('0x30')](_0x104e75,_0x2620b1,_0x3adf06=_0xc5af37[_0x24d7('0x38')]){_0x24d7('0x2f')==typeof _0x104e75?_0x5dc15b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x104e75,'label':_0x2620b1,'priority':_0x3adf06}):this[_0x24d7('0x18')]['set'](_0x104e75,_0x2620b1);}['getItemLabel'](_0x234f7d,_0x421e88=0x1){let _0x290a30;for(const _0x2a1d83 of this['_itemLabelsCallbacks'])if(_0x2a1d83[_0x24d7('0x15')](_0x234f7d)){_0x290a30=_0x2a1d83[_0x24d7('0x26')];break;}return _0x290a30||(_0x290a30=this['_itemLabels'][_0x24d7('0x34')](_0x234f7d[_0x24d7('0x1')])),_0x290a30?_0x290a30(_0x421e88):0x1!==_0x421e88?_0x421e88+'\x20'+_0x234f7d[_0x24d7('0x1')]+'s':''+_0x234f7d[_0x24d7('0x1')];}[_0x24d7('0x37')](_0x27a54e,_0xe2dd4f){const _0x210587=_0xe2dd4f[_0x24d7('0x1d')]()['getWalker'](),_0x2b1239='insertion'==_0xe2dd4f[_0x24d7('0x2b')]?_0x24d7('0x36'):_0x24d7('0x12');for(const _0x4f8c35 of _0x210587){const _0x45bb8a=_0x4f8c35[_0x24d7('0x1f')],_0xc199e6=_0x27a54e[_0x27a54e[_0x24d7('0x25')]-0x1];if(_0x45bb8a['is']('$textProxy'))_0xc199e6&&_0xc199e6['type'][_0x24d7('0x1a')](_0x24d7('0x4'))>-0x1&&_0x27a54e['pop'](),_0xc199e6&&_0x24d7('0x14')==_0xc199e6[_0x24d7('0x2b')]?_0xc199e6[_0x2b1239]+=_0x45bb8a[_0x24d7('0x27')]:_0x27a54e[_0x24d7('0x0')]({'type':_0x24d7('0x14'),'add':'add'==_0x2b1239?_0x45bb8a['data']:'','remove':_0x24d7('0x12')==_0x2b1239?_0x45bb8a[_0x24d7('0x27')]:''});else{if(this[_0x24d7('0x13')]['isObject'](_0x45bb8a)){const _0x4614bd=_0x45bb8a;if(_0xc199e6&&_0xc199e6['type'][_0x24d7('0x1a')](_0x24d7('0x4'))>-0x1&&_0x27a54e['pop'](),_0x24d7('0x20')==_0x4f8c35[_0x24d7('0x2b')])continue;_0xc199e6&&_0xc199e6['type']==_0x2b1239+_0x24d7('0x5')&&_0xc199e6['element'][_0x24d7('0x1')]==_0x4614bd['name']?_0xc199e6[_0x24d7('0x3')]++:_0x27a54e[_0x24d7('0x0')]({'type':_0x2b1239+_0x24d7('0x5'),'element':_0x4614bd,'quantity':0x1}),_0x210587[_0x24d7('0xf')](_0x21523e=>!(_0x24d7('0x20')==_0x21523e[_0x24d7('0x2b')]&&_0x21523e['item']==_0x45bb8a));}else{if(this['_schema'][_0x24d7('0x17')](_0x45bb8a,'$text')||_0x45bb8a['is'](_0x24d7('0x1e'),_0x24d7('0x35'))){const _0x351ccc=_0x45bb8a;if('add'==_0x2b1239&&_0x24d7('0x32')==_0x4f8c35['type']||_0x24d7('0x12')==_0x2b1239&&_0x24d7('0x20')==_0x4f8c35['type'])continue;if(_0xc199e6&&-0x1==_0xc199e6[_0x24d7('0x2b')][_0x24d7('0x1a')](_0x24d7('0x4'))){_0x24d7('0x14')==_0xc199e6[_0x24d7('0x2b')]&&(_0xc199e6[_0x2b1239]+='\x0a');continue;}let _0x4a7ddf;if(_0x4a7ddf='add'==_0x2b1239?_0x351ccc[_0x24d7('0xb')]&&!this[_0x24d7('0x13')][_0x24d7('0x2a')](_0x351ccc[_0x24d7('0xb')])?_0x351ccc['nextSibling']:null:_0x351ccc['previousSibling']&&!this['_schema'][_0x24d7('0x2a')](_0x351ccc[_0x24d7('0x16')])?_0x351ccc[_0x24d7('0x16')]:null,_0x351ccc[_0x24d7('0x2d')]||_0x4a7ddf&&_0x4a7ddf['isEmpty']){const _0x420a02=_0x4a7ddf&&_0x4a7ddf[_0x24d7('0x2d')]?_0x4a7ddf:_0x351ccc;_0xc199e6&&_0xc199e6[_0x24d7('0x2b')]==_0x2b1239+_0x24d7('0xd')&&_0xc199e6['element'][_0x24d7('0x1')]==_0x420a02[_0x24d7('0x1')]?_0xc199e6[_0x24d7('0x3')]++:_0x27a54e[_0x24d7('0x0')]({'type':_0x2b1239+'EmptyContainer','element':_0x420a02,'quantity':0x1});}else _0x27a54e['push']({'type':_0x2b1239+'Container','element':_0x351ccc});}}}}}[_0x24d7('0x1c')](_0x1bcf47){const _0x29a117=this['_locale'],_0x27e30b=[];for(const _0x183fc4 of _0x1bcf47){switch(_0x183fc4['type']){case'text':if(_0x183fc4[_0x24d7('0x36')]=_0x183fc4['add'][_0x24d7('0x22')](/(\S)\u000A+(\S)/g,_0x24d7('0x21'))[_0x24d7('0x22')](/\u000A/g,''),_0x183fc4[_0x24d7('0x12')]=_0x183fc4['remove'][_0x24d7('0x22')](/(\S)\u000A+(\S)/g,_0x24d7('0x21'))[_0x24d7('0x22')](/\u000A/g,''),''!=_0x183fc4[_0x24d7('0x36')]&&''!=_0x183fc4[_0x24d7('0x12')]){_0x27e30b[_0x24d7('0x0')]({'type':'replace','content':_0x59c14e(_0x29a117,'REPLACE_TEXT',['\x22'+_0x183fc4[_0x24d7('0x12')]+'\x22','\x22'+_0x183fc4['add']+'\x22'])});continue;}if(null!=_0x183fc4['add'][_0x24d7('0x2')](/^ +$/)){_0x27e30b[_0x24d7('0x0')]({'type':_0x24d7('0x9'),'content':_0x59c14e(_0x29a117,_0x24d7('0x2c'),_0x59c14e(_0x29a117,_0x24d7('0x23'),_0x183fc4[_0x24d7('0x36')][_0x24d7('0x25')]))});continue;}if(null!=_0x183fc4['remove']['match'](/^ +$/)){_0x27e30b['push']({'type':_0x24d7('0x1b'),'content':_0x59c14e(_0x29a117,'*Remove:*\x20%0',_0x59c14e(_0x29a117,_0x24d7('0x23'),_0x183fc4[_0x24d7('0x12')][_0x24d7('0x25')]))});continue;}if(''!=_0x183fc4['add']){_0x27e30b[_0x24d7('0x0')]({'type':'insertion','content':_0x59c14e(_0x29a117,_0x24d7('0x2c'),'\x22'+_0x183fc4[_0x24d7('0x36')]+'\x22')});continue;}_0x27e30b[_0x24d7('0x0')]({'type':'deletion','content':_0x59c14e(_0x29a117,'*Remove:*\x20%0','\x22'+_0x183fc4[_0x24d7('0x12')]+'\x22')});continue;case'addEmptyContainer':case _0x24d7('0x24'):_0x27e30b[_0x24d7('0x0')]({'type':'insertion','content':_0x59c14e(_0x29a117,_0x24d7('0x2c'),this[_0x24d7('0x6')](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;case'removeEmptyContainer':case _0x24d7('0x8'):_0x27e30b[_0x24d7('0x0')]({'type':_0x24d7('0x1b'),'content':_0x59c14e(_0x29a117,_0x24d7('0xc'),this['getItemLabel'](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;case _0x24d7('0x7'):_0x27e30b[_0x24d7('0x0')]({'type':'insertion','content':_0x59c14e(_0x29a117,'*Split:*\x20%0',this[_0x24d7('0x6')](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;case'removeContainer':_0x27e30b['push']({'type':_0x24d7('0x1b'),'content':_0x59c14e(_0x29a117,_0x24d7('0x29'),this['getItemLabel'](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;}_0x27e30b['push'](_0x183fc4);}return _0x27e30b;}}
23
+ const _0x39c0=['start','ELEMENT_SPACE','$text','isInContent','_customCallbacks','push','isObject','deletion','registerElementLabel','Object','quantity','getItemLabel','$1\x20$2','element','type','softBreak','pop','*Insert:*\x20%0','elementEnd','insertion','elementStart','addEmptyContainer','*Merge:*\x20%0','nextSibling','set','addObject','_schema','end','_addDescriptionItems','getDescriptions','text','function','name','Container','length','_locale','removeEmptyContainer','removeObject','add','indexOf','remove','data','item','*Remove:*\x20%0','replace','*Split:*\x20%0','isEmpty','_itemLabels','getFirstRange','getWalker','REPLACE_TEXT','match','previousSibling','_resolveDescriptionItems','get','_itemLabelsCallbacks'];(function(_0x348192,_0x39c074){const _0x10d7ed=function(_0x40b7ad){while(--_0x40b7ad){_0x348192['push'](_0x348192['shift']());}};_0x10d7ed(++_0x39c074);}(_0x39c0,0x140));const _0x10d7=function(_0x348192,_0x39c074){_0x348192=_0x348192-0x0;let _0x10d7ed=_0x39c0[_0x348192];return _0x10d7ed;};import{getTranslation as _0xd14cab}from'./utils/common-translations';import{priorities as _0x7dc9d6,insertToPriorityArray as _0x4f5464}from'ckeditor5/src/utils';export default class m{constructor(_0x52ecd8,_0x208ee6){this[_0x10d7('0x14')]=[],this['_itemLabels']=new Map(),this[_0x10d7('0xf')]=[],this[_0x10d7('0x2a')]=_0x52ecd8,this[_0x10d7('0x33')]=_0x208ee6;}[_0x10d7('0x2d')](_0x11d077){const _0x345985=[];for(let _0x31c5fd=0x0;_0x31c5fd<_0x11d077[_0x10d7('0x32')];_0x31c5fd++){const _0x34d1ba=_0x11d077[_0x31c5fd];if(!_0x34d1ba[_0x10d7('0x13')])continue;let _0x4cfccf=!0x1;for(const _0x69acf1 of this[_0x10d7('0x14')]){const _0x1bcb7e=_0x69acf1(_0x34d1ba);if(_0x1bcb7e){_0x10d7('0x1e')in _0x1bcb7e&&_0x345985[_0x10d7('0x15')](_0x1bcb7e),_0x4cfccf=!0x0;break;}}if(!_0x4cfccf){this['_addDescriptionItems'](_0x345985,_0x34d1ba);const _0x88e6a0=_0x11d077[_0x31c5fd+0x1];if(_0x88e6a0&&!_0x34d1ba[_0x10d7('0x8')]()[_0x10d7('0x2b')]['isEqual'](_0x88e6a0[_0x10d7('0x8')]()[_0x10d7('0x10')])){const _0x33524d=_0x345985[_0x345985[_0x10d7('0x32')]-0x1],_0x2a5fc9=_0x10d7('0x23')==_0x34d1ba[_0x10d7('0x1e')]?_0x10d7('0x36'):_0x10d7('0x0');_0x33524d&&_0x10d7('0x2e')==_0x33524d[_0x10d7('0x1e')]&&(_0x33524d[_0x2a5fc9]+='\x0a');}}}return this[_0x10d7('0xd')](_0x345985);}['registerDescriptionCallback'](_0x4ebe45){this['_customCallbacks']['push'](_0x4ebe45);}[_0x10d7('0x18')](_0x1966f0,_0x2db84d,_0x4d3a40=_0x7dc9d6['normal']){_0x10d7('0x2f')==typeof _0x1966f0?_0x4f5464(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1966f0,'label':_0x2db84d,'priority':_0x4d3a40}):this[_0x10d7('0x7')][_0x10d7('0x28')](_0x1966f0,_0x2db84d);}[_0x10d7('0x1b')](_0xf8f88d,_0x3a9178=0x1){let _0x4c450c;for(const _0x2a0f79 of this[_0x10d7('0xf')])if(_0x2a0f79['matchingCallback'](_0xf8f88d)){_0x4c450c=_0x2a0f79['label'];break;}return _0x4c450c||(_0x4c450c=this['_itemLabels'][_0x10d7('0xe')](_0xf8f88d[_0x10d7('0x30')])),_0x4c450c?_0x4c450c(_0x3a9178):0x1!==_0x3a9178?_0x3a9178+'\x20'+_0xf8f88d[_0x10d7('0x30')]+'s':''+_0xf8f88d[_0x10d7('0x30')];}[_0x10d7('0x2c')](_0x569c16,_0x16bd8e){const _0x2f9d57=_0x16bd8e[_0x10d7('0x8')]()[_0x10d7('0x9')](),_0x3beebc=_0x10d7('0x23')==_0x16bd8e[_0x10d7('0x1e')]?_0x10d7('0x36'):_0x10d7('0x0');for(const _0x27d3a4 of _0x2f9d57){const _0x33a0ee=_0x27d3a4[_0x10d7('0x2')],_0x4dc9d2=_0x569c16[_0x569c16[_0x10d7('0x32')]-0x1];if(_0x33a0ee['is']('$textProxy'))_0x4dc9d2&&_0x4dc9d2['type'][_0x10d7('0x37')]('Container')>-0x1&&_0x569c16[_0x10d7('0x20')](),_0x4dc9d2&&_0x10d7('0x2e')==_0x4dc9d2[_0x10d7('0x1e')]?_0x4dc9d2[_0x3beebc]+=_0x33a0ee[_0x10d7('0x1')]:_0x569c16[_0x10d7('0x15')]({'type':'text','add':_0x10d7('0x36')==_0x3beebc?_0x33a0ee[_0x10d7('0x1')]:'','remove':_0x10d7('0x0')==_0x3beebc?_0x33a0ee[_0x10d7('0x1')]:''});else{if(this[_0x10d7('0x2a')][_0x10d7('0x16')](_0x33a0ee)){const _0x3e2ad7=_0x33a0ee;if(_0x4dc9d2&&_0x4dc9d2[_0x10d7('0x1e')]['indexOf'](_0x10d7('0x31'))>-0x1&&_0x569c16[_0x10d7('0x20')](),_0x10d7('0x22')==_0x27d3a4[_0x10d7('0x1e')])continue;_0x4dc9d2&&_0x4dc9d2[_0x10d7('0x1e')]==_0x3beebc+_0x10d7('0x19')&&_0x4dc9d2[_0x10d7('0x1d')][_0x10d7('0x30')]==_0x3e2ad7[_0x10d7('0x30')]?_0x4dc9d2[_0x10d7('0x1a')]++:_0x569c16['push']({'type':_0x3beebc+_0x10d7('0x19'),'element':_0x3e2ad7,'quantity':0x1}),_0x2f9d57['skip'](_0x1cf7f7=>!('elementEnd'==_0x1cf7f7[_0x10d7('0x1e')]&&_0x1cf7f7[_0x10d7('0x2')]==_0x33a0ee));}else{if(this['_schema']['checkChild'](_0x33a0ee,_0x10d7('0x12'))||_0x33a0ee['is'](_0x10d7('0x1d'),_0x10d7('0x1f'))){const _0x42bc6c=_0x33a0ee;if('add'==_0x3beebc&&_0x10d7('0x24')==_0x27d3a4[_0x10d7('0x1e')]||_0x10d7('0x0')==_0x3beebc&&_0x10d7('0x22')==_0x27d3a4['type'])continue;if(_0x4dc9d2&&-0x1==_0x4dc9d2[_0x10d7('0x1e')][_0x10d7('0x37')]('Container')){_0x10d7('0x2e')==_0x4dc9d2[_0x10d7('0x1e')]&&(_0x4dc9d2[_0x3beebc]+='\x0a');continue;}let _0xbe227d;if(_0xbe227d=_0x10d7('0x36')==_0x3beebc?_0x42bc6c[_0x10d7('0x27')]&&!this[_0x10d7('0x2a')][_0x10d7('0x16')](_0x42bc6c[_0x10d7('0x27')])?_0x42bc6c['nextSibling']:null:_0x42bc6c['previousSibling']&&!this['_schema']['isObject'](_0x42bc6c['previousSibling'])?_0x42bc6c[_0x10d7('0xc')]:null,_0x42bc6c[_0x10d7('0x6')]||_0xbe227d&&_0xbe227d[_0x10d7('0x6')]){const _0xde1525=_0xbe227d&&_0xbe227d[_0x10d7('0x6')]?_0xbe227d:_0x42bc6c;_0x4dc9d2&&_0x4dc9d2[_0x10d7('0x1e')]==_0x3beebc+'EmptyContainer'&&_0x4dc9d2[_0x10d7('0x1d')][_0x10d7('0x30')]==_0xde1525[_0x10d7('0x30')]?_0x4dc9d2[_0x10d7('0x1a')]++:_0x569c16[_0x10d7('0x15')]({'type':_0x3beebc+'EmptyContainer','element':_0xde1525,'quantity':0x1});}else _0x569c16[_0x10d7('0x15')]({'type':_0x3beebc+_0x10d7('0x31'),'element':_0x42bc6c});}}}}}[_0x10d7('0xd')](_0x48bc32){const _0xfa0192=this[_0x10d7('0x33')],_0x13fcd5=[];for(const _0x2270ed of _0x48bc32){switch(_0x2270ed[_0x10d7('0x1e')]){case _0x10d7('0x2e'):if(_0x2270ed[_0x10d7('0x36')]=_0x2270ed[_0x10d7('0x36')][_0x10d7('0x4')](/(\S)\u000A+(\S)/g,_0x10d7('0x1c'))[_0x10d7('0x4')](/\u000A/g,''),_0x2270ed[_0x10d7('0x0')]=_0x2270ed[_0x10d7('0x0')][_0x10d7('0x4')](/(\S)\u000A+(\S)/g,_0x10d7('0x1c'))[_0x10d7('0x4')](/\u000A/g,''),''!=_0x2270ed[_0x10d7('0x36')]&&''!=_0x2270ed['remove']){_0x13fcd5['push']({'type':_0x10d7('0x4'),'content':_0xd14cab(_0xfa0192,_0x10d7('0xa'),['\x22'+_0x2270ed[_0x10d7('0x0')]+'\x22','\x22'+_0x2270ed['add']+'\x22'])});continue;}if(null!=_0x2270ed['add'][_0x10d7('0xb')](/^ +$/)){_0x13fcd5['push']({'type':_0x10d7('0x23'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x21'),_0xd14cab(_0xfa0192,_0x10d7('0x11'),_0x2270ed[_0x10d7('0x36')]['length']))});continue;}if(null!=_0x2270ed[_0x10d7('0x0')][_0x10d7('0xb')](/^ +$/)){_0x13fcd5[_0x10d7('0x15')]({'type':_0x10d7('0x17'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x3'),_0xd14cab(_0xfa0192,_0x10d7('0x11'),_0x2270ed[_0x10d7('0x0')][_0x10d7('0x32')]))});continue;}if(''!=_0x2270ed[_0x10d7('0x36')]){_0x13fcd5[_0x10d7('0x15')]({'type':'insertion','content':_0xd14cab(_0xfa0192,_0x10d7('0x21'),'\x22'+_0x2270ed['add']+'\x22')});continue;}_0x13fcd5[_0x10d7('0x15')]({'type':_0x10d7('0x17'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x3'),'\x22'+_0x2270ed[_0x10d7('0x0')]+'\x22')});continue;case _0x10d7('0x25'):case _0x10d7('0x29'):_0x13fcd5[_0x10d7('0x15')]({'type':_0x10d7('0x23'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x21'),this['getItemLabel'](_0x2270ed[_0x10d7('0x1d')],_0x2270ed['quantity']))});continue;case _0x10d7('0x34'):case _0x10d7('0x35'):_0x13fcd5['push']({'type':_0x10d7('0x17'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x3'),this[_0x10d7('0x1b')](_0x2270ed[_0x10d7('0x1d')],_0x2270ed[_0x10d7('0x1a')]))});continue;case'addContainer':_0x13fcd5['push']({'type':'insertion','content':_0xd14cab(_0xfa0192,_0x10d7('0x5'),this[_0x10d7('0x1b')](_0x2270ed[_0x10d7('0x1d')],_0x2270ed[_0x10d7('0x1a')]))});continue;case'removeContainer':_0x13fcd5[_0x10d7('0x15')]({'type':_0x10d7('0x17'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x26'),this[_0x10d7('0x1b')](_0x2270ed[_0x10d7('0x1d')],_0x2270ed['quantity']))});continue;}_0x13fcd5[_0x10d7('0x15')](_0x2270ed);}return _0x13fcd5;}}