@ckeditor/ckeditor5-track-changes 36.0.1 → 37.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x2b80=['registerElementLabel','markBlockFormat','ELEMENT_CAPTION','imageBlock','_descriptionFactory','plugins','element','getNearestSelectionRange','ImageUtils','chain','imageInline','isIntersecting','suggestion','deletion','selection','registerDescriptionCallback','*Format:*\x20%0','getSuggestions','isBlockImage','isCollapsed','formatBlock','has','getClosestSelectedImageElement','_findSuggestions','insertImage','registerCustomCallback','isEqual','isInContent','schema','getSuggestionCallback','registerPostFixer','getFirstRange','commands','imageStyle','start','forEach','imageTextAlternative','formatInline','shouldConvertImageType','author','accept','isBefore','discard','newValue','nodeBefore','convertBlockImageToInline','forceDefaultExecution','document','convertInlineImageToBlock','width','imageTypeInline','uploadImage','createRange','getAttribute','markDeletion','fromPosition','isOwn','_suggestionFactory','value','change','*Remove\x20image\x20text\x20alternative*','previous','commandReversedParams','get','detach','title','model','*Set\x20image\x20text\x20alternative:*\x20%0','createRangeOn','nodeAfter','removeObject','addObject','forward','getSuggestion','ImageCaptionUtils','discardSuggestion','findIndex','newRange','next','toNext','locale','ImageInlineEditing','toLowerCase','FORMAT_SIDE_IMAGE','join','format','imageStylePreApply','ImageCaptionEditing','imageStylePostApply','imageCaption','toggleImageCaption','commandName','subType','from','caption','hasSuggestion','ImageStyleEditing','refresh','filter','ImageEditing','differ','end','backward','ImageTextAlternativeEditing','type','Block\x20image\x20to\x20inline\x20image','*Set\x20image\x20width:*\x20%0','find','resizeImage','markInsertion','enableCommand','insertion','*Reset\x20image\x20width*','editor','Users','getCaptionFromImageModelElement','getContainedElement','isInlineImage','ELEMENT_INLINE_IMAGE','ImageBlockEditing','commandParams','alt'];(function(_0x416af0,_0x2b8064){const _0x54c8e9=function(_0x24bb82){while(--_0x24bb82){_0x416af0['push'](_0x416af0['shift']());}};_0x54c8e9(++_0x2b8064);}(_0x2b80,0x177));const _0x54c8=function(_0x416af0,_0x2b8064){_0x416af0=_0x416af0-0x0;let _0x54c8e9=_0x2b80[_0x416af0];return _0x54c8e9;};import{Plugin as _0x9792ef}from'ckeditor5/src/core';import{LivePosition as _0x1fbe81}from'ckeditor5/src/engine';import{uid as _0x4425b3}from'ckeditor5/src/utils';import{getTranslation as _0x30de74}from'../utils/common-translations';export default class V extends _0x9792ef{['afterInit'](){const _0x50bb80=this[_0x54c8('0x68')];if(!_0x50bb80['plugins'][_0x54c8('0xc')](_0x54c8('0x5a')))return;const _0x320d45=_0x50bb80[_0x54c8('0x76')][_0x54c8('0x36')]('TrackChangesEditing'),_0x10b610=_0x50bb80[_0x54c8('0x76')][_0x54c8('0x36')](_0x54c8('0x79')),_0x267b86={},_0x215686=_0x50bb80[_0x54c8('0x47')];if(_0x320d45[_0x54c8('0x65')](_0x54c8('0xf')),_0x320d45[_0x54c8('0x75')][_0x54c8('0x71')](_0x54c8('0x74'),_0x42706f=>_0x30de74(_0x215686,'ELEMENT_IMAGE',_0x42706f)),_0x320d45[_0x54c8('0x75')][_0x54c8('0x71')](_0x54c8('0x1'),_0x417ca6=>_0x30de74(_0x215686,_0x54c8('0x6d'),_0x417ca6)),_0x320d45[_0x54c8('0x75')][_0x54c8('0x71')](_0x54c8('0x55'),()=>_0x30de74(_0x215686,_0x54c8('0x73'))),_0x50bb80['plugins'][_0x54c8('0xc')]('ImageUploadEditing')&&_0x320d45[_0x54c8('0x65')](_0x54c8('0x2a')),_0x50bb80[_0x54c8('0x76')][_0x54c8('0xc')](_0x54c8('0x6e'))&&_0x50bb80[_0x54c8('0x76')]['has'](_0x54c8('0x48'))&&(_0x320d45[_0x54c8('0x65')](_0x54c8('0x29'),(_0x9f79fd,_0x5f417d)=>{const _0x40f555=_0x10b610[_0x54c8('0xd')](_0x50bb80[_0x54c8('0x39')][_0x54c8('0x26')]['selection']);_0x50bb80['model']['change'](()=>{_0x320d45[_0x54c8('0x72')](_0x40f555,{'commandName':_0x54c8('0x29'),'commandParams':[_0x5f417d]},[],_0x54c8('0x24'));});}),_0x320d45['enableCommand']('imageTypeBlock',(_0x5008fb,_0x4b07a6)=>{_0x50bb80['model'][_0x54c8('0x32')](_0xea94a7=>{let _0x10153c=_0x10b610[_0x54c8('0xd')](_0x50bb80[_0x54c8('0x39')][_0x54c8('0x26')]['selection']),_0x3d3fb6=_0xea94a7[_0x54c8('0x3b')](_0x10153c);const _0x368312=_0x1fbe81[_0x54c8('0x2e')](_0x3d3fb6[_0x54c8('0x19')],'toPrevious'),_0x178449=_0x1fbe81['fromPosition'](_0x3d3fb6[_0x54c8('0x5c')],_0x54c8('0x46'));_0x320d45[_0x54c8('0x25')](()=>_0x5008fb(_0x4b07a6)),_0x10153c=_0x10b610[_0x54c8('0xd')](_0x50bb80[_0x54c8('0x39')][_0x54c8('0x26')][_0x54c8('0x5')]),_0x3d3fb6=_0xea94a7[_0x54c8('0x3b')](_0x10153c);const _0x2d9d5b=_0xea94a7['createRange'](_0x368312,_0x178449);_0x368312[_0x54c8('0x37')](),_0x178449[_0x54c8('0x37')](),_0x320d45[_0x54c8('0x72')](_0x10153c,{'commandName':_0x54c8('0x29'),'commandParams':[]},[],_0x54c8('0x27')),_0x2d9d5b['start'][_0x54c8('0x20')](_0x3d3fb6[_0x54c8('0x19')])&&_0x320d45['markInsertion'](_0xea94a7[_0x54c8('0x2b')](_0x2d9d5b[_0x54c8('0x19')],_0x3d3fb6[_0x54c8('0x19')]),_0x54c8('0x27')),_0x3d3fb6[_0x54c8('0x5c')][_0x54c8('0x20')](_0x2d9d5b[_0x54c8('0x5c')])&&_0x320d45[_0x54c8('0x64')](_0xea94a7[_0x54c8('0x2b')](_0x3d3fb6[_0x54c8('0x5c')],_0x2d9d5b[_0x54c8('0x5c')]),_0x54c8('0x27'));});}),_0x320d45[_0x54c8('0x30')][_0x54c8('0x10')](_0x54c8('0xb'),_0x54c8('0x27'),'join',()=>{}),_0x320d45[_0x54c8('0x30')][_0x54c8('0x10')]('formatBlock',_0x54c8('0x27'),_0x54c8('0x1f'),()=>{}),_0x320d45[_0x54c8('0x30')][_0x54c8('0x10')](_0x54c8('0xb'),_0x54c8('0x27'),_0x54c8('0x21'),_0x320d45['_suggestionFactory'][_0x54c8('0x14')](_0x54c8('0xb'),'',_0x54c8('0x1f'))),_0x320d45[_0x54c8('0x30')][_0x54c8('0x10')]('insertion','convertInlineImageToBlock',_0x54c8('0x4b'),()=>{}),_0x320d45[_0x54c8('0x30')][_0x54c8('0x10')](_0x54c8('0x66'),_0x54c8('0x27'),'discard',([_0x41ef82])=>{const _0x63148c=_0x320d45['_suggestionFactory'][_0x54c8('0x14')](_0x54c8('0x66'),'',_0x54c8('0x21'));let _0xdd5789=_0x41ef82['start'],_0x51851d=_0x41ef82[_0x54c8('0x5c')];const _0x2839be=_0x50bb80[_0x54c8('0x39')][_0x54c8('0x13')][_0x54c8('0x78')](_0xdd5789,_0x54c8('0x5d')),_0x5a1f82=_0x50bb80['model'][_0x54c8('0x13')][_0x54c8('0x78')](_0x51851d,_0x54c8('0x3f'));_0x2839be[_0x54c8('0xa')]&&(_0xdd5789=_0x2839be[_0x54c8('0x19')]),_0x5a1f82[_0x54c8('0xa')]&&(_0x51851d=_0x5a1f82['end']),_0x63148c([_0x50bb80['model'][_0x54c8('0x2b')](_0xdd5789,_0x51851d)]);}),_0x320d45[_0x54c8('0x30')][_0x54c8('0x10')]('formatBlock',_0x54c8('0x27'),_0x54c8('0x0'),_0x46b9cf),_0x320d45[_0x54c8('0x30')][_0x54c8('0x10')](_0x54c8('0x66'),_0x54c8('0x27'),_0x54c8('0x0'),_0x46b9cf)),_0x50bb80['plugins'][_0x54c8('0xc')](_0x54c8('0x4e'))&&(_0x320d45[_0x54c8('0x65')](_0x54c8('0x51'),(_0x4e5f6b,_0xae7be0)=>{const _0x41a4e0=_0x50bb80[_0x54c8('0x76')][_0x54c8('0x36')](_0x54c8('0x41'));let _0x1c1e3e=_0x10b610[_0x54c8('0xd')](_0x50bb80['model'][_0x54c8('0x26')]['selection']),_0x325d39=_0x41a4e0['getCaptionFromImageModelElement'](_0x1c1e3e);_0x50bb80['model'][_0x54c8('0x32')](()=>{if(_0x325d39)return void _0x320d45[_0x54c8('0x2d')](_0x50bb80[_0x54c8('0x39')][_0x54c8('0x3b')](_0x325d39));const _0x221942=_0x10b610['isBlockImage'](_0x1c1e3e);_0x4e5f6b(_0xae7be0),_0x1c1e3e=_0x10b610[_0x54c8('0xd')](_0x50bb80[_0x54c8('0x39')][_0x54c8('0x26')][_0x54c8('0x5')]),_0x325d39=_0x41a4e0[_0x54c8('0x6a')](_0x1c1e3e),_0x320d45[_0x54c8('0x64')](_0x50bb80[_0x54c8('0x39')][_0x54c8('0x3b')](_0x325d39),_0x221942?null:_0x54c8('0x50'));});}),_0x320d45['_suggestionFactory'][_0x54c8('0x10')](_0x54c8('0x66'),_0x54c8('0x50'),_0x54c8('0x0'),_0x46b9cf)),_0x50bb80[_0x54c8('0x76')][_0x54c8('0xc')](_0x54c8('0x57'))){_0x320d45[_0x54c8('0x65')](_0x54c8('0x18'),(_0x3df022,_0x182539)=>{const _0x19cf9a=_0x50bb80[_0x54c8('0x76')][_0x54c8('0x36')](_0x54c8('0x69'))['me'],_0x481414=_0x50bb80[_0x54c8('0x17')][_0x54c8('0x36')]('imageStyle');let _0xe45a0d=_0x10b610[_0x54c8('0xd')](_0x50bb80[_0x54c8('0x39')][_0x54c8('0x26')][_0x54c8('0x5')]),_0x44d364=_0x50bb80[_0x54c8('0x39')]['createRangeOn'](_0xe45a0d),_0x2adc79=_0x481414['value'];if(_0x2adc79==_0x182539[_0x54c8('0x31')])return;const _0x38f053={'commandName':_0x54c8('0x18'),'commandParams':[_0x182539],'formatGroupId':_0x4425b3()};_0x50bb80[_0x54c8('0x39')][_0x54c8('0x32')](()=>{if(_0x320d45[_0x54c8('0x8')]()[_0x54c8('0x59')](_0x5a1b0d=>_0x5a1b0d[_0x54c8('0x12')]&&_0x19cf9a==_0x5a1b0d[_0x54c8('0x1e')]&&(_0x54c8('0xb')==_0x5a1b0d[_0x54c8('0x5f')]||_0x54c8('0x1c')==_0x5a1b0d['type'])&&(_0x54c8('0x4d')==_0x5a1b0d[_0x54c8('0x53')]||_0x54c8('0x4f')==_0x5a1b0d[_0x54c8('0x53')])&&_0x5a1b0d[_0x54c8('0x16')]()[_0x54c8('0x11')](_0x44d364))[_0x54c8('0x1a')](_0x4d42ff=>_0x320d45[_0x54c8('0x42')](_0x4d42ff['head'])),_0xe45a0d=_0x10b610['getClosestSelectedImageElement'](_0x50bb80[_0x54c8('0x39')][_0x54c8('0x26')][_0x54c8('0x5')]),_0x44d364=_0x50bb80[_0x54c8('0x39')][_0x54c8('0x3b')](_0xe45a0d),_0x481414['refresh'](),_0x50bb80[_0x54c8('0x17')]['get'](_0x54c8('0x29'))[_0x54c8('0x58')](),_0x50bb80[_0x54c8('0x17')][_0x54c8('0x36')]('imageTypeBlock')[_0x54c8('0x58')](),_0x2adc79=_0x481414['value'],_0x2adc79!=_0x182539[_0x54c8('0x31')])return _0x10b610[_0x54c8('0x6c')](_0xe45a0d)&&_0x481414[_0x54c8('0x1d')](_0x182539['value'],_0xe45a0d)?(_0x3df022(_0x182539),_0xe45a0d=_0x10b610[_0x54c8('0xd')](_0x50bb80[_0x54c8('0x39')]['document'][_0x54c8('0x5')]),void _0x320d45['markBlockFormat'](_0xe45a0d,{..._0x38f053,'commandReversedParams':[{'value':_0x2adc79||null}]},[],'imageStylePreApply')):void(_0x10b610['isBlockImage'](_0xe45a0d)?_0x320d45[_0x54c8('0x72')](_0xe45a0d,_0x38f053,[],_0x54c8('0x4f')):_0x320d45['markInlineFormat'](_0x44d364,_0x38f053,_0x54c8('0x4f')));});});for(const _0x494fea of _0x50bb80[_0x54c8('0x76')][_0x54c8('0x36')](_0x54c8('0x57'))['normalizedStyles'])_0x267b86[_0x494fea['name']]=_0x494fea[_0x54c8('0x38')][_0x54c8('0x49')]();_0x320d45[_0x54c8('0x30')]['registerCustomCallback']('formatBlock',_0x54c8('0x4d'),_0x54c8('0x4b'),()=>{}),_0x320d45['_suggestionFactory'][_0x54c8('0x10')](_0x54c8('0xb'),_0x54c8('0x4f'),_0x54c8('0x4b'),()=>{}),_0x320d45[_0x54c8('0x30')][_0x54c8('0x10')]('formatInline',_0x54c8('0x4f'),'join',()=>{}),_0x320d45[_0x54c8('0x30')][_0x54c8('0x10')]('formatBlock',_0x54c8('0x4d'),_0x54c8('0x1f'),()=>{}),_0x320d45[_0x54c8('0x30')][_0x54c8('0x10')](_0x54c8('0xb'),_0x54c8('0x4d'),'discard',(_0x482b74,_0x488a10)=>{_0x320d45['_suggestionFactory']['getSuggestionCallback'](_0x54c8('0xb'),'',_0x54c8('0x1f'))(_0x482b74,{'commandName':_0x488a10['commandName'],'commandParams':_0x488a10[_0x54c8('0x35')]});}),_0x320d45[_0x54c8('0x30')][_0x54c8('0x10')]('formatBlock',_0x54c8('0x4d'),_0x54c8('0x0'),_0x46b9cf);}const _0xb4f1f5=[{'type':_0x54c8('0xb'),'subType':_0x54c8('0x4d')},{'type':_0x54c8('0x66'),'subType':_0x54c8('0x50')},{'type':_0x54c8('0xb'),'subType':_0x54c8('0x27')},{'type':_0x54c8('0x66'),'subType':_0x54c8('0x27')}];function _0x4c6ad1(_0xe5728b,_0x1fe723){const _0x56cee6=_0xb4f1f5[_0x54c8('0x43')](({type:_0xd5c3c6,subType:_0x8cf4aa})=>_0xe5728b[_0x54c8('0x5f')]==_0xd5c3c6&&_0xe5728b[_0x54c8('0x53')]==_0x8cf4aa),_0xc64334=_0xb4f1f5[_0x54c8('0x43')](({type:_0x4d07c8,subType:_0x6718e0})=>_0x1fe723[_0x54c8('0x5f')]==_0x4d07c8&&_0x1fe723[_0x54c8('0x53')]==_0x6718e0);if(_0x56cee6<0x0||_0xc64334<0x0)return!0x1;const _0x1bcf43=_0xe5728b[_0x54c8('0x16')](),_0x54113a=_0x1fe723['getFirstRange']();if((0x0==_0x56cee6||0x1==_0x56cee6)&&0x2==_0xc64334&&_0x1bcf43[_0x54c8('0x2')](_0x54113a))return!0x0;if(0x2==_0x56cee6&&0x3==_0xc64334){const _0x296716=_0x320d45[_0x54c8('0xe')](_0x1bcf43,_0x54c8('0x66'))[_0x54c8('0x59')](({suggestion:_0x33c9a1,meta:_0x4cdd4c})=>_0x4cdd4c[_0x54c8('0x2f')]&&_0x54c8('0x27')==_0x33c9a1['subType']);if(_0x296716['length']>0x1&&_0x54113a[_0x54c8('0x5c')]['isEqual'](_0x1bcf43['start']))return!0x0;if(0x1==_0x296716['length']&&(_0x1bcf43['start'][_0x54c8('0x11')](_0x54113a[_0x54c8('0x5c')])||_0x1bcf43['end'][_0x54c8('0x11')](_0x54113a[_0x54c8('0x19')])))return!0x0;}if(0x3==_0x56cee6&&0x3==_0xc64334&&_0x1bcf43['start']['isBefore'](_0x54113a['start'])){const _0x2234e0=_0x1bcf43[_0x54c8('0x5c')][_0x54c8('0x3c')],_0x4f07cf=_0x54113a[_0x54c8('0x19')][_0x54c8('0x23')];return _0x10b610['isBlockImage'](_0x2234e0)&&_0x2234e0===_0x4f07cf;}return!0x1;}function _0x46b9cf(_0x3b74f2,_0xe99a55){return _0x4c6ad1(_0x3b74f2,_0xe99a55)?[_0x3b74f2,_0xe99a55]:_0x4c6ad1(_0xe99a55,_0x3b74f2)?[_0xe99a55,_0x3b74f2]:null;}_0x50bb80[_0x54c8('0x39')][_0x54c8('0x26')][_0x54c8('0x15')](()=>{let _0x391bcf=!0x1;const _0x354f1d=Array[_0x54c8('0x54')](_0x50bb80[_0x54c8('0x39')][_0x54c8('0x26')][_0x54c8('0x5b')]['getChangedMarkers']());for(const {name:_0x297393,data:_0x5a684b}of _0x354f1d){const {group:_0xc2f9a9,type:_0x282072,subType:_0x128143,id:_0x1a553b}=_0x320d45['_splitMarkerName'](_0x297393);if(_0x54c8('0x3')==_0xc2f9a9&&_0x320d45[_0x54c8('0x56')](_0x1a553b)){if(_0x54c8('0xb')==_0x282072&&(_0x54c8('0x4d')==_0x128143||_0x54c8('0x4f')==_0x128143)){const _0x2c0961=_0x320d45[_0x54c8('0x40')](_0x1a553b);if(_0x5a684b[_0x54c8('0x44')]){const _0x73a8d5=_0x2c0961[_0x54c8('0x16')]()['getContainedElement']();if(_0x10b610[_0x54c8('0x9')](_0x73a8d5))continue;_0x320d45['discardSuggestion'](_0x2c0961),_0x391bcf=!0x0;}}if(_0x54c8('0x66')==_0x282072&&'imageCaption'==_0x128143&&!_0x5a684b[_0x54c8('0x44')]){const _0x40ea1a=_0x320d45['getSuggestion'](_0x1a553b);_0x40ea1a[_0x54c8('0x45')]&&_0x40ea1a['next'][_0x54c8('0x12')]&&(_0x320d45[_0x54c8('0x42')](_0x40ea1a[_0x54c8('0x45')]),_0x391bcf=!0x0);}}}return _0x391bcf;}),_0x50bb80['plugins'][_0x54c8('0xc')]('ImageResize')&&_0x320d45['enableCommand'](_0x54c8('0x63'),(_0x27fd6e,_0x4f4219)=>{const _0x933e2=_0x10b610[_0x54c8('0xd')](_0x50bb80[_0x54c8('0x39')]['document'][_0x54c8('0x5')]);_0x933e2[_0x54c8('0x2c')](_0x54c8('0x28'))!=_0x4f4219[_0x54c8('0x28')]&&_0x50bb80['model'][_0x54c8('0x32')](()=>{_0x320d45[_0x54c8('0x72')](_0x933e2,{'commandName':'resizeImage','commandParams':[_0x4f4219]});});}),_0x50bb80[_0x54c8('0x76')]['has'](_0x54c8('0x5e'))&&_0x320d45[_0x54c8('0x65')](_0x54c8('0x1b'),(_0x24f2d6,_0x6f296c)=>{const _0x158666=_0x10b610[_0x54c8('0xd')](_0x50bb80[_0x54c8('0x39')][_0x54c8('0x26')][_0x54c8('0x5')]);(_0x158666['hasAttribute'](_0x54c8('0x70'))?_0x158666[_0x54c8('0x2c')](_0x54c8('0x70')):'')!=_0x6f296c['newValue']&&_0x50bb80[_0x54c8('0x39')]['change'](()=>{_0x320d45['markBlockFormat'](_0x158666,{'commandName':_0x54c8('0x1b'),'commandParams':[_0x6f296c]});});}),_0x320d45['_descriptionFactory'][_0x54c8('0x6')](_0x1dc282=>{if(!!_0xb4f1f5[_0x54c8('0x62')](({type:_0x2dedae,subType:_0x20b1a2})=>_0x1dc282['type']==_0x2dedae&&_0x1dc282['subType']==_0x20b1a2))return _0x1dc282[_0x54c8('0x34')]?{}:void 0x0;}),_0x320d45[_0x54c8('0x75')][_0x54c8('0x6')](_0x294bd9=>{if(_0x54c8('0x66')==_0x294bd9['type']||_0x54c8('0x4')==_0x294bd9['type']){const _0x2b6fe5=_0x294bd9[_0x54c8('0x6b')]();if(_0x2b6fe5&&_0x2b6fe5['is'](_0x54c8('0x77'),_0x54c8('0x55')))return{'type':'insertion'==_0x294bd9['type']?_0x54c8('0x3e'):_0x54c8('0x3d'),'element':_0x2b6fe5,'quantity':0x1};}}),_0x320d45['_descriptionFactory']['registerDescriptionCallback'](_0xbecea3=>_0x54c8('0xb')==_0xbecea3[_0x54c8('0x5f')]&&_0x54c8('0x27')==_0xbecea3['subType']?{'type':_0x54c8('0x4c'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x54c8('0xb')==_0xbecea3[_0x54c8('0x5f')]&&_0x54c8('0x24')==_0xbecea3[_0x54c8('0x53')]?{'type':_0x54c8('0x4c'),'content':_0x54c8('0x60')}:void 0x0),_0x320d45[_0x54c8('0x75')][_0x54c8('0x6')](_0x2ab73c=>{const {data:_0x45de22}=_0x2ab73c;if(_0x45de22){if(_0x54c8('0x18')==_0x45de22['commandName']){const _0x290d08=_0x45de22[_0x54c8('0x6f')][0x0][_0x54c8('0x31')];return _0xc26d98('side'===_0x290d08?_0x30de74(_0x215686,_0x54c8('0x4a')):_0x267b86[_0x290d08]||_0x290d08);}if(_0x54c8('0x1b')==_0x45de22[_0x54c8('0x52')]){const _0x52347c=_0x45de22[_0x54c8('0x6f')][0x0][_0x54c8('0x22')];return _0x52347c?{'type':'format','content':_0x30de74(_0x215686,_0x54c8('0x3a'),'\x22'+_0x52347c+'\x22')}:{'type':_0x54c8('0x4c'),'content':_0x30de74(_0x215686,_0x54c8('0x33'))};}if('resizeImage'==_0x45de22[_0x54c8('0x52')]){const _0x3afa00=_0x45de22[_0x54c8('0x6f')][0x0]['width'];return _0x3afa00?{'type':_0x54c8('0x4c'),'content':_0x30de74(_0x215686,_0x54c8('0x61'),_0x3afa00)}:{'type':'format','content':_0x30de74(_0x215686,_0x54c8('0x67'))};}}function _0xc26d98(_0x374682){return{'type':_0x54c8('0x4c'),'content':_0x30de74(_0x215686,_0x54c8('0x7'),_0x374682)};}});}}
@@ -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 _0x5811=['discard','getSelectedElement','handleReplaceImageCommand','src','subType','*Format:*\x20replace\x20image\x20URL','source','afterInit','document','TrackChangesEditing','editor','data','_descriptionFactory','enableCommand','getSuggestionCallback','handleSuggestionDescription','change','model','accept','replaceImageSource','Users','locale','format','plugins','ImageEditing','_suggestionFactory','commandParams','commandName','getAttribute','formatBlock','get','getSuggestions','markBlockFormat','author'];(function(_0x1a40ab,_0x5811bd){const _0x47cdc8=function(_0x3958c2){while(--_0x3958c2){_0x1a40ab['push'](_0x1a40ab['shift']());}};_0x47cdc8(++_0x5811bd);}(_0x5811,0xd2));const _0x47cd=function(_0x1a40ab,_0x5811bd){_0x1a40ab=_0x1a40ab-0x0;let _0x47cdc8=_0x5811[_0x1a40ab];return _0x47cdc8;};import{Plugin as _0x33d916}from'ckeditor5/src/core';import{getTranslation as _0x178edb}from'../utils/common-translations';export default class X extends _0x33d916{[_0x47cd('0x1')](){if(!this[_0x47cd('0x4')][_0x47cd('0x11')]['has'](_0x47cd('0x12')))return;const _0x578d01=this['editor']['plugins']['get'](_0x47cd('0x3'));_0x578d01[_0x47cd('0x7')](_0x47cd('0xd'),(_0x4fe564,_0x179bcc)=>this[_0x47cd('0x1e')](_0x4fe564,_0x179bcc)),_0x578d01[_0x47cd('0x13')]['registerCustomCallback']('formatBlock','replaceImageSource',_0x47cd('0xc'),_0x578d01[_0x47cd('0x13')][_0x47cd('0x8')](_0x47cd('0x17'),null,'discard')),_0x578d01['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47cd('0xd'),_0x47cd('0x1c'),_0x578d01[_0x47cd('0x13')][_0x47cd('0x8')]('formatBlock',null,_0x47cd('0xc'))),_0x578d01[_0x47cd('0x6')]['registerDescriptionCallback'](_0x332f1f=>this[_0x47cd('0x9')](_0x332f1f));}[_0x47cd('0x1e')](_0x4d315f,_0x57b762){const _0x6408e9=this['editor']['plugins'][_0x47cd('0x18')](_0x47cd('0x3')),_0x297a8f=this[_0x47cd('0x4')][_0x47cd('0xb')][_0x47cd('0x2')]['selection'][_0x47cd('0x1d')]();this[_0x47cd('0x4')][_0x47cd('0xb')][_0x47cd('0xa')](()=>{let _0x4d5dcf=_0x297a8f[_0x47cd('0x16')](_0x47cd('0x1f'));const _0x1fad49=this[_0x47cd('0x4')][_0x47cd('0x11')][_0x47cd('0x18')](_0x47cd('0xe'))['me'];for(const _0x465ca0 of _0x6408e9[_0x47cd('0x19')]({'skipNotAttached':!0x0})){const _0x2999e8=_0x465ca0['getContainedElement']();if(_0x47cd('0xd')===_0x465ca0[_0x47cd('0x20')]&&_0x2999e8===_0x297a8f){_0x465ca0[_0x47cd('0x1b')]!==_0x1fad49&&_0x465ca0['discard'](),_0x4d5dcf=_0x465ca0[_0x47cd('0x5')][_0x47cd('0x14')][0x0][_0x47cd('0x0')];break;}}_0x4d315f(_0x57b762),_0x6408e9[_0x47cd('0x1a')](_0x297a8f,{'commandName':'replaceImageSource','commandParams':[{'source':_0x4d5dcf}]},[],'replaceImageSource');});}['handleSuggestionDescription'](_0x1534d0){const {data:_0xf95fe9}=_0x1534d0;if(_0xf95fe9&&_0x47cd('0xd')===_0xf95fe9[_0x47cd('0x15')]){const _0x5128b4=_0x47cd('0x21');return{'type':_0x47cd('0x10'),'content':_0x178edb(this[_0x47cd('0x4')][_0x47cd('0xf')],_0x5128b4)};}}}
@@ -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 _0x3f5f=['_setSuggestionData','TrackChangesEditing','Users','_trackChangesValueDuringImport','editor','execute','commands','forEach','trackChanges','_handleImportedData','plugins','get','dataInsert','listenTo','bind','lowest','_trackChangesExecuted','collaboration_features','high','importWord','track_changes'];(function(_0x361345,_0x3f5f25){const _0x4cbf14=function(_0x3e7773){while(--_0x3e7773){_0x361345['push'](_0x361345['shift']());}};_0x4cbf14(++_0x3f5f25);}(_0x3f5f,0x147));const _0x4cbf=function(_0x361345,_0x3f5f25){_0x361345=_0x361345-0x0;let _0x4cbf14=_0x3f5f[_0x361345];return _0x4cbf14;};import{Plugin as _0x5913fc}from'ckeditor5/src/core';export default class Y extends _0x5913fc{constructor(_0x593d19){super(_0x593d19),this[_0x4cbf('0xc')]=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x59a6d7=this[_0x4cbf('0xd')],_0x9c5533=_0x59a6d7[_0x4cbf('0xf')]['get'](_0x4cbf('0x7')),_0x2146d9=_0x59a6d7['commands'][_0x4cbf('0x14')](_0x4cbf('0x11'));_0x9c5533&&(_0x9c5533['on'](_0x4cbf('0xe'),(_0x597e26,[,_0x12e696])=>{this['_trackChangesValueDuringImport']=_0x2146d9['value'],_0x12e696[_0x4cbf('0x5')][_0x4cbf('0x8')]=!this[_0x4cbf('0xc')];},{'priority':_0x4cbf('0x6')}),this[_0x4cbf('0x1')](_0x9c5533,_0x4cbf('0x0'),this['_handleImportedData'][_0x4cbf('0x2')](this)),this[_0x4cbf('0x1')](_0x9c5533,_0x4cbf('0x0'),()=>{this[_0x4cbf('0x4')]&&(_0x2146d9[_0x4cbf('0xe')](),this[_0x4cbf('0x4')]=!0x1);},{'priority':_0x4cbf('0x3')}),_0x59a6d7['plugins'][_0x4cbf('0x14')](_0x4cbf('0xa'))['enableCommand']('importWord'));}[_0x4cbf('0x12')](_0x4ae6f5,_0x769f33){const {suggestions:_0x15a8df}=_0x769f33,_0x1814c5=this[_0x4cbf('0xd')][_0x4cbf('0xf')][_0x4cbf('0x14')]('trackChanges'),_0x8ea937=_0x1814c5['value'];this[_0x4cbf('0xc')]!==_0x8ea937&&(_0x1814c5[_0x4cbf('0xe')](),this[_0x4cbf('0x4')]=!0x0),_0x15a8df&&_0x15a8df[_0x4cbf('0x10')](({id:_0x55c04b,type:_0x2f26d5,author:_0x4fd5ca,created_at:_0x546692})=>{const _0x1fdee4={'id':_0x55c04b,'type':_0x2f26d5,'authorId':this['editor'][_0x4cbf('0x13')][_0x4cbf('0x14')](_0x4cbf('0xb'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4fd5ca,'createdAt':_0x546692?new Date(_0x546692):new Date(),'source':_0x4cbf('0x7')}}};this[_0x4cbf('0xd')][_0x4cbf('0x13')][_0x4cbf('0x14')](_0x4cbf('0xa'))[_0x4cbf('0x9')](_0x1fdee4);});}}
@@ -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 _0x3a8e=['model','from','getItemLabel','checkAttribute','has','markBlockFormat','schema','selection','document','change','plugins','*Indent:*\x20%0','locale','indent','editor','registerDescriptionCallback','afterInit','outdentBlock','IndentEditing','enableCommand','blockIndent','indentBlock','filter','IndentBlock','get','*Outdent:*\x20%0','_descriptionFactory','TrackChangesEditing','commandName','format'];(function(_0x29d71f,_0x3a8e0c){const _0x2657f1=function(_0x1e27dd){while(--_0x1e27dd){_0x29d71f['push'](_0x29d71f['shift']());}};_0x2657f1(++_0x3a8e0c);}(_0x3a8e,0x113));const _0x2657=function(_0x29d71f,_0x3a8e0c){_0x29d71f=_0x29d71f-0x0;let _0x2657f1=_0x3a8e[_0x29d71f];return _0x2657f1;};import{Plugin as _0x6c418b}from'ckeditor5/src/core';import{getTranslation as _0x168714}from'../utils/common-translations';export default class Z extends _0x6c418b{[_0x2657('0xb')](){const _0x5abab2=this['editor'],_0x124644=_0x5abab2[_0x2657('0x5')][_0x2657('0x13')](_0x2657('0x16'));_0x5abab2[_0x2657('0x5')][_0x2657('0x1d')](_0x2657('0xd'))&&(_0x124644[_0x2657('0xe')](_0x2657('0x8')),_0x124644[_0x2657('0xe')]('outdent'));const _0x4ac5ff=_0x5abab2[_0x2657('0x7')];if(_0x5abab2[_0x2657('0x5')][_0x2657('0x1d')](_0x2657('0x12'))){for(const _0x406dcc of[_0x2657('0x10'),_0x2657('0xc')])_0x124644['enableCommand'](_0x406dcc,()=>{const _0x2637b3=Array[_0x2657('0x1a')](this[_0x2657('0x9')][_0x2657('0x19')][_0x2657('0x3')][_0x2657('0x2')]['getSelectedBlocks']())[_0x2657('0x11')](_0x84c811=>this[_0x2657('0x9')][_0x2657('0x19')][_0x2657('0x1')][_0x2657('0x1c')](_0x84c811,_0x2657('0xf')));_0x5abab2[_0x2657('0x19')][_0x2657('0x4')](()=>{for(const _0x4bdf76 of _0x2637b3)_0x124644[_0x2657('0x0')](_0x4bdf76,{'commandName':_0x406dcc,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x124644[_0x2657('0x15')][_0x2657('0xa')](_0x2524c7=>{const {data:_0x1eaf84}=_0x2524c7;if(!_0x1eaf84)return;if(_0x2657('0x10')!=_0x1eaf84['commandName']&&'outdentBlock'!=_0x1eaf84[_0x2657('0x17')])return;const _0x32e64e=_0x2524c7['getItems']()[0x0],_0x38a5be=_0x124644['_descriptionFactory'][_0x2657('0x1b')](_0x32e64e);return _0x2657('0x10')==_0x1eaf84[_0x2657('0x17')]?{'type':_0x2657('0x18'),'content':_0x168714(_0x4ac5ff,_0x2657('0x6'),_0x38a5be)}:_0x2657('0xc')==_0x1eaf84['commandName']?{'type':_0x2657('0x18'),'content':_0x168714(_0x4ac5ff,_0x2657('0x14'),_0x38a5be)}: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 _0x7d16=['editor','input','TrackChangesEditing','enableCommand','plugins','init','requires'];(function(_0x2cb65f,_0x7d1638){var _0x591ed0=function(_0x5eeaa8){while(--_0x5eeaa8){_0x2cb65f['push'](_0x2cb65f['shift']());}};_0x591ed0(++_0x7d1638);}(_0x7d16,0x11f));var _0x591e=function(_0x2cb65f,_0x7d1638){_0x2cb65f=_0x2cb65f-0x0;var _0x591ed0=_0x7d16[_0x2cb65f];return _0x591ed0;};import{Plugin as _0x586212}from'ckeditor5/src/core';import{Input as _0x1f548b}from'ckeditor5/src/typing';export default class tt extends _0x586212{static get[_0x591e('0x6')](){return[_0x1f548b];}[_0x591e('0x5')](){this[_0x591e('0x0')][_0x591e('0x4')]['get'](_0x591e('0x2'))[_0x591e('0x3')](_0x591e('0x1'));}}
@@ -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 _0x3113=['afterInit','getFirstPosition','isCollapsed','getRanges','registerDescriptionCallback','model','enableCommand','*Remove\x20link*','TrackChangesEditing','format','*Set\x20link:*\x20%0','linkHref','editor','LinkEditing','unlink','getAttribute','markInlineFormat','from','hasAttribute','link','locale','getFirstRange','selection','commandName','change','plugins','document','_descriptionFactory'];(function(_0x2a4d2c,_0x3113fe){const _0x1a6041=function(_0x140f28){while(--_0x140f28){_0x2a4d2c['push'](_0x2a4d2c['shift']());}};_0x1a6041(++_0x3113fe);}(_0x3113,0x115));const _0x1a60=function(_0x2a4d2c,_0x3113fe){_0x2a4d2c=_0x2a4d2c-0x0;let _0x1a6041=_0x3113[_0x2a4d2c];return _0x1a6041;};import{Plugin as _0x596441}from'ckeditor5/src/core';import{findAttributeRange as _0x1196c7}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x52c627}from'./utils';import{getTranslation as _0x7a868}from'../utils/common-translations';export default class it extends _0x596441{[_0x1a60('0x3')](){const _0x209c55=this['editor'];if(!_0x209c55[_0x1a60('0x0')]['has'](_0x1a60('0x10')))return;const _0x3d30b4=_0x209c55[_0x1a60('0x0')]['get'](_0x1a60('0xb'));_0x3d30b4[_0x1a60('0x9')](_0x1a60('0x16'),(_0xdf2cc4,_0x55b2b7)=>{const _0x59bc20=_0x209c55[_0x1a60('0x8')][_0x1a60('0x1')][_0x1a60('0x19')];let _0x5e7b3b=[];if(_0x59bc20[_0x1a60('0x5')]){if(!_0x59bc20[_0x1a60('0x15')](_0x1a60('0xe')))return void _0xdf2cc4(_0x55b2b7);{const _0x244671=_0x1196c7(_0x59bc20[_0x1a60('0x4')](),_0x1a60('0xe'),_0x59bc20[_0x1a60('0x12')]('linkHref'),_0x209c55[_0x1a60('0x8')]);_0x5e7b3b=[_0x244671];}}else _0x5e7b3b=Array[_0x1a60('0x14')](_0x59bc20[_0x1a60('0x6')]());_0x209c55[_0x1a60('0x8')][_0x1a60('0x1b')](()=>{for(const _0x52782f of _0x5e7b3b)_0x3d30b4['markInlineFormat'](_0x52782f,{'commandName':_0x1a60('0x16'),'commandParams':[_0x55b2b7]});});}),_0x3d30b4['enableCommand'](_0x1a60('0x11'),()=>{const _0x120c20=this[_0x1a60('0xf')][_0x1a60('0x8')],_0x54ab4a=_0x120c20[_0x1a60('0x1')][_0x1a60('0x19')];_0x120c20[_0x1a60('0x1b')](()=>{let _0x51784e=[];if(_0x54ab4a[_0x1a60('0x5')])_0x51784e=[_0x1196c7(_0x54ab4a[_0x1a60('0x4')](),'linkHref',_0x54ab4a[_0x1a60('0x12')](_0x1a60('0xe')),_0x209c55[_0x1a60('0x8')])];else _0x51784e=_0x52c627(_0x1a60('0xe'),_0x54ab4a[_0x1a60('0x18')](),_0x209c55['model']);for(const _0x24781c of _0x51784e)_0x3d30b4[_0x1a60('0x13')](_0x24781c,{'commandName':_0x1a60('0x11'),'commandParams':[]});});}),_0x3d30b4[_0x1a60('0x2')][_0x1a60('0x7')](_0x1e902e=>{const {data:_0x41f015}=_0x1e902e,_0x5e1fdf=_0x209c55[_0x1a60('0x17')];if(_0x41f015){if(_0x1a60('0x16')==_0x41f015[_0x1a60('0x1a')]){const _0x3b5345=_0x41f015['commandParams'][0x0];return{'type':_0x1a60('0xc'),'content':_0x7a868(_0x5e1fdf,_0x1a60('0xd'),'\x22'+_0x3b5345+'\x22')};}return _0x1a60('0x11')==_0x41f015[_0x1a60('0x1a')]?{'type':_0x1a60('0xc'),'content':_0x7a868(_0x5e1fdf,_0x1a60('0xa'))}: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 _0x537b=['editor','checkChild','ELEMENT_LIST_ITEM','listType','checkTodoList','value','model','from','push','*Uncheck\x20item*','execute','createRange','numbered','getSelectedBlocks','*Change\x20to:*\x20%0','ELEMENT_TODO_LIST','ListEditing','has','todo','format','listItem','element','bulleted','indentList','*Check\x20item*','numberedList','todoList','bulletedList','blockName','commands','List','name','slice','getAttribute','todoListChecked','TrackChangesEditing','*Indent:*\x20%0','add','plugins','listIndent','nextSibling','_descriptionFactory','enableCommand','get','commandName','ELEMENT_NUMBERED_LIST','previousSibling','filter','parent','outdentList','createPositionAt','registerDescriptionCallback','paragraph','commandParams','forceValue','document','afterInit','_selectedElements','isObject','length','before','replace','change','schema','TodoListEditing'];(function(_0x4a84bf,_0x537b5d){const _0x3d60d4=function(_0x372adc){while(--_0x372adc){_0x4a84bf['push'](_0x4a84bf['shift']());}};_0x3d60d4(++_0x537b5d);}(_0x537b,0x19d));const _0x3d60=function(_0x4a84bf,_0x537b5d){_0x4a84bf=_0x4a84bf-0x0;let _0x3d60d4=_0x537b[_0x4a84bf];return _0x3d60d4;};import{Plugin as _0x5e31e1}from'ckeditor5/src/core';import{getTranslation as _0x45b230}from'../utils/common-translations';export default class st extends _0x5e31e1{[_0x3d60('0x21')](){const _0x48ec27=this[_0x3d60('0x2a')],_0x12019c=_0x48ec27['locale'];if(!_0x48ec27[_0x3d60('0xf')][_0x3d60('0x3b')](_0x3d60('0x3a')))return;const _0x5eebe3=_0x48ec27[_0x3d60('0xf')][_0x3d60('0x14')](_0x3d60('0xc')),_0x11d25c=_0x48ec27[_0x3d60('0xf')][_0x3d60('0x3b')](_0x3d60('0x29'));function _0xbe1251(_0x2959f4){return()=>{const _0x2087ca=_0x48ec27['model']['document']['selection'],_0x99a02c=_0x48ec27[_0x3d60('0x6')][_0x3d60('0x14')](_0x2959f4);if(_0x99a02c[_0x3d60('0x2f')])return void _0x48ec27[_0x3d60('0x34')](_0x3d60('0x1d'),{});const _0x4c6a58=_0x2959f4['slice'](0x0,-0x4),_0xcbdb8a=function(_0x1c6ac2,_0x141f50,_0x556d31){let _0x4175b9=Array['from'](_0x1c6ac2)[_0x3d60('0x18')](_0x4f9ace=>function(_0x59f449,_0x1cd1d1){return _0x1cd1d1[_0x3d60('0x2b')](_0x59f449[_0x3d60('0x19')],_0x3d60('0x3e'))&&!_0x1cd1d1[_0x3d60('0x23')](_0x59f449);}(_0x4f9ace,_0x556d31));_0x4175b9=_0x4175b9[_0x3d60('0x18')](_0x3b7340=>!_0x3b7340['is'](_0x3d60('0x3f'),'listItem')||_0x3b7340[_0x3d60('0xa')](_0x3d60('0x2d'))!=_0x141f50);const _0x138698=new Set();for(const _0x3dc310 of _0x4175b9)_0x3dc310['is'](_0x3d60('0x3f'),'listItem')?_0x138698['add'](ne(_0x3dc310)):_0x138698[_0x3d60('0xe')](_0x3dc310);return Array[_0x3d60('0x31')](_0x138698);}(_0x2087ca[_0x3d60('0x37')](),_0x4c6a58,_0x48ec27[_0x3d60('0x30')][_0x3d60('0x28')]);_0x48ec27[_0x3d60('0x30')][_0x3d60('0x27')](()=>{for(const _0x61da77 of _0xcbdb8a)_0x5eebe3['markBlockFormat'](_0x61da77,{'commandName':_0x2959f4,'commandParams':[{'forceValue':!_0x99a02c[_0x3d60('0x2f')]}],'formatGroupId':_0x3d60('0x5')},oe(_0x61da77));});};}function _0x3fa97e(_0x2136f1){return()=>{const _0x30b977=function(_0x199add){let _0x26f642=Array[_0x3d60('0x31')](_0x199add);const _0x394025=_0x26f642['findIndex'](_0x33e549=>_0x3d60('0x3e')!=_0x33e549[_0x3d60('0x8')]);return _0x394025>-0x1&&(_0x26f642=_0x26f642[_0x3d60('0x9')](0x0,_0x394025)),_0x26f642;}(_0x48ec27['model'][_0x3d60('0x20')]['selection'][_0x3d60('0x37')]()),_0x5cfbec=_0x48ec27[_0x3d60('0x30')][_0x3d60('0x35')](_0x48ec27['model']['createPositionAt'](_0x30b977[0x0],_0x3d60('0x25')),_0x48ec27[_0x3d60('0x30')][_0x3d60('0x1b')](_0x30b977[_0x30b977[_0x3d60('0x24')]-0x1],'end'));_0x48ec27[_0x3d60('0x30')][_0x3d60('0x27')](()=>{_0x5eebe3['markBlockFormat'](_0x5cfbec,{'commandName':_0x2136f1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4b5e57){const _0x4dd123=new Set();for(const _0x56128e of _0x4b5e57){let _0x512a7e=_0x56128e['nextSibling'];for(;_0x512a7e&&_0x512a7e['getAttribute'](_0x3d60('0x10'))>_0x56128e[_0x3d60('0xa')](_0x3d60('0x10'));)_0x4dd123['add'](_0x512a7e),_0x512a7e=_0x512a7e[_0x3d60('0x11')];}return Array[_0x3d60('0x31')](_0x4dd123);}(_0x30b977));});};}_0x5eebe3[_0x3d60('0x13')](_0x3d60('0x2'),_0xbe1251(_0x3d60('0x2'))),_0x5eebe3[_0x3d60('0x13')](_0x3d60('0x4'),_0xbe1251('bulletedList')),_0x11d25c&&_0x5eebe3[_0x3d60('0x13')]('todoList',_0xbe1251(_0x3d60('0x3'))),_0x5eebe3[_0x3d60('0x13')](_0x3d60('0x0'),_0x3fa97e(_0x3d60('0x0'))),_0x5eebe3[_0x3d60('0x13')](_0x3d60('0x1a'),_0x3fa97e(_0x3d60('0x1a'))),_0x11d25c&&_0x5eebe3['enableCommand']('checkTodoList',()=>{const _0x4a6869=_0x48ec27[_0x3d60('0x6')][_0x3d60('0x14')](_0x3d60('0x2e')),_0x4679a8=Array['from'](_0x4a6869[_0x3d60('0x22')]);_0x4679a8['filter'](_0x21177a=>_0x21177a['getAttribute'](_0x3d60('0xb'))!=_0x4a6869[_0x3d60('0x2f')]),_0x48ec27[_0x3d60('0x30')][_0x3d60('0x27')](()=>{for(const _0x18246a of _0x4679a8)_0x5eebe3['markBlockFormat'](_0x18246a,{'commandName':_0x3d60('0x2e'),'commandParams':[{'forceValue':!_0x4a6869[_0x3d60('0x2f')]}]});});}),_0x5eebe3[_0x3d60('0x12')]['registerElementLabel'](_0x3d60('0x3e'),_0x37341c=>_0x45b230(_0x12019c,_0x3d60('0x2c'),_0x37341c)),_0x5eebe3[_0x3d60('0x12')][_0x3d60('0x1c')](_0x55a975=>{const {data:_0x4f5d24}=_0x55a975;if(_0x4f5d24){if('numberedList'==_0x4f5d24[_0x3d60('0x15')]||_0x3d60('0x4')==_0x4f5d24[_0x3d60('0x15')]||_0x3d60('0x3')==_0x4f5d24[_0x3d60('0x15')])switch(_0x4f5d24[_0x3d60('0x15')][_0x3d60('0x26')](_0x3d60('0x7'),'')){case _0x3d60('0x40'):return _0x4a3f24(_0x45b230(_0x12019c,'ELEMENT_BULLETED_LIST'));case _0x3d60('0x36'):return _0x4a3f24(_0x45b230(_0x12019c,_0x3d60('0x16')));case _0x3d60('0x3c'):return _0x4a3f24(_0x45b230(_0x12019c,_0x3d60('0x39')));}if(_0x3d60('0x0')==_0x4f5d24[_0x3d60('0x15')])return{'type':_0x3d60('0x3d'),'content':_0x45b230(_0x12019c,_0x3d60('0xd'),_0x45b230(_0x12019c,_0x3d60('0x2c')))};if(_0x3d60('0x1a')==_0x4f5d24['commandName'])return{'type':_0x3d60('0x3d'),'content':_0x45b230(_0x12019c,'*Outdent:*\x20%0',_0x45b230(_0x12019c,_0x3d60('0x2c')))};if(_0x3d60('0x2e')==_0x4f5d24['commandName'])return _0x4f5d24[_0x3d60('0x1e')][0x0][_0x3d60('0x1f')]?{'type':_0x3d60('0x3d'),'content':_0x45b230(_0x12019c,_0x3d60('0x1'))}:{'type':_0x3d60('0x3d'),'content':_0x45b230(_0x12019c,_0x3d60('0x33'))};}function _0x4a3f24(_0x3bd46e){return{'type':_0x3d60('0x3d'),'content':_0x45b230(_0x12019c,_0x3d60('0x38'),_0x3bd46e)};}});}}function ne(_0x444832){const _0x46bbf4=_0x444832[_0x3d60('0xa')]('listIndent');if(0x0==_0x46bbf4)return _0x444832;let _0x323b51=_0x444832;for(;_0x444832['previousSibling']&&_0x444832[_0x3d60('0x17')]['is'](_0x3d60('0x3f'),'listItem');){const _0x39b65f=_0x444832[_0x3d60('0x17')][_0x3d60('0xa')](_0x3d60('0x10'));if(_0x39b65f==_0x46bbf4)_0x323b51=_0x444832['previousSibling'];else{if(_0x39b65f<_0x46bbf4)break;}_0x444832=_0x444832[_0x3d60('0x17')];}return _0x323b51;}function oe(_0x49ad8a){const _0x2fde4c=[];if(_0x49ad8a['is'](_0x3d60('0x3f'),_0x3d60('0x3e'))&&_0x49ad8a[_0x3d60('0xa')]('listIndent')>0x0){let _0x4d2cff=_0x49ad8a[_0x3d60('0x11')];for(;_0x4d2cff&&_0x3d60('0x3e')==_0x4d2cff['name']&&_0x4d2cff[_0x3d60('0xa')]('listIndent')==_0x49ad8a[_0x3d60('0xa')](_0x3d60('0x10'));)_0x2fde4c[_0x3d60('0x32')](_0x4d2cff),_0x4d2cff=_0x4d2cff[_0x3d60('0x11')];}return _0x2fde4c;}
@@ -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 _0x1151=['commandParams','createPositionAt','*Change\x20to:*\x20%0','getFirstPosition','has','editor','*Format:*\x20set\x20order\x20to\x20regular','listType','before','handleListReversedCommand','from','replace','selection','getSiblingNodes','listStyle','*Format:*\x20set\x20order\x20to\x20reversed','getLastPosition','getSelectedBlocks','registerDescriptionCallback','_descriptionFactory','handleListStartCommand','model','listReversed','flat','TrackChangesEditing','ELEMENT_','filter','_getTranslationKeyForListStyle','commandName','length','type','ListUtils','handleListStyleCommand','element','numbered','list.properties','afterInit','locale','toUpperCase','plugins','bind','reversed','map','parent','document','createRange','listItem','_getSuggestionBlocks','format','get','change','markMultiRangeBlockFormat','handleDescriptions','forward','startIndex','_getSuggestionBlocksForListStyle','listStart','enableCommand','backward','ListPropertiesEditing'];(function(_0x1fdf2a,_0x115172){const _0x21b241=function(_0xa70642){while(--_0xa70642){_0x1fdf2a['push'](_0x1fdf2a['shift']());}};_0x21b241(++_0x115172);}(_0x1151,0xe9));const _0x21b2=function(_0x1fdf2a,_0x115172){_0x1fdf2a=_0x1fdf2a-0x0;let _0x21b241=_0x1151[_0x1fdf2a];return _0x21b241;};import{Plugin as _0x2d3e96}from'ckeditor5/src/core';import{getTranslation as _0x33f8e3}from'../utils/common-translations';export default class et extends _0x2d3e96{[_0x21b2('0x2b')](){if(!this[_0x21b2('0xc')][_0x21b2('0x2e')][_0x21b2('0xb')](_0x21b2('0x6')))return;const _0x211b64=this[_0x21b2('0xc')]['config'][_0x21b2('0x38')](_0x21b2('0x2a')),_0x4f6637=this[_0x21b2('0xc')][_0x21b2('0x2e')][_0x21b2('0x38')](_0x21b2('0x1f'));_0x211b64['styles']&&_0x4f6637[_0x21b2('0x4')](_0x21b2('0x15'),this[_0x21b2('0x27')]['bind'](this)),_0x211b64[_0x21b2('0x30')]&&_0x4f6637[_0x21b2('0x4')](_0x21b2('0x1d'),this[_0x21b2('0x10')]['bind'](this)),_0x211b64[_0x21b2('0x1')]&&_0x4f6637['enableCommand'](_0x21b2('0x3'),this['handleListStartCommand'][_0x21b2('0x2f')](this)),_0x4f6637[_0x21b2('0x1a')][_0x21b2('0x19')](this[_0x21b2('0x3b')][_0x21b2('0x2f')](this));}[_0x21b2('0x27')](_0x27997e,_0x5dfcd5={}){const _0x5197c5=this[_0x21b2('0xc')]['plugins'][_0x21b2('0x38')](_0x21b2('0x1f')),_0x2c5843=this[_0x21b2('0x2')]();this[_0x21b2('0xc')][_0x21b2('0x1c')]['change'](()=>{_0x5197c5['markMultiRangeBlockFormat'](_0x2c5843,{'commandName':_0x21b2('0x15'),'commandParams':[{'type':_0x5dfcd5[_0x21b2('0x25')]}],'formatGroupId':_0x21b2('0x15')});});}[_0x21b2('0x10')](_0x51ab03,_0x45fbcb={}){const _0xd4a299=this['editor'][_0x21b2('0x2e')][_0x21b2('0x38')](_0x21b2('0x1f')),_0x5c54f7=this['_getSuggestionBlocks'](_0xda3773=>_0xda3773['is']('element',_0x21b2('0x35'))&&_0x21b2('0x29')===_0xda3773['getAttribute']('listType'));if(_0x5c54f7[_0x21b2('0x24')]<0x1)return;const _0xc2b888=_0x5c54f7[_0x21b2('0x31')](_0x4cbd2c=>this[_0x21b2('0xc')][_0x21b2('0x1c')][_0x21b2('0x34')](this[_0x21b2('0xc')]['model'][_0x21b2('0x8')](_0x4cbd2c,_0x21b2('0xf')),this[_0x21b2('0xc')][_0x21b2('0x1c')][_0x21b2('0x8')](_0x4cbd2c,0x0)));this[_0x21b2('0xc')]['model'][_0x21b2('0x39')](()=>{_0xd4a299[_0x21b2('0x3a')](_0xc2b888,{'commandName':_0x21b2('0x1d'),'commandParams':[{'reversed':_0x45fbcb[_0x21b2('0x30')]}],'formatGroupId':_0x21b2('0x1d')});});}[_0x21b2('0x1b')](_0x141f81,_0x1ed826={}){const _0x31e86f=this[_0x21b2('0xc')][_0x21b2('0x2e')]['get']('TrackChangesEditing'),_0x307e90=this[_0x21b2('0x36')](_0x1aa832=>_0x1aa832['is'](_0x21b2('0x28'),'listItem')&&'numbered'===_0x1aa832['getAttribute'](_0x21b2('0xe')));if(_0x307e90[_0x21b2('0x24')]<0x1)return;const _0x4de175=_0x307e90[_0x21b2('0x31')](_0x1277c9=>this['editor'][_0x21b2('0x1c')][_0x21b2('0x34')](this[_0x21b2('0xc')][_0x21b2('0x1c')][_0x21b2('0x8')](_0x1277c9,_0x21b2('0xf')),this[_0x21b2('0xc')][_0x21b2('0x1c')]['createPositionAt'](_0x1277c9,0x0)));this[_0x21b2('0xc')][_0x21b2('0x1c')]['change'](()=>{_0x31e86f[_0x21b2('0x3a')](_0x4de175,{'commandName':_0x21b2('0x3'),'commandParams':[{'startIndex':_0x1ed826['startIndex']}],'formatGroupId':'listStart'});});}[_0x21b2('0x3b')](_0x150c80){const _0x34ab3b=this[_0x21b2('0xc')][_0x21b2('0x2c')],{data:_0x41df3a}=_0x150c80;if(!_0x41df3a)return;let _0x51f3db,_0xfdea3d;switch(_0x41df3a[_0x21b2('0x23')]){case _0x21b2('0x15'):_0x51f3db=_0x21b2('0x9'),_0xfdea3d={'type':_0x21b2('0x37'),'content':_0x33f8e3(_0x34ab3b,_0x51f3db,_0x33f8e3(_0x34ab3b,this[_0x21b2('0x22')](_0x41df3a[_0x21b2('0x7')][0x0]['type'])))};break;case _0x21b2('0x1d'):_0x51f3db=_0x41df3a[_0x21b2('0x7')][0x0]['reversed']?_0x21b2('0x16'):_0x21b2('0xd'),_0xfdea3d={'type':_0x21b2('0x37'),'content':_0x33f8e3(_0x34ab3b,_0x51f3db)};break;case _0x21b2('0x3'):_0x51f3db='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xfdea3d={'type':'format','content':_0x33f8e3(_0x34ab3b,_0x51f3db,_0x41df3a[_0x21b2('0x7')][0x0][_0x21b2('0x1')])};}return _0xfdea3d;}['_getSuggestionBlocksForListStyle'](){var _0x5d44d3,_0x39dccc,_0x551448,_0x193019;const _0x260568=this[_0x21b2('0xc')][_0x21b2('0x2e')][_0x21b2('0x38')]('ListUtils');let _0x16fdb4=Array['from'](this[_0x21b2('0xc')]['model']['document'][_0x21b2('0x13')][_0x21b2('0x18')]());return(null===(_0x5d44d3=_0x16fdb4[0x0])||void 0x0===_0x5d44d3?void 0x0:_0x5d44d3['is'](_0x21b2('0x28'),'listItem'))&&_0x16fdb4['unshift'](..._0x260568['getSiblingNodes'](this[_0x21b2('0xc')][_0x21b2('0x1c')]['document'][_0x21b2('0x13')][_0x21b2('0xa')](),_0x21b2('0x5'))),(null===(_0x39dccc=_0x16fdb4[_0x16fdb4['length']-0x1])||void 0x0===_0x39dccc?void 0x0:_0x39dccc['is']('element',_0x21b2('0x35')))&&_0x16fdb4['push'](..._0x260568[_0x21b2('0x14')](this[_0x21b2('0xc')][_0x21b2('0x1c')][_0x21b2('0x33')][_0x21b2('0x13')][_0x21b2('0x17')](),_0x21b2('0x0'))),_0x16fdb4=[...new Set(_0x16fdb4)],(null===(_0x193019=null===(_0x551448=this[_0x21b2('0xc')][_0x21b2('0x1c')][_0x21b2('0x33')][_0x21b2('0x13')][_0x21b2('0xa')]())||void 0x0===_0x551448?void 0x0:_0x551448[_0x21b2('0x32')])||void 0x0===_0x193019?void 0x0:_0x193019['is']('element',_0x21b2('0x35')))&&(_0x16fdb4=_0x16fdb4['filter'](_0x144551=>_0x144551['is'](_0x21b2('0x28'),_0x21b2('0x35')))),_0x16fdb4;}[_0x21b2('0x36')](_0x3ff90d){const _0x1e6f74=this[_0x21b2('0xc')][_0x21b2('0x2e')][_0x21b2('0x38')](_0x21b2('0x26'));let _0x1fb24e=Array[_0x21b2('0x11')](this['editor'][_0x21b2('0x1c')][_0x21b2('0x33')][_0x21b2('0x13')][_0x21b2('0x18')]())[_0x21b2('0x21')](_0x3ff90d)[_0x21b2('0x31')](_0x34427f=>{const _0x593880=this['editor']['model'][_0x21b2('0x8')](_0x34427f,0x0);return[..._0x1e6f74[_0x21b2('0x14')](_0x593880,_0x21b2('0x5')),..._0x1e6f74[_0x21b2('0x14')](_0x593880,_0x21b2('0x0'))];})[_0x21b2('0x1e')]();return _0x1fb24e=[...new Set(_0x1fb24e)],_0x1fb24e;}[_0x21b2('0x22')](_0x373be6){return _0x21b2('0x20')+this[_0x21b2('0xc')][_0x21b2('0x2e')][_0x21b2('0x38')](_0x21b2('0x26'))['getListTypeFromListStyleType'](_0x373be6)[_0x21b2('0x2d')]()+'_LIST_'+_0x373be6[_0x21b2('0x2d')]()[_0x21b2('0x12')](/-/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 _0x5a22=['enableCommand','_descriptionFactory','TrackChangesEditing','locale','plugins','createEmptyElement','media','MediaEmbedEditing','ELEMENT_MEDIA','has','get','options','div','downcastDispatcher','dataDowncast','high','showSuggestionHighlights','editor','elementToElement','stop'];(function(_0x33ba4a,_0x5a226d){const _0x300a28=function(_0x36d796){while(--_0x36d796){_0x33ba4a['push'](_0x33ba4a['shift']());}};_0x300a28(++_0x5a226d);}(_0x5a22,0x13d));const _0x300a=function(_0x33ba4a,_0x5a226d){_0x33ba4a=_0x33ba4a-0x0;let _0x300a28=_0x5a22[_0x33ba4a];return _0x300a28;};import{Plugin as _0x18452b}from'ckeditor5/src/core';import{getTranslation as _0x35c971}from'../utils/common-translations';export default class nt extends _0x18452b{['afterInit'](){const _0x420c23=this[_0x300a('0x0')];if(!_0x420c23[_0x300a('0x7')][_0x300a('0xc')](_0x300a('0xa')))return;const _0x27bb38=_0x420c23[_0x300a('0x7')][_0x300a('0xd')](_0x300a('0x5')),_0x346a2b=_0x420c23[_0x300a('0x6')];_0x27bb38[_0x300a('0x3')]('mediaEmbed'),_0x27bb38[_0x300a('0x4')]['registerElementLabel']('media',_0x656dc4=>_0x35c971(_0x346a2b,_0x300a('0xb'),_0x656dc4)),_0x420c23['conversion']['for'](_0x300a('0x11'))[_0x300a('0x1')]({'model':_0x300a('0x9'),'view':(_0x313af4,{writer:_0x2a3b7a,options:_0x2976c1})=>{if(_0x2976c1[_0x300a('0x13')])return _0x2a3b7a[_0x300a('0x8')](_0x300a('0xf'));},'converterPriority':_0x300a('0x12')}),_0x420c23['data'][_0x300a('0x10')]['on']('attribute:url:media',(_0x642c50,_0x45ced4,_0x1c4ee1)=>{_0x1c4ee1[_0x300a('0xe')][_0x300a('0x13')]&&_0x642c50[_0x300a('0x2')]();},{'priority':'high'});}}
@@ -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 _0x44f4=['TrackChangesEditing','editor','get','plugins','mention','enableCommand','MentionEditing','has','afterInit'];(function(_0x3373d8,_0x44f40e){const _0x5e5126=function(_0x16c09f){while(--_0x16c09f){_0x3373d8['push'](_0x3373d8['shift']());}};_0x5e5126(++_0x44f40e);}(_0x44f4,0x13c));const _0x5e51=function(_0x3373d8,_0x44f40e){_0x3373d8=_0x3373d8-0x0;let _0x5e5126=_0x44f4[_0x3373d8];return _0x5e5126;};import{Plugin as _0x26a37b}from'ckeditor5/src/core';export default class ot extends _0x26a37b{[_0x5e51('0x7')](){const _0x411424=this[_0x5e51('0x0')];_0x411424['plugins'][_0x5e51('0x6')](_0x5e51('0x5'))&&_0x411424[_0x5e51('0x2')][_0x5e51('0x1')](_0x5e51('0x8'))[_0x5e51('0x4')](_0x5e51('0x3'));}}