@ckeditor/ckeditor5-track-changes 38.0.0 → 38.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +10 -8
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.d.ts +3 -2
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.d.ts +3 -2
  19. package/src/integrations/entercommand.js +1 -1
  20. package/src/integrations/findandreplace.js +1 -1
  21. package/src/integrations/font.js +1 -1
  22. package/src/integrations/formatpainter.js +1 -1
  23. package/src/integrations/heading.js +1 -1
  24. package/src/integrations/highlight.js +1 -1
  25. package/src/integrations/horizontalline.js +1 -1
  26. package/src/integrations/htmlembed.js +1 -1
  27. package/src/integrations/image.js +1 -1
  28. package/src/integrations/imagereplace.js +1 -1
  29. package/src/integrations/importword.js +1 -1
  30. package/src/integrations/indent.js +1 -1
  31. package/src/integrations/inputcommand.d.ts +3 -2
  32. package/src/integrations/inputcommand.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.d.ts +3 -2
  43. package/src/integrations/shiftentercommand.js +1 -1
  44. package/src/integrations/standardeditingmode.js +1 -1
  45. package/src/integrations/style.js +1 -1
  46. package/src/integrations/table.js +1 -1
  47. package/src/integrations/tablecaption.d.ts +3 -2
  48. package/src/integrations/tablecaption.js +1 -1
  49. package/src/integrations/tableclipboard.d.ts +3 -2
  50. package/src/integrations/tableclipboard.js +1 -1
  51. package/src/integrations/tablecolumnresize.js +1 -1
  52. package/src/integrations/tableheadings.d.ts +3 -2
  53. package/src/integrations/tableheadings.js +1 -1
  54. package/src/integrations/tablemergesplit.d.ts +3 -2
  55. package/src/integrations/tablemergesplit.js +1 -1
  56. package/src/integrations/tableofcontents.js +1 -1
  57. package/src/integrations/tableproperties.d.ts +1 -1
  58. package/src/integrations/tableproperties.js +1 -1
  59. package/src/integrations/template.js +1 -1
  60. package/src/integrations/title.js +1 -1
  61. package/src/integrations/undo.js +1 -1
  62. package/src/integrations/utils.js +1 -1
  63. package/src/suggestion.d.ts +1 -1
  64. package/src/suggestion.js +1 -1
  65. package/src/suggestiondescriptionfactory.js +1 -1
  66. package/src/trackchanges.d.ts +5 -5
  67. package/src/trackchanges.js +1 -1
  68. package/src/trackchangesdata.d.ts +4 -5
  69. package/src/trackchangesdata.js +1 -1
  70. package/src/trackchangesediting.d.ts +49 -5
  71. package/src/trackchangesediting.js +1 -1
  72. package/src/trackchangesui.d.ts +5 -5
  73. package/src/trackchangesui.js +1 -1
  74. package/src/ui/suggestioncontroller.js +1 -1
  75. package/src/ui/view/basesuggestionthreadview.js +1 -1
  76. package/src/ui/view/suggestionthreadview.d.ts +0 -2
  77. package/src/ui/view/suggestionthreadview.js +1 -1
  78. package/src/utils/common-translations.js +1 -1
  79. package/src/utils/utils.js +1 -1
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "38.0.0",
3
+ "version": "38.1.0",
4
4
  "description": "CKEditor 5 track changes plugin.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
7
+ "bugs": {
8
+ "url": "https://support.ckeditor.com/hc/en-us/requests/new"
9
+ },
7
10
  "homepage": "https://ckeditor.com/collaboration/track-changes/",
8
11
  "keywords": [
9
12
  "CKEditor",
@@ -35,16 +38,15 @@
35
38
  "ckeditor5-metadata.json",
36
39
  "CHANGELOG.md"
37
40
  ],
38
- "scripts": {
39
- "dll:build": "webpack",
40
- "build": "tsc -p ./tsconfig.json",
41
- "postversion": "npm run build"
42
- },
43
41
  "dependencies": {
44
- "ckeditor5": "^38.0.0",
45
- "ckeditor5-collaboration": "^38.0.0",
42
+ "ckeditor5": "38.1.0",
43
+ "ckeditor5-collaboration": "38.1.0",
46
44
  "lodash-es": "^4.17.11"
47
45
  },
46
+ "engines": {
47
+ "node": ">=16.0.0",
48
+ "npm": ">=5.7.1"
49
+ },
48
50
  "types": "src/index.d.ts",
49
51
  "obfuscated": true
50
52
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3df9=['isEnabled','refresh','_suggestions','acceptSuggestion','_isEnabledBasedOnSelection','canEditAt','TrackChangesEditing','getRanges','editor'];(function(_0x21350e,_0x3df954){const _0x10abc6=function(_0x153388){while(--_0x153388){_0x21350e['push'](_0x21350e['shift']());}};_0x10abc6(++_0x3df954);}(_0x3df9,0xef));const _0x10ab=function(_0x21350e,_0x3df954){_0x21350e=_0x21350e-0x0;let _0x10abc6=_0x3df9[_0x21350e];return _0x10abc6;};import{Command as _0x2db959}from'ckeditor5/src/core';import{CKEditorError as _0x522ba1}from'ckeditor5/src/utils';export default class M extends _0x2db959{constructor(_0x5f4396,_0x1695de){super(_0x5f4396),this[_0x10ab('0x6')]=_0x1695de,this[_0x10ab('0x5')](),this[_0x10ab('0x8')]=!0x1;}[_0x10ab('0x5')](){this[_0x10ab('0x4')]=!0x0;}['execute'](_0x3896c5){const _0x2dda7f=this[_0x10ab('0x6')]['get'](_0x3896c5);if(!_0x2dda7f)throw new _0x522ba1('track-changes-accept-suggestion-not-found',this);const _0x17cead=_0x2dda7f[_0x10ab('0x2')]();this[_0x10ab('0x3')]['model'][_0x10ab('0x0')](_0x17cead)&&this['editor']['plugins']['get'](_0x10ab('0x1'))[_0x10ab('0x7')](_0x2dda7f);}}
23
+ const _0x2538=['getRanges','_isEnabledBasedOnSelection','isEnabled','execute','plugins','editor','get','TrackChangesEditing','acceptSuggestion','_suggestions','model','canEditAt','refresh'];(function(_0x362c50,_0x253809){const _0xd34df4=function(_0x1c2219){while(--_0x1c2219){_0x362c50['push'](_0x362c50['shift']());}};_0xd34df4(++_0x253809);}(_0x2538,0x147));const _0xd34d=function(_0x362c50,_0x253809){_0x362c50=_0x362c50-0x0;let _0xd34df4=_0x2538[_0x362c50];return _0xd34df4;};import{Command as _0x2968f4}from'ckeditor5/src/core';import{CKEditorError as _0x9c422c}from'ckeditor5/src/utils';export default class M extends _0x2968f4{constructor(_0x2da165,_0x595de4){super(_0x2da165),this['_suggestions']=_0x595de4,this[_0xd34d('0xa')](),this[_0xd34d('0xc')]=!0x1;}[_0xd34d('0xa')](){this[_0xd34d('0x0')]=!0x0;}[_0xd34d('0x1')](_0x49dd1b){const _0x515ac3=this[_0xd34d('0x7')][_0xd34d('0x4')](_0x49dd1b);if(!_0x515ac3)throw new _0x9c422c('track-changes-accept-suggestion-not-found',this);const _0x355762=_0x515ac3[_0xd34d('0xb')]();this[_0xd34d('0x3')][_0xd34d('0x8')][_0xd34d('0x9')](_0x355762)&&this[_0xd34d('0x3')][_0xd34d('0x2')][_0xd34d('0x4')](_0xd34d('0x5'))[_0xd34d('0x6')](_0x515ac3);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4679=['execute','canEditAt','TrackChangesEditing','plugins','track-changes-discard-suggestion-not-found','refresh','model','isEnabled','getRanges','editor','get','_suggestions'];(function(_0x6817f8,_0x4679ca){const _0x521204=function(_0x48e5c3){while(--_0x48e5c3){_0x6817f8['push'](_0x6817f8['shift']());}};_0x521204(++_0x4679ca);}(_0x4679,0x7f));const _0x5212=function(_0x6817f8,_0x4679ca){_0x6817f8=_0x6817f8-0x0;let _0x521204=_0x4679[_0x6817f8];return _0x521204;};import{Command as _0x497fec}from'ckeditor5/src/core';import{CKEditorError as _0x361aa0}from'ckeditor5/src/utils';export default class $ extends _0x497fec{constructor(_0x4061d4,_0x508a70){super(_0x4061d4),this[_0x5212('0x4')]=_0x508a70,this[_0x5212('0xa')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x5212('0xa')](){this[_0x5212('0x0')]=!0x0;}[_0x5212('0x5')](_0x1c43f7){const _0x2f96aa=this['_suggestions']['get'](_0x1c43f7);if(!_0x2f96aa)throw new _0x361aa0(_0x5212('0x9'),this);const _0x111368=_0x2f96aa[_0x5212('0x1')]();this[_0x5212('0x2')][_0x5212('0xb')][_0x5212('0x6')](_0x111368)&&this[_0x5212('0x2')][_0x5212('0x8')][_0x5212('0x3')](_0x5212('0x7'))['discardSuggestion'](_0x2f96aa);}}
23
+ const _0x5c73=['discardSuggestion','refresh','get','_isEnabledBasedOnSelection','model','isEnabled','_suggestions','editor','getRanges','canEditAt','TrackChangesEditing','plugins'];(function(_0x23785e,_0x5c7306){const _0x5d3772=function(_0xe8c613){while(--_0xe8c613){_0x23785e['push'](_0x23785e['shift']());}};_0x5d3772(++_0x5c7306);}(_0x5c73,0xf9));const _0x5d37=function(_0x23785e,_0x5c7306){_0x23785e=_0x23785e-0x0;let _0x5d3772=_0x5c73[_0x23785e];return _0x5d3772;};import{Command as _0xa4c286}from'ckeditor5/src/core';import{CKEditorError as _0x225af8}from'ckeditor5/src/utils';export default class $ extends _0xa4c286{constructor(_0xa853f3,_0x362bb3){super(_0xa853f3),this[_0x5d37('0x9')]=_0x362bb3,this[_0x5d37('0x4')](),this[_0x5d37('0x6')]=!0x1;}[_0x5d37('0x4')](){this[_0x5d37('0x8')]=!0x0;}['execute'](_0x482411){const _0x275600=this['_suggestions'][_0x5d37('0x5')](_0x482411);if(!_0x275600)throw new _0x225af8('track-changes-discard-suggestion-not-found',this);const _0x358afa=_0x275600[_0x5d37('0xb')]();this[_0x5d37('0xa')][_0x5d37('0x7')][_0x5d37('0x0')](_0x358afa)&&this['editor'][_0x5d37('0x2')][_0x5d37('0x5')](_0x5d37('0x1'))[_0x5d37('0x3')](_0x275600);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a5a=['values','_suggestions','getRanges','execute','refresh','_command','editor','from','_isEnabledBasedOnSelection','model','isInContent'];(function(_0x42b59c,_0x4a5a03){const _0xf307f3=function(_0x2529a1){while(--_0x2529a1){_0x42b59c['push'](_0x42b59c['shift']());}};_0xf307f3(++_0x4a5a03);}(_0x4a5a,0x17c));const _0xf307=function(_0x42b59c,_0x4a5a03){_0x42b59c=_0x42b59c-0x0;let _0xf307f3=_0x4a5a[_0x42b59c];return _0xf307f3;};import{Command as _0x57909a}from'ckeditor5/src/core';import{sortSuggestions as _0x32bcdf,executeCommandForSuggestions as _0x2aa60c}from'../utils/utils';export default class N extends _0x57909a{constructor(_0x15974c,_0x2e3e6e,_0x12d992){super(_0x15974c),this['_command']=_0x2e3e6e,this[_0xf307('0x6')]=_0x12d992,this[_0xf307('0x9')](),this[_0xf307('0x2')]=!0x1;}[_0xf307('0x9')](){const _0x119c7a=Array[_0xf307('0x1')](this['_suggestions']['values']())['some'](_0x4645ce=>_0x4645ce[_0xf307('0x4')]);this['isEnabled']=this['_command']['isEnabled']&&_0x119c7a;}[_0xf307('0x8')](){const _0x494db0=_0x32bcdf(Array[_0xf307('0x1')](this['_suggestions'][_0xf307('0x5')]()));for(const _0xac4371 of _0x494db0){const _0x4e71f1=_0xac4371[_0xf307('0x7')]();if(!this['editor'][_0xf307('0x3')]['canEditAt'](_0x4e71f1))return;}_0x2aa60c(this[_0xf307('0x0')][_0xf307('0x3')],this[_0xf307('0xa')],_0x494db0);}}
23
+ const _0x43b1=['_suggestions','editor','canEditAt','refresh','some','getRanges','values','from','model','_command','_isEnabledBasedOnSelection','execute','isEnabled'];(function(_0x25982b,_0x43b110){const _0xdd268c=function(_0x375718){while(--_0x375718){_0x25982b['push'](_0x25982b['shift']());}};_0xdd268c(++_0x43b110);}(_0x43b1,0x102));const _0xdd26=function(_0x25982b,_0x43b110){_0x25982b=_0x25982b-0x0;let _0xdd268c=_0x43b1[_0x25982b];return _0xdd268c;};import{Command as _0x2435a6}from'ckeditor5/src/core';import{sortSuggestions as _0x3c71ce,executeCommandForSuggestions as _0x1bf965}from'../utils/utils';export default class N extends _0x2435a6{constructor(_0x5e9bdb,_0x4890ea,_0x540ae4){super(_0x5e9bdb),this[_0xdd26('0xb')]=_0x4890ea,this[_0xdd26('0x2')]=_0x540ae4,this[_0xdd26('0x5')](),this[_0xdd26('0xc')]=!0x1;}[_0xdd26('0x5')](){const _0x22d2f6=Array[_0xdd26('0x9')](this[_0xdd26('0x2')][_0xdd26('0x8')]())[_0xdd26('0x6')](_0x424b88=>_0x424b88['isInContent']);this[_0xdd26('0x1')]=this[_0xdd26('0xb')][_0xdd26('0x1')]&&_0x22d2f6;}[_0xdd26('0x0')](){const _0x1fdffe=_0x3c71ce(Array[_0xdd26('0x9')](this[_0xdd26('0x2')][_0xdd26('0x8')]()));for(const _0x5eac4e of _0x1fdffe){const _0x5a8ab8=_0x5eac4e[_0xdd26('0x7')]();if(!this['editor'][_0xdd26('0xa')][_0xdd26('0x4')](_0x5a8ab8))return;}_0x1bf965(this[_0xdd26('0x3')][_0xdd26('0xa')],this[_0xdd26('0xb')],_0x1fdffe);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x357b=['_selectedSuggestions','document','isEnabled','size','model','_suggestions','values','execute','refresh','_command','canEditAt','selection','editor','_isEnabledBasedOnSelection','from','getRanges'];(function(_0x196d20,_0x357b5f){const _0x233ebe=function(_0x532806){while(--_0x532806){_0x196d20['push'](_0x196d20['shift']());}};_0x233ebe(++_0x357b5f);}(_0x357b,0xce));const _0x233e=function(_0x196d20,_0x357b5f){_0x196d20=_0x196d20-0x0;let _0x233ebe=_0x357b[_0x196d20];return _0x233ebe;};import{Command as _0x5cd6b0}from'ckeditor5/src/core';import{sortSuggestions as _0x3be547,getSelectedSuggestions as _0x22a48c,executeCommandForSuggestions as _0x54a517}from'../utils/utils';export default class R extends _0x5cd6b0{constructor(_0x1f45de,_0x18a926,_0x5514e0){super(_0x1f45de),this[_0x233e('0xb')]=_0x18a926,this[_0x233e('0x7')]=_0x5514e0,this['_selectedSuggestions']=new Set(),this[_0x233e('0xa')](),this[_0x233e('0xf')]=!0x1;}[_0x233e('0xa')](){const _0x442b71=this['editor'][_0x233e('0x6')][_0x233e('0x3')][_0x233e('0xd')],_0x36afbb=Array[_0x233e('0x0')](this[_0x233e('0x7')][_0x233e('0x8')]());this[_0x233e('0x2')]=_0x22a48c(_0x442b71,_0x36afbb),this[_0x233e('0x4')]=this[_0x233e('0xb')][_0x233e('0x4')]&&!!this[_0x233e('0x2')][_0x233e('0x5')];}[_0x233e('0x9')](){const _0x366915=_0x3be547(Array[_0x233e('0x0')](this[_0x233e('0x2')]));for(const _0x43e833 of _0x366915){const _0x114d57=_0x43e833[_0x233e('0x1')]();if(!this[_0x233e('0xe')][_0x233e('0x6')][_0x233e('0xc')](_0x114d57))return;}_0x54a517(this[_0x233e('0xe')][_0x233e('0x6')],this[_0x233e('0xb')],_0x366915);}}
23
+ const _0x19dd=['_isEnabledBasedOnSelection','getRanges','selection','size','_command','canEditAt','editor','refresh','model','_suggestions','document','_selectedSuggestions'];(function(_0x2e7c7f,_0x19dd7e){const _0x5683a6=function(_0x59bfa0){while(--_0x59bfa0){_0x2e7c7f['push'](_0x2e7c7f['shift']());}};_0x5683a6(++_0x19dd7e);}(_0x19dd,0x127));const _0x5683=function(_0x2e7c7f,_0x19dd7e){_0x2e7c7f=_0x2e7c7f-0x0;let _0x5683a6=_0x19dd[_0x2e7c7f];return _0x5683a6;};import{Command as _0x33f24b}from'ckeditor5/src/core';import{sortSuggestions as _0x473305,getSelectedSuggestions as _0x21b9c9,executeCommandForSuggestions as _0x43a3ef}from'../utils/utils';export default class R extends _0x33f24b{constructor(_0x4baf91,_0x4c0b84,_0x162f1d){super(_0x4baf91),this[_0x5683('0x9')]=_0x4c0b84,this[_0x5683('0x2')]=_0x162f1d,this[_0x5683('0x4')]=new Set(),this[_0x5683('0x0')](),this[_0x5683('0x5')]=!0x1;}[_0x5683('0x0')](){const _0x15005d=this['editor'][_0x5683('0x1')][_0x5683('0x3')][_0x5683('0x7')],_0x3869a7=Array['from'](this[_0x5683('0x2')]['values']());this['_selectedSuggestions']=_0x21b9c9(_0x15005d,_0x3869a7),this['isEnabled']=this[_0x5683('0x9')]['isEnabled']&&!!this[_0x5683('0x4')][_0x5683('0x8')];}['execute'](){const _0x46766a=_0x473305(Array['from'](this[_0x5683('0x4')]));for(const _0x36ad3b of _0x46766a){const _0x43450a=_0x36ad3b[_0x5683('0x6')]();if(!this[_0x5683('0xb')][_0x5683('0x1')][_0x5683('0xa')](_0x43450a))return;}_0x43a3ef(this[_0x5683('0xb')][_0x5683('0x1')],this[_0x5683('0x9')],_0x46766a);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x489c=['TrackChangesCommand','isEnabled','_disableUnsupportedCommands','_enableCommands','refresh','editor','affectsData','commands','value','_enabledCommands'];(function(_0x1add7e,_0x489c15){const _0x44364b=function(_0x2542f1){while(--_0x2542f1){_0x1add7e['push'](_0x1add7e['shift']());}};_0x44364b(++_0x489c15);}(_0x489c,0xd4));const _0x4436=function(_0x1add7e,_0x489c15){_0x1add7e=_0x1add7e-0x0;let _0x44364b=_0x489c[_0x1add7e];return _0x44364b;};import{Command as _0x2ba778}from'ckeditor5/src/core';export default class _ extends _0x2ba778{constructor(_0x106354,_0x3820a2){super(_0x106354),this[_0x4436('0x7')]=_0x3820a2,this['value']=!0x1,this[_0x4436('0x2')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x4436('0x2')](){this[_0x4436('0x9')]=!0x0;}['execute'](){this[_0x4436('0x6')]=!this[_0x4436('0x6')],this['value']?this['_disableUnsupportedCommands']():this[_0x4436('0x1')]();}[_0x4436('0x0')](){for(const _0x3a1832 of this[_0x4436('0x3')][_0x4436('0x5')][_0x4436('0x5')]())_0x3a1832[_0x4436('0x4')]&&!this['_enabledCommands']['has'](_0x3a1832)&&_0x3a1832['forceDisabled'](_0x4436('0x8'));}[_0x4436('0x1')](){for(const _0x1f53f3 of this['editor'][_0x4436('0x5')][_0x4436('0x5')]())_0x1f53f3[_0x4436('0x4')]&&!this['_enabledCommands']['has'](_0x1f53f3)&&_0x1f53f3['clearForceDisabled'](_0x4436('0x8'));}}
23
+ const _0x7da7=['value','_disableUnsupportedCommands','execute','_enabledCommands','_enableCommands','affectsData','clearForceDisabled','editor','commands','TrackChangesCommand','isEnabled','_isEnabledBasedOnSelection'];(function(_0x3d0c30,_0x7da75b){const _0x1b50d5=function(_0x130a38){while(--_0x130a38){_0x3d0c30['push'](_0x3d0c30['shift']());}};_0x1b50d5(++_0x7da75b);}(_0x7da7,0x164));const _0x1b50=function(_0x3d0c30,_0x7da75b){_0x3d0c30=_0x3d0c30-0x0;let _0x1b50d5=_0x7da7[_0x3d0c30];return _0x1b50d5;};import{Command as _0x3b03ae}from'ckeditor5/src/core';export default class _ extends _0x3b03ae{constructor(_0x1fae33,_0x5285db){super(_0x1fae33),this[_0x1b50('0x7')]=_0x5285db,this['value']=!0x1,this['refresh'](),this[_0x1b50('0x3')]=!0x1;}['refresh'](){this[_0x1b50('0x2')]=!0x0;}[_0x1b50('0x6')](){this['value']=!this['value'],this[_0x1b50('0x4')]?this[_0x1b50('0x5')]():this['_enableCommands']();}[_0x1b50('0x5')](){for(const _0x20e846 of this[_0x1b50('0xb')][_0x1b50('0x0')][_0x1b50('0x0')]())_0x20e846[_0x1b50('0x9')]&&!this['_enabledCommands']['has'](_0x20e846)&&_0x20e846['forceDisabled']('TrackChangesCommand');}[_0x1b50('0x8')](){for(const _0x2249bc of this[_0x1b50('0xb')][_0x1b50('0x0')][_0x1b50('0x0')]())_0x2249bc['affectsData']&&!this[_0x1b50('0x7')]['has'](_0x2249bc)&&_0x2249bc[_0x1b50('0xa')](_0x1b50('0x1'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c87=['commandParams','AlignmentEditing','afterInit','right','model','filter','registerDescriptionCallback','editor','has','alignment','locale','TrackChangesEditing','enableCommand','FORMAT_ALIGN_TO_RIGHT','document','FORMAT_JUSTIFY_TEXT','checkAttribute','center','ltr','change','FORMAT_ALIGN_TO_LEFT','plugins','markBlockFormat','justify','commandName','getAttribute','_descriptionFactory','FORMAT_ALIGN_TO_CENTER','left','from','*Format:*\x20%0','value','contentLanguageDirection'];(function(_0x54a65c,_0x4c8739){const _0x2fff88=function(_0x118878){while(--_0x118878){_0x54a65c['push'](_0x54a65c['shift']());}};_0x2fff88(++_0x4c8739);}(_0x4c87,0x1c7));const _0x2fff=function(_0x54a65c,_0x4c8739){_0x54a65c=_0x54a65c-0x0;let _0x2fff88=_0x4c87[_0x54a65c];return _0x2fff88;};import{Plugin as _0x441274}from'ckeditor5/src/core';import{getTranslation as _0x37df16}from'../utils/common-translations';export default class x extends _0x441274{[_0x2fff('0x9')](){const _0x3f674c=this[_0x2fff('0xe')],_0x350c29=_0x3f674c[_0x2fff('0x11')];if(!_0x3f674c[_0x2fff('0x1c')][_0x2fff('0xf')](_0x2fff('0x8')))return;const _0x343046=_0x3f674c['plugins']['get'](_0x2fff('0x12'));_0x343046[_0x2fff('0x13')](_0x2fff('0x10'),(_0x2d5035,_0x1b9f52={})=>{let _0x274fa7=_0x1b9f52[_0x2fff('0x5')];_0x1b9f52[_0x2fff('0x5')]||(_0x274fa7=_0x2fff('0x19')===_0x3f674c[_0x2fff('0x11')][_0x2fff('0x6')]?_0x2fff('0x2'):_0x2fff('0xa'));const _0x4c4f4d=Array[_0x2fff('0x3')](this[_0x2fff('0xe')][_0x2fff('0xb')][_0x2fff('0x15')]['selection']['getSelectedBlocks']())[_0x2fff('0xc')](_0x574cbc=>function(_0x33df5c,_0x51ccdf,_0x43653d){const _0x57495c=_0x33df5c[_0x2fff('0x20')](_0x2fff('0x10'))||null;return _0x51ccdf[_0x2fff('0x17')](_0x33df5c,_0x2fff('0x10'))&&_0x43653d!=_0x57495c;}(_0x574cbc,this[_0x2fff('0xe')][_0x2fff('0xb')]['schema'],_0x274fa7));_0x3f674c['model'][_0x2fff('0x1a')](()=>{for(const _0x3b302f of _0x4c4f4d)_0x343046[_0x2fff('0x1d')](_0x3b302f,{'commandName':_0x2fff('0x10'),'commandParams':[{'value':_0x274fa7}]});});}),_0x343046[_0x2fff('0x0')][_0x2fff('0xd')](_0x442643=>{const {data:_0x1d1f93}=_0x442643;if(_0x1d1f93&&_0x2fff('0x10')==_0x1d1f93[_0x2fff('0x1f')]){const _0x4150ff=_0x1d1f93[_0x2fff('0x7')][0x0][_0x2fff('0x5')];return{'type':'format','content':_0x37df16(_0x350c29,_0x2fff('0x4'),function(_0x37fe53){switch(_0x37fe53){case _0x2fff('0x2'):return _0x37df16(_0x350c29,_0x2fff('0x1b'));case _0x2fff('0xa'):return _0x37df16(_0x350c29,_0x2fff('0x14'));case _0x2fff('0x18'):return _0x37df16(_0x350c29,_0x2fff('0x1'));case _0x2fff('0x1e'):return _0x37df16(_0x350c29,_0x2fff('0x16'));}}(_0x4150ff))};}});}}
23
+ const _0x5b52=['locale','enableCommand','document','get','justify','has','*Format:*\x20%0','center','model','alignment','ltr','commandParams','value','markBlockFormat','right','editor','left','change','afterInit','checkAttribute','getSelectedBlocks','filter','schema'];(function(_0x459018,_0x5b52f7){const _0x4f0163=function(_0x41e999){while(--_0x41e999){_0x459018['push'](_0x459018['shift']());}};_0x4f0163(++_0x5b52f7);}(_0x5b52,0x188));const _0x4f01=function(_0x459018,_0x5b52f7){_0x459018=_0x459018-0x0;let _0x4f0163=_0x5b52[_0x459018];return _0x4f0163;};import{Plugin as _0x370c17}from'ckeditor5/src/core';import{getTranslation as _0x39a7c6}from'../utils/common-translations';export default class x extends _0x370c17{[_0x4f01('0x11')](){const _0x280144=this['editor'],_0x5311b1=_0x280144['locale'];if(!_0x280144['plugins'][_0x4f01('0x4')]('AlignmentEditing'))return;const _0x9d82a5=_0x280144['plugins'][_0x4f01('0x2')]('TrackChangesEditing');_0x9d82a5[_0x4f01('0x0')](_0x4f01('0x8'),(_0x32d1cf,_0xbe8882={})=>{let _0x1c0899=_0xbe8882[_0x4f01('0xb')];_0xbe8882[_0x4f01('0xb')]||(_0x1c0899=_0x4f01('0x9')===_0x280144[_0x4f01('0x16')]['contentLanguageDirection']?'left':_0x4f01('0xd'));const _0x5b29f0=Array['from'](this[_0x4f01('0xe')][_0x4f01('0x7')][_0x4f01('0x1')]['selection'][_0x4f01('0x13')]())[_0x4f01('0x14')](_0x15a4c4=>function(_0xab3cd7,_0x232f78,_0x69cca7){const _0xf71446=_0xab3cd7['getAttribute'](_0x4f01('0x8'))||null;return _0x232f78[_0x4f01('0x12')](_0xab3cd7,'alignment')&&_0x69cca7!=_0xf71446;}(_0x15a4c4,this['editor'][_0x4f01('0x7')][_0x4f01('0x15')],_0x1c0899));_0x280144[_0x4f01('0x7')][_0x4f01('0x10')](()=>{for(const _0x37fd09 of _0x5b29f0)_0x9d82a5[_0x4f01('0xc')](_0x37fd09,{'commandName':_0x4f01('0x8'),'commandParams':[{'value':_0x1c0899}]});});}),_0x9d82a5['_descriptionFactory']['registerDescriptionCallback'](_0x18903b=>{const {data:_0x214d59}=_0x18903b;if(_0x214d59&&_0x4f01('0x8')==_0x214d59['commandName']){const _0xdd721=_0x214d59[_0x4f01('0xa')][0x0][_0x4f01('0xb')];return{'type':'format','content':_0x39a7c6(_0x5311b1,_0x4f01('0x5'),function(_0x33fd14){switch(_0x33fd14){case _0x4f01('0xf'):return _0x39a7c6(_0x5311b1,'FORMAT_ALIGN_TO_LEFT');case _0x4f01('0xd'):return _0x39a7c6(_0x5311b1,'FORMAT_ALIGN_TO_RIGHT');case _0x4f01('0x6'):return _0x39a7c6(_0x5311b1,'FORMAT_ALIGN_TO_CENTER');case _0x4f01('0x3'):return _0x39a7c6(_0x5311b1,'FORMAT_JUSTIFY_TEXT');}}(_0xdd721))};}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f62=['commands','enableCommand','FORMAT_BOLD','plugins','value','StrikethroughEditing','bold','isCollapsed','TrackChangesEditing','editor','markInlineFormat','SubscriptEditing','toLowerCase','underline','has','forceValue','model','from','registerDescriptionCallback','FORMAT_SUBSCRIPT','FORMAT_CODE','document','afterInit','FORMAT_STRIKETHROUGH','commandName','getRanges','strikethrough','UnderlineEditing','format','italic','CodeEditing','ItalicEditing','superscript','get','subscript','BoldEditing','SuperscriptEditing'];(function(_0x4578f8,_0x4f621d){const _0x3d0f52=function(_0x4b28e9){while(--_0x4b28e9){_0x4578f8['push'](_0x4578f8['shift']());}};_0x3d0f52(++_0x4f621d);}(_0x4f62,0x188));const _0x3d0f=function(_0x4578f8,_0x4f621d){_0x4578f8=_0x4578f8-0x0;let _0x3d0f52=_0x4f62[_0x4578f8];return _0x3d0f52;};import{Plugin as _0x4e053c}from'ckeditor5/src/core';import{getTranslation as _0x106e06}from'../utils/common-translations';import{getRangesWithAttribute as _0x3319b5}from'./utils';const io=[_0x3d0f('0xd'),_0x3d0f('0x9'),_0x3d0f('0x5'),_0x3d0f('0x8'),_0x3d0f('0x14'),_0x3d0f('0x1a'),_0x3d0f('0xe')];export default class U extends _0x4e053c{[_0x3d0f('0x0')](){const _0x73c29b=this[_0x3d0f('0x18')],_0x178a3e=_0x73c29b[_0x3d0f('0x1f')],_0x16533a=_0x73c29b[_0x3d0f('0x12')]['get'](_0x3d0f('0x17')),_0xef365b=_0x73c29b['locale'];for(const _0x2922f0 of io){if(!_0x73c29b[_0x3d0f('0x12')][_0x3d0f('0x1d')](_0x2922f0))continue;const _0x4f95a8=_0x2922f0['slice'](0x0,-0x7)[_0x3d0f('0x1b')](),_0x45e77c=_0x73c29b[_0x3d0f('0xf')][_0x3d0f('0xb')](_0x4f95a8);_0x16533a[_0x3d0f('0x10')](_0x4f95a8,(_0x4a8b69,_0x4189a4={})=>{const _0x81a2a=_0x178a3e[_0x3d0f('0x24')]['selection'];if(_0x81a2a[_0x3d0f('0x16')])return void _0x4a8b69(_0x4189a4);const _0x4b1300=void 0x0!==_0x4189a4[_0x3d0f('0x1e')]?_0x4189a4[_0x3d0f('0x1e')]:!_0x45e77c[_0x3d0f('0x13')];_0x178a3e['change'](()=>{const _0x24c4be=Array[_0x3d0f('0x20')](_0x81a2a[_0x3d0f('0x3')]());for(const _0x4c28fd of _0x24c4be){const _0x693062=_0x4b1300?[_0x4c28fd]:_0x3319b5(_0x4f95a8,_0x4c28fd,_0x178a3e);for(const _0x2080fd of _0x693062)_0x16533a[_0x3d0f('0x19')](_0x2080fd,{'commandName':_0x4f95a8,'commandParams':[{'forceValue':_0x4b1300}]});}});});}function _0x36b9e4(_0x283a08,_0x379d8c){_0x16533a['_descriptionFactory'][_0x3d0f('0x21')](_0x33a987=>{const {data:_0x490d49}=_0x33a987;if(_0x490d49&&_0x490d49[_0x3d0f('0x2')]===_0x283a08)return _0x490d49['commandParams'][0x0][_0x3d0f('0x1e')]?{'type':'format','content':_0x106e06(_0xef365b,'*Format:*\x20%0',_0x379d8c)}:{'type':_0x3d0f('0x6'),'content':_0x106e06(_0xef365b,'*Remove\x20format:*\x20%0',_0x379d8c)};});}_0x36b9e4(_0x3d0f('0x15'),_0x106e06(_0xef365b,_0x3d0f('0x11'))),_0x36b9e4(_0x3d0f('0x7'),_0x106e06(_0xef365b,'FORMAT_ITALIC')),_0x36b9e4(_0x3d0f('0x1c'),_0x106e06(_0xef365b,'FORMAT_UNDERLINE')),_0x36b9e4('code',_0x106e06(_0xef365b,_0x3d0f('0x23'))),_0x36b9e4(_0x3d0f('0x4'),_0x106e06(_0xef365b,_0x3d0f('0x1'))),_0x36b9e4(_0x3d0f('0xc'),_0x106e06(_0xef365b,_0x3d0f('0x22'))),_0x36b9e4(_0x3d0f('0xa'),_0x106e06(_0xef365b,'FORMAT_SUPERSCRIPT'));}}
23
+ const _0x296b=['editor','StrikethroughEditing','TrackChangesEditing','getRanges','FORMAT_CODE','*Remove\x20format:*\x20%0','plugins','FORMAT_SUPERSCRIPT','get','ItalicEditing','commandName','isCollapsed','afterInit','SuperscriptEditing','underline','CodeEditing','BoldEditing','SubscriptEditing','format','commands','model','forceValue','_descriptionFactory','code','FORMAT_UNDERLINE','document','change','FORMAT_SUBSCRIPT','FORMAT_BOLD','has','registerDescriptionCallback','UnderlineEditing','strikethrough','toLowerCase'];(function(_0x5bd469,_0x296bb5){const _0xed7e63=function(_0x35badd){while(--_0x35badd){_0x5bd469['push'](_0x5bd469['shift']());}};_0xed7e63(++_0x296bb5);}(_0x296b,0x7c));const _0xed7e=function(_0x5bd469,_0x296bb5){_0x5bd469=_0x5bd469-0x0;let _0xed7e63=_0x296b[_0x5bd469];return _0xed7e63;};import{Plugin as _0x2a6007}from'ckeditor5/src/core';import{getTranslation as _0xe801e7}from'../utils/common-translations';import{getRangesWithAttribute as _0x251126}from'./utils';const Kt=[_0xed7e('0x1c'),_0xed7e('0x15'),_0xed7e('0x9'),_0xed7e('0x1b'),_0xed7e('0xd'),_0xed7e('0x1d'),_0xed7e('0x19')];export default class U extends _0x2a6007{[_0xed7e('0x18')](){const _0x1d07d1=this[_0xed7e('0xc')],_0x2df539=_0x1d07d1[_0xed7e('0x20')],_0xc94864=_0x1d07d1[_0xed7e('0x12')][_0xed7e('0x14')](_0xed7e('0xe')),_0x310f48=_0x1d07d1['locale'];for(const _0x1d5656 of Kt){if(!_0x1d07d1[_0xed7e('0x12')][_0xed7e('0x7')](_0x1d5656))continue;const _0x14182a=_0x1d5656['slice'](0x0,-0x7)[_0xed7e('0xb')](),_0x4fdf9d=_0x1d07d1[_0xed7e('0x1f')][_0xed7e('0x14')](_0x14182a);_0xc94864['enableCommand'](_0x14182a,(_0xbb3a1d,_0x4da972={})=>{const _0x145083=_0x2df539[_0xed7e('0x3')]['selection'];if(_0x145083[_0xed7e('0x17')])return void _0xbb3a1d(_0x4da972);const _0x5cf43b=void 0x0!==_0x4da972[_0xed7e('0x21')]?_0x4da972[_0xed7e('0x21')]:!_0x4fdf9d['value'];_0x2df539[_0xed7e('0x4')](()=>{const _0x299771=Array['from'](_0x145083[_0xed7e('0xf')]());for(const _0x4745b1 of _0x299771){const _0x131b60=_0x5cf43b?[_0x4745b1]:_0x251126(_0x14182a,_0x4745b1,_0x2df539);for(const _0x1c8d01 of _0x131b60)_0xc94864['markInlineFormat'](_0x1c8d01,{'commandName':_0x14182a,'commandParams':[{'forceValue':_0x5cf43b}]});}});});}function _0x3eef4a(_0x24d3a8,_0x15983d){_0xc94864[_0xed7e('0x0')][_0xed7e('0x8')](_0x259693=>{const {data:_0x40208a}=_0x259693;if(_0x40208a&&_0x40208a[_0xed7e('0x16')]===_0x24d3a8)return _0x40208a['commandParams'][0x0]['forceValue']?{'type':_0xed7e('0x1e'),'content':_0xe801e7(_0x310f48,'*Format:*\x20%0',_0x15983d)}:{'type':_0xed7e('0x1e'),'content':_0xe801e7(_0x310f48,_0xed7e('0x11'),_0x15983d)};});}_0x3eef4a('bold',_0xe801e7(_0x310f48,_0xed7e('0x6'))),_0x3eef4a('italic',_0xe801e7(_0x310f48,'FORMAT_ITALIC')),_0x3eef4a(_0xed7e('0x1a'),_0xe801e7(_0x310f48,_0xed7e('0x2'))),_0x3eef4a(_0xed7e('0x1'),_0xe801e7(_0x310f48,_0xed7e('0x10'))),_0x3eef4a(_0xed7e('0xa'),_0xe801e7(_0x310f48,'FORMAT_STRIKETHROUGH')),_0x3eef4a('subscript',_0xe801e7(_0x310f48,_0xed7e('0x5'))),_0x3eef4a('superscript',_0xe801e7(_0x310f48,_0xed7e('0x13')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fc9=['forceValue','filter','parent','_descriptionFactory','commandName','schema','has','*Remove\x20format:*\x20%0','plugins','change','afterInit','*Format:*\x20%0','$root','blockQuote','value','TrackChangesEditing','document','getSelectedBlocks','commandParams','from','markBlockFormat','format','editor','checkChild','get','model'];(function(_0x471589,_0x3fc928){const _0x5b0a06=function(_0x10e578){while(--_0x10e578){_0x471589['push'](_0x471589['shift']());}};_0x5b0a06(++_0x3fc928);}(_0x3fc9,0x18e));const _0x5b0a=function(_0x471589,_0x3fc928){_0x471589=_0x471589-0x0;let _0x5b0a06=_0x3fc9[_0x471589];return _0x5b0a06;};import{Plugin as _0x2adda2}from'ckeditor5/src/core';import{getTranslation as _0x1f18af}from'../utils/common-translations';import{getRangesOfBlockGroups as _0xc049b0}from'../utils/utils';export default class j extends _0x2adda2{[_0x5b0a('0x2')](){const _0x1a521b=this['editor'],_0x112ba6=_0x1a521b['locale'];if(!_0x1a521b['plugins'][_0x5b0a('0x18')]('BlockQuoteEditing'))return;const _0x36a01e=_0x1a521b[_0x5b0a('0x0')][_0x5b0a('0x10')](_0x5b0a('0x7')),_0x13989a=this[_0x5b0a('0xe')]['commands']['get'](_0x5b0a('0x5'));_0x36a01e['enableCommand'](_0x5b0a('0x5'),(_0x66051e,_0xd84803={})=>{const _0x128250=this[_0x5b0a('0xe')]['model'][_0x5b0a('0x8')]['selection'],_0x4cdc8d=_0xd84803&&void 0x0!==_0xd84803['forceValue']?_0xd84803[_0x5b0a('0x12')]:!_0x13989a[_0x5b0a('0x6')];let _0x5a785f=[];if(_0x4cdc8d){const _0x54d12b=Array['from'](_0x128250['getSelectedBlocks']())[_0x5b0a('0x13')](_0xc47c88=>eo(_0xc47c88)||function(_0x142832,_0x1b4ae1){const _0x5b1193=_0x1b4ae1[_0x5b0a('0xf')](_0x142832[_0x5b0a('0x14')],'blockQuote'),_0x23adf9=_0x1b4ae1[_0x5b0a('0xf')]([_0x5b0a('0x4'),_0x5b0a('0x5')],_0x142832);return _0x5b1193&&_0x23adf9;}(_0xc47c88,this[_0x5b0a('0xe')]['model'][_0x5b0a('0x17')]));_0x5a785f=_0xc049b0(_0x54d12b,_0x1a521b[_0x5b0a('0x11')]);}else{const _0x558226=Array[_0x5b0a('0xb')](_0x128250[_0x5b0a('0x9')]())['filter'](_0x2b4ad2=>eo(_0x2b4ad2));_0x5a785f=_0xc049b0(_0x558226,_0x1a521b[_0x5b0a('0x11')]);}_0x1a521b[_0x5b0a('0x11')][_0x5b0a('0x1')](()=>{for(const _0x295180 of _0x5a785f)_0x36a01e[_0x5b0a('0xc')](_0x295180,{'commandName':_0x5b0a('0x5'),'commandParams':[{'forceValue':_0x4cdc8d}]});});}),_0x36a01e[_0x5b0a('0x15')]['registerDescriptionCallback'](_0x2860ce=>{const {data:_0x13dadb}=_0x2860ce;if(_0x13dadb&&_0x5b0a('0x5')==_0x13dadb[_0x5b0a('0x16')]){const _0x22d45f=_0x1f18af(_0x112ba6,'ELEMENT_BLOCK_QUOTE');return _0x13dadb[_0x5b0a('0xa')][0x0]['forceValue']?{'type':_0x5b0a('0xd'),'content':_0x1f18af(_0x112ba6,_0x5b0a('0x3'),_0x22d45f)}:{'type':_0x5b0a('0xd'),'content':_0x1f18af(_0x112ba6,_0x5b0a('0x19'),_0x22d45f)};}});}}function eo(_0x9feb3a){return _0x5b0a('0x5')==_0x9feb3a[_0x5b0a('0x14')]['name'];}
23
+ const _0x3671=['change','getSelectedBlocks','forceValue','$root','markBlockFormat','commandParams','value','enableCommand','filter','schema','locale','TrackChangesEditing','get','blockQuote','commandName','*Format:*\x20%0','model','commands','name','checkChild','BlockQuoteEditing','_descriptionFactory','has','registerDescriptionCallback','document','editor','from','format','parent','plugins','ELEMENT_BLOCK_QUOTE'];(function(_0x17b647,_0x36711e){const _0x518e69=function(_0x42cb2e){while(--_0x42cb2e){_0x17b647['push'](_0x17b647['shift']());}};_0x518e69(++_0x36711e);}(_0x3671,0xc7));const _0x518e=function(_0x17b647,_0x36711e){_0x17b647=_0x17b647-0x0;let _0x518e69=_0x3671[_0x17b647];return _0x518e69;};import{Plugin as _0x1e9173}from'ckeditor5/src/core';import{getTranslation as _0x51b3b6}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x3db4ef}from'../utils/utils';export default class j extends _0x1e9173{['afterInit'](){const _0x21586d=this[_0x518e('0xc')],_0x53c2ae=_0x21586d[_0x518e('0x1c')];if(!_0x21586d[_0x518e('0x10')][_0x518e('0x9')](_0x518e('0x7')))return;const _0x31de96=_0x21586d['plugins']['get'](_0x518e('0x1d')),_0x104b25=this['editor'][_0x518e('0x4')][_0x518e('0x1e')](_0x518e('0x0'));_0x31de96[_0x518e('0x19')]('blockQuote',(_0x48efbd,_0x352e41={})=>{const _0xce812b=this[_0x518e('0xc')]['model'][_0x518e('0xb')]['selection'],_0x18bbaa=_0x352e41&&void 0x0!==_0x352e41[_0x518e('0x14')]?_0x352e41[_0x518e('0x14')]:!_0x104b25[_0x518e('0x18')];let _0x12a1c5=[];if(_0x18bbaa){const _0x311cf3=Array[_0x518e('0xd')](_0xce812b[_0x518e('0x13')]())[_0x518e('0x1a')](_0x424f8b=>Xt(_0x424f8b)||function(_0x131ddc,_0x45d570){const _0x563184=_0x45d570[_0x518e('0x6')](_0x131ddc['parent'],'blockQuote'),_0x25a7fc=_0x45d570[_0x518e('0x6')]([_0x518e('0x15'),_0x518e('0x0')],_0x131ddc);return _0x563184&&_0x25a7fc;}(_0x424f8b,this[_0x518e('0xc')][_0x518e('0x3')][_0x518e('0x1b')]));_0x12a1c5=_0x3db4ef(_0x311cf3,_0x21586d[_0x518e('0x3')]);}else{const _0x364329=Array[_0x518e('0xd')](_0xce812b[_0x518e('0x13')]())['filter'](_0x1040f5=>Xt(_0x1040f5));_0x12a1c5=_0x3db4ef(_0x364329,_0x21586d[_0x518e('0x3')]);}_0x21586d['model'][_0x518e('0x12')](()=>{for(const _0x283e20 of _0x12a1c5)_0x31de96[_0x518e('0x16')](_0x283e20,{'commandName':_0x518e('0x0'),'commandParams':[{'forceValue':_0x18bbaa}]});});}),_0x31de96[_0x518e('0x8')][_0x518e('0xa')](_0x3f999c=>{const {data:_0x436242}=_0x3f999c;if(_0x436242&&_0x518e('0x0')==_0x436242[_0x518e('0x1')]){const _0x3debdb=_0x51b3b6(_0x53c2ae,_0x518e('0x11'));return _0x436242[_0x518e('0x17')][0x0]['forceValue']?{'type':_0x518e('0xe'),'content':_0x51b3b6(_0x53c2ae,_0x518e('0x2'),_0x3debdb)}:{'type':_0x518e('0xe'),'content':_0x51b3b6(_0x53c2ae,'*Remove\x20format:*\x20%0',_0x3debdb)};}});}}function Xt(_0x3b628d){return _0x518e('0x0')==_0x3b628d[_0x518e('0xf')][_0x518e('0x5')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c73=['afterInit','get','editor','enableCommand','commands','ckbox'];(function(_0x4a3704,_0x5c73cc){const _0x2a1654=function(_0x5e8f0a){while(--_0x5e8f0a){_0x4a3704['push'](_0x4a3704['shift']());}};_0x2a1654(++_0x5c73cc);}(_0x5c73,0x19c));const _0x2a16=function(_0x4a3704,_0x5c73cc){_0x4a3704=_0x4a3704-0x0;let _0x2a1654=_0x5c73[_0x4a3704];return _0x2a1654;};import{Plugin as _0x198f5f}from'ckeditor5/src/core';export default class E extends _0x198f5f{[_0x2a16('0x2')](){const _0x3a0f13=this[_0x2a16('0x4')];_0x3a0f13[_0x2a16('0x0')][_0x2a16('0x3')]('ckbox')&&_0x3a0f13['plugins']['get']('TrackChangesEditing')[_0x2a16('0x5')](_0x2a16('0x1'));}}
23
+ const _0x3261=['ckbox','plugins','editor','afterInit','enableCommand','commands'];(function(_0xd9e96e,_0x3261f5){const _0x522da8=function(_0x47bf91){while(--_0x47bf91){_0xd9e96e['push'](_0xd9e96e['shift']());}};_0x522da8(++_0x3261f5);}(_0x3261,0x9d));const _0x522d=function(_0xd9e96e,_0x3261f5){_0xd9e96e=_0xd9e96e-0x0;let _0x522da8=_0x3261[_0xd9e96e];return _0x522da8;};import{Plugin as _0x3aba0e}from'ckeditor5/src/core';export default class E extends _0x3aba0e{[_0x522d('0x2')](){const _0xa155e8=this[_0x522d('0x1')];_0xa155e8[_0x522d('0x4')]['get'](_0x522d('0x5'))&&_0xa155e8[_0x522d('0x0')]['get']('TrackChangesEditing')[_0x522d('0x3')](_0x522d('0x5'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ef0=['document','commands','codeBlock','plugins','find','schema','selection','model','isLimit','commandParams','outdentCodeBlock','has','value','config','from','registerDescriptionCallback','locale','name','parent','afterInit','registerElementLabel','_descriptionFactory','blockName','commandName','get','enableCommand','ELEMENT_CODE_BLOCK','getSelectedBlocks','filter','*Format:*\x20%0','markBlockFormat','language','forceValue','change','rootElement','format','TrackChangesEditing','label'];(function(_0x1fd34a,_0x3ef0a1){const _0x19ad8d=function(_0x23f979){while(--_0x23f979){_0x1fd34a['push'](_0x1fd34a['shift']());}};_0x19ad8d(++_0x3ef0a1);}(_0x3ef0,0xe9));const _0x19ad=function(_0x1fd34a,_0x3ef0a1){_0x1fd34a=_0x1fd34a-0x0;let _0x19ad8d=_0x3ef0[_0x1fd34a];return _0x19ad8d;};import{Plugin as _0x3d61e5}from'ckeditor5/src/core';import{getTranslation as _0x15714f}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x3ecf0d}from'../utils/utils';export default class O extends _0x3d61e5{[_0x19ad('0xe')](){const _0x20133f=this['editor'];if(!_0x20133f[_0x19ad('0x24')][_0x19ad('0x6')]('CodeBlock'))return;const _0x26942f=_0x20133f[_0x19ad('0x24')][_0x19ad('0x13')](_0x19ad('0x1f')),_0x349904=_0x20133f[_0x19ad('0xb')],_0x4ea8cb=_0x20133f[_0x19ad('0x8')][_0x19ad('0x13')](_0x19ad('0x23'))['languages'],_0x4e4cbe=_0x20133f[_0x19ad('0x22')][_0x19ad('0x13')](_0x19ad('0x23'));_0x26942f[_0x19ad('0x14')]('indentCodeBlock'),_0x26942f[_0x19ad('0x14')](_0x19ad('0x5')),_0x26942f[_0x19ad('0x14')]('codeBlock',(_0x4989d8,_0x5176f2={})=>{const _0x199817=_0x20133f[_0x19ad('0x2')],_0x551c59=_0x20133f['model'][_0x19ad('0x21')][_0x19ad('0x1')],_0xb8d6eb=_0x5176f2&&void 0x0!==_0x5176f2[_0x19ad('0x1b')]?_0x5176f2['forceValue']:!_0x4e4cbe[_0x19ad('0x7')];let _0x2b02eb;_0x5176f2[_0x19ad('0x1a')]||(_0x5176f2['language']=_0x4ea8cb[0x0]['language']),_0x2b02eb=_0xb8d6eb?Array[_0x19ad('0x9')](_0x551c59[_0x19ad('0x16')]())['filter'](_0xaf38ab=>co(_0xaf38ab)||function(_0x20099c,_0x2e1307){if(_0x20099c['is'](_0x19ad('0x1d'))||_0x2e1307[_0x19ad('0x3')](_0x20099c))return!0x1;return _0x2e1307['checkChild'](_0x20099c[_0x19ad('0xd')],_0x19ad('0x23'));}(_0xaf38ab,_0x199817[_0x19ad('0x0')])):Array[_0x19ad('0x9')](_0x551c59[_0x19ad('0x16')]())[_0x19ad('0x17')](_0x347c0f=>co(_0x347c0f));const _0x566bea=_0x3ecf0d(_0x2b02eb,_0x199817);_0x199817[_0x19ad('0x1c')](()=>{for(const _0x34cb33 of _0x566bea)_0x26942f[_0x19ad('0x19')](_0x34cb33,{'commandName':_0x19ad('0x23'),'commandParams':[{..._0x5176f2,'forceValue':_0xb8d6eb}],'formatGroupId':_0x19ad('0x11')});});}),(_0x26942f[_0x19ad('0x10')][_0x19ad('0xf')](_0x19ad('0x23'),_0x4c2e55=>_0x15714f(_0x349904,_0x19ad('0x15'),_0x4c2e55)),_0x26942f[_0x19ad('0x10')][_0x19ad('0xa')](_0x18e630=>{const _0x4f3d51=_0x349904['t'],{type:_0x56f044,data:_0x43e6ea}=_0x18e630;if('formatBlock'==_0x56f044&&_0x43e6ea&&'codeBlock'==_0x43e6ea[_0x19ad('0x12')]){const _0x32a927=_0x43e6ea[_0x19ad('0x4')][0x0][_0x19ad('0x1a')],_0x513920=_0x4f3d51(_0x4ea8cb[_0x19ad('0x25')](_0x189efc=>_0x189efc[_0x19ad('0x1a')]===_0x32a927)[_0x19ad('0x20')]);return _0x43e6ea[_0x19ad('0x4')][0x0][_0x19ad('0x1b')]?{'type':_0x19ad('0x1e'),'content':_0x15714f(_0x349904,_0x19ad('0x18'),_0x15714f(_0x349904,_0x19ad('0x15'),0x1)+'\x20('+_0x513920+')')}:{'type':_0x19ad('0x1e'),'content':_0x15714f(_0x349904,'*Remove\x20format:*\x20%0',_0x15714f(_0x349904,_0x19ad('0x15'),0x1))};}}));}}function co(_0x16900f){return _0x19ad('0x23')==_0x16900f[_0x19ad('0xc')];}
23
+ const _0x5855=['ELEMENT_CODE_BLOCK','config','registerDescriptionCallback','format','locale','_descriptionFactory','languages','CodeBlock','get','TrackChangesEditing','commandName','formatBlock','plugins','document','*Remove\x20format:*\x20%0','commands','label','parent','registerElementLabel','forceValue','isLimit','getSelectedBlocks','model','blockName','*Format:*\x20%0','find','commandParams','language','from','markBlockFormat','codeBlock','value','schema','checkChild','filter','enableCommand'];(function(_0x56cf6e,_0x58559a){const _0x1f0ad9=function(_0x651c62){while(--_0x651c62){_0x56cf6e['push'](_0x56cf6e['shift']());}};_0x1f0ad9(++_0x58559a);}(_0x5855,0x1d1));const _0x1f0a=function(_0x56cf6e,_0x58559a){_0x56cf6e=_0x56cf6e-0x0;let _0x1f0ad9=_0x5855[_0x56cf6e];return _0x1f0ad9;};import{Plugin as _0xd3c66b}from'ckeditor5/src/core';import{getTranslation as _0x431404}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x20867e}from'../utils/utils';export default class O extends _0xd3c66b{['afterInit'](){const _0x2c15cb=this['editor'];if(!_0x2c15cb[_0x1f0a('0xf')]['has'](_0x1f0a('0xa')))return;const _0x257219=_0x2c15cb[_0x1f0a('0xf')]['get'](_0x1f0a('0xc')),_0x4ecd13=_0x2c15cb[_0x1f0a('0x7')],_0x53415a=_0x2c15cb[_0x1f0a('0x4')][_0x1f0a('0xb')](_0x1f0a('0x21'))[_0x1f0a('0x9')],_0x331c80=_0x2c15cb[_0x1f0a('0x12')]['get'](_0x1f0a('0x21'));_0x257219[_0x1f0a('0x2')]('indentCodeBlock'),_0x257219[_0x1f0a('0x2')]('outdentCodeBlock'),_0x257219[_0x1f0a('0x2')](_0x1f0a('0x21'),(_0x20b491,_0x20432c={})=>{const _0x1f30aa=_0x2c15cb[_0x1f0a('0x19')],_0x50a832=_0x2c15cb[_0x1f0a('0x19')][_0x1f0a('0x10')]['selection'],_0x26753e=_0x20432c&&void 0x0!==_0x20432c[_0x1f0a('0x16')]?_0x20432c['forceValue']:!_0x331c80[_0x1f0a('0x22')];let _0x582094;_0x20432c['language']||(_0x20432c[_0x1f0a('0x1e')]=_0x53415a[0x0][_0x1f0a('0x1e')]),_0x582094=_0x26753e?Array[_0x1f0a('0x1f')](_0x50a832[_0x1f0a('0x18')]())[_0x1f0a('0x1')](_0x398898=>to(_0x398898)||function(_0x397296,_0x2f0127){if(_0x397296['is']('rootElement')||_0x2f0127[_0x1f0a('0x17')](_0x397296))return!0x1;return _0x2f0127[_0x1f0a('0x0')](_0x397296[_0x1f0a('0x14')],_0x1f0a('0x21'));}(_0x398898,_0x1f30aa[_0x1f0a('0x23')])):Array[_0x1f0a('0x1f')](_0x50a832[_0x1f0a('0x18')]())[_0x1f0a('0x1')](_0x20b8c9=>to(_0x20b8c9));const _0x2c9b02=_0x20867e(_0x582094,_0x1f30aa);_0x1f30aa['change'](()=>{for(const _0x2c8b75 of _0x2c9b02)_0x257219[_0x1f0a('0x20')](_0x2c8b75,{'commandName':_0x1f0a('0x21'),'commandParams':[{..._0x20432c,'forceValue':_0x26753e}],'formatGroupId':_0x1f0a('0x1a')});});}),(_0x257219[_0x1f0a('0x8')][_0x1f0a('0x15')]('codeBlock',_0x478b97=>_0x431404(_0x4ecd13,'ELEMENT_CODE_BLOCK',_0x478b97)),_0x257219[_0x1f0a('0x8')][_0x1f0a('0x5')](_0x4b8f07=>{const _0x89579c=_0x4ecd13['t'],{type:_0x1fd091,data:_0x44deb1}=_0x4b8f07;if(_0x1f0a('0xe')==_0x1fd091&&_0x44deb1&&_0x1f0a('0x21')==_0x44deb1[_0x1f0a('0xd')]){const _0x2694cb=_0x44deb1['commandParams'][0x0][_0x1f0a('0x1e')],_0x22b9bc=_0x89579c(_0x53415a[_0x1f0a('0x1c')](_0x3e6060=>_0x3e6060[_0x1f0a('0x1e')]===_0x2694cb)[_0x1f0a('0x13')]);return _0x44deb1[_0x1f0a('0x1d')][0x0][_0x1f0a('0x16')]?{'type':'format','content':_0x431404(_0x4ecd13,_0x1f0a('0x1b'),_0x431404(_0x4ecd13,_0x1f0a('0x3'),0x1)+'\x20('+_0x22b9bc+')')}:{'type':_0x1f0a('0x6'),'content':_0x431404(_0x4ecd13,_0x1f0a('0x11'),_0x431404(_0x4ecd13,_0x1f0a('0x3'),0x1))};}}));}}function to(_0x5cdcc3){return _0x1f0a('0x21')==_0x5cdcc3['name'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19ab=['addCommentThread','TrackChangesEditing','CommentsEditing','enableCommand','plugins'];(function(_0x2dd9ed,_0x19ab3f){const _0x2ad712=function(_0x12c8d8){while(--_0x12c8d8){_0x2dd9ed['push'](_0x2dd9ed['shift']());}};_0x2ad712(++_0x19ab3f);}(_0x19ab,0x124));const _0x2ad7=function(_0x2dd9ed,_0x19ab3f){_0x2dd9ed=_0x2dd9ed-0x0;let _0x2ad712=_0x19ab[_0x2dd9ed];return _0x2ad712;};import{Plugin as _0x1928bd}from'ckeditor5/src/core';export default class F extends _0x1928bd{['afterInit'](){const _0x5d57de=this['editor'];if(!_0x5d57de[_0x2ad7('0x2')]['has'](_0x2ad7('0x0')))return;_0x5d57de[_0x2ad7('0x2')]['get'](_0x2ad7('0x4'))[_0x2ad7('0x1')](_0x2ad7('0x3'));}}
23
+ const _0x2792=['editor','get','afterInit','has','addCommentThread','CommentsEditing','enableCommand','plugins'];(function(_0x24bc73,_0x279232){const _0x4bbff9=function(_0x3a448d){while(--_0x3a448d){_0x24bc73['push'](_0x24bc73['shift']());}};_0x4bbff9(++_0x279232);}(_0x2792,0xfe));const _0x4bbf=function(_0x24bc73,_0x279232){_0x24bc73=_0x24bc73-0x0;let _0x4bbff9=_0x2792[_0x24bc73];return _0x4bbff9;};import{Plugin as _0x832641}from'ckeditor5/src/core';export default class F extends _0x832641{[_0x4bbf('0x4')](){const _0x2618ff=this[_0x4bbf('0x2')];if(!_0x2618ff[_0x4bbf('0x1')][_0x4bbf('0x5')](_0x4bbf('0x7')))return;_0x2618ff[_0x4bbf('0x1')][_0x4bbf('0x3')]('TrackChangesEditing')[_0x4bbf('0x0')](_0x4bbf('0x6'));}}
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * @module track-changes/integrations/deletecommand
3
3
  */
4
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ import { Delete } from 'ckeditor5/src/typing';
5
6
  /**
6
7
  * Provides track changes plugin integration for {@link module:typing/inputcommand~DeleteCommand delete command}. Also
7
8
  * provides integration {@link module:engine/model/model~Model#deleteContent} as many features use it internally.
8
9
  */
9
10
  export default class TrackChangesDeleteCommand extends Plugin {
10
- static get requires(): PluginDependencies;
11
+ static get requires(): readonly [typeof Delete];
11
12
  init(): void;
12
13
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b12=['addMarker:suggestion:deletion','createRange','getFirstRange','merge','start','rootName','TrackChangesEditing','deleteForward','createSelection','plugins','editor','commands','modifySelection','root','editing','high','setSelection','uiElement','forward','buffer','fromRange','selection','writer','end','unit','downcastDispatcher','$graveyard','data','delete','requires','get','batch','options','detach','enableCommand','model','init','markerNameToElements','mapper','showSuggestionHighlights','removeMarker:suggestion:deletion','unbindElementFromMarkerName'];(function(_0x48124a,_0x1b1298){const _0x5d963b=function(_0x31b306){while(--_0x31b306){_0x48124a['push'](_0x48124a['shift']());}};_0x5d963b(++_0x1b1298);}(_0x1b12,0x193));const _0x5d96=function(_0x48124a,_0x1b1298){_0x48124a=_0x48124a-0x0;let _0x5d963b=_0x1b12[_0x48124a];return _0x5d963b;};import{Plugin as _0xf053b5}from'ckeditor5/src/core';import{LiveRange as _0x11883d}from'ckeditor5/src/engine';import{Delete as _0x10e177}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x3ec5d9}from'./utils';export default class G extends _0xf053b5{static get[_0x5d96('0x4')](){return[_0x10e177];}[_0x5d96('0xb')](){const _0xa04604=this[_0x5d96('0x1b')],_0x799382=_0xa04604[_0x5d96('0x1a')]['get'](_0x5d96('0x17'));_0x799382[_0x5d96('0x9')](_0x5d96('0x3'));const _0x52f56e=_0xa04604[_0x5d96('0x1c')][_0x5d96('0x5')](_0x5d96('0x18'));_0x799382[_0x5d96('0x9')](_0x5d96('0x18'),(_0x22f27d,_0xa797c7={})=>{const _0x52d19c=_0xa04604[_0x5d96('0xa')][_0x5d96('0x19')](_0xa04604['model']['document'][_0x5d96('0x26')]);_0x52d19c['isCollapsed']&&_0xa04604[_0x5d96('0xa')][_0x5d96('0x1d')](_0x52d19c,{'direction':_0x5d96('0x23'),'unit':_0xa797c7[_0x5d96('0x29')]});const _0x420b8a=_0x52d19c[_0x5d96('0x13')](),_0x27b8f2=_0x11883d[_0x5d96('0x25')](_0x420b8a);let _0x42ad97;_0x22f27d(_0xa797c7),_0x42ad97=_0x5d96('0x1')==_0x27b8f2[_0x5d96('0x1e')][_0x5d96('0x16')]?_0xa04604['model'][_0x5d96('0x12')](_0x420b8a[_0x5d96('0x15')]):_0xa04604[_0x5d96('0xa')]['createRange'](_0x27b8f2[_0x5d96('0x15')],_0x27b8f2[_0x5d96('0x28')]),_0x27b8f2[_0x5d96('0x8')](),_0xa04604['model']['enqueueChange'](_0x52f56e[_0x5d96('0x24')][_0x5d96('0x6')],_0x36b4d3=>{_0x52f56e[_0x5d96('0x24')]['lock'](),_0x36b4d3[_0x5d96('0x21')](_0x36b4d3['createRange'](_0x42ad97[_0x5d96('0x28')])),_0x52f56e[_0x5d96('0x24')]['unlock']();});}),_0xa04604[_0x5d96('0x1f')][_0x5d96('0x0')]['on'](_0x5d96('0x11'),_0x3ec5d9(_0xa04604,_0x5d96('0x14')),{'priority':_0x5d96('0x20')}),_0xa04604[_0x5d96('0x2')][_0x5d96('0x0')]['on'](_0x5d96('0x11'),(_0x2da47e,_0x1d8d24,_0x38578e)=>{_0x38578e[_0x5d96('0x7')][_0x5d96('0xe')]&&_0x3ec5d9(_0xa04604,_0x5d96('0x14'),{'showActiveMarker':!0x1})['bind'](this)(_0x2da47e,_0x1d8d24,_0x38578e);},{'priority':_0x5d96('0x20')}),_0xa04604['editing'][_0x5d96('0x0')]['on'](_0x5d96('0xf'),(_0x3d259c,_0x52fbc6,_0x50373b)=>{const _0x16b258=_0x50373b[_0x5d96('0xd')][_0x5d96('0xc')](_0x52fbc6['markerName']);if(_0x16b258)for(const _0x11a3b5 of _0x16b258)_0x11a3b5['is'](_0x5d96('0x22'))&&(_0x50373b[_0x5d96('0xd')][_0x5d96('0x10')](_0x11a3b5,_0x52fbc6['markerName']),_0x50373b[_0x5d96('0x27')]['remove'](_0x11a3b5));},{'priority':_0x5d96('0x20')});}}
23
+ const _0x36a5=['mapper','merge','buffer','unbindElementFromMarkerName','bind','uiElement','lock','markerName','model','createRange','batch','getFirstRange','forward','enqueueChange','createSelection','unit','detach','rootName','editing','high','start','unlock','options','showSuggestionHighlights','TrackChangesEditing','delete','commands','data','deleteForward','selection','get','document','editor','isCollapsed','end','downcastDispatcher','init','addMarker:suggestion:deletion','plugins','setSelection','enableCommand'];(function(_0x31e729,_0x36a50e){const _0xe911ce=function(_0x75e37){while(--_0x75e37){_0x31e729['push'](_0x31e729['shift']());}};_0xe911ce(++_0x36a50e);}(_0x36a5,0x135));const _0xe911=function(_0x31e729,_0x36a50e){_0x31e729=_0x31e729-0x0;let _0xe911ce=_0x36a5[_0x31e729];return _0xe911ce;};import{Plugin as _0x334e49}from'ckeditor5/src/core';import{LiveRange as _0x24e8c2}from'ckeditor5/src/engine';import{Delete as _0x52eb5b}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x334bdc}from'./utils';export default class G extends _0x334e49{static get['requires'](){return[_0x52eb5b];}[_0xe911('0xe')](){const _0x1ad40d=this[_0xe911('0xa')],_0x41403c=_0x1ad40d[_0xe911('0x10')][_0xe911('0x8')](_0xe911('0x2'));_0x41403c[_0xe911('0x12')](_0xe911('0x3'));const _0x38b346=_0x1ad40d[_0xe911('0x4')][_0xe911('0x8')](_0xe911('0x6'));_0x41403c[_0xe911('0x12')](_0xe911('0x6'),(_0xf4d5ff,_0x1c11b1={})=>{const _0x5ba968=_0x1ad40d[_0xe911('0x1b')][_0xe911('0x21')](_0x1ad40d[_0xe911('0x1b')][_0xe911('0x9')][_0xe911('0x7')]);_0x5ba968[_0xe911('0xb')]&&_0x1ad40d[_0xe911('0x1b')]['modifySelection'](_0x5ba968,{'direction':_0xe911('0x1f'),'unit':_0x1c11b1[_0xe911('0x22')]});const _0x277fe8=_0x5ba968[_0xe911('0x1e')](),_0x575b27=_0x24e8c2['fromRange'](_0x277fe8);let _0x5dff9c;_0xf4d5ff(_0x1c11b1),_0x5dff9c='$graveyard'==_0x575b27['root'][_0xe911('0x24')]?_0x1ad40d[_0xe911('0x1b')][_0xe911('0x1c')](_0x277fe8[_0xe911('0x27')]):_0x1ad40d[_0xe911('0x1b')][_0xe911('0x1c')](_0x575b27[_0xe911('0x27')],_0x575b27[_0xe911('0xc')]),_0x575b27[_0xe911('0x23')](),_0x1ad40d[_0xe911('0x1b')][_0xe911('0x20')](_0x38b346[_0xe911('0x15')][_0xe911('0x1d')],_0x21d341=>{_0x38b346[_0xe911('0x15')][_0xe911('0x19')](),_0x21d341[_0xe911('0x11')](_0x21d341[_0xe911('0x1c')](_0x5dff9c['end'])),_0x38b346[_0xe911('0x15')][_0xe911('0x28')]();});}),_0x1ad40d['editing'][_0xe911('0xd')]['on'](_0xe911('0xf'),_0x334bdc(_0x1ad40d,_0xe911('0x14')),{'priority':'high'}),_0x1ad40d[_0xe911('0x5')][_0xe911('0xd')]['on'](_0xe911('0xf'),(_0x32411f,_0x46a319,_0x211025)=>{_0x211025[_0xe911('0x0')][_0xe911('0x1')]&&_0x334bdc(_0x1ad40d,_0xe911('0x14'),{'showActiveMarker':!0x1})[_0xe911('0x17')](this)(_0x32411f,_0x46a319,_0x211025);},{'priority':'high'}),_0x1ad40d[_0xe911('0x25')][_0xe911('0xd')]['on']('removeMarker:suggestion:deletion',(_0x3e076d,_0x33f50d,_0xc2e29)=>{const _0x5ecb90=_0xc2e29[_0xe911('0x13')]['markerNameToElements'](_0x33f50d[_0xe911('0x1a')]);if(_0x5ecb90)for(const _0x54f254 of _0x5ecb90)_0x54f254['is'](_0xe911('0x18'))&&(_0xc2e29[_0xe911('0x13')][_0xe911('0x16')](_0x54f254,_0x33f50d[_0xe911('0x1a')]),_0xc2e29['writer']['remove'](_0x54f254));},{'priority':_0xe911('0x26')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b74=['end','TrackChangesEditing','toUpperCase','plugins','listType','commandName','document','enableCommand','isObject','has','afterInit','before','from','schema','listIndent','_LIST','start','commandParams','map','setSelection','registerDescriptionCallback','slice','documentList','mergeListItemForward','forceValue','splitListItemAfter','containsItem','bulletedList','format','*Outdent:*\x20%0','parent','DocumentListUtils','push','hasAttribute','listItemId','findIndex','numberedList','indentList','*Format:*\x20insert\x20into\x20%0','outdentList','nextSibling','mergeListItemBackward','getFirstRange','value','getAttribute','change','ELEMENT_NUMBERED_LIST','registerCustomCallback','*Change\x20to:*\x20%0','previousSibling','get','selection','commands','nodeAfter','getSelectedBlocks','model','*Format:*\x20remove\x20from\x20%0','ELEMENT_LIST_ITEM','ELEMENT_','splitListItemBefore','getRanges','_suggestionFactory','_descriptionFactory','registerElementLabel','createRange','isFirstBlockOfListItem','deletion','createPositionAt'];(function(_0x58893d,_0x1b744d){const _0x1171cc=function(_0x34f306){while(--_0x34f306){_0x58893d['push'](_0x58893d['shift']());}};_0x1171cc(++_0x1b744d);}(_0x1b74,0x1d8));const _0x1171=function(_0x58893d,_0x1b744d){_0x58893d=_0x58893d-0x0;let _0x1171cc=_0x1b74[_0x58893d];return _0x1171cc;};import{Plugin as _0x8162cc}from'ckeditor5/src/core';import{getTranslation as _0x43e19e}from'../utils/common-translations';import{LiveRange as _0x212e1f}from'ckeditor5/src/engine';export default class L extends _0x8162cc{[_0x1171('0xe')](){const _0x26379d=this['editor'];if(!_0x26379d['plugins'][_0x1171('0xd')]('DocumentListEditing'))return;const _0x5074f2=_0x26379d['locale'],_0x30b13c=_0x26379d[_0x1171('0x7')]['get'](_0x1171('0x5')),_0x544dea=_0x26379d[_0x1171('0x7')][_0x1171('0x36')](_0x1171('0x23'));function _0x367987(_0x2da296){return()=>{const _0xa72e84=_0x26379d[_0x1171('0x38')]['get'](_0x2da296);let _0x16f873=Array[_0x1171('0x10')](_0x26379d[_0x1171('0x3b')][_0x1171('0xa')][_0x1171('0x37')][_0x1171('0x3a')]());if(_0x4c6395(_0x2da296)){_0x16f873=_0x544dea['expandListBlocksToCompleteList'](_0x16f873);const _0x3e7629=[];for(const _0x5c9a06 of _0x16f873)_0x544dea[_0x1171('0x1')](_0x5c9a06)&&_0x3e7629[_0x1171('0x24')](_0x5c9a06);_0x16f873=_0x3e7629;}_0x26379d['model'][_0x1171('0x31')](()=>{_0x30b13c['markMultiRangeBlockFormat'](_0x16f873,{'commandName':_0x2da296,'commandParams':[{'forceValue':!_0xa72e84[_0x1171('0x2f')]}],'formatGroupId':'listType'},[],_0x1171('0x1a'));});};}function _0x1035b5(_0x3ff2f9){return()=>{const _0xaf4181=function(_0x172131){let _0x3785f7=Array[_0x1171('0x10')](_0x172131);const _0x22c637=_0x3785f7[_0x1171('0x27')](_0x5dddda=>!_0x5dddda[_0x1171('0x25')](_0x1171('0x26')));return _0x22c637>-0x1&&(_0x3785f7=_0x3785f7[_0x1171('0x19')](0x0,_0x22c637)),_0x3785f7;}(_0x26379d['model'][_0x1171('0xa')][_0x1171('0x37')][_0x1171('0x3a')]()),_0x4510af=_0xaf4181[_0xaf4181['length']-0x1],_0x106ca0=_0x26379d[_0x1171('0x3b')][_0x1171('0x11')][_0x1171('0xc')](_0x4510af)?'after':_0x1171('0x4'),_0x55d99d=_0x26379d[_0x1171('0x3b')]['createRange'](_0x26379d[_0x1171('0x3b')][_0x1171('0x3')](_0xaf4181[0x0],_0x1171('0xf')),_0x26379d[_0x1171('0x3b')]['createPositionAt'](_0x4510af,_0x106ca0));_0x26379d[_0x1171('0x3b')][_0x1171('0x31')](()=>{_0x30b13c['markBlockFormat'](_0x55d99d,{'commandName':_0x3ff2f9,'commandParams':[],'formatGroupId':_0x1171('0x8')},function(_0x295539){const _0x4a3583=new Set();for(const _0x155a2b of _0x295539){let _0x34115e=_0x155a2b['nextSibling'];for(;_0x34115e&&_0x34115e[_0x1171('0x30')](_0x1171('0x12'))>_0x155a2b[_0x1171('0x30')](_0x1171('0x12'));)_0x4a3583['add'](_0x34115e),_0x34115e=_0x34115e[_0x1171('0x2c')];}return Array[_0x1171('0x10')](_0x4a3583);}(_0xaf4181));});};}function _0x1bcb60(_0x13e498){return()=>{const _0x898d04=_0x26379d[_0x1171('0x3b')][_0x1171('0xa')]['selection']['getSelectedBlocks']()['next']()[_0x1171('0x2f')],_0x7720bf=_0x26379d['model']['createPositionAt'](_0x898d04,_0x1171('0xf')),_0x543dbc=_0x26379d[_0x1171('0x3b')][_0x1171('0x3')](_0x898d04,0x0),_0x4641a7=_0x26379d['model'][_0x1171('0x0')](_0x7720bf,_0x543dbc);_0x26379d[_0x1171('0x3b')][_0x1171('0x31')](()=>{_0x30b13c['markBlockFormat'](_0x4641a7,{'commandName':_0x13e498,'commandParams':[],'formatGroupId':'listType'});});};}function _0x4c6395(_0x1f4ba9){const _0x1cfa36=_0x26379d[_0x1171('0x38')][_0x1171('0x36')](_0x1171('0x1f'))['value'],_0xd1f228=_0x26379d[_0x1171('0x38')]['get'](_0x1171('0x28'))['value'];return _0x1171('0x28')===_0x1f4ba9?_0x1cfa36:_0xd1f228;}_0x30b13c['enableCommand'](_0x1171('0x28'),_0x367987(_0x1171('0x28'))),_0x30b13c[_0x1171('0xb')]('bulletedList',_0x367987(_0x1171('0x1f'))),_0x30b13c[_0x1171('0xb')](_0x1171('0x29'),_0x1035b5(_0x1171('0x29'))),_0x30b13c['enableCommand'](_0x1171('0x2b'),_0x1035b5(_0x1171('0x2b'))),_0x30b13c[_0x1171('0xb')](_0x1171('0x1d'),_0x1bcb60(_0x1171('0x1d'))),_0x30b13c['enableCommand'](_0x1171('0x3f'),_0x1bcb60(_0x1171('0x3f'))),_0x30b13c['_descriptionFactory'][_0x1171('0x43')](function(_0x3e32a5){const _0x494ea4=!_0x26379d[_0x1171('0x3b')][_0x1171('0x11')][_0x1171('0xc')](_0x3e32a5),_0x214986=_0x3e32a5[_0x1171('0x35')],_0x40cb47=_0x3e32a5[_0x1171('0x2c')],_0x3983a3=_0x3e32a5[_0x1171('0x30')]('listItemId'),_0x35a1fb=!_0x214986||_0x214986[_0x1171('0x30')](_0x1171('0x26'))!==_0x3983a3,_0x3e9523=!_0x40cb47||_0x40cb47[_0x1171('0x30')](_0x1171('0x26'))!==_0x3983a3;return _0x494ea4&&Boolean(_0x3983a3)&&_0x35a1fb&&_0x3e9523;},_0x5cb364=>_0x43e19e(_0x5074f2,_0x1171('0x3d'),_0x5cb364)),_0x30b13c[_0x1171('0x42')][_0x1171('0x18')](function(_0x22261c){const {data:_0x5d4905}=_0x22261c;if(!_0x5d4905)return;let _0x170393,_0x1da584,_0x2bedb7,_0x1d4c16;switch(_0x5d4905[_0x1171('0x9')]){case _0x1171('0x1f'):_0x2bedb7=_0x5d4905[_0x1171('0x15')][0x0][_0x1171('0x1c')],_0x1d4c16=_0x4c6395(_0x5d4905['commandName']),_0x170393=_0x2bedb7?_0x1171('0x2a'):'*Format:*\x20remove\x20from\x20%0',_0x1d4c16&&(_0x170393='*Change\x20to:*\x20%0'),_0x1da584={'type':_0x1171('0x20'),'content':_0x43e19e(_0x5074f2,_0x170393,_0x43e19e(_0x5074f2,'ELEMENT_BULLETED_LIST'))};break;case _0x1171('0x28'):_0x2bedb7=_0x5d4905['commandParams'][0x0]['forceValue'],_0x1d4c16=_0x4c6395(_0x5d4905[_0x1171('0x9')]),_0x170393=_0x2bedb7?_0x1171('0x2a'):_0x1171('0x3c'),_0x1d4c16&&(_0x170393=_0x1171('0x34')),_0x1da584={'type':_0x1171('0x20'),'content':_0x43e19e(_0x5074f2,_0x170393,_0x43e19e(_0x5074f2,_0x1171('0x32')))};break;case _0x1171('0x29'):_0x170393='*Indent:*\x20%0',_0x1da584={'type':'format','content':_0x43e19e(_0x5074f2,_0x170393,_0x43e19e(_0x5074f2,_0x1171('0x3d')))};break;case _0x1171('0x2b'):_0x170393=function(_0x607eb7){const _0x36378d=_0x607eb7[_0x1171('0x2e')]();let _0x5986df=_0x36378d[_0x1171('0x14')][_0x1171('0x39')];for(;_0x5986df&&_0x36378d[_0x1171('0x1e')](_0x5986df);){if(_0x5986df[_0x1171('0x30')](_0x1171('0x12'))>0x0)return!0x1;_0x5986df=_0x5986df[_0x1171('0x2c')];}return!0x0;}(_0x22261c)?_0x43e19e(_0x5074f2,_0x1171('0x3c'),_0x43e19e(_0x5074f2,function(_0x2a7500){const _0x4491db=_0x2a7500[_0x1171('0x2e')]()['start']['nodeAfter'];return _0x1171('0x3e')+_0x4491db['getAttribute'](_0x1171('0x8'))[_0x1171('0x6')]()+_0x1171('0x13');}(_0x22261c))):_0x43e19e(_0x5074f2,_0x1171('0x21'),_0x43e19e(_0x5074f2,_0x1171('0x3d'))),_0x1da584={'type':'format','content':_0x170393};break;case _0x1171('0x2d'):case _0x1171('0x1b'):!0x1===_0x5d4905['multipleBlocks']&&(_0x170393='*Merge:*\x20%0',_0x1da584={'type':_0x1171('0x2'),'content':_0x43e19e(_0x5074f2,_0x170393,_0x43e19e(_0x5074f2,_0x1171('0x3d')))});}return _0x1da584;}),_0x30b13c[_0x1171('0x41')][_0x1171('0x33')]('formatBlock','documentList','accept',function(_0x16b993,_0x3167ec){const _0x13df3b=[];for(let _0x28f890 of _0x16b993)_0x28f890[_0x1171('0x14')]['nodeAfter']===_0x28f890[_0x1171('0x4')][_0x1171('0x22')]&&(_0x28f890=_0x26379d[_0x1171('0x3b')][_0x1171('0x0')](_0x26379d[_0x1171('0x3b')][_0x1171('0x3')](_0x28f890[_0x1171('0x14')][_0x1171('0x39')],0x0))),_0x13df3b['push'](_0x28f890);_0x26379d[_0x1171('0x3b')][_0x1171('0x31')](_0x3c82ff=>{const _0x5503d5=_0x26379d[_0x1171('0x3b')][_0x1171('0xa')][_0x1171('0x37')],_0x400493=Array['from'](_0x5503d5[_0x1171('0x40')]())[_0x1171('0x16')](_0x8a5d7b=>_0x212e1f['fromRange'](_0x8a5d7b));_0x3c82ff['setSelection'](_0x13df3b),_0x26379d[_0x1171('0x38')][_0x1171('0x36')](_0x3167ec[_0x1171('0x9')])['refresh'](),_0x3167ec[_0x1171('0x15')][_0x1171('0x24')]({'forceDefaultExecution':!0x0}),_0x26379d['execute'](_0x3167ec['commandName'],..._0x3167ec[_0x1171('0x15')]),_0x3c82ff[_0x1171('0x17')](_0x400493);for(const _0x26a339 of _0x400493)_0x26a339['detach']();});});}}
23
+ const _0x42b5=['listItemId','commands','before','findIndex','format','splitListItemBefore','_descriptionFactory','parent','registerCustomCallback','end','mergeListItemBackward','next','execute','bulletedList','listIndent','listType','commandParams','locale','DocumentListEditing','indentList','*Merge:*\x20%0','isFirstBlockOfListItem','schema','afterInit','_suggestionFactory','documentList','isObject','editor','nodeAfter','ELEMENT_NUMBERED_LIST','nextSibling','setSelection','createPositionAt','commandName','enableCommand','*Change\x20to:*\x20%0','numberedList','from','getSelectedBlocks','markMultiRangeBlockFormat','*Format:*\x20remove\x20from\x20%0','length','forceValue','getAttribute','getFirstRange','after','ELEMENT_','DocumentListUtils','mergeListItemForward','map','selection','slice','detach','splitListItemAfter','hasAttribute','plugins','expandListBlocksToCompleteList','markBlockFormat','get','accept','push','model','ELEMENT_BULLETED_LIST','registerDescriptionCallback','createRange','change','ELEMENT_LIST_ITEM','*Format:*\x20insert\x20into\x20%0','add','*Indent:*\x20%0','registerElementLabel','formatBlock','start','outdentList','previousSibling','document','value'];(function(_0x552bfb,_0x42b565){const _0x2a30fe=function(_0x4ea16d){while(--_0x4ea16d){_0x552bfb['push'](_0x552bfb['shift']());}};_0x2a30fe(++_0x42b565);}(_0x42b5,0x1ca));const _0x2a30=function(_0x552bfb,_0x42b565){_0x552bfb=_0x552bfb-0x0;let _0x2a30fe=_0x42b5[_0x552bfb];return _0x2a30fe;};import{Plugin as _0x224a49}from'ckeditor5/src/core';import{getTranslation as _0x33fc9a}from'../utils/common-translations';import{LiveRange as _0x5c371a}from'ckeditor5/src/engine';export default class L extends _0x224a49{[_0x2a30('0x1b')](){const _0x854664=this[_0x2a30('0x1f')];if(!_0x854664[_0x2a30('0x3b')]['has'](_0x2a30('0x16')))return;const _0x48d463=_0x854664[_0x2a30('0x15')],_0x3f3ec4=_0x854664[_0x2a30('0x3b')][_0x2a30('0x3e')]('TrackChangesEditing'),_0xef7495=_0x854664[_0x2a30('0x3b')]['get'](_0x2a30('0x33'));function _0x14e7b7(_0x5e016c){return()=>{const _0x3632ba=_0x854664['commands'][_0x2a30('0x3e')](_0x5e016c);let _0x570191=Array[_0x2a30('0x29')](_0x854664[_0x2a30('0x41')]['document']['selection'][_0x2a30('0x2a')]());if(_0x1c40e6(_0x5e016c)){_0x570191=_0xef7495[_0x2a30('0x3c')](_0x570191);const _0x59faf3=[];for(const _0x3be4d1 of _0x570191)_0xef7495[_0x2a30('0x19')](_0x3be4d1)&&_0x59faf3['push'](_0x3be4d1);_0x570191=_0x59faf3;}_0x854664[_0x2a30('0x41')]['change'](()=>{_0x3f3ec4[_0x2a30('0x2b')](_0x570191,{'commandName':_0x5e016c,'commandParams':[{'forceValue':!_0x3632ba['value']}],'formatGroupId':_0x2a30('0x13')},[],'documentList');});};}function _0x32a0b(_0x35523d){return()=>{const _0x107430=function(_0x550a12){let _0x407973=Array[_0x2a30('0x29')](_0x550a12);const _0x53e96e=_0x407973[_0x2a30('0x7')](_0x101c98=>!_0x101c98[_0x2a30('0x3a')](_0x2a30('0x4')));return _0x53e96e>-0x1&&(_0x407973=_0x407973[_0x2a30('0x37')](0x0,_0x53e96e)),_0x407973;}(_0x854664[_0x2a30('0x41')][_0x2a30('0x2')]['selection'][_0x2a30('0x2a')]()),_0x266f60=_0x107430[_0x107430[_0x2a30('0x2d')]-0x1],_0x5bab2c=_0x854664['model'][_0x2a30('0x1a')][_0x2a30('0x1e')](_0x266f60)?_0x2a30('0x31'):_0x2a30('0xd'),_0x3addb2=_0x854664[_0x2a30('0x41')][_0x2a30('0x44')](_0x854664[_0x2a30('0x41')][_0x2a30('0x24')](_0x107430[0x0],_0x2a30('0x6')),_0x854664[_0x2a30('0x41')][_0x2a30('0x24')](_0x266f60,_0x5bab2c));_0x854664['model'][_0x2a30('0x45')](()=>{_0x3f3ec4['markBlockFormat'](_0x3addb2,{'commandName':_0x35523d,'commandParams':[],'formatGroupId':'listType'},function(_0x135272){const _0x23fdf0=new Set();for(const _0x13efc0 of _0x135272){let _0x2ca29e=_0x13efc0['nextSibling'];for(;_0x2ca29e&&_0x2ca29e['getAttribute'](_0x2a30('0x12'))>_0x13efc0[_0x2a30('0x2f')]('listIndent');)_0x23fdf0[_0x2a30('0x48')](_0x2ca29e),_0x2ca29e=_0x2ca29e['nextSibling'];}return Array[_0x2a30('0x29')](_0x23fdf0);}(_0x107430));});};}function _0x19416b(_0x24249e){return()=>{const _0xcc3a4a=_0x854664[_0x2a30('0x41')][_0x2a30('0x2')][_0x2a30('0x36')][_0x2a30('0x2a')]()[_0x2a30('0xf')]()[_0x2a30('0x3')],_0x2ed3f0=_0x854664['model'][_0x2a30('0x24')](_0xcc3a4a,_0x2a30('0x6')),_0x78f7e2=_0x854664[_0x2a30('0x41')][_0x2a30('0x24')](_0xcc3a4a,0x0),_0x3aa4a2=_0x854664['model']['createRange'](_0x2ed3f0,_0x78f7e2);_0x854664[_0x2a30('0x41')]['change'](()=>{_0x3f3ec4[_0x2a30('0x3d')](_0x3aa4a2,{'commandName':_0x24249e,'commandParams':[],'formatGroupId':_0x2a30('0x13')});});};}function _0x1c40e6(_0x5b084e){const _0x3303ec=_0x854664[_0x2a30('0x5')][_0x2a30('0x3e')]('bulletedList')[_0x2a30('0x3')],_0x133a70=_0x854664[_0x2a30('0x5')][_0x2a30('0x3e')](_0x2a30('0x28'))[_0x2a30('0x3')];return'numberedList'===_0x5b084e?_0x3303ec:_0x133a70;}_0x3f3ec4['enableCommand'](_0x2a30('0x28'),_0x14e7b7(_0x2a30('0x28'))),_0x3f3ec4['enableCommand']('bulletedList',_0x14e7b7(_0x2a30('0x11'))),_0x3f3ec4[_0x2a30('0x26')](_0x2a30('0x17'),_0x32a0b(_0x2a30('0x17'))),_0x3f3ec4[_0x2a30('0x26')]('outdentList',_0x32a0b('outdentList')),_0x3f3ec4[_0x2a30('0x26')](_0x2a30('0x39'),_0x19416b(_0x2a30('0x39'))),_0x3f3ec4[_0x2a30('0x26')]('splitListItemBefore',_0x19416b(_0x2a30('0x9'))),_0x3f3ec4[_0x2a30('0xa')][_0x2a30('0x4a')](function(_0x330e26){const _0x5bd3d1=!_0x854664[_0x2a30('0x41')][_0x2a30('0x1a')][_0x2a30('0x1e')](_0x330e26),_0x16f743=_0x330e26[_0x2a30('0x1')],_0x4d0a20=_0x330e26[_0x2a30('0x22')],_0x557632=_0x330e26['getAttribute'](_0x2a30('0x4')),_0x40c099=!_0x16f743||_0x16f743[_0x2a30('0x2f')](_0x2a30('0x4'))!==_0x557632,_0x339e0c=!_0x4d0a20||_0x4d0a20['getAttribute'](_0x2a30('0x4'))!==_0x557632;return _0x5bd3d1&&Boolean(_0x557632)&&_0x40c099&&_0x339e0c;},_0x367ae3=>_0x33fc9a(_0x48d463,_0x2a30('0x46'),_0x367ae3)),_0x3f3ec4[_0x2a30('0xa')][_0x2a30('0x43')](function(_0x3787e2){const {data:_0x3f942f}=_0x3787e2;if(!_0x3f942f)return;let _0x540036,_0x78c00e,_0x46dba0,_0x25741e;switch(_0x3f942f['commandName']){case _0x2a30('0x11'):_0x46dba0=_0x3f942f[_0x2a30('0x14')][0x0][_0x2a30('0x2e')],_0x25741e=_0x1c40e6(_0x3f942f['commandName']),_0x540036=_0x46dba0?'*Format:*\x20insert\x20into\x20%0':_0x2a30('0x2c'),_0x25741e&&(_0x540036=_0x2a30('0x27')),_0x78c00e={'type':_0x2a30('0x8'),'content':_0x33fc9a(_0x48d463,_0x540036,_0x33fc9a(_0x48d463,_0x2a30('0x42')))};break;case _0x2a30('0x28'):_0x46dba0=_0x3f942f[_0x2a30('0x14')][0x0][_0x2a30('0x2e')],_0x25741e=_0x1c40e6(_0x3f942f['commandName']),_0x540036=_0x46dba0?_0x2a30('0x47'):_0x2a30('0x2c'),_0x25741e&&(_0x540036='*Change\x20to:*\x20%0'),_0x78c00e={'type':_0x2a30('0x8'),'content':_0x33fc9a(_0x48d463,_0x540036,_0x33fc9a(_0x48d463,_0x2a30('0x21')))};break;case'indentList':_0x540036=_0x2a30('0x49'),_0x78c00e={'type':'format','content':_0x33fc9a(_0x48d463,_0x540036,_0x33fc9a(_0x48d463,_0x2a30('0x46')))};break;case _0x2a30('0x0'):_0x540036=function(_0x5a524e){const _0x1e949a=_0x5a524e[_0x2a30('0x30')]();let _0x28dfa2=_0x1e949a['start'][_0x2a30('0x20')];for(;_0x28dfa2&&_0x1e949a['containsItem'](_0x28dfa2);){if(_0x28dfa2[_0x2a30('0x2f')](_0x2a30('0x12'))>0x0)return!0x1;_0x28dfa2=_0x28dfa2['nextSibling'];}return!0x0;}(_0x3787e2)?_0x33fc9a(_0x48d463,'*Format:*\x20remove\x20from\x20%0',_0x33fc9a(_0x48d463,function(_0x400b93){const _0x17ea2b=_0x400b93[_0x2a30('0x30')]()['start'][_0x2a30('0x20')];return _0x2a30('0x32')+_0x17ea2b[_0x2a30('0x2f')](_0x2a30('0x13'))['toUpperCase']()+'_LIST';}(_0x3787e2))):_0x33fc9a(_0x48d463,'*Outdent:*\x20%0',_0x33fc9a(_0x48d463,_0x2a30('0x46'))),_0x78c00e={'type':'format','content':_0x540036};break;case _0x2a30('0xe'):case _0x2a30('0x34'):!0x1===_0x3f942f['multipleBlocks']&&(_0x540036=_0x2a30('0x18'),_0x78c00e={'type':'deletion','content':_0x33fc9a(_0x48d463,_0x540036,_0x33fc9a(_0x48d463,'ELEMENT_LIST_ITEM'))});}return _0x78c00e;}),_0x3f3ec4[_0x2a30('0x1c')][_0x2a30('0xc')](_0x2a30('0x4b'),_0x2a30('0x1d'),_0x2a30('0x3f'),function(_0x311805,_0x45b907){const _0xee3af9=[];for(let _0x3499b2 of _0x311805)_0x3499b2[_0x2a30('0x4c')][_0x2a30('0x20')]===_0x3499b2['end'][_0x2a30('0xb')]&&(_0x3499b2=_0x854664[_0x2a30('0x41')][_0x2a30('0x44')](_0x854664['model'][_0x2a30('0x24')](_0x3499b2[_0x2a30('0x4c')]['nodeAfter'],0x0))),_0xee3af9[_0x2a30('0x40')](_0x3499b2);_0x854664[_0x2a30('0x41')][_0x2a30('0x45')](_0xa523fb=>{const _0x122e8b=_0x854664[_0x2a30('0x41')][_0x2a30('0x2')][_0x2a30('0x36')],_0xa2773=Array[_0x2a30('0x29')](_0x122e8b['getRanges']())[_0x2a30('0x35')](_0x175448=>_0x5c371a['fromRange'](_0x175448));_0xa523fb['setSelection'](_0xee3af9),_0x854664[_0x2a30('0x5')]['get'](_0x45b907[_0x2a30('0x25')])['refresh'](),_0x45b907[_0x2a30('0x14')][_0x2a30('0x40')]({'forceDefaultExecution':!0x0}),_0x854664[_0x2a30('0x10')](_0x45b907[_0x2a30('0x25')],..._0x45b907['commandParams']),_0xa523fb[_0x2a30('0x23')](_0xa2773);for(const _0x5cc4cc of _0xa2773)_0x5cc4cc[_0x2a30('0x38')]();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1658=['getListTypeFromListStyleType','numbered','DocumentListPropertiesUtils','commandParams','_LIST_','enableCommand','handleListStartCommand','startIndex','replace','_descriptionFactory','list.properties','DocumentListUtils','commandName','bind','selection','document','registerDescriptionCallback','markMultiRangeBlockFormat','handleDescriptions','isFirstBlockOfListItem','handleListStyleCommand','type','listStyle','getAttribute','format','_getSuggestionBlocksForListStyle','getSelectedBlocks','locale','_getSuggestionBlocks','expandListBlocksToCompleteList','ELEMENT_','*Change\x20to:*\x20%0','model','isListItemBlock','from','push','plugins','TrackChangesEditing','*Format:*\x20set\x20order\x20to\x20regular','change','config','_getTranslationKeyForListStyle','reversed','handleListReversedCommand','has','listReversed','*Format:*\x20set\x20start\x20index\x20to\x20%0','get','toUpperCase','editor','listStart','styles'];(function(_0x2560d2,_0x16589b){const _0x410314=function(_0x2bd372){while(--_0x2bd372){_0x2560d2['push'](_0x2560d2['shift']());}};_0x410314(++_0x16589b);}(_0x1658,0x101));const _0x4103=function(_0x2560d2,_0x16589b){_0x2560d2=_0x2560d2-0x0;let _0x410314=_0x1658[_0x2560d2];return _0x410314;};import{Plugin as _0x22ecb7}from'ckeditor5/src/core';import{getTranslation as _0x3d5d56}from'../utils/common-translations';export default class At extends _0x22ecb7{['afterInit'](){if(!this[_0x4103('0x0')]['plugins'][_0x4103('0x2f')]('DocumentListPropertiesEditing'))return;const _0x2f6638=this[_0x4103('0x0')][_0x4103('0x2b')]['get'](_0x4103('0xd')),_0x4fecb0=this[_0x4103('0x0')]['plugins'][_0x4103('0x32')](_0x4103('0x28'));_0x2f6638[_0x4103('0x2')]&&_0x4fecb0[_0x4103('0x8')](_0x4103('0x19'),this[_0x4103('0x17')][_0x4103('0x10')](this)),_0x2f6638['reversed']&&_0x4fecb0[_0x4103('0x8')]('listReversed',this[_0x4103('0x2e')][_0x4103('0x10')](this)),_0x2f6638[_0x4103('0xa')]&&_0x4fecb0['enableCommand'](_0x4103('0x1'),this[_0x4103('0x9')][_0x4103('0x10')](this)),_0x4fecb0[_0x4103('0xc')][_0x4103('0x13')](this[_0x4103('0x15')][_0x4103('0x10')](this));}[_0x4103('0x17')](_0x1f9ab9,_0x3501d9={}){const _0xbc41f2=this['editor'][_0x4103('0x27')][_0x4103('0x32')]('TrackChangesEditing'),_0x5c45bd=this[_0x4103('0x1c')]();this[_0x4103('0x0')][_0x4103('0x23')][_0x4103('0x2a')](()=>{_0xbc41f2[_0x4103('0x14')](_0x5c45bd,{'commandName':_0x4103('0x19'),'commandParams':[{'type':_0x3501d9[_0x4103('0x18')]}],'formatGroupId':_0x4103('0x19')});});}[_0x4103('0x2e')](_0x2e46fa,_0x5330e3={}){const _0x510f40=this[_0x4103('0x0')][_0x4103('0x27')][_0x4103('0x32')](_0x4103('0x28')),_0x471b6d=this[_0x4103('0x0')][_0x4103('0x27')][_0x4103('0x32')]('DocumentListUtils'),_0x4052b0=this[_0x4103('0x1f')](_0x359dde=>_0x471b6d[_0x4103('0x24')](_0x359dde)&&_0x4103('0x4')===_0x359dde[_0x4103('0x1a')]('listType'));null!==_0x4052b0&&this[_0x4103('0x0')][_0x4103('0x23')][_0x4103('0x2a')](()=>{_0x510f40[_0x4103('0x14')](_0x4052b0,{'commandName':_0x4103('0x30'),'commandParams':[{'reversed':_0x5330e3[_0x4103('0x2d')]}],'formatGroupId':'listReversed'});});}[_0x4103('0x9')](_0xbab196,_0x784d02={}){const _0x15f9b6=this['editor'][_0x4103('0x27')]['get']('TrackChangesEditing'),_0x4497ee=this['editor']['plugins'][_0x4103('0x32')](_0x4103('0xe')),_0x512777=this[_0x4103('0x1f')](_0x380c5c=>_0x4497ee['isListItemBlock'](_0x380c5c)&&_0x4103('0x4')===_0x380c5c['getAttribute']('listType'));null!==_0x512777&&this[_0x4103('0x0')][_0x4103('0x23')][_0x4103('0x2a')](()=>{_0x15f9b6[_0x4103('0x14')](_0x512777,{'commandName':_0x4103('0x1'),'commandParams':[{'startIndex':_0x784d02[_0x4103('0xa')]}],'formatGroupId':_0x4103('0x1')});});}['handleDescriptions'](_0x50cc93){const _0x1a66d4=this[_0x4103('0x0')][_0x4103('0x1e')],{data:_0x47ea95}=_0x50cc93;if(!_0x47ea95)return;let _0x336e10,_0x1185a0;switch(_0x47ea95[_0x4103('0xf')]){case _0x4103('0x19'):_0x336e10=_0x4103('0x22'),_0x1185a0={'type':_0x4103('0x1b'),'content':_0x3d5d56(_0x1a66d4,_0x336e10,_0x3d5d56(_0x1a66d4,this['_getTranslationKeyForListStyle'](_0x47ea95['commandParams'][0x0][_0x4103('0x18')])))};break;case _0x4103('0x30'):_0x336e10=_0x47ea95[_0x4103('0x6')][0x0][_0x4103('0x2d')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x4103('0x29'),_0x1185a0={'type':'format','content':_0x3d5d56(_0x1a66d4,_0x336e10)};break;case _0x4103('0x1'):_0x336e10=_0x4103('0x31'),_0x1185a0={'type':_0x4103('0x1b'),'content':_0x3d5d56(_0x1a66d4,_0x336e10,_0x47ea95[_0x4103('0x6')][0x0][_0x4103('0xa')])};}return _0x1185a0;}['_getSuggestionBlocksForListStyle'](){const _0x4d9665=this[_0x4103('0x0')][_0x4103('0x27')][_0x4103('0x32')](_0x4103('0xe'));let _0x756ef5=Array[_0x4103('0x25')](this['editor'][_0x4103('0x23')][_0x4103('0x12')][_0x4103('0x11')][_0x4103('0x1d')]());return _0x756ef5[_0x4103('0x26')](..._0x4d9665['expandListBlocksToCompleteList'](_0x756ef5)),_0x756ef5=[...new Set(_0x756ef5)],_0x756ef5;}[_0x4103('0x1f')](_0x1d33a2){const _0x4e267a=this[_0x4103('0x0')][_0x4103('0x27')][_0x4103('0x32')](_0x4103('0xe'));let _0x48dd45=Array[_0x4103('0x25')](this[_0x4103('0x0')][_0x4103('0x23')][_0x4103('0x12')][_0x4103('0x11')]['getSelectedBlocks']())['filter'](_0x1d33a2);if(!_0x48dd45['length'])return null;_0x48dd45=_0x4e267a[_0x4103('0x20')](_0x48dd45);const _0x54f151=[];for(const _0x292590 of _0x48dd45)_0x4e267a[_0x4103('0x16')](_0x292590)&&_0x54f151[_0x4103('0x26')](_0x292590);return _0x54f151;}[_0x4103('0x2c')](_0x1c2aea){return _0x4103('0x21')+this[_0x4103('0x0')][_0x4103('0x27')][_0x4103('0x32')](_0x4103('0x5'))[_0x4103('0x3')](_0x1c2aea)['toUpperCase']()+_0x4103('0x7')+_0x1c2aea[_0x4103('0x33')]()[_0x4103('0xb')](/-/g,'_');}}
23
+ const _0x24ee=['_getTranslationKeyForListStyle','listReversed','bind','editor','config','getSelectedBlocks','*Format:*\x20set\x20order\x20to\x20reversed','from','list.properties','registerDescriptionCallback','model','enableCommand','handleListStyleCommand','styles','commandParams','DocumentListPropertiesEditing','handleListReversedCommand','TrackChangesEditing','plugins','_getSuggestionBlocks','*Change\x20to:*\x20%0','isFirstBlockOfListItem','startIndex','locale','push','afterInit','handleDescriptions','DocumentListUtils','DocumentListPropertiesUtils','markMultiRangeBlockFormat','*Format:*\x20set\x20start\x20index\x20to\x20%0','listStyle','_LIST_','isListItemBlock','_getSuggestionBlocksForListStyle','change','numbered','length','listType','getAttribute','format','reversed','expandListBlocksToCompleteList','type','selection','replace','get','listStart','filter','_descriptionFactory','toUpperCase','document','handleListStartCommand'];(function(_0x27b4bf,_0x24ee83){const _0xf3c565=function(_0x56c97e){while(--_0x56c97e){_0x27b4bf['push'](_0x27b4bf['shift']());}};_0xf3c565(++_0x24ee83);}(_0x24ee,0x10a));const _0xf3c5=function(_0x27b4bf,_0x24ee83){_0x27b4bf=_0x27b4bf-0x0;let _0xf3c565=_0x24ee[_0x27b4bf];return _0xf3c565;};import{Plugin as _0x39a635}from'ckeditor5/src/core';import{getTranslation as _0x3d9c1f}from'../utils/common-translations';export default class At extends _0x39a635{[_0xf3c5('0x18')](){if(!this[_0xf3c5('0x2')][_0xf3c5('0x11')]['has'](_0xf3c5('0xe')))return;const _0x487a91=this[_0xf3c5('0x2')][_0xf3c5('0x3')][_0xf3c5('0x2d')](_0xf3c5('0x7')),_0xdde56e=this['editor'][_0xf3c5('0x11')]['get'](_0xf3c5('0x10'));_0x487a91[_0xf3c5('0xc')]&&_0xdde56e[_0xf3c5('0xa')](_0xf3c5('0x1e'),this[_0xf3c5('0xb')][_0xf3c5('0x1')](this)),_0x487a91[_0xf3c5('0x28')]&&_0xdde56e[_0xf3c5('0xa')]('listReversed',this[_0xf3c5('0xf')][_0xf3c5('0x1')](this)),_0x487a91[_0xf3c5('0x15')]&&_0xdde56e[_0xf3c5('0xa')](_0xf3c5('0x2e'),this['handleListStartCommand'][_0xf3c5('0x1')](this)),_0xdde56e[_0xf3c5('0x30')][_0xf3c5('0x8')](this[_0xf3c5('0x19')][_0xf3c5('0x1')](this));}['handleListStyleCommand'](_0x41e21a,_0x5320ea={}){const _0x1f52f8=this[_0xf3c5('0x2')][_0xf3c5('0x11')][_0xf3c5('0x2d')](_0xf3c5('0x10')),_0x2479a6=this[_0xf3c5('0x21')]();this[_0xf3c5('0x2')][_0xf3c5('0x9')][_0xf3c5('0x22')](()=>{_0x1f52f8[_0xf3c5('0x1c')](_0x2479a6,{'commandName':_0xf3c5('0x1e'),'commandParams':[{'type':_0x5320ea[_0xf3c5('0x2a')]}],'formatGroupId':'listStyle'});});}[_0xf3c5('0xf')](_0x1cbb87,_0xbca908={}){const _0x366e9c=this[_0xf3c5('0x2')][_0xf3c5('0x11')][_0xf3c5('0x2d')](_0xf3c5('0x10')),_0x49b78d=this[_0xf3c5('0x2')][_0xf3c5('0x11')][_0xf3c5('0x2d')](_0xf3c5('0x1a')),_0x5062c7=this['_getSuggestionBlocks'](_0x3ef9f8=>_0x49b78d[_0xf3c5('0x20')](_0x3ef9f8)&&_0xf3c5('0x23')===_0x3ef9f8[_0xf3c5('0x26')](_0xf3c5('0x25')));null!==_0x5062c7&&this['editor']['model'][_0xf3c5('0x22')](()=>{_0x366e9c[_0xf3c5('0x1c')](_0x5062c7,{'commandName':_0xf3c5('0x0'),'commandParams':[{'reversed':_0xbca908[_0xf3c5('0x28')]}],'formatGroupId':_0xf3c5('0x0')});});}[_0xf3c5('0x33')](_0x3fc845,_0x3d0bd4={}){const _0x37a2d6=this[_0xf3c5('0x2')][_0xf3c5('0x11')][_0xf3c5('0x2d')](_0xf3c5('0x10')),_0x5b835f=this['editor']['plugins'][_0xf3c5('0x2d')](_0xf3c5('0x1a')),_0x12e687=this['_getSuggestionBlocks'](_0x28efa1=>_0x5b835f[_0xf3c5('0x20')](_0x28efa1)&&_0xf3c5('0x23')===_0x28efa1[_0xf3c5('0x26')](_0xf3c5('0x25')));null!==_0x12e687&&this[_0xf3c5('0x2')][_0xf3c5('0x9')][_0xf3c5('0x22')](()=>{_0x37a2d6['markMultiRangeBlockFormat'](_0x12e687,{'commandName':_0xf3c5('0x2e'),'commandParams':[{'startIndex':_0x3d0bd4['startIndex']}],'formatGroupId':'listStart'});});}[_0xf3c5('0x19')](_0x5af952){const _0x16d408=this['editor'][_0xf3c5('0x16')],{data:_0x133f07}=_0x5af952;if(!_0x133f07)return;let _0x56f1b8,_0x514e69;switch(_0x133f07['commandName']){case _0xf3c5('0x1e'):_0x56f1b8=_0xf3c5('0x13'),_0x514e69={'type':_0xf3c5('0x27'),'content':_0x3d9c1f(_0x16d408,_0x56f1b8,_0x3d9c1f(_0x16d408,this[_0xf3c5('0x34')](_0x133f07[_0xf3c5('0xd')][0x0]['type'])))};break;case'listReversed':_0x56f1b8=_0x133f07[_0xf3c5('0xd')][0x0][_0xf3c5('0x28')]?_0xf3c5('0x5'):'*Format:*\x20set\x20order\x20to\x20regular',_0x514e69={'type':_0xf3c5('0x27'),'content':_0x3d9c1f(_0x16d408,_0x56f1b8)};break;case _0xf3c5('0x2e'):_0x56f1b8=_0xf3c5('0x1d'),_0x514e69={'type':_0xf3c5('0x27'),'content':_0x3d9c1f(_0x16d408,_0x56f1b8,_0x133f07[_0xf3c5('0xd')][0x0][_0xf3c5('0x15')])};}return _0x514e69;}['_getSuggestionBlocksForListStyle'](){const _0x20e262=this[_0xf3c5('0x2')][_0xf3c5('0x11')]['get'](_0xf3c5('0x1a'));let _0x1c1157=Array[_0xf3c5('0x6')](this[_0xf3c5('0x2')][_0xf3c5('0x9')][_0xf3c5('0x32')][_0xf3c5('0x2b')][_0xf3c5('0x4')]());return _0x1c1157[_0xf3c5('0x17')](..._0x20e262[_0xf3c5('0x29')](_0x1c1157)),_0x1c1157=[...new Set(_0x1c1157)],_0x1c1157;}[_0xf3c5('0x12')](_0x5c0d5b){const _0x47f678=this['editor'][_0xf3c5('0x11')][_0xf3c5('0x2d')](_0xf3c5('0x1a'));let _0x449b0c=Array[_0xf3c5('0x6')](this[_0xf3c5('0x2')][_0xf3c5('0x9')][_0xf3c5('0x32')][_0xf3c5('0x2b')][_0xf3c5('0x4')]())[_0xf3c5('0x2f')](_0x5c0d5b);if(!_0x449b0c[_0xf3c5('0x24')])return null;_0x449b0c=_0x47f678[_0xf3c5('0x29')](_0x449b0c);const _0x22030e=[];for(const _0x5f08ef of _0x449b0c)_0x47f678[_0xf3c5('0x14')](_0x5f08ef)&&_0x22030e['push'](_0x5f08ef);return _0x22030e;}[_0xf3c5('0x34')](_0xd5bd49){return'ELEMENT_'+this[_0xf3c5('0x2')]['plugins'][_0xf3c5('0x2d')](_0xf3c5('0x1b'))['getListTypeFromListStyleType'](_0xd5bd49)[_0xf3c5('0x31')]()+_0xf3c5('0x1f')+_0xd5bd49[_0xf3c5('0x31')]()[_0xf3c5('0x2c')](/-/g,'_');}}
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * @module track-changes/integrations/entercommand
3
3
  */
4
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ import { Enter } from 'ckeditor5/src/enter';
5
6
  /**
6
7
  * Provides track changes plugin integration for {@link module:enter/entercommand~EnterCommand enter command}.
7
8
  */
8
9
  export default class TrackChangesEnterCommand extends Plugin {
9
- static get requires(): PluginDependencies;
10
+ static get requires(): readonly [typeof Enter];
10
11
  init(): void;
11
12
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3692=['enterBlock','addMarker:suggestion:insertion','mapper','get','requires','afterExecute','fromRange','parent','showSuggestionHighlights','split','selection','ck-suggestion-marker-split','end','change','markerName','setSelection','model','remove','editor','init','markInsertion','plugins','enableCommand','createPositionAt','TrackChangesEditing','hasClass','enter','bind','commands','detach','fire','editing','options','createRange','markerNameToElements','document','high','downcastDispatcher'];(function(_0x4a9108,_0x36925a){const _0x279aa1=function(_0x214981){while(--_0x214981){_0x4a9108['push'](_0x4a9108['shift']());}};_0x279aa1(++_0x36925a);}(_0x3692,0x19d));const _0x279a=function(_0x4a9108,_0x36925a){_0x4a9108=_0x4a9108-0x0;let _0x279aa1=_0x3692[_0x4a9108];return _0x279aa1;};import{Plugin as _0x2b2408}from'ckeditor5/src/core';import{Enter as _0x485a0a}from'ckeditor5/src/enter';import{LiveRange as _0x542f46}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x5bfe0c}from'./utils';export default class q extends _0x2b2408{static get[_0x279a('0x9')](){return[_0x485a0a];}[_0x279a('0x18')](){const _0x47fcd0=this[_0x279a('0x17')],_0x2d739e=_0x47fcd0[_0x279a('0x1a')]['get'](_0x279a('0x1d')),_0x4b8dcd=_0x47fcd0[_0x279a('0x21')][_0x279a('0x8')](_0x279a('0x1f'));_0x2d739e[_0x279a('0x1b')](_0x279a('0x1f'),()=>{_0x47fcd0[_0x279a('0x15')][_0x279a('0x12')](_0x2c5e62=>{const _0x59e09f=_0x47fcd0[_0x279a('0x15')][_0x279a('0x2')][_0x279a('0xf')],_0x10cbe0=_0x59e09f['getFirstPosition'](),_0x17c896=_0x542f46[_0x279a('0xb')](_0x59e09f['getFirstRange']());if(_0x4b8dcd[_0x279a('0x5')](_0x2c5e62)){const _0x43c92e=_0x47fcd0[_0x279a('0x15')][_0x279a('0x1c')](_0x10cbe0[_0x279a('0xc')]['nextSibling'],0x0),_0x58296b=_0x2c5e62['createRange'](_0x10cbe0,_0x43c92e);_0x2d739e[_0x279a('0x19')](_0x58296b);}else _0x2c5e62[_0x279a('0x14')](_0x2c5e62[_0x279a('0x0')](_0x17c896[_0x279a('0x11')]));_0x17c896[_0x279a('0x22')](),_0x4b8dcd[_0x279a('0x23')](_0x279a('0xa'),{'writer':_0x2c5e62});});}),_0x47fcd0[_0x279a('0x24')][_0x279a('0x4')]['on'](_0x279a('0x6'),_0x5bfe0c(_0x47fcd0,_0x279a('0xe')),{'priority':_0x279a('0x3')}),_0x47fcd0[_0x279a('0x24')]['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x20bfd1,_0x5ca635,_0x1037f8)=>{const _0xbbec5=_0x1037f8[_0x279a('0x7')][_0x279a('0x1')](_0x5ca635[_0x279a('0x13')]);if(_0xbbec5)for(const _0x59dc7b of _0xbbec5)_0x59dc7b[_0x279a('0x1e')](_0x279a('0x10'))&&(_0x1037f8[_0x279a('0x7')]['unbindElementFromMarkerName'](_0x59dc7b,_0x5ca635[_0x279a('0x13')]),_0x1037f8['writer'][_0x279a('0x16')](_0x59dc7b));},{'priority':_0x279a('0x3')}),_0x47fcd0['data'][_0x279a('0x4')]['on'](_0x279a('0x6'),(_0x5eead7,_0x30e943,_0x387b4a)=>{_0x387b4a[_0x279a('0x25')][_0x279a('0xd')]&&_0x5bfe0c(_0x47fcd0,_0x279a('0xe'),{'showActiveMarker':!0x1})[_0x279a('0x20')](this)(_0x5eead7,_0x30e943,_0x387b4a);},{'priority':'high'});}}
23
+ const _0x518b=['mapper','downcastDispatcher','bind','detach','addMarker:suggestion:insertion','editing','editor','data','createPositionAt','createRange','change','ck-suggestion-marker-split','afterExecute','remove','fire','markInsertion','writer','unbindElementFromMarkerName','parent','get','enterBlock','setSelection','end','model','markerName','options','TrackChangesEditing','nextSibling','enableCommand','init','requires','removeMarker:suggestion:insertion','high','enter','commands'];(function(_0x408433,_0x518b7b){const _0x23d5c2=function(_0x2ffbf9){while(--_0x2ffbf9){_0x408433['push'](_0x408433['shift']());}};_0x23d5c2(++_0x518b7b);}(_0x518b,0x173));const _0x23d5=function(_0x408433,_0x518b7b){_0x408433=_0x408433-0x0;let _0x23d5c2=_0x518b[_0x408433];return _0x23d5c2;};import{Plugin as _0xd2931e}from'ckeditor5/src/core';import{Enter as _0x2e3c4d}from'ckeditor5/src/enter';import{LiveRange as _0x42904f}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x4ce3e5}from'./utils';export default class q extends _0xd2931e{static get[_0x23d5('0x9')](){return[_0x2e3c4d];}[_0x23d5('0x8')](){const _0x50efa8=this[_0x23d5('0x14')],_0x47bc4e=_0x50efa8['plugins']['get'](_0x23d5('0x5')),_0x3d2fd7=_0x50efa8[_0x23d5('0xd')][_0x23d5('0x21')](_0x23d5('0xc'));_0x47bc4e[_0x23d5('0x7')](_0x23d5('0xc'),()=>{_0x50efa8[_0x23d5('0x2')][_0x23d5('0x18')](_0x409a6f=>{const _0x55f517=_0x50efa8[_0x23d5('0x2')]['document']['selection'],_0x155970=_0x55f517['getFirstPosition'](),_0x339c7a=_0x42904f['fromRange'](_0x55f517['getFirstRange']());if(_0x3d2fd7[_0x23d5('0x22')](_0x409a6f)){const _0x240d8a=_0x50efa8['model'][_0x23d5('0x16')](_0x155970[_0x23d5('0x20')][_0x23d5('0x6')],0x0),_0x210b1e=_0x409a6f[_0x23d5('0x17')](_0x155970,_0x240d8a);_0x47bc4e[_0x23d5('0x1d')](_0x210b1e);}else _0x409a6f[_0x23d5('0x0')](_0x409a6f[_0x23d5('0x17')](_0x339c7a[_0x23d5('0x1')]));_0x339c7a[_0x23d5('0x11')](),_0x3d2fd7[_0x23d5('0x1c')](_0x23d5('0x1a'),{'writer':_0x409a6f});});}),_0x50efa8[_0x23d5('0x13')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',_0x4ce3e5(_0x50efa8,'split'),{'priority':_0x23d5('0xb')}),_0x50efa8['editing'][_0x23d5('0xf')]['on'](_0x23d5('0xa'),(_0xb1ccb9,_0x2f659e,_0x3963ca)=>{const _0xbae85a=_0x3963ca[_0x23d5('0xe')]['markerNameToElements'](_0x2f659e[_0x23d5('0x3')]);if(_0xbae85a)for(const _0x2322cb of _0xbae85a)_0x2322cb['hasClass'](_0x23d5('0x19'))&&(_0x3963ca['mapper'][_0x23d5('0x1f')](_0x2322cb,_0x2f659e[_0x23d5('0x3')]),_0x3963ca[_0x23d5('0x1e')][_0x23d5('0x1b')](_0x2322cb));},{'priority':_0x23d5('0xb')}),_0x50efa8[_0x23d5('0x15')][_0x23d5('0xf')]['on'](_0x23d5('0x12'),(_0x5d3c4c,_0x27b4d5,_0x438275)=>{_0x438275[_0x23d5('0x4')]['showSuggestionHighlights']&&_0x4ce3e5(_0x50efa8,'split',{'showActiveMarker':!0x1})[_0x23d5('0x10')](this)(_0x5d3c4c,_0x27b4d5,_0x438275);},{'priority':_0x23d5('0xb')});}}