@ckeditor/ckeditor5-comments 35.3.1 → 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 (115) hide show
  1. package/build/comments.js +1 -1
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/lang/translations/ar.po +3 -3
  41. package/lang/translations/bg.po +3 -3
  42. package/lang/translations/bn.po +3 -3
  43. package/lang/translations/ca.po +3 -3
  44. package/lang/translations/cs.po +3 -3
  45. package/lang/translations/da.po +3 -3
  46. package/lang/translations/de.po +3 -3
  47. package/lang/translations/el.po +3 -3
  48. package/lang/translations/es.po +3 -3
  49. package/lang/translations/et.po +3 -3
  50. package/lang/translations/fi.po +3 -3
  51. package/lang/translations/fr.po +3 -3
  52. package/lang/translations/he.po +3 -3
  53. package/lang/translations/hi.po +3 -3
  54. package/lang/translations/hu.po +3 -3
  55. package/lang/translations/id.po +3 -3
  56. package/lang/translations/it.po +3 -3
  57. package/lang/translations/ja.po +3 -3
  58. package/lang/translations/ko.po +3 -3
  59. package/lang/translations/lt.po +3 -3
  60. package/lang/translations/lv.po +3 -3
  61. package/lang/translations/ms.po +3 -3
  62. package/lang/translations/nl.po +3 -3
  63. package/lang/translations/no.po +3 -3
  64. package/lang/translations/pl.po +3 -3
  65. package/lang/translations/pt-br.po +3 -3
  66. package/lang/translations/pt.po +3 -3
  67. package/lang/translations/ro.po +3 -3
  68. package/lang/translations/ru.po +3 -3
  69. package/lang/translations/sk.po +3 -3
  70. package/lang/translations/sr.po +3 -3
  71. package/lang/translations/sv.po +3 -3
  72. package/lang/translations/th.po +3 -3
  73. package/lang/translations/tr.po +3 -3
  74. package/lang/translations/uk.po +3 -3
  75. package/lang/translations/vi.po +3 -3
  76. package/lang/translations/zh-cn.po +3 -3
  77. package/lang/translations/zh.po +3 -3
  78. package/package.json +3 -3
  79. package/src/annotations/annotation.js +1 -1
  80. package/src/annotations/annotationcollection.js +1 -1
  81. package/src/annotations/annotations.js +1 -1
  82. package/src/annotations/annotationsuis.js +1 -1
  83. package/src/annotations/editorannotations.js +1 -1
  84. package/src/annotations/inlineannotations.js +1 -1
  85. package/src/annotations/narrowsidebar.js +1 -1
  86. package/src/annotations/sidebar.js +1 -1
  87. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  88. package/src/annotations/view/annotationview.js +1 -1
  89. package/src/annotations/view/sidebaritemview.js +1 -1
  90. package/src/annotations/view/sidebarview.js +1 -1
  91. package/src/annotations/widesidebar.js +1 -1
  92. package/src/comments/addcommentthreadcommand.js +1 -1
  93. package/src/comments/commentsediting.js +1 -1
  94. package/src/comments/commentsrepository.js +1 -1
  95. package/src/comments/commentsui.js +1 -1
  96. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  97. package/src/comments/integrations/importword.js +1 -1
  98. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  99. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  100. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  101. package/src/comments/ui/commentthreadcontroller.js +1 -1
  102. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  103. package/src/comments/ui/view/basecommentview.js +1 -1
  104. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  105. package/src/comments/ui/view/commentcontentview.js +1 -1
  106. package/src/comments/ui/view/commentinputview.js +1 -1
  107. package/src/comments/ui/view/commentslistview.js +1 -1
  108. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  109. package/src/comments/ui/view/commentthreadview.js +1 -1
  110. package/src/comments/ui/view/commentview.js +1 -1
  111. package/src/comments.js +1 -1
  112. package/src/commentsonly.js +1 -1
  113. package/src/utils/common-translations.js +1 -1
  114. package/src/utils/createmutationobserver.js +1 -1
  115. package/theme/annotation.css +23 -6
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x11f3=['removeComment','view','getComment','_localUser','_isAttached','remove','updateComment','model','listenTo','addComment','stopListening','update'];(function(_0x4b92a0,_0x11f393){var _0x4259b4=function(_0x3d385e){while(--_0x3d385e){_0x4b92a0['push'](_0x4b92a0['shift']());}};_0x4259b4(++_0x11f393);}(_0x11f3,0x1a1));var _0x4259=function(_0x4b92a0,_0x11f393){_0x4b92a0=_0x4b92a0-0x0;var _0x4259b4=_0x11f3[_0x4b92a0];return _0x4259b4;};import{ObservableMixin as _0x1ee7f2,mix as _0x2696b3}from'ckeditor5/src/utils';export default class F{constructor(_0x2af210,_0x2fde43){this['model']=_0x2af210,this['model']['_isAttached']=!0x0,this[_0x4259('0x4')]=_0x2fde43,this['listenTo'](_0x2fde43,'removeCommentThread',()=>this[_0x4259('0x8')]()),this[_0x4259('0xb')](_0x2fde43,_0x4259('0x0'),(_0x4fc086,_0x3e13a1)=>this[_0x4259('0x0')](_0x3e13a1)),this[_0x4259('0xb')](_0x2fde43,_0x4259('0x9'),(_0x5968aa,_0x525394,_0x2fc5f7)=>this[_0x4259('0x9')](_0x525394,_0x2fc5f7)),this[_0x4259('0xb')](_0x2fde43,_0x4259('0x3'),(_0x4694bf,_0x5ecd6c)=>this[_0x4259('0x3')](_0x5ecd6c));}['remove'](){this[_0x4259('0xa')]['remove']();}['addComment'](_0x5edac1){this[_0x4259('0xa')][_0x4259('0x0')]({'content':_0x5edac1,'authorId':this[_0x4259('0x4')][_0x4259('0x6')]['id']});}['updateComment'](_0x4a9edb,_0x5ec77b){this[_0x4259('0xa')][_0x4259('0x5')](_0x4a9edb)[_0x4259('0x2')]({'content':_0x5ec77b});}[_0x4259('0x3')](_0x2a38b8){this[_0x4259('0xa')][_0x4259('0x5')](_0x2a38b8)[_0x4259('0x8')]();}['destroy'](){this[_0x4259('0x1')](),this['model'][_0x4259('0x7')]=!0x1;}}_0x2696b3(F,_0x1ee7f2);
23
+ var _0x3dc0=['destroy','removeComment','remove','model','addComment','listenTo','view','_isAttached','getComment','updateComment','_localUser'];(function(_0x8bbb26,_0x3dc066){var _0x48af77=function(_0x539e9b){while(--_0x539e9b){_0x8bbb26['push'](_0x8bbb26['shift']());}};_0x48af77(++_0x3dc066);}(_0x3dc0,0x88));var _0x48af=function(_0x8bbb26,_0x3dc066){_0x8bbb26=_0x8bbb26-0x0;var _0x48af77=_0x3dc0[_0x8bbb26];return _0x48af77;};import{ObservableMixin as _0x2fbf4e,mix as _0x34ad3a}from'ckeditor5/src/utils';export default class nt{constructor(_0x1f8c9b,_0x4913bd){this[_0x48af('0xa')]=_0x1f8c9b,this[_0x48af('0xa')][_0x48af('0x3')]=!0x0,this[_0x48af('0x2')]=_0x4913bd,this[_0x48af('0x1')](_0x4913bd,'removeCommentThread',()=>this[_0x48af('0x9')]()),this[_0x48af('0x1')](_0x4913bd,'addComment',(_0x4cf439,_0x8bb2a)=>this[_0x48af('0x0')](_0x8bb2a)),this[_0x48af('0x1')](_0x4913bd,'updateComment',(_0x516208,_0x539757,_0x1f5228)=>this['updateComment'](_0x539757,_0x1f5228)),this[_0x48af('0x1')](_0x4913bd,'removeComment',(_0xe947bb,_0x477812)=>this['removeComment'](_0x477812));}[_0x48af('0x9')](){this[_0x48af('0xa')][_0x48af('0x9')]();}['addComment'](_0x476a99){this[_0x48af('0xa')][_0x48af('0x0')]({'content':_0x476a99,'authorId':this[_0x48af('0x2')][_0x48af('0x6')]['id']});}[_0x48af('0x5')](_0x57b8a4,_0x245a0e){this[_0x48af('0xa')]['getComment'](_0x57b8a4)['update']({'content':_0x245a0e});}[_0x48af('0x8')](_0x56b6cd){this[_0x48af('0xa')][_0x48af('0x4')](_0x56b6cd)[_0x48af('0x9')]();}[_0x48af('0x7')](){this['stopListening'](),this['model'][_0x48af('0x3')]=!0x1;}}_0x34ad3a(nt,_0x2fbf4e);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ad8=['removeCommentThread','commentThreadInputView','isDirty','bind','disabledSubmit','focus','length','isActive','commentsListView','Reply...','fire','_createCommentThreadInputView','assign','Write\x20a\x20comment...','cancel','_config','addComment','change:isActive','value','set','updateComment','hasDirtyComment','placeholder','locale','_model','removeComment','commentInputView','isReadOnly','destroy','_localUser','delegate','element'];(function(_0x325bfd,_0x5ad8cf){const _0x1e28b4=function(_0x1e21dc){while(--_0x1e21dc){_0x325bfd['push'](_0x325bfd['shift']());}};_0x1e28b4(++_0x5ad8cf);}(_0x5ad8,0x137));const _0x1e28=function(_0x325bfd,_0x5ad8cf){_0x325bfd=_0x325bfd-0x0;let _0x1e28b4=_0x5ad8[_0x325bfd];return _0x1e28b4;};import{View as _0x4978e7}from'ckeditor5/src/ui';import _0x49f849 from'./commentthreadinputview';import _0x2b73e5 from'./commentslistview';import{getTranslation as _0x241b9f}from'../../../utils/common-translations';export default class Rt extends _0x4978e7{constructor(_0x13673f,_0x5492e7,_0x3240d6,_0x3a25c6){super(_0x13673f),this[_0x1e28('0x1c')](_0x1e28('0x10'),!0x1),this[_0x1e28('0x1c')]('isDirty',!0x1),this[_0x1e28('0x1')]=_0x5492e7,this[_0x1e28('0x6')]=_0x3240d6,this[_0x1e28('0x18')]=_0x3a25c6,this[_0x1e28('0x11')]=new _0x2b73e5(_0x13673f,_0x5492e7,Object[_0x1e28('0x15')]({'CommentView':this[_0x1e28('0x18')]['CommentView']},_0x3a25c6)),this['commentsListView'][_0x1e28('0x7')]('removeComment')['to'](this),this[_0x1e28('0x11')][_0x1e28('0x7')](_0x1e28('0x1d'))['to'](this),this['commentsListView'][_0x1e28('0xc')]('isActive')['to'](this),this[_0x1e28('0x1c')](_0x1e28('0xf'),this[_0x1e28('0x11')]['length']),this[_0x1e28('0xc')](_0x1e28('0xf'))['to'](this['commentsListView'],_0x1e28('0xf')),this[_0x1e28('0xa')]=this[_0x1e28('0x14')](),this['on'](_0x1e28('0x2'),()=>this[_0x1e28('0xe')]()),this[_0x1e28('0xc')](_0x1e28('0xb'))['to'](this[_0x1e28('0x11')],_0x1e28('0x1e'),this[_0x1e28('0xa')][_0x1e28('0x3')],_0x1e28('0x1b'),(_0x4b9dcf,_0x1974fb)=>_0x4b9dcf||!!_0x1974fb);}[_0x1e28('0xe')](){this[_0x1e28('0x8')][_0x1e28('0xe')]();}[_0x1e28('0x5')](){this[_0x1e28('0xb')]=!0x1,this[_0x1e28('0x11')][_0x1e28('0x5')](),this[_0x1e28('0xa')][_0x1e28('0x5')](),super[_0x1e28('0x5')]();}['_createCommentThreadInputView'](){const _0x5e2253=new _0x49f849(this[_0x1e28('0x0')],this[_0x1e28('0x6')],this[_0x1e28('0x18')]['editorConfig']),_0x3c8de1=_0x5e2253[_0x1e28('0x3')];return _0x5e2253['bind']('showInput')['to'](this,_0x1e28('0x10'),this[_0x1e28('0x1')],_0x1e28('0x4'),_0x3c8de1,_0x1e28('0x1b'),(_0x1e1870,_0x5035f3,_0x305a77)=>!!_0x305a77||_0x1e1870&&!_0x5035f3),_0x3c8de1[_0x1e28('0xc')](_0x1e28('0x1f'))['to'](this,_0x1e28('0xf'),_0x9477ea=>_0x241b9f(this[_0x1e28('0x0')],_0x9477ea?_0x1e28('0x12'):_0x1e28('0x16'))),_0x3c8de1['on']('submit',(_0x4508f0,_0x593f16)=>{this['fire'](_0x1e28('0x19'),_0x593f16);}),_0x3c8de1['on'](_0x1e28('0x17'),()=>{this[_0x1e28('0xe')]();}),_0x3c8de1[_0x1e28('0xc')](_0x1e28('0xd'))['to'](this[_0x1e28('0x1')],_0x1e28('0x4')),_0x3c8de1['on'](_0x1e28('0x17'),_0x2e23e5=>{0x0==this[_0x1e28('0xf')]&&(this['fire'](_0x1e28('0x9')),_0x2e23e5['stop']());}),this['on'](_0x1e28('0x1a'),(_0x16581b,_0x2137e9,_0x43878c)=>{_0x43878c||this[_0x1e28('0xf')]||_0x3c8de1[_0x1e28('0x1b')]||this[_0x1e28('0x13')]('removeCommentThread');}),_0x5e2253;}}
23
+ const _0x49c8=['commentInputView','showInput','value','_model','focus','_localUser','destroy','disabledSubmit','submit','isDirty','change:isActive','fire','length','delegate','commentThreadInputView','isReadOnly','removeCommentThread','_config','placeholder','set','addComment','Write\x20a\x20comment...','cancel','editorConfig','commentsListView','element','bind','Reply...','_createCommentThreadInputView','updateComment','hasDirtyComment','assign','removeComment','isActive','stop','locale'];(function(_0x4687bf,_0x49c8e4){const _0x333781=function(_0x33eac8){while(--_0x33eac8){_0x4687bf['push'](_0x4687bf['shift']());}};_0x333781(++_0x49c8e4);}(_0x49c8,0x18c));const _0x3337=function(_0x4687bf,_0x49c8e4){_0x4687bf=_0x4687bf-0x0;let _0x333781=_0x49c8[_0x4687bf];return _0x333781;};import{View as _0x3f1854}from'ckeditor5/src/ui';import _0x56a1c7 from'./commentthreadinputview';import _0x1e29e9 from'./commentslistview';import{getTranslation as _0x54fe72}from'../../../utils/common-translations';export default class Rt extends _0x3f1854{constructor(_0x598835,_0x447f44,_0x424607,_0x4f0cea){super(_0x598835),this[_0x3337('0x13')](_0x3337('0x21'),!0x1),this[_0x3337('0x13')](_0x3337('0x9'),!0x1),this[_0x3337('0x3')]=_0x447f44,this[_0x3337('0x5')]=_0x424607,this[_0x3337('0x11')]=_0x4f0cea,this[_0x3337('0x18')]=new _0x1e29e9(_0x598835,_0x447f44,Object[_0x3337('0x1f')]({'CommentView':this[_0x3337('0x11')]['CommentView']},_0x4f0cea)),this[_0x3337('0x18')]['delegate'](_0x3337('0x20'))['to'](this),this['commentsListView'][_0x3337('0xd')](_0x3337('0x1d'))['to'](this),this[_0x3337('0x18')][_0x3337('0x1a')](_0x3337('0x21'))['to'](this),this[_0x3337('0x13')](_0x3337('0xc'),this['commentsListView'][_0x3337('0xc')]),this['bind'](_0x3337('0xc'))['to'](this['commentsListView'],'length'),this[_0x3337('0xe')]=this[_0x3337('0x1c')](),this['on']('removeComment',()=>this[_0x3337('0x4')]()),this['bind'](_0x3337('0x9'))['to'](this[_0x3337('0x18')],_0x3337('0x1e'),this['commentThreadInputView']['commentInputView'],_0x3337('0x2'),(_0x16c4f8,_0x413945)=>_0x16c4f8||!!_0x413945);}['focus'](){this[_0x3337('0x19')]['focus']();}[_0x3337('0x6')](){this[_0x3337('0x9')]=!0x1,this[_0x3337('0x18')][_0x3337('0x6')](),this['commentThreadInputView'][_0x3337('0x6')](),super[_0x3337('0x6')]();}[_0x3337('0x1c')](){const _0xedc95a=new _0x56a1c7(this[_0x3337('0x23')],this[_0x3337('0x5')],this[_0x3337('0x11')][_0x3337('0x17')]),_0x28057d=_0xedc95a[_0x3337('0x0')];return _0xedc95a[_0x3337('0x1a')](_0x3337('0x1'))['to'](this,_0x3337('0x21'),this['_model'],_0x3337('0xf'),_0x28057d,_0x3337('0x2'),(_0x4db255,_0x4245c7,_0x311212)=>!!_0x311212||_0x4db255&&!_0x4245c7),_0x28057d[_0x3337('0x1a')](_0x3337('0x12'))['to'](this,'length',_0x31174f=>_0x54fe72(this[_0x3337('0x23')],_0x31174f?_0x3337('0x1b'):_0x3337('0x15'))),_0x28057d['on'](_0x3337('0x8'),(_0x20d126,_0xaacac1)=>{this['fire'](_0x3337('0x14'),_0xaacac1);}),_0x28057d['on'](_0x3337('0x16'),()=>{this[_0x3337('0x4')]();}),_0x28057d['bind'](_0x3337('0x7'))['to'](this[_0x3337('0x3')],_0x3337('0xf')),_0x28057d['on'](_0x3337('0x16'),_0x1f3c5d=>{0x0==this['length']&&(this['fire'](_0x3337('0x10')),_0x1f3c5d[_0x3337('0x22')]());}),this['on'](_0x3337('0xa'),(_0x9e274c,_0x3675e0,_0x3fe693)=>{_0x3fe693||this[_0x3337('0xc')]||_0x28057d['value']||this[_0x3337('0xb')](_0x3337('0x10'));}),_0xedc95a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x96ff=['collapse','locale','destroy','visibleView','_createCommentInputView','updateComment','_createCommentContentView','focus','add','isEditMode','_config','once','initialData','submit','createCollection','switchToDisplayMode','fire','editorConfig','element','_model','bind','isCollapsed','cancel','createEditor','get','editorReady','set','remove','isReadOnly','content','switchToEditMode','value','expand'];(function(_0x4d9936,_0x96ff5e){const _0x4c14a6=function(_0x216db2){while(--_0x216db2){_0x4d9936['push'](_0x4d9936['shift']());}};_0x4c14a6(++_0x96ff5e);}(_0x96ff,0x1aa));const _0x4c14=function(_0x4d9936,_0x96ff5e){_0x4d9936=_0x4d9936-0x0;let _0x4c14a6=_0x96ff[_0x4d9936];return _0x4c14a6;};import{View as _0x3f8142}from'ckeditor5/src/ui';import{trimHtml as _0x4ce504}from'ckeditor5-collaboration/src/collaboration-core';import _0x55dfe4 from'./commentcontentview';import _0x535600 from'./commentinputview';export default class St extends _0x3f8142{constructor(_0x32e1aa,_0x45bd6c,_0x278848){super(_0x32e1aa),this[_0x4c14('0x16')]=_0x45bd6c,this[_0x4c14('0xd')]=_0x278848,this[_0x4c14('0x1d')](_0x4c14('0xc'),!0x1),this[_0x4c14('0x1d')](_0x4c14('0x18'),!0x0),this[_0x4c14('0x6')]=this[_0x4c14('0x11')](),this[_0x4c14('0x6')][_0x4c14('0xb')](this[_0x4c14('0x9')]());}[_0x4c14('0x2')](){this[_0x4c14('0x18')]=!0x1;}[_0x4c14('0x3')](){this['isEditMode']||(this[_0x4c14('0x18')]=!0x0);}[_0x4c14('0xa')](){this[_0x4c14('0x15')][_0x4c14('0xa')]();}async[_0x4c14('0x5')](){await this['visibleView'][_0x4c14('0x1b')](0x0)[_0x4c14('0x5')](),super[_0x4c14('0x5')]();}[_0x4c14('0x0')](){this[_0x4c14('0xc')]||(this[_0x4c14('0xc')]=!0x0,this[_0x4c14('0x6')][_0x4c14('0x1e')](0x0)[_0x4c14('0x5')](),this[_0x4c14('0x6')][_0x4c14('0xb')](this['_createCommentInputView']()));}[_0x4c14('0x12')](){this[_0x4c14('0xc')]&&(this['isEditMode']=!0x1,this[_0x4c14('0x6')][_0x4c14('0x1e')](0x0)['destroy'](),this['visibleView'][_0x4c14('0xb')](this[_0x4c14('0x9')]()));}[_0x4c14('0x9')](){const _0x27e92d=new _0x55dfe4(this[_0x4c14('0x4')]);return _0x27e92d['bind'](_0x4c14('0x20'))['to'](this[_0x4c14('0x16')],_0x4c14('0x20'),this,_0x4c14('0x18'),(_0x286ba1,_0x49ac71)=>_0x49ac71?_0x4ce504(_0x286ba1,{'limit':this[_0x4c14('0xd')]['maxCommentCharsWhenCollapsed']}):_0x286ba1),_0x27e92d;}[_0x4c14('0x7')](){this[_0x4c14('0xd')][_0x4c14('0x14')]||(this[_0x4c14('0xd')][_0x4c14('0x14')]={}),this[_0x4c14('0xd')][_0x4c14('0x14')][_0x4c14('0xf')]=this[_0x4c14('0x16')]['content'];const _0x59c20d=new _0x535600(this[_0x4c14('0x4')],this[_0x4c14('0xd')][_0x4c14('0x14')]);return _0x59c20d[_0x4c14('0x1')]=this[_0x4c14('0x16')][_0x4c14('0x20')],_0x59c20d[_0x4c14('0x17')]('disabledSubmit')['to'](this[_0x4c14('0x16')],_0x4c14('0x1f')),_0x59c20d['on'](_0x4c14('0x10'),(_0x494d98,_0x955416)=>{this[_0x4c14('0x13')](_0x4c14('0x8'),this[_0x4c14('0x16')]['id'],_0x955416),this[_0x4c14('0x12')](),this[_0x4c14('0xa')]();}),_0x59c20d['on'](_0x4c14('0x19'),()=>{this[_0x4c14('0x12')](),this[_0x4c14('0xa')]();}),_0x59c20d[_0x4c14('0xe')](_0x4c14('0x1c'),()=>{_0x59c20d['focus']();}),_0x59c20d[_0x4c14('0x1a')](),_0x59c20d;}}
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 _0x44c6=['setTemplate','ck-thread__comment-count','set','count','bindTemplate','NUMBER_OF_COMMENTS'];(function(_0x18b1c,_0x44c670){const _0x47cbb8=function(_0x57f4aa){while(--_0x57f4aa){_0x18b1c['push'](_0x18b1c['shift']());}};_0x47cbb8(++_0x44c670);}(_0x44c6,0x64));const _0x47cb=function(_0x18b1c,_0x44c670){_0x18b1c=_0x18b1c-0x0;let _0x47cbb8=_0x44c6[_0x18b1c];return _0x47cbb8;};import{View as _0x4b9f4e}from'ckeditor5/src/ui';import{getTranslation as _0x554781}from'../../../utils/common-translations';export default class Nt extends _0x4b9f4e{constructor(_0xfc531f){super(_0xfc531f);const _0x379e84=this[_0x47cb('0x0')];this[_0x47cb('0x4')]('count'),this[_0x47cb('0x2')]({'tag':'li','attributes':{'class':_0x47cb('0x3')},'children':[{'text':_0x379e84['to'](_0x47cb('0x5'),_0x15f5c8=>_0x554781(_0xfc531f,_0x47cb('0x1'),_0x15f5c8))}]});}}
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 _0x2136=['div','innerHTML','set','ck-comment__content','change:content','element','content','render','ck-annotation__content','setTemplate'];(function(_0x4b5dbd,_0x213680){var _0x2c5b2a=function(_0xe57c15){while(--_0xe57c15){_0x4b5dbd['push'](_0x4b5dbd['shift']());}};_0x2c5b2a(++_0x213680);}(_0x2136,0x1a0));var _0x2c5b=function(_0x4b5dbd,_0x213680){_0x4b5dbd=_0x4b5dbd-0x0;var _0x2c5b2a=_0x2136[_0x4b5dbd];return _0x2c5b2a;};import{View as _0x7bdeb1}from'ckeditor5/src/ui';export default class Tt extends _0x7bdeb1{constructor(_0x3d9eaf){super(_0x3d9eaf),this[_0x2c5b('0x6')](_0x2c5b('0x0'),''),this[_0x2c5b('0x3')]({'tag':_0x2c5b('0x4'),'attributes':{'class':[_0x2c5b('0x7'),_0x2c5b('0x2')]}});}[_0x2c5b('0x1')](){super[_0x2c5b('0x1')](),this['on'](_0x2c5b('0x8'),(_0xe3879,_0x2c3b3d,_0x43616a)=>{this[_0x2c5b('0x9')][_0x2c5b('0x5')]=_0x43616a;}),this['element'][_0x2c5b('0x5')]=this[_0x2c5b('0x0')];}}
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 _0x4156=['set','element','_initializeFocusCycling','forEach','ck-comment__input-actions--submit','Esc','ck-comment__input-actions--active','isEnabled','keystrokes','Submit','ck-comment__input-wrapper','_isDestroyed','div','ck-comment__input-actions--cancel','create','submitButtonView','_createSubmitButton','Reply...','focusPrevious','_editorCreationPromise','render','createEditor','check','disabledSubmit','destroy','focusNext','listenTo','then','extendTemplate','_editorConfig','_createCancelButton','add','TOO_LONG_COMMENT_ALERT','execute','bind','focusTracker','shift\x20+\x20tab','high','change','focus','insertBefore','firstChild','cancelButtonView','label','stop','value','icon','document','model','initialData','cancel','trim','showButtons','editorReady','ck-comment__input-actions','editor','placeholder','length','submit','Cancel','fire','setData','bindTemplate'];(function(_0x5cd8f1,_0x415667){const _0x2553f1=function(_0x378620){while(--_0x378620){_0x5cd8f1['push'](_0x5cd8f1['shift']());}};_0x2553f1(++_0x415667);}(_0x4156,0x1ea));const _0x2553=function(_0x5cd8f1,_0x415667){_0x5cd8f1=_0x5cd8f1-0x0;let _0x2553f1=_0x4156[_0x5cd8f1];return _0x2553f1;};import{View as _0x3f3a53,ViewCollection as _0x4b824d,FocusCycler as _0x3547e1,ButtonView as _0x1daf31}from'ckeditor5/src/ui';import{FocusTracker as _0x1efc86,KeystrokeHandler as _0x421ef0}from'ckeditor5/src/utils';import{icons as _0x48d3d7}from'ckeditor5/src/core';import _0x273c84 from'../commenteditor/commenteditor';import{getTranslation as _0x28698e}from'../../../utils/common-translations';export default class It extends _0x3f3a53{constructor(_0x35a66f,_0x5015c4={}){super(_0x35a66f),this[_0x2553('0x6')]=null,this[_0x2553('0x2b')]=_0x5015c4,this[_0x2553('0x16')]=new _0x421ef0(),this[_0x2553('0x31')]=new _0x1efc86(),this[_0x2553('0xe')](_0x2553('0x3b'),_0x5015c4[_0x2553('0x0')]||''),this[_0x2553('0xe')](_0x2553('0x25'),!0x1),this[_0x2553('0xe')](_0x2553('0x3'),!0x0),this['set'](_0x2553('0x7'),_0x28698e(_0x35a66f,_0x2553('0x1f'))),this[_0x2553('0x1d')]=this[_0x2553('0x1e')](),this[_0x2553('0x38')]=this[_0x2553('0x2c')](),this['setTemplate']({'tag':_0x2553('0x1a'),'attributes':{'class':[_0x2553('0x18')]},'children':[{'tag':_0x2553('0x1a'),'attributes':{'class':[_0x2553('0x5'),this[_0x2553('0xd')]['if'](_0x2553('0x3'),_0x2553('0x14'))]},'children':[this[_0x2553('0x1d')],this['cancelButtonView']]}]}),this[_0x2553('0x16')][_0x2553('0xe')](_0x2553('0x13'),(_0x5ca327,_0x285400)=>{this[_0x2553('0x38')][_0x2553('0xb')](_0x2553('0x2f')),_0x285400();}),this['on']('submit',(_0x12b0b3,_0x1a3b3e)=>{_0x1a3b3e[_0x2553('0x8')]>0xfde8?(alert(_0x28698e(_0x35a66f,_0x2553('0x2e'),[_0x1a3b3e[_0x2553('0x8')],0xfde8])),_0x12b0b3[_0x2553('0x3a')]()):this[_0x2553('0x6')][_0x2553('0xc')]('');},{'priority':_0x2553('0x33')});}[_0x2553('0x22')](){super['render'](),this['keystrokes'][_0x2553('0x28')](this['element']),this['focusTracker'][_0x2553('0x2d')](this[_0x2553('0xf')]);}[_0x2553('0x23')](){return this[_0x2553('0x6')]||(this['editor']=new _0x273c84(this[_0x2553('0x2b')]),this[_0x2553('0x21')]=this[_0x2553('0x6')][_0x2553('0x1c')]()[_0x2553('0x29')](()=>{this[_0x2553('0x19')]||(this[_0x2553('0xf')][_0x2553('0x36')](this[_0x2553('0x6')]['ui'][_0x2553('0xf')],this['element'][_0x2553('0x37')]),this[_0x2553('0x6')][_0x2553('0x3e')][_0x2553('0x3d')]['on'](_0x2553('0x34'),()=>this[_0x2553('0x3b')]=this[_0x2553('0x6')]['getData']()),this['editor']['bind'](_0x2553('0x7'))['to'](this),this[_0x2553('0x10')](this[_0x2553('0x6')]),this[_0x2553('0xb')](_0x2553('0x4')));})),this[_0x2553('0x21')];}['focus'](){this[_0x2553('0x6')]&&this[_0x2553('0x6')][_0x2553('0x35')]();}async[_0x2553('0x26')](){this[_0x2553('0x19')]||(this[_0x2553('0x19')]=!0x0,this['editor']&&(await this[_0x2553('0x21')],await this['editor'][_0x2553('0x26')]()),await super['destroy']());}[_0x2553('0x1e')](){const {locale:_0x4c0825}=this,_0x3967c5=new _0x1daf31(_0x4c0825);return _0x3967c5[_0x2553('0x2a')]({'attributes':{'class':[_0x2553('0x12')]}}),_0x3967c5['label']=_0x28698e(_0x4c0825,_0x2553('0x17')),_0x3967c5[_0x2553('0x3c')]=_0x48d3d7[_0x2553('0x24')],_0x3967c5['on'](_0x2553('0x2f'),()=>{this[_0x2553('0xb')](_0x2553('0x9'),this[_0x2553('0x3b')]);}),_0x3967c5[_0x2553('0x30')](_0x2553('0x15'))['to'](this,'value',this,'disabledSubmit',(_0x45a108,_0x22b3ef)=>!_0x22b3ef&&!!_0x45a108[_0x2553('0x2')]()),_0x3967c5;}['_createCancelButton'](){const {locale:_0x52d27b}=this,_0x3f55f6=new _0x1daf31(_0x52d27b);return _0x3f55f6[_0x2553('0x2a')]({'attributes':{'class':[_0x2553('0x1b')]}}),_0x3f55f6[_0x2553('0x39')]=_0x28698e(_0x52d27b,_0x2553('0xa')),_0x3f55f6[_0x2553('0x3c')]=_0x48d3d7['cancel'],_0x3f55f6['on'](_0x2553('0x2f'),()=>{this[_0x2553('0x6')][_0x2553('0xc')](''),this[_0x2553('0xb')](_0x2553('0x1'));}),_0x3f55f6;}[_0x2553('0x10')](_0x22f4c3){const _0x2decd4=this[_0x2553('0x31')],_0x57c34f=new _0x4b824d();[_0x22f4c3['ui']['view'],this[_0x2553('0x1d')],this[_0x2553('0x38')]][_0x2553('0x11')](_0x221668=>{_0x57c34f[_0x2553('0x2d')](_0x221668),_0x2decd4[_0x2553('0x2d')](_0x221668[_0x2553('0xf')]);});const _0x2d0153=new _0x3547e1({'focusables':_0x57c34f,'focusTracker':_0x2decd4});this[_0x2553('0x16')][_0x2553('0xe')]('tab',(_0x473326,_0x57d4a1)=>{_0x2d0153[_0x2553('0x27')](),_0x57d4a1();},{'priority':'low'}),this['keystrokes'][_0x2553('0xe')](_0x2553('0x32'),(_0x448256,_0x3200de)=>{_0x2d0153[_0x2553('0x20')](),_0x3200de();},{'priority':'low'});}}
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 _0x2e16=['remove','_handleRemoveCommentModel','_config','hasDirtyComment','get','ck-thread__comments','setTemplate','updateComment','createCollection','from','collapse','delegate','isEditMode','delete','isActive','removeComment','focus','_shouldCollapse','expand','_handleNewCommentModel','commentUpdated','comments','stopListening','_rearrangeCollapse','_rearrangeExpand','destroy','CommentView','visibleViews','insert','change:hasDirtyComment','locale','editorConfig','maxCommentsWhenCollapsed','_updateHasDirtyComment','add','_collapsedCommentsView','commentViews','maxCommentCharsWhenCollapsed','change:isActive','length','bind','count','render','refreshVisibleViews','listenTo','formatDateTime'];(function(_0x13d1f2,_0x2e160e){const _0x2a5c4b=function(_0x109bb4){while(--_0x109bb4){_0x13d1f2['push'](_0x13d1f2['shift']());}};_0x2a5c4b(++_0x2e160e);}(_0x2e16,0xb7));const _0x2a5c=function(_0x13d1f2,_0x2e160e){_0x13d1f2=_0x13d1f2-0x0;let _0x2a5c4b=_0x2e16[_0x13d1f2];return _0x2a5c4b;};import{View as _0x7bcbac}from'ckeditor5/src/ui';import{diff as _0x1d9c76,Collection as _0x121559}from'ckeditor5/src/utils';import _0x475160 from'./collapsedcommentsview';export default class L extends _0x7bcbac{constructor(_0x39d15c,_0x419392,_0xc31500){super(_0x39d15c),this['set']('hasDirtyComment',!0x1),this['set'](_0x2a5c('0x28'),_0x419392['comments'][_0x2a5c('0x28')]),this['set']('isActive',!0x1),this['_model']=_0x419392,this['_config']=_0xc31500,this['commentViews']=this['createCollection'](),this['visibleViews']=this[_0x2a5c('0x9')](),this[_0x2a5c('0x24')]=new _0x475160(_0x39d15c),this[_0x2a5c('0x24')][_0x2a5c('0x29')](_0x2a5c('0x2a'))['to'](this,'length',_0x419918=>_0x419918-this['_config'][_0x2a5c('0x21')]);for(const _0x2f3b25 of _0x419392['comments'])this['_handleNewCommentModel'](_0x2f3b25);this['listenTo'](_0x419392[_0x2a5c('0x16')],_0x2a5c('0x23'),(_0x581256,_0x59b465)=>{this['length']++,this['_handleNewCommentModel'](_0x59b465),this[_0x2a5c('0x2c')]();}),this[_0x2a5c('0x2d')](_0x419392[_0x2a5c('0x16')],'remove',(_0x581a92,_0x499223)=>{this['length']--,this[_0x2a5c('0x2')](_0x499223),this['refreshVisibleViews']();}),this[_0x2a5c('0x2d')](_0x419392,_0x2a5c('0x15'),()=>this[_0x2a5c('0x2c')]()),this['on'](_0x2a5c('0x27'),()=>this[_0x2a5c('0x2c')]()),this['on'](_0x2a5c('0x1e'),()=>this[_0x2a5c('0x2c')]()),this[_0x2a5c('0x7')]({'tag':'ul','attributes':{'class':[_0x2a5c('0x6')]},'children':this[_0x2a5c('0x1c')]});}get['_shouldCollapse'](){return this['_model']['weight']>this[_0x2a5c('0x3')]['maxThreadTotalWeight']&&!this[_0x2a5c('0xf')]&&!this[_0x2a5c('0x4')];}[_0x2a5c('0x2b')](){super[_0x2a5c('0x2b')](),this[_0x2a5c('0x2c')]();}[_0x2a5c('0x11')](){this['element'][_0x2a5c('0x11')]();}['destroy'](){this[_0x2a5c('0x24')][_0x2a5c('0x1a')]();for(const _0x2ff912 of this[_0x2a5c('0x25')])_0x2ff912[_0x2a5c('0x1a')]();super[_0x2a5c('0x1a')]();}[_0x2a5c('0x2c')](){this[_0x2a5c('0x12')]?this[_0x2a5c('0x18')]():this['_rearrangeExpand']();}[_0x2a5c('0x14')](_0x445f5b){const _0x1e8170=new this[(_0x2a5c('0x3'))][(_0x2a5c('0x1b'))](this[_0x2a5c('0x1f')],_0x445f5b,{'maxCommentCharsWhenCollapsed':this[_0x2a5c('0x3')][_0x2a5c('0x26')],'formatDateTime':this[_0x2a5c('0x3')][_0x2a5c('0x0')],'editorConfig':this['_config'][_0x2a5c('0x20')]});_0x1e8170['viewUid']=_0x445f5b['id'],_0x1e8170['delegate'](_0x2a5c('0x10'))['to'](this),_0x1e8170[_0x2a5c('0xc')](_0x2a5c('0x8'))['to'](this),this[_0x2a5c('0x2d')](_0x1e8170,'change:isEditMode',()=>this[_0x2a5c('0x22')]()),this[_0x2a5c('0x25')]['add'](_0x1e8170);}['_handleRemoveCommentModel'](_0x1da5f4){const _0x50f8d8=this[_0x2a5c('0x25')]['remove'](_0x1da5f4['id']);this[_0x2a5c('0x17')](_0x50f8d8),_0x50f8d8[_0x2a5c('0xd')]&&this[_0x2a5c('0x22')](),_0x50f8d8['destroy']();}[_0x2a5c('0x22')](){this[_0x2a5c('0x4')]=Array['from'](this[_0x2a5c('0x25')])['some'](_0x22b7bf=>_0x22b7bf[_0x2a5c('0xd')]);}[_0x2a5c('0x18')](){const _0x4396d0=function(_0x4db576){const _0x3281bf=new _0x121559();for(const _0x41733b of _0x4db576)_0x3281bf[_0x2a5c('0x23')](_0x41733b);return _0x3281bf;}(this[_0x2a5c('0x25')]),_0x16015e=this[_0x2a5c('0x24')][_0x2a5c('0x2a')];for(let _0x16dbb7=0x1;_0x16dbb7<=_0x16015e;_0x16dbb7++)_0x4396d0[_0x2a5c('0x1')](0x1);for(const _0x474a8f of _0x4396d0)_0x474a8f[_0x2a5c('0xb')]();_0x16015e>0x0&&_0x4396d0['add'](this[_0x2a5c('0x24')],0x1),Wt(_0x1d9c76(Array['from'](this[_0x2a5c('0x1c')]),Array[_0x2a5c('0xa')](_0x4396d0)),this[_0x2a5c('0x1c')],_0x4396d0);}[_0x2a5c('0x19')](){Wt(_0x1d9c76(Array[_0x2a5c('0xa')](this['visibleViews']),Array[_0x2a5c('0xa')](this['commentViews'])),this[_0x2a5c('0x1c')],this[_0x2a5c('0x25')]);for(const _0x2b30dd of this[_0x2a5c('0x1c')])_0x2b30dd[_0x2a5c('0x13')]();}}function Wt(_0x497315,_0x1dae37,_0x1d1991){let _0x528677=0x0;for(const _0x2c61ad of _0x497315)switch(_0x2c61ad){case _0x2a5c('0x1d'):_0x1dae37[_0x2a5c('0x23')](_0x1d1991[_0x2a5c('0x5')](_0x528677),_0x528677),_0x528677++;break;case _0x2a5c('0xe'):_0x1dae37[_0x2a5c('0x1')](_0x528677);break;case'equal':_0x528677++;}}
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 _0x25e5=['extendTemplate','change:showInput','commentInputView','editor','userView','focusTracker','setTemplate','destroy','showInput','set','ck-thread__input','value','createEditor','bind','div','bindTemplate','then','ck-thread__user','isFocused'];(function(_0x23045e,_0x25e51b){var _0x3d6bd1=function(_0x4f42a8){while(--_0x4f42a8){_0x23045e['push'](_0x23045e['shift']());}};_0x3d6bd1(++_0x25e51b);}(_0x25e5,0xf7));var _0x3d6b=function(_0x23045e,_0x25e51b){_0x23045e=_0x23045e-0x0;var _0x3d6bd1=_0x25e5[_0x23045e];return _0x3d6bd1;};import{View as _0x337d1}from'ckeditor5/src/ui';import _0x2be87b from'./commentinputview';import{UserView as _0x101e63}from'ckeditor5-collaboration/src/collaboration-core';export default class z extends _0x337d1{constructor(_0x424456,_0x341890,_0x2fede5){super(_0x424456),this['commentInputView']=new _0x2be87b(_0x424456,_0x2fede5),this['commentInputView'][_0x3d6b('0xd')]('showButtons')['to'](this[_0x3d6b('0x2')][_0x3d6b('0x5')],_0x3d6b('0x12'),this[_0x3d6b('0x2')],_0x3d6b('0xb'),(_0x25e10b,_0x52c26c)=>_0x25e10b||!!_0x52c26c),this[_0x3d6b('0x9')](_0x3d6b('0x8'),!0x1),this['on'](_0x3d6b('0x1'),()=>{this[_0x3d6b('0x8')]&&!this['commentInputView'][_0x3d6b('0x3')]&&this[_0x3d6b('0x2')][_0x3d6b('0xc')]();}),this[_0x3d6b('0x4')]=new _0x101e63(_0x424456,_0x341890),this['userView'][_0x3d6b('0x0')]({'attributes':{'class':_0x3d6b('0x11')}}),this[_0x3d6b('0x2')]['extendTemplate']({'attributes':{'class':_0x3d6b('0xa')}}),this[_0x3d6b('0x6')]({'tag':_0x3d6b('0xe'),'attributes':{'class':['ck-comment__input-container',this[_0x3d6b('0xf')]['if'](_0x3d6b('0x8'),'ck-comment__input-container--active')]},'children':[this['userView'],this[_0x3d6b('0x2')]]});}['destroy'](){return this[_0x3d6b('0x2')][_0x3d6b('0x7')]()[_0x3d6b('0x10')](()=>super['destroy']());}}
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 _0x554e=['fire','length','ck-thread--','div','then','showConfirm','Delete\x20comment\x20thread?','ck-thread','change:isReadOnly','Write\x20a\x20comment...','cancelConfirm','actionIndicator','containerElement','ck-thread--active','bindTemplate','commentsListView','removeButton','_boundFirstCommentView','ck-thread--remove-confirmation','listenTo','_cancelAllConfirms','.ck-thread__container','change:isActive','remove','removeCommentThread','add','_model','bind','_bindFirstCommentView','render','unbind','execute','commentViews','set','isActive','high','stop'];(function(_0x22b770,_0x554e2a){const _0x332857=function(_0xfab3e6){while(--_0xfab3e6){_0x22b770['push'](_0x22b770['shift']());}};_0x332857(++_0x554e2a);}(_0x554e,0xf5));const _0x3328=function(_0x22b770,_0x554e2a){_0x22b770=_0x22b770-0x0;let _0x332857=_0x554e[_0x22b770];return _0x332857;};import{mix as _0x20b1dd}from'ckeditor5/src/utils';import{ConfirmMixin as _0x2034bb}from'ckeditor5-collaboration/src/collaboration-core';import _0x2a4bf6 from'./basecommentthreadview';import{getTranslation as _0x2b7edb}from'../../../utils/common-translations';export default class S extends _0x2a4bf6{constructor(_0x350716,_0x1f91a6,_0x4b1338,_0xb89f40){super(_0x350716,_0x1f91a6,_0x4b1338,_0xb89f40),this[_0x3328('0xa')](_0x3328('0x19'),null),this['containerElement']=null,this[_0x3328('0x1f')]=null,this['locale']=_0x350716,this['setTemplate'](this['getTemplate']()),this['on'](_0x3328('0x24'),(_0x419482,_0x1c31d8,_0x3e2543)=>{_0x3e2543||this[_0x3328('0x22')]();}),this[_0x3328('0x21')](this[_0x3328('0x3')],_0x3328('0x16'),(_0x3a4205,_0x2f3ff3,_0x5a06a3)=>{_0x5a06a3&&this[_0x3328('0x22')]();}),this[_0x3328('0xf')]>0x0&&this[_0x3328('0x5')](),this[_0x3328('0x21')](this['commentsListView'][_0x3328('0x9')],_0x3328('0x2'),()=>{this[_0x3328('0x5')]();});}['getTemplate'](){const _0x5693fa=this[_0x3328('0x1c')];return{'tag':_0x3328('0x11'),'attributes':{'class':[_0x3328('0x15'),_0x5693fa['if'](_0x3328('0xb'),_0x3328('0x1b')),_0x5693fa['if']('isConfirm',_0x3328('0x20')),_0x5693fa['to'](_0x3328('0x19'),_0x460d0a=>_0x460d0a?_0x3328('0x10')+_0x460d0a:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':_0x3328('0x11'),'attributes':{'class':'ck-thread__container'},'children':[this[_0x3328('0x1d')],this['commentThreadInputView']]}]};}[_0x3328('0x6')](){super[_0x3328('0x6')](),this[_0x3328('0x1a')]=this['element']['querySelector'](_0x3328('0x23'));}[_0x3328('0x22')](){this[_0x3328('0x18')]();for(const _0x36e2af of this['commentsListView'][_0x3328('0x9')])_0x36e2af[_0x3328('0x18')]();}['_bindFirstCommentView'](){const {locale:_0x495e44}=this,_0x56840a=this['commentsListView'][_0x3328('0x9')]['get'](0x0);_0x56840a!==this[_0x3328('0x1f')]&&(this['_boundFirstCommentView']=_0x56840a,this[_0x3328('0x7')](_0x3328('0x19')),this[_0x3328('0x4')](_0x3328('0x19'))['to'](_0x56840a,'actionIndicator',_0x83884c=>_0x3328('0x0')===_0x83884c?_0x3328('0x0'):null),_0x56840a['placeholder']=_0x2b7edb(_0x495e44,_0x3328('0x17')),_0x56840a[_0x3328('0x1e')]['on'](_0x3328('0x8'),_0xf08f96=>{_0xf08f96[_0x3328('0xd')](),this[_0x3328('0x13')](_0x2b7edb(_0x495e44,_0x3328('0x14')),this[_0x3328('0x1a')])[_0x3328('0x12')](()=>{this[_0x3328('0xe')](_0x3328('0x1'));});},{'priority':_0x3328('0xc')}));}}_0x20b1dd(S,_0x2034bb);
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 _0x4bf7=['isReadOnly','ck-comment--','_attachActions','@external','getExternalCommentNote','isConfirm','mouseenter','ck-annotation__info-time','Edit','author','setTemplate','ck-annotation__info-name','bindTemplate','switchToEditMode','ck-comment--edit','time','visibleView','ck-annotation__user','authoredAt','ck-comment__info','EXTERNAL_AVATAR','render','edit','bind','set','userView','EXTERNAL_COMMENT','creator','element','showConfirm','Remove','icon','locale','ck-comment','formatDateTime','getUserViewNotificationText','label','isRemovable','Delete\x20comment?','ck-comment--remove','actionIndicator','importWord','isExternal','_createEditButton','ck-comment__external','isEditable','focus','isVisible','isEnabled','blur','ck-annotation__content-wrapper','removeButton','_model','ck-comment__main','ck-annotation__actions--hidden','execute','isEditMode','div','fire','extendTemplate','listenTo','EXTERNAL_IMPORT_WORD_COMMENT','name','source','ck-annotation__main','then','_createCommentInputView','editButton','ck-comment__info-name','ck-comment__info-time','attributes','_createRemoveButton'];(function(_0x7d9a9e,_0x4bf775){const _0x177ce8=function(_0x495a41){while(--_0x495a41){_0x7d9a9e['push'](_0x7d9a9e['shift']());}};_0x177ce8(++_0x4bf775);}(_0x4bf7,0x84));const _0x177c=function(_0x7d9a9e,_0x4bf775){_0x7d9a9e=_0x7d9a9e-0x0;let _0x177ce8=_0x4bf7[_0x7d9a9e];return _0x177ce8;};import{mix as _0x2aa32d}from'ckeditor5/src/utils';import{ButtonView as _0x33a93f}from'ckeditor5/src/ui';import{icons as _0x32b52b}from'ckeditor5/src/core';import{UserView as _0x45b92a,ConfirmMixin as _0x1962e1}from'ckeditor5-collaboration/src/collaboration-core';import _0x37fafd from'./basecommentview';import _0xecd2b8 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x13e683}from'../../../utils/common-translations';export default class W extends _0x37fafd{constructor(_0x4a3c38,_0x8e1a,_0x490cdd){super(_0x4a3c38,_0x8e1a,_0x490cdd),this[_0x177c('0x24')]('actionIndicator',null),this['set']('placeholder',_0x13e683(_0x4a3c38,'Reply...')),this[_0x177c('0x24')](_0x177c('0x1e'),null),this[_0x177c('0x23')](_0x177c('0x1e'))['to'](_0x8e1a),this['editButton']=this['_createEditButton'](),this[_0x177c('0x3f')]=this[_0x177c('0xb')](),this[_0x177c('0x25')]=new _0x45b92a(_0x4a3c38,_0x8e1a[_0x177c('0x15')],this[_0x177c('0x2f')]()),this[_0x177c('0x25')]['extendTemplate']({'attributes':{'class':['ck-comment__user',_0x177c('0x1d')]}}),this[_0x177c('0x0')](_0x8e1a,'change:isRemovable',()=>this['cancelConfirm']()),this[_0x177c('0x16')](this['getTemplate']());}['getTemplate'](){const _0x120239=this[_0x177c('0x18')],_0x3aacaa=[{'tag':_0x177c('0x45'),'attributes':{'class':[_0x177c('0x1f'),'ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this[_0x177c('0x25')][_0x177c('0x2')]}],'attributes':{'class':[_0x177c('0x8'),_0x177c('0x17')]}},{'tag':_0x177c('0x1b'),'attributes':{'datetime':_0x120239['to'](_0x177c('0x1e')),'class':[_0x177c('0x9'),_0x177c('0x13')]},'children':[{'text':_0x120239['to'](_0x177c('0x1e'),_0x2650c0=>this['_config'][_0x177c('0x2e')](_0x2650c0))}]}]},{'tag':_0x177c('0x45'),'attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x120239['if'](_0x177c('0x44'),'ck-comment__actions--hidden'),_0x120239['if'](_0x177c('0x44'),_0x177c('0x42'))]},'children':[this[_0x177c('0x7')],this[_0x177c('0x3f')]]},{'tag':'div','attributes':{'class':[_0x177c('0x3e')]},'children':this[_0x177c('0x1c')]}];return this[_0x177c('0x40')]['isExternal']&&_0x3aacaa['push']({'tag':_0x177c('0x45'),'attributes':{'class':[_0x177c('0x38')]},'children':[{'text':this[_0x177c('0x10')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x120239['if'](_0x177c('0x11'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x177c('0x45'),'attributes':{'class':[_0x177c('0x2d'),'ck-annotation',_0x120239['if'](_0x177c('0x44'),'ck-comment--edit'),_0x120239['to'](_0x177c('0x34'),_0x571ba9=>_0x571ba9?_0x177c('0xd')+_0x571ba9:'')],'data-author-id':this[_0x177c('0x40')][_0x177c('0x15')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x177c('0x25')],{'tag':_0x177c('0x45'),'attributes':{'class':[_0x177c('0x41'),_0x177c('0x4')]},'children':_0x3aacaa}]}]};}[_0x177c('0x37')](){const _0x163469=new _0x33a93f(this[_0x177c('0x2c')]);return _0x163469[_0x177c('0x30')]=_0x13e683(this[_0x177c('0x2c')],_0x177c('0x14')),_0x163469[_0x177c('0x2b')]=_0x32b52b['pencil'],_0x163469['extendTemplate']({'attributes':{'class':_0x177c('0x1a')}}),_0x163469['bind'](_0x177c('0x3c'))['to'](this[_0x177c('0x40')],_0x177c('0xc'),_0x46940f=>!_0x46940f),_0x163469[_0x177c('0x23')](_0x177c('0x3b'))['to'](this['_model'],_0x177c('0x39')),_0x163469['on'](_0x177c('0x43'),()=>this[_0x177c('0x19')]()),_0x163469;}[_0x177c('0xb')](){const _0x5e6b9d=new _0x33a93f(this[_0x177c('0x2c')]);return _0x5e6b9d[_0x177c('0x30')]=_0x13e683(this['locale'],_0x177c('0x2a')),_0x5e6b9d['icon']=_0xecd2b8,_0x5e6b9d[_0x177c('0x47')]({'attributes':{'class':_0x177c('0x33')}}),_0x5e6b9d['bind'](_0x177c('0x3c'))['to'](this[_0x177c('0x40')],_0x177c('0xc'),_0x3f06d6=>!_0x3f06d6),_0x5e6b9d[_0x177c('0x23')](_0x177c('0x3b'))['to'](this[_0x177c('0x40')],_0x177c('0x31')),_0x5e6b9d['on'](_0x177c('0x43'),()=>{this[_0x177c('0x29')](_0x13e683(this['locale'],_0x177c('0x32')),this[_0x177c('0x28')])[_0x177c('0x5')](()=>{this[_0x177c('0x46')]('removeComment',this[_0x177c('0x40')]['id']);});}),_0x5e6b9d;}['_attachActions'](_0xa4f337,_0xc13cd2){this['listenTo'](_0xa4f337,_0x177c('0x12'),()=>this['actionIndicator']=_0xc13cd2),this[_0x177c('0x0')](_0xa4f337,_0x177c('0x3a'),()=>this['actionIndicator']=_0xc13cd2),this[_0x177c('0x0')](_0xa4f337,'mouseleave',()=>this[_0x177c('0x34')]=null),this[_0x177c('0x0')](_0xa4f337,_0x177c('0x3d'),()=>this[_0x177c('0x34')]=null);}[_0x177c('0x6')](){const _0x9b96d3=super[_0x177c('0x6')]();return _0x9b96d3['bind']('placeholder')['to'](this),_0x9b96d3;}[_0x177c('0x10')](){return _0x177c('0x35')===this[_0x177c('0x40')][_0x177c('0xa')][_0x177c('0xf')][_0x177c('0x3')]?_0x13e683(this['locale'],_0x177c('0x1')):_0x13e683(this[_0x177c('0x2c')],_0x177c('0x26'));}[_0x177c('0x2f')](){return this[_0x177c('0x40')][_0x177c('0x36')]?_0x177c('0x35')===this[_0x177c('0x40')]['attributes'][_0x177c('0xf')][_0x177c('0x3')]?_0x13e683(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x177c('0x40')]['creator'][_0x177c('0x2')]):_0x13e683(this['locale'],_0x177c('0x20'),this['_model'][_0x177c('0x27')][_0x177c('0x2')]):null;}[_0x177c('0x21')](){super[_0x177c('0x21')](),this[_0x177c('0xe')](this[_0x177c('0x7')][_0x177c('0x28')],_0x177c('0x22')),this[_0x177c('0xe')](this['removeButton'][_0x177c('0x28')],'remove');}}_0x2aa32d(W,_0x1962e1);
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 _0x2700=['pluginName','Comments','requires'];(function(_0x4950b5,_0x270047){var _0x127462=function(_0x5ba428){while(--_0x5ba428){_0x4950b5['push'](_0x4950b5['shift']());}};_0x127462(++_0x270047);}(_0x2700,0x198));var _0x1274=function(_0x4950b5,_0x270047){_0x4950b5=_0x4950b5-0x0;var _0x127462=_0x2700[_0x4950b5];return _0x127462;};import{Plugin as _0x55918c}from'ckeditor5/src/core';import _0x46b138 from'./comments/commentsrepository';import _0x3410c0 from'./comments/commentsediting';import _0xc53860 from'./comments/commentsui';import _0x53eaba from'./commentsonly';import _0xa5f85e from'./annotations/widesidebar';import _0x1c46bc from'./annotations/narrowsidebar';import _0x5d7a56 from'./annotations/inlineannotations';export default class c extends _0x55918c{static get[_0x1274('0x2')](){return[_0x46b138,_0x3410c0,_0xc53860,_0x53eaba,_0xa5f85e,_0x1c46bc,_0x5d7a56];}static get[_0x1274('0x0')](){return _0x1274('0x1');}}
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 _0x17d1=['forceDisabled','document','addCommentThread','clearForceDisabled','editor','cut','listenTo','stopListening','view','has','DragDrop','set','commands','CommentsOnly','commentsOnlyMode','editing','requires','delete','stop','_enableCommentsOnlyMode','plugins','isEnabled','pluginName','get','change:isEnabled','affectsData','clipboardInput','highest','afterInit'];(function(_0x3c5c0f,_0x17d1c5){const _0x279f48=function(_0x3b8ae9){while(--_0x3b8ae9){_0x3c5c0f['push'](_0x3c5c0f['shift']());}};_0x279f48(++_0x17d1c5);}(_0x17d1,0x161));const _0x279f=function(_0x3c5c0f,_0x17d1c5){_0x3c5c0f=_0x3c5c0f-0x0;let _0x279f48=_0x17d1[_0x3c5c0f];return _0x279f48;};import{Plugin as _0x176a47}from'ckeditor5/src/core';import _0xebef22 from'./comments/commentsediting';export default class e extends _0x176a47{static get[_0x279f('0x11')](){return _0x279f('0x8');}static get[_0x279f('0xb')](){return[_0xebef22];}constructor(_0x4ab009){super(_0x4ab009),this[_0x279f('0x6')](_0x279f('0x10'),null),this['on'](_0x279f('0x13'),(_0x2e1f0b,_0x1a7fc0,_0x450c62)=>{_0x450c62?this[_0x279f('0xe')]():this['_disableCommentsOnlyMode']();});}[_0x279f('0x17')](){null===this[_0x279f('0x10')]&&(this[_0x279f('0x10')]=!!this[_0x279f('0x1c')]['config'][_0x279f('0x12')]('commentsOnly'));}[_0x279f('0xe')](){for(const [_0x171505,_0x132e4c]of this[_0x279f('0x1c')][_0x279f('0x7')])_0x132e4c[_0x279f('0x14')]&&_0x279f('0x1a')!==_0x171505&&_0x132e4c[_0x279f('0x18')](_0x279f('0x9'));this[_0x279f('0x1c')][_0x279f('0xf')][_0x279f('0x4')](_0x279f('0x5'))&&this['editor'][_0x279f('0xf')][_0x279f('0x12')](_0x279f('0x5'))[_0x279f('0x18')](_0x279f('0x9'));const _0x25ee19=this[_0x279f('0x1c')]['editing']['view'][_0x279f('0x19')];this[_0x279f('0x1')](_0x25ee19,_0x279f('0x0'),_0x1b57b9=>_0x1b57b9['stop'](),{'priority':_0x279f('0x16')}),this['listenTo'](_0x25ee19,_0x279f('0x15'),_0x3fcaa5=>_0x3fcaa5[_0x279f('0xd')](),{'priority':_0x279f('0x16')}),this[_0x279f('0x1')](_0x25ee19,_0x279f('0xc'),_0x2fbf4b=>_0x2fbf4b[_0x279f('0xd')](),{'priority':_0x279f('0x16')});}['_disableCommentsOnlyMode'](){for(const [_0x824628,_0x156162]of this[_0x279f('0x1c')][_0x279f('0x7')])_0x156162['affectsData']&&_0x279f('0x1a')!==_0x824628&&_0x156162[_0x279f('0x1b')](_0x279f('0x9'));this[_0x279f('0x2')](this['editor'][_0x279f('0xa')][_0x279f('0x3')]['document']);}}
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(_0x5c6e25,_0x42b2c9,_0xa56aaa){const t=_0x5c6e25['t'];switch(_0x42b2c9){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'},_0xa56aaa);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'},_0xa56aaa);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'},_0xa56aaa);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'},_0xa56aaa);}}
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 _0x4a70=['attributes','class','cancel','type','attributeName','observe','childList'];(function(_0x3f6d98,_0x4a702a){const _0x1b39fd=function(_0x2923d6){while(--_0x2923d6){_0x3f6d98['push'](_0x3f6d98['shift']());}};_0x1b39fd(++_0x4a702a);}(_0x4a70,0x74));const _0x1b39=function(_0x3f6d98,_0x4a702a){_0x3f6d98=_0x3f6d98-0x0;let _0x1b39fd=_0x4a70[_0x3f6d98];return _0x1b39fd;};import{throttle as _0x31a186}from'lodash-es';export default function ft(_0x3779b6){const _0x5cb025=_0x31a186(_0x3779b6,0x1e),_0x23d96a=new MutationObserver(_0x2ec50a=>{for(const _0x2d267a of _0x2ec50a)(_0x1b39('0x3')==_0x2d267a[_0x1b39('0x6')]&&_0x1b39('0x4')==_0x2d267a[_0x1b39('0x0')]||_0x1b39('0x2')==_0x2d267a[_0x1b39('0x6')])&&_0x5cb025();});return{'attach'(_0x4b91c2){_0x23d96a[_0x1b39('0x1')](_0x4b91c2,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x23d96a['disconnect'](),_0x5cb025[_0x1b39('0x5')]();}};}
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