@ckeditor/ckeditor5-comments 35.3.2 → 36.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 (146) hide show
  1. package/build/comments.js +3 -2
  2. package/build/translations/af.js +1 -0
  3. package/build/translations/ar.js +1 -0
  4. package/build/translations/bg.js +1 -0
  5. package/build/translations/bn.js +1 -0
  6. package/build/translations/bs.js +1 -0
  7. package/build/translations/ca.js +1 -0
  8. package/build/translations/cs.js +1 -0
  9. package/build/translations/da.js +1 -0
  10. package/build/translations/de-ch.js +1 -0
  11. package/build/translations/de.js +1 -0
  12. package/build/translations/el.js +1 -0
  13. package/build/translations/en-au.js +1 -0
  14. package/build/translations/es-co.js +1 -0
  15. package/build/translations/es.js +1 -0
  16. package/build/translations/et.js +1 -0
  17. package/build/translations/fa.js +1 -0
  18. package/build/translations/fi.js +1 -0
  19. package/build/translations/fr.js +1 -0
  20. package/build/translations/gl.js +1 -0
  21. package/build/translations/he.js +1 -0
  22. package/build/translations/hi.js +1 -0
  23. package/build/translations/hr.js +1 -0
  24. package/build/translations/hu.js +1 -0
  25. package/build/translations/id.js +1 -0
  26. package/build/translations/it.js +1 -0
  27. package/build/translations/ja.js +1 -0
  28. package/build/translations/jv.js +1 -0
  29. package/build/translations/ko.js +1 -0
  30. package/build/translations/lt.js +1 -0
  31. package/build/translations/lv.js +1 -0
  32. package/build/translations/ms.js +1 -0
  33. package/build/translations/nl.js +1 -0
  34. package/build/translations/no.js +1 -0
  35. package/build/translations/pl.js +1 -0
  36. package/build/translations/pt-br.js +1 -0
  37. package/build/translations/pt.js +1 -0
  38. package/build/translations/ro.js +1 -0
  39. package/build/translations/ru.js +1 -0
  40. package/build/translations/sk.js +1 -0
  41. package/build/translations/sr-latn.js +1 -0
  42. package/build/translations/sr.js +1 -0
  43. package/build/translations/sv.js +1 -0
  44. package/build/translations/th.js +1 -0
  45. package/build/translations/tk.js +1 -0
  46. package/build/translations/tr.js +1 -0
  47. package/build/translations/tt.js +1 -0
  48. package/build/translations/ug.js +1 -0
  49. package/build/translations/uk.js +1 -0
  50. package/build/translations/ur.js +1 -0
  51. package/build/translations/vi.js +1 -0
  52. package/build/translations/zh-cn.js +1 -0
  53. package/build/translations/zh.js +1 -0
  54. package/lang/translations/af.po +1 -1
  55. package/lang/translations/ar.po +4 -4
  56. package/lang/translations/bg.po +4 -4
  57. package/lang/translations/bn.po +4 -4
  58. package/lang/translations/bs.po +1 -1
  59. package/lang/translations/ca.po +4 -4
  60. package/lang/translations/cs.po +4 -4
  61. package/lang/translations/da.po +4 -4
  62. package/lang/translations/de-ch.po +1 -1
  63. package/lang/translations/de.po +4 -4
  64. package/lang/translations/el.po +4 -4
  65. package/lang/translations/en-au.po +1 -1
  66. package/lang/translations/en.po +1 -1
  67. package/lang/translations/es-co.po +1 -1
  68. package/lang/translations/es.po +4 -4
  69. package/lang/translations/et.po +4 -4
  70. package/lang/translations/fa.po +1 -1
  71. package/lang/translations/fi.po +4 -4
  72. package/lang/translations/fr.po +4 -4
  73. package/lang/translations/gl.po +1 -1
  74. package/lang/translations/he.po +4 -4
  75. package/lang/translations/hi.po +4 -4
  76. package/lang/translations/hr.po +1 -1
  77. package/lang/translations/hu.po +4 -4
  78. package/lang/translations/id.po +4 -4
  79. package/lang/translations/it.po +4 -4
  80. package/lang/translations/ja.po +4 -4
  81. package/lang/translations/jv.po +1 -1
  82. package/lang/translations/ko.po +4 -4
  83. package/lang/translations/lt.po +4 -4
  84. package/lang/translations/lv.po +4 -4
  85. package/lang/translations/ms.po +4 -4
  86. package/lang/translations/nl.po +4 -4
  87. package/lang/translations/no.po +4 -4
  88. package/lang/translations/pl.po +4 -4
  89. package/lang/translations/pt-br.po +4 -4
  90. package/lang/translations/pt.po +4 -4
  91. package/lang/translations/ro.po +4 -4
  92. package/lang/translations/ru.po +4 -4
  93. package/lang/translations/sk.po +4 -4
  94. package/lang/translations/sr-latn.po +5 -5
  95. package/lang/translations/sr.po +5 -5
  96. package/lang/translations/sv.po +4 -4
  97. package/lang/translations/th.po +4 -4
  98. package/lang/translations/tk.po +1 -1
  99. package/lang/translations/tr.po +4 -4
  100. package/lang/translations/tt.po +1 -1
  101. package/lang/translations/ug.po +7 -7
  102. package/lang/translations/uk.po +4 -4
  103. package/lang/translations/ur.po +1 -1
  104. package/lang/translations/vi.po +4 -4
  105. package/lang/translations/zh-cn.po +4 -4
  106. package/lang/translations/zh.po +4 -4
  107. package/package.json +3 -3
  108. package/src/annotations/annotation.js +2 -2
  109. package/src/annotations/annotationcollection.js +2 -2
  110. package/src/annotations/annotations.js +2 -2
  111. package/src/annotations/annotationsuis.js +2 -2
  112. package/src/annotations/editorannotations.js +2 -2
  113. package/src/annotations/inlineannotations.js +2 -2
  114. package/src/annotations/narrowsidebar.js +2 -2
  115. package/src/annotations/sidebar.js +2 -2
  116. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  117. package/src/annotations/view/annotationview.js +2 -2
  118. package/src/annotations/view/sidebaritemview.js +2 -2
  119. package/src/annotations/view/sidebarview.js +2 -2
  120. package/src/annotations/widesidebar.js +2 -2
  121. package/src/comments/addcommentthreadcommand.js +2 -2
  122. package/src/comments/commentsediting.js +2 -2
  123. package/src/comments/commentsrepository.js +2 -2
  124. package/src/comments/commentsui.js +2 -2
  125. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  126. package/src/comments/integrations/importword.js +2 -2
  127. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  128. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  129. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  130. package/src/comments/ui/commentthreadcontroller.js +2 -2
  131. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  132. package/src/comments/ui/view/basecommentview.js +2 -2
  133. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  134. package/src/comments/ui/view/commentcontentview.js +2 -2
  135. package/src/comments/ui/view/commentinputview.js +2 -2
  136. package/src/comments/ui/view/commentslistview.js +2 -2
  137. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  138. package/src/comments/ui/view/commentthreadview.js +2 -2
  139. package/src/comments/ui/view/commentview.js +2 -2
  140. package/src/comments.js +2 -2
  141. package/src/commentsonly.js +2 -2
  142. package/src/index.js +1 -1
  143. package/src/utils/common-translations.js +2 -2
  144. package/src/utils/createmutationobserver.js +2 -2
  145. package/theme/annotation.css +23 -6
  146. package/theme/commentthread.css +7 -0
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x22d2=['locale','Write\x20a\x20comment...','commentThreadInputView','removeComment','_model','value','_localUser','isDirty','commentInputView','cancel','_createCommentThreadInputView','removeCommentThread','delegate','addComment','placeholder','length','commentsListView','_config','destroy','focus','change:isActive','element','submit','isReadOnly','assign','fire','CommentView','editorConfig','hasDirtyComment','Reply...','set','updateComment','bind','isActive'];(function(_0x4b2075,_0x22d2f8){const _0x15cabb=function(_0x530598){while(--_0x530598){_0x4b2075['push'](_0x4b2075['shift']());}};_0x15cabb(++_0x22d2f8);}(_0x22d2,0x19f));const _0x15ca=function(_0x4b2075,_0x22d2f8){_0x4b2075=_0x4b2075-0x0;let _0x15cabb=_0x22d2[_0x4b2075];return _0x15cabb;};import{View as _0x25298f}from'ckeditor5/src/ui';import _0x617b85 from'./commentthreadinputview';import _0x42cf3b from'./commentslistview';import{getTranslation as _0x51fce1}from'../../../utils/common-translations';export default class Rt extends _0x25298f{constructor(_0x212b81,_0x4e16aa,_0x271a96,_0x23a973){super(_0x212b81),this[_0x15ca('0x17')](_0x15ca('0x1a'),!0x1),this[_0x15ca('0x17')](_0x15ca('0x0'),!0x1),this[_0x15ca('0x1f')]=_0x4e16aa,this['_localUser']=_0x271a96,this[_0x15ca('0xa')]=_0x23a973,this[_0x15ca('0x9')]=new _0x42cf3b(_0x212b81,_0x4e16aa,Object[_0x15ca('0x11')]({'CommentView':this[_0x15ca('0xa')][_0x15ca('0x13')]},_0x23a973)),this[_0x15ca('0x9')][_0x15ca('0x5')](_0x15ca('0x1e'))['to'](this),this[_0x15ca('0x9')][_0x15ca('0x5')](_0x15ca('0x18'))['to'](this),this[_0x15ca('0x9')][_0x15ca('0x19')](_0x15ca('0x1a'))['to'](this),this[_0x15ca('0x17')](_0x15ca('0x8'),this[_0x15ca('0x9')]['length']),this[_0x15ca('0x19')](_0x15ca('0x8'))['to'](this[_0x15ca('0x9')],_0x15ca('0x8')),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on'](_0x15ca('0x1e'),()=>this['focus']()),this[_0x15ca('0x19')](_0x15ca('0x0'))['to'](this[_0x15ca('0x9')],_0x15ca('0x15'),this[_0x15ca('0x1d')][_0x15ca('0x1')],'value',(_0x1d69a4,_0x4f0be4)=>_0x1d69a4||!!_0x4f0be4);}[_0x15ca('0xc')](){this[_0x15ca('0xe')]['focus']();}['destroy'](){this[_0x15ca('0x0')]=!0x1,this[_0x15ca('0x9')][_0x15ca('0xb')](),this['commentThreadInputView'][_0x15ca('0xb')](),super[_0x15ca('0xb')]();}[_0x15ca('0x3')](){const _0x288ead=new _0x617b85(this[_0x15ca('0x1b')],this[_0x15ca('0x21')],this[_0x15ca('0xa')][_0x15ca('0x14')]),_0x53fe5e=_0x288ead[_0x15ca('0x1')];return _0x288ead[_0x15ca('0x19')]('showInput')['to'](this,'isActive',this['_model'],_0x15ca('0x10'),_0x53fe5e,_0x15ca('0x20'),(_0xb40b4a,_0x504b34,_0x35f802)=>!!_0x35f802||_0xb40b4a&&!_0x504b34),_0x53fe5e[_0x15ca('0x19')](_0x15ca('0x7'))['to'](this,_0x15ca('0x8'),_0xade755=>_0x51fce1(this[_0x15ca('0x1b')],_0xade755?_0x15ca('0x16'):_0x15ca('0x1c'))),_0x53fe5e['on'](_0x15ca('0xf'),(_0x5c6e4d,_0x4a9755)=>{this['fire'](_0x15ca('0x6'),_0x4a9755);}),_0x53fe5e['on'](_0x15ca('0x2'),()=>{this[_0x15ca('0xc')]();}),_0x53fe5e[_0x15ca('0x19')]('disabledSubmit')['to'](this[_0x15ca('0x1f')],_0x15ca('0x10')),_0x53fe5e['on'](_0x15ca('0x2'),_0x18b2c3=>{0x0==this['length']&&(this['fire'](_0x15ca('0x4')),_0x18b2c3['stop']());}),this['on'](_0x15ca('0xd'),(_0x500ffe,_0x43dc07,_0x4f411d)=>{_0x4f411d||this[_0x15ca('0x8')]||_0x53fe5e[_0x15ca('0x20')]||this[_0x15ca('0x12')]('removeCommentThread');}),_0x288ead;}}
23
+ const _0xb577=['change:isActive','Write\x20a\x20comment...','fire','locale','commentInputView','commentsListView','element','disabledSubmit','cancel','length','bind','hasDirtyComment','addComment','value','_createCommentThreadInputView','isDirty','delegate','placeholder','stop','_config','destroy','focus','commentThreadInputView','set','CommentView','isActive','isReadOnly','_model','showInput','removeCommentThread','updateComment','_localUser','Reply...','removeComment','assign'];(function(_0x1a3c1c,_0xb57782){const _0x19f18c=function(_0x5766db){while(--_0x5766db){_0x1a3c1c['push'](_0x1a3c1c['shift']());}};_0x19f18c(++_0xb57782);}(_0xb577,0xd2));const _0x19f1=function(_0x1a3c1c,_0xb57782){_0x1a3c1c=_0x1a3c1c-0x0;let _0x19f18c=_0xb577[_0x1a3c1c];return _0x19f18c;};import{View as _0x5515ae}from'ckeditor5/src/ui';import _0x226e80 from'./commentthreadinputview';import _0x1d2b29 from'./commentslistview';import{getTranslation as _0x3e0570}from'../../../utils/common-translations';export default class Rt extends _0x5515ae{constructor(_0x1970c8,_0x30946d,_0x446d6a,_0x408d91){super(_0x1970c8),this[_0x19f1('0x17')](_0x19f1('0x19'),!0x1),this[_0x19f1('0x17')](_0x19f1('0xf'),!0x1),this[_0x19f1('0x1b')]=_0x30946d,this[_0x19f1('0x1f')]=_0x446d6a,this['_config']=_0x408d91,this['commentsListView']=new _0x1d2b29(_0x1970c8,_0x30946d,Object[_0x19f1('0x22')]({'CommentView':this[_0x19f1('0x13')][_0x19f1('0x18')]},_0x408d91)),this[_0x19f1('0x5')][_0x19f1('0x10')](_0x19f1('0x21'))['to'](this),this['commentsListView'][_0x19f1('0x10')](_0x19f1('0x1e'))['to'](this),this[_0x19f1('0x5')][_0x19f1('0xa')](_0x19f1('0x19'))['to'](this),this[_0x19f1('0x17')](_0x19f1('0x9'),this['commentsListView'][_0x19f1('0x9')]),this[_0x19f1('0xa')](_0x19f1('0x9'))['to'](this[_0x19f1('0x5')],_0x19f1('0x9')),this[_0x19f1('0x16')]=this[_0x19f1('0xe')](),this['on'](_0x19f1('0x21'),()=>this[_0x19f1('0x15')]()),this[_0x19f1('0xa')](_0x19f1('0xf'))['to'](this[_0x19f1('0x5')],_0x19f1('0xb'),this[_0x19f1('0x16')][_0x19f1('0x4')],'value',(_0x5b7dd8,_0x2db6b9)=>_0x5b7dd8||!!_0x2db6b9);}[_0x19f1('0x15')](){this[_0x19f1('0x6')]['focus']();}['destroy'](){this[_0x19f1('0xf')]=!0x1,this['commentsListView'][_0x19f1('0x14')](),this[_0x19f1('0x16')]['destroy'](),super[_0x19f1('0x14')]();}['_createCommentThreadInputView'](){const _0x4d7fa3=new _0x226e80(this['locale'],this[_0x19f1('0x1f')],this[_0x19f1('0x13')]['editorConfig']),_0x14647c=_0x4d7fa3[_0x19f1('0x4')];return _0x4d7fa3[_0x19f1('0xa')](_0x19f1('0x1c'))['to'](this,_0x19f1('0x19'),this['_model'],_0x19f1('0x1a'),_0x14647c,_0x19f1('0xd'),(_0x5d880d,_0x4f7674,_0x7a45e0)=>!!_0x7a45e0||_0x5d880d&&!_0x4f7674),_0x14647c[_0x19f1('0xa')](_0x19f1('0x11'))['to'](this,_0x19f1('0x9'),_0x7ad9b4=>_0x3e0570(this[_0x19f1('0x3')],_0x7ad9b4?_0x19f1('0x20'):_0x19f1('0x1'))),_0x14647c['on']('submit',(_0x115803,_0x3e7a45)=>{this['fire'](_0x19f1('0xc'),_0x3e7a45);}),_0x14647c['on'](_0x19f1('0x8'),()=>{this['focus']();}),_0x14647c[_0x19f1('0xa')](_0x19f1('0x7'))['to'](this[_0x19f1('0x1b')],'isReadOnly'),_0x14647c['on'](_0x19f1('0x8'),_0x11dca5=>{0x0==this[_0x19f1('0x9')]&&(this[_0x19f1('0x2')](_0x19f1('0x1d')),_0x11dca5[_0x19f1('0x12')]());}),this['on'](_0x19f1('0x0'),(_0x221967,_0x4f34d5,_0x88719b)=>{_0x88719b||this[_0x19f1('0x9')]||_0x14647c['value']||this[_0x19f1('0x2')]('removeCommentThread');}),_0x4d7fa3;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0xd06d=['_createCommentContentView','add','locale','visibleView','isReadOnly','createCollection','disabledSubmit','once','_config','editorConfig','remove','submit','set','cancel','initialData','_createCommentInputView','_model','switchToDisplayMode','destroy','createEditor','content','element','switchToEditMode','isCollapsed','maxCommentCharsWhenCollapsed','bind','isEditMode','value','fire','focus','editorReady','updateComment'];(function(_0x3273a0,_0xd06d8f){const _0x5b7318=function(_0x32ecbb){while(--_0x32ecbb){_0x3273a0['push'](_0x3273a0['shift']());}};_0x5b7318(++_0xd06d8f);}(_0xd06d,0x138));const _0x5b73=function(_0x3273a0,_0xd06d8f){_0x3273a0=_0x3273a0-0x0;let _0x5b7318=_0xd06d[_0x3273a0];return _0x5b7318;};import{View as _0x4b4eec}from'ckeditor5/src/ui';import{trimHtml as _0x1e4854}from'ckeditor5-collaboration/src/collaboration-core';import _0x38e1fa from'./commentcontentview';import _0x4c5932 from'./commentinputview';export default class St extends _0x4b4eec{constructor(_0x3938c9,_0x51116e,_0x2b03bd){super(_0x3938c9),this[_0x5b73('0x18')]=_0x51116e,this[_0x5b73('0x10')]=_0x2b03bd,this[_0x5b73('0x14')](_0x5b73('0x2'),!0x1),this['set'](_0x5b73('0x1f'),!0x0),this[_0x5b73('0xb')]=this[_0x5b73('0xd')](),this['visibleView'][_0x5b73('0x9')](this[_0x5b73('0x8')]());}['expand'](){this[_0x5b73('0x1f')]=!0x1;}['collapse'](){this[_0x5b73('0x2')]||(this[_0x5b73('0x1f')]=!0x0);}['focus'](){this[_0x5b73('0x1d')][_0x5b73('0x5')]();}async['destroy'](){await this['visibleView']['get'](0x0)[_0x5b73('0x1a')](),super[_0x5b73('0x1a')]();}[_0x5b73('0x1e')](){this[_0x5b73('0x2')]||(this[_0x5b73('0x2')]=!0x0,this[_0x5b73('0xb')]['remove'](0x0)[_0x5b73('0x1a')](),this[_0x5b73('0xb')][_0x5b73('0x9')](this[_0x5b73('0x17')]()));}[_0x5b73('0x19')](){this[_0x5b73('0x2')]&&(this['isEditMode']=!0x1,this[_0x5b73('0xb')][_0x5b73('0x12')](0x0)[_0x5b73('0x1a')](),this[_0x5b73('0xb')]['add'](this[_0x5b73('0x8')]()));}[_0x5b73('0x8')](){const _0x9480a1=new _0x38e1fa(this[_0x5b73('0xa')]);return _0x9480a1[_0x5b73('0x1')]('content')['to'](this[_0x5b73('0x18')],_0x5b73('0x1c'),this,_0x5b73('0x1f'),(_0x4f3bb5,_0x3a654f)=>_0x3a654f?_0x1e4854(_0x4f3bb5,{'limit':this[_0x5b73('0x10')][_0x5b73('0x0')]}):_0x4f3bb5),_0x9480a1;}[_0x5b73('0x17')](){this[_0x5b73('0x10')]['editorConfig']||(this[_0x5b73('0x10')][_0x5b73('0x11')]={}),this[_0x5b73('0x10')][_0x5b73('0x11')][_0x5b73('0x16')]=this['_model'][_0x5b73('0x1c')];const _0x1f177e=new _0x4c5932(this['locale'],this['_config']['editorConfig']);return _0x1f177e[_0x5b73('0x3')]=this[_0x5b73('0x18')][_0x5b73('0x1c')],_0x1f177e[_0x5b73('0x1')](_0x5b73('0xe'))['to'](this[_0x5b73('0x18')],_0x5b73('0xc')),_0x1f177e['on'](_0x5b73('0x13'),(_0x2bdcd5,_0x5f3c0b)=>{this[_0x5b73('0x4')](_0x5b73('0x7'),this['_model']['id'],_0x5f3c0b),this[_0x5b73('0x19')](),this['focus']();}),_0x1f177e['on'](_0x5b73('0x15'),()=>{this[_0x5b73('0x19')](),this['focus']();}),_0x1f177e[_0x5b73('0xf')](_0x5b73('0x6'),()=>{_0x1f177e[_0x5b73('0x5')]();}),_0x1f177e[_0x5b73('0x1b')](),_0x1f177e;}}
23
+ const _0x5d79=['add','maxCommentCharsWhenCollapsed','editorReady','submit','switchToEditMode','visibleView','_model','expand','createCollection','_config','locale','_createCommentInputView','switchToDisplayMode','isCollapsed','createEditor','focus','fire','bind','destroy','isEditMode','content','updateComment','collapse','editorConfig','remove','disabledSubmit'];(function(_0x59f941,_0x5d79f4){const _0x2853d1=function(_0x5f2c64){while(--_0x5f2c64){_0x59f941['push'](_0x59f941['shift']());}};_0x2853d1(++_0x5d79f4);}(_0x5d79,0x7b));const _0x2853=function(_0x59f941,_0x5d79f4){_0x59f941=_0x59f941-0x0;let _0x2853d1=_0x5d79[_0x59f941];return _0x2853d1;};import{View as _0x403860}from'ckeditor5/src/ui';import{trimHtml as _0x186008}from'ckeditor5-collaboration/src/collaboration-core';import _0xd5e40d from'./commentcontentview';import _0xf335d from'./commentinputview';export default class Gt extends _0x403860{constructor(_0x22e8e7,_0x212064,_0x13f4b2){super(_0x22e8e7),this[_0x2853('0xd')]=_0x212064,this[_0x2853('0x10')]=_0x13f4b2,this['set'](_0x2853('0x0'),!0x1),this['set'](_0x2853('0x14'),!0x0),this[_0x2853('0xc')]=this[_0x2853('0xf')](),this[_0x2853('0xc')][_0x2853('0x7')](this['_createCommentContentView']());}[_0x2853('0xe')](){this[_0x2853('0x14')]=!0x1;}[_0x2853('0x3')](){this['isEditMode']||(this[_0x2853('0x14')]=!0x0);}[_0x2853('0x16')](){this['element'][_0x2853('0x16')]();}async[_0x2853('0x19')](){await this[_0x2853('0xc')]['get'](0x0)['destroy'](),super[_0x2853('0x19')]();}[_0x2853('0xb')](){this[_0x2853('0x0')]||(this['isEditMode']=!0x0,this[_0x2853('0xc')][_0x2853('0x5')](0x0)[_0x2853('0x19')](),this['visibleView'][_0x2853('0x7')](this['_createCommentInputView']()));}[_0x2853('0x13')](){this['isEditMode']&&(this['isEditMode']=!0x1,this[_0x2853('0xc')][_0x2853('0x5')](0x0)[_0x2853('0x19')](),this[_0x2853('0xc')][_0x2853('0x7')](this['_createCommentContentView']()));}['_createCommentContentView'](){const _0x41f00b=new _0xd5e40d(this[_0x2853('0x11')]);return _0x41f00b[_0x2853('0x18')](_0x2853('0x1'))['to'](this[_0x2853('0xd')],'content',this,_0x2853('0x14'),(_0x36e065,_0x5a0705)=>_0x5a0705?_0x186008(_0x36e065,{'limit':this['_config'][_0x2853('0x8')]}):_0x36e065),_0x41f00b;}[_0x2853('0x12')](){this['_config']['editorConfig']||(this[_0x2853('0x10')]['editorConfig']={}),this['_config'][_0x2853('0x4')]['initialData']=this[_0x2853('0xd')][_0x2853('0x1')];const _0x2269d4=new _0xf335d(this[_0x2853('0x11')],this[_0x2853('0x10')][_0x2853('0x4')]);return _0x2269d4['value']=this[_0x2853('0xd')][_0x2853('0x1')],_0x2269d4[_0x2853('0x18')](_0x2853('0x6'))['to'](this[_0x2853('0xd')],'isReadOnly'),_0x2269d4['on'](_0x2853('0xa'),(_0x3bb3e7,_0x4b3243)=>{this[_0x2853('0x17')](_0x2853('0x2'),this['_model']['id'],_0x4b3243),this[_0x2853('0x13')](),this[_0x2853('0x16')]();}),_0x2269d4['on']('cancel',()=>{this[_0x2853('0x13')](),this['focus']();}),_0x2269d4['once'](_0x2853('0x9'),()=>{_0x2269d4[_0x2853('0x16')]();}),_0x2269d4[_0x2853('0x15')](),_0x2269d4;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0xd5ae=['ck-thread__comment-count','bindTemplate','setTemplate','count'];(function(_0x5161ed,_0xd5ae1a){const _0x52f75e=function(_0x40f429){while(--_0x40f429){_0x5161ed['push'](_0x5161ed['shift']());}};_0x52f75e(++_0xd5ae1a);}(_0xd5ae,0x1ba));const _0x52f7=function(_0x5161ed,_0xd5ae1a){_0x5161ed=_0x5161ed-0x0;let _0x52f75e=_0xd5ae[_0x5161ed];return _0x52f75e;};import{View as _0x76fc9d}from'ckeditor5/src/ui';import{getTranslation as _0x38628d}from'../../../utils/common-translations';export default class Nt extends _0x76fc9d{constructor(_0x2079f0){super(_0x2079f0);const _0x18f006=this[_0x52f7('0x3')];this['set']('count'),this[_0x52f7('0x0')]({'tag':'li','attributes':{'class':_0x52f7('0x2')},'children':[{'text':_0x18f006['to'](_0x52f7('0x1'),_0x26c209=>_0x38628d(_0x2079f0,'NUMBER_OF_COMMENTS',_0x26c209))}]});}}
23
+ const _0x4f3a=['setTemplate'];(function(_0x5b9d58,_0x4f3ac9){const _0x2d2424=function(_0x54dae0){while(--_0x54dae0){_0x5b9d58['push'](_0x5b9d58['shift']());}};_0x2d2424(++_0x4f3ac9);}(_0x4f3a,0x1e5));const _0x2d24=function(_0x5b9d58,_0x4f3ac9){_0x5b9d58=_0x5b9d58-0x0;let _0x2d2424=_0x4f3a[_0x5b9d58];return _0x2d2424;};import{View as _0x8c1530}from'ckeditor5/src/ui';import{getTranslation as _0x5885fc}from'../../../utils/common-translations';export default class Nt extends _0x8c1530{constructor(_0x36b0f8){super(_0x36b0f8);const _0x4c9f98=this['bindTemplate'];this['set']('count'),this[_0x2d24('0x0')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4c9f98['to']('count',_0x26f0ec=>_0x5885fc(_0x36b0f8,'NUMBER_OF_COMMENTS',_0x26f0ec))}]});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x3bfa=['set','div','change:content','ck-annotation__content','ck-comment__content','element','content','innerHTML','setTemplate','render'];(function(_0x3d8a5f,_0x3bfa44){var _0x408e85=function(_0x34a89d){while(--_0x34a89d){_0x3d8a5f['push'](_0x3d8a5f['shift']());}};_0x408e85(++_0x3bfa44);}(_0x3bfa,0x166));var _0x408e=function(_0x3d8a5f,_0x3bfa44){_0x3d8a5f=_0x3d8a5f-0x0;var _0x408e85=_0x3bfa[_0x3d8a5f];return _0x408e85;};import{View as _0x334e70}from'ckeditor5/src/ui';export default class Et extends _0x334e70{constructor(_0x40a451){super(_0x40a451),this[_0x408e('0x2')](_0x408e('0x8'),''),this[_0x408e('0x0')]({'tag':_0x408e('0x3'),'attributes':{'class':[_0x408e('0x6'),_0x408e('0x5')]}});}[_0x408e('0x1')](){super[_0x408e('0x1')](),this['on'](_0x408e('0x4'),(_0x7f1be0,_0xa2a322,_0x544c8a)=>{this[_0x408e('0x7')][_0x408e('0x9')]=_0x544c8a;}),this[_0x408e('0x7')]['innerHTML']=this[_0x408e('0x8')];}}
23
+ var _0x4161=['ck-comment__content','setTemplate','ck-annotation__content','set','render','content','innerHTML','div','element','change:content'];(function(_0x57c9b0,_0x416172){var _0x569973=function(_0xe95d0f){while(--_0xe95d0f){_0x57c9b0['push'](_0x57c9b0['shift']());}};_0x569973(++_0x416172);}(_0x4161,0x1d5));var _0x5699=function(_0x57c9b0,_0x416172){_0x57c9b0=_0x57c9b0-0x0;var _0x569973=_0x4161[_0x57c9b0];return _0x569973;};import{View as _0xfbcb12}from'ckeditor5/src/ui';export default class Tt extends _0xfbcb12{constructor(_0x2646a0){super(_0x2646a0),this[_0x5699('0x4')](_0x5699('0x6'),''),this[_0x5699('0x2')]({'tag':_0x5699('0x8'),'attributes':{'class':[_0x5699('0x1'),_0x5699('0x3')]}});}[_0x5699('0x5')](){super[_0x5699('0x5')](),this['on'](_0x5699('0x0'),(_0x32b3be,_0x43301e,_0x5d5e4a)=>{this['element']['innerHTML']=_0x5d5e4a;}),this[_0x5699('0x9')][_0x5699('0x7')]=this['content'];}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x53e9=['high','focus','add','_isDestroyed','model','element','icon','document','value','showButtons','cancel','destroy','length','initialData','execute','insertBefore','Esc','create','set','submit','getData','div','Submit','focusTracker','bind','_editorConfig','Reply...','editorReady','submitButtonView','ck-comment__input-actions--cancel','shift\x20+\x20tab','focusPrevious','label','placeholder','editor','listenTo','ck-comment__input-actions','low','stop','setData','tab','isEnabled','render','fire','forEach','ck-comment__input-wrapper','_createSubmitButton','ck-comment__input-actions--submit','_editorCreationPromise','cancelButtonView','focusNext','bindTemplate','extendTemplate','firstChild','view','createEditor','keystrokes','Cancel','then','setTemplate','disabledSubmit','_initializeFocusCycling','change','trim'];(function(_0x6286e1,_0x53e91b){const _0x5adb88=function(_0x26d84d){while(--_0x26d84d){_0x6286e1['push'](_0x6286e1['shift']());}};_0x5adb88(++_0x53e91b);}(_0x53e9,0x7d));const _0x5adb=function(_0x6286e1,_0x53e91b){_0x6286e1=_0x6286e1-0x0;let _0x5adb88=_0x53e9[_0x6286e1];return _0x5adb88;};import{View as _0xf7076e,ViewCollection as _0x41f42d,FocusCycler as _0x180f67,ButtonView as _0x3b6b27}from'ckeditor5/src/ui';import{FocusTracker as _0x4965a3,KeystrokeHandler as _0x3fd838}from'ckeditor5/src/utils';import{icons as _0x3585bb}from'ckeditor5/src/core';import _0x442d62 from'../commenteditor/commenteditor';import{getTranslation as _0x12a40c}from'../../../utils/common-translations';export default class Tt extends _0xf7076e{constructor(_0x11e579,_0xd8b71d={}){super(_0x11e579),this[_0x5adb('0x25')]=null,this[_0x5adb('0x1c')]=_0xd8b71d,this[_0x5adb('0x3b')]=new _0x3fd838(),this[_0x5adb('0x1a')]=new _0x4965a3(),this[_0x5adb('0x15')](_0x5adb('0xb'),_0xd8b71d[_0x5adb('0x10')]||''),this[_0x5adb('0x15')](_0x5adb('0x3f'),!0x1),this[_0x5adb('0x15')](_0x5adb('0xc'),!0x0),this[_0x5adb('0x15')](_0x5adb('0x24'),_0x12a40c(_0x11e579,_0x5adb('0x1d'))),this[_0x5adb('0x1f')]=this['_createSubmitButton'](),this[_0x5adb('0x34')]=this['_createCancelButton'](),this[_0x5adb('0x3e')]({'tag':_0x5adb('0x18'),'attributes':{'class':[_0x5adb('0x30')]},'children':[{'tag':_0x5adb('0x18'),'attributes':{'class':[_0x5adb('0x27'),this[_0x5adb('0x36')]['if'](_0x5adb('0xc'),'ck-comment__input-actions--active')]},'children':[this[_0x5adb('0x1f')],this[_0x5adb('0x34')]]}]}),this[_0x5adb('0x3b')][_0x5adb('0x15')](_0x5adb('0x13'),(_0x54e9fe,_0x5708cf)=>{this['cancelButtonView'][_0x5adb('0x2e')]('execute'),_0x5708cf();}),this['on']('submit',(_0x5cb2ec,_0x34fd7f)=>{_0x34fd7f[_0x5adb('0xf')]>0xfde8?(alert(_0x12a40c(_0x11e579,'TOO_LONG_COMMENT_ALERT',[_0x34fd7f['length'],0xfde8])),_0x5cb2ec[_0x5adb('0x29')]()):this[_0x5adb('0x25')][_0x5adb('0x2a')]('');},{'priority':_0x5adb('0x3')});}[_0x5adb('0x2d')](){super[_0x5adb('0x2d')](),this['keystrokes'][_0x5adb('0x26')](this[_0x5adb('0x8')]),this[_0x5adb('0x1a')]['add'](this['element']);}[_0x5adb('0x3a')](){return this[_0x5adb('0x25')]||(this[_0x5adb('0x25')]=new _0x442d62(this[_0x5adb('0x1c')]),this[_0x5adb('0x33')]=this[_0x5adb('0x25')][_0x5adb('0x14')]()[_0x5adb('0x3d')](()=>{this[_0x5adb('0x6')]||(this['element'][_0x5adb('0x12')](this[_0x5adb('0x25')]['ui']['element'],this[_0x5adb('0x8')][_0x5adb('0x38')]),this[_0x5adb('0x25')][_0x5adb('0x7')][_0x5adb('0xa')]['on'](_0x5adb('0x1'),()=>this[_0x5adb('0xb')]=this[_0x5adb('0x25')][_0x5adb('0x17')]()),this[_0x5adb('0x25')]['bind'](_0x5adb('0x24'))['to'](this),this[_0x5adb('0x0')](this[_0x5adb('0x25')]),this['fire'](_0x5adb('0x1e')));})),this[_0x5adb('0x33')];}[_0x5adb('0x4')](){this[_0x5adb('0x25')]&&this['editor'][_0x5adb('0x4')]();}async[_0x5adb('0xe')](){this[_0x5adb('0x6')]||(this[_0x5adb('0x6')]=!0x0,this[_0x5adb('0x25')]&&(await this['_editorCreationPromise'],await this[_0x5adb('0x25')][_0x5adb('0xe')]()),await super[_0x5adb('0xe')]());}[_0x5adb('0x31')](){const {locale:_0x172188}=this,_0x163b3a=new _0x3b6b27(_0x172188);return _0x163b3a['extendTemplate']({'attributes':{'class':[_0x5adb('0x32')]}}),_0x163b3a[_0x5adb('0x23')]=_0x12a40c(_0x172188,_0x5adb('0x19')),_0x163b3a[_0x5adb('0x9')]=_0x3585bb['check'],_0x163b3a['on'](_0x5adb('0x11'),()=>{this['fire'](_0x5adb('0x16'),this['value']);}),_0x163b3a[_0x5adb('0x1b')](_0x5adb('0x2c'))['to'](this,'value',this,_0x5adb('0x3f'),(_0x5ced0e,_0x2bc5dd)=>!_0x2bc5dd&&!!_0x5ced0e[_0x5adb('0x2')]()),_0x163b3a;}['_createCancelButton'](){const {locale:_0x4c1d6a}=this,_0x2c7812=new _0x3b6b27(_0x4c1d6a);return _0x2c7812[_0x5adb('0x37')]({'attributes':{'class':[_0x5adb('0x20')]}}),_0x2c7812[_0x5adb('0x23')]=_0x12a40c(_0x4c1d6a,_0x5adb('0x3c')),_0x2c7812[_0x5adb('0x9')]=_0x3585bb[_0x5adb('0xd')],_0x2c7812['on'](_0x5adb('0x11'),()=>{this[_0x5adb('0x25')][_0x5adb('0x2a')](''),this[_0x5adb('0x2e')](_0x5adb('0xd'));}),_0x2c7812;}[_0x5adb('0x0')](_0x49c6df){const _0xea1e9f=this[_0x5adb('0x1a')],_0xf5c601=new _0x41f42d();[_0x49c6df['ui'][_0x5adb('0x39')],this[_0x5adb('0x1f')],this[_0x5adb('0x34')]][_0x5adb('0x2f')](_0x44865c=>{_0xf5c601[_0x5adb('0x5')](_0x44865c),_0xea1e9f[_0x5adb('0x5')](_0x44865c[_0x5adb('0x8')]);});const _0x20af2d=new _0x180f67({'focusables':_0xf5c601,'focusTracker':_0xea1e9f});this[_0x5adb('0x3b')]['set'](_0x5adb('0x2b'),(_0xead40a,_0x3cd361)=>{_0x20af2d[_0x5adb('0x35')](),_0x3cd361();},{'priority':'low'}),this[_0x5adb('0x3b')][_0x5adb('0x15')](_0x5adb('0x21'),(_0x39b1da,_0x28fe28)=>{_0x20af2d[_0x5adb('0x22')](),_0x28fe28();},{'priority':_0x5adb('0x28')});}}
23
+ const _0x14d3=['isEnabled','createEditor','length','_editorConfig','_createCancelButton','listenTo','ck-comment__input-actions--active','fire','editor','TOO_LONG_COMMENT_ALERT','placeholder','getData','_editorCreationPromise','Submit','destroy','label','bindTemplate','focus','document','render','model','Esc','then','value','trim','initialData','stop','div','bind','_createSubmitButton','focusNext','create','extendTemplate','check','add','keystrokes','forEach','insertBefore','cancelButtonView','setData','icon','focusPrevious','element','low','set','_initializeFocusCycling','ck-comment__input-actions--cancel','focusTracker','execute','submit','submitButtonView','_isDestroyed','view','showButtons','ck-comment__input-wrapper','cancel','firstChild','disabledSubmit'];(function(_0x22d4ae,_0x14d374){const _0x1259b6=function(_0x4041d7){while(--_0x4041d7){_0x22d4ae['push'](_0x22d4ae['shift']());}};_0x1259b6(++_0x14d374);}(_0x14d3,0xf6));const _0x1259=function(_0x22d4ae,_0x14d374){_0x22d4ae=_0x22d4ae-0x0;let _0x1259b6=_0x14d3[_0x22d4ae];return _0x1259b6;};import{View as _0x5d0f5f,ViewCollection as _0x584e43,FocusCycler as _0x504c2f,ButtonView as _0x5b7371}from'ckeditor5/src/ui';import{FocusTracker as _0x7d6fe9,KeystrokeHandler as _0x38a999}from'ckeditor5/src/utils';import{icons as _0x5025cf}from'ckeditor5/src/core';import _0x2a435d from'../commenteditor/commenteditor';import{getTranslation as _0x4525fb}from'../../../utils/common-translations';export default class St extends _0x5d0f5f{constructor(_0x24f5b5,_0x5634dc={}){super(_0x24f5b5),this[_0x1259('0x34')]=null,this[_0x1259('0x2f')]=_0x5634dc,this[_0x1259('0x15')]=new _0x38a999(),this[_0x1259('0x21')]=new _0x7d6fe9(),this['set']('value',_0x5634dc[_0x1259('0xb')]||''),this[_0x1259('0x1e')](_0x1259('0x2b'),!0x1),this[_0x1259('0x1e')]('showButtons',!0x0),this[_0x1259('0x1e')](_0x1259('0x36'),_0x4525fb(_0x24f5b5,'Reply...')),this[_0x1259('0x24')]=this[_0x1259('0xf')](),this[_0x1259('0x18')]=this[_0x1259('0x30')](),this['setTemplate']({'tag':_0x1259('0xd'),'attributes':{'class':[_0x1259('0x28')]},'children':[{'tag':_0x1259('0xd'),'attributes':{'class':['ck-comment__input-actions',this[_0x1259('0x2')]['if'](_0x1259('0x27'),_0x1259('0x32'))]},'children':[this[_0x1259('0x24')],this[_0x1259('0x18')]]}]}),this[_0x1259('0x15')][_0x1259('0x1e')](_0x1259('0x7'),(_0x240215,_0xe9d149)=>{this['cancelButtonView'][_0x1259('0x33')](_0x1259('0x22')),_0xe9d149();}),this['on'](_0x1259('0x23'),(_0x59f5a0,_0x5c8660)=>{_0x5c8660['length']>0xfde8?(alert(_0x4525fb(_0x24f5b5,_0x1259('0x35'),[_0x5c8660[_0x1259('0x2e')],0xfde8])),_0x59f5a0[_0x1259('0xc')]()):this[_0x1259('0x34')][_0x1259('0x19')]('');},{'priority':'high'});}[_0x1259('0x5')](){super[_0x1259('0x5')](),this[_0x1259('0x15')][_0x1259('0x31')](this[_0x1259('0x1c')]),this[_0x1259('0x21')]['add'](this[_0x1259('0x1c')]);}[_0x1259('0x2d')](){return this['editor']||(this['editor']=new _0x2a435d(this[_0x1259('0x2f')]),this[_0x1259('0x38')]=this['editor'][_0x1259('0x11')]()[_0x1259('0x8')](()=>{this[_0x1259('0x25')]||(this[_0x1259('0x1c')][_0x1259('0x17')](this[_0x1259('0x34')]['ui'][_0x1259('0x1c')],this[_0x1259('0x1c')][_0x1259('0x2a')]),this[_0x1259('0x34')][_0x1259('0x6')][_0x1259('0x4')]['on']('change',()=>this[_0x1259('0x9')]=this[_0x1259('0x34')][_0x1259('0x37')]()),this[_0x1259('0x34')][_0x1259('0xe')](_0x1259('0x36'))['to'](this),this[_0x1259('0x1f')](this[_0x1259('0x34')]),this[_0x1259('0x33')]('editorReady'));})),this['_editorCreationPromise'];}['focus'](){this[_0x1259('0x34')]&&this[_0x1259('0x34')][_0x1259('0x3')]();}async['destroy'](){this[_0x1259('0x25')]||(this[_0x1259('0x25')]=!0x0,this[_0x1259('0x34')]&&(await this[_0x1259('0x38')],await this[_0x1259('0x34')][_0x1259('0x0')]()),await super[_0x1259('0x0')]());}[_0x1259('0xf')](){const {locale:_0x163e2d}=this,_0xf42c69=new _0x5b7371(_0x163e2d);return _0xf42c69[_0x1259('0x12')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0xf42c69['label']=_0x4525fb(_0x163e2d,_0x1259('0x39')),_0xf42c69[_0x1259('0x1a')]=_0x5025cf[_0x1259('0x13')],_0xf42c69['on'](_0x1259('0x22'),()=>{this['fire'](_0x1259('0x23'),this['value']);}),_0xf42c69[_0x1259('0xe')](_0x1259('0x2c'))['to'](this,_0x1259('0x9'),this,_0x1259('0x2b'),(_0x13288a,_0x7873af)=>!_0x7873af&&!!_0x13288a[_0x1259('0xa')]()),_0xf42c69;}[_0x1259('0x30')](){const {locale:_0x320477}=this,_0x4e8a7b=new _0x5b7371(_0x320477);return _0x4e8a7b[_0x1259('0x12')]({'attributes':{'class':[_0x1259('0x20')]}}),_0x4e8a7b[_0x1259('0x1')]=_0x4525fb(_0x320477,'Cancel'),_0x4e8a7b[_0x1259('0x1a')]=_0x5025cf[_0x1259('0x29')],_0x4e8a7b['on']('execute',()=>{this[_0x1259('0x34')][_0x1259('0x19')](''),this['fire'](_0x1259('0x29'));}),_0x4e8a7b;}[_0x1259('0x1f')](_0x363ddc){const _0xf8fb83=this[_0x1259('0x21')],_0x1c5138=new _0x584e43();[_0x363ddc['ui'][_0x1259('0x26')],this[_0x1259('0x24')],this[_0x1259('0x18')]][_0x1259('0x16')](_0x5717d4=>{_0x1c5138['add'](_0x5717d4),_0xf8fb83[_0x1259('0x14')](_0x5717d4['element']);});const _0x3bf77a=new _0x504c2f({'focusables':_0x1c5138,'focusTracker':_0xf8fb83});this['keystrokes'][_0x1259('0x1e')]('tab',(_0x52bf1d,_0x5ddd96)=>{_0x3bf77a[_0x1259('0x10')](),_0x5ddd96();},{'priority':_0x1259('0x1d')}),this[_0x1259('0x15')][_0x1259('0x1e')]('shift\x20+\x20tab',(_0x244efa,_0x53bfbb)=>{_0x3bf77a[_0x1259('0x1b')](),_0x53bfbb();},{'priority':_0x1259('0x1d')});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x33a4=['locale','collapse','delegate','add','isEditMode','expand','stopListening','insert','hasDirtyComment','set','maxThreadTotalWeight','element','comments','setTemplate','_updateHasDirtyComment','viewUid','remove','_collapsedCommentsView','bind','_handleRemoveCommentModel','count','delete','equal','refreshVisibleViews','change:isActive','commentUpdated','visibleViews','editorConfig','_model','length','get','change:isEditMode','render','from','focus','formatDateTime','_rearrangeExpand','CommentView','_rearrangeCollapse','_config','createCollection','change:hasDirtyComment','removeComment','some','ck-thread__comments','_shouldCollapse','destroy','listenTo','commentViews'];(function(_0x1bee4c,_0x33a44b){const _0x2b13ca=function(_0x5ac793){while(--_0x5ac793){_0x1bee4c['push'](_0x1bee4c['shift']());}};_0x2b13ca(++_0x33a44b);}(_0x33a4,0xd9));const _0x2b13=function(_0x1bee4c,_0x33a44b){_0x1bee4c=_0x1bee4c-0x0;let _0x2b13ca=_0x33a4[_0x1bee4c];return _0x2b13ca;};import{View as _0x1f152c}from'ckeditor5/src/ui';import{diff as _0x18cf09,Collection as _0x46b51e}from'ckeditor5/src/utils';import _0x2711ee from'./collapsedcommentsview';export default class dt extends _0x1f152c{constructor(_0x6287aa,_0x12755a,_0x1ca63b){super(_0x6287aa),this[_0x2b13('0x25')](_0x2b13('0x24'),!0x1),this[_0x2b13('0x25')](_0x2b13('0x8'),_0x12755a[_0x2b13('0x28')][_0x2b13('0x8')]),this['set']('isActive',!0x1),this[_0x2b13('0x7')]=_0x12755a,this[_0x2b13('0x12')]=_0x1ca63b,this[_0x2b13('0x1b')]=this[_0x2b13('0x13')](),this[_0x2b13('0x5')]=this[_0x2b13('0x13')](),this[_0x2b13('0x2d')]=new _0x2711ee(_0x6287aa),this['_collapsedCommentsView'][_0x2b13('0x2e')](_0x2b13('0x30'))['to'](this,_0x2b13('0x8'),_0x21a002=>_0x21a002-this[_0x2b13('0x12')]['maxCommentsWhenCollapsed']);for(const _0x325062 of _0x12755a[_0x2b13('0x28')])this['_handleNewCommentModel'](_0x325062);this[_0x2b13('0x1a')](_0x12755a['comments'],_0x2b13('0x1f'),(_0xc365ce,_0x269c75)=>{this['length']++,this['_handleNewCommentModel'](_0x269c75),this['refreshVisibleViews']();}),this[_0x2b13('0x1a')](_0x12755a['comments'],_0x2b13('0x2c'),(_0x19f7f8,_0x3d170a)=>{this[_0x2b13('0x8')]--,this[_0x2b13('0x2f')](_0x3d170a),this[_0x2b13('0x2')]();}),this[_0x2b13('0x1a')](_0x12755a,_0x2b13('0x4'),()=>this[_0x2b13('0x2')]()),this['on'](_0x2b13('0x3'),()=>this[_0x2b13('0x2')]()),this['on'](_0x2b13('0x14'),()=>this[_0x2b13('0x2')]()),this[_0x2b13('0x29')]({'tag':'ul','attributes':{'class':[_0x2b13('0x17')]},'children':this[_0x2b13('0x5')]});}get[_0x2b13('0x18')](){return this[_0x2b13('0x7')]['weight']>this[_0x2b13('0x12')][_0x2b13('0x26')]&&!this['isActive']&&!this[_0x2b13('0x24')];}['render'](){super[_0x2b13('0xb')](),this['refreshVisibleViews']();}[_0x2b13('0xd')](){this[_0x2b13('0x27')][_0x2b13('0xd')]();}[_0x2b13('0x19')](){this[_0x2b13('0x2d')][_0x2b13('0x19')]();for(const _0x2bc273 of this['commentViews'])_0x2bc273[_0x2b13('0x19')]();super[_0x2b13('0x19')]();}[_0x2b13('0x2')](){this['_shouldCollapse']?this[_0x2b13('0x11')]():this[_0x2b13('0xf')]();}['_handleNewCommentModel'](_0x56ce3f){const _0xd21049=new this[(_0x2b13('0x12'))][(_0x2b13('0x10'))](this[_0x2b13('0x1c')],_0x56ce3f,{'maxCommentCharsWhenCollapsed':this[_0x2b13('0x12')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config'][_0x2b13('0xe')],'editorConfig':this['_config'][_0x2b13('0x6')]});_0xd21049[_0x2b13('0x2b')]=_0x56ce3f['id'],_0xd21049['delegate'](_0x2b13('0x15'))['to'](this),_0xd21049[_0x2b13('0x1e')]('updateComment')['to'](this),this[_0x2b13('0x1a')](_0xd21049,_0x2b13('0xa'),()=>this[_0x2b13('0x2a')]()),this[_0x2b13('0x1b')][_0x2b13('0x1f')](_0xd21049);}[_0x2b13('0x2f')](_0x393d8f){const _0x4c47ef=this[_0x2b13('0x1b')]['remove'](_0x393d8f['id']);this[_0x2b13('0x22')](_0x4c47ef),_0x4c47ef[_0x2b13('0x20')]&&this[_0x2b13('0x2a')](),_0x4c47ef['destroy']();}[_0x2b13('0x2a')](){this[_0x2b13('0x24')]=Array['from'](this[_0x2b13('0x1b')])[_0x2b13('0x16')](_0x39e59d=>_0x39e59d[_0x2b13('0x20')]);}[_0x2b13('0x11')](){const _0x5eff2b=function(_0x35ca90){const _0x3af767=new _0x46b51e();for(const _0x4baa35 of _0x35ca90)_0x3af767[_0x2b13('0x1f')](_0x4baa35);return _0x3af767;}(this[_0x2b13('0x1b')]),_0x2bf23f=this['_collapsedCommentsView'][_0x2b13('0x30')];for(let _0x2193ef=0x1;_0x2193ef<=_0x2bf23f;_0x2193ef++)_0x5eff2b[_0x2b13('0x2c')](0x1);for(const _0x3f7dfd of _0x5eff2b)_0x3f7dfd[_0x2b13('0x1d')]();_0x2bf23f>0x0&&_0x5eff2b[_0x2b13('0x1f')](this[_0x2b13('0x2d')],0x1),Wt(_0x18cf09(Array['from'](this[_0x2b13('0x5')]),Array[_0x2b13('0xc')](_0x5eff2b)),this['visibleViews'],_0x5eff2b);}[_0x2b13('0xf')](){Wt(_0x18cf09(Array[_0x2b13('0xc')](this['visibleViews']),Array[_0x2b13('0xc')](this[_0x2b13('0x1b')])),this[_0x2b13('0x5')],this['commentViews']);for(const _0x565eff of this[_0x2b13('0x5')])_0x565eff[_0x2b13('0x21')]();}}function Wt(_0x4f6716,_0xe75c34,_0x27d50a){let _0x93d130=0x0;for(const _0xfc4132 of _0x4f6716)switch(_0xfc4132){case _0x2b13('0x23'):_0xe75c34[_0x2b13('0x1f')](_0x27d50a[_0x2b13('0x9')](_0x93d130),_0x93d130),_0x93d130++;break;case _0x2b13('0x0'):_0xe75c34[_0x2b13('0x2c')](_0x93d130);break;case _0x2b13('0x1'):_0x93d130++;}}
23
+ const _0x77b5=['from','formatDateTime','element','createCollection','_collapsedCommentsView','_config','render','maxCommentCharsWhenCollapsed','destroy','delete','stopListening','equal','removeComment','_handleRemoveCommentModel','comments','change:isActive','focus','count','set','commentViews','listenTo','refreshVisibleViews','get','length','updateComment','hasDirtyComment','remove','maxThreadTotalWeight','add','_shouldCollapse','insert','_rearrangeCollapse','_updateHasDirtyComment','_handleNewCommentModel','_model','visibleViews','setTemplate','ck-thread__comments','delegate','maxCommentsWhenCollapsed','expand','collapse','isEditMode','editorConfig'];(function(_0x5aec50,_0x77b595){const _0x2a30cd=function(_0x41078d){while(--_0x41078d){_0x5aec50['push'](_0x5aec50['shift']());}};_0x2a30cd(++_0x77b595);}(_0x77b5,0x1e2));const _0x2a30=function(_0x5aec50,_0x77b595){_0x5aec50=_0x5aec50-0x0;let _0x2a30cd=_0x77b5[_0x5aec50];return _0x2a30cd;};import{View as _0x247425}from'ckeditor5/src/ui';import{diff as _0x52b6f4,Collection as _0x2ac3d6}from'ckeditor5/src/utils';import _0xb79c17 from'./collapsedcommentsview';export default class dt extends _0x247425{constructor(_0x3c84df,_0x66a886,_0x46d5d3){super(_0x3c84df),this['set']('hasDirtyComment',!0x1),this[_0x2a30('0x14')](_0x2a30('0x19'),_0x66a886[_0x2a30('0x10')][_0x2a30('0x19')]),this[_0x2a30('0x14')]('isActive',!0x1),this[_0x2a30('0x24')]=_0x66a886,this[_0x2a30('0x7')]=_0x46d5d3,this[_0x2a30('0x15')]=this[_0x2a30('0x5')](),this[_0x2a30('0x25')]=this['createCollection'](),this['_collapsedCommentsView']=new _0xb79c17(_0x3c84df),this[_0x2a30('0x6')]['bind']('count')['to'](this,_0x2a30('0x19'),_0x37f9e6=>_0x37f9e6-this[_0x2a30('0x7')][_0x2a30('0x29')]);for(const _0x117894 of _0x66a886[_0x2a30('0x10')])this[_0x2a30('0x23')](_0x117894);this[_0x2a30('0x16')](_0x66a886[_0x2a30('0x10')],_0x2a30('0x1e'),(_0x2fb22c,_0x2b667c)=>{this[_0x2a30('0x19')]++,this[_0x2a30('0x23')](_0x2b667c),this['refreshVisibleViews']();}),this['listenTo'](_0x66a886[_0x2a30('0x10')],'remove',(_0x929221,_0x1667b7)=>{this[_0x2a30('0x19')]--,this[_0x2a30('0xf')](_0x1667b7),this['refreshVisibleViews']();}),this[_0x2a30('0x16')](_0x66a886,'commentUpdated',()=>this[_0x2a30('0x17')]()),this['on'](_0x2a30('0x11'),()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this[_0x2a30('0x17')]()),this[_0x2a30('0x26')]({'tag':'ul','attributes':{'class':[_0x2a30('0x27')]},'children':this[_0x2a30('0x25')]});}get[_0x2a30('0x1f')](){return this['_model']['weight']>this[_0x2a30('0x7')][_0x2a30('0x1d')]&&!this['isActive']&&!this[_0x2a30('0x1b')];}[_0x2a30('0x8')](){super[_0x2a30('0x8')](),this[_0x2a30('0x17')]();}[_0x2a30('0x12')](){this[_0x2a30('0x4')][_0x2a30('0x12')]();}[_0x2a30('0xa')](){this[_0x2a30('0x6')]['destroy']();for(const _0x59a2ab of this['commentViews'])_0x59a2ab[_0x2a30('0xa')]();super[_0x2a30('0xa')]();}['refreshVisibleViews'](){this['_shouldCollapse']?this[_0x2a30('0x21')]():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x6b9ba9){const _0x5158b6=new this[(_0x2a30('0x7'))]['CommentView'](this['locale'],_0x6b9ba9,{'maxCommentCharsWhenCollapsed':this['_config'][_0x2a30('0x9')],'formatDateTime':this[_0x2a30('0x7')][_0x2a30('0x3')],'editorConfig':this['_config'][_0x2a30('0x1')]});_0x5158b6['viewUid']=_0x6b9ba9['id'],_0x5158b6['delegate'](_0x2a30('0xe'))['to'](this),_0x5158b6[_0x2a30('0x28')](_0x2a30('0x1a'))['to'](this),this['listenTo'](_0x5158b6,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this[_0x2a30('0x15')][_0x2a30('0x1e')](_0x5158b6);}['_handleRemoveCommentModel'](_0x581e6a){const _0x461bea=this[_0x2a30('0x15')]['remove'](_0x581e6a['id']);this[_0x2a30('0xc')](_0x461bea),_0x461bea[_0x2a30('0x0')]&&this[_0x2a30('0x22')](),_0x461bea[_0x2a30('0xa')]();}[_0x2a30('0x22')](){this['hasDirtyComment']=Array['from'](this[_0x2a30('0x15')])['some'](_0x4a44f5=>_0x4a44f5['isEditMode']);}[_0x2a30('0x21')](){const _0x331474=function(_0x3acb45){const _0x3ee11d=new _0x2ac3d6();for(const _0x2ef29b of _0x3acb45)_0x3ee11d[_0x2a30('0x1e')](_0x2ef29b);return _0x3ee11d;}(this[_0x2a30('0x15')]),_0x925e71=this[_0x2a30('0x6')][_0x2a30('0x13')];for(let _0x228e3b=0x1;_0x228e3b<=_0x925e71;_0x228e3b++)_0x331474[_0x2a30('0x1c')](0x1);for(const _0x2026b0 of _0x331474)_0x2026b0[_0x2a30('0x2b')]();_0x925e71>0x0&&_0x331474[_0x2a30('0x1e')](this[_0x2a30('0x6')],0x1),Wt(_0x52b6f4(Array[_0x2a30('0x2')](this['visibleViews']),Array[_0x2a30('0x2')](_0x331474)),this['visibleViews'],_0x331474);}['_rearrangeExpand'](){Wt(_0x52b6f4(Array['from'](this[_0x2a30('0x25')]),Array[_0x2a30('0x2')](this[_0x2a30('0x15')])),this[_0x2a30('0x25')],this[_0x2a30('0x15')]);for(const _0x50a5ca of this[_0x2a30('0x25')])_0x50a5ca[_0x2a30('0x2a')]();}}function Wt(_0x5279d9,_0x123614,_0xa15ff3){let _0x3b4d2b=0x0;for(const _0x244eae of _0x5279d9)switch(_0x244eae){case _0x2a30('0x20'):_0x123614[_0x2a30('0x1e')](_0xa15ff3[_0x2a30('0x18')](_0x3b4d2b),_0x3b4d2b),_0x3b4d2b++;break;case _0x2a30('0xb'):_0x123614[_0x2a30('0x1c')](_0x3b4d2b);break;case _0x2a30('0xd'):_0x3b4d2b++;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x2871=['destroy','div','change:showInput','showButtons','userView','createEditor','setTemplate','bind','extendTemplate','showInput','set','then','ck-comment__input-container--active','ck-comment__input-container','commentInputView','ck-thread__input'];(function(_0x2b77fb,_0x2871db){var _0x3c849d=function(_0x1132ef){while(--_0x1132ef){_0x2b77fb['push'](_0x2b77fb['shift']());}};_0x3c849d(++_0x2871db);}(_0x2871,0x11a));var _0x3c84=function(_0x2b77fb,_0x2871db){_0x2b77fb=_0x2b77fb-0x0;var _0x3c849d=_0x2871[_0x2b77fb];return _0x3c849d;};import{View as _0x294c76}from'ckeditor5/src/ui';import _0x385d7d from'./commentinputview';import{UserView as _0x26ce2f}from'ckeditor5-collaboration/src/collaboration-core';export default class ut extends _0x294c76{constructor(_0x59f686,_0x2c4202,_0x5c09e2){super(_0x59f686),this[_0x3c84('0x4')]=new _0x385d7d(_0x59f686,_0x5c09e2),this['commentInputView'][_0x3c84('0xd')](_0x3c84('0x9'))['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x20e0f4,_0x250221)=>_0x20e0f4||!!_0x250221),this[_0x3c84('0x0')](_0x3c84('0xf'),!0x1),this['on'](_0x3c84('0x8'),()=>{this[_0x3c84('0xf')]&&!this[_0x3c84('0x4')]['editor']&&this['commentInputView'][_0x3c84('0xb')]();}),this[_0x3c84('0xa')]=new _0x26ce2f(_0x59f686,_0x2c4202),this[_0x3c84('0xa')][_0x3c84('0xe')]({'attributes':{'class':'ck-thread__user'}}),this[_0x3c84('0x4')][_0x3c84('0xe')]({'attributes':{'class':_0x3c84('0x5')}}),this[_0x3c84('0xc')]({'tag':_0x3c84('0x7'),'attributes':{'class':[_0x3c84('0x3'),this['bindTemplate']['if'](_0x3c84('0xf'),_0x3c84('0x2'))]},'children':[this[_0x3c84('0xa')],this['commentInputView']]});}[_0x3c84('0x6')](){return this[_0x3c84('0x4')][_0x3c84('0x6')]()[_0x3c84('0x1')](()=>super[_0x3c84('0x6')]());}}
23
+ var _0x4830=['commentInputView','editor','userView','bind','ck-thread__input','extendTemplate','ck-comment__input-container','createEditor','set','change:showInput','showButtons','isFocused','value','then','showInput','div','setTemplate','destroy','bindTemplate','focusTracker'];(function(_0x23a24d,_0x4830ca){var _0x27fb77=function(_0x21eacc){while(--_0x21eacc){_0x23a24d['push'](_0x23a24d['shift']());}};_0x27fb77(++_0x4830ca);}(_0x4830,0xf9));var _0x27fb=function(_0x23a24d,_0x4830ca){_0x23a24d=_0x23a24d-0x0;var _0x27fb77=_0x4830[_0x23a24d];return _0x27fb77;};import{View as _0x44c319}from'ckeditor5/src/ui';import _0x7d30e2 from'./commentinputview';import{UserView as _0x2bdfb8}from'ckeditor5-collaboration/src/collaboration-core';export default class ut extends _0x44c319{constructor(_0xd609cc,_0x4e4d20,_0x529d0c){super(_0xd609cc),this[_0x27fb('0xb')]=new _0x7d30e2(_0xd609cc,_0x529d0c),this['commentInputView'][_0x27fb('0xe')](_0x27fb('0x1'))['to'](this['commentInputView'][_0x27fb('0xa')],_0x27fb('0x2'),this[_0x27fb('0xb')],_0x27fb('0x3'),(_0x24cb1e,_0x266c0f)=>_0x24cb1e||!!_0x266c0f),this[_0x27fb('0x13')](_0x27fb('0x5'),!0x1),this['on'](_0x27fb('0x0'),()=>{this['showInput']&&!this['commentInputView'][_0x27fb('0xc')]&&this['commentInputView'][_0x27fb('0x12')]();}),this[_0x27fb('0xd')]=new _0x2bdfb8(_0xd609cc,_0x4e4d20),this['userView'][_0x27fb('0x10')]({'attributes':{'class':'ck-thread__user'}}),this[_0x27fb('0xb')][_0x27fb('0x10')]({'attributes':{'class':_0x27fb('0xf')}}),this[_0x27fb('0x7')]({'tag':_0x27fb('0x6'),'attributes':{'class':[_0x27fb('0x11'),this[_0x27fb('0x9')]['if'](_0x27fb('0x5'),'ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['destroy'](){return this['commentInputView'][_0x27fb('0x8')]()[_0x27fb('0x4')](()=>super[_0x27fb('0x8')]());}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x369d=['ck-thread','.ck-thread__container','get','Write\x20a\x20comment...','Delete\x20comment\x20thread?','high','_model','add','then','getTemplate','listenTo','locale','removeButton','cancelConfirm','removeCommentThread','ck-thread--active','unbind','change:isActive','showConfirm','ck-thread--remove-confirmation','ck-thread--','_bindFirstCommentView','fire','containerElement','render','commentThreadInputView','div','setTemplate','ck-thread__container','commentsListView','length','isConfirm','bind','execute','_boundFirstCommentView','actionIndicator','change:isReadOnly','remove','element','isActive','_cancelAllConfirms','commentViews'];(function(_0xde0919,_0x369d13){const _0x24f965=function(_0x402753){while(--_0x402753){_0xde0919['push'](_0xde0919['shift']());}};_0x24f965(++_0x369d13);}(_0x369d,0x9e));const _0x24f9=function(_0xde0919,_0x369d13){_0xde0919=_0xde0919-0x0;let _0x24f965=_0x369d[_0xde0919];return _0x24f965;};import{mix as _0xb1454b}from'ckeditor5/src/utils';import{ConfirmMixin as _0x50dc11}from'ckeditor5-collaboration/src/collaboration-core';import _0x47a95a from'./basecommentthreadview';import{getTranslation as _0x2c4419}from'../../../utils/common-translations';export default class ot extends _0x47a95a{constructor(_0x1bbcb0,_0x5530aa,_0xe866e5,_0x556086){super(_0x1bbcb0,_0x5530aa,_0xe866e5,_0x556086),this['set'](_0x24f9('0x3'),null),this['containerElement']=null,this[_0x24f9('0x2')]=null,this[_0x24f9('0x15')]=_0x1bbcb0,this[_0x24f9('0x25')](this[_0x24f9('0x13')]()),this['on'](_0x24f9('0x1b'),(_0x226bd9,_0x4e66e5,_0x3f5aba)=>{_0x3f5aba||this[_0x24f9('0x8')]();}),this[_0x24f9('0x14')](this[_0x24f9('0x10')],_0x24f9('0x4'),(_0x2dd4a1,_0x340e68,_0x2584de)=>{_0x2584de&&this[_0x24f9('0x8')]();}),this[_0x24f9('0x28')]>0x0&&this[_0x24f9('0x1f')](),this[_0x24f9('0x14')](this[_0x24f9('0x27')][_0x24f9('0x9')],_0x24f9('0x11'),()=>{this['_bindFirstCommentView']();});}[_0x24f9('0x13')](){const _0x5e0c2e=this['bindTemplate'];return{'tag':'div','attributes':{'class':[_0x24f9('0xa'),_0x5e0c2e['if'](_0x24f9('0x7'),_0x24f9('0x19')),_0x5e0c2e['if'](_0x24f9('0x29'),_0x24f9('0x1d')),_0x5e0c2e['to']('actionIndicator',_0x4c863b=>_0x4c863b?_0x24f9('0x1e')+_0x4c863b:'')],'data-thread-id':this[_0x24f9('0x10')]['id'],'tabindex':-0x1},'children':[{'tag':_0x24f9('0x24'),'attributes':{'class':_0x24f9('0x26')},'children':[this[_0x24f9('0x27')],this[_0x24f9('0x23')]]}]};}['render'](){super[_0x24f9('0x22')](),this[_0x24f9('0x21')]=this[_0x24f9('0x6')]['querySelector'](_0x24f9('0xb'));}[_0x24f9('0x8')](){this['cancelConfirm']();for(const _0x1581d2 of this[_0x24f9('0x27')][_0x24f9('0x9')])_0x1581d2[_0x24f9('0x17')]();}['_bindFirstCommentView'](){const {locale:_0x58cf83}=this,_0x1dbde8=this[_0x24f9('0x27')][_0x24f9('0x9')][_0x24f9('0xc')](0x0);_0x1dbde8!==this[_0x24f9('0x2')]&&(this[_0x24f9('0x2')]=_0x1dbde8,this[_0x24f9('0x1a')](_0x24f9('0x3')),this[_0x24f9('0x0')](_0x24f9('0x3'))['to'](_0x1dbde8,_0x24f9('0x3'),_0x4becb7=>'remove'===_0x4becb7?_0x24f9('0x5'):null),_0x1dbde8['placeholder']=_0x2c4419(_0x58cf83,_0x24f9('0xd')),_0x1dbde8[_0x24f9('0x16')]['on'](_0x24f9('0x1'),_0x4f07fc=>{_0x4f07fc['stop'](),this[_0x24f9('0x1c')](_0x2c4419(_0x58cf83,_0x24f9('0xe')),this[_0x24f9('0x21')])[_0x24f9('0x12')](()=>{this[_0x24f9('0x20')](_0x24f9('0x18'));});},{'priority':_0x24f9('0xf')}));}}_0xb1454b(ot,_0x50dc11);
23
+ const _0x23cb=['actionIndicator','ck-thread__container','commentsListView','remove','locale','unbind','_model','fire','ck-thread','commentViews','ck-thread--','execute','change:isActive','Write\x20a\x20comment...','cancelConfirm','placeholder','querySelector','containerElement','stop','element','_boundFirstCommentView','Delete\x20comment\x20thread?','_cancelAllConfirms','bindTemplate','change:isReadOnly','listenTo','set','then','getTemplate','get','ck-thread--remove-confirmation','removeButton','ck-thread--active','div','showConfirm','length','commentThreadInputView','_bindFirstCommentView','render','add','removeCommentThread'];(function(_0x15843f,_0x23cb91){const _0x1708d1=function(_0x5cbc08){while(--_0x5cbc08){_0x15843f['push'](_0x15843f['shift']());}};_0x1708d1(++_0x23cb91);}(_0x23cb,0xbe));const _0x1708=function(_0x15843f,_0x23cb91){_0x15843f=_0x15843f-0x0;let _0x1708d1=_0x23cb[_0x15843f];return _0x1708d1;};import{mix as _0xc6623e}from'ckeditor5/src/utils';import{ConfirmMixin as _0x2638ea}from'ckeditor5-collaboration/src/collaboration-core';import _0xd79136 from'./basecommentthreadview';import{getTranslation as _0x282006}from'../../../utils/common-translations';export default class it extends _0xd79136{constructor(_0x1c6000,_0x281776,_0x369872,_0x24ae9b){super(_0x1c6000,_0x281776,_0x369872,_0x24ae9b),this[_0x1708('0x0')](_0x1708('0xf'),null),this[_0x1708('0x20')]=null,this[_0x1708('0x23')]=null,this[_0x1708('0x13')]=_0x1c6000,this['setTemplate'](this[_0x1708('0x2')]()),this['on'](_0x1708('0x1b'),(_0x1c0f63,_0x346242,_0x95258c)=>{_0x95258c||this['_cancelAllConfirms']();}),this[_0x1708('0x28')](this[_0x1708('0x15')],_0x1708('0x27'),(_0x19ec3e,_0x33c3fb,_0x8c137e)=>{_0x8c137e&&this[_0x1708('0x25')]();}),this[_0x1708('0x9')]>0x0&&this[_0x1708('0xb')](),this[_0x1708('0x28')](this[_0x1708('0x11')][_0x1708('0x18')],_0x1708('0xd'),()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x5ea0ad=this[_0x1708('0x26')];return{'tag':_0x1708('0x7'),'attributes':{'class':[_0x1708('0x17'),_0x5ea0ad['if']('isActive',_0x1708('0x6')),_0x5ea0ad['if']('isConfirm',_0x1708('0x4')),_0x5ea0ad['to'](_0x1708('0xf'),_0x1ed47a=>_0x1ed47a?_0x1708('0x19')+_0x1ed47a:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':_0x1708('0x7'),'attributes':{'class':_0x1708('0x10')},'children':[this['commentsListView'],this[_0x1708('0xa')]]}]};}[_0x1708('0xc')](){super['render'](),this['containerElement']=this[_0x1708('0x22')][_0x1708('0x1f')]('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x51cc5b of this[_0x1708('0x11')][_0x1708('0x18')])_0x51cc5b[_0x1708('0x1d')]();}[_0x1708('0xb')](){const {locale:_0x2efc5a}=this,_0x31a09c=this[_0x1708('0x11')][_0x1708('0x18')][_0x1708('0x3')](0x0);_0x31a09c!==this[_0x1708('0x23')]&&(this[_0x1708('0x23')]=_0x31a09c,this[_0x1708('0x14')](_0x1708('0xf')),this['bind'](_0x1708('0xf'))['to'](_0x31a09c,'actionIndicator',_0x32b5a2=>'remove'===_0x32b5a2?_0x1708('0x12'):null),_0x31a09c[_0x1708('0x1e')]=_0x282006(_0x2efc5a,_0x1708('0x1c')),_0x31a09c[_0x1708('0x5')]['on'](_0x1708('0x1a'),_0x503be5=>{_0x503be5[_0x1708('0x21')](),this[_0x1708('0x8')](_0x282006(_0x2efc5a,_0x1708('0x24')),this[_0x1708('0x20')])[_0x1708('0x1')](()=>{this[_0x1708('0x16')](_0x1708('0xe'));});},{'priority':'high'}));}}_0xc6623e(it,_0x2638ea);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x185f=['Reply...','cancelConfirm','_config','isRemovable','getExternalCommentNote','authoredAt','Delete\x20comment?','bindTemplate','change:isRemovable','_model','label','isExternal','_createCommentInputView','ck-comment__info-time','mouseleave','ck-annotation__info-name','pencil','locale','ck-comment__wrapper','importWord','attributes','edit','ck-annotation','editButton','icon','render','isEditMode','element','_createRemoveButton','removeButton','set','Remove','ck-comment__actions','extendTemplate','userView','_attachActions','ck-comment--','ck-comment--edit','switchToEditMode','EXTERNAL_IMPORT_WORD_AVATAR','ck-comment__actions--hidden','ck-comment__external','push','remove','formatDateTime','execute','source','_createEditButton','div','author','creator','EXTERNAL_COMMENT','ck-comment__user','@external','placeholder','ck-annotation__actions','EXTERNAL_IMPORT_WORD_COMMENT','ck-annotation__actions--hidden','EXTERNAL_AVATAR','ck-comment--remove','isEnabled','ck-annotation__content-wrapper','ck-annotation__info-time','bind','ck-comment','listenTo','Edit','focus','name','actionIndicator','isReadOnly','visibleView','isVisible','then','ck-comment__info-name','isEditable'];(function(_0x50701b,_0x185f24){const _0xabec8f=function(_0x2ee00b){while(--_0x2ee00b){_0x50701b['push'](_0x50701b['shift']());}};_0xabec8f(++_0x185f24);}(_0x185f,0x1b6));const _0xabec=function(_0x50701b,_0x185f24){_0x50701b=_0x50701b-0x0;let _0xabec8f=_0x185f[_0x50701b];return _0xabec8f;};import{mix as _0x592222}from'ckeditor5/src/utils';import{ButtonView as _0x5f31b0}from'ckeditor5/src/ui';import{icons as _0x19a870}from'ckeditor5/src/core';import{UserView as _0x2bb481,ConfirmMixin as _0x53bda4}from'ckeditor5-collaboration/src/collaboration-core';import _0x36bb5a from'./basecommentview';import _0x45890d from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x5ad3c1}from'../../../utils/common-translations';export default class it extends _0x36bb5a{constructor(_0x1f7b10,_0x1a3886,_0x4c1a5c){super(_0x1f7b10,_0x1a3886,_0x4c1a5c),this[_0xabec('0x30')](_0xabec('0xb'),null),this['set'](_0xabec('0x48'),_0x5ad3c1(_0x1f7b10,_0xabec('0x12'))),this['set'](_0xabec('0x17'),null),this[_0xabec('0x5')]('authoredAt')['to'](_0x1a3886),this['editButton']=this[_0xabec('0x41')](),this['removeButton']=this[_0xabec('0x2e')](),this[_0xabec('0x34')]=new _0x2bb481(_0x1f7b10,_0x1a3886[_0xabec('0x43')],this['getUserViewNotificationText']()),this[_0xabec('0x34')][_0xabec('0x33')]({'attributes':{'class':[_0xabec('0x46'),'ck-annotation__user']}}),this[_0xabec('0x7')](_0x1a3886,_0xabec('0x1a'),()=>this[_0xabec('0x13')]()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3bbd97=this[_0xabec('0x19')],_0x371980=[{'tag':_0xabec('0x42'),'attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this[_0xabec('0x34')][_0xabec('0xa')]}],'attributes':{'class':[_0xabec('0x10'),_0xabec('0x21')]}},{'tag':'time','attributes':{'datetime':_0x3bbd97['to'](_0xabec('0x17')),'class':[_0xabec('0x1f'),_0xabec('0x4')]},'children':[{'text':_0x3bbd97['to']('authoredAt',_0x32035a=>this[_0xabec('0x14')][_0xabec('0x3e')](_0x32035a))}]}]},{'tag':'div','attributes':{'class':[_0xabec('0x32'),_0xabec('0x49'),_0x3bbd97['if'](_0xabec('0x2c'),_0xabec('0x3a')),_0x3bbd97['if'](_0xabec('0x2c'),_0xabec('0x4b'))]},'children':[this[_0xabec('0x29')],this[_0xabec('0x2f')]]},{'tag':'div','attributes':{'class':[_0xabec('0x3')]},'children':this[_0xabec('0xd')]}];return this['_model'][_0xabec('0x1d')]&&_0x371980[_0xabec('0x3c')]({'tag':_0xabec('0x42'),'attributes':{'class':[_0xabec('0x3b')]},'children':[{'text':this[_0xabec('0x16')]()}]}),{'tag':'li','attributes':{'class':[_0xabec('0x24'),_0x3bbd97['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0xabec('0x42'),'attributes':{'class':[_0xabec('0x6'),_0xabec('0x28'),_0x3bbd97['if'](_0xabec('0x2c'),_0xabec('0x37')),_0x3bbd97['to'](_0xabec('0xb'),_0x1d4b03=>_0x1d4b03?_0xabec('0x36')+_0x1d4b03:'')],'data-author-id':this['_model'][_0xabec('0x43')]['id'],'data-comment-id':this[_0xabec('0x1b')]['id']},'children':[this['userView'],{'tag':_0xabec('0x42'),'attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x371980}]}]};}['_createEditButton'](){const _0x5cf776=new _0x5f31b0(this['locale']);return _0x5cf776['label']=_0x5ad3c1(this[_0xabec('0x23')],_0xabec('0x8')),_0x5cf776[_0xabec('0x2a')]=_0x19a870[_0xabec('0x22')],_0x5cf776[_0xabec('0x33')]({'attributes':{'class':_0xabec('0x37')}}),_0x5cf776[_0xabec('0x5')](_0xabec('0x2'))['to'](this['_model'],_0xabec('0xc'),_0x3495e6=>!_0x3495e6),_0x5cf776[_0xabec('0x5')](_0xabec('0xe'))['to'](this[_0xabec('0x1b')],_0xabec('0x11')),_0x5cf776['on']('execute',()=>this[_0xabec('0x38')]()),_0x5cf776;}[_0xabec('0x2e')](){const _0x36fc76=new _0x5f31b0(this['locale']);return _0x36fc76[_0xabec('0x1c')]=_0x5ad3c1(this[_0xabec('0x23')],_0xabec('0x31')),_0x36fc76[_0xabec('0x2a')]=_0x45890d,_0x36fc76[_0xabec('0x33')]({'attributes':{'class':_0xabec('0x1')}}),_0x36fc76['bind']('isEnabled')['to'](this[_0xabec('0x1b')],_0xabec('0xc'),_0x3ddd4f=>!_0x3ddd4f),_0x36fc76['bind']('isVisible')['to'](this[_0xabec('0x1b')],_0xabec('0x15')),_0x36fc76['on'](_0xabec('0x3f'),()=>{this['showConfirm'](_0x5ad3c1(this[_0xabec('0x23')],_0xabec('0x18')),this['element'])[_0xabec('0xf')](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x36fc76;}[_0xabec('0x35')](_0x49ed3b,_0x108b79){this[_0xabec('0x7')](_0x49ed3b,'mouseenter',()=>this[_0xabec('0xb')]=_0x108b79),this[_0xabec('0x7')](_0x49ed3b,_0xabec('0x9'),()=>this[_0xabec('0xb')]=_0x108b79),this[_0xabec('0x7')](_0x49ed3b,_0xabec('0x20'),()=>this[_0xabec('0xb')]=null),this[_0xabec('0x7')](_0x49ed3b,'blur',()=>this[_0xabec('0xb')]=null);}[_0xabec('0x1e')](){const _0x5a3584=super[_0xabec('0x1e')]();return _0x5a3584['bind'](_0xabec('0x48'))['to'](this),_0x5a3584;}[_0xabec('0x16')](){return _0xabec('0x25')===this[_0xabec('0x1b')][_0xabec('0x26')][_0xabec('0x47')][_0xabec('0x40')]?_0x5ad3c1(this[_0xabec('0x23')],_0xabec('0x4a')):_0x5ad3c1(this['locale'],_0xabec('0x45'));}['getUserViewNotificationText'](){return this['_model'][_0xabec('0x1d')]?'importWord'===this[_0xabec('0x1b')]['attributes']['@external']['source']?_0x5ad3c1(this['locale'],_0xabec('0x39'),this[_0xabec('0x1b')][_0xabec('0x44')]['name']):_0x5ad3c1(this['locale'],_0xabec('0x0'),this[_0xabec('0x1b')][_0xabec('0x44')][_0xabec('0xa')]):null;}['render'](){super[_0xabec('0x2b')](),this[_0xabec('0x35')](this[_0xabec('0x29')][_0xabec('0x2d')],_0xabec('0x27')),this['_attachActions'](this[_0xabec('0x2f')][_0xabec('0x2d')],_0xabec('0x3d'));}}_0x592222(it,_0x53bda4);
23
+ const _0x4766=['ck-comment__info-time','isEditMode','editButton','ck-comment__actions--hidden','ck-annotation__content-wrapper','ck-annotation','ck-annotation__info','push','source','time','extendTemplate','isVisible','@external','_model','ck-comment--edit','locale','div','ck-comment--','EXTERNAL_IMPORT_WORD_AVATAR','removeButton','Reply...','_config','ck-annotation__main','Edit','listenTo','placeholder','bindTemplate','isRemovable','ck-annotation__actions--hidden','ck-comment__info','author','isExternal','pencil','_createCommentInputView','isEnabled','ck-comment--remove','focus','userView','element','Delete\x20comment?','getTemplate','_createEditButton','formatDateTime','isReadOnly','creator','set','showConfirm','change:isRemovable','isEditable','getExternalCommentNote','_attachActions','actionIndicator','then','Remove','cancelConfirm','visibleView','remove','span','ck-comment__user','ck-comment--remove-confirmation','_createRemoveButton','execute','name','importWord','icon','isConfirm','ck-comment__external','ck-comment__wrapper','authoredAt','bind','label','attributes','fire'];(function(_0x427390,_0x4766fc){const _0x416866=function(_0x53b1ae){while(--_0x53b1ae){_0x427390['push'](_0x427390['shift']());}};_0x416866(++_0x4766fc);}(_0x4766,0x75));const _0x4168=function(_0x427390,_0x4766fc){_0x427390=_0x427390-0x0;let _0x416866=_0x4766[_0x427390];return _0x416866;};import{mix as _0x363bf7}from'ckeditor5/src/utils';import{ButtonView as _0x36da23}from'ckeditor5/src/ui';import{icons as _0x1b12c7}from'ckeditor5/src/core';import{UserView as _0x26d65d,ConfirmMixin as _0x114c4d}from'ckeditor5-collaboration/src/collaboration-core';import _0x482ed6 from'./basecommentview';import _0x2ed031 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x2503ea}from'../../../utils/common-translations';export default class rt extends _0x482ed6{constructor(_0x1e890b,_0x35716e,_0x4e0e95){super(_0x1e890b,_0x35716e,_0x4e0e95),this['set'](_0x4168('0x7'),null),this[_0x4168('0x1')](_0x4168('0x36'),_0x2503ea(_0x1e890b,_0x4168('0x31'))),this['set'](_0x4168('0x18'),null),this[_0x4168('0x19')](_0x4168('0x18'))['to'](_0x35716e),this[_0x4168('0x1f')]=this[_0x4168('0x46')](),this[_0x4168('0x30')]=this[_0x4168('0x10')](),this['userView']=new _0x26d65d(_0x1e890b,_0x35716e[_0x4168('0x3b')],this['getUserViewNotificationText']()),this[_0x4168('0x42')][_0x4168('0x27')]({'attributes':{'class':[_0x4168('0xe'),'ck-annotation__user']}}),this[_0x4168('0x35')](_0x35716e,_0x4168('0x3'),()=>this[_0x4168('0xa')]()),this['setTemplate'](this[_0x4168('0x45')]());}['getTemplate'](){const _0x4f1221=this[_0x4168('0x37')],_0x675f31=[{'tag':_0x4168('0x2d'),'attributes':{'class':[_0x4168('0x3a'),_0x4168('0x23')]},'children':[{'tag':_0x4168('0xd'),'children':[{'text':this['userView'][_0x4168('0x12')]}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':_0x4168('0x26'),'attributes':{'datetime':_0x4f1221['to'](_0x4168('0x18')),'class':[_0x4168('0x1d'),'ck-annotation__info-time']},'children':[{'text':_0x4f1221['to'](_0x4168('0x18'),_0x43c47c=>this[_0x4168('0x32')][_0x4168('0x47')](_0x43c47c))}]}]},{'tag':_0x4168('0x2d'),'attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x4f1221['if'](_0x4168('0x1e'),_0x4168('0x20')),_0x4f1221['if'](_0x4168('0x1e'),_0x4168('0x39'))]},'children':[this[_0x4168('0x1f')],this[_0x4168('0x30')]]},{'tag':_0x4168('0x2d'),'attributes':{'class':[_0x4168('0x21')]},'children':this[_0x4168('0xb')]}];return this[_0x4168('0x2a')]['isExternal']&&_0x675f31[_0x4168('0x24')]({'tag':'div','attributes':{'class':[_0x4168('0x16')]},'children':[{'text':this[_0x4168('0x5')]()}]}),{'tag':'li','attributes':{'class':[_0x4168('0x17'),_0x4f1221['if'](_0x4168('0x15'),_0x4168('0xf'))],'tabindex':-0x1},'children':[{'tag':_0x4168('0x2d'),'attributes':{'class':['ck-comment',_0x4168('0x22'),_0x4f1221['if']('isEditMode',_0x4168('0x2b')),_0x4f1221['to'](_0x4168('0x7'),_0x1582a5=>_0x1582a5?_0x4168('0x2e')+_0x1582a5:'')],'data-author-id':this[_0x4168('0x2a')][_0x4168('0x3b')]['id'],'data-comment-id':this[_0x4168('0x2a')]['id']},'children':[this[_0x4168('0x42')],{'tag':_0x4168('0x2d'),'attributes':{'class':['ck-comment__main',_0x4168('0x33')]},'children':_0x675f31}]}]};}[_0x4168('0x46')](){const _0x4c5444=new _0x36da23(this[_0x4168('0x2c')]);return _0x4c5444[_0x4168('0x1a')]=_0x2503ea(this[_0x4168('0x2c')],_0x4168('0x34')),_0x4c5444[_0x4168('0x14')]=_0x1b12c7[_0x4168('0x3d')],_0x4c5444[_0x4168('0x27')]({'attributes':{'class':'ck-comment--edit'}}),_0x4c5444[_0x4168('0x19')](_0x4168('0x3f'))['to'](this[_0x4168('0x2a')],'isReadOnly',_0xf2c710=>!_0xf2c710),_0x4c5444['bind'](_0x4168('0x28'))['to'](this[_0x4168('0x2a')],_0x4168('0x4')),_0x4c5444['on'](_0x4168('0x11'),()=>this['switchToEditMode']()),_0x4c5444;}[_0x4168('0x10')](){const _0x23ddfe=new _0x36da23(this[_0x4168('0x2c')]);return _0x23ddfe[_0x4168('0x1a')]=_0x2503ea(this[_0x4168('0x2c')],_0x4168('0x9')),_0x23ddfe[_0x4168('0x14')]=_0x2ed031,_0x23ddfe[_0x4168('0x27')]({'attributes':{'class':_0x4168('0x40')}}),_0x23ddfe[_0x4168('0x19')](_0x4168('0x3f'))['to'](this[_0x4168('0x2a')],_0x4168('0x48'),_0x58719d=>!_0x58719d),_0x23ddfe['bind'](_0x4168('0x28'))['to'](this['_model'],_0x4168('0x38')),_0x23ddfe['on'](_0x4168('0x11'),()=>{this[_0x4168('0x2')](_0x2503ea(this[_0x4168('0x2c')],_0x4168('0x44')),this['element'])[_0x4168('0x8')](()=>{this[_0x4168('0x1c')]('removeComment',this[_0x4168('0x2a')]['id']);});}),_0x23ddfe;}[_0x4168('0x6')](_0x180833,_0x1ede3a){this[_0x4168('0x35')](_0x180833,'mouseenter',()=>this['actionIndicator']=_0x1ede3a),this[_0x4168('0x35')](_0x180833,_0x4168('0x41'),()=>this[_0x4168('0x7')]=_0x1ede3a),this[_0x4168('0x35')](_0x180833,'mouseleave',()=>this[_0x4168('0x7')]=null),this[_0x4168('0x35')](_0x180833,'blur',()=>this['actionIndicator']=null);}[_0x4168('0x3e')](){const _0x28b1d2=super['_createCommentInputView']();return _0x28b1d2[_0x4168('0x19')]('placeholder')['to'](this),_0x28b1d2;}[_0x4168('0x5')](){return _0x4168('0x13')===this[_0x4168('0x2a')][_0x4168('0x1b')]['@external'][_0x4168('0x25')]?_0x2503ea(this[_0x4168('0x2c')],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x2503ea(this[_0x4168('0x2c')],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this[_0x4168('0x2a')][_0x4168('0x3c')]?_0x4168('0x13')===this[_0x4168('0x2a')][_0x4168('0x1b')][_0x4168('0x29')]['source']?_0x2503ea(this[_0x4168('0x2c')],_0x4168('0x2f'),this[_0x4168('0x2a')]['creator']['name']):_0x2503ea(this[_0x4168('0x2c')],'EXTERNAL_AVATAR',this[_0x4168('0x2a')][_0x4168('0x0')][_0x4168('0x12')]):null;}['render'](){super['render'](),this[_0x4168('0x6')](this[_0x4168('0x1f')][_0x4168('0x43')],'edit'),this[_0x4168('0x6')](this[_0x4168('0x30')][_0x4168('0x43')],_0x4168('0xc'));}}_0x363bf7(rt,_0x114c4d);
package/src/comments.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x2052=['Comments'];(function(_0x434248,_0x20526a){var _0x19d836=function(_0x395be2){while(--_0x395be2){_0x434248['push'](_0x434248['shift']());}};_0x19d836(++_0x20526a);}(_0x2052,0x17e));var _0x19d8=function(_0x434248,_0x20526a){_0x434248=_0x434248-0x0;var _0x19d836=_0x2052[_0x434248];return _0x19d836;};import{Plugin as _0x50e709}from'ckeditor5/src/core';import _0x347148 from'./comments/commentsrepository';import _0x4e613c from'./comments/commentsediting';import _0x5416be from'./comments/commentsui';import _0xa2fa80 from'./commentsonly';import _0x29746e from'./annotations/widesidebar';import _0x5abd75 from'./annotations/narrowsidebar';import _0x17a9e6 from'./annotations/inlineannotations';export default class c extends _0x50e709{static get['requires'](){return[_0x347148,_0x4e613c,_0x5416be,_0xa2fa80,_0x29746e,_0x5abd75,_0x17a9e6];}static get['pluginName'](){return _0x19d8('0x0');}}
23
+ var _0x48a0=['requires','pluginName'];(function(_0x2cf15a,_0x48a017){var _0x172c44=function(_0x195f57){while(--_0x195f57){_0x2cf15a['push'](_0x2cf15a['shift']());}};_0x172c44(++_0x48a017);}(_0x48a0,0x120));var _0x172c=function(_0x2cf15a,_0x48a017){_0x2cf15a=_0x2cf15a-0x0;var _0x172c44=_0x48a0[_0x2cf15a];return _0x172c44;};import{Plugin as _0x59cc19}from'ckeditor5/src/core';import _0x20f33a from'./comments/commentsrepository';import _0x56276d from'./comments/commentsediting';import _0x1622ac from'./comments/commentsui';import _0x511d13 from'./commentsonly';import _0x37f78f from'./annotations/widesidebar';import _0x4fb377 from'./annotations/narrowsidebar';import _0x5d9a1f from'./annotations/inlineannotations';export default class c extends _0x59cc19{static get[_0x172c('0x0')](){return[_0x20f33a,_0x56276d,_0x1622ac,_0x511d13,_0x37f78f,_0x4fb377,_0x5d9a1f];}static get[_0x172c('0x1')](){return'Comments';}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x13a6=['highest','cut','editing','plugins','pluginName','set','get','view','commands','clipboardInput','stopListening','CommentsOnly','editor','requires','isEnabled','commentsOnly','DragDrop','document','change:isEnabled','listenTo','afterInit','forceDisabled','config','affectsData','stop','addCommentThread','has','_enableCommentsOnlyMode','commentsOnlyMode'];(function(_0x179636,_0x13a6bf){const _0x3e9165=function(_0x12672){while(--_0x12672){_0x179636['push'](_0x179636['shift']());}};_0x3e9165(++_0x13a6bf);}(_0x13a6,0xc7));const _0x3e91=function(_0x179636,_0x13a6bf){_0x179636=_0x179636-0x0;let _0x3e9165=_0x13a6[_0x179636];return _0x3e9165;};import{Plugin as _0x4989e4}from'ckeditor5/src/core';import _0x10711d from'./comments/commentsediting';export default class e extends _0x4989e4{static get[_0x3e91('0x8')](){return _0x3e91('0xf');}static get[_0x3e91('0x11')](){return[_0x10711d];}constructor(_0x22e150){super(_0x22e150),this[_0x3e91('0x9')]('isEnabled',null),this['on'](_0x3e91('0x16'),(_0x26c970,_0x386b73,_0x1c4593)=>{_0x1c4593?this[_0x3e91('0x2')]():this['_disableCommentsOnlyMode']();});}[_0x3e91('0x18')](){null===this[_0x3e91('0x12')]&&(this[_0x3e91('0x12')]=!!this[_0x3e91('0x10')][_0x3e91('0x1a')][_0x3e91('0xa')](_0x3e91('0x13')));}[_0x3e91('0x2')](){for(const [_0x1c1121,_0x3ffb00]of this[_0x3e91('0x10')][_0x3e91('0xc')])_0x3ffb00[_0x3e91('0x1b')]&&_0x3e91('0x0')!==_0x1c1121&&_0x3ffb00[_0x3e91('0x19')](_0x3e91('0x3'));this['editor']['plugins'][_0x3e91('0x1')](_0x3e91('0x14'))&&this[_0x3e91('0x10')][_0x3e91('0x7')][_0x3e91('0xa')]('DragDrop')[_0x3e91('0x19')](_0x3e91('0x3'));const _0x357632=this['editor'][_0x3e91('0x6')]['view'][_0x3e91('0x15')];this[_0x3e91('0x17')](_0x357632,_0x3e91('0x5'),_0x40c334=>_0x40c334['stop'](),{'priority':_0x3e91('0x4')}),this[_0x3e91('0x17')](_0x357632,_0x3e91('0xd'),_0x348c63=>_0x348c63[_0x3e91('0x1c')](),{'priority':_0x3e91('0x4')}),this[_0x3e91('0x17')](_0x357632,'delete',_0x4da423=>_0x4da423['stop'](),{'priority':_0x3e91('0x4')});}['_disableCommentsOnlyMode'](){for(const [_0x3f75c8,_0x10cfd6]of this[_0x3e91('0x10')][_0x3e91('0xc')])_0x10cfd6[_0x3e91('0x1b')]&&_0x3e91('0x0')!==_0x3f75c8&&_0x10cfd6['clearForceDisabled'](_0x3e91('0x3'));this[_0x3e91('0xe')](this[_0x3e91('0x10')][_0x3e91('0x6')][_0x3e91('0xb')][_0x3e91('0x15')]);}}
23
+ const _0x2581=['stop','document','_disableCommentsOnlyMode','DragDrop','forceDisabled','stopListening','_enableCommentsOnlyMode','plugins','addCommentThread','get','set','change:isEnabled','clearForceDisabled','view','isEnabled','affectsData','commentsOnly','cut','commentsOnlyMode','editing','highest','editor','delete','listenTo','requires','commands','CommentsOnly'];(function(_0x5b01b6,_0x2581e0){const _0x53fb6c=function(_0x4fdaba){while(--_0x4fdaba){_0x5b01b6['push'](_0x5b01b6['shift']());}};_0x53fb6c(++_0x2581e0);}(_0x2581,0x1e2));const _0x53fb=function(_0x5b01b6,_0x2581e0){_0x5b01b6=_0x5b01b6-0x0;let _0x53fb6c=_0x2581[_0x5b01b6];return _0x53fb6c;};import{Plugin as _0x33e6c2}from'ckeditor5/src/core';import _0x2426e7 from'./comments/commentsediting';export default class e extends _0x33e6c2{static get['pluginName'](){return _0x53fb('0x3');}static get[_0x53fb('0x1')](){return[_0x2426e7];}constructor(_0x212ab2){super(_0x212ab2),this[_0x53fb('0xe')](_0x53fb('0x12'),null),this['on'](_0x53fb('0xf'),(_0x1ba476,_0xe5dccd,_0x44ff4e)=>{_0x44ff4e?this[_0x53fb('0xa')]():this[_0x53fb('0x6')]();});}['afterInit'](){null===this[_0x53fb('0x12')]&&(this[_0x53fb('0x12')]=!!this[_0x53fb('0x19')]['config'][_0x53fb('0xd')](_0x53fb('0x14')));}[_0x53fb('0xa')](){for(const [_0x21b7ba,_0x1cb78a]of this[_0x53fb('0x19')]['commands'])_0x1cb78a[_0x53fb('0x13')]&&_0x53fb('0xc')!==_0x21b7ba&&_0x1cb78a['forceDisabled'](_0x53fb('0x16'));this['editor']['plugins']['has'](_0x53fb('0x7'))&&this[_0x53fb('0x19')][_0x53fb('0xb')][_0x53fb('0xd')](_0x53fb('0x7'))[_0x53fb('0x8')](_0x53fb('0x16'));const _0x4f9182=this[_0x53fb('0x19')][_0x53fb('0x17')]['view'][_0x53fb('0x5')];this['listenTo'](_0x4f9182,_0x53fb('0x15'),_0xa3b560=>_0xa3b560['stop'](),{'priority':_0x53fb('0x18')}),this['listenTo'](_0x4f9182,'clipboardInput',_0x1d2544=>_0x1d2544[_0x53fb('0x4')](),{'priority':_0x53fb('0x18')}),this[_0x53fb('0x0')](_0x4f9182,_0x53fb('0x1a'),_0x2b4f24=>_0x2b4f24[_0x53fb('0x4')](),{'priority':_0x53fb('0x18')});}[_0x53fb('0x6')](){for(const [_0x4c0713,_0x42975a]of this['editor'][_0x53fb('0x2')])_0x42975a[_0x53fb('0x13')]&&'addCommentThread'!==_0x4c0713&&_0x42975a[_0x53fb('0x10')](_0x53fb('0x16'));this[_0x53fb('0x9')](this['editor'][_0x53fb('0x17')][_0x53fb('0x11')][_0x53fb('0x5')]);}}
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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(_0x140af4,_0x52f97f,_0x4961bf){const t=_0x140af4['t'];switch(_0x52f97f){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Remove':return t('Remove');case'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x4961bf);case'TOO_LONG_COMMENT_ALERT':return 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'},_0x4961bf);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4961bf);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4961bf);}}
23
+ export function getTranslation(_0x322da9,_0x5eee15,_0x51518a){const t=_0x322da9['t'];switch(_0x5eee15){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Remove':return t('Remove');case'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x51518a);case'TOO_LONG_COMMENT_ALERT':return 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'},_0x51518a);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x51518a);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x51518a);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x7a4c=['disconnect','attributeName','type','cancel'];(function(_0x157b46,_0x7a4cad){const _0x5c89c8=function(_0x2f6528){while(--_0x2f6528){_0x157b46['push'](_0x157b46['shift']());}};_0x5c89c8(++_0x7a4cad);}(_0x7a4c,0xbe));const _0x5c89=function(_0x157b46,_0x7a4cad){_0x157b46=_0x157b46-0x0;let _0x5c89c8=_0x7a4c[_0x157b46];return _0x5c89c8;};import{throttle as _0x502cd1}from'lodash-es';export default function ht(_0x30fe6e){const _0x5b3f31=_0x502cd1(_0x30fe6e,0x1e),_0x3b106b=new MutationObserver(_0x2684f6=>{for(const _0x5d4519 of _0x2684f6)('attributes'==_0x5d4519['type']&&'class'==_0x5d4519[_0x5c89('0x3')]||'childList'==_0x5d4519[_0x5c89('0x0')])&&_0x5b3f31();});return{'attach'(_0x1cd612){_0x3b106b['observe'](_0x1cd612,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x3b106b[_0x5c89('0x2')](),_0x5b3f31[_0x5c89('0x1')]();}};}
23
+ const _0x167a=['observe','childList','cancel','attributeName'];(function(_0x1f4df3,_0x167a09){const _0xa39ea8=function(_0x6e2b50){while(--_0x6e2b50){_0x1f4df3['push'](_0x1f4df3['shift']());}};_0xa39ea8(++_0x167a09);}(_0x167a,0xe7));const _0xa39e=function(_0x1f4df3,_0x167a09){_0x1f4df3=_0x1f4df3-0x0;let _0xa39ea8=_0x167a[_0x1f4df3];return _0xa39ea8;};import{throttle as _0x585607}from'lodash-es';export default function lt(_0x3c3dd1){const _0x57018d=_0x585607(_0x3c3dd1,0x1e),_0x7d3790=new MutationObserver(_0x103e55=>{for(const _0x1efbc3 of _0x103e55)('attributes'==_0x1efbc3['type']&&'class'==_0x1efbc3[_0xa39e('0x0')]||_0xa39e('0x2')==_0x1efbc3['type'])&&_0x57018d();});return{'attach'(_0x43adee){_0x7d3790[_0xa39e('0x1')](_0x43adee,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x7d3790['disconnect'](),_0x57018d[_0xa39e('0x3')]();}};}
@@ -41,9 +41,11 @@
41
41
  }
42
42
 
43
43
  .ck .ck-annotation__main {
44
- display: flex;
45
- flex-wrap: wrap;
46
- justify-content: space-between;
44
+ display: grid;
45
+ grid-template-areas:
46
+ "info actions"
47
+ "content content";
48
+ grid-template-columns: minmax(0, 1fr) auto;
47
49
 
48
50
  /* #1829. Firefox is wrongly rendering flex container width 100% with overflowed (non-spaced) text. */
49
51
  width: calc( 100% - var(--ck-user-avatar-size) );
@@ -69,6 +71,8 @@
69
71
  }
70
72
 
71
73
  .ck .ck-annotation__info {
74
+ grid-area: info;
75
+
72
76
  display: flex;
73
77
  align-items: center;
74
78
  color: var(--ck-color-annotation-info);
@@ -80,27 +84,40 @@
80
84
  .ck .ck-annotation__info-name,
81
85
  .ck .ck-annotation__info-time {
82
86
  font-weight: bold;
83
- max-width: 150px;
84
87
  white-space: nowrap;
85
88
  overflow: hidden;
86
- text-overflow: ellipsis;
87
89
 
88
90
  /* We need it to prevent `.ck.ck-reset` ovverride. */
89
91
  color: var(--ck-color-annotation-info);
90
92
  font-size: var(--ck-font-size-small);
91
93
  }
92
94
 
95
+ .ck .ck-annotation__info-name {
96
+ text-overflow: ellipsis;
97
+ }
98
+
93
99
  .ck .ck-annotation__info-time {
94
- margin-left: var(--ck-spacing-large);
100
+ flex: 0 0 auto;
101
+
102
+ margin: 0 var(--ck-spacing-large);
103
+ }
104
+
105
+ .ck.ck-balloon-panel .ck-annotation-wrapper .ck-annotation__info-name,
106
+ .ck.ck-balloon-panel .ck-annotation-wrapper .ck-annotation__info-time {
107
+ white-space: nowrap;
95
108
  }
96
109
 
97
110
  .ck .ck-annotation__actions {
111
+ grid-area: actions;
112
+
98
113
  transition: opacity 200ms ease;
99
114
  opacity: 0.5;
100
115
  }
101
116
 
102
117
  /* Because of display flex, we need to strech out annotation content to 100%. */
103
118
  .ck .ck-annotation__content-wrapper {
119
+ grid-area: content;
120
+
104
121
  width: 100%;
105
122
  }
106
123