@ckeditor/ckeditor5-track-changes 32.0.0 → 33.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 (102) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/track-changes.js +5 -0
  4. package/build/translations/cs.js +1 -0
  5. package/build/translations/da.js +1 -0
  6. package/build/translations/de.js +1 -0
  7. package/build/translations/el.js +1 -0
  8. package/build/translations/en-au.js +1 -0
  9. package/build/translations/es.js +1 -0
  10. package/build/translations/et.js +1 -0
  11. package/build/translations/fr.js +1 -0
  12. package/build/translations/gl.js +1 -0
  13. package/build/translations/hi.js +1 -0
  14. package/build/translations/hr.js +1 -0
  15. package/build/translations/it.js +1 -0
  16. package/build/translations/nl.js +1 -0
  17. package/build/translations/pl.js +1 -0
  18. package/build/translations/pt-br.js +1 -0
  19. package/build/translations/sk.js +1 -0
  20. package/build/translations/sr-latn.js +1 -0
  21. package/build/translations/sr.js +1 -0
  22. package/build/translations/tk.js +1 -0
  23. package/build/translations/tr.js +1 -0
  24. package/build/translations/zh-cn.js +1 -0
  25. package/build/translations/zh.js +1 -0
  26. package/ckeditor5-metadata.json +3 -0
  27. package/lang/translations/cs.po +3 -3
  28. package/lang/translations/da.po +1 -1
  29. package/lang/translations/de.po +1 -1
  30. package/lang/translations/el.po +387 -0
  31. package/lang/translations/en-au.po +1 -1
  32. package/lang/translations/es.po +35 -35
  33. package/lang/translations/fr.po +1 -1
  34. package/lang/translations/gl.po +1 -1
  35. package/lang/translations/hi.po +1 -1
  36. package/lang/translations/hr.po +1 -1
  37. package/lang/translations/it.po +1 -1
  38. package/lang/translations/pl.po +1 -1
  39. package/lang/translations/pt-br.po +1 -1
  40. package/lang/translations/sk.po +1 -1
  41. package/lang/translations/sr-latn.po +3 -3
  42. package/lang/translations/sr.po +3 -3
  43. package/lang/translations/tk.po +1 -1
  44. package/lang/translations/tr.po +1 -1
  45. package/lang/translations/zh-cn.po +1 -1
  46. package/package.json +4 -7
  47. package/src/commands/acceptallsuggestionscommand.js +1 -1
  48. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  49. package/src/commands/acceptsuggestioncommand.js +1 -1
  50. package/src/commands/discardallsuggestionscommand.js +1 -1
  51. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  52. package/src/commands/discardsuggestioncommand.js +1 -1
  53. package/src/commands/trackchangescommand.js +1 -1
  54. package/src/index.js +23 -0
  55. package/src/integrations/alignment.js +1 -1
  56. package/src/integrations/basicstyles.js +1 -1
  57. package/src/integrations/blockquote.js +1 -1
  58. package/src/integrations/codeblock.js +1 -1
  59. package/src/integrations/comments.js +1 -1
  60. package/src/integrations/deletecommand.js +1 -1
  61. package/src/integrations/entercommand.js +1 -1
  62. package/src/integrations/font.js +1 -1
  63. package/src/integrations/heading.js +1 -1
  64. package/src/integrations/highlight.js +1 -1
  65. package/src/integrations/horizontalline.js +1 -1
  66. package/src/integrations/image.js +1 -1
  67. package/src/integrations/indent.js +1 -1
  68. package/src/integrations/inputcommand.js +1 -1
  69. package/src/integrations/link.js +1 -1
  70. package/src/integrations/list.js +1 -1
  71. package/src/integrations/mediaembed.js +1 -1
  72. package/src/integrations/mention.js +1 -1
  73. package/src/integrations/pagebreak.js +1 -1
  74. package/src/integrations/paragraph.js +1 -1
  75. package/src/integrations/removeformat.js +1 -1
  76. package/src/integrations/restrictededitingmode.js +1 -1
  77. package/src/integrations/shiftentercommand.js +1 -1
  78. package/src/integrations/standardeditingmode.js +1 -1
  79. package/src/integrations/table.js +1 -1
  80. package/src/integrations/tableclipboard.js +1 -1
  81. package/src/integrations/tableheadings.js +1 -1
  82. package/src/integrations/tablemergesplit.js +1 -1
  83. package/src/integrations/title.js +1 -1
  84. package/src/integrations/undo.js +1 -1
  85. package/src/integrations/utils.js +1 -1
  86. package/src/suggestion.js +1 -1
  87. package/src/suggestiondescriptionfactory.js +1 -1
  88. package/src/trackchanges.js +1 -1
  89. package/src/trackchangesdata.js +1 -1
  90. package/src/trackchangesediting.js +1 -1
  91. package/src/trackchangesui.js +1 -1
  92. package/src/ui/suggestioncontroller.js +1 -1
  93. package/src/ui/view/basesuggestionthreadview.js +1 -1
  94. package/src/ui/view/suggestionthreadview.js +1 -1
  95. package/src/utils/getselectedsuggestions.js +1 -1
  96. package/src/utils/hashobject.js +1 -1
  97. package/src/utils/normalizedescription.js +1 -1
  98. package/src/utils/sortsuggestions.js +1 -1
  99. package/theme/icons/track-changes-accept.svg +1 -1
  100. package/theme/icons/track-changes-discard.svg +1 -1
  101. package/theme/icons/track-changes.svg +1 -1
  102. package/theme/suggestionmarker.css +1 -1
@@ -58,7 +58,7 @@ msgstr "*Уклони формат:* %0"
58
58
 
59
59
  msgctxt "A suggestion for removing the highlight."
60
60
  msgid "*Remove highlight*"
61
- msgstr ""
61
+ msgstr "*Уклони истицање* "
62
62
 
63
63
  msgctxt "A suggestion for removing image text alternative."
64
64
  msgid "*Remove image text alternative*"
@@ -114,7 +114,7 @@ msgstr "*Подеси величину фонта:* %0"
114
114
 
115
115
  msgctxt "A suggestion for highlighting text."
116
116
  msgid "*Set highlight:* %0"
117
- msgstr ""
117
+ msgstr "*Подесите истицање:* %0 "
118
118
 
119
119
  msgctxt "A suggestion for setting image text alternative to %0."
120
120
  msgid "*Set image text alternative:* %0"
@@ -393,7 +393,7 @@ msgstr "подвући"
393
393
 
394
394
  msgctxt "The label for the alert shown when closing the editor with an unsaved track changes change."
395
395
  msgid "PENDING_ACTION_SUGGESTION"
396
- msgstr ""
396
+ msgstr "Несачувана промена предлога"
397
397
 
398
398
  msgctxt "A suggestion for replacing one text with another."
399
399
  msgid "REPLACE_TEXT"
@@ -376,7 +376,7 @@ msgstr "aşagy çyzykly"
376
376
 
377
377
  msgctxt "The label for the alert shown when closing the editor with an unsaved track changes change."
378
378
  msgid "PENDING_ACTION_SUGGESTION"
379
- msgstr ""
379
+ msgstr "Teklipde saklanmadyk üýtgeşiklik."
380
380
 
381
381
  msgctxt "A suggestion for replacing one text with another."
382
382
  msgid "REPLACE_TEXT"
@@ -376,7 +376,7 @@ msgstr "alttan çizili"
376
376
 
377
377
  msgctxt "The label for the alert shown when closing the editor with an unsaved track changes change."
378
378
  msgid "PENDING_ACTION_SUGGESTION"
379
- msgstr ""
379
+ msgstr "Öneride kaydedilmemiş değişiklik."
380
380
 
381
381
  msgctxt "A suggestion for replacing one text with another."
382
382
  msgid "REPLACE_TEXT"
@@ -359,7 +359,7 @@ msgstr "下划线"
359
359
 
360
360
  msgctxt "The label for the alert shown when closing the editor with an unsaved track changes change."
361
361
  msgid "PENDING_ACTION_SUGGESTION"
362
- msgstr ""
362
+ msgstr "建议中有未保存内容"
363
363
 
364
364
  msgctxt "A suggestion for replacing one text with another."
365
365
  msgid "REPLACE_TEXT"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "32.0.0",
3
+ "version": "33.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/)",
@@ -25,13 +25,10 @@
25
25
  "realtime",
26
26
  "framework"
27
27
  ],
28
+ "main": "src/index.js",
28
29
  "dependencies": {
29
- "@ckeditor/ckeditor5-collaboration-core": "^32.0.0",
30
- "@ckeditor/ckeditor5-comments": "^32.0.0",
31
- "@ckeditor/ckeditor5-font": "^32.0.0",
32
- "@ckeditor/ckeditor5-image": "^32.0.0",
33
- "@ckeditor/ckeditor5-table": "^32.0.0",
34
- "ckeditor5": "^32.0.0",
30
+ "ckeditor5": "^33.0.0",
31
+ "ckeditor5-collaboration": "^33.0.0",
35
32
  "lodash-es": "^4.17.11"
36
33
  }
37
34
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2efe=['isEnabled','_acceptSuggestionCommand','change','some','_suggestions','from','values','isInContent','editor','refresh'];(function(_0x2d472e,_0x2efebb){const _0xa6cc9d=function(_0x38ab81){while(--_0x38ab81){_0x2d472e['push'](_0x2d472e['shift']());}};_0xa6cc9d(++_0x2efebb);}(_0x2efe,0x122));const _0xa6cc=function(_0x2d472e,_0x2efebb){_0x2d472e=_0x2d472e-0x0;let _0xa6cc9d=_0x2efe[_0x2d472e];return _0xa6cc9d;};import{Command as _0x1322e4}from'ckeditor5/src/core';import _0x11fffb from'../utils/sortsuggestions';export default class R extends _0x1322e4{constructor(_0x327504,_0x5498da,_0x599624){super(_0x327504),this[_0xa6cc('0x1')]=_0x5498da,this[_0xa6cc('0x4')]=_0x599624,this[_0xa6cc('0x9')]();}['refresh'](){const _0x79a28f=this[_0xa6cc('0x1')];this[_0xa6cc('0x0')]=_0x79a28f[_0xa6cc('0x0')]&&Array[_0xa6cc('0x5')](this[_0xa6cc('0x4')][_0xa6cc('0x6')]())[_0xa6cc('0x3')](_0x1a91bf=>_0x1a91bf[_0xa6cc('0x7')]);}['execute'](){this[_0xa6cc('0x8')]['model'][_0xa6cc('0x2')](()=>{const _0x1ba002=_0x11fffb(Array[_0xa6cc('0x5')](this[_0xa6cc('0x4')][_0xa6cc('0x6')]()));for(const _0x33cfa3 of _0x1ba002)_0x33cfa3[_0xa6cc('0x7')]&&this[_0xa6cc('0x1')]['execute'](_0x33cfa3['id']);});}}
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']);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4dd8=['refresh','from','_selectedSuggestions','selection','_acceptSuggestionCommand','_suggestions','document','change','size','editor','execute','model'];(function(_0x4d8d3a,_0x4dd8e3){const _0x3a2ba3=function(_0x3ded0a){while(--_0x3ded0a){_0x4d8d3a['push'](_0x4d8d3a['shift']());}};_0x3a2ba3(++_0x4dd8e3);}(_0x4dd8,0x1aa));const _0x3a2b=function(_0x4d8d3a,_0x4dd8e3){_0x4d8d3a=_0x4d8d3a-0x0;let _0x3a2ba3=_0x4dd8[_0x4d8d3a];return _0x3a2ba3;};import{Command as _0x5a630a}from'ckeditor5/src/core';import _0x168cec from'../utils/sortsuggestions';import _0x5511b3 from'../utils/getselectedsuggestions';export default class E extends _0x5a630a{constructor(_0x525409,_0x15fe99,_0x295888){super(_0x525409),this[_0x3a2b('0xa')]=_0x15fe99,this[_0x3a2b('0xb')]=_0x295888,this[_0x3a2b('0x8')]=new Set(),this[_0x3a2b('0x6')]();}[_0x3a2b('0x6')](){const _0x42ef79=this['_acceptSuggestionCommand'],_0x5a8085=this[_0x3a2b('0x3')]['model'][_0x3a2b('0x0')][_0x3a2b('0x9')],_0x4c12fa=Array[_0x3a2b('0x7')](this[_0x3a2b('0xb')]['values']());this[_0x3a2b('0x8')]=_0x5511b3(_0x5a8085,_0x4c12fa),this['isEnabled']=_0x42ef79['isEnabled']&&!!this[_0x3a2b('0x8')][_0x3a2b('0x2')];}[_0x3a2b('0x4')](){this[_0x3a2b('0x3')][_0x3a2b('0x5')][_0x3a2b('0x1')](()=>{const _0xa6f88b=_0x168cec(Array[_0x3a2b('0x7')](this['_selectedSuggestions']));for(const _0x11b20d of _0xa6f88b)this[_0x3a2b('0xa')]['execute'](_0x11b20d['id']);});}}
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']);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b0b=['isEnabled','editor','get','acceptSuggestion','TrackChangesEditing','track-changes-accept-suggestion-not-found','plugins','refresh','_suggestions'];(function(_0x300fec,_0x4b0b66){const _0x2e5a4e=function(_0x23cc63){while(--_0x23cc63){_0x300fec['push'](_0x300fec['shift']());}};_0x2e5a4e(++_0x4b0b66);}(_0x4b0b,0x12e));const _0x2e5a=function(_0x300fec,_0x4b0b66){_0x300fec=_0x300fec-0x0;let _0x2e5a4e=_0x4b0b[_0x300fec];return _0x2e5a4e;};import{Command as _0x3e20be}from'ckeditor5/src/core';import{CKEditorError as _0x300d5b}from'ckeditor5/src/utils';export default class j extends _0x3e20be{constructor(_0x37083e,_0x61779f){super(_0x37083e),this[_0x2e5a('0x3')]=_0x61779f,this['refresh']();}[_0x2e5a('0x2')](){this[_0x2e5a('0x4')]=!0x0;}['execute'](_0x3666d7){const _0x2fdc04=this[_0x2e5a('0x3')][_0x2e5a('0x6')](_0x3666d7);if(!_0x2fdc04)throw new _0x300d5b(_0x2e5a('0x0'),this);this[_0x2e5a('0x5')][_0x2e5a('0x1')][_0x2e5a('0x6')](_0x2e5a('0x8'))[_0x2e5a('0x7')](_0x2fdc04);}}
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);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x38df=['execute','_discardSuggestionCommand','change','isEnabled','isInContent','editor','refresh','values','_suggestions'];(function(_0x7d7bad,_0x38dfba){const _0x327623=function(_0x5c3f2f){while(--_0x5c3f2f){_0x7d7bad['push'](_0x7d7bad['shift']());}};_0x327623(++_0x38dfba);}(_0x38df,0x84));const _0x3276=function(_0x7d7bad,_0x38dfba){_0x7d7bad=_0x7d7bad-0x0;let _0x327623=_0x38df[_0x7d7bad];return _0x327623;};import{Command as _0x4b033c}from'ckeditor5/src/core';export default class x extends _0x4b033c{constructor(_0x4e69c4,_0x4f5bd9,_0x5999aa){super(_0x4e69c4),this['_discardSuggestionCommand']=_0x4f5bd9,this[_0x3276('0x2')]=_0x5999aa,this[_0x3276('0x0')]();}['refresh'](){const _0x44a93d=this[_0x3276('0x4')];this[_0x3276('0x6')]=_0x44a93d['isEnabled']&&Array['from'](this['_suggestions']['values']())['some'](_0x51c885=>_0x51c885[_0x3276('0x7')]);}[_0x3276('0x3')](){this[_0x3276('0x8')]['model'][_0x3276('0x5')](()=>{for(const _0x452ce3 of this[_0x3276('0x2')][_0x3276('0x1')]())_0x452ce3[_0x3276('0x7')]&&this[_0x3276('0x4')][_0x3276('0x3')](_0x452ce3['id']);});}}
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']);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x533b=['_discardSuggestionCommand','refresh','_suggestions','model','isEnabled','execute','values','from','editor','size','change','_selectedSuggestions'];(function(_0x3ed688,_0x533b44){const _0x229bc0=function(_0x186648){while(--_0x186648){_0x3ed688['push'](_0x3ed688['shift']());}};_0x229bc0(++_0x533b44);}(_0x533b,0x16c));const _0x229b=function(_0x3ed688,_0x533b44){_0x3ed688=_0x3ed688-0x0;let _0x229bc0=_0x533b[_0x3ed688];return _0x229bc0;};import{Command as _0x55ff78}from'ckeditor5/src/core';import _0x2cc8e9 from'../utils/getselectedsuggestions';export default class O extends _0x55ff78{constructor(_0x160edb,_0x251e86,_0x4ae11c){super(_0x160edb),this[_0x229b('0x8')]=_0x251e86,this[_0x229b('0xa')]=_0x4ae11c,this[_0x229b('0x7')]=new Set(),this[_0x229b('0x9')]();}[_0x229b('0x9')](){const _0x39f92e=this[_0x229b('0x8')],_0x38f400=this[_0x229b('0x4')][_0x229b('0xb')]['document']['selection'],_0x9dcdd0=Array[_0x229b('0x3')](this[_0x229b('0xa')][_0x229b('0x2')]());this['_selectedSuggestions']=_0x2cc8e9(_0x38f400,_0x9dcdd0),this[_0x229b('0x0')]=_0x39f92e[_0x229b('0x0')]&&!!this[_0x229b('0x7')][_0x229b('0x5')];}[_0x229b('0x1')](){this[_0x229b('0x4')]['model'][_0x229b('0x6')](()=>{for(const _0x3e737e of this[_0x229b('0x7')])this[_0x229b('0x8')][_0x229b('0x1')](_0x3e737e['id']);});}}
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']);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53e1=['_suggestions','editor','TrackChangesEditing','refresh','discardSuggestion','track-changes-discard-suggestion-not-found','execute'];(function(_0x37f4b8,_0x53e158){const _0x1d1167=function(_0xf4dd){while(--_0xf4dd){_0x37f4b8['push'](_0x37f4b8['shift']());}};_0x1d1167(++_0x53e158);}(_0x53e1,0x14f));const _0x1d11=function(_0x37f4b8,_0x53e158){_0x37f4b8=_0x37f4b8-0x0;let _0x1d1167=_0x53e1[_0x37f4b8];return _0x1d1167;};import{Command as _0x197b12}from'ckeditor5/src/core';import{CKEditorError as _0x5b98d4}from'ckeditor5/src/utils';export default class U extends _0x197b12{constructor(_0xa31ca2,_0x3b8eb5){super(_0xa31ca2),this['_suggestions']=_0x3b8eb5,this[_0x1d11('0x4')]();}[_0x1d11('0x4')](){this['isEnabled']=!0x0;}[_0x1d11('0x0')](_0x36dba4){const _0xb7f865=this[_0x1d11('0x1')]['get'](_0x36dba4);if(!_0xb7f865)throw new _0x5b98d4(_0x1d11('0x6'),this);this[_0x1d11('0x2')]['plugins']['get'](_0x1d11('0x3'))[_0x1d11('0x5')](_0xb7f865);}}
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);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b75=['isEnabled','has','_enableCommands','execute','_enabledCommands','value','refresh','_disableUnsupportedCommands','TrackChangesCommand','clearForceDisabled','commands','affectsData','editor'];(function(_0x4d4dcb,_0x1b754e){const _0x2a7fa2=function(_0x453978){while(--_0x453978){_0x4d4dcb['push'](_0x4d4dcb['shift']());}};_0x2a7fa2(++_0x1b754e);}(_0x1b75,0x1a9));const _0x2a7f=function(_0x4d4dcb,_0x1b754e){_0x4d4dcb=_0x4d4dcb-0x0;let _0x2a7fa2=_0x1b75[_0x4d4dcb];return _0x2a7fa2;};import{Command as _0x2c6505}from'ckeditor5/src/core';export default class N extends _0x2c6505{constructor(_0x1337e0,_0x43e9b1){super(_0x1337e0),this['_enabledCommands']=_0x43e9b1,this[_0x2a7f('0x9')]=!0x1,this[_0x2a7f('0xa')]();}['refresh'](){this[_0x2a7f('0x4')]=!0x0;}[_0x2a7f('0x7')](){this[_0x2a7f('0x9')]=!this[_0x2a7f('0x9')],this['value']?this[_0x2a7f('0xb')]():this[_0x2a7f('0x6')]();}[_0x2a7f('0xb')](){for(const _0x1682c5 of this[_0x2a7f('0x3')][_0x2a7f('0x1')]['commands']())_0x1682c5[_0x2a7f('0x2')]&&!this['_enabledCommands']['has'](_0x1682c5)&&_0x1682c5['forceDisabled'](_0x2a7f('0xc'));}['_enableCommands'](){for(const _0x38a159 of this[_0x2a7f('0x3')]['commands'][_0x2a7f('0x1')]())_0x38a159[_0x2a7f('0x2')]&&!this[_0x2a7f('0x8')][_0x2a7f('0x5')](_0x38a159)&&_0x38a159[_0x2a7f('0x0')]('TrackChangesCommand');}}
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');}}
package/src/index.js ADDED
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, 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
+ export{default as TrackChanges}from'./trackchanges';export{default as TrackChangesData}from'./trackchangesdata';export{default as BaseSuggestionThreadView}from'./ui/view/basesuggestionthreadview';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0xe19e6e}from'ckeditor5/src/core';export default class P extends _0xe19e6e{['afterInit'](){const _0x1508c2=this['editor'],{t:t}=_0x1508c2['locale'];if(!_0x1508c2['plugins']['has']('AlignmentEditing'))return;const _0x4173e5=_0x1508c2['plugins']['get']('TrackChangesEditing');_0x4173e5['enableCommand']('alignment',(_0xfee4c0,_0x9ff230={})=>{let _0x4e1a11=_0x9ff230['value'];_0x9ff230['value']||(_0x4e1a11='ltr'===_0x1508c2['locale']['contentLanguageDirection']?'left':'right');const _0xae699b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x141ef4=>function(_0x36011d,_0x4493d5,_0x375239){const _0x22f616=_0x36011d['getAttribute']('alignment')||null;return _0x4493d5['checkAttribute'](_0x36011d,'alignment')&&_0x375239!=_0x22f616;}(_0x141ef4,this['editor']['model']['schema'],_0x4e1a11));_0x1508c2['model']['change'](()=>{for(const _0x39960c of _0xae699b)_0x4173e5['markBlockFormat'](_0x39960c,{'commandName':'alignment','commandParams':[{'value':_0x4e1a11}]});});}),_0x4173e5['_descriptionFactory']['registerDescriptionCallback'](_0x1ca2fc=>{const {data:_0x374048}=_0x1ca2fc;if(_0x374048&&'alignment'==_0x374048['commandName']){const _0x228c06=_0x374048['commandParams'][0x0]['value'];return{'type':'format','content':t('*Format:*\x20%0',function(_0x166566){switch(_0x166566){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'});}}(_0x228c06))};}});}}
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))};}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x19c422}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';const Ft=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];export default class G extends _0x19c422{['afterInit'](){const _0x36222a=this['editor'],_0x1562ff=_0x36222a['model'],_0x5046e0=_0x36222a['plugins']['get']('TrackChangesEditing'),{t:t}=_0x36222a['locale'];for(const _0x3e2460 of Ft){if(!_0x36222a['plugins']['has'](_0x3e2460))continue;const _0x483ed5=_0x3e2460['slice'](0x0,-0x7)['toLowerCase'](),_0x2539c8=_0x36222a['commands']['get'](_0x483ed5);_0x5046e0['enableCommand'](_0x483ed5,(_0x351788,_0x2dde52={})=>{const _0x5191f3=_0x1562ff['document']['selection'];if(_0x5191f3['isCollapsed'])return void _0x351788(_0x2dde52);const _0x3b2aec=void 0x0!==_0x2dde52['forceValue']?_0x2dde52['forceValue']:!_0x2539c8['value'];_0x1562ff['change'](()=>{const _0x2177c0=Array['from'](_0x5191f3['getRanges']());for(const _0x394252 of _0x2177c0){const _0x5466ce=_0x3b2aec?[_0x394252]:Rt(_0x483ed5,_0x394252,_0x1562ff);for(const _0x1e51e7 of _0x5466ce)_0x5046e0['markInlineFormat'](_0x1e51e7,{'commandName':_0x483ed5,'commandParams':[{'forceValue':_0x3b2aec}]});}});});}function _0x38e476(_0x2dca73,_0x284945){_0x5046e0['_descriptionFactory']['registerDescriptionCallback'](_0x13fceb=>{const {data:_0x1814b1}=_0x13fceb;if(_0x1814b1&&_0x1814b1['commandName']===_0x2dca73)return _0x1814b1['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0x284945)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0x284945)};});}_0x38e476('bold',t({'string':'bold','id':'FORMAT_BOLD'})),_0x38e476('italic',t({'string':'italic','id':'FORMAT_ITALIC'})),_0x38e476('underline',t({'string':'underline','id':'FORMAT_UNDERLINE'})),_0x38e476('code',t({'string':'code','id':'FORMAT_CODE'})),_0x38e476('strikethrough',t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'})),_0x38e476('subscript',t({'string':'subscript','id':'FORMAT_SUBSCRIPT'})),_0x38e476('superscript',t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'}));}}
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'}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x494018}from'ckeditor5/src/core';import{TreeWalker as Qt}from'ckeditor5/src/engine';export default class F extends _0x494018{['afterInit'](){const _0x1e7e99=this['editor'],{t:t}=_0x1e7e99['locale'];if(!_0x1e7e99['plugins']['has']('BlockQuoteEditing'))return;const _0x3187a1=_0x1e7e99['plugins']['get']('TrackChangesEditing'),_0x513b34=this['editor']['commands']['get']('blockQuote');_0x3187a1['enableCommand']('blockQuote',(_0x1b5e14,_0x44420d={})=>{const _0x5c6125=this['editor']['model']['document']['selection'],_0x4e24c9=_0x44420d&&void 0x0!==_0x44420d['forceValue']?_0x44420d['forceValue']:!_0x513b34['value'];let _0x45ad50=[];if(_0x4e24c9){const _0xa0be2f=Array['from'](_0x5c6125['getSelectedBlocks']())['filter'](_0x1d72b2=>Bt(_0x1d72b2)||function(_0x19f51f,_0x4e76cc){const _0x10c12f=_0x4e76cc['checkChild'](_0x19f51f['parent'],'blockQuote'),_0x54acc1=_0x4e76cc['checkChild'](['$root','blockQuote'],_0x19f51f);return _0x10c12f&&_0x54acc1;}(_0x1d72b2,this['editor']['model']['schema']));_0x45ad50=Lt(_0xa0be2f,_0x1e7e99['model']);}else{const _0x307128=Array['from'](_0x5c6125['getSelectedBlocks']())['filter'](_0x192374=>Bt(_0x192374));_0x45ad50=Lt(_0x307128,_0x1e7e99['model']);}_0x1e7e99['model']['change'](()=>{for(const _0x478279 of _0x45ad50)_0x3187a1['markBlockFormat'](_0x478279,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4e24c9}]});});}),_0x3187a1['_descriptionFactory']['registerDescriptionCallback'](_0xc79c94=>{const {data:_0x38f446}=_0xc79c94;if(_0x38f446&&'blockQuote'==_0x38f446['commandName']){const _0xd91bf2=t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});return _0x38f446['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0xd91bf2)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0xd91bf2)};}});}}function Bt(_0x4cd688){return'blockQuote'==_0x4cd688['parent']['name'];}function Lt(_0x49358c,_0x94d056){let _0x45774e,_0x423834=0x0;const _0x59a61e=[],_0x38f350=_0x94d056['schema'];for(;_0x423834<_0x49358c['length'];){const _0x4d9219=_0x49358c[_0x423834],_0x169b97=_0x49358c[_0x423834+0x1];_0x45774e||(_0x45774e=_0x94d056['createPositionBefore'](_0x4d9219)),Kt(_0x94d056,_0x4d9219,_0x169b97)||(_0x59a61e['push'](_0x94d056['createRange'](_0x45774e,_0x38f350['isObject'](_0x4d9219)?_0x94d056['createPositionAfter'](_0x4d9219):_0x94d056['createPositionAt'](_0x4d9219,'end'))),_0x45774e=null),_0x423834++;}return _0x59a61e;}function Kt(_0xbd39a9,_0x3d7dc2,_0x30a15c){if(!_0x30a15c)return!0x1;const _0x2a839f=_0xbd39a9['createPositionAfter'](_0x3d7dc2),_0x353a46=_0xbd39a9['createPositionBefore'](_0x30a15c),_0x580e04=new Qt({'boundaries':_0xbd39a9['createRange'](_0x2a839f,_0x353a46)});for(const _0x39bfaa of _0x580e04)if('text'==_0x39bfaa['type']||_0xbd39a9['schema']['isLimit'](_0x39bfaa['item']))return!0x1;return!0x0;}
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;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0xf0ff7a}from'ckeditor5/src/core';export default class L extends _0xf0ff7a{['afterInit'](){const _0x1bc218=this['editor'],{t:t}=_0x1bc218['locale'];if(!_0x1bc218['plugins']['has']('CodeBlock'))return;_0x1bc218['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerElementLabel']('codeBlock',_0x63574d=>t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x63574d));}}
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));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1b57=['addCommentThread','TrackChangesEditing','get','plugins','requires','editor','init'];(function(_0x432a22,_0x1b5777){var _0x4f2170=function(_0x5d68ad){while(--_0x5d68ad){_0x432a22['push'](_0x432a22['shift']());}};_0x4f2170(++_0x1b5777);}(_0x1b57,0x17e));var _0x4f21=function(_0x432a22,_0x1b5777){_0x432a22=_0x432a22-0x0;var _0x4f2170=_0x1b57[_0x432a22];return _0x4f2170;};import{Plugin as _0xb78be6}from'ckeditor5/src/core';import _0x550c22 from'@ckeditor/ckeditor5-comments/src/comments/commentsediting';export default class q extends _0xb78be6{static get[_0x4f21('0x0')](){return[_0x550c22];}[_0x4f21('0x2')](){this[_0x4f21('0x1')][_0x4f21('0x6')][_0x4f21('0x5')](_0x4f21('0x4'))['enableCommand'](_0x4f21('0x3'));}}
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'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17b2=['end','markerNameToElements','unbindElementFromMarkerName','setSelection','get','mapper','deleteForward','$graveyard','fromRange','root','init','createRange','start','removeMarker:suggestion:deletion','high','model','downcastDispatcher','rootName','delete','getFirstRange','unlock','lock','data','isCollapsed','unit','enableCommand','buffer','commands','document','TrackChangesEditing','plugins','showSuggestionHighlights','markerName','editing','selection'];(function(_0x4d40f3,_0x17b247){const _0x4df12d=function(_0x4d74a1){while(--_0x4d74a1){_0x4d40f3['push'](_0x4d40f3['shift']());}};_0x4df12d(++_0x17b247);}(_0x17b2,0x1a8));const _0x4df1=function(_0x4d40f3,_0x17b247){_0x4d40f3=_0x4d40f3-0x0;let _0x4df12d=_0x17b2[_0x4d40f3];return _0x4df12d;};import{Plugin as _0x48dc2b}from'ckeditor5/src/core';import{Delete as _0x3aed60}from'ckeditor5/src/typing';import{LiveRange as _0x2bcf41}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x2d107f}from'./utils';export default class H extends _0x48dc2b{static get['requires'](){return[_0x3aed60];}[_0x4df1('0x6')](){const _0x5f39a2=this['editor'],_0xb5869=_0x5f39a2[_0x4df1('0x1a')]['get'](_0x4df1('0x19'));_0xb5869[_0x4df1('0x15')](_0x4df1('0xe'));const _0x2576e5=_0x5f39a2[_0x4df1('0x17')][_0x4df1('0x0')](_0x4df1('0x2'));_0xb5869[_0x4df1('0x15')]('deleteForward',(_0x590197,_0x1e09ee={})=>{const _0xe13c74=_0x5f39a2[_0x4df1('0xb')]['createSelection'](_0x5f39a2[_0x4df1('0xb')][_0x4df1('0x18')][_0x4df1('0x1e')]);_0xe13c74[_0x4df1('0x13')]&&_0x5f39a2[_0x4df1('0xb')]['modifySelection'](_0xe13c74,{'direction':'forward','unit':_0x1e09ee[_0x4df1('0x14')]});const _0x2bc170=_0xe13c74[_0x4df1('0xf')](),_0x1d0fb6=_0x2bcf41[_0x4df1('0x4')](_0x2bc170);let _0x4391f1;_0x590197(_0x1e09ee),_0x4391f1=_0x4df1('0x3')==_0x1d0fb6[_0x4df1('0x5')][_0x4df1('0xd')]?_0x5f39a2[_0x4df1('0xb')][_0x4df1('0x7')](_0x2bc170[_0x4df1('0x8')]):_0x5f39a2['model'][_0x4df1('0x7')](_0x1d0fb6[_0x4df1('0x8')],_0x1d0fb6[_0x4df1('0x1f')]),_0x1d0fb6['detach'](),_0x5f39a2['model']['enqueueChange'](_0x2576e5[_0x4df1('0x16')]['batch'],_0x216ade=>{_0x2576e5[_0x4df1('0x16')][_0x4df1('0x11')](),_0x216ade[_0x4df1('0x22')](_0x216ade[_0x4df1('0x7')](_0x4391f1['end'])),_0x2576e5[_0x4df1('0x16')][_0x4df1('0x10')]();});}),_0x5f39a2[_0x4df1('0x1d')][_0x4df1('0xc')]['on']('addMarker:suggestion:deletion',_0x2d107f(_0x5f39a2,'merge'),{'priority':_0x4df1('0xa')}),_0x5f39a2[_0x4df1('0x12')]['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x49e476,_0x2bb1ff,_0x4d58fa)=>{_0x4d58fa['options'][_0x4df1('0x1b')]&&_0x2d107f(_0x5f39a2,'merge',{'showActiveMarker':!0x1})(_0x49e476,_0x2bb1ff,_0x4d58fa);},{'priority':_0x4df1('0xa')}),_0x5f39a2[_0x4df1('0x1d')]['downcastDispatcher']['on'](_0x4df1('0x9'),(_0x13f0f3,_0x1d7e7f,_0x38a4d8)=>{const _0x5c59c6=_0x38a4d8[_0x4df1('0x1')][_0x4df1('0x20')](_0x1d7e7f['markerName']);if(_0x5c59c6)for(const _0x161c7d of _0x5c59c6)_0x161c7d['is']('uiElement')&&(_0x38a4d8[_0x4df1('0x1')][_0x4df1('0x21')](_0x161c7d,_0x1d7e7f[_0x4df1('0x1c')]),_0x38a4d8['writer']['remove'](_0x161c7d));},{'priority':_0x4df1('0xa')});}}
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')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4bde=['enter','requires','editing','isAtStart','isLimit','unbindElementFromMarkerName','end','nextSibling','model','markerName','TrackChangesEditing','ck-suggestion-marker-split','createPositionAt','downcastDispatcher','mapper','createRange','high','isCollapsed','markInsertion','setSelection','removeMarker:suggestion:insertion','getFirstPosition','start','split','writer','document','init','addMarker:suggestion:insertion','change','parent','plugins','getFirstRange','markerNameToElements','get','data','remove'];(function(_0x211fa6,_0x4bde07){const _0x2b2d4a=function(_0x17f459){while(--_0x17f459){_0x211fa6['push'](_0x211fa6['shift']());}};_0x2b2d4a(++_0x4bde07);}(_0x4bde,0xef));const _0x2b2d=function(_0x211fa6,_0x4bde07){_0x211fa6=_0x211fa6-0x0;let _0x2b2d4a=_0x4bde[_0x211fa6];return _0x2b2d4a;};import{Plugin as _0x3ae3f7}from'ckeditor5/src/core';import{Enter as _0x21863f}from'ckeditor5/src/enter';import{LiveRange as _0x405585}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x22de63}from'./utils';export default class W extends _0x3ae3f7{static get[_0x2b2d('0xe')](){return[_0x21863f];}[_0x2b2d('0x3')](){const _0x327094=this['editor'],_0x1af930=_0x327094[_0x2b2d('0x7')][_0x2b2d('0xa')](_0x2b2d('0x17'));_0x1af930['enableCommand'](_0x2b2d('0xd'),_0x3b5c15=>{_0x327094[_0x2b2d('0x15')][_0x2b2d('0x5')](_0x319f6f=>{const _0xf6e59b=_0x327094['model'][_0x2b2d('0x2')]['selection'],_0x88de70=_0xf6e59b[_0x2b2d('0x22')](),_0x38a170=_0xf6e59b[_0x2b2d('0x1e')],_0x273d02=_0x405585['fromRange'](_0xf6e59b[_0x2b2d('0x8')]()),_0xeef2d9=_0x273d02[_0x2b2d('0x23')][_0x2b2d('0x6')],_0x484682=_0x273d02[_0x2b2d('0x13')][_0x2b2d('0x6')],_0x280ee3=!(_0x273d02['start'][_0x2b2d('0x10')]&&_0x273d02[_0x2b2d('0x13')]['isAtEnd']),_0x1d09b4=_0xeef2d9==_0x484682,_0x3330e1=!(_0x327094[_0x2b2d('0x15')]['schema'][_0x2b2d('0x11')](_0xeef2d9)||_0x327094[_0x2b2d('0x15')]['schema'][_0x2b2d('0x11')](_0x484682))&&(_0x38a170||_0x280ee3&&_0x1d09b4);if(_0x3b5c15(),_0x3330e1){const _0x3d390b=_0x327094[_0x2b2d('0x15')][_0x2b2d('0x19')](_0x88de70['parent'][_0x2b2d('0x14')],0x0),_0x2f15db=_0x319f6f[_0x2b2d('0x1c')](_0x88de70,_0x3d390b);_0x1af930[_0x2b2d('0x1f')](_0x2f15db);}else _0x319f6f[_0x2b2d('0x20')](_0x319f6f['createRange'](_0x273d02['end']));_0x273d02['detach']();});}),_0x327094['editing']['downcastDispatcher']['on'](_0x2b2d('0x4'),_0x22de63(_0x327094,_0x2b2d('0x0')),{'priority':_0x2b2d('0x1d')}),_0x327094[_0x2b2d('0xf')][_0x2b2d('0x1a')]['on'](_0x2b2d('0x21'),(_0x507cad,_0x64ac14,_0x211971)=>{const _0x3480b2=_0x211971['mapper'][_0x2b2d('0x9')](_0x64ac14['markerName']);if(_0x3480b2)for(const _0x24e69b of _0x3480b2)_0x24e69b['hasClass'](_0x2b2d('0x18'))&&(_0x211971[_0x2b2d('0x1b')][_0x2b2d('0x12')](_0x24e69b,_0x64ac14[_0x2b2d('0x16')]),_0x211971[_0x2b2d('0x1')][_0x2b2d('0xc')](_0x24e69b));},{'priority':'high'}),_0x327094[_0x2b2d('0xb')][_0x2b2d('0x1a')]['on']('addMarker:suggestion:insertion',(_0x583f76,_0x22798c,_0x475e93)=>{_0x475e93['options']['showSuggestionHighlights']&&_0x22de63(_0x327094,_0x2b2d('0x0'),{'showActiveMarker':!0x1})(_0x583f76,_0x22798c,_0x475e93);},{'priority':_0x2b2d('0x1d')});}}
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'});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x36f48f}from'ckeditor5/src/core';import{normalizeColorOptions as Ht}from'ckeditor5/src/ui';import{normalizeOptions as Jt}from'@ckeditor/ckeditor5-font/src/fontsize/utils';import{getRangesWithAttribute as Rt}from'./utils';const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];export default class z extends _0x36f48f{['afterInit'](){const {t:t}=this['editor']['locale'];for(const {pluginName:_0x4c771e,commandName:_0x4ca142}of Xt)this['editor']['plugins']['has'](_0x4c771e)&&this['_enableCommand'](_0x4ca142);this['editor']['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x14eb72=>{const {data:_0x2bb532}=_0x14eb72;if(null!=_0x2bb532){if('fontSize'==_0x2bb532['commandName']){const _0x21e73b=_0x2bb532['commandParams'][0x0]['value'];if(_0x21e73b){const _0x3146c5=Jt(this['editor']['config']['get']('fontSize.options'))['find'](_0x4df6fe=>_0x4df6fe['model']==_0x21e73b)['title'],_0x2a61e3=this['editor']['locale']['_t'](_0x3146c5)['toLowerCase']();return{'type':'format','content':t('*Set\x20font\x20size:*\x20%0',_0x2a61e3)};}return{'type':'format','content':t('*Reset\x20font\x20size*')};}if('fontFamily'==_0x2bb532['commandName']){const _0x3c23e0=_0x2bb532['commandParams'][0x0]['value'];return _0x3c23e0?{'type':'format','content':t('*Set\x20font\x20family:*\x20%0',_0x3c23e0)}:{'type':'format','content':t('*Reset\x20font\x20family*')};}if('fontColor'==_0x2bb532['commandName']){const _0x54bff0=_0x2bb532['commandParams'][0x0]['value'];if(_0x54bff0){const _0x55be4e=Ht(this['editor']['config']['get']('fontColor.colors'))['find'](_0x90ad62=>_0x90ad62['model']==_0x54bff0);let _0x12ecb3=_0x54bff0,_0x4e0a38='';return _0x55be4e&&(_0x12ecb3=_0x55be4e['label'],_0x4e0a38=this['editor']['locale']['_t'](_0x12ecb3)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20color:*\x20%0',_0x4e0a38)['trim'](),'color':{'value':_0x54bff0,'title':_0x4e0a38||_0x12ecb3}};}return{'type':'format','content':t('*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2bb532['commandName']){const _0x5eacf2=_0x2bb532['commandParams'][0x0]['value'];if(_0x5eacf2){const _0x4583c2=Ht(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x17b5d7=>_0x17b5d7['model']==_0x5eacf2);let _0x1639b4=_0x5eacf2,_0x4d968d='';return _0x4583c2&&(_0x1639b4=_0x4583c2['label'],_0x4d968d=this['editor']['locale']['_t'](_0x1639b4)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20background\x20color:*\x20%0',_0x4d968d)['trim'](),'color':{'value':_0x5eacf2,'title':_0x4d968d||_0x1639b4}};}return{'type':'format','content':t('*Reset\x20font\x20background\x20color*')};}}});}['_enableCommand'](_0x2948d7){const _0x104255=this['editor'];_0x104255['plugins']['get']('TrackChangesEditing')['enableCommand'](_0x2948d7,(_0x2a4d4e,_0x2468e7={})=>{const _0x35c854=_0x104255['model']['document']['selection'],_0xc08a33=_0x2468e7['value'];_0x35c854['isCollapsed']?_0x2a4d4e(_0x2468e7):_0x104255['model']['change'](()=>{const _0x5248b6=Array['from'](_0x35c854['getRanges']());for(const _0x4216cf of _0x5248b6){const _0x45322f=_0xc08a33?[_0x4216cf]:Rt(_0x2948d7,_0x4216cf,_0x104255['model']);for(const _0x3ba1bc of _0x45322f)_0x104255['plugins']['get']('TrackChangesEditing')['markInlineFormat'](_0x3ba1bc,{'commandName':_0x2948d7,'commandParams':[{'value':_0xc08a33}]});}});});}}
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}]});}});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x38156a}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x57a6a9}from'./utils';export default class J extends _0x38156a{['afterInit'](){const _0x3b9d82=this['editor'],{t:t}=_0x3b9d82['locale'],_0x5625c0=_0x3b9d82['config']['get']('heading.options');if(!_0x3b9d82['plugins']['has']('HeadingEditing'))return;const _0x47474e=_0x3b9d82['plugins']['get']('TrackChangesEditing');_0x47474e['enableCommand']('heading',(_0x3238d9,_0x11586d)=>{const _0x157258=_0x11586d['value'],_0x46ee09=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x380558=>function(_0x45fdd1,_0x394bcf,_0x33e7b0){return _0x33e7b0['checkChild'](_0x45fdd1['parent'],_0x394bcf)&&!_0x33e7b0['isObject'](_0x45fdd1)&&_0x45fdd1['name']!=_0x394bcf;}(_0x380558,_0x157258,this['editor']['model']['schema']));_0x3b9d82['model']['change'](()=>{for(const _0x427a04 of _0x46ee09)_0x47474e['markBlockFormat'](_0x427a04,{'commandName':'heading','commandParams':[_0x11586d],'formatGroupId':'blockName'},_0x57a6a9(_0x427a04));});});for(const _0x96666f of _0x5625c0)'paragraph'!=_0x96666f['model']&&_0x47474e['_descriptionFactory']['registerElementLabel'](_0x96666f['model'],_0x4821e6=>{const _0x5b9a84=tn(_0x96666f['model']);return null!==_0x5b9a84?_0xa4b300(_0x4821e6,_0x5b9a84):_0x50c7db(_0x4821e6,_0x96666f['title']);});function _0xa4b300(_0x4621e5,_0x19699a){return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},[_0x4621e5,_0x19699a]);}function _0x50c7db(_0x196ff4,_0x5a31b2){return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},[_0x196ff4,_0x5a31b2]);}_0x47474e['_descriptionFactory']['registerDescriptionCallback'](_0x2d5a18=>{const {type:_0x5b30b8,data:_0x37a305}=_0x2d5a18;if('formatBlock'==_0x5b30b8&&_0x37a305&&'heading'==_0x37a305['commandName']){const _0xb491dd=_0x37a305['commandParams'][0x0]['value'],_0x573078=tn(_0xb491dd);if(null!==_0x573078)return{'type':'format','content':t('*Change\x20to:*\x20%0',_0xa4b300(0x1,_0x573078))};const _0x2a0ded=_0x5625c0['find'](_0x2827ee=>_0x2827ee['model']===_0xb491dd)['title'];return{'type':'format','content':t('*Change\x20to:*\x20%0',_0x50c7db(0x1,_0x2a0ded))};}});}}function tn(_0x28ef52){const _0x18f3b1=_0x28ef52['match'](/^heading(\d+)$/);return _0x18f3b1?_0x18f3b1[0x1]:null;}
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;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x4f68ca}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';export default class K extends _0x4f68ca{['afterInit'](){const _0x3dc23a=this['editor'];if(!_0x3dc23a['plugins']['has']('HighlightEditing'))return;const _0x31b8af=_0x3dc23a['plugins']['get']('TrackChangesEditing');_0x31b8af['enableCommand']('highlight',(_0x235093,_0x3ab185={})=>{const _0x204441=_0x3dc23a['model']['document']['selection'],_0x3b90c7=_0x204441['getAttribute']('highlight');let _0x51e0f7=_0x3ab185['value'],_0x16bed3=[];if(_0x204441['isCollapsed']){const _0xdbcdc5=_0x204441['getFirstPosition']();if(!_0x204441['hasAttribute']('highlight'))return void _0x235093(_0x3ab185);{const _0x1bfe9a=_0x56cb82=>_0x56cb82['item']['getAttribute']('highlight')===_0x3b90c7,_0x44fb99=_0xdbcdc5['getLastMatchingPosition'](_0x1bfe9a,{'direction':'backward'}),_0x4516c5=_0xdbcdc5['getLastMatchingPosition'](_0x1bfe9a);_0x16bed3=[_0x3dc23a['model']['createRange'](_0x44fb99,_0x4516c5)],_0x51e0f7==_0x3b90c7&&(_0x51e0f7=null);}}else for(const _0x48052c of _0x204441['getRanges']())_0x51e0f7?_0x16bed3['push'](_0x48052c):_0x16bed3['push'](...Rt('highlight',_0x48052c,_0x3dc23a['model']));_0x3dc23a['model']['change'](()=>{for(const _0x334899 of _0x16bed3)_0x31b8af['markInlineFormat'](_0x334899,{'commandName':'highlight','commandParams':[{'value':_0x51e0f7}]});});});const {t:t}=_0x3dc23a['locale'];_0x31b8af['_descriptionFactory']['registerDescriptionCallback'](_0x2ee754=>{const {type:_0x33d5fb,data:_0x1d9f57}=_0x2ee754;if('formatInline'==_0x33d5fb&&_0x1d9f57&&'highlight'==_0x1d9f57['commandName']){const _0x36a645=_0x1d9f57['commandParams'][0x0]['value'];if(_0x36a645){const _0xceb38a=_0x3dc23a['config']['get']('highlight.options')['find'](_0x46bbc5=>_0x46bbc5['model']==_0x36a645),_0x5ba7bd=_0x3dc23a['locale']['_t'](_0xceb38a['title'])['toLowerCase']();return{'type':'format','content':t('*Set\x20highlight:*\x20%0',_0x5ba7bd),'color':{'value':_0xceb38a['color'],'title':_0xceb38a['title']}};}return{'type':'format','content':t('*Remove\x20highlight*',t({'string':'highlight','id':'FORMAT_HIGHLIGHT'}))};}});}}
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'}))};}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x546d9d}from'ckeditor5/src/core';import'../../theme/integrations/horizontalline.css';export default class Q extends _0x546d9d{['afterInit'](){const _0x5e3297=this['editor'];if(!_0x5e3297['plugins']['has']('HorizontalLineEditing'))return;_0x5e3297['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x33b906=_0x5e3297['plugins']['get']('TrackChangesEditing'),{t:t}=_0x5e3297['locale'];_0x33b906['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x2d1b0b=>t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x2d1b0b)),_0x5e3297['conversion']['for']('dataDowncast')['elementToElement']({'model':'horizontalLine','view':(_0x18df80,{writer:_0x161533,options:_0xfee6c})=>{if(!_0xfee6c['showSuggestionHighlights'])return;const _0x50e9de=_0x161533['createContainerElement']('div'),_0x166981=_0x161533['createEmptyElement']('hr');return _0x161533['addClass']('ck-horizontal-line',_0x50e9de),_0x161533['insert'](_0x161533['createPositionAt'](_0x50e9de,0x0),_0x166981),_0x50e9de;},'converterPriority':'high'});}}
23
+ import{Plugin as _0x310bac}from'ckeditor5/src/core';import'../../theme/integrations/horizontalline.css';export default class W extends _0x310bac{['afterInit'](){const _0x50f4ad=this['editor'];if(!_0x50f4ad['plugins']['has']('HorizontalLineEditing'))return;_0x50f4ad['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4f12d1=_0x50f4ad['plugins']['get']('TrackChangesEditing'),{t:t}=_0x50f4ad['locale'];_0x4f12d1['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x32ec5c=>t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x32ec5c)),_0x50f4ad['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x521bed,{writer:_0x383c74,options:_0x1c7e3e})=>{if(!_0x1c7e3e['showSuggestionHighlights'])return;const _0x137871=_0x383c74['createContainerElement']('div'),_0x1186aa=_0x383c74['createEmptyElement']('hr');return _0x383c74['addClass']('ck-horizontal-line',_0x137871),_0x383c74['insert'](_0x383c74['createPositionAt'](_0x137871,0x0),_0x1186aa),_0x137871;},'converterPriority':'high'});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x366f31}from'ckeditor5/src/core';import{LivePosition as te}from'ckeditor5/src/engine';import{uid as _0x236ba6}from'ckeditor5/src/utils';import{getCaptionFromImageModelElement as _0x51443d}from'@ckeditor/ckeditor5-image/src/imagecaption/utils';import'../../theme/integrations/image.css';export default class V extends _0x366f31{['afterInit'](){const _0x1fa6a3=this['editor'];if(!_0x1fa6a3['plugins']['has']('ImageEditing'))return;const _0x10823f=_0x1fa6a3['plugins']['get']('TrackChangesEditing'),_0x34af2=_0x1fa6a3['plugins']['get']('ImageUtils'),_0x999d63={},{t:t}=_0x1fa6a3['locale'];if(_0x10823f['enableCommand']('insertImage'),_0x10823f['_descriptionFactory']['registerElementLabel']('imageBlock',_0x234801=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x234801)),_0x10823f['_descriptionFactory']['registerElementLabel']('imageInline',_0x4381e1=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4381e1)),_0x10823f['_descriptionFactory']['registerElementLabel']('caption',t({'string':'caption','id':'ELEMENT_CAPTION'})),_0x1fa6a3['plugins']['has']('ImageUploadEditing')&&_0x10823f['enableCommand']('uploadImage'),_0x1fa6a3['plugins']['has']('ImageBlockEditing')&&_0x1fa6a3['plugins']['has']('ImageInlineEditing')&&(_0x10823f['enableCommand']('imageTypeInline',(_0x3c92d3,_0xcde06b)=>{const _0x305085=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']);_0x1fa6a3['model']['change'](()=>{_0x10823f['markBlockFormat'](_0x305085,{'commandName':'imageTypeInline','commandParams':[_0xcde06b]},[],'convertBlockImageToInline');});}),_0x10823f['enableCommand']('imageTypeBlock',(_0x326c08,_0x24a7bf)=>{_0x1fa6a3['model']['change'](_0x5e4442=>{let _0x139291=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x324d61=_0x5e4442['createRangeOn'](_0x139291);const _0x377c9a=te['fromPosition'](_0x324d61['start'],'toPrevious'),_0x3473bf=te['fromPosition'](_0x324d61['end'],'toNext');_0x10823f['forceDefaultExecution'](()=>_0x326c08(_0x24a7bf)),_0x139291=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x324d61=_0x5e4442['createRangeOn'](_0x139291);const _0x15bfab=_0x5e4442['createRange'](_0x377c9a,_0x3473bf);_0x377c9a['detach'](),_0x3473bf['detach'](),_0x10823f['markBlockFormat'](_0x139291,{'commandName':'imageTypeInline'},[],'convertInlineImageToBlock'),_0x15bfab['start']['isBefore'](_0x324d61['start'])&&_0x10823f['markInsertion'](_0x5e4442['createRange'](_0x15bfab['start'],_0x324d61['start']),'convertInlineImageToBlock'),_0x324d61['end']['isBefore'](_0x15bfab['end'])&&_0x10823f['markInsertion'](_0x5e4442['createRange'](_0x324d61['end'],_0x15bfab['end']),'convertInlineImageToBlock');});}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x10823f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x10823f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x540cc2])=>{const _0x195feb=_0x10823f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x41e06c=_0x540cc2['start'],_0x302c81=_0x540cc2['end'];const _0x2f128b=_0x1fa6a3['model']['schema']['getNearestSelectionRange'](_0x41e06c,'backward'),_0x38d185=_0x1fa6a3['model']['schema']['getNearestSelectionRange'](_0x302c81,'forward');_0x2f128b['isCollapsed']&&(_0x41e06c=_0x2f128b['start']),_0x38d185['isCollapsed']&&(_0x302c81=_0x38d185['end']),_0x195feb([_0x1fa6a3['model']['createRange'](_0x41e06c,_0x302c81)]);}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2daf3e),_0x10823f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2daf3e)),_0x1fa6a3['plugins']['has']('ImageCaptionEditing')&&(_0x10823f['enableCommand']('toggleImageCaption',(_0x148b76,_0x19a05f)=>{let _0x170f78=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x4c9a43=_0x51443d(_0x170f78);_0x1fa6a3['model']['change'](()=>{if(_0x4c9a43)return void _0x10823f['markDeletion'](_0x1fa6a3['model']['createRangeOn'](_0x4c9a43));const _0x2c20ba=_0x34af2['isBlockImage'](_0x170f78);_0x148b76(_0x19a05f),_0x170f78=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x4c9a43=_0x51443d(_0x170f78),_0x10823f['markInsertion'](_0x1fa6a3['model']['createRangeOn'](_0x4c9a43),_0x2c20ba?null:'imageCaption');});}),_0x10823f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2daf3e)),_0x1fa6a3['plugins']['has']('ImageStyleEditing')){_0x10823f['enableCommand']('imageStyle',(_0x1b121b,_0xf0a0fd)=>{const _0x2a3a21=_0x1fa6a3['plugins']['get']('Users')['me'],_0x238034=_0x1fa6a3['commands']['get']('imageStyle');let _0x189d74=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x35a2f0=_0x1fa6a3['model']['createRangeOn'](_0x189d74),_0x47f2d7=_0x238034['value'];if(_0x47f2d7==_0xf0a0fd['value'])return;const _0x4da482={'commandName':'imageStyle','commandParams':[_0xf0a0fd],'formatGroupId':_0x236ba6()};_0x1fa6a3['model']['change'](()=>{if(_0x10823f['getSuggestions']()['filter'](_0x3b123b=>_0x3b123b['isInContent']&&_0x2a3a21==_0x3b123b['author']&&('formatBlock'==_0x3b123b['type']||'formatInline'==_0x3b123b['type'])&&('imageStylePreApply'==_0x3b123b['subType']||'imageStylePostApply'==_0x3b123b['subType'])&&_0x3b123b['getFirstRange']()['isEqual'](_0x35a2f0))['forEach'](_0x49bafa=>_0x10823f['discardSuggestion'](_0x49bafa['head'])),_0x189d74=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x35a2f0=_0x1fa6a3['model']['createRangeOn'](_0x189d74),_0x238034['refresh'](),_0x1fa6a3['commands']['get']('imageTypeInline')['refresh'](),_0x1fa6a3['commands']['get']('imageTypeBlock')['refresh'](),_0x47f2d7=_0x238034['value'],_0x47f2d7!=_0xf0a0fd['value'])return _0x34af2['isInlineImage'](_0x189d74)&&_0x238034['shouldConvertImageType'](_0xf0a0fd['value'],_0x189d74)?(_0x1b121b(_0xf0a0fd),_0x189d74=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),void _0x10823f['markBlockFormat'](_0x189d74,{..._0x4da482,'commandReversedParams':[{'value':_0x47f2d7||null}]},[],'imageStylePreApply')):void(_0x34af2['isBlockImage'](_0x189d74)?_0x10823f['markBlockFormat'](_0x189d74,_0x4da482,[],'imageStylePostApply'):_0x10823f['markInlineFormat'](_0x35a2f0,_0x4da482,'imageStylePostApply'));});});for(const _0x41c5d2 of _0x1fa6a3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x999d63[_0x41c5d2['name']]=_0x41c5d2['title']['toLowerCase']();_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x365f39,_0x2941f6)=>{_0x10823f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x365f39,{'commandName':_0x2941f6['commandName'],'commandParams':_0x2941f6['commandReversedParams']});}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',_0x2daf3e);}const _0x15464e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x33ba78(_0x4200e4,_0x171eb5){const _0x2666be=_0x15464e['findIndex'](({type:_0x277d1d,subType:_0x11d005})=>_0x4200e4['type']==_0x277d1d&&_0x4200e4['subType']==_0x11d005),_0x4411c0=_0x15464e['findIndex'](({type:_0x199eac,subType:_0x2b3031})=>_0x171eb5['type']==_0x199eac&&_0x171eb5['subType']==_0x2b3031);if(_0x2666be<0x0||_0x4411c0<0x0)return!0x1;const _0x41f241=_0x4200e4['getFirstRange'](),_0x3d88e4=_0x171eb5['getFirstRange']();if((0x0==_0x2666be||0x1==_0x2666be)&&0x2==_0x4411c0&&_0x41f241['isIntersecting'](_0x3d88e4))return!0x0;if(0x2==_0x2666be&&0x3==_0x4411c0){const _0xa6a1c4=_0x10823f['_findSuggestions'](_0x41f241,'insertion')['filter'](({suggestion:_0x533a56,meta:_0x47f3fd})=>_0x47f3fd['isOwn']&&'convertInlineImageToBlock'==_0x533a56['subType']);if(_0xa6a1c4['length']>0x1&&_0x3d88e4['end']['isEqual'](_0x41f241['start']))return!0x0;if(0x1==_0xa6a1c4['length']&&(_0x41f241['start']['isEqual'](_0x3d88e4['end'])||_0x41f241['end']['isEqual'](_0x3d88e4['start'])))return!0x0;}if(0x3==_0x2666be&&0x3==_0x4411c0&&_0x41f241['start']['isBefore'](_0x3d88e4['start'])){const _0x4c9203=_0x41f241['end']['nodeAfter'],_0x45b313=_0x3d88e4['start']['nodeBefore'];return _0x34af2['isBlockImage'](_0x4c9203)&&_0x4c9203===_0x45b313;}return!0x1;}function _0x2daf3e(_0x238e87,_0x4e794d){return _0x33ba78(_0x238e87,_0x4e794d)?[_0x238e87,_0x4e794d]:_0x33ba78(_0x4e794d,_0x238e87)?[_0x4e794d,_0x238e87]:null;}_0x1fa6a3['model']['document']['registerPostFixer'](()=>{let _0x519e5e=!0x1;const _0x15c89b=Array['from'](_0x1fa6a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x370126,data:_0x95eee3}of _0x15c89b){const {group:_0x5355b3,type:_0x385494,subType:_0x21e6a8,id:_0x454618}=_0x10823f['_splitMarkerName'](_0x370126);if('suggestion'==_0x5355b3&&_0x10823f['hasSuggestion'](_0x454618)){if('formatBlock'==_0x385494&&('imageStylePreApply'==_0x21e6a8||'imageStylePostApply'==_0x21e6a8)){const _0x23c638=_0x10823f['getSuggestion'](_0x454618);if(_0x95eee3['newRange']){const _0xab53c2=_0x23c638['getFirstRange']()['getContainedElement']();if(_0x34af2['isBlockImage'](_0xab53c2))continue;_0x10823f['discardSuggestion'](_0x23c638),_0x519e5e=!0x0;}}if('insertion'==_0x385494&&'imageCaption'==_0x21e6a8&&!_0x95eee3['newRange']){const _0x3457ae=_0x10823f['getSuggestion'](_0x454618);_0x3457ae['next']&&_0x3457ae['next']['isInContent']&&(_0x10823f['discardSuggestion'](_0x3457ae['next']),_0x519e5e=!0x0);}}}return _0x519e5e;}),_0x1fa6a3['plugins']['has']('ImageResize')&&_0x10823f['enableCommand']('resizeImage',(_0x2764db,_0x3c1ada)=>{const _0x414d26=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']);_0x414d26['getAttribute']('width')!=_0x3c1ada['width']&&_0x1fa6a3['model']['change'](()=>{_0x10823f['markBlockFormat'](_0x414d26,{'commandName':'resizeImage','commandParams':[_0x3c1ada]});});}),_0x1fa6a3['plugins']['has']('ImageTextAlternativeEditing')&&_0x10823f['enableCommand']('imageTextAlternative',(_0x48c1bd,_0x6c1d71)=>{const _0xf87f3b=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']);(_0xf87f3b['hasAttribute']('alt')?_0xf87f3b['getAttribute']('alt'):'')!=_0x6c1d71['newValue']&&_0x1fa6a3['model']['change'](()=>{_0x10823f['markBlockFormat'](_0xf87f3b,{'commandName':'imageTextAlternative','commandParams':[_0x6c1d71]});});}),_0x10823f['_descriptionFactory']['registerDescriptionCallback'](_0x5cb408=>{if(!!_0x15464e['find'](({type:_0xbf7f35,subType:_0x524444})=>_0x5cb408['type']==_0xbf7f35&&_0x5cb408['subType']==_0x524444))return _0x5cb408['previous']?{}:void 0x0;}),_0x10823f['_descriptionFactory']['registerDescriptionCallback'](_0x329347=>{if('insertion'==_0x329347['type']||'deletion'==_0x329347['type']){const _0x19bee6=_0x329347['getContainedElement']();if(_0x19bee6&&_0x19bee6['is']('element','caption'))return{'type':'insertion'==_0x329347['type']?'addObject':'removeObject','name':_0x19bee6['name'],'quantity':0x1};}}),_0x10823f['_descriptionFactory']['registerDescriptionCallback'](_0x5c1a5e=>'formatBlock'==_0x5c1a5e['type']&&'convertInlineImageToBlock'==_0x5c1a5e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5c1a5e['type']&&'convertBlockImageToInline'==_0x5c1a5e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x10823f['_descriptionFactory']['registerDescriptionCallback'](_0x477765=>{const {data:_0x482c51}=_0x477765;if(_0x482c51){if('imageStyle'==_0x482c51['commandName']){const _0x5a1f4c=_0x482c51['commandParams'][0x0]['value'];return _0x1ee4a5('side'===_0x5a1f4c?t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'}):_0x999d63[_0x5a1f4c]||_0x5a1f4c);}if('imageTextAlternative'==_0x482c51['commandName']){const _0x10af19=_0x482c51['commandParams'][0x0]['newValue'];return _0x10af19?{'type':'format','content':t('*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x10af19+'\x22')}:{'type':'format','content':t('*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x482c51['commandName']){const _0x355576=_0x482c51['commandParams'][0x0]['width'];return _0x355576?{'type':'format','content':t('*Set\x20image\x20width:*\x20%0',_0x355576)}:{'type':'format','content':t('*Reset\x20image\x20width*')};}}function _0x1ee4a5(_0x1f6abb){return{'type':'format','content':t('*Format:*\x20%0',_0x1f6abb)};}});}}
23
+ import{Plugin as _0x52bab4}from'ckeditor5/src/core';import{LivePosition as te}from'ckeditor5/src/engine';import{uid as _0x329abb}from'ckeditor5/src/utils';import'../../theme/integrations/image.css';export default class z extends _0x52bab4{['afterInit'](){const _0x118954=this['editor'];if(!_0x118954['plugins']['has']('ImageEditing'))return;const _0x31d716=_0x118954['plugins']['get']('TrackChangesEditing'),_0x37678e=_0x118954['plugins']['get']('ImageUtils'),_0x51435c={},{t:t}=_0x118954['locale'];if(_0x31d716['enableCommand']('insertImage'),_0x31d716['_descriptionFactory']['registerElementLabel']('imageBlock',_0x1b3798=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1b3798)),_0x31d716['_descriptionFactory']['registerElementLabel']('imageInline',_0x487581=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x487581)),_0x31d716['_descriptionFactory']['registerElementLabel']('caption',t({'string':'caption','id':'ELEMENT_CAPTION'})),_0x118954['plugins']['has']('ImageUploadEditing')&&_0x31d716['enableCommand']('uploadImage'),_0x118954['plugins']['has']('ImageBlockEditing')&&_0x118954['plugins']['has']('ImageInlineEditing')&&(_0x31d716['enableCommand']('imageTypeInline',(_0x516836,_0x2bb242)=>{const _0x299acc=_0x37678e['getClosestSelectedImageElement'](_0x118954['model']['document']['selection']);_0x118954['model']['change'](()=>{_0x31d716['markBlockFormat'](_0x299acc,{'commandName':'imageTypeInline','commandParams':[_0x2bb242]},[],'convertBlockImageToInline');});}),_0x31d716['enableCommand']('imageTypeBlock',(_0x1ec405,_0x273eb7)=>{_0x118954['model']['change'](_0x41a330=>{let _0x3191ef=_0x37678e['getClosestSelectedImageElement'](_0x118954['model']['document']['selection']),_0x3299f4=_0x41a330['createRangeOn'](_0x3191ef);const _0x2e739f=te['fromPosition'](_0x3299f4['start'],'toPrevious'),_0x9e15fe=te['fromPosition'](_0x3299f4['end'],'toNext');_0x31d716['forceDefaultExecution'](()=>_0x1ec405(_0x273eb7)),_0x3191ef=_0x37678e['getClosestSelectedImageElement'](_0x118954['model']['document']['selection']),_0x3299f4=_0x41a330['createRangeOn'](_0x3191ef);const _0x4a00d9=_0x41a330['createRange'](_0x2e739f,_0x9e15fe);_0x2e739f['detach'](),_0x9e15fe['detach'](),_0x31d716['markBlockFormat'](_0x3191ef,{'commandName':'imageTypeInline'},[],'convertInlineImageToBlock'),_0x4a00d9['start']['isBefore'](_0x3299f4['start'])&&_0x31d716['markInsertion'](_0x41a330['createRange'](_0x4a00d9['start'],_0x3299f4['start']),'convertInlineImageToBlock'),_0x3299f4['end']['isBefore'](_0x4a00d9['end'])&&_0x31d716['markInsertion'](_0x41a330['createRange'](_0x3299f4['end'],_0x4a00d9['end']),'convertInlineImageToBlock');});}),_0x31d716['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>{}),_0x31d716['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>{}),_0x31d716['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x31d716['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x31d716['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>{}),_0x31d716['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x473010])=>{const _0x1483fd=_0x31d716['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5b05c6=_0x473010['start'],_0x25d6a4=_0x473010['end'];const _0x238009=_0x118954['model']['schema']['getNearestSelectionRange'](_0x5b05c6,'backward'),_0x51c59f=_0x118954['model']['schema']['getNearestSelectionRange'](_0x25d6a4,'forward');_0x238009['isCollapsed']&&(_0x5b05c6=_0x238009['start']),_0x51c59f['isCollapsed']&&(_0x25d6a4=_0x51c59f['end']),_0x1483fd([_0x118954['model']['createRange'](_0x5b05c6,_0x25d6a4)]);}),_0x31d716['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1aa644),_0x31d716['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1aa644)),_0x118954['plugins']['has']('ImageCaptionEditing')&&(_0x31d716['enableCommand']('toggleImageCaption',(_0x48cb20,_0x1275c3)=>{const _0x57f4a4=_0x118954['plugins']['get']('ImageCaptionUtils');let _0x2fc64d=_0x37678e['getClosestSelectedImageElement'](_0x118954['model']['document']['selection']),_0x231ded=_0x57f4a4['getCaptionFromImageModelElement'](_0x2fc64d);_0x118954['model']['change'](()=>{if(_0x231ded)return void _0x31d716['markDeletion'](_0x118954['model']['createRangeOn'](_0x231ded));const _0x74ad5f=_0x37678e['isBlockImage'](_0x2fc64d);_0x48cb20(_0x1275c3),_0x2fc64d=_0x37678e['getClosestSelectedImageElement'](_0x118954['model']['document']['selection']),_0x231ded=_0x57f4a4['getCaptionFromImageModelElement'](_0x2fc64d),_0x31d716['markInsertion'](_0x118954['model']['createRangeOn'](_0x231ded),_0x74ad5f?null:'imageCaption');});}),_0x31d716['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1aa644)),_0x118954['plugins']['has']('ImageStyleEditing')){_0x31d716['enableCommand']('imageStyle',(_0x11f053,_0x4086f8)=>{const _0x5745cf=_0x118954['plugins']['get']('Users')['me'],_0x4674a8=_0x118954['commands']['get']('imageStyle');let _0x79d89c=_0x37678e['getClosestSelectedImageElement'](_0x118954['model']['document']['selection']),_0x2165dc=_0x118954['model']['createRangeOn'](_0x79d89c),_0x5bbfe8=_0x4674a8['value'];if(_0x5bbfe8==_0x4086f8['value'])return;const _0x2e815a={'commandName':'imageStyle','commandParams':[_0x4086f8],'formatGroupId':_0x329abb()};_0x118954['model']['change'](()=>{if(_0x31d716['getSuggestions']()['filter'](_0x3bd4d1=>_0x3bd4d1['isInContent']&&_0x5745cf==_0x3bd4d1['author']&&('formatBlock'==_0x3bd4d1['type']||'formatInline'==_0x3bd4d1['type'])&&('imageStylePreApply'==_0x3bd4d1['subType']||'imageStylePostApply'==_0x3bd4d1['subType'])&&_0x3bd4d1['getFirstRange']()['isEqual'](_0x2165dc))['forEach'](_0x3d651c=>_0x31d716['discardSuggestion'](_0x3d651c['head'])),_0x79d89c=_0x37678e['getClosestSelectedImageElement'](_0x118954['model']['document']['selection']),_0x2165dc=_0x118954['model']['createRangeOn'](_0x79d89c),_0x4674a8['refresh'](),_0x118954['commands']['get']('imageTypeInline')['refresh'](),_0x118954['commands']['get']('imageTypeBlock')['refresh'](),_0x5bbfe8=_0x4674a8['value'],_0x5bbfe8!=_0x4086f8['value'])return _0x37678e['isInlineImage'](_0x79d89c)&&_0x4674a8['shouldConvertImageType'](_0x4086f8['value'],_0x79d89c)?(_0x11f053(_0x4086f8),_0x79d89c=_0x37678e['getClosestSelectedImageElement'](_0x118954['model']['document']['selection']),void _0x31d716['markBlockFormat'](_0x79d89c,{..._0x2e815a,'commandReversedParams':[{'value':_0x5bbfe8||null}]},[],'imageStylePreApply')):void(_0x37678e['isBlockImage'](_0x79d89c)?_0x31d716['markBlockFormat'](_0x79d89c,_0x2e815a,[],'imageStylePostApply'):_0x31d716['markInlineFormat'](_0x2165dc,_0x2e815a,'imageStylePostApply'));});});for(const _0x44a7f7 of _0x118954['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x51435c[_0x44a7f7['name']]=_0x44a7f7['title']['toLowerCase']();_0x31d716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>{}),_0x31d716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>{}),_0x31d716['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>{}),_0x31d716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',()=>{}),_0x31d716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4353cb,_0x3b28b0)=>{_0x31d716['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4353cb,{'commandName':_0x3b28b0['commandName'],'commandParams':_0x3b28b0['commandReversedParams']});}),_0x31d716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',_0x1aa644);}const _0x181d3a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3cd833(_0x4c04f2,_0x388901){const _0x4bd085=_0x181d3a['findIndex'](({type:_0x3372c5,subType:_0x72c0b7})=>_0x4c04f2['type']==_0x3372c5&&_0x4c04f2['subType']==_0x72c0b7),_0x5766db=_0x181d3a['findIndex'](({type:_0x247768,subType:_0x571bac})=>_0x388901['type']==_0x247768&&_0x388901['subType']==_0x571bac);if(_0x4bd085<0x0||_0x5766db<0x0)return!0x1;const _0xc91a5e=_0x4c04f2['getFirstRange'](),_0x5b1625=_0x388901['getFirstRange']();if((0x0==_0x4bd085||0x1==_0x4bd085)&&0x2==_0x5766db&&_0xc91a5e['isIntersecting'](_0x5b1625))return!0x0;if(0x2==_0x4bd085&&0x3==_0x5766db){const _0x36f4d3=_0x31d716['_findSuggestions'](_0xc91a5e,'insertion')['filter'](({suggestion:_0x3f92d6,meta:_0x54cccb})=>_0x54cccb['isOwn']&&'convertInlineImageToBlock'==_0x3f92d6['subType']);if(_0x36f4d3['length']>0x1&&_0x5b1625['end']['isEqual'](_0xc91a5e['start']))return!0x0;if(0x1==_0x36f4d3['length']&&(_0xc91a5e['start']['isEqual'](_0x5b1625['end'])||_0xc91a5e['end']['isEqual'](_0x5b1625['start'])))return!0x0;}if(0x3==_0x4bd085&&0x3==_0x5766db&&_0xc91a5e['start']['isBefore'](_0x5b1625['start'])){const _0x171f0b=_0xc91a5e['end']['nodeAfter'],_0x570eab=_0x5b1625['start']['nodeBefore'];return _0x37678e['isBlockImage'](_0x171f0b)&&_0x171f0b===_0x570eab;}return!0x1;}function _0x1aa644(_0x1e3590,_0x1572da){return _0x3cd833(_0x1e3590,_0x1572da)?[_0x1e3590,_0x1572da]:_0x3cd833(_0x1572da,_0x1e3590)?[_0x1572da,_0x1e3590]:null;}_0x118954['model']['document']['registerPostFixer'](()=>{let _0x175ddc=!0x1;const _0x44c3a5=Array['from'](_0x118954['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xffe7f3,data:_0x5c57c6}of _0x44c3a5){const {group:_0x3558fc,type:_0x48bb61,subType:_0x4f4287,id:_0x3bec2a}=_0x31d716['_splitMarkerName'](_0xffe7f3);if('suggestion'==_0x3558fc&&_0x31d716['hasSuggestion'](_0x3bec2a)){if('formatBlock'==_0x48bb61&&('imageStylePreApply'==_0x4f4287||'imageStylePostApply'==_0x4f4287)){const _0x41f00f=_0x31d716['getSuggestion'](_0x3bec2a);if(_0x5c57c6['newRange']){const _0x3808ec=_0x41f00f['getFirstRange']()['getContainedElement']();if(_0x37678e['isBlockImage'](_0x3808ec))continue;_0x31d716['discardSuggestion'](_0x41f00f),_0x175ddc=!0x0;}}if('insertion'==_0x48bb61&&'imageCaption'==_0x4f4287&&!_0x5c57c6['newRange']){const _0x8987c0=_0x31d716['getSuggestion'](_0x3bec2a);_0x8987c0['next']&&_0x8987c0['next']['isInContent']&&(_0x31d716['discardSuggestion'](_0x8987c0['next']),_0x175ddc=!0x0);}}}return _0x175ddc;}),_0x118954['plugins']['has']('ImageResize')&&_0x31d716['enableCommand']('resizeImage',(_0x19d905,_0x2c3cfc)=>{const _0x23c469=_0x37678e['getClosestSelectedImageElement'](_0x118954['model']['document']['selection']);_0x23c469['getAttribute']('width')!=_0x2c3cfc['width']&&_0x118954['model']['change'](()=>{_0x31d716['markBlockFormat'](_0x23c469,{'commandName':'resizeImage','commandParams':[_0x2c3cfc]});});}),_0x118954['plugins']['has']('ImageTextAlternativeEditing')&&_0x31d716['enableCommand']('imageTextAlternative',(_0x5f4ad9,_0x3bfdd8)=>{const _0x30acd2=_0x37678e['getClosestSelectedImageElement'](_0x118954['model']['document']['selection']);(_0x30acd2['hasAttribute']('alt')?_0x30acd2['getAttribute']('alt'):'')!=_0x3bfdd8['newValue']&&_0x118954['model']['change'](()=>{_0x31d716['markBlockFormat'](_0x30acd2,{'commandName':'imageTextAlternative','commandParams':[_0x3bfdd8]});});}),_0x31d716['_descriptionFactory']['registerDescriptionCallback'](_0x244e4e=>{if(!!_0x181d3a['find'](({type:_0x3dad4b,subType:_0x53f624})=>_0x244e4e['type']==_0x3dad4b&&_0x244e4e['subType']==_0x53f624))return _0x244e4e['previous']?{}:void 0x0;}),_0x31d716['_descriptionFactory']['registerDescriptionCallback'](_0x488cdc=>{if('insertion'==_0x488cdc['type']||'deletion'==_0x488cdc['type']){const _0xb405f7=_0x488cdc['getContainedElement']();if(_0xb405f7&&_0xb405f7['is']('element','caption'))return{'type':'insertion'==_0x488cdc['type']?'addObject':'removeObject','name':_0xb405f7['name'],'quantity':0x1};}}),_0x31d716['_descriptionFactory']['registerDescriptionCallback'](_0x353ef=>'formatBlock'==_0x353ef['type']&&'convertInlineImageToBlock'==_0x353ef['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x353ef['type']&&'convertBlockImageToInline'==_0x353ef['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x31d716['_descriptionFactory']['registerDescriptionCallback'](_0x33f024=>{const {data:_0x3c779f}=_0x33f024;if(_0x3c779f){if('imageStyle'==_0x3c779f['commandName']){const _0x5eb33e=_0x3c779f['commandParams'][0x0]['value'];return _0x3e5ad8('side'===_0x5eb33e?t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'}):_0x51435c[_0x5eb33e]||_0x5eb33e);}if('imageTextAlternative'==_0x3c779f['commandName']){const _0x406fbc=_0x3c779f['commandParams'][0x0]['newValue'];return _0x406fbc?{'type':'format','content':t('*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x406fbc+'\x22')}:{'type':'format','content':t('*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3c779f['commandName']){const _0x8ab1dd=_0x3c779f['commandParams'][0x0]['width'];return _0x8ab1dd?{'type':'format','content':t('*Set\x20image\x20width:*\x20%0',_0x8ab1dd)}:{'type':'format','content':t('*Reset\x20image\x20width*')};}}function _0x3e5ad8(_0x499b7){return{'type':'format','content':t('*Format:*\x20%0',_0x499b7)};}});}}