@ckeditor/ckeditor5-track-changes 38.2.0-alpha.1 → 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 +2 -2
  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 +6 -2
  9. package/src/augmentation.js +1 -1
  10. package/src/commands/acceptsuggestioncommand.d.ts +6 -2
  11. package/src/commands/acceptsuggestioncommand.js +2 -2
  12. package/src/commands/discardsuggestioncommand.d.ts +6 -2
  13. package/src/commands/discardsuggestioncommand.js +2 -2
  14. package/src/commands/executeonallsuggestionscommand.d.ts +6 -2
  15. package/src/commands/executeonallsuggestionscommand.js +2 -2
  16. package/src/commands/executeonselectedsuggestionscommand.d.ts +6 -2
  17. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  18. package/src/commands/trackchangescommand.d.ts +5 -1
  19. package/src/commands/trackchangescommand.js +2 -2
  20. package/src/index.d.ts +16 -12
  21. package/src/index.js +2 -2
  22. package/src/integrations/alignment.d.ts +5 -1
  23. package/src/integrations/alignment.js +2 -2
  24. package/src/integrations/basicstyles.d.ts +5 -1
  25. package/src/integrations/basicstyles.js +2 -2
  26. package/src/integrations/blockquote.d.ts +5 -1
  27. package/src/integrations/blockquote.js +2 -2
  28. package/src/integrations/ckbox.d.ts +5 -1
  29. package/src/integrations/ckbox.js +2 -2
  30. package/src/integrations/codeblock.d.ts +5 -1
  31. package/src/integrations/codeblock.js +2 -2
  32. package/src/integrations/comments.d.ts +5 -1
  33. package/src/integrations/comments.js +2 -2
  34. package/src/integrations/deletecommand.d.ts +6 -2
  35. package/src/integrations/deletecommand.js +2 -2
  36. package/src/integrations/documentlist.d.ts +5 -1
  37. package/src/integrations/documentlist.js +2 -2
  38. package/src/integrations/documentlistproperties.d.ts +7 -3
  39. package/src/integrations/documentlistproperties.js +2 -2
  40. package/src/integrations/entercommand.d.ts +6 -2
  41. package/src/integrations/entercommand.js +2 -2
  42. package/src/integrations/findandreplace.d.ts +5 -1
  43. package/src/integrations/findandreplace.js +2 -2
  44. package/src/integrations/font.d.ts +5 -1
  45. package/src/integrations/font.js +2 -2
  46. package/src/integrations/formatpainter.d.ts +5 -1
  47. package/src/integrations/formatpainter.js +2 -2
  48. package/src/integrations/heading.d.ts +5 -1
  49. package/src/integrations/heading.js +2 -2
  50. package/src/integrations/highlight.d.ts +5 -1
  51. package/src/integrations/highlight.js +2 -2
  52. package/src/integrations/horizontalline.d.ts +5 -1
  53. package/src/integrations/horizontalline.js +2 -2
  54. package/src/integrations/htmlembed.d.ts +5 -1
  55. package/src/integrations/htmlembed.js +2 -2
  56. package/src/integrations/image.d.ts +5 -1
  57. package/src/integrations/image.js +2 -2
  58. package/src/integrations/imagereplace.d.ts +7 -3
  59. package/src/integrations/imagereplace.js +2 -2
  60. package/src/integrations/importword.d.ts +5 -1
  61. package/src/integrations/importword.js +2 -2
  62. package/src/integrations/indent.d.ts +5 -1
  63. package/src/integrations/indent.js +2 -2
  64. package/src/integrations/inputcommand.d.ts +6 -2
  65. package/src/integrations/inputcommand.js +2 -2
  66. package/src/integrations/link.d.ts +5 -1
  67. package/src/integrations/link.js +2 -2
  68. package/src/integrations/list.d.ts +5 -1
  69. package/src/integrations/list.js +2 -2
  70. package/src/integrations/listproperties.d.ts +7 -3
  71. package/src/integrations/listproperties.js +2 -2
  72. package/src/integrations/mediaembed.d.ts +5 -1
  73. package/src/integrations/mediaembed.js +2 -2
  74. package/src/integrations/mention.d.ts +5 -1
  75. package/src/integrations/mention.js +2 -2
  76. package/src/integrations/pagebreak.d.ts +5 -1
  77. package/src/integrations/pagebreak.js +2 -2
  78. package/src/integrations/paragraph.d.ts +5 -1
  79. package/src/integrations/paragraph.js +2 -2
  80. package/src/integrations/removeformat.d.ts +5 -1
  81. package/src/integrations/removeformat.js +2 -2
  82. package/src/integrations/restrictededitingmode.d.ts +5 -1
  83. package/src/integrations/restrictededitingmode.js +2 -2
  84. package/src/integrations/shiftentercommand.d.ts +6 -2
  85. package/src/integrations/shiftentercommand.js +2 -2
  86. package/src/integrations/standardeditingmode.d.ts +5 -1
  87. package/src/integrations/standardeditingmode.js +2 -2
  88. package/src/integrations/style.d.ts +5 -1
  89. package/src/integrations/style.js +2 -2
  90. package/src/integrations/table.d.ts +5 -1
  91. package/src/integrations/table.js +2 -2
  92. package/src/integrations/tablecaption.d.ts +6 -2
  93. package/src/integrations/tablecaption.js +2 -2
  94. package/src/integrations/tableclipboard.d.ts +4 -3
  95. package/src/integrations/tableclipboard.js +2 -2
  96. package/src/integrations/tablecolumnresize.d.ts +8 -4
  97. package/src/integrations/tablecolumnresize.js +2 -2
  98. package/src/integrations/tableheadings.d.ts +6 -2
  99. package/src/integrations/tableheadings.js +2 -2
  100. package/src/integrations/tablemergesplit.d.ts +6 -2
  101. package/src/integrations/tablemergesplit.js +2 -2
  102. package/src/integrations/tableofcontents.d.ts +5 -1
  103. package/src/integrations/tableofcontents.js +2 -2
  104. package/src/integrations/tableproperties.d.ts +8 -4
  105. package/src/integrations/tableproperties.js +2 -2
  106. package/src/integrations/template.d.ts +5 -1
  107. package/src/integrations/template.js +2 -2
  108. package/src/integrations/title.d.ts +5 -1
  109. package/src/integrations/title.js +2 -2
  110. package/src/integrations/undo.d.ts +5 -1
  111. package/src/integrations/undo.js +2 -2
  112. package/src/integrations/utils.d.ts +7 -3
  113. package/src/integrations/utils.js +2 -2
  114. package/src/suggestion.d.ts +15 -5
  115. package/src/suggestion.js +2 -2
  116. package/src/suggestiondescriptionfactory.d.ts +5 -5
  117. package/src/suggestiondescriptionfactory.js +2 -2
  118. package/src/trackchanges.d.ts +10 -6
  119. package/src/trackchanges.js +2 -2
  120. package/src/trackchangesconfig.d.ts +5 -1
  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 +55 -51
  125. package/src/trackchangesediting.js +2 -2
  126. package/src/trackchangesui.d.ts +7 -3
  127. package/src/trackchangesui.js +2 -2
  128. package/src/ui/suggestioncontroller.d.ts +7 -6
  129. package/src/ui/suggestioncontroller.js +2 -2
  130. package/src/ui/view/basesuggestionthreadview.d.ts +10 -6
  131. package/src/ui/view/basesuggestionthreadview.js +2 -2
  132. package/src/ui/view/suggestionthreadview.d.ts +7 -7
  133. package/src/ui/view/suggestionthreadview.js +2 -2
  134. package/src/utils/common-translations.d.ts +5 -1
  135. package/src/utils/common-translations.js +2 -2
  136. package/src/utils/utils.d.ts +8 -4
  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 _0x50d4=['selection','item','config','format','getLastMatchingPosition','TrackChangesEditing','createRange','isCollapsed','formatInline','highlight','title','change','registerDescriptionCallback','_descriptionFactory','getRanges','afterInit','has','plugins','document','hasAttribute','color','highlight.options','push','HighlightEditing','get','FORMAT_HIGHLIGHT','find','model','enableCommand','toLowerCase','*Set\x20highlight:*\x20%0','getAttribute','value'];(function(_0x3b4311,_0x50d4bf){const _0x5e1d99=function(_0x1314a5){while(--_0x1314a5){_0x3b4311['push'](_0x3b4311['shift']());}};_0x5e1d99(++_0x50d4bf);}(_0x50d4,0x15d));const _0x5e1d=function(_0x3b4311,_0x50d4bf){_0x3b4311=_0x3b4311-0x0;let _0x5e1d99=_0x50d4[_0x3b4311];return _0x5e1d99;};import{Plugin as _0x32d71e}from'ckeditor5/src/core.js';import{getTranslation as _0x520ef9}from'../utils/common-translations.js';import{getRangesWithAttribute as _0x44f3e6}from'./utils.js';export default class K extends _0x32d71e{[_0x5e1d('0x1d')](){const _0x5e8cb5=this['editor'];if(!_0x5e8cb5['plugins'][_0x5e1d('0x1e')](_0x5e1d('0x4')))return;const _0x7a9a5d=_0x5e8cb5[_0x5e1d('0x1f')][_0x5e1d('0x5')](_0x5e1d('0x13'));_0x7a9a5d[_0x5e1d('0x9')](_0x5e1d('0x17'),(_0x3ad363,_0x1ea95b={})=>{const _0x5c3209=_0x5e8cb5['model'][_0x5e1d('0x20')][_0x5e1d('0xe')],_0x50c8e4=_0x5c3209[_0x5e1d('0xc')]('highlight');let _0x20020a=_0x1ea95b[_0x5e1d('0xd')],_0x8249d1=[];if(_0x5c3209[_0x5e1d('0x15')]){const _0x533ae5=_0x5c3209['getFirstPosition']();if(!_0x5c3209[_0x5e1d('0x0')](_0x5e1d('0x17')))return void _0x3ad363(_0x1ea95b);{const _0x2512a4=_0x2e0db4=>_0x2e0db4[_0x5e1d('0xf')]['getAttribute'](_0x5e1d('0x17'))===_0x50c8e4,_0x1ee076=_0x533ae5[_0x5e1d('0x12')](_0x2512a4,{'direction':'backward'}),_0x27d652=_0x533ae5[_0x5e1d('0x12')](_0x2512a4);_0x8249d1=[_0x5e8cb5[_0x5e1d('0x8')][_0x5e1d('0x14')](_0x1ee076,_0x27d652)],_0x20020a==_0x50c8e4&&(_0x20020a=null);}}else for(const _0x5033bb of _0x5c3209[_0x5e1d('0x1c')]())_0x20020a?_0x8249d1['push'](_0x5033bb):_0x8249d1[_0x5e1d('0x3')](..._0x44f3e6('highlight',_0x5033bb,_0x5e8cb5[_0x5e1d('0x8')]));_0x5e8cb5['model'][_0x5e1d('0x19')](()=>{for(const _0x42b221 of _0x8249d1)_0x7a9a5d['markInlineFormat'](_0x42b221,{'commandName':_0x5e1d('0x17'),'commandParams':[{'value':_0x20020a}]});});});const _0x711bb8=_0x5e8cb5['locale'];_0x7a9a5d[_0x5e1d('0x1b')][_0x5e1d('0x1a')](_0x1bea55=>{const {type:_0x3649ac,data:_0x1a4671}=_0x1bea55;if(_0x5e1d('0x16')==_0x3649ac&&_0x1a4671&&'highlight'==_0x1a4671['commandName']){const _0x26c908=_0x711bb8['t'],_0x64c750=_0x1a4671['commandParams'][0x0][_0x5e1d('0xd')];if(_0x64c750){const _0x5707df=_0x5e8cb5[_0x5e1d('0x10')][_0x5e1d('0x5')](_0x5e1d('0x2'))[_0x5e1d('0x7')](_0x1a2ee4=>_0x1a2ee4[_0x5e1d('0x8')]==_0x64c750),_0xcbc4fb=_0x26c908(_0x5707df[_0x5e1d('0x18')])[_0x5e1d('0xa')]();return{'type':'format','content':_0x520ef9(_0x711bb8,_0x5e1d('0xb'),_0xcbc4fb),'color':{'value':_0x5707df[_0x5e1d('0x1')],'title':_0x5707df[_0x5e1d('0x18')]}};}return{'type':_0x5e1d('0x11'),'content':_0x520ef9(_0x711bb8,'*Remove\x20highlight*',_0x520ef9(_0x711bb8,_0x5e1d('0x6')))};}});}}
23
+ const _0x5050=['value','enableCommand','highlight','getAttribute','config','format','_descriptionFactory','model','selection','getFirstPosition','plugins','formatInline','toLowerCase','has','*Remove\x20highlight*','commandName','item','getRanges','*Set\x20highlight:*\x20%0','backward','TrackChangesEditing','push','get','createRange','isCollapsed','commandParams','color','hasAttribute','afterInit','document','find'];(function(_0x4845e8,_0x5050c4){const _0x116a24=function(_0x491cc9){while(--_0x491cc9){_0x4845e8['push'](_0x4845e8['shift']());}};_0x116a24(++_0x5050c4);}(_0x5050,0x193));const _0x116a=function(_0x4845e8,_0x5050c4){_0x4845e8=_0x4845e8-0x0;let _0x116a24=_0x5050[_0x4845e8];return _0x116a24;};import{Plugin as _0x34c879}from'ckeditor5/src/core';import{getTranslation as _0x282ecf}from'../utils/common-translations';import{getRangesWithAttribute as _0x52ef01}from'./utils';export default class K extends _0x34c879{[_0x116a('0x1c')](){const _0x4c3ef8=this['editor'];if(!_0x4c3ef8[_0x116a('0xa')][_0x116a('0xd')]('HighlightEditing'))return;const _0x413d5b=_0x4c3ef8[_0x116a('0xa')][_0x116a('0x16')](_0x116a('0x14'));_0x413d5b[_0x116a('0x1')](_0x116a('0x2'),(_0x169015,_0x4d7774={})=>{const _0x726bc9=_0x4c3ef8['model'][_0x116a('0x1d')][_0x116a('0x8')],_0x1bdd13=_0x726bc9[_0x116a('0x3')]('highlight');let _0x4918bc=_0x4d7774[_0x116a('0x0')],_0x98c8a5=[];if(_0x726bc9[_0x116a('0x18')]){const _0x159f44=_0x726bc9[_0x116a('0x9')]();if(!_0x726bc9[_0x116a('0x1b')](_0x116a('0x2')))return void _0x169015(_0x4d7774);{const _0x203d32=_0x5a8c2f=>_0x5a8c2f[_0x116a('0x10')]['getAttribute'](_0x116a('0x2'))===_0x1bdd13,_0x51f1ca=_0x159f44['getLastMatchingPosition'](_0x203d32,{'direction':_0x116a('0x13')}),_0x33af67=_0x159f44['getLastMatchingPosition'](_0x203d32);_0x98c8a5=[_0x4c3ef8[_0x116a('0x7')][_0x116a('0x17')](_0x51f1ca,_0x33af67)],_0x4918bc==_0x1bdd13&&(_0x4918bc=null);}}else for(const _0x493645 of _0x726bc9[_0x116a('0x11')]())_0x4918bc?_0x98c8a5['push'](_0x493645):_0x98c8a5[_0x116a('0x15')](..._0x52ef01(_0x116a('0x2'),_0x493645,_0x4c3ef8['model']));_0x4c3ef8[_0x116a('0x7')]['change'](()=>{for(const _0x10409d of _0x98c8a5)_0x413d5b['markInlineFormat'](_0x10409d,{'commandName':'highlight','commandParams':[{'value':_0x4918bc}]});});});const _0x3f099a=_0x4c3ef8['locale'];_0x413d5b[_0x116a('0x6')]['registerDescriptionCallback'](_0x3d71f8=>{const {type:_0x4b05e4,data:_0x4e1ad0}=_0x3d71f8;if(_0x116a('0xb')==_0x4b05e4&&_0x4e1ad0&&_0x116a('0x2')==_0x4e1ad0[_0x116a('0xf')]){const _0x145d46=_0x3f099a['t'],_0x5a2bdd=_0x4e1ad0[_0x116a('0x19')][0x0][_0x116a('0x0')];if(_0x5a2bdd){const _0x59ad56=_0x4c3ef8[_0x116a('0x4')][_0x116a('0x16')]('highlight.options')[_0x116a('0x1e')](_0xdb9e8b=>_0xdb9e8b['model']==_0x5a2bdd),_0x51ac69=_0x145d46(_0x59ad56['title'])[_0x116a('0xc')]();return{'type':_0x116a('0x5'),'content':_0x282ecf(_0x3f099a,_0x116a('0x12'),_0x51ac69),'color':{'value':_0x59ad56[_0x116a('0x1a')],'title':_0x59ad56['title']}};}return{'type':_0x116a('0x5'),'content':_0x282ecf(_0x3f099a,_0x116a('0xe'),_0x282ecf(_0x3f099a,'FORMAT_HIGHLIGHT'))};}});}}
@@ -1,7 +1,11 @@
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/horizontalline
3
7
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for {@link module:horizontal-line/horizontalline~HorizontalLine horizontal line feature}.
7
11
  */
@@ -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 _0x1519=['afterInit','insert','conversion','TrackChangesEditing','dataDowncast','high','createPositionAt','ELEMENT_HORIZONTAL_LINE','createContainerElement','get','editor','plugins','addClass','showSuggestionHighlights','has','ck-horizontal-line','locale','enableCommand','elementToStructure','horizontalLine'];(function(_0x5e88b1,_0x151948){const _0x493290=function(_0x5d5c9f){while(--_0x5d5c9f){_0x5e88b1['push'](_0x5e88b1['shift']());}};_0x493290(++_0x151948);}(_0x1519,0x1f1));const _0x4932=function(_0x5e88b1,_0x151948){_0x5e88b1=_0x5e88b1-0x0;let _0x493290=_0x1519[_0x5e88b1];return _0x493290;};import{Plugin as _0xcbc146}from'ckeditor5/src/core.js';import{getTranslation as _0x287c18}from'../utils/common-translations.js';export default class Q extends _0xcbc146{[_0x4932('0x3')](){const _0x4b200c=this[_0x4932('0xd')];if(!_0x4b200c[_0x4932('0xe')][_0x4932('0x11')]('HorizontalLineEditing'))return;_0x4b200c['plugins']['get'](_0x4932('0x6'))[_0x4932('0x0')]('horizontalLine');const _0x15a713=_0x4b200c['plugins'][_0x4932('0xc')]('TrackChangesEditing'),_0x4e09e2=_0x4b200c[_0x4932('0x13')];_0x15a713['_descriptionFactory']['registerElementLabel'](_0x4932('0x2'),_0x2efc66=>_0x287c18(_0x4e09e2,_0x4932('0xa'),_0x2efc66)),_0x4b200c[_0x4932('0x5')]['for'](_0x4932('0x7'))[_0x4932('0x1')]({'model':_0x4932('0x2'),'view':(_0x152020,{writer:_0x2d4d6d,options:_0x12294a})=>{if(!_0x12294a[_0x4932('0x10')])return null;const _0x467b41=_0x2d4d6d[_0x4932('0xb')]('div'),_0x529b3c=_0x2d4d6d['createEmptyElement']('hr');return _0x2d4d6d[_0x4932('0xf')](_0x4932('0x12'),_0x467b41),_0x2d4d6d[_0x4932('0x4')](_0x2d4d6d[_0x4932('0x9')](_0x467b41,0x0),_0x529b3c),_0x467b41;},'converterPriority':_0x4932('0x8')});}}
23
+ const _0x330d=['enableCommand','createPositionAt','insert','dataDowncast','ELEMENT_HORIZONTAL_LINE','has','afterInit','showSuggestionHighlights','conversion','elementToStructure','plugins','addClass','_descriptionFactory','get','ck-horizontal-line','createEmptyElement','for','editor','horizontalLine','registerElementLabel','high','TrackChangesEditing','locale','createContainerElement'];(function(_0x112e15,_0x330dda){const _0x44c31d=function(_0x4e2492){while(--_0x4e2492){_0x112e15['push'](_0x112e15['shift']());}};_0x44c31d(++_0x330dda);}(_0x330d,0xac));const _0x44c3=function(_0x112e15,_0x330dda){_0x112e15=_0x112e15-0x0;let _0x44c31d=_0x330d[_0x112e15];return _0x44c31d;};import{Plugin as _0x4d48a7}from'ckeditor5/src/core';import{getTranslation as _0x2113ce}from'../utils/common-translations';export default class Q extends _0x4d48a7{[_0x44c3('0x2')](){const _0x2bc187=this[_0x44c3('0xd')];if(!_0x2bc187[_0x44c3('0x6')][_0x44c3('0x1')]('HorizontalLineEditing'))return;_0x2bc187[_0x44c3('0x6')][_0x44c3('0x9')](_0x44c3('0x11'))[_0x44c3('0x14')](_0x44c3('0xe'));const _0x3480a7=_0x2bc187[_0x44c3('0x6')]['get']('TrackChangesEditing'),_0x2040d9=_0x2bc187[_0x44c3('0x12')];_0x3480a7[_0x44c3('0x8')][_0x44c3('0xf')](_0x44c3('0xe'),_0x56bc42=>_0x2113ce(_0x2040d9,_0x44c3('0x0'),_0x56bc42)),_0x2bc187[_0x44c3('0x4')][_0x44c3('0xc')](_0x44c3('0x17'))[_0x44c3('0x5')]({'model':_0x44c3('0xe'),'view':(_0x527254,{writer:_0x58fe26,options:_0x22838e})=>{if(!_0x22838e[_0x44c3('0x3')])return null;const _0x6ef35a=_0x58fe26[_0x44c3('0x13')]('div'),_0xe08fdc=_0x58fe26[_0x44c3('0xb')]('hr');return _0x58fe26[_0x44c3('0x7')](_0x44c3('0xa'),_0x6ef35a),_0x58fe26[_0x44c3('0x16')](_0x58fe26[_0x44c3('0x15')](_0x6ef35a,0x0),_0xe08fdc),_0x6ef35a;},'converterPriority':_0x44c3('0x10')});}}
@@ -1,7 +1,11 @@
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/htmlembed
3
7
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for {@link module:html-embed/htmlembed~HtmlEmbed HTML Embed feature}.
7
11
  */
@@ -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 _0x2862=['get','getCustomProperty','plugins','rawHtml','value','TrackChangesEditing','cancel','ELEMENT_HTML_EMBED','registerElementLabel','selection','_descriptionFactory','view','commandName','afterInit','getSelectedElement','registerDescriptionCallback','change','htmlEmbed','getAttribute','locale','markBlockFormat','has','rawHtmlApi','editing','editor','*Change\x20%0\x20content*'];(function(_0x19cde8,_0x286234){const _0x281830=function(_0x59698c){while(--_0x59698c){_0x19cde8['push'](_0x19cde8['shift']());}};_0x281830(++_0x286234);}(_0x2862,0xd0));const _0x2818=function(_0x19cde8,_0x286234){_0x19cde8=_0x19cde8-0x0;let _0x281830=_0x2862[_0x19cde8];return _0x281830;};import{Plugin as _0x2b9600}from'ckeditor5/src/core.js';import{getTranslation as _0x86f87d}from'../utils/common-translations.js';export default class V extends _0x2b9600{[_0x2818('0xd')](){const _0x3e7cb5=this[_0x2818('0x18')];if(!_0x3e7cb5[_0x2818('0x2')][_0x2818('0x15')]('HtmlEmbed'))return;const _0x331e57=_0x3e7cb5['plugins'][_0x2818('0x0')](_0x2818('0x5')),_0x5e0f6d=_0x3e7cb5[_0x2818('0x13')],_0x310113=_0x3e7cb5[_0x2818('0x17')][_0x2818('0xb')]['document'][_0x2818('0x9')];_0x331e57[_0x2818('0xa')][_0x2818('0x8')](_0x2818('0x3'),_0x460355=>_0x86f87d(_0x5e0f6d,_0x2818('0x7'),_0x460355)),_0x3e7cb5[_0x2818('0x2')]['get']('TrackChangesEditing')['enableCommand'](_0x2818('0x11'),(_0x41b2ac,_0x1cd1b9)=>{const _0x12477e=_0x3e7cb5['model'],_0x20e43a=_0x12477e['document'][_0x2818('0x9')];_0x12477e[_0x2818('0x10')](()=>{const _0x432e42=function(_0x331919){const _0x23fd5b=_0x331919[_0x2818('0xe')]();if(_0x23fd5b&&_0x23fd5b['is']('element',_0x2818('0x3')))return _0x331919[_0x2818('0xe')]();return null;}(_0x20e43a);if(!_0x432e42)return void _0x41b2ac(null);const _0x265353=_0x432e42[_0x2818('0x12')](_0x2818('0x4'))||'';if(void 0x0===_0x1cd1b9)return;if(_0x1cd1b9===_0x265353)return;_0x331e57[_0x2818('0x14')](_0x432e42,{'commandName':'htmlEmbed','commandParams':[_0x1cd1b9]}),_0x310113[_0x2818('0xe')]()[_0x2818('0x1')](_0x2818('0x16'))[_0x2818('0x6')]();});}),_0x331e57[_0x2818('0xa')][_0x2818('0xf')](_0x3c09f1=>{const {data:_0x29814d}=_0x3c09f1;if(_0x29814d&&'htmlEmbed'==_0x29814d[_0x2818('0xc')]){const _0x171c58=_0x86f87d(_0x5e0f6d,_0x2818('0x7'));return{'type':'format','content':_0x86f87d(_0x5e0f6d,_0x2818('0x19'),_0x171c58)};}});}}
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,7 +1,11 @@
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
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for {@link module:image/image~Image image feature}.
7
11
  */
@@ -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 _0xa296=['commandParams','toLowerCase','commandReversedParams','filter','get','newValue','ImageUploadEditing','length','side','next','ImageStyleEditing','formatInline','commandName','refresh','ImageTextAlternativeEditing','nodeBefore','toNext','getSuggestionCallback','getSuggestions','imageStyle','head','imageCaption','ImageUtils','type','getFirstRange','imageTypeInline','find','_findSuggestions','format','ELEMENT_INLINE_IMAGE','Users','caption','accept','registerElementLabel','nodeAfter','shouldConvertImageType','selection','resizeImage','isEqual','_descriptionFactory','getNearestSelectionRange','ImageBlockEditing','imageInline','Inline\x20image\x20to\x20block\x20image','*Format:*\x20%0','ELEMENT_IMAGE','uploadImage','getCaptionFromImageModelElement','addObject','isOwn','editor','join','markInlineFormat','insertImage','hasSuggestion','insertion','forceDefaultExecution','discardSuggestion','isCollapsed','getSuggestion','formatBlock','isIntersecting','chain','*Reset\x20image\x20width*','width','fromPosition','ImageEditing','toggleImageCaption','hasAttribute','previous','ELEMENT_CAPTION','imageStylePreApply','imageStylePostApply','isInlineImage','createRange','*Set\x20image\x20text\x20alternative:*\x20%0','isBefore','*Remove\x20image\x20text\x20alternative*','getChangedMarkers','enableCommand','registerCustomCallback','model','markBlockFormat','_suggestionFactory','suggestion','registerPostFixer','imageTextAlternative','element','document','has','registerDescriptionCallback','value','start','toPrevious','getClosestSelectedImageElement','deletion','*Set\x20image\x20width:*\x20%0','findIndex','isInContent','convertBlockImageToInline','createRangeOn','end','forEach','newRange','ImageCaptionEditing','_splitMarkerName','TrackChangesEditing','plugins','getContainedElement','getAttribute','schema','subType','change','imageTypeBlock','convertInlineImageToBlock','isBlockImage','title','discard','afterInit','backward','markDeletion','commands','from'];(function(_0x4cb2e5,_0xa29622){const _0x1a5364=function(_0x527550){while(--_0x527550){_0x4cb2e5['push'](_0x4cb2e5['shift']());}};_0x1a5364(++_0xa29622);}(_0xa296,0x1a6));const _0x1a53=function(_0x4cb2e5,_0xa29622){_0x4cb2e5=_0x4cb2e5-0x0;let _0x1a5364=_0xa296[_0x4cb2e5];return _0x1a5364;};import{Plugin as _0x4f4f0d}from'ckeditor5/src/core.js';import{LivePosition as _0x5127af}from'ckeditor5/src/engine.js';import{uid as _0x3c11d0}from'ckeditor5/src/utils.js';import{getTranslation as _0x458bee}from'../utils/common-translations.js';export default class X extends _0x4f4f0d{[_0x1a53('0x41')](){const _0x1ca000=this[_0x1a53('0x78')];if(!_0x1ca000[_0x1a53('0x36')][_0x1a53('0x24')](_0x1a53('0xd')))return;const _0x286dab=_0x1ca000[_0x1a53('0x36')][_0x1a53('0x4a')](_0x1a53('0x35')),_0x7b4b65=_0x1ca000['plugins']['get'](_0x1a53('0x5c')),_0x4b20a4={},_0xcb0ca0=_0x1ca000['locale'];if(_0x286dab[_0x1a53('0x1a')](_0x1a53('0x0')),_0x286dab['_descriptionFactory']['registerElementLabel']('imageBlock',_0x2fddc2=>_0x458bee(_0xcb0ca0,_0x1a53('0x73'),_0x2fddc2)),_0x286dab[_0x1a53('0x6d')]['registerElementLabel'](_0x1a53('0x70'),_0xb62bd=>_0x458bee(_0xcb0ca0,_0x1a53('0x63'),_0xb62bd)),_0x286dab['_descriptionFactory'][_0x1a53('0x67')](_0x1a53('0x65'),()=>_0x458bee(_0xcb0ca0,_0x1a53('0x11'))),_0x1ca000['plugins'][_0x1a53('0x24')](_0x1a53('0x4c'))&&_0x286dab[_0x1a53('0x1a')](_0x1a53('0x74')),_0x1ca000[_0x1a53('0x36')][_0x1a53('0x24')](_0x1a53('0x6f'))&&_0x1ca000['plugins'][_0x1a53('0x24')]('ImageInlineEditing')&&(_0x286dab[_0x1a53('0x1a')](_0x1a53('0x5f'),(_0x5d4b7e,_0x120fcc)=>{const _0x3739f5=_0x7b4b65[_0x1a53('0x29')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')][_0x1a53('0x6a')]);_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](()=>{_0x286dab[_0x1a53('0x1d')](_0x3739f5,{'commandName':_0x1a53('0x5f'),'commandParams':[_0x120fcc]},[],_0x1a53('0x2e'));});}),_0x286dab[_0x1a53('0x1a')]('imageTypeBlock',(_0x1cb0d4,_0x9fadf9)=>{_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](_0x569fcd=>{let _0xdd7f2d=_0x7b4b65[_0x1a53('0x29')](_0x1ca000['model'][_0x1a53('0x23')][_0x1a53('0x6a')]),_0x436bd3=_0x569fcd[_0x1a53('0x2f')](_0xdd7f2d);const _0x5146aa=_0x5127af['fromPosition'](_0x436bd3[_0x1a53('0x27')],_0x1a53('0x28')),_0x1015d3=_0x5127af[_0x1a53('0xc')](_0x436bd3['end'],_0x1a53('0x56'));_0x286dab[_0x1a53('0x3')](()=>_0x1cb0d4(_0x9fadf9)),_0xdd7f2d=_0x7b4b65[_0x1a53('0x29')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')][_0x1a53('0x6a')]),_0x436bd3=_0x569fcd[_0x1a53('0x2f')](_0xdd7f2d);const _0x141c73=_0x569fcd[_0x1a53('0x15')](_0x5146aa,_0x1015d3);_0x5146aa['detach'](),_0x1015d3['detach'](),_0x286dab['markBlockFormat'](_0xdd7f2d,{'commandName':_0x1a53('0x5f'),'commandParams':[]},[],_0x1a53('0x3d')),_0x141c73[_0x1a53('0x27')][_0x1a53('0x17')](_0x436bd3['start'])&&_0x286dab['markInsertion'](_0x569fcd[_0x1a53('0x15')](_0x141c73[_0x1a53('0x27')],_0x436bd3['start']),_0x1a53('0x3d')),_0x436bd3[_0x1a53('0x30')]['isBefore'](_0x141c73['end'])&&_0x286dab['markInsertion'](_0x569fcd[_0x1a53('0x15')](_0x436bd3['end'],_0x141c73[_0x1a53('0x30')]),_0x1a53('0x3d'));});}),_0x286dab[_0x1a53('0x1e')]['registerCustomCallback'](_0x1a53('0x7'),_0x1a53('0x3d'),'join',()=>{}),_0x286dab['_suggestionFactory'][_0x1a53('0x1b')]('formatBlock',_0x1a53('0x3d'),'accept',()=>{}),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')]('formatBlock',_0x1a53('0x3d'),_0x1a53('0x40'),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x57')]('formatBlock','','accept')),_0x286dab['_suggestionFactory'][_0x1a53('0x1b')](_0x1a53('0x2'),_0x1a53('0x3d'),_0x1a53('0x79'),()=>{}),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')](_0x1a53('0x2'),_0x1a53('0x3d'),_0x1a53('0x40'),([_0x4effd3])=>{const _0x2ac357=_0x286dab['_suggestionFactory']['getSuggestionCallback']('insertion','',_0x1a53('0x40'));let _0x3602db=_0x4effd3[_0x1a53('0x27')],_0x2b4037=_0x4effd3[_0x1a53('0x30')];const _0x548e4d=_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x39')][_0x1a53('0x6e')](_0x3602db,_0x1a53('0x42')),_0x4d678f=_0x1ca000[_0x1a53('0x1c')]['schema']['getNearestSelectionRange'](_0x2b4037,'forward');_0x548e4d['isCollapsed']&&(_0x3602db=_0x548e4d[_0x1a53('0x27')]),_0x4d678f[_0x1a53('0x5')]&&(_0x2b4037=_0x4d678f['end']),_0x2ac357([_0x1ca000[_0x1a53('0x1c')]['createRange'](_0x3602db,_0x2b4037)]);}),_0x286dab[_0x1a53('0x1e')]['registerCustomCallback'](_0x1a53('0x7'),_0x1a53('0x3d'),_0x1a53('0x9'),_0x27156a),_0x286dab['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock',_0x1a53('0x9'),_0x27156a)),_0x1ca000[_0x1a53('0x36')][_0x1a53('0x24')](_0x1a53('0x33'))&&(_0x286dab[_0x1a53('0x1a')](_0x1a53('0xe'),(_0x36c2cf,_0x2570c2)=>{const _0x18f404=_0x1ca000[_0x1a53('0x36')][_0x1a53('0x4a')]('ImageCaptionUtils');let _0x413301=_0x7b4b65[_0x1a53('0x29')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')]['selection']),_0x237b9e=_0x18f404['getCaptionFromImageModelElement'](_0x413301);_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](()=>{if(_0x237b9e)return void _0x286dab[_0x1a53('0x43')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x2f')](_0x237b9e));const _0x5c2164=_0x7b4b65['isBlockImage'](_0x413301);_0x36c2cf(_0x2570c2),_0x413301=_0x7b4b65[_0x1a53('0x29')](_0x1ca000['model'][_0x1a53('0x23')][_0x1a53('0x6a')]),_0x237b9e=_0x18f404[_0x1a53('0x75')](_0x413301),_0x286dab['markInsertion'](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x2f')](_0x237b9e),_0x5c2164?null:_0x1a53('0x5b'));});}),_0x286dab['_suggestionFactory'][_0x1a53('0x1b')](_0x1a53('0x2'),_0x1a53('0x5b'),'chain',_0x27156a)),_0x1ca000['plugins'][_0x1a53('0x24')]('ImageStyleEditing')){_0x286dab[_0x1a53('0x1a')](_0x1a53('0x59'),(_0xf82ac2,_0x3c7fcc)=>{const _0x5d4785=_0x1ca000[_0x1a53('0x36')][_0x1a53('0x4a')](_0x1a53('0x64'))['me'],_0x4289f3=_0x1ca000['commands'][_0x1a53('0x4a')]('imageStyle');let _0x1ad3d2=_0x7b4b65['getClosestSelectedImageElement'](_0x1ca000['model'][_0x1a53('0x23')][_0x1a53('0x6a')]),_0x18e12e=_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x2f')](_0x1ad3d2),_0x327c4f=_0x4289f3['value'];if(_0x327c4f==_0x3c7fcc[_0x1a53('0x26')])return;const _0x37af84={'commandName':_0x1a53('0x59'),'commandParams':[_0x3c7fcc],'formatGroupId':_0x3c11d0()};_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](()=>{if(_0x286dab[_0x1a53('0x58')]()[_0x1a53('0x49')](_0x112324=>_0x112324[_0x1a53('0x2d')]&&_0x5d4785==_0x112324['author']&&(_0x1a53('0x7')==_0x112324['type']||_0x1a53('0x51')==_0x112324[_0x1a53('0x5d')])&&('imageStylePreApply'==_0x112324[_0x1a53('0x3a')]||_0x1a53('0x13')==_0x112324['subType'])&&_0x112324[_0x1a53('0x5e')]()[_0x1a53('0x6c')](_0x18e12e))[_0x1a53('0x31')](_0x65eece=>_0x286dab[_0x1a53('0x4')](_0x65eece[_0x1a53('0x5a')])),_0x1ad3d2=_0x7b4b65['getClosestSelectedImageElement'](_0x1ca000[_0x1a53('0x1c')]['document'][_0x1a53('0x6a')]),_0x18e12e=_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x2f')](_0x1ad3d2),_0x4289f3[_0x1a53('0x53')](),_0x1ca000[_0x1a53('0x44')][_0x1a53('0x4a')](_0x1a53('0x5f'))[_0x1a53('0x53')](),_0x1ca000[_0x1a53('0x44')][_0x1a53('0x4a')](_0x1a53('0x3c'))[_0x1a53('0x53')](),_0x327c4f=_0x4289f3[_0x1a53('0x26')],_0x327c4f!=_0x3c7fcc[_0x1a53('0x26')])return _0x7b4b65[_0x1a53('0x14')](_0x1ad3d2)&&_0x4289f3[_0x1a53('0x69')](_0x3c7fcc[_0x1a53('0x26')],_0x1ad3d2)?(_0xf82ac2(_0x3c7fcc),_0x1ad3d2=_0x7b4b65[_0x1a53('0x29')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')][_0x1a53('0x6a')]),void _0x286dab[_0x1a53('0x1d')](_0x1ad3d2,{..._0x37af84,'commandReversedParams':[{'value':_0x327c4f||null}]},[],_0x1a53('0x12'))):void(_0x7b4b65[_0x1a53('0x3e')](_0x1ad3d2)?_0x286dab[_0x1a53('0x1d')](_0x1ad3d2,_0x37af84,[],_0x1a53('0x13')):_0x286dab[_0x1a53('0x7a')](_0x18e12e,_0x37af84,'imageStylePostApply'));});});for(const _0xc362c5 of _0x1ca000[_0x1a53('0x36')]['get'](_0x1a53('0x50'))['normalizedStyles'])_0x4b20a4[_0xc362c5['name']]=_0xc362c5[_0x1a53('0x3f')][_0x1a53('0x47')]();_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')](_0x1a53('0x7'),'imageStylePreApply','join',()=>{}),_0x286dab['_suggestionFactory'][_0x1a53('0x1b')](_0x1a53('0x7'),_0x1a53('0x13'),_0x1a53('0x79'),()=>{}),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')]('formatInline','imageStylePostApply',_0x1a53('0x79'),()=>{}),_0x286dab['_suggestionFactory'][_0x1a53('0x1b')](_0x1a53('0x7'),_0x1a53('0x12'),_0x1a53('0x66'),()=>{}),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')]('formatBlock',_0x1a53('0x12'),_0x1a53('0x40'),(_0x44334b,_0x2447ee)=>{_0x286dab['_suggestionFactory'][_0x1a53('0x57')](_0x1a53('0x7'),'',_0x1a53('0x66'))(_0x44334b,{'commandName':_0x2447ee[_0x1a53('0x52')],'commandParams':_0x2447ee[_0x1a53('0x48')]});}),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')](_0x1a53('0x7'),_0x1a53('0x12'),_0x1a53('0x9'),_0x27156a);}const _0xd46376=[{'type':_0x1a53('0x7'),'subType':_0x1a53('0x12')},{'type':_0x1a53('0x2'),'subType':_0x1a53('0x5b')},{'type':_0x1a53('0x7'),'subType':_0x1a53('0x3d')},{'type':_0x1a53('0x2'),'subType':'convertInlineImageToBlock'}];function _0x1951b9(_0x330b16,_0x4a8ecc){const _0x5a27fe=_0xd46376[_0x1a53('0x2c')](({type:_0x4ef716,subType:_0x28bd31})=>_0x330b16['type']==_0x4ef716&&_0x330b16['subType']==_0x28bd31),_0x1577ab=_0xd46376[_0x1a53('0x2c')](({type:_0x1132f3,subType:_0x1931e4})=>_0x4a8ecc[_0x1a53('0x5d')]==_0x1132f3&&_0x4a8ecc[_0x1a53('0x3a')]==_0x1931e4);if(_0x5a27fe<0x0||_0x1577ab<0x0)return!0x1;const _0x2b8eb2=_0x330b16[_0x1a53('0x5e')](),_0x1c38a0=_0x4a8ecc[_0x1a53('0x5e')]();if((0x0==_0x5a27fe||0x1==_0x5a27fe)&&0x2==_0x1577ab&&_0x2b8eb2[_0x1a53('0x8')](_0x1c38a0))return!0x0;if(0x2==_0x5a27fe&&0x3==_0x1577ab){const _0x502909=_0x286dab[_0x1a53('0x61')](_0x2b8eb2,'insertion')[_0x1a53('0x49')](({suggestion:_0x1149f9,meta:_0x5c50f7})=>_0x5c50f7[_0x1a53('0x77')]&&_0x1a53('0x3d')==_0x1149f9[_0x1a53('0x3a')]);if(_0x502909[_0x1a53('0x4d')]>0x1&&_0x1c38a0['end'][_0x1a53('0x6c')](_0x2b8eb2['start']))return!0x0;if(0x1==_0x502909['length']&&(_0x2b8eb2[_0x1a53('0x27')][_0x1a53('0x6c')](_0x1c38a0['end'])||_0x2b8eb2['end'][_0x1a53('0x6c')](_0x1c38a0[_0x1a53('0x27')])))return!0x0;}if(0x3==_0x5a27fe&&0x3==_0x1577ab&&_0x2b8eb2['start'][_0x1a53('0x17')](_0x1c38a0[_0x1a53('0x27')])){const _0x56be5b=_0x2b8eb2[_0x1a53('0x30')][_0x1a53('0x68')],_0x4800fd=_0x1c38a0['start'][_0x1a53('0x55')];return _0x7b4b65['isBlockImage'](_0x56be5b)&&_0x56be5b===_0x4800fd;}return!0x1;}function _0x27156a(_0x53ff48,_0xcd035f){return _0x1951b9(_0x53ff48,_0xcd035f)?[_0x53ff48,_0xcd035f]:_0x1951b9(_0xcd035f,_0x53ff48)?[_0xcd035f,_0x53ff48]:null;}_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')][_0x1a53('0x20')](()=>{let _0xf8ebeb=!0x1;const _0x26811b=Array[_0x1a53('0x45')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')]['differ'][_0x1a53('0x19')]());for(const {name:_0x377172,data:_0xc09163}of _0x26811b){const {group:_0x1cfaaa,type:_0x25271e,subType:_0x10f11b,id:_0x129b10}=_0x286dab[_0x1a53('0x34')](_0x377172);if(_0x1a53('0x1f')==_0x1cfaaa&&_0x286dab[_0x1a53('0x1')](_0x129b10)){if(_0x1a53('0x7')==_0x25271e&&('imageStylePreApply'==_0x10f11b||_0x1a53('0x13')==_0x10f11b)){const _0x24a0b4=_0x286dab[_0x1a53('0x6')](_0x129b10);if(_0xc09163[_0x1a53('0x32')]){const _0x45f646=_0x24a0b4[_0x1a53('0x5e')]()[_0x1a53('0x37')]();if(_0x7b4b65['isBlockImage'](_0x45f646))continue;_0x286dab[_0x1a53('0x4')](_0x24a0b4),_0xf8ebeb=!0x0;}}if('insertion'==_0x25271e&&_0x1a53('0x5b')==_0x10f11b&&!_0xc09163[_0x1a53('0x32')]){const _0x288bfe=_0x286dab[_0x1a53('0x6')](_0x129b10);_0x288bfe[_0x1a53('0x4f')]&&_0x288bfe[_0x1a53('0x4f')]['isInContent']&&(_0x286dab[_0x1a53('0x4')](_0x288bfe[_0x1a53('0x4f')]),_0xf8ebeb=!0x0);}}}return _0xf8ebeb;}),_0x1ca000[_0x1a53('0x36')][_0x1a53('0x24')]('ImageResize')&&_0x286dab[_0x1a53('0x1a')](_0x1a53('0x6b'),(_0x3db10c,_0x56883e)=>{const _0x22663b=_0x7b4b65[_0x1a53('0x29')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')]['selection']);_0x22663b[_0x1a53('0x38')](_0x1a53('0xb'))!=_0x56883e[_0x1a53('0xb')]&&_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](()=>{_0x286dab[_0x1a53('0x1d')](_0x22663b,{'commandName':_0x1a53('0x6b'),'commandParams':[_0x56883e]});});}),_0x1ca000[_0x1a53('0x36')][_0x1a53('0x24')](_0x1a53('0x54'))&&_0x286dab['enableCommand'](_0x1a53('0x21'),(_0xe73460,_0xb43342)=>{const _0x120548=_0x7b4b65['getClosestSelectedImageElement'](_0x1ca000[_0x1a53('0x1c')]['document'][_0x1a53('0x6a')]);(_0x120548[_0x1a53('0xf')]('alt')?_0x120548[_0x1a53('0x38')]('alt'):'')!=_0xb43342[_0x1a53('0x4b')]&&_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](()=>{_0x286dab[_0x1a53('0x1d')](_0x120548,{'commandName':_0x1a53('0x21'),'commandParams':[_0xb43342]});});}),_0x286dab[_0x1a53('0x6d')]['registerDescriptionCallback'](_0x4e8338=>{if(!!_0xd46376[_0x1a53('0x60')](({type:_0x1d9d64,subType:_0x53d8e1})=>_0x4e8338[_0x1a53('0x5d')]==_0x1d9d64&&_0x4e8338[_0x1a53('0x3a')]==_0x53d8e1))return _0x4e8338[_0x1a53('0x10')]?{}:void 0x0;}),_0x286dab[_0x1a53('0x6d')][_0x1a53('0x25')](_0x58b6e9=>{if('insertion'==_0x58b6e9[_0x1a53('0x5d')]||_0x1a53('0x2a')==_0x58b6e9[_0x1a53('0x5d')]){const _0x3b225c=_0x58b6e9[_0x1a53('0x37')]();if(_0x3b225c&&_0x3b225c['is'](_0x1a53('0x22'),'caption'))return{'type':'insertion'==_0x58b6e9[_0x1a53('0x5d')]?_0x1a53('0x76'):'removeObject','element':_0x3b225c,'quantity':0x1};}}),_0x286dab[_0x1a53('0x6d')][_0x1a53('0x25')](_0xc5c129=>_0x1a53('0x7')==_0xc5c129[_0x1a53('0x5d')]&&'convertInlineImageToBlock'==_0xc5c129[_0x1a53('0x3a')]?{'type':_0x1a53('0x62'),'content':_0x1a53('0x71')}:_0x1a53('0x7')==_0xc5c129[_0x1a53('0x5d')]&&_0x1a53('0x2e')==_0xc5c129[_0x1a53('0x3a')]?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x286dab[_0x1a53('0x6d')][_0x1a53('0x25')](_0x23b635=>{const {data:_0x3269c5}=_0x23b635;if(_0x3269c5){if(_0x1a53('0x59')==_0x3269c5[_0x1a53('0x52')]){const _0x4bcbd6=_0x3269c5[_0x1a53('0x46')][0x0][_0x1a53('0x26')];return _0xc18489(_0x1a53('0x4e')===_0x4bcbd6?_0x458bee(_0xcb0ca0,'FORMAT_SIDE_IMAGE'):_0x4b20a4[_0x4bcbd6]||_0x4bcbd6);}if(_0x1a53('0x21')==_0x3269c5[_0x1a53('0x52')]){const _0x30f829=_0x3269c5[_0x1a53('0x46')][0x0][_0x1a53('0x4b')];return _0x30f829?{'type':_0x1a53('0x62'),'content':_0x458bee(_0xcb0ca0,_0x1a53('0x16'),'\x22'+_0x30f829+'\x22')}:{'type':'format','content':_0x458bee(_0xcb0ca0,_0x1a53('0x18'))};}if(_0x1a53('0x6b')==_0x3269c5['commandName']){const _0x1b8dce=_0x3269c5[_0x1a53('0x46')][0x0][_0x1a53('0xb')];return _0x1b8dce?{'type':_0x1a53('0x62'),'content':_0x458bee(_0xcb0ca0,_0x1a53('0x2b'),_0x1b8dce)}:{'type':'format','content':_0x458bee(_0xcb0ca0,_0x1a53('0xa'))};}}function _0xc18489(_0x2b4fec){return{'type':_0x1a53('0x62'),'content':_0x458bee(_0xcb0ca0,_0x1a53('0x72'),_0x2b4fec)};}});}}
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,9 +1,13 @@
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
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
5
- import type Suggestion from '../suggestion.js';
6
- import type { Description } from '../suggestiondescriptionfactory.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import type Suggestion from '../suggestion';
10
+ import type { Description } from '../suggestiondescriptionfactory';
7
11
  /**
8
12
  * Provides track changes plugin integration for image replace feature.
9
13
  */
@@ -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 _0x2619=['has','TrackChangesEditing','Users','registerCustomCallback','handleReplaceImageCommand','replaceImageSource','model','getAttribute','getSuggestions','discard','*Format:*\x20replace\x20image\x20URL','_descriptionFactory','afterInit','accept','document','commandParams','formatBlock','locale','getSelectedElement','enableCommand','markBlockFormat','get','getSuggestionCallback','getContainedElement','data','author','_suggestionFactory','source','selection','editor','plugins','ImageEditing','change','handleSuggestionDescription','registerDescriptionCallback'];(function(_0x18b733,_0x261907){const _0x2a9860=function(_0x3b8852){while(--_0x3b8852){_0x18b733['push'](_0x18b733['shift']());}};_0x2a9860(++_0x261907);}(_0x2619,0xcb));const _0x2a98=function(_0x18b733,_0x261907){_0x18b733=_0x18b733-0x0;let _0x2a9860=_0x2619[_0x18b733];return _0x2a9860;};import{Plugin as _0x2be2fd}from'ckeditor5/src/core.js';import{getTranslation as _0x260194}from'../utils/common-translations.js';export default class Y extends _0x2be2fd{[_0x2a98('0x13')](){if(!this[_0x2a98('0x1')][_0x2a98('0x2')][_0x2a98('0x7')](_0x2a98('0x3')))return;const _0x42d27c=this[_0x2a98('0x1')]['plugins'][_0x2a98('0x1c')]('TrackChangesEditing');_0x42d27c[_0x2a98('0x1a')](_0x2a98('0xc'),(_0x2e7613,_0x8330f2)=>this[_0x2a98('0xb')](_0x2e7613,_0x8330f2)),_0x42d27c[_0x2a98('0x21')][_0x2a98('0xa')](_0x2a98('0x17'),_0x2a98('0xc'),'accept',_0x42d27c[_0x2a98('0x21')][_0x2a98('0x1d')](_0x2a98('0x17'),null,_0x2a98('0x10'))),_0x42d27c[_0x2a98('0x21')][_0x2a98('0xa')](_0x2a98('0x17'),_0x2a98('0xc'),_0x2a98('0x10'),_0x42d27c['_suggestionFactory'][_0x2a98('0x1d')](_0x2a98('0x17'),null,_0x2a98('0x14'))),_0x42d27c[_0x2a98('0x12')][_0x2a98('0x6')](_0x1d29d1=>this['handleSuggestionDescription'](_0x1d29d1));}[_0x2a98('0xb')](_0x35fad4,_0x483571){const _0x425230=this['editor'][_0x2a98('0x2')][_0x2a98('0x1c')](_0x2a98('0x8')),_0x132c5c=this[_0x2a98('0x1')]['model'][_0x2a98('0x15')][_0x2a98('0x0')][_0x2a98('0x19')]();this[_0x2a98('0x1')][_0x2a98('0xd')][_0x2a98('0x4')](()=>{let _0x376a66=_0x132c5c[_0x2a98('0xe')]('src');const _0x453e0e=this[_0x2a98('0x1')][_0x2a98('0x2')][_0x2a98('0x1c')](_0x2a98('0x9'))['me'];for(const _0x3c7e95 of _0x425230[_0x2a98('0xf')]({'skipNotAttached':!0x0})){const _0x6e5971=_0x3c7e95[_0x2a98('0x1e')]();if(_0x2a98('0xc')===_0x3c7e95['subType']&&_0x6e5971===_0x132c5c){_0x3c7e95[_0x2a98('0x20')]!==_0x453e0e&&_0x3c7e95['discard'](),_0x376a66=_0x3c7e95[_0x2a98('0x1f')][_0x2a98('0x16')][0x0][_0x2a98('0x22')];break;}}_0x35fad4(_0x483571),_0x425230[_0x2a98('0x1b')](_0x132c5c,{'commandName':_0x2a98('0xc'),'commandParams':[{'source':_0x376a66}]},[],'replaceImageSource');});}[_0x2a98('0x5')](_0x4d3768){const {data:_0x52fb86}=_0x4d3768;if(_0x52fb86&&'replaceImageSource'===_0x52fb86['commandName']){const _0x1dd7f9=_0x2a98('0x11');return{'type':'format','content':_0x260194(this[_0x2a98('0x1')][_0x2a98('0x18')],_0x1dd7f9)};}}}
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,7 +1,11 @@
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
  */
4
- import { Plugin, type Editor } from 'ckeditor5/src/core.js';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for the import from Word feature.
7
11
  */
@@ -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 _0x1fa2=['forEach','plugins','track_changes','commands','trackChanges','listenTo','editor','enableCommand','lowest','_trackChangesValueDuringImport','value','TrackChangesEditing','dataInsert','_handleImportedData','Users','bind','execute','_trackChangesExecuted','importWord','afterInit','get','_setSuggestionData'];(function(_0x18fb45,_0x1fa2db){const _0x56fa77=function(_0x3920fd){while(--_0x3920fd){_0x18fb45['push'](_0x18fb45['shift']());}};_0x56fa77(++_0x1fa2db);}(_0x1fa2,0xcd));const _0x56fa=function(_0x18fb45,_0x1fa2db){_0x18fb45=_0x18fb45-0x0;let _0x56fa77=_0x1fa2[_0x18fb45];return _0x56fa77;};import{Plugin as _0x2f7626}from'ckeditor5/src/core.js';export default class Z extends _0x2f7626{constructor(_0x1f3309){super(_0x1f3309),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x56fa('0xc')](){const _0x13fffd=this[_0x56fa('0x15')],_0x44aa0d=_0x13fffd[_0x56fa('0x12')]['get'](_0x56fa('0xb')),_0x1d44f7=_0x13fffd[_0x56fa('0x12')][_0x56fa('0xd')](_0x56fa('0x13'));_0x44aa0d&&(_0x44aa0d['on'](_0x56fa('0x9'),(_0x17d34e,[,_0x670aca])=>{this[_0x56fa('0x2')]=_0x1d44f7[_0x56fa('0x3')],_0x670aca['collaboration_features'][_0x56fa('0x11')]=!this[_0x56fa('0x2')];},{'priority':'high'}),this[_0x56fa('0x14')](_0x44aa0d,_0x56fa('0x5'),this[_0x56fa('0x6')][_0x56fa('0x8')](this)),this[_0x56fa('0x14')](_0x44aa0d,_0x56fa('0x5'),()=>{this[_0x56fa('0xa')]&&(_0x1d44f7[_0x56fa('0x9')](),this['_trackChangesExecuted']=!0x1);},{'priority':_0x56fa('0x1')}),_0x13fffd[_0x56fa('0x10')][_0x56fa('0xd')](_0x56fa('0x4'))[_0x56fa('0x0')](_0x56fa('0xb')));}['_handleImportedData'](_0x4dd513,_0x2a5a0d){const {suggestions:_0x36687a}=_0x2a5a0d,_0x435b97=this[_0x56fa('0x15')][_0x56fa('0x12')][_0x56fa('0xd')](_0x56fa('0x13')),_0x55779a=_0x435b97[_0x56fa('0x3')];this['_trackChangesValueDuringImport']!==_0x55779a&&(_0x435b97[_0x56fa('0x9')](),this[_0x56fa('0xa')]=!0x0),_0x36687a&&_0x36687a[_0x56fa('0xf')](({id:_0x1341e7,type:_0x53199b,author:_0x4e3290,created_at:_0x1cee5c})=>{const _0x1c9c06={'id':_0x1341e7,'type':_0x53199b,'authorId':this['editor'][_0x56fa('0x10')][_0x56fa('0xd')](_0x56fa('0x7'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4e3290,'createdAt':_0x1cee5c?new Date(_0x1cee5c):new Date(),'source':_0x56fa('0xb')}}};this[_0x56fa('0x15')][_0x56fa('0x10')]['get'](_0x56fa('0x4'))[_0x56fa('0xe')](_0x1c9c06);});}}
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,7 +1,11 @@
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
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
7
11
  */
@@ -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 _0x2237=['blockIndent','TrackChangesEditing','format','plugins','IndentEditing','*Outdent:*\x20%0','checkAttribute','getSelectedBlocks','editor','get','model','commandName','_descriptionFactory','filter','enableCommand','selection','indentBlock','*Indent:*\x20%0','IndentBlock','markBlockFormat','outdentBlock','has','from'];(function(_0xfd633,_0x223704){const _0x29f048=function(_0x30ffa0){while(--_0x30ffa0){_0xfd633['push'](_0xfd633['shift']());}};_0x29f048(++_0x223704);}(_0x2237,0x68));const _0x29f0=function(_0xfd633,_0x223704){_0xfd633=_0xfd633-0x0;let _0x29f048=_0x2237[_0xfd633];return _0x29f048;};import{Plugin as _0x354676}from'ckeditor5/src/core.js';import{getTranslation as _0x59bc1f}from'../utils/common-translations.js';export default class tt extends _0x354676{['afterInit'](){const _0x38fa99=this['editor'],_0xc5f02c=_0x38fa99['plugins'][_0x29f0('0x14')](_0x29f0('0xc'));_0x38fa99[_0x29f0('0xe')][_0x29f0('0x9')](_0x29f0('0xf'))&&(_0xc5f02c['enableCommand']('indent'),_0xc5f02c[_0x29f0('0x2')]('outdent'));const _0xed7c6=_0x38fa99['locale'];if(_0x38fa99[_0x29f0('0xe')][_0x29f0('0x9')](_0x29f0('0x6'))){for(const _0x215305 of[_0x29f0('0x4'),_0x29f0('0x8')])_0xc5f02c[_0x29f0('0x2')](_0x215305,()=>{const _0x2d3851=Array[_0x29f0('0xa')](this[_0x29f0('0x13')][_0x29f0('0x15')]['document'][_0x29f0('0x3')][_0x29f0('0x12')]())[_0x29f0('0x1')](_0x3bcb32=>this[_0x29f0('0x13')][_0x29f0('0x15')]['schema'][_0x29f0('0x11')](_0x3bcb32,_0x29f0('0xb')));_0x38fa99[_0x29f0('0x15')]['change'](()=>{for(const _0x1648c9 of _0x2d3851)_0xc5f02c[_0x29f0('0x7')](_0x1648c9,{'commandName':_0x215305,'commandParams':[{'value':''}],'formatGroupId':_0x29f0('0x4')});});});_0xc5f02c[_0x29f0('0x0')]['registerDescriptionCallback'](_0x2c431e=>{const {data:_0x2a801d}=_0x2c431e;if(!_0x2a801d)return;if(_0x29f0('0x4')!=_0x2a801d['commandName']&&_0x29f0('0x8')!=_0x2a801d[_0x29f0('0x16')])return;const _0x37d609=_0x2c431e['getItems']()[0x0],_0x31eb38=_0xc5f02c[_0x29f0('0x0')]['getItemLabel'](_0x37d609);return _0x29f0('0x4')==_0x2a801d[_0x29f0('0x16')]?{'type':_0x29f0('0xd'),'content':_0x59bc1f(_0xed7c6,_0x29f0('0x5'),_0x31eb38)}:_0x29f0('0x8')==_0x2a801d[_0x29f0('0x16')]?{'type':'format','content':_0x59bc1f(_0xed7c6,_0x29f0('0x10'),_0x31eb38)}: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,8 +1,12 @@
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
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
5
- import { Input } from 'ckeditor5/src/typing.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { Input } from 'ckeditor5/src/typing';
6
10
  /**
7
11
  * Provides track changes plugin integration for {@link module:typing/inputcommand~InputCommand input command}.
8
12
  */
@@ -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 _0xeefc=['editor','init','requires','input','TrackChangesEditing','get','enableCommand','plugins'];(function(_0x2da0b3,_0xeefcc3){var _0xeca6e=function(_0x534a2e){while(--_0x534a2e){_0x2da0b3['push'](_0x2da0b3['shift']());}};_0xeca6e(++_0xeefcc3);}(_0xeefc,0x123));var _0xeca6=function(_0x2da0b3,_0xeefcc3){_0x2da0b3=_0x2da0b3-0x0;var _0xeca6e=_0xeefc[_0x2da0b3];return _0xeca6e;};import{Plugin as _0x239dd5}from'ckeditor5/src/core.js';import{Input as _0xecd07b}from'ckeditor5/src/typing.js';export default class st extends _0x239dd5{static get[_0xeca6('0x7')](){return[_0xecd07b];}[_0xeca6('0x6')](){this[_0xeca6('0x5')][_0xeca6('0x4')][_0xeca6('0x2')](_0xeca6('0x1'))[_0xeca6('0x3')](_0xeca6('0x0'));}}
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,7 +1,11 @@
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
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for link feature.
7
11
  */
@@ -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 _0x1994=['has','TrackChangesEditing','commandName','link','format','unlink','_descriptionFactory','getFirstRange','getRanges','document','*Remove\x20link*','getAttribute','LinkEditing','hasAttribute','change','isCollapsed','selection','from','markInlineFormat','plugins','getFirstPosition','model','linkHref','editor','*Set\x20link:*\x20%0'];(function(_0x5ac42d,_0x199487){const _0x3d0789=function(_0x3bac08){while(--_0x3bac08){_0x5ac42d['push'](_0x5ac42d['shift']());}};_0x3d0789(++_0x199487);}(_0x1994,0x1e1));const _0x3d07=function(_0x5ac42d,_0x199487){_0x5ac42d=_0x5ac42d-0x0;let _0x3d0789=_0x1994[_0x5ac42d];return _0x3d0789;};import{Plugin as _0x217659}from'ckeditor5/src/core.js';import{findAttributeRange as _0x214a51}from'ckeditor5/src/typing.js';import{getRangesWithAttribute as _0x96171d}from'./utils.js';import{getTranslation as _0x5d8237}from'../utils/common-translations.js';export default class it extends _0x217659{['afterInit'](){const _0x1c21be=this['editor'];if(!_0x1c21be['plugins'][_0x3d07('0x13')](_0x3d07('0x6')))return;const _0x214ff5=_0x1c21be[_0x3d07('0xd')]['get'](_0x3d07('0x14'));_0x214ff5['enableCommand'](_0x3d07('0x16'),(_0x5369ec,_0x33fe83)=>{const _0x323a5b=_0x1c21be[_0x3d07('0xf')][_0x3d07('0x3')]['selection'];let _0x579423=[];if(_0x323a5b[_0x3d07('0x9')]){if(!_0x323a5b[_0x3d07('0x7')](_0x3d07('0x10')))return void _0x5369ec(_0x33fe83);{const _0x1aabe6=_0x214a51(_0x323a5b['getFirstPosition'](),_0x3d07('0x10'),_0x323a5b['getAttribute']('linkHref'),_0x1c21be[_0x3d07('0xf')]);_0x579423=[_0x1aabe6];}}else _0x579423=Array[_0x3d07('0xb')](_0x323a5b[_0x3d07('0x2')]());_0x1c21be[_0x3d07('0xf')][_0x3d07('0x8')](()=>{for(const _0x25fa4f of _0x579423)_0x214ff5[_0x3d07('0xc')](_0x25fa4f,{'commandName':_0x3d07('0x16'),'commandParams':[_0x33fe83]});});}),_0x214ff5['enableCommand']('unlink',()=>{const _0x2a56c6=this[_0x3d07('0x11')]['model'],_0x595e83=_0x2a56c6[_0x3d07('0x3')][_0x3d07('0xa')];_0x2a56c6[_0x3d07('0x8')](()=>{let _0x458f6b=[];if(_0x595e83[_0x3d07('0x9')])_0x458f6b=[_0x214a51(_0x595e83[_0x3d07('0xe')](),'linkHref',_0x595e83[_0x3d07('0x5')](_0x3d07('0x10')),_0x1c21be['model'])];else _0x458f6b=_0x96171d(_0x3d07('0x10'),_0x595e83[_0x3d07('0x1')](),_0x1c21be['model']);for(const _0x44a9fd of _0x458f6b)_0x214ff5[_0x3d07('0xc')](_0x44a9fd,{'commandName':_0x3d07('0x18'),'commandParams':[]});});}),_0x214ff5[_0x3d07('0x0')]['registerDescriptionCallback'](_0x3ad8f6=>{const {data:_0x250c5b}=_0x3ad8f6,_0x574a9f=_0x1c21be['locale'];if(_0x250c5b){if(_0x3d07('0x16')==_0x250c5b[_0x3d07('0x15')]){const _0x192301=_0x250c5b['commandParams'][0x0];return{'type':'format','content':_0x5d8237(_0x574a9f,_0x3d07('0x12'),'\x22'+_0x192301+'\x22')};}return'unlink'==_0x250c5b[_0x3d07('0x15')]?{'type':_0x3d07('0x17'),'content':_0x5d8237(_0x574a9f,_0x3d07('0x4'))}: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,7 +1,11 @@
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
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for list feature.
7
11
  */