@ckeditor/ckeditor5-track-changes 40.0.0 → 40.2.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 (232) hide show
  1. package/CHANGELOG.md +15 -15
  2. package/LICENSE.md +3 -3
  3. package/README.md +1 -1
  4. package/build/track-changes.js +2 -2
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/az.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/ca.js +1 -1
  10. package/build/translations/cs.js +1 -1
  11. package/build/translations/da.js +1 -1
  12. package/build/translations/de.js +1 -1
  13. package/build/translations/el.js +1 -1
  14. package/build/translations/en-au.js +1 -1
  15. package/build/translations/es.js +1 -1
  16. package/build/translations/et.js +1 -1
  17. package/build/translations/fi.js +1 -1
  18. package/build/translations/fr.js +1 -1
  19. package/build/translations/gl.js +1 -1
  20. package/build/translations/he.js +1 -1
  21. package/build/translations/hi.js +1 -1
  22. package/build/translations/hr.js +1 -1
  23. package/build/translations/hu.js +1 -1
  24. package/build/translations/id.js +1 -1
  25. package/build/translations/it.js +1 -1
  26. package/build/translations/ja.js +1 -1
  27. package/build/translations/ko.js +1 -1
  28. package/build/translations/lt.js +1 -1
  29. package/build/translations/lv.js +1 -1
  30. package/build/translations/ms.js +1 -1
  31. package/build/translations/nl.js +1 -1
  32. package/build/translations/no.js +1 -1
  33. package/build/translations/pl.js +1 -1
  34. package/build/translations/pt-br.js +1 -1
  35. package/build/translations/pt.js +1 -1
  36. package/build/translations/ro.js +1 -1
  37. package/build/translations/ru.js +1 -1
  38. package/build/translations/sk.js +1 -1
  39. package/build/translations/sq.js +1 -1
  40. package/build/translations/sr-latn.js +1 -1
  41. package/build/translations/sr.js +1 -1
  42. package/build/translations/sv.js +1 -1
  43. package/build/translations/th.js +1 -1
  44. package/build/translations/tk.js +1 -1
  45. package/build/translations/tr.js +1 -1
  46. package/build/translations/tt.js +1 -1
  47. package/build/translations/uk.js +1 -1
  48. package/build/translations/ur.js +1 -1
  49. package/build/translations/vi.js +1 -1
  50. package/build/translations/zh-cn.js +1 -1
  51. package/build/translations/zh.js +1 -1
  52. package/lang/contexts.json +20 -1
  53. package/lang/translations/ar.po +78 -2
  54. package/lang/translations/az.po +77 -1
  55. package/lang/translations/bg.po +78 -2
  56. package/lang/translations/bn.po +78 -2
  57. package/lang/translations/ca.po +78 -2
  58. package/lang/translations/cs.po +78 -2
  59. package/lang/translations/da.po +78 -2
  60. package/lang/translations/de.po +78 -2
  61. package/lang/translations/el.po +78 -2
  62. package/lang/translations/en-au.po +78 -2
  63. package/lang/translations/en.po +78 -2
  64. package/lang/translations/es.po +78 -2
  65. package/lang/translations/et.po +78 -2
  66. package/lang/translations/fi.po +78 -2
  67. package/lang/translations/fr.po +78 -2
  68. package/lang/translations/gl.po +90 -14
  69. package/lang/translations/he.po +78 -2
  70. package/lang/translations/hi.po +78 -2
  71. package/lang/translations/hr.po +78 -2
  72. package/lang/translations/hu.po +78 -2
  73. package/lang/translations/id.po +78 -2
  74. package/lang/translations/it.po +78 -2
  75. package/lang/translations/ja.po +78 -2
  76. package/lang/translations/ko.po +78 -2
  77. package/lang/translations/lt.po +78 -2
  78. package/lang/translations/lv.po +78 -2
  79. package/lang/translations/ms.po +78 -2
  80. package/lang/translations/nl.po +78 -2
  81. package/lang/translations/no.po +78 -2
  82. package/lang/translations/pl.po +78 -2
  83. package/lang/translations/pt-br.po +96 -20
  84. package/lang/translations/pt.po +78 -2
  85. package/lang/translations/ro.po +78 -2
  86. package/lang/translations/ru.po +78 -2
  87. package/lang/translations/sk.po +78 -2
  88. package/lang/translations/sq.po +77 -1
  89. package/lang/translations/sr-latn.po +78 -2
  90. package/lang/translations/sr.po +78 -2
  91. package/lang/translations/sv.po +78 -2
  92. package/lang/translations/th.po +78 -2
  93. package/lang/translations/tk.po +77 -1
  94. package/lang/translations/tr.po +78 -2
  95. package/lang/translations/tt.po +77 -1
  96. package/lang/translations/uk.po +78 -2
  97. package/lang/translations/ur.po +77 -1
  98. package/lang/translations/vi.po +78 -2
  99. package/lang/translations/zh-cn.po +78 -2
  100. package/lang/translations/zh.po +78 -2
  101. package/package.json +3 -3
  102. package/src/augmentation.d.ts +40 -40
  103. package/src/commands/acceptsuggestioncommand.d.ts +24 -24
  104. package/src/commands/acceptsuggestioncommand.js +1 -1
  105. package/src/commands/discardsuggestioncommand.d.ts +24 -24
  106. package/src/commands/discardsuggestioncommand.js +1 -1
  107. package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
  108. package/src/commands/executeonallsuggestionscommand.js +1 -1
  109. package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
  110. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  111. package/src/commands/trackchangescommand.d.ts +26 -26
  112. package/src/commands/trackchangescommand.js +1 -1
  113. package/src/index.d.ts +16 -16
  114. package/src/integrations/aiassistant.d.ts +17 -17
  115. package/src/integrations/aiassistant.js +1 -1
  116. package/src/integrations/alignment.d.ts +17 -17
  117. package/src/integrations/alignment.js +1 -1
  118. package/src/integrations/basicstyles.d.ts +17 -17
  119. package/src/integrations/basicstyles.js +1 -1
  120. package/src/integrations/blockquote.d.ts +17 -17
  121. package/src/integrations/blockquote.js +1 -1
  122. package/src/integrations/ckbox.d.ts +17 -17
  123. package/src/integrations/ckbox.js +1 -1
  124. package/src/integrations/codeblock.d.ts +17 -17
  125. package/src/integrations/codeblock.js +1 -1
  126. package/src/integrations/comments.d.ts +14 -14
  127. package/src/integrations/comments.js +1 -1
  128. package/src/integrations/deletecommand.d.ts +17 -17
  129. package/src/integrations/deletecommand.js +1 -1
  130. package/src/integrations/documentlist.d.ts +17 -17
  131. package/src/integrations/documentlist.js +1 -1
  132. package/src/integrations/documentlistproperties.d.ts +29 -29
  133. package/src/integrations/documentlistproperties.js +1 -1
  134. package/src/integrations/entercommand.d.ts +16 -16
  135. package/src/integrations/entercommand.js +1 -1
  136. package/src/integrations/findandreplace.d.ts +21 -21
  137. package/src/integrations/findandreplace.js +1 -1
  138. package/src/integrations/font.d.ts +17 -17
  139. package/src/integrations/font.js +1 -1
  140. package/src/integrations/formatpainter.d.ts +17 -17
  141. package/src/integrations/formatpainter.js +1 -1
  142. package/src/integrations/heading.d.ts +17 -17
  143. package/src/integrations/heading.js +1 -1
  144. package/src/integrations/highlight.d.ts +17 -17
  145. package/src/integrations/highlight.js +1 -1
  146. package/src/integrations/horizontalline.d.ts +17 -17
  147. package/src/integrations/horizontalline.js +1 -1
  148. package/src/integrations/htmlembed.d.ts +17 -17
  149. package/src/integrations/htmlembed.js +1 -1
  150. package/src/integrations/image.d.ts +17 -17
  151. package/src/integrations/image.js +1 -1
  152. package/src/integrations/imagereplace.d.ts +17 -23
  153. package/src/integrations/imagereplace.js +1 -1
  154. package/src/integrations/imagestyle.d.ts +17 -0
  155. package/src/integrations/imagestyle.js +23 -0
  156. package/src/integrations/importword.d.ts +18 -18
  157. package/src/integrations/importword.js +1 -1
  158. package/src/integrations/indent.d.ts +17 -17
  159. package/src/integrations/indent.js +1 -1
  160. package/src/integrations/inputcommand.d.ts +16 -16
  161. package/src/integrations/inputcommand.js +1 -1
  162. package/src/integrations/link.d.ts +17 -17
  163. package/src/integrations/link.js +1 -1
  164. package/src/integrations/list.d.ts +17 -17
  165. package/src/integrations/list.js +1 -1
  166. package/src/integrations/listproperties.d.ts +29 -29
  167. package/src/integrations/listproperties.js +1 -1
  168. package/src/integrations/mediaembed.d.ts +17 -17
  169. package/src/integrations/mediaembed.js +1 -1
  170. package/src/integrations/mention.d.ts +17 -17
  171. package/src/integrations/mention.js +1 -1
  172. package/src/integrations/pagebreak.d.ts +17 -17
  173. package/src/integrations/pagebreak.js +1 -1
  174. package/src/integrations/paragraph.d.ts +17 -17
  175. package/src/integrations/paragraph.js +1 -1
  176. package/src/integrations/removeformat.d.ts +17 -17
  177. package/src/integrations/removeformat.js +1 -1
  178. package/src/integrations/restrictededitingmode.d.ts +17 -17
  179. package/src/integrations/restrictededitingmode.js +1 -1
  180. package/src/integrations/shiftentercommand.d.ts +16 -16
  181. package/src/integrations/shiftentercommand.js +1 -1
  182. package/src/integrations/standardeditingmode.d.ts +17 -17
  183. package/src/integrations/standardeditingmode.js +1 -1
  184. package/src/integrations/style.d.ts +17 -18
  185. package/src/integrations/style.js +1 -1
  186. package/src/integrations/table.d.ts +42 -42
  187. package/src/integrations/table.js +1 -1
  188. package/src/integrations/tablecaption.d.ts +22 -22
  189. package/src/integrations/tablecaption.js +1 -1
  190. package/src/integrations/tableclipboard.d.ts +19 -19
  191. package/src/integrations/tableclipboard.js +1 -1
  192. package/src/integrations/tablecolumnresize.d.ts +26 -26
  193. package/src/integrations/tablecolumnresize.js +1 -1
  194. package/src/integrations/tableheadings.d.ts +22 -22
  195. package/src/integrations/tableheadings.js +1 -1
  196. package/src/integrations/tablemergesplit.d.ts +22 -22
  197. package/src/integrations/tablemergesplit.js +1 -1
  198. package/src/integrations/tableofcontents.d.ts +17 -17
  199. package/src/integrations/tableofcontents.js +1 -1
  200. package/src/integrations/tableproperties.d.ts +27 -27
  201. package/src/integrations/tableproperties.js +1 -1
  202. package/src/integrations/template.d.ts +17 -17
  203. package/src/integrations/template.js +1 -1
  204. package/src/integrations/title.d.ts +17 -17
  205. package/src/integrations/title.js +1 -1
  206. package/src/integrations/undo.d.ts +17 -17
  207. package/src/integrations/undo.js +1 -1
  208. package/src/integrations/utils.d.ts +21 -21
  209. package/src/integrations/utils.js +1 -1
  210. package/src/suggestion.d.ts +291 -276
  211. package/src/suggestion.js +1 -1
  212. package/src/suggestiondescriptionfactory.d.ts +183 -163
  213. package/src/suggestiondescriptionfactory.js +1 -1
  214. package/src/trackchanges.d.ts +180 -244
  215. package/src/trackchanges.js +1 -1
  216. package/src/trackchangesconfig.d.ts +78 -75
  217. package/src/trackchangesdata.d.ts +41 -41
  218. package/src/trackchangesdata.js +1 -1
  219. package/src/trackchangesediting.d.ts +524 -468
  220. package/src/trackchangesediting.js +1 -1
  221. package/src/trackchangesui.d.ts +38 -38
  222. package/src/trackchangesui.js +1 -1
  223. package/src/ui/suggestioncontroller.d.ts +37 -37
  224. package/src/ui/suggestioncontroller.js +1 -1
  225. package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
  226. package/src/ui/view/basesuggestionthreadview.js +1 -1
  227. package/src/ui/view/suggestionthreadview.d.ts +182 -182
  228. package/src/ui/view/suggestionthreadview.js +1 -1
  229. package/src/utils/common-translations.d.ts +9 -9
  230. package/src/utils/common-translations.js +1 -1
  231. package/src/utils/utils.d.ts +30 -30
  232. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf3c3=['has','selection','registerCustomCallback','get','author','source','data','enableCommand','handleSuggestionDescription','handleReplaceImageCommand','src','ImageEditing','_suggestionFactory','getSuggestionCallback','locale','afterInit','getContainedElement','getSuggestions','commandParams','commandName','markBlockFormat','accept','plugins','TrackChangesEditing','discard','Users','editor','replaceImageSource','format','*Format:*\x20replace\x20image\x20URL','formatBlock','change','getSelectedElement'];(function(_0x5447ff,_0xf3c35c){const _0x270773=function(_0x5e7a48){while(--_0x5e7a48){_0x5447ff['push'](_0x5447ff['shift']());}};_0x270773(++_0xf3c35c);}(_0xf3c3,0x1c6));const _0x2707=function(_0x5447ff,_0xf3c35c){_0x5447ff=_0x5447ff-0x0;let _0x270773=_0xf3c3[_0x5447ff];return _0x270773;};import{Plugin as _0x4bfaf2}from'ckeditor5/src/core';import{getTranslation as _0x4abe83}from'../utils/common-translations';export default class Z extends _0x4bfaf2{[_0x2707('0x17')](){if(!this[_0x2707('0x1')][_0x2707('0x1e')][_0x2707('0x8')](_0x2707('0x13')))return;const _0x2b4b29=this['editor']['plugins'][_0x2707('0xb')](_0x2707('0x1f'));_0x2b4b29[_0x2707('0xf')](_0x2707('0x2'),(_0x3d784c,_0x3f04cc)=>this[_0x2707('0x11')](_0x3d784c,_0x3f04cc)),_0x2b4b29[_0x2707('0x14')][_0x2707('0xa')](_0x2707('0x5'),'replaceImageSource',_0x2707('0x1d'),_0x2b4b29['_suggestionFactory'][_0x2707('0x15')](_0x2707('0x5'),null,'discard')),_0x2b4b29['_suggestionFactory'][_0x2707('0xa')](_0x2707('0x5'),_0x2707('0x2'),_0x2707('0x20'),_0x2b4b29['_suggestionFactory']['getSuggestionCallback'](_0x2707('0x5'),null,_0x2707('0x1d'))),_0x2b4b29['_descriptionFactory']['registerDescriptionCallback'](_0x4bca43=>this[_0x2707('0x10')](_0x4bca43));}['handleReplaceImageCommand'](_0x12ae28,_0x28850f){const _0x5184ac=this['editor'][_0x2707('0x1e')][_0x2707('0xb')](_0x2707('0x1f')),_0x218744=this[_0x2707('0x1')]['model']['document'][_0x2707('0x9')][_0x2707('0x7')]();this[_0x2707('0x1')]['model'][_0x2707('0x6')](()=>{let _0x3a7219=_0x218744['getAttribute'](_0x2707('0x12'));const _0x427c01=this[_0x2707('0x1')][_0x2707('0x1e')][_0x2707('0xb')](_0x2707('0x0'))['me'];for(const _0x27c9f6 of _0x5184ac[_0x2707('0x19')]({'skipNotAttached':!0x0})){const _0x57b50b=_0x27c9f6[_0x2707('0x18')]();if(_0x2707('0x2')===_0x27c9f6['subType']&&_0x57b50b===_0x218744){_0x27c9f6[_0x2707('0xc')]!==_0x427c01&&_0x27c9f6[_0x2707('0x20')](),_0x3a7219=_0x27c9f6[_0x2707('0xe')][_0x2707('0x1a')][0x0][_0x2707('0xd')];break;}}_0x12ae28(_0x28850f),_0x5184ac[_0x2707('0x1c')](_0x218744,{'commandName':_0x2707('0x2'),'commandParams':[{'source':_0x3a7219}]},[],_0x2707('0x2'));});}[_0x2707('0x10')](_0x1915b4){const {data:_0x24ccb6}=_0x1915b4;if(_0x24ccb6&&'replaceImageSource'===_0x24ccb6[_0x2707('0x1b')]){const _0x379186=_0x2707('0x4');return{'type':_0x2707('0x3'),'content':_0x4abe83(this['editor'][_0x2707('0x16')],_0x379186)};}}}
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')};});}}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/image
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for {@link module:image/image~Image image feature}.
11
+ */
12
+ export default class TrackChangesImageStyle extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x13ce=['has','start','isEqual','document','getContainedElement','getClosestSelectedImageElement','nodeAfter','imageStylePostApply','commandReversedParams','isBlockImage','isIntersecting','ImageStyleEditing','length','refresh','chain','newRange','getFirstRange','isInlineImage','normalizedStyles','value','getSuggestion','Users','plugins','head','shouldConvertImageType','filter','_findSuggestions','subType','type','markBlockFormat','join','locale','isOwn','markInlineFormat','_suggestionFactory','formatInline','commandName','side','imageStyle','findIndex','_descriptionFactory','ImageUtils','format','setImageNaturalSizeAttributes','next','accept','title','isInContent','get','discard','_registerLegacyDescription','isBefore','editor','registerDescriptionCallback','model','selection','name','discardSuggestion','end','imageTypeInline','convertInlineImageToBlock','imageStylePreApply','toLowerCase','hasSuggestion','formatBlock','suggestion','commands','_splitMarkerName','registerCustomCallback','imageCaption','author','insertion','createRangeOn','TrackChangesEditing'];(function(_0x53fbef,_0x13ce41){const _0xf0edd=function(_0x2602fe){while(--_0x2602fe){_0x53fbef['push'](_0x53fbef['shift']());}};_0xf0edd(++_0x13ce41);}(_0x13ce,0x1c5));const _0xf0ed=function(_0x53fbef,_0x13ce41){_0x53fbef=_0x53fbef-0x0;let _0xf0edd=_0x13ce[_0x53fbef];return _0xf0edd;};import{Plugin as _0x368dee}from'ckeditor5/src/core';import{uid as _0x381f75}from'ckeditor5/src/utils';import{getTranslation as _0x5c7458}from'../utils/common-translations';export default class nt extends _0x368dee{['afterInit'](){const _0x24956f=this[_0xf0ed('0x2b')];if(!_0x24956f['plugins'][_0xf0ed('0x41')]('ImageStyleEditing'))return;const _0x44d47e=_0x24956f['plugins'][_0xf0ed('0x27')](_0xf0ed('0x40')),_0x24c874=_0x24956f['plugins'][_0xf0ed('0x27')](_0xf0ed('0x20')),_0x298ac0={};_0x44d47e['enableCommand'](_0xf0ed('0x1d'),(_0x4ebe28,_0x4e15ec)=>{const _0x45f0f7=_0x24956f[_0xf0ed('0xd')][_0xf0ed('0x27')](_0xf0ed('0xc'))['me'],_0x5e3290=_0x24956f[_0xf0ed('0x39')]['get'](_0xf0ed('0x1d'));let _0x484ccb=_0x24c874[_0xf0ed('0x46')](_0x24956f[_0xf0ed('0x2d')][_0xf0ed('0x44')]['selection']),_0x437ff5=_0x24956f[_0xf0ed('0x2d')][_0xf0ed('0x3f')](_0x484ccb),_0x75250f=_0x5e3290['value'];if(_0x75250f==_0x4e15ec[_0xf0ed('0xa')])return;const _0x3d0c19={'commandName':_0xf0ed('0x1d'),'commandParams':[_0x4e15ec],'formatGroupId':_0x381f75()};_0x24956f[_0xf0ed('0x2d')]['change'](()=>{if(_0x44d47e['getSuggestions']()['filter'](_0x50d2cd=>_0x50d2cd['isInContent']&&_0x45f0f7==_0x50d2cd[_0xf0ed('0x3d')]&&('formatBlock'==_0x50d2cd[_0xf0ed('0x13')]||'formatInline'==_0x50d2cd[_0xf0ed('0x13')])&&(_0xf0ed('0x34')==_0x50d2cd[_0xf0ed('0x12')]||'imageStylePostApply'==_0x50d2cd[_0xf0ed('0x12')])&&_0x50d2cd[_0xf0ed('0x7')]()[_0xf0ed('0x43')](_0x437ff5))['forEach'](_0x3dbf0d=>_0x44d47e[_0xf0ed('0x30')](_0x3dbf0d[_0xf0ed('0xe')])),_0x484ccb=_0x24c874[_0xf0ed('0x46')](_0x24956f[_0xf0ed('0x2d')][_0xf0ed('0x44')]['selection']),_0x437ff5=_0x24956f[_0xf0ed('0x2d')][_0xf0ed('0x3f')](_0x484ccb),_0x5e3290[_0xf0ed('0x4')](),_0x24956f[_0xf0ed('0x39')][_0xf0ed('0x27')](_0xf0ed('0x32'))[_0xf0ed('0x4')](),_0x24956f[_0xf0ed('0x39')][_0xf0ed('0x27')]('imageTypeBlock')[_0xf0ed('0x4')](),_0x75250f=_0x5e3290[_0xf0ed('0xa')],_0x75250f!=_0x4e15ec[_0xf0ed('0xa')])return _0x24c874[_0xf0ed('0x8')](_0x484ccb)&&_0x5e3290[_0xf0ed('0xf')](_0x4e15ec[_0xf0ed('0xa')],_0x484ccb)?(_0x4ebe28({..._0x4e15ec,'setImageSizes':!0x1}),_0x484ccb=_0x24c874[_0xf0ed('0x46')](_0x24956f['model'][_0xf0ed('0x44')][_0xf0ed('0x2e')]),void _0x44d47e['markBlockFormat'](_0x484ccb,{..._0x3d0c19,'commandReversedParams':[{'value':_0x75250f||null,'setImageSizes':!0x1}]},[],_0xf0ed('0x34'))):void(_0x24c874['isBlockImage'](_0x484ccb)?_0x44d47e[_0xf0ed('0x14')](_0x484ccb,_0x3d0c19,[],_0xf0ed('0x48')):_0x44d47e[_0xf0ed('0x18')](_0x437ff5,_0x3d0c19,_0xf0ed('0x48')));});});for(const _0x2c0810 of _0x24956f['plugins'][_0xf0ed('0x27')](_0xf0ed('0x2'))[_0xf0ed('0x9')])_0x298ac0[_0x2c0810[_0xf0ed('0x2f')]]=_0x2c0810[_0xf0ed('0x25')][_0xf0ed('0x35')]();_0x44d47e[_0xf0ed('0x19')]['registerCustomCallback'](_0xf0ed('0x37'),_0xf0ed('0x34'),'join',()=>!0x1),_0x44d47e[_0xf0ed('0x19')][_0xf0ed('0x3b')](_0xf0ed('0x37'),_0xf0ed('0x48'),_0xf0ed('0x15'),()=>!0x1),_0x44d47e[_0xf0ed('0x19')]['registerCustomCallback'](_0xf0ed('0x1a'),_0xf0ed('0x48'),_0xf0ed('0x15'),()=>!0x1),_0x44d47e[_0xf0ed('0x19')]['registerCustomCallback'](_0xf0ed('0x37'),'imageStylePreApply',_0xf0ed('0x24'),([_0x2fdda9])=>{_0x24c874[_0xf0ed('0x22')](_0x2fdda9[_0xf0ed('0x45')]());}),_0x44d47e[_0xf0ed('0x19')][_0xf0ed('0x3b')]('formatBlock',_0xf0ed('0x34'),_0xf0ed('0x28'),(_0x3dd91b,_0x44a172)=>{_0x44d47e[_0xf0ed('0x19')]['getSuggestionCallback'](_0xf0ed('0x37'),'','accept')(_0x3dd91b,{'commandName':_0x44a172['commandName'],'commandParams':_0x44a172[_0xf0ed('0x49')]});}),_0x44d47e[_0xf0ed('0x19')][_0xf0ed('0x3b')](_0xf0ed('0x37'),_0xf0ed('0x34'),_0xf0ed('0x5'),function(_0x10d775,_0x15f691){if(_0x400dac(_0x10d775,_0x15f691))return[_0x10d775,_0x15f691];if(_0x400dac(_0x15f691,_0x10d775))return[_0x15f691,_0x10d775];return null;});const _0x2dd370=[{'type':'formatBlock','subType':_0xf0ed('0x34')},{'type':_0xf0ed('0x3e'),'subType':_0xf0ed('0x3c')},{'type':_0xf0ed('0x37'),'subType':_0xf0ed('0x33')},{'type':_0xf0ed('0x3e'),'subType':_0xf0ed('0x33')}];function _0x400dac(_0x3a9005,_0xb9c2b1){const _0x37044a=_0x2dd370['findIndex'](({type:_0x5c105b,subType:_0x5e7fcf})=>_0x3a9005[_0xf0ed('0x13')]==_0x5c105b&&_0x3a9005[_0xf0ed('0x12')]==_0x5e7fcf),_0x4433eb=_0x2dd370[_0xf0ed('0x1e')](({type:_0x4f616a,subType:_0xd6f7})=>_0xb9c2b1[_0xf0ed('0x13')]==_0x4f616a&&_0xb9c2b1['subType']==_0xd6f7);if(_0x37044a<0x0||_0x4433eb<0x0)return!0x1;const _0x3e8a58=_0x3a9005[_0xf0ed('0x7')](),_0xfde9a5=_0xb9c2b1[_0xf0ed('0x7')]();if((0x0==_0x37044a||0x1==_0x37044a)&&0x2==_0x4433eb&&_0x3e8a58[_0xf0ed('0x1')](_0xfde9a5))return!0x0;if(0x2==_0x37044a&&0x3==_0x4433eb){const _0x5bdb89=_0x44d47e[_0xf0ed('0x11')](_0x3e8a58,_0xf0ed('0x3e'))[_0xf0ed('0x10')](({suggestion:_0x200605,meta:_0x1bc5e5})=>_0x1bc5e5[_0xf0ed('0x17')]&&'convertInlineImageToBlock'==_0x200605[_0xf0ed('0x12')]);if(_0x5bdb89[_0xf0ed('0x3')]>0x1&&_0xfde9a5[_0xf0ed('0x31')][_0xf0ed('0x43')](_0x3e8a58[_0xf0ed('0x42')]))return!0x0;if(0x1==_0x5bdb89[_0xf0ed('0x3')]&&(_0x3e8a58[_0xf0ed('0x42')][_0xf0ed('0x43')](_0xfde9a5['end'])||_0x3e8a58['end'][_0xf0ed('0x43')](_0xfde9a5[_0xf0ed('0x42')])))return!0x0;}if(0x3==_0x37044a&&0x3==_0x4433eb&&_0x3e8a58[_0xf0ed('0x42')][_0xf0ed('0x2a')](_0xfde9a5['start'])){const _0x5cbe16=_0x3e8a58['end'][_0xf0ed('0x47')],_0x25dbd5=_0xfde9a5['start']['nodeBefore'];return _0x24c874[_0xf0ed('0x0')](_0x5cbe16)&&_0x5cbe16===_0x25dbd5;}return!0x1;}_0x24956f[_0xf0ed('0x2d')][_0xf0ed('0x44')]['registerPostFixer'](()=>{let _0x3f18b1=!0x1;const _0xd12ef2=Array['from'](_0x24956f[_0xf0ed('0x2d')]['document']['differ']['getChangedMarkers']());for(const {name:_0x5685e8,data:_0x4c7985}of _0xd12ef2){const {group:_0x58e80d,type:_0x3d0118,subType:_0x505dc9,id:_0x2d666d}=_0x44d47e[_0xf0ed('0x3a')](_0x5685e8);if(_0xf0ed('0x38')==_0x58e80d&&_0x44d47e[_0xf0ed('0x36')](_0x2d666d)){if(_0xf0ed('0x37')==_0x3d0118&&(_0xf0ed('0x34')==_0x505dc9||_0xf0ed('0x48')==_0x505dc9)){const _0x31a928=_0x44d47e['getSuggestion'](_0x2d666d);if(_0x4c7985[_0xf0ed('0x6')]){const _0x409d3c=_0x31a928[_0xf0ed('0x7')]()[_0xf0ed('0x45')]();if(_0x24c874[_0xf0ed('0x0')](_0x409d3c))continue;_0x44d47e['discardSuggestion'](_0x31a928),_0x3f18b1=!0x0;}}if(_0xf0ed('0x3e')==_0x3d0118&&_0xf0ed('0x3c')==_0x505dc9&&!_0x4c7985[_0xf0ed('0x6')]){const _0x3776bf=_0x44d47e[_0xf0ed('0xb')](_0x2d666d);_0x3776bf[_0xf0ed('0x23')]&&_0x3776bf[_0xf0ed('0x23')][_0xf0ed('0x26')]&&(_0x44d47e[_0xf0ed('0x30')](_0x3776bf[_0xf0ed('0x23')]),_0x3f18b1=!0x0);}}}return _0x3f18b1;}),this[_0xf0ed('0x29')](_0x298ac0);}[_0xf0ed('0x29')](_0x351f6d){const _0x3d8e8c=this[_0xf0ed('0x2b')],_0xb4b46a=_0x3d8e8c[_0xf0ed('0x16')];_0x3d8e8c['plugins']['get']('TrackChangesEditing')[_0xf0ed('0x1f')][_0xf0ed('0x2c')](_0x2dd79f=>{if('formatBlock'!=_0x2dd79f[_0xf0ed('0x13')]&&_0xf0ed('0x1a')!=_0x2dd79f[_0xf0ed('0x13')])return;const {data:_0x360490}=_0x2dd79f;if(!_0x360490||_0xf0ed('0x1d')!=_0x360490[_0xf0ed('0x1b')])return;const _0x414179=_0x360490['commandParams'][0x0][_0xf0ed('0xa')];return _0x209b7e(_0xf0ed('0x1c')===_0x414179?_0x5c7458(_0xb4b46a,'FORMAT_SIDE_IMAGE'):_0x351f6d[_0x414179]||_0x414179);function _0x209b7e(_0x247174){return{'type':_0xf0ed('0x21'),'content':_0x5c7458(_0xb4b46a,'*Format:*\x20%0',_0x247174)};}});}}
@@ -1,18 +1,18 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/importword
7
- */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for the import from Word feature.
11
- */
12
- export default class TrackChangesImportWord extends Plugin {
13
- constructor(editor: Editor);
14
- /**
15
- * @inheritDoc
16
- */
17
- afterInit(): void;
18
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/importword
7
+ */
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for the import from Word feature.
11
+ */
12
+ export default class TrackChangesImportWord extends Plugin {
13
+ constructor(editor: Editor);
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ afterInit(): void;
18
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54db=['enableCommand','Users','TrackChangesEditing','listenTo','_trackChangesExecuted','trackChanges','_setSuggestionData','_trackChangesValueDuringImport','dataInsert','editor','plugins','forEach','lowest','high','importWord','execute','commands','bind','get','track_changes','collaboration_features','value','afterInit','_handleImportedData'];(function(_0x24fa38,_0x54db3e){const _0x5d15d5=function(_0x5de8af){while(--_0x5de8af){_0x24fa38['push'](_0x24fa38['shift']());}};_0x5d15d5(++_0x54db3e);}(_0x54db,0xff));const _0x5d15=function(_0x24fa38,_0x54db3e){_0x24fa38=_0x24fa38-0x0;let _0x5d15d5=_0x54db[_0x24fa38];return _0x5d15d5;};import{Plugin as _0x23c195}from'ckeditor5/src/core';export default class tt extends _0x23c195{constructor(_0x56c92b){super(_0x56c92b),this[_0x5d15('0x10')]=!0x1,this[_0x5d15('0xd')]=!0x1;}[_0x5d15('0x7')](){const _0x1715d3=this['editor'],_0xf241f6=_0x1715d3[_0x5d15('0x1')][_0x5d15('0x3')](_0x5d15('0x17')),_0x49e5ac=_0x1715d3[_0x5d15('0x1')][_0x5d15('0x3')](_0x5d15('0xe'));_0xf241f6&&(_0xf241f6['on'](_0x5d15('0x0'),(_0x203677,[,_0x560ef5])=>{this[_0x5d15('0x10')]=_0x49e5ac[_0x5d15('0x6')],_0x560ef5[_0x5d15('0x5')][_0x5d15('0x4')]=!this[_0x5d15('0x10')];},{'priority':_0x5d15('0x16')}),this[_0x5d15('0xc')](_0xf241f6,_0x5d15('0x11'),this[_0x5d15('0x8')][_0x5d15('0x2')](this)),this['listenTo'](_0xf241f6,_0x5d15('0x11'),()=>{this[_0x5d15('0xd')]&&(_0x49e5ac['execute'](),this[_0x5d15('0xd')]=!0x1);},{'priority':_0x5d15('0x15')}),_0x1715d3[_0x5d15('0x13')][_0x5d15('0x3')](_0x5d15('0xb'))[_0x5d15('0x9')](_0x5d15('0x17')));}[_0x5d15('0x8')](_0x12f349,_0x4fdb0b){const {suggestions:_0x1dc88c}=_0x4fdb0b,_0x572d21=this[_0x5d15('0x12')]['commands']['get'](_0x5d15('0xe')),_0x524ce3=_0x572d21['value'];this[_0x5d15('0x10')]!==_0x524ce3&&(_0x572d21[_0x5d15('0x0')](),this['_trackChangesExecuted']=!0x0),_0x1dc88c&&_0x1dc88c[_0x5d15('0x14')](({id:_0x216b01,type:_0x4c9289,author:_0x5e05d5,created_at:_0x5590aa})=>{const _0x1dc3d6={'id':_0x216b01,'type':_0x4c9289,'authorId':this[_0x5d15('0x12')]['plugins']['get'](_0x5d15('0xa'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5e05d5,'createdAt':_0x5590aa?new Date(_0x5590aa):new Date(),'source':_0x5d15('0x17')}}};this[_0x5d15('0x12')]['plugins'][_0x5d15('0x3')]('TrackChangesEditing')[_0x5d15('0xf')](_0x1dc3d6);});}}
23
+ const _0x4345=['commands','listenTo','dataInsert','editor','_trackChangesExecuted','get','_handleImportedData','high','track_changes','lowest','trackChanges','plugins','enableCommand','collaboration_features','bind','forEach','afterInit','value','_trackChangesValueDuringImport','TrackChangesEditing','importWord','execute','_setSuggestionData'];(function(_0x4724c6,_0x434510){const _0x3bd15f=function(_0x3ed2de){while(--_0x3ed2de){_0x4724c6['push'](_0x4724c6['shift']());}};_0x3bd15f(++_0x434510);}(_0x4345,0x76));const _0x3bd1=function(_0x4724c6,_0x434510){_0x4724c6=_0x4724c6-0x0;let _0x3bd15f=_0x4345[_0x4724c6];return _0x3bd15f;};import{Plugin as _0x25e2aa}from'ckeditor5/src/core';export default class st extends _0x25e2aa{constructor(_0x9c9ffe){super(_0x9c9ffe),this[_0x3bd1('0xf')]=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x3bd1('0xd')](){const _0x4b5a09=this[_0x3bd1('0x0')],_0x36489d=_0x4b5a09[_0x3bd1('0x14')][_0x3bd1('0x2')]('importWord'),_0x36a107=_0x4b5a09['commands']['get'](_0x3bd1('0x7'));_0x36489d&&(_0x36489d['on']('execute',(_0x38f9f7,[,_0x4f4ad0])=>{this[_0x3bd1('0xf')]=_0x36a107[_0x3bd1('0xe')],_0x4f4ad0[_0x3bd1('0xa')][_0x3bd1('0x5')]=!this[_0x3bd1('0xf')];},{'priority':_0x3bd1('0x4')}),this['listenTo'](_0x36489d,'dataInsert',this[_0x3bd1('0x3')][_0x3bd1('0xb')](this)),this[_0x3bd1('0x15')](_0x36489d,_0x3bd1('0x16'),()=>{this[_0x3bd1('0x1')]&&(_0x36a107[_0x3bd1('0x12')](),this[_0x3bd1('0x1')]=!0x1);},{'priority':_0x3bd1('0x6')}),_0x4b5a09[_0x3bd1('0x8')][_0x3bd1('0x2')](_0x3bd1('0x10'))[_0x3bd1('0x9')]('importWord'));}[_0x3bd1('0x3')](_0x18709b,_0x41a595){const {suggestions:_0x4ff374}=_0x41a595,_0x2c6b80=this[_0x3bd1('0x0')][_0x3bd1('0x14')][_0x3bd1('0x2')](_0x3bd1('0x7')),_0x3db578=_0x2c6b80[_0x3bd1('0xe')];this['_trackChangesValueDuringImport']!==_0x3db578&&(_0x2c6b80[_0x3bd1('0x12')](),this['_trackChangesExecuted']=!0x0),_0x4ff374&&_0x4ff374[_0x3bd1('0xc')](({id:_0x650443,type:_0x22e7e2,author:_0x178939,created_at:_0x41f0e6})=>{const _0x5cfc44={'id':_0x650443,'type':_0x22e7e2,'authorId':this[_0x3bd1('0x0')][_0x3bd1('0x8')][_0x3bd1('0x2')]('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x178939,'createdAt':_0x41f0e6?new Date(_0x41f0e6):new Date(),'source':_0x3bd1('0x11')}}};this[_0x3bd1('0x0')][_0x3bd1('0x8')][_0x3bd1('0x2')](_0x3bd1('0x10'))[_0x3bd1('0x13')](_0x5cfc44);});}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/indent
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
11
- */
12
- export default class TrackChangesIndent extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/indent
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
11
+ */
12
+ export default class TrackChangesIndent extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1932=['outdentBlock','document','locale','getSelectedBlocks','commandName','registerDescriptionCallback','editor','from','filter','plugins','afterInit','enableCommand','TrackChangesEditing','model','getItems','selection','indent','_descriptionFactory','format','IndentEditing','indentBlock','*Indent:*\x20%0','outdent','checkAttribute','has','*Outdent:*\x20%0','schema'];(function(_0x1b9c4f,_0x193242){const _0x4dab6f=function(_0x2d4950){while(--_0x2d4950){_0x1b9c4f['push'](_0x1b9c4f['shift']());}};_0x4dab6f(++_0x193242);}(_0x1932,0xd8));const _0x4dab=function(_0x1b9c4f,_0x193242){_0x1b9c4f=_0x1b9c4f-0x0;let _0x4dab6f=_0x1932[_0x1b9c4f];return _0x4dab6f;};import{Plugin as _0x2da79a}from'ckeditor5/src/core';import{getTranslation as _0x2f1e88}from'../utils/common-translations';export default class it extends _0x2da79a{[_0x4dab('0xa')](){const _0x1eb6dc=this[_0x4dab('0x6')],_0x12ee84=_0x1eb6dc[_0x4dab('0x9')]['get'](_0x4dab('0xc'));_0x1eb6dc[_0x4dab('0x9')][_0x4dab('0x18')](_0x4dab('0x13'))&&(_0x12ee84[_0x4dab('0xb')](_0x4dab('0x10')),_0x12ee84[_0x4dab('0xb')](_0x4dab('0x16')));const _0x16c392=_0x1eb6dc[_0x4dab('0x2')];if(_0x1eb6dc[_0x4dab('0x9')]['has']('IndentBlock')){for(const _0xcee4ec of[_0x4dab('0x14'),'outdentBlock'])_0x12ee84['enableCommand'](_0xcee4ec,()=>{const _0x2ab763=Array[_0x4dab('0x7')](this['editor'][_0x4dab('0xd')][_0x4dab('0x1')][_0x4dab('0xf')][_0x4dab('0x3')]())[_0x4dab('0x8')](_0x1a8d95=>this[_0x4dab('0x6')][_0x4dab('0xd')][_0x4dab('0x1a')][_0x4dab('0x17')](_0x1a8d95,'blockIndent'));_0x1eb6dc[_0x4dab('0xd')]['change'](()=>{for(const _0x28f15b of _0x2ab763)_0x12ee84['markBlockFormat'](_0x28f15b,{'commandName':_0xcee4ec,'commandParams':[{'value':''}],'formatGroupId':_0x4dab('0x14')});});});_0x12ee84['_descriptionFactory'][_0x4dab('0x5')](_0x277eec=>{const {data:_0x533f22}=_0x277eec;if(!_0x533f22)return;if(_0x4dab('0x14')!=_0x533f22[_0x4dab('0x4')]&&_0x4dab('0x0')!=_0x533f22[_0x4dab('0x4')])return;const _0x36ce4b=_0x277eec[_0x4dab('0xe')]()[0x0],_0x324cd9=_0x12ee84[_0x4dab('0x11')]['getItemLabel'](_0x36ce4b);return'indentBlock'==_0x533f22[_0x4dab('0x4')]?{'type':'format','content':_0x2f1e88(_0x16c392,_0x4dab('0x15'),_0x324cd9)}:_0x4dab('0x0')==_0x533f22[_0x4dab('0x4')]?{'type':_0x4dab('0x12'),'content':_0x2f1e88(_0x16c392,_0x4dab('0x19'),_0x324cd9)}:void 0x0;});}}}
23
+ const _0x2dcf=['_registerLegacyDescription','formatBlock','outdentBlock','enableCommand','commandName','registerAttributeLabel','get','locale','TrackChangesEditing','registerDescriptionCallback','indentBlock','has','blockIndent','IndentBlock','_descriptionFactory','afterInit','getItems','_registerBlockAttribute','format','indent','plugins','type','_enableDefaultAttributesIntegration','IndentEditing','editor','outdent','getItemLabel'];(function(_0x3dbeb4,_0x2dcf37){const _0x1a4dfe=function(_0x188874){while(--_0x188874){_0x3dbeb4['push'](_0x3dbeb4['shift']());}};_0x1a4dfe(++_0x2dcf37);}(_0x2dcf,0x167));const _0x1a4d=function(_0x3dbeb4,_0x2dcf37){_0x3dbeb4=_0x3dbeb4-0x0;let _0x1a4dfe=_0x2dcf[_0x3dbeb4];return _0x1a4dfe;};import{Plugin as _0xea208c}from'ckeditor5/src/core';import{getTranslation as _0xa420e4}from'../utils/common-translations';export default class ot extends _0xea208c{[_0x1a4d('0x7')](){const _0x1bad01=this[_0x1a4d('0x10')],_0x12e59c=_0x1bad01[_0x1a4d('0xc')][_0x1a4d('0x19')](_0x1a4d('0x0'));if(_0x1bad01[_0x1a4d('0xc')][_0x1a4d('0x3')](_0x1a4d('0xf'))&&(_0x12e59c[_0x1a4d('0x16')](_0x1a4d('0xb')),_0x12e59c['enableCommand'](_0x1a4d('0x11'))),_0x1bad01[_0x1a4d('0xc')][_0x1a4d('0x3')](_0x1a4d('0x5')))for(const _0x20d944 of[_0x1a4d('0x2'),_0x1a4d('0x15')])_0x12e59c[_0x1a4d('0xe')](_0x20d944);const _0x4bb857=_0x1bad01[_0x1a4d('0x1a')];_0x12e59c[_0x1a4d('0x9')](_0x1a4d('0x4')),_0x12e59c[_0x1a4d('0x6')][_0x1a4d('0x18')](_0x1a4d('0x4'),_0xa420e4(_0x4bb857,'FORMAT_INDENT')),this[_0x1a4d('0x13')]();}['_registerLegacyDescription'](){const _0x3dc260=this[_0x1a4d('0x10')],_0x2adbb1=_0x3dc260[_0x1a4d('0x1a')],_0x4c067a=_0x3dc260[_0x1a4d('0xc')][_0x1a4d('0x19')]('TrackChangesEditing');_0x4c067a[_0x1a4d('0x6')][_0x1a4d('0x1')](_0xfca25f=>{if(_0x1a4d('0x14')!=_0xfca25f[_0x1a4d('0xd')])return;const {data:_0xd1dd93}=_0xfca25f;if(!_0xd1dd93)return;if(_0x1a4d('0x2')!=_0xd1dd93[_0x1a4d('0x17')]&&_0x1a4d('0x15')!=_0xd1dd93['commandName'])return;const _0x5eed9b=_0xfca25f[_0x1a4d('0x8')]()[0x0],_0x128eb4=_0x4c067a['_descriptionFactory'][_0x1a4d('0x12')](_0x5eed9b);return _0x1a4d('0x2')==_0xd1dd93[_0x1a4d('0x17')]?{'type':_0x1a4d('0xa'),'content':_0xa420e4(_0x2adbb1,'*Indent:*\x20%0',_0x128eb4)}:_0x1a4d('0x15')==_0xd1dd93[_0x1a4d('0x17')]?{'type':_0x1a4d('0xa'),'content':_0xa420e4(_0x2adbb1,'*Outdent:*\x20%0',_0x128eb4)}:void 0x0;});}}
@@ -1,16 +1,16 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/inputcommand/inputcommand
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { Input } from 'ckeditor5/src/typing';
10
- /**
11
- * Provides track changes plugin integration for {@link module:typing/inputcommand~InputCommand input command}.
12
- */
13
- export default class TrackChangesInputCommand extends Plugin {
14
- static get requires(): readonly [typeof Input];
15
- init(): void;
16
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/inputcommand/inputcommand
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { Input } from 'ckeditor5/src/typing';
10
+ /**
11
+ * Provides track changes plugin integration for {@link module:typing/inputcommand~InputCommand input command}.
12
+ */
13
+ export default class TrackChangesInputCommand extends Plugin {
14
+ static get requires(): readonly [typeof Input];
15
+ init(): void;
16
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xa69b=['enableCommand','TrackChangesEditing','requires','input','init'];(function(_0x1adced,_0xa69b5c){var _0x46dff1=function(_0x229e90){while(--_0x229e90){_0x1adced['push'](_0x1adced['shift']());}};_0x46dff1(++_0xa69b5c);}(_0xa69b,0xd4));var _0x46df=function(_0x1adced,_0xa69b5c){_0x1adced=_0x1adced-0x0;var _0x46dff1=_0xa69b[_0x1adced];return _0x46dff1;};import{Plugin as _0x27c291}from'ckeditor5/src/core';import{Input as _0x1addf4}from'ckeditor5/src/typing';export default class et extends _0x27c291{static get[_0x46df('0x0')](){return[_0x1addf4];}[_0x46df('0x2')](){this['editor']['plugins']['get'](_0x46df('0x4'))[_0x46df('0x3')](_0x46df('0x1'));}}
23
+ var _0x14ab=['init','plugins','get','editor','enableCommand','TrackChangesEditing','requires'];(function(_0x111629,_0x14abd7){var _0x4c6400=function(_0x2f5e34){while(--_0x2f5e34){_0x111629['push'](_0x111629['shift']());}};_0x4c6400(++_0x14abd7);}(_0x14ab,0xab));var _0x4c64=function(_0x111629,_0x14abd7){_0x111629=_0x111629-0x0;var _0x4c6400=_0x14ab[_0x111629];return _0x4c6400;};import{Plugin as _0x33d522}from'ckeditor5/src/core';import{Input as _0x26591c}from'ckeditor5/src/typing';export default class rt extends _0x33d522{static get[_0x4c64('0x3')](){return[_0x26591c];}[_0x4c64('0x4')](){this[_0x4c64('0x0')][_0x4c64('0x5')][_0x4c64('0x6')](_0x4c64('0x2'))[_0x4c64('0x1')]('input');}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/link
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for link feature.
11
- */
12
- export default class TrackChangesLink extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/link
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for link feature.
11
+ */
12
+ export default class TrackChangesLink extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a1e=['isCollapsed','registerDescriptionCallback','selection','has','format','enableCommand','_descriptionFactory','document','change','link','*Remove\x20link*','getFirstRange','hasAttribute','unlink','linkHref','get','markInlineFormat','getFirstPosition','commandParams','model','TrackChangesEditing','LinkEditing','plugins','editor','commandName'];(function(_0x5e8429,_0x1a1e11){const _0x6a53ba=function(_0x47fdd8){while(--_0x47fdd8){_0x5e8429['push'](_0x5e8429['shift']());}};_0x6a53ba(++_0x1a1e11);}(_0x1a1e,0x1f1));const _0x6a53=function(_0x5e8429,_0x1a1e11){_0x5e8429=_0x5e8429-0x0;let _0x6a53ba=_0x1a1e[_0x5e8429];return _0x6a53ba;};import{Plugin as _0x5e5fe5}from'ckeditor5/src/core';import{findAttributeRange as _0x48920b}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x31378d}from'./utils';import{getTranslation as _0x4bcaff}from'../utils/common-translations';export default class nt extends _0x5e5fe5{['afterInit'](){const _0x47d753=this[_0x6a53('0x1')];if(!_0x47d753['plugins'][_0x6a53('0x6')](_0x6a53('0x18')))return;const _0x2f25b7=_0x47d753[_0x6a53('0x0')][_0x6a53('0x12')](_0x6a53('0x17'));_0x2f25b7[_0x6a53('0x8')](_0x6a53('0xc'),(_0x1cfee6,_0x214116)=>{const _0x1f1fbf=_0x47d753[_0x6a53('0x16')][_0x6a53('0xa')][_0x6a53('0x5')];let _0x156b27=[];if(_0x1f1fbf[_0x6a53('0x3')]){if(!_0x1f1fbf[_0x6a53('0xf')](_0x6a53('0x11')))return void _0x1cfee6(_0x214116);{const _0x425d65=_0x48920b(_0x1f1fbf[_0x6a53('0x14')](),_0x6a53('0x11'),_0x1f1fbf['getAttribute'](_0x6a53('0x11')),_0x47d753[_0x6a53('0x16')]);_0x156b27=[_0x425d65];}}else _0x156b27=Array['from'](_0x1f1fbf['getRanges']());_0x47d753[_0x6a53('0x16')][_0x6a53('0xb')](()=>{for(const _0x19782a of _0x156b27)_0x2f25b7[_0x6a53('0x13')](_0x19782a,{'commandName':'link','commandParams':[_0x214116]});});}),_0x2f25b7[_0x6a53('0x8')](_0x6a53('0x10'),()=>{const _0x241b46=this['editor'][_0x6a53('0x16')],_0x501559=_0x241b46[_0x6a53('0xa')]['selection'];_0x241b46['change'](()=>{let _0x428de8=[];if(_0x501559['isCollapsed'])_0x428de8=[_0x48920b(_0x501559[_0x6a53('0x14')](),_0x6a53('0x11'),_0x501559['getAttribute']('linkHref'),_0x47d753[_0x6a53('0x16')])];else _0x428de8=_0x31378d(_0x6a53('0x11'),_0x501559[_0x6a53('0xe')](),_0x47d753[_0x6a53('0x16')]);for(const _0x15664e of _0x428de8)_0x2f25b7['markInlineFormat'](_0x15664e,{'commandName':_0x6a53('0x10'),'commandParams':[]});});}),_0x2f25b7[_0x6a53('0x9')][_0x6a53('0x4')](_0x24bbe0=>{const {data:_0x4acef2}=_0x24bbe0,_0x4bbb1e=_0x47d753['locale'];if(_0x4acef2){if(_0x6a53('0xc')==_0x4acef2[_0x6a53('0x2')]){const _0x41850c=_0x4acef2[_0x6a53('0x15')][0x0];return{'type':'format','content':_0x4bcaff(_0x4bbb1e,'*Set\x20link:*\x20%0','\x22'+_0x41850c+'\x22')};}return _0x6a53('0x10')==_0x4acef2[_0x6a53('0x2')]?{'type':_0x6a53('0x7'),'content':_0x4bcaff(_0x4bbb1e,_0x6a53('0xd'))}:void 0x0;}});}}
23
+ const _0x30b1=['key','label','format','LinkEditing','type','has','commandParams','plugins','locale','registerDescriptionCallback','*Remove\x20link*','_descriptionFactory','_enableDefaultAttributesIntegration','get','commandName','unlink','newValue','*Set\x20link:*\x20%0','attribute','editor','manualDecorators','linkHref','link','toLowerCase','commands','TrackChangesEditing','map','_registerLegacyDescription'];(function(_0x51d795,_0x30b1e8){const _0x28c3d6=function(_0x3ecb68){while(--_0x3ecb68){_0x51d795['push'](_0x51d795['shift']());}};_0x28c3d6(++_0x30b1e8);}(_0x30b1,0x1bc));const _0x28c3=function(_0x51d795,_0x30b1e8){_0x51d795=_0x51d795-0x0;let _0x28c3d6=_0x30b1[_0x51d795];return _0x28c3d6;};import{Plugin as _0x271ecc}from'ckeditor5/src/core';import{getTranslation as _0x43f76a}from'../utils/common-translations';export default class at extends _0x271ecc{['afterInit'](){const _0x14eb09=this['editor'];if(!_0x14eb09[_0x28c3('0xb')][_0x28c3('0x9')](_0x28c3('0x7')))return;const _0x2d460a=_0x14eb09[_0x28c3('0xb')][_0x28c3('0x11')](_0x28c3('0x1')),_0x341d1e=_0x14eb09[_0x28c3('0x0')][_0x28c3('0x11')](_0x28c3('0x1a'));_0x2d460a[_0x28c3('0x10')](_0x28c3('0x1a'),['linkHref',..._0x341d1e[_0x28c3('0x18')][_0x28c3('0x2')](_0x5c953c=>_0x5c953c['id'])]),_0x2d460a['_enableDefaultAttributesIntegration'](_0x28c3('0x13'));for(const _0x5271ac of _0x341d1e[_0x28c3('0x18')])_0x2d460a['_descriptionFactory']['registerAttributeLabel'](_0x5271ac['id'],'link\x20('+_0x5271ac[_0x28c3('0x5')][_0x28c3('0x1b')]()+')');_0x2d460a[_0x28c3('0xf')][_0x28c3('0xd')](_0x373192=>{if(_0x28c3('0x16')!=_0x373192[_0x28c3('0x8')])return;const {data:_0x4c1ef8}=_0x373192;if(!_0x4c1ef8||_0x28c3('0x19')!=_0x4c1ef8[_0x28c3('0x4')])return;const _0x15c5c9=_0x4c1ef8[_0x28c3('0x14')],_0x1f4827=_0x14eb09['locale'];return{'type':'format','content':null==_0x15c5c9?_0x43f76a(_0x1f4827,'*Remove\x20link*'):_0x43f76a(_0x1f4827,_0x28c3('0x15'),'\x22'+_0x15c5c9+'\x22')};}),this[_0x28c3('0x3')]();}[_0x28c3('0x3')](){const _0x22a452=this[_0x28c3('0x17')],_0x318032=_0x22a452[_0x28c3('0xc')];_0x22a452[_0x28c3('0xb')][_0x28c3('0x11')](_0x28c3('0x1'))[_0x28c3('0xf')][_0x28c3('0xd')](_0x23e8d4=>{if('formatInline'!=_0x23e8d4[_0x28c3('0x8')])return;const {data:_0x4c0a6b}=_0x23e8d4;if(_0x4c0a6b){if(_0x28c3('0x1a')==_0x4c0a6b[_0x28c3('0x12')]){const _0x2b66b6=_0x4c0a6b[_0x28c3('0xa')][0x0];return{'type':'format','content':_0x43f76a(_0x318032,_0x28c3('0x15'),'\x22'+_0x2b66b6+'\x22')};}return _0x28c3('0x13')==_0x4c0a6b[_0x28c3('0x12')]?{'type':_0x28c3('0x6'),'content':_0x43f76a(_0x318032,_0x28c3('0xe'))}:void 0x0;}});}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/list
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for list feature.
11
- */
12
- export default class TrackChangesList extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/list
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for list feature.
11
+ */
12
+ export default class TrackChangesList extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x510b=['element','document','selection','format','ELEMENT_NUMBERED_LIST','has','commandName','todo','*Check\x20item*','registerDescriptionCallback','parent','nextSibling','*Uncheck\x20item*','slice','blockName','plugins','createRange','checkTodoList','registerElementLabel','commands','createPositionAt','get','todoList','length','listType','numbered','value','isObject','editor','execute','getSelectedBlocks','getAttribute','afterInit','List','schema','bulletedList','push','end','replace','_selectedElements','locale','paragraph','listItem','todoListChecked','*Change\x20to:*\x20%0','ELEMENT_LIST_ITEM','commandParams','_descriptionFactory','markBlockFormat','model','add','listIndent','ListEditing','before','enableCommand','previousSibling','from','outdentList','TodoListEditing','filter','change','name','indentList'];(function(_0x402542,_0x510b57){const _0x387953=function(_0x3f30c7){while(--_0x3f30c7){_0x402542['push'](_0x402542['shift']());}};_0x387953(++_0x510b57);}(_0x510b,0x171));const _0x3879=function(_0x402542,_0x510b57){_0x402542=_0x402542-0x0;let _0x387953=_0x510b[_0x402542];return _0x387953;};import{Plugin as _0x20c961}from'ckeditor5/src/core';import{getTranslation as _0x22cc15}from'../utils/common-translations';export default class st extends _0x20c961{[_0x3879('0x29')](){const _0x15afbe=this[_0x3879('0x25')],_0xfbecd4=_0x15afbe[_0x3879('0x31')];if(!_0x15afbe[_0x3879('0x18')][_0x3879('0xe')](_0x3879('0x3d')))return;const _0x55ebf9=_0x15afbe[_0x3879('0x18')][_0x3879('0x1e')]('TrackChangesEditing'),_0x18dd9c=_0x15afbe[_0x3879('0x18')]['has'](_0x3879('0x4'));function _0x3401db(_0x535d47){return()=>{const _0x18cd9f=_0x15afbe[_0x3879('0x3a')][_0x3879('0xa')][_0x3879('0xb')],_0x31f756=_0x15afbe[_0x3879('0x1c')][_0x3879('0x1e')](_0x535d47);if(_0x31f756[_0x3879('0x23')])return void _0x15afbe[_0x3879('0x26')](_0x3879('0x32'),{});const _0x4ff80d=_0x535d47[_0x3879('0x16')](0x0,-0x4),_0x2a2edf=function(_0x271ee6,_0x231b1e,_0x34eed3){let _0x598494=Array[_0x3879('0x2')](_0x271ee6)[_0x3879('0x5')](_0x3550b7=>function(_0x10b013,_0x108833){return _0x108833['checkChild'](_0x10b013[_0x3879('0x13')],_0x3879('0x33'))&&!_0x108833[_0x3879('0x24')](_0x10b013);}(_0x3550b7,_0x34eed3));_0x598494=_0x598494[_0x3879('0x5')](_0x29f602=>!_0x29f602['is']('element',_0x3879('0x33'))||_0x29f602[_0x3879('0x28')](_0x3879('0x21'))!=_0x231b1e);const _0x7f6074=new Set();for(const _0x3fdd57 of _0x598494)_0x3fdd57['is'](_0x3879('0x9'),_0x3879('0x33'))?_0x7f6074[_0x3879('0x3b')](ne(_0x3fdd57)):_0x7f6074[_0x3879('0x3b')](_0x3fdd57);return Array['from'](_0x7f6074);}(_0x18cd9f[_0x3879('0x27')](),_0x4ff80d,_0x15afbe[_0x3879('0x3a')][_0x3879('0x2b')]);_0x15afbe[_0x3879('0x3a')][_0x3879('0x6')](()=>{for(const _0x4cd9f8 of _0x2a2edf)_0x55ebf9['markBlockFormat'](_0x4cd9f8,{'commandName':_0x535d47,'commandParams':[{'forceValue':!_0x31f756[_0x3879('0x23')]}],'formatGroupId':_0x3879('0x17')},oe(_0x4cd9f8));});};}function _0x240ea3(_0x4ae6a2){return()=>{const _0x287367=function(_0x3693e7){let _0x111b2a=Array[_0x3879('0x2')](_0x3693e7);const _0x4a73c9=_0x111b2a['findIndex'](_0x525704=>_0x3879('0x33')!=_0x525704[_0x3879('0x7')]);return _0x4a73c9>-0x1&&(_0x111b2a=_0x111b2a['slice'](0x0,_0x4a73c9)),_0x111b2a;}(_0x15afbe['model'][_0x3879('0xa')]['selection'][_0x3879('0x27')]()),_0x27d400=_0x15afbe[_0x3879('0x3a')][_0x3879('0x19')](_0x15afbe[_0x3879('0x3a')][_0x3879('0x1d')](_0x287367[0x0],_0x3879('0x3e')),_0x15afbe[_0x3879('0x3a')][_0x3879('0x1d')](_0x287367[_0x287367[_0x3879('0x20')]-0x1],_0x3879('0x2e')));_0x15afbe[_0x3879('0x3a')][_0x3879('0x6')](()=>{_0x55ebf9[_0x3879('0x39')](_0x27d400,{'commandName':_0x4ae6a2,'commandParams':[],'formatGroupId':_0x3879('0x3c')},function(_0x4b4ffb){const _0xef6996=new Set();for(const _0x16b3bf of _0x4b4ffb){let _0x2c971e=_0x16b3bf['nextSibling'];for(;_0x2c971e&&_0x2c971e['getAttribute'](_0x3879('0x3c'))>_0x16b3bf['getAttribute']('listIndent');)_0xef6996[_0x3879('0x3b')](_0x2c971e),_0x2c971e=_0x2c971e['nextSibling'];}return Array[_0x3879('0x2')](_0xef6996);}(_0x287367));});};}_0x55ebf9[_0x3879('0x0')]('numberedList',_0x3401db('numberedList')),_0x55ebf9['enableCommand'](_0x3879('0x2c'),_0x3401db(_0x3879('0x2c'))),_0x18dd9c&&_0x55ebf9[_0x3879('0x0')](_0x3879('0x1f'),_0x3401db(_0x3879('0x1f'))),_0x55ebf9['enableCommand']('indentList',_0x240ea3(_0x3879('0x8'))),_0x55ebf9[_0x3879('0x0')](_0x3879('0x3'),_0x240ea3('outdentList')),_0x18dd9c&&_0x55ebf9[_0x3879('0x0')](_0x3879('0x1a'),()=>{const _0x26064d=_0x15afbe[_0x3879('0x1c')]['get'](_0x3879('0x1a')),_0xbe3c6d=Array['from'](_0x26064d[_0x3879('0x30')]);_0xbe3c6d[_0x3879('0x5')](_0xfd204a=>_0xfd204a[_0x3879('0x28')](_0x3879('0x34'))!=_0x26064d[_0x3879('0x23')]),_0x15afbe[_0x3879('0x3a')]['change'](()=>{for(const _0x19b6f6 of _0xbe3c6d)_0x55ebf9[_0x3879('0x39')](_0x19b6f6,{'commandName':_0x3879('0x1a'),'commandParams':[{'forceValue':!_0x26064d[_0x3879('0x23')]}]});});}),_0x55ebf9[_0x3879('0x38')][_0x3879('0x1b')](_0x3879('0x33'),_0x3b2199=>_0x22cc15(_0xfbecd4,_0x3879('0x36'),_0x3b2199)),_0x55ebf9[_0x3879('0x38')][_0x3879('0x12')](_0x3d8fcb=>{const {data:_0x3bd952}=_0x3d8fcb;if(_0x3bd952){if('numberedList'==_0x3bd952[_0x3879('0xf')]||'bulletedList'==_0x3bd952[_0x3879('0xf')]||_0x3879('0x1f')==_0x3bd952['commandName'])switch(_0x3bd952[_0x3879('0xf')][_0x3879('0x2f')](_0x3879('0x2a'),'')){case'bulleted':return _0x145960(_0x22cc15(_0xfbecd4,'ELEMENT_BULLETED_LIST'));case _0x3879('0x22'):return _0x145960(_0x22cc15(_0xfbecd4,_0x3879('0xd')));case _0x3879('0x10'):return _0x145960(_0x22cc15(_0xfbecd4,'ELEMENT_TODO_LIST'));}if(_0x3879('0x8')==_0x3bd952[_0x3879('0xf')])return{'type':_0x3879('0xc'),'content':_0x22cc15(_0xfbecd4,'*Indent:*\x20%0',_0x22cc15(_0xfbecd4,_0x3879('0x36')))};if(_0x3879('0x3')==_0x3bd952[_0x3879('0xf')])return{'type':'format','content':_0x22cc15(_0xfbecd4,'*Outdent:*\x20%0',_0x22cc15(_0xfbecd4,'ELEMENT_LIST_ITEM'))};if(_0x3879('0x1a')==_0x3bd952[_0x3879('0xf')])return _0x3bd952[_0x3879('0x37')][0x0]['forceValue']?{'type':_0x3879('0xc'),'content':_0x22cc15(_0xfbecd4,_0x3879('0x11'))}:{'type':_0x3879('0xc'),'content':_0x22cc15(_0xfbecd4,_0x3879('0x15'))};}function _0x145960(_0x47efed){return{'type':_0x3879('0xc'),'content':_0x22cc15(_0xfbecd4,_0x3879('0x35'),_0x47efed)};}});}}function ne(_0x37c1ff){const _0x1016fb=_0x37c1ff[_0x3879('0x28')]('listIndent');if(0x0==_0x1016fb)return _0x37c1ff;let _0x20f8b6=_0x37c1ff;for(;_0x37c1ff[_0x3879('0x1')]&&_0x37c1ff[_0x3879('0x1')]['is'](_0x3879('0x9'),_0x3879('0x33'));){const _0x3b9e32=_0x37c1ff[_0x3879('0x1')][_0x3879('0x28')](_0x3879('0x3c'));if(_0x3b9e32==_0x1016fb)_0x20f8b6=_0x37c1ff[_0x3879('0x1')];else{if(_0x3b9e32<_0x1016fb)break;}_0x37c1ff=_0x37c1ff[_0x3879('0x1')];}return _0x20f8b6;}function oe(_0x45ad78){const _0x2f24a7=[];if(_0x45ad78['is']('element',_0x3879('0x33'))&&_0x45ad78[_0x3879('0x28')]('listIndent')>0x0){let _0x3a089b=_0x45ad78['nextSibling'];for(;_0x3a089b&&'listItem'==_0x3a089b[_0x3879('0x7')]&&_0x3a089b[_0x3879('0x28')](_0x3879('0x3c'))==_0x45ad78['getAttribute'](_0x3879('0x3c'));)_0x2f24a7[_0x3879('0x2d')](_0x3a089b),_0x3a089b=_0x3a089b[_0x3879('0x14')];}return _0x2f24a7;}
23
+ const _0x5745=['ListEditing','parent','enableCommand','document','end','has','bulleted','*Uncheck\x20item*','getAttribute','format','checkChild','outdentList','element','before','model','_descriptionFactory','commandName','get','registerDescriptionCallback','registerElementLabel','execute','formatInline','slice','checkTodoList','createPositionAt','value','replace','numbered','locale','paragraph','nextSibling','ELEMENT_TODO_LIST','blockName','getSelectedBlocks','*Change\x20to:*\x20%0','numberedList','change','name','plugins','_selectedElements','ELEMENT_LIST_ITEM','bulletedList','List','isObject','filter','formatBlock','schema','previousSibling','listItem','TodoListEditing','length','selection','listType','listIndent','indentList','todoList','commands','todoListChecked','TrackChangesEditing','type','add','markBlockFormat','from'];(function(_0x570564,_0x5745a7){const _0x196d87=function(_0x4cb950){while(--_0x4cb950){_0x570564['push'](_0x570564['shift']());}};_0x196d87(++_0x5745a7);}(_0x5745,0x1d1));const _0x196d=function(_0x570564,_0x5745a7){_0x570564=_0x570564-0x0;let _0x196d87=_0x5745[_0x570564];return _0x196d87;};import{Plugin as _0x49227e}from'ckeditor5/src/core';import{getTranslation as _0x2c6bd2}from'../utils/common-translations';export default class ct extends _0x49227e{['afterInit'](){const _0x1f8ab8=this['editor'],_0x184384=_0x1f8ab8[_0x196d('0x4')];if(!_0x1f8ab8[_0x196d('0xe')]['has'](_0x196d('0x27')))return;const _0x15be9e=_0x1f8ab8[_0x196d('0xe')][_0x196d('0x38')](_0x196d('0x22')),_0x432678=_0x1f8ab8[_0x196d('0xe')][_0x196d('0x2c')](_0x196d('0x19'));function _0x2ded01(_0x4b3347){return()=>{const _0x210642=_0x1f8ab8[_0x196d('0x35')][_0x196d('0x2a')]['selection'],_0x216ab0=_0x1f8ab8['commands'][_0x196d('0x38')](_0x4b3347);if(_0x216ab0['value'])return void _0x1f8ab8[_0x196d('0x3b')](_0x196d('0x5'),{});const _0x1eefc3=_0x4b3347[_0x196d('0x3d')](0x0,-0x4),_0x752e8a=function(_0x523f79,_0x169a03,_0x171733){let _0x11789f=Array[_0x196d('0x26')](_0x523f79)['filter'](_0x1575a9=>function(_0x3e3f16,_0x33c397){return _0x33c397[_0x196d('0x31')](_0x3e3f16[_0x196d('0x28')],_0x196d('0x18'))&&!_0x33c397[_0x196d('0x13')](_0x3e3f16);}(_0x1575a9,_0x171733));_0x11789f=_0x11789f[_0x196d('0x14')](_0x3dc347=>!_0x3dc347['is'](_0x196d('0x33'),_0x196d('0x18'))||_0x3dc347[_0x196d('0x2f')](_0x196d('0x1c'))!=_0x169a03);const _0x2c510a=new Set();for(const _0x54b396 of _0x11789f)_0x54b396['is'](_0x196d('0x33'),_0x196d('0x18'))?_0x2c510a['add'](ne(_0x54b396)):_0x2c510a[_0x196d('0x24')](_0x54b396);return Array[_0x196d('0x26')](_0x2c510a);}(_0x210642[_0x196d('0x9')](),_0x1eefc3,_0x1f8ab8['model'][_0x196d('0x16')]);_0x1f8ab8[_0x196d('0x35')]['change'](()=>{for(const _0x594ffb of _0x752e8a)_0x15be9e['markBlockFormat'](_0x594ffb,{'commandName':_0x4b3347,'commandParams':[{'forceValue':!_0x216ab0['value']}],'formatGroupId':_0x196d('0x8')},oe(_0x594ffb));});};}function _0x29d136(_0x4af68a){return()=>{const _0x266e25=function(_0x291fd9){let _0x3d3bc0=Array[_0x196d('0x26')](_0x291fd9);const _0x371ea4=_0x3d3bc0['findIndex'](_0x356535=>_0x196d('0x18')!=_0x356535[_0x196d('0xd')]);return _0x371ea4>-0x1&&(_0x3d3bc0=_0x3d3bc0[_0x196d('0x3d')](0x0,_0x371ea4)),_0x3d3bc0;}(_0x1f8ab8['model'][_0x196d('0x2a')][_0x196d('0x1b')][_0x196d('0x9')]()),_0x2ccbb2=_0x1f8ab8[_0x196d('0x35')]['createRange'](_0x1f8ab8[_0x196d('0x35')]['createPositionAt'](_0x266e25[0x0],_0x196d('0x34')),_0x1f8ab8[_0x196d('0x35')][_0x196d('0x0')](_0x266e25[_0x266e25[_0x196d('0x1a')]-0x1],_0x196d('0x2b')));_0x1f8ab8[_0x196d('0x35')][_0x196d('0xc')](()=>{_0x15be9e[_0x196d('0x25')](_0x2ccbb2,{'commandName':_0x4af68a,'commandParams':[],'formatGroupId':_0x196d('0x1d')},function(_0x457f3a){const _0x2932ec=new Set();for(const _0x4bb0ea of _0x457f3a){let _0x37d916=_0x4bb0ea[_0x196d('0x6')];for(;_0x37d916&&_0x37d916[_0x196d('0x2f')]('listIndent')>_0x4bb0ea['getAttribute'](_0x196d('0x1d'));)_0x2932ec[_0x196d('0x24')](_0x37d916),_0x37d916=_0x37d916[_0x196d('0x6')];}return Array['from'](_0x2932ec);}(_0x266e25));});};}_0x15be9e[_0x196d('0x29')](_0x196d('0xb'),_0x2ded01('numberedList')),_0x15be9e[_0x196d('0x29')](_0x196d('0x11'),_0x2ded01(_0x196d('0x11'))),_0x432678&&_0x15be9e['enableCommand'](_0x196d('0x1f'),_0x2ded01(_0x196d('0x1f'))),_0x15be9e['enableCommand'](_0x196d('0x1e'),_0x29d136(_0x196d('0x1e'))),_0x15be9e['enableCommand']('outdentList',_0x29d136(_0x196d('0x32'))),_0x432678&&_0x15be9e[_0x196d('0x29')](_0x196d('0x3e'),()=>{const _0x98f564=_0x1f8ab8[_0x196d('0x20')][_0x196d('0x38')]('checkTodoList'),_0x1d64cd=Array[_0x196d('0x26')](_0x98f564[_0x196d('0xf')]);_0x1d64cd[_0x196d('0x14')](_0x3037a7=>_0x3037a7[_0x196d('0x2f')](_0x196d('0x21'))!=_0x98f564[_0x196d('0x1')]),_0x1f8ab8[_0x196d('0x35')][_0x196d('0xc')](()=>{for(const _0x4fcb74 of _0x1d64cd)_0x15be9e[_0x196d('0x25')](_0x4fcb74,{'commandName':_0x196d('0x3e'),'commandParams':[{'forceValue':!_0x98f564[_0x196d('0x1')]}]});});}),_0x15be9e[_0x196d('0x36')][_0x196d('0x3a')](_0x196d('0x18'),_0x1e44c7=>_0x2c6bd2(_0x184384,'ELEMENT_LIST_ITEM',_0x1e44c7)),_0x15be9e[_0x196d('0x36')][_0x196d('0x39')](_0x1619ea=>{if(_0x196d('0x15')!=_0x1619ea['type']&&_0x196d('0x3c')!=_0x1619ea[_0x196d('0x23')])return;const {data:_0x4843ef}=_0x1619ea;if(_0x4843ef){if(_0x196d('0xb')==_0x4843ef[_0x196d('0x37')]||_0x196d('0x11')==_0x4843ef[_0x196d('0x37')]||_0x196d('0x1f')==_0x4843ef['commandName'])switch(_0x4843ef['commandName'][_0x196d('0x2')](_0x196d('0x12'),'')){case _0x196d('0x2d'):return _0x58ea2f(_0x2c6bd2(_0x184384,'ELEMENT_BULLETED_LIST'));case _0x196d('0x3'):return _0x58ea2f(_0x2c6bd2(_0x184384,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58ea2f(_0x2c6bd2(_0x184384,_0x196d('0x7')));}if('indentList'==_0x4843ef[_0x196d('0x37')])return{'type':_0x196d('0x30'),'content':_0x2c6bd2(_0x184384,'*Indent:*\x20%0',_0x2c6bd2(_0x184384,'ELEMENT_LIST_ITEM'))};if(_0x196d('0x32')==_0x4843ef[_0x196d('0x37')])return{'type':_0x196d('0x30'),'content':_0x2c6bd2(_0x184384,'*Outdent:*\x20%0',_0x2c6bd2(_0x184384,_0x196d('0x10')))};if(_0x196d('0x3e')==_0x4843ef[_0x196d('0x37')])return _0x4843ef['commandParams'][0x0]['forceValue']?{'type':'format','content':_0x2c6bd2(_0x184384,'*Check\x20item*')}:{'type':_0x196d('0x30'),'content':_0x2c6bd2(_0x184384,_0x196d('0x2e'))};}function _0x58ea2f(_0x2445b8){return{'type':_0x196d('0x30'),'content':_0x2c6bd2(_0x184384,_0x196d('0xa'),_0x2445b8)};}});}}function ne(_0xf62253){const _0x538eea=_0xf62253['getAttribute'](_0x196d('0x1d'));if(0x0==_0x538eea)return _0xf62253;let _0x45912e=_0xf62253;for(;_0xf62253[_0x196d('0x17')]&&_0xf62253['previousSibling']['is'](_0x196d('0x33'),_0x196d('0x18'));){const _0x7b329f=_0xf62253[_0x196d('0x17')][_0x196d('0x2f')]('listIndent');if(_0x7b329f==_0x538eea)_0x45912e=_0xf62253[_0x196d('0x17')];else{if(_0x7b329f<_0x538eea)break;}_0xf62253=_0xf62253[_0x196d('0x17')];}return _0x45912e;}function oe(_0x393be0){const _0x3d6b02=[];if(_0x393be0['is'](_0x196d('0x33'),'listItem')&&_0x393be0['getAttribute'](_0x196d('0x1d'))>0x0){let _0x410c0b=_0x393be0['nextSibling'];for(;_0x410c0b&&_0x196d('0x18')==_0x410c0b[_0x196d('0xd')]&&_0x410c0b[_0x196d('0x2f')](_0x196d('0x1d'))==_0x393be0['getAttribute']('listIndent');)_0x3d6b02['push'](_0x410c0b),_0x410c0b=_0x410c0b['nextSibling'];}return _0x3d6b02;}
@@ -1,29 +1,29 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/listproperties
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import type { Description } from '../suggestiondescriptionfactory';
10
- import type Suggestion from '../suggestion';
11
- /**
12
- * Provides track changes plugin integration for list properties feature.
13
- */
14
- export default class TrackChangesListProperties extends Plugin {
15
- /**
16
- * @inheritDoc
17
- */
18
- afterInit(): void;
19
- handleListStyleCommand(executeCommand: Function, options?: {
20
- type?: string | null;
21
- }): void;
22
- handleListReversedCommand(executeCommand: Function, options?: {
23
- reversed?: boolean;
24
- }): void;
25
- handleListStartCommand(executeCommand: Function, options?: {
26
- startIndex?: number;
27
- }): void;
28
- handleDescriptions(suggestion: Suggestion): Description | undefined;
29
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/listproperties
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import type { Description } from '../suggestiondescriptionfactory';
10
+ import type Suggestion from '../suggestion';
11
+ /**
12
+ * Provides track changes plugin integration for list properties feature.
13
+ */
14
+ export default class TrackChangesListProperties extends Plugin {
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ afterInit(): void;
19
+ handleListStyleCommand(executeCommand: Function, options?: {
20
+ type?: string | null;
21
+ }): void;
22
+ handleListReversedCommand(executeCommand: Function, options?: {
23
+ reversed?: boolean;
24
+ }): void;
25
+ handleListStartCommand(executeCommand: Function, options?: {
26
+ startIndex?: number;
27
+ }): void;
28
+ handleDescriptions(suggestion: Suggestion): Description | undefined;
29
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5cd0=['getSelectedBlocks','config','plugins','from','listType','ListPropertiesEditing','enableCommand','TrackChangesEditing','listStyle','styles','ELEMENT_','length','model','markMultiRangeBlockFormat','*Format:*\x20set\x20order\x20to\x20regular','get','flat','handleListStyleCommand','listReversed','map','selection','filter','createRange','has','getAttribute','commandParams','handleListStartCommand','element','getSiblingNodes','parent','*Format:*\x20set\x20order\x20to\x20reversed','getFirstPosition','document','_LIST_','_getSuggestionBlocks','unshift','toUpperCase','handleListReversedCommand','forward','before','push','getLastPosition','startIndex','commandName','listItem','createPositionAt','numbered','locale','ListUtils','_getTranslationKeyForListStyle','listStart','editor','change','backward','afterInit','bind','getListTypeFromListStyleType','type','reversed'];(function(_0x1ea38f,_0x5cd05e){const _0x36564a=function(_0x32d5a4){while(--_0x32d5a4){_0x1ea38f['push'](_0x1ea38f['shift']());}};_0x36564a(++_0x5cd05e);}(_0x5cd0,0xe4));const _0x3656=function(_0x1ea38f,_0x5cd05e){_0x1ea38f=_0x1ea38f-0x0;let _0x36564a=_0x5cd0[_0x1ea38f];return _0x36564a;};import{Plugin as _0x5d4829}from'ckeditor5/src/core';import{getTranslation as _0x4d1a58}from'../utils/common-translations';export default class ot extends _0x5d4829{[_0x3656('0x3')](){if(!this['editor'][_0x3656('0xa')][_0x3656('0x1f')](_0x3656('0xd')))return;const _0x527c9a=this[_0x3656('0x0')][_0x3656('0x9')]['get']('list.properties'),_0x5a7168=this['editor'][_0x3656('0xa')][_0x3656('0x17')](_0x3656('0xf'));_0x527c9a[_0x3656('0x11')]&&_0x5a7168['enableCommand'](_0x3656('0x10'),this[_0x3656('0x19')][_0x3656('0x4')](this)),_0x527c9a[_0x3656('0x7')]&&_0x5a7168[_0x3656('0xe')](_0x3656('0x1a'),this[_0x3656('0x2d')][_0x3656('0x4')](this)),_0x527c9a[_0x3656('0x32')]&&_0x5a7168[_0x3656('0xe')](_0x3656('0x3a'),this[_0x3656('0x22')][_0x3656('0x4')](this)),_0x5a7168['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions'][_0x3656('0x4')](this));}[_0x3656('0x19')](_0x58bb72,_0x425503={}){const _0x31a559=this[_0x3656('0x0')][_0x3656('0xa')][_0x3656('0x17')](_0x3656('0xf')),_0x2e214c=this['_getSuggestionBlocksForListStyle']();this[_0x3656('0x0')][_0x3656('0x14')]['change'](()=>{_0x31a559[_0x3656('0x15')](_0x2e214c,{'commandName':_0x3656('0x10'),'commandParams':[{'type':_0x425503[_0x3656('0x6')]}],'formatGroupId':_0x3656('0x10')});});}[_0x3656('0x2d')](_0x2f1cce,_0x120fdf={}){const _0x26dab8=this[_0x3656('0x0')][_0x3656('0xa')][_0x3656('0x17')](_0x3656('0xf')),_0x5b7ef0=this[_0x3656('0x2a')](_0x50dfc6=>_0x50dfc6['is'](_0x3656('0x23'),_0x3656('0x34'))&&'numbered'===_0x50dfc6[_0x3656('0x20')](_0x3656('0xc')));if(_0x5b7ef0[_0x3656('0x13')]<0x1)return;const _0x3b645e=_0x5b7ef0[_0x3656('0x1b')](_0x54f251=>this[_0x3656('0x0')]['model'][_0x3656('0x1e')](this['editor'][_0x3656('0x14')][_0x3656('0x35')](_0x54f251,_0x3656('0x2f')),this[_0x3656('0x0')][_0x3656('0x14')][_0x3656('0x35')](_0x54f251,0x0)));this[_0x3656('0x0')]['model'][_0x3656('0x1')](()=>{_0x26dab8[_0x3656('0x15')](_0x3b645e,{'commandName':'listReversed','commandParams':[{'reversed':_0x120fdf[_0x3656('0x7')]}],'formatGroupId':_0x3656('0x1a')});});}[_0x3656('0x22')](_0x530f53,_0x40de11={}){const _0x35341=this['editor'][_0x3656('0xa')][_0x3656('0x17')](_0x3656('0xf')),_0x47b1a9=this[_0x3656('0x2a')](_0x3ce521=>_0x3ce521['is'](_0x3656('0x23'),_0x3656('0x34'))&&_0x3656('0x36')===_0x3ce521[_0x3656('0x20')](_0x3656('0xc')));if(_0x47b1a9['length']<0x1)return;const _0x4cb2e7=_0x47b1a9[_0x3656('0x1b')](_0x1888ae=>this[_0x3656('0x0')]['model'][_0x3656('0x1e')](this['editor'][_0x3656('0x14')][_0x3656('0x35')](_0x1888ae,'before'),this[_0x3656('0x0')][_0x3656('0x14')][_0x3656('0x35')](_0x1888ae,0x0)));this['editor'][_0x3656('0x14')][_0x3656('0x1')](()=>{_0x35341[_0x3656('0x15')](_0x4cb2e7,{'commandName':_0x3656('0x3a'),'commandParams':[{'startIndex':_0x40de11[_0x3656('0x32')]}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xf3b030){const _0x2959cb=this['editor'][_0x3656('0x37')],{data:_0x5f2119}=_0xf3b030;if(!_0x5f2119)return;let _0x2129d3,_0x4f4f79;switch(_0x5f2119[_0x3656('0x33')]){case _0x3656('0x10'):_0x2129d3='*Change\x20to:*\x20%0',_0x4f4f79={'type':'format','content':_0x4d1a58(_0x2959cb,_0x2129d3,_0x4d1a58(_0x2959cb,this[_0x3656('0x39')](_0x5f2119[_0x3656('0x21')][0x0][_0x3656('0x6')])))};break;case'listReversed':_0x2129d3=_0x5f2119[_0x3656('0x21')][0x0]['reversed']?_0x3656('0x26'):_0x3656('0x16'),_0x4f4f79={'type':'format','content':_0x4d1a58(_0x2959cb,_0x2129d3)};break;case _0x3656('0x3a'):_0x2129d3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f4f79={'type':'format','content':_0x4d1a58(_0x2959cb,_0x2129d3,_0x5f2119['commandParams'][0x0][_0x3656('0x32')])};}return _0x4f4f79;}['_getSuggestionBlocksForListStyle'](){var _0x11b692,_0x88e746,_0x27ed34,_0x1f7436;const _0xc2ef8b=this[_0x3656('0x0')][_0x3656('0xa')][_0x3656('0x17')]('ListUtils');let _0x530d57=Array['from'](this[_0x3656('0x0')]['model']['document'][_0x3656('0x1c')][_0x3656('0x8')]());return(null===(_0x11b692=_0x530d57[0x0])||void 0x0===_0x11b692?void 0x0:_0x11b692['is'](_0x3656('0x23'),'listItem'))&&_0x530d57[_0x3656('0x2b')](..._0xc2ef8b[_0x3656('0x24')](this[_0x3656('0x0')][_0x3656('0x14')]['document'][_0x3656('0x1c')][_0x3656('0x27')](),_0x3656('0x2'))),(null===(_0x88e746=_0x530d57[_0x530d57[_0x3656('0x13')]-0x1])||void 0x0===_0x88e746?void 0x0:_0x88e746['is']('element',_0x3656('0x34')))&&_0x530d57[_0x3656('0x30')](..._0xc2ef8b[_0x3656('0x24')](this[_0x3656('0x0')][_0x3656('0x14')][_0x3656('0x28')]['selection'][_0x3656('0x31')](),'forward')),_0x530d57=[...new Set(_0x530d57)],(null===(_0x1f7436=null===(_0x27ed34=this[_0x3656('0x0')][_0x3656('0x14')][_0x3656('0x28')]['selection']['getFirstPosition']())||void 0x0===_0x27ed34?void 0x0:_0x27ed34[_0x3656('0x25')])||void 0x0===_0x1f7436?void 0x0:_0x1f7436['is']('element',_0x3656('0x34')))&&(_0x530d57=_0x530d57[_0x3656('0x1d')](_0x59eecd=>_0x59eecd['is'](_0x3656('0x23'),_0x3656('0x34')))),_0x530d57;}[_0x3656('0x2a')](_0x5b4e8f){const _0x5284e6=this[_0x3656('0x0')][_0x3656('0xa')][_0x3656('0x17')]('ListUtils');let _0x13be57=Array[_0x3656('0xb')](this[_0x3656('0x0')][_0x3656('0x14')][_0x3656('0x28')][_0x3656('0x1c')]['getSelectedBlocks']())[_0x3656('0x1d')](_0x5b4e8f)[_0x3656('0x1b')](_0xcfae92=>{const _0x2c7185=this[_0x3656('0x0')]['model'][_0x3656('0x35')](_0xcfae92,0x0);return[..._0x5284e6['getSiblingNodes'](_0x2c7185,'backward'),..._0x5284e6['getSiblingNodes'](_0x2c7185,_0x3656('0x2e'))];})[_0x3656('0x18')]();return _0x13be57=[...new Set(_0x13be57)],_0x13be57;}[_0x3656('0x39')](_0xd31602){return _0x3656('0x12')+this[_0x3656('0x0')][_0x3656('0xa')][_0x3656('0x17')](_0x3656('0x38'))[_0x3656('0x5')](_0xd31602)[_0x3656('0x2c')]()+_0x3656('0x29')+_0xd31602[_0x3656('0x2c')]()['replace'](/-/g,'_');}}
23
+ const _0x5800=['forward','markMultiRangeBlockFormat','listReversed','listStyle','get','has','plugins','reversed','backward','flat','model','toUpperCase','listStart','startIndex','from','selection','_getSuggestionBlocks','_getSuggestionBlocksForListStyle','format','ListUtils','createRange','config','createPositionAt','ELEMENT_','getFirstPosition','*Format:*\x20set\x20order\x20to\x20regular','styles','formatInline','unshift','filter','type','length','getSelectedBlocks','parent','getSiblingNodes','_getTranslationKeyForListStyle','getAttribute','registerDescriptionCallback','map','element','*Format:*\x20set\x20order\x20to\x20reversed','TrackChangesEditing','editor','formatBlock','enableCommand','listItem','handleListStyleCommand','handleDescriptions','afterInit','*Format:*\x20set\x20start\x20index\x20to\x20%0','replace','ListPropertiesEditing','getListTypeFromListStyleType','numbered','_LIST_','before','bind','handleListReversedCommand','change','document','push','commandParams'];(function(_0x1f5b18,_0x580044){const _0x2a8df8=function(_0x5dc431){while(--_0x5dc431){_0x1f5b18['push'](_0x1f5b18['shift']());}};_0x2a8df8(++_0x580044);}(_0x5800,0xe7));const _0x2a8d=function(_0x1f5b18,_0x580044){_0x1f5b18=_0x1f5b18-0x0;let _0x2a8df8=_0x5800[_0x1f5b18];return _0x2a8df8;};import{Plugin as _0x2b4bc6}from'ckeditor5/src/core';import{getTranslation as _0x435b80}from'../utils/common-translations';export default class ut extends _0x2b4bc6{[_0x2a8d('0x3')](){if(!this[_0x2a8d('0x3b')][_0x2a8d('0x17')][_0x2a8d('0x16')](_0x2a8d('0x6')))return;const _0x5d9753=this[_0x2a8d('0x3b')][_0x2a8d('0x26')][_0x2a8d('0x15')]('list.properties'),_0x45fc73=this[_0x2a8d('0x3b')][_0x2a8d('0x17')][_0x2a8d('0x15')](_0x2a8d('0x3a'));_0x5d9753[_0x2a8d('0x2b')]&&_0x45fc73['enableCommand'](_0x2a8d('0x14'),this[_0x2a8d('0x1')]['bind'](this)),_0x5d9753[_0x2a8d('0x18')]&&_0x45fc73[_0x2a8d('0x3d')](_0x2a8d('0x13'),this[_0x2a8d('0xc')][_0x2a8d('0xb')](this)),_0x5d9753[_0x2a8d('0x1e')]&&_0x45fc73[_0x2a8d('0x3d')](_0x2a8d('0x1d'),this['handleListStartCommand']['bind'](this)),_0x45fc73['_descriptionFactory'][_0x2a8d('0x36')](this[_0x2a8d('0x2')][_0x2a8d('0xb')](this));}[_0x2a8d('0x1')](_0x3f5976,_0x34ec00={}){const _0x3e808f=this[_0x2a8d('0x3b')][_0x2a8d('0x17')][_0x2a8d('0x15')](_0x2a8d('0x3a')),_0x1b2627=this[_0x2a8d('0x22')]();this[_0x2a8d('0x3b')][_0x2a8d('0x1b')]['change'](()=>{_0x3e808f[_0x2a8d('0x12')](_0x1b2627,{'commandName':'listStyle','commandParams':[{'type':_0x34ec00[_0x2a8d('0x2f')]}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4b8391,_0x406637={}){const _0x423176=this[_0x2a8d('0x3b')]['plugins'][_0x2a8d('0x15')](_0x2a8d('0x3a')),_0x8d8dbb=this[_0x2a8d('0x21')](_0x2c5ab4=>_0x2c5ab4['is'](_0x2a8d('0x38'),_0x2a8d('0x0'))&&_0x2a8d('0x8')===_0x2c5ab4[_0x2a8d('0x35')]('listType'));if(_0x8d8dbb[_0x2a8d('0x30')]<0x1)return;const _0x224d09=_0x8d8dbb['map'](_0x2ba5f3=>this['editor'][_0x2a8d('0x1b')][_0x2a8d('0x25')](this[_0x2a8d('0x3b')]['model'][_0x2a8d('0x27')](_0x2ba5f3,_0x2a8d('0xa')),this[_0x2a8d('0x3b')][_0x2a8d('0x1b')]['createPositionAt'](_0x2ba5f3,0x0)));this[_0x2a8d('0x3b')][_0x2a8d('0x1b')][_0x2a8d('0xd')](()=>{_0x423176[_0x2a8d('0x12')](_0x224d09,{'commandName':_0x2a8d('0x13'),'commandParams':[{'reversed':_0x406637['reversed']}],'formatGroupId':_0x2a8d('0x13')});});}['handleListStartCommand'](_0x80279a,_0x19f4ec={}){const _0x2ccebe=this[_0x2a8d('0x3b')]['plugins'][_0x2a8d('0x15')](_0x2a8d('0x3a')),_0x4217f5=this[_0x2a8d('0x21')](_0xea2796=>_0xea2796['is'](_0x2a8d('0x38'),_0x2a8d('0x0'))&&_0x2a8d('0x8')===_0xea2796[_0x2a8d('0x35')]('listType'));if(_0x4217f5[_0x2a8d('0x30')]<0x1)return;const _0x3d6cac=_0x4217f5[_0x2a8d('0x37')](_0x161cc2=>this[_0x2a8d('0x3b')][_0x2a8d('0x1b')][_0x2a8d('0x25')](this[_0x2a8d('0x3b')]['model']['createPositionAt'](_0x161cc2,_0x2a8d('0xa')),this[_0x2a8d('0x3b')][_0x2a8d('0x1b')][_0x2a8d('0x27')](_0x161cc2,0x0)));this[_0x2a8d('0x3b')][_0x2a8d('0x1b')][_0x2a8d('0xd')](()=>{_0x2ccebe[_0x2a8d('0x12')](_0x3d6cac,{'commandName':_0x2a8d('0x1d'),'commandParams':[{'startIndex':_0x19f4ec[_0x2a8d('0x1e')]}],'formatGroupId':_0x2a8d('0x1d')});});}[_0x2a8d('0x2')](_0x53792f){if(_0x2a8d('0x3c')!=_0x53792f['type']&&_0x2a8d('0x2c')!=_0x53792f[_0x2a8d('0x2f')])return;const _0xafec10=this[_0x2a8d('0x3b')]['locale'],{data:_0x9d7f2d}=_0x53792f;if(!_0x9d7f2d)return;let _0x41d9d8,_0x126f7b;switch(_0x9d7f2d['commandName']){case _0x2a8d('0x14'):_0x41d9d8='*Change\x20to:*\x20%0',_0x126f7b={'type':'format','content':_0x435b80(_0xafec10,_0x41d9d8,_0x435b80(_0xafec10,this[_0x2a8d('0x34')](_0x9d7f2d[_0x2a8d('0x10')][0x0]['type'])))};break;case _0x2a8d('0x13'):_0x41d9d8=_0x9d7f2d[_0x2a8d('0x10')][0x0][_0x2a8d('0x18')]?_0x2a8d('0x39'):_0x2a8d('0x2a'),_0x126f7b={'type':_0x2a8d('0x23'),'content':_0x435b80(_0xafec10,_0x41d9d8)};break;case _0x2a8d('0x1d'):_0x41d9d8=_0x2a8d('0x4'),_0x126f7b={'type':'format','content':_0x435b80(_0xafec10,_0x41d9d8,_0x9d7f2d[_0x2a8d('0x10')][0x0][_0x2a8d('0x1e')])};}return _0x126f7b;}[_0x2a8d('0x22')](){var _0x1577f8,_0x419292,_0x2962b6,_0x191eff;const _0x1ce893=this[_0x2a8d('0x3b')]['plugins']['get']('ListUtils');let _0x155dbb=Array[_0x2a8d('0x1f')](this[_0x2a8d('0x3b')][_0x2a8d('0x1b')][_0x2a8d('0xe')]['selection'][_0x2a8d('0x31')]());return(null===(_0x1577f8=_0x155dbb[0x0])||void 0x0===_0x1577f8?void 0x0:_0x1577f8['is'](_0x2a8d('0x38'),_0x2a8d('0x0')))&&_0x155dbb[_0x2a8d('0x2d')](..._0x1ce893[_0x2a8d('0x33')](this['editor'][_0x2a8d('0x1b')][_0x2a8d('0xe')][_0x2a8d('0x20')][_0x2a8d('0x29')](),_0x2a8d('0x19'))),(null===(_0x419292=_0x155dbb[_0x155dbb[_0x2a8d('0x30')]-0x1])||void 0x0===_0x419292?void 0x0:_0x419292['is'](_0x2a8d('0x38'),'listItem'))&&_0x155dbb[_0x2a8d('0xf')](..._0x1ce893[_0x2a8d('0x33')](this['editor'][_0x2a8d('0x1b')][_0x2a8d('0xe')][_0x2a8d('0x20')]['getLastPosition'](),'forward')),_0x155dbb=[...new Set(_0x155dbb)],(null===(_0x191eff=null===(_0x2962b6=this['editor'][_0x2a8d('0x1b')][_0x2a8d('0xe')]['selection'][_0x2a8d('0x29')]())||void 0x0===_0x2962b6?void 0x0:_0x2962b6[_0x2a8d('0x32')])||void 0x0===_0x191eff?void 0x0:_0x191eff['is'](_0x2a8d('0x38'),_0x2a8d('0x0')))&&(_0x155dbb=_0x155dbb[_0x2a8d('0x2e')](_0x4f88b6=>_0x4f88b6['is'](_0x2a8d('0x38'),_0x2a8d('0x0')))),_0x155dbb;}['_getSuggestionBlocks'](_0xd9a9df){const _0x2b65df=this[_0x2a8d('0x3b')][_0x2a8d('0x17')][_0x2a8d('0x15')]('ListUtils');let _0x532b83=Array['from'](this['editor'][_0x2a8d('0x1b')]['document'][_0x2a8d('0x20')][_0x2a8d('0x31')]())[_0x2a8d('0x2e')](_0xd9a9df)[_0x2a8d('0x37')](_0x499c98=>{const _0x9f7683=this[_0x2a8d('0x3b')]['model']['createPositionAt'](_0x499c98,0x0);return[..._0x2b65df['getSiblingNodes'](_0x9f7683,_0x2a8d('0x19')),..._0x2b65df[_0x2a8d('0x33')](_0x9f7683,_0x2a8d('0x11'))];})[_0x2a8d('0x1a')]();return _0x532b83=[...new Set(_0x532b83)],_0x532b83;}[_0x2a8d('0x34')](_0x2e5370){return _0x2a8d('0x28')+this['editor']['plugins'][_0x2a8d('0x15')](_0x2a8d('0x24'))[_0x2a8d('0x7')](_0x2e5370)[_0x2a8d('0x1c')]()+_0x2a8d('0x9')+_0x2e5370[_0x2a8d('0x1c')]()[_0x2a8d('0x5')](/-/g,'_');}}