@ckeditor/ckeditor5-track-changes 35.4.0 → 36.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 (156) hide show
  1. package/build/track-changes.js +3 -3
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/az.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fi.js +1 -1
  15. package/build/translations/fr.js +1 -1
  16. package/build/translations/gl.js +1 -1
  17. package/build/translations/he.js +1 -1
  18. package/build/translations/hi.js +1 -1
  19. package/build/translations/hr.js +1 -1
  20. package/build/translations/hu.js +1 -1
  21. package/build/translations/id.js +1 -1
  22. package/build/translations/it.js +1 -1
  23. package/build/translations/ja.js +1 -1
  24. package/build/translations/ko.js +1 -1
  25. package/build/translations/lt.js +1 -1
  26. package/build/translations/lv.js +1 -1
  27. package/build/translations/ms.js +1 -1
  28. package/build/translations/nl.js +1 -1
  29. package/build/translations/no.js +1 -1
  30. package/build/translations/pl.js +1 -1
  31. package/build/translations/pt-br.js +1 -1
  32. package/build/translations/pt.js +1 -1
  33. package/build/translations/ro.js +1 -1
  34. package/build/translations/ru.js +1 -1
  35. package/build/translations/sk.js +1 -1
  36. package/build/translations/sr-latn.js +1 -1
  37. package/build/translations/sr.js +1 -1
  38. package/build/translations/sv.js +1 -1
  39. package/build/translations/th.js +1 -1
  40. package/build/translations/tk.js +1 -1
  41. package/build/translations/tr.js +1 -1
  42. package/build/translations/tt.js +1 -1
  43. package/build/translations/uk.js +1 -1
  44. package/build/translations/ur.js +1 -1
  45. package/build/translations/vi.js +1 -1
  46. package/build/translations/zh-cn.js +1 -1
  47. package/build/translations/zh.js +1 -1
  48. package/lang/contexts.json +6 -3
  49. package/lang/translations/ar.po +16 -4
  50. package/lang/translations/az.po +16 -4
  51. package/lang/translations/bg.po +16 -4
  52. package/lang/translations/bn.po +16 -4
  53. package/lang/translations/ca.po +16 -4
  54. package/lang/translations/cs.po +16 -4
  55. package/lang/translations/da.po +16 -4
  56. package/lang/translations/de.po +16 -4
  57. package/lang/translations/el.po +16 -4
  58. package/lang/translations/en-au.po +16 -4
  59. package/lang/translations/en.po +16 -4
  60. package/lang/translations/es.po +16 -4
  61. package/lang/translations/et.po +16 -4
  62. package/lang/translations/fi.po +16 -4
  63. package/lang/translations/fr.po +16 -4
  64. package/lang/translations/gl.po +16 -4
  65. package/lang/translations/he.po +16 -4
  66. package/lang/translations/hi.po +16 -4
  67. package/lang/translations/hr.po +16 -4
  68. package/lang/translations/hu.po +16 -4
  69. package/lang/translations/id.po +16 -4
  70. package/lang/translations/it.po +16 -4
  71. package/lang/translations/ja.po +16 -4
  72. package/lang/translations/ko.po +16 -4
  73. package/lang/translations/lt.po +16 -4
  74. package/lang/translations/lv.po +16 -4
  75. package/lang/translations/ms.po +16 -4
  76. package/lang/translations/nl.po +16 -4
  77. package/lang/translations/no.po +16 -4
  78. package/lang/translations/pl.po +16 -4
  79. package/lang/translations/pt-br.po +16 -4
  80. package/lang/translations/pt.po +16 -4
  81. package/lang/translations/ro.po +16 -4
  82. package/lang/translations/ru.po +16 -4
  83. package/lang/translations/sk.po +16 -4
  84. package/lang/translations/sr-latn.po +32 -20
  85. package/lang/translations/sr.po +33 -21
  86. package/lang/translations/sv.po +16 -4
  87. package/lang/translations/th.po +16 -4
  88. package/lang/translations/tk.po +16 -4
  89. package/lang/translations/tr.po +16 -4
  90. package/lang/translations/tt.po +16 -4
  91. package/lang/translations/uk.po +16 -4
  92. package/lang/translations/ur.po +16 -4
  93. package/lang/translations/vi.po +16 -4
  94. package/lang/translations/zh-cn.po +16 -4
  95. package/lang/translations/zh.po +16 -4
  96. package/package.json +4 -4
  97. package/src/commands/acceptsuggestioncommand.js +2 -2
  98. package/src/commands/discardsuggestioncommand.js +2 -2
  99. package/src/commands/executeonallsuggestionscommand.js +2 -2
  100. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  101. package/src/commands/trackchangescommand.js +2 -2
  102. package/src/index.js +1 -1
  103. package/src/integrations/alignment.js +2 -2
  104. package/src/integrations/basicstyles.js +2 -2
  105. package/src/integrations/blockquote.js +2 -2
  106. package/src/integrations/ckbox.js +2 -2
  107. package/src/integrations/codeblock.js +2 -2
  108. package/src/integrations/comments.js +2 -2
  109. package/src/integrations/deletecommand.js +2 -2
  110. package/src/integrations/documentlist.js +2 -2
  111. package/src/integrations/documentlistproperties.js +2 -2
  112. package/src/integrations/entercommand.js +2 -2
  113. package/src/integrations/findandreplace.js +23 -0
  114. package/src/integrations/font.js +2 -2
  115. package/src/integrations/heading.js +2 -2
  116. package/src/integrations/highlight.js +2 -2
  117. package/src/integrations/horizontalline.js +2 -2
  118. package/src/integrations/htmlembed.js +2 -2
  119. package/src/integrations/image.js +2 -2
  120. package/src/integrations/imagereplace.js +23 -0
  121. package/src/integrations/importword.js +2 -2
  122. package/src/integrations/indent.js +2 -2
  123. package/src/integrations/inputcommand.js +2 -2
  124. package/src/integrations/link.js +2 -2
  125. package/src/integrations/list.js +2 -2
  126. package/src/integrations/listproperties.js +2 -2
  127. package/src/integrations/mediaembed.js +2 -2
  128. package/src/integrations/mention.js +2 -2
  129. package/src/integrations/pagebreak.js +2 -2
  130. package/src/integrations/paragraph.js +2 -2
  131. package/src/integrations/removeformat.js +2 -2
  132. package/src/integrations/restrictededitingmode.js +2 -2
  133. package/src/integrations/shiftentercommand.js +2 -2
  134. package/src/integrations/standardeditingmode.js +2 -2
  135. package/src/integrations/style.js +2 -2
  136. package/src/integrations/table.js +2 -2
  137. package/src/integrations/tablecaption.js +2 -2
  138. package/src/integrations/tableclipboard.js +2 -2
  139. package/src/integrations/tablecolumnresize.js +2 -2
  140. package/src/integrations/tableheadings.js +2 -2
  141. package/src/integrations/tablemergesplit.js +2 -2
  142. package/src/integrations/tableproperties.js +23 -0
  143. package/src/integrations/title.js +2 -2
  144. package/src/integrations/undo.js +2 -2
  145. package/src/integrations/utils.js +2 -2
  146. package/src/suggestion.js +2 -2
  147. package/src/suggestiondescriptionfactory.js +2 -2
  148. package/src/trackchanges.js +2 -2
  149. package/src/trackchangesdata.js +2 -2
  150. package/src/trackchangesediting.js +2 -2
  151. package/src/trackchangesui.js +2 -2
  152. package/src/ui/suggestioncontroller.js +2 -2
  153. package/src/ui/view/basesuggestionthreadview.js +2 -2
  154. package/src/ui/view/suggestionthreadview.js +2 -2
  155. package/src/utils/common-translations.js +2 -2
  156. package/src/utils/utils.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 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 _0x5880=['commandName','commandParams','registerDescriptionCallback','from','*Reset\x20font\x20background\x20color*','afterInit','*Reset\x20font\x20family*','fontSize','*Set\x20font\x20size:*\x20%0','TrackChangesEditing','title','selection','fontColor','FontBackgroundColorEditing','format','config','editor','isCollapsed','plugins','get','*Set\x20font\x20color:*\x20%0','toLowerCase','_enableCommand','locale','trim','enableCommand','getRanges','value','*Set\x20font\x20family:*\x20%0','label','has','_descriptionFactory','fontFamily','find','fontColor.colors','model','fontBackgroundColor'];(function(_0x7b1078,_0x58809f){const _0x3c5aa1=function(_0x167f46){while(--_0x167f46){_0x7b1078['push'](_0x7b1078['shift']());}};_0x3c5aa1(++_0x58809f);}(_0x5880,0x84));const _0x3c5a=function(_0x7b1078,_0x58809f){_0x7b1078=_0x7b1078-0x0;let _0x3c5aa1=_0x5880[_0x7b1078];return _0x3c5aa1;};import{Plugin as _0x98be4}from'ckeditor5/src/core';import{normalizeColorOptions as _0x45affd}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x421341}from'./utils';import{getTranslation as _0x3ab345}from'../utils/common-translations';const Jt=[{'pluginName':'FontSizeEditing','commandName':_0x3c5a('0x17')},{'pluginName':'FontFamilyEditing','commandName':_0x3c5a('0xb')},{'pluginName':'FontColorEditing','commandName':_0x3c5a('0x1c')},{'pluginName':_0x3c5a('0x1d'),'commandName':_0x3c5a('0xf')}];export default class W extends _0x98be4{[_0x3c5a('0x15')](){const _0x41e3c7=this[_0x3c5a('0x20')][_0x3c5a('0x2')];for(const {pluginName:_0x48c434,commandName:_0x268c46}of Jt)this[_0x3c5a('0x20')][_0x3c5a('0x22')][_0x3c5a('0x9')](_0x48c434)&&this[_0x3c5a('0x1')](_0x268c46);this['editor']['plugins'][_0x3c5a('0x23')](_0x3c5a('0x19'))[_0x3c5a('0xa')][_0x3c5a('0x12')](_0x379458=>{const {data:_0x96e129}=_0x379458;if(null!=_0x96e129){if('fontSize'==_0x96e129[_0x3c5a('0x10')]){const _0x43dff0=_0x96e129[_0x3c5a('0x11')][0x0][_0x3c5a('0x6')];if(_0x43dff0){const _0x2c1ba8=this[_0x3c5a('0x20')]['plugins'][_0x3c5a('0x23')]('FontSize')['normalizeSizeOptions'](this[_0x3c5a('0x20')][_0x3c5a('0x1f')]['get']('fontSize.options'))[_0x3c5a('0xc')](_0x195763=>_0x195763['model']==_0x43dff0)[_0x3c5a('0x1a')],_0x218b5d=this[_0x3c5a('0x20')][_0x3c5a('0x2')]['_t'](_0x2c1ba8)[_0x3c5a('0x0')]();return{'type':_0x3c5a('0x1e'),'content':_0x3ab345(_0x41e3c7,_0x3c5a('0x18'),_0x218b5d)};}return{'type':_0x3c5a('0x1e'),'content':_0x3ab345(_0x41e3c7,'*Reset\x20font\x20size*')};}if(_0x3c5a('0xb')==_0x96e129['commandName']){const _0x56ceb8=_0x96e129[_0x3c5a('0x11')][0x0][_0x3c5a('0x6')];return _0x56ceb8?{'type':_0x3c5a('0x1e'),'content':_0x3ab345(_0x41e3c7,_0x3c5a('0x7'),_0x56ceb8)}:{'type':'format','content':_0x3ab345(_0x41e3c7,_0x3c5a('0x16'))};}if(_0x3c5a('0x1c')==_0x96e129['commandName']){const _0x4859fc=_0x96e129[_0x3c5a('0x11')][0x0][_0x3c5a('0x6')];if(_0x4859fc){const _0x1cfb62=_0x45affd(this[_0x3c5a('0x20')][_0x3c5a('0x1f')][_0x3c5a('0x23')](_0x3c5a('0xd')))[_0x3c5a('0xc')](_0x13c009=>_0x13c009[_0x3c5a('0xe')]==_0x4859fc);let _0x2321eb=_0x4859fc,_0x4c1b87='';return _0x1cfb62&&(_0x2321eb=_0x1cfb62[_0x3c5a('0x8')],_0x4c1b87=_0x41e3c7['_t'](_0x2321eb)[_0x3c5a('0x0')]()),{'type':_0x3c5a('0x1e'),'content':_0x3ab345(_0x41e3c7,_0x3c5a('0x24'),_0x4c1b87)[_0x3c5a('0x3')](),'color':{'value':_0x4859fc,'title':_0x4c1b87||_0x2321eb}};}return{'type':_0x3c5a('0x1e'),'content':_0x3ab345(_0x41e3c7,'*Reset\x20font\x20color*')};}if(_0x3c5a('0xf')==_0x96e129[_0x3c5a('0x10')]){const _0x19d12e=_0x96e129[_0x3c5a('0x11')][0x0]['value'];if(_0x19d12e){const _0x541718=_0x45affd(this[_0x3c5a('0x20')]['config'][_0x3c5a('0x23')]('fontBackgroundColor.colors'))[_0x3c5a('0xc')](_0x145dca=>_0x145dca['model']==_0x19d12e);let _0x1caa3c=_0x19d12e,_0x3fd526='';return _0x541718&&(_0x1caa3c=_0x541718[_0x3c5a('0x8')],_0x3fd526=_0x41e3c7['_t'](_0x1caa3c)[_0x3c5a('0x0')]()),{'type':'format','content':_0x3ab345(_0x41e3c7,'*Set\x20font\x20background\x20color:*\x20%0',_0x3fd526)['trim'](),'color':{'value':_0x19d12e,'title':_0x3fd526||_0x1caa3c}};}return{'type':'format','content':_0x3ab345(_0x41e3c7,_0x3c5a('0x14'))};}}});}[_0x3c5a('0x1')](_0x499af0){const _0x5958c8=this[_0x3c5a('0x20')];_0x5958c8[_0x3c5a('0x22')][_0x3c5a('0x23')]('TrackChangesEditing')[_0x3c5a('0x4')](_0x499af0,(_0x265bd7,_0x3deaff={})=>{const _0x247e17=_0x5958c8[_0x3c5a('0xe')]['document'][_0x3c5a('0x1b')],_0x531786=_0x3deaff[_0x3c5a('0x6')];_0x247e17[_0x3c5a('0x21')]?_0x265bd7(_0x3deaff):_0x5958c8[_0x3c5a('0xe')]['change'](()=>{const _0x19e13e=Array[_0x3c5a('0x13')](_0x247e17[_0x3c5a('0x5')]());for(const _0xaf6a3f of _0x19e13e){const _0x4a1882=_0x531786?[_0xaf6a3f]:_0x421341(_0x499af0,_0xaf6a3f,_0x5958c8[_0x3c5a('0xe')]);for(const _0x1f377c of _0x4a1882)_0x5958c8[_0x3c5a('0x22')][_0x3c5a('0x23')](_0x3c5a('0x19'))['markInlineFormat'](_0x1f377c,{'commandName':_0x499af0,'commandParams':[{'value':_0x531786}]});}});});}}
23
+ const _0x1658=['*Set\x20font\x20family:*\x20%0','markInlineFormat','toLowerCase','FontBackgroundColorEditing','commandParams','fontSize.options','model','fontBackgroundColor','get','*Reset\x20font\x20background\x20color*','value','afterInit','FontSizeEditing','selection','normalizeSizeOptions','plugins','fontColor.colors','*Set\x20font\x20background\x20color:*\x20%0','_descriptionFactory','editor','trim','fontColor','TrackChangesEditing','from','FontFamilyEditing','config','title','label','format','document','fontFamily','locale','find','_enableCommand','fontSize','commandName','enableCommand','FontColorEditing','getRanges','fontBackgroundColor.colors','change','FontSize','*Set\x20font\x20color:*\x20%0','has','*Set\x20font\x20size:*\x20%0','*Reset\x20font\x20color*'];(function(_0x4713e9,_0x165807){const _0x5611c7=function(_0x12cf77){while(--_0x12cf77){_0x4713e9['push'](_0x4713e9['shift']());}};_0x5611c7(++_0x165807);}(_0x1658,0x18e));const _0x5611=function(_0x4713e9,_0x165807){_0x4713e9=_0x4713e9-0x0;let _0x5611c7=_0x1658[_0x4713e9];return _0x5611c7;};import{Plugin as _0x4ea978}from'ckeditor5/src/core';import{normalizeColorOptions as _0x1da3db}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0xd44fa9}from'./utils';import{getTranslation as _0x3186d6}from'../utils/common-translations';const Yt=[{'pluginName':_0x5611('0x1c'),'commandName':_0x5611('0x4')},{'pluginName':_0x5611('0x28'),'commandName':_0x5611('0x0')},{'pluginName':_0x5611('0x7'),'commandName':_0x5611('0x25')},{'pluginName':_0x5611('0x13'),'commandName':_0x5611('0x17')}];export default class J extends _0x4ea978{[_0x5611('0x1b')](){const _0x1df83f=this[_0x5611('0x23')][_0x5611('0x1')];for(const {pluginName:_0xeeedf7,commandName:_0x58f90d}of Yt)this[_0x5611('0x23')][_0x5611('0x1f')][_0x5611('0xd')](_0xeeedf7)&&this[_0x5611('0x3')](_0x58f90d);this[_0x5611('0x23')][_0x5611('0x1f')][_0x5611('0x18')]('TrackChangesEditing')[_0x5611('0x22')]['registerDescriptionCallback'](_0xf0552b=>{const {data:_0x7da672}=_0xf0552b;if(null!=_0x7da672){if(_0x5611('0x4')==_0x7da672['commandName']){const _0xc18323=_0x7da672['commandParams'][0x0][_0x5611('0x1a')];if(_0xc18323){const _0x336ec0=this[_0x5611('0x23')][_0x5611('0x1f')][_0x5611('0x18')](_0x5611('0xb'))[_0x5611('0x1e')](this[_0x5611('0x23')][_0x5611('0x29')]['get'](_0x5611('0x15')))[_0x5611('0x2')](_0x2f8ecf=>_0x2f8ecf['model']==_0xc18323)[_0x5611('0x2a')],_0x193245=this[_0x5611('0x23')][_0x5611('0x1')]['_t'](_0x336ec0)[_0x5611('0x12')]();return{'type':_0x5611('0x2c'),'content':_0x3186d6(_0x1df83f,_0x5611('0xe'),_0x193245)};}return{'type':_0x5611('0x2c'),'content':_0x3186d6(_0x1df83f,'*Reset\x20font\x20size*')};}if(_0x5611('0x0')==_0x7da672[_0x5611('0x5')]){const _0x570998=_0x7da672[_0x5611('0x14')][0x0][_0x5611('0x1a')];return _0x570998?{'type':_0x5611('0x2c'),'content':_0x3186d6(_0x1df83f,_0x5611('0x10'),_0x570998)}:{'type':_0x5611('0x2c'),'content':_0x3186d6(_0x1df83f,'*Reset\x20font\x20family*')};}if(_0x5611('0x25')==_0x7da672['commandName']){const _0x1741f0=_0x7da672[_0x5611('0x14')][0x0][_0x5611('0x1a')];if(_0x1741f0){const _0x3af18a=_0x1da3db(this[_0x5611('0x23')][_0x5611('0x29')][_0x5611('0x18')](_0x5611('0x20')))[_0x5611('0x2')](_0x414341=>_0x414341['model']==_0x1741f0);let _0x5101ff=_0x1741f0,_0x6b64be='';return _0x3af18a&&(_0x5101ff=_0x3af18a[_0x5611('0x2b')],_0x6b64be=_0x1df83f['_t'](_0x5101ff)['toLowerCase']()),{'type':_0x5611('0x2c'),'content':_0x3186d6(_0x1df83f,_0x5611('0xc'),_0x6b64be)['trim'](),'color':{'value':_0x1741f0,'title':_0x6b64be||_0x5101ff}};}return{'type':'format','content':_0x3186d6(_0x1df83f,_0x5611('0xf'))};}if(_0x5611('0x17')==_0x7da672[_0x5611('0x5')]){const _0x41e637=_0x7da672[_0x5611('0x14')][0x0]['value'];if(_0x41e637){const _0x28f17d=_0x1da3db(this[_0x5611('0x23')][_0x5611('0x29')][_0x5611('0x18')](_0x5611('0x9')))[_0x5611('0x2')](_0x37852c=>_0x37852c[_0x5611('0x16')]==_0x41e637);let _0x36fcbc=_0x41e637,_0xeb17e0='';return _0x28f17d&&(_0x36fcbc=_0x28f17d['label'],_0xeb17e0=_0x1df83f['_t'](_0x36fcbc)[_0x5611('0x12')]()),{'type':'format','content':_0x3186d6(_0x1df83f,_0x5611('0x21'),_0xeb17e0)[_0x5611('0x24')](),'color':{'value':_0x41e637,'title':_0xeb17e0||_0x36fcbc}};}return{'type':_0x5611('0x2c'),'content':_0x3186d6(_0x1df83f,_0x5611('0x19'))};}}});}[_0x5611('0x3')](_0xddd01c){const _0x2a641d=this[_0x5611('0x23')];_0x2a641d[_0x5611('0x1f')][_0x5611('0x18')](_0x5611('0x26'))[_0x5611('0x6')](_0xddd01c,(_0x519184,_0x398a2d={})=>{const _0x55c4ed=_0x2a641d['model'][_0x5611('0x2d')][_0x5611('0x1d')],_0x11a547=_0x398a2d['value'];_0x55c4ed['isCollapsed']?_0x519184(_0x398a2d):_0x2a641d[_0x5611('0x16')][_0x5611('0xa')](()=>{const _0x47e3c8=Array[_0x5611('0x27')](_0x55c4ed[_0x5611('0x8')]());for(const _0x5ab86f of _0x47e3c8){const _0xeb6839=_0x11a547?[_0x5ab86f]:_0xd44fa9(_0xddd01c,_0x5ab86f,_0x2a641d[_0x5611('0x16')]);for(const _0x3fe76e of _0xeb6839)_0x2a641d['plugins'][_0x5611('0x18')](_0x5611('0x26'))[_0x5611('0x11')](_0x3fe76e,{'commandName':_0xddd01c,'commandParams':[{'value':_0x11a547}]});}});});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 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 _0x4562=['filter','checkChild','selection','name','parent','change','blockName','ELEMENT_HEADING_CUSTOM','paragraph','plugins','heading','find','has','enableCommand','_descriptionFactory','config','document','title','*Change\x20to:*\x20%0','from','match','model','afterInit','TrackChangesEditing','value','schema','editor','commandName','isObject','format','get','registerElementLabel','heading.options','registerDescriptionCallback'];(function(_0x182fee,_0x4562b5){const _0x48f633=function(_0x24644e){while(--_0x24644e){_0x182fee['push'](_0x182fee['shift']());}};_0x48f633(++_0x4562b5);}(_0x4562,0xc9));const _0x48f6=function(_0x182fee,_0x4562b5){_0x182fee=_0x182fee-0x0;let _0x48f633=_0x4562[_0x182fee];return _0x48f633;};import{Plugin as _0x2b30ba}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x2a18fe}from'./utils';import{getTranslation as _0x2df148}from'../utils/common-translations';export default class J extends _0x2b30ba{[_0x48f6('0x19')](){const _0x447857=this[_0x48f6('0x1d')],_0x26a8d4=_0x447857['locale'],_0x4e53dc=_0x447857[_0x48f6('0x12')][_0x48f6('0x21')](_0x48f6('0x1'));if(!_0x447857[_0x48f6('0xc')][_0x48f6('0xf')]('HeadingEditing'))return;const _0xc9d3ed=_0x447857[_0x48f6('0xc')]['get'](_0x48f6('0x1a'));_0xc9d3ed[_0x48f6('0x10')](_0x48f6('0xd'),(_0x483cc4,_0x4cd2bf)=>{const _0x1ae19d=_0x4cd2bf[_0x48f6('0x1b')],_0x4353fa=Array[_0x48f6('0x16')](this[_0x48f6('0x1d')][_0x48f6('0x18')][_0x48f6('0x13')][_0x48f6('0x5')]['getSelectedBlocks']())[_0x48f6('0x3')](_0x43f913=>function(_0x4458c7,_0x26c0b2,_0x4e28c3){return _0x4e28c3[_0x48f6('0x4')](_0x4458c7[_0x48f6('0x7')],_0x26c0b2)&&!_0x4e28c3[_0x48f6('0x1f')](_0x4458c7)&&_0x4458c7[_0x48f6('0x6')]!=_0x26c0b2;}(_0x43f913,_0x1ae19d,this[_0x48f6('0x1d')][_0x48f6('0x18')][_0x48f6('0x1c')]));_0x447857[_0x48f6('0x18')][_0x48f6('0x8')](()=>{for(const _0x142e2c of _0x4353fa)_0xc9d3ed['markBlockFormat'](_0x142e2c,{'commandName':_0x48f6('0xd'),'commandParams':[_0x4cd2bf],'formatGroupId':_0x48f6('0x9')},_0x2a18fe(_0x142e2c));});});for(const _0x18bf2d of _0x4e53dc)_0x48f6('0xb')!=_0x18bf2d[_0x48f6('0x18')]&&_0xc9d3ed[_0x48f6('0x11')][_0x48f6('0x0')](_0x18bf2d[_0x48f6('0x18')],_0x5d2b1d=>{const _0x330716=Xt(_0x18bf2d[_0x48f6('0x18')]);return null!==_0x330716?_0x5b1c80(_0x5d2b1d,_0x330716):_0x21a91d(_0x5d2b1d,_0x18bf2d['title']);});function _0x5b1c80(_0x92474e,_0xf8acd6){return _0x2df148(_0x26a8d4,'ELEMENT_HEADING',[_0x92474e,_0xf8acd6]);}function _0x21a91d(_0x28709a,_0x4404bf){return _0x2df148(_0x26a8d4,_0x48f6('0xa'),[_0x28709a,_0x4404bf]);}_0xc9d3ed['_descriptionFactory'][_0x48f6('0x2')](_0x25a3ca=>{const {type:_0x71ec64,data:_0x4aad2d}=_0x25a3ca;if('formatBlock'==_0x71ec64&&_0x4aad2d&&_0x48f6('0xd')==_0x4aad2d[_0x48f6('0x1e')]){const _0x286aef=_0x4aad2d['commandParams'][0x0]['value'],_0x5b4a4a=Xt(_0x286aef);if(null!==_0x5b4a4a)return{'type':_0x48f6('0x20'),'content':_0x2df148(_0x26a8d4,_0x48f6('0x15'),_0x5b1c80(0x1,_0x5b4a4a))};const _0xba40fc=_0x4e53dc[_0x48f6('0xe')](_0x10b63b=>_0x10b63b[_0x48f6('0x18')]===_0x286aef)[_0x48f6('0x14')];return{'type':_0x48f6('0x20'),'content':_0x2df148(_0x26a8d4,'*Change\x20to:*\x20%0',_0x21a91d(0x1,_0xba40fc))};}});}}function Xt(_0x14b0b7){const _0x2d70d4=_0x14b0b7[_0x48f6('0x17')](/^heading(\d+)$/);return _0x2d70d4?_0x2d70d4[0x1]:null;}
23
+ const _0x4f67=['match','registerElementLabel','heading','_descriptionFactory','afterInit','commandParams','from','HeadingEditing','schema','heading.options','enableCommand','ELEMENT_HEADING','ELEMENT_HEADING_CUSTOM','paragraph','registerDescriptionCallback','*Change\x20to:*\x20%0','model','format','selection','config','parent','editor','markBlockFormat','change','document','get','find','name','title','value'];(function(_0x5da0a6,_0x4f67f7){const _0x308eef=function(_0x3e9092){while(--_0x3e9092){_0x5da0a6['push'](_0x5da0a6['shift']());}};_0x308eef(++_0x4f67f7);}(_0x4f67,0x1ed));const _0x308e=function(_0x5da0a6,_0x4f67f7){_0x5da0a6=_0x5da0a6-0x0;let _0x308eef=_0x4f67[_0x5da0a6];return _0x308eef;};import{Plugin as _0x444fc0}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0xb5750e}from'./utils';import{getTranslation as _0x2838ec}from'../utils/common-translations';export default class K extends _0x444fc0{[_0x308e('0x15')](){const _0x546698=this['editor'],_0x1eb0b2=_0x546698['locale'],_0x215cd5=_0x546698[_0x308e('0x6')][_0x308e('0xc')](_0x308e('0x1a'));if(!_0x546698['plugins']['has'](_0x308e('0x18')))return;const _0x34e66d=_0x546698['plugins']['get']('TrackChangesEditing');_0x34e66d[_0x308e('0x1b')](_0x308e('0x13'),(_0x25d813,_0x1a2e9a)=>{const _0x48f81d=_0x1a2e9a[_0x308e('0x10')],_0x1621ba=Array[_0x308e('0x17')](this[_0x308e('0x8')][_0x308e('0x3')][_0x308e('0xb')][_0x308e('0x5')]['getSelectedBlocks']())['filter'](_0x74d8d0=>function(_0x586a59,_0x5c2b3e,_0x39ce8f){return _0x39ce8f['checkChild'](_0x586a59[_0x308e('0x7')],_0x5c2b3e)&&!_0x39ce8f['isObject'](_0x586a59)&&_0x586a59[_0x308e('0xe')]!=_0x5c2b3e;}(_0x74d8d0,_0x48f81d,this[_0x308e('0x8')][_0x308e('0x3')][_0x308e('0x19')]));_0x546698['model'][_0x308e('0xa')](()=>{for(const _0x2c19e8 of _0x1621ba)_0x34e66d[_0x308e('0x9')](_0x2c19e8,{'commandName':'heading','commandParams':[_0x1a2e9a],'formatGroupId':'blockName'},_0xb5750e(_0x2c19e8));});});for(const _0x3e70ae of _0x215cd5)_0x308e('0x0')!=_0x3e70ae[_0x308e('0x3')]&&_0x34e66d[_0x308e('0x14')][_0x308e('0x12')](_0x3e70ae['model'],_0x252e28=>{const _0x35d811=tn(_0x3e70ae[_0x308e('0x3')]);return null!==_0x35d811?_0x2b7730(_0x252e28,_0x35d811):_0x45ddda(_0x252e28,_0x3e70ae['title']);});function _0x2b7730(_0x1173e9,_0x2b4d58){return _0x2838ec(_0x1eb0b2,_0x308e('0x1c'),[_0x1173e9,_0x2b4d58]);}function _0x45ddda(_0x4b1dc8,_0x4bc409){return _0x2838ec(_0x1eb0b2,_0x308e('0x1d'),[_0x4b1dc8,_0x4bc409]);}_0x34e66d[_0x308e('0x14')][_0x308e('0x1')](_0x533505=>{const {type:_0x2a59b2,data:_0x4df2f0}=_0x533505;if('formatBlock'==_0x2a59b2&&_0x4df2f0&&_0x308e('0x13')==_0x4df2f0['commandName']){const _0xe0590c=_0x4df2f0[_0x308e('0x16')][0x0][_0x308e('0x10')],_0x11fb1b=tn(_0xe0590c);if(null!==_0x11fb1b)return{'type':_0x308e('0x4'),'content':_0x2838ec(_0x1eb0b2,_0x308e('0x2'),_0x2b7730(0x1,_0x11fb1b))};const _0x2e23a5=_0x215cd5[_0x308e('0xd')](_0x2d3a04=>_0x2d3a04[_0x308e('0x3')]===_0xe0590c)[_0x308e('0xf')];return{'type':_0x308e('0x4'),'content':_0x2838ec(_0x1eb0b2,'*Change\x20to:*\x20%0',_0x45ddda(0x1,_0x2e23a5))};}});}}function tn(_0x416cca){const _0x34335a=_0x416cca[_0x308e('0x11')](/^heading(\d+)$/);return _0x34335a?_0x34335a[0x1]:null;}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 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 _0x57f6=['editor','backward','HighlightEditing','getLastMatchingPosition','find','enableCommand','hasAttribute','format','model','locale','get','item','registerDescriptionCallback','document','highlight','has','afterInit','getAttribute','formatInline','change','value','title','getRanges','toLowerCase','isCollapsed','color','_descriptionFactory','push','createRange','FORMAT_HIGHLIGHT','*Remove\x20highlight*'];(function(_0x388651,_0x57f6f8){const _0x566d5b=function(_0x3809e0){while(--_0x3809e0){_0x388651['push'](_0x388651['shift']());}};_0x566d5b(++_0x57f6f8);}(_0x57f6,0x151));const _0x566d=function(_0x388651,_0x57f6f8){_0x388651=_0x388651-0x0;let _0x566d5b=_0x57f6[_0x388651];return _0x566d5b;};import{Plugin as _0x4c8688}from'ckeditor5/src/core';import{getTranslation as _0x4cdbb5}from'../utils/common-translations';import{getRangesWithAttribute as _0x45c753}from'./utils';export default class K extends _0x4c8688{[_0x566d('0x14')](){const _0xa22a05=this[_0x566d('0x4')];if(!_0xa22a05['plugins'][_0x566d('0x13')](_0x566d('0x6')))return;const _0x37029a=_0xa22a05['plugins'][_0x566d('0xe')]('TrackChangesEditing');_0x37029a[_0x566d('0x9')]('highlight',(_0x10a147,_0x210214={})=>{const _0x3c2f92=_0xa22a05[_0x566d('0xc')][_0x566d('0x11')]['selection'],_0x5480cc=_0x3c2f92[_0x566d('0x15')](_0x566d('0x12'));let _0x58497c=_0x210214['value'],_0x612319=[];if(_0x3c2f92[_0x566d('0x1c')]){const _0x59f3ff=_0x3c2f92['getFirstPosition']();if(!_0x3c2f92[_0x566d('0xa')](_0x566d('0x12')))return void _0x10a147(_0x210214);{const _0x50e3cc=_0x223696=>_0x223696[_0x566d('0xf')]['getAttribute'](_0x566d('0x12'))===_0x5480cc,_0x379b1c=_0x59f3ff['getLastMatchingPosition'](_0x50e3cc,{'direction':_0x566d('0x5')}),_0x15d7ee=_0x59f3ff[_0x566d('0x7')](_0x50e3cc);_0x612319=[_0xa22a05[_0x566d('0xc')][_0x566d('0x1')](_0x379b1c,_0x15d7ee)],_0x58497c==_0x5480cc&&(_0x58497c=null);}}else for(const _0x22ba00 of _0x3c2f92[_0x566d('0x1a')]())_0x58497c?_0x612319[_0x566d('0x0')](_0x22ba00):_0x612319[_0x566d('0x0')](..._0x45c753('highlight',_0x22ba00,_0xa22a05['model']));_0xa22a05[_0x566d('0xc')][_0x566d('0x17')](()=>{for(const _0x32a62b of _0x612319)_0x37029a['markInlineFormat'](_0x32a62b,{'commandName':_0x566d('0x12'),'commandParams':[{'value':_0x58497c}]});});});const _0x2ed459=_0xa22a05[_0x566d('0xd')];_0x37029a[_0x566d('0x1e')][_0x566d('0x10')](_0x24b8ed=>{const {type:_0xae84a8,data:_0x12203b}=_0x24b8ed;if(_0x566d('0x16')==_0xae84a8&&_0x12203b&&'highlight'==_0x12203b['commandName']){const _0x5e2e7d=_0x12203b['commandParams'][0x0][_0x566d('0x18')];if(_0x5e2e7d){const _0x34d180=_0xa22a05['config']['get']('highlight.options')[_0x566d('0x8')](_0x4c91ec=>_0x4c91ec[_0x566d('0xc')]==_0x5e2e7d),_0x3795c3=_0x2ed459['_t'](_0x34d180['title'])[_0x566d('0x1b')]();return{'type':_0x566d('0xb'),'content':_0x4cdbb5(_0x2ed459,'*Set\x20highlight:*\x20%0',_0x3795c3),'color':{'value':_0x34d180[_0x566d('0x1d')],'title':_0x34d180[_0x566d('0x19')]}};}return{'type':'format','content':_0x4cdbb5(_0x2ed459,_0x566d('0x3'),_0x4cdbb5(_0x2ed459,_0x566d('0x2')))};}});}}
23
+ const _0x1531=['document','getLastMatchingPosition','selection','formatInline','has','registerDescriptionCallback','*Remove\x20highlight*','*Set\x20highlight:*\x20%0','change','model','_descriptionFactory','getAttribute','color','toLowerCase','locale','find','config','enableCommand','editor','afterInit','FORMAT_HIGHLIGHT','HighlightEditing','createRange','push','plugins','commandName','get','format','getRanges','TrackChangesEditing','highlight','highlight.options','title','value','isCollapsed'];(function(_0x2fb0e1,_0x1531cc){const _0x1b3496=function(_0x18dc1d){while(--_0x18dc1d){_0x2fb0e1['push'](_0x2fb0e1['shift']());}};_0x1b3496(++_0x1531cc);}(_0x1531,0x12c));const _0x1b34=function(_0x2fb0e1,_0x1531cc){_0x2fb0e1=_0x2fb0e1-0x0;let _0x1b3496=_0x1531[_0x2fb0e1];return _0x1b3496;};import{Plugin as _0x2580a5}from'ckeditor5/src/core';import{getTranslation as _0x4ba7cc}from'../utils/common-translations';import{getRangesWithAttribute as _0x835acf}from'./utils';export default class Q extends _0x2580a5{[_0x1b34('0x22')](){const _0x296280=this[_0x1b34('0x21')];if(!_0x296280['plugins'][_0x1b34('0x13')](_0x1b34('0x1')))return;const _0x2a8034=_0x296280[_0x1b34('0x4')][_0x1b34('0x6')](_0x1b34('0x9'));_0x2a8034[_0x1b34('0x20')](_0x1b34('0xa'),(_0x357596,_0x3b163f={})=>{const _0x1dfa62=_0x296280[_0x1b34('0x18')][_0x1b34('0xf')][_0x1b34('0x11')],_0x5e50da=_0x1dfa62['getAttribute'](_0x1b34('0xa'));let _0x3b418c=_0x3b163f[_0x1b34('0xd')],_0x5d1099=[];if(_0x1dfa62[_0x1b34('0xe')]){const _0x37bf01=_0x1dfa62['getFirstPosition']();if(!_0x1dfa62['hasAttribute'](_0x1b34('0xa')))return void _0x357596(_0x3b163f);{const _0x4d25a3=_0x5b1432=>_0x5b1432['item'][_0x1b34('0x1a')](_0x1b34('0xa'))===_0x5e50da,_0x49efc6=_0x37bf01[_0x1b34('0x10')](_0x4d25a3,{'direction':'backward'}),_0x587342=_0x37bf01[_0x1b34('0x10')](_0x4d25a3);_0x5d1099=[_0x296280['model'][_0x1b34('0x2')](_0x49efc6,_0x587342)],_0x3b418c==_0x5e50da&&(_0x3b418c=null);}}else for(const _0x1439c6 of _0x1dfa62[_0x1b34('0x8')]())_0x3b418c?_0x5d1099[_0x1b34('0x3')](_0x1439c6):_0x5d1099['push'](..._0x835acf(_0x1b34('0xa'),_0x1439c6,_0x296280[_0x1b34('0x18')]));_0x296280[_0x1b34('0x18')][_0x1b34('0x17')](()=>{for(const _0x232939 of _0x5d1099)_0x2a8034['markInlineFormat'](_0x232939,{'commandName':_0x1b34('0xa'),'commandParams':[{'value':_0x3b418c}]});});});const _0x3d8926=_0x296280[_0x1b34('0x1d')];_0x2a8034[_0x1b34('0x19')][_0x1b34('0x14')](_0x4bd412=>{const {type:_0x3eb8e2,data:_0x1625c6}=_0x4bd412;if(_0x1b34('0x12')==_0x3eb8e2&&_0x1625c6&&_0x1b34('0xa')==_0x1625c6[_0x1b34('0x5')]){const _0x22606c=_0x1625c6['commandParams'][0x0][_0x1b34('0xd')];if(_0x22606c){const _0x372c4d=_0x296280[_0x1b34('0x1f')][_0x1b34('0x6')](_0x1b34('0xb'))[_0x1b34('0x1e')](_0x4d61cd=>_0x4d61cd[_0x1b34('0x18')]==_0x22606c),_0x5e4e44=_0x3d8926['_t'](_0x372c4d[_0x1b34('0xc')])[_0x1b34('0x1c')]();return{'type':'format','content':_0x4ba7cc(_0x3d8926,_0x1b34('0x16'),_0x5e4e44),'color':{'value':_0x372c4d[_0x1b34('0x1b')],'title':_0x372c4d[_0x1b34('0xc')]}};}return{'type':_0x1b34('0x7'),'content':_0x4ba7cc(_0x3d8926,_0x1b34('0x15'),_0x4ba7cc(_0x3d8926,_0x1b34('0x0')))};}});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 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 _0x2e44=['div','createPositionAt','enableCommand','elementToStructure','plugins','get','has','insert','showSuggestionHighlights','addClass','HorizontalLineEditing','conversion','for','createContainerElement','TrackChangesEditing','dataDowncast','registerElementLabel'];(function(_0x4d0875,_0x2e44dd){const _0xb84f3=function(_0x128dc2){while(--_0x128dc2){_0x4d0875['push'](_0x4d0875['shift']());}};_0xb84f3(++_0x2e44dd);}(_0x2e44,0x1a7));const _0xb84f=function(_0x4d0875,_0x2e44dd){_0x4d0875=_0x4d0875-0x0;let _0xb84f3=_0x2e44[_0x4d0875];return _0xb84f3;};import{Plugin as _0x4a1a6f}from'ckeditor5/src/core';import{getTranslation as _0x3ac9e3}from'../utils/common-translations';export default class Q extends _0x4a1a6f{['afterInit'](){const _0x383516=this['editor'];if(!_0x383516['plugins'][_0xb84f('0x8')](_0xb84f('0xc')))return;_0x383516[_0xb84f('0x6')][_0xb84f('0x7')](_0xb84f('0x10'))[_0xb84f('0x4')]('horizontalLine');const _0x487128=_0x383516[_0xb84f('0x6')]['get']('TrackChangesEditing'),_0x55319d=_0x383516['locale'];_0x487128['_descriptionFactory'][_0xb84f('0x1')]('horizontalLine',_0x45feee=>_0x3ac9e3(_0x55319d,'ELEMENT_HORIZONTAL_LINE',_0x45feee)),_0x383516[_0xb84f('0xd')][_0xb84f('0xe')](_0xb84f('0x0'))[_0xb84f('0x5')]({'model':'horizontalLine','view':(_0x41ef18,{writer:_0x506b78,options:_0x36f8b7})=>{if(!_0x36f8b7[_0xb84f('0xa')])return;const _0x460bbe=_0x506b78[_0xb84f('0xf')](_0xb84f('0x2')),_0x37a149=_0x506b78['createEmptyElement']('hr');return _0x506b78[_0xb84f('0xb')]('ck-horizontal-line',_0x460bbe),_0x506b78[_0xb84f('0x9')](_0x506b78[_0xb84f('0x3')](_0x460bbe,0x0),_0x37a149),_0x460bbe;},'converterPriority':'high'});}}
23
+ const _0x3ff8=['dataDowncast','high','TrackChangesEditing','conversion','locale','insert','HorizontalLineEditing','horizontalLine','get','for','addClass','registerElementLabel','enableCommand','createContainerElement','plugins','ck-horizontal-line','editor','elementToStructure'];(function(_0x152f8f,_0x3ff8e5){const _0xfbfeb8=function(_0x155af8){while(--_0x155af8){_0x152f8f['push'](_0x152f8f['shift']());}};_0xfbfeb8(++_0x3ff8e5);}(_0x3ff8,0xbd));const _0xfbfe=function(_0x152f8f,_0x3ff8e5){_0x152f8f=_0x152f8f-0x0;let _0xfbfeb8=_0x3ff8[_0x152f8f];return _0xfbfeb8;};import{Plugin as _0x415c93}from'ckeditor5/src/core';import{getTranslation as _0x2083bf}from'../utils/common-translations';export default class V extends _0x415c93{['afterInit'](){const _0x1d185d=this[_0xfbfe('0x7')];if(!_0x1d185d[_0xfbfe('0x5')]['has'](_0xfbfe('0xf')))return;_0x1d185d['plugins'][_0xfbfe('0x11')](_0xfbfe('0xb'))[_0xfbfe('0x3')]('horizontalLine');const _0x2d946f=_0x1d185d[_0xfbfe('0x5')][_0xfbfe('0x11')](_0xfbfe('0xb')),_0x4d8ae2=_0x1d185d[_0xfbfe('0xd')];_0x2d946f['_descriptionFactory'][_0xfbfe('0x2')](_0xfbfe('0x10'),_0x1f53be=>_0x2083bf(_0x4d8ae2,'ELEMENT_HORIZONTAL_LINE',_0x1f53be)),_0x1d185d[_0xfbfe('0xc')][_0xfbfe('0x0')](_0xfbfe('0x9'))[_0xfbfe('0x8')]({'model':'horizontalLine','view':(_0x2ea039,{writer:_0x23e911,options:_0x871b5d})=>{if(!_0x871b5d['showSuggestionHighlights'])return;const _0x1c4757=_0x23e911[_0xfbfe('0x4')]('div'),_0x4da27e=_0x23e911['createEmptyElement']('hr');return _0x23e911[_0xfbfe('0x1')](_0xfbfe('0x6'),_0x1c4757),_0x23e911[_0xfbfe('0xe')](_0x23e911['createPositionAt'](_0x1c4757,0x0),_0x4da27e),_0x1c4757;},'converterPriority':_0xfbfe('0xa')});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 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 _0xbb1e=['TrackChangesEditing','getCustomProperty','get','cancel','plugins','afterInit','ELEMENT_HTML_EMBED','getSelectedElement','format','document','has','commandName','_descriptionFactory','HtmlEmbed','model','rawHtml','rawHtmlApi','value','editor','markBlockFormat','registerDescriptionCallback','selection','htmlEmbed','editing','enableCommand'];(function(_0x9ef5c5,_0xbb1e9d){const _0x11b5da=function(_0x33be98){while(--_0x33be98){_0x9ef5c5['push'](_0x9ef5c5['shift']());}};_0x11b5da(++_0xbb1e9d);}(_0xbb1e,0x8d));const _0x11b5=function(_0x9ef5c5,_0xbb1e9d){_0x9ef5c5=_0x9ef5c5-0x0;let _0x11b5da=_0xbb1e[_0x9ef5c5];return _0x11b5da;};import{Plugin as _0x1dcaa4}from'ckeditor5/src/core';import{getTranslation as _0x641534}from'../utils/common-translations';export default class V extends _0x1dcaa4{[_0x11b5('0xe')](){const _0x392687=this[_0x11b5('0x2')];if(!_0x392687[_0x11b5('0xd')][_0x11b5('0x13')](_0x11b5('0x16')))return;const _0x3500fc=_0x392687[_0x11b5('0xd')][_0x11b5('0xb')]('TrackChangesEditing'),_0xef24d0=_0x392687['locale'],_0x4a828a=_0x392687[_0x11b5('0x7')]['view'][_0x11b5('0x12')][_0x11b5('0x5')];_0x3500fc[_0x11b5('0x15')]['registerElementLabel'](_0x11b5('0x18'),_0x1886d1=>_0x641534(_0xef24d0,_0x11b5('0xf'),_0x1886d1)),_0x392687[_0x11b5('0xd')]['get'](_0x11b5('0x9'))[_0x11b5('0x8')](_0x11b5('0x6'),(_0x36c8dc,_0x544304)=>{const _0x2ca0b6=_0x392687[_0x11b5('0x17')],_0x508055=_0x2ca0b6[_0x11b5('0x12')][_0x11b5('0x5')];_0x2ca0b6['change'](()=>{const _0x36fd94=function(_0x32cce1){const _0x5f5cc=_0x32cce1[_0x11b5('0x10')]();if(_0x5f5cc&&_0x5f5cc['is']('element',_0x11b5('0x18')))return _0x32cce1['getSelectedElement']();return null;}(_0x508055);if(!_0x36fd94)return void _0x36c8dc(null);const _0x1c1b84=_0x36fd94['getAttribute'](_0x11b5('0x1'))||'';if(void 0x0===_0x544304)return;if(_0x544304===_0x1c1b84)return;_0x3500fc[_0x11b5('0x3')](_0x36fd94,{'commandName':_0x11b5('0x6'),'commandParams':[_0x544304]}),_0x4a828a['getSelectedElement']()[_0x11b5('0xa')](_0x11b5('0x0'))[_0x11b5('0xc')]();});}),_0x3500fc[_0x11b5('0x15')][_0x11b5('0x4')](_0x777015=>{const {data:_0x3f783a}=_0x777015;if(_0x3f783a&&_0x11b5('0x6')==_0x3f783a[_0x11b5('0x14')]){const _0x51906a=_0x641534(_0xef24d0,_0x11b5('0xf'));return{'type':_0x11b5('0x11'),'content':_0x641534(_0xef24d0,'*Change\x20%0\x20content*',_0x51906a)};}});}}
23
+ const _0x277d=['TrackChangesEditing','has','htmlEmbed','editing','commandName','element','registerDescriptionCallback','document','getSelectedElement','locale','HtmlEmbed','ELEMENT_HTML_EMBED','enableCommand','value','afterInit','plugins','model','_descriptionFactory','getCustomProperty','cancel','view','selection','registerElementLabel','rawHtml','get'];(function(_0x229d52,_0x277d50){const _0x3c204e=function(_0x471ff0){while(--_0x471ff0){_0x229d52['push'](_0x229d52['shift']());}};_0x3c204e(++_0x277d50);}(_0x277d,0xf5));const _0x3c20=function(_0x229d52,_0x277d50){_0x229d52=_0x229d52-0x0;let _0x3c204e=_0x277d[_0x229d52];return _0x3c204e;};import{Plugin as _0xc49ab4}from'ckeditor5/src/core';import{getTranslation as _0x3e3713}from'../utils/common-translations';export default class X extends _0xc49ab4{[_0x3c20('0x13')](){const _0x19af1=this['editor'];if(!_0x19af1['plugins'][_0x3c20('0x6')](_0x3c20('0xf')))return;const _0x5a9075=_0x19af1[_0x3c20('0x14')][_0x3c20('0x4')](_0x3c20('0x5')),_0x1c27e0=_0x19af1[_0x3c20('0xe')],_0xa7a129=_0x19af1[_0x3c20('0x8')][_0x3c20('0x0')][_0x3c20('0xc')][_0x3c20('0x1')];_0x5a9075['_descriptionFactory'][_0x3c20('0x2')](_0x3c20('0x3'),_0x183ef5=>_0x3e3713(_0x1c27e0,_0x3c20('0x10'),_0x183ef5)),_0x19af1['plugins'][_0x3c20('0x4')]('TrackChangesEditing')[_0x3c20('0x11')](_0x3c20('0x7'),(_0x492d48,_0x324be0)=>{const _0xbf2eb4=_0x19af1[_0x3c20('0x15')],_0x3451d9=_0xbf2eb4[_0x3c20('0xc')][_0x3c20('0x1')];_0xbf2eb4['change'](()=>{const _0x47b731=function(_0x55de24){const _0x72415c=_0x55de24[_0x3c20('0xd')]();if(_0x72415c&&_0x72415c['is'](_0x3c20('0xa'),'rawHtml'))return _0x55de24[_0x3c20('0xd')]();return null;}(_0x3451d9);if(!_0x47b731)return void _0x492d48(null);const _0x4943eb=_0x47b731['getAttribute'](_0x3c20('0x12'))||'';if(void 0x0===_0x324be0)return;if(_0x324be0===_0x4943eb)return;_0x5a9075['markBlockFormat'](_0x47b731,{'commandName':_0x3c20('0x7'),'commandParams':[_0x324be0]}),_0xa7a129['getSelectedElement']()[_0x3c20('0x17')]('rawHtmlApi')[_0x3c20('0x18')]();});}),_0x5a9075[_0x3c20('0x16')][_0x3c20('0xb')](_0x22cf22=>{const {data:_0x23824c}=_0x22cf22;if(_0x23824c&&_0x3c20('0x7')==_0x23824c[_0x3c20('0x9')]){const _0x5ff36c=_0x3e3713(_0x1c27e0,'ELEMENT_HTML_EMBED');return{'type':'format','content':_0x3e3713(_0x1c27e0,'*Change\x20%0\x20content*',_0x5ff36c)};}});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 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 _0x191c=['getFirstRange','*Reset\x20image\x20width*','forward','forceDefaultExecution','schema','*Remove\x20image\x20text\x20alternative*','has','newRange','commandName','value','toggleImageCaption','deletion','imageBlock','_suggestionFactory','insertion','isBefore','ImageCaptionEditing','get','editor','FORMAT_SIDE_IMAGE','from','differ','getCaptionFromImageModelElement','ImageCaptionUtils','name','findIndex','plugins','ImageStyleEditing','afterInit','backward','convertInlineImageToBlock','insertImage','newValue','selection','find','commandParams','commandReversedParams','imageStylePostApply','ImageTextAlternativeEditing','imageTextAlternative','commands','change','isBlockImage','getAttribute','createRange','toNext','type','formatInline','_findSuggestions','alt','getNearestSelectionRange','*Format:*\x20%0','ELEMENT_INLINE_IMAGE','fromPosition','locale','accept','previous','Users','ImageUploadEditing','_descriptionFactory','imageStyle','forEach','getClosestSelectedImageElement','isInlineImage','ELEMENT_IMAGE','formatBlock','markBlockFormat','markInsertion','side','discardSuggestion','subType','nodeBefore','next','shouldConvertImageType','hasAttribute','hasSuggestion','getSuggestionCallback','chain','toPrevious','end','document','convertBlockImageToInline','author','filter','getContainedElement','TrackChangesEditing','width','nodeAfter','createRangeOn','toLowerCase','join','getSuggestion','imageTypeBlock','ImageInlineEditing','getSuggestions','registerDescriptionCallback','registerPostFixer','start','imageInline','isCollapsed','refresh','registerElementLabel','Block\x20image\x20to\x20inline\x20image','isOwn','registerCustomCallback','element','markInlineFormat','model','length','format','normalizedStyles','caption','isEqual','imageStylePreApply','suggestion','removeObject','discard','enableCommand','ImageUtils','head','resizeImage','isInContent','imageTypeInline'];(function(_0x26fc8f,_0x191c70){const _0x406093=function(_0x5ef83c){while(--_0x5ef83c){_0x26fc8f['push'](_0x26fc8f['shift']());}};_0x406093(++_0x191c70);}(_0x191c,0x107));const _0x4060=function(_0x26fc8f,_0x191c70){_0x26fc8f=_0x26fc8f-0x0;let _0x406093=_0x191c[_0x26fc8f];return _0x406093;};import{Plugin as _0x2385f7}from'ckeditor5/src/core';import{LivePosition as _0xf7226c}from'ckeditor5/src/engine';import{uid as _0x488710}from'ckeditor5/src/utils';import{getTranslation as _0x4816c5}from'../utils/common-translations';export default class X extends _0x2385f7{[_0x4060('0xb')](){const _0x8df9a2=this[_0x4060('0x1')];if(!_0x8df9a2[_0x4060('0x9')][_0x4060('0x70')]('ImageEditing'))return;const _0x44b3ef=_0x8df9a2[_0x4060('0x9')][_0x4060('0x0')](_0x4060('0x44')),_0x32e5e9=_0x8df9a2[_0x4060('0x9')][_0x4060('0x0')](_0x4060('0x65')),_0x49da06={},_0x2967f5=_0x8df9a2[_0x4060('0x25')];if(_0x44b3ef[_0x4060('0x64')](_0x4060('0xe')),_0x44b3ef['_descriptionFactory'][_0x4060('0x54')](_0x4060('0x76'),_0xd81f74=>_0x4816c5(_0x2967f5,_0x4060('0x2f'),_0xd81f74)),_0x44b3ef['_descriptionFactory'][_0x4060('0x54')](_0x4060('0x51'),_0x18e9c2=>_0x4816c5(_0x2967f5,_0x4060('0x23'),_0x18e9c2)),_0x44b3ef[_0x4060('0x2a')]['registerElementLabel'](_0x4060('0x5e'),()=>_0x4816c5(_0x2967f5,'ELEMENT_CAPTION')),_0x8df9a2[_0x4060('0x9')][_0x4060('0x70')](_0x4060('0x29'))&&_0x44b3ef['enableCommand']('uploadImage'),_0x8df9a2[_0x4060('0x9')][_0x4060('0x70')]('ImageBlockEditing')&&_0x8df9a2[_0x4060('0x9')][_0x4060('0x70')](_0x4060('0x4c'))&&(_0x44b3ef[_0x4060('0x64')](_0x4060('0x69'),(_0x9a9092,_0x38fbb4)=>{const _0x320f01=_0x32e5e9['getClosestSelectedImageElement'](_0x8df9a2[_0x4060('0x5a')]['document']['selection']);_0x8df9a2[_0x4060('0x5a')][_0x4060('0x18')](()=>{_0x44b3ef[_0x4060('0x31')](_0x320f01,{'commandName':'imageTypeInline','commandParams':[_0x38fbb4]},[],_0x4060('0x40'));});}),_0x44b3ef[_0x4060('0x64')](_0x4060('0x4b'),(_0x3f4351,_0x56c362)=>{_0x8df9a2[_0x4060('0x5a')][_0x4060('0x18')](_0xe8da1f=>{let _0x8b427a=_0x32e5e9[_0x4060('0x2d')](_0x8df9a2['model'][_0x4060('0x3f')][_0x4060('0x10')]),_0x78077b=_0xe8da1f[_0x4060('0x47')](_0x8b427a);const _0x261ceb=_0xf7226c['fromPosition'](_0x78077b['start'],_0x4060('0x3d')),_0x4e7ee4=_0xf7226c[_0x4060('0x24')](_0x78077b[_0x4060('0x3e')],_0x4060('0x1c'));_0x44b3ef[_0x4060('0x6d')](()=>_0x3f4351(_0x56c362)),_0x8b427a=_0x32e5e9[_0x4060('0x2d')](_0x8df9a2[_0x4060('0x5a')][_0x4060('0x3f')]['selection']),_0x78077b=_0xe8da1f[_0x4060('0x47')](_0x8b427a);const _0x1ee7d9=_0xe8da1f[_0x4060('0x1b')](_0x261ceb,_0x4e7ee4);_0x261ceb['detach'](),_0x4e7ee4['detach'](),_0x44b3ef['markBlockFormat'](_0x8b427a,{'commandName':'imageTypeInline'},[],_0x4060('0xd')),_0x1ee7d9[_0x4060('0x50')][_0x4060('0x79')](_0x78077b[_0x4060('0x50')])&&_0x44b3ef[_0x4060('0x32')](_0xe8da1f[_0x4060('0x1b')](_0x1ee7d9[_0x4060('0x50')],_0x78077b[_0x4060('0x50')]),_0x4060('0xd')),_0x78077b[_0x4060('0x3e')]['isBefore'](_0x1ee7d9[_0x4060('0x3e')])&&_0x44b3ef['markInsertion'](_0xe8da1f['createRange'](_0x78077b[_0x4060('0x3e')],_0x1ee7d9[_0x4060('0x3e')]),_0x4060('0xd'));});}),_0x44b3ef[_0x4060('0x77')]['registerCustomCallback']('formatBlock','convertInlineImageToBlock',_0x4060('0x49'),()=>{}),_0x44b3ef[_0x4060('0x77')]['registerCustomCallback'](_0x4060('0x30'),_0x4060('0xd'),_0x4060('0x26'),()=>{}),_0x44b3ef[_0x4060('0x77')][_0x4060('0x57')](_0x4060('0x30'),_0x4060('0xd'),_0x4060('0x63'),_0x44b3ef[_0x4060('0x77')][_0x4060('0x3b')](_0x4060('0x30'),'',_0x4060('0x26'))),_0x44b3ef['_suggestionFactory']['registerCustomCallback'](_0x4060('0x78'),_0x4060('0xd'),'join',()=>{}),_0x44b3ef[_0x4060('0x77')][_0x4060('0x57')](_0x4060('0x78'),'convertInlineImageToBlock',_0x4060('0x63'),([_0x40b4a6])=>{const _0x305e64=_0x44b3ef[_0x4060('0x77')][_0x4060('0x3b')](_0x4060('0x78'),'','discard');let _0x3f86f9=_0x40b4a6[_0x4060('0x50')],_0x39cda0=_0x40b4a6[_0x4060('0x3e')];const _0x3a41a4=_0x8df9a2[_0x4060('0x5a')][_0x4060('0x6e')][_0x4060('0x21')](_0x3f86f9,_0x4060('0xc')),_0x3b3210=_0x8df9a2['model']['schema'][_0x4060('0x21')](_0x39cda0,_0x4060('0x6c'));_0x3a41a4['isCollapsed']&&(_0x3f86f9=_0x3a41a4['start']),_0x3b3210[_0x4060('0x52')]&&(_0x39cda0=_0x3b3210[_0x4060('0x3e')]),_0x305e64([_0x8df9a2[_0x4060('0x5a')][_0x4060('0x1b')](_0x3f86f9,_0x39cda0)]);}),_0x44b3ef[_0x4060('0x77')]['registerCustomCallback'](_0x4060('0x30'),_0x4060('0xd'),_0x4060('0x3c'),_0x33a5c7),_0x44b3ef[_0x4060('0x77')][_0x4060('0x57')]('insertion',_0x4060('0xd'),_0x4060('0x3c'),_0x33a5c7)),_0x8df9a2[_0x4060('0x9')][_0x4060('0x70')](_0x4060('0x7a'))&&(_0x44b3ef['enableCommand'](_0x4060('0x74'),(_0x4df2ee,_0x45ad3f)=>{const _0x2cd0da=_0x8df9a2[_0x4060('0x9')][_0x4060('0x0')](_0x4060('0x6'));let _0x342369=_0x32e5e9['getClosestSelectedImageElement'](_0x8df9a2['model'][_0x4060('0x3f')]['selection']),_0x182262=_0x2cd0da[_0x4060('0x5')](_0x342369);_0x8df9a2[_0x4060('0x5a')][_0x4060('0x18')](()=>{if(_0x182262)return void _0x44b3ef['markDeletion'](_0x8df9a2['model']['createRangeOn'](_0x182262));const _0x41a624=_0x32e5e9[_0x4060('0x19')](_0x342369);_0x4df2ee(_0x45ad3f),_0x342369=_0x32e5e9[_0x4060('0x2d')](_0x8df9a2[_0x4060('0x5a')][_0x4060('0x3f')][_0x4060('0x10')]),_0x182262=_0x2cd0da['getCaptionFromImageModelElement'](_0x342369),_0x44b3ef['markInsertion'](_0x8df9a2['model'][_0x4060('0x47')](_0x182262),_0x41a624?null:'imageCaption');});}),_0x44b3ef[_0x4060('0x77')][_0x4060('0x57')]('insertion','imageCaption',_0x4060('0x3c'),_0x33a5c7)),_0x8df9a2['plugins']['has'](_0x4060('0xa'))){_0x44b3ef[_0x4060('0x64')](_0x4060('0x2b'),(_0x1742e4,_0x4126f4)=>{const _0x1590d8=_0x8df9a2['plugins']['get'](_0x4060('0x28'))['me'],_0x44b81b=_0x8df9a2[_0x4060('0x17')][_0x4060('0x0')](_0x4060('0x2b'));let _0xefaf8e=_0x32e5e9[_0x4060('0x2d')](_0x8df9a2[_0x4060('0x5a')][_0x4060('0x3f')][_0x4060('0x10')]),_0x53bf2d=_0x8df9a2['model'][_0x4060('0x47')](_0xefaf8e),_0x22c7c5=_0x44b81b[_0x4060('0x73')];if(_0x22c7c5==_0x4126f4['value'])return;const _0x20fdd1={'commandName':_0x4060('0x2b'),'commandParams':[_0x4126f4],'formatGroupId':_0x488710()};_0x8df9a2[_0x4060('0x5a')][_0x4060('0x18')](()=>{if(_0x44b3ef[_0x4060('0x4d')]()[_0x4060('0x42')](_0x5c819f=>_0x5c819f['isInContent']&&_0x1590d8==_0x5c819f[_0x4060('0x41')]&&(_0x4060('0x30')==_0x5c819f[_0x4060('0x1d')]||_0x4060('0x1e')==_0x5c819f[_0x4060('0x1d')])&&(_0x4060('0x60')==_0x5c819f[_0x4060('0x35')]||_0x4060('0x14')==_0x5c819f[_0x4060('0x35')])&&_0x5c819f[_0x4060('0x6a')]()[_0x4060('0x5f')](_0x53bf2d))[_0x4060('0x2c')](_0x132f18=>_0x44b3ef[_0x4060('0x34')](_0x132f18[_0x4060('0x66')])),_0xefaf8e=_0x32e5e9['getClosestSelectedImageElement'](_0x8df9a2['model'][_0x4060('0x3f')][_0x4060('0x10')]),_0x53bf2d=_0x8df9a2[_0x4060('0x5a')][_0x4060('0x47')](_0xefaf8e),_0x44b81b[_0x4060('0x53')](),_0x8df9a2[_0x4060('0x17')][_0x4060('0x0')]('imageTypeInline')[_0x4060('0x53')](),_0x8df9a2['commands'][_0x4060('0x0')](_0x4060('0x4b'))[_0x4060('0x53')](),_0x22c7c5=_0x44b81b[_0x4060('0x73')],_0x22c7c5!=_0x4126f4[_0x4060('0x73')])return _0x32e5e9[_0x4060('0x2e')](_0xefaf8e)&&_0x44b81b[_0x4060('0x38')](_0x4126f4[_0x4060('0x73')],_0xefaf8e)?(_0x1742e4(_0x4126f4),_0xefaf8e=_0x32e5e9['getClosestSelectedImageElement'](_0x8df9a2[_0x4060('0x5a')][_0x4060('0x3f')][_0x4060('0x10')]),void _0x44b3ef[_0x4060('0x31')](_0xefaf8e,{..._0x20fdd1,'commandReversedParams':[{'value':_0x22c7c5||null}]},[],'imageStylePreApply')):void(_0x32e5e9[_0x4060('0x19')](_0xefaf8e)?_0x44b3ef[_0x4060('0x31')](_0xefaf8e,_0x20fdd1,[],_0x4060('0x14')):_0x44b3ef[_0x4060('0x59')](_0x53bf2d,_0x20fdd1,_0x4060('0x14')));});});for(const _0x166c75 of _0x8df9a2[_0x4060('0x9')][_0x4060('0x0')](_0x4060('0xa'))[_0x4060('0x5d')])_0x49da06[_0x166c75[_0x4060('0x7')]]=_0x166c75['title'][_0x4060('0x48')]();_0x44b3ef[_0x4060('0x77')]['registerCustomCallback']('formatBlock',_0x4060('0x60'),_0x4060('0x49'),()=>{}),_0x44b3ef[_0x4060('0x77')]['registerCustomCallback'](_0x4060('0x30'),_0x4060('0x14'),_0x4060('0x49'),()=>{}),_0x44b3ef[_0x4060('0x77')][_0x4060('0x57')](_0x4060('0x1e'),_0x4060('0x14'),_0x4060('0x49'),()=>{}),_0x44b3ef['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4060('0x60'),_0x4060('0x26'),()=>{}),_0x44b3ef[_0x4060('0x77')]['registerCustomCallback'](_0x4060('0x30'),_0x4060('0x60'),'discard',(_0x200726,_0x54b75a)=>{_0x44b3ef['_suggestionFactory'][_0x4060('0x3b')](_0x4060('0x30'),'',_0x4060('0x26'))(_0x200726,{'commandName':_0x54b75a[_0x4060('0x72')],'commandParams':_0x54b75a[_0x4060('0x13')]});}),_0x44b3ef[_0x4060('0x77')][_0x4060('0x57')](_0x4060('0x30'),_0x4060('0x60'),'chain',_0x33a5c7);}const _0x57fc18=[{'type':_0x4060('0x30'),'subType':_0x4060('0x60')},{'type':_0x4060('0x78'),'subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':_0x4060('0x78'),'subType':_0x4060('0xd')}];function _0x3c580b(_0x1896a0,_0x1e6c1f){const _0x45b0ec=_0x57fc18[_0x4060('0x8')](({type:_0x84b658,subType:_0x30243b})=>_0x1896a0['type']==_0x84b658&&_0x1896a0[_0x4060('0x35')]==_0x30243b),_0xf17fff=_0x57fc18[_0x4060('0x8')](({type:_0x5cb916,subType:_0x2e1851})=>_0x1e6c1f['type']==_0x5cb916&&_0x1e6c1f[_0x4060('0x35')]==_0x2e1851);if(_0x45b0ec<0x0||_0xf17fff<0x0)return!0x1;const _0x3eaf4a=_0x1896a0[_0x4060('0x6a')](),_0x5d4c56=_0x1e6c1f['getFirstRange']();if((0x0==_0x45b0ec||0x1==_0x45b0ec)&&0x2==_0xf17fff&&_0x3eaf4a['isIntersecting'](_0x5d4c56))return!0x0;if(0x2==_0x45b0ec&&0x3==_0xf17fff){const _0x38c630=_0x44b3ef[_0x4060('0x1f')](_0x3eaf4a,_0x4060('0x78'))['filter'](({suggestion:_0x5ddb8f,meta:_0x4febe8})=>_0x4febe8[_0x4060('0x56')]&&_0x4060('0xd')==_0x5ddb8f[_0x4060('0x35')]);if(_0x38c630['length']>0x1&&_0x5d4c56['end'][_0x4060('0x5f')](_0x3eaf4a['start']))return!0x0;if(0x1==_0x38c630[_0x4060('0x5b')]&&(_0x3eaf4a['start'][_0x4060('0x5f')](_0x5d4c56[_0x4060('0x3e')])||_0x3eaf4a[_0x4060('0x3e')][_0x4060('0x5f')](_0x5d4c56[_0x4060('0x50')])))return!0x0;}if(0x3==_0x45b0ec&&0x3==_0xf17fff&&_0x3eaf4a[_0x4060('0x50')][_0x4060('0x79')](_0x5d4c56['start'])){const _0x5d6bc9=_0x3eaf4a['end'][_0x4060('0x46')],_0x4cbeef=_0x5d4c56['start'][_0x4060('0x36')];return _0x32e5e9['isBlockImage'](_0x5d6bc9)&&_0x5d6bc9===_0x4cbeef;}return!0x1;}function _0x33a5c7(_0x54a294,_0x2d4c09){return _0x3c580b(_0x54a294,_0x2d4c09)?[_0x54a294,_0x2d4c09]:_0x3c580b(_0x2d4c09,_0x54a294)?[_0x2d4c09,_0x54a294]:null;}_0x8df9a2[_0x4060('0x5a')][_0x4060('0x3f')][_0x4060('0x4f')](()=>{let _0x4f9924=!0x1;const _0x5b3b9a=Array[_0x4060('0x3')](_0x8df9a2[_0x4060('0x5a')]['document'][_0x4060('0x4')]['getChangedMarkers']());for(const {name:_0x33a3f6,data:_0xc0e603}of _0x5b3b9a){const {group:_0x105609,type:_0x2656d0,subType:_0x6d93bc,id:_0x195706}=_0x44b3ef['_splitMarkerName'](_0x33a3f6);if(_0x4060('0x61')==_0x105609&&_0x44b3ef[_0x4060('0x3a')](_0x195706)){if('formatBlock'==_0x2656d0&&('imageStylePreApply'==_0x6d93bc||_0x4060('0x14')==_0x6d93bc)){const _0x1ffcaf=_0x44b3ef[_0x4060('0x4a')](_0x195706);if(_0xc0e603['newRange']){const _0x59b94a=_0x1ffcaf[_0x4060('0x6a')]()['getContainedElement']();if(_0x32e5e9['isBlockImage'](_0x59b94a))continue;_0x44b3ef['discardSuggestion'](_0x1ffcaf),_0x4f9924=!0x0;}}if(_0x4060('0x78')==_0x2656d0&&'imageCaption'==_0x6d93bc&&!_0xc0e603[_0x4060('0x71')]){const _0x5acc4c=_0x44b3ef[_0x4060('0x4a')](_0x195706);_0x5acc4c[_0x4060('0x37')]&&_0x5acc4c[_0x4060('0x37')][_0x4060('0x68')]&&(_0x44b3ef[_0x4060('0x34')](_0x5acc4c[_0x4060('0x37')]),_0x4f9924=!0x0);}}}return _0x4f9924;}),_0x8df9a2[_0x4060('0x9')][_0x4060('0x70')]('ImageResize')&&_0x44b3ef['enableCommand'](_0x4060('0x67'),(_0x3cdd42,_0x494ef3)=>{const _0x386100=_0x32e5e9[_0x4060('0x2d')](_0x8df9a2[_0x4060('0x5a')]['document'][_0x4060('0x10')]);_0x386100[_0x4060('0x1a')]('width')!=_0x494ef3[_0x4060('0x45')]&&_0x8df9a2[_0x4060('0x5a')][_0x4060('0x18')](()=>{_0x44b3ef[_0x4060('0x31')](_0x386100,{'commandName':_0x4060('0x67'),'commandParams':[_0x494ef3]});});}),_0x8df9a2[_0x4060('0x9')][_0x4060('0x70')](_0x4060('0x15'))&&_0x44b3ef[_0x4060('0x64')](_0x4060('0x16'),(_0x26f348,_0x52c525)=>{const _0x1d41a5=_0x32e5e9[_0x4060('0x2d')](_0x8df9a2[_0x4060('0x5a')][_0x4060('0x3f')][_0x4060('0x10')]);(_0x1d41a5[_0x4060('0x39')]('alt')?_0x1d41a5[_0x4060('0x1a')](_0x4060('0x20')):'')!=_0x52c525['newValue']&&_0x8df9a2[_0x4060('0x5a')]['change'](()=>{_0x44b3ef[_0x4060('0x31')](_0x1d41a5,{'commandName':_0x4060('0x16'),'commandParams':[_0x52c525]});});}),_0x44b3ef[_0x4060('0x2a')]['registerDescriptionCallback'](_0x41f1c3=>{if(!!_0x57fc18[_0x4060('0x11')](({type:_0x3bdd79,subType:_0x20d3d4})=>_0x41f1c3[_0x4060('0x1d')]==_0x3bdd79&&_0x41f1c3['subType']==_0x20d3d4))return _0x41f1c3[_0x4060('0x27')]?{}:void 0x0;}),_0x44b3ef[_0x4060('0x2a')][_0x4060('0x4e')](_0x37dc3c=>{if(_0x4060('0x78')==_0x37dc3c[_0x4060('0x1d')]||_0x4060('0x75')==_0x37dc3c['type']){const _0x4a59d5=_0x37dc3c[_0x4060('0x43')]();if(_0x4a59d5&&_0x4a59d5['is'](_0x4060('0x58'),_0x4060('0x5e')))return{'type':_0x4060('0x78')==_0x37dc3c[_0x4060('0x1d')]?'addObject':_0x4060('0x62'),'element':_0x4a59d5,'quantity':0x1};}}),_0x44b3ef[_0x4060('0x2a')][_0x4060('0x4e')](_0x3e00ed=>'formatBlock'==_0x3e00ed['type']&&_0x4060('0xd')==_0x3e00ed[_0x4060('0x35')]?{'type':_0x4060('0x5c'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x4060('0x30')==_0x3e00ed[_0x4060('0x1d')]&&_0x4060('0x40')==_0x3e00ed[_0x4060('0x35')]?{'type':'format','content':_0x4060('0x55')}:void 0x0),_0x44b3ef[_0x4060('0x2a')][_0x4060('0x4e')](_0x50bfcc=>{const {data:_0x232fe4}=_0x50bfcc;if(_0x232fe4){if(_0x4060('0x2b')==_0x232fe4['commandName']){const _0x23e9c1=_0x232fe4['commandParams'][0x0][_0x4060('0x73')];return _0x172b1b(_0x4060('0x33')===_0x23e9c1?_0x4816c5(_0x2967f5,_0x4060('0x2')):_0x49da06[_0x23e9c1]||_0x23e9c1);}if(_0x4060('0x16')==_0x232fe4[_0x4060('0x72')]){const _0xcd0453=_0x232fe4[_0x4060('0x12')][0x0][_0x4060('0xf')];return _0xcd0453?{'type':_0x4060('0x5c'),'content':_0x4816c5(_0x2967f5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xcd0453+'\x22')}:{'type':_0x4060('0x5c'),'content':_0x4816c5(_0x2967f5,_0x4060('0x6f'))};}if('resizeImage'==_0x232fe4['commandName']){const _0xdfb94=_0x232fe4[_0x4060('0x12')][0x0][_0x4060('0x45')];return _0xdfb94?{'type':_0x4060('0x5c'),'content':_0x4816c5(_0x2967f5,'*Set\x20image\x20width:*\x20%0',_0xdfb94)}:{'type':_0x4060('0x5c'),'content':_0x4816c5(_0x2967f5,_0x4060('0x6b'))};}}function _0x172b1b(_0x2457f8){return{'type':'format','content':_0x4816c5(_0x2967f5,_0x4060('0x22'),_0x2457f8)};}});}}
23
+ const _0x48e4=['plugins','filter','refresh','toPrevious','next','isOwn','title','subType','ImageBlockEditing','isInlineImage','afterInit','getClosestSelectedImageElement','suggestion','editor','markDeletion','TrackChangesEditing','*Remove\x20image\x20text\x20alternative*','discard','isBefore','getFirstRange','newValue','newRange','registerCustomCallback','Inline\x20image\x20to\x20block\x20image','ImageStyleEditing','resizeImage','from','getSuggestions','head','registerDescriptionCallback','has','fromPosition','isEqual','imageStylePreApply','value','Users','alt','findIndex','forceDefaultExecution','getChangedMarkers','isBlockImage','ImageTextAlternativeEditing','element','ELEMENT_CAPTION','getContainedElement','imageTypeInline','toLowerCase','createRange','getAttribute','*Reset\x20image\x20width*','getSuggestionCallback','normalizedStyles','end','createRangeOn','isInContent','ImageUtils','imageStylePostApply','width','ImageCaptionEditing','FORMAT_SIDE_IMAGE','markInlineFormat','convertBlockImageToInline','commandName','isIntersecting','type','Block\x20image\x20to\x20inline\x20image','addObject','format','find','commandReversedParams','imageStyle','accept','imageTypeBlock','markInsertion','get','ELEMENT_IMAGE','ImageUploadEditing','markBlockFormat','imageCaption','chain','commandParams','*Format:*\x20%0','schema','toNext','_suggestionFactory','isCollapsed','formatBlock','getSuggestion','start','join','discardSuggestion','previous','ImageCaptionUtils','_splitMarkerName','detach','author','formatInline','getNearestSelectionRange','registerElementLabel','registerPostFixer','backward','convertInlineImageToBlock','locale','ELEMENT_INLINE_IMAGE','enableCommand','document','insertImage','insertion','change','selection','*Set\x20image\x20text\x20alternative:*\x20%0','ImageEditing','imageTextAlternative','_descriptionFactory','length','_findSuggestions','imageBlock','model','getCaptionFromImageModelElement','imageInline','commands','forEach','caption'];(function(_0x53dd5f,_0x48e4ef){const _0x433b33=function(_0x4874f6){while(--_0x4874f6){_0x53dd5f['push'](_0x53dd5f['shift']());}};_0x433b33(++_0x48e4ef);}(_0x48e4,0x1c4));const _0x433b=function(_0x53dd5f,_0x48e4ef){_0x53dd5f=_0x53dd5f-0x0;let _0x433b33=_0x48e4[_0x53dd5f];return _0x433b33;};import{Plugin as _0x117e85}from'ckeditor5/src/core';import{LivePosition as _0x101b42}from'ckeditor5/src/engine';import{uid as _0xed9a4c}from'ckeditor5/src/utils';import{getTranslation as _0x3f13ba}from'../utils/common-translations';export default class Y extends _0x117e85{[_0x433b('0x32')](){const _0x12a1bf=this[_0x433b('0x35')];if(!_0x12a1bf['plugins'][_0x433b('0x46')](_0x433b('0x1c')))return;const _0x5b4c93=_0x12a1bf['plugins'][_0x433b('0x72')](_0x433b('0x37')),_0x55c2f1=_0x12a1bf['plugins'][_0x433b('0x72')](_0x433b('0x5f')),_0xe7ad87={},_0x17c7d6=_0x12a1bf[_0x433b('0x13')];if(_0x5b4c93[_0x433b('0x15')](_0x433b('0x17')),_0x5b4c93[_0x433b('0x1e')][_0x433b('0xf')](_0x433b('0x21'),_0x384863=>_0x3f13ba(_0x17c7d6,_0x433b('0x73'),_0x384863)),_0x5b4c93[_0x433b('0x1e')]['registerElementLabel'](_0x433b('0x24'),_0x56ca5f=>_0x3f13ba(_0x17c7d6,_0x433b('0x14'),_0x56ca5f)),_0x5b4c93[_0x433b('0x1e')][_0x433b('0xf')](_0x433b('0x27'),()=>_0x3f13ba(_0x17c7d6,_0x433b('0x53'))),_0x12a1bf[_0x433b('0x28')]['has'](_0x433b('0x74'))&&_0x5b4c93['enableCommand']('uploadImage'),_0x12a1bf[_0x433b('0x28')][_0x433b('0x46')](_0x433b('0x30'))&&_0x12a1bf[_0x433b('0x28')]['has']('ImageInlineEditing')&&(_0x5b4c93[_0x433b('0x15')](_0x433b('0x55'),(_0x1475f5,_0x1a0d0c)=>{const _0x170684=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')][_0x433b('0x1a')]);_0x12a1bf[_0x433b('0x22')][_0x433b('0x19')](()=>{_0x5b4c93[_0x433b('0x75')](_0x170684,{'commandName':_0x433b('0x55'),'commandParams':[_0x1a0d0c]},[],_0x433b('0x65'));});}),_0x5b4c93[_0x433b('0x15')](_0x433b('0x70'),(_0x1b886a,_0x1eed4a)=>{_0x12a1bf[_0x433b('0x22')]['change'](_0x9d664e=>{let _0x25a268=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')][_0x433b('0x1a')]),_0x1869d0=_0x9d664e[_0x433b('0x5d')](_0x25a268);const _0x11658f=_0x101b42[_0x433b('0x47')](_0x1869d0[_0x433b('0x5')],_0x433b('0x2b')),_0x2d96b5=_0x101b42[_0x433b('0x47')](_0x1869d0[_0x433b('0x5c')],_0x433b('0x0'));_0x5b4c93[_0x433b('0x4e')](()=>_0x1b886a(_0x1eed4a)),_0x25a268=_0x55c2f1['getClosestSelectedImageElement'](_0x12a1bf[_0x433b('0x22')]['document']['selection']),_0x1869d0=_0x9d664e[_0x433b('0x5d')](_0x25a268);const _0x57f8d2=_0x9d664e[_0x433b('0x57')](_0x11658f,_0x2d96b5);_0x11658f[_0x433b('0xb')](),_0x2d96b5[_0x433b('0xb')](),_0x5b4c93[_0x433b('0x75')](_0x25a268,{'commandName':_0x433b('0x55')},[],'convertInlineImageToBlock'),_0x57f8d2[_0x433b('0x5')]['isBefore'](_0x1869d0['start'])&&_0x5b4c93[_0x433b('0x71')](_0x9d664e[_0x433b('0x57')](_0x57f8d2[_0x433b('0x5')],_0x1869d0[_0x433b('0x5')]),_0x433b('0x12')),_0x1869d0[_0x433b('0x5c')][_0x433b('0x3a')](_0x57f8d2['end'])&&_0x5b4c93[_0x433b('0x71')](_0x9d664e[_0x433b('0x57')](_0x1869d0[_0x433b('0x5c')],_0x57f8d2['end']),_0x433b('0x12'));});}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x3'),'convertInlineImageToBlock',_0x433b('0x6'),()=>{}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x3'),_0x433b('0x12'),'accept',()=>{}),_0x5b4c93['_suggestionFactory'][_0x433b('0x3e')](_0x433b('0x3'),_0x433b('0x12'),'discard',_0x5b4c93[_0x433b('0x1')][_0x433b('0x5a')](_0x433b('0x3'),'','accept')),_0x5b4c93[_0x433b('0x1')]['registerCustomCallback'](_0x433b('0x18'),_0x433b('0x12'),'join',()=>{}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x18'),_0x433b('0x12'),_0x433b('0x39'),([_0x3b9913])=>{const _0x483c2a=_0x5b4c93['_suggestionFactory']['getSuggestionCallback'](_0x433b('0x18'),'',_0x433b('0x39'));let _0x48ec5a=_0x3b9913[_0x433b('0x5')],_0x212f33=_0x3b9913[_0x433b('0x5c')];const _0x35eab8=_0x12a1bf[_0x433b('0x22')][_0x433b('0x7a')]['getNearestSelectionRange'](_0x48ec5a,_0x433b('0x11')),_0x361a54=_0x12a1bf[_0x433b('0x22')][_0x433b('0x7a')][_0x433b('0xe')](_0x212f33,'forward');_0x35eab8['isCollapsed']&&(_0x48ec5a=_0x35eab8[_0x433b('0x5')]),_0x361a54[_0x433b('0x2')]&&(_0x212f33=_0x361a54[_0x433b('0x5c')]),_0x483c2a([_0x12a1bf[_0x433b('0x22')][_0x433b('0x57')](_0x48ec5a,_0x212f33)]);}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x3'),'convertInlineImageToBlock',_0x433b('0x77'),_0x1c91a5),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')]('insertion',_0x433b('0x12'),_0x433b('0x77'),_0x1c91a5)),_0x12a1bf[_0x433b('0x28')][_0x433b('0x46')](_0x433b('0x62'))&&(_0x5b4c93['enableCommand']('toggleImageCaption',(_0x56c1da,_0x5d717a)=>{const _0x1fcaf3=_0x12a1bf['plugins']['get'](_0x433b('0x9'));let _0x492242=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')]['document'][_0x433b('0x1a')]),_0x4f5cb0=_0x1fcaf3['getCaptionFromImageModelElement'](_0x492242);_0x12a1bf['model'][_0x433b('0x19')](()=>{if(_0x4f5cb0)return void _0x5b4c93[_0x433b('0x36')](_0x12a1bf['model'][_0x433b('0x5d')](_0x4f5cb0));const _0x30554a=_0x55c2f1['isBlockImage'](_0x492242);_0x56c1da(_0x5d717a),_0x492242=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')][_0x433b('0x1a')]),_0x4f5cb0=_0x1fcaf3[_0x433b('0x23')](_0x492242),_0x5b4c93['markInsertion'](_0x12a1bf[_0x433b('0x22')]['createRangeOn'](_0x4f5cb0),_0x30554a?null:_0x433b('0x76'));});}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x18'),'imageCaption',_0x433b('0x77'),_0x1c91a5)),_0x12a1bf[_0x433b('0x28')][_0x433b('0x46')](_0x433b('0x40'))){_0x5b4c93[_0x433b('0x15')](_0x433b('0x6e'),(_0x58c2d1,_0x486a80)=>{const _0x29f2da=_0x12a1bf[_0x433b('0x28')][_0x433b('0x72')](_0x433b('0x4b'))['me'],_0x1a9296=_0x12a1bf[_0x433b('0x25')][_0x433b('0x72')](_0x433b('0x6e'));let _0x424ed7=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')]['selection']),_0x1a0767=_0x12a1bf[_0x433b('0x22')][_0x433b('0x5d')](_0x424ed7),_0x5eed12=_0x1a9296['value'];if(_0x5eed12==_0x486a80['value'])return;const _0x5df3ab={'commandName':_0x433b('0x6e'),'commandParams':[_0x486a80],'formatGroupId':_0xed9a4c()};_0x12a1bf[_0x433b('0x22')]['change'](()=>{if(_0x5b4c93[_0x433b('0x43')]()[_0x433b('0x29')](_0xb987a7=>_0xb987a7['isInContent']&&_0x29f2da==_0xb987a7[_0x433b('0xc')]&&('formatBlock'==_0xb987a7[_0x433b('0x68')]||_0x433b('0xd')==_0xb987a7['type'])&&(_0x433b('0x49')==_0xb987a7[_0x433b('0x2f')]||_0x433b('0x60')==_0xb987a7[_0x433b('0x2f')])&&_0xb987a7['getFirstRange']()['isEqual'](_0x1a0767))[_0x433b('0x26')](_0xe4f11b=>_0x5b4c93[_0x433b('0x7')](_0xe4f11b[_0x433b('0x44')])),_0x424ed7=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')][_0x433b('0x1a')]),_0x1a0767=_0x12a1bf[_0x433b('0x22')][_0x433b('0x5d')](_0x424ed7),_0x1a9296['refresh'](),_0x12a1bf[_0x433b('0x25')][_0x433b('0x72')](_0x433b('0x55'))[_0x433b('0x2a')](),_0x12a1bf[_0x433b('0x25')][_0x433b('0x72')](_0x433b('0x70'))[_0x433b('0x2a')](),_0x5eed12=_0x1a9296[_0x433b('0x4a')],_0x5eed12!=_0x486a80['value'])return _0x55c2f1[_0x433b('0x31')](_0x424ed7)&&_0x1a9296['shouldConvertImageType'](_0x486a80[_0x433b('0x4a')],_0x424ed7)?(_0x58c2d1(_0x486a80),_0x424ed7=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')][_0x433b('0x1a')]),void _0x5b4c93[_0x433b('0x75')](_0x424ed7,{..._0x5df3ab,'commandReversedParams':[{'value':_0x5eed12||null}]},[],'imageStylePreApply')):void(_0x55c2f1[_0x433b('0x50')](_0x424ed7)?_0x5b4c93[_0x433b('0x75')](_0x424ed7,_0x5df3ab,[],_0x433b('0x60')):_0x5b4c93[_0x433b('0x64')](_0x1a0767,_0x5df3ab,_0x433b('0x60')));});});for(const _0x1123f6 of _0x12a1bf[_0x433b('0x28')]['get']('ImageStyleEditing')[_0x433b('0x5b')])_0xe7ad87[_0x1123f6['name']]=_0x1123f6[_0x433b('0x2e')][_0x433b('0x56')]();_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x3'),_0x433b('0x49'),_0x433b('0x6'),()=>{}),_0x5b4c93['_suggestionFactory'][_0x433b('0x3e')]('formatBlock','imageStylePostApply',_0x433b('0x6'),()=>{}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')]('formatInline',_0x433b('0x60'),_0x433b('0x6'),()=>{}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x3'),'imageStylePreApply',_0x433b('0x6f'),()=>{}),_0x5b4c93[_0x433b('0x1')][_0x433b('0x3e')](_0x433b('0x3'),_0x433b('0x49'),'discard',(_0x32a5c4,_0x5c7da7)=>{_0x5b4c93[_0x433b('0x1')][_0x433b('0x5a')](_0x433b('0x3'),'',_0x433b('0x6f'))(_0x32a5c4,{'commandName':_0x5c7da7[_0x433b('0x66')],'commandParams':_0x5c7da7[_0x433b('0x6d')]});}),_0x5b4c93[_0x433b('0x1')]['registerCustomCallback'](_0x433b('0x3'),_0x433b('0x49'),'chain',_0x1c91a5);}const _0x539b73=[{'type':_0x433b('0x3'),'subType':_0x433b('0x49')},{'type':_0x433b('0x18'),'subType':'imageCaption'},{'type':_0x433b('0x3'),'subType':_0x433b('0x12')},{'type':_0x433b('0x18'),'subType':_0x433b('0x12')}];function _0x20e209(_0x2a992b,_0x3bbb34){const _0x279def=_0x539b73['findIndex'](({type:_0x109e16,subType:_0x1c6838})=>_0x2a992b[_0x433b('0x68')]==_0x109e16&&_0x2a992b['subType']==_0x1c6838),_0x461250=_0x539b73[_0x433b('0x4d')](({type:_0x5b6886,subType:_0x5f0fa7})=>_0x3bbb34['type']==_0x5b6886&&_0x3bbb34['subType']==_0x5f0fa7);if(_0x279def<0x0||_0x461250<0x0)return!0x1;const _0x1ea843=_0x2a992b[_0x433b('0x3b')](),_0x5bebf4=_0x3bbb34[_0x433b('0x3b')]();if((0x0==_0x279def||0x1==_0x279def)&&0x2==_0x461250&&_0x1ea843[_0x433b('0x67')](_0x5bebf4))return!0x0;if(0x2==_0x279def&&0x3==_0x461250){const _0x5b6065=_0x5b4c93[_0x433b('0x20')](_0x1ea843,'insertion')[_0x433b('0x29')](({suggestion:_0x2cb73c,meta:_0x2f3e84})=>_0x2f3e84[_0x433b('0x2d')]&&_0x433b('0x12')==_0x2cb73c[_0x433b('0x2f')]);if(_0x5b6065[_0x433b('0x1f')]>0x1&&_0x5bebf4[_0x433b('0x5c')][_0x433b('0x48')](_0x1ea843['start']))return!0x0;if(0x1==_0x5b6065[_0x433b('0x1f')]&&(_0x1ea843[_0x433b('0x5')][_0x433b('0x48')](_0x5bebf4[_0x433b('0x5c')])||_0x1ea843[_0x433b('0x5c')][_0x433b('0x48')](_0x5bebf4[_0x433b('0x5')])))return!0x0;}if(0x3==_0x279def&&0x3==_0x461250&&_0x1ea843[_0x433b('0x5')][_0x433b('0x3a')](_0x5bebf4[_0x433b('0x5')])){const _0x54230a=_0x1ea843[_0x433b('0x5c')]['nodeAfter'],_0x367df6=_0x5bebf4[_0x433b('0x5')]['nodeBefore'];return _0x55c2f1[_0x433b('0x50')](_0x54230a)&&_0x54230a===_0x367df6;}return!0x1;}function _0x1c91a5(_0x5b110c,_0x48eadf){return _0x20e209(_0x5b110c,_0x48eadf)?[_0x5b110c,_0x48eadf]:_0x20e209(_0x48eadf,_0x5b110c)?[_0x48eadf,_0x5b110c]:null;}_0x12a1bf[_0x433b('0x22')]['document'][_0x433b('0x10')](()=>{let _0x4cd508=!0x1;const _0x32267a=Array[_0x433b('0x42')](_0x12a1bf['model'][_0x433b('0x16')]['differ'][_0x433b('0x4f')]());for(const {name:_0xd8ab7d,data:_0x2ec28a}of _0x32267a){const {group:_0x2dffe5,type:_0x26486c,subType:_0xb2131d,id:_0x175429}=_0x5b4c93[_0x433b('0xa')](_0xd8ab7d);if(_0x433b('0x34')==_0x2dffe5&&_0x5b4c93['hasSuggestion'](_0x175429)){if(_0x433b('0x3')==_0x26486c&&('imageStylePreApply'==_0xb2131d||'imageStylePostApply'==_0xb2131d)){const _0x55a143=_0x5b4c93[_0x433b('0x4')](_0x175429);if(_0x2ec28a[_0x433b('0x3d')]){const _0x54b48e=_0x55a143[_0x433b('0x3b')]()[_0x433b('0x54')]();if(_0x55c2f1[_0x433b('0x50')](_0x54b48e))continue;_0x5b4c93[_0x433b('0x7')](_0x55a143),_0x4cd508=!0x0;}}if(_0x433b('0x18')==_0x26486c&&_0x433b('0x76')==_0xb2131d&&!_0x2ec28a[_0x433b('0x3d')]){const _0x308be4=_0x5b4c93[_0x433b('0x4')](_0x175429);_0x308be4['next']&&_0x308be4[_0x433b('0x2c')][_0x433b('0x5e')]&&(_0x5b4c93['discardSuggestion'](_0x308be4[_0x433b('0x2c')]),_0x4cd508=!0x0);}}}return _0x4cd508;}),_0x12a1bf[_0x433b('0x28')]['has']('ImageResize')&&_0x5b4c93[_0x433b('0x15')](_0x433b('0x41'),(_0x319d1a,_0x16e1e0)=>{const _0x458899=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')][_0x433b('0x1a')]);_0x458899[_0x433b('0x58')](_0x433b('0x61'))!=_0x16e1e0[_0x433b('0x61')]&&_0x12a1bf[_0x433b('0x22')]['change'](()=>{_0x5b4c93[_0x433b('0x75')](_0x458899,{'commandName':'resizeImage','commandParams':[_0x16e1e0]});});}),_0x12a1bf[_0x433b('0x28')][_0x433b('0x46')](_0x433b('0x51'))&&_0x5b4c93[_0x433b('0x15')]('imageTextAlternative',(_0x46fc71,_0x19adb5)=>{const _0x1a533b=_0x55c2f1[_0x433b('0x33')](_0x12a1bf[_0x433b('0x22')][_0x433b('0x16')][_0x433b('0x1a')]);(_0x1a533b['hasAttribute']('alt')?_0x1a533b[_0x433b('0x58')](_0x433b('0x4c')):'')!=_0x19adb5[_0x433b('0x3c')]&&_0x12a1bf['model'][_0x433b('0x19')](()=>{_0x5b4c93['markBlockFormat'](_0x1a533b,{'commandName':_0x433b('0x1d'),'commandParams':[_0x19adb5]});});}),_0x5b4c93[_0x433b('0x1e')][_0x433b('0x45')](_0x276f1d=>{if(!!_0x539b73[_0x433b('0x6c')](({type:_0x1feb44,subType:_0x11ec94})=>_0x276f1d['type']==_0x1feb44&&_0x276f1d[_0x433b('0x2f')]==_0x11ec94))return _0x276f1d[_0x433b('0x8')]?{}:void 0x0;}),_0x5b4c93[_0x433b('0x1e')][_0x433b('0x45')](_0x3fea2d=>{if(_0x433b('0x18')==_0x3fea2d['type']||'deletion'==_0x3fea2d[_0x433b('0x68')]){const _0x617fe5=_0x3fea2d['getContainedElement']();if(_0x617fe5&&_0x617fe5['is'](_0x433b('0x52'),_0x433b('0x27')))return{'type':_0x433b('0x18')==_0x3fea2d[_0x433b('0x68')]?_0x433b('0x6a'):'removeObject','element':_0x617fe5,'quantity':0x1};}}),_0x5b4c93['_descriptionFactory'][_0x433b('0x45')](_0x29d310=>_0x433b('0x3')==_0x29d310['type']&&_0x433b('0x12')==_0x29d310['subType']?{'type':_0x433b('0x6b'),'content':_0x433b('0x3f')}:_0x433b('0x3')==_0x29d310['type']&&_0x433b('0x65')==_0x29d310['subType']?{'type':_0x433b('0x6b'),'content':_0x433b('0x69')}:void 0x0),_0x5b4c93[_0x433b('0x1e')]['registerDescriptionCallback'](_0x37c8a2=>{const {data:_0x3bd5cd}=_0x37c8a2;if(_0x3bd5cd){if('imageStyle'==_0x3bd5cd[_0x433b('0x66')]){const _0x750add=_0x3bd5cd[_0x433b('0x78')][0x0][_0x433b('0x4a')];return _0xb17248('side'===_0x750add?_0x3f13ba(_0x17c7d6,_0x433b('0x63')):_0xe7ad87[_0x750add]||_0x750add);}if('imageTextAlternative'==_0x3bd5cd[_0x433b('0x66')]){const _0x1e59c5=_0x3bd5cd['commandParams'][0x0][_0x433b('0x3c')];return _0x1e59c5?{'type':_0x433b('0x6b'),'content':_0x3f13ba(_0x17c7d6,_0x433b('0x1b'),'\x22'+_0x1e59c5+'\x22')}:{'type':'format','content':_0x3f13ba(_0x17c7d6,_0x433b('0x38'))};}if(_0x433b('0x41')==_0x3bd5cd[_0x433b('0x66')]){const _0x5e5252=_0x3bd5cd[_0x433b('0x78')][0x0][_0x433b('0x61')];return _0x5e5252?{'type':_0x433b('0x6b'),'content':_0x3f13ba(_0x17c7d6,'*Set\x20image\x20width:*\x20%0',_0x5e5252)}:{'type':_0x433b('0x6b'),'content':_0x3f13ba(_0x17c7d6,_0x433b('0x59'))};}}function _0xb17248(_0x228e6d){return{'type':_0x433b('0x6b'),'content':_0x3f13ba(_0x17c7d6,_0x433b('0x79'),_0x228e6d)};}});}}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x295f=['discard','getSuggestionCallback','handleReplaceImageCommand','format','plugins','commandName','change','author','getSelectedElement','ImageEditing','getSuggestions','TrackChangesEditing','locale','*Format:*\x20replace\x20image\x20URL','data','_descriptionFactory','markBlockFormat','handleSuggestionDescription','accept','_suggestionFactory','editor','document','model','selection','get','getAttribute','formatBlock','commandParams','source','replaceImageSource','enableCommand','getContainedElement','registerCustomCallback','has'];(function(_0x1e1212,_0x295fbb){const _0x39c4ff=function(_0x37401f){while(--_0x37401f){_0x1e1212['push'](_0x1e1212['shift']());}};_0x39c4ff(++_0x295fbb);}(_0x295f,0xe2));const _0x39c4=function(_0x1e1212,_0x295fbb){_0x1e1212=_0x1e1212-0x0;let _0x39c4ff=_0x295f[_0x1e1212];return _0x39c4ff;};import{Plugin as _0x18468b}from'ckeditor5/src/core';import{getTranslation as _0x659850}from'../utils/common-translations';export default class Z extends _0x18468b{['afterInit'](){if(!this[_0x39c4('0x20')]['plugins'][_0x39c4('0xb')](_0x39c4('0x15')))return;const _0x423c31=this[_0x39c4('0x20')][_0x39c4('0x10')][_0x39c4('0x2')]('TrackChangesEditing');_0x423c31[_0x39c4('0x8')](_0x39c4('0x7'),(_0x51d62d,_0x9ac45b)=>this[_0x39c4('0xe')](_0x51d62d,_0x9ac45b)),_0x423c31[_0x39c4('0x1f')][_0x39c4('0xa')](_0x39c4('0x4'),_0x39c4('0x7'),_0x39c4('0x1e'),_0x423c31['_suggestionFactory'][_0x39c4('0xd')](_0x39c4('0x4'),null,_0x39c4('0xc'))),_0x423c31[_0x39c4('0x1f')][_0x39c4('0xa')](_0x39c4('0x4'),_0x39c4('0x7'),_0x39c4('0xc'),_0x423c31[_0x39c4('0x1f')][_0x39c4('0xd')](_0x39c4('0x4'),null,_0x39c4('0x1e'))),_0x423c31[_0x39c4('0x1b')]['registerDescriptionCallback'](_0x47b1e0=>this[_0x39c4('0x1d')](_0x47b1e0));}[_0x39c4('0xe')](_0x37296c,_0x1be1c3){const _0x212d5d=this['editor'][_0x39c4('0x10')][_0x39c4('0x2')](_0x39c4('0x17')),_0x2e9b9b=this[_0x39c4('0x20')][_0x39c4('0x0')][_0x39c4('0x21')][_0x39c4('0x1')][_0x39c4('0x14')]();this[_0x39c4('0x20')][_0x39c4('0x0')][_0x39c4('0x12')](()=>{let _0x37d676=_0x2e9b9b[_0x39c4('0x3')]('src');const _0x4e1261=this[_0x39c4('0x20')]['plugins'][_0x39c4('0x2')]('Users')['me'];for(const _0x375438 of _0x212d5d[_0x39c4('0x16')]({'skipNotAttached':!0x0})){const _0x26e485=_0x375438[_0x39c4('0x9')]();if(_0x39c4('0x7')===_0x375438['subType']&&_0x26e485===_0x2e9b9b){_0x375438[_0x39c4('0x13')]!==_0x4e1261&&_0x375438[_0x39c4('0xc')](),_0x37d676=_0x375438[_0x39c4('0x1a')][_0x39c4('0x5')][0x0][_0x39c4('0x6')];break;}}_0x37296c(_0x1be1c3),_0x212d5d[_0x39c4('0x1c')](_0x2e9b9b,{'commandName':_0x39c4('0x7'),'commandParams':[{'source':_0x37d676}]},[],_0x39c4('0x7'));});}[_0x39c4('0x1d')](_0x216797){const {data:_0x3390bd}=_0x216797;if(_0x3390bd&&_0x39c4('0x7')===_0x3390bd[_0x39c4('0x11')]){const _0x113e23=_0x39c4('0x19');return{'type':_0x39c4('0xf'),'content':_0x659850(this[_0x39c4('0x20')][_0x39c4('0x18')],_0x113e23)};}}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 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 _0x1e7f=['_handleImportedData','value','TrackChangesEditing','importWord','high','_trackChangesValueDuringImport','editor','execute','enableCommand','_trackChangesExecuted','plugins','bind','forEach','dataInsert','afterInit','get','lowest','_setSuggestionData','listenTo','commands','trackChanges'];(function(_0x1a8101,_0x1e7f2f){const _0x545c5a=function(_0x1366a0){while(--_0x1366a0){_0x1a8101['push'](_0x1a8101['shift']());}};_0x545c5a(++_0x1e7f2f);}(_0x1e7f,0xd3));const _0x545c=function(_0x1a8101,_0x1e7f2f){_0x1a8101=_0x1a8101-0x0;let _0x545c5a=_0x1e7f[_0x1a8101];return _0x545c5a;};import{Plugin as _0x549835}from'ckeditor5/src/core';import _0x3719a0 from'../trackchangesediting';export default class Y extends _0x549835{constructor(_0x1f3012){super(_0x1f3012),this[_0x545c('0x4')]=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x545c('0xd')](){const _0xcf4aaf=this[_0x545c('0x5')],_0xc2fabc=_0xcf4aaf['commands']['get'](_0x545c('0x2')),_0x14a8f9=_0xcf4aaf[_0x545c('0x12')][_0x545c('0xe')]('trackChanges');_0xc2fabc&&(_0xc2fabc['on'](_0x545c('0x6'),(_0x4cf92d,[,_0x206542])=>{this['_trackChangesValueDuringImport']=_0x14a8f9[_0x545c('0x0')],_0x206542['collaboration_features']['track_changes']=!this[_0x545c('0x4')];},{'priority':_0x545c('0x3')}),this[_0x545c('0x11')](_0xc2fabc,_0x545c('0xc'),this['_handleImportedData'][_0x545c('0xa')](this)),this['listenTo'](_0xc2fabc,_0x545c('0xc'),()=>{this['_trackChangesExecuted']&&(_0x14a8f9[_0x545c('0x6')](),this[_0x545c('0x8')]=!0x1);},{'priority':_0x545c('0xf')}),_0xcf4aaf[_0x545c('0x9')][_0x545c('0xe')](_0x545c('0x1'))[_0x545c('0x7')](_0x545c('0x2')));}[_0x545c('0x14')](_0xae8537,_0x2e23be){const {suggestions:_0x1e6ab2}=_0x2e23be,_0x2d96eb=this[_0x545c('0x5')][_0x545c('0x12')]['get'](_0x545c('0x13')),_0x1df447=_0x2d96eb[_0x545c('0x0')];this[_0x545c('0x4')]!==_0x1df447&&(_0x2d96eb[_0x545c('0x6')](),this[_0x545c('0x8')]=!0x0),_0x1e6ab2&&_0x1e6ab2[_0x545c('0xb')](({id:_0xbf0db1,type:_0x57fdc6,author:_0x382271,created_at:_0xf3a00c})=>{const _0x2d2f40={'id':_0xbf0db1,'type':_0x57fdc6,'authorId':this[_0x545c('0x5')][_0x545c('0x9')][_0x545c('0xe')]('Users')['me']['id'],'createdAt':new Date(),'data':{},'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x382271,'createdAt':_0xf3a00c?new Date(_0xf3a00c):new Date(),'source':'importWord'}}};this['editor']['plugins'][_0x545c('0xe')](_0x3719a0)[_0x545c('0x10')](_0x2d2f40);});}}
23
+ const _0x5055=['value','dataInsert','enableCommand','trackChanges','lowest','TrackChangesEditing','plugins','track_changes','_handleImportedData','_trackChangesExecuted','high','get','Users','listenTo','collaboration_features','_trackChangesValueDuringImport','importWord','execute','forEach','afterInit','editor','commands','_setSuggestionData','bind'];(function(_0x15229d,_0x505505){const _0x5f1435=function(_0x226b35){while(--_0x226b35){_0x15229d['push'](_0x15229d['shift']());}};_0x5f1435(++_0x505505);}(_0x5055,0xbc));const _0x5f14=function(_0x15229d,_0x505505){_0x15229d=_0x15229d-0x0;let _0x5f1435=_0x5055[_0x15229d];return _0x5f1435;};import{Plugin as _0x202824}from'ckeditor5/src/core';import _0x380b91 from'../trackchangesediting';export default class tt extends _0x202824{constructor(_0x120b92){super(_0x120b92),this[_0x5f14('0x13')]=!0x1,this[_0x5f14('0xd')]=!0x1;}[_0x5f14('0x17')](){const _0x1c3831=this[_0x5f14('0x0')],_0x52e7a2=_0x1c3831[_0x5f14('0x1')][_0x5f14('0xf')](_0x5f14('0x14')),_0x22c04e=_0x1c3831[_0x5f14('0x1')]['get']('trackChanges');_0x52e7a2&&(_0x52e7a2['on'](_0x5f14('0x15'),(_0x25e255,[,_0xfd7451])=>{this[_0x5f14('0x13')]=_0x22c04e[_0x5f14('0x4')],_0xfd7451[_0x5f14('0x12')][_0x5f14('0xb')]=!this[_0x5f14('0x13')];},{'priority':_0x5f14('0xe')}),this[_0x5f14('0x11')](_0x52e7a2,_0x5f14('0x5'),this[_0x5f14('0xc')][_0x5f14('0x3')](this)),this[_0x5f14('0x11')](_0x52e7a2,_0x5f14('0x5'),()=>{this[_0x5f14('0xd')]&&(_0x22c04e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':_0x5f14('0x8')}),_0x1c3831[_0x5f14('0xa')][_0x5f14('0xf')](_0x5f14('0x9'))[_0x5f14('0x6')](_0x5f14('0x14')));}[_0x5f14('0xc')](_0x2e4096,_0x59c0bf){const {suggestions:_0xc9c902}=_0x59c0bf,_0x353d70=this['editor'][_0x5f14('0x1')][_0x5f14('0xf')](_0x5f14('0x7')),_0x2b1e07=_0x353d70[_0x5f14('0x4')];this[_0x5f14('0x13')]!==_0x2b1e07&&(_0x353d70['execute'](),this['_trackChangesExecuted']=!0x0),_0xc9c902&&_0xc9c902[_0x5f14('0x16')](({id:_0x3b2720,type:_0x117bb6,author:_0x18d44b,created_at:_0x5483bc})=>{const _0x2fcc7f={'id':_0x3b2720,'type':_0x117bb6,'authorId':this[_0x5f14('0x0')]['plugins']['get'](_0x5f14('0x10'))['me']['id'],'createdAt':new Date(),'data':{},'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x18d44b,'createdAt':_0x5483bc?new Date(_0x5483bc):new Date(),'source':'importWord'}}};this['editor'][_0x5f14('0xa')][_0x5f14('0xf')](_0x380b91)[_0x5f14('0x2')](_0x2fcc7f);});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 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 _0x510d=['from','afterInit','outdent','filter','get','_descriptionFactory','blockIndent','getItems','getItemLabel','enableCommand','getSelectedBlocks','*Outdent:*\x20%0','registerDescriptionCallback','editor','selection','format','checkAttribute','document','model','*Indent:*\x20%0','indent','plugins','IndentBlock','outdentBlock','change','has','schema','commandName','indentBlock','IndentEditing'];(function(_0x1f5d77,_0x510d21){const _0x207177=function(_0x4b83f6){while(--_0x4b83f6){_0x1f5d77['push'](_0x1f5d77['shift']());}};_0x207177(++_0x510d21);}(_0x510d,0xe7));const _0x2071=function(_0x1f5d77,_0x510d21){_0x1f5d77=_0x1f5d77-0x0;let _0x207177=_0x510d[_0x1f5d77];return _0x207177;};import{Plugin as _0x17ca07}from'ckeditor5/src/core';import{getTranslation as _0x27050b}from'../utils/common-translations';export default class Z extends _0x17ca07{[_0x2071('0xa')](){const _0x19f872=this[_0x2071('0x16')],_0x17813c=_0x19f872[_0x2071('0x0')][_0x2071('0xd')]('TrackChangesEditing');_0x19f872[_0x2071('0x0')][_0x2071('0x4')](_0x2071('0x8'))&&(_0x17813c[_0x2071('0x12')](_0x2071('0x1d')),_0x17813c[_0x2071('0x12')](_0x2071('0xb')));const _0x3f6947=_0x19f872['locale'];if(_0x19f872['plugins'][_0x2071('0x4')](_0x2071('0x1'))){for(const _0x4465c8 of['indentBlock',_0x2071('0x2')])_0x17813c[_0x2071('0x12')](_0x4465c8,()=>{const _0x2f4728=Array[_0x2071('0x9')](this[_0x2071('0x16')][_0x2071('0x1b')][_0x2071('0x1a')][_0x2071('0x17')][_0x2071('0x13')]())[_0x2071('0xc')](_0x13b7fa=>this[_0x2071('0x16')][_0x2071('0x1b')][_0x2071('0x5')][_0x2071('0x19')](_0x13b7fa,_0x2071('0xf')));_0x19f872[_0x2071('0x1b')][_0x2071('0x3')](()=>{for(const _0x9f1a0c of _0x2f4728)_0x17813c['markBlockFormat'](_0x9f1a0c,{'commandName':_0x4465c8,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x17813c[_0x2071('0xe')][_0x2071('0x15')](_0x127c04=>{const {data:_0x265f1b}=_0x127c04;if(!_0x265f1b)return;if(_0x2071('0x7')!=_0x265f1b[_0x2071('0x6')]&&'outdentBlock'!=_0x265f1b[_0x2071('0x6')])return;const _0x4a5cd1=_0x127c04[_0x2071('0x10')]()[0x0],_0x7c9a54=_0x17813c[_0x2071('0xe')][_0x2071('0x11')](_0x4a5cd1);return _0x2071('0x7')==_0x265f1b[_0x2071('0x6')]?{'type':_0x2071('0x18'),'content':_0x27050b(_0x3f6947,_0x2071('0x1c'),_0x7c9a54)}:'outdentBlock'==_0x265f1b[_0x2071('0x6')]?{'type':_0x2071('0x18'),'content':_0x27050b(_0x3f6947,_0x2071('0x14'),_0x7c9a54)}:void 0x0;});}}}
23
+ const _0x220d=['model','*Outdent:*\x20%0','editor','_descriptionFactory','getSelectedBlocks','has','schema','outdentBlock','markBlockFormat','*Indent:*\x20%0','change','document','IndentBlock','get','enableCommand','filter','afterInit','getItems','registerDescriptionCallback','blockIndent','TrackChangesEditing','from','locale','indentBlock','checkAttribute','IndentEditing','getItemLabel','indent','plugins','commandName'];(function(_0x1633cc,_0x220d9d){const _0x3c5922=function(_0x4daa79){while(--_0x4daa79){_0x1633cc['push'](_0x1633cc['shift']());}};_0x3c5922(++_0x220d9d);}(_0x220d,0xc1));const _0x3c59=function(_0x1633cc,_0x220d9d){_0x1633cc=_0x1633cc-0x0;let _0x3c5922=_0x220d[_0x1633cc];return _0x3c5922;};import{Plugin as _0x24047a}from'ckeditor5/src/core';import{getTranslation as _0x349a47}from'../utils/common-translations';export default class it extends _0x24047a{[_0x3c59('0x3')](){const _0x2af14f=this[_0x3c59('0x13')],_0x1ed55d=_0x2af14f[_0x3c59('0xf')][_0x3c59('0x0')](_0x3c59('0x7'));_0x2af14f[_0x3c59('0xf')]['has'](_0x3c59('0xc'))&&(_0x1ed55d[_0x3c59('0x1')](_0x3c59('0xe')),_0x1ed55d[_0x3c59('0x1')]('outdent'));const _0x3684b8=_0x2af14f[_0x3c59('0x9')];if(_0x2af14f[_0x3c59('0xf')][_0x3c59('0x16')](_0x3c59('0x1d'))){for(const _0xf6c4e4 of[_0x3c59('0xa'),_0x3c59('0x18')])_0x1ed55d['enableCommand'](_0xf6c4e4,()=>{const _0x60f782=Array[_0x3c59('0x8')](this[_0x3c59('0x13')][_0x3c59('0x11')][_0x3c59('0x1c')]['selection'][_0x3c59('0x15')]())[_0x3c59('0x2')](_0x107c34=>this['editor'][_0x3c59('0x11')][_0x3c59('0x17')][_0x3c59('0xb')](_0x107c34,_0x3c59('0x6')));_0x2af14f[_0x3c59('0x11')][_0x3c59('0x1b')](()=>{for(const _0x17f1ca of _0x60f782)_0x1ed55d[_0x3c59('0x19')](_0x17f1ca,{'commandName':_0xf6c4e4,'commandParams':[{'value':''}],'formatGroupId':_0x3c59('0xa')});});});_0x1ed55d[_0x3c59('0x14')][_0x3c59('0x5')](_0x5c47e1=>{const {data:_0x267f17}=_0x5c47e1;if(!_0x267f17)return;if(_0x3c59('0xa')!=_0x267f17['commandName']&&_0x3c59('0x18')!=_0x267f17[_0x3c59('0x10')])return;const _0x44f782=_0x5c47e1[_0x3c59('0x4')]()[0x0],_0x3de217=_0x1ed55d[_0x3c59('0x14')][_0x3c59('0xd')](_0x44f782);return _0x3c59('0xa')==_0x267f17[_0x3c59('0x10')]?{'type':'format','content':_0x349a47(_0x3684b8,_0x3c59('0x1a'),_0x3de217)}:_0x3c59('0x18')==_0x267f17[_0x3c59('0x10')]?{'type':'format','content':_0x349a47(_0x3684b8,_0x3c59('0x12'),_0x3de217)}:void 0x0;});}}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 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 _0x5751=['TrackChangesEditing','requires','get','input','enableCommand','plugins'];(function(_0xf770e3,_0x5751a3){var _0x1715c4=function(_0x3ad88f){while(--_0x3ad88f){_0xf770e3['push'](_0xf770e3['shift']());}};_0x1715c4(++_0x5751a3);}(_0x5751,0xa4));var _0x1715=function(_0xf770e3,_0x5751a3){_0xf770e3=_0xf770e3-0x0;var _0x1715c4=_0x5751[_0xf770e3];return _0x1715c4;};import{Plugin as _0xaa715e}from'ckeditor5/src/core';import{Input as _0xb34bf5}from'ckeditor5/src/typing';export default class tt extends _0xaa715e{static get[_0x1715('0x5')](){return[_0xb34bf5];}['init'](){this['editor'][_0x1715('0x3')][_0x1715('0x0')](_0x1715('0x4'))[_0x1715('0x2')](_0x1715('0x1'));}}
23
+ var _0x7dad=['editor','init','TrackChangesEditing','input','get','requires'];(function(_0x572c04,_0x7dade){var _0x5d2485=function(_0x32fca5){while(--_0x32fca5){_0x572c04['push'](_0x572c04['shift']());}};_0x5d2485(++_0x7dade);}(_0x7dad,0x1d2));var _0x5d24=function(_0x572c04,_0x7dade){_0x572c04=_0x572c04-0x0;var _0x5d2485=_0x7dad[_0x572c04];return _0x5d2485;};import{Plugin as _0x293ef2}from'ckeditor5/src/core';import{Input as _0x34f019}from'ckeditor5/src/typing';export default class st extends _0x293ef2{static get[_0x5d24('0x1')](){return[_0x34f019];}[_0x5d24('0x3')](){this[_0x5d24('0x2')]['plugins'][_0x5d24('0x0')](_0x5d24('0x4'))['enableCommand'](_0x5d24('0x5'));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 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 _0x3b48=['editor','locale','isCollapsed','linkHref','getAttribute','*Set\x20link:*\x20%0','from','TrackChangesEditing','getFirstRange','commandName','hasAttribute','selection','markInlineFormat','_descriptionFactory','link','model','plugins','registerDescriptionCallback','has','enableCommand','get','format','unlink','commandParams','LinkEditing','change','getRanges','document','getFirstPosition'];(function(_0x22244a,_0x3b4894){const _0x2075e6=function(_0x2c46de){while(--_0x2c46de){_0x22244a['push'](_0x22244a['shift']());}};_0x2075e6(++_0x3b4894);}(_0x3b48,0xf3));const _0x2075=function(_0x22244a,_0x3b4894){_0x22244a=_0x22244a-0x0;let _0x2075e6=_0x3b48[_0x22244a];return _0x2075e6;};import{Plugin as _0x2dfd4f}from'ckeditor5/src/core';import{findAttributeRange as _0x3f861b}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x2633d0}from'./utils';import{getTranslation as _0x1da643}from'../utils/common-translations';export default class it extends _0x2dfd4f{['afterInit'](){const _0x2c3f83=this[_0x2075('0x12')];if(!_0x2c3f83[_0x2075('0x5')][_0x2075('0x7')](_0x2075('0xd')))return;const _0x4371b6=_0x2c3f83[_0x2075('0x5')][_0x2075('0x9')](_0x2075('0x19'));_0x4371b6['enableCommand'](_0x2075('0x3'),(_0x5eff61,_0x4173f9)=>{const _0x526eac=_0x2c3f83['model'][_0x2075('0x10')][_0x2075('0x0')];let _0x3f6bc4=[];if(_0x526eac['isCollapsed']){if(!_0x526eac[_0x2075('0x1c')](_0x2075('0x15')))return void _0x5eff61(_0x4173f9);{const _0x4baf30=_0x3f861b(_0x526eac['getFirstPosition'](),_0x2075('0x15'),_0x526eac[_0x2075('0x16')](_0x2075('0x15')),_0x2c3f83[_0x2075('0x4')]);_0x3f6bc4=[_0x4baf30];}}else _0x3f6bc4=Array[_0x2075('0x18')](_0x526eac[_0x2075('0xf')]());_0x2c3f83[_0x2075('0x4')]['change'](()=>{for(const _0x525b13 of _0x3f6bc4)_0x4371b6[_0x2075('0x1')](_0x525b13,{'commandName':_0x2075('0x3'),'commandParams':[_0x4173f9]});});}),_0x4371b6[_0x2075('0x8')](_0x2075('0xb'),()=>{const _0xf66cd6=this[_0x2075('0x12')]['model'],_0x456048=_0xf66cd6[_0x2075('0x10')][_0x2075('0x0')];_0xf66cd6[_0x2075('0xe')](()=>{let _0x181ae2=[];if(_0x456048[_0x2075('0x14')])_0x181ae2=[_0x3f861b(_0x456048[_0x2075('0x11')](),_0x2075('0x15'),_0x456048['getAttribute'](_0x2075('0x15')),_0x2c3f83[_0x2075('0x4')])];else _0x181ae2=_0x2633d0(_0x2075('0x15'),_0x456048[_0x2075('0x1a')](),_0x2c3f83[_0x2075('0x4')]);for(const _0x55d27f of _0x181ae2)_0x4371b6[_0x2075('0x1')](_0x55d27f,{'commandName':_0x2075('0xb'),'commandParams':[]});});}),_0x4371b6[_0x2075('0x2')][_0x2075('0x6')](_0x5916be=>{const {data:_0x2b24dd}=_0x5916be,_0x4d91e0=_0x2c3f83[_0x2075('0x13')];if(_0x2b24dd){if('link'==_0x2b24dd[_0x2075('0x1b')]){const _0x5ad27e=_0x2b24dd[_0x2075('0xc')][0x0];return{'type':'format','content':_0x1da643(_0x4d91e0,_0x2075('0x17'),'\x22'+_0x5ad27e+'\x22')};}return _0x2075('0xb')==_0x2b24dd['commandName']?{'type':_0x2075('0xa'),'content':_0x1da643(_0x4d91e0,'*Remove\x20link*')}:void 0x0;}});}}
23
+ const _0xa2a4=['format','enableCommand','markInlineFormat','has','editor','*Set\x20link:*\x20%0','commandName','document','getFirstPosition','locale','linkHref','get','getFirstRange','plugins','model','link','getRanges','*Remove\x20link*','commandParams','getAttribute','from','TrackChangesEditing','LinkEditing','change','hasAttribute'];(function(_0x3e2c7b,_0xa2a49){const _0x2692da=function(_0x24327d){while(--_0x24327d){_0x3e2c7b['push'](_0x3e2c7b['shift']());}};_0x2692da(++_0xa2a49);}(_0xa2a4,0x169));const _0x2692=function(_0x3e2c7b,_0xa2a49){_0x3e2c7b=_0x3e2c7b-0x0;let _0x2692da=_0xa2a4[_0x3e2c7b];return _0x2692da;};import{Plugin as _0x4987b3}from'ckeditor5/src/core';import{findAttributeRange as _0x3f5570}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x57dce5}from'./utils';import{getTranslation as _0x4fc2a7}from'../utils/common-translations';export default class et extends _0x4987b3{['afterInit'](){const _0x1ac641=this[_0x2692('0x12')];if(!_0x1ac641[_0x2692('0x2')][_0x2692('0x11')](_0x2692('0xb')))return;const _0x15b227=_0x1ac641[_0x2692('0x2')][_0x2692('0x0')](_0x2692('0xa'));_0x15b227[_0x2692('0xf')](_0x2692('0x4'),(_0x18a9fe,_0x19678b)=>{const _0x3e41e8=_0x1ac641['model']['document']['selection'];let _0x134f28=[];if(_0x3e41e8['isCollapsed']){if(!_0x3e41e8[_0x2692('0xd')](_0x2692('0x18')))return void _0x18a9fe(_0x19678b);{const _0x2e7237=_0x3f5570(_0x3e41e8[_0x2692('0x16')](),_0x2692('0x18'),_0x3e41e8[_0x2692('0x8')](_0x2692('0x18')),_0x1ac641[_0x2692('0x3')]);_0x134f28=[_0x2e7237];}}else _0x134f28=Array[_0x2692('0x9')](_0x3e41e8[_0x2692('0x5')]());_0x1ac641['model'][_0x2692('0xc')](()=>{for(const _0x29605a of _0x134f28)_0x15b227[_0x2692('0x10')](_0x29605a,{'commandName':_0x2692('0x4'),'commandParams':[_0x19678b]});});}),_0x15b227[_0x2692('0xf')]('unlink',()=>{const _0x87c959=this[_0x2692('0x12')][_0x2692('0x3')],_0x4c859a=_0x87c959[_0x2692('0x15')]['selection'];_0x87c959[_0x2692('0xc')](()=>{let _0x364d8f=[];if(_0x4c859a['isCollapsed'])_0x364d8f=[_0x3f5570(_0x4c859a[_0x2692('0x16')](),_0x2692('0x18'),_0x4c859a[_0x2692('0x8')](_0x2692('0x18')),_0x1ac641[_0x2692('0x3')])];else _0x364d8f=_0x57dce5(_0x2692('0x18'),_0x4c859a[_0x2692('0x1')](),_0x1ac641[_0x2692('0x3')]);for(const _0x380bf9 of _0x364d8f)_0x15b227[_0x2692('0x10')](_0x380bf9,{'commandName':'unlink','commandParams':[]});});}),_0x15b227['_descriptionFactory']['registerDescriptionCallback'](_0x44a0dc=>{const {data:_0x4341f8}=_0x44a0dc,_0x15f55d=_0x1ac641[_0x2692('0x17')];if(_0x4341f8){if(_0x2692('0x4')==_0x4341f8[_0x2692('0x14')]){const _0x15ab1b=_0x4341f8[_0x2692('0x7')][0x0];return{'type':_0x2692('0xe'),'content':_0x4fc2a7(_0x15f55d,_0x2692('0x13'),'\x22'+_0x15ab1b+'\x22')};}return'unlink'==_0x4341f8[_0x2692('0x14')]?{'type':_0x2692('0xe'),'content':_0x4fc2a7(_0x15f55d,_0x2692('0x6'))}:void 0x0;}});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 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 _0xfdea=['createPositionAt','getAttribute','registerElementLabel','indentList','numberedList','ELEMENT_NUMBERED_LIST','todoList','checkChild','afterInit','createRange','listIndent','previousSibling','numbered','bulletedList','end','*Uncheck\x20item*','listItem','List','has','length','filter','get','_descriptionFactory','markBlockFormat','commands','paragraph','value','plugins','ListEditing','before','TodoListEditing','*Change\x20to:*\x20%0','enableCommand','format','todoListChecked','blockName','findIndex','name','push','selection','from','TrackChangesEditing','execute','checkTodoList','element','change','outdentList','document','isObject','slice','commandName','todo','add','ELEMENT_LIST_ITEM','replace','editor','getSelectedBlocks','bulleted','*Outdent:*\x20%0','schema','registerDescriptionCallback','model','nextSibling'];(function(_0x5677e5,_0xfdea83){const _0x24d0fe=function(_0x4bafae){while(--_0x4bafae){_0x5677e5['push'](_0x5677e5['shift']());}};_0x24d0fe(++_0xfdea83);}(_0xfdea,0x1cf));const _0x24d0=function(_0x5677e5,_0xfdea83){_0x5677e5=_0x5677e5-0x0;let _0x24d0fe=_0xfdea[_0x5677e5];return _0x24d0fe;};import{Plugin as _0x3904b7}from'ckeditor5/src/core';import{getTranslation as _0x406e90}from'../utils/common-translations';export default class st extends _0x3904b7{[_0x24d0('0x31')](){const _0x5568e0=this[_0x24d0('0x21')],_0x4893d6=_0x5568e0['locale'];if(!_0x5568e0[_0x24d0('0x5')][_0x24d0('0x3b')](_0x24d0('0x6')))return;const _0x2452a1=_0x5568e0['plugins']['get'](_0x24d0('0x13')),_0x2218a3=_0x5568e0['plugins'][_0x24d0('0x3b')](_0x24d0('0x8'));function _0x471590(_0x33dbbf){return()=>{const _0x505a7d=_0x5568e0[_0x24d0('0x27')]['document'][_0x24d0('0x11')],_0x3b992f=_0x5568e0[_0x24d0('0x2')]['get'](_0x33dbbf);if(_0x3b992f['value'])return void _0x5568e0[_0x24d0('0x14')](_0x24d0('0x3'),{});const _0x28581e=_0x33dbbf[_0x24d0('0x1b')](0x0,-0x4),_0x1a5d99=function(_0x406657,_0x1ae25b,_0x1ac513){let _0x1fb2bb=Array[_0x24d0('0x12')](_0x406657)[_0x24d0('0x3d')](_0x3bc03f=>function(_0x2ef947,_0x40b702){return _0x40b702[_0x24d0('0x30')](_0x2ef947['parent'],_0x24d0('0x39'))&&!_0x40b702[_0x24d0('0x1a')](_0x2ef947);}(_0x3bc03f,_0x1ac513));_0x1fb2bb=_0x1fb2bb['filter'](_0x49e84c=>!_0x49e84c['is']('element',_0x24d0('0x39'))||_0x49e84c[_0x24d0('0x2a')]('listType')!=_0x1ae25b);const _0x219d38=new Set();for(const _0x1805d6 of _0x1fb2bb)_0x1805d6['is']('element',_0x24d0('0x39'))?_0x219d38[_0x24d0('0x1e')](Zt(_0x1805d6)):_0x219d38['add'](_0x1805d6);return Array[_0x24d0('0x12')](_0x219d38);}(_0x505a7d[_0x24d0('0x22')](),_0x28581e,_0x5568e0['model'][_0x24d0('0x25')]);_0x5568e0[_0x24d0('0x27')]['change'](()=>{for(const _0x265e1d of _0x1a5d99)_0x2452a1[_0x24d0('0x1')](_0x265e1d,{'commandName':_0x33dbbf,'commandParams':[{'forceValue':!_0x3b992f[_0x24d0('0x4')]}],'formatGroupId':_0x24d0('0xd')},ne(_0x265e1d));});};}function _0x5af887(_0xd4e12a){return()=>{const _0x3dd399=function(_0x189341){const _0x5137fd=(_0x189341=Array['from'](_0x189341))[_0x24d0('0xe')](_0x3789cf=>'listItem'!=_0x3789cf[_0x24d0('0xf')]);return _0x5137fd>-0x1&&(_0x189341=_0x189341['slice'](0x0,_0x5137fd)),_0x189341;}(_0x5568e0[_0x24d0('0x27')][_0x24d0('0x19')][_0x24d0('0x11')][_0x24d0('0x22')]()),_0x235284=_0x5568e0[_0x24d0('0x27')][_0x24d0('0x32')](_0x5568e0[_0x24d0('0x27')][_0x24d0('0x29')](_0x3dd399[0x0],_0x24d0('0x7')),_0x5568e0[_0x24d0('0x27')]['createPositionAt'](_0x3dd399[_0x3dd399[_0x24d0('0x3c')]-0x1],_0x24d0('0x37')));_0x5568e0[_0x24d0('0x27')]['change'](()=>{_0x2452a1[_0x24d0('0x1')](_0x235284,{'commandName':_0xd4e12a,'commandParams':[],'formatGroupId':_0x24d0('0x33')},function(_0x4dc7b9){const _0x15fc74=new Set();for(const _0x27ea04 of _0x4dc7b9){let _0x559ca=_0x27ea04[_0x24d0('0x28')];for(;_0x559ca&&_0x559ca[_0x24d0('0x2a')]('listIndent')>_0x27ea04[_0x24d0('0x2a')](_0x24d0('0x33'));)_0x15fc74[_0x24d0('0x1e')](_0x559ca),_0x559ca=_0x559ca[_0x24d0('0x28')];}return Array['from'](_0x15fc74);}(_0x3dd399));});};}_0x2452a1[_0x24d0('0xa')](_0x24d0('0x2d'),_0x471590(_0x24d0('0x2d'))),_0x2452a1['enableCommand'](_0x24d0('0x36'),_0x471590('bulletedList')),_0x2218a3&&_0x2452a1['enableCommand'](_0x24d0('0x2f'),_0x471590(_0x24d0('0x2f'))),_0x2452a1['enableCommand'](_0x24d0('0x2c'),_0x5af887('indentList')),_0x2452a1[_0x24d0('0xa')](_0x24d0('0x18'),_0x5af887(_0x24d0('0x18'))),_0x2218a3&&_0x2452a1[_0x24d0('0xa')](_0x24d0('0x15'),()=>{const _0x1864fb=_0x5568e0[_0x24d0('0x2')][_0x24d0('0x3e')](_0x24d0('0x15')),_0x31732b=Array[_0x24d0('0x12')](_0x1864fb['_selectedElements']);_0x31732b['filter'](_0x1fafc8=>_0x1fafc8[_0x24d0('0x2a')](_0x24d0('0xc'))!=_0x1864fb['value']),_0x5568e0[_0x24d0('0x27')][_0x24d0('0x17')](()=>{for(const _0xe271a2 of _0x31732b)_0x2452a1[_0x24d0('0x1')](_0xe271a2,{'commandName':_0x24d0('0x15'),'commandParams':[{'forceValue':!_0x1864fb['value']}]});});}),_0x2452a1['_descriptionFactory'][_0x24d0('0x2b')](_0x24d0('0x39'),_0x11edb6=>_0x406e90(_0x4893d6,_0x24d0('0x1f'),_0x11edb6)),_0x2452a1[_0x24d0('0x0')][_0x24d0('0x26')](_0x176b30=>{const {data:_0x276a42}=_0x176b30;if(_0x276a42){if('numberedList'==_0x276a42['commandName']||_0x24d0('0x36')==_0x276a42[_0x24d0('0x1c')]||_0x24d0('0x2f')==_0x276a42[_0x24d0('0x1c')])switch(_0x276a42[_0x24d0('0x1c')][_0x24d0('0x20')](_0x24d0('0x3a'),'')){case _0x24d0('0x23'):return _0x97784c(_0x406e90(_0x4893d6,'ELEMENT_BULLETED_LIST'));case _0x24d0('0x35'):return _0x97784c(_0x406e90(_0x4893d6,_0x24d0('0x2e')));case _0x24d0('0x1d'):return _0x97784c(_0x406e90(_0x4893d6,'ELEMENT_TODO_LIST'));}if(_0x24d0('0x2c')==_0x276a42[_0x24d0('0x1c')])return{'type':_0x24d0('0xb'),'content':_0x406e90(_0x4893d6,'*Indent:*\x20%0',_0x406e90(_0x4893d6,'ELEMENT_LIST_ITEM'))};if(_0x24d0('0x18')==_0x276a42[_0x24d0('0x1c')])return{'type':_0x24d0('0xb'),'content':_0x406e90(_0x4893d6,_0x24d0('0x24'),_0x406e90(_0x4893d6,_0x24d0('0x1f')))};if(_0x24d0('0x15')==_0x276a42[_0x24d0('0x1c')])return _0x276a42['commandParams'][0x0]['forceValue']?{'type':_0x24d0('0xb'),'content':_0x406e90(_0x4893d6,'*Check\x20item*')}:{'type':'format','content':_0x406e90(_0x4893d6,_0x24d0('0x38'))};}function _0x97784c(_0x118d11){return{'type':'format','content':_0x406e90(_0x4893d6,_0x24d0('0x9'),_0x118d11)};}});}}function Zt(_0x4fa426){const _0xae9458=_0x4fa426[_0x24d0('0x2a')](_0x24d0('0x33'));if(0x0==_0xae9458)return _0x4fa426;let _0x4a1e1c=_0x4fa426;for(;_0x4fa426[_0x24d0('0x34')]&&_0x4fa426[_0x24d0('0x34')]['is'](_0x24d0('0x16'),_0x24d0('0x39'));){const _0x239969=_0x4fa426[_0x24d0('0x34')][_0x24d0('0x2a')](_0x24d0('0x33'));if(_0x239969==_0xae9458)_0x4a1e1c=_0x4fa426[_0x24d0('0x34')];else{if(_0x239969<_0xae9458)break;}_0x4fa426=_0x4fa426[_0x24d0('0x34')];}return _0x4a1e1c;}function ne(_0x3e3bc0){const _0x1a747c=[];if(_0x3e3bc0['is'](_0x24d0('0x16'),_0x24d0('0x39'))&&_0x3e3bc0['getAttribute']('listIndent')>0x0){let _0x521566=_0x3e3bc0[_0x24d0('0x28')];for(;_0x521566&&_0x24d0('0x39')==_0x521566[_0x24d0('0xf')]&&_0x521566[_0x24d0('0x2a')](_0x24d0('0x33'))==_0x3e3bc0[_0x24d0('0x2a')](_0x24d0('0x33'));)_0x1a747c[_0x24d0('0x10')](_0x521566),_0x521566=_0x521566['nextSibling'];}return _0x1a747c;}
23
+ const _0xc47d=['format','editor','listType','add','name','commands','parent','todoListChecked','todo','nextSibling','before','isObject','numberedList','checkTodoList','slice','_descriptionFactory','outdentList','enableCommand','afterInit','_selectedElements','element','bulleted','getAttribute','bulletedList','value','model','registerElementLabel','createPositionAt','ListEditing','filter','listItem','numbered','commandName','listIndent','length','blockName','createRange','from','*Change\x20to:*\x20%0','execute','markBlockFormat','getSelectedBlocks','selection','todoList','forceValue','locale','ELEMENT_NUMBERED_LIST','document','paragraph','List','indentList','schema','TodoListEditing','end','ELEMENT_BULLETED_LIST','get','plugins','change','previousSibling','ELEMENT_LIST_ITEM'];(function(_0x69a3cf,_0xc47d1){const _0x585b64=function(_0x519a50){while(--_0x519a50){_0x69a3cf['push'](_0x69a3cf['shift']());}};_0x585b64(++_0xc47d1);}(_0xc47d,0x7f));const _0x585b=function(_0x69a3cf,_0xc47d1){_0x69a3cf=_0x69a3cf-0x0;let _0x585b64=_0xc47d[_0x69a3cf];return _0x585b64;};import{Plugin as _0x13925c}from'ckeditor5/src/core';import{getTranslation as _0x4e43dd}from'../utils/common-translations';export default class nt extends _0x13925c{[_0x585b('0xb')](){const _0x2ddd84=this[_0x585b('0x36')],_0x3140d8=_0x2ddd84[_0x585b('0x26')];if(!_0x2ddd84[_0x585b('0x31')]['has'](_0x585b('0x15')))return;const _0x279ee0=_0x2ddd84['plugins'][_0x585b('0x30')]('TrackChangesEditing'),_0xc1b5d=_0x2ddd84['plugins']['has'](_0x585b('0x2d'));function _0x44fe98(_0x57a178){return()=>{const _0x3cb492=_0x2ddd84['model'][_0x585b('0x28')][_0x585b('0x23')],_0x496eb5=_0x2ddd84[_0x585b('0x3a')][_0x585b('0x30')](_0x57a178);if(_0x496eb5[_0x585b('0x11')])return void _0x2ddd84[_0x585b('0x20')](_0x585b('0x29'),{});const _0x289453=_0x57a178[_0x585b('0x7')](0x0,-0x4),_0x1c0f6b=function(_0x2d26b1,_0x5e7278,_0x2734fb){let _0x5ac9dd=Array[_0x585b('0x1e')](_0x2d26b1)[_0x585b('0x16')](_0x29780b=>function(_0x18def8,_0x5b8a62){return _0x5b8a62['checkChild'](_0x18def8[_0x585b('0x3b')],_0x585b('0x17'))&&!_0x5b8a62[_0x585b('0x4')](_0x18def8);}(_0x29780b,_0x2734fb));_0x5ac9dd=_0x5ac9dd[_0x585b('0x16')](_0x262a71=>!_0x262a71['is'](_0x585b('0xd'),_0x585b('0x17'))||_0x262a71[_0x585b('0xf')](_0x585b('0x37'))!=_0x5e7278);const _0x320b49=new Set();for(const _0x30b146 of _0x5ac9dd)_0x30b146['is'](_0x585b('0xd'),_0x585b('0x17'))?_0x320b49[_0x585b('0x38')](ne(_0x30b146)):_0x320b49['add'](_0x30b146);return Array[_0x585b('0x1e')](_0x320b49);}(_0x3cb492['getSelectedBlocks'](),_0x289453,_0x2ddd84[_0x585b('0x12')][_0x585b('0x2c')]);_0x2ddd84[_0x585b('0x12')][_0x585b('0x32')](()=>{for(const _0x326d78 of _0x1c0f6b)_0x279ee0['markBlockFormat'](_0x326d78,{'commandName':_0x57a178,'commandParams':[{'forceValue':!_0x496eb5[_0x585b('0x11')]}],'formatGroupId':_0x585b('0x1c')},oe(_0x326d78));});};}function _0x596694(_0x48bb2d){return()=>{const _0x414a4f=function(_0x25766b){const _0x5c0875=(_0x25766b=Array[_0x585b('0x1e')](_0x25766b))['findIndex'](_0x31c157=>_0x585b('0x17')!=_0x31c157[_0x585b('0x39')]);return _0x5c0875>-0x1&&(_0x25766b=_0x25766b[_0x585b('0x7')](0x0,_0x5c0875)),_0x25766b;}(_0x2ddd84['model'][_0x585b('0x28')]['selection'][_0x585b('0x22')]()),_0xef69e0=_0x2ddd84['model'][_0x585b('0x1d')](_0x2ddd84['model'][_0x585b('0x14')](_0x414a4f[0x0],_0x585b('0x3')),_0x2ddd84['model'][_0x585b('0x14')](_0x414a4f[_0x414a4f[_0x585b('0x1b')]-0x1],_0x585b('0x2e')));_0x2ddd84[_0x585b('0x12')][_0x585b('0x32')](()=>{_0x279ee0[_0x585b('0x21')](_0xef69e0,{'commandName':_0x48bb2d,'commandParams':[],'formatGroupId':_0x585b('0x1a')},function(_0xbc6e5f){const _0x40bc37=new Set();for(const _0x51c35c of _0xbc6e5f){let _0x510cbc=_0x51c35c[_0x585b('0x2')];for(;_0x510cbc&&_0x510cbc['getAttribute'](_0x585b('0x1a'))>_0x51c35c[_0x585b('0xf')](_0x585b('0x1a'));)_0x40bc37[_0x585b('0x38')](_0x510cbc),_0x510cbc=_0x510cbc['nextSibling'];}return Array[_0x585b('0x1e')](_0x40bc37);}(_0x414a4f));});};}_0x279ee0[_0x585b('0xa')]('numberedList',_0x44fe98(_0x585b('0x5'))),_0x279ee0['enableCommand'](_0x585b('0x10'),_0x44fe98('bulletedList')),_0xc1b5d&&_0x279ee0[_0x585b('0xa')](_0x585b('0x24'),_0x44fe98(_0x585b('0x24'))),_0x279ee0[_0x585b('0xa')]('indentList',_0x596694('indentList')),_0x279ee0[_0x585b('0xa')]('outdentList',_0x596694(_0x585b('0x9'))),_0xc1b5d&&_0x279ee0[_0x585b('0xa')](_0x585b('0x6'),()=>{const _0x3544c5=_0x2ddd84[_0x585b('0x3a')][_0x585b('0x30')](_0x585b('0x6')),_0x23fb40=Array[_0x585b('0x1e')](_0x3544c5[_0x585b('0xc')]);_0x23fb40[_0x585b('0x16')](_0x458cca=>_0x458cca['getAttribute'](_0x585b('0x0'))!=_0x3544c5[_0x585b('0x11')]),_0x2ddd84[_0x585b('0x12')]['change'](()=>{for(const _0x4e49a1 of _0x23fb40)_0x279ee0[_0x585b('0x21')](_0x4e49a1,{'commandName':_0x585b('0x6'),'commandParams':[{'forceValue':!_0x3544c5['value']}]});});}),_0x279ee0[_0x585b('0x8')][_0x585b('0x13')](_0x585b('0x17'),_0x389f52=>_0x4e43dd(_0x3140d8,_0x585b('0x34'),_0x389f52)),_0x279ee0[_0x585b('0x8')]['registerDescriptionCallback'](_0x41ddf9=>{const {data:_0x3dd9cd}=_0x41ddf9;if(_0x3dd9cd){if(_0x585b('0x5')==_0x3dd9cd[_0x585b('0x19')]||_0x585b('0x10')==_0x3dd9cd[_0x585b('0x19')]||_0x585b('0x24')==_0x3dd9cd[_0x585b('0x19')])switch(_0x3dd9cd[_0x585b('0x19')]['replace'](_0x585b('0x2a'),'')){case _0x585b('0xe'):return _0x542a56(_0x4e43dd(_0x3140d8,_0x585b('0x2f')));case _0x585b('0x18'):return _0x542a56(_0x4e43dd(_0x3140d8,_0x585b('0x27')));case _0x585b('0x1'):return _0x542a56(_0x4e43dd(_0x3140d8,'ELEMENT_TODO_LIST'));}if(_0x585b('0x2b')==_0x3dd9cd[_0x585b('0x19')])return{'type':_0x585b('0x35'),'content':_0x4e43dd(_0x3140d8,'*Indent:*\x20%0',_0x4e43dd(_0x3140d8,_0x585b('0x34')))};if(_0x585b('0x9')==_0x3dd9cd[_0x585b('0x19')])return{'type':_0x585b('0x35'),'content':_0x4e43dd(_0x3140d8,'*Outdent:*\x20%0',_0x4e43dd(_0x3140d8,_0x585b('0x34')))};if(_0x585b('0x6')==_0x3dd9cd[_0x585b('0x19')])return _0x3dd9cd['commandParams'][0x0][_0x585b('0x25')]?{'type':'format','content':_0x4e43dd(_0x3140d8,'*Check\x20item*')}:{'type':_0x585b('0x35'),'content':_0x4e43dd(_0x3140d8,'*Uncheck\x20item*')};}function _0x542a56(_0x2f3d38){return{'type':_0x585b('0x35'),'content':_0x4e43dd(_0x3140d8,_0x585b('0x1f'),_0x2f3d38)};}});}}function ne(_0xcc54ff){const _0xda2882=_0xcc54ff[_0x585b('0xf')](_0x585b('0x1a'));if(0x0==_0xda2882)return _0xcc54ff;let _0x27ed3b=_0xcc54ff;for(;_0xcc54ff[_0x585b('0x33')]&&_0xcc54ff[_0x585b('0x33')]['is']('element',_0x585b('0x17'));){const _0x3fbc42=_0xcc54ff[_0x585b('0x33')][_0x585b('0xf')](_0x585b('0x1a'));if(_0x3fbc42==_0xda2882)_0x27ed3b=_0xcc54ff[_0x585b('0x33')];else{if(_0x3fbc42<_0xda2882)break;}_0xcc54ff=_0xcc54ff['previousSibling'];}return _0x27ed3b;}function oe(_0x49b354){const _0x2078e1=[];if(_0x49b354['is'](_0x585b('0xd'),_0x585b('0x17'))&&_0x49b354[_0x585b('0xf')]('listIndent')>0x0){let _0x4c2ddc=_0x49b354[_0x585b('0x2')];for(;_0x4c2ddc&&_0x585b('0x17')==_0x4c2ddc[_0x585b('0x39')]&&_0x4c2ddc[_0x585b('0xf')](_0x585b('0x1a'))==_0x49b354[_0x585b('0xf')]('listIndent');)_0x2078e1['push'](_0x4c2ddc),_0x4c2ddc=_0x4c2ddc[_0x585b('0x2')];}return _0x2078e1;}