@ckeditor/ckeditor5-track-changes 40.1.0 → 41.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/CHANGELOG.md +20 -20
  2. package/LICENSE.md +1 -1
  3. package/README.md +1 -1
  4. package/build/track-changes.js +3 -3
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/az.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/ca.js +1 -1
  10. package/build/translations/cs.js +1 -1
  11. package/build/translations/da.js +1 -1
  12. package/build/translations/de.js +1 -1
  13. package/build/translations/el.js +1 -1
  14. package/build/translations/en-au.js +1 -1
  15. package/build/translations/es.js +1 -1
  16. package/build/translations/et.js +1 -1
  17. package/build/translations/fi.js +1 -1
  18. package/build/translations/fr.js +1 -1
  19. package/build/translations/gl.js +1 -1
  20. package/build/translations/he.js +1 -1
  21. package/build/translations/hi.js +1 -1
  22. package/build/translations/hr.js +1 -1
  23. package/build/translations/hu.js +1 -1
  24. package/build/translations/id.js +1 -1
  25. package/build/translations/it.js +1 -1
  26. package/build/translations/ja.js +1 -1
  27. package/build/translations/ko.js +1 -1
  28. package/build/translations/lt.js +1 -1
  29. package/build/translations/lv.js +1 -1
  30. package/build/translations/ms.js +1 -1
  31. package/build/translations/nl.js +1 -1
  32. package/build/translations/no.js +1 -1
  33. package/build/translations/pl.js +1 -1
  34. package/build/translations/pt-br.js +1 -1
  35. package/build/translations/pt.js +1 -1
  36. package/build/translations/ro.js +1 -1
  37. package/build/translations/ru.js +1 -1
  38. package/build/translations/sk.js +1 -1
  39. package/build/translations/sq.js +1 -1
  40. package/build/translations/sr-latn.js +1 -1
  41. package/build/translations/sr.js +1 -1
  42. package/build/translations/sv.js +1 -1
  43. package/build/translations/th.js +1 -1
  44. package/build/translations/tk.js +1 -1
  45. package/build/translations/tr.js +1 -1
  46. package/build/translations/tt.js +1 -1
  47. package/build/translations/uk.js +1 -1
  48. package/build/translations/ur.js +1 -1
  49. package/build/translations/vi.js +1 -1
  50. package/build/translations/zh-cn.js +1 -1
  51. package/build/translations/zh.js +1 -1
  52. package/lang/translations/ar.po +6 -6
  53. package/lang/translations/az.po +5 -5
  54. package/lang/translations/bg.po +6 -6
  55. package/lang/translations/bn.po +6 -6
  56. package/lang/translations/ca.po +6 -6
  57. package/lang/translations/cs.po +6 -6
  58. package/lang/translations/da.po +6 -6
  59. package/lang/translations/de.po +6 -6
  60. package/lang/translations/el.po +6 -6
  61. package/lang/translations/en-au.po +6 -6
  62. package/lang/translations/en.po +6 -6
  63. package/lang/translations/es.po +7 -7
  64. package/lang/translations/et.po +6 -6
  65. package/lang/translations/fi.po +6 -6
  66. package/lang/translations/fr.po +6 -6
  67. package/lang/translations/gl.po +37 -37
  68. package/lang/translations/he.po +6 -6
  69. package/lang/translations/hi.po +6 -6
  70. package/lang/translations/hr.po +6 -6
  71. package/lang/translations/hu.po +6 -6
  72. package/lang/translations/id.po +6 -6
  73. package/lang/translations/it.po +6 -6
  74. package/lang/translations/ja.po +6 -6
  75. package/lang/translations/ko.po +6 -6
  76. package/lang/translations/lt.po +6 -6
  77. package/lang/translations/lv.po +6 -6
  78. package/lang/translations/ms.po +6 -6
  79. package/lang/translations/nl.po +6 -6
  80. package/lang/translations/no.po +6 -6
  81. package/lang/translations/pl.po +6 -6
  82. package/lang/translations/pt-br.po +6 -6
  83. package/lang/translations/pt.po +6 -6
  84. package/lang/translations/ro.po +6 -6
  85. package/lang/translations/ru.po +6 -6
  86. package/lang/translations/sk.po +6 -6
  87. package/lang/translations/sq.po +5 -5
  88. package/lang/translations/sr-latn.po +25 -25
  89. package/lang/translations/sr.po +6 -6
  90. package/lang/translations/sv.po +6 -6
  91. package/lang/translations/th.po +6 -6
  92. package/lang/translations/tk.po +5 -5
  93. package/lang/translations/tr.po +6 -6
  94. package/lang/translations/tt.po +5 -5
  95. package/lang/translations/uk.po +6 -6
  96. package/lang/translations/ur.po +5 -5
  97. package/lang/translations/vi.po +6 -6
  98. package/lang/translations/zh-cn.po +6 -6
  99. package/lang/translations/zh.po +6 -6
  100. package/package.json +4 -3
  101. package/src/augmentation.d.ts +3 -3
  102. package/src/augmentation.js +1 -1
  103. package/src/commands/acceptsuggestioncommand.d.ts +3 -3
  104. package/src/commands/acceptsuggestioncommand.js +2 -2
  105. package/src/commands/discardsuggestioncommand.d.ts +3 -3
  106. package/src/commands/discardsuggestioncommand.js +2 -2
  107. package/src/commands/executeonallsuggestionscommand.d.ts +3 -3
  108. package/src/commands/executeonallsuggestionscommand.js +2 -2
  109. package/src/commands/executeonselectedsuggestionscommand.d.ts +3 -3
  110. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  111. package/src/commands/trackchangescommand.d.ts +2 -2
  112. package/src/commands/trackchangescommand.js +2 -2
  113. package/src/index.d.ts +13 -13
  114. package/src/index.js +2 -2
  115. package/src/integrations/aiassistant.d.ts +2 -2
  116. package/src/integrations/aiassistant.js +2 -2
  117. package/src/integrations/alignment.d.ts +2 -2
  118. package/src/integrations/alignment.js +2 -2
  119. package/src/integrations/basicstyles.d.ts +2 -2
  120. package/src/integrations/basicstyles.js +2 -2
  121. package/src/integrations/blockquote.d.ts +2 -2
  122. package/src/integrations/blockquote.js +2 -2
  123. package/src/integrations/casechange.d.ts +17 -0
  124. package/src/integrations/casechange.js +23 -0
  125. package/src/integrations/ckbox.d.ts +2 -2
  126. package/src/integrations/ckbox.js +2 -2
  127. package/src/integrations/codeblock.d.ts +2 -2
  128. package/src/integrations/codeblock.js +2 -2
  129. package/src/integrations/comments.d.ts +2 -2
  130. package/src/integrations/comments.js +2 -2
  131. package/src/integrations/deletecommand.d.ts +3 -3
  132. package/src/integrations/deletecommand.js +2 -2
  133. package/src/integrations/entercommand.d.ts +3 -3
  134. package/src/integrations/entercommand.js +2 -2
  135. package/src/integrations/findandreplace.d.ts +2 -2
  136. package/src/integrations/findandreplace.js +2 -2
  137. package/src/integrations/font.d.ts +2 -2
  138. package/src/integrations/font.js +2 -2
  139. package/src/integrations/formatpainter.d.ts +2 -2
  140. package/src/integrations/formatpainter.js +2 -2
  141. package/src/integrations/heading.d.ts +2 -2
  142. package/src/integrations/heading.js +2 -2
  143. package/src/integrations/highlight.d.ts +2 -2
  144. package/src/integrations/highlight.js +2 -2
  145. package/src/integrations/horizontalline.d.ts +2 -2
  146. package/src/integrations/horizontalline.js +2 -2
  147. package/src/integrations/htmlembed.d.ts +2 -2
  148. package/src/integrations/htmlembed.js +2 -2
  149. package/src/integrations/image.d.ts +2 -2
  150. package/src/integrations/image.js +2 -2
  151. package/src/integrations/imagereplace.d.ts +2 -2
  152. package/src/integrations/imagereplace.js +2 -2
  153. package/src/integrations/imagestyle.d.ts +2 -2
  154. package/src/integrations/imagestyle.js +2 -2
  155. package/src/integrations/importword.d.ts +2 -2
  156. package/src/integrations/importword.js +2 -2
  157. package/src/integrations/indent.d.ts +2 -2
  158. package/src/integrations/indent.js +2 -2
  159. package/src/integrations/inputcommand.d.ts +3 -3
  160. package/src/integrations/inputcommand.js +2 -2
  161. package/src/integrations/legacylist.d.ts +17 -0
  162. package/src/integrations/legacylist.js +23 -0
  163. package/src/integrations/{documentlistproperties.d.ts → legacylistproperties.d.ts} +7 -7
  164. package/src/integrations/legacylistproperties.js +23 -0
  165. package/src/integrations/link.d.ts +2 -2
  166. package/src/integrations/link.js +2 -2
  167. package/src/integrations/list.d.ts +6 -6
  168. package/src/integrations/list.js +2 -2
  169. package/src/integrations/listproperties.d.ts +6 -15
  170. package/src/integrations/listproperties.js +2 -2
  171. package/src/integrations/mediaembed.d.ts +2 -2
  172. package/src/integrations/mediaembed.js +2 -2
  173. package/src/integrations/mention.d.ts +2 -2
  174. package/src/integrations/mention.js +2 -2
  175. package/src/integrations/pagebreak.d.ts +2 -2
  176. package/src/integrations/pagebreak.js +2 -2
  177. package/src/integrations/paragraph.d.ts +2 -2
  178. package/src/integrations/paragraph.js +2 -2
  179. package/src/integrations/removeformat.d.ts +2 -2
  180. package/src/integrations/removeformat.js +2 -2
  181. package/src/integrations/restrictededitingmode.d.ts +2 -2
  182. package/src/integrations/restrictededitingmode.js +2 -2
  183. package/src/integrations/shiftentercommand.d.ts +3 -3
  184. package/src/integrations/shiftentercommand.js +2 -2
  185. package/src/integrations/standardeditingmode.d.ts +2 -2
  186. package/src/integrations/standardeditingmode.js +2 -2
  187. package/src/integrations/style.d.ts +2 -2
  188. package/src/integrations/style.js +2 -2
  189. package/src/integrations/table.d.ts +2 -2
  190. package/src/integrations/table.js +2 -2
  191. package/src/integrations/tablecaption.d.ts +3 -3
  192. package/src/integrations/tablecaption.js +2 -2
  193. package/src/integrations/tableclipboard.d.ts +3 -3
  194. package/src/integrations/tableclipboard.js +2 -2
  195. package/src/integrations/tablecolumnresize.d.ts +5 -5
  196. package/src/integrations/tablecolumnresize.js +2 -2
  197. package/src/integrations/tableheadings.d.ts +3 -3
  198. package/src/integrations/tableheadings.js +2 -2
  199. package/src/integrations/tablemergesplit.d.ts +3 -3
  200. package/src/integrations/tablemergesplit.js +2 -2
  201. package/src/integrations/tableofcontents.d.ts +2 -2
  202. package/src/integrations/tableofcontents.js +2 -2
  203. package/src/integrations/tableproperties.d.ts +5 -5
  204. package/src/integrations/tableproperties.js +2 -2
  205. package/src/integrations/template.d.ts +2 -2
  206. package/src/integrations/template.js +2 -2
  207. package/src/integrations/title.d.ts +2 -2
  208. package/src/integrations/title.js +2 -2
  209. package/src/integrations/undo.d.ts +2 -2
  210. package/src/integrations/undo.js +2 -2
  211. package/src/integrations/utils.d.ts +4 -4
  212. package/src/integrations/utils.js +2 -2
  213. package/src/suggestion.d.ts +6 -6
  214. package/src/suggestion.js +2 -2
  215. package/src/suggestiondescriptionfactory.d.ts +4 -4
  216. package/src/suggestiondescriptionfactory.js +2 -2
  217. package/src/trackchanges.d.ts +6 -6
  218. package/src/trackchanges.js +2 -2
  219. package/src/trackchangesconfig.d.ts +2 -2
  220. package/src/trackchangesconfig.js +1 -1
  221. package/src/trackchangesdata.d.ts +3 -3
  222. package/src/trackchangesdata.js +2 -2
  223. package/src/trackchangesediting.d.ts +56 -55
  224. package/src/trackchangesediting.js +2 -2
  225. package/src/trackchangesui.d.ts +4 -4
  226. package/src/trackchangesui.js +2 -2
  227. package/src/ui/suggestioncontroller.d.ts +6 -6
  228. package/src/ui/suggestioncontroller.js +2 -2
  229. package/src/ui/view/basesuggestionthreadview.d.ts +7 -7
  230. package/src/ui/view/basesuggestionthreadview.js +2 -2
  231. package/src/ui/view/suggestionthreadview.d.ts +6 -6
  232. package/src/ui/view/suggestionthreadview.js +2 -2
  233. package/src/utils/common-translations.d.ts +2 -2
  234. package/src/utils/common-translations.js +2 -2
  235. package/src/utils/utils.d.ts +5 -5
  236. package/src/utils/utils.js +2 -2
  237. package/theme/icons/track-changes-accept.svg +1 -1
  238. package/theme/icons/track-changes-discard.svg +1 -1
  239. package/theme/icons/track-changes.svg +1 -1
  240. package/src/integrations/documentlist.d.ts +0 -17
  241. package/src/integrations/documentlist.js +0 -23
  242. package/src/integrations/documentlistproperties.js +0 -23
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4254=['findAncestor','format','map','createRangeOn','value','commands','isInContent','splitTableCellHorizontally','requires','_suggestionFactory','formatInline','mergeTableCells','accept','markMultiRangeBlockFormat','subType','_isForcedDefaultExecutionBlock','plugins','low','filter','getRanges','registerDescriptionCallback','direction','_tablePostFixingSubtypes','createTableWalker','mergeTableCellUp','refresh','_areMergableCells','$graveyard','detach','root','_areSelectedCellsMergable','element','cell','*Merge\x20cells*','stop','_descriptionFactory','selection','TrackChangesEditing','afterInit','_acceptFormatSuggestionCallbackFactory','insertion','length','get','getFirstPosition','type','deletion','horizontally','execute','isEnabled','trackChanges','find','document','mergeTableCellRight','registerCustomCallback','locale','formatBlock','model','change','enableCommand','size','getSelectionAffectedTableCells','TableEditing','editor','author','has','add','mergeTableCellDown','containsRange','TableUtils','splitTableCellVertically','from','getAncestors','commandName','getSuggestions','mergeTableCellLeft','tableCell','*Split\x20cell:*\x20horizontally'];(function(_0x310abd,_0x425411){const _0x351433=function(_0x53037e){while(--_0x53037e){_0x310abd['push'](_0x310abd['shift']());}};_0x351433(++_0x425411);}(_0x4254,0x132));const _0x3514=function(_0x310abd,_0x425411){_0x310abd=_0x310abd-0x0;let _0x351433=_0x4254[_0x310abd];return _0x351433;};import{Plugin as _0x373e2d}from'ckeditor5/src/core';import _0x43dc52 from'./table';import{LiveRange as _0x23b489}from'ckeditor5/src/engine';import{getTranslation as _0x3ce9e3}from'../utils/common-translations';export default class yt extends _0x373e2d{static get[_0x3514('0xa')](){return[_0x43dc52];}[_0x3514('0x28')](){const _0x36a187=this[_0x3514('0x40')],_0x38c252=_0x36a187[_0x3514('0x3a')]['document'][_0x3514('0x26')],_0x290fbe=_0x36a187[_0x3514('0x38')];if(!_0x36a187['plugins']['has'](_0x3514('0x3f')))return;const _0x167b8c=_0x36a187['plugins'][_0x3514('0x2c')](_0x3514('0x27')),_0x4cd69a=_0x36a187['plugins'][_0x3514('0x2c')](_0x3514('0x46')),_0xe98b3a=_0x36a187[_0x3514('0x12')]['get'](_0x43dc52);_0xe98b3a[_0x3514('0x18')]['push'](_0x3514('0xd')),_0x167b8c[_0x3514('0x3c')](_0x3514('0xd'),()=>{const _0x3f473f=_0x4cd69a[_0x3514('0x3e')](_0x36a187['model'][_0x3514('0x35')][_0x3514('0x26')]);_0x36a187[_0x3514('0x3a')]['change'](()=>{_0x167b8c[_0x3514('0xf')](_0x3f473f,{'commandName':'mergeTableCells','commandParams':[]},[],_0x3514('0xd'));});}),_0x36a187[_0x3514('0x7')]['get'](_0x3514('0xd'))['on']('execute',(_0x586a14,_0xc7397e)=>{_0x36a187['commands'][_0x3514('0x2c')](_0x3514('0x33'))[_0x3514('0x6')]&&(_0xc7397e[_0x3514('0x2b')]>0x0&&_0xc7397e[_0xc7397e['length']-0x1]&&_0xc7397e[_0xc7397e[_0x3514('0x2b')]-0x1]['forceDefaultExecution']||_0x167b8c[_0x3514('0x11')]||this[_0x3514('0x20')]()||_0x586a14[_0x3514('0x24')]());},{'priority':'highest'});for(const _0x2d92ca of[_0x3514('0x1a'),_0x3514('0x36'),'mergeTableCellDown','mergeTableCellLeft']){const _0x435e8a=_0x36a187['commands'][_0x3514('0x2c')](_0x2d92ca);_0x167b8c[_0x3514('0x3c')](_0x2d92ca,()=>{const _0x4123c0=_0x36a187[_0x3514('0x3a')]['document']['selection'][_0x3514('0x2d')]()[_0x3514('0x49')]()[_0x3514('0x34')](_0x3f8c56=>_0x3f8c56['is'](_0x3514('0x21'),_0x3514('0x0'))),_0x1003d0=_0x435e8a[_0x3514('0x6')];_0x36a187['model']['change'](()=>{_0x167b8c[_0x3514('0xf')]([_0x4123c0,_0x1003d0],{'commandName':_0x3514('0xd'),'commandParams':[]},[],_0x3514('0xd'));});});}for(const _0x5f0c4b of['splitTableCellVertically',_0x3514('0x9')]){const _0x4e1368=_0x36a187[_0x3514('0x7')][_0x3514('0x2c')](_0x5f0c4b);_0x167b8c[_0x3514('0x3c')](_0x5f0c4b,()=>{const _0xb20d92=_0x4cd69a[_0x3514('0x3e')](_0x36a187[_0x3514('0x3a')]['document'][_0x3514('0x26')])[0x0],_0x14f461=_0xb20d92[_0x3514('0x2')]('table'),{column:_0x41f2a9,row:_0x647be4}=_0x4cd69a['getCellLocation'](_0xb20d92);let _0x33292d=[];if(_0x3514('0x30')==_0x4e1368[_0x3514('0x17')]){const _0x5f0440=_0x4cd69a[_0x3514('0x19')](_0x14f461,{'startRow':_0x647be4,'endRow':_0x647be4,'includeAllSlots':!0x0});_0x33292d=Array[_0x3514('0x48')](_0x5f0440)[_0x3514('0x4')](_0x16d8e1=>_0x16d8e1[_0x3514('0x22')]);}else{const _0x6e2274=_0x4cd69a[_0x3514('0x19')](_0x14f461,{'column':_0x41f2a9,'includeAllSlots':!0x0});_0x33292d=Array[_0x3514('0x48')](_0x6e2274)[_0x3514('0x4')](_0x24d9e0=>_0x24d9e0[_0x3514('0x22')]);}_0x36a187[_0x3514('0x3a')][_0x3514('0x3b')](_0x7f45=>{_0x167b8c['markBlockFormat'](_0x7f45['createRangeOn'](_0xb20d92),{'commandName':_0x5f0c4b,'commandParams':[]},_0x33292d,_0x5f0c4b);});});}_0x167b8c[_0x3514('0x25')][_0x3514('0x16')](_0x11f08a=>{if('formatBlock'!=_0x11f08a[_0x3514('0x2e')]&&_0x3514('0xc')!=_0x11f08a[_0x3514('0x2e')])return;const {data:_0x46b988}=_0x11f08a;return _0x46b988&&_0x3514('0xd')==_0x46b988[_0x3514('0x4a')]?{'type':'format','content':_0x3ce9e3(_0x290fbe,_0x3514('0x23'))}:void 0x0;}),_0x167b8c[_0x3514('0x25')][_0x3514('0x16')](_0x5d518e=>{if('formatBlock'!=_0x5d518e['type']&&_0x3514('0xc')!=_0x5d518e[_0x3514('0x2e')])return;const {data:_0x2d89e6}=_0x5d518e;return _0x2d89e6?_0x3514('0x47')==_0x2d89e6[_0x3514('0x4a')]?{'type':'format','content':_0x3ce9e3(_0x290fbe,'*Split\x20cell:*\x20vertically')}:_0x3514('0x9')==_0x2d89e6[_0x3514('0x4a')]?{'type':_0x3514('0x3'),'content':_0x3ce9e3(_0x290fbe,_0x3514('0x1'))}:void 0x0:void 0x0;});const _0x4d3f51=_0xe98b3a[_0x3514('0x29')]();for(const _0x5067e2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown',_0x3514('0x4c')])_0x167b8c[_0x3514('0xb')][_0x3514('0x37')]('formatBlock',_0x5067e2,'accept',_0x4d3f51);for(const _0x37d862 of[_0x3514('0x47'),'splitTableCellHorizontally'])_0x167b8c[_0x3514('0xb')][_0x3514('0x37')](_0x3514('0x39'),_0x37d862,_0x3514('0xe'),_0x4d3f51);_0x167b8c[_0x3514('0xb')][_0x3514('0x37')](_0x3514('0x39'),_0x3514('0xd'),_0x3514('0xe'),_0x3df376=>{_0x36a187[_0x3514('0x3a')][_0x3514('0x3b')](_0x4bf83f=>{const _0xe636f6=Array[_0x3514('0x48')](_0x38c252[_0x3514('0x15')]())[_0x3514('0x4')](_0x674f73=>_0x23b489['fromRange'](_0x674f73));_0x4bf83f['setSelection'](_0x3df376),_0x36a187[_0x3514('0x7')][_0x3514('0x2c')]('mergeTableCells')[_0x3514('0x1b')](),_0x36a187[_0x3514('0x31')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3ce831=_0xe636f6[_0x3514('0x14')](_0x5daf68=>_0x3514('0x1d')!=_0x5daf68[_0x3514('0x1f')]['rootName']);_0x3ce831[_0x3514('0x2b')]>0x0&&_0x4bf83f['setSelection'](_0x3ce831);for(const _0x5953b3 of _0xe636f6)_0x5953b3[_0x3514('0x1e')]();});});for(const _0x22e789 of[_0x3514('0x1a'),_0x3514('0x44'),'mergeTableCellLeft',_0x3514('0x36')]){const _0x7780e1=_0x36a187[_0x3514('0x7')]['get'](_0x22e789);_0x7780e1['on']('set:isEnabled',(_0x514021,_0x50b5dc,_0x217ae0)=>{if(_0x217ae0){const _0x2ce113=_0x36a187['model'][_0x3514('0x35')][_0x3514('0x26')][_0x3514('0x2d')]()[_0x3514('0x49')]()[_0x3514('0x34')](_0x217547=>_0x217547['is'](_0x3514('0x21'),_0x3514('0x0')));this['_areMergableCells'](_0x7780e1['value'],_0x2ce113)||(_0x514021['return']=!0x1,_0x514021['stop']());}},{'priority':_0x3514('0x13')});}}[_0x3514('0x20')](){const _0x264ea3=this['editor']['commands']['get'](_0x3514('0xd')),_0x4d5f69=this['editor'][_0x3514('0x12')][_0x3514('0x2c')](_0x3514('0x46'));if(!_0x264ea3[_0x3514('0x32')])return!0x1;const _0x2b0bcf=_0x4d5f69[_0x3514('0x3e')](this[_0x3514('0x40')][_0x3514('0x3a')][_0x3514('0x35')][_0x3514('0x26')]);for(const _0x16d112 of _0x2b0bcf)for(const _0x9a3f47 of _0x2b0bcf)if(_0x16d112!=_0x9a3f47&&!this[_0x3514('0x1c')](_0x16d112,_0x9a3f47))return!0x1;return!0x0;}[_0x3514('0x1c')](_0x30d5b6,_0x159f0d){const _0x144a9a=this[_0x3514('0x40')][_0x3514('0x12')][_0x3514('0x2c')](_0x3514('0x27')),_0x59dbad=this['editor'][_0x3514('0x3a')]['createRangeOn'](_0x30d5b6),_0x282c1d=this[_0x3514('0x40')]['model'][_0x3514('0x5')](_0x159f0d),_0x3f8514=new Set(),_0x4c90f4=new Set();for(const _0x23b701 of _0x144a9a[_0x3514('0x4b')]())if((_0x3514('0x2a')==_0x23b701[_0x3514('0x2e')]||_0x3514('0x2f')==_0x23b701[_0x3514('0x2e')]||_0x3514('0xd')==_0x23b701[_0x3514('0x10')])&&_0x23b701[_0x3514('0x8')])for(const _0x3a75c7 of _0x23b701[_0x3514('0x15')]())_0x3a75c7[_0x3514('0x45')](_0x59dbad,!0x0)&&_0x3f8514[_0x3514('0x43')](_0x23b701[_0x3514('0x2e')]+':'+_0x23b701[_0x3514('0x41')]['id']),_0x3a75c7[_0x3514('0x45')](_0x282c1d,!0x0)&&_0x4c90f4['add'](_0x23b701[_0x3514('0x2e')]+':'+_0x23b701['author']['id']);if(_0x3f8514[_0x3514('0x3d')]!=_0x4c90f4[_0x3514('0x3d')])return!0x1;for(const _0xd8cc2 of _0x3f8514)if(!_0x4c90f4[_0x3514('0x42')](_0xd8cc2))return!0x1;return!0x0;}}
23
+ const _0x4ab6=['accept','has','root','value','stop','push','selection','getCellLocation','getSuggestions','highest','splitTableCellHorizontally','_areSelectedCellsMergable','isInContent','registerDescriptionCallback','get','from','mergeTableCells','add','type','mergeTableCellLeft','forceDefaultExecution','getAncestors','subType','document','return','markMultiRangeBlockFormat','TrackChangesEditing','formatInline','_isForcedDefaultExecutionBlock','TableUtils','createRangeOn','direction','_areMergableCells','isEnabled','getFirstPosition','refresh','length','findAncestor','editor','containsRange','setSelection','registerCustomCallback','commandName','set:isEnabled','author','TableEditing','*Split\x20cell:*\x20vertically','table','format','createTableWalker','afterInit','rootName','enableCommand','getRanges','change','size','trackChanges','_acceptFormatSuggestionCallbackFactory','_suggestionFactory','tableCell','mergeTableCellUp','execute','*Split\x20cell:*\x20horizontally','plugins','element','low','map','commands','splitTableCellVertically','formatBlock','model','mergeTableCellDown','requires','$graveyard','insertion','cell','mergeTableCellRight','find','filter'];(function(_0x4293e0,_0x4ab6fb){const _0x542022=function(_0x1c26bf){while(--_0x1c26bf){_0x4293e0['push'](_0x4293e0['shift']());}};_0x542022(++_0x4ab6fb);}(_0x4ab6,0x17b));const _0x5420=function(_0x4293e0,_0x4ab6fb){_0x4293e0=_0x4293e0-0x0;let _0x542022=_0x4ab6[_0x4293e0];return _0x542022;};import{Plugin as _0xcd357a}from'ckeditor5/src/core.js';import _0x2a6ad3 from'./table.js';import{LiveRange as _0x51da94}from'ckeditor5/src/engine.js';import{getTranslation as _0x37bbf5}from'../utils/common-translations.js';export default class jt extends _0xcd357a{static get[_0x5420('0x9')](){return[_0x2a6ad3];}[_0x5420('0x42')](){const _0x2f68b8=this[_0x5420('0x36')],_0x29f373=_0x2f68b8['model'][_0x5420('0x27')][_0x5420('0x16')],_0x59c37d=_0x2f68b8['locale'];if(!_0x2f68b8[_0x5420('0x0')][_0x5420('0x11')](_0x5420('0x3d')))return;const _0xd08810=_0x2f68b8[_0x5420('0x0')]['get'](_0x5420('0x2a')),_0x5e363e=_0x2f68b8[_0x5420('0x0')]['get'](_0x5420('0x2d')),_0x2dd412=_0x2f68b8['plugins']['get'](_0x2a6ad3);_0x2dd412['_tablePostFixingSubtypes'][_0x5420('0x15')](_0x5420('0x20')),_0xd08810[_0x5420('0x44')](_0x5420('0x20'),()=>{const _0x4e0a47=_0x5e363e['getSelectionAffectedTableCells'](_0x2f68b8[_0x5420('0x7')][_0x5420('0x27')][_0x5420('0x16')]);_0x2f68b8[_0x5420('0x7')]['change'](()=>{_0xd08810[_0x5420('0x29')](_0x4e0a47,{'commandName':_0x5420('0x20'),'commandParams':[]},[],_0x5420('0x20'));});}),_0x2f68b8[_0x5420('0x4')][_0x5420('0x1e')](_0x5420('0x20'))['on'](_0x5420('0x4d'),(_0x245065,_0x186479)=>{_0x2f68b8[_0x5420('0x4')][_0x5420('0x1e')](_0x5420('0x48'))[_0x5420('0x13')]&&(_0x186479[_0x5420('0x34')]>0x0&&_0x186479[_0x186479[_0x5420('0x34')]-0x1]&&_0x186479[_0x186479[_0x5420('0x34')]-0x1][_0x5420('0x24')]||_0xd08810[_0x5420('0x2c')]||this['_areSelectedCellsMergable']()||_0x245065['stop']());},{'priority':_0x5420('0x19')});for(const _0x7cd28a of[_0x5420('0x4c'),_0x5420('0xd'),_0x5420('0x8'),_0x5420('0x23')]){const _0x3f2143=_0x2f68b8[_0x5420('0x4')][_0x5420('0x1e')](_0x7cd28a);_0xd08810[_0x5420('0x44')](_0x7cd28a,()=>{const _0x1b0cda=_0x2f68b8[_0x5420('0x7')][_0x5420('0x27')][_0x5420('0x16')][_0x5420('0x32')]()['getAncestors']()[_0x5420('0xe')](_0x283d75=>_0x283d75['is'](_0x5420('0x1'),_0x5420('0x4b'))),_0x29182a=_0x3f2143[_0x5420('0x13')];_0x2f68b8[_0x5420('0x7')][_0x5420('0x46')](()=>{_0xd08810[_0x5420('0x29')]([_0x1b0cda,_0x29182a],{'commandName':_0x5420('0x20'),'commandParams':[]},[],_0x5420('0x20'));});});}for(const _0x350a91 of[_0x5420('0x5'),_0x5420('0x1a')]){const _0x1a0aed=_0x2f68b8['commands'][_0x5420('0x1e')](_0x350a91);_0xd08810['enableCommand'](_0x350a91,()=>{const _0xbf5748=_0x5e363e['getSelectionAffectedTableCells'](_0x2f68b8['model']['document']['selection'])[0x0],_0x110d9c=_0xbf5748[_0x5420('0x35')](_0x5420('0x3f')),{column:_0x2faa69,row:_0x3fd9bf}=_0x5e363e[_0x5420('0x17')](_0xbf5748);let _0x548164=[];if('horizontally'==_0x1a0aed[_0x5420('0x2f')]){const _0x7fd782=_0x5e363e['createTableWalker'](_0x110d9c,{'startRow':_0x3fd9bf,'endRow':_0x3fd9bf,'includeAllSlots':!0x0});_0x548164=Array[_0x5420('0x1f')](_0x7fd782)[_0x5420('0x3')](_0x4202ca=>_0x4202ca[_0x5420('0xc')]);}else{const _0x3947ef=_0x5e363e[_0x5420('0x41')](_0x110d9c,{'column':_0x2faa69,'includeAllSlots':!0x0});_0x548164=Array[_0x5420('0x1f')](_0x3947ef)[_0x5420('0x3')](_0x19f93f=>_0x19f93f[_0x5420('0xc')]);}_0x2f68b8[_0x5420('0x7')][_0x5420('0x46')](_0x46a658=>{_0xd08810['markBlockFormat'](_0x46a658[_0x5420('0x2e')](_0xbf5748),{'commandName':_0x350a91,'commandParams':[]},_0x548164,_0x350a91);});});}_0xd08810['_descriptionFactory'][_0x5420('0x1d')](_0x11eec3=>{if(_0x5420('0x6')!=_0x11eec3['type']&&'formatInline'!=_0x11eec3[_0x5420('0x22')])return;const {data:_0x5b5a48}=_0x11eec3;return _0x5b5a48&&'mergeTableCells'==_0x5b5a48['commandName']?{'type':_0x5420('0x40'),'content':_0x37bbf5(_0x59c37d,'*Merge\x20cells*')}:void 0x0;}),_0xd08810['_descriptionFactory'][_0x5420('0x1d')](_0x4c20e0=>{if(_0x5420('0x6')!=_0x4c20e0[_0x5420('0x22')]&&_0x5420('0x2b')!=_0x4c20e0[_0x5420('0x22')])return;const {data:_0x3ce5f9}=_0x4c20e0;return _0x3ce5f9?_0x5420('0x5')==_0x3ce5f9[_0x5420('0x3a')]?{'type':_0x5420('0x40'),'content':_0x37bbf5(_0x59c37d,_0x5420('0x3e'))}:_0x5420('0x1a')==_0x3ce5f9[_0x5420('0x3a')]?{'type':_0x5420('0x40'),'content':_0x37bbf5(_0x59c37d,_0x5420('0x4e'))}:void 0x0:void 0x0;});const _0xf28b42=_0x2dd412[_0x5420('0x49')]();for(const _0x205f78 of[_0x5420('0x4c'),_0x5420('0xd'),_0x5420('0x8'),'mergeTableCellLeft'])_0xd08810[_0x5420('0x4a')][_0x5420('0x39')]('formatBlock',_0x205f78,_0x5420('0x10'),_0xf28b42);for(const _0x1670fa of['splitTableCellVertically',_0x5420('0x1a')])_0xd08810['_suggestionFactory'][_0x5420('0x39')](_0x5420('0x6'),_0x1670fa,'accept',_0xf28b42);_0xd08810['_suggestionFactory'][_0x5420('0x39')]('formatBlock','mergeTableCells',_0x5420('0x10'),_0x5a317a=>{_0x2f68b8['model']['change'](_0x483113=>{const _0x1d8f40=Array['from'](_0x29f373['getRanges']())[_0x5420('0x3')](_0x5be7cf=>_0x51da94['fromRange'](_0x5be7cf));_0x483113[_0x5420('0x38')](_0x5a317a),_0x2f68b8[_0x5420('0x4')][_0x5420('0x1e')](_0x5420('0x20'))[_0x5420('0x33')](),_0x2f68b8[_0x5420('0x4d')](_0x5420('0x20'),{'forceDefaultExecution':!0x0});const _0x268005=_0x1d8f40[_0x5420('0xf')](_0x3d2048=>_0x5420('0xa')!=_0x3d2048[_0x5420('0x12')][_0x5420('0x43')]);_0x268005[_0x5420('0x34')]>0x0&&_0x483113[_0x5420('0x38')](_0x268005);for(const _0x57214c of _0x1d8f40)_0x57214c['detach']();});});for(const _0x54f3dd of[_0x5420('0x4c'),_0x5420('0x8'),_0x5420('0x23'),_0x5420('0xd')]){const _0x35fece=_0x2f68b8[_0x5420('0x4')]['get'](_0x54f3dd);_0x35fece['on'](_0x5420('0x3b'),(_0x559f12,_0x37703f,_0xb9c5d4)=>{if(_0xb9c5d4){const _0x32db91=_0x2f68b8[_0x5420('0x7')][_0x5420('0x27')][_0x5420('0x16')][_0x5420('0x32')]()[_0x5420('0x25')]()[_0x5420('0xe')](_0xf57505=>_0xf57505['is'](_0x5420('0x1'),_0x5420('0x4b')));this['_areMergableCells'](_0x35fece['value'],_0x32db91)||(_0x559f12[_0x5420('0x28')]=!0x1,_0x559f12[_0x5420('0x14')]());}},{'priority':_0x5420('0x2')});}}[_0x5420('0x1b')](){const _0x57cf9f=this['editor'][_0x5420('0x4')]['get'](_0x5420('0x20')),_0x57641f=this[_0x5420('0x36')]['plugins'][_0x5420('0x1e')](_0x5420('0x2d'));if(!_0x57cf9f[_0x5420('0x31')])return!0x1;const _0x4ec621=_0x57641f['getSelectionAffectedTableCells'](this['editor'][_0x5420('0x7')][_0x5420('0x27')][_0x5420('0x16')]);for(const _0x1dc390 of _0x4ec621)for(const _0x59bbbf of _0x4ec621)if(_0x1dc390!=_0x59bbbf&&!this[_0x5420('0x30')](_0x1dc390,_0x59bbbf))return!0x1;return!0x0;}['_areMergableCells'](_0x5e72ea,_0x5ef81f){const _0x442e47=this[_0x5420('0x36')]['plugins'][_0x5420('0x1e')](_0x5420('0x2a')),_0xfc874e=this[_0x5420('0x36')][_0x5420('0x7')][_0x5420('0x2e')](_0x5e72ea),_0xbba729=this['editor'][_0x5420('0x7')][_0x5420('0x2e')](_0x5ef81f),_0x4deb1f=new Set(),_0x9ba758=new Set();for(const _0x202bf5 of _0x442e47[_0x5420('0x18')]())if((_0x5420('0xb')==_0x202bf5[_0x5420('0x22')]||'deletion'==_0x202bf5[_0x5420('0x22')]||_0x5420('0x20')==_0x202bf5[_0x5420('0x26')])&&_0x202bf5[_0x5420('0x1c')])for(const _0x194eba of _0x202bf5[_0x5420('0x45')]())_0x194eba[_0x5420('0x37')](_0xfc874e,!0x0)&&_0x4deb1f['add'](_0x202bf5[_0x5420('0x22')]+':'+_0x202bf5['author']['id']),_0x194eba[_0x5420('0x37')](_0xbba729,!0x0)&&_0x9ba758[_0x5420('0x21')](_0x202bf5[_0x5420('0x22')]+':'+_0x202bf5[_0x5420('0x3c')]['id']);if(_0x4deb1f[_0x5420('0x47')]!=_0x9ba758[_0x5420('0x47')])return!0x1;for(const _0xac5858 of _0x4deb1f)if(!_0x9ba758[_0x5420('0x11')](_0xac5858))return!0x1;return!0x0;}}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/integrations/tableofcontents
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * Provides track changes plugin integration for the Table of contents feature.
11
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x511c=['locale','_descriptionFactory','editor','ELEMENT_TABLE_OF_CONTENTS','tableOfContents','TrackChangesEditing','afterInit','enableCommand','plugins','commands','registerElementLabel','get','insertTableOfContents'];(function(_0x59d9dc,_0x511cbf){const _0x4b626b=function(_0x2f2cb6){while(--_0x2f2cb6){_0x59d9dc['push'](_0x59d9dc['shift']());}};_0x4b626b(++_0x511cbf);}(_0x511c,0x1dd));const _0x4b62=function(_0x59d9dc,_0x511cbf){_0x59d9dc=_0x59d9dc-0x0;let _0x4b626b=_0x511c[_0x59d9dc];return _0x4b626b;};import{Plugin as _0x2a2614}from'ckeditor5/src/core';import{getTranslation as _0x2d207f}from'../utils/common-translations';export default class _t extends _0x2a2614{[_0x4b62('0xa')](){const _0x391b4f=this[_0x4b62('0x6')];if(!_0x391b4f[_0x4b62('0x0')][_0x4b62('0x2')](_0x4b62('0x3')))return;_0x391b4f[_0x4b62('0xc')][_0x4b62('0x2')](_0x4b62('0x9'))[_0x4b62('0xb')](_0x4b62('0x3'));const _0x27f2cc=_0x391b4f[_0x4b62('0xc')][_0x4b62('0x2')](_0x4b62('0x9')),_0x2eb911=_0x391b4f[_0x4b62('0x4')];_0x27f2cc[_0x4b62('0x5')][_0x4b62('0x1')](_0x4b62('0x8'),_0x2c60b0=>_0x2d207f(_0x2eb911,_0x4b62('0x7'),_0x2c60b0));}}
23
+ const _0x51fa=['TrackChangesEditing','get','ELEMENT_TABLE_OF_CONTENTS','afterInit','tableOfContents','plugins','commands','locale','enableCommand'];(function(_0x371b40,_0x51fa7c){const _0x21fde1=function(_0x43e381){while(--_0x43e381){_0x371b40['push'](_0x371b40['shift']());}};_0x21fde1(++_0x51fa7c);}(_0x51fa,0x14b));const _0x21fd=function(_0x371b40,_0x51fa7c){_0x371b40=_0x371b40-0x0;let _0x21fde1=_0x51fa[_0x371b40];return _0x21fde1;};import{Plugin as _0x48ffbb}from'ckeditor5/src/core.js';import{getTranslation as _0x6ed679}from'../utils/common-translations.js';export default class _t extends _0x48ffbb{[_0x21fd('0x5')](){const _0x1c9263=this['editor'];if(!_0x1c9263[_0x21fd('0x8')][_0x21fd('0x3')]('insertTableOfContents'))return;_0x1c9263[_0x21fd('0x7')][_0x21fd('0x3')](_0x21fd('0x2'))[_0x21fd('0x1')]('insertTableOfContents');const _0x4bda96=_0x1c9263[_0x21fd('0x7')][_0x21fd('0x3')](_0x21fd('0x2')),_0x286535=_0x1c9263[_0x21fd('0x0')];_0x4bda96['_descriptionFactory']['registerElementLabel'](_0x21fd('0x6'),_0x177427=>_0x6ed679(_0x286535,_0x21fd('0x4'),_0x177427));}}
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/integrations/tableproperties
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import type { Range } from 'ckeditor5/src/engine';
10
- import type { default as Suggestion } from '../suggestion';
11
- import type { Description } from '../suggestiondescriptionfactory';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import type { Range } from 'ckeditor5/src/engine.js';
10
+ import type { default as Suggestion } from '../suggestion.js';
11
+ import type { Description } from '../suggestiondescriptionfactory.js';
12
12
  /**
13
13
  * Provides track changes plugin integration for table properties feature.
14
14
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x158f=['getFirstPosition','registerDescriptionCallback','change','get','tableBorderStyle','commandParams','getSuggestionCallback','tableBorderWidth','*Format:*\x20change\x20table\x20properties','_handlePropertyChange','findAncestor','handleSuggestionDescription','tableCellVerticalAlignment','_getSuggestion','getAttribute','start','tableCellBorderStyle','getSelectionAffectedTableCells','format','tableCellWidth','plugins','tableCellBorderColor','discard','nodeAfter','tableHeight','tableBorderColor','tableCellBorderWidth','setAttribute','markBlockFormat','subType','enqueueChange','TablePropertiesEditing','table','model','document','getSuggestions','data','editor','formatBlock','_suggestionFactory','tableBackgroundColor','getContainedElement','registerCustomCallback','accept','TrackChangesEditing','tableCellBackgroundColor','tableAlignment','selection','tableCellHeight','handleDiscardAction','tableCellProperties','TrackChangesTableProperties','*Format:*\x20change\x20table\x20cell\x20properties','tableWidth','tableProperties','pluginName','_descriptionFactory','tableCellPadding'];(function(_0x2a9d3d,_0x158f0a){const _0xf30c6b=function(_0xe87d90){while(--_0xe87d90){_0x2a9d3d['push'](_0x2a9d3d['shift']());}};_0xf30c6b(++_0x158f0a);}(_0x158f,0x117));const _0xf30c=function(_0x2a9d3d,_0x158f0a){_0x2a9d3d=_0x2a9d3d-0x0;let _0xf30c6b=_0x158f[_0x2a9d3d];return _0xf30c6b;};import{Plugin as _0x5ca2df}from'ckeditor5/src/core';import{getTranslation as _0x827c9}from'../utils/common-translations';export default class Mt extends _0x5ca2df{constructor(_0x3c0f0e){super(_0x3c0f0e),this[_0xf30c('0x7')]=[_0xf30c('0x24'),_0xf30c('0xf'),_0xf30c('0x12'),_0xf30c('0x39'),_0xf30c('0x6'),_0xf30c('0x23'),_0xf30c('0x33')],this[_0xf30c('0x3')]=[_0xf30c('0x20'),_0xf30c('0x1b'),_0xf30c('0x25'),_0xf30c('0xa'),_0xf30c('0x1e'),_0xf30c('0x1'),_0xf30c('0x38'),'tableCellHorizontalAlignment',_0xf30c('0x17')];}static get[_0xf30c('0x8')](){return _0xf30c('0x4');}['afterInit'](){const _0x3ee3e1=this[_0xf30c('0x30')]['plugins']['get'](_0xf30c('0x37'));if(this[_0xf30c('0x30')][_0xf30c('0x1f')]['has'](_0xf30c('0x2a'))){for(const _0x233517 of this[_0xf30c('0x7')])_0x3ee3e1['enableCommand'](_0x233517,(_0x7259e3,_0x340433)=>{const _0x45d055=this['editor'][_0xf30c('0x2c')][_0xf30c('0x2d')][_0xf30c('0x0')][_0xf30c('0xb')]()[_0xf30c('0x15')](_0xf30c('0x2b'));this[_0xf30c('0x14')](_0x233517,[_0x45d055],this['tableProperties'],_0xf30c('0x7'),_0x7259e3,_0x340433);});_0x3ee3e1[_0xf30c('0x32')][_0xf30c('0x35')](_0xf30c('0x31'),_0xf30c('0x7'),_0xf30c('0x36'),_0x3ee3e1[_0xf30c('0x32')][_0xf30c('0x11')]('formatBlock',null,_0xf30c('0x21'))),_0x3ee3e1[_0xf30c('0x32')][_0xf30c('0x35')](_0xf30c('0x31'),_0xf30c('0x7'),_0xf30c('0x21'),(_0x1d8bb2,_0x5c9f7e)=>this['handleDiscardAction'](this[_0xf30c('0x7')],_0x1d8bb2,_0x5c9f7e)),_0x3ee3e1[_0xf30c('0x32')][_0xf30c('0x35')](_0xf30c('0x31'),'tableProperties','join',()=>!0x1);}if(this[_0xf30c('0x30')]['plugins']['has']('TableCellPropertiesEditing')){for(const _0x48d5a8 of this[_0xf30c('0x3')])_0x3ee3e1['enableCommand'](_0x48d5a8,(_0x179feb,_0x935e0e)=>{const _0x3bfed0=this['editor'][_0xf30c('0x1f')][_0xf30c('0xe')]('TableUtils')[_0xf30c('0x1c')](this[_0xf30c('0x30')][_0xf30c('0x2c')]['document'][_0xf30c('0x0')]);this[_0xf30c('0x14')](_0x48d5a8,_0x3bfed0,this[_0xf30c('0x3')],'tableCellProperties',_0x179feb,_0x935e0e);});_0x3ee3e1['_suggestionFactory'][_0xf30c('0x35')](_0xf30c('0x31'),_0xf30c('0x3'),_0xf30c('0x36'),_0x3ee3e1[_0xf30c('0x32')]['getSuggestionCallback'](_0xf30c('0x31'),null,_0xf30c('0x21'))),_0x3ee3e1[_0xf30c('0x32')][_0xf30c('0x35')](_0xf30c('0x31'),_0xf30c('0x3'),_0xf30c('0x21'),(_0x41a8df,_0x4bc742)=>this['handleDiscardAction'](this['tableCellProperties'],_0x41a8df,_0x4bc742)),_0x3ee3e1[_0xf30c('0x32')][_0xf30c('0x35')]('formatBlock',_0xf30c('0x3'),'join',()=>!0x1);}_0x3ee3e1[_0xf30c('0x9')][_0xf30c('0xc')](_0x5320f3=>this[_0xf30c('0x16')](_0x5320f3));}[_0xf30c('0x14')](_0xf1448f,_0x2e5e95,_0x46286c,_0x1aa1ce,_0x370ca1,_0x44305c){const _0x4a20d8=this[_0xf30c('0x30')][_0xf30c('0x1f')][_0xf30c('0xe')](_0xf30c('0x37'));this[_0xf30c('0x30')][_0xf30c('0x2c')][_0xf30c('0x29')](_0x44305c['batch'],()=>{for(const _0xf9ed78 of _0x2e5e95){if(this[_0xf30c('0x18')](_0xf9ed78,_0x1aa1ce))_0x370ca1(_0x44305c);else{const _0x2b06a3={};for(const _0x2402b0 of _0x46286c){const _0xb7ecc2=_0xf9ed78[_0xf30c('0x19')](_0x2402b0);void 0x0!==_0xb7ecc2&&(_0x2b06a3[_0x2402b0]=_0xb7ecc2);}_0x370ca1(_0x44305c),_0x4a20d8[_0xf30c('0x27')](_0xf9ed78,{'commandParams':[_0x2b06a3]},[],_0x1aa1ce);}}});}[_0xf30c('0x2')](_0x2c8240,_0x4b51b6,_0x320ea9){const _0x1d1a16=_0x4b51b6[0x0][_0xf30c('0x1a')][_0xf30c('0x22')],_0xcc878=_0x320ea9[_0xf30c('0x10')][0x0];this['editor'][_0xf30c('0x2c')][_0xf30c('0xd')](_0x545ec6=>{for(const _0x4c8e56 of _0x2c8240)void 0x0!==_0xcc878[_0x4c8e56]?_0x545ec6[_0xf30c('0x26')](_0x4c8e56,_0xcc878[_0x4c8e56],_0x1d1a16):_0x545ec6['removeAttribute'](_0x4c8e56,_0x1d1a16);});}[_0xf30c('0x16')](_0x502b50){if(_0x502b50[_0xf30c('0x2f')])switch(_0x502b50[_0xf30c('0x28')]){case _0xf30c('0x7'):return{'type':_0xf30c('0x1d'),'content':_0x827c9(this['editor']['locale'],_0xf30c('0x13'))};case'tableCellProperties':return{'type':_0xf30c('0x1d'),'content':_0x827c9(this[_0xf30c('0x30')]['locale'],_0xf30c('0x5'))};}}[_0xf30c('0x18')](_0x415c82,_0x4ef727){const _0x3371c6=this[_0xf30c('0x30')][_0xf30c('0x1f')][_0xf30c('0xe')](_0xf30c('0x37'));for(const _0x57ffc7 of _0x3371c6[_0xf30c('0x2e')]({'skipNotAttached':!0x0})){const _0x27d790=_0x57ffc7[_0xf30c('0x34')]();if(_0x57ffc7[_0xf30c('0x28')]===_0x4ef727&&_0x27d790===_0x415c82)return _0x57ffc7;}return null;}}
23
+ const _0x53e8=['batch','tableBorderStyle','data','TableUtils','discard','markBlockFormat','tableProperties','TrackChangesTableProperties','model','getSuggestions','removeAttribute','subType','tableCellHorizontalAlignment','tableCellBorderColor','formatBlock','_suggestionFactory','tableCellBorderWidth','tableAlignment','locale','selection','TablePropertiesEditing','tableCellVerticalAlignment','handleSuggestionDescription','enableCommand','tableBackgroundColor','tableBorderColor','accept','getFirstPosition','has','document','_descriptionFactory','getSuggestionCallback','tableHeight','format','_handlePropertyChange','tableBorderWidth','registerCustomCallback','enqueueChange','getAttribute','get','handleDiscardAction','TrackChangesEditing','join','tableCellBackgroundColor','plugins','registerDescriptionCallback','TableCellPropertiesEditing','table','tableCellProperties','tableWidth','tableCellBorderStyle','change','editor','tableCellHeight','getSelectionAffectedTableCells','nodeAfter','_getSuggestion'];(function(_0x54233e,_0x53e89c){const _0x30deed=function(_0x792968){while(--_0x792968){_0x54233e['push'](_0x54233e['shift']());}};_0x30deed(++_0x53e89c);}(_0x53e8,0x1c5));const _0x30de=function(_0x54233e,_0x53e89c){_0x54233e=_0x54233e-0x0;let _0x30deed=_0x53e8[_0x54233e];return _0x30deed;};import{Plugin as _0x7c4d1}from'ckeditor5/src/core.js';import{getTranslation as _0x15b1e3}from'../utils/common-translations.js';export default class Mt extends _0x7c4d1{constructor(_0x206e96){super(_0x206e96),this[_0x30de('0x9')]=[_0x30de('0x1c'),_0x30de('0x4'),_0x30de('0x26'),_0x30de('0x14'),_0x30de('0x34'),_0x30de('0x23'),_0x30de('0x1b')],this[_0x30de('0x33')]=[_0x30de('0x10'),_0x30de('0x35'),_0x30de('0x13'),'tableCellPadding','tableCellWidth',_0x30de('0x38'),_0x30de('0x2e'),_0x30de('0xf'),_0x30de('0x18')];}static get['pluginName'](){return _0x30de('0xa');}['afterInit'](){const _0x4eccb4=this[_0x30de('0x37')]['plugins'][_0x30de('0x2a')](_0x30de('0x2c'));if(this[_0x30de('0x37')][_0x30de('0x2f')][_0x30de('0x1f')](_0x30de('0x17'))){for(const _0x472752 of this['tableProperties'])_0x4eccb4[_0x30de('0x1a')](_0x472752,(_0x57d5e6,_0x2c2b48)=>{const _0x539c76=this['editor']['model'][_0x30de('0x20')][_0x30de('0x16')][_0x30de('0x1e')]()['findAncestor'](_0x30de('0x32'));this['_handlePropertyChange'](_0x472752,[_0x539c76],this[_0x30de('0x9')],_0x30de('0x9'),_0x57d5e6,_0x2c2b48);});_0x4eccb4[_0x30de('0x12')][_0x30de('0x27')]('formatBlock','tableProperties','accept',_0x4eccb4[_0x30de('0x12')][_0x30de('0x22')](_0x30de('0x11'),null,'discard')),_0x4eccb4[_0x30de('0x12')][_0x30de('0x27')](_0x30de('0x11'),_0x30de('0x9'),_0x30de('0x7'),(_0x595466,_0x1f3109)=>this[_0x30de('0x2b')](this[_0x30de('0x9')],_0x595466,_0x1f3109)),_0x4eccb4['_suggestionFactory'][_0x30de('0x27')](_0x30de('0x11'),_0x30de('0x9'),_0x30de('0x2d'),()=>!0x1);}if(this[_0x30de('0x37')][_0x30de('0x2f')][_0x30de('0x1f')](_0x30de('0x31'))){for(const _0x6db6e9 of this[_0x30de('0x33')])_0x4eccb4[_0x30de('0x1a')](_0x6db6e9,(_0x1ce5a3,_0x5ce7e3)=>{const _0xad576=this[_0x30de('0x37')]['plugins'][_0x30de('0x2a')](_0x30de('0x6'))[_0x30de('0x0')](this[_0x30de('0x37')][_0x30de('0xb')]['document'][_0x30de('0x16')]);this['_handlePropertyChange'](_0x6db6e9,_0xad576,this[_0x30de('0x33')],'tableCellProperties',_0x1ce5a3,_0x5ce7e3);});_0x4eccb4['_suggestionFactory'][_0x30de('0x27')](_0x30de('0x11'),'tableCellProperties',_0x30de('0x1d'),_0x4eccb4[_0x30de('0x12')][_0x30de('0x22')](_0x30de('0x11'),null,'discard')),_0x4eccb4['_suggestionFactory']['registerCustomCallback'](_0x30de('0x11'),_0x30de('0x33'),_0x30de('0x7'),(_0x3b88b9,_0xd6a6b)=>this[_0x30de('0x2b')](this[_0x30de('0x33')],_0x3b88b9,_0xd6a6b)),_0x4eccb4['_suggestionFactory'][_0x30de('0x27')](_0x30de('0x11'),'tableCellProperties',_0x30de('0x2d'),()=>!0x1);}_0x4eccb4[_0x30de('0x21')][_0x30de('0x30')](_0x181ace=>this[_0x30de('0x19')](_0x181ace));}[_0x30de('0x25')](_0x3c606b,_0x26bf62,_0x2f2f46,_0x57e9d8,_0x781d71,_0x17f13e){const _0x48fbc9=this[_0x30de('0x37')][_0x30de('0x2f')][_0x30de('0x2a')]('TrackChangesEditing');this[_0x30de('0x37')][_0x30de('0xb')][_0x30de('0x28')](_0x17f13e[_0x30de('0x3')],()=>{for(const _0x1ac0d9 of _0x26bf62){if(this[_0x30de('0x2')](_0x1ac0d9,_0x57e9d8))_0x781d71(_0x17f13e);else{const _0x185704={};for(const _0x3c6a53 of _0x2f2f46){const _0x5970a2=_0x1ac0d9[_0x30de('0x29')](_0x3c6a53);void 0x0!==_0x5970a2&&(_0x185704[_0x3c6a53]=_0x5970a2);}_0x781d71(_0x17f13e),_0x48fbc9[_0x30de('0x8')](_0x1ac0d9,{'commandParams':[_0x185704]},[],_0x57e9d8);}}});}[_0x30de('0x2b')](_0x48d9e1,_0xb56787,_0x253c3b){const _0x582e50=_0xb56787[0x0]['start'][_0x30de('0x1')],_0x3ece75=_0x253c3b['commandParams'][0x0];this[_0x30de('0x37')][_0x30de('0xb')][_0x30de('0x36')](_0x4e830e=>{for(const _0x4bdd34 of _0x48d9e1)void 0x0!==_0x3ece75[_0x4bdd34]?_0x4e830e['setAttribute'](_0x4bdd34,_0x3ece75[_0x4bdd34],_0x582e50):_0x4e830e[_0x30de('0xd')](_0x4bdd34,_0x582e50);});}[_0x30de('0x19')](_0x51b2c8){if(_0x51b2c8[_0x30de('0x5')])switch(_0x51b2c8['subType']){case _0x30de('0x9'):return{'type':_0x30de('0x24'),'content':_0x15b1e3(this[_0x30de('0x37')][_0x30de('0x15')],'*Format:*\x20change\x20table\x20properties')};case _0x30de('0x33'):return{'type':_0x30de('0x24'),'content':_0x15b1e3(this['editor'][_0x30de('0x15')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x30de('0x2')](_0xd03983,_0x5315e1){const _0x2c1c99=this[_0x30de('0x37')]['plugins'][_0x30de('0x2a')]('TrackChangesEditing');for(const _0x29bc55 of _0x2c1c99[_0x30de('0xc')]({'skipNotAttached':!0x0})){const _0x30b335=_0x29bc55['getContainedElement']();if(_0x29bc55[_0x30de('0xe')]===_0x5315e1&&_0x30b335===_0xd03983)return _0x29bc55;}return null;}}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/integrations/template
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * Provides track changes plugin integration for template feature.
11
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x533a=['editor','Template','plugins','TrackChangesEditing','afterInit','has','insertTemplate'];(function(_0x5cbdb0,_0x533a73){const _0x1c08e1=function(_0x4662fc){while(--_0x4662fc){_0x5cbdb0['push'](_0x5cbdb0['shift']());}};_0x1c08e1(++_0x533a73);}(_0x533a,0x1e9));const _0x1c08=function(_0x5cbdb0,_0x533a73){_0x5cbdb0=_0x5cbdb0-0x0;let _0x1c08e1=_0x533a[_0x5cbdb0];return _0x1c08e1;};import{Plugin as _0x42402b}from'ckeditor5/src/core';export default class vt extends _0x42402b{[_0x1c08('0x5')](){const _0x546c30=this[_0x1c08('0x1')];_0x546c30[_0x1c08('0x3')][_0x1c08('0x6')](_0x1c08('0x2'))&&_0x546c30[_0x1c08('0x3')]['get'](_0x1c08('0x4'))['enableCommand'](_0x1c08('0x0'));}}
23
+ const _0x54fa=['afterInit','get','plugins','has','editor','Template'];(function(_0x5b7bb1,_0x54fafb){const _0x113b80=function(_0x9e9efd){while(--_0x9e9efd){_0x5b7bb1['push'](_0x5b7bb1['shift']());}};_0x113b80(++_0x54fafb);}(_0x54fa,0x1e4));const _0x113b=function(_0x5b7bb1,_0x54fafb){_0x5b7bb1=_0x5b7bb1-0x0;let _0x113b80=_0x54fa[_0x5b7bb1];return _0x113b80;};import{Plugin as _0x7f8292}from'ckeditor5/src/core.js';export default class vt extends _0x7f8292{[_0x113b('0x2')](){const _0x15e7b2=this[_0x113b('0x0')];_0x15e7b2[_0x113b('0x4')][_0x113b('0x5')](_0x113b('0x1'))&&_0x15e7b2[_0x113b('0x4')][_0x113b('0x3')]('TrackChangesEditing')['enableCommand']('insertTemplate');}}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/integrations/title
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * Provides track changes plugin integration for title feature.
11
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f51=['locale','afterInit','plugins','editor','schema','get','isTouching','getChangedMarkers','document','element','title-content','end','from','updateMarker','getNearestSelectionRange','start','model','ELEMENT_TITLE','isCollapsed','removeMarker','nodeBefore'];(function(_0x3eb0e6,_0x2f5165){const _0x7ee46f=function(_0x5df858){while(--_0x5df858){_0x3eb0e6['push'](_0x3eb0e6['shift']());}};_0x7ee46f(++_0x2f5165);}(_0x2f51,0x16b));const _0x7ee4=function(_0x3eb0e6,_0x2f5165){_0x3eb0e6=_0x3eb0e6-0x0;let _0x7ee46f=_0x2f51[_0x3eb0e6];return _0x7ee46f;};import{Plugin as _0x4ea089}from'ckeditor5/src/core';import{getTranslation as _0x2d599b}from'../utils/common-translations';export default class Ct extends _0x4ea089{[_0x7ee4('0x10')](){const _0xab3a30=this[_0x7ee4('0x12')];if(!_0xab3a30[_0x7ee4('0x11')]['has']('Title'))return;const _0x50ec56=_0xab3a30[_0x7ee4('0x11')][_0x7ee4('0x14')]('TrackChangesEditing');_0x50ec56['_descriptionFactory']['registerElementLabel'](_0x7ee4('0x4'),()=>_0x2d599b(_0xab3a30[_0x7ee4('0xf')],_0x7ee4('0xb'))),_0xab3a30[_0x7ee4('0xa')]['document']['registerPostFixer'](_0x1dfabe=>{let _0x2c0c11=!0x1;const _0x2cae20=Array[_0x7ee4('0x6')](_0xab3a30[_0x7ee4('0xa')][_0x7ee4('0x2')]['differ'][_0x7ee4('0x1')]());for(const {name:_0x1142ae,data:_0x83abc8}of _0x2cae20){const {group:_0x39d16d}=_0x50ec56['_splitMarkerName'](_0x1142ae);if('suggestion'!==_0x39d16d||!_0x83abc8['newRange'])continue;const _0xa2b14e=_0x83abc8['newRange'],_0x4fe25f=_0xa2b14e[_0x7ee4('0x5')][_0x7ee4('0xe')];if(!_0x4fe25f||!_0x4fe25f['is'](_0x7ee4('0x3'),_0x7ee4('0x4')))continue;if(!_0xa2b14e[_0x7ee4('0x9')][_0x7ee4('0x0')](_0xa2b14e[_0x7ee4('0x5')]))continue;const _0x7d1f40=_0xab3a30[_0x7ee4('0xa')][_0x7ee4('0x13')][_0x7ee4('0x8')](_0xa2b14e[_0x7ee4('0x5')],'forward');if(_0x7d1f40&&_0x7d1f40[_0x7ee4('0xc')]){const _0x4cc846=_0x1dfabe['createRange'](_0xa2b14e['start'],_0x7d1f40[_0x7ee4('0x9')]);_0x4cc846['isEqual'](_0xa2b14e)||(_0x1dfabe[_0x7ee4('0x7')](_0x1142ae,{'range':_0x4cc846}),_0x2c0c11=!0x0);}_0x2c0c11||(_0x1dfabe[_0x7ee4('0xd')](_0x1142ae),_0x2c0c11=!0x0);}return _0x2c0c11;});}}
23
+ const _0x3dcb=['suggestion','isTouching','isEqual','registerElementLabel','Title','forward','createRange','_descriptionFactory','newRange','plugins','getChangedMarkers','document','has','schema','get','end','nodeBefore','differ','title-content','element','getNearestSelectionRange','afterInit','removeMarker','model','_splitMarkerName','TrackChangesEditing','start','locale'];(function(_0xea42d9,_0x3dcbba){const _0x2031f0=function(_0x14f68e){while(--_0x14f68e){_0xea42d9['push'](_0xea42d9['shift']());}};_0x2031f0(++_0x3dcbba);}(_0x3dcb,0xa1));const _0x2031=function(_0xea42d9,_0x3dcbba){_0xea42d9=_0xea42d9-0x0;let _0x2031f0=_0x3dcb[_0xea42d9];return _0x2031f0;};import{Plugin as _0x39b15b}from'ckeditor5/src/core.js';import{getTranslation as _0x2be51b}from'../utils/common-translations.js';export default class Ct extends _0x39b15b{[_0x2031('0x0')](){const _0x329aaf=this['editor'];if(!_0x329aaf[_0x2031('0x10')][_0x2031('0x13')](_0x2031('0xb')))return;const _0x642d45=_0x329aaf['plugins'][_0x2031('0x15')](_0x2031('0x4'));_0x642d45[_0x2031('0xe')][_0x2031('0xa')](_0x2031('0x19'),()=>_0x2be51b(_0x329aaf[_0x2031('0x6')],'ELEMENT_TITLE')),_0x329aaf[_0x2031('0x2')][_0x2031('0x12')]['registerPostFixer'](_0x1c3e69=>{let _0x1d2f8d=!0x1;const _0x287aee=Array['from'](_0x329aaf[_0x2031('0x2')][_0x2031('0x12')][_0x2031('0x18')][_0x2031('0x11')]());for(const {name:_0x19bd99,data:_0x4528bf}of _0x287aee){const {group:_0x4a26cd}=_0x642d45[_0x2031('0x3')](_0x19bd99);if(_0x2031('0x7')!==_0x4a26cd||!_0x4528bf[_0x2031('0xf')])continue;const _0x47c47a=_0x4528bf[_0x2031('0xf')],_0x472678=_0x47c47a['end'][_0x2031('0x17')];if(!_0x472678||!_0x472678['is'](_0x2031('0x1a'),_0x2031('0x19')))continue;if(!_0x47c47a[_0x2031('0x5')][_0x2031('0x8')](_0x47c47a['end']))continue;const _0x25809b=_0x329aaf[_0x2031('0x2')][_0x2031('0x14')][_0x2031('0x1b')](_0x47c47a[_0x2031('0x16')],_0x2031('0xc'));if(_0x25809b&&_0x25809b['isCollapsed']){const _0x3b33bf=_0x1c3e69[_0x2031('0xd')](_0x47c47a[_0x2031('0x5')],_0x25809b[_0x2031('0x5')]);_0x3b33bf[_0x2031('0x9')](_0x47c47a)||(_0x1c3e69['updateMarker'](_0x19bd99,{'range':_0x3b33bf}),_0x1d2f8d=!0x0);}_0x1d2f8d||(_0x1c3e69[_0x2031('0x1')](_0x19bd99),_0x1d2f8d=!0x0);}return _0x1d2f8d;});}}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/integrations/undo
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * Provides track changes plugin integration for {@link module:undo/undo~Undo undo feature}.
11
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19b9=['TrackChangesEditing','enableCommand','UndoEditing','plugins','afterInit','undo','editor'];(function(_0xbbc9e5,_0x19b9d8){const _0x2ad167=function(_0x1dd8b7){while(--_0x1dd8b7){_0xbbc9e5['push'](_0xbbc9e5['shift']());}};_0x2ad167(++_0x19b9d8);}(_0x19b9,0x95));const _0x2ad1=function(_0xbbc9e5,_0x19b9d8){_0xbbc9e5=_0xbbc9e5-0x0;let _0x2ad167=_0x19b9[_0xbbc9e5];return _0x2ad167;};import{Plugin as _0xdc75af}from'ckeditor5/src/core';export default class Dt extends _0xdc75af{[_0x2ad1('0x2')](){const _0xc66ae3=this[_0x2ad1('0x4')],_0x2291b8=_0xc66ae3[_0x2ad1('0x1')]['get'](_0x2ad1('0x5'));_0xc66ae3[_0x2ad1('0x1')]['has'](_0x2ad1('0x0'))&&(_0x2291b8[_0x2ad1('0x6')](_0x2ad1('0x3')),_0x2291b8[_0x2ad1('0x6')]('redo'));}}
23
+ const _0x193a=['plugins','undo','has','TrackChangesEditing','afterInit','UndoEditing','enableCommand'];(function(_0x3035ab,_0x193a04){const _0x4eb303=function(_0x598a76){while(--_0x598a76){_0x3035ab['push'](_0x3035ab['shift']());}};_0x4eb303(++_0x193a04);}(_0x193a,0x12e));const _0x4eb3=function(_0x3035ab,_0x193a04){_0x3035ab=_0x3035ab-0x0;let _0x4eb303=_0x193a[_0x3035ab];return _0x4eb303;};import{Plugin as _0x284d83}from'ckeditor5/src/core.js';export default class Dt extends _0x284d83{[_0x4eb3('0x3')](){const _0x16e1e1=this['editor'],_0x2e4615=_0x16e1e1[_0x4eb3('0x6')]['get'](_0x4eb3('0x2'));_0x16e1e1[_0x4eb3('0x6')][_0x4eb3('0x1')](_0x4eb3('0x4'))&&(_0x2e4615[_0x4eb3('0x5')](_0x4eb3('0x0')),_0x2e4615[_0x4eb3('0x5')]('redo'));}}
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { Editor } from 'ckeditor5/src/core';
6
- import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine';
7
- import type { GetCallback } from 'ckeditor5/src/utils';
5
+ import type { Editor } from 'ckeditor5/src/core.js';
6
+ import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine.js';
7
+ import type { GetCallback } from 'ckeditor5/src/utils.js';
8
8
  /**
9
9
  * Searches given `range` and returns all sub-ranges containing items with given `attributeKey`.
10
10
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b52=['getWalker','writer','item','isAtEnd','ck-suggestion-marker-','addClass','start','consumable','model','ck-suggestion-marker--active','hasAttribute','isBlock','addHighlight','mapper','name','plugins','getCustomProperty','getAttribute','elementEnd','nextSibling','listItem','element','createUIElement','type','span','toViewPosition','get','markerName','isLimit','bindElementToMarker','schema','previousPosition','markerRange','test','includes','push'];(function(_0x368c60,_0x2b5266){const _0x1924b6=function(_0x4c5491){while(--_0x4c5491){_0x368c60['push'](_0x368c60['shift']());}};_0x1924b6(++_0x2b5266);}(_0x2b52,0x149));const _0x1924=function(_0x368c60,_0x2b5266){_0x368c60=_0x368c60-0x0;let _0x1924b6=_0x2b52[_0x368c60];return _0x1924b6;};export function getRangesWithAttribute(_0x5286f4,_0x4d47a6,_0x597b45){const _0xaf8299=[];for(const _0x29901a of _0x4d47a6['getItems']())_0x29901a[_0x1924('0x5')](_0x5286f4)&&_0xaf8299[_0x1924('0x1e')](_0x597b45['createRangeOn'](_0x29901a));return _0xaf8299;}export function getElementsAffectedByListItemRename(_0x106c80){const _0x31e6f0=[];if(_0x106c80['is'](_0x1924('0x10'),_0x1924('0xf'))){let _0x1e3d5f=_0x106c80[_0x1924('0xe')];for(;_0x1e3d5f&&_0x1e3d5f['is'](_0x1924('0x10'),_0x1924('0xf'))&&_0x1e3d5f[_0x1924('0xc')]('listIndent')>0x0;)_0x31e6f0[_0x1924('0x1e')](_0x1e3d5f),_0x1e3d5f=_0x1e3d5f[_0x1924('0xe')];}return _0x31e6f0;}export function downcastSplitMergeMarker(_0xa34aa8,_0x1a85f8,{showActiveMarker:_0x41e117=!0x0}={}){const _0x141666=_0xa34aa8[_0x1924('0xa')][_0x1924('0x15')]('TrackChangesEditing');return(_0x20d7de,_0x243bf7,_0x205f25)=>{if(!_0x205f25[_0x1924('0x2')][_0x1924('0x1c')](_0x243bf7[_0x1924('0x1b')],_0x20d7de[_0x1924('0x9')]))return;const _0x12641a=_0x243bf7[_0x1924('0x1b')][_0x1924('0x1f')](),_0x202716=_0x243bf7['markerRange'][_0x1924('0x1')],_0x5e777a=_0xa34aa8[_0x1924('0x3')][_0x1924('0x19')];let _0x63b2f7=null,_0x32257f=null,_0x2eafc3=!0x1,_0x59f49a=!0x1;for(const _0x130365 of _0x12641a){const _0x1c8568=_0x130365[_0x1924('0x21')];_0x2eafc3=_0x2eafc3||_0x5e777a['isContent'](_0x1c8568);const _0x41b830=_0x205f25[_0x1924('0x8')]['toViewElement'](_0x1c8568);if(_0x41b830&&_0x41b830[_0x1924('0xb')](_0x1924('0x7')))return;_0x1924('0xd')==_0x130365[_0x1924('0x12')]&&(_0x5e777a[_0x1924('0x6')](_0x1c8568)&&!_0x5e777a[_0x1924('0x17')](_0x1c8568)&&(_0x1c8568[_0x1924('0xe')]||_0x202716[_0x1924('0x22')]?_0x63b2f7&&_0x63b2f7['parent']==_0x1c8568||(_0x63b2f7=_0x1c8568,_0x3ced0a(_0x130365[_0x1924('0x1a')]),_0x59f49a=!0x0):_0x32257f=_0x32257f||_0x130365[_0x1924('0x1a')]));}function _0x3ced0a(_0x308e50){const _0x4c143d=_0x205f25[_0x1924('0x20')][_0x1924('0x11')](_0x1924('0x13'),{'class':_0x1924('0x23')+_0x1a85f8}),_0x575364=_0x205f25[_0x1924('0x8')][_0x1924('0x14')](_0x308e50);_0x41e117&&_0x141666['activeMarkers'][_0x1924('0x1d')](_0x243bf7[_0x1924('0x16')])&&_0x205f25['writer'][_0x1924('0x0')](_0x1924('0x4'),_0x4c143d),_0x205f25[_0x1924('0x20')]['insert'](_0x575364,_0x4c143d),_0x205f25['mapper'][_0x1924('0x18')](_0x4c143d,_0x243bf7[_0x1924('0x16')]);}_0x2eafc3||_0x59f49a||!_0x32257f||_0x3ced0a(_0x32257f);};}
23
+ const _0x3ebe=['mapper','start','createUIElement','getAttribute','bindElementToMarker','previousPosition','getCustomProperty','activeMarkers','isContent','schema','parent','span','markerName','isLimit','ck-suggestion-marker-','TrackChangesEditing','test','push','addHighlight','isAtEnd','hasAttribute','writer','element','name','model','nextSibling','toViewElement','isBlock','markerRange','item','addClass','type','getItems','toViewPosition'];(function(_0xc9957d,_0x3ebe7d){const _0x906b8a=function(_0x18949c){while(--_0x18949c){_0xc9957d['push'](_0xc9957d['shift']());}};_0x906b8a(++_0x3ebe7d);}(_0x3ebe,0x98));const _0x906b=function(_0xc9957d,_0x3ebe7d){_0xc9957d=_0xc9957d-0x0;let _0x906b8a=_0x3ebe[_0xc9957d];return _0x906b8a;};export function getRangesWithAttribute(_0x2ce837,_0x452b25,_0x53483e){const _0x111c7e=[];for(const _0x40fd7d of _0x452b25[_0x906b('0x10')]())_0x40fd7d[_0x906b('0x4')](_0x2ce837)&&_0x111c7e[_0x906b('0x1')](_0x53483e['createRangeOn'](_0x40fd7d));return _0x111c7e;}export function getElementsAffectedByListItemRename(_0x131b9b){const _0x5e02a8=[];if(_0x131b9b['is']('element','listItem')){let _0x4af635=_0x131b9b['nextSibling'];for(;_0x4af635&&_0x4af635['is'](_0x906b('0x6'),'listItem')&&_0x4af635[_0x906b('0x15')]('listIndent')>0x0;)_0x5e02a8[_0x906b('0x1')](_0x4af635),_0x4af635=_0x4af635['nextSibling'];}return _0x5e02a8;}export function downcastSplitMergeMarker(_0x4dd5a5,_0x2e8ee3,{showActiveMarker:_0x501737=!0x0}={}){const _0x1d8033=_0x4dd5a5['plugins']['get'](_0x906b('0x21'));return(_0x49e33d,_0x2c3653,_0x42008a)=>{if(!_0x42008a['consumable'][_0x906b('0x0')](_0x2c3653[_0x906b('0xc')],_0x49e33d[_0x906b('0x7')]))return;const _0x9da01=_0x2c3653[_0x906b('0xc')]['getWalker'](),_0x1fa20f=_0x2c3653[_0x906b('0xc')][_0x906b('0x13')],_0x4ff966=_0x4dd5a5[_0x906b('0x8')][_0x906b('0x1b')];let _0x523d7d=null,_0x1e632f=null,_0x3b0204=!0x1,_0x351fa4=!0x1;for(const _0x494eeb of _0x9da01){const _0x6ab9d8=_0x494eeb[_0x906b('0xd')];_0x3b0204=_0x3b0204||_0x4ff966[_0x906b('0x1a')](_0x6ab9d8);const _0x302b2b=_0x42008a['mapper'][_0x906b('0xa')](_0x6ab9d8);if(_0x302b2b&&_0x302b2b[_0x906b('0x18')](_0x906b('0x2')))return;'elementEnd'==_0x494eeb[_0x906b('0xf')]&&(_0x4ff966[_0x906b('0xb')](_0x6ab9d8)&&!_0x4ff966[_0x906b('0x1f')](_0x6ab9d8)&&(_0x6ab9d8[_0x906b('0x9')]||_0x1fa20f[_0x906b('0x3')]?_0x523d7d&&_0x523d7d[_0x906b('0x1c')]==_0x6ab9d8||(_0x523d7d=_0x6ab9d8,_0x23d8c2(_0x494eeb[_0x906b('0x17')]),_0x351fa4=!0x0):_0x1e632f=_0x1e632f||_0x494eeb['previousPosition']));}function _0x23d8c2(_0x26908d){const _0x44f1bd=_0x42008a[_0x906b('0x5')][_0x906b('0x14')](_0x906b('0x1d'),{'class':_0x906b('0x20')+_0x2e8ee3}),_0x30817a=_0x42008a[_0x906b('0x12')][_0x906b('0x11')](_0x26908d);_0x501737&&_0x1d8033[_0x906b('0x19')]['includes'](_0x2c3653['markerName'])&&_0x42008a[_0x906b('0x5')][_0x906b('0xe')]('ck-suggestion-marker--active',_0x44f1bd),_0x42008a[_0x906b('0x5')]['insert'](_0x30817a,_0x44f1bd),_0x42008a[_0x906b('0x12')][_0x906b('0x16')](_0x44f1bd,_0x2c3653[_0x906b('0x1e')]);}_0x3b0204||_0x351fa4||!_0x1e632f||_0x23d8c2(_0x1e632f);};}
@@ -1,18 +1,18 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/suggestion
7
7
  * @publicApi
8
8
  */
9
- import { Element, type Marker, type Model, type Range, type Item } from 'ckeditor5/src/engine';
10
- import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
9
+ import { Element, type Marker, type Model, type Range, type Item } from 'ckeditor5/src/engine.js';
10
+ import type { User } from 'ckeditor5-collaboration/src/collaboration-core.js';
11
11
  import type { CommentThread } from '@ckeditor/ckeditor5-comments';
12
- import type { FormatData, AttributeData } from './trackchangesediting';
12
+ import type { FormatData, AttributeData } from './trackchangesediting.js';
13
13
  declare const Suggestion_base: {
14
- new (): import("ckeditor5/src/utils").Observable;
15
- prototype: import("ckeditor5/src/utils").Observable;
14
+ new (): import("ckeditor5/src/utils.js").Observable;
15
+ prototype: import("ckeditor5/src/utils.js").Observable;
16
16
  };
17
17
  /**
18
18
  * Represents a singular suggestion that is tracked by track changes plugin.
package/src/suggestion.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e57=['_saved','onAttributesChange','markers','nodeBefore','reduce','addMarkerName','_onDiscard','author','nodeAfter','start','change','addRange','getRange','_model','add','get','isIntersecting','getFirstMarker','previous','substr','creator','commentThread','type','decorate','attributes','getRanges','hasComments','onDiscard','set','clear','_markerNames','data','_onAttributesChange','head','_onAccept','toJSON','push','getAllAdjacentSuggestions','end','getFirstRange','split','addMarker','next','_isDataLoaded','getMarkers','map','setAttribute','@external','delete','length','getItems','removeMarkers','removeAttribute','isIntersectingWithRange','getMarkerNames','subType','accept','createdAt','from','onAccept','getMultiRangeId','filter'];(function(_0x5f3d46,_0x5e57a8){const _0x462864=function(_0x547630){while(--_0x547630){_0x5f3d46['push'](_0x5f3d46['shift']());}};_0x462864(++_0x5e57a8);}(_0x5e57,0x1f4));const _0x4628=function(_0x5f3d46,_0x5e57a8){_0x5f3d46=_0x5f3d46-0x0;let _0x462864=_0x5e57[_0x5f3d46];return _0x462864;};import{Element as _0x537a7d}from'ckeditor5/src/engine';import{ObservableMixin as _0x274390,uid as _0x116f45}from'ckeditor5/src/utils';import{cloneDeep as _0x1bb168,isEqual as _0x26ed56,set as _0x53c8a7,unset as _0x27ae5f}from'lodash-es';export default class u extends _0x274390(){constructor(_0x5be231,_0x4b3103){super(),this[_0x4628('0x27')]=!0x1,this['id']=_0x4b3103['id'],this[_0x4628('0x12')]=_0x4b3103[_0x4628('0x12')],this[_0x4628('0x33')]=_0x4b3103[_0x4628('0x33')]||null,this[_0x4628('0x3')]=_0x4b3103[_0x4628('0x3')],this[_0x4628('0x10')]=_0x4b3103[_0x4628('0x10')]||_0x4b3103[_0x4628('0x3')],this['isExternal']=Boolean(_0x4b3103[_0x4628('0x14')]&&_0x4b3103[_0x4628('0x14')][_0x4628('0x2b')]),this[_0x4628('0x1b')]=null,this['_model']=_0x5be231,this[_0x4628('0x1e')]=_0x4b3103[_0x4628('0x37')],this[_0x4628('0x2')]=_0x4b3103[_0x4628('0x17')],this['_onAttributesChange']=_0x4b3103[_0x4628('0x3b')],this['_markerNames']=new Set(),this[_0x4628('0x35')]=null,this[_0x4628('0x18')]('authoredAt',null),this[_0x4628('0x18')](_0x4628('0x14'),_0x4b3103[_0x4628('0x14')]||{}),this[_0x4628('0x18')](_0x4628('0xe'),null),this[_0x4628('0x18')]('next',null),this[_0x4628('0x18')]('commentThread',null),this[_0x4628('0x18')](_0x4628('0x3a'),!0x1),this[_0x4628('0x13')](_0x4628('0x34')),this[_0x4628('0x13')]('discard');}get[_0x4628('0x1d')](){let _0x318faa=this;for(;_0x318faa['previous'];)_0x318faa=_0x318faa[_0x4628('0xe')];return _0x318faa;}get[_0x4628('0x16')](){return!!this[_0x4628('0x11')]&&this[_0x4628('0x11')][_0x4628('0x2d')]>0x0;}get['isMultiRange'](){if(0x0==this[_0x4628('0x1a')]['size'])return!0x1;return 0x6==Array['from'](this[_0x4628('0x1a')])[0x0][_0x4628('0x24')](':')[_0x4628('0x2d')];}get['isInContent'](){return null!==this[_0x4628('0xd')]();}[_0x4628('0x1')](_0x20d94a){this[_0x4628('0x1a')][_0x4628('0xa')](_0x20d94a);}[_0x4628('0x32')](){return Array[_0x4628('0x36')](this['_markerNames']);}['getMarkers'](){return this[_0x4628('0x32')]()[_0x4628('0x29')](_0x5ceda4=>this['_model'][_0x4628('0x3c')][_0x4628('0xb')](_0x5ceda4))[_0x4628('0x39')](_0x1d91e5=>_0x1d91e5);}[_0x4628('0xd')](){return this[_0x4628('0x28')]()[0x0]||null;}[_0x4628('0x2f')](){this[_0x4628('0x9')][_0x4628('0x6')](_0x471123=>{for(const _0x34e737 of this[_0x4628('0x28')]())_0x471123['removeMarker'](_0x34e737);}),this[_0x4628('0x1a')][_0x4628('0x19')]();}['removeMarker'](_0x24a82b){this[_0x4628('0x9')][_0x4628('0x6')](_0x40f9e0=>{_0x40f9e0['removeMarker'](_0x24a82b);}),this[_0x4628('0x1a')][_0x4628('0x2c')](_0x24a82b);}[_0x4628('0x7')](_0x1fd0a3){const _0x223dc1='suggestion:'+this[_0x4628('0x12')]+':'+this[_0x4628('0x33')]+':'+this['id']+':'+this[_0x4628('0x10')]['id']+':'+u[_0x4628('0x38')]();this[_0x4628('0x1')](_0x223dc1),this[_0x4628('0x9')][_0x4628('0x6')](_0x454f05=>{_0x454f05[_0x4628('0x25')](_0x223dc1,{'range':_0x1fd0a3,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4628('0x31')](_0x18db33){for(const _0x4241b6 of this[_0x4628('0x15')]())if(_0x4241b6[_0x4628('0xc')](_0x18db33))return!0x0;return!0x1;}[_0x4628('0x15')](){return this[_0x4628('0x28')]()[_0x4628('0x29')](_0x156f38=>_0x156f38[_0x4628('0x8')]());}[_0x4628('0x2e')](){return this[_0x4628('0x15')]()[_0x4628('0x0')]((_0x5e6d4b,_0x2cf422)=>[..._0x5e6d4b,..._0x2cf422[_0x4628('0x2e')]()],[]);}[_0x4628('0x23')](){var _0x27f450;return(null===(_0x27f450=this[_0x4628('0xd')]())||void 0x0===_0x27f450?void 0x0:_0x27f450['getRange']())||null;}['getContainedElement'](){const _0x162da7=this[_0x4628('0x15')]();if(0x1!=_0x162da7[_0x4628('0x2d')])return null;const _0x14ae7f=_0x162da7[0x0],_0x21d0a6=_0x14ae7f[_0x4628('0x5')][_0x4628('0x4')],_0x22231e=_0x14ae7f[_0x4628('0x22')][_0x4628('0x3d')];return _0x21d0a6 instanceof _0x537a7d?_0x21d0a6!=_0x22231e?null:_0x21d0a6:null;}[_0x4628('0x34')](){this['_onAccept'](this[_0x4628('0x15')](),this[_0x4628('0x1b')],this[_0x4628('0x14')]),this[_0x4628('0x2f')]();}['discard'](){this[_0x4628('0x2')](this[_0x4628('0x15')](),this[_0x4628('0x1b')],this[_0x4628('0x14')]),this[_0x4628('0x2f')]();}[_0x4628('0x21')](){const _0x138b77=[];let _0x53e888=this[_0x4628('0x1d')];for(;_0x53e888;)_0x138b77[_0x4628('0x20')](_0x53e888),_0x53e888=_0x53e888[_0x4628('0x26')];return _0x138b77;}[_0x4628('0x2a')](_0x8159c,_0x5c4e39){const _0xb27e3e=_0x1bb168(this[_0x4628('0x14')]);_0x53c8a7(_0xb27e3e,_0x8159c,_0x5c4e39),_0x26ed56(_0xb27e3e,this[_0x4628('0x14')])||(this[_0x4628('0x14')]=_0xb27e3e,this[_0x4628('0x1c')](_0xb27e3e));}[_0x4628('0x30')](_0x191d65){const _0x2a94f1=_0x1bb168(this[_0x4628('0x14')]);_0x27ae5f(_0x2a94f1,_0x191d65),_0x26ed56(_0x2a94f1,this[_0x4628('0x14')])||(this[_0x4628('0x14')]=_0x2a94f1,this[_0x4628('0x1c')](this[_0x4628('0x14')]));}[_0x4628('0x1f')](){return{'id':this['id'],'type':this[_0x4628('0x33')]?this[_0x4628('0x12')]+':'+this['subType']:this['type'],'authorId':this[_0x4628('0x10')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x4628('0x16')],'data':this['data'],'attributes':this['attributes']};}static[_0x4628('0x38')](){return _0x116f45()[_0x4628('0xf')](0x1,0x5);}}
23
+ const _0x1bf6=['discard','delete','commentThread','getItems','getMultiRangeId','createdAt','getAllAdjacentSuggestions','split','isIntersecting','reduce','head','authoredAt','map','accept','previous','isInContent','getMarkerNames','author','removeAttribute','get','getRanges','removeMarkers','_onDiscard','getFirstMarker','type','end','size','onDiscard','creator','removeMarker','change','setAttribute','onAttributesChange','_model','_isDataLoaded','add','@external','getContainedElement','getMarkers','nodeBefore','isIntersectingWithRange','isMultiRange','clear','attributes','addRange','push','getRange','hasComments','set','from','addMarkerName','_markerNames','subType','_onAccept','_onAttributesChange','next','getFirstRange','length','markers','decorate','data','start'];(function(_0xf4c501,_0x1bf6e0){const _0x5a2983=function(_0x5a3b7c){while(--_0x5a3b7c){_0xf4c501['push'](_0xf4c501['shift']());}};_0x5a2983(++_0x1bf6e0);}(_0x1bf6,0xa4));const _0x5a29=function(_0xf4c501,_0x1bf6e0){_0xf4c501=_0xf4c501-0x0;let _0x5a2983=_0x1bf6[_0xf4c501];return _0x5a2983;};import{Element as _0x12eb54}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x4f71fa,uid as _0xae8884}from'ckeditor5/src/utils.js';import{cloneDeep as _0x1a81fa,isEqual as _0x2d81e9,set as _0x1b22bf,unset as _0x20b699}from'lodash-es';export default class u extends _0x4f71fa(){constructor(_0x28bbcd,_0x5473b6){super(),this[_0x5a29('0x38')]=!0x1,this['id']=_0x5473b6['id'],this[_0x5a29('0x2e')]=_0x5473b6[_0x5a29('0x2e')],this[_0x5a29('0xc')]=_0x5473b6[_0x5a29('0xc')]||null,this['author']=_0x5473b6[_0x5a29('0x27')],this[_0x5a29('0x32')]=_0x5473b6[_0x5a29('0x32')]||_0x5473b6['author'],this['isExternal']=Boolean(_0x5473b6[_0x5a29('0x3')]&&_0x5473b6[_0x5a29('0x3')][_0x5a29('0x3a')]),this[_0x5a29('0x14')]=null,this[_0x5a29('0x37')]=_0x28bbcd,this[_0x5a29('0xd')]=_0x5473b6['onAccept'],this[_0x5a29('0x2c')]=_0x5473b6[_0x5a29('0x31')],this[_0x5a29('0xe')]=_0x5473b6[_0x5a29('0x36')],this['_markerNames']=new Set(),this[_0x5a29('0x1b')]=null,this['set'](_0x5a29('0x21'),null),this[_0x5a29('0x8')]('attributes',_0x5473b6[_0x5a29('0x3')]||{}),this[_0x5a29('0x8')](_0x5a29('0x24'),null),this[_0x5a29('0x8')](_0x5a29('0xf'),null),this[_0x5a29('0x8')](_0x5a29('0x18'),null),this['set']('_saved',!0x1),this['decorate'](_0x5a29('0x23')),this[_0x5a29('0x13')](_0x5a29('0x16'));}get[_0x5a29('0x20')](){let _0x3b2ba6=this;for(;_0x3b2ba6[_0x5a29('0x24')];)_0x3b2ba6=_0x3b2ba6['previous'];return _0x3b2ba6;}get['hasComments'](){return!!this['commentThread']&&this[_0x5a29('0x18')]['length']>0x0;}get[_0x5a29('0x1')](){if(0x0==this['_markerNames'][_0x5a29('0x30')])return!0x1;return 0x6==Array[_0x5a29('0x9')](this[_0x5a29('0xb')])[0x0][_0x5a29('0x1d')](':')[_0x5a29('0x11')];}get[_0x5a29('0x25')](){return null!==this[_0x5a29('0x2d')]();}['addMarkerName'](_0x4769e8){this[_0x5a29('0xb')][_0x5a29('0x39')](_0x4769e8);}[_0x5a29('0x26')](){return Array[_0x5a29('0x9')](this[_0x5a29('0xb')]);}[_0x5a29('0x3c')](){return this['getMarkerNames']()[_0x5a29('0x22')](_0x35ef9b=>this[_0x5a29('0x37')][_0x5a29('0x12')][_0x5a29('0x29')](_0x35ef9b))['filter'](_0x461a39=>_0x461a39);}[_0x5a29('0x2d')](){return this[_0x5a29('0x3c')]()[0x0]||null;}[_0x5a29('0x2b')](){this[_0x5a29('0x37')][_0x5a29('0x34')](_0x5bc783=>{for(const _0x1a3813 of this[_0x5a29('0x3c')]())_0x5bc783['removeMarker'](_0x1a3813);}),this[_0x5a29('0xb')][_0x5a29('0x2')]();}['removeMarker'](_0x67a56d){this[_0x5a29('0x37')][_0x5a29('0x34')](_0x32d381=>{_0x32d381[_0x5a29('0x33')](_0x67a56d);}),this['_markerNames'][_0x5a29('0x17')](_0x67a56d);}[_0x5a29('0x4')](_0x32294f){const _0x17b29f='suggestion:'+this[_0x5a29('0x2e')]+':'+this[_0x5a29('0xc')]+':'+this['id']+':'+this[_0x5a29('0x32')]['id']+':'+u[_0x5a29('0x1a')]();this[_0x5a29('0xa')](_0x17b29f),this['_model'][_0x5a29('0x34')](_0x297497=>{_0x297497['addMarker'](_0x17b29f,{'range':_0x32294f,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5a29('0x0')](_0x8bd95d){for(const _0x8a51c2 of this[_0x5a29('0x2a')]())if(_0x8a51c2[_0x5a29('0x1e')](_0x8bd95d))return!0x0;return!0x1;}['getRanges'](){return this[_0x5a29('0x3c')]()[_0x5a29('0x22')](_0x4e315c=>_0x4e315c[_0x5a29('0x6')]());}[_0x5a29('0x19')](){return this[_0x5a29('0x2a')]()[_0x5a29('0x1f')]((_0xe973df,_0x14046b)=>[..._0xe973df,..._0x14046b[_0x5a29('0x19')]()],[]);}[_0x5a29('0x10')](){var _0x53dbe3;return(null===(_0x53dbe3=this[_0x5a29('0x2d')]())||void 0x0===_0x53dbe3?void 0x0:_0x53dbe3[_0x5a29('0x6')]())||null;}[_0x5a29('0x3b')](){const _0x2361eb=this[_0x5a29('0x2a')]();if(0x1!=_0x2361eb[_0x5a29('0x11')])return null;const _0x4e5a65=_0x2361eb[0x0],_0x233474=_0x4e5a65[_0x5a29('0x15')]['nodeAfter'],_0x19e155=_0x4e5a65[_0x5a29('0x2f')][_0x5a29('0x3d')];return _0x233474 instanceof _0x12eb54?_0x233474!=_0x19e155?null:_0x233474:null;}[_0x5a29('0x23')](){this['_onAccept'](this[_0x5a29('0x2a')](),this['data'],this['attributes']),this[_0x5a29('0x2b')]();}[_0x5a29('0x16')](){this[_0x5a29('0x2c')](this[_0x5a29('0x2a')](),this['data'],this[_0x5a29('0x3')]),this[_0x5a29('0x2b')]();}[_0x5a29('0x1c')](){const _0x2e49c2=[];let _0x253201=this[_0x5a29('0x20')];for(;_0x253201;)_0x2e49c2[_0x5a29('0x5')](_0x253201),_0x253201=_0x253201[_0x5a29('0xf')];return _0x2e49c2;}[_0x5a29('0x35')](_0x116b7a,_0x2a3081){const _0x538384=_0x1a81fa(this['attributes']);_0x1b22bf(_0x538384,_0x116b7a,_0x2a3081),_0x2d81e9(_0x538384,this[_0x5a29('0x3')])||(this[_0x5a29('0x3')]=_0x538384,this[_0x5a29('0xe')](_0x538384));}[_0x5a29('0x28')](_0x1e7977){const _0x3f2da8=_0x1a81fa(this[_0x5a29('0x3')]);_0x20b699(_0x3f2da8,_0x1e7977),_0x2d81e9(_0x3f2da8,this[_0x5a29('0x3')])||(this['attributes']=_0x3f2da8,this['_onAttributesChange'](this[_0x5a29('0x3')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x5a29('0xc')]?this[_0x5a29('0x2e')]+':'+this[_0x5a29('0xc')]:this['type'],'authorId':this[_0x5a29('0x32')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x5a29('0x7')],'data':this[_0x5a29('0x14')],'attributes':this[_0x5a29('0x3')]};}static[_0x5a29('0x1a')](){return _0xae8884()['substr'](0x1,0x5);}}
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { type Locale, type PriorityString } from 'ckeditor5/src/utils';
6
- import type { Schema, Element } from 'ckeditor5/src/engine';
7
- import type Suggestion from './suggestion';
5
+ import { type Locale, type PriorityString } from 'ckeditor5/src/utils.js';
6
+ import type { Schema, Element } from 'ckeditor5/src/engine.js';
7
+ import type Suggestion from './suggestion.js';
8
8
  /**
9
9
  * Creates descriptions for suggestions and suggestions chains.
10
10
  *