@ckeditor/ckeditor5-comments 35.3.2 → 35.4.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 (129) hide show
  1. package/build/comments.js +2 -1
  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/ar.po +3 -3
  55. package/lang/translations/bg.po +3 -3
  56. package/lang/translations/bn.po +3 -3
  57. package/lang/translations/ca.po +3 -3
  58. package/lang/translations/cs.po +3 -3
  59. package/lang/translations/da.po +3 -3
  60. package/lang/translations/de.po +3 -3
  61. package/lang/translations/el.po +3 -3
  62. package/lang/translations/es.po +3 -3
  63. package/lang/translations/et.po +3 -3
  64. package/lang/translations/fi.po +3 -3
  65. package/lang/translations/fr.po +3 -3
  66. package/lang/translations/he.po +3 -3
  67. package/lang/translations/hi.po +3 -3
  68. package/lang/translations/hu.po +3 -3
  69. package/lang/translations/id.po +3 -3
  70. package/lang/translations/it.po +3 -3
  71. package/lang/translations/ja.po +3 -3
  72. package/lang/translations/ko.po +3 -3
  73. package/lang/translations/lt.po +3 -3
  74. package/lang/translations/lv.po +3 -3
  75. package/lang/translations/ms.po +3 -3
  76. package/lang/translations/nl.po +3 -3
  77. package/lang/translations/no.po +3 -3
  78. package/lang/translations/pl.po +3 -3
  79. package/lang/translations/pt-br.po +3 -3
  80. package/lang/translations/pt.po +3 -3
  81. package/lang/translations/ro.po +3 -3
  82. package/lang/translations/ru.po +3 -3
  83. package/lang/translations/sk.po +3 -3
  84. package/lang/translations/sr.po +3 -3
  85. package/lang/translations/sv.po +3 -3
  86. package/lang/translations/th.po +3 -3
  87. package/lang/translations/tr.po +3 -3
  88. package/lang/translations/uk.po +3 -3
  89. package/lang/translations/vi.po +3 -3
  90. package/lang/translations/zh-cn.po +3 -3
  91. package/lang/translations/zh.po +3 -3
  92. package/package.json +3 -3
  93. package/src/annotations/annotation.js +1 -1
  94. package/src/annotations/annotationcollection.js +1 -1
  95. package/src/annotations/annotations.js +1 -1
  96. package/src/annotations/annotationsuis.js +1 -1
  97. package/src/annotations/editorannotations.js +1 -1
  98. package/src/annotations/inlineannotations.js +1 -1
  99. package/src/annotations/narrowsidebar.js +1 -1
  100. package/src/annotations/sidebar.js +1 -1
  101. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  102. package/src/annotations/view/annotationview.js +1 -1
  103. package/src/annotations/view/sidebaritemview.js +1 -1
  104. package/src/annotations/view/sidebarview.js +1 -1
  105. package/src/annotations/widesidebar.js +1 -1
  106. package/src/comments/addcommentthreadcommand.js +1 -1
  107. package/src/comments/commentsediting.js +1 -1
  108. package/src/comments/commentsrepository.js +1 -1
  109. package/src/comments/commentsui.js +1 -1
  110. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  111. package/src/comments/integrations/importword.js +1 -1
  112. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  113. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  114. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  115. package/src/comments/ui/commentthreadcontroller.js +1 -1
  116. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  117. package/src/comments/ui/view/basecommentview.js +1 -1
  118. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  119. package/src/comments/ui/view/commentcontentview.js +1 -1
  120. package/src/comments/ui/view/commentinputview.js +1 -1
  121. package/src/comments/ui/view/commentslistview.js +1 -1
  122. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  123. package/src/comments/ui/view/commentthreadview.js +1 -1
  124. package/src/comments/ui/view/commentview.js +1 -1
  125. package/src/comments.js +1 -1
  126. package/src/commentsonly.js +1 -1
  127. package/src/utils/common-translations.js +1 -1
  128. package/src/utils/createmutationobserver.js +1 -1
  129. package/theme/annotation.css +23 -6
@@ -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 _0x2f33=['_config','initialData','switchToDisplayMode','submit','bind','maxCommentCharsWhenCollapsed','visibleView','switchToEditMode','destroy','createCollection','collapse','editorReady','_createCommentInputView','expand','locale','cancel','_createCommentContentView','set','remove','add','focus','_model','isEditMode','fire','content','value','editorConfig','isCollapsed','disabledSubmit'];(function(_0x4cac4a,_0x2f33e2){const _0x15daf1=function(_0x2927b1){while(--_0x2927b1){_0x4cac4a['push'](_0x4cac4a['shift']());}};_0x15daf1(++_0x2f33e2);}(_0x2f33,0x1a6));const _0x15da=function(_0x4cac4a,_0x2f33e2){_0x4cac4a=_0x4cac4a-0x0;let _0x15daf1=_0x2f33[_0x4cac4a];return _0x15daf1;};import{View as _0x1ad143}from'ckeditor5/src/ui';import{trimHtml as _0x3fa452}from'ckeditor5-collaboration/src/collaboration-core';import _0x380949 from'./commentcontentview';import _0x5247c7 from'./commentinputview';export default class St extends _0x1ad143{constructor(_0x5c1871,_0x4d773d,_0x350b6c){super(_0x5c1871),this[_0x15da('0x5')]=_0x4d773d,this[_0x15da('0xd')]=_0x350b6c,this[_0x15da('0x1')](_0x15da('0x6'),!0x1),this[_0x15da('0x1')]('isCollapsed',!0x0),this[_0x15da('0x13')]=this[_0x15da('0x16')](),this[_0x15da('0x13')]['add'](this[_0x15da('0x0')]());}[_0x15da('0x1a')](){this[_0x15da('0xb')]=!0x1;}[_0x15da('0x17')](){this[_0x15da('0x6')]||(this[_0x15da('0xb')]=!0x0);}[_0x15da('0x4')](){this['element'][_0x15da('0x4')]();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super[_0x15da('0x15')]();}[_0x15da('0x14')](){this[_0x15da('0x6')]||(this['isEditMode']=!0x0,this['visibleView'][_0x15da('0x2')](0x0)['destroy'](),this[_0x15da('0x13')][_0x15da('0x3')](this[_0x15da('0x19')]()));}[_0x15da('0xf')](){this[_0x15da('0x6')]&&(this[_0x15da('0x6')]=!0x1,this['visibleView']['remove'](0x0)[_0x15da('0x15')](),this['visibleView'][_0x15da('0x3')](this[_0x15da('0x0')]()));}[_0x15da('0x0')](){const _0x3d5f80=new _0x380949(this[_0x15da('0x1b')]);return _0x3d5f80[_0x15da('0x11')]('content')['to'](this[_0x15da('0x5')],_0x15da('0x8'),this,_0x15da('0xb'),(_0x2db739,_0x5aa2b4)=>_0x5aa2b4?_0x3fa452(_0x2db739,{'limit':this['_config'][_0x15da('0x12')]}):_0x2db739),_0x3d5f80;}[_0x15da('0x19')](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this[_0x15da('0xd')][_0x15da('0xa')][_0x15da('0xe')]=this[_0x15da('0x5')][_0x15da('0x8')];const _0x46b02e=new _0x5247c7(this['locale'],this[_0x15da('0xd')][_0x15da('0xa')]);return _0x46b02e[_0x15da('0x9')]=this[_0x15da('0x5')]['content'],_0x46b02e[_0x15da('0x11')](_0x15da('0xc'))['to'](this[_0x15da('0x5')],'isReadOnly'),_0x46b02e['on'](_0x15da('0x10'),(_0x5b6403,_0x259ac7)=>{this[_0x15da('0x7')]('updateComment',this[_0x15da('0x5')]['id'],_0x259ac7),this[_0x15da('0xf')](),this['focus']();}),_0x46b02e['on'](_0x15da('0x1c'),()=>{this[_0x15da('0xf')](),this[_0x15da('0x4')]();}),_0x46b02e['once'](_0x15da('0x18'),()=>{_0x46b02e['focus']();}),_0x46b02e['createEditor'](),_0x46b02e;}}
@@ -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 _0x2ca9=['bindTemplate','set','ck-thread__comment-count','count','NUMBER_OF_COMMENTS'];(function(_0x43da12,_0x2ca9d0){const _0x2ab9cd=function(_0x413c85){while(--_0x413c85){_0x43da12['push'](_0x43da12['shift']());}};_0x2ab9cd(++_0x2ca9d0);}(_0x2ca9,0x181));const _0x2ab9=function(_0x43da12,_0x2ca9d0){_0x43da12=_0x43da12-0x0;let _0x2ab9cd=_0x2ca9[_0x43da12];return _0x2ab9cd;};import{View as _0x40ede0}from'ckeditor5/src/ui';import{getTranslation as _0x67e7c4}from'../../../utils/common-translations';export default class Nt extends _0x40ede0{constructor(_0x421fb8){super(_0x421fb8);const _0x57d1dc=this[_0x2ab9('0x0')];this[_0x2ab9('0x1')]('count'),this['setTemplate']({'tag':'li','attributes':{'class':_0x2ab9('0x2')},'children':[{'text':_0x57d1dc['to'](_0x2ab9('0x3'),_0x210038=>_0x67e7c4(_0x421fb8,_0x2ab9('0x4'),_0x210038))}]});}}
@@ -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 _0x32cf=['set','element','ck-annotation__content','div','change:content','ck-comment__content','innerHTML'];(function(_0x128341,_0x32cf94){var _0x311496=function(_0x1c2fc){while(--_0x1c2fc){_0x128341['push'](_0x128341['shift']());}};_0x311496(++_0x32cf94);}(_0x32cf,0xb1));var _0x3114=function(_0x128341,_0x32cf94){_0x128341=_0x128341-0x0;var _0x311496=_0x32cf[_0x128341];return _0x311496;};import{View as _0xba6806}from'ckeditor5/src/ui';export default class Et extends _0xba6806{constructor(_0x113511){super(_0x113511),this[_0x3114('0x5')]('content',''),this['setTemplate']({'tag':_0x3114('0x1'),'attributes':{'class':[_0x3114('0x3'),_0x3114('0x0')]}});}['render'](){super['render'](),this['on'](_0x3114('0x2'),(_0x486a86,_0x4e87db,_0x40bbbd)=>{this['element'][_0x3114('0x4')]=_0x40bbbd;}),this[_0x3114('0x6')]['innerHTML']=this['content'];}}
@@ -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 _0x3381=['focus','focusTracker','set','document','cancel','then','editor','placeholder','length','cancelButtonView','create','_initializeFocusCycling','render','TOO_LONG_COMMENT_ALERT','fire','low','_createSubmitButton','label','view','extendTemplate','model','check','createEditor','icon','getData','editorReady','_isDestroyed','div','element','_editorCreationPromise','Cancel','tab','listenTo','isEnabled','submitButtonView','_createCancelButton','focusPrevious','Reply...','firstChild','execute','disabledSubmit','initialData','destroy','bindTemplate','showButtons','focusNext','change','Submit','ck-comment__input-actions--submit','add','_editorConfig','keystrokes','value','setData'];(function(_0x19b8be,_0x33812d){const _0x3bec51=function(_0x1bc562){while(--_0x1bc562){_0x19b8be['push'](_0x19b8be['shift']());}};_0x3bec51(++_0x33812d);}(_0x3381,0xd0));const _0x3bec=function(_0x19b8be,_0x33812d){_0x19b8be=_0x19b8be-0x0;let _0x3bec51=_0x3381[_0x19b8be];return _0x3bec51;};import{View as _0x375d5e,ViewCollection as _0x9dcf2e,FocusCycler as _0x2fc0a9,ButtonView as _0x4fd345}from'ckeditor5/src/ui';import{FocusTracker as _0x3d2dd3,KeystrokeHandler as _0x19e5b3}from'ckeditor5/src/utils';import{icons as _0x366d18}from'ckeditor5/src/core';import _0x5bddbc from'../commenteditor/commenteditor';import{getTranslation as _0x53cbcc}from'../../../utils/common-translations';export default class Tt extends _0x375d5e{constructor(_0x263379,_0x3271b8={}){super(_0x263379),this[_0x3bec('0xe')]=null,this[_0x3bec('0x4')]=_0x3271b8,this['keystrokes']=new _0x19e5b3(),this[_0x3bec('0x9')]=new _0x3d2dd3(),this[_0x3bec('0xa')](_0x3bec('0x6'),_0x3271b8[_0x3bec('0x31')]||''),this[_0x3bec('0xa')](_0x3bec('0x30'),!0x1),this['set'](_0x3bec('0x34'),!0x0),this['set']('placeholder',_0x53cbcc(_0x263379,_0x3bec('0x2d'))),this[_0x3bec('0x2a')]=this[_0x3bec('0x18')](),this[_0x3bec('0x11')]=this[_0x3bec('0x2b')](),this['setTemplate']({'tag':_0x3bec('0x23'),'attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this[_0x3bec('0x33')]['if']('showButtons','ck-comment__input-actions--active')]},'children':[this[_0x3bec('0x2a')],this[_0x3bec('0x11')]]}]}),this[_0x3bec('0x5')][_0x3bec('0xa')]('Esc',(_0x5ee841,_0x33a996)=>{this[_0x3bec('0x11')]['fire']('execute'),_0x33a996();}),this['on']('submit',(_0x3dcdca,_0x4d9b9c)=>{_0x4d9b9c[_0x3bec('0x10')]>0xfde8?(alert(_0x53cbcc(_0x263379,_0x3bec('0x15'),[_0x4d9b9c[_0x3bec('0x10')],0xfde8])),_0x3dcdca['stop']()):this[_0x3bec('0xe')][_0x3bec('0x7')]('');},{'priority':'high'});}[_0x3bec('0x14')](){super[_0x3bec('0x14')](),this[_0x3bec('0x5')][_0x3bec('0x28')](this['element']),this[_0x3bec('0x9')][_0x3bec('0x3')](this[_0x3bec('0x24')]);}[_0x3bec('0x1e')](){return this[_0x3bec('0xe')]||(this[_0x3bec('0xe')]=new _0x5bddbc(this[_0x3bec('0x4')]),this[_0x3bec('0x25')]=this[_0x3bec('0xe')][_0x3bec('0x12')]()[_0x3bec('0xd')](()=>{this[_0x3bec('0x22')]||(this[_0x3bec('0x24')]['insertBefore'](this[_0x3bec('0xe')]['ui'][_0x3bec('0x24')],this[_0x3bec('0x24')][_0x3bec('0x2e')]),this[_0x3bec('0xe')][_0x3bec('0x1c')][_0x3bec('0xb')]['on'](_0x3bec('0x0'),()=>this['value']=this[_0x3bec('0xe')][_0x3bec('0x20')]()),this[_0x3bec('0xe')]['bind'](_0x3bec('0xf'))['to'](this),this[_0x3bec('0x13')](this[_0x3bec('0xe')]),this[_0x3bec('0x16')](_0x3bec('0x21')));})),this[_0x3bec('0x25')];}[_0x3bec('0x8')](){this[_0x3bec('0xe')]&&this[_0x3bec('0xe')][_0x3bec('0x8')]();}async[_0x3bec('0x32')](){this[_0x3bec('0x22')]||(this[_0x3bec('0x22')]=!0x0,this[_0x3bec('0xe')]&&(await this[_0x3bec('0x25')],await this['editor']['destroy']()),await super['destroy']());}[_0x3bec('0x18')](){const {locale:_0x6b3532}=this,_0x21b13b=new _0x4fd345(_0x6b3532);return _0x21b13b['extendTemplate']({'attributes':{'class':[_0x3bec('0x2')]}}),_0x21b13b[_0x3bec('0x19')]=_0x53cbcc(_0x6b3532,_0x3bec('0x1')),_0x21b13b[_0x3bec('0x1f')]=_0x366d18[_0x3bec('0x1d')],_0x21b13b['on'](_0x3bec('0x2f'),()=>{this['fire']('submit',this[_0x3bec('0x6')]);}),_0x21b13b['bind'](_0x3bec('0x29'))['to'](this,_0x3bec('0x6'),this,'disabledSubmit',(_0x5dba80,_0x1b4ad3)=>!_0x1b4ad3&&!!_0x5dba80['trim']()),_0x21b13b;}[_0x3bec('0x2b')](){const {locale:_0x317743}=this,_0x5a1e46=new _0x4fd345(_0x317743);return _0x5a1e46[_0x3bec('0x1b')]({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x5a1e46[_0x3bec('0x19')]=_0x53cbcc(_0x317743,_0x3bec('0x26')),_0x5a1e46['icon']=_0x366d18['cancel'],_0x5a1e46['on'](_0x3bec('0x2f'),()=>{this[_0x3bec('0xe')]['setData'](''),this[_0x3bec('0x16')](_0x3bec('0xc'));}),_0x5a1e46;}[_0x3bec('0x13')](_0x39ceae){const _0x46d445=this[_0x3bec('0x9')],_0x33327f=new _0x9dcf2e();[_0x39ceae['ui'][_0x3bec('0x1a')],this[_0x3bec('0x2a')],this[_0x3bec('0x11')]]['forEach'](_0x50b7e5=>{_0x33327f[_0x3bec('0x3')](_0x50b7e5),_0x46d445[_0x3bec('0x3')](_0x50b7e5['element']);});const _0x3c4a47=new _0x2fc0a9({'focusables':_0x33327f,'focusTracker':_0x46d445});this[_0x3bec('0x5')][_0x3bec('0xa')](_0x3bec('0x27'),(_0x4cc14f,_0xb97fc8)=>{_0x3c4a47[_0x3bec('0x35')](),_0xb97fc8();},{'priority':_0x3bec('0x17')}),this[_0x3bec('0x5')][_0x3bec('0xa')]('shift\x20+\x20tab',(_0x5ca99e,_0x192b02)=>{_0x3c4a47[_0x3bec('0x2c')](),_0x192b02();},{'priority':_0x3bec('0x17')});}}
@@ -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 _0x5d23=['destroy','remove','weight','_rearrangeCollapse','createCollection','stopListening','formatDateTime','_config','delete','_shouldCollapse','listenTo','editorConfig','ck-thread__comments','count','from','locale','render','set','_collapsedCommentsView','_handleRemoveCommentModel','maxThreadTotalWeight','isEditMode','collapse','_model','_updateHasDirtyComment','focus','hasDirtyComment','maxCommentCharsWhenCollapsed','add','isActive','equal','length','expand','delegate','refreshVisibleViews','CommentView','_rearrangeExpand','visibleViews','commentViews','some','change:isEditMode','maxCommentsWhenCollapsed','_handleNewCommentModel','comments'];(function(_0x1edab2,_0x5d235d){const _0x2062d0=function(_0x28cabb){while(--_0x28cabb){_0x1edab2['push'](_0x1edab2['shift']());}};_0x2062d0(++_0x5d235d);}(_0x5d23,0xe5));const _0x2062=function(_0x1edab2,_0x5d235d){_0x1edab2=_0x1edab2-0x0;let _0x2062d0=_0x5d23[_0x1edab2];return _0x2062d0;};import{View as _0x1179f4}from'ckeditor5/src/ui';import{diff as _0x17e12e,Collection as _0x4cf96c}from'ckeditor5/src/utils';import _0x3a34bf from'./collapsedcommentsview';export default class dt extends _0x1179f4{constructor(_0x4c421a,_0x82e161,_0xaa472){super(_0x4c421a),this[_0x2062('0x8')](_0x2062('0x11'),!0x1),this[_0x2062('0x8')](_0x2062('0x16'),_0x82e161[_0x2062('0x22')][_0x2062('0x16')]),this[_0x2062('0x8')](_0x2062('0x14'),!0x1),this[_0x2062('0xe')]=_0x82e161,this['_config']=_0xaa472,this[_0x2062('0x1d')]=this[_0x2062('0x27')](),this[_0x2062('0x1c')]=this[_0x2062('0x27')](),this['_collapsedCommentsView']=new _0x3a34bf(_0x4c421a),this[_0x2062('0x9')]['bind'](_0x2062('0x4'))['to'](this,_0x2062('0x16'),_0x5cb69c=>_0x5cb69c-this[_0x2062('0x2a')][_0x2062('0x20')]);for(const _0x453d94 of _0x82e161[_0x2062('0x22')])this[_0x2062('0x21')](_0x453d94);this[_0x2062('0x1')](_0x82e161[_0x2062('0x22')],_0x2062('0x13'),(_0x22bd76,_0x506222)=>{this[_0x2062('0x16')]++,this['_handleNewCommentModel'](_0x506222),this[_0x2062('0x19')]();}),this[_0x2062('0x1')](_0x82e161['comments'],_0x2062('0x24'),(_0x35dc19,_0x240e9a)=>{this[_0x2062('0x16')]--,this[_0x2062('0xa')](_0x240e9a),this[_0x2062('0x19')]();}),this[_0x2062('0x1')](_0x82e161,'commentUpdated',()=>this['refreshVisibleViews']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x2062('0x3')]},'children':this['visibleViews']});}get[_0x2062('0x0')](){return this[_0x2062('0xe')][_0x2062('0x25')]>this[_0x2062('0x2a')][_0x2062('0xb')]&&!this['isActive']&&!this[_0x2062('0x11')];}['render'](){super[_0x2062('0x7')](),this[_0x2062('0x19')]();}['focus'](){this['element'][_0x2062('0x10')]();}['destroy'](){this[_0x2062('0x9')][_0x2062('0x23')]();for(const _0x2ece87 of this[_0x2062('0x1d')])_0x2ece87[_0x2062('0x23')]();super[_0x2062('0x23')]();}['refreshVisibleViews'](){this[_0x2062('0x0')]?this[_0x2062('0x26')]():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x4b6445){const _0x43aa01=new this[(_0x2062('0x2a'))][(_0x2062('0x1a'))](this[_0x2062('0x6')],_0x4b6445,{'maxCommentCharsWhenCollapsed':this[_0x2062('0x2a')][_0x2062('0x12')],'formatDateTime':this[_0x2062('0x2a')][_0x2062('0x29')],'editorConfig':this[_0x2062('0x2a')][_0x2062('0x2')]});_0x43aa01['viewUid']=_0x4b6445['id'],_0x43aa01['delegate']('removeComment')['to'](this),_0x43aa01[_0x2062('0x18')]('updateComment')['to'](this),this['listenTo'](_0x43aa01,_0x2062('0x1f'),()=>this[_0x2062('0xf')]()),this['commentViews']['add'](_0x43aa01);}['_handleRemoveCommentModel'](_0x5b7c46){const _0x44b4ba=this[_0x2062('0x1d')][_0x2062('0x24')](_0x5b7c46['id']);this[_0x2062('0x28')](_0x44b4ba),_0x44b4ba[_0x2062('0xc')]&&this[_0x2062('0xf')](),_0x44b4ba[_0x2062('0x23')]();}['_updateHasDirtyComment'](){this[_0x2062('0x11')]=Array['from'](this[_0x2062('0x1d')])[_0x2062('0x1e')](_0x303650=>_0x303650[_0x2062('0xc')]);}[_0x2062('0x26')](){const _0x3e5a34=function(_0x23fc9c){const _0x34c6b4=new _0x4cf96c();for(const _0x88f287 of _0x23fc9c)_0x34c6b4[_0x2062('0x13')](_0x88f287);return _0x34c6b4;}(this[_0x2062('0x1d')]),_0x12a157=this[_0x2062('0x9')]['count'];for(let _0xe2053a=0x1;_0xe2053a<=_0x12a157;_0xe2053a++)_0x3e5a34[_0x2062('0x24')](0x1);for(const _0x37f9af of _0x3e5a34)_0x37f9af[_0x2062('0xd')]();_0x12a157>0x0&&_0x3e5a34['add'](this[_0x2062('0x9')],0x1),Wt(_0x17e12e(Array['from'](this[_0x2062('0x1c')]),Array[_0x2062('0x5')](_0x3e5a34)),this[_0x2062('0x1c')],_0x3e5a34);}[_0x2062('0x1b')](){Wt(_0x17e12e(Array[_0x2062('0x5')](this[_0x2062('0x1c')]),Array[_0x2062('0x5')](this[_0x2062('0x1d')])),this[_0x2062('0x1c')],this[_0x2062('0x1d')]);for(const _0x1e899a of this[_0x2062('0x1c')])_0x1e899a[_0x2062('0x17')]();}}function Wt(_0xe62e21,_0x2c80c0,_0x2c9cc5){let _0x1d736e=0x0;for(const _0x269fed of _0xe62e21)switch(_0x269fed){case'insert':_0x2c80c0['add'](_0x2c9cc5['get'](_0x1d736e),_0x1d736e),_0x1d736e++;break;case _0x2062('0x2b'):_0x2c80c0[_0x2062('0x24')](_0x1d736e);break;case _0x2062('0x15'):_0x1d736e++;}}
@@ -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 _0x5ddf=['bind','value','ck-thread__user','then','ck-comment__input-container--active','set','userView','bindTemplate','editor','showInput','ck-thread__input','div','setTemplate','ck-comment__input-container','extendTemplate','change:showInput','commentInputView','destroy'];(function(_0x2345e6,_0x5ddf69){var _0x32b41a=function(_0x4242e7){while(--_0x4242e7){_0x2345e6['push'](_0x2345e6['shift']());}};_0x32b41a(++_0x5ddf69);}(_0x5ddf,0xf8));var _0x32b4=function(_0x2345e6,_0x5ddf69){_0x2345e6=_0x2345e6-0x0;var _0x32b41a=_0x5ddf[_0x2345e6];return _0x32b41a;};import{View as _0xc02c88}from'ckeditor5/src/ui';import _0x1934c1 from'./commentinputview';import{UserView as _0x7e57b9}from'ckeditor5-collaboration/src/collaboration-core';export default class ut extends _0xc02c88{constructor(_0x504f34,_0x45301e,_0x199702){super(_0x504f34),this['commentInputView']=new _0x1934c1(_0x504f34,_0x199702),this[_0x32b4('0x2')][_0x32b4('0x4')]('showButtons')['to'](this[_0x32b4('0x2')]['focusTracker'],'isFocused',this[_0x32b4('0x2')],_0x32b4('0x5'),(_0x576840,_0x5b99e9)=>_0x576840||!!_0x5b99e9),this[_0x32b4('0x9')](_0x32b4('0xd'),!0x1),this['on'](_0x32b4('0x1'),()=>{this[_0x32b4('0xd')]&&!this[_0x32b4('0x2')][_0x32b4('0xc')]&&this[_0x32b4('0x2')]['createEditor']();}),this['userView']=new _0x7e57b9(_0x504f34,_0x45301e),this[_0x32b4('0xa')][_0x32b4('0x0')]({'attributes':{'class':_0x32b4('0x6')}}),this['commentInputView'][_0x32b4('0x0')]({'attributes':{'class':_0x32b4('0xe')}}),this[_0x32b4('0x10')]({'tag':_0x32b4('0xf'),'attributes':{'class':[_0x32b4('0x11'),this[_0x32b4('0xb')]['if'](_0x32b4('0xd'),_0x32b4('0x8'))]},'children':[this[_0x32b4('0xa')],this[_0x32b4('0x2')]]});}[_0x32b4('0x3')](){return this['commentInputView']['destroy']()[_0x32b4('0x7')](()=>super[_0x32b4('0x3')]());}}
@@ -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 _0x52e1=['commentsListView','isConfirm','ck-thread--','setTemplate','render','locale','querySelector','element','ck-thread__container','then','commentViews','div','Delete\x20comment\x20thread?','removeCommentThread','Write\x20a\x20comment...','high','getTemplate','isActive','.ck-thread__container','stop','set','cancelConfirm','listenTo','length','ck-thread--active','_cancelAllConfirms','execute','ck-thread--remove-confirmation','remove','commentThreadInputView','fire','change:isActive','unbind','containerElement','showConfirm','removeButton','_bindFirstCommentView','placeholder','actionIndicator','add','bindTemplate','_model','_boundFirstCommentView'];(function(_0x33b6a5,_0x52e1a0){const _0x596bf4=function(_0x3ab98f){while(--_0x3ab98f){_0x33b6a5['push'](_0x33b6a5['shift']());}};_0x596bf4(++_0x52e1a0);}(_0x52e1,0x13d));const _0x596b=function(_0x33b6a5,_0x52e1a0){_0x33b6a5=_0x33b6a5-0x0;let _0x596bf4=_0x52e1[_0x33b6a5];return _0x596bf4;};import{mix as _0x208bff}from'ckeditor5/src/utils';import{ConfirmMixin as _0x3f93db}from'ckeditor5-collaboration/src/collaboration-core';import _0x410c91 from'./basecommentthreadview';import{getTranslation as _0x463892}from'../../../utils/common-translations';export default class ot extends _0x410c91{constructor(_0x597a2e,_0x1e159b,_0x558d67,_0x323cb5){super(_0x597a2e,_0x1e159b,_0x558d67,_0x323cb5),this[_0x596b('0x4')](_0x596b('0x16'),null),this[_0x596b('0x11')]=null,this['_boundFirstCommentView']=null,this[_0x596b('0x20')]=_0x597a2e,this[_0x596b('0x1e')](this['getTemplate']()),this['on'](_0x596b('0xf'),(_0x4dcf2e,_0x33e342,_0x2c241d)=>{_0x2c241d||this['_cancelAllConfirms']();}),this[_0x596b('0x6')](this[_0x596b('0x19')],'change:isReadOnly',(_0x1347a7,_0xd06fd,_0x258acc)=>{_0x258acc&&this['_cancelAllConfirms']();}),this[_0x596b('0x7')]>0x0&&this['_bindFirstCommentView'](),this[_0x596b('0x6')](this['commentsListView'][_0x596b('0x25')],_0x596b('0x17'),()=>{this['_bindFirstCommentView']();});}[_0x596b('0x0')](){const _0x45ff81=this[_0x596b('0x18')];return{'tag':_0x596b('0x26'),'attributes':{'class':['ck-thread',_0x45ff81['if'](_0x596b('0x1'),_0x596b('0x8')),_0x45ff81['if'](_0x596b('0x1c'),_0x596b('0xb')),_0x45ff81['to'](_0x596b('0x16'),_0x47f26e=>_0x47f26e?_0x596b('0x1d')+_0x47f26e:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':_0x596b('0x23')},'children':[this[_0x596b('0x1b')],this[_0x596b('0xd')]]}]};}[_0x596b('0x1f')](){super[_0x596b('0x1f')](),this['containerElement']=this[_0x596b('0x22')][_0x596b('0x21')](_0x596b('0x2'));}[_0x596b('0x9')](){this[_0x596b('0x5')]();for(const _0x1b9a29 of this[_0x596b('0x1b')][_0x596b('0x25')])_0x1b9a29[_0x596b('0x5')]();}[_0x596b('0x14')](){const {locale:_0x5a7f12}=this,_0x505441=this[_0x596b('0x1b')][_0x596b('0x25')]['get'](0x0);_0x505441!==this[_0x596b('0x1a')]&&(this['_boundFirstCommentView']=_0x505441,this[_0x596b('0x10')](_0x596b('0x16')),this['bind'](_0x596b('0x16'))['to'](_0x505441,_0x596b('0x16'),_0x1aeec7=>'remove'===_0x1aeec7?_0x596b('0xc'):null),_0x505441[_0x596b('0x15')]=_0x463892(_0x5a7f12,_0x596b('0x29')),_0x505441[_0x596b('0x13')]['on'](_0x596b('0xa'),_0x452dcb=>{_0x452dcb[_0x596b('0x3')](),this[_0x596b('0x12')](_0x463892(_0x5a7f12,_0x596b('0x27')),this[_0x596b('0x11')])[_0x596b('0x24')](()=>{this[_0x596b('0xe')](_0x596b('0x28'));});},{'priority':_0x596b('0x2a')}));}}_0x208bff(ot,_0x3f93db);
@@ -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 _0x4567=['edit','isReadOnly','ck-annotation__info','EXTERNAL_IMPORT_WORD_AVATAR','ck-comment__info-time','importWord','change:isRemovable','ck-comment--remove-confirmation','listenTo','EXTERNAL_IMPORT_WORD_COMMENT','ck-annotation__info-name','label','Remove','fire','isConfirm','isExternal','removeComment','ck-comment__wrapper','ck-comment__info-name','ck-comment__external','ck-comment__user','extendTemplate','locale','ck-comment--edit','ck-annotation__content-wrapper','remove','source','ck-comment','Reply...','userView','element','removeButton','ck-annotation__main','mouseleave','render','_attachActions','isVisible','isRemovable','ck-comment__info','set','getUserViewNotificationText','Edit','push','editButton','name','placeholder','div','setTemplate','cancelConfirm','mouseenter','attributes','actionIndicator','visibleView','isEditMode','icon','getExternalCommentNote','author','ck-comment__actions','time','_model','authoredAt','@external','isEnabled','ck-annotation__user','creator','switchToEditMode','ck-annotation__info-time','formatDateTime','bind','ck-annotation','EXTERNAL_AVATAR','_createEditButton','execute','_createRemoveButton','_createCommentInputView','ck-annotation__actions--hidden','EXTERNAL_COMMENT','_config','then'];(function(_0x15f12d,_0x4567e7){const _0x12c61c=function(_0xc75229){while(--_0xc75229){_0x15f12d['push'](_0x15f12d['shift']());}};_0x12c61c(++_0x4567e7);}(_0x4567,0xc0));const _0x12c6=function(_0x15f12d,_0x4567e7){_0x15f12d=_0x15f12d-0x0;let _0x12c61c=_0x4567[_0x15f12d];return _0x12c61c;};import{mix as _0x1a4a33}from'ckeditor5/src/utils';import{ButtonView as _0x5265fa}from'ckeditor5/src/ui';import{icons as _0x3b9602}from'ckeditor5/src/core';import{UserView as _0x5e7507,ConfirmMixin as _0x1baa50}from'ckeditor5-collaboration/src/collaboration-core';import _0x306010 from'./basecommentview';import _0x1919c9 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x5d5a42}from'../../../utils/common-translations';export default class it extends _0x306010{constructor(_0xed626f,_0x327ae3,_0x938e8){super(_0xed626f,_0x327ae3,_0x938e8),this[_0x12c6('0x5')](_0x12c6('0x11'),null),this['set'](_0x12c6('0xb'),_0x5d5a42(_0xed626f,_0x12c6('0x49'))),this[_0x12c6('0x5')](_0x12c6('0x1a'),null),this['bind'](_0x12c6('0x1a'))['to'](_0x327ae3),this[_0x12c6('0x9')]=this[_0x12c6('0x25')](),this['removeButton']=this[_0x12c6('0x27')](),this[_0x12c6('0x4a')]=new _0x5e7507(_0xed626f,_0x327ae3[_0x12c6('0x16')],this[_0x12c6('0x6')]()),this[_0x12c6('0x4a')][_0x12c6('0x42')]({'attributes':{'class':[_0x12c6('0x41'),_0x12c6('0x1d')]}}),this[_0x12c6('0x35')](_0x327ae3,_0x12c6('0x33'),()=>this[_0x12c6('0xe')]()),this[_0x12c6('0xd')](this['getTemplate']());}['getTemplate'](){const _0x5ee4c2=this['bindTemplate'],_0x237e43=[{'tag':_0x12c6('0xc'),'attributes':{'class':[_0x12c6('0x4'),_0x12c6('0x2f')]},'children':[{'tag':'span','children':[{'text':this[_0x12c6('0x4a')][_0x12c6('0xa')]}],'attributes':{'class':[_0x12c6('0x3f'),_0x12c6('0x37')]}},{'tag':_0x12c6('0x18'),'attributes':{'datetime':_0x5ee4c2['to'](_0x12c6('0x1a')),'class':[_0x12c6('0x31'),_0x12c6('0x20')]},'children':[{'text':_0x5ee4c2['to'](_0x12c6('0x1a'),_0xe55b63=>this[_0x12c6('0x2b')][_0x12c6('0x21')](_0xe55b63))}]}]},{'tag':_0x12c6('0xc'),'attributes':{'class':[_0x12c6('0x17'),'ck-annotation__actions',_0x5ee4c2['if'](_0x12c6('0x13'),'ck-comment__actions--hidden'),_0x5ee4c2['if'](_0x12c6('0x13'),_0x12c6('0x29'))]},'children':[this['editButton'],this['removeButton']]},{'tag':'div','attributes':{'class':[_0x12c6('0x45')]},'children':this[_0x12c6('0x12')]}];return this['_model'][_0x12c6('0x3c')]&&_0x237e43[_0x12c6('0x8')]({'tag':_0x12c6('0xc'),'attributes':{'class':[_0x12c6('0x40')]},'children':[{'text':this[_0x12c6('0x15')]()}]}),{'tag':'li','attributes':{'class':[_0x12c6('0x3e'),_0x5ee4c2['if'](_0x12c6('0x3b'),_0x12c6('0x34'))],'tabindex':-0x1},'children':[{'tag':_0x12c6('0xc'),'attributes':{'class':[_0x12c6('0x48'),_0x12c6('0x23'),_0x5ee4c2['if']('isEditMode',_0x12c6('0x44')),_0x5ee4c2['to'](_0x12c6('0x11'),_0x1a3a1e=>_0x1a3a1e?'ck-comment--'+_0x1a3a1e:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x12c6('0x4a')],{'tag':'div','attributes':{'class':['ck-comment__main',_0x12c6('0x4d')]},'children':_0x237e43}]}]};}[_0x12c6('0x25')](){const _0x191dfe=new _0x5265fa(this[_0x12c6('0x43')]);return _0x191dfe[_0x12c6('0x38')]=_0x5d5a42(this['locale'],_0x12c6('0x7')),_0x191dfe['icon']=_0x3b9602['pencil'],_0x191dfe[_0x12c6('0x42')]({'attributes':{'class':'ck-comment--edit'}}),_0x191dfe[_0x12c6('0x22')](_0x12c6('0x1c'))['to'](this[_0x12c6('0x19')],_0x12c6('0x2e'),_0x2478f9=>!_0x2478f9),_0x191dfe[_0x12c6('0x22')](_0x12c6('0x2'))['to'](this['_model'],'isEditable'),_0x191dfe['on'](_0x12c6('0x26'),()=>this[_0x12c6('0x1f')]()),_0x191dfe;}[_0x12c6('0x27')](){const _0x55882b=new _0x5265fa(this[_0x12c6('0x43')]);return _0x55882b[_0x12c6('0x38')]=_0x5d5a42(this[_0x12c6('0x43')],_0x12c6('0x39')),_0x55882b[_0x12c6('0x14')]=_0x1919c9,_0x55882b['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x55882b['bind']('isEnabled')['to'](this['_model'],_0x12c6('0x2e'),_0x56f362=>!_0x56f362),_0x55882b[_0x12c6('0x22')](_0x12c6('0x2'))['to'](this['_model'],_0x12c6('0x3')),_0x55882b['on']('execute',()=>{this['showConfirm'](_0x5d5a42(this[_0x12c6('0x43')],'Delete\x20comment?'),this[_0x12c6('0x4b')])[_0x12c6('0x2c')](()=>{this[_0x12c6('0x3a')](_0x12c6('0x3d'),this[_0x12c6('0x19')]['id']);});}),_0x55882b;}[_0x12c6('0x1')](_0x4f584b,_0x383a14){this['listenTo'](_0x4f584b,_0x12c6('0xf'),()=>this[_0x12c6('0x11')]=_0x383a14),this[_0x12c6('0x35')](_0x4f584b,'focus',()=>this[_0x12c6('0x11')]=_0x383a14),this[_0x12c6('0x35')](_0x4f584b,_0x12c6('0x4e'),()=>this[_0x12c6('0x11')]=null),this[_0x12c6('0x35')](_0x4f584b,'blur',()=>this[_0x12c6('0x11')]=null);}[_0x12c6('0x28')](){const _0x1a6ba8=super[_0x12c6('0x28')]();return _0x1a6ba8[_0x12c6('0x22')](_0x12c6('0xb'))['to'](this),_0x1a6ba8;}[_0x12c6('0x15')](){return _0x12c6('0x32')===this['_model']['attributes'][_0x12c6('0x1b')][_0x12c6('0x47')]?_0x5d5a42(this[_0x12c6('0x43')],_0x12c6('0x36')):_0x5d5a42(this[_0x12c6('0x43')],_0x12c6('0x2a'));}[_0x12c6('0x6')](){return this[_0x12c6('0x19')][_0x12c6('0x3c')]?'importWord'===this[_0x12c6('0x19')][_0x12c6('0x10')][_0x12c6('0x1b')][_0x12c6('0x47')]?_0x5d5a42(this[_0x12c6('0x43')],_0x12c6('0x30'),this['_model'][_0x12c6('0x1e')][_0x12c6('0xa')]):_0x5d5a42(this['locale'],_0x12c6('0x24'),this[_0x12c6('0x19')]['creator'][_0x12c6('0xa')]):null;}[_0x12c6('0x0')](){super[_0x12c6('0x0')](),this[_0x12c6('0x1')](this[_0x12c6('0x9')][_0x12c6('0x4b')],_0x12c6('0x2d')),this[_0x12c6('0x1')](this[_0x12c6('0x4c')][_0x12c6('0x4b')],_0x12c6('0x46'));}}_0x1a4a33(it,_0x1baa50);
package/src/comments.js CHANGED
@@ -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 _0x20fd=['pluginName','requires','Comments'];(function(_0x58faf9,_0x20fdfc){var _0x1da88a=function(_0x3cee21){while(--_0x3cee21){_0x58faf9['push'](_0x58faf9['shift']());}};_0x1da88a(++_0x20fdfc);}(_0x20fd,0x1da));var _0x1da8=function(_0x58faf9,_0x20fdfc){_0x58faf9=_0x58faf9-0x0;var _0x1da88a=_0x20fd[_0x58faf9];return _0x1da88a;};import{Plugin as _0x1ef9b2}from'ckeditor5/src/core';import _0x339680 from'./comments/commentsrepository';import _0x44c23f from'./comments/commentsediting';import _0x9e75af from'./comments/commentsui';import _0x8789c5 from'./commentsonly';import _0x185d6c from'./annotations/widesidebar';import _0x3def7d from'./annotations/narrowsidebar';import _0x257673 from'./annotations/inlineannotations';export default class c extends _0x1ef9b2{static get[_0x1da8('0x1')](){return[_0x339680,_0x44c23f,_0x9e75af,_0x8789c5,_0x185d6c,_0x3def7d,_0x257673];}static get[_0x1da8('0x0')](){return _0x1da8('0x2');}}
@@ -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 _0x4400=['listenTo','affectsData','clearForceDisabled','clipboardInput','afterInit','editing','editor','DragDrop','set','config','has','commands','view','forceDisabled','highest','commentsOnlyMode','_disableCommentsOnlyMode','document','cut','delete','plugins','stop','change:isEnabled','pluginName','get','addCommentThread','requires','stopListening','_enableCommentsOnlyMode','isEnabled'];(function(_0x30cf5d,_0x440078){const _0x243286=function(_0xfd809f){while(--_0xfd809f){_0x30cf5d['push'](_0x30cf5d['shift']());}};_0x243286(++_0x440078);}(_0x4400,0x131));const _0x2432=function(_0x30cf5d,_0x440078){_0x30cf5d=_0x30cf5d-0x0;let _0x243286=_0x4400[_0x30cf5d];return _0x243286;};import{Plugin as _0x1b2a2c}from'ckeditor5/src/core';import _0x54d5dc from'./comments/commentsediting';export default class e extends _0x1b2a2c{static get[_0x2432('0x12')](){return'CommentsOnly';}static get[_0x2432('0x15')](){return[_0x54d5dc];}constructor(_0x4a2156){super(_0x4a2156),this[_0x2432('0x3')](_0x2432('0x18'),null),this['on'](_0x2432('0x11'),(_0x20ca7d,_0xdd0d47,_0x43d950)=>{_0x43d950?this[_0x2432('0x17')]():this[_0x2432('0xb')]();});}[_0x2432('0x1d')](){null===this['isEnabled']&&(this[_0x2432('0x18')]=!!this[_0x2432('0x1')][_0x2432('0x4')][_0x2432('0x13')]('commentsOnly'));}[_0x2432('0x17')](){for(const [_0x2625bf,_0x5ee3a0]of this['editor']['commands'])_0x5ee3a0[_0x2432('0x1a')]&&'addCommentThread'!==_0x2625bf&&_0x5ee3a0[_0x2432('0x8')](_0x2432('0xa'));this[_0x2432('0x1')]['plugins'][_0x2432('0x5')](_0x2432('0x2'))&&this[_0x2432('0x1')][_0x2432('0xf')]['get'](_0x2432('0x2'))['forceDisabled'](_0x2432('0xa'));const _0x19b0c5=this['editor'][_0x2432('0x0')][_0x2432('0x7')]['document'];this[_0x2432('0x19')](_0x19b0c5,_0x2432('0xd'),_0x21cbb4=>_0x21cbb4[_0x2432('0x10')](),{'priority':_0x2432('0x9')}),this[_0x2432('0x19')](_0x19b0c5,_0x2432('0x1c'),_0x1380ba=>_0x1380ba['stop'](),{'priority':'highest'}),this[_0x2432('0x19')](_0x19b0c5,_0x2432('0xe'),_0x5f109a=>_0x5f109a[_0x2432('0x10')](),{'priority':_0x2432('0x9')});}['_disableCommentsOnlyMode'](){for(const [_0x436158,_0x5f0b31]of this[_0x2432('0x1')][_0x2432('0x6')])_0x5f0b31['affectsData']&&_0x2432('0x14')!==_0x436158&&_0x5f0b31[_0x2432('0x1b')](_0x2432('0xa'));this[_0x2432('0x16')](this['editor'][_0x2432('0x0')]['view'][_0x2432('0xc')]);}}
@@ -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(_0xbf7eda,_0x5336c2,_0x49322a){const t=_0xbf7eda['t'];switch(_0x5336c2){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'},_0x49322a);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'},_0x49322a);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'},_0x49322a);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'},_0x49322a);}}
@@ -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 _0xe57b=['attributeName','type','cancel','class','disconnect','observe','childList','attributes'];(function(_0x16f646,_0xe57be2){const _0x5d8aab=function(_0x5a3301){while(--_0x5a3301){_0x16f646['push'](_0x16f646['shift']());}};_0x5d8aab(++_0xe57be2);}(_0xe57b,0xc4));const _0x5d8a=function(_0x16f646,_0xe57be2){_0x16f646=_0x16f646-0x0;let _0x5d8aab=_0xe57b[_0x16f646];return _0x5d8aab;};import{throttle as _0x4be667}from'lodash-es';export default function ht(_0x2accb9){const _0x1bd556=_0x4be667(_0x2accb9,0x1e),_0x13cfec=new MutationObserver(_0xfaaf4d=>{for(const _0x4ee53b of _0xfaaf4d)(_0x5d8a('0x3')==_0x4ee53b[_0x5d8a('0x5')]&&_0x5d8a('0x7')==_0x4ee53b[_0x5d8a('0x4')]||_0x5d8a('0x2')==_0x4ee53b['type'])&&_0x1bd556();});return{'attach'(_0x1d3af4){_0x13cfec[_0x5d8a('0x1')](_0x1d3af4,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x13cfec[_0x5d8a('0x0')](),_0x1bd556[_0x5d8a('0x6')]();}};}
@@ -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