@ckeditor/ckeditor5-comments 39.0.0 → 39.0.1

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 (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
@@ -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 _0x1f6f=['addCommentThread','plugins','execute','config','map','importWord','commands','collaboration_features','_handleImportedData','collaboration.channelId','afterInit','forEach','get','editor','importWord.commentsStyles'];(function(_0x22668c,_0x1f6f17){const _0x1b7d62=function(_0x5292cb){while(--_0x5292cb){_0x22668c['push'](_0x22668c['shift']());}};_0x1b7d62(++_0x1f6f17);}(_0x1f6f,0xf4));const _0x1b7d=function(_0x22668c,_0x1f6f17){_0x22668c=_0x22668c-0x0;let _0x1b7d62=_0x1f6f[_0x22668c];return _0x1b7d62;};import{Plugin as _0x248ac5}from'ckeditor5/src/core';import{priorities as _0x43f8af}from'ckeditor5/src/utils';import{Users as _0x2a177d}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a8b5b from'../commentsrepository';export default class Y extends _0x248ac5{constructor(_0x31e8ad){super(_0x31e8ad),this['editor'][_0x1b7d('0xe')]['define'](_0x1b7d('0xa'),'basic');}[_0x1b7d('0x6')](){const _0x142e28=this[_0x1b7d('0x9')],_0x591434=_0x142e28[_0x1b7d('0x2')][_0x1b7d('0x8')]('importWord'),_0x5e5ad5=_0x142e28[_0x1b7d('0xc')][_0x1b7d('0x8')](_0x2a177d);_0x591434&&(_0x591434['on'](_0x1b7d('0xd'),(_0x35632f,[,_0x5a9d8e])=>{_0x5a9d8e[_0x1b7d('0x3')]={'comments':!0x0,'user_id':_0x5e5ad5['me']['id'],'comments_styles':this[_0x1b7d('0x9')][_0x1b7d('0xe')]['get'](_0x1b7d('0xa'))};},{'priority':_0x43f8af['high']+0xa}),this['listenTo'](_0x591434,'dataInsert',this[_0x1b7d('0x4')]));}[_0x1b7d('0x4')](_0x326eb0,_0x147e06){const {comment_threads:_0x1b6f5c}=_0x147e06;_0x1b6f5c&&_0x1b6f5c[_0x1b7d('0x7')](({thread_id:_0x2e93aa,comments:_0x45b52a,is_resolved:_0x4ad6a5})=>{const _0x1476a1=new Date(),_0x4932fb=_0x45b52a[_0x1b7d('0x0')](({author:_0x209896,content:_0x38be1b,created_at:_0xd11ec4})=>({'content':_0x38be1b,'authorId':this[_0x1b7d('0x9')]['plugins'][_0x1b7d('0x8')](_0x2a177d)['me']['id'],'createdAt':_0x1476a1,'attributes':{'@external':{'authorName':_0x209896,'createdAt':_0xd11ec4?new Date(_0xd11ec4):new Date(),'source':_0x1b7d('0x1')}}})),_0x304be9=this['editor']['config'][_0x1b7d('0x8')](_0x1b7d('0x5'));this[_0x1b7d('0x9')][_0x1b7d('0xc')][_0x1b7d('0x8')](_0x3a8b5b)[_0x1b7d('0xb')]({'channelId':_0x304be9,'threadId':_0x2e93aa,'comments':_0x4932fb,'resolvedAt':_0x4ad6a5?_0x1476a1: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 _0x1a0a=['name','create','model','initialData','defaultPlugins','destroy','document','set','config','childCount','end','change','placeholderElement','change:placeholder','setSelection','_updatePlaceholder','then','init','get','assign','getChild','editing','view','createRoot','focus','low','getRoot','ready','initPlugins','plugins','data','fire','placeholder'];(function(_0x429827,_0x1a0adc){const _0x433f1d=function(_0x1f89e0){while(--_0x1f89e0){_0x429827['push'](_0x429827['shift']());}};_0x433f1d(++_0x1a0adc);}(_0x1a0a,0x17c));const _0x433f=function(_0x429827,_0x1a0adc){_0x429827=_0x429827-0x0;let _0x433f1d=_0x1a0a[_0x429827];return _0x433f1d;};import{Editor as _0x69c584,DataApiMixin as _0x3a3a65}from'ckeditor5/src/core';import _0x3b82a6 from'./commenteditorui';import{ObservableMixin as _0x290df3}from'ckeditor5/src/utils';import{enablePlaceholder as _0x4dd525,disablePlaceholder as _0xea7753}from'ckeditor5/src/engine';import{Clipboard as _0x4cf5a3}from'ckeditor5/src/clipboard';import{Enter as _0x5ada5b,ShiftEnter as _0x5d2244}from'ckeditor5/src/enter';import{SelectAll as _0x445eed}from'ckeditor5/src/select-all';import{Typing as _0x195d44}from'ckeditor5/src/typing';import{Undo as _0x14d8b2}from'ckeditor5/src/undo';import{Paragraph as _0x43b608}from'ckeditor5/src/paragraph';const Kt=[_0x4cf5a3,_0x5ada5b,_0x5d2244,_0x445eed,_0x195d44,_0x14d8b2,_0x43b608];export default class Lt extends _0x290df3(_0x3a3a65(_0x69c584)){constructor(_0x37ac08={}){(_0x37ac08=Object[_0x433f('0x2')]({},_0x37ac08))[_0x433f('0xc')]||(_0x37ac08[_0x433f('0xc')]=Lt['defaultPlugins']),super(_0x37ac08),this['ui']=new _0x3b82a6(this),this[_0x433f('0x17')](_0x433f('0xf'),''),this[_0x433f('0x12')]['document']['on']('change',()=>this[_0x433f('0x1f')](),{'priority':_0x433f('0x8')}),this['on'](_0x433f('0x1d'),()=>this[_0x433f('0x1f')]()),this['model']['document'][_0x433f('0x6')]();}[_0x433f('0x11')](){const _0x421c3a=this[_0x433f('0x18')][_0x433f('0x1')](_0x433f('0x13'))||'';return this[_0x433f('0xb')]()[_0x433f('0x20')](()=>this['ui'][_0x433f('0x0')]())['then'](()=>this[_0x433f('0xd')][_0x433f('0x0')](_0x421c3a))[_0x433f('0x20')](()=>this[_0x433f('0xe')](_0x433f('0xa')));}[_0x433f('0x15')](){return super[_0x433f('0x15')]()[_0x433f('0x20')](()=>this['ui'][_0x433f('0x15')]());}[_0x433f('0x7')](){this[_0x433f('0x12')][_0x433f('0x1b')](_0x4c8432=>{const _0x1e141d=this['model'][_0x433f('0x16')][_0x433f('0x9')](),_0x34237e=_0x1e141d&&_0x1e141d[_0x433f('0x3')](_0x1e141d[_0x433f('0x19')]-0x1);_0x4c8432[_0x433f('0x1e')](_0x34237e,_0x433f('0x1a')),this[_0x433f('0x4')][_0x433f('0x5')][_0x433f('0x7')]();});}[_0x433f('0x1f')](){const _0x4759e6=this['editing']['view'],_0x5b1011=_0x4759e6[_0x433f('0x16')][_0x433f('0x9')](),_0x2e6e3a=_0x5b1011[_0x433f('0x3')](0x0);_0x5b1011[_0x433f('0x19')]>0x1||!_0x2e6e3a||'p'!=_0x2e6e3a[_0x433f('0x10')]?this['placeholderElement']&&this['placeholderElement'][_0x433f('0xf')]&&(_0xea7753(_0x4759e6,this[_0x433f('0x1c')]),this[_0x433f('0x1c')]=void 0x0):(this[_0x433f('0xf')]&&(_0x2e6e3a[_0x433f('0xf')]=this['placeholder']),_0x4dd525({'view':_0x4759e6,'element':_0x2e6e3a,'keepOnFocus':!0x0}),this[_0x433f('0x1c')]=_0x2e6e3a);}}Lt[_0x433f('0x14')]=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 _0x3d19=['destroy','view','locale','bind','name','editor','getRoot','focusTracker','render','document','fire','attachDomRoot','setEditableElement','isFocused','editable','ready','editing','element'];(function(_0x5aa63d,_0x3d19b6){const _0x2e8eed=function(_0x3cd800){while(--_0x3cd800){_0x5aa63d['push'](_0x5aa63d['shift']());}};_0x2e8eed(++_0x3d19b6);}(_0x3d19,0x1e1));const _0x2e8e=function(_0x5aa63d,_0x3d19b6){_0x5aa63d=_0x5aa63d-0x0;let _0x2e8eed=_0x3d19[_0x5aa63d];return _0x2e8eed;};import{EditorUI as _0x19b5b2}from'ckeditor5/src/ui';import _0xab86db from'./commenteditoruiview';export default class jt extends _0x19b5b2{constructor(_0x1ab263){super(_0x1ab263),this[_0x2e8e('0x6')]=new _0xab86db(_0x1ab263[_0x2e8e('0x7')],_0x1ab263[_0x2e8e('0x3')][_0x2e8e('0x6')]);}get[_0x2e8e('0x4')](){return this[_0x2e8e('0x6')]['element'];}['init'](){const _0xb08dd9=this[_0x2e8e('0xa')][_0x2e8e('0x3')][_0x2e8e('0x6')],_0xbb29bc=this[_0x2e8e('0x6')][_0x2e8e('0x1')],_0x1d250b=_0xb08dd9[_0x2e8e('0xe')][_0x2e8e('0xb')]();_0xbb29bc[_0x2e8e('0x9')]=_0x1d250b['rootName'],this[_0x2e8e('0x6')][_0x2e8e('0xd')]();const _0x357e17=_0xbb29bc[_0x2e8e('0x4')];this[_0x2e8e('0x11')](_0xbb29bc[_0x2e8e('0x9')],_0x357e17),this[_0x2e8e('0x6')][_0x2e8e('0x1')][_0x2e8e('0x8')](_0x2e8e('0x0'))['to'](this[_0x2e8e('0xc')]),_0xb08dd9[_0x2e8e('0x10')](_0x357e17),this[_0x2e8e('0xf')](_0x2e8e('0x2'));}[_0x2e8e('0x5')](){super['destroy'](),this['view'][_0x2e8e('0x5')]();}}
@@ -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 _0x26b6=['uiLanguage','add','div','editable','ck-reset','ck-comment__input','main','focus','_voiceLabelView','element','presentation','ck-editor__main','cke-editor__aria-label_','text','ck-rounded-corners','setTemplate','render'];(function(_0xf0b522,_0x26b610){const _0x1cdf41=function(_0x1c182c){while(--_0x1c182c){_0xf0b522['push'](_0xf0b522['shift']());}};_0x1cdf41(++_0x26b610);}(_0x26b6,0xa3));const _0x1cdf=function(_0xf0b522,_0x26b610){_0xf0b522=_0xf0b522-0x0;let _0x1cdf41=_0x26b6[_0xf0b522];return _0x1cdf41;};import{InlineEditableUIView as _0x2c8d9e,EditorUIView as _0x81bdf3,LabelView as _0x54527e}from'ckeditor5/src/ui';import{uid as _0x1dd437}from'ckeditor5/src/utils';import{getTranslation as _0xc37eeb}from'../../../utils/common-translations';export default class Nt extends _0x81bdf3{constructor(_0x1a9c50,_0x113df1){super(_0x1a9c50);const _0x5a4eb0=_0x1dd437();this['main']=this['createCollection'](),this[_0x1cdf('0xa')]=new _0x2c8d9e(_0x1a9c50,_0x113df1),this['_voiceLabelView']=this['_createVoiceLabel'](_0x5a4eb0,_0x1a9c50),this[_0x1cdf('0x5')]({'tag':'div','attributes':{'class':[_0x1cdf('0xb'),'ck-editor',_0x1cdf('0x4'),_0x1cdf('0xc')],'role':'comment','dir':_0x1a9c50['uiLanguageDirection'],'lang':_0x1a9c50[_0x1cdf('0x7')],'aria-labelledby':_0x1cdf('0x2')+_0x5a4eb0},'children':[this[_0x1cdf('0xf')],{'tag':_0x1cdf('0x9'),'attributes':{'class':_0x1cdf('0x1'),'role':_0x1cdf('0x0')},'children':this[_0x1cdf('0xd')]}]});}[_0x1cdf('0x6')](){super[_0x1cdf('0x6')](),this['main'][_0x1cdf('0x8')](this['editable']);}[_0x1cdf('0xe')](){this[_0x1cdf('0xa')][_0x1cdf('0x10')]['focus']();}['_createVoiceLabel'](_0x3ad84a,_0x471be1){const _0x2848ac=new _0x54527e();return _0x2848ac[_0x1cdf('0x3')]=_0xc37eeb(_0x471be1,'Comment\x20editor'),_0x2848ac['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x3ad84a,'class':'ck-voice-label'}}),_0x2848ac;}}
@@ -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 _0x1db5=['_isAttached','resolveCommentThread','_localUser','addComment','reopenCommentThread','updateComment','resolve','view','listenTo','submitCommentThread','remove','getComment','reopen','model','stopListening','removeComment','destroy','isResolved','submit'];(function(_0xcd4274,_0x1db5b6){var _0x3616d5=function(_0x3037f5){while(--_0x3037f5){_0xcd4274['push'](_0xcd4274['shift']());}};_0x3616d5(++_0x1db5b6);}(_0x1db5,0x99));var _0x3616=function(_0xcd4274,_0x1db5b6){_0xcd4274=_0xcd4274-0x0;var _0x3616d5=_0x1db5[_0xcd4274];return _0x3616d5;};import{ObservableMixin as _0x2fea9f}from'ckeditor5/src/utils';export default class ct extends _0x2fea9f(){constructor(_0x158cae,_0x477577){super(),this[_0x3616('0xc')]=_0x158cae,this[_0x3616('0xc')]['_isAttached']=!0x0,this[_0x3616('0x6')]=_0x477577,this[_0x3616('0x7')](_0x477577,_0x3616('0x8'),()=>this['submit']()),this[_0x3616('0x7')](_0x477577,'removeCommentThread',()=>this[_0x3616('0x9')]()),this[_0x3616('0x7')](_0x477577,_0x3616('0x0'),()=>this[_0x3616('0x5')]()),this[_0x3616('0x7')](_0x477577,_0x3616('0x3'),()=>this[_0x3616('0xb')]()),this[_0x3616('0x7')](_0x477577,'addComment',(_0x372337,_0x128da9)=>this[_0x3616('0x2')](_0x128da9)),this[_0x3616('0x7')](_0x477577,'updateComment',(_0x138e99,_0x8d7f32,_0x462d8e)=>this['updateComment'](_0x8d7f32,_0x462d8e)),this[_0x3616('0x7')](_0x477577,_0x3616('0xe'),(_0x308ba2,_0x57f915)=>this['removeComment'](_0x57f915));}[_0x3616('0x11')](){this[_0x3616('0xc')]['submit']();}[_0x3616('0x9')](){this[_0x3616('0xc')]['remove']();}[_0x3616('0x5')](){this['model'][_0x3616('0x10')]||this[_0x3616('0xc')]['resolve']();}['reopen'](){this[_0x3616('0xc')][_0x3616('0x10')]&&this['model'][_0x3616('0xb')]();}[_0x3616('0x2')](_0x5a28ae){this['model'][_0x3616('0x2')]({'content':_0x5a28ae,'authorId':this[_0x3616('0x6')][_0x3616('0x1')]['id']});}[_0x3616('0x4')](_0x29cf75,_0x5bf01c){this[_0x3616('0xc')][_0x3616('0xa')](_0x29cf75)['update']({'content':_0x5bf01c});}[_0x3616('0xe')](_0x886347){this['model'][_0x3616('0xa')](_0x886347)[_0x3616('0x9')]();}[_0x3616('0xf')](){this[_0x3616('0xd')](),this[_0x3616('0xc')][_0x3616('0x12')]=!0x1;}}
@@ -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 _0x4e95=['value','editorDestroyed','addComment','removeComment','placeholder','commentThreadHeaderView','isResolvable','submit','isSubmitted','bind','editorConfig','change:isActive','assign','showInput','locale','_model','destroy','_config','submitCommentThread','focus','canComment','updateComment','resolveCommentThread','cancel','Write\x20a\x20comment...','Reply','_localUser','disabledSubmit','commentsListView','stop','isResolved','isActive','set','commentInputView','CommentView','length','reopenCommentThread','fire','removeCommentThread','editorReady','isReadOnly','delegate','commentThreadInputView','isDirty','Comment'];(function(_0x3dc067,_0x4e95cc){const _0x9b64cb=function(_0x2b5fbd){while(--_0x2b5fbd){_0x3dc067['push'](_0x3dc067['shift']());}};_0x9b64cb(++_0x4e95cc);}(_0x4e95,0x167));const _0x9b64=function(_0x3dc067,_0x4e95cc){_0x3dc067=_0x3dc067-0x0;let _0x9b64cb=_0x4e95[_0x3dc067];return _0x9b64cb;};import{View as _0xcf3971}from'ckeditor5/src/ui';import _0x1c29da from'./commentthreadinputview';import _0x243af0 from'./commentslistview';import _0x40fd57 from'./commentthreadheaderview';import{getTranslation as _0x3b5300}from'../../../utils/common-translations';export default class Tt extends _0xcf3971{constructor(_0x238ef6,_0x1eeefa,_0x2a89ed,_0x167e9d){super(_0x238ef6),this[_0x9b64('0x21')](_0x9b64('0x20'),!0x1),this[_0x9b64('0x21')]('isDirty',!0x1),this[_0x9b64('0x10')]=_0x1eeefa,this[_0x9b64('0x1b')]=_0x2a89ed,this['_config']=_0x167e9d,this[_0x9b64('0x6')]=new _0x40fd57(_0x238ef6,_0x1eeefa),this['commentThreadHeaderView'][_0x9b64('0x2a')]('reopenCommentThread')['to'](this),this[_0x9b64('0x1d')]=new _0x243af0(_0x238ef6,_0x1eeefa,Object[_0x9b64('0xd')]({'CommentView':this['_config'][_0x9b64('0x23')]},_0x167e9d)),this[_0x9b64('0x1d')]['delegate'](_0x9b64('0x4'))['to'](this),this[_0x9b64('0x1d')][_0x9b64('0x2a')](_0x9b64('0x16'))['to'](this),this[_0x9b64('0x1d')]['delegate'](_0x9b64('0x17'))['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView'][_0x9b64('0x2a')](_0x9b64('0x2'))['to'](this),this[_0x9b64('0x1d')][_0x9b64('0xa')](_0x9b64('0x20'))['to'](this),this['set']('length',this[_0x9b64('0x1d')][_0x9b64('0x24')]),this[_0x9b64('0xa')](_0x9b64('0x24'))['to'](this[_0x9b64('0x1d')],_0x9b64('0x24')),this[_0x9b64('0x2b')]=this['_createCommentThreadInputView'](),this[_0x9b64('0x2b')][_0x9b64('0x2a')](_0x9b64('0x28'))['to'](this),this['commentThreadInputView']['delegate'](_0x9b64('0x2'))['to'](this),this['on'](_0x9b64('0x4'),()=>this[_0x9b64('0x14')]()),this[_0x9b64('0xa')](_0x9b64('0x2c'))['to'](this[_0x9b64('0x1d')],'hasDirtyComment',this['commentThreadInputView'][_0x9b64('0x22')],_0x9b64('0x1'),(_0x540c6f,_0x1cf7db)=>_0x540c6f||!!_0x1cf7db);}['focus'](){this['element'][_0x9b64('0x14')]();}[_0x9b64('0x11')](){this[_0x9b64('0x2c')]=!0x1,this[_0x9b64('0x1d')][_0x9b64('0x11')](),this[_0x9b64('0x2b')][_0x9b64('0x11')](),super[_0x9b64('0x11')]();}['_createCommentThreadInputView'](){const _0x116dfa=new _0x1c29da(this[_0x9b64('0xf')],this['_localUser'],this[_0x9b64('0x12')][_0x9b64('0xb')]),_0x5a0ea9=_0x116dfa['commentInputView'];return _0x116dfa[_0x9b64('0xa')](_0x9b64('0xe'))['to'](this,'isActive',this['_model'],_0x9b64('0x29'),this[_0x9b64('0x10')],_0x9b64('0x15'),this[_0x9b64('0x10')],_0x9b64('0x1f'),_0x5a0ea9,_0x9b64('0x1'),(_0x5e26c2,_0x5a9c16,_0x377a40,_0x2dd620,_0x5ca671)=>!!_0x5ca671||_0x2dd620&&_0x377a40&&!_0x5a9c16||_0x5e26c2&&_0x377a40&&!_0x5a9c16),_0x5a0ea9['bind'](_0x9b64('0x5'))['to'](this,_0x9b64('0x24'),this[_0x9b64('0x10')],_0x9b64('0x7'),this[_0x9b64('0x10')],_0x9b64('0x1f'),(_0x23ef0c,_0x544aa1,_0x2bc400)=>{let _0x8d0c6c;return _0x8d0c6c=_0x2bc400&&_0x544aa1?'Reply\x20to\x20reopen\x20discussion...':_0x23ef0c?'Reply...':_0x9b64('0x19'),_0x3b5300(this['locale'],_0x8d0c6c);}),_0x5a0ea9[_0x9b64('0xa')]('submitLabel')['to'](this,_0x9b64('0x24'),_0x32ecca=>_0x3b5300(this[_0x9b64('0xf')],_0x32ecca?_0x9b64('0x1a'):_0x9b64('0x0'))),_0x5a0ea9['on'](_0x9b64('0x8'),(_0xc9cfb5,_0x3481c5)=>{this['fire'](_0x9b64('0x3'),_0x3481c5),this[_0x9b64('0x10')][_0x9b64('0x1f')]&&this[_0x9b64('0x10')]['isResolvable']&&this[_0x9b64('0x26')](_0x9b64('0x25'),this['_model']['id']),this['_model'][_0x9b64('0x9')]||this[_0x9b64('0x26')](_0x9b64('0x13'));}),_0x5a0ea9['on']('cancel',()=>{this['focus']();}),_0x5a0ea9[_0x9b64('0xa')](_0x9b64('0x1c'))['to'](this['_model'],_0x9b64('0x29')),_0x5a0ea9['on'](_0x9b64('0x18'),_0x1cebce=>{0x0==this[_0x9b64('0x24')]&&(this[_0x9b64('0x26')](_0x9b64('0x27')),_0x1cebce[_0x9b64('0x1e')]());}),this['on'](_0x9b64('0xc'),(_0x4c73f4,_0x1f3261,_0x22806a)=>{_0x22806a||this[_0x9b64('0x24')]||_0x5a0ea9[_0x9b64('0x1')]||this[_0x9b64('0x26')](_0x9b64('0x27'));}),_0x116dfa;}}
@@ -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 _0xf96e=['switchToDisplayMode','isCollapsed','initialData','isSystemComment','once','fire','_createCommentContentView','updateComment','delegate','set','submitLabel','focus','bind','switchToEditMode','cancel','get','content','destroy','Save','disabledSubmit','expand','isReadOnly','editorConfig','_model','maxCommentCharsWhenCollapsed','_createCommentInputView','element','isEditMode','visibleView','add','remove','createEditor','_config','locale'];(function(_0x4dee08,_0xf96e6f){const _0x29fb98=function(_0x29d430){while(--_0x29d430){_0x4dee08['push'](_0x4dee08['shift']());}};_0x29fb98(++_0xf96e6f);}(_0xf96e,0x1ab));const _0x29fb=function(_0x4dee08,_0xf96e6f){_0x4dee08=_0x4dee08-0x0;let _0x29fb98=_0xf96e[_0x4dee08];return _0x29fb98;};import{View as _0x5cf5b2}from'ckeditor5/src/ui';import{trimHtml as _0xd06ceb}from'ckeditor5-collaboration/src/collaboration-core';import _0x7fe7e3 from'./commentcontentview';import _0x1e6e6f from'./commentinputview';import{getTranslation as _0x13d270}from'../../../utils/common-translations';export default class Yt extends _0x5cf5b2{constructor(_0x27b397,_0x342271,_0x106401){super(_0x27b397),this['_model']=_0x342271,this[_0x29fb('0xd')]=_0x106401,this[_0x29fb('0x12')]=!!this[_0x29fb('0xd')]['isSystemComment'],this[_0x29fb('0x18')](_0x29fb('0x8'),!0x1),this[_0x29fb('0x18')]('isCollapsed',!0x0),this['visibleView']=this['createCollection'](),this[_0x29fb('0x9')][_0x29fb('0xa')](this['_createCommentContentView']());}[_0x29fb('0x1')](){this[_0x29fb('0x10')]=!0x1;}['collapse'](){this[_0x29fb('0x8')]||(this['isCollapsed']=!0x0);}[_0x29fb('0x1a')](){this[_0x29fb('0x7')][_0x29fb('0x1a')]();}async['destroy'](){await this[_0x29fb('0x9')][_0x29fb('0x1e')](0x0)[_0x29fb('0x20')](),super[_0x29fb('0x20')]();}[_0x29fb('0x1c')](){this[_0x29fb('0x8')]||(this[_0x29fb('0x8')]=!0x0,this[_0x29fb('0x9')][_0x29fb('0xb')](0x0)['destroy'](),this[_0x29fb('0x9')][_0x29fb('0xa')](this[_0x29fb('0x6')]()));}[_0x29fb('0xf')](){this['isEditMode']&&(this['isEditMode']=!0x1,this[_0x29fb('0x9')][_0x29fb('0xb')](0x0)[_0x29fb('0x20')](),this[_0x29fb('0x9')][_0x29fb('0xa')](this['_createCommentContentView']()));}[_0x29fb('0x15')](){const _0x5c80dd=new _0x7fe7e3(this[_0x29fb('0xe')]);return _0x5c80dd[_0x29fb('0x1b')]('content')['to'](this[_0x29fb('0x4')],_0x29fb('0x1f'),this,_0x29fb('0x10'),(_0x47a2d0,_0x4dd333)=>_0x4dd333?_0xd06ceb(_0x47a2d0,{'limit':this[_0x29fb('0xd')][_0x29fb('0x5')]}):_0x47a2d0),_0x5c80dd;}[_0x29fb('0x6')](){this[_0x29fb('0xd')][_0x29fb('0x3')]||(this[_0x29fb('0xd')][_0x29fb('0x3')]={}),this[_0x29fb('0xd')][_0x29fb('0x3')][_0x29fb('0x11')]=this[_0x29fb('0x4')][_0x29fb('0x1f')];const _0x490975=new _0x1e6e6f(this[_0x29fb('0xe')],this['_config'][_0x29fb('0x3')]);return _0x490975['value']=this[_0x29fb('0x4')]['content'],_0x490975[_0x29fb('0x1b')](_0x29fb('0x0'))['to'](this[_0x29fb('0x4')],_0x29fb('0x2')),_0x490975[_0x29fb('0x19')]=_0x13d270(this[_0x29fb('0xe')],_0x29fb('0x21')),_0x490975['on']('submit',(_0x17d2d6,_0x4ed81a)=>{this[_0x29fb('0x14')](_0x29fb('0x16'),this['_model']['id'],_0x4ed81a),this[_0x29fb('0xf')](),this[_0x29fb('0x1a')]();}),_0x490975['on'](_0x29fb('0x1d'),()=>{this[_0x29fb('0xf')](),this[_0x29fb('0x1a')]();}),_0x490975[_0x29fb('0x13')]('editorReady',()=>{_0x490975[_0x29fb('0x1a')]();}),_0x490975[_0x29fb('0xc')](),_0x490975[_0x29fb('0x17')]('editorReady')['to'](this),_0x490975[_0x29fb('0x17')]('editorDestroyed')['to'](this),_0x490975;}}
@@ -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 _0x2084=['setTemplate','NUMBER_OF_COMMENTS','set','count','bindTemplate','ck-thread__comment-count'];(function(_0x209e50,_0x20843d){const _0xd2be33=function(_0x15f9f0){while(--_0x15f9f0){_0x209e50['push'](_0x209e50['shift']());}};_0xd2be33(++_0x20843d);}(_0x2084,0xed));const _0xd2be=function(_0x209e50,_0x20843d){_0x209e50=_0x209e50-0x0;let _0xd2be33=_0x2084[_0x209e50];return _0xd2be33;};import{View as _0x4921a4}from'ckeditor5/src/ui';import{getTranslation as _0x3527a4}from'../../../utils/common-translations';export default class Zt extends _0x4921a4{constructor(_0x219528){super(_0x219528);const _0x3f0c33=this[_0xd2be('0x1')];this[_0xd2be('0x5')]('count',void 0x0),this[_0xd2be('0x3')]({'tag':'li','attributes':{'class':_0xd2be('0x2')},'children':[{'text':_0x3f0c33['to'](_0xd2be('0x0'),_0x1a0fdd=>_0x3527a4(_0x219528,_0xd2be('0x4'),_0x1a0fdd))}]});}}
@@ -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 _0x8e20=['ck-comment__content','ck-annotation__content','change:content','innerHTML','setTemplate','element','content'];(function(_0x119528,_0x8e206){var _0x4f3134=function(_0x28dba6){while(--_0x28dba6){_0x119528['push'](_0x119528['shift']());}};_0x4f3134(++_0x8e206);}(_0x8e20,0xad));var _0x4f31=function(_0x119528,_0x8e206){_0x119528=_0x119528-0x0;var _0x4f3134=_0x8e20[_0x119528];return _0x4f3134;};import{View as _0x577ed0}from'ckeditor5/src/ui';export default class Ut extends _0x577ed0{constructor(_0x1575ec){super(_0x1575ec),this['set']('content',''),this[_0x4f31('0x6')]({'tag':'div','attributes':{'class':[_0x4f31('0x2'),_0x4f31('0x3')]}});}['render'](){super['render'](),this['on'](_0x4f31('0x4'),(_0x4522a4,_0x3d6a10,_0x56d255)=>{this['element'][_0x4f31('0x5')]=_0x56d255;}),this[_0x4f31('0x0')][_0x4f31('0x5')]=this[_0x4f31('0x1')];}}
@@ -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 _0x3dfb=['then','Cancel','_editorConfig','change','label','focusPrevious','submitButtonView','submit','Esc','showButtons','bindTemplate','extendTemplate','editor','render','destroy','initialData','ck-comment__input-wrapper','focusTracker','setData','low','tab','ck-comment__input-actions--cancel','value','set','_createSubmitButton','_isDestroyed','withText','forEach','cancelButtonView','firstChild','placeholder','create','getData','submitLabel','insertBefore','length','createEditor','cancel','bind','stop','ck-comment__input-actions','Reply','fire','listenTo','high','editorReady','keystrokes','focus','_initializeFocusCycling','shift\x20+\x20tab','trim','add','editorDestroyed','execute','element','div','ck-comment__input-actions--active','setTemplate'];(function(_0xbf4e00,_0x3dfbfc){const _0x1c72b6=function(_0x1e984b){while(--_0x1e984b){_0xbf4e00['push'](_0xbf4e00['shift']());}};_0x1c72b6(++_0x3dfbfc);}(_0x3dfb,0x96));const _0x1c72=function(_0xbf4e00,_0x3dfbfc){_0xbf4e00=_0xbf4e00-0x0;let _0x1c72b6=_0x3dfb[_0xbf4e00];return _0x1c72b6;};import{View as _0x470711,ViewCollection as _0x1124a1,FocusCycler as _0x241ecb,ButtonView as _0x133d4f}from'ckeditor5/src/ui';import{FocusTracker as _0x57da46,KeystrokeHandler as _0x2e7e90}from'ckeditor5/src/utils';import _0x4ba238 from'../commenteditor/commenteditor';import{getTranslation as _0x546a41}from'../../../utils/common-translations';export default class Xt extends _0x470711{constructor(_0x10e841,_0x4722e8={}){super(_0x10e841),this[_0x1c72('0x24')]=null,this[_0x1c72('0x1a')]=_0x4722e8,this[_0x1c72('0xc')]=new _0x2e7e90(),this[_0x1c72('0x29')]=new _0x57da46(),this[_0x1c72('0x2f')](_0x1c72('0x2e'),_0x4722e8[_0x1c72('0x27')]||''),this['set']('disabledSubmit',!0x1),this[_0x1c72('0x2f')](_0x1c72('0x21'),!0x0),this[_0x1c72('0x2f')](_0x1c72('0x36'),_0x546a41(_0x10e841,'Reply...')),this[_0x1c72('0x2f')](_0x1c72('0x39'),_0x546a41(_0x10e841,_0x1c72('0x7'))),this[_0x1c72('0x1e')]=this[_0x1c72('0x30')](),this[_0x1c72('0x34')]=this['_createCancelButton'](),this[_0x1c72('0x17')]({'tag':'div','attributes':{'class':[_0x1c72('0x28')]},'children':[{'tag':_0x1c72('0x15'),'attributes':{'class':[_0x1c72('0x6'),this[_0x1c72('0x22')]['if'](_0x1c72('0x21'),_0x1c72('0x16'))]},'children':[this['submitButtonView'],this[_0x1c72('0x34')]]}]}),this[_0x1c72('0xc')][_0x1c72('0x2f')](_0x1c72('0x20'),(_0x12d4a4,_0x277460)=>{this[_0x1c72('0x34')][_0x1c72('0x8')]('execute'),_0x277460();}),this['on'](_0x1c72('0x1f'),(_0x242ea5,_0x37b7c4)=>{_0x37b7c4[_0x1c72('0x1')]>0xfde8?(alert(_0x546a41(_0x10e841,'TOO_LONG_COMMENT_ALERT',[_0x37b7c4[_0x1c72('0x1')],0xfde8])),_0x242ea5[_0x1c72('0x5')]()):this['editor'][_0x1c72('0x2a')]('');},{'priority':_0x1c72('0xa')});}[_0x1c72('0x25')](){super[_0x1c72('0x25')](),this[_0x1c72('0xc')][_0x1c72('0x9')](this[_0x1c72('0x14')]),this[_0x1c72('0x29')][_0x1c72('0x11')](this[_0x1c72('0x14')]);}[_0x1c72('0x2')](){return this[_0x1c72('0x24')]||(this[_0x1c72('0x24')]=new _0x4ba238(this['_editorConfig']),this['_editorCreationPromise']=this[_0x1c72('0x24')][_0x1c72('0x37')]()[_0x1c72('0x18')](()=>{if(this['_isDestroyed'])return;const _0x5ec3c5=this[_0x1c72('0x24')];this['element'][_0x1c72('0x0')](_0x5ec3c5['ui']['element'],this[_0x1c72('0x14')][_0x1c72('0x35')]),_0x5ec3c5['model']['document']['on'](_0x1c72('0x1b'),()=>this[_0x1c72('0x2e')]=_0x5ec3c5[_0x1c72('0x38')]()),_0x5ec3c5[_0x1c72('0x4')](_0x1c72('0x36'))['to'](this),this[_0x1c72('0xe')](this[_0x1c72('0x24')]),this['fire'](_0x1c72('0xb'),this['editor']);})),this['_editorCreationPromise'];}[_0x1c72('0xd')](){this[_0x1c72('0x24')]&&this[_0x1c72('0x24')][_0x1c72('0xd')]();}async[_0x1c72('0x26')](){this[_0x1c72('0x31')]||(this[_0x1c72('0x31')]=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor'][_0x1c72('0x26')](),this[_0x1c72('0x8')](_0x1c72('0x12'),this['editor'])),await super[_0x1c72('0x26')]());}[_0x1c72('0x30')](){const {locale:_0x551684}=this,_0x302193=new _0x133d4f(_0x551684);return _0x302193[_0x1c72('0x23')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x302193[_0x1c72('0x32')]=!0x0,_0x302193[_0x1c72('0x4')]('label')['to'](this,'submitLabel'),_0x302193['on'](_0x1c72('0x13'),()=>{this[_0x1c72('0x8')]('submit',this['value']);}),_0x302193[_0x1c72('0x4')]('isEnabled')['to'](this,_0x1c72('0x2e'),this,'disabledSubmit',(_0x366fec,_0x23c7c4)=>!_0x23c7c4&&!!_0x366fec[_0x1c72('0x10')]()),_0x302193;}['_createCancelButton'](){const {locale:_0x5becba}=this,_0x8ba88=new _0x133d4f(_0x5becba);return _0x8ba88[_0x1c72('0x23')]({'attributes':{'class':[_0x1c72('0x2d')]}}),_0x8ba88[_0x1c72('0x1c')]=_0x546a41(_0x5becba,_0x1c72('0x19')),_0x8ba88['withText']=!0x0,_0x8ba88['on'](_0x1c72('0x13'),()=>{this[_0x1c72('0x24')][_0x1c72('0x2a')](''),this[_0x1c72('0x8')](_0x1c72('0x3'));}),_0x8ba88;}[_0x1c72('0xe')](_0x410ced){const _0x2cc619=this['focusTracker'],_0x48d82f=new _0x1124a1();[_0x410ced['ui']['view'],this[_0x1c72('0x1e')],this[_0x1c72('0x34')]][_0x1c72('0x33')](_0x34524d=>{_0x48d82f[_0x1c72('0x11')](_0x34524d),_0x2cc619[_0x1c72('0x11')](_0x34524d[_0x1c72('0x14')]);});const _0x33d4d7=new _0x241ecb({'focusables':_0x48d82f,'focusTracker':_0x2cc619});this[_0x1c72('0xc')]['set'](_0x1c72('0x2c'),(_0x3aa7c7,_0x2bbc23)=>{_0x33d4d7['focusNext'](),_0x2bbc23();},{'priority':_0x1c72('0x2b')}),this[_0x1c72('0xc')]['set'](_0x1c72('0xf'),(_0x7104d6,_0x5f4425)=>{_0x33d4d7[_0x1c72('0x1d')](),_0x5f4425();},{'priority':_0x1c72('0x2b')});}}
@@ -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 _0x2a6a=['high','shift\x20+\x20tab','_focusables','set','add','focus','isEmpty','arrowleft','ck-hidden','stopPropagation','_keystrokes','remove','auto','render','element','EMPTY_COMMENTS_ARCHIVE','listenTo','isActive','arrowup','ck-comments-archive__header\x20','ck-comments-archive__content','div','arrowdown','selectstart','length','destroy','COMMENTS_ARCHIVE','_focusTracker'];(function(_0x407fb3,_0x2a6ad1){const _0x269a3c=function(_0x4aea2d){while(--_0x4aea2d){_0x407fb3['push'](_0x407fb3['shift']());}};_0x269a3c(++_0x2a6ad1);}(_0x2a6a,0x173));const _0x269a=function(_0x407fb3,_0x2a6ad1){_0x407fb3=_0x407fb3-0x0;let _0x269a3c=_0x2a6a[_0x407fb3];return _0x269a3c;};import{View as _0x52b47,FocusCycler as _0x4e35c6}from'ckeditor5/src/ui';import{FocusTracker as _0x7953ad,KeystrokeHandler as _0x4d3375}from'ckeditor5/src/utils';import{getTranslation as _0x39444e}from'../../../utils/common-translations';export default class K extends _0x52b47{constructor(_0x158a80,_0x22daeb){super(_0x158a80),this[_0x269a('0x18')]('isEmpty',!_0x22daeb[_0x269a('0x11')]),this[_0x269a('0x14')]=new _0x7953ad(),this[_0x269a('0x3')]=new _0x4d3375(),this[_0x269a('0x17')]=_0x22daeb,this['_focusCycler']=new _0x4e35c6({'focusables':this['_focusables'],'focusTracker':this[_0x269a('0x14')],'keystrokeHandler':this[_0x269a('0x3')],'actions':{'focusPrevious':_0x269a('0x16'),'focusNext':'tab'}}),this['listenTo'](_0x22daeb,_0x269a('0x19'),()=>{this[_0x269a('0x1b')]=!0x1;}),this[_0x269a('0x9')](_0x22daeb,_0x269a('0x4'),(_0x2da182,_0x14086e)=>{_0x14086e[_0x269a('0xa')]&&this[_0x269a('0x1a')](),_0x22daeb[_0x269a('0x11')]||(this['isEmpty']=!0x0);});const _0x29c18b=this['bindTemplate'];this['setTemplate']({'tag':_0x269a('0xe'),'attributes':{'dir':_0x269a('0x5'),'class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x269a('0xc')]},'children':[{'text':_0x39444e(_0x158a80,_0x269a('0x13'))}]},{'tag':_0x269a('0xe'),'attributes':{'class':[_0x269a('0xd')]},'children':[{'tag':_0x269a('0xe'),'children':_0x22daeb},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x29c18b['if']('isEmpty',_0x269a('0x1'),_0x3f84a0=>!_0x3f84a0)]},'children':[{'text':_0x39444e(_0x158a80,_0x269a('0x8'))}]}]}]});}[_0x269a('0x6')](){super['render'](),this[_0x269a('0x3')][_0x269a('0x9')](this[_0x269a('0x7')]);const _0x167323=_0x3c5d47=>_0x3c5d47[_0x269a('0x2')]();this[_0x269a('0x3')][_0x269a('0x18')]('arrowright',_0x167323),this['_keystrokes'][_0x269a('0x18')](_0x269a('0x0'),_0x167323),this[_0x269a('0x3')][_0x269a('0x18')](_0x269a('0xb'),_0x167323),this[_0x269a('0x3')][_0x269a('0x18')](_0x269a('0xf'),_0x167323),this[_0x269a('0x9')](this[_0x269a('0x7')],_0x269a('0x10'),(_0x203565,_0x47c1ce)=>{_0x47c1ce[_0x269a('0x2')]();},{'priority':_0x269a('0x15')});}[_0x269a('0x12')](){super[_0x269a('0x12')](),this[_0x269a('0x14')][_0x269a('0x12')](),this[_0x269a('0x3')][_0x269a('0x12')]();}[_0x269a('0x1a')](){this[_0x269a('0x7')]['focus']();}}
@@ -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 _0xa192=['length','visibleViews','resolvedBy','maxCommentCharsWhenCollapsed','commentViews','change:isEditMode','_handleNewCommentModel','isActive','updateComment','change:isResolved','_findOptimalIndex','from','focus','setTemplate','resolvedAt','_collapsedCommentsView','collapse','Marked\x20as\x20resolved','equal','destroy','ck-thread__comments','_calculatePosition','createCollection','refreshVisibleViews','maxThreadTotalWeight','add','_handleInfoComment','_updateHasDirtyComment','element','hasDirtyComment','_handleRemoveCommentModel','count','_model','locale','some','remove','expand','weight','listenTo','comments','authoredAt','editorReady','_config','editorConfig','formatDateTime','delete','resolvedCommentView','_rearrangeCollapse','_shouldCollapse','_rearrangeExpand','delegate','editorDestroyed','bind','CommentView','stopListening','get','set','isEditMode'];(function(_0x5c3fe1,_0xa1923c){const _0x2e0d3c=function(_0x45922d){while(--_0x45922d){_0x5c3fe1['push'](_0x5c3fe1['shift']());}};_0x2e0d3c(++_0xa1923c);}(_0xa192,0x1e7));const _0x2e0d=function(_0x5c3fe1,_0xa1923c){_0x5c3fe1=_0x5c3fe1-0x0;let _0x2e0d3c=_0xa192[_0x5c3fe1];return _0x2e0d3c;};import{View as _0x5c5e36}from'ckeditor5/src/ui';import{diff as _0x4141e9,Collection as _0x5c43ae}from'ckeditor5/src/utils';import{getTranslation as _0x5054b5}from'../../../utils/common-translations';import _0xe4c0a9 from'./collapsedcommentsview';export default class wt extends _0x5c5e36{constructor(_0x56966c,_0x46722d,_0x45d7d0){super(_0x56966c),this['set']('hasDirtyComment',!0x1),this['set']('length',_0x46722d[_0x2e0d('0x10')]['length']),this[_0x2e0d('0x21')](_0x2e0d('0x2a'),!0x1),this['_model']=_0x46722d,this[_0x2e0d('0x13')]=_0x45d7d0,this[_0x2e0d('0x27')]=this[_0x2e0d('0x39')](),this[_0x2e0d('0x24')]=this[_0x2e0d('0x39')](),this[_0x2e0d('0x17')]=null,this[_0x2e0d('0x32')]=new _0xe4c0a9(_0x56966c),this[_0x2e0d('0x32')][_0x2e0d('0x1d')](_0x2e0d('0x8'))['to'](this,_0x2e0d('0x23'),_0x17c8fe=>_0x17c8fe-this['_config']['maxCommentsWhenCollapsed']);for(const _0x2658da of _0x46722d[_0x2e0d('0x10')])this[_0x2e0d('0x29')](_0x2658da);this['_handleInfoComment'](),this['listenTo'](_0x46722d[_0x2e0d('0x10')],_0x2e0d('0x2'),(_0xf4ecb9,_0x2d33b4)=>{const _0x41b754=this[_0x2e0d('0x38')](_0x2d33b4);this['length']++,this[_0x2e0d('0x29')](_0x2d33b4,_0x41b754),this['refreshVisibleViews']();}),this[_0x2e0d('0xf')](_0x46722d[_0x2e0d('0x10')],_0x2e0d('0xc'),(_0x3b72ec,_0x45fed9)=>{this[_0x2e0d('0x23')]--,this[_0x2e0d('0x7')](_0x45fed9),this['refreshVisibleViews']();}),this[_0x2e0d('0xf')](_0x46722d,'commentUpdated',()=>this[_0x2e0d('0x0')]()),this[_0x2e0d('0xf')](_0x46722d,_0x2e0d('0x2c'),()=>this[_0x2e0d('0x3')]()),this['on']('change:isActive',()=>this[_0x2e0d('0x0')]()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this[_0x2e0d('0x30')]({'tag':'ul','attributes':{'class':[_0x2e0d('0x37')]},'children':this[_0x2e0d('0x24')]});}get[_0x2e0d('0x19')](){return this['_model'][_0x2e0d('0xe')]>this[_0x2e0d('0x13')][_0x2e0d('0x1')]&&!this[_0x2e0d('0x2a')]&&!this['hasDirtyComment'];}['render'](){super['render'](),this[_0x2e0d('0x0')]();}[_0x2e0d('0x2f')](){this[_0x2e0d('0x5')][_0x2e0d('0x2f')]();}[_0x2e0d('0x36')](){this[_0x2e0d('0x32')][_0x2e0d('0x36')]();for(const _0x66935f of this[_0x2e0d('0x27')])_0x66935f[_0x2e0d('0x36')]();super[_0x2e0d('0x36')]();}['refreshVisibleViews'](){this[_0x2e0d('0x19')]?this['_rearrangeCollapse']():this[_0x2e0d('0x1a')]();}['_handleNewCommentModel'](_0x25d86a,_0x3c65f7){const _0x14f6e5=new this[(_0x2e0d('0x13'))][(_0x2e0d('0x1e'))](this['locale'],_0x25d86a,{'maxCommentCharsWhenCollapsed':this[_0x2e0d('0x13')][_0x2e0d('0x26')],'formatDateTime':this[_0x2e0d('0x13')][_0x2e0d('0x15')],'editorConfig':this['_config'][_0x2e0d('0x14')]});_0x14f6e5['viewUid']=_0x25d86a['id'],_0x14f6e5[_0x2e0d('0x1b')]('removeComment')['to'](this),_0x14f6e5[_0x2e0d('0x1b')](_0x2e0d('0x2b'))['to'](this),_0x14f6e5['delegate']('resolveCommentThread')['to'](this),_0x14f6e5['delegate'](_0x2e0d('0x12'))['to'](this),_0x14f6e5[_0x2e0d('0x1b')](_0x2e0d('0x1c'))['to'](this),this['listenTo'](_0x14f6e5,_0x2e0d('0x28'),()=>this[_0x2e0d('0x4')]()),this[_0x2e0d('0x27')][_0x2e0d('0x2')](_0x14f6e5,_0x3c65f7);}[_0x2e0d('0x38')](_0x3024d0){const _0x336084=this[_0x2e0d('0x9')][_0x2e0d('0x2d')](_0x3024d0);return this[_0x2e0d('0x17')]?this['resolvedCommentView'][_0x2e0d('0x11')]>_0x3024d0[_0x2e0d('0x11')]?_0x336084-0x1:_0x336084:_0x336084-0x1;}[_0x2e0d('0x3')](){if(this[_0x2e0d('0x9')][_0x2e0d('0x25')]&&this[_0x2e0d('0x9')][_0x2e0d('0x31')]){const _0xab3f2c={'id':'resolved','author':this['_model'][_0x2e0d('0x25')],'authoredAt':this[_0x2e0d('0x9')]['resolvedAt'],'content':_0x5054b5(this[_0x2e0d('0xa')],_0x2e0d('0x34')),'attributes':{}};this[_0x2e0d('0x17')]=new this['_config'][(_0x2e0d('0x1e'))](this[_0x2e0d('0xa')],_0xab3f2c,{'maxCommentCharsWhenCollapsed':this[_0x2e0d('0x13')][_0x2e0d('0x26')],'formatDateTime':this[_0x2e0d('0x13')][_0x2e0d('0x15')],'editorConfig':this['_config'][_0x2e0d('0x14')],'isSystemComment':!0x0}),this[_0x2e0d('0x27')]['add'](this[_0x2e0d('0x17')],this[_0x2e0d('0x9')][_0x2e0d('0x2d')](_0xab3f2c));}else this[_0x2e0d('0x17')]&&(this['commentViews']['remove'](this[_0x2e0d('0x17')]),this[_0x2e0d('0x17')][_0x2e0d('0x36')](),this[_0x2e0d('0x17')]=null);this[_0x2e0d('0x0')]();}['_handleRemoveCommentModel'](_0x20fa11){const _0x4c962f=this[_0x2e0d('0x27')][_0x2e0d('0xc')](_0x20fa11['id']);this[_0x2e0d('0x1f')](_0x4c962f),_0x4c962f[_0x2e0d('0x22')]&&this[_0x2e0d('0x4')](),_0x4c962f[_0x2e0d('0x36')]();}[_0x2e0d('0x4')](){this[_0x2e0d('0x6')]=Array['from'](this[_0x2e0d('0x27')])[_0x2e0d('0xb')](_0x263845=>_0x263845[_0x2e0d('0x22')]);}[_0x2e0d('0x18')](){const _0x492490=function(_0x20ba76){const _0x2628a3=new _0x5c43ae();for(const _0x35ab37 of _0x20ba76)_0x2628a3[_0x2e0d('0x2')](_0x35ab37);return _0x2628a3;}(this[_0x2e0d('0x27')]),_0x3ea828=this['_collapsedCommentsView']['count'];for(let _0x19e358=0x1;_0x19e358<=_0x3ea828;_0x19e358++)_0x492490['remove'](0x1);for(const _0x28402c of _0x492490)_0x28402c[_0x2e0d('0x33')]();_0x3ea828>0x0&&_0x492490[_0x2e0d('0x2')](this[_0x2e0d('0x32')],0x1),ss(_0x4141e9(Array[_0x2e0d('0x2e')](this['visibleViews']),Array[_0x2e0d('0x2e')](_0x492490)),this[_0x2e0d('0x24')],_0x492490);}[_0x2e0d('0x1a')](){ss(_0x4141e9(Array[_0x2e0d('0x2e')](this[_0x2e0d('0x24')]),Array[_0x2e0d('0x2e')](this['commentViews'])),this[_0x2e0d('0x24')],this[_0x2e0d('0x27')]);for(const _0x3879e0 of this[_0x2e0d('0x24')])_0x3879e0[_0x2e0d('0xd')]();}}function ss(_0x21bc31,_0xe3a488,_0x4e648a){let _0x2bf598=0x0;for(const _0x1f13dd of _0x21bc31)switch(_0x1f13dd){case'insert':_0xe3a488['add'](_0x4e648a[_0x2e0d('0x20')](_0x2bf598),_0x2bf598),_0x2bf598++;break;case _0x2e0d('0x16'):_0xe3a488[_0x2e0d('0xc')](_0x2bf598);break;case _0x2e0d('0x35'):_0x2bf598++;}}
@@ -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 _0x2256=['ck-context--quotes','.ck-context','...','execute','offsetWidth','_attachContextActions','.ck-context__value','add','hasContext','remove','ck-context-wrapper','setTemplate','ck-context','span','scrollWidth','div','mouseleave','mouseenter','overlay','_model','_createReopenButton','substring','render','Reopen','locale','label','querySelector','contextValue','bind','context','icon','ck-annotation__actions','bindTemplate','classList','tooltip','isReadOnly','ck-context__value','value','reopenButtonView','_trimContextValue'];(function(_0x4dc6f5,_0x225684){const _0x4faac5=function(_0x2bd056){while(--_0x2bd056){_0x4dc6f5['push'](_0x4dc6f5['shift']());}};_0x4faac5(++_0x225684);}(_0x2256,0x1ab));const _0x4faa=function(_0x4dc6f5,_0x225684){_0x4dc6f5=_0x4dc6f5-0x0;let _0x4faac5=_0x2256[_0x4dc6f5];return _0x4faac5;};import{View as _0x5bfb09,ButtonView as _0x2020bb}from'ckeditor5/src/ui';import{getTranslation as _0x4ecb1d}from'../../../utils/common-translations';import _0x288207 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x5bfb09{constructor(_0x33e83c,_0x3b57e2){super(_0x33e83c);const _0x19f06e=this[_0x4faa('0x5')];this[_0x4faa('0x20')]=_0x3b57e2,this['reopenButtonView']=this[_0x4faa('0x21')](),this[_0x4faa('0x1')]('hasContext')['to'](this[_0x4faa('0x20')],_0x4faa('0x2'),_0x4f61e7=>!!_0x4f61e7),this['bind'](_0x4faa('0x0'))['to'](this[_0x4faa('0x20')],_0x4faa('0x2'),_0x34dd38=>_0x34dd38&&_0x34dd38[_0x4faa('0xa')]?this['_trimContextValue'](_0x34dd38[_0x4faa('0xa')]):_0x4ecb1d(this[_0x4faa('0x25')],'Comment\x20was\x20made\x20on\x20an\x20element')),this[_0x4faa('0x18')]({'tag':_0x4faa('0x1c'),'attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':[_0x4faa('0x17')]},'children':[{'tag':_0x4faa('0x1c'),'attributes':{'class':[_0x4faa('0x19'),_0x19f06e['if'](_0x4faa('0x15'),_0x4faa('0xd'))]},'children':[{'tag':_0x4faa('0x1a'),'attributes':{'class':[_0x4faa('0x9')]},'children':[{'text':_0x19f06e['to'](_0x4faa('0x0'))}]}]}]},{'tag':_0x4faa('0x1c'),'attributes':{'class':[_0x4faa('0x4')]},'children':[this[_0x4faa('0xb')]]}]});}[_0x4faa('0x23')](){super[_0x4faa('0x23')](),this[_0x4faa('0x12')]();}[_0x4faa('0x21')](){const _0x30402d=new _0x2020bb(this['locale']);return _0x30402d[_0x4faa('0x26')]=_0x4ecb1d(this[_0x4faa('0x25')],_0x4faa('0x24')),_0x30402d[_0x4faa('0x7')]=_0x4ecb1d(this['locale'],_0x4faa('0x24')),_0x30402d[_0x4faa('0x3')]=_0x288207,_0x30402d['bind']('isEnabled')['to'](this[_0x4faa('0x20')],_0x4faa('0x8'),_0x58792e=>!_0x58792e),_0x30402d[_0x4faa('0x1')]('isVisible')['to'](this[_0x4faa('0x20')],'isResolvable'),_0x30402d['on'](_0x4faa('0x10'),()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x30402d;}[_0x4faa('0xc')](_0x42f185){if(_0x42f185['length']<0x96)return _0x42f185;const _0x53aacb=_0x42f185['lastIndexOf']('\x20',0x93);return _0x42f185[_0x4faa('0x22')](0x0,_0x53aacb>-0x1?_0x53aacb:0x93)+_0x4faa('0xf');}['_attachContextActions'](){const _0x44d27d=this['element'][_0x4faa('0x27')](_0x4faa('0xe')),_0xe44d34=_0x44d27d[_0x4faa('0x27')](_0x4faa('0x13'));this['listenTo'](_0x44d27d,_0x4faa('0x1e'),()=>{_0xe44d34[_0x4faa('0x11')]<_0xe44d34[_0x4faa('0x1b')]&&_0x44d27d[_0x4faa('0x6')][_0x4faa('0x14')](_0x4faa('0x1f'));}),this['listenTo'](_0x44d27d,_0x4faa('0x1d'),()=>{_0x44d27d[_0x4faa('0x6')][_0x4faa('0x16')](_0x4faa('0x1f'));});}}
@@ -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 _0x274a=['commentInputView','ck-thread__user','bindTemplate','userView','editor','editorDestroyed','change:showInput','setTemplate','isFocused','set','value','editorReady','destroy','bind','extendTemplate','then','ck-comment__input-container--active','showInput','showButtons','div'];(function(_0x43ad63,_0x274a98){var _0x2aed1f=function(_0x1c21d8){while(--_0x1c21d8){_0x43ad63['push'](_0x43ad63['shift']());}};_0x2aed1f(++_0x274a98);}(_0x274a,0x180));var _0x2aed=function(_0x43ad63,_0x274a98){_0x43ad63=_0x43ad63-0x0;var _0x2aed1f=_0x274a[_0x43ad63];return _0x2aed1f;};import{View as _0x247b85}from'ckeditor5/src/ui';import _0x573971 from'./commentinputview';import{UserView as _0x52ae5a}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x247b85{constructor(_0x152c1f,_0xf170f8,_0xb43f69){super(_0x152c1f),this[_0x2aed('0x10')]=new _0x573971(_0x152c1f,_0xb43f69),this['commentInputView'][_0x2aed('0x9')](_0x2aed('0xe'))['to'](this[_0x2aed('0x10')]['focusTracker'],_0x2aed('0x4'),this[_0x2aed('0x10')],_0x2aed('0x6'),(_0x4801a9,_0x96b8fb)=>_0x4801a9||!!_0x96b8fb),this[_0x2aed('0x5')](_0x2aed('0xd'),!0x1),this['on'](_0x2aed('0x2'),()=>{this[_0x2aed('0xd')]&&!this[_0x2aed('0x10')][_0x2aed('0x0')]&&this[_0x2aed('0x10')]['createEditor']();}),this['commentInputView']['delegate'](_0x2aed('0x7'))['to'](this),this['commentInputView']['delegate'](_0x2aed('0x1'))['to'](this),this[_0x2aed('0x13')]=new _0x52ae5a(_0x152c1f,_0xf170f8),this[_0x2aed('0x13')][_0x2aed('0xa')]({'attributes':{'class':_0x2aed('0x11')}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this[_0x2aed('0x3')]({'tag':_0x2aed('0xf'),'attributes':{'class':['ck-comment__input-container',this[_0x2aed('0x12')]['if'](_0x2aed('0xd'),_0x2aed('0xc'))]},'children':[this['userView'],this[_0x2aed('0x10')]]});}['destroy'](){return this['commentInputView']['destroy']()[_0x2aed('0xb')](()=>super[_0x2aed('0x8')]());}}
@@ -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 _0x2215=['_cancelAllConfirms','_boundFirstCommentView','execute','_model','ck-reset_all-excluded','setTemplate','commentViews','bind','Resolve','.ck-thread__container','showConfirm','addMany','isReadOnly','div','length','commentsListView','isResolvable','ck-thread--active','getTemplate','removeButton','add','resolveCommentThread','label','high','bindTemplate','_bindFirstCommentView','icon','commentThreadHeaderView','then','stop','ck-comment--resolve','render','change:isActive','fire','_createResolveButton','containerElement','set','actionBar','element','isConfirm','ck-thread--remove-confirmation','change:isReadOnly','check','listenTo','ck-thread__container','cancelConfirm','isResolved','locale','tooltip','actionIndicator','isActive','extendTemplate','resolveButton','commentThreadChildren','ck-thread','isVisible','querySelector','commentThreadInputView','change:isResolved','unbind','remove'];(function(_0x32b1cc,_0x2215ae){const _0x494c28=function(_0x4450aa){while(--_0x4450aa){_0x32b1cc['push'](_0x32b1cc['shift']());}};_0x494c28(++_0x2215ae);}(_0x2215,0x139));const _0x494c=function(_0x32b1cc,_0x2215ae){_0x32b1cc=_0x32b1cc-0x0;let _0x494c28=_0x2215[_0x32b1cc];return _0x494c28;};import{ConfirmMixin as _0x25169b}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x5250b2}from'ckeditor5/src/ui';import{icons as _0x21c6e9}from'ckeditor5/src/core';import _0x35f071 from'./basecommentthreadview';import{getTranslation as _0x18ee0b}from'../../../utils/common-translations';export default class lt extends _0x25169b(_0x35f071){constructor(_0x1018f5,_0x53e6a7,_0x258f27,_0x638867){super(_0x1018f5,_0x53e6a7,_0x258f27,_0x638867),this['commentThreadChildren']=this['createCollection'](),this[_0x494c('0x2d')][_0x494c('0x3')]([this[_0x494c('0x7')],this[_0x494c('0x31')]]),this[_0x494c('0x38')][_0x494c('0x26')]&&this[_0x494c('0x2d')][_0x494c('0xc')](this['commentThreadHeaderView'],0x0),this[_0x494c('0x38')]['on'](_0x494c('0x32'),(_0xd144dd,_0x40fd5b,_0x224989)=>{_0x224989?this[_0x494c('0x2d')][_0x494c('0xc')](this[_0x494c('0x13')],0x0):this[_0x494c('0x2d')]['remove'](this[_0x494c('0x13')]);}),this[_0x494c('0x1c')](_0x494c('0x29'),null),this[_0x494c('0x1b')]=null,this['_boundFirstCommentView']=null,this[_0x494c('0x27')]=_0x1018f5,this[_0x494c('0x2c')]=this[_0x494c('0x1a')](),this[_0x494c('0x3a')](this['getTemplate']()),this['on'](_0x494c('0x18'),(_0x50fe60,_0x5bebbb,_0x2ac206)=>{_0x2ac206||this[_0x494c('0x35')]();}),this[_0x494c('0x23')](this[_0x494c('0x38')],_0x494c('0x21'),(_0x1f6e4c,_0x3d1620,_0x29d165)=>{_0x29d165&&this[_0x494c('0x35')]();}),this[_0x494c('0x6')]>0x0&&this[_0x494c('0x11')](),this[_0x494c('0x23')](this[_0x494c('0x7')][_0x494c('0x3b')],'add',()=>{this['_bindFirstCommentView']();});}[_0x494c('0xa')](){const _0x59c2dd=this[_0x494c('0x10')];return{'tag':_0x494c('0x5'),'attributes':{'class':[_0x494c('0x2e'),_0x494c('0x39'),_0x59c2dd['if'](_0x494c('0x2a'),_0x494c('0x9')),_0x59c2dd['if'](_0x494c('0x1f'),_0x494c('0x20')),_0x59c2dd['to'](_0x494c('0x29'),_0x55b13d=>_0x55b13d?'ck-thread--'+_0x55b13d:'')],'data-thread-id':this[_0x494c('0x38')]['id'],'tabindex':-0x1},'children':[{'tag':_0x494c('0x5'),'attributes':{'class':_0x494c('0x24')},'children':this['commentThreadChildren']}]};}['render'](){super[_0x494c('0x17')](),this[_0x494c('0x1b')]=this[_0x494c('0x1e')][_0x494c('0x30')](_0x494c('0x1'));}[_0x494c('0x35')](){this['cancelConfirm']();for(const _0x3201c4 of this[_0x494c('0x7')][_0x494c('0x3b')])_0x3201c4[_0x494c('0x25')]();}[_0x494c('0x11')](){const {locale:_0xfc086}=this,_0x2c1eb0=this[_0x494c('0x7')][_0x494c('0x3b')]['get'](0x0);_0x2c1eb0===this[_0x494c('0x36')]||_0x2c1eb0['isSystemComment']||(this['_boundFirstCommentView']=_0x2c1eb0,this[_0x494c('0x33')]('actionIndicator'),this[_0x494c('0x3c')](_0x494c('0x29'))['to'](_0x2c1eb0,_0x494c('0x29'),_0x33b8d7=>'remove'===_0x33b8d7?_0x494c('0x34'):null),_0x2c1eb0['placeholder']=_0x18ee0b(_0xfc086,'Write\x20a\x20comment...'),_0x2c1eb0[_0x494c('0xb')]['on'](_0x494c('0x37'),_0x1f3ea9=>{_0x1f3ea9[_0x494c('0x15')](),this[_0x494c('0x2')](_0x18ee0b(_0xfc086,'Delete\x20comment\x20thread?'),this[_0x494c('0x1b')])[_0x494c('0x14')](()=>{this[_0x494c('0x19')]('removeCommentThread');});},{'priority':_0x494c('0xf')}),_0x2c1eb0[_0x494c('0x1d')][_0x494c('0xc')](this[_0x494c('0x2c')],0x0));}[_0x494c('0x1a')](){const _0x1e2ffb=new _0x5250b2(this[_0x494c('0x27')]);return _0x1e2ffb[_0x494c('0xe')]=_0x18ee0b(this[_0x494c('0x27')],_0x494c('0x0')),_0x1e2ffb[_0x494c('0x28')]=_0x18ee0b(this['locale'],'Resolve'),_0x1e2ffb[_0x494c('0x12')]=_0x21c6e9[_0x494c('0x22')],_0x1e2ffb[_0x494c('0x2b')]({'attributes':{'class':_0x494c('0x16')}}),_0x1e2ffb[_0x494c('0x3c')]('isEnabled')['to'](this['_model'],_0x494c('0x4'),_0x53807f=>!_0x53807f),_0x1e2ffb[_0x494c('0x3c')](_0x494c('0x2f'))['to'](this[_0x494c('0x38')],_0x494c('0x8'),this[_0x494c('0x38')],_0x494c('0x26'),(_0x2a36de,_0x1d77d2)=>_0x2a36de&&!_0x1d77d2),_0x1e2ffb['on'](_0x494c('0x37'),()=>{this['fire'](_0x494c('0xd'),this[_0x494c('0x38')]['id']);}),_0x1e2ffb;}}