@ckeditor/ckeditor5-comments 31.1.0 → 32.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) 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 +1 -1
  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 +1 -1
  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 +1 -1
  84. package/theme/icons/edit-comment.svg +1 -1
  85. package/theme/icons/remove-comment.svg +1 -1
  86. package/theme/sidebar-narrow.css +1 -1
  87. package/theme/sidebar.css +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as bt}from'ckeditor5/src/ui';import Rt from'./commentthreadinputview';import Tt from'./commentslistview';export default class It extends bt{constructor(_0x3adf9d,_0x4ea749,_0xdc03ff,_0x4aaab3){super(_0x3adf9d),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x4ea749,this['_localUser']=_0xdc03ff,this['_config']=_0x4aaab3,this['commentsListView']=new Tt(_0x3adf9d,_0x4ea749,Object['assign']({'CommentView':this['_config']['CommentView']},_0x4aaab3)),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',(_0x367276,_0x5c76e7)=>_0x367276||!!_0x5c76e7);}['focus'](){this['element']['focus']();}['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const {t:t}=this['locale'],_0x18e0d6=new Rt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4c0363=_0x18e0d6['commentInputView'];return _0x18e0d6['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',_0x4c0363,'value',(_0x2dbb63,_0x5efba3,_0x223929)=>!!_0x223929||_0x2dbb63&&!_0x5efba3),_0x4c0363['bind']('placeholder')['to'](this,'length',_0x18fc55=>t(_0x18fc55?'Reply...':'Write\x20a\x20comment...')),_0x4c0363['on']('submit',(_0x13dcdf,_0xb08bf4)=>{this['fire']('addComment',_0xb08bf4);}),_0x4c0363['on']('cancel',()=>{this['focus']();}),_0x4c0363['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4c0363['on']('cancel',_0x3ac7a6=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3ac7a6['stop']());}),this['on']('change:isActive',(_0x56f65f,_0x555c51,_0x39ae1d)=>{_0x39ae1d||this['length']||_0x4c0363['value']||this['fire']('removeCommentThread');}),_0x18e0d6;}}
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 _0x1dd8=['bind','collapse','initialData','set','remove','content','focus','_model','switchToEditMode','isCollapsed','locale','_createCommentInputView','isReadOnly','maxCommentCharsWhenCollapsed','isEditMode','value','visibleView','cancel','_config','submit','editorConfig','destroy','get','expand','editorReady','fire','updateComment','switchToDisplayMode','add','_createCommentContentView'];(function(_0xcbf781,_0x1dd8c5){const _0x9f07bb=function(_0x4cd12a){while(--_0x4cd12a){_0xcbf781['push'](_0xcbf781['shift']());}};_0x9f07bb(++_0x1dd8c5);}(_0x1dd8,0x99));const _0x9f07=function(_0xcbf781,_0x1dd8c5){_0xcbf781=_0xcbf781-0x0;let _0x9f07bb=_0x1dd8[_0xcbf781];return _0x9f07bb;};import{View as _0x3cf297}from'ckeditor5/src/ui';import _0x4f8058 from'./commentcontentview';import _0x567cf7 from'./commentinputview';import _0x3538aa from'../../../utils/trim-html';export default class Vt extends _0x3cf297{constructor(_0x104767,_0x74177b,_0x3cfa28){super(_0x104767),this[_0x9f07('0x4')]=_0x74177b,this['_config']=_0x3cfa28,this[_0x9f07('0x0')]('isEditMode',!0x1),this[_0x9f07('0x0')](_0x9f07('0x6'),!0x0),this[_0x9f07('0xd')]=this['createCollection'](),this['visibleView'][_0x9f07('0x19')](this[_0x9f07('0x1a')]());}[_0x9f07('0x14')](){this[_0x9f07('0x6')]=!0x1;}[_0x9f07('0x1c')](){this[_0x9f07('0xb')]||(this[_0x9f07('0x6')]=!0x0);}[_0x9f07('0x3')](){this['element'][_0x9f07('0x3')]();}async[_0x9f07('0x12')](){await this['visibleView'][_0x9f07('0x13')](0x0)[_0x9f07('0x12')](),super[_0x9f07('0x12')]();}[_0x9f07('0x5')](){this[_0x9f07('0xb')]||(this[_0x9f07('0xb')]=!0x0,this[_0x9f07('0xd')][_0x9f07('0x1')](0x0)[_0x9f07('0x12')](),this[_0x9f07('0xd')]['add'](this[_0x9f07('0x8')]()));}[_0x9f07('0x18')](){this[_0x9f07('0xb')]&&(this[_0x9f07('0xb')]=!0x1,this[_0x9f07('0xd')][_0x9f07('0x1')](0x0)[_0x9f07('0x12')](),this['visibleView'][_0x9f07('0x19')](this['_createCommentContentView']()));}[_0x9f07('0x1a')](){const _0x2a393b=new _0x4f8058(this[_0x9f07('0x7')]);return _0x2a393b[_0x9f07('0x1b')]('content')['to'](this[_0x9f07('0x4')],_0x9f07('0x2'),this,_0x9f07('0x6'),(_0x555ad1,_0x5460a0)=>_0x5460a0?_0x3538aa(_0x555ad1,{'limit':this[_0x9f07('0xf')][_0x9f07('0xa')]}):_0x555ad1),_0x2a393b;}[_0x9f07('0x8')](){this[_0x9f07('0xf')]['editorConfig']||(this['_config'][_0x9f07('0x11')]={}),this[_0x9f07('0xf')][_0x9f07('0x11')][_0x9f07('0x1d')]=this['_model'][_0x9f07('0x2')];const _0x54f76c=new _0x567cf7(this['locale'],this[_0x9f07('0xf')][_0x9f07('0x11')]);return _0x54f76c[_0x9f07('0xc')]=this[_0x9f07('0x4')][_0x9f07('0x2')],_0x54f76c[_0x9f07('0x1b')]('disabledSubmit')['to'](this[_0x9f07('0x4')],_0x9f07('0x9')),_0x54f76c['on'](_0x9f07('0x10'),(_0x4c7414,_0x5ed947)=>{this[_0x9f07('0x16')](_0x9f07('0x17'),this[_0x9f07('0x4')]['id'],_0x5ed947),this[_0x9f07('0x18')](),this[_0x9f07('0x3')]();}),_0x54f76c['on'](_0x9f07('0xe'),()=>{this[_0x9f07('0x18')](),this[_0x9f07('0x3')]();}),_0x54f76c['once'](_0x9f07('0x15'),()=>{_0x54f76c[_0x9f07('0x3')]();}),_0x54f76c;}}
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(_0x105d53){super(_0x105d53);const {t:t}=_0x105d53,_0x2f66af=this['bindTemplate'];this['set']('count'),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2f66af['to']('count',_0x2b5b73=>t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x2b5b73))}]});}}
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 _0xc5ae=['innerHTML','ck-annotation__content','render','content','div','setTemplate','ck-comment__content','element'];(function(_0x56a174,_0xc5aeaa){var _0x461212=function(_0x38cc31){while(--_0x38cc31){_0x56a174['push'](_0x56a174['shift']());}};_0x461212(++_0xc5aeaa);}(_0xc5ae,0x7a));var _0x4612=function(_0x56a174,_0xc5aeaa){_0x56a174=_0x56a174-0x0;var _0x461212=_0xc5ae[_0x56a174];return _0x461212;};import{View as _0x184894}from'ckeditor5/src/ui';export default class Mt extends _0x184894{constructor(_0x12557b){super(_0x12557b),this['set']('content',''),this[_0x4612('0x3')]({'tag':_0x4612('0x2'),'attributes':{'class':[_0x4612('0x4'),_0x4612('0x7')]}});}[_0x4612('0x0')](){super[_0x4612('0x0')](),this['on']('change:content',(_0x5e1e4d,_0x227ef1,_0x4ecc8d)=>{this[_0x4612('0x5')][_0x4612('0x6')]=_0x4ecc8d;}),this[_0x4612('0x5')][_0x4612('0x6')]=this[_0x4612('0x1')];}}
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 _0x197062,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(_0x3ee17a,_0x5f3ded={}){super(_0x3ee17a);const {t:t}=_0x3ee17a;this['editor']=new zt(_0x5f3ded),this['keystrokes']=new pt(),this['focusTracker']=new _0x197062(),this['set']('value',_0x5f3ded['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',(_0x36bef0,_0x4c54fd)=>{this['cancelButtonView']['fire']('execute'),_0x4c54fd();}),this['on']('submit',(_0x3142dc,_0xcb6aba)=>{_0xcb6aba['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'},[_0xcb6aba['length'],0xfde8])),_0x3142dc['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x53cabf,element:_0x284de3}=this;this['keystrokes']['listenTo'](_0x284de3),this['focusTracker']['add'](_0x284de3),this['_editorCreationPromise']=_0x53cabf['create']()['then'](()=>{_0x284de3['insertBefore'](_0x53cabf['ui']['element'],_0x284de3['firstChild']),_0x53cabf['model']['document']['on']('change',()=>this['value']=_0x53cabf['getData']()),_0x53cabf['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x53cabf),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 _0x3bd5ce=new mt(this['locale']),{t:t}=this['locale'];return _0x3bd5ce['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x3bd5ce['label']=t('Submit'),_0x3bd5ce['icon']=Yt['check'],_0x3bd5ce['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x3bd5ce['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x352ed9,_0x32c5cb)=>!_0x32c5cb&&!!_0x352ed9['trim']()),_0x3bd5ce;}['_createCancelButton'](){const _0x380c24=new mt(this['locale']),{t:t}=this['locale'];return _0x380c24['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x380c24['label']=t('Cancel'),_0x380c24['icon']=Yt['cancel'],_0x380c24['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x380c24;}['_initializeFocusCycling'](_0x120c21){const _0x5dab29=this['focusTracker'],_0x26d2ef=new St();[_0x120c21['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x491d7b=>{_0x26d2ef['add'](_0x491d7b),_0x5dab29['add'](_0x491d7b['element']);});const _0x4b83ce=new Gt({'focusables':_0x26d2ef,'focusTracker':_0x5dab29});this['keystrokes']['set']('tab',(_0x360c28,_0x38da1f)=>{_0x4b83ce['focusNext'](),_0x38da1f();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x25dbc4,_0x35b112)=>{_0x4b83ce['focusPrevious'](),_0x35b112();},{'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 _0x3b52=['comments','_handleRemoveCommentModel','refreshVisibleViews','_config','isEditMode','commentViews','createCollection','_handleNewCommentModel','hasDirtyComment','change:isActive','destroy','expand','render','_rearrangeExpand','_collapsedCommentsView','collapse','stopListening','isActive','get','ck-thread__comments','_updateHasDirtyComment','_model','maxCommentCharsWhenCollapsed','delegate','setTemplate','_shouldCollapse','from','equal','count','maxCommentsWhenCollapsed','maxThreadTotalWeight','_rearrangeCollapse','length','add','visibleViews','change:hasDirtyComment','some','locale','remove','set','listenTo','updateComment','focus','editorConfig'];(function(_0x5a668c,_0x3b525f){const _0x57acfc=function(_0x85fdd){while(--_0x85fdd){_0x5a668c['push'](_0x5a668c['shift']());}};_0x57acfc(++_0x3b525f);}(_0x3b52,0x1e0));const _0x57ac=function(_0x5a668c,_0x3b525f){_0x5a668c=_0x5a668c-0x0;let _0x57acfc=_0x3b52[_0x5a668c];return _0x57acfc;};import{View as _0x33b83e}from'ckeditor5/src/ui';import{diff as _0xb6db4,Collection as _0x465c5c}from'ckeditor5/src/utils';import _0x5b8495 from'./collapsedcommentsview';export default class Tt extends _0x33b83e{constructor(_0x21289d,_0x4b4e75,_0xa2279e){super(_0x21289d),this[_0x57ac('0x2b')](_0x57ac('0xc'),!0x1),this[_0x57ac('0x2b')]('length',_0x4b4e75[_0x57ac('0x4')]['length']),this[_0x57ac('0x2b')]('isActive',!0x1),this[_0x57ac('0x19')]=_0x4b4e75,this[_0x57ac('0x7')]=_0xa2279e,this['commentViews']=this['createCollection'](),this[_0x57ac('0x26')]=this[_0x57ac('0xa')](),this['_collapsedCommentsView']=new _0x5b8495(_0x21289d),this[_0x57ac('0x12')]['bind']('count')['to'](this,_0x57ac('0x24'),_0x142935=>_0x142935-this[_0x57ac('0x7')][_0x57ac('0x21')]);for(const _0x503c33 of _0x4b4e75[_0x57ac('0x4')])this[_0x57ac('0xb')](_0x503c33);this[_0x57ac('0x0')](_0x4b4e75['comments'],_0x57ac('0x25'),(_0x53cca0,_0x49aa8b)=>{this[_0x57ac('0x24')]++,this[_0x57ac('0xb')](_0x49aa8b),this[_0x57ac('0x6')]();}),this[_0x57ac('0x0')](_0x4b4e75[_0x57ac('0x4')],_0x57ac('0x2a'),(_0xf9a4cd,_0x3cce9e)=>{this[_0x57ac('0x24')]--,this[_0x57ac('0x5')](_0x3cce9e),this[_0x57ac('0x6')]();}),this[_0x57ac('0x0')](_0x4b4e75,'commentUpdated',()=>this[_0x57ac('0x6')]()),this['on'](_0x57ac('0xd'),()=>this[_0x57ac('0x6')]()),this['on'](_0x57ac('0x27'),()=>this[_0x57ac('0x6')]()),this[_0x57ac('0x1c')]({'tag':'ul','attributes':{'class':[_0x57ac('0x17')]},'children':this[_0x57ac('0x26')]});}get[_0x57ac('0x1d')](){return this['_model']['weight']>this['_config'][_0x57ac('0x22')]&&!this[_0x57ac('0x15')]&&!this[_0x57ac('0xc')];}[_0x57ac('0x10')](){super[_0x57ac('0x10')](),this['refreshVisibleViews']();}[_0x57ac('0x2')](){this['element'][_0x57ac('0x2')]();}[_0x57ac('0xe')](){this[_0x57ac('0x12')][_0x57ac('0xe')]();for(const _0x25a3ab of this[_0x57ac('0x9')])_0x25a3ab[_0x57ac('0xe')]();super[_0x57ac('0xe')]();}['refreshVisibleViews'](){this[_0x57ac('0x1d')]?this[_0x57ac('0x23')]():this[_0x57ac('0x11')]();}[_0x57ac('0xb')](_0x594ae9){const _0x57c9a9=new this[(_0x57ac('0x7'))]['CommentView'](this[_0x57ac('0x29')],_0x594ae9,{'maxCommentCharsWhenCollapsed':this['_config'][_0x57ac('0x1a')],'formatDateTime':this[_0x57ac('0x7')]['formatDateTime'],'editorConfig':this[_0x57ac('0x7')][_0x57ac('0x3')]});_0x57c9a9['viewUid']=_0x594ae9['id'],_0x57c9a9[_0x57ac('0x1b')]('removeComment')['to'](this),_0x57c9a9['delegate'](_0x57ac('0x1'))['to'](this),this[_0x57ac('0x0')](_0x57c9a9,'change:isEditMode',()=>this[_0x57ac('0x18')]()),this[_0x57ac('0x9')]['add'](_0x57c9a9);}['_handleRemoveCommentModel'](_0x12409f){const _0x192e94=this['commentViews'][_0x57ac('0x2a')](_0x12409f['id']);this[_0x57ac('0x14')](_0x192e94),_0x192e94['isEditMode']&&this['_updateHasDirtyComment'](),_0x192e94[_0x57ac('0xe')]();}['_updateHasDirtyComment'](){this[_0x57ac('0xc')]=Array['from'](this['commentViews'])[_0x57ac('0x28')](_0x428a0b=>_0x428a0b[_0x57ac('0x8')]);}['_rearrangeCollapse'](){const _0x20489c=function(_0x508f66){const _0x59598c=new _0x465c5c();for(const _0x4ecd3f of _0x508f66)_0x59598c[_0x57ac('0x25')](_0x4ecd3f);return _0x59598c;}(this[_0x57ac('0x9')]),_0x48e313=this[_0x57ac('0x12')][_0x57ac('0x20')];for(let _0x11a41b=0x1;_0x11a41b<=_0x48e313;_0x11a41b++)_0x20489c['remove'](0x1);for(const _0x528ad7 of _0x20489c)_0x528ad7[_0x57ac('0x13')]();_0x48e313>0x0&&_0x20489c[_0x57ac('0x25')](this[_0x57ac('0x12')],0x1),Ut(_0xb6db4(Array[_0x57ac('0x1e')](this[_0x57ac('0x26')]),Array['from'](_0x20489c)),this[_0x57ac('0x26')],_0x20489c);}[_0x57ac('0x11')](){Ut(_0xb6db4(Array[_0x57ac('0x1e')](this[_0x57ac('0x26')]),Array['from'](this[_0x57ac('0x9')])),this[_0x57ac('0x26')],this[_0x57ac('0x9')]);for(const _0x4f2049 of this[_0x57ac('0x26')])_0x4f2049[_0x57ac('0xf')]();}}function Ut(_0x190901,_0x5bd70b,_0x2d5205){let _0xb5d5d=0x0;for(const _0x15da43 of _0x190901)switch(_0x15da43){case'insert':_0x5bd70b[_0x57ac('0x25')](_0x2d5205[_0x57ac('0x16')](_0xb5d5d),_0xb5d5d),_0xb5d5d++;break;case'delete':_0x5bd70b[_0x57ac('0x2a')](_0xb5d5d);break;case _0x57ac('0x1f'):_0xb5d5d++;}}
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 _0x599b=['commentInputView','showInput','bindTemplate','userView','isFocused','ck-thread__user','setTemplate','destroy','ck-comment__input-container','div','extendTemplate','ck-comment__input-container--active','bind','value','focusTracker'];(function(_0x280399,_0x599b8b){var _0x1073d5=function(_0x533816){while(--_0x533816){_0x280399['push'](_0x280399['shift']());}};_0x1073d5(++_0x599b8b);}(_0x599b,0x10c));var _0x1073=function(_0x280399,_0x599b8b){_0x280399=_0x280399-0x0;var _0x1073d5=_0x599b[_0x280399];return _0x1073d5;};import{View as _0x31854f}from'ckeditor5/src/ui';import _0x1d74a7 from'./commentinputview';import _0xdac1f9 from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';export default class Rt extends _0x31854f{constructor(_0xd25c71,_0x5eba98,_0x3024df){super(_0xd25c71),this[_0x1073('0x2')]=new _0x1d74a7(_0xd25c71,_0x3024df),this['commentInputView'][_0x1073('0xe')]('showButtons')['to'](this[_0x1073('0x2')][_0x1073('0x1')],_0x1073('0x6'),this[_0x1073('0x2')],_0x1073('0x0'),(_0x2c883d,_0xcfdc5c)=>_0x2c883d||!!_0xcfdc5c),this['set']('showInput',!0x1),this[_0x1073('0x5')]=new _0xdac1f9(_0xd25c71,_0x5eba98),this[_0x1073('0x5')]['extendTemplate']({'attributes':{'class':_0x1073('0x7')}}),this[_0x1073('0x2')][_0x1073('0xc')]({'attributes':{'class':'ck-thread__input'}}),this[_0x1073('0x8')]({'tag':_0x1073('0xb'),'attributes':{'class':[_0x1073('0xa'),this[_0x1073('0x4')]['if'](_0x1073('0x3'),_0x1073('0xd'))]},'children':[this[_0x1073('0x5')],this[_0x1073('0x2')]]});}['destroy'](){return this['commentInputView'][_0x1073('0x9')]()['then'](()=>super[_0x1073('0x9')]());}}
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 _0x57466c}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class et extends It{constructor(_0x586870,_0x1c1066,_0x32322c,_0x50191e){super(_0x586870,_0x1c1066,_0x32322c,_0x50191e),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x586870,this['setTemplate'](this['_getTemplate']()),this['on']('change:isActive',(_0x2bd3e3,_0x5cecd9,_0x226952)=>{_0x226952||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x32fbae,_0x397a7f,_0x16a3f6)=>{_0x16a3f6&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x246d68=>{this['_bindFirstCommentView'](),_0x246d68['off']();});}['_getTemplate'](){const _0x21afc3=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x21afc3['if']('isActive','ck-thread--active'),_0x21afc3['if']('isConfirm','ck-thread--remove-confirmation'),_0x21afc3['to']('actionIndicator',_0x42ccc1=>_0x42ccc1?'ck-thread--'+_0x42ccc1:'')],'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 _0xe5e879 of this['commentsListView']['commentViews'])_0xe5e879['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x294f4b=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x294f4b,'actionIndicator',_0x117f5c=>'remove'===_0x117f5c?'remove':null),_0x294f4b['placeholder']=t('Write\x20a\x20comment...'),_0x294f4b['removeButton']['on']('execute',_0x26e20e=>{_0x26e20e['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x57466c(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 _0x27d280}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(_0x561d2a,_0x452fd3,_0x1e7662){super(_0x561d2a,_0x452fd3,_0x1e7662);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x452fd3),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new Jt(_0x561d2a,_0x452fd3['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x452fd3,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['_getTemplate']());}['_getTemplate'](){const _0x29fd99=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x29fd99['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x29fd99['if']('isEditMode','ck-comment--edit'),_0x29fd99['to']('actionIndicator',_0x353fed=>_0x353fed?'ck-comment--'+_0x353fed:'')],'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':_0x29fd99['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x29fd99['to']('createdAt',_0x5ba23c=>this['_config']['formatDateTime'](_0x5ba23c))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x29fd99['if']('isEditMode','ck-comment__actions--hidden'),_0x29fd99['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'],_0x59f91b=new mt(this['locale']);return _0x59f91b['label']=t('Edit'),_0x59f91b['icon']=Yt['pencil'],_0x59f91b['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x59f91b['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3116dd=>!_0x3116dd),_0x59f91b['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x59f91b['on']('execute',()=>this['switchToEditMode']()),_0x59f91b;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x4f3fd6=new mt(this['locale']);return _0x4f3fd6['label']=t('Remove'),_0x4f3fd6['icon']=Kt,_0x4f3fd6['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x4f3fd6['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x29b31c=>!_0x29b31c),_0x4f3fd6['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x4f3fd6['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x4f3fd6;}['_attachActions'](_0x466c0e,_0x47b4ac){this['listenTo'](_0x466c0e,'mouseenter',()=>this['actionIndicator']=_0x47b4ac),this['listenTo'](_0x466c0e,'focus',()=>this['actionIndicator']=_0x47b4ac),this['listenTo'](_0x466c0e,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x466c0e,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0x5362ab=super['_createCommentInputView']();return _0x5362ab['bind']('placeholder')['to'](this),_0x5362ab;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x27d280(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 _0x12b5=['_removeConfirm','confirmView','message','deregisterChild','submit','fire','element','destroy','render','set','isConfirm','cancel','once'];(function(_0x18190e,_0x12b5f4){var _0x25bf84=function(_0x401d3c){while(--_0x401d3c){_0x18190e['push'](_0x18190e['shift']());}};_0x25bf84(++_0x12b5f4);}(_0x12b5,0xc9));var _0x25bf=function(_0x18190e,_0x12b5f4){_0x18190e=_0x18190e-0x0;var _0x25bf84=_0x12b5[_0x18190e];return _0x25bf84;};import _0x49c479 from'./confirmview';export default{'showConfirm'(_0x502a74,_0x42ae28){return this[_0x25bf('0x8')]=new _0x49c479(this['locale']),this[_0x25bf('0x8')][_0x25bf('0x2')](),this[_0x25bf('0x8')][_0x25bf('0x9')]=_0x502a74,this[_0x25bf('0x8')][_0x25bf('0x6')](_0x25bf('0x5'),()=>{this['_removeConfirm']();}),this[_0x25bf('0x8')][_0x25bf('0x6')](_0x25bf('0xb'),()=>{this[_0x25bf('0x7')]();}),_0x42ae28['appendChild'](this[_0x25bf('0x8')][_0x25bf('0x0')]),this['registerChild'](this['confirmView']),this[_0x25bf('0x3')](_0x25bf('0x4'),!0x0),new Promise(_0xcab0eb=>this['confirmView']['on']('submit',_0xcab0eb));},'cancelConfirm'(){this[_0x25bf('0x4')]&&this[_0x25bf('0x8')][_0x25bf('0xc')](_0x25bf('0x5'));},'_removeConfirm'(){this[_0x25bf('0x8')][_0x25bf('0x0')]['remove'](),this[_0x25bf('0xa')](this[_0x25bf('0x8')]),this[_0x25bf('0x4')]=!0x1,this[_0x25bf('0x8')][_0x25bf('0x1')](),delete this[_0x25bf('0x8')];}};
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(_0x482926){super(_0x482926);const {t:t}=_0x482926,_0x57fbcf=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x482926,t('Yes'),Yt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x482926,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':_0x57fbcf['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x2c406d,_0x59e602,_0x274f13,_0x5ae4a5){const _0x54b1a1=new mt(_0x2c406d);return _0x54b1a1['label']=_0x59e602,_0x54b1a1['icon']=_0x274f13,_0x54b1a1['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x5ae4a5}}),_0x54b1a1['on']('execute',()=>this['fire'](_0x5ae4a5)),_0x54b1a1;}}
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 _0x16da=['pluginName','Comments','requires'];(function(_0x22bad5,_0x16da83){var _0x49e1fa=function(_0x38714e){while(--_0x38714e){_0x22bad5['push'](_0x22bad5['shift']());}};_0x49e1fa(++_0x16da83);}(_0x16da,0xf6));var _0x49e1=function(_0x22bad5,_0x16da83){_0x22bad5=_0x22bad5-0x0;var _0x49e1fa=_0x16da[_0x22bad5];return _0x49e1fa;};import{Plugin as _0x45f1dd}from'ckeditor5/src/core';import _0x4d6658 from'./comments/commentsrepository';import _0x3f7222 from'./comments/commentsediting';import _0x4a9ef6 from'./comments/commentsui';import _0x8f22dd from'./commentsonly';import _0x5b30dc from'./annotations/widesidebar';import _0x4a2aff from'./annotations/narrowsidebar';import _0x1c87df from'./annotations/inlineannotations';export default class c extends _0x45f1dd{static get[_0x49e1('0x2')](){return[_0x4d6658,_0x3f7222,_0x4a9ef6,_0x8f22dd,_0x5b30dc,_0x4a2aff,_0x1c87df];}static get[_0x49e1('0x0')](){return _0x49e1('0x1');}}
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 _0x2a5c=['set','listenTo','_enableCommentsOnlyMode','view','clipboardInput','stop','cut','stopListening','forceDisabled','isEnabled','_disableCommentsOnlyMode','pluginName','document','has','highest','change:isEnabled','commentsOnlyMode','commentsOnly','addCommentThread','delete','commands','afterInit','get','DragDrop','editor','affectsData','plugins','editing','config'];(function(_0x1a6fb3,_0x2a5ce1){const _0x2b03d0=function(_0x1221af){while(--_0x1221af){_0x1a6fb3['push'](_0x1a6fb3['shift']());}};_0x2b03d0(++_0x2a5ce1);}(_0x2a5c,0xd3));const _0x2b03=function(_0x1a6fb3,_0x2a5ce1){_0x1a6fb3=_0x1a6fb3-0x0;let _0x2b03d0=_0x2a5c[_0x1a6fb3];return _0x2b03d0;};import{Plugin as _0x18ecf5}from'ckeditor5/src/core';import _0x3d1b9d from'./comments/commentsediting';export default class e extends _0x18ecf5{static get[_0x2b03('0x3')](){return'CommentsOnly';}static get['requires'](){return[_0x3d1b9d];}constructor(_0x5bd8fb){super(_0x5bd8fb),this[_0x2b03('0x15')](_0x2b03('0x1'),null),this['on'](_0x2b03('0x7'),(_0x17a75a,_0x17349c,_0x530167)=>{_0x530167?this[_0x2b03('0x17')]():this[_0x2b03('0x2')]();});}[_0x2b03('0xd')](){null===this[_0x2b03('0x1')]&&(this[_0x2b03('0x1')]=!!this[_0x2b03('0x10')][_0x2b03('0x14')]['get'](_0x2b03('0x9')));}[_0x2b03('0x17')](){for(const [_0x306083,_0x166594]of this['editor'][_0x2b03('0xc')])_0x166594[_0x2b03('0x11')]&&'addCommentThread'!==_0x306083&&_0x166594[_0x2b03('0x0')](_0x2b03('0x8'));this[_0x2b03('0x10')][_0x2b03('0x12')][_0x2b03('0x5')](_0x2b03('0xf'))&&this[_0x2b03('0x10')][_0x2b03('0x12')][_0x2b03('0xe')](_0x2b03('0xf'))[_0x2b03('0x0')](_0x2b03('0x8'));const _0x44074d=this[_0x2b03('0x10')][_0x2b03('0x13')][_0x2b03('0x18')][_0x2b03('0x4')];this[_0x2b03('0x16')](_0x44074d,_0x2b03('0x1b'),_0x1f091c=>_0x1f091c[_0x2b03('0x1a')](),{'priority':_0x2b03('0x6')}),this['listenTo'](_0x44074d,_0x2b03('0x19'),_0x454643=>_0x454643['stop'](),{'priority':_0x2b03('0x6')}),this[_0x2b03('0x16')](_0x44074d,_0x2b03('0xb'),_0x2f0df2=>_0x2f0df2[_0x2b03('0x1a')](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x24da27,_0x5cf8c5]of this[_0x2b03('0x10')][_0x2b03('0xc')])_0x5cf8c5[_0x2b03('0x11')]&&_0x2b03('0xa')!==_0x24da27&&_0x5cf8c5['clearForceDisabled'](_0x2b03('0x8'));this[_0x2b03('0x1c')](this[_0x2b03('0x10')]['editing'][_0x2b03('0x18')][_0x2b03('0x4')]);}}
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(_0x4bdbfe,_0x35bf07){const t=_0x4bdbfe['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x35bf07)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 _0x4619=['attributes','type','disconnect','childList','cancel','observe','attributeName','class'];(function(_0x2f2708,_0x4619a8){const _0x5e79b4=function(_0x7618){while(--_0x7618){_0x2f2708['push'](_0x2f2708['shift']());}};_0x5e79b4(++_0x4619a8);}(_0x4619,0x12a));const _0x5e79=function(_0x2f2708,_0x4619a8){_0x2f2708=_0x2f2708-0x0;let _0x5e79b4=_0x4619[_0x2f2708];return _0x5e79b4;};import{throttle as _0x2c257b}from'lodash-es';export default function ct(_0x4e4d3a){const _0x483d0d=_0x2c257b(_0x4e4d3a,0x1e),_0x33d897=new MutationObserver(_0x614627=>{for(const _0x1dc865 of _0x614627)(_0x5e79('0x6')==_0x1dc865['type']&&_0x5e79('0x5')==_0x1dc865[_0x5e79('0x4')]||_0x5e79('0x1')==_0x1dc865[_0x5e79('0x7')])&&_0x483d0d();});return{'attach'(_0x706871){_0x33d897[_0x5e79('0x3')](_0x706871,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x33d897[_0x5e79('0x0')](),_0x483d0d[_0x5e79('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 _0xbb57=['dateTimeFormat','function','invalid-date-time-format','\x27Today\x27\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','\x27Yesterday\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma'];(function(_0x52fd8,_0xbb5726){const _0x3843ac=function(_0x180e11){while(--_0x180e11){_0x52fd8['push'](_0x52fd8['shift']());}};_0x3843ac(++_0xbb5726);}(_0xbb57,0x65));const _0x3843=function(_0x52fd8,_0xbb5726){_0x52fd8=_0x52fd8-0x0;let _0x3843ac=_0xbb57[_0x52fd8];return _0x3843ac;};import _0x515e0b from'date-fns/format';import _0x3f7ff8 from'date-fns/parseISO';import _0x4b34e0 from'date-fns/differenceInCalendarDays';import _0x16e913 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default function J(_0x355f1={}){if(void 0x0!==_0x355f1[_0x3843('0x4')]&&_0x3843('0x5')!=typeof _0x355f1[_0x3843('0x4')])throw new _0x16e913(_0x3843('0x6'));return _0x28f4d9=>{const _0x2fc884='string'==typeof _0x28f4d9?_0x3f7ff8(_0x28f4d9):_0x28f4d9,_0x3739d1=new Date(),_0x1a1fdd=_0x4b34e0(_0x3739d1,_0x2fc884);return _0x355f1[_0x3843('0x4')]?_0x355f1[_0x3843('0x4')](_0x2fc884):_0x515e0b(_0x2fc884,0x0===_0x1a1fdd?_0x3843('0x0'):0x1===_0x1a1fdd?_0x3843('0x2'):_0x1a1fdd<0x7?_0x3843('0x1'):_0x3843('0x3'));};}
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'));};}
@@ -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 _0x2623=['mapper','domConverter','markerNameToElements','mapViewToDom','values'];(function(_0xe6ccbc,_0x2623bf){const _0x275c89=function(_0x4c0e06){while(--_0x4c0e06){_0xe6ccbc['push'](_0xe6ccbc['shift']());}};_0x275c89(++_0x2623bf);}(_0x2623,0xa0));const _0x275c=function(_0xe6ccbc,_0x2623bf){_0xe6ccbc=_0xe6ccbc-0x0;let _0x275c89=_0x2623[_0xe6ccbc];return _0x275c89;};import _0x2668ab from'@ckeditor/ckeditor5-utils/src/first';export default function R(_0x6995e6,_0x4956c3){const _0x3541e5=_0x6995e6[_0x275c('0x0')][_0x275c('0x2')](_0x4956c3['name']),_0x5a1af0=_0x2668ab(_0x3541e5[_0x275c('0x4')]());return _0x6995e6['view'][_0x275c('0x1')][_0x275c('0x3')](_0x5a1af0);}
23
+ const _0x2308=['view','values','markerNameToElements','mapper','name','domConverter'];(function(_0x1c9957,_0x2308df){const _0x3f1e9a=function(_0x2580e8){while(--_0x2580e8){_0x1c9957['push'](_0x1c9957['shift']());}};_0x3f1e9a(++_0x2308df);}(_0x2308,0xdc));const _0x3f1e=function(_0x1c9957,_0x2308df){_0x1c9957=_0x1c9957-0x0;let _0x3f1e9a=_0x2308[_0x1c9957];return _0x3f1e9a;};import _0x1fd79d from'@ckeditor/ckeditor5-utils/src/first';export default function R(_0x49ed19,_0x70beeb){const _0x59a5d0=_0x49ed19[_0x3f1e('0x5')][_0x3f1e('0x4')](_0x70beeb[_0x3f1e('0x0')]),_0x544208=_0x1fd79d(_0x59a5d0[_0x3f1e('0x3')]());return _0x49ed19[_0x3f1e('0x2')][_0x3f1e('0x1')]['mapViewToDom'](_0x544208);}
@@ -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 _0x2222=['split','startsWith','push','slice','match','pop','substring','length','join','indexOf','...','replace'];(function(_0x3914c3,_0x22224a){const _0x382436=function(_0x5be0d6){while(--_0x5be0d6){_0x3914c3['push'](_0x3914c3['shift']());}};_0x382436(++_0x22224a);}(_0x2222,0x72));const _0x3824=function(_0x3914c3,_0x22224a){_0x3914c3=_0x3914c3-0x0;let _0x382436=_0x2222[_0x3914c3];return _0x382436;};export default function nn(_0x14b73c,{limit:_0x2aefa1,suffix:_0x3b3ae7=_0x3824('0x4')}){const _0x51bcac=[];let _0x47c4c5=0x0;const _0x12e286=_0x14b73c[_0x3824('0x5')](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0x3824('0x5')](/^\n/g,'')[_0x3824('0x5')](/\n$/g,'')[_0x3824('0x6')]('\x0a');for(let _0x20cd59=0x0;_0x20cd59<_0x12e286[_0x3824('0x1')];_0x20cd59++){let _0x509a99=_0x12e286[_0x20cd59];const _0x17b416=tn(_0x509a99);if(_0x509a99[_0x3824('0x7')]('<')){if(_0x47c4c5>=_0x2aefa1){const _0x36d943=_0x509a99[_0x3824('0xa')](/[a-zA-Z]+/)[0x0];_0x509a99['startsWith']('</')?(_0x51bcac['length']&&(_0x509a99=''),_0x51bcac[_0x3824('0xb')]()):(_0x51bcac[_0x3824('0x8')](_0x36d943),_0x509a99='');}}else{if(_0x47c4c5>=_0x2aefa1)_0x509a99='';else{if(_0x47c4c5+_0x17b416[_0x3824('0x1')]>=_0x2aefa1){let _0x1fc792=_0x2aefa1-_0x47c4c5;if('\x20'===_0x17b416[_0x1fc792-0x1])_0x1fc792--;else{const _0x4fa114=_0x17b416['slice'](_0x1fc792)[_0x3824('0x3')]('\x20');-0x1!==_0x4fa114?_0x1fc792+=_0x4fa114:_0x1fc792=_0x509a99[_0x3824('0x1')];}_0x509a99=_0x17b416[_0x3824('0x9')](0x0,_0x1fc792)[_0x3824('0x2')]('')+_0x3b3ae7,_0x47c4c5=_0x2aefa1;}else _0x47c4c5+=_0x17b416['length'];}}_0x12e286[_0x20cd59]=_0x509a99;}return _0x12e286[_0x3824('0x2')]('\x0a')[_0x3824('0x5')](/\n/g,'');}function tn(_0x4e5daa){const _0x3bb9b3=[];for(let _0x27e76b=0x0;_0x27e76b<_0x4e5daa['length'];_0x27e76b++){const _0x1493b6=_0x4e5daa[_0x3824('0x0')](_0x27e76b)['match'](/^&[a-z0-9#]+;/);if(_0x1493b6){const _0x1964be=_0x1493b6[0x0];_0x3bb9b3['push'](_0x1964be),_0x27e76b+=_0x1964be[_0x3824('0x1')]-0x1;}else _0x3bb9b3[_0x3824('0x8')](_0x4e5daa[_0x27e76b]);}return _0x3bb9b3;}
23
+ const _0x1c71=['indexOf','push','split','slice','pop','substring','match','length','join','startsWith','replace'];(function(_0x223938,_0x1c712a){const _0x535f87=function(_0x505c7a){while(--_0x505c7a){_0x223938['push'](_0x223938['shift']());}};_0x535f87(++_0x1c712a);}(_0x1c71,0xf3));const _0x535f=function(_0x223938,_0x1c712a){_0x223938=_0x223938-0x0;let _0x535f87=_0x1c71[_0x223938];return _0x535f87;};export default function nn(_0x493643,{limit:_0x3c3d5e,suffix:_0x56369c='...'}){const _0x321e04=[];let _0x2b466d=0x0;const _0x3ce519=_0x493643[_0x535f('0x9')](/</g,'\x0a<')[_0x535f('0x9')](/>/g,'>\x0a')[_0x535f('0x9')](/^\n/g,'')[_0x535f('0x9')](/\n$/g,'')[_0x535f('0x1')]('\x0a');for(let _0x343a9b=0x0;_0x343a9b<_0x3ce519[_0x535f('0x6')];_0x343a9b++){let _0x4fad0d=_0x3ce519[_0x343a9b];const _0x42d1aa=tn(_0x4fad0d);if(_0x4fad0d[_0x535f('0x8')]('<')){if(_0x2b466d>=_0x3c3d5e){const _0x171217=_0x4fad0d[_0x535f('0x5')](/[a-zA-Z]+/)[0x0];_0x4fad0d['startsWith']('</')?(_0x321e04[_0x535f('0x6')]&&(_0x4fad0d=''),_0x321e04[_0x535f('0x3')]()):(_0x321e04[_0x535f('0x0')](_0x171217),_0x4fad0d='');}}else{if(_0x2b466d>=_0x3c3d5e)_0x4fad0d='';else{if(_0x2b466d+_0x42d1aa['length']>=_0x3c3d5e){let _0x49c6c0=_0x3c3d5e-_0x2b466d;if('\x20'===_0x42d1aa[_0x49c6c0-0x1])_0x49c6c0--;else{const _0x442cb7=_0x42d1aa[_0x535f('0x2')](_0x49c6c0)[_0x535f('0xa')]('\x20');-0x1!==_0x442cb7?_0x49c6c0+=_0x442cb7:_0x49c6c0=_0x4fad0d[_0x535f('0x6')];}_0x4fad0d=_0x42d1aa['slice'](0x0,_0x49c6c0)[_0x535f('0x7')]('')+_0x56369c,_0x2b466d=_0x3c3d5e;}else _0x2b466d+=_0x42d1aa[_0x535f('0x6')];}}_0x3ce519[_0x343a9b]=_0x4fad0d;}return _0x3ce519[_0x535f('0x7')]('\x0a')[_0x535f('0x9')](/\n/g,'');}function tn(_0x48e28b){const _0x506f3a=[];for(let _0x5df431=0x0;_0x5df431<_0x48e28b[_0x535f('0x6')];_0x5df431++){const _0x235e66=_0x48e28b[_0x535f('0x4')](_0x5df431)['match'](/^&[a-z0-9#]+;/);if(_0x235e66){const _0x3598c2=_0x235e66[0x0];_0x506f3a[_0x535f('0x0')](_0x3598c2),_0x5df431+=_0x3598c2[_0x535f('0x6')]-0x1;}else _0x506f3a[_0x535f('0x0')](_0x48e28b[_0x5df431]);}return _0x506f3a;}
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration 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
  /* Common styles for inline comment and inline suggestion. */
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration 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
  /* Common styles for single comment and single suggestion. */
package/theme/comment.css CHANGED
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration 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 {
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration 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
  .ck .ck-comment__input-container {
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration 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 {
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration 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 {
@@ -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