@ckeditor/ckeditor5-track-changes 29.2.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 (85) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/lang/contexts.json +8 -7
  4. package/lang/translations/cs.po +27 -23
  5. package/lang/translations/da.po +387 -0
  6. package/lang/translations/de.po +28 -24
  7. package/lang/translations/en-au.po +28 -24
  8. package/lang/translations/en.po +28 -24
  9. package/lang/translations/es.po +27 -23
  10. package/lang/translations/et.po +27 -23
  11. package/lang/translations/fr.po +28 -24
  12. package/lang/translations/gl.po +28 -24
  13. package/lang/translations/hi.po +27 -23
  14. package/lang/translations/hr.po +27 -23
  15. package/lang/translations/it.po +28 -24
  16. package/lang/translations/nl.po +27 -23
  17. package/lang/translations/pl.po +27 -23
  18. package/lang/translations/pt-br.po +49 -45
  19. package/lang/translations/sk.po +27 -23
  20. package/lang/translations/sr-latn.po +28 -24
  21. package/lang/translations/sr.po +28 -24
  22. package/lang/translations/tk.po +27 -23
  23. package/lang/translations/tr.po +27 -23
  24. package/lang/translations/zh-cn.po +28 -24
  25. package/lang/translations/zh.po +370 -0
  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/suggestion.css +10 -0
  82. package/theme/suggestionmarker.css +1 -1
  83. package/src/integrations/exportpdf.js +0 -23
  84. package/src/integrations/exportword.js +0 -23
  85. package/src/integrations/selectall.js +0 -23
@@ -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 _0x490087}from'ckeditor5/src/core';import _0x3b3410 from'./trackchangesediting';import _0x29a674 from'@ckeditor/ckeditor5-comments/src/comments/commentsrepository';import Ct from'./ui/suggestioncontroller';import Tt from'./ui/view/suggestionthreadview';import _0x280ccb from'@ckeditor/ckeditor5-collaboration-core/src/users';import xt from'@ckeditor/ckeditor5-comments/src/annotations/editorannotations';import{Collection as Et}from'ckeditor5/src/utils';import{Model as Nt,SplitButtonView as Ut,createDropdown as Wt,addListToDropdown as Ot}from'ckeditor5/src/ui';import Gt from'@ckeditor/ckeditor5-comments/src/utils/getdatetimeformatter';import Mt from'@ckeditor/ckeditor5-comments/src/utils/getmarkerdomelement';import Pt from'../theme/icons/track-changes.svg';import{debounce as Vt}from'lodash-es';import qt from'@ckeditor/ckeditor5-comments/src/annotations/view/annotationview';import zt from'@ckeditor/ckeditor5-comments/src/annotations/annotation';import Ft from'@ckeditor/ckeditor5-comments/src/annotations/annotations';export default class f extends _0x490087{static get['requires'](){return[Ft,xt,_0x3b3410,_0x29a674,_0x280ccb];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x74f371){super(_0x74f371),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_debouncedHandlers']=new Map();const _0x40621e=this['editor']['config'];_0x40621e['define']('trackChanges.SuggestionThreadView',Tt),_0x40621e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x40621e['get']('trackChanges.disableComments');}['init'](){const _0x9af94b=this['editor'],_0x4a6dac=_0x9af94b['plugins']['get'](_0x3b3410),_0x46b62d=_0x9af94b['plugins']['get'](Ft),_0x72b85e=_0x9af94b['plugins']['get'](xt),_0x14349c=_0x9af94b['plugins']['get'](_0x29a674);_0x9af94b['ui']['componentFactory']['add']('trackChanges',_0x57b12d=>this['_createUIButton'](_0x57b12d)),_0x72b85e['addSourceCollector'](()=>{const _0x4dcd59=[];for(const [_0x2cd6ae,_0xe66aa8]of Array['from'](this['_suggestionToController'])){const _0x10901f=_0x2cd6ae['getAllAdjacentSuggestions'](),_0x1f2829=[];for(const _0x57cf54 of _0x10901f){if(!_0x57cf54['isInContent'])continue;if(_0x57cf54['isMultiRange']){_0x1f2829['push'](..._0x57cf54['getRanges']());continue;}const _0x4a8f73=_0x57cf54['getFirstRange']();if(_0x1f2829['length']>0x0){const _0x2d2096=_0x1f2829[0x0]['getJoined'](_0x4a8f73);if(_0x2d2096){_0x1f2829[0x0]=_0x2d2096;continue;}}_0x1f2829['push'](_0x4a8f73);}_0x4dcd59['push']([_0xe66aa8['view'],_0x1f2829]);}return _0x4dcd59;}),this['listenTo'](_0x4a6dac,'suggestionLoaded',(_0x440ba2,_0x5941ad)=>{let _0x33120d=!0x1;const _0x427c6f=Vt(_0xe472f3=>{_0x33120d||_0xe472f3?_0x33120d&&_0xe472f3&&(this['_destroyController'](_0x5941ad),_0x72b85e['refreshSelectedViews'](),_0x33120d=!0x1):(this['_initializeController'](_0x5941ad),_0x72b85e['refreshSelectedViews'](),_0x33120d=!0x0);},0xa);this['_debouncedHandlers']['set'](_0x5941ad,_0x427c6f),this['listenTo'](_0x5941ad,'change:previous',(_0x27b107,_0x498aeb,_0x20565d,_0x114c05)=>{_0x5941ad['isInContent']&&(null==_0x20565d?(this['_updateController'](_0x114c05['head']),_0x427c6f(!0x1)):(this['_updateController'](_0x20565d['head']),_0x427c6f(!0x0)));}),null===_0x5941ad['previous']?_0x427c6f(!0x1):this['_updateController'](_0x5941ad['head']);}),this['listenTo'](_0x4a6dac,'suggestionUnloaded',(_0x4440cf,_0x22852b,_0x500436)=>{this['stopListening'](_0x22852b,'change:previous'),this['_debouncedHandlers']['get'](_0x22852b)['cancel'](),this['_debouncedHandlers']['delete'](_0x22852b);const _0x9226cf=_0x500436?_0x500436['head']:_0x22852b,_0x52132a=this['_suggestionToController']['get'](_0x9226cf);null!==_0x500436&&this['_updateController'](_0x9226cf),null===_0x500436&&_0x52132a&&this['_destroyController'](_0x22852b);}),this['listenTo'](_0x4a6dac,'suggestionChanged',(_0x599f44,_0x434285)=>{this['_updateController'](_0x434285);}),this['listenTo'](_0x46b62d,'change:activeAnnotations',(_0x16b219,_0x31f4fb,_0x36c92d)=>{const _0x6a7746=Array['from'](_0x36c92d,_0x2b56df=>_0x2b56df['innerView'])['filter'](_0x28fec6=>this['_viewToController']['has'](_0x28fec6)),_0x4e6621=[];for(const _0xa4b51b of _0x6a7746){const _0x25eec3=this['_viewToController']['get'](_0xa4b51b)['model']['getAllAdjacentSuggestions']();_0x4e6621['push'](..._0x25eec3['reduce']((_0x41df23,_0x1efd7e)=>[..._0x41df23,..._0x1efd7e['getMarkerNames']()],[]));}_0x4a6dac['activeMarkers']=_0x4e6621;}),this['listenTo'](_0x14349c,'addComment',(_0x179076,{threadId:_0x2cf994,isFromAdapter:_0x1a92e5})=>{if(_0x1a92e5||!_0x4a6dac['hasSuggestion'](_0x2cf994))return;const _0x3e22d6=_0x4a6dac['getSuggestion'](_0x2cf994);this['_suggestionToController']['get'](_0x3e22d6)['view']['focus']();},{'priority':'lowest'});}['_createUIButton'](_0x30fe34){const _0x48c9e8=Wt(_0x30fe34,Ut),_0x56a4f0=this['editor']['commands']['get']('trackChanges'),{t:t}=this['editor'];_0x48c9e8['buttonView']['set']({'tooltip':t('Track\x20changes'),'label':t('Track\x20changes'),'icon':Pt}),_0x48c9e8['buttonView']['bind']('isOn')['to'](_0x56a4f0,'value'),_0x48c9e8['buttonView']['on']('execute',()=>_0x56a4f0['execute']());const _0x4fd8cb=new Et(),_0x235c5a=[{'type':'switchbutton','model':{'withText':!0x0,'label':t('Track\x20changes'),'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0x59ff1a of _0x235c5a){const _0x4c8ee2={'type':_0x59ff1a['type']};if(_0x59ff1a['model']){const _0x18dd04=new Nt(_0x59ff1a['model']),_0x33d669=this['editor']['commands']['get'](_0x18dd04['commandName']);_0x18dd04['bind']('isOn','isEnabled')['to'](_0x33d669,'value','isEnabled'),_0x4c8ee2['model']=_0x18dd04;}_0x4fd8cb['add'](_0x4c8ee2);}Ot(_0x48c9e8,_0x4fd8cb);const _0x4c8406=_0x235c5a['filter'](_0x346b5c=>null!=_0x346b5c['model'])['map'](_0x98b786=>this['editor']['commands']['get'](_0x98b786['model']['commandName']));return _0x48c9e8['buttonView']['actionView']['unbind']('isEnabled'),_0x48c9e8['buttonView']['arrowView']['unbind']('isEnabled'),_0x48c9e8['buttonView']['actionView']['bind']('isEnabled')['to'](_0x56a4f0,'isEnabled'),_0x48c9e8['buttonView']['arrowView']['bind']('isEnabled')['toMany'](_0x4c8406,'isEnabled',(..._0x24715f)=>_0x24715f['some'](_0x53903e=>_0x53903e)),_0x48c9e8['on']('execute',_0x20949b=>this['editor']['execute'](_0x20949b['source']['commandName'])),_0x48c9e8;}['_initializeController'](_0x523b89){const _0x213f16=this['editor'],_0x1fc164=_0x213f16['config'],_0x49f8ea=_0x213f16['plugins']['get'](Ft),_0x9766e2=_0x523b89['getAllAdjacentSuggestions']()['filter'](_0x298e35=>_0x298e35['isInContent']),_0x32e338=_0x213f16['plugins']['get']('Users')['me'],_0x42652a=_0x213f16['commands']['get']('acceptSuggestion'),_0xf2595f=_0x213f16['commands']['get']('discardSuggestion'),_0x302e53=new(0x0,(_0x1fc164['get']('trackChanges'))['SuggestionThreadView'])(_0x213f16['locale'],_0x523b89,_0x32e338,{'disableComments':this['_disableComments'],'editorConfig':_0x1fc164['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1fc164['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1fc164['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1fc164['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':Gt(_0x1fc164['get']('locale')),'CommentView':_0x1fc164['get']('comments')['CommentView']}),_0x18491f=new Ct(_0x523b89,_0x302e53,_0x42652a,_0xf2595f);_0x302e53['descriptionParts']=_0x213f16['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x9766e2),this['_suggestionToController']['set'](_0x523b89,_0x18491f),this['_viewToController']['set'](_0x302e53,_0x18491f);const _0x5148d6=new qt(this['editor']['locale'],_0x302e53);_0x5148d6['bind']('isDirty')['to'](_0x302e53,'isDirty'),_0x5148d6['bind']('length')['to'](_0x302e53),_0x5148d6['bind']('type')['to'](_0x302e53,'type',_0x44e959=>'suggestion-'+_0x44e959);const _0x4de641=new zt({'view':_0x5148d6,'target':()=>{const _0x249d6b=_0x9766e2[0x0]['getFirstMarker']();if(!_0x249d6b)return null;const _0x18d023=_0x249d6b['getRange']()['getContainedElement']();return _0x18d023&&!_0x213f16['editing']['mapper']['toViewElement'](_0x18d023)?null:Mt(_0x213f16['editing'],_0x249d6b)||null;},'type':()=>'suggestion-'+_0x18491f['view']['type']});_0x49f8ea['add'](_0x4de641);const _0xfb1cec=_0x213f16['plugins']['get']('PendingActions');let _0x1c4d82;_0x302e53['on']('change:isDirty',(_0x4ca311,_0x24522c,_0x48c62c)=>{if(_0x48c62c){const t=this['editor']['locale']['t'];_0x1c4d82=_0xfb1cec['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'}));}else _0xfb1cec['remove'](_0x1c4d82),_0x1c4d82=null;});}['_destroyController'](_0x58d366){const _0x5a6152=this['editor']['plugins']['get']('Annotations'),_0x5745bc=this['_suggestionToController']['get'](_0x58d366),_0x3332ea=_0x5745bc['view'],_0xfb591f=_0x5a6152['getByInnerView'](_0x3332ea);_0x5a6152['remove'](_0xfb591f),this['_suggestionToController']['delete'](_0x58d366),this['_viewToController']['delete'](_0x3332ea),_0x5745bc['destroy'](),_0x3332ea['destroy']();}['_updateController'](_0x468eee){if(!_0x468eee['isInContent']||!this['_suggestionToController']['has'](_0x468eee))return;const _0x1588bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe5c2c1=this['_suggestionToController']['get'](_0x468eee),_0x1f6a33=_0x468eee['getAllAdjacentSuggestions']();_0xe5c2c1['view']['descriptionParts']=_0x1588bd['_descriptionFactory']['getDescriptions'](_0x1f6a33);}['destroy'](){super['destroy']();for(const _0x18b5da of this['_suggestionToController']['keys']())this['_destroyController'](_0x18b5da);for(const _0x135d4d of this['_debouncedHandlers']['values']())_0x135d4d['cancel']();this['_debouncedHandlers']['clear']();}}
23
+ import{Plugin as _0x3a01cf}from'ckeditor5/src/core';import _0x202257 from'./trackchangesediting';import _0x173eac from'@ckeditor/ckeditor5-comments/src/comments/commentsrepository';import Ct from'./ui/suggestioncontroller';import Tt from'./ui/view/suggestionthreadview';import _0xdd9095 from'@ckeditor/ckeditor5-collaboration-core/src/users';import xt from'@ckeditor/ckeditor5-comments/src/annotations/editorannotations';import{Collection as Et}from'ckeditor5/src/utils';import{Model as At,SplitButtonView as Nt,createDropdown as Ut,addListToDropdown as Wt}from'ckeditor5/src/ui';import _t from'@ckeditor/ckeditor5-comments/src/utils/getdatetimeformatter';import Ot from'@ckeditor/ckeditor5-comments/src/utils/getmarkerdomelement';import Gt from'../theme/icons/track-changes.svg';import{debounce as Mt}from'lodash-es';import Pt from'@ckeditor/ckeditor5-comments/src/annotations/view/annotationview';import Vt from'@ckeditor/ckeditor5-comments/src/annotations/annotation';import qt from'@ckeditor/ckeditor5-comments/src/annotations/annotations';export default class f extends _0x3a01cf{static get['requires'](){return[qt,xt,_0x202257,_0x173eac,_0xdd9095];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x7a1337){super(_0x7a1337),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_debouncedHandlers']=new Map();const _0x4096df=this['editor']['config'];_0x4096df['define']('trackChanges.SuggestionThreadView',Tt),_0x4096df['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4096df['get']('trackChanges.disableComments');}['init'](){const _0x14b82b=this['editor'],_0x28231b=_0x14b82b['plugins']['get'](_0x202257),_0xf842a5=_0x14b82b['plugins']['get'](qt),_0x5c3fa0=_0x14b82b['plugins']['get'](xt),_0x2de147=_0x14b82b['plugins']['get'](_0x173eac);_0x14b82b['ui']['componentFactory']['add']('trackChanges',_0x637294=>this['_createUIButton'](_0x637294)),_0x5c3fa0['addSourceCollector'](()=>{const _0x1a98ff=[];for(const [_0x2335dc,_0x5aa22a]of Array['from'](this['_suggestionToController'])){const _0x1d62e2=_0x2335dc['getAllAdjacentSuggestions'](),_0x45ace0=[];for(const _0x3f3748 of _0x1d62e2){if(!_0x3f3748['isInContent'])continue;if(_0x3f3748['isMultiRange']){_0x45ace0['push'](..._0x3f3748['getRanges']());continue;}const _0x23f9c0=_0x3f3748['getFirstRange']();if(_0x45ace0['length']>0x0){const _0x5e0924=_0x45ace0[0x0]['getJoined'](_0x23f9c0);if(_0x5e0924){_0x45ace0[0x0]=_0x5e0924;continue;}}_0x45ace0['push'](_0x23f9c0);}_0x1a98ff['push']([_0x5aa22a['view'],_0x45ace0]);}return _0x1a98ff;}),this['listenTo'](_0x28231b,'suggestionLoaded',(_0x22ddd5,_0x2de540)=>{let _0x197cfb=!0x1;const _0x184916=Mt(_0x56402c=>{_0x197cfb||_0x56402c?_0x197cfb&&_0x56402c&&(this['_destroyController'](_0x2de540),_0x5c3fa0['refreshSelectedViews'](),_0x197cfb=!0x1):(this['_initializeController'](_0x2de540),_0x5c3fa0['refreshSelectedViews'](),_0x197cfb=!0x0);},0xa);this['_debouncedHandlers']['set'](_0x2de540,_0x184916),this['listenTo'](_0x2de540,'change:previous',(_0xe1280f,_0xa70a3f,_0xd07789,_0x16220e)=>{_0x2de540['isInContent']&&(null==_0xd07789?(this['_updateController'](_0x16220e['head']),_0x184916(!0x1)):(this['_updateController'](_0xd07789['head']),_0x184916(!0x0)));}),null===_0x2de540['previous']?_0x184916(!0x1):this['_updateController'](_0x2de540['head']);}),this['listenTo'](_0x28231b,'suggestionUnloaded',(_0xb67bf4,_0x1bebb7,_0x491275)=>{this['stopListening'](_0x1bebb7,'change:previous'),this['_debouncedHandlers']['get'](_0x1bebb7)['cancel'](),this['_debouncedHandlers']['delete'](_0x1bebb7);const _0x53fb7c=_0x491275?_0x491275['head']:_0x1bebb7,_0x26c73f=this['_suggestionToController']['get'](_0x53fb7c);null!==_0x491275&&this['_updateController'](_0x53fb7c),null===_0x491275&&_0x26c73f&&this['_destroyController'](_0x1bebb7);}),this['listenTo'](_0x28231b,'suggestionChanged',(_0x3b30cd,_0x54ce96)=>{this['_updateController'](_0x54ce96);}),this['listenTo'](_0xf842a5,'change:activeAnnotations',(_0x38bcb6,_0x1ea370,_0x3048f6)=>{const _0x37fba8=Array['from'](_0x3048f6,_0x588ad9=>_0x588ad9['innerView'])['filter'](_0x20a78e=>this['_viewToController']['has'](_0x20a78e)),_0x468aac=[];for(const _0x359e7a of _0x37fba8){const _0x3042ec=this['_viewToController']['get'](_0x359e7a)['model']['getAllAdjacentSuggestions']();_0x468aac['push'](..._0x3042ec['reduce']((_0x3d2648,_0x4e7977)=>[..._0x3d2648,..._0x4e7977['getMarkerNames']()],[]));}_0x28231b['activeMarkers']=_0x468aac;}),this['listenTo'](_0x2de147,'addComment',(_0x3c1b2f,{threadId:_0x55240e,isFromAdapter:_0x2724d7})=>{if(_0x2724d7||!_0x28231b['hasSuggestion'](_0x55240e))return;const _0x1829b0=_0x28231b['getSuggestion'](_0x55240e);this['_suggestionToController']['get'](_0x1829b0)['view']['focus']();},{'priority':'lowest'});}['_createUIButton'](_0x1f0171){const _0x13bed8=Ut(_0x1f0171,Nt),_0x1c0b7f=this['editor']['commands']['get']('trackChanges'),{t:t}=this['editor'];_0x13bed8['buttonView']['set']({'tooltip':t('Track\x20changes'),'label':t('Track\x20changes'),'icon':Gt}),_0x13bed8['buttonView']['bind']('isOn')['to'](_0x1c0b7f,'value'),_0x13bed8['buttonView']['on']('execute',()=>_0x1c0b7f['execute']());const _0x9f77bd=new Et(),_0x39c2fa=[{'type':'switchbutton','model':{'withText':!0x0,'label':t('Track\x20changes'),'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0x10c7ba of _0x39c2fa){const _0x56e9c7={'type':_0x10c7ba['type']};if(_0x10c7ba['model']){const _0x231dd8=new At(_0x10c7ba['model']),_0x1745a3=this['editor']['commands']['get'](_0x231dd8['commandName']);_0x231dd8['bind']('isOn','isEnabled')['to'](_0x1745a3,'value','isEnabled'),_0x56e9c7['model']=_0x231dd8;}_0x9f77bd['add'](_0x56e9c7);}Wt(_0x13bed8,_0x9f77bd);const _0x5cfc9a=_0x39c2fa['filter'](_0x3a0d91=>null!=_0x3a0d91['model'])['map'](_0x23161a=>this['editor']['commands']['get'](_0x23161a['model']['commandName']));return _0x13bed8['buttonView']['actionView']['unbind']('isEnabled'),_0x13bed8['buttonView']['arrowView']['unbind']('isEnabled'),_0x13bed8['buttonView']['actionView']['bind']('isEnabled')['to'](_0x1c0b7f,'isEnabled'),_0x13bed8['buttonView']['arrowView']['bind']('isEnabled')['toMany'](_0x5cfc9a,'isEnabled',(..._0x34ee32)=>_0x34ee32['some'](_0x5cb8b8=>_0x5cb8b8)),_0x13bed8['on']('execute',_0x3e7f4b=>this['editor']['execute'](_0x3e7f4b['source']['commandName'])),_0x13bed8;}['_initializeController'](_0x2ed806){const _0x25f2c2=this['editor'],_0x107698=_0x25f2c2['config'],_0x3f2783=_0x25f2c2['plugins']['get'](qt),_0x10d8f9=_0x2ed806['getAllAdjacentSuggestions']()['filter'](_0x58f54d=>_0x58f54d['isInContent']),_0x4abaf5=_0x25f2c2['plugins']['get']('Users')['me'],_0x50883d=_0x25f2c2['commands']['get']('acceptSuggestion'),_0x42060b=_0x25f2c2['commands']['get']('discardSuggestion'),_0x3e5e59=new(0x0,(_0x107698['get']('trackChanges'))['SuggestionThreadView'])(_0x25f2c2['locale'],_0x2ed806,_0x4abaf5,{'disableComments':this['_disableComments'],'editorConfig':_0x107698['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x107698['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x107698['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x107698['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_t(_0x107698['get']('locale')),'CommentView':_0x107698['get']('comments')['CommentView']}),_0x44f559=new Ct(_0x2ed806,_0x3e5e59,_0x50883d,_0x42060b);_0x3e5e59['descriptionParts']=_0x25f2c2['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x10d8f9),this['_suggestionToController']['set'](_0x2ed806,_0x44f559),this['_viewToController']['set'](_0x3e5e59,_0x44f559);const _0x314a75=new Pt(this['editor']['locale'],_0x3e5e59);_0x314a75['bind']('isDirty')['to'](_0x3e5e59,'isDirty'),_0x314a75['bind']('length')['to'](_0x3e5e59),_0x314a75['bind']('type')['to'](_0x3e5e59,'type',_0x320c73=>'suggestion-'+_0x320c73);const _0x51dfe1=new Vt({'view':_0x314a75,'target':()=>{const _0x42faa8=_0x10d8f9[0x0]['getFirstMarker']();if(!_0x42faa8)return null;const _0x24034b=_0x42faa8['getRange']()['getContainedElement']();return _0x24034b&&!_0x25f2c2['editing']['mapper']['toViewElement'](_0x24034b)?null:Ot(_0x25f2c2['editing'],_0x42faa8)||null;},'type':()=>'suggestion-'+_0x44f559['view']['type']});_0x3f2783['add'](_0x51dfe1);const _0x2d9605=_0x25f2c2['plugins']['get']('PendingActions');let _0x18c16a;_0x3e5e59['on']('change:isDirty',(_0x2c6be1,_0x351ef0,_0x4003ea)=>{if(_0x4003ea){const t=this['editor']['locale']['t'];_0x18c16a=_0x2d9605['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'}));}else _0x2d9605['remove'](_0x18c16a),_0x18c16a=null;});}['_destroyController'](_0x10f2e3){const _0x317147=this['editor']['plugins']['get']('Annotations'),_0x696471=this['_suggestionToController']['get'](_0x10f2e3),_0x35f333=_0x696471['view'],_0x3e2e9d=_0x317147['getByInnerView'](_0x35f333);_0x3e2e9d&&_0x317147['remove'](_0x3e2e9d),this['_suggestionToController']['delete'](_0x10f2e3),this['_viewToController']['delete'](_0x35f333),_0x696471['destroy'](),_0x35f333['destroy']();}['_updateController'](_0x1e9026){if(!_0x1e9026['isInContent']||!this['_suggestionToController']['has'](_0x1e9026))return;const _0x45de29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57ee97=this['_suggestionToController']['get'](_0x1e9026),_0x13e839=_0x1e9026['getAllAdjacentSuggestions']();_0x57ee97['view']['descriptionParts']=_0x45de29['_descriptionFactory']['getDescriptions'](_0x13e839);}['destroy'](){super['destroy']();for(const _0x209643 of this['_suggestionToController']['keys']())this['_destroyController'](_0x209643);for(const _0x2e800d of this['_debouncedHandlers']['values']())_0x2e800d['cancel']();this['_debouncedHandlers']['clear']();}}
@@ -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 _0x44c2=['unbind','discardSuggestion','isEnabled','_acceptCommand','destroy','view','model','execute','stopListening','acceptSuggestion','commentThread','_discardCommand','bind','commentThreadController'];(function(_0x57d07f,_0x44c25f){var _0x2163be=function(_0x2d8d5f){while(--_0x2d8d5f){_0x57d07f['push'](_0x57d07f['shift']());}};_0x2163be(++_0x44c25f);}(_0x44c2,0x1d5));var _0x2163=function(_0x57d07f,_0x44c25f){_0x57d07f=_0x57d07f-0x0;var _0x2163be=_0x44c2[_0x57d07f];return _0x2163be;};import{ObservableMixin as _0x159205,mix as _0x5a2cf7}from'ckeditor5/src/utils';import _0x2fcca3 from'@ckeditor/ckeditor5-comments/src/comments/ui/commentthreadcontroller';export default class Ct{constructor(_0x12b18f,_0x1f36bc,_0x2eb76e,_0x56bb45){this[_0x2163('0xd')]=_0x12b18f,this[_0x2163('0xc')]=_0x1f36bc,this[_0x2163('0x6')]=new _0x2fcca3(_0x12b18f[_0x2163('0x3')],_0x1f36bc),this[_0x2163('0xa')]=_0x2eb76e,this[_0x2163('0x4')]=_0x56bb45,this[_0x2163('0xc')][_0x2163('0x5')](_0x2163('0x9'))['to'](this[_0x2163('0xa')]),this['listenTo'](_0x1f36bc,_0x2163('0x2'),()=>this[_0x2163('0x2')]()),this['listenTo'](_0x1f36bc,'discardSuggestion',()=>this['discardSuggestion']());}[_0x2163('0x2')](){this['_acceptCommand'][_0x2163('0x0')](this[_0x2163('0xd')]['id']);}[_0x2163('0x8')](){this[_0x2163('0x4')][_0x2163('0x0')](this[_0x2163('0xd')]['id']);}[_0x2163('0xb')](){this[_0x2163('0xc')][_0x2163('0x7')]('isEnabled'),this[_0x2163('0x1')](),this[_0x2163('0x6')][_0x2163('0xb')]();}}_0x5a2cf7(Ct,_0x159205);
23
+ var _0x17fd=['bind','view','destroy','discardSuggestion','commentThread','stopListening','acceptSuggestion','model','isEnabled','_acceptCommand','unbind','execute','_discardCommand','commentThreadController','listenTo'];(function(_0x1458cd,_0x17fd1a){var _0x58f556=function(_0x463e46){while(--_0x463e46){_0x1458cd['push'](_0x1458cd['shift']());}};_0x58f556(++_0x17fd1a);}(_0x17fd,0xb9));var _0x58f5=function(_0x1458cd,_0x17fd1a){_0x1458cd=_0x1458cd-0x0;var _0x58f556=_0x17fd[_0x1458cd];return _0x58f556;};import{ObservableMixin as _0x486f86,mix as _0x4558d8}from'ckeditor5/src/utils';import _0x555f11 from'@ckeditor/ckeditor5-comments/src/comments/ui/commentthreadcontroller';export default class Ct{constructor(_0x4b6600,_0x5dde1a,_0x154a33,_0x1249ad){this[_0x58f5('0x2')]=_0x4b6600,this[_0x58f5('0xb')]=_0x5dde1a,this[_0x58f5('0x8')]=new _0x555f11(_0x4b6600[_0x58f5('0xe')],_0x5dde1a),this[_0x58f5('0x4')]=_0x154a33,this[_0x58f5('0x7')]=_0x1249ad,this['view'][_0x58f5('0xa')]('isEnabled')['to'](this[_0x58f5('0x4')]),this['listenTo'](_0x5dde1a,'acceptSuggestion',()=>this[_0x58f5('0x1')]()),this[_0x58f5('0x9')](_0x5dde1a,'discardSuggestion',()=>this[_0x58f5('0xd')]());}[_0x58f5('0x1')](){this[_0x58f5('0x4')]['execute'](this[_0x58f5('0x2')]['id']);}[_0x58f5('0xd')](){this[_0x58f5('0x7')][_0x58f5('0x6')](this[_0x58f5('0x2')]['id']);}['destroy'](){this[_0x58f5('0xb')][_0x58f5('0x5')](_0x58f5('0x3')),this[_0x58f5('0x0')](),this['commentThreadController'][_0x58f5('0xc')]();}}_0x4558d8(Ct,_0x486f86);
@@ -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 _0x28e2=['disabledSubmit','updateComment','delegate','descriptionParts','CommentView','length','_localUser','_createCommentThreadInputView','_model','isActive','createdAt','editor','element','removeComment','_createCommentViews','set','commentInputView','value','submit','commentThreadInputView','_config','focus','destroy','hasDirtyComment','showInput','locale','commentThread','isDirty','commentsListView','bind','setData','disableComments'];(function(_0x3c4dec,_0x28e21f){const _0x1f86d8=function(_0x702380){while(--_0x702380){_0x3c4dec['push'](_0x3c4dec['shift']());}};_0x1f86d8(++_0x28e21f);}(_0x28e2,0x161));const _0x1f86=function(_0x3c4dec,_0x28e21f){_0x3c4dec=_0x3c4dec-0x0;let _0x1f86d8=_0x28e2[_0x3c4dec];return _0x1f86d8;};import{View as _0x2a426f}from'ckeditor5/src/ui';import _0x35ccc8 from'@ckeditor/ckeditor5-comments/src/comments/ui/view/commentslistview';import _0x1619af from'@ckeditor/ckeditor5-comments/src/comments/ui/view/commentthreadinputview';export default class ei extends _0x2a426f{constructor(_0x481015,_0x489d8e,_0x46f09a,_0x2f4116){super(_0x481015),this[_0x1f86('0x1b')]=null,this[_0x1f86('0x12')]=null,this[_0x1f86('0xe')](_0x1f86('0x8'),!0x1),this['set'](_0x1f86('0x9'),_0x489d8e['createdAt']),this['bind']('createdAt')['to'](_0x489d8e),this['set'](_0x1f86('0x2'),[]),this[_0x1f86('0xe')](_0x1f86('0x1a'),!0x1),this[_0x1f86('0xe')]('isEnabled',!0x1),this[_0x1f86('0x7')]=_0x489d8e,this[_0x1f86('0x5')]=_0x46f09a,this[_0x1f86('0x13')]=_0x2f4116,_0x2f4116[_0x1f86('0x1e')]?this[_0x1f86('0xe')](_0x1f86('0x4'),0x1):this[_0x1f86('0xd')]();}[_0x1f86('0x14')](){this[_0x1f86('0xb')]['focus']();}[_0x1f86('0x15')](){this[_0x1f86('0x1a')]=!0x1,this['commentsListView']&&this[_0x1f86('0x1b')][_0x1f86('0x15')](),this[_0x1f86('0x12')]&&this[_0x1f86('0x12')][_0x1f86('0x15')](),super[_0x1f86('0x15')]();}[_0x1f86('0xd')](){this[_0x1f86('0x1b')]=new _0x35ccc8(this[_0x1f86('0x18')],this[_0x1f86('0x7')][_0x1f86('0x19')],Object['assign']({'CommentView':this[_0x1f86('0x13')][_0x1f86('0x3')]},this[_0x1f86('0x13')])),this[_0x1f86('0x1b')][_0x1f86('0x1')](_0x1f86('0xc'))['to'](this),this[_0x1f86('0x1b')]['delegate'](_0x1f86('0x0'))['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this[_0x1f86('0xe')]('length',this[_0x1f86('0x1b')][_0x1f86('0x4')]+0x1),this[_0x1f86('0x1c')](_0x1f86('0x4'))['to'](this['commentsListView'],_0x1f86('0x4'),_0x488a2a=>_0x488a2a+0x1),this[_0x1f86('0x12')]=this[_0x1f86('0x6')](),this['on']('removeComment',()=>this[_0x1f86('0x14')]()),this[_0x1f86('0x1c')]('isDirty')['to'](this['commentsListView'],_0x1f86('0x16'),this[_0x1f86('0x12')]['commentInputView'],_0x1f86('0x10'),(_0x26890e,_0x27ffa8)=>_0x26890e||!!_0x27ffa8);}[_0x1f86('0x6')](){const _0x1effb8=new _0x1619af(this[_0x1f86('0x18')],this[_0x1f86('0x5')],this['_config']['editorConfig']),_0xb0188b=_0x1effb8[_0x1f86('0xf')];return _0x1effb8['bind'](_0x1f86('0x17'))['to'](this,_0x1f86('0x8'),this[_0x1f86('0x7')][_0x1f86('0x19')],'isReadOnly',_0xb0188b,_0x1f86('0x10'),(_0x4f22ff,_0x5a8f35,_0x8ecdd9)=>!!_0x8ecdd9||_0x4f22ff&&!_0x5a8f35),_0xb0188b['on'](_0x1f86('0x11'),(_0x5d9172,_0x4b2d99)=>{this['fire']('addComment',_0x4b2d99),_0xb0188b[_0x1f86('0xa')][_0x1f86('0x1d')]('');}),_0xb0188b['on']('cancel',()=>this[_0x1f86('0x14')]()),_0xb0188b[_0x1f86('0x1c')](_0x1f86('0x1f'))['to'](this[_0x1f86('0x7')]['commentThread'],'isReadOnly'),_0x1effb8;}}
23
+ const _0x4159=['_localUser','hasDirtyComment','value','isActive','editorConfig','_createCommentThreadInputView','commentThreadInputView','isReadOnly','disableComments','commentsListView','_config','locale','cancel','bind','set','assign','fire','destroy','_model','element','commentThread','_createCommentViews','isEnabled','length','focus','delegate','addComment','isDirty','commentInputView','createdAt','removeComment'];(function(_0x4bdc4b,_0x4159e8){const _0x4172db=function(_0x3d11ab){while(--_0x3d11ab){_0x4bdc4b['push'](_0x4bdc4b['shift']());}};_0x4172db(++_0x4159e8);}(_0x4159,0x1a2));const _0x4172=function(_0x4bdc4b,_0x4159e8){_0x4bdc4b=_0x4bdc4b-0x0;let _0x4172db=_0x4159[_0x4bdc4b];return _0x4172db;};import{View as _0xfe8413}from'ckeditor5/src/ui';import _0x171e23 from'@ckeditor/ckeditor5-comments/src/comments/ui/view/commentslistview';import _0x4a81ba from'@ckeditor/ckeditor5-comments/src/comments/ui/view/commentthreadinputview';export default class ei extends _0xfe8413{constructor(_0x427268,_0x13bb28,_0x3be3fa,_0x3d1244){super(_0x427268),this['commentsListView']=null,this[_0x4172('0x16')]=null,this[_0x4172('0x1e')](_0x4172('0x13'),!0x1),this['set'](_0x4172('0xe'),_0x13bb28[_0x4172('0xe')]),this[_0x4172('0x1d')](_0x4172('0xe'))['to'](_0x13bb28),this[_0x4172('0x1e')]('descriptionParts',[]),this['set'](_0x4172('0xc'),!0x1),this[_0x4172('0x1e')](_0x4172('0x7'),!0x1),this[_0x4172('0x3')]=_0x13bb28,this[_0x4172('0x10')]=_0x3be3fa,this[_0x4172('0x1a')]=_0x3d1244,_0x3d1244[_0x4172('0x18')]?this[_0x4172('0x1e')](_0x4172('0x8'),0x1):this['_createCommentViews']();}[_0x4172('0x9')](){this[_0x4172('0x4')][_0x4172('0x9')]();}[_0x4172('0x2')](){this['isDirty']=!0x1,this['commentsListView']&&this['commentsListView'][_0x4172('0x2')](),this[_0x4172('0x16')]&&this['commentThreadInputView'][_0x4172('0x2')](),super['destroy']();}[_0x4172('0x6')](){this[_0x4172('0x19')]=new _0x171e23(this[_0x4172('0x1b')],this[_0x4172('0x3')][_0x4172('0x5')],Object[_0x4172('0x0')]({'CommentView':this[_0x4172('0x1a')]['CommentView']},this['_config'])),this['commentsListView'][_0x4172('0xa')](_0x4172('0xf'))['to'](this),this[_0x4172('0x19')][_0x4172('0xa')]('updateComment')['to'](this),this[_0x4172('0x19')][_0x4172('0x1d')]('isActive')['to'](this),this['set'](_0x4172('0x8'),this['commentsListView'][_0x4172('0x8')]+0x1),this['bind'](_0x4172('0x8'))['to'](this['commentsListView'],'length',_0x4ab2d4=>_0x4ab2d4+0x1),this[_0x4172('0x16')]=this[_0x4172('0x15')](),this['on'](_0x4172('0xf'),()=>this[_0x4172('0x9')]()),this['bind']('isDirty')['to'](this['commentsListView'],_0x4172('0x11'),this[_0x4172('0x16')][_0x4172('0xd')],_0x4172('0x12'),(_0x41c374,_0x2ff5ac)=>_0x41c374||!!_0x2ff5ac);}[_0x4172('0x15')](){const _0x5b6e99=new _0x4a81ba(this[_0x4172('0x1b')],this[_0x4172('0x10')],this['_config'][_0x4172('0x14')]),_0x130fba=_0x5b6e99[_0x4172('0xd')];return _0x5b6e99[_0x4172('0x1d')]('showInput')['to'](this,'isActive',this[_0x4172('0x3')][_0x4172('0x5')],_0x4172('0x17'),_0x130fba,_0x4172('0x12'),(_0x16c65c,_0xae5bdd,_0x26ee81)=>!!_0x26ee81||_0x16c65c&&!_0xae5bdd),_0x130fba['on']('submit',(_0x4c95e5,_0x48f994)=>{this[_0x4172('0x1')](_0x4172('0xb'),_0x48f994),_0x130fba['editor']['setData']('');}),_0x130fba['on'](_0x4172('0x1c'),()=>this[_0x4172('0x9')]()),_0x130fba['bind']('disabledSubmit')['to'](this[_0x4172('0x3')][_0x4172('0x5')],_0x4172('0x17')),_0x5b6e99;}}
@@ -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 _0x54d6d2 from'./basesuggestionthreadview';import _0x1204d4 from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import{ButtonView as _0x5d27f7}from'ckeditor5/src/ui';import{icons as _0x152693}from'ckeditor5/src/core';import _0x4730b2 from'@ckeditor/ckeditor5-comments/src/utils/trim-html';export default class Tt extends _0x54d6d2{constructor(_0x14c50f,_0x5cdb7d,_0xe89765,_0xe7512d){super(_0x14c50f,_0x5cdb7d,_0xe89765,_0xe7512d);const {t:t}=_0x14c50f;this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x24571b=>_0x24571b&&_0x24571b[0x0]?_0x24571b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x30e1b6,_0x747aa3)=>{let _0x7d0a86='';for(const _0x18d721 of _0x30e1b6)_0x7d0a86+='<p>'+ri(_0x18d721['content'])+'</p>';return _0x747aa3?_0x7d0a86:_0x4730b2(_0x7d0a86,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](t('Accept\x20suggestion'),_0x152693['check'],'ck-suggestion--accept','acceptSuggestion'),this['discardButton']=this['_createButton'](t('Discard\x20suggestion'),_0x152693['cancel'],'ck-suggestion--discard','discardSuggestion'),this['userView']=new _0x1204d4(_0x14c50f,this['_model']['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['_getTemplate']());}['_getTemplate'](){const _0x200f60=this['bindTemplate'],_0x20a68a={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x200f60['if']('isActive','ck-suggestion-wrapper--active'),_0x200f60['to']('type',_0x4e321a=>'ck-suggestion-'+_0x4e321a),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x200f60['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x200f60['to']('createdAt',_0x46482e=>this['_config']['formatDateTime'](_0x46482e))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}]}]}]};return this['commentsListView']&&this['commentThreadInputView']&&_0x20a68a['children']['push'](this['commentsListView'],this['commentThreadInputView']),_0x20a68a;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x32a13c,_0x516e6e,_0x49b84c)=>{this['_descriptionElement']['innerHTML']=_0x49b84c;});}['_createButton'](_0x1b4e85,_0x5c7c2d,_0x18467e,_0x23e320){const _0x4863d3=new _0x5d27f7(this['locale']);return _0x4863d3['set']({'label':_0x1b4e85,'icon':_0x5c7c2d,'tooltip':!0x0}),_0x4863d3['extendTemplate']({'attributes':{'class':_0x18467e}}),_0x4863d3['on']('execute',()=>{this['fire'](_0x23e320,this['_model']['id']);}),_0x4863d3['bind']('isEnabled')['to'](this),_0x4863d3;}}function ri(_0x14a2f7){let _0x204dae='';return _0x204dae+=_0x14a2f7['split']('*')['map']((_0x11fc3a,_0x418f00)=>_0x418f00%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+hi(_0x11fc3a)+'</span>':hi(_0x11fc3a))['join'](''),_0x204dae;}function hi(_0x1a4059){const _0x54bc28=document['createElement']('span');return _0x54bc28['innerText']=_0x1a4059,_0x54bc28['innerHTML'];}
23
+ import _0x1d55b7 from'./basesuggestionthreadview';import _0x2071f3 from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import{ButtonView as _0x196e73}from'ckeditor5/src/ui';import{icons as _0x3ca3c6}from'ckeditor5/src/core';import _0x148c82 from'@ckeditor/ckeditor5-comments/src/utils/trim-html';export default class Tt extends _0x1d55b7{constructor(_0x12cb46,_0x55eed0,_0xa372cb,_0x20b3f8){super(_0x12cb46,_0x55eed0,_0xa372cb,_0x20b3f8);const {t:t}=_0x12cb46;this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x29059d=>_0x29059d&&_0x29059d[0x0]?_0x29059d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe7d2dc,_0x202855)=>{let _0xb91f0c='';for(const _0x3f5239 of _0xe7d2dc)_0xb91f0c+='<p>'+as(_0x3f5239['content'],_0x3f5239['color'])+'</p>';return _0x202855?_0xb91f0c:_0x148c82(_0xb91f0c,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](t('Accept\x20suggestion'),_0x3ca3c6['check'],'ck-suggestion--accept','acceptSuggestion'),this['discardButton']=this['_createButton'](t('Discard\x20suggestion'),_0x3ca3c6['cancel'],'ck-suggestion--discard','discardSuggestion'),this['userView']=new _0x2071f3(_0x12cb46,this['_model']['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x26554d=this['bindTemplate'],_0x3fbd2c={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x26554d['if']('isActive','ck-suggestion-wrapper--active'),_0x26554d['to']('type',_0x25b637=>'ck-suggestion-'+_0x25b637),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x26554d['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x26554d['to']('createdAt',_0xb4c971=>this['_config']['formatDateTime'](_0xb4c971))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}]}]}]};return this['commentsListView']&&this['commentThreadInputView']&&_0x3fbd2c['children']['push'](this['commentsListView'],this['commentThreadInputView']),_0x3fbd2c;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x4fb8b5,_0x579330,_0x3a67e4)=>{this['_descriptionElement']['innerHTML']=_0x3a67e4;});}['_createButton'](_0x5d8225,_0x4cbdc5,_0x41e9ec,_0x2c4d68){const _0x28762a=new _0x196e73(this['locale']);return _0x28762a['set']({'label':_0x5d8225,'icon':_0x4cbdc5,'tooltip':!0x0}),_0x28762a['extendTemplate']({'attributes':{'class':_0x41e9ec}}),_0x28762a['on']('execute',()=>{this['fire'](_0x2c4d68,this['_model']['id']);}),_0x28762a['bind']('isEnabled')['to'](this),_0x28762a;}}function as(_0x54cf37,_0x90e7f8){let _0x3cb14b='';return _0x3cb14b+=_0x54cf37['split']('*')['map']((_0xe95f3a,_0x1f635c)=>_0x1f635c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rs(_0xe95f3a)+'</span>':rs(_0xe95f3a))['join'](''),_0x90e7f8&&(_0x3cb14b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x90e7f8['value']+'\x22\x20title=\x22'+_0x90e7f8['title']+'\x22></span>'),_0x3cb14b;}function rs(_0x43d042){const _0x2bcf5b=document['createElement']('span');return _0x2bcf5b['innerText']=_0x43d042,_0x2bcf5b['innerHTML'];}
@@ -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 _0x2c44=['start','isMultiRange','isTouching','from','getMarkers','isInContent','add','end','next'];(function(_0xac4a32,_0x2c44e3){const _0x1f7f60=function(_0x4d6945){while(--_0x4d6945){_0xac4a32['push'](_0xac4a32['shift']());}};_0x1f7f60(++_0x2c44e3);}(_0x2c44,0x91));const _0x1f7f=function(_0xac4a32,_0x2c44e3){_0xac4a32=_0xac4a32-0x0;let _0x1f7f60=_0x2c44[_0xac4a32];return _0x1f7f60;};export default function jt(_0x476488,_0x28021f){const _0x1e4845=Array[_0x1f7f('0x2')](_0x476488['getRanges']()),_0x1c1706=new Set();for(const _0x42d5b8 of _0x28021f)if(_0x42d5b8[_0x1f7f('0x4')])for(const _0x3f77e6 of _0x1e4845)for(const _0x217ad7 of _0x42d5b8[_0x1f7f('0x3')]()){const _0x207e96=_0x217ad7['getRange']();(_0x3f77e6['isIntersecting'](_0x207e96)||_0x476488['isCollapsed']&&!_0x42d5b8[_0x1f7f('0x0')]&&_0x42d5b8[_0x1f7f('0x7')]&&_0x207e96[_0x1f7f('0x6')][_0x1f7f('0x1')](_0x3f77e6[_0x1f7f('0x8')]))&&_0x1c1706[_0x1f7f('0x5')](_0x42d5b8);}return _0x1c1706;}
23
+ const _0x1354=['start','next','isIntersecting','isInContent','add','isCollapsed','getRanges','getRange','isMultiRange'];(function(_0x4c7608,_0x1354b0){const _0x53441c=function(_0x159587){while(--_0x159587){_0x4c7608['push'](_0x4c7608['shift']());}};_0x53441c(++_0x1354b0);}(_0x1354,0x1a5));const _0x5344=function(_0x4c7608,_0x1354b0){_0x4c7608=_0x4c7608-0x0;let _0x53441c=_0x1354[_0x4c7608];return _0x53441c;};export default function jt(_0x5b2ca0,_0x290b27){const _0x335af7=Array['from'](_0x5b2ca0[_0x5344('0x8')]()),_0x515d7e=new Set();for(const _0x55eae4 of _0x290b27)if(_0x55eae4[_0x5344('0x5')])for(const _0x5be2fb of _0x335af7)for(const _0x5fee11 of _0x55eae4['getMarkers']()){const _0x4cd447=_0x5fee11[_0x5344('0x0')]();(_0x5be2fb[_0x5344('0x4')](_0x4cd447)||_0x5b2ca0[_0x5344('0x7')]&&!_0x55eae4[_0x5344('0x1')]&&_0x55eae4[_0x5344('0x3')]&&_0x4cd447['end']['isTouching'](_0x5be2fb[_0x5344('0x2')]))&&_0x515d7e[_0x5344('0x6')](_0x55eae4);}return _0x515d7e;}
@@ -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 _0x3366=['sort','number','keys','object','toString','string','charCodeAt'];(function(_0x3c1b78,_0x336622){const _0x576496=function(_0x17c953){while(--_0x17c953){_0x3c1b78['push'](_0x3c1b78['shift']());}};_0x576496(++_0x336622);}(_0x3366,0x160));const _0x5764=function(_0x3c1b78,_0x336622){_0x3c1b78=_0x3c1b78-0x0;let _0x576496=_0x3366[_0x3c1b78];return _0x576496;};export default function wt(_0x2d24f9){let _0x1b9f64=0x0,_0xf365ea=0x0;for(const _0x3aa427 of je(_0x2d24f9))_0x1b9f64=(_0x1b9f64<<0x5)-_0x1b9f64+_0x3aa427,_0x1b9f64&=_0x1b9f64,[_0x1b9f64,_0xf365ea]=[_0xf365ea,_0x1b9f64];return Ae(_0x1b9f64)+Ae(_0xf365ea);}function*ye(_0x8f3a20){_0x8f3a20?'boolean'==typeof _0x8f3a20?yield 0x1:Array['isArray'](_0x8f3a20)?yield*function*(_0x556204){for(const _0xa2c8a8 of _0x556204)yield*ye(_0xa2c8a8);}(_0x8f3a20):_0x5764('0x1')==typeof _0x8f3a20?yield*je(_0x8f3a20):_0x5764('0x3')==typeof _0x8f3a20?yield*he(_0x8f3a20):_0x5764('0x6')==typeof _0x8f3a20&&(yield _0x8f3a20):yield 0x0;}function*je(_0x6ba9af){if(yield xe('{'),_0x6ba9af){const _0x60ac21=Object[_0x5764('0x0')](_0x6ba9af)[_0x5764('0x5')]();for(const _0x2df6b0 of _0x60ac21){yield*he(_0x2df6b0),yield xe(':');const _0x537688=_0x6ba9af[_0x2df6b0];yield*ye(_0x537688);}}yield xe('}');}function*he(_0x5193c3){yield xe('\x22');for(const _0x32d7a8 of _0x5193c3)yield xe(_0x32d7a8);yield xe('\x22');}function xe(_0x200298){return _0x200298[_0x5764('0x4')](0x0);}function Ae(_0x17836e){return(_0x17836e*=Math['sign'](_0x17836e))[_0x5764('0x2')](0x24);}
23
+ const _0xf334=['isArray','toString','string','boolean','sort','object','charCodeAt'];(function(_0x61a3b9,_0xf334ca){const _0x3bdf6f=function(_0x113550){while(--_0x113550){_0x61a3b9['push'](_0x61a3b9['shift']());}};_0x3bdf6f(++_0xf334ca);}(_0xf334,0x7d));const _0x3bdf=function(_0x61a3b9,_0xf334ca){_0x61a3b9=_0x61a3b9-0x0;let _0x3bdf6f=_0xf334[_0x61a3b9];return _0x3bdf6f;};export default function mt(_0x3e9c39){let _0x271537=0x0,_0x4a8f24=0x0;for(const _0xe80aa4 of pe(_0x3e9c39))_0x271537=(_0x271537<<0x5)-_0x271537+_0xe80aa4,_0x271537&=_0x271537,[_0x271537,_0x4a8f24]=[_0x4a8f24,_0x271537];return xe(_0x271537)+xe(_0x4a8f24);}function*ye(_0x4f8b29){_0x4f8b29?_0x3bdf('0x4')==typeof _0x4f8b29?yield 0x1:Array[_0x3bdf('0x1')](_0x4f8b29)?yield*function*(_0x522cfa){for(const _0x435b35 of _0x522cfa)yield*ye(_0x435b35);}(_0x4f8b29):_0x3bdf('0x6')==typeof _0x4f8b29?yield*pe(_0x4f8b29):_0x3bdf('0x3')==typeof _0x4f8b29?yield*je(_0x4f8b29):'number'==typeof _0x4f8b29&&(yield _0x4f8b29):yield 0x0;}function*pe(_0x1245ef){if(yield he('{'),_0x1245ef){const _0x29074d=Object['keys'](_0x1245ef)[_0x3bdf('0x5')]();for(const _0x4586a9 of _0x29074d){yield*je(_0x4586a9),yield he(':');const _0x54f515=_0x1245ef[_0x4586a9];yield*ye(_0x54f515);}}yield he('}');}function*je(_0x38ada8){yield he('\x22');for(const _0x3edf8f of _0x38ada8)yield he(_0x3edf8f);yield he('\x22');}function he(_0x4965fb){return _0x4965fb[_0x3bdf('0x0')](0x0);}function xe(_0xc29554){return(_0xc29554*=Math['sign'](_0xc29554))[_0x3bdf('0x2')](0x24);}
@@ -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 _0x3977=['content','map','replace','type','join','isArray'];(function(_0x1fc0ba,_0x3977f3){var _0x365ad7=function(_0x2e6140){while(--_0x2e6140){_0x1fc0ba['push'](_0x1fc0ba['shift']());}};_0x365ad7(++_0x3977f3);}(_0x3977,0xe9));var _0x365a=function(_0x1fc0ba,_0x3977f3){_0x1fc0ba=_0x1fc0ba-0x0;var _0x365ad7=_0x3977[_0x1fc0ba];return _0x365ad7;};export function normalizeDescription(_0x3176eb){return Array[_0x365a('0x0')](_0x3176eb)||(_0x3176eb=[_0x3176eb]),_0x3176eb[_0x365a('0x2')](_0x809b1f=>'['+_0x809b1f[_0x365a('0x4')]+']\x20'+_0x809b1f[_0x365a('0x1')][_0x365a('0x3')](/\*/g,''))[_0x365a('0x5')](';\x20');}
23
+ const _0xb44d=['replace','join','value','color','type','isArray'];(function(_0x283f17,_0xb44dde){const _0x1f2eef=function(_0x4d3b06){while(--_0x4d3b06){_0x283f17['push'](_0x283f17['shift']());}};_0x1f2eef(++_0xb44dde);}(_0xb44d,0x6e));const _0x1f2e=function(_0x283f17,_0xb44dde){_0x283f17=_0x283f17-0x0;let _0x1f2eef=_0xb44d[_0x283f17];return _0x1f2eef;};export function normalizeDescription(_0x2679ff){return Array[_0x1f2e('0x3')](_0x2679ff)||(_0x2679ff=[_0x2679ff]),_0x2679ff['map'](_0xe6e92a=>{const _0x6c4595=_0xe6e92a['content'][_0x1f2e('0x4')](/\*/g,''),_0x1ef5b1=_0xe6e92a['color']?'\x20[color\x20'+_0xe6e92a[_0x1f2e('0x1')][_0x1f2e('0x0')]+']':'';return'['+_0xe6e92a[_0x1f2e('0x2')]+']\x20'+_0x6c4595+_0x1ef5b1;})[_0x1f2e('0x5')](';\x20');}
@@ -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 _0x1652=['type','deletion'];(function(_0x247c1b,_0x165241){var _0x29aaa1=function(_0x528696){while(--_0x528696){_0x247c1b['push'](_0x247c1b['shift']());}};_0x29aaa1(++_0x165241);}(_0x1652,0xfd));var _0x29aa=function(_0x247c1b,_0x165241){_0x247c1b=_0x247c1b-0x0;var _0x29aaa1=_0x1652[_0x247c1b];return _0x29aaa1;};export default function ts(_0x55f910){return _0x55f910['sort']((_0x3ab20b,_0x35748c)=>_0x29aa('0x0')==_0x3ab20b[_0x29aa('0x1')]&&_0x29aa('0x0')!=_0x35748c[_0x29aa('0x1')]?-0x1:'deletion'!=_0x3ab20b['type']&&_0x29aa('0x0')==_0x35748c[_0x29aa('0x1')]?0x1:0x0);}
23
+ var _0x5233=['type','sort','deletion'];(function(_0x5bb7dc,_0x5233f7){var _0x1f1d05=function(_0x3d95d1){while(--_0x3d95d1){_0x5bb7dc['push'](_0x5bb7dc['shift']());}};_0x1f1d05(++_0x5233f7);}(_0x5233,0x1e5));var _0x1f1d=function(_0x5bb7dc,_0x5233f7){_0x5bb7dc=_0x5bb7dc-0x0;var _0x1f1d05=_0x5233[_0x5bb7dc];return _0x1f1d05;};export default function ts(_0x98aac9){return _0x98aac9[_0x1f1d('0x2')]((_0x283f44,_0x48ca66)=>'deletion'==_0x283f44[_0x1f1d('0x1')]&&_0x1f1d('0x0')!=_0x48ca66[_0x1f1d('0x1')]?-0x1:_0x1f1d('0x0')!=_0x283f44[_0x1f1d('0x1')]&&'deletion'==_0x48ca66[_0x1f1d('0x1')]?0x1:0x0);}
@@ -4,7 +4,7 @@
4
4
  CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
5
  all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
- Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
7
+ Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
9
9
  !-->
10
10
 
@@ -4,7 +4,7 @@
4
4
  CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
5
  all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
- Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
7
+ Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
9
9
  !-->
10
10
 
@@ -4,7 +4,7 @@
4
4
  CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
5
  all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
- Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
7
+ Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
9
9
  !-->
10
10
 
@@ -52,6 +52,16 @@ With track-changes feature enabled, we need to distinguish various types of anno
52
52
  font-weight: bold;
53
53
  }
54
54
 
55
+ .ck .ck-suggestion-color {
56
+ display: inline-block;
57
+ width: 14px;
58
+ height: 14px;
59
+ border-radius: 14px;
60
+ vertical-align: text-bottom;
61
+ margin: 0 5px;
62
+ box-shadow: 0 0 0 1px #444;
63
+ }
64
+
55
65
  /* Comments inside suggestion. */
56
66
 
57
67
  /* Handle comments inside suggestion keep same border-color. */
@@ -3,7 +3,7 @@
3
3
  * Letters is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all Letters content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
6
+ * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x479a=['TrackChangesEditing','ExportPdf','exportPdf','enableCommand','plugins','editor','afterInit'];(function(_0x5e4741,_0x479a6c){const _0x264f24=function(_0x8ceb37){while(--_0x8ceb37){_0x5e4741['push'](_0x5e4741['shift']());}};_0x264f24(++_0x479a6c);}(_0x479a,0x7c));const _0x264f=function(_0x5e4741,_0x479a6c){_0x5e4741=_0x5e4741-0x0;let _0x264f24=_0x479a[_0x5e4741];return _0x264f24;};import{Plugin as _0x2d51e9}from'ckeditor5/src/core';export default class z extends _0x2d51e9{[_0x264f('0x1')](){const _0x1638e2=this[_0x264f('0x0')];_0x1638e2[_0x264f('0x6')]['has'](_0x264f('0x3'))&&_0x1638e2[_0x264f('0x6')]['get'](_0x264f('0x2'))[_0x264f('0x5')](_0x264f('0x4'));}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x684f=['get','afterInit','TrackChangesEditing','plugins','exportWord','has','ExportWord','enableCommand'];(function(_0x1db1a6,_0x684f4c){const _0x1a2eef=function(_0x45a633){while(--_0x45a633){_0x1db1a6['push'](_0x1db1a6['shift']());}};_0x1a2eef(++_0x684f4c);}(_0x684f,0xe0));const _0x1a2e=function(_0x1db1a6,_0x684f4c){_0x1db1a6=_0x1db1a6-0x0;let _0x1a2eef=_0x684f[_0x1db1a6];return _0x1a2eef;};import{Plugin as _0x6a837f}from'ckeditor5/src/core';export default class J extends _0x6a837f{[_0x1a2e('0x1')](){const _0x544a5d=this['editor'];_0x544a5d[_0x1a2e('0x3')][_0x1a2e('0x5')](_0x1a2e('0x6'))&&_0x544a5d['plugins'][_0x1a2e('0x0')](_0x1a2e('0x2'))[_0x1a2e('0x7')](_0x1a2e('0x4'));}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x220f=['enableCommand','get','SelectAll','selectAll','plugins','has','afterInit'];(function(_0x85ea87,_0x220f85){const _0x286856=function(_0x5a015d){while(--_0x5a015d){_0x85ea87['push'](_0x85ea87['shift']());}};_0x286856(++_0x220f85);}(_0x220f,0x87));const _0x2868=function(_0x85ea87,_0x220f85){_0x85ea87=_0x85ea87-0x0;let _0x286856=_0x220f[_0x85ea87];return _0x286856;};import{Plugin as _0x19ee99}from'ckeditor5/src/core';export default class ht extends _0x19ee99{[_0x2868('0x4')](){const _0x4716cf=this['editor'];if(!_0x4716cf[_0x2868('0x2')][_0x2868('0x3')](_0x2868('0x0')))return;_0x4716cf[_0x2868('0x2')][_0x2868('0x6')]('TrackChangesEditing')[_0x2868('0x5')](_0x2868('0x1'));}}