@ckeditor/ckeditor5-track-changes 38.0.1 → 38.1.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 (129) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +10 -8
  3. package/src/augmentation.d.ts +36 -36
  4. package/src/commands/acceptsuggestioncommand.d.ts +20 -20
  5. package/src/commands/acceptsuggestioncommand.js +1 -1
  6. package/src/commands/discardsuggestioncommand.d.ts +20 -20
  7. package/src/commands/discardsuggestioncommand.js +1 -1
  8. package/src/commands/executeonallsuggestionscommand.d.ts +20 -20
  9. package/src/commands/executeonallsuggestionscommand.js +1 -1
  10. package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -20
  11. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  12. package/src/commands/trackchangescommand.d.ts +22 -22
  13. package/src/commands/trackchangescommand.js +1 -1
  14. package/src/index.d.ts +12 -12
  15. package/src/integrations/alignment.d.ts +13 -13
  16. package/src/integrations/alignment.js +1 -1
  17. package/src/integrations/basicstyles.d.ts +13 -13
  18. package/src/integrations/basicstyles.js +1 -1
  19. package/src/integrations/blockquote.d.ts +13 -13
  20. package/src/integrations/blockquote.js +1 -1
  21. package/src/integrations/ckbox.d.ts +13 -13
  22. package/src/integrations/ckbox.js +1 -1
  23. package/src/integrations/codeblock.d.ts +13 -13
  24. package/src/integrations/codeblock.js +1 -1
  25. package/src/integrations/comments.d.ts +10 -10
  26. package/src/integrations/comments.js +1 -1
  27. package/src/integrations/deletecommand.d.ts +13 -12
  28. package/src/integrations/deletecommand.js +1 -1
  29. package/src/integrations/documentlist.d.ts +13 -13
  30. package/src/integrations/documentlist.js +1 -1
  31. package/src/integrations/documentlistproperties.d.ts +25 -25
  32. package/src/integrations/documentlistproperties.js +1 -1
  33. package/src/integrations/entercommand.d.ts +12 -11
  34. package/src/integrations/entercommand.js +1 -1
  35. package/src/integrations/findandreplace.d.ts +17 -17
  36. package/src/integrations/findandreplace.js +1 -1
  37. package/src/integrations/font.d.ts +13 -13
  38. package/src/integrations/font.js +1 -1
  39. package/src/integrations/formatpainter.d.ts +13 -13
  40. package/src/integrations/formatpainter.js +1 -1
  41. package/src/integrations/heading.d.ts +13 -13
  42. package/src/integrations/heading.js +1 -1
  43. package/src/integrations/highlight.d.ts +13 -13
  44. package/src/integrations/highlight.js +1 -1
  45. package/src/integrations/horizontalline.d.ts +13 -13
  46. package/src/integrations/horizontalline.js +1 -1
  47. package/src/integrations/htmlembed.d.ts +13 -13
  48. package/src/integrations/htmlembed.js +1 -1
  49. package/src/integrations/image.d.ts +13 -13
  50. package/src/integrations/image.js +1 -1
  51. package/src/integrations/imagereplace.d.ts +19 -19
  52. package/src/integrations/imagereplace.js +1 -1
  53. package/src/integrations/importword.d.ts +14 -14
  54. package/src/integrations/importword.js +1 -1
  55. package/src/integrations/indent.d.ts +13 -13
  56. package/src/integrations/indent.js +1 -1
  57. package/src/integrations/inputcommand.d.ts +12 -11
  58. package/src/integrations/inputcommand.js +1 -1
  59. package/src/integrations/link.d.ts +13 -13
  60. package/src/integrations/link.js +1 -1
  61. package/src/integrations/list.d.ts +13 -13
  62. package/src/integrations/list.js +1 -1
  63. package/src/integrations/listproperties.d.ts +25 -25
  64. package/src/integrations/listproperties.js +1 -1
  65. package/src/integrations/mediaembed.d.ts +13 -13
  66. package/src/integrations/mediaembed.js +1 -1
  67. package/src/integrations/mention.d.ts +13 -13
  68. package/src/integrations/mention.js +1 -1
  69. package/src/integrations/pagebreak.d.ts +13 -13
  70. package/src/integrations/pagebreak.js +1 -1
  71. package/src/integrations/paragraph.d.ts +13 -13
  72. package/src/integrations/paragraph.js +1 -1
  73. package/src/integrations/removeformat.d.ts +13 -13
  74. package/src/integrations/removeformat.js +1 -1
  75. package/src/integrations/restrictededitingmode.d.ts +13 -13
  76. package/src/integrations/restrictededitingmode.js +1 -1
  77. package/src/integrations/shiftentercommand.d.ts +12 -11
  78. package/src/integrations/shiftentercommand.js +1 -1
  79. package/src/integrations/standardeditingmode.d.ts +13 -13
  80. package/src/integrations/standardeditingmode.js +1 -1
  81. package/src/integrations/style.d.ts +14 -14
  82. package/src/integrations/style.js +1 -1
  83. package/src/integrations/table.d.ts +38 -38
  84. package/src/integrations/table.js +1 -1
  85. package/src/integrations/tablecaption.d.ts +18 -17
  86. package/src/integrations/tablecaption.js +1 -1
  87. package/src/integrations/tableclipboard.d.ts +18 -17
  88. package/src/integrations/tableclipboard.js +1 -1
  89. package/src/integrations/tablecolumnresize.d.ts +22 -22
  90. package/src/integrations/tablecolumnresize.js +1 -1
  91. package/src/integrations/tableheadings.d.ts +18 -17
  92. package/src/integrations/tableheadings.js +1 -1
  93. package/src/integrations/tablemergesplit.d.ts +18 -17
  94. package/src/integrations/tablemergesplit.js +1 -1
  95. package/src/integrations/tableofcontents.d.ts +13 -13
  96. package/src/integrations/tableofcontents.js +1 -1
  97. package/src/integrations/tableproperties.d.ts +23 -23
  98. package/src/integrations/tableproperties.js +1 -1
  99. package/src/integrations/template.d.ts +13 -13
  100. package/src/integrations/template.js +1 -1
  101. package/src/integrations/title.d.ts +13 -13
  102. package/src/integrations/title.js +1 -1
  103. package/src/integrations/undo.d.ts +13 -13
  104. package/src/integrations/undo.js +1 -1
  105. package/src/integrations/utils.d.ts +17 -17
  106. package/src/integrations/utils.js +1 -1
  107. package/src/suggestion.d.ts +266 -266
  108. package/src/suggestion.js +1 -1
  109. package/src/suggestiondescriptionfactory.d.ts +151 -151
  110. package/src/suggestiondescriptionfactory.js +1 -1
  111. package/src/trackchanges.d.ts +240 -240
  112. package/src/trackchanges.js +1 -1
  113. package/src/trackchangesconfig.d.ts +71 -71
  114. package/src/trackchangesdata.d.ts +37 -38
  115. package/src/trackchangesdata.js +1 -1
  116. package/src/trackchangesediting.d.ts +435 -391
  117. package/src/trackchangesediting.js +1 -1
  118. package/src/trackchangesui.d.ts +34 -34
  119. package/src/trackchangesui.js +1 -1
  120. package/src/ui/suggestioncontroller.d.ts +36 -36
  121. package/src/ui/suggestioncontroller.js +1 -1
  122. package/src/ui/view/basesuggestionthreadview.d.ts +166 -166
  123. package/src/ui/view/basesuggestionthreadview.js +1 -1
  124. package/src/ui/view/suggestionthreadview.d.ts +182 -184
  125. package/src/ui/view/suggestionthreadview.js +1 -1
  126. package/src/utils/common-translations.d.ts +5 -5
  127. package/src/utils/common-translations.js +1 -1
  128. package/src/utils/utils.d.ts +26 -26
  129. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a75=['title','locale','*Set\x20font\x20color:*\x20%0','FontSizeEditing','trim','format','FontFamilyEditing','toLowerCase','afterInit','*Set\x20font\x20size:*\x20%0','fontColor.colors','TrackChangesEditing','fontFamily','*Set\x20font\x20family:*\x20%0','getRanges','*Reset\x20font\x20family*','from','fontBackgroundColor','FontBackgroundColorEditing','*Reset\x20font\x20background\x20color*','_descriptionFactory','editor','FontColorEditing','find','commandParams','selection','config','*Set\x20font\x20background\x20color:*\x20%0','FontSize','plugins','value','*Reset\x20font\x20color*','markInlineFormat','fontBackgroundColor.colors','commandName','fontSize','*Reset\x20font\x20size*','change','model','registerDescriptionCallback','fontSize.options','get'];(function(_0x4652ad,_0x5a75bd){const _0x24e946=function(_0x39a9ee){while(--_0x39a9ee){_0x4652ad['push'](_0x4652ad['shift']());}};_0x24e946(++_0x5a75bd);}(_0x5a75,0x18b));const _0x24e9=function(_0x4652ad,_0x5a75bd){_0x4652ad=_0x4652ad-0x0;let _0x24e946=_0x5a75[_0x4652ad];return _0x24e946;};import{Plugin as _0x2b4cc8}from'ckeditor5/src/core';import{normalizeColorOptions as _0x1954ba}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x10b844}from'./utils';import{getTranslation as _0x3d64a9}from'../utils/common-translations';const Zt=[{'pluginName':_0x24e9('0x1c'),'commandName':_0x24e9('0x12')},{'pluginName':_0x24e9('0x1f'),'commandName':_0x24e9('0x25')},{'pluginName':_0x24e9('0x5'),'commandName':'fontColor'},{'pluginName':_0x24e9('0x1'),'commandName':_0x24e9('0x0')}];export default class H extends _0x2b4cc8{[_0x24e9('0x21')](){const _0x4edf1a=this[_0x24e9('0x4')][_0x24e9('0x1a')];for(const {pluginName:_0x24ed02,commandName:_0x5a07e0}of Zt)this[_0x24e9('0x4')][_0x24e9('0xc')]['has'](_0x24ed02)&&this['_enableCommand'](_0x5a07e0);this[_0x24e9('0x4')][_0x24e9('0xc')][_0x24e9('0x18')](_0x24e9('0x24'))[_0x24e9('0x3')][_0x24e9('0x16')](_0x5e7f77=>{const _0x25112b=_0x4edf1a['t'],{data:_0xcf660e}=_0x5e7f77;if(null!=_0xcf660e){if(_0x24e9('0x12')==_0xcf660e['commandName']){const _0xbac9ba=_0xcf660e[_0x24e9('0x7')][0x0][_0x24e9('0xd')];if(_0xbac9ba){const _0x2fffe4=_0x25112b(this[_0x24e9('0x4')]['plugins'][_0x24e9('0x18')](_0x24e9('0xb'))['normalizeSizeOptions'](this[_0x24e9('0x4')][_0x24e9('0x9')][_0x24e9('0x18')](_0x24e9('0x17')))[_0x24e9('0x6')](_0x2be9bb=>_0x2be9bb[_0x24e9('0x15')]==_0xbac9ba)[_0x24e9('0x19')])[_0x24e9('0x20')]();return{'type':'format','content':_0x3d64a9(_0x4edf1a,_0x24e9('0x22'),_0x2fffe4)};}return{'type':_0x24e9('0x1e'),'content':_0x3d64a9(_0x4edf1a,_0x24e9('0x13'))};}if(_0x24e9('0x25')==_0xcf660e['commandName']){const _0x23f37b=_0xcf660e[_0x24e9('0x7')][0x0]['value'];return _0x23f37b?{'type':_0x24e9('0x1e'),'content':_0x3d64a9(_0x4edf1a,_0x24e9('0x26'),_0x23f37b)}:{'type':_0x24e9('0x1e'),'content':_0x3d64a9(_0x4edf1a,_0x24e9('0x28'))};}if('fontColor'==_0xcf660e[_0x24e9('0x11')]){const _0x427ab7=_0xcf660e[_0x24e9('0x7')][0x0][_0x24e9('0xd')];if(_0x427ab7){const _0xf9e523=_0x1954ba(this[_0x24e9('0x4')][_0x24e9('0x9')][_0x24e9('0x18')](_0x24e9('0x23')))[_0x24e9('0x6')](_0x2fb084=>_0x2fb084[_0x24e9('0x15')]==_0x427ab7);let _0x35c6bb=_0x427ab7,_0x42a5e5='';return _0xf9e523&&(_0x35c6bb=_0xf9e523['label'],_0x42a5e5=_0x25112b(_0x35c6bb)[_0x24e9('0x20')]()),{'type':_0x24e9('0x1e'),'content':_0x3d64a9(_0x4edf1a,_0x24e9('0x1b'),_0x42a5e5)['trim'](),'color':{'value':_0x427ab7,'title':_0x42a5e5||_0x35c6bb}};}return{'type':_0x24e9('0x1e'),'content':_0x3d64a9(_0x4edf1a,_0x24e9('0xe'))};}if(_0x24e9('0x0')==_0xcf660e[_0x24e9('0x11')]){const _0xbfaa31=_0xcf660e[_0x24e9('0x7')][0x0][_0x24e9('0xd')];if(_0xbfaa31){const _0x9c66e9=_0x1954ba(this[_0x24e9('0x4')][_0x24e9('0x9')][_0x24e9('0x18')](_0x24e9('0x10')))[_0x24e9('0x6')](_0x1a1aa6=>_0x1a1aa6[_0x24e9('0x15')]==_0xbfaa31);let _0x38d076=_0xbfaa31,_0x4e4713='';return _0x9c66e9&&(_0x38d076=_0x9c66e9['label'],_0x4e4713=_0x25112b(_0x38d076)[_0x24e9('0x20')]()),{'type':_0x24e9('0x1e'),'content':_0x3d64a9(_0x4edf1a,_0x24e9('0xa'),_0x4e4713)[_0x24e9('0x1d')](),'color':{'value':_0xbfaa31,'title':_0x4e4713||_0x38d076}};}return{'type':_0x24e9('0x1e'),'content':_0x3d64a9(_0x4edf1a,_0x24e9('0x2'))};}}});}['_enableCommand'](_0x4f0586){const _0x3dc243=this['editor'];_0x3dc243[_0x24e9('0xc')]['get'](_0x24e9('0x24'))['enableCommand'](_0x4f0586,(_0x286488,_0x41962b={})=>{const _0x576aad=_0x3dc243[_0x24e9('0x15')]['document'][_0x24e9('0x8')],_0x57d597=_0x41962b[_0x24e9('0xd')];_0x576aad['isCollapsed']?_0x286488(_0x41962b):_0x3dc243[_0x24e9('0x15')][_0x24e9('0x14')](()=>{const _0xda9e73=Array[_0x24e9('0x29')](_0x576aad[_0x24e9('0x27')]());for(const _0x36a847 of _0xda9e73){const _0x305029=_0x57d597?[_0x36a847]:_0x10b844(_0x4f0586,_0x36a847,_0x3dc243[_0x24e9('0x15')]);for(const _0x2df968 of _0x305029)_0x3dc243[_0x24e9('0xc')][_0x24e9('0x18')](_0x24e9('0x24'))[_0x24e9('0xf')](_0x2df968,{'commandName':_0x4f0586,'commandParams':[{'value':_0x57d597}]});}});});}}
23
+ const _0x5f51=['trim','enableCommand','*Reset\x20font\x20family*','commandName','value','fontFamily','isCollapsed','markInlineFormat','fontBackgroundColor','_descriptionFactory','*Set\x20font\x20background\x20color:*\x20%0','FontFamilyEditing','FontColorEditing','fontSize','has','toLowerCase','getRanges','change','label','from','*Reset\x20font\x20color*','*Set\x20font\x20family:*\x20%0','document','_enableCommand','*Reset\x20font\x20background\x20color*','config','format','fontColor.colors','*Reset\x20font\x20size*','find','selection','fontSize.options','*Set\x20font\x20size:*\x20%0','model','editor','TrackChangesEditing','*Set\x20font\x20color:*\x20%0','plugins','commandParams','title','normalizeSizeOptions','get','fontColor'];(function(_0x2dd46b,_0x5f517d){const _0x57c9ef=function(_0xaf79f8){while(--_0xaf79f8){_0x2dd46b['push'](_0x2dd46b['shift']());}};_0x57c9ef(++_0x5f517d);}(_0x5f51,0x124));const _0x57c9=function(_0x2dd46b,_0x5f517d){_0x2dd46b=_0x2dd46b-0x0;let _0x57c9ef=_0x5f51[_0x2dd46b];return _0x57c9ef;};import{Plugin as _0x1740f4}from'ckeditor5/src/core';import{normalizeColorOptions as _0x34b96e}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x1fd04a}from'./utils';import{getTranslation as _0x22c4fc}from'../utils/common-translations';const Zt=[{'pluginName':'FontSizeEditing','commandName':_0x57c9('0x16')},{'pluginName':_0x57c9('0x14'),'commandName':'fontFamily'},{'pluginName':_0x57c9('0x15'),'commandName':_0x57c9('0x8')},{'pluginName':'FontBackgroundColorEditing','commandName':_0x57c9('0x11')}];export default class H extends _0x1740f4{['afterInit'](){const _0x4e888a=this[_0x57c9('0x0')]['locale'];for(const {pluginName:_0x2170ae,commandName:_0x3edefd}of Zt)this[_0x57c9('0x0')][_0x57c9('0x3')][_0x57c9('0x17')](_0x2170ae)&&this[_0x57c9('0x20')](_0x3edefd);this[_0x57c9('0x0')]['plugins'][_0x57c9('0x7')](_0x57c9('0x1'))[_0x57c9('0x12')]['registerDescriptionCallback'](_0x5e0545=>{const _0x5afe29=_0x4e888a['t'],{data:_0x4d5c87}=_0x5e0545;if(null!=_0x4d5c87){if(_0x57c9('0x16')==_0x4d5c87[_0x57c9('0xc')]){const _0x3fc9bd=_0x4d5c87[_0x57c9('0x4')][0x0][_0x57c9('0xd')];if(_0x3fc9bd){const _0x2be04b=_0x5afe29(this['editor'][_0x57c9('0x3')]['get']('FontSize')[_0x57c9('0x6')](this[_0x57c9('0x0')]['config'][_0x57c9('0x7')](_0x57c9('0x28')))[_0x57c9('0x26')](_0x1016ee=>_0x1016ee['model']==_0x3fc9bd)[_0x57c9('0x5')])[_0x57c9('0x18')]();return{'type':'format','content':_0x22c4fc(_0x4e888a,_0x57c9('0x29'),_0x2be04b)};}return{'type':_0x57c9('0x23'),'content':_0x22c4fc(_0x4e888a,_0x57c9('0x25'))};}if(_0x57c9('0xe')==_0x4d5c87[_0x57c9('0xc')]){const _0x1fc00c=_0x4d5c87[_0x57c9('0x4')][0x0][_0x57c9('0xd')];return _0x1fc00c?{'type':_0x57c9('0x23'),'content':_0x22c4fc(_0x4e888a,_0x57c9('0x1e'),_0x1fc00c)}:{'type':_0x57c9('0x23'),'content':_0x22c4fc(_0x4e888a,_0x57c9('0xb'))};}if('fontColor'==_0x4d5c87[_0x57c9('0xc')]){const _0x3b40eb=_0x4d5c87[_0x57c9('0x4')][0x0][_0x57c9('0xd')];if(_0x3b40eb){const _0x456b04=_0x34b96e(this[_0x57c9('0x0')]['config'][_0x57c9('0x7')](_0x57c9('0x24')))[_0x57c9('0x26')](_0x693546=>_0x693546[_0x57c9('0x2a')]==_0x3b40eb);let _0x445725=_0x3b40eb,_0x187a5a='';return _0x456b04&&(_0x445725=_0x456b04['label'],_0x187a5a=_0x5afe29(_0x445725)[_0x57c9('0x18')]()),{'type':'format','content':_0x22c4fc(_0x4e888a,_0x57c9('0x2'),_0x187a5a)[_0x57c9('0x9')](),'color':{'value':_0x3b40eb,'title':_0x187a5a||_0x445725}};}return{'type':_0x57c9('0x23'),'content':_0x22c4fc(_0x4e888a,_0x57c9('0x1d'))};}if('fontBackgroundColor'==_0x4d5c87[_0x57c9('0xc')]){const _0x4ee233=_0x4d5c87['commandParams'][0x0][_0x57c9('0xd')];if(_0x4ee233){const _0x326464=_0x34b96e(this['editor'][_0x57c9('0x22')][_0x57c9('0x7')]('fontBackgroundColor.colors'))['find'](_0x261db6=>_0x261db6[_0x57c9('0x2a')]==_0x4ee233);let _0x153791=_0x4ee233,_0x58faec='';return _0x326464&&(_0x153791=_0x326464[_0x57c9('0x1b')],_0x58faec=_0x5afe29(_0x153791)['toLowerCase']()),{'type':_0x57c9('0x23'),'content':_0x22c4fc(_0x4e888a,_0x57c9('0x13'),_0x58faec)['trim'](),'color':{'value':_0x4ee233,'title':_0x58faec||_0x153791}};}return{'type':_0x57c9('0x23'),'content':_0x22c4fc(_0x4e888a,_0x57c9('0x21'))};}}});}['_enableCommand'](_0x2a9535){const _0x3338ee=this[_0x57c9('0x0')];_0x3338ee[_0x57c9('0x3')][_0x57c9('0x7')](_0x57c9('0x1'))[_0x57c9('0xa')](_0x2a9535,(_0x1ed603,_0x53df2f={})=>{const _0x559eab=_0x3338ee['model'][_0x57c9('0x1f')][_0x57c9('0x27')],_0x1417f1=_0x53df2f[_0x57c9('0xd')];_0x559eab[_0x57c9('0xf')]?_0x1ed603(_0x53df2f):_0x3338ee[_0x57c9('0x2a')][_0x57c9('0x1a')](()=>{const _0x55e492=Array[_0x57c9('0x1c')](_0x559eab[_0x57c9('0x19')]());for(const _0x4f8817 of _0x55e492){const _0x21ba14=_0x1417f1?[_0x4f8817]:_0x1fd04a(_0x2a9535,_0x4f8817,_0x3338ee['model']);for(const _0x557777 of _0x21ba14)_0x3338ee[_0x57c9('0x3')][_0x57c9('0x7')]('TrackChangesEditing')[_0x57c9('0x10')](_0x557777,{'commandName':_0x2a9535,'commandParams':[{'value':_0x1417f1}]});}});});}}
@@ -1,13 +1,13 @@
1
- /**
2
- * @module track-changes/integrations/formatpainter
3
- */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- /**
6
- * Provides track changes plugin integration for the Format Painter feature.
7
- */
8
- export default class TrackChangesFormatPainter extends Plugin {
9
- /**
10
- * @inheritDoc
11
- */
12
- afterInit(): void;
13
- }
1
+ /**
2
+ * @module track-changes/integrations/formatpainter
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for the Format Painter feature.
7
+ */
8
+ export default class TrackChangesFormatPainter extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4192=['label','plugins','markInlineFormat','getAttributes','getRanges','getSelectedBlocks','_descriptionFactory','commands','fontColor','commandName','word','commandParams','get','fontBackgroundColor','length','createSelection','document','fontSize.options','locale','copyFormat','join','modifySelection','push','fontSize','isBlock','getItems','getAttributeProperties','format','afterInit','title','schema','editor','TrackChangesEditing','model','find','entries','toUpperCase','forward','selection','keys','charAt','toLowerCase','change','getFirstPosition','split','enableCommand','pasteFormat','config','isCollapsed'];(function(_0xad6d32,_0x419276){const _0x1d8df1=function(_0x4bfcc0){while(--_0x4bfcc0){_0xad6d32['push'](_0xad6d32['shift']());}};_0x1d8df1(++_0x419276);}(_0x4192,0x91));const _0x1d8d=function(_0xad6d32,_0x419276){_0xad6d32=_0xad6d32-0x0;let _0x1d8df1=_0x4192[_0xad6d32];return _0x1d8df1;};import{Plugin as _0x2a83e4}from'ckeditor5/src/core';import{normalizeColorOptions as _0x3aa90f}from'ckeditor5/src/ui';import{first as _0x19091a}from'ckeditor5/src/utils';import{getTranslation as _0x26b446}from'../utils/common-translations';export default class W extends _0x2a83e4{[_0x1d8d('0x1e')](){const _0x2f7d1e=this[_0x1d8d('0x21')],_0x16361f=_0x2f7d1e['model'],_0x2276ac=_0x16361f[_0x1d8d('0x12')][_0x1d8d('0x28')],_0x4ccaf3=_0x2f7d1e['plugins'][_0x1d8d('0xe')]('TrackChangesEditing'),_0x1eb55f=_0x2f7d1e[_0x1d8d('0x14')],_0x3f593e=_0x2f7d1e['commands']['get']('copyFormat'),_0x21da10=_0x2f7d1e[_0x1d8d('0x9')][_0x1d8d('0xe')]('pasteFormat');_0x3f593e&&_0x21da10&&(_0x4ccaf3[_0x1d8d('0x2f')](_0x1d8d('0x30'),(_0x365a4e,_0x420ddf={})=>{const _0x51fc2e=_0x420ddf;_0x16361f[_0x1d8d('0x2c')](()=>{const _0x1eeb0f=Array['from'](_0x2276ac[_0x1d8d('0x6')]()),_0x572d24=_0x2276ac[_0x1d8d('0x1')]?[ro(_0x16361f,_0x2276ac)]:_0x1eeb0f,_0x439255=!!_0x19091a(function*(_0xfd0f65,_0x77c32a){const _0x37143a=_0x15624e=>!!_0x19091a(function*(_0x74022f,_0x4d244d){for(const [_0x296b4a]of _0x74022f[_0x1d8d('0x5')]()){const _0x25ea9f=_0x4d244d[_0x1d8d('0x1c')](_0x296b4a);_0x25ea9f&&_0x25ea9f['isFormatting']&&(yield _0x296b4a);}}(_0x15624e,_0x77c32a));for(const _0xd92146 of _0xfd0f65[_0x1d8d('0x6')]())for(const _0xda30c4 of _0xd92146[_0x1d8d('0x1b')]())!_0x77c32a[_0x1d8d('0x1a')](_0xda30c4)&&_0x37143a(_0xda30c4)&&(yield _0xda30c4);for(const _0x5bcf07 of _0xfd0f65[_0x1d8d('0x7')]())_0x37143a(_0x5bcf07)&&(yield _0x5bcf07);_0x37143a(_0xfd0f65)&&(yield _0xfd0f65);}(_0x2276ac,_0x16361f[_0x1d8d('0x20')]));if(_0x439255||0x0!==Object[_0x1d8d('0x29')](_0x51fc2e)['length'])for(const _0x4f693d of _0x572d24)_0x4ccaf3[_0x1d8d('0x4')](_0x4f693d,{'commandName':_0x1d8d('0x30'),'commandParams':[_0x51fc2e]});});}),_0x4ccaf3[_0x1d8d('0x8')]['registerDescriptionCallback'](_0x1e8e2b=>{const {data:_0x37189e}=_0x1e8e2b;if(_0x37189e&&_0x1d8d('0x30')===_0x37189e[_0x1d8d('0xb')]){const _0x917ed4=[],_0x1b89a0=_0x37189e[_0x1d8d('0xd')][0x0];for(const [_0x564674,_0x59fbaf]of Object[_0x1d8d('0x25')](_0x1b89a0))_0x917ed4[_0x1d8d('0x18')](no(_0x2f7d1e,_0x564674,_0x59fbaf));return _0x917ed4[_0x1d8d('0x10')]?{'type':'format','content':_0x26b446(_0x1eb55f,'*Set\x20format\x20to:*\x20%0',_0x917ed4[_0x1d8d('0x16')](',\x20'))}:{'type':_0x1d8d('0x1d'),'content':_0x26b446(_0x1eb55f,'*Remove\x20all\x20formatting*')};}}),_0x2f7d1e[_0x1d8d('0x3')][_0x1d8d('0xe')](_0x1d8d('0x22'))[_0x1d8d('0x2f')](_0x1d8d('0x15')));}}function ro(_0x2ddc99,_0x321e0e){const _0x5f4e31=_0x2ddc99[_0x1d8d('0x11')](_0x321e0e);_0x2ddc99[_0x1d8d('0x17')](_0x5f4e31,{'unit':_0x1d8d('0xc'),'direction':'backward'});const _0x33054d=_0x5f4e31[_0x1d8d('0x2d')]();_0x2ddc99[_0x1d8d('0x17')](_0x5f4e31,{'unit':_0x1d8d('0xc'),'direction':_0x1d8d('0x27')});const _0x297e22=_0x5f4e31['getLastPosition']();return _0x2ddc99['createRange'](_0x33054d,_0x297e22);}function no(_0x5b60c4,_0x22b192,_0x1c2f8d){const _0x4eec2b=_0x5b60c4[_0x1d8d('0x14')]['t'],_0x464d55=_0x22b192[_0x1d8d('0x2e')](/(?=[A-Z])/)[_0x1d8d('0x16')]('\x20'),_0x4c4241=_0x4eec2b(_0x464d55[_0x1d8d('0x2a')](0x0)[_0x1d8d('0x26')]()+_0x464d55['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1c2f8d)return _0x4c4241;if(_0x1d8d('0xa')===_0x22b192||_0x1d8d('0xf')===_0x22b192){const _0x4c8682=_0x3aa90f(_0x5b60c4[_0x1d8d('0x0')][_0x1d8d('0xe')]('fontColor.colors'))[_0x1d8d('0x24')](_0x50a859=>_0x50a859['model']==_0x1c2f8d);return _0x4c4241+'\x20('+(_0x4c8682?_0x4eec2b(_0x4c8682[_0x1d8d('0x2')])['toLowerCase']():_0x1c2f8d)+')';}if(_0x1d8d('0x19')===_0x22b192&&isNaN(parseFloat(_0x1c2f8d))){const _0x323cde=_0x5b60c4[_0x1d8d('0x3')][_0x1d8d('0xe')]('FontSize')['normalizeSizeOptions'](_0x5b60c4[_0x1d8d('0x0')][_0x1d8d('0xe')](_0x1d8d('0x13')))[_0x1d8d('0x24')](_0x3746de=>_0x3746de[_0x1d8d('0x23')]==_0x1c2f8d);return _0x4c4241+'\x20('+(_0x323cde?_0x4eec2b(_0x323cde[_0x1d8d('0x1f')])[_0x1d8d('0x2b')]():_0x1c2f8d)+')';}return _0x4c4241+'\x20('+_0x1c2f8d+')';}
23
+ const _0x19ce=['getLastPosition','keys','charAt','change','createRange','selection','fontSize.options','forward','editor','TrackChangesEditing','isFormatting','format','word','boolean','length','createSelection','config','fontColor.colors','afterInit','getRanges','fontBackgroundColor','toLowerCase','*Remove\x20all\x20formatting*','title','schema','enableCommand','plugins','toUpperCase','split','getItems','getSelectedBlocks','entries','get','push','getAttributes','find','slice','backward','copyFormat','isCollapsed','markInlineFormat','model','locale','label','_descriptionFactory','getAttributeProperties','commandName','pasteFormat','modifySelection','join','fontColor','document'];(function(_0x386608,_0x19ce38){const _0x211ea3=function(_0x4ff406){while(--_0x4ff406){_0x386608['push'](_0x386608['shift']());}};_0x211ea3(++_0x19ce38);}(_0x19ce,0x151));const _0x211e=function(_0x386608,_0x19ce38){_0x386608=_0x386608-0x0;let _0x211ea3=_0x19ce[_0x386608];return _0x211ea3;};import{Plugin as _0x1b806c}from'ckeditor5/src/core';import{normalizeColorOptions as _0x2fca8e}from'ckeditor5/src/ui';import{first as _0x102f7b}from'ckeditor5/src/utils';import{getTranslation as _0xfdf335}from'../utils/common-translations';export default class W extends _0x1b806c{[_0x211e('0x2d')](){const _0x103691=this[_0x211e('0x23')],_0x24475e=_0x103691[_0x211e('0x10')],_0x45899a=_0x24475e[_0x211e('0x1a')][_0x211e('0x20')],_0x271ff8=_0x103691[_0x211e('0x1')][_0x211e('0x7')](_0x211e('0x24')),_0xa72520=_0x103691['locale'],_0x1d9099=_0x103691['commands']['get'](_0x211e('0xd')),_0xece1c2=_0x103691['commands'][_0x211e('0x7')](_0x211e('0x16'));_0x1d9099&&_0xece1c2&&(_0x271ff8[_0x211e('0x0')](_0x211e('0x16'),(_0x5d8a03,_0x35ee8b={})=>{const _0x1956bd=_0x35ee8b;_0x24475e[_0x211e('0x1e')](()=>{const _0x5bbd82=Array['from'](_0x45899a[_0x211e('0x2e')]()),_0x3af1df=_0x45899a[_0x211e('0xe')]?[ro(_0x24475e,_0x45899a)]:_0x5bbd82,_0x33a975=!!_0x102f7b(function*(_0x5743ca,_0x21ffbe){const _0x10c1bd=_0x568cfb=>!!_0x102f7b(function*(_0x1adb20,_0x2823d3){for(const [_0x393a8a]of _0x1adb20[_0x211e('0x9')]()){const _0xc21feb=_0x2823d3[_0x211e('0x14')](_0x393a8a);_0xc21feb&&_0xc21feb[_0x211e('0x25')]&&(yield _0x393a8a);}}(_0x568cfb,_0x21ffbe));for(const _0x36130d of _0x5743ca[_0x211e('0x2e')]())for(const _0x16cac4 of _0x36130d[_0x211e('0x4')]())!_0x21ffbe['isBlock'](_0x16cac4)&&_0x10c1bd(_0x16cac4)&&(yield _0x16cac4);for(const _0x9b94ff of _0x5743ca[_0x211e('0x5')]())_0x10c1bd(_0x9b94ff)&&(yield _0x9b94ff);_0x10c1bd(_0x5743ca)&&(yield _0x5743ca);}(_0x45899a,_0x24475e[_0x211e('0x33')]));if(_0x33a975||0x0!==Object[_0x211e('0x1c')](_0x1956bd)[_0x211e('0x29')])for(const _0x40ebc0 of _0x3af1df)_0x271ff8[_0x211e('0xf')](_0x40ebc0,{'commandName':'pasteFormat','commandParams':[_0x1956bd]});});}),_0x271ff8[_0x211e('0x13')]['registerDescriptionCallback'](_0x715cf5=>{const {data:_0x3f7526}=_0x715cf5;if(_0x3f7526&&'pasteFormat'===_0x3f7526[_0x211e('0x15')]){const _0x40258c=[],_0x1f6e8a=_0x3f7526['commandParams'][0x0];for(const [_0x4fc21c,_0x2ae061]of Object[_0x211e('0x6')](_0x1f6e8a))_0x40258c[_0x211e('0x8')](no(_0x103691,_0x4fc21c,_0x2ae061));return _0x40258c[_0x211e('0x29')]?{'type':_0x211e('0x26'),'content':_0xfdf335(_0xa72520,'*Set\x20format\x20to:*\x20%0',_0x40258c[_0x211e('0x18')](',\x20'))}:{'type':_0x211e('0x26'),'content':_0xfdf335(_0xa72520,_0x211e('0x31'))};}}),_0x103691[_0x211e('0x1')][_0x211e('0x7')](_0x211e('0x24'))[_0x211e('0x0')](_0x211e('0xd')));}}function ro(_0x20a3c2,_0xa2063){const _0x2665d1=_0x20a3c2[_0x211e('0x2a')](_0xa2063);_0x20a3c2[_0x211e('0x17')](_0x2665d1,{'unit':'word','direction':_0x211e('0xc')});const _0x223837=_0x2665d1['getFirstPosition']();_0x20a3c2['modifySelection'](_0x2665d1,{'unit':_0x211e('0x27'),'direction':_0x211e('0x22')});const _0x2c4b0e=_0x2665d1[_0x211e('0x1b')]();return _0x20a3c2[_0x211e('0x1f')](_0x223837,_0x2c4b0e);}function no(_0x4c3dd7,_0x1d3cee,_0x5ec243){const _0x2d8bcb=_0x4c3dd7[_0x211e('0x11')]['t'],_0x69dc1b=_0x1d3cee[_0x211e('0x3')](/(?=[A-Z])/)[_0x211e('0x18')]('\x20'),_0x149b0e=_0x2d8bcb(_0x69dc1b[_0x211e('0x1d')](0x0)[_0x211e('0x2')]()+_0x69dc1b[_0x211e('0xb')](0x1))['toLowerCase']();if(_0x211e('0x28')==typeof _0x5ec243)return _0x149b0e;if(_0x211e('0x19')===_0x1d3cee||_0x211e('0x2f')===_0x1d3cee){const _0x380476=_0x2fca8e(_0x4c3dd7[_0x211e('0x2b')][_0x211e('0x7')](_0x211e('0x2c')))['find'](_0x4ffc43=>_0x4ffc43['model']==_0x5ec243);return _0x149b0e+'\x20('+(_0x380476?_0x2d8bcb(_0x380476[_0x211e('0x12')])[_0x211e('0x30')]():_0x5ec243)+')';}if('fontSize'===_0x1d3cee&&isNaN(parseFloat(_0x5ec243))){const _0x50e20a=_0x4c3dd7[_0x211e('0x1')][_0x211e('0x7')]('FontSize')['normalizeSizeOptions'](_0x4c3dd7['config']['get'](_0x211e('0x21')))[_0x211e('0xa')](_0x44e1a7=>_0x44e1a7['model']==_0x5ec243);return _0x149b0e+'\x20('+(_0x50e20a?_0x2d8bcb(_0x50e20a[_0x211e('0x32')])[_0x211e('0x30')]():_0x5ec243)+')';}return _0x149b0e+'\x20('+_0x5ec243+')';}
@@ -1,13 +1,13 @@
1
- /**
2
- * @module track-changes/integrations/heading
3
- */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- /**
6
- * Provides track changes plugin integration for heading feature.
7
- */
8
- export default class TrackChangesHeading extends Plugin {
9
- /**
10
- * @inheritDoc
11
- */
12
- afterInit(): void;
13
- }
1
+ /**
2
+ * @module track-changes/integrations/heading
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for heading feature.
7
+ */
8
+ export default class TrackChangesHeading extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ccc=['paragraph','get','commandParams','HeadingEditing','TrackChangesEditing','afterInit','format','ELEMENT_HEADING','name','title','has','parent','model','_descriptionFactory','filter','find','from','config','locale','registerDescriptionCallback','checkChild','enableCommand','commandName','ELEMENT_HEADING_CUSTOM','value','document','heading','blockName','getSelectedBlocks','formatBlock','*Change\x20to:*\x20%0','isObject','editor'];(function(_0xb0f92f,_0x1ccc2b){const _0x2beecc=function(_0x4fe19e){while(--_0x4fe19e){_0xb0f92f['push'](_0xb0f92f['shift']());}};_0x2beecc(++_0x1ccc2b);}(_0x1ccc,0x92));const _0x2bee=function(_0xb0f92f,_0x1ccc2b){_0xb0f92f=_0xb0f92f-0x0;let _0x2beecc=_0x1ccc[_0xb0f92f];return _0x2beecc;};import{Plugin as _0x4243cb}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x16955d}from'./utils';import{getTranslation as _0x83c193}from'../utils/common-translations';export default class J extends _0x4243cb{[_0x2bee('0x18')](){const _0x269aa2=this[_0x2bee('0x12')],_0x17219a=_0x269aa2[_0x2bee('0x4')],_0x4bdae1=_0x269aa2[_0x2bee('0x3')][_0x2bee('0x14')]('heading.options');if(!_0x269aa2['plugins'][_0x2bee('0x1d')](_0x2bee('0x16')))return;const _0x52b2c4=_0x269aa2['plugins']['get'](_0x2bee('0x17'));_0x52b2c4[_0x2bee('0x7')](_0x2bee('0xc'),(_0x3d3154,_0x10e3d3)=>{const _0x5ecd40=_0x10e3d3['value'],_0x5953bb=Array[_0x2bee('0x2')](this['editor'][_0x2bee('0x1f')][_0x2bee('0xb')]['selection'][_0x2bee('0xe')]())[_0x2bee('0x0')](_0x2c11d0=>function(_0x4fa62e,_0x25a3b2,_0x248041){return _0x248041[_0x2bee('0x6')](_0x4fa62e[_0x2bee('0x1e')],_0x25a3b2)&&!_0x248041[_0x2bee('0x11')](_0x4fa62e)&&_0x4fa62e[_0x2bee('0x1b')]!=_0x25a3b2;}(_0x2c11d0,_0x5ecd40,this[_0x2bee('0x12')][_0x2bee('0x1f')]['schema']));_0x269aa2['model']['change'](()=>{for(const _0x2e3c0b of _0x5953bb)_0x52b2c4['markBlockFormat'](_0x2e3c0b,{'commandName':_0x2bee('0xc'),'commandParams':[_0x10e3d3],'formatGroupId':_0x2bee('0xd')},_0x16955d(_0x2e3c0b));});});for(const _0xba76e7 of _0x4bdae1)_0x2bee('0x13')!=_0xba76e7[_0x2bee('0x1f')]&&_0x52b2c4[_0x2bee('0x20')]['registerElementLabel'](_0xba76e7[_0x2bee('0x1f')],_0x148e76=>{const _0x2b190a=nn(_0xba76e7[_0x2bee('0x1f')]);return null!==_0x2b190a?_0x33f731(_0x148e76,_0x2b190a):_0x1dce34(_0x148e76,_0xba76e7[_0x2bee('0x1c')]);});function _0x33f731(_0x328cd6,_0x3e492e){return _0x83c193(_0x17219a,_0x2bee('0x1a'),[_0x328cd6,_0x3e492e]);}function _0x1dce34(_0x4fb0e0,_0x2ccb03){return _0x83c193(_0x17219a,_0x2bee('0x9'),[_0x4fb0e0,_0x2ccb03]);}_0x52b2c4['_descriptionFactory'][_0x2bee('0x5')](_0x108e84=>{const {type:_0x535aff,data:_0x465af6}=_0x108e84;if(_0x2bee('0xf')==_0x535aff&&_0x465af6&&'heading'==_0x465af6[_0x2bee('0x8')]){const _0x3396ba=_0x465af6[_0x2bee('0x15')][0x0][_0x2bee('0xa')],_0x52b635=nn(_0x3396ba);if(null!==_0x52b635)return{'type':_0x2bee('0x19'),'content':_0x83c193(_0x17219a,_0x2bee('0x10'),_0x33f731(0x1,_0x52b635))};const _0x5966fd=_0x4bdae1[_0x2bee('0x1')](_0x4c3bb8=>_0x4c3bb8[_0x2bee('0x1f')]===_0x3396ba)[_0x2bee('0x1c')];return{'type':_0x2bee('0x19'),'content':_0x83c193(_0x17219a,_0x2bee('0x10'),_0x1dce34(0x1,_0x5966fd))};}});}}function nn(_0x11301){const _0x140bd9=_0x11301['match'](/^heading(\d+)$/);return _0x140bd9?_0x140bd9[0x1]:null;}
23
+ const _0x48a6=['has','parent','match','editor','registerElementLabel','commandParams','heading.options','format','formatBlock','getSelectedBlocks','TrackChangesEditing','ELEMENT_HEADING_CUSTOM','change','registerDescriptionCallback','find','plugins','schema','title','config','ELEMENT_HEADING','markBlockFormat','name','_descriptionFactory','enableCommand','model','isObject','get','*Change\x20to:*\x20%0','commandName','heading'];(function(_0x33a9c1,_0x48a643){const _0xa1c79=function(_0xf51e67){while(--_0xf51e67){_0x33a9c1['push'](_0x33a9c1['shift']());}};_0xa1c79(++_0x48a643);}(_0x48a6,0x13d));const _0xa1c7=function(_0x33a9c1,_0x48a643){_0x33a9c1=_0x33a9c1-0x0;let _0xa1c79=_0x48a6[_0x33a9c1];return _0xa1c79;};import{Plugin as _0x73219f}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x181b55}from'./utils';import{getTranslation as _0xa6c1b5}from'../utils/common-translations';export default class J extends _0x73219f{['afterInit'](){const _0x47620c=this['editor'],_0x1458e1=_0x47620c['locale'],_0x4529fb=_0x47620c[_0xa1c7('0x1')][_0xa1c7('0x9')](_0xa1c7('0x13'));if(!_0x47620c[_0xa1c7('0x1c')][_0xa1c7('0xd')]('HeadingEditing'))return;const _0x5c4394=_0x47620c[_0xa1c7('0x1c')][_0xa1c7('0x9')](_0xa1c7('0x17'));_0x5c4394[_0xa1c7('0x6')](_0xa1c7('0xc'),(_0x445775,_0x2ea1ae)=>{const _0x3b67ab=_0x2ea1ae['value'],_0x3fd301=Array['from'](this[_0xa1c7('0x10')]['model']['document']['selection'][_0xa1c7('0x16')]())['filter'](_0x32873f=>function(_0x3fe208,_0x21635b,_0x2383ba){return _0x2383ba['checkChild'](_0x3fe208[_0xa1c7('0xe')],_0x21635b)&&!_0x2383ba[_0xa1c7('0x8')](_0x3fe208)&&_0x3fe208[_0xa1c7('0x4')]!=_0x21635b;}(_0x32873f,_0x3b67ab,this[_0xa1c7('0x10')][_0xa1c7('0x7')][_0xa1c7('0x1d')]));_0x47620c[_0xa1c7('0x7')][_0xa1c7('0x19')](()=>{for(const _0x38aa06 of _0x3fd301)_0x5c4394[_0xa1c7('0x3')](_0x38aa06,{'commandName':_0xa1c7('0xc'),'commandParams':[_0x2ea1ae],'formatGroupId':'blockName'},_0x181b55(_0x38aa06));});});for(const _0x6dfa1c of _0x4529fb)'paragraph'!=_0x6dfa1c['model']&&_0x5c4394[_0xa1c7('0x5')][_0xa1c7('0x11')](_0x6dfa1c[_0xa1c7('0x7')],_0x2ff0dd=>{const _0x433882=nn(_0x6dfa1c[_0xa1c7('0x7')]);return null!==_0x433882?_0xda337f(_0x2ff0dd,_0x433882):_0x4e70c9(_0x2ff0dd,_0x6dfa1c[_0xa1c7('0x0')]);});function _0xda337f(_0x53c3ba,_0x534f5e){return _0xa6c1b5(_0x1458e1,_0xa1c7('0x2'),[_0x53c3ba,_0x534f5e]);}function _0x4e70c9(_0x33cde5,_0x5c670e){return _0xa6c1b5(_0x1458e1,_0xa1c7('0x18'),[_0x33cde5,_0x5c670e]);}_0x5c4394[_0xa1c7('0x5')][_0xa1c7('0x1a')](_0x16aa23=>{const {type:_0x18f825,data:_0x3eea01}=_0x16aa23;if(_0xa1c7('0x15')==_0x18f825&&_0x3eea01&&'heading'==_0x3eea01[_0xa1c7('0xb')]){const _0x50f443=_0x3eea01[_0xa1c7('0x12')][0x0]['value'],_0x170d60=nn(_0x50f443);if(null!==_0x170d60)return{'type':'format','content':_0xa6c1b5(_0x1458e1,_0xa1c7('0xa'),_0xda337f(0x1,_0x170d60))};const _0x1db2b4=_0x4529fb[_0xa1c7('0x1b')](_0x17f396=>_0x17f396[_0xa1c7('0x7')]===_0x50f443)[_0xa1c7('0x0')];return{'type':_0xa1c7('0x14'),'content':_0xa6c1b5(_0x1458e1,_0xa1c7('0xa'),_0x4e70c9(0x1,_0x1db2b4))};}});}}function nn(_0x1f6a28){const _0x500fd7=_0x1f6a28[_0xa1c7('0xf')](/^heading(\d+)$/);return _0x500fd7?_0x500fd7[0x1]:null;}
@@ -1,13 +1,13 @@
1
- /**
2
- * @module track-changes/integrations/highlight
3
- */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- /**
6
- * Provides track changes plugin integration for highlight feature.
7
- */
8
- export default class TrackChangesHighlight extends Plugin {
9
- /**
10
- * @inheritDoc
11
- */
12
- afterInit(): void;
13
- }
1
+ /**
2
+ * @module track-changes/integrations/highlight
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for highlight feature.
7
+ */
8
+ export default class TrackChangesHighlight extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5aab=['formatInline','config','_descriptionFactory','HighlightEditing','title','has','toLowerCase','afterInit','commandName','plugins','get','find','TrackChangesEditing','highlight','format','createRange','document','isCollapsed','backward','registerDescriptionCallback','push','markInlineFormat','*Set\x20highlight:*\x20%0','getLastMatchingPosition','model','getRanges','selection','getAttribute','locale','*Remove\x20highlight*','enableCommand','commandParams','highlight.options','value'];(function(_0xb49b61,_0x5aab2a){const _0x170748=function(_0x2c1205){while(--_0x2c1205){_0xb49b61['push'](_0xb49b61['shift']());}};_0x170748(++_0x5aab2a);}(_0x5aab,0x93));const _0x1707=function(_0xb49b61,_0x5aab2a){_0xb49b61=_0xb49b61-0x0;let _0x170748=_0x5aab[_0xb49b61];return _0x170748;};import{Plugin as _0x5242f6}from'ckeditor5/src/core';import{getTranslation as _0x401226}from'../utils/common-translations';import{getRangesWithAttribute as _0x940607}from'./utils';export default class K extends _0x5242f6{[_0x1707('0x1e')](){const _0x4e27c0=this['editor'];if(!_0x4e27c0['plugins'][_0x1707('0x1c')](_0x1707('0x1a')))return;const _0x2585ab=_0x4e27c0[_0x1707('0x20')][_0x1707('0x21')](_0x1707('0x1'));_0x2585ab[_0x1707('0x13')](_0x1707('0x2'),(_0x575bfd,_0x1d2869={})=>{const _0x1b34f3=_0x4e27c0[_0x1707('0xd')][_0x1707('0x5')][_0x1707('0xf')],_0x53a8fb=_0x1b34f3[_0x1707('0x10')](_0x1707('0x2'));let _0x412a6f=_0x1d2869[_0x1707('0x16')],_0x577203=[];if(_0x1b34f3[_0x1707('0x6')]){const _0x9838b0=_0x1b34f3['getFirstPosition']();if(!_0x1b34f3['hasAttribute'](_0x1707('0x2')))return void _0x575bfd(_0x1d2869);{const _0x39fb8d=_0x425341=>_0x425341['item'][_0x1707('0x10')](_0x1707('0x2'))===_0x53a8fb,_0x3e2e3b=_0x9838b0[_0x1707('0xc')](_0x39fb8d,{'direction':_0x1707('0x7')}),_0x3e9195=_0x9838b0['getLastMatchingPosition'](_0x39fb8d);_0x577203=[_0x4e27c0[_0x1707('0xd')][_0x1707('0x4')](_0x3e2e3b,_0x3e9195)],_0x412a6f==_0x53a8fb&&(_0x412a6f=null);}}else for(const _0x37931b of _0x1b34f3[_0x1707('0xe')]())_0x412a6f?_0x577203[_0x1707('0x9')](_0x37931b):_0x577203[_0x1707('0x9')](..._0x940607(_0x1707('0x2'),_0x37931b,_0x4e27c0[_0x1707('0xd')]));_0x4e27c0[_0x1707('0xd')]['change'](()=>{for(const _0x133c61 of _0x577203)_0x2585ab[_0x1707('0xa')](_0x133c61,{'commandName':_0x1707('0x2'),'commandParams':[{'value':_0x412a6f}]});});});const _0x27bdbb=_0x4e27c0[_0x1707('0x11')];_0x2585ab[_0x1707('0x19')][_0x1707('0x8')](_0x13b8b2=>{const {type:_0xb843bc,data:_0x10af45}=_0x13b8b2;if(_0x1707('0x17')==_0xb843bc&&_0x10af45&&'highlight'==_0x10af45[_0x1707('0x1f')]){const _0x4f05c8=_0x27bdbb['t'],_0x996282=_0x10af45[_0x1707('0x14')][0x0]['value'];if(_0x996282){const _0x120629=_0x4e27c0[_0x1707('0x18')]['get'](_0x1707('0x15'))[_0x1707('0x0')](_0x2d9191=>_0x2d9191[_0x1707('0xd')]==_0x996282),_0x12845d=_0x4f05c8(_0x120629[_0x1707('0x1b')])[_0x1707('0x1d')]();return{'type':_0x1707('0x3'),'content':_0x401226(_0x27bdbb,_0x1707('0xb'),_0x12845d),'color':{'value':_0x120629['color'],'title':_0x120629[_0x1707('0x1b')]}};}return{'type':_0x1707('0x3'),'content':_0x401226(_0x27bdbb,_0x1707('0x12'),_0x401226(_0x27bdbb,'FORMAT_HIGHLIGHT'))};}});}}
23
+ const _0x3af2=['*Set\x20highlight:*\x20%0','formatInline','model','_descriptionFactory','item','isCollapsed','backward','HighlightEditing','markInlineFormat','commandParams','highlight','registerDescriptionCallback','hasAttribute','format','highlight.options','commandName','config','change','getRanges','get','selection','toLowerCase','has','plugins','color','title','editor','FORMAT_HIGHLIGHT','createRange','getLastMatchingPosition','find','TrackChangesEditing','*Remove\x20highlight*','afterInit','getAttribute'];(function(_0x104d47,_0x3af257){const _0xa01288=function(_0x48973e){while(--_0x48973e){_0x104d47['push'](_0x104d47['shift']());}};_0xa01288(++_0x3af257);}(_0x3af2,0xa8));const _0xa012=function(_0x104d47,_0x3af257){_0x104d47=_0x104d47-0x0;let _0xa01288=_0x3af2[_0x104d47];return _0xa01288;};import{Plugin as _0x535a9c}from'ckeditor5/src/core';import{getTranslation as _0x13afea}from'../utils/common-translations';import{getRangesWithAttribute as _0x4875e1}from'./utils';export default class K extends _0x535a9c{[_0xa012('0x5')](){const _0x7fda4b=this[_0xa012('0x21')];if(!_0x7fda4b[_0xa012('0x1e')][_0xa012('0x1d')](_0xa012('0xe')))return;const _0x17c427=_0x7fda4b[_0xa012('0x1e')][_0xa012('0x1a')](_0xa012('0x3'));_0x17c427['enableCommand']('highlight',(_0xb57e02,_0x37a695={})=>{const _0x571182=_0x7fda4b[_0xa012('0x9')]['document'][_0xa012('0x1b')],_0x254fc7=_0x571182[_0xa012('0x6')](_0xa012('0x11'));let _0x2a3771=_0x37a695['value'],_0x1b1bb4=[];if(_0x571182[_0xa012('0xc')]){const _0x4952a1=_0x571182['getFirstPosition']();if(!_0x571182[_0xa012('0x13')](_0xa012('0x11')))return void _0xb57e02(_0x37a695);{const _0x47f997=_0x133890=>_0x133890[_0xa012('0xb')][_0xa012('0x6')](_0xa012('0x11'))===_0x254fc7,_0x52c5e8=_0x4952a1['getLastMatchingPosition'](_0x47f997,{'direction':_0xa012('0xd')}),_0x5f4ada=_0x4952a1[_0xa012('0x1')](_0x47f997);_0x1b1bb4=[_0x7fda4b['model'][_0xa012('0x0')](_0x52c5e8,_0x5f4ada)],_0x2a3771==_0x254fc7&&(_0x2a3771=null);}}else for(const _0x3281ce of _0x571182[_0xa012('0x19')]())_0x2a3771?_0x1b1bb4['push'](_0x3281ce):_0x1b1bb4['push'](..._0x4875e1('highlight',_0x3281ce,_0x7fda4b[_0xa012('0x9')]));_0x7fda4b[_0xa012('0x9')][_0xa012('0x18')](()=>{for(const _0x3eb54b of _0x1b1bb4)_0x17c427[_0xa012('0xf')](_0x3eb54b,{'commandName':_0xa012('0x11'),'commandParams':[{'value':_0x2a3771}]});});});const _0xe21ee4=_0x7fda4b['locale'];_0x17c427[_0xa012('0xa')][_0xa012('0x12')](_0x487b91=>{const {type:_0x286506,data:_0x2b9a3b}=_0x487b91;if(_0xa012('0x8')==_0x286506&&_0x2b9a3b&&_0xa012('0x11')==_0x2b9a3b[_0xa012('0x16')]){const _0x8c2687=_0xe21ee4['t'],_0x1ec917=_0x2b9a3b[_0xa012('0x10')][0x0]['value'];if(_0x1ec917){const _0x48062b=_0x7fda4b[_0xa012('0x17')][_0xa012('0x1a')](_0xa012('0x15'))[_0xa012('0x2')](_0x2171c0=>_0x2171c0[_0xa012('0x9')]==_0x1ec917),_0x1a04fc=_0x8c2687(_0x48062b[_0xa012('0x20')])[_0xa012('0x1c')]();return{'type':_0xa012('0x14'),'content':_0x13afea(_0xe21ee4,_0xa012('0x7'),_0x1a04fc),'color':{'value':_0x48062b[_0xa012('0x1f')],'title':_0x48062b[_0xa012('0x20')]}};}return{'type':_0xa012('0x14'),'content':_0x13afea(_0xe21ee4,_0xa012('0x4'),_0x13afea(_0xe21ee4,_0xa012('0x22')))};}});}}
@@ -1,13 +1,13 @@
1
- /**
2
- * @module track-changes/integrations/horizontalline
3
- */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- /**
6
- * Provides track changes plugin integration for {@link module:horizontal-line/horizontalline~HorizontalLine horizontal line feature}.
7
- */
8
- export default class TrackChangesHorizontalLine extends Plugin {
9
- /**
10
- * @inheritDoc
11
- */
12
- afterInit(): void;
13
- }
1
+ /**
2
+ * @module track-changes/integrations/horizontalline
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for {@link module:horizontal-line/horizontalline~HorizontalLine horizontal line feature}.
7
+ */
8
+ export default class TrackChangesHorizontalLine extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8787=['elementToStructure','afterInit','conversion','horizontalLine','createEmptyElement','locale','showSuggestionHighlights','createContainerElement','enableCommand','TrackChangesEditing','editor','insert','addClass','has','get','createPositionAt','dataDowncast','_descriptionFactory','plugins','for','registerElementLabel','ck-horizontal-line'];(function(_0x336bb8,_0x87877f){const _0x316bd0=function(_0x325c99){while(--_0x325c99){_0x336bb8['push'](_0x336bb8['shift']());}};_0x316bd0(++_0x87877f);}(_0x8787,0x13c));const _0x316b=function(_0x336bb8,_0x87877f){_0x336bb8=_0x336bb8-0x0;let _0x316bd0=_0x8787[_0x336bb8];return _0x316bd0;};import{Plugin as _0xd05565}from'ckeditor5/src/core';import{getTranslation as _0x1b2a66}from'../utils/common-translations';export default class Q extends _0xd05565{[_0x316b('0xf')](){const _0x4e56ef=this[_0x316b('0x2')];if(!_0x4e56ef['plugins'][_0x316b('0x5')]('HorizontalLineEditing'))return;_0x4e56ef[_0x316b('0xa')][_0x316b('0x6')](_0x316b('0x1'))[_0x316b('0x0')](_0x316b('0x11'));const _0x55e57a=_0x4e56ef[_0x316b('0xa')][_0x316b('0x6')](_0x316b('0x1')),_0x4614d1=_0x4e56ef[_0x316b('0x13')];_0x55e57a[_0x316b('0x9')][_0x316b('0xc')](_0x316b('0x11'),_0x3bfe33=>_0x1b2a66(_0x4614d1,'ELEMENT_HORIZONTAL_LINE',_0x3bfe33)),_0x4e56ef[_0x316b('0x10')][_0x316b('0xb')](_0x316b('0x8'))[_0x316b('0xe')]({'model':'horizontalLine','view':(_0x909688,{writer:_0xf71d29,options:_0x46eaa5})=>{if(!_0x46eaa5[_0x316b('0x14')])return null;const _0x288d09=_0xf71d29[_0x316b('0x15')]('div'),_0x3e6433=_0xf71d29[_0x316b('0x12')]('hr');return _0xf71d29[_0x316b('0x4')](_0x316b('0xd'),_0x288d09),_0xf71d29[_0x316b('0x3')](_0xf71d29[_0x316b('0x7')](_0x288d09,0x0),_0x3e6433),_0x288d09;},'converterPriority':'high'});}}
23
+ const _0x39c0=['_descriptionFactory','ELEMENT_HORIZONTAL_LINE','TrackChangesEditing','high','has','div','dataDowncast','createContainerElement','conversion','HorizontalLineEditing','horizontalLine','insert','for','createEmptyElement','get','afterInit','elementToStructure','plugins'];(function(_0x39ee05,_0x39c0ca){const _0x40232e=function(_0x19bb84){while(--_0x19bb84){_0x39ee05['push'](_0x39ee05['shift']());}};_0x40232e(++_0x39c0ca);}(_0x39c0,0x157));const _0x4023=function(_0x39ee05,_0x39c0ca){_0x39ee05=_0x39ee05-0x0;let _0x40232e=_0x39c0[_0x39ee05];return _0x40232e;};import{Plugin as _0x270c09}from'ckeditor5/src/core';import{getTranslation as _0x54de12}from'../utils/common-translations';export default class Q extends _0x270c09{[_0x4023('0xe')](){const _0x3d8dc2=this['editor'];if(!_0x3d8dc2['plugins'][_0x4023('0x3')](_0x4023('0x8')))return;_0x3d8dc2[_0x4023('0x10')][_0x4023('0xd')](_0x4023('0x1'))['enableCommand'](_0x4023('0x9'));const _0x525a81=_0x3d8dc2[_0x4023('0x10')][_0x4023('0xd')](_0x4023('0x1')),_0x50c264=_0x3d8dc2['locale'];_0x525a81[_0x4023('0x11')]['registerElementLabel'](_0x4023('0x9'),_0x46741c=>_0x54de12(_0x50c264,_0x4023('0x0'),_0x46741c)),_0x3d8dc2[_0x4023('0x7')][_0x4023('0xb')](_0x4023('0x5'))[_0x4023('0xf')]({'model':'horizontalLine','view':(_0x4a87fe,{writer:_0x41cdb6,options:_0x2e012c})=>{if(!_0x2e012c['showSuggestionHighlights'])return null;const _0x30ef3c=_0x41cdb6[_0x4023('0x6')](_0x4023('0x4')),_0x486b36=_0x41cdb6[_0x4023('0xc')]('hr');return _0x41cdb6['addClass']('ck-horizontal-line',_0x30ef3c),_0x41cdb6[_0x4023('0xa')](_0x41cdb6['createPositionAt'](_0x30ef3c,0x0),_0x486b36),_0x30ef3c;},'converterPriority':_0x4023('0x2')});}}
@@ -1,13 +1,13 @@
1
- /**
2
- * @module track-changes/integrations/htmlembed
3
- */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- /**
6
- * Provides track changes plugin integration for {@link module:html-embed/htmlembed~HtmlEmbed HTML Embed feature}.
7
- */
8
- export default class TrackChangesHtmlEmbed extends Plugin {
9
- /**
10
- * @inheritDoc
11
- */
12
- afterInit(): void;
13
- }
1
+ /**
2
+ * @module track-changes/integrations/htmlembed
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for {@link module:html-embed/htmlembed~HtmlEmbed HTML Embed feature}.
7
+ */
8
+ export default class TrackChangesHtmlEmbed extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x320a=['getSelectedElement','locale','document','ELEMENT_HTML_EMBED','commandName','format','view','HtmlEmbed','get','selection','has','editor','value','registerDescriptionCallback','getAttribute','TrackChangesEditing','_descriptionFactory','model','markBlockFormat','rawHtml','getCustomProperty','element','rawHtmlApi','enableCommand','afterInit','htmlEmbed','plugins','change','cancel'];(function(_0x55ccd7,_0x320a6a){const _0x22413e=function(_0x3c468a){while(--_0x3c468a){_0x55ccd7['push'](_0x55ccd7['shift']());}};_0x22413e(++_0x320a6a);}(_0x320a,0x1cc));const _0x2241=function(_0x55ccd7,_0x320a6a){_0x55ccd7=_0x55ccd7-0x0;let _0x22413e=_0x320a[_0x55ccd7];return _0x22413e;};import{Plugin as _0x13fbba}from'ckeditor5/src/core';import{getTranslation as _0x16efa8}from'../utils/common-translations';export default class V extends _0x13fbba{[_0x2241('0x1c')](){const _0x307a32=this[_0x2241('0xf')];if(!_0x307a32[_0x2241('0x1')][_0x2241('0xe')](_0x2241('0xb')))return;const _0x19a284=_0x307a32[_0x2241('0x1')]['get'](_0x2241('0x13')),_0x26e3fe=_0x307a32[_0x2241('0x5')],_0x15aaae=_0x307a32['editing'][_0x2241('0xa')][_0x2241('0x6')]['selection'];_0x19a284[_0x2241('0x14')]['registerElementLabel']('rawHtml',_0xee920a=>_0x16efa8(_0x26e3fe,_0x2241('0x7'),_0xee920a)),_0x307a32[_0x2241('0x1')][_0x2241('0xc')](_0x2241('0x13'))[_0x2241('0x1b')](_0x2241('0x0'),(_0x2bc62b,_0x191a0f)=>{const _0x5595c0=_0x307a32[_0x2241('0x15')],_0x186061=_0x5595c0[_0x2241('0x6')][_0x2241('0xd')];_0x5595c0[_0x2241('0x2')](()=>{const _0x3be437=function(_0x5c2ea1){const _0x40c5ec=_0x5c2ea1[_0x2241('0x4')]();if(_0x40c5ec&&_0x40c5ec['is'](_0x2241('0x19'),_0x2241('0x17')))return _0x5c2ea1['getSelectedElement']();return null;}(_0x186061);if(!_0x3be437)return void _0x2bc62b(null);const _0x378091=_0x3be437[_0x2241('0x12')](_0x2241('0x10'))||'';if(void 0x0===_0x191a0f)return;if(_0x191a0f===_0x378091)return;_0x19a284[_0x2241('0x16')](_0x3be437,{'commandName':'htmlEmbed','commandParams':[_0x191a0f]}),_0x15aaae[_0x2241('0x4')]()[_0x2241('0x18')](_0x2241('0x1a'))[_0x2241('0x3')]();});}),_0x19a284[_0x2241('0x14')][_0x2241('0x11')](_0x1c38f7=>{const {data:_0x27a8ec}=_0x1c38f7;if(_0x27a8ec&&_0x2241('0x0')==_0x27a8ec[_0x2241('0x8')]){const _0x4621f5=_0x16efa8(_0x26e3fe,'ELEMENT_HTML_EMBED');return{'type':_0x2241('0x9'),'content':_0x16efa8(_0x26e3fe,'*Change\x20%0\x20content*',_0x4621f5)};}});}}
23
+ const _0x5aec=['plugins','getSelectedElement','change','cancel','ELEMENT_HTML_EMBED','format','editing','enableCommand','rawHtml','document','value','afterInit','htmlEmbed','TrackChangesEditing','HtmlEmbed','model','locale','has','view','selection','rawHtmlApi','get','getCustomProperty','_descriptionFactory','editor','commandName'];(function(_0x1ac674,_0x5aecd1){const _0x57fa45=function(_0x42b7fc){while(--_0x42b7fc){_0x1ac674['push'](_0x1ac674['shift']());}};_0x57fa45(++_0x5aecd1);}(_0x5aec,0xd4));const _0x57fa=function(_0x1ac674,_0x5aecd1){_0x1ac674=_0x1ac674-0x0;let _0x57fa45=_0x5aec[_0x1ac674];return _0x57fa45;};import{Plugin as _0xf3d84a}from'ckeditor5/src/core';import{getTranslation as _0x41d67c}from'../utils/common-translations';export default class V extends _0xf3d84a{[_0x57fa('0x7')](){const _0x5bd07b=this[_0x57fa('0x14')];if(!_0x5bd07b[_0x57fa('0x16')][_0x57fa('0xd')](_0x57fa('0xa')))return;const _0x3e85d8=_0x5bd07b[_0x57fa('0x16')][_0x57fa('0x11')](_0x57fa('0x9')),_0x3ab1b0=_0x5bd07b[_0x57fa('0xc')],_0x2695da=_0x5bd07b[_0x57fa('0x2')][_0x57fa('0xe')][_0x57fa('0x5')][_0x57fa('0xf')];_0x3e85d8[_0x57fa('0x13')]['registerElementLabel'](_0x57fa('0x4'),_0x210b0e=>_0x41d67c(_0x3ab1b0,_0x57fa('0x0'),_0x210b0e)),_0x5bd07b['plugins']['get'](_0x57fa('0x9'))[_0x57fa('0x3')](_0x57fa('0x8'),(_0xa35350,_0x5634e5)=>{const _0x2e0189=_0x5bd07b[_0x57fa('0xb')],_0x11e24e=_0x2e0189[_0x57fa('0x5')]['selection'];_0x2e0189[_0x57fa('0x18')](()=>{const _0x5be38c=function(_0x583cf8){const _0x15ac08=_0x583cf8['getSelectedElement']();if(_0x15ac08&&_0x15ac08['is']('element',_0x57fa('0x4')))return _0x583cf8['getSelectedElement']();return null;}(_0x11e24e);if(!_0x5be38c)return void _0xa35350(null);const _0x129a5f=_0x5be38c['getAttribute'](_0x57fa('0x6'))||'';if(void 0x0===_0x5634e5)return;if(_0x5634e5===_0x129a5f)return;_0x3e85d8['markBlockFormat'](_0x5be38c,{'commandName':_0x57fa('0x8'),'commandParams':[_0x5634e5]}),_0x2695da[_0x57fa('0x17')]()[_0x57fa('0x12')](_0x57fa('0x10'))[_0x57fa('0x19')]();});}),_0x3e85d8[_0x57fa('0x13')]['registerDescriptionCallback'](_0x5c95f9=>{const {data:_0x2e7f14}=_0x5c95f9;if(_0x2e7f14&&'htmlEmbed'==_0x2e7f14[_0x57fa('0x15')]){const _0x1cc78c=_0x41d67c(_0x3ab1b0,_0x57fa('0x0'));return{'type':_0x57fa('0x1'),'content':_0x41d67c(_0x3ab1b0,'*Change\x20%0\x20content*',_0x1cc78c)};}});}}
@@ -1,13 +1,13 @@
1
- /**
2
- * @module track-changes/integrations/image
3
- */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- /**
6
- * Provides track changes plugin integration for {@link module:image/image~Image image feature}.
7
- */
8
- export default class TrackChangesImage extends Plugin {
9
- /**
10
- * @inheritDoc
11
- */
12
- afterInit(): void;
13
- }
1
+ /**
2
+ * @module track-changes/integrations/image
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for {@link module:image/image~Image image feature}.
7
+ */
8
+ export default class TrackChangesImage extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4069=['forward','shouldConvertImageType','_suggestionFactory','schema','caption','ImageResize','filter','ImageStyleEditing','markInlineFormat','editor','next','markBlockFormat','imageStylePreApply','addObject','registerCustomCallback','imageStyle','ELEMENT_CAPTION','backward','convertBlockImageToInline','isBlockImage','ImageCaptionUtils','discard','isInlineImage','join','ImageUtils','FORMAT_SIDE_IMAGE','getClosestSelectedImageElement','isCollapsed','length','model','document','imageTypeBlock','findIndex','alt','nodeAfter','getFirstRange','getContainedElement','nodeBefore','has','chain','detach','forEach','commandParams','imageCaption','insertImage','isInContent','getAttribute','imageStylePostApply','ImageCaptionEditing','getChangedMarkers','getNearestSelectionRange','value','selection','imageTextAlternative','type','from','formatInline','author','registerPostFixer','markDeletion','find','Users','formatBlock','suggestion','*Set\x20image\x20width:*\x20%0','imageInline','convertInlineImageToBlock','resizeImage','*Format:*\x20%0','end','isBefore','ImageUploadEditing','toLowerCase','_findSuggestions','enableCommand','getSuggestionCallback','commandName','accept','createRangeOn','subType','locale','getSuggestion','differ','afterInit','fromPosition','getSuggestions','removeObject','newValue','ImageTextAlternativeEditing','discardSuggestion','deletion','get','markInsertion','plugins','_descriptionFactory','*Reset\x20image\x20width*','registerElementLabel','*Remove\x20image\x20text\x20alternative*','change','format','getCaptionFromImageModelElement','createRange','commands','uploadImage','imageTypeInline','newRange','toggleImageCaption','hasSuggestion','registerDescriptionCallback','ELEMENT_IMAGE','isOwn','isEqual','start','insertion','element','head','refresh','normalizedStyles','commandReversedParams','ImageBlockEditing','width','Block\x20image\x20to\x20inline\x20image'];(function(_0x5a269a,_0x406903){const _0x3fae3c=function(_0x2799c7){while(--_0x2799c7){_0x5a269a['push'](_0x5a269a['shift']());}};_0x3fae3c(++_0x406903);}(_0x4069,0x1df));const _0x3fae=function(_0x5a269a,_0x406903){_0x5a269a=_0x5a269a-0x0;let _0x3fae3c=_0x4069[_0x5a269a];return _0x3fae3c;};import{Plugin as _0x161f02}from'ckeditor5/src/core';import{LivePosition as _0x214b3a}from'ckeditor5/src/engine';import{uid as _0x4cd0f6}from'ckeditor5/src/utils';import{getTranslation as _0x462760}from'../utils/common-translations';export default class X extends _0x161f02{[_0x3fae('0x5c')](){const _0x2d6094=this[_0x3fae('0x12')];if(!_0x2d6094[_0x3fae('0x66')][_0x3fae('0x2f')]('ImageEditing'))return;const _0x1e5f29=_0x2d6094[_0x3fae('0x66')][_0x3fae('0x64')]('TrackChangesEditing'),_0x7c1191=_0x2d6094[_0x3fae('0x66')][_0x3fae('0x64')](_0x3fae('0x21')),_0x4b8f83={},_0x401deb=_0x2d6094[_0x3fae('0x59')];if(_0x1e5f29[_0x3fae('0x53')](_0x3fae('0x35')),_0x1e5f29['_descriptionFactory']['registerElementLabel']('imageBlock',_0x3e4598=>_0x462760(_0x401deb,_0x3fae('0x76'),_0x3e4598)),_0x1e5f29[_0x3fae('0x67')]['registerElementLabel'](_0x3fae('0x4a'),_0x3ac502=>_0x462760(_0x401deb,'ELEMENT_INLINE_IMAGE',_0x3ac502)),_0x1e5f29[_0x3fae('0x67')][_0x3fae('0x69')](_0x3fae('0xd'),()=>_0x462760(_0x401deb,_0x3fae('0x19'))),_0x2d6094[_0x3fae('0x66')][_0x3fae('0x2f')](_0x3fae('0x50'))&&_0x1e5f29[_0x3fae('0x53')](_0x3fae('0x70')),_0x2d6094[_0x3fae('0x66')][_0x3fae('0x2f')](_0x3fae('0x6'))&&_0x2d6094[_0x3fae('0x66')][_0x3fae('0x2f')]('ImageInlineEditing')&&(_0x1e5f29[_0x3fae('0x53')](_0x3fae('0x71'),(_0x5a0141,_0x5c4560)=>{const _0x28cac7=_0x7c1191[_0x3fae('0x23')](_0x2d6094['model'][_0x3fae('0x27')][_0x3fae('0x3d')]);_0x2d6094[_0x3fae('0x26')]['change'](()=>{_0x1e5f29[_0x3fae('0x14')](_0x28cac7,{'commandName':_0x3fae('0x71'),'commandParams':[_0x5c4560]},[],_0x3fae('0x1b'));});}),_0x1e5f29[_0x3fae('0x53')](_0x3fae('0x28'),(_0x46e3c7,_0x109c8e)=>{_0x2d6094['model'][_0x3fae('0x6b')](_0x7c3646=>{let _0x459c75=_0x7c1191[_0x3fae('0x23')](_0x2d6094[_0x3fae('0x26')][_0x3fae('0x27')][_0x3fae('0x3d')]),_0x380cc7=_0x7c3646[_0x3fae('0x57')](_0x459c75);const _0x4fac5d=_0x214b3a[_0x3fae('0x5d')](_0x380cc7[_0x3fae('0x79')],'toPrevious'),_0xd2dc66=_0x214b3a[_0x3fae('0x5d')](_0x380cc7['end'],'toNext');_0x1e5f29['forceDefaultExecution'](()=>_0x46e3c7(_0x109c8e)),_0x459c75=_0x7c1191['getClosestSelectedImageElement'](_0x2d6094['model']['document'][_0x3fae('0x3d')]),_0x380cc7=_0x7c3646[_0x3fae('0x57')](_0x459c75);const _0x86837f=_0x7c3646[_0x3fae('0x6e')](_0x4fac5d,_0xd2dc66);_0x4fac5d[_0x3fae('0x31')](),_0xd2dc66[_0x3fae('0x31')](),_0x1e5f29['markBlockFormat'](_0x459c75,{'commandName':_0x3fae('0x71'),'commandParams':[]},[],_0x3fae('0x4b')),_0x86837f['start']['isBefore'](_0x380cc7[_0x3fae('0x79')])&&_0x1e5f29[_0x3fae('0x65')](_0x7c3646['createRange'](_0x86837f[_0x3fae('0x79')],_0x380cc7[_0x3fae('0x79')]),'convertInlineImageToBlock'),_0x380cc7['end'][_0x3fae('0x4f')](_0x86837f[_0x3fae('0x4e')])&&_0x1e5f29[_0x3fae('0x65')](_0x7c3646['createRange'](_0x380cc7['end'],_0x86837f['end']),_0x3fae('0x4b'));});}),_0x1e5f29['_suggestionFactory'][_0x3fae('0x17')]('formatBlock',_0x3fae('0x4b'),'join',()=>{}),_0x1e5f29['_suggestionFactory'][_0x3fae('0x17')](_0x3fae('0x47'),_0x3fae('0x4b'),_0x3fae('0x56'),()=>{}),_0x1e5f29[_0x3fae('0xb')][_0x3fae('0x17')](_0x3fae('0x47'),_0x3fae('0x4b'),_0x3fae('0x1e'),_0x1e5f29['_suggestionFactory'][_0x3fae('0x54')]('formatBlock','',_0x3fae('0x56'))),_0x1e5f29['_suggestionFactory'][_0x3fae('0x17')](_0x3fae('0x0'),_0x3fae('0x4b'),_0x3fae('0x20'),()=>{}),_0x1e5f29[_0x3fae('0xb')]['registerCustomCallback'](_0x3fae('0x0'),_0x3fae('0x4b'),'discard',([_0x322653])=>{const _0x2bc20e=_0x1e5f29['_suggestionFactory']['getSuggestionCallback'](_0x3fae('0x0'),'',_0x3fae('0x1e'));let _0x22cd7c=_0x322653['start'],_0x260c82=_0x322653[_0x3fae('0x4e')];const _0x4177b2=_0x2d6094[_0x3fae('0x26')][_0x3fae('0xc')]['getNearestSelectionRange'](_0x22cd7c,_0x3fae('0x1a')),_0x8cbb04=_0x2d6094[_0x3fae('0x26')][_0x3fae('0xc')][_0x3fae('0x3b')](_0x260c82,_0x3fae('0x9'));_0x4177b2[_0x3fae('0x24')]&&(_0x22cd7c=_0x4177b2[_0x3fae('0x79')]),_0x8cbb04[_0x3fae('0x24')]&&(_0x260c82=_0x8cbb04[_0x3fae('0x4e')]),_0x2bc20e([_0x2d6094['model'][_0x3fae('0x6e')](_0x22cd7c,_0x260c82)]);}),_0x1e5f29[_0x3fae('0xb')][_0x3fae('0x17')](_0x3fae('0x47'),_0x3fae('0x4b'),_0x3fae('0x30'),_0x35cb37),_0x1e5f29[_0x3fae('0xb')]['registerCustomCallback']('insertion',_0x3fae('0x4b'),'chain',_0x35cb37)),_0x2d6094[_0x3fae('0x66')][_0x3fae('0x2f')](_0x3fae('0x39'))&&(_0x1e5f29['enableCommand'](_0x3fae('0x73'),(_0x47cf95,_0x57ecf8)=>{const _0xe58645=_0x2d6094[_0x3fae('0x66')][_0x3fae('0x64')](_0x3fae('0x1d'));let _0x51949e=_0x7c1191['getClosestSelectedImageElement'](_0x2d6094['model'][_0x3fae('0x27')][_0x3fae('0x3d')]),_0x238ec7=_0xe58645[_0x3fae('0x6d')](_0x51949e);_0x2d6094[_0x3fae('0x26')]['change'](()=>{if(_0x238ec7)return void _0x1e5f29[_0x3fae('0x44')](_0x2d6094[_0x3fae('0x26')][_0x3fae('0x57')](_0x238ec7));const _0x16cd02=_0x7c1191[_0x3fae('0x1c')](_0x51949e);_0x47cf95(_0x57ecf8),_0x51949e=_0x7c1191[_0x3fae('0x23')](_0x2d6094[_0x3fae('0x26')][_0x3fae('0x27')]['selection']),_0x238ec7=_0xe58645[_0x3fae('0x6d')](_0x51949e),_0x1e5f29['markInsertion'](_0x2d6094['model'][_0x3fae('0x57')](_0x238ec7),_0x16cd02?null:_0x3fae('0x34'));});}),_0x1e5f29[_0x3fae('0xb')]['registerCustomCallback']('insertion',_0x3fae('0x34'),_0x3fae('0x30'),_0x35cb37)),_0x2d6094[_0x3fae('0x66')][_0x3fae('0x2f')](_0x3fae('0x10'))){_0x1e5f29[_0x3fae('0x53')](_0x3fae('0x18'),(_0x1d9bc5,_0x4d79d4)=>{const _0x21878b=_0x2d6094[_0x3fae('0x66')][_0x3fae('0x64')](_0x3fae('0x46'))['me'],_0x349556=_0x2d6094[_0x3fae('0x6f')][_0x3fae('0x64')](_0x3fae('0x18'));let _0x136d18=_0x7c1191[_0x3fae('0x23')](_0x2d6094[_0x3fae('0x26')]['document'][_0x3fae('0x3d')]),_0x4c9b67=_0x2d6094[_0x3fae('0x26')][_0x3fae('0x57')](_0x136d18),_0x5a8ff0=_0x349556[_0x3fae('0x3c')];if(_0x5a8ff0==_0x4d79d4[_0x3fae('0x3c')])return;const _0x47ac7a={'commandName':_0x3fae('0x18'),'commandParams':[_0x4d79d4],'formatGroupId':_0x4cd0f6()};_0x2d6094['model'][_0x3fae('0x6b')](()=>{if(_0x1e5f29[_0x3fae('0x5e')]()['filter'](_0xbeaf16=>_0xbeaf16[_0x3fae('0x36')]&&_0x21878b==_0xbeaf16[_0x3fae('0x42')]&&(_0x3fae('0x47')==_0xbeaf16[_0x3fae('0x3f')]||_0x3fae('0x41')==_0xbeaf16[_0x3fae('0x3f')])&&('imageStylePreApply'==_0xbeaf16['subType']||'imageStylePostApply'==_0xbeaf16['subType'])&&_0xbeaf16['getFirstRange']()['isEqual'](_0x4c9b67))[_0x3fae('0x32')](_0x4be90d=>_0x1e5f29[_0x3fae('0x62')](_0x4be90d[_0x3fae('0x2')])),_0x136d18=_0x7c1191[_0x3fae('0x23')](_0x2d6094['model'][_0x3fae('0x27')]['selection']),_0x4c9b67=_0x2d6094[_0x3fae('0x26')][_0x3fae('0x57')](_0x136d18),_0x349556['refresh'](),_0x2d6094[_0x3fae('0x6f')]['get']('imageTypeInline')[_0x3fae('0x3')](),_0x2d6094[_0x3fae('0x6f')]['get'](_0x3fae('0x28'))[_0x3fae('0x3')](),_0x5a8ff0=_0x349556[_0x3fae('0x3c')],_0x5a8ff0!=_0x4d79d4[_0x3fae('0x3c')])return _0x7c1191[_0x3fae('0x1f')](_0x136d18)&&_0x349556[_0x3fae('0xa')](_0x4d79d4[_0x3fae('0x3c')],_0x136d18)?(_0x1d9bc5(_0x4d79d4),_0x136d18=_0x7c1191[_0x3fae('0x23')](_0x2d6094[_0x3fae('0x26')][_0x3fae('0x27')][_0x3fae('0x3d')]),void _0x1e5f29[_0x3fae('0x14')](_0x136d18,{..._0x47ac7a,'commandReversedParams':[{'value':_0x5a8ff0||null}]},[],_0x3fae('0x15'))):void(_0x7c1191[_0x3fae('0x1c')](_0x136d18)?_0x1e5f29['markBlockFormat'](_0x136d18,_0x47ac7a,[],_0x3fae('0x38')):_0x1e5f29[_0x3fae('0x11')](_0x4c9b67,_0x47ac7a,'imageStylePostApply'));});});for(const _0x3a3e6b of _0x2d6094[_0x3fae('0x66')][_0x3fae('0x64')](_0x3fae('0x10'))[_0x3fae('0x4')])_0x4b8f83[_0x3a3e6b['name']]=_0x3a3e6b['title'][_0x3fae('0x51')]();_0x1e5f29[_0x3fae('0xb')][_0x3fae('0x17')](_0x3fae('0x47'),_0x3fae('0x15'),_0x3fae('0x20'),()=>{}),_0x1e5f29[_0x3fae('0xb')]['registerCustomCallback'](_0x3fae('0x47'),'imageStylePostApply','join',()=>{}),_0x1e5f29[_0x3fae('0xb')][_0x3fae('0x17')](_0x3fae('0x41'),_0x3fae('0x38'),_0x3fae('0x20'),()=>{}),_0x1e5f29[_0x3fae('0xb')][_0x3fae('0x17')](_0x3fae('0x47'),_0x3fae('0x15'),_0x3fae('0x56'),()=>{}),_0x1e5f29[_0x3fae('0xb')][_0x3fae('0x17')]('formatBlock',_0x3fae('0x15'),_0x3fae('0x1e'),(_0x3cf5b,_0x1fa0aa)=>{_0x1e5f29[_0x3fae('0xb')]['getSuggestionCallback'](_0x3fae('0x47'),'','accept')(_0x3cf5b,{'commandName':_0x1fa0aa[_0x3fae('0x55')],'commandParams':_0x1fa0aa[_0x3fae('0x5')]});}),_0x1e5f29[_0x3fae('0xb')][_0x3fae('0x17')](_0x3fae('0x47'),_0x3fae('0x15'),_0x3fae('0x30'),_0x35cb37);}const _0x7264a7=[{'type':_0x3fae('0x47'),'subType':_0x3fae('0x15')},{'type':_0x3fae('0x0'),'subType':_0x3fae('0x34')},{'type':_0x3fae('0x47'),'subType':_0x3fae('0x4b')},{'type':'insertion','subType':_0x3fae('0x4b')}];function _0x4c82a5(_0x296e3d,_0x39309e){const _0x5f17ae=_0x7264a7[_0x3fae('0x29')](({type:_0x2195d8,subType:_0x56b1e9})=>_0x296e3d[_0x3fae('0x3f')]==_0x2195d8&&_0x296e3d[_0x3fae('0x58')]==_0x56b1e9),_0x3fb9d2=_0x7264a7[_0x3fae('0x29')](({type:_0x2a7bd2,subType:_0xa2f5dd})=>_0x39309e[_0x3fae('0x3f')]==_0x2a7bd2&&_0x39309e[_0x3fae('0x58')]==_0xa2f5dd);if(_0x5f17ae<0x0||_0x3fb9d2<0x0)return!0x1;const _0x47fcb5=_0x296e3d[_0x3fae('0x2c')](),_0x42cda1=_0x39309e[_0x3fae('0x2c')]();if((0x0==_0x5f17ae||0x1==_0x5f17ae)&&0x2==_0x3fb9d2&&_0x47fcb5['isIntersecting'](_0x42cda1))return!0x0;if(0x2==_0x5f17ae&&0x3==_0x3fb9d2){const _0x525d70=_0x1e5f29[_0x3fae('0x52')](_0x47fcb5,_0x3fae('0x0'))[_0x3fae('0xf')](({suggestion:_0x3cc9c7,meta:_0x47d0f1})=>_0x47d0f1[_0x3fae('0x77')]&&_0x3fae('0x4b')==_0x3cc9c7[_0x3fae('0x58')]);if(_0x525d70['length']>0x1&&_0x42cda1['end']['isEqual'](_0x47fcb5['start']))return!0x0;if(0x1==_0x525d70[_0x3fae('0x25')]&&(_0x47fcb5['start']['isEqual'](_0x42cda1[_0x3fae('0x4e')])||_0x47fcb5[_0x3fae('0x4e')][_0x3fae('0x78')](_0x42cda1[_0x3fae('0x79')])))return!0x0;}if(0x3==_0x5f17ae&&0x3==_0x3fb9d2&&_0x47fcb5['start'][_0x3fae('0x4f')](_0x42cda1['start'])){const _0x2d6ac9=_0x47fcb5[_0x3fae('0x4e')][_0x3fae('0x2b')],_0x33c8d4=_0x42cda1[_0x3fae('0x79')][_0x3fae('0x2e')];return _0x7c1191[_0x3fae('0x1c')](_0x2d6ac9)&&_0x2d6ac9===_0x33c8d4;}return!0x1;}function _0x35cb37(_0x5c03b4,_0x10e5e7){return _0x4c82a5(_0x5c03b4,_0x10e5e7)?[_0x5c03b4,_0x10e5e7]:_0x4c82a5(_0x10e5e7,_0x5c03b4)?[_0x10e5e7,_0x5c03b4]:null;}_0x2d6094[_0x3fae('0x26')]['document'][_0x3fae('0x43')](()=>{let _0x684bb=!0x1;const _0x1ccfa3=Array[_0x3fae('0x40')](_0x2d6094[_0x3fae('0x26')][_0x3fae('0x27')][_0x3fae('0x5b')][_0x3fae('0x3a')]());for(const {name:_0x26d7b7,data:_0x4d0043}of _0x1ccfa3){const {group:_0x3db1ff,type:_0x439cd8,subType:_0x4d82a4,id:_0x51d5ee}=_0x1e5f29['_splitMarkerName'](_0x26d7b7);if(_0x3fae('0x48')==_0x3db1ff&&_0x1e5f29[_0x3fae('0x74')](_0x51d5ee)){if(_0x3fae('0x47')==_0x439cd8&&('imageStylePreApply'==_0x4d82a4||_0x3fae('0x38')==_0x4d82a4)){const _0x14310a=_0x1e5f29['getSuggestion'](_0x51d5ee);if(_0x4d0043[_0x3fae('0x72')]){const _0x140022=_0x14310a[_0x3fae('0x2c')]()[_0x3fae('0x2d')]();if(_0x7c1191[_0x3fae('0x1c')](_0x140022))continue;_0x1e5f29[_0x3fae('0x62')](_0x14310a),_0x684bb=!0x0;}}if(_0x3fae('0x0')==_0x439cd8&&_0x3fae('0x34')==_0x4d82a4&&!_0x4d0043[_0x3fae('0x72')]){const _0x597790=_0x1e5f29[_0x3fae('0x5a')](_0x51d5ee);_0x597790['next']&&_0x597790[_0x3fae('0x13')][_0x3fae('0x36')]&&(_0x1e5f29[_0x3fae('0x62')](_0x597790[_0x3fae('0x13')]),_0x684bb=!0x0);}}}return _0x684bb;}),_0x2d6094['plugins'][_0x3fae('0x2f')](_0x3fae('0xe'))&&_0x1e5f29[_0x3fae('0x53')](_0x3fae('0x4c'),(_0x5e3877,_0x1749f0)=>{const _0x442893=_0x7c1191[_0x3fae('0x23')](_0x2d6094[_0x3fae('0x26')][_0x3fae('0x27')][_0x3fae('0x3d')]);_0x442893[_0x3fae('0x37')]('width')!=_0x1749f0[_0x3fae('0x7')]&&_0x2d6094[_0x3fae('0x26')][_0x3fae('0x6b')](()=>{_0x1e5f29[_0x3fae('0x14')](_0x442893,{'commandName':_0x3fae('0x4c'),'commandParams':[_0x1749f0]});});}),_0x2d6094['plugins']['has'](_0x3fae('0x61'))&&_0x1e5f29['enableCommand']('imageTextAlternative',(_0x1e8363,_0x2bf4b9)=>{const _0x1c3244=_0x7c1191[_0x3fae('0x23')](_0x2d6094[_0x3fae('0x26')][_0x3fae('0x27')]['selection']);(_0x1c3244['hasAttribute'](_0x3fae('0x2a'))?_0x1c3244[_0x3fae('0x37')]('alt'):'')!=_0x2bf4b9[_0x3fae('0x60')]&&_0x2d6094[_0x3fae('0x26')]['change'](()=>{_0x1e5f29['markBlockFormat'](_0x1c3244,{'commandName':_0x3fae('0x3e'),'commandParams':[_0x2bf4b9]});});}),_0x1e5f29['_descriptionFactory'][_0x3fae('0x75')](_0x4af6d4=>{if(!!_0x7264a7[_0x3fae('0x45')](({type:_0x13ba85,subType:_0x84a6b2})=>_0x4af6d4[_0x3fae('0x3f')]==_0x13ba85&&_0x4af6d4[_0x3fae('0x58')]==_0x84a6b2))return _0x4af6d4['previous']?{}:void 0x0;}),_0x1e5f29[_0x3fae('0x67')][_0x3fae('0x75')](_0x1952b4=>{if('insertion'==_0x1952b4['type']||_0x3fae('0x63')==_0x1952b4[_0x3fae('0x3f')]){const _0x4b4f29=_0x1952b4[_0x3fae('0x2d')]();if(_0x4b4f29&&_0x4b4f29['is'](_0x3fae('0x1'),_0x3fae('0xd')))return{'type':'insertion'==_0x1952b4['type']?_0x3fae('0x16'):_0x3fae('0x5f'),'element':_0x4b4f29,'quantity':0x1};}}),_0x1e5f29[_0x3fae('0x67')][_0x3fae('0x75')](_0x437bfb=>_0x3fae('0x47')==_0x437bfb[_0x3fae('0x3f')]&&_0x3fae('0x4b')==_0x437bfb[_0x3fae('0x58')]?{'type':_0x3fae('0x6c'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x3fae('0x47')==_0x437bfb[_0x3fae('0x3f')]&&'convertBlockImageToInline'==_0x437bfb['subType']?{'type':'format','content':_0x3fae('0x8')}:void 0x0),_0x1e5f29[_0x3fae('0x67')][_0x3fae('0x75')](_0x564159=>{const {data:_0x28aa4d}=_0x564159;if(_0x28aa4d){if('imageStyle'==_0x28aa4d[_0x3fae('0x55')]){const _0x480f5e=_0x28aa4d[_0x3fae('0x33')][0x0][_0x3fae('0x3c')];return _0x5ab489('side'===_0x480f5e?_0x462760(_0x401deb,_0x3fae('0x22')):_0x4b8f83[_0x480f5e]||_0x480f5e);}if('imageTextAlternative'==_0x28aa4d[_0x3fae('0x55')]){const _0x5d0345=_0x28aa4d[_0x3fae('0x33')][0x0][_0x3fae('0x60')];return _0x5d0345?{'type':_0x3fae('0x6c'),'content':_0x462760(_0x401deb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d0345+'\x22')}:{'type':_0x3fae('0x6c'),'content':_0x462760(_0x401deb,_0x3fae('0x6a'))};}if('resizeImage'==_0x28aa4d[_0x3fae('0x55')]){const _0x2b3e2f=_0x28aa4d[_0x3fae('0x33')][0x0][_0x3fae('0x7')];return _0x2b3e2f?{'type':_0x3fae('0x6c'),'content':_0x462760(_0x401deb,_0x3fae('0x49'),_0x2b3e2f)}:{'type':_0x3fae('0x6c'),'content':_0x462760(_0x401deb,_0x3fae('0x68'))};}}function _0x5ab489(_0x26a589){return{'type':'format','content':_0x462760(_0x401deb,_0x3fae('0x4d'),_0x26a589)};}});}}
23
+ const _0x4832=['ImageResize','discardSuggestion','accept','commands','*Set\x20image\x20text\x20alternative:*\x20%0','commandName','afterInit','end','title','ImageTextAlternativeEditing','_findSuggestions','_splitMarkerName','_descriptionFactory','newValue','isInlineImage','getAttribute','previous','isCollapsed','has','plugins','ImageUtils','normalizedStyles','getSuggestion','getCaptionFromImageModelElement','markBlockFormat','format','find','imageInline','chain','isEqual','imageTypeInline','forceDefaultExecution','isBlockImage','start','length','TrackChangesEditing','type','forEach','editor','markInlineFormat','ImageInlineEditing','alt','ImageEditing','enableCommand','createRange','next','ImageStyleEditing','hasSuggestion','selection','isInContent','document','imageBlock','uploadImage','isIntersecting','model','*Format:*\x20%0','ELEMENT_CAPTION','insertion','subType','getChangedMarkers','imageTextAlternative','refresh','join','head','width','addObject','ELEMENT_IMAGE','Users','resizeImage','caption','insertImage','getContainedElement','schema','shouldConvertImageType','toLowerCase','markInsertion','formatInline','isOwn','createRangeOn','discard','*Remove\x20image\x20text\x20alternative*','imageStyle','getFirstRange','toPrevious','detach','getSuggestions','commandParams','formatBlock','imageTypeBlock','ImageUploadEditing','isBefore','value','commandReversedParams','name','convertInlineImageToBlock','getNearestSelectionRange','removeObject','forward','differ','change','convertBlockImageToInline','get','filter','registerElementLabel','imageCaption','author','registerDescriptionCallback','fromPosition','markDeletion','getSuggestionCallback','*Set\x20image\x20width:*\x20%0','toNext','imageStylePostApply','ImageCaptionEditing','imageStylePreApply','ImageBlockEditing','Inline\x20image\x20to\x20block\x20image','toggleImageCaption','FORMAT_SIDE_IMAGE','element','findIndex','registerCustomCallback','_suggestionFactory','getClosestSelectedImageElement'];(function(_0x473927,_0x483250){const _0x55109b=function(_0x2d6daa){while(--_0x2d6daa){_0x473927['push'](_0x473927['shift']());}};_0x55109b(++_0x483250);}(_0x4832,0x18f));const _0x5510=function(_0x473927,_0x483250){_0x473927=_0x473927-0x0;let _0x55109b=_0x4832[_0x473927];return _0x55109b;};import{Plugin as _0x5217e2}from'ckeditor5/src/core';import{LivePosition as _0x45527a}from'ckeditor5/src/engine';import{uid as _0x3ba11d}from'ckeditor5/src/utils';import{getTranslation as _0x270c08}from'../utils/common-translations';export default class X extends _0x5217e2{[_0x5510('0x67')](){const _0xe041be=this[_0x5510('0xb')];if(!_0xe041be['plugins'][_0x5510('0x73')](_0x5510('0xf')))return;const _0x47e903=_0xe041be[_0x5510('0x74')][_0x5510('0x4a')](_0x5510('0x8')),_0xdc81f7=_0xe041be[_0x5510('0x74')]['get'](_0x5510('0x75')),_0x14c256={},_0x1b9fc4=_0xe041be['locale'];if(_0x47e903['enableCommand'](_0x5510('0x2b')),_0x47e903[_0x5510('0x6d')][_0x5510('0x4c')](_0x5510('0x18'),_0x510ede=>_0x270c08(_0x1b9fc4,_0x5510('0x27'),_0x510ede)),_0x47e903[_0x5510('0x6d')][_0x5510('0x4c')](_0x5510('0x0'),_0x121de7=>_0x270c08(_0x1b9fc4,'ELEMENT_INLINE_IMAGE',_0x121de7)),_0x47e903[_0x5510('0x6d')][_0x5510('0x4c')]('caption',()=>_0x270c08(_0x1b9fc4,_0x5510('0x1d'))),_0xe041be['plugins'][_0x5510('0x73')](_0x5510('0x3e'))&&_0x47e903['enableCommand'](_0x5510('0x19')),_0xe041be[_0x5510('0x74')][_0x5510('0x73')](_0x5510('0x58'))&&_0xe041be[_0x5510('0x74')][_0x5510('0x73')](_0x5510('0xd'))&&(_0x47e903[_0x5510('0x10')](_0x5510('0x3'),(_0x5e9fac,_0x11e370)=>{const _0xac53db=_0xdc81f7[_0x5510('0x60')](_0xe041be[_0x5510('0x1b')]['document']['selection']);_0xe041be['model'][_0x5510('0x48')](()=>{_0x47e903['markBlockFormat'](_0xac53db,{'commandName':'imageTypeInline','commandParams':[_0x11e370]},[],_0x5510('0x49'));});}),_0x47e903[_0x5510('0x10')](_0x5510('0x3d'),(_0x22838b,_0x415065)=>{_0xe041be[_0x5510('0x1b')][_0x5510('0x48')](_0x294b13=>{let _0x3c8a29=_0xdc81f7[_0x5510('0x60')](_0xe041be[_0x5510('0x1b')][_0x5510('0x17')][_0x5510('0x15')]),_0x198d3f=_0x294b13[_0x5510('0x33')](_0x3c8a29);const _0x479c61=_0x45527a[_0x5510('0x50')](_0x198d3f[_0x5510('0x6')],_0x5510('0x38')),_0x13023d=_0x45527a[_0x5510('0x50')](_0x198d3f[_0x5510('0x68')],_0x5510('0x54'));_0x47e903[_0x5510('0x4')](()=>_0x22838b(_0x415065)),_0x3c8a29=_0xdc81f7[_0x5510('0x60')](_0xe041be[_0x5510('0x1b')][_0x5510('0x17')]['selection']),_0x198d3f=_0x294b13[_0x5510('0x33')](_0x3c8a29);const _0xf1e589=_0x294b13[_0x5510('0x11')](_0x479c61,_0x13023d);_0x479c61[_0x5510('0x39')](),_0x13023d['detach'](),_0x47e903[_0x5510('0x79')](_0x3c8a29,{'commandName':_0x5510('0x3'),'commandParams':[]},[],_0x5510('0x43')),_0xf1e589[_0x5510('0x6')]['isBefore'](_0x198d3f[_0x5510('0x6')])&&_0x47e903[_0x5510('0x30')](_0x294b13[_0x5510('0x11')](_0xf1e589[_0x5510('0x6')],_0x198d3f[_0x5510('0x6')]),_0x5510('0x43')),_0x198d3f[_0x5510('0x68')][_0x5510('0x3f')](_0xf1e589[_0x5510('0x68')])&&_0x47e903[_0x5510('0x30')](_0x294b13[_0x5510('0x11')](_0x198d3f[_0x5510('0x68')],_0xf1e589[_0x5510('0x68')]),_0x5510('0x43'));});}),_0x47e903['_suggestionFactory'][_0x5510('0x5e')](_0x5510('0x3c'),_0x5510('0x43'),_0x5510('0x23'),()=>{}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')]('formatBlock',_0x5510('0x43'),_0x5510('0x63'),()=>{}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x3c'),'convertInlineImageToBlock',_0x5510('0x34'),_0x47e903[_0x5510('0x5f')]['getSuggestionCallback'](_0x5510('0x3c'),'',_0x5510('0x63'))),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x1e'),_0x5510('0x43'),_0x5510('0x23'),()=>{}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x1e'),'convertInlineImageToBlock',_0x5510('0x34'),([_0x1b44d5])=>{const _0x20ffbb=_0x47e903[_0x5510('0x5f')][_0x5510('0x52')](_0x5510('0x1e'),'',_0x5510('0x34'));let _0x1b257b=_0x1b44d5[_0x5510('0x6')],_0x13e20c=_0x1b44d5[_0x5510('0x68')];const _0x4e4d60=_0xe041be[_0x5510('0x1b')][_0x5510('0x2d')][_0x5510('0x44')](_0x1b257b,'backward'),_0x467de7=_0xe041be[_0x5510('0x1b')][_0x5510('0x2d')][_0x5510('0x44')](_0x13e20c,_0x5510('0x46'));_0x4e4d60['isCollapsed']&&(_0x1b257b=_0x4e4d60['start']),_0x467de7[_0x5510('0x72')]&&(_0x13e20c=_0x467de7['end']),_0x20ffbb([_0xe041be['model']['createRange'](_0x1b257b,_0x13e20c)]);}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x3c'),_0x5510('0x43'),'chain',_0x75c130),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x1e'),'convertInlineImageToBlock',_0x5510('0x1'),_0x75c130)),_0xe041be['plugins'][_0x5510('0x73')](_0x5510('0x56'))&&(_0x47e903[_0x5510('0x10')](_0x5510('0x5a'),(_0x330e6c,_0x22a17f)=>{const _0x130696=_0xe041be[_0x5510('0x74')]['get']('ImageCaptionUtils');let _0x491103=_0xdc81f7[_0x5510('0x60')](_0xe041be['model'][_0x5510('0x17')][_0x5510('0x15')]),_0x464ca5=_0x130696['getCaptionFromImageModelElement'](_0x491103);_0xe041be[_0x5510('0x1b')][_0x5510('0x48')](()=>{if(_0x464ca5)return void _0x47e903[_0x5510('0x51')](_0xe041be['model'][_0x5510('0x33')](_0x464ca5));const _0x1745bc=_0xdc81f7['isBlockImage'](_0x491103);_0x330e6c(_0x22a17f),_0x491103=_0xdc81f7['getClosestSelectedImageElement'](_0xe041be[_0x5510('0x1b')][_0x5510('0x17')]['selection']),_0x464ca5=_0x130696[_0x5510('0x78')](_0x491103),_0x47e903[_0x5510('0x30')](_0xe041be[_0x5510('0x1b')]['createRangeOn'](_0x464ca5),_0x1745bc?null:_0x5510('0x4d'));});}),_0x47e903['_suggestionFactory'][_0x5510('0x5e')](_0x5510('0x1e'),_0x5510('0x4d'),_0x5510('0x1'),_0x75c130)),_0xe041be[_0x5510('0x74')]['has']('ImageStyleEditing')){_0x47e903[_0x5510('0x10')](_0x5510('0x36'),(_0x19b011,_0x4778cf)=>{const _0x5676f1=_0xe041be[_0x5510('0x74')][_0x5510('0x4a')](_0x5510('0x28'))['me'],_0x4f5217=_0xe041be[_0x5510('0x64')][_0x5510('0x4a')](_0x5510('0x36'));let _0x3b0625=_0xdc81f7['getClosestSelectedImageElement'](_0xe041be[_0x5510('0x1b')][_0x5510('0x17')][_0x5510('0x15')]),_0x23bf9f=_0xe041be['model'][_0x5510('0x33')](_0x3b0625),_0x1146bf=_0x4f5217[_0x5510('0x40')];if(_0x1146bf==_0x4778cf[_0x5510('0x40')])return;const _0x23a48d={'commandName':_0x5510('0x36'),'commandParams':[_0x4778cf],'formatGroupId':_0x3ba11d()};_0xe041be[_0x5510('0x1b')][_0x5510('0x48')](()=>{if(_0x47e903[_0x5510('0x3a')]()[_0x5510('0x4b')](_0xd3b99f=>_0xd3b99f[_0x5510('0x16')]&&_0x5676f1==_0xd3b99f[_0x5510('0x4e')]&&(_0x5510('0x3c')==_0xd3b99f[_0x5510('0x9')]||_0x5510('0x31')==_0xd3b99f[_0x5510('0x9')])&&(_0x5510('0x57')==_0xd3b99f[_0x5510('0x1f')]||'imageStylePostApply'==_0xd3b99f['subType'])&&_0xd3b99f[_0x5510('0x37')]()[_0x5510('0x2')](_0x23bf9f))[_0x5510('0xa')](_0x42cd03=>_0x47e903[_0x5510('0x62')](_0x42cd03[_0x5510('0x24')])),_0x3b0625=_0xdc81f7[_0x5510('0x60')](_0xe041be['model']['document'][_0x5510('0x15')]),_0x23bf9f=_0xe041be[_0x5510('0x1b')][_0x5510('0x33')](_0x3b0625),_0x4f5217['refresh'](),_0xe041be[_0x5510('0x64')]['get'](_0x5510('0x3'))[_0x5510('0x22')](),_0xe041be['commands'][_0x5510('0x4a')]('imageTypeBlock')[_0x5510('0x22')](),_0x1146bf=_0x4f5217[_0x5510('0x40')],_0x1146bf!=_0x4778cf[_0x5510('0x40')])return _0xdc81f7[_0x5510('0x6f')](_0x3b0625)&&_0x4f5217[_0x5510('0x2e')](_0x4778cf[_0x5510('0x40')],_0x3b0625)?(_0x19b011(_0x4778cf),_0x3b0625=_0xdc81f7[_0x5510('0x60')](_0xe041be['model']['document'][_0x5510('0x15')]),void _0x47e903['markBlockFormat'](_0x3b0625,{..._0x23a48d,'commandReversedParams':[{'value':_0x1146bf||null}]},[],_0x5510('0x57'))):void(_0xdc81f7['isBlockImage'](_0x3b0625)?_0x47e903['markBlockFormat'](_0x3b0625,_0x23a48d,[],_0x5510('0x55')):_0x47e903[_0x5510('0xc')](_0x23bf9f,_0x23a48d,'imageStylePostApply'));});});for(const _0x376cca of _0xe041be[_0x5510('0x74')][_0x5510('0x4a')](_0x5510('0x13'))[_0x5510('0x76')])_0x14c256[_0x376cca[_0x5510('0x42')]]=_0x376cca[_0x5510('0x69')][_0x5510('0x2f')]();_0x47e903['_suggestionFactory'][_0x5510('0x5e')](_0x5510('0x3c'),_0x5510('0x57'),'join',()=>{}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x3c'),_0x5510('0x55'),_0x5510('0x23'),()=>{}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x31'),_0x5510('0x55'),_0x5510('0x23'),()=>{}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x3c'),'imageStylePreApply',_0x5510('0x63'),()=>{}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x3c'),_0x5510('0x57'),'discard',(_0x688b56,_0x1d9d4d)=>{_0x47e903['_suggestionFactory'][_0x5510('0x52')](_0x5510('0x3c'),'','accept')(_0x688b56,{'commandName':_0x1d9d4d[_0x5510('0x66')],'commandParams':_0x1d9d4d[_0x5510('0x41')]});}),_0x47e903[_0x5510('0x5f')]['registerCustomCallback'](_0x5510('0x3c'),'imageStylePreApply','chain',_0x75c130);}const _0x104f70=[{'type':'formatBlock','subType':_0x5510('0x57')},{'type':_0x5510('0x1e'),'subType':_0x5510('0x4d')},{'type':_0x5510('0x3c'),'subType':_0x5510('0x43')},{'type':_0x5510('0x1e'),'subType':_0x5510('0x43')}];function _0x367b90(_0x4963a7,_0x2ea033){const _0x28ea9d=_0x104f70[_0x5510('0x5d')](({type:_0xbec763,subType:_0x9479c2})=>_0x4963a7[_0x5510('0x9')]==_0xbec763&&_0x4963a7[_0x5510('0x1f')]==_0x9479c2),_0x44ed96=_0x104f70[_0x5510('0x5d')](({type:_0x88eaec,subType:_0x51ec35})=>_0x2ea033[_0x5510('0x9')]==_0x88eaec&&_0x2ea033['subType']==_0x51ec35);if(_0x28ea9d<0x0||_0x44ed96<0x0)return!0x1;const _0x81d3e9=_0x4963a7[_0x5510('0x37')](),_0x394819=_0x2ea033['getFirstRange']();if((0x0==_0x28ea9d||0x1==_0x28ea9d)&&0x2==_0x44ed96&&_0x81d3e9[_0x5510('0x1a')](_0x394819))return!0x0;if(0x2==_0x28ea9d&&0x3==_0x44ed96){const _0x27dc6d=_0x47e903[_0x5510('0x6b')](_0x81d3e9,'insertion')[_0x5510('0x4b')](({suggestion:_0x1567b0,meta:_0x52308f})=>_0x52308f[_0x5510('0x32')]&&_0x5510('0x43')==_0x1567b0['subType']);if(_0x27dc6d[_0x5510('0x7')]>0x1&&_0x394819[_0x5510('0x68')]['isEqual'](_0x81d3e9['start']))return!0x0;if(0x1==_0x27dc6d['length']&&(_0x81d3e9[_0x5510('0x6')]['isEqual'](_0x394819[_0x5510('0x68')])||_0x81d3e9[_0x5510('0x68')][_0x5510('0x2')](_0x394819[_0x5510('0x6')])))return!0x0;}if(0x3==_0x28ea9d&&0x3==_0x44ed96&&_0x81d3e9[_0x5510('0x6')][_0x5510('0x3f')](_0x394819[_0x5510('0x6')])){const _0x4863e3=_0x81d3e9[_0x5510('0x68')]['nodeAfter'],_0x27a637=_0x394819[_0x5510('0x6')]['nodeBefore'];return _0xdc81f7[_0x5510('0x5')](_0x4863e3)&&_0x4863e3===_0x27a637;}return!0x1;}function _0x75c130(_0x414ee7,_0x4d64d5){return _0x367b90(_0x414ee7,_0x4d64d5)?[_0x414ee7,_0x4d64d5]:_0x367b90(_0x4d64d5,_0x414ee7)?[_0x4d64d5,_0x414ee7]:null;}_0xe041be['model'][_0x5510('0x17')]['registerPostFixer'](()=>{let _0x474da9=!0x1;const _0x1b97be=Array['from'](_0xe041be[_0x5510('0x1b')][_0x5510('0x17')][_0x5510('0x47')][_0x5510('0x20')]());for(const {name:_0x21656a,data:_0x405c0c}of _0x1b97be){const {group:_0x222363,type:_0x198909,subType:_0x7e6320,id:_0x42cc06}=_0x47e903[_0x5510('0x6c')](_0x21656a);if('suggestion'==_0x222363&&_0x47e903[_0x5510('0x14')](_0x42cc06)){if(_0x5510('0x3c')==_0x198909&&(_0x5510('0x57')==_0x7e6320||_0x5510('0x55')==_0x7e6320)){const _0x28287c=_0x47e903[_0x5510('0x77')](_0x42cc06);if(_0x405c0c['newRange']){const _0x5aabfc=_0x28287c[_0x5510('0x37')]()['getContainedElement']();if(_0xdc81f7[_0x5510('0x5')](_0x5aabfc))continue;_0x47e903[_0x5510('0x62')](_0x28287c),_0x474da9=!0x0;}}if(_0x5510('0x1e')==_0x198909&&_0x5510('0x4d')==_0x7e6320&&!_0x405c0c['newRange']){const _0x29be45=_0x47e903[_0x5510('0x77')](_0x42cc06);_0x29be45[_0x5510('0x12')]&&_0x29be45[_0x5510('0x12')][_0x5510('0x16')]&&(_0x47e903[_0x5510('0x62')](_0x29be45[_0x5510('0x12')]),_0x474da9=!0x0);}}}return _0x474da9;}),_0xe041be[_0x5510('0x74')][_0x5510('0x73')](_0x5510('0x61'))&&_0x47e903['enableCommand'](_0x5510('0x29'),(_0x569600,_0x10ac1d)=>{const _0x9aeb26=_0xdc81f7[_0x5510('0x60')](_0xe041be[_0x5510('0x1b')][_0x5510('0x17')][_0x5510('0x15')]);_0x9aeb26[_0x5510('0x70')](_0x5510('0x25'))!=_0x10ac1d[_0x5510('0x25')]&&_0xe041be[_0x5510('0x1b')][_0x5510('0x48')](()=>{_0x47e903[_0x5510('0x79')](_0x9aeb26,{'commandName':_0x5510('0x29'),'commandParams':[_0x10ac1d]});});}),_0xe041be[_0x5510('0x74')][_0x5510('0x73')](_0x5510('0x6a'))&&_0x47e903[_0x5510('0x10')](_0x5510('0x21'),(_0x3f1f3d,_0x5c5158)=>{const _0x1f54a2=_0xdc81f7[_0x5510('0x60')](_0xe041be[_0x5510('0x1b')][_0x5510('0x17')]['selection']);(_0x1f54a2['hasAttribute'](_0x5510('0xe'))?_0x1f54a2[_0x5510('0x70')]('alt'):'')!=_0x5c5158[_0x5510('0x6e')]&&_0xe041be[_0x5510('0x1b')][_0x5510('0x48')](()=>{_0x47e903[_0x5510('0x79')](_0x1f54a2,{'commandName':'imageTextAlternative','commandParams':[_0x5c5158]});});}),_0x47e903['_descriptionFactory'][_0x5510('0x4f')](_0x468178=>{if(!!_0x104f70[_0x5510('0x7b')](({type:_0x13482c,subType:_0x3f0536})=>_0x468178[_0x5510('0x9')]==_0x13482c&&_0x468178['subType']==_0x3f0536))return _0x468178[_0x5510('0x71')]?{}:void 0x0;}),_0x47e903[_0x5510('0x6d')][_0x5510('0x4f')](_0x1725d7=>{if(_0x5510('0x1e')==_0x1725d7[_0x5510('0x9')]||'deletion'==_0x1725d7[_0x5510('0x9')]){const _0x16c1d8=_0x1725d7[_0x5510('0x2c')]();if(_0x16c1d8&&_0x16c1d8['is'](_0x5510('0x5c'),_0x5510('0x2a')))return{'type':_0x5510('0x1e')==_0x1725d7[_0x5510('0x9')]?_0x5510('0x26'):_0x5510('0x45'),'element':_0x16c1d8,'quantity':0x1};}}),_0x47e903['_descriptionFactory'][_0x5510('0x4f')](_0x579d08=>'formatBlock'==_0x579d08[_0x5510('0x9')]&&_0x5510('0x43')==_0x579d08['subType']?{'type':_0x5510('0x7a'),'content':_0x5510('0x59')}:_0x5510('0x3c')==_0x579d08['type']&&_0x5510('0x49')==_0x579d08['subType']?{'type':_0x5510('0x7a'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x47e903['_descriptionFactory'][_0x5510('0x4f')](_0x2d0867=>{const {data:_0x390c25}=_0x2d0867;if(_0x390c25){if(_0x5510('0x36')==_0x390c25[_0x5510('0x66')]){const _0x4922f0=_0x390c25[_0x5510('0x3b')][0x0]['value'];return _0x6d7eca('side'===_0x4922f0?_0x270c08(_0x1b9fc4,_0x5510('0x5b')):_0x14c256[_0x4922f0]||_0x4922f0);}if('imageTextAlternative'==_0x390c25[_0x5510('0x66')]){const _0x320e69=_0x390c25[_0x5510('0x3b')][0x0][_0x5510('0x6e')];return _0x320e69?{'type':_0x5510('0x7a'),'content':_0x270c08(_0x1b9fc4,_0x5510('0x65'),'\x22'+_0x320e69+'\x22')}:{'type':_0x5510('0x7a'),'content':_0x270c08(_0x1b9fc4,_0x5510('0x35'))};}if('resizeImage'==_0x390c25[_0x5510('0x66')]){const _0x4c960f=_0x390c25['commandParams'][0x0][_0x5510('0x25')];return _0x4c960f?{'type':_0x5510('0x7a'),'content':_0x270c08(_0x1b9fc4,_0x5510('0x53'),_0x4c960f)}:{'type':'format','content':_0x270c08(_0x1b9fc4,'*Reset\x20image\x20width*')};}}function _0x6d7eca(_0x2b60b4){return{'type':_0x5510('0x7a'),'content':_0x270c08(_0x1b9fc4,_0x5510('0x1c'),_0x2b60b4)};}});}}
@@ -1,19 +1,19 @@
1
- /**
2
- * @module track-changes/integrations/imagereplace
3
- */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- import type Suggestion from '../suggestion';
6
- import type { Description } from '../suggestiondescriptionfactory';
7
- /**
8
- * Provides track changes plugin integration for image replace feature.
9
- */
10
- export default class TrackChangesImageReplace extends Plugin {
11
- /**
12
- * @inheritDoc
13
- */
14
- afterInit(): void;
15
- handleReplaceImageCommand(executeCommand: Function, options: {
16
- source: string;
17
- }): void;
18
- handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
19
- }
1
+ /**
2
+ * @module track-changes/integrations/imagereplace
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ import type Suggestion from '../suggestion';
6
+ import type { Description } from '../suggestiondescriptionfactory';
7
+ /**
8
+ * Provides track changes plugin integration for image replace feature.
9
+ */
10
+ export default class TrackChangesImageReplace extends Plugin {
11
+ /**
12
+ * @inheritDoc
13
+ */
14
+ afterInit(): void;
15
+ handleReplaceImageCommand(executeCommand: Function, options: {
16
+ source: string;
17
+ }): void;
18
+ handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
19
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4129=['getAttribute','getSuggestions','commandParams','_suggestionFactory','commandName','ImageEditing','registerCustomCallback','TrackChangesEditing','source','getContainedElement','replaceImageSource','afterInit','has','handleReplaceImageCommand','subType','discard','data','handleSuggestionDescription','formatBlock','get','src','*Format:*\x20replace\x20image\x20URL','getSelectedElement','enableCommand','document','editor','getSuggestionCallback','change','model','plugins'];(function(_0xe0468c,_0x4129b5){const _0xff6af6=function(_0x2766cf){while(--_0x2766cf){_0xe0468c['push'](_0xe0468c['shift']());}};_0xff6af6(++_0x4129b5);}(_0x4129,0x9e));const _0xff6a=function(_0xe0468c,_0x4129b5){_0xe0468c=_0xe0468c-0x0;let _0xff6af6=_0x4129[_0xe0468c];return _0xff6af6;};import{Plugin as _0x426048}from'ckeditor5/src/core';import{getTranslation as _0xe1cfd1}from'../utils/common-translations';export default class Y extends _0x426048{[_0xff6a('0x3')](){if(!this['editor']['plugins'][_0xff6a('0x4')](_0xff6a('0x1b')))return;const _0x4dc38d=this['editor']['plugins'][_0xff6a('0xb')](_0xff6a('0x1d'));_0x4dc38d[_0xff6a('0xf')](_0xff6a('0x2'),(_0x317393,_0xf358c6)=>this[_0xff6a('0x5')](_0x317393,_0xf358c6)),_0x4dc38d[_0xff6a('0x19')]['registerCustomCallback'](_0xff6a('0xa'),_0xff6a('0x2'),'accept',_0x4dc38d[_0xff6a('0x19')][_0xff6a('0x12')](_0xff6a('0xa'),null,_0xff6a('0x7'))),_0x4dc38d[_0xff6a('0x19')][_0xff6a('0x1c')](_0xff6a('0xa'),_0xff6a('0x2'),'discard',_0x4dc38d[_0xff6a('0x19')]['getSuggestionCallback']('formatBlock',null,'accept')),_0x4dc38d['_descriptionFactory']['registerDescriptionCallback'](_0x19d203=>this[_0xff6a('0x9')](_0x19d203));}[_0xff6a('0x5')](_0x30371c,_0x450ee4){const _0x4b42f2=this[_0xff6a('0x11')]['plugins'][_0xff6a('0xb')](_0xff6a('0x1d')),_0x36e24=this['editor']['model'][_0xff6a('0x10')]['selection'][_0xff6a('0xe')]();this['editor'][_0xff6a('0x14')][_0xff6a('0x13')](()=>{let _0x5b8458=_0x36e24[_0xff6a('0x16')](_0xff6a('0xc'));const _0x4e499c=this['editor'][_0xff6a('0x15')]['get']('Users')['me'];for(const _0x147c78 of _0x4b42f2[_0xff6a('0x17')]({'skipNotAttached':!0x0})){const _0x59bf89=_0x147c78[_0xff6a('0x1')]();if(_0xff6a('0x2')===_0x147c78[_0xff6a('0x6')]&&_0x59bf89===_0x36e24){_0x147c78['author']!==_0x4e499c&&_0x147c78[_0xff6a('0x7')](),_0x5b8458=_0x147c78[_0xff6a('0x8')][_0xff6a('0x18')][0x0][_0xff6a('0x0')];break;}}_0x30371c(_0x450ee4),_0x4b42f2['markBlockFormat'](_0x36e24,{'commandName':'replaceImageSource','commandParams':[{'source':_0x5b8458}]},[],_0xff6a('0x2'));});}[_0xff6a('0x9')](_0x4bc8f7){const {data:_0xefafe}=_0x4bc8f7;if(_0xefafe&&'replaceImageSource'===_0xefafe[_0xff6a('0x1a')]){const _0x1a2f0e=_0xff6a('0xd');return{'type':'format','content':_0xe1cfd1(this['editor']['locale'],_0x1a2f0e)};}}}
23
+ const _0x3412=['data','getSuggestionCallback','discard','registerDescriptionCallback','getSelectedElement','TrackChangesEditing','get','_descriptionFactory','document','source','model','handleSuggestionDescription','enableCommand','accept','replaceImageSource','_suggestionFactory','format','has','plugins','Users','ImageEditing','src','subType','markBlockFormat','getSuggestions','handleReplaceImageCommand','afterInit','formatBlock','registerCustomCallback','editor','*Format:*\x20replace\x20image\x20URL','getContainedElement'];(function(_0x1afad7,_0x341214){const _0x290dbf=function(_0x1fbeb1){while(--_0x1fbeb1){_0x1afad7['push'](_0x1afad7['shift']());}};_0x290dbf(++_0x341214);}(_0x3412,0xd5));const _0x290d=function(_0x1afad7,_0x341214){_0x1afad7=_0x1afad7-0x0;let _0x290dbf=_0x3412[_0x1afad7];return _0x290dbf;};import{Plugin as _0x1b4c18}from'ckeditor5/src/core';import{getTranslation as _0x5e6e58}from'../utils/common-translations';export default class Y extends _0x1b4c18{[_0x290d('0x5')](){if(!this[_0x290d('0x8')][_0x290d('0x1d')][_0x290d('0x1c')](_0x290d('0x1f')))return;const _0x3ad473=this[_0x290d('0x8')][_0x290d('0x1d')][_0x290d('0x11')](_0x290d('0x10'));_0x3ad473[_0x290d('0x17')](_0x290d('0x19'),(_0x2eb2fe,_0x2d6346)=>this['handleReplaceImageCommand'](_0x2eb2fe,_0x2d6346)),_0x3ad473['_suggestionFactory']['registerCustomCallback'](_0x290d('0x6'),_0x290d('0x19'),_0x290d('0x18'),_0x3ad473[_0x290d('0x1a')]['getSuggestionCallback'](_0x290d('0x6'),null,_0x290d('0xd'))),_0x3ad473[_0x290d('0x1a')][_0x290d('0x7')](_0x290d('0x6'),_0x290d('0x19'),'discard',_0x3ad473[_0x290d('0x1a')][_0x290d('0xc')](_0x290d('0x6'),null,_0x290d('0x18'))),_0x3ad473[_0x290d('0x12')][_0x290d('0xe')](_0x106b72=>this[_0x290d('0x16')](_0x106b72));}[_0x290d('0x4')](_0x140da1,_0x304c10){const _0x5b79c1=this[_0x290d('0x8')][_0x290d('0x1d')]['get']('TrackChangesEditing'),_0x53dfe9=this[_0x290d('0x8')][_0x290d('0x15')][_0x290d('0x13')]['selection'][_0x290d('0xf')]();this[_0x290d('0x8')][_0x290d('0x15')]['change'](()=>{let _0x136287=_0x53dfe9['getAttribute'](_0x290d('0x0'));const _0x177ca8=this[_0x290d('0x8')][_0x290d('0x1d')][_0x290d('0x11')](_0x290d('0x1e'))['me'];for(const _0x4655ab of _0x5b79c1[_0x290d('0x3')]({'skipNotAttached':!0x0})){const _0x3a5350=_0x4655ab[_0x290d('0xa')]();if(_0x290d('0x19')===_0x4655ab[_0x290d('0x1')]&&_0x3a5350===_0x53dfe9){_0x4655ab['author']!==_0x177ca8&&_0x4655ab[_0x290d('0xd')](),_0x136287=_0x4655ab[_0x290d('0xb')]['commandParams'][0x0][_0x290d('0x14')];break;}}_0x140da1(_0x304c10),_0x5b79c1[_0x290d('0x2')](_0x53dfe9,{'commandName':_0x290d('0x19'),'commandParams':[{'source':_0x136287}]},[],_0x290d('0x19'));});}[_0x290d('0x16')](_0x1e90e1){const {data:_0x3045b4}=_0x1e90e1;if(_0x3045b4&&_0x290d('0x19')===_0x3045b4['commandName']){const _0xffe977=_0x290d('0x9');return{'type':_0x290d('0x1b'),'content':_0x5e6e58(this[_0x290d('0x8')]['locale'],_0xffe977)};}}}