@ckeditor/ckeditor5-track-changes 38.2.0-alpha.0 → 39.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 (137) hide show
  1. package/README.md +0 -1
  2. package/build/track-changes.js +1 -1
  3. package/build/translations/gl.js +1 -1
  4. package/build/translations/sq.js +1 -0
  5. package/lang/translations/gl.po +23 -23
  6. package/lang/translations/sq.po +487 -0
  7. package/package.json +4 -5
  8. package/src/augmentation.d.ts +4 -0
  9. package/src/augmentation.js +1 -1
  10. package/src/commands/acceptsuggestioncommand.d.ts +4 -0
  11. package/src/commands/acceptsuggestioncommand.js +2 -2
  12. package/src/commands/discardsuggestioncommand.d.ts +4 -0
  13. package/src/commands/discardsuggestioncommand.js +2 -2
  14. package/src/commands/executeonallsuggestionscommand.d.ts +4 -0
  15. package/src/commands/executeonallsuggestionscommand.js +2 -2
  16. package/src/commands/executeonselectedsuggestionscommand.d.ts +4 -0
  17. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  18. package/src/commands/trackchangescommand.d.ts +4 -0
  19. package/src/commands/trackchangescommand.js +2 -2
  20. package/src/index.d.ts +4 -0
  21. package/src/index.js +1 -1
  22. package/src/integrations/alignment.d.ts +4 -0
  23. package/src/integrations/alignment.js +2 -2
  24. package/src/integrations/basicstyles.d.ts +4 -0
  25. package/src/integrations/basicstyles.js +2 -2
  26. package/src/integrations/blockquote.d.ts +4 -0
  27. package/src/integrations/blockquote.js +2 -2
  28. package/src/integrations/ckbox.d.ts +4 -0
  29. package/src/integrations/ckbox.js +2 -2
  30. package/src/integrations/codeblock.d.ts +4 -0
  31. package/src/integrations/codeblock.js +2 -2
  32. package/src/integrations/comments.d.ts +4 -0
  33. package/src/integrations/comments.js +2 -2
  34. package/src/integrations/deletecommand.d.ts +4 -0
  35. package/src/integrations/deletecommand.js +2 -2
  36. package/src/integrations/documentlist.d.ts +4 -0
  37. package/src/integrations/documentlist.js +2 -2
  38. package/src/integrations/documentlistproperties.d.ts +4 -0
  39. package/src/integrations/documentlistproperties.js +2 -2
  40. package/src/integrations/entercommand.d.ts +4 -0
  41. package/src/integrations/entercommand.js +2 -2
  42. package/src/integrations/findandreplace.d.ts +4 -0
  43. package/src/integrations/findandreplace.js +2 -2
  44. package/src/integrations/font.d.ts +4 -0
  45. package/src/integrations/font.js +2 -2
  46. package/src/integrations/formatpainter.d.ts +4 -0
  47. package/src/integrations/formatpainter.js +2 -2
  48. package/src/integrations/heading.d.ts +4 -0
  49. package/src/integrations/heading.js +2 -2
  50. package/src/integrations/highlight.d.ts +4 -0
  51. package/src/integrations/highlight.js +2 -2
  52. package/src/integrations/horizontalline.d.ts +4 -0
  53. package/src/integrations/horizontalline.js +2 -2
  54. package/src/integrations/htmlembed.d.ts +4 -0
  55. package/src/integrations/htmlembed.js +2 -2
  56. package/src/integrations/image.d.ts +4 -0
  57. package/src/integrations/image.js +2 -2
  58. package/src/integrations/imagereplace.d.ts +4 -0
  59. package/src/integrations/imagereplace.js +2 -2
  60. package/src/integrations/importword.d.ts +4 -0
  61. package/src/integrations/importword.js +2 -2
  62. package/src/integrations/indent.d.ts +4 -0
  63. package/src/integrations/indent.js +2 -2
  64. package/src/integrations/inputcommand.d.ts +4 -0
  65. package/src/integrations/inputcommand.js +2 -2
  66. package/src/integrations/link.d.ts +4 -0
  67. package/src/integrations/link.js +2 -2
  68. package/src/integrations/list.d.ts +4 -0
  69. package/src/integrations/list.js +2 -2
  70. package/src/integrations/listproperties.d.ts +4 -0
  71. package/src/integrations/listproperties.js +2 -2
  72. package/src/integrations/mediaembed.d.ts +4 -0
  73. package/src/integrations/mediaembed.js +2 -2
  74. package/src/integrations/mention.d.ts +4 -0
  75. package/src/integrations/mention.js +2 -2
  76. package/src/integrations/pagebreak.d.ts +4 -0
  77. package/src/integrations/pagebreak.js +2 -2
  78. package/src/integrations/paragraph.d.ts +4 -0
  79. package/src/integrations/paragraph.js +2 -2
  80. package/src/integrations/removeformat.d.ts +4 -0
  81. package/src/integrations/removeformat.js +2 -2
  82. package/src/integrations/restrictededitingmode.d.ts +4 -0
  83. package/src/integrations/restrictededitingmode.js +2 -2
  84. package/src/integrations/shiftentercommand.d.ts +4 -0
  85. package/src/integrations/shiftentercommand.js +2 -2
  86. package/src/integrations/standardeditingmode.d.ts +4 -0
  87. package/src/integrations/standardeditingmode.js +2 -2
  88. package/src/integrations/style.d.ts +4 -0
  89. package/src/integrations/style.js +2 -2
  90. package/src/integrations/table.d.ts +4 -0
  91. package/src/integrations/table.js +2 -2
  92. package/src/integrations/tablecaption.d.ts +4 -0
  93. package/src/integrations/tablecaption.js +2 -2
  94. package/src/integrations/tableclipboard.d.ts +2 -1
  95. package/src/integrations/tableclipboard.js +2 -2
  96. package/src/integrations/tablecolumnresize.d.ts +4 -0
  97. package/src/integrations/tablecolumnresize.js +2 -2
  98. package/src/integrations/tableheadings.d.ts +4 -0
  99. package/src/integrations/tableheadings.js +2 -2
  100. package/src/integrations/tablemergesplit.d.ts +4 -0
  101. package/src/integrations/tablemergesplit.js +2 -2
  102. package/src/integrations/tableofcontents.d.ts +4 -0
  103. package/src/integrations/tableofcontents.js +2 -2
  104. package/src/integrations/tableproperties.d.ts +4 -0
  105. package/src/integrations/tableproperties.js +2 -2
  106. package/src/integrations/template.d.ts +4 -0
  107. package/src/integrations/template.js +2 -2
  108. package/src/integrations/title.d.ts +4 -0
  109. package/src/integrations/title.js +2 -2
  110. package/src/integrations/undo.d.ts +4 -0
  111. package/src/integrations/undo.js +2 -2
  112. package/src/integrations/utils.d.ts +4 -0
  113. package/src/integrations/utils.js +2 -2
  114. package/src/suggestion.d.ts +11 -1
  115. package/src/suggestion.js +2 -2
  116. package/src/suggestiondescriptionfactory.d.ts +14 -2
  117. package/src/suggestiondescriptionfactory.js +2 -2
  118. package/src/trackchanges.d.ts +4 -0
  119. package/src/trackchanges.js +2 -2
  120. package/src/trackchangesconfig.d.ts +4 -0
  121. package/src/trackchangesconfig.js +1 -1
  122. package/src/trackchangesdata.d.ts +6 -2
  123. package/src/trackchangesdata.js +2 -2
  124. package/src/trackchangesediting.d.ts +4 -0
  125. package/src/trackchangesediting.js +2 -2
  126. package/src/trackchangesui.d.ts +4 -0
  127. package/src/trackchangesui.js +2 -2
  128. package/src/ui/suggestioncontroller.d.ts +2 -1
  129. package/src/ui/suggestioncontroller.js +2 -2
  130. package/src/ui/view/basesuggestionthreadview.d.ts +4 -0
  131. package/src/ui/view/basesuggestionthreadview.js +2 -2
  132. package/src/ui/view/suggestionthreadview.d.ts +2 -2
  133. package/src/ui/view/suggestionthreadview.js +2 -2
  134. package/src/utils/common-translations.d.ts +4 -0
  135. package/src/utils/common-translations.js +2 -2
  136. package/src/utils/utils.d.ts +4 -0
  137. package/src/utils/utils.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb297=['_descriptionFactory','commandName','rawHtmlApi','*Change\x20%0\x20content*','getAttribute','rawHtml','format','editing','getSelectedElement','cancel','htmlEmbed','plugins','document','change','HtmlEmbed','model','ELEMENT_HTML_EMBED','locale','get','view','getCustomProperty','selection','enableCommand','editor','registerDescriptionCallback'];(function(_0x51ab5e,_0xb297ab){const _0x513111=function(_0x6835fd){while(--_0x6835fd){_0x51ab5e['push'](_0x51ab5e['shift']());}};_0x513111(++_0xb297ab);}(_0xb297,0x1bb));const _0x5131=function(_0x51ab5e,_0xb297ab){_0x51ab5e=_0x51ab5e-0x0;let _0x513111=_0xb297[_0x51ab5e];return _0x513111;};import{Plugin as _0x19dc43}from'ckeditor5/src/core';import{getTranslation as _0x503d4e}from'../utils/common-translations';export default class V extends _0x19dc43{['afterInit'](){const _0x1172d6=this[_0x5131('0x5')];if(!_0x1172d6[_0x5131('0x12')]['has'](_0x5131('0x15')))return;const _0x491204=_0x1172d6[_0x5131('0x12')][_0x5131('0x0')]('TrackChangesEditing'),_0x164258=_0x1172d6[_0x5131('0x18')],_0x226820=_0x1172d6[_0x5131('0xe')][_0x5131('0x1')][_0x5131('0x13')][_0x5131('0x3')];_0x491204[_0x5131('0x7')]['registerElementLabel'](_0x5131('0xc'),_0x412bda=>_0x503d4e(_0x164258,_0x5131('0x17'),_0x412bda)),_0x1172d6['plugins'][_0x5131('0x0')]('TrackChangesEditing')[_0x5131('0x4')](_0x5131('0x11'),(_0x1947cf,_0x25f295)=>{const _0x361f2e=_0x1172d6[_0x5131('0x16')],_0x4d3bdd=_0x361f2e[_0x5131('0x13')][_0x5131('0x3')];_0x361f2e[_0x5131('0x14')](()=>{const _0x41ee16=function(_0x56f90e){const _0x22c3e3=_0x56f90e[_0x5131('0xf')]();if(_0x22c3e3&&_0x22c3e3['is']('element','rawHtml'))return _0x56f90e[_0x5131('0xf')]();return null;}(_0x4d3bdd);if(!_0x41ee16)return void _0x1947cf(null);const _0x119f67=_0x41ee16[_0x5131('0xb')]('value')||'';if(void 0x0===_0x25f295)return;if(_0x25f295===_0x119f67)return;_0x491204['markBlockFormat'](_0x41ee16,{'commandName':_0x5131('0x11'),'commandParams':[_0x25f295]}),_0x226820[_0x5131('0xf')]()[_0x5131('0x2')](_0x5131('0x9'))[_0x5131('0x10')]();});}),_0x491204[_0x5131('0x7')][_0x5131('0x6')](_0x2cbe82=>{const {data:_0x1e55ad}=_0x2cbe82;if(_0x1e55ad&&_0x5131('0x11')==_0x1e55ad[_0x5131('0x8')]){const _0x1ed50f=_0x503d4e(_0x164258,'ELEMENT_HTML_EMBED');return{'type':_0x5131('0xd'),'content':_0x503d4e(_0x164258,_0x5131('0xa'),_0x1ed50f)};}});}}
23
+ const _0x48b7=['model','change','registerDescriptionCallback','cancel','enableCommand','document','*Change\x20%0\x20content*','locale','afterInit','element','selection','editing','ELEMENT_HTML_EMBED','markBlockFormat','rawHtml','view','editor','commandName','format','TrackChangesEditing','_descriptionFactory','has','get','getAttribute','htmlEmbed','plugins','getSelectedElement','getCustomProperty'];(function(_0x553313,_0x48b7be){const _0x2d623a=function(_0x3478c5){while(--_0x3478c5){_0x553313['push'](_0x553313['shift']());}};_0x2d623a(++_0x48b7be);}(_0x48b7,0x1ca));const _0x2d62=function(_0x553313,_0x48b7be){_0x553313=_0x553313-0x0;let _0x2d623a=_0x48b7[_0x553313];return _0x2d623a;};import{Plugin as _0x31fb9f}from'ckeditor5/src/core';import{getTranslation as _0x34c6c9}from'../utils/common-translations';export default class V extends _0x31fb9f{[_0x2d62('0x1a')](){const _0x1d6c9b=this[_0x2d62('0x6')];if(!_0x1d6c9b[_0x2d62('0xf')][_0x2d62('0xb')]('HtmlEmbed'))return;const _0x2f11cf=_0x1d6c9b[_0x2d62('0xf')][_0x2d62('0xc')](_0x2d62('0x9')),_0x1ebf0a=_0x1d6c9b[_0x2d62('0x19')],_0x4d9544=_0x1d6c9b[_0x2d62('0x1')][_0x2d62('0x5')]['document'][_0x2d62('0x0')];_0x2f11cf[_0x2d62('0xa')]['registerElementLabel']('rawHtml',_0x26f389=>_0x34c6c9(_0x1ebf0a,'ELEMENT_HTML_EMBED',_0x26f389)),_0x1d6c9b['plugins'][_0x2d62('0xc')](_0x2d62('0x9'))[_0x2d62('0x16')](_0x2d62('0xe'),(_0x2ac8fe,_0x4f6e85)=>{const _0x1ff019=_0x1d6c9b[_0x2d62('0x12')],_0x226beb=_0x1ff019[_0x2d62('0x17')]['selection'];_0x1ff019[_0x2d62('0x13')](()=>{const _0x495756=function(_0x4e92d9){const _0x11ddd2=_0x4e92d9['getSelectedElement']();if(_0x11ddd2&&_0x11ddd2['is'](_0x2d62('0x1b'),_0x2d62('0x4')))return _0x4e92d9[_0x2d62('0x10')]();return null;}(_0x226beb);if(!_0x495756)return void _0x2ac8fe(null);const _0x2ff1bf=_0x495756[_0x2d62('0xd')]('value')||'';if(void 0x0===_0x4f6e85)return;if(_0x4f6e85===_0x2ff1bf)return;_0x2f11cf[_0x2d62('0x3')](_0x495756,{'commandName':'htmlEmbed','commandParams':[_0x4f6e85]}),_0x4d9544[_0x2d62('0x10')]()[_0x2d62('0x11')]('rawHtmlApi')[_0x2d62('0x15')]();});}),_0x2f11cf[_0x2d62('0xa')][_0x2d62('0x14')](_0x590905=>{const {data:_0x354bbc}=_0x590905;if(_0x354bbc&&'htmlEmbed'==_0x354bbc[_0x2d62('0x7')]){const _0x4f2b86=_0x34c6c9(_0x1ebf0a,_0x2d62('0x2'));return{'type':_0x2d62('0x8'),'content':_0x34c6c9(_0x1ebf0a,_0x2d62('0x18'),_0x4f2b86)};}});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/image
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x200c=['resizeImage','newRange','isCollapsed','_descriptionFactory','nodeAfter','*Remove\x20image\x20text\x20alternative*','getFirstRange','getClosestSelectedImageElement','ImageTextAlternativeEditing','getSuggestions','getAttribute','fromPosition','imageBlock','convertInlineImageToBlock','end','commandReversedParams','imageStylePreApply','registerPostFixer','editor','isBlockImage','refresh','plugins','discard','*Format:*\x20%0','title','convertBlockImageToInline','suggestion','toLowerCase','model','getNearestSelectionRange','discardSuggestion','element','imageTypeBlock','chain','registerElementLabel','change','imageTypeInline','shouldConvertImageType','imageInline','TrackChangesEditing','insertion','filter','forward','normalizedStyles','type','formatBlock','createRange','getChangedMarkers','markInsertion','newValue','addObject','getContainedElement','value','markBlockFormat','commandParams','enableCommand','registerDescriptionCallback','isEqual','accept','forEach','join','ImageStyleEditing','alt','markInlineFormat','Block\x20image\x20to\x20inline\x20image','findIndex','registerCustomCallback','imageTextAlternative','format','ImageInlineEditing','toPrevious','ImageCaptionEditing','getSuggestionCallback','get','uploadImage','_suggestionFactory','next','imageStylePostApply','length','getCaptionFromImageModelElement','start','removeObject','side','commandName','has','commands','_splitMarkerName','width','backward','hasSuggestion','locale','forceDefaultExecution','imageStyle','createRangeOn','isInContent','find','nodeBefore','caption','schema','_findSuggestions','isBefore','toNext','document','ImageUploadEditing','detach','getSuggestion','markDeletion','imageCaption','Users','*Reset\x20image\x20width*','subType','selection','differ'];(function(_0x24dfe0,_0x200ce7){const _0x2de435=function(_0x3abe52){while(--_0x3abe52){_0x24dfe0['push'](_0x24dfe0['shift']());}};_0x2de435(++_0x200ce7);}(_0x200c,0xff));const _0x2de4=function(_0x24dfe0,_0x200ce7){_0x24dfe0=_0x24dfe0-0x0;let _0x2de435=_0x200c[_0x24dfe0];return _0x2de435;};import{Plugin as _0x21ba82}from'ckeditor5/src/core';import{LivePosition as _0xe1678e}from'ckeditor5/src/engine';import{uid as _0x904d10}from'ckeditor5/src/utils';import{getTranslation as _0x47e069}from'../utils/common-translations';export default class X extends _0x21ba82{['afterInit'](){const _0x447c27=this[_0x2de4('0x66')];if(!_0x447c27[_0x2de4('0x69')][_0x2de4('0x37')]('ImageEditing'))return;const _0x3538fb=_0x447c27[_0x2de4('0x69')][_0x2de4('0x2c')](_0x2de4('0xa')),_0x2b4ddf=_0x447c27[_0x2de4('0x69')][_0x2de4('0x2c')]('ImageUtils'),_0x91b102={},_0x115097=_0x447c27[_0x2de4('0x3d')];if(_0x3538fb['enableCommand']('insertImage'),_0x3538fb[_0x2de4('0x57')][_0x2de4('0x5')](_0x2de4('0x60'),_0x28a06b=>_0x47e069(_0x115097,'ELEMENT_IMAGE',_0x28a06b)),_0x3538fb['_descriptionFactory'][_0x2de4('0x5')](_0x2de4('0x9'),_0x21717f=>_0x47e069(_0x115097,'ELEMENT_INLINE_IMAGE',_0x21717f)),_0x3538fb['_descriptionFactory'][_0x2de4('0x5')](_0x2de4('0x44'),()=>_0x47e069(_0x115097,'ELEMENT_CAPTION')),_0x447c27[_0x2de4('0x69')]['has'](_0x2de4('0x4a'))&&_0x3538fb[_0x2de4('0x1a')](_0x2de4('0x2d')),_0x447c27[_0x2de4('0x69')][_0x2de4('0x37')]('ImageBlockEditing')&&_0x447c27['plugins'][_0x2de4('0x37')](_0x2de4('0x28'))&&(_0x3538fb[_0x2de4('0x1a')]('imageTypeInline',(_0x337e89,_0x36fe42)=>{const _0x5da974=_0x2b4ddf['getClosestSelectedImageElement'](_0x447c27['model'][_0x2de4('0x49')]['selection']);_0x447c27[_0x2de4('0x70')][_0x2de4('0x6')](()=>{_0x3538fb[_0x2de4('0x18')](_0x5da974,{'commandName':_0x2de4('0x7'),'commandParams':[_0x36fe42]},[],_0x2de4('0x6d'));});}),_0x3538fb[_0x2de4('0x1a')]('imageTypeBlock',(_0x158d7e,_0x3aa8f9)=>{_0x447c27[_0x2de4('0x70')]['change'](_0x570531=>{let _0x465fc5=_0x2b4ddf['getClosestSelectedImageElement'](_0x447c27['model']['document']['selection']),_0x366a22=_0x570531[_0x2de4('0x40')](_0x465fc5);const _0x3c09ca=_0xe1678e['fromPosition'](_0x366a22[_0x2de4('0x33')],_0x2de4('0x29')),_0x4d443b=_0xe1678e[_0x2de4('0x5f')](_0x366a22[_0x2de4('0x62')],_0x2de4('0x48'));_0x3538fb[_0x2de4('0x3e')](()=>_0x158d7e(_0x3aa8f9)),_0x465fc5=_0x2b4ddf[_0x2de4('0x5b')](_0x447c27[_0x2de4('0x70')][_0x2de4('0x49')][_0x2de4('0x52')]),_0x366a22=_0x570531['createRangeOn'](_0x465fc5);const _0x35b7e8=_0x570531[_0x2de4('0x11')](_0x3c09ca,_0x4d443b);_0x3c09ca[_0x2de4('0x4b')](),_0x4d443b[_0x2de4('0x4b')](),_0x3538fb[_0x2de4('0x18')](_0x465fc5,{'commandName':_0x2de4('0x7'),'commandParams':[]},[],'convertInlineImageToBlock'),_0x35b7e8['start'][_0x2de4('0x47')](_0x366a22['start'])&&_0x3538fb[_0x2de4('0x13')](_0x570531[_0x2de4('0x11')](_0x35b7e8[_0x2de4('0x33')],_0x366a22[_0x2de4('0x33')]),'convertInlineImageToBlock'),_0x366a22['end']['isBefore'](_0x35b7e8[_0x2de4('0x62')])&&_0x3538fb['markInsertion'](_0x570531[_0x2de4('0x11')](_0x366a22[_0x2de4('0x62')],_0x35b7e8[_0x2de4('0x62')]),_0x2de4('0x61'));});}),_0x3538fb[_0x2de4('0x2e')]['registerCustomCallback'](_0x2de4('0x10'),'convertInlineImageToBlock',_0x2de4('0x1f'),()=>{}),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')](_0x2de4('0x10'),_0x2de4('0x61'),'accept',()=>{}),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')](_0x2de4('0x10'),'convertInlineImageToBlock',_0x2de4('0x6a'),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x2b')](_0x2de4('0x10'),'','accept')),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')]('insertion',_0x2de4('0x61'),_0x2de4('0x1f'),()=>{}),_0x3538fb[_0x2de4('0x2e')]['registerCustomCallback'](_0x2de4('0xb'),_0x2de4('0x61'),'discard',([_0x1adf84])=>{const _0x25294f=_0x3538fb[_0x2de4('0x2e')]['getSuggestionCallback'](_0x2de4('0xb'),'',_0x2de4('0x6a'));let _0x4eafc8=_0x1adf84[_0x2de4('0x33')],_0x563d4f=_0x1adf84['end'];const _0x474c25=_0x447c27['model']['schema'][_0x2de4('0x0')](_0x4eafc8,_0x2de4('0x3b')),_0x2ee324=_0x447c27[_0x2de4('0x70')][_0x2de4('0x45')][_0x2de4('0x0')](_0x563d4f,_0x2de4('0xd'));_0x474c25[_0x2de4('0x56')]&&(_0x4eafc8=_0x474c25[_0x2de4('0x33')]),_0x2ee324['isCollapsed']&&(_0x563d4f=_0x2ee324[_0x2de4('0x62')]),_0x25294f([_0x447c27[_0x2de4('0x70')][_0x2de4('0x11')](_0x4eafc8,_0x563d4f)]);}),_0x3538fb[_0x2de4('0x2e')]['registerCustomCallback'](_0x2de4('0x10'),'convertInlineImageToBlock','chain',_0x189aae),_0x3538fb['_suggestionFactory'][_0x2de4('0x25')]('insertion',_0x2de4('0x61'),_0x2de4('0x4'),_0x189aae)),_0x447c27[_0x2de4('0x69')]['has'](_0x2de4('0x2a'))&&(_0x3538fb[_0x2de4('0x1a')]('toggleImageCaption',(_0x67c727,_0x4fab6e)=>{const _0x191b3c=_0x447c27['plugins']['get']('ImageCaptionUtils');let _0x310b77=_0x2b4ddf[_0x2de4('0x5b')](_0x447c27[_0x2de4('0x70')]['document'][_0x2de4('0x52')]),_0x4697f9=_0x191b3c[_0x2de4('0x32')](_0x310b77);_0x447c27[_0x2de4('0x70')][_0x2de4('0x6')](()=>{if(_0x4697f9)return void _0x3538fb[_0x2de4('0x4d')](_0x447c27[_0x2de4('0x70')][_0x2de4('0x40')](_0x4697f9));const _0x1085d7=_0x2b4ddf[_0x2de4('0x67')](_0x310b77);_0x67c727(_0x4fab6e),_0x310b77=_0x2b4ddf[_0x2de4('0x5b')](_0x447c27[_0x2de4('0x70')]['document'][_0x2de4('0x52')]),_0x4697f9=_0x191b3c['getCaptionFromImageModelElement'](_0x310b77),_0x3538fb[_0x2de4('0x13')](_0x447c27[_0x2de4('0x70')][_0x2de4('0x40')](_0x4697f9),_0x1085d7?null:_0x2de4('0x4e'));});}),_0x3538fb[_0x2de4('0x2e')]['registerCustomCallback']('insertion','imageCaption',_0x2de4('0x4'),_0x189aae)),_0x447c27['plugins'][_0x2de4('0x37')]('ImageStyleEditing')){_0x3538fb[_0x2de4('0x1a')](_0x2de4('0x3f'),(_0x3e6168,_0xde1b51)=>{const _0x159fb3=_0x447c27[_0x2de4('0x69')]['get'](_0x2de4('0x4f'))['me'],_0x365520=_0x447c27[_0x2de4('0x38')][_0x2de4('0x2c')]('imageStyle');let _0x1b0204=_0x2b4ddf['getClosestSelectedImageElement'](_0x447c27[_0x2de4('0x70')][_0x2de4('0x49')][_0x2de4('0x52')]),_0x38697d=_0x447c27[_0x2de4('0x70')][_0x2de4('0x40')](_0x1b0204),_0x47c4f0=_0x365520[_0x2de4('0x17')];if(_0x47c4f0==_0xde1b51['value'])return;const _0x4e8135={'commandName':_0x2de4('0x3f'),'commandParams':[_0xde1b51],'formatGroupId':_0x904d10()};_0x447c27[_0x2de4('0x70')][_0x2de4('0x6')](()=>{if(_0x3538fb[_0x2de4('0x5d')]()[_0x2de4('0xc')](_0x42ce03=>_0x42ce03[_0x2de4('0x41')]&&_0x159fb3==_0x42ce03['author']&&('formatBlock'==_0x42ce03[_0x2de4('0xf')]||'formatInline'==_0x42ce03[_0x2de4('0xf')])&&('imageStylePreApply'==_0x42ce03[_0x2de4('0x51')]||_0x2de4('0x30')==_0x42ce03[_0x2de4('0x51')])&&_0x42ce03[_0x2de4('0x5a')]()[_0x2de4('0x1c')](_0x38697d))[_0x2de4('0x1e')](_0x588ad0=>_0x3538fb[_0x2de4('0x1')](_0x588ad0['head'])),_0x1b0204=_0x2b4ddf[_0x2de4('0x5b')](_0x447c27[_0x2de4('0x70')][_0x2de4('0x49')]['selection']),_0x38697d=_0x447c27[_0x2de4('0x70')][_0x2de4('0x40')](_0x1b0204),_0x365520[_0x2de4('0x68')](),_0x447c27[_0x2de4('0x38')][_0x2de4('0x2c')](_0x2de4('0x7'))['refresh'](),_0x447c27[_0x2de4('0x38')][_0x2de4('0x2c')](_0x2de4('0x3'))['refresh'](),_0x47c4f0=_0x365520[_0x2de4('0x17')],_0x47c4f0!=_0xde1b51[_0x2de4('0x17')])return _0x2b4ddf['isInlineImage'](_0x1b0204)&&_0x365520[_0x2de4('0x8')](_0xde1b51[_0x2de4('0x17')],_0x1b0204)?(_0x3e6168(_0xde1b51),_0x1b0204=_0x2b4ddf['getClosestSelectedImageElement'](_0x447c27[_0x2de4('0x70')]['document'][_0x2de4('0x52')]),void _0x3538fb['markBlockFormat'](_0x1b0204,{..._0x4e8135,'commandReversedParams':[{'value':_0x47c4f0||null}]},[],_0x2de4('0x64'))):void(_0x2b4ddf[_0x2de4('0x67')](_0x1b0204)?_0x3538fb[_0x2de4('0x18')](_0x1b0204,_0x4e8135,[],_0x2de4('0x30')):_0x3538fb[_0x2de4('0x22')](_0x38697d,_0x4e8135,_0x2de4('0x30')));});});for(const _0x31b52f of _0x447c27[_0x2de4('0x69')][_0x2de4('0x2c')](_0x2de4('0x20'))[_0x2de4('0xe')])_0x91b102[_0x31b52f['name']]=_0x31b52f[_0x2de4('0x6c')][_0x2de4('0x6f')]();_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')]('formatBlock','imageStylePreApply',_0x2de4('0x1f'),()=>{}),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')]('formatBlock',_0x2de4('0x30'),_0x2de4('0x1f'),()=>{}),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')]('formatInline','imageStylePostApply',_0x2de4('0x1f'),()=>{}),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')](_0x2de4('0x10'),_0x2de4('0x64'),_0x2de4('0x1d'),()=>{}),_0x3538fb[_0x2de4('0x2e')]['registerCustomCallback'](_0x2de4('0x10'),_0x2de4('0x64'),_0x2de4('0x6a'),(_0xa74dad,_0x24a1a9)=>{_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x2b')](_0x2de4('0x10'),'',_0x2de4('0x1d'))(_0xa74dad,{'commandName':_0x24a1a9[_0x2de4('0x36')],'commandParams':_0x24a1a9[_0x2de4('0x63')]});}),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')](_0x2de4('0x10'),_0x2de4('0x64'),_0x2de4('0x4'),_0x189aae);}const _0x57f233=[{'type':'formatBlock','subType':_0x2de4('0x64')},{'type':_0x2de4('0xb'),'subType':_0x2de4('0x4e')},{'type':_0x2de4('0x10'),'subType':_0x2de4('0x61')},{'type':'insertion','subType':_0x2de4('0x61')}];function _0x3d9b43(_0x3a9297,_0xab6cec){const _0x55af4b=_0x57f233[_0x2de4('0x24')](({type:_0x162b0b,subType:_0x592aa1})=>_0x3a9297['type']==_0x162b0b&&_0x3a9297[_0x2de4('0x51')]==_0x592aa1),_0xe86ab5=_0x57f233[_0x2de4('0x24')](({type:_0x49b9fe,subType:_0xbbc784})=>_0xab6cec[_0x2de4('0xf')]==_0x49b9fe&&_0xab6cec[_0x2de4('0x51')]==_0xbbc784);if(_0x55af4b<0x0||_0xe86ab5<0x0)return!0x1;const _0x5992db=_0x3a9297[_0x2de4('0x5a')](),_0x457aa2=_0xab6cec['getFirstRange']();if((0x0==_0x55af4b||0x1==_0x55af4b)&&0x2==_0xe86ab5&&_0x5992db['isIntersecting'](_0x457aa2))return!0x0;if(0x2==_0x55af4b&&0x3==_0xe86ab5){const _0x297d66=_0x3538fb[_0x2de4('0x46')](_0x5992db,'insertion')[_0x2de4('0xc')](({suggestion:_0x2865e9,meta:_0x237e5f})=>_0x237e5f['isOwn']&&_0x2de4('0x61')==_0x2865e9[_0x2de4('0x51')]);if(_0x297d66[_0x2de4('0x31')]>0x1&&_0x457aa2[_0x2de4('0x62')][_0x2de4('0x1c')](_0x5992db[_0x2de4('0x33')]))return!0x0;if(0x1==_0x297d66[_0x2de4('0x31')]&&(_0x5992db[_0x2de4('0x33')]['isEqual'](_0x457aa2[_0x2de4('0x62')])||_0x5992db[_0x2de4('0x62')][_0x2de4('0x1c')](_0x457aa2['start'])))return!0x0;}if(0x3==_0x55af4b&&0x3==_0xe86ab5&&_0x5992db[_0x2de4('0x33')][_0x2de4('0x47')](_0x457aa2[_0x2de4('0x33')])){const _0x4ba06d=_0x5992db[_0x2de4('0x62')][_0x2de4('0x58')],_0x23026d=_0x457aa2[_0x2de4('0x33')][_0x2de4('0x43')];return _0x2b4ddf[_0x2de4('0x67')](_0x4ba06d)&&_0x4ba06d===_0x23026d;}return!0x1;}function _0x189aae(_0x355789,_0xf421e3){return _0x3d9b43(_0x355789,_0xf421e3)?[_0x355789,_0xf421e3]:_0x3d9b43(_0xf421e3,_0x355789)?[_0xf421e3,_0x355789]:null;}_0x447c27[_0x2de4('0x70')]['document'][_0x2de4('0x65')](()=>{let _0x43901f=!0x1;const _0x45497d=Array['from'](_0x447c27[_0x2de4('0x70')][_0x2de4('0x49')][_0x2de4('0x53')][_0x2de4('0x12')]());for(const {name:_0x22cc28,data:_0x124b8d}of _0x45497d){const {group:_0x30425a,type:_0x371f56,subType:_0x5f5351,id:_0xbcfa56}=_0x3538fb[_0x2de4('0x39')](_0x22cc28);if(_0x2de4('0x6e')==_0x30425a&&_0x3538fb[_0x2de4('0x3c')](_0xbcfa56)){if('formatBlock'==_0x371f56&&(_0x2de4('0x64')==_0x5f5351||_0x2de4('0x30')==_0x5f5351)){const _0x575fc8=_0x3538fb[_0x2de4('0x4c')](_0xbcfa56);if(_0x124b8d['newRange']){const _0x3568c1=_0x575fc8[_0x2de4('0x5a')]()['getContainedElement']();if(_0x2b4ddf[_0x2de4('0x67')](_0x3568c1))continue;_0x3538fb[_0x2de4('0x1')](_0x575fc8),_0x43901f=!0x0;}}if(_0x2de4('0xb')==_0x371f56&&'imageCaption'==_0x5f5351&&!_0x124b8d[_0x2de4('0x55')]){const _0x4a80fd=_0x3538fb[_0x2de4('0x4c')](_0xbcfa56);_0x4a80fd[_0x2de4('0x2f')]&&_0x4a80fd[_0x2de4('0x2f')][_0x2de4('0x41')]&&(_0x3538fb[_0x2de4('0x1')](_0x4a80fd['next']),_0x43901f=!0x0);}}}return _0x43901f;}),_0x447c27[_0x2de4('0x69')][_0x2de4('0x37')]('ImageResize')&&_0x3538fb[_0x2de4('0x1a')](_0x2de4('0x54'),(_0x3b1193,_0x3ae7f6)=>{const _0x52d8da=_0x2b4ddf[_0x2de4('0x5b')](_0x447c27['model'][_0x2de4('0x49')][_0x2de4('0x52')]);_0x52d8da[_0x2de4('0x5e')]('width')!=_0x3ae7f6[_0x2de4('0x3a')]&&_0x447c27['model'][_0x2de4('0x6')](()=>{_0x3538fb[_0x2de4('0x18')](_0x52d8da,{'commandName':_0x2de4('0x54'),'commandParams':[_0x3ae7f6]});});}),_0x447c27['plugins'][_0x2de4('0x37')](_0x2de4('0x5c'))&&_0x3538fb[_0x2de4('0x1a')](_0x2de4('0x26'),(_0x3159da,_0x35a02b)=>{const _0x7220aa=_0x2b4ddf['getClosestSelectedImageElement'](_0x447c27['model'][_0x2de4('0x49')]['selection']);(_0x7220aa['hasAttribute'](_0x2de4('0x21'))?_0x7220aa[_0x2de4('0x5e')](_0x2de4('0x21')):'')!=_0x35a02b['newValue']&&_0x447c27['model'][_0x2de4('0x6')](()=>{_0x3538fb[_0x2de4('0x18')](_0x7220aa,{'commandName':_0x2de4('0x26'),'commandParams':[_0x35a02b]});});}),_0x3538fb[_0x2de4('0x57')][_0x2de4('0x1b')](_0x445df4=>{if(!!_0x57f233[_0x2de4('0x42')](({type:_0x2eb587,subType:_0x1c3ea9})=>_0x445df4[_0x2de4('0xf')]==_0x2eb587&&_0x445df4[_0x2de4('0x51')]==_0x1c3ea9))return _0x445df4['previous']?{}:void 0x0;}),_0x3538fb[_0x2de4('0x57')]['registerDescriptionCallback'](_0xf44a40=>{if('insertion'==_0xf44a40[_0x2de4('0xf')]||'deletion'==_0xf44a40[_0x2de4('0xf')]){const _0x297f61=_0xf44a40[_0x2de4('0x16')]();if(_0x297f61&&_0x297f61['is'](_0x2de4('0x2'),_0x2de4('0x44')))return{'type':_0x2de4('0xb')==_0xf44a40[_0x2de4('0xf')]?_0x2de4('0x15'):_0x2de4('0x34'),'element':_0x297f61,'quantity':0x1};}}),_0x3538fb[_0x2de4('0x57')][_0x2de4('0x1b')](_0x38a8d5=>_0x2de4('0x10')==_0x38a8d5[_0x2de4('0xf')]&&_0x2de4('0x61')==_0x38a8d5[_0x2de4('0x51')]?{'type':_0x2de4('0x27'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x2de4('0x10')==_0x38a8d5[_0x2de4('0xf')]&&_0x2de4('0x6d')==_0x38a8d5['subType']?{'type':_0x2de4('0x27'),'content':_0x2de4('0x23')}:void 0x0),_0x3538fb[_0x2de4('0x57')][_0x2de4('0x1b')](_0x30e6b5=>{const {data:_0x4d7098}=_0x30e6b5;if(_0x4d7098){if('imageStyle'==_0x4d7098[_0x2de4('0x36')]){const _0x4e361b=_0x4d7098[_0x2de4('0x19')][0x0][_0x2de4('0x17')];return _0x216e9e(_0x2de4('0x35')===_0x4e361b?_0x47e069(_0x115097,'FORMAT_SIDE_IMAGE'):_0x91b102[_0x4e361b]||_0x4e361b);}if(_0x2de4('0x26')==_0x4d7098[_0x2de4('0x36')]){const _0x41e5b7=_0x4d7098[_0x2de4('0x19')][0x0][_0x2de4('0x14')];return _0x41e5b7?{'type':_0x2de4('0x27'),'content':_0x47e069(_0x115097,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x41e5b7+'\x22')}:{'type':_0x2de4('0x27'),'content':_0x47e069(_0x115097,_0x2de4('0x59'))};}if(_0x2de4('0x54')==_0x4d7098[_0x2de4('0x36')]){const _0x8eb5e0=_0x4d7098['commandParams'][0x0][_0x2de4('0x3a')];return _0x8eb5e0?{'type':_0x2de4('0x27'),'content':_0x47e069(_0x115097,'*Set\x20image\x20width:*\x20%0',_0x8eb5e0)}:{'type':'format','content':_0x47e069(_0x115097,_0x2de4('0x50'))};}}function _0x216e9e(_0xe2768b){return{'type':_0x2de4('0x27'),'content':_0x47e069(_0x115097,_0x2de4('0x6b'),_0xe2768b)};}});}}
23
+ const _0x1329=['ImageBlockEditing','isInContent','accept','isInlineImage','fromPosition','commandParams','isEqual','getChangedMarkers','get','shouldConvertImageType','join','ImageStyleEditing','_descriptionFactory','length','markBlockFormat','ImageTextAlternativeEditing','getSuggestionCallback','getAttribute','_findSuggestions','forceDefaultExecution','createRange','imageStyle','_splitMarkerName','format','editor','getClosestSelectedImageElement','createRangeOn','toNext','uploadImage','start','convertInlineImageToBlock','head','find','insertImage','formatBlock','discardSuggestion','FORMAT_SIDE_IMAGE','filter','from','next','ELEMENT_CAPTION','isOwn','end','insertion','getContainedElement','imageCaption','removeObject','commands','refresh','ImageUtils','discard','differ','getSuggestion','registerPostFixer','chain','imageBlock','isCollapsed','markInlineFormat','locale','getCaptionFromImageModelElement','detach','nodeAfter','enableCommand','registerDescriptionCallback','markDeletion','isIntersecting','previous','nodeBefore','imageStylePreApply','commandName','toggleImageCaption','subType','_suggestionFactory','Users','model','backward','*Set\x20image\x20text\x20alternative:*\x20%0','getNearestSelectionRange','selection','ImageResize','isBefore','change','ImageInlineEditing','ImageCaptionEditing','registerCustomCallback','has','alt','name','value','newValue','type','newRange','findIndex','TrackChangesEditing','document','caption','width','getFirstRange','ImageUploadEditing','forEach','convertBlockImageToInline','registerElementLabel','plugins','imageTextAlternative','imageTypeInline','forward','hasAttribute','isBlockImage','*Reset\x20image\x20width*','Inline\x20image\x20to\x20block\x20image','title','imageStylePostApply','ImageEditing','toPrevious','imageTypeBlock','resizeImage','commandReversedParams','markInsertion','schema','deletion','formatInline'];(function(_0x2764cd,_0x13290b){const _0x47e429=function(_0x36983c){while(--_0x36983c){_0x2764cd['push'](_0x2764cd['shift']());}};_0x47e429(++_0x13290b);}(_0x1329,0x109));const _0x47e4=function(_0x2764cd,_0x13290b){_0x2764cd=_0x2764cd-0x0;let _0x47e429=_0x1329[_0x2764cd];return _0x47e429;};import{Plugin as _0x10774f}from'ckeditor5/src/core';import{LivePosition as _0x2fc7c7}from'ckeditor5/src/engine';import{uid as _0xb511d0}from'ckeditor5/src/utils';import{getTranslation as _0x2f98da}from'../utils/common-translations';export default class X extends _0x10774f{['afterInit'](){const _0x20bc1d=this[_0x47e4('0x1')];if(!_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x59')))return;const _0x26a978=_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')](_0x47e4('0x46')),_0x56a0e5=_0x20bc1d['plugins'][_0x47e4('0x6a')](_0x47e4('0x1a')),_0x247065={},_0x2064d1=_0x20bc1d[_0x47e4('0x23')];if(_0x26a978[_0x47e4('0x27')](_0x47e4('0xa')),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x4e')](_0x47e4('0x20'),_0x61c6e2=>_0x2f98da(_0x2064d1,'ELEMENT_IMAGE',_0x61c6e2)),_0x26a978['_descriptionFactory']['registerElementLabel']('imageInline',_0x3830ac=>_0x2f98da(_0x2064d1,'ELEMENT_INLINE_IMAGE',_0x3830ac)),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x4e')](_0x47e4('0x48'),()=>_0x2f98da(_0x2064d1,_0x47e4('0x11'))),_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x4b'))&&_0x26a978['enableCommand'](_0x47e4('0x5')),_0x20bc1d['plugins'][_0x47e4('0x3e')](_0x47e4('0x62'))&&_0x20bc1d['plugins']['has'](_0x47e4('0x3b'))&&(_0x26a978[_0x47e4('0x27')]('imageTypeInline',(_0xf82b9a,_0x41bba0)=>{const _0x41e72a=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]);_0x20bc1d['model'][_0x47e4('0x3a')](()=>{_0x26a978['markBlockFormat'](_0x41e72a,{'commandName':_0x47e4('0x51'),'commandParams':[_0x41bba0]},[],_0x47e4('0x4d'));});}),_0x26a978['enableCommand'](_0x47e4('0x5b'),(_0x2b830a,_0x4e23a0)=>{_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](_0x4f0d76=>{let _0x4a56ca=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d['model'][_0x47e4('0x47')][_0x47e4('0x37')]),_0x432e81=_0x4f0d76[_0x47e4('0x3')](_0x4a56ca);const _0x1170d9=_0x2fc7c7[_0x47e4('0x66')](_0x432e81[_0x47e4('0x6')],_0x47e4('0x5a')),_0x23a671=_0x2fc7c7['fromPosition'](_0x432e81[_0x47e4('0x13')],_0x47e4('0x4'));_0x26a978[_0x47e4('0x75')](()=>_0x2b830a(_0x4e23a0)),_0x4a56ca=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),_0x432e81=_0x4f0d76[_0x47e4('0x3')](_0x4a56ca);const _0x3969ae=_0x4f0d76[_0x47e4('0x76')](_0x1170d9,_0x23a671);_0x1170d9['detach'](),_0x23a671[_0x47e4('0x25')](),_0x26a978[_0x47e4('0x70')](_0x4a56ca,{'commandName':_0x47e4('0x51'),'commandParams':[]},[],'convertInlineImageToBlock'),_0x3969ae[_0x47e4('0x6')][_0x47e4('0x39')](_0x432e81[_0x47e4('0x6')])&&_0x26a978['markInsertion'](_0x4f0d76[_0x47e4('0x76')](_0x3969ae[_0x47e4('0x6')],_0x432e81[_0x47e4('0x6')]),_0x47e4('0x7')),_0x432e81[_0x47e4('0x13')][_0x47e4('0x39')](_0x3969ae[_0x47e4('0x13')])&&_0x26a978[_0x47e4('0x5e')](_0x4f0d76[_0x47e4('0x76')](_0x432e81[_0x47e4('0x13')],_0x3969ae['end']),'convertInlineImageToBlock');});}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),'convertInlineImageToBlock',_0x47e4('0x6c'),()=>{}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x7'),_0x47e4('0x64'),()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')]('formatBlock','convertInlineImageToBlock','discard',_0x26a978[_0x47e4('0x31')][_0x47e4('0x72')]('formatBlock','',_0x47e4('0x64'))),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0x14'),_0x47e4('0x7'),'join',()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0x14'),_0x47e4('0x7'),_0x47e4('0x1b'),([_0xe72aaa])=>{const _0x4fc33d=_0x26a978[_0x47e4('0x31')][_0x47e4('0x72')](_0x47e4('0x14'),'',_0x47e4('0x1b'));let _0x1ddc6d=_0xe72aaa[_0x47e4('0x6')],_0x468694=_0xe72aaa['end'];const _0x45c8da=_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x5f')]['getNearestSelectionRange'](_0x1ddc6d,_0x47e4('0x34')),_0x1c9f6e=_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x5f')][_0x47e4('0x36')](_0x468694,_0x47e4('0x52'));_0x45c8da[_0x47e4('0x21')]&&(_0x1ddc6d=_0x45c8da[_0x47e4('0x6')]),_0x1c9f6e['isCollapsed']&&(_0x468694=_0x1c9f6e[_0x47e4('0x13')]),_0x4fc33d([_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x76')](_0x1ddc6d,_0x468694)]);}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')]('formatBlock',_0x47e4('0x7'),_0x47e4('0x1f'),_0x3bcbb8),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')]('insertion','convertInlineImageToBlock',_0x47e4('0x1f'),_0x3bcbb8)),_0x20bc1d['plugins'][_0x47e4('0x3e')](_0x47e4('0x3c'))&&(_0x26a978['enableCommand'](_0x47e4('0x2f'),(_0x420cf2,_0x22afff)=>{const _0x3aa95e=_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')]('ImageCaptionUtils');let _0x79a594=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d['model'][_0x47e4('0x47')][_0x47e4('0x37')]),_0x3b874a=_0x3aa95e[_0x47e4('0x24')](_0x79a594);_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{if(_0x3b874a)return void _0x26a978[_0x47e4('0x29')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3')](_0x3b874a));const _0x575c11=_0x56a0e5[_0x47e4('0x54')](_0x79a594);_0x420cf2(_0x22afff),_0x79a594=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')]['document'][_0x47e4('0x37')]),_0x3b874a=_0x3aa95e[_0x47e4('0x24')](_0x79a594),_0x26a978[_0x47e4('0x5e')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3')](_0x3b874a),_0x575c11?null:_0x47e4('0x16'));});}),_0x26a978[_0x47e4('0x31')]['registerCustomCallback'](_0x47e4('0x14'),'imageCaption',_0x47e4('0x1f'),_0x3bcbb8)),_0x20bc1d[_0x47e4('0x4f')]['has'](_0x47e4('0x6d'))){_0x26a978[_0x47e4('0x27')](_0x47e4('0x77'),(_0x4bfc61,_0x55f5f4)=>{const _0x2b3f6a=_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')](_0x47e4('0x32'))['me'],_0x4eae08=_0x20bc1d[_0x47e4('0x18')][_0x47e4('0x6a')](_0x47e4('0x77'));let _0x2684c3=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),_0x470413=_0x20bc1d['model'][_0x47e4('0x3')](_0x2684c3),_0x464480=_0x4eae08['value'];if(_0x464480==_0x55f5f4[_0x47e4('0x41')])return;const _0x155f3b={'commandName':'imageStyle','commandParams':[_0x55f5f4],'formatGroupId':_0xb511d0()};_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{if(_0x26a978['getSuggestions']()[_0x47e4('0xe')](_0x4cd7a5=>_0x4cd7a5[_0x47e4('0x63')]&&_0x2b3f6a==_0x4cd7a5['author']&&(_0x47e4('0xb')==_0x4cd7a5['type']||_0x47e4('0x61')==_0x4cd7a5[_0x47e4('0x43')])&&(_0x47e4('0x2d')==_0x4cd7a5[_0x47e4('0x30')]||'imageStylePostApply'==_0x4cd7a5[_0x47e4('0x30')])&&_0x4cd7a5[_0x47e4('0x4a')]()[_0x47e4('0x68')](_0x470413))[_0x47e4('0x4c')](_0x4c8742=>_0x26a978['discardSuggestion'](_0x4c8742[_0x47e4('0x8')])),_0x2684c3=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),_0x470413=_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3')](_0x2684c3),_0x4eae08[_0x47e4('0x19')](),_0x20bc1d[_0x47e4('0x18')][_0x47e4('0x6a')](_0x47e4('0x51'))[_0x47e4('0x19')](),_0x20bc1d['commands'][_0x47e4('0x6a')](_0x47e4('0x5b'))[_0x47e4('0x19')](),_0x464480=_0x4eae08['value'],_0x464480!=_0x55f5f4[_0x47e4('0x41')])return _0x56a0e5[_0x47e4('0x65')](_0x2684c3)&&_0x4eae08[_0x47e4('0x6b')](_0x55f5f4[_0x47e4('0x41')],_0x2684c3)?(_0x4bfc61(_0x55f5f4),_0x2684c3=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),void _0x26a978['markBlockFormat'](_0x2684c3,{..._0x155f3b,'commandReversedParams':[{'value':_0x464480||null}]},[],_0x47e4('0x2d'))):void(_0x56a0e5[_0x47e4('0x54')](_0x2684c3)?_0x26a978[_0x47e4('0x70')](_0x2684c3,_0x155f3b,[],_0x47e4('0x58')):_0x26a978[_0x47e4('0x22')](_0x470413,_0x155f3b,_0x47e4('0x58')));});});for(const _0x29dc0b of _0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')]('ImageStyleEditing')['normalizedStyles'])_0x247065[_0x29dc0b[_0x47e4('0x40')]]=_0x29dc0b[_0x47e4('0x57')]['toLowerCase']();_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x2d'),_0x47e4('0x6c'),()=>{}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x58'),_0x47e4('0x6c'),()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0x61'),_0x47e4('0x58'),_0x47e4('0x6c'),()=>{}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),'imageStylePreApply',_0x47e4('0x64'),()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x2d'),_0x47e4('0x1b'),(_0x577b27,_0x25a4f8)=>{_0x26a978[_0x47e4('0x31')]['getSuggestionCallback'](_0x47e4('0xb'),'',_0x47e4('0x64'))(_0x577b27,{'commandName':_0x25a4f8['commandName'],'commandParams':_0x25a4f8[_0x47e4('0x5d')]});}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x2d'),_0x47e4('0x1f'),_0x3bcbb8);}const _0x1ddc98=[{'type':_0x47e4('0xb'),'subType':_0x47e4('0x2d')},{'type':_0x47e4('0x14'),'subType':_0x47e4('0x16')},{'type':_0x47e4('0xb'),'subType':'convertInlineImageToBlock'},{'type':_0x47e4('0x14'),'subType':'convertInlineImageToBlock'}];function _0x3f5eb8(_0x4158dc,_0x383b56){const _0x12336a=_0x1ddc98[_0x47e4('0x45')](({type:_0x3e200e,subType:_0x1496d4})=>_0x4158dc[_0x47e4('0x43')]==_0x3e200e&&_0x4158dc[_0x47e4('0x30')]==_0x1496d4),_0x5f065b=_0x1ddc98[_0x47e4('0x45')](({type:_0x2fbdc2,subType:_0x638628})=>_0x383b56[_0x47e4('0x43')]==_0x2fbdc2&&_0x383b56['subType']==_0x638628);if(_0x12336a<0x0||_0x5f065b<0x0)return!0x1;const _0x5bd65a=_0x4158dc['getFirstRange'](),_0x33c763=_0x383b56[_0x47e4('0x4a')]();if((0x0==_0x12336a||0x1==_0x12336a)&&0x2==_0x5f065b&&_0x5bd65a[_0x47e4('0x2a')](_0x33c763))return!0x0;if(0x2==_0x12336a&&0x3==_0x5f065b){const _0x550bbf=_0x26a978[_0x47e4('0x74')](_0x5bd65a,_0x47e4('0x14'))[_0x47e4('0xe')](({suggestion:_0x57c19a,meta:_0x326134})=>_0x326134[_0x47e4('0x12')]&&_0x47e4('0x7')==_0x57c19a[_0x47e4('0x30')]);if(_0x550bbf[_0x47e4('0x6f')]>0x1&&_0x33c763[_0x47e4('0x13')]['isEqual'](_0x5bd65a[_0x47e4('0x6')]))return!0x0;if(0x1==_0x550bbf[_0x47e4('0x6f')]&&(_0x5bd65a[_0x47e4('0x6')][_0x47e4('0x68')](_0x33c763[_0x47e4('0x13')])||_0x5bd65a[_0x47e4('0x13')][_0x47e4('0x68')](_0x33c763[_0x47e4('0x6')])))return!0x0;}if(0x3==_0x12336a&&0x3==_0x5f065b&&_0x5bd65a[_0x47e4('0x6')][_0x47e4('0x39')](_0x33c763[_0x47e4('0x6')])){const _0x1397e9=_0x5bd65a[_0x47e4('0x13')][_0x47e4('0x26')],_0xf774d9=_0x33c763[_0x47e4('0x6')][_0x47e4('0x2c')];return _0x56a0e5[_0x47e4('0x54')](_0x1397e9)&&_0x1397e9===_0xf774d9;}return!0x1;}function _0x3bcbb8(_0x4dc3c5,_0x284995){return _0x3f5eb8(_0x4dc3c5,_0x284995)?[_0x4dc3c5,_0x284995]:_0x3f5eb8(_0x284995,_0x4dc3c5)?[_0x284995,_0x4dc3c5]:null;}_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x1e')](()=>{let _0x16a646=!0x1;const _0x4958c2=Array[_0x47e4('0xf')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x1c')][_0x47e4('0x69')]());for(const {name:_0x1e6919,data:_0x4ea86d}of _0x4958c2){const {group:_0x2bf60c,type:_0x31715e,subType:_0x271f85,id:_0x50bc3b}=_0x26a978[_0x47e4('0x78')](_0x1e6919);if('suggestion'==_0x2bf60c&&_0x26a978['hasSuggestion'](_0x50bc3b)){if(_0x47e4('0xb')==_0x31715e&&('imageStylePreApply'==_0x271f85||'imageStylePostApply'==_0x271f85)){const _0x30dca4=_0x26a978[_0x47e4('0x1d')](_0x50bc3b);if(_0x4ea86d['newRange']){const _0xe13c95=_0x30dca4[_0x47e4('0x4a')]()[_0x47e4('0x15')]();if(_0x56a0e5[_0x47e4('0x54')](_0xe13c95))continue;_0x26a978['discardSuggestion'](_0x30dca4),_0x16a646=!0x0;}}if(_0x47e4('0x14')==_0x31715e&&'imageCaption'==_0x271f85&&!_0x4ea86d[_0x47e4('0x44')]){const _0xaaac51=_0x26a978[_0x47e4('0x1d')](_0x50bc3b);_0xaaac51['next']&&_0xaaac51[_0x47e4('0x10')][_0x47e4('0x63')]&&(_0x26a978[_0x47e4('0xc')](_0xaaac51[_0x47e4('0x10')]),_0x16a646=!0x0);}}}return _0x16a646;}),_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x38'))&&_0x26a978[_0x47e4('0x27')](_0x47e4('0x5c'),(_0x1820a4,_0x2fa6d5)=>{const _0x15c3b4=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d[_0x47e4('0x33')]['document'][_0x47e4('0x37')]);_0x15c3b4[_0x47e4('0x73')](_0x47e4('0x49'))!=_0x2fa6d5[_0x47e4('0x49')]&&_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{_0x26a978['markBlockFormat'](_0x15c3b4,{'commandName':'resizeImage','commandParams':[_0x2fa6d5]});});}),_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x71'))&&_0x26a978[_0x47e4('0x27')](_0x47e4('0x50'),(_0x1f1102,_0x3498a6)=>{const _0x400716=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d['model'][_0x47e4('0x47')][_0x47e4('0x37')]);(_0x400716[_0x47e4('0x53')](_0x47e4('0x3f'))?_0x400716[_0x47e4('0x73')](_0x47e4('0x3f')):'')!=_0x3498a6['newValue']&&_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{_0x26a978[_0x47e4('0x70')](_0x400716,{'commandName':'imageTextAlternative','commandParams':[_0x3498a6]});});}),_0x26a978[_0x47e4('0x6e')]['registerDescriptionCallback'](_0x5208a5=>{if(!!_0x1ddc98[_0x47e4('0x9')](({type:_0x4f860f,subType:_0x3c4429})=>_0x5208a5[_0x47e4('0x43')]==_0x4f860f&&_0x5208a5['subType']==_0x3c4429))return _0x5208a5[_0x47e4('0x2b')]?{}:void 0x0;}),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x28')](_0x3851ea=>{if(_0x47e4('0x14')==_0x3851ea['type']||_0x47e4('0x60')==_0x3851ea[_0x47e4('0x43')]){const _0x3dba8c=_0x3851ea['getContainedElement']();if(_0x3dba8c&&_0x3dba8c['is']('element','caption'))return{'type':_0x47e4('0x14')==_0x3851ea[_0x47e4('0x43')]?'addObject':_0x47e4('0x17'),'element':_0x3dba8c,'quantity':0x1};}}),_0x26a978[_0x47e4('0x6e')]['registerDescriptionCallback'](_0x3b06f8=>_0x47e4('0xb')==_0x3b06f8[_0x47e4('0x43')]&&'convertInlineImageToBlock'==_0x3b06f8[_0x47e4('0x30')]?{'type':_0x47e4('0x0'),'content':_0x47e4('0x56')}:_0x47e4('0xb')==_0x3b06f8[_0x47e4('0x43')]&&_0x47e4('0x4d')==_0x3b06f8[_0x47e4('0x30')]?{'type':_0x47e4('0x0'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x28')](_0x30bfa1=>{const {data:_0x1c910a}=_0x30bfa1;if(_0x1c910a){if('imageStyle'==_0x1c910a[_0x47e4('0x2e')]){const _0x2cda3f=_0x1c910a[_0x47e4('0x67')][0x0]['value'];return _0x4315fb('side'===_0x2cda3f?_0x2f98da(_0x2064d1,_0x47e4('0xd')):_0x247065[_0x2cda3f]||_0x2cda3f);}if(_0x47e4('0x50')==_0x1c910a[_0x47e4('0x2e')]){const _0x542073=_0x1c910a[_0x47e4('0x67')][0x0][_0x47e4('0x42')];return _0x542073?{'type':'format','content':_0x2f98da(_0x2064d1,_0x47e4('0x35'),'\x22'+_0x542073+'\x22')}:{'type':_0x47e4('0x0'),'content':_0x2f98da(_0x2064d1,'*Remove\x20image\x20text\x20alternative*')};}if(_0x47e4('0x5c')==_0x1c910a['commandName']){const _0x2fc4ae=_0x1c910a[_0x47e4('0x67')][0x0][_0x47e4('0x49')];return _0x2fc4ae?{'type':_0x47e4('0x0'),'content':_0x2f98da(_0x2064d1,'*Set\x20image\x20width:*\x20%0',_0x2fc4ae)}:{'type':'format','content':_0x2f98da(_0x2064d1,_0x47e4('0x55'))};}}function _0x4315fb(_0x4565fb){return{'type':'format','content':_0x2f98da(_0x2064d1,'*Format:*\x20%0',_0x4565fb)};}});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/imagereplace
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1aed=['registerCustomCallback','get','data','markBlockFormat','_suggestionFactory','format','subType','plugins','editor','TrackChangesEditing','getSelectedElement','handleSuggestionDescription','change','replaceImageSource','commandParams','afterInit','source','handleReplaceImageCommand','document','locale','Users','discard','getContainedElement','author','getSuggestions','model','ImageEditing','commandName','getAttribute','accept','registerDescriptionCallback','getSuggestionCallback','formatBlock','has','selection'];(function(_0x4af41e,_0x1aed68){const _0x1e6405=function(_0x500032){while(--_0x500032){_0x4af41e['push'](_0x4af41e['shift']());}};_0x1e6405(++_0x1aed68);}(_0x1aed,0x19f));const _0x1e64=function(_0x4af41e,_0x1aed68){_0x4af41e=_0x4af41e-0x0;let _0x1e6405=_0x1aed[_0x4af41e];return _0x1e6405;};import{Plugin as _0x41e6fa}from'ckeditor5/src/core';import{getTranslation as _0x36e29d}from'../utils/common-translations';export default class Y extends _0x41e6fa{[_0x1e64('0x14')](){if(!this[_0x1e64('0xd')]['plugins'][_0x1e64('0x3')](_0x1e64('0x1f')))return;const _0x3a7d4b=this[_0x1e64('0xd')][_0x1e64('0xc')][_0x1e64('0x6')](_0x1e64('0xe'));_0x3a7d4b['enableCommand'](_0x1e64('0x12'),(_0x1a82d9,_0xe6d4c6)=>this[_0x1e64('0x16')](_0x1a82d9,_0xe6d4c6)),_0x3a7d4b[_0x1e64('0x9')][_0x1e64('0x5')](_0x1e64('0x2'),'replaceImageSource',_0x1e64('0x22'),_0x3a7d4b['_suggestionFactory']['getSuggestionCallback'](_0x1e64('0x2'),null,_0x1e64('0x1a'))),_0x3a7d4b[_0x1e64('0x9')][_0x1e64('0x5')]('formatBlock',_0x1e64('0x12'),_0x1e64('0x1a'),_0x3a7d4b[_0x1e64('0x9')][_0x1e64('0x1')](_0x1e64('0x2'),null,'accept')),_0x3a7d4b['_descriptionFactory'][_0x1e64('0x0')](_0x331626=>this[_0x1e64('0x10')](_0x331626));}[_0x1e64('0x16')](_0xe4475,_0x1f1a20){const _0x40c862=this[_0x1e64('0xd')][_0x1e64('0xc')][_0x1e64('0x6')]('TrackChangesEditing'),_0x5dd732=this[_0x1e64('0xd')][_0x1e64('0x1e')][_0x1e64('0x17')][_0x1e64('0x4')][_0x1e64('0xf')]();this['editor']['model'][_0x1e64('0x11')](()=>{let _0x1fd171=_0x5dd732[_0x1e64('0x21')]('src');const _0x228db4=this['editor'][_0x1e64('0xc')][_0x1e64('0x6')](_0x1e64('0x19'))['me'];for(const _0x5a3d66 of _0x40c862[_0x1e64('0x1d')]({'skipNotAttached':!0x0})){const _0x418090=_0x5a3d66[_0x1e64('0x1b')]();if('replaceImageSource'===_0x5a3d66[_0x1e64('0xb')]&&_0x418090===_0x5dd732){_0x5a3d66[_0x1e64('0x1c')]!==_0x228db4&&_0x5a3d66[_0x1e64('0x1a')](),_0x1fd171=_0x5a3d66[_0x1e64('0x7')][_0x1e64('0x13')][0x0][_0x1e64('0x15')];break;}}_0xe4475(_0x1f1a20),_0x40c862[_0x1e64('0x8')](_0x5dd732,{'commandName':'replaceImageSource','commandParams':[{'source':_0x1fd171}]},[],_0x1e64('0x12'));});}[_0x1e64('0x10')](_0x14c56d){const {data:_0x420dde}=_0x14c56d;if(_0x420dde&&_0x1e64('0x12')===_0x420dde[_0x1e64('0x20')]){const _0x30c618='*Format:*\x20replace\x20image\x20URL';return{'type':_0x1e64('0xa'),'content':_0x36e29d(this['editor'][_0x1e64('0x18')],_0x30c618)};}}}
23
+ const _0x2152=['selection','model','discard','document','data','commandName','*Format:*\x20replace\x20image\x20URL','editor','formatBlock','replaceImageSource','accept','enableCommand','handleSuggestionDescription','getAttribute','subType','getContainedElement','markBlockFormat','TrackChangesEditing','_suggestionFactory','change','format','_descriptionFactory','commandParams','registerCustomCallback','get','handleReplaceImageCommand','plugins','has','locale','getSuggestionCallback'];(function(_0xb4bb47,_0x21526f){const _0x132ea7=function(_0x1be2bb){while(--_0x1be2bb){_0xb4bb47['push'](_0xb4bb47['shift']());}};_0x132ea7(++_0x21526f);}(_0x2152,0x93));const _0x132e=function(_0xb4bb47,_0x21526f){_0xb4bb47=_0xb4bb47-0x0;let _0x132ea7=_0x2152[_0xb4bb47];return _0x132ea7;};import{Plugin as _0x5382e2}from'ckeditor5/src/core';import{getTranslation as _0x2776b0}from'../utils/common-translations';export default class Y extends _0x5382e2{['afterInit'](){if(!this[_0x132e('0xa')][_0x132e('0x1d')][_0x132e('0x0')]('ImageEditing'))return;const _0x229ba1=this[_0x132e('0xa')][_0x132e('0x1d')][_0x132e('0x1b')](_0x132e('0x14'));_0x229ba1[_0x132e('0xe')]('replaceImageSource',(_0x2fbc19,_0x1c474f)=>this[_0x132e('0x1c')](_0x2fbc19,_0x1c474f)),_0x229ba1[_0x132e('0x15')][_0x132e('0x1a')](_0x132e('0xb'),'replaceImageSource','accept',_0x229ba1[_0x132e('0x15')][_0x132e('0x2')](_0x132e('0xb'),null,_0x132e('0x5'))),_0x229ba1['_suggestionFactory'][_0x132e('0x1a')](_0x132e('0xb'),_0x132e('0xc'),'discard',_0x229ba1[_0x132e('0x15')][_0x132e('0x2')](_0x132e('0xb'),null,_0x132e('0xd'))),_0x229ba1[_0x132e('0x18')]['registerDescriptionCallback'](_0x1f5207=>this[_0x132e('0xf')](_0x1f5207));}['handleReplaceImageCommand'](_0x2abf21,_0x3ef8b3){const _0x256f0a=this[_0x132e('0xa')]['plugins'][_0x132e('0x1b')]('TrackChangesEditing'),_0x407f3c=this[_0x132e('0xa')]['model'][_0x132e('0x6')][_0x132e('0x3')]['getSelectedElement']();this[_0x132e('0xa')][_0x132e('0x4')][_0x132e('0x16')](()=>{let _0x489ec1=_0x407f3c[_0x132e('0x10')]('src');const _0x1408b3=this[_0x132e('0xa')]['plugins']['get']('Users')['me'];for(const _0x58518a of _0x256f0a['getSuggestions']({'skipNotAttached':!0x0})){const _0x24d406=_0x58518a[_0x132e('0x12')]();if(_0x132e('0xc')===_0x58518a[_0x132e('0x11')]&&_0x24d406===_0x407f3c){_0x58518a['author']!==_0x1408b3&&_0x58518a[_0x132e('0x5')](),_0x489ec1=_0x58518a[_0x132e('0x7')][_0x132e('0x19')][0x0]['source'];break;}}_0x2abf21(_0x3ef8b3),_0x256f0a[_0x132e('0x13')](_0x407f3c,{'commandName':'replaceImageSource','commandParams':[{'source':_0x489ec1}]},[],'replaceImageSource');});}[_0x132e('0xf')](_0x12cf91){const {data:_0x3ce818}=_0x12cf91;if(_0x3ce818&&_0x132e('0xc')===_0x3ce818[_0x132e('0x8')]){const _0x4b076d=_0x132e('0x9');return{'type':_0x132e('0x17'),'content':_0x2776b0(this[_0x132e('0xa')][_0x132e('0x1')],_0x4b076d)};}}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/importword
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f59=['bind','commands','lowest','value','high','execute','afterInit','get','dataInsert','plugins','Users','_handleImportedData','TrackChangesEditing','track_changes','_trackChangesExecuted','importWord','trackChanges','_setSuggestionData','listenTo','editor','_trackChangesValueDuringImport'];(function(_0x448156,_0x4f59df){const _0x558a71=function(_0x1b191b){while(--_0x1b191b){_0x448156['push'](_0x448156['shift']());}};_0x558a71(++_0x4f59df);}(_0x4f59,0x184));const _0x558a=function(_0x448156,_0x4f59df){_0x448156=_0x448156-0x0;let _0x558a71=_0x4f59[_0x448156];return _0x558a71;};import{Plugin as _0x4b817e}from'ckeditor5/src/core';export default class Z extends _0x4b817e{constructor(_0x2b7328){super(_0x2b7328),this['_trackChangesValueDuringImport']=!0x1,this[_0x558a('0x4')]=!0x1;}[_0x558a('0x11')](){const _0x1264de=this['editor'],_0x35b2e7=_0x1264de['commands']['get'](_0x558a('0x5')),_0x54da2a=_0x1264de[_0x558a('0xc')]['get'](_0x558a('0x6'));_0x35b2e7&&(_0x35b2e7['on'](_0x558a('0x10'),(_0x1c8999,[,_0xf0d267])=>{this[_0x558a('0xa')]=_0x54da2a[_0x558a('0xe')],_0xf0d267['collaboration_features'][_0x558a('0x3')]=!this[_0x558a('0xa')];},{'priority':_0x558a('0xf')}),this[_0x558a('0x8')](_0x35b2e7,'dataInsert',this[_0x558a('0x1')][_0x558a('0xb')](this)),this['listenTo'](_0x35b2e7,_0x558a('0x13'),()=>{this[_0x558a('0x4')]&&(_0x54da2a[_0x558a('0x10')](),this['_trackChangesExecuted']=!0x1);},{'priority':_0x558a('0xd')}),_0x1264de[_0x558a('0x14')][_0x558a('0x12')]('TrackChangesEditing')['enableCommand']('importWord'));}[_0x558a('0x1')](_0x54725b,_0x28b082){const {suggestions:_0x36eec4}=_0x28b082,_0x5eb43c=this[_0x558a('0x9')][_0x558a('0xc')][_0x558a('0x12')]('trackChanges'),_0x509e22=_0x5eb43c['value'];this[_0x558a('0xa')]!==_0x509e22&&(_0x5eb43c[_0x558a('0x10')](),this[_0x558a('0x4')]=!0x0),_0x36eec4&&_0x36eec4['forEach'](({id:_0x20a030,type:_0x1c65f2,author:_0x4ecab6,created_at:_0xeb68b8})=>{const _0x701228={'id':_0x20a030,'type':_0x1c65f2,'authorId':this[_0x558a('0x9')][_0x558a('0x14')]['get'](_0x558a('0x0'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4ecab6,'createdAt':_0xeb68b8?new Date(_0xeb68b8):new Date(),'source':_0x558a('0x5')}}};this[_0x558a('0x9')][_0x558a('0x14')]['get'](_0x558a('0x2'))[_0x558a('0x7')](_0x701228);});}}
23
+ const _0x1481=['get','commands','execute','plugins','dataInsert','track_changes','TrackChangesEditing','importWord','_trackChangesExecuted','_setSuggestionData','_handleImportedData','lowest','high','listenTo','afterInit','_trackChangesValueDuringImport','editor','trackChanges','value'];(function(_0x3172ef,_0x148136){const _0x4bfed8=function(_0x2b627c){while(--_0x2b627c){_0x3172ef['push'](_0x3172ef['shift']());}};_0x4bfed8(++_0x148136);}(_0x1481,0x133));const _0x4bfe=function(_0x3172ef,_0x148136){_0x3172ef=_0x3172ef-0x0;let _0x4bfed8=_0x1481[_0x3172ef];return _0x4bfed8;};import{Plugin as _0x470fee}from'ckeditor5/src/core';export default class Z extends _0x470fee{constructor(_0xd27ade){super(_0xd27ade),this['_trackChangesValueDuringImport']=!0x1,this[_0x4bfe('0x5')]=!0x1;}[_0x4bfe('0xb')](){const _0x1999ac=this['editor'],_0xd2df56=_0x1999ac[_0x4bfe('0x11')][_0x4bfe('0x10')]('importWord'),_0x27d9fc=_0x1999ac[_0x4bfe('0x11')][_0x4bfe('0x10')](_0x4bfe('0xe'));_0xd2df56&&(_0xd2df56['on']('execute',(_0x5f1e04,[,_0x1be8f2])=>{this[_0x4bfe('0xc')]=_0x27d9fc[_0x4bfe('0xf')],_0x1be8f2['collaboration_features'][_0x4bfe('0x2')]=!this[_0x4bfe('0xc')];},{'priority':_0x4bfe('0x9')}),this[_0x4bfe('0xa')](_0xd2df56,'dataInsert',this[_0x4bfe('0x7')]['bind'](this)),this[_0x4bfe('0xa')](_0xd2df56,_0x4bfe('0x1'),()=>{this[_0x4bfe('0x5')]&&(_0x27d9fc['execute'](),this[_0x4bfe('0x5')]=!0x1);},{'priority':_0x4bfe('0x8')}),_0x1999ac[_0x4bfe('0x0')][_0x4bfe('0x10')](_0x4bfe('0x3'))['enableCommand'](_0x4bfe('0x4')));}['_handleImportedData'](_0x3c49b7,_0x2cbab4){const {suggestions:_0x257158}=_0x2cbab4,_0x1173e7=this[_0x4bfe('0xd')][_0x4bfe('0x11')]['get'](_0x4bfe('0xe')),_0x320616=_0x1173e7[_0x4bfe('0xf')];this[_0x4bfe('0xc')]!==_0x320616&&(_0x1173e7[_0x4bfe('0x12')](),this[_0x4bfe('0x5')]=!0x0),_0x257158&&_0x257158['forEach'](({id:_0x5f46ba,type:_0xe3b9ec,author:_0x321649,created_at:_0x3ef5cf})=>{const _0x9d91b2={'id':_0x5f46ba,'type':_0xe3b9ec,'authorId':this[_0x4bfe('0xd')][_0x4bfe('0x0')][_0x4bfe('0x10')]('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x321649,'createdAt':_0x3ef5cf?new Date(_0x3ef5cf):new Date(),'source':_0x4bfe('0x4')}}};this[_0x4bfe('0xd')][_0x4bfe('0x0')]['get'](_0x4bfe('0x3'))[_0x4bfe('0x6')](_0x9d91b2);});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/indent
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xdf83=['indent','*Outdent:*\x20%0','format','editor','has','get','change','_descriptionFactory','markBlockFormat','commandName','from','locale','selection','getSelectedBlocks','outdent','TrackChangesEditing','checkAttribute','indentBlock','plugins','blockIndent','model','filter','*Indent:*\x20%0','IndentEditing','outdentBlock','afterInit','enableCommand'];(function(_0x5d96c4,_0xdf83c){const _0x361b9c=function(_0x4afd48){while(--_0x4afd48){_0x5d96c4['push'](_0x5d96c4['shift']());}};_0x361b9c(++_0xdf83c);}(_0xdf83,0x1ed));const _0x361b=function(_0x5d96c4,_0xdf83c){_0x5d96c4=_0x5d96c4-0x0;let _0x361b9c=_0xdf83[_0x5d96c4];return _0x361b9c;};import{Plugin as _0x29bf44}from'ckeditor5/src/core';import{getTranslation as _0x239df1}from'../utils/common-translations';export default class tt extends _0x29bf44{[_0x361b('0x12')](){const _0x2e2c5d=this[_0x361b('0x17')],_0x3e9ac0=_0x2e2c5d[_0x361b('0xb')][_0x361b('0x19')](_0x361b('0x8'));_0x2e2c5d[_0x361b('0xb')][_0x361b('0x18')](_0x361b('0x10'))&&(_0x3e9ac0[_0x361b('0x13')](_0x361b('0x14')),_0x3e9ac0[_0x361b('0x13')](_0x361b('0x7')));const _0x552bff=_0x2e2c5d[_0x361b('0x4')];if(_0x2e2c5d[_0x361b('0xb')][_0x361b('0x18')]('IndentBlock')){for(const _0x43a304 of['indentBlock','outdentBlock'])_0x3e9ac0[_0x361b('0x13')](_0x43a304,()=>{const _0x4ce3cf=Array[_0x361b('0x3')](this[_0x361b('0x17')][_0x361b('0xd')]['document'][_0x361b('0x5')][_0x361b('0x6')]())[_0x361b('0xe')](_0x43a537=>this['editor'][_0x361b('0xd')]['schema'][_0x361b('0x9')](_0x43a537,_0x361b('0xc')));_0x2e2c5d[_0x361b('0xd')][_0x361b('0x1a')](()=>{for(const _0x8413b7 of _0x4ce3cf)_0x3e9ac0[_0x361b('0x1')](_0x8413b7,{'commandName':_0x43a304,'commandParams':[{'value':''}],'formatGroupId':_0x361b('0xa')});});});_0x3e9ac0[_0x361b('0x0')]['registerDescriptionCallback'](_0x3ca3b7=>{const {data:_0x203a6d}=_0x3ca3b7;if(!_0x203a6d)return;if('indentBlock'!=_0x203a6d[_0x361b('0x2')]&&_0x361b('0x11')!=_0x203a6d[_0x361b('0x2')])return;const _0xc0eb28=_0x3ca3b7['getItems']()[0x0],_0x1ca2c5=_0x3e9ac0['_descriptionFactory']['getItemLabel'](_0xc0eb28);return _0x361b('0xa')==_0x203a6d[_0x361b('0x2')]?{'type':_0x361b('0x16'),'content':_0x239df1(_0x552bff,_0x361b('0xf'),_0x1ca2c5)}:'outdentBlock'==_0x203a6d['commandName']?{'type':_0x361b('0x16'),'content':_0x239df1(_0x552bff,_0x361b('0x15'),_0x1ca2c5)}:void 0x0;});}}}
23
+ const _0x45c8=['model','schema','outdent','IndentEditing','enableCommand','getItemLabel','indent','locale','change','TrackChangesEditing','selection','from','getItems','*Indent:*\x20%0','blockIndent','editor','commandName','markBlockFormat','_descriptionFactory','IndentBlock','*Outdent:*\x20%0','outdentBlock','document','get','filter','format','plugins','has','indentBlock'];(function(_0x4e278e,_0x45c8c6){const _0x2373fb=function(_0x407d04){while(--_0x407d04){_0x4e278e['push'](_0x4e278e['shift']());}};_0x2373fb(++_0x45c8c6);}(_0x45c8,0x1ac));const _0x2373=function(_0x4e278e,_0x45c8c6){_0x4e278e=_0x4e278e-0x0;let _0x2373fb=_0x45c8[_0x4e278e];return _0x2373fb;};import{Plugin as _0x243f2e}from'ckeditor5/src/core';import{getTranslation as _0x426615}from'../utils/common-translations';export default class tt extends _0x243f2e{['afterInit'](){const _0x29fff2=this[_0x2373('0x16')],_0x40e5db=_0x29fff2['plugins'][_0x2373('0x1')](_0x2373('0x10'));_0x29fff2['plugins']['has'](_0x2373('0xa'))&&(_0x40e5db[_0x2373('0xb')](_0x2373('0xd')),_0x40e5db[_0x2373('0xb')](_0x2373('0x9')));const _0x541ca2=_0x29fff2[_0x2373('0xe')];if(_0x29fff2[_0x2373('0x4')][_0x2373('0x5')](_0x2373('0x1a'))){for(const _0x1cb849 of[_0x2373('0x6'),_0x2373('0x1c')])_0x40e5db[_0x2373('0xb')](_0x1cb849,()=>{const _0x4e988b=Array[_0x2373('0x12')](this[_0x2373('0x16')][_0x2373('0x7')][_0x2373('0x0')][_0x2373('0x11')]['getSelectedBlocks']())[_0x2373('0x2')](_0x419e25=>this[_0x2373('0x16')][_0x2373('0x7')][_0x2373('0x8')]['checkAttribute'](_0x419e25,_0x2373('0x15')));_0x29fff2[_0x2373('0x7')][_0x2373('0xf')](()=>{for(const _0x169aaa of _0x4e988b)_0x40e5db[_0x2373('0x18')](_0x169aaa,{'commandName':_0x1cb849,'commandParams':[{'value':''}],'formatGroupId':_0x2373('0x6')});});});_0x40e5db['_descriptionFactory']['registerDescriptionCallback'](_0x1d1ece=>{const {data:_0x4ed002}=_0x1d1ece;if(!_0x4ed002)return;if(_0x2373('0x6')!=_0x4ed002['commandName']&&'outdentBlock'!=_0x4ed002['commandName'])return;const _0x24277f=_0x1d1ece[_0x2373('0x13')]()[0x0],_0x131a84=_0x40e5db[_0x2373('0x19')][_0x2373('0xc')](_0x24277f);return _0x2373('0x6')==_0x4ed002[_0x2373('0x17')]?{'type':_0x2373('0x3'),'content':_0x426615(_0x541ca2,_0x2373('0x14'),_0x131a84)}:_0x2373('0x1c')==_0x4ed002[_0x2373('0x17')]?{'type':_0x2373('0x3'),'content':_0x426615(_0x541ca2,_0x2373('0x1b'),_0x131a84)}:void 0x0;});}}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/inputcommand/inputcommand
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2c35=['get','init','input','TrackChangesEditing','editor','enableCommand','requires'];(function(_0x543768,_0x2c3595){var _0x7c29a4=function(_0xac8996){while(--_0xac8996){_0x543768['push'](_0x543768['shift']());}};_0x7c29a4(++_0x2c3595);}(_0x2c35,0x7a));var _0x7c29=function(_0x543768,_0x2c3595){_0x543768=_0x543768-0x0;var _0x7c29a4=_0x2c35[_0x543768];return _0x7c29a4;};import{Plugin as _0x107b9e}from'ckeditor5/src/core';import{Input as _0x4309f7}from'ckeditor5/src/typing';export default class it extends _0x107b9e{static get[_0x7c29('0x3')](){return[_0x4309f7];}[_0x7c29('0x5')](){this[_0x7c29('0x1')]['plugins'][_0x7c29('0x4')](_0x7c29('0x0'))[_0x7c29('0x2')](_0x7c29('0x6'));}}
23
+ var _0x3566=['TrackChangesEditing','init','plugins','get','editor','requires','input'];(function(_0x591e14,_0x35665b){var _0x358bab=function(_0x27d327){while(--_0x27d327){_0x591e14['push'](_0x591e14['shift']());}};_0x358bab(++_0x35665b);}(_0x3566,0x1da));var _0x358b=function(_0x591e14,_0x35665b){_0x591e14=_0x591e14-0x0;var _0x358bab=_0x3566[_0x591e14];return _0x358bab;};import{Plugin as _0x9a7fa2}from'ckeditor5/src/core';import{Input as _0x55068e}from'ckeditor5/src/typing';export default class it extends _0x9a7fa2{static get[_0x358b('0x0')](){return[_0x55068e];}[_0x358b('0x3')](){this[_0x358b('0x6')][_0x358b('0x4')][_0x358b('0x5')](_0x358b('0x2'))['enableCommand'](_0x358b('0x1'));}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/link
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x511a=['TrackChangesEditing','link','has','from','LinkEditing','format','getFirstPosition','getAttribute','model','locale','commandName','hasAttribute','selection','linkHref','document','getRanges','isCollapsed','plugins','getFirstRange','unlink','*Remove\x20link*','change','registerDescriptionCallback','get','enableCommand','commandParams'];(function(_0x330529,_0x511a84){const _0x39e50e=function(_0x14f9bc){while(--_0x14f9bc){_0x330529['push'](_0x330529['shift']());}};_0x39e50e(++_0x511a84);}(_0x511a,0x13a));const _0x39e5=function(_0x330529,_0x511a84){_0x330529=_0x330529-0x0;let _0x39e50e=_0x511a[_0x330529];return _0x39e50e;};import{Plugin as _0x43aefa}from'ckeditor5/src/core';import{findAttributeRange as _0xf24318}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x1e07d6}from'./utils';import{getTranslation as _0x51948e}from'../utils/common-translations';export default class et extends _0x43aefa{['afterInit'](){const _0x438524=this['editor'];if(!_0x438524[_0x39e5('0xf')][_0x39e5('0x0')](_0x39e5('0x2')))return;const _0xab57e4=_0x438524[_0x39e5('0xf')][_0x39e5('0x15')](_0x39e5('0x18'));_0xab57e4[_0x39e5('0x16')](_0x39e5('0x19'),(_0x54a45b,_0x3fa7d3)=>{const _0x42f106=_0x438524[_0x39e5('0x6')]['document'][_0x39e5('0xa')];let _0x59ca94=[];if(_0x42f106[_0x39e5('0xe')]){if(!_0x42f106[_0x39e5('0x9')](_0x39e5('0xb')))return void _0x54a45b(_0x3fa7d3);{const _0x1fe819=_0xf24318(_0x42f106[_0x39e5('0x4')](),_0x39e5('0xb'),_0x42f106[_0x39e5('0x5')]('linkHref'),_0x438524[_0x39e5('0x6')]);_0x59ca94=[_0x1fe819];}}else _0x59ca94=Array[_0x39e5('0x1')](_0x42f106[_0x39e5('0xd')]());_0x438524[_0x39e5('0x6')][_0x39e5('0x13')](()=>{for(const _0x428de0 of _0x59ca94)_0xab57e4['markInlineFormat'](_0x428de0,{'commandName':'link','commandParams':[_0x3fa7d3]});});}),_0xab57e4[_0x39e5('0x16')](_0x39e5('0x11'),()=>{const _0x5b712b=this['editor'][_0x39e5('0x6')],_0x458844=_0x5b712b[_0x39e5('0xc')]['selection'];_0x5b712b['change'](()=>{let _0xb9aabb=[];if(_0x458844[_0x39e5('0xe')])_0xb9aabb=[_0xf24318(_0x458844[_0x39e5('0x4')](),_0x39e5('0xb'),_0x458844[_0x39e5('0x5')](_0x39e5('0xb')),_0x438524[_0x39e5('0x6')])];else _0xb9aabb=_0x1e07d6(_0x39e5('0xb'),_0x458844[_0x39e5('0x10')](),_0x438524[_0x39e5('0x6')]);for(const _0x5331c0 of _0xb9aabb)_0xab57e4['markInlineFormat'](_0x5331c0,{'commandName':_0x39e5('0x11'),'commandParams':[]});});}),_0xab57e4['_descriptionFactory'][_0x39e5('0x14')](_0x3c6de6=>{const {data:_0xa1f8f0}=_0x3c6de6,_0x21771b=_0x438524[_0x39e5('0x7')];if(_0xa1f8f0){if(_0x39e5('0x19')==_0xa1f8f0['commandName']){const _0x1712ab=_0xa1f8f0[_0x39e5('0x17')][0x0];return{'type':_0x39e5('0x3'),'content':_0x51948e(_0x21771b,'*Set\x20link:*\x20%0','\x22'+_0x1712ab+'\x22')};}return _0x39e5('0x11')==_0xa1f8f0[_0x39e5('0x8')]?{'type':'format','content':_0x51948e(_0x21771b,_0x39e5('0x12'))}:void 0x0;}});}}
23
+ const _0x1e3e=['getRanges','selection','model','link','editor','linkHref','TrackChangesEditing','getAttribute','enableCommand','from','LinkEditing','*Set\x20link:*\x20%0','markInlineFormat','locale','document','getFirstRange','has','format','*Remove\x20link*','get','afterInit','_descriptionFactory','registerDescriptionCallback','commandParams','plugins','unlink','hasAttribute'];(function(_0x326921,_0x1e3eeb){const _0x49e24f=function(_0x2d5b67){while(--_0x2d5b67){_0x326921['push'](_0x326921['shift']());}};_0x49e24f(++_0x1e3eeb);}(_0x1e3e,0x137));const _0x49e2=function(_0x326921,_0x1e3eeb){_0x326921=_0x326921-0x0;let _0x49e24f=_0x1e3e[_0x326921];return _0x49e24f;};import{Plugin as _0x493c40}from'ckeditor5/src/core';import{findAttributeRange as _0x31ad9a}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x3c7af6}from'./utils';import{getTranslation as _0x1aa905}from'../utils/common-translations';export default class et extends _0x493c40{[_0x49e2('0x6')](){const _0x5b7e3e=this[_0x49e2('0x11')];if(!_0x5b7e3e[_0x49e2('0xa')][_0x49e2('0x2')](_0x49e2('0x17')))return;const _0x3fac09=_0x5b7e3e[_0x49e2('0xa')][_0x49e2('0x5')](_0x49e2('0x13'));_0x3fac09[_0x49e2('0x15')](_0x49e2('0x10'),(_0x354525,_0x4fd626)=>{const _0xadb70d=_0x5b7e3e[_0x49e2('0xf')][_0x49e2('0x0')][_0x49e2('0xe')];let _0xf0b765=[];if(_0xadb70d['isCollapsed']){if(!_0xadb70d[_0x49e2('0xc')](_0x49e2('0x12')))return void _0x354525(_0x4fd626);{const _0x35fb10=_0x31ad9a(_0xadb70d['getFirstPosition'](),'linkHref',_0xadb70d['getAttribute'](_0x49e2('0x12')),_0x5b7e3e['model']);_0xf0b765=[_0x35fb10];}}else _0xf0b765=Array[_0x49e2('0x16')](_0xadb70d[_0x49e2('0xd')]());_0x5b7e3e['model']['change'](()=>{for(const _0x8fecf5 of _0xf0b765)_0x3fac09[_0x49e2('0x19')](_0x8fecf5,{'commandName':_0x49e2('0x10'),'commandParams':[_0x4fd626]});});}),_0x3fac09[_0x49e2('0x15')]('unlink',()=>{const _0x474477=this[_0x49e2('0x11')][_0x49e2('0xf')],_0x2eba19=_0x474477[_0x49e2('0x0')][_0x49e2('0xe')];_0x474477['change'](()=>{let _0x24e4d7=[];if(_0x2eba19['isCollapsed'])_0x24e4d7=[_0x31ad9a(_0x2eba19['getFirstPosition'](),_0x49e2('0x12'),_0x2eba19[_0x49e2('0x14')]('linkHref'),_0x5b7e3e['model'])];else _0x24e4d7=_0x3c7af6(_0x49e2('0x12'),_0x2eba19[_0x49e2('0x1')](),_0x5b7e3e[_0x49e2('0xf')]);for(const _0x3000c1 of _0x24e4d7)_0x3fac09[_0x49e2('0x19')](_0x3000c1,{'commandName':_0x49e2('0xb'),'commandParams':[]});});}),_0x3fac09[_0x49e2('0x7')][_0x49e2('0x8')](_0x1b9b0d=>{const {data:_0x1039e5}=_0x1b9b0d,_0x4d5d3b=_0x5b7e3e[_0x49e2('0x1a')];if(_0x1039e5){if(_0x49e2('0x10')==_0x1039e5['commandName']){const _0x20590d=_0x1039e5[_0x49e2('0x9')][0x0];return{'type':_0x49e2('0x3'),'content':_0x1aa905(_0x4d5d3b,_0x49e2('0x18'),'\x22'+_0x20590d+'\x22')};}return _0x49e2('0xb')==_0x1039e5['commandName']?{'type':_0x49e2('0x3'),'content':_0x1aa905(_0x4d5d3b,_0x49e2('0x4'))}:void 0x0;}});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/list
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2cb5=['markBlockFormat','commands','bulletedList','_selectedElements','execute','has','element','numberedList','change','indentList','slice','*Check\x20item*','findIndex','isObject','model','commandParams','plugins','end','forceValue','selection','push','listIndent','document','createPositionAt','todo','schema','checkTodoList','locale','bulleted','ELEMENT_LIST_ITEM','todoList','format','numbered','createRange','before','editor','previousSibling','listItem','nextSibling','paragraph','value','getSelectedBlocks','add','from','TodoListEditing','commandName','ELEMENT_NUMBERED_LIST','filter','checkChild','getAttribute','blockName','outdentList','enableCommand','name','*Outdent:*\x20%0','_descriptionFactory','get','listType','ELEMENT_TODO_LIST'];(function(_0x3d8f9c,_0x2cb566){const _0x56bc9e=function(_0x49b0b3){while(--_0x49b0b3){_0x3d8f9c['push'](_0x3d8f9c['shift']());}};_0x56bc9e(++_0x2cb566);}(_0x2cb5,0x166));const _0x56bc=function(_0x3d8f9c,_0x2cb566){_0x3d8f9c=_0x3d8f9c-0x0;let _0x56bc9e=_0x2cb5[_0x3d8f9c];return _0x56bc9e;};import{Plugin as _0xbdef79}from'ckeditor5/src/core';import{getTranslation as _0x1e9dba}from'../utils/common-translations';export default class st extends _0xbdef79{['afterInit'](){const _0x596348=this[_0x56bc('0x1f')],_0x57c1b3=_0x596348[_0x56bc('0x17')];if(!_0x596348[_0x56bc('0xc')][_0x56bc('0x1')]('ListEditing'))return;const _0x365562=_0x596348[_0x56bc('0xc')][_0x56bc('0x34')]('TrackChangesEditing'),_0x3c0403=_0x596348[_0x56bc('0xc')]['has'](_0x56bc('0x28'));function _0x130204(_0x11ab6a){return()=>{const _0x3c3f50=_0x596348[_0x56bc('0xa')][_0x56bc('0x12')][_0x56bc('0xf')],_0x83e0cd=_0x596348[_0x56bc('0x38')][_0x56bc('0x34')](_0x11ab6a);if(_0x83e0cd['value'])return void _0x596348[_0x56bc('0x0')](_0x56bc('0x23'),{});const _0x34ba85=_0x11ab6a[_0x56bc('0x6')](0x0,-0x4),_0x5dfe5e=function(_0xffabdb,_0x29adc1,_0x134569){let _0x1859a7=Array[_0x56bc('0x27')](_0xffabdb)['filter'](_0x53e855=>function(_0xbbbab0,_0x14b297){return _0x14b297[_0x56bc('0x2c')](_0xbbbab0['parent'],_0x56bc('0x21'))&&!_0x14b297[_0x56bc('0x9')](_0xbbbab0);}(_0x53e855,_0x134569));_0x1859a7=_0x1859a7['filter'](_0x3d3767=>!_0x3d3767['is']('element',_0x56bc('0x21'))||_0x3d3767[_0x56bc('0x2d')](_0x56bc('0x35'))!=_0x29adc1);const _0x122288=new Set();for(const _0x4ed789 of _0x1859a7)_0x4ed789['is'](_0x56bc('0x2'),_0x56bc('0x21'))?_0x122288[_0x56bc('0x26')](ne(_0x4ed789)):_0x122288[_0x56bc('0x26')](_0x4ed789);return Array[_0x56bc('0x27')](_0x122288);}(_0x3c3f50[_0x56bc('0x25')](),_0x34ba85,_0x596348['model'][_0x56bc('0x15')]);_0x596348['model']['change'](()=>{for(const _0x748dd0 of _0x5dfe5e)_0x365562[_0x56bc('0x37')](_0x748dd0,{'commandName':_0x11ab6a,'commandParams':[{'forceValue':!_0x83e0cd['value']}],'formatGroupId':_0x56bc('0x2e')},oe(_0x748dd0));});};}function _0x36cd18(_0x4931c9){return()=>{const _0x1abb22=function(_0x4ff070){let _0x49f963=Array[_0x56bc('0x27')](_0x4ff070);const _0x3fbf0f=_0x49f963[_0x56bc('0x8')](_0x51c18b=>_0x56bc('0x21')!=_0x51c18b[_0x56bc('0x31')]);return _0x3fbf0f>-0x1&&(_0x49f963=_0x49f963[_0x56bc('0x6')](0x0,_0x3fbf0f)),_0x49f963;}(_0x596348[_0x56bc('0xa')]['document'][_0x56bc('0xf')][_0x56bc('0x25')]()),_0x8b6123=_0x596348[_0x56bc('0xa')][_0x56bc('0x1d')](_0x596348[_0x56bc('0xa')][_0x56bc('0x13')](_0x1abb22[0x0],_0x56bc('0x1e')),_0x596348[_0x56bc('0xa')][_0x56bc('0x13')](_0x1abb22[_0x1abb22['length']-0x1],_0x56bc('0xd')));_0x596348[_0x56bc('0xa')][_0x56bc('0x4')](()=>{_0x365562[_0x56bc('0x37')](_0x8b6123,{'commandName':_0x4931c9,'commandParams':[],'formatGroupId':_0x56bc('0x11')},function(_0x1fb784){const _0x32870f=new Set();for(const _0x1534ea of _0x1fb784){let _0x274886=_0x1534ea[_0x56bc('0x22')];for(;_0x274886&&_0x274886[_0x56bc('0x2d')](_0x56bc('0x11'))>_0x1534ea['getAttribute']('listIndent');)_0x32870f[_0x56bc('0x26')](_0x274886),_0x274886=_0x274886[_0x56bc('0x22')];}return Array[_0x56bc('0x27')](_0x32870f);}(_0x1abb22));});};}_0x365562[_0x56bc('0x30')]('numberedList',_0x130204(_0x56bc('0x3'))),_0x365562[_0x56bc('0x30')](_0x56bc('0x39'),_0x130204(_0x56bc('0x39'))),_0x3c0403&&_0x365562[_0x56bc('0x30')](_0x56bc('0x1a'),_0x130204(_0x56bc('0x1a'))),_0x365562[_0x56bc('0x30')](_0x56bc('0x5'),_0x36cd18(_0x56bc('0x5'))),_0x365562[_0x56bc('0x30')](_0x56bc('0x2f'),_0x36cd18(_0x56bc('0x2f'))),_0x3c0403&&_0x365562[_0x56bc('0x30')](_0x56bc('0x16'),()=>{const _0x4e93c8=_0x596348['commands'][_0x56bc('0x34')](_0x56bc('0x16')),_0x158614=Array[_0x56bc('0x27')](_0x4e93c8[_0x56bc('0x3a')]);_0x158614[_0x56bc('0x2b')](_0x4581e9=>_0x4581e9[_0x56bc('0x2d')]('todoListChecked')!=_0x4e93c8[_0x56bc('0x24')]),_0x596348[_0x56bc('0xa')][_0x56bc('0x4')](()=>{for(const _0x56722c of _0x158614)_0x365562[_0x56bc('0x37')](_0x56722c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4e93c8[_0x56bc('0x24')]}]});});}),_0x365562[_0x56bc('0x33')]['registerElementLabel']('listItem',_0x35d761=>_0x1e9dba(_0x57c1b3,'ELEMENT_LIST_ITEM',_0x35d761)),_0x365562[_0x56bc('0x33')]['registerDescriptionCallback'](_0x5514ff=>{const {data:_0x316815}=_0x5514ff;if(_0x316815){if(_0x56bc('0x3')==_0x316815[_0x56bc('0x29')]||_0x56bc('0x39')==_0x316815[_0x56bc('0x29')]||_0x56bc('0x1a')==_0x316815[_0x56bc('0x29')])switch(_0x316815[_0x56bc('0x29')]['replace']('List','')){case _0x56bc('0x18'):return _0x2fc771(_0x1e9dba(_0x57c1b3,'ELEMENT_BULLETED_LIST'));case _0x56bc('0x1c'):return _0x2fc771(_0x1e9dba(_0x57c1b3,_0x56bc('0x2a')));case _0x56bc('0x14'):return _0x2fc771(_0x1e9dba(_0x57c1b3,_0x56bc('0x36')));}if('indentList'==_0x316815['commandName'])return{'type':_0x56bc('0x1b'),'content':_0x1e9dba(_0x57c1b3,'*Indent:*\x20%0',_0x1e9dba(_0x57c1b3,_0x56bc('0x19')))};if('outdentList'==_0x316815['commandName'])return{'type':_0x56bc('0x1b'),'content':_0x1e9dba(_0x57c1b3,_0x56bc('0x32'),_0x1e9dba(_0x57c1b3,_0x56bc('0x19')))};if('checkTodoList'==_0x316815[_0x56bc('0x29')])return _0x316815[_0x56bc('0xb')][0x0][_0x56bc('0xe')]?{'type':_0x56bc('0x1b'),'content':_0x1e9dba(_0x57c1b3,_0x56bc('0x7'))}:{'type':'format','content':_0x1e9dba(_0x57c1b3,'*Uncheck\x20item*')};}function _0x2fc771(_0x284c43){return{'type':'format','content':_0x1e9dba(_0x57c1b3,'*Change\x20to:*\x20%0',_0x284c43)};}});}}function ne(_0x340edf){const _0xfee45a=_0x340edf[_0x56bc('0x2d')](_0x56bc('0x11'));if(0x0==_0xfee45a)return _0x340edf;let _0x4abd80=_0x340edf;for(;_0x340edf[_0x56bc('0x20')]&&_0x340edf['previousSibling']['is'](_0x56bc('0x2'),_0x56bc('0x21'));){const _0x440bf5=_0x340edf[_0x56bc('0x20')][_0x56bc('0x2d')]('listIndent');if(_0x440bf5==_0xfee45a)_0x4abd80=_0x340edf[_0x56bc('0x20')];else{if(_0x440bf5<_0xfee45a)break;}_0x340edf=_0x340edf[_0x56bc('0x20')];}return _0x4abd80;}function oe(_0x3a1978){const _0x215d71=[];if(_0x3a1978['is'](_0x56bc('0x2'),_0x56bc('0x21'))&&_0x3a1978[_0x56bc('0x2d')](_0x56bc('0x11'))>0x0){let _0x544169=_0x3a1978[_0x56bc('0x22')];for(;_0x544169&&'listItem'==_0x544169[_0x56bc('0x31')]&&_0x544169[_0x56bc('0x2d')](_0x56bc('0x11'))==_0x3a1978[_0x56bc('0x2d')](_0x56bc('0x11'));)_0x215d71[_0x56bc('0x10')](_0x544169),_0x544169=_0x544169[_0x56bc('0x22')];}return _0x215d71;}
23
+ const _0x2abc=['todo','markBlockFormat','*Change\x20to:*\x20%0','slice','end','from','has','enableCommand','listIndent','locale','model','parent','*Outdent:*\x20%0','document','checkChild','commandParams','findIndex','previousSibling','*Check\x20item*','ELEMENT_TODO_LIST','isObject','value','commandName','registerElementLabel','indentList','push','_descriptionFactory','selection','ListEditing','outdentList','bulleted','before','replace','element','*Uncheck\x20item*','name','plugins','change','get','getSelectedBlocks','registerDescriptionCallback','format','nextSibling','schema','ELEMENT_NUMBERED_LIST','ELEMENT_BULLETED_LIST','todoList','listItem','numberedList','todoListChecked','filter','bulletedList','commands','List','checkTodoList','_selectedElements','forceValue','ELEMENT_LIST_ITEM','*Indent:*\x20%0','TodoListEditing','getAttribute'];(function(_0x3e78b3,_0x2abceb){const _0x52d3ca=function(_0x27cf58){while(--_0x27cf58){_0x3e78b3['push'](_0x3e78b3['shift']());}};_0x52d3ca(++_0x2abceb);}(_0x2abc,0x16a));const _0x52d3=function(_0x3e78b3,_0x2abceb){_0x3e78b3=_0x3e78b3-0x0;let _0x52d3ca=_0x2abc[_0x3e78b3];return _0x52d3ca;};import{Plugin as _0x17f141}from'ckeditor5/src/core';import{getTranslation as _0x1f8dfc}from'../utils/common-translations';export default class st extends _0x17f141{['afterInit'](){const _0x294292=this['editor'],_0x1fd44e=_0x294292[_0x52d3('0xd')];if(!_0x294292[_0x52d3('0x28')][_0x52d3('0xa')](_0x52d3('0x20')))return;const _0x231345=_0x294292[_0x52d3('0x28')][_0x52d3('0x2a')]('TrackChangesEditing'),_0x29ac9a=_0x294292[_0x52d3('0x28')][_0x52d3('0xa')](_0x52d3('0x2'));function _0x337d2e(_0x38320e){return()=>{const _0x249f43=_0x294292['model'][_0x52d3('0x11')][_0x52d3('0x1f')],_0x44006e=_0x294292[_0x52d3('0x38')][_0x52d3('0x2a')](_0x38320e);if(_0x44006e[_0x52d3('0x19')])return void _0x294292['execute']('paragraph',{});const _0x3b49c6=_0x38320e[_0x52d3('0x7')](0x0,-0x4),_0x300e08=function(_0x147cb4,_0x4ea0f2,_0x2238a8){let _0x1b3311=Array[_0x52d3('0x9')](_0x147cb4)[_0x52d3('0x36')](_0x276292=>function(_0x3a86c1,_0x6a30df){return _0x6a30df[_0x52d3('0x12')](_0x3a86c1[_0x52d3('0xf')],_0x52d3('0x33'))&&!_0x6a30df[_0x52d3('0x18')](_0x3a86c1);}(_0x276292,_0x2238a8));_0x1b3311=_0x1b3311['filter'](_0x510ef2=>!_0x510ef2['is'](_0x52d3('0x25'),_0x52d3('0x33'))||_0x510ef2['getAttribute']('listType')!=_0x4ea0f2);const _0x3f5415=new Set();for(const _0x5812c9 of _0x1b3311)_0x5812c9['is']('element',_0x52d3('0x33'))?_0x3f5415['add'](ne(_0x5812c9)):_0x3f5415['add'](_0x5812c9);return Array[_0x52d3('0x9')](_0x3f5415);}(_0x249f43[_0x52d3('0x2b')](),_0x3b49c6,_0x294292[_0x52d3('0xe')][_0x52d3('0x2f')]);_0x294292['model']['change'](()=>{for(const _0x123e07 of _0x300e08)_0x231345['markBlockFormat'](_0x123e07,{'commandName':_0x38320e,'commandParams':[{'forceValue':!_0x44006e[_0x52d3('0x19')]}],'formatGroupId':'blockName'},oe(_0x123e07));});};}function _0x168051(_0x5888dd){return()=>{const _0x5050da=function(_0x18f5ee){let _0x13fc24=Array[_0x52d3('0x9')](_0x18f5ee);const _0x15d521=_0x13fc24[_0x52d3('0x14')](_0x32e9ae=>_0x52d3('0x33')!=_0x32e9ae[_0x52d3('0x27')]);return _0x15d521>-0x1&&(_0x13fc24=_0x13fc24[_0x52d3('0x7')](0x0,_0x15d521)),_0x13fc24;}(_0x294292[_0x52d3('0xe')][_0x52d3('0x11')][_0x52d3('0x1f')][_0x52d3('0x2b')]()),_0x288045=_0x294292[_0x52d3('0xe')]['createRange'](_0x294292[_0x52d3('0xe')]['createPositionAt'](_0x5050da[0x0],_0x52d3('0x23')),_0x294292['model']['createPositionAt'](_0x5050da[_0x5050da['length']-0x1],_0x52d3('0x8')));_0x294292[_0x52d3('0xe')][_0x52d3('0x29')](()=>{_0x231345[_0x52d3('0x5')](_0x288045,{'commandName':_0x5888dd,'commandParams':[],'formatGroupId':_0x52d3('0xc')},function(_0x5f1b49){const _0x20a128=new Set();for(const _0x487cf0 of _0x5f1b49){let _0x5a9d6f=_0x487cf0[_0x52d3('0x2e')];for(;_0x5a9d6f&&_0x5a9d6f[_0x52d3('0x3')](_0x52d3('0xc'))>_0x487cf0[_0x52d3('0x3')](_0x52d3('0xc'));)_0x20a128['add'](_0x5a9d6f),_0x5a9d6f=_0x5a9d6f[_0x52d3('0x2e')];}return Array['from'](_0x20a128);}(_0x5050da));});};}_0x231345['enableCommand'](_0x52d3('0x34'),_0x337d2e('numberedList')),_0x231345[_0x52d3('0xb')](_0x52d3('0x37'),_0x337d2e('bulletedList')),_0x29ac9a&&_0x231345[_0x52d3('0xb')]('todoList',_0x337d2e(_0x52d3('0x32'))),_0x231345[_0x52d3('0xb')](_0x52d3('0x1c'),_0x168051(_0x52d3('0x1c'))),_0x231345[_0x52d3('0xb')](_0x52d3('0x21'),_0x168051(_0x52d3('0x21'))),_0x29ac9a&&_0x231345[_0x52d3('0xb')]('checkTodoList',()=>{const _0x168cf5=_0x294292[_0x52d3('0x38')][_0x52d3('0x2a')](_0x52d3('0x3a')),_0x4c1393=Array[_0x52d3('0x9')](_0x168cf5[_0x52d3('0x3b')]);_0x4c1393[_0x52d3('0x36')](_0x427f94=>_0x427f94['getAttribute'](_0x52d3('0x35'))!=_0x168cf5[_0x52d3('0x19')]),_0x294292['model'][_0x52d3('0x29')](()=>{for(const _0x6a9e4c of _0x4c1393)_0x231345[_0x52d3('0x5')](_0x6a9e4c,{'commandName':_0x52d3('0x3a'),'commandParams':[{'forceValue':!_0x168cf5[_0x52d3('0x19')]}]});});}),_0x231345[_0x52d3('0x1e')][_0x52d3('0x1b')]('listItem',_0x159359=>_0x1f8dfc(_0x1fd44e,_0x52d3('0x0'),_0x159359)),_0x231345[_0x52d3('0x1e')][_0x52d3('0x2c')](_0x80c2b1=>{const {data:_0x8e9ab1}=_0x80c2b1;if(_0x8e9ab1){if(_0x52d3('0x34')==_0x8e9ab1['commandName']||_0x52d3('0x37')==_0x8e9ab1[_0x52d3('0x1a')]||_0x52d3('0x32')==_0x8e9ab1[_0x52d3('0x1a')])switch(_0x8e9ab1[_0x52d3('0x1a')][_0x52d3('0x24')](_0x52d3('0x39'),'')){case _0x52d3('0x22'):return _0x49bf12(_0x1f8dfc(_0x1fd44e,_0x52d3('0x31')));case'numbered':return _0x49bf12(_0x1f8dfc(_0x1fd44e,_0x52d3('0x30')));case _0x52d3('0x4'):return _0x49bf12(_0x1f8dfc(_0x1fd44e,_0x52d3('0x17')));}if('indentList'==_0x8e9ab1['commandName'])return{'type':_0x52d3('0x2d'),'content':_0x1f8dfc(_0x1fd44e,_0x52d3('0x1'),_0x1f8dfc(_0x1fd44e,_0x52d3('0x0')))};if(_0x52d3('0x21')==_0x8e9ab1[_0x52d3('0x1a')])return{'type':_0x52d3('0x2d'),'content':_0x1f8dfc(_0x1fd44e,_0x52d3('0x10'),_0x1f8dfc(_0x1fd44e,_0x52d3('0x0')))};if('checkTodoList'==_0x8e9ab1[_0x52d3('0x1a')])return _0x8e9ab1[_0x52d3('0x13')][0x0][_0x52d3('0x3c')]?{'type':_0x52d3('0x2d'),'content':_0x1f8dfc(_0x1fd44e,_0x52d3('0x16'))}:{'type':_0x52d3('0x2d'),'content':_0x1f8dfc(_0x1fd44e,_0x52d3('0x26'))};}function _0x49bf12(_0x58aa9b){return{'type':_0x52d3('0x2d'),'content':_0x1f8dfc(_0x1fd44e,_0x52d3('0x6'),_0x58aa9b)};}});}}function ne(_0x1d925a){const _0x46ea00=_0x1d925a['getAttribute'](_0x52d3('0xc'));if(0x0==_0x46ea00)return _0x1d925a;let _0x12af5e=_0x1d925a;for(;_0x1d925a[_0x52d3('0x15')]&&_0x1d925a[_0x52d3('0x15')]['is']('element','listItem');){const _0x5e2398=_0x1d925a[_0x52d3('0x15')][_0x52d3('0x3')]('listIndent');if(_0x5e2398==_0x46ea00)_0x12af5e=_0x1d925a[_0x52d3('0x15')];else{if(_0x5e2398<_0x46ea00)break;}_0x1d925a=_0x1d925a['previousSibling'];}return _0x12af5e;}function oe(_0x403374){const _0x581ee=[];if(_0x403374['is'](_0x52d3('0x25'),_0x52d3('0x33'))&&_0x403374[_0x52d3('0x3')](_0x52d3('0xc'))>0x0){let _0x519c42=_0x403374['nextSibling'];for(;_0x519c42&&_0x52d3('0x33')==_0x519c42[_0x52d3('0x27')]&&_0x519c42[_0x52d3('0x3')](_0x52d3('0xc'))==_0x403374['getAttribute'](_0x52d3('0xc'));)_0x581ee[_0x52d3('0x1d')](_0x519c42),_0x519c42=_0x519c42['nextSibling'];}return _0x581ee;}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/listproperties
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x85f4=['numbered','_LIST_','_getSuggestionBlocks','replace','get','_getSuggestionBlocksForListStyle','commandParams','plugins','_descriptionFactory','listType','bind','getLastPosition','listStart','afterInit','createPositionAt','editor','reversed','handleListReversedCommand','listItem','before','*Format:*\x20set\x20start\x20index\x20to\x20%0','type','parent','config','getFirstPosition','handleListStyleCommand','ListUtils','_getTranslationKeyForListStyle','listReversed','ListPropertiesEditing','forward','selection','styles','change','markMultiRangeBlockFormat','format','handleListStartCommand','model','unshift','getAttribute','document','getSelectedBlocks','createRange','*Change\x20to:*\x20%0','has','listStyle','toUpperCase','list.properties','startIndex','element','enableCommand','TrackChangesEditing','length','flat','backward','getSiblingNodes','ELEMENT_','filter','map'];(function(_0x1cba27,_0x85f45d){const _0x289be1=function(_0x3c2eec){while(--_0x3c2eec){_0x1cba27['push'](_0x1cba27['shift']());}};_0x289be1(++_0x85f45d);}(_0x85f4,0xdc));const _0x289b=function(_0x1cba27,_0x85f45d){_0x1cba27=_0x1cba27-0x0;let _0x289be1=_0x85f4[_0x1cba27];return _0x289be1;};import{Plugin as _0x2d0a31}from'ckeditor5/src/core';import{getTranslation as _0x112d80}from'../utils/common-translations';export default class nt extends _0x2d0a31{[_0x289b('0x1d')](){if(!this[_0x289b('0x1f')][_0x289b('0x17')][_0x289b('0x1')](_0x289b('0x2d')))return;const _0x321c4f=this['editor'][_0x289b('0x27')]['get'](_0x289b('0x4')),_0x207bf2=this[_0x289b('0x1f')][_0x289b('0x17')][_0x289b('0x14')](_0x289b('0x8'));_0x321c4f[_0x289b('0x30')]&&_0x207bf2[_0x289b('0x7')](_0x289b('0x2'),this[_0x289b('0x29')][_0x289b('0x1a')](this)),_0x321c4f[_0x289b('0x20')]&&_0x207bf2[_0x289b('0x7')]('listReversed',this[_0x289b('0x21')][_0x289b('0x1a')](this)),_0x321c4f[_0x289b('0x5')]&&_0x207bf2['enableCommand'](_0x289b('0x1c'),this[_0x289b('0x34')][_0x289b('0x1a')](this)),_0x207bf2[_0x289b('0x18')]['registerDescriptionCallback'](this['handleDescriptions'][_0x289b('0x1a')](this));}[_0x289b('0x29')](_0x389bff,_0x21090e={}){const _0x110bbc=this[_0x289b('0x1f')][_0x289b('0x17')]['get']('TrackChangesEditing'),_0xb1ab7b=this[_0x289b('0x15')]();this[_0x289b('0x1f')][_0x289b('0x35')][_0x289b('0x31')](()=>{_0x110bbc[_0x289b('0x32')](_0xb1ab7b,{'commandName':_0x289b('0x2'),'commandParams':[{'type':_0x21090e[_0x289b('0x25')]}],'formatGroupId':_0x289b('0x2')});});}[_0x289b('0x21')](_0x148173,_0x345296={}){const _0x5274fa=this['editor'][_0x289b('0x17')]['get'](_0x289b('0x8')),_0x39f61d=this[_0x289b('0x12')](_0x39a2f0=>_0x39a2f0['is'](_0x289b('0x6'),_0x289b('0x22'))&&_0x289b('0x10')===_0x39a2f0[_0x289b('0x37')](_0x289b('0x19')));if(_0x39f61d[_0x289b('0x9')]<0x1)return;const _0x3f43a9=_0x39f61d['map'](_0xbd4f18=>this[_0x289b('0x1f')][_0x289b('0x35')]['createRange'](this[_0x289b('0x1f')][_0x289b('0x35')]['createPositionAt'](_0xbd4f18,_0x289b('0x23')),this[_0x289b('0x1f')][_0x289b('0x35')][_0x289b('0x1e')](_0xbd4f18,0x0)));this[_0x289b('0x1f')][_0x289b('0x35')]['change'](()=>{_0x5274fa[_0x289b('0x32')](_0x3f43a9,{'commandName':'listReversed','commandParams':[{'reversed':_0x345296[_0x289b('0x20')]}],'formatGroupId':_0x289b('0x2c')});});}[_0x289b('0x34')](_0x16ac02,_0x36397f={}){const _0x3f8474=this[_0x289b('0x1f')][_0x289b('0x17')][_0x289b('0x14')](_0x289b('0x8')),_0x12c248=this[_0x289b('0x12')](_0x102414=>_0x102414['is'](_0x289b('0x6'),_0x289b('0x22'))&&'numbered'===_0x102414[_0x289b('0x37')](_0x289b('0x19')));if(_0x12c248['length']<0x1)return;const _0x536b28=_0x12c248['map'](_0x187ce4=>this[_0x289b('0x1f')][_0x289b('0x35')][_0x289b('0x3a')](this[_0x289b('0x1f')][_0x289b('0x35')]['createPositionAt'](_0x187ce4,_0x289b('0x23')),this['editor'][_0x289b('0x35')]['createPositionAt'](_0x187ce4,0x0)));this[_0x289b('0x1f')][_0x289b('0x35')]['change'](()=>{_0x3f8474['markMultiRangeBlockFormat'](_0x536b28,{'commandName':_0x289b('0x1c'),'commandParams':[{'startIndex':_0x36397f[_0x289b('0x5')]}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x39f1a9){const _0xbf24f2=this['editor']['locale'],{data:_0x2ccc8a}=_0x39f1a9;if(!_0x2ccc8a)return;let _0x56cd6e,_0x3f1791;switch(_0x2ccc8a['commandName']){case _0x289b('0x2'):_0x56cd6e=_0x289b('0x0'),_0x3f1791={'type':_0x289b('0x33'),'content':_0x112d80(_0xbf24f2,_0x56cd6e,_0x112d80(_0xbf24f2,this[_0x289b('0x2b')](_0x2ccc8a[_0x289b('0x16')][0x0][_0x289b('0x25')])))};break;case _0x289b('0x2c'):_0x56cd6e=_0x2ccc8a['commandParams'][0x0][_0x289b('0x20')]?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3f1791={'type':'format','content':_0x112d80(_0xbf24f2,_0x56cd6e)};break;case _0x289b('0x1c'):_0x56cd6e=_0x289b('0x24'),_0x3f1791={'type':_0x289b('0x33'),'content':_0x112d80(_0xbf24f2,_0x56cd6e,_0x2ccc8a['commandParams'][0x0][_0x289b('0x5')])};}return _0x3f1791;}[_0x289b('0x15')](){var _0x10c21f,_0x1a3f93,_0x50f08b,_0x2b17ee;const _0x2b82b9=this[_0x289b('0x1f')][_0x289b('0x17')]['get'](_0x289b('0x2a'));let _0x4dbdd4=Array['from'](this['editor']['model']['document']['selection'][_0x289b('0x39')]());return(null===(_0x10c21f=_0x4dbdd4[0x0])||void 0x0===_0x10c21f?void 0x0:_0x10c21f['is'](_0x289b('0x6'),'listItem'))&&_0x4dbdd4[_0x289b('0x36')](..._0x2b82b9[_0x289b('0xc')](this[_0x289b('0x1f')][_0x289b('0x35')][_0x289b('0x38')]['selection'][_0x289b('0x28')](),_0x289b('0xb'))),(null===(_0x1a3f93=_0x4dbdd4[_0x4dbdd4[_0x289b('0x9')]-0x1])||void 0x0===_0x1a3f93?void 0x0:_0x1a3f93['is'](_0x289b('0x6'),'listItem'))&&_0x4dbdd4['push'](..._0x2b82b9[_0x289b('0xc')](this['editor']['model'][_0x289b('0x38')][_0x289b('0x2f')][_0x289b('0x1b')](),'forward')),_0x4dbdd4=[...new Set(_0x4dbdd4)],(null===(_0x2b17ee=null===(_0x50f08b=this[_0x289b('0x1f')][_0x289b('0x35')][_0x289b('0x38')][_0x289b('0x2f')][_0x289b('0x28')]())||void 0x0===_0x50f08b?void 0x0:_0x50f08b[_0x289b('0x26')])||void 0x0===_0x2b17ee?void 0x0:_0x2b17ee['is']('element',_0x289b('0x22')))&&(_0x4dbdd4=_0x4dbdd4[_0x289b('0xe')](_0x4ab9bd=>_0x4ab9bd['is'](_0x289b('0x6'),_0x289b('0x22')))),_0x4dbdd4;}[_0x289b('0x12')](_0x38badb){const _0xfa48aa=this[_0x289b('0x1f')]['plugins'][_0x289b('0x14')](_0x289b('0x2a'));let _0x28afd1=Array['from'](this[_0x289b('0x1f')]['model'][_0x289b('0x38')][_0x289b('0x2f')][_0x289b('0x39')]())[_0x289b('0xe')](_0x38badb)[_0x289b('0xf')](_0x337576=>{const _0x4ce8d8=this['editor']['model'][_0x289b('0x1e')](_0x337576,0x0);return[..._0xfa48aa[_0x289b('0xc')](_0x4ce8d8,_0x289b('0xb')),..._0xfa48aa[_0x289b('0xc')](_0x4ce8d8,_0x289b('0x2e'))];})[_0x289b('0xa')]();return _0x28afd1=[...new Set(_0x28afd1)],_0x28afd1;}['_getTranslationKeyForListStyle'](_0x2e66e9){return _0x289b('0xd')+this[_0x289b('0x1f')]['plugins']['get'](_0x289b('0x2a'))['getListTypeFromListStyleType'](_0x2e66e9)[_0x289b('0x3')]()+_0x289b('0x11')+_0x2e66e9[_0x289b('0x3')]()[_0x289b('0x13')](/-/g,'_');}}
23
+ const _0x5097=['_getTranslationKeyForListStyle','backward','model','*Change\x20to:*\x20%0','registerDescriptionCallback','selection','getLastPosition','getAttribute','createPositionAt','plugins','styles','getFirstPosition','handleDescriptions','toUpperCase','element','numbered','getListTypeFromListStyleType','listReversed','parent','commandName','before','getSelectedBlocks','get','locale','map','has','list.properties','*Format:*\x20set\x20order\x20to\x20reversed','filter','listItem','change','format','document','markMultiRangeBlockFormat','forward','listStart','getSiblingNodes','*Format:*\x20set\x20start\x20index\x20to\x20%0','unshift','listStyle','TrackChangesEditing','type','flat','startIndex','bind','config','reversed','handleListReversedCommand','listType','commandParams','createRange','length','_getSuggestionBlocksForListStyle','editor','enableCommand','_getSuggestionBlocks','handleListStartCommand','ListUtils','handleListStyleCommand'];(function(_0x4b1440,_0x509744){const _0x2c8cfe=function(_0x1717fd){while(--_0x1717fd){_0x4b1440['push'](_0x4b1440['shift']());}};_0x2c8cfe(++_0x509744);}(_0x5097,0x19f));const _0x2c8c=function(_0x4b1440,_0x509744){_0x4b1440=_0x4b1440-0x0;let _0x2c8cfe=_0x5097[_0x4b1440];return _0x2c8cfe;};import{Plugin as _0x4b0e2c}from'ckeditor5/src/core';import{getTranslation as _0x2bd9eb}from'../utils/common-translations';export default class nt extends _0x4b0e2c{['afterInit'](){if(!this[_0x2c8c('0x33')][_0x2c8c('0x7')][_0x2c8c('0x17')]('ListPropertiesEditing'))return;const _0x4b2530=this[_0x2c8c('0x33')][_0x2c8c('0x2b')][_0x2c8c('0x14')](_0x2c8c('0x18')),_0x3a99e2=this['editor']['plugins'][_0x2c8c('0x14')](_0x2c8c('0x26'));_0x4b2530[_0x2c8c('0x8')]&&_0x3a99e2[_0x2c8c('0x34')]('listStyle',this[_0x2c8c('0x38')][_0x2c8c('0x2a')](this)),_0x4b2530[_0x2c8c('0x2c')]&&_0x3a99e2[_0x2c8c('0x34')](_0x2c8c('0xf'),this['handleListReversedCommand'][_0x2c8c('0x2a')](this)),_0x4b2530[_0x2c8c('0x29')]&&_0x3a99e2['enableCommand'](_0x2c8c('0x21'),this[_0x2c8c('0x36')][_0x2c8c('0x2a')](this)),_0x3a99e2['_descriptionFactory'][_0x2c8c('0x2')](this[_0x2c8c('0xa')]['bind'](this));}[_0x2c8c('0x38')](_0x986a4d,_0x49e20d={}){const _0x27bf0c=this['editor'][_0x2c8c('0x7')]['get'](_0x2c8c('0x26')),_0x55123e=this[_0x2c8c('0x32')]();this[_0x2c8c('0x33')][_0x2c8c('0x0')][_0x2c8c('0x1c')](()=>{_0x27bf0c[_0x2c8c('0x1f')](_0x55123e,{'commandName':_0x2c8c('0x25'),'commandParams':[{'type':_0x49e20d[_0x2c8c('0x27')]}],'formatGroupId':'listStyle'});});}[_0x2c8c('0x2d')](_0x55ad59,_0x5bdf53={}){const _0x5ea817=this[_0x2c8c('0x33')][_0x2c8c('0x7')]['get'](_0x2c8c('0x26')),_0x28ea88=this[_0x2c8c('0x35')](_0x545f90=>_0x545f90['is'](_0x2c8c('0xc'),_0x2c8c('0x1b'))&&_0x2c8c('0xd')===_0x545f90[_0x2c8c('0x5')](_0x2c8c('0x2e')));if(_0x28ea88[_0x2c8c('0x31')]<0x1)return;const _0x50031b=_0x28ea88[_0x2c8c('0x16')](_0x27c15c=>this[_0x2c8c('0x33')]['model'][_0x2c8c('0x30')](this[_0x2c8c('0x33')][_0x2c8c('0x0')]['createPositionAt'](_0x27c15c,_0x2c8c('0x12')),this[_0x2c8c('0x33')][_0x2c8c('0x0')][_0x2c8c('0x6')](_0x27c15c,0x0)));this['editor'][_0x2c8c('0x0')][_0x2c8c('0x1c')](()=>{_0x5ea817[_0x2c8c('0x1f')](_0x50031b,{'commandName':_0x2c8c('0xf'),'commandParams':[{'reversed':_0x5bdf53[_0x2c8c('0x2c')]}],'formatGroupId':'listReversed'});});}[_0x2c8c('0x36')](_0x5aef27,_0xeb1ef3={}){const _0xede558=this['editor'][_0x2c8c('0x7')]['get'](_0x2c8c('0x26')),_0x1ad6d7=this[_0x2c8c('0x35')](_0x4c76fe=>_0x4c76fe['is'](_0x2c8c('0xc'),_0x2c8c('0x1b'))&&_0x2c8c('0xd')===_0x4c76fe[_0x2c8c('0x5')](_0x2c8c('0x2e')));if(_0x1ad6d7['length']<0x1)return;const _0x5629d5=_0x1ad6d7[_0x2c8c('0x16')](_0x66d4d4=>this['editor'][_0x2c8c('0x0')][_0x2c8c('0x30')](this['editor']['model'][_0x2c8c('0x6')](_0x66d4d4,_0x2c8c('0x12')),this['editor'][_0x2c8c('0x0')][_0x2c8c('0x6')](_0x66d4d4,0x0)));this['editor'][_0x2c8c('0x0')][_0x2c8c('0x1c')](()=>{_0xede558['markMultiRangeBlockFormat'](_0x5629d5,{'commandName':_0x2c8c('0x21'),'commandParams':[{'startIndex':_0xeb1ef3['startIndex']}],'formatGroupId':_0x2c8c('0x21')});});}[_0x2c8c('0xa')](_0x459ac9){const _0x1e1b6d=this[_0x2c8c('0x33')][_0x2c8c('0x15')],{data:_0x4e0e93}=_0x459ac9;if(!_0x4e0e93)return;let _0x2e7f2e,_0x4b3c0b;switch(_0x4e0e93[_0x2c8c('0x11')]){case'listStyle':_0x2e7f2e=_0x2c8c('0x1'),_0x4b3c0b={'type':_0x2c8c('0x1d'),'content':_0x2bd9eb(_0x1e1b6d,_0x2e7f2e,_0x2bd9eb(_0x1e1b6d,this[_0x2c8c('0x39')](_0x4e0e93['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2e7f2e=_0x4e0e93[_0x2c8c('0x2f')][0x0][_0x2c8c('0x2c')]?_0x2c8c('0x19'):'*Format:*\x20set\x20order\x20to\x20regular',_0x4b3c0b={'type':_0x2c8c('0x1d'),'content':_0x2bd9eb(_0x1e1b6d,_0x2e7f2e)};break;case _0x2c8c('0x21'):_0x2e7f2e=_0x2c8c('0x23'),_0x4b3c0b={'type':_0x2c8c('0x1d'),'content':_0x2bd9eb(_0x1e1b6d,_0x2e7f2e,_0x4e0e93[_0x2c8c('0x2f')][0x0][_0x2c8c('0x29')])};}return _0x4b3c0b;}['_getSuggestionBlocksForListStyle'](){var _0xdec752,_0x27b868,_0x409f60,_0x10b6c5;const _0x5ace8a=this[_0x2c8c('0x33')][_0x2c8c('0x7')][_0x2c8c('0x14')](_0x2c8c('0x37'));let _0x268f89=Array['from'](this['editor'][_0x2c8c('0x0')][_0x2c8c('0x1e')][_0x2c8c('0x3')][_0x2c8c('0x13')]());return(null===(_0xdec752=_0x268f89[0x0])||void 0x0===_0xdec752?void 0x0:_0xdec752['is'](_0x2c8c('0xc'),_0x2c8c('0x1b')))&&_0x268f89[_0x2c8c('0x24')](..._0x5ace8a[_0x2c8c('0x22')](this['editor'][_0x2c8c('0x0')][_0x2c8c('0x1e')][_0x2c8c('0x3')][_0x2c8c('0x9')](),_0x2c8c('0x3a'))),(null===(_0x27b868=_0x268f89[_0x268f89[_0x2c8c('0x31')]-0x1])||void 0x0===_0x27b868?void 0x0:_0x27b868['is'](_0x2c8c('0xc'),_0x2c8c('0x1b')))&&_0x268f89['push'](..._0x5ace8a[_0x2c8c('0x22')](this[_0x2c8c('0x33')][_0x2c8c('0x0')][_0x2c8c('0x1e')][_0x2c8c('0x3')][_0x2c8c('0x4')](),_0x2c8c('0x20'))),_0x268f89=[...new Set(_0x268f89)],(null===(_0x10b6c5=null===(_0x409f60=this[_0x2c8c('0x33')]['model'][_0x2c8c('0x1e')][_0x2c8c('0x3')][_0x2c8c('0x9')]())||void 0x0===_0x409f60?void 0x0:_0x409f60[_0x2c8c('0x10')])||void 0x0===_0x10b6c5?void 0x0:_0x10b6c5['is'](_0x2c8c('0xc'),_0x2c8c('0x1b')))&&(_0x268f89=_0x268f89[_0x2c8c('0x1a')](_0x561ebb=>_0x561ebb['is'](_0x2c8c('0xc'),_0x2c8c('0x1b')))),_0x268f89;}[_0x2c8c('0x35')](_0x3608d7){const _0x5e2956=this[_0x2c8c('0x33')][_0x2c8c('0x7')][_0x2c8c('0x14')]('ListUtils');let _0x256d88=Array['from'](this[_0x2c8c('0x33')][_0x2c8c('0x0')]['document']['selection']['getSelectedBlocks']())[_0x2c8c('0x1a')](_0x3608d7)['map'](_0x3da44d=>{const _0x2d7913=this['editor'][_0x2c8c('0x0')]['createPositionAt'](_0x3da44d,0x0);return[..._0x5e2956[_0x2c8c('0x22')](_0x2d7913,_0x2c8c('0x3a')),..._0x5e2956[_0x2c8c('0x22')](_0x2d7913,_0x2c8c('0x20'))];})[_0x2c8c('0x28')]();return _0x256d88=[...new Set(_0x256d88)],_0x256d88;}[_0x2c8c('0x39')](_0x26ec56){return'ELEMENT_'+this[_0x2c8c('0x33')][_0x2c8c('0x7')]['get'](_0x2c8c('0x37'))[_0x2c8c('0xe')](_0x26ec56)[_0x2c8c('0xb')]()+'_LIST_'+_0x26ec56[_0x2c8c('0xb')]()['replace'](/-/g,'_');}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/mediaembed
3
7
  */