@ckeditor/ckeditor5-comments 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 (88) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/lang/translations/bs.po +80 -0
  4. package/lang/translations/cs.po +1 -1
  5. package/lang/translations/da.po +79 -0
  6. package/lang/translations/de-ch.po +1 -1
  7. package/lang/translations/de.po +1 -1
  8. package/lang/translations/en-au.po +1 -1
  9. package/lang/translations/en.po +1 -1
  10. package/lang/translations/es.po +1 -1
  11. package/lang/translations/et.po +1 -1
  12. package/lang/translations/fr.po +1 -1
  13. package/lang/translations/gl.po +1 -1
  14. package/lang/translations/hi.po +1 -1
  15. package/lang/translations/hr.po +1 -1
  16. package/lang/translations/hu.po +1 -1
  17. package/lang/translations/id.po +78 -0
  18. package/lang/translations/it.po +1 -1
  19. package/lang/translations/ja.po +1 -1
  20. package/lang/translations/ko.po +1 -1
  21. package/lang/translations/nl.po +1 -1
  22. package/lang/translations/no.po +1 -1
  23. package/lang/translations/pl.po +1 -1
  24. package/lang/translations/pt-br.po +1 -1
  25. package/lang/translations/ro.po +1 -1
  26. package/lang/translations/ru.po +1 -1
  27. package/lang/translations/sk.po +1 -1
  28. package/lang/translations/sr-latn.po +1 -1
  29. package/lang/translations/sr.po +1 -1
  30. package/lang/translations/tk.po +1 -1
  31. package/lang/translations/tr.po +1 -1
  32. package/lang/translations/ug.po +1 -1
  33. package/lang/translations/uk.po +1 -1
  34. package/lang/translations/zh-cn.po +1 -1
  35. package/lang/translations/zh.po +1 -1
  36. package/package.json +8 -8
  37. package/src/annotations/annotation.js +2 -2
  38. package/src/annotations/annotationcollection.js +2 -2
  39. package/src/annotations/annotations.js +2 -2
  40. package/src/annotations/annotationsuis.js +2 -2
  41. package/src/annotations/editorannotations.js +2 -2
  42. package/src/annotations/inlineannotations.js +2 -2
  43. package/src/annotations/narrowsidebar.js +2 -2
  44. package/src/annotations/sidebar.js +2 -2
  45. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  46. package/src/annotations/view/annotationview.js +2 -2
  47. package/src/annotations/view/sidebaritemview.js +2 -2
  48. package/src/annotations/view/sidebarview.js +2 -2
  49. package/src/annotations/widesidebar.js +2 -2
  50. package/src/comments/addcommentthreadcommand.js +2 -2
  51. package/src/comments/commentsediting.js +2 -2
  52. package/src/comments/commentsrepository.js +2 -2
  53. package/src/comments/commentsui.js +2 -2
  54. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  55. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  56. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  57. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  58. package/src/comments/ui/commentthreadcontroller.js +2 -2
  59. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  60. package/src/comments/ui/view/basecommentview.js +2 -2
  61. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  62. package/src/comments/ui/view/commentcontentview.js +2 -2
  63. package/src/comments/ui/view/commentinputview.js +2 -2
  64. package/src/comments/ui/view/commentslistview.js +2 -2
  65. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  66. package/src/comments/ui/view/commentthreadview.js +2 -2
  67. package/src/comments/ui/view/commentview.js +2 -2
  68. package/src/comments/ui/view/confirmmixin.js +2 -2
  69. package/src/comments/ui/view/confirmview.js +2 -2
  70. package/src/comments.js +2 -2
  71. package/src/commentsonly.js +2 -2
  72. package/src/utils/common-translations.js +2 -2
  73. package/src/utils/createmutationobserver.js +2 -2
  74. package/src/utils/getdatetimeformatter.js +2 -2
  75. package/src/utils/getmarkerdomelement.js +2 -2
  76. package/src/utils/trim-html.js +2 -2
  77. package/theme/annotation-inline.css +1 -1
  78. package/theme/annotation.css +1 -1
  79. package/theme/comment.css +1 -1
  80. package/theme/commentinput.css +1 -1
  81. package/theme/commentmarker.css +1 -1
  82. package/theme/commentthread.css +1 -1
  83. package/theme/icons/add-comment.svg +2 -2
  84. package/theme/icons/edit-comment.svg +1 -1
  85. package/theme/icons/remove-comment.svg +1 -1
  86. package/theme/sidebar-narrow.css +3 -3
  87. package/theme/sidebar.css +1 -1
  88. package/theme/icons/add-comment-inverted.svg +0 -11
@@ -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 _0x2e84=['ready','get','create','change','placeholderElement','low','initialData','set','focus','destroy','editing','getRoot','_updatePlaceholder','then','defaultPlugins','model','initPlugins','end','view','fire','plugins','getChild','setSelection','change:placeholder','config','placeholder','init','document','createRoot','childCount'];(function(_0x14b776,_0x2e847c){const _0x30a4e2=function(_0x398bcd){while(--_0x398bcd){_0x14b776['push'](_0x14b776['shift']());}};_0x30a4e2(++_0x2e847c);}(_0x2e84,0xbb));const _0x30a4=function(_0x14b776,_0x2e847c){_0x14b776=_0x14b776-0x0;let _0x30a4e2=_0x2e84[_0x14b776];return _0x30a4e2;};import{Editor as _0xd94e3c,DataApiMixin as _0x1742d0}from'ckeditor5/src/core';import _0x5a0355 from'./commenteditorui';import{mix as _0x3a65e4,ObservableMixin as _0x5805f2}from'ckeditor5/src/utils';import{enablePlaceholder as _0x3e4fd1,disablePlaceholder as _0x4f2957}from'ckeditor5/src/engine';import _0x1accda from'@ckeditor/ckeditor5-essentials/src/essentials';import{Paragraph as _0x1fc20d}from'ckeditor5/src/paragraph';import _0x28cb13 from'@ckeditor/ckeditor5-basic-styles/src/bold';import _0xc71d41 from'@ckeditor/ckeditor5-basic-styles/src/italic';import _0x41a036 from'@ckeditor/ckeditor5-list/src/list';import _0x5ad186 from'@ckeditor/ckeditor5-autoformat/src/autoformat';export default class zt extends _0xd94e3c{constructor(_0x1e8ee0={}){(_0x1e8ee0=Object['assign']({},_0x1e8ee0))['plugins']||(_0x1e8ee0[_0x30a4('0xd')]=zt[_0x30a4('0x7')]),super(_0x1e8ee0),this['ui']=new _0x5a0355(this),this[_0x30a4('0x0')](_0x30a4('0x12'),''),this[_0x30a4('0x8')][_0x30a4('0x14')]['on'](_0x30a4('0x1a'),()=>this[_0x30a4('0x5')](),{'priority':_0x30a4('0x1c')}),this['on'](_0x30a4('0x10'),()=>this['_updatePlaceholder']()),this[_0x30a4('0x8')][_0x30a4('0x14')][_0x30a4('0x15')]();}[_0x30a4('0x19')](){const _0x6673ce=this[_0x30a4('0x11')][_0x30a4('0x18')](_0x30a4('0x1d'))||'';return this[_0x30a4('0x9')]()[_0x30a4('0x6')](()=>this['ui'][_0x30a4('0x13')]())[_0x30a4('0x6')](()=>this['data'][_0x30a4('0x13')](_0x6673ce))[_0x30a4('0x6')](()=>this[_0x30a4('0xc')](_0x30a4('0x17')));}[_0x30a4('0x2')](){return super[_0x30a4('0x2')]()[_0x30a4('0x6')](()=>this['ui'][_0x30a4('0x2')]());}[_0x30a4('0x1')](){this[_0x30a4('0x8')][_0x30a4('0x1a')](_0x4bf23a=>{const _0x390872=this[_0x30a4('0x8')]['document'][_0x30a4('0x4')](),_0x4980de=_0x390872[_0x30a4('0xe')](_0x390872[_0x30a4('0x16')]-0x1);_0x4bf23a[_0x30a4('0xf')](_0x4980de,_0x30a4('0xa')),this[_0x30a4('0x3')]['view'][_0x30a4('0x1')]();});}[_0x30a4('0x5')](){const _0x5420a5=this[_0x30a4('0x3')][_0x30a4('0xb')],_0x431141=_0x5420a5[_0x30a4('0x14')][_0x30a4('0x4')](),_0x305952=_0x431141['getChild'](0x0);_0x431141[_0x30a4('0x16')]>0x1||!_0x305952||'p'!=_0x305952['name']?this[_0x30a4('0x1b')]&&(_0x4f2957(_0x5420a5,this['placeholderElement']),this['placeholderElement']=void 0x0):(_0x3e4fd1({'view':_0x5420a5,'element':_0x305952,'text':this[_0x30a4('0x12')],'keepOnFocus':!0x0}),this[_0x30a4('0x1b')]=_0x305952);}}_0x3a65e4(zt,_0x5805f2),_0x3a65e4(zt,_0x1742d0),zt[_0x30a4('0x7')]=[_0x1accda,_0x5ad186,_0x1fc20d,_0x28cb13,_0xc71d41,_0x41a036];
23
+ const _0x2a5f=['change:placeholder','_updatePlaceholder','change','initPlugins','placeholder','init','set','fire','childCount','then','config','get','name','focus','editing','defaultPlugins','ready','initialData','placeholderElement','document','getChild','plugins','createRoot','getRoot','view','model','destroy','setSelection','low','create'];(function(_0x3bd43a,_0x2a5ffb){const _0x2aec2b=function(_0xf2df31){while(--_0xf2df31){_0x3bd43a['push'](_0x3bd43a['shift']());}};_0x2aec2b(++_0x2a5ffb);}(_0x2a5f,0x15f));const _0x2aec=function(_0x3bd43a,_0x2a5ffb){_0x3bd43a=_0x3bd43a-0x0;let _0x2aec2b=_0x2a5f[_0x3bd43a];return _0x2aec2b;};import{Editor as _0x1c62ec,DataApiMixin as _0x6a872e}from'ckeditor5/src/core';import _0x5cd13f from'./commenteditorui';import{mix as _0x3e502b,ObservableMixin as _0x1fce07}from'ckeditor5/src/utils';import{enablePlaceholder as _0x188e55,disablePlaceholder as _0x32f855}from'ckeditor5/src/engine';import _0x18fc2a from'@ckeditor/ckeditor5-essentials/src/essentials';import{Paragraph as _0x4aa726}from'ckeditor5/src/paragraph';import _0x5e7276 from'@ckeditor/ckeditor5-basic-styles/src/bold';import _0x2c0a55 from'@ckeditor/ckeditor5-basic-styles/src/italic';import _0x1809f2 from'@ckeditor/ckeditor5-list/src/list';import _0x23651c from'@ckeditor/ckeditor5-autoformat/src/autoformat';export default class zt extends _0x1c62ec{constructor(_0x5b6808={}){(_0x5b6808=Object['assign']({},_0x5b6808))[_0x2aec('0x0')]||(_0x5b6808[_0x2aec('0x0')]=zt[_0x2aec('0x18')]),super(_0x5b6808),this['ui']=new _0x5cd13f(this),this[_0x2aec('0xf')](_0x2aec('0xd'),''),this[_0x2aec('0x4')][_0x2aec('0x1c')]['on'](_0x2aec('0xb'),()=>this[_0x2aec('0xa')](),{'priority':_0x2aec('0x7')}),this['on'](_0x2aec('0x9'),()=>this[_0x2aec('0xa')]()),this[_0x2aec('0x4')]['document'][_0x2aec('0x1')]();}[_0x2aec('0x8')](){const _0x3f25b2=this[_0x2aec('0x13')][_0x2aec('0x14')](_0x2aec('0x1a'))||'';return this[_0x2aec('0xc')]()[_0x2aec('0x12')](()=>this['ui'][_0x2aec('0xe')]())[_0x2aec('0x12')](()=>this['data'][_0x2aec('0xe')](_0x3f25b2))[_0x2aec('0x12')](()=>this[_0x2aec('0x10')](_0x2aec('0x19')));}[_0x2aec('0x5')](){return super['destroy']()[_0x2aec('0x12')](()=>this['ui'][_0x2aec('0x5')]());}[_0x2aec('0x16')](){this[_0x2aec('0x4')][_0x2aec('0xb')](_0x32571d=>{const _0x3b2b3c=this['model'][_0x2aec('0x1c')][_0x2aec('0x2')](),_0xc07dcd=_0x3b2b3c[_0x2aec('0x1d')](_0x3b2b3c[_0x2aec('0x11')]-0x1);_0x32571d[_0x2aec('0x6')](_0xc07dcd,'end'),this[_0x2aec('0x17')]['view'][_0x2aec('0x16')]();});}[_0x2aec('0xa')](){const _0x1a2b65=this[_0x2aec('0x17')][_0x2aec('0x3')],_0x257383=_0x1a2b65[_0x2aec('0x1c')][_0x2aec('0x2')](),_0x3300e5=_0x257383[_0x2aec('0x1d')](0x0);_0x257383[_0x2aec('0x11')]>0x1||!_0x3300e5||'p'!=_0x3300e5[_0x2aec('0x15')]?this[_0x2aec('0x1b')]&&(_0x32f855(_0x1a2b65,this[_0x2aec('0x1b')]),this[_0x2aec('0x1b')]=void 0x0):(_0x188e55({'view':_0x1a2b65,'element':_0x3300e5,'text':this['placeholder'],'keepOnFocus':!0x0}),this[_0x2aec('0x1b')]=_0x3300e5);}}_0x3e502b(zt,_0x1fce07),_0x3e502b(zt,_0x6a872e),zt[_0x2aec('0x18')]=[_0x18fc2a,_0x23651c,_0x4aa726,_0x5e7276,_0x2c0a55,_0x1809f2];
@@ -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 _0x5098=['render','focusTracker','editing','element','attachDomRoot','locale','ready','getRoot','name','document','editor','setEditableElement','destroy','isFocused','editable','init','view','add'];(function(_0x238997,_0x509810){const _0x4ef431=function(_0x2e0348){while(--_0x2e0348){_0x238997['push'](_0x238997['shift']());}};_0x4ef431(++_0x509810);}(_0x5098,0xf9));const _0x4ef4=function(_0x238997,_0x509810){_0x238997=_0x238997-0x0;let _0x4ef431=_0x5098[_0x238997];return _0x4ef431;};import{EditorUI as _0x239822}from'ckeditor5/src/core';import _0x5a284f from'./commenteditoruiview';export default class wt extends _0x239822{constructor(_0x29524a){super(_0x29524a),this['view']=new _0x5a284f(_0x29524a[_0x4ef4('0x8')],_0x29524a[_0x4ef4('0x5')][_0x4ef4('0x1')]);}get['element'](){return this['view']['element'];}[_0x4ef4('0x0')](){const _0x5dab6f=this[_0x4ef4('0xd')]['editing'][_0x4ef4('0x1')],_0x1316f4=this[_0x4ef4('0x1')][_0x4ef4('0x11')],_0x20420d=_0x5dab6f[_0x4ef4('0xc')][_0x4ef4('0xa')]();_0x1316f4[_0x4ef4('0xb')]=_0x20420d['rootName'],this[_0x4ef4('0x1')][_0x4ef4('0x3')]();const _0x1f4abe=_0x1316f4[_0x4ef4('0x6')];this[_0x4ef4('0xe')](_0x1316f4[_0x4ef4('0xb')],_0x1f4abe),this[_0x4ef4('0x4')][_0x4ef4('0x2')](_0x1f4abe),this[_0x4ef4('0x1')][_0x4ef4('0x11')]['bind'](_0x4ef4('0x10'))['to'](this['focusTracker']),_0x5dab6f[_0x4ef4('0x7')](_0x1f4abe),this['fire'](_0x4ef4('0x9'));}[_0x4ef4('0xf')](){this['view'][_0x4ef4('0xf')](),super['destroy']();}}
23
+ const _0x1c77=['add','focusTracker','rootName','destroy','setEditableElement','editing','attachDomRoot','bind','locale','isFocused','document','getRoot','init','ready','element','name','view','editable'];(function(_0x49a80f,_0x1c7714){const _0x894dce=function(_0xe0da67){while(--_0xe0da67){_0x49a80f['push'](_0x49a80f['shift']());}};_0x894dce(++_0x1c7714);}(_0x1c77,0x77));const _0x894d=function(_0x49a80f,_0x1c7714){_0x49a80f=_0x49a80f-0x0;let _0x894dce=_0x1c77[_0x49a80f];return _0x894dce;};import{EditorUI as _0xfd774f}from'ckeditor5/src/core';import _0x19c8a2 from'./commenteditoruiview';export default class wt extends _0xfd774f{constructor(_0x4e02fe){super(_0x4e02fe),this['view']=new _0x19c8a2(_0x4e02fe[_0x894d('0xf')],_0x4e02fe[_0x894d('0xc')][_0x894d('0x5')]);}get['element'](){return this[_0x894d('0x5')][_0x894d('0x3')];}[_0x894d('0x1')](){const _0x10b922=this['editor'][_0x894d('0xc')]['view'],_0x56fc05=this['view'][_0x894d('0x6')],_0x33ff11=_0x10b922[_0x894d('0x11')][_0x894d('0x0')]();_0x56fc05[_0x894d('0x4')]=_0x33ff11[_0x894d('0x9')],this[_0x894d('0x5')]['render']();const _0x4522fc=_0x56fc05[_0x894d('0x3')];this[_0x894d('0xb')](_0x56fc05[_0x894d('0x4')],_0x4522fc),this[_0x894d('0x8')][_0x894d('0x7')](_0x4522fc),this[_0x894d('0x5')][_0x894d('0x6')][_0x894d('0xe')](_0x894d('0x10'))['to'](this['focusTracker']),_0x10b922[_0x894d('0xd')](_0x4522fc),this['fire'](_0x894d('0x2'));}[_0x894d('0xa')](){this[_0x894d('0x5')][_0x894d('0xa')](),super[_0x894d('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
- import{InlineEditableUIView as $t,EditorUIView as Ct,LabelView as Lt}from'ckeditor5/src/ui';import{uid as _0x189368}from'ckeditor5/src/utils';export default class Bt extends Ct{constructor(_0x504eec,_0x3d680b){super(_0x504eec);const _0x303f34=_0x189368();this['main']=this['createCollection'](),this['editable']=new $t(_0x504eec,_0x3d680b),this['_voiceLabelView']=this['_createVoiceLabel'](_0x303f34,_0x504eec),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'role':'comment','dir':_0x504eec['uiLanguageDirection'],'lang':_0x504eec['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x303f34},'children':[this['_voiceLabelView'],{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}['_createVoiceLabel'](_0x53a279,_0x4c2659){const _0x5e2b98=new Lt(),{t:t}=_0x4c2659;return _0x5e2b98['text']=t('Comment\x20editor'),_0x5e2b98['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x53a279,'class':'ck-voice-label'}}),_0x5e2b98;}}
23
+ import{InlineEditableUIView as $t,EditorUIView as Ct,LabelView as Lt}from'ckeditor5/src/ui';import{uid as _0x433281}from'ckeditor5/src/utils';export default class Bt extends Ct{constructor(_0x377f72,_0x19efa){super(_0x377f72);const _0x42001e=_0x433281();this['main']=this['createCollection'](),this['editable']=new $t(_0x377f72,_0x19efa),this['_voiceLabelView']=this['_createVoiceLabel'](_0x42001e,_0x377f72),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'role':'comment','dir':_0x377f72['uiLanguageDirection'],'lang':_0x377f72['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x42001e},'children':[this['_voiceLabelView'],{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}['_createVoiceLabel'](_0x35e66a,_0x4bb2d7){const _0x479681=new Lt(),{t:t}=_0x4bb2d7;return _0x479681['text']=t('Comment\x20editor'),_0x479681['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x35e66a,'class':'ck-voice-label'}}),_0x479681;}}
@@ -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 _0x1bfb=['_isAttached','listenTo','removeCommentThread','getComment','model','remove','update','addComment','removeComment','updateComment','view'];(function(_0x668962,_0x1bfb15){var _0x2ebc55=function(_0x1c6b62){while(--_0x1c6b62){_0x668962['push'](_0x668962['shift']());}};_0x2ebc55(++_0x1bfb15);}(_0x1bfb,0x7e));var _0x2ebc=function(_0x668962,_0x1bfb15){_0x668962=_0x668962-0x0;var _0x2ebc55=_0x1bfb[_0x668962];return _0x2ebc55;};import{ObservableMixin as _0xda5b5b,mix as _0x259064}from'ckeditor5/src/utils';export default class H{constructor(_0x5c9537,_0x197dd0){this[_0x2ebc('0xa')]=_0x5c9537,this[_0x2ebc('0xa')][_0x2ebc('0x6')]=!0x0,this['view']=_0x197dd0,this[_0x2ebc('0x7')](_0x197dd0,_0x2ebc('0x8'),()=>this[_0x2ebc('0x0')]()),this[_0x2ebc('0x7')](_0x197dd0,_0x2ebc('0x2'),(_0x192a61,_0x18ebbc)=>this[_0x2ebc('0x2')](_0x18ebbc)),this[_0x2ebc('0x7')](_0x197dd0,_0x2ebc('0x4'),(_0x567398,_0x18e1ba,_0x7c1460)=>this[_0x2ebc('0x4')](_0x18e1ba,_0x7c1460)),this[_0x2ebc('0x7')](_0x197dd0,_0x2ebc('0x3'),(_0x1f2dc7,_0x136854)=>this[_0x2ebc('0x3')](_0x136854));}[_0x2ebc('0x0')](){this['model'][_0x2ebc('0x0')]();}[_0x2ebc('0x2')](_0x3ebcf2){this[_0x2ebc('0xa')][_0x2ebc('0x2')]({'content':_0x3ebcf2,'authorId':this[_0x2ebc('0x5')]['_localUser']['id']});}[_0x2ebc('0x4')](_0xd76e4a,_0x486ecf){this[_0x2ebc('0xa')][_0x2ebc('0x9')](_0xd76e4a)[_0x2ebc('0x1')]({'content':_0x486ecf});}[_0x2ebc('0x3')](_0x4a34c5){this['model']['getComment'](_0x4a34c5)['remove']();}['destroy'](){this['stopListening'](),this[_0x2ebc('0xa')][_0x2ebc('0x6')]=!0x1;}}_0x259064(H,_0xda5b5b);
23
+ var _0x187b=['destroy','_localUser','removeCommentThread','update','removeComment','_isAttached','updateComment','remove','model','view','addComment','getComment','listenTo'];(function(_0x31c852,_0x187b39){var _0x3be023=function(_0x3dbf3e){while(--_0x3dbf3e){_0x31c852['push'](_0x31c852['shift']());}};_0x3be023(++_0x187b39);}(_0x187b,0x135));var _0x3be0=function(_0x31c852,_0x187b39){_0x31c852=_0x31c852-0x0;var _0x3be023=_0x187b[_0x31c852];return _0x3be023;};import{ObservableMixin as _0x156dcc,mix as _0x453135}from'ckeditor5/src/utils';export default class K{constructor(_0x12b2fa,_0x1dc874){this[_0x3be0('0xb')]=_0x12b2fa,this[_0x3be0('0xb')]['_isAttached']=!0x0,this[_0x3be0('0xc')]=_0x1dc874,this[_0x3be0('0x2')](_0x1dc874,_0x3be0('0x5'),()=>this[_0x3be0('0xa')]()),this['listenTo'](_0x1dc874,_0x3be0('0x0'),(_0x4bac96,_0x306015)=>this[_0x3be0('0x0')](_0x306015)),this[_0x3be0('0x2')](_0x1dc874,_0x3be0('0x9'),(_0x333337,_0xc9f561,_0xd2c549)=>this['updateComment'](_0xc9f561,_0xd2c549)),this['listenTo'](_0x1dc874,_0x3be0('0x7'),(_0x385a55,_0x2492d9)=>this[_0x3be0('0x7')](_0x2492d9));}[_0x3be0('0xa')](){this[_0x3be0('0xb')][_0x3be0('0xa')]();}[_0x3be0('0x0')](_0x197e0a){this[_0x3be0('0xb')][_0x3be0('0x0')]({'content':_0x197e0a,'authorId':this[_0x3be0('0xc')][_0x3be0('0x4')]['id']});}[_0x3be0('0x9')](_0x3b7f7b,_0x1a1637){this['model'][_0x3be0('0x1')](_0x3b7f7b)[_0x3be0('0x6')]({'content':_0x1a1637});}['removeComment'](_0x360970){this['model'][_0x3be0('0x1')](_0x360970)['remove']();}[_0x3be0('0x3')](){this['stopListening'](),this['model'][_0x3be0('0x8')]=!0x1;}}_0x453135(K,_0x156dcc);
@@ -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{View as bt}from'ckeditor5/src/ui';import Rt from'./commentthreadinputview';import Tt from'./commentslistview';export default class It extends bt{constructor(_0x8c81cc,_0x283818,_0x1cdbfe,_0x4dcf2e){super(_0x8c81cc),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x283818,this['_localUser']=_0x1cdbfe,this['_config']=_0x4dcf2e,this['commentsListView']=new Tt(_0x8c81cc,_0x283818,Object['assign']({'CommentView':this['_config']['CommentView']},_0x4dcf2e)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5ca2b1,_0x1224c8)=>_0x5ca2b1||!!_0x1224c8);}['focus'](){this['element']['focus']();}['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const {t:t}=this['locale'],_0x444b1a=new Rt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3df9e1=_0x444b1a['commentInputView'];return _0x444b1a['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',_0x3df9e1,'value',(_0x507a5c,_0x3bb22d,_0x29a3ec)=>!!_0x29a3ec||_0x507a5c&&!_0x3bb22d),_0x3df9e1['bind']('placeholder')['to'](this,'length',_0x2fa54e=>t(_0x2fa54e?'Reply...':'Write\x20a\x20comment...')),_0x3df9e1['on']('submit',(_0x89e4eb,_0x5834c5)=>{this['fire']('addComment',_0x5834c5);}),_0x3df9e1['on']('cancel',()=>{this['focus']();}),_0x3df9e1['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x3df9e1['on']('cancel',_0x3bcf32=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3bcf32['stop']());}),this['on']('change:isActive',(_0x25c49f,_0x4298c8,_0xeb353d)=>{_0xeb353d||this['length']||_0x3df9e1['value']||this['fire']('removeCommentThread');}),_0x444b1a;}}
23
+ import{View as bt}from'ckeditor5/src/ui';import Rt from'./commentthreadinputview';import Tt from'./commentslistview';export default class It extends bt{constructor(_0x55f2de,_0x3ed642,_0x4b2aec,_0x1f0641){super(_0x55f2de),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x3ed642,this['_localUser']=_0x4b2aec,this['_config']=_0x1f0641,this['commentsListView']=new Tt(_0x55f2de,_0x3ed642,Object['assign']({'CommentView':this['_config']['CommentView']},_0x1f0641)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x373e54,_0x5c16a7)=>_0x373e54||!!_0x5c16a7);}['focus'](){this['element']['focus']();}['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const {t:t}=this['locale'],_0x51a550=new Rt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xcf2b09=_0x51a550['commentInputView'];return _0x51a550['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',_0xcf2b09,'value',(_0xdd8f8b,_0x58dd20,_0x14e9df)=>!!_0x14e9df||_0xdd8f8b&&!_0x58dd20),_0xcf2b09['bind']('placeholder')['to'](this,'length',_0xaf01c4=>t(_0xaf01c4?'Reply...':'Write\x20a\x20comment...')),_0xcf2b09['on']('submit',(_0x3676b2,_0x11a57a)=>{this['fire']('addComment',_0x11a57a);}),_0xcf2b09['on']('cancel',()=>{this['focus']();}),_0xcf2b09['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0xcf2b09['on']('cancel',_0x2c8fd7=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x2c8fd7['stop']());}),this['on']('change:isActive',(_0x148298,_0x164e27,_0x54d79c)=>{_0x54d79c||this['length']||_0xcf2b09['value']||this['fire']('removeCommentThread');}),_0x51a550;}}
@@ -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 _0x1a0c=['get','collapse','visibleView','content','remove','switchToEditMode','fire','updateComment','expand','editorConfig','isEditMode','_model','destroy','submit','switchToDisplayMode','set','_createCommentInputView','focus','bind','_config','_createCommentContentView','editorReady','isCollapsed','initialData','once','createCollection','locale','disabledSubmit','add','isReadOnly'];(function(_0xfb4c29,_0x1a0cb1){const _0x108120=function(_0xe4cd41){while(--_0xe4cd41){_0xfb4c29['push'](_0xfb4c29['shift']());}};_0x108120(++_0x1a0cb1);}(_0x1a0c,0xa6));const _0x1081=function(_0xfb4c29,_0x1a0cb1){_0xfb4c29=_0xfb4c29-0x0;let _0x108120=_0x1a0c[_0xfb4c29];return _0x108120;};import{View as _0x5f39f0}from'ckeditor5/src/ui';import _0x1bc6df from'./commentcontentview';import _0xcb562d from'./commentinputview';import _0x41bcd6 from'../../../utils/trim-html';export default class Vt extends _0x5f39f0{constructor(_0x3d91ac,_0x2ac27d,_0x462981){super(_0x3d91ac),this['_model']=_0x2ac27d,this[_0x1081('0x3')]=_0x462981,this['set'](_0x1081('0x18'),!0x1),this[_0x1081('0x1d')](_0x1081('0x6'),!0x0),this[_0x1081('0x10')]=this[_0x1081('0x9')](),this[_0x1081('0x10')]['add'](this[_0x1081('0x4')]());}[_0x1081('0x16')](){this['isCollapsed']=!0x1;}[_0x1081('0xf')](){this[_0x1081('0x18')]||(this[_0x1081('0x6')]=!0x0);}['focus'](){this['element'][_0x1081('0x1')]();}async[_0x1081('0x1a')](){await this[_0x1081('0x10')][_0x1081('0xe')](0x0)[_0x1081('0x1a')](),super[_0x1081('0x1a')]();}[_0x1081('0x13')](){this['isEditMode']||(this[_0x1081('0x18')]=!0x0,this[_0x1081('0x10')][_0x1081('0x12')](0x0)[_0x1081('0x1a')](),this[_0x1081('0x10')][_0x1081('0xc')](this[_0x1081('0x0')]()));}['switchToDisplayMode'](){this[_0x1081('0x18')]&&(this[_0x1081('0x18')]=!0x1,this[_0x1081('0x10')][_0x1081('0x12')](0x0)['destroy'](),this[_0x1081('0x10')][_0x1081('0xc')](this['_createCommentContentView']()));}[_0x1081('0x4')](){const _0x52dee8=new _0x1bc6df(this[_0x1081('0xa')]);return _0x52dee8[_0x1081('0x2')](_0x1081('0x11'))['to'](this[_0x1081('0x19')],'content',this,_0x1081('0x6'),(_0x39356b,_0xbcceae)=>_0xbcceae?_0x41bcd6(_0x39356b,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x39356b),_0x52dee8;}[_0x1081('0x0')](){this[_0x1081('0x3')]['editorConfig']||(this[_0x1081('0x3')]['editorConfig']={}),this[_0x1081('0x3')][_0x1081('0x17')][_0x1081('0x7')]=this[_0x1081('0x19')]['content'];const _0x2d8bf8=new _0xcb562d(this[_0x1081('0xa')],this['_config'][_0x1081('0x17')]);return _0x2d8bf8['value']=this[_0x1081('0x19')][_0x1081('0x11')],_0x2d8bf8[_0x1081('0x2')](_0x1081('0xb'))['to'](this[_0x1081('0x19')],_0x1081('0xd')),_0x2d8bf8['on'](_0x1081('0x1b'),(_0x441d15,_0x3e3b23)=>{this[_0x1081('0x14')](_0x1081('0x15'),this[_0x1081('0x19')]['id'],_0x3e3b23),this[_0x1081('0x1c')](),this[_0x1081('0x1')]();}),_0x2d8bf8['on']('cancel',()=>{this[_0x1081('0x1c')](),this[_0x1081('0x1')]();}),_0x2d8bf8[_0x1081('0x8')](_0x1081('0x5'),()=>{_0x2d8bf8[_0x1081('0x1')]();}),_0x2d8bf8;}}
23
+ const _0x49a2=['focus','set','isReadOnly','add','remove','editorConfig','_model','isCollapsed','disabledSubmit','once','submit','_createCommentInputView','isEditMode','switchToDisplayMode','destroy','content','locale','value','_config','visibleView','fire','maxCommentCharsWhenCollapsed','get','cancel','switchToEditMode'];(function(_0x18cd00,_0x49a2d7){const _0x15d093=function(_0x4dbe7b){while(--_0x4dbe7b){_0x18cd00['push'](_0x18cd00['shift']());}};_0x15d093(++_0x49a2d7);}(_0x49a2,0xcc));const _0x15d0=function(_0x18cd00,_0x49a2d7){_0x18cd00=_0x18cd00-0x0;let _0x15d093=_0x49a2[_0x18cd00];return _0x15d093;};import{View as _0x323ebd}from'ckeditor5/src/ui';import _0x194189 from'./commentcontentview';import _0x22459a from'./commentinputview';import _0x5909af from'../../../utils/trim-html';export default class Vt extends _0x323ebd{constructor(_0xf26880,_0x9814ae,_0x3b0ebf){super(_0xf26880),this[_0x15d0('0x2')]=_0x9814ae,this['_config']=_0x3b0ebf,this[_0x15d0('0x16')](_0x15d0('0x8'),!0x1),this[_0x15d0('0x16')](_0x15d0('0x3'),!0x0),this['visibleView']=this['createCollection'](),this[_0x15d0('0xf')][_0x15d0('0x18')](this['_createCommentContentView']());}['expand'](){this[_0x15d0('0x3')]=!0x1;}['collapse'](){this[_0x15d0('0x8')]||(this[_0x15d0('0x3')]=!0x0);}[_0x15d0('0x15')](){this['element'][_0x15d0('0x15')]();}async[_0x15d0('0xa')](){await this[_0x15d0('0xf')][_0x15d0('0x12')](0x0)['destroy'](),super['destroy']();}[_0x15d0('0x14')](){this[_0x15d0('0x8')]||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)[_0x15d0('0xa')](),this[_0x15d0('0xf')]['add'](this[_0x15d0('0x7')]()));}[_0x15d0('0x9')](){this['isEditMode']&&(this[_0x15d0('0x8')]=!0x1,this[_0x15d0('0xf')][_0x15d0('0x0')](0x0)[_0x15d0('0xa')](),this[_0x15d0('0xf')]['add'](this['_createCommentContentView']()));}['_createCommentContentView'](){const _0x224417=new _0x194189(this[_0x15d0('0xc')]);return _0x224417['bind'](_0x15d0('0xb'))['to'](this[_0x15d0('0x2')],'content',this,'isCollapsed',(_0x1a6047,_0x47705d)=>_0x47705d?_0x5909af(_0x1a6047,{'limit':this[_0x15d0('0xe')][_0x15d0('0x11')]}):_0x1a6047),_0x224417;}[_0x15d0('0x7')](){this[_0x15d0('0xe')][_0x15d0('0x1')]||(this['_config'][_0x15d0('0x1')]={}),this['_config'][_0x15d0('0x1')]['initialData']=this['_model']['content'];const _0x4ddaf9=new _0x22459a(this['locale'],this[_0x15d0('0xe')][_0x15d0('0x1')]);return _0x4ddaf9[_0x15d0('0xd')]=this[_0x15d0('0x2')]['content'],_0x4ddaf9['bind'](_0x15d0('0x4'))['to'](this[_0x15d0('0x2')],_0x15d0('0x17')),_0x4ddaf9['on'](_0x15d0('0x6'),(_0x1c6ee2,_0x1fee0a)=>{this[_0x15d0('0x10')]('updateComment',this[_0x15d0('0x2')]['id'],_0x1fee0a),this[_0x15d0('0x9')](),this[_0x15d0('0x15')]();}),_0x4ddaf9['on'](_0x15d0('0x13'),()=>{this[_0x15d0('0x9')](),this['focus']();}),_0x4ddaf9[_0x15d0('0x5')]('editorReady',()=>{_0x4ddaf9['focus']();}),_0x4ddaf9;}}
@@ -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{View as bt}from'ckeditor5/src/ui';export default class Nt extends bt{constructor(_0x214c3b){super(_0x214c3b);const {t:t}=_0x214c3b,_0x4d7194=this['bindTemplate'];this['set']('count'),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4d7194['to']('count',_0x2f7ccc=>t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x2f7ccc))}]});}}
23
+ import{View as bt}from'ckeditor5/src/ui';export default class Nt extends bt{constructor(_0x5d0056){super(_0x5d0056);const {t:t}=_0x5d0056,_0x15606f=this['bindTemplate'];this['set']('count'),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x15606f['to']('count',_0x54a251=>t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x54a251))}]});}}
@@ -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 _0x102f=['ck-annotation__content','render','element','innerHTML','ck-comment__content','change:content','div','set','content'];(function(_0x476924,_0x102f4d){var _0x4aac08=function(_0x5eaefd){while(--_0x5eaefd){_0x476924['push'](_0x476924['shift']());}};_0x4aac08(++_0x102f4d);}(_0x102f,0x190));var _0x4aac=function(_0x476924,_0x102f4d){_0x476924=_0x476924-0x0;var _0x4aac08=_0x102f[_0x476924];return _0x4aac08;};import{View as _0x2a3407}from'ckeditor5/src/ui';export default class Mt extends _0x2a3407{constructor(_0x4f0f48){super(_0x4f0f48),this[_0x4aac('0x3')](_0x4aac('0x4'),''),this['setTemplate']({'tag':_0x4aac('0x2'),'attributes':{'class':[_0x4aac('0x0'),_0x4aac('0x5')]}});}[_0x4aac('0x6')](){super[_0x4aac('0x6')](),this['on'](_0x4aac('0x1'),(_0x2aeae5,_0x17ff03,_0x41c307)=>{this['element'][_0x4aac('0x8')]=_0x41c307;}),this[_0x4aac('0x7')]['innerHTML']=this[_0x4aac('0x4')];}}
23
+ var _0x167f=['render','ck-annotation__content','element','setTemplate','ck-comment__content','content','div'];(function(_0x1022b5,_0x167f8b){var _0x3409f2=function(_0x2716c5){while(--_0x2716c5){_0x1022b5['push'](_0x1022b5['shift']());}};_0x3409f2(++_0x167f8b);}(_0x167f,0xa7));var _0x3409=function(_0x1022b5,_0x167f8b){_0x1022b5=_0x1022b5-0x0;var _0x3409f2=_0x167f[_0x1022b5];return _0x3409f2;};import{View as _0xe2d9bc}from'ckeditor5/src/ui';export default class Mt extends _0xe2d9bc{constructor(_0x421983){super(_0x421983),this['set'](_0x3409('0x6'),''),this[_0x3409('0x4')]({'tag':_0x3409('0x0'),'attributes':{'class':[_0x3409('0x5'),_0x3409('0x2')]}});}[_0x3409('0x1')](){super['render'](),this['on']('change:content',(_0x160991,_0x576bef,_0x1d775e)=>{this[_0x3409('0x3')]['innerHTML']=_0x1d775e;}),this[_0x3409('0x3')]['innerHTML']=this[_0x3409('0x6')];}}
@@ -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{View as bt,ViewCollection as St,FocusCycler as Gt,ButtonView as mt}from'ckeditor5/src/ui';import{FocusTracker as _0x12d02f,KeystrokeHandler as pt}from'ckeditor5/src/utils';import{icons as Yt}from'ckeditor5/src/core';import zt from'../commenteditor/commenteditor';export default class Et extends bt{constructor(_0xd07cc5,_0x2d15fe={}){super(_0xd07cc5);const {t:t}=_0xd07cc5;this['editor']=new zt(_0x2d15fe),this['keystrokes']=new pt(),this['focusTracker']=new _0x12d02f(),this['set']('value',_0x2d15fe['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',t('Reply...')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x6096c7,_0x2f487b)=>{this['cancelButtonView']['fire']('execute'),_0x2f487b();}),this['on']('submit',(_0x4dd7e4,_0x13455c)=>{_0x13455c['length']>0xfde8?(alert(t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},[_0x13455c['length'],0xfde8])),_0x4dd7e4['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x4244b8,element:_0xb808a8}=this;this['keystrokes']['listenTo'](_0xb808a8),this['focusTracker']['add'](_0xb808a8),this['_editorCreationPromise']=_0x4244b8['create']()['then'](()=>{_0xb808a8['insertBefore'](_0x4244b8['ui']['element'],_0xb808a8['firstChild']),_0x4244b8['model']['document']['on']('change',()=>this['value']=_0x4244b8['getData']()),_0x4244b8['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x4244b8),this['fire']('editorReady');});}['focus'](){this['editor']['focus']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['isRendered']&&(await this['_editorCreationPromise'],await this['editor']['destroy']()),await super['destroy']());}['_createSubmitButton'](){const _0x5e4379=new mt(this['locale']),{t:t}=this['locale'];return _0x5e4379['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x5e4379['label']=t('Submit'),_0x5e4379['icon']=Yt['check'],_0x5e4379['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x5e4379['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x4013ba,_0x33272c)=>!_0x33272c&&!!_0x4013ba['trim']()),_0x5e4379;}['_createCancelButton'](){const _0x59377c=new mt(this['locale']),{t:t}=this['locale'];return _0x59377c['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x59377c['label']=t('Cancel'),_0x59377c['icon']=Yt['cancel'],_0x59377c['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x59377c;}['_initializeFocusCycling'](_0x2144f0){const _0x33d4c8=this['focusTracker'],_0x2befd8=new St();[_0x2144f0['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x103d17=>{_0x2befd8['add'](_0x103d17),_0x33d4c8['add'](_0x103d17['element']);});const _0x3d3158=new Gt({'focusables':_0x2befd8,'focusTracker':_0x33d4c8});this['keystrokes']['set']('tab',(_0x18fc36,_0x48aa93)=>{_0x3d3158['focusNext'](),_0x48aa93();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x1f15f5,_0x4f6400)=>{_0x3d3158['focusPrevious'](),_0x4f6400();},{'priority':'low'});}}
23
+ import{View as bt,ViewCollection as St,FocusCycler as Gt,ButtonView as mt}from'ckeditor5/src/ui';import{FocusTracker as _0x12e664,KeystrokeHandler as pt}from'ckeditor5/src/utils';import{icons as Yt}from'ckeditor5/src/core';import zt from'../commenteditor/commenteditor';export default class Et extends bt{constructor(_0x3c56ac,_0x4aa112={}){super(_0x3c56ac);const {t:t}=_0x3c56ac;this['editor']=new zt(_0x4aa112),this['keystrokes']=new pt(),this['focusTracker']=new _0x12e664(),this['set']('value',_0x4aa112['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',t('Reply...')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x4a6bfe,_0x3ad865)=>{this['cancelButtonView']['fire']('execute'),_0x3ad865();}),this['on']('submit',(_0x10d305,_0x288d33)=>{_0x288d33['length']>0xfde8?(alert(t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},[_0x288d33['length'],0xfde8])),_0x10d305['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x1195bb,element:_0x5c648d}=this;this['keystrokes']['listenTo'](_0x5c648d),this['focusTracker']['add'](_0x5c648d),this['_editorCreationPromise']=_0x1195bb['create']()['then'](()=>{_0x5c648d['insertBefore'](_0x1195bb['ui']['element'],_0x5c648d['firstChild']),_0x1195bb['model']['document']['on']('change',()=>this['value']=_0x1195bb['getData']()),_0x1195bb['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x1195bb),this['fire']('editorReady');});}['focus'](){this['editor']['focus']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['isRendered']&&(await this['_editorCreationPromise'],await this['editor']['destroy']()),await super['destroy']());}['_createSubmitButton'](){const _0x4544ec=new mt(this['locale']),{t:t}=this['locale'];return _0x4544ec['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x4544ec['label']=t('Submit'),_0x4544ec['icon']=Yt['check'],_0x4544ec['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x4544ec['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0xf6b131,_0x51e3a9)=>!_0x51e3a9&&!!_0xf6b131['trim']()),_0x4544ec;}['_createCancelButton'](){const _0x2ca9a7=new mt(this['locale']),{t:t}=this['locale'];return _0x2ca9a7['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2ca9a7['label']=t('Cancel'),_0x2ca9a7['icon']=Yt['cancel'],_0x2ca9a7['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2ca9a7;}['_initializeFocusCycling'](_0x2fe984){const _0x57f86b=this['focusTracker'],_0x356343=new St();[_0x2fe984['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x57b799=>{_0x356343['add'](_0x57b799),_0x57f86b['add'](_0x57b799['element']);});const _0x45f615=new Gt({'focusables':_0x356343,'focusTracker':_0x57f86b});this['keystrokes']['set']('tab',(_0x187ff4,_0xeba78d)=>{_0x45f615['focusNext'](),_0xeba78d();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x2fe8a2,_0x3913ad)=>{_0x45f615['focusPrevious'](),_0x3913ad();},{'priority':'low'});}}
@@ -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 _0x3842=['refreshVisibleViews','_config','isEditMode','viewUid','render','change:hasDirtyComment','hasDirtyComment','remove','focus','comments','isActive','_model','length','_handleNewCommentModel','equal','destroy','change:isActive','CommentView','createCollection','editorConfig','_rearrangeCollapse','change:isEditMode','_rearrangeExpand','_updateHasDirtyComment','listenTo','removeComment','commentViews','_collapsedCommentsView','collapse','element','add','delegate','_handleRemoveCommentModel','set','setTemplate','get','from','visibleViews','weight','maxThreadTotalWeight','commentUpdated','ck-thread__comments','_shouldCollapse','stopListening','count','maxCommentsWhenCollapsed'];(function(_0x589cee,_0x3842d1){const _0x351fb6=function(_0x281b27){while(--_0x281b27){_0x589cee['push'](_0x589cee['shift']());}};_0x351fb6(++_0x3842d1);}(_0x3842,0x1d8));const _0x351f=function(_0x589cee,_0x3842d1){_0x589cee=_0x589cee-0x0;let _0x351fb6=_0x3842[_0x589cee];return _0x351fb6;};import{View as _0x4daa22}from'ckeditor5/src/ui';import{diff as _0x481081,Collection as _0x1a408b}from'ckeditor5/src/utils';import _0x43f9f1 from'./collapsedcommentsview';export default class Tt extends _0x4daa22{constructor(_0xe303f4,_0x883c42,_0x3d1494){super(_0xe303f4),this[_0x351f('0x15')](_0x351f('0x28'),!0x1),this['set'](_0x351f('0x0'),_0x883c42[_0x351f('0x2b')][_0x351f('0x0')]),this[_0x351f('0x15')](_0x351f('0x2c'),!0x1),this['_model']=_0x883c42,this['_config']=_0x3d1494,this[_0x351f('0xe')]=this[_0x351f('0x6')](),this[_0x351f('0x19')]=this[_0x351f('0x6')](),this[_0x351f('0xf')]=new _0x43f9f1(_0xe303f4),this[_0x351f('0xf')]['bind']('count')['to'](this,_0x351f('0x0'),_0x1b299b=>_0x1b299b-this['_config'][_0x351f('0x21')]);for(const _0x3e4abf of _0x883c42[_0x351f('0x2b')])this[_0x351f('0x1')](_0x3e4abf);this[_0x351f('0xc')](_0x883c42['comments'],_0x351f('0x12'),(_0x8aa6ea,_0x4588b6)=>{this[_0x351f('0x0')]++,this['_handleNewCommentModel'](_0x4588b6),this[_0x351f('0x22')]();}),this[_0x351f('0xc')](_0x883c42[_0x351f('0x2b')],_0x351f('0x29'),(_0x58f83c,_0x4998cc)=>{this[_0x351f('0x0')]--,this[_0x351f('0x14')](_0x4998cc),this[_0x351f('0x22')]();}),this[_0x351f('0xc')](_0x883c42,_0x351f('0x1c'),()=>this['refreshVisibleViews']()),this['on'](_0x351f('0x4'),()=>this[_0x351f('0x22')]()),this['on'](_0x351f('0x27'),()=>this[_0x351f('0x22')]()),this[_0x351f('0x16')]({'tag':'ul','attributes':{'class':[_0x351f('0x1d')]},'children':this[_0x351f('0x19')]});}get[_0x351f('0x1e')](){return this[_0x351f('0x2d')][_0x351f('0x1a')]>this['_config'][_0x351f('0x1b')]&&!this[_0x351f('0x2c')]&&!this['hasDirtyComment'];}[_0x351f('0x26')](){super[_0x351f('0x26')](),this[_0x351f('0x22')]();}['focus'](){this[_0x351f('0x11')][_0x351f('0x2a')]();}[_0x351f('0x3')](){this[_0x351f('0xf')][_0x351f('0x3')]();for(const _0x5dba39 of this['commentViews'])_0x5dba39[_0x351f('0x3')]();super[_0x351f('0x3')]();}[_0x351f('0x22')](){this[_0x351f('0x1e')]?this[_0x351f('0x8')]():this[_0x351f('0xa')]();}[_0x351f('0x1')](_0x9c44da){const _0x197303=new this[(_0x351f('0x23'))][(_0x351f('0x5'))](this['locale'],_0x9c44da,{'maxCommentCharsWhenCollapsed':this[_0x351f('0x23')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x351f('0x23')]['formatDateTime'],'editorConfig':this['_config'][_0x351f('0x7')]});_0x197303[_0x351f('0x25')]=_0x9c44da['id'],_0x197303[_0x351f('0x13')](_0x351f('0xd'))['to'](this),_0x197303['delegate']('updateComment')['to'](this),this['listenTo'](_0x197303,_0x351f('0x9'),()=>this[_0x351f('0xb')]()),this['commentViews']['add'](_0x197303);}[_0x351f('0x14')](_0x56e00a){const _0x5e0c9b=this[_0x351f('0xe')][_0x351f('0x29')](_0x56e00a['id']);this[_0x351f('0x1f')](_0x5e0c9b),_0x5e0c9b['isEditMode']&&this['_updateHasDirtyComment'](),_0x5e0c9b[_0x351f('0x3')]();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array[_0x351f('0x18')](this[_0x351f('0xe')])['some'](_0x1901ca=>_0x1901ca[_0x351f('0x24')]);}[_0x351f('0x8')](){const _0x5a54fd=function(_0x3f89c4){const _0x23e3fc=new _0x1a408b();for(const _0x3b2007 of _0x3f89c4)_0x23e3fc[_0x351f('0x12')](_0x3b2007);return _0x23e3fc;}(this[_0x351f('0xe')]),_0x1d0bc2=this['_collapsedCommentsView'][_0x351f('0x20')];for(let _0x44d7c4=0x1;_0x44d7c4<=_0x1d0bc2;_0x44d7c4++)_0x5a54fd[_0x351f('0x29')](0x1);for(const _0x430954 of _0x5a54fd)_0x430954[_0x351f('0x10')]();_0x1d0bc2>0x0&&_0x5a54fd[_0x351f('0x12')](this[_0x351f('0xf')],0x1),Ut(_0x481081(Array['from'](this[_0x351f('0x19')]),Array[_0x351f('0x18')](_0x5a54fd)),this['visibleViews'],_0x5a54fd);}['_rearrangeExpand'](){Ut(_0x481081(Array[_0x351f('0x18')](this[_0x351f('0x19')]),Array[_0x351f('0x18')](this[_0x351f('0xe')])),this[_0x351f('0x19')],this[_0x351f('0xe')]);for(const _0x578c09 of this[_0x351f('0x19')])_0x578c09['expand']();}}function Ut(_0x390f5a,_0x2902c6,_0x3daa69){let _0x5bb21e=0x0;for(const _0x3149b8 of _0x390f5a)switch(_0x3149b8){case'insert':_0x2902c6['add'](_0x3daa69[_0x351f('0x17')](_0x5bb21e),_0x5bb21e),_0x5bb21e++;break;case'delete':_0x2902c6[_0x351f('0x29')](_0x5bb21e);break;case _0x351f('0x2'):_0x5bb21e++;}}
23
+ const _0x3f19=['destroy','refreshVisibleViews','hasDirtyComment','_rearrangeExpand','_updateHasDirtyComment','ck-thread__comments','remove','insert','_model','visibleViews','createCollection','delegate','from','element','isEditMode','commentViews','comments','count','CommentView','editorConfig','_config','_collapsedCommentsView','set','isActive','_shouldCollapse','some','maxCommentsWhenCollapsed','formatDateTime','expand','commentUpdated','_handleNewCommentModel','weight','maxCommentCharsWhenCollapsed','listenTo','_rearrangeCollapse','_handleRemoveCommentModel','equal','viewUid','length','focus','add','delete','render','updateComment'];(function(_0x29a391,_0x3f19d3){const _0x114998=function(_0x2e327a){while(--_0x2e327a){_0x29a391['push'](_0x29a391['shift']());}};_0x114998(++_0x3f19d3);}(_0x3f19,0x113));const _0x1149=function(_0x29a391,_0x3f19d3){_0x29a391=_0x29a391-0x0;let _0x114998=_0x3f19[_0x29a391];return _0x114998;};import{View as _0x1d559b}from'ckeditor5/src/ui';import{diff as _0x485b0a,Collection as _0x531cb6}from'ckeditor5/src/utils';import _0x143800 from'./collapsedcommentsview';export default class Tt extends _0x1d559b{constructor(_0x283575,_0x1727a5,_0x5d9572){super(_0x283575),this[_0x1149('0xb')]('hasDirtyComment',!0x1),this[_0x1149('0xb')](_0x1149('0x1b'),_0x1727a5[_0x1149('0x5')][_0x1149('0x1b')]),this[_0x1149('0xb')](_0x1149('0xc'),!0x1),this['_model']=_0x1727a5,this['_config']=_0x5d9572,this['commentViews']=this[_0x1149('0x2b')](),this[_0x1149('0x2a')]=this['createCollection'](),this[_0x1149('0xa')]=new _0x143800(_0x283575),this['_collapsedCommentsView']['bind'](_0x1149('0x6'))['to'](this,_0x1149('0x1b'),_0x3aec51=>_0x3aec51-this[_0x1149('0x9')][_0x1149('0xf')]);for(const _0x4796ba of _0x1727a5[_0x1149('0x5')])this[_0x1149('0x13')](_0x4796ba);this[_0x1149('0x16')](_0x1727a5[_0x1149('0x5')],_0x1149('0x1d'),(_0x2eb5b6,_0x30933f)=>{this[_0x1149('0x1b')]++,this[_0x1149('0x13')](_0x30933f),this[_0x1149('0x22')]();}),this[_0x1149('0x16')](_0x1727a5[_0x1149('0x5')],_0x1149('0x27'),(_0x39c2dc,_0x30c6ae)=>{this[_0x1149('0x1b')]--,this[_0x1149('0x18')](_0x30c6ae),this[_0x1149('0x22')]();}),this[_0x1149('0x16')](_0x1727a5,_0x1149('0x12'),()=>this['refreshVisibleViews']()),this['on']('change:isActive',()=>this[_0x1149('0x22')]()),this['on']('change:hasDirtyComment',()=>this[_0x1149('0x22')]()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x1149('0x26')]},'children':this[_0x1149('0x2a')]});}get[_0x1149('0xd')](){return this[_0x1149('0x29')][_0x1149('0x14')]>this[_0x1149('0x9')]['maxThreadTotalWeight']&&!this[_0x1149('0xc')]&&!this[_0x1149('0x23')];}[_0x1149('0x1f')](){super[_0x1149('0x1f')](),this[_0x1149('0x22')]();}[_0x1149('0x1c')](){this[_0x1149('0x2')][_0x1149('0x1c')]();}[_0x1149('0x21')](){this['_collapsedCommentsView'][_0x1149('0x21')]();for(const _0x7390fb of this[_0x1149('0x4')])_0x7390fb['destroy']();super[_0x1149('0x21')]();}[_0x1149('0x22')](){this[_0x1149('0xd')]?this[_0x1149('0x17')]():this['_rearrangeExpand']();}[_0x1149('0x13')](_0x37f6e4){const _0x2d8254=new this[(_0x1149('0x9'))][(_0x1149('0x7'))](this['locale'],_0x37f6e4,{'maxCommentCharsWhenCollapsed':this[_0x1149('0x9')][_0x1149('0x15')],'formatDateTime':this[_0x1149('0x9')][_0x1149('0x10')],'editorConfig':this[_0x1149('0x9')][_0x1149('0x8')]});_0x2d8254[_0x1149('0x1a')]=_0x37f6e4['id'],_0x2d8254[_0x1149('0x0')]('removeComment')['to'](this),_0x2d8254[_0x1149('0x0')](_0x1149('0x20'))['to'](this),this[_0x1149('0x16')](_0x2d8254,'change:isEditMode',()=>this[_0x1149('0x25')]()),this['commentViews'][_0x1149('0x1d')](_0x2d8254);}[_0x1149('0x18')](_0x25d2df){const _0x2ca23c=this[_0x1149('0x4')][_0x1149('0x27')](_0x25d2df['id']);this['stopListening'](_0x2ca23c),_0x2ca23c[_0x1149('0x3')]&&this[_0x1149('0x25')](),_0x2ca23c[_0x1149('0x21')]();}[_0x1149('0x25')](){this[_0x1149('0x23')]=Array[_0x1149('0x1')](this[_0x1149('0x4')])[_0x1149('0xe')](_0x4c7fab=>_0x4c7fab['isEditMode']);}[_0x1149('0x17')](){const _0x2dfcbc=function(_0x5a2975){const _0x1e14aa=new _0x531cb6();for(const _0x3a6b9a of _0x5a2975)_0x1e14aa[_0x1149('0x1d')](_0x3a6b9a);return _0x1e14aa;}(this[_0x1149('0x4')]),_0x5b6c6f=this[_0x1149('0xa')][_0x1149('0x6')];for(let _0x405df7=0x1;_0x405df7<=_0x5b6c6f;_0x405df7++)_0x2dfcbc[_0x1149('0x27')](0x1);for(const _0x482ed5 of _0x2dfcbc)_0x482ed5['collapse']();_0x5b6c6f>0x0&&_0x2dfcbc['add'](this[_0x1149('0xa')],0x1),Ut(_0x485b0a(Array['from'](this[_0x1149('0x2a')]),Array[_0x1149('0x1')](_0x2dfcbc)),this[_0x1149('0x2a')],_0x2dfcbc);}[_0x1149('0x24')](){Ut(_0x485b0a(Array[_0x1149('0x1')](this[_0x1149('0x2a')]),Array[_0x1149('0x1')](this['commentViews'])),this[_0x1149('0x2a')],this[_0x1149('0x4')]);for(const _0x41d41b of this[_0x1149('0x2a')])_0x41d41b[_0x1149('0x11')]();}}function Ut(_0x3923f1,_0x2ef5cc,_0xcf1225){let _0x346e05=0x0;for(const _0x4372c1 of _0x3923f1)switch(_0x4372c1){case _0x1149('0x28'):_0x2ef5cc[_0x1149('0x1d')](_0xcf1225['get'](_0x346e05),_0x346e05),_0x346e05++;break;case _0x1149('0x1e'):_0x2ef5cc[_0x1149('0x27')](_0x346e05);break;case _0x1149('0x19'):_0x346e05++;}}
@@ -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 _0x1552=['commentInputView','destroy','setTemplate','userView','extendTemplate','ck-thread__user','focusTracker','value','showButtons','ck-comment__input-container--active','then','ck-thread__input','showInput'];(function(_0x576f77,_0x15527f){var _0x228bbe=function(_0x24efb6){while(--_0x24efb6){_0x576f77['push'](_0x576f77['shift']());}};_0x228bbe(++_0x15527f);}(_0x1552,0x7a));var _0x228b=function(_0x576f77,_0x15527f){_0x576f77=_0x576f77-0x0;var _0x228bbe=_0x1552[_0x576f77];return _0x228bbe;};import{View as _0x54bf3f}from'ckeditor5/src/ui';import _0x415a2a from'./commentinputview';import _0x3d9040 from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';export default class Rt extends _0x54bf3f{constructor(_0x45349d,_0x51bd9c,_0xe44114){super(_0x45349d),this[_0x228b('0x8')]=new _0x415a2a(_0x45349d,_0xe44114),this['commentInputView']['bind'](_0x228b('0x3'))['to'](this[_0x228b('0x8')][_0x228b('0x1')],'isFocused',this['commentInputView'],_0x228b('0x2'),(_0x1b300a,_0x37988b)=>_0x1b300a||!!_0x37988b),this['set'](_0x228b('0x7'),!0x1),this[_0x228b('0xb')]=new _0x3d9040(_0x45349d,_0x51bd9c),this[_0x228b('0xb')][_0x228b('0xc')]({'attributes':{'class':_0x228b('0x0')}}),this[_0x228b('0x8')][_0x228b('0xc')]({'attributes':{'class':_0x228b('0x6')}}),this[_0x228b('0xa')]({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput',_0x228b('0x4'))]},'children':[this[_0x228b('0xb')],this[_0x228b('0x8')]]});}['destroy'](){return this[_0x228b('0x8')][_0x228b('0x9')]()[_0x228b('0x5')](()=>super['destroy']());}}
23
+ var _0x2d72=['bind','ck-thread__input','then','extendTemplate','showButtons','bindTemplate','setTemplate','destroy','focusTracker','userView','showInput','commentInputView','ck-comment__input-container','ck-thread__user','isFocused'];(function(_0x29d91d,_0x2d7288){var _0x1c17ec=function(_0x1f5f27){while(--_0x1f5f27){_0x29d91d['push'](_0x29d91d['shift']());}};_0x1c17ec(++_0x2d7288);}(_0x2d72,0x113));var _0x1c17=function(_0x29d91d,_0x2d7288){_0x29d91d=_0x29d91d-0x0;var _0x1c17ec=_0x2d72[_0x29d91d];return _0x1c17ec;};import{View as _0x34ab32}from'ckeditor5/src/ui';import _0x1ba69a from'./commentinputview';import _0x3c5abe from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';export default class Rt extends _0x34ab32{constructor(_0xe5c80a,_0x52ec41,_0x532375){super(_0xe5c80a),this[_0x1c17('0x6')]=new _0x1ba69a(_0xe5c80a,_0x532375),this[_0x1c17('0x6')][_0x1c17('0xa')](_0x1c17('0xe'))['to'](this['commentInputView'][_0x1c17('0x3')],_0x1c17('0x9'),this['commentInputView'],'value',(_0x430e4e,_0x44a93b)=>_0x430e4e||!!_0x44a93b),this['set'](_0x1c17('0x5'),!0x1),this[_0x1c17('0x4')]=new _0x3c5abe(_0xe5c80a,_0x52ec41),this[_0x1c17('0x4')][_0x1c17('0xd')]({'attributes':{'class':_0x1c17('0x8')}}),this[_0x1c17('0x6')][_0x1c17('0xd')]({'attributes':{'class':_0x1c17('0xb')}}),this[_0x1c17('0x1')]({'tag':'div','attributes':{'class':[_0x1c17('0x7'),this[_0x1c17('0x0')]['if']('showInput','ck-comment__input-container--active')]},'children':[this[_0x1c17('0x4')],this['commentInputView']]});}['destroy'](){return this[_0x1c17('0x6')]['destroy']()[_0x1c17('0xc')](()=>super[_0x1c17('0x2')]());}}
@@ -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 It from'./basecommentthreadview';import{mix as _0x3cca33}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class et extends It{constructor(_0x171c8,_0xf9e33f,_0x390f67,_0x56a357){super(_0x171c8,_0xf9e33f,_0x390f67,_0x56a357),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x171c8,this['setTemplate'](this['_getTemplate']()),this['on']('change:isActive',(_0x2d2b88,_0x8de753,_0x39eca7)=>{_0x39eca7||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x3b09d0,_0x1a35d2,_0x11645e)=>{_0x11645e&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x5e5bd3=>{this['_bindFirstCommentView'](),_0x5e5bd3['off']();});}['_getTemplate'](){const _0x546b3a=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x546b3a['if']('isActive','ck-thread--active'),_0x546b3a['if']('isConfirm','ck-thread--remove-confirmation'),_0x546b3a['to']('actionIndicator',_0x550037=>_0x550037?'ck-thread--'+_0x550037:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':[this['commentsListView'],this['commentThreadInputView']]}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x4d6437 of this['commentsListView']['commentViews'])_0x4d6437['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0xeba6e7=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0xeba6e7,'actionIndicator',_0x4ec512=>'remove'===_0x4ec512?'remove':null),_0xeba6e7['placeholder']=t('Write\x20a\x20comment...'),_0xeba6e7['removeButton']['on']('execute',_0x18eb6c=>{_0x18eb6c['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x3cca33(et,Wt);
23
+ import It from'./basecommentthreadview';import{mix as _0x246230}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class et extends It{constructor(_0x3abf28,_0x50137,_0x5b7664,_0x503741){super(_0x3abf28,_0x50137,_0x5b7664,_0x503741),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x3abf28,this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x37dadc,_0x28e99b,_0x51fe94)=>{_0x51fe94||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4d5950,_0x4cf501,_0x111431)=>{_0x111431&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x3e3e14=>{this['_bindFirstCommentView'](),_0x3e3e14['off']();});}['getTemplate'](){const _0x3ad0f1=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x3ad0f1['if']('isActive','ck-thread--active'),_0x3ad0f1['if']('isConfirm','ck-thread--remove-confirmation'),_0x3ad0f1['to']('actionIndicator',_0x4e338c=>_0x4e338c?'ck-thread--'+_0x4e338c:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':[this['commentsListView'],this['commentThreadInputView']]}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x22c15d of this['commentsListView']['commentViews'])_0x22c15d['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x37da15=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x37da15,'actionIndicator',_0x18de38=>'remove'===_0x18de38?'remove':null),_0x37da15['placeholder']=t('Write\x20a\x20comment...'),_0x37da15['removeButton']['on']('execute',_0x32d7e2=>{_0x32d7e2['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x246230(et,Wt);
@@ -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{mix as _0x14e270}from'ckeditor5/src/utils';import{ButtonView as mt}from'ckeditor5/src/ui';import Vt from'./basecommentview';import Jt from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import{icons as Yt}from'ckeditor5/src/core';import Kt from'../../../../theme/icons/remove-comment.svg';import Wt from'./confirmmixin';export default class nt extends Vt{constructor(_0x55fc0b,_0x572819,_0x33f2c8){super(_0x55fc0b,_0x572819,_0x33f2c8);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x572819),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new Jt(_0x55fc0b,_0x572819['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x572819,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['_getTemplate']());}['_getTemplate'](){const _0x2f3533=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2f3533['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x2f3533['if']('isEditMode','ck-comment--edit'),_0x2f3533['to']('actionIndicator',_0x1f75ea=>_0x1f75ea?'ck-comment--'+_0x1f75ea:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x2f3533['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2f3533['to']('createdAt',_0x34c169=>this['_config']['formatDateTime'](_0x34c169))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x2f3533['if']('isEditMode','ck-comment__actions--hidden'),_0x2f3533['if']('isEditMode','ck-annotation__actions--hidden')]},'children':[this['editButton'],this['removeButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}]}]}]};}['_createEditButton'](){const {t:t}=this['locale'],_0x438f24=new mt(this['locale']);return _0x438f24['label']=t('Edit'),_0x438f24['icon']=Yt['pencil'],_0x438f24['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x438f24['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xa7d2a2=>!_0xa7d2a2),_0x438f24['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x438f24['on']('execute',()=>this['switchToEditMode']()),_0x438f24;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x59204a=new mt(this['locale']);return _0x59204a['label']=t('Remove'),_0x59204a['icon']=Kt,_0x59204a['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x59204a['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2cf8eb=>!_0x2cf8eb),_0x59204a['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x59204a['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x59204a;}['_attachActions'](_0x536ad5,_0x5e6f7e){this['listenTo'](_0x536ad5,'mouseenter',()=>this['actionIndicator']=_0x5e6f7e),this['listenTo'](_0x536ad5,'focus',()=>this['actionIndicator']=_0x5e6f7e),this['listenTo'](_0x536ad5,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x536ad5,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0x50b59b=super['_createCommentInputView']();return _0x50b59b['bind']('placeholder')['to'](this),_0x50b59b;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x14e270(nt,Wt);
23
+ import{mix as _0x1a659b}from'ckeditor5/src/utils';import{ButtonView as mt}from'ckeditor5/src/ui';import Vt from'./basecommentview';import Jt from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import{icons as Yt}from'ckeditor5/src/core';import Kt from'../../../../theme/icons/remove-comment.svg';import Wt from'./confirmmixin';export default class nt extends Vt{constructor(_0x4ac9a3,_0x3ed53d,_0x2b97da){super(_0x4ac9a3,_0x3ed53d,_0x2b97da);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x3ed53d),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new Jt(_0x4ac9a3,_0x3ed53d['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x3ed53d,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x49a9a1=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x49a9a1['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x49a9a1['if']('isEditMode','ck-comment--edit'),_0x49a9a1['to']('actionIndicator',_0x1a435c=>_0x1a435c?'ck-comment--'+_0x1a435c:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x49a9a1['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x49a9a1['to']('createdAt',_0x4a3a0a=>this['_config']['formatDateTime'](_0x4a3a0a))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x49a9a1['if']('isEditMode','ck-comment__actions--hidden'),_0x49a9a1['if']('isEditMode','ck-annotation__actions--hidden')]},'children':[this['editButton'],this['removeButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}]}]}]};}['_createEditButton'](){const {t:t}=this['locale'],_0x2dd167=new mt(this['locale']);return _0x2dd167['label']=t('Edit'),_0x2dd167['icon']=Yt['pencil'],_0x2dd167['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2dd167['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x233b22=>!_0x233b22),_0x2dd167['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2dd167['on']('execute',()=>this['switchToEditMode']()),_0x2dd167;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x3ab081=new mt(this['locale']);return _0x3ab081['label']=t('Remove'),_0x3ab081['icon']=Kt,_0x3ab081['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x3ab081['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4424be=>!_0x4424be),_0x3ab081['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x3ab081['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x3ab081;}['_attachActions'](_0x33efe1,_0x3d9ccc){this['listenTo'](_0x33efe1,'mouseenter',()=>this['actionIndicator']=_0x3d9ccc),this['listenTo'](_0x33efe1,'focus',()=>this['actionIndicator']=_0x3d9ccc),this['listenTo'](_0x33efe1,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x33efe1,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0xe45473=super['_createCommentInputView']();return _0xe45473['bind']('placeholder')['to'](this),_0xe45473;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x1a659b(nt,Wt);
@@ -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 _0x528a=['confirmView','set','locale','element','message','once','cancel','submit','registerChild','fire','remove','isConfirm','appendChild'];(function(_0x59bdea,_0x528ae4){var _0x5cd7a9=function(_0x2f573e){while(--_0x2f573e){_0x59bdea['push'](_0x59bdea['shift']());}};_0x5cd7a9(++_0x528ae4);}(_0x528a,0x1dd));var _0x5cd7=function(_0x59bdea,_0x528ae4){_0x59bdea=_0x59bdea-0x0;var _0x5cd7a9=_0x528a[_0x59bdea];return _0x5cd7a9;};import _0x5c4c7c from'./confirmview';export default{'showConfirm'(_0x1839bb,_0x59f9dc){return this[_0x5cd7('0x4')]=new _0x5c4c7c(this[_0x5cd7('0x6')]),this['confirmView']['render'](),this[_0x5cd7('0x4')][_0x5cd7('0x8')]=_0x1839bb,this[_0x5cd7('0x4')][_0x5cd7('0x9')](_0x5cd7('0xa'),()=>{this['_removeConfirm']();}),this[_0x5cd7('0x4')][_0x5cd7('0x9')](_0x5cd7('0xb'),()=>{this['_removeConfirm']();}),_0x59f9dc[_0x5cd7('0x3')](this['confirmView'][_0x5cd7('0x7')]),this[_0x5cd7('0xc')](this[_0x5cd7('0x4')]),this[_0x5cd7('0x5')](_0x5cd7('0x2'),!0x0),new Promise(_0x47b874=>this[_0x5cd7('0x4')]['on'](_0x5cd7('0xb'),_0x47b874));},'cancelConfirm'(){this[_0x5cd7('0x2')]&&this[_0x5cd7('0x4')][_0x5cd7('0x0')](_0x5cd7('0xa'));},'_removeConfirm'(){this[_0x5cd7('0x4')]['element'][_0x5cd7('0x1')](),this['deregisterChild'](this[_0x5cd7('0x4')]),this[_0x5cd7('0x2')]=!0x1,this[_0x5cd7('0x4')]['destroy'](),delete this[_0x5cd7('0x4')];}};
23
+ var _0x5bb6=['destroy','set','once','element','cancel','deregisterChild','appendChild','locale','isConfirm','submit','confirmView','render','message','_removeConfirm','registerChild','fire'];(function(_0x5e7e7f,_0x5bb6be){var _0x145478=function(_0x34b9cd){while(--_0x34b9cd){_0x5e7e7f['push'](_0x5e7e7f['shift']());}};_0x145478(++_0x5bb6be);}(_0x5bb6,0x1f1));var _0x1454=function(_0x5e7e7f,_0x5bb6be){_0x5e7e7f=_0x5e7e7f-0x0;var _0x145478=_0x5bb6[_0x5e7e7f];return _0x145478;};import _0x3c6497 from'./confirmview';export default{'showConfirm'(_0xb94a4c,_0xb250ff){return this[_0x1454('0x9')]=new _0x3c6497(this[_0x1454('0x6')]),this['confirmView'][_0x1454('0xa')](),this['confirmView'][_0x1454('0xb')]=_0xb94a4c,this[_0x1454('0x9')][_0x1454('0x1')](_0x1454('0x3'),()=>{this[_0x1454('0xc')]();}),this[_0x1454('0x9')][_0x1454('0x1')](_0x1454('0x8'),()=>{this['_removeConfirm']();}),_0xb250ff[_0x1454('0x5')](this[_0x1454('0x9')]['element']),this[_0x1454('0xd')](this['confirmView']),this[_0x1454('0x0')](_0x1454('0x7'),!0x0),new Promise(_0x336210=>this[_0x1454('0x9')]['on'](_0x1454('0x8'),_0x336210));},'cancelConfirm'(){this[_0x1454('0x7')]&&this['confirmView'][_0x1454('0xe')](_0x1454('0x3'));},'_removeConfirm'(){this[_0x1454('0x9')][_0x1454('0x2')]['remove'](),this[_0x1454('0x4')](this[_0x1454('0x9')]),this['isConfirm']=!0x1,this[_0x1454('0x9')][_0x1454('0xf')](),delete this[_0x1454('0x9')];}};
@@ -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{View as bt,ButtonView as mt}from'ckeditor5/src/ui';import{icons as Yt}from'ckeditor5/src/core';export default class ii extends bt{constructor(_0x1338c5){super(_0x1338c5);const {t:t}=_0x1338c5,_0x579023=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x1338c5,t('Yes'),Yt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x1338c5,t('No'),Yt['cancel'],'cancel'),this['set']('message',t('Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x579023['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x3b4798,_0x1342f7,_0x28fbfe,_0x61b655){const _0x3ae0a4=new mt(_0x3b4798);return _0x3ae0a4['label']=_0x1342f7,_0x3ae0a4['icon']=_0x28fbfe,_0x3ae0a4['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x61b655}}),_0x3ae0a4['on']('execute',()=>this['fire'](_0x61b655)),_0x3ae0a4;}}
23
+ import{View as bt,ButtonView as mt}from'ckeditor5/src/ui';import{icons as Yt}from'ckeditor5/src/core';export default class ii extends bt{constructor(_0x3ec896){super(_0x3ec896);const {t:t}=_0x3ec896,_0x8213cc=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x3ec896,t('Yes'),Yt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x3ec896,t('No'),Yt['cancel'],'cancel'),this['set']('message',t('Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x8213cc['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x3dc72a,_0x5c34b0,_0x2da2ec,_0xb4f420){const _0x6a9146=new mt(_0x3dc72a);return _0x6a9146['label']=_0x5c34b0,_0x6a9146['icon']=_0x2da2ec,_0x6a9146['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0xb4f420}}),_0x6a9146['on']('execute',()=>this['fire'](_0xb4f420)),_0x6a9146;}}
package/src/comments.js CHANGED
@@ -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 _0x200f=['pluginName','Comments','requires'];(function(_0x2a91e7,_0x200fdf){var _0x36a413=function(_0x9af2a2){while(--_0x9af2a2){_0x2a91e7['push'](_0x2a91e7['shift']());}};_0x36a413(++_0x200fdf);}(_0x200f,0x116));var _0x36a4=function(_0x2a91e7,_0x200fdf){_0x2a91e7=_0x2a91e7-0x0;var _0x36a413=_0x200f[_0x2a91e7];return _0x36a413;};import{Plugin as _0x2b00e0}from'ckeditor5/src/core';import _0x5a13dc from'./comments/commentsrepository';import _0x27a8b4 from'./comments/commentsediting';import _0x5cce2d from'./comments/commentsui';import _0x4f5afb from'./commentsonly';import _0x5bcd1a from'./annotations/widesidebar';import _0x2cfe52 from'./annotations/narrowsidebar';import _0x36730a from'./annotations/inlineannotations';export default class c extends _0x2b00e0{static get[_0x36a4('0x0')](){return[_0x5a13dc,_0x27a8b4,_0x5cce2d,_0x4f5afb,_0x5bcd1a,_0x2cfe52,_0x36730a];}static get[_0x36a4('0x1')](){return _0x36a4('0x2');}}
23
+ var _0x20ae=['Comments','pluginName'];(function(_0x411ad8,_0x20aee6){var _0x4506d7=function(_0x36fc05){while(--_0x36fc05){_0x411ad8['push'](_0x411ad8['shift']());}};_0x4506d7(++_0x20aee6);}(_0x20ae,0x75));var _0x4506=function(_0x411ad8,_0x20aee6){_0x411ad8=_0x411ad8-0x0;var _0x4506d7=_0x20ae[_0x411ad8];return _0x4506d7;};import{Plugin as _0x3189f8}from'ckeditor5/src/core';import _0x5ea630 from'./comments/commentsrepository';import _0x269700 from'./comments/commentsediting';import _0x2c7a03 from'./comments/commentsui';import _0x1f475e from'./commentsonly';import _0x5e718c from'./annotations/widesidebar';import _0x491040 from'./annotations/narrowsidebar';import _0x5b88b5 from'./annotations/inlineannotations';export default class c extends _0x3189f8{static get['requires'](){return[_0x5ea630,_0x269700,_0x2c7a03,_0x1f475e,_0x5e718c,_0x491040,_0x5b88b5];}static get[_0x4506('0x0')](){return _0x4506('0x1');}}
@@ -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 _0x197c=['commentsOnlyMode','listenTo','config','has','stop','change:isEnabled','clearForceDisabled','delete','DragDrop','set','get','highest','_disableCommentsOnlyMode','isEnabled','editor','requires','commands','selectAll','forceDisabled','editing','_enableCommentsOnlyMode','plugins','stopListening','pluginName','cut','document','_allowedCommands','clipboardInput','view','afterInit'];(function(_0xe282a0,_0x197c72){const _0x203908=function(_0x3661cc){while(--_0x3661cc){_0xe282a0['push'](_0xe282a0['shift']());}};_0x203908(++_0x197c72);}(_0x197c,0x9f));const _0x2039=function(_0xe282a0,_0x197c72){_0xe282a0=_0xe282a0-0x0;let _0x203908=_0x197c[_0xe282a0];return _0x203908;};import{Plugin as _0x4197e1}from'ckeditor5/src/core';import _0x14262a from'./comments/commentsediting';export default class e extends _0x4197e1{static get[_0x2039('0xe')](){return'CommentsOnly';}static get[_0x2039('0x6')](){return[_0x14262a];}constructor(_0x9ae62d){super(_0x9ae62d),this[_0x2039('0x0')]('isEnabled',null),this['on'](_0x2039('0x1a'),(_0x5dd7ee,_0x3d7f8f,_0x5426c1)=>{_0x5426c1?this[_0x2039('0xb')]():this[_0x2039('0x3')]();}),this[_0x2039('0x11')]=new Set(['addCommentThread',_0x2039('0x8'),'exportPdf']);}[_0x2039('0x14')](){null===this['isEnabled']&&(this[_0x2039('0x4')]=!!this[_0x2039('0x5')][_0x2039('0x17')]['get']('commentsOnly'));}['_enableCommentsOnlyMode'](){for(const [_0x5bb144,_0x1388e7]of this['editor'][_0x2039('0x7')])this[_0x2039('0x11')][_0x2039('0x18')](_0x5bb144)||_0x1388e7[_0x2039('0x9')](_0x2039('0x15'));this[_0x2039('0x5')]['plugins'][_0x2039('0x18')](_0x2039('0x1d'))&&this[_0x2039('0x5')][_0x2039('0xc')][_0x2039('0x1')](_0x2039('0x1d'))[_0x2039('0x9')](_0x2039('0x15'));const _0x36a64c=this[_0x2039('0x5')]['editing'][_0x2039('0x13')][_0x2039('0x10')];this['listenTo'](_0x36a64c,_0x2039('0xf'),_0x5f35a3=>_0x5f35a3['stop'](),{'priority':_0x2039('0x2')}),this[_0x2039('0x16')](_0x36a64c,_0x2039('0x12'),_0x4b9999=>_0x4b9999[_0x2039('0x19')](),{'priority':'highest'}),this['listenTo'](_0x36a64c,_0x2039('0x1c'),_0x2ae51d=>_0x2ae51d[_0x2039('0x19')](),{'priority':_0x2039('0x2')});}[_0x2039('0x3')](){for(const [_0x3cfda4,_0xea3853]of this[_0x2039('0x5')][_0x2039('0x7')])this[_0x2039('0x11')][_0x2039('0x18')](_0x3cfda4)||_0xea3853[_0x2039('0x1b')](_0x2039('0x15'));this[_0x2039('0xd')](this[_0x2039('0x5')][_0x2039('0xa')][_0x2039('0x13')][_0x2039('0x10')]);}}
23
+ const _0x1db8=['isEnabled','stopListening','forceDisabled','commentsOnly','clipboardInput','afterInit','has','get','_disableCommentsOnlyMode','listenTo','commentsOnlyMode','CommentsOnly','addCommentThread','commands','cut','highest','DragDrop','requires','clearForceDisabled','delete','editing','stop','view','editor','document','_enableCommentsOnlyMode','affectsData'];(function(_0x577baf,_0x1db819){const _0x15cf44=function(_0x30b068){while(--_0x30b068){_0x577baf['push'](_0x577baf['shift']());}};_0x15cf44(++_0x1db819);}(_0x1db8,0x1d3));const _0x15cf=function(_0x577baf,_0x1db819){_0x577baf=_0x577baf-0x0;let _0x15cf44=_0x1db8[_0x577baf];return _0x15cf44;};import{Plugin as _0x2f7ac0}from'ckeditor5/src/core';import _0x2b09f3 from'./comments/commentsediting';export default class e extends _0x2f7ac0{static get['pluginName'](){return _0x15cf('0x3');}static get[_0x15cf('0x9')](){return[_0x2b09f3];}constructor(_0x4369b3){super(_0x4369b3),this['set']('isEnabled',null),this['on']('change:isEnabled',(_0x18e100,_0x250b49,_0x4c9d46)=>{_0x4c9d46?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x15cf('0x18')](){null===this[_0x15cf('0x13')]&&(this[_0x15cf('0x13')]=!!this[_0x15cf('0xf')]['config']['get'](_0x15cf('0x16')));}[_0x15cf('0x11')](){for(const [_0x2a1134,_0x545e4b]of this['editor']['commands'])_0x545e4b[_0x15cf('0x12')]&&_0x15cf('0x4')!==_0x2a1134&&_0x545e4b[_0x15cf('0x15')](_0x15cf('0x2'));this[_0x15cf('0xf')]['plugins'][_0x15cf('0x19')](_0x15cf('0x8'))&&this[_0x15cf('0xf')]['plugins'][_0x15cf('0x1a')](_0x15cf('0x8'))['forceDisabled']('commentsOnlyMode');const _0x350c3d=this[_0x15cf('0xf')]['editing']['view'][_0x15cf('0x10')];this[_0x15cf('0x1')](_0x350c3d,_0x15cf('0x6'),_0x158b9b=>_0x158b9b[_0x15cf('0xd')](),{'priority':_0x15cf('0x7')}),this[_0x15cf('0x1')](_0x350c3d,_0x15cf('0x17'),_0x1e8b0=>_0x1e8b0['stop'](),{'priority':_0x15cf('0x7')}),this[_0x15cf('0x1')](_0x350c3d,_0x15cf('0xb'),_0x2fd473=>_0x2fd473['stop'](),{'priority':_0x15cf('0x7')});}[_0x15cf('0x0')](){for(const [_0x48754c,_0x2181d7]of this['editor'][_0x15cf('0x5')])_0x2181d7['affectsData']&&_0x15cf('0x4')!==_0x48754c&&_0x2181d7[_0x15cf('0xa')](_0x15cf('0x2'));this[_0x15cf('0x14')](this['editor'][_0x15cf('0xc')][_0x15cf('0xe')][_0x15cf('0x10')]);}}
@@ -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
- export function getTranslation(_0xdaf953,_0x9c8821){const t=_0xdaf953['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x9c8821)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
23
+ export function getTranslation(_0x308992,_0x342cef){const t=_0x308992['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x342cef)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
@@ -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 _0x2788=['observe','attributes','cancel','type','disconnect'];(function(_0x42d262,_0x2788fa){const _0x271ccb=function(_0x30798f){while(--_0x30798f){_0x42d262['push'](_0x42d262['shift']());}};_0x271ccb(++_0x2788fa);}(_0x2788,0x17c));const _0x271c=function(_0x42d262,_0x2788fa){_0x42d262=_0x42d262-0x0;let _0x271ccb=_0x2788[_0x42d262];return _0x271ccb;};import{throttle as _0x4e4754}from'lodash-es';export default function ct(_0x3ffb60){const _0x2f2470=_0x4e4754(_0x3ffb60,0x1e),_0x3aef40=new MutationObserver(_0x55baa3=>{for(const _0x212593 of _0x55baa3)(_0x271c('0x1')==_0x212593[_0x271c('0x3')]&&'class'==_0x212593['attributeName']||'childList'==_0x212593[_0x271c('0x3')])&&_0x2f2470();});return{'attach'(_0x10885b){_0x3aef40[_0x271c('0x0')](_0x10885b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x3aef40[_0x271c('0x4')](),_0x2f2470[_0x271c('0x2')]();}};}
23
+ const _0x1e98=['type','class','childList','attributeName','disconnect','attributes','observe'];(function(_0x544637,_0x1e98c3){const _0x185431=function(_0x19b706){while(--_0x19b706){_0x544637['push'](_0x544637['shift']());}};_0x185431(++_0x1e98c3);}(_0x1e98,0x1c6));const _0x1854=function(_0x544637,_0x1e98c3){_0x544637=_0x544637-0x0;let _0x185431=_0x1e98[_0x544637];return _0x185431;};import{throttle as _0x230b13}from'lodash-es';export default function ct(_0x36122e){const _0x392a30=_0x230b13(_0x36122e,0x1e),_0x595ed1=new MutationObserver(_0x527adb=>{for(const _0x2848c9 of _0x527adb)(_0x1854('0x6')==_0x2848c9[_0x1854('0x1')]&&_0x1854('0x2')==_0x2848c9[_0x1854('0x4')]||_0x1854('0x3')==_0x2848c9['type'])&&_0x392a30();});return{'attach'(_0x3ea022){_0x595ed1[_0x1854('0x0')](_0x3ea022,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x595ed1[_0x1854('0x5')](),_0x392a30['cancel']();}};}
@@ -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 _0x1b7c=['invalid-date-time-format','MM-dd-yyyy\x20hh:mma','string','function','\x27Last\x27\x20EEEE\x20hh:mma','dateTimeFormat','\x27Yesterday\x27\x20hh:mma','\x27Today\x27\x20hh:mma'];(function(_0x121809,_0x1b7c4a){const _0x4aa7d5=function(_0x2e3358){while(--_0x2e3358){_0x121809['push'](_0x121809['shift']());}};_0x4aa7d5(++_0x1b7c4a);}(_0x1b7c,0xb0));const _0x4aa7=function(_0x121809,_0x1b7c4a){_0x121809=_0x121809-0x0;let _0x4aa7d5=_0x1b7c[_0x121809];return _0x4aa7d5;};import _0x40d4e1 from'date-fns/format';import _0x36d1ba from'date-fns/parseISO';import _0x3f7a03 from'date-fns/differenceInCalendarDays';import _0x4da74a from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default function J(_0x152077={}){if(void 0x0!==_0x152077[_0x4aa7('0x5')]&&_0x4aa7('0x3')!=typeof _0x152077[_0x4aa7('0x5')])throw new _0x4da74a(_0x4aa7('0x0'));return _0x29194a=>{const _0x803e7f=_0x4aa7('0x2')==typeof _0x29194a?_0x36d1ba(_0x29194a):_0x29194a,_0x28f93b=new Date(),_0x40e109=_0x3f7a03(_0x28f93b,_0x803e7f);return _0x152077[_0x4aa7('0x5')]?_0x152077[_0x4aa7('0x5')](_0x803e7f):_0x40d4e1(_0x803e7f,0x0===_0x40e109?_0x4aa7('0x7'):0x1===_0x40e109?_0x4aa7('0x6'):_0x40e109<0x7?_0x4aa7('0x4'):_0x4aa7('0x1'));};}
23
+ const _0x5029=['\x27Last\x27\x20EEEE\x20hh:mma','string','MM-dd-yyyy\x20hh:mma','\x27Today\x27\x20hh:mma','dateTimeFormat','invalid-date-time-format'];(function(_0x7dd93e,_0x502904){const _0x46dd56=function(_0x5e4e1b){while(--_0x5e4e1b){_0x7dd93e['push'](_0x7dd93e['shift']());}};_0x46dd56(++_0x502904);}(_0x5029,0x85));const _0x46dd=function(_0x7dd93e,_0x502904){_0x7dd93e=_0x7dd93e-0x0;let _0x46dd56=_0x5029[_0x7dd93e];return _0x46dd56;};import _0xb7463c from'date-fns/format';import _0x157396 from'date-fns/parseISO';import _0x265157 from'date-fns/differenceInCalendarDays';import _0x4c1e6c from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default function Q(_0x30dee3={}){if(void 0x0!==_0x30dee3['dateTimeFormat']&&'function'!=typeof _0x30dee3[_0x46dd('0x3')])throw new _0x4c1e6c(_0x46dd('0x4'));return _0x2807a8=>{const _0x19816b=_0x46dd('0x0')==typeof _0x2807a8?_0x157396(_0x2807a8):_0x2807a8,_0x569b65=new Date(),_0x29537b=_0x265157(_0x569b65,_0x19816b);return _0x30dee3[_0x46dd('0x3')]?_0x30dee3[_0x46dd('0x3')](_0x19816b):_0xb7463c(_0x19816b,0x0===_0x29537b?_0x46dd('0x2'):0x1===_0x29537b?'\x27Yesterday\x27\x20hh:mma':_0x29537b<0x7?_0x46dd('0x5'):_0x46dd('0x1'));};}