@ckeditor/ckeditor5-track-changes 31.1.0 → 32.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/lang/contexts.json +1 -1
  4. package/lang/translations/cs.po +3 -3
  5. package/lang/translations/da.po +3 -3
  6. package/lang/translations/de.po +3 -3
  7. package/lang/translations/en-au.po +3 -3
  8. package/lang/translations/en.po +2 -2
  9. package/lang/translations/es.po +2 -2
  10. package/lang/translations/et.po +2 -2
  11. package/lang/translations/fr.po +3 -3
  12. package/lang/translations/gl.po +3 -3
  13. package/lang/translations/hi.po +3 -3
  14. package/lang/translations/hr.po +3 -3
  15. package/lang/translations/it.po +5 -5
  16. package/lang/translations/nl.po +2 -2
  17. package/lang/translations/pl.po +3 -3
  18. package/lang/translations/pt-br.po +5 -5
  19. package/lang/translations/sk.po +3 -3
  20. package/lang/translations/sr-latn.po +3 -3
  21. package/lang/translations/sr.po +3 -3
  22. package/lang/translations/tk.po +3 -3
  23. package/lang/translations/tr.po +3 -3
  24. package/lang/translations/zh-cn.po +3 -3
  25. package/lang/translations/zh.po +2 -2
  26. package/package.json +7 -7
  27. package/src/commands/acceptallsuggestionscommand.js +2 -2
  28. package/src/commands/acceptselectedsuggestionscommand.js +2 -2
  29. package/src/commands/acceptsuggestioncommand.js +2 -2
  30. package/src/commands/discardallsuggestionscommand.js +2 -2
  31. package/src/commands/discardselectedsuggestionscommand.js +2 -2
  32. package/src/commands/discardsuggestioncommand.js +2 -2
  33. package/src/commands/trackchangescommand.js +2 -2
  34. package/src/integrations/alignment.js +2 -2
  35. package/src/integrations/basicstyles.js +2 -2
  36. package/src/integrations/blockquote.js +2 -2
  37. package/src/integrations/codeblock.js +2 -2
  38. package/src/integrations/comments.js +2 -2
  39. package/src/integrations/deletecommand.js +2 -2
  40. package/src/integrations/entercommand.js +2 -2
  41. package/src/integrations/font.js +2 -2
  42. package/src/integrations/heading.js +2 -2
  43. package/src/integrations/highlight.js +2 -2
  44. package/src/integrations/horizontalline.js +2 -2
  45. package/src/integrations/image.js +2 -2
  46. package/src/integrations/indent.js +2 -2
  47. package/src/integrations/inputcommand.js +2 -2
  48. package/src/integrations/link.js +2 -2
  49. package/src/integrations/list.js +2 -2
  50. package/src/integrations/mediaembed.js +2 -2
  51. package/src/integrations/mention.js +2 -2
  52. package/src/integrations/pagebreak.js +2 -2
  53. package/src/integrations/paragraph.js +2 -2
  54. package/src/integrations/removeformat.js +2 -2
  55. package/src/integrations/restrictededitingmode.js +2 -2
  56. package/src/integrations/shiftentercommand.js +2 -2
  57. package/src/integrations/standardeditingmode.js +2 -2
  58. package/src/integrations/table.js +2 -2
  59. package/src/integrations/tableclipboard.js +2 -2
  60. package/src/integrations/tableheadings.js +2 -2
  61. package/src/integrations/tablemergesplit.js +2 -2
  62. package/src/integrations/title.js +2 -2
  63. package/src/integrations/undo.js +2 -2
  64. package/src/integrations/utils.js +2 -2
  65. package/src/suggestion.js +2 -2
  66. package/src/suggestiondescriptionfactory.js +2 -2
  67. package/src/trackchanges.js +2 -2
  68. package/src/trackchangesdata.js +2 -2
  69. package/src/trackchangesediting.js +2 -2
  70. package/src/trackchangesui.js +2 -2
  71. package/src/ui/suggestioncontroller.js +2 -2
  72. package/src/ui/view/basesuggestionthreadview.js +2 -2
  73. package/src/ui/view/suggestionthreadview.js +2 -2
  74. package/src/utils/getselectedsuggestions.js +2 -2
  75. package/src/utils/hashobject.js +2 -2
  76. package/src/utils/normalizedescription.js +2 -2
  77. package/src/utils/sortsuggestions.js +2 -2
  78. package/theme/icons/track-changes-accept.svg +1 -1
  79. package/theme/icons/track-changes-discard.svg +1 -1
  80. package/theme/icons/track-changes.svg +1 -1
  81. package/theme/suggestionmarker.css +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2cbb=['refresh','isEnabled','editor','_suggestions','discardSuggestion','track-changes-discard-suggestion-not-found','get','TrackChangesEditing'];(function(_0x2d52ed,_0x2cbb38){const _0x45dcc0=function(_0x38bd4f){while(--_0x38bd4f){_0x2d52ed['push'](_0x2d52ed['shift']());}};_0x45dcc0(++_0x2cbb38);}(_0x2cbb,0x122));const _0x45dc=function(_0x2d52ed,_0x2cbb38){_0x2d52ed=_0x2d52ed-0x0;let _0x45dcc0=_0x2cbb[_0x2d52ed];return _0x45dcc0;};import{Command as _0x1006ef}from'ckeditor5/src/core';import{CKEditorError as _0x5ecdfc}from'ckeditor5/src/utils';export default class U extends _0x1006ef{constructor(_0x26fa3f,_0x234e8f){super(_0x26fa3f),this[_0x45dc('0x1')]=_0x234e8f,this[_0x45dc('0x6')]();}[_0x45dc('0x6')](){this[_0x45dc('0x7')]=!0x0;}['execute'](_0x447644){const _0x3d224f=this['_suggestions'][_0x45dc('0x4')](_0x447644);if(!_0x3d224f)throw new _0x5ecdfc(_0x45dc('0x3'),this);this[_0x45dc('0x0')]['plugins'][_0x45dc('0x4')](_0x45dc('0x5'))[_0x45dc('0x2')](_0x3d224f);}}
23
+ const _0x53e1=['_suggestions','editor','TrackChangesEditing','refresh','discardSuggestion','track-changes-discard-suggestion-not-found','execute'];(function(_0x37f4b8,_0x53e158){const _0x1d1167=function(_0xf4dd){while(--_0xf4dd){_0x37f4b8['push'](_0x37f4b8['shift']());}};_0x1d1167(++_0x53e158);}(_0x53e1,0x14f));const _0x1d11=function(_0x37f4b8,_0x53e158){_0x37f4b8=_0x37f4b8-0x0;let _0x1d1167=_0x53e1[_0x37f4b8];return _0x1d1167;};import{Command as _0x197b12}from'ckeditor5/src/core';import{CKEditorError as _0x5b98d4}from'ckeditor5/src/utils';export default class U extends _0x197b12{constructor(_0xa31ca2,_0x3b8eb5){super(_0xa31ca2),this['_suggestions']=_0x3b8eb5,this[_0x1d11('0x4')]();}[_0x1d11('0x4')](){this['isEnabled']=!0x0;}[_0x1d11('0x0')](_0x36dba4){const _0xb7f865=this[_0x1d11('0x1')]['get'](_0x36dba4);if(!_0xb7f865)throw new _0x5b98d4(_0x1d11('0x6'),this);this[_0x1d11('0x2')]['plugins']['get'](_0x1d11('0x3'))[_0x1d11('0x5')](_0xb7f865);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e50=['commands','forceDisabled','refresh','value','TrackChangesCommand','execute','editor','clearForceDisabled','_disableUnsupportedCommands','_enabledCommands','isEnabled','has','affectsData'];(function(_0x358571,_0x4e50dd){const _0x2a88b5=function(_0x596708){while(--_0x596708){_0x358571['push'](_0x358571['shift']());}};_0x2a88b5(++_0x4e50dd);}(_0x4e50,0x145));const _0x2a88=function(_0x358571,_0x4e50dd){_0x358571=_0x358571-0x0;let _0x2a88b5=_0x4e50[_0x358571];return _0x2a88b5;};import{Command as _0x494598}from'ckeditor5/src/core';export default class N extends _0x494598{constructor(_0x51e750,_0xb162f4){super(_0x51e750),this['_enabledCommands']=_0xb162f4,this[_0x2a88('0x3')]=!0x1,this[_0x2a88('0x2')]();}[_0x2a88('0x2')](){this[_0x2a88('0xa')]=!0x0;}[_0x2a88('0x5')](){this[_0x2a88('0x3')]=!this[_0x2a88('0x3')],this[_0x2a88('0x3')]?this['_disableUnsupportedCommands']():this['_enableCommands']();}[_0x2a88('0x8')](){for(const _0x1b5c19 of this['editor'][_0x2a88('0x0')][_0x2a88('0x0')]())_0x1b5c19[_0x2a88('0xc')]&&!this[_0x2a88('0x9')][_0x2a88('0xb')](_0x1b5c19)&&_0x1b5c19[_0x2a88('0x1')](_0x2a88('0x4'));}['_enableCommands'](){for(const _0xc387f4 of this[_0x2a88('0x6')][_0x2a88('0x0')]['commands']())_0xc387f4[_0x2a88('0xc')]&&!this['_enabledCommands'][_0x2a88('0xb')](_0xc387f4)&&_0xc387f4[_0x2a88('0x7')](_0x2a88('0x4'));}}
23
+ const _0x1b75=['isEnabled','has','_enableCommands','execute','_enabledCommands','value','refresh','_disableUnsupportedCommands','TrackChangesCommand','clearForceDisabled','commands','affectsData','editor'];(function(_0x4d4dcb,_0x1b754e){const _0x2a7fa2=function(_0x453978){while(--_0x453978){_0x4d4dcb['push'](_0x4d4dcb['shift']());}};_0x2a7fa2(++_0x1b754e);}(_0x1b75,0x1a9));const _0x2a7f=function(_0x4d4dcb,_0x1b754e){_0x4d4dcb=_0x4d4dcb-0x0;let _0x2a7fa2=_0x1b75[_0x4d4dcb];return _0x2a7fa2;};import{Command as _0x2c6505}from'ckeditor5/src/core';export default class N extends _0x2c6505{constructor(_0x1337e0,_0x43e9b1){super(_0x1337e0),this['_enabledCommands']=_0x43e9b1,this[_0x2a7f('0x9')]=!0x1,this[_0x2a7f('0xa')]();}['refresh'](){this[_0x2a7f('0x4')]=!0x0;}[_0x2a7f('0x7')](){this[_0x2a7f('0x9')]=!this[_0x2a7f('0x9')],this['value']?this[_0x2a7f('0xb')]():this[_0x2a7f('0x6')]();}[_0x2a7f('0xb')](){for(const _0x1682c5 of this[_0x2a7f('0x3')][_0x2a7f('0x1')]['commands']())_0x1682c5[_0x2a7f('0x2')]&&!this['_enabledCommands']['has'](_0x1682c5)&&_0x1682c5['forceDisabled'](_0x2a7f('0xc'));}['_enableCommands'](){for(const _0x38a159 of this[_0x2a7f('0x3')]['commands'][_0x2a7f('0x1')]())_0x38a159[_0x2a7f('0x2')]&&!this[_0x2a7f('0x8')][_0x2a7f('0x5')](_0x38a159)&&_0x38a159[_0x2a7f('0x0')]('TrackChangesCommand');}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0xace360}from'ckeditor5/src/core';export default class P extends _0xace360{['afterInit'](){const _0x5516a4=this['editor'],{t:t}=_0x5516a4['locale'];if(!_0x5516a4['plugins']['has']('AlignmentEditing'))return;const _0x42aee9=_0x5516a4['plugins']['get']('TrackChangesEditing');_0x42aee9['enableCommand']('alignment',(_0x3a1f20,_0x1c2c8d={})=>{let _0x1bd014=_0x1c2c8d['value'];_0x1c2c8d['value']||(_0x1bd014='ltr'===_0x5516a4['locale']['contentLanguageDirection']?'left':'right');const _0x4195f9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4c3a66=>function(_0x5967a6,_0x2690ac,_0x51feee){const _0x5e775f=_0x5967a6['getAttribute']('alignment')||null;return _0x2690ac['checkAttribute'](_0x5967a6,'alignment')&&_0x51feee!=_0x5e775f;}(_0x4c3a66,this['editor']['model']['schema'],_0x1bd014));_0x5516a4['model']['change'](()=>{for(const _0x55124f of _0x4195f9)_0x42aee9['markBlockFormat'](_0x55124f,{'commandName':'alignment','commandParams':[{'value':_0x1bd014}]});});}),_0x42aee9['_descriptionFactory']['registerDescriptionCallback'](_0x5f4cbb=>{const {data:_0x295fca}=_0x5f4cbb;if(_0x295fca&&'alignment'==_0x295fca['commandName']){const _0x37b737=_0x295fca['commandParams'][0x0]['value'];return{'type':'format','content':t('*Format:*\x20%0',function(_0x4e6fa9){switch(_0x4e6fa9){case'left':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'right':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'center':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'justify':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});}}(_0x37b737))};}});}}
23
+ import{Plugin as _0xe19e6e}from'ckeditor5/src/core';export default class P extends _0xe19e6e{['afterInit'](){const _0x1508c2=this['editor'],{t:t}=_0x1508c2['locale'];if(!_0x1508c2['plugins']['has']('AlignmentEditing'))return;const _0x4173e5=_0x1508c2['plugins']['get']('TrackChangesEditing');_0x4173e5['enableCommand']('alignment',(_0xfee4c0,_0x9ff230={})=>{let _0x4e1a11=_0x9ff230['value'];_0x9ff230['value']||(_0x4e1a11='ltr'===_0x1508c2['locale']['contentLanguageDirection']?'left':'right');const _0xae699b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x141ef4=>function(_0x36011d,_0x4493d5,_0x375239){const _0x22f616=_0x36011d['getAttribute']('alignment')||null;return _0x4493d5['checkAttribute'](_0x36011d,'alignment')&&_0x375239!=_0x22f616;}(_0x141ef4,this['editor']['model']['schema'],_0x4e1a11));_0x1508c2['model']['change'](()=>{for(const _0x39960c of _0xae699b)_0x4173e5['markBlockFormat'](_0x39960c,{'commandName':'alignment','commandParams':[{'value':_0x4e1a11}]});});}),_0x4173e5['_descriptionFactory']['registerDescriptionCallback'](_0x1ca2fc=>{const {data:_0x374048}=_0x1ca2fc;if(_0x374048&&'alignment'==_0x374048['commandName']){const _0x228c06=_0x374048['commandParams'][0x0]['value'];return{'type':'format','content':t('*Format:*\x20%0',function(_0x166566){switch(_0x166566){case'left':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'right':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'center':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'justify':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});}}(_0x228c06))};}});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x566220}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';const Ft=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];export default class G extends _0x566220{['afterInit'](){const _0xf2d9c0=this['editor'],_0x489171=_0xf2d9c0['model'],_0x8ab5bf=_0xf2d9c0['plugins']['get']('TrackChangesEditing'),{t:t}=_0xf2d9c0['locale'];for(const _0x5086fb of Ft){if(!_0xf2d9c0['plugins']['has'](_0x5086fb))continue;const _0x318086=_0x5086fb['slice'](0x0,-0x7)['toLowerCase'](),_0xc9dae=_0xf2d9c0['commands']['get'](_0x318086);_0x8ab5bf['enableCommand'](_0x318086,(_0x492ea9,_0x312ceb={})=>{const _0x3cd0a2=_0x489171['document']['selection'];if(_0x3cd0a2['isCollapsed'])return void _0x492ea9(_0x312ceb);const _0x4933d7=void 0x0!==_0x312ceb['forceValue']?_0x312ceb['forceValue']:!_0xc9dae['value'];_0x489171['change'](()=>{const _0xf34e13=Array['from'](_0x3cd0a2['getRanges']());for(const _0x4e55ad of _0xf34e13){const _0x58502a=_0x4933d7?[_0x4e55ad]:Rt(_0x318086,_0x4e55ad,_0x489171);for(const _0x5681bf of _0x58502a)_0x8ab5bf['markInlineFormat'](_0x5681bf,{'commandName':_0x318086,'commandParams':[{'forceValue':_0x4933d7}]});}});});}function _0x27d6ce(_0x547624,_0x29df1e){_0x8ab5bf['_descriptionFactory']['registerDescriptionCallback'](_0x555dec=>{const {data:_0x966348}=_0x555dec;if(_0x966348&&_0x966348['commandName']===_0x547624)return _0x966348['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0x29df1e)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0x29df1e)};});}_0x27d6ce('bold',t({'string':'bold','id':'FORMAT_BOLD'})),_0x27d6ce('italic',t({'string':'italic','id':'FORMAT_ITALIC'})),_0x27d6ce('underline',t({'string':'underline','id':'FORMAT_UNDERLINE'})),_0x27d6ce('code',t({'string':'code','id':'FORMAT_CODE'})),_0x27d6ce('strikethrough',t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'})),_0x27d6ce('subscript',t({'string':'subscript','id':'FORMAT_SUBSCRIPT'})),_0x27d6ce('superscript',t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'}));}}
23
+ import{Plugin as _0x19c422}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';const Ft=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];export default class G extends _0x19c422{['afterInit'](){const _0x36222a=this['editor'],_0x1562ff=_0x36222a['model'],_0x5046e0=_0x36222a['plugins']['get']('TrackChangesEditing'),{t:t}=_0x36222a['locale'];for(const _0x3e2460 of Ft){if(!_0x36222a['plugins']['has'](_0x3e2460))continue;const _0x483ed5=_0x3e2460['slice'](0x0,-0x7)['toLowerCase'](),_0x2539c8=_0x36222a['commands']['get'](_0x483ed5);_0x5046e0['enableCommand'](_0x483ed5,(_0x351788,_0x2dde52={})=>{const _0x5191f3=_0x1562ff['document']['selection'];if(_0x5191f3['isCollapsed'])return void _0x351788(_0x2dde52);const _0x3b2aec=void 0x0!==_0x2dde52['forceValue']?_0x2dde52['forceValue']:!_0x2539c8['value'];_0x1562ff['change'](()=>{const _0x2177c0=Array['from'](_0x5191f3['getRanges']());for(const _0x394252 of _0x2177c0){const _0x5466ce=_0x3b2aec?[_0x394252]:Rt(_0x483ed5,_0x394252,_0x1562ff);for(const _0x1e51e7 of _0x5466ce)_0x5046e0['markInlineFormat'](_0x1e51e7,{'commandName':_0x483ed5,'commandParams':[{'forceValue':_0x3b2aec}]});}});});}function _0x38e476(_0x2dca73,_0x284945){_0x5046e0['_descriptionFactory']['registerDescriptionCallback'](_0x13fceb=>{const {data:_0x1814b1}=_0x13fceb;if(_0x1814b1&&_0x1814b1['commandName']===_0x2dca73)return _0x1814b1['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0x284945)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0x284945)};});}_0x38e476('bold',t({'string':'bold','id':'FORMAT_BOLD'})),_0x38e476('italic',t({'string':'italic','id':'FORMAT_ITALIC'})),_0x38e476('underline',t({'string':'underline','id':'FORMAT_UNDERLINE'})),_0x38e476('code',t({'string':'code','id':'FORMAT_CODE'})),_0x38e476('strikethrough',t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'})),_0x38e476('subscript',t({'string':'subscript','id':'FORMAT_SUBSCRIPT'})),_0x38e476('superscript',t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'}));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3243db}from'ckeditor5/src/core';import{TreeWalker as Qt}from'ckeditor5/src/engine';export default class F extends _0x3243db{['afterInit'](){const _0x29acdd=this['editor'],{t:t}=_0x29acdd['locale'];if(!_0x29acdd['plugins']['has']('BlockQuoteEditing'))return;const _0x1a69f6=_0x29acdd['plugins']['get']('TrackChangesEditing'),_0x502f42=this['editor']['commands']['get']('blockQuote');_0x1a69f6['enableCommand']('blockQuote',(_0x5e6382,_0x5a7722={})=>{const _0x1741c5=this['editor']['model']['document']['selection'],_0xaa955f=_0x5a7722&&void 0x0!==_0x5a7722['forceValue']?_0x5a7722['forceValue']:!_0x502f42['value'];let _0x5998fe=[];if(_0xaa955f){const _0x20338b=Array['from'](_0x1741c5['getSelectedBlocks']())['filter'](_0x33ba79=>Bt(_0x33ba79)||function(_0x1149c3,_0x15c6c5){const _0x346afd=_0x15c6c5['checkChild'](_0x1149c3['parent'],'blockQuote'),_0x28aa5d=_0x15c6c5['checkChild'](['$root','blockQuote'],_0x1149c3);return _0x346afd&&_0x28aa5d;}(_0x33ba79,this['editor']['model']['schema']));_0x5998fe=Lt(_0x20338b,_0x29acdd['model']);}else{const _0x19a96b=Array['from'](_0x1741c5['getSelectedBlocks']())['filter'](_0x2a9f80=>Bt(_0x2a9f80));_0x5998fe=Lt(_0x19a96b,_0x29acdd['model']);}_0x29acdd['model']['change'](()=>{for(const _0x3ab921 of _0x5998fe)_0x1a69f6['markBlockFormat'](_0x3ab921,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xaa955f}]});});}),_0x1a69f6['_descriptionFactory']['registerDescriptionCallback'](_0x312627=>{const {data:_0x4a4245}=_0x312627;if(_0x4a4245&&'blockQuote'==_0x4a4245['commandName']){const _0x28293a=t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});return _0x4a4245['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0x28293a)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0x28293a)};}});}}function Bt(_0x16d137){return'blockQuote'==_0x16d137['parent']['name'];}function Lt(_0xcd4a91,_0xa43332){let _0xb75e95,_0x950824=0x0;const _0x7b568c=[],_0x28d502=_0xa43332['schema'];for(;_0x950824<_0xcd4a91['length'];){const _0x1db08a=_0xcd4a91[_0x950824],_0x4308c6=_0xcd4a91[_0x950824+0x1];_0xb75e95||(_0xb75e95=_0xa43332['createPositionBefore'](_0x1db08a)),Kt(_0xa43332,_0x1db08a,_0x4308c6)||(_0x7b568c['push'](_0xa43332['createRange'](_0xb75e95,_0x28d502['isObject'](_0x1db08a)?_0xa43332['createPositionAfter'](_0x1db08a):_0xa43332['createPositionAt'](_0x1db08a,'end'))),_0xb75e95=null),_0x950824++;}return _0x7b568c;}function Kt(_0x4f1c58,_0x1880c9,_0x42dc22){if(!_0x42dc22)return!0x1;const _0x31c266=_0x4f1c58['createPositionAfter'](_0x1880c9),_0x1bfdcc=_0x4f1c58['createPositionBefore'](_0x42dc22),_0x2a7e7b=new Qt({'boundaries':_0x4f1c58['createRange'](_0x31c266,_0x1bfdcc)});for(const _0x78705 of _0x2a7e7b)if('text'==_0x78705['type']||_0x4f1c58['schema']['isLimit'](_0x78705['item']))return!0x1;return!0x0;}
23
+ import{Plugin as _0x494018}from'ckeditor5/src/core';import{TreeWalker as Qt}from'ckeditor5/src/engine';export default class F extends _0x494018{['afterInit'](){const _0x1e7e99=this['editor'],{t:t}=_0x1e7e99['locale'];if(!_0x1e7e99['plugins']['has']('BlockQuoteEditing'))return;const _0x3187a1=_0x1e7e99['plugins']['get']('TrackChangesEditing'),_0x513b34=this['editor']['commands']['get']('blockQuote');_0x3187a1['enableCommand']('blockQuote',(_0x1b5e14,_0x44420d={})=>{const _0x5c6125=this['editor']['model']['document']['selection'],_0x4e24c9=_0x44420d&&void 0x0!==_0x44420d['forceValue']?_0x44420d['forceValue']:!_0x513b34['value'];let _0x45ad50=[];if(_0x4e24c9){const _0xa0be2f=Array['from'](_0x5c6125['getSelectedBlocks']())['filter'](_0x1d72b2=>Bt(_0x1d72b2)||function(_0x19f51f,_0x4e76cc){const _0x10c12f=_0x4e76cc['checkChild'](_0x19f51f['parent'],'blockQuote'),_0x54acc1=_0x4e76cc['checkChild'](['$root','blockQuote'],_0x19f51f);return _0x10c12f&&_0x54acc1;}(_0x1d72b2,this['editor']['model']['schema']));_0x45ad50=Lt(_0xa0be2f,_0x1e7e99['model']);}else{const _0x307128=Array['from'](_0x5c6125['getSelectedBlocks']())['filter'](_0x192374=>Bt(_0x192374));_0x45ad50=Lt(_0x307128,_0x1e7e99['model']);}_0x1e7e99['model']['change'](()=>{for(const _0x478279 of _0x45ad50)_0x3187a1['markBlockFormat'](_0x478279,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4e24c9}]});});}),_0x3187a1['_descriptionFactory']['registerDescriptionCallback'](_0xc79c94=>{const {data:_0x38f446}=_0xc79c94;if(_0x38f446&&'blockQuote'==_0x38f446['commandName']){const _0xd91bf2=t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});return _0x38f446['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0xd91bf2)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0xd91bf2)};}});}}function Bt(_0x4cd688){return'blockQuote'==_0x4cd688['parent']['name'];}function Lt(_0x49358c,_0x94d056){let _0x45774e,_0x423834=0x0;const _0x59a61e=[],_0x38f350=_0x94d056['schema'];for(;_0x423834<_0x49358c['length'];){const _0x4d9219=_0x49358c[_0x423834],_0x169b97=_0x49358c[_0x423834+0x1];_0x45774e||(_0x45774e=_0x94d056['createPositionBefore'](_0x4d9219)),Kt(_0x94d056,_0x4d9219,_0x169b97)||(_0x59a61e['push'](_0x94d056['createRange'](_0x45774e,_0x38f350['isObject'](_0x4d9219)?_0x94d056['createPositionAfter'](_0x4d9219):_0x94d056['createPositionAt'](_0x4d9219,'end'))),_0x45774e=null),_0x423834++;}return _0x59a61e;}function Kt(_0xbd39a9,_0x3d7dc2,_0x30a15c){if(!_0x30a15c)return!0x1;const _0x2a839f=_0xbd39a9['createPositionAfter'](_0x3d7dc2),_0x353a46=_0xbd39a9['createPositionBefore'](_0x30a15c),_0x580e04=new Qt({'boundaries':_0xbd39a9['createRange'](_0x2a839f,_0x353a46)});for(const _0x39bfaa of _0x580e04)if('text'==_0x39bfaa['type']||_0xbd39a9['schema']['isLimit'](_0x39bfaa['item']))return!0x1;return!0x0;}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x2e2e5e}from'ckeditor5/src/core';export default class L extends _0x2e2e5e{['afterInit'](){const _0x14ff55=this['editor'],{t:t}=_0x14ff55['locale'];if(!_0x14ff55['plugins']['has']('CodeBlock'))return;_0x14ff55['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerElementLabel']('codeBlock',_0x1a993c=>t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x1a993c));}}
23
+ import{Plugin as _0xf0ff7a}from'ckeditor5/src/core';export default class L extends _0xf0ff7a{['afterInit'](){const _0x1bc218=this['editor'],{t:t}=_0x1bc218['locale'];if(!_0x1bc218['plugins']['has']('CodeBlock'))return;_0x1bc218['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerElementLabel']('codeBlock',_0x63574d=>t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x63574d));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4e32=['addCommentThread','plugins','get'];(function(_0x32b59a,_0x4e32ed){var _0x347970=function(_0xbdb2f0){while(--_0xbdb2f0){_0x32b59a['push'](_0x32b59a['shift']());}};_0x347970(++_0x4e32ed);}(_0x4e32,0x71));var _0x3479=function(_0x32b59a,_0x4e32ed){_0x32b59a=_0x32b59a-0x0;var _0x347970=_0x4e32[_0x32b59a];return _0x347970;};import{Plugin as _0x2deee9}from'ckeditor5/src/core';import _0x48e334 from'@ckeditor/ckeditor5-comments/src/comments/commentsediting';export default class q extends _0x2deee9{static get['requires'](){return[_0x48e334];}['init'](){this['editor'][_0x3479('0x2')][_0x3479('0x0')]('TrackChangesEditing')['enableCommand'](_0x3479('0x1'));}}
23
+ var _0x1b57=['addCommentThread','TrackChangesEditing','get','plugins','requires','editor','init'];(function(_0x432a22,_0x1b5777){var _0x4f2170=function(_0x5d68ad){while(--_0x5d68ad){_0x432a22['push'](_0x432a22['shift']());}};_0x4f2170(++_0x1b5777);}(_0x1b57,0x17e));var _0x4f21=function(_0x432a22,_0x1b5777){_0x432a22=_0x432a22-0x0;var _0x4f2170=_0x1b57[_0x432a22];return _0x4f2170;};import{Plugin as _0xb78be6}from'ckeditor5/src/core';import _0x550c22 from'@ckeditor/ckeditor5-comments/src/comments/commentsediting';export default class q extends _0xb78be6{static get[_0x4f21('0x0')](){return[_0x550c22];}[_0x4f21('0x2')](){this[_0x4f21('0x1')][_0x4f21('0x6')][_0x4f21('0x5')](_0x4f21('0x4'))['enableCommand'](_0x4f21('0x3'));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x216d=['plugins','downcastDispatcher','uiElement','unit','addMarker:suggestion:deletion','selection','isCollapsed','forward','start','enqueueChange','model','lock','createRange','commands','createSelection','mapper','rootName','detach','end','markerName','buffer','enableCommand','batch','requires','options','init','merge','$graveyard','modifySelection','deleteForward','editing','get','markerNameToElements','high'];(function(_0x5c71ee,_0x216dc8){const _0x2fa04e=function(_0x34a8c3){while(--_0x34a8c3){_0x5c71ee['push'](_0x5c71ee['shift']());}};_0x2fa04e(++_0x216dc8);}(_0x216d,0x1e8));const _0x2fa0=function(_0x5c71ee,_0x216dc8){_0x5c71ee=_0x5c71ee-0x0;let _0x2fa04e=_0x216d[_0x5c71ee];return _0x2fa04e;};import{Plugin as _0x8c728d}from'ckeditor5/src/core';import{Delete as _0x121176}from'ckeditor5/src/typing';import{LiveRange as _0x103073}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x125808}from'./utils';export default class H extends _0x8c728d{static get[_0x2fa0('0xb')](){return[_0x121176];}[_0x2fa0('0xd')](){const _0x1545f3=this['editor'],_0x30ac6d=_0x1545f3[_0x2fa0('0x16')][_0x2fa0('0x13')]('TrackChangesEditing');_0x30ac6d[_0x2fa0('0x9')]('delete');const _0x917d0f=_0x1545f3[_0x2fa0('0x1')][_0x2fa0('0x13')](_0x2fa0('0x11'));_0x30ac6d[_0x2fa0('0x9')](_0x2fa0('0x11'),(_0x4487a1,_0x198362={})=>{const _0x1945d3=_0x1545f3[_0x2fa0('0x20')][_0x2fa0('0x2')](_0x1545f3[_0x2fa0('0x20')]['document'][_0x2fa0('0x1b')]);_0x1945d3[_0x2fa0('0x1c')]&&_0x1545f3[_0x2fa0('0x20')][_0x2fa0('0x10')](_0x1945d3,{'direction':_0x2fa0('0x1d'),'unit':_0x198362[_0x2fa0('0x19')]});const _0xe31876=_0x1945d3['getFirstRange'](),_0x27f428=_0x103073['fromRange'](_0xe31876);let _0x32c464;_0x4487a1(_0x198362),_0x32c464=_0x2fa0('0xf')==_0x27f428['root'][_0x2fa0('0x4')]?_0x1545f3[_0x2fa0('0x20')][_0x2fa0('0x0')](_0xe31876[_0x2fa0('0x1e')]):_0x1545f3[_0x2fa0('0x20')][_0x2fa0('0x0')](_0x27f428['start'],_0x27f428['end']),_0x27f428[_0x2fa0('0x5')](),_0x1545f3['model'][_0x2fa0('0x1f')](_0x917d0f['buffer'][_0x2fa0('0xa')],_0x256277=>{_0x917d0f[_0x2fa0('0x8')][_0x2fa0('0x21')](),_0x256277['setSelection'](_0x256277['createRange'](_0x32c464[_0x2fa0('0x6')])),_0x917d0f[_0x2fa0('0x8')]['unlock']();});}),_0x1545f3[_0x2fa0('0x12')][_0x2fa0('0x17')]['on'](_0x2fa0('0x1a'),_0x125808(_0x1545f3,_0x2fa0('0xe')),{'priority':_0x2fa0('0x15')}),_0x1545f3['data'][_0x2fa0('0x17')]['on'](_0x2fa0('0x1a'),(_0x4299d5,_0xcc13de,_0x197aa2)=>{_0x197aa2[_0x2fa0('0xc')]['showSuggestionHighlights']&&_0x125808(_0x1545f3,'merge',{'showActiveMarker':!0x1})(_0x4299d5,_0xcc13de,_0x197aa2);},{'priority':_0x2fa0('0x15')}),_0x1545f3['editing'][_0x2fa0('0x17')]['on']('removeMarker:suggestion:deletion',(_0x56f9bd,_0x5c1ae6,_0x12cb56)=>{const _0x2555e9=_0x12cb56['mapper'][_0x2fa0('0x14')](_0x5c1ae6[_0x2fa0('0x7')]);if(_0x2555e9)for(const _0x148976 of _0x2555e9)_0x148976['is'](_0x2fa0('0x18'))&&(_0x12cb56[_0x2fa0('0x3')]['unbindElementFromMarkerName'](_0x148976,_0x5c1ae6['markerName']),_0x12cb56['writer']['remove'](_0x148976));},{'priority':_0x2fa0('0x15')});}}
23
+ const _0x17b2=['end','markerNameToElements','unbindElementFromMarkerName','setSelection','get','mapper','deleteForward','$graveyard','fromRange','root','init','createRange','start','removeMarker:suggestion:deletion','high','model','downcastDispatcher','rootName','delete','getFirstRange','unlock','lock','data','isCollapsed','unit','enableCommand','buffer','commands','document','TrackChangesEditing','plugins','showSuggestionHighlights','markerName','editing','selection'];(function(_0x4d40f3,_0x17b247){const _0x4df12d=function(_0x4d74a1){while(--_0x4d74a1){_0x4d40f3['push'](_0x4d40f3['shift']());}};_0x4df12d(++_0x17b247);}(_0x17b2,0x1a8));const _0x4df1=function(_0x4d40f3,_0x17b247){_0x4d40f3=_0x4d40f3-0x0;let _0x4df12d=_0x17b2[_0x4d40f3];return _0x4df12d;};import{Plugin as _0x48dc2b}from'ckeditor5/src/core';import{Delete as _0x3aed60}from'ckeditor5/src/typing';import{LiveRange as _0x2bcf41}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x2d107f}from'./utils';export default class H extends _0x48dc2b{static get['requires'](){return[_0x3aed60];}[_0x4df1('0x6')](){const _0x5f39a2=this['editor'],_0xb5869=_0x5f39a2[_0x4df1('0x1a')]['get'](_0x4df1('0x19'));_0xb5869[_0x4df1('0x15')](_0x4df1('0xe'));const _0x2576e5=_0x5f39a2[_0x4df1('0x17')][_0x4df1('0x0')](_0x4df1('0x2'));_0xb5869[_0x4df1('0x15')]('deleteForward',(_0x590197,_0x1e09ee={})=>{const _0xe13c74=_0x5f39a2[_0x4df1('0xb')]['createSelection'](_0x5f39a2[_0x4df1('0xb')][_0x4df1('0x18')][_0x4df1('0x1e')]);_0xe13c74[_0x4df1('0x13')]&&_0x5f39a2[_0x4df1('0xb')]['modifySelection'](_0xe13c74,{'direction':'forward','unit':_0x1e09ee[_0x4df1('0x14')]});const _0x2bc170=_0xe13c74[_0x4df1('0xf')](),_0x1d0fb6=_0x2bcf41[_0x4df1('0x4')](_0x2bc170);let _0x4391f1;_0x590197(_0x1e09ee),_0x4391f1=_0x4df1('0x3')==_0x1d0fb6[_0x4df1('0x5')][_0x4df1('0xd')]?_0x5f39a2[_0x4df1('0xb')][_0x4df1('0x7')](_0x2bc170[_0x4df1('0x8')]):_0x5f39a2['model'][_0x4df1('0x7')](_0x1d0fb6[_0x4df1('0x8')],_0x1d0fb6[_0x4df1('0x1f')]),_0x1d0fb6['detach'](),_0x5f39a2['model']['enqueueChange'](_0x2576e5[_0x4df1('0x16')]['batch'],_0x216ade=>{_0x2576e5[_0x4df1('0x16')][_0x4df1('0x11')](),_0x216ade[_0x4df1('0x22')](_0x216ade[_0x4df1('0x7')](_0x4391f1['end'])),_0x2576e5[_0x4df1('0x16')][_0x4df1('0x10')]();});}),_0x5f39a2[_0x4df1('0x1d')][_0x4df1('0xc')]['on']('addMarker:suggestion:deletion',_0x2d107f(_0x5f39a2,'merge'),{'priority':_0x4df1('0xa')}),_0x5f39a2[_0x4df1('0x12')]['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x49e476,_0x2bb1ff,_0x4d58fa)=>{_0x4d58fa['options'][_0x4df1('0x1b')]&&_0x2d107f(_0x5f39a2,'merge',{'showActiveMarker':!0x1})(_0x49e476,_0x2bb1ff,_0x4d58fa);},{'priority':_0x4df1('0xa')}),_0x5f39a2[_0x4df1('0x1d')]['downcastDispatcher']['on'](_0x4df1('0x9'),(_0x13f0f3,_0x1d7e7f,_0x38a4d8)=>{const _0x5c59c6=_0x38a4d8[_0x4df1('0x1')][_0x4df1('0x20')](_0x1d7e7f['markerName']);if(_0x5c59c6)for(const _0x161c7d of _0x5c59c6)_0x161c7d['is']('uiElement')&&(_0x38a4d8[_0x4df1('0x1')][_0x4df1('0x21')](_0x161c7d,_0x1d7e7f[_0x4df1('0x1c')]),_0x38a4d8['writer']['remove'](_0x161c7d));},{'priority':_0x4df1('0xa')});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d1a=['enter','mapper','requires','fromRange','isAtEnd','ck-suggestion-marker-split','isLimit','setSelection','markerName','writer','start','showSuggestionHighlights','document','editing','plugins','enableCommand','detach','high','markInsertion','downcastDispatcher','editor','nextSibling','split','model','TrackChangesEditing','createRange','remove','options','end','addMarker:suggestion:insertion','selection','schema','markerNameToElements','parent'];(function(_0x17ef46,_0x4d1ace){const _0xb67cea=function(_0x1b972f){while(--_0x1b972f){_0x17ef46['push'](_0x17ef46['shift']());}};_0xb67cea(++_0x4d1ace);}(_0x4d1a,0x6a));const _0xb67c=function(_0x17ef46,_0x4d1ace){_0x17ef46=_0x17ef46-0x0;let _0xb67cea=_0x4d1a[_0x17ef46];return _0xb67cea;};import{Plugin as _0x551321}from'ckeditor5/src/core';import{Enter as _0x15c953}from'ckeditor5/src/enter';import{LiveRange as _0x246a6f}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x46f7cf}from'./utils';export default class W extends _0x551321{static get[_0xb67c('0x20')](){return[_0x15c953];}['init'](){const _0x5e47e1=this[_0xb67c('0x10')],_0x4324f6=_0x5e47e1[_0xb67c('0xa')]['get'](_0xb67c('0x14'));_0x4324f6[_0xb67c('0xb')](_0xb67c('0x1e'),_0x4dba93=>{_0x5e47e1[_0xb67c('0x13')]['change'](_0xd7f085=>{const _0x1af41c=_0x5e47e1[_0xb67c('0x13')][_0xb67c('0x8')][_0xb67c('0x1a')],_0x574a6e=_0x1af41c['getFirstPosition'](),_0x53e3b7=_0x1af41c['isCollapsed'],_0x279cc0=_0x246a6f[_0xb67c('0x21')](_0x1af41c['getFirstRange']()),_0x1dac48=_0x279cc0[_0xb67c('0x6')][_0xb67c('0x1d')],_0x1c0b57=_0x279cc0[_0xb67c('0x18')][_0xb67c('0x1d')],_0x452d75=!(_0x279cc0['start']['isAtStart']&&_0x279cc0[_0xb67c('0x18')][_0xb67c('0x0')]),_0x1e9426=_0x1dac48==_0x1c0b57,_0x46fc2a=!(_0x5e47e1['model'][_0xb67c('0x1b')][_0xb67c('0x2')](_0x1dac48)||_0x5e47e1[_0xb67c('0x13')][_0xb67c('0x1b')]['isLimit'](_0x1c0b57))&&(_0x53e3b7||_0x452d75&&_0x1e9426);if(_0x4dba93(),_0x46fc2a){const _0x2ecd27=_0x5e47e1['model']['createPositionAt'](_0x574a6e[_0xb67c('0x1d')][_0xb67c('0x11')],0x0),_0x2ae64c=_0xd7f085[_0xb67c('0x15')](_0x574a6e,_0x2ecd27);_0x4324f6[_0xb67c('0xe')](_0x2ae64c);}else _0xd7f085[_0xb67c('0x3')](_0xd7f085['createRange'](_0x279cc0[_0xb67c('0x18')]));_0x279cc0[_0xb67c('0xc')]();});}),_0x5e47e1[_0xb67c('0x9')][_0xb67c('0xf')]['on']('addMarker:suggestion:insertion',_0x46f7cf(_0x5e47e1,_0xb67c('0x12')),{'priority':_0xb67c('0xd')}),_0x5e47e1[_0xb67c('0x9')][_0xb67c('0xf')]['on']('removeMarker:suggestion:insertion',(_0x4ab4b2,_0x8658f2,_0x28d7e9)=>{const _0xeb0187=_0x28d7e9['mapper'][_0xb67c('0x1c')](_0x8658f2[_0xb67c('0x4')]);if(_0xeb0187)for(const _0x41ec35 of _0xeb0187)_0x41ec35['hasClass'](_0xb67c('0x1'))&&(_0x28d7e9[_0xb67c('0x1f')]['unbindElementFromMarkerName'](_0x41ec35,_0x8658f2['markerName']),_0x28d7e9[_0xb67c('0x5')][_0xb67c('0x16')](_0x41ec35));},{'priority':_0xb67c('0xd')}),_0x5e47e1['data']['downcastDispatcher']['on'](_0xb67c('0x19'),(_0x36eaa9,_0x348ca2,_0x35d298)=>{_0x35d298[_0xb67c('0x17')][_0xb67c('0x7')]&&_0x46f7cf(_0x5e47e1,_0xb67c('0x12'),{'showActiveMarker':!0x1})(_0x36eaa9,_0x348ca2,_0x35d298);},{'priority':'high'});}}
23
+ const _0x4bde=['enter','requires','editing','isAtStart','isLimit','unbindElementFromMarkerName','end','nextSibling','model','markerName','TrackChangesEditing','ck-suggestion-marker-split','createPositionAt','downcastDispatcher','mapper','createRange','high','isCollapsed','markInsertion','setSelection','removeMarker:suggestion:insertion','getFirstPosition','start','split','writer','document','init','addMarker:suggestion:insertion','change','parent','plugins','getFirstRange','markerNameToElements','get','data','remove'];(function(_0x211fa6,_0x4bde07){const _0x2b2d4a=function(_0x17f459){while(--_0x17f459){_0x211fa6['push'](_0x211fa6['shift']());}};_0x2b2d4a(++_0x4bde07);}(_0x4bde,0xef));const _0x2b2d=function(_0x211fa6,_0x4bde07){_0x211fa6=_0x211fa6-0x0;let _0x2b2d4a=_0x4bde[_0x211fa6];return _0x2b2d4a;};import{Plugin as _0x3ae3f7}from'ckeditor5/src/core';import{Enter as _0x21863f}from'ckeditor5/src/enter';import{LiveRange as _0x405585}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x22de63}from'./utils';export default class W extends _0x3ae3f7{static get[_0x2b2d('0xe')](){return[_0x21863f];}[_0x2b2d('0x3')](){const _0x327094=this['editor'],_0x1af930=_0x327094[_0x2b2d('0x7')][_0x2b2d('0xa')](_0x2b2d('0x17'));_0x1af930['enableCommand'](_0x2b2d('0xd'),_0x3b5c15=>{_0x327094[_0x2b2d('0x15')][_0x2b2d('0x5')](_0x319f6f=>{const _0xf6e59b=_0x327094['model'][_0x2b2d('0x2')]['selection'],_0x88de70=_0xf6e59b[_0x2b2d('0x22')](),_0x38a170=_0xf6e59b[_0x2b2d('0x1e')],_0x273d02=_0x405585['fromRange'](_0xf6e59b[_0x2b2d('0x8')]()),_0xeef2d9=_0x273d02[_0x2b2d('0x23')][_0x2b2d('0x6')],_0x484682=_0x273d02[_0x2b2d('0x13')][_0x2b2d('0x6')],_0x280ee3=!(_0x273d02['start'][_0x2b2d('0x10')]&&_0x273d02[_0x2b2d('0x13')]['isAtEnd']),_0x1d09b4=_0xeef2d9==_0x484682,_0x3330e1=!(_0x327094[_0x2b2d('0x15')]['schema'][_0x2b2d('0x11')](_0xeef2d9)||_0x327094[_0x2b2d('0x15')]['schema'][_0x2b2d('0x11')](_0x484682))&&(_0x38a170||_0x280ee3&&_0x1d09b4);if(_0x3b5c15(),_0x3330e1){const _0x3d390b=_0x327094[_0x2b2d('0x15')][_0x2b2d('0x19')](_0x88de70['parent'][_0x2b2d('0x14')],0x0),_0x2f15db=_0x319f6f[_0x2b2d('0x1c')](_0x88de70,_0x3d390b);_0x1af930[_0x2b2d('0x1f')](_0x2f15db);}else _0x319f6f[_0x2b2d('0x20')](_0x319f6f['createRange'](_0x273d02['end']));_0x273d02['detach']();});}),_0x327094['editing']['downcastDispatcher']['on'](_0x2b2d('0x4'),_0x22de63(_0x327094,_0x2b2d('0x0')),{'priority':_0x2b2d('0x1d')}),_0x327094[_0x2b2d('0xf')][_0x2b2d('0x1a')]['on'](_0x2b2d('0x21'),(_0x507cad,_0x64ac14,_0x211971)=>{const _0x3480b2=_0x211971['mapper'][_0x2b2d('0x9')](_0x64ac14['markerName']);if(_0x3480b2)for(const _0x24e69b of _0x3480b2)_0x24e69b['hasClass'](_0x2b2d('0x18'))&&(_0x211971[_0x2b2d('0x1b')][_0x2b2d('0x12')](_0x24e69b,_0x64ac14[_0x2b2d('0x16')]),_0x211971[_0x2b2d('0x1')][_0x2b2d('0xc')](_0x24e69b));},{'priority':'high'}),_0x327094[_0x2b2d('0xb')][_0x2b2d('0x1a')]['on']('addMarker:suggestion:insertion',(_0x583f76,_0x22798c,_0x475e93)=>{_0x475e93['options']['showSuggestionHighlights']&&_0x22de63(_0x327094,_0x2b2d('0x0'),{'showActiveMarker':!0x1})(_0x583f76,_0x22798c,_0x475e93);},{'priority':_0x2b2d('0x1d')});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x2cdc36}from'ckeditor5/src/core';import{normalizeColorOptions as Ht}from'ckeditor5/src/ui';import{normalizeOptions as Jt}from'@ckeditor/ckeditor5-font/src/fontsize/utils';import{getRangesWithAttribute as Rt}from'./utils';const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];export default class z extends _0x2cdc36{['afterInit'](){const {t:t}=this['editor']['locale'];for(const {pluginName:_0x1561d1,commandName:_0x3c03d0}of Xt)this['editor']['plugins']['has'](_0x1561d1)&&this['_enableCommand'](_0x3c03d0);this['editor']['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x33a359=>{const {data:_0x30c24d}=_0x33a359;if(null!=_0x30c24d){if('fontSize'==_0x30c24d['commandName']){const _0x55582b=_0x30c24d['commandParams'][0x0]['value'];if(_0x55582b){const _0x307d77=Jt(this['editor']['config']['get']('fontSize.options'))['find'](_0x1d11fa=>_0x1d11fa['model']==_0x55582b)['title'],_0x3d2862=this['editor']['locale']['_t'](_0x307d77)['toLowerCase']();return{'type':'format','content':t('*Set\x20font\x20size:*\x20%0',_0x3d2862)};}return{'type':'format','content':t('*Reset\x20font\x20size*')};}if('fontFamily'==_0x30c24d['commandName']){const _0x366792=_0x30c24d['commandParams'][0x0]['value'];return _0x366792?{'type':'format','content':t('*Set\x20font\x20family:*\x20%0',_0x366792)}:{'type':'format','content':t('*Reset\x20font\x20family*')};}if('fontColor'==_0x30c24d['commandName']){const _0x1eb7e3=_0x30c24d['commandParams'][0x0]['value'];if(_0x1eb7e3){const _0x268061=Ht(this['editor']['config']['get']('fontColor.colors'))['find'](_0x191d5e=>_0x191d5e['model']==_0x1eb7e3);let _0x41f567=_0x1eb7e3,_0x2b69d6='';return _0x268061&&(_0x41f567=_0x268061['label'],_0x2b69d6=this['editor']['locale']['_t'](_0x41f567)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20color:*\x20%0',_0x2b69d6)['trim'](),'color':{'value':_0x1eb7e3,'title':_0x2b69d6||_0x41f567}};}return{'type':'format','content':t('*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x30c24d['commandName']){const _0x5d4dbe=_0x30c24d['commandParams'][0x0]['value'];if(_0x5d4dbe){const _0x3cd75e=Ht(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3dc3db=>_0x3dc3db['model']==_0x5d4dbe);let _0x50e143=_0x5d4dbe,_0x23c8d0='';return _0x3cd75e&&(_0x50e143=_0x3cd75e['label'],_0x23c8d0=this['editor']['locale']['_t'](_0x50e143)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20background\x20color:*\x20%0',_0x23c8d0)['trim'](),'color':{'value':_0x5d4dbe,'title':_0x23c8d0||_0x50e143}};}return{'type':'format','content':t('*Reset\x20font\x20background\x20color*')};}}});}['_enableCommand'](_0x67bf5f){const _0x26da3f=this['editor'];_0x26da3f['plugins']['get']('TrackChangesEditing')['enableCommand'](_0x67bf5f,(_0x3d153a,_0x2d7aac={})=>{const _0x2cff9e=_0x26da3f['model']['document']['selection'],_0x3efe1c=_0x2d7aac['value'];_0x2cff9e['isCollapsed']?_0x3d153a(_0x2d7aac):_0x26da3f['model']['change'](()=>{const _0x5c45ee=Array['from'](_0x2cff9e['getRanges']());for(const _0x4ea8bc of _0x5c45ee){const _0x5ee82e=_0x3efe1c?[_0x4ea8bc]:Rt(_0x67bf5f,_0x4ea8bc,_0x26da3f['model']);for(const _0x5756c2 of _0x5ee82e)_0x26da3f['plugins']['get']('TrackChangesEditing')['markInlineFormat'](_0x5756c2,{'commandName':_0x67bf5f,'commandParams':[{'value':_0x3efe1c}]});}});});}}
23
+ import{Plugin as _0x36f48f}from'ckeditor5/src/core';import{normalizeColorOptions as Ht}from'ckeditor5/src/ui';import{normalizeOptions as Jt}from'@ckeditor/ckeditor5-font/src/fontsize/utils';import{getRangesWithAttribute as Rt}from'./utils';const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];export default class z extends _0x36f48f{['afterInit'](){const {t:t}=this['editor']['locale'];for(const {pluginName:_0x4c771e,commandName:_0x4ca142}of Xt)this['editor']['plugins']['has'](_0x4c771e)&&this['_enableCommand'](_0x4ca142);this['editor']['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x14eb72=>{const {data:_0x2bb532}=_0x14eb72;if(null!=_0x2bb532){if('fontSize'==_0x2bb532['commandName']){const _0x21e73b=_0x2bb532['commandParams'][0x0]['value'];if(_0x21e73b){const _0x3146c5=Jt(this['editor']['config']['get']('fontSize.options'))['find'](_0x4df6fe=>_0x4df6fe['model']==_0x21e73b)['title'],_0x2a61e3=this['editor']['locale']['_t'](_0x3146c5)['toLowerCase']();return{'type':'format','content':t('*Set\x20font\x20size:*\x20%0',_0x2a61e3)};}return{'type':'format','content':t('*Reset\x20font\x20size*')};}if('fontFamily'==_0x2bb532['commandName']){const _0x3c23e0=_0x2bb532['commandParams'][0x0]['value'];return _0x3c23e0?{'type':'format','content':t('*Set\x20font\x20family:*\x20%0',_0x3c23e0)}:{'type':'format','content':t('*Reset\x20font\x20family*')};}if('fontColor'==_0x2bb532['commandName']){const _0x54bff0=_0x2bb532['commandParams'][0x0]['value'];if(_0x54bff0){const _0x55be4e=Ht(this['editor']['config']['get']('fontColor.colors'))['find'](_0x90ad62=>_0x90ad62['model']==_0x54bff0);let _0x12ecb3=_0x54bff0,_0x4e0a38='';return _0x55be4e&&(_0x12ecb3=_0x55be4e['label'],_0x4e0a38=this['editor']['locale']['_t'](_0x12ecb3)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20color:*\x20%0',_0x4e0a38)['trim'](),'color':{'value':_0x54bff0,'title':_0x4e0a38||_0x12ecb3}};}return{'type':'format','content':t('*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2bb532['commandName']){const _0x5eacf2=_0x2bb532['commandParams'][0x0]['value'];if(_0x5eacf2){const _0x4583c2=Ht(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x17b5d7=>_0x17b5d7['model']==_0x5eacf2);let _0x1639b4=_0x5eacf2,_0x4d968d='';return _0x4583c2&&(_0x1639b4=_0x4583c2['label'],_0x4d968d=this['editor']['locale']['_t'](_0x1639b4)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20background\x20color:*\x20%0',_0x4d968d)['trim'](),'color':{'value':_0x5eacf2,'title':_0x4d968d||_0x1639b4}};}return{'type':'format','content':t('*Reset\x20font\x20background\x20color*')};}}});}['_enableCommand'](_0x2948d7){const _0x104255=this['editor'];_0x104255['plugins']['get']('TrackChangesEditing')['enableCommand'](_0x2948d7,(_0x2a4d4e,_0x2468e7={})=>{const _0x35c854=_0x104255['model']['document']['selection'],_0xc08a33=_0x2468e7['value'];_0x35c854['isCollapsed']?_0x2a4d4e(_0x2468e7):_0x104255['model']['change'](()=>{const _0x5248b6=Array['from'](_0x35c854['getRanges']());for(const _0x4216cf of _0x5248b6){const _0x45322f=_0xc08a33?[_0x4216cf]:Rt(_0x2948d7,_0x4216cf,_0x104255['model']);for(const _0x3ba1bc of _0x45322f)_0x104255['plugins']['get']('TrackChangesEditing')['markInlineFormat'](_0x3ba1bc,{'commandName':_0x2948d7,'commandParams':[{'value':_0xc08a33}]});}});});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x373252}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x2d6235}from'./utils';export default class J extends _0x373252{['afterInit'](){const _0x28dba7=this['editor'],{t:t}=_0x28dba7['locale'],_0x4332b4=_0x28dba7['config']['get']('heading.options');if(!_0x28dba7['plugins']['has']('HeadingEditing'))return;const _0x31c060=_0x28dba7['plugins']['get']('TrackChangesEditing');_0x31c060['enableCommand']('heading',(_0x10266f,_0x3f6712)=>{const _0x46705a=_0x3f6712['value'],_0xccf0d1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x45d585=>function(_0x1d868a,_0x6ed4d9,_0x3d4046){return _0x3d4046['checkChild'](_0x1d868a['parent'],_0x6ed4d9)&&!_0x3d4046['isObject'](_0x1d868a)&&_0x1d868a['name']!=_0x6ed4d9;}(_0x45d585,_0x46705a,this['editor']['model']['schema']));_0x28dba7['model']['change'](()=>{for(const _0x5188a4 of _0xccf0d1)_0x31c060['markBlockFormat'](_0x5188a4,{'commandName':'heading','commandParams':[_0x3f6712],'formatGroupId':'blockName'},_0x2d6235(_0x5188a4));});});for(const _0x38485e of _0x4332b4)'paragraph'!=_0x38485e['model']&&_0x31c060['_descriptionFactory']['registerElementLabel'](_0x38485e['model'],_0x24fbe6=>{const _0x2a1780=tn(_0x38485e['model']);return null!==_0x2a1780?_0x48ae9d(_0x24fbe6,_0x2a1780):_0x276b38(_0x24fbe6,_0x38485e['title']);});function _0x48ae9d(_0x26b912,_0x275766){return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},[_0x26b912,_0x275766]);}function _0x276b38(_0x36dc90,_0x1190bf){return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},[_0x36dc90,_0x1190bf]);}_0x31c060['_descriptionFactory']['registerDescriptionCallback'](_0x3ef0d1=>{const {type:_0x4a9e9c,data:_0x277edc}=_0x3ef0d1;if('formatBlock'==_0x4a9e9c&&_0x277edc&&'heading'==_0x277edc['commandName']){const _0x321e31=_0x277edc['commandParams'][0x0]['value'],_0x2ffe39=tn(_0x321e31);if(null!==_0x2ffe39)return{'type':'format','content':t('*Change\x20to:*\x20%0',_0x48ae9d(0x1,_0x2ffe39))};const _0x13b0a4=_0x4332b4['find'](_0x962113=>_0x962113['model']===_0x321e31)['title'];return{'type':'format','content':t('*Change\x20to:*\x20%0',_0x276b38(0x1,_0x13b0a4))};}});}}function tn(_0x406229){const _0x4c82e8=_0x406229['match'](/^heading(\d+)$/);return _0x4c82e8?_0x4c82e8[0x1]:null;}
23
+ import{Plugin as _0x38156a}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x57a6a9}from'./utils';export default class J extends _0x38156a{['afterInit'](){const _0x3b9d82=this['editor'],{t:t}=_0x3b9d82['locale'],_0x5625c0=_0x3b9d82['config']['get']('heading.options');if(!_0x3b9d82['plugins']['has']('HeadingEditing'))return;const _0x47474e=_0x3b9d82['plugins']['get']('TrackChangesEditing');_0x47474e['enableCommand']('heading',(_0x3238d9,_0x11586d)=>{const _0x157258=_0x11586d['value'],_0x46ee09=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x380558=>function(_0x45fdd1,_0x394bcf,_0x33e7b0){return _0x33e7b0['checkChild'](_0x45fdd1['parent'],_0x394bcf)&&!_0x33e7b0['isObject'](_0x45fdd1)&&_0x45fdd1['name']!=_0x394bcf;}(_0x380558,_0x157258,this['editor']['model']['schema']));_0x3b9d82['model']['change'](()=>{for(const _0x427a04 of _0x46ee09)_0x47474e['markBlockFormat'](_0x427a04,{'commandName':'heading','commandParams':[_0x11586d],'formatGroupId':'blockName'},_0x57a6a9(_0x427a04));});});for(const _0x96666f of _0x5625c0)'paragraph'!=_0x96666f['model']&&_0x47474e['_descriptionFactory']['registerElementLabel'](_0x96666f['model'],_0x4821e6=>{const _0x5b9a84=tn(_0x96666f['model']);return null!==_0x5b9a84?_0xa4b300(_0x4821e6,_0x5b9a84):_0x50c7db(_0x4821e6,_0x96666f['title']);});function _0xa4b300(_0x4621e5,_0x19699a){return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},[_0x4621e5,_0x19699a]);}function _0x50c7db(_0x196ff4,_0x5a31b2){return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},[_0x196ff4,_0x5a31b2]);}_0x47474e['_descriptionFactory']['registerDescriptionCallback'](_0x2d5a18=>{const {type:_0x5b30b8,data:_0x37a305}=_0x2d5a18;if('formatBlock'==_0x5b30b8&&_0x37a305&&'heading'==_0x37a305['commandName']){const _0xb491dd=_0x37a305['commandParams'][0x0]['value'],_0x573078=tn(_0xb491dd);if(null!==_0x573078)return{'type':'format','content':t('*Change\x20to:*\x20%0',_0xa4b300(0x1,_0x573078))};const _0x2a0ded=_0x5625c0['find'](_0x2827ee=>_0x2827ee['model']===_0xb491dd)['title'];return{'type':'format','content':t('*Change\x20to:*\x20%0',_0x50c7db(0x1,_0x2a0ded))};}});}}function tn(_0x28ef52){const _0x18f3b1=_0x28ef52['match'](/^heading(\d+)$/);return _0x18f3b1?_0x18f3b1[0x1]:null;}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1bd156}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';export default class K extends _0x1bd156{['afterInit'](){const _0x2bbffd=this['editor'];if(!_0x2bbffd['plugins']['has']('HighlightEditing'))return;const _0x1a7330=_0x2bbffd['plugins']['get']('TrackChangesEditing');_0x1a7330['enableCommand']('highlight',(_0xd313aa,_0x5ee2e3={})=>{const _0x273963=_0x2bbffd['model']['document']['selection'],_0x3b59a6=_0x273963['getAttribute']('highlight');let _0x62850e=_0x5ee2e3['value'],_0x64fa90=[];if(_0x273963['isCollapsed']){const _0x3e6af2=_0x273963['getFirstPosition']();if(!_0x273963['hasAttribute']('highlight'))return void _0xd313aa(_0x5ee2e3);{const _0x426ac6=_0x1d40ee=>_0x1d40ee['item']['getAttribute']('highlight')===_0x3b59a6,_0x57d17e=_0x3e6af2['getLastMatchingPosition'](_0x426ac6,{'direction':'backward'}),_0x246b2b=_0x3e6af2['getLastMatchingPosition'](_0x426ac6);_0x64fa90=[_0x2bbffd['model']['createRange'](_0x57d17e,_0x246b2b)],_0x62850e==_0x3b59a6&&(_0x62850e=null);}}else for(const _0x98538b of _0x273963['getRanges']())_0x62850e?_0x64fa90['push'](_0x98538b):_0x64fa90['push'](...Rt('highlight',_0x98538b,_0x2bbffd['model']));_0x2bbffd['model']['change'](()=>{for(const _0x151020 of _0x64fa90)_0x1a7330['markInlineFormat'](_0x151020,{'commandName':'highlight','commandParams':[{'value':_0x62850e}]});});});const {t:t}=_0x2bbffd['locale'];_0x1a7330['_descriptionFactory']['registerDescriptionCallback'](_0x3fbc81=>{const {type:_0x566c96,data:_0xa34d9f}=_0x3fbc81;if('formatInline'==_0x566c96&&_0xa34d9f&&'highlight'==_0xa34d9f['commandName']){const _0x2c0817=_0xa34d9f['commandParams'][0x0]['value'];if(_0x2c0817){const _0x1abe57=_0x2bbffd['config']['get']('highlight.options')['find'](_0x1ecd55=>_0x1ecd55['model']==_0x2c0817),_0x2b0f43=_0x2bbffd['locale']['_t'](_0x1abe57['title'])['toLowerCase']();return{'type':'format','content':t('*Set\x20highlight:*\x20%0',_0x2b0f43),'color':{'value':_0x1abe57['color'],'title':_0x1abe57['title']}};}return{'type':'format','content':t('*Remove\x20highlight*',t({'string':'highlight','id':'FORMAT_HIGHLIGHT'}))};}});}}
23
+ import{Plugin as _0x4f68ca}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';export default class K extends _0x4f68ca{['afterInit'](){const _0x3dc23a=this['editor'];if(!_0x3dc23a['plugins']['has']('HighlightEditing'))return;const _0x31b8af=_0x3dc23a['plugins']['get']('TrackChangesEditing');_0x31b8af['enableCommand']('highlight',(_0x235093,_0x3ab185={})=>{const _0x204441=_0x3dc23a['model']['document']['selection'],_0x3b90c7=_0x204441['getAttribute']('highlight');let _0x51e0f7=_0x3ab185['value'],_0x16bed3=[];if(_0x204441['isCollapsed']){const _0xdbcdc5=_0x204441['getFirstPosition']();if(!_0x204441['hasAttribute']('highlight'))return void _0x235093(_0x3ab185);{const _0x1bfe9a=_0x56cb82=>_0x56cb82['item']['getAttribute']('highlight')===_0x3b90c7,_0x44fb99=_0xdbcdc5['getLastMatchingPosition'](_0x1bfe9a,{'direction':'backward'}),_0x4516c5=_0xdbcdc5['getLastMatchingPosition'](_0x1bfe9a);_0x16bed3=[_0x3dc23a['model']['createRange'](_0x44fb99,_0x4516c5)],_0x51e0f7==_0x3b90c7&&(_0x51e0f7=null);}}else for(const _0x48052c of _0x204441['getRanges']())_0x51e0f7?_0x16bed3['push'](_0x48052c):_0x16bed3['push'](...Rt('highlight',_0x48052c,_0x3dc23a['model']));_0x3dc23a['model']['change'](()=>{for(const _0x334899 of _0x16bed3)_0x31b8af['markInlineFormat'](_0x334899,{'commandName':'highlight','commandParams':[{'value':_0x51e0f7}]});});});const {t:t}=_0x3dc23a['locale'];_0x31b8af['_descriptionFactory']['registerDescriptionCallback'](_0x2ee754=>{const {type:_0x33d5fb,data:_0x1d9f57}=_0x2ee754;if('formatInline'==_0x33d5fb&&_0x1d9f57&&'highlight'==_0x1d9f57['commandName']){const _0x36a645=_0x1d9f57['commandParams'][0x0]['value'];if(_0x36a645){const _0xceb38a=_0x3dc23a['config']['get']('highlight.options')['find'](_0x46bbc5=>_0x46bbc5['model']==_0x36a645),_0x5ba7bd=_0x3dc23a['locale']['_t'](_0xceb38a['title'])['toLowerCase']();return{'type':'format','content':t('*Set\x20highlight:*\x20%0',_0x5ba7bd),'color':{'value':_0xceb38a['color'],'title':_0xceb38a['title']}};}return{'type':'format','content':t('*Remove\x20highlight*',t({'string':'highlight','id':'FORMAT_HIGHLIGHT'}))};}});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x213e2f}from'ckeditor5/src/core';import'../../theme/integrations/horizontalline.css';export default class Q extends _0x213e2f{['afterInit'](){const _0x2e5764=this['editor'];if(!_0x2e5764['plugins']['has']('HorizontalLineEditing'))return;_0x2e5764['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4f12ac=_0x2e5764['plugins']['get']('TrackChangesEditing'),{t:t}=_0x2e5764['locale'];_0x4f12ac['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x33aacb=>t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x33aacb)),_0x2e5764['conversion']['for']('dataDowncast')['elementToElement']({'model':'horizontalLine','view':(_0x5c97f6,{writer:_0x2a7e7e,options:_0x4b5751})=>{if(!_0x4b5751['showSuggestionHighlights'])return;const _0x1f1d4b=_0x2a7e7e['createContainerElement']('div'),_0x4159fc=_0x2a7e7e['createEmptyElement']('hr');return _0x2a7e7e['addClass']('ck-horizontal-line',_0x1f1d4b),_0x2a7e7e['insert'](_0x2a7e7e['createPositionAt'](_0x1f1d4b,0x0),_0x4159fc),_0x1f1d4b;},'converterPriority':'high'});}}
23
+ import{Plugin as _0x546d9d}from'ckeditor5/src/core';import'../../theme/integrations/horizontalline.css';export default class Q extends _0x546d9d{['afterInit'](){const _0x5e3297=this['editor'];if(!_0x5e3297['plugins']['has']('HorizontalLineEditing'))return;_0x5e3297['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x33b906=_0x5e3297['plugins']['get']('TrackChangesEditing'),{t:t}=_0x5e3297['locale'];_0x33b906['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x2d1b0b=>t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x2d1b0b)),_0x5e3297['conversion']['for']('dataDowncast')['elementToElement']({'model':'horizontalLine','view':(_0x18df80,{writer:_0x161533,options:_0xfee6c})=>{if(!_0xfee6c['showSuggestionHighlights'])return;const _0x50e9de=_0x161533['createContainerElement']('div'),_0x166981=_0x161533['createEmptyElement']('hr');return _0x161533['addClass']('ck-horizontal-line',_0x50e9de),_0x161533['insert'](_0x161533['createPositionAt'](_0x50e9de,0x0),_0x166981),_0x50e9de;},'converterPriority':'high'});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x248c82}from'ckeditor5/src/core';import{LivePosition as te}from'ckeditor5/src/engine';import{uid as _0x389158}from'ckeditor5/src/utils';import{getCaptionFromImageModelElement as _0x4a95b3}from'@ckeditor/ckeditor5-image/src/imagecaption/utils';import'../../theme/integrations/image.css';export default class V extends _0x248c82{['afterInit'](){const _0x2397a1=this['editor'];if(!_0x2397a1['plugins']['has']('ImageEditing'))return;const _0x2ab318=_0x2397a1['plugins']['get']('TrackChangesEditing'),_0x3b6485=_0x2397a1['plugins']['get']('ImageUtils'),_0x166ade={},{t:t}=_0x2397a1['locale'];if(_0x2ab318['enableCommand']('insertImage'),_0x2ab318['_descriptionFactory']['registerElementLabel']('imageBlock',_0x316716=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x316716)),_0x2ab318['_descriptionFactory']['registerElementLabel']('imageInline',_0x1c6693=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1c6693)),_0x2ab318['_descriptionFactory']['registerElementLabel']('caption',t({'string':'caption','id':'ELEMENT_CAPTION'})),_0x2397a1['plugins']['has']('ImageUploadEditing')&&_0x2ab318['enableCommand']('uploadImage'),_0x2397a1['plugins']['has']('ImageBlockEditing')&&_0x2397a1['plugins']['has']('ImageInlineEditing')&&(_0x2ab318['enableCommand']('imageTypeInline',(_0x2c605c,_0x4f841f)=>{const _0x3b1a97=_0x3b6485['getClosestSelectedImageElement'](_0x2397a1['model']['document']['selection']);_0x2397a1['model']['change'](()=>{_0x2ab318['markBlockFormat'](_0x3b1a97,{'commandName':'imageTypeInline','commandParams':[_0x4f841f]},[],'convertBlockImageToInline');});}),_0x2ab318['enableCommand']('imageTypeBlock',(_0x1ea9b,_0x5c6524)=>{_0x2397a1['model']['change'](_0x33beed=>{let _0x463273=_0x3b6485['getClosestSelectedImageElement'](_0x2397a1['model']['document']['selection']),_0x1fae67=_0x33beed['createRangeOn'](_0x463273);const _0x30ab20=te['fromPosition'](_0x1fae67['start'],'toPrevious'),_0x458682=te['fromPosition'](_0x1fae67['end'],'toNext');_0x2ab318['forceDefaultExecution'](()=>_0x1ea9b(_0x5c6524)),_0x463273=_0x3b6485['getClosestSelectedImageElement'](_0x2397a1['model']['document']['selection']),_0x1fae67=_0x33beed['createRangeOn'](_0x463273);const _0x6db590=_0x33beed['createRange'](_0x30ab20,_0x458682);_0x30ab20['detach'](),_0x458682['detach'](),_0x2ab318['markBlockFormat'](_0x463273,{'commandName':'imageTypeInline'},[],'convertInlineImageToBlock'),_0x6db590['start']['isBefore'](_0x1fae67['start'])&&_0x2ab318['markInsertion'](_0x33beed['createRange'](_0x6db590['start'],_0x1fae67['start']),'convertInlineImageToBlock'),_0x1fae67['end']['isBefore'](_0x6db590['end'])&&_0x2ab318['markInsertion'](_0x33beed['createRange'](_0x1fae67['end'],_0x6db590['end']),'convertInlineImageToBlock');});}),_0x2ab318['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>{}),_0x2ab318['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>{}),_0x2ab318['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2ab318['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2ab318['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>{}),_0x2ab318['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1f83fc])=>{const _0x13921e=_0x2ab318['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x14616f=_0x1f83fc['start'],_0x1d707d=_0x1f83fc['end'];const _0x4e407c=_0x2397a1['model']['schema']['getNearestSelectionRange'](_0x14616f,'backward'),_0x324f25=_0x2397a1['model']['schema']['getNearestSelectionRange'](_0x1d707d,'forward');_0x4e407c['isCollapsed']&&(_0x14616f=_0x4e407c['start']),_0x324f25['isCollapsed']&&(_0x1d707d=_0x324f25['end']),_0x13921e([_0x2397a1['model']['createRange'](_0x14616f,_0x1d707d)]);}),_0x2ab318['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x168517),_0x2ab318['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x168517)),_0x2397a1['plugins']['has']('ImageCaptionEditing')&&(_0x2ab318['enableCommand']('toggleImageCaption',(_0x18a308,_0x3da695)=>{let _0x449561=_0x3b6485['getClosestSelectedImageElement'](_0x2397a1['model']['document']['selection']),_0x37f2e3=_0x4a95b3(_0x449561);_0x2397a1['model']['change'](()=>{if(_0x37f2e3)return void _0x2ab318['markDeletion'](_0x2397a1['model']['createRangeOn'](_0x37f2e3));const _0x2ab4a9=_0x3b6485['isBlockImage'](_0x449561);_0x18a308(_0x3da695),_0x449561=_0x3b6485['getClosestSelectedImageElement'](_0x2397a1['model']['document']['selection']),_0x37f2e3=_0x4a95b3(_0x449561),_0x2ab318['markInsertion'](_0x2397a1['model']['createRangeOn'](_0x37f2e3),_0x2ab4a9?null:'imageCaption');});}),_0x2ab318['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x168517)),_0x2397a1['plugins']['has']('ImageStyleEditing')){_0x2ab318['enableCommand']('imageStyle',(_0x1ae775,_0x4537ab)=>{const _0x444e7b=_0x2397a1['plugins']['get']('Users')['me'],_0x525668=_0x2397a1['commands']['get']('imageStyle');let _0x1ac194=_0x3b6485['getClosestSelectedImageElement'](_0x2397a1['model']['document']['selection']),_0x10859f=_0x2397a1['model']['createRangeOn'](_0x1ac194),_0x4f85b2=_0x525668['value'];if(_0x4f85b2==_0x4537ab['value'])return;const _0x2899b6={'commandName':'imageStyle','commandParams':[_0x4537ab],'formatGroupId':_0x389158()};_0x2397a1['model']['change'](()=>{if(_0x2ab318['getSuggestions']()['filter'](_0x2b1441=>_0x2b1441['isInContent']&&_0x444e7b==_0x2b1441['author']&&('formatBlock'==_0x2b1441['type']||'formatInline'==_0x2b1441['type'])&&('imageStylePreApply'==_0x2b1441['subType']||'imageStylePostApply'==_0x2b1441['subType'])&&_0x2b1441['getFirstRange']()['isEqual'](_0x10859f))['forEach'](_0x13ffc8=>_0x2ab318['discardSuggestion'](_0x13ffc8['head'])),_0x1ac194=_0x3b6485['getClosestSelectedImageElement'](_0x2397a1['model']['document']['selection']),_0x10859f=_0x2397a1['model']['createRangeOn'](_0x1ac194),_0x525668['refresh'](),_0x2397a1['commands']['get']('imageTypeInline')['refresh'](),_0x2397a1['commands']['get']('imageTypeBlock')['refresh'](),_0x4f85b2=_0x525668['value'],_0x4f85b2!=_0x4537ab['value'])return _0x3b6485['isInlineImage'](_0x1ac194)&&_0x525668['shouldConvertImageType'](_0x4537ab['value'],_0x1ac194)?(_0x1ae775(_0x4537ab),_0x1ac194=_0x3b6485['getClosestSelectedImageElement'](_0x2397a1['model']['document']['selection']),void _0x2ab318['markBlockFormat'](_0x1ac194,{..._0x2899b6,'commandReversedParams':[{'value':_0x4f85b2||null}]},[],'imageStylePreApply')):void(_0x3b6485['isBlockImage'](_0x1ac194)?_0x2ab318['markBlockFormat'](_0x1ac194,_0x2899b6,[],'imageStylePostApply'):_0x2ab318['markInlineFormat'](_0x10859f,_0x2899b6,'imageStylePostApply'));});});for(const _0x5384a7 of _0x2397a1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x166ade[_0x5384a7['name']]=_0x5384a7['title']['toLowerCase']();_0x2ab318['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>{}),_0x2ab318['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>{}),_0x2ab318['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>{}),_0x2ab318['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',()=>{}),_0x2ab318['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x36b276,_0x389a9d)=>{_0x2ab318['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x36b276,{'commandName':_0x389a9d['commandName'],'commandParams':_0x389a9d['commandReversedParams']});}),_0x2ab318['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',_0x168517);}const _0x2e7385=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3c4d2f(_0x23df94,_0x5545f5){const _0xcf19ae=_0x2e7385['findIndex'](({type:_0x42d133,subType:_0x100c1e})=>_0x23df94['type']==_0x42d133&&_0x23df94['subType']==_0x100c1e),_0x24be64=_0x2e7385['findIndex'](({type:_0x20c714,subType:_0x44aa56})=>_0x5545f5['type']==_0x20c714&&_0x5545f5['subType']==_0x44aa56);if(_0xcf19ae<0x0||_0x24be64<0x0)return!0x1;const _0x287a4a=_0x23df94['getFirstRange'](),_0x2c515e=_0x5545f5['getFirstRange']();if((0x0==_0xcf19ae||0x1==_0xcf19ae)&&0x2==_0x24be64&&_0x287a4a['isIntersecting'](_0x2c515e))return!0x0;if(0x2==_0xcf19ae&&0x3==_0x24be64){const _0x5a5d49=_0x2ab318['_findSuggestions'](_0x287a4a,'insertion')['filter'](({suggestion:_0x49d07e,meta:_0x248ceb})=>_0x248ceb['isOwn']&&'convertInlineImageToBlock'==_0x49d07e['subType']);if(_0x5a5d49['length']>0x1&&_0x2c515e['end']['isEqual'](_0x287a4a['start']))return!0x0;if(0x1==_0x5a5d49['length']&&(_0x287a4a['start']['isEqual'](_0x2c515e['end'])||_0x287a4a['end']['isEqual'](_0x2c515e['start'])))return!0x0;}if(0x3==_0xcf19ae&&0x3==_0x24be64&&_0x287a4a['start']['isBefore'](_0x2c515e['start'])){const _0x1df20e=_0x287a4a['end']['nodeAfter'],_0x70a311=_0x2c515e['start']['nodeBefore'];return _0x3b6485['isBlockImage'](_0x1df20e)&&_0x1df20e===_0x70a311;}return!0x1;}function _0x168517(_0x53a7d9,_0x1eee94){return _0x3c4d2f(_0x53a7d9,_0x1eee94)?[_0x53a7d9,_0x1eee94]:_0x3c4d2f(_0x1eee94,_0x53a7d9)?[_0x1eee94,_0x53a7d9]:null;}_0x2397a1['model']['document']['registerPostFixer'](()=>{let _0x30486d=!0x1;const _0x119470=Array['from'](_0x2397a1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32fdfa,data:_0x46017f}of _0x119470){const {group:_0x1e4695,type:_0x56ebe7,subType:_0x27d479,id:_0x33e31f}=_0x2ab318['_splitMarkerName'](_0x32fdfa);if('suggestion'==_0x1e4695&&_0x2ab318['hasSuggestion'](_0x33e31f)){if('formatBlock'==_0x56ebe7&&('imageStylePreApply'==_0x27d479||'imageStylePostApply'==_0x27d479)){const _0x4a949a=_0x2ab318['getSuggestion'](_0x33e31f);if(_0x46017f['newRange']){const _0x169f8b=_0x4a949a['getFirstRange']()['getContainedElement']();if(_0x3b6485['isBlockImage'](_0x169f8b))continue;_0x2ab318['discardSuggestion'](_0x4a949a),_0x30486d=!0x0;}}if('insertion'==_0x56ebe7&&'imageCaption'==_0x27d479&&!_0x46017f['newRange']){const _0x344291=_0x2ab318['getSuggestion'](_0x33e31f);_0x344291['next']&&_0x344291['next']['isInContent']&&(_0x2ab318['discardSuggestion'](_0x344291['next']),_0x30486d=!0x0);}}}return _0x30486d;}),_0x2397a1['plugins']['has']('ImageResize')&&_0x2ab318['enableCommand']('resizeImage',(_0x48b7ae,_0xa34f5c)=>{const _0x30c294=_0x3b6485['getClosestSelectedImageElement'](_0x2397a1['model']['document']['selection']);_0x30c294['getAttribute']('width')!=_0xa34f5c['width']&&_0x2397a1['model']['change'](()=>{_0x2ab318['markBlockFormat'](_0x30c294,{'commandName':'resizeImage','commandParams':[_0xa34f5c]});});}),_0x2397a1['plugins']['has']('ImageTextAlternativeEditing')&&_0x2ab318['enableCommand']('imageTextAlternative',(_0x6c3715,_0x269a06)=>{const _0x438f19=_0x3b6485['getClosestSelectedImageElement'](_0x2397a1['model']['document']['selection']);(_0x438f19['hasAttribute']('alt')?_0x438f19['getAttribute']('alt'):'')!=_0x269a06['newValue']&&_0x2397a1['model']['change'](()=>{_0x2ab318['markBlockFormat'](_0x438f19,{'commandName':'imageTextAlternative','commandParams':[_0x269a06]});});}),_0x2ab318['_descriptionFactory']['registerDescriptionCallback'](_0x34216b=>{if(!!_0x2e7385['find'](({type:_0x47ca7f,subType:_0x36e6d9})=>_0x34216b['type']==_0x47ca7f&&_0x34216b['subType']==_0x36e6d9))return _0x34216b['previous']?{}:void 0x0;}),_0x2ab318['_descriptionFactory']['registerDescriptionCallback'](_0x5a1723=>{if('insertion'==_0x5a1723['type']||'deletion'==_0x5a1723['type']){const _0x1e3cb6=_0x5a1723['getContainedElement']();if(_0x1e3cb6&&_0x1e3cb6['is']('element','caption'))return{'type':'insertion'==_0x5a1723['type']?'addObject':'removeObject','name':_0x1e3cb6['name'],'quantity':0x1};}}),_0x2ab318['_descriptionFactory']['registerDescriptionCallback'](_0x1ab3b3=>'formatBlock'==_0x1ab3b3['type']&&'convertInlineImageToBlock'==_0x1ab3b3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1ab3b3['type']&&'convertBlockImageToInline'==_0x1ab3b3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2ab318['_descriptionFactory']['registerDescriptionCallback'](_0x4d5f36=>{const {data:_0x4d402d}=_0x4d5f36;if(_0x4d402d){if('imageStyle'==_0x4d402d['commandName']){const _0x3ff01f=_0x4d402d['commandParams'][0x0]['value'];return _0x2ab261('side'===_0x3ff01f?t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'}):_0x166ade[_0x3ff01f]||_0x3ff01f);}if('imageTextAlternative'==_0x4d402d['commandName']){const _0x448b52=_0x4d402d['commandParams'][0x0]['newValue'];return _0x448b52?{'type':'format','content':t('*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x448b52+'\x22')}:{'type':'format','content':t('*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4d402d['commandName']){const _0x116ef8=_0x4d402d['commandParams'][0x0]['width'];return _0x116ef8?{'type':'format','content':t('*Set\x20image\x20width:*\x20%0',_0x116ef8)}:{'type':'format','content':t('*Reset\x20image\x20width*')};}}function _0x2ab261(_0x3c6e1b){return{'type':'format','content':t('*Format:*\x20%0',_0x3c6e1b)};}});}}
23
+ import{Plugin as _0x366f31}from'ckeditor5/src/core';import{LivePosition as te}from'ckeditor5/src/engine';import{uid as _0x236ba6}from'ckeditor5/src/utils';import{getCaptionFromImageModelElement as _0x51443d}from'@ckeditor/ckeditor5-image/src/imagecaption/utils';import'../../theme/integrations/image.css';export default class V extends _0x366f31{['afterInit'](){const _0x1fa6a3=this['editor'];if(!_0x1fa6a3['plugins']['has']('ImageEditing'))return;const _0x10823f=_0x1fa6a3['plugins']['get']('TrackChangesEditing'),_0x34af2=_0x1fa6a3['plugins']['get']('ImageUtils'),_0x999d63={},{t:t}=_0x1fa6a3['locale'];if(_0x10823f['enableCommand']('insertImage'),_0x10823f['_descriptionFactory']['registerElementLabel']('imageBlock',_0x234801=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x234801)),_0x10823f['_descriptionFactory']['registerElementLabel']('imageInline',_0x4381e1=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4381e1)),_0x10823f['_descriptionFactory']['registerElementLabel']('caption',t({'string':'caption','id':'ELEMENT_CAPTION'})),_0x1fa6a3['plugins']['has']('ImageUploadEditing')&&_0x10823f['enableCommand']('uploadImage'),_0x1fa6a3['plugins']['has']('ImageBlockEditing')&&_0x1fa6a3['plugins']['has']('ImageInlineEditing')&&(_0x10823f['enableCommand']('imageTypeInline',(_0x3c92d3,_0xcde06b)=>{const _0x305085=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']);_0x1fa6a3['model']['change'](()=>{_0x10823f['markBlockFormat'](_0x305085,{'commandName':'imageTypeInline','commandParams':[_0xcde06b]},[],'convertBlockImageToInline');});}),_0x10823f['enableCommand']('imageTypeBlock',(_0x326c08,_0x24a7bf)=>{_0x1fa6a3['model']['change'](_0x5e4442=>{let _0x139291=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x324d61=_0x5e4442['createRangeOn'](_0x139291);const _0x377c9a=te['fromPosition'](_0x324d61['start'],'toPrevious'),_0x3473bf=te['fromPosition'](_0x324d61['end'],'toNext');_0x10823f['forceDefaultExecution'](()=>_0x326c08(_0x24a7bf)),_0x139291=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x324d61=_0x5e4442['createRangeOn'](_0x139291);const _0x15bfab=_0x5e4442['createRange'](_0x377c9a,_0x3473bf);_0x377c9a['detach'](),_0x3473bf['detach'](),_0x10823f['markBlockFormat'](_0x139291,{'commandName':'imageTypeInline'},[],'convertInlineImageToBlock'),_0x15bfab['start']['isBefore'](_0x324d61['start'])&&_0x10823f['markInsertion'](_0x5e4442['createRange'](_0x15bfab['start'],_0x324d61['start']),'convertInlineImageToBlock'),_0x324d61['end']['isBefore'](_0x15bfab['end'])&&_0x10823f['markInsertion'](_0x5e4442['createRange'](_0x324d61['end'],_0x15bfab['end']),'convertInlineImageToBlock');});}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x10823f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x10823f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x540cc2])=>{const _0x195feb=_0x10823f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x41e06c=_0x540cc2['start'],_0x302c81=_0x540cc2['end'];const _0x2f128b=_0x1fa6a3['model']['schema']['getNearestSelectionRange'](_0x41e06c,'backward'),_0x38d185=_0x1fa6a3['model']['schema']['getNearestSelectionRange'](_0x302c81,'forward');_0x2f128b['isCollapsed']&&(_0x41e06c=_0x2f128b['start']),_0x38d185['isCollapsed']&&(_0x302c81=_0x38d185['end']),_0x195feb([_0x1fa6a3['model']['createRange'](_0x41e06c,_0x302c81)]);}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2daf3e),_0x10823f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2daf3e)),_0x1fa6a3['plugins']['has']('ImageCaptionEditing')&&(_0x10823f['enableCommand']('toggleImageCaption',(_0x148b76,_0x19a05f)=>{let _0x170f78=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x4c9a43=_0x51443d(_0x170f78);_0x1fa6a3['model']['change'](()=>{if(_0x4c9a43)return void _0x10823f['markDeletion'](_0x1fa6a3['model']['createRangeOn'](_0x4c9a43));const _0x2c20ba=_0x34af2['isBlockImage'](_0x170f78);_0x148b76(_0x19a05f),_0x170f78=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x4c9a43=_0x51443d(_0x170f78),_0x10823f['markInsertion'](_0x1fa6a3['model']['createRangeOn'](_0x4c9a43),_0x2c20ba?null:'imageCaption');});}),_0x10823f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2daf3e)),_0x1fa6a3['plugins']['has']('ImageStyleEditing')){_0x10823f['enableCommand']('imageStyle',(_0x1b121b,_0xf0a0fd)=>{const _0x2a3a21=_0x1fa6a3['plugins']['get']('Users')['me'],_0x238034=_0x1fa6a3['commands']['get']('imageStyle');let _0x189d74=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x35a2f0=_0x1fa6a3['model']['createRangeOn'](_0x189d74),_0x47f2d7=_0x238034['value'];if(_0x47f2d7==_0xf0a0fd['value'])return;const _0x4da482={'commandName':'imageStyle','commandParams':[_0xf0a0fd],'formatGroupId':_0x236ba6()};_0x1fa6a3['model']['change'](()=>{if(_0x10823f['getSuggestions']()['filter'](_0x3b123b=>_0x3b123b['isInContent']&&_0x2a3a21==_0x3b123b['author']&&('formatBlock'==_0x3b123b['type']||'formatInline'==_0x3b123b['type'])&&('imageStylePreApply'==_0x3b123b['subType']||'imageStylePostApply'==_0x3b123b['subType'])&&_0x3b123b['getFirstRange']()['isEqual'](_0x35a2f0))['forEach'](_0x49bafa=>_0x10823f['discardSuggestion'](_0x49bafa['head'])),_0x189d74=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x35a2f0=_0x1fa6a3['model']['createRangeOn'](_0x189d74),_0x238034['refresh'](),_0x1fa6a3['commands']['get']('imageTypeInline')['refresh'](),_0x1fa6a3['commands']['get']('imageTypeBlock')['refresh'](),_0x47f2d7=_0x238034['value'],_0x47f2d7!=_0xf0a0fd['value'])return _0x34af2['isInlineImage'](_0x189d74)&&_0x238034['shouldConvertImageType'](_0xf0a0fd['value'],_0x189d74)?(_0x1b121b(_0xf0a0fd),_0x189d74=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),void _0x10823f['markBlockFormat'](_0x189d74,{..._0x4da482,'commandReversedParams':[{'value':_0x47f2d7||null}]},[],'imageStylePreApply')):void(_0x34af2['isBlockImage'](_0x189d74)?_0x10823f['markBlockFormat'](_0x189d74,_0x4da482,[],'imageStylePostApply'):_0x10823f['markInlineFormat'](_0x35a2f0,_0x4da482,'imageStylePostApply'));});});for(const _0x41c5d2 of _0x1fa6a3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x999d63[_0x41c5d2['name']]=_0x41c5d2['title']['toLowerCase']();_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x365f39,_0x2941f6)=>{_0x10823f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x365f39,{'commandName':_0x2941f6['commandName'],'commandParams':_0x2941f6['commandReversedParams']});}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',_0x2daf3e);}const _0x15464e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x33ba78(_0x4200e4,_0x171eb5){const _0x2666be=_0x15464e['findIndex'](({type:_0x277d1d,subType:_0x11d005})=>_0x4200e4['type']==_0x277d1d&&_0x4200e4['subType']==_0x11d005),_0x4411c0=_0x15464e['findIndex'](({type:_0x199eac,subType:_0x2b3031})=>_0x171eb5['type']==_0x199eac&&_0x171eb5['subType']==_0x2b3031);if(_0x2666be<0x0||_0x4411c0<0x0)return!0x1;const _0x41f241=_0x4200e4['getFirstRange'](),_0x3d88e4=_0x171eb5['getFirstRange']();if((0x0==_0x2666be||0x1==_0x2666be)&&0x2==_0x4411c0&&_0x41f241['isIntersecting'](_0x3d88e4))return!0x0;if(0x2==_0x2666be&&0x3==_0x4411c0){const _0xa6a1c4=_0x10823f['_findSuggestions'](_0x41f241,'insertion')['filter'](({suggestion:_0x533a56,meta:_0x47f3fd})=>_0x47f3fd['isOwn']&&'convertInlineImageToBlock'==_0x533a56['subType']);if(_0xa6a1c4['length']>0x1&&_0x3d88e4['end']['isEqual'](_0x41f241['start']))return!0x0;if(0x1==_0xa6a1c4['length']&&(_0x41f241['start']['isEqual'](_0x3d88e4['end'])||_0x41f241['end']['isEqual'](_0x3d88e4['start'])))return!0x0;}if(0x3==_0x2666be&&0x3==_0x4411c0&&_0x41f241['start']['isBefore'](_0x3d88e4['start'])){const _0x4c9203=_0x41f241['end']['nodeAfter'],_0x45b313=_0x3d88e4['start']['nodeBefore'];return _0x34af2['isBlockImage'](_0x4c9203)&&_0x4c9203===_0x45b313;}return!0x1;}function _0x2daf3e(_0x238e87,_0x4e794d){return _0x33ba78(_0x238e87,_0x4e794d)?[_0x238e87,_0x4e794d]:_0x33ba78(_0x4e794d,_0x238e87)?[_0x4e794d,_0x238e87]:null;}_0x1fa6a3['model']['document']['registerPostFixer'](()=>{let _0x519e5e=!0x1;const _0x15c89b=Array['from'](_0x1fa6a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x370126,data:_0x95eee3}of _0x15c89b){const {group:_0x5355b3,type:_0x385494,subType:_0x21e6a8,id:_0x454618}=_0x10823f['_splitMarkerName'](_0x370126);if('suggestion'==_0x5355b3&&_0x10823f['hasSuggestion'](_0x454618)){if('formatBlock'==_0x385494&&('imageStylePreApply'==_0x21e6a8||'imageStylePostApply'==_0x21e6a8)){const _0x23c638=_0x10823f['getSuggestion'](_0x454618);if(_0x95eee3['newRange']){const _0xab53c2=_0x23c638['getFirstRange']()['getContainedElement']();if(_0x34af2['isBlockImage'](_0xab53c2))continue;_0x10823f['discardSuggestion'](_0x23c638),_0x519e5e=!0x0;}}if('insertion'==_0x385494&&'imageCaption'==_0x21e6a8&&!_0x95eee3['newRange']){const _0x3457ae=_0x10823f['getSuggestion'](_0x454618);_0x3457ae['next']&&_0x3457ae['next']['isInContent']&&(_0x10823f['discardSuggestion'](_0x3457ae['next']),_0x519e5e=!0x0);}}}return _0x519e5e;}),_0x1fa6a3['plugins']['has']('ImageResize')&&_0x10823f['enableCommand']('resizeImage',(_0x2764db,_0x3c1ada)=>{const _0x414d26=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']);_0x414d26['getAttribute']('width')!=_0x3c1ada['width']&&_0x1fa6a3['model']['change'](()=>{_0x10823f['markBlockFormat'](_0x414d26,{'commandName':'resizeImage','commandParams':[_0x3c1ada]});});}),_0x1fa6a3['plugins']['has']('ImageTextAlternativeEditing')&&_0x10823f['enableCommand']('imageTextAlternative',(_0x48c1bd,_0x6c1d71)=>{const _0xf87f3b=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']);(_0xf87f3b['hasAttribute']('alt')?_0xf87f3b['getAttribute']('alt'):'')!=_0x6c1d71['newValue']&&_0x1fa6a3['model']['change'](()=>{_0x10823f['markBlockFormat'](_0xf87f3b,{'commandName':'imageTextAlternative','commandParams':[_0x6c1d71]});});}),_0x10823f['_descriptionFactory']['registerDescriptionCallback'](_0x5cb408=>{if(!!_0x15464e['find'](({type:_0xbf7f35,subType:_0x524444})=>_0x5cb408['type']==_0xbf7f35&&_0x5cb408['subType']==_0x524444))return _0x5cb408['previous']?{}:void 0x0;}),_0x10823f['_descriptionFactory']['registerDescriptionCallback'](_0x329347=>{if('insertion'==_0x329347['type']||'deletion'==_0x329347['type']){const _0x19bee6=_0x329347['getContainedElement']();if(_0x19bee6&&_0x19bee6['is']('element','caption'))return{'type':'insertion'==_0x329347['type']?'addObject':'removeObject','name':_0x19bee6['name'],'quantity':0x1};}}),_0x10823f['_descriptionFactory']['registerDescriptionCallback'](_0x5c1a5e=>'formatBlock'==_0x5c1a5e['type']&&'convertInlineImageToBlock'==_0x5c1a5e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5c1a5e['type']&&'convertBlockImageToInline'==_0x5c1a5e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x10823f['_descriptionFactory']['registerDescriptionCallback'](_0x477765=>{const {data:_0x482c51}=_0x477765;if(_0x482c51){if('imageStyle'==_0x482c51['commandName']){const _0x5a1f4c=_0x482c51['commandParams'][0x0]['value'];return _0x1ee4a5('side'===_0x5a1f4c?t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'}):_0x999d63[_0x5a1f4c]||_0x5a1f4c);}if('imageTextAlternative'==_0x482c51['commandName']){const _0x10af19=_0x482c51['commandParams'][0x0]['newValue'];return _0x10af19?{'type':'format','content':t('*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x10af19+'\x22')}:{'type':'format','content':t('*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x482c51['commandName']){const _0x355576=_0x482c51['commandParams'][0x0]['width'];return _0x355576?{'type':'format','content':t('*Set\x20image\x20width:*\x20%0',_0x355576)}:{'type':'format','content':t('*Reset\x20image\x20width*')};}}function _0x1ee4a5(_0x1f6abb){return{'type':'format','content':t('*Format:*\x20%0',_0x1f6abb)};}});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3cee8f}from'ckeditor5/src/core';export default class X extends _0x3cee8f{['afterInit'](){const _0x4c3caf=this['editor'],_0x40fb20=_0x4c3caf['plugins']['get']('TrackChangesEditing');_0x4c3caf['plugins']['has']('IndentEditing')&&(_0x40fb20['enableCommand']('indent'),_0x40fb20['enableCommand']('outdent'));const {t:t}=_0x4c3caf['locale'];if(_0x4c3caf['plugins']['has']('IndentBlock')){for(const _0x240988 of['indentBlock','outdentBlock'])_0x40fb20['enableCommand'](_0x240988,()=>{const _0x583f53=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x584334=>this['editor']['model']['schema']['checkAttribute'](_0x584334,'blockIndent'));_0x4c3caf['model']['change'](()=>{for(const _0x55eed9 of _0x583f53)_0x40fb20['markBlockFormat'](_0x55eed9,{'commandName':_0x240988,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x40fb20['_descriptionFactory']['registerDescriptionCallback'](_0x375e7c=>{const {data:_0x5b27b8}=_0x375e7c;if(!_0x5b27b8)return;if('indentBlock'!=_0x5b27b8['commandName']&&'outdentBlock'!=_0x5b27b8['commandName'])return;const _0x2d9c40=_0x375e7c['getItems']()[0x0],_0x371110=_0x40fb20['_descriptionFactory']['getItemLabel'](_0x2d9c40['name']);return'indentBlock'==_0x5b27b8['commandName']?{'type':'format','content':t('*Indent:*\x20%0',_0x371110)}:'outdentBlock'==_0x5b27b8['commandName']?{'type':'format','content':t('*Outdent:*\x20%0',_0x371110)}:void 0x0;});}}}
23
+ import{Plugin as _0x206d6c}from'ckeditor5/src/core';export default class X extends _0x206d6c{['afterInit'](){const _0xc6b755=this['editor'],_0x112cbb=_0xc6b755['plugins']['get']('TrackChangesEditing');_0xc6b755['plugins']['has']('IndentEditing')&&(_0x112cbb['enableCommand']('indent'),_0x112cbb['enableCommand']('outdent'));const {t:t}=_0xc6b755['locale'];if(_0xc6b755['plugins']['has']('IndentBlock')){for(const _0x46fc5a of['indentBlock','outdentBlock'])_0x112cbb['enableCommand'](_0x46fc5a,()=>{const _0x39bb7c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x52e3ae=>this['editor']['model']['schema']['checkAttribute'](_0x52e3ae,'blockIndent'));_0xc6b755['model']['change'](()=>{for(const _0x44206c of _0x39bb7c)_0x112cbb['markBlockFormat'](_0x44206c,{'commandName':_0x46fc5a,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x112cbb['_descriptionFactory']['registerDescriptionCallback'](_0x2fedc6=>{const {data:_0x49a2b3}=_0x2fedc6;if(!_0x49a2b3)return;if('indentBlock'!=_0x49a2b3['commandName']&&'outdentBlock'!=_0x49a2b3['commandName'])return;const _0x264174=_0x2fedc6['getItems']()[0x0],_0x585b6c=_0x112cbb['_descriptionFactory']['getItemLabel'](_0x264174['name']);return'indentBlock'==_0x49a2b3['commandName']?{'type':'format','content':t('*Indent:*\x20%0',_0x585b6c)}:'outdentBlock'==_0x49a2b3['commandName']?{'type':'format','content':t('*Outdent:*\x20%0',_0x585b6c)}:void 0x0;});}}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x9874=['editor','requires','enableCommand','TrackChangesEditing','init','get','plugins'];(function(_0x3fb68d,_0x9874e2){var _0x2d7ea0=function(_0x1d8432){while(--_0x1d8432){_0x3fb68d['push'](_0x3fb68d['shift']());}};_0x2d7ea0(++_0x9874e2);}(_0x9874,0x16f));var _0x2d7e=function(_0x3fb68d,_0x9874e2){_0x3fb68d=_0x3fb68d-0x0;var _0x2d7ea0=_0x9874[_0x3fb68d];return _0x2d7ea0;};import{Plugin as _0x2f9202}from'ckeditor5/src/core';import{Input as _0x2f89b9}from'ckeditor5/src/typing';export default class Y extends _0x2f9202{static get[_0x2d7e('0x5')](){return[_0x2f89b9];}[_0x2d7e('0x1')](){this[_0x2d7e('0x4')][_0x2d7e('0x3')][_0x2d7e('0x2')](_0x2d7e('0x0'))[_0x2d7e('0x6')]('input');}}
23
+ var _0x595e=['get','requires','init','input','plugins','enableCommand','TrackChangesEditing'];(function(_0x3c321f,_0x595e89){var _0x511cbb=function(_0x3f97d2){while(--_0x3f97d2){_0x3c321f['push'](_0x3c321f['shift']());}};_0x511cbb(++_0x595e89);}(_0x595e,0x161));var _0x511c=function(_0x3c321f,_0x595e89){_0x3c321f=_0x3c321f-0x0;var _0x511cbb=_0x595e[_0x3c321f];return _0x511cbb;};import{Plugin as _0x1af515}from'ckeditor5/src/core';import{Input as _0xebf77}from'ckeditor5/src/typing';export default class Y extends _0x1af515{static get[_0x511c('0x5')](){return[_0xebf77];}[_0x511c('0x6')](){this['editor'][_0x511c('0x1')][_0x511c('0x4')](_0x511c('0x3'))[_0x511c('0x2')](_0x511c('0x0'));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x209508}from'ckeditor5/src/core';import{findAttributeRange as _0x239310}from'ckeditor5/src/typing';import{getRangesWithAttribute as Rt}from'./utils';export default class Z extends _0x209508{['afterInit'](){const _0x1cf622=this['editor'];if(!_0x1cf622['plugins']['has']('LinkEditing'))return;const _0xcb71d=_0x1cf622['plugins']['get']('TrackChangesEditing');_0xcb71d['enableCommand']('link',(_0x373301,_0x5a72bc)=>{const _0x3bda45=_0x1cf622['model']['document']['selection'];let _0x3c5ba8=[];if(_0x3bda45['isCollapsed']){if(!_0x3bda45['hasAttribute']('linkHref'))return void _0x373301(_0x5a72bc);{const _0x1be42a=_0x239310(_0x3bda45['getFirstPosition'](),'linkHref',_0x3bda45['getAttribute']('linkHref'),_0x1cf622['model']);_0x3c5ba8=[_0x1be42a];}}else _0x3c5ba8=Array['from'](_0x3bda45['getRanges']());_0x1cf622['model']['change'](()=>{for(const _0x112019 of _0x3c5ba8)_0xcb71d['markInlineFormat'](_0x112019,{'commandName':'link','commandParams':[_0x5a72bc]});});}),_0xcb71d['enableCommand']('unlink',()=>{const _0x43c2de=this['editor']['model'],_0x27de4f=_0x43c2de['document']['selection'];_0x43c2de['change'](()=>{let _0x4a3af2=[];if(_0x27de4f['isCollapsed'])_0x4a3af2=[_0x239310(_0x27de4f['getFirstPosition'](),'linkHref',_0x27de4f['getAttribute']('linkHref'),_0x1cf622['model'])];else _0x4a3af2=Rt('linkHref',_0x27de4f['getFirstRange'](),_0x1cf622['model']);for(const _0x27a67c of _0x4a3af2)_0xcb71d['markInlineFormat'](_0x27a67c,{'commandName':'unlink','commandParams':[]});});}),_0xcb71d['_descriptionFactory']['registerDescriptionCallback'](_0x2252db=>{const {data:_0x3dba53}=_0x2252db,{t:t}=_0x1cf622['locale'];if(_0x3dba53){if('link'==_0x3dba53['commandName'])return{'type':'format','content':t('*Set\x20link:*\x20%0','\x22'+_0x3dba53['commandParams'][0x0]+'\x22')};return'unlink'==_0x3dba53['commandName']?{'type':'format','content':t('*Remove\x20link*')}:void 0x0;}});}}
23
+ import{Plugin as _0x34f7bf}from'ckeditor5/src/core';import{findAttributeRange as _0x531d6f}from'ckeditor5/src/typing';import{getRangesWithAttribute as Rt}from'./utils';export default class Z extends _0x34f7bf{['afterInit'](){const _0x5f590a=this['editor'];if(!_0x5f590a['plugins']['has']('LinkEditing'))return;const _0x26cc9e=_0x5f590a['plugins']['get']('TrackChangesEditing');_0x26cc9e['enableCommand']('link',(_0x37de3d,_0xd53914)=>{const _0x291084=_0x5f590a['model']['document']['selection'];let _0x2e3d8b=[];if(_0x291084['isCollapsed']){if(!_0x291084['hasAttribute']('linkHref'))return void _0x37de3d(_0xd53914);{const _0x270ee8=_0x531d6f(_0x291084['getFirstPosition'](),'linkHref',_0x291084['getAttribute']('linkHref'),_0x5f590a['model']);_0x2e3d8b=[_0x270ee8];}}else _0x2e3d8b=Array['from'](_0x291084['getRanges']());_0x5f590a['model']['change'](()=>{for(const _0x3bf0b6 of _0x2e3d8b)_0x26cc9e['markInlineFormat'](_0x3bf0b6,{'commandName':'link','commandParams':[_0xd53914]});});}),_0x26cc9e['enableCommand']('unlink',()=>{const _0x2f9f5c=this['editor']['model'],_0x308522=_0x2f9f5c['document']['selection'];_0x2f9f5c['change'](()=>{let _0x573fd6=[];if(_0x308522['isCollapsed'])_0x573fd6=[_0x531d6f(_0x308522['getFirstPosition'](),'linkHref',_0x308522['getAttribute']('linkHref'),_0x5f590a['model'])];else _0x573fd6=Rt('linkHref',_0x308522['getFirstRange'](),_0x5f590a['model']);for(const _0x5dde3b of _0x573fd6)_0x26cc9e['markInlineFormat'](_0x5dde3b,{'commandName':'unlink','commandParams':[]});});}),_0x26cc9e['_descriptionFactory']['registerDescriptionCallback'](_0x21cb99=>{const {data:_0x366666}=_0x21cb99,{t:t}=_0x5f590a['locale'];if(_0x366666){if('link'==_0x366666['commandName'])return{'type':'format','content':t('*Set\x20link:*\x20%0','\x22'+_0x366666['commandParams'][0x0]+'\x22')};return'unlink'==_0x366666['commandName']?{'type':'format','content':t('*Remove\x20link*')}:void 0x0;}});}}