@ckeditor/ckeditor5-track-changes 36.0.0 → 37.0.0-rc.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 (127) hide show
  1. package/build/track-changes.js +1 -1
  2. package/ckeditor5-metadata.json +10 -0
  3. package/package.json +21 -6
  4. package/src/augmentation.d.ts +36 -0
  5. package/src/augmentation.js +23 -0
  6. package/src/commands/acceptsuggestioncommand.d.ts +20 -0
  7. package/src/commands/acceptsuggestioncommand.js +1 -1
  8. package/src/commands/discardsuggestioncommand.d.ts +20 -0
  9. package/src/commands/discardsuggestioncommand.js +1 -1
  10. package/src/commands/executeonallsuggestionscommand.d.ts +20 -0
  11. package/src/commands/executeonallsuggestionscommand.js +1 -1
  12. package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -0
  13. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  14. package/src/commands/trackchangescommand.d.ts +22 -0
  15. package/src/commands/trackchangescommand.js +1 -1
  16. package/src/index.d.ts +12 -0
  17. package/src/index.js +1 -1
  18. package/src/integrations/alignment.d.ts +13 -0
  19. package/src/integrations/alignment.js +1 -1
  20. package/src/integrations/basicstyles.d.ts +13 -0
  21. package/src/integrations/basicstyles.js +1 -1
  22. package/src/integrations/blockquote.d.ts +13 -0
  23. package/src/integrations/blockquote.js +1 -1
  24. package/src/integrations/ckbox.d.ts +13 -0
  25. package/src/integrations/ckbox.js +1 -1
  26. package/src/integrations/codeblock.d.ts +13 -0
  27. package/src/integrations/codeblock.js +1 -1
  28. package/src/integrations/comments.d.ts +10 -0
  29. package/src/integrations/comments.js +1 -1
  30. package/src/integrations/deletecommand.d.ts +12 -0
  31. package/src/integrations/deletecommand.js +1 -1
  32. package/src/integrations/documentlist.d.ts +13 -0
  33. package/src/integrations/documentlist.js +1 -1
  34. package/src/integrations/documentlistproperties.d.ts +25 -0
  35. package/src/integrations/documentlistproperties.js +1 -1
  36. package/src/integrations/entercommand.d.ts +11 -0
  37. package/src/integrations/entercommand.js +1 -1
  38. package/src/integrations/findandreplace.d.ts +17 -0
  39. package/src/integrations/findandreplace.js +1 -1
  40. package/src/integrations/font.d.ts +13 -0
  41. package/src/integrations/font.js +1 -1
  42. package/src/integrations/heading.d.ts +13 -0
  43. package/src/integrations/heading.js +1 -1
  44. package/src/integrations/highlight.d.ts +13 -0
  45. package/src/integrations/highlight.js +1 -1
  46. package/src/integrations/horizontalline.d.ts +13 -0
  47. package/src/integrations/horizontalline.js +1 -1
  48. package/src/integrations/htmlembed.d.ts +13 -0
  49. package/src/integrations/htmlembed.js +1 -1
  50. package/src/integrations/image.d.ts +13 -0
  51. package/src/integrations/image.js +1 -1
  52. package/src/integrations/imagereplace.d.ts +19 -0
  53. package/src/integrations/imagereplace.js +1 -1
  54. package/src/integrations/importword.d.ts +14 -0
  55. package/src/integrations/importword.js +1 -1
  56. package/src/integrations/indent.d.ts +13 -0
  57. package/src/integrations/indent.js +1 -1
  58. package/src/integrations/inputcommand.d.ts +11 -0
  59. package/src/integrations/inputcommand.js +1 -1
  60. package/src/integrations/link.d.ts +13 -0
  61. package/src/integrations/link.js +1 -1
  62. package/src/integrations/list.d.ts +13 -0
  63. package/src/integrations/list.js +1 -1
  64. package/src/integrations/listproperties.d.ts +25 -0
  65. package/src/integrations/listproperties.js +1 -1
  66. package/src/integrations/mediaembed.d.ts +13 -0
  67. package/src/integrations/mediaembed.js +1 -1
  68. package/src/integrations/mention.d.ts +13 -0
  69. package/src/integrations/mention.js +1 -1
  70. package/src/integrations/pagebreak.d.ts +13 -0
  71. package/src/integrations/pagebreak.js +1 -1
  72. package/src/integrations/paragraph.d.ts +13 -0
  73. package/src/integrations/paragraph.js +1 -1
  74. package/src/integrations/removeformat.d.ts +13 -0
  75. package/src/integrations/removeformat.js +1 -1
  76. package/src/integrations/restrictededitingmode.d.ts +13 -0
  77. package/src/integrations/restrictededitingmode.js +1 -1
  78. package/src/integrations/shiftentercommand.d.ts +11 -0
  79. package/src/integrations/shiftentercommand.js +1 -1
  80. package/src/integrations/standardeditingmode.d.ts +13 -0
  81. package/src/integrations/standardeditingmode.js +1 -1
  82. package/src/integrations/style.d.ts +14 -0
  83. package/src/integrations/style.js +1 -1
  84. package/src/integrations/table.d.ts +38 -0
  85. package/src/integrations/table.js +1 -1
  86. package/src/integrations/tablecaption.d.ts +17 -0
  87. package/src/integrations/tablecaption.js +1 -1
  88. package/src/integrations/tableclipboard.d.ts +17 -0
  89. package/src/integrations/tableclipboard.js +1 -1
  90. package/src/integrations/tablecolumnresize.d.ts +22 -0
  91. package/src/integrations/tablecolumnresize.js +1 -1
  92. package/src/integrations/tableheadings.d.ts +17 -0
  93. package/src/integrations/tableheadings.js +1 -1
  94. package/src/integrations/tablemergesplit.d.ts +17 -0
  95. package/src/integrations/tablemergesplit.js +1 -1
  96. package/src/integrations/tableproperties.d.ts +23 -0
  97. package/src/integrations/tableproperties.js +1 -1
  98. package/src/integrations/title.d.ts +13 -0
  99. package/src/integrations/title.js +1 -1
  100. package/src/integrations/undo.d.ts +13 -0
  101. package/src/integrations/undo.js +1 -1
  102. package/src/integrations/utils.d.ts +17 -0
  103. package/src/integrations/utils.js +1 -1
  104. package/src/suggestion.d.ts +266 -0
  105. package/src/suggestion.js +1 -1
  106. package/src/suggestiondescriptionfactory.d.ts +151 -0
  107. package/src/suggestiondescriptionfactory.js +1 -1
  108. package/src/trackchanges.d.ts +222 -0
  109. package/src/trackchanges.js +1 -1
  110. package/src/trackchangesconfig.d.ts +53 -0
  111. package/src/trackchangesconfig.js +23 -0
  112. package/src/trackchangesdata.d.ts +38 -0
  113. package/src/trackchangesdata.js +1 -1
  114. package/src/trackchangesediting.d.ts +391 -0
  115. package/src/trackchangesediting.js +1 -1
  116. package/src/trackchangesui.d.ts +34 -0
  117. package/src/trackchangesui.js +1 -1
  118. package/src/ui/suggestioncontroller.d.ts +36 -0
  119. package/src/ui/suggestioncontroller.js +1 -1
  120. package/src/ui/view/basesuggestionthreadview.d.ts +166 -0
  121. package/src/ui/view/basesuggestionthreadview.js +1 -1
  122. package/src/ui/view/suggestionthreadview.d.ts +184 -0
  123. package/src/ui/view/suggestionthreadview.js +1 -1
  124. package/src/utils/common-translations.d.ts +5 -0
  125. package/src/utils/common-translations.js +1 -1
  126. package/src/utils/utils.d.ts +26 -0
  127. package/src/utils/utils.js +1 -1
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/image
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for {@link module:image/image~Image image feature}.
7
+ */
8
+ export default class TrackChangesImage extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37b3=['getSuggestion','previous','value','getContainedElement','newValue','Inline\x20image\x20to\x20block\x20image','convertInlineImageToBlock','imageStyle','*Set\x20image\x20width:*\x20%0','createRange','forEach','schema','getNearestSelectionRange','newRange','isInlineImage','Block\x20image\x20to\x20inline\x20image','get','formatInline','getSuggestionCallback','has','end','element','isEqual','isInContent','addObject','isCollapsed','*Reset\x20image\x20width*','markInsertion','convertBlockImageToInline','subType','start','isBlockImage','isOwn','registerPostFixer','ELEMENT_CAPTION','discardSuggestion','insertion','ImageResize','chain','detach','normalizedStyles','imageTypeBlock','getFirstRange','ImageEditing','commandReversedParams','ImageInlineEditing','plugins','format','_descriptionFactory','next','toPrevious','getSuggestions','enableCommand','backward','imageCaption','TrackChangesEditing','commandParams','getCaptionFromImageModelElement','document','ELEMENT_IMAGE','nodeBefore','filter','markDeletion','ImageTextAlternativeEditing','editor','differ','name','toLowerCase','commandName','_suggestionFactory','accept','registerCustomCallback','type','model','getChangedMarkers','*Set\x20image\x20text\x20alternative:*\x20%0','FORMAT_SIDE_IMAGE','title','fromPosition','suggestion','ImageBlockEditing','imageBlock','ImageUploadEditing','commands','markBlockFormat','alt','hasSuggestion','registerElementLabel','resizeImage','*Format:*\x20%0','imageStylePostApply','afterInit','registerDescriptionCallback','selection','length','removeObject','isBefore','shouldConvertImageType','Users','getClosestSelectedImageElement','ELEMENT_INLINE_IMAGE','discard','join','refresh','hasAttribute','formatBlock','imageTextAlternative','findIndex','_splitMarkerName','nodeAfter','side','width','ImageCaptionEditing','imageStylePreApply','_findSuggestions','imageTypeInline','from','change','caption','deletion','createRangeOn','head','uploadImage','ImageCaptionUtils','author','ImageStyleEditing','locale'];(function(_0x1e8d8b,_0x37b3a2){const _0x52979f=function(_0x3fbb14){while(--_0x3fbb14){_0x1e8d8b['push'](_0x1e8d8b['shift']());}};_0x52979f(++_0x37b3a2);}(_0x37b3,0xe4));const _0x5297=function(_0x1e8d8b,_0x37b3a2){_0x1e8d8b=_0x1e8d8b-0x0;let _0x52979f=_0x37b3[_0x1e8d8b];return _0x52979f;};import{Plugin as _0x2187cb}from'ckeditor5/src/core';import{LivePosition as _0x4e4a03}from'ckeditor5/src/engine';import{uid as _0x3eb7e0}from'ckeditor5/src/utils';import{getTranslation as _0x408a6d}from'../utils/common-translations';export default class Y extends _0x2187cb{[_0x5297('0x75')](){const _0x3abc47=this[_0x5297('0x5a')];if(!_0x3abc47[_0x5297('0x48')][_0x5297('0x2d')](_0x5297('0x45')))return;const _0x3f89ea=_0x3abc47['plugins'][_0x5297('0x2a')](_0x5297('0x51')),_0x51d7a7=_0x3abc47[_0x5297('0x48')][_0x5297('0x2a')]('ImageUtils'),_0x2bf3d1={},_0x5d7a22=_0x3abc47[_0x5297('0x19')];if(_0x3f89ea[_0x5297('0x4e')]('insertImage'),_0x3f89ea[_0x5297('0x4a')][_0x5297('0x71')](_0x5297('0x6b'),_0x20e8e3=>_0x408a6d(_0x5d7a22,_0x5297('0x55'),_0x20e8e3)),_0x3f89ea[_0x5297('0x4a')][_0x5297('0x71')]('imageInline',_0x1d73a8=>_0x408a6d(_0x5d7a22,_0x5297('0x7e'),_0x1d73a8)),_0x3f89ea[_0x5297('0x4a')]['registerElementLabel']('caption',()=>_0x408a6d(_0x5d7a22,_0x5297('0x3c'))),_0x3abc47[_0x5297('0x48')][_0x5297('0x2d')](_0x5297('0x6c'))&&_0x3f89ea['enableCommand'](_0x5297('0x15')),_0x3abc47['plugins'][_0x5297('0x2d')](_0x5297('0x6a'))&&_0x3abc47[_0x5297('0x48')][_0x5297('0x2d')](_0x5297('0x47'))&&(_0x3f89ea['enableCommand'](_0x5297('0xe'),(_0x2be1fb,_0x170126)=>{const _0x404148=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]);_0x3abc47[_0x5297('0x63')][_0x5297('0x10')](()=>{_0x3f89ea[_0x5297('0x6e')](_0x404148,{'commandName':'imageTypeInline','commandParams':[_0x170126]},[],'convertBlockImageToInline');});}),_0x3f89ea[_0x5297('0x4e')](_0x5297('0x43'),(_0x59276a,_0x5a0dc5)=>{_0x3abc47['model'][_0x5297('0x10')](_0x49e021=>{let _0x5f2340=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]),_0x3b568d=_0x49e021[_0x5297('0x13')](_0x5f2340);const _0x5d87d0=_0x4e4a03[_0x5297('0x68')](_0x3b568d[_0x5297('0x38')],_0x5297('0x4c')),_0x9fa9b=_0x4e4a03[_0x5297('0x68')](_0x3b568d['end'],'toNext');_0x3f89ea['forceDefaultExecution'](()=>_0x59276a(_0x5a0dc5)),_0x5f2340=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')]['selection']),_0x3b568d=_0x49e021[_0x5297('0x13')](_0x5f2340);const _0x595f7b=_0x49e021[_0x5297('0x23')](_0x5d87d0,_0x9fa9b);_0x5d87d0[_0x5297('0x41')](),_0x9fa9b['detach'](),_0x3f89ea['markBlockFormat'](_0x5f2340,{'commandName':_0x5297('0xe')},[],_0x5297('0x20')),_0x595f7b['start'][_0x5297('0x7a')](_0x3b568d[_0x5297('0x38')])&&_0x3f89ea[_0x5297('0x35')](_0x49e021[_0x5297('0x23')](_0x595f7b['start'],_0x3b568d[_0x5297('0x38')]),_0x5297('0x20')),_0x3b568d['end'][_0x5297('0x7a')](_0x595f7b[_0x5297('0x2e')])&&_0x3f89ea[_0x5297('0x35')](_0x49e021[_0x5297('0x23')](_0x3b568d[_0x5297('0x2e')],_0x595f7b['end']),'convertInlineImageToBlock');});}),_0x3f89ea[_0x5297('0x5f')]['registerCustomCallback'](_0x5297('0x4'),_0x5297('0x20'),_0x5297('0x1'),()=>{}),_0x3f89ea['_suggestionFactory'][_0x5297('0x61')]('formatBlock',_0x5297('0x20'),'accept',()=>{}),_0x3f89ea['_suggestionFactory'][_0x5297('0x61')]('formatBlock',_0x5297('0x20'),_0x5297('0x0'),_0x3f89ea[_0x5297('0x5f')][_0x5297('0x2c')](_0x5297('0x4'),'',_0x5297('0x60'))),_0x3f89ea[_0x5297('0x5f')][_0x5297('0x61')]('insertion',_0x5297('0x20'),_0x5297('0x1'),()=>{}),_0x3f89ea[_0x5297('0x5f')]['registerCustomCallback'](_0x5297('0x3e'),_0x5297('0x20'),'discard',([_0xd95cf1])=>{const _0x49c301=_0x3f89ea['_suggestionFactory'][_0x5297('0x2c')](_0x5297('0x3e'),'',_0x5297('0x0'));let _0x228f58=_0xd95cf1[_0x5297('0x38')],_0x48655e=_0xd95cf1['end'];const _0x4c7e3d=_0x3abc47[_0x5297('0x63')][_0x5297('0x25')][_0x5297('0x26')](_0x228f58,_0x5297('0x4f')),_0x292f45=_0x3abc47[_0x5297('0x63')][_0x5297('0x25')][_0x5297('0x26')](_0x48655e,'forward');_0x4c7e3d['isCollapsed']&&(_0x228f58=_0x4c7e3d[_0x5297('0x38')]),_0x292f45[_0x5297('0x33')]&&(_0x48655e=_0x292f45[_0x5297('0x2e')]),_0x49c301([_0x3abc47[_0x5297('0x63')][_0x5297('0x23')](_0x228f58,_0x48655e)]);}),_0x3f89ea['_suggestionFactory']['registerCustomCallback'](_0x5297('0x4'),_0x5297('0x20'),_0x5297('0x40'),_0x2e0be3),_0x3f89ea['_suggestionFactory'][_0x5297('0x61')](_0x5297('0x3e'),_0x5297('0x20'),'chain',_0x2e0be3)),_0x3abc47[_0x5297('0x48')]['has'](_0x5297('0xb'))&&(_0x3f89ea[_0x5297('0x4e')]('toggleImageCaption',(_0x3f0782,_0x49e06b)=>{const _0x4ab62c=_0x3abc47['plugins'][_0x5297('0x2a')](_0x5297('0x16'));let _0x1eca4b=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')]['selection']),_0x1eff4a=_0x4ab62c['getCaptionFromImageModelElement'](_0x1eca4b);_0x3abc47[_0x5297('0x63')]['change'](()=>{if(_0x1eff4a)return void _0x3f89ea[_0x5297('0x58')](_0x3abc47['model'][_0x5297('0x13')](_0x1eff4a));const _0xad1e6=_0x51d7a7[_0x5297('0x39')](_0x1eca4b);_0x3f0782(_0x49e06b),_0x1eca4b=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]),_0x1eff4a=_0x4ab62c[_0x5297('0x53')](_0x1eca4b),_0x3f89ea[_0x5297('0x35')](_0x3abc47[_0x5297('0x63')][_0x5297('0x13')](_0x1eff4a),_0xad1e6?null:'imageCaption');});}),_0x3f89ea['_suggestionFactory']['registerCustomCallback'](_0x5297('0x3e'),_0x5297('0x50'),'chain',_0x2e0be3)),_0x3abc47[_0x5297('0x48')]['has'](_0x5297('0x18'))){_0x3f89ea['enableCommand'](_0x5297('0x21'),(_0x417426,_0x36d117)=>{const _0x3f25a9=_0x3abc47[_0x5297('0x48')][_0x5297('0x2a')](_0x5297('0x7c'))['me'],_0x51b23e=_0x3abc47[_0x5297('0x6d')]['get'](_0x5297('0x21'));let _0x5e228b=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]),_0x26a5ed=_0x3abc47[_0x5297('0x63')][_0x5297('0x13')](_0x5e228b),_0xb9cba5=_0x51b23e[_0x5297('0x1c')];if(_0xb9cba5==_0x36d117[_0x5297('0x1c')])return;const _0x462b18={'commandName':_0x5297('0x21'),'commandParams':[_0x36d117],'formatGroupId':_0x3eb7e0()};_0x3abc47['model'][_0x5297('0x10')](()=>{if(_0x3f89ea[_0x5297('0x4d')]()[_0x5297('0x57')](_0x14e094=>_0x14e094['isInContent']&&_0x3f25a9==_0x14e094[_0x5297('0x17')]&&(_0x5297('0x4')==_0x14e094[_0x5297('0x62')]||_0x5297('0x2b')==_0x14e094['type'])&&('imageStylePreApply'==_0x14e094[_0x5297('0x37')]||_0x5297('0x74')==_0x14e094['subType'])&&_0x14e094[_0x5297('0x44')]()['isEqual'](_0x26a5ed))[_0x5297('0x24')](_0x172dc4=>_0x3f89ea['discardSuggestion'](_0x172dc4[_0x5297('0x14')])),_0x5e228b=_0x51d7a7[_0x5297('0x7d')](_0x3abc47['model'][_0x5297('0x54')][_0x5297('0x77')]),_0x26a5ed=_0x3abc47[_0x5297('0x63')][_0x5297('0x13')](_0x5e228b),_0x51b23e[_0x5297('0x2')](),_0x3abc47['commands'][_0x5297('0x2a')](_0x5297('0xe'))['refresh'](),_0x3abc47['commands']['get'](_0x5297('0x43'))[_0x5297('0x2')](),_0xb9cba5=_0x51b23e[_0x5297('0x1c')],_0xb9cba5!=_0x36d117[_0x5297('0x1c')])return _0x51d7a7[_0x5297('0x28')](_0x5e228b)&&_0x51b23e[_0x5297('0x7b')](_0x36d117[_0x5297('0x1c')],_0x5e228b)?(_0x417426(_0x36d117),_0x5e228b=_0x51d7a7['getClosestSelectedImageElement'](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]),void _0x3f89ea[_0x5297('0x6e')](_0x5e228b,{..._0x462b18,'commandReversedParams':[{'value':_0xb9cba5||null}]},[],_0x5297('0xc'))):void(_0x51d7a7[_0x5297('0x39')](_0x5e228b)?_0x3f89ea[_0x5297('0x6e')](_0x5e228b,_0x462b18,[],_0x5297('0x74')):_0x3f89ea['markInlineFormat'](_0x26a5ed,_0x462b18,'imageStylePostApply'));});});for(const _0x55e384 of _0x3abc47['plugins']['get'](_0x5297('0x18'))[_0x5297('0x42')])_0x2bf3d1[_0x55e384[_0x5297('0x5c')]]=_0x55e384[_0x5297('0x67')][_0x5297('0x5d')]();_0x3f89ea[_0x5297('0x5f')][_0x5297('0x61')](_0x5297('0x4'),_0x5297('0xc'),'join',()=>{}),_0x3f89ea[_0x5297('0x5f')]['registerCustomCallback'](_0x5297('0x4'),_0x5297('0x74'),'join',()=>{}),_0x3f89ea[_0x5297('0x5f')][_0x5297('0x61')](_0x5297('0x2b'),'imageStylePostApply',_0x5297('0x1'),()=>{}),_0x3f89ea[_0x5297('0x5f')]['registerCustomCallback']('formatBlock',_0x5297('0xc'),_0x5297('0x60'),()=>{}),_0x3f89ea[_0x5297('0x5f')][_0x5297('0x61')]('formatBlock','imageStylePreApply',_0x5297('0x0'),(_0x657d73,_0x6e2f98)=>{_0x3f89ea[_0x5297('0x5f')][_0x5297('0x2c')](_0x5297('0x4'),'','accept')(_0x657d73,{'commandName':_0x6e2f98[_0x5297('0x5e')],'commandParams':_0x6e2f98[_0x5297('0x46')]});}),_0x3f89ea['_suggestionFactory'][_0x5297('0x61')](_0x5297('0x4'),_0x5297('0xc'),'chain',_0x2e0be3);}const _0x2142cf=[{'type':_0x5297('0x4'),'subType':_0x5297('0xc')},{'type':_0x5297('0x3e'),'subType':_0x5297('0x50')},{'type':_0x5297('0x4'),'subType':_0x5297('0x20')},{'type':_0x5297('0x3e'),'subType':_0x5297('0x20')}];function _0x58c5d2(_0x51afb2,_0x497856){const _0x5bd3c2=_0x2142cf[_0x5297('0x6')](({type:_0x4b624d,subType:_0x46901c})=>_0x51afb2[_0x5297('0x62')]==_0x4b624d&&_0x51afb2['subType']==_0x46901c),_0x4054de=_0x2142cf[_0x5297('0x6')](({type:_0xe4fd2a,subType:_0x3896e8})=>_0x497856['type']==_0xe4fd2a&&_0x497856['subType']==_0x3896e8);if(_0x5bd3c2<0x0||_0x4054de<0x0)return!0x1;const _0x34a278=_0x51afb2['getFirstRange'](),_0x178a02=_0x497856[_0x5297('0x44')]();if((0x0==_0x5bd3c2||0x1==_0x5bd3c2)&&0x2==_0x4054de&&_0x34a278['isIntersecting'](_0x178a02))return!0x0;if(0x2==_0x5bd3c2&&0x3==_0x4054de){const _0x341424=_0x3f89ea[_0x5297('0xd')](_0x34a278,_0x5297('0x3e'))['filter'](({suggestion:_0x51f833,meta:_0x5eb759})=>_0x5eb759[_0x5297('0x3a')]&&_0x5297('0x20')==_0x51f833[_0x5297('0x37')]);if(_0x341424['length']>0x1&&_0x178a02[_0x5297('0x2e')][_0x5297('0x30')](_0x34a278[_0x5297('0x38')]))return!0x0;if(0x1==_0x341424[_0x5297('0x78')]&&(_0x34a278['start'][_0x5297('0x30')](_0x178a02[_0x5297('0x2e')])||_0x34a278[_0x5297('0x2e')][_0x5297('0x30')](_0x178a02[_0x5297('0x38')])))return!0x0;}if(0x3==_0x5bd3c2&&0x3==_0x4054de&&_0x34a278[_0x5297('0x38')][_0x5297('0x7a')](_0x178a02['start'])){const _0x3563be=_0x34a278[_0x5297('0x2e')][_0x5297('0x8')],_0x3b194b=_0x178a02[_0x5297('0x38')][_0x5297('0x56')];return _0x51d7a7[_0x5297('0x39')](_0x3563be)&&_0x3563be===_0x3b194b;}return!0x1;}function _0x2e0be3(_0x3a03bb,_0x51f870){return _0x58c5d2(_0x3a03bb,_0x51f870)?[_0x3a03bb,_0x51f870]:_0x58c5d2(_0x51f870,_0x3a03bb)?[_0x51f870,_0x3a03bb]:null;}_0x3abc47['model'][_0x5297('0x54')][_0x5297('0x3b')](()=>{let _0x187651=!0x1;const _0x111462=Array[_0x5297('0xf')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x5b')][_0x5297('0x64')]());for(const {name:_0x1a4ddd,data:_0x4c271e}of _0x111462){const {group:_0x3dbd0c,type:_0x30c7aa,subType:_0x395dca,id:_0xc2f7d1}=_0x3f89ea[_0x5297('0x7')](_0x1a4ddd);if(_0x5297('0x69')==_0x3dbd0c&&_0x3f89ea[_0x5297('0x70')](_0xc2f7d1)){if('formatBlock'==_0x30c7aa&&('imageStylePreApply'==_0x395dca||_0x5297('0x74')==_0x395dca)){const _0x41c565=_0x3f89ea[_0x5297('0x1a')](_0xc2f7d1);if(_0x4c271e[_0x5297('0x27')]){const _0x15c4d4=_0x41c565[_0x5297('0x44')]()[_0x5297('0x1d')]();if(_0x51d7a7[_0x5297('0x39')](_0x15c4d4))continue;_0x3f89ea[_0x5297('0x3d')](_0x41c565),_0x187651=!0x0;}}if(_0x5297('0x3e')==_0x30c7aa&&_0x5297('0x50')==_0x395dca&&!_0x4c271e[_0x5297('0x27')]){const _0x18afa7=_0x3f89ea[_0x5297('0x1a')](_0xc2f7d1);_0x18afa7[_0x5297('0x4b')]&&_0x18afa7[_0x5297('0x4b')][_0x5297('0x31')]&&(_0x3f89ea[_0x5297('0x3d')](_0x18afa7[_0x5297('0x4b')]),_0x187651=!0x0);}}}return _0x187651;}),_0x3abc47[_0x5297('0x48')][_0x5297('0x2d')](_0x5297('0x3f'))&&_0x3f89ea[_0x5297('0x4e')]('resizeImage',(_0x187f10,_0x418acd)=>{const _0x320f5c=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')]['selection']);_0x320f5c['getAttribute'](_0x5297('0xa'))!=_0x418acd['width']&&_0x3abc47[_0x5297('0x63')]['change'](()=>{_0x3f89ea['markBlockFormat'](_0x320f5c,{'commandName':_0x5297('0x72'),'commandParams':[_0x418acd]});});}),_0x3abc47[_0x5297('0x48')]['has'](_0x5297('0x59'))&&_0x3f89ea[_0x5297('0x4e')](_0x5297('0x5'),(_0x45b43e,_0x3f9bbd)=>{const _0x4a7827=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]);(_0x4a7827[_0x5297('0x3')](_0x5297('0x6f'))?_0x4a7827['getAttribute'](_0x5297('0x6f')):'')!=_0x3f9bbd[_0x5297('0x1e')]&&_0x3abc47[_0x5297('0x63')][_0x5297('0x10')](()=>{_0x3f89ea[_0x5297('0x6e')](_0x4a7827,{'commandName':_0x5297('0x5'),'commandParams':[_0x3f9bbd]});});}),_0x3f89ea['_descriptionFactory']['registerDescriptionCallback'](_0x23ee04=>{if(!!_0x2142cf['find'](({type:_0x4be72f,subType:_0x485d40})=>_0x23ee04['type']==_0x4be72f&&_0x23ee04[_0x5297('0x37')]==_0x485d40))return _0x23ee04[_0x5297('0x1b')]?{}:void 0x0;}),_0x3f89ea[_0x5297('0x4a')][_0x5297('0x76')](_0x168026=>{if(_0x5297('0x3e')==_0x168026[_0x5297('0x62')]||_0x5297('0x12')==_0x168026[_0x5297('0x62')]){const _0x924c97=_0x168026[_0x5297('0x1d')]();if(_0x924c97&&_0x924c97['is'](_0x5297('0x2f'),_0x5297('0x11')))return{'type':_0x5297('0x3e')==_0x168026[_0x5297('0x62')]?_0x5297('0x32'):_0x5297('0x79'),'element':_0x924c97,'quantity':0x1};}}),_0x3f89ea['_descriptionFactory']['registerDescriptionCallback'](_0x2b603f=>_0x5297('0x4')==_0x2b603f['type']&&_0x5297('0x20')==_0x2b603f['subType']?{'type':_0x5297('0x49'),'content':_0x5297('0x1f')}:'formatBlock'==_0x2b603f[_0x5297('0x62')]&&_0x5297('0x36')==_0x2b603f[_0x5297('0x37')]?{'type':_0x5297('0x49'),'content':_0x5297('0x29')}:void 0x0),_0x3f89ea['_descriptionFactory'][_0x5297('0x76')](_0x2a4a18=>{const {data:_0x4e4cc6}=_0x2a4a18;if(_0x4e4cc6){if(_0x5297('0x21')==_0x4e4cc6[_0x5297('0x5e')]){const _0x49babc=_0x4e4cc6[_0x5297('0x52')][0x0]['value'];return _0x5877cd(_0x5297('0x9')===_0x49babc?_0x408a6d(_0x5d7a22,_0x5297('0x66')):_0x2bf3d1[_0x49babc]||_0x49babc);}if(_0x5297('0x5')==_0x4e4cc6['commandName']){const _0x307c85=_0x4e4cc6[_0x5297('0x52')][0x0][_0x5297('0x1e')];return _0x307c85?{'type':_0x5297('0x49'),'content':_0x408a6d(_0x5d7a22,_0x5297('0x65'),'\x22'+_0x307c85+'\x22')}:{'type':_0x5297('0x49'),'content':_0x408a6d(_0x5d7a22,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4e4cc6[_0x5297('0x5e')]){const _0xec3c1b=_0x4e4cc6[_0x5297('0x52')][0x0][_0x5297('0xa')];return _0xec3c1b?{'type':_0x5297('0x49'),'content':_0x408a6d(_0x5d7a22,_0x5297('0x22'),_0xec3c1b)}:{'type':_0x5297('0x49'),'content':_0x408a6d(_0x5d7a22,_0x5297('0x34'))};}}function _0x5877cd(_0x292a6d){return{'type':_0x5297('0x49'),'content':_0x408a6d(_0x5d7a22,_0x5297('0x73'),_0x292a6d)};}});}}
23
+ const _0x1aa1=['isInContent','enableCommand','getNearestSelectionRange','suggestion','plugins','insertion','imageTypeInline','commandReversedParams','registerDescriptionCallback','forward','resizeImage','chain','newValue','markDeletion','convertInlineImageToBlock','Block\x20image\x20to\x20inline\x20image','_descriptionFactory','detach','refresh','getCaptionFromImageModelElement','ImageTextAlternativeEditing','imageTypeBlock','length','removeObject','name','imageStylePreApply','*Set\x20image\x20width:*\x20%0','toLowerCase','commandParams','alt','get','commandName','filter','document','nodeAfter','has','registerCustomCallback','uploadImage','isCollapsed','find','createRange','ImageCaptionEditing','findIndex','fromPosition','selection','normalizedStyles','join','imageStyle','imageStylePostApply','_splitMarkerName','TrackChangesEditing','backward','value','accept','subType','formatInline','getSuggestions','caption','getSuggestion','convertBlockImageToInline','model','getSuggestionCallback','ImageUploadEditing','_suggestionFactory','discard','createRangeOn','author','ImageInlineEditing','markBlockFormat','width','registerElementLabel','discardSuggestion','getClosestSelectedImageElement','getContainedElement','isOwn','addObject','imageTextAlternative','ImageStyleEditing','ImageBlockEditing','FORMAT_SIDE_IMAGE','ImageUtils','markInsertion','afterInit','imageCaption','previous','forceDefaultExecution','isEqual','type','side','ImageResize','newRange','deletion','isIntersecting','forEach','getFirstRange','hasSuggestion','head','ImageCaptionUtils','formatBlock','getChangedMarkers','shouldConvertImageType','Users','editor','isBlockImage','toggleImageCaption','isInlineImage','locale','*Set\x20image\x20text\x20alternative:*\x20%0','next','commands','*Reset\x20image\x20width*','nodeBefore','start','getAttribute','isBefore','end','Inline\x20image\x20to\x20block\x20image','ELEMENT_IMAGE','element','change','format','_findSuggestions','ImageEditing','schema'];(function(_0xb6bf72,_0x1aa1c6){const _0x26245c=function(_0x34e749){while(--_0x34e749){_0xb6bf72['push'](_0xb6bf72['shift']());}};_0x26245c(++_0x1aa1c6);}(_0x1aa1,0x93));const _0x2624=function(_0xb6bf72,_0x1aa1c6){_0xb6bf72=_0xb6bf72-0x0;let _0x26245c=_0x1aa1[_0xb6bf72];return _0x26245c;};import{Plugin as _0x1a3e62}from'ckeditor5/src/core';import{LivePosition as _0x173916}from'ckeditor5/src/engine';import{uid as _0x552778}from'ckeditor5/src/utils';import{getTranslation as _0x58ce0a}from'../utils/common-translations';export default class V extends _0x1a3e62{[_0x2624('0x3b')](){const _0x48fee5=this[_0x2624('0x4f')];if(!_0x48fee5[_0x2624('0x69')][_0x2624('0xc')](_0x2624('0x63')))return;const _0x33ca86=_0x48fee5['plugins'][_0x2624('0x7')](_0x2624('0x1b')),_0x44a834=_0x48fee5[_0x2624('0x69')][_0x2624('0x7')](_0x2624('0x39')),_0x36fbc0={},_0x14b55e=_0x48fee5[_0x2624('0x53')];if(_0x33ca86[_0x2624('0x66')]('insertImage'),_0x33ca86[_0x2624('0x75')]['registerElementLabel']('imageBlock',_0x1494fe=>_0x58ce0a(_0x14b55e,_0x2624('0x5e'),_0x1494fe)),_0x33ca86['_descriptionFactory'][_0x2624('0x2f')]('imageInline',_0x1a00e3=>_0x58ce0a(_0x14b55e,'ELEMENT_INLINE_IMAGE',_0x1a00e3)),_0x33ca86['_descriptionFactory'][_0x2624('0x2f')](_0x2624('0x22'),()=>_0x58ce0a(_0x14b55e,'ELEMENT_CAPTION')),_0x48fee5['plugins']['has'](_0x2624('0x27'))&&_0x33ca86['enableCommand'](_0x2624('0xe')),_0x48fee5['plugins'][_0x2624('0xc')](_0x2624('0x37'))&&_0x48fee5[_0x2624('0x69')][_0x2624('0xc')](_0x2624('0x2c'))&&(_0x33ca86[_0x2624('0x66')](_0x2624('0x6b'),(_0x1c2f16,_0x192989)=>{const _0x5f07e3=_0x44a834['getClosestSelectedImageElement'](_0x48fee5[_0x2624('0x25')][_0x2624('0xa')]['selection']);_0x48fee5[_0x2624('0x25')][_0x2624('0x60')](()=>{_0x33ca86['markBlockFormat'](_0x5f07e3,{'commandName':_0x2624('0x6b'),'commandParams':[_0x192989]},[],_0x2624('0x24'));});}),_0x33ca86['enableCommand'](_0x2624('0x7a'),(_0x5d8db0,_0x442c03)=>{_0x48fee5['model'][_0x2624('0x60')](_0x300dc6=>{let _0x3fd077=_0x44a834[_0x2624('0x31')](_0x48fee5[_0x2624('0x25')][_0x2624('0xa')][_0x2624('0x15')]),_0x4e71ac=_0x300dc6['createRangeOn'](_0x3fd077);const _0x16e0d0=_0x173916['fromPosition'](_0x4e71ac[_0x2624('0x59')],'toPrevious'),_0x1a231c=_0x173916[_0x2624('0x14')](_0x4e71ac[_0x2624('0x5c')],'toNext');_0x33ca86[_0x2624('0x3e')](()=>_0x5d8db0(_0x442c03)),_0x3fd077=_0x44a834[_0x2624('0x31')](_0x48fee5['model'][_0x2624('0xa')][_0x2624('0x15')]),_0x4e71ac=_0x300dc6[_0x2624('0x2a')](_0x3fd077);const _0x5c5790=_0x300dc6['createRange'](_0x16e0d0,_0x1a231c);_0x16e0d0[_0x2624('0x76')](),_0x1a231c[_0x2624('0x76')](),_0x33ca86[_0x2624('0x2d')](_0x3fd077,{'commandName':'imageTypeInline','commandParams':[]},[],_0x2624('0x73')),_0x5c5790[_0x2624('0x59')]['isBefore'](_0x4e71ac['start'])&&_0x33ca86['markInsertion'](_0x300dc6['createRange'](_0x5c5790[_0x2624('0x59')],_0x4e71ac[_0x2624('0x59')]),_0x2624('0x73')),_0x4e71ac[_0x2624('0x5c')]['isBefore'](_0x5c5790[_0x2624('0x5c')])&&_0x33ca86[_0x2624('0x3a')](_0x300dc6[_0x2624('0x11')](_0x4e71ac[_0x2624('0x5c')],_0x5c5790[_0x2624('0x5c')]),_0x2624('0x73'));});}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x4b'),_0x2624('0x73'),_0x2624('0x17'),()=>{}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')]('formatBlock','convertInlineImageToBlock',_0x2624('0x1e'),()=>{}),_0x33ca86['_suggestionFactory'][_0x2624('0xd')](_0x2624('0x4b'),_0x2624('0x73'),'discard',_0x33ca86[_0x2624('0x28')][_0x2624('0x26')](_0x2624('0x4b'),'',_0x2624('0x1e'))),_0x33ca86[_0x2624('0x28')]['registerCustomCallback'](_0x2624('0x6a'),_0x2624('0x73'),_0x2624('0x17'),()=>{}),_0x33ca86['_suggestionFactory'][_0x2624('0xd')](_0x2624('0x6a'),_0x2624('0x73'),'discard',([_0x3734e7])=>{const _0x25034e=_0x33ca86[_0x2624('0x28')][_0x2624('0x26')](_0x2624('0x6a'),'','discard');let _0x4b2e9b=_0x3734e7['start'],_0x59f780=_0x3734e7['end'];const _0x28ffe1=_0x48fee5['model'][_0x2624('0x64')]['getNearestSelectionRange'](_0x4b2e9b,_0x2624('0x1c')),_0x5d3be3=_0x48fee5[_0x2624('0x25')]['schema'][_0x2624('0x67')](_0x59f780,_0x2624('0x6e'));_0x28ffe1[_0x2624('0xf')]&&(_0x4b2e9b=_0x28ffe1[_0x2624('0x59')]),_0x5d3be3[_0x2624('0xf')]&&(_0x59f780=_0x5d3be3[_0x2624('0x5c')]),_0x25034e([_0x48fee5[_0x2624('0x25')]['createRange'](_0x4b2e9b,_0x59f780)]);}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x4b'),_0x2624('0x73'),_0x2624('0x70'),_0x3e1e72),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x6a'),_0x2624('0x73'),_0x2624('0x70'),_0x3e1e72)),_0x48fee5[_0x2624('0x69')][_0x2624('0xc')](_0x2624('0x12'))&&(_0x33ca86['enableCommand'](_0x2624('0x51'),(_0x40f73c,_0x321f41)=>{const _0x141583=_0x48fee5['plugins'][_0x2624('0x7')](_0x2624('0x4a'));let _0x1e4078=_0x44a834[_0x2624('0x31')](_0x48fee5[_0x2624('0x25')][_0x2624('0xa')][_0x2624('0x15')]),_0x2164c5=_0x141583[_0x2624('0x78')](_0x1e4078);_0x48fee5[_0x2624('0x25')]['change'](()=>{if(_0x2164c5)return void _0x33ca86[_0x2624('0x72')](_0x48fee5[_0x2624('0x25')][_0x2624('0x2a')](_0x2164c5));const _0x3ea261=_0x44a834[_0x2624('0x50')](_0x1e4078);_0x40f73c(_0x321f41),_0x1e4078=_0x44a834[_0x2624('0x31')](_0x48fee5['model'][_0x2624('0xa')]['selection']),_0x2164c5=_0x141583[_0x2624('0x78')](_0x1e4078),_0x33ca86[_0x2624('0x3a')](_0x48fee5[_0x2624('0x25')][_0x2624('0x2a')](_0x2164c5),_0x3ea261?null:'imageCaption');});}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x6a'),'imageCaption',_0x2624('0x70'),_0x3e1e72)),_0x48fee5[_0x2624('0x69')]['has'](_0x2624('0x36'))){_0x33ca86[_0x2624('0x66')]('imageStyle',(_0xb84e2a,_0x29fab2)=>{const _0x50bd74=_0x48fee5[_0x2624('0x69')]['get'](_0x2624('0x4e'))['me'],_0xe76c62=_0x48fee5['commands']['get'](_0x2624('0x18'));let _0x1d3b20=_0x44a834[_0x2624('0x31')](_0x48fee5['model'][_0x2624('0xa')][_0x2624('0x15')]),_0x2fb1b8=_0x48fee5['model']['createRangeOn'](_0x1d3b20),_0x9a935b=_0xe76c62[_0x2624('0x1d')];if(_0x9a935b==_0x29fab2[_0x2624('0x1d')])return;const _0x1a3d78={'commandName':_0x2624('0x18'),'commandParams':[_0x29fab2],'formatGroupId':_0x552778()};_0x48fee5[_0x2624('0x25')]['change'](()=>{if(_0x33ca86[_0x2624('0x21')]()[_0x2624('0x9')](_0x142a00=>_0x142a00[_0x2624('0x65')]&&_0x50bd74==_0x142a00[_0x2624('0x2b')]&&('formatBlock'==_0x142a00[_0x2624('0x40')]||_0x2624('0x20')==_0x142a00[_0x2624('0x40')])&&(_0x2624('0x2')==_0x142a00['subType']||_0x2624('0x19')==_0x142a00[_0x2624('0x1f')])&&_0x142a00['getFirstRange']()[_0x2624('0x3f')](_0x2fb1b8))[_0x2624('0x46')](_0x389de2=>_0x33ca86[_0x2624('0x30')](_0x389de2[_0x2624('0x49')])),_0x1d3b20=_0x44a834[_0x2624('0x31')](_0x48fee5[_0x2624('0x25')]['document'][_0x2624('0x15')]),_0x2fb1b8=_0x48fee5['model'][_0x2624('0x2a')](_0x1d3b20),_0xe76c62['refresh'](),_0x48fee5[_0x2624('0x56')][_0x2624('0x7')](_0x2624('0x6b'))[_0x2624('0x77')](),_0x48fee5[_0x2624('0x56')][_0x2624('0x7')](_0x2624('0x7a'))[_0x2624('0x77')](),_0x9a935b=_0xe76c62[_0x2624('0x1d')],_0x9a935b!=_0x29fab2[_0x2624('0x1d')])return _0x44a834[_0x2624('0x52')](_0x1d3b20)&&_0xe76c62[_0x2624('0x4d')](_0x29fab2[_0x2624('0x1d')],_0x1d3b20)?(_0xb84e2a(_0x29fab2),_0x1d3b20=_0x44a834['getClosestSelectedImageElement'](_0x48fee5[_0x2624('0x25')][_0x2624('0xa')][_0x2624('0x15')]),void _0x33ca86[_0x2624('0x2d')](_0x1d3b20,{..._0x1a3d78,'commandReversedParams':[{'value':_0x9a935b||null}]},[],_0x2624('0x2'))):void(_0x44a834[_0x2624('0x50')](_0x1d3b20)?_0x33ca86[_0x2624('0x2d')](_0x1d3b20,_0x1a3d78,[],'imageStylePostApply'):_0x33ca86['markInlineFormat'](_0x2fb1b8,_0x1a3d78,_0x2624('0x19')));});});for(const _0xea7848 of _0x48fee5[_0x2624('0x69')][_0x2624('0x7')](_0x2624('0x36'))[_0x2624('0x16')])_0x36fbc0[_0xea7848[_0x2624('0x1')]]=_0xea7848['title'][_0x2624('0x4')]();_0x33ca86[_0x2624('0x28')]['registerCustomCallback'](_0x2624('0x4b'),'imageStylePreApply',_0x2624('0x17'),()=>{}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x4b'),_0x2624('0x19'),_0x2624('0x17'),()=>{}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x20'),_0x2624('0x19'),_0x2624('0x17'),()=>{}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x4b'),_0x2624('0x2'),_0x2624('0x1e'),()=>{}),_0x33ca86['_suggestionFactory'][_0x2624('0xd')](_0x2624('0x4b'),_0x2624('0x2'),_0x2624('0x29'),(_0x5d16ce,_0x2dc378)=>{_0x33ca86['_suggestionFactory']['getSuggestionCallback']('formatBlock','',_0x2624('0x1e'))(_0x5d16ce,{'commandName':_0x2dc378[_0x2624('0x8')],'commandParams':_0x2dc378[_0x2624('0x6c')]});}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x4b'),_0x2624('0x2'),_0x2624('0x70'),_0x3e1e72);}const _0x3b954f=[{'type':'formatBlock','subType':_0x2624('0x2')},{'type':_0x2624('0x6a'),'subType':_0x2624('0x3c')},{'type':'formatBlock','subType':_0x2624('0x73')},{'type':_0x2624('0x6a'),'subType':_0x2624('0x73')}];function _0x89d3ed(_0x42a30a,_0x34d072){const _0x104348=_0x3b954f[_0x2624('0x13')](({type:_0x3d8c2b,subType:_0x11c1c0})=>_0x42a30a[_0x2624('0x40')]==_0x3d8c2b&&_0x42a30a[_0x2624('0x1f')]==_0x11c1c0),_0x3c829d=_0x3b954f[_0x2624('0x13')](({type:_0x391a0b,subType:_0x5b1e02})=>_0x34d072[_0x2624('0x40')]==_0x391a0b&&_0x34d072[_0x2624('0x1f')]==_0x5b1e02);if(_0x104348<0x0||_0x3c829d<0x0)return!0x1;const _0x1e63be=_0x42a30a[_0x2624('0x47')](),_0x3d249c=_0x34d072['getFirstRange']();if((0x0==_0x104348||0x1==_0x104348)&&0x2==_0x3c829d&&_0x1e63be[_0x2624('0x45')](_0x3d249c))return!0x0;if(0x2==_0x104348&&0x3==_0x3c829d){const _0x198440=_0x33ca86[_0x2624('0x62')](_0x1e63be,_0x2624('0x6a'))[_0x2624('0x9')](({suggestion:_0x1ac376,meta:_0x1d17f0})=>_0x1d17f0[_0x2624('0x33')]&&_0x2624('0x73')==_0x1ac376[_0x2624('0x1f')]);if(_0x198440['length']>0x1&&_0x3d249c[_0x2624('0x5c')]['isEqual'](_0x1e63be['start']))return!0x0;if(0x1==_0x198440[_0x2624('0x7b')]&&(_0x1e63be['start'][_0x2624('0x3f')](_0x3d249c[_0x2624('0x5c')])||_0x1e63be['end'][_0x2624('0x3f')](_0x3d249c[_0x2624('0x59')])))return!0x0;}if(0x3==_0x104348&&0x3==_0x3c829d&&_0x1e63be['start'][_0x2624('0x5b')](_0x3d249c[_0x2624('0x59')])){const _0x516c20=_0x1e63be['end'][_0x2624('0xb')],_0x5e6c31=_0x3d249c[_0x2624('0x59')][_0x2624('0x58')];return _0x44a834['isBlockImage'](_0x516c20)&&_0x516c20===_0x5e6c31;}return!0x1;}function _0x3e1e72(_0x9ad86a,_0x2fcb6f){return _0x89d3ed(_0x9ad86a,_0x2fcb6f)?[_0x9ad86a,_0x2fcb6f]:_0x89d3ed(_0x2fcb6f,_0x9ad86a)?[_0x2fcb6f,_0x9ad86a]:null;}_0x48fee5[_0x2624('0x25')]['document']['registerPostFixer'](()=>{let _0x1d8bf0=!0x1;const _0x32268a=Array['from'](_0x48fee5[_0x2624('0x25')][_0x2624('0xa')]['differ'][_0x2624('0x4c')]());for(const {name:_0x3162ad,data:_0x349e59}of _0x32268a){const {group:_0x1f8700,type:_0x5d8a78,subType:_0x8d65ac,id:_0x3fedec}=_0x33ca86[_0x2624('0x1a')](_0x3162ad);if(_0x2624('0x68')==_0x1f8700&&_0x33ca86[_0x2624('0x48')](_0x3fedec)){if(_0x2624('0x4b')==_0x5d8a78&&(_0x2624('0x2')==_0x8d65ac||_0x2624('0x19')==_0x8d65ac)){const _0x2f1628=_0x33ca86[_0x2624('0x23')](_0x3fedec);if(_0x349e59[_0x2624('0x43')]){const _0x82c1e4=_0x2f1628[_0x2624('0x47')]()['getContainedElement']();if(_0x44a834['isBlockImage'](_0x82c1e4))continue;_0x33ca86[_0x2624('0x30')](_0x2f1628),_0x1d8bf0=!0x0;}}if(_0x2624('0x6a')==_0x5d8a78&&'imageCaption'==_0x8d65ac&&!_0x349e59[_0x2624('0x43')]){const _0x25b524=_0x33ca86['getSuggestion'](_0x3fedec);_0x25b524['next']&&_0x25b524[_0x2624('0x55')][_0x2624('0x65')]&&(_0x33ca86['discardSuggestion'](_0x25b524[_0x2624('0x55')]),_0x1d8bf0=!0x0);}}}return _0x1d8bf0;}),_0x48fee5[_0x2624('0x69')][_0x2624('0xc')](_0x2624('0x42'))&&_0x33ca86['enableCommand'](_0x2624('0x6f'),(_0x2821ff,_0x1d6831)=>{const _0x5c73b4=_0x44a834[_0x2624('0x31')](_0x48fee5[_0x2624('0x25')][_0x2624('0xa')][_0x2624('0x15')]);_0x5c73b4[_0x2624('0x5a')](_0x2624('0x2e'))!=_0x1d6831[_0x2624('0x2e')]&&_0x48fee5[_0x2624('0x25')][_0x2624('0x60')](()=>{_0x33ca86[_0x2624('0x2d')](_0x5c73b4,{'commandName':_0x2624('0x6f'),'commandParams':[_0x1d6831]});});}),_0x48fee5[_0x2624('0x69')][_0x2624('0xc')](_0x2624('0x79'))&&_0x33ca86[_0x2624('0x66')](_0x2624('0x35'),(_0x5a9cf2,_0x255906)=>{const _0x1d535b=_0x44a834['getClosestSelectedImageElement'](_0x48fee5[_0x2624('0x25')][_0x2624('0xa')][_0x2624('0x15')]);(_0x1d535b['hasAttribute'](_0x2624('0x6'))?_0x1d535b['getAttribute'](_0x2624('0x6')):'')!=_0x255906[_0x2624('0x71')]&&_0x48fee5[_0x2624('0x25')][_0x2624('0x60')](()=>{_0x33ca86['markBlockFormat'](_0x1d535b,{'commandName':_0x2624('0x35'),'commandParams':[_0x255906]});});}),_0x33ca86[_0x2624('0x75')]['registerDescriptionCallback'](_0x22b896=>{if(!!_0x3b954f[_0x2624('0x10')](({type:_0x4659b2,subType:_0x548a95})=>_0x22b896[_0x2624('0x40')]==_0x4659b2&&_0x22b896[_0x2624('0x1f')]==_0x548a95))return _0x22b896[_0x2624('0x3d')]?{}:void 0x0;}),_0x33ca86['_descriptionFactory'][_0x2624('0x6d')](_0x276064=>{if(_0x2624('0x6a')==_0x276064[_0x2624('0x40')]||_0x2624('0x44')==_0x276064[_0x2624('0x40')]){const _0x4df61a=_0x276064[_0x2624('0x32')]();if(_0x4df61a&&_0x4df61a['is'](_0x2624('0x5f'),_0x2624('0x22')))return{'type':_0x2624('0x6a')==_0x276064[_0x2624('0x40')]?_0x2624('0x34'):_0x2624('0x0'),'element':_0x4df61a,'quantity':0x1};}}),_0x33ca86['_descriptionFactory'][_0x2624('0x6d')](_0x171d7e=>_0x2624('0x4b')==_0x171d7e[_0x2624('0x40')]&&'convertInlineImageToBlock'==_0x171d7e['subType']?{'type':_0x2624('0x61'),'content':_0x2624('0x5d')}:_0x2624('0x4b')==_0x171d7e['type']&&_0x2624('0x24')==_0x171d7e[_0x2624('0x1f')]?{'type':'format','content':_0x2624('0x74')}:void 0x0),_0x33ca86[_0x2624('0x75')][_0x2624('0x6d')](_0xfa55c0=>{const {data:_0x35f43c}=_0xfa55c0;if(_0x35f43c){if(_0x2624('0x18')==_0x35f43c[_0x2624('0x8')]){const _0x3cca0e=_0x35f43c[_0x2624('0x5')][0x0][_0x2624('0x1d')];return _0x4698e7(_0x2624('0x41')===_0x3cca0e?_0x58ce0a(_0x14b55e,_0x2624('0x38')):_0x36fbc0[_0x3cca0e]||_0x3cca0e);}if(_0x2624('0x35')==_0x35f43c[_0x2624('0x8')]){const _0x5bd68f=_0x35f43c[_0x2624('0x5')][0x0][_0x2624('0x71')];return _0x5bd68f?{'type':_0x2624('0x61'),'content':_0x58ce0a(_0x14b55e,_0x2624('0x54'),'\x22'+_0x5bd68f+'\x22')}:{'type':'format','content':_0x58ce0a(_0x14b55e,'*Remove\x20image\x20text\x20alternative*')};}if(_0x2624('0x6f')==_0x35f43c['commandName']){const _0x1fe59b=_0x35f43c['commandParams'][0x0]['width'];return _0x1fe59b?{'type':_0x2624('0x61'),'content':_0x58ce0a(_0x14b55e,_0x2624('0x3'),_0x1fe59b)}:{'type':'format','content':_0x58ce0a(_0x14b55e,_0x2624('0x57'))};}}function _0x4698e7(_0x451fd6){return{'type':_0x2624('0x61'),'content':_0x58ce0a(_0x14b55e,'*Format:*\x20%0',_0x451fd6)};}});}}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @module track-changes/integrations/imagereplace
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ import type Suggestion from '../suggestion';
6
+ import type { Description } from '../suggestiondescriptionfactory';
7
+ /**
8
+ * Provides track changes plugin integration for image replace feature.
9
+ */
10
+ export default class TrackChangesImageReplace extends Plugin {
11
+ /**
12
+ * @inheritDoc
13
+ */
14
+ afterInit(): void;
15
+ handleReplaceImageCommand(executeCommand: Function, options: {
16
+ source: string;
17
+ }): void;
18
+ handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
19
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe0c9=['subType','locale','format','*Format:*\x20replace\x20image\x20URL','src','registerCustomCallback','handleReplaceImageCommand','has','handleSuggestionDescription','accept','TrackChangesEditing','formatBlock','discard','ImageEditing','commandParams','data','_descriptionFactory','getSuggestionCallback','getSuggestions','markBlockFormat','getContainedElement','_suggestionFactory','get','enableCommand','getSelectedElement','change','model','selection','editor','replaceImageSource','plugins','registerDescriptionCallback'];(function(_0x2397fb,_0xe0c95a){const _0x2bdee6=function(_0x240609){while(--_0x240609){_0x2397fb['push'](_0x2397fb['shift']());}};_0x2bdee6(++_0xe0c95a);}(_0xe0c9,0xf9));const _0x2bde=function(_0x2397fb,_0xe0c95a){_0x2397fb=_0x2397fb-0x0;let _0x2bdee6=_0xe0c9[_0x2397fb];return _0x2bdee6;};import{Plugin as _0x4bf2bd}from'ckeditor5/src/core';import{getTranslation as _0x52db62}from'../utils/common-translations';export default class Z extends _0x4bf2bd{['afterInit'](){if(!this['editor']['plugins'][_0x2bde('0xe')](_0x2bde('0x14')))return;const _0x1d09d9=this[_0x2bde('0x3')][_0x2bde('0x5')][_0x2bde('0x1d')](_0x2bde('0x11'));_0x1d09d9[_0x2bde('0x1e')]('replaceImageSource',(_0x2dba88,_0x127af4)=>this[_0x2bde('0xd')](_0x2dba88,_0x127af4)),_0x1d09d9[_0x2bde('0x1c')][_0x2bde('0xc')](_0x2bde('0x12'),'replaceImageSource',_0x2bde('0x10'),_0x1d09d9['_suggestionFactory']['getSuggestionCallback'](_0x2bde('0x12'),null,_0x2bde('0x13'))),_0x1d09d9[_0x2bde('0x1c')][_0x2bde('0xc')](_0x2bde('0x12'),'replaceImageSource',_0x2bde('0x13'),_0x1d09d9[_0x2bde('0x1c')][_0x2bde('0x18')](_0x2bde('0x12'),null,_0x2bde('0x10'))),_0x1d09d9[_0x2bde('0x17')][_0x2bde('0x6')](_0x22ccc8=>this[_0x2bde('0xf')](_0x22ccc8));}[_0x2bde('0xd')](_0x4842fb,_0x3a96fe){const _0xcec22d=this[_0x2bde('0x3')][_0x2bde('0x5')][_0x2bde('0x1d')](_0x2bde('0x11')),_0x2a8a56=this[_0x2bde('0x3')]['model']['document'][_0x2bde('0x2')][_0x2bde('0x1f')]();this[_0x2bde('0x3')][_0x2bde('0x1')][_0x2bde('0x0')](()=>{let _0x57acd4=_0x2a8a56['getAttribute'](_0x2bde('0xb'));const _0x1bf3ed=this['editor'][_0x2bde('0x5')][_0x2bde('0x1d')]('Users')['me'];for(const _0x3231a8 of _0xcec22d[_0x2bde('0x19')]({'skipNotAttached':!0x0})){const _0x13bc11=_0x3231a8[_0x2bde('0x1b')]();if(_0x2bde('0x4')===_0x3231a8[_0x2bde('0x7')]&&_0x13bc11===_0x2a8a56){_0x3231a8['author']!==_0x1bf3ed&&_0x3231a8[_0x2bde('0x13')](),_0x57acd4=_0x3231a8[_0x2bde('0x16')][_0x2bde('0x15')][0x0]['source'];break;}}_0x4842fb(_0x3a96fe),_0xcec22d[_0x2bde('0x1a')](_0x2a8a56,{'commandName':_0x2bde('0x4'),'commandParams':[{'source':_0x57acd4}]},[],'replaceImageSource');});}[_0x2bde('0xf')](_0x32a30b){const {data:_0x5c831b}=_0x32a30b;if(_0x5c831b&&_0x2bde('0x4')===_0x5c831b['commandName']){const _0x19f3d0=_0x2bde('0xa');return{'type':_0x2bde('0x9'),'content':_0x52db62(this[_0x2bde('0x3')][_0x2bde('0x8')],_0x19f3d0)};}}}
23
+ const _0x3154=['accept','getSuggestionCallback','model','getSuggestions','getSelectedElement','change','replaceImageSource','source','discard','selection','getContainedElement','TrackChangesEditing','format','src','handleReplaceImageCommand','registerDescriptionCallback','commandParams','document','_descriptionFactory','data','markBlockFormat','*Format:*\x20replace\x20image\x20URL','plugins','formatBlock','_suggestionFactory','enableCommand','get','handleSuggestionDescription','has','Users','subType','ImageEditing','editor'];(function(_0x24a503,_0x315417){const _0x16626d=function(_0x458104){while(--_0x458104){_0x24a503['push'](_0x24a503['shift']());}};_0x16626d(++_0x315417);}(_0x3154,0xfe));const _0x1662=function(_0x24a503,_0x315417){_0x24a503=_0x24a503-0x0;let _0x16626d=_0x3154[_0x24a503];return _0x16626d;};import{Plugin as _0x169fb2}from'ckeditor5/src/core';import{getTranslation as _0x21ed21}from'../utils/common-translations';export default class X extends _0x169fb2{['afterInit'](){if(!this['editor'][_0x1662('0x20')][_0x1662('0x5')](_0x1662('0x8')))return;const _0x5c657f=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c657f[_0x1662('0x2')](_0x1662('0x10'),(_0x1a1d78,_0xafb57f)=>this[_0x1662('0x18')](_0x1a1d78,_0xafb57f)),_0x5c657f[_0x1662('0x1')]['registerCustomCallback'](_0x1662('0x0'),_0x1662('0x10'),_0x1662('0xa'),_0x5c657f[_0x1662('0x1')]['getSuggestionCallback'](_0x1662('0x0'),null,'discard')),_0x5c657f[_0x1662('0x1')]['registerCustomCallback']('formatBlock','replaceImageSource',_0x1662('0x12'),_0x5c657f[_0x1662('0x1')][_0x1662('0xb')]('formatBlock',null,'accept')),_0x5c657f[_0x1662('0x1c')][_0x1662('0x19')](_0x4946fa=>this[_0x1662('0x4')](_0x4946fa));}[_0x1662('0x18')](_0x571926,_0x5e9d43){const _0x4a0d3c=this[_0x1662('0x9')]['plugins']['get'](_0x1662('0x15')),_0x23bcd4=this['editor'][_0x1662('0xc')][_0x1662('0x1b')][_0x1662('0x13')][_0x1662('0xe')]();this[_0x1662('0x9')][_0x1662('0xc')][_0x1662('0xf')](()=>{let _0x2e8232=_0x23bcd4['getAttribute'](_0x1662('0x17'));const _0x2b0054=this[_0x1662('0x9')]['plugins'][_0x1662('0x3')](_0x1662('0x6'))['me'];for(const _0x4b52c0 of _0x4a0d3c[_0x1662('0xd')]({'skipNotAttached':!0x0})){const _0x47326b=_0x4b52c0[_0x1662('0x14')]();if(_0x1662('0x10')===_0x4b52c0[_0x1662('0x7')]&&_0x47326b===_0x23bcd4){_0x4b52c0['author']!==_0x2b0054&&_0x4b52c0[_0x1662('0x12')](),_0x2e8232=_0x4b52c0[_0x1662('0x1d')][_0x1662('0x1a')][0x0][_0x1662('0x11')];break;}}_0x571926(_0x5e9d43),_0x4a0d3c[_0x1662('0x1e')](_0x23bcd4,{'commandName':_0x1662('0x10'),'commandParams':[{'source':_0x2e8232}]},[],_0x1662('0x10'));});}[_0x1662('0x4')](_0x26d8f8){const {data:_0x548e60}=_0x26d8f8;if(_0x548e60&&'replaceImageSource'===_0x548e60['commandName']){const _0x504c0c=_0x1662('0x1f');return{'type':_0x1662('0x16'),'content':_0x21ed21(this[_0x1662('0x9')]['locale'],_0x504c0c)};}}}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @module track-changes/integrations/importword
3
+ */
4
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for the import from Word feature.
7
+ */
8
+ export default class TrackChangesImportWord extends Plugin {
9
+ constructor(editor: Editor);
10
+ /**
11
+ * @inheritDoc
12
+ */
13
+ afterInit(): void;
14
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe6fb=['listenTo','importWord','_handleImportedData','enableCommand','dataInsert','TrackChangesEditing','trackChanges','plugins','commands','forEach','track_changes','value','afterInit','bind','get','editor','execute','_trackChangesExecuted','high','collaboration_features','_trackChangesValueDuringImport','_setSuggestionData'];(function(_0x563778,_0xe6fb9f){const _0x353fca=function(_0x1b6d25){while(--_0x1b6d25){_0x563778['push'](_0x563778['shift']());}};_0x353fca(++_0xe6fb9f);}(_0xe6fb,0x1ce));const _0x353f=function(_0x563778,_0xe6fb9f){_0x563778=_0x563778-0x0;let _0x353fca=_0xe6fb[_0x563778];return _0x353fca;};import{Plugin as _0x35e9c1}from'ckeditor5/src/core';import _0x1c6f52 from'../trackchangesediting';export default class tt extends _0x35e9c1{constructor(_0x38f053){super(_0x38f053),this[_0x353f('0x14')]=!0x1,this[_0x353f('0x11')]=!0x1;}[_0x353f('0xc')](){const _0x17c80f=this[_0x353f('0xf')],_0x50bcf5=_0x17c80f[_0x353f('0x8')]['get'](_0x353f('0x1')),_0x4bdc5d=_0x17c80f['commands'][_0x353f('0xe')](_0x353f('0x6'));_0x50bcf5&&(_0x50bcf5['on'](_0x353f('0x10'),(_0xdf2677,[,_0x3aeb38])=>{this[_0x353f('0x14')]=_0x4bdc5d[_0x353f('0xb')],_0x3aeb38[_0x353f('0x13')][_0x353f('0xa')]=!this['_trackChangesValueDuringImport'];},{'priority':_0x353f('0x12')}),this['listenTo'](_0x50bcf5,_0x353f('0x4'),this[_0x353f('0x2')][_0x353f('0xd')](this)),this[_0x353f('0x0')](_0x50bcf5,_0x353f('0x4'),()=>{this[_0x353f('0x11')]&&(_0x4bdc5d[_0x353f('0x10')](),this[_0x353f('0x11')]=!0x1);},{'priority':'lowest'}),_0x17c80f[_0x353f('0x7')][_0x353f('0xe')](_0x353f('0x5'))[_0x353f('0x3')](_0x353f('0x1')));}[_0x353f('0x2')](_0x15778f,_0x105e60){const {suggestions:_0x18d86c}=_0x105e60,_0x5dbe13=this['editor'][_0x353f('0x8')][_0x353f('0xe')](_0x353f('0x6')),_0x41e406=_0x5dbe13[_0x353f('0xb')];this[_0x353f('0x14')]!==_0x41e406&&(_0x5dbe13[_0x353f('0x10')](),this['_trackChangesExecuted']=!0x0),_0x18d86c&&_0x18d86c[_0x353f('0x9')](({id:_0x534a71,type:_0x3976a5,author:_0x4032fd,created_at:_0x623223})=>{const _0x4fba50={'id':_0x534a71,'type':_0x3976a5,'authorId':this[_0x353f('0xf')][_0x353f('0x7')][_0x353f('0xe')]('Users')['me']['id'],'createdAt':new Date(),'data':{},'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4032fd,'createdAt':_0x623223?new Date(_0x623223):new Date(),'source':_0x353f('0x1')}}};this[_0x353f('0xf')][_0x353f('0x7')][_0x353f('0xe')](_0x1c6f52)[_0x353f('0x15')](_0x4fba50);});}}
23
+ const _0x53cc=['_trackChangesExecuted','collaboration_features','importWord','editor','value','execute','_setSuggestionData','_handleImportedData','listenTo','bind','plugins','forEach','_trackChangesValueDuringImport','dataInsert','commands','get','TrackChangesEditing','trackChanges','high','lowest','afterInit'];(function(_0x13ecef,_0x53cc86){const _0x46c34e=function(_0x8111ec){while(--_0x8111ec){_0x13ecef['push'](_0x13ecef['shift']());}};_0x46c34e(++_0x53cc86);}(_0x53cc,0xb7));const _0x46c3=function(_0x13ecef,_0x53cc86){_0x13ecef=_0x13ecef-0x0;let _0x46c34e=_0x53cc[_0x13ecef];return _0x46c34e;};import{Plugin as _0x4fbd30}from'ckeditor5/src/core';export default class Y extends _0x4fbd30{constructor(_0x2cbdd1){super(_0x2cbdd1),this[_0x46c3('0x12')]=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x46c3('0x5')](){const _0x39b497=this[_0x46c3('0x9')],_0x39224c=_0x39b497[_0x46c3('0x14')][_0x46c3('0x0')](_0x46c3('0x8')),_0x1e0590=_0x39b497[_0x46c3('0x14')][_0x46c3('0x0')](_0x46c3('0x2'));_0x39224c&&(_0x39224c['on'](_0x46c3('0xb'),(_0x25e618,[,_0x55e3af])=>{this['_trackChangesValueDuringImport']=_0x1e0590[_0x46c3('0xa')],_0x55e3af[_0x46c3('0x7')]['track_changes']=!this[_0x46c3('0x12')];},{'priority':_0x46c3('0x3')}),this['listenTo'](_0x39224c,_0x46c3('0x13'),this[_0x46c3('0xd')][_0x46c3('0xf')](this)),this[_0x46c3('0xe')](_0x39224c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1e0590[_0x46c3('0xb')](),this[_0x46c3('0x6')]=!0x1);},{'priority':_0x46c3('0x4')}),_0x39b497[_0x46c3('0x10')][_0x46c3('0x0')](_0x46c3('0x1'))['enableCommand'](_0x46c3('0x8')));}[_0x46c3('0xd')](_0x52a055,_0x4937ce){const {suggestions:_0x3620e0}=_0x4937ce,_0x58667f=this[_0x46c3('0x9')][_0x46c3('0x14')]['get']('trackChanges'),_0x3d943a=_0x58667f[_0x46c3('0xa')];this[_0x46c3('0x12')]!==_0x3d943a&&(_0x58667f[_0x46c3('0xb')](),this[_0x46c3('0x6')]=!0x0),_0x3620e0&&_0x3620e0[_0x46c3('0x11')](({id:_0x716e8a,type:_0x29a3e1,author:_0x509c05,created_at:_0x5eba73})=>{const _0x4092bd={'id':_0x716e8a,'type':_0x29a3e1,'authorId':this['editor'][_0x46c3('0x10')][_0x46c3('0x0')]('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x509c05,'createdAt':_0x5eba73?new Date(_0x5eba73):new Date(),'source':_0x46c3('0x8')}}};this[_0x46c3('0x9')][_0x46c3('0x10')]['get'](_0x46c3('0x1'))[_0x46c3('0xc')](_0x4092bd);});}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/indent
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
7
+ */
8
+ export default class TrackChangesIndent extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1293=['plugins','format','checkAttribute','commandName','document','getItemLabel','locale','_descriptionFactory','afterInit','get','IndentEditing','IndentBlock','indentBlock','editor','registerDescriptionCallback','schema','outdent','change','TrackChangesEditing','getSelectedBlocks','enableCommand','*Indent:*\x20%0','markBlockFormat','filter','model','outdentBlock','has'];(function(_0x18f5b6,_0x129393){const _0x7474fa=function(_0x318449){while(--_0x318449){_0x18f5b6['push'](_0x18f5b6['shift']());}};_0x7474fa(++_0x129393);}(_0x1293,0xcc));const _0x7474=function(_0x18f5b6,_0x129393){_0x18f5b6=_0x18f5b6-0x0;let _0x7474fa=_0x1293[_0x18f5b6];return _0x7474fa;};import{Plugin as _0x163414}from'ckeditor5/src/core';import{getTranslation as _0xd9ef75}from'../utils/common-translations';export default class it extends _0x163414{[_0x7474('0x14')](){const _0xc111d7=this['editor'],_0x159dbd=_0xc111d7[_0x7474('0xc')][_0x7474('0x15')](_0x7474('0x3'));_0xc111d7['plugins']['has'](_0x7474('0x16'))&&(_0x159dbd['enableCommand']('indent'),_0x159dbd[_0x7474('0x5')](_0x7474('0x1')));const _0x316721=_0xc111d7[_0x7474('0x12')];if(_0xc111d7['plugins'][_0x7474('0xb')](_0x7474('0x17'))){for(const _0x4c4ffe of['indentBlock',_0x7474('0xa')])_0x159dbd[_0x7474('0x5')](_0x4c4ffe,()=>{const _0x3002c0=Array['from'](this[_0x7474('0x19')][_0x7474('0x9')][_0x7474('0x10')]['selection'][_0x7474('0x4')]())[_0x7474('0x8')](_0x1249ef=>this[_0x7474('0x19')][_0x7474('0x9')][_0x7474('0x0')][_0x7474('0xe')](_0x1249ef,'blockIndent'));_0xc111d7['model'][_0x7474('0x2')](()=>{for(const _0x12b4f2 of _0x3002c0)_0x159dbd[_0x7474('0x7')](_0x12b4f2,{'commandName':_0x4c4ffe,'commandParams':[{'value':''}],'formatGroupId':_0x7474('0x18')});});});_0x159dbd[_0x7474('0x13')][_0x7474('0x1a')](_0x321828=>{const {data:_0x509b50}=_0x321828;if(!_0x509b50)return;if(_0x7474('0x18')!=_0x509b50[_0x7474('0xf')]&&'outdentBlock'!=_0x509b50[_0x7474('0xf')])return;const _0x55e0e8=_0x321828['getItems']()[0x0],_0x35f49a=_0x159dbd['_descriptionFactory'][_0x7474('0x11')](_0x55e0e8);return _0x7474('0x18')==_0x509b50[_0x7474('0xf')]?{'type':_0x7474('0xd'),'content':_0xd9ef75(_0x316721,_0x7474('0x6'),_0x35f49a)}:_0x7474('0xa')==_0x509b50[_0x7474('0xf')]?{'type':_0x7474('0xd'),'content':_0xd9ef75(_0x316721,'*Outdent:*\x20%0',_0x35f49a)}:void 0x0;});}}}
23
+ const _0x290f=['*Outdent:*\x20%0','getSelectedBlocks','markBlockFormat','schema','editor','change','selection','commandName','_descriptionFactory','format','from','has','locale','registerDescriptionCallback','IndentEditing','getItems','enableCommand','IndentBlock','plugins','checkAttribute','document','getItemLabel','model','indentBlock','*Indent:*\x20%0','outdentBlock','get'];(function(_0xb9be5d,_0x290fc0){const _0x42b6b9=function(_0x3ef586){while(--_0x3ef586){_0xb9be5d['push'](_0xb9be5d['shift']());}};_0x42b6b9(++_0x290fc0);}(_0x290f,0x94));const _0x42b6=function(_0xb9be5d,_0x290fc0){_0xb9be5d=_0xb9be5d-0x0;let _0x42b6b9=_0x290f[_0xb9be5d];return _0x42b6b9;};import{Plugin as _0x1c80e4}from'ckeditor5/src/core';import{getTranslation as _0x52aa41}from'../utils/common-translations';export default class Z extends _0x1c80e4{['afterInit'](){const _0x36196e=this[_0x42b6('0x12')],_0x145d8a=_0x36196e[_0x42b6('0x5')][_0x42b6('0xd')]('TrackChangesEditing');_0x36196e[_0x42b6('0x5')][_0x42b6('0x19')](_0x42b6('0x1'))&&(_0x145d8a[_0x42b6('0x3')]('indent'),_0x145d8a[_0x42b6('0x3')]('outdent'));const _0x4d25df=_0x36196e[_0x42b6('0x1a')];if(_0x36196e[_0x42b6('0x5')][_0x42b6('0x19')](_0x42b6('0x4'))){for(const _0x240003 of['indentBlock',_0x42b6('0xc')])_0x145d8a['enableCommand'](_0x240003,()=>{const _0x551019=Array[_0x42b6('0x18')](this[_0x42b6('0x12')][_0x42b6('0x9')][_0x42b6('0x7')][_0x42b6('0x14')][_0x42b6('0xf')]())['filter'](_0x1c077a=>this[_0x42b6('0x12')][_0x42b6('0x9')][_0x42b6('0x11')][_0x42b6('0x6')](_0x1c077a,'blockIndent'));_0x36196e[_0x42b6('0x9')][_0x42b6('0x13')](()=>{for(const _0x19cc45 of _0x551019)_0x145d8a[_0x42b6('0x10')](_0x19cc45,{'commandName':_0x240003,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x145d8a[_0x42b6('0x16')][_0x42b6('0x0')](_0x5fa6a3=>{const {data:_0x813b2e}=_0x5fa6a3;if(!_0x813b2e)return;if(_0x42b6('0xa')!=_0x813b2e['commandName']&&_0x42b6('0xc')!=_0x813b2e[_0x42b6('0x15')])return;const _0xddea0c=_0x5fa6a3[_0x42b6('0x2')]()[0x0],_0x2b78d1=_0x145d8a['_descriptionFactory'][_0x42b6('0x8')](_0xddea0c);return _0x42b6('0xa')==_0x813b2e[_0x42b6('0x15')]?{'type':_0x42b6('0x17'),'content':_0x52aa41(_0x4d25df,_0x42b6('0xb'),_0x2b78d1)}:'outdentBlock'==_0x813b2e[_0x42b6('0x15')]?{'type':_0x42b6('0x17'),'content':_0x52aa41(_0x4d25df,_0x42b6('0xe'),_0x2b78d1)}:void 0x0;});}}}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @module track-changes/integrations/inputcommand/inputcommand
3
+ */
4
+ import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for {@link module:typing/inputcommand~InputCommand input command}.
7
+ */
8
+ export default class TrackChangesInputCommand extends Plugin {
9
+ static get requires(): PluginDependencies;
10
+ init(): void;
11
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xd310=['editor','init','enableCommand','input','get'];(function(_0x539842,_0xd310be){var _0x5e47a4=function(_0x4ae932){while(--_0x4ae932){_0x539842['push'](_0x539842['shift']());}};_0x5e47a4(++_0xd310be);}(_0xd310,0x1c3));var _0x5e47=function(_0x539842,_0xd310be){_0x539842=_0x539842-0x0;var _0x5e47a4=_0xd310[_0x539842];return _0x5e47a4;};import{Plugin as _0x18dd5e}from'ckeditor5/src/core';import{Input as _0x5abb80}from'ckeditor5/src/typing';export default class st extends _0x18dd5e{static get['requires'](){return[_0x5abb80];}[_0x5e47('0x0')](){this[_0x5e47('0x4')]['plugins'][_0x5e47('0x3')]('TrackChangesEditing')[_0x5e47('0x1')](_0x5e47('0x2'));}}
23
+ var _0x3ca2=['editor','enableCommand','input','requires','plugins','TrackChangesEditing','init'];(function(_0x143a4a,_0x3ca252){var _0x507702=function(_0x397cf6){while(--_0x397cf6){_0x143a4a['push'](_0x143a4a['shift']());}};_0x507702(++_0x3ca252);}(_0x3ca2,0xb9));var _0x5077=function(_0x143a4a,_0x3ca252){_0x143a4a=_0x143a4a-0x0;var _0x507702=_0x3ca2[_0x143a4a];return _0x507702;};import{Plugin as _0x1e343b}from'ckeditor5/src/core';import{Input as _0x27efd6}from'ckeditor5/src/typing';export default class tt extends _0x1e343b{static get[_0x5077('0x0')](){return[_0x27efd6];}[_0x5077('0x3')](){this[_0x5077('0x4')][_0x5077('0x1')]['get'](_0x5077('0x2'))[_0x5077('0x5')](_0x5077('0x6'));}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/link
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for link feature.
7
+ */
8
+ export default class TrackChangesLink extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc96e=['link','isCollapsed','getAttribute','change','locale','model','document','hasAttribute','commandName','get','enableCommand','from','commandParams','getFirstPosition','linkHref','has','format','getRanges','afterInit','markInlineFormat','TrackChangesEditing','_descriptionFactory','selection','*Remove\x20link*','unlink','plugins','*Set\x20link:*\x20%0','editor'];(function(_0x28fc6b,_0xc96ed0){const _0x402982=function(_0x4a839d){while(--_0x4a839d){_0x28fc6b['push'](_0x28fc6b['shift']());}};_0x402982(++_0xc96ed0);}(_0xc96e,0x110));const _0x4029=function(_0x28fc6b,_0xc96ed0){_0x28fc6b=_0x28fc6b-0x0;let _0x402982=_0xc96e[_0x28fc6b];return _0x402982;};import{Plugin as _0x1e35be}from'ckeditor5/src/core';import{findAttributeRange as _0x4fb234}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x18269e}from'./utils';import{getTranslation as _0x3dd2aa}from'../utils/common-translations';export default class et extends _0x1e35be{[_0x4029('0x1a')](){const _0x3d0971=this[_0x4029('0x7')];if(!_0x3d0971[_0x4029('0x5')][_0x4029('0x17')]('LinkEditing'))return;const _0x93e3dd=_0x3d0971[_0x4029('0x5')][_0x4029('0x11')](_0x4029('0x0'));_0x93e3dd[_0x4029('0x12')](_0x4029('0x8'),(_0x4764b6,_0x434412)=>{const _0x2cc0dc=_0x3d0971[_0x4029('0xd')][_0x4029('0xe')][_0x4029('0x2')];let _0x223fbb=[];if(_0x2cc0dc[_0x4029('0x9')]){if(!_0x2cc0dc[_0x4029('0xf')](_0x4029('0x16')))return void _0x4764b6(_0x434412);{const _0x128a10=_0x4fb234(_0x2cc0dc[_0x4029('0x15')](),_0x4029('0x16'),_0x2cc0dc['getAttribute'](_0x4029('0x16')),_0x3d0971[_0x4029('0xd')]);_0x223fbb=[_0x128a10];}}else _0x223fbb=Array[_0x4029('0x13')](_0x2cc0dc[_0x4029('0x19')]());_0x3d0971[_0x4029('0xd')]['change'](()=>{for(const _0x932feb of _0x223fbb)_0x93e3dd[_0x4029('0x1b')](_0x932feb,{'commandName':_0x4029('0x8'),'commandParams':[_0x434412]});});}),_0x93e3dd[_0x4029('0x12')](_0x4029('0x4'),()=>{const _0x10ec5e=this[_0x4029('0x7')]['model'],_0x3cce38=_0x10ec5e[_0x4029('0xe')][_0x4029('0x2')];_0x10ec5e[_0x4029('0xb')](()=>{let _0x57cf82=[];if(_0x3cce38[_0x4029('0x9')])_0x57cf82=[_0x4fb234(_0x3cce38['getFirstPosition'](),_0x4029('0x16'),_0x3cce38[_0x4029('0xa')](_0x4029('0x16')),_0x3d0971['model'])];else _0x57cf82=_0x18269e(_0x4029('0x16'),_0x3cce38['getFirstRange'](),_0x3d0971[_0x4029('0xd')]);for(const _0x1c61db of _0x57cf82)_0x93e3dd[_0x4029('0x1b')](_0x1c61db,{'commandName':_0x4029('0x4'),'commandParams':[]});});}),_0x93e3dd[_0x4029('0x1')]['registerDescriptionCallback'](_0x5b1e48=>{const {data:_0x2b24ce}=_0x5b1e48,_0x854c81=_0x3d0971[_0x4029('0xc')];if(_0x2b24ce){if(_0x4029('0x8')==_0x2b24ce['commandName']){const _0x28f679=_0x2b24ce[_0x4029('0x14')][0x0];return{'type':_0x4029('0x18'),'content':_0x3dd2aa(_0x854c81,_0x4029('0x6'),'\x22'+_0x28f679+'\x22')};}return'unlink'==_0x2b24ce[_0x4029('0x10')]?{'type':_0x4029('0x18'),'content':_0x3dd2aa(_0x854c81,_0x4029('0x3'))}:void 0x0;}});}}
23
+ const _0x2ac8=['registerDescriptionCallback','get','LinkEditing','*Remove\x20link*','change','linkHref','*Set\x20link:*\x20%0','isCollapsed','has','from','getRanges','afterInit','model','link','unlink','format','hasAttribute','selection','getFirstRange','document','getAttribute','plugins','commandName','commandParams','getFirstPosition','enableCommand'];(function(_0x29c323,_0x2ac8d3){const _0x396060=function(_0x517e59){while(--_0x517e59){_0x29c323['push'](_0x29c323['shift']());}};_0x396060(++_0x2ac8d3);}(_0x2ac8,0x113));const _0x3960=function(_0x29c323,_0x2ac8d3){_0x29c323=_0x29c323-0x0;let _0x396060=_0x2ac8[_0x29c323];return _0x396060;};import{Plugin as _0x59ec10}from'ckeditor5/src/core';import{findAttributeRange as _0x2d1f00}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x2ca3d}from'./utils';import{getTranslation as _0x4c3f99}from'../utils/common-translations';export default class it extends _0x59ec10{[_0x3960('0x16')](){const _0x5ce961=this['editor'];if(!_0x5ce961[_0x3960('0x6')][_0x3960('0x13')](_0x3960('0xd')))return;const _0x50017e=_0x5ce961[_0x3960('0x6')][_0x3960('0xc')]('TrackChangesEditing');_0x50017e[_0x3960('0xa')](_0x3960('0x18'),(_0x4f3573,_0x5f26e6)=>{const _0x5d1186=_0x5ce961[_0x3960('0x17')][_0x3960('0x4')]['selection'];let _0x5edc77=[];if(_0x5d1186[_0x3960('0x12')]){if(!_0x5d1186[_0x3960('0x1')](_0x3960('0x10')))return void _0x4f3573(_0x5f26e6);{const _0x3f8680=_0x2d1f00(_0x5d1186[_0x3960('0x9')](),_0x3960('0x10'),_0x5d1186[_0x3960('0x5')]('linkHref'),_0x5ce961[_0x3960('0x17')]);_0x5edc77=[_0x3f8680];}}else _0x5edc77=Array[_0x3960('0x14')](_0x5d1186[_0x3960('0x15')]());_0x5ce961[_0x3960('0x17')]['change'](()=>{for(const _0x4f4489 of _0x5edc77)_0x50017e['markInlineFormat'](_0x4f4489,{'commandName':_0x3960('0x18'),'commandParams':[_0x5f26e6]});});}),_0x50017e[_0x3960('0xa')](_0x3960('0x19'),()=>{const _0x5d80da=this['editor']['model'],_0x2cd394=_0x5d80da[_0x3960('0x4')][_0x3960('0x2')];_0x5d80da[_0x3960('0xf')](()=>{let _0x56839a=[];if(_0x2cd394[_0x3960('0x12')])_0x56839a=[_0x2d1f00(_0x2cd394[_0x3960('0x9')](),_0x3960('0x10'),_0x2cd394[_0x3960('0x5')](_0x3960('0x10')),_0x5ce961[_0x3960('0x17')])];else _0x56839a=_0x2ca3d('linkHref',_0x2cd394[_0x3960('0x3')](),_0x5ce961['model']);for(const _0x2b6e45 of _0x56839a)_0x50017e['markInlineFormat'](_0x2b6e45,{'commandName':'unlink','commandParams':[]});});}),_0x50017e['_descriptionFactory'][_0x3960('0xb')](_0x26c563=>{const {data:_0x13cc90}=_0x26c563,_0x2d2c6b=_0x5ce961['locale'];if(_0x13cc90){if(_0x3960('0x18')==_0x13cc90[_0x3960('0x7')]){const _0x28b08c=_0x13cc90[_0x3960('0x8')][0x0];return{'type':'format','content':_0x4c3f99(_0x2d2c6b,_0x3960('0x11'),'\x22'+_0x28b08c+'\x22')};}return _0x3960('0x19')==_0x13cc90['commandName']?{'type':_0x3960('0x0'),'content':_0x4c3f99(_0x2d2c6b,_0x3960('0xe'))}:void 0x0;}});}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/list
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for list feature.
7
+ */
8
+ export default class TrackChangesList extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29e8=['outdentList','nextSibling','getAttribute','format','value','forceValue','indentList','*Outdent:*\x20%0','selection','*Check\x20item*','*Indent:*\x20%0','blockName','enableCommand','registerElementLabel','todo','from','editor','push','commandName','bulleted','execute','length','todoList','numbered','todoListChecked','List','*Change\x20to:*\x20%0','model','plugins','ELEMENT_LIST_ITEM','ELEMENT_BULLETED_LIST','listType','replace','has','before','add','checkChild','filter','commands','afterInit','TrackChangesEditing','_selectedElements','element','slice','get','name','TodoListEditing','previousSibling','change','checkTodoList','markBlockFormat','getSelectedBlocks','numberedList','parent','findIndex','createPositionAt','document','ELEMENT_NUMBERED_LIST','listItem','_descriptionFactory','listIndent','commandParams'];(function(_0x3dc852,_0x29e8af){const _0x173b8c=function(_0x56a108){while(--_0x56a108){_0x3dc852['push'](_0x3dc852['shift']());}};_0x173b8c(++_0x29e8af);}(_0x29e8,0x167));const _0x173b=function(_0x3dc852,_0x29e8af){_0x3dc852=_0x3dc852-0x0;let _0x173b8c=_0x29e8[_0x3dc852];return _0x173b8c;};import{Plugin as _0x5f1d6b}from'ckeditor5/src/core';import{getTranslation as _0x37a128}from'../utils/common-translations';export default class nt extends _0x5f1d6b{[_0x173b('0x34')](){const _0x4a34ca=this[_0x173b('0x1d')],_0x2ceaa1=_0x4a34ca['locale'];if(!_0x4a34ca[_0x173b('0x29')]['has']('ListEditing'))return;const _0x10a7a4=_0x4a34ca['plugins']['get'](_0x173b('0x35')),_0x14d47e=_0x4a34ca[_0x173b('0x29')][_0x173b('0x2e')](_0x173b('0x3b'));function _0x36335a(_0xe2170c){return()=>{const _0x2d50a2=_0x4a34ca[_0x173b('0x28')][_0x173b('0x7')][_0x173b('0x15')],_0x110b86=_0x4a34ca[_0x173b('0x33')][_0x173b('0x39')](_0xe2170c);if(_0x110b86[_0x173b('0x11')])return void _0x4a34ca[_0x173b('0x21')]('paragraph',{});const _0x4463ec=_0xe2170c[_0x173b('0x38')](0x0,-0x4),_0x366723=function(_0x23c433,_0x4be3f3,_0xa8a57){let _0x3bfc16=Array['from'](_0x23c433)['filter'](_0x134804=>function(_0x32333b,_0xcd3555){return _0xcd3555[_0x173b('0x31')](_0x32333b[_0x173b('0x4')],_0x173b('0x9'))&&!_0xcd3555['isObject'](_0x32333b);}(_0x134804,_0xa8a57));_0x3bfc16=_0x3bfc16[_0x173b('0x32')](_0x1f73c0=>!_0x1f73c0['is'](_0x173b('0x37'),_0x173b('0x9'))||_0x1f73c0['getAttribute'](_0x173b('0x2c'))!=_0x4be3f3);const _0x59a6aa=new Set();for(const _0x3403f3 of _0x3bfc16)_0x3403f3['is']('element',_0x173b('0x9'))?_0x59a6aa['add'](ne(_0x3403f3)):_0x59a6aa[_0x173b('0x30')](_0x3403f3);return Array[_0x173b('0x1c')](_0x59a6aa);}(_0x2d50a2['getSelectedBlocks'](),_0x4463ec,_0x4a34ca[_0x173b('0x28')]['schema']);_0x4a34ca['model'][_0x173b('0x3d')](()=>{for(const _0x21e6ce of _0x366723)_0x10a7a4[_0x173b('0x1')](_0x21e6ce,{'commandName':_0xe2170c,'commandParams':[{'forceValue':!_0x110b86['value']}],'formatGroupId':_0x173b('0x18')},oe(_0x21e6ce));});};}function _0x8beb50(_0x5c2ea2){return()=>{const _0x4518a9=function(_0xc260fa){const _0x3b7e0=(_0xc260fa=Array[_0x173b('0x1c')](_0xc260fa))[_0x173b('0x5')](_0x2b7f13=>'listItem'!=_0x2b7f13[_0x173b('0x3a')]);return _0x3b7e0>-0x1&&(_0xc260fa=_0xc260fa[_0x173b('0x38')](0x0,_0x3b7e0)),_0xc260fa;}(_0x4a34ca[_0x173b('0x28')][_0x173b('0x7')][_0x173b('0x15')][_0x173b('0x2')]()),_0x46a925=_0x4a34ca['model']['createRange'](_0x4a34ca['model'][_0x173b('0x6')](_0x4518a9[0x0],_0x173b('0x2f')),_0x4a34ca[_0x173b('0x28')][_0x173b('0x6')](_0x4518a9[_0x4518a9[_0x173b('0x22')]-0x1],'end'));_0x4a34ca['model'][_0x173b('0x3d')](()=>{_0x10a7a4[_0x173b('0x1')](_0x46a925,{'commandName':_0x5c2ea2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4e670e){const _0x13429b=new Set();for(const _0x4180f6 of _0x4e670e){let _0x1c14dc=_0x4180f6['nextSibling'];for(;_0x1c14dc&&_0x1c14dc['getAttribute'](_0x173b('0xb'))>_0x4180f6[_0x173b('0xf')](_0x173b('0xb'));)_0x13429b[_0x173b('0x30')](_0x1c14dc),_0x1c14dc=_0x1c14dc[_0x173b('0xe')];}return Array[_0x173b('0x1c')](_0x13429b);}(_0x4518a9));});};}_0x10a7a4[_0x173b('0x19')]('numberedList',_0x36335a('numberedList')),_0x10a7a4['enableCommand']('bulletedList',_0x36335a('bulletedList')),_0x14d47e&&_0x10a7a4[_0x173b('0x19')]('todoList',_0x36335a(_0x173b('0x23'))),_0x10a7a4['enableCommand'](_0x173b('0x13'),_0x8beb50(_0x173b('0x13'))),_0x10a7a4[_0x173b('0x19')]('outdentList',_0x8beb50(_0x173b('0xd'))),_0x14d47e&&_0x10a7a4[_0x173b('0x19')](_0x173b('0x0'),()=>{const _0x20c309=_0x4a34ca[_0x173b('0x33')][_0x173b('0x39')](_0x173b('0x0')),_0x26a210=Array['from'](_0x20c309[_0x173b('0x36')]);_0x26a210[_0x173b('0x32')](_0x151b8e=>_0x151b8e[_0x173b('0xf')](_0x173b('0x25'))!=_0x20c309['value']),_0x4a34ca[_0x173b('0x28')]['change'](()=>{for(const _0x197167 of _0x26a210)_0x10a7a4[_0x173b('0x1')](_0x197167,{'commandName':_0x173b('0x0'),'commandParams':[{'forceValue':!_0x20c309['value']}]});});}),_0x10a7a4[_0x173b('0xa')][_0x173b('0x1a')]('listItem',_0x18a50e=>_0x37a128(_0x2ceaa1,_0x173b('0x2a'),_0x18a50e)),_0x10a7a4[_0x173b('0xa')]['registerDescriptionCallback'](_0x1bd805=>{const {data:_0x3cfcb7}=_0x1bd805;if(_0x3cfcb7){if(_0x173b('0x3')==_0x3cfcb7[_0x173b('0x1f')]||'bulletedList'==_0x3cfcb7['commandName']||_0x173b('0x23')==_0x3cfcb7[_0x173b('0x1f')])switch(_0x3cfcb7[_0x173b('0x1f')][_0x173b('0x2d')](_0x173b('0x26'),'')){case _0x173b('0x20'):return _0x5a22a1(_0x37a128(_0x2ceaa1,_0x173b('0x2b')));case _0x173b('0x24'):return _0x5a22a1(_0x37a128(_0x2ceaa1,_0x173b('0x8')));case _0x173b('0x1b'):return _0x5a22a1(_0x37a128(_0x2ceaa1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3cfcb7[_0x173b('0x1f')])return{'type':'format','content':_0x37a128(_0x2ceaa1,_0x173b('0x17'),_0x37a128(_0x2ceaa1,_0x173b('0x2a')))};if('outdentList'==_0x3cfcb7[_0x173b('0x1f')])return{'type':_0x173b('0x10'),'content':_0x37a128(_0x2ceaa1,_0x173b('0x14'),_0x37a128(_0x2ceaa1,_0x173b('0x2a')))};if(_0x173b('0x0')==_0x3cfcb7[_0x173b('0x1f')])return _0x3cfcb7[_0x173b('0xc')][0x0][_0x173b('0x12')]?{'type':'format','content':_0x37a128(_0x2ceaa1,_0x173b('0x16'))}:{'type':_0x173b('0x10'),'content':_0x37a128(_0x2ceaa1,'*Uncheck\x20item*')};}function _0x5a22a1(_0x421eca){return{'type':'format','content':_0x37a128(_0x2ceaa1,_0x173b('0x27'),_0x421eca)};}});}}function ne(_0x28eafa){const _0x849158=_0x28eafa[_0x173b('0xf')](_0x173b('0xb'));if(0x0==_0x849158)return _0x28eafa;let _0x2ca7c5=_0x28eafa;for(;_0x28eafa[_0x173b('0x3c')]&&_0x28eafa[_0x173b('0x3c')]['is'](_0x173b('0x37'),_0x173b('0x9'));){const _0x2074e3=_0x28eafa[_0x173b('0x3c')][_0x173b('0xf')](_0x173b('0xb'));if(_0x2074e3==_0x849158)_0x2ca7c5=_0x28eafa[_0x173b('0x3c')];else{if(_0x2074e3<_0x849158)break;}_0x28eafa=_0x28eafa[_0x173b('0x3c')];}return _0x2ca7c5;}function oe(_0x586d3f){const _0x149166=[];if(_0x586d3f['is'](_0x173b('0x37'),'listItem')&&_0x586d3f[_0x173b('0xf')](_0x173b('0xb'))>0x0){let _0x5d3c7e=_0x586d3f['nextSibling'];for(;_0x5d3c7e&&_0x173b('0x9')==_0x5d3c7e[_0x173b('0x3a')]&&_0x5d3c7e[_0x173b('0xf')](_0x173b('0xb'))==_0x586d3f[_0x173b('0xf')](_0x173b('0xb'));)_0x149166[_0x173b('0x1e')](_0x5d3c7e),_0x5d3c7e=_0x5d3c7e[_0x173b('0xe')];}return _0x149166;}
23
+ const _0x509f=['TodoListEditing','todoListChecked','isObject','slice','filter','listType','todo','*Outdent:*\x20%0','from','listItem','length','commandName','nextSibling','execute','plugins','List','*Change\x20to:*\x20%0','numberedList','markBlockFormat','listIndent','ListEditing','end','add','TrackChangesEditing','createPositionAt','model','element','ELEMENT_LIST_ITEM','getSelectedBlocks','before','change','indentList','registerElementLabel','commandParams','_descriptionFactory','enableCommand','ELEMENT_TODO_LIST','ELEMENT_BULLETED_LIST','format','todoList','registerDescriptionCallback','selection','push','parent','document','getAttribute','value','locale','replace','*Uncheck\x20item*','commands','has','get','*Check\x20item*','forceValue','schema','outdentList','editor','blockName','checkTodoList','previousSibling','bulletedList','checkChild','name','afterInit','ELEMENT_NUMBERED_LIST'];(function(_0x47ee56,_0x509f86){const _0x19d940=function(_0x3b302){while(--_0x3b302){_0x47ee56['push'](_0x47ee56['shift']());}};_0x19d940(++_0x509f86);}(_0x509f,0x192));const _0x19d9=function(_0x47ee56,_0x509f86){_0x47ee56=_0x47ee56-0x0;let _0x19d940=_0x509f[_0x47ee56];return _0x19d940;};import{Plugin as _0x1c2dcf}from'ckeditor5/src/core';import{getTranslation as _0x2ac641}from'../utils/common-translations';export default class st extends _0x1c2dcf{[_0x19d9('0x3a')](){const _0x248459=this[_0x19d9('0x33')],_0xc8fed7=_0x248459[_0x19d9('0x29')];if(!_0x248459[_0x19d9('0x8')][_0x19d9('0x2d')](_0x19d9('0xe')))return;const _0x4c36e0=_0x248459[_0x19d9('0x8')][_0x19d9('0x2e')](_0x19d9('0x11')),_0x1a6e3b=_0x248459['plugins'][_0x19d9('0x2d')](_0x19d9('0x3c'));function _0x2950e8(_0x336d9e){return()=>{const _0x501508=_0x248459['model'][_0x19d9('0x26')][_0x19d9('0x23')],_0x536d51=_0x248459[_0x19d9('0x2c')][_0x19d9('0x2e')](_0x336d9e);if(_0x536d51['value'])return void _0x248459[_0x19d9('0x7')]('paragraph',{});const _0x649074=_0x336d9e[_0x19d9('0x3f')](0x0,-0x4),_0x2c8bcf=function(_0x1bea52,_0x26cd56,_0x1b3cf6){let _0x429634=Array[_0x19d9('0x2')](_0x1bea52)['filter'](_0x5c9b89=>function(_0x16c210,_0x41f8c3){return _0x41f8c3[_0x19d9('0x38')](_0x16c210[_0x19d9('0x25')],'listItem')&&!_0x41f8c3[_0x19d9('0x3e')](_0x16c210);}(_0x5c9b89,_0x1b3cf6));_0x429634=_0x429634['filter'](_0x2d5a79=>!_0x2d5a79['is'](_0x19d9('0x14'),'listItem')||_0x2d5a79[_0x19d9('0x27')](_0x19d9('0x41'))!=_0x26cd56);const _0xc31b0d=new Set();for(const _0x3a99a4 of _0x429634)_0x3a99a4['is'](_0x19d9('0x14'),_0x19d9('0x3'))?_0xc31b0d[_0x19d9('0x10')](ne(_0x3a99a4)):_0xc31b0d[_0x19d9('0x10')](_0x3a99a4);return Array[_0x19d9('0x2')](_0xc31b0d);}(_0x501508[_0x19d9('0x16')](),_0x649074,_0x248459[_0x19d9('0x13')][_0x19d9('0x31')]);_0x248459[_0x19d9('0x13')][_0x19d9('0x18')](()=>{for(const _0x42a46d of _0x2c8bcf)_0x4c36e0['markBlockFormat'](_0x42a46d,{'commandName':_0x336d9e,'commandParams':[{'forceValue':!_0x536d51[_0x19d9('0x28')]}],'formatGroupId':_0x19d9('0x34')},oe(_0x42a46d));});};}function _0x26eec8(_0x16ae24){return()=>{const _0x2e9dcc=function(_0x37e60f){let _0x22da65=Array[_0x19d9('0x2')](_0x37e60f);const _0x4df7df=_0x22da65['findIndex'](_0x53dd8a=>_0x19d9('0x3')!=_0x53dd8a[_0x19d9('0x39')]);return _0x4df7df>-0x1&&(_0x22da65=_0x22da65[_0x19d9('0x3f')](0x0,_0x4df7df)),_0x22da65;}(_0x248459[_0x19d9('0x13')][_0x19d9('0x26')][_0x19d9('0x23')][_0x19d9('0x16')]()),_0x37bf3a=_0x248459[_0x19d9('0x13')]['createRange'](_0x248459[_0x19d9('0x13')][_0x19d9('0x12')](_0x2e9dcc[0x0],_0x19d9('0x17')),_0x248459[_0x19d9('0x13')][_0x19d9('0x12')](_0x2e9dcc[_0x2e9dcc[_0x19d9('0x4')]-0x1],_0x19d9('0xf')));_0x248459['model'][_0x19d9('0x18')](()=>{_0x4c36e0[_0x19d9('0xc')](_0x37bf3a,{'commandName':_0x16ae24,'commandParams':[],'formatGroupId':_0x19d9('0xd')},function(_0x2bd25d){const _0x6eb6ff=new Set();for(const _0x5051d1 of _0x2bd25d){let _0x6beb57=_0x5051d1[_0x19d9('0x6')];for(;_0x6beb57&&_0x6beb57['getAttribute'](_0x19d9('0xd'))>_0x5051d1[_0x19d9('0x27')]('listIndent');)_0x6eb6ff[_0x19d9('0x10')](_0x6beb57),_0x6beb57=_0x6beb57[_0x19d9('0x6')];}return Array['from'](_0x6eb6ff);}(_0x2e9dcc));});};}_0x4c36e0['enableCommand'](_0x19d9('0xb'),_0x2950e8('numberedList')),_0x4c36e0[_0x19d9('0x1d')]('bulletedList',_0x2950e8(_0x19d9('0x37'))),_0x1a6e3b&&_0x4c36e0[_0x19d9('0x1d')]('todoList',_0x2950e8(_0x19d9('0x21'))),_0x4c36e0[_0x19d9('0x1d')](_0x19d9('0x19'),_0x26eec8('indentList')),_0x4c36e0[_0x19d9('0x1d')](_0x19d9('0x32'),_0x26eec8(_0x19d9('0x32'))),_0x1a6e3b&&_0x4c36e0[_0x19d9('0x1d')]('checkTodoList',()=>{const _0x20a3c7=_0x248459[_0x19d9('0x2c')][_0x19d9('0x2e')](_0x19d9('0x35')),_0x3dec6b=Array[_0x19d9('0x2')](_0x20a3c7['_selectedElements']);_0x3dec6b[_0x19d9('0x40')](_0x299d14=>_0x299d14[_0x19d9('0x27')](_0x19d9('0x3d'))!=_0x20a3c7[_0x19d9('0x28')]),_0x248459[_0x19d9('0x13')][_0x19d9('0x18')](()=>{for(const _0x1e8415 of _0x3dec6b)_0x4c36e0[_0x19d9('0xc')](_0x1e8415,{'commandName':_0x19d9('0x35'),'commandParams':[{'forceValue':!_0x20a3c7[_0x19d9('0x28')]}]});});}),_0x4c36e0[_0x19d9('0x1c')][_0x19d9('0x1a')]('listItem',_0x541df2=>_0x2ac641(_0xc8fed7,_0x19d9('0x15'),_0x541df2)),_0x4c36e0[_0x19d9('0x1c')][_0x19d9('0x22')](_0xb46207=>{const {data:_0x206b33}=_0xb46207;if(_0x206b33){if('numberedList'==_0x206b33[_0x19d9('0x5')]||_0x19d9('0x37')==_0x206b33['commandName']||_0x19d9('0x21')==_0x206b33[_0x19d9('0x5')])switch(_0x206b33[_0x19d9('0x5')][_0x19d9('0x2a')](_0x19d9('0x9'),'')){case'bulleted':return _0x17864d(_0x2ac641(_0xc8fed7,_0x19d9('0x1f')));case'numbered':return _0x17864d(_0x2ac641(_0xc8fed7,_0x19d9('0x3b')));case _0x19d9('0x0'):return _0x17864d(_0x2ac641(_0xc8fed7,_0x19d9('0x1e')));}if('indentList'==_0x206b33['commandName'])return{'type':'format','content':_0x2ac641(_0xc8fed7,'*Indent:*\x20%0',_0x2ac641(_0xc8fed7,_0x19d9('0x15')))};if('outdentList'==_0x206b33[_0x19d9('0x5')])return{'type':_0x19d9('0x20'),'content':_0x2ac641(_0xc8fed7,_0x19d9('0x1'),_0x2ac641(_0xc8fed7,'ELEMENT_LIST_ITEM'))};if(_0x19d9('0x35')==_0x206b33[_0x19d9('0x5')])return _0x206b33[_0x19d9('0x1b')][0x0][_0x19d9('0x30')]?{'type':_0x19d9('0x20'),'content':_0x2ac641(_0xc8fed7,_0x19d9('0x2f'))}:{'type':_0x19d9('0x20'),'content':_0x2ac641(_0xc8fed7,_0x19d9('0x2b'))};}function _0x17864d(_0x38c404){return{'type':_0x19d9('0x20'),'content':_0x2ac641(_0xc8fed7,_0x19d9('0xa'),_0x38c404)};}});}}function ne(_0xc17bb0){const _0x5a05cc=_0xc17bb0[_0x19d9('0x27')](_0x19d9('0xd'));if(0x0==_0x5a05cc)return _0xc17bb0;let _0x43a0d1=_0xc17bb0;for(;_0xc17bb0['previousSibling']&&_0xc17bb0[_0x19d9('0x36')]['is'](_0x19d9('0x14'),'listItem');){const _0x43b3ee=_0xc17bb0[_0x19d9('0x36')][_0x19d9('0x27')](_0x19d9('0xd'));if(_0x43b3ee==_0x5a05cc)_0x43a0d1=_0xc17bb0[_0x19d9('0x36')];else{if(_0x43b3ee<_0x5a05cc)break;}_0xc17bb0=_0xc17bb0[_0x19d9('0x36')];}return _0x43a0d1;}function oe(_0x234e5c){const _0x3110fb=[];if(_0x234e5c['is'](_0x19d9('0x14'),_0x19d9('0x3'))&&_0x234e5c[_0x19d9('0x27')]('listIndent')>0x0){let _0x51d563=_0x234e5c[_0x19d9('0x6')];for(;_0x51d563&&_0x19d9('0x3')==_0x51d563[_0x19d9('0x39')]&&_0x51d563[_0x19d9('0x27')](_0x19d9('0xd'))==_0x234e5c[_0x19d9('0x27')](_0x19d9('0xd'));)_0x3110fb[_0x19d9('0x24')](_0x51d563),_0x51d563=_0x51d563[_0x19d9('0x6')];}return _0x3110fb;}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @module track-changes/integrations/listproperties
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ import type { Description } from '../suggestiondescriptionfactory';
6
+ import type Suggestion from '../suggestion';
7
+ /**
8
+ * Provides track changes plugin integration for list properties feature.
9
+ */
10
+ export default class TrackChangesListProperties extends Plugin {
11
+ /**
12
+ * @inheritDoc
13
+ */
14
+ afterInit(): void;
15
+ handleListStyleCommand(executeCommand: Function, options?: {
16
+ type?: string | null;
17
+ }): void;
18
+ handleListReversedCommand(executeCommand: Function, options?: {
19
+ reversed?: boolean;
20
+ }): void;
21
+ handleListStartCommand(executeCommand: Function, options?: {
22
+ startIndex?: number;
23
+ }): void;
24
+ handleDescriptions(suggestion: Suggestion): Description | undefined;
25
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ab5=['length','handleListStartCommand','handleListReversedCommand','backward','plugins','from','get','ListUtils','toUpperCase','forward','_getTranslationKeyForListStyle','change','afterInit','handleDescriptions','_getSuggestionBlocks','handleListStyleCommand','type','startIndex','has','bind','listItem','getSiblingNodes','config','listType','map','list.properties','TrackChangesEditing','_LIST_','format','editor','_descriptionFactory','enableCommand','listStart','getListTypeFromListStyleType','element','reversed','hasAttribute','createPositionAt','before','getSelectedBlocks','flat','listStyle','commandParams','markMultiRangeBlockFormat','*Change\x20to:*\x20%0','selection','*Format:*\x20set\x20order\x20to\x20regular','document','styles','listReversed','ELEMENT_','model','ListPropertiesEditing'];(function(_0x2c6ca0,_0x2ab584){const _0x47b370=function(_0x5b4c8d){while(--_0x5b4c8d){_0x2c6ca0['push'](_0x2c6ca0['shift']());}};_0x47b370(++_0x2ab584);}(_0x2ab5,0x11e));const _0x47b3=function(_0x2c6ca0,_0x2ab584){_0x2c6ca0=_0x2c6ca0-0x0;let _0x47b370=_0x2ab5[_0x2c6ca0];return _0x47b370;};import{Plugin as _0x47fb26}from'ckeditor5/src/core';import{getTranslation as _0x5c236b}from'../utils/common-translations';export default class ot extends _0x47fb26{[_0x47b3('0x2c')](){if(!this[_0x47b3('0x8')]['plugins'][_0x47b3('0x32')](_0x47b3('0x1f')))return;const _0x2f9a79=this['editor'][_0x47b3('0x1')][_0x47b3('0x26')](_0x47b3('0x4')),_0x3c5c8d=this[_0x47b3('0x8')]['plugins'][_0x47b3('0x26')](_0x47b3('0x5'));_0x2f9a79[_0x47b3('0x1b')]&&_0x3c5c8d[_0x47b3('0xa')](_0x47b3('0x14'),this['handleListStyleCommand'][_0x47b3('0x33')](this)),_0x2f9a79[_0x47b3('0xe')]&&_0x3c5c8d[_0x47b3('0xa')]('listReversed',this[_0x47b3('0x22')][_0x47b3('0x33')](this)),_0x2f9a79['startIndex']&&_0x3c5c8d[_0x47b3('0xa')](_0x47b3('0xb'),this[_0x47b3('0x21')][_0x47b3('0x33')](this)),_0x3c5c8d[_0x47b3('0x9')]['registerDescriptionCallback'](this[_0x47b3('0x2d')][_0x47b3('0x33')](this));}[_0x47b3('0x2f')](_0x5c8993,_0x2068b3){const _0x5616bf=this[_0x47b3('0x8')][_0x47b3('0x24')][_0x47b3('0x26')](_0x47b3('0x5')),_0x5aa0d6=this[_0x47b3('0x2e')](_0x3877fe=>_0x3877fe[_0x47b3('0xf')](_0x47b3('0x2')));_0x5aa0d6['length']<0x1||this[_0x47b3('0x8')]['model']['change'](()=>{_0x5616bf[_0x47b3('0x16')](_0x5aa0d6,{'commandName':_0x47b3('0x14'),'commandParams':[{'type':_0x2068b3[_0x47b3('0x30')]}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x201b94,_0x3b167d){const _0x3a0113=this[_0x47b3('0x8')]['plugins'][_0x47b3('0x26')]('TrackChangesEditing'),_0x4a06f9=this[_0x47b3('0x2e')](_0x1ecb77=>_0x1ecb77['is'](_0x47b3('0xd'),_0x47b3('0x34'))&&'numbered'===_0x1ecb77['getAttribute'](_0x47b3('0x2')));if(_0x4a06f9[_0x47b3('0x20')]<0x1)return;const _0x4fa7cb=_0x4a06f9['map'](_0xf7b7bf=>this['editor'][_0x47b3('0x1e')]['createRange'](this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x10')](_0xf7b7bf,'before'),this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x10')](_0xf7b7bf,0x0)));this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x2b')](()=>{_0x3a0113[_0x47b3('0x16')](_0x4fa7cb,{'commandName':_0x47b3('0x1c'),'commandParams':[{'reversed':_0x3b167d[_0x47b3('0xe')]}],'formatGroupId':_0x47b3('0x1c')});});}['handleListStartCommand'](_0x4bef8b,_0x7f0049){const _0x5b99fe=this[_0x47b3('0x8')]['plugins'][_0x47b3('0x26')](_0x47b3('0x5')),_0x31c5bb=this[_0x47b3('0x2e')](_0x1eacb7=>_0x1eacb7['is'](_0x47b3('0xd'),_0x47b3('0x34'))&&'numbered'===_0x1eacb7['getAttribute'](_0x47b3('0x2')));if(_0x31c5bb[_0x47b3('0x20')]<0x1)return;const _0x2efa2d=_0x31c5bb[_0x47b3('0x3')](_0x1f63ea=>this[_0x47b3('0x8')]['model']['createRange'](this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x10')](_0x1f63ea,_0x47b3('0x11')),this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x10')](_0x1f63ea,0x0)));this[_0x47b3('0x8')]['model'][_0x47b3('0x2b')](()=>{_0x5b99fe[_0x47b3('0x16')](_0x2efa2d,{'commandName':_0x47b3('0xb'),'commandParams':[{'startIndex':_0x7f0049[_0x47b3('0x31')]}],'formatGroupId':_0x47b3('0xb')});});}[_0x47b3('0x2d')](_0x19e7d7){const _0x107624=this['editor']['locale'],{data:_0x5b45aa}=_0x19e7d7;if(!_0x5b45aa)return;let _0xb7118b,_0x21c7d7;switch(_0x5b45aa['commandName']){case _0x47b3('0x14'):_0xb7118b=_0x47b3('0x17'),_0x21c7d7={'type':_0x47b3('0x7'),'content':_0x5c236b(_0x107624,_0xb7118b,_0x5c236b(_0x107624,this[_0x47b3('0x2a')](_0x5b45aa[_0x47b3('0x15')][0x0]['type'])))};break;case'listReversed':_0xb7118b=_0x5b45aa[_0x47b3('0x15')][0x0][_0x47b3('0xe')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x47b3('0x19'),_0x21c7d7={'type':_0x47b3('0x7'),'content':_0x5c236b(_0x107624,_0xb7118b)};break;case _0x47b3('0xb'):_0xb7118b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21c7d7={'type':_0x47b3('0x7'),'content':_0x5c236b(_0x107624,_0xb7118b,_0x5b45aa['commandParams'][0x0][_0x47b3('0x31')])};}return _0x21c7d7;}[_0x47b3('0x2e')](_0x84cbb9){const _0x39581e=this[_0x47b3('0x8')][_0x47b3('0x24')][_0x47b3('0x26')]('ListUtils');let _0x17364c=Array[_0x47b3('0x25')](this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x1a')][_0x47b3('0x18')][_0x47b3('0x12')]())['filter'](_0x84cbb9)[_0x47b3('0x3')](_0x5ea1c1=>{const _0x505711=this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x10')](_0x5ea1c1,0x0);return[..._0x39581e[_0x47b3('0x0')](_0x505711,_0x47b3('0x23')),..._0x39581e[_0x47b3('0x0')](_0x505711,_0x47b3('0x29'))];})[_0x47b3('0x13')]();return _0x17364c=[...new Set(_0x17364c)],_0x17364c;}[_0x47b3('0x2a')](_0x4adb39){return _0x47b3('0x1d')+this['editor'][_0x47b3('0x24')]['get'](_0x47b3('0x27'))[_0x47b3('0xc')](_0x4adb39)[_0x47b3('0x28')]()+_0x47b3('0x6')+_0x4adb39[_0x47b3('0x28')]()['replaceAll']('-','_');}}
23
+ const _0x971b=['enableCommand','ListPropertiesEditing','change','model','filter','ListUtils','TrackChangesEditing','getSelectedBlocks','forward','afterInit','getSiblingNodes','document','markMultiRangeBlockFormat','toUpperCase','*Format:*\x20set\x20order\x20to\x20regular','numbered','get','_descriptionFactory','config','plugins','handleListStartCommand','listItem','editor','handleListStyleCommand','before','_LIST_','_getSuggestionBlocksForListStyle','format','startIndex','bind','createPositionAt','listReversed','reversed','_getTranslationKeyForListStyle','getListTypeFromListStyleType','element','_getSuggestionBlocks','listStyle','commandName','listType','type','createRange','replace','*Change\x20to:*\x20%0','selection','listStart','length','from','backward','list.properties','getLastPosition','commandParams','getFirstPosition','push','ELEMENT_','handleDescriptions','getAttribute','handleListReversedCommand','*Format:*\x20set\x20start\x20index\x20to\x20%0','locale','styles','map','registerDescriptionCallback','parent'];(function(_0x122d72,_0x971b14){const _0x17167f=function(_0x1af5e0){while(--_0x1af5e0){_0x122d72['push'](_0x122d72['shift']());}};_0x17167f(++_0x971b14);}(_0x971b,0xb0));const _0x1716=function(_0x122d72,_0x971b14){_0x122d72=_0x122d72-0x0;let _0x17167f=_0x971b[_0x122d72];return _0x17167f;};import{Plugin as _0x3b36b1}from'ckeditor5/src/core';import{getTranslation as _0x5ca6dd}from'../utils/common-translations';export default class et extends _0x3b36b1{[_0x1716('0x19')](){if(!this[_0x1716('0x26')][_0x1716('0x23')]['has'](_0x1716('0x11')))return;const _0x2b96bf=this['editor'][_0x1716('0x22')]['get'](_0x1716('0x1')),_0xff7cd6=this['editor'][_0x1716('0x23')][_0x1716('0x20')](_0x1716('0x16'));_0x2b96bf[_0x1716('0xc')]&&_0xff7cd6['enableCommand'](_0x1716('0x35'),this['handleListStyleCommand'][_0x1716('0x2d')](this)),_0x2b96bf['reversed']&&_0xff7cd6[_0x1716('0x10')]('listReversed',this[_0x1716('0x9')][_0x1716('0x2d')](this)),_0x2b96bf['startIndex']&&_0xff7cd6['enableCommand'](_0x1716('0x3d'),this[_0x1716('0x24')]['bind'](this)),_0xff7cd6[_0x1716('0x21')][_0x1716('0xe')](this['handleDescriptions'][_0x1716('0x2d')](this));}[_0x1716('0x27')](_0x1f03aa,_0x3d3e39={}){const _0xba6f38=this[_0x1716('0x26')][_0x1716('0x23')][_0x1716('0x20')](_0x1716('0x16')),_0x50bad6=this[_0x1716('0x2a')]();this[_0x1716('0x26')][_0x1716('0x13')][_0x1716('0x12')](()=>{_0xba6f38[_0x1716('0x1c')](_0x50bad6,{'commandName':_0x1716('0x35'),'commandParams':[{'type':_0x3d3e39[_0x1716('0x38')]}],'formatGroupId':_0x1716('0x35')});});}['handleListReversedCommand'](_0x1fedba,_0x3c5e8d={}){const _0x28e796=this['editor'][_0x1716('0x23')][_0x1716('0x20')](_0x1716('0x16')),_0x60f2f1=this[_0x1716('0x34')](_0x175b4b=>_0x175b4b['is'](_0x1716('0x33'),_0x1716('0x25'))&&_0x1716('0x1f')===_0x175b4b['getAttribute']('listType'));if(_0x60f2f1[_0x1716('0x3e')]<0x1)return;const _0x4c7728=_0x60f2f1[_0x1716('0xd')](_0x2793f8=>this[_0x1716('0x26')][_0x1716('0x13')][_0x1716('0x39')](this['editor'][_0x1716('0x13')]['createPositionAt'](_0x2793f8,'before'),this['editor']['model']['createPositionAt'](_0x2793f8,0x0)));this[_0x1716('0x26')][_0x1716('0x13')][_0x1716('0x12')](()=>{_0x28e796[_0x1716('0x1c')](_0x4c7728,{'commandName':_0x1716('0x2f'),'commandParams':[{'reversed':_0x3c5e8d[_0x1716('0x30')]}],'formatGroupId':_0x1716('0x2f')});});}[_0x1716('0x24')](_0x36e4a0,_0x5aa169={}){const _0x18935a=this[_0x1716('0x26')]['plugins'][_0x1716('0x20')](_0x1716('0x16')),_0x15ef17=this[_0x1716('0x34')](_0x5a609e=>_0x5a609e['is'](_0x1716('0x33'),_0x1716('0x25'))&&_0x1716('0x1f')===_0x5a609e[_0x1716('0x8')](_0x1716('0x37')));if(_0x15ef17[_0x1716('0x3e')]<0x1)return;const _0x1b8397=_0x15ef17[_0x1716('0xd')](_0x1b9e84=>this[_0x1716('0x26')][_0x1716('0x13')][_0x1716('0x39')](this['editor'][_0x1716('0x13')][_0x1716('0x2e')](_0x1b9e84,_0x1716('0x28')),this['editor'][_0x1716('0x13')][_0x1716('0x2e')](_0x1b9e84,0x0)));this[_0x1716('0x26')][_0x1716('0x13')]['change'](()=>{_0x18935a[_0x1716('0x1c')](_0x1b8397,{'commandName':_0x1716('0x3d'),'commandParams':[{'startIndex':_0x5aa169[_0x1716('0x2c')]}],'formatGroupId':_0x1716('0x3d')});});}[_0x1716('0x7')](_0x38df81){const _0x4bae46=this[_0x1716('0x26')][_0x1716('0xb')],{data:_0x32fd34}=_0x38df81;if(!_0x32fd34)return;let _0x1509b7,_0xb7c23f;switch(_0x32fd34[_0x1716('0x36')]){case _0x1716('0x35'):_0x1509b7=_0x1716('0x3b'),_0xb7c23f={'type':'format','content':_0x5ca6dd(_0x4bae46,_0x1509b7,_0x5ca6dd(_0x4bae46,this[_0x1716('0x31')](_0x32fd34[_0x1716('0x3')][0x0][_0x1716('0x38')])))};break;case'listReversed':_0x1509b7=_0x32fd34['commandParams'][0x0][_0x1716('0x30')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x1716('0x1e'),_0xb7c23f={'type':_0x1716('0x2b'),'content':_0x5ca6dd(_0x4bae46,_0x1509b7)};break;case'listStart':_0x1509b7=_0x1716('0xa'),_0xb7c23f={'type':_0x1716('0x2b'),'content':_0x5ca6dd(_0x4bae46,_0x1509b7,_0x32fd34[_0x1716('0x3')][0x0]['startIndex'])};}return _0xb7c23f;}[_0x1716('0x2a')](){var _0x5669cb,_0x5990b0,_0x35be3a,_0x29dfab;const _0x5cfc89=this[_0x1716('0x26')][_0x1716('0x23')][_0x1716('0x20')](_0x1716('0x15'));let _0x59bb0c=Array[_0x1716('0x3f')](this[_0x1716('0x26')][_0x1716('0x13')][_0x1716('0x1b')]['selection'][_0x1716('0x17')]());return(null===(_0x5669cb=_0x59bb0c[0x0])||void 0x0===_0x5669cb?void 0x0:_0x5669cb['is']('element',_0x1716('0x25')))&&_0x59bb0c['unshift'](..._0x5cfc89[_0x1716('0x1a')](this[_0x1716('0x26')][_0x1716('0x13')][_0x1716('0x1b')][_0x1716('0x3c')][_0x1716('0x4')](),_0x1716('0x0'))),(null===(_0x5990b0=_0x59bb0c[_0x59bb0c[_0x1716('0x3e')]-0x1])||void 0x0===_0x5990b0?void 0x0:_0x5990b0['is'](_0x1716('0x33'),'listItem'))&&_0x59bb0c[_0x1716('0x5')](..._0x5cfc89[_0x1716('0x1a')](this[_0x1716('0x26')][_0x1716('0x13')][_0x1716('0x1b')]['selection'][_0x1716('0x2')](),_0x1716('0x18'))),_0x59bb0c=[...new Set(_0x59bb0c)],(null===(_0x29dfab=null===(_0x35be3a=this['editor'][_0x1716('0x13')][_0x1716('0x1b')]['selection'][_0x1716('0x4')]())||void 0x0===_0x35be3a?void 0x0:_0x35be3a[_0x1716('0xf')])||void 0x0===_0x29dfab?void 0x0:_0x29dfab['is'](_0x1716('0x33'),_0x1716('0x25')))&&(_0x59bb0c=_0x59bb0c[_0x1716('0x14')](_0x4b969b=>_0x4b969b['is'](_0x1716('0x33'),_0x1716('0x25')))),_0x59bb0c;}[_0x1716('0x34')](_0x47dac7){const _0x49372d=this[_0x1716('0x26')]['plugins'][_0x1716('0x20')](_0x1716('0x15'));let _0x33749d=Array[_0x1716('0x3f')](this[_0x1716('0x26')]['model'][_0x1716('0x1b')][_0x1716('0x3c')][_0x1716('0x17')]())['filter'](_0x47dac7)[_0x1716('0xd')](_0x286874=>{const _0x4493e3=this[_0x1716('0x26')][_0x1716('0x13')]['createPositionAt'](_0x286874,0x0);return[..._0x49372d['getSiblingNodes'](_0x4493e3,_0x1716('0x0')),..._0x49372d[_0x1716('0x1a')](_0x4493e3,_0x1716('0x18'))];})['flat']();return _0x33749d=[...new Set(_0x33749d)],_0x33749d;}[_0x1716('0x31')](_0x2f2fbf){return _0x1716('0x6')+this[_0x1716('0x26')][_0x1716('0x23')]['get'](_0x1716('0x15'))[_0x1716('0x32')](_0x2f2fbf)[_0x1716('0x1d')]()+_0x1716('0x29')+_0x2f2fbf[_0x1716('0x1d')]()[_0x1716('0x3a')](/-/g,'_');}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/mediaembed
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for {@link module:media-embed/mediaembed~MediaEmbed media embed feature}.
7
+ */
8
+ export default class TrackChangesMediaEmbed extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5825=['_descriptionFactory','plugins','downcastDispatcher','editor','has','registerElementLabel','options','locale','MediaEmbedEditing','showSuggestionHighlights','attribute:url:media','media','ELEMENT_MEDIA','afterInit','data','high','mediaEmbed','TrackChangesEditing','for','div','dataDowncast','stop'];(function(_0x25618a,_0x5825ed){const _0x16fd48=function(_0x7cb824){while(--_0x7cb824){_0x25618a['push'](_0x25618a['shift']());}};_0x16fd48(++_0x5825ed);}(_0x5825,0x101));const _0x16fd=function(_0x25618a,_0x5825ed){_0x25618a=_0x25618a-0x0;let _0x16fd48=_0x5825[_0x25618a];return _0x16fd48;};import{Plugin as _0x293430}from'ckeditor5/src/core';import{getTranslation as _0x2cd137}from'../utils/common-translations';export default class rt extends _0x293430{[_0x16fd('0x14')](){const _0x4dfaf7=this[_0x16fd('0xa')];if(!_0x4dfaf7[_0x16fd('0x8')][_0x16fd('0xb')](_0x16fd('0xf')))return;const _0x5f517b=_0x4dfaf7['plugins']['get'](_0x16fd('0x2')),_0x39203b=_0x4dfaf7[_0x16fd('0xe')];_0x5f517b['enableCommand'](_0x16fd('0x1')),_0x5f517b[_0x16fd('0x7')][_0x16fd('0xc')](_0x16fd('0x12'),_0x65aedd=>_0x2cd137(_0x39203b,_0x16fd('0x13'),_0x65aedd)),_0x4dfaf7['conversion'][_0x16fd('0x3')](_0x16fd('0x5'))['elementToElement']({'model':_0x16fd('0x12'),'view':(_0x3e13cd,{writer:_0x2fad86,options:_0x1f46af})=>{if(_0x1f46af[_0x16fd('0x10')])return _0x2fad86['createEmptyElement'](_0x16fd('0x4'));},'converterPriority':_0x16fd('0x0')}),_0x4dfaf7[_0x16fd('0x15')][_0x16fd('0x9')]['on'](_0x16fd('0x11'),(_0x19e892,_0x14ae63,_0x12f0d8)=>{_0x12f0d8[_0x16fd('0xd')][_0x16fd('0x10')]&&_0x19e892[_0x16fd('0x6')]();},{'priority':_0x16fd('0x0')});}}
23
+ const _0x2eb9=['high','stop','options','createEmptyElement','conversion','afterInit','locale','for','get','media','MediaEmbedEditing','div','mediaEmbed','dataDowncast','registerElementLabel','attribute:url:media','_descriptionFactory','plugins','ELEMENT_MEDIA','editor','data'];(function(_0x3e4e7c,_0x2eb956){const _0x3df2a5=function(_0x787962){while(--_0x787962){_0x3e4e7c['push'](_0x3e4e7c['shift']());}};_0x3df2a5(++_0x2eb956);}(_0x2eb9,0x169));const _0x3df2=function(_0x3e4e7c,_0x2eb956){_0x3e4e7c=_0x3e4e7c-0x0;let _0x3df2a5=_0x2eb9[_0x3e4e7c];return _0x3df2a5;};import{Plugin as _0x567163}from'ckeditor5/src/core';import{getTranslation as _0x5f27c6}from'../utils/common-translations';export default class nt extends _0x567163{[_0x3df2('0x1')](){const _0x4761a4=this[_0x3df2('0xf')];if(!_0x4761a4[_0x3df2('0xd')]['has'](_0x3df2('0x6')))return;const _0x127acc=_0x4761a4[_0x3df2('0xd')][_0x3df2('0x4')]('TrackChangesEditing'),_0x3a1b12=_0x4761a4[_0x3df2('0x2')];_0x127acc['enableCommand'](_0x3df2('0x8')),_0x127acc[_0x3df2('0xc')][_0x3df2('0xa')](_0x3df2('0x5'),_0x53694d=>_0x5f27c6(_0x3a1b12,_0x3df2('0xe'),_0x53694d)),_0x4761a4[_0x3df2('0x0')][_0x3df2('0x3')](_0x3df2('0x9'))['elementToElement']({'model':'media','view':(_0x5b2cc6,{writer:_0x29838c,options:_0x12ec94})=>{if(_0x12ec94['showSuggestionHighlights'])return _0x29838c[_0x3df2('0x14')](_0x3df2('0x7'));},'converterPriority':_0x3df2('0x11')}),_0x4761a4[_0x3df2('0x10')]['downcastDispatcher']['on'](_0x3df2('0xb'),(_0x4c0bf0,_0x54d984,_0x32ae62)=>{_0x32ae62[_0x3df2('0x13')]['showSuggestionHighlights']&&_0x4c0bf0[_0x3df2('0x12')]();},{'priority':_0x3df2('0x11')});}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/mention
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for mention feature.
7
+ */
8
+ export default class TrackChangesMention extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c1b=['plugins','MentionEditing','get','has','enableCommand','mention','afterInit','TrackChangesEditing'];(function(_0x51429c,_0x2c1b45){const _0x4f348d=function(_0x51f77e){while(--_0x51f77e){_0x51429c['push'](_0x51429c['shift']());}};_0x4f348d(++_0x2c1b45);}(_0x2c1b,0x1b9));const _0x4f34=function(_0x51429c,_0x2c1b45){_0x51429c=_0x51429c-0x0;let _0x4f348d=_0x2c1b[_0x51429c];return _0x4f348d;};import{Plugin as _0x37b14d}from'ckeditor5/src/core';export default class at extends _0x37b14d{[_0x4f34('0x5')](){const _0x57d2bb=this['editor'];_0x57d2bb['plugins'][_0x4f34('0x2')](_0x4f34('0x0'))&&_0x57d2bb[_0x4f34('0x7')][_0x4f34('0x1')](_0x4f34('0x6'))[_0x4f34('0x3')](_0x4f34('0x4'));}}
23
+ const _0x2ef8=['has','mention','MentionEditing','enableCommand','TrackChangesEditing','plugins','afterInit'];(function(_0x478ca4,_0x2ef895){const _0x73f527=function(_0xa83878){while(--_0xa83878){_0x478ca4['push'](_0x478ca4['shift']());}};_0x73f527(++_0x2ef895);}(_0x2ef8,0x190));const _0x73f5=function(_0x478ca4,_0x2ef895){_0x478ca4=_0x478ca4-0x0;let _0x73f527=_0x2ef8[_0x478ca4];return _0x73f527;};import{Plugin as _0x2a4fcf}from'ckeditor5/src/core';export default class ot extends _0x2a4fcf{[_0x73f5('0x5')](){const _0x219f4a=this['editor'];_0x219f4a[_0x73f5('0x4')][_0x73f5('0x6')](_0x73f5('0x1'))&&_0x219f4a['plugins']['get'](_0x73f5('0x3'))[_0x73f5('0x2')](_0x73f5('0x0'));}}