@ckeditor/ckeditor5-track-changes 33.0.0 → 34.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 (75) hide show
  1. package/README.md +3 -0
  2. package/build/track-changes.js +1 -1
  3. package/build/translations/az.js +1 -0
  4. package/build/translations/cs.js +1 -1
  5. package/build/translations/en-au.js +1 -1
  6. package/build/translations/gl.js +1 -1
  7. package/build/translations/hr.js +1 -1
  8. package/build/translations/id.js +1 -0
  9. package/build/translations/sk.js +1 -1
  10. package/lang/translations/az.po +387 -0
  11. package/lang/translations/cs.po +28 -28
  12. package/lang/translations/en-au.po +5 -5
  13. package/lang/translations/gl.po +3 -3
  14. package/lang/translations/hr.po +13 -13
  15. package/lang/translations/id.po +370 -0
  16. package/lang/translations/sk.po +57 -57
  17. package/package.json +3 -3
  18. package/src/commands/acceptallsuggestionscommand.js +1 -1
  19. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  20. package/src/commands/acceptsuggestioncommand.js +1 -1
  21. package/src/commands/discardallsuggestionscommand.js +1 -1
  22. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  23. package/src/commands/discardsuggestioncommand.js +1 -1
  24. package/src/commands/trackchangescommand.js +1 -1
  25. package/src/integrations/alignment.js +1 -1
  26. package/src/integrations/basicstyles.js +1 -1
  27. package/src/integrations/blockquote.js +1 -1
  28. package/src/integrations/codeblock.js +1 -1
  29. package/src/integrations/comments.js +1 -1
  30. package/src/integrations/deletecommand.js +1 -1
  31. package/src/integrations/entercommand.js +1 -1
  32. package/src/integrations/font.js +1 -1
  33. package/src/integrations/heading.js +1 -1
  34. package/src/integrations/highlight.js +1 -1
  35. package/src/integrations/horizontalline.js +1 -1
  36. package/src/integrations/image.js +1 -1
  37. package/src/integrations/indent.js +1 -1
  38. package/src/integrations/inputcommand.js +1 -1
  39. package/src/integrations/link.js +1 -1
  40. package/src/integrations/list.js +1 -1
  41. package/src/integrations/mediaembed.js +1 -1
  42. package/src/integrations/mention.js +1 -1
  43. package/src/integrations/pagebreak.js +1 -1
  44. package/src/integrations/paragraph.js +1 -1
  45. package/src/integrations/removeformat.js +1 -1
  46. package/src/integrations/restrictededitingmode.js +1 -1
  47. package/src/integrations/shiftentercommand.js +1 -1
  48. package/src/integrations/standardeditingmode.js +1 -1
  49. package/src/integrations/table.js +1 -1
  50. package/src/integrations/tableclipboard.js +1 -1
  51. package/src/integrations/tableheadings.js +1 -1
  52. package/src/integrations/tablemergesplit.js +1 -1
  53. package/src/integrations/title.js +1 -1
  54. package/src/integrations/undo.js +1 -1
  55. package/src/integrations/utils.js +1 -1
  56. package/src/suggestion.js +1 -1
  57. package/src/suggestiondescriptionfactory.js +1 -1
  58. package/src/trackchanges.js +1 -1
  59. package/src/trackchangesdata.js +1 -1
  60. package/src/trackchangesediting.js +1 -1
  61. package/src/trackchangesui.js +1 -1
  62. package/src/ui/suggestioncontroller.js +1 -1
  63. package/src/ui/view/basesuggestionthreadview.js +1 -1
  64. package/src/ui/view/suggestionthreadview.js +1 -1
  65. package/src/utils/getselectedsuggestions.js +1 -1
  66. package/src/utils/hashobject.js +1 -1
  67. package/src/utils/normalizedescription.js +1 -1
  68. package/src/utils/sortsuggestions.js +1 -1
  69. package/theme/integrations/horizontalline.css +0 -15
  70. package/theme/integrations/image.css +0 -55
  71. package/theme/integrations/mediaembed.css +0 -19
  72. package/theme/integrations/pagebreak.css +0 -15
  73. package/theme/integrations/table.css +0 -147
  74. package/theme/suggestion.css +0 -87
  75. package/theme/suggestionmarker.css +0 -161
@@ -58,7 +58,7 @@ msgstr "*Odstrániť formátovanie:* %0"
58
58
 
59
59
  msgctxt "A suggestion for removing the highlight."
60
60
  msgid "*Remove highlight*"
61
- msgstr ""
61
+ msgstr "*Odstrániť zvýraznenie*"
62
62
 
63
63
  msgctxt "A suggestion for removing image text alternative."
64
64
  msgid "*Remove image text alternative*"
@@ -114,7 +114,7 @@ msgstr "*Nastaviť veľkosť písma:* %0"
114
114
 
115
115
  msgctxt "A suggestion for highlighting text."
116
116
  msgid "*Set highlight:* %0"
117
- msgstr ""
117
+ msgstr "*Nastaviť zvýraznenie:* %0"
118
118
 
119
119
  msgctxt "A suggestion for setting image text alternative to %0."
120
120
  msgid "*Set image text alternative:* %0"
@@ -178,7 +178,7 @@ msgstr "Odrážkový zoznam"
178
178
 
179
179
  msgctxt "The caption element name displayed in the suggestion."
180
180
  msgid "ELEMENT_CAPTION"
181
- msgstr ""
181
+ msgstr "titulok"
182
182
 
183
183
  msgctxt "The code block element name displayed in the suggestion."
184
184
  msgid "ELEMENT_CODE_BLOCK"
@@ -199,10 +199,10 @@ msgstr[3] "%0 nadpisov (level %1)"
199
199
  msgctxt "The heading element name displayed in the suggestion with a custom title."
200
200
  msgid "ELEMENT_HEADING_CUSTOM"
201
201
  msgid_plural "%0 headings (%1)"
202
- msgstr[0] ""
203
- msgstr[1] ""
204
- msgstr[2] ""
205
- msgstr[3] ""
202
+ msgstr[0] "%0 nadpis (%1)"
203
+ msgstr[1] "%0 nadpisy (%1)"
204
+ msgstr[2] "%0 nadpisov (%1)"
205
+ msgstr[3] "%0 nadpisov (%1)"
206
206
 
207
207
  msgctxt "The horizontal line element name displayed in the suggestion."
208
208
  msgid "ELEMENT_HORIZONTAL_LINE"
@@ -223,34 +223,34 @@ msgstr[3] "%0 obrázkov"
223
223
  msgctxt "The inline image element name displayed in the suggestion."
224
224
  msgid "ELEMENT_INLINE_IMAGE"
225
225
  msgid_plural "%0 images"
226
- msgstr[0] ""
227
- msgstr[1] ""
228
- msgstr[2] ""
229
- msgstr[3] ""
226
+ msgstr[0] "%0 obrázok"
227
+ msgstr[1] "%0 obrázky"
228
+ msgstr[2] "%0 obrázkov"
229
+ msgstr[3] "%0 obrázkov"
230
230
 
231
231
  msgctxt "The line break element name displayed in the suggestion."
232
232
  msgid "ELEMENT_LINE_BREAK"
233
233
  msgid_plural "%0 line breaks"
234
- msgstr[0] ""
235
- msgstr[1] ""
236
- msgstr[2] ""
237
- msgstr[3] ""
234
+ msgstr[0] "%0 zalomenie riadku"
235
+ msgstr[1] "%0 zalomenie riadkov"
236
+ msgstr[2] "%0 zalomenie riadkov"
237
+ msgstr[3] "%0 zalomenie riadkov"
238
238
 
239
239
  msgctxt "The list item element name displayed in the suggestion."
240
240
  msgid "ELEMENT_LIST_ITEM"
241
241
  msgid_plural "%0 list items"
242
- msgstr[0] ""
243
- msgstr[1] ""
244
- msgstr[2] ""
245
- msgstr[3] ""
242
+ msgstr[0] "%0 položka zoznamu"
243
+ msgstr[1] "%0 položky zoznamu"
244
+ msgstr[2] "%0 položiek zoznamu"
245
+ msgstr[3] "%0 položiek zoznamu"
246
246
 
247
247
  msgctxt "The media element name displayed in the suggestion."
248
248
  msgid "ELEMENT_MEDIA"
249
249
  msgid_plural "%0 media items"
250
- msgstr[0] ""
251
- msgstr[1] ""
252
- msgstr[2] ""
253
- msgstr[3] ""
250
+ msgstr[0] "%0 mediálny súbor"
251
+ msgstr[1] "%0 mediálne súbory"
252
+ msgstr[2] "%0 mediálnych súborov"
253
+ msgstr[3] "%0 mediálnych súborov"
254
254
 
255
255
  msgctxt "The numbered list element name displayed in the suggestion."
256
256
  msgid "ELEMENT_NUMBERED_LIST"
@@ -259,66 +259,66 @@ msgstr "číslovaný zoznam"
259
259
  msgctxt "The page break element name displayed in the suggestion."
260
260
  msgid "ELEMENT_PAGE_BREAK"
261
261
  msgid_plural "%0 page breaks"
262
- msgstr[0] ""
263
- msgstr[1] ""
264
- msgstr[2] ""
265
- msgstr[3] ""
262
+ msgstr[0] "%0 zalomenie strany"
263
+ msgstr[1] "%0 zalomenie strán"
264
+ msgstr[2] "%0 zalomenie strán"
265
+ msgstr[3] "%0 zalomenie strán"
266
266
 
267
267
  msgctxt "The paragraph element name displayed in the suggestion."
268
268
  msgid "ELEMENT_PARAGRAPH"
269
269
  msgid_plural "%0 paragraphs"
270
- msgstr[0] ""
271
- msgstr[1] ""
272
- msgstr[2] ""
273
- msgstr[3] ""
270
+ msgstr[0] "%0 odstavec"
271
+ msgstr[1] "%0 odstavce"
272
+ msgstr[2] "%0 odstavcov"
273
+ msgstr[3] "%0 odstavcov"
274
274
 
275
275
  msgctxt "The space element name displayed in the suggestion."
276
276
  msgid "ELEMENT_SPACE"
277
277
  msgid_plural "%0 spaces"
278
- msgstr[0] ""
279
- msgstr[1] ""
280
- msgstr[2] ""
281
- msgstr[3] ""
278
+ msgstr[0] "%0 medzera"
279
+ msgstr[1] "%0 medzery"
280
+ msgstr[2] "%0 medzier"
281
+ msgstr[3] "%0 medzier"
282
282
 
283
283
  msgctxt "The table element name displayed in the suggestion."
284
284
  msgid "ELEMENT_TABLE"
285
285
  msgid_plural "%0 tables"
286
- msgstr[0] ""
287
- msgstr[1] ""
288
- msgstr[2] ""
289
- msgstr[3] ""
286
+ msgstr[0] "%0 tabuľka"
287
+ msgstr[1] "%0 tabulky"
288
+ msgstr[2] "%0 tabuliek"
289
+ msgstr[3] "%0 tabuliek"
290
290
 
291
291
  msgctxt "The table column element name displayed in the suggestion."
292
292
  msgid "ELEMENT_TABLE_COLUMN"
293
293
  msgid_plural "%0 table columns"
294
- msgstr[0] ""
295
- msgstr[1] ""
296
- msgstr[2] ""
297
- msgstr[3] ""
294
+ msgstr[0] "%0 stĺpec tabuľky"
295
+ msgstr[1] "%0 stĺpce tabuľky"
296
+ msgstr[2] "%0 stĺpcov tabuľky"
297
+ msgstr[3] "%0 stĺpcov tabuľky"
298
298
 
299
299
  msgctxt "The table column with text element name displayed in the suggestion."
300
300
  msgid "ELEMENT_TABLE_COLUMN_WITH_TEXT"
301
301
  msgid_plural "%0 table columns *with text* %1"
302
- msgstr[0] ""
303
- msgstr[1] ""
304
- msgstr[2] ""
305
- msgstr[3] ""
302
+ msgstr[0] "%0 stĺpec tabuľky *s textom* %1"
303
+ msgstr[1] "%0 stĺpce tabuľky *s textom* %1"
304
+ msgstr[2] "%0 stĺpcov tabuľky *s textom* %1"
305
+ msgstr[3] "%0 stĺpcov tabuľky *s textom* %1"
306
306
 
307
307
  msgctxt "The table row element name displayed in the suggestion."
308
308
  msgid "ELEMENT_TABLE_ROW"
309
309
  msgid_plural "%0 table rows"
310
- msgstr[0] ""
311
- msgstr[1] ""
312
- msgstr[2] ""
313
- msgstr[3] ""
310
+ msgstr[0] "%0 riadok tabuľky"
311
+ msgstr[1] "%0 riadky tabuľky"
312
+ msgstr[2] "%0 riadkov tabuľky"
313
+ msgstr[3] "%0 riadkov tabuľky"
314
314
 
315
315
  msgctxt "The table row with text element name displayed in the suggestion."
316
316
  msgid "ELEMENT_TABLE_ROW_WITH_TEXT"
317
317
  msgid_plural "%0 table rows *with text* %1"
318
- msgstr[0] ""
319
- msgstr[1] ""
320
- msgstr[2] ""
321
- msgstr[3] ""
318
+ msgstr[0] "%0 riadok tabuľky *s textom* %1"
319
+ msgstr[1] "%0 riadky tabuľky *s textom* %1"
320
+ msgstr[2] "%0 riadkov tabuľky *s textom* %1"
321
+ msgstr[3] "%0 riadkov tabuľky *s textom* %1"
322
322
 
323
323
  msgctxt "The table with text element name displayed in the suggestion."
324
324
  msgid "ELEMENT_TABLE_WITH_TEXT"
@@ -382,11 +382,11 @@ msgstr "Klasický riadok"
382
382
 
383
383
  msgctxt "The label for area disabled in restricted editing area in a format suggestion."
384
384
  msgid "FORMAT_RESTRICTED_DISABLED"
385
- msgstr ""
385
+ msgstr "*Zakázať v režime obmedzených úprav*"
386
386
 
387
387
  msgctxt "The label for area enabled in restricted editing area in a format suggestion."
388
388
  msgid "FORMAT_RESTRICTED_ENABLED"
389
- msgstr ""
389
+ msgstr "*Povoliť v režime obmedzených úprav*"
390
390
 
391
391
  msgctxt "The side image format name displayed in a format suggestion."
392
392
  msgid "FORMAT_SIDE_IMAGE"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "33.0.0",
3
+ "version": "34.0.0",
4
4
  "description": "CKEditor 5 track changes plugin.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -27,8 +27,8 @@
27
27
  ],
28
28
  "main": "src/index.js",
29
29
  "dependencies": {
30
- "ckeditor5": "^33.0.0",
31
- "ckeditor5-collaboration": "^33.0.0",
30
+ "ckeditor5": "^34.0.0",
31
+ "ckeditor5-collaboration": "^34.0.0",
32
32
  "lodash-es": "^4.17.11"
33
33
  }
34
34
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a65=['isEnabled','editor','change','refresh','model','_acceptSuggestionCommand','isInContent','execute','_suggestions','from','some','values'];(function(_0x52e07a,_0x4a65e9){const _0x4d0246=function(_0xae9ffb){while(--_0xae9ffb){_0x52e07a['push'](_0x52e07a['shift']());}};_0x4d0246(++_0x4a65e9);}(_0x4a65,0x1c0));const _0x4d02=function(_0x52e07a,_0x4a65e9){_0x52e07a=_0x52e07a-0x0;let _0x4d0246=_0x4a65[_0x52e07a];return _0x4d0246;};import{Command as _0x4da45b}from'ckeditor5/src/core';import _0x4c793d from'../utils/sortsuggestions';export default class $ extends _0x4da45b{constructor(_0x842d04,_0x4ea60b,_0x150fc7){super(_0x842d04),this[_0x4d02('0x1')]=_0x4ea60b,this[_0x4d02('0x4')]=_0x150fc7,this['refresh']();}[_0x4d02('0xb')](){const _0x1d801f=this[_0x4d02('0x1')];this['isEnabled']=_0x1d801f[_0x4d02('0x8')]&&Array[_0x4d02('0x5')](this[_0x4d02('0x4')][_0x4d02('0x7')]())[_0x4d02('0x6')](_0x51df28=>_0x51df28[_0x4d02('0x2')]);}[_0x4d02('0x3')](){this[_0x4d02('0x9')][_0x4d02('0x0')][_0x4d02('0xa')](()=>{const _0x26399e=_0x4c793d(Array[_0x4d02('0x5')](this['_suggestions'][_0x4d02('0x7')]()));for(const _0x279c03 of _0x26399e)_0x279c03['isInContent']&&this[_0x4d02('0x1')][_0x4d02('0x3')](_0x279c03['id']);});}}
23
+ const _0x3324=['execute','editor','change','model','refresh','from','_acceptSuggestionCommand','_suggestions','isInContent','some','isEnabled','values'];(function(_0x9aea55,_0x332476){const _0x1ace01=function(_0x368b33){while(--_0x368b33){_0x9aea55['push'](_0x9aea55['shift']());}};_0x1ace01(++_0x332476);}(_0x3324,0x8c));const _0x1ace=function(_0x9aea55,_0x332476){_0x9aea55=_0x9aea55-0x0;let _0x1ace01=_0x3324[_0x9aea55];return _0x1ace01;};import{Command as _0x143fb9}from'ckeditor5/src/core';import _0x52889a from'../utils/sortsuggestions';export default class $ extends _0x143fb9{constructor(_0x2d4f77,_0x239c40,_0x27da80){super(_0x2d4f77),this[_0x1ace('0xa')]=_0x239c40,this[_0x1ace('0xb')]=_0x27da80,this[_0x1ace('0x8')]();}[_0x1ace('0x8')](){const _0x897fdc=this[_0x1ace('0xa')];this[_0x1ace('0x2')]=_0x897fdc[_0x1ace('0x2')]&&Array['from'](this[_0x1ace('0xb')][_0x1ace('0x3')]())[_0x1ace('0x1')](_0x75b929=>_0x75b929['isInContent']);}[_0x1ace('0x4')](){this[_0x1ace('0x5')][_0x1ace('0x7')][_0x1ace('0x6')](()=>{const _0x145ac2=_0x52889a(Array[_0x1ace('0x9')](this['_suggestions'][_0x1ace('0x3')]()));for(const _0x2f75d0 of _0x145ac2)_0x2f75d0[_0x1ace('0x0')]&&this[_0x1ace('0xa')][_0x1ace('0x4')](_0x2f75d0['id']);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3dbf=['editor','_suggestions','from','execute','size','selection','isEnabled','model','document','_acceptSuggestionCommand','_selectedSuggestions','refresh','change','values'];(function(_0x49c26d,_0x3dbf0a){const _0x2fe0b5=function(_0x12bb4a){while(--_0x12bb4a){_0x49c26d['push'](_0x49c26d['shift']());}};_0x2fe0b5(++_0x3dbf0a);}(_0x3dbf,0x19a));const _0x2fe0=function(_0x49c26d,_0x3dbf0a){_0x49c26d=_0x49c26d-0x0;let _0x2fe0b5=_0x3dbf[_0x49c26d];return _0x2fe0b5;};import{Command as _0x31d43a}from'ckeditor5/src/core';import _0x136a19 from'../utils/sortsuggestions';import _0x151f60 from'../utils/getselectedsuggestions';export default class N extends _0x31d43a{constructor(_0x48c048,_0x798cb7,_0x1c8514){super(_0x48c048),this[_0x2fe0('0x5')]=_0x798cb7,this[_0x2fe0('0xb')]=_0x1c8514,this['_selectedSuggestions']=new Set(),this[_0x2fe0('0x7')]();}[_0x2fe0('0x7')](){const _0x32abfc=this[_0x2fe0('0x5')],_0x163afe=this[_0x2fe0('0xa')]['model'][_0x2fe0('0x4')][_0x2fe0('0x1')],_0x39dff9=Array['from'](this[_0x2fe0('0xb')][_0x2fe0('0x9')]());this[_0x2fe0('0x6')]=_0x151f60(_0x163afe,_0x39dff9),this['isEnabled']=_0x32abfc[_0x2fe0('0x2')]&&!!this[_0x2fe0('0x6')][_0x2fe0('0x0')];}[_0x2fe0('0xd')](){this[_0x2fe0('0xa')][_0x2fe0('0x3')][_0x2fe0('0x8')](()=>{const _0x573924=_0x136a19(Array[_0x2fe0('0xc')](this[_0x2fe0('0x6')]));for(const _0x8de885 of _0x573924)this['_acceptSuggestionCommand'][_0x2fe0('0xd')](_0x8de885['id']);});}}
23
+ const _0x541c=['refresh','change','_acceptSuggestionCommand','isEnabled','_selectedSuggestions','execute','model','editor','_suggestions','from','values'];(function(_0x86b0cc,_0x541c9c){const _0x26fae8=function(_0x408513){while(--_0x408513){_0x86b0cc['push'](_0x86b0cc['shift']());}};_0x26fae8(++_0x541c9c);}(_0x541c,0x87));const _0x26fa=function(_0x86b0cc,_0x541c9c){_0x86b0cc=_0x86b0cc-0x0;let _0x26fae8=_0x541c[_0x86b0cc];return _0x26fae8;};import{Command as _0x4ad9ce}from'ckeditor5/src/core';import _0x2aec14 from'../utils/sortsuggestions';import _0x3e4c41 from'../utils/getselectedsuggestions';export default class N extends _0x4ad9ce{constructor(_0x2b3e3e,_0xc14774,_0x1f4001){super(_0x2b3e3e),this[_0x26fa('0xa')]=_0xc14774,this[_0x26fa('0x5')]=_0x1f4001,this[_0x26fa('0x1')]=new Set(),this[_0x26fa('0x8')]();}[_0x26fa('0x8')](){const _0x1cbd88=this[_0x26fa('0xa')],_0x3b532c=this['editor'][_0x26fa('0x3')]['document']['selection'],_0x40da78=Array[_0x26fa('0x6')](this[_0x26fa('0x5')][_0x26fa('0x7')]());this[_0x26fa('0x1')]=_0x3e4c41(_0x3b532c,_0x40da78),this['isEnabled']=_0x1cbd88[_0x26fa('0x0')]&&!!this['_selectedSuggestions']['size'];}[_0x26fa('0x2')](){this[_0x26fa('0x4')][_0x26fa('0x3')][_0x26fa('0x9')](()=>{const _0xc53bfb=_0x2aec14(Array[_0x26fa('0x6')](this[_0x26fa('0x1')]));for(const _0x25e8be of _0xc53bfb)this[_0x26fa('0xa')][_0x26fa('0x2')](_0x25e8be['id']);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d8f=['refresh','isEnabled','get','TrackChangesEditing','acceptSuggestion','_suggestions','track-changes-accept-suggestion-not-found','plugins','execute'];(function(_0x49641c,_0x2d8f79){const _0x5cf288=function(_0x151059){while(--_0x151059){_0x49641c['push'](_0x49641c['shift']());}};_0x5cf288(++_0x2d8f79);}(_0x2d8f,0x198));const _0x5cf2=function(_0x49641c,_0x2d8f79){_0x49641c=_0x49641c-0x0;let _0x5cf288=_0x2d8f[_0x49641c];return _0x5cf288;};import{Command as _0xc11632}from'ckeditor5/src/core';import{CKEditorError as _0x54d2d1}from'ckeditor5/src/utils';export default class B extends _0xc11632{constructor(_0x33c86f,_0x4465dd){super(_0x33c86f),this[_0x5cf2('0x2')]=_0x4465dd,this['refresh']();}[_0x5cf2('0x6')](){this[_0x5cf2('0x7')]=!0x0;}[_0x5cf2('0x5')](_0x4ddcd4){const _0x36629a=this[_0x5cf2('0x2')]['get'](_0x4ddcd4);if(!_0x36629a)throw new _0x54d2d1(_0x5cf2('0x3'),this);this['editor'][_0x5cf2('0x4')][_0x5cf2('0x8')](_0x5cf2('0x0'))[_0x5cf2('0x1')](_0x36629a);}}
23
+ const _0xda1b=['get','TrackChangesEditing','execute','acceptSuggestion','track-changes-accept-suggestion-not-found','isEnabled','_suggestions','refresh','plugins'];(function(_0x4ac7cf,_0xda1ba4){const _0xa24b15=function(_0x54a30d){while(--_0x54a30d){_0x4ac7cf['push'](_0x4ac7cf['shift']());}};_0xa24b15(++_0xda1ba4);}(_0xda1b,0x19e));const _0xa24b=function(_0x4ac7cf,_0xda1ba4){_0x4ac7cf=_0x4ac7cf-0x0;let _0xa24b15=_0xda1b[_0x4ac7cf];return _0xa24b15;};import{Command as _0x290b78}from'ckeditor5/src/core';import{CKEditorError as _0x5382d4}from'ckeditor5/src/utils';export default class B extends _0x290b78{constructor(_0x447d1a,_0x51b606){super(_0x447d1a),this['_suggestions']=_0x51b606,this[_0xa24b('0x7')]();}[_0xa24b('0x7')](){this[_0xa24b('0x5')]=!0x0;}[_0xa24b('0x2')](_0x129157){const _0x131b1e=this[_0xa24b('0x6')][_0xa24b('0x0')](_0x129157);if(!_0x131b1e)throw new _0x5382d4(_0xa24b('0x4'),this);this['editor'][_0xa24b('0x8')][_0xa24b('0x0')](_0xa24b('0x1'))[_0xa24b('0x3')](_0x131b1e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b17=['some','from','editor','refresh','change','isEnabled','_suggestions','_discardSuggestionCommand','isInContent','values','execute'];(function(_0x25b82e,_0x5b1774){const _0xf3a840=function(_0x49a3a4){while(--_0x49a3a4){_0x25b82e['push'](_0x25b82e['shift']());}};_0xf3a840(++_0x5b1774);}(_0x5b17,0x102));const _0xf3a8=function(_0x25b82e,_0x5b1774){_0x25b82e=_0x25b82e-0x0;let _0xf3a840=_0x5b17[_0x25b82e];return _0xf3a840;};import{Command as _0x10f59c}from'ckeditor5/src/core';export default class R extends _0x10f59c{constructor(_0x2fa294,_0x41e76d,_0x5bab82){super(_0x2fa294),this[_0xf3a8('0x2')]=_0x41e76d,this[_0xf3a8('0x1')]=_0x5bab82,this[_0xf3a8('0x9')]();}['refresh'](){const _0x253e25=this[_0xf3a8('0x2')];this['isEnabled']=_0x253e25[_0xf3a8('0x0')]&&Array[_0xf3a8('0x7')](this['_suggestions'][_0xf3a8('0x4')]())[_0xf3a8('0x6')](_0x3dcef5=>_0x3dcef5[_0xf3a8('0x3')]);}['execute'](){this[_0xf3a8('0x8')]['model'][_0xf3a8('0xa')](()=>{for(const _0x183141 of this[_0xf3a8('0x1')][_0xf3a8('0x4')]())_0x183141[_0xf3a8('0x3')]&&this['_discardSuggestionCommand'][_0xf3a8('0x5')](_0x183141['id']);});}}
23
+ const _0x3f5e=['model','change','some','_suggestions','isEnabled','isInContent','refresh','_discardSuggestionCommand','values','editor','execute'];(function(_0x2239ee,_0x3f5e6b){const _0x5c4e42=function(_0xba76a0){while(--_0xba76a0){_0x2239ee['push'](_0x2239ee['shift']());}};_0x5c4e42(++_0x3f5e6b);}(_0x3f5e,0xf3));const _0x5c4e=function(_0x2239ee,_0x3f5e6b){_0x2239ee=_0x2239ee-0x0;let _0x5c4e42=_0x3f5e[_0x2239ee];return _0x5c4e42;};import{Command as _0x251253}from'ckeditor5/src/core';export default class R extends _0x251253{constructor(_0x496e04,_0x4b2fc3,_0x337870){super(_0x496e04),this[_0x5c4e('0x6')]=_0x4b2fc3,this[_0x5c4e('0x2')]=_0x337870,this[_0x5c4e('0x5')]();}[_0x5c4e('0x5')](){const _0x22a770=this[_0x5c4e('0x6')];this[_0x5c4e('0x3')]=_0x22a770[_0x5c4e('0x3')]&&Array['from'](this[_0x5c4e('0x2')][_0x5c4e('0x7')]())[_0x5c4e('0x1')](_0x31a20e=>_0x31a20e[_0x5c4e('0x4')]);}[_0x5c4e('0x9')](){this[_0x5c4e('0x8')][_0x5c4e('0xa')][_0x5c4e('0x0')](()=>{for(const _0x212dcb of this[_0x5c4e('0x2')][_0x5c4e('0x7')]())_0x212dcb[_0x5c4e('0x4')]&&this[_0x5c4e('0x6')]['execute'](_0x212dcb['id']);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x280f=['_discardSuggestionCommand','values','isEnabled','editor','_selectedSuggestions','model','refresh','change','size','from','_suggestions','execute'];(function(_0x64148c,_0x280f63){const _0x33ffba=function(_0x4416db){while(--_0x4416db){_0x64148c['push'](_0x64148c['shift']());}};_0x33ffba(++_0x280f63);}(_0x280f,0x7e));const _0x33ff=function(_0x64148c,_0x280f63){_0x64148c=_0x64148c-0x0;let _0x33ffba=_0x280f[_0x64148c];return _0x33ffba;};import{Command as _0x2e9050}from'ckeditor5/src/core';import _0x24127a from'../utils/getselectedsuggestions';export default class j extends _0x2e9050{constructor(_0x1b085f,_0x3a5c4c,_0x1ed7a8){super(_0x1b085f),this[_0x33ff('0x6')]=_0x3a5c4c,this[_0x33ff('0x4')]=_0x1ed7a8,this['_selectedSuggestions']=new Set(),this['refresh']();}[_0x33ff('0x0')](){const _0x424d55=this['_discardSuggestionCommand'],_0x41817d=this[_0x33ff('0x9')][_0x33ff('0xb')]['document']['selection'],_0x41455e=Array[_0x33ff('0x3')](this[_0x33ff('0x4')][_0x33ff('0x7')]());this[_0x33ff('0xa')]=_0x24127a(_0x41817d,_0x41455e),this[_0x33ff('0x8')]=_0x424d55['isEnabled']&&!!this[_0x33ff('0xa')][_0x33ff('0x2')];}[_0x33ff('0x5')](){this[_0x33ff('0x9')][_0x33ff('0xb')][_0x33ff('0x1')](()=>{for(const _0x43dd86 of this[_0x33ff('0xa')])this[_0x33ff('0x6')][_0x33ff('0x5')](_0x43dd86['id']);});}}
23
+ const _0x3f70=['from','editor','model','_discardSuggestionCommand','_selectedSuggestions','refresh','_suggestions','isEnabled','selection','document','values','size','execute'];(function(_0x1f2de6,_0x3f7091){const _0x4529f2=function(_0x36e3bf){while(--_0x36e3bf){_0x1f2de6['push'](_0x1f2de6['shift']());}};_0x4529f2(++_0x3f7091);}(_0x3f70,0xe7));const _0x4529=function(_0x1f2de6,_0x3f7091){_0x1f2de6=_0x1f2de6-0x0;let _0x4529f2=_0x3f70[_0x1f2de6];return _0x4529f2;};import{Command as _0x23c23b}from'ckeditor5/src/core';import _0x356cd1 from'../utils/getselectedsuggestions';export default class j extends _0x23c23b{constructor(_0x5af174,_0x1c7e1f,_0x51b2fc){super(_0x5af174),this[_0x4529('0x6')]=_0x1c7e1f,this[_0x4529('0x9')]=_0x51b2fc,this[_0x4529('0x7')]=new Set(),this[_0x4529('0x8')]();}[_0x4529('0x8')](){const _0x3b29ca=this[_0x4529('0x6')],_0x36f17d=this[_0x4529('0x4')][_0x4529('0x5')][_0x4529('0xc')][_0x4529('0xb')],_0x1ce34f=Array[_0x4529('0x3')](this[_0x4529('0x9')][_0x4529('0x0')]());this[_0x4529('0x7')]=_0x356cd1(_0x36f17d,_0x1ce34f),this['isEnabled']=_0x3b29ca[_0x4529('0xa')]&&!!this[_0x4529('0x7')][_0x4529('0x1')];}[_0x4529('0x2')](){this['editor'][_0x4529('0x5')]['change'](()=>{for(const _0x2c9648 of this[_0x4529('0x7')])this[_0x4529('0x6')][_0x4529('0x2')](_0x2c9648['id']);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c86=['refresh','discardSuggestion','get','_suggestions','plugins','TrackChangesEditing','isEnabled'];(function(_0x2a0d9c,_0x1c8650){const _0x4e75b1=function(_0x2b35bf){while(--_0x2b35bf){_0x2a0d9c['push'](_0x2a0d9c['shift']());}};_0x4e75b1(++_0x1c8650);}(_0x1c86,0x114));const _0x4e75=function(_0x2a0d9c,_0x1c8650){_0x2a0d9c=_0x2a0d9c-0x0;let _0x4e75b1=_0x1c86[_0x2a0d9c];return _0x4e75b1;};import{Command as _0x4fabf3}from'ckeditor5/src/core';import{CKEditorError as _0x56aee5}from'ckeditor5/src/utils';export default class M extends _0x4fabf3{constructor(_0x8259d0,_0x44652b){super(_0x8259d0),this[_0x4e75('0x0')]=_0x44652b,this[_0x4e75('0x4')]();}[_0x4e75('0x4')](){this[_0x4e75('0x3')]=!0x0;}['execute'](_0x4d3fdd){const _0x48e5cd=this[_0x4e75('0x0')][_0x4e75('0x6')](_0x4d3fdd);if(!_0x48e5cd)throw new _0x56aee5('track-changes-discard-suggestion-not-found',this);this['editor'][_0x4e75('0x1')][_0x4e75('0x6')](_0x4e75('0x2'))[_0x4e75('0x5')](_0x48e5cd);}}
23
+ const _0x5772=['track-changes-discard-suggestion-not-found','isEnabled','execute','plugins','get','_suggestions','TrackChangesEditing','refresh'];(function(_0xf5d6e8,_0x57722d){const _0x5ef4fe=function(_0x1b3f1a){while(--_0x1b3f1a){_0xf5d6e8['push'](_0xf5d6e8['shift']());}};_0x5ef4fe(++_0x57722d);}(_0x5772,0xa4));const _0x5ef4=function(_0xf5d6e8,_0x57722d){_0xf5d6e8=_0xf5d6e8-0x0;let _0x5ef4fe=_0x5772[_0xf5d6e8];return _0x5ef4fe;};import{Command as _0x411890}from'ckeditor5/src/core';import{CKEditorError as _0x3348f0}from'ckeditor5/src/utils';export default class M extends _0x411890{constructor(_0x5d43d7,_0x216996){super(_0x5d43d7),this[_0x5ef4('0x1')]=_0x216996,this['refresh']();}[_0x5ef4('0x3')](){this[_0x5ef4('0x5')]=!0x0;}[_0x5ef4('0x6')](_0x5db06e){const _0x2b7bb1=this[_0x5ef4('0x1')][_0x5ef4('0x0')](_0x5db06e);if(!_0x2b7bb1)throw new _0x3348f0(_0x5ef4('0x4'),this);this['editor'][_0x5ef4('0x7')]['get'](_0x5ef4('0x2'))['discardSuggestion'](_0x2b7bb1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x985a=['affectsData','refresh','_enabledCommands','value','forceDisabled','execute','TrackChangesCommand','isEnabled','_disableUnsupportedCommands','commands','editor','has'];(function(_0xa389ce,_0x985ac6){const _0x5df925=function(_0x48c39b){while(--_0x48c39b){_0xa389ce['push'](_0xa389ce['shift']());}};_0x5df925(++_0x985ac6);}(_0x985a,0x8e));const _0x5df9=function(_0xa389ce,_0x985ac6){_0xa389ce=_0xa389ce-0x0;let _0x5df925=_0x985a[_0xa389ce];return _0x5df925;};import{Command as _0x22a5de}from'ckeditor5/src/core';export default class _ extends _0x22a5de{constructor(_0x55d65c,_0x38cb17){super(_0x55d65c),this[_0x5df9('0x4')]=_0x38cb17,this['value']=!0x1,this['refresh']();}[_0x5df9('0x3')](){this[_0x5df9('0x9')]=!0x0;}[_0x5df9('0x7')](){this['value']=!this[_0x5df9('0x5')],this['value']?this[_0x5df9('0xa')]():this['_enableCommands']();}[_0x5df9('0xa')](){for(const _0x4a62a4 of this[_0x5df9('0x0')]['commands'][_0x5df9('0xb')]())_0x4a62a4[_0x5df9('0x2')]&&!this[_0x5df9('0x4')][_0x5df9('0x1')](_0x4a62a4)&&_0x4a62a4[_0x5df9('0x6')](_0x5df9('0x8'));}['_enableCommands'](){for(const _0x5f49ab of this[_0x5df9('0x0')][_0x5df9('0xb')][_0x5df9('0xb')]())_0x5f49ab[_0x5df9('0x2')]&&!this[_0x5df9('0x4')][_0x5df9('0x1')](_0x5f49ab)&&_0x5f49ab['clearForceDisabled']('TrackChangesCommand');}}
23
+ const _0x1b31=['execute','value','_enabledCommands','clearForceDisabled','isEnabled','refresh','has','editor','_disableUnsupportedCommands','affectsData','forceDisabled','commands','TrackChangesCommand','_enableCommands'];(function(_0x20251b,_0x1b31c7){const _0xcd56c2=function(_0x1b275e){while(--_0x1b275e){_0x20251b['push'](_0x20251b['shift']());}};_0xcd56c2(++_0x1b31c7);}(_0x1b31,0xeb));const _0xcd56=function(_0x20251b,_0x1b31c7){_0x20251b=_0x20251b-0x0;let _0xcd56c2=_0x1b31[_0x20251b];return _0xcd56c2;};import{Command as _0x1e8d67}from'ckeditor5/src/core';export default class _ extends _0x1e8d67{constructor(_0x1b5428,_0x5ed5b0){super(_0x1b5428),this[_0xcd56('0x5')]=_0x5ed5b0,this[_0xcd56('0x4')]=!0x1,this[_0xcd56('0x8')]();}[_0xcd56('0x8')](){this[_0xcd56('0x7')]=!0x0;}[_0xcd56('0x3')](){this[_0xcd56('0x4')]=!this[_0xcd56('0x4')],this[_0xcd56('0x4')]?this[_0xcd56('0xb')]():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x216daf of this[_0xcd56('0xa')][_0xcd56('0x0')][_0xcd56('0x0')]())_0x216daf[_0xcd56('0xc')]&&!this[_0xcd56('0x5')][_0xcd56('0x9')](_0x216daf)&&_0x216daf[_0xcd56('0xd')](_0xcd56('0x1'));}[_0xcd56('0x2')](){for(const _0x22fa9d of this[_0xcd56('0xa')][_0xcd56('0x0')][_0xcd56('0x0')]())_0x22fa9d[_0xcd56('0xc')]&&!this[_0xcd56('0x5')][_0xcd56('0x9')](_0x22fa9d)&&_0x22fa9d[_0xcd56('0x6')](_0xcd56('0x1'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x26505d}from'ckeditor5/src/core';export default class U extends _0x26505d{['afterInit'](){const _0x3ecd8a=this['editor'],{t:t}=_0x3ecd8a['locale'];if(!_0x3ecd8a['plugins']['has']('AlignmentEditing'))return;const _0x28d630=_0x3ecd8a['plugins']['get']('TrackChangesEditing');_0x28d630['enableCommand']('alignment',(_0x411fab,_0x5acaf3={})=>{let _0x370255=_0x5acaf3['value'];_0x5acaf3['value']||(_0x370255='ltr'===_0x3ecd8a['locale']['contentLanguageDirection']?'left':'right');const _0x10df93=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4d64c0=>function(_0x2345a1,_0x18dfd2,_0x3230e7){const _0x21c14=_0x2345a1['getAttribute']('alignment')||null;return _0x18dfd2['checkAttribute'](_0x2345a1,'alignment')&&_0x3230e7!=_0x21c14;}(_0x4d64c0,this['editor']['model']['schema'],_0x370255));_0x3ecd8a['model']['change'](()=>{for(const _0x39f751 of _0x10df93)_0x28d630['markBlockFormat'](_0x39f751,{'commandName':'alignment','commandParams':[{'value':_0x370255}]});});}),_0x28d630['_descriptionFactory']['registerDescriptionCallback'](_0x458dea=>{const {data:_0x1b1cb2}=_0x458dea;if(_0x1b1cb2&&'alignment'==_0x1b1cb2['commandName']){const _0x52da6f=_0x1b1cb2['commandParams'][0x0]['value'];return{'type':'format','content':t('*Format:*\x20%0',function(_0x19de5a){switch(_0x19de5a){case'left':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'right':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'center':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'justify':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});}}(_0x52da6f))};}});}}
23
+ import{Plugin as _0x505cc2}from'ckeditor5/src/core';export default class U extends _0x505cc2{['afterInit'](){const _0x43c806=this['editor'],{t:t}=_0x43c806['locale'];if(!_0x43c806['plugins']['has']('AlignmentEditing'))return;const _0x1ae20f=_0x43c806['plugins']['get']('TrackChangesEditing');_0x1ae20f['enableCommand']('alignment',(_0x561a24,_0x4c6bff={})=>{let _0x507ddd=_0x4c6bff['value'];_0x4c6bff['value']||(_0x507ddd='ltr'===_0x43c806['locale']['contentLanguageDirection']?'left':'right');const _0x5ce26e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x35ff8e=>function(_0x3c9d5b,_0x4e5083,_0x598d44){const _0x12d3ec=_0x3c9d5b['getAttribute']('alignment')||null;return _0x4e5083['checkAttribute'](_0x3c9d5b,'alignment')&&_0x598d44!=_0x12d3ec;}(_0x35ff8e,this['editor']['model']['schema'],_0x507ddd));_0x43c806['model']['change'](()=>{for(const _0x1fac80 of _0x5ce26e)_0x1ae20f['markBlockFormat'](_0x1fac80,{'commandName':'alignment','commandParams':[{'value':_0x507ddd}]});});}),_0x1ae20f['_descriptionFactory']['registerDescriptionCallback'](_0x11b3e5=>{const {data:_0x277982}=_0x11b3e5;if(_0x277982&&'alignment'==_0x277982['commandName']){const _0x5d7130=_0x277982['commandParams'][0x0]['value'];return{'type':'format','content':t('*Format:*\x20%0',function(_0x46385d){switch(_0x46385d){case'left':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'right':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'center':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'justify':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});}}(_0x5d7130))};}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3f1968}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';const Ot=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];export default class E extends _0x3f1968{['afterInit'](){const _0x578655=this['editor'],_0x2a1c60=_0x578655['model'],_0x32b654=_0x578655['plugins']['get']('TrackChangesEditing'),{t:t}=_0x578655['locale'];for(const _0x1ad341 of Ot){if(!_0x578655['plugins']['has'](_0x1ad341))continue;const _0x2cddcc=_0x1ad341['slice'](0x0,-0x7)['toLowerCase'](),_0x298bef=_0x578655['commands']['get'](_0x2cddcc);_0x32b654['enableCommand'](_0x2cddcc,(_0x5b437d,_0x3dcd31={})=>{const _0x4cf1fc=_0x2a1c60['document']['selection'];if(_0x4cf1fc['isCollapsed'])return void _0x5b437d(_0x3dcd31);const _0x4b15ca=void 0x0!==_0x3dcd31['forceValue']?_0x3dcd31['forceValue']:!_0x298bef['value'];_0x2a1c60['change'](()=>{const _0x5b97d9=Array['from'](_0x4cf1fc['getRanges']());for(const _0x5b849a of _0x5b97d9){const _0x5c6476=_0x4b15ca?[_0x5b849a]:Rt(_0x2cddcc,_0x5b849a,_0x2a1c60);for(const _0x36ca9c of _0x5c6476)_0x32b654['markInlineFormat'](_0x36ca9c,{'commandName':_0x2cddcc,'commandParams':[{'forceValue':_0x4b15ca}]});}});});}function _0x157963(_0x2d60e4,_0x2ac854){_0x32b654['_descriptionFactory']['registerDescriptionCallback'](_0x39a668=>{const {data:_0x210f95}=_0x39a668;if(_0x210f95&&_0x210f95['commandName']===_0x2d60e4)return _0x210f95['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0x2ac854)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0x2ac854)};});}_0x157963('bold',t({'string':'bold','id':'FORMAT_BOLD'})),_0x157963('italic',t({'string':'italic','id':'FORMAT_ITALIC'})),_0x157963('underline',t({'string':'underline','id':'FORMAT_UNDERLINE'})),_0x157963('code',t({'string':'code','id':'FORMAT_CODE'})),_0x157963('strikethrough',t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'})),_0x157963('subscript',t({'string':'subscript','id':'FORMAT_SUBSCRIPT'})),_0x157963('superscript',t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'}));}}
23
+ import{Plugin as _0x30f407}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';const Ot=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];export default class E extends _0x30f407{['afterInit'](){const _0x1169cd=this['editor'],_0x102c3e=_0x1169cd['model'],_0x10650a=_0x1169cd['plugins']['get']('TrackChangesEditing'),{t:t}=_0x1169cd['locale'];for(const _0x10d3de of Ot){if(!_0x1169cd['plugins']['has'](_0x10d3de))continue;const _0x52d362=_0x10d3de['slice'](0x0,-0x7)['toLowerCase'](),_0x352ea9=_0x1169cd['commands']['get'](_0x52d362);_0x10650a['enableCommand'](_0x52d362,(_0xb56f15,_0x40976c={})=>{const _0x9865b6=_0x102c3e['document']['selection'];if(_0x9865b6['isCollapsed'])return void _0xb56f15(_0x40976c);const _0x3733d0=void 0x0!==_0x40976c['forceValue']?_0x40976c['forceValue']:!_0x352ea9['value'];_0x102c3e['change'](()=>{const _0x2282dc=Array['from'](_0x9865b6['getRanges']());for(const _0x3b1ca0 of _0x2282dc){const _0x2bd47e=_0x3733d0?[_0x3b1ca0]:Rt(_0x52d362,_0x3b1ca0,_0x102c3e);for(const _0x488284 of _0x2bd47e)_0x10650a['markInlineFormat'](_0x488284,{'commandName':_0x52d362,'commandParams':[{'forceValue':_0x3733d0}]});}});});}function _0x2bca21(_0x320e79,_0x16eb0f){_0x10650a['_descriptionFactory']['registerDescriptionCallback'](_0x1b79f4=>{const {data:_0x288ce4}=_0x1b79f4;if(_0x288ce4&&_0x288ce4['commandName']===_0x320e79)return _0x288ce4['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0x16eb0f)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0x16eb0f)};});}_0x2bca21('bold',t({'string':'bold','id':'FORMAT_BOLD'})),_0x2bca21('italic',t({'string':'italic','id':'FORMAT_ITALIC'})),_0x2bca21('underline',t({'string':'underline','id':'FORMAT_UNDERLINE'})),_0x2bca21('code',t({'string':'code','id':'FORMAT_CODE'})),_0x2bca21('strikethrough',t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'})),_0x2bca21('subscript',t({'string':'subscript','id':'FORMAT_SUBSCRIPT'})),_0x2bca21('superscript',t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x29bed9}from'ckeditor5/src/core';import{TreeWalker as Qt}from'ckeditor5/src/engine';export default class x extends _0x29bed9{['afterInit'](){const _0x3cad1e=this['editor'],{t:t}=_0x3cad1e['locale'];if(!_0x3cad1e['plugins']['has']('BlockQuoteEditing'))return;const _0x35bf66=_0x3cad1e['plugins']['get']('TrackChangesEditing'),_0x3ef524=this['editor']['commands']['get']('blockQuote');_0x35bf66['enableCommand']('blockQuote',(_0x294c90,_0x154ef2={})=>{const _0xd0731a=this['editor']['model']['document']['selection'],_0x224354=_0x154ef2&&void 0x0!==_0x154ef2['forceValue']?_0x154ef2['forceValue']:!_0x3ef524['value'];let _0x151b87=[];if(_0x224354){const _0x1116d9=Array['from'](_0xd0731a['getSelectedBlocks']())['filter'](_0x47fa7b=>Bt(_0x47fa7b)||function(_0x583422,_0x20dca7){const _0x162f36=_0x20dca7['checkChild'](_0x583422['parent'],'blockQuote'),_0x35bc4f=_0x20dca7['checkChild'](['$root','blockQuote'],_0x583422);return _0x162f36&&_0x35bc4f;}(_0x47fa7b,this['editor']['model']['schema']));_0x151b87=Lt(_0x1116d9,_0x3cad1e['model']);}else{const _0x3b89d4=Array['from'](_0xd0731a['getSelectedBlocks']())['filter'](_0x1ba52a=>Bt(_0x1ba52a));_0x151b87=Lt(_0x3b89d4,_0x3cad1e['model']);}_0x3cad1e['model']['change'](()=>{for(const _0x13f343 of _0x151b87)_0x35bf66['markBlockFormat'](_0x13f343,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x224354}]});});}),_0x35bf66['_descriptionFactory']['registerDescriptionCallback'](_0x55b8d5=>{const {data:_0xa2cd1f}=_0x55b8d5;if(_0xa2cd1f&&'blockQuote'==_0xa2cd1f['commandName']){const _0x514a91=t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});return _0xa2cd1f['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0x514a91)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0x514a91)};}});}}function Bt(_0x54d626){return'blockQuote'==_0x54d626['parent']['name'];}function Lt(_0x282a0b,_0x378c85){let _0x1becb3,_0x509885=0x0;const _0xe23400=[],_0x5050d0=_0x378c85['schema'];for(;_0x509885<_0x282a0b['length'];){const _0x1e1015=_0x282a0b[_0x509885],_0x505ac1=_0x282a0b[_0x509885+0x1];_0x1becb3||(_0x1becb3=_0x378c85['createPositionBefore'](_0x1e1015)),_t(_0x378c85,_0x1e1015,_0x505ac1)||(_0xe23400['push'](_0x378c85['createRange'](_0x1becb3,_0x5050d0['isObject'](_0x1e1015)?_0x378c85['createPositionAfter'](_0x1e1015):_0x378c85['createPositionAt'](_0x1e1015,'end'))),_0x1becb3=null),_0x509885++;}return _0xe23400;}function _t(_0x31894d,_0x48925e,_0x83c14d){if(!_0x83c14d)return!0x1;const _0x445ff0=_0x31894d['createPositionAfter'](_0x48925e),_0x3696d1=_0x31894d['createPositionBefore'](_0x83c14d),_0x263b4f=new Qt({'boundaries':_0x31894d['createRange'](_0x445ff0,_0x3696d1)});for(const _0x407d15 of _0x263b4f)if('text'==_0x407d15['type']||_0x31894d['schema']['isLimit'](_0x407d15['item']))return!0x1;return!0x0;}
23
+ import{Plugin as _0x295c39}from'ckeditor5/src/core';import{TreeWalker as Qt}from'ckeditor5/src/engine';export default class x extends _0x295c39{['afterInit'](){const _0x4be724=this['editor'],{t:t}=_0x4be724['locale'];if(!_0x4be724['plugins']['has']('BlockQuoteEditing'))return;const _0x2b6305=_0x4be724['plugins']['get']('TrackChangesEditing'),_0x158426=this['editor']['commands']['get']('blockQuote');_0x2b6305['enableCommand']('blockQuote',(_0x5077c5,_0x2c151={})=>{const _0x15a710=this['editor']['model']['document']['selection'],_0x108cc1=_0x2c151&&void 0x0!==_0x2c151['forceValue']?_0x2c151['forceValue']:!_0x158426['value'];let _0x4bdfc6=[];if(_0x108cc1){const _0x37c09a=Array['from'](_0x15a710['getSelectedBlocks']())['filter'](_0x4a3514=>Bt(_0x4a3514)||function(_0x101434,_0x14a6bf){const _0x3ade75=_0x14a6bf['checkChild'](_0x101434['parent'],'blockQuote'),_0x416f4e=_0x14a6bf['checkChild'](['$root','blockQuote'],_0x101434);return _0x3ade75&&_0x416f4e;}(_0x4a3514,this['editor']['model']['schema']));_0x4bdfc6=Lt(_0x37c09a,_0x4be724['model']);}else{const _0x13a703=Array['from'](_0x15a710['getSelectedBlocks']())['filter'](_0x182719=>Bt(_0x182719));_0x4bdfc6=Lt(_0x13a703,_0x4be724['model']);}_0x4be724['model']['change'](()=>{for(const _0x40bc3b of _0x4bdfc6)_0x2b6305['markBlockFormat'](_0x40bc3b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x108cc1}]});});}),_0x2b6305['_descriptionFactory']['registerDescriptionCallback'](_0x17cadf=>{const {data:_0x48735e}=_0x17cadf;if(_0x48735e&&'blockQuote'==_0x48735e['commandName']){const _0xd3373d=t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});return _0x48735e['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0xd3373d)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0xd3373d)};}});}}function Bt(_0x1e4fa6){return'blockQuote'==_0x1e4fa6['parent']['name'];}function Lt(_0x86b049,_0x445919){let _0x51ca46,_0x24c77e=0x0;const _0x24e5eb=[],_0x261b09=_0x445919['schema'];for(;_0x24c77e<_0x86b049['length'];){const _0x110c53=_0x86b049[_0x24c77e],_0x26fbdc=_0x86b049[_0x24c77e+0x1];_0x51ca46||(_0x51ca46=_0x445919['createPositionBefore'](_0x110c53)),_t(_0x445919,_0x110c53,_0x26fbdc)||(_0x24e5eb['push'](_0x445919['createRange'](_0x51ca46,_0x261b09['isObject'](_0x110c53)?_0x445919['createPositionAfter'](_0x110c53):_0x445919['createPositionAt'](_0x110c53,'end'))),_0x51ca46=null),_0x24c77e++;}return _0x24e5eb;}function _t(_0x55567a,_0x13f619,_0x432c98){if(!_0x432c98)return!0x1;const _0x1e8dd3=_0x55567a['createPositionAfter'](_0x13f619),_0x419918=_0x55567a['createPositionBefore'](_0x432c98),_0x535ed6=new Qt({'boundaries':_0x55567a['createRange'](_0x1e8dd3,_0x419918)});for(const _0x450064 of _0x535ed6)if('text'==_0x450064['type']||_0x55567a['schema']['isLimit'](_0x450064['item']))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x2f12c8}from'ckeditor5/src/core';export default class O extends _0x2f12c8{['afterInit'](){const _0x19f6bb=this['editor'],{t:t}=_0x19f6bb['locale'];if(!_0x19f6bb['plugins']['has']('CodeBlock'))return;_0x19f6bb['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerElementLabel']('codeBlock',_0x4a06d5=>t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x4a06d5));}}
23
+ import{Plugin as _0x4c07e4}from'ckeditor5/src/core';export default class O extends _0x4c07e4{['afterInit'](){const _0x2685f5=this['editor'],{t:t}=_0x2685f5['locale'];if(!_0x2685f5['plugins']['has']('CodeBlock'))return;_0x2685f5['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerElementLabel']('codeBlock',_0x2c7a83=>t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x2c7a83));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x16cd=['enableCommand','get','requires','addCommentThread','editor','init','TrackChangesEditing'];(function(_0x119371,_0x16cd1c){var _0x389455=function(_0x3a44d3){while(--_0x3a44d3){_0x119371['push'](_0x119371['shift']());}};_0x389455(++_0x16cd1c);}(_0x16cd,0xad));var _0x3894=function(_0x119371,_0x16cd1c){_0x119371=_0x119371-0x0;var _0x389455=_0x16cd[_0x119371];return _0x389455;};import{Plugin as _0x297c8c}from'ckeditor5/src/core';export default class P extends _0x297c8c{static get[_0x3894('0x4')](){return['CommentsEditing'];}[_0x3894('0x0')](){this[_0x3894('0x6')]['plugins'][_0x3894('0x3')](_0x3894('0x1'))[_0x3894('0x2')](_0x3894('0x5'));}}
23
+ var _0x4b3a=['enableCommand','CommentsEditing','get','plugins','requires','editor','addCommentThread','TrackChangesEditing'];(function(_0x16b15d,_0x4b3a5a){var _0x2fcfee=function(_0x150096){while(--_0x150096){_0x16b15d['push'](_0x16b15d['shift']());}};_0x2fcfee(++_0x4b3a5a);}(_0x4b3a,0xc3));var _0x2fcf=function(_0x16b15d,_0x4b3a5a){_0x16b15d=_0x16b15d-0x0;var _0x2fcfee=_0x4b3a[_0x16b15d];return _0x2fcfee;};import{Plugin as _0x259ece}from'ckeditor5/src/core';export default class P extends _0x259ece{static get[_0x2fcf('0x1')](){return[_0x2fcf('0x6')];}['init'](){this[_0x2fcf('0x2')][_0x2fcf('0x0')][_0x2fcf('0x7')](_0x2fcf('0x4'))[_0x2fcf('0x5')](_0x2fcf('0x3'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c6a=['unbindElementFromMarkerName','markerName','downcastDispatcher','requires','lock','buffer','init','plugins','editing','rootName','writer','forward','createRange','batch','end','high','fromRange','start','detach','addMarker:suggestion:deletion','showSuggestionHighlights','unit','editor','getFirstRange','isCollapsed','selection','mapper','document','remove','merge','root','removeMarker:suggestion:deletion','unlock','enableCommand','setSelection','get','$graveyard','deleteForward','data','modifySelection','createSelection','model','uiElement','markerNameToElements','enqueueChange','options'];(function(_0x16db12,_0x2c6a51){const _0x5822ba=function(_0x259161){while(--_0x259161){_0x16db12['push'](_0x16db12['shift']());}};_0x5822ba(++_0x2c6a51);}(_0x2c6a,0xc4));const _0x5822=function(_0x16db12,_0x2c6a51){_0x16db12=_0x16db12-0x0;let _0x5822ba=_0x2c6a[_0x16db12];return _0x5822ba;};import{Plugin as _0x37dc66}from'ckeditor5/src/core';import{Delete as _0x2702b5}from'ckeditor5/src/typing';import{LiveRange as _0x86030c}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x407845}from'./utils';export default class G extends _0x37dc66{static get[_0x5822('0x25')](){return[_0x2702b5];}[_0x5822('0x28')](){const _0x26468b=this[_0x5822('0xa')],_0x2b5293=_0x26468b[_0x5822('0x29')][_0x5822('0x17')]('TrackChangesEditing');_0x2b5293[_0x5822('0x15')]('delete');const _0x574211=_0x26468b['commands'][_0x5822('0x17')](_0x5822('0x19'));_0x2b5293['enableCommand'](_0x5822('0x19'),(_0x44f063,_0x5aac0b={})=>{const _0xef97a2=_0x26468b[_0x5822('0x1d')][_0x5822('0x1c')](_0x26468b['model'][_0x5822('0xf')][_0x5822('0xd')]);_0xef97a2[_0x5822('0xc')]&&_0x26468b['model'][_0x5822('0x1b')](_0xef97a2,{'direction':_0x5822('0x2d'),'unit':_0x5aac0b[_0x5822('0x9')]});const _0x4b65e8=_0xef97a2[_0x5822('0xb')](),_0x4d5b6c=_0x86030c[_0x5822('0x4')](_0x4b65e8);let _0x432e11;_0x44f063(_0x5aac0b),_0x432e11=_0x5822('0x18')==_0x4d5b6c[_0x5822('0x12')][_0x5822('0x2b')]?_0x26468b[_0x5822('0x1d')][_0x5822('0x0')](_0x4b65e8['start']):_0x26468b['model'][_0x5822('0x0')](_0x4d5b6c[_0x5822('0x5')],_0x4d5b6c[_0x5822('0x2')]),_0x4d5b6c[_0x5822('0x6')](),_0x26468b[_0x5822('0x1d')][_0x5822('0x20')](_0x574211['buffer'][_0x5822('0x1')],_0x16c979=>{_0x574211[_0x5822('0x27')][_0x5822('0x26')](),_0x16c979[_0x5822('0x16')](_0x16c979['createRange'](_0x432e11[_0x5822('0x2')])),_0x574211['buffer'][_0x5822('0x14')]();});}),_0x26468b[_0x5822('0x2a')][_0x5822('0x24')]['on'](_0x5822('0x7'),_0x407845(_0x26468b,_0x5822('0x11')),{'priority':_0x5822('0x3')}),_0x26468b[_0x5822('0x1a')][_0x5822('0x24')]['on'](_0x5822('0x7'),(_0x3db04d,_0x19b978,_0x1dab84)=>{_0x1dab84[_0x5822('0x21')][_0x5822('0x8')]&&_0x407845(_0x26468b,_0x5822('0x11'),{'showActiveMarker':!0x1})(_0x3db04d,_0x19b978,_0x1dab84);},{'priority':'high'}),_0x26468b[_0x5822('0x2a')][_0x5822('0x24')]['on'](_0x5822('0x13'),(_0x27eaf5,_0x20cad6,_0x23844c)=>{const _0x50f598=_0x23844c[_0x5822('0xe')][_0x5822('0x1f')](_0x20cad6[_0x5822('0x23')]);if(_0x50f598)for(const _0x5ce137 of _0x50f598)_0x5ce137['is'](_0x5822('0x1e'))&&(_0x23844c['mapper'][_0x5822('0x22')](_0x5ce137,_0x20cad6[_0x5822('0x23')]),_0x23844c[_0x5822('0x2c')][_0x5822('0x10')](_0x5ce137));},{'priority':_0x5822('0x3')});}}
23
+ const _0x3eef=['document','model','init','unlock','high','writer','addMarker:suggestion:deletion','mapper','start','get','markerNameToElements','forward','plugins','createSelection','setSelection','editing','fromRange','buffer','deleteForward','createRange','downcastDispatcher','detach','markerName','$graveyard','delete','removeMarker:suggestion:deletion','enableCommand','selection','batch','modifySelection','lock','getFirstRange','requires','data','options','end','unbindElementFromMarkerName','merge','uiElement'];(function(_0x1a57d0,_0x3eef2c){const _0xb2788e=function(_0x3360ea){while(--_0x3360ea){_0x1a57d0['push'](_0x1a57d0['shift']());}};_0xb2788e(++_0x3eef2c);}(_0x3eef,0xd2));const _0xb278=function(_0x1a57d0,_0x3eef2c){_0x1a57d0=_0x1a57d0-0x0;let _0xb2788e=_0x3eef[_0x1a57d0];return _0xb2788e;};import{Plugin as _0x4be9ac}from'ckeditor5/src/core';import{Delete as _0x4d83dd}from'ckeditor5/src/typing';import{LiveRange as _0x444834}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x2271c2}from'./utils';export default class G extends _0x4be9ac{static get[_0xb278('0x11')](){return[_0x4d83dd];}[_0xb278('0x1a')](){const _0x2ca1e4=this['editor'],_0x3594a2=_0x2ca1e4[_0xb278('0x24')][_0xb278('0x21')]('TrackChangesEditing');_0x3594a2[_0xb278('0xb')](_0xb278('0x9'));const _0xaf4790=_0x2ca1e4['commands'][_0xb278('0x21')]('deleteForward');_0x3594a2[_0xb278('0xb')](_0xb278('0x3'),(_0x43864f,_0x5742aa={})=>{const _0x256a0c=_0x2ca1e4[_0xb278('0x19')][_0xb278('0x25')](_0x2ca1e4[_0xb278('0x19')][_0xb278('0x18')][_0xb278('0xc')]);_0x256a0c['isCollapsed']&&_0x2ca1e4['model'][_0xb278('0xe')](_0x256a0c,{'direction':_0xb278('0x23'),'unit':_0x5742aa['unit']});const _0x3c34ce=_0x256a0c[_0xb278('0x10')](),_0x282daa=_0x444834[_0xb278('0x1')](_0x3c34ce);let _0x24fe25;_0x43864f(_0x5742aa),_0x24fe25=_0xb278('0x8')==_0x282daa['root']['rootName']?_0x2ca1e4['model'][_0xb278('0x4')](_0x3c34ce['start']):_0x2ca1e4[_0xb278('0x19')]['createRange'](_0x282daa[_0xb278('0x20')],_0x282daa[_0xb278('0x14')]),_0x282daa[_0xb278('0x6')](),_0x2ca1e4[_0xb278('0x19')]['enqueueChange'](_0xaf4790[_0xb278('0x2')][_0xb278('0xd')],_0x1d1a51=>{_0xaf4790[_0xb278('0x2')][_0xb278('0xf')](),_0x1d1a51[_0xb278('0x26')](_0x1d1a51[_0xb278('0x4')](_0x24fe25[_0xb278('0x14')])),_0xaf4790['buffer'][_0xb278('0x1b')]();});}),_0x2ca1e4[_0xb278('0x0')][_0xb278('0x5')]['on'](_0xb278('0x1e'),_0x2271c2(_0x2ca1e4,_0xb278('0x16')),{'priority':'high'}),_0x2ca1e4[_0xb278('0x12')][_0xb278('0x5')]['on']('addMarker:suggestion:deletion',(_0xfe8f79,_0x55bdbf,_0x391b72)=>{_0x391b72[_0xb278('0x13')]['showSuggestionHighlights']&&_0x2271c2(_0x2ca1e4,_0xb278('0x16'),{'showActiveMarker':!0x1})(_0xfe8f79,_0x55bdbf,_0x391b72);},{'priority':'high'}),_0x2ca1e4[_0xb278('0x0')]['downcastDispatcher']['on'](_0xb278('0xa'),(_0x4219ee,_0x4e1e51,_0x370d8f)=>{const _0x5c591e=_0x370d8f[_0xb278('0x1f')][_0xb278('0x22')](_0x4e1e51[_0xb278('0x7')]);if(_0x5c591e)for(const _0x1929a4 of _0x5c591e)_0x1929a4['is'](_0xb278('0x17'))&&(_0x370d8f['mapper'][_0xb278('0x15')](_0x1929a4,_0x4e1e51[_0xb278('0x7')]),_0x370d8f[_0xb278('0x1d')]['remove'](_0x1929a4));},{'priority':_0xb278('0x1c')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3554=['selection','split','ck-suggestion-marker-split','downcastDispatcher','schema','options','parent','get','model','enter','setSelection','editing','fromRange','high','detach','showSuggestionHighlights','unbindElementFromMarkerName','end','plugins','isAtEnd','isLimit','addMarker:suggestion:insertion','getFirstRange','createRange','mapper','start','enableCommand','TrackChangesEditing','requires','hasClass','change','markInsertion'];(function(_0x4a5db0,_0x355420){const _0x4bda24=function(_0xcc189){while(--_0xcc189){_0x4a5db0['push'](_0x4a5db0['shift']());}};_0x4bda24(++_0x355420);}(_0x3554,0x19c));const _0x4bda=function(_0x4a5db0,_0x355420){_0x4a5db0=_0x4a5db0-0x0;let _0x4bda24=_0x3554[_0x4a5db0];return _0x4bda24;};import{Plugin as _0x785d7b}from'ckeditor5/src/core';import{Enter as _0x5382f5}from'ckeditor5/src/enter';import{LiveRange as _0x1dd51f}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x45a3f6}from'./utils';export default class F extends _0x785d7b{static get[_0x4bda('0x0')](){return[_0x5382f5];}['init'](){const _0x59d38c=this['editor'],_0x1e0647=_0x59d38c[_0x4bda('0x16')][_0x4bda('0xb')](_0x4bda('0x1f'));_0x1e0647[_0x4bda('0x1e')](_0x4bda('0xd'),_0x59a507=>{_0x59d38c[_0x4bda('0xc')][_0x4bda('0x2')](_0x441a6b=>{const _0x5f1df6=_0x59d38c[_0x4bda('0xc')]['document'][_0x4bda('0x4')],_0x1ef926=_0x5f1df6['getFirstPosition'](),_0x1e012f=_0x5f1df6['isCollapsed'],_0x41beed=_0x1dd51f[_0x4bda('0x10')](_0x5f1df6[_0x4bda('0x1a')]()),_0x57056c=_0x41beed['start'][_0x4bda('0xa')],_0x4583b0=_0x41beed['end'][_0x4bda('0xa')],_0x27b533=!(_0x41beed[_0x4bda('0x1d')]['isAtStart']&&_0x41beed[_0x4bda('0x15')][_0x4bda('0x17')]),_0x2f6f02=_0x57056c==_0x4583b0,_0x22b428=!(_0x59d38c[_0x4bda('0xc')][_0x4bda('0x8')]['isLimit'](_0x57056c)||_0x59d38c[_0x4bda('0xc')][_0x4bda('0x8')][_0x4bda('0x18')](_0x4583b0))&&(_0x1e012f||_0x27b533&&_0x2f6f02);if(_0x59a507(),_0x22b428){const _0x5aba44=_0x59d38c[_0x4bda('0xc')]['createPositionAt'](_0x1ef926['parent']['nextSibling'],0x0),_0x29b8e7=_0x441a6b['createRange'](_0x1ef926,_0x5aba44);_0x1e0647[_0x4bda('0x3')](_0x29b8e7);}else _0x441a6b[_0x4bda('0xe')](_0x441a6b[_0x4bda('0x1b')](_0x41beed[_0x4bda('0x15')]));_0x41beed[_0x4bda('0x12')]();});}),_0x59d38c[_0x4bda('0xf')][_0x4bda('0x7')]['on'](_0x4bda('0x19'),_0x45a3f6(_0x59d38c,_0x4bda('0x5')),{'priority':_0x4bda('0x11')}),_0x59d38c[_0x4bda('0xf')][_0x4bda('0x7')]['on']('removeMarker:suggestion:insertion',(_0x442245,_0x41fae0,_0x2a0900)=>{const _0x5a0709=_0x2a0900['mapper']['markerNameToElements'](_0x41fae0['markerName']);if(_0x5a0709)for(const _0xec8a06 of _0x5a0709)_0xec8a06[_0x4bda('0x1')](_0x4bda('0x6'))&&(_0x2a0900[_0x4bda('0x1c')][_0x4bda('0x14')](_0xec8a06,_0x41fae0['markerName']),_0x2a0900['writer']['remove'](_0xec8a06));},{'priority':_0x4bda('0x11')}),_0x59d38c['data'][_0x4bda('0x7')]['on']('addMarker:suggestion:insertion',(_0x3c1d1b,_0x190f13,_0x36cd5f)=>{_0x36cd5f[_0x4bda('0x9')][_0x4bda('0x13')]&&_0x45a3f6(_0x59d38c,_0x4bda('0x5'),{'showActiveMarker':!0x1})(_0x3c1d1b,_0x190f13,_0x36cd5f);},{'priority':'high'});}}
23
+ const _0x26c2=['enableCommand','editing','isAtEnd','showSuggestionHighlights','change','get','createRange','requires','isLimit','downcastDispatcher','data','selection','addMarker:suggestion:insertion','start','options','isCollapsed','high','removeMarker:suggestion:insertion','enter','init','end','ck-suggestion-marker-split','parent','model','setSelection','markerName','editor','split','getFirstRange','document','isAtStart','mapper','unbindElementFromMarkerName','schema','markerNameToElements','hasClass','nextSibling'];(function(_0x385d08,_0x26c260){const _0x2a4fce=function(_0x47ae0b){while(--_0x47ae0b){_0x385d08['push'](_0x385d08['shift']());}};_0x2a4fce(++_0x26c260);}(_0x26c2,0x150));const _0x2a4f=function(_0x385d08,_0x26c260){_0x385d08=_0x385d08-0x0;let _0x2a4fce=_0x26c2[_0x385d08];return _0x2a4fce;};import{Plugin as _0x216c60}from'ckeditor5/src/core';import{Enter as _0x4a6e6c}from'ckeditor5/src/enter';import{LiveRange as _0xecc283}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x5b485c}from'./utils';export default class F extends _0x216c60{static get[_0x2a4f('0x4')](){return[_0x4a6e6c];}[_0x2a4f('0x10')](){const _0x5a043e=this[_0x2a4f('0x17')],_0x4d75c1=_0x5a043e['plugins'][_0x2a4f('0x2')]('TrackChangesEditing');_0x4d75c1[_0x2a4f('0x22')](_0x2a4f('0xf'),_0x46b933=>{_0x5a043e[_0x2a4f('0x14')][_0x2a4f('0x1')](_0x5afd18=>{const _0x4a5a9f=_0x5a043e[_0x2a4f('0x14')][_0x2a4f('0x1a')][_0x2a4f('0x8')],_0x357089=_0x4a5a9f['getFirstPosition'](),_0x16489f=_0x4a5a9f[_0x2a4f('0xc')],_0x9435c6=_0xecc283['fromRange'](_0x4a5a9f[_0x2a4f('0x19')]()),_0x1b0ed3=_0x9435c6[_0x2a4f('0xa')]['parent'],_0xf8bfd2=_0x9435c6[_0x2a4f('0x11')]['parent'],_0x10f55d=!(_0x9435c6[_0x2a4f('0xa')][_0x2a4f('0x1b')]&&_0x9435c6[_0x2a4f('0x11')][_0x2a4f('0x24')]),_0x1f0384=_0x1b0ed3==_0xf8bfd2,_0x746f0e=!(_0x5a043e[_0x2a4f('0x14')][_0x2a4f('0x1e')][_0x2a4f('0x5')](_0x1b0ed3)||_0x5a043e[_0x2a4f('0x14')][_0x2a4f('0x1e')][_0x2a4f('0x5')](_0xf8bfd2))&&(_0x16489f||_0x10f55d&&_0x1f0384);if(_0x46b933(),_0x746f0e){const _0x37f32c=_0x5a043e[_0x2a4f('0x14')]['createPositionAt'](_0x357089[_0x2a4f('0x13')][_0x2a4f('0x21')],0x0),_0x1fc658=_0x5afd18[_0x2a4f('0x3')](_0x357089,_0x37f32c);_0x4d75c1['markInsertion'](_0x1fc658);}else _0x5afd18[_0x2a4f('0x15')](_0x5afd18[_0x2a4f('0x3')](_0x9435c6[_0x2a4f('0x11')]));_0x9435c6['detach']();});}),_0x5a043e[_0x2a4f('0x23')][_0x2a4f('0x6')]['on'](_0x2a4f('0x9'),_0x5b485c(_0x5a043e,_0x2a4f('0x18')),{'priority':_0x2a4f('0xd')}),_0x5a043e[_0x2a4f('0x23')][_0x2a4f('0x6')]['on'](_0x2a4f('0xe'),(_0x3d6630,_0x1b3a94,_0x345c49)=>{const _0x3f49da=_0x345c49[_0x2a4f('0x1c')][_0x2a4f('0x1f')](_0x1b3a94[_0x2a4f('0x16')]);if(_0x3f49da)for(const _0x170b10 of _0x3f49da)_0x170b10[_0x2a4f('0x20')](_0x2a4f('0x12'))&&(_0x345c49[_0x2a4f('0x1c')][_0x2a4f('0x1d')](_0x170b10,_0x1b3a94[_0x2a4f('0x16')]),_0x345c49['writer']['remove'](_0x170b10));},{'priority':'high'}),_0x5a043e[_0x2a4f('0x7')][_0x2a4f('0x6')]['on'](_0x2a4f('0x9'),(_0x1cc6bb,_0x43687b,_0x3440ee)=>{_0x3440ee[_0x2a4f('0xb')][_0x2a4f('0x0')]&&_0x5b485c(_0x5a043e,_0x2a4f('0x18'),{'showActiveMarker':!0x1})(_0x1cc6bb,_0x43687b,_0x3440ee);},{'priority':'high'});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x4acc9c}from'ckeditor5/src/core';import{normalizeColorOptions as Ft}from'ckeditor5/src/ui';import{getRangesWithAttribute as Rt}from'./utils';const zt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];export default class L extends _0x4acc9c{['afterInit'](){const {t:t}=this['editor']['locale'];for(const {pluginName:_0x2e3a7f,commandName:_0x193ae6}of zt)this['editor']['plugins']['has'](_0x2e3a7f)&&this['_enableCommand'](_0x193ae6);this['editor']['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x2f0f75=>{const {data:_0xc2f796}=_0x2f0f75;if(null!=_0xc2f796){if('fontSize'==_0xc2f796['commandName']){const _0x3d492b=_0xc2f796['commandParams'][0x0]['value'];if(_0x3d492b){const _0x297b22=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3071cd=>_0x3071cd['model']==_0x3d492b)['title'],_0x4571ef=this['editor']['locale']['_t'](_0x297b22)['toLowerCase']();return{'type':'format','content':t('*Set\x20font\x20size:*\x20%0',_0x4571ef)};}return{'type':'format','content':t('*Reset\x20font\x20size*')};}if('fontFamily'==_0xc2f796['commandName']){const _0x154566=_0xc2f796['commandParams'][0x0]['value'];return _0x154566?{'type':'format','content':t('*Set\x20font\x20family:*\x20%0',_0x154566)}:{'type':'format','content':t('*Reset\x20font\x20family*')};}if('fontColor'==_0xc2f796['commandName']){const _0x5e2be8=_0xc2f796['commandParams'][0x0]['value'];if(_0x5e2be8){const _0x4e4094=Ft(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2af9aa=>_0x2af9aa['model']==_0x5e2be8);let _0x58f650=_0x5e2be8,_0x3576a7='';return _0x4e4094&&(_0x58f650=_0x4e4094['label'],_0x3576a7=this['editor']['locale']['_t'](_0x58f650)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20color:*\x20%0',_0x3576a7)['trim'](),'color':{'value':_0x5e2be8,'title':_0x3576a7||_0x58f650}};}return{'type':'format','content':t('*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xc2f796['commandName']){const _0x386ed0=_0xc2f796['commandParams'][0x0]['value'];if(_0x386ed0){const _0x56b041=Ft(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x308430=>_0x308430['model']==_0x386ed0);let _0x2cde2f=_0x386ed0,_0x255039='';return _0x56b041&&(_0x2cde2f=_0x56b041['label'],_0x255039=this['editor']['locale']['_t'](_0x2cde2f)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20background\x20color:*\x20%0',_0x255039)['trim'](),'color':{'value':_0x386ed0,'title':_0x255039||_0x2cde2f}};}return{'type':'format','content':t('*Reset\x20font\x20background\x20color*')};}}});}['_enableCommand'](_0xa63dc7){const _0x5abb14=this['editor'];_0x5abb14['plugins']['get']('TrackChangesEditing')['enableCommand'](_0xa63dc7,(_0x8efe5c,_0x477ae4={})=>{const _0x168d92=_0x5abb14['model']['document']['selection'],_0x385893=_0x477ae4['value'];_0x168d92['isCollapsed']?_0x8efe5c(_0x477ae4):_0x5abb14['model']['change'](()=>{const _0x47cbd5=Array['from'](_0x168d92['getRanges']());for(const _0x197711 of _0x47cbd5){const _0x462280=_0x385893?[_0x197711]:Rt(_0xa63dc7,_0x197711,_0x5abb14['model']);for(const _0x33c9bd of _0x462280)_0x5abb14['plugins']['get']('TrackChangesEditing')['markInlineFormat'](_0x33c9bd,{'commandName':_0xa63dc7,'commandParams':[{'value':_0x385893}]});}});});}}
23
+ import{Plugin as _0xcbe0d0}from'ckeditor5/src/core';import{normalizeColorOptions as Ft}from'ckeditor5/src/ui';import{getRangesWithAttribute as Rt}from'./utils';const zt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];export default class L extends _0xcbe0d0{['afterInit'](){const {t:t}=this['editor']['locale'];for(const {pluginName:_0x164a4c,commandName:_0x174f1b}of zt)this['editor']['plugins']['has'](_0x164a4c)&&this['_enableCommand'](_0x174f1b);this['editor']['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xb5d250=>{const {data:_0x226515}=_0xb5d250;if(null!=_0x226515){if('fontSize'==_0x226515['commandName']){const _0x13bc60=_0x226515['commandParams'][0x0]['value'];if(_0x13bc60){const _0x3e53bd=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x12e3f0=>_0x12e3f0['model']==_0x13bc60)['title'],_0x4e46c9=this['editor']['locale']['_t'](_0x3e53bd)['toLowerCase']();return{'type':'format','content':t('*Set\x20font\x20size:*\x20%0',_0x4e46c9)};}return{'type':'format','content':t('*Reset\x20font\x20size*')};}if('fontFamily'==_0x226515['commandName']){const _0x526075=_0x226515['commandParams'][0x0]['value'];return _0x526075?{'type':'format','content':t('*Set\x20font\x20family:*\x20%0',_0x526075)}:{'type':'format','content':t('*Reset\x20font\x20family*')};}if('fontColor'==_0x226515['commandName']){const _0x292979=_0x226515['commandParams'][0x0]['value'];if(_0x292979){const _0x3965c1=Ft(this['editor']['config']['get']('fontColor.colors'))['find'](_0x267d1c=>_0x267d1c['model']==_0x292979);let _0x5c12ae=_0x292979,_0x207353='';return _0x3965c1&&(_0x5c12ae=_0x3965c1['label'],_0x207353=this['editor']['locale']['_t'](_0x5c12ae)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20color:*\x20%0',_0x207353)['trim'](),'color':{'value':_0x292979,'title':_0x207353||_0x5c12ae}};}return{'type':'format','content':t('*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x226515['commandName']){const _0x18e398=_0x226515['commandParams'][0x0]['value'];if(_0x18e398){const _0x4dfa19=Ft(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x570eb5=>_0x570eb5['model']==_0x18e398);let _0x1798f7=_0x18e398,_0x2a4ad1='';return _0x4dfa19&&(_0x1798f7=_0x4dfa19['label'],_0x2a4ad1=this['editor']['locale']['_t'](_0x1798f7)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20background\x20color:*\x20%0',_0x2a4ad1)['trim'](),'color':{'value':_0x18e398,'title':_0x2a4ad1||_0x1798f7}};}return{'type':'format','content':t('*Reset\x20font\x20background\x20color*')};}}});}['_enableCommand'](_0x32b725){const _0x2aa470=this['editor'];_0x2aa470['plugins']['get']('TrackChangesEditing')['enableCommand'](_0x32b725,(_0x112504,_0xc7c0b={})=>{const _0x47aba8=_0x2aa470['model']['document']['selection'],_0x495e5b=_0xc7c0b['value'];_0x47aba8['isCollapsed']?_0x112504(_0xc7c0b):_0x2aa470['model']['change'](()=>{const _0x12fccc=Array['from'](_0x47aba8['getRanges']());for(const _0x932277 of _0x12fccc){const _0x1637f8=_0x495e5b?[_0x932277]:Rt(_0x32b725,_0x932277,_0x2aa470['model']);for(const _0x59038f of _0x1637f8)_0x2aa470['plugins']['get']('TrackChangesEditing')['markInlineFormat'](_0x59038f,{'commandName':_0x32b725,'commandParams':[{'value':_0x495e5b}]});}});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x38a874}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x17cba7}from'./utils';export default class q extends _0x38a874{['afterInit'](){const _0x1d5b92=this['editor'],{t:t}=_0x1d5b92['locale'],_0x427c0c=_0x1d5b92['config']['get']('heading.options');if(!_0x1d5b92['plugins']['has']('HeadingEditing'))return;const _0x58446f=_0x1d5b92['plugins']['get']('TrackChangesEditing');_0x58446f['enableCommand']('heading',(_0x1bdcc9,_0x21f914)=>{const _0x2dc4a9=_0x21f914['value'],_0x50e960=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5e464e=>function(_0x444808,_0x50af5f,_0x3b0611){return _0x3b0611['checkChild'](_0x444808['parent'],_0x50af5f)&&!_0x3b0611['isObject'](_0x444808)&&_0x444808['name']!=_0x50af5f;}(_0x5e464e,_0x2dc4a9,this['editor']['model']['schema']));_0x1d5b92['model']['change'](()=>{for(const _0xb6b2df of _0x50e960)_0x58446f['markBlockFormat'](_0xb6b2df,{'commandName':'heading','commandParams':[_0x21f914],'formatGroupId':'blockName'},_0x17cba7(_0xb6b2df));});});for(const _0x445071 of _0x427c0c)'paragraph'!=_0x445071['model']&&_0x58446f['_descriptionFactory']['registerElementLabel'](_0x445071['model'],_0x1c5115=>{const _0x239a2d=tn(_0x445071['model']);return null!==_0x239a2d?_0xe6ad16(_0x1c5115,_0x239a2d):_0x4ec8ad(_0x1c5115,_0x445071['title']);});function _0xe6ad16(_0x244251,_0x5c77e5){return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},[_0x244251,_0x5c77e5]);}function _0x4ec8ad(_0x57aeab,_0x399438){return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},[_0x57aeab,_0x399438]);}_0x58446f['_descriptionFactory']['registerDescriptionCallback'](_0xb63021=>{const {type:_0x1c731d,data:_0x2510ab}=_0xb63021;if('formatBlock'==_0x1c731d&&_0x2510ab&&'heading'==_0x2510ab['commandName']){const _0x16d8f4=_0x2510ab['commandParams'][0x0]['value'],_0x249261=tn(_0x16d8f4);if(null!==_0x249261)return{'type':'format','content':t('*Change\x20to:*\x20%0',_0xe6ad16(0x1,_0x249261))};const _0x616294=_0x427c0c['find'](_0x4db1ab=>_0x4db1ab['model']===_0x16d8f4)['title'];return{'type':'format','content':t('*Change\x20to:*\x20%0',_0x4ec8ad(0x1,_0x616294))};}});}}function tn(_0x37009b){const _0x2c1c38=_0x37009b['match'](/^heading(\d+)$/);return _0x2c1c38?_0x2c1c38[0x1]:null;}
23
+ import{Plugin as _0xb47d62}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x32ec1d}from'./utils';export default class q extends _0xb47d62{['afterInit'](){const _0x36004d=this['editor'],{t:t}=_0x36004d['locale'],_0x4279be=_0x36004d['config']['get']('heading.options');if(!_0x36004d['plugins']['has']('HeadingEditing'))return;const _0x117ed7=_0x36004d['plugins']['get']('TrackChangesEditing');_0x117ed7['enableCommand']('heading',(_0x2ad656,_0x5a3605)=>{const _0xe95430=_0x5a3605['value'],_0x4445ab=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1cece6=>function(_0x3d23e,_0xfd7b23,_0x5d223c){return _0x5d223c['checkChild'](_0x3d23e['parent'],_0xfd7b23)&&!_0x5d223c['isObject'](_0x3d23e)&&_0x3d23e['name']!=_0xfd7b23;}(_0x1cece6,_0xe95430,this['editor']['model']['schema']));_0x36004d['model']['change'](()=>{for(const _0x1608d0 of _0x4445ab)_0x117ed7['markBlockFormat'](_0x1608d0,{'commandName':'heading','commandParams':[_0x5a3605],'formatGroupId':'blockName'},_0x32ec1d(_0x1608d0));});});for(const _0x21663b of _0x4279be)'paragraph'!=_0x21663b['model']&&_0x117ed7['_descriptionFactory']['registerElementLabel'](_0x21663b['model'],_0x4210f4=>{const _0x49bdba=tn(_0x21663b['model']);return null!==_0x49bdba?_0x3746ad(_0x4210f4,_0x49bdba):_0xcd77d7(_0x4210f4,_0x21663b['title']);});function _0x3746ad(_0x5b23cf,_0x11af11){return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},[_0x5b23cf,_0x11af11]);}function _0xcd77d7(_0x38e7b4,_0x521355){return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},[_0x38e7b4,_0x521355]);}_0x117ed7['_descriptionFactory']['registerDescriptionCallback'](_0x5bd689=>{const {type:_0x201986,data:_0x48d3ca}=_0x5bd689;if('formatBlock'==_0x201986&&_0x48d3ca&&'heading'==_0x48d3ca['commandName']){const _0x580367=_0x48d3ca['commandParams'][0x0]['value'],_0x437f4d=tn(_0x580367);if(null!==_0x437f4d)return{'type':'format','content':t('*Change\x20to:*\x20%0',_0x3746ad(0x1,_0x437f4d))};const _0x3ee6f1=_0x4279be['find'](_0xb19343=>_0xb19343['model']===_0x580367)['title'];return{'type':'format','content':t('*Change\x20to:*\x20%0',_0xcd77d7(0x1,_0x3ee6f1))};}});}}function tn(_0xb976f8){const _0x46ca4e=_0xb976f8['match'](/^heading(\d+)$/);return _0x46ca4e?_0x46ca4e[0x1]:null;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x421eac}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';export default class H extends _0x421eac{['afterInit'](){const _0x203950=this['editor'];if(!_0x203950['plugins']['has']('HighlightEditing'))return;const _0x478325=_0x203950['plugins']['get']('TrackChangesEditing');_0x478325['enableCommand']('highlight',(_0x46348a,_0x46d609={})=>{const _0x4c9a9b=_0x203950['model']['document']['selection'],_0x5b2938=_0x4c9a9b['getAttribute']('highlight');let _0x4b6b05=_0x46d609['value'],_0x49163f=[];if(_0x4c9a9b['isCollapsed']){const _0x30c00e=_0x4c9a9b['getFirstPosition']();if(!_0x4c9a9b['hasAttribute']('highlight'))return void _0x46348a(_0x46d609);{const _0x2af1ad=_0x2c6dd2=>_0x2c6dd2['item']['getAttribute']('highlight')===_0x5b2938,_0x17b687=_0x30c00e['getLastMatchingPosition'](_0x2af1ad,{'direction':'backward'}),_0x4084f2=_0x30c00e['getLastMatchingPosition'](_0x2af1ad);_0x49163f=[_0x203950['model']['createRange'](_0x17b687,_0x4084f2)],_0x4b6b05==_0x5b2938&&(_0x4b6b05=null);}}else for(const _0x3cba3f of _0x4c9a9b['getRanges']())_0x4b6b05?_0x49163f['push'](_0x3cba3f):_0x49163f['push'](...Rt('highlight',_0x3cba3f,_0x203950['model']));_0x203950['model']['change'](()=>{for(const _0x320879 of _0x49163f)_0x478325['markInlineFormat'](_0x320879,{'commandName':'highlight','commandParams':[{'value':_0x4b6b05}]});});});const {t:t}=_0x203950['locale'];_0x478325['_descriptionFactory']['registerDescriptionCallback'](_0x4c3615=>{const {type:_0x2b3c57,data:_0x38d2d5}=_0x4c3615;if('formatInline'==_0x2b3c57&&_0x38d2d5&&'highlight'==_0x38d2d5['commandName']){const _0x4fe370=_0x38d2d5['commandParams'][0x0]['value'];if(_0x4fe370){const _0x579d0a=_0x203950['config']['get']('highlight.options')['find'](_0x140828=>_0x140828['model']==_0x4fe370),_0x2bc1cc=_0x203950['locale']['_t'](_0x579d0a['title'])['toLowerCase']();return{'type':'format','content':t('*Set\x20highlight:*\x20%0',_0x2bc1cc),'color':{'value':_0x579d0a['color'],'title':_0x579d0a['title']}};}return{'type':'format','content':t('*Remove\x20highlight*',t({'string':'highlight','id':'FORMAT_HIGHLIGHT'}))};}});}}
23
+ import{Plugin as _0x445cd4}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';export default class H extends _0x445cd4{['afterInit'](){const _0x23a06d=this['editor'];if(!_0x23a06d['plugins']['has']('HighlightEditing'))return;const _0xda63aa=_0x23a06d['plugins']['get']('TrackChangesEditing');_0xda63aa['enableCommand']('highlight',(_0x3be3f6,_0x45f48e={})=>{const _0x1fb076=_0x23a06d['model']['document']['selection'],_0x54c517=_0x1fb076['getAttribute']('highlight');let _0x1db34a=_0x45f48e['value'],_0x242d2c=[];if(_0x1fb076['isCollapsed']){const _0x5a1fae=_0x1fb076['getFirstPosition']();if(!_0x1fb076['hasAttribute']('highlight'))return void _0x3be3f6(_0x45f48e);{const _0x5971ab=_0x2cb28b=>_0x2cb28b['item']['getAttribute']('highlight')===_0x54c517,_0x44b6ff=_0x5a1fae['getLastMatchingPosition'](_0x5971ab,{'direction':'backward'}),_0xd5564=_0x5a1fae['getLastMatchingPosition'](_0x5971ab);_0x242d2c=[_0x23a06d['model']['createRange'](_0x44b6ff,_0xd5564)],_0x1db34a==_0x54c517&&(_0x1db34a=null);}}else for(const _0x3fd12c of _0x1fb076['getRanges']())_0x1db34a?_0x242d2c['push'](_0x3fd12c):_0x242d2c['push'](...Rt('highlight',_0x3fd12c,_0x23a06d['model']));_0x23a06d['model']['change'](()=>{for(const _0x57c7e7 of _0x242d2c)_0xda63aa['markInlineFormat'](_0x57c7e7,{'commandName':'highlight','commandParams':[{'value':_0x1db34a}]});});});const {t:t}=_0x23a06d['locale'];_0xda63aa['_descriptionFactory']['registerDescriptionCallback'](_0x3e8bee=>{const {type:_0x3db140,data:_0x27946a}=_0x3e8bee;if('formatInline'==_0x3db140&&_0x27946a&&'highlight'==_0x27946a['commandName']){const _0x5f42d5=_0x27946a['commandParams'][0x0]['value'];if(_0x5f42d5){const _0x2e9346=_0x23a06d['config']['get']('highlight.options')['find'](_0x5da34b=>_0x5da34b['model']==_0x5f42d5),_0x56f92b=_0x23a06d['locale']['_t'](_0x2e9346['title'])['toLowerCase']();return{'type':'format','content':t('*Set\x20highlight:*\x20%0',_0x56f92b),'color':{'value':_0x2e9346['color'],'title':_0x2e9346['title']}};}return{'type':'format','content':t('*Remove\x20highlight*',t({'string':'highlight','id':'FORMAT_HIGHLIGHT'}))};}});}}