@ckeditor/ckeditor5-track-changes 34.0.0 → 35.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 (150) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/build/track-changes.js +2 -2
  4. package/build/translations/ar.js +1 -0
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/bg.js +1 -0
  7. package/build/translations/bn.js +1 -0
  8. package/build/translations/ca.js +1 -0
  9. package/build/translations/cs.js +1 -1
  10. package/build/translations/da.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es.js +1 -1
  15. package/build/translations/et.js +1 -1
  16. package/build/translations/fi.js +1 -0
  17. package/build/translations/fr.js +1 -1
  18. package/build/translations/gl.js +1 -1
  19. package/build/translations/he.js +1 -0
  20. package/build/translations/hi.js +1 -1
  21. package/build/translations/hr.js +1 -1
  22. package/build/translations/hu.js +1 -0
  23. package/build/translations/id.js +1 -1
  24. package/build/translations/it.js +1 -1
  25. package/build/translations/ja.js +1 -0
  26. package/build/translations/ko.js +1 -0
  27. package/build/translations/lt.js +1 -0
  28. package/build/translations/lv.js +1 -0
  29. package/build/translations/ms.js +1 -0
  30. package/build/translations/nl.js +1 -1
  31. package/build/translations/no.js +1 -0
  32. package/build/translations/pl.js +1 -1
  33. package/build/translations/pt-br.js +1 -1
  34. package/build/translations/pt.js +1 -0
  35. package/build/translations/ro.js +1 -0
  36. package/build/translations/ru.js +1 -0
  37. package/build/translations/sk.js +1 -1
  38. package/build/translations/sr-latn.js +1 -1
  39. package/build/translations/sr.js +1 -1
  40. package/build/translations/sv.js +1 -0
  41. package/build/translations/th.js +1 -0
  42. package/build/translations/tk.js +1 -1
  43. package/build/translations/tr.js +1 -1
  44. package/build/translations/uk.js +1 -0
  45. package/build/translations/vi.js +1 -0
  46. package/build/translations/zh-cn.js +1 -1
  47. package/build/translations/zh.js +1 -1
  48. package/lang/contexts.json +2 -0
  49. package/lang/translations/ar.po +469 -0
  50. package/lang/translations/az.po +10 -0
  51. package/lang/translations/bg.po +397 -0
  52. package/lang/translations/bn.po +423 -0
  53. package/lang/translations/ca.po +397 -0
  54. package/lang/translations/cs.po +39 -27
  55. package/lang/translations/da.po +41 -31
  56. package/lang/translations/de.po +12 -2
  57. package/lang/translations/el.po +10 -0
  58. package/lang/translations/en-au.po +10 -0
  59. package/lang/translations/en.po +10 -0
  60. package/lang/translations/es.po +72 -44
  61. package/lang/translations/et.po +107 -97
  62. package/lang/translations/fi.po +397 -0
  63. package/lang/translations/fr.po +34 -6
  64. package/lang/translations/gl.po +10 -0
  65. package/lang/translations/he.po +433 -0
  66. package/lang/translations/hi.po +21 -11
  67. package/lang/translations/hr.po +11 -0
  68. package/lang/translations/hu.po +397 -0
  69. package/lang/translations/id.po +84 -75
  70. package/lang/translations/it.po +29 -1
  71. package/lang/translations/ja.po +379 -0
  72. package/lang/translations/ko.po +379 -0
  73. package/lang/translations/lt.po +433 -0
  74. package/lang/translations/lv.po +415 -0
  75. package/lang/translations/ms.po +379 -0
  76. package/lang/translations/nl.po +48 -38
  77. package/lang/translations/no.po +397 -0
  78. package/lang/translations/pl.po +25 -13
  79. package/lang/translations/pt-br.po +29 -1
  80. package/lang/translations/pt.po +415 -0
  81. package/lang/translations/ro.po +415 -0
  82. package/lang/translations/ru.po +435 -0
  83. package/lang/translations/sk.po +12 -0
  84. package/lang/translations/sr-latn.po +11 -0
  85. package/lang/translations/sr.po +62 -51
  86. package/lang/translations/sv.po +397 -0
  87. package/lang/translations/th.po +379 -0
  88. package/lang/translations/tk.po +10 -0
  89. package/lang/translations/tr.po +21 -11
  90. package/lang/translations/uk.po +433 -0
  91. package/lang/translations/vi.po +379 -0
  92. package/lang/translations/zh-cn.po +13 -4
  93. package/lang/translations/zh.po +73 -64
  94. package/package.json +5 -4
  95. package/src/commands/acceptallsuggestionscommand.js +1 -1
  96. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  97. package/src/commands/acceptsuggestioncommand.js +1 -1
  98. package/src/commands/discardallsuggestionscommand.js +1 -1
  99. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/commands/trackchangescommand.js +1 -1
  102. package/src/integrations/alignment.js +1 -1
  103. package/src/integrations/basicstyles.js +1 -1
  104. package/src/integrations/blockquote.js +1 -1
  105. package/src/integrations/ckbox.js +23 -0
  106. package/src/integrations/codeblock.js +1 -1
  107. package/src/integrations/comments.js +1 -1
  108. package/src/integrations/deletecommand.js +1 -1
  109. package/src/integrations/entercommand.js +1 -1
  110. package/src/integrations/font.js +1 -1
  111. package/src/integrations/heading.js +1 -1
  112. package/src/integrations/highlight.js +1 -1
  113. package/src/integrations/horizontalline.js +1 -1
  114. package/src/integrations/htmlembed.js +23 -0
  115. package/src/integrations/image.js +1 -1
  116. package/src/integrations/indent.js +1 -1
  117. package/src/integrations/inputcommand.js +1 -1
  118. package/src/integrations/link.js +1 -1
  119. package/src/integrations/list.js +1 -1
  120. package/src/integrations/mediaembed.js +1 -1
  121. package/src/integrations/mention.js +1 -1
  122. package/src/integrations/pagebreak.js +1 -1
  123. package/src/integrations/paragraph.js +1 -1
  124. package/src/integrations/removeformat.js +1 -1
  125. package/src/integrations/restrictededitingmode.js +1 -1
  126. package/src/integrations/shiftentercommand.js +1 -1
  127. package/src/integrations/standardeditingmode.js +1 -1
  128. package/src/integrations/style.js +23 -0
  129. package/src/integrations/table.js +1 -1
  130. package/src/integrations/tableclipboard.js +1 -1
  131. package/src/integrations/tableheadings.js +1 -1
  132. package/src/integrations/tablemergesplit.js +1 -1
  133. package/src/integrations/title.js +1 -1
  134. package/src/integrations/undo.js +1 -1
  135. package/src/integrations/utils.js +1 -1
  136. package/src/suggestion.js +1 -1
  137. package/src/suggestiondescriptionfactory.js +1 -1
  138. package/src/trackchanges.js +1 -1
  139. package/src/trackchangesdata.js +1 -1
  140. package/src/trackchangesediting.js +1 -1
  141. package/src/trackchangesui.js +1 -1
  142. package/src/ui/suggestioncontroller.js +1 -1
  143. package/src/ui/view/basesuggestionthreadview.js +1 -1
  144. package/src/ui/view/suggestionthreadview.js +1 -1
  145. package/src/utils/common-translations.js +23 -0
  146. package/src/utils/getrangesofblockgroups.js +23 -0
  147. package/src/utils/getselectedsuggestions.js +1 -1
  148. package/src/utils/hashobject.js +1 -1
  149. package/src/utils/normalizedescription.js +1 -1
  150. package/src/utils/sortsuggestions.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4b3a=['enableCommand','CommentsEditing','get','plugins','requires','editor','addCommentThread','TrackChangesEditing'];(function(_0x16b15d,_0x4b3a5a){var _0x2fcfee=function(_0x150096){while(--_0x150096){_0x16b15d['push'](_0x16b15d['shift']());}};_0x2fcfee(++_0x4b3a5a);}(_0x4b3a,0xc3));var _0x2fcf=function(_0x16b15d,_0x4b3a5a){_0x16b15d=_0x16b15d-0x0;var _0x2fcfee=_0x4b3a[_0x16b15d];return _0x2fcfee;};import{Plugin as _0x259ece}from'ckeditor5/src/core';export default class P extends _0x259ece{static get[_0x2fcf('0x1')](){return[_0x2fcf('0x6')];}['init'](){this[_0x2fcf('0x2')][_0x2fcf('0x0')][_0x2fcf('0x7')](_0x2fcf('0x4'))[_0x2fcf('0x5')](_0x2fcf('0x3'));}}
23
+ var _0x5dd5=['CommentsEditing','plugins','get','addCommentThread','enableCommand','requires'];(function(_0x1ab0a2,_0x5dd5db){var _0x5e3a28=function(_0x4b1058){while(--_0x4b1058){_0x1ab0a2['push'](_0x1ab0a2['shift']());}};_0x5e3a28(++_0x5dd5db);}(_0x5dd5,0xd4));var _0x5e3a=function(_0x1ab0a2,_0x5dd5db){_0x1ab0a2=_0x1ab0a2-0x0;var _0x5e3a28=_0x5dd5[_0x1ab0a2];return _0x5e3a28;};import{Plugin as _0x41fd0c}from'ckeditor5/src/core';export default class L extends _0x41fd0c{static get[_0x5e3a('0x3')](){return[_0x5e3a('0x4')];}['init'](){this['editor'][_0x5e3a('0x5')][_0x5e3a('0x0')]('TrackChangesEditing')[_0x5e3a('0x2')](_0x5e3a('0x1'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3eef=['document','model','init','unlock','high','writer','addMarker:suggestion:deletion','mapper','start','get','markerNameToElements','forward','plugins','createSelection','setSelection','editing','fromRange','buffer','deleteForward','createRange','downcastDispatcher','detach','markerName','$graveyard','delete','removeMarker:suggestion:deletion','enableCommand','selection','batch','modifySelection','lock','getFirstRange','requires','data','options','end','unbindElementFromMarkerName','merge','uiElement'];(function(_0x1a57d0,_0x3eef2c){const _0xb2788e=function(_0x3360ea){while(--_0x3360ea){_0x1a57d0['push'](_0x1a57d0['shift']());}};_0xb2788e(++_0x3eef2c);}(_0x3eef,0xd2));const _0xb278=function(_0x1a57d0,_0x3eef2c){_0x1a57d0=_0x1a57d0-0x0;let _0xb2788e=_0x3eef[_0x1a57d0];return _0xb2788e;};import{Plugin as _0x4be9ac}from'ckeditor5/src/core';import{Delete as _0x4d83dd}from'ckeditor5/src/typing';import{LiveRange as _0x444834}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x2271c2}from'./utils';export default class G extends _0x4be9ac{static get[_0xb278('0x11')](){return[_0x4d83dd];}[_0xb278('0x1a')](){const _0x2ca1e4=this['editor'],_0x3594a2=_0x2ca1e4[_0xb278('0x24')][_0xb278('0x21')]('TrackChangesEditing');_0x3594a2[_0xb278('0xb')](_0xb278('0x9'));const _0xaf4790=_0x2ca1e4['commands'][_0xb278('0x21')]('deleteForward');_0x3594a2[_0xb278('0xb')](_0xb278('0x3'),(_0x43864f,_0x5742aa={})=>{const _0x256a0c=_0x2ca1e4[_0xb278('0x19')][_0xb278('0x25')](_0x2ca1e4[_0xb278('0x19')][_0xb278('0x18')][_0xb278('0xc')]);_0x256a0c['isCollapsed']&&_0x2ca1e4['model'][_0xb278('0xe')](_0x256a0c,{'direction':_0xb278('0x23'),'unit':_0x5742aa['unit']});const _0x3c34ce=_0x256a0c[_0xb278('0x10')](),_0x282daa=_0x444834[_0xb278('0x1')](_0x3c34ce);let _0x24fe25;_0x43864f(_0x5742aa),_0x24fe25=_0xb278('0x8')==_0x282daa['root']['rootName']?_0x2ca1e4['model'][_0xb278('0x4')](_0x3c34ce['start']):_0x2ca1e4[_0xb278('0x19')]['createRange'](_0x282daa[_0xb278('0x20')],_0x282daa[_0xb278('0x14')]),_0x282daa[_0xb278('0x6')](),_0x2ca1e4[_0xb278('0x19')]['enqueueChange'](_0xaf4790[_0xb278('0x2')][_0xb278('0xd')],_0x1d1a51=>{_0xaf4790[_0xb278('0x2')][_0xb278('0xf')](),_0x1d1a51[_0xb278('0x26')](_0x1d1a51[_0xb278('0x4')](_0x24fe25[_0xb278('0x14')])),_0xaf4790['buffer'][_0xb278('0x1b')]();});}),_0x2ca1e4[_0xb278('0x0')][_0xb278('0x5')]['on'](_0xb278('0x1e'),_0x2271c2(_0x2ca1e4,_0xb278('0x16')),{'priority':'high'}),_0x2ca1e4[_0xb278('0x12')][_0xb278('0x5')]['on']('addMarker:suggestion:deletion',(_0xfe8f79,_0x55bdbf,_0x391b72)=>{_0x391b72[_0xb278('0x13')]['showSuggestionHighlights']&&_0x2271c2(_0x2ca1e4,_0xb278('0x16'),{'showActiveMarker':!0x1})(_0xfe8f79,_0x55bdbf,_0x391b72);},{'priority':'high'}),_0x2ca1e4[_0xb278('0x0')]['downcastDispatcher']['on'](_0xb278('0xa'),(_0x4219ee,_0x4e1e51,_0x370d8f)=>{const _0x5c591e=_0x370d8f[_0xb278('0x1f')][_0xb278('0x22')](_0x4e1e51[_0xb278('0x7')]);if(_0x5c591e)for(const _0x1929a4 of _0x5c591e)_0x1929a4['is'](_0xb278('0x17'))&&(_0x370d8f['mapper'][_0xb278('0x15')](_0x1929a4,_0x4e1e51[_0xb278('0x7')]),_0x370d8f[_0xb278('0x1d')]['remove'](_0x1929a4));},{'priority':_0xb278('0x1c')});}}
23
+ const _0x5290=['document','markerName','fromRange','end','downcastDispatcher','requires','enqueueChange','editing','TrackChangesEditing','options','selection','rootName','data','mapper','buffer','setSelection','delete','getFirstRange','removeMarker:suggestion:deletion','unlock','get','batch','detach','editor','high','lock','enableCommand','forward','start','addMarker:suggestion:deletion','createSelection','unbindElementFromMarkerName','showSuggestionHighlights','deleteForward','model','writer','merge','remove','root','createRange'];(function(_0x3c4937,_0x5290d7){const _0x2b8ba2=function(_0x1fc91c){while(--_0x1fc91c){_0x3c4937['push'](_0x3c4937['shift']());}};_0x2b8ba2(++_0x5290d7);}(_0x5290,0x161));const _0x2b8b=function(_0x3c4937,_0x5290d7){_0x3c4937=_0x3c4937-0x0;let _0x2b8ba2=_0x5290[_0x3c4937];return _0x2b8ba2;};import{Plugin as _0x3807ef}from'ckeditor5/src/core';import{Delete as _0x76a18b}from'ckeditor5/src/typing';import{LiveRange as _0x17e179}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x42b463}from'./utils';export default class q extends _0x3807ef{static get[_0x2b8b('0xc')](){return[_0x76a18b];}['init'](){const _0x4842b9=this[_0x2b8b('0x1e')],_0x5aa441=_0x4842b9['plugins'][_0x2b8b('0x1b')](_0x2b8b('0xf'));_0x5aa441['enableCommand'](_0x2b8b('0x17'));const _0x59b7fe=_0x4842b9['commands']['get'](_0x2b8b('0x0'));_0x5aa441[_0x2b8b('0x21')](_0x2b8b('0x0'),(_0x1fd36f,_0xc5958d={})=>{const _0x5c3084=_0x4842b9[_0x2b8b('0x1')][_0x2b8b('0x25')](_0x4842b9[_0x2b8b('0x1')][_0x2b8b('0x7')][_0x2b8b('0x11')]);_0x5c3084['isCollapsed']&&_0x4842b9[_0x2b8b('0x1')]['modifySelection'](_0x5c3084,{'direction':_0x2b8b('0x22'),'unit':_0xc5958d['unit']});const _0x562c3b=_0x5c3084[_0x2b8b('0x18')](),_0x1f90b8=_0x17e179[_0x2b8b('0x9')](_0x562c3b);let _0x5208e3;_0x1fd36f(_0xc5958d),_0x5208e3='$graveyard'==_0x1f90b8[_0x2b8b('0x5')][_0x2b8b('0x12')]?_0x4842b9[_0x2b8b('0x1')][_0x2b8b('0x6')](_0x562c3b[_0x2b8b('0x23')]):_0x4842b9[_0x2b8b('0x1')]['createRange'](_0x1f90b8[_0x2b8b('0x23')],_0x1f90b8[_0x2b8b('0xa')]),_0x1f90b8[_0x2b8b('0x1d')](),_0x4842b9[_0x2b8b('0x1')][_0x2b8b('0xd')](_0x59b7fe[_0x2b8b('0x15')][_0x2b8b('0x1c')],_0xd8de16=>{_0x59b7fe['buffer'][_0x2b8b('0x20')](),_0xd8de16[_0x2b8b('0x16')](_0xd8de16['createRange'](_0x5208e3[_0x2b8b('0xa')])),_0x59b7fe[_0x2b8b('0x15')][_0x2b8b('0x1a')]();});}),_0x4842b9['editing'][_0x2b8b('0xb')]['on']('addMarker:suggestion:deletion',_0x42b463(_0x4842b9,_0x2b8b('0x3')),{'priority':'high'}),_0x4842b9[_0x2b8b('0x13')][_0x2b8b('0xb')]['on'](_0x2b8b('0x24'),(_0x188f3b,_0x2956a7,_0x36b184)=>{_0x36b184[_0x2b8b('0x10')][_0x2b8b('0x27')]&&_0x42b463(_0x4842b9,'merge',{'showActiveMarker':!0x1})(_0x188f3b,_0x2956a7,_0x36b184);},{'priority':_0x2b8b('0x1f')}),_0x4842b9[_0x2b8b('0xe')][_0x2b8b('0xb')]['on'](_0x2b8b('0x19'),(_0x1378ec,_0x3b0833,_0x4cd423)=>{const _0x258c6f=_0x4cd423[_0x2b8b('0x14')]['markerNameToElements'](_0x3b0833[_0x2b8b('0x8')]);if(_0x258c6f)for(const _0x1e4aae of _0x258c6f)_0x1e4aae['is']('uiElement')&&(_0x4cd423[_0x2b8b('0x14')][_0x2b8b('0x26')](_0x1e4aae,_0x3b0833[_0x2b8b('0x8')]),_0x4cd423[_0x2b8b('0x2')][_0x2b8b('0x4')](_0x1e4aae));},{'priority':'high'});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x26c2=['enableCommand','editing','isAtEnd','showSuggestionHighlights','change','get','createRange','requires','isLimit','downcastDispatcher','data','selection','addMarker:suggestion:insertion','start','options','isCollapsed','high','removeMarker:suggestion:insertion','enter','init','end','ck-suggestion-marker-split','parent','model','setSelection','markerName','editor','split','getFirstRange','document','isAtStart','mapper','unbindElementFromMarkerName','schema','markerNameToElements','hasClass','nextSibling'];(function(_0x385d08,_0x26c260){const _0x2a4fce=function(_0x47ae0b){while(--_0x47ae0b){_0x385d08['push'](_0x385d08['shift']());}};_0x2a4fce(++_0x26c260);}(_0x26c2,0x150));const _0x2a4f=function(_0x385d08,_0x26c260){_0x385d08=_0x385d08-0x0;let _0x2a4fce=_0x26c2[_0x385d08];return _0x2a4fce;};import{Plugin as _0x216c60}from'ckeditor5/src/core';import{Enter as _0x4a6e6c}from'ckeditor5/src/enter';import{LiveRange as _0xecc283}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x5b485c}from'./utils';export default class F extends _0x216c60{static get[_0x2a4f('0x4')](){return[_0x4a6e6c];}[_0x2a4f('0x10')](){const _0x5a043e=this[_0x2a4f('0x17')],_0x4d75c1=_0x5a043e['plugins'][_0x2a4f('0x2')]('TrackChangesEditing');_0x4d75c1[_0x2a4f('0x22')](_0x2a4f('0xf'),_0x46b933=>{_0x5a043e[_0x2a4f('0x14')][_0x2a4f('0x1')](_0x5afd18=>{const _0x4a5a9f=_0x5a043e[_0x2a4f('0x14')][_0x2a4f('0x1a')][_0x2a4f('0x8')],_0x357089=_0x4a5a9f['getFirstPosition'](),_0x16489f=_0x4a5a9f[_0x2a4f('0xc')],_0x9435c6=_0xecc283['fromRange'](_0x4a5a9f[_0x2a4f('0x19')]()),_0x1b0ed3=_0x9435c6[_0x2a4f('0xa')]['parent'],_0xf8bfd2=_0x9435c6[_0x2a4f('0x11')]['parent'],_0x10f55d=!(_0x9435c6[_0x2a4f('0xa')][_0x2a4f('0x1b')]&&_0x9435c6[_0x2a4f('0x11')][_0x2a4f('0x24')]),_0x1f0384=_0x1b0ed3==_0xf8bfd2,_0x746f0e=!(_0x5a043e[_0x2a4f('0x14')][_0x2a4f('0x1e')][_0x2a4f('0x5')](_0x1b0ed3)||_0x5a043e[_0x2a4f('0x14')][_0x2a4f('0x1e')][_0x2a4f('0x5')](_0xf8bfd2))&&(_0x16489f||_0x10f55d&&_0x1f0384);if(_0x46b933(),_0x746f0e){const _0x37f32c=_0x5a043e[_0x2a4f('0x14')]['createPositionAt'](_0x357089[_0x2a4f('0x13')][_0x2a4f('0x21')],0x0),_0x1fc658=_0x5afd18[_0x2a4f('0x3')](_0x357089,_0x37f32c);_0x4d75c1['markInsertion'](_0x1fc658);}else _0x5afd18[_0x2a4f('0x15')](_0x5afd18[_0x2a4f('0x3')](_0x9435c6[_0x2a4f('0x11')]));_0x9435c6['detach']();});}),_0x5a043e[_0x2a4f('0x23')][_0x2a4f('0x6')]['on'](_0x2a4f('0x9'),_0x5b485c(_0x5a043e,_0x2a4f('0x18')),{'priority':_0x2a4f('0xd')}),_0x5a043e[_0x2a4f('0x23')][_0x2a4f('0x6')]['on'](_0x2a4f('0xe'),(_0x3d6630,_0x1b3a94,_0x345c49)=>{const _0x3f49da=_0x345c49[_0x2a4f('0x1c')][_0x2a4f('0x1f')](_0x1b3a94[_0x2a4f('0x16')]);if(_0x3f49da)for(const _0x170b10 of _0x3f49da)_0x170b10[_0x2a4f('0x20')](_0x2a4f('0x12'))&&(_0x345c49[_0x2a4f('0x1c')][_0x2a4f('0x1d')](_0x170b10,_0x1b3a94[_0x2a4f('0x16')]),_0x345c49['writer']['remove'](_0x170b10));},{'priority':'high'}),_0x5a043e[_0x2a4f('0x7')][_0x2a4f('0x6')]['on'](_0x2a4f('0x9'),(_0x1cc6bb,_0x43687b,_0x3440ee)=>{_0x3440ee[_0x2a4f('0xb')][_0x2a4f('0x0')]&&_0x5b485c(_0x5a043e,_0x2a4f('0x18'),{'showActiveMarker':!0x1})(_0x1cc6bb,_0x43687b,_0x3440ee);},{'priority':'high'});}}
23
+ const _0x343d=['unbindElementFromMarkerName','createPositionAt','editing','isAtStart','document','parent','high','addMarker:suggestion:insertion','isAtEnd','start','downcastDispatcher','get','removeMarker:suggestion:insertion','remove','init','selection','isCollapsed','data','hasClass','detach','options','mapper','getFirstPosition','end','model','enableCommand','editor','TrackChangesEditing','enter','ck-suggestion-marker-split','nextSibling','markerName','plugins','schema','createRange','showSuggestionHighlights','split','markInsertion','isLimit','setSelection'];(function(_0xa20faf,_0x343d31){const _0xb7cc3=function(_0x364fe9){while(--_0x364fe9){_0xa20faf['push'](_0xa20faf['shift']());}};_0xb7cc3(++_0x343d31);}(_0x343d,0x8e));const _0xb7cc=function(_0xa20faf,_0x343d31){_0xa20faf=_0xa20faf-0x0;let _0xb7cc3=_0x343d[_0xa20faf];return _0xb7cc3;};import{Plugin as _0x456ee3}from'ckeditor5/src/core';import{Enter as _0x32fca5}from'ckeditor5/src/enter';import{LiveRange as _0x18d784}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x3d2f60}from'./utils';export default class H extends _0x456ee3{static get['requires'](){return[_0x32fca5];}[_0xb7cc('0x20')](){const _0x4d537e=this[_0xb7cc('0x4')],_0x5cb963=_0x4d537e[_0xb7cc('0xa')][_0xb7cc('0x1d')](_0xb7cc('0x5'));_0x5cb963[_0xb7cc('0x3')](_0xb7cc('0x6'),_0x3630fa=>{_0x4d537e[_0xb7cc('0x2')]['change'](_0x18ebdb=>{const _0x1f4951=_0x4d537e[_0xb7cc('0x2')][_0xb7cc('0x16')][_0xb7cc('0x21')],_0x36393d=_0x1f4951[_0xb7cc('0x0')](),_0x59c7ba=_0x1f4951[_0xb7cc('0x22')],_0x11c557=_0x18d784['fromRange'](_0x1f4951['getFirstRange']()),_0xa081ed=_0x11c557[_0xb7cc('0x1b')][_0xb7cc('0x17')],_0x325ca0=_0x11c557['end'][_0xb7cc('0x17')],_0x5a8190=!(_0x11c557[_0xb7cc('0x1b')][_0xb7cc('0x15')]&&_0x11c557[_0xb7cc('0x1')][_0xb7cc('0x1a')]),_0x3a0bc3=_0xa081ed==_0x325ca0,_0x318b52=!(_0x4d537e[_0xb7cc('0x2')][_0xb7cc('0xb')][_0xb7cc('0x10')](_0xa081ed)||_0x4d537e[_0xb7cc('0x2')][_0xb7cc('0xb')][_0xb7cc('0x10')](_0x325ca0))&&(_0x59c7ba||_0x5a8190&&_0x3a0bc3);if(_0x3630fa(),_0x318b52){const _0x427e9f=_0x4d537e[_0xb7cc('0x2')][_0xb7cc('0x13')](_0x36393d['parent'][_0xb7cc('0x8')],0x0),_0x1d7727=_0x18ebdb['createRange'](_0x36393d,_0x427e9f);_0x5cb963[_0xb7cc('0xf')](_0x1d7727);}else _0x18ebdb[_0xb7cc('0x11')](_0x18ebdb[_0xb7cc('0xc')](_0x11c557[_0xb7cc('0x1')]));_0x11c557[_0xb7cc('0x25')]();});}),_0x4d537e[_0xb7cc('0x14')][_0xb7cc('0x1c')]['on']('addMarker:suggestion:insertion',_0x3d2f60(_0x4d537e,_0xb7cc('0xe')),{'priority':_0xb7cc('0x18')}),_0x4d537e[_0xb7cc('0x14')][_0xb7cc('0x1c')]['on'](_0xb7cc('0x1e'),(_0x437510,_0x156092,_0x46ff38)=>{const _0x38cdc5=_0x46ff38[_0xb7cc('0x27')]['markerNameToElements'](_0x156092['markerName']);if(_0x38cdc5)for(const _0x5aede5 of _0x38cdc5)_0x5aede5[_0xb7cc('0x24')](_0xb7cc('0x7'))&&(_0x46ff38[_0xb7cc('0x27')][_0xb7cc('0x12')](_0x5aede5,_0x156092[_0xb7cc('0x9')]),_0x46ff38['writer'][_0xb7cc('0x1f')](_0x5aede5));},{'priority':'high'}),_0x4d537e[_0xb7cc('0x23')][_0xb7cc('0x1c')]['on'](_0xb7cc('0x19'),(_0x10c152,_0x134b89,_0x95cd29)=>{_0x95cd29[_0xb7cc('0x26')][_0xb7cc('0xd')]&&_0x3d2f60(_0x4d537e,_0xb7cc('0xe'),{'showActiveMarker':!0x1})(_0x10c152,_0x134b89,_0x95cd29);},{'priority':_0xb7cc('0x18')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0xcbe0d0}from'ckeditor5/src/core';import{normalizeColorOptions as Ft}from'ckeditor5/src/ui';import{getRangesWithAttribute as Rt}from'./utils';const zt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];export default class L extends _0xcbe0d0{['afterInit'](){const {t:t}=this['editor']['locale'];for(const {pluginName:_0x164a4c,commandName:_0x174f1b}of zt)this['editor']['plugins']['has'](_0x164a4c)&&this['_enableCommand'](_0x174f1b);this['editor']['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xb5d250=>{const {data:_0x226515}=_0xb5d250;if(null!=_0x226515){if('fontSize'==_0x226515['commandName']){const _0x13bc60=_0x226515['commandParams'][0x0]['value'];if(_0x13bc60){const _0x3e53bd=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x12e3f0=>_0x12e3f0['model']==_0x13bc60)['title'],_0x4e46c9=this['editor']['locale']['_t'](_0x3e53bd)['toLowerCase']();return{'type':'format','content':t('*Set\x20font\x20size:*\x20%0',_0x4e46c9)};}return{'type':'format','content':t('*Reset\x20font\x20size*')};}if('fontFamily'==_0x226515['commandName']){const _0x526075=_0x226515['commandParams'][0x0]['value'];return _0x526075?{'type':'format','content':t('*Set\x20font\x20family:*\x20%0',_0x526075)}:{'type':'format','content':t('*Reset\x20font\x20family*')};}if('fontColor'==_0x226515['commandName']){const _0x292979=_0x226515['commandParams'][0x0]['value'];if(_0x292979){const _0x3965c1=Ft(this['editor']['config']['get']('fontColor.colors'))['find'](_0x267d1c=>_0x267d1c['model']==_0x292979);let _0x5c12ae=_0x292979,_0x207353='';return _0x3965c1&&(_0x5c12ae=_0x3965c1['label'],_0x207353=this['editor']['locale']['_t'](_0x5c12ae)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20color:*\x20%0',_0x207353)['trim'](),'color':{'value':_0x292979,'title':_0x207353||_0x5c12ae}};}return{'type':'format','content':t('*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x226515['commandName']){const _0x18e398=_0x226515['commandParams'][0x0]['value'];if(_0x18e398){const _0x4dfa19=Ft(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x570eb5=>_0x570eb5['model']==_0x18e398);let _0x1798f7=_0x18e398,_0x2a4ad1='';return _0x4dfa19&&(_0x1798f7=_0x4dfa19['label'],_0x2a4ad1=this['editor']['locale']['_t'](_0x1798f7)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20background\x20color:*\x20%0',_0x2a4ad1)['trim'](),'color':{'value':_0x18e398,'title':_0x2a4ad1||_0x1798f7}};}return{'type':'format','content':t('*Reset\x20font\x20background\x20color*')};}}});}['_enableCommand'](_0x32b725){const _0x2aa470=this['editor'];_0x2aa470['plugins']['get']('TrackChangesEditing')['enableCommand'](_0x32b725,(_0x112504,_0xc7c0b={})=>{const _0x47aba8=_0x2aa470['model']['document']['selection'],_0x495e5b=_0xc7c0b['value'];_0x47aba8['isCollapsed']?_0x112504(_0xc7c0b):_0x2aa470['model']['change'](()=>{const _0x12fccc=Array['from'](_0x47aba8['getRanges']());for(const _0x932277 of _0x12fccc){const _0x1637f8=_0x495e5b?[_0x932277]:Rt(_0x32b725,_0x932277,_0x2aa470['model']);for(const _0x59038f of _0x1637f8)_0x2aa470['plugins']['get']('TrackChangesEditing')['markInlineFormat'](_0x59038f,{'commandName':_0x32b725,'commandParams':[{'value':_0x495e5b}]});}});});}}
23
+ const _0x3820=['*Set\x20font\x20background\x20color:*\x20%0','editor','normalizeSizeOptions','model','*Set\x20font\x20color:*\x20%0','toLowerCase','*Reset\x20font\x20color*','FontColorEditing','*Reset\x20font\x20background\x20color*','label','FontSize','from','fontBackgroundColor.colors','has','selection','FontSizeEditing','registerDescriptionCallback','TrackChangesEditing','commandParams','config','FontBackgroundColorEditing','fontFamily','fontColor.colors','fontBackgroundColor','*Reset\x20font\x20family*','locale','find','value','fontSize','format','plugins','fontColor','trim','title','*Set\x20font\x20family:*\x20%0','_enableCommand','get','getRanges','commandName','*Reset\x20font\x20size*'];(function(_0x4b832f,_0x38208b){const _0x5506d7=function(_0x1acfc2){while(--_0x1acfc2){_0x4b832f['push'](_0x4b832f['shift']());}};_0x5506d7(++_0x38208b);}(_0x3820,0x1a1));const _0x5506=function(_0x4b832f,_0x38208b){_0x4b832f=_0x4b832f-0x0;let _0x5506d7=_0x3820[_0x4b832f];return _0x5506d7;};import{Plugin as _0x1655a8}from'ckeditor5/src/core';import{normalizeColorOptions as _0x1588f5}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x36fd2a}from'./utils';import{getTranslation as _0x263d83}from'../utils/common-translations';const Bt=[{'pluginName':_0x5506('0x26'),'commandName':_0x5506('0xb')},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':_0x5506('0x1e'),'commandName':'fontColor'},{'pluginName':_0x5506('0x3'),'commandName':_0x5506('0x6')}];export default class W extends _0x1655a8{['afterInit'](){const _0x1e3928=this[_0x5506('0x18')][_0x5506('0x8')];for(const {pluginName:_0x92806f,commandName:_0x2a827b}of Bt)this[_0x5506('0x18')][_0x5506('0xd')][_0x5506('0x24')](_0x92806f)&&this[_0x5506('0x12')](_0x2a827b);this['editor'][_0x5506('0xd')][_0x5506('0x13')]('TrackChangesEditing')['_descriptionFactory'][_0x5506('0x27')](_0x567fa1=>{const {data:_0x5a2c4a}=_0x567fa1;if(null!=_0x5a2c4a){if(_0x5506('0xb')==_0x5a2c4a['commandName']){const _0x37a8b8=_0x5a2c4a[_0x5506('0x1')][0x0][_0x5506('0xa')];if(_0x37a8b8){const _0x5e009c=this[_0x5506('0x18')][_0x5506('0xd')]['get'](_0x5506('0x21'))[_0x5506('0x19')](this['editor'][_0x5506('0x2')][_0x5506('0x13')]('fontSize.options'))[_0x5506('0x9')](_0x2c2adf=>_0x2c2adf[_0x5506('0x1a')]==_0x37a8b8)[_0x5506('0x10')],_0x478fc6=this['editor']['locale']['_t'](_0x5e009c)['toLowerCase']();return{'type':_0x5506('0xc'),'content':_0x263d83(_0x1e3928,'*Set\x20font\x20size:*\x20%0',_0x478fc6)};}return{'type':_0x5506('0xc'),'content':_0x263d83(_0x1e3928,_0x5506('0x16'))};}if(_0x5506('0x4')==_0x5a2c4a[_0x5506('0x15')]){const _0x3cee88=_0x5a2c4a[_0x5506('0x1')][0x0]['value'];return _0x3cee88?{'type':_0x5506('0xc'),'content':_0x263d83(_0x1e3928,_0x5506('0x11'),_0x3cee88)}:{'type':_0x5506('0xc'),'content':_0x263d83(_0x1e3928,_0x5506('0x7'))};}if(_0x5506('0xe')==_0x5a2c4a[_0x5506('0x15')]){const _0x28e50c=_0x5a2c4a['commandParams'][0x0]['value'];if(_0x28e50c){const _0xc9632a=_0x1588f5(this['editor'][_0x5506('0x2')]['get'](_0x5506('0x5')))['find'](_0x1ba5fb=>_0x1ba5fb[_0x5506('0x1a')]==_0x28e50c);let _0x29af97=_0x28e50c,_0x33d683='';return _0xc9632a&&(_0x29af97=_0xc9632a[_0x5506('0x20')],_0x33d683=_0x1e3928['_t'](_0x29af97)[_0x5506('0x1c')]()),{'type':'format','content':_0x263d83(_0x1e3928,_0x5506('0x1b'),_0x33d683)[_0x5506('0xf')](),'color':{'value':_0x28e50c,'title':_0x33d683||_0x29af97}};}return{'type':_0x5506('0xc'),'content':_0x263d83(_0x1e3928,_0x5506('0x1d'))};}if(_0x5506('0x6')==_0x5a2c4a[_0x5506('0x15')]){const _0x185887=_0x5a2c4a[_0x5506('0x1')][0x0]['value'];if(_0x185887){const _0x597ff2=_0x1588f5(this[_0x5506('0x18')][_0x5506('0x2')][_0x5506('0x13')](_0x5506('0x23')))['find'](_0x41e8d7=>_0x41e8d7[_0x5506('0x1a')]==_0x185887);let _0x281203=_0x185887,_0x409294='';return _0x597ff2&&(_0x281203=_0x597ff2[_0x5506('0x20')],_0x409294=_0x1e3928['_t'](_0x281203)[_0x5506('0x1c')]()),{'type':_0x5506('0xc'),'content':_0x263d83(_0x1e3928,_0x5506('0x17'),_0x409294)['trim'](),'color':{'value':_0x185887,'title':_0x409294||_0x281203}};}return{'type':'format','content':_0x263d83(_0x1e3928,_0x5506('0x1f'))};}}});}[_0x5506('0x12')](_0x5ce846){const _0x121b83=this[_0x5506('0x18')];_0x121b83[_0x5506('0xd')]['get']('TrackChangesEditing')['enableCommand'](_0x5ce846,(_0x16d488,_0x25b752={})=>{const _0x25d851=_0x121b83[_0x5506('0x1a')]['document'][_0x5506('0x25')],_0x1f40ee=_0x25b752[_0x5506('0xa')];_0x25d851['isCollapsed']?_0x16d488(_0x25b752):_0x121b83[_0x5506('0x1a')]['change'](()=>{const _0x40a684=Array[_0x5506('0x22')](_0x25d851[_0x5506('0x14')]());for(const _0x3ab409 of _0x40a684){const _0xcc45c2=_0x1f40ee?[_0x3ab409]:_0x36fd2a(_0x5ce846,_0x3ab409,_0x121b83['model']);for(const _0x2ee138 of _0xcc45c2)_0x121b83[_0x5506('0xd')][_0x5506('0x13')](_0x5506('0x0'))['markInlineFormat'](_0x2ee138,{'commandName':_0x5ce846,'commandParams':[{'value':_0x1f40ee}]});}});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0xb47d62}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x32ec1d}from'./utils';export default class q extends _0xb47d62{['afterInit'](){const _0x36004d=this['editor'],{t:t}=_0x36004d['locale'],_0x4279be=_0x36004d['config']['get']('heading.options');if(!_0x36004d['plugins']['has']('HeadingEditing'))return;const _0x117ed7=_0x36004d['plugins']['get']('TrackChangesEditing');_0x117ed7['enableCommand']('heading',(_0x2ad656,_0x5a3605)=>{const _0xe95430=_0x5a3605['value'],_0x4445ab=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1cece6=>function(_0x3d23e,_0xfd7b23,_0x5d223c){return _0x5d223c['checkChild'](_0x3d23e['parent'],_0xfd7b23)&&!_0x5d223c['isObject'](_0x3d23e)&&_0x3d23e['name']!=_0xfd7b23;}(_0x1cece6,_0xe95430,this['editor']['model']['schema']));_0x36004d['model']['change'](()=>{for(const _0x1608d0 of _0x4445ab)_0x117ed7['markBlockFormat'](_0x1608d0,{'commandName':'heading','commandParams':[_0x5a3605],'formatGroupId':'blockName'},_0x32ec1d(_0x1608d0));});});for(const _0x21663b of _0x4279be)'paragraph'!=_0x21663b['model']&&_0x117ed7['_descriptionFactory']['registerElementLabel'](_0x21663b['model'],_0x4210f4=>{const _0x49bdba=tn(_0x21663b['model']);return null!==_0x49bdba?_0x3746ad(_0x4210f4,_0x49bdba):_0xcd77d7(_0x4210f4,_0x21663b['title']);});function _0x3746ad(_0x5b23cf,_0x11af11){return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},[_0x5b23cf,_0x11af11]);}function _0xcd77d7(_0x38e7b4,_0x521355){return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},[_0x38e7b4,_0x521355]);}_0x117ed7['_descriptionFactory']['registerDescriptionCallback'](_0x5bd689=>{const {type:_0x201986,data:_0x48d3ca}=_0x5bd689;if('formatBlock'==_0x201986&&_0x48d3ca&&'heading'==_0x48d3ca['commandName']){const _0x580367=_0x48d3ca['commandParams'][0x0]['value'],_0x437f4d=tn(_0x580367);if(null!==_0x437f4d)return{'type':'format','content':t('*Change\x20to:*\x20%0',_0x3746ad(0x1,_0x437f4d))};const _0x3ee6f1=_0x4279be['find'](_0xb19343=>_0xb19343['model']===_0x580367)['title'];return{'type':'format','content':t('*Change\x20to:*\x20%0',_0xcd77d7(0x1,_0x3ee6f1))};}});}}function tn(_0xb976f8){const _0x46ca4e=_0xb976f8['match'](/^heading(\d+)$/);return _0x46ca4e?_0x46ca4e[0x1]:null;}
23
+ const _0x389b=['filter','document','parent','_descriptionFactory','value','*Change\x20to:*\x20%0','checkChild','TrackChangesEditing','afterInit','markBlockFormat','has','match','blockName','model','registerElementLabel','get','name','paragraph','from','HeadingEditing','title','plugins','format','editor','locale','selection','formatBlock','schema','heading'];(function(_0x449776,_0x389b0b){const _0xe2f2d1=function(_0x37c296){while(--_0x37c296){_0x449776['push'](_0x449776['shift']());}};_0xe2f2d1(++_0x389b0b);}(_0x389b,0x184));const _0xe2f2=function(_0x449776,_0x389b0b){_0x449776=_0x449776-0x0;let _0xe2f2d1=_0x389b[_0x449776];return _0xe2f2d1;};import{Plugin as _0x23cfae}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x120c63}from'./utils';import{getTranslation as _0x538c0}from'../utils/common-translations';export default class z extends _0x23cfae{[_0xe2f2('0x1a')](){const _0x39fabe=this[_0xe2f2('0xc')],_0x48a04d=_0x39fabe[_0xe2f2('0xd')],_0x465d08=_0x39fabe['config'][_0xe2f2('0x4')]('heading.options');if(!_0x39fabe[_0xe2f2('0xa')][_0xe2f2('0x1c')](_0xe2f2('0x8')))return;const _0x414d7b=_0x39fabe[_0xe2f2('0xa')]['get'](_0xe2f2('0x19'));_0x414d7b['enableCommand'](_0xe2f2('0x11'),(_0x5da9f2,_0x6b821a)=>{const _0x3a6089=_0x6b821a[_0xe2f2('0x16')],_0x1ec757=Array[_0xe2f2('0x7')](this['editor'][_0xe2f2('0x2')][_0xe2f2('0x13')][_0xe2f2('0xe')]['getSelectedBlocks']())[_0xe2f2('0x12')](_0x3469ad=>function(_0x5e3981,_0x1143a5,_0x72a481){return _0x72a481[_0xe2f2('0x18')](_0x5e3981[_0xe2f2('0x14')],_0x1143a5)&&!_0x72a481['isObject'](_0x5e3981)&&_0x5e3981[_0xe2f2('0x5')]!=_0x1143a5;}(_0x3469ad,_0x3a6089,this[_0xe2f2('0xc')][_0xe2f2('0x2')][_0xe2f2('0x10')]));_0x39fabe['model']['change'](()=>{for(const _0x2b78bd of _0x1ec757)_0x414d7b[_0xe2f2('0x1b')](_0x2b78bd,{'commandName':'heading','commandParams':[_0x6b821a],'formatGroupId':_0xe2f2('0x1')},_0x120c63(_0x2b78bd));});});for(const _0x44940b of _0x465d08)_0xe2f2('0x6')!=_0x44940b[_0xe2f2('0x2')]&&_0x414d7b[_0xe2f2('0x15')][_0xe2f2('0x3')](_0x44940b[_0xe2f2('0x2')],_0x40c5c1=>{const _0x459ebb=Ht(_0x44940b[_0xe2f2('0x2')]);return null!==_0x459ebb?_0x200d50(_0x40c5c1,_0x459ebb):_0x2191d7(_0x40c5c1,_0x44940b[_0xe2f2('0x9')]);});function _0x200d50(_0x1b15f0,_0x36aa1d){return _0x538c0(_0x48a04d,'ELEMENT_HEADING',[_0x1b15f0,_0x36aa1d]);}function _0x2191d7(_0x59bac9,_0x1e6a14){return _0x538c0(_0x48a04d,'ELEMENT_HEADING_CUSTOM',[_0x59bac9,_0x1e6a14]);}_0x414d7b['_descriptionFactory']['registerDescriptionCallback'](_0x3a2053=>{const {type:_0x3b41f4,data:_0x148390}=_0x3a2053;if(_0xe2f2('0xf')==_0x3b41f4&&_0x148390&&'heading'==_0x148390['commandName']){const _0x19dbc1=_0x148390['commandParams'][0x0][_0xe2f2('0x16')],_0x9ea000=Ht(_0x19dbc1);if(null!==_0x9ea000)return{'type':_0xe2f2('0xb'),'content':_0x538c0(_0x48a04d,_0xe2f2('0x17'),_0x200d50(0x1,_0x9ea000))};const _0x3cb937=_0x465d08['find'](_0x502b78=>_0x502b78[_0xe2f2('0x2')]===_0x19dbc1)[_0xe2f2('0x9')];return{'type':_0xe2f2('0xb'),'content':_0x538c0(_0x48a04d,_0xe2f2('0x17'),_0x2191d7(0x1,_0x3cb937))};}});}}function Ht(_0x4ee497){const _0x16dfce=_0x4ee497[_0xe2f2('0x0')](/^heading(\d+)$/);return _0x16dfce?_0x16dfce[0x1]:null;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x445cd4}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';export default class H extends _0x445cd4{['afterInit'](){const _0x23a06d=this['editor'];if(!_0x23a06d['plugins']['has']('HighlightEditing'))return;const _0xda63aa=_0x23a06d['plugins']['get']('TrackChangesEditing');_0xda63aa['enableCommand']('highlight',(_0x3be3f6,_0x45f48e={})=>{const _0x1fb076=_0x23a06d['model']['document']['selection'],_0x54c517=_0x1fb076['getAttribute']('highlight');let _0x1db34a=_0x45f48e['value'],_0x242d2c=[];if(_0x1fb076['isCollapsed']){const _0x5a1fae=_0x1fb076['getFirstPosition']();if(!_0x1fb076['hasAttribute']('highlight'))return void _0x3be3f6(_0x45f48e);{const _0x5971ab=_0x2cb28b=>_0x2cb28b['item']['getAttribute']('highlight')===_0x54c517,_0x44b6ff=_0x5a1fae['getLastMatchingPosition'](_0x5971ab,{'direction':'backward'}),_0xd5564=_0x5a1fae['getLastMatchingPosition'](_0x5971ab);_0x242d2c=[_0x23a06d['model']['createRange'](_0x44b6ff,_0xd5564)],_0x1db34a==_0x54c517&&(_0x1db34a=null);}}else for(const _0x3fd12c of _0x1fb076['getRanges']())_0x1db34a?_0x242d2c['push'](_0x3fd12c):_0x242d2c['push'](...Rt('highlight',_0x3fd12c,_0x23a06d['model']));_0x23a06d['model']['change'](()=>{for(const _0x57c7e7 of _0x242d2c)_0xda63aa['markInlineFormat'](_0x57c7e7,{'commandName':'highlight','commandParams':[{'value':_0x1db34a}]});});});const {t:t}=_0x23a06d['locale'];_0xda63aa['_descriptionFactory']['registerDescriptionCallback'](_0x3e8bee=>{const {type:_0x3db140,data:_0x27946a}=_0x3e8bee;if('formatInline'==_0x3db140&&_0x27946a&&'highlight'==_0x27946a['commandName']){const _0x5f42d5=_0x27946a['commandParams'][0x0]['value'];if(_0x5f42d5){const _0x2e9346=_0x23a06d['config']['get']('highlight.options')['find'](_0x5da34b=>_0x5da34b['model']==_0x5f42d5),_0x56f92b=_0x23a06d['locale']['_t'](_0x2e9346['title'])['toLowerCase']();return{'type':'format','content':t('*Set\x20highlight:*\x20%0',_0x56f92b),'color':{'value':_0x2e9346['color'],'title':_0x2e9346['title']}};}return{'type':'format','content':t('*Remove\x20highlight*',t({'string':'highlight','id':'FORMAT_HIGHLIGHT'}))};}});}}
23
+ const _0x33d4=['TrackChangesEditing','config','getRanges','FORMAT_HIGHLIGHT','getFirstPosition','markInlineFormat','getAttribute','model','formatInline','highlight','isCollapsed','backward','document','registerDescriptionCallback','createRange','editor','HighlightEditing','find','*Set\x20highlight:*\x20%0','hasAttribute','format','_descriptionFactory','plugins','push','title','get','value','color','getLastMatchingPosition'];(function(_0x36220f,_0x33d401){const _0x164e81=function(_0xd9a1bf){while(--_0xd9a1bf){_0x36220f['push'](_0x36220f['shift']());}};_0x164e81(++_0x33d401);}(_0x33d4,0x147));const _0x164e=function(_0x36220f,_0x33d401){_0x36220f=_0x36220f-0x0;let _0x164e81=_0x33d4[_0x36220f];return _0x164e81;};import{Plugin as _0x20f7b9}from'ckeditor5/src/core';import{getTranslation as _0x340e32}from'../utils/common-translations';import{getRangesWithAttribute as _0x2c71a0}from'./utils';export default class J extends _0x20f7b9{['afterInit'](){const _0x5399dc=this[_0x164e('0x7')];if(!_0x5399dc[_0x164e('0xe')]['has'](_0x164e('0x8')))return;const _0x364d6e=_0x5399dc['plugins'][_0x164e('0x11')](_0x164e('0x15'));_0x364d6e['enableCommand']('highlight',(_0x53e201,_0x3e0723={})=>{const _0x3a785c=_0x5399dc[_0x164e('0x1c')][_0x164e('0x4')]['selection'],_0x5ab071=_0x3a785c[_0x164e('0x1b')](_0x164e('0x1'));let _0x5b3b36=_0x3e0723['value'],_0x469c2a=[];if(_0x3a785c[_0x164e('0x2')]){const _0x1a1966=_0x3a785c[_0x164e('0x19')]();if(!_0x3a785c[_0x164e('0xb')]('highlight'))return void _0x53e201(_0x3e0723);{const _0x3b453b=_0x2df0dc=>_0x2df0dc['item'][_0x164e('0x1b')]('highlight')===_0x5ab071,_0x127015=_0x1a1966[_0x164e('0x14')](_0x3b453b,{'direction':_0x164e('0x3')}),_0x2e920c=_0x1a1966['getLastMatchingPosition'](_0x3b453b);_0x469c2a=[_0x5399dc['model'][_0x164e('0x6')](_0x127015,_0x2e920c)],_0x5b3b36==_0x5ab071&&(_0x5b3b36=null);}}else for(const _0xe9db10 of _0x3a785c[_0x164e('0x17')]())_0x5b3b36?_0x469c2a[_0x164e('0xf')](_0xe9db10):_0x469c2a[_0x164e('0xf')](..._0x2c71a0('highlight',_0xe9db10,_0x5399dc[_0x164e('0x1c')]));_0x5399dc[_0x164e('0x1c')]['change'](()=>{for(const _0x3a3b2c of _0x469c2a)_0x364d6e[_0x164e('0x1a')](_0x3a3b2c,{'commandName':'highlight','commandParams':[{'value':_0x5b3b36}]});});});const _0x1c76bd=_0x5399dc['locale'];_0x364d6e[_0x164e('0xd')][_0x164e('0x5')](_0x298378=>{const {type:_0x2e4aba,data:_0x3fd6cb}=_0x298378;if(_0x164e('0x0')==_0x2e4aba&&_0x3fd6cb&&_0x164e('0x1')==_0x3fd6cb['commandName']){const _0x2562ca=_0x3fd6cb['commandParams'][0x0][_0x164e('0x12')];if(_0x2562ca){const _0x474850=_0x5399dc[_0x164e('0x16')][_0x164e('0x11')]('highlight.options')[_0x164e('0x9')](_0x2ce18e=>_0x2ce18e[_0x164e('0x1c')]==_0x2562ca),_0x41484f=_0x1c76bd['_t'](_0x474850['title'])['toLowerCase']();return{'type':_0x164e('0xc'),'content':_0x340e32(_0x1c76bd,_0x164e('0xa'),_0x41484f),'color':{'value':_0x474850[_0x164e('0x13')],'title':_0x474850[_0x164e('0x10')]}};}return{'type':'format','content':_0x340e32(_0x1c76bd,'*Remove\x20highlight*',_0x340e32(_0x1c76bd,_0x164e('0x18')))};}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1315c3}from'ckeditor5/src/core';export default class W extends _0x1315c3{['afterInit'](){const _0x326a24=this['editor'];if(!_0x326a24['plugins']['has']('HorizontalLineEditing'))return;_0x326a24['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4f170b=_0x326a24['plugins']['get']('TrackChangesEditing'),{t:t}=_0x326a24['locale'];_0x4f170b['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x2dea16=>t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x2dea16)),_0x326a24['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4b8826,{writer:_0x1a80e5,options:_0xfd3487})=>{if(!_0xfd3487['showSuggestionHighlights'])return;const _0x3161ca=_0x1a80e5['createContainerElement']('div'),_0x5e25ee=_0x1a80e5['createEmptyElement']('hr');return _0x1a80e5['addClass']('ck-horizontal-line',_0x3161ca),_0x1a80e5['insert'](_0x1a80e5['createPositionAt'](_0x3161ca,0x0),_0x5e25ee),_0x3161ca;},'converterPriority':'high'});}}
23
+ const _0x1d80=['_descriptionFactory','createContainerElement','createEmptyElement','insert','has','for','plugins','registerElementLabel','enableCommand','HorizontalLineEditing','ELEMENT_HORIZONTAL_LINE','ck-horizontal-line','TrackChangesEditing','div','dataDowncast','get','horizontalLine','editor','conversion','high','elementToStructure'];(function(_0x56f2dc,_0x1d80cc){const _0xc487a6=function(_0x5b314c){while(--_0x5b314c){_0x56f2dc['push'](_0x56f2dc['shift']());}};_0xc487a6(++_0x1d80cc);}(_0x1d80,0x1d1));const _0xc487=function(_0x56f2dc,_0x1d80cc){_0x56f2dc=_0x56f2dc-0x0;let _0xc487a6=_0x1d80[_0x56f2dc];return _0xc487a6;};import{Plugin as _0x59cbe4}from'ckeditor5/src/core';import{getTranslation as _0x36936b}from'../utils/common-translations';export default class K extends _0x59cbe4{['afterInit'](){const _0x45d4f3=this[_0xc487('0xe')];if(!_0x45d4f3[_0xc487('0x3')][_0xc487('0x1')](_0xc487('0x6')))return;_0x45d4f3[_0xc487('0x3')][_0xc487('0xc')](_0xc487('0x9'))[_0xc487('0x5')](_0xc487('0xd'));const _0x33bebb=_0x45d4f3[_0xc487('0x3')][_0xc487('0xc')](_0xc487('0x9')),_0x499930=_0x45d4f3['locale'];_0x33bebb[_0xc487('0x12')][_0xc487('0x4')]('horizontalLine',_0x31a3d3=>_0x36936b(_0x499930,_0xc487('0x7'),_0x31a3d3)),_0x45d4f3[_0xc487('0xf')][_0xc487('0x2')](_0xc487('0xb'))[_0xc487('0x11')]({'model':_0xc487('0xd'),'view':(_0x205545,{writer:_0x441acb,options:_0x47e980})=>{if(!_0x47e980['showSuggestionHighlights'])return;const _0x4e786d=_0x441acb[_0xc487('0x13')](_0xc487('0xa')),_0x266d96=_0x441acb[_0xc487('0x14')]('hr');return _0x441acb['addClass'](_0xc487('0x8'),_0x4e786d),_0x441acb[_0xc487('0x0')](_0x441acb['createPositionAt'](_0x4e786d,0x0),_0x266d96),_0x4e786d;},'converterPriority':_0xc487('0x10')});}}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, 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 _0x3f4d=['enableCommand','TrackChangesEditing','value','rawHtmlApi','change','getCustomProperty','_descriptionFactory','markBlockFormat','commandName','ELEMENT_HTML_EMBED','registerDescriptionCallback','document','get','element','htmlEmbed','rawHtml','view','getAttribute','getSelectedElement','editing','has','plugins','cancel','format'];(function(_0x4811f2,_0x3f4d6f){const _0x5a16f7=function(_0x13cdf7){while(--_0x13cdf7){_0x4811f2['push'](_0x4811f2['shift']());}};_0x5a16f7(++_0x3f4d6f);}(_0x3f4d,0x193));const _0x5a16=function(_0x4811f2,_0x3f4d6f){_0x4811f2=_0x4811f2-0x0;let _0x5a16f7=_0x3f4d[_0x4811f2];return _0x5a16f7;};import{Plugin as _0x1f05bd}from'ckeditor5/src/core';import{getTranslation as _0x318076}from'../utils/common-translations';export default class Q extends _0x1f05bd{['afterInit'](){const _0x22337a=this['editor'];if(!_0x22337a['plugins'][_0x5a16('0x1')]('HtmlEmbed'))return;const _0x333b8b=_0x22337a[_0x5a16('0x2')]['get'](_0x5a16('0x6')),_0x3f7590=_0x22337a['locale'],_0x38551c=_0x22337a[_0x5a16('0x0')][_0x5a16('0x15')][_0x5a16('0x10')]['selection'];_0x333b8b[_0x5a16('0xb')]['registerElementLabel'](_0x5a16('0x14'),_0x46a3ac=>_0x318076(_0x3f7590,_0x5a16('0xe'),_0x46a3ac)),_0x22337a[_0x5a16('0x2')][_0x5a16('0x11')]('TrackChangesEditing')[_0x5a16('0x5')](_0x5a16('0x13'),(_0x1fc9a8,_0x1a7bba)=>{const _0x27be7b=_0x22337a['model'],_0x5d33fa=_0x27be7b[_0x5a16('0x10')]['selection'];_0x27be7b[_0x5a16('0x9')](()=>{const _0x17879f=function(_0x24d57e){const _0x3a99c3=_0x24d57e[_0x5a16('0x17')]();if(_0x3a99c3&&_0x3a99c3['is'](_0x5a16('0x12'),_0x5a16('0x14')))return _0x24d57e['getSelectedElement']();return null;}(_0x5d33fa);if(!_0x17879f)return void _0x1fc9a8(null);const _0x47e4ba=_0x17879f[_0x5a16('0x16')](_0x5a16('0x7'))||'';if(void 0x0===_0x1a7bba)return;if(_0x1a7bba===_0x47e4ba)return;_0x333b8b[_0x5a16('0xc')](_0x17879f,{'commandName':_0x5a16('0x13'),'commandParams':[_0x1a7bba]}),_0x38551c[_0x5a16('0x17')]()[_0x5a16('0xa')](_0x5a16('0x8'))[_0x5a16('0x3')]();});}),_0x333b8b[_0x5a16('0xb')][_0x5a16('0xf')](_0x1f083a=>{const {data:_0x40cf1b}=_0x1f083a;if(_0x40cf1b&&_0x5a16('0x13')==_0x40cf1b[_0x5a16('0xd')]){const _0x25ded6=_0x318076(_0x3f7590,_0x5a16('0xe'));return{'type':_0x5a16('0x4'),'content':_0x318076(_0x3f7590,'*Change\x20%0\x20content*',_0x25ded6)};}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3abc38}from'ckeditor5/src/core';import{LivePosition as te}from'ckeditor5/src/engine';import{uid as _0xe2a4f5}from'ckeditor5/src/utils';export default class z extends _0x3abc38{['afterInit'](){const _0x5d1fb1=this['editor'];if(!_0x5d1fb1['plugins']['has']('ImageEditing'))return;const _0x29a2c7=_0x5d1fb1['plugins']['get']('TrackChangesEditing'),_0x54c22e=_0x5d1fb1['plugins']['get']('ImageUtils'),_0x337e07={},{t:t}=_0x5d1fb1['locale'];if(_0x29a2c7['enableCommand']('insertImage'),_0x29a2c7['_descriptionFactory']['registerElementLabel']('imageBlock',_0x2c88fb=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2c88fb)),_0x29a2c7['_descriptionFactory']['registerElementLabel']('imageInline',_0x4a0123=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4a0123)),_0x29a2c7['_descriptionFactory']['registerElementLabel']('caption',t({'string':'caption','id':'ELEMENT_CAPTION'})),_0x5d1fb1['plugins']['has']('ImageUploadEditing')&&_0x29a2c7['enableCommand']('uploadImage'),_0x5d1fb1['plugins']['has']('ImageBlockEditing')&&_0x5d1fb1['plugins']['has']('ImageInlineEditing')&&(_0x29a2c7['enableCommand']('imageTypeInline',(_0xd929e2,_0x4a27fe)=>{const _0x5057dd=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']);_0x5d1fb1['model']['change'](()=>{_0x29a2c7['markBlockFormat'](_0x5057dd,{'commandName':'imageTypeInline','commandParams':[_0x4a27fe]},[],'convertBlockImageToInline');});}),_0x29a2c7['enableCommand']('imageTypeBlock',(_0xefaade,_0x5b6531)=>{_0x5d1fb1['model']['change'](_0x49fd41=>{let _0x198628=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']),_0x14ead2=_0x49fd41['createRangeOn'](_0x198628);const _0x493104=te['fromPosition'](_0x14ead2['start'],'toPrevious'),_0xd94499=te['fromPosition'](_0x14ead2['end'],'toNext');_0x29a2c7['forceDefaultExecution'](()=>_0xefaade(_0x5b6531)),_0x198628=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']),_0x14ead2=_0x49fd41['createRangeOn'](_0x198628);const _0x2fb690=_0x49fd41['createRange'](_0x493104,_0xd94499);_0x493104['detach'](),_0xd94499['detach'](),_0x29a2c7['markBlockFormat'](_0x198628,{'commandName':'imageTypeInline'},[],'convertInlineImageToBlock'),_0x2fb690['start']['isBefore'](_0x14ead2['start'])&&_0x29a2c7['markInsertion'](_0x49fd41['createRange'](_0x2fb690['start'],_0x14ead2['start']),'convertInlineImageToBlock'),_0x14ead2['end']['isBefore'](_0x2fb690['end'])&&_0x29a2c7['markInsertion'](_0x49fd41['createRange'](_0x14ead2['end'],_0x2fb690['end']),'convertInlineImageToBlock');});}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>{}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>{}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x29a2c7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>{}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x129576])=>{const _0x3f7636=_0x29a2c7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1da999=_0x129576['start'],_0x1efad2=_0x129576['end'];const _0x38c554=_0x5d1fb1['model']['schema']['getNearestSelectionRange'](_0x1da999,'backward'),_0x1455a8=_0x5d1fb1['model']['schema']['getNearestSelectionRange'](_0x1efad2,'forward');_0x38c554['isCollapsed']&&(_0x1da999=_0x38c554['start']),_0x1455a8['isCollapsed']&&(_0x1efad2=_0x1455a8['end']),_0x3f7636([_0x5d1fb1['model']['createRange'](_0x1da999,_0x1efad2)]);}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x417d1f),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x417d1f)),_0x5d1fb1['plugins']['has']('ImageCaptionEditing')&&(_0x29a2c7['enableCommand']('toggleImageCaption',(_0x2f86e8,_0x675b84)=>{const _0x236cbe=_0x5d1fb1['plugins']['get']('ImageCaptionUtils');let _0x5eaa06=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']),_0x585ff7=_0x236cbe['getCaptionFromImageModelElement'](_0x5eaa06);_0x5d1fb1['model']['change'](()=>{if(_0x585ff7)return void _0x29a2c7['markDeletion'](_0x5d1fb1['model']['createRangeOn'](_0x585ff7));const _0x22b52f=_0x54c22e['isBlockImage'](_0x5eaa06);_0x2f86e8(_0x675b84),_0x5eaa06=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']),_0x585ff7=_0x236cbe['getCaptionFromImageModelElement'](_0x5eaa06),_0x29a2c7['markInsertion'](_0x5d1fb1['model']['createRangeOn'](_0x585ff7),_0x22b52f?null:'imageCaption');});}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x417d1f)),_0x5d1fb1['plugins']['has']('ImageStyleEditing')){_0x29a2c7['enableCommand']('imageStyle',(_0x442579,_0xcc67e1)=>{const _0x248006=_0x5d1fb1['plugins']['get']('Users')['me'],_0x49e9a1=_0x5d1fb1['commands']['get']('imageStyle');let _0x2c414a=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']),_0x1d6940=_0x5d1fb1['model']['createRangeOn'](_0x2c414a),_0x256d12=_0x49e9a1['value'];if(_0x256d12==_0xcc67e1['value'])return;const _0x28d9c6={'commandName':'imageStyle','commandParams':[_0xcc67e1],'formatGroupId':_0xe2a4f5()};_0x5d1fb1['model']['change'](()=>{if(_0x29a2c7['getSuggestions']()['filter'](_0x4884e0=>_0x4884e0['isInContent']&&_0x248006==_0x4884e0['author']&&('formatBlock'==_0x4884e0['type']||'formatInline'==_0x4884e0['type'])&&('imageStylePreApply'==_0x4884e0['subType']||'imageStylePostApply'==_0x4884e0['subType'])&&_0x4884e0['getFirstRange']()['isEqual'](_0x1d6940))['forEach'](_0x1a737a=>_0x29a2c7['discardSuggestion'](_0x1a737a['head'])),_0x2c414a=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']),_0x1d6940=_0x5d1fb1['model']['createRangeOn'](_0x2c414a),_0x49e9a1['refresh'](),_0x5d1fb1['commands']['get']('imageTypeInline')['refresh'](),_0x5d1fb1['commands']['get']('imageTypeBlock')['refresh'](),_0x256d12=_0x49e9a1['value'],_0x256d12!=_0xcc67e1['value'])return _0x54c22e['isInlineImage'](_0x2c414a)&&_0x49e9a1['shouldConvertImageType'](_0xcc67e1['value'],_0x2c414a)?(_0x442579(_0xcc67e1),_0x2c414a=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']),void _0x29a2c7['markBlockFormat'](_0x2c414a,{..._0x28d9c6,'commandReversedParams':[{'value':_0x256d12||null}]},[],'imageStylePreApply')):void(_0x54c22e['isBlockImage'](_0x2c414a)?_0x29a2c7['markBlockFormat'](_0x2c414a,_0x28d9c6,[],'imageStylePostApply'):_0x29a2c7['markInlineFormat'](_0x1d6940,_0x28d9c6,'imageStylePostApply'));});});for(const _0x582f24 of _0x5d1fb1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x337e07[_0x582f24['name']]=_0x582f24['title']['toLowerCase']();_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>{}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>{}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>{}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',()=>{}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x52c507,_0x4326cc)=>{_0x29a2c7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x52c507,{'commandName':_0x4326cc['commandName'],'commandParams':_0x4326cc['commandReversedParams']});}),_0x29a2c7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',_0x417d1f);}const _0x12c528=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x29c753(_0x11b565,_0x341fa7){const _0x5ba78a=_0x12c528['findIndex'](({type:_0x5ad095,subType:_0x2aed18})=>_0x11b565['type']==_0x5ad095&&_0x11b565['subType']==_0x2aed18),_0x399544=_0x12c528['findIndex'](({type:_0x43af76,subType:_0x15dd46})=>_0x341fa7['type']==_0x43af76&&_0x341fa7['subType']==_0x15dd46);if(_0x5ba78a<0x0||_0x399544<0x0)return!0x1;const _0x1cd459=_0x11b565['getFirstRange'](),_0x14fafe=_0x341fa7['getFirstRange']();if((0x0==_0x5ba78a||0x1==_0x5ba78a)&&0x2==_0x399544&&_0x1cd459['isIntersecting'](_0x14fafe))return!0x0;if(0x2==_0x5ba78a&&0x3==_0x399544){const _0x31e85c=_0x29a2c7['_findSuggestions'](_0x1cd459,'insertion')['filter'](({suggestion:_0x1705d0,meta:_0x5adc4c})=>_0x5adc4c['isOwn']&&'convertInlineImageToBlock'==_0x1705d0['subType']);if(_0x31e85c['length']>0x1&&_0x14fafe['end']['isEqual'](_0x1cd459['start']))return!0x0;if(0x1==_0x31e85c['length']&&(_0x1cd459['start']['isEqual'](_0x14fafe['end'])||_0x1cd459['end']['isEqual'](_0x14fafe['start'])))return!0x0;}if(0x3==_0x5ba78a&&0x3==_0x399544&&_0x1cd459['start']['isBefore'](_0x14fafe['start'])){const _0x4119bc=_0x1cd459['end']['nodeAfter'],_0x5d026c=_0x14fafe['start']['nodeBefore'];return _0x54c22e['isBlockImage'](_0x4119bc)&&_0x4119bc===_0x5d026c;}return!0x1;}function _0x417d1f(_0xa7326b,_0x5198c9){return _0x29c753(_0xa7326b,_0x5198c9)?[_0xa7326b,_0x5198c9]:_0x29c753(_0x5198c9,_0xa7326b)?[_0x5198c9,_0xa7326b]:null;}_0x5d1fb1['model']['document']['registerPostFixer'](()=>{let _0x517576=!0x1;const _0xeb9d42=Array['from'](_0x5d1fb1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b0e64,data:_0x4d3ee2}of _0xeb9d42){const {group:_0x28368f,type:_0x4713d4,subType:_0x504fa6,id:_0x259c1}=_0x29a2c7['_splitMarkerName'](_0x5b0e64);if('suggestion'==_0x28368f&&_0x29a2c7['hasSuggestion'](_0x259c1)){if('formatBlock'==_0x4713d4&&('imageStylePreApply'==_0x504fa6||'imageStylePostApply'==_0x504fa6)){const _0x41663f=_0x29a2c7['getSuggestion'](_0x259c1);if(_0x4d3ee2['newRange']){const _0x172a95=_0x41663f['getFirstRange']()['getContainedElement']();if(_0x54c22e['isBlockImage'](_0x172a95))continue;_0x29a2c7['discardSuggestion'](_0x41663f),_0x517576=!0x0;}}if('insertion'==_0x4713d4&&'imageCaption'==_0x504fa6&&!_0x4d3ee2['newRange']){const _0x1a98e6=_0x29a2c7['getSuggestion'](_0x259c1);_0x1a98e6['next']&&_0x1a98e6['next']['isInContent']&&(_0x29a2c7['discardSuggestion'](_0x1a98e6['next']),_0x517576=!0x0);}}}return _0x517576;}),_0x5d1fb1['plugins']['has']('ImageResize')&&_0x29a2c7['enableCommand']('resizeImage',(_0x4610ef,_0x1f13c9)=>{const _0x213768=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']);_0x213768['getAttribute']('width')!=_0x1f13c9['width']&&_0x5d1fb1['model']['change'](()=>{_0x29a2c7['markBlockFormat'](_0x213768,{'commandName':'resizeImage','commandParams':[_0x1f13c9]});});}),_0x5d1fb1['plugins']['has']('ImageTextAlternativeEditing')&&_0x29a2c7['enableCommand']('imageTextAlternative',(_0x3e0083,_0x76156e)=>{const _0x552f0d=_0x54c22e['getClosestSelectedImageElement'](_0x5d1fb1['model']['document']['selection']);(_0x552f0d['hasAttribute']('alt')?_0x552f0d['getAttribute']('alt'):'')!=_0x76156e['newValue']&&_0x5d1fb1['model']['change'](()=>{_0x29a2c7['markBlockFormat'](_0x552f0d,{'commandName':'imageTextAlternative','commandParams':[_0x76156e]});});}),_0x29a2c7['_descriptionFactory']['registerDescriptionCallback'](_0x18e722=>{if(!!_0x12c528['find'](({type:_0x5e6aca,subType:_0x36ed65})=>_0x18e722['type']==_0x5e6aca&&_0x18e722['subType']==_0x36ed65))return _0x18e722['previous']?{}:void 0x0;}),_0x29a2c7['_descriptionFactory']['registerDescriptionCallback'](_0xd79365=>{if('insertion'==_0xd79365['type']||'deletion'==_0xd79365['type']){const _0x3b061a=_0xd79365['getContainedElement']();if(_0x3b061a&&_0x3b061a['is']('element','caption'))return{'type':'insertion'==_0xd79365['type']?'addObject':'removeObject','name':_0x3b061a['name'],'quantity':0x1};}}),_0x29a2c7['_descriptionFactory']['registerDescriptionCallback'](_0xea92c7=>'formatBlock'==_0xea92c7['type']&&'convertInlineImageToBlock'==_0xea92c7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xea92c7['type']&&'convertBlockImageToInline'==_0xea92c7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x29a2c7['_descriptionFactory']['registerDescriptionCallback'](_0x3b22a5=>{const {data:_0x2bad7e}=_0x3b22a5;if(_0x2bad7e){if('imageStyle'==_0x2bad7e['commandName']){const _0x31fb45=_0x2bad7e['commandParams'][0x0]['value'];return _0x5a057a('side'===_0x31fb45?t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'}):_0x337e07[_0x31fb45]||_0x31fb45);}if('imageTextAlternative'==_0x2bad7e['commandName']){const _0x13be7f=_0x2bad7e['commandParams'][0x0]['newValue'];return _0x13be7f?{'type':'format','content':t('*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x13be7f+'\x22')}:{'type':'format','content':t('*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2bad7e['commandName']){const _0x377b08=_0x2bad7e['commandParams'][0x0]['width'];return _0x377b08?{'type':'format','content':t('*Set\x20image\x20width:*\x20%0',_0x377b08)}:{'type':'format','content':t('*Reset\x20image\x20width*')};}}function _0x5a057a(_0x932066){return{'type':'format','content':t('*Format:*\x20%0',_0x932066)};}});}}
23
+ const _0x42bd=['Inline\x20image\x20to\x20block\x20image','locale','isEqual','ImageUploadEditing','getChangedMarkers','markInsertion','subType','caption','*Set\x20image\x20width:*\x20%0','enableCommand','commands','findIndex','imageStyle','registerPostFixer','markDeletion','convertInlineImageToBlock','Block\x20image\x20to\x20inline\x20image','backward','isBlockImage','TrackChangesEditing','commandName','toNext','getClosestSelectedImageElement','refresh','discard','imageTypeBlock','nodeBefore','element','_splitMarkerName','registerElementLabel','side','imageTypeInline','_findSuggestions','getAttribute','type','title','getFirstRange','has','length','getContainedElement','imageBlock','formatBlock','end','shouldConvertImageType','isInlineImage','isBefore','getSuggestion','imageCaption','schema','isOwn','*Remove\x20image\x20text\x20alternative*','get','differ','fromPosition','filter','next','formatInline','width','change','uploadImage','createRange','join','getSuggestionCallback','imageStylePreApply','FORMAT_SIDE_IMAGE','markBlockFormat','newRange','_suggestionFactory','forceDefaultExecution','Users','toPrevious','convertBlockImageToInline','nodeAfter','_descriptionFactory','addObject','isCollapsed','insertion','value','ImageStyleEditing','accept','discardSuggestion','ImageResize','*Format:*\x20%0','commandReversedParams','normalizedStyles','ImageEditing','isIntersecting','imageStylePostApply','resizeImage','ELEMENT_INLINE_IMAGE','getCaptionFromImageModelElement','ImageCaptionUtils','createRangeOn','detach','imageTextAlternative','format','model','*Reset\x20image\x20width*','*Set\x20image\x20text\x20alternative:*\x20%0','registerDescriptionCallback','registerCustomCallback','chain','document','name','plugins','previous','author','forEach','newValue','alt','getNearestSelectionRange','hasAttribute','commandParams','markInlineFormat','selection','isInContent','toLowerCase','start','forward'];(function(_0x339288,_0x42bde6){const _0x92f6ab=function(_0x505cfb){while(--_0x505cfb){_0x339288['push'](_0x339288['shift']());}};_0x92f6ab(++_0x42bde6);}(_0x42bd,0x13c));const _0x92f6=function(_0x339288,_0x42bde6){_0x339288=_0x339288-0x0;let _0x92f6ab=_0x42bd[_0x339288];return _0x92f6ab;};import{Plugin as _0x5e5739}from'ckeditor5/src/core';import{LivePosition as _0x442b11}from'ckeditor5/src/engine';import{uid as _0x3e4cc8}from'ckeditor5/src/utils';import{getTranslation as _0x521df4}from'../utils/common-translations';export default class V extends _0x5e5739{['afterInit'](){const _0x54717b=this['editor'];if(!_0x54717b[_0x92f6('0x1a')]['has'](_0x92f6('0x7')))return;const _0x20a640=_0x54717b[_0x92f6('0x1a')][_0x92f6('0x5c')](_0x92f6('0x3c')),_0x5e81e8=_0x54717b[_0x92f6('0x1a')][_0x92f6('0x5c')]('ImageUtils'),_0x51af55={},_0x300a2c=_0x54717b[_0x92f6('0x2a')];if(_0x20a640[_0x92f6('0x32')]('insertImage'),_0x20a640[_0x92f6('0x72')]['registerElementLabel'](_0x92f6('0x51'),_0x59657e=>_0x521df4(_0x300a2c,'ELEMENT_IMAGE',_0x59657e)),_0x20a640[_0x92f6('0x72')][_0x92f6('0x46')]('imageInline',_0x2cf462=>_0x521df4(_0x300a2c,_0x92f6('0xb'),_0x2cf462)),_0x20a640[_0x92f6('0x72')][_0x92f6('0x46')](_0x92f6('0x30'),_0x521df4(_0x300a2c,'ELEMENT_CAPTION')),_0x54717b[_0x92f6('0x1a')][_0x92f6('0x4e')](_0x92f6('0x2c'))&&_0x20a640[_0x92f6('0x32')](_0x92f6('0x64')),_0x54717b[_0x92f6('0x1a')]['has']('ImageBlockEditing')&&_0x54717b[_0x92f6('0x1a')][_0x92f6('0x4e')]('ImageInlineEditing')&&(_0x20a640['enableCommand']('imageTypeInline',(_0x500d2f,_0x20286e)=>{const _0x1d7873=_0x5e81e8[_0x92f6('0x3f')](_0x54717b[_0x92f6('0x12')][_0x92f6('0x18')][_0x92f6('0x24')]);_0x54717b[_0x92f6('0x12')][_0x92f6('0x63')](()=>{_0x20a640['markBlockFormat'](_0x1d7873,{'commandName':'imageTypeInline','commandParams':[_0x20286e]},[],_0x92f6('0x70'));});}),_0x20a640[_0x92f6('0x32')](_0x92f6('0x42'),(_0x59c21e,_0x4177c3)=>{_0x54717b['model'][_0x92f6('0x63')](_0x36adf0=>{let _0x4e5290=_0x5e81e8[_0x92f6('0x3f')](_0x54717b[_0x92f6('0x12')][_0x92f6('0x18')]['selection']),_0x37b8e6=_0x36adf0[_0x92f6('0xe')](_0x4e5290);const _0x5ce3d5=_0x442b11[_0x92f6('0x5e')](_0x37b8e6[_0x92f6('0x27')],_0x92f6('0x6f')),_0x1fba01=_0x442b11['fromPosition'](_0x37b8e6[_0x92f6('0x53')],_0x92f6('0x3e'));_0x20a640[_0x92f6('0x6d')](()=>_0x59c21e(_0x4177c3)),_0x4e5290=_0x5e81e8[_0x92f6('0x3f')](_0x54717b['model'][_0x92f6('0x18')][_0x92f6('0x24')]),_0x37b8e6=_0x36adf0[_0x92f6('0xe')](_0x4e5290);const _0x396838=_0x36adf0[_0x92f6('0x65')](_0x5ce3d5,_0x1fba01);_0x5ce3d5[_0x92f6('0xf')](),_0x1fba01[_0x92f6('0xf')](),_0x20a640['markBlockFormat'](_0x4e5290,{'commandName':'imageTypeInline'},[],'convertInlineImageToBlock'),_0x396838[_0x92f6('0x27')]['isBefore'](_0x37b8e6[_0x92f6('0x27')])&&_0x20a640['markInsertion'](_0x36adf0['createRange'](_0x396838['start'],_0x37b8e6[_0x92f6('0x27')]),_0x92f6('0x38')),_0x37b8e6[_0x92f6('0x53')][_0x92f6('0x56')](_0x396838['end'])&&_0x20a640[_0x92f6('0x2e')](_0x36adf0[_0x92f6('0x65')](_0x37b8e6[_0x92f6('0x53')],_0x396838[_0x92f6('0x53')]),_0x92f6('0x38'));});}),_0x20a640[_0x92f6('0x6c')][_0x92f6('0x16')](_0x92f6('0x52'),_0x92f6('0x38'),_0x92f6('0x66'),()=>{}),_0x20a640[_0x92f6('0x6c')][_0x92f6('0x16')](_0x92f6('0x52'),_0x92f6('0x38'),'accept',()=>{}),_0x20a640[_0x92f6('0x6c')]['registerCustomCallback'](_0x92f6('0x52'),_0x92f6('0x38'),_0x92f6('0x41'),_0x20a640[_0x92f6('0x6c')][_0x92f6('0x67')]('formatBlock','',_0x92f6('0x1'))),_0x20a640[_0x92f6('0x6c')][_0x92f6('0x16')]('insertion',_0x92f6('0x38'),_0x92f6('0x66'),()=>{}),_0x20a640['_suggestionFactory'][_0x92f6('0x16')](_0x92f6('0x75'),_0x92f6('0x38'),'discard',([_0x477f02])=>{const _0x7f2bf=_0x20a640['_suggestionFactory']['getSuggestionCallback'](_0x92f6('0x75'),'',_0x92f6('0x41'));let _0x5ede3b=_0x477f02[_0x92f6('0x27')],_0x5acfa6=_0x477f02[_0x92f6('0x53')];const _0x12ed98=_0x54717b[_0x92f6('0x12')][_0x92f6('0x59')][_0x92f6('0x20')](_0x5ede3b,_0x92f6('0x3a')),_0x1e08c8=_0x54717b['model'][_0x92f6('0x59')][_0x92f6('0x20')](_0x5acfa6,_0x92f6('0x28'));_0x12ed98[_0x92f6('0x74')]&&(_0x5ede3b=_0x12ed98[_0x92f6('0x27')]),_0x1e08c8['isCollapsed']&&(_0x5acfa6=_0x1e08c8[_0x92f6('0x53')]),_0x7f2bf([_0x54717b[_0x92f6('0x12')][_0x92f6('0x65')](_0x5ede3b,_0x5acfa6)]);}),_0x20a640[_0x92f6('0x6c')][_0x92f6('0x16')](_0x92f6('0x52'),_0x92f6('0x38'),_0x92f6('0x17'),_0x27f520),_0x20a640[_0x92f6('0x6c')][_0x92f6('0x16')]('insertion',_0x92f6('0x38'),'chain',_0x27f520)),_0x54717b[_0x92f6('0x1a')][_0x92f6('0x4e')]('ImageCaptionEditing')&&(_0x20a640['enableCommand']('toggleImageCaption',(_0x4a166a,_0x5319af)=>{const _0x3e961d=_0x54717b[_0x92f6('0x1a')][_0x92f6('0x5c')](_0x92f6('0xd'));let _0x3f6563=_0x5e81e8[_0x92f6('0x3f')](_0x54717b[_0x92f6('0x12')][_0x92f6('0x18')][_0x92f6('0x24')]),_0x1d7961=_0x3e961d[_0x92f6('0xc')](_0x3f6563);_0x54717b[_0x92f6('0x12')]['change'](()=>{if(_0x1d7961)return void _0x20a640[_0x92f6('0x37')](_0x54717b[_0x92f6('0x12')][_0x92f6('0xe')](_0x1d7961));const _0x2486a7=_0x5e81e8['isBlockImage'](_0x3f6563);_0x4a166a(_0x5319af),_0x3f6563=_0x5e81e8['getClosestSelectedImageElement'](_0x54717b[_0x92f6('0x12')][_0x92f6('0x18')][_0x92f6('0x24')]),_0x1d7961=_0x3e961d[_0x92f6('0xc')](_0x3f6563),_0x20a640[_0x92f6('0x2e')](_0x54717b[_0x92f6('0x12')]['createRangeOn'](_0x1d7961),_0x2486a7?null:_0x92f6('0x58'));});}),_0x20a640[_0x92f6('0x6c')][_0x92f6('0x16')](_0x92f6('0x75'),_0x92f6('0x58'),_0x92f6('0x17'),_0x27f520)),_0x54717b[_0x92f6('0x1a')][_0x92f6('0x4e')](_0x92f6('0x0'))){_0x20a640[_0x92f6('0x32')](_0x92f6('0x35'),(_0x29492e,_0x4a844d)=>{const _0x247b97=_0x54717b[_0x92f6('0x1a')][_0x92f6('0x5c')](_0x92f6('0x6e'))['me'],_0x53a255=_0x54717b[_0x92f6('0x33')]['get'](_0x92f6('0x35'));let _0x20f07c=_0x5e81e8['getClosestSelectedImageElement'](_0x54717b['model'][_0x92f6('0x18')][_0x92f6('0x24')]),_0x46a1a5=_0x54717b[_0x92f6('0x12')][_0x92f6('0xe')](_0x20f07c),_0x316461=_0x53a255[_0x92f6('0x76')];if(_0x316461==_0x4a844d['value'])return;const _0x8d4cc9={'commandName':_0x92f6('0x35'),'commandParams':[_0x4a844d],'formatGroupId':_0x3e4cc8()};_0x54717b[_0x92f6('0x12')][_0x92f6('0x63')](()=>{if(_0x20a640['getSuggestions']()[_0x92f6('0x5f')](_0x3a2102=>_0x3a2102[_0x92f6('0x25')]&&_0x247b97==_0x3a2102[_0x92f6('0x1c')]&&(_0x92f6('0x52')==_0x3a2102['type']||_0x92f6('0x61')==_0x3a2102['type'])&&(_0x92f6('0x68')==_0x3a2102[_0x92f6('0x2f')]||'imageStylePostApply'==_0x3a2102['subType'])&&_0x3a2102[_0x92f6('0x4d')]()[_0x92f6('0x2b')](_0x46a1a5))[_0x92f6('0x1d')](_0x46dc6f=>_0x20a640[_0x92f6('0x2')](_0x46dc6f['head'])),_0x20f07c=_0x5e81e8[_0x92f6('0x3f')](_0x54717b[_0x92f6('0x12')][_0x92f6('0x18')][_0x92f6('0x24')]),_0x46a1a5=_0x54717b[_0x92f6('0x12')][_0x92f6('0xe')](_0x20f07c),_0x53a255['refresh'](),_0x54717b[_0x92f6('0x33')]['get'](_0x92f6('0x48'))[_0x92f6('0x40')](),_0x54717b['commands'][_0x92f6('0x5c')](_0x92f6('0x42'))['refresh'](),_0x316461=_0x53a255[_0x92f6('0x76')],_0x316461!=_0x4a844d['value'])return _0x5e81e8[_0x92f6('0x55')](_0x20f07c)&&_0x53a255[_0x92f6('0x54')](_0x4a844d['value'],_0x20f07c)?(_0x29492e(_0x4a844d),_0x20f07c=_0x5e81e8[_0x92f6('0x3f')](_0x54717b[_0x92f6('0x12')][_0x92f6('0x18')][_0x92f6('0x24')]),void _0x20a640[_0x92f6('0x6a')](_0x20f07c,{..._0x8d4cc9,'commandReversedParams':[{'value':_0x316461||null}]},[],_0x92f6('0x68'))):void(_0x5e81e8[_0x92f6('0x3b')](_0x20f07c)?_0x20a640[_0x92f6('0x6a')](_0x20f07c,_0x8d4cc9,[],'imageStylePostApply'):_0x20a640[_0x92f6('0x23')](_0x46a1a5,_0x8d4cc9,_0x92f6('0x9')));});});for(const _0x477cb8 of _0x54717b[_0x92f6('0x1a')][_0x92f6('0x5c')](_0x92f6('0x0'))[_0x92f6('0x6')])_0x51af55[_0x477cb8[_0x92f6('0x19')]]=_0x477cb8[_0x92f6('0x4c')][_0x92f6('0x26')]();_0x20a640['_suggestionFactory']['registerCustomCallback'](_0x92f6('0x52'),_0x92f6('0x68'),_0x92f6('0x66'),()=>{}),_0x20a640[_0x92f6('0x6c')][_0x92f6('0x16')]('formatBlock',_0x92f6('0x9'),_0x92f6('0x66'),()=>{}),_0x20a640[_0x92f6('0x6c')]['registerCustomCallback'](_0x92f6('0x61'),'imageStylePostApply',_0x92f6('0x66'),()=>{}),_0x20a640[_0x92f6('0x6c')][_0x92f6('0x16')](_0x92f6('0x52'),_0x92f6('0x68'),_0x92f6('0x1'),()=>{}),_0x20a640[_0x92f6('0x6c')]['registerCustomCallback'](_0x92f6('0x52'),_0x92f6('0x68'),_0x92f6('0x41'),(_0x18d059,_0x1290d1)=>{_0x20a640[_0x92f6('0x6c')][_0x92f6('0x67')](_0x92f6('0x52'),'','accept')(_0x18d059,{'commandName':_0x1290d1[_0x92f6('0x3d')],'commandParams':_0x1290d1[_0x92f6('0x5')]});}),_0x20a640[_0x92f6('0x6c')]['registerCustomCallback']('formatBlock',_0x92f6('0x68'),_0x92f6('0x17'),_0x27f520);}const _0x4856d7=[{'type':_0x92f6('0x52'),'subType':_0x92f6('0x68')},{'type':'insertion','subType':_0x92f6('0x58')},{'type':'formatBlock','subType':_0x92f6('0x38')},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5bad8a(_0x69c85d,_0x489e17){const _0x456ff9=_0x4856d7[_0x92f6('0x34')](({type:_0x533218,subType:_0x293bb7})=>_0x69c85d[_0x92f6('0x4b')]==_0x533218&&_0x69c85d['subType']==_0x293bb7),_0x506133=_0x4856d7[_0x92f6('0x34')](({type:_0x1ecaa0,subType:_0x14130d})=>_0x489e17[_0x92f6('0x4b')]==_0x1ecaa0&&_0x489e17[_0x92f6('0x2f')]==_0x14130d);if(_0x456ff9<0x0||_0x506133<0x0)return!0x1;const _0x5eb9a7=_0x69c85d[_0x92f6('0x4d')](),_0x127f4d=_0x489e17[_0x92f6('0x4d')]();if((0x0==_0x456ff9||0x1==_0x456ff9)&&0x2==_0x506133&&_0x5eb9a7[_0x92f6('0x8')](_0x127f4d))return!0x0;if(0x2==_0x456ff9&&0x3==_0x506133){const _0x10d5b4=_0x20a640[_0x92f6('0x49')](_0x5eb9a7,'insertion')[_0x92f6('0x5f')](({suggestion:_0x331721,meta:_0xc37a5d})=>_0xc37a5d[_0x92f6('0x5a')]&&_0x92f6('0x38')==_0x331721['subType']);if(_0x10d5b4[_0x92f6('0x4f')]>0x1&&_0x127f4d['end'][_0x92f6('0x2b')](_0x5eb9a7['start']))return!0x0;if(0x1==_0x10d5b4[_0x92f6('0x4f')]&&(_0x5eb9a7[_0x92f6('0x27')][_0x92f6('0x2b')](_0x127f4d[_0x92f6('0x53')])||_0x5eb9a7['end'][_0x92f6('0x2b')](_0x127f4d['start'])))return!0x0;}if(0x3==_0x456ff9&&0x3==_0x506133&&_0x5eb9a7[_0x92f6('0x27')]['isBefore'](_0x127f4d['start'])){const _0x1e52fc=_0x5eb9a7[_0x92f6('0x53')][_0x92f6('0x71')],_0x99fade=_0x127f4d['start'][_0x92f6('0x43')];return _0x5e81e8[_0x92f6('0x3b')](_0x1e52fc)&&_0x1e52fc===_0x99fade;}return!0x1;}function _0x27f520(_0x3e1214,_0x2b3a31){return _0x5bad8a(_0x3e1214,_0x2b3a31)?[_0x3e1214,_0x2b3a31]:_0x5bad8a(_0x2b3a31,_0x3e1214)?[_0x2b3a31,_0x3e1214]:null;}_0x54717b[_0x92f6('0x12')][_0x92f6('0x18')][_0x92f6('0x36')](()=>{let _0x5757a6=!0x1;const _0x2900ca=Array['from'](_0x54717b[_0x92f6('0x12')]['document'][_0x92f6('0x5d')][_0x92f6('0x2d')]());for(const {name:_0x3a21e8,data:_0x54ff32}of _0x2900ca){const {group:_0x595ad0,type:_0x381bf3,subType:_0x342ee3,id:_0x410eab}=_0x20a640[_0x92f6('0x45')](_0x3a21e8);if('suggestion'==_0x595ad0&&_0x20a640['hasSuggestion'](_0x410eab)){if(_0x92f6('0x52')==_0x381bf3&&('imageStylePreApply'==_0x342ee3||_0x92f6('0x9')==_0x342ee3)){const _0xf489bd=_0x20a640['getSuggestion'](_0x410eab);if(_0x54ff32['newRange']){const _0xa952b0=_0xf489bd[_0x92f6('0x4d')]()['getContainedElement']();if(_0x5e81e8[_0x92f6('0x3b')](_0xa952b0))continue;_0x20a640[_0x92f6('0x2')](_0xf489bd),_0x5757a6=!0x0;}}if(_0x92f6('0x75')==_0x381bf3&&_0x92f6('0x58')==_0x342ee3&&!_0x54ff32[_0x92f6('0x6b')]){const _0x4083c4=_0x20a640[_0x92f6('0x57')](_0x410eab);_0x4083c4[_0x92f6('0x60')]&&_0x4083c4[_0x92f6('0x60')][_0x92f6('0x25')]&&(_0x20a640['discardSuggestion'](_0x4083c4['next']),_0x5757a6=!0x0);}}}return _0x5757a6;}),_0x54717b[_0x92f6('0x1a')][_0x92f6('0x4e')](_0x92f6('0x3'))&&_0x20a640[_0x92f6('0x32')](_0x92f6('0xa'),(_0x1c751d,_0x4b0188)=>{const _0x133e6f=_0x5e81e8['getClosestSelectedImageElement'](_0x54717b['model'][_0x92f6('0x18')]['selection']);_0x133e6f['getAttribute']('width')!=_0x4b0188['width']&&_0x54717b[_0x92f6('0x12')][_0x92f6('0x63')](()=>{_0x20a640['markBlockFormat'](_0x133e6f,{'commandName':_0x92f6('0xa'),'commandParams':[_0x4b0188]});});}),_0x54717b[_0x92f6('0x1a')]['has']('ImageTextAlternativeEditing')&&_0x20a640[_0x92f6('0x32')]('imageTextAlternative',(_0x4be36f,_0x359e42)=>{const _0x588ed9=_0x5e81e8[_0x92f6('0x3f')](_0x54717b[_0x92f6('0x12')][_0x92f6('0x18')][_0x92f6('0x24')]);(_0x588ed9[_0x92f6('0x21')](_0x92f6('0x1f'))?_0x588ed9[_0x92f6('0x4a')]('alt'):'')!=_0x359e42[_0x92f6('0x1e')]&&_0x54717b[_0x92f6('0x12')][_0x92f6('0x63')](()=>{_0x20a640[_0x92f6('0x6a')](_0x588ed9,{'commandName':'imageTextAlternative','commandParams':[_0x359e42]});});}),_0x20a640[_0x92f6('0x72')][_0x92f6('0x15')](_0x234997=>{if(!!_0x4856d7['find'](({type:_0x3a9ac4,subType:_0x22d874})=>_0x234997['type']==_0x3a9ac4&&_0x234997[_0x92f6('0x2f')]==_0x22d874))return _0x234997[_0x92f6('0x1b')]?{}:void 0x0;}),_0x20a640[_0x92f6('0x72')][_0x92f6('0x15')](_0x251b09=>{if(_0x92f6('0x75')==_0x251b09[_0x92f6('0x4b')]||'deletion'==_0x251b09['type']){const _0x2f3f38=_0x251b09[_0x92f6('0x50')]();if(_0x2f3f38&&_0x2f3f38['is'](_0x92f6('0x44'),_0x92f6('0x30')))return{'type':_0x92f6('0x75')==_0x251b09[_0x92f6('0x4b')]?_0x92f6('0x73'):'removeObject','name':_0x2f3f38[_0x92f6('0x19')],'quantity':0x1};}}),_0x20a640[_0x92f6('0x72')][_0x92f6('0x15')](_0x3bdeda=>_0x92f6('0x52')==_0x3bdeda[_0x92f6('0x4b')]&&_0x92f6('0x38')==_0x3bdeda[_0x92f6('0x2f')]?{'type':'format','content':_0x92f6('0x29')}:'formatBlock'==_0x3bdeda[_0x92f6('0x4b')]&&_0x92f6('0x70')==_0x3bdeda[_0x92f6('0x2f')]?{'type':_0x92f6('0x11'),'content':_0x92f6('0x39')}:void 0x0),_0x20a640[_0x92f6('0x72')][_0x92f6('0x15')](_0x41a2b1=>{const {data:_0x2b1e21}=_0x41a2b1;if(_0x2b1e21){if(_0x92f6('0x35')==_0x2b1e21[_0x92f6('0x3d')]){const _0x53692a=_0x2b1e21[_0x92f6('0x22')][0x0][_0x92f6('0x76')];return _0x599498(_0x92f6('0x47')===_0x53692a?_0x521df4(_0x300a2c,_0x92f6('0x69')):_0x51af55[_0x53692a]||_0x53692a);}if(_0x92f6('0x10')==_0x2b1e21[_0x92f6('0x3d')]){const _0x24f554=_0x2b1e21[_0x92f6('0x22')][0x0][_0x92f6('0x1e')];return _0x24f554?{'type':'format','content':_0x521df4(_0x300a2c,_0x92f6('0x14'),'\x22'+_0x24f554+'\x22')}:{'type':_0x92f6('0x11'),'content':_0x521df4(_0x300a2c,_0x92f6('0x5b'))};}if(_0x92f6('0xa')==_0x2b1e21['commandName']){const _0xe20d8f=_0x2b1e21[_0x92f6('0x22')][0x0][_0x92f6('0x62')];return _0xe20d8f?{'type':_0x92f6('0x11'),'content':_0x521df4(_0x300a2c,_0x92f6('0x31'),_0xe20d8f)}:{'type':_0x92f6('0x11'),'content':_0x521df4(_0x300a2c,_0x92f6('0x13'))};}}function _0x599498(_0x2ab6b5){return{'type':'format','content':_0x521df4(_0x300a2c,_0x92f6('0x4'),_0x2ab6b5)};}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5bddf9}from'ckeditor5/src/core';export default class J extends _0x5bddf9{['afterInit'](){const _0xe80b4a=this['editor'],_0x36a2ce=_0xe80b4a['plugins']['get']('TrackChangesEditing');_0xe80b4a['plugins']['has']('IndentEditing')&&(_0x36a2ce['enableCommand']('indent'),_0x36a2ce['enableCommand']('outdent'));const {t:t}=_0xe80b4a['locale'];if(_0xe80b4a['plugins']['has']('IndentBlock')){for(const _0x40fbc9 of['indentBlock','outdentBlock'])_0x36a2ce['enableCommand'](_0x40fbc9,()=>{const _0x2ff260=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xdd60e2=>this['editor']['model']['schema']['checkAttribute'](_0xdd60e2,'blockIndent'));_0xe80b4a['model']['change'](()=>{for(const _0xef7aa6 of _0x2ff260)_0x36a2ce['markBlockFormat'](_0xef7aa6,{'commandName':_0x40fbc9,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x36a2ce['_descriptionFactory']['registerDescriptionCallback'](_0x25be57=>{const {data:_0x1d27b5}=_0x25be57;if(!_0x1d27b5)return;if('indentBlock'!=_0x1d27b5['commandName']&&'outdentBlock'!=_0x1d27b5['commandName'])return;const _0x525332=_0x25be57['getItems']()[0x0],_0x12b360=_0x36a2ce['_descriptionFactory']['getItemLabel'](_0x525332['name']);return'indentBlock'==_0x1d27b5['commandName']?{'type':'format','content':t('*Indent:*\x20%0',_0x12b360)}:'outdentBlock'==_0x1d27b5['commandName']?{'type':'format','content':t('*Outdent:*\x20%0',_0x12b360)}:void 0x0;});}}}
23
+ const _0x561e=['commandName','blockIndent','get','*Outdent:*\x20%0','plugins','outdentBlock','schema','from','indentBlock','change','editor','model','getItems','format','filter','markBlockFormat','IndentEditing','getItemLabel','document','getSelectedBlocks','locale','indent','_descriptionFactory','*Indent:*\x20%0','outdent','registerDescriptionCallback','checkAttribute','enableCommand','selection','has'];(function(_0x1cfcd6,_0x561ee6){const _0x49d010=function(_0xb0f1b7){while(--_0xb0f1b7){_0x1cfcd6['push'](_0x1cfcd6['shift']());}};_0x49d010(++_0x561ee6);}(_0x561e,0xdd));const _0x49d0=function(_0x1cfcd6,_0x561ee6){_0x1cfcd6=_0x1cfcd6-0x0;let _0x49d010=_0x561e[_0x1cfcd6];return _0x49d010;};import{Plugin as _0x3f1f18}from'ckeditor5/src/core';import{getTranslation as _0x22adea}from'../utils/common-translations';export default class X extends _0x3f1f18{['afterInit'](){const _0x54e0a1=this[_0x49d0('0x1d')],_0x1c6d25=_0x54e0a1[_0x49d0('0x17')][_0x49d0('0x15')]('TrackChangesEditing');_0x54e0a1[_0x49d0('0x17')][_0x49d0('0x12')](_0x49d0('0x5'))&&(_0x1c6d25[_0x49d0('0x10')](_0x49d0('0xa')),_0x1c6d25['enableCommand'](_0x49d0('0xd')));const _0x14cb58=_0x54e0a1[_0x49d0('0x9')];if(_0x54e0a1[_0x49d0('0x17')]['has']('IndentBlock')){for(const _0x50582c of[_0x49d0('0x1b'),_0x49d0('0x18')])_0x1c6d25['enableCommand'](_0x50582c,()=>{const _0x50cbe1=Array[_0x49d0('0x1a')](this[_0x49d0('0x1d')]['model'][_0x49d0('0x7')][_0x49d0('0x11')][_0x49d0('0x8')]())[_0x49d0('0x3')](_0x3fcd83=>this[_0x49d0('0x1d')][_0x49d0('0x0')][_0x49d0('0x19')][_0x49d0('0xf')](_0x3fcd83,_0x49d0('0x14')));_0x54e0a1[_0x49d0('0x0')][_0x49d0('0x1c')](()=>{for(const _0x158f4b of _0x50cbe1)_0x1c6d25[_0x49d0('0x4')](_0x158f4b,{'commandName':_0x50582c,'commandParams':[{'value':''}],'formatGroupId':_0x49d0('0x1b')});});});_0x1c6d25['_descriptionFactory'][_0x49d0('0xe')](_0x4fafcd=>{const {data:_0x165a04}=_0x4fafcd;if(!_0x165a04)return;if(_0x49d0('0x1b')!=_0x165a04[_0x49d0('0x13')]&&_0x49d0('0x18')!=_0x165a04[_0x49d0('0x13')])return;const _0x4b8e6a=_0x4fafcd[_0x49d0('0x1')]()[0x0],_0x25e90b=_0x1c6d25[_0x49d0('0xb')][_0x49d0('0x6')](_0x4b8e6a['name']);return _0x49d0('0x1b')==_0x165a04[_0x49d0('0x13')]?{'type':_0x49d0('0x2'),'content':_0x22adea(_0x14cb58,_0x49d0('0xc'),_0x25e90b)}:'outdentBlock'==_0x165a04[_0x49d0('0x13')]?{'type':_0x49d0('0x2'),'content':_0x22adea(_0x14cb58,_0x49d0('0x16'),_0x25e90b)}:void 0x0;});}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1171=['TrackChangesEditing','init','input','editor','plugins','enableCommand','get'];(function(_0x23c841,_0x117173){var _0x85e675=function(_0x145116){while(--_0x145116){_0x23c841['push'](_0x23c841['shift']());}};_0x85e675(++_0x117173);}(_0x1171,0xfa));var _0x85e6=function(_0x23c841,_0x117173){_0x23c841=_0x23c841-0x0;var _0x85e675=_0x1171[_0x23c841];return _0x85e675;};import{Plugin as _0xcc99bb}from'ckeditor5/src/core';import{Input as _0x44bede}from'ckeditor5/src/typing';export default class K extends _0xcc99bb{static get['requires'](){return[_0x44bede];}[_0x85e6('0x3')](){this[_0x85e6('0x5')][_0x85e6('0x6')][_0x85e6('0x1')](_0x85e6('0x2'))[_0x85e6('0x0')](_0x85e6('0x4'));}}
23
+ var _0x5212=['init','enableCommand','input','editor','TrackChangesEditing'];(function(_0x15dd63,_0x5212fd){var _0x59ad9c=function(_0x3ab662){while(--_0x3ab662){_0x15dd63['push'](_0x15dd63['shift']());}};_0x59ad9c(++_0x5212fd);}(_0x5212,0x69));var _0x59ad=function(_0x15dd63,_0x5212fd){_0x15dd63=_0x15dd63-0x0;var _0x59ad9c=_0x5212[_0x15dd63];return _0x59ad9c;};import{Plugin as _0x13e69f}from'ckeditor5/src/core';import{Input as _0x5a6635}from'ckeditor5/src/typing';export default class Y extends _0x13e69f{static get['requires'](){return[_0x5a6635];}[_0x59ad('0x0')](){this[_0x59ad('0x3')]['plugins']['get'](_0x59ad('0x4'))[_0x59ad('0x1')](_0x59ad('0x2'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x387ba0}from'ckeditor5/src/core';import{findAttributeRange as _0x6c8a7b}from'ckeditor5/src/typing';import{getRangesWithAttribute as Rt}from'./utils';export default class Q extends _0x387ba0{['afterInit'](){const _0x591a88=this['editor'];if(!_0x591a88['plugins']['has']('LinkEditing'))return;const _0x2b0fdb=_0x591a88['plugins']['get']('TrackChangesEditing');_0x2b0fdb['enableCommand']('link',(_0x488891,_0x37ac66)=>{const _0x3e8294=_0x591a88['model']['document']['selection'];let _0x322073=[];if(_0x3e8294['isCollapsed']){if(!_0x3e8294['hasAttribute']('linkHref'))return void _0x488891(_0x37ac66);{const _0x2163c4=_0x6c8a7b(_0x3e8294['getFirstPosition'](),'linkHref',_0x3e8294['getAttribute']('linkHref'),_0x591a88['model']);_0x322073=[_0x2163c4];}}else _0x322073=Array['from'](_0x3e8294['getRanges']());_0x591a88['model']['change'](()=>{for(const _0x46e900 of _0x322073)_0x2b0fdb['markInlineFormat'](_0x46e900,{'commandName':'link','commandParams':[_0x37ac66]});});}),_0x2b0fdb['enableCommand']('unlink',()=>{const _0x1a1628=this['editor']['model'],_0x19f21b=_0x1a1628['document']['selection'];_0x1a1628['change'](()=>{let _0x309be3=[];if(_0x19f21b['isCollapsed'])_0x309be3=[_0x6c8a7b(_0x19f21b['getFirstPosition'](),'linkHref',_0x19f21b['getAttribute']('linkHref'),_0x591a88['model'])];else _0x309be3=Rt('linkHref',_0x19f21b['getFirstRange'](),_0x591a88['model']);for(const _0x13edd7 of _0x309be3)_0x2b0fdb['markInlineFormat'](_0x13edd7,{'commandName':'unlink','commandParams':[]});});}),_0x2b0fdb['_descriptionFactory']['registerDescriptionCallback'](_0x49f92c=>{const {data:_0x2f30a7}=_0x49f92c,{t:t}=_0x591a88['locale'];if(_0x2f30a7){if('link'==_0x2f30a7['commandName'])return{'type':'format','content':t('*Set\x20link:*\x20%0','\x22'+_0x2f30a7['commandParams'][0x0]+'\x22')};return'unlink'==_0x2f30a7['commandName']?{'type':'format','content':t('*Remove\x20link*')}:void 0x0;}});}}
23
+ const _0x421a=['LinkEditing','getRanges','format','unlink','commandParams','locale','document','markInlineFormat','change','registerDescriptionCallback','*Set\x20link:*\x20%0','has','editor','getFirstRange','hasAttribute','isCollapsed','enableCommand','commandName','*Remove\x20link*','getAttribute','_descriptionFactory','plugins','linkHref','afterInit','selection','link','model','getFirstPosition','TrackChangesEditing'];(function(_0x50ea00,_0x421aa3){const _0xb87619=function(_0x14739a){while(--_0x14739a){_0x50ea00['push'](_0x50ea00['shift']());}};_0xb87619(++_0x421aa3);}(_0x421a,0x1b8));const _0xb876=function(_0x50ea00,_0x421aa3){_0x50ea00=_0x50ea00-0x0;let _0xb87619=_0x421a[_0x50ea00];return _0xb87619;};import{Plugin as _0x339efe}from'ckeditor5/src/core';import{findAttributeRange as _0x9c617}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x1a3a96}from'./utils';import{getTranslation as _0x202190}from'../utils/common-translations';export default class Z extends _0x339efe{[_0xb876('0x12')](){const _0x81e357=this[_0xb876('0x7')];if(!_0x81e357[_0xb876('0x10')][_0xb876('0x6')](_0xb876('0x18')))return;const _0x4d3f08=_0x81e357['plugins']['get'](_0xb876('0x17'));_0x4d3f08[_0xb876('0xb')](_0xb876('0x14'),(_0x5a4c0a,_0xe684c5)=>{const _0x2f33eb=_0x81e357[_0xb876('0x15')][_0xb876('0x1')]['selection'];let _0x1b348c=[];if(_0x2f33eb[_0xb876('0xa')]){if(!_0x2f33eb[_0xb876('0x9')](_0xb876('0x11')))return void _0x5a4c0a(_0xe684c5);{const _0x3f54af=_0x9c617(_0x2f33eb[_0xb876('0x16')](),_0xb876('0x11'),_0x2f33eb[_0xb876('0xe')](_0xb876('0x11')),_0x81e357[_0xb876('0x15')]);_0x1b348c=[_0x3f54af];}}else _0x1b348c=Array['from'](_0x2f33eb[_0xb876('0x19')]());_0x81e357[_0xb876('0x15')][_0xb876('0x3')](()=>{for(const _0x4e97f2 of _0x1b348c)_0x4d3f08[_0xb876('0x2')](_0x4e97f2,{'commandName':'link','commandParams':[_0xe684c5]});});}),_0x4d3f08[_0xb876('0xb')](_0xb876('0x1b'),()=>{const _0x296654=this[_0xb876('0x7')][_0xb876('0x15')],_0x34e974=_0x296654[_0xb876('0x1')][_0xb876('0x13')];_0x296654[_0xb876('0x3')](()=>{let _0x2b359b=[];if(_0x34e974[_0xb876('0xa')])_0x2b359b=[_0x9c617(_0x34e974[_0xb876('0x16')](),_0xb876('0x11'),_0x34e974['getAttribute'](_0xb876('0x11')),_0x81e357['model'])];else _0x2b359b=_0x1a3a96(_0xb876('0x11'),_0x34e974[_0xb876('0x8')](),_0x81e357['model']);for(const _0x45c830 of _0x2b359b)_0x4d3f08[_0xb876('0x2')](_0x45c830,{'commandName':'unlink','commandParams':[]});});}),_0x4d3f08[_0xb876('0xf')][_0xb876('0x4')](_0x4ead3c=>{const {data:_0x3a3198}=_0x4ead3c,_0x2a0be2=_0x81e357[_0xb876('0x0')];if(_0x3a3198){if(_0xb876('0x14')==_0x3a3198['commandName']){const _0x399bb9=_0x3a3198[_0xb876('0x1c')][0x0];return{'type':'format','content':_0x202190(_0x2a0be2,_0xb876('0x5'),'\x22'+_0x399bb9+'\x22')};}return _0xb876('0x1b')==_0x3a3198[_0xb876('0xc')]?{'type':_0xb876('0x1a'),'content':_0x202190(_0x2a0be2,_0xb876('0xd'))}:void 0x0;}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5f30c6}from'ckeditor5/src/core';export default class V extends _0x5f30c6{['afterInit'](){const _0x3361e4=this['editor'];if(!_0x3361e4['plugins']['has']('ListEditing'))return;const _0x46fa8f=_0x3361e4['plugins']['get']('TrackChangesEditing'),_0x51ba07=_0x3361e4['plugins']['has']('TodoListEditing');function _0x3b462b(_0x974dcd){return()=>{const _0x2d3747=_0x3361e4['model']['document']['selection'],_0x221ffd=_0x3361e4['commands']['get'](_0x974dcd);if(_0x221ffd['value'])return void _0x3361e4['execute']('paragraph',{});const _0x370468=_0x974dcd['slice'](0x0,-0x4),_0x1babae=function(_0x850eab,_0x4c02b7,_0x1ebc94){let _0x39802a=Array['from'](_0x850eab)['filter'](_0x2779e5=>function(_0x3360e4,_0x58f3c7){return _0x58f3c7['checkChild'](_0x3360e4['parent'],'listItem')&&!_0x58f3c7['isObject'](_0x3360e4);}(_0x2779e5,_0x1ebc94));_0x39802a=_0x39802a['filter'](_0x5ced91=>!_0x5ced91['is']('element','listItem')||_0x5ced91['getAttribute']('listType')!=_0x4c02b7);const _0x4c377a=new Set();for(const _0x7d0b25 of _0x39802a)_0x7d0b25['is']('element','listItem')?_0x4c377a['add'](Mt(_0x7d0b25)):_0x4c377a['add'](_0x7d0b25);return Array['from'](_0x4c377a);}(_0x2d3747['getSelectedBlocks'](),_0x370468,_0x3361e4['model']['schema']);_0x3361e4['model']['change'](()=>{for(const _0x546d2e of _0x1babae)_0x46fa8f['markBlockFormat'](_0x546d2e,{'commandName':_0x974dcd,'commandParams':[{'forceValue':!_0x221ffd['value']}],'formatGroupId':'blockName'},Pt(_0x546d2e));});};}function _0x1bbbeb(_0x40b830){return()=>{const _0x4b9da2=function(_0x325d31){const _0x43d26f=(_0x325d31=Array['from'](_0x325d31))['findIndex'](_0x48db07=>'listItem'!=_0x48db07['name']);return _0x43d26f>-0x1&&(_0x325d31=_0x325d31['slice'](0x0,_0x43d26f)),_0x325d31;}(_0x3361e4['model']['document']['selection']['getSelectedBlocks']()),_0x47c8ae=_0x3361e4['model']['createRange'](_0x3361e4['model']['createPositionAt'](_0x4b9da2[0x0],'before'),_0x3361e4['model']['createPositionAt'](_0x4b9da2[_0x4b9da2['length']-0x1],'end'));_0x3361e4['model']['change'](()=>{_0x46fa8f['markBlockFormat'](_0x47c8ae,{'commandName':_0x40b830,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1c9c45){const _0x3524d9=new Set();for(const _0x212013 of _0x1c9c45){let _0x3dc996=_0x212013['nextSibling'];for(;_0x3dc996&&_0x3dc996['getAttribute']('listIndent')>_0x212013['getAttribute']('listIndent');)_0x3524d9['add'](_0x3dc996),_0x3dc996=_0x3dc996['nextSibling'];}return Array['from'](_0x3524d9);}(_0x4b9da2));});};}_0x46fa8f['enableCommand']('numberedList',_0x3b462b('numberedList')),_0x46fa8f['enableCommand']('bulletedList',_0x3b462b('bulletedList')),_0x51ba07&&_0x46fa8f['enableCommand']('todoList',_0x3b462b('todoList')),_0x46fa8f['enableCommand']('indentList',_0x1bbbeb('indentList')),_0x46fa8f['enableCommand']('outdentList',_0x1bbbeb('outdentList')),_0x51ba07&&_0x46fa8f['enableCommand']('checkTodoList',()=>{const _0x260f39=_0x3361e4['commands']['get']('checkTodoList'),_0xa83e78=Array['from'](_0x260f39['_selectedElements']);_0xa83e78['filter'](_0x45e2e2=>_0x45e2e2['getAttribute']('todoListChecked')!=_0x260f39['value']),_0x3361e4['model']['change'](()=>{for(const _0x5ae383 of _0xa83e78)_0x46fa8f['markBlockFormat'](_0x5ae383,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x260f39['value']}]});});});const {t:t}=_0x3361e4['locale'];_0x46fa8f['_descriptionFactory']['registerElementLabel']('listItem',_0x228c63=>t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x228c63)),_0x46fa8f['_descriptionFactory']['registerDescriptionCallback'](_0x46fecb=>{const {data:_0x2d5ed4}=_0x46fecb;if(_0x2d5ed4){if('numberedList'==_0x2d5ed4['commandName']||'bulletedList'==_0x2d5ed4['commandName']||'todoList'==_0x2d5ed4['commandName'])switch(_0x2d5ed4['commandName']['replace']('List','')){case'bulleted':return _0x1972d9(t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'}));case'numbered':return _0x1972d9(t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'}));case'todo':return _0x1972d9(t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'}));}if('indentList'==_0x2d5ed4['commandName'])return{'type':'format','content':t('*Indent:*\x20%0',t({'string':'list\x20item','id':'ELEMENT_LIST_ITEM'}))};if('outdentList'==_0x2d5ed4['commandName'])return{'type':'format','content':t('*Outdent:*\x20%0',t({'string':'list\x20item','id':'ELEMENT_LIST_ITEM'}))};if('checkTodoList'==_0x2d5ed4['commandName'])return _0x2d5ed4['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Check\x20item*')}:{'type':'format','content':t('*Uncheck\x20item*')};}function _0x1972d9(_0x16c490){return{'type':'format','content':t('*Change\x20to:*\x20%0',_0x16c490)};}});}}function Mt(_0x525eaa){const _0x3271c3=_0x525eaa['getAttribute']('listIndent');if(0x0==_0x3271c3)return _0x525eaa;let _0x49ee55=_0x525eaa;for(;_0x525eaa['previousSibling']&&_0x525eaa['previousSibling']['is']('element','listItem');){const _0x1e2b54=_0x525eaa['previousSibling']['getAttribute']('listIndent');if(_0x1e2b54==_0x3271c3)_0x49ee55=_0x525eaa['previousSibling'];else{if(_0x1e2b54<_0x3271c3)break;}_0x525eaa=_0x525eaa['previousSibling'];}return _0x49ee55;}function Pt(_0x1749c6){const _0x535b08=[];if(_0x1749c6['is']('element','listItem')&&_0x1749c6['getAttribute']('listIndent')>0x0){let _0x5ecd41=_0x1749c6['nextSibling'];for(;_0x5ecd41&&'listItem'==_0x5ecd41['name']&&_0x5ecd41['getAttribute']('listIndent')==_0x1749c6['getAttribute']('listIndent');)_0x535b08['push'](_0x5ecd41),_0x5ecd41=_0x5ecd41['nextSibling'];}return _0x535b08;}
23
+ const _0x12ed=['from','enableCommand','getSelectedBlocks','indentList','commands','previousSibling','TrackChangesEditing','listIndent','execute','has','ELEMENT_BULLETED_LIST','isObject','selection','plugins','ListEditing','model','todo','ELEMENT_NUMBERED_LIST','parent','document','_descriptionFactory','commandName','ELEMENT_LIST_ITEM','length','value','*Check\x20item*','todoList','name','_selectedElements','bulleted','todoListChecked','element','*Indent:*\x20%0','TodoListEditing','createPositionAt','listType','filter','outdentList','createRange','paragraph','*Change\x20to:*\x20%0','checkTodoList','replace','change','get','bulletedList','nextSibling','schema','blockName','add','*Uncheck\x20item*','checkChild','List','findIndex','slice','markBlockFormat','registerDescriptionCallback','getAttribute','numberedList','format','listItem'];(function(_0x2b818b,_0x12ed7c){const _0x486861=function(_0x554244){while(--_0x554244){_0x2b818b['push'](_0x2b818b['shift']());}};_0x486861(++_0x12ed7c);}(_0x12ed,0x11a));const _0x4868=function(_0x2b818b,_0x12ed7c){_0x2b818b=_0x2b818b-0x0;let _0x486861=_0x12ed[_0x2b818b];return _0x486861;};import{Plugin as _0x3435fe}from'ckeditor5/src/core';import{getTranslation as _0x527b77}from'../utils/common-translations';export default class tt extends _0x3435fe{['afterInit'](){const _0x1ec083=this['editor'],_0x280618=_0x1ec083['locale'];if(!_0x1ec083[_0x4868('0x24')][_0x4868('0x20')](_0x4868('0x25')))return;const _0x99c76d=_0x1ec083['plugins']['get'](_0x4868('0x1d')),_0x3ecf0c=_0x1ec083[_0x4868('0x24')][_0x4868('0x20')](_0x4868('0x38'));function _0xfe2c96(_0x451a0d){return()=>{const _0x5536a6=_0x1ec083['model'][_0x4868('0x2a')][_0x4868('0x23')],_0x157d36=_0x1ec083[_0x4868('0x1b')][_0x4868('0x6')](_0x451a0d);if(_0x157d36['value'])return void _0x1ec083[_0x4868('0x1f')](_0x4868('0x1'),{});const _0x500289=_0x451a0d[_0x4868('0x10')](0x0,-0x4),_0x3d6104=function(_0x1d7d8c,_0x51f4e6,_0x5800da){let _0x56f1ad=Array[_0x4868('0x17')](_0x1d7d8c)[_0x4868('0x3b')](_0x1e0a2f=>function(_0x1af8cb,_0xac340b){return _0xac340b[_0x4868('0xd')](_0x1af8cb[_0x4868('0x29')],'listItem')&&!_0xac340b[_0x4868('0x22')](_0x1af8cb);}(_0x1e0a2f,_0x5800da));_0x56f1ad=_0x56f1ad[_0x4868('0x3b')](_0x20e153=>!_0x20e153['is']('element',_0x4868('0x16'))||_0x20e153[_0x4868('0x13')](_0x4868('0x3a'))!=_0x51f4e6);const _0x4054bb=new Set();for(const _0x113261 of _0x56f1ad)_0x113261['is']('element',_0x4868('0x16'))?_0x4054bb['add'](Lt(_0x113261)):_0x4054bb[_0x4868('0xb')](_0x113261);return Array[_0x4868('0x17')](_0x4054bb);}(_0x5536a6[_0x4868('0x19')](),_0x500289,_0x1ec083['model'][_0x4868('0x9')]);_0x1ec083[_0x4868('0x26')][_0x4868('0x5')](()=>{for(const _0x38a215 of _0x3d6104)_0x99c76d[_0x4868('0x11')](_0x38a215,{'commandName':_0x451a0d,'commandParams':[{'forceValue':!_0x157d36[_0x4868('0x2f')]}],'formatGroupId':_0x4868('0xa')},Mt(_0x38a215));});};}function _0x1b85c5(_0x46cc63){return()=>{const _0x1daf9d=function(_0x516451){const _0xc2dda7=(_0x516451=Array[_0x4868('0x17')](_0x516451))[_0x4868('0xf')](_0x29c911=>_0x4868('0x16')!=_0x29c911[_0x4868('0x32')]);return _0xc2dda7>-0x1&&(_0x516451=_0x516451[_0x4868('0x10')](0x0,_0xc2dda7)),_0x516451;}(_0x1ec083[_0x4868('0x26')][_0x4868('0x2a')]['selection'][_0x4868('0x19')]()),_0x44f770=_0x1ec083['model'][_0x4868('0x0')](_0x1ec083[_0x4868('0x26')][_0x4868('0x39')](_0x1daf9d[0x0],'before'),_0x1ec083[_0x4868('0x26')][_0x4868('0x39')](_0x1daf9d[_0x1daf9d[_0x4868('0x2e')]-0x1],'end'));_0x1ec083[_0x4868('0x26')][_0x4868('0x5')](()=>{_0x99c76d[_0x4868('0x11')](_0x44f770,{'commandName':_0x46cc63,'commandParams':[],'formatGroupId':_0x4868('0x1e')},function(_0x1cf37c){const _0x183f08=new Set();for(const _0x560981 of _0x1cf37c){let _0x4dbc23=_0x560981[_0x4868('0x8')];for(;_0x4dbc23&&_0x4dbc23[_0x4868('0x13')](_0x4868('0x1e'))>_0x560981[_0x4868('0x13')](_0x4868('0x1e'));)_0x183f08['add'](_0x4dbc23),_0x4dbc23=_0x4dbc23[_0x4868('0x8')];}return Array[_0x4868('0x17')](_0x183f08);}(_0x1daf9d));});};}_0x99c76d[_0x4868('0x18')](_0x4868('0x14'),_0xfe2c96(_0x4868('0x14'))),_0x99c76d[_0x4868('0x18')](_0x4868('0x7'),_0xfe2c96(_0x4868('0x7'))),_0x3ecf0c&&_0x99c76d['enableCommand'](_0x4868('0x31'),_0xfe2c96('todoList')),_0x99c76d[_0x4868('0x18')]('indentList',_0x1b85c5(_0x4868('0x1a'))),_0x99c76d[_0x4868('0x18')]('outdentList',_0x1b85c5(_0x4868('0x3c'))),_0x3ecf0c&&_0x99c76d[_0x4868('0x18')](_0x4868('0x3'),()=>{const _0x4b3a50=_0x1ec083['commands'][_0x4868('0x6')](_0x4868('0x3')),_0x1ee46f=Array[_0x4868('0x17')](_0x4b3a50[_0x4868('0x33')]);_0x1ee46f[_0x4868('0x3b')](_0x27edf4=>_0x27edf4['getAttribute'](_0x4868('0x35'))!=_0x4b3a50['value']),_0x1ec083[_0x4868('0x26')][_0x4868('0x5')](()=>{for(const _0x1b1583 of _0x1ee46f)_0x99c76d['markBlockFormat'](_0x1b1583,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4b3a50[_0x4868('0x2f')]}]});});}),_0x99c76d[_0x4868('0x2b')]['registerElementLabel'](_0x4868('0x16'),_0x57935b=>_0x527b77(_0x280618,_0x4868('0x2d'),_0x57935b)),_0x99c76d[_0x4868('0x2b')][_0x4868('0x12')](_0x4c9cb5=>{const {data:_0x2d9218}=_0x4c9cb5;if(_0x2d9218){if(_0x4868('0x14')==_0x2d9218[_0x4868('0x2c')]||_0x4868('0x7')==_0x2d9218[_0x4868('0x2c')]||'todoList'==_0x2d9218[_0x4868('0x2c')])switch(_0x2d9218[_0x4868('0x2c')][_0x4868('0x4')](_0x4868('0xe'),'')){case _0x4868('0x34'):return _0x1cff57(_0x527b77(_0x280618,_0x4868('0x21')));case'numbered':return _0x1cff57(_0x527b77(_0x280618,_0x4868('0x28')));case _0x4868('0x27'):return _0x1cff57(_0x527b77(_0x280618,'ELEMENT_TODO_LIST'));}if(_0x4868('0x1a')==_0x2d9218[_0x4868('0x2c')])return{'type':'format','content':_0x527b77(_0x280618,_0x4868('0x37'),_0x527b77(_0x280618,_0x4868('0x2d')))};if(_0x4868('0x3c')==_0x2d9218[_0x4868('0x2c')])return{'type':_0x4868('0x15'),'content':_0x527b77(_0x280618,'*Outdent:*\x20%0',_0x527b77(_0x280618,_0x4868('0x2d')))};if(_0x4868('0x3')==_0x2d9218[_0x4868('0x2c')])return _0x2d9218['commandParams'][0x0]['forceValue']?{'type':'format','content':_0x527b77(_0x280618,_0x4868('0x30'))}:{'type':_0x4868('0x15'),'content':_0x527b77(_0x280618,_0x4868('0xc'))};}function _0x1cff57(_0x104ccf){return{'type':_0x4868('0x15'),'content':_0x527b77(_0x280618,_0x4868('0x2'),_0x104ccf)};}});}}function Lt(_0x49f9c5){const _0x303db7=_0x49f9c5[_0x4868('0x13')](_0x4868('0x1e'));if(0x0==_0x303db7)return _0x49f9c5;let _0x434a2e=_0x49f9c5;for(;_0x49f9c5[_0x4868('0x1c')]&&_0x49f9c5[_0x4868('0x1c')]['is'](_0x4868('0x36'),'listItem');){const _0x44e308=_0x49f9c5[_0x4868('0x1c')][_0x4868('0x13')](_0x4868('0x1e'));if(_0x44e308==_0x303db7)_0x434a2e=_0x49f9c5[_0x4868('0x1c')];else{if(_0x44e308<_0x303db7)break;}_0x49f9c5=_0x49f9c5[_0x4868('0x1c')];}return _0x434a2e;}function Mt(_0xc86f9c){const _0x2d05e6=[];if(_0xc86f9c['is'](_0x4868('0x36'),_0x4868('0x16'))&&_0xc86f9c[_0x4868('0x13')](_0x4868('0x1e'))>0x0){let _0x5bb8d5=_0xc86f9c[_0x4868('0x8')];for(;_0x5bb8d5&&'listItem'==_0x5bb8d5[_0x4868('0x32')]&&_0x5bb8d5[_0x4868('0x13')](_0x4868('0x1e'))==_0xc86f9c[_0x4868('0x13')]('listIndent');)_0x2d05e6['push'](_0x5bb8d5),_0x5bb8d5=_0x5bb8d5[_0x4868('0x8')];}return _0x2d05e6;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x274ae8}from'ckeditor5/src/core';export default class X extends _0x274ae8{['afterInit'](){const _0x31ffd2=this['editor'];if(!_0x31ffd2['plugins']['has']('MediaEmbedEditing'))return;const _0x53d0fa=_0x31ffd2['plugins']['get']('TrackChangesEditing'),{t:t}=_0x31ffd2['locale'];_0x53d0fa['enableCommand']('mediaEmbed'),_0x53d0fa['_descriptionFactory']['registerElementLabel']('media',_0x341882=>t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x341882)),_0x31ffd2['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x16544e,{writer:_0x189eae,options:_0x51fc43})=>{if(_0x51fc43['showSuggestionHighlights'])return _0x189eae['createEmptyElement']('div');},'converterPriority':'high'}),_0x31ffd2['data']['downcastDispatcher']['on']('attribute:url:media',(_0x42579f,_0x511bc0,_0x15e68a)=>{_0x15e68a['options']['showSuggestionHighlights']&&_0x42579f['stop']();},{'priority':'high'});}}
23
+ const _0xb051=['registerElementLabel','editor','locale','high','options','div','TrackChangesEditing','has','get','MediaEmbedEditing','mediaEmbed','ELEMENT_MEDIA','elementToElement','for','plugins','dataDowncast','_descriptionFactory','conversion'];(function(_0x3d66e0,_0xb051db){const _0x91a38c=function(_0x218a84){while(--_0x218a84){_0x3d66e0['push'](_0x3d66e0['shift']());}};_0x91a38c(++_0xb051db);}(_0xb051,0x166));const _0x91a3=function(_0x3d66e0,_0xb051db){_0x3d66e0=_0x3d66e0-0x0;let _0x91a38c=_0xb051[_0x3d66e0];return _0x91a38c;};import{Plugin as _0x45cabc}from'ckeditor5/src/core';import{getTranslation as _0x437977}from'../utils/common-translations';export default class it extends _0x45cabc{['afterInit'](){const _0x25f2ef=this[_0x91a3('0x3')];if(!_0x25f2ef[_0x91a3('0x10')][_0x91a3('0x9')](_0x91a3('0xb')))return;const _0x125e56=_0x25f2ef[_0x91a3('0x10')][_0x91a3('0xa')](_0x91a3('0x8')),_0x22e565=_0x25f2ef[_0x91a3('0x4')];_0x125e56['enableCommand'](_0x91a3('0xc')),_0x125e56[_0x91a3('0x0')][_0x91a3('0x2')]('media',_0x9607e3=>_0x437977(_0x22e565,_0x91a3('0xd'),_0x9607e3)),_0x25f2ef[_0x91a3('0x1')][_0x91a3('0xf')](_0x91a3('0x11'))[_0x91a3('0xe')]({'model':'media','view':(_0x589acc,{writer:_0x31a07b,options:_0xe7e4a3})=>{if(_0xe7e4a3['showSuggestionHighlights'])return _0x31a07b['createEmptyElement'](_0x91a3('0x7'));},'converterPriority':_0x91a3('0x5')}),_0x25f2ef['data']['downcastDispatcher']['on']('attribute:url:media',(_0x171cb1,_0x43ee86,_0x343c53)=>{_0x343c53[_0x91a3('0x6')]['showSuggestionHighlights']&&_0x171cb1['stop']();},{'priority':_0x91a3('0x5')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x63b9=['editor','afterInit','MentionEditing','TrackChangesEditing','plugins','has','mention','get'];(function(_0x1b69f6,_0x63b9b4){const _0x780540=function(_0x5baf97){while(--_0x5baf97){_0x1b69f6['push'](_0x1b69f6['shift']());}};_0x780540(++_0x63b9b4);}(_0x63b9,0xd7));const _0x7805=function(_0x1b69f6,_0x63b9b4){_0x1b69f6=_0x1b69f6-0x0;let _0x780540=_0x63b9[_0x1b69f6];return _0x780540;};import{Plugin as _0x414e44}from'ckeditor5/src/core';export default class Y extends _0x414e44{[_0x7805('0x2')](){const _0x16826c=this[_0x7805('0x1')];_0x16826c[_0x7805('0x5')][_0x7805('0x6')](_0x7805('0x3'))&&_0x16826c[_0x7805('0x5')][_0x7805('0x0')](_0x7805('0x4'))['enableCommand'](_0x7805('0x7'));}}
23
+ const _0x1f83=['afterInit','has','MentionEditing','plugins','editor','get','TrackChangesEditing'];(function(_0x4e3a8a,_0x1f83b0){const _0x1a737f=function(_0x369360){while(--_0x369360){_0x4e3a8a['push'](_0x4e3a8a['shift']());}};_0x1a737f(++_0x1f83b0);}(_0x1f83,0x1ac));const _0x1a73=function(_0x4e3a8a,_0x1f83b0){_0x4e3a8a=_0x4e3a8a-0x0;let _0x1a737f=_0x1f83[_0x4e3a8a];return _0x1a737f;};import{Plugin as _0xde0db4}from'ckeditor5/src/core';export default class st extends _0xde0db4{[_0x1a73('0x6')](){const _0x2bb25e=this[_0x1a73('0x3')];_0x2bb25e[_0x1a73('0x2')][_0x1a73('0x0')](_0x1a73('0x1'))&&_0x2bb25e[_0x1a73('0x2')][_0x1a73('0x4')](_0x1a73('0x5'))['enableCommand']('mention');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1ae752}from'ckeditor5/src/core';export default class Z extends _0x1ae752{['afterInit'](){const _0x2a945d=this['editor'];if(!_0x2a945d['plugins']['has']('PageBreakEditing'))return;_0x2a945d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x51bb2f=_0x2a945d['plugins']['get']('TrackChangesEditing'),{t:t}=_0x2a945d['locale'];_0x51bb2f['_descriptionFactory']['registerElementLabel']('pageBreak',_0x4a7e1f=>t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4a7e1f));}}
23
+ const _0x5cf7=['get','plugins','pageBreak','TrackChangesEditing','afterInit','editor','registerElementLabel','has','enableCommand','_descriptionFactory','locale','ELEMENT_PAGE_BREAK','PageBreakEditing'];(function(_0x36637e,_0x5cf75a){const _0x25e5a1=function(_0x127505){while(--_0x127505){_0x36637e['push'](_0x36637e['shift']());}};_0x25e5a1(++_0x5cf75a);}(_0x5cf7,0x148));const _0x25e5=function(_0x36637e,_0x5cf75a){_0x36637e=_0x36637e-0x0;let _0x25e5a1=_0x5cf7[_0x36637e];return _0x25e5a1;};import{Plugin as _0x2b3d81}from'ckeditor5/src/core';import{getTranslation as _0x2b85bc}from'../utils/common-translations';export default class ot extends _0x2b3d81{[_0x25e5('0x1')](){const _0x560c2d=this[_0x25e5('0x2')];if(!_0x560c2d[_0x25e5('0xb')][_0x25e5('0x4')](_0x25e5('0x9')))return;_0x560c2d[_0x25e5('0xb')][_0x25e5('0xa')](_0x25e5('0x0'))[_0x25e5('0x5')](_0x25e5('0xc'));const _0x399e00=_0x560c2d[_0x25e5('0xb')][_0x25e5('0xa')](_0x25e5('0x0')),_0x4e6a3c=_0x560c2d[_0x25e5('0x7')];_0x399e00[_0x25e5('0x6')][_0x25e5('0x3')](_0x25e5('0xc'),_0x342a45=>_0x2b85bc(_0x4e6a3c,_0x25e5('0x8'),_0x342a45));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x164b2b}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x2b4f42}from'./utils';export default class tt extends _0x164b2b{['afterInit'](){const _0x3b9431=this['editor'];if(!_0x3b9431['plugins']['has']('Paragraph'))return;const {t:t}=_0x3b9431['locale'],_0x82ef7c=_0x3b9431['plugins']['get']('TrackChangesEditing');_0x82ef7c['_descriptionFactory']['registerElementLabel']('paragraph',_0x94f017=>t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x94f017)),_0x82ef7c['enableCommand']('paragraph',(_0x44b38f,_0x648abe={})=>{const _0x35690b=_0x3b9431['model']['document'],_0x239dc5=_0x648abe['selection']||_0x35690b['selection'],_0x169c89=Array['from'](_0x239dc5['getSelectedBlocks']())['filter'](_0x5e8475=>function(_0x5944cb,_0x43dae0){return _0x43dae0['checkChild'](_0x5944cb['parent'],'paragraph')&&!_0x43dae0['isObject'](_0x5944cb)&&'paragraph'!=_0x5944cb['name'];}(_0x5e8475,this['editor']['model']['schema']));_0x3b9431['model']['change'](()=>{for(const _0x78b6a3 of _0x169c89)_0x82ef7c['markBlockFormat'](_0x78b6a3,{'commandName':'paragraph','commandParams':[],'formatGroupId':'blockName'},_0x2b4f42(_0x78b6a3));});}),_0x82ef7c['_descriptionFactory']['registerDescriptionCallback'](_0x19cca5=>{const {data:_0xd7745f}=_0x19cca5;if(_0xd7745f&&'paragraph'==_0xd7745f['commandName'])return{'type':'format','content':t('*Change\x20to:*\x20%0',t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'}))};}),_0x82ef7c['enableCommand']('insertParagraph'),_0x3b9431['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',tr(_0x3b9431),{'priority':'highest'}),_0x3b9431['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x39ef5e,_0x740aa8,_0x52d844)=>{_0x52d844['options']['showSuggestionHighlights']&&tr(_0x3b9431,{'showActiveMarker':!0x1})(_0x39ef5e,_0x740aa8,_0x52d844);},{'priority':'highest'});const _0x4fac16=_0x82ef7c['_descriptionFactory'];_0x4fac16['registerDescriptionCallback'](_0x25aa2c=>{if('insertion'!==_0x25aa2c['type'])return;const {start:_0xda5eb6,end:_0x5660e6}=_0x25aa2c['getFirstRange']();if(!_0xda5eb6['isTouching'](_0x5660e6)||!_0xda5eb6['nodeAfter'])return;const _0x22cb11=_0x3b9431['model']['schema'],_0x51a23a=_0xda5eb6['nodeAfter'];return _0x22cb11['isBlock'](_0x51a23a)&&!_0x22cb11['isLimit'](_0x51a23a)&&_0x22cb11['checkChild'](_0x51a23a,'$text')?{'type':'insertion','content':t('*Insert:*\x20%0',_0x4fac16['getItemLabel'](_0x51a23a['name'],0x1))}:void 0x0;});}}function tr(_0x18057d,{showActiveMarker:_0x261088=!0x0}={}){return(_0x3544c1,_0x4b957f,_0x2942b6)=>{const _0x5d4c0d=_0x18057d['plugins']['get']('TrackChangesEditing'),_0x537ea9=_0x4b957f['markerRange']['start'],_0x22eeeb=_0x4b957f['markerRange']['end'],_0xe87146=_0x18057d['model']['schema'];if(!_0x537ea9['isTouching'](_0x22eeeb)||!_0x537ea9['nodeAfter'])return;const _0x263e1f=_0x537ea9['nodeAfter'];if(_0xe87146['isBlock'](_0x263e1f)&&!_0xe87146['isLimit'](_0x263e1f)&&_0xe87146['checkChild'](_0x263e1f,'$text')){if(!_0x2942b6['consumable']['consume'](_0x4b957f['markerRange'],_0x3544c1['name']))return;const _0x59862b=_0x2942b6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x17c26c=_0x2942b6['mapper']['toViewPosition'](_0x22eeeb);_0x261088&&_0x5d4c0d['activeMarkers']['includes'](_0x4b957f['markerName'])&&_0x2942b6['writer']['addClass']('ck-suggestion-marker--active',_0x59862b),_0x2942b6['writer']['insert'](_0x17c26c,_0x59862b),_0x2942b6['mapper']['bindElementToMarker'](_0x59862b,_0x4b957f['markerName']);}};}
23
+ const _0x175e=['data','markBlockFormat','span','addMarker:suggestion:insertion','Paragraph','locale','registerDescriptionCallback','name','document','ck-suggestion-marker-split','get','TrackChangesEditing','paragraph','change','markerRange','downcastDispatcher','enableCommand','editor','schema','options','insertion','has','addClass','checkChild','markerName','isLimit','createUIElement','blockName','highest','isBlock','getFirstRange','from','_descriptionFactory','commandName','plugins','ELEMENT_PARAGRAPH','$text','mapper','type','consumable','model','selection','afterInit','end','insertParagraph','getItemLabel','activeMarkers','*Insert:*\x20%0','nodeAfter','writer','start'];(function(_0x4c86e0,_0x175e1e){const _0x1a6346=function(_0x1a4fa8){while(--_0x1a4fa8){_0x4c86e0['push'](_0x4c86e0['shift']());}};_0x1a6346(++_0x175e1e);}(_0x175e,0x1a5));const _0x1a63=function(_0x4c86e0,_0x175e1e){_0x4c86e0=_0x4c86e0-0x0;let _0x1a6346=_0x175e[_0x4c86e0];return _0x1a6346;};import{Plugin as _0x2fdc31}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x227212}from'./utils';import{getTranslation as _0x177e62}from'../utils/common-translations';export default class nt extends _0x2fdc31{[_0x1a63('0x1d')](){const _0x107744=this['editor'];if(!_0x107744[_0x1a63('0x15')][_0x1a63('0x8')](_0x1a63('0x2a')))return;const _0x337d22=_0x107744[_0x1a63('0x2b')],_0x46cbd6=_0x107744[_0x1a63('0x15')][_0x1a63('0x30')]('TrackChangesEditing');_0x46cbd6[_0x1a63('0x13')]['registerElementLabel'](_0x1a63('0x32'),_0x4d279a=>_0x177e62(_0x337d22,_0x1a63('0x16'),_0x4d279a)),_0x46cbd6[_0x1a63('0x3')](_0x1a63('0x32'),(_0x20b9d1,_0x466708={})=>{const _0x76112b=_0x107744[_0x1a63('0x1b')][_0x1a63('0x2e')],_0x37efb6=_0x466708['selection']||_0x76112b[_0x1a63('0x1c')],_0x285978=Array[_0x1a63('0x12')](_0x37efb6['getSelectedBlocks']())['filter'](_0x17fb3a=>function(_0x3b833d,_0x563fb7){return _0x563fb7[_0x1a63('0xa')](_0x3b833d['parent'],'paragraph')&&!_0x563fb7['isObject'](_0x3b833d)&&_0x1a63('0x32')!=_0x3b833d['name'];}(_0x17fb3a,this[_0x1a63('0x4')]['model'][_0x1a63('0x5')]));_0x107744['model'][_0x1a63('0x0')](()=>{for(const _0x133d65 of _0x285978)_0x46cbd6[_0x1a63('0x27')](_0x133d65,{'commandName':_0x1a63('0x32'),'commandParams':[],'formatGroupId':_0x1a63('0xe')},_0x227212(_0x133d65));});}),_0x46cbd6[_0x1a63('0x13')][_0x1a63('0x2c')](_0x5e3daa=>{const {data:_0x166b45}=_0x5e3daa;if(_0x166b45&&_0x1a63('0x32')==_0x166b45[_0x1a63('0x14')])return{'type':'format','content':_0x177e62(_0x337d22,'*Change\x20to:*\x20%0',_0x177e62(_0x337d22,'ELEMENT_PARAGRAPH'))};}),_0x46cbd6['enableCommand'](_0x1a63('0x1f')),_0x107744['editing'][_0x1a63('0x2')]['on'](_0x1a63('0x29'),tr(_0x107744),{'priority':_0x1a63('0xf')}),_0x107744[_0x1a63('0x26')]['downcastDispatcher']['on'](_0x1a63('0x29'),(_0x3d926e,_0x4d85b6,_0x2b2352)=>{_0x2b2352[_0x1a63('0x6')]['showSuggestionHighlights']&&tr(_0x107744,{'showActiveMarker':!0x1})(_0x3d926e,_0x4d85b6,_0x2b2352);},{'priority':'highest'});const _0x16bb49=_0x46cbd6['_descriptionFactory'];_0x16bb49[_0x1a63('0x2c')](_0x2dda7f=>{if(_0x1a63('0x7')!==_0x2dda7f[_0x1a63('0x19')])return;const {start:_0x33f9dc,end:_0x25c96a}=_0x2dda7f[_0x1a63('0x11')]();if(!_0x33f9dc['isTouching'](_0x25c96a)||!_0x33f9dc[_0x1a63('0x23')])return;const _0x23e6a3=_0x107744[_0x1a63('0x1b')][_0x1a63('0x5')],_0x1cbbda=_0x33f9dc[_0x1a63('0x23')];return _0x23e6a3['isBlock'](_0x1cbbda)&&!_0x23e6a3[_0x1a63('0xc')](_0x1cbbda)&&_0x23e6a3[_0x1a63('0xa')](_0x1cbbda,_0x1a63('0x17'))?{'type':'insertion','content':_0x177e62(_0x337d22,_0x1a63('0x22'),_0x16bb49[_0x1a63('0x20')](_0x1cbbda[_0x1a63('0x2d')],0x1))}:void 0x0;});}}function tr(_0x15f25b,{showActiveMarker:_0x1f1ad5=!0x0}={}){return(_0x592423,_0x2ae6ef,_0x1b6362)=>{const _0x37a400=_0x15f25b[_0x1a63('0x15')][_0x1a63('0x30')](_0x1a63('0x31')),_0x22e5aa=_0x2ae6ef[_0x1a63('0x1')][_0x1a63('0x25')],_0x26bf84=_0x2ae6ef[_0x1a63('0x1')][_0x1a63('0x1e')],_0x36c04f=_0x15f25b[_0x1a63('0x1b')][_0x1a63('0x5')];if(!_0x22e5aa['isTouching'](_0x26bf84)||!_0x22e5aa[_0x1a63('0x23')])return;const _0xd66979=_0x22e5aa[_0x1a63('0x23')];if(_0x36c04f[_0x1a63('0x10')](_0xd66979)&&!_0x36c04f[_0x1a63('0xc')](_0xd66979)&&_0x36c04f[_0x1a63('0xa')](_0xd66979,_0x1a63('0x17'))){if(!_0x1b6362[_0x1a63('0x1a')]['consume'](_0x2ae6ef[_0x1a63('0x1')],_0x592423[_0x1a63('0x2d')]))return;const _0x2319d2=_0x1b6362['writer'][_0x1a63('0xd')](_0x1a63('0x28'),{'class':_0x1a63('0x2f')}),_0x1bc8b4=_0x1b6362[_0x1a63('0x18')]['toViewPosition'](_0x26bf84);_0x1f1ad5&&_0x37a400[_0x1a63('0x21')]['includes'](_0x2ae6ef[_0x1a63('0xb')])&&_0x1b6362['writer'][_0x1a63('0x9')]('ck-suggestion-marker--active',_0x2319d2),_0x1b6362[_0x1a63('0x24')]['insert'](_0x1bc8b4,_0x2319d2),_0x1b6362[_0x1a63('0x18')]['bindElementToMarker'](_0x2319d2,_0x2ae6ef[_0x1a63('0xb')]);}};}