@ckeditor/ckeditor5-track-changes 36.0.1 → 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 +20 -5
  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 _0x48e4=['plugins','filter','refresh','toPrevious','next','isOwn','title','subType','ImageBlockEditing','isInlineImage','afterInit','getClosestSelectedImageElement','suggestion','editor','markDeletion','TrackChangesEditing','*Remove\x20image\x20text\x20alternative*','discard','isBefore','getFirstRange','newValue','newRange','registerCustomCallback','Inline\x20image\x20to\x20block\x20image','ImageStyleEditing','resizeImage','from','getSuggestions','head','registerDescriptionCallback','has','fromPosition','isEqual','imageStylePreApply','value','Users','alt','findIndex','forceDefaultExecution','getChangedMarkers','isBlockImage','ImageTextAlternativeEditing','element','ELEMENT_CAPTION','getContainedElement','imageTypeInline','toLowerCase','createRange','getAttribute','*Reset\x20image\x20width*','getSuggestionCallback','normalizedStyles','end','createRangeOn','isInContent','ImageUtils','imageStylePostApply','width','ImageCaptionEditing','FORMAT_SIDE_IMAGE','markInlineFormat','convertBlockImageToInline','commandName','isIntersecting','type','Block\x20image\x20to\x20inline\x20image','addObject','format','find','commandReversedParams','imageStyle','accept','imageTypeBlock','markInsertion','get','ELEMENT_IMAGE','ImageUploadEditing','markBlockFormat','imageCaption','chain','commandParams','*Format:*\x20%0','schema','toNext','_suggestionFactory','isCollapsed','formatBlock','getSuggestion','start','join','discardSuggestion','previous','ImageCaptionUtils','_splitMarkerName','detach','author','formatInline','getNearestSelectionRange','registerElementLabel','registerPostFixer','backward','convertInlineImageToBlock','locale','ELEMENT_INLINE_IMAGE','enableCommand','document','insertImage','insertion','change','selection','*Set\x20image\x20text\x20alternative:*\x20%0','ImageEditing','imageTextAlternative','_descriptionFactory','length','_findSuggestions','imageBlock','model','getCaptionFromImageModelElement','imageInline','commands','forEach','caption'];(function(_0x53dd5f,_0x48e4ef){const _0x433b33=function(_0x4874f6){while(--_0x4874f6){_0x53dd5f['push'](_0x53dd5f['shift']());}};_0x433b33(++_0x48e4ef);}(_0x48e4,0x1c4));const _0x433b=function(_0x53dd5f,_0x48e4ef){_0x53dd5f=_0x53dd5f-0x0;let _0x433b33=_0x48e4[_0x53dd5f];return _0x433b33;};import{Plugin as _0x117e85}from'ckeditor5/src/core';import{LivePosition as _0x101b42}from'ckeditor5/src/engine';import{uid as _0xed9a4c}from'ckeditor5/src/utils';import{getTranslation as _0x3f13ba}from'../utils/common-translations';export default class Y extends _0x117e85{[_0x433b('0x32')](){const _0x12a1bf=this[_0x433b('0x35')];if(!_0x12a1bf['plugins'][_0x433b('0x46')](_0x433b('0x1c')))return;const _0x5b4c93=_0x12a1bf['plugins'][_0x433b('0x72')](_0x433b('0x37')),_0x55c2f1=_0x12a1bf['plugins'][_0x433b('0x72')](_0x433b('0x5f')),_0xe7ad87={},_0x17c7d6=_0x12a1bf[_0x433b('0x13')];if(_0x5b4c93[_0x433b('0x15')](_0x433b('0x17')),_0x5b4c93[_0x433b('0x1e')][_0x433b('0xf')](_0x433b('0x21'),_0x384863=>_0x3f13ba(_0x17c7d6,_0x433b('0x73'),_0x384863)),_0x5b4c93[_0x433b('0x1e')]['registerElementLabel'](_0x433b('0x24'),_0x56ca5f=>_0x3f13ba(_0x17c7d6,_0x433b('0x14'),_0x56ca5f)),_0x5b4c93[_0x433b('0x1e')][_0x433b('0xf')](_0x433b('0x27'),()=>_0x3f13ba(_0x17c7d6,_0x433b('0x53'))),_0x12a1bf[_0x433b('0x28')]['has'](_0x433b('0x74'))&&_0x5b4c93['enableCommand']('uploadImage'),_0x12a1bf[_0x433b('0x28')][_0x433b('0x46')](_0x433b('0x30'))&&_0x12a1bf[_0x433b('0x28')]['has']('ImageInlineEditing')&&(_0x5b4c93[_0x433b('0x15')](_0x433b('0x55'),(_0x1475f5,_0x1a0d0c)=>{const _0x170684=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')][_0x433b('0x1a')]);_0x12a1bf[_0x433b('0x22')][_0x433b('0x19')](()=>{_0x5b4c93[_0x433b('0x75')](_0x170684,{'commandName':_0x433b('0x55'),'commandParams':[_0x1a0d0c]},[],_0x433b('0x65'));});}),_0x5b4c93[_0x433b('0x15')](_0x433b('0x70'),(_0x1b886a,_0x1eed4a)=>{_0x12a1bf[_0x433b('0x22')]['change'](_0x9d664e=>{let _0x25a268=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')][_0x433b('0x1a')]),_0x1869d0=_0x9d664e[_0x433b('0x5d')](_0x25a268);const _0x11658f=_0x101b42[_0x433b('0x47')](_0x1869d0[_0x433b('0x5')],_0x433b('0x2b')),_0x2d96b5=_0x101b42[_0x433b('0x47')](_0x1869d0[_0x433b('0x5c')],_0x433b('0x0'));_0x5b4c93[_0x433b('0x4e')](()=>_0x1b886a(_0x1eed4a)),_0x25a268=_0x55c2f1['getClosestSelectedImageElement'](_0x12a1bf[_0x433b('0x22')]['document']['selection']),_0x1869d0=_0x9d664e[_0x433b('0x5d')](_0x25a268);const _0x57f8d2=_0x9d664e[_0x433b('0x57')](_0x11658f,_0x2d96b5);_0x11658f[_0x433b('0xb')](),_0x2d96b5[_0x433b('0xb')](),_0x5b4c93[_0x433b('0x75')](_0x25a268,{'commandName':_0x433b('0x55')},[],'convertInlineImageToBlock'),_0x57f8d2[_0x433b('0x5')]['isBefore'](_0x1869d0['start'])&&_0x5b4c93[_0x433b('0x71')](_0x9d664e[_0x433b('0x57')](_0x57f8d2[_0x433b('0x5')],_0x1869d0[_0x433b('0x5')]),_0x433b('0x12')),_0x1869d0[_0x433b('0x5c')][_0x433b('0x3a')](_0x57f8d2['end'])&&_0x5b4c93[_0x433b('0x71')](_0x9d664e[_0x433b('0x57')](_0x1869d0[_0x433b('0x5c')],_0x57f8d2['end']),_0x433b('0x12'));});}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x3'),'convertInlineImageToBlock',_0x433b('0x6'),()=>{}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x3'),_0x433b('0x12'),'accept',()=>{}),_0x5b4c93['_suggestionFactory'][_0x433b('0x3e')](_0x433b('0x3'),_0x433b('0x12'),'discard',_0x5b4c93[_0x433b('0x1')][_0x433b('0x5a')](_0x433b('0x3'),'','accept')),_0x5b4c93[_0x433b('0x1')]['registerCustomCallback'](_0x433b('0x18'),_0x433b('0x12'),'join',()=>{}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x18'),_0x433b('0x12'),_0x433b('0x39'),([_0x3b9913])=>{const _0x483c2a=_0x5b4c93['_suggestionFactory']['getSuggestionCallback'](_0x433b('0x18'),'',_0x433b('0x39'));let _0x48ec5a=_0x3b9913[_0x433b('0x5')],_0x212f33=_0x3b9913[_0x433b('0x5c')];const _0x35eab8=_0x12a1bf[_0x433b('0x22')][_0x433b('0x7a')]['getNearestSelectionRange'](_0x48ec5a,_0x433b('0x11')),_0x361a54=_0x12a1bf[_0x433b('0x22')][_0x433b('0x7a')][_0x433b('0xe')](_0x212f33,'forward');_0x35eab8['isCollapsed']&&(_0x48ec5a=_0x35eab8[_0x433b('0x5')]),_0x361a54[_0x433b('0x2')]&&(_0x212f33=_0x361a54[_0x433b('0x5c')]),_0x483c2a([_0x12a1bf[_0x433b('0x22')][_0x433b('0x57')](_0x48ec5a,_0x212f33)]);}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x3'),'convertInlineImageToBlock',_0x433b('0x77'),_0x1c91a5),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')]('insertion',_0x433b('0x12'),_0x433b('0x77'),_0x1c91a5)),_0x12a1bf[_0x433b('0x28')][_0x433b('0x46')](_0x433b('0x62'))&&(_0x5b4c93['enableCommand']('toggleImageCaption',(_0x56c1da,_0x5d717a)=>{const _0x1fcaf3=_0x12a1bf['plugins']['get'](_0x433b('0x9'));let _0x492242=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')]['document'][_0x433b('0x1a')]),_0x4f5cb0=_0x1fcaf3['getCaptionFromImageModelElement'](_0x492242);_0x12a1bf['model'][_0x433b('0x19')](()=>{if(_0x4f5cb0)return void _0x5b4c93[_0x433b('0x36')](_0x12a1bf['model'][_0x433b('0x5d')](_0x4f5cb0));const _0x30554a=_0x55c2f1['isBlockImage'](_0x492242);_0x56c1da(_0x5d717a),_0x492242=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')][_0x433b('0x1a')]),_0x4f5cb0=_0x1fcaf3[_0x433b('0x23')](_0x492242),_0x5b4c93['markInsertion'](_0x12a1bf[_0x433b('0x22')]['createRangeOn'](_0x4f5cb0),_0x30554a?null:_0x433b('0x76'));});}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x18'),'imageCaption',_0x433b('0x77'),_0x1c91a5)),_0x12a1bf[_0x433b('0x28')][_0x433b('0x46')](_0x433b('0x40'))){_0x5b4c93[_0x433b('0x15')](_0x433b('0x6e'),(_0x58c2d1,_0x486a80)=>{const _0x29f2da=_0x12a1bf[_0x433b('0x28')][_0x433b('0x72')](_0x433b('0x4b'))['me'],_0x1a9296=_0x12a1bf[_0x433b('0x25')][_0x433b('0x72')](_0x433b('0x6e'));let _0x424ed7=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')]['selection']),_0x1a0767=_0x12a1bf[_0x433b('0x22')][_0x433b('0x5d')](_0x424ed7),_0x5eed12=_0x1a9296['value'];if(_0x5eed12==_0x486a80['value'])return;const _0x5df3ab={'commandName':_0x433b('0x6e'),'commandParams':[_0x486a80],'formatGroupId':_0xed9a4c()};_0x12a1bf[_0x433b('0x22')]['change'](()=>{if(_0x5b4c93[_0x433b('0x43')]()[_0x433b('0x29')](_0xb987a7=>_0xb987a7['isInContent']&&_0x29f2da==_0xb987a7[_0x433b('0xc')]&&('formatBlock'==_0xb987a7[_0x433b('0x68')]||_0x433b('0xd')==_0xb987a7['type'])&&(_0x433b('0x49')==_0xb987a7[_0x433b('0x2f')]||_0x433b('0x60')==_0xb987a7[_0x433b('0x2f')])&&_0xb987a7['getFirstRange']()['isEqual'](_0x1a0767))[_0x433b('0x26')](_0xe4f11b=>_0x5b4c93[_0x433b('0x7')](_0xe4f11b[_0x433b('0x44')])),_0x424ed7=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')][_0x433b('0x1a')]),_0x1a0767=_0x12a1bf[_0x433b('0x22')][_0x433b('0x5d')](_0x424ed7),_0x1a9296['refresh'](),_0x12a1bf[_0x433b('0x25')][_0x433b('0x72')](_0x433b('0x55'))[_0x433b('0x2a')](),_0x12a1bf[_0x433b('0x25')][_0x433b('0x72')](_0x433b('0x70'))[_0x433b('0x2a')](),_0x5eed12=_0x1a9296[_0x433b('0x4a')],_0x5eed12!=_0x486a80['value'])return _0x55c2f1[_0x433b('0x31')](_0x424ed7)&&_0x1a9296['shouldConvertImageType'](_0x486a80[_0x433b('0x4a')],_0x424ed7)?(_0x58c2d1(_0x486a80),_0x424ed7=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')][_0x433b('0x1a')]),void _0x5b4c93[_0x433b('0x75')](_0x424ed7,{..._0x5df3ab,'commandReversedParams':[{'value':_0x5eed12||null}]},[],'imageStylePreApply')):void(_0x55c2f1[_0x433b('0x50')](_0x424ed7)?_0x5b4c93[_0x433b('0x75')](_0x424ed7,_0x5df3ab,[],_0x433b('0x60')):_0x5b4c93[_0x433b('0x64')](_0x1a0767,_0x5df3ab,_0x433b('0x60')));});});for(const _0x1123f6 of _0x12a1bf[_0x433b('0x28')]['get']('ImageStyleEditing')[_0x433b('0x5b')])_0xe7ad87[_0x1123f6['name']]=_0x1123f6[_0x433b('0x2e')][_0x433b('0x56')]();_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x3'),_0x433b('0x49'),_0x433b('0x6'),()=>{}),_0x5b4c93['_suggestionFactory'][_0x433b('0x3e')]('formatBlock','imageStylePostApply',_0x433b('0x6'),()=>{}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')]('formatInline',_0x433b('0x60'),_0x433b('0x6'),()=>{}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x3'),'imageStylePreApply',_0x433b('0x6f'),()=>{}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x3'),_0x433b('0x49'),'discard',(_0x32a5c4,_0x5c7da7)=>{_0x5b4c93[_0x433b('0x1')][_0x433b('0x5a')](_0x433b('0x3'),'',_0x433b('0x6f'))(_0x32a5c4,{'commandName':_0x5c7da7[_0x433b('0x66')],'commandParams':_0x5c7da7[_0x433b('0x6d')]});}),_0x5b4c93[_0x433b('0x1')]['registerCustomCallback'](_0x433b('0x3'),_0x433b('0x49'),'chain',_0x1c91a5);}const _0x539b73=[{'type':_0x433b('0x3'),'subType':_0x433b('0x49')},{'type':_0x433b('0x18'),'subType':'imageCaption'},{'type':_0x433b('0x3'),'subType':_0x433b('0x12')},{'type':_0x433b('0x18'),'subType':_0x433b('0x12')}];function _0x20e209(_0x2a992b,_0x3bbb34){const _0x279def=_0x539b73['findIndex'](({type:_0x109e16,subType:_0x1c6838})=>_0x2a992b[_0x433b('0x68')]==_0x109e16&&_0x2a992b['subType']==_0x1c6838),_0x461250=_0x539b73[_0x433b('0x4d')](({type:_0x5b6886,subType:_0x5f0fa7})=>_0x3bbb34['type']==_0x5b6886&&_0x3bbb34['subType']==_0x5f0fa7);if(_0x279def<0x0||_0x461250<0x0)return!0x1;const _0x1ea843=_0x2a992b[_0x433b('0x3b')](),_0x5bebf4=_0x3bbb34[_0x433b('0x3b')]();if((0x0==_0x279def||0x1==_0x279def)&&0x2==_0x461250&&_0x1ea843[_0x433b('0x67')](_0x5bebf4))return!0x0;if(0x2==_0x279def&&0x3==_0x461250){const _0x5b6065=_0x5b4c93[_0x433b('0x20')](_0x1ea843,'insertion')[_0x433b('0x29')](({suggestion:_0x2cb73c,meta:_0x2f3e84})=>_0x2f3e84[_0x433b('0x2d')]&&_0x433b('0x12')==_0x2cb73c[_0x433b('0x2f')]);if(_0x5b6065[_0x433b('0x1f')]>0x1&&_0x5bebf4[_0x433b('0x5c')][_0x433b('0x48')](_0x1ea843['start']))return!0x0;if(0x1==_0x5b6065[_0x433b('0x1f')]&&(_0x1ea843[_0x433b('0x5')][_0x433b('0x48')](_0x5bebf4[_0x433b('0x5c')])||_0x1ea843[_0x433b('0x5c')][_0x433b('0x48')](_0x5bebf4[_0x433b('0x5')])))return!0x0;}if(0x3==_0x279def&&0x3==_0x461250&&_0x1ea843[_0x433b('0x5')][_0x433b('0x3a')](_0x5bebf4[_0x433b('0x5')])){const _0x54230a=_0x1ea843[_0x433b('0x5c')]['nodeAfter'],_0x367df6=_0x5bebf4[_0x433b('0x5')]['nodeBefore'];return _0x55c2f1[_0x433b('0x50')](_0x54230a)&&_0x54230a===_0x367df6;}return!0x1;}function _0x1c91a5(_0x5b110c,_0x48eadf){return _0x20e209(_0x5b110c,_0x48eadf)?[_0x5b110c,_0x48eadf]:_0x20e209(_0x48eadf,_0x5b110c)?[_0x48eadf,_0x5b110c]:null;}_0x12a1bf[_0x433b('0x22')]['document'][_0x433b('0x10')](()=>{let _0x4cd508=!0x1;const _0x32267a=Array[_0x433b('0x42')](_0x12a1bf['model'][_0x433b('0x16')]['differ'][_0x433b('0x4f')]());for(const {name:_0xd8ab7d,data:_0x2ec28a}of _0x32267a){const {group:_0x2dffe5,type:_0x26486c,subType:_0xb2131d,id:_0x175429}=_0x5b4c93[_0x433b('0xa')](_0xd8ab7d);if(_0x433b('0x34')==_0x2dffe5&&_0x5b4c93['hasSuggestion'](_0x175429)){if(_0x433b('0x3')==_0x26486c&&('imageStylePreApply'==_0xb2131d||'imageStylePostApply'==_0xb2131d)){const _0x55a143=_0x5b4c93[_0x433b('0x4')](_0x175429);if(_0x2ec28a[_0x433b('0x3d')]){const _0x54b48e=_0x55a143[_0x433b('0x3b')]()[_0x433b('0x54')]();if(_0x55c2f1[_0x433b('0x50')](_0x54b48e))continue;_0x5b4c93[_0x433b('0x7')](_0x55a143),_0x4cd508=!0x0;}}if(_0x433b('0x18')==_0x26486c&&_0x433b('0x76')==_0xb2131d&&!_0x2ec28a[_0x433b('0x3d')]){const _0x308be4=_0x5b4c93[_0x433b('0x4')](_0x175429);_0x308be4['next']&&_0x308be4[_0x433b('0x2c')][_0x433b('0x5e')]&&(_0x5b4c93['discardSuggestion'](_0x308be4[_0x433b('0x2c')]),_0x4cd508=!0x0);}}}return _0x4cd508;}),_0x12a1bf[_0x433b('0x28')]['has']('ImageResize')&&_0x5b4c93[_0x433b('0x15')](_0x433b('0x41'),(_0x319d1a,_0x16e1e0)=>{const _0x458899=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')][_0x433b('0x1a')]);_0x458899[_0x433b('0x58')](_0x433b('0x61'))!=_0x16e1e0[_0x433b('0x61')]&&_0x12a1bf[_0x433b('0x22')]['change'](()=>{_0x5b4c93[_0x433b('0x75')](_0x458899,{'commandName':'resizeImage','commandParams':[_0x16e1e0]});});}),_0x12a1bf[_0x433b('0x28')][_0x433b('0x46')](_0x433b('0x51'))&&_0x5b4c93[_0x433b('0x15')]('imageTextAlternative',(_0x46fc71,_0x19adb5)=>{const _0x1a533b=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')][_0x433b('0x1a')]);(_0x1a533b['hasAttribute']('alt')?_0x1a533b[_0x433b('0x58')](_0x433b('0x4c')):'')!=_0x19adb5[_0x433b('0x3c')]&&_0x12a1bf['model'][_0x433b('0x19')](()=>{_0x5b4c93['markBlockFormat'](_0x1a533b,{'commandName':_0x433b('0x1d'),'commandParams':[_0x19adb5]});});}),_0x5b4c93[_0x433b('0x1e')][_0x433b('0x45')](_0x276f1d=>{if(!!_0x539b73[_0x433b('0x6c')](({type:_0x1feb44,subType:_0x11ec94})=>_0x276f1d['type']==_0x1feb44&&_0x276f1d[_0x433b('0x2f')]==_0x11ec94))return _0x276f1d[_0x433b('0x8')]?{}:void 0x0;}),_0x5b4c93[_0x433b('0x1e')][_0x433b('0x45')](_0x3fea2d=>{if(_0x433b('0x18')==_0x3fea2d['type']||'deletion'==_0x3fea2d[_0x433b('0x68')]){const _0x617fe5=_0x3fea2d['getContainedElement']();if(_0x617fe5&&_0x617fe5['is'](_0x433b('0x52'),_0x433b('0x27')))return{'type':_0x433b('0x18')==_0x3fea2d[_0x433b('0x68')]?_0x433b('0x6a'):'removeObject','element':_0x617fe5,'quantity':0x1};}}),_0x5b4c93['_descriptionFactory'][_0x433b('0x45')](_0x29d310=>_0x433b('0x3')==_0x29d310['type']&&_0x433b('0x12')==_0x29d310['subType']?{'type':_0x433b('0x6b'),'content':_0x433b('0x3f')}:_0x433b('0x3')==_0x29d310['type']&&_0x433b('0x65')==_0x29d310['subType']?{'type':_0x433b('0x6b'),'content':_0x433b('0x69')}:void 0x0),_0x5b4c93[_0x433b('0x1e')]['registerDescriptionCallback'](_0x37c8a2=>{const {data:_0x3bd5cd}=_0x37c8a2;if(_0x3bd5cd){if('imageStyle'==_0x3bd5cd[_0x433b('0x66')]){const _0x750add=_0x3bd5cd[_0x433b('0x78')][0x0][_0x433b('0x4a')];return _0xb17248('side'===_0x750add?_0x3f13ba(_0x17c7d6,_0x433b('0x63')):_0xe7ad87[_0x750add]||_0x750add);}if('imageTextAlternative'==_0x3bd5cd[_0x433b('0x66')]){const _0x1e59c5=_0x3bd5cd['commandParams'][0x0][_0x433b('0x3c')];return _0x1e59c5?{'type':_0x433b('0x6b'),'content':_0x3f13ba(_0x17c7d6,_0x433b('0x1b'),'\x22'+_0x1e59c5+'\x22')}:{'type':'format','content':_0x3f13ba(_0x17c7d6,_0x433b('0x38'))};}if(_0x433b('0x41')==_0x3bd5cd[_0x433b('0x66')]){const _0x5e5252=_0x3bd5cd[_0x433b('0x78')][0x0][_0x433b('0x61')];return _0x5e5252?{'type':_0x433b('0x6b'),'content':_0x3f13ba(_0x17c7d6,'*Set\x20image\x20width:*\x20%0',_0x5e5252)}:{'type':_0x433b('0x6b'),'content':_0x3f13ba(_0x17c7d6,_0x433b('0x59'))};}}function _0xb17248(_0x228e6d){return{'type':_0x433b('0x6b'),'content':_0x3f13ba(_0x17c7d6,_0x433b('0x79'),_0x228e6d)};}});}}
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 _0x295f=['discard','getSuggestionCallback','handleReplaceImageCommand','format','plugins','commandName','change','author','getSelectedElement','ImageEditing','getSuggestions','TrackChangesEditing','locale','*Format:*\x20replace\x20image\x20URL','data','_descriptionFactory','markBlockFormat','handleSuggestionDescription','accept','_suggestionFactory','editor','document','model','selection','get','getAttribute','formatBlock','commandParams','source','replaceImageSource','enableCommand','getContainedElement','registerCustomCallback','has'];(function(_0x1e1212,_0x295fbb){const _0x39c4ff=function(_0x37401f){while(--_0x37401f){_0x1e1212['push'](_0x1e1212['shift']());}};_0x39c4ff(++_0x295fbb);}(_0x295f,0xe2));const _0x39c4=function(_0x1e1212,_0x295fbb){_0x1e1212=_0x1e1212-0x0;let _0x39c4ff=_0x295f[_0x1e1212];return _0x39c4ff;};import{Plugin as _0x18468b}from'ckeditor5/src/core';import{getTranslation as _0x659850}from'../utils/common-translations';export default class Z extends _0x18468b{['afterInit'](){if(!this[_0x39c4('0x20')]['plugins'][_0x39c4('0xb')](_0x39c4('0x15')))return;const _0x423c31=this[_0x39c4('0x20')][_0x39c4('0x10')][_0x39c4('0x2')]('TrackChangesEditing');_0x423c31[_0x39c4('0x8')](_0x39c4('0x7'),(_0x51d62d,_0x9ac45b)=>this[_0x39c4('0xe')](_0x51d62d,_0x9ac45b)),_0x423c31[_0x39c4('0x1f')][_0x39c4('0xa')](_0x39c4('0x4'),_0x39c4('0x7'),_0x39c4('0x1e'),_0x423c31['_suggestionFactory'][_0x39c4('0xd')](_0x39c4('0x4'),null,_0x39c4('0xc'))),_0x423c31[_0x39c4('0x1f')][_0x39c4('0xa')](_0x39c4('0x4'),_0x39c4('0x7'),_0x39c4('0xc'),_0x423c31[_0x39c4('0x1f')][_0x39c4('0xd')](_0x39c4('0x4'),null,_0x39c4('0x1e'))),_0x423c31[_0x39c4('0x1b')]['registerDescriptionCallback'](_0x47b1e0=>this[_0x39c4('0x1d')](_0x47b1e0));}[_0x39c4('0xe')](_0x37296c,_0x1be1c3){const _0x212d5d=this['editor'][_0x39c4('0x10')][_0x39c4('0x2')](_0x39c4('0x17')),_0x2e9b9b=this[_0x39c4('0x20')][_0x39c4('0x0')][_0x39c4('0x21')][_0x39c4('0x1')][_0x39c4('0x14')]();this[_0x39c4('0x20')][_0x39c4('0x0')][_0x39c4('0x12')](()=>{let _0x37d676=_0x2e9b9b[_0x39c4('0x3')]('src');const _0x4e1261=this[_0x39c4('0x20')]['plugins'][_0x39c4('0x2')]('Users')['me'];for(const _0x375438 of _0x212d5d[_0x39c4('0x16')]({'skipNotAttached':!0x0})){const _0x26e485=_0x375438[_0x39c4('0x9')]();if(_0x39c4('0x7')===_0x375438['subType']&&_0x26e485===_0x2e9b9b){_0x375438[_0x39c4('0x13')]!==_0x4e1261&&_0x375438[_0x39c4('0xc')](),_0x37d676=_0x375438[_0x39c4('0x1a')][_0x39c4('0x5')][0x0][_0x39c4('0x6')];break;}}_0x37296c(_0x1be1c3),_0x212d5d[_0x39c4('0x1c')](_0x2e9b9b,{'commandName':_0x39c4('0x7'),'commandParams':[{'source':_0x37d676}]},[],_0x39c4('0x7'));});}[_0x39c4('0x1d')](_0x216797){const {data:_0x3390bd}=_0x216797;if(_0x3390bd&&_0x39c4('0x7')===_0x3390bd[_0x39c4('0x11')]){const _0x113e23=_0x39c4('0x19');return{'type':_0x39c4('0xf'),'content':_0x659850(this[_0x39c4('0x20')][_0x39c4('0x18')],_0x113e23)};}}}
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 _0x5055=['value','dataInsert','enableCommand','trackChanges','lowest','TrackChangesEditing','plugins','track_changes','_handleImportedData','_trackChangesExecuted','high','get','Users','listenTo','collaboration_features','_trackChangesValueDuringImport','importWord','execute','forEach','afterInit','editor','commands','_setSuggestionData','bind'];(function(_0x15229d,_0x505505){const _0x5f1435=function(_0x226b35){while(--_0x226b35){_0x15229d['push'](_0x15229d['shift']());}};_0x5f1435(++_0x505505);}(_0x5055,0xbc));const _0x5f14=function(_0x15229d,_0x505505){_0x15229d=_0x15229d-0x0;let _0x5f1435=_0x5055[_0x15229d];return _0x5f1435;};import{Plugin as _0x202824}from'ckeditor5/src/core';import _0x380b91 from'../trackchangesediting';export default class tt extends _0x202824{constructor(_0x120b92){super(_0x120b92),this[_0x5f14('0x13')]=!0x1,this[_0x5f14('0xd')]=!0x1;}[_0x5f14('0x17')](){const _0x1c3831=this[_0x5f14('0x0')],_0x52e7a2=_0x1c3831[_0x5f14('0x1')][_0x5f14('0xf')](_0x5f14('0x14')),_0x22c04e=_0x1c3831[_0x5f14('0x1')]['get']('trackChanges');_0x52e7a2&&(_0x52e7a2['on'](_0x5f14('0x15'),(_0x25e255,[,_0xfd7451])=>{this[_0x5f14('0x13')]=_0x22c04e[_0x5f14('0x4')],_0xfd7451[_0x5f14('0x12')][_0x5f14('0xb')]=!this[_0x5f14('0x13')];},{'priority':_0x5f14('0xe')}),this[_0x5f14('0x11')](_0x52e7a2,_0x5f14('0x5'),this[_0x5f14('0xc')][_0x5f14('0x3')](this)),this[_0x5f14('0x11')](_0x52e7a2,_0x5f14('0x5'),()=>{this[_0x5f14('0xd')]&&(_0x22c04e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':_0x5f14('0x8')}),_0x1c3831[_0x5f14('0xa')][_0x5f14('0xf')](_0x5f14('0x9'))[_0x5f14('0x6')](_0x5f14('0x14')));}[_0x5f14('0xc')](_0x2e4096,_0x59c0bf){const {suggestions:_0xc9c902}=_0x59c0bf,_0x353d70=this['editor'][_0x5f14('0x1')][_0x5f14('0xf')](_0x5f14('0x7')),_0x2b1e07=_0x353d70[_0x5f14('0x4')];this[_0x5f14('0x13')]!==_0x2b1e07&&(_0x353d70['execute'](),this['_trackChangesExecuted']=!0x0),_0xc9c902&&_0xc9c902[_0x5f14('0x16')](({id:_0x3b2720,type:_0x117bb6,author:_0x18d44b,created_at:_0x5483bc})=>{const _0x2fcc7f={'id':_0x3b2720,'type':_0x117bb6,'authorId':this[_0x5f14('0x0')]['plugins']['get'](_0x5f14('0x10'))['me']['id'],'createdAt':new Date(),'data':{},'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x18d44b,'createdAt':_0x5483bc?new Date(_0x5483bc):new Date(),'source':'importWord'}}};this['editor'][_0x5f14('0xa')][_0x5f14('0xf')](_0x380b91)[_0x5f14('0x2')](_0x2fcc7f);});}}
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 _0x220d=['model','*Outdent:*\x20%0','editor','_descriptionFactory','getSelectedBlocks','has','schema','outdentBlock','markBlockFormat','*Indent:*\x20%0','change','document','IndentBlock','get','enableCommand','filter','afterInit','getItems','registerDescriptionCallback','blockIndent','TrackChangesEditing','from','locale','indentBlock','checkAttribute','IndentEditing','getItemLabel','indent','plugins','commandName'];(function(_0x1633cc,_0x220d9d){const _0x3c5922=function(_0x4daa79){while(--_0x4daa79){_0x1633cc['push'](_0x1633cc['shift']());}};_0x3c5922(++_0x220d9d);}(_0x220d,0xc1));const _0x3c59=function(_0x1633cc,_0x220d9d){_0x1633cc=_0x1633cc-0x0;let _0x3c5922=_0x220d[_0x1633cc];return _0x3c5922;};import{Plugin as _0x24047a}from'ckeditor5/src/core';import{getTranslation as _0x349a47}from'../utils/common-translations';export default class it extends _0x24047a{[_0x3c59('0x3')](){const _0x2af14f=this[_0x3c59('0x13')],_0x1ed55d=_0x2af14f[_0x3c59('0xf')][_0x3c59('0x0')](_0x3c59('0x7'));_0x2af14f[_0x3c59('0xf')]['has'](_0x3c59('0xc'))&&(_0x1ed55d[_0x3c59('0x1')](_0x3c59('0xe')),_0x1ed55d[_0x3c59('0x1')]('outdent'));const _0x3684b8=_0x2af14f[_0x3c59('0x9')];if(_0x2af14f[_0x3c59('0xf')][_0x3c59('0x16')](_0x3c59('0x1d'))){for(const _0xf6c4e4 of[_0x3c59('0xa'),_0x3c59('0x18')])_0x1ed55d['enableCommand'](_0xf6c4e4,()=>{const _0x60f782=Array[_0x3c59('0x8')](this[_0x3c59('0x13')][_0x3c59('0x11')][_0x3c59('0x1c')]['selection'][_0x3c59('0x15')]())[_0x3c59('0x2')](_0x107c34=>this['editor'][_0x3c59('0x11')][_0x3c59('0x17')][_0x3c59('0xb')](_0x107c34,_0x3c59('0x6')));_0x2af14f[_0x3c59('0x11')][_0x3c59('0x1b')](()=>{for(const _0x17f1ca of _0x60f782)_0x1ed55d[_0x3c59('0x19')](_0x17f1ca,{'commandName':_0xf6c4e4,'commandParams':[{'value':''}],'formatGroupId':_0x3c59('0xa')});});});_0x1ed55d[_0x3c59('0x14')][_0x3c59('0x5')](_0x5c47e1=>{const {data:_0x267f17}=_0x5c47e1;if(!_0x267f17)return;if(_0x3c59('0xa')!=_0x267f17['commandName']&&_0x3c59('0x18')!=_0x267f17[_0x3c59('0x10')])return;const _0x44f782=_0x5c47e1[_0x3c59('0x4')]()[0x0],_0x3de217=_0x1ed55d[_0x3c59('0x14')][_0x3c59('0xd')](_0x44f782);return _0x3c59('0xa')==_0x267f17[_0x3c59('0x10')]?{'type':'format','content':_0x349a47(_0x3684b8,_0x3c59('0x1a'),_0x3de217)}:_0x3c59('0x18')==_0x267f17[_0x3c59('0x10')]?{'type':'format','content':_0x349a47(_0x3684b8,_0x3c59('0x12'),_0x3de217)}: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 _0x7dad=['editor','init','TrackChangesEditing','input','get','requires'];(function(_0x572c04,_0x7dade){var _0x5d2485=function(_0x32fca5){while(--_0x32fca5){_0x572c04['push'](_0x572c04['shift']());}};_0x5d2485(++_0x7dade);}(_0x7dad,0x1d2));var _0x5d24=function(_0x572c04,_0x7dade){_0x572c04=_0x572c04-0x0;var _0x5d2485=_0x7dad[_0x572c04];return _0x5d2485;};import{Plugin as _0x293ef2}from'ckeditor5/src/core';import{Input as _0x34f019}from'ckeditor5/src/typing';export default class st extends _0x293ef2{static get[_0x5d24('0x1')](){return[_0x34f019];}[_0x5d24('0x3')](){this[_0x5d24('0x2')]['plugins'][_0x5d24('0x0')](_0x5d24('0x4'))['enableCommand'](_0x5d24('0x5'));}}
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 _0xa2a4=['format','enableCommand','markInlineFormat','has','editor','*Set\x20link:*\x20%0','commandName','document','getFirstPosition','locale','linkHref','get','getFirstRange','plugins','model','link','getRanges','*Remove\x20link*','commandParams','getAttribute','from','TrackChangesEditing','LinkEditing','change','hasAttribute'];(function(_0x3e2c7b,_0xa2a49){const _0x2692da=function(_0x24327d){while(--_0x24327d){_0x3e2c7b['push'](_0x3e2c7b['shift']());}};_0x2692da(++_0xa2a49);}(_0xa2a4,0x169));const _0x2692=function(_0x3e2c7b,_0xa2a49){_0x3e2c7b=_0x3e2c7b-0x0;let _0x2692da=_0xa2a4[_0x3e2c7b];return _0x2692da;};import{Plugin as _0x4987b3}from'ckeditor5/src/core';import{findAttributeRange as _0x3f5570}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x57dce5}from'./utils';import{getTranslation as _0x4fc2a7}from'../utils/common-translations';export default class et extends _0x4987b3{['afterInit'](){const _0x1ac641=this[_0x2692('0x12')];if(!_0x1ac641[_0x2692('0x2')][_0x2692('0x11')](_0x2692('0xb')))return;const _0x15b227=_0x1ac641[_0x2692('0x2')][_0x2692('0x0')](_0x2692('0xa'));_0x15b227[_0x2692('0xf')](_0x2692('0x4'),(_0x18a9fe,_0x19678b)=>{const _0x3e41e8=_0x1ac641['model']['document']['selection'];let _0x134f28=[];if(_0x3e41e8['isCollapsed']){if(!_0x3e41e8[_0x2692('0xd')](_0x2692('0x18')))return void _0x18a9fe(_0x19678b);{const _0x2e7237=_0x3f5570(_0x3e41e8[_0x2692('0x16')](),_0x2692('0x18'),_0x3e41e8[_0x2692('0x8')](_0x2692('0x18')),_0x1ac641[_0x2692('0x3')]);_0x134f28=[_0x2e7237];}}else _0x134f28=Array[_0x2692('0x9')](_0x3e41e8[_0x2692('0x5')]());_0x1ac641['model'][_0x2692('0xc')](()=>{for(const _0x29605a of _0x134f28)_0x15b227[_0x2692('0x10')](_0x29605a,{'commandName':_0x2692('0x4'),'commandParams':[_0x19678b]});});}),_0x15b227[_0x2692('0xf')]('unlink',()=>{const _0x87c959=this[_0x2692('0x12')][_0x2692('0x3')],_0x4c859a=_0x87c959[_0x2692('0x15')]['selection'];_0x87c959[_0x2692('0xc')](()=>{let _0x364d8f=[];if(_0x4c859a['isCollapsed'])_0x364d8f=[_0x3f5570(_0x4c859a[_0x2692('0x16')](),_0x2692('0x18'),_0x4c859a[_0x2692('0x8')](_0x2692('0x18')),_0x1ac641[_0x2692('0x3')])];else _0x364d8f=_0x57dce5(_0x2692('0x18'),_0x4c859a[_0x2692('0x1')](),_0x1ac641[_0x2692('0x3')]);for(const _0x380bf9 of _0x364d8f)_0x15b227[_0x2692('0x10')](_0x380bf9,{'commandName':'unlink','commandParams':[]});});}),_0x15b227['_descriptionFactory']['registerDescriptionCallback'](_0x44a0dc=>{const {data:_0x4341f8}=_0x44a0dc,_0x15f55d=_0x1ac641[_0x2692('0x17')];if(_0x4341f8){if(_0x2692('0x4')==_0x4341f8[_0x2692('0x14')]){const _0x15ab1b=_0x4341f8[_0x2692('0x7')][0x0];return{'type':_0x2692('0xe'),'content':_0x4fc2a7(_0x15f55d,_0x2692('0x13'),'\x22'+_0x15ab1b+'\x22')};}return'unlink'==_0x4341f8[_0x2692('0x14')]?{'type':_0x2692('0xe'),'content':_0x4fc2a7(_0x15f55d,_0x2692('0x6'))}: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 _0xc47d=['format','editor','listType','add','name','commands','parent','todoListChecked','todo','nextSibling','before','isObject','numberedList','checkTodoList','slice','_descriptionFactory','outdentList','enableCommand','afterInit','_selectedElements','element','bulleted','getAttribute','bulletedList','value','model','registerElementLabel','createPositionAt','ListEditing','filter','listItem','numbered','commandName','listIndent','length','blockName','createRange','from','*Change\x20to:*\x20%0','execute','markBlockFormat','getSelectedBlocks','selection','todoList','forceValue','locale','ELEMENT_NUMBERED_LIST','document','paragraph','List','indentList','schema','TodoListEditing','end','ELEMENT_BULLETED_LIST','get','plugins','change','previousSibling','ELEMENT_LIST_ITEM'];(function(_0x69a3cf,_0xc47d1){const _0x585b64=function(_0x519a50){while(--_0x519a50){_0x69a3cf['push'](_0x69a3cf['shift']());}};_0x585b64(++_0xc47d1);}(_0xc47d,0x7f));const _0x585b=function(_0x69a3cf,_0xc47d1){_0x69a3cf=_0x69a3cf-0x0;let _0x585b64=_0xc47d[_0x69a3cf];return _0x585b64;};import{Plugin as _0x13925c}from'ckeditor5/src/core';import{getTranslation as _0x4e43dd}from'../utils/common-translations';export default class nt extends _0x13925c{[_0x585b('0xb')](){const _0x2ddd84=this[_0x585b('0x36')],_0x3140d8=_0x2ddd84[_0x585b('0x26')];if(!_0x2ddd84[_0x585b('0x31')]['has'](_0x585b('0x15')))return;const _0x279ee0=_0x2ddd84['plugins'][_0x585b('0x30')]('TrackChangesEditing'),_0xc1b5d=_0x2ddd84['plugins']['has'](_0x585b('0x2d'));function _0x44fe98(_0x57a178){return()=>{const _0x3cb492=_0x2ddd84['model'][_0x585b('0x28')][_0x585b('0x23')],_0x496eb5=_0x2ddd84[_0x585b('0x3a')][_0x585b('0x30')](_0x57a178);if(_0x496eb5[_0x585b('0x11')])return void _0x2ddd84[_0x585b('0x20')](_0x585b('0x29'),{});const _0x289453=_0x57a178[_0x585b('0x7')](0x0,-0x4),_0x1c0f6b=function(_0x2d26b1,_0x5e7278,_0x2734fb){let _0x5ac9dd=Array[_0x585b('0x1e')](_0x2d26b1)[_0x585b('0x16')](_0x29780b=>function(_0x18def8,_0x5b8a62){return _0x5b8a62['checkChild'](_0x18def8[_0x585b('0x3b')],_0x585b('0x17'))&&!_0x5b8a62[_0x585b('0x4')](_0x18def8);}(_0x29780b,_0x2734fb));_0x5ac9dd=_0x5ac9dd[_0x585b('0x16')](_0x262a71=>!_0x262a71['is'](_0x585b('0xd'),_0x585b('0x17'))||_0x262a71[_0x585b('0xf')](_0x585b('0x37'))!=_0x5e7278);const _0x320b49=new Set();for(const _0x30b146 of _0x5ac9dd)_0x30b146['is'](_0x585b('0xd'),_0x585b('0x17'))?_0x320b49[_0x585b('0x38')](ne(_0x30b146)):_0x320b49['add'](_0x30b146);return Array[_0x585b('0x1e')](_0x320b49);}(_0x3cb492['getSelectedBlocks'](),_0x289453,_0x2ddd84[_0x585b('0x12')][_0x585b('0x2c')]);_0x2ddd84[_0x585b('0x12')][_0x585b('0x32')](()=>{for(const _0x326d78 of _0x1c0f6b)_0x279ee0['markBlockFormat'](_0x326d78,{'commandName':_0x57a178,'commandParams':[{'forceValue':!_0x496eb5[_0x585b('0x11')]}],'formatGroupId':_0x585b('0x1c')},oe(_0x326d78));});};}function _0x596694(_0x48bb2d){return()=>{const _0x414a4f=function(_0x25766b){const _0x5c0875=(_0x25766b=Array[_0x585b('0x1e')](_0x25766b))['findIndex'](_0x31c157=>_0x585b('0x17')!=_0x31c157[_0x585b('0x39')]);return _0x5c0875>-0x1&&(_0x25766b=_0x25766b[_0x585b('0x7')](0x0,_0x5c0875)),_0x25766b;}(_0x2ddd84['model'][_0x585b('0x28')]['selection'][_0x585b('0x22')]()),_0xef69e0=_0x2ddd84['model'][_0x585b('0x1d')](_0x2ddd84['model'][_0x585b('0x14')](_0x414a4f[0x0],_0x585b('0x3')),_0x2ddd84['model'][_0x585b('0x14')](_0x414a4f[_0x414a4f[_0x585b('0x1b')]-0x1],_0x585b('0x2e')));_0x2ddd84[_0x585b('0x12')][_0x585b('0x32')](()=>{_0x279ee0[_0x585b('0x21')](_0xef69e0,{'commandName':_0x48bb2d,'commandParams':[],'formatGroupId':_0x585b('0x1a')},function(_0xbc6e5f){const _0x40bc37=new Set();for(const _0x51c35c of _0xbc6e5f){let _0x510cbc=_0x51c35c[_0x585b('0x2')];for(;_0x510cbc&&_0x510cbc['getAttribute'](_0x585b('0x1a'))>_0x51c35c[_0x585b('0xf')](_0x585b('0x1a'));)_0x40bc37[_0x585b('0x38')](_0x510cbc),_0x510cbc=_0x510cbc['nextSibling'];}return Array[_0x585b('0x1e')](_0x40bc37);}(_0x414a4f));});};}_0x279ee0[_0x585b('0xa')]('numberedList',_0x44fe98(_0x585b('0x5'))),_0x279ee0['enableCommand'](_0x585b('0x10'),_0x44fe98('bulletedList')),_0xc1b5d&&_0x279ee0[_0x585b('0xa')](_0x585b('0x24'),_0x44fe98(_0x585b('0x24'))),_0x279ee0[_0x585b('0xa')]('indentList',_0x596694('indentList')),_0x279ee0[_0x585b('0xa')]('outdentList',_0x596694(_0x585b('0x9'))),_0xc1b5d&&_0x279ee0[_0x585b('0xa')](_0x585b('0x6'),()=>{const _0x3544c5=_0x2ddd84[_0x585b('0x3a')][_0x585b('0x30')](_0x585b('0x6')),_0x23fb40=Array[_0x585b('0x1e')](_0x3544c5[_0x585b('0xc')]);_0x23fb40[_0x585b('0x16')](_0x458cca=>_0x458cca['getAttribute'](_0x585b('0x0'))!=_0x3544c5[_0x585b('0x11')]),_0x2ddd84[_0x585b('0x12')]['change'](()=>{for(const _0x4e49a1 of _0x23fb40)_0x279ee0[_0x585b('0x21')](_0x4e49a1,{'commandName':_0x585b('0x6'),'commandParams':[{'forceValue':!_0x3544c5['value']}]});});}),_0x279ee0[_0x585b('0x8')][_0x585b('0x13')](_0x585b('0x17'),_0x389f52=>_0x4e43dd(_0x3140d8,_0x585b('0x34'),_0x389f52)),_0x279ee0[_0x585b('0x8')]['registerDescriptionCallback'](_0x41ddf9=>{const {data:_0x3dd9cd}=_0x41ddf9;if(_0x3dd9cd){if(_0x585b('0x5')==_0x3dd9cd[_0x585b('0x19')]||_0x585b('0x10')==_0x3dd9cd[_0x585b('0x19')]||_0x585b('0x24')==_0x3dd9cd[_0x585b('0x19')])switch(_0x3dd9cd[_0x585b('0x19')]['replace'](_0x585b('0x2a'),'')){case _0x585b('0xe'):return _0x542a56(_0x4e43dd(_0x3140d8,_0x585b('0x2f')));case _0x585b('0x18'):return _0x542a56(_0x4e43dd(_0x3140d8,_0x585b('0x27')));case _0x585b('0x1'):return _0x542a56(_0x4e43dd(_0x3140d8,'ELEMENT_TODO_LIST'));}if(_0x585b('0x2b')==_0x3dd9cd[_0x585b('0x19')])return{'type':_0x585b('0x35'),'content':_0x4e43dd(_0x3140d8,'*Indent:*\x20%0',_0x4e43dd(_0x3140d8,_0x585b('0x34')))};if(_0x585b('0x9')==_0x3dd9cd[_0x585b('0x19')])return{'type':_0x585b('0x35'),'content':_0x4e43dd(_0x3140d8,'*Outdent:*\x20%0',_0x4e43dd(_0x3140d8,_0x585b('0x34')))};if(_0x585b('0x6')==_0x3dd9cd[_0x585b('0x19')])return _0x3dd9cd['commandParams'][0x0][_0x585b('0x25')]?{'type':'format','content':_0x4e43dd(_0x3140d8,'*Check\x20item*')}:{'type':_0x585b('0x35'),'content':_0x4e43dd(_0x3140d8,'*Uncheck\x20item*')};}function _0x542a56(_0x2f3d38){return{'type':_0x585b('0x35'),'content':_0x4e43dd(_0x3140d8,_0x585b('0x1f'),_0x2f3d38)};}});}}function ne(_0xcc54ff){const _0xda2882=_0xcc54ff[_0x585b('0xf')](_0x585b('0x1a'));if(0x0==_0xda2882)return _0xcc54ff;let _0x27ed3b=_0xcc54ff;for(;_0xcc54ff[_0x585b('0x33')]&&_0xcc54ff[_0x585b('0x33')]['is']('element',_0x585b('0x17'));){const _0x3fbc42=_0xcc54ff[_0x585b('0x33')][_0x585b('0xf')](_0x585b('0x1a'));if(_0x3fbc42==_0xda2882)_0x27ed3b=_0xcc54ff[_0x585b('0x33')];else{if(_0x3fbc42<_0xda2882)break;}_0xcc54ff=_0xcc54ff['previousSibling'];}return _0x27ed3b;}function oe(_0x49b354){const _0x2078e1=[];if(_0x49b354['is'](_0x585b('0xd'),_0x585b('0x17'))&&_0x49b354[_0x585b('0xf')]('listIndent')>0x0){let _0x4c2ddc=_0x49b354[_0x585b('0x2')];for(;_0x4c2ddc&&_0x585b('0x17')==_0x4c2ddc[_0x585b('0x39')]&&_0x4c2ddc[_0x585b('0xf')](_0x585b('0x1a'))==_0x49b354[_0x585b('0xf')]('listIndent');)_0x2078e1['push'](_0x4c2ddc),_0x4c2ddc=_0x4c2ddc[_0x585b('0x2')];}return _0x2078e1;}
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 _0x334c=['*Format:*\x20set\x20order\x20to\x20reversed','length','afterInit','toUpperCase','_getSuggestionBlocks','*Format:*\x20set\x20start\x20index\x20to\x20%0','styles','change','listType','_getTranslationKeyForListStyle','get','has','listReversed','handleDescriptions','listStyle','from','forward','map','element','editor','bind','listItem','plugins','listStart','createPositionAt','handleListStartCommand','getSiblingNodes','list.properties','model','document','filter','*Change\x20to:*\x20%0','commandParams','getListTypeFromListStyleType','ELEMENT_','type','config','*Format:*\x20set\x20order\x20to\x20regular','before','startIndex','handleListStyleCommand','registerDescriptionCallback','createRange','TrackChangesEditing','markMultiRangeBlockFormat','ListUtils','format','enableCommand','numbered','_LIST_','reversed','handleListReversedCommand','replaceAll','commandName'];(function(_0x1db66b,_0x334c9a){const _0x1c8254=function(_0x5ca1a5){while(--_0x5ca1a5){_0x1db66b['push'](_0x1db66b['shift']());}};_0x1c8254(++_0x334c9a);}(_0x334c,0xe0));const _0x1c82=function(_0x1db66b,_0x334c9a){_0x1db66b=_0x1db66b-0x0;let _0x1c8254=_0x334c[_0x1db66b];return _0x1c8254;};import{Plugin as _0x3bed93}from'ckeditor5/src/core';import{getTranslation as _0x214301}from'../utils/common-translations';export default class ot extends _0x3bed93{[_0x1c82('0x30')](){if(!this[_0x1c82('0xb')][_0x1c82('0xe')][_0x1c82('0x3')]('ListPropertiesEditing'))return;const _0x30468a=this[_0x1c82('0xb')][_0x1c82('0x1c')][_0x1c82('0x2')](_0x1c82('0x13')),_0x1e9df9=this[_0x1c82('0xb')][_0x1c82('0xe')]['get'](_0x1c82('0x23'));_0x30468a[_0x1c82('0x34')]&&_0x1e9df9[_0x1c82('0x27')](_0x1c82('0x6'),this[_0x1c82('0x20')]['bind'](this)),_0x30468a[_0x1c82('0x2a')]&&_0x1e9df9[_0x1c82('0x27')](_0x1c82('0x4'),this[_0x1c82('0x2b')][_0x1c82('0xc')](this)),_0x30468a[_0x1c82('0x1f')]&&_0x1e9df9[_0x1c82('0x27')](_0x1c82('0xf'),this[_0x1c82('0x11')][_0x1c82('0xc')](this)),_0x1e9df9['_descriptionFactory'][_0x1c82('0x21')](this[_0x1c82('0x5')]['bind'](this));}[_0x1c82('0x20')](_0x7a5068,_0x3780e8){const _0x49b791=this[_0x1c82('0xb')]['plugins']['get'](_0x1c82('0x23')),_0x16d46f=this[_0x1c82('0x32')](_0xabd959=>_0xabd959['hasAttribute'](_0x1c82('0x0')));_0x16d46f['length']<0x1||this[_0x1c82('0xb')][_0x1c82('0x14')]['change'](()=>{_0x49b791['markMultiRangeBlockFormat'](_0x16d46f,{'commandName':_0x1c82('0x6'),'commandParams':[{'type':_0x3780e8[_0x1c82('0x1b')]}],'formatGroupId':_0x1c82('0x6')});});}[_0x1c82('0x2b')](_0x30a9e1,_0x19fa0e){const _0x5a8511=this[_0x1c82('0xb')][_0x1c82('0xe')][_0x1c82('0x2')](_0x1c82('0x23')),_0x48b7c4=this[_0x1c82('0x32')](_0x1e331e=>_0x1e331e['is'](_0x1c82('0xa'),_0x1c82('0xd'))&&_0x1c82('0x28')===_0x1e331e['getAttribute'](_0x1c82('0x0')));if(_0x48b7c4['length']<0x1)return;const _0x42aced=_0x48b7c4['map'](_0x5c961a=>this['editor'][_0x1c82('0x14')][_0x1c82('0x22')](this[_0x1c82('0xb')][_0x1c82('0x14')][_0x1c82('0x10')](_0x5c961a,_0x1c82('0x1e')),this[_0x1c82('0xb')]['model'][_0x1c82('0x10')](_0x5c961a,0x0)));this[_0x1c82('0xb')][_0x1c82('0x14')][_0x1c82('0x35')](()=>{_0x5a8511[_0x1c82('0x24')](_0x42aced,{'commandName':_0x1c82('0x4'),'commandParams':[{'reversed':_0x19fa0e[_0x1c82('0x2a')]}],'formatGroupId':_0x1c82('0x4')});});}[_0x1c82('0x11')](_0x4bd291,_0x5c856c){const _0x594fad=this['editor'][_0x1c82('0xe')][_0x1c82('0x2')](_0x1c82('0x23')),_0x8a517d=this[_0x1c82('0x32')](_0x576f20=>_0x576f20['is'](_0x1c82('0xa'),_0x1c82('0xd'))&&'numbered'===_0x576f20['getAttribute']('listType'));if(_0x8a517d[_0x1c82('0x2f')]<0x1)return;const _0x270a29=_0x8a517d[_0x1c82('0x9')](_0xb89c2e=>this[_0x1c82('0xb')][_0x1c82('0x14')][_0x1c82('0x22')](this[_0x1c82('0xb')][_0x1c82('0x14')]['createPositionAt'](_0xb89c2e,'before'),this[_0x1c82('0xb')][_0x1c82('0x14')][_0x1c82('0x10')](_0xb89c2e,0x0)));this[_0x1c82('0xb')][_0x1c82('0x14')][_0x1c82('0x35')](()=>{_0x594fad['markMultiRangeBlockFormat'](_0x270a29,{'commandName':_0x1c82('0xf'),'commandParams':[{'startIndex':_0x5c856c[_0x1c82('0x1f')]}],'formatGroupId':_0x1c82('0xf')});});}[_0x1c82('0x5')](_0xccad0d){const _0x50eff3=this[_0x1c82('0xb')]['locale'],{data:_0x3c5fb7}=_0xccad0d;if(!_0x3c5fb7)return;let _0x497b75,_0x500702;switch(_0x3c5fb7[_0x1c82('0x2d')]){case _0x1c82('0x6'):_0x497b75=_0x1c82('0x17'),_0x500702={'type':'format','content':_0x214301(_0x50eff3,_0x497b75,_0x214301(_0x50eff3,this[_0x1c82('0x1')](_0x3c5fb7['commandParams'][0x0][_0x1c82('0x1b')])))};break;case _0x1c82('0x4'):_0x497b75=_0x3c5fb7[_0x1c82('0x18')][0x0][_0x1c82('0x2a')]?_0x1c82('0x2e'):_0x1c82('0x1d'),_0x500702={'type':_0x1c82('0x26'),'content':_0x214301(_0x50eff3,_0x497b75)};break;case'listStart':_0x497b75=_0x1c82('0x33'),_0x500702={'type':_0x1c82('0x26'),'content':_0x214301(_0x50eff3,_0x497b75,_0x3c5fb7[_0x1c82('0x18')][0x0][_0x1c82('0x1f')])};}return _0x500702;}[_0x1c82('0x32')](_0x1f8bc5){const _0x2611db=this[_0x1c82('0xb')][_0x1c82('0xe')]['get'](_0x1c82('0x25'));let _0x39019d=Array[_0x1c82('0x7')](this[_0x1c82('0xb')]['model'][_0x1c82('0x15')]['selection']['getSelectedBlocks']())[_0x1c82('0x16')](_0x1f8bc5)['map'](_0x220bf0=>{const _0x418d06=this[_0x1c82('0xb')]['model'][_0x1c82('0x10')](_0x220bf0,0x0);return[..._0x2611db[_0x1c82('0x12')](_0x418d06,'backward'),..._0x2611db['getSiblingNodes'](_0x418d06,_0x1c82('0x8'))];})['flat']();return _0x39019d=[...new Set(_0x39019d)],_0x39019d;}['_getTranslationKeyForListStyle'](_0x3c692a){return _0x1c82('0x1a')+this[_0x1c82('0xb')]['plugins'][_0x1c82('0x2')](_0x1c82('0x25'))[_0x1c82('0x19')](_0x3c692a)[_0x1c82('0x31')]()+_0x1c82('0x29')+_0x3c692a[_0x1c82('0x31')]()[_0x1c82('0x2c')]('-','_');}}
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 _0xe9ea=['downcastDispatcher','stop','dataDowncast','high','showSuggestionHighlights','_descriptionFactory','registerElementLabel','MediaEmbedEditing','conversion','ELEMENT_MEDIA','locale','plugins','data','options','get','for','afterInit','enableCommand','attribute:url:media','media','editor'];(function(_0x15cae8,_0xe9ea7f){const _0xaff0c5=function(_0x5d127b){while(--_0x5d127b){_0x15cae8['push'](_0x15cae8['shift']());}};_0xaff0c5(++_0xe9ea7f);}(_0xe9ea,0xbf));const _0xaff0=function(_0x15cae8,_0xe9ea7f){_0x15cae8=_0x15cae8-0x0;let _0xaff0c5=_0xe9ea[_0x15cae8];return _0xaff0c5;};import{Plugin as _0xe4af55}from'ckeditor5/src/core';import{getTranslation as _0x55d5b3}from'../utils/common-translations';export default class rt extends _0xe4af55{[_0xaff0('0xe')](){const _0xba8755=this[_0xaff0('0x12')];if(!_0xba8755[_0xaff0('0x9')]['has'](_0xaff0('0x5')))return;const _0x33cdd5=_0xba8755[_0xaff0('0x9')][_0xaff0('0xc')]('TrackChangesEditing'),_0x546d93=_0xba8755[_0xaff0('0x8')];_0x33cdd5[_0xaff0('0xf')]('mediaEmbed'),_0x33cdd5[_0xaff0('0x3')][_0xaff0('0x4')]('media',_0x147c79=>_0x55d5b3(_0x546d93,_0xaff0('0x7'),_0x147c79)),_0xba8755[_0xaff0('0x6')][_0xaff0('0xd')](_0xaff0('0x0'))['elementToElement']({'model':_0xaff0('0x11'),'view':(_0x32d43f,{writer:_0x53006d,options:_0x43284a})=>{if(_0x43284a[_0xaff0('0x2')])return _0x53006d['createEmptyElement']('div');},'converterPriority':_0xaff0('0x1')}),_0xba8755[_0xaff0('0xa')][_0xaff0('0x13')]['on'](_0xaff0('0x10'),(_0x475d8e,_0x402e15,_0x1b3b5d)=>{_0x1b3b5d[_0xaff0('0xb')][_0xaff0('0x2')]&&_0x475d8e[_0xaff0('0x14')]();},{'priority':_0xaff0('0x1')});}}
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 _0x1bfe=['has','afterInit','plugins','get','MentionEditing','enableCommand','editor'];(function(_0x365b05,_0x1bfe96){const _0x232599=function(_0x2a764a){while(--_0x2a764a){_0x365b05['push'](_0x365b05['shift']());}};_0x232599(++_0x1bfe96);}(_0x1bfe,0x148));const _0x2325=function(_0x365b05,_0x1bfe96){_0x365b05=_0x365b05-0x0;let _0x232599=_0x1bfe[_0x365b05];return _0x232599;};import{Plugin as _0x4c5b6d}from'ckeditor5/src/core';export default class at extends _0x4c5b6d{[_0x2325('0x2')](){const _0x380b45=this[_0x2325('0x0')];_0x380b45[_0x2325('0x3')][_0x2325('0x1')](_0x2325('0x5'))&&_0x380b45[_0x2325('0x3')][_0x2325('0x4')]('TrackChangesEditing')[_0x2325('0x6')]('mention');}}
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'));}}