@ckeditor/ckeditor5-comments 39.0.0 → 39.0.2

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 (107) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE.md +5 -5
  3. package/README.md +13 -13
  4. package/build/comments.js +1 -1
  5. package/build/translations/fa.js +1 -1
  6. package/lang/translations/af.po +1 -0
  7. package/lang/translations/ar.po +1 -0
  8. package/lang/translations/bg.po +1 -0
  9. package/lang/translations/bn.po +1 -0
  10. package/lang/translations/bs.po +1 -0
  11. package/lang/translations/ca.po +1 -0
  12. package/lang/translations/cs.po +1 -0
  13. package/lang/translations/da.po +1 -0
  14. package/lang/translations/de-ch.po +1 -0
  15. package/lang/translations/de.po +1 -0
  16. package/lang/translations/el.po +1 -0
  17. package/lang/translations/en-au.po +1 -0
  18. package/lang/translations/en.po +1 -0
  19. package/lang/translations/es-co.po +1 -0
  20. package/lang/translations/es.po +1 -0
  21. package/lang/translations/et.po +1 -0
  22. package/lang/translations/fa.po +10 -9
  23. package/lang/translations/fi.po +1 -0
  24. package/lang/translations/fr.po +1 -0
  25. package/lang/translations/gl.po +1 -0
  26. package/lang/translations/he.po +1 -0
  27. package/lang/translations/hi.po +1 -0
  28. package/lang/translations/hr.po +1 -0
  29. package/lang/translations/hu.po +1 -0
  30. package/lang/translations/id.po +1 -0
  31. package/lang/translations/it.po +1 -0
  32. package/lang/translations/ja.po +1 -0
  33. package/lang/translations/jv.po +1 -0
  34. package/lang/translations/ko.po +1 -0
  35. package/lang/translations/lt.po +1 -0
  36. package/lang/translations/lv.po +1 -0
  37. package/lang/translations/ms.po +1 -0
  38. package/lang/translations/nl.po +1 -0
  39. package/lang/translations/no.po +1 -0
  40. package/lang/translations/pl.po +1 -0
  41. package/lang/translations/pt-br.po +1 -0
  42. package/lang/translations/pt.po +1 -0
  43. package/lang/translations/ro.po +1 -0
  44. package/lang/translations/ru.po +1 -0
  45. package/lang/translations/sk.po +1 -0
  46. package/lang/translations/sq.po +1 -0
  47. package/lang/translations/sr-latn.po +1 -0
  48. package/lang/translations/sr.po +1 -0
  49. package/lang/translations/sv.po +1 -0
  50. package/lang/translations/th.po +1 -0
  51. package/lang/translations/tk.po +1 -0
  52. package/lang/translations/tr.po +1 -0
  53. package/lang/translations/tt.po +1 -0
  54. package/lang/translations/ug.po +1 -0
  55. package/lang/translations/uk.po +1 -0
  56. package/lang/translations/ur.po +1 -0
  57. package/lang/translations/vi.po +1 -0
  58. package/lang/translations/zh-cn.po +1 -0
  59. package/lang/translations/zh.po +1 -0
  60. package/package.json +3 -7
  61. package/src/annotations/annotation.js +1 -1
  62. package/src/annotations/annotationcollection.js +1 -1
  63. package/src/annotations/annotations.js +1 -1
  64. package/src/annotations/annotationsuis.js +1 -1
  65. package/src/annotations/editorannotations.js +1 -1
  66. package/src/annotations/inlineannotations.js +1 -1
  67. package/src/annotations/narrowsidebar.js +1 -1
  68. package/src/annotations/sidebar.js +1 -1
  69. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  70. package/src/annotations/view/annotationview.js +1 -1
  71. package/src/annotations/view/sidebaritemview.js +1 -1
  72. package/src/annotations/view/sidebarview.js +1 -1
  73. package/src/annotations/widesidebar.js +1 -1
  74. package/src/comments/addcommentthreadcommand.js +1 -1
  75. package/src/comments/commentsarchive.js +1 -1
  76. package/src/comments/commentsarchiveui.js +1 -1
  77. package/src/comments/commentsediting.js +1 -1
  78. package/src/comments/commentsrepository.js +1 -1
  79. package/src/comments/commentsui.js +1 -1
  80. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  81. package/src/comments/integrations/importword.js +1 -1
  82. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  83. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  84. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  85. package/src/comments/ui/commentthreadcontroller.js +1 -1
  86. package/src/comments/ui/view/basecommentthreadview.d.ts +1 -1
  87. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  88. package/src/comments/ui/view/basecommentview.js +1 -1
  89. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  90. package/src/comments/ui/view/commentcontentview.js +1 -1
  91. package/src/comments/ui/view/commentinputview.js +1 -1
  92. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  93. package/src/comments/ui/view/commentslistview.js +1 -1
  94. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  95. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  96. package/src/comments/ui/view/commentthreadview.js +1 -1
  97. package/src/comments/ui/view/commentview.js +1 -1
  98. package/src/comments.js +1 -1
  99. package/src/commentsonly.js +1 -1
  100. package/src/utils/common-translations.js +1 -1
  101. package/src/utils/createmutationobserver.js +1 -1
  102. package/theme/annotation.css +0 -2
  103. package/theme/comment.css +37 -37
  104. package/theme/commentmarker.css +5 -5
  105. package/theme/commentthread.css +56 -56
  106. package/theme/sidebar-narrow.css +2 -2
  107. package/theme/sidebar.css +11 -11
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e4c=['config','forEach','editor','listenTo','_handleImportedData','importWord','map','plugins','addCommentThread','basic','define','commands','collaboration_features','importWord.commentsStyles','execute','high','get','dataInsert'];(function(_0x5061ae,_0x3e4cf9){const _0x4e8a18=function(_0x1089ea){while(--_0x1089ea){_0x5061ae['push'](_0x5061ae['shift']());}};_0x4e8a18(++_0x3e4cf9);}(_0x3e4c,0x1b5));const _0x4e8a=function(_0x5061ae,_0x3e4cf9){_0x5061ae=_0x5061ae-0x0;let _0x4e8a18=_0x3e4c[_0x5061ae];return _0x4e8a18;};import{Plugin as _0x29263c}from'ckeditor5/src/core';import{priorities as _0x5e765d}from'ckeditor5/src/utils';import{Users as _0x2be11b}from'ckeditor5-collaboration/src/collaboration-core';import _0x4873f4 from'../commentsrepository';export default class Y extends _0x29263c{constructor(_0x53f2cf){super(_0x53f2cf),this[_0x4e8a('0xf')]['config'][_0x4e8a('0x5')](_0x4e8a('0x8'),_0x4e8a('0x4'));}['afterInit'](){const _0x3cddc8=this[_0x4e8a('0xf')],_0x42b220=_0x3cddc8[_0x4e8a('0x6')][_0x4e8a('0xb')](_0x4e8a('0x0')),_0x243a07=_0x3cddc8[_0x4e8a('0x2')][_0x4e8a('0xb')](_0x2be11b);_0x42b220&&(_0x42b220['on'](_0x4e8a('0x9'),(_0x4578eb,[,_0xab45ef])=>{_0xab45ef[_0x4e8a('0x7')]={'comments':!0x0,'user_id':_0x243a07['me']['id'],'comments_styles':this[_0x4e8a('0xf')][_0x4e8a('0xd')][_0x4e8a('0xb')](_0x4e8a('0x8'))};},{'priority':_0x5e765d[_0x4e8a('0xa')]+0xa}),this[_0x4e8a('0x10')](_0x42b220,_0x4e8a('0xc'),this[_0x4e8a('0x11')]));}[_0x4e8a('0x11')](_0x525912,_0x537901){const {comment_threads:_0x49ba34}=_0x537901;_0x49ba34&&_0x49ba34[_0x4e8a('0xe')](({thread_id:_0x426748,comments:_0x55c912,is_resolved:_0x6de7d6})=>{const _0x1d00ae=new Date(),_0x385797=_0x55c912[_0x4e8a('0x1')](({author:_0x406eb6,content:_0x373a78,created_at:_0x1010a8})=>({'content':_0x373a78,'authorId':this['editor'][_0x4e8a('0x2')]['get'](_0x2be11b)['me']['id'],'createdAt':_0x1d00ae,'attributes':{'@external':{'authorName':_0x406eb6,'createdAt':_0x1010a8?new Date(_0x1010a8):new Date(),'source':'importWord'}}})),_0xadd4aa=this['editor'][_0x4e8a('0xd')][_0x4e8a('0xb')]('collaboration.channelId');this['editor'][_0x4e8a('0x2')][_0x4e8a('0xb')](_0x4873f4)[_0x4e8a('0x3')]({'channelId':_0xadd4aa,'threadId':_0x426748,'comments':_0x385797,'resolvedAt':_0x6de7d6?_0x1d00ae:null});});}}
23
+ const _0x2f3b=['high','config','get','map','editor','plugins','commands','collaboration.channelId','importWord.commentsStyles','_handleImportedData','importWord','forEach','dataInsert','addCommentThread','afterInit','execute','listenTo'];(function(_0x33f18e,_0x2f3bee){const _0x48ccf2=function(_0x11d623){while(--_0x11d623){_0x33f18e['push'](_0x33f18e['shift']());}};_0x48ccf2(++_0x2f3bee);}(_0x2f3b,0x13e));const _0x48cc=function(_0x33f18e,_0x2f3bee){_0x33f18e=_0x33f18e-0x0;let _0x48ccf2=_0x2f3b[_0x33f18e];return _0x48ccf2;};import{Plugin as _0x20e03f}from'ckeditor5/src/core';import{priorities as _0x530e55}from'ckeditor5/src/utils';import{Users as _0x22da6d}from'ckeditor5-collaboration/src/collaboration-core';import _0x553806 from'../commentsrepository';export default class Y extends _0x20e03f{constructor(_0x56b55e){super(_0x56b55e),this[_0x48cc('0x9')]['config']['define']('importWord.commentsStyles','basic');}[_0x48cc('0x2')](){const _0x53059b=this[_0x48cc('0x9')],_0x377794=_0x53059b[_0x48cc('0xb')][_0x48cc('0x7')](_0x48cc('0xf')),_0x20e0e9=_0x53059b[_0x48cc('0xa')][_0x48cc('0x7')](_0x22da6d);_0x377794&&(_0x377794['on'](_0x48cc('0x3'),(_0x18e00f,[,_0x25c4a9])=>{_0x25c4a9['collaboration_features']={'comments':!0x0,'user_id':_0x20e0e9['me']['id'],'comments_styles':this['editor'][_0x48cc('0x6')]['get'](_0x48cc('0xd'))};},{'priority':_0x530e55[_0x48cc('0x5')]+0xa}),this[_0x48cc('0x4')](_0x377794,_0x48cc('0x0'),this[_0x48cc('0xe')]));}[_0x48cc('0xe')](_0x34c5c0,_0xc50ea7){const {comment_threads:_0x47ba88}=_0xc50ea7;_0x47ba88&&_0x47ba88[_0x48cc('0x10')](({thread_id:_0x5836b7,comments:_0x28686a,is_resolved:_0x126c53})=>{const _0x3bbc88=new Date(),_0x34c0af=_0x28686a[_0x48cc('0x8')](({author:_0x305901,content:_0x4be779,created_at:_0x2f7782})=>({'content':_0x4be779,'authorId':this['editor'][_0x48cc('0xa')][_0x48cc('0x7')](_0x22da6d)['me']['id'],'createdAt':_0x3bbc88,'attributes':{'@external':{'authorName':_0x305901,'createdAt':_0x2f7782?new Date(_0x2f7782):new Date(),'source':'importWord'}}})),_0x4ed32c=this[_0x48cc('0x9')][_0x48cc('0x6')]['get'](_0x48cc('0xc'));this[_0x48cc('0x9')][_0x48cc('0xa')][_0x48cc('0x7')](_0x553806)[_0x48cc('0x1')]({'channelId':_0x4ed32c,'threadId':_0x5836b7,'comments':_0x34c0af,'resolvedAt':_0x126c53?_0x3bbc88:null});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x303f=['destroy','placeholderElement','createRoot','low','document','assign','initialData','create','focus','childCount','config','setSelection','name','getChild','change:placeholder','_updatePlaceholder','defaultPlugins','then','change','placeholder','view','init','data','editing','getRoot','fire','plugins','get','model','end'];(function(_0x37671b,_0x303f84){const _0x198cb9=function(_0x2cf0c2){while(--_0x2cf0c2){_0x37671b['push'](_0x37671b['shift']());}};_0x198cb9(++_0x303f84);}(_0x303f,0x14c));const _0x198c=function(_0x37671b,_0x303f84){_0x37671b=_0x37671b-0x0;let _0x198cb9=_0x303f[_0x37671b];return _0x198cb9;};import{Editor as _0x430052,DataApiMixin as _0x5de1b4}from'ckeditor5/src/core';import _0x3328bd from'./commenteditorui';import{ObservableMixin as _0x3743fa}from'ckeditor5/src/utils';import{enablePlaceholder as _0x3df6d7,disablePlaceholder as _0x5bacc5}from'ckeditor5/src/engine';import{Clipboard as _0x2b9d74}from'ckeditor5/src/clipboard';import{Enter as _0x569394,ShiftEnter as _0x5b3122}from'ckeditor5/src/enter';import{SelectAll as _0x2d5600}from'ckeditor5/src/select-all';import{Typing as _0x3b13db}from'ckeditor5/src/typing';import{Undo as _0x1b4797}from'ckeditor5/src/undo';import{Paragraph as _0x3ae6f7}from'ckeditor5/src/paragraph';const Kt=[_0x2b9d74,_0x569394,_0x5b3122,_0x2d5600,_0x3b13db,_0x1b4797,_0x3ae6f7];export default class Lt extends _0x3743fa(_0x5de1b4(_0x430052)){constructor(_0x1a3a70={}){(_0x1a3a70=Object[_0x198c('0x3')]({},_0x1a3a70))[_0x198c('0x18')]||(_0x1a3a70[_0x198c('0x18')]=Lt[_0x198c('0xe')]),super(_0x1a3a70),this['ui']=new _0x3328bd(this),this['set'](_0x198c('0x11'),''),this[_0x198c('0x1a')][_0x198c('0x2')]['on'](_0x198c('0x10'),()=>this[_0x198c('0xd')](),{'priority':_0x198c('0x1')}),this['on'](_0x198c('0xc'),()=>this[_0x198c('0xd')]()),this[_0x198c('0x1a')][_0x198c('0x2')][_0x198c('0x0')]();}[_0x198c('0x5')](){const _0x393c5a=this[_0x198c('0x8')][_0x198c('0x19')](_0x198c('0x4'))||'';return this['initPlugins']()['then'](()=>this['ui'][_0x198c('0x13')]())[_0x198c('0xf')](()=>this[_0x198c('0x14')][_0x198c('0x13')](_0x393c5a))[_0x198c('0xf')](()=>this[_0x198c('0x17')]('ready'));}[_0x198c('0x1c')](){return super['destroy']()[_0x198c('0xf')](()=>this['ui'][_0x198c('0x1c')]());}[_0x198c('0x6')](){this[_0x198c('0x1a')][_0x198c('0x10')](_0x37c70a=>{const _0x3c9190=this[_0x198c('0x1a')][_0x198c('0x2')][_0x198c('0x16')](),_0x3dd2cb=_0x3c9190&&_0x3c9190['getChild'](_0x3c9190[_0x198c('0x7')]-0x1);_0x37c70a[_0x198c('0x9')](_0x3dd2cb,_0x198c('0x1b')),this[_0x198c('0x15')][_0x198c('0x12')][_0x198c('0x6')]();});}[_0x198c('0xd')](){const _0x455b2e=this[_0x198c('0x15')][_0x198c('0x12')],_0x11ccb7=_0x455b2e[_0x198c('0x2')]['getRoot'](),_0x2e2d16=_0x11ccb7[_0x198c('0xb')](0x0);_0x11ccb7[_0x198c('0x7')]>0x1||!_0x2e2d16||'p'!=_0x2e2d16[_0x198c('0xa')]?this['placeholderElement']&&this[_0x198c('0x1d')][_0x198c('0x11')]&&(_0x5bacc5(_0x455b2e,this[_0x198c('0x1d')]),this[_0x198c('0x1d')]=void 0x0):(this[_0x198c('0x11')]&&(_0x2e2d16['placeholder']=this[_0x198c('0x11')]),_0x3df6d7({'view':_0x455b2e,'element':_0x2e2d16,'keepOnFocus':!0x0}),this[_0x198c('0x1d')]=_0x2e2d16);}}Lt['defaultPlugins']=Kt;
23
+ const _0x1d48=['change','name','document','view','model','change:placeholder','assign','fire','destroy','setSelection','defaultPlugins','data','config','low','set','plugins','childCount','getRoot','_updatePlaceholder','focus','placeholderElement','getChild','end','editing','then','placeholder'];(function(_0x43ccaa,_0x1d4835){const _0xa4bea6=function(_0x4dd60d){while(--_0x4dd60d){_0x43ccaa['push'](_0x43ccaa['shift']());}};_0xa4bea6(++_0x1d4835);}(_0x1d48,0x181));const _0xa4be=function(_0x43ccaa,_0x1d4835){_0x43ccaa=_0x43ccaa-0x0;let _0xa4bea6=_0x1d48[_0x43ccaa];return _0xa4bea6;};import{Editor as _0x36903e,DataApiMixin as _0x5cb3be}from'ckeditor5/src/core';import _0x3934a5 from'./commenteditorui';import{ObservableMixin as _0x130836}from'ckeditor5/src/utils';import{enablePlaceholder as _0x4e5217,disablePlaceholder as _0x40df4a}from'ckeditor5/src/engine';import{Clipboard as _0x2a1355}from'ckeditor5/src/clipboard';import{Enter as _0x51e31f,ShiftEnter as _0x614c01}from'ckeditor5/src/enter';import{SelectAll as _0x5e9e8}from'ckeditor5/src/select-all';import{Typing as _0x3bfe1d}from'ckeditor5/src/typing';import{Undo as _0x3fe9e1}from'ckeditor5/src/undo';import{Paragraph as _0x3dd01c}from'ckeditor5/src/paragraph';const Kt=[_0x2a1355,_0x51e31f,_0x614c01,_0x5e9e8,_0x3bfe1d,_0x3fe9e1,_0x3dd01c];export default class Lt extends _0x130836(_0x5cb3be(_0x36903e)){constructor(_0x2cae6a={}){(_0x2cae6a=Object[_0xa4be('0xb')]({},_0x2cae6a))[_0xa4be('0x14')]||(_0x2cae6a[_0xa4be('0x14')]=Lt[_0xa4be('0xf')]),super(_0x2cae6a),this['ui']=new _0x3934a5(this),this[_0xa4be('0x13')](_0xa4be('0x4'),''),this[_0xa4be('0x9')][_0xa4be('0x7')]['on'](_0xa4be('0x5'),()=>this[_0xa4be('0x17')](),{'priority':_0xa4be('0x12')}),this['on'](_0xa4be('0xa'),()=>this[_0xa4be('0x17')]()),this[_0xa4be('0x9')][_0xa4be('0x7')]['createRoot']();}['create'](){const _0x3fc765=this[_0xa4be('0x11')]['get']('initialData')||'';return this['initPlugins']()[_0xa4be('0x3')](()=>this['ui']['init']())[_0xa4be('0x3')](()=>this[_0xa4be('0x10')]['init'](_0x3fc765))[_0xa4be('0x3')](()=>this[_0xa4be('0xc')]('ready'));}[_0xa4be('0xd')](){return super['destroy']()[_0xa4be('0x3')](()=>this['ui']['destroy']());}[_0xa4be('0x18')](){this[_0xa4be('0x9')]['change'](_0x5ce421=>{const _0x415367=this[_0xa4be('0x9')]['document']['getRoot'](),_0x1a5c63=_0x415367&&_0x415367[_0xa4be('0x0')](_0x415367[_0xa4be('0x15')]-0x1);_0x5ce421[_0xa4be('0xe')](_0x1a5c63,_0xa4be('0x1')),this[_0xa4be('0x2')][_0xa4be('0x8')][_0xa4be('0x18')]();});}[_0xa4be('0x17')](){const _0x279c99=this[_0xa4be('0x2')][_0xa4be('0x8')],_0x59e662=_0x279c99['document'][_0xa4be('0x16')](),_0x58f93c=_0x59e662[_0xa4be('0x0')](0x0);_0x59e662[_0xa4be('0x15')]>0x1||!_0x58f93c||'p'!=_0x58f93c[_0xa4be('0x6')]?this['placeholderElement']&&this[_0xa4be('0x19')][_0xa4be('0x4')]&&(_0x40df4a(_0x279c99,this[_0xa4be('0x19')]),this[_0xa4be('0x19')]=void 0x0):(this[_0xa4be('0x4')]&&(_0x58f93c[_0xa4be('0x4')]=this['placeholder']),_0x4e5217({'view':_0x279c99,'element':_0x58f93c,'keepOnFocus':!0x0}),this[_0xa4be('0x19')]=_0x58f93c);}}Lt[_0xa4be('0xf')]=Kt;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24eb=['init','element','locale','view','document','rootName','focusTracker','editor','getRoot','attachDomRoot','name','editing','bind','destroy','editable','fire','ready'];(function(_0x2c2052,_0x24eb83){const _0x56d875=function(_0x5154e8){while(--_0x5154e8){_0x2c2052['push'](_0x2c2052['shift']());}};_0x56d875(++_0x24eb83);}(_0x24eb,0x11d));const _0x56d8=function(_0x2c2052,_0x24eb83){_0x2c2052=_0x2c2052-0x0;let _0x56d875=_0x24eb[_0x2c2052];return _0x56d875;};import{EditorUI as _0x1947b1}from'ckeditor5/src/ui';import _0x5bdf1e from'./commenteditoruiview';export default class jt extends _0x1947b1{constructor(_0x237efb){super(_0x237efb),this[_0x56d8('0x7')]=new _0x5bdf1e(_0x237efb[_0x56d8('0x6')],_0x237efb['editing'][_0x56d8('0x7')]);}get['element'](){return this[_0x56d8('0x7')][_0x56d8('0x5')];}[_0x56d8('0x4')](){const _0x49f8aa=this[_0x56d8('0xb')][_0x56d8('0xf')][_0x56d8('0x7')],_0x4749ba=this[_0x56d8('0x7')][_0x56d8('0x1')],_0x438828=_0x49f8aa[_0x56d8('0x8')][_0x56d8('0xc')]();_0x4749ba[_0x56d8('0xe')]=_0x438828[_0x56d8('0x9')],this['view']['render']();const _0x2dccb4=_0x4749ba[_0x56d8('0x5')];this['setEditableElement'](_0x4749ba[_0x56d8('0xe')],_0x2dccb4),this['view'][_0x56d8('0x1')][_0x56d8('0x10')]('isFocused')['to'](this[_0x56d8('0xa')]),_0x49f8aa[_0x56d8('0xd')](_0x2dccb4),this[_0x56d8('0x2')](_0x56d8('0x3'));}['destroy'](){super['destroy'](),this[_0x56d8('0x7')][_0x56d8('0x0')]();}}
23
+ const _0x2630=['init','render','document','editable','editing','element','view','name','focusTracker','fire','bind','destroy','getRoot','attachDomRoot','rootName','setEditableElement','isFocused','editor','ready','locale'];(function(_0x4084cc,_0x26302a){const _0x24647a=function(_0x4c180b){while(--_0x4c180b){_0x4084cc['push'](_0x4084cc['shift']());}};_0x24647a(++_0x26302a);}(_0x2630,0x173));const _0x2464=function(_0x4084cc,_0x26302a){_0x4084cc=_0x4084cc-0x0;let _0x24647a=_0x2630[_0x4084cc];return _0x24647a;};import{EditorUI as _0x488616}from'ckeditor5/src/ui';import _0x1f642a from'./commenteditoruiview';export default class jt extends _0x488616{constructor(_0x4583ae){super(_0x4583ae),this[_0x2464('0xf')]=new _0x1f642a(_0x4583ae[_0x2464('0x8')],_0x4583ae['editing']['view']);}get[_0x2464('0xe')](){return this[_0x2464('0xf')][_0x2464('0xe')];}[_0x2464('0x9')](){const _0x3bd2b8=this[_0x2464('0x6')][_0x2464('0xd')][_0x2464('0xf')],_0x5d400f=this[_0x2464('0xf')][_0x2464('0xc')],_0x33b3a5=_0x3bd2b8[_0x2464('0xb')][_0x2464('0x1')]();_0x5d400f[_0x2464('0x10')]=_0x33b3a5[_0x2464('0x3')],this[_0x2464('0xf')][_0x2464('0xa')]();const _0x389771=_0x5d400f[_0x2464('0xe')];this[_0x2464('0x4')](_0x5d400f['name'],_0x389771),this[_0x2464('0xf')]['editable'][_0x2464('0x13')](_0x2464('0x5'))['to'](this[_0x2464('0x11')]),_0x3bd2b8[_0x2464('0x2')](_0x389771),this[_0x2464('0x12')](_0x2464('0x7'));}['destroy'](){super[_0x2464('0x0')](),this[_0x2464('0xf')]['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xaf22=['main','uiLanguageDirection','ck-editor__aria-label_','ck-editor__main','render','editable','uiLanguage','ck-rounded-corners','focus','add','_voiceLabelView','_createVoiceLabel','ck-editor','element','cke-editor__aria-label_','ck-comment__input','div','ck-voice-label','extendTemplate'];(function(_0x152655,_0xaf2265){const _0x153d7b=function(_0x4afd67){while(--_0x4afd67){_0x152655['push'](_0x152655['shift']());}};_0x153d7b(++_0xaf2265);}(_0xaf22,0xbc));const _0x153d=function(_0x152655,_0xaf2265){_0x152655=_0x152655-0x0;let _0x153d7b=_0xaf22[_0x152655];return _0x153d7b;};import{InlineEditableUIView as _0x4102cc,EditorUIView as _0x439290,LabelView as _0x214a65}from'ckeditor5/src/ui';import{uid as _0x5b6784}from'ckeditor5/src/utils';import{getTranslation as _0x5cd5f0}from'../../../utils/common-translations';export default class Nt extends _0x439290{constructor(_0x43828c,_0x51ecec){super(_0x43828c);const _0x1a0b17=_0x5b6784();this[_0x153d('0x2')]=this['createCollection'](),this[_0x153d('0x7')]=new _0x4102cc(_0x43828c,_0x51ecec),this[_0x153d('0xc')]=this[_0x153d('0xd')](_0x1a0b17,_0x43828c),this['setTemplate']({'tag':_0x153d('0x12'),'attributes':{'class':['ck-reset',_0x153d('0xe'),_0x153d('0x9'),_0x153d('0x11')],'role':'comment','dir':_0x43828c[_0x153d('0x3')],'lang':_0x43828c[_0x153d('0x8')],'aria-labelledby':_0x153d('0x10')+_0x1a0b17},'children':[this[_0x153d('0xc')],{'tag':_0x153d('0x12'),'attributes':{'class':_0x153d('0x5'),'role':'presentation'},'children':this['main']}]});}[_0x153d('0x6')](){super['render'](),this['main'][_0x153d('0xb')](this['editable']);}['focus'](){this[_0x153d('0x7')][_0x153d('0xf')][_0x153d('0xa')]();}[_0x153d('0xd')](_0x5789b8,_0x2767fe){const _0x4aa03a=new _0x214a65();return _0x4aa03a['text']=_0x5cd5f0(_0x2767fe,'Comment\x20editor'),_0x4aa03a[_0x153d('0x1')]({'attributes':{'id':_0x153d('0x4')+_0x5789b8,'class':_0x153d('0x0')}}),_0x4aa03a;}}
23
+ const _0x8ae6=['presentation','ck-rounded-corners','setTemplate','_createVoiceLabel','ck-reset','editable','_voiceLabelView','createCollection','ck-editor__aria-label_','extendTemplate','text','ck-editor__main','ck-editor','focus','comment','render','Comment\x20editor','div','ck-comment__input','element','ck-voice-label'];(function(_0x5153bc,_0x8ae62e){const _0x5730f1=function(_0x1efc98){while(--_0x1efc98){_0x5153bc['push'](_0x5153bc['shift']());}};_0x5730f1(++_0x8ae62e);}(_0x8ae6,0x1b9));const _0x5730=function(_0x5153bc,_0x8ae62e){_0x5153bc=_0x5153bc-0x0;let _0x5730f1=_0x8ae6[_0x5153bc];return _0x5730f1;};import{InlineEditableUIView as _0x3b073f,EditorUIView as _0x2697a2,LabelView as _0x312418}from'ckeditor5/src/ui';import{uid as _0x5745a5}from'ckeditor5/src/utils';import{getTranslation as _0x1952ea}from'../../../utils/common-translations';export default class Nt extends _0x2697a2{constructor(_0x291549,_0x5d320c){super(_0x291549);const _0x5dc896=_0x5745a5();this['main']=this[_0x5730('0x7')](),this[_0x5730('0x5')]=new _0x3b073f(_0x291549,_0x5d320c),this[_0x5730('0x6')]=this[_0x5730('0x3')](_0x5dc896,_0x291549),this[_0x5730('0x2')]({'tag':_0x5730('0x11'),'attributes':{'class':[_0x5730('0x4'),_0x5730('0xc'),_0x5730('0x1'),_0x5730('0x12')],'role':_0x5730('0xe'),'dir':_0x291549['uiLanguageDirection'],'lang':_0x291549['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x5dc896},'children':[this[_0x5730('0x6')],{'tag':_0x5730('0x11'),'attributes':{'class':_0x5730('0xb'),'role':_0x5730('0x0')},'children':this['main']}]});}[_0x5730('0xf')](){super[_0x5730('0xf')](),this['main']['add'](this[_0x5730('0x5')]);}[_0x5730('0xd')](){this['editable'][_0x5730('0x13')][_0x5730('0xd')]();}[_0x5730('0x3')](_0x4efd31,_0x51af10){const _0x59542f=new _0x312418();return _0x59542f[_0x5730('0xa')]=_0x1952ea(_0x51af10,_0x5730('0x10')),_0x59542f[_0x5730('0x9')]({'attributes':{'id':_0x5730('0x8')+_0x4efd31,'class':_0x5730('0x14')}}),_0x59542f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x355e=['_localUser','removeCommentThread','update','model','resolve','view','remove','reopen','listenTo','isResolved','getComment','submitCommentThread','removeComment','destroy','addComment','_isAttached','submit'];(function(_0x11b8e7,_0x355e24){var _0x25f05a=function(_0x1a544d){while(--_0x1a544d){_0x11b8e7['push'](_0x11b8e7['shift']());}};_0x25f05a(++_0x355e24);}(_0x355e,0xae));var _0x25f0=function(_0x11b8e7,_0x355e24){_0x11b8e7=_0x11b8e7-0x0;var _0x25f05a=_0x355e[_0x11b8e7];return _0x25f05a;};import{ObservableMixin as _0x309e45}from'ckeditor5/src/utils';export default class ct extends _0x309e45(){constructor(_0x4364bd,_0x30e816){super(),this[_0x25f0('0x10')]=_0x4364bd,this[_0x25f0('0x10')][_0x25f0('0xb')]=!0x0,this[_0x25f0('0x1')]=_0x30e816,this[_0x25f0('0x4')](_0x30e816,_0x25f0('0x7'),()=>this['submit']()),this['listenTo'](_0x30e816,_0x25f0('0xe'),()=>this[_0x25f0('0x2')]()),this[_0x25f0('0x4')](_0x30e816,'resolveCommentThread',()=>this[_0x25f0('0x0')]()),this[_0x25f0('0x4')](_0x30e816,'reopenCommentThread',()=>this[_0x25f0('0x3')]()),this[_0x25f0('0x4')](_0x30e816,_0x25f0('0xa'),(_0x14fc97,_0x815a6e)=>this['addComment'](_0x815a6e)),this[_0x25f0('0x4')](_0x30e816,'updateComment',(_0x30d6fe,_0x1d8584,_0x3978bb)=>this['updateComment'](_0x1d8584,_0x3978bb)),this[_0x25f0('0x4')](_0x30e816,'removeComment',(_0x562cde,_0x465c60)=>this[_0x25f0('0x8')](_0x465c60));}[_0x25f0('0xc')](){this[_0x25f0('0x10')]['submit']();}['remove'](){this[_0x25f0('0x10')][_0x25f0('0x2')]();}[_0x25f0('0x0')](){this[_0x25f0('0x10')][_0x25f0('0x5')]||this[_0x25f0('0x10')][_0x25f0('0x0')]();}[_0x25f0('0x3')](){this[_0x25f0('0x10')][_0x25f0('0x5')]&&this['model'][_0x25f0('0x3')]();}['addComment'](_0x57e1cc){this[_0x25f0('0x10')][_0x25f0('0xa')]({'content':_0x57e1cc,'authorId':this[_0x25f0('0x1')][_0x25f0('0xd')]['id']});}['updateComment'](_0x4c0df6,_0x2baca8){this['model'][_0x25f0('0x6')](_0x4c0df6)[_0x25f0('0xf')]({'content':_0x2baca8});}[_0x25f0('0x8')](_0xdd44e6){this['model'][_0x25f0('0x6')](_0xdd44e6)[_0x25f0('0x2')]();}[_0x25f0('0x9')](){this['stopListening'](),this[_0x25f0('0x10')]['_isAttached']=!0x1;}}
23
+ var _0x224c=['submit','addComment','removeComment','_localUser','view','getComment','stopListening','resolve','listenTo','model','updateComment','resolveCommentThread','submitCommentThread','remove','_isAttached','reopen','isResolved'];(function(_0x324f84,_0x224c9a){var _0x1f6630=function(_0x48af8b){while(--_0x48af8b){_0x324f84['push'](_0x324f84['shift']());}};_0x1f6630(++_0x224c9a);}(_0x224c,0x137));var _0x1f66=function(_0x324f84,_0x224c9a){_0x324f84=_0x324f84-0x0;var _0x1f6630=_0x224c[_0x324f84];return _0x1f6630;};import{ObservableMixin as _0x16572a}from'ckeditor5/src/utils';export default class ct extends _0x16572a(){constructor(_0x29b443,_0x2e02fd){super(),this['model']=_0x29b443,this[_0x1f66('0x4')][_0x1f66('0x9')]=!0x0,this[_0x1f66('0x10')]=_0x2e02fd,this[_0x1f66('0x3')](_0x2e02fd,_0x1f66('0x7'),()=>this['submit']()),this[_0x1f66('0x3')](_0x2e02fd,'removeCommentThread',()=>this[_0x1f66('0x8')]()),this['listenTo'](_0x2e02fd,_0x1f66('0x6'),()=>this[_0x1f66('0x2')]()),this[_0x1f66('0x3')](_0x2e02fd,'reopenCommentThread',()=>this[_0x1f66('0xa')]()),this[_0x1f66('0x3')](_0x2e02fd,_0x1f66('0xd'),(_0xbeeab5,_0x4843db)=>this['addComment'](_0x4843db)),this['listenTo'](_0x2e02fd,_0x1f66('0x5'),(_0x34df47,_0x2af737,_0xce90e9)=>this[_0x1f66('0x5')](_0x2af737,_0xce90e9)),this[_0x1f66('0x3')](_0x2e02fd,_0x1f66('0xe'),(_0x392df1,_0x2934f5)=>this[_0x1f66('0xe')](_0x2934f5));}[_0x1f66('0xc')](){this['model'][_0x1f66('0xc')]();}[_0x1f66('0x8')](){this[_0x1f66('0x4')][_0x1f66('0x8')]();}[_0x1f66('0x2')](){this[_0x1f66('0x4')]['isResolved']||this[_0x1f66('0x4')][_0x1f66('0x2')]();}['reopen'](){this['model'][_0x1f66('0xb')]&&this[_0x1f66('0x4')][_0x1f66('0xa')]();}[_0x1f66('0xd')](_0x18134c){this[_0x1f66('0x4')][_0x1f66('0xd')]({'content':_0x18134c,'authorId':this[_0x1f66('0x10')][_0x1f66('0xf')]['id']});}[_0x1f66('0x5')](_0x420885,_0x626383){this[_0x1f66('0x4')][_0x1f66('0x0')](_0x420885)['update']({'content':_0x626383});}[_0x1f66('0xe')](_0x1507c6){this[_0x1f66('0x4')][_0x1f66('0x0')](_0x1507c6)['remove']();}['destroy'](){this[_0x1f66('0x1')](),this['model']['_isAttached']=!0x1;}}
@@ -74,7 +74,7 @@ export default class BaseCommentThreadView extends View {
74
74
  /**
75
75
  * @inheritDoc
76
76
  */
77
- destroy(): void;
77
+ destroy(): Promise<void>;
78
78
  }
79
79
  /**
80
80
  * Fired when a user created a first comment in the comment thread. Then the comment thread is submitted and saved.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1342=['length','Reply','removeCommentThread','isActive','fire','hasDirtyComment','isReadOnly','addComment','Write\x20a\x20comment...','Reply\x20to\x20reopen\x20discussion...','locale','Comment','_config','isDirty','reopenCommentThread','editorDestroyed','placeholder','submit','canComment','destroy','commentInputView','focus','showInput','commentThreadHeaderView','editorReady','submitLabel','isSubmitted','submitCommentThread','delegate','isResolved','commentsListView','CommentView','_model','cancel','commentThreadInputView','isResolvable','bind','value'];(function(_0x593225,_0x1342b5){const _0x167ebd=function(_0x5c0779){while(--_0x5c0779){_0x593225['push'](_0x593225['shift']());}};_0x167ebd(++_0x1342b5);}(_0x1342,0x1db));const _0x167e=function(_0x593225,_0x1342b5){_0x593225=_0x593225-0x0;let _0x167ebd=_0x1342[_0x593225];return _0x167ebd;};import{View as _0x58be41}from'ckeditor5/src/ui';import _0x410582 from'./commentthreadinputview';import _0x142b8f from'./commentslistview';import _0x6ea6cf from'./commentthreadheaderview';import{getTranslation as _0x1a0146}from'../../../utils/common-translations';export default class Tt extends _0x58be41{constructor(_0x5c4bca,_0x5da229,_0x311280,_0xae52bb){super(_0x5c4bca),this['set']('isActive',!0x1),this['set'](_0x167e('0x20'),!0x1),this['_model']=_0x5da229,this['_localUser']=_0x311280,this['_config']=_0xae52bb,this['commentThreadHeaderView']=new _0x6ea6cf(_0x5c4bca,_0x5da229),this[_0x167e('0x4')][_0x167e('0x9')](_0x167e('0x21'))['to'](this),this[_0x167e('0xb')]=new _0x142b8f(_0x5c4bca,_0x5da229,Object['assign']({'CommentView':this[_0x167e('0x1f')][_0x167e('0xc')]},_0xae52bb)),this[_0x167e('0xb')][_0x167e('0x9')]('removeComment')['to'](this),this[_0x167e('0xb')]['delegate']('updateComment')['to'](this),this[_0x167e('0xb')][_0x167e('0x9')]('resolveCommentThread')['to'](this),this[_0x167e('0xb')][_0x167e('0x9')]('editorReady')['to'](this),this[_0x167e('0xb')]['delegate'](_0x167e('0x22'))['to'](this),this[_0x167e('0xb')][_0x167e('0x11')](_0x167e('0x16'))['to'](this),this['set'](_0x167e('0x13'),this[_0x167e('0xb')][_0x167e('0x13')]),this[_0x167e('0x11')](_0x167e('0x13'))['to'](this['commentsListView'],_0x167e('0x13')),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this[_0x167e('0xf')][_0x167e('0x9')](_0x167e('0x5'))['to'](this),this[_0x167e('0xf')][_0x167e('0x9')](_0x167e('0x22'))['to'](this),this['on']('removeComment',()=>this[_0x167e('0x2')]()),this[_0x167e('0x11')](_0x167e('0x20'))['to'](this[_0x167e('0xb')],_0x167e('0x18'),this[_0x167e('0xf')][_0x167e('0x1')],_0x167e('0x12'),(_0x300cc4,_0x269dae)=>_0x300cc4||!!_0x269dae);}[_0x167e('0x2')](){this['element'][_0x167e('0x2')]();}[_0x167e('0x0')](){this['isDirty']=!0x1,this[_0x167e('0xb')][_0x167e('0x0')](),this[_0x167e('0xf')][_0x167e('0x0')](),super[_0x167e('0x0')]();}['_createCommentThreadInputView'](){const _0x453104=new _0x410582(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x497d8e=_0x453104[_0x167e('0x1')];return _0x453104[_0x167e('0x11')](_0x167e('0x3'))['to'](this,_0x167e('0x16'),this[_0x167e('0xd')],_0x167e('0x19'),this[_0x167e('0xd')],_0x167e('0x25'),this[_0x167e('0xd')],_0x167e('0xa'),_0x497d8e,_0x167e('0x12'),(_0x23a6bd,_0x525d17,_0x3a2f97,_0x1e46a4,_0x1106c3)=>!!_0x1106c3||_0x1e46a4&&_0x3a2f97&&!_0x525d17||_0x23a6bd&&_0x3a2f97&&!_0x525d17),_0x497d8e[_0x167e('0x11')](_0x167e('0x23'))['to'](this,_0x167e('0x13'),this[_0x167e('0xd')],_0x167e('0x10'),this[_0x167e('0xd')],_0x167e('0xa'),(_0x59538f,_0x18b7aa,_0x75f2ba)=>{let _0x2a2296;return _0x2a2296=_0x75f2ba&&_0x18b7aa?_0x167e('0x1c'):_0x59538f?'Reply...':_0x167e('0x1b'),_0x1a0146(this[_0x167e('0x1d')],_0x2a2296);}),_0x497d8e[_0x167e('0x11')](_0x167e('0x6'))['to'](this,_0x167e('0x13'),_0x430b9a=>_0x1a0146(this[_0x167e('0x1d')],_0x430b9a?_0x167e('0x14'):_0x167e('0x1e'))),_0x497d8e['on'](_0x167e('0x24'),(_0x50613e,_0x7ccf12)=>{this[_0x167e('0x17')](_0x167e('0x1a'),_0x7ccf12),this['_model'][_0x167e('0xa')]&&this[_0x167e('0xd')][_0x167e('0x10')]&&this[_0x167e('0x17')](_0x167e('0x21'),this[_0x167e('0xd')]['id']),this[_0x167e('0xd')][_0x167e('0x7')]||this[_0x167e('0x17')](_0x167e('0x8'));}),_0x497d8e['on'](_0x167e('0xe'),()=>{this[_0x167e('0x2')]();}),_0x497d8e[_0x167e('0x11')]('disabledSubmit')['to'](this[_0x167e('0xd')],'isReadOnly'),_0x497d8e['on'](_0x167e('0xe'),_0xfc2afe=>{0x0==this[_0x167e('0x13')]&&(this[_0x167e('0x17')](_0x167e('0x15')),_0xfc2afe['stop']());}),this['on']('change:isActive',(_0x576289,_0x44ae9e,_0x95ca4f)=>{_0x95ca4f||this[_0x167e('0x13')]||_0x497d8e[_0x167e('0x12')]||this[_0x167e('0x17')]('removeCommentThread');}),_0x453104;}}
23
+ const _0x24f2=['removeCommentThread','isResolved','locale','placeholder','assign','Reply...','_localUser','editorDestroyed','canComment','_config','resolveCommentThread','reopenCommentThread','delegate','stop','isSubmitted','bind','element','submitCommentThread','Reply\x20to\x20reopen\x20discussion...','editorReady','commentThreadHeaderView','value','_createCommentThreadInputView','length','addComment','isResolvable','commentThreadInputView','isActive','isDirty','editorConfig','commentsListView','commentInputView','_model','set','submitLabel','hasDirtyComment','destroy','removeComment','fire','focus','cancel','submit','Write\x20a\x20comment...'];(function(_0x5387d3,_0x24f257){const _0x4dc062=function(_0x335a25){while(--_0x335a25){_0x5387d3['push'](_0x5387d3['shift']());}};_0x4dc062(++_0x24f257);}(_0x24f2,0x79));const _0x4dc0=function(_0x5387d3,_0x24f257){_0x5387d3=_0x5387d3-0x0;let _0x4dc062=_0x24f2[_0x5387d3];return _0x4dc062;};import{View as _0x55e1be}from'ckeditor5/src/ui';import _0x3c0ec1 from'./commentthreadinputview';import _0xfd4ce7 from'./commentslistview';import _0x1f85ef from'./commentthreadheaderview';import{getTranslation as _0xf6d09c}from'../../../utils/common-translations';export default class Tt extends _0x55e1be{constructor(_0x3e4431,_0x5bec76,_0x3fe6c2,_0x2c43bc){super(_0x3e4431),this[_0x4dc0('0x29')](_0x4dc0('0x23'),!0x1),this[_0x4dc0('0x29')]('isDirty',!0x1),this[_0x4dc0('0x28')]=_0x5bec76,this[_0x4dc0('0xe')]=_0x3fe6c2,this['_config']=_0x2c43bc,this[_0x4dc0('0x1c')]=new _0x1f85ef(_0x3e4431,_0x5bec76),this['commentThreadHeaderView'][_0x4dc0('0x14')](_0x4dc0('0x13'))['to'](this),this[_0x4dc0('0x26')]=new _0xfd4ce7(_0x3e4431,_0x5bec76,Object[_0x4dc0('0xc')]({'CommentView':this[_0x4dc0('0x11')]['CommentView']},_0x2c43bc)),this[_0x4dc0('0x26')][_0x4dc0('0x14')]('removeComment')['to'](this),this[_0x4dc0('0x26')][_0x4dc0('0x14')]('updateComment')['to'](this),this[_0x4dc0('0x26')][_0x4dc0('0x14')](_0x4dc0('0x12'))['to'](this),this[_0x4dc0('0x26')][_0x4dc0('0x14')](_0x4dc0('0x1b'))['to'](this),this[_0x4dc0('0x26')][_0x4dc0('0x14')](_0x4dc0('0xf'))['to'](this),this[_0x4dc0('0x26')][_0x4dc0('0x17')](_0x4dc0('0x23'))['to'](this),this[_0x4dc0('0x29')](_0x4dc0('0x1f'),this[_0x4dc0('0x26')][_0x4dc0('0x1f')]),this[_0x4dc0('0x17')]('length')['to'](this[_0x4dc0('0x26')],_0x4dc0('0x1f')),this[_0x4dc0('0x22')]=this['_createCommentThreadInputView'](),this['commentThreadInputView'][_0x4dc0('0x14')](_0x4dc0('0x1b'))['to'](this),this['commentThreadInputView'][_0x4dc0('0x14')](_0x4dc0('0xf'))['to'](this),this['on'](_0x4dc0('0x2'),()=>this['focus']()),this[_0x4dc0('0x17')](_0x4dc0('0x24'))['to'](this[_0x4dc0('0x26')],_0x4dc0('0x0'),this[_0x4dc0('0x22')][_0x4dc0('0x27')],'value',(_0x3aa562,_0x4a16b8)=>_0x3aa562||!!_0x4a16b8);}[_0x4dc0('0x4')](){this[_0x4dc0('0x18')][_0x4dc0('0x4')]();}async[_0x4dc0('0x1')](){this[_0x4dc0('0x24')]=!0x1,this[_0x4dc0('0x26')]['destroy'](),await this[_0x4dc0('0x22')][_0x4dc0('0x1')](),super[_0x4dc0('0x1')]();}[_0x4dc0('0x1e')](){const _0x88874e=new _0x3c0ec1(this[_0x4dc0('0xa')],this[_0x4dc0('0xe')],this[_0x4dc0('0x11')][_0x4dc0('0x25')]),_0x4ffd63=_0x88874e[_0x4dc0('0x27')];return _0x88874e[_0x4dc0('0x17')]('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this[_0x4dc0('0x28')],_0x4dc0('0x10'),this['_model'],_0x4dc0('0x9'),_0x4ffd63,_0x4dc0('0x1d'),(_0x3e2d09,_0x2f51b0,_0xf49815,_0x24238f,_0x2504e7)=>!!_0x2504e7||_0x24238f&&_0xf49815&&!_0x2f51b0||_0x3e2d09&&_0xf49815&&!_0x2f51b0),_0x4ffd63[_0x4dc0('0x17')](_0x4dc0('0xb'))['to'](this,'length',this[_0x4dc0('0x28')],_0x4dc0('0x21'),this[_0x4dc0('0x28')],_0x4dc0('0x9'),(_0x433b60,_0x254297,_0x30ddf2)=>{let _0x3ff351;return _0x3ff351=_0x30ddf2&&_0x254297?_0x4dc0('0x1a'):_0x433b60?_0x4dc0('0xd'):_0x4dc0('0x7'),_0xf6d09c(this[_0x4dc0('0xa')],_0x3ff351);}),_0x4ffd63[_0x4dc0('0x17')](_0x4dc0('0x2a'))['to'](this,_0x4dc0('0x1f'),_0xa7bd99=>_0xf6d09c(this[_0x4dc0('0xa')],_0xa7bd99?'Reply':'Comment')),_0x4ffd63['on'](_0x4dc0('0x6'),(_0x2b3ce7,_0x433dea)=>{this[_0x4dc0('0x3')](_0x4dc0('0x20'),_0x433dea),this['_model'][_0x4dc0('0x9')]&&this[_0x4dc0('0x28')][_0x4dc0('0x21')]&&this[_0x4dc0('0x3')](_0x4dc0('0x13'),this[_0x4dc0('0x28')]['id']),this[_0x4dc0('0x28')][_0x4dc0('0x16')]||this['fire'](_0x4dc0('0x19'));}),_0x4ffd63['on']('cancel',()=>{this[_0x4dc0('0x4')]();}),_0x4ffd63[_0x4dc0('0x17')]('disabledSubmit')['to'](this[_0x4dc0('0x28')],'isReadOnly'),_0x4ffd63['on'](_0x4dc0('0x5'),_0x3986fa=>{0x0==this['length']&&(this[_0x4dc0('0x3')](_0x4dc0('0x8')),_0x3986fa[_0x4dc0('0x15')]());}),this['on']('change:isActive',(_0x3020bf,_0x5a37ec,_0x4c697b)=>{_0x4c697b||this[_0x4dc0('0x1f')]||_0x4ffd63[_0x4dc0('0x1d')]||this[_0x4dc0('0x3')]('removeCommentThread');}),_0x88874e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4395=['switchToEditMode','_model','bind','isEditMode','switchToDisplayMode','remove','locale','_createCommentInputView','content','set','createCollection','editorReady','updateComment','_createCommentContentView','delegate','expand','isSystemComment','Save','get','destroy','element','visibleView','add','editorDestroyed','isCollapsed','value','createEditor','_config','editorConfig','focus','maxCommentCharsWhenCollapsed'];(function(_0x2c6d5,_0x43957e){const _0x5f126e=function(_0x32b1ef){while(--_0x32b1ef){_0x2c6d5['push'](_0x2c6d5['shift']());}};_0x5f126e(++_0x43957e);}(_0x4395,0x64));const _0x5f12=function(_0x2c6d5,_0x43957e){_0x2c6d5=_0x2c6d5-0x0;let _0x5f126e=_0x4395[_0x2c6d5];return _0x5f126e;};import{View as _0x4d15e2}from'ckeditor5/src/ui';import{trimHtml as _0x10872b}from'ckeditor5-collaboration/src/collaboration-core';import _0x4f733e from'./commentcontentview';import _0x299d7b from'./commentinputview';import{getTranslation as _0x5249d7}from'../../../utils/common-translations';export default class Yt extends _0x4d15e2{constructor(_0x1974a4,_0x5a13a,_0x51650d){super(_0x1974a4),this[_0x5f12('0x19')]=_0x5a13a,this[_0x5f12('0x14')]=_0x51650d,this['isSystemComment']=!!this['_config'][_0x5f12('0x9')],this[_0x5f12('0x2')](_0x5f12('0x1b'),!0x1),this['set'](_0x5f12('0x11'),!0x0),this[_0x5f12('0xe')]=this[_0x5f12('0x3')](),this['visibleView'][_0x5f12('0xf')](this['_createCommentContentView']());}[_0x5f12('0x8')](){this[_0x5f12('0x11')]=!0x1;}['collapse'](){this[_0x5f12('0x1b')]||(this['isCollapsed']=!0x0);}[_0x5f12('0x16')](){this[_0x5f12('0xd')][_0x5f12('0x16')]();}async[_0x5f12('0xc')](){await this[_0x5f12('0xe')][_0x5f12('0xb')](0x0)[_0x5f12('0xc')](),super[_0x5f12('0xc')]();}[_0x5f12('0x18')](){this[_0x5f12('0x1b')]||(this[_0x5f12('0x1b')]=!0x0,this['visibleView'][_0x5f12('0x1d')](0x0)[_0x5f12('0xc')](),this[_0x5f12('0xe')][_0x5f12('0xf')](this[_0x5f12('0x0')]()));}[_0x5f12('0x1c')](){this['isEditMode']&&(this[_0x5f12('0x1b')]=!0x1,this[_0x5f12('0xe')]['remove'](0x0)[_0x5f12('0xc')](),this[_0x5f12('0xe')][_0x5f12('0xf')](this[_0x5f12('0x6')]()));}[_0x5f12('0x6')](){const _0x1b1eb8=new _0x4f733e(this[_0x5f12('0x1e')]);return _0x1b1eb8['bind'](_0x5f12('0x1'))['to'](this[_0x5f12('0x19')],_0x5f12('0x1'),this,_0x5f12('0x11'),(_0x3b9f4c,_0x156300)=>_0x156300?_0x10872b(_0x3b9f4c,{'limit':this[_0x5f12('0x14')][_0x5f12('0x17')]}):_0x3b9f4c),_0x1b1eb8;}[_0x5f12('0x0')](){this[_0x5f12('0x14')][_0x5f12('0x15')]||(this['_config']['editorConfig']={}),this[_0x5f12('0x14')]['editorConfig']['initialData']=this[_0x5f12('0x19')][_0x5f12('0x1')];const _0x13deaf=new _0x299d7b(this[_0x5f12('0x1e')],this[_0x5f12('0x14')]['editorConfig']);return _0x13deaf[_0x5f12('0x12')]=this[_0x5f12('0x19')][_0x5f12('0x1')],_0x13deaf[_0x5f12('0x1a')]('disabledSubmit')['to'](this[_0x5f12('0x19')],'isReadOnly'),_0x13deaf['submitLabel']=_0x5249d7(this[_0x5f12('0x1e')],_0x5f12('0xa')),_0x13deaf['on']('submit',(_0x26f630,_0xe67eab)=>{this['fire'](_0x5f12('0x5'),this[_0x5f12('0x19')]['id'],_0xe67eab),this[_0x5f12('0x1c')](),this[_0x5f12('0x16')]();}),_0x13deaf['on']('cancel',()=>{this['switchToDisplayMode'](),this[_0x5f12('0x16')]();}),_0x13deaf['once'](_0x5f12('0x4'),()=>{_0x13deaf[_0x5f12('0x16')]();}),_0x13deaf[_0x5f12('0x13')](),_0x13deaf[_0x5f12('0x7')](_0x5f12('0x4'))['to'](this),_0x13deaf[_0x5f12('0x7')](_0x5f12('0x10'))['to'](this),_0x13deaf;}}
23
+ const _0x4c54=['add','submitLabel','element','Save','visibleView','value','fire','submit','expand','_createCommentInputView','bind','switchToDisplayMode','_config','isReadOnly','isCollapsed','editorConfig','switchToEditMode','get','delegate','createEditor','editorDestroyed','locale','isEditMode','set','remove','content','_createCommentContentView','focus','initialData','editorReady','_model','isSystemComment','destroy','updateComment','disabledSubmit'];(function(_0x43a87e,_0x4c5469){const _0x96eaa0=function(_0x4243d7){while(--_0x4243d7){_0x43a87e['push'](_0x43a87e['shift']());}};_0x96eaa0(++_0x4c5469);}(_0x4c54,0x180));const _0x96ea=function(_0x43a87e,_0x4c5469){_0x43a87e=_0x43a87e-0x0;let _0x96eaa0=_0x4c54[_0x43a87e];return _0x96eaa0;};import{View as _0x2c2071}from'ckeditor5/src/ui';import{trimHtml as _0x592007}from'ckeditor5-collaboration/src/collaboration-core';import _0x526c41 from'./commentcontentview';import _0x3dad19 from'./commentinputview';import{getTranslation as _0x48d5b3}from'../../../utils/common-translations';export default class Yt extends _0x2c2071{constructor(_0x3dc7ca,_0x148a2a,_0x32989f){super(_0x3dc7ca),this[_0x96ea('0x1f')]=_0x148a2a,this[_0x96ea('0xd')]=_0x32989f,this[_0x96ea('0x20')]=!!this[_0x96ea('0xd')][_0x96ea('0x20')],this[_0x96ea('0x18')](_0x96ea('0x17'),!0x1),this[_0x96ea('0x18')](_0x96ea('0xf'),!0x0),this[_0x96ea('0x5')]=this['createCollection'](),this[_0x96ea('0x5')][_0x96ea('0x1')](this[_0x96ea('0x1b')]());}[_0x96ea('0x9')](){this[_0x96ea('0xf')]=!0x1;}['collapse'](){this[_0x96ea('0x17')]||(this['isCollapsed']=!0x0);}[_0x96ea('0x1c')](){this[_0x96ea('0x3')]['focus']();}async[_0x96ea('0x21')](){await this[_0x96ea('0x5')][_0x96ea('0x12')](0x0)[_0x96ea('0x21')](),super[_0x96ea('0x21')]();}[_0x96ea('0x11')](){this[_0x96ea('0x17')]||(this['isEditMode']=!0x0,this['visibleView'][_0x96ea('0x19')](0x0)['destroy'](),this[_0x96ea('0x5')]['add'](this[_0x96ea('0xa')]()));}['switchToDisplayMode'](){this[_0x96ea('0x17')]&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this[_0x96ea('0x5')]['add'](this[_0x96ea('0x1b')]()));}[_0x96ea('0x1b')](){const _0x1216a9=new _0x526c41(this[_0x96ea('0x16')]);return _0x1216a9[_0x96ea('0xb')](_0x96ea('0x1a'))['to'](this[_0x96ea('0x1f')],_0x96ea('0x1a'),this,'isCollapsed',(_0x4219ef,_0x20c976)=>_0x20c976?_0x592007(_0x4219ef,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x4219ef),_0x1216a9;}['_createCommentInputView'](){this[_0x96ea('0xd')]['editorConfig']||(this['_config'][_0x96ea('0x10')]={}),this[_0x96ea('0xd')][_0x96ea('0x10')][_0x96ea('0x1d')]=this['_model'][_0x96ea('0x1a')];const _0x54ca0c=new _0x3dad19(this[_0x96ea('0x16')],this[_0x96ea('0xd')][_0x96ea('0x10')]);return _0x54ca0c[_0x96ea('0x6')]=this[_0x96ea('0x1f')][_0x96ea('0x1a')],_0x54ca0c[_0x96ea('0xb')](_0x96ea('0x0'))['to'](this[_0x96ea('0x1f')],_0x96ea('0xe')),_0x54ca0c[_0x96ea('0x2')]=_0x48d5b3(this[_0x96ea('0x16')],_0x96ea('0x4')),_0x54ca0c['on'](_0x96ea('0x8'),(_0x390a7c,_0x43ffbe)=>{this[_0x96ea('0x7')](_0x96ea('0x22'),this['_model']['id'],_0x43ffbe),this[_0x96ea('0xc')](),this[_0x96ea('0x1c')]();}),_0x54ca0c['on']('cancel',()=>{this[_0x96ea('0xc')](),this['focus']();}),_0x54ca0c['once'](_0x96ea('0x1e'),()=>{_0x54ca0c[_0x96ea('0x1c')]();}),_0x54ca0c[_0x96ea('0x14')](),_0x54ca0c[_0x96ea('0x13')](_0x96ea('0x1e'))['to'](this),_0x54ca0c[_0x96ea('0x13')](_0x96ea('0x15'))['to'](this),_0x54ca0c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5096=['ck-thread__comment-count','count','bindTemplate','set','NUMBER_OF_COMMENTS'];(function(_0x58abd4,_0x509633){const _0x50afe3=function(_0x18159d){while(--_0x18159d){_0x58abd4['push'](_0x58abd4['shift']());}};_0x50afe3(++_0x509633);}(_0x5096,0x1d8));const _0x50af=function(_0x58abd4,_0x509633){_0x58abd4=_0x58abd4-0x0;let _0x50afe3=_0x5096[_0x58abd4];return _0x50afe3;};import{View as _0x3c8c4c}from'ckeditor5/src/ui';import{getTranslation as _0x5ac8ca}from'../../../utils/common-translations';export default class Zt extends _0x3c8c4c{constructor(_0x465f1a){super(_0x465f1a);const _0x472aa7=this[_0x50af('0x0')];this[_0x50af('0x1')]('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':_0x50af('0x3')},'children':[{'text':_0x472aa7['to'](_0x50af('0x4'),_0x359fcb=>_0x5ac8ca(_0x465f1a,_0x50af('0x2'),_0x359fcb))}]});}}
23
+ const _0x46a2=['bindTemplate','setTemplate','set','ck-thread__comment-count','count','NUMBER_OF_COMMENTS'];(function(_0x1c426d,_0x46a228){const _0xd85036=function(_0x1cbb8a){while(--_0x1cbb8a){_0x1c426d['push'](_0x1c426d['shift']());}};_0xd85036(++_0x46a228);}(_0x46a2,0xda));const _0xd850=function(_0x1c426d,_0x46a228){_0x1c426d=_0x1c426d-0x0;let _0xd85036=_0x46a2[_0x1c426d];return _0xd85036;};import{View as _0x213c7c}from'ckeditor5/src/ui';import{getTranslation as _0x2d8513}from'../../../utils/common-translations';export default class Zt extends _0x213c7c{constructor(_0x506eda){super(_0x506eda);const _0x175c13=this[_0xd850('0x4')];this[_0xd850('0x0')]('count',void 0x0),this[_0xd850('0x5')]({'tag':'li','attributes':{'class':_0xd850('0x1')},'children':[{'text':_0x175c13['to'](_0xd850('0x2'),_0x58b870=>_0x2d8513(_0x506eda,_0xd850('0x3'),_0x58b870))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5497=['set','ck-comment__content','innerHTML','element','content','setTemplate','change:content','ck-annotation__content'];(function(_0x1e8e1e,_0x54973e){var _0x5e9198=function(_0x26e303){while(--_0x26e303){_0x1e8e1e['push'](_0x1e8e1e['shift']());}};_0x5e9198(++_0x54973e);}(_0x5497,0xe4));var _0x5e91=function(_0x1e8e1e,_0x54973e){_0x1e8e1e=_0x1e8e1e-0x0;var _0x5e9198=_0x5497[_0x1e8e1e];return _0x5e9198;};import{View as _0x54369c}from'ckeditor5/src/ui';export default class Ut extends _0x54369c{constructor(_0x33529f){super(_0x33529f),this[_0x5e91('0x4')](_0x5e91('0x0'),''),this[_0x5e91('0x1')]({'tag':'div','attributes':{'class':[_0x5e91('0x5'),_0x5e91('0x3')]}});}['render'](){super['render'](),this['on'](_0x5e91('0x2'),(_0x3c66c7,_0x524936,_0x4bff60)=>{this['element'][_0x5e91('0x6')]=_0x4bff60;}),this[_0x5e91('0x7')][_0x5e91('0x6')]=this[_0x5e91('0x0')];}}
23
+ var _0x2ca3=['ck-comment__content','render','element','innerHTML','ck-annotation__content'];(function(_0x1f7f99,_0x2ca371){var _0x268802=function(_0x5502dc){while(--_0x5502dc){_0x1f7f99['push'](_0x1f7f99['shift']());}};_0x268802(++_0x2ca371);}(_0x2ca3,0xe8));var _0x2688=function(_0x1f7f99,_0x2ca371){_0x1f7f99=_0x1f7f99-0x0;var _0x268802=_0x2ca3[_0x1f7f99];return _0x268802;};import{View as _0x19d196}from'ckeditor5/src/ui';export default class Ut extends _0x19d196{constructor(_0x435a77){super(_0x435a77),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':[_0x2688('0x3'),_0x2688('0x2')]}});}[_0x2688('0x4')](){super[_0x2688('0x4')](),this['on']('change:content',(_0x2aa6d3,_0x31986f,_0x437b31)=>{this[_0x2688('0x0')]['innerHTML']=_0x437b31;}),this[_0x2688('0x0')][_0x2688('0x1')]=this['content'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20b2=['disabledSubmit','extendTemplate','_editorCreationPromise','element','insertBefore','model','render','focusNext','getData','_editorConfig','change','add','low','shift\x20+\x20tab','label','setData','editorReady','setTemplate','_createSubmitButton','ck-comment__input-actions--submit','submitLabel','ck-comment__input-wrapper','submitButtonView','withText','Esc','Reply...','create','execute','value','bindTemplate','destroy','_isDestroyed','createEditor','cancelButtonView','TOO_LONG_COMMENT_ALERT','stop','focusTracker','div','initialData','focus','editor','firstChild','listenTo','view','bind','ck-comment__input-actions--active','length','forEach','document','fire','set','trim','submit','keystrokes','_initializeFocusCycling','showButtons','tab','high'];(function(_0x19ecfa,_0x20b279){const _0xd507c9=function(_0x548a12){while(--_0x548a12){_0x19ecfa['push'](_0x19ecfa['shift']());}};_0xd507c9(++_0x20b279);}(_0x20b2,0xd0));const _0xd507=function(_0x19ecfa,_0x20b279){_0x19ecfa=_0x19ecfa-0x0;let _0xd507c9=_0x20b2[_0x19ecfa];return _0xd507c9;};import{View as _0x1f0224,ViewCollection as _0xd26e5d,FocusCycler as _0x3d7b91,ButtonView as _0x14dae1}from'ckeditor5/src/ui';import{FocusTracker as _0x13c67a,KeystrokeHandler as _0x21fd59}from'ckeditor5/src/utils';import _0x1a276e from'../commenteditor/commenteditor';import{getTranslation as _0x3b7e66}from'../../../utils/common-translations';export default class Xt extends _0x1f0224{constructor(_0x590aa2,_0x32bc2e={}){super(_0x590aa2),this['editor']=null,this[_0xd507('0x21')]=_0x32bc2e,this[_0xd507('0x13')]=new _0x21fd59(),this[_0xd507('0x2')]=new _0x13c67a(),this[_0xd507('0x10')](_0xd507('0x34'),_0x32bc2e[_0xd507('0x4')]||''),this[_0xd507('0x10')](_0xd507('0x18'),!0x1),this['set'](_0xd507('0x15'),!0x0),this[_0xd507('0x10')]('placeholder',_0x3b7e66(_0x590aa2,_0xd507('0x31'))),this[_0xd507('0x10')](_0xd507('0x2c'),_0x3b7e66(_0x590aa2,'Reply')),this[_0xd507('0x2e')]=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this[_0xd507('0x29')]({'tag':_0xd507('0x3'),'attributes':{'class':[_0xd507('0x2d')]},'children':[{'tag':_0xd507('0x3'),'attributes':{'class':['ck-comment__input-actions',this[_0xd507('0x35')]['if'](_0xd507('0x15'),_0xd507('0xb'))]},'children':[this[_0xd507('0x2e')],this[_0xd507('0x39')]]}]}),this[_0xd507('0x13')][_0xd507('0x10')](_0xd507('0x30'),(_0x4be729,_0x47219d)=>{this[_0xd507('0x39')][_0xd507('0xf')](_0xd507('0x33')),_0x47219d();}),this['on'](_0xd507('0x12'),(_0x65645e,_0x480283)=>{_0x480283[_0xd507('0xc')]>0xfde8?(alert(_0x3b7e66(_0x590aa2,_0xd507('0x0'),[_0x480283[_0xd507('0xc')],0xfde8])),_0x65645e[_0xd507('0x1')]()):this[_0xd507('0x6')][_0xd507('0x27')]('');},{'priority':_0xd507('0x17')});}[_0xd507('0x1e')](){super[_0xd507('0x1e')](),this[_0xd507('0x13')][_0xd507('0x8')](this[_0xd507('0x1b')]),this[_0xd507('0x2')]['add'](this[_0xd507('0x1b')]);}[_0xd507('0x38')](){return this[_0xd507('0x6')]||(this['editor']=new _0x1a276e(this[_0xd507('0x21')]),this['_editorCreationPromise']=this['editor'][_0xd507('0x32')]()['then'](()=>{if(this['_isDestroyed'])return;const _0x3a4aaf=this['editor'];this[_0xd507('0x1b')][_0xd507('0x1c')](_0x3a4aaf['ui']['element'],this[_0xd507('0x1b')][_0xd507('0x7')]),_0x3a4aaf[_0xd507('0x1d')][_0xd507('0xe')]['on'](_0xd507('0x22'),()=>this[_0xd507('0x34')]=_0x3a4aaf[_0xd507('0x20')]()),_0x3a4aaf['bind']('placeholder')['to'](this),this[_0xd507('0x14')](this[_0xd507('0x6')]),this[_0xd507('0xf')](_0xd507('0x28'),this[_0xd507('0x6')]);})),this[_0xd507('0x1a')];}[_0xd507('0x5')](){this[_0xd507('0x6')]&&this[_0xd507('0x6')][_0xd507('0x5')]();}async[_0xd507('0x36')](){this[_0xd507('0x37')]||(this[_0xd507('0x37')]=!0x0,this[_0xd507('0x6')]&&(await this[_0xd507('0x1a')],await this[_0xd507('0x6')][_0xd507('0x36')](),this[_0xd507('0xf')]('editorDestroyed',this[_0xd507('0x6')])),await super[_0xd507('0x36')]());}[_0xd507('0x2a')](){const {locale:_0x123429}=this,_0x4f3fde=new _0x14dae1(_0x123429);return _0x4f3fde[_0xd507('0x19')]({'attributes':{'class':[_0xd507('0x2b')]}}),_0x4f3fde[_0xd507('0x2f')]=!0x0,_0x4f3fde[_0xd507('0xa')](_0xd507('0x26'))['to'](this,_0xd507('0x2c')),_0x4f3fde['on'](_0xd507('0x33'),()=>{this[_0xd507('0xf')]('submit',this[_0xd507('0x34')]);}),_0x4f3fde[_0xd507('0xa')]('isEnabled')['to'](this,_0xd507('0x34'),this,_0xd507('0x18'),(_0x118f35,_0x2283e6)=>!_0x2283e6&&!!_0x118f35[_0xd507('0x11')]()),_0x4f3fde;}['_createCancelButton'](){const {locale:_0x4beec3}=this,_0x35af4e=new _0x14dae1(_0x4beec3);return _0x35af4e['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x35af4e[_0xd507('0x26')]=_0x3b7e66(_0x4beec3,'Cancel'),_0x35af4e['withText']=!0x0,_0x35af4e['on']('execute',()=>{this['editor'][_0xd507('0x27')](''),this[_0xd507('0xf')]('cancel');}),_0x35af4e;}[_0xd507('0x14')](_0xb66daf){const _0x61bfc5=this[_0xd507('0x2')],_0x13ef76=new _0xd26e5d();[_0xb66daf['ui'][_0xd507('0x9')],this[_0xd507('0x2e')],this[_0xd507('0x39')]][_0xd507('0xd')](_0x15da68=>{_0x13ef76[_0xd507('0x23')](_0x15da68),_0x61bfc5[_0xd507('0x23')](_0x15da68[_0xd507('0x1b')]);});const _0xb15bcd=new _0x3d7b91({'focusables':_0x13ef76,'focusTracker':_0x61bfc5});this[_0xd507('0x13')][_0xd507('0x10')](_0xd507('0x16'),(_0xe20cfc,_0xc2578a)=>{_0xb15bcd[_0xd507('0x1f')](),_0xc2578a();},{'priority':_0xd507('0x24')}),this[_0xd507('0x13')][_0xd507('0x10')](_0xd507('0x25'),(_0x59b396,_0x6dc3ea)=>{_0xb15bcd['focusPrevious'](),_0x6dc3ea();},{'priority':_0xd507('0x24')});}}
23
+ const _0x16d5=['add','editorReady','then','destroy','submitButtonView','ck-comment__input-actions--cancel','change','Reply','editorDestroyed','length','showButtons','trim','Esc','Reply...','shift\x20+\x20tab','element','Cancel','forEach','fire','create','bind','ck-comment__input-wrapper','setTemplate','focusTracker','high','withText','initialData','_isDestroyed','listenTo','firstChild','_editorCreationPromise','submit','ck-comment__input-actions','set','cancelButtonView','value','keystrokes','ck-comment__input-actions--submit','isEnabled','submitLabel','createEditor','focusNext','tab','low','_initializeFocusCycling','disabledSubmit','focusPrevious','stop','_editorConfig','execute','cancel','_createCancelButton','document','_createSubmitButton','label','editor','insertBefore','render','ck-comment__input-actions--active','extendTemplate','setData'];(function(_0x17450e,_0x16d5f2){const _0x3729f8=function(_0x3c5616){while(--_0x3c5616){_0x17450e['push'](_0x17450e['shift']());}};_0x3729f8(++_0x16d5f2);}(_0x16d5,0xc5));const _0x3729=function(_0x17450e,_0x16d5f2){_0x17450e=_0x17450e-0x0;let _0x3729f8=_0x16d5[_0x17450e];return _0x3729f8;};import{View as _0x101260,ViewCollection as _0x3bd563,FocusCycler as _0x5cc682,ButtonView as _0x34095e}from'ckeditor5/src/ui';import{FocusTracker as _0x545a50,KeystrokeHandler as _0x3619cd}from'ckeditor5/src/utils';import _0x16d625 from'../commenteditor/commenteditor';import{getTranslation as _0x57f6e6}from'../../../utils/common-translations';export default class Xt extends _0x101260{constructor(_0x44d82a,_0x4de9a3={}){super(_0x44d82a),this[_0x3729('0x29')]=null,this[_0x3729('0x22')]=_0x4de9a3,this[_0x3729('0x16')]=new _0x3619cd(),this[_0x3729('0x9')]=new _0x545a50(),this[_0x3729('0x13')]('value',_0x4de9a3[_0x3729('0xc')]||''),this[_0x3729('0x13')]('disabledSubmit',!0x1),this['set'](_0x3729('0x39'),!0x0),this[_0x3729('0x13')]('placeholder',_0x57f6e6(_0x44d82a,_0x3729('0x3c'))),this[_0x3729('0x13')](_0x3729('0x19'),_0x57f6e6(_0x44d82a,_0x3729('0x36'))),this[_0x3729('0x33')]=this[_0x3729('0x27')](),this[_0x3729('0x14')]=this[_0x3729('0x25')](),this[_0x3729('0x8')]({'tag':'div','attributes':{'class':[_0x3729('0x7')]},'children':[{'tag':'div','attributes':{'class':[_0x3729('0x12'),this['bindTemplate']['if']('showButtons',_0x3729('0x2c'))]},'children':[this[_0x3729('0x33')],this[_0x3729('0x14')]]}]}),this[_0x3729('0x16')]['set'](_0x3729('0x3b'),(_0x496bb9,_0xebb749)=>{this['cancelButtonView'][_0x3729('0x4')](_0x3729('0x23')),_0xebb749();}),this['on'](_0x3729('0x11'),(_0x124a81,_0x1d3047)=>{_0x1d3047['length']>0xfde8?(alert(_0x57f6e6(_0x44d82a,'TOO_LONG_COMMENT_ALERT',[_0x1d3047[_0x3729('0x38')],0xfde8])),_0x124a81[_0x3729('0x21')]()):this[_0x3729('0x29')][_0x3729('0x2e')]('');},{'priority':_0x3729('0xa')});}[_0x3729('0x2b')](){super[_0x3729('0x2b')](),this['keystrokes'][_0x3729('0xe')](this[_0x3729('0x1')]),this['focusTracker'][_0x3729('0x2f')](this[_0x3729('0x1')]);}[_0x3729('0x1a')](){return this[_0x3729('0x29')]||(this[_0x3729('0x29')]=new _0x16d625(this[_0x3729('0x22')]),this[_0x3729('0x10')]=this[_0x3729('0x29')][_0x3729('0x5')]()[_0x3729('0x31')](()=>{if(this[_0x3729('0xd')])return;const _0x412113=this[_0x3729('0x29')];this[_0x3729('0x1')][_0x3729('0x2a')](_0x412113['ui'][_0x3729('0x1')],this[_0x3729('0x1')][_0x3729('0xf')]),_0x412113['model'][_0x3729('0x26')]['on'](_0x3729('0x35'),()=>this[_0x3729('0x15')]=_0x412113['getData']()),_0x412113['bind']('placeholder')['to'](this),this[_0x3729('0x1e')](this[_0x3729('0x29')]),this[_0x3729('0x4')](_0x3729('0x30'),this[_0x3729('0x29')]);})),this[_0x3729('0x10')];}['focus'](){this[_0x3729('0x29')]&&this[_0x3729('0x29')]['focus']();}async[_0x3729('0x32')](){this[_0x3729('0xd')]||(this[_0x3729('0xd')]=!0x0,this['editor']&&(await this[_0x3729('0x10')],await this[_0x3729('0x29')][_0x3729('0x32')](),this[_0x3729('0x4')](_0x3729('0x37'),this[_0x3729('0x29')])),await super[_0x3729('0x32')]());}[_0x3729('0x27')](){const {locale:_0x2cfb95}=this,_0x2396a=new _0x34095e(_0x2cfb95);return _0x2396a[_0x3729('0x2d')]({'attributes':{'class':[_0x3729('0x17')]}}),_0x2396a[_0x3729('0xb')]=!0x0,_0x2396a[_0x3729('0x6')](_0x3729('0x28'))['to'](this,_0x3729('0x19')),_0x2396a['on'](_0x3729('0x23'),()=>{this[_0x3729('0x4')]('submit',this[_0x3729('0x15')]);}),_0x2396a[_0x3729('0x6')](_0x3729('0x18'))['to'](this,'value',this,_0x3729('0x1f'),(_0xbfb9d3,_0x1e1605)=>!_0x1e1605&&!!_0xbfb9d3[_0x3729('0x3a')]()),_0x2396a;}[_0x3729('0x25')](){const {locale:_0xaab655}=this,_0x27f143=new _0x34095e(_0xaab655);return _0x27f143[_0x3729('0x2d')]({'attributes':{'class':[_0x3729('0x34')]}}),_0x27f143[_0x3729('0x28')]=_0x57f6e6(_0xaab655,_0x3729('0x2')),_0x27f143[_0x3729('0xb')]=!0x0,_0x27f143['on'](_0x3729('0x23'),()=>{this[_0x3729('0x29')]['setData'](''),this[_0x3729('0x4')](_0x3729('0x24'));}),_0x27f143;}[_0x3729('0x1e')](_0x29965a){const _0x183da9=this['focusTracker'],_0x48b742=new _0x3bd563();[_0x29965a['ui']['view'],this[_0x3729('0x33')],this[_0x3729('0x14')]][_0x3729('0x3')](_0x38cb11=>{_0x48b742[_0x3729('0x2f')](_0x38cb11),_0x183da9[_0x3729('0x2f')](_0x38cb11[_0x3729('0x1')]);});const _0xd0b3b6=new _0x5cc682({'focusables':_0x48b742,'focusTracker':_0x183da9});this[_0x3729('0x16')][_0x3729('0x13')](_0x3729('0x1c'),(_0x8990d5,_0x28e97f)=>{_0xd0b3b6[_0x3729('0x1b')](),_0x28e97f();},{'priority':_0x3729('0x1d')}),this[_0x3729('0x16')]['set'](_0x3729('0x0'),(_0x5f283c,_0x280526)=>{_0xd0b3b6[_0x3729('0x20')](),_0x280526();},{'priority':'low'});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x537b=['auto','set','_keystrokes','selectstart','_focusables','shift\x20+\x20tab','tab','element','destroy','ck-comments-archive__content','length','remove','ck-comments-archive__header\x20','ck-hidden','isActive','ck-comments-archive','isEmpty','arrowdown','listenTo','ck-comments-archive__info','render','COMMENTS_ARCHIVE','focus','EMPTY_COMMENTS_ARCHIVE','_focusTracker','high','arrowup','arrowright','stopPropagation','div'];(function(_0x1bbbf8,_0x537b84){const _0x6aca5f=function(_0x5f0936){while(--_0x5f0936){_0x1bbbf8['push'](_0x1bbbf8['shift']());}};_0x6aca5f(++_0x537b84);}(_0x537b,0xd8));const _0x6aca=function(_0x1bbbf8,_0x537b84){_0x1bbbf8=_0x1bbbf8-0x0;let _0x6aca5f=_0x537b[_0x1bbbf8];return _0x6aca5f;};import{View as _0x52e26a,FocusCycler as _0x41a625}from'ckeditor5/src/ui';import{FocusTracker as _0x52a9fa,KeystrokeHandler as _0x3d33c8}from'ckeditor5/src/utils';import{getTranslation as _0x4cc09b}from'../../../utils/common-translations';export default class K extends _0x52e26a{constructor(_0x3aca3c,_0x4a6c67){super(_0x3aca3c),this[_0x6aca('0x19')]('isEmpty',!_0x4a6c67[_0x6aca('0x4')]),this['_focusTracker']=new _0x52a9fa(),this[_0x6aca('0x1a')]=new _0x3d33c8(),this[_0x6aca('0x1c')]=_0x4a6c67,this['_focusCycler']=new _0x41a625({'focusables':this['_focusables'],'focusTracker':this[_0x6aca('0x12')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0x6aca('0x1d'),'focusNext':_0x6aca('0x0')}}),this[_0x6aca('0xc')](_0x4a6c67,'add',()=>{this[_0x6aca('0xa')]=!0x1;}),this[_0x6aca('0xc')](_0x4a6c67,_0x6aca('0x5'),(_0x298e87,_0x1b81c6)=>{_0x1b81c6[_0x6aca('0x8')]&&this[_0x6aca('0x10')](),_0x4a6c67['length']||(this['isEmpty']=!0x0);});const _0x130d4a=this['bindTemplate'];this['setTemplate']({'tag':_0x6aca('0x17'),'attributes':{'dir':_0x6aca('0x18'),'class':['ck',_0x6aca('0x9')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x6aca('0x6')]},'children':[{'text':_0x4cc09b(_0x3aca3c,_0x6aca('0xf'))}]},{'tag':'div','attributes':{'class':[_0x6aca('0x3')]},'children':[{'tag':'div','children':_0x4a6c67},{'tag':'p','attributes':{'class':[_0x6aca('0xd'),_0x130d4a['if']('isEmpty',_0x6aca('0x7'),_0x1dc3d3=>!_0x1dc3d3)]},'children':[{'text':_0x4cc09b(_0x3aca3c,_0x6aca('0x11'))}]}]}]});}[_0x6aca('0xe')](){super[_0x6aca('0xe')](),this[_0x6aca('0x1a')][_0x6aca('0xc')](this[_0x6aca('0x1')]);const _0x37d3ac=_0xf58886=>_0xf58886[_0x6aca('0x16')]();this[_0x6aca('0x1a')]['set'](_0x6aca('0x15'),_0x37d3ac),this['_keystrokes'][_0x6aca('0x19')]('arrowleft',_0x37d3ac),this['_keystrokes'][_0x6aca('0x19')](_0x6aca('0x14'),_0x37d3ac),this['_keystrokes'][_0x6aca('0x19')](_0x6aca('0xb'),_0x37d3ac),this[_0x6aca('0xc')](this[_0x6aca('0x1')],_0x6aca('0x1b'),(_0x19d0e6,_0x271103)=>{_0x271103[_0x6aca('0x16')]();},{'priority':_0x6aca('0x13')});}[_0x6aca('0x2')](){super[_0x6aca('0x2')](),this[_0x6aca('0x12')][_0x6aca('0x2')](),this[_0x6aca('0x1a')][_0x6aca('0x2')]();}[_0x6aca('0x10')](){this[_0x6aca('0x1')][_0x6aca('0x10')]();}}
23
+ const _0x2c52=['_focusables','isActive','bindTemplate','length','listenTo','isEmpty','ck-comments-archive__content','focus','remove','ck-hidden','EMPTY_COMMENTS_ARCHIVE','COMMENTS_ARCHIVE','add','ck-comments-archive','tab','div','auto','element','_keystrokes','arrowup','destroy','set','render','arrowright','selectstart','ck-comments-archive__header\x20','_focusTracker','arrowleft','stopPropagation','_focusCycler'];(function(_0x113b61,_0x2c5201){const _0x50dd66=function(_0x267c49){while(--_0x267c49){_0x113b61['push'](_0x113b61['shift']());}};_0x50dd66(++_0x2c5201);}(_0x2c52,0xac));const _0x50dd=function(_0x113b61,_0x2c5201){_0x113b61=_0x113b61-0x0;let _0x50dd66=_0x2c52[_0x113b61];return _0x50dd66;};import{View as _0x1212a9,FocusCycler as _0x1769f2}from'ckeditor5/src/ui';import{FocusTracker as _0x1edff7,KeystrokeHandler as _0x2a40e9}from'ckeditor5/src/utils';import{getTranslation as _0x182e79}from'../../../utils/common-translations';export default class K extends _0x1212a9{constructor(_0x56c3a6,_0x30ff7d){super(_0x56c3a6),this['set'](_0x50dd('0xd'),!_0x30ff7d['length']),this['_focusTracker']=new _0x1edff7(),this['_keystrokes']=new _0x2a40e9(),this[_0x50dd('0x8')]=_0x30ff7d,this[_0x50dd('0x7')]=new _0x1769f2({'focusables':this[_0x50dd('0x8')],'focusTracker':this[_0x50dd('0x4')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x50dd('0x16')}}),this['listenTo'](_0x30ff7d,_0x50dd('0x14'),()=>{this['isEmpty']=!0x1;}),this[_0x50dd('0xc')](_0x30ff7d,_0x50dd('0x10'),(_0x3c306c,_0x347e77)=>{_0x347e77[_0x50dd('0x9')]&&this[_0x50dd('0xf')](),_0x30ff7d[_0x50dd('0xb')]||(this[_0x50dd('0xd')]=!0x0);});const _0x2aab5b=this[_0x50dd('0xa')];this['setTemplate']({'tag':'div','attributes':{'dir':_0x50dd('0x18'),'class':['ck',_0x50dd('0x15')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x50dd('0x3')]},'children':[{'text':_0x182e79(_0x56c3a6,_0x50dd('0x13'))}]},{'tag':_0x50dd('0x17'),'attributes':{'class':[_0x50dd('0xe')]},'children':[{'tag':_0x50dd('0x17'),'children':_0x30ff7d},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2aab5b['if'](_0x50dd('0xd'),_0x50dd('0x11'),_0x165b0b=>!_0x165b0b)]},'children':[{'text':_0x182e79(_0x56c3a6,_0x50dd('0x12'))}]}]}]});}[_0x50dd('0x0')](){super[_0x50dd('0x0')](),this[_0x50dd('0x1a')][_0x50dd('0xc')](this['element']);const _0x67f659=_0xc5235f=>_0xc5235f[_0x50dd('0x6')]();this[_0x50dd('0x1a')]['set'](_0x50dd('0x1'),_0x67f659),this[_0x50dd('0x1a')][_0x50dd('0x1d')](_0x50dd('0x5'),_0x67f659),this[_0x50dd('0x1a')][_0x50dd('0x1d')](_0x50dd('0x1b'),_0x67f659),this[_0x50dd('0x1a')][_0x50dd('0x1d')]('arrowdown',_0x67f659),this[_0x50dd('0xc')](this['element'],_0x50dd('0x2'),(_0x3e7e3b,_0x23c23d)=>{_0x23c23d['stopPropagation']();},{'priority':'high'});}[_0x50dd('0x1c')](){super[_0x50dd('0x1c')](),this[_0x50dd('0x4')][_0x50dd('0x1c')](),this['_keystrokes'][_0x50dd('0x1c')]();}[_0x50dd('0xf')](){this[_0x50dd('0x19')][_0x50dd('0xf')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3219=['CommentView','render','viewUid','_handleNewCommentModel','_model','_rearrangeExpand','insert','isActive','maxThreadTotalWeight','formatDateTime','resolveCommentThread','resolvedCommentView','destroy','_findOptimalIndex','bind','equal','resolvedBy','_shouldCollapse','_rearrangeCollapse','set','Marked\x20as\x20resolved','from','refreshVisibleViews','resolvedAt','removeComment','_collapsedCommentsView','setTemplate','_handleRemoveCommentModel','add','maxCommentCharsWhenCollapsed','listenTo','locale','comments','maxCommentsWhenCollapsed','stopListening','change:hasDirtyComment','createCollection','_updateHasDirtyComment','commentViews','editorConfig','isEditMode','count','length','commentUpdated','ck-thread__comments','resolved','visibleViews','hasDirtyComment','focus','_config','delegate','_handleInfoComment','get','remove','_calculatePosition'];(function(_0x3d285d,_0x321925){const _0x558c1c=function(_0x1a2aea){while(--_0x1a2aea){_0x3d285d['push'](_0x3d285d['shift']());}};_0x558c1c(++_0x321925);}(_0x3219,0x165));const _0x558c=function(_0x3d285d,_0x321925){_0x3d285d=_0x3d285d-0x0;let _0x558c1c=_0x3219[_0x3d285d];return _0x558c1c;};import{View as _0x4ccee3}from'ckeditor5/src/ui';import{diff as _0x552b33,Collection as _0x4b2ac7}from'ckeditor5/src/utils';import{getTranslation as _0x9e052a}from'../../../utils/common-translations';import _0x181d1e from'./collapsedcommentsview';export default class wt extends _0x4ccee3{constructor(_0x2ad216,_0x2f3706,_0x4a2c89){super(_0x2ad216),this['set'](_0x558c('0x14'),!0x1),this[_0x558c('0x2f')](_0x558c('0xf'),_0x2f3706[_0x558c('0x5')][_0x558c('0xf')]),this[_0x558c('0x2f')](_0x558c('0x23'),!0x1),this['_model']=_0x2f3706,this[_0x558c('0x16')]=_0x4a2c89,this[_0x558c('0xb')]=this[_0x558c('0x9')](),this[_0x558c('0x13')]=this[_0x558c('0x9')](),this['resolvedCommentView']=null,this['_collapsedCommentsView']=new _0x181d1e(_0x2ad216),this[_0x558c('0x35')][_0x558c('0x2a')]('count')['to'](this,'length',_0xab6940=>_0xab6940-this[_0x558c('0x16')][_0x558c('0x6')]);for(const _0x556d74 of _0x2f3706['comments'])this[_0x558c('0x1f')](_0x556d74);this[_0x558c('0x18')](),this[_0x558c('0x3')](_0x2f3706[_0x558c('0x5')],_0x558c('0x1'),(_0x112367,_0x2e07eb)=>{const _0xc78dea=this[_0x558c('0x1b')](_0x2e07eb);this['length']++,this[_0x558c('0x1f')](_0x2e07eb,_0xc78dea),this[_0x558c('0x32')]();}),this[_0x558c('0x3')](_0x2f3706[_0x558c('0x5')],_0x558c('0x1a'),(_0x184209,_0x4c7a84)=>{this['length']--,this[_0x558c('0x0')](_0x4c7a84),this[_0x558c('0x32')]();}),this['listenTo'](_0x2f3706,_0x558c('0x10'),()=>this[_0x558c('0x32')]()),this[_0x558c('0x3')](_0x2f3706,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this[_0x558c('0x32')]()),this['on'](_0x558c('0x8'),()=>this[_0x558c('0x32')]()),this[_0x558c('0x36')]({'tag':'ul','attributes':{'class':[_0x558c('0x11')]},'children':this[_0x558c('0x13')]});}get['_shouldCollapse'](){return this[_0x558c('0x20')]['weight']>this[_0x558c('0x16')][_0x558c('0x24')]&&!this[_0x558c('0x23')]&&!this[_0x558c('0x14')];}[_0x558c('0x1d')](){super[_0x558c('0x1d')](),this[_0x558c('0x32')]();}[_0x558c('0x15')](){this['element'][_0x558c('0x15')]();}['destroy'](){this[_0x558c('0x35')][_0x558c('0x28')]();for(const _0x3cd5bb of this[_0x558c('0xb')])_0x3cd5bb[_0x558c('0x28')]();super[_0x558c('0x28')]();}['refreshVisibleViews'](){this[_0x558c('0x2d')]?this[_0x558c('0x2e')]():this[_0x558c('0x21')]();}[_0x558c('0x1f')](_0x4e803b,_0x21eed8){const _0x1ecf1d=new this[(_0x558c('0x16'))][(_0x558c('0x1c'))](this[_0x558c('0x4')],_0x4e803b,{'maxCommentCharsWhenCollapsed':this[_0x558c('0x16')][_0x558c('0x2')],'formatDateTime':this[_0x558c('0x16')]['formatDateTime'],'editorConfig':this['_config'][_0x558c('0xc')]});_0x1ecf1d[_0x558c('0x1e')]=_0x4e803b['id'],_0x1ecf1d[_0x558c('0x17')](_0x558c('0x34'))['to'](this),_0x1ecf1d['delegate']('updateComment')['to'](this),_0x1ecf1d['delegate'](_0x558c('0x26'))['to'](this),_0x1ecf1d[_0x558c('0x17')]('editorReady')['to'](this),_0x1ecf1d[_0x558c('0x17')]('editorDestroyed')['to'](this),this[_0x558c('0x3')](_0x1ecf1d,'change:isEditMode',()=>this[_0x558c('0xa')]()),this[_0x558c('0xb')]['add'](_0x1ecf1d,_0x21eed8);}[_0x558c('0x1b')](_0xe25f3f){const _0x2c2888=this[_0x558c('0x20')][_0x558c('0x29')](_0xe25f3f);return this[_0x558c('0x27')]?this[_0x558c('0x27')]['authoredAt']>_0xe25f3f['authoredAt']?_0x2c2888-0x1:_0x2c2888:_0x2c2888-0x1;}['_handleInfoComment'](){if(this[_0x558c('0x20')][_0x558c('0x2c')]&&this['_model'][_0x558c('0x33')]){const _0x903808={'id':_0x558c('0x12'),'author':this[_0x558c('0x20')][_0x558c('0x2c')],'authoredAt':this[_0x558c('0x20')][_0x558c('0x33')],'content':_0x9e052a(this[_0x558c('0x4')],_0x558c('0x30')),'attributes':{}};this[_0x558c('0x27')]=new this[(_0x558c('0x16'))][(_0x558c('0x1c'))](this[_0x558c('0x4')],_0x903808,{'maxCommentCharsWhenCollapsed':this[_0x558c('0x16')][_0x558c('0x2')],'formatDateTime':this[_0x558c('0x16')][_0x558c('0x25')],'editorConfig':this[_0x558c('0x16')][_0x558c('0xc')],'isSystemComment':!0x0}),this['commentViews'][_0x558c('0x1')](this[_0x558c('0x27')],this[_0x558c('0x20')][_0x558c('0x29')](_0x903808));}else this['resolvedCommentView']&&(this[_0x558c('0xb')]['remove'](this['resolvedCommentView']),this['resolvedCommentView'][_0x558c('0x28')](),this['resolvedCommentView']=null);this[_0x558c('0x32')]();}[_0x558c('0x0')](_0x3f0fd6){const _0x4a1b83=this['commentViews']['remove'](_0x3f0fd6['id']);this[_0x558c('0x7')](_0x4a1b83),_0x4a1b83[_0x558c('0xd')]&&this['_updateHasDirtyComment'](),_0x4a1b83[_0x558c('0x28')]();}[_0x558c('0xa')](){this[_0x558c('0x14')]=Array[_0x558c('0x31')](this['commentViews'])['some'](_0x26d3f2=>_0x26d3f2[_0x558c('0xd')]);}['_rearrangeCollapse'](){const _0x1a7649=function(_0x4122cf){const _0x56bb79=new _0x4b2ac7();for(const _0x391650 of _0x4122cf)_0x56bb79['add'](_0x391650);return _0x56bb79;}(this['commentViews']),_0xb4164d=this[_0x558c('0x35')][_0x558c('0xe')];for(let _0x564322=0x1;_0x564322<=_0xb4164d;_0x564322++)_0x1a7649['remove'](0x1);for(const _0x42b1c4 of _0x1a7649)_0x42b1c4['collapse']();_0xb4164d>0x0&&_0x1a7649[_0x558c('0x1')](this[_0x558c('0x35')],0x1),ss(_0x552b33(Array['from'](this[_0x558c('0x13')]),Array[_0x558c('0x31')](_0x1a7649)),this[_0x558c('0x13')],_0x1a7649);}[_0x558c('0x21')](){ss(_0x552b33(Array['from'](this[_0x558c('0x13')]),Array[_0x558c('0x31')](this[_0x558c('0xb')])),this[_0x558c('0x13')],this[_0x558c('0xb')]);for(const _0x1ac136 of this[_0x558c('0x13')])_0x1ac136['expand']();}}function ss(_0x79ddb2,_0x1c77e2,_0x2d7409){let _0x324b35=0x0;for(const _0x270f7d of _0x79ddb2)switch(_0x270f7d){case _0x558c('0x22'):_0x1c77e2['add'](_0x2d7409[_0x558c('0x19')](_0x324b35),_0x324b35),_0x324b35++;break;case'delete':_0x1c77e2[_0x558c('0x1a')](_0x324b35);break;case _0x558c('0x2b'):_0x324b35++;}}
23
+ const _0x5d63=['commentUpdated','delegate','resolveCommentThread','locale','editorDestroyed','_handleRemoveCommentModel','listenTo','resolvedAt','updateComment','add','delete','viewUid','count','_shouldCollapse','_config','render','commentViews','stopListening','change:isEditMode','refreshVisibleViews','set','maxThreadTotalWeight','ck-thread__comments','resolvedBy','_updateHasDirtyComment','element','editorReady','weight','_handleNewCommentModel','_handleInfoComment','hasDirtyComment','change:hasDirtyComment','resolvedCommentView','remove','from','visibleViews','equal','length','resolved','_collapsedCommentsView','focus','destroy','collapse','maxCommentsWhenCollapsed','_rearrangeExpand','CommentView','change:isResolved','setTemplate','isEditMode','some','_rearrangeCollapse','insert','createCollection','formatDateTime','authoredAt','comments','_model'];(function(_0x4dfcac,_0x5d6300){const _0x3b9975=function(_0x1a6006){while(--_0x1a6006){_0x4dfcac['push'](_0x4dfcac['shift']());}};_0x3b9975(++_0x5d6300);}(_0x5d63,0x1ab));const _0x3b99=function(_0x4dfcac,_0x5d6300){_0x4dfcac=_0x4dfcac-0x0;let _0x3b9975=_0x5d63[_0x4dfcac];return _0x3b9975;};import{View as _0xa37451}from'ckeditor5/src/ui';import{diff as _0x5cbd42,Collection as _0x3c3c36}from'ckeditor5/src/utils';import{getTranslation as _0x37979d}from'../../../utils/common-translations';import _0x1fc868 from'./collapsedcommentsview';export default class wt extends _0xa37451{constructor(_0x194d3f,_0x56af36,_0x20d657){super(_0x194d3f),this[_0x3b99('0x31')]('hasDirtyComment',!0x1),this[_0x3b99('0x31')](_0x3b99('0x9'),_0x56af36[_0x3b99('0x1b')][_0x3b99('0x9')]),this[_0x3b99('0x31')]('isActive',!0x1),this[_0x3b99('0x1c')]=_0x56af36,this['_config']=_0x20d657,this[_0x3b99('0x2d')]=this[_0x3b99('0x18')](),this[_0x3b99('0x7')]=this[_0x3b99('0x18')](),this[_0x3b99('0x4')]=null,this[_0x3b99('0xb')]=new _0x1fc868(_0x194d3f),this[_0x3b99('0xb')]['bind'](_0x3b99('0x29'))['to'](this,_0x3b99('0x9'),_0x4fff01=>_0x4fff01-this['_config'][_0x3b99('0xf')]);for(const _0x2d169d of _0x56af36[_0x3b99('0x1b')])this[_0x3b99('0x0')](_0x2d169d);this[_0x3b99('0x1')](),this['listenTo'](_0x56af36[_0x3b99('0x1b')],_0x3b99('0x26'),(_0x547e84,_0x40d8e5)=>{const _0x2be2f9=this['_calculatePosition'](_0x40d8e5);this[_0x3b99('0x9')]++,this[_0x3b99('0x0')](_0x40d8e5,_0x2be2f9),this[_0x3b99('0x30')]();}),this[_0x3b99('0x23')](_0x56af36[_0x3b99('0x1b')],'remove',(_0x139020,_0x2aa7ff)=>{this[_0x3b99('0x9')]--,this[_0x3b99('0x22')](_0x2aa7ff),this[_0x3b99('0x30')]();}),this[_0x3b99('0x23')](_0x56af36,_0x3b99('0x1d'),()=>this[_0x3b99('0x30')]()),this[_0x3b99('0x23')](_0x56af36,_0x3b99('0x12'),()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this[_0x3b99('0x30')]()),this['on'](_0x3b99('0x3'),()=>this['refreshVisibleViews']()),this[_0x3b99('0x13')]({'tag':'ul','attributes':{'class':[_0x3b99('0x33')]},'children':this[_0x3b99('0x7')]});}get[_0x3b99('0x2a')](){return this[_0x3b99('0x1c')][_0x3b99('0x38')]>this[_0x3b99('0x2b')][_0x3b99('0x32')]&&!this['isActive']&&!this[_0x3b99('0x2')];}[_0x3b99('0x2c')](){super[_0x3b99('0x2c')](),this[_0x3b99('0x30')]();}['focus'](){this[_0x3b99('0x36')][_0x3b99('0xc')]();}['destroy'](){this[_0x3b99('0xb')][_0x3b99('0xd')]();for(const _0x1e19f3 of this[_0x3b99('0x2d')])_0x1e19f3['destroy']();super['destroy']();}[_0x3b99('0x30')](){this[_0x3b99('0x2a')]?this['_rearrangeCollapse']():this[_0x3b99('0x10')]();}['_handleNewCommentModel'](_0x12ad72,_0x34235c){const _0x4dfd8f=new this[(_0x3b99('0x2b'))][(_0x3b99('0x11'))](this[_0x3b99('0x20')],_0x12ad72,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this[_0x3b99('0x2b')]['editorConfig']});_0x4dfd8f[_0x3b99('0x28')]=_0x12ad72['id'],_0x4dfd8f[_0x3b99('0x1e')]('removeComment')['to'](this),_0x4dfd8f[_0x3b99('0x1e')](_0x3b99('0x25'))['to'](this),_0x4dfd8f[_0x3b99('0x1e')](_0x3b99('0x1f'))['to'](this),_0x4dfd8f[_0x3b99('0x1e')](_0x3b99('0x37'))['to'](this),_0x4dfd8f['delegate'](_0x3b99('0x21'))['to'](this),this[_0x3b99('0x23')](_0x4dfd8f,_0x3b99('0x2f'),()=>this[_0x3b99('0x35')]()),this[_0x3b99('0x2d')][_0x3b99('0x26')](_0x4dfd8f,_0x34235c);}['_calculatePosition'](_0x55fb9e){const _0x1a5938=this[_0x3b99('0x1c')]['_findOptimalIndex'](_0x55fb9e);return this[_0x3b99('0x4')]?this[_0x3b99('0x4')][_0x3b99('0x1a')]>_0x55fb9e['authoredAt']?_0x1a5938-0x1:_0x1a5938:_0x1a5938-0x1;}[_0x3b99('0x1')](){if(this[_0x3b99('0x1c')][_0x3b99('0x34')]&&this[_0x3b99('0x1c')][_0x3b99('0x24')]){const _0x36f743={'id':_0x3b99('0xa'),'author':this[_0x3b99('0x1c')][_0x3b99('0x34')],'authoredAt':this[_0x3b99('0x1c')][_0x3b99('0x24')],'content':_0x37979d(this[_0x3b99('0x20')],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this[(_0x3b99('0x2b'))][(_0x3b99('0x11'))](this['locale'],_0x36f743,{'maxCommentCharsWhenCollapsed':this[_0x3b99('0x2b')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x3b99('0x2b')][_0x3b99('0x19')],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this[_0x3b99('0x2d')][_0x3b99('0x26')](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x36f743));}else this[_0x3b99('0x4')]&&(this['commentViews'][_0x3b99('0x5')](this['resolvedCommentView']),this[_0x3b99('0x4')]['destroy'](),this[_0x3b99('0x4')]=null);this[_0x3b99('0x30')]();}[_0x3b99('0x22')](_0x5d0a0e){const _0x475105=this['commentViews']['remove'](_0x5d0a0e['id']);this[_0x3b99('0x2e')](_0x475105),_0x475105[_0x3b99('0x14')]&&this['_updateHasDirtyComment'](),_0x475105['destroy']();}['_updateHasDirtyComment'](){this[_0x3b99('0x2')]=Array[_0x3b99('0x6')](this[_0x3b99('0x2d')])[_0x3b99('0x15')](_0x5442c9=>_0x5442c9[_0x3b99('0x14')]);}[_0x3b99('0x16')](){const _0xa4de6c=function(_0x44f1f6){const _0x476b6a=new _0x3c3c36();for(const _0x4b94aa of _0x44f1f6)_0x476b6a['add'](_0x4b94aa);return _0x476b6a;}(this['commentViews']),_0x5a4bed=this[_0x3b99('0xb')][_0x3b99('0x29')];for(let _0x9d3f8d=0x1;_0x9d3f8d<=_0x5a4bed;_0x9d3f8d++)_0xa4de6c[_0x3b99('0x5')](0x1);for(const _0x117ae7 of _0xa4de6c)_0x117ae7[_0x3b99('0xe')]();_0x5a4bed>0x0&&_0xa4de6c['add'](this['_collapsedCommentsView'],0x1),ss(_0x5cbd42(Array[_0x3b99('0x6')](this[_0x3b99('0x7')]),Array[_0x3b99('0x6')](_0xa4de6c)),this[_0x3b99('0x7')],_0xa4de6c);}[_0x3b99('0x10')](){ss(_0x5cbd42(Array[_0x3b99('0x6')](this[_0x3b99('0x7')]),Array[_0x3b99('0x6')](this['commentViews'])),this[_0x3b99('0x7')],this['commentViews']);for(const _0x4623e7 of this['visibleViews'])_0x4623e7['expand']();}}function ss(_0x27b620,_0x1768ef,_0x4049b3){let _0xbc5a7b=0x0;for(const _0x814dba of _0x27b620)switch(_0x814dba){case _0x3b99('0x17'):_0x1768ef[_0x3b99('0x26')](_0x4049b3['get'](_0xbc5a7b),_0xbc5a7b),_0xbc5a7b++;break;case _0x3b99('0x27'):_0x1768ef[_0x3b99('0x5')](_0xbc5a7b);break;case _0x3b99('0x8'):_0xbc5a7b++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xdebf=['substring','mouseenter','remove','label','_model','isVisible','hasContext','tooltip','context','setTemplate','listenTo','overlay','ck-thread__header','reopenButtonView','length','scrollWidth','Reopen','bindTemplate','isResolvable','ck-context__value','ck-context','offsetWidth','icon','span','isReadOnly','...','execute','reopenCommentThread','querySelector','.ck-context__value','bind','add','value','_attachContextActions','div','mouseleave','isEnabled','.ck-context','Comment\x20was\x20made\x20on\x20an\x20element','render','classList','_createReopenButton','element','lastIndexOf','contextValue','ck-annotation__actions','locale'];(function(_0x2b6de6,_0xdebfc2){const _0x5826e3=function(_0x45b2c5){while(--_0x45b2c5){_0x2b6de6['push'](_0x2b6de6['shift']());}};_0x5826e3(++_0xdebfc2);}(_0xdebf,0x11a));const _0x5826=function(_0x2b6de6,_0xdebfc2){_0x2b6de6=_0x2b6de6-0x0;let _0x5826e3=_0xdebf[_0x2b6de6];return _0x5826e3;};import{View as _0x10945b,ButtonView as _0x5d383b}from'ckeditor5/src/ui';import{getTranslation as _0x3d4896}from'../../../utils/common-translations';import _0x585959 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x10945b{constructor(_0x4895eb,_0x3374e3){super(_0x4895eb);const _0x480772=this[_0x5826('0x11')];this[_0x5826('0x4')]=_0x3374e3,this['reopenButtonView']=this[_0x5826('0x29')](),this[_0x5826('0x1e')](_0x5826('0x6'))['to'](this['_model'],_0x5826('0x8'),_0x1d58c3=>!!_0x1d58c3),this[_0x5826('0x1e')](_0x5826('0x2c'))['to'](this[_0x5826('0x4')],_0x5826('0x8'),_0x2233cf=>_0x2233cf&&_0x2233cf['value']?this['_trimContextValue'](_0x2233cf[_0x5826('0x20')]):_0x3d4896(this[_0x5826('0x2e')],_0x5826('0x26'))),this[_0x5826('0x9')]({'tag':_0x5826('0x22'),'attributes':{'class':[_0x5826('0xc')]},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':_0x5826('0x22'),'attributes':{'class':[_0x5826('0x14'),_0x480772['if'](_0x5826('0x6'),'ck-context--quotes')]},'children':[{'tag':_0x5826('0x17'),'attributes':{'class':[_0x5826('0x13')]},'children':[{'text':_0x480772['to'](_0x5826('0x2c'))}]}]}]},{'tag':_0x5826('0x22'),'attributes':{'class':[_0x5826('0x2d')]},'children':[this[_0x5826('0xd')]]}]});}[_0x5826('0x27')](){super['render'](),this[_0x5826('0x21')]();}[_0x5826('0x29')](){const _0x320916=new _0x5d383b(this[_0x5826('0x2e')]);return _0x320916[_0x5826('0x3')]=_0x3d4896(this[_0x5826('0x2e')],_0x5826('0x10')),_0x320916[_0x5826('0x7')]=_0x3d4896(this[_0x5826('0x2e')],_0x5826('0x10')),_0x320916[_0x5826('0x16')]=_0x585959,_0x320916[_0x5826('0x1e')](_0x5826('0x24'))['to'](this['_model'],_0x5826('0x18'),_0x42669e=>!_0x42669e),_0x320916['bind'](_0x5826('0x5'))['to'](this[_0x5826('0x4')],_0x5826('0x12')),_0x320916['on'](_0x5826('0x1a'),()=>{this['fire'](_0x5826('0x1b'),this[_0x5826('0x4')]['id']);}),_0x320916;}['_trimContextValue'](_0x3c9732){if(_0x3c9732[_0x5826('0xe')]<0x96)return _0x3c9732;const _0xa9243f=_0x3c9732[_0x5826('0x2b')]('\x20',0x93);return _0x3c9732[_0x5826('0x0')](0x0,_0xa9243f>-0x1?_0xa9243f:0x93)+_0x5826('0x19');}[_0x5826('0x21')](){const _0x13b0c1=this[_0x5826('0x2a')][_0x5826('0x1c')](_0x5826('0x25')),_0x3e72e5=_0x13b0c1['querySelector'](_0x5826('0x1d'));this[_0x5826('0xa')](_0x13b0c1,_0x5826('0x1'),()=>{_0x3e72e5[_0x5826('0x15')]<_0x3e72e5[_0x5826('0xf')]&&_0x13b0c1[_0x5826('0x28')][_0x5826('0x1f')](_0x5826('0xb'));}),this[_0x5826('0xa')](_0x13b0c1,_0x5826('0x23'),()=>{_0x13b0c1[_0x5826('0x28')][_0x5826('0x2')](_0x5826('0xb'));});}}
23
+ const _0x3d3a=['isVisible','reopenButtonView','bindTemplate','setTemplate','render','overlay','mouseenter','locale','querySelector','ck-context--quotes','context','isEnabled','length','div','scrollWidth','...','_createReopenButton','_trimContextValue','contextValue','classList','listenTo','reopenCommentThread','add','element','Reopen','isReadOnly','lastIndexOf','hasContext','ck-annotation__actions','value','_attachContextActions','bind','.ck-context','ck-context-wrapper','tooltip','fire','execute','label','span','_model','substring','offsetWidth'];(function(_0x607b9b,_0x3d3a23){const _0xa14041=function(_0x254655){while(--_0x254655){_0x607b9b['push'](_0x607b9b['shift']());}};_0xa14041(++_0x3d3a23);}(_0x3d3a,0x7d));const _0xa140=function(_0x607b9b,_0x3d3a23){_0x607b9b=_0x607b9b-0x0;let _0xa14041=_0x3d3a[_0x607b9b];return _0xa14041;};import{View as _0x569b7e,ButtonView as _0x9773d6}from'ckeditor5/src/ui';import{getTranslation as _0x2f6f8f}from'../../../utils/common-translations';import _0x1b8ee5 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x569b7e{constructor(_0x49f0b5,_0x5da88f){super(_0x49f0b5);const _0xfb188=this[_0xa140('0x3')];this['_model']=_0x5da88f,this['reopenButtonView']=this[_0xa140('0x11')](),this['bind'](_0xa140('0x1c'))['to'](this[_0xa140('0x28')],_0xa140('0xb'),_0x38e191=>!!_0x38e191),this['bind']('contextValue')['to'](this['_model'],_0xa140('0xb'),_0xebe11=>_0xebe11&&_0xebe11[_0xa140('0x1e')]?this[_0xa140('0x12')](_0xebe11[_0xa140('0x1e')]):_0x2f6f8f(this[_0xa140('0x8')],'Comment\x20was\x20made\x20on\x20an\x20element')),this[_0xa140('0x4')]({'tag':_0xa140('0xe'),'attributes':{'class':['ck-thread__header']},'children':[{'tag':_0xa140('0xe'),'attributes':{'class':[_0xa140('0x22')]},'children':[{'tag':'div','attributes':{'class':['ck-context',_0xfb188['if']('hasContext',_0xa140('0xa'))]},'children':[{'tag':_0xa140('0x27'),'attributes':{'class':['ck-context__value']},'children':[{'text':_0xfb188['to'](_0xa140('0x13'))}]}]}]},{'tag':_0xa140('0xe'),'attributes':{'class':[_0xa140('0x1d')]},'children':[this[_0xa140('0x2')]]}]});}[_0xa140('0x5')](){super['render'](),this[_0xa140('0x1f')]();}['_createReopenButton'](){const _0x5f3451=new _0x9773d6(this[_0xa140('0x8')]);return _0x5f3451[_0xa140('0x26')]=_0x2f6f8f(this[_0xa140('0x8')],_0xa140('0x19')),_0x5f3451[_0xa140('0x23')]=_0x2f6f8f(this[_0xa140('0x8')],_0xa140('0x19')),_0x5f3451['icon']=_0x1b8ee5,_0x5f3451[_0xa140('0x20')](_0xa140('0xc'))['to'](this[_0xa140('0x28')],_0xa140('0x1a'),_0x4f125e=>!_0x4f125e),_0x5f3451[_0xa140('0x20')](_0xa140('0x1'))['to'](this[_0xa140('0x28')],'isResolvable'),_0x5f3451['on'](_0xa140('0x25'),()=>{this[_0xa140('0x24')](_0xa140('0x16'),this[_0xa140('0x28')]['id']);}),_0x5f3451;}[_0xa140('0x12')](_0x294ac3){if(_0x294ac3[_0xa140('0xd')]<0x96)return _0x294ac3;const _0x20b63a=_0x294ac3[_0xa140('0x1b')]('\x20',0x93);return _0x294ac3[_0xa140('0x29')](0x0,_0x20b63a>-0x1?_0x20b63a:0x93)+_0xa140('0x10');}['_attachContextActions'](){const _0x198199=this[_0xa140('0x18')][_0xa140('0x9')](_0xa140('0x21')),_0x527be1=_0x198199['querySelector']('.ck-context__value');this['listenTo'](_0x198199,_0xa140('0x7'),()=>{_0x527be1[_0xa140('0x0')]<_0x527be1[_0xa140('0xf')]&&_0x198199[_0xa140('0x14')][_0xa140('0x17')]('overlay');}),this[_0xa140('0x15')](_0x198199,'mouseleave',()=>{_0x198199[_0xa140('0x14')]['remove'](_0xa140('0x6'));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2a6e=['commentInputView','userView','ck-thread__input','delegate','focusTracker','bind','showButtons','editor','isFocused','destroy','set','div','setTemplate','createEditor','editorReady','ck-comment__input-container','ck-comment__input-container--active','extendTemplate','bindTemplate','ck-thread__user','showInput'];(function(_0x144d7b,_0x2a6eb9){var _0x2d85cb=function(_0x56ab52){while(--_0x56ab52){_0x144d7b['push'](_0x144d7b['shift']());}};_0x2d85cb(++_0x2a6eb9);}(_0x2a6e,0xb9));var _0x2d85=function(_0x144d7b,_0x2a6eb9){_0x144d7b=_0x144d7b-0x0;var _0x2d85cb=_0x2a6e[_0x144d7b];return _0x2d85cb;};import{View as _0x32960a}from'ckeditor5/src/ui';import _0x580964 from'./commentinputview';import{UserView as _0x10ab5a}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x32960a{constructor(_0x1a78e0,_0x14b769,_0x1c4f74){super(_0x1a78e0),this['commentInputView']=new _0x580964(_0x1a78e0,_0x1c4f74),this[_0x2d85('0x4')][_0x2d85('0x9')](_0x2d85('0xa'))['to'](this['commentInputView'][_0x2d85('0x8')],_0x2d85('0xc'),this[_0x2d85('0x4')],'value',(_0x48e8c0,_0x2acce1)=>_0x48e8c0||!!_0x2acce1),this[_0x2d85('0xe')](_0x2d85('0x3'),!0x1),this['on']('change:showInput',()=>{this[_0x2d85('0x3')]&&!this[_0x2d85('0x4')][_0x2d85('0xb')]&&this[_0x2d85('0x4')][_0x2d85('0x11')]();}),this[_0x2d85('0x4')][_0x2d85('0x7')](_0x2d85('0x12'))['to'](this),this[_0x2d85('0x4')]['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x10ab5a(_0x1a78e0,_0x14b769),this['userView'][_0x2d85('0x0')]({'attributes':{'class':_0x2d85('0x2')}}),this['commentInputView'][_0x2d85('0x0')]({'attributes':{'class':_0x2d85('0x6')}}),this[_0x2d85('0x10')]({'tag':_0x2d85('0xf'),'attributes':{'class':[_0x2d85('0x13'),this[_0x2d85('0x1')]['if'](_0x2d85('0x3'),_0x2d85('0x14'))]},'children':[this[_0x2d85('0x5')],this[_0x2d85('0x4')]]});}[_0x2d85('0xd')](){return this[_0x2d85('0x4')][_0x2d85('0xd')]()['then'](()=>super[_0x2d85('0xd')]());}}
23
+ var _0xbec9=['div','editorReady','then','showButtons','bind','delegate','bindTemplate','value','userView','editorDestroyed','setTemplate','destroy','ck-thread__user','extendTemplate','ck-comment__input-container','focusTracker','showInput','commentInputView'];(function(_0xf638d,_0xbec9f2){var _0x30fbca=function(_0x224190){while(--_0x224190){_0xf638d['push'](_0xf638d['shift']());}};_0x30fbca(++_0xbec9f2);}(_0xbec9,0x68));var _0x30fb=function(_0xf638d,_0xbec9f2){_0xf638d=_0xf638d-0x0;var _0x30fbca=_0xbec9[_0xf638d];return _0x30fbca;};import{View as _0x40f3d4}from'ckeditor5/src/ui';import _0xb458cf from'./commentinputview';import{UserView as _0x12880b}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x40f3d4{constructor(_0x3057e2,_0xda1be2,_0x40941c){super(_0x3057e2),this[_0x30fb('0x3')]=new _0xb458cf(_0x3057e2,_0x40941c),this[_0x30fb('0x3')][_0x30fb('0x8')](_0x30fb('0x7'))['to'](this[_0x30fb('0x3')][_0x30fb('0x1')],'isFocused',this['commentInputView'],_0x30fb('0xb'),(_0xd42faa,_0x510999)=>_0xd42faa||!!_0x510999),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this[_0x30fb('0x2')]&&!this[_0x30fb('0x3')]['editor']&&this[_0x30fb('0x3')]['createEditor']();}),this[_0x30fb('0x3')][_0x30fb('0x9')](_0x30fb('0x5'))['to'](this),this[_0x30fb('0x3')][_0x30fb('0x9')](_0x30fb('0xd'))['to'](this),this[_0x30fb('0xc')]=new _0x12880b(_0x3057e2,_0xda1be2),this[_0x30fb('0xc')][_0x30fb('0x11')]({'attributes':{'class':_0x30fb('0x10')}}),this[_0x30fb('0x3')][_0x30fb('0x11')]({'attributes':{'class':'ck-thread__input'}}),this[_0x30fb('0xe')]({'tag':_0x30fb('0x4'),'attributes':{'class':[_0x30fb('0x0'),this[_0x30fb('0xa')]['if']('showInput','ck-comment__input-container--active')]},'children':[this[_0x30fb('0xc')],this['commentInputView']]});}['destroy'](){return this['commentInputView'][_0x30fb('0xf')]()[_0x30fb('0x6')](()=>super['destroy']());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b1a=['remove','Write\x20a\x20comment...','resolveButton','isReadOnly','createCollection','_model','tooltip','isResolved','commentsListView','.ck-thread__container','locale','check','getTemplate','containerElement','icon','commentViews','change:isResolved','change:isActive','stop','commentThreadChildren','actionBar','isResolvable','div','ck-comment--resolve','ck-thread__container','removeButton','actionIndicator','removeCommentThread','resolveCommentThread','commentThreadHeaderView','_cancelAllConfirms','_boundFirstCommentView','showConfirm','Resolve','add','isActive','bind','cancelConfirm','_bindFirstCommentView','length','high','execute','_createResolveButton','setTemplate','Delete\x20comment\x20thread?','isEnabled','then','listenTo','element','fire'];(function(_0x17edac,_0x3b1aae){const _0x24b41c=function(_0x1bcdd1){while(--_0x1bcdd1){_0x17edac['push'](_0x17edac['shift']());}};_0x24b41c(++_0x3b1aae);}(_0x3b1a,0xc8));const _0x24b4=function(_0x17edac,_0x3b1aae){_0x17edac=_0x17edac-0x0;let _0x24b41c=_0x3b1a[_0x17edac];return _0x24b41c;};import{ConfirmMixin as _0x2b402b}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x5568d5}from'ckeditor5/src/ui';import{icons as _0x19feaf}from'ckeditor5/src/core';import _0x232e7a from'./basecommentthreadview';import{getTranslation as _0x23cf98}from'../../../utils/common-translations';export default class lt extends _0x2b402b(_0x232e7a){constructor(_0x26b4e9,_0x23e4da,_0x2065a9,_0x139f9b){super(_0x26b4e9,_0x23e4da,_0x2065a9,_0x139f9b),this[_0x24b4('0x13')]=this[_0x24b4('0x4')](),this[_0x24b4('0x13')]['addMany']([this['commentsListView'],this['commentThreadInputView']]),this['_model'][_0x24b4('0x7')]&&this[_0x24b4('0x13')][_0x24b4('0x22')](this[_0x24b4('0x1d')],0x0),this[_0x24b4('0x5')]['on'](_0x24b4('0x10'),(_0x315884,_0x12b073,_0x4fecbb)=>{_0x4fecbb?this['commentThreadChildren'][_0x24b4('0x22')](this[_0x24b4('0x1d')],0x0):this[_0x24b4('0x13')]['remove'](this['commentThreadHeaderView']);}),this['set'](_0x24b4('0x1a'),null),this[_0x24b4('0xd')]=null,this[_0x24b4('0x1f')]=null,this[_0x24b4('0xa')]=_0x26b4e9,this[_0x24b4('0x2')]=this['_createResolveButton'](),this[_0x24b4('0x2b')](this[_0x24b4('0xc')]()),this['on'](_0x24b4('0x11'),(_0x3bf825,_0x288c59,_0x431818)=>{_0x431818||this[_0x24b4('0x1e')]();}),this[_0x24b4('0x2f')](this[_0x24b4('0x5')],'change:isReadOnly',(_0x4762df,_0x178759,_0x23caf2)=>{_0x23caf2&&this['_cancelAllConfirms']();}),this[_0x24b4('0x27')]>0x0&&this[_0x24b4('0x26')](),this[_0x24b4('0x2f')](this['commentsListView'][_0x24b4('0xf')],_0x24b4('0x22'),()=>{this[_0x24b4('0x26')]();});}[_0x24b4('0xc')](){const _0x25385e=this['bindTemplate'];return{'tag':_0x24b4('0x16'),'attributes':{'class':['ck-thread','ck-reset_all-excluded',_0x25385e['if'](_0x24b4('0x23'),'ck-thread--active'),_0x25385e['if']('isConfirm','ck-thread--remove-confirmation'),_0x25385e['to'](_0x24b4('0x1a'),_0x1b1ffb=>_0x1b1ffb?'ck-thread--'+_0x1b1ffb:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':_0x24b4('0x16'),'attributes':{'class':_0x24b4('0x18')},'children':this[_0x24b4('0x13')]}]};}['render'](){super['render'](),this[_0x24b4('0xd')]=this[_0x24b4('0x30')]['querySelector'](_0x24b4('0x9'));}[_0x24b4('0x1e')](){this['cancelConfirm']();for(const _0x3bc022 of this[_0x24b4('0x8')][_0x24b4('0xf')])_0x3bc022[_0x24b4('0x25')]();}[_0x24b4('0x26')](){const {locale:_0x2784b8}=this,_0x5a4a7f=this['commentsListView'][_0x24b4('0xf')]['get'](0x0);_0x5a4a7f===this['_boundFirstCommentView']||_0x5a4a7f['isSystemComment']||(this['_boundFirstCommentView']=_0x5a4a7f,this['unbind'](_0x24b4('0x1a')),this[_0x24b4('0x24')](_0x24b4('0x1a'))['to'](_0x5a4a7f,_0x24b4('0x1a'),_0x14472b=>_0x24b4('0x0')===_0x14472b?'remove':null),_0x5a4a7f['placeholder']=_0x23cf98(_0x2784b8,_0x24b4('0x1')),_0x5a4a7f[_0x24b4('0x19')]['on'](_0x24b4('0x29'),_0xa16824=>{_0xa16824[_0x24b4('0x12')](),this[_0x24b4('0x20')](_0x23cf98(_0x2784b8,_0x24b4('0x2c')),this['containerElement'])[_0x24b4('0x2e')](()=>{this['fire'](_0x24b4('0x1b'));});},{'priority':_0x24b4('0x28')}),_0x5a4a7f[_0x24b4('0x14')][_0x24b4('0x22')](this[_0x24b4('0x2')],0x0));}[_0x24b4('0x2a')](){const _0x5e7714=new _0x5568d5(this[_0x24b4('0xa')]);return _0x5e7714['label']=_0x23cf98(this[_0x24b4('0xa')],_0x24b4('0x21')),_0x5e7714[_0x24b4('0x6')]=_0x23cf98(this[_0x24b4('0xa')],_0x24b4('0x21')),_0x5e7714[_0x24b4('0xe')]=_0x19feaf[_0x24b4('0xb')],_0x5e7714['extendTemplate']({'attributes':{'class':_0x24b4('0x17')}}),_0x5e7714[_0x24b4('0x24')](_0x24b4('0x2d'))['to'](this[_0x24b4('0x5')],_0x24b4('0x3'),_0x31d67c=>!_0x31d67c),_0x5e7714['bind']('isVisible')['to'](this['_model'],_0x24b4('0x15'),this[_0x24b4('0x5')],_0x24b4('0x7'),(_0x186ba4,_0x29a92f)=>_0x186ba4&&!_0x29a92f),_0x5e7714['on']('execute',()=>{this[_0x24b4('0x31')](_0x24b4('0x1c'),this['_model']['id']);}),_0x5e7714;}}
23
+ const _0x3e11=['extendTemplate','element','commentViews','then','fire','execute','add','ck-thread__container','isSystemComment','showConfirm','commentsListView','actionBar','render','bind','removeButton','div','isResolved','tooltip','addMany','.ck-thread__container','resolveButton','cancelConfirm','createCollection','remove','isActive','ck-thread--active','stop','locale','check','getTemplate','listenTo','commentThreadInputView','_cancelAllConfirms','commentThreadChildren','get','querySelector','ck-comment--resolve','isReadOnly','Delete\x20comment\x20thread?','_model','change:isResolved','ck-thread--','isConfirm','containerElement','_boundFirstCommentView','bindTemplate','set','commentThreadHeaderView','change:isActive','setTemplate','ck-reset_all-excluded','removeCommentThread','_createResolveButton','Resolve','high','actionIndicator','resolveCommentThread','unbind','change:isReadOnly','_bindFirstCommentView','isResolvable'];(function(_0x116a89,_0x3e1172){const _0x40a031=function(_0x1da24f){while(--_0x1da24f){_0x116a89['push'](_0x116a89['shift']());}};_0x40a031(++_0x3e1172);}(_0x3e11,0xad));const _0x40a0=function(_0x116a89,_0x3e1172){_0x116a89=_0x116a89-0x0;let _0x40a031=_0x3e11[_0x116a89];return _0x40a031;};import{ConfirmMixin as _0x1e808d}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x74f749}from'ckeditor5/src/ui';import{icons as _0x30c860}from'ckeditor5/src/core';import _0x51a2d6 from'./basecommentthreadview';import{getTranslation as _0x32f0e1}from'../../../utils/common-translations';export default class lt extends _0x1e808d(_0x51a2d6){constructor(_0x8b37c5,_0x4719ea,_0x22f749,_0x4812c6){super(_0x8b37c5,_0x4719ea,_0x22f749,_0x4812c6),this[_0x40a0('0x2b')]=this[_0x40a0('0x20')](),this[_0x40a0('0x2b')][_0x40a0('0x1c')]([this[_0x40a0('0x14')],this[_0x40a0('0x29')]]),this[_0x40a0('0x31')][_0x40a0('0x1a')]&&this[_0x40a0('0x2b')][_0x40a0('0x10')](this[_0x40a0('0x39')],0x0),this[_0x40a0('0x31')]['on'](_0x40a0('0x32'),(_0x34d581,_0x81fea3,_0x4bf8af)=>{_0x4bf8af?this[_0x40a0('0x2b')][_0x40a0('0x10')](this[_0x40a0('0x39')],0x0):this['commentThreadChildren'][_0x40a0('0x21')](this[_0x40a0('0x39')]);}),this[_0x40a0('0x38')](_0x40a0('0x4'),null),this[_0x40a0('0x35')]=null,this[_0x40a0('0x36')]=null,this[_0x40a0('0x25')]=_0x8b37c5,this['resolveButton']=this[_0x40a0('0x1')](),this[_0x40a0('0x3b')](this[_0x40a0('0x27')]()),this['on'](_0x40a0('0x3a'),(_0x10c849,_0x38cb18,_0x40ec26)=>{_0x40ec26||this['_cancelAllConfirms']();}),this[_0x40a0('0x28')](this[_0x40a0('0x31')],_0x40a0('0x7'),(_0x3c5a81,_0x3d373f,_0x2266c2)=>{_0x2266c2&&this['_cancelAllConfirms']();}),this['length']>0x0&&this[_0x40a0('0x8')](),this[_0x40a0('0x28')](this[_0x40a0('0x14')][_0x40a0('0xc')],_0x40a0('0x10'),()=>{this[_0x40a0('0x8')]();});}['getTemplate'](){const _0x3af9dc=this[_0x40a0('0x37')];return{'tag':_0x40a0('0x19'),'attributes':{'class':['ck-thread',_0x40a0('0x3c'),_0x3af9dc['if'](_0x40a0('0x22'),_0x40a0('0x23')),_0x3af9dc['if'](_0x40a0('0x34'),'ck-thread--remove-confirmation'),_0x3af9dc['to'](_0x40a0('0x4'),_0x5b8586=>_0x5b8586?_0x40a0('0x33')+_0x5b8586:'')],'data-thread-id':this[_0x40a0('0x31')]['id'],'tabindex':-0x1},'children':[{'tag':_0x40a0('0x19'),'attributes':{'class':_0x40a0('0x11')},'children':this[_0x40a0('0x2b')]}]};}[_0x40a0('0x16')](){super[_0x40a0('0x16')](),this['containerElement']=this[_0x40a0('0xb')][_0x40a0('0x2d')](_0x40a0('0x1d'));}[_0x40a0('0x2a')](){this[_0x40a0('0x1f')]();for(const _0x1fe7c1 of this[_0x40a0('0x14')]['commentViews'])_0x1fe7c1['cancelConfirm']();}[_0x40a0('0x8')](){const {locale:_0x1b0da5}=this,_0x5b56ae=this['commentsListView']['commentViews'][_0x40a0('0x2c')](0x0);_0x5b56ae===this[_0x40a0('0x36')]||_0x5b56ae[_0x40a0('0x12')]||(this[_0x40a0('0x36')]=_0x5b56ae,this[_0x40a0('0x6')](_0x40a0('0x4')),this[_0x40a0('0x17')](_0x40a0('0x4'))['to'](_0x5b56ae,_0x40a0('0x4'),_0x2a5ae4=>'remove'===_0x2a5ae4?_0x40a0('0x21'):null),_0x5b56ae['placeholder']=_0x32f0e1(_0x1b0da5,'Write\x20a\x20comment...'),_0x5b56ae[_0x40a0('0x18')]['on'](_0x40a0('0xf'),_0x45a76f=>{_0x45a76f[_0x40a0('0x24')](),this[_0x40a0('0x13')](_0x32f0e1(_0x1b0da5,_0x40a0('0x30')),this[_0x40a0('0x35')])[_0x40a0('0xd')](()=>{this['fire'](_0x40a0('0x0'));});},{'priority':_0x40a0('0x3')}),_0x5b56ae[_0x40a0('0x15')][_0x40a0('0x10')](this[_0x40a0('0x1e')],0x0));}[_0x40a0('0x1')](){const _0x3f8a2b=new _0x74f749(this[_0x40a0('0x25')]);return _0x3f8a2b['label']=_0x32f0e1(this[_0x40a0('0x25')],_0x40a0('0x2')),_0x3f8a2b[_0x40a0('0x1b')]=_0x32f0e1(this[_0x40a0('0x25')],_0x40a0('0x2')),_0x3f8a2b['icon']=_0x30c860[_0x40a0('0x26')],_0x3f8a2b[_0x40a0('0xa')]({'attributes':{'class':_0x40a0('0x2e')}}),_0x3f8a2b[_0x40a0('0x17')]('isEnabled')['to'](this[_0x40a0('0x31')],_0x40a0('0x2f'),_0x442bd9=>!_0x442bd9),_0x3f8a2b[_0x40a0('0x17')]('isVisible')['to'](this[_0x40a0('0x31')],_0x40a0('0x9'),this['_model'],_0x40a0('0x1a'),(_0x4949d0,_0x23063a)=>_0x4949d0&&!_0x23063a),_0x3f8a2b['on']('execute',()=>{this[_0x40a0('0xe')](_0x40a0('0x5'),this[_0x40a0('0x31')]['id']);}),_0x3f8a2b;}}