@ckeditor/ckeditor5-track-changes 40.2.0 → 41.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 (197) hide show
  1. package/CHANGELOG.md +5 -5
  2. package/LICENSE.md +1 -1
  3. package/README.md +1 -1
  4. package/build/track-changes.js +2 -2
  5. package/build/translations/es.js +1 -1
  6. package/build/translations/ro.js +1 -1
  7. package/lang/translations/ar.po +1 -1
  8. package/lang/translations/az.po +1 -1
  9. package/lang/translations/bg.po +1 -1
  10. package/lang/translations/bn.po +1 -1
  11. package/lang/translations/ca.po +1 -1
  12. package/lang/translations/cs.po +1 -1
  13. package/lang/translations/da.po +1 -1
  14. package/lang/translations/de.po +1 -1
  15. package/lang/translations/el.po +1 -1
  16. package/lang/translations/en-au.po +1 -1
  17. package/lang/translations/en.po +1 -1
  18. package/lang/translations/es.po +2 -2
  19. package/lang/translations/et.po +1 -1
  20. package/lang/translations/fi.po +1 -1
  21. package/lang/translations/fr.po +1 -1
  22. package/lang/translations/gl.po +1 -1
  23. package/lang/translations/he.po +1 -1
  24. package/lang/translations/hi.po +1 -1
  25. package/lang/translations/hr.po +1 -1
  26. package/lang/translations/hu.po +1 -1
  27. package/lang/translations/id.po +1 -1
  28. package/lang/translations/it.po +1 -1
  29. package/lang/translations/ja.po +1 -1
  30. package/lang/translations/ko.po +1 -1
  31. package/lang/translations/lt.po +1 -1
  32. package/lang/translations/lv.po +1 -1
  33. package/lang/translations/ms.po +1 -1
  34. package/lang/translations/nl.po +1 -1
  35. package/lang/translations/no.po +1 -1
  36. package/lang/translations/pl.po +1 -1
  37. package/lang/translations/pt-br.po +1 -1
  38. package/lang/translations/pt.po +1 -1
  39. package/lang/translations/ro.po +2 -2
  40. package/lang/translations/ru.po +1 -1
  41. package/lang/translations/sk.po +1 -1
  42. package/lang/translations/sq.po +1 -1
  43. package/lang/translations/sr-latn.po +1 -1
  44. package/lang/translations/sr.po +1 -1
  45. package/lang/translations/sv.po +1 -1
  46. package/lang/translations/th.po +1 -1
  47. package/lang/translations/tk.po +1 -1
  48. package/lang/translations/tr.po +1 -1
  49. package/lang/translations/tt.po +1 -1
  50. package/lang/translations/uk.po +1 -1
  51. package/lang/translations/ur.po +1 -1
  52. package/lang/translations/vi.po +1 -1
  53. package/lang/translations/zh-cn.po +1 -1
  54. package/lang/translations/zh.po +1 -1
  55. package/package.json +4 -3
  56. package/src/augmentation.d.ts +3 -3
  57. package/src/augmentation.js +1 -1
  58. package/src/commands/acceptsuggestioncommand.d.ts +3 -3
  59. package/src/commands/acceptsuggestioncommand.js +2 -2
  60. package/src/commands/discardsuggestioncommand.d.ts +3 -3
  61. package/src/commands/discardsuggestioncommand.js +2 -2
  62. package/src/commands/executeonallsuggestionscommand.d.ts +3 -3
  63. package/src/commands/executeonallsuggestionscommand.js +2 -2
  64. package/src/commands/executeonselectedsuggestionscommand.d.ts +3 -3
  65. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  66. package/src/commands/trackchangescommand.d.ts +2 -2
  67. package/src/commands/trackchangescommand.js +2 -2
  68. package/src/index.d.ts +13 -13
  69. package/src/index.js +2 -2
  70. package/src/integrations/aiassistant.d.ts +2 -2
  71. package/src/integrations/aiassistant.js +2 -2
  72. package/src/integrations/alignment.d.ts +2 -2
  73. package/src/integrations/alignment.js +2 -2
  74. package/src/integrations/basicstyles.d.ts +2 -2
  75. package/src/integrations/basicstyles.js +2 -2
  76. package/src/integrations/blockquote.d.ts +2 -2
  77. package/src/integrations/blockquote.js +2 -2
  78. package/src/integrations/casechange.d.ts +17 -0
  79. package/src/integrations/casechange.js +23 -0
  80. package/src/integrations/ckbox.d.ts +2 -2
  81. package/src/integrations/ckbox.js +2 -2
  82. package/src/integrations/codeblock.d.ts +2 -2
  83. package/src/integrations/codeblock.js +2 -2
  84. package/src/integrations/comments.d.ts +2 -2
  85. package/src/integrations/comments.js +2 -2
  86. package/src/integrations/deletecommand.d.ts +3 -3
  87. package/src/integrations/deletecommand.js +2 -2
  88. package/src/integrations/entercommand.d.ts +3 -3
  89. package/src/integrations/entercommand.js +2 -2
  90. package/src/integrations/findandreplace.d.ts +2 -2
  91. package/src/integrations/findandreplace.js +2 -2
  92. package/src/integrations/font.d.ts +2 -2
  93. package/src/integrations/font.js +2 -2
  94. package/src/integrations/formatpainter.d.ts +2 -2
  95. package/src/integrations/formatpainter.js +2 -2
  96. package/src/integrations/heading.d.ts +2 -2
  97. package/src/integrations/heading.js +2 -2
  98. package/src/integrations/highlight.d.ts +2 -2
  99. package/src/integrations/highlight.js +2 -2
  100. package/src/integrations/horizontalline.d.ts +2 -2
  101. package/src/integrations/horizontalline.js +2 -2
  102. package/src/integrations/htmlembed.d.ts +2 -2
  103. package/src/integrations/htmlembed.js +2 -2
  104. package/src/integrations/image.d.ts +2 -2
  105. package/src/integrations/image.js +2 -2
  106. package/src/integrations/imagereplace.d.ts +2 -2
  107. package/src/integrations/imagereplace.js +2 -2
  108. package/src/integrations/imagestyle.d.ts +2 -2
  109. package/src/integrations/imagestyle.js +2 -2
  110. package/src/integrations/importword.d.ts +2 -2
  111. package/src/integrations/importword.js +2 -2
  112. package/src/integrations/indent.d.ts +2 -2
  113. package/src/integrations/indent.js +2 -2
  114. package/src/integrations/inputcommand.d.ts +3 -3
  115. package/src/integrations/inputcommand.js +2 -2
  116. package/src/integrations/legacylist.d.ts +17 -0
  117. package/src/integrations/legacylist.js +23 -0
  118. package/src/integrations/{documentlistproperties.d.ts → legacylistproperties.d.ts} +7 -7
  119. package/src/integrations/legacylistproperties.js +23 -0
  120. package/src/integrations/link.d.ts +2 -2
  121. package/src/integrations/link.js +2 -2
  122. package/src/integrations/list.d.ts +6 -6
  123. package/src/integrations/list.js +2 -2
  124. package/src/integrations/listproperties.d.ts +6 -15
  125. package/src/integrations/listproperties.js +2 -2
  126. package/src/integrations/mediaembed.d.ts +2 -2
  127. package/src/integrations/mediaembed.js +2 -2
  128. package/src/integrations/mention.d.ts +2 -2
  129. package/src/integrations/mention.js +2 -2
  130. package/src/integrations/pagebreak.d.ts +2 -2
  131. package/src/integrations/pagebreak.js +2 -2
  132. package/src/integrations/paragraph.d.ts +2 -2
  133. package/src/integrations/paragraph.js +2 -2
  134. package/src/integrations/removeformat.d.ts +2 -2
  135. package/src/integrations/removeformat.js +2 -2
  136. package/src/integrations/restrictededitingmode.d.ts +2 -2
  137. package/src/integrations/restrictededitingmode.js +2 -2
  138. package/src/integrations/shiftentercommand.d.ts +3 -3
  139. package/src/integrations/shiftentercommand.js +2 -2
  140. package/src/integrations/standardeditingmode.d.ts +2 -2
  141. package/src/integrations/standardeditingmode.js +2 -2
  142. package/src/integrations/style.d.ts +2 -2
  143. package/src/integrations/style.js +2 -2
  144. package/src/integrations/table.d.ts +2 -2
  145. package/src/integrations/table.js +2 -2
  146. package/src/integrations/tablecaption.d.ts +3 -3
  147. package/src/integrations/tablecaption.js +2 -2
  148. package/src/integrations/tableclipboard.d.ts +3 -3
  149. package/src/integrations/tableclipboard.js +2 -2
  150. package/src/integrations/tablecolumnresize.d.ts +5 -5
  151. package/src/integrations/tablecolumnresize.js +2 -2
  152. package/src/integrations/tableheadings.d.ts +3 -3
  153. package/src/integrations/tableheadings.js +2 -2
  154. package/src/integrations/tablemergesplit.d.ts +3 -3
  155. package/src/integrations/tablemergesplit.js +2 -2
  156. package/src/integrations/tableofcontents.d.ts +2 -2
  157. package/src/integrations/tableofcontents.js +2 -2
  158. package/src/integrations/tableproperties.d.ts +5 -5
  159. package/src/integrations/tableproperties.js +2 -2
  160. package/src/integrations/template.d.ts +2 -2
  161. package/src/integrations/template.js +2 -2
  162. package/src/integrations/title.d.ts +2 -2
  163. package/src/integrations/title.js +2 -2
  164. package/src/integrations/undo.d.ts +2 -2
  165. package/src/integrations/undo.js +2 -2
  166. package/src/integrations/utils.d.ts +4 -4
  167. package/src/integrations/utils.js +2 -2
  168. package/src/suggestion.d.ts +6 -6
  169. package/src/suggestion.js +2 -2
  170. package/src/suggestiondescriptionfactory.d.ts +4 -4
  171. package/src/suggestiondescriptionfactory.js +2 -2
  172. package/src/trackchanges.d.ts +6 -6
  173. package/src/trackchanges.js +2 -2
  174. package/src/trackchangesconfig.d.ts +2 -2
  175. package/src/trackchangesconfig.js +1 -1
  176. package/src/trackchangesdata.d.ts +3 -3
  177. package/src/trackchangesdata.js +2 -2
  178. package/src/trackchangesediting.d.ts +56 -55
  179. package/src/trackchangesediting.js +2 -2
  180. package/src/trackchangesui.d.ts +4 -4
  181. package/src/trackchangesui.js +2 -2
  182. package/src/ui/suggestioncontroller.d.ts +6 -6
  183. package/src/ui/suggestioncontroller.js +2 -2
  184. package/src/ui/view/basesuggestionthreadview.d.ts +7 -7
  185. package/src/ui/view/basesuggestionthreadview.js +2 -2
  186. package/src/ui/view/suggestionthreadview.d.ts +6 -6
  187. package/src/ui/view/suggestionthreadview.js +2 -2
  188. package/src/utils/common-translations.d.ts +2 -2
  189. package/src/utils/common-translations.js +2 -2
  190. package/src/utils/utils.d.ts +5 -5
  191. package/src/utils/utils.js +2 -2
  192. package/theme/icons/track-changes-accept.svg +1 -1
  193. package/theme/icons/track-changes-discard.svg +1 -1
  194. package/theme/icons/track-changes.svg +1 -1
  195. package/src/integrations/documentlist.d.ts +0 -17
  196. package/src/integrations/documentlist.js +0 -23
  197. 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 _0x27f4=['trackChanges','editor','*Split\x20cell:*\x20horizontally','_descriptionFactory','return','has','insertion','subType','filter','createRangeOn','_acceptFormatSuggestionCallbackFactory','TableEditing','mergeTableCellLeft','low','document','from','element','format','mergeTableCellRight','mergeTableCellUp','markBlockFormat','deletion','requires','_areSelectedCellsMergable','createTableWalker','formatInline','TableUtils','commandName','change','table','execute','splitTableCellHorizontally','horizontally','author','rootName','get','getFirstPosition','getRanges','commands','_areMergableCells','getAncestors','mergeTableCells','accept','splitTableCellVertically','getCellLocation','find','markMultiRangeBlockFormat','value','set:isEnabled','detach','formatBlock','registerDescriptionCallback','_suggestionFactory','selection','*Merge\x20cells*','map','length','root','plugins','mergeTableCellDown','getSelectionAffectedTableCells','model','add','_tablePostFixingSubtypes','type','containsRange','findAncestor','enableCommand','registerCustomCallback','cell','$graveyard','tableCell'];(function(_0x33c2e2,_0x27f4e3){const _0x36aa39=function(_0x3887c3){while(--_0x3887c3){_0x33c2e2['push'](_0x33c2e2['shift']());}};_0x36aa39(++_0x27f4e3);}(_0x27f4,0x13d));const _0x36aa=function(_0x33c2e2,_0x27f4e3){_0x33c2e2=_0x33c2e2-0x0;let _0x36aa39=_0x27f4[_0x33c2e2];return _0x36aa39;};import{Plugin as _0x26c818}from'ckeditor5/src/core';import _0x89496f from'./table';import{LiveRange as _0xb99239}from'ckeditor5/src/engine';import{getTranslation as _0x2e38e0}from'../utils/common-translations';export default class yt extends _0x26c818{static get[_0x36aa('0x41')](){return[_0x89496f];}['afterInit'](){const _0x473158=this[_0x36aa('0x2c')],_0x4493c5=_0x473158[_0x36aa('0x20')][_0x36aa('0x39')][_0x36aa('0x18')],_0x3ca5af=_0x473158['locale'];if(!_0x473158[_0x36aa('0x1d')][_0x36aa('0x30')](_0x36aa('0x36')))return;const _0x135cb5=_0x473158[_0x36aa('0x1d')][_0x36aa('0x6')]('TrackChangesEditing'),_0xb7f449=_0x473158[_0x36aa('0x1d')][_0x36aa('0x6')]('TableUtils'),_0x224777=_0x473158['plugins'][_0x36aa('0x6')](_0x89496f);_0x224777[_0x36aa('0x22')]['push'](_0x36aa('0xc')),_0x135cb5[_0x36aa('0x26')](_0x36aa('0xc'),()=>{const _0x528392=_0xb7f449[_0x36aa('0x1f')](_0x473158[_0x36aa('0x20')][_0x36aa('0x39')][_0x36aa('0x18')]);_0x473158[_0x36aa('0x20')][_0x36aa('0x47')](()=>{_0x135cb5[_0x36aa('0x11')](_0x528392,{'commandName':_0x36aa('0xc'),'commandParams':[]},[],_0x36aa('0xc'));});}),_0x473158[_0x36aa('0x9')][_0x36aa('0x6')]('mergeTableCells')['on'](_0x36aa('0x1'),(_0x2f4fdc,_0xfb2da3)=>{_0x473158['commands']['get'](_0x36aa('0x2b'))[_0x36aa('0x12')]&&(_0xfb2da3['length']>0x0&&_0xfb2da3[_0xfb2da3['length']-0x1]&&_0xfb2da3[_0xfb2da3[_0x36aa('0x1b')]-0x1]['forceDefaultExecution']||_0x135cb5['_isForcedDefaultExecutionBlock']||this[_0x36aa('0x42')]()||_0x2f4fdc['stop']());},{'priority':'highest'});for(const _0x1600e2 of[_0x36aa('0x3e'),_0x36aa('0x3d'),_0x36aa('0x1e'),_0x36aa('0x37')]){const _0x535e65=_0x473158[_0x36aa('0x9')][_0x36aa('0x6')](_0x1600e2);_0x135cb5['enableCommand'](_0x1600e2,()=>{const _0x32674c=_0x473158[_0x36aa('0x20')][_0x36aa('0x39')][_0x36aa('0x18')]['getFirstPosition']()[_0x36aa('0xb')]()[_0x36aa('0x10')](_0x2427ef=>_0x2427ef['is']('element',_0x36aa('0x2a'))),_0x2abea8=_0x535e65[_0x36aa('0x12')];_0x473158[_0x36aa('0x20')][_0x36aa('0x47')](()=>{_0x135cb5['markMultiRangeBlockFormat']([_0x32674c,_0x2abea8],{'commandName':'mergeTableCells','commandParams':[]},[],_0x36aa('0xc'));});});}for(const _0x21af18 of[_0x36aa('0xe'),_0x36aa('0x2')]){const _0x5ca3e3=_0x473158[_0x36aa('0x9')][_0x36aa('0x6')](_0x21af18);_0x135cb5['enableCommand'](_0x21af18,()=>{const _0x47bf7f=_0xb7f449[_0x36aa('0x1f')](_0x473158[_0x36aa('0x20')][_0x36aa('0x39')][_0x36aa('0x18')])[0x0],_0x3fcd56=_0x47bf7f[_0x36aa('0x25')](_0x36aa('0x0')),{column:_0x104be9,row:_0x374db1}=_0xb7f449[_0x36aa('0xf')](_0x47bf7f);let _0x3f3537=[];if(_0x36aa('0x3')==_0x5ca3e3['direction']){const _0x4e4cc8=_0xb7f449[_0x36aa('0x43')](_0x3fcd56,{'startRow':_0x374db1,'endRow':_0x374db1,'includeAllSlots':!0x0});_0x3f3537=Array[_0x36aa('0x3a')](_0x4e4cc8)[_0x36aa('0x1a')](_0x3bc85f=>_0x3bc85f[_0x36aa('0x28')]);}else{const _0x441f9c=_0xb7f449[_0x36aa('0x43')](_0x3fcd56,{'column':_0x104be9,'includeAllSlots':!0x0});_0x3f3537=Array[_0x36aa('0x3a')](_0x441f9c)['map'](_0x18f429=>_0x18f429[_0x36aa('0x28')]);}_0x473158['model'][_0x36aa('0x47')](_0x395f10=>{_0x135cb5[_0x36aa('0x3f')](_0x395f10['createRangeOn'](_0x47bf7f),{'commandName':_0x21af18,'commandParams':[]},_0x3f3537,_0x21af18);});});}_0x135cb5['_descriptionFactory']['registerDescriptionCallback'](_0x39eb90=>{if(_0x36aa('0x15')!=_0x39eb90['type']&&_0x36aa('0x44')!=_0x39eb90[_0x36aa('0x23')])return;const {data:_0x40850f}=_0x39eb90;return _0x40850f&&'mergeTableCells'==_0x40850f[_0x36aa('0x46')]?{'type':'format','content':_0x2e38e0(_0x3ca5af,_0x36aa('0x19'))}:void 0x0;}),_0x135cb5[_0x36aa('0x2e')][_0x36aa('0x16')](_0x62740d=>{if(_0x36aa('0x15')!=_0x62740d[_0x36aa('0x23')]&&'formatInline'!=_0x62740d['type'])return;const {data:_0x51bd9d}=_0x62740d;return _0x51bd9d?_0x36aa('0xe')==_0x51bd9d[_0x36aa('0x46')]?{'type':_0x36aa('0x3c'),'content':_0x2e38e0(_0x3ca5af,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x51bd9d[_0x36aa('0x46')]?{'type':_0x36aa('0x3c'),'content':_0x2e38e0(_0x3ca5af,_0x36aa('0x2d'))}:void 0x0:void 0x0;});const _0x306341=_0x224777[_0x36aa('0x35')]();for(const _0x443881 of[_0x36aa('0x3e'),_0x36aa('0x3d'),_0x36aa('0x1e'),_0x36aa('0x37')])_0x135cb5[_0x36aa('0x17')][_0x36aa('0x27')]('formatBlock',_0x443881,'accept',_0x306341);for(const _0x177784 of['splitTableCellVertically',_0x36aa('0x2')])_0x135cb5[_0x36aa('0x17')][_0x36aa('0x27')](_0x36aa('0x15'),_0x177784,'accept',_0x306341);_0x135cb5[_0x36aa('0x17')]['registerCustomCallback'](_0x36aa('0x15'),_0x36aa('0xc'),_0x36aa('0xd'),_0x27359c=>{_0x473158['model']['change'](_0x52edfe=>{const _0x36d401=Array[_0x36aa('0x3a')](_0x4493c5[_0x36aa('0x8')]())[_0x36aa('0x1a')](_0x4ac5b9=>_0xb99239['fromRange'](_0x4ac5b9));_0x52edfe['setSelection'](_0x27359c),_0x473158[_0x36aa('0x9')][_0x36aa('0x6')](_0x36aa('0xc'))['refresh'](),_0x473158['execute'](_0x36aa('0xc'),{'forceDefaultExecution':!0x0});const _0x286db1=_0x36d401[_0x36aa('0x33')](_0x30b072=>_0x36aa('0x29')!=_0x30b072[_0x36aa('0x1c')][_0x36aa('0x5')]);_0x286db1[_0x36aa('0x1b')]>0x0&&_0x52edfe['setSelection'](_0x286db1);for(const _0x1d95c1 of _0x36d401)_0x1d95c1[_0x36aa('0x14')]();});});for(const _0x1329dd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft',_0x36aa('0x3d')]){const _0x3dbccd=_0x473158[_0x36aa('0x9')][_0x36aa('0x6')](_0x1329dd);_0x3dbccd['on'](_0x36aa('0x13'),(_0x507e5d,_0x5e7cc2,_0x16cf36)=>{if(_0x16cf36){const _0x2895b2=_0x473158[_0x36aa('0x20')][_0x36aa('0x39')][_0x36aa('0x18')][_0x36aa('0x7')]()[_0x36aa('0xb')]()[_0x36aa('0x10')](_0x827425=>_0x827425['is'](_0x36aa('0x3b'),'tableCell'));this[_0x36aa('0xa')](_0x3dbccd[_0x36aa('0x12')],_0x2895b2)||(_0x507e5d[_0x36aa('0x2f')]=!0x1,_0x507e5d['stop']());}},{'priority':_0x36aa('0x38')});}}[_0x36aa('0x42')](){const _0x16f17c=this[_0x36aa('0x2c')][_0x36aa('0x9')][_0x36aa('0x6')](_0x36aa('0xc')),_0x44b94b=this[_0x36aa('0x2c')][_0x36aa('0x1d')][_0x36aa('0x6')](_0x36aa('0x45'));if(!_0x16f17c['isEnabled'])return!0x1;const _0x48e3b7=_0x44b94b['getSelectionAffectedTableCells'](this[_0x36aa('0x2c')][_0x36aa('0x20')][_0x36aa('0x39')]['selection']);for(const _0x408115 of _0x48e3b7)for(const _0x1e3158 of _0x48e3b7)if(_0x408115!=_0x1e3158&&!this['_areMergableCells'](_0x408115,_0x1e3158))return!0x1;return!0x0;}[_0x36aa('0xa')](_0x1267a6,_0x472672){const _0x4ddc46=this[_0x36aa('0x2c')][_0x36aa('0x1d')][_0x36aa('0x6')]('TrackChangesEditing'),_0x49b77b=this[_0x36aa('0x2c')][_0x36aa('0x20')][_0x36aa('0x34')](_0x1267a6),_0x3b7d31=this[_0x36aa('0x2c')][_0x36aa('0x20')][_0x36aa('0x34')](_0x472672),_0x484a0e=new Set(),_0x759494=new Set();for(const _0x29336c of _0x4ddc46['getSuggestions']())if((_0x36aa('0x31')==_0x29336c[_0x36aa('0x23')]||_0x36aa('0x40')==_0x29336c[_0x36aa('0x23')]||'mergeTableCells'==_0x29336c[_0x36aa('0x32')])&&_0x29336c['isInContent'])for(const _0x2637a1 of _0x29336c[_0x36aa('0x8')]())_0x2637a1[_0x36aa('0x24')](_0x49b77b,!0x0)&&_0x484a0e[_0x36aa('0x21')](_0x29336c[_0x36aa('0x23')]+':'+_0x29336c[_0x36aa('0x4')]['id']),_0x2637a1[_0x36aa('0x24')](_0x3b7d31,!0x0)&&_0x759494['add'](_0x29336c['type']+':'+_0x29336c[_0x36aa('0x4')]['id']);if(_0x484a0e['size']!=_0x759494['size'])return!0x1;for(const _0x40b7d0 of _0x484a0e)if(!_0x759494[_0x36aa('0x30')](_0x40b7d0))return!0x1;return!0x0;}}
23
+ const _0x31ad=['low','_tablePostFixingSubtypes','add','findAncestor','table','afterInit','execute','formatBlock','getSuggestions','value','mergeTableCellRight','mergeTableCellLeft','_acceptFormatSuggestionCallbackFactory','has','forceDefaultExecution','formatInline','registerDescriptionCallback','root','getSelectionAffectedTableCells','get','stop','_descriptionFactory','mergeTableCellDown','type','trackChanges','accept','getFirstPosition','from','editor','plugins','direction','horizontally','*Split\x20cell:*\x20vertically','map','mergeTableCellUp','rootName','format','subType','_areMergableCells','model','length','TableEditing','highest','commandName','refresh','_suggestionFactory','set:isEnabled','createTableWalker','registerCustomCallback','commands','containsRange','return','getRanges','splitTableCellVertically','cell','$graveyard','detach','fromRange','requires','author','getCellLocation','locale','isInContent','getAncestors','_areSelectedCellsMergable','tableCell','markMultiRangeBlockFormat','splitTableCellHorizontally','mergeTableCells','TableUtils','size','change','push','find','selection','document','*Merge\x20cells*','createRangeOn','insertion','enableCommand','isEnabled','filter'];(function(_0x2bd3b1,_0x31adfc){const _0x37a00e=function(_0x4dfea6){while(--_0x4dfea6){_0x2bd3b1['push'](_0x2bd3b1['shift']());}};_0x37a00e(++_0x31adfc);}(_0x31ad,0x11c));const _0x37a0=function(_0x2bd3b1,_0x31adfc){_0x2bd3b1=_0x2bd3b1-0x0;let _0x37a00e=_0x31ad[_0x2bd3b1];return _0x37a00e;};import{Plugin as _0x19c5be}from'ckeditor5/src/core.js';import _0x1a066c from'./table.js';import{LiveRange as _0x4326da}from'ckeditor5/src/engine.js';import{getTranslation as _0x3f68f3}from'../utils/common-translations.js';export default class jt extends _0x19c5be{static get[_0x37a0('0x14')](){return[_0x1a066c];}[_0x37a0('0x31')](){const _0x534b6f=this['editor'],_0x3c3e6e=_0x534b6f['model'][_0x37a0('0x25')][_0x37a0('0x24')],_0xc612ec=_0x534b6f[_0x37a0('0x17')];if(!_0x534b6f[_0x37a0('0x49')][_0x37a0('0x39')](_0x37a0('0x3')))return;const _0x48fb40=_0x534b6f[_0x37a0('0x49')][_0x37a0('0x3f')]('TrackChangesEditing'),_0x3a31f0=_0x534b6f[_0x37a0('0x49')][_0x37a0('0x3f')](_0x37a0('0x1f')),_0x1c8e64=_0x534b6f[_0x37a0('0x49')][_0x37a0('0x3f')](_0x1a066c);_0x1c8e64[_0x37a0('0x2d')][_0x37a0('0x22')](_0x37a0('0x1e')),_0x48fb40[_0x37a0('0x29')](_0x37a0('0x1e'),()=>{const _0x3a7f0d=_0x3a31f0[_0x37a0('0x3e')](_0x534b6f['model'][_0x37a0('0x25')][_0x37a0('0x24')]);_0x534b6f[_0x37a0('0x1')][_0x37a0('0x21')](()=>{_0x48fb40[_0x37a0('0x1c')](_0x3a7f0d,{'commandName':_0x37a0('0x1e'),'commandParams':[]},[],_0x37a0('0x1e'));});}),_0x534b6f['commands'][_0x37a0('0x3f')]('mergeTableCells')['on'](_0x37a0('0x32'),(_0xe1c7b2,_0x42dab9)=>{_0x534b6f[_0x37a0('0xb')]['get'](_0x37a0('0x44'))[_0x37a0('0x35')]&&(_0x42dab9[_0x37a0('0x2')]>0x0&&_0x42dab9[_0x42dab9[_0x37a0('0x2')]-0x1]&&_0x42dab9[_0x42dab9[_0x37a0('0x2')]-0x1][_0x37a0('0x3a')]||_0x48fb40['_isForcedDefaultExecutionBlock']||this[_0x37a0('0x1a')]()||_0xe1c7b2[_0x37a0('0x40')]());},{'priority':_0x37a0('0x4')});for(const _0x982877 of[_0x37a0('0x4e'),_0x37a0('0x36'),_0x37a0('0x42'),_0x37a0('0x37')]){const _0x35f55b=_0x534b6f[_0x37a0('0xb')][_0x37a0('0x3f')](_0x982877);_0x48fb40[_0x37a0('0x29')](_0x982877,()=>{const _0x1cdcdb=_0x534b6f[_0x37a0('0x1')][_0x37a0('0x25')]['selection'][_0x37a0('0x46')]()[_0x37a0('0x19')]()['find'](_0x310b86=>_0x310b86['is']('element',_0x37a0('0x1b'))),_0x3f4b19=_0x35f55b['value'];_0x534b6f[_0x37a0('0x1')][_0x37a0('0x21')](()=>{_0x48fb40[_0x37a0('0x1c')]([_0x1cdcdb,_0x3f4b19],{'commandName':_0x37a0('0x1e'),'commandParams':[]},[],'mergeTableCells');});});}for(const _0x1bc07a of['splitTableCellVertically',_0x37a0('0x1d')]){const _0x1c24b8=_0x534b6f[_0x37a0('0xb')]['get'](_0x1bc07a);_0x48fb40[_0x37a0('0x29')](_0x1bc07a,()=>{const _0x237c7e=_0x3a31f0[_0x37a0('0x3e')](_0x534b6f[_0x37a0('0x1')][_0x37a0('0x25')][_0x37a0('0x24')])[0x0],_0x355b75=_0x237c7e[_0x37a0('0x2f')](_0x37a0('0x30')),{column:_0x2dcf66,row:_0x5c5566}=_0x3a31f0[_0x37a0('0x16')](_0x237c7e);let _0x40adf8=[];if(_0x37a0('0x4b')==_0x1c24b8[_0x37a0('0x4a')]){const _0x4196be=_0x3a31f0['createTableWalker'](_0x355b75,{'startRow':_0x5c5566,'endRow':_0x5c5566,'includeAllSlots':!0x0});_0x40adf8=Array[_0x37a0('0x47')](_0x4196be)[_0x37a0('0x4d')](_0x57ff57=>_0x57ff57[_0x37a0('0x10')]);}else{const _0x46a4b3=_0x3a31f0[_0x37a0('0x9')](_0x355b75,{'column':_0x2dcf66,'includeAllSlots':!0x0});_0x40adf8=Array['from'](_0x46a4b3)['map'](_0x3e1b92=>_0x3e1b92['cell']);}_0x534b6f['model']['change'](_0x3495ed=>{_0x48fb40['markBlockFormat'](_0x3495ed[_0x37a0('0x27')](_0x237c7e),{'commandName':_0x1bc07a,'commandParams':[]},_0x40adf8,_0x1bc07a);});});}_0x48fb40[_0x37a0('0x41')][_0x37a0('0x3c')](_0x240845=>{if(_0x37a0('0x33')!=_0x240845[_0x37a0('0x43')]&&_0x37a0('0x3b')!=_0x240845[_0x37a0('0x43')])return;const {data:_0x55bb1f}=_0x240845;return _0x55bb1f&&'mergeTableCells'==_0x55bb1f['commandName']?{'type':_0x37a0('0x50'),'content':_0x3f68f3(_0xc612ec,_0x37a0('0x26'))}:void 0x0;}),_0x48fb40['_descriptionFactory'][_0x37a0('0x3c')](_0x4446cb=>{if('formatBlock'!=_0x4446cb[_0x37a0('0x43')]&&'formatInline'!=_0x4446cb[_0x37a0('0x43')])return;const {data:_0x4a9c78}=_0x4446cb;return _0x4a9c78?_0x37a0('0xf')==_0x4a9c78[_0x37a0('0x5')]?{'type':_0x37a0('0x50'),'content':_0x3f68f3(_0xc612ec,_0x37a0('0x4c'))}:_0x37a0('0x1d')==_0x4a9c78['commandName']?{'type':'format','content':_0x3f68f3(_0xc612ec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x59fc0e=_0x1c8e64[_0x37a0('0x38')]();for(const _0x4431c4 of['mergeTableCellUp',_0x37a0('0x36'),_0x37a0('0x42'),_0x37a0('0x37')])_0x48fb40[_0x37a0('0x7')][_0x37a0('0xa')](_0x37a0('0x33'),_0x4431c4,'accept',_0x59fc0e);for(const _0xd00c0 of[_0x37a0('0xf'),_0x37a0('0x1d')])_0x48fb40['_suggestionFactory'][_0x37a0('0xa')](_0x37a0('0x33'),_0xd00c0,_0x37a0('0x45'),_0x59fc0e);_0x48fb40[_0x37a0('0x7')][_0x37a0('0xa')](_0x37a0('0x33'),_0x37a0('0x1e'),_0x37a0('0x45'),_0x2c1dc3=>{_0x534b6f[_0x37a0('0x1')][_0x37a0('0x21')](_0x136f0a=>{const _0x26c758=Array['from'](_0x3c3e6e[_0x37a0('0xe')]())[_0x37a0('0x4d')](_0x4a8c71=>_0x4326da[_0x37a0('0x13')](_0x4a8c71));_0x136f0a['setSelection'](_0x2c1dc3),_0x534b6f[_0x37a0('0xb')][_0x37a0('0x3f')](_0x37a0('0x1e'))[_0x37a0('0x6')](),_0x534b6f[_0x37a0('0x32')](_0x37a0('0x1e'),{'forceDefaultExecution':!0x0});const _0x2d0592=_0x26c758[_0x37a0('0x2b')](_0x562296=>_0x37a0('0x11')!=_0x562296[_0x37a0('0x3d')][_0x37a0('0x4f')]);_0x2d0592[_0x37a0('0x2')]>0x0&&_0x136f0a['setSelection'](_0x2d0592);for(const _0x1b3bc7 of _0x26c758)_0x1b3bc7[_0x37a0('0x12')]();});});for(const _0x532aac of[_0x37a0('0x4e'),_0x37a0('0x42'),'mergeTableCellLeft',_0x37a0('0x36')]){const _0x4da633=_0x534b6f[_0x37a0('0xb')][_0x37a0('0x3f')](_0x532aac);_0x4da633['on'](_0x37a0('0x8'),(_0x126e5d,_0x2fe4de,_0x255d1b)=>{if(_0x255d1b){const _0x50c130=_0x534b6f[_0x37a0('0x1')][_0x37a0('0x25')]['selection']['getFirstPosition']()[_0x37a0('0x19')]()[_0x37a0('0x23')](_0x2715a3=>_0x2715a3['is']('element',_0x37a0('0x1b')));this['_areMergableCells'](_0x4da633[_0x37a0('0x35')],_0x50c130)||(_0x126e5d[_0x37a0('0xd')]=!0x1,_0x126e5d[_0x37a0('0x40')]());}},{'priority':_0x37a0('0x2c')});}}[_0x37a0('0x1a')](){const _0x4a2819=this[_0x37a0('0x48')][_0x37a0('0xb')]['get'](_0x37a0('0x1e')),_0x28a41b=this['editor'][_0x37a0('0x49')][_0x37a0('0x3f')](_0x37a0('0x1f'));if(!_0x4a2819[_0x37a0('0x2a')])return!0x1;const _0x24d482=_0x28a41b[_0x37a0('0x3e')](this[_0x37a0('0x48')][_0x37a0('0x1')]['document']['selection']);for(const _0x4c8792 of _0x24d482)for(const _0x59ec82 of _0x24d482)if(_0x4c8792!=_0x59ec82&&!this[_0x37a0('0x0')](_0x4c8792,_0x59ec82))return!0x1;return!0x0;}[_0x37a0('0x0')](_0x185cf2,_0x1b719e){const _0x4fe492=this[_0x37a0('0x48')]['plugins']['get']('TrackChangesEditing'),_0x147fe7=this[_0x37a0('0x48')]['model'][_0x37a0('0x27')](_0x185cf2),_0x24d886=this[_0x37a0('0x48')][_0x37a0('0x1')]['createRangeOn'](_0x1b719e),_0x160b66=new Set(),_0x3efcf7=new Set();for(const _0x415b49 of _0x4fe492[_0x37a0('0x34')]())if((_0x37a0('0x28')==_0x415b49[_0x37a0('0x43')]||'deletion'==_0x415b49['type']||_0x37a0('0x1e')==_0x415b49[_0x37a0('0x51')])&&_0x415b49[_0x37a0('0x18')])for(const _0x22eb12 of _0x415b49[_0x37a0('0xe')]())_0x22eb12[_0x37a0('0xc')](_0x147fe7,!0x0)&&_0x160b66[_0x37a0('0x2e')](_0x415b49['type']+':'+_0x415b49[_0x37a0('0x15')]['id']),_0x22eb12[_0x37a0('0xc')](_0x24d886,!0x0)&&_0x3efcf7[_0x37a0('0x2e')](_0x415b49[_0x37a0('0x43')]+':'+_0x415b49[_0x37a0('0x15')]['id']);if(_0x160b66[_0x37a0('0x20')]!=_0x3efcf7[_0x37a0('0x20')])return!0x1;for(const _0x1b83cb of _0x160b66)if(!_0x3efcf7[_0x37a0('0x39')](_0x1b83cb))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 _0x1f6b=['_descriptionFactory','ELEMENT_TABLE_OF_CONTENTS','registerElementLabel','locale','TrackChangesEditing','tableOfContents','commands','enableCommand','get','afterInit','editor','plugins','insertTableOfContents'];(function(_0x1465e1,_0x1f6b3d){const _0x39129f=function(_0x3b1fbd){while(--_0x3b1fbd){_0x1465e1['push'](_0x1465e1['shift']());}};_0x39129f(++_0x1f6b3d);}(_0x1f6b,0xb9));const _0x3912=function(_0x1465e1,_0x1f6b3d){_0x1465e1=_0x1465e1-0x0;let _0x39129f=_0x1f6b[_0x1465e1];return _0x39129f;};import{Plugin as _0x48c8ca}from'ckeditor5/src/core';import{getTranslation as _0x26a220}from'../utils/common-translations';export default class Ct extends _0x48c8ca{[_0x3912('0x6')](){const _0x15c912=this[_0x3912('0x7')];if(!_0x15c912[_0x3912('0x3')][_0x3912('0x5')](_0x3912('0x9')))return;_0x15c912[_0x3912('0x8')][_0x3912('0x5')](_0x3912('0x1'))[_0x3912('0x4')](_0x3912('0x9'));const _0x1ad5e7=_0x15c912['plugins']['get']('TrackChangesEditing'),_0x32b3ed=_0x15c912[_0x3912('0x0')];_0x1ad5e7[_0x3912('0xa')][_0x3912('0xc')](_0x3912('0x2'),_0xf42348=>_0x26a220(_0x32b3ed,_0x3912('0xb'),_0xf42348));}}
23
+ const _0x4ee4=['enableCommand','tableOfContents','editor','insertTableOfContents','afterInit','TrackChangesEditing','_descriptionFactory','get','registerElementLabel','plugins'];(function(_0x5cdee6,_0x4ee456){const _0xfebd8e=function(_0x5153b6){while(--_0x5153b6){_0x5cdee6['push'](_0x5cdee6['shift']());}};_0xfebd8e(++_0x4ee456);}(_0x4ee4,0x1ea));const _0xfebd=function(_0x5cdee6,_0x4ee456){_0x5cdee6=_0x5cdee6-0x0;let _0xfebd8e=_0x4ee4[_0x5cdee6];return _0xfebd8e;};import{Plugin as _0x5eea60}from'ckeditor5/src/core.js';import{getTranslation as _0x388320}from'../utils/common-translations.js';export default class _t extends _0x5eea60{[_0xfebd('0x4')](){const _0x5affec=this[_0xfebd('0x2')];if(!_0x5affec['commands'][_0xfebd('0x7')](_0xfebd('0x3')))return;_0x5affec[_0xfebd('0x9')][_0xfebd('0x7')](_0xfebd('0x5'))[_0xfebd('0x0')]('insertTableOfContents');const _0x94fcf8=_0x5affec[_0xfebd('0x9')][_0xfebd('0x7')](_0xfebd('0x5')),_0x37fedb=_0x5affec['locale'];_0x94fcf8[_0xfebd('0x6')][_0xfebd('0x8')](_0xfebd('0x1'),_0x196f32=>_0x388320(_0x37fedb,'ELEMENT_TABLE_OF_CONTENTS',_0x196f32));}}
@@ -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 _0x1ac7=['enableCommand','batch','*Format:*\x20change\x20table\x20cell\x20properties','tableWidth','get','has','nodeAfter','_suggestionFactory','registerDescriptionCallback','TrackChangesEditing','tableCellProperties','model','table','selection','tableHeight','discard','formatBlock','getFirstPosition','getSuggestionCallback','editor','handleDiscardAction','tableCellPadding','_descriptionFactory','_handlePropertyChange','tableBorderStyle','getAttribute','format','registerCustomCallback','TablePropertiesEditing','getContainedElement','tableProperties','tableCellWidth','getSuggestions','removeAttribute','tableBackgroundColor','tableCellHeight','enqueueChange','accept','handleSuggestionDescription','afterInit','data','document','join','plugins','tableCellHorizontalAlignment','locale','TableUtils','TableCellPropertiesEditing','markBlockFormat','tableBorderColor','subType','tableCellBorderColor'];(function(_0x432f1a,_0x1ac7a1){const _0x523dc4=function(_0x5a1688){while(--_0x5a1688){_0x432f1a['push'](_0x432f1a['shift']());}};_0x523dc4(++_0x1ac7a1);}(_0x1ac7,0x17e));const _0x523d=function(_0x432f1a,_0x1ac7a1){_0x432f1a=_0x432f1a-0x0;let _0x523dc4=_0x1ac7[_0x432f1a];return _0x523dc4;};import{Plugin as _0x890481}from'ckeditor5/src/core';import{getTranslation as _0x16f514}from'../utils/common-translations';export default class Mt extends _0x890481{constructor(_0x476054){super(_0x476054),this[_0x523d('0xc')]=[_0x523d('0x1f'),_0x523d('0x6'),'tableBorderWidth','tableAlignment',_0x523d('0x25'),_0x523d('0x30'),_0x523d('0x10')],this[_0x523d('0x2c')]=[_0x523d('0x21'),'tableCellBorderStyle','tableCellBorderWidth',_0x523d('0x3'),_0x523d('0xd'),_0x523d('0x11'),'tableCellBackgroundColor',_0x523d('0x1a'),'tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}[_0x523d('0x15')](){const _0x5297b9=this[_0x523d('0x1')][_0x523d('0x19')]['get'](_0x523d('0x2b'));if(this[_0x523d('0x1')][_0x523d('0x19')]['has'](_0x523d('0xa'))){for(const _0x32be83 of this[_0x523d('0xc')])_0x5297b9['enableCommand'](_0x32be83,(_0x4c13db,_0x241ad2)=>{const _0x32637e=this[_0x523d('0x1')][_0x523d('0x2d')][_0x523d('0x17')][_0x523d('0x2f')][_0x523d('0x33')]()['findAncestor'](_0x523d('0x2e'));this['_handlePropertyChange'](_0x32be83,[_0x32637e],this[_0x523d('0xc')],_0x523d('0xc'),_0x4c13db,_0x241ad2);});_0x5297b9['_suggestionFactory'][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0xc'),'accept',_0x5297b9[_0x523d('0x29')]['getSuggestionCallback'](_0x523d('0x32'),null,'discard')),_0x5297b9['_suggestionFactory'][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0xc'),_0x523d('0x31'),(_0x1f1e1e,_0x4047cb)=>this[_0x523d('0x2')](this[_0x523d('0xc')],_0x1f1e1e,_0x4047cb)),_0x5297b9[_0x523d('0x29')][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0xc'),'join',()=>!0x1);}if(this[_0x523d('0x1')][_0x523d('0x19')][_0x523d('0x27')](_0x523d('0x1d'))){for(const _0x1d0d22 of this[_0x523d('0x2c')])_0x5297b9[_0x523d('0x22')](_0x1d0d22,(_0x1641c3,_0x3d2060)=>{const _0x35d13f=this[_0x523d('0x1')]['plugins'][_0x523d('0x26')](_0x523d('0x1c'))['getSelectionAffectedTableCells'](this[_0x523d('0x1')]['model'][_0x523d('0x17')]['selection']);this['_handlePropertyChange'](_0x1d0d22,_0x35d13f,this['tableCellProperties'],'tableCellProperties',_0x1641c3,_0x3d2060);});_0x5297b9[_0x523d('0x29')]['registerCustomCallback'](_0x523d('0x32'),_0x523d('0x2c'),_0x523d('0x13'),_0x5297b9[_0x523d('0x29')][_0x523d('0x0')](_0x523d('0x32'),null,'discard')),_0x5297b9[_0x523d('0x29')][_0x523d('0x9')](_0x523d('0x32'),'tableCellProperties',_0x523d('0x31'),(_0x1227d6,_0x14ca83)=>this[_0x523d('0x2')](this[_0x523d('0x2c')],_0x1227d6,_0x14ca83)),_0x5297b9['_suggestionFactory'][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0x2c'),_0x523d('0x18'),()=>!0x1);}_0x5297b9[_0x523d('0x4')][_0x523d('0x2a')](_0x379646=>this[_0x523d('0x14')](_0x379646));}[_0x523d('0x5')](_0xa574e0,_0x2d5b46,_0x52fd71,_0x22749e,_0x3597cc,_0x5aaa70){const _0x4450e6=this['editor']['plugins'][_0x523d('0x26')](_0x523d('0x2b'));this[_0x523d('0x1')]['model'][_0x523d('0x12')](_0x5aaa70[_0x523d('0x23')],()=>{for(const _0x5e2d9d of _0x2d5b46){if(this['_getSuggestion'](_0x5e2d9d,_0x22749e))_0x3597cc(_0x5aaa70);else{const _0xbfcbee={};for(const _0x3e8fa8 of _0x52fd71){const _0x3e4cec=_0x5e2d9d[_0x523d('0x7')](_0x3e8fa8);void 0x0!==_0x3e4cec&&(_0xbfcbee[_0x3e8fa8]=_0x3e4cec);}_0x3597cc(_0x5aaa70),_0x4450e6[_0x523d('0x1e')](_0x5e2d9d,{'commandParams':[_0xbfcbee]},[],_0x22749e);}}});}[_0x523d('0x2')](_0x5b7e39,_0x5d1b58,_0x15c644){const _0x5ae496=_0x5d1b58[0x0]['start'][_0x523d('0x28')],_0x5965bd=_0x15c644['commandParams'][0x0];this['editor'][_0x523d('0x2d')]['change'](_0x203910=>{for(const _0xbabbe3 of _0x5b7e39)void 0x0!==_0x5965bd[_0xbabbe3]?_0x203910['setAttribute'](_0xbabbe3,_0x5965bd[_0xbabbe3],_0x5ae496):_0x203910[_0x523d('0xf')](_0xbabbe3,_0x5ae496);});}['handleSuggestionDescription'](_0x58734a){if(_0x58734a[_0x523d('0x16')])switch(_0x58734a[_0x523d('0x20')]){case _0x523d('0xc'):return{'type':_0x523d('0x8'),'content':_0x16f514(this[_0x523d('0x1')][_0x523d('0x1b')],'*Format:*\x20change\x20table\x20properties')};case _0x523d('0x2c'):return{'type':_0x523d('0x8'),'content':_0x16f514(this['editor'][_0x523d('0x1b')],_0x523d('0x24'))};}}['_getSuggestion'](_0x489a30,_0x206da1){const _0x522fea=this['editor'][_0x523d('0x19')][_0x523d('0x26')](_0x523d('0x2b'));for(const _0x43f9db of _0x522fea[_0x523d('0xe')]({'skipNotAttached':!0x0})){const _0x30fd14=_0x43f9db[_0x523d('0xb')]();if(_0x43f9db[_0x523d('0x20')]===_0x206da1&&_0x30fd14===_0x489a30)return _0x43f9db;}return null;}}
23
+ const _0x2ae8=['tableCellWidth','_suggestionFactory','batch','get','format','getSuggestionCallback','enqueueChange','start','formatBlock','markBlockFormat','editor','subType','afterInit','setAttribute','plugins','pluginName','nodeAfter','join','discard','tableCellPadding','tableCellProperties','TablePropertiesEditing','tableBorderWidth','data','tableCellVerticalAlignment','tableBorderColor','tableCellBorderWidth','registerCustomCallback','tableCellBackgroundColor','getFirstPosition','tableWidth','document','_handlePropertyChange','tableCellHeight','_descriptionFactory','_getSuggestion','accept','tableProperties','TableCellPropertiesEditing','has','*Format:*\x20change\x20table\x20cell\x20properties','TrackChangesEditing','getAttribute','enableCommand','handleDiscardAction','registerDescriptionCallback','findAncestor','handleSuggestionDescription','getContainedElement','model','getSelectionAffectedTableCells','commandParams','table'];(function(_0x1187b5,_0x2ae8b4){const _0x1aff42=function(_0x1459dc){while(--_0x1459dc){_0x1187b5['push'](_0x1187b5['shift']());}};_0x1aff42(++_0x2ae8b4);}(_0x2ae8,0xad));const _0x1aff=function(_0x1187b5,_0x2ae8b4){_0x1187b5=_0x1187b5-0x0;let _0x1aff42=_0x2ae8[_0x1187b5];return _0x1aff42;};import{Plugin as _0x32e71a}from'ckeditor5/src/core.js';import{getTranslation as _0x18845f}from'../utils/common-translations.js';export default class Mt extends _0x32e71a{constructor(_0x32a43d){super(_0x32a43d),this[_0x1aff('0x17')]=[_0x1aff('0xb'),'tableBorderStyle',_0x1aff('0x8'),'tableAlignment',_0x1aff('0x10'),'tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle',_0x1aff('0xc'),_0x1aff('0x5'),_0x1aff('0x27'),_0x1aff('0x13'),_0x1aff('0xe'),'tableCellHorizontalAlignment',_0x1aff('0xa')];}static get[_0x1aff('0x1')](){return'TrackChangesTableProperties';}[_0x1aff('0x33')](){const _0x1f6e72=this[_0x1aff('0x31')]['plugins'][_0x1aff('0x2a')](_0x1aff('0x1b'));if(this[_0x1aff('0x31')]['plugins'][_0x1aff('0x19')](_0x1aff('0x7'))){for(const _0x2f7f4b of this['tableProperties'])_0x1f6e72[_0x1aff('0x1d')](_0x2f7f4b,(_0x30c3f9,_0x1d65b8)=>{const _0x92e0f2=this[_0x1aff('0x31')][_0x1aff('0x23')][_0x1aff('0x11')]['selection'][_0x1aff('0xf')]()[_0x1aff('0x20')](_0x1aff('0x26'));this[_0x1aff('0x12')](_0x2f7f4b,[_0x92e0f2],this[_0x1aff('0x17')],'tableProperties',_0x30c3f9,_0x1d65b8);});_0x1f6e72[_0x1aff('0x28')][_0x1aff('0xd')]('formatBlock','tableProperties','accept',_0x1f6e72[_0x1aff('0x28')][_0x1aff('0x2c')](_0x1aff('0x2f'),null,_0x1aff('0x4'))),_0x1f6e72['_suggestionFactory'][_0x1aff('0xd')](_0x1aff('0x2f'),'tableProperties',_0x1aff('0x4'),(_0x4bda47,_0x571d76)=>this[_0x1aff('0x1e')](this[_0x1aff('0x17')],_0x4bda47,_0x571d76)),_0x1f6e72[_0x1aff('0x28')][_0x1aff('0xd')](_0x1aff('0x2f'),_0x1aff('0x17'),_0x1aff('0x3'),()=>!0x1);}if(this[_0x1aff('0x31')][_0x1aff('0x0')][_0x1aff('0x19')](_0x1aff('0x18'))){for(const _0x34258f of this[_0x1aff('0x6')])_0x1f6e72[_0x1aff('0x1d')](_0x34258f,(_0x29d7b4,_0x31bbce)=>{const _0x1a752d=this['editor'][_0x1aff('0x0')][_0x1aff('0x2a')]('TableUtils')[_0x1aff('0x24')](this[_0x1aff('0x31')][_0x1aff('0x23')][_0x1aff('0x11')]['selection']);this[_0x1aff('0x12')](_0x34258f,_0x1a752d,this['tableCellProperties'],_0x1aff('0x6'),_0x29d7b4,_0x31bbce);});_0x1f6e72['_suggestionFactory'][_0x1aff('0xd')]('formatBlock','tableCellProperties',_0x1aff('0x16'),_0x1f6e72[_0x1aff('0x28')][_0x1aff('0x2c')](_0x1aff('0x2f'),null,_0x1aff('0x4'))),_0x1f6e72[_0x1aff('0x28')]['registerCustomCallback'](_0x1aff('0x2f'),'tableCellProperties',_0x1aff('0x4'),(_0x45d8ac,_0x5d344c)=>this[_0x1aff('0x1e')](this[_0x1aff('0x6')],_0x45d8ac,_0x5d344c)),_0x1f6e72[_0x1aff('0x28')][_0x1aff('0xd')](_0x1aff('0x2f'),_0x1aff('0x6'),_0x1aff('0x3'),()=>!0x1);}_0x1f6e72[_0x1aff('0x14')][_0x1aff('0x1f')](_0x2e11cf=>this[_0x1aff('0x21')](_0x2e11cf));}[_0x1aff('0x12')](_0x4b65df,_0x530b8e,_0x3edb15,_0x517a54,_0x57ef68,_0x23ef32){const _0x9f0c43=this[_0x1aff('0x31')][_0x1aff('0x0')][_0x1aff('0x2a')](_0x1aff('0x1b'));this[_0x1aff('0x31')][_0x1aff('0x23')][_0x1aff('0x2d')](_0x23ef32[_0x1aff('0x29')],()=>{for(const _0x1043aa of _0x530b8e){if(this[_0x1aff('0x15')](_0x1043aa,_0x517a54))_0x57ef68(_0x23ef32);else{const _0x13ef6b={};for(const _0x432fcd of _0x3edb15){const _0x112951=_0x1043aa[_0x1aff('0x1c')](_0x432fcd);void 0x0!==_0x112951&&(_0x13ef6b[_0x432fcd]=_0x112951);}_0x57ef68(_0x23ef32),_0x9f0c43[_0x1aff('0x30')](_0x1043aa,{'commandParams':[_0x13ef6b]},[],_0x517a54);}}});}[_0x1aff('0x1e')](_0x1e59b4,_0xc271d6,_0x2f1118){const _0x1a62f0=_0xc271d6[0x0][_0x1aff('0x2e')][_0x1aff('0x2')],_0x3dc6dd=_0x2f1118[_0x1aff('0x25')][0x0];this[_0x1aff('0x31')][_0x1aff('0x23')]['change'](_0x84fd1=>{for(const _0x4938b6 of _0x1e59b4)void 0x0!==_0x3dc6dd[_0x4938b6]?_0x84fd1[_0x1aff('0x34')](_0x4938b6,_0x3dc6dd[_0x4938b6],_0x1a62f0):_0x84fd1['removeAttribute'](_0x4938b6,_0x1a62f0);});}[_0x1aff('0x21')](_0x621154){if(_0x621154[_0x1aff('0x9')])switch(_0x621154[_0x1aff('0x32')]){case'tableProperties':return{'type':_0x1aff('0x2b'),'content':_0x18845f(this[_0x1aff('0x31')]['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':_0x18845f(this[_0x1aff('0x31')]['locale'],_0x1aff('0x1a'))};}}[_0x1aff('0x15')](_0x1b1484,_0x59dad0){const _0x440a55=this[_0x1aff('0x31')][_0x1aff('0x0')][_0x1aff('0x2a')]('TrackChangesEditing');for(const _0x510e77 of _0x440a55['getSuggestions']({'skipNotAttached':!0x0})){const _0x183dda=_0x510e77[_0x1aff('0x22')]();if(_0x510e77[_0x1aff('0x32')]===_0x59dad0&&_0x183dda===_0x1b1484)return _0x510e77;}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 _0x2828=['afterInit','TrackChangesEditing','has','Template','enableCommand','plugins','get'];(function(_0x588cfb,_0x282820){const _0x4b76e2=function(_0x503933){while(--_0x503933){_0x588cfb['push'](_0x588cfb['shift']());}};_0x4b76e2(++_0x282820);}(_0x2828,0x1d8));const _0x4b76=function(_0x588cfb,_0x282820){_0x588cfb=_0x588cfb-0x0;let _0x4b76e2=_0x2828[_0x588cfb];return _0x4b76e2;};import{Plugin as _0x421c51}from'ckeditor5/src/core';export default class vt extends _0x421c51{[_0x4b76('0x4')](){const _0x2d4cfe=this['editor'];_0x2d4cfe[_0x4b76('0x2')][_0x4b76('0x6')](_0x4b76('0x0'))&&_0x2d4cfe[_0x4b76('0x2')][_0x4b76('0x3')](_0x4b76('0x5'))[_0x4b76('0x1')]('insertTemplate');}}
23
+ const _0x1b9e=['get','has','plugins','editor','afterInit','enableCommand'];(function(_0x1daf10,_0x1b9ecd){const _0x4ae7d3=function(_0x3880ea){while(--_0x3880ea){_0x1daf10['push'](_0x1daf10['shift']());}};_0x4ae7d3(++_0x1b9ecd);}(_0x1b9e,0xe0));const _0x4ae7=function(_0x1daf10,_0x1b9ecd){_0x1daf10=_0x1daf10-0x0;let _0x4ae7d3=_0x1b9e[_0x1daf10];return _0x4ae7d3;};import{Plugin as _0x5a8f23}from'ckeditor5/src/core.js';export default class vt extends _0x5a8f23{[_0x4ae7('0x2')](){const _0x324b04=this[_0x4ae7('0x1')];_0x324b04[_0x4ae7('0x0')][_0x4ae7('0x5')]('Template')&&_0x324b04['plugins'][_0x4ae7('0x4')]('TrackChangesEditing')[_0x4ae7('0x3')]('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 _0x5e95=['schema','_splitMarkerName','has','isEqual','document','editor','isCollapsed','end','afterInit','suggestion','start','model','ELEMENT_TITLE','removeMarker','getChangedMarkers','createRange','forward','locale','title-content','from','updateMarker','element'];(function(_0x331b3b,_0x5e950c){const _0x5a9ba6=function(_0x45c03f){while(--_0x45c03f){_0x331b3b['push'](_0x331b3b['shift']());}};_0x5a9ba6(++_0x5e950c);}(_0x5e95,0x13a));const _0x5a9b=function(_0x331b3b,_0x5e950c){_0x331b3b=_0x331b3b-0x0;let _0x5a9ba6=_0x5e95[_0x331b3b];return _0x5a9ba6;};import{Plugin as _0x3f245a}from'ckeditor5/src/core';import{getTranslation as _0x61b65d}from'../utils/common-translations';export default class _t extends _0x3f245a{[_0x5a9b('0x2')](){const _0x14a488=this[_0x5a9b('0x15')];if(!_0x14a488['plugins'][_0x5a9b('0x12')]('Title'))return;const _0x43b8ac=_0x14a488['plugins']['get']('TrackChangesEditing');_0x43b8ac['_descriptionFactory']['registerElementLabel'](_0x5a9b('0xc'),()=>_0x61b65d(_0x14a488[_0x5a9b('0xb')],_0x5a9b('0x6'))),_0x14a488[_0x5a9b('0x5')][_0x5a9b('0x14')]['registerPostFixer'](_0x2cd45a=>{let _0x3b9b55=!0x1;const _0x57180a=Array[_0x5a9b('0xd')](_0x14a488[_0x5a9b('0x5')]['document']['differ'][_0x5a9b('0x8')]());for(const {name:_0x1bec36,data:_0x3ae090}of _0x57180a){const {group:_0xdc6af9}=_0x43b8ac[_0x5a9b('0x11')](_0x1bec36);if(_0x5a9b('0x3')!==_0xdc6af9||!_0x3ae090['newRange'])continue;const _0x1c55c6=_0x3ae090['newRange'],_0x74aab7=_0x1c55c6['end']['nodeBefore'];if(!_0x74aab7||!_0x74aab7['is'](_0x5a9b('0xf'),_0x5a9b('0xc')))continue;if(!_0x1c55c6[_0x5a9b('0x4')]['isTouching'](_0x1c55c6[_0x5a9b('0x1')]))continue;const _0x168464=_0x14a488[_0x5a9b('0x5')][_0x5a9b('0x10')]['getNearestSelectionRange'](_0x1c55c6[_0x5a9b('0x1')],_0x5a9b('0xa'));if(_0x168464&&_0x168464[_0x5a9b('0x0')]){const _0xf59709=_0x2cd45a[_0x5a9b('0x9')](_0x1c55c6[_0x5a9b('0x4')],_0x168464[_0x5a9b('0x4')]);_0xf59709[_0x5a9b('0x13')](_0x1c55c6)||(_0x2cd45a[_0x5a9b('0xe')](_0x1bec36,{'range':_0xf59709}),_0x3b9b55=!0x0);}_0x3b9b55||(_0x2cd45a[_0x5a9b('0x7')](_0x1bec36),_0x3b9b55=!0x0);}return _0x3b9b55;});}}
23
+ const _0x2778=['schema','document','has','editor','differ','_splitMarkerName','TrackChangesEditing','registerElementLabel','createRange','afterInit','getChangedMarkers','forward','element','isEqual','from','isTouching','end','title-content','ELEMENT_TITLE','registerPostFixer','isCollapsed','getNearestSelectionRange','model','start','suggestion','newRange','plugins'];(function(_0x4e77fc,_0x277838){const _0x306053=function(_0x115f91){while(--_0x115f91){_0x4e77fc['push'](_0x4e77fc['shift']());}};_0x306053(++_0x277838);}(_0x2778,0x1ad));const _0x3060=function(_0x4e77fc,_0x277838){_0x4e77fc=_0x4e77fc-0x0;let _0x306053=_0x2778[_0x4e77fc];return _0x306053;};import{Plugin as _0x3f2bf0}from'ckeditor5/src/core.js';import{getTranslation as _0xcc208c}from'../utils/common-translations.js';export default class Ct extends _0x3f2bf0{[_0x3060('0xc')](){const _0x3aee76=this[_0x3060('0x6')];if(!_0x3aee76[_0x3060('0x2')][_0x3060('0x5')]('Title'))return;const _0x177de1=_0x3aee76[_0x3060('0x2')]['get'](_0x3060('0x9'));_0x177de1['_descriptionFactory'][_0x3060('0xa')](_0x3060('0x14'),()=>_0xcc208c(_0x3aee76['locale'],_0x3060('0x15'))),_0x3aee76[_0x3060('0x19')][_0x3060('0x4')][_0x3060('0x16')](_0x1ab9ba=>{let _0x2ec484=!0x1;const _0x5e5fda=Array[_0x3060('0x11')](_0x3aee76[_0x3060('0x19')][_0x3060('0x4')][_0x3060('0x7')][_0x3060('0xd')]());for(const {name:_0x37d610,data:_0x4396d8}of _0x5e5fda){const {group:_0xc928ee}=_0x177de1[_0x3060('0x8')](_0x37d610);if(_0x3060('0x0')!==_0xc928ee||!_0x4396d8[_0x3060('0x1')])continue;const _0x1d5a2c=_0x4396d8[_0x3060('0x1')],_0x774f2d=_0x1d5a2c[_0x3060('0x13')]['nodeBefore'];if(!_0x774f2d||!_0x774f2d['is'](_0x3060('0xf'),'title-content'))continue;if(!_0x1d5a2c[_0x3060('0x1a')][_0x3060('0x12')](_0x1d5a2c[_0x3060('0x13')]))continue;const _0x145546=_0x3aee76[_0x3060('0x19')][_0x3060('0x3')][_0x3060('0x18')](_0x1d5a2c['end'],_0x3060('0xe'));if(_0x145546&&_0x145546[_0x3060('0x17')]){const _0x2574a0=_0x1ab9ba[_0x3060('0xb')](_0x1d5a2c['start'],_0x145546[_0x3060('0x1a')]);_0x2574a0[_0x3060('0x10')](_0x1d5a2c)||(_0x1ab9ba['updateMarker'](_0x37d610,{'range':_0x2574a0}),_0x2ec484=!0x0);}_0x2ec484||(_0x1ab9ba['removeMarker'](_0x37d610),_0x2ec484=!0x0);}return _0x2ec484;});}}
@@ -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 _0x1a11=['undo','get','enableCommand','has','TrackChangesEditing','editor','afterInit','plugins'];(function(_0x3c54cb,_0x1a11ad){const _0x31b686=function(_0x1fd816){while(--_0x1fd816){_0x3c54cb['push'](_0x3c54cb['shift']());}};_0x31b686(++_0x1a11ad);}(_0x1a11,0x161));const _0x31b6=function(_0x3c54cb,_0x1a11ad){_0x3c54cb=_0x3c54cb-0x0;let _0x31b686=_0x1a11[_0x3c54cb];return _0x31b686;};import{Plugin as _0x5f1e27}from'ckeditor5/src/core';export default class Dt extends _0x5f1e27{[_0x31b6('0x5')](){const _0xe299cf=this[_0x31b6('0x4')],_0x4bd904=_0xe299cf[_0x31b6('0x6')][_0x31b6('0x0')](_0x31b6('0x3'));_0xe299cf[_0x31b6('0x6')][_0x31b6('0x2')]('UndoEditing')&&(_0x4bd904['enableCommand'](_0x31b6('0x7')),_0x4bd904[_0x31b6('0x1')]('redo'));}}
23
+ const _0x25a3=['undo','editor','UndoEditing','enableCommand','plugins','has','TrackChangesEditing','afterInit','get'];(function(_0x4673bb,_0x25a30a){const _0x784e22=function(_0x3b0108){while(--_0x3b0108){_0x4673bb['push'](_0x4673bb['shift']());}};_0x784e22(++_0x25a30a);}(_0x25a3,0x18c));const _0x784e=function(_0x4673bb,_0x25a30a){_0x4673bb=_0x4673bb-0x0;let _0x784e22=_0x25a3[_0x4673bb];return _0x784e22;};import{Plugin as _0x10cb31}from'ckeditor5/src/core.js';export default class Dt extends _0x10cb31{[_0x784e('0x7')](){const _0x40c14a=this[_0x784e('0x1')],_0x5aa6f7=_0x40c14a[_0x784e('0x4')][_0x784e('0x8')](_0x784e('0x6'));_0x40c14a['plugins'][_0x784e('0x5')](_0x784e('0x2'))&&(_0x5aa6f7[_0x784e('0x3')](_0x784e('0x0')),_0x5aa6f7['enableCommand']('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 _0x24ba=['plugins','writer','activeMarkers','push','schema','getAttribute','getWalker','isAtEnd','ck-suggestion-marker--active','mapper','addClass','isContent','consumable','name','element','nextSibling','createUIElement','test','insert','type','elementEnd','get','markerName','getItems','isLimit','createRangeOn','toViewPosition','includes','parent','markerRange','previousPosition','listItem','item','getCustomProperty'];(function(_0x573cd9,_0x24ba71){const _0x4920d1=function(_0x42eb05){while(--_0x42eb05){_0x573cd9['push'](_0x573cd9['shift']());}};_0x4920d1(++_0x24ba71);}(_0x24ba,0x1d2));const _0x4920=function(_0x573cd9,_0x24ba71){_0x573cd9=_0x573cd9-0x0;let _0x4920d1=_0x24ba[_0x573cd9];return _0x4920d1;};export function getRangesWithAttribute(_0x417211,_0x1f5a50,_0xd96e01){const _0x1bb612=[];for(const _0x2a5d75 of _0x1f5a50[_0x4920('0x21')]())_0x2a5d75['hasAttribute'](_0x417211)&&_0x1bb612[_0x4920('0xd')](_0xd96e01[_0x4920('0x1')](_0x2a5d75));return _0x1bb612;}export function getElementsAffectedByListItemRename(_0x4775ac){const _0xcf7fb3=[];if(_0x4775ac['is'](_0x4920('0x18'),_0x4920('0x7'))){let _0x4a20a1=_0x4775ac[_0x4920('0x19')];for(;_0x4a20a1&&_0x4a20a1['is'](_0x4920('0x18'),_0x4920('0x7'))&&_0x4a20a1[_0x4920('0xf')]('listIndent')>0x0;)_0xcf7fb3[_0x4920('0xd')](_0x4a20a1),_0x4a20a1=_0x4a20a1['nextSibling'];}return _0xcf7fb3;}export function downcastSplitMergeMarker(_0x1320f8,_0x875cd6,{showActiveMarker:_0x54e40b=!0x0}={}){const _0x1aad58=_0x1320f8[_0x4920('0xa')][_0x4920('0x1f')]('TrackChangesEditing');return(_0x2f42e2,_0x33a0cc,_0x2312db)=>{if(!_0x2312db[_0x4920('0x16')][_0x4920('0x1b')](_0x33a0cc['markerRange'],_0x2f42e2[_0x4920('0x17')]))return;const _0x5887da=_0x33a0cc[_0x4920('0x5')][_0x4920('0x10')](),_0x4146d3=_0x33a0cc[_0x4920('0x5')]['start'],_0x3a9cde=_0x1320f8['model'][_0x4920('0xe')];let _0x4d1db5=null,_0x4f7b9f=null,_0x596b7f=!0x1,_0x5a4591=!0x1;for(const _0x408a3c of _0x5887da){const _0x4b44cc=_0x408a3c[_0x4920('0x8')];_0x596b7f=_0x596b7f||_0x3a9cde[_0x4920('0x15')](_0x4b44cc);const _0x342862=_0x2312db[_0x4920('0x13')]['toViewElement'](_0x4b44cc);if(_0x342862&&_0x342862[_0x4920('0x9')]('addHighlight'))return;_0x4920('0x1e')==_0x408a3c[_0x4920('0x1d')]&&(_0x3a9cde['isBlock'](_0x4b44cc)&&!_0x3a9cde[_0x4920('0x0')](_0x4b44cc)&&(_0x4b44cc[_0x4920('0x19')]||_0x4146d3[_0x4920('0x11')]?_0x4d1db5&&_0x4d1db5[_0x4920('0x4')]==_0x4b44cc||(_0x4d1db5=_0x4b44cc,_0x527016(_0x408a3c[_0x4920('0x6')]),_0x5a4591=!0x0):_0x4f7b9f=_0x4f7b9f||_0x408a3c[_0x4920('0x6')]));}function _0x527016(_0x4d97fa){const _0x96e38d=_0x2312db[_0x4920('0xb')][_0x4920('0x1a')]('span',{'class':'ck-suggestion-marker-'+_0x875cd6}),_0x2db5df=_0x2312db[_0x4920('0x13')][_0x4920('0x2')](_0x4d97fa);_0x54e40b&&_0x1aad58[_0x4920('0xc')][_0x4920('0x3')](_0x33a0cc[_0x4920('0x20')])&&_0x2312db['writer'][_0x4920('0x14')](_0x4920('0x12'),_0x96e38d),_0x2312db[_0x4920('0xb')][_0x4920('0x1c')](_0x2db5df,_0x96e38d),_0x2312db[_0x4920('0x13')]['bindElementToMarker'](_0x96e38d,_0x33a0cc[_0x4920('0x20')]);}_0x596b7f||_0x5a4591||!_0x4f7b9f||_0x527016(_0x4f7b9f);};}
23
+ const _0x2bbc=['ck-suggestion-marker-','nextSibling','model','type','markerRange','getWalker','elementEnd','listItem','consumable','isContent','mapper','activeMarkers','ck-suggestion-marker--active','addClass','getAttribute','test','bindElementToMarker','isLimit','item','writer','element','markerName','includes','schema','previousPosition','getCustomProperty','toViewElement','isAtEnd','span','getItems','addHighlight','plugins'];(function(_0x449372,_0x2bbccc){const _0x15a561=function(_0x5cfd32){while(--_0x5cfd32){_0x449372['push'](_0x449372['shift']());}};_0x15a561(++_0x2bbccc);}(_0x2bbc,0x184));const _0x15a5=function(_0x449372,_0x2bbccc){_0x449372=_0x449372-0x0;let _0x15a561=_0x2bbc[_0x449372];return _0x15a561;};export function getRangesWithAttribute(_0x5d3e53,_0xc1284b,_0x11f94f){const _0x1955cb=[];for(const _0x4dfbac of _0xc1284b[_0x15a5('0x19')]())_0x4dfbac['hasAttribute'](_0x5d3e53)&&_0x1955cb['push'](_0x11f94f['createRangeOn'](_0x4dfbac));return _0x1955cb;}export function getElementsAffectedByListItemRename(_0x3cb511){const _0x1b2cdb=[];if(_0x3cb511['is']('element',_0x15a5('0x3'))){let _0x3e295b=_0x3cb511['nextSibling'];for(;_0x3e295b&&_0x3e295b['is'](_0x15a5('0x10'),_0x15a5('0x3'))&&_0x3e295b[_0x15a5('0xa')]('listIndent')>0x0;)_0x1b2cdb['push'](_0x3e295b),_0x3e295b=_0x3e295b['nextSibling'];}return _0x1b2cdb;}export function downcastSplitMergeMarker(_0x512bd8,_0x20790b,{showActiveMarker:_0x14eab8=!0x0}={}){const _0x561ff0=_0x512bd8[_0x15a5('0x1b')]['get']('TrackChangesEditing');return(_0x5a8533,_0x205f7c,_0x51731a)=>{if(!_0x51731a[_0x15a5('0x4')][_0x15a5('0xb')](_0x205f7c[_0x15a5('0x0')],_0x5a8533['name']))return;const _0x5f2a9c=_0x205f7c[_0x15a5('0x0')][_0x15a5('0x1')](),_0x25b640=_0x205f7c[_0x15a5('0x0')]['start'],_0x114e3f=_0x512bd8[_0x15a5('0x1e')][_0x15a5('0x13')];let _0x39a6ec=null,_0x3f985c=null,_0x5e2191=!0x1,_0x108943=!0x1;for(const _0x102ce8 of _0x5f2a9c){const _0xb59ebc=_0x102ce8[_0x15a5('0xe')];_0x5e2191=_0x5e2191||_0x114e3f[_0x15a5('0x5')](_0xb59ebc);const _0x2ee16d=_0x51731a[_0x15a5('0x6')][_0x15a5('0x16')](_0xb59ebc);if(_0x2ee16d&&_0x2ee16d[_0x15a5('0x15')](_0x15a5('0x1a')))return;_0x15a5('0x2')==_0x102ce8[_0x15a5('0x1f')]&&(_0x114e3f['isBlock'](_0xb59ebc)&&!_0x114e3f[_0x15a5('0xd')](_0xb59ebc)&&(_0xb59ebc[_0x15a5('0x1d')]||_0x25b640[_0x15a5('0x17')]?_0x39a6ec&&_0x39a6ec['parent']==_0xb59ebc||(_0x39a6ec=_0xb59ebc,_0x36f874(_0x102ce8['previousPosition']),_0x108943=!0x0):_0x3f985c=_0x3f985c||_0x102ce8[_0x15a5('0x14')]));}function _0x36f874(_0x494c68){const _0x3b7cf4=_0x51731a[_0x15a5('0xf')]['createUIElement'](_0x15a5('0x18'),{'class':_0x15a5('0x1c')+_0x20790b}),_0x2eae48=_0x51731a[_0x15a5('0x6')]['toViewPosition'](_0x494c68);_0x14eab8&&_0x561ff0[_0x15a5('0x7')][_0x15a5('0x12')](_0x205f7c['markerName'])&&_0x51731a[_0x15a5('0xf')][_0x15a5('0x9')](_0x15a5('0x8'),_0x3b7cf4),_0x51731a['writer']['insert'](_0x2eae48,_0x3b7cf4),_0x51731a['mapper'][_0x15a5('0xc')](_0x3b7cf4,_0x205f7c[_0x15a5('0x11')]);}_0x5e2191||_0x108943||!_0x3f985c||_0x36f874(_0x3f985c);};}
@@ -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 _0x2b8d=['from','decorate','_model','getFirstMarker','markers','hasComments','@external','discard','subType','onAttributesChange','getMarkerNames','split','attributes','getMarkers','next','getItems','onAccept','getRanges','creator','reduce','type','_onAccept','clear','nodeAfter','isMultiRange','setAttribute','previous','filter','author','getFirstRange','commentThread','onDiscard','substr','_onAttributesChange','removeMarker','removeMarkers','addMarkerName','getRange','addMarker','authoredAt','get','getMultiRangeId','isExternal','suggestion:','getAllAdjacentSuggestions','size','head','set','length','accept','end','_isDataLoaded','nodeBefore','isIntersectingWithRange','data','_markerNames','removeAttribute','map','createdAt','_onDiscard','change','getContainedElement'];(function(_0x558eef,_0x2b8dfc){const _0x2e70b8=function(_0x536c3c){while(--_0x536c3c){_0x558eef['push'](_0x558eef['shift']());}};_0x2e70b8(++_0x2b8dfc);}(_0x2b8d,0x1cb));const _0x2e70=function(_0x558eef,_0x2b8dfc){_0x558eef=_0x558eef-0x0;let _0x2e70b8=_0x2b8d[_0x558eef];return _0x2e70b8;};import{Element as _0x675665}from'ckeditor5/src/engine';import{ObservableMixin as _0x224d26,uid as _0x4a2373}from'ckeditor5/src/utils';import{cloneDeep as _0x171b68,isEqual as _0x50d259,set as _0x2d51a1,unset as _0x3077bb}from'lodash-es';export default class u extends _0x224d26(){constructor(_0x34df69,_0x1f1fe7){super(),this[_0x2e70('0x1a')]=!0x1,this['id']=_0x1f1fe7['id'],this[_0x2e70('0x39')]=_0x1f1fe7['type'],this[_0x2e70('0x2d')]=_0x1f1fe7[_0x2e70('0x2d')]||null,this[_0x2e70('0x3')]=_0x1f1fe7[_0x2e70('0x3')],this[_0x2e70('0x37')]=_0x1f1fe7[_0x2e70('0x37')]||_0x1f1fe7[_0x2e70('0x3')],this[_0x2e70('0x11')]=Boolean(_0x1f1fe7[_0x2e70('0x31')]&&_0x1f1fe7['attributes'][_0x2e70('0x2b')]),this['data']=null,this[_0x2e70('0x27')]=_0x34df69,this[_0x2e70('0x3a')]=_0x1f1fe7[_0x2e70('0x35')],this[_0x2e70('0x22')]=_0x1f1fe7[_0x2e70('0x6')],this[_0x2e70('0x8')]=_0x1f1fe7[_0x2e70('0x2e')],this[_0x2e70('0x1e')]=new Set(),this[_0x2e70('0x21')]=null,this[_0x2e70('0x16')](_0x2e70('0xe'),null),this[_0x2e70('0x16')](_0x2e70('0x31'),_0x1f1fe7[_0x2e70('0x31')]||{}),this['set'](_0x2e70('0x1'),null),this[_0x2e70('0x16')]('next',null),this[_0x2e70('0x16')](_0x2e70('0x5'),null),this[_0x2e70('0x16')]('_saved',!0x1),this[_0x2e70('0x26')](_0x2e70('0x18')),this['decorate'](_0x2e70('0x2c'));}get['head'](){let _0x9e557d=this;for(;_0x9e557d[_0x2e70('0x1')];)_0x9e557d=_0x9e557d[_0x2e70('0x1')];return _0x9e557d;}get[_0x2e70('0x2a')](){return!!this[_0x2e70('0x5')]&&this[_0x2e70('0x5')]['length']>0x0;}get[_0x2e70('0x3d')](){if(0x0==this[_0x2e70('0x1e')][_0x2e70('0x14')])return!0x1;return 0x6==Array[_0x2e70('0x25')](this[_0x2e70('0x1e')])[0x0][_0x2e70('0x30')](':')[_0x2e70('0x17')];}get['isInContent'](){return null!==this[_0x2e70('0x28')]();}[_0x2e70('0xb')](_0x2c4670){this[_0x2e70('0x1e')]['add'](_0x2c4670);}[_0x2e70('0x2f')](){return Array[_0x2e70('0x25')](this[_0x2e70('0x1e')]);}[_0x2e70('0x32')](){return this[_0x2e70('0x2f')]()[_0x2e70('0x20')](_0x4619df=>this[_0x2e70('0x27')][_0x2e70('0x29')][_0x2e70('0xf')](_0x4619df))[_0x2e70('0x2')](_0x202893=>_0x202893);}[_0x2e70('0x28')](){return this[_0x2e70('0x32')]()[0x0]||null;}[_0x2e70('0xa')](){this['_model'][_0x2e70('0x23')](_0x34c74b=>{for(const _0x411e3f of this[_0x2e70('0x32')]())_0x34c74b[_0x2e70('0x9')](_0x411e3f);}),this['_markerNames'][_0x2e70('0x3b')]();}[_0x2e70('0x9')](_0x594663){this['_model'][_0x2e70('0x23')](_0x4d881b=>{_0x4d881b[_0x2e70('0x9')](_0x594663);}),this['_markerNames']['delete'](_0x594663);}['addRange'](_0x51888c){const _0x10d927=_0x2e70('0x12')+this[_0x2e70('0x39')]+':'+this[_0x2e70('0x2d')]+':'+this['id']+':'+this[_0x2e70('0x37')]['id']+':'+u[_0x2e70('0x10')]();this[_0x2e70('0xb')](_0x10d927),this[_0x2e70('0x27')][_0x2e70('0x23')](_0x391436=>{_0x391436[_0x2e70('0xd')](_0x10d927,{'range':_0x51888c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2e70('0x1c')](_0x301632){for(const _0x512aa1 of this['getRanges']())if(_0x512aa1['isIntersecting'](_0x301632))return!0x0;return!0x1;}[_0x2e70('0x36')](){return this['getMarkers']()['map'](_0x3b5c3f=>_0x3b5c3f[_0x2e70('0xc')]());}[_0x2e70('0x34')](){return this[_0x2e70('0x36')]()[_0x2e70('0x38')]((_0x14304e,_0x4c6ae2)=>[..._0x14304e,..._0x4c6ae2['getItems']()],[]);}[_0x2e70('0x4')](){var _0x18656f;return(null===(_0x18656f=this[_0x2e70('0x28')]())||void 0x0===_0x18656f?void 0x0:_0x18656f['getRange']())||null;}[_0x2e70('0x24')](){const _0x1fa947=this[_0x2e70('0x36')]();if(0x1!=_0x1fa947[_0x2e70('0x17')])return null;const _0xf741e2=_0x1fa947[0x0],_0x2bcf34=_0xf741e2['start'][_0x2e70('0x3c')],_0x252914=_0xf741e2[_0x2e70('0x19')][_0x2e70('0x1b')];return _0x2bcf34 instanceof _0x675665?_0x2bcf34!=_0x252914?null:_0x2bcf34:null;}['accept'](){this[_0x2e70('0x3a')](this['getRanges'](),this[_0x2e70('0x1d')],this[_0x2e70('0x31')]),this[_0x2e70('0xa')]();}[_0x2e70('0x2c')](){this[_0x2e70('0x22')](this[_0x2e70('0x36')](),this[_0x2e70('0x1d')],this[_0x2e70('0x31')]),this['removeMarkers']();}[_0x2e70('0x13')](){const _0x25f320=[];let _0x1dfe3b=this[_0x2e70('0x15')];for(;_0x1dfe3b;)_0x25f320['push'](_0x1dfe3b),_0x1dfe3b=_0x1dfe3b[_0x2e70('0x33')];return _0x25f320;}[_0x2e70('0x0')](_0x6994ab,_0x581a32){const _0x224af7=_0x171b68(this[_0x2e70('0x31')]);_0x2d51a1(_0x224af7,_0x6994ab,_0x581a32),_0x50d259(_0x224af7,this[_0x2e70('0x31')])||(this[_0x2e70('0x31')]=_0x224af7,this['_onAttributesChange'](_0x224af7));}[_0x2e70('0x1f')](_0x49dee7){const _0x42b6a0=_0x171b68(this['attributes']);_0x3077bb(_0x42b6a0,_0x49dee7),_0x50d259(_0x42b6a0,this['attributes'])||(this[_0x2e70('0x31')]=_0x42b6a0,this[_0x2e70('0x8')](this[_0x2e70('0x31')]));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this[_0x2e70('0x2d')]:this[_0x2e70('0x39')],'authorId':this[_0x2e70('0x37')]['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this[_0x2e70('0x31')]};}static[_0x2e70('0x10')](){return _0x4a2373()[_0x2e70('0x7')](0x1,0x5);}}
23
+ const _0x13e2=['subType','@external','setAttribute','from','isMultiRange','onAccept','getFirstRange','type','size','push','getContainedElement','removeMarkers','hasComments','get','commentThread','length','map','_markerNames','getRanges','author','end','suggestion:','delete','discard','previous','getItems','filter','accept','isIntersecting','decorate','change','onAttributesChange','removeMarker','nodeAfter','getMarkers','isIntersectingWithRange','_model','removeAttribute','getMarkerNames','next','getRange','getMultiRangeId','toJSON','createdAt','_onAttributesChange','start','_onDiscard','creator','getFirstMarker','getAllAdjacentSuggestions','authoredAt','addMarkerName','_onAccept','addRange','data','_isDataLoaded','split','substr','isExternal','set','attributes'];(function(_0x37e2b0,_0x13e28e){const _0x2e1eba=function(_0x2c9863){while(--_0x2c9863){_0x37e2b0['push'](_0x37e2b0['shift']());}};_0x2e1eba(++_0x13e28e);}(_0x13e2,0x14e));const _0x2e1e=function(_0x37e2b0,_0x13e28e){_0x37e2b0=_0x37e2b0-0x0;let _0x2e1eba=_0x13e2[_0x37e2b0];return _0x2e1eba;};import{Element as _0x1de794}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x133bd2,uid as _0x14fa25}from'ckeditor5/src/utils.js';import{cloneDeep as _0x484429,isEqual as _0x19a1c4,set as _0x1f5ad8,unset as _0x51a7e4}from'lodash-es';export default class u extends _0x133bd2(){constructor(_0x25641c,_0x582a67){super(),this[_0x2e1e('0x1a')]=!0x1,this['id']=_0x582a67['id'],this[_0x2e1e('0x27')]=_0x582a67['type'],this['subType']=_0x582a67[_0x2e1e('0x20')]||null,this[_0x2e1e('0x33')]=_0x582a67[_0x2e1e('0x33')],this[_0x2e1e('0x12')]=_0x582a67[_0x2e1e('0x12')]||_0x582a67[_0x2e1e('0x33')],this[_0x2e1e('0x1d')]=Boolean(_0x582a67[_0x2e1e('0x1f')]&&_0x582a67[_0x2e1e('0x1f')][_0x2e1e('0x21')]),this[_0x2e1e('0x19')]=null,this[_0x2e1e('0x7')]=_0x25641c,this[_0x2e1e('0x17')]=_0x582a67[_0x2e1e('0x25')],this[_0x2e1e('0x11')]=_0x582a67['onDiscard'],this[_0x2e1e('0xf')]=_0x582a67[_0x2e1e('0x2')],this[_0x2e1e('0x31')]=new Set(),this[_0x2e1e('0xe')]=null,this[_0x2e1e('0x1e')](_0x2e1e('0x15'),null),this[_0x2e1e('0x1e')](_0x2e1e('0x1f'),_0x582a67['attributes']||{}),this[_0x2e1e('0x1e')](_0x2e1e('0x38'),null),this['set'](_0x2e1e('0xa'),null),this[_0x2e1e('0x1e')]('commentThread',null),this[_0x2e1e('0x1e')]('_saved',!0x1),this[_0x2e1e('0x0')](_0x2e1e('0x3b')),this[_0x2e1e('0x0')](_0x2e1e('0x37'));}get['head'](){let _0x31ad95=this;for(;_0x31ad95[_0x2e1e('0x38')];)_0x31ad95=_0x31ad95[_0x2e1e('0x38')];return _0x31ad95;}get[_0x2e1e('0x2c')](){return!!this[_0x2e1e('0x2e')]&&this[_0x2e1e('0x2e')][_0x2e1e('0x2f')]>0x0;}get[_0x2e1e('0x24')](){if(0x0==this[_0x2e1e('0x31')][_0x2e1e('0x28')])return!0x1;return 0x6==Array[_0x2e1e('0x23')](this[_0x2e1e('0x31')])[0x0][_0x2e1e('0x1b')](':')['length'];}get['isInContent'](){return null!==this[_0x2e1e('0x13')]();}[_0x2e1e('0x16')](_0x296d94){this['_markerNames']['add'](_0x296d94);}[_0x2e1e('0x9')](){return Array[_0x2e1e('0x23')](this[_0x2e1e('0x31')]);}[_0x2e1e('0x5')](){return this[_0x2e1e('0x9')]()[_0x2e1e('0x30')](_0x551cb6=>this[_0x2e1e('0x7')]['markers'][_0x2e1e('0x2d')](_0x551cb6))[_0x2e1e('0x3a')](_0x48dfb2=>_0x48dfb2);}[_0x2e1e('0x13')](){return this[_0x2e1e('0x5')]()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x46a657=>{for(const _0x16e73a of this['getMarkers']())_0x46a657[_0x2e1e('0x3')](_0x16e73a);}),this['_markerNames']['clear']();}[_0x2e1e('0x3')](_0x563e66){this['_model'][_0x2e1e('0x1')](_0x313774=>{_0x313774[_0x2e1e('0x3')](_0x563e66);}),this['_markerNames'][_0x2e1e('0x36')](_0x563e66);}[_0x2e1e('0x18')](_0x2ae487){const _0x53f080=_0x2e1e('0x35')+this[_0x2e1e('0x27')]+':'+this[_0x2e1e('0x20')]+':'+this['id']+':'+this[_0x2e1e('0x12')]['id']+':'+u[_0x2e1e('0xc')]();this[_0x2e1e('0x16')](_0x53f080),this[_0x2e1e('0x7')][_0x2e1e('0x1')](_0x2c0c5b=>{_0x2c0c5b['addMarker'](_0x53f080,{'range':_0x2ae487,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2e1e('0x6')](_0x24c41c){for(const _0x58d882 of this['getRanges']())if(_0x58d882[_0x2e1e('0x3c')](_0x24c41c))return!0x0;return!0x1;}['getRanges'](){return this[_0x2e1e('0x5')]()[_0x2e1e('0x30')](_0x1af8d7=>_0x1af8d7['getRange']());}[_0x2e1e('0x39')](){return this['getRanges']()['reduce']((_0x2b47cc,_0x5f6011)=>[..._0x2b47cc,..._0x5f6011[_0x2e1e('0x39')]()],[]);}[_0x2e1e('0x26')](){var _0x13a06c;return(null===(_0x13a06c=this[_0x2e1e('0x13')]())||void 0x0===_0x13a06c?void 0x0:_0x13a06c[_0x2e1e('0xb')]())||null;}[_0x2e1e('0x2a')](){const _0x4e0a7b=this[_0x2e1e('0x32')]();if(0x1!=_0x4e0a7b[_0x2e1e('0x2f')])return null;const _0x5cf332=_0x4e0a7b[0x0],_0x5b8fcc=_0x5cf332[_0x2e1e('0x10')][_0x2e1e('0x4')],_0x2bbf42=_0x5cf332[_0x2e1e('0x34')]['nodeBefore'];return _0x5b8fcc instanceof _0x1de794?_0x5b8fcc!=_0x2bbf42?null:_0x5b8fcc:null;}[_0x2e1e('0x3b')](){this[_0x2e1e('0x17')](this['getRanges'](),this['data'],this[_0x2e1e('0x1f')]),this[_0x2e1e('0x2b')]();}[_0x2e1e('0x37')](){this['_onDiscard'](this[_0x2e1e('0x32')](),this[_0x2e1e('0x19')],this[_0x2e1e('0x1f')]),this[_0x2e1e('0x2b')]();}[_0x2e1e('0x14')](){const _0x38472b=[];let _0x2ccdac=this['head'];for(;_0x2ccdac;)_0x38472b[_0x2e1e('0x29')](_0x2ccdac),_0x2ccdac=_0x2ccdac[_0x2e1e('0xa')];return _0x38472b;}[_0x2e1e('0x22')](_0x28c0ff,_0x8f669f){const _0x366784=_0x484429(this[_0x2e1e('0x1f')]);_0x1f5ad8(_0x366784,_0x28c0ff,_0x8f669f),_0x19a1c4(_0x366784,this['attributes'])||(this['attributes']=_0x366784,this[_0x2e1e('0xf')](_0x366784));}[_0x2e1e('0x8')](_0x40df02){const _0x5e7767=_0x484429(this[_0x2e1e('0x1f')]);_0x51a7e4(_0x5e7767,_0x40df02),_0x19a1c4(_0x5e7767,this[_0x2e1e('0x1f')])||(this['attributes']=_0x5e7767,this[_0x2e1e('0xf')](this['attributes']));}[_0x2e1e('0xd')](){return{'id':this['id'],'type':this[_0x2e1e('0x20')]?this[_0x2e1e('0x27')]+':'+this[_0x2e1e('0x20')]:this[_0x2e1e('0x27')],'authorId':this[_0x2e1e('0x12')]['id'],'createdAt':this[_0x2e1e('0xe')],'hasComments':this['hasComments'],'data':this[_0x2e1e('0x19')],'attributes':this[_0x2e1e('0x1f')]};}static[_0x2e1e('0xc')](){return _0x14fa25()[_0x2e1e('0x1c')](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
  *