@ckeditor/ckeditor5-track-changes 38.2.0-alpha.1 → 39.0.1

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 _0x50ac=['push','toLowerCase','value','has','formatInline','registerDescriptionCallback','createRange','format','hasAttribute','afterInit','enableCommand','commandParams','*Set\x20highlight:*\x20%0','change','getAttribute','editor','backward','config','commandName','document','getFirstPosition','FORMAT_HIGHLIGHT','isCollapsed','highlight','_descriptionFactory','plugins','model','find','get','color','getRanges','title','highlight.options','item','markInlineFormat','HighlightEditing'];(function(_0x1c2022,_0x50ac62){const _0x59c06a=function(_0x16045e){while(--_0x16045e){_0x1c2022['push'](_0x1c2022['shift']());}};_0x59c06a(++_0x50ac62);}(_0x50ac,0xda));const _0x59c0=function(_0x1c2022,_0x50ac62){_0x1c2022=_0x1c2022-0x0;let _0x59c06a=_0x50ac[_0x1c2022];return _0x59c06a;};import{Plugin as _0x565edb}from'ckeditor5/src/core';import{getTranslation as _0x4c4fd8}from'../utils/common-translations';import{getRangesWithAttribute as _0x5ebfc8}from'./utils';export default class K extends _0x565edb{[_0x59c0('0x7')](){const _0x430bea=this[_0x59c0('0xd')];if(!_0x430bea[_0x59c0('0x17')][_0x59c0('0x1')](_0x59c0('0x21')))return;const _0x4c971b=_0x430bea[_0x59c0('0x17')]['get']('TrackChangesEditing');_0x4c971b[_0x59c0('0x8')](_0x59c0('0x15'),(_0x2b65c7,_0x283098={})=>{const _0x16aca4=_0x430bea[_0x59c0('0x18')][_0x59c0('0x11')]['selection'],_0x4fa42f=_0x16aca4[_0x59c0('0xc')]('highlight');let _0x5f0c09=_0x283098[_0x59c0('0x0')],_0x250e10=[];if(_0x16aca4[_0x59c0('0x14')]){const _0x467c1f=_0x16aca4[_0x59c0('0x12')]();if(!_0x16aca4[_0x59c0('0x6')](_0x59c0('0x15')))return void _0x2b65c7(_0x283098);{const _0x1a9ed8=_0x20b90e=>_0x20b90e[_0x59c0('0x1f')][_0x59c0('0xc')](_0x59c0('0x15'))===_0x4fa42f,_0x1d54c6=_0x467c1f['getLastMatchingPosition'](_0x1a9ed8,{'direction':_0x59c0('0xe')}),_0x582625=_0x467c1f['getLastMatchingPosition'](_0x1a9ed8);_0x250e10=[_0x430bea[_0x59c0('0x18')][_0x59c0('0x4')](_0x1d54c6,_0x582625)],_0x5f0c09==_0x4fa42f&&(_0x5f0c09=null);}}else for(const _0x3fa6a7 of _0x16aca4[_0x59c0('0x1c')]())_0x5f0c09?_0x250e10['push'](_0x3fa6a7):_0x250e10[_0x59c0('0x22')](..._0x5ebfc8(_0x59c0('0x15'),_0x3fa6a7,_0x430bea[_0x59c0('0x18')]));_0x430bea[_0x59c0('0x18')][_0x59c0('0xb')](()=>{for(const _0x1e154a of _0x250e10)_0x4c971b[_0x59c0('0x20')](_0x1e154a,{'commandName':_0x59c0('0x15'),'commandParams':[{'value':_0x5f0c09}]});});});const _0x40fd21=_0x430bea['locale'];_0x4c971b[_0x59c0('0x16')][_0x59c0('0x3')](_0x2a0c5f=>{const {type:_0x2598fa,data:_0x1e9053}=_0x2a0c5f;if(_0x59c0('0x2')==_0x2598fa&&_0x1e9053&&_0x59c0('0x15')==_0x1e9053[_0x59c0('0x10')]){const _0x440e3e=_0x40fd21['t'],_0x2da8a2=_0x1e9053[_0x59c0('0x9')][0x0]['value'];if(_0x2da8a2){const _0x564c23=_0x430bea[_0x59c0('0xf')][_0x59c0('0x1a')](_0x59c0('0x1e'))[_0x59c0('0x19')](_0x495878=>_0x495878[_0x59c0('0x18')]==_0x2da8a2),_0x428c89=_0x440e3e(_0x564c23[_0x59c0('0x1d')])[_0x59c0('0x23')]();return{'type':_0x59c0('0x5'),'content':_0x4c4fd8(_0x40fd21,_0x59c0('0xa'),_0x428c89),'color':{'value':_0x564c23[_0x59c0('0x1b')],'title':_0x564c23[_0x59c0('0x1d')]}};}return{'type':_0x59c0('0x5'),'content':_0x4c4fd8(_0x40fd21,'*Remove\x20highlight*',_0x4c4fd8(_0x40fd21,_0x59c0('0x13')))};}});}}
@@ -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 _0x38d7=['dataDowncast','enableCommand','locale','createPositionAt','plugins','conversion','editor','elementToStructure','insert','get','addClass','createEmptyElement','registerElementLabel','afterInit','high','for','ELEMENT_HORIZONTAL_LINE','has','horizontalLine','TrackChangesEditing','div','ck-horizontal-line','createContainerElement'];(function(_0x3673df,_0x38d73d){const _0xb28a4=function(_0x254a72){while(--_0x254a72){_0x3673df['push'](_0x3673df['shift']());}};_0xb28a4(++_0x38d73d);}(_0x38d7,0x148));const _0xb28a=function(_0x3673df,_0x38d73d){_0x3673df=_0x3673df-0x0;let _0xb28a4=_0x38d7[_0x3673df];return _0xb28a4;};import{Plugin as _0x26eeea}from'ckeditor5/src/core';import{getTranslation as _0xd3dbfa}from'../utils/common-translations';export default class Q extends _0x26eeea{[_0xb28a('0x7')](){const _0x167584=this[_0xb28a('0x0')];if(!_0x167584['plugins'][_0xb28a('0xb')]('HorizontalLineEditing'))return;_0x167584[_0xb28a('0x15')][_0xb28a('0x3')](_0xb28a('0xd'))[_0xb28a('0x12')](_0xb28a('0xc'));const _0x8d3299=_0x167584[_0xb28a('0x15')][_0xb28a('0x3')]('TrackChangesEditing'),_0x5968cd=_0x167584[_0xb28a('0x13')];_0x8d3299['_descriptionFactory'][_0xb28a('0x6')](_0xb28a('0xc'),_0x191267=>_0xd3dbfa(_0x5968cd,_0xb28a('0xa'),_0x191267)),_0x167584[_0xb28a('0x16')][_0xb28a('0x9')](_0xb28a('0x11'))[_0xb28a('0x1')]({'model':'horizontalLine','view':(_0x5425fb,{writer:_0x598677,options:_0x36f0a5})=>{if(!_0x36f0a5['showSuggestionHighlights'])return null;const _0x1cc7b3=_0x598677[_0xb28a('0x10')](_0xb28a('0xe')),_0x4ebf68=_0x598677[_0xb28a('0x5')]('hr');return _0x598677[_0xb28a('0x4')](_0xb28a('0xf'),_0x1cc7b3),_0x598677[_0xb28a('0x2')](_0x598677[_0xb28a('0x14')](_0x1cc7b3,0x0),_0x4ebf68),_0x1cc7b3;},'converterPriority':_0xb28a('0x8')});}}
@@ -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 _0x4871=['locale','selection','htmlEmbed','getSelectedElement','plugins','cancel','*Change\x20%0\x20content*','get','editing','document','ELEMENT_HTML_EMBED','format','element','getAttribute','rawHtml','_descriptionFactory','editor','registerElementLabel','change','TrackChangesEditing','commandName','HtmlEmbed','model','view','enableCommand'];(function(_0xf35c9a,_0x48719e){const _0x22ba63=function(_0x405867){while(--_0x405867){_0xf35c9a['push'](_0xf35c9a['shift']());}};_0x22ba63(++_0x48719e);}(_0x4871,0xa3));const _0x22ba=function(_0xf35c9a,_0x48719e){_0xf35c9a=_0xf35c9a-0x0;let _0x22ba63=_0x4871[_0xf35c9a];return _0x22ba63;};import{Plugin as _0xb0bdbc}from'ckeditor5/src/core';import{getTranslation as _0x787388}from'../utils/common-translations';export default class V extends _0xb0bdbc{['afterInit'](){const _0x9fd71=this[_0x22ba('0x3')];if(!_0x9fd71[_0x22ba('0x10')]['has'](_0x22ba('0x8')))return;const _0x91728c=_0x9fd71['plugins'][_0x22ba('0x13')](_0x22ba('0x6')),_0x1fa8e9=_0x9fd71[_0x22ba('0xc')],_0x433505=_0x9fd71[_0x22ba('0x14')][_0x22ba('0xa')][_0x22ba('0x15')][_0x22ba('0xd')];_0x91728c[_0x22ba('0x2')][_0x22ba('0x4')](_0x22ba('0x1'),_0x4a195=>_0x787388(_0x1fa8e9,_0x22ba('0x16'),_0x4a195)),_0x9fd71[_0x22ba('0x10')][_0x22ba('0x13')]('TrackChangesEditing')[_0x22ba('0xb')]('htmlEmbed',(_0x3aaa5e,_0x30ed94)=>{const _0x2f9e4d=_0x9fd71[_0x22ba('0x9')],_0x55ffad=_0x2f9e4d[_0x22ba('0x15')][_0x22ba('0xd')];_0x2f9e4d[_0x22ba('0x5')](()=>{const _0x1132e9=function(_0x33f114){const _0x1d3d36=_0x33f114['getSelectedElement']();if(_0x1d3d36&&_0x1d3d36['is'](_0x22ba('0x18'),_0x22ba('0x1')))return _0x33f114['getSelectedElement']();return null;}(_0x55ffad);if(!_0x1132e9)return void _0x3aaa5e(null);const _0xfe6cd3=_0x1132e9[_0x22ba('0x0')]('value')||'';if(void 0x0===_0x30ed94)return;if(_0x30ed94===_0xfe6cd3)return;_0x91728c['markBlockFormat'](_0x1132e9,{'commandName':_0x22ba('0xe'),'commandParams':[_0x30ed94]}),_0x433505[_0x22ba('0xf')]()['getCustomProperty']('rawHtmlApi')[_0x22ba('0x11')]();});}),_0x91728c['_descriptionFactory']['registerDescriptionCallback'](_0x34fe40=>{const {data:_0x1c4b22}=_0x34fe40;if(_0x1c4b22&&'htmlEmbed'==_0x1c4b22[_0x22ba('0x7')]){const _0x5d1d10=_0x787388(_0x1fa8e9,_0x22ba('0x16'));return{'type':_0x22ba('0x17'),'content':_0x787388(_0x1fa8e9,_0x22ba('0x12'),_0x5d1d10)};}});}}
@@ -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 _0x41a5=['discard','caption','*Remove\x20image\x20text\x20alternative*','model','getAttribute','markDeletion','deletion','imageStyle','toNext','insertion','createRangeOn','getSuggestion','ImageEditing','end','width','convertInlineImageToBlock','accept','afterInit','getContainedElement','registerPostFixer','ImageUploadEditing','imageStylePostApply','isCollapsed','toPrevious','isBefore','isIntersecting','*Set\x20image\x20text\x20alternative:*\x20%0','type','discardSuggestion','resizeImage','_splitMarkerName','*Set\x20image\x20width:*\x20%0','fromPosition','document','getSuggestionCallback','commandParams','refresh','from','plugins','nodeAfter','findIndex','normalizedStyles','get','head','length','selection','subType','insertImage','title','enableCommand','_suggestionFactory','imageTextAlternative','locale','value','getClosestSelectedImageElement','format','getCaptionFromImageModelElement','imageBlock','ImageStyleEditing','newValue','ImageUtils','commandName','markBlockFormat','removeObject','_findSuggestions','element','imageCaption','getSuggestions','previous','next','join','ImageCaptionEditing','toggleImageCaption','FORMAT_SIDE_IMAGE','convertBlockImageToInline','suggestion','differ','commands','isInlineImage','ELEMENT_INLINE_IMAGE','name','forward','registerElementLabel','chain','ImageResize','getNearestSelectionRange','ELEMENT_IMAGE','hasSuggestion','schema','has','isBlockImage','forceDefaultExecution','alt','detach','registerCustomCallback','shouldConvertImageType','formatBlock','forEach','toLowerCase','newRange','ImageBlockEditing','side','author','createRange','filter','imageStylePreApply','_descriptionFactory','getFirstRange','ImageTextAlternativeEditing','registerDescriptionCallback','ImageInlineEditing','start','TrackChangesEditing','change','addObject','formatInline','ELEMENT_CAPTION','backward','isEqual','imageTypeInline','imageTypeBlock','find','isInContent','markInsertion'];(function(_0x3b890e,_0x41a5bd){const _0x1989ac=function(_0x41a236){while(--_0x41a236){_0x3b890e['push'](_0x3b890e['shift']());}};_0x1989ac(++_0x41a5bd);}(_0x41a5,0x15e));const _0x1989=function(_0x3b890e,_0x41a5bd){_0x3b890e=_0x3b890e-0x0;let _0x1989ac=_0x41a5[_0x3b890e];return _0x1989ac;};import{Plugin as _0x1b149d}from'ckeditor5/src/core';import{LivePosition as _0x55ab23}from'ckeditor5/src/engine';import{uid as _0x5170e0}from'ckeditor5/src/utils';import{getTranslation as _0x45eb9e}from'../utils/common-translations';export default class X extends _0x1b149d{[_0x1989('0x27')](){const _0x519371=this['editor'];if(!_0x519371[_0x1989('0x3c')]['has'](_0x1989('0x22')))return;const _0x140b7f=_0x519371[_0x1989('0x3c')]['get'](_0x1989('0xa')),_0xe9a30f=_0x519371['plugins'][_0x1989('0x40')](_0x1989('0x52')),_0x1a4ce2={},_0x515592=_0x519371[_0x1989('0x4a')];if(_0x140b7f[_0x1989('0x47')](_0x1989('0x45')),_0x140b7f[_0x1989('0x4')]['registerElementLabel'](_0x1989('0x4f'),_0x19b3b3=>_0x45eb9e(_0x515592,_0x1989('0x6c'),_0x19b3b3)),_0x140b7f[_0x1989('0x4')]['registerElementLabel']('imageInline',_0x14f08a=>_0x45eb9e(_0x515592,_0x1989('0x65'),_0x14f08a)),_0x140b7f['_descriptionFactory'][_0x1989('0x68')]('caption',()=>_0x45eb9e(_0x515592,_0x1989('0xe'))),_0x519371[_0x1989('0x3c')][_0x1989('0x6f')](_0x1989('0x2a'))&&_0x140b7f[_0x1989('0x47')]('uploadImage'),_0x519371[_0x1989('0x3c')]['has'](_0x1989('0x7a'))&&_0x519371['plugins'][_0x1989('0x6f')](_0x1989('0x8'))&&(_0x140b7f[_0x1989('0x47')](_0x1989('0x11'),(_0x120aa2,_0x2a68b9)=>{const _0x3c193f=_0xe9a30f[_0x1989('0x4c')](_0x519371[_0x1989('0x19')][_0x1989('0x37')][_0x1989('0x43')]);_0x519371['model'][_0x1989('0xb')](()=>{_0x140b7f[_0x1989('0x54')](_0x3c193f,{'commandName':_0x1989('0x11'),'commandParams':[_0x2a68b9]},[],'convertBlockImageToInline');});}),_0x140b7f[_0x1989('0x47')](_0x1989('0x12'),(_0x58e8c7,_0x3ff749)=>{_0x519371[_0x1989('0x19')][_0x1989('0xb')](_0x5e19c2=>{let _0xc24ce0=_0xe9a30f[_0x1989('0x4c')](_0x519371['model'][_0x1989('0x37')][_0x1989('0x43')]),_0x1cb5ac=_0x5e19c2[_0x1989('0x20')](_0xc24ce0);const _0x4314be=_0x55ab23['fromPosition'](_0x1cb5ac[_0x1989('0x9')],_0x1989('0x2d')),_0x3f5a8b=_0x55ab23[_0x1989('0x36')](_0x1cb5ac[_0x1989('0x23')],_0x1989('0x1e'));_0x140b7f[_0x1989('0x71')](()=>_0x58e8c7(_0x3ff749)),_0xc24ce0=_0xe9a30f[_0x1989('0x4c')](_0x519371['model'][_0x1989('0x37')][_0x1989('0x43')]),_0x1cb5ac=_0x5e19c2[_0x1989('0x20')](_0xc24ce0);const _0x133fd8=_0x5e19c2[_0x1989('0x1')](_0x4314be,_0x3f5a8b);_0x4314be[_0x1989('0x73')](),_0x3f5a8b[_0x1989('0x73')](),_0x140b7f[_0x1989('0x54')](_0xc24ce0,{'commandName':'imageTypeInline','commandParams':[]},[],_0x1989('0x25')),_0x133fd8[_0x1989('0x9')][_0x1989('0x2e')](_0x1cb5ac['start'])&&_0x140b7f[_0x1989('0x15')](_0x5e19c2[_0x1989('0x1')](_0x133fd8['start'],_0x1cb5ac[_0x1989('0x9')]),_0x1989('0x25')),_0x1cb5ac[_0x1989('0x23')]['isBefore'](_0x133fd8['end'])&&_0x140b7f['markInsertion'](_0x5e19c2[_0x1989('0x1')](_0x1cb5ac[_0x1989('0x23')],_0x133fd8['end']),_0x1989('0x25'));});}),_0x140b7f[_0x1989('0x48')]['registerCustomCallback'](_0x1989('0x76'),_0x1989('0x25'),_0x1989('0x5c'),()=>{}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x76'),'convertInlineImageToBlock',_0x1989('0x26'),()=>{}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x76'),'convertInlineImageToBlock','discard',_0x140b7f[_0x1989('0x48')]['getSuggestionCallback'](_0x1989('0x76'),'',_0x1989('0x26'))),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')]('insertion','convertInlineImageToBlock','join',()=>{}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x1f'),_0x1989('0x25'),'discard',([_0x3666ac])=>{const _0x889e7a=_0x140b7f['_suggestionFactory']['getSuggestionCallback'](_0x1989('0x1f'),'',_0x1989('0x16'));let _0xb8dad1=_0x3666ac[_0x1989('0x9')],_0x52ebcc=_0x3666ac[_0x1989('0x23')];const _0x2eb2cf=_0x519371[_0x1989('0x19')][_0x1989('0x6e')][_0x1989('0x6b')](_0xb8dad1,_0x1989('0xf')),_0x387d37=_0x519371[_0x1989('0x19')]['schema'][_0x1989('0x6b')](_0x52ebcc,_0x1989('0x67'));_0x2eb2cf['isCollapsed']&&(_0xb8dad1=_0x2eb2cf['start']),_0x387d37[_0x1989('0x2c')]&&(_0x52ebcc=_0x387d37['end']),_0x889e7a([_0x519371['model'][_0x1989('0x1')](_0xb8dad1,_0x52ebcc)]);}),_0x140b7f[_0x1989('0x48')]['registerCustomCallback'](_0x1989('0x76'),_0x1989('0x25'),'chain',_0x1bdb5d),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x1f'),'convertInlineImageToBlock',_0x1989('0x69'),_0x1bdb5d)),_0x519371[_0x1989('0x3c')][_0x1989('0x6f')](_0x1989('0x5d'))&&(_0x140b7f['enableCommand'](_0x1989('0x5e'),(_0x5b794d,_0x413a6f)=>{const _0x3baa06=_0x519371[_0x1989('0x3c')]['get']('ImageCaptionUtils');let _0x460295=_0xe9a30f[_0x1989('0x4c')](_0x519371[_0x1989('0x19')][_0x1989('0x37')][_0x1989('0x43')]),_0x5e3bab=_0x3baa06[_0x1989('0x4e')](_0x460295);_0x519371[_0x1989('0x19')][_0x1989('0xb')](()=>{if(_0x5e3bab)return void _0x140b7f[_0x1989('0x1b')](_0x519371[_0x1989('0x19')][_0x1989('0x20')](_0x5e3bab));const _0x9e141b=_0xe9a30f[_0x1989('0x70')](_0x460295);_0x5b794d(_0x413a6f),_0x460295=_0xe9a30f['getClosestSelectedImageElement'](_0x519371[_0x1989('0x19')][_0x1989('0x37')][_0x1989('0x43')]),_0x5e3bab=_0x3baa06[_0x1989('0x4e')](_0x460295),_0x140b7f['markInsertion'](_0x519371[_0x1989('0x19')][_0x1989('0x20')](_0x5e3bab),_0x9e141b?null:_0x1989('0x58'));});}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')]('insertion',_0x1989('0x58'),_0x1989('0x69'),_0x1bdb5d)),_0x519371[_0x1989('0x3c')]['has']('ImageStyleEditing')){_0x140b7f[_0x1989('0x47')]('imageStyle',(_0x7e6504,_0x16276d)=>{const _0x31f24e=_0x519371[_0x1989('0x3c')][_0x1989('0x40')]('Users')['me'],_0x53088d=_0x519371[_0x1989('0x63')]['get']('imageStyle');let _0xaf23ca=_0xe9a30f['getClosestSelectedImageElement'](_0x519371[_0x1989('0x19')]['document']['selection']),_0x1e6df5=_0x519371[_0x1989('0x19')][_0x1989('0x20')](_0xaf23ca),_0x214871=_0x53088d[_0x1989('0x4b')];if(_0x214871==_0x16276d[_0x1989('0x4b')])return;const _0x34e0a1={'commandName':_0x1989('0x1d'),'commandParams':[_0x16276d],'formatGroupId':_0x5170e0()};_0x519371[_0x1989('0x19')][_0x1989('0xb')](()=>{if(_0x140b7f[_0x1989('0x59')]()['filter'](_0x470d65=>_0x470d65[_0x1989('0x14')]&&_0x31f24e==_0x470d65[_0x1989('0x0')]&&(_0x1989('0x76')==_0x470d65['type']||_0x1989('0xd')==_0x470d65[_0x1989('0x31')])&&(_0x1989('0x3')==_0x470d65[_0x1989('0x44')]||'imageStylePostApply'==_0x470d65[_0x1989('0x44')])&&_0x470d65[_0x1989('0x5')]()['isEqual'](_0x1e6df5))[_0x1989('0x77')](_0x428b4d=>_0x140b7f[_0x1989('0x32')](_0x428b4d[_0x1989('0x41')])),_0xaf23ca=_0xe9a30f[_0x1989('0x4c')](_0x519371[_0x1989('0x19')][_0x1989('0x37')][_0x1989('0x43')]),_0x1e6df5=_0x519371['model']['createRangeOn'](_0xaf23ca),_0x53088d[_0x1989('0x3a')](),_0x519371[_0x1989('0x63')][_0x1989('0x40')](_0x1989('0x11'))[_0x1989('0x3a')](),_0x519371[_0x1989('0x63')][_0x1989('0x40')]('imageTypeBlock')[_0x1989('0x3a')](),_0x214871=_0x53088d[_0x1989('0x4b')],_0x214871!=_0x16276d[_0x1989('0x4b')])return _0xe9a30f[_0x1989('0x64')](_0xaf23ca)&&_0x53088d[_0x1989('0x75')](_0x16276d[_0x1989('0x4b')],_0xaf23ca)?(_0x7e6504(_0x16276d),_0xaf23ca=_0xe9a30f[_0x1989('0x4c')](_0x519371[_0x1989('0x19')][_0x1989('0x37')][_0x1989('0x43')]),void _0x140b7f[_0x1989('0x54')](_0xaf23ca,{..._0x34e0a1,'commandReversedParams':[{'value':_0x214871||null}]},[],_0x1989('0x3'))):void(_0xe9a30f[_0x1989('0x70')](_0xaf23ca)?_0x140b7f[_0x1989('0x54')](_0xaf23ca,_0x34e0a1,[],'imageStylePostApply'):_0x140b7f['markInlineFormat'](_0x1e6df5,_0x34e0a1,_0x1989('0x2b')));});});for(const _0x3c21bb of _0x519371['plugins'][_0x1989('0x40')](_0x1989('0x50'))[_0x1989('0x3f')])_0x1a4ce2[_0x3c21bb[_0x1989('0x66')]]=_0x3c21bb[_0x1989('0x46')][_0x1989('0x78')]();_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x76'),_0x1989('0x3'),_0x1989('0x5c'),()=>{}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x76'),_0x1989('0x2b'),_0x1989('0x5c'),()=>{}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0xd'),_0x1989('0x2b'),'join',()=>{}),_0x140b7f['_suggestionFactory']['registerCustomCallback'](_0x1989('0x76'),_0x1989('0x3'),'accept',()=>{}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x76'),_0x1989('0x3'),'discard',(_0x480b93,_0x36dd5b)=>{_0x140b7f[_0x1989('0x48')][_0x1989('0x38')](_0x1989('0x76'),'',_0x1989('0x26'))(_0x480b93,{'commandName':_0x36dd5b[_0x1989('0x53')],'commandParams':_0x36dd5b['commandReversedParams']});}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x76'),'imageStylePreApply',_0x1989('0x69'),_0x1bdb5d);}const _0x522e51=[{'type':_0x1989('0x76'),'subType':_0x1989('0x3')},{'type':_0x1989('0x1f'),'subType':_0x1989('0x58')},{'type':_0x1989('0x76'),'subType':_0x1989('0x25')},{'type':'insertion','subType':_0x1989('0x25')}];function _0x845d14(_0x45424b,_0x367c0c){const _0x8c6dbe=_0x522e51['findIndex'](({type:_0x518089,subType:_0x803e92})=>_0x45424b[_0x1989('0x31')]==_0x518089&&_0x45424b[_0x1989('0x44')]==_0x803e92),_0x49ce2d=_0x522e51[_0x1989('0x3e')](({type:_0x4d9cd2,subType:_0x26eb2f})=>_0x367c0c['type']==_0x4d9cd2&&_0x367c0c['subType']==_0x26eb2f);if(_0x8c6dbe<0x0||_0x49ce2d<0x0)return!0x1;const _0x239971=_0x45424b[_0x1989('0x5')](),_0x56ea54=_0x367c0c[_0x1989('0x5')]();if((0x0==_0x8c6dbe||0x1==_0x8c6dbe)&&0x2==_0x49ce2d&&_0x239971[_0x1989('0x2f')](_0x56ea54))return!0x0;if(0x2==_0x8c6dbe&&0x3==_0x49ce2d){const _0x5c99e0=_0x140b7f[_0x1989('0x56')](_0x239971,_0x1989('0x1f'))[_0x1989('0x2')](({suggestion:_0x457950,meta:_0x34295b})=>_0x34295b['isOwn']&&_0x1989('0x25')==_0x457950[_0x1989('0x44')]);if(_0x5c99e0[_0x1989('0x42')]>0x1&&_0x56ea54[_0x1989('0x23')][_0x1989('0x10')](_0x239971[_0x1989('0x9')]))return!0x0;if(0x1==_0x5c99e0['length']&&(_0x239971['start'][_0x1989('0x10')](_0x56ea54[_0x1989('0x23')])||_0x239971['end'][_0x1989('0x10')](_0x56ea54['start'])))return!0x0;}if(0x3==_0x8c6dbe&&0x3==_0x49ce2d&&_0x239971[_0x1989('0x9')][_0x1989('0x2e')](_0x56ea54[_0x1989('0x9')])){const _0x1e206b=_0x239971[_0x1989('0x23')][_0x1989('0x3d')],_0x5b0748=_0x56ea54['start']['nodeBefore'];return _0xe9a30f[_0x1989('0x70')](_0x1e206b)&&_0x1e206b===_0x5b0748;}return!0x1;}function _0x1bdb5d(_0x17f308,_0x467e6f){return _0x845d14(_0x17f308,_0x467e6f)?[_0x17f308,_0x467e6f]:_0x845d14(_0x467e6f,_0x17f308)?[_0x467e6f,_0x17f308]:null;}_0x519371[_0x1989('0x19')]['document'][_0x1989('0x29')](()=>{let _0x1e1db4=!0x1;const _0x530e97=Array[_0x1989('0x3b')](_0x519371['model'][_0x1989('0x37')][_0x1989('0x62')]['getChangedMarkers']());for(const {name:_0x1f878c,data:_0x2348f7}of _0x530e97){const {group:_0x50f9e2,type:_0x2853e4,subType:_0x1af356,id:_0x5daedc}=_0x140b7f[_0x1989('0x34')](_0x1f878c);if(_0x1989('0x61')==_0x50f9e2&&_0x140b7f[_0x1989('0x6d')](_0x5daedc)){if(_0x1989('0x76')==_0x2853e4&&(_0x1989('0x3')==_0x1af356||_0x1989('0x2b')==_0x1af356)){const _0x5e0ffa=_0x140b7f['getSuggestion'](_0x5daedc);if(_0x2348f7['newRange']){const _0xeafd0f=_0x5e0ffa[_0x1989('0x5')]()[_0x1989('0x28')]();if(_0xe9a30f[_0x1989('0x70')](_0xeafd0f))continue;_0x140b7f['discardSuggestion'](_0x5e0ffa),_0x1e1db4=!0x0;}}if(_0x1989('0x1f')==_0x2853e4&&_0x1989('0x58')==_0x1af356&&!_0x2348f7[_0x1989('0x79')]){const _0x5b2905=_0x140b7f[_0x1989('0x21')](_0x5daedc);_0x5b2905[_0x1989('0x5b')]&&_0x5b2905[_0x1989('0x5b')][_0x1989('0x14')]&&(_0x140b7f[_0x1989('0x32')](_0x5b2905[_0x1989('0x5b')]),_0x1e1db4=!0x0);}}}return _0x1e1db4;}),_0x519371['plugins'][_0x1989('0x6f')](_0x1989('0x6a'))&&_0x140b7f[_0x1989('0x47')]('resizeImage',(_0x4d07b5,_0x45eb1d)=>{const _0x546db3=_0xe9a30f['getClosestSelectedImageElement'](_0x519371['model'][_0x1989('0x37')][_0x1989('0x43')]);_0x546db3[_0x1989('0x1a')]('width')!=_0x45eb1d['width']&&_0x519371[_0x1989('0x19')][_0x1989('0xb')](()=>{_0x140b7f[_0x1989('0x54')](_0x546db3,{'commandName':_0x1989('0x33'),'commandParams':[_0x45eb1d]});});}),_0x519371[_0x1989('0x3c')][_0x1989('0x6f')](_0x1989('0x6'))&&_0x140b7f[_0x1989('0x47')](_0x1989('0x49'),(_0x2bef86,_0x83ce54)=>{const _0x29fc21=_0xe9a30f[_0x1989('0x4c')](_0x519371['model'][_0x1989('0x37')]['selection']);(_0x29fc21['hasAttribute']('alt')?_0x29fc21[_0x1989('0x1a')](_0x1989('0x72')):'')!=_0x83ce54[_0x1989('0x51')]&&_0x519371[_0x1989('0x19')][_0x1989('0xb')](()=>{_0x140b7f[_0x1989('0x54')](_0x29fc21,{'commandName':_0x1989('0x49'),'commandParams':[_0x83ce54]});});}),_0x140b7f[_0x1989('0x4')][_0x1989('0x7')](_0x2c5b67=>{if(!!_0x522e51[_0x1989('0x13')](({type:_0x5a1f43,subType:_0x57b540})=>_0x2c5b67[_0x1989('0x31')]==_0x5a1f43&&_0x2c5b67[_0x1989('0x44')]==_0x57b540))return _0x2c5b67[_0x1989('0x5a')]?{}:void 0x0;}),_0x140b7f[_0x1989('0x4')][_0x1989('0x7')](_0x4dc5a8=>{if(_0x1989('0x1f')==_0x4dc5a8[_0x1989('0x31')]||_0x1989('0x1c')==_0x4dc5a8[_0x1989('0x31')]){const _0x44f200=_0x4dc5a8[_0x1989('0x28')]();if(_0x44f200&&_0x44f200['is'](_0x1989('0x57'),_0x1989('0x17')))return{'type':_0x1989('0x1f')==_0x4dc5a8[_0x1989('0x31')]?_0x1989('0xc'):_0x1989('0x55'),'element':_0x44f200,'quantity':0x1};}}),_0x140b7f[_0x1989('0x4')]['registerDescriptionCallback'](_0x2d2cdf=>_0x1989('0x76')==_0x2d2cdf[_0x1989('0x31')]&&'convertInlineImageToBlock'==_0x2d2cdf[_0x1989('0x44')]?{'type':_0x1989('0x4d'),'content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2d2cdf[_0x1989('0x31')]&&_0x1989('0x60')==_0x2d2cdf[_0x1989('0x44')]?{'type':_0x1989('0x4d'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x140b7f[_0x1989('0x4')]['registerDescriptionCallback'](_0x4d2523=>{const {data:_0x4f4676}=_0x4d2523;if(_0x4f4676){if(_0x1989('0x1d')==_0x4f4676[_0x1989('0x53')]){const _0x35afb8=_0x4f4676[_0x1989('0x39')][0x0]['value'];return _0x4de1cc(_0x1989('0x7b')===_0x35afb8?_0x45eb9e(_0x515592,_0x1989('0x5f')):_0x1a4ce2[_0x35afb8]||_0x35afb8);}if(_0x1989('0x49')==_0x4f4676['commandName']){const _0x4e248b=_0x4f4676[_0x1989('0x39')][0x0][_0x1989('0x51')];return _0x4e248b?{'type':'format','content':_0x45eb9e(_0x515592,_0x1989('0x30'),'\x22'+_0x4e248b+'\x22')}:{'type':'format','content':_0x45eb9e(_0x515592,_0x1989('0x18'))};}if(_0x1989('0x33')==_0x4f4676['commandName']){const _0x361f1e=_0x4f4676['commandParams'][0x0][_0x1989('0x24')];return _0x361f1e?{'type':_0x1989('0x4d'),'content':_0x45eb9e(_0x515592,_0x1989('0x35'),_0x361f1e)}:{'type':'format','content':_0x45eb9e(_0x515592,'*Reset\x20image\x20width*')};}}function _0x4de1cc(_0x11312e){return{'type':_0x1989('0x4d'),'content':_0x45eb9e(_0x515592,'*Format:*\x20%0',_0x11312e)};}});}}
@@ -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 _0x5eb6=['format','plugins','getSuggestionCallback','_descriptionFactory','TrackChangesEditing','author','discard','formatBlock','handleReplaceImageCommand','*Format:*\x20replace\x20image\x20URL','source','editor','getSelectedElement','get','commandName','subType','accept','src','registerCustomCallback','getSuggestions','getContainedElement','commandParams','data','replaceImageSource','has','change','afterInit','locale','enableCommand','_suggestionFactory','handleSuggestionDescription','model'];(function(_0xe3b3f1,_0x5eb63d){const _0x4269ff=function(_0x439620){while(--_0x439620){_0xe3b3f1['push'](_0xe3b3f1['shift']());}};_0x4269ff(++_0x5eb63d);}(_0x5eb6,0x9f));const _0x4269=function(_0xe3b3f1,_0x5eb63d){_0xe3b3f1=_0xe3b3f1-0x0;let _0x4269ff=_0x5eb6[_0xe3b3f1];return _0x4269ff;};import{Plugin as _0x16477d}from'ckeditor5/src/core';import{getTranslation as _0x1d7968}from'../utils/common-translations';export default class Y extends _0x16477d{[_0x4269('0x1b')](){if(!this[_0x4269('0xc')][_0x4269('0x2')][_0x4269('0x19')]('ImageEditing'))return;const _0x43867e=this[_0x4269('0xc')]['plugins'][_0x4269('0xe')]('TrackChangesEditing');_0x43867e[_0x4269('0x1d')](_0x4269('0x18'),(_0x538ead,_0x4c05b2)=>this[_0x4269('0x9')](_0x538ead,_0x4c05b2)),_0x43867e[_0x4269('0x1e')][_0x4269('0x13')](_0x4269('0x8'),'replaceImageSource',_0x4269('0x11'),_0x43867e['_suggestionFactory'][_0x4269('0x3')](_0x4269('0x8'),null,'discard')),_0x43867e[_0x4269('0x1e')][_0x4269('0x13')](_0x4269('0x8'),_0x4269('0x18'),_0x4269('0x7'),_0x43867e['_suggestionFactory'][_0x4269('0x3')](_0x4269('0x8'),null,_0x4269('0x11'))),_0x43867e[_0x4269('0x4')]['registerDescriptionCallback'](_0x447b10=>this[_0x4269('0x1f')](_0x447b10));}[_0x4269('0x9')](_0x306176,_0x16f712){const _0x310bf5=this[_0x4269('0xc')][_0x4269('0x2')][_0x4269('0xe')](_0x4269('0x5')),_0x46ea08=this['editor'][_0x4269('0x0')]['document']['selection'][_0x4269('0xd')]();this[_0x4269('0xc')][_0x4269('0x0')][_0x4269('0x1a')](()=>{let _0x3bdeb8=_0x46ea08['getAttribute'](_0x4269('0x12'));const _0x57fee0=this[_0x4269('0xc')][_0x4269('0x2')][_0x4269('0xe')]('Users')['me'];for(const _0x526cb5 of _0x310bf5[_0x4269('0x14')]({'skipNotAttached':!0x0})){const _0x1b91f1=_0x526cb5[_0x4269('0x15')]();if('replaceImageSource'===_0x526cb5[_0x4269('0x10')]&&_0x1b91f1===_0x46ea08){_0x526cb5[_0x4269('0x6')]!==_0x57fee0&&_0x526cb5[_0x4269('0x7')](),_0x3bdeb8=_0x526cb5[_0x4269('0x17')][_0x4269('0x16')][0x0][_0x4269('0xb')];break;}}_0x306176(_0x16f712),_0x310bf5['markBlockFormat'](_0x46ea08,{'commandName':'replaceImageSource','commandParams':[{'source':_0x3bdeb8}]},[],_0x4269('0x18'));});}[_0x4269('0x1f')](_0x354dc9){const {data:_0x9b5a5}=_0x354dc9;if(_0x9b5a5&&_0x4269('0x18')===_0x9b5a5[_0x4269('0xf')]){const _0x237b52=_0x4269('0xa');return{'type':_0x4269('0x1'),'content':_0x1d7968(this[_0x4269('0xc')][_0x4269('0x1c')],_0x237b52)};}}}
@@ -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 _0x4070=['execute','value','TrackChangesEditing','_trackChangesValueDuringImport','_setSuggestionData','bind','dataInsert','collaboration_features','commands','_handleImportedData','afterInit','trackChanges','editor','listenTo','track_changes','_trackChangesExecuted','get','Users','enableCommand','plugins','forEach','lowest','importWord'];(function(_0x31605c,_0x4070a2){const _0x2a4c47=function(_0x24a390){while(--_0x24a390){_0x31605c['push'](_0x31605c['shift']());}};_0x2a4c47(++_0x4070a2);}(_0x4070,0x133));const _0x2a4c=function(_0x31605c,_0x4070a2){_0x31605c=_0x31605c-0x0;let _0x2a4c47=_0x4070[_0x31605c];return _0x2a4c47;};import{Plugin as _0x124ea5}from'ckeditor5/src/core';export default class Z extends _0x124ea5{constructor(_0x522da3){super(_0x522da3),this[_0x2a4c('0x12')]=!0x1,this[_0x2a4c('0x7')]=!0x1;}[_0x2a4c('0x2')](){const _0x324bab=this['editor'],_0x2105b0=_0x324bab['commands']['get'](_0x2a4c('0xe')),_0x1bda94=_0x324bab['commands'][_0x2a4c('0x8')]('trackChanges');_0x2105b0&&(_0x2105b0['on'](_0x2a4c('0xf'),(_0x446b7d,[,_0x21186e])=>{this[_0x2a4c('0x12')]=_0x1bda94[_0x2a4c('0x10')],_0x21186e[_0x2a4c('0x16')][_0x2a4c('0x6')]=!this[_0x2a4c('0x12')];},{'priority':'high'}),this[_0x2a4c('0x5')](_0x2105b0,_0x2a4c('0x15'),this['_handleImportedData'][_0x2a4c('0x14')](this)),this[_0x2a4c('0x5')](_0x2105b0,_0x2a4c('0x15'),()=>{this[_0x2a4c('0x7')]&&(_0x1bda94[_0x2a4c('0xf')](),this['_trackChangesExecuted']=!0x1);},{'priority':_0x2a4c('0xd')}),_0x324bab[_0x2a4c('0xb')][_0x2a4c('0x8')](_0x2a4c('0x11'))[_0x2a4c('0xa')](_0x2a4c('0xe')));}[_0x2a4c('0x1')](_0x508f48,_0x534377){const {suggestions:_0x14f8f2}=_0x534377,_0x44d81d=this[_0x2a4c('0x4')][_0x2a4c('0x0')][_0x2a4c('0x8')](_0x2a4c('0x3')),_0xe3b8b1=_0x44d81d[_0x2a4c('0x10')];this[_0x2a4c('0x12')]!==_0xe3b8b1&&(_0x44d81d['execute'](),this[_0x2a4c('0x7')]=!0x0),_0x14f8f2&&_0x14f8f2[_0x2a4c('0xc')](({id:_0x341282,type:_0x51ee25,author:_0x27c37e,created_at:_0x1cdc5e})=>{const _0x462b4b={'id':_0x341282,'type':_0x51ee25,'authorId':this[_0x2a4c('0x4')][_0x2a4c('0xb')][_0x2a4c('0x8')](_0x2a4c('0x9'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x27c37e,'createdAt':_0x1cdc5e?new Date(_0x1cdc5e):new Date(),'source':_0x2a4c('0xe')}}};this[_0x2a4c('0x4')][_0x2a4c('0xb')][_0x2a4c('0x8')](_0x2a4c('0x11'))[_0x2a4c('0x13')](_0x462b4b);});}}
@@ -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 _0x1d72=['checkAttribute','indentBlock','get','markBlockFormat','model','TrackChangesEditing','has','outdentBlock','editor','afterInit','schema','getItemLabel','plugins','getItems','document','commandName','format','*Indent:*\x20%0','filter','indent','enableCommand','IndentBlock','_descriptionFactory','selection','locale','*Outdent:*\x20%0','registerDescriptionCallback','blockIndent','from'];(function(_0x281418,_0x1d72e2){const _0x29d4ce=function(_0x183907){while(--_0x183907){_0x281418['push'](_0x281418['shift']());}};_0x29d4ce(++_0x1d72e2);}(_0x1d72,0x10c));const _0x29d4=function(_0x281418,_0x1d72e2){_0x281418=_0x281418-0x0;let _0x29d4ce=_0x1d72[_0x281418];return _0x29d4ce;};import{Plugin as _0x341b37}from'ckeditor5/src/core';import{getTranslation as _0xf6c91}from'../utils/common-translations';export default class tt extends _0x341b37{[_0x29d4('0x2')](){const _0x45d27e=this[_0x29d4('0x1')],_0x3ce52d=_0x45d27e['plugins'][_0x29d4('0x18')](_0x29d4('0x1b'));_0x45d27e[_0x29d4('0x5')]['has']('IndentEditing')&&(_0x3ce52d[_0x29d4('0xd')](_0x29d4('0xc')),_0x3ce52d['enableCommand']('outdent'));const _0xd8af6e=_0x45d27e[_0x29d4('0x11')];if(_0x45d27e[_0x29d4('0x5')][_0x29d4('0x1c')](_0x29d4('0xe'))){for(const _0x1af25c of[_0x29d4('0x17'),_0x29d4('0x0')])_0x3ce52d['enableCommand'](_0x1af25c,()=>{const _0x572cce=Array[_0x29d4('0x15')](this[_0x29d4('0x1')]['model'][_0x29d4('0x7')][_0x29d4('0x10')]['getSelectedBlocks']())[_0x29d4('0xb')](_0x5e248b=>this[_0x29d4('0x1')][_0x29d4('0x1a')][_0x29d4('0x3')][_0x29d4('0x16')](_0x5e248b,_0x29d4('0x14')));_0x45d27e[_0x29d4('0x1a')]['change'](()=>{for(const _0x8d7840 of _0x572cce)_0x3ce52d[_0x29d4('0x19')](_0x8d7840,{'commandName':_0x1af25c,'commandParams':[{'value':''}],'formatGroupId':_0x29d4('0x17')});});});_0x3ce52d[_0x29d4('0xf')][_0x29d4('0x13')](_0x3a0a0f=>{const {data:_0x195cd6}=_0x3a0a0f;if(!_0x195cd6)return;if(_0x29d4('0x17')!=_0x195cd6[_0x29d4('0x8')]&&_0x29d4('0x0')!=_0x195cd6[_0x29d4('0x8')])return;const _0xc5407e=_0x3a0a0f[_0x29d4('0x6')]()[0x0],_0xfd5d55=_0x3ce52d[_0x29d4('0xf')][_0x29d4('0x4')](_0xc5407e);return'indentBlock'==_0x195cd6['commandName']?{'type':_0x29d4('0x9'),'content':_0xf6c91(_0xd8af6e,_0x29d4('0xa'),_0xfd5d55)}:'outdentBlock'==_0x195cd6['commandName']?{'type':_0x29d4('0x9'),'content':_0xf6c91(_0xd8af6e,_0x29d4('0x12'),_0xfd5d55)}: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 _0x237a=['init','get','editor','input','plugins','TrackChangesEditing'];(function(_0x6f8dd8,_0x237aff){var _0x1171bc=function(_0x5731d5){while(--_0x5731d5){_0x6f8dd8['push'](_0x6f8dd8['shift']());}};_0x1171bc(++_0x237aff);}(_0x237a,0x81));var _0x1171=function(_0x6f8dd8,_0x237aff){_0x6f8dd8=_0x6f8dd8-0x0;var _0x1171bc=_0x237a[_0x6f8dd8];return _0x1171bc;};import{Plugin as _0x3de623}from'ckeditor5/src/core';import{Input as _0xa67c86}from'ckeditor5/src/typing';export default class it extends _0x3de623{static get['requires'](){return[_0xa67c86];}[_0x1171('0x3')](){this[_0x1171('0x5')][_0x1171('0x1')][_0x1171('0x4')](_0x1171('0x2'))['enableCommand'](_0x1171('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/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 _0x559d=['from','commandParams','getFirstPosition','*Remove\x20link*','_descriptionFactory','selection','document','format','change','model','hasAttribute','isCollapsed','registerDescriptionCallback','getFirstRange','plugins','enableCommand','get','link','commandName','markInlineFormat','getRanges','getAttribute','has','editor','*Set\x20link:*\x20%0','unlink','linkHref','LinkEditing'];(function(_0x3f6949,_0x559dc4){const _0x5ded4a=function(_0x325bdc){while(--_0x325bdc){_0x3f6949['push'](_0x3f6949['shift']());}};_0x5ded4a(++_0x559dc4);}(_0x559d,0x16e));const _0x5ded=function(_0x3f6949,_0x559dc4){_0x3f6949=_0x3f6949-0x0;let _0x5ded4a=_0x559d[_0x3f6949];return _0x5ded4a;};import{Plugin as _0x2db016}from'ckeditor5/src/core';import{findAttributeRange as _0x2dfb7}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x1714dc}from'./utils';import{getTranslation as _0x38ba4b}from'../utils/common-translations';export default class et extends _0x2db016{['afterInit'](){const _0x17d2be=this[_0x5ded('0x15')];if(!_0x17d2be[_0x5ded('0xc')][_0x5ded('0x14')](_0x5ded('0x19')))return;const _0x1d4487=_0x17d2be[_0x5ded('0xc')][_0x5ded('0xe')]('TrackChangesEditing');_0x1d4487[_0x5ded('0xd')]('link',(_0x2a9ff0,_0x13cf21)=>{const _0x5d9418=_0x17d2be['model'][_0x5ded('0x4')][_0x5ded('0x3')];let _0x24d1f3=[];if(_0x5d9418[_0x5ded('0x9')]){if(!_0x5d9418[_0x5ded('0x8')](_0x5ded('0x18')))return void _0x2a9ff0(_0x13cf21);{const _0x52caf4=_0x2dfb7(_0x5d9418[_0x5ded('0x0')](),_0x5ded('0x18'),_0x5d9418[_0x5ded('0x13')](_0x5ded('0x18')),_0x17d2be[_0x5ded('0x7')]);_0x24d1f3=[_0x52caf4];}}else _0x24d1f3=Array[_0x5ded('0x1a')](_0x5d9418[_0x5ded('0x12')]());_0x17d2be[_0x5ded('0x7')][_0x5ded('0x6')](()=>{for(const _0x53a030 of _0x24d1f3)_0x1d4487[_0x5ded('0x11')](_0x53a030,{'commandName':_0x5ded('0xf'),'commandParams':[_0x13cf21]});});}),_0x1d4487[_0x5ded('0xd')](_0x5ded('0x17'),()=>{const _0x419067=this[_0x5ded('0x15')][_0x5ded('0x7')],_0x361cae=_0x419067[_0x5ded('0x4')]['selection'];_0x419067[_0x5ded('0x6')](()=>{let _0x1e22a3=[];if(_0x361cae['isCollapsed'])_0x1e22a3=[_0x2dfb7(_0x361cae[_0x5ded('0x0')](),'linkHref',_0x361cae['getAttribute'](_0x5ded('0x18')),_0x17d2be['model'])];else _0x1e22a3=_0x1714dc(_0x5ded('0x18'),_0x361cae[_0x5ded('0xb')](),_0x17d2be[_0x5ded('0x7')]);for(const _0x5608b5 of _0x1e22a3)_0x1d4487[_0x5ded('0x11')](_0x5608b5,{'commandName':_0x5ded('0x17'),'commandParams':[]});});}),_0x1d4487[_0x5ded('0x2')][_0x5ded('0xa')](_0x464f3f=>{const {data:_0x56b2ee}=_0x464f3f,_0x26bdcd=_0x17d2be['locale'];if(_0x56b2ee){if(_0x5ded('0xf')==_0x56b2ee[_0x5ded('0x10')]){const _0x2e6825=_0x56b2ee[_0x5ded('0x1b')][0x0];return{'type':_0x5ded('0x5'),'content':_0x38ba4b(_0x26bdcd,_0x5ded('0x16'),'\x22'+_0x2e6825+'\x22')};}return _0x5ded('0x17')==_0x56b2ee[_0x5ded('0x10')]?{'type':_0x5ded('0x5'),'content':_0x38ba4b(_0x26bdcd,_0x5ded('0x1'))}: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
  */