@ckeditor/ckeditor5-track-changes 40.2.0 → 41.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) 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/lang/translations/ar.po +1 -1
  7. package/lang/translations/az.po +1 -1
  8. package/lang/translations/bg.po +1 -1
  9. package/lang/translations/bn.po +1 -1
  10. package/lang/translations/ca.po +1 -1
  11. package/lang/translations/cs.po +1 -1
  12. package/lang/translations/da.po +1 -1
  13. package/lang/translations/de.po +1 -1
  14. package/lang/translations/el.po +1 -1
  15. package/lang/translations/en-au.po +1 -1
  16. package/lang/translations/en.po +1 -1
  17. package/lang/translations/es.po +2 -2
  18. package/lang/translations/et.po +1 -1
  19. package/lang/translations/fi.po +1 -1
  20. package/lang/translations/fr.po +1 -1
  21. package/lang/translations/gl.po +1 -1
  22. package/lang/translations/he.po +1 -1
  23. package/lang/translations/hi.po +1 -1
  24. package/lang/translations/hr.po +1 -1
  25. package/lang/translations/hu.po +1 -1
  26. package/lang/translations/id.po +1 -1
  27. package/lang/translations/it.po +1 -1
  28. package/lang/translations/ja.po +1 -1
  29. package/lang/translations/ko.po +1 -1
  30. package/lang/translations/lt.po +1 -1
  31. package/lang/translations/lv.po +1 -1
  32. package/lang/translations/ms.po +1 -1
  33. package/lang/translations/nl.po +1 -1
  34. package/lang/translations/no.po +1 -1
  35. package/lang/translations/pl.po +1 -1
  36. package/lang/translations/pt-br.po +1 -1
  37. package/lang/translations/pt.po +1 -1
  38. package/lang/translations/ro.po +1 -1
  39. package/lang/translations/ru.po +1 -1
  40. package/lang/translations/sk.po +1 -1
  41. package/lang/translations/sq.po +1 -1
  42. package/lang/translations/sr-latn.po +1 -1
  43. package/lang/translations/sr.po +1 -1
  44. package/lang/translations/sv.po +1 -1
  45. package/lang/translations/th.po +1 -1
  46. package/lang/translations/tk.po +1 -1
  47. package/lang/translations/tr.po +1 -1
  48. package/lang/translations/tt.po +1 -1
  49. package/lang/translations/uk.po +1 -1
  50. package/lang/translations/ur.po +1 -1
  51. package/lang/translations/vi.po +1 -1
  52. package/lang/translations/zh-cn.po +1 -1
  53. package/lang/translations/zh.po +1 -1
  54. package/package.json +4 -3
  55. package/src/augmentation.d.ts +3 -3
  56. package/src/augmentation.js +1 -1
  57. package/src/commands/acceptsuggestioncommand.d.ts +3 -3
  58. package/src/commands/acceptsuggestioncommand.js +2 -2
  59. package/src/commands/discardsuggestioncommand.d.ts +3 -3
  60. package/src/commands/discardsuggestioncommand.js +2 -2
  61. package/src/commands/executeonallsuggestionscommand.d.ts +3 -3
  62. package/src/commands/executeonallsuggestionscommand.js +2 -2
  63. package/src/commands/executeonselectedsuggestionscommand.d.ts +3 -3
  64. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  65. package/src/commands/trackchangescommand.d.ts +2 -2
  66. package/src/commands/trackchangescommand.js +2 -2
  67. package/src/index.d.ts +13 -13
  68. package/src/index.js +2 -2
  69. package/src/integrations/aiassistant.d.ts +2 -2
  70. package/src/integrations/aiassistant.js +2 -2
  71. package/src/integrations/alignment.d.ts +2 -2
  72. package/src/integrations/alignment.js +2 -2
  73. package/src/integrations/basicstyles.d.ts +2 -2
  74. package/src/integrations/basicstyles.js +2 -2
  75. package/src/integrations/blockquote.d.ts +2 -2
  76. package/src/integrations/blockquote.js +2 -2
  77. package/src/integrations/casechange.d.ts +17 -0
  78. package/src/integrations/casechange.js +23 -0
  79. package/src/integrations/ckbox.d.ts +2 -2
  80. package/src/integrations/ckbox.js +2 -2
  81. package/src/integrations/codeblock.d.ts +2 -2
  82. package/src/integrations/codeblock.js +2 -2
  83. package/src/integrations/comments.d.ts +2 -2
  84. package/src/integrations/comments.js +2 -2
  85. package/src/integrations/deletecommand.d.ts +3 -3
  86. package/src/integrations/deletecommand.js +2 -2
  87. package/src/integrations/entercommand.d.ts +3 -3
  88. package/src/integrations/entercommand.js +2 -2
  89. package/src/integrations/findandreplace.d.ts +2 -2
  90. package/src/integrations/findandreplace.js +2 -2
  91. package/src/integrations/font.d.ts +2 -2
  92. package/src/integrations/font.js +2 -2
  93. package/src/integrations/formatpainter.d.ts +2 -2
  94. package/src/integrations/formatpainter.js +2 -2
  95. package/src/integrations/heading.d.ts +2 -2
  96. package/src/integrations/heading.js +2 -2
  97. package/src/integrations/highlight.d.ts +2 -2
  98. package/src/integrations/highlight.js +2 -2
  99. package/src/integrations/horizontalline.d.ts +2 -2
  100. package/src/integrations/horizontalline.js +2 -2
  101. package/src/integrations/htmlembed.d.ts +2 -2
  102. package/src/integrations/htmlembed.js +2 -2
  103. package/src/integrations/image.d.ts +2 -2
  104. package/src/integrations/image.js +2 -2
  105. package/src/integrations/imagereplace.d.ts +2 -2
  106. package/src/integrations/imagereplace.js +2 -2
  107. package/src/integrations/imagestyle.d.ts +2 -2
  108. package/src/integrations/imagestyle.js +2 -2
  109. package/src/integrations/importword.d.ts +2 -2
  110. package/src/integrations/importword.js +2 -2
  111. package/src/integrations/indent.d.ts +2 -2
  112. package/src/integrations/indent.js +2 -2
  113. package/src/integrations/inputcommand.d.ts +3 -3
  114. package/src/integrations/inputcommand.js +2 -2
  115. package/src/integrations/legacylist.d.ts +17 -0
  116. package/src/integrations/legacylist.js +23 -0
  117. package/src/integrations/{documentlistproperties.d.ts → legacylistproperties.d.ts} +7 -7
  118. package/src/integrations/legacylistproperties.js +23 -0
  119. package/src/integrations/link.d.ts +2 -2
  120. package/src/integrations/link.js +2 -2
  121. package/src/integrations/list.d.ts +6 -6
  122. package/src/integrations/list.js +2 -2
  123. package/src/integrations/listproperties.d.ts +6 -15
  124. package/src/integrations/listproperties.js +2 -2
  125. package/src/integrations/mediaembed.d.ts +2 -2
  126. package/src/integrations/mediaembed.js +2 -2
  127. package/src/integrations/mention.d.ts +2 -2
  128. package/src/integrations/mention.js +2 -2
  129. package/src/integrations/pagebreak.d.ts +2 -2
  130. package/src/integrations/pagebreak.js +2 -2
  131. package/src/integrations/paragraph.d.ts +2 -2
  132. package/src/integrations/paragraph.js +2 -2
  133. package/src/integrations/removeformat.d.ts +2 -2
  134. package/src/integrations/removeformat.js +2 -2
  135. package/src/integrations/restrictededitingmode.d.ts +2 -2
  136. package/src/integrations/restrictededitingmode.js +2 -2
  137. package/src/integrations/shiftentercommand.d.ts +3 -3
  138. package/src/integrations/shiftentercommand.js +2 -2
  139. package/src/integrations/standardeditingmode.d.ts +2 -2
  140. package/src/integrations/standardeditingmode.js +2 -2
  141. package/src/integrations/style.d.ts +2 -2
  142. package/src/integrations/style.js +2 -2
  143. package/src/integrations/table.d.ts +2 -2
  144. package/src/integrations/table.js +2 -2
  145. package/src/integrations/tablecaption.d.ts +3 -3
  146. package/src/integrations/tablecaption.js +2 -2
  147. package/src/integrations/tableclipboard.d.ts +3 -3
  148. package/src/integrations/tableclipboard.js +2 -2
  149. package/src/integrations/tablecolumnresize.d.ts +5 -5
  150. package/src/integrations/tablecolumnresize.js +2 -2
  151. package/src/integrations/tableheadings.d.ts +3 -3
  152. package/src/integrations/tableheadings.js +2 -2
  153. package/src/integrations/tablemergesplit.d.ts +3 -3
  154. package/src/integrations/tablemergesplit.js +2 -2
  155. package/src/integrations/tableofcontents.d.ts +2 -2
  156. package/src/integrations/tableofcontents.js +2 -2
  157. package/src/integrations/tableproperties.d.ts +5 -5
  158. package/src/integrations/tableproperties.js +2 -2
  159. package/src/integrations/template.d.ts +2 -2
  160. package/src/integrations/template.js +2 -2
  161. package/src/integrations/title.d.ts +2 -2
  162. package/src/integrations/title.js +2 -2
  163. package/src/integrations/undo.d.ts +2 -2
  164. package/src/integrations/undo.js +2 -2
  165. package/src/integrations/utils.d.ts +4 -4
  166. package/src/integrations/utils.js +2 -2
  167. package/src/suggestion.d.ts +6 -6
  168. package/src/suggestion.js +2 -2
  169. package/src/suggestiondescriptionfactory.d.ts +4 -4
  170. package/src/suggestiondescriptionfactory.js +2 -2
  171. package/src/trackchanges.d.ts +6 -6
  172. package/src/trackchanges.js +2 -2
  173. package/src/trackchangesconfig.d.ts +2 -2
  174. package/src/trackchangesconfig.js +1 -1
  175. package/src/trackchangesdata.d.ts +3 -3
  176. package/src/trackchangesdata.js +2 -2
  177. package/src/trackchangesediting.d.ts +56 -55
  178. package/src/trackchangesediting.js +2 -2
  179. package/src/trackchangesui.d.ts +4 -4
  180. package/src/trackchangesui.js +2 -2
  181. package/src/ui/suggestioncontroller.d.ts +6 -6
  182. package/src/ui/suggestioncontroller.js +2 -2
  183. package/src/ui/view/basesuggestionthreadview.d.ts +7 -7
  184. package/src/ui/view/basesuggestionthreadview.js +2 -2
  185. package/src/ui/view/suggestionthreadview.d.ts +6 -6
  186. package/src/ui/view/suggestionthreadview.js +2 -2
  187. package/src/utils/common-translations.d.ts +2 -2
  188. package/src/utils/common-translations.js +2 -2
  189. package/src/utils/utils.d.ts +5 -5
  190. package/src/utils/utils.js +2 -2
  191. package/theme/icons/track-changes-accept.svg +1 -1
  192. package/theme/icons/track-changes-discard.svg +1 -1
  193. package/theme/icons/track-changes.svg +1 -1
  194. package/src/integrations/documentlist.d.ts +0 -17
  195. package/src/integrations/documentlist.js +0 -23
  196. package/src/integrations/documentlistproperties.js +0 -23
@@ -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 _0x34be=['findNext','handleFindCommand','createRange','editor','getRange','createPositionAt','markers','filter','plugins','_isInDeletionRange','suggestion:deletion','start','find','TrackChangesEditing','bind','get','findPrevious','getIntersection','afterInit','model','findByTextCallback','replaceAll','has','end','getMarkersGroup','item','enableCommand'];(function(_0x56053d,_0x34be67){const _0x3d6975=function(_0xea1759){while(--_0xea1759){_0x56053d['push'](_0x56053d['shift']());}};_0x3d6975(++_0x34be67);}(_0x34be,0x1cd));const _0x3d69=function(_0x56053d,_0x34be67){_0x56053d=_0x56053d-0x0;let _0x3d6975=_0x34be[_0x56053d];return _0x3d6975;};import{Plugin as _0xbb8d14}from'ckeditor5/src/core.js';export default class J extends _0xbb8d14{[_0x3d69('0x10')](){if(!this[_0x3d69('0x1')][_0x3d69('0x6')][_0x3d69('0x14')]('FindAndReplaceEditing'))return;const _0x19715c=this['editor']['plugins'][_0x3d69('0xd')](_0x3d69('0xb'));_0x19715c[_0x3d69('0x18')](_0x3d69('0xa'),this[_0x3d69('0x1a')][_0x3d69('0xc')](this)),_0x19715c[_0x3d69('0x18')](_0x3d69('0x19')),_0x19715c[_0x3d69('0x18')](_0x3d69('0xe')),_0x19715c[_0x3d69('0x18')]('replace'),_0x19715c[_0x3d69('0x18')](_0x3d69('0x13'));}['handleFindCommand'](_0x2510bb,_0x317e28,_0x19c833={}){const _0x409493=this['editor'][_0x3d69('0x6')]['get']('FindAndReplaceUtils');return _0x2510bb(_0x56e9ad=>('string'==typeof _0x317e28?_0x409493[_0x3d69('0x12')](_0x317e28,_0x19c833):_0x317e28)(_0x56e9ad)[_0x3d69('0x5')](_0x2e2fdc=>!0x1===this[_0x3d69('0x7')](_0x2e2fdc,_0x56e9ad[_0x3d69('0x17')])),_0x19c833);}[_0x3d69('0x7')](_0xb4d73,_0x2b6fac){const _0x2c0441=this[_0x3d69('0x1')][_0x3d69('0x11')][_0x3d69('0x0')](this[_0x3d69('0x1')][_0x3d69('0x11')][_0x3d69('0x3')](_0x2b6fac,_0xb4d73[_0x3d69('0x9')]),this[_0x3d69('0x1')][_0x3d69('0x11')][_0x3d69('0x3')](_0x2b6fac,_0xb4d73[_0x3d69('0x15')]));for(const _0x3853d5 of this['editor'][_0x3d69('0x11')][_0x3d69('0x4')][_0x3d69('0x16')](_0x3d69('0x8')))if(null!==_0x2c0441[_0x3d69('0xf')](_0x3853d5[_0x3d69('0x2')]()))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 _0x10b8=['fontSize','trim','registerDescriptionCallback','commandName','title','model','formatInline','commandParams','FORMAT_FONT_FAMILY','fontSize.options','label','*Reset\x20font\x20size*','type','config','find','_registerLegacyDescription','value','plugins','FontBackgroundColorEditing','_descriptionFactory','fontBackgroundColor','editor','_enableDefaultAttributesIntegration','get','FORMAT_FONT_SIZE','*Set\x20font\x20family:*\x20%0','format','*Set\x20font\x20background\x20color:*\x20%0','FontFamilyEditing','afterInit','fontBackgroundColor.colors','toLowerCase','*Reset\x20font\x20family*','fontColor','locale','TrackChangesEditing','fontFamily','registerAttributeLabel','*Reset\x20font\x20background\x20color*'];(function(_0x511cbd,_0x10b8ec){const _0x37d40d=function(_0x498d51){while(--_0x498d51){_0x511cbd['push'](_0x511cbd['shift']());}};_0x37d40d(++_0x10b8ec);}(_0x10b8,0x1b9));const _0x37d4=function(_0x511cbd,_0x10b8ec){_0x511cbd=_0x511cbd-0x0;let _0x37d40d=_0x10b8[_0x511cbd];return _0x37d40d;};import{Plugin as _0x190947}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x8b8ebe}from'ckeditor5/src/ui.js';import{getTranslation as _0x141645}from'../utils/common-translations.js';const ro=[{'pluginName':'FontSizeEditing','commandName':_0x37d4('0x1b')},{'pluginName':_0x37d4('0x10'),'commandName':_0x37d4('0x18')},{'pluginName':'FontColorEditing','commandName':_0x37d4('0x15')},{'pluginName':_0x37d4('0x6'),'commandName':_0x37d4('0x8')}];export default class Q extends _0x190947{[_0x37d4('0x11')](){const _0x3e6d35=this['editor'][_0x37d4('0x16')],_0x1d9e80=this[_0x37d4('0x9')][_0x37d4('0x5')][_0x37d4('0xb')](_0x37d4('0x17'));for(const {pluginName:_0x351a8b,commandName:_0x49afe9}of ro)this[_0x37d4('0x9')][_0x37d4('0x5')]['has'](_0x351a8b)&&_0x1d9e80[_0x37d4('0xa')](_0x49afe9,[_0x49afe9]);_0x3e6d35['t'],(_0x1d9e80['_descriptionFactory'][_0x37d4('0x19')](_0x37d4('0x1b'),_0x141645(_0x3e6d35,_0x37d4('0xc'))),_0x1d9e80[_0x37d4('0x7')][_0x37d4('0x19')](_0x37d4('0x18'),_0x141645(_0x3e6d35,_0x37d4('0x23'))),_0x1d9e80[_0x37d4('0x7')]['registerAttributeLabel'](_0x37d4('0x15'),_0x141645(_0x3e6d35,'FORMAT_FONT_COLOR')),_0x1d9e80[_0x37d4('0x7')]['registerAttributeLabel'](_0x37d4('0x8'),_0x141645(_0x3e6d35,'FORMAT_FONT_BACKGROUND')),this[_0x37d4('0x3')]());}['_registerLegacyDescription'](){const _0x5b22cd=this[_0x37d4('0x9')],_0x18f88e=_0x5b22cd[_0x37d4('0x16')];_0x5b22cd[_0x37d4('0x5')]['get'](_0x37d4('0x17'))['_descriptionFactory'][_0x37d4('0x1d')](_0xc9dc9d=>{const _0x55c16c=_0x18f88e['t'];if(_0x37d4('0x21')!=_0xc9dc9d[_0x37d4('0x0')])return;const {data:_0x107438}=_0xc9dc9d;if(null!=_0x107438){if(_0x37d4('0x1b')==_0x107438['commandName']){const _0x71ba79=_0x107438['commandParams'][0x0]['value'];if(_0x71ba79){const _0x38390f=_0x55c16c(this[_0x37d4('0x9')][_0x37d4('0x5')][_0x37d4('0xb')]('FontSize')['normalizeSizeOptions'](this[_0x37d4('0x9')][_0x37d4('0x1')][_0x37d4('0xb')](_0x37d4('0x24')))[_0x37d4('0x2')](_0x36f9c0=>_0x36f9c0[_0x37d4('0x20')]==_0x71ba79)[_0x37d4('0x1f')])[_0x37d4('0x13')]();return{'type':_0x37d4('0xe'),'content':_0x141645(_0x18f88e,'*Set\x20font\x20size:*\x20%0',_0x38390f)};}return{'type':_0x37d4('0xe'),'content':_0x141645(_0x18f88e,_0x37d4('0x26'))};}if(_0x37d4('0x18')==_0x107438[_0x37d4('0x1e')]){const _0x7f0194=_0x107438[_0x37d4('0x22')][0x0][_0x37d4('0x4')];return _0x7f0194?{'type':_0x37d4('0xe'),'content':_0x141645(_0x18f88e,_0x37d4('0xd'),_0x7f0194)}:{'type':_0x37d4('0xe'),'content':_0x141645(_0x18f88e,_0x37d4('0x14'))};}if(_0x37d4('0x15')==_0x107438['commandName']){const _0x271c17=_0x107438[_0x37d4('0x22')][0x0][_0x37d4('0x4')];if(_0x271c17){const _0x1d9381=_0x8b8ebe(this[_0x37d4('0x9')][_0x37d4('0x1')][_0x37d4('0xb')]('fontColor.colors'))[_0x37d4('0x2')](_0x1b2d78=>_0x1b2d78['model']==_0x271c17);let _0xa88307=_0x271c17,_0x2bbf7d='';return _0x1d9381&&(_0xa88307=_0x1d9381[_0x37d4('0x25')],_0x2bbf7d=_0x55c16c(_0xa88307)[_0x37d4('0x13')]()),{'type':_0x37d4('0xe'),'content':_0x141645(_0x18f88e,'*Set\x20font\x20color:*\x20%0',_0x2bbf7d)[_0x37d4('0x1c')](),'color':{'value':_0x271c17,'title':_0x2bbf7d||_0xa88307}};}return{'type':_0x37d4('0xe'),'content':_0x141645(_0x18f88e,'*Reset\x20font\x20color*')};}if(_0x37d4('0x8')==_0x107438[_0x37d4('0x1e')]){const _0xaba7e4=_0x107438['commandParams'][0x0][_0x37d4('0x4')];if(_0xaba7e4){const _0x2185fe=_0x8b8ebe(this['editor'][_0x37d4('0x1')][_0x37d4('0xb')](_0x37d4('0x12')))[_0x37d4('0x2')](_0x1d4c63=>_0x1d4c63[_0x37d4('0x20')]==_0xaba7e4);let _0x248d57=_0xaba7e4,_0x32072f='';return _0x2185fe&&(_0x248d57=_0x2185fe['label'],_0x32072f=_0x55c16c(_0x248d57)[_0x37d4('0x13')]()),{'type':'format','content':_0x141645(_0x18f88e,_0x37d4('0xf'),_0x32072f)[_0x37d4('0x1c')](),'color':{'value':_0xaba7e4,'title':_0x32072f||_0x248d57}};}return{'type':_0x37d4('0xe'),'content':_0x141645(_0x18f88e,_0x37d4('0x1a'))};}}});}}
@@ -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 _0x30dc=['formatBlock','commandName','fontColor.colors','toUpperCase','fontSize','join','toLowerCase','split','plugins','fontColor','length','find','config','_registerLegacyDescription','editor','format','_enableDefaultAttributesIntegration','pasteFormat','entries','FontSize','locale','boolean','get','_descriptionFactory','fontBackgroundColor','type','commands','model','copyFormat','title','push','registerDescriptionCallback'];(function(_0x14379f,_0x30dcf2){const _0x1acbb0=function(_0x5eab0d){while(--_0x5eab0d){_0x14379f['push'](_0x14379f['shift']());}};_0x1acbb0(++_0x30dcf2);}(_0x30dc,0xb8));const _0x1acb=function(_0x14379f,_0x30dcf2){_0x14379f=_0x14379f-0x0;let _0x1acbb0=_0x30dc[_0x14379f];return _0x1acbb0;};import{Plugin as _0x518fed}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x326ce0}from'ckeditor5/src/ui.js';import{getTranslation as _0x39d710}from'../utils/common-translations.js';export default class X extends _0x518fed{['afterInit'](){const _0x4737fb=this[_0x1acb('0x16')],_0x29a4db=_0x4737fb['plugins']['get']('TrackChangesEditing'),_0x1ddaf0=_0x4737fb[_0x1acb('0x2')][_0x1acb('0x1e')]('copyFormat'),_0x5f142c=_0x4737fb[_0x1acb('0x2')][_0x1acb('0x1e')](_0x1acb('0x19'));_0x1ddaf0&&_0x5f142c&&(_0x29a4db[_0x1acb('0x18')](_0x1acb('0x19')),_0x29a4db['enableCommand'](_0x1acb('0x4')),this[_0x1acb('0x15')]());}['_registerLegacyDescription'](){const _0x9f698f=this[_0x1acb('0x16')],_0x4dca89=_0x9f698f[_0x1acb('0x1c')];_0x9f698f['plugins'][_0x1acb('0x1e')]('TrackChangesEditing')[_0x1acb('0x1f')][_0x1acb('0x7')](_0x338d07=>{if(_0x1acb('0x8')!=_0x338d07[_0x1acb('0x1')]&&'formatInline'!=_0x338d07[_0x1acb('0x1')])return;const {data:_0x5a2895}=_0x338d07;if(_0x5a2895&&_0x1acb('0x19')===_0x5a2895[_0x1acb('0x9')]){const _0x119777=[],_0x2e1399=_0x5a2895['commandParams'][0x0];for(const [_0x92a391,_0x2c65a3]of Object[_0x1acb('0x1a')](_0x2e1399))_0x119777[_0x1acb('0x6')](so(_0x9f698f,_0x92a391,_0x2c65a3));return _0x119777[_0x1acb('0x12')]?{'type':_0x1acb('0x17'),'content':_0x39d710(_0x4dca89,'*Set\x20format\x20to:*\x20%0',_0x119777[_0x1acb('0xd')](',\x20'))}:{'type':_0x1acb('0x17'),'content':_0x39d710(_0x4dca89,'*Remove\x20all\x20formatting*')};}});}}function so(_0x328397,_0x4a2a7f,_0x50823b){const _0x273c09=_0x328397[_0x1acb('0x1c')]['t'],_0x13276c=_0x4a2a7f[_0x1acb('0xf')](/(?=[A-Z])/)['join']('\x20'),_0x57174f=_0x273c09(_0x13276c['charAt'](0x0)[_0x1acb('0xb')]()+_0x13276c['slice'](0x1))[_0x1acb('0xe')]();if(_0x1acb('0x1d')==typeof _0x50823b)return _0x57174f;if(_0x1acb('0x11')===_0x4a2a7f||_0x1acb('0x0')===_0x4a2a7f){const _0x3ac597=_0x326ce0(_0x328397[_0x1acb('0x14')][_0x1acb('0x1e')](_0x1acb('0xa')))[_0x1acb('0x13')](_0x18894f=>_0x18894f[_0x1acb('0x3')]==_0x50823b);return _0x57174f+'\x20('+(_0x3ac597?_0x273c09(_0x3ac597['label'])['toLowerCase']():_0x50823b)+')';}if(_0x1acb('0xc')===_0x4a2a7f&&isNaN(parseFloat(_0x50823b))){const _0x4f6544=_0x328397[_0x1acb('0x10')][_0x1acb('0x1e')](_0x1acb('0x1b'))['normalizeSizeOptions'](_0x328397[_0x1acb('0x14')]['get']('fontSize.options'))[_0x1acb('0x13')](_0x33f9ae=>_0x33f9ae[_0x1acb('0x3')]==_0x50823b);return _0x57174f+'\x20('+(_0x4f6544?_0x273c09(_0x4f6544[_0x1acb('0x5')])[_0x1acb('0xe')]():_0x50823b)+')';}return _0x57174f+'\x20('+_0x50823b+')';}
@@ -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 _0x1916=['get','config','*Change\x20to:*\x20%0','commandParams','has','format','plugins','formatBlock','ELEMENT_HEADING','editor','ELEMENT_HEADING_CUSTOM','_getHeadingLevel','type','match','name','_registerLegacyDescription','_headingOptions','locale','registerDescriptionCallback','value','TrackChangesEditing','_descriptionFactory','title','HeadingEditing','model','view','commandName','find','registerElementLabel','heading','_enableDefaultAttributesIntegration'];(function(_0x639897,_0x19169e){const _0x406bb1=function(_0x135722){while(--_0x135722){_0x639897['push'](_0x639897['shift']());}};_0x406bb1(++_0x19169e);}(_0x1916,0x7e));const _0x406b=function(_0x639897,_0x19169e){_0x639897=_0x639897-0x0;let _0x406bb1=_0x1916[_0x639897];return _0x406bb1;};import{Plugin as _0x5cc316}from'ckeditor5/src/core.js';import{getTranslation as _0xd45161}from'../utils/common-translations.js';export default class Y extends _0x5cc316{['afterInit'](){const _0x9cf6f0=this['editor'];if(!_0x9cf6f0[_0x406b('0x4')][_0x406b('0x2')](_0x406b('0x15')))return;this[_0x406b('0xe')]=_0x9cf6f0[_0x406b('0x1e')][_0x406b('0x1d')]('heading.options');const _0x5c1eb6=_0x9cf6f0[_0x406b('0xf')],_0x57d64b=_0x9cf6f0['plugins'][_0x406b('0x1d')]('TrackChangesEditing');_0x57d64b[_0x406b('0x1c')](_0x406b('0x1b'));for(const _0x1d2ee0 of this['_headingOptions'])'paragraph'!=_0x1d2ee0[_0x406b('0x16')]&&_0x57d64b[_0x406b('0x13')][_0x406b('0x1a')](_0x1d2ee0['model'],_0x10e576=>{const _0xd94829=this[_0x406b('0x9')](_0x1d2ee0['model']);return null!==_0xd94829?_0x5743fa(_0x10e576,_0xd94829):_0x48a741(_0x10e576,_0x1d2ee0['title']);});function _0x5743fa(_0x79c4f0,_0x41306d){return _0xd45161(_0x5c1eb6,_0x406b('0x6'),[_0x79c4f0,_0x41306d]);}function _0x48a741(_0x20fe7d,_0x2b25b9){return _0xd45161(_0x5c1eb6,'ELEMENT_HEADING_CUSTOM',[_0x20fe7d,_0x2b25b9]);}this[_0x406b('0xd')]();}[_0x406b('0xd')](){const _0x46486f=this[_0x406b('0x7')],_0x1b0eed=_0x46486f['locale'];function _0x3a12e1(_0x8a2f25,_0x48819f){return _0xd45161(_0x1b0eed,_0x406b('0x8'),[_0x8a2f25,_0x48819f]);}_0x46486f[_0x406b('0x4')][_0x406b('0x1d')](_0x406b('0x12'))[_0x406b('0x13')][_0x406b('0x10')](_0x4fc4b0=>{if(_0x406b('0x5')!=_0x4fc4b0[_0x406b('0xa')])return;const {data:_0x3a5bda}=_0x4fc4b0;if(_0x3a5bda&&'heading'==_0x3a5bda[_0x406b('0x18')]){const _0x54ba4b=_0x3a5bda[_0x406b('0x1')][0x0][_0x406b('0x11')],_0x3ee8d0=this[_0x406b('0x9')](_0x54ba4b);if(null!==_0x3ee8d0)return{'type':_0x406b('0x3'),'content':_0xd45161(_0x1b0eed,_0x406b('0x0'),(_0x34fc13=0x1,_0x3d0478=_0x3ee8d0,_0xd45161(_0x1b0eed,_0x406b('0x6'),[_0x34fc13,_0x3d0478])))};const _0xc37b9a=this['_headingOptions']['find'](_0x2fe579=>_0x2fe579[_0x406b('0x16')]===_0x54ba4b)[_0x406b('0x14')];return{'type':_0x406b('0x3'),'content':_0xd45161(_0x1b0eed,_0x406b('0x0'),_0x3a12e1(0x1,_0xc37b9a))};}var _0x34fc13,_0x3d0478;});}[_0x406b('0x9')](_0x2c0a70){var _0x44f035,_0xfa0c31;const _0x445ad8=_0x2c0a70[_0x406b('0xb')](/^heading(\d+)/);if(_0x445ad8)return _0x445ad8[0x1];const _0x227c96=null===(_0x44f035=this['_headingOptions'])||void 0x0===_0x44f035?void 0x0:_0x44f035[_0x406b('0x19')](_0x2d8bdf=>_0x2d8bdf[_0x406b('0x16')]==_0x2c0a70);if(_0x227c96&&_0x227c96[_0x406b('0x17')]){const _0x55f3ce=_0x227c96[_0x406b('0x17')],_0x983899=(null!==(_0xfa0c31=_0x55f3ce[_0x406b('0xc')])&&void 0x0!==_0xfa0c31?_0xfa0c31:_0x55f3ce)[_0x406b('0xb')](/^h(\d+)/);if(_0x983899)return _0x983899[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 _0x9055=['_registerLegacyDescription','has','editor','HighlightEditing','highlight','FORMAT_HIGHLIGHT','color','title','locale','_enableDefaultAttributesIntegration','afterInit','value','*Remove\x20highlight*','TrackChangesEditing','toLowerCase','registerDescriptionCallback','commandName','*Set\x20highlight:*\x20%0','format','registerAttributeLabel','plugins','highlight.options','get','commandParams'];(function(_0x588951,_0x905559){const _0x450034=function(_0x4c69f2){while(--_0x4c69f2){_0x588951['push'](_0x588951['shift']());}};_0x450034(++_0x905559);}(_0x9055,0x1d8));const _0x4500=function(_0x588951,_0x905559){_0x588951=_0x588951-0x0;let _0x450034=_0x9055[_0x588951];return _0x450034;};import{Plugin as _0x33fd7a}from'ckeditor5/src/core.js';import{getTranslation as _0x37aa9f}from'../utils/common-translations.js';export default class Z extends _0x33fd7a{[_0x4500('0x12')](){const _0x194d03=this[_0x4500('0xa')];if(!_0x194d03[_0x4500('0x4')][_0x4500('0x9')](_0x4500('0xb')))return;const _0x133c38=_0x194d03[_0x4500('0x4')][_0x4500('0x6')]('TrackChangesEditing'),_0x2be5e7=_0x194d03[_0x4500('0x10')];_0x133c38[_0x4500('0x11')](_0x4500('0xc'),['highlight']),_0x133c38['_descriptionFactory'][_0x4500('0x3')](_0x4500('0xc'),_0x37aa9f(_0x2be5e7,_0x4500('0xd'))),this[_0x4500('0x8')]();}[_0x4500('0x8')](){const _0x55eff6=this[_0x4500('0xa')],_0x36c56b=_0x55eff6['locale'];_0x55eff6[_0x4500('0x4')]['get'](_0x4500('0x15'))['_descriptionFactory'][_0x4500('0x17')](_0x535388=>{if('formatInline'!=_0x535388['type'])return;const {data:_0x57d511}=_0x535388;if(_0x57d511&&'highlight'==_0x57d511[_0x4500('0x0')]){const _0x45270d=_0x36c56b['t'],_0x4574ca=_0x57d511[_0x4500('0x7')][0x0][_0x4500('0x13')];if(_0x4574ca){const _0x38be6e=_0x55eff6['config']['get'](_0x4500('0x5'))['find'](_0x4111d7=>_0x4111d7['model']==_0x4574ca),_0x315aa4=_0x45270d(_0x38be6e[_0x4500('0xf')])[_0x4500('0x16')]();return{'type':'format','content':_0x37aa9f(_0x36c56b,_0x4500('0x1'),_0x315aa4),'color':{'value':_0x38be6e[_0x4500('0xe')],'title':_0x38be6e[_0x4500('0xf')]}};}return{'type':_0x4500('0x2'),'content':_0x37aa9f(_0x36c56b,_0x4500('0x14'),_0x37aa9f(_0x36c56b,_0x4500('0xd')))};}});}}
@@ -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 _0x227a=['addClass','createEmptyElement','has','createContainerElement','horizontalLine','high','TrackChangesEditing','ELEMENT_HORIZONTAL_LINE','ck-horizontal-line','dataDowncast','conversion','plugins','HorizontalLineEditing','elementToStructure','showSuggestionHighlights','div','registerElementLabel','editor','insert','_descriptionFactory','for'];(function(_0x431fcf,_0x227a0d){const _0x4f92c1=function(_0x141f8d){while(--_0x141f8d){_0x431fcf['push'](_0x431fcf['shift']());}};_0x4f92c1(++_0x227a0d);}(_0x227a,0x17e));const _0x4f92=function(_0x431fcf,_0x227a0d){_0x431fcf=_0x431fcf-0x0;let _0x4f92c1=_0x227a[_0x431fcf];return _0x4f92c1;};import{Plugin as _0x3602ed}from'ckeditor5/src/core.js';import{getTranslation as _0x1b93ed}from'../utils/common-translations.js';export default class tt extends _0x3602ed{['afterInit'](){const _0xef86a8=this[_0x4f92('0xd')];if(!_0xef86a8[_0x4f92('0x7')][_0x4f92('0x13')](_0x4f92('0x8')))return;_0xef86a8[_0x4f92('0x7')]['get'](_0x4f92('0x2'))['enableCommand'](_0x4f92('0x0'));const _0x4ec117=_0xef86a8[_0x4f92('0x7')]['get'](_0x4f92('0x2')),_0x4e3a1e=_0xef86a8['locale'];_0x4ec117[_0x4f92('0xf')][_0x4f92('0xc')](_0x4f92('0x0'),_0x5b4760=>_0x1b93ed(_0x4e3a1e,_0x4f92('0x3'),_0x5b4760)),_0xef86a8[_0x4f92('0x6')][_0x4f92('0x10')](_0x4f92('0x5'))[_0x4f92('0x9')]({'model':'horizontalLine','view':(_0x187f01,{writer:_0x85b13,options:_0x41bdce})=>{if(!_0x41bdce[_0x4f92('0xa')])return null;const _0x488a50=_0x85b13[_0x4f92('0x14')](_0x4f92('0xb')),_0x1a1058=_0x85b13[_0x4f92('0x12')]('hr');return _0x85b13[_0x4f92('0x11')](_0x4f92('0x4'),_0x488a50),_0x85b13[_0x4f92('0xe')](_0x85b13['createPositionAt'](_0x488a50,0x0),_0x1a1058),_0x488a50;},'converterPriority':_0x4f92('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/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 _0x3c43=['TrackChangesEditing','editor','locale','getFirstRange','rawHtml','key','start','_descriptionFactory','has','htmlEmbed','_enableDefaultAttributesIntegration','*Change\x20%0\x20content*','format','value','formatBlock','type','afterInit','attribute','_registerLegacyDescription','registerElementLabel','ELEMENT_HTML_EMBED','plugins','commandName'];(function(_0x2b78fe,_0x3c4308){const _0x3491de=function(_0x607b7){while(--_0x607b7){_0x2b78fe['push'](_0x2b78fe['shift']());}};_0x3491de(++_0x3c4308);}(_0x3c43,0x11a));const _0x3491=function(_0x2b78fe,_0x3c4308){_0x2b78fe=_0x2b78fe-0x0;let _0x3491de=_0x3c43[_0x2b78fe];return _0x3491de;};import{Plugin as _0x4a1dd7}from'ckeditor5/src/core.js';import{getTranslation as _0x1462a5}from'../utils/common-translations.js';export default class et extends _0x4a1dd7{[_0x3491('0xa')](){const _0x8886f4=this[_0x3491('0x12')];if(!_0x8886f4[_0x3491('0xf')][_0x3491('0x2')]('HtmlEmbed'))return;const _0x27b4dd=_0x8886f4[_0x3491('0xf')]['get'](_0x3491('0x11')),_0x281ffa=_0x8886f4['locale'];_0x27b4dd['_descriptionFactory'][_0x3491('0xd')](_0x3491('0x15'),_0x4114d5=>_0x1462a5(_0x281ffa,_0x3491('0xe'),_0x4114d5)),_0x27b4dd[_0x3491('0x4')](_0x3491('0x3'),[],[_0x3491('0x7')]),_0x27b4dd[_0x3491('0x1')]['registerDescriptionCallback'](_0x289e9d=>{if(_0x3491('0xb')!=_0x289e9d['type'])return;const {data:_0x30aa39}=_0x289e9d;if(_0x30aa39&&_0x3491('0x7')==_0x30aa39[_0x3491('0x16')]&&_0x289e9d[_0x3491('0x14')]()[_0x3491('0x0')]['nodeAfter']['is']('element',_0x3491('0x15'))){const _0x498103=_0x1462a5(_0x281ffa,_0x3491('0xe'));return{'type':_0x3491('0x6'),'content':_0x1462a5(_0x281ffa,_0x3491('0x5'),_0x498103)};}}),this[_0x3491('0xc')]();}[_0x3491('0xc')](){const _0x34b496=this[_0x3491('0x12')],_0x774a0f=_0x34b496[_0x3491('0x13')];_0x34b496[_0x3491('0xf')]['get'](_0x3491('0x11'))[_0x3491('0x1')]['registerDescriptionCallback'](_0x44cf40=>{if(_0x3491('0x8')!=_0x44cf40[_0x3491('0x9')])return;const {data:_0x3ac7ed}=_0x44cf40;if(_0x3ac7ed&&_0x3491('0x3')==_0x3ac7ed[_0x3491('0x10')]){const _0x282101=_0x1462a5(_0x774a0f,_0x3491('0xe'));return{'type':_0x3491('0x6'),'content':_0x1462a5(_0x774a0f,_0x3491('0x5'),_0x282101)};}});}}
@@ -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 _0x2aa9=['Inline\x20image\x20to\x20block\x20image','*Reset\x20image\x20width*','end','getNearestSelectionRange','convertBlockImageToInline','join','imageTextAlternative','isIntersecting','_registerLegacyDescription','schema','_suggestionFactory','addObject','markInsertion','createRange','document','convertInlineImageToBlock','ImageEditing','imageTypeInline','change','editor','detach','ELEMENT_INLINE_IMAGE','afterInit','imageTypeBlock','commandParams','formatBlock','previous','isBlockImage','enableCommand','TrackChangesEditing','imageStylePreApply','model','resizedWidth','get','registerDescriptionCallback','ImageCaptionEditing','getFirstRange','*Set\x20image\x20text\x20alternative:*\x20%0','getClosestSelectedImageElement','insertImage','element','*Remove\x20image\x20text\x20alternative*','caption','ImageUtils','imageInline','locale','backward','discard','selection','isCollapsed','commandName','alt','markBlockFormat','start','resizeImage','nodeAfter','getSuggestionCallback','findIndex','chain','isEqual','fromPosition','ELEMENT_IMAGE','createRangeOn','_enableDefaultAttributesIntegration','ImageResize','plugins','deletion','*Set\x20image\x20width:*\x20%0','isOwn','toPrevious','isBefore','registerAttributeLabel','ImageTextAlternativeEditing','registerElementLabel','accept','ImageInlineEditing','nodeBefore','filter','_findSuggestions','has','length','FORMAT_IMAGE_SIZE','width','type','subType','forceDefaultExecution','imageCaption','formatInline','newValue','registerCustomCallback','getContainedElement','_descriptionFactory','insertion','format'];(function(_0x2d539d,_0x2aa9f2){const _0xa32b74=function(_0x1a7977){while(--_0x1a7977){_0x2d539d['push'](_0x2d539d['shift']());}};_0xa32b74(++_0x2aa9f2);}(_0x2aa9,0x122));const _0xa32b=function(_0x2d539d,_0x2aa9f2){_0x2d539d=_0x2d539d-0x0;let _0xa32b74=_0x2aa9[_0x2d539d];return _0xa32b74;};import{Plugin as _0x4634ca}from'ckeditor5/src/core.js';import{LivePosition as _0x467a13}from'ckeditor5/src/engine.js';import{getTranslation as _0x547086}from'../utils/common-translations.js';export default class it extends _0x4634ca{[_0xa32b('0xe')](){const _0x1f63f2=this['editor'];if(!_0x1f63f2[_0xa32b('0x39')][_0xa32b('0x47')](_0xa32b('0x8')))return;const _0x192532=_0x1f63f2[_0xa32b('0x39')]['get']('TrackChangesEditing'),_0x4df73a=_0x1f63f2[_0xa32b('0x39')][_0xa32b('0x19')](_0xa32b('0x23')),_0x3a1eae=_0x1f63f2[_0xa32b('0x25')];_0x192532[_0xa32b('0x14')](_0xa32b('0x1f')),_0x192532[_0xa32b('0x53')][_0xa32b('0x41')]('imageBlock',_0x2aa0d8=>_0x547086(_0x3a1eae,_0xa32b('0x35'),_0x2aa0d8)),_0x192532[_0xa32b('0x53')][_0xa32b('0x41')](_0xa32b('0x24'),_0xc97ad7=>_0x547086(_0x3a1eae,_0xa32b('0xd'),_0xc97ad7)),_0x192532[_0xa32b('0x53')]['registerElementLabel'](_0xa32b('0x22'),()=>_0x547086(_0x3a1eae,'ELEMENT_CAPTION')),_0x1f63f2[_0xa32b('0x39')][_0xa32b('0x47')]('ImageUploadEditing')&&_0x192532[_0xa32b('0x14')]('uploadImage'),_0x1f63f2[_0xa32b('0x39')]['has']('ImageBlockEditing')&&_0x1f63f2[_0xa32b('0x39')][_0xa32b('0x47')](_0xa32b('0x43'))&&(_0x192532[_0xa32b('0x14')]('imageTypeInline',(_0x4c72ce,_0x595306)=>{const _0x1f0d32=_0x4df73a[_0xa32b('0x1e')](_0x1f63f2[_0xa32b('0x17')]['document']['selection']);_0x1f63f2[_0xa32b('0x17')][_0xa32b('0xa')](()=>{_0x192532['markBlockFormat'](_0x1f0d32,{'commandName':'imageTypeInline','commandParams':[_0x595306]},[],_0xa32b('0x5a'));});}),_0x192532[_0xa32b('0x14')](_0xa32b('0xf'),(_0x1af318,_0x4c440a)=>{_0x1f63f2[_0xa32b('0x17')][_0xa32b('0xa')](_0x8d027f=>{let _0x4e157c=_0x4df73a[_0xa32b('0x1e')](_0x1f63f2[_0xa32b('0x17')]['document'][_0xa32b('0x28')]),_0x2fe0b1=_0x8d027f[_0xa32b('0x36')](_0x4e157c);const _0x3d7d33=_0x467a13['fromPosition'](_0x2fe0b1['start'],_0xa32b('0x3d')),_0x23325d=_0x467a13[_0xa32b('0x34')](_0x2fe0b1[_0xa32b('0x58')],'toNext');_0x192532[_0xa32b('0x4d')](()=>_0x1af318(_0x4c440a)),_0x4e157c=_0x4df73a[_0xa32b('0x1e')](_0x1f63f2['model'][_0xa32b('0x6')][_0xa32b('0x28')]),_0x2fe0b1=_0x8d027f[_0xa32b('0x36')](_0x4e157c);const _0x5c7b4b=_0x8d027f[_0xa32b('0x5')](_0x3d7d33,_0x23325d);_0x3d7d33[_0xa32b('0xc')](),_0x23325d['detach'](),_0x192532[_0xa32b('0x2c')](_0x4e157c,{'commandName':_0xa32b('0x9'),'commandParams':[_0x4c440a]},[],'convertInlineImageToBlock'),_0x5c7b4b[_0xa32b('0x2d')][_0xa32b('0x3e')](_0x2fe0b1[_0xa32b('0x2d')])&&_0x192532['markInsertion'](_0x8d027f['createRange'](_0x5c7b4b[_0xa32b('0x2d')],_0x2fe0b1[_0xa32b('0x2d')]),_0xa32b('0x7')),_0x2fe0b1[_0xa32b('0x58')][_0xa32b('0x3e')](_0x5c7b4b['end'])&&_0x192532[_0xa32b('0x4')](_0x8d027f['createRange'](_0x2fe0b1['end'],_0x5c7b4b['end']),_0xa32b('0x7'));});}),_0x192532['_suggestionFactory'][_0xa32b('0x51')](_0xa32b('0x11'),_0xa32b('0x7'),_0xa32b('0x5b'),()=>!0x1),_0x192532[_0xa32b('0x2')][_0xa32b('0x51')](_0xa32b('0x11'),_0xa32b('0x7'),_0xa32b('0x42'),()=>!0x1),_0x192532[_0xa32b('0x2')][_0xa32b('0x51')](_0xa32b('0x11'),'convertInlineImageToBlock',_0xa32b('0x27'),_0x192532['_suggestionFactory']['getSuggestionCallback'](_0xa32b('0x11'),'','accept')),_0x192532[_0xa32b('0x2')][_0xa32b('0x51')](_0xa32b('0x54'),'convertInlineImageToBlock','join',()=>!0x1),_0x192532['_suggestionFactory'][_0xa32b('0x51')]('insertion',_0xa32b('0x7'),_0xa32b('0x27'),([_0x5e6db3])=>{const _0x58e0ca=_0x192532[_0xa32b('0x2')][_0xa32b('0x30')]('insertion','','discard');let _0x334f9d=_0x5e6db3['start'],_0x9cec37=_0x5e6db3[_0xa32b('0x58')];const _0x51b78a=_0x1f63f2['model'][_0xa32b('0x1')]['getNearestSelectionRange'](_0x334f9d,_0xa32b('0x26')),_0x488087=_0x1f63f2[_0xa32b('0x17')][_0xa32b('0x1')][_0xa32b('0x59')](_0x9cec37,'forward');_0x51b78a[_0xa32b('0x29')]&&(_0x334f9d=_0x51b78a['start']),_0x488087[_0xa32b('0x29')]&&(_0x9cec37=_0x488087[_0xa32b('0x58')]),_0x58e0ca([_0x1f63f2[_0xa32b('0x17')][_0xa32b('0x5')](_0x334f9d,_0x9cec37)]);}),_0x192532['_suggestionFactory'][_0xa32b('0x51')](_0xa32b('0x11'),_0xa32b('0x7'),_0xa32b('0x32'),_0x183f70),_0x192532['_suggestionFactory'][_0xa32b('0x51')](_0xa32b('0x54'),_0xa32b('0x7'),_0xa32b('0x32'),_0x183f70)),_0x1f63f2[_0xa32b('0x39')][_0xa32b('0x47')](_0xa32b('0x1b'))&&(_0x192532[_0xa32b('0x14')]('toggleImageCaption',(_0x4a76a6,_0x2df82e)=>{const _0x5500fc=_0x1f63f2[_0xa32b('0x39')]['get']('ImageCaptionUtils');let _0x4b15ae=_0x4df73a[_0xa32b('0x1e')](_0x1f63f2[_0xa32b('0x17')][_0xa32b('0x6')][_0xa32b('0x28')]),_0x2b964f=_0x5500fc['getCaptionFromImageModelElement'](_0x4b15ae);_0x1f63f2[_0xa32b('0x17')][_0xa32b('0xa')](()=>{if(_0x2b964f)return void _0x192532['markDeletion'](_0x1f63f2[_0xa32b('0x17')][_0xa32b('0x36')](_0x2b964f));const _0x45650e=_0x4df73a[_0xa32b('0x13')](_0x4b15ae);_0x4a76a6(_0x2df82e),_0x4b15ae=_0x4df73a[_0xa32b('0x1e')](_0x1f63f2['model']['document'][_0xa32b('0x28')]),_0x2b964f=_0x5500fc['getCaptionFromImageModelElement'](_0x4b15ae),_0x192532[_0xa32b('0x4')](_0x1f63f2['model']['createRangeOn'](_0x2b964f),_0x45650e?null:_0xa32b('0x4e'));});}),_0x192532[_0xa32b('0x2')]['registerCustomCallback']('insertion','imageCaption','chain',_0x183f70));const _0x2bfe45=[{'type':_0xa32b('0x11'),'subType':_0xa32b('0x16')},{'type':_0xa32b('0x54'),'subType':_0xa32b('0x4e')},{'type':_0xa32b('0x11'),'subType':_0xa32b('0x7')},{'type':_0xa32b('0x54'),'subType':_0xa32b('0x7')}];function _0x50dee7(_0x44fe9b,_0x3a7d8f){const _0xadad42=_0x2bfe45[_0xa32b('0x31')](({type:_0x478f11,subType:_0x883b23})=>_0x44fe9b['type']==_0x478f11&&_0x44fe9b[_0xa32b('0x4c')]==_0x883b23),_0x4b894b=_0x2bfe45['findIndex'](({type:_0x5c0a71,subType:_0x419b32})=>_0x3a7d8f['type']==_0x5c0a71&&_0x3a7d8f[_0xa32b('0x4c')]==_0x419b32);if(_0xadad42<0x0||_0x4b894b<0x0)return!0x1;const _0x25c463=_0x44fe9b[_0xa32b('0x1c')](),_0x2b6bc9=_0x3a7d8f[_0xa32b('0x1c')]();if((0x0==_0xadad42||0x1==_0xadad42)&&0x2==_0x4b894b&&_0x25c463[_0xa32b('0x5d')](_0x2b6bc9))return!0x0;if(0x2==_0xadad42&&0x3==_0x4b894b){const _0x5b8d52=_0x192532[_0xa32b('0x46')](_0x25c463,_0xa32b('0x54'))[_0xa32b('0x45')](({suggestion:_0x3e8e5d,meta:_0x31e541})=>_0x31e541[_0xa32b('0x3c')]&&_0xa32b('0x7')==_0x3e8e5d[_0xa32b('0x4c')]);if(_0x5b8d52[_0xa32b('0x48')]>0x1&&_0x2b6bc9[_0xa32b('0x58')][_0xa32b('0x33')](_0x25c463['start']))return!0x0;if(0x1==_0x5b8d52[_0xa32b('0x48')]&&(_0x25c463[_0xa32b('0x2d')][_0xa32b('0x33')](_0x2b6bc9[_0xa32b('0x58')])||_0x25c463[_0xa32b('0x58')][_0xa32b('0x33')](_0x2b6bc9[_0xa32b('0x2d')])))return!0x0;}if(0x3==_0xadad42&&0x3==_0x4b894b&&_0x25c463[_0xa32b('0x2d')]['isBefore'](_0x2b6bc9['start'])){const _0x23c93b=_0x25c463[_0xa32b('0x58')][_0xa32b('0x2f')],_0x2d2f49=_0x2b6bc9[_0xa32b('0x2d')][_0xa32b('0x44')];return _0x4df73a[_0xa32b('0x13')](_0x23c93b)&&_0x23c93b===_0x2d2f49;}return!0x1;}function _0x183f70(_0x311f2f,_0x51acd6){return _0x50dee7(_0x311f2f,_0x51acd6)?[_0x311f2f,_0x51acd6]:_0x50dee7(_0x51acd6,_0x311f2f)?[_0x51acd6,_0x311f2f]:null;}_0x1f63f2[_0xa32b('0x39')][_0xa32b('0x47')](_0xa32b('0x38'))&&(_0x192532[_0xa32b('0x37')](_0xa32b('0x2e'),[],['resizedWidth']),_0x192532[_0xa32b('0x53')][_0xa32b('0x3f')](_0xa32b('0x18'),_0x547086(_0x3a1eae,_0xa32b('0x49')))),_0x1f63f2[_0xa32b('0x39')][_0xa32b('0x47')](_0xa32b('0x40'))&&_0x192532[_0xa32b('0x37')](_0xa32b('0x5c'),[],['alt']),_0x192532['_descriptionFactory']['registerDescriptionCallback'](_0x3c4e95=>{if(!!_0x2bfe45['find'](({type:_0x455d1b,subType:_0x3acc99})=>_0x3c4e95[_0xa32b('0x4b')]==_0x455d1b&&_0x3c4e95[_0xa32b('0x4c')]==_0x3acc99))return _0x3c4e95[_0xa32b('0x12')]?{}:void 0x0;}),_0x192532[_0xa32b('0x53')][_0xa32b('0x1a')](_0x1151b3=>{if(_0xa32b('0x54')==_0x1151b3[_0xa32b('0x4b')]||_0xa32b('0x3a')==_0x1151b3['type']){const _0x443b11=_0x1151b3[_0xa32b('0x52')]();if(_0x443b11&&_0x443b11['is'](_0xa32b('0x20'),'caption'))return{'type':'insertion'==_0x1151b3[_0xa32b('0x4b')]?_0xa32b('0x3'):'removeObject','element':_0x443b11,'quantity':0x1};}}),_0x192532[_0xa32b('0x53')][_0xa32b('0x1a')](_0x3b9073=>'formatBlock'==_0x3b9073[_0xa32b('0x4b')]&&'convertInlineImageToBlock'==_0x3b9073[_0xa32b('0x4c')]?{'type':_0xa32b('0x55'),'content':_0xa32b('0x56')}:'formatBlock'==_0x3b9073[_0xa32b('0x4b')]&&'convertBlockImageToInline'==_0x3b9073[_0xa32b('0x4c')]?{'type':_0xa32b('0x55'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x192532[_0xa32b('0x53')]['registerDescriptionCallback'](_0x4e9c47=>{if('attribute'!=_0x4e9c47[_0xa32b('0x4b')])return;const {data:_0x284b20}=_0x4e9c47;if(!_0x284b20||_0xa32b('0x2b')!=_0x284b20['key'])return;const _0xc7df45=_0x284b20['newValue'];return _0xc7df45?{'type':_0xa32b('0x55'),'content':_0x547086(_0x3a1eae,_0xa32b('0x1d'),'\x22'+_0xc7df45+'\x22')}:{'type':'format','content':_0x547086(_0x3a1eae,_0xa32b('0x21'))};}),this[_0xa32b('0x0')]();}['_registerLegacyDescription'](){const _0x533a1c=this[_0xa32b('0xb')],_0x298ec9=_0x533a1c[_0xa32b('0x25')];_0x533a1c['plugins']['get'](_0xa32b('0x15'))[_0xa32b('0x53')][_0xa32b('0x1a')](_0x4054ce=>{if(_0xa32b('0x11')!=_0x4054ce['type']&&_0xa32b('0x4f')!=_0x4054ce[_0xa32b('0x4b')])return;const {data:_0xc7f8fa}=_0x4054ce;if(_0xc7f8fa){if(_0xa32b('0x5c')==_0xc7f8fa[_0xa32b('0x2a')]){const _0x42cf68=_0xc7f8fa[_0xa32b('0x10')][0x0][_0xa32b('0x50')];return _0x42cf68?{'type':_0xa32b('0x55'),'content':_0x547086(_0x298ec9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x42cf68+'\x22')}:{'type':_0xa32b('0x55'),'content':_0x547086(_0x298ec9,'*Remove\x20image\x20text\x20alternative*')};}if(_0xa32b('0x2e')==_0xc7f8fa[_0xa32b('0x2a')]){const _0x1a2ea6=_0xc7f8fa['commandParams'][0x0][_0xa32b('0x4a')];return _0x1a2ea6?{'type':_0xa32b('0x55'),'content':_0x547086(_0x298ec9,_0xa32b('0x3b'),_0x1a2ea6)}:{'type':'format','content':_0x547086(_0x298ec9,_0xa32b('0x57'))};}}});}}
@@ -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 _0x5c1b=['get','format','attribute','formatBlock','_descriptionFactory','_suggestionFactory','replaceImageSource','editor','getSuggestionCallback','commandName','type','_handleLegacySuggestions','registerCustomCallback','_enableDefaultAttributesIntegration','_registerLegacyDescription','newValue','afterInit','plugins','ImageEditing','formatInline','registerDescriptionCallback','*Format:*\x20replace\x20image\x20URL','TrackChangesEditing','key','has','src','locale'];(function(_0x4d45b6,_0x5c1b68){const _0x11ea75=function(_0x4eaa0b){while(--_0x4eaa0b){_0x4d45b6['push'](_0x4d45b6['shift']());}};_0x11ea75(++_0x5c1b68);}(_0x5c1b,0x1a8));const _0x11ea=function(_0x4d45b6,_0x5c1b68){_0x4d45b6=_0x4d45b6-0x0;let _0x11ea75=_0x5c1b[_0x4d45b6];return _0x11ea75;};import{Plugin as _0x4c39fb}from'ckeditor5/src/core.js';import{getTranslation as _0x30925c}from'../utils/common-translations.js';export default class st extends _0x4c39fb{[_0x11ea('0x18')](){if(!this[_0x11ea('0xf')][_0x11ea('0x19')][_0x11ea('0x5')](_0x11ea('0x1a')))return;const _0x12d6cd=this[_0x11ea('0xf')][_0x11ea('0x7')],_0xe68bd0=this['editor'][_0x11ea('0x19')]['get']('TrackChangesEditing');_0xe68bd0[_0x11ea('0x15')](_0x11ea('0xe'),[],['src']),_0xe68bd0[_0x11ea('0xc')][_0x11ea('0x1')](_0x35ca1f=>{if(_0x11ea('0xa')!=_0x35ca1f[_0x11ea('0x12')])return;const {data:_0x1a027b}=_0x35ca1f;return _0x1a027b&&_0x11ea('0x6')==_0x1a027b[_0x11ea('0x4')]?_0x1a027b[_0x11ea('0x17')]&&_0x1a027b['oldValue']?{'type':_0x11ea('0x9'),'content':_0x30925c(_0x12d6cd,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this[_0x11ea('0x13')]();}[_0x11ea('0x13')](){const _0x224a04=this['editor'][_0x11ea('0x19')][_0x11ea('0x8')]('TrackChangesEditing');_0x224a04[_0x11ea('0xd')][_0x11ea('0x14')](_0x11ea('0xb'),_0x11ea('0xe'),'accept',_0x224a04['_suggestionFactory'][_0x11ea('0x10')](_0x11ea('0xb'),null,'discard')),_0x224a04[_0x11ea('0xd')][_0x11ea('0x14')](_0x11ea('0xb'),'replaceImageSource','discard',_0x224a04[_0x11ea('0xd')][_0x11ea('0x10')]('formatBlock',null,'accept')),this[_0x11ea('0x16')]();}[_0x11ea('0x16')](){const _0x48a367=this[_0x11ea('0xf')],_0x2e953d=_0x48a367['locale'];_0x48a367[_0x11ea('0x19')][_0x11ea('0x8')](_0x11ea('0x3'))[_0x11ea('0xc')][_0x11ea('0x1')](_0x481d25=>{if('formatBlock'!=_0x481d25['type']&&_0x11ea('0x0')!=_0x481d25[_0x11ea('0x12')])return;const {data:_0x396189}=_0x481d25;if(!_0x396189||_0x11ea('0xe')!=_0x396189[_0x11ea('0x11')])return;return{'type':_0x11ea('0x9'),'content':_0x30925c(_0x2e953d,_0x11ea('0x2'))};});}}
@@ -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
  */