@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 _0x50a8=['model','high','getFirstRange','remove','hasClass','markerNameToElements','change','fromRange','fire','data','plugins','commands','editing','parent','showSuggestionHighlights','init','options','end','bind','markInsertion','createRange','afterExecute','unbindElementFromMarkerName','ck-suggestion-marker-split','downcastDispatcher','mapper','enableCommand','addMarker:suggestion:insertion','getFirstPosition','get','document','markerName','split','TrackChangesEditing'];(function(_0x140acd,_0x50a8f4){const _0x56269e=function(_0x51b5f1){while(--_0x51b5f1){_0x140acd['push'](_0x140acd['shift']());}};_0x56269e(++_0x50a8f4);}(_0x50a8,0xb8));const _0x5626=function(_0x140acd,_0x50a8f4){_0x140acd=_0x140acd-0x0;let _0x56269e=_0x50a8[_0x140acd];return _0x56269e;};import{Plugin as _0x2519bb}from'ckeditor5/src/core';import{Enter as _0x1f4c3b}from'ckeditor5/src/enter';import{LiveRange as _0x49d0dd}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0xf82cfa}from'./utils';export default class W extends _0x2519bb{static get['requires'](){return[_0x1f4c3b];}[_0x5626('0x1')](){const _0x2c0bf6=this['editor'],_0x43d7b4=_0x2c0bf6[_0x5626('0x1e')][_0x5626('0xf')](_0x5626('0x13')),_0x3287e3=_0x2c0bf6[_0x5626('0x1f')][_0x5626('0xf')]('enter');_0x43d7b4[_0x5626('0xc')]('enter',()=>{_0x2c0bf6[_0x5626('0x14')][_0x5626('0x1a')](_0x37b8d3=>{const _0x54a6bd=_0x2c0bf6['model'][_0x5626('0x10')]['selection'],_0xb1373d=_0x54a6bd[_0x5626('0xe')](),_0x2c3a57=_0x49d0dd[_0x5626('0x1b')](_0x54a6bd[_0x5626('0x16')]());if(_0x3287e3['enterBlock'](_0x37b8d3)){const _0x38aeed=_0x2c0bf6['model']['createPositionAt'](_0xb1373d[_0x5626('0x21')]['nextSibling'],0x0),_0x59125c=_0x37b8d3['createRange'](_0xb1373d,_0x38aeed);_0x43d7b4[_0x5626('0x5')](_0x59125c);}else _0x37b8d3['setSelection'](_0x37b8d3[_0x5626('0x6')](_0x2c3a57[_0x5626('0x3')]));_0x2c3a57['detach'](),_0x3287e3[_0x5626('0x1c')](_0x5626('0x7'),{'writer':_0x37b8d3});});}),_0x2c0bf6[_0x5626('0x20')][_0x5626('0xa')]['on']('addMarker:suggestion:insertion',_0xf82cfa(_0x2c0bf6,_0x5626('0x12')),{'priority':'high'}),_0x2c0bf6[_0x5626('0x20')]['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4f7f6c,_0x52e468,_0x244f6b)=>{const _0x39f524=_0x244f6b[_0x5626('0xb')][_0x5626('0x19')](_0x52e468[_0x5626('0x11')]);if(_0x39f524)for(const _0x49dcf7 of _0x39f524)_0x49dcf7[_0x5626('0x18')](_0x5626('0x9'))&&(_0x244f6b['mapper'][_0x5626('0x8')](_0x49dcf7,_0x52e468['markerName']),_0x244f6b['writer'][_0x5626('0x17')](_0x49dcf7));},{'priority':'high'}),_0x2c0bf6[_0x5626('0x1d')]['downcastDispatcher']['on'](_0x5626('0xd'),(_0x1e99ef,_0x592dba,_0x43555e)=>{_0x43555e[_0x5626('0x2')][_0x5626('0x0')]&&_0xf82cfa(_0x2c0bf6,_0x5626('0x12'),{'showActiveMarker':!0x1})[_0x5626('0x4')](this)(_0x1e99ef,_0x592dba,_0x43555e);},{'priority':_0x5626('0x15')});}}
23
+ const _0x6bb8=['markerName','markInsertion','createRange','data','ck-suggestion-marker-split','writer','remove','get','init','requires','plugins','parent','model','hasClass','split','fire','enter','change','removeMarker:suggestion:insertion','setSelection','TrackChangesEditing','commands','getFirstRange','mapper','detach','downcastDispatcher','bind','high','unbindElementFromMarkerName','options','editing','enterBlock','addMarker:suggestion:insertion','editor','createPositionAt','getFirstPosition','end'];(function(_0xcfd133,_0x6bb896){const _0x2e3e20=function(_0x297873){while(--_0x297873){_0xcfd133['push'](_0xcfd133['shift']());}};_0x2e3e20(++_0x6bb896);}(_0x6bb8,0x9a));const _0x2e3e=function(_0xcfd133,_0x6bb896){_0xcfd133=_0xcfd133-0x0;let _0x2e3e20=_0x6bb8[_0xcfd133];return _0x2e3e20;};import{Plugin as _0x2d4f08}from'ckeditor5/src/core.js';import{Enter as _0x1428eb}from'ckeditor5/src/enter.js';import{LiveRange as _0x595e9a}from'ckeditor5/src/engine.js';import{downcastSplitMergeMarker as _0x126590}from'./utils.js';export default class W extends _0x2d4f08{static get[_0x2e3e('0x3')](){return[_0x1428eb];}[_0x2e3e('0x2')](){const _0x2af01c=this[_0x2e3e('0x1b')],_0x15b5c3=_0x2af01c[_0x2e3e('0x4')][_0x2e3e('0x1')](_0x2e3e('0xe')),_0x3da90a=_0x2af01c[_0x2e3e('0xf')]['get']('enter');_0x15b5c3['enableCommand'](_0x2e3e('0xa'),()=>{_0x2af01c[_0x2e3e('0x6')][_0x2e3e('0xb')](_0x3fe94b=>{const _0x3a65e1=_0x2af01c[_0x2e3e('0x6')]['document']['selection'],_0x43606=_0x3a65e1[_0x2e3e('0x1d')](),_0x5b9c4a=_0x595e9a['fromRange'](_0x3a65e1[_0x2e3e('0x10')]());if(_0x3da90a[_0x2e3e('0x19')](_0x3fe94b)){const _0x47da68=_0x2af01c[_0x2e3e('0x6')][_0x2e3e('0x1c')](_0x43606[_0x2e3e('0x5')]['nextSibling'],0x0),_0x3c381d=_0x3fe94b[_0x2e3e('0x21')](_0x43606,_0x47da68);_0x15b5c3[_0x2e3e('0x20')](_0x3c381d);}else _0x3fe94b[_0x2e3e('0xd')](_0x3fe94b[_0x2e3e('0x21')](_0x5b9c4a[_0x2e3e('0x1e')]));_0x5b9c4a[_0x2e3e('0x12')](),_0x3da90a[_0x2e3e('0x9')]('afterExecute',{'writer':_0x3fe94b});});}),_0x2af01c[_0x2e3e('0x18')][_0x2e3e('0x13')]['on'](_0x2e3e('0x1a'),_0x126590(_0x2af01c,_0x2e3e('0x8')),{'priority':_0x2e3e('0x15')}),_0x2af01c['editing'][_0x2e3e('0x13')]['on'](_0x2e3e('0xc'),(_0x2e9bee,_0x4fcbb2,_0x489e70)=>{const _0x43c090=_0x489e70[_0x2e3e('0x11')]['markerNameToElements'](_0x4fcbb2[_0x2e3e('0x1f')]);if(_0x43c090)for(const _0x3f8888 of _0x43c090)_0x3f8888[_0x2e3e('0x7')](_0x2e3e('0x23'))&&(_0x489e70[_0x2e3e('0x11')][_0x2e3e('0x16')](_0x3f8888,_0x4fcbb2[_0x2e3e('0x1f')]),_0x489e70[_0x2e3e('0x24')][_0x2e3e('0x0')](_0x3f8888));},{'priority':'high'}),_0x2af01c[_0x2e3e('0x22')][_0x2e3e('0x13')]['on'](_0x2e3e('0x1a'),(_0x53bc33,_0x2bb966,_0x3c135e)=>{_0x3c135e[_0x2e3e('0x17')]['showSuggestionHighlights']&&_0x126590(_0x2af01c,'split',{'showActiveMarker':!0x1})[_0x2e3e('0x14')](this)(_0x53bc33,_0x2bb966,_0x3c135e);},{'priority':'high'});}}
@@ -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/findandreplace
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 find and replace 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 _0x1aed=['start','FindAndReplaceUtils','plugins','has','filter','createPositionAt','enableCommand','editor','findPrevious','end','FindAndReplaceEditing','model','get','handleFindCommand','findNext','_isInDeletionRange','find','bind','item','getRange','getIntersection','suggestion:deletion','getMarkersGroup'];(function(_0x4b9dd0,_0x1aedbf){const _0x5818ba=function(_0x553f0b){while(--_0x553f0b){_0x4b9dd0['push'](_0x4b9dd0['shift']());}};_0x5818ba(++_0x1aedbf);}(_0x1aed,0x1a1));const _0x5818=function(_0x4b9dd0,_0x1aedbf){_0x4b9dd0=_0x4b9dd0-0x0;let _0x5818ba=_0x1aed[_0x4b9dd0];return _0x5818ba;};import{Plugin as _0x29aeba}from'ckeditor5/src/core';export default class J extends _0x29aeba{['afterInit'](){if(!this['editor']['plugins'][_0x5818('0x0')](_0x5818('0x7')))return;const _0x3515ee=this['editor'][_0x5818('0x16')][_0x5818('0x9')]('TrackChangesEditing');_0x3515ee[_0x5818('0x3')](_0x5818('0xd'),this[_0x5818('0xa')][_0x5818('0xe')](this)),_0x3515ee[_0x5818('0x3')](_0x5818('0xb')),_0x3515ee[_0x5818('0x3')](_0x5818('0x5')),_0x3515ee[_0x5818('0x3')]('replace'),_0x3515ee['enableCommand']('replaceAll');}[_0x5818('0xa')](_0x31c27a,_0x379182,_0x43b199={}){const _0x12d836=this['editor'][_0x5818('0x16')][_0x5818('0x9')](_0x5818('0x15'));return _0x31c27a(_0x264012=>('string'==typeof _0x379182?_0x12d836['findByTextCallback'](_0x379182,_0x43b199):_0x379182)(_0x264012)[_0x5818('0x1')](_0x470f9a=>!0x1===this['_isInDeletionRange'](_0x470f9a,_0x264012[_0x5818('0xf')])),_0x43b199);}[_0x5818('0xc')](_0x4b3b76,_0x142939){const _0xf8eeac=this[_0x5818('0x4')][_0x5818('0x8')]['createRange'](this[_0x5818('0x4')][_0x5818('0x8')][_0x5818('0x2')](_0x142939,_0x4b3b76[_0x5818('0x14')]),this[_0x5818('0x4')][_0x5818('0x8')][_0x5818('0x2')](_0x142939,_0x4b3b76[_0x5818('0x6')]));for(const _0x3782d5 of this[_0x5818('0x4')]['model']['markers'][_0x5818('0x13')](_0x5818('0x12')))if(null!==_0xf8eeac[_0x5818('0x11')](_0x3782d5[_0x5818('0x10')]()))return!0x0;return!0x1;}}
23
+ const _0x333b=['filter','bind','createPositionAt','createRange','getIntersection','has','find','handleFindCommand','_isInDeletionRange','start','get','string','enableCommand','editor','plugins','model','findPrevious','FindAndReplaceEditing','findNext','afterInit','item','replace'];(function(_0x2972aa,_0x333b64){const _0x3d1089=function(_0x4fe29f){while(--_0x4fe29f){_0x2972aa['push'](_0x2972aa['shift']());}};_0x3d1089(++_0x333b64);}(_0x333b,0x112));const _0x3d10=function(_0x2972aa,_0x333b64){_0x2972aa=_0x2972aa-0x0;let _0x3d1089=_0x333b[_0x2972aa];return _0x3d1089;};import{Plugin as _0x6885c4}from'ckeditor5/src/core.js';export default class J extends _0x6885c4{[_0x3d10('0x9')](){if(!this[_0x3d10('0x3')][_0x3d10('0x4')][_0x3d10('0x11')](_0x3d10('0x7')))return;const _0x4da272=this[_0x3d10('0x3')]['plugins'][_0x3d10('0x0')]('TrackChangesEditing');_0x4da272[_0x3d10('0x2')](_0x3d10('0x12'),this[_0x3d10('0x13')][_0x3d10('0xd')](this)),_0x4da272['enableCommand'](_0x3d10('0x8')),_0x4da272[_0x3d10('0x2')](_0x3d10('0x6')),_0x4da272['enableCommand'](_0x3d10('0xb')),_0x4da272['enableCommand']('replaceAll');}[_0x3d10('0x13')](_0x262e20,_0x4ac1d2,_0x1e32b0={}){const _0x2c15b8=this[_0x3d10('0x3')][_0x3d10('0x4')]['get']('FindAndReplaceUtils');return _0x262e20(_0x581e7d=>(_0x3d10('0x1')==typeof _0x4ac1d2?_0x2c15b8['findByTextCallback'](_0x4ac1d2,_0x1e32b0):_0x4ac1d2)(_0x581e7d)[_0x3d10('0xc')](_0xaed6dc=>!0x1===this[_0x3d10('0x14')](_0xaed6dc,_0x581e7d[_0x3d10('0xa')])),_0x1e32b0);}[_0x3d10('0x14')](_0xca3775,_0x2194d6){const _0x135fd8=this[_0x3d10('0x3')][_0x3d10('0x5')][_0x3d10('0xf')](this[_0x3d10('0x3')][_0x3d10('0x5')][_0x3d10('0xe')](_0x2194d6,_0xca3775[_0x3d10('0x15')]),this[_0x3d10('0x3')][_0x3d10('0x5')][_0x3d10('0xe')](_0x2194d6,_0xca3775['end']));for(const _0x8ef5a4 of this['editor'][_0x3d10('0x5')]['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x135fd8[_0x3d10('0x10')](_0x8ef5a4['getRange']()))return!0x0;return!0x1;}}
@@ -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/font
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 font features.
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 _0x5067=['fontBackgroundColor','formatInline','FORMAT_FONT_FAMILY','get','*Reset\x20font\x20color*','TrackChangesEditing','value','*Set\x20font\x20family:*\x20%0','trim','fontFamily','registerAttributeLabel','_registerLegacyDescription','FontSizeEditing','fontColor','FORMAT_FONT_COLOR','config','title','find','commandParams','toLowerCase','fontSize','FontFamilyEditing','*Set\x20font\x20color:*\x20%0','normalizeSizeOptions','afterInit','type','model','_enableDefaultAttributesIntegration','format','*Set\x20font\x20background\x20color:*\x20%0','editor','_descriptionFactory','*Reset\x20font\x20size*','has','fontColor.colors','*Reset\x20font\x20family*','locale','FORMAT_FONT_BACKGROUND','commandName','plugins','fontBackgroundColor.colors','FORMAT_FONT_SIZE','label'];(function(_0x393312,_0x50673d){const _0x15c12f=function(_0x51c481){while(--_0x51c481){_0x393312['push'](_0x393312['shift']());}};_0x15c12f(++_0x50673d);}(_0x5067,0x154));const _0x15c1=function(_0x393312,_0x50673d){_0x393312=_0x393312-0x0;let _0x15c12f=_0x5067[_0x393312];return _0x15c12f;};import{Plugin as _0x3f4578}from'ckeditor5/src/core';import{normalizeColorOptions as _0x3dc331}from'ckeditor5/src/ui';import{getTranslation as _0x92dc7f}from'../utils/common-translations';const ro=[{'pluginName':_0x15c1('0x10'),'commandName':'fontSize'},{'pluginName':_0x15c1('0x19'),'commandName':_0x15c1('0xd')},{'pluginName':'FontColorEditing','commandName':_0x15c1('0x11')},{'pluginName':'FontBackgroundColorEditing','commandName':_0x15c1('0x4')}];export default class K extends _0x3f4578{[_0x15c1('0x1c')](){const _0x55a320=this[_0x15c1('0x22')][_0x15c1('0x28')],_0x292cb1=this[_0x15c1('0x22')][_0x15c1('0x0')]['get'](_0x15c1('0x9'));for(const {pluginName:_0x3e05d7,commandName:_0x1269e1}of ro)this['editor'][_0x15c1('0x0')][_0x15c1('0x25')](_0x3e05d7)&&_0x292cb1[_0x15c1('0x1f')](_0x1269e1,[_0x1269e1]);_0x55a320['t'],(_0x292cb1[_0x15c1('0x23')][_0x15c1('0xe')](_0x15c1('0x18'),_0x92dc7f(_0x55a320,_0x15c1('0x2'))),_0x292cb1[_0x15c1('0x23')][_0x15c1('0xe')](_0x15c1('0xd'),_0x92dc7f(_0x55a320,_0x15c1('0x6'))),_0x292cb1[_0x15c1('0x23')][_0x15c1('0xe')](_0x15c1('0x11'),_0x92dc7f(_0x55a320,_0x15c1('0x12'))),_0x292cb1[_0x15c1('0x23')][_0x15c1('0xe')]('fontBackgroundColor',_0x92dc7f(_0x55a320,_0x15c1('0x29'))),this[_0x15c1('0xf')]());}[_0x15c1('0xf')](){const _0x29859c=this[_0x15c1('0x22')],_0x18d45f=_0x29859c[_0x15c1('0x28')];_0x29859c[_0x15c1('0x0')][_0x15c1('0x7')](_0x15c1('0x9'))[_0x15c1('0x23')]['registerDescriptionCallback'](_0x80ef42=>{const _0x114952=_0x18d45f['t'];if(_0x15c1('0x5')!=_0x80ef42[_0x15c1('0x1d')])return;const {data:_0x53da03}=_0x80ef42;if(null!=_0x53da03){if(_0x15c1('0x18')==_0x53da03[_0x15c1('0x2a')]){const _0xe6ebca=_0x53da03[_0x15c1('0x16')][0x0][_0x15c1('0xa')];if(_0xe6ebca){const _0x45d2fd=_0x114952(this[_0x15c1('0x22')]['plugins'][_0x15c1('0x7')]('FontSize')[_0x15c1('0x1b')](this[_0x15c1('0x22')][_0x15c1('0x13')][_0x15c1('0x7')]('fontSize.options'))[_0x15c1('0x15')](_0xb3afac=>_0xb3afac['model']==_0xe6ebca)[_0x15c1('0x14')])['toLowerCase']();return{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,'*Set\x20font\x20size:*\x20%0',_0x45d2fd)};}return{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,_0x15c1('0x24'))};}if(_0x15c1('0xd')==_0x53da03['commandName']){const _0x331796=_0x53da03[_0x15c1('0x16')][0x0]['value'];return _0x331796?{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,_0x15c1('0xb'),_0x331796)}:{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,_0x15c1('0x27'))};}if('fontColor'==_0x53da03[_0x15c1('0x2a')]){const _0x5a83d4=_0x53da03[_0x15c1('0x16')][0x0][_0x15c1('0xa')];if(_0x5a83d4){const _0x3c9bb1=_0x3dc331(this[_0x15c1('0x22')]['config'][_0x15c1('0x7')](_0x15c1('0x26')))[_0x15c1('0x15')](_0x6cbd82=>_0x6cbd82[_0x15c1('0x1e')]==_0x5a83d4);let _0x4a0726=_0x5a83d4,_0x511c29='';return _0x3c9bb1&&(_0x4a0726=_0x3c9bb1[_0x15c1('0x3')],_0x511c29=_0x114952(_0x4a0726)[_0x15c1('0x17')]()),{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,_0x15c1('0x1a'),_0x511c29)[_0x15c1('0xc')](),'color':{'value':_0x5a83d4,'title':_0x511c29||_0x4a0726}};}return{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,_0x15c1('0x8'))};}if('fontBackgroundColor'==_0x53da03[_0x15c1('0x2a')]){const _0x4e8cf0=_0x53da03['commandParams'][0x0][_0x15c1('0xa')];if(_0x4e8cf0){const _0x2dd79b=_0x3dc331(this['editor'][_0x15c1('0x13')][_0x15c1('0x7')](_0x15c1('0x1')))[_0x15c1('0x15')](_0x52475f=>_0x52475f[_0x15c1('0x1e')]==_0x4e8cf0);let _0x8ee085=_0x4e8cf0,_0x5246b0='';return _0x2dd79b&&(_0x8ee085=_0x2dd79b[_0x15c1('0x3')],_0x5246b0=_0x114952(_0x8ee085)['toLowerCase']()),{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,_0x15c1('0x21'),_0x5246b0)[_0x15c1('0xc')](),'color':{'value':_0x4e8cf0,'title':_0x5246b0||_0x8ee085}};}return{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,'*Reset\x20font\x20background\x20color*')};}}});}}
23
+ const _0x51f4=['fontSize.options','label','FontBackgroundColorEditing','find','editor','_registerLegacyDescription','*Set\x20font\x20color:*\x20%0','normalizeSizeOptions','plugins','fontSize','afterInit','get','FORMAT_FONT_SIZE','*Reset\x20font\x20size*','fontBackgroundColor.colors','toLowerCase','commandParams','commandName','has','*Set\x20font\x20family:*\x20%0','model','config','FontSize','format','FORMAT_FONT_FAMILY','*Set\x20font\x20background\x20color:*\x20%0','_descriptionFactory','value','locale','fontFamily','TrackChangesEditing','type','fontColor','fontColor.colors','registerAttributeLabel','FontColorEditing','formatInline','trim','*Reset\x20font\x20background\x20color*','_enableDefaultAttributesIntegration','fontBackgroundColor','registerDescriptionCallback','title'];(function(_0x2e7b52,_0x51f47f){const _0x1a5ba5=function(_0x557d42){while(--_0x557d42){_0x2e7b52['push'](_0x2e7b52['shift']());}};_0x1a5ba5(++_0x51f47f);}(_0x51f4,0x127));const _0x1a5b=function(_0x2e7b52,_0x51f47f){_0x2e7b52=_0x2e7b52-0x0;let _0x1a5ba5=_0x51f4[_0x2e7b52];return _0x1a5ba5;};import{Plugin as _0x1527a2}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x3ca464}from'ckeditor5/src/ui.js';import{getTranslation as _0x1fc160}from'../utils/common-translations.js';const ro=[{'pluginName':'FontSizeEditing','commandName':_0x1a5b('0xf')},{'pluginName':'FontFamilyEditing','commandName':_0x1a5b('0x23')},{'pluginName':_0x1a5b('0x29'),'commandName':'fontColor'},{'pluginName':_0x1a5b('0x8'),'commandName':_0x1a5b('0x3')}];export default class Q extends _0x1527a2{[_0x1a5b('0x10')](){const _0x11d84e=this[_0x1a5b('0xa')]['locale'],_0x5aa355=this[_0x1a5b('0xa')][_0x1a5b('0xe')][_0x1a5b('0x11')](_0x1a5b('0x24'));for(const {pluginName:_0x59d5e0,commandName:_0x1cfbd7}of ro)this[_0x1a5b('0xa')]['plugins'][_0x1a5b('0x18')](_0x59d5e0)&&_0x5aa355[_0x1a5b('0x2')](_0x1cfbd7,[_0x1cfbd7]);_0x11d84e['t'],(_0x5aa355[_0x1a5b('0x20')][_0x1a5b('0x28')](_0x1a5b('0xf'),_0x1fc160(_0x11d84e,_0x1a5b('0x12'))),_0x5aa355[_0x1a5b('0x20')]['registerAttributeLabel'](_0x1a5b('0x23'),_0x1fc160(_0x11d84e,_0x1a5b('0x1e'))),_0x5aa355[_0x1a5b('0x20')][_0x1a5b('0x28')](_0x1a5b('0x26'),_0x1fc160(_0x11d84e,'FORMAT_FONT_COLOR')),_0x5aa355['_descriptionFactory']['registerAttributeLabel'](_0x1a5b('0x3'),_0x1fc160(_0x11d84e,'FORMAT_FONT_BACKGROUND')),this[_0x1a5b('0xb')]());}[_0x1a5b('0xb')](){const _0x46d086=this[_0x1a5b('0xa')],_0x2d5675=_0x46d086[_0x1a5b('0x22')];_0x46d086[_0x1a5b('0xe')][_0x1a5b('0x11')](_0x1a5b('0x24'))[_0x1a5b('0x20')][_0x1a5b('0x4')](_0x5653db=>{const _0x36fa66=_0x2d5675['t'];if(_0x1a5b('0x2a')!=_0x5653db[_0x1a5b('0x25')])return;const {data:_0x5b015a}=_0x5653db;if(null!=_0x5b015a){if(_0x1a5b('0xf')==_0x5b015a[_0x1a5b('0x17')]){const _0x4a9e8e=_0x5b015a[_0x1a5b('0x16')][0x0]['value'];if(_0x4a9e8e){const _0x237a03=_0x36fa66(this[_0x1a5b('0xa')][_0x1a5b('0xe')]['get'](_0x1a5b('0x1c'))[_0x1a5b('0xd')](this[_0x1a5b('0xa')][_0x1a5b('0x1b')]['get'](_0x1a5b('0x6')))[_0x1a5b('0x9')](_0x5ed633=>_0x5ed633[_0x1a5b('0x1a')]==_0x4a9e8e)[_0x1a5b('0x5')])['toLowerCase']();return{'type':_0x1a5b('0x1d'),'content':_0x1fc160(_0x2d5675,'*Set\x20font\x20size:*\x20%0',_0x237a03)};}return{'type':_0x1a5b('0x1d'),'content':_0x1fc160(_0x2d5675,_0x1a5b('0x13'))};}if(_0x1a5b('0x23')==_0x5b015a[_0x1a5b('0x17')]){const _0x4ae511=_0x5b015a['commandParams'][0x0][_0x1a5b('0x21')];return _0x4ae511?{'type':_0x1a5b('0x1d'),'content':_0x1fc160(_0x2d5675,_0x1a5b('0x19'),_0x4ae511)}:{'type':_0x1a5b('0x1d'),'content':_0x1fc160(_0x2d5675,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5b015a[_0x1a5b('0x17')]){const _0x36c6c6=_0x5b015a[_0x1a5b('0x16')][0x0][_0x1a5b('0x21')];if(_0x36c6c6){const _0x40e21e=_0x3ca464(this[_0x1a5b('0xa')][_0x1a5b('0x1b')][_0x1a5b('0x11')](_0x1a5b('0x27')))[_0x1a5b('0x9')](_0x45db7d=>_0x45db7d['model']==_0x36c6c6);let _0x3a2b6a=_0x36c6c6,_0x301ef7='';return _0x40e21e&&(_0x3a2b6a=_0x40e21e['label'],_0x301ef7=_0x36fa66(_0x3a2b6a)[_0x1a5b('0x15')]()),{'type':_0x1a5b('0x1d'),'content':_0x1fc160(_0x2d5675,_0x1a5b('0xc'),_0x301ef7)[_0x1a5b('0x0')](),'color':{'value':_0x36c6c6,'title':_0x301ef7||_0x3a2b6a}};}return{'type':'format','content':_0x1fc160(_0x2d5675,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5b015a[_0x1a5b('0x17')]){const _0x32e3a8=_0x5b015a[_0x1a5b('0x16')][0x0][_0x1a5b('0x21')];if(_0x32e3a8){const _0x34ae3a=_0x3ca464(this['editor']['config'][_0x1a5b('0x11')](_0x1a5b('0x14')))[_0x1a5b('0x9')](_0x2f137b=>_0x2f137b[_0x1a5b('0x1a')]==_0x32e3a8);let _0x222943=_0x32e3a8,_0x1edddc='';return _0x34ae3a&&(_0x222943=_0x34ae3a[_0x1a5b('0x7')],_0x1edddc=_0x36fa66(_0x222943)[_0x1a5b('0x15')]()),{'type':_0x1a5b('0x1d'),'content':_0x1fc160(_0x2d5675,_0x1a5b('0x1f'),_0x1edddc)[_0x1a5b('0x0')](),'color':{'value':_0x32e3a8,'title':_0x1edddc||_0x222943}};}return{'type':_0x1a5b('0x1d'),'content':_0x1fc160(_0x2d5675,_0x1a5b('0x1'))};}}});}}
@@ -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/formatpainter
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 Format Painter 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 _0xf889=['length','title','join','formatInline','copyFormat','get','fontSize','toUpperCase','model','*Remove\x20all\x20formatting*','entries','charAt','find','commandName','commands','formatBlock','plugins','label','fontBackgroundColor','locale','afterInit','registerDescriptionCallback','TrackChangesEditing','toLowerCase','fontSize.options','editor','format','fontColor','fontColor.colors','config','*Set\x20format\x20to:*\x20%0','FontSize','normalizeSizeOptions','slice','pasteFormat','_registerLegacyDescription'];(function(_0x21241e,_0xf889c9){const _0x30afd1=function(_0x9f2116){while(--_0x9f2116){_0x21241e['push'](_0x21241e['shift']());}};_0x30afd1(++_0xf889c9);}(_0xf889,0xef));const _0x30af=function(_0x21241e,_0xf889c9){_0x21241e=_0x21241e-0x0;let _0x30afd1=_0xf889[_0x21241e];return _0x30afd1;};import{Plugin as _0x43b9b8}from'ckeditor5/src/core';import{normalizeColorOptions as _0x5b16f8}from'ckeditor5/src/ui';import{getTranslation as _0x156b40}from'../utils/common-translations';export default class Q extends _0x43b9b8{[_0x30af('0x21')](){const _0x39598c=this[_0x30af('0x2')],_0x4de173=_0x39598c[_0x30af('0x1d')][_0x30af('0x12')](_0x30af('0x23')),_0xfcfbe8=_0x39598c[_0x30af('0x1b')][_0x30af('0x12')]('copyFormat'),_0x557573=_0x39598c[_0x30af('0x1b')]['get'](_0x30af('0xb'));_0xfcfbe8&&_0x557573&&(_0x4de173['_enableDefaultAttributesIntegration'](_0x30af('0xb')),_0x4de173['enableCommand'](_0x30af('0x11')),this[_0x30af('0xc')]());}[_0x30af('0xc')](){const _0x5aa7d1=this['editor'],_0x19ffc8=_0x5aa7d1[_0x30af('0x20')];_0x5aa7d1[_0x30af('0x1d')][_0x30af('0x12')]('TrackChangesEditing')['_descriptionFactory'][_0x30af('0x22')](_0x50144d=>{if(_0x30af('0x1c')!=_0x50144d['type']&&_0x30af('0x10')!=_0x50144d['type'])return;const {data:_0x555632}=_0x50144d;if(_0x555632&&_0x30af('0xb')===_0x555632[_0x30af('0x1a')]){const _0x1978c9=[],_0x3cede1=_0x555632['commandParams'][0x0];for(const [_0x4cc771,_0x30d47a]of Object[_0x30af('0x17')](_0x3cede1))_0x1978c9['push'](ao(_0x5aa7d1,_0x4cc771,_0x30d47a));return _0x1978c9[_0x30af('0xd')]?{'type':_0x30af('0x3'),'content':_0x156b40(_0x19ffc8,_0x30af('0x7'),_0x1978c9[_0x30af('0xf')](',\x20'))}:{'type':_0x30af('0x3'),'content':_0x156b40(_0x19ffc8,_0x30af('0x16'))};}});}}function ao(_0x18c64f,_0x35f922,_0x19244d){const _0x4c5891=_0x18c64f['locale']['t'],_0x5baddf=_0x35f922['split'](/(?=[A-Z])/)[_0x30af('0xf')]('\x20'),_0x2cd5c5=_0x4c5891(_0x5baddf[_0x30af('0x18')](0x0)[_0x30af('0x14')]()+_0x5baddf[_0x30af('0xa')](0x1))[_0x30af('0x0')]();if('boolean'==typeof _0x19244d)return _0x2cd5c5;if(_0x30af('0x4')===_0x35f922||_0x30af('0x1f')===_0x35f922){const _0x21a5e8=_0x5b16f8(_0x18c64f['config']['get'](_0x30af('0x5')))[_0x30af('0x19')](_0x28e321=>_0x28e321[_0x30af('0x15')]==_0x19244d);return _0x2cd5c5+'\x20('+(_0x21a5e8?_0x4c5891(_0x21a5e8[_0x30af('0x1e')])['toLowerCase']():_0x19244d)+')';}if(_0x30af('0x13')===_0x35f922&&isNaN(parseFloat(_0x19244d))){const _0xd7dc42=_0x18c64f['plugins'][_0x30af('0x12')](_0x30af('0x8'))[_0x30af('0x9')](_0x18c64f[_0x30af('0x6')][_0x30af('0x12')](_0x30af('0x1')))['find'](_0x49d964=>_0x49d964[_0x30af('0x15')]==_0x19244d);return _0x2cd5c5+'\x20('+(_0xd7dc42?_0x4c5891(_0xd7dc42[_0x30af('0xe')])[_0x30af('0x0')]():_0x19244d)+')';}return _0x2cd5c5+'\x20('+_0x19244d+')';}
23
+ const _0x2952=['enableCommand','commandName','*Remove\x20all\x20formatting*','formatInline','join','label','boolean','find','model','registerDescriptionCallback','fontColor','pasteFormat','get','commandParams','editor','split','length','_enableDefaultAttributesIntegration','format','commands','slice','toLowerCase','*Set\x20format\x20to:*\x20%0','fontSize','copyFormat','config','FontSize','type','normalizeSizeOptions','fontSize.options','formatBlock','locale','fontColor.colors','TrackChangesEditing','plugins','afterInit','_registerLegacyDescription','_descriptionFactory'];(function(_0x170f18,_0x295230){const _0x5b26b0=function(_0x1ffc1d){while(--_0x1ffc1d){_0x170f18['push'](_0x170f18['shift']());}};_0x5b26b0(++_0x295230);}(_0x2952,0xc4));const _0x5b26=function(_0x170f18,_0x295230){_0x170f18=_0x170f18-0x0;let _0x5b26b0=_0x2952[_0x170f18];return _0x5b26b0;};import{Plugin as _0x3d43fc}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x28581e}from'ckeditor5/src/ui.js';import{getTranslation as _0x2e553f}from'../utils/common-translations.js';export default class X extends _0x3d43fc{[_0x5b26('0x1d')](){const _0x5761e2=this[_0x5b26('0x8')],_0x35a96a=_0x5761e2[_0x5b26('0x1c')][_0x5b26('0x6')](_0x5b26('0x1b')),_0x330367=_0x5761e2[_0x5b26('0xd')][_0x5b26('0x6')](_0x5b26('0x12')),_0x2982c0=_0x5761e2[_0x5b26('0xd')]['get'](_0x5b26('0x5'));_0x330367&&_0x2982c0&&(_0x35a96a[_0x5b26('0xb')](_0x5b26('0x5')),_0x35a96a[_0x5b26('0x20')](_0x5b26('0x12')),this[_0x5b26('0x1e')]());}[_0x5b26('0x1e')](){const _0x2f5499=this[_0x5b26('0x8')],_0x238f8c=_0x2f5499[_0x5b26('0x19')];_0x2f5499['plugins'][_0x5b26('0x6')](_0x5b26('0x1b'))[_0x5b26('0x1f')][_0x5b26('0x3')](_0x579ffb=>{if(_0x5b26('0x18')!=_0x579ffb[_0x5b26('0x15')]&&_0x5b26('0x23')!=_0x579ffb['type'])return;const {data:_0x2f5b55}=_0x579ffb;if(_0x2f5b55&&_0x5b26('0x5')===_0x2f5b55[_0x5b26('0x21')]){const _0x228ceb=[],_0x19269c=_0x2f5b55[_0x5b26('0x7')][0x0];for(const [_0x219c32,_0x3e4a83]of Object['entries'](_0x19269c))_0x228ceb['push'](so(_0x2f5499,_0x219c32,_0x3e4a83));return _0x228ceb[_0x5b26('0xa')]?{'type':_0x5b26('0xc'),'content':_0x2e553f(_0x238f8c,_0x5b26('0x10'),_0x228ceb[_0x5b26('0x24')](',\x20'))}:{'type':_0x5b26('0xc'),'content':_0x2e553f(_0x238f8c,_0x5b26('0x22'))};}});}}function so(_0x5bf746,_0x1d40d7,_0x47db30){const _0x107716=_0x5bf746[_0x5b26('0x19')]['t'],_0x1d7d0e=_0x1d40d7[_0x5b26('0x9')](/(?=[A-Z])/)['join']('\x20'),_0x1a1c28=_0x107716(_0x1d7d0e['charAt'](0x0)['toUpperCase']()+_0x1d7d0e[_0x5b26('0xe')](0x1))[_0x5b26('0xf')]();if(_0x5b26('0x0')==typeof _0x47db30)return _0x1a1c28;if(_0x5b26('0x4')===_0x1d40d7||'fontBackgroundColor'===_0x1d40d7){const _0x65e3f6=_0x28581e(_0x5bf746['config'][_0x5b26('0x6')](_0x5b26('0x1a')))[_0x5b26('0x1')](_0x186a6e=>_0x186a6e[_0x5b26('0x2')]==_0x47db30);return _0x1a1c28+'\x20('+(_0x65e3f6?_0x107716(_0x65e3f6[_0x5b26('0x25')])[_0x5b26('0xf')]():_0x47db30)+')';}if(_0x5b26('0x11')===_0x1d40d7&&isNaN(parseFloat(_0x47db30))){const _0x44787e=_0x5bf746[_0x5b26('0x1c')]['get'](_0x5b26('0x14'))[_0x5b26('0x16')](_0x5bf746[_0x5b26('0x13')]['get'](_0x5b26('0x17')))['find'](_0x27445b=>_0x27445b[_0x5b26('0x2')]==_0x47db30);return _0x1a1c28+'\x20('+(_0x44787e?_0x107716(_0x44787e['title'])['toLowerCase']():_0x47db30)+')';}return _0x1a1c28+'\x20('+_0x47db30+')';}
@@ -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/heading
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 heading 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 _0x4cd9=['afterInit','*Change\x20to:*\x20%0','formatBlock','heading','name','plugins','has','commandParams','get','registerElementLabel','locale','paragraph','match','model','_registerLegacyDescription','ELEMENT_HEADING','format','TrackChangesEditing','_descriptionFactory','_getHeadingLevel','find','_headingOptions','config','editor','value','heading.options','view','ELEMENT_HEADING_CUSTOM'];(function(_0x46628b,_0x4cd9e1){const _0x4a2372=function(_0x4d3c9d){while(--_0x4d3c9d){_0x46628b['push'](_0x46628b['shift']());}};_0x4a2372(++_0x4cd9e1);}(_0x4cd9,0x18b));const _0x4a23=function(_0x46628b,_0x4cd9e1){_0x46628b=_0x46628b-0x0;let _0x4a2372=_0x4cd9[_0x46628b];return _0x4a2372;};import{Plugin as _0x45b526}from'ckeditor5/src/core';import{getTranslation as _0xaf03b8}from'../utils/common-translations';export default class X extends _0x45b526{[_0x4a23('0x19')](){const _0x13beeb=this['editor'];if(!_0x13beeb[_0x4a23('0x2')][_0x4a23('0x3')]('HeadingEditing'))return;this[_0x4a23('0x12')]=_0x13beeb[_0x4a23('0x13')]['get'](_0x4a23('0x16'));const _0x5cca3e=_0x13beeb[_0x4a23('0x7')],_0x38ed64=_0x13beeb[_0x4a23('0x2')]['get'](_0x4a23('0xe'));_0x38ed64['_enableDefaultAttributesIntegration'](_0x4a23('0x0'));for(const _0x29a384 of this[_0x4a23('0x12')])_0x4a23('0x8')!=_0x29a384['model']&&_0x38ed64['_descriptionFactory'][_0x4a23('0x6')](_0x29a384['model'],_0x4f6509=>{const _0xac485b=this['_getHeadingLevel'](_0x29a384['model']);return null!==_0xac485b?_0x175fb0(_0x4f6509,_0xac485b):_0x449a81(_0x4f6509,_0x29a384['title']);});function _0x175fb0(_0x343090,_0x281c50){return _0xaf03b8(_0x5cca3e,_0x4a23('0xc'),[_0x343090,_0x281c50]);}function _0x449a81(_0x4db335,_0x41b5d8){return _0xaf03b8(_0x5cca3e,_0x4a23('0x18'),[_0x4db335,_0x41b5d8]);}this[_0x4a23('0xb')]();}['_registerLegacyDescription'](){const _0x28264f=this[_0x4a23('0x14')],_0x207678=_0x28264f[_0x4a23('0x7')];function _0x59bc2b(_0x470d1d,_0x6c4a9d){return _0xaf03b8(_0x207678,'ELEMENT_HEADING_CUSTOM',[_0x470d1d,_0x6c4a9d]);}_0x28264f[_0x4a23('0x2')][_0x4a23('0x5')](_0x4a23('0xe'))[_0x4a23('0xf')]['registerDescriptionCallback'](_0x507752=>{if(_0x4a23('0x1b')!=_0x507752['type'])return;const {data:_0x3ea5dd}=_0x507752;if(_0x3ea5dd&&'heading'==_0x3ea5dd['commandName']){const _0x1c9d57=_0x3ea5dd[_0x4a23('0x4')][0x0][_0x4a23('0x15')],_0x295024=this[_0x4a23('0x10')](_0x1c9d57);if(null!==_0x295024)return{'type':_0x4a23('0xd'),'content':_0xaf03b8(_0x207678,_0x4a23('0x1a'),(_0x59d510=0x1,_0x3d8eb8=_0x295024,_0xaf03b8(_0x207678,_0x4a23('0xc'),[_0x59d510,_0x3d8eb8])))};const _0x536399=this[_0x4a23('0x12')][_0x4a23('0x11')](_0x36dc4c=>_0x36dc4c[_0x4a23('0xa')]===_0x1c9d57)['title'];return{'type':_0x4a23('0xd'),'content':_0xaf03b8(_0x207678,_0x4a23('0x1a'),_0x59bc2b(0x1,_0x536399))};}var _0x59d510,_0x3d8eb8;});}[_0x4a23('0x10')](_0x35053d){var _0x4133c0,_0xf5b155;const _0x5559c7=_0x35053d[_0x4a23('0x9')](/^heading(\d+)/);if(_0x5559c7)return _0x5559c7[0x1];const _0x3e2743=null===(_0x4133c0=this['_headingOptions'])||void 0x0===_0x4133c0?void 0x0:_0x4133c0[_0x4a23('0x11')](_0x407d29=>_0x407d29[_0x4a23('0xa')]==_0x35053d);if(_0x3e2743&&_0x3e2743[_0x4a23('0x17')]){const _0x355940=_0x3e2743['view'],_0xc805e7=(null!==(_0xf5b155=_0x355940[_0x4a23('0x1')])&&void 0x0!==_0xf5b155?_0xf5b155:_0x355940)[_0x4a23('0x9')](/^h(\d+)/);if(_0xc805e7)return _0xc805e7[0x1];}return null;}}
23
+ const _0x595b=['config','heading','has','_headingOptions','title','model','plugins','ELEMENT_HEADING','heading.options','commandName','editor','*Change\x20to:*\x20%0','TrackChangesEditing','_enableDefaultAttributesIntegration','ELEMENT_HEADING_CUSTOM','registerElementLabel','format','commandParams','type','afterInit','_registerLegacyDescription','_getHeadingLevel','locale','formatBlock','find','value','get'];(function(_0x57740a,_0x595b8f){const _0x4b30e0=function(_0x3eec43){while(--_0x3eec43){_0x57740a['push'](_0x57740a['shift']());}};_0x4b30e0(++_0x595b8f);}(_0x595b,0x1d3));const _0x4b30=function(_0x57740a,_0x595b8f){_0x57740a=_0x57740a-0x0;let _0x4b30e0=_0x595b[_0x57740a];return _0x4b30e0;};import{Plugin as _0x583501}from'ckeditor5/src/core.js';import{getTranslation as _0x5555ff}from'../utils/common-translations.js';export default class Y extends _0x583501{[_0x4b30('0xb')](){const _0x25f047=this[_0x4b30('0x2')];if(!_0x25f047['plugins'][_0x4b30('0x15')]('HeadingEditing'))return;this[_0x4b30('0x16')]=_0x25f047[_0x4b30('0x13')][_0x4b30('0x12')](_0x4b30('0x0'));const _0x2717ae=_0x25f047[_0x4b30('0xe')],_0x62ae31=_0x25f047[_0x4b30('0x19')]['get']('TrackChangesEditing');_0x62ae31[_0x4b30('0x5')](_0x4b30('0x14'));for(const _0x1e293d of this[_0x4b30('0x16')])'paragraph'!=_0x1e293d[_0x4b30('0x18')]&&_0x62ae31['_descriptionFactory'][_0x4b30('0x7')](_0x1e293d[_0x4b30('0x18')],_0x217c25=>{const _0x145d6e=this[_0x4b30('0xd')](_0x1e293d[_0x4b30('0x18')]);return null!==_0x145d6e?_0x344341(_0x217c25,_0x145d6e):_0x5694eb(_0x217c25,_0x1e293d[_0x4b30('0x17')]);});function _0x344341(_0x538b20,_0x5c4fe9){return _0x5555ff(_0x2717ae,_0x4b30('0x1a'),[_0x538b20,_0x5c4fe9]);}function _0x5694eb(_0x93e228,_0x38a895){return _0x5555ff(_0x2717ae,_0x4b30('0x6'),[_0x93e228,_0x38a895]);}this[_0x4b30('0xc')]();}[_0x4b30('0xc')](){const _0x592293=this[_0x4b30('0x2')],_0x5916f6=_0x592293['locale'];function _0x5ba550(_0x13572a,_0x5ee815){return _0x5555ff(_0x5916f6,_0x4b30('0x6'),[_0x13572a,_0x5ee815]);}_0x592293[_0x4b30('0x19')][_0x4b30('0x12')](_0x4b30('0x4'))['_descriptionFactory']['registerDescriptionCallback'](_0x2de3d1=>{if(_0x4b30('0xf')!=_0x2de3d1[_0x4b30('0xa')])return;const {data:_0x45f256}=_0x2de3d1;if(_0x45f256&&_0x4b30('0x14')==_0x45f256[_0x4b30('0x1')]){const _0x3634fc=_0x45f256[_0x4b30('0x9')][0x0][_0x4b30('0x11')],_0x135bb4=this[_0x4b30('0xd')](_0x3634fc);if(null!==_0x135bb4)return{'type':_0x4b30('0x8'),'content':_0x5555ff(_0x5916f6,_0x4b30('0x3'),(_0x4d2a2b=0x1,_0x573d2c=_0x135bb4,_0x5555ff(_0x5916f6,_0x4b30('0x1a'),[_0x4d2a2b,_0x573d2c])))};const _0x286b1e=this[_0x4b30('0x16')][_0x4b30('0x10')](_0x5f52af=>_0x5f52af[_0x4b30('0x18')]===_0x3634fc)[_0x4b30('0x17')];return{'type':'format','content':_0x5555ff(_0x5916f6,_0x4b30('0x3'),_0x5ba550(0x1,_0x286b1e))};}var _0x4d2a2b,_0x573d2c;});}['_getHeadingLevel'](_0x1606f7){var _0x553ffa,_0x2fd64a;const _0x44af23=_0x1606f7['match'](/^heading(\d+)/);if(_0x44af23)return _0x44af23[0x1];const _0x135be2=null===(_0x553ffa=this[_0x4b30('0x16')])||void 0x0===_0x553ffa?void 0x0:_0x553ffa['find'](_0x5af897=>_0x5af897['model']==_0x1606f7);if(_0x135be2&&_0x135be2['view']){const _0x398d19=_0x135be2['view'],_0x44192e=(null!==(_0x2fd64a=_0x398d19['name'])&&void 0x0!==_0x2fd64a?_0x2fd64a:_0x398d19)['match'](/^h(\d+)/);if(_0x44192e)return _0x44192e[0x1];}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/highlight
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 highlight 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 _0x2010=['model','title','*Set\x20highlight:*\x20%0','get','*Remove\x20highlight*','highlight','FORMAT_HIGHLIGHT','registerAttributeLabel','toLowerCase','format','formatInline','find','_enableDefaultAttributesIntegration','TrackChangesEditing','afterInit','_registerLegacyDescription','commandName','locale','config','editor','highlight.options','commandParams','_descriptionFactory','plugins','has'];(function(_0x50ea02,_0x2010f0){const _0x24de85=function(_0x3d75f1){while(--_0x3d75f1){_0x50ea02['push'](_0x50ea02['shift']());}};_0x24de85(++_0x2010f0);}(_0x2010,0x1b8));const _0x24de=function(_0x50ea02,_0x2010f0){_0x50ea02=_0x50ea02-0x0;let _0x24de85=_0x2010[_0x50ea02];return _0x24de85;};import{Plugin as _0x448af1}from'ckeditor5/src/core';import{getTranslation as _0x3fbcdb}from'../utils/common-translations';export default class Y extends _0x448af1{[_0x24de('0x18')](){const _0x35b1d3=this[_0x24de('0x4')];if(!_0x35b1d3[_0x24de('0x8')][_0x24de('0x9')]('HighlightEditing'))return;const _0x484b32=_0x35b1d3[_0x24de('0x8')]['get'](_0x24de('0x17')),_0x3893c5=_0x35b1d3[_0x24de('0x2')];_0x484b32[_0x24de('0x16')]('highlight',[_0x24de('0xf')]),_0x484b32['_descriptionFactory'][_0x24de('0x11')](_0x24de('0xf'),_0x3fbcdb(_0x3893c5,_0x24de('0x10'))),this[_0x24de('0x0')]();}[_0x24de('0x0')](){const _0x125c14=this[_0x24de('0x4')],_0x1bc490=_0x125c14[_0x24de('0x2')];_0x125c14[_0x24de('0x8')][_0x24de('0xd')]('TrackChangesEditing')[_0x24de('0x7')]['registerDescriptionCallback'](_0x45c640=>{if(_0x24de('0x14')!=_0x45c640['type'])return;const {data:_0x1c822c}=_0x45c640;if(_0x1c822c&&_0x24de('0xf')==_0x1c822c[_0x24de('0x1')]){const _0x527469=_0x1bc490['t'],_0x4c82dd=_0x1c822c[_0x24de('0x6')][0x0]['value'];if(_0x4c82dd){const _0x264ce6=_0x125c14[_0x24de('0x3')]['get'](_0x24de('0x5'))[_0x24de('0x15')](_0x5801ae=>_0x5801ae[_0x24de('0xa')]==_0x4c82dd),_0x3aa4eb=_0x527469(_0x264ce6[_0x24de('0xb')])[_0x24de('0x12')]();return{'type':_0x24de('0x13'),'content':_0x3fbcdb(_0x1bc490,_0x24de('0xc'),_0x3aa4eb),'color':{'value':_0x264ce6['color'],'title':_0x264ce6[_0x24de('0xb')]}};}return{'type':_0x24de('0x13'),'content':_0x3fbcdb(_0x1bc490,_0x24de('0xe'),_0x3fbcdb(_0x1bc490,_0x24de('0x10')))};}});}}
23
+ const _0x548f=['commandName','has','color','config','locale','registerAttributeLabel','highlight.options','plugins','_descriptionFactory','_registerLegacyDescription','model','toLowerCase','FORMAT_HIGHLIGHT','title','editor','highlight','TrackChangesEditing','find'];(function(_0x19abab,_0x548f23){const _0x57aee9=function(_0x4a96d5){while(--_0x4a96d5){_0x19abab['push'](_0x19abab['shift']());}};_0x57aee9(++_0x548f23);}(_0x548f,0xcf));const _0x57ae=function(_0x19abab,_0x548f23){_0x19abab=_0x19abab-0x0;let _0x57aee9=_0x548f[_0x19abab];return _0x57aee9;};import{Plugin as _0x487f5f}from'ckeditor5/src/core.js';import{getTranslation as _0x354afe}from'../utils/common-translations.js';export default class Z extends _0x487f5f{['afterInit'](){const _0x3ea539=this[_0x57ae('0x5')];if(!_0x3ea539[_0x57ae('0x10')][_0x57ae('0xa')]('HighlightEditing'))return;const _0x5ae5ce=_0x3ea539[_0x57ae('0x10')]['get'](_0x57ae('0x7')),_0x49971c=_0x3ea539[_0x57ae('0xd')];_0x5ae5ce['_enableDefaultAttributesIntegration'](_0x57ae('0x6'),[_0x57ae('0x6')]),_0x5ae5ce[_0x57ae('0x11')][_0x57ae('0xe')](_0x57ae('0x6'),_0x354afe(_0x49971c,_0x57ae('0x3'))),this[_0x57ae('0x0')]();}[_0x57ae('0x0')](){const _0x3ea04f=this[_0x57ae('0x5')],_0x340a70=_0x3ea04f['locale'];_0x3ea04f[_0x57ae('0x10')]['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xba8c7a=>{if('formatInline'!=_0xba8c7a['type'])return;const {data:_0xc1565b}=_0xba8c7a;if(_0xc1565b&&_0x57ae('0x6')==_0xc1565b[_0x57ae('0x9')]){const _0x5902b6=_0x340a70['t'],_0x5b962f=_0xc1565b['commandParams'][0x0]['value'];if(_0x5b962f){const _0x28ff76=_0x3ea04f[_0x57ae('0xc')]['get'](_0x57ae('0xf'))[_0x57ae('0x8')](_0x5d074f=>_0x5d074f[_0x57ae('0x1')]==_0x5b962f),_0x5ad66a=_0x5902b6(_0x28ff76[_0x57ae('0x4')])[_0x57ae('0x2')]();return{'type':'format','content':_0x354afe(_0x340a70,'*Set\x20highlight:*\x20%0',_0x5ad66a),'color':{'value':_0x28ff76[_0x57ae('0xb')],'title':_0x28ff76['title']}};}return{'type':'format','content':_0x354afe(_0x340a70,'*Remove\x20highlight*',_0x354afe(_0x340a70,_0x57ae('0x3')))};}});}}
@@ -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/horizontalline
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:horizontal-line/horizontalline~HorizontalLine horizontal line 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 _0x1373=['ck-horizontal-line','div','afterInit','has','elementToStructure','dataDowncast','get','HorizontalLineEditing','enableCommand','horizontalLine','conversion','addClass','TrackChangesEditing','insert','registerElementLabel','editor','locale','plugins','createEmptyElement','ELEMENT_HORIZONTAL_LINE','createContainerElement'];(function(_0x3f1c5b,_0x13730c){const _0x4cd3ec=function(_0x3a58cd){while(--_0x3a58cd){_0x3f1c5b['push'](_0x3f1c5b['shift']());}};_0x4cd3ec(++_0x13730c);}(_0x1373,0x16d));const _0x4cd3=function(_0x3f1c5b,_0x13730c){_0x3f1c5b=_0x3f1c5b-0x0;let _0x4cd3ec=_0x1373[_0x3f1c5b];return _0x4cd3ec;};import{Plugin as _0x22cc4f}from'ckeditor5/src/core';import{getTranslation as _0x4077da}from'../utils/common-translations';export default class Z extends _0x22cc4f{[_0x4cd3('0xf')](){const _0x3d3f45=this[_0x4cd3('0x7')];if(!_0x3d3f45[_0x4cd3('0x9')][_0x4cd3('0x10')](_0x4cd3('0x14')))return;_0x3d3f45['plugins']['get']('TrackChangesEditing')[_0x4cd3('0x0')]('horizontalLine');const _0x347088=_0x3d3f45['plugins'][_0x4cd3('0x13')](_0x4cd3('0x4')),_0x3840cb=_0x3d3f45[_0x4cd3('0x8')];_0x347088['_descriptionFactory'][_0x4cd3('0x6')](_0x4cd3('0x1'),_0x5b308e=>_0x4077da(_0x3840cb,_0x4cd3('0xb'),_0x5b308e)),_0x3d3f45[_0x4cd3('0x2')]['for'](_0x4cd3('0x12'))[_0x4cd3('0x11')]({'model':_0x4cd3('0x1'),'view':(_0x169297,{writer:_0x3ce9a9,options:_0x19034a})=>{if(!_0x19034a['showSuggestionHighlights'])return null;const _0x4679ec=_0x3ce9a9[_0x4cd3('0xc')](_0x4cd3('0xe')),_0x55913d=_0x3ce9a9[_0x4cd3('0xa')]('hr');return _0x3ce9a9[_0x4cd3('0x3')](_0x4cd3('0xd'),_0x4679ec),_0x3ce9a9[_0x4cd3('0x5')](_0x3ce9a9['createPositionAt'](_0x4679ec,0x0),_0x55913d),_0x4679ec;},'converterPriority':'high'});}}
23
+ const _0xbe0b=['createEmptyElement','registerElementLabel','ELEMENT_HORIZONTAL_LINE','TrackChangesEditing','high','insert','ck-horizontal-line','plugins','addClass','_descriptionFactory','editor','has','HorizontalLineEditing','horizontalLine','div','elementToStructure','showSuggestionHighlights','dataDowncast','for','get','conversion','locale'];(function(_0x75a6e6,_0xbe0b06){const _0x200930=function(_0x2260f1){while(--_0x2260f1){_0x75a6e6['push'](_0x75a6e6['shift']());}};_0x200930(++_0xbe0b06);}(_0xbe0b,0x82));const _0x2009=function(_0x75a6e6,_0xbe0b06){_0x75a6e6=_0x75a6e6-0x0;let _0x200930=_0xbe0b[_0x75a6e6];return _0x200930;};import{Plugin as _0x591cf0}from'ckeditor5/src/core.js';import{getTranslation as _0x2a09d4}from'../utils/common-translations.js';export default class tt extends _0x591cf0{['afterInit'](){const _0x47cb25=this[_0x2009('0xc')];if(!_0x47cb25[_0x2009('0x9')][_0x2009('0xd')](_0x2009('0xe')))return;_0x47cb25[_0x2009('0x9')][_0x2009('0x15')](_0x2009('0x5'))['enableCommand'](_0x2009('0xf'));const _0x4e1dd0=_0x47cb25['plugins'][_0x2009('0x15')](_0x2009('0x5')),_0x166fe7=_0x47cb25[_0x2009('0x1')];_0x4e1dd0[_0x2009('0xb')][_0x2009('0x3')]('horizontalLine',_0x3f6a7b=>_0x2a09d4(_0x166fe7,_0x2009('0x4'),_0x3f6a7b)),_0x47cb25[_0x2009('0x0')][_0x2009('0x14')](_0x2009('0x13'))[_0x2009('0x11')]({'model':_0x2009('0xf'),'view':(_0x4cd7ed,{writer:_0x5c1e89,options:_0x195162})=>{if(!_0x195162[_0x2009('0x12')])return null;const _0x5aad39=_0x5c1e89['createContainerElement'](_0x2009('0x10')),_0xa1903c=_0x5c1e89[_0x2009('0x2')]('hr');return _0x5c1e89[_0x2009('0xa')](_0x2009('0x8'),_0x5aad39),_0x5c1e89[_0x2009('0x7')](_0x5c1e89['createPositionAt'](_0x5aad39,0x0),_0xa1903c),_0x5aad39;},'converterPriority':_0x2009('0x6')});}}
@@ -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/htmlembed
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:html-embed/htmlembed~HtmlEmbed HTML Embed 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 _0x1efc=['_registerLegacyDescription','nodeAfter','editor','_descriptionFactory','attribute','format','_enableDefaultAttributesIntegration','value','commandName','get','rawHtml','plugins','formatBlock','getFirstRange','TrackChangesEditing','key','has','ELEMENT_HTML_EMBED','locale','type','htmlEmbed','afterInit'];(function(_0xe2d45c,_0x1efc41){const _0x197ff9=function(_0x37cce4){while(--_0x37cce4){_0xe2d45c['push'](_0xe2d45c['shift']());}};_0x197ff9(++_0x1efc41);}(_0x1efc,0x9f));const _0x197f=function(_0xe2d45c,_0x1efc41){_0xe2d45c=_0xe2d45c-0x0;let _0x197ff9=_0x1efc[_0xe2d45c];return _0x197ff9;};import{Plugin as _0x4f6c95}from'ckeditor5/src/core';import{getTranslation as _0x39cdc6}from'../utils/common-translations';export default class tt extends _0x4f6c95{[_0x197f('0x10')](){const _0x812e59=this['editor'];if(!_0x812e59[_0x197f('0x6')][_0x197f('0xb')]('HtmlEmbed'))return;const _0x4193cf=_0x812e59[_0x197f('0x6')][_0x197f('0x4')](_0x197f('0x9')),_0x26e918=_0x812e59[_0x197f('0xd')];_0x4193cf['_descriptionFactory']['registerElementLabel'](_0x197f('0x5'),_0x57af4a=>_0x39cdc6(_0x26e918,_0x197f('0xc'),_0x57af4a)),_0x4193cf[_0x197f('0x1')](_0x197f('0xf'),[],[_0x197f('0x2')]),_0x4193cf[_0x197f('0x14')]['registerDescriptionCallback'](_0x228835=>{if(_0x197f('0x15')!=_0x228835[_0x197f('0xe')])return;const {data:_0x362a9e}=_0x228835;if(_0x362a9e&&_0x197f('0x2')==_0x362a9e[_0x197f('0xa')]&&_0x228835[_0x197f('0x8')]()['start'][_0x197f('0x12')]['is']('element',_0x197f('0x5'))){const _0x5ab024=_0x39cdc6(_0x26e918,_0x197f('0xc'));return{'type':_0x197f('0x0'),'content':_0x39cdc6(_0x26e918,'*Change\x20%0\x20content*',_0x5ab024)};}}),this[_0x197f('0x11')]();}[_0x197f('0x11')](){const _0x376851=this[_0x197f('0x13')],_0x5c0d9b=_0x376851[_0x197f('0xd')];_0x376851['plugins'][_0x197f('0x4')](_0x197f('0x9'))[_0x197f('0x14')]['registerDescriptionCallback'](_0x160c3b=>{if(_0x197f('0x7')!=_0x160c3b[_0x197f('0xe')])return;const {data:_0x32e6b9}=_0x160c3b;if(_0x32e6b9&&_0x197f('0xf')==_0x32e6b9[_0x197f('0x3')]){const _0x3e4fd1=_0x39cdc6(_0x5c0d9b,_0x197f('0xc'));return{'type':_0x197f('0x0'),'content':_0x39cdc6(_0x5c0d9b,'*Change\x20%0\x20content*',_0x3e4fd1)};}});}}
23
+ const _0x25b4=['get','element','plugins','editor','formatBlock','_descriptionFactory','*Change\x20%0\x20content*','rawHtml','value','key','_enableDefaultAttributesIntegration','attribute','afterInit','ELEMENT_HTML_EMBED','_registerLegacyDescription','htmlEmbed','format','TrackChangesEditing','type','has','registerDescriptionCallback','locale','HtmlEmbed'];(function(_0x1a7697,_0x25b42b){const _0x582003=function(_0x45c940){while(--_0x45c940){_0x1a7697['push'](_0x1a7697['shift']());}};_0x582003(++_0x25b42b);}(_0x25b4,0xd3));const _0x5820=function(_0x1a7697,_0x25b42b){_0x1a7697=_0x1a7697-0x0;let _0x582003=_0x25b4[_0x1a7697];return _0x582003;};import{Plugin as _0x5a4698}from'ckeditor5/src/core.js';import{getTranslation as _0x106398}from'../utils/common-translations.js';export default class et extends _0x5a4698{[_0x5820('0x8')](){const _0xf21ba=this[_0x5820('0x16')];if(!_0xf21ba[_0x5820('0x15')][_0x5820('0xf')](_0x5820('0x12')))return;const _0x4e8add=_0xf21ba[_0x5820('0x15')]['get'](_0x5820('0xd')),_0x2e751e=_0xf21ba[_0x5820('0x11')];_0x4e8add[_0x5820('0x1')]['registerElementLabel'](_0x5820('0x3'),_0x51283c=>_0x106398(_0x2e751e,_0x5820('0x9'),_0x51283c)),_0x4e8add[_0x5820('0x6')](_0x5820('0xb'),[],['value']),_0x4e8add['_descriptionFactory'][_0x5820('0x10')](_0x80885a=>{if(_0x5820('0x7')!=_0x80885a[_0x5820('0xe')])return;const {data:_0x557dcd}=_0x80885a;if(_0x557dcd&&_0x5820('0x4')==_0x557dcd[_0x5820('0x5')]&&_0x80885a['getFirstRange']()['start']['nodeAfter']['is'](_0x5820('0x14'),'rawHtml')){const _0x3d5fcf=_0x106398(_0x2e751e,_0x5820('0x9'));return{'type':_0x5820('0xc'),'content':_0x106398(_0x2e751e,_0x5820('0x2'),_0x3d5fcf)};}}),this[_0x5820('0xa')]();}[_0x5820('0xa')](){const _0x5670de=this['editor'],_0x23b4ba=_0x5670de[_0x5820('0x11')];_0x5670de[_0x5820('0x15')][_0x5820('0x13')](_0x5820('0xd'))[_0x5820('0x1')][_0x5820('0x10')](_0x3cac5a=>{if(_0x5820('0x0')!=_0x3cac5a[_0x5820('0xe')])return;const {data:_0x479a69}=_0x3cac5a;if(_0x479a69&&_0x5820('0xb')==_0x479a69['commandName']){const _0x3c9d43=_0x106398(_0x23b4ba,_0x5820('0x9'));return{'type':_0x5820('0xc'),'content':_0x106398(_0x23b4ba,_0x5820('0x2'),_0x3c9d43)};}});}}
@@ -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/image
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:image/image~Image image 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 _0xe43f=['insertImage','join','ELEMENT_CAPTION','markBlockFormat','resizedWidth','uploadImage','ImageResize','registerDescriptionCallback','getClosestSelectedImageElement','insertion','ImageCaptionUtils','Inline\x20image\x20to\x20block\x20image','forceDefaultExecution','plugins','ImageUploadEditing','schema','toggleImageCaption','_registerLegacyDescription','ELEMENT_IMAGE','accept','*Set\x20image\x20width:*\x20%0','discard','convertBlockImageToInline','chain','imageTextAlternative','imageTypeBlock','filter','type','markInsertion','addObject','ImageBlockEditing','getFirstRange','registerAttributeLabel','has','subType','*Reset\x20image\x20width*','element','newValue','imageStylePreApply','isBlockImage','selection','backward','attribute','isCollapsed','TrackChangesEditing','getContainedElement','_descriptionFactory','commandName','imageTypeInline','caption','removeObject','previous','alt','fromPosition','findIndex','length','commandParams','formatBlock','_enableDefaultAttributesIntegration','deletion','*Remove\x20image\x20text\x20alternative*','width','*Set\x20image\x20text\x20alternative:*\x20%0','start','change','Block\x20image\x20to\x20inline\x20image','formatInline','detach','document','createRangeOn','ELEMENT_INLINE_IMAGE','imageInline','get','createRange','forward','registerCustomCallback','ImageInlineEditing','resizeImage','end','ImageUtils','ImageCaptionEditing','_findSuggestions','isBefore','_suggestionFactory','ImageEditing','imageCaption','toPrevious','afterInit','locale','markDeletion','getSuggestionCallback','isEqual','registerElementLabel','getCaptionFromImageModelElement','format','getNearestSelectionRange','model','convertInlineImageToBlock','editor','enableCommand'];(function(_0xd1f55d,_0xe43f02){const _0x340147=function(_0xa40b23){while(--_0xa40b23){_0xd1f55d['push'](_0xd1f55d['shift']());}};_0x340147(++_0xe43f02);}(_0xe43f,0x9b));const _0x3401=function(_0xd1f55d,_0xe43f02){_0xd1f55d=_0xd1f55d-0x0;let _0x340147=_0xe43f[_0xd1f55d];return _0x340147;};import{Plugin as _0x5dcdfa}from'ckeditor5/src/core';import{LivePosition as _0x2119ed}from'ckeditor5/src/engine';import{getTranslation as _0x3f9f62}from'../utils/common-translations';export default class it extends _0x5dcdfa{[_0x3401('0x20')](){const _0xaa49ea=this[_0x3401('0x2b')];if(!_0xaa49ea['plugins'][_0x3401('0x4e')](_0x3401('0x1d')))return;const _0x240e80=_0xaa49ea[_0x3401('0x3a')][_0x3401('0x11')](_0x3401('0x59')),_0x5a0cd4=_0xaa49ea[_0x3401('0x3a')][_0x3401('0x11')](_0x3401('0x18')),_0x2229f1=_0xaa49ea[_0x3401('0x21')];_0x240e80[_0x3401('0x2c')](_0x3401('0x2d')),_0x240e80[_0x3401('0x5b')][_0x3401('0x25')]('imageBlock',_0xe98673=>_0x3f9f62(_0x2229f1,_0x3401('0x3f'),_0xe98673)),_0x240e80[_0x3401('0x5b')][_0x3401('0x25')](_0x3401('0x10'),_0xaf0e8b=>_0x3f9f62(_0x2229f1,_0x3401('0xf'),_0xaf0e8b)),_0x240e80['_descriptionFactory'][_0x3401('0x25')](_0x3401('0x5e'),()=>_0x3f9f62(_0x2229f1,_0x3401('0x2f'))),_0xaa49ea[_0x3401('0x3a')][_0x3401('0x4e')](_0x3401('0x3b'))&&_0x240e80[_0x3401('0x2c')](_0x3401('0x32')),_0xaa49ea[_0x3401('0x3a')][_0x3401('0x4e')](_0x3401('0x4b'))&&_0xaa49ea[_0x3401('0x3a')]['has'](_0x3401('0x15'))&&(_0x240e80['enableCommand'](_0x3401('0x5d'),(_0x2a5d20,_0x426ed9)=>{const _0x45b272=_0x5a0cd4[_0x3401('0x35')](_0xaa49ea[_0x3401('0x29')][_0x3401('0xd')][_0x3401('0x55')]);_0xaa49ea['model'][_0x3401('0x9')](()=>{_0x240e80[_0x3401('0x30')](_0x45b272,{'commandName':_0x3401('0x5d'),'commandParams':[_0x426ed9]},[],'convertBlockImageToInline');});}),_0x240e80['enableCommand'](_0x3401('0x46'),(_0x3784c8,_0x2eada6)=>{_0xaa49ea['model'][_0x3401('0x9')](_0x50492c=>{let _0x465575=_0x5a0cd4[_0x3401('0x35')](_0xaa49ea['model'][_0x3401('0xd')][_0x3401('0x55')]),_0x5ce2b4=_0x50492c[_0x3401('0xe')](_0x465575);const _0x41ccf7=_0x2119ed[_0x3401('0x62')](_0x5ce2b4[_0x3401('0x8')],_0x3401('0x1f')),_0x4efcb8=_0x2119ed[_0x3401('0x62')](_0x5ce2b4[_0x3401('0x17')],'toNext');_0x240e80[_0x3401('0x39')](()=>_0x3784c8(_0x2eada6)),_0x465575=_0x5a0cd4[_0x3401('0x35')](_0xaa49ea[_0x3401('0x29')][_0x3401('0xd')]['selection']),_0x5ce2b4=_0x50492c[_0x3401('0xe')](_0x465575);const _0x373e1b=_0x50492c[_0x3401('0x12')](_0x41ccf7,_0x4efcb8);_0x41ccf7[_0x3401('0xc')](),_0x4efcb8[_0x3401('0xc')](),_0x240e80['markBlockFormat'](_0x465575,{'commandName':_0x3401('0x5d'),'commandParams':[_0x2eada6]},[],_0x3401('0x2a')),_0x373e1b[_0x3401('0x8')][_0x3401('0x1b')](_0x5ce2b4[_0x3401('0x8')])&&_0x240e80[_0x3401('0x49')](_0x50492c['createRange'](_0x373e1b[_0x3401('0x8')],_0x5ce2b4[_0x3401('0x8')]),_0x3401('0x2a')),_0x5ce2b4[_0x3401('0x17')]['isBefore'](_0x373e1b['end'])&&_0x240e80['markInsertion'](_0x50492c[_0x3401('0x12')](_0x5ce2b4['end'],_0x373e1b[_0x3401('0x17')]),_0x3401('0x2a'));});}),_0x240e80['_suggestionFactory'][_0x3401('0x14')]('formatBlock','convertInlineImageToBlock',_0x3401('0x2e'),()=>!0x1),_0x240e80[_0x3401('0x1c')][_0x3401('0x14')]('formatBlock',_0x3401('0x2a'),_0x3401('0x40'),()=>!0x1),_0x240e80['_suggestionFactory'][_0x3401('0x14')](_0x3401('0x2'),'convertInlineImageToBlock',_0x3401('0x42'),_0x240e80[_0x3401('0x1c')]['getSuggestionCallback'](_0x3401('0x2'),'',_0x3401('0x40'))),_0x240e80[_0x3401('0x1c')][_0x3401('0x14')](_0x3401('0x36'),_0x3401('0x2a'),_0x3401('0x2e'),()=>!0x1),_0x240e80['_suggestionFactory'][_0x3401('0x14')]('insertion',_0x3401('0x2a'),_0x3401('0x42'),([_0x2bbfa1])=>{const _0x46cc23=_0x240e80[_0x3401('0x1c')][_0x3401('0x23')]('insertion','',_0x3401('0x42'));let _0x108c7a=_0x2bbfa1[_0x3401('0x8')],_0x559f01=_0x2bbfa1['end'];const _0x50c655=_0xaa49ea[_0x3401('0x29')]['schema'][_0x3401('0x28')](_0x108c7a,_0x3401('0x56')),_0x4075a0=_0xaa49ea[_0x3401('0x29')][_0x3401('0x3c')][_0x3401('0x28')](_0x559f01,_0x3401('0x13'));_0x50c655[_0x3401('0x58')]&&(_0x108c7a=_0x50c655[_0x3401('0x8')]),_0x4075a0[_0x3401('0x58')]&&(_0x559f01=_0x4075a0[_0x3401('0x17')]),_0x46cc23([_0xaa49ea[_0x3401('0x29')][_0x3401('0x12')](_0x108c7a,_0x559f01)]);}),_0x240e80[_0x3401('0x1c')][_0x3401('0x14')](_0x3401('0x2'),'convertInlineImageToBlock','chain',_0x3c7385),_0x240e80[_0x3401('0x1c')]['registerCustomCallback'](_0x3401('0x36'),_0x3401('0x2a'),_0x3401('0x44'),_0x3c7385)),_0xaa49ea['plugins'][_0x3401('0x4e')](_0x3401('0x19'))&&(_0x240e80['enableCommand'](_0x3401('0x3d'),(_0x493f77,_0x4ea97e)=>{const _0x147e89=_0xaa49ea[_0x3401('0x3a')][_0x3401('0x11')](_0x3401('0x37'));let _0x2a4311=_0x5a0cd4[_0x3401('0x35')](_0xaa49ea[_0x3401('0x29')][_0x3401('0xd')][_0x3401('0x55')]),_0xc99877=_0x147e89[_0x3401('0x26')](_0x2a4311);_0xaa49ea['model'][_0x3401('0x9')](()=>{if(_0xc99877)return void _0x240e80[_0x3401('0x22')](_0xaa49ea[_0x3401('0x29')][_0x3401('0xe')](_0xc99877));const _0x21586a=_0x5a0cd4[_0x3401('0x54')](_0x2a4311);_0x493f77(_0x4ea97e),_0x2a4311=_0x5a0cd4[_0x3401('0x35')](_0xaa49ea[_0x3401('0x29')][_0x3401('0xd')][_0x3401('0x55')]),_0xc99877=_0x147e89[_0x3401('0x26')](_0x2a4311),_0x240e80['markInsertion'](_0xaa49ea[_0x3401('0x29')][_0x3401('0xe')](_0xc99877),_0x21586a?null:_0x3401('0x1e'));});}),_0x240e80['_suggestionFactory'][_0x3401('0x14')](_0x3401('0x36'),'imageCaption',_0x3401('0x44'),_0x3c7385));const _0x15d2ab=[{'type':_0x3401('0x2'),'subType':_0x3401('0x53')},{'type':_0x3401('0x36'),'subType':_0x3401('0x1e')},{'type':_0x3401('0x2'),'subType':'convertInlineImageToBlock'},{'type':_0x3401('0x36'),'subType':_0x3401('0x2a')}];function _0x1c87a9(_0x53ef52,_0x135836){const _0x36c19b=_0x15d2ab[_0x3401('0x63')](({type:_0x3bde70,subType:_0x35f6b1})=>_0x53ef52[_0x3401('0x48')]==_0x3bde70&&_0x53ef52['subType']==_0x35f6b1),_0x13fdb2=_0x15d2ab[_0x3401('0x63')](({type:_0x58a469,subType:_0x43aa3e})=>_0x135836['type']==_0x58a469&&_0x135836[_0x3401('0x4f')]==_0x43aa3e);if(_0x36c19b<0x0||_0x13fdb2<0x0)return!0x1;const _0x2110c0=_0x53ef52[_0x3401('0x4c')](),_0x49304a=_0x135836['getFirstRange']();if((0x0==_0x36c19b||0x1==_0x36c19b)&&0x2==_0x13fdb2&&_0x2110c0['isIntersecting'](_0x49304a))return!0x0;if(0x2==_0x36c19b&&0x3==_0x13fdb2){const _0x51039e=_0x240e80[_0x3401('0x1a')](_0x2110c0,_0x3401('0x36'))[_0x3401('0x47')](({suggestion:_0x5cb859,meta:_0x4c602f})=>_0x4c602f['isOwn']&&'convertInlineImageToBlock'==_0x5cb859[_0x3401('0x4f')]);if(_0x51039e[_0x3401('0x0')]>0x1&&_0x49304a[_0x3401('0x17')][_0x3401('0x24')](_0x2110c0[_0x3401('0x8')]))return!0x0;if(0x1==_0x51039e[_0x3401('0x0')]&&(_0x2110c0['start'][_0x3401('0x24')](_0x49304a['end'])||_0x2110c0[_0x3401('0x17')][_0x3401('0x24')](_0x49304a[_0x3401('0x8')])))return!0x0;}if(0x3==_0x36c19b&&0x3==_0x13fdb2&&_0x2110c0['start'][_0x3401('0x1b')](_0x49304a['start'])){const _0x4751b6=_0x2110c0[_0x3401('0x17')]['nodeAfter'],_0x5ba827=_0x49304a[_0x3401('0x8')]['nodeBefore'];return _0x5a0cd4[_0x3401('0x54')](_0x4751b6)&&_0x4751b6===_0x5ba827;}return!0x1;}function _0x3c7385(_0x355170,_0x4e8c6e){return _0x1c87a9(_0x355170,_0x4e8c6e)?[_0x355170,_0x4e8c6e]:_0x1c87a9(_0x4e8c6e,_0x355170)?[_0x4e8c6e,_0x355170]:null;}_0xaa49ea[_0x3401('0x3a')][_0x3401('0x4e')](_0x3401('0x33'))&&(_0x240e80[_0x3401('0x3')](_0x3401('0x16'),[],[_0x3401('0x31')]),_0x240e80[_0x3401('0x5b')][_0x3401('0x4d')](_0x3401('0x31'),_0x3f9f62(_0x2229f1,'FORMAT_IMAGE_SIZE'))),_0xaa49ea[_0x3401('0x3a')][_0x3401('0x4e')]('ImageTextAlternativeEditing')&&_0x240e80['_enableDefaultAttributesIntegration'](_0x3401('0x45'),[],['alt']),_0x240e80['_descriptionFactory'][_0x3401('0x34')](_0x239f41=>{if(!!_0x15d2ab['find'](({type:_0x2dfe0c,subType:_0x2fa7d2})=>_0x239f41[_0x3401('0x48')]==_0x2dfe0c&&_0x239f41[_0x3401('0x4f')]==_0x2fa7d2))return _0x239f41[_0x3401('0x60')]?{}:void 0x0;}),_0x240e80[_0x3401('0x5b')][_0x3401('0x34')](_0x3b3695=>{if(_0x3401('0x36')==_0x3b3695[_0x3401('0x48')]||_0x3401('0x4')==_0x3b3695['type']){const _0x578a4b=_0x3b3695[_0x3401('0x5a')]();if(_0x578a4b&&_0x578a4b['is'](_0x3401('0x51'),'caption'))return{'type':_0x3401('0x36')==_0x3b3695[_0x3401('0x48')]?_0x3401('0x4a'):_0x3401('0x5f'),'element':_0x578a4b,'quantity':0x1};}}),_0x240e80['_descriptionFactory'][_0x3401('0x34')](_0x853fa=>'formatBlock'==_0x853fa['type']&&_0x3401('0x2a')==_0x853fa[_0x3401('0x4f')]?{'type':_0x3401('0x27'),'content':_0x3401('0x38')}:_0x3401('0x2')==_0x853fa[_0x3401('0x48')]&&_0x3401('0x43')==_0x853fa[_0x3401('0x4f')]?{'type':_0x3401('0x27'),'content':_0x3401('0xa')}:void 0x0),_0x240e80[_0x3401('0x5b')][_0x3401('0x34')](_0x14effc=>{if(_0x3401('0x57')!=_0x14effc[_0x3401('0x48')])return;const {data:_0x32fd45}=_0x14effc;if(!_0x32fd45||_0x3401('0x61')!=_0x32fd45['key'])return;const _0x69bbc7=_0x32fd45[_0x3401('0x52')];return _0x69bbc7?{'type':'format','content':_0x3f9f62(_0x2229f1,_0x3401('0x7'),'\x22'+_0x69bbc7+'\x22')}:{'type':_0x3401('0x27'),'content':_0x3f9f62(_0x2229f1,_0x3401('0x5'))};}),this[_0x3401('0x3e')]();}[_0x3401('0x3e')](){const _0xb6595d=this[_0x3401('0x2b')],_0x437754=_0xb6595d[_0x3401('0x21')];_0xb6595d[_0x3401('0x3a')][_0x3401('0x11')](_0x3401('0x59'))['_descriptionFactory'][_0x3401('0x34')](_0x4aa741=>{if(_0x3401('0x2')!=_0x4aa741['type']&&_0x3401('0xb')!=_0x4aa741[_0x3401('0x48')])return;const {data:_0x5384c8}=_0x4aa741;if(_0x5384c8){if(_0x3401('0x45')==_0x5384c8[_0x3401('0x5c')]){const _0x49b6e3=_0x5384c8[_0x3401('0x1')][0x0][_0x3401('0x52')];return _0x49b6e3?{'type':'format','content':_0x3f9f62(_0x437754,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x49b6e3+'\x22')}:{'type':_0x3401('0x27'),'content':_0x3f9f62(_0x437754,_0x3401('0x5'))};}if(_0x3401('0x16')==_0x5384c8['commandName']){const _0xcf5e0d=_0x5384c8[_0x3401('0x1')][0x0][_0x3401('0x6')];return _0xcf5e0d?{'type':'format','content':_0x3f9f62(_0x437754,_0x3401('0x41'),_0xcf5e0d)}:{'type':_0x3401('0x27'),'content':_0x3f9f62(_0x437754,_0x3401('0x50'))};}}});}}
23
+ const _0x2133=['*Reset\x20image\x20width*','forward','getNearestSelectionRange','toNext','ImageTextAlternativeEditing','newValue','commandParams','discard','nodeBefore','filter','chain','start','formatInline','detach','markBlockFormat','registerCustomCallback','TrackChangesEditing','imageTypeInline','ImageCaptionUtils','_findSuggestions','_suggestionFactory','plugins','ELEMENT_CAPTION','previous','createRangeOn','ImageUtils','element','locale','isEqual','change','insertion','ImageUploadEditing','Inline\x20image\x20to\x20block\x20image','schema','get','registerDescriptionCallback','convertBlockImageToInline','markInsertion','getContainedElement','find','_descriptionFactory','imageTextAlternative','length','join','isOwn','fromPosition','end','imageStylePreApply','ELEMENT_IMAGE','ImageEditing','model','isCollapsed','isBefore','caption','imageCaption','findIndex','subType','commandName','type','toggleImageCaption','ImageInlineEditing','imageTypeBlock','selection','getSuggestionCallback','document','*Set\x20image\x20width:*\x20%0','format','enableCommand','createRange','registerElementLabel','has','formatBlock','imageInline','*Remove\x20image\x20text\x20alternative*','addObject','deletion','toPrevious','uploadImage','insertImage','forceDefaultExecution','nodeAfter','accept','Block\x20image\x20to\x20inline\x20image','*Set\x20image\x20text\x20alternative:*\x20%0','markDeletion','afterInit','backward','_registerLegacyDescription','width','getFirstRange','isBlockImage','editor','convertInlineImageToBlock','resizedWidth','removeObject','key','getClosestSelectedImageElement','imageBlock','isIntersecting','_enableDefaultAttributesIntegration','resizeImage'];(function(_0x4e89ba,_0x2133c3){const _0x2c55a9=function(_0x39f6b6){while(--_0x39f6b6){_0x4e89ba['push'](_0x4e89ba['shift']());}};_0x2c55a9(++_0x2133c3);}(_0x2133,0x1ae));const _0x2c55=function(_0x4e89ba,_0x2133c3){_0x4e89ba=_0x4e89ba-0x0;let _0x2c55a9=_0x2133[_0x4e89ba];return _0x2c55a9;};import{Plugin as _0xf96540}from'ckeditor5/src/core.js';import{LivePosition as _0x4f8d00}from'ckeditor5/src/engine.js';import{getTranslation as _0x59a6bc}from'../utils/common-translations.js';export default class it extends _0xf96540{[_0x2c55('0x3b')](){const _0x33dd42=this[_0x2c55('0x41')];if(!_0x33dd42[_0x2c55('0x60')]['has'](_0x2c55('0x17')))return;const _0x20712b=_0x33dd42[_0x2c55('0x60')][_0x2c55('0x8')](_0x2c55('0x5b')),_0x17fae1=_0x33dd42['plugins'][_0x2c55('0x8')](_0x2c55('0x64')),_0x1b4588=_0x33dd42['locale'];_0x20712b[_0x2c55('0x29')](_0x2c55('0x34')),_0x20712b[_0x2c55('0xe')][_0x2c55('0x2b')](_0x2c55('0x47'),_0x406e53=>_0x59a6bc(_0x1b4588,_0x2c55('0x16'),_0x406e53)),_0x20712b['_descriptionFactory'][_0x2c55('0x2b')](_0x2c55('0x2e'),_0x2b0722=>_0x59a6bc(_0x1b4588,'ELEMENT_INLINE_IMAGE',_0x2b0722)),_0x20712b[_0x2c55('0xe')][_0x2c55('0x2b')]('caption',()=>_0x59a6bc(_0x1b4588,_0x2c55('0x61'))),_0x33dd42[_0x2c55('0x60')][_0x2c55('0x2c')](_0x2c55('0x5'))&&_0x20712b[_0x2c55('0x29')](_0x2c55('0x33')),_0x33dd42[_0x2c55('0x60')][_0x2c55('0x2c')]('ImageBlockEditing')&&_0x33dd42[_0x2c55('0x60')][_0x2c55('0x2c')](_0x2c55('0x22'))&&(_0x20712b['enableCommand'](_0x2c55('0x5c'),(_0x236079,_0xd43dde)=>{const _0x5130d2=_0x17fae1['getClosestSelectedImageElement'](_0x33dd42['model']['document'][_0x2c55('0x24')]);_0x33dd42[_0x2c55('0x18')]['change'](()=>{_0x20712b[_0x2c55('0x59')](_0x5130d2,{'commandName':'imageTypeInline','commandParams':[_0xd43dde]},[],_0x2c55('0xa'));});}),_0x20712b[_0x2c55('0x29')](_0x2c55('0x23'),(_0x1d7b1b,_0x3a8620)=>{_0x33dd42['model'][_0x2c55('0x3')](_0x1e7e56=>{let _0x48f994=_0x17fae1[_0x2c55('0x46')](_0x33dd42[_0x2c55('0x18')]['document'][_0x2c55('0x24')]),_0x3e59d7=_0x1e7e56[_0x2c55('0x63')](_0x48f994);const _0x359245=_0x4f8d00[_0x2c55('0x13')](_0x3e59d7[_0x2c55('0x56')],_0x2c55('0x32')),_0x91630f=_0x4f8d00['fromPosition'](_0x3e59d7['end'],_0x2c55('0x4e'));_0x20712b[_0x2c55('0x35')](()=>_0x1d7b1b(_0x3a8620)),_0x48f994=_0x17fae1[_0x2c55('0x46')](_0x33dd42[_0x2c55('0x18')][_0x2c55('0x26')][_0x2c55('0x24')]),_0x3e59d7=_0x1e7e56['createRangeOn'](_0x48f994);const _0x11fd7e=_0x1e7e56[_0x2c55('0x2a')](_0x359245,_0x91630f);_0x359245['detach'](),_0x91630f[_0x2c55('0x58')](),_0x20712b[_0x2c55('0x59')](_0x48f994,{'commandName':'imageTypeInline','commandParams':[_0x3a8620]},[],_0x2c55('0x42')),_0x11fd7e[_0x2c55('0x56')][_0x2c55('0x1a')](_0x3e59d7['start'])&&_0x20712b['markInsertion'](_0x1e7e56[_0x2c55('0x2a')](_0x11fd7e['start'],_0x3e59d7[_0x2c55('0x56')]),'convertInlineImageToBlock'),_0x3e59d7[_0x2c55('0x14')][_0x2c55('0x1a')](_0x11fd7e[_0x2c55('0x14')])&&_0x20712b[_0x2c55('0xb')](_0x1e7e56['createRange'](_0x3e59d7[_0x2c55('0x14')],_0x11fd7e[_0x2c55('0x14')]),_0x2c55('0x42'));});}),_0x20712b[_0x2c55('0x5f')][_0x2c55('0x5a')](_0x2c55('0x2d'),_0x2c55('0x42'),_0x2c55('0x11'),()=>!0x1),_0x20712b[_0x2c55('0x5f')]['registerCustomCallback'](_0x2c55('0x2d'),_0x2c55('0x42'),_0x2c55('0x37'),()=>!0x1),_0x20712b[_0x2c55('0x5f')]['registerCustomCallback'](_0x2c55('0x2d'),'convertInlineImageToBlock','discard',_0x20712b[_0x2c55('0x5f')][_0x2c55('0x25')](_0x2c55('0x2d'),'',_0x2c55('0x37'))),_0x20712b['_suggestionFactory'][_0x2c55('0x5a')](_0x2c55('0x4'),_0x2c55('0x42'),_0x2c55('0x11'),()=>!0x1),_0x20712b[_0x2c55('0x5f')][_0x2c55('0x5a')](_0x2c55('0x4'),_0x2c55('0x42'),'discard',([_0x5e33ab])=>{const _0x431b7c=_0x20712b['_suggestionFactory'][_0x2c55('0x25')]('insertion','',_0x2c55('0x52'));let _0x478503=_0x5e33ab['start'],_0x156394=_0x5e33ab[_0x2c55('0x14')];const _0x106f70=_0x33dd42[_0x2c55('0x18')][_0x2c55('0x7')][_0x2c55('0x4d')](_0x478503,_0x2c55('0x3c')),_0x3609a0=_0x33dd42[_0x2c55('0x18')]['schema'][_0x2c55('0x4d')](_0x156394,_0x2c55('0x4c'));_0x106f70['isCollapsed']&&(_0x478503=_0x106f70[_0x2c55('0x56')]),_0x3609a0[_0x2c55('0x19')]&&(_0x156394=_0x3609a0[_0x2c55('0x14')]),_0x431b7c([_0x33dd42[_0x2c55('0x18')]['createRange'](_0x478503,_0x156394)]);}),_0x20712b[_0x2c55('0x5f')]['registerCustomCallback']('formatBlock',_0x2c55('0x42'),_0x2c55('0x55'),_0x8f121d),_0x20712b[_0x2c55('0x5f')][_0x2c55('0x5a')](_0x2c55('0x4'),_0x2c55('0x42'),_0x2c55('0x55'),_0x8f121d)),_0x33dd42['plugins'][_0x2c55('0x2c')]('ImageCaptionEditing')&&(_0x20712b[_0x2c55('0x29')](_0x2c55('0x21'),(_0x308cc1,_0x460e1e)=>{const _0x267a69=_0x33dd42[_0x2c55('0x60')][_0x2c55('0x8')](_0x2c55('0x5d'));let _0x6f12ae=_0x17fae1[_0x2c55('0x46')](_0x33dd42['model'][_0x2c55('0x26')][_0x2c55('0x24')]),_0x3f9cf2=_0x267a69['getCaptionFromImageModelElement'](_0x6f12ae);_0x33dd42[_0x2c55('0x18')][_0x2c55('0x3')](()=>{if(_0x3f9cf2)return void _0x20712b[_0x2c55('0x3a')](_0x33dd42['model'][_0x2c55('0x63')](_0x3f9cf2));const _0x43dca2=_0x17fae1[_0x2c55('0x40')](_0x6f12ae);_0x308cc1(_0x460e1e),_0x6f12ae=_0x17fae1[_0x2c55('0x46')](_0x33dd42[_0x2c55('0x18')]['document'][_0x2c55('0x24')]),_0x3f9cf2=_0x267a69['getCaptionFromImageModelElement'](_0x6f12ae),_0x20712b[_0x2c55('0xb')](_0x33dd42['model'][_0x2c55('0x63')](_0x3f9cf2),_0x43dca2?null:'imageCaption');});}),_0x20712b['_suggestionFactory'][_0x2c55('0x5a')](_0x2c55('0x4'),_0x2c55('0x1c'),_0x2c55('0x55'),_0x8f121d));const _0x2b0b62=[{'type':_0x2c55('0x2d'),'subType':_0x2c55('0x15')},{'type':_0x2c55('0x4'),'subType':_0x2c55('0x1c')},{'type':_0x2c55('0x2d'),'subType':_0x2c55('0x42')},{'type':_0x2c55('0x4'),'subType':'convertInlineImageToBlock'}];function _0xac846c(_0x29eb48,_0x5aff1a){const _0x545068=_0x2b0b62['findIndex'](({type:_0x275f62,subType:_0x3ec08e})=>_0x29eb48[_0x2c55('0x20')]==_0x275f62&&_0x29eb48[_0x2c55('0x1e')]==_0x3ec08e),_0x1b9daa=_0x2b0b62[_0x2c55('0x1d')](({type:_0x56b627,subType:_0x4f6aaa})=>_0x5aff1a['type']==_0x56b627&&_0x5aff1a[_0x2c55('0x1e')]==_0x4f6aaa);if(_0x545068<0x0||_0x1b9daa<0x0)return!0x1;const _0x226e78=_0x29eb48['getFirstRange'](),_0x2ec6bc=_0x5aff1a[_0x2c55('0x3f')]();if((0x0==_0x545068||0x1==_0x545068)&&0x2==_0x1b9daa&&_0x226e78[_0x2c55('0x48')](_0x2ec6bc))return!0x0;if(0x2==_0x545068&&0x3==_0x1b9daa){const _0x1d0b85=_0x20712b[_0x2c55('0x5e')](_0x226e78,_0x2c55('0x4'))[_0x2c55('0x54')](({suggestion:_0x47bfa0,meta:_0x2f2ae0})=>_0x2f2ae0[_0x2c55('0x12')]&&_0x2c55('0x42')==_0x47bfa0[_0x2c55('0x1e')]);if(_0x1d0b85[_0x2c55('0x10')]>0x1&&_0x2ec6bc[_0x2c55('0x14')][_0x2c55('0x2')](_0x226e78[_0x2c55('0x56')]))return!0x0;if(0x1==_0x1d0b85[_0x2c55('0x10')]&&(_0x226e78['start']['isEqual'](_0x2ec6bc[_0x2c55('0x14')])||_0x226e78['end'][_0x2c55('0x2')](_0x2ec6bc[_0x2c55('0x56')])))return!0x0;}if(0x3==_0x545068&&0x3==_0x1b9daa&&_0x226e78[_0x2c55('0x56')]['isBefore'](_0x2ec6bc[_0x2c55('0x56')])){const _0x3e7625=_0x226e78[_0x2c55('0x14')][_0x2c55('0x36')],_0x2f786e=_0x2ec6bc['start'][_0x2c55('0x53')];return _0x17fae1['isBlockImage'](_0x3e7625)&&_0x3e7625===_0x2f786e;}return!0x1;}function _0x8f121d(_0x1a10e2,_0x1f94a7){return _0xac846c(_0x1a10e2,_0x1f94a7)?[_0x1a10e2,_0x1f94a7]:_0xac846c(_0x1f94a7,_0x1a10e2)?[_0x1f94a7,_0x1a10e2]:null;}_0x33dd42['plugins'][_0x2c55('0x2c')]('ImageResize')&&(_0x20712b[_0x2c55('0x49')]('resizeImage',[],[_0x2c55('0x43')]),_0x20712b['_descriptionFactory']['registerAttributeLabel'](_0x2c55('0x43'),_0x59a6bc(_0x1b4588,'FORMAT_IMAGE_SIZE'))),_0x33dd42['plugins']['has'](_0x2c55('0x4f'))&&_0x20712b['_enableDefaultAttributesIntegration'](_0x2c55('0xf'),[],['alt']),_0x20712b[_0x2c55('0xe')][_0x2c55('0x9')](_0x553d4b=>{if(!!_0x2b0b62[_0x2c55('0xd')](({type:_0x146cf6,subType:_0x50bcbf})=>_0x553d4b['type']==_0x146cf6&&_0x553d4b[_0x2c55('0x1e')]==_0x50bcbf))return _0x553d4b[_0x2c55('0x62')]?{}:void 0x0;}),_0x20712b[_0x2c55('0xe')][_0x2c55('0x9')](_0x322046=>{if(_0x2c55('0x4')==_0x322046['type']||_0x2c55('0x31')==_0x322046[_0x2c55('0x20')]){const _0x101fff=_0x322046[_0x2c55('0xc')]();if(_0x101fff&&_0x101fff['is'](_0x2c55('0x0'),_0x2c55('0x1b')))return{'type':_0x2c55('0x4')==_0x322046['type']?_0x2c55('0x30'):_0x2c55('0x44'),'element':_0x101fff,'quantity':0x1};}}),_0x20712b['_descriptionFactory'][_0x2c55('0x9')](_0x4246a8=>_0x2c55('0x2d')==_0x4246a8['type']&&_0x2c55('0x42')==_0x4246a8[_0x2c55('0x1e')]?{'type':_0x2c55('0x28'),'content':_0x2c55('0x6')}:_0x2c55('0x2d')==_0x4246a8[_0x2c55('0x20')]&&_0x2c55('0xa')==_0x4246a8[_0x2c55('0x1e')]?{'type':_0x2c55('0x28'),'content':_0x2c55('0x38')}:void 0x0),_0x20712b[_0x2c55('0xe')][_0x2c55('0x9')](_0x14a969=>{if('attribute'!=_0x14a969[_0x2c55('0x20')])return;const {data:_0x3ad7ee}=_0x14a969;if(!_0x3ad7ee||'alt'!=_0x3ad7ee[_0x2c55('0x45')])return;const _0x54fc9a=_0x3ad7ee[_0x2c55('0x50')];return _0x54fc9a?{'type':'format','content':_0x59a6bc(_0x1b4588,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x54fc9a+'\x22')}:{'type':_0x2c55('0x28'),'content':_0x59a6bc(_0x1b4588,_0x2c55('0x2f'))};}),this[_0x2c55('0x3d')]();}['_registerLegacyDescription'](){const _0x58fbd0=this[_0x2c55('0x41')],_0x246a7c=_0x58fbd0[_0x2c55('0x1')];_0x58fbd0['plugins'][_0x2c55('0x8')](_0x2c55('0x5b'))['_descriptionFactory']['registerDescriptionCallback'](_0x2b10b1=>{if(_0x2c55('0x2d')!=_0x2b10b1[_0x2c55('0x20')]&&_0x2c55('0x57')!=_0x2b10b1[_0x2c55('0x20')])return;const {data:_0x263f9d}=_0x2b10b1;if(_0x263f9d){if(_0x2c55('0xf')==_0x263f9d[_0x2c55('0x1f')]){const _0x589824=_0x263f9d[_0x2c55('0x51')][0x0]['newValue'];return _0x589824?{'type':_0x2c55('0x28'),'content':_0x59a6bc(_0x246a7c,_0x2c55('0x39'),'\x22'+_0x589824+'\x22')}:{'type':_0x2c55('0x28'),'content':_0x59a6bc(_0x246a7c,'*Remove\x20image\x20text\x20alternative*')};}if(_0x2c55('0x4a')==_0x263f9d[_0x2c55('0x1f')]){const _0x25c5a2=_0x263f9d[_0x2c55('0x51')][0x0][_0x2c55('0x3e')];return _0x25c5a2?{'type':_0x2c55('0x28'),'content':_0x59a6bc(_0x246a7c,_0x2c55('0x27'),_0x25c5a2)}:{'type':_0x2c55('0x28'),'content':_0x59a6bc(_0x246a7c,_0x2c55('0x4b'))};}}});}}
@@ -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/imagereplace
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 image replace 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 _0x5cd2=['_suggestionFactory','editor','ImageEditing','has','_handleLegacySuggestions','getSuggestionCallback','format','TrackChangesEditing','registerCustomCallback','_registerLegacyDescription','afterInit','attribute','discard','_descriptionFactory','get','locale','plugins','formatInline','accept','type','registerDescriptionCallback','newValue','_enableDefaultAttributesIntegration','src','*Replace\x20image\x20URL*','replaceImageSource','formatBlock'];(function(_0x50a666,_0x5cd2de){const _0x38b953=function(_0x4e9647){while(--_0x4e9647){_0x50a666['push'](_0x50a666['shift']());}};_0x38b953(++_0x5cd2de);}(_0x5cd2,0x1b7));const _0x38b9=function(_0x50a666,_0x5cd2de){_0x50a666=_0x50a666-0x0;let _0x38b953=_0x5cd2[_0x50a666];return _0x38b953;};import{Plugin as _0x188419}from'ckeditor5/src/core';import{getTranslation as _0x1339a6}from'../utils/common-translations';export default class et extends _0x188419{[_0x38b9('0x3')](){if(!this[_0x38b9('0x15')][_0x38b9('0x9')][_0x38b9('0x17')](_0x38b9('0x16')))return;const _0x62c4da=this[_0x38b9('0x15')][_0x38b9('0x8')],_0x1190bb=this['editor'][_0x38b9('0x9')][_0x38b9('0x7')](_0x38b9('0x0'));_0x1190bb[_0x38b9('0xf')]('replaceImageSource',[],['src']),_0x1190bb['_descriptionFactory']['registerDescriptionCallback'](_0x3bc673=>{if(_0x38b9('0x4')!=_0x3bc673[_0x38b9('0xc')])return;const {data:_0x270770}=_0x3bc673;return _0x270770&&_0x38b9('0x10')==_0x270770['key']?_0x270770[_0x38b9('0xe')]&&_0x270770['oldValue']?{'type':_0x38b9('0x1a'),'content':_0x1339a6(_0x62c4da,_0x38b9('0x11'))}:{'type':'format','content':''}:void 0x0;}),this[_0x38b9('0x18')]();}[_0x38b9('0x18')](){const _0x4eac3b=this[_0x38b9('0x15')]['plugins'][_0x38b9('0x7')](_0x38b9('0x0'));_0x4eac3b['_suggestionFactory'][_0x38b9('0x1')](_0x38b9('0x13'),_0x38b9('0x12'),_0x38b9('0xb'),_0x4eac3b[_0x38b9('0x14')][_0x38b9('0x19')](_0x38b9('0x13'),null,_0x38b9('0x5'))),_0x4eac3b[_0x38b9('0x14')]['registerCustomCallback']('formatBlock',_0x38b9('0x12'),_0x38b9('0x5'),_0x4eac3b[_0x38b9('0x14')][_0x38b9('0x19')](_0x38b9('0x13'),null,_0x38b9('0xb'))),this[_0x38b9('0x2')]();}['_registerLegacyDescription'](){const _0x2d6317=this[_0x38b9('0x15')],_0x2006f4=_0x2d6317[_0x38b9('0x8')];_0x2d6317['plugins'][_0x38b9('0x7')](_0x38b9('0x0'))[_0x38b9('0x6')][_0x38b9('0xd')](_0x23f818=>{if(_0x38b9('0x13')!=_0x23f818[_0x38b9('0xc')]&&_0x38b9('0xa')!=_0x23f818[_0x38b9('0xc')])return;const {data:_0xfbf5a6}=_0x23f818;if(!_0xfbf5a6||_0x38b9('0x12')!=_0xfbf5a6['commandName'])return;return{'type':_0x38b9('0x1a'),'content':_0x1339a6(_0x2006f4,'*Format:*\x20replace\x20image\x20URL')};});}}
23
+ const _0x1a20=['registerDescriptionCallback','key','formatBlock','formatInline','registerCustomCallback','*Replace\x20image\x20URL*','has','plugins','replaceImageSource','src','format','TrackChangesEditing','ImageEditing','getSuggestionCallback','accept','locale','editor','type','afterInit','attribute','_suggestionFactory','_handleLegacySuggestions','oldValue','get','_registerLegacyDescription','*Format:*\x20replace\x20image\x20URL','_descriptionFactory'];(function(_0x2d2c05,_0x1a209c){const _0x58076a=function(_0x8b1ddc){while(--_0x8b1ddc){_0x2d2c05['push'](_0x2d2c05['shift']());}};_0x58076a(++_0x1a209c);}(_0x1a20,0x121));const _0x5807=function(_0x2d2c05,_0x1a209c){_0x2d2c05=_0x2d2c05-0x0;let _0x58076a=_0x1a20[_0x2d2c05];return _0x58076a;};import{Plugin as _0x33555b}from'ckeditor5/src/core.js';import{getTranslation as _0x56b6cf}from'../utils/common-translations.js';export default class st extends _0x33555b{[_0x5807('0x1a')](){if(!this[_0x5807('0x18')]['plugins'][_0x5807('0xe')](_0x5807('0x14')))return;const _0x23e954=this['editor'][_0x5807('0x17')],_0x31cb78=this[_0x5807('0x18')][_0x5807('0xf')][_0x5807('0x4')](_0x5807('0x13'));_0x31cb78['_enableDefaultAttributesIntegration']('replaceImageSource',[],['src']),_0x31cb78[_0x5807('0x7')][_0x5807('0x8')](_0x466157=>{if(_0x5807('0x0')!=_0x466157['type'])return;const {data:_0x2573aa}=_0x466157;return _0x2573aa&&_0x5807('0x11')==_0x2573aa[_0x5807('0x9')]?_0x2573aa['newValue']&&_0x2573aa[_0x5807('0x3')]?{'type':_0x5807('0x12'),'content':_0x56b6cf(_0x23e954,_0x5807('0xd'))}:{'type':_0x5807('0x12'),'content':''}:void 0x0;}),this[_0x5807('0x2')]();}['_handleLegacySuggestions'](){const _0x4b650f=this['editor']['plugins'][_0x5807('0x4')](_0x5807('0x13'));_0x4b650f[_0x5807('0x1')][_0x5807('0xc')]('formatBlock',_0x5807('0x10'),_0x5807('0x16'),_0x4b650f[_0x5807('0x1')][_0x5807('0x15')](_0x5807('0xa'),null,'discard')),_0x4b650f[_0x5807('0x1')][_0x5807('0xc')](_0x5807('0xa'),_0x5807('0x10'),'discard',_0x4b650f[_0x5807('0x1')][_0x5807('0x15')](_0x5807('0xa'),null,_0x5807('0x16'))),this['_registerLegacyDescription']();}[_0x5807('0x5')](){const _0x306422=this[_0x5807('0x18')],_0x424467=_0x306422['locale'];_0x306422[_0x5807('0xf')][_0x5807('0x4')](_0x5807('0x13'))[_0x5807('0x7')][_0x5807('0x8')](_0x3c4580=>{if('formatBlock'!=_0x3c4580[_0x5807('0x19')]&&_0x5807('0xb')!=_0x3c4580['type'])return;const {data:_0x4d473b}=_0x3c4580;if(!_0x4d473b||'replaceImageSource'!=_0x4d473b['commandName'])return;return{'type':_0x5807('0x12'),'content':_0x56b6cf(_0x424467,_0x5807('0x6'))};});}}
@@ -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/image
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:image/image~Image image feature}.
11
11
  */