@ckeditor/ckeditor5-comments 0.0.0-nightly-20240202.0 → 0.0.0-nightly-20240204.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) 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.d.ts +1 -1
  25. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  27. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  28. package/src/comments/ui/commentthreadcontroller.js +1 -1
  29. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  30. package/src/comments/ui/view/basecommentview.js +1 -1
  31. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  32. package/src/comments/ui/view/commentcontentview.js +1 -1
  33. package/src/comments/ui/view/commentinputview.js +1 -1
  34. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  35. package/src/comments/ui/view/commentslistview.js +1 -1
  36. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  37. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  38. package/src/comments/ui/view/commentthreadview.js +1 -1
  39. package/src/comments/ui/view/commentview.js +1 -1
  40. package/src/comments.js +1 -1
  41. package/src/commentsonly.js +1 -1
  42. package/src/utils/common-translations.js +1 -1
  43. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c33=['collaboration_features','high','map','editor','basic','importWord.formatting.comments','plugins','listenTo','config','collaboration.channelId','execute','dataInsert','afterInit','get','forEach','addCommentThread'];(function(_0x27316a,_0x5c3365){const _0x16c178=function(_0x111a11){while(--_0x111a11){_0x27316a['push'](_0x27316a['shift']());}};_0x16c178(++_0x5c3365);}(_0x5c33,0x108));const _0x16c1=function(_0x27316a,_0x5c3365){_0x27316a=_0x27316a-0x0;let _0x16c178=_0x5c33[_0x27316a];return _0x16c178;};import{Plugin as _0x2997a0}from'ckeditor5/src/core.js';import{priorities as _0x8e6991}from'ckeditor5/src/utils.js';import{Users as _0x3ef8e1}from'ckeditor5-collaboration/src/collaboration-core.js';import _0xe4796a from'../commentsrepository.js';export default class Z extends _0x2997a0{constructor(_0x44a539){super(_0x44a539),this[_0x16c1('0xb')][_0x16c1('0x0')]['define'](_0x16c1('0xd'),_0x16c1('0xc'));}[_0x16c1('0x4')](){const _0x774a24=this[_0x16c1('0xb')],_0x3d4823=_0x774a24['commands']['get']('importWord'),_0x1c3b1f=_0x774a24[_0x16c1('0xe')][_0x16c1('0x5')](_0x3ef8e1);_0x3d4823&&(_0x3d4823['on'](_0x16c1('0x2'),(_0x2d3950,[,_0x2310c4])=>{_0x2310c4[_0x16c1('0x8')]={'comments':!0x0,'user_id':_0x1c3b1f['me']['id']};},{'priority':_0x8e6991[_0x16c1('0x9')]+0xa}),this[_0x16c1('0xf')](_0x3d4823,_0x16c1('0x3'),this['_handleImportedData']));}['_handleImportedData'](_0x118e76,_0x180435){const {comment_threads:_0x63932c}=_0x180435;_0x63932c&&_0x63932c[_0x16c1('0x6')](({thread_id:_0x5a2146,comments:_0x57a608,is_resolved:_0x2138af})=>{const _0xc0eac9=new Date(),_0x376cfc=_0x57a608[_0x16c1('0xa')](({author:_0x112b96,content:_0x484445,created_at:_0x37e5d5})=>({'content':_0x484445,'authorId':this[_0x16c1('0xb')][_0x16c1('0xe')][_0x16c1('0x5')](_0x3ef8e1)['me']['id'],'createdAt':_0xc0eac9,'attributes':{'@external':{'authorName':_0x112b96,'createdAt':_0x37e5d5?new Date(_0x37e5d5):new Date(),'source':'importWord'}}})),_0x527446=this[_0x16c1('0xb')]['config'][_0x16c1('0x5')](_0x16c1('0x1'));this[_0x16c1('0xb')]['plugins'][_0x16c1('0x5')](_0xe4796a)[_0x16c1('0x7')]({'channelId':_0x527446,'threadId':_0x5a2146,'comments':_0x376cfc,'resolvedAt':_0x2138af?_0xc0eac9:null});});}}
23
+ const _0x4144=['plugins','map','commands','config','get','high','addCommentThread','importWord.formatting.comments','forEach','afterInit','importWord','basic','collaboration_features','collaboration.channelId','listenTo','execute','editor','_handleImportedData'];(function(_0x129222,_0x414409){const _0xcbe516=function(_0x4c8148){while(--_0x4c8148){_0x129222['push'](_0x129222['shift']());}};_0xcbe516(++_0x414409);}(_0x4144,0xb2));const _0xcbe5=function(_0x129222,_0x414409){_0x129222=_0x129222-0x0;let _0xcbe516=_0x4144[_0x129222];return _0xcbe516;};import{Plugin as _0x48a733}from'ckeditor5/src/core.js';import{priorities as _0x3283b0}from'ckeditor5/src/utils.js';import{Users as _0x76c3b1}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2e110a from'../commentsrepository.js';export default class Z extends _0x48a733{constructor(_0x5ca830){super(_0x5ca830),this[_0xcbe5('0x0')][_0xcbe5('0x5')]['define'](_0xcbe5('0x9'),_0xcbe5('0xd'));}[_0xcbe5('0xb')](){const _0x16ba74=this[_0xcbe5('0x0')],_0x5e9942=_0x16ba74[_0xcbe5('0x4')][_0xcbe5('0x6')](_0xcbe5('0xc')),_0x47bc99=_0x16ba74[_0xcbe5('0x2')][_0xcbe5('0x6')](_0x76c3b1);_0x5e9942&&(_0x5e9942['on'](_0xcbe5('0x11'),(_0x34d69c,[,_0x4f0191])=>{_0x4f0191[_0xcbe5('0xe')]={'comments':!0x0,'user_id':_0x47bc99['me']['id']};},{'priority':_0x3283b0[_0xcbe5('0x7')]+0xa}),this[_0xcbe5('0x10')](_0x5e9942,'dataInsert',this[_0xcbe5('0x1')]));}['_handleImportedData'](_0x13027a,_0x1a9fac){const {comment_threads:_0x31037d}=_0x1a9fac;_0x31037d&&_0x31037d[_0xcbe5('0xa')](({thread_id:_0x5a0c27,comments:_0x325f0a,is_resolved:_0x263d78})=>{const _0x321305=new Date(),_0x439722=_0x325f0a[_0xcbe5('0x3')](({author:_0x4175f9,content:_0x5a2be8,created_at:_0x338d7f})=>({'content':_0x5a2be8,'authorId':this[_0xcbe5('0x0')][_0xcbe5('0x2')][_0xcbe5('0x6')](_0x76c3b1)['me']['id'],'createdAt':_0x321305,'attributes':{'@external':{'authorName':_0x4175f9,'createdAt':_0x338d7f?new Date(_0x338d7f):new Date(),'source':'importWord'}}})),_0x1936d4=this[_0xcbe5('0x0')]['config'][_0xcbe5('0x6')](_0xcbe5('0xf'));this[_0xcbe5('0x0')]['plugins']['get'](_0x2e110a)[_0xcbe5('0x8')]({'channelId':_0x1936d4,'threadId':_0x5a0c27,'comments':_0x439722,'resolvedAt':_0x263d78?_0x321305:null});});}}
@@ -8,7 +8,7 @@
8
8
  import { Editor, type EditorConfig } from 'ckeditor5/src/core.js';
9
9
  import CommentEditorUI from './commenteditorui.js';
10
10
  import { type PlaceholderableElement } from 'ckeditor5/src/engine.js';
11
- declare const CommentEditor_base: import("ckeditor5/src/utils.js").Mixed<import("ckeditor5/src/utils.js").Mixed<typeof Editor, import("ckeditor5/src/core.js").DataApi>, import("ckeditor5/src/utils.js").Observable>;
11
+ declare const CommentEditor_base: import("ckeditor5/src/utils.js").Mixed<typeof Editor, import("ckeditor5/src/utils.js").Observable>;
12
12
  export default class CommentEditor extends CommentEditor_base {
13
13
  static defaultPlugins: EditorConfig['plugins'];
14
14
  /**
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x395b=['model','document','end','change','change:placeholder','set','placeholder','init','destroy','placeholderElement','view','_updatePlaceholder','getRoot','getChild','data','low','initPlugins','create','editing','setSelection','createRoot','focus','then','get','name','defaultPlugins','childCount'];(function(_0x329030,_0x395b83){const _0x2ba0fe=function(_0x443a04){while(--_0x443a04){_0x329030['push'](_0x329030['shift']());}};_0x2ba0fe(++_0x395b83);}(_0x395b,0x138));const _0x2ba0=function(_0x329030,_0x395b83){_0x329030=_0x329030-0x0;let _0x2ba0fe=_0x395b[_0x329030];return _0x2ba0fe;};import{Editor as _0x380658,DataApiMixin as _0x40e1b1}from'ckeditor5/src/core.js';import _0x375e94 from'./commenteditorui.js';import{ObservableMixin as _0x36d38d}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x1c7bc3,disablePlaceholder as _0x1818b7}from'ckeditor5/src/engine.js';import{Clipboard as _0x25703a}from'ckeditor5/src/clipboard.js';import{Enter as _0x175388,ShiftEnter as _0x152ee9}from'ckeditor5/src/enter.js';import{SelectAll as _0x1b9cc2}from'ckeditor5/src/select-all.js';import{Typing as _0x11715e}from'ckeditor5/src/typing.js';import{Undo as _0x154411}from'ckeditor5/src/undo.js';import{Paragraph as _0x782062}from'ckeditor5/src/paragraph.js';const Mt=[_0x25703a,_0x175388,_0x152ee9,_0x1b9cc2,_0x11715e,_0x154411,_0x782062];class Nt extends _0x36d38d(_0x40e1b1(_0x380658)){constructor(_0x124efa={}){(_0x124efa=Object['assign']({},_0x124efa))['plugins']||(_0x124efa['plugins']=Nt[_0x2ba0('0xa')]),super(_0x124efa),this['ui']=new _0x375e94(this),this[_0x2ba0('0x11')](_0x2ba0('0x12'),''),this[_0x2ba0('0xc')][_0x2ba0('0xd')]['on'](_0x2ba0('0xf'),()=>this[_0x2ba0('0x17')](),{'priority':_0x2ba0('0x0')}),this['on'](_0x2ba0('0x10'),()=>this['_updatePlaceholder']()),this[_0x2ba0('0xc')][_0x2ba0('0xd')][_0x2ba0('0x5')]();}[_0x2ba0('0x2')](){const _0x31465b=this['config'][_0x2ba0('0x8')]('initialData')||'';return this[_0x2ba0('0x1')]()[_0x2ba0('0x7')](()=>this['ui'][_0x2ba0('0x13')]())[_0x2ba0('0x7')](()=>this[_0x2ba0('0x1a')][_0x2ba0('0x13')](_0x31465b))[_0x2ba0('0x7')](()=>this['fire']('ready'));}[_0x2ba0('0x14')](){return super[_0x2ba0('0x14')]()[_0x2ba0('0x7')](()=>this['ui'][_0x2ba0('0x14')]());}[_0x2ba0('0x6')](){this[_0x2ba0('0xc')][_0x2ba0('0xf')](_0x1daa87=>{const _0x4c7ae2=this[_0x2ba0('0xc')]['document'][_0x2ba0('0x18')](),_0x1b00e7=_0x4c7ae2&&_0x4c7ae2['getChild'](_0x4c7ae2[_0x2ba0('0xb')]-0x1);_0x1daa87[_0x2ba0('0x4')](_0x1b00e7,_0x2ba0('0xe')),this[_0x2ba0('0x3')][_0x2ba0('0x16')][_0x2ba0('0x6')]();});}['_updatePlaceholder'](){const _0x24bd67=this['editing']['view'],_0x164b5c=_0x24bd67[_0x2ba0('0xd')][_0x2ba0('0x18')](),_0x37f3f9=_0x164b5c[_0x2ba0('0x19')](0x0);_0x164b5c[_0x2ba0('0xb')]>0x1||!_0x37f3f9||'p'!=_0x37f3f9[_0x2ba0('0x9')]?this[_0x2ba0('0x15')]&&this['placeholderElement'][_0x2ba0('0x12')]&&(_0x1818b7(_0x24bd67,this[_0x2ba0('0x15')]),this[_0x2ba0('0x15')]=void 0x0):(this[_0x2ba0('0x12')]&&(_0x37f3f9['placeholder']=this[_0x2ba0('0x12')]),_0x1c7bc3({'view':_0x24bd67,'element':_0x37f3f9,'keepOnFocus':!0x0}),this['placeholderElement']=_0x37f3f9);}}Nt[_0x2ba0('0xa')]=Mt;export default Nt;
23
+ const _0x2a68=['ready','_updatePlaceholder','placeholder','view','create','childCount','placeholderElement','change','setSelection','config','editing','focus','getRoot','plugins','getChild','init','createRoot','then','initialData','destroy','name','fire','defaultPlugins','document','model','low','initPlugins','data'];(function(_0x132a7e,_0x2a685c){const _0x55ac7c=function(_0x376e6b){while(--_0x376e6b){_0x132a7e['push'](_0x132a7e['shift']());}};_0x55ac7c(++_0x2a685c);}(_0x2a68,0xb4));const _0x55ac=function(_0x132a7e,_0x2a685c){_0x132a7e=_0x132a7e-0x0;let _0x55ac7c=_0x2a68[_0x132a7e];return _0x55ac7c;};import{Editor as _0x37f54c,DataApiMixin as _0x58bfa9}from'ckeditor5/src/core.js';import _0x57fe92 from'./commenteditorui.js';import{ObservableMixin as _0x33f6ca}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x219f6e,disablePlaceholder as _0x30cb39}from'ckeditor5/src/engine.js';import{Clipboard as _0x17038e}from'ckeditor5/src/clipboard.js';import{Enter as _0x597ea0,ShiftEnter as _0x291e98}from'ckeditor5/src/enter.js';import{SelectAll as _0x5c8339}from'ckeditor5/src/select-all.js';import{Typing as _0x4a1b30}from'ckeditor5/src/typing.js';import{Undo as _0x1d78ed}from'ckeditor5/src/undo.js';import{Paragraph as _0x1ddb7e}from'ckeditor5/src/paragraph.js';const Mt=[_0x17038e,_0x597ea0,_0x291e98,_0x5c8339,_0x4a1b30,_0x1d78ed,_0x1ddb7e];class Nt extends _0x33f6ca(_0x58bfa9(_0x37f54c)){constructor(_0x2bef43={}){(_0x2bef43=Object['assign']({},_0x2bef43))[_0x55ac('0x1')]||(_0x2bef43['plugins']=Nt[_0x55ac('0xa')]),super(_0x2bef43),this['ui']=new _0x57fe92(this),this['set']('placeholder',''),this[_0x55ac('0xc')][_0x55ac('0xb')]['on'](_0x55ac('0x17'),()=>this[_0x55ac('0x11')](),{'priority':_0x55ac('0xd')}),this['on']('change:placeholder',()=>this[_0x55ac('0x11')]()),this[_0x55ac('0xc')][_0x55ac('0xb')][_0x55ac('0x4')]();}[_0x55ac('0x14')](){const _0x5a265c=this[_0x55ac('0x19')]['get'](_0x55ac('0x6'))||'';return this[_0x55ac('0xe')]()[_0x55ac('0x5')](()=>this['ui'][_0x55ac('0x3')]())[_0x55ac('0x5')](()=>this[_0x55ac('0xf')][_0x55ac('0x3')](_0x5a265c))['then'](()=>this[_0x55ac('0x9')](_0x55ac('0x10')));}[_0x55ac('0x7')](){return super[_0x55ac('0x7')]()[_0x55ac('0x5')](()=>this['ui'][_0x55ac('0x7')]());}[_0x55ac('0x1b')](){this[_0x55ac('0xc')][_0x55ac('0x17')](_0x703724=>{const _0x1ab7f7=this[_0x55ac('0xc')][_0x55ac('0xb')][_0x55ac('0x0')](),_0x4a1419=_0x1ab7f7&&_0x1ab7f7['getChild'](_0x1ab7f7[_0x55ac('0x15')]-0x1);_0x703724[_0x55ac('0x18')](_0x4a1419,'end'),this['editing'][_0x55ac('0x13')]['focus']();});}[_0x55ac('0x11')](){const _0x5635fb=this[_0x55ac('0x1a')][_0x55ac('0x13')],_0x898d57=_0x5635fb[_0x55ac('0xb')][_0x55ac('0x0')](),_0x5ad65b=_0x898d57[_0x55ac('0x2')](0x0);_0x898d57[_0x55ac('0x15')]>0x1||!_0x5ad65b||'p'!=_0x5ad65b[_0x55ac('0x8')]?this[_0x55ac('0x16')]&&this[_0x55ac('0x16')][_0x55ac('0x12')]&&(_0x30cb39(_0x5635fb,this[_0x55ac('0x16')]),this[_0x55ac('0x16')]=void 0x0):(this[_0x55ac('0x12')]&&(_0x5ad65b[_0x55ac('0x12')]=this[_0x55ac('0x12')]),_0x219f6e({'view':_0x5635fb,'element':_0x5ad65b,'keepOnFocus':!0x0}),this['placeholderElement']=_0x5ad65b);}}Nt[_0x55ac('0xa')]=Mt;export default Nt;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39ed=['view','destroy','init','attachDomRoot','focusTracker','bind','document','fire','element','setEditableElement','ready','editable','locale','editing','render','editor'];(function(_0x5a4274,_0x39edcf){const _0xc839e7=function(_0x341c03){while(--_0x341c03){_0x5a4274['push'](_0x5a4274['shift']());}};_0xc839e7(++_0x39edcf);}(_0x39ed,0x1df));const _0xc839=function(_0x5a4274,_0x39edcf){_0x5a4274=_0x5a4274-0x0;let _0xc839e7=_0x39ed[_0x5a4274];return _0xc839e7;};import{EditorUI as _0x53e646}from'ckeditor5/src/ui.js';import _0x14b67c from'./commenteditoruiview.js';export default class Ft extends _0x53e646{constructor(_0x2a5f47){super(_0x2a5f47),this[_0xc839('0x1')]=new _0x14b67c(_0x2a5f47[_0xc839('0xd')],_0x2a5f47[_0xc839('0xe')]['view']);}get[_0xc839('0x9')](){return this[_0xc839('0x1')]['element'];}[_0xc839('0x3')](){const _0x2b9338=this[_0xc839('0x0')][_0xc839('0xe')]['view'],_0xd91282=this[_0xc839('0x1')][_0xc839('0xc')],_0x22d384=_0x2b9338[_0xc839('0x7')]['getRoot']();_0xd91282['name']=_0x22d384['rootName'],this[_0xc839('0x1')][_0xc839('0xf')]();const _0x38aefd=_0xd91282['element'];this[_0xc839('0xa')](_0xd91282['name'],_0x38aefd),this[_0xc839('0x1')][_0xc839('0xc')][_0xc839('0x6')]('isFocused')['to'](this[_0xc839('0x5')]),_0x2b9338[_0xc839('0x4')](_0x38aefd),this[_0xc839('0x8')](_0xc839('0xb'));}[_0xc839('0x2')](){super[_0xc839('0x2')](),this[_0xc839('0x1')][_0xc839('0x2')]();}}
23
+ const _0x5335=['destroy','document','bind','ready','editable','fire','name','render','attachDomRoot','isFocused','element','init','getRoot','view','editing','setEditableElement','editor'];(function(_0x8f97a7,_0x5335dd){const _0x52affb=function(_0x44a7ad){while(--_0x44a7ad){_0x8f97a7['push'](_0x8f97a7['shift']());}};_0x52affb(++_0x5335dd);}(_0x5335,0x89));const _0x52af=function(_0x8f97a7,_0x5335dd){_0x8f97a7=_0x8f97a7-0x0;let _0x52affb=_0x5335[_0x8f97a7];return _0x52affb;};import{EditorUI as _0x576eb6}from'ckeditor5/src/ui.js';import _0x346c08 from'./commenteditoruiview.js';export default class Ft extends _0x576eb6{constructor(_0x211c31){super(_0x211c31),this[_0x52af('0xc')]=new _0x346c08(_0x211c31['locale'],_0x211c31[_0x52af('0xd')][_0x52af('0xc')]);}get[_0x52af('0x9')](){return this[_0x52af('0xc')]['element'];}[_0x52af('0xa')](){const _0x54502b=this[_0x52af('0xf')][_0x52af('0xd')][_0x52af('0xc')],_0x37db8b=this[_0x52af('0xc')][_0x52af('0x3')],_0x26da1e=_0x54502b[_0x52af('0x0')][_0x52af('0xb')]();_0x37db8b[_0x52af('0x5')]=_0x26da1e['rootName'],this[_0x52af('0xc')][_0x52af('0x6')]();const _0x27c9c5=_0x37db8b['element'];this[_0x52af('0xe')](_0x37db8b[_0x52af('0x5')],_0x27c9c5),this['view'][_0x52af('0x3')][_0x52af('0x1')](_0x52af('0x8'))['to'](this['focusTracker']),_0x54502b[_0x52af('0x7')](_0x27c9c5),this[_0x52af('0x4')](_0x52af('0x2'));}[_0x52af('0x10')](){super['destroy'](),this['view'][_0x52af('0x10')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1993=['render','Comment\x20editor','editable','_createVoiceLabel','main','ck-editor','ck-voice-label','_voiceLabelView','focus','ck-reset','extendTemplate','ck-editor__aria-label_','presentation','ck-comment__input','text','cke-editor__aria-label_','createCollection','comment','uiLanguage','div','setTemplate','ck-editor__main','uiLanguageDirection'];(function(_0x39da94,_0x199398){const _0x297d53=function(_0x4d1449){while(--_0x4d1449){_0x39da94['push'](_0x39da94['shift']());}};_0x297d53(++_0x199398);}(_0x1993,0x157));const _0x297d=function(_0x39da94,_0x199398){_0x39da94=_0x39da94-0x0;let _0x297d53=_0x1993[_0x39da94];return _0x297d53;};import{InlineEditableUIView as _0x52d145,EditorUIView as _0x4aea4b,LabelView as _0x6ca4c5}from'ckeditor5/src/ui.js';import{uid as _0x25d4b9}from'ckeditor5/src/utils.js';import{getTranslation as _0x232248}from'../../../utils/common-translations.js';export default class Rt extends _0x4aea4b{constructor(_0x34b3eb,_0x2eee3e){super(_0x34b3eb);const _0x192004=_0x25d4b9();this[_0x297d('0x6')]=this[_0x297d('0x12')](),this['editable']=new _0x52d145(_0x34b3eb,_0x2eee3e),this[_0x297d('0x9')]=this[_0x297d('0x5')](_0x192004,_0x34b3eb),this[_0x297d('0x16')]({'tag':_0x297d('0x15'),'attributes':{'class':[_0x297d('0xb'),_0x297d('0x7'),'ck-rounded-corners',_0x297d('0xf')],'role':_0x297d('0x13'),'dir':_0x34b3eb[_0x297d('0x1')],'lang':_0x34b3eb[_0x297d('0x14')],'aria-labelledby':_0x297d('0x11')+_0x192004},'children':[this['_voiceLabelView'],{'tag':_0x297d('0x15'),'attributes':{'class':_0x297d('0x0'),'role':_0x297d('0xe')},'children':this[_0x297d('0x6')]}]});}[_0x297d('0x2')](){super['render'](),this['main']['add'](this[_0x297d('0x4')]);}[_0x297d('0xa')](){this[_0x297d('0x4')]['element']['focus']();}['_createVoiceLabel'](_0x49ff9c,_0x2e449a){const _0x2ace56=new _0x6ca4c5();return _0x2ace56[_0x297d('0x10')]=_0x232248(_0x2e449a,_0x297d('0x3')),_0x2ace56[_0x297d('0xc')]({'attributes':{'id':_0x297d('0xd')+_0x49ff9c,'class':_0x297d('0x8')}}),_0x2ace56;}}
23
+ const _0x3091=['extendTemplate','text','cke-editor__aria-label_','setTemplate','element','main','editable','ck-rounded-corners','ck-voice-label','ck-editor','focus','_createVoiceLabel','ck-comment__input','ck-editor__main','_voiceLabelView','comment','presentation','render','div','uiLanguage','uiLanguageDirection','Comment\x20editor','ck-editor__aria-label_'];(function(_0x9f6711,_0x30916d){const _0x535ca9=function(_0x235fa7){while(--_0x235fa7){_0x9f6711['push'](_0x9f6711['shift']());}};_0x535ca9(++_0x30916d);}(_0x3091,0x8d));const _0x535c=function(_0x9f6711,_0x30916d){_0x9f6711=_0x9f6711-0x0;let _0x535ca9=_0x3091[_0x9f6711];return _0x535ca9;};import{InlineEditableUIView as _0x17da5e,EditorUIView as _0x42cee1,LabelView as _0x2a4c46}from'ckeditor5/src/ui.js';import{uid as _0x651b04}from'ckeditor5/src/utils.js';import{getTranslation as _0x41f6ca}from'../../../utils/common-translations.js';export default class Rt extends _0x42cee1{constructor(_0x2306e4,_0x302d1f){super(_0x2306e4);const _0x130981=_0x651b04();this[_0x535c('0x2')]=this['createCollection'](),this[_0x535c('0x3')]=new _0x17da5e(_0x2306e4,_0x302d1f),this[_0x535c('0xb')]=this[_0x535c('0x8')](_0x130981,_0x2306e4),this[_0x535c('0x0')]({'tag':_0x535c('0xf'),'attributes':{'class':['ck-reset',_0x535c('0x6'),_0x535c('0x4'),_0x535c('0x9')],'role':_0x535c('0xc'),'dir':_0x2306e4[_0x535c('0x11')],'lang':_0x2306e4[_0x535c('0x10')],'aria-labelledby':_0x535c('0x16')+_0x130981},'children':[this[_0x535c('0xb')],{'tag':_0x535c('0xf'),'attributes':{'class':_0x535c('0xa'),'role':_0x535c('0xd')},'children':this[_0x535c('0x2')]}]});}['render'](){super[_0x535c('0xe')](),this[_0x535c('0x2')]['add'](this[_0x535c('0x3')]);}[_0x535c('0x7')](){this['editable'][_0x535c('0x1')][_0x535c('0x7')]();}[_0x535c('0x8')](_0x5e3250,_0x17c927){const _0x51f746=new _0x2a4c46();return _0x51f746[_0x535c('0x15')]=_0x41f6ca(_0x17c927,_0x535c('0x12')),_0x51f746[_0x535c('0x14')]({'attributes':{'id':_0x535c('0x13')+_0x5e3250,'class':_0x535c('0x5')}}),_0x51f746;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1024=['view','_isAttached','update','updateComment','remove','stopListening','resolve','_localUser','reopen','model','listenTo','getComment','removeComment','submitCommentThread','submit','reopenCommentThread','addComment'];(function(_0x1b41de,_0x1024cc){var _0x1dda7f=function(_0x515a2c){while(--_0x515a2c){_0x1b41de['push'](_0x1b41de['shift']());}};_0x1dda7f(++_0x1024cc);}(_0x1024,0x6b));var _0x1dda=function(_0x1b41de,_0x1024cc){_0x1b41de=_0x1b41de-0x0;var _0x1dda7f=_0x1024[_0x1b41de];return _0x1dda7f;};import{ObservableMixin as _0x161168}from'ckeditor5/src/utils.js';export default class ut extends _0x161168(){constructor(_0x234bc0,_0x50d351){super(),this[_0x1dda('0x4')]=_0x234bc0,this['model'][_0x1dda('0xd')]=!0x0,this[_0x1dda('0xc')]=_0x50d351,this['listenTo'](_0x50d351,_0x1dda('0x8'),()=>this[_0x1dda('0x9')]()),this[_0x1dda('0x5')](_0x50d351,'removeCommentThread',()=>this[_0x1dda('0x10')]()),this[_0x1dda('0x5')](_0x50d351,'resolveCommentThread',()=>this[_0x1dda('0x1')]()),this[_0x1dda('0x5')](_0x50d351,_0x1dda('0xa'),()=>this[_0x1dda('0x3')]()),this[_0x1dda('0x5')](_0x50d351,_0x1dda('0xb'),(_0x59c541,_0x2b55f8)=>this['addComment'](_0x2b55f8)),this[_0x1dda('0x5')](_0x50d351,_0x1dda('0xf'),(_0x548561,_0x5f52ed,_0x60392d)=>this[_0x1dda('0xf')](_0x5f52ed,_0x60392d)),this['listenTo'](_0x50d351,'removeComment',(_0x219ceb,_0x429957)=>this[_0x1dda('0x7')](_0x429957));}[_0x1dda('0x9')](){this[_0x1dda('0x4')][_0x1dda('0x9')]();}[_0x1dda('0x10')](){this[_0x1dda('0x4')][_0x1dda('0x10')]();}[_0x1dda('0x1')](){this[_0x1dda('0x4')]['isResolved']||this[_0x1dda('0x4')][_0x1dda('0x1')]();}[_0x1dda('0x3')](){this[_0x1dda('0x4')]['isResolved']&&this[_0x1dda('0x4')][_0x1dda('0x3')]();}[_0x1dda('0xb')](_0x3d8831){this[_0x1dda('0x4')]['addComment']({'content':_0x3d8831,'authorId':this[_0x1dda('0xc')][_0x1dda('0x2')]['id']});}[_0x1dda('0xf')](_0x4b6cc7,_0x45be00){this[_0x1dda('0x4')]['getComment'](_0x4b6cc7)[_0x1dda('0xe')]({'content':_0x45be00});}[_0x1dda('0x7')](_0x368a34){this[_0x1dda('0x4')][_0x1dda('0x6')](_0x368a34)[_0x1dda('0x10')]();}['destroy'](){this[_0x1dda('0x0')](),this[_0x1dda('0x4')][_0x1dda('0xd')]=!0x1;}}
23
+ var _0x1226=['removeCommentThread','removeComment','isResolved','listenTo','reopen','view','resolve','getComment','update','submit','_isAttached','addComment','submitCommentThread','reopenCommentThread','model','updateComment','remove'];(function(_0x2848f8,_0x1226c1){var _0x47505d=function(_0x37bb28){while(--_0x37bb28){_0x2848f8['push'](_0x2848f8['shift']());}};_0x47505d(++_0x1226c1);}(_0x1226,0x10d));var _0x4750=function(_0x2848f8,_0x1226c1){_0x2848f8=_0x2848f8-0x0;var _0x47505d=_0x1226[_0x2848f8];return _0x47505d;};import{ObservableMixin as _0x181cad}from'ckeditor5/src/utils.js';export default class ut extends _0x181cad(){constructor(_0x30b4f9,_0x6d64de){super(),this[_0x4750('0x0')]=_0x30b4f9,this[_0x4750('0x0')]['_isAttached']=!0x0,this['view']=_0x6d64de,this[_0x4750('0x6')](_0x6d64de,_0x4750('0xf'),()=>this[_0x4750('0xc')]()),this[_0x4750('0x6')](_0x6d64de,_0x4750('0x3'),()=>this[_0x4750('0x2')]()),this[_0x4750('0x6')](_0x6d64de,'resolveCommentThread',()=>this[_0x4750('0x9')]()),this[_0x4750('0x6')](_0x6d64de,_0x4750('0x10'),()=>this[_0x4750('0x7')]()),this[_0x4750('0x6')](_0x6d64de,_0x4750('0xe'),(_0x508b90,_0x57e7b2)=>this[_0x4750('0xe')](_0x57e7b2)),this[_0x4750('0x6')](_0x6d64de,_0x4750('0x1'),(_0xcc8adb,_0x2c2a3a,_0x55cf8c)=>this[_0x4750('0x1')](_0x2c2a3a,_0x55cf8c)),this[_0x4750('0x6')](_0x6d64de,_0x4750('0x4'),(_0x5a9921,_0x205cb1)=>this[_0x4750('0x4')](_0x205cb1));}[_0x4750('0xc')](){this[_0x4750('0x0')][_0x4750('0xc')]();}[_0x4750('0x2')](){this[_0x4750('0x0')][_0x4750('0x2')]();}[_0x4750('0x9')](){this['model'][_0x4750('0x5')]||this['model'][_0x4750('0x9')]();}[_0x4750('0x7')](){this[_0x4750('0x0')][_0x4750('0x5')]&&this[_0x4750('0x0')][_0x4750('0x7')]();}[_0x4750('0xe')](_0x3591c9){this['model'][_0x4750('0xe')]({'content':_0x3591c9,'authorId':this[_0x4750('0x8')]['_localUser']['id']});}[_0x4750('0x1')](_0x1236e0,_0x481cb1){this['model'][_0x4750('0xa')](_0x1236e0)[_0x4750('0xb')]({'content':_0x481cb1});}[_0x4750('0x4')](_0x47513f){this['model'][_0x4750('0xa')](_0x47513f)[_0x4750('0x2')]();}['destroy'](){this['stopListening'](),this[_0x4750('0x0')][_0x4750('0xd')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ef2=['submitCommentThread','set','delegate','isReadOnly','editorConfig','element','bind','locale','destroy','isUnlinked','commentThreadInputView','focus','isSubmitted','fire','hasDirtyComment','updateComment','Reply\x20to\x20reopen\x20discussion...','_localUser','resolveCommentThread','Reply','isDirty','commentThreadHeaderView','editorDestroyed','isActive','stop','canComment','submit','commentsListView','disabledSubmit','assign','length','isResolved','submitLabel','listenTo','_model','isResolvable','reopenCommentThread','cancel','CommentView','removeComment','commentInputView','placeholder','removeCommentThread','value','_config','showInput','editorReady'];(function(_0x27d599,_0x3ef2ab){const _0x2ec019=function(_0xff535e){while(--_0xff535e){_0x27d599['push'](_0x27d599['shift']());}};_0x2ec019(++_0x3ef2ab);}(_0x3ef2,0x10b));const _0x2ec0=function(_0x27d599,_0x3ef2ab){_0x27d599=_0x27d599-0x0;let _0x2ec019=_0x3ef2[_0x27d599];return _0x2ec019;};import{View as _0x64d8f1}from'ckeditor5/src/ui.js';import _0x324ef4 from'./commentthreadinputview.js';import _0x35b813 from'./commentslistview.js';import _0x3e30fe from'./commentthreadheaderview.js';import{getTranslation as _0x3becca}from'../../../utils/common-translations.js';export default class Ut extends _0x64d8f1{constructor(_0x5f08ce,_0x2ae2fd,_0x16b876,_0x2c7dc0){super(_0x5f08ce),this[_0x2ec0('0x10')]('isActive',!0x1),this[_0x2ec0('0x10')](_0x2ec0('0x23'),!0x1),this[_0x2ec0('0x2')]=_0x2ae2fd,this[_0x2ec0('0x20')]=_0x16b876,this[_0x2ec0('0xc')]=_0x2c7dc0,this['commentThreadHeaderView']=new _0x3e30fe(_0x5f08ce,_0x2ae2fd),this[_0x2ec0('0x24')][_0x2ec0('0x11')]('reopenCommentThread')['to'](this),this[_0x2ec0('0x1')](this,_0x2ec0('0x4'),()=>{this[_0x2ec0('0x1a')]();}),this[_0x2ec0('0x2a')]=new _0x35b813(_0x5f08ce,_0x2ae2fd,Object[_0x2ec0('0x2c')]({'CommentView':this[_0x2ec0('0xc')][_0x2ec0('0x6')]},_0x2c7dc0)),this[_0x2ec0('0x2a')][_0x2ec0('0x11')]('removeComment')['to'](this),this[_0x2ec0('0x2a')]['delegate'](_0x2ec0('0x1e'))['to'](this),this[_0x2ec0('0x2a')][_0x2ec0('0x11')](_0x2ec0('0x21'))['to'](this),this[_0x2ec0('0x2a')][_0x2ec0('0x11')]('editorReady')['to'](this),this[_0x2ec0('0x2a')][_0x2ec0('0x11')](_0x2ec0('0x25'))['to'](this),this[_0x2ec0('0x2a')][_0x2ec0('0x15')](_0x2ec0('0x26'))['to'](this),this[_0x2ec0('0x1')](this,_0x2ec0('0x21'),()=>{this[_0x2ec0('0x1a')]();}),this[_0x2ec0('0x10')]('length',this[_0x2ec0('0x2a')][_0x2ec0('0x2d')]),this[_0x2ec0('0x15')]('length')['to'](this['commentsListView'],_0x2ec0('0x2d')),this[_0x2ec0('0x19')]=this['_createCommentThreadInputView'](),this[_0x2ec0('0x19')][_0x2ec0('0x11')](_0x2ec0('0xe'))['to'](this),this[_0x2ec0('0x19')][_0x2ec0('0x11')]('editorDestroyed')['to'](this),this['on'](_0x2ec0('0x7'),()=>this['focus']()),this[_0x2ec0('0x15')](_0x2ec0('0x23'))['to'](this[_0x2ec0('0x2a')],_0x2ec0('0x1d'),this[_0x2ec0('0x19')][_0x2ec0('0x8')],_0x2ec0('0xb'),(_0x4dbec4,_0x4d23e1)=>_0x4dbec4||!!_0x4d23e1),this[_0x2ec0('0x15')](_0x2ec0('0x18'))['to'](_0x2ae2fd,'unlinkedAt',_0x34722d=>!!_0x34722d);}[_0x2ec0('0x1a')](){this[_0x2ec0('0x14')][_0x2ec0('0x1a')]();}async['destroy'](){this['isDirty']=!0x1,this[_0x2ec0('0x2a')][_0x2ec0('0x17')](),await this[_0x2ec0('0x19')][_0x2ec0('0x17')](),super[_0x2ec0('0x17')]();}['_createCommentThreadInputView'](){const _0x38e632=new _0x324ef4(this[_0x2ec0('0x16')],this[_0x2ec0('0x20')],this[_0x2ec0('0xc')][_0x2ec0('0x13')]),_0x1e9141=_0x38e632[_0x2ec0('0x8')];return _0x38e632['bind'](_0x2ec0('0xd'))['to'](this,_0x2ec0('0x26'),this['_model'],_0x2ec0('0x12'),this[_0x2ec0('0x2')],_0x2ec0('0x28'),this['_model'],'archivedAt',_0x1e9141,'value',(_0x5b3dd4,_0x33fe6e,_0x1461c6,_0x43007b,_0x2e9809)=>!!_0x2e9809||!!_0x43007b&&_0x1461c6&&!_0x33fe6e||_0x5b3dd4&&_0x1461c6&&!_0x33fe6e),_0x1e9141['bind'](_0x2ec0('0x9'))['to'](this,_0x2ec0('0x2d'),this[_0x2ec0('0x2')],_0x2ec0('0x3'),this[_0x2ec0('0x2')],_0x2ec0('0x2e'),(_0x24a64f,_0x50ff2,_0xea5010)=>{let _0x2e6c31;return _0x2e6c31=_0xea5010&&_0x50ff2?_0x2ec0('0x1f'):_0x24a64f?'Reply...':'Write\x20a\x20comment...',_0x3becca(this[_0x2ec0('0x16')],_0x2e6c31);}),_0x1e9141[_0x2ec0('0x15')](_0x2ec0('0x0'))['to'](this,_0x2ec0('0x2d'),_0x247f74=>_0x3becca(this[_0x2ec0('0x16')],_0x247f74?_0x2ec0('0x22'):'Comment')),_0x1e9141['on'](_0x2ec0('0x29'),(_0x1f57e9,_0x52356c)=>{this['fire']('addComment',_0x52356c),this[_0x2ec0('0x2')]['isResolved']&&this['_model'][_0x2ec0('0x3')]&&this['fire']('reopenCommentThread',this[_0x2ec0('0x2')]['id']),this[_0x2ec0('0x2')][_0x2ec0('0x1b')]||this['fire'](_0x2ec0('0xf'));}),_0x1e9141['on'](_0x2ec0('0x5'),()=>{this[_0x2ec0('0x1a')]();}),_0x1e9141['bind'](_0x2ec0('0x2b'))['to'](this[_0x2ec0('0x2')],'isReadOnly'),_0x1e9141['on'](_0x2ec0('0x5'),_0x4c87c6=>{0x0==this['length']&&(this[_0x2ec0('0x1c')](_0x2ec0('0xa')),_0x4c87c6[_0x2ec0('0x27')]());}),this['on']('change:isActive',(_0x386bc0,_0x142707,_0x2f2457)=>{_0x2f2457||this[_0x2ec0('0x2d')]||_0x1e9141['value']||this[_0x2ec0('0x1c')](_0x2ec0('0xa'));}),_0x38e632;}}
23
+ const _0x112c=['editorDestroyed','isSubmitted','commentThreadInputView','length','assign','addComment','commentInputView','archivedAt','hasDirtyComment','value','removeCommentThread','submitCommentThread','commentThreadHeaderView','isActive','set','fire','Comment','bind','_model','cancel','updateComment','_createCommentThreadInputView','locale','submitLabel','Write\x20a\x20comment...','showInput','CommentView','isDirty','editorConfig','resolveCommentThread','isUnlinked','isReadOnly','unlinkedAt','delegate','commentsListView','change:isActive','editorReady','submit','isResolved','disabledSubmit','Reply\x20to\x20reopen\x20discussion...','focus','element','destroy','removeComment','_localUser','listenTo','_config','canComment','isResolvable'];(function(_0x45b605,_0x112c6f){const _0x16ad72=function(_0x4bcf16){while(--_0x4bcf16){_0x45b605['push'](_0x45b605['shift']());}};_0x16ad72(++_0x112c6f);}(_0x112c,0x189));const _0x16ad=function(_0x45b605,_0x112c6f){_0x45b605=_0x45b605-0x0;let _0x16ad72=_0x112c[_0x45b605];return _0x16ad72;};import{View as _0x482559}from'ckeditor5/src/ui.js';import _0x33f71d from'./commentthreadinputview.js';import _0x57827e from'./commentslistview.js';import _0x4b6089 from'./commentthreadheaderview.js';import{getTranslation as _0x38f66c}from'../../../utils/common-translations.js';export default class Ut extends _0x482559{constructor(_0x369dbc,_0x589cb3,_0x32c581,_0x383236){super(_0x369dbc),this[_0x16ad('0x15')]('isActive',!0x1),this['set'](_0x16ad('0x22'),!0x1),this[_0x16ad('0x19')]=_0x589cb3,this[_0x16ad('0x2')]=_0x32c581,this[_0x16ad('0x4')]=_0x383236,this[_0x16ad('0x13')]=new _0x4b6089(_0x369dbc,_0x589cb3),this[_0x16ad('0x13')]['delegate']('reopenCommentThread')['to'](this),this[_0x16ad('0x3')](this,'reopenCommentThread',()=>{this[_0x16ad('0x30')]();}),this['commentsListView']=new _0x57827e(_0x369dbc,_0x589cb3,Object[_0x16ad('0xb')]({'CommentView':this['_config'][_0x16ad('0x21')]},_0x383236)),this[_0x16ad('0x29')][_0x16ad('0x28')](_0x16ad('0x1'))['to'](this),this['commentsListView'][_0x16ad('0x28')](_0x16ad('0x1b'))['to'](this),this[_0x16ad('0x29')][_0x16ad('0x28')](_0x16ad('0x24'))['to'](this),this[_0x16ad('0x29')]['delegate']('editorReady')['to'](this),this[_0x16ad('0x29')][_0x16ad('0x28')](_0x16ad('0x7'))['to'](this),this['commentsListView'][_0x16ad('0x18')](_0x16ad('0x14'))['to'](this),this[_0x16ad('0x3')](this,'resolveCommentThread',()=>{this[_0x16ad('0x30')]();}),this[_0x16ad('0x15')](_0x16ad('0xa'),this[_0x16ad('0x29')][_0x16ad('0xa')]),this[_0x16ad('0x18')]('length')['to'](this[_0x16ad('0x29')],_0x16ad('0xa')),this[_0x16ad('0x9')]=this[_0x16ad('0x1c')](),this[_0x16ad('0x9')][_0x16ad('0x28')](_0x16ad('0x2b'))['to'](this),this[_0x16ad('0x9')]['delegate'](_0x16ad('0x7'))['to'](this),this['on'](_0x16ad('0x1'),()=>this['focus']()),this[_0x16ad('0x18')](_0x16ad('0x22'))['to'](this[_0x16ad('0x29')],_0x16ad('0xf'),this[_0x16ad('0x9')][_0x16ad('0xd')],'value',(_0x36a3d1,_0x1ea42a)=>_0x36a3d1||!!_0x1ea42a),this[_0x16ad('0x18')](_0x16ad('0x25'))['to'](_0x589cb3,_0x16ad('0x27'),_0x57d368=>!!_0x57d368);}['focus'](){this[_0x16ad('0x31')][_0x16ad('0x30')]();}async[_0x16ad('0x0')](){this[_0x16ad('0x22')]=!0x1,this[_0x16ad('0x29')][_0x16ad('0x0')](),await this['commentThreadInputView'][_0x16ad('0x0')](),super[_0x16ad('0x0')]();}['_createCommentThreadInputView'](){const _0xaadced=new _0x33f71d(this[_0x16ad('0x1d')],this[_0x16ad('0x2')],this[_0x16ad('0x4')][_0x16ad('0x23')]),_0x321958=_0xaadced[_0x16ad('0xd')];return _0xaadced[_0x16ad('0x18')](_0x16ad('0x20'))['to'](this,_0x16ad('0x14'),this['_model'],_0x16ad('0x26'),this[_0x16ad('0x19')],_0x16ad('0x5'),this[_0x16ad('0x19')],_0x16ad('0xe'),_0x321958,_0x16ad('0x10'),(_0x39cb1b,_0x210f8a,_0x4b6071,_0x254aee,_0x3ec7b6)=>!!_0x3ec7b6||!!_0x254aee&&_0x4b6071&&!_0x210f8a||_0x39cb1b&&_0x4b6071&&!_0x210f8a),_0x321958['bind']('placeholder')['to'](this,_0x16ad('0xa'),this[_0x16ad('0x19')],_0x16ad('0x6'),this[_0x16ad('0x19')],_0x16ad('0x2d'),(_0x22ae36,_0x1d26fd,_0x100f25)=>{let _0x31f7c3;return _0x31f7c3=_0x100f25&&_0x1d26fd?_0x16ad('0x2f'):_0x22ae36?'Reply...':_0x16ad('0x1f'),_0x38f66c(this[_0x16ad('0x1d')],_0x31f7c3);}),_0x321958[_0x16ad('0x18')](_0x16ad('0x1e'))['to'](this,_0x16ad('0xa'),_0x42b642=>_0x38f66c(this[_0x16ad('0x1d')],_0x42b642?'Reply':_0x16ad('0x17'))),_0x321958['on'](_0x16ad('0x2c'),(_0x4a29c4,_0x3fbb70)=>{this[_0x16ad('0x16')](_0x16ad('0xc'),_0x3fbb70),this[_0x16ad('0x19')][_0x16ad('0x2d')]&&this['_model'][_0x16ad('0x6')]&&this[_0x16ad('0x16')]('reopenCommentThread',this[_0x16ad('0x19')]['id']),this[_0x16ad('0x19')][_0x16ad('0x8')]||this['fire'](_0x16ad('0x12'));}),_0x321958['on'](_0x16ad('0x1a'),()=>{this[_0x16ad('0x30')]();}),_0x321958['bind'](_0x16ad('0x2e'))['to'](this[_0x16ad('0x19')],_0x16ad('0x26')),_0x321958['on'](_0x16ad('0x1a'),_0x38e446=>{0x0==this[_0x16ad('0xa')]&&(this['fire'](_0x16ad('0x11')),_0x38e446['stop']());}),this['on'](_0x16ad('0x2a'),(_0x5ca040,_0x4f6fdc,_0x2eea15)=>{_0x2eea15||this[_0x16ad('0xa')]||_0x321958[_0x16ad('0x10')]||this[_0x16ad('0x16')](_0x16ad('0x11'));}),_0xaadced;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4eed=['submit','isCollapsed','visibleView','disabledSubmit','remove','locale','editorConfig','cancel','add','isSystemComment','_model','focus','isReadOnly','_createCommentInputView','expand','isEditMode','fire','updateComment','switchToDisplayMode','createCollection','editorReady','once','content','submitLabel','_createCommentContentView','switchToEditMode','set','collapse','createEditor','Save','delegate','bind','destroy','_config'];(function(_0x588b15,_0x4eeda7){const _0x1c466d=function(_0x3c1165){while(--_0x3c1165){_0x588b15['push'](_0x588b15['shift']());}};_0x1c466d(++_0x4eeda7);}(_0x4eed,0x1d8));const _0x1c46=function(_0x588b15,_0x4eeda7){_0x588b15=_0x588b15-0x0;let _0x1c466d=_0x4eed[_0x588b15];return _0x1c466d;};import{View as _0x20c44f}from'ckeditor5/src/ui.js';import{trimHtml as _0x37f9f3}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2c744f from'./commentcontentview.js';import _0x1b8f87 from'./commentinputview.js';import{getTranslation as _0x2ab73d}from'../../../utils/common-translations.js';export default class ti extends _0x20c44f{constructor(_0x3381d8,_0x4b8a2c,_0x2b9708){super(_0x3381d8),this[_0x1c46('0xe')]=_0x4b8a2c,this[_0x1c46('0x3')]=_0x2b9708,this[_0x1c46('0xd')]=!!this[_0x1c46('0x3')]['isSystemComment'],this[_0x1c46('0x1e')](_0x1c46('0x13'),!0x1),this[_0x1c46('0x1e')](_0x1c46('0x5'),!0x0),this[_0x1c46('0x6')]=this[_0x1c46('0x17')](),this[_0x1c46('0x6')][_0x1c46('0xc')](this[_0x1c46('0x1c')]());}[_0x1c46('0x12')](){this[_0x1c46('0x5')]=!0x1;}[_0x1c46('0x1f')](){this[_0x1c46('0x13')]||(this[_0x1c46('0x5')]=!0x0);}['focus'](){this['element']['focus']();}async[_0x1c46('0x2')](){await this[_0x1c46('0x6')]['get'](0x0)[_0x1c46('0x2')](),super[_0x1c46('0x2')]();}[_0x1c46('0x1d')](){this[_0x1c46('0x13')]||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)[_0x1c46('0x2')](),this['visibleView']['add'](this[_0x1c46('0x11')]()));}['switchToDisplayMode'](){this[_0x1c46('0x13')]&&(this[_0x1c46('0x13')]=!0x1,this[_0x1c46('0x6')][_0x1c46('0x8')](0x0)[_0x1c46('0x2')](),this[_0x1c46('0x6')]['add'](this['_createCommentContentView']()));}['_createCommentContentView'](){const _0x133f0f=new _0x2c744f(this[_0x1c46('0x9')]);return _0x133f0f[_0x1c46('0x1')]('content')['to'](this['_model'],_0x1c46('0x1a'),this,_0x1c46('0x5'),(_0x4906d5,_0x1ab266)=>_0x1ab266?_0x37f9f3(_0x4906d5,{'limit':this[_0x1c46('0x3')]['maxCommentCharsWhenCollapsed']}):_0x4906d5),_0x133f0f;}[_0x1c46('0x11')](){this[_0x1c46('0x3')]['editorConfig']||(this[_0x1c46('0x3')][_0x1c46('0xa')]={}),this[_0x1c46('0x3')][_0x1c46('0xa')]['initialData']=this[_0x1c46('0xe')][_0x1c46('0x1a')];const _0x47295c=new _0x1b8f87(this[_0x1c46('0x9')],this[_0x1c46('0x3')][_0x1c46('0xa')]);return _0x47295c['value']=this['_model'][_0x1c46('0x1a')],_0x47295c[_0x1c46('0x1')](_0x1c46('0x7'))['to'](this[_0x1c46('0xe')],_0x1c46('0x10')),_0x47295c[_0x1c46('0x1b')]=_0x2ab73d(this['locale'],_0x1c46('0x21')),_0x47295c['on'](_0x1c46('0x4'),(_0x3b9437,_0x356671)=>{this[_0x1c46('0x14')](_0x1c46('0x15'),this['_model']['id'],_0x356671),this[_0x1c46('0x16')](),this['focus']();}),_0x47295c['on'](_0x1c46('0xb'),()=>{this[_0x1c46('0x16')](),this['focus']();}),_0x47295c[_0x1c46('0x19')]('editorReady',()=>{_0x47295c[_0x1c46('0xf')]();}),_0x47295c[_0x1c46('0x20')](),_0x47295c[_0x1c46('0x0')](_0x1c46('0x18'))['to'](this),_0x47295c[_0x1c46('0x0')]('editorDestroyed')['to'](this),_0x47295c;}}
23
+ const _0x373f=['delegate','cancel','bind','switchToDisplayMode','_createCommentContentView','switchToEditMode','submitLabel','set','editorConfig','element','createCollection','once','destroy','_model','_createCommentInputView','content','createEditor','locale','value','editorDestroyed','visibleView','expand','initialData','_config','remove','add','submit','isCollapsed','isEditMode','focus','disabledSubmit','Save','editorReady','updateComment','isReadOnly','isSystemComment','get'];(function(_0x2c470f,_0x373fec){const _0x53b7d2=function(_0x3f9b00){while(--_0x3f9b00){_0x2c470f['push'](_0x2c470f['shift']());}};_0x53b7d2(++_0x373fec);}(_0x373f,0x11e));const _0x53b7=function(_0x2c470f,_0x373fec){_0x2c470f=_0x2c470f-0x0;let _0x53b7d2=_0x373f[_0x2c470f];return _0x53b7d2;};import{View as _0x261eaa}from'ckeditor5/src/ui.js';import{trimHtml as _0x279ef8}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2c0459 from'./commentcontentview.js';import _0x91c0e1 from'./commentinputview.js';import{getTranslation as _0xfd0bbd}from'../../../utils/common-translations.js';export default class ti extends _0x261eaa{constructor(_0x109c9d,_0x356405,_0x13c943){super(_0x109c9d),this['_model']=_0x356405,this[_0x53b7('0x21')]=_0x13c943,this[_0x53b7('0x8')]=!!this[_0x53b7('0x21')][_0x53b7('0x8')],this[_0x53b7('0x11')](_0x53b7('0x1'),!0x1),this[_0x53b7('0x11')]('isCollapsed',!0x0),this[_0x53b7('0x1e')]=this[_0x53b7('0x14')](),this[_0x53b7('0x1e')]['add'](this[_0x53b7('0xe')]());}[_0x53b7('0x1f')](){this[_0x53b7('0x0')]=!0x1;}['collapse'](){this['isEditMode']||(this[_0x53b7('0x0')]=!0x0);}[_0x53b7('0x2')](){this[_0x53b7('0x13')][_0x53b7('0x2')]();}async[_0x53b7('0x16')](){await this[_0x53b7('0x1e')][_0x53b7('0x9')](0x0)[_0x53b7('0x16')](),super[_0x53b7('0x16')]();}[_0x53b7('0xf')](){this['isEditMode']||(this[_0x53b7('0x1')]=!0x0,this[_0x53b7('0x1e')][_0x53b7('0x22')](0x0)['destroy'](),this[_0x53b7('0x1e')]['add'](this[_0x53b7('0x18')]()));}[_0x53b7('0xd')](){this[_0x53b7('0x1')]&&(this[_0x53b7('0x1')]=!0x1,this[_0x53b7('0x1e')][_0x53b7('0x22')](0x0)[_0x53b7('0x16')](),this['visibleView'][_0x53b7('0x23')](this['_createCommentContentView']()));}[_0x53b7('0xe')](){const _0x539f10=new _0x2c0459(this[_0x53b7('0x1b')]);return _0x539f10[_0x53b7('0xc')](_0x53b7('0x19'))['to'](this[_0x53b7('0x17')],_0x53b7('0x19'),this,_0x53b7('0x0'),(_0x4137b4,_0x1184c7)=>_0x1184c7?_0x279ef8(_0x4137b4,{'limit':this[_0x53b7('0x21')]['maxCommentCharsWhenCollapsed']}):_0x4137b4),_0x539f10;}[_0x53b7('0x18')](){this[_0x53b7('0x21')][_0x53b7('0x12')]||(this[_0x53b7('0x21')][_0x53b7('0x12')]={}),this[_0x53b7('0x21')][_0x53b7('0x12')][_0x53b7('0x20')]=this['_model'][_0x53b7('0x19')];const _0x150376=new _0x91c0e1(this[_0x53b7('0x1b')],this['_config'][_0x53b7('0x12')]);return _0x150376[_0x53b7('0x1c')]=this['_model'][_0x53b7('0x19')],_0x150376['bind'](_0x53b7('0x3'))['to'](this[_0x53b7('0x17')],_0x53b7('0x7')),_0x150376[_0x53b7('0x10')]=_0xfd0bbd(this['locale'],_0x53b7('0x4')),_0x150376['on'](_0x53b7('0x24'),(_0x30b91e,_0x40ebf9)=>{this['fire'](_0x53b7('0x6'),this['_model']['id'],_0x40ebf9),this[_0x53b7('0xd')](),this[_0x53b7('0x2')]();}),_0x150376['on'](_0x53b7('0xb'),()=>{this[_0x53b7('0xd')](),this['focus']();}),_0x150376[_0x53b7('0x15')](_0x53b7('0x5'),()=>{_0x150376[_0x53b7('0x2')]();}),_0x150376[_0x53b7('0x1a')](),_0x150376[_0x53b7('0xa')](_0x53b7('0x5'))['to'](this),_0x150376[_0x53b7('0xa')](_0x53b7('0x1d'))['to'](this),_0x150376;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ad4=['set','ck-thread__comment-count','bindTemplate','NUMBER_OF_COMMENTS'];(function(_0x575d4d,_0x2ad4d0){const _0x59f767=function(_0x23af5d){while(--_0x23af5d){_0x575d4d['push'](_0x575d4d['shift']());}};_0x59f767(++_0x2ad4d0);}(_0x2ad4,0x1d3));const _0x59f7=function(_0x575d4d,_0x2ad4d0){_0x575d4d=_0x575d4d-0x0;let _0x59f767=_0x2ad4[_0x575d4d];return _0x59f767;};import{View as _0xc7bc72}from'ckeditor5/src/ui.js';import{getTranslation as _0x4d0e40}from'../../../utils/common-translations.js';export default class ts extends _0xc7bc72{constructor(_0x2c9d8c){super(_0x2c9d8c);const _0x14dd48=this[_0x59f7('0x3')];this[_0x59f7('0x1')]('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':_0x59f7('0x2')},'children':[{'text':_0x14dd48['to']('count',_0x48a6f9=>_0x4d0e40(_0x2c9d8c,_0x59f7('0x0'),_0x48a6f9))}]});}}
23
+ const _0x2c01=['set','bindTemplate','NUMBER_OF_COMMENTS','ck-thread__comment-count','count','setTemplate'];(function(_0x52f966,_0x2c018a){const _0x52303c=function(_0x76f773){while(--_0x76f773){_0x52f966['push'](_0x52f966['shift']());}};_0x52303c(++_0x2c018a);}(_0x2c01,0x1c0));const _0x5230=function(_0x52f966,_0x2c018a){_0x52f966=_0x52f966-0x0;let _0x52303c=_0x2c01[_0x52f966];return _0x52303c;};import{View as _0x1592ea}from'ckeditor5/src/ui.js';import{getTranslation as _0x2c8d05}from'../../../utils/common-translations.js';export default class ts extends _0x1592ea{constructor(_0x143642){super(_0x143642);const _0x27b224=this[_0x5230('0x3')];this[_0x5230('0x2')](_0x5230('0x0'),void 0x0),this[_0x5230('0x1')]({'tag':'li','attributes':{'class':_0x5230('0x5')},'children':[{'text':_0x27b224['to'](_0x5230('0x0'),_0x1abc39=>_0x2c8d05(_0x143642,_0x5230('0x4'),_0x1abc39))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4ed7=['innerHTML','element','setTemplate','set','ck-annotation__content','content','render','change:content'];(function(_0x543088,_0x4ed73c){var _0x40c557=function(_0xa17e1b){while(--_0xa17e1b){_0x543088['push'](_0x543088['shift']());}};_0x40c557(++_0x4ed73c);}(_0x4ed7,0x1c5));var _0x40c5=function(_0x543088,_0x4ed73c){_0x543088=_0x543088-0x0;var _0x40c557=_0x4ed7[_0x543088];return _0x40c557;};import{View as _0x380779}from'ckeditor5/src/ui.js';export default class Yt extends _0x380779{constructor(_0x30afb9){super(_0x30afb9),this[_0x40c5('0x6')](_0x40c5('0x0'),''),this[_0x40c5('0x5')]({'tag':'div','attributes':{'class':['ck-comment__content',_0x40c5('0x7')]}});}[_0x40c5('0x1')](){super[_0x40c5('0x1')](),this['on'](_0x40c5('0x2'),(_0x786736,_0x234c11,_0x480277)=>{this[_0x40c5('0x4')][_0x40c5('0x3')]=_0x480277;}),this['element'][_0x40c5('0x3')]=this['content'];}}
23
+ var _0x5b33=['ck-annotation__content','div','element','setTemplate','change:content','ck-comment__content','render','content'];(function(_0x3037db,_0x5b3336){var _0x49da73=function(_0x247fcd){while(--_0x247fcd){_0x3037db['push'](_0x3037db['shift']());}};_0x49da73(++_0x5b3336);}(_0x5b33,0x12e));var _0x49da=function(_0x3037db,_0x5b3336){_0x3037db=_0x3037db-0x0;var _0x49da73=_0x5b33[_0x3037db];return _0x49da73;};import{View as _0x17adee}from'ckeditor5/src/ui.js';export default class Yt extends _0x17adee{constructor(_0x415cf7){super(_0x415cf7),this['set'](_0x49da('0x1'),''),this[_0x49da('0x5')]({'tag':_0x49da('0x3'),'attributes':{'class':[_0x49da('0x7'),_0x49da('0x2')]}});}[_0x49da('0x0')](){super[_0x49da('0x0')](),this['on'](_0x49da('0x6'),(_0x5a88b4,_0x121b08,_0x30056e)=>{this['element']['innerHTML']=_0x30056e;}),this[_0x49da('0x4')]['innerHTML']=this[_0x49da('0x1')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x495d=['document','setTemplate','submitLabel','execute','stop','focusTracker','Cancel','setData','fire','render','trim','placeholder','div','then','focus','forEach','_editorConfig','focusPrevious','withText','editorDestroyed','submit','low','model','bindTemplate','getData','cancelButtonView','create','length','_initializeFocusCycling','_isDestroyed','submitButtonView','tab','_createCancelButton','element','value','shift\x20+\x20tab','createEditor','set','view','editor','label','showButtons','initialData','ck-comment__input-actions--active','keystrokes','listenTo','focusNext','ck-comment__input-wrapper','Reply','bind','ck-comment__input-actions--submit','add','_createSubmitButton','destroy','_editorCreationPromise','Reply...'];(function(_0x10d247,_0x495d35){const _0xc2bb7f=function(_0x318609){while(--_0x318609){_0x10d247['push'](_0x10d247['shift']());}};_0xc2bb7f(++_0x495d35);}(_0x495d,0xaa));const _0xc2bb=function(_0x10d247,_0x495d35){_0x10d247=_0x10d247-0x0;let _0xc2bb7f=_0x495d[_0x10d247];return _0xc2bb7f;};import{View as _0x387f5f,ViewCollection as _0x527e87,FocusCycler as _0x2cd86e,ButtonView as _0x5102a3}from'ckeditor5/src/ui.js';import{FocusTracker as _0x28b076,KeystrokeHandler as _0x5002b1}from'ckeditor5/src/utils.js';import _0x583094 from'../commenteditor/commenteditor.js';import{getTranslation as _0x54b4cf}from'../../../utils/common-translations.js';export default class Zt extends _0x387f5f{constructor(_0x5a3ab9,_0x100a53={}){super(_0x5a3ab9),this[_0xc2bb('0x25')]=null,this[_0xc2bb('0xe')]=_0x100a53,this[_0xc2bb('0x2a')]=new _0x5002b1(),this[_0xc2bb('0x3')]=new _0x28b076(),this[_0xc2bb('0x23')](_0xc2bb('0x20'),_0x100a53[_0xc2bb('0x28')]||''),this[_0xc2bb('0x23')]('disabledSubmit',!0x1),this[_0xc2bb('0x23')]('showButtons',!0x0),this[_0xc2bb('0x23')](_0xc2bb('0x9'),_0x54b4cf(_0x5a3ab9,_0xc2bb('0x35'))),this[_0xc2bb('0x23')](_0xc2bb('0x0'),_0x54b4cf(_0x5a3ab9,_0xc2bb('0x2e'))),this[_0xc2bb('0x1c')]=this[_0xc2bb('0x32')](),this[_0xc2bb('0x17')]=this[_0xc2bb('0x1e')](),this[_0xc2bb('0x37')]({'tag':_0xc2bb('0xa'),'attributes':{'class':[_0xc2bb('0x2d')]},'children':[{'tag':_0xc2bb('0xa'),'attributes':{'class':['ck-comment__input-actions',this[_0xc2bb('0x15')]['if'](_0xc2bb('0x27'),_0xc2bb('0x29'))]},'children':[this[_0xc2bb('0x1c')],this[_0xc2bb('0x17')]]}]}),this[_0xc2bb('0x2a')][_0xc2bb('0x23')]('Esc',(_0x23f16a,_0x4b7958)=>{this[_0xc2bb('0x17')][_0xc2bb('0x6')](_0xc2bb('0x1')),_0x4b7958();}),this['on'](_0xc2bb('0x12'),(_0x45fde7,_0x1ee1d2)=>{_0x1ee1d2['length']>0xfde8?(alert(_0x54b4cf(_0x5a3ab9,'TOO_LONG_COMMENT_ALERT',[_0x1ee1d2[_0xc2bb('0x19')],0xfde8])),_0x45fde7[_0xc2bb('0x2')]()):this['editor'][_0xc2bb('0x5')]('');},{'priority':'high'});}[_0xc2bb('0x7')](){super[_0xc2bb('0x7')](),this[_0xc2bb('0x2a')][_0xc2bb('0x2b')](this['element']),this[_0xc2bb('0x3')][_0xc2bb('0x31')](this[_0xc2bb('0x1f')]);}[_0xc2bb('0x22')](){return this['editor']||(this[_0xc2bb('0x25')]=new _0x583094(this['_editorConfig']),this[_0xc2bb('0x34')]=this[_0xc2bb('0x25')][_0xc2bb('0x18')]()[_0xc2bb('0xb')](()=>{if(this[_0xc2bb('0x1b')])return;const _0x3ccc07=this[_0xc2bb('0x25')];this['element']['insertBefore'](_0x3ccc07['ui']['element'],this[_0xc2bb('0x1f')]['firstChild']),_0x3ccc07[_0xc2bb('0x14')][_0xc2bb('0x36')]['on']('change',()=>this[_0xc2bb('0x20')]=_0x3ccc07[_0xc2bb('0x16')]()),_0x3ccc07['bind'](_0xc2bb('0x9'))['to'](this),this['_initializeFocusCycling'](this[_0xc2bb('0x25')]),this[_0xc2bb('0x6')]('editorReady',this[_0xc2bb('0x25')]);})),this[_0xc2bb('0x34')];}[_0xc2bb('0xc')](){this['editor']&&this['editor'][_0xc2bb('0xc')]();}async[_0xc2bb('0x33')](){this[_0xc2bb('0x1b')]||(this[_0xc2bb('0x1b')]=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this[_0xc2bb('0x25')]['destroy'](),this[_0xc2bb('0x6')](_0xc2bb('0x11'),this[_0xc2bb('0x25')])),await super['destroy']());}[_0xc2bb('0x32')](){const {locale:_0x304893}=this,_0x46c33d=new _0x5102a3(_0x304893);return _0x46c33d['extendTemplate']({'attributes':{'class':[_0xc2bb('0x30')]}}),_0x46c33d['withText']=!0x0,_0x46c33d[_0xc2bb('0x2f')](_0xc2bb('0x26'))['to'](this,_0xc2bb('0x0')),_0x46c33d['on'](_0xc2bb('0x1'),()=>{this['fire'](_0xc2bb('0x12'),this[_0xc2bb('0x20')]);}),_0x46c33d['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x9652f4,_0x3f3e1f)=>!_0x3f3e1f&&!!_0x9652f4[_0xc2bb('0x8')]()),_0x46c33d;}[_0xc2bb('0x1e')](){const {locale:_0x5e12c9}=this,_0x4cf509=new _0x5102a3(_0x5e12c9);return _0x4cf509['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x4cf509[_0xc2bb('0x26')]=_0x54b4cf(_0x5e12c9,_0xc2bb('0x4')),_0x4cf509[_0xc2bb('0x10')]=!0x0,_0x4cf509['on'](_0xc2bb('0x1'),()=>{this[_0xc2bb('0x25')][_0xc2bb('0x5')](''),this[_0xc2bb('0x6')]('cancel');}),_0x4cf509;}[_0xc2bb('0x1a')](_0x483c90){const _0x4f8f7e=this[_0xc2bb('0x3')],_0x33e797=new _0x527e87();[_0x483c90['ui'][_0xc2bb('0x24')],this[_0xc2bb('0x1c')],this[_0xc2bb('0x17')]][_0xc2bb('0xd')](_0x10ca48=>{_0x33e797['add'](_0x10ca48),_0x4f8f7e[_0xc2bb('0x31')](_0x10ca48[_0xc2bb('0x1f')]);});const _0x3446e8=new _0x2cd86e({'focusables':_0x33e797,'focusTracker':_0x4f8f7e});this['keystrokes'][_0xc2bb('0x23')](_0xc2bb('0x1d'),(_0x44a7eb,_0x27fd4a)=>{_0x3446e8[_0xc2bb('0x2c')](),_0x27fd4a();},{'priority':_0xc2bb('0x13')}),this[_0xc2bb('0x2a')]['set'](_0xc2bb('0x21'),(_0x33556f,_0x280a36)=>{_0x3446e8[_0xc2bb('0xf')](),_0x280a36();},{'priority':_0xc2bb('0x13')});}}
23
+ const _0x379d=['stop','bind','editorDestroyed','div','low','listenTo','_isDestroyed','focusNext','ck-comment__input-actions--submit','Reply...','model','fire','extendTemplate','_createSubmitButton','setData','high','_initializeFocusCycling','value','bindTemplate','render','editorReady','focusTracker','TOO_LONG_COMMENT_ALERT','_editorCreationPromise','setTemplate','focus','execute','cancelButtonView','keystrokes','Cancel','initialData','length','submit','withText','element','_editorConfig','ck-comment__input-actions','label','isEnabled','create','Esc','_createCancelButton','destroy','set','ck-comment__input-actions--active','tab','forEach','Reply','ck-comment__input-wrapper','add','submitButtonView','editor','getData','shift\x20+\x20tab','placeholder','createEditor','disabledSubmit'];(function(_0x39ba04,_0x379db5){const _0x26ebd9=function(_0x1e714e){while(--_0x1e714e){_0x39ba04['push'](_0x39ba04['shift']());}};_0x26ebd9(++_0x379db5);}(_0x379d,0x156));const _0x26eb=function(_0x39ba04,_0x379db5){_0x39ba04=_0x39ba04-0x0;let _0x26ebd9=_0x379d[_0x39ba04];return _0x26ebd9;};import{View as _0x34403a,ViewCollection as _0x3718da,FocusCycler as _0x1d8da9,ButtonView as _0x5ade64}from'ckeditor5/src/ui.js';import{FocusTracker as _0x457fcf,KeystrokeHandler as _0x5a6cba}from'ckeditor5/src/utils.js';import _0x4a5ca3 from'../commenteditor/commenteditor.js';import{getTranslation as _0x52973b}from'../../../utils/common-translations.js';export default class Zt extends _0x34403a{constructor(_0x9a6a4f,_0x5c1f1d={}){super(_0x9a6a4f),this[_0x26eb('0x33')]=null,this['_editorConfig']=_0x5c1f1d,this[_0x26eb('0x1c')]=new _0x5a6cba(),this[_0x26eb('0x15')]=new _0x457fcf(),this[_0x26eb('0x2b')](_0x26eb('0x11'),_0x5c1f1d[_0x26eb('0x1e')]||''),this[_0x26eb('0x2b')](_0x26eb('0x38'),!0x1),this[_0x26eb('0x2b')]('showButtons',!0x0),this[_0x26eb('0x2b')]('placeholder',_0x52973b(_0x9a6a4f,_0x26eb('0x9'))),this[_0x26eb('0x2b')]('submitLabel',_0x52973b(_0x9a6a4f,_0x26eb('0x2f'))),this[_0x26eb('0x32')]=this[_0x26eb('0xd')](),this[_0x26eb('0x1b')]=this[_0x26eb('0x29')](),this[_0x26eb('0x18')]({'tag':_0x26eb('0x3'),'attributes':{'class':[_0x26eb('0x30')]},'children':[{'tag':_0x26eb('0x3'),'attributes':{'class':[_0x26eb('0x24'),this[_0x26eb('0x12')]['if']('showButtons',_0x26eb('0x2c'))]},'children':[this[_0x26eb('0x32')],this[_0x26eb('0x1b')]]}]}),this['keystrokes'][_0x26eb('0x2b')](_0x26eb('0x28'),(_0x200ee5,_0x3390ec)=>{this[_0x26eb('0x1b')][_0x26eb('0xb')](_0x26eb('0x1a')),_0x3390ec();}),this['on']('submit',(_0x313049,_0x284a02)=>{_0x284a02[_0x26eb('0x1f')]>0xfde8?(alert(_0x52973b(_0x9a6a4f,_0x26eb('0x16'),[_0x284a02[_0x26eb('0x1f')],0xfde8])),_0x313049[_0x26eb('0x0')]()):this['editor'][_0x26eb('0xe')]('');},{'priority':_0x26eb('0xf')});}[_0x26eb('0x13')](){super[_0x26eb('0x13')](),this['keystrokes'][_0x26eb('0x5')](this[_0x26eb('0x22')]),this['focusTracker'][_0x26eb('0x31')](this[_0x26eb('0x22')]);}[_0x26eb('0x37')](){return this[_0x26eb('0x33')]||(this[_0x26eb('0x33')]=new _0x4a5ca3(this[_0x26eb('0x23')]),this['_editorCreationPromise']=this[_0x26eb('0x33')][_0x26eb('0x27')]()['then'](()=>{if(this['_isDestroyed'])return;const _0x2efc42=this[_0x26eb('0x33')];this[_0x26eb('0x22')]['insertBefore'](_0x2efc42['ui'][_0x26eb('0x22')],this['element']['firstChild']),_0x2efc42[_0x26eb('0xa')]['document']['on']('change',()=>this[_0x26eb('0x11')]=_0x2efc42[_0x26eb('0x34')]()),_0x2efc42[_0x26eb('0x1')](_0x26eb('0x36'))['to'](this),this[_0x26eb('0x10')](this[_0x26eb('0x33')]),this['fire'](_0x26eb('0x14'),this[_0x26eb('0x33')]);})),this[_0x26eb('0x17')];}['focus'](){this[_0x26eb('0x33')]&&this[_0x26eb('0x33')][_0x26eb('0x19')]();}async[_0x26eb('0x2a')](){this[_0x26eb('0x6')]||(this['_isDestroyed']=!0x0,this['editor']&&(await this[_0x26eb('0x17')],await this[_0x26eb('0x33')]['destroy'](),this[_0x26eb('0xb')](_0x26eb('0x2'),this[_0x26eb('0x33')])),await super[_0x26eb('0x2a')]());}['_createSubmitButton'](){const {locale:_0x2f212e}=this,_0x23988f=new _0x5ade64(_0x2f212e);return _0x23988f[_0x26eb('0xc')]({'attributes':{'class':[_0x26eb('0x8')]}}),_0x23988f[_0x26eb('0x21')]=!0x0,_0x23988f[_0x26eb('0x1')](_0x26eb('0x25'))['to'](this,'submitLabel'),_0x23988f['on'](_0x26eb('0x1a'),()=>{this[_0x26eb('0xb')](_0x26eb('0x20'),this[_0x26eb('0x11')]);}),_0x23988f[_0x26eb('0x1')](_0x26eb('0x26'))['to'](this,_0x26eb('0x11'),this,_0x26eb('0x38'),(_0x5c2b10,_0x238657)=>!_0x238657&&!!_0x5c2b10['trim']()),_0x23988f;}[_0x26eb('0x29')](){const {locale:_0x3d7259}=this,_0x174d9d=new _0x5ade64(_0x3d7259);return _0x174d9d['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x174d9d[_0x26eb('0x25')]=_0x52973b(_0x3d7259,_0x26eb('0x1d')),_0x174d9d[_0x26eb('0x21')]=!0x0,_0x174d9d['on'](_0x26eb('0x1a'),()=>{this[_0x26eb('0x33')]['setData'](''),this[_0x26eb('0xb')]('cancel');}),_0x174d9d;}[_0x26eb('0x10')](_0x39ff18){const _0x5e5c4c=this['focusTracker'],_0x14e580=new _0x3718da();[_0x39ff18['ui']['view'],this[_0x26eb('0x32')],this['cancelButtonView']][_0x26eb('0x2e')](_0x17b4be=>{_0x14e580[_0x26eb('0x31')](_0x17b4be),_0x5e5c4c[_0x26eb('0x31')](_0x17b4be['element']);});const _0x140527=new _0x1d8da9({'focusables':_0x14e580,'focusTracker':_0x5e5c4c});this[_0x26eb('0x1c')][_0x26eb('0x2b')](_0x26eb('0x2d'),(_0x12c0c1,_0x3c9b8)=>{_0x140527[_0x26eb('0x7')](),_0x3c9b8();},{'priority':_0x26eb('0x4')}),this['keystrokes']['set'](_0x26eb('0x35'),(_0x45e30e,_0x4a1360)=>{_0x140527['focusPrevious'](),_0x4a1360();},{'priority':_0x26eb('0x4')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x750b=['length','bindTemplate','tab','render','ck-comments-archive__info','_keystrokes','_focusables','ck-comments-archive__header\x20','_focusTracker','listenTo','add','EMPTY_COMMENTS_ARCHIVE','arrowdown','isEmpty','focus','isActive','destroy','element','stopPropagation','arrowright','remove','setTemplate','selectstart','COMMENTS_ARCHIVE','div','shift\x20+\x20tab','ck-hidden','ck-comments-archive__content','arrowup','set'];(function(_0x5cbfec,_0x750bdc){const _0x27dfe8=function(_0x430f1c){while(--_0x430f1c){_0x5cbfec['push'](_0x5cbfec['shift']());}};_0x27dfe8(++_0x750bdc);}(_0x750b,0x1e9));const _0x27df=function(_0x5cbfec,_0x750bdc){_0x5cbfec=_0x5cbfec-0x0;let _0x27dfe8=_0x750b[_0x5cbfec];return _0x27dfe8;};import{View as _0x4380bd,FocusCycler as _0x4dde2b}from'ckeditor5/src/ui.js';import{FocusTracker as _0x4847ff,KeystrokeHandler as _0x43c29a}from'ckeditor5/src/utils.js';import{getTranslation as _0x69b738}from'../../../utils/common-translations.js';export default class K extends _0x4380bd{constructor(_0x343dd8,_0x3f8eab){super(_0x343dd8),this['set'](_0x27df('0x4'),!_0x3f8eab[_0x27df('0x15')]),this[_0x27df('0x1d')]=new _0x4847ff(),this[_0x27df('0x1a')]=new _0x43c29a(),this[_0x27df('0x1b')]=_0x3f8eab,this['_focusCycler']=new _0x4dde2b({'focusables':this[_0x27df('0x1b')],'focusTracker':this[_0x27df('0x1d')],'keystrokeHandler':this[_0x27df('0x1a')],'actions':{'focusPrevious':_0x27df('0x10'),'focusNext':_0x27df('0x17')}}),this['listenTo'](_0x3f8eab,_0x27df('0x1'),()=>{this[_0x27df('0x4')]=!0x1;}),this[_0x27df('0x0')](_0x3f8eab,_0x27df('0xb'),(_0x2283f6,_0x10aa49)=>{_0x10aa49[_0x27df('0x6')]&&this[_0x27df('0x5')](),_0x3f8eab[_0x27df('0x15')]||(this[_0x27df('0x4')]=!0x0);});const _0x20970d=this[_0x27df('0x16')];this[_0x27df('0xc')]({'tag':_0x27df('0xf'),'attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x27df('0x1c')]},'children':[{'text':_0x69b738(_0x343dd8,_0x27df('0xe'))}]},{'tag':_0x27df('0xf'),'attributes':{'class':[_0x27df('0x12')]},'children':[{'tag':_0x27df('0xf'),'children':_0x3f8eab},{'tag':'p','attributes':{'class':[_0x27df('0x19'),_0x20970d['if'](_0x27df('0x4'),_0x27df('0x11'),_0x4c08c2=>!_0x4c08c2)]},'children':[{'text':_0x69b738(_0x343dd8,_0x27df('0x2'))}]}]}]});}[_0x27df('0x18')](){super[_0x27df('0x18')](),this[_0x27df('0x1a')][_0x27df('0x0')](this[_0x27df('0x8')]);const _0x5a1897=_0x3e4cd2=>_0x3e4cd2[_0x27df('0x9')]();this['_keystrokes'][_0x27df('0x14')](_0x27df('0xa'),_0x5a1897),this[_0x27df('0x1a')][_0x27df('0x14')]('arrowleft',_0x5a1897),this[_0x27df('0x1a')][_0x27df('0x14')](_0x27df('0x13'),_0x5a1897),this['_keystrokes'][_0x27df('0x14')](_0x27df('0x3'),_0x5a1897),this['listenTo'](this[_0x27df('0x8')],_0x27df('0xd'),(_0x2271c5,_0x554740)=>{_0x554740[_0x27df('0x9')]();},{'priority':'high'});}[_0x27df('0x7')](){super[_0x27df('0x7')](),this[_0x27df('0x1d')][_0x27df('0x7')](),this[_0x27df('0x1a')]['destroy']();}[_0x27df('0x5')](){this[_0x27df('0x8')][_0x27df('0x5')]();}}
23
+ const _0x6d44=['destroy','ck-comments-archive__header\x20','div','stopPropagation','remove','focus','_focusTracker','element','ck-comments-archive__content','arrowleft','isEmpty','arrowup','ck-comments-archive__info','listenTo','bindTemplate','shift\x20+\x20tab','COMMENTS_ARCHIVE','render','isActive','selectstart','add','arrowright','EMPTY_COMMENTS_ARCHIVE','ck-comments-archive','set','_focusables','high','setTemplate','tab','_keystrokes','auto','length'];(function(_0x1871d1,_0x6d4416){const _0x3bcf35=function(_0x36453c){while(--_0x36453c){_0x1871d1['push'](_0x1871d1['shift']());}};_0x3bcf35(++_0x6d4416);}(_0x6d44,0xca));const _0x3bcf=function(_0x1871d1,_0x6d4416){_0x1871d1=_0x1871d1-0x0;let _0x3bcf35=_0x6d44[_0x1871d1];return _0x3bcf35;};import{View as _0x315354,FocusCycler as _0x4c8766}from'ckeditor5/src/ui.js';import{FocusTracker as _0xc83453,KeystrokeHandler as _0xf5773c}from'ckeditor5/src/utils.js';import{getTranslation as _0x5b58fd}from'../../../utils/common-translations.js';export default class K extends _0x315354{constructor(_0x5e9a9c,_0x550d6b){super(_0x5e9a9c),this[_0x3bcf('0xe')](_0x3bcf('0x0'),!_0x550d6b['length']),this[_0x3bcf('0x1c')]=new _0xc83453(),this[_0x3bcf('0x13')]=new _0xf5773c(),this[_0x3bcf('0xf')]=_0x550d6b,this['_focusCycler']=new _0x4c8766({'focusables':this[_0x3bcf('0xf')],'focusTracker':this[_0x3bcf('0x1c')],'keystrokeHandler':this[_0x3bcf('0x13')],'actions':{'focusPrevious':_0x3bcf('0x5'),'focusNext':_0x3bcf('0x12')}}),this[_0x3bcf('0x3')](_0x550d6b,_0x3bcf('0xa'),()=>{this[_0x3bcf('0x0')]=!0x1;}),this['listenTo'](_0x550d6b,_0x3bcf('0x1a'),(_0x30374b,_0xea1555)=>{_0xea1555[_0x3bcf('0x8')]&&this[_0x3bcf('0x1b')](),_0x550d6b[_0x3bcf('0x15')]||(this['isEmpty']=!0x0);});const _0xd39736=this[_0x3bcf('0x4')];this[_0x3bcf('0x11')]({'tag':_0x3bcf('0x18'),'attributes':{'dir':_0x3bcf('0x14'),'class':['ck',_0x3bcf('0xd')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x3bcf('0x17')]},'children':[{'text':_0x5b58fd(_0x5e9a9c,_0x3bcf('0x6'))}]},{'tag':'div','attributes':{'class':[_0x3bcf('0x1e')]},'children':[{'tag':'div','children':_0x550d6b},{'tag':'p','attributes':{'class':[_0x3bcf('0x2'),_0xd39736['if'](_0x3bcf('0x0'),'ck-hidden',_0x1407ea=>!_0x1407ea)]},'children':[{'text':_0x5b58fd(_0x5e9a9c,_0x3bcf('0xc'))}]}]}]});}['render'](){super[_0x3bcf('0x7')](),this['_keystrokes'][_0x3bcf('0x3')](this[_0x3bcf('0x1d')]);const _0x1440d5=_0x3afa0c=>_0x3afa0c[_0x3bcf('0x19')]();this['_keystrokes'][_0x3bcf('0xe')](_0x3bcf('0xb'),_0x1440d5),this[_0x3bcf('0x13')]['set'](_0x3bcf('0x1f'),_0x1440d5),this[_0x3bcf('0x13')][_0x3bcf('0xe')](_0x3bcf('0x1'),_0x1440d5),this[_0x3bcf('0x13')][_0x3bcf('0xe')]('arrowdown',_0x1440d5),this[_0x3bcf('0x3')](this[_0x3bcf('0x1d')],_0x3bcf('0x9'),(_0x57f11e,_0x5cfb91)=>{_0x5cfb91[_0x3bcf('0x19')]();},{'priority':_0x3bcf('0x10')});}[_0x3bcf('0x16')](){super['destroy'](),this[_0x3bcf('0x1c')][_0x3bcf('0x16')](),this[_0x3bcf('0x13')][_0x3bcf('0x16')]();}[_0x3bcf('0x1b')](){this[_0x3bcf('0x1d')][_0x3bcf('0x1b')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c6c=['authoredAt','maxThreadTotalWeight','bind','_handleNewCommentModel','CommentView','change:hasDirtyComment','change:isActive','isEditMode','maxCommentsWhenCollapsed','editorConfig','commentViews','_collapsedCommentsView','set','comments','length','collapse','locale','editorDestroyed','count','resolved','equal','change:isResolved','editorReady','remove','setTemplate','maxCommentCharsWhenCollapsed','commentUpdated','add','_rearrangeCollapse','_rearrangeExpand','resolvedAt','_updateHasDirtyComment','destroy','expand','_config','delete','_model','listenTo','resolvedCommentView','updateComment','stopListening','removeComment','_handleRemoveCommentModel','_shouldCollapse','isActive','_handleInfoComment','hasDirtyComment','createCollection','some','resolvedBy','insert','viewUid','visibleViews','render','from','get','resolveCommentThread','refreshVisibleViews','_calculatePosition','delegate','_findOptimalIndex','weight','focus'];(function(_0x310f4e,_0x5c6c58){const _0x4a8673=function(_0x55acee){while(--_0x55acee){_0x310f4e['push'](_0x310f4e['shift']());}};_0x4a8673(++_0x5c6c58);}(_0x5c6c,0x132));const _0x4a86=function(_0x310f4e,_0x5c6c58){_0x310f4e=_0x310f4e-0x0;let _0x4a8673=_0x5c6c[_0x310f4e];return _0x4a8673;};import{View as _0x1543a9}from'ckeditor5/src/ui.js';import{diff as _0x217ee7,Collection as _0x182468}from'ckeditor5/src/utils.js';import{getTranslation as _0x52e041}from'../../../utils/common-translations.js';import _0x16ed77 from'./collapsedcommentsview.js';export default class vt extends _0x1543a9{constructor(_0xdffef,_0x537e70,_0x34d628){super(_0xdffef),this[_0x4a86('0x15')]('hasDirtyComment',!0x1),this['set'](_0x4a86('0x17'),_0x537e70['comments'][_0x4a86('0x17')]),this[_0x4a86('0x15')](_0x4a86('0x35'),!0x1),this[_0x4a86('0x2d')]=_0x537e70,this[_0x4a86('0x2b')]=_0x34d628,this[_0x4a86('0x13')]=this[_0x4a86('0x38')](),this[_0x4a86('0x3d')]=this[_0x4a86('0x38')](),this[_0x4a86('0x2f')]=null,this[_0x4a86('0x14')]=new _0x16ed77(_0xdffef),this['_collapsedCommentsView'][_0x4a86('0xb')]('count')['to'](this,_0x4a86('0x17'),_0x185777=>_0x185777-this['_config'][_0x4a86('0x11')]);for(const _0x3ab43c of _0x537e70[_0x4a86('0x16')])this['_handleNewCommentModel'](_0x3ab43c);this[_0x4a86('0x36')](),this['listenTo'](_0x537e70[_0x4a86('0x16')],_0x4a86('0x24'),(_0x41c002,_0xc3cb97)=>{const _0x106018=this[_0x4a86('0x4')](_0xc3cb97);this['length']++,this[_0x4a86('0xc')](_0xc3cb97,_0x106018),this[_0x4a86('0x3')]();}),this['listenTo'](_0x537e70[_0x4a86('0x16')],_0x4a86('0x20'),(_0xfb158,_0x208d5b)=>{this[_0x4a86('0x17')]--,this[_0x4a86('0x33')](_0x208d5b),this[_0x4a86('0x3')]();}),this[_0x4a86('0x2e')](_0x537e70,_0x4a86('0x23'),()=>this['refreshVisibleViews']()),this[_0x4a86('0x2e')](_0x537e70,_0x4a86('0x1e'),()=>this[_0x4a86('0x36')]()),this['on'](_0x4a86('0xf'),()=>this['refreshVisibleViews']()),this['on'](_0x4a86('0xe'),()=>this[_0x4a86('0x3')]()),this[_0x4a86('0x21')]({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x4a86('0x3d')]});}get[_0x4a86('0x34')](){return this[_0x4a86('0x2d')][_0x4a86('0x7')]>this[_0x4a86('0x2b')][_0x4a86('0xa')]&&!this[_0x4a86('0x35')]&&!this[_0x4a86('0x37')];}['render'](){super[_0x4a86('0x3e')](),this['refreshVisibleViews']();}[_0x4a86('0x8')](){this['element']['focus']();}[_0x4a86('0x29')](){this[_0x4a86('0x14')][_0x4a86('0x29')]();for(const _0x8a4449 of this[_0x4a86('0x13')])_0x8a4449['destroy']();super[_0x4a86('0x29')]();}[_0x4a86('0x3')](){this[_0x4a86('0x34')]?this[_0x4a86('0x25')]():this[_0x4a86('0x26')]();}['_handleNewCommentModel'](_0x50437d,_0x37f5b6){const _0x3ed74e=new this['_config']['CommentView'](this['locale'],_0x50437d,{'maxCommentCharsWhenCollapsed':this['_config'][_0x4a86('0x22')],'formatDateTime':this[_0x4a86('0x2b')]['formatDateTime'],'editorConfig':this['_config'][_0x4a86('0x12')]});_0x3ed74e[_0x4a86('0x3c')]=_0x50437d['id'],_0x3ed74e[_0x4a86('0x5')](_0x4a86('0x32'))['to'](this),_0x3ed74e[_0x4a86('0x5')](_0x4a86('0x30'))['to'](this),_0x3ed74e[_0x4a86('0x5')](_0x4a86('0x2'))['to'](this),_0x3ed74e[_0x4a86('0x5')](_0x4a86('0x1f'))['to'](this),_0x3ed74e[_0x4a86('0x5')](_0x4a86('0x1a'))['to'](this),this[_0x4a86('0x2e')](_0x3ed74e,'change:isEditMode',()=>this[_0x4a86('0x28')]()),this[_0x4a86('0x13')][_0x4a86('0x24')](_0x3ed74e,_0x37f5b6);}['_calculatePosition'](_0x1152e5){const _0x977063=this[_0x4a86('0x2d')][_0x4a86('0x6')](_0x1152e5);return this['resolvedCommentView']?this[_0x4a86('0x2f')][_0x4a86('0x9')]>_0x1152e5['authoredAt']?_0x977063-0x1:_0x977063:_0x977063-0x1;}[_0x4a86('0x36')](){if(this['_model'][_0x4a86('0x3a')]&&this['_model'][_0x4a86('0x27')]){const _0x176ce5={'id':_0x4a86('0x1c'),'author':this['_model']['resolvedBy'],'authoredAt':this[_0x4a86('0x2d')][_0x4a86('0x27')],'content':_0x52e041(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this[_0x4a86('0x2f')]=new this['_config'][(_0x4a86('0xd'))](this[_0x4a86('0x19')],_0x176ce5,{'maxCommentCharsWhenCollapsed':this[_0x4a86('0x2b')][_0x4a86('0x22')],'formatDateTime':this[_0x4a86('0x2b')]['formatDateTime'],'editorConfig':this[_0x4a86('0x2b')][_0x4a86('0x12')],'isSystemComment':!0x0}),this[_0x4a86('0x13')]['add'](this[_0x4a86('0x2f')],this[_0x4a86('0x2d')][_0x4a86('0x6')](_0x176ce5));}else this[_0x4a86('0x2f')]&&(this[_0x4a86('0x13')][_0x4a86('0x20')](this[_0x4a86('0x2f')]),this[_0x4a86('0x2f')]['destroy'](),this[_0x4a86('0x2f')]=null);this[_0x4a86('0x3')]();}[_0x4a86('0x33')](_0x117143){const _0x4a56da=this[_0x4a86('0x13')]['remove'](_0x117143['id']);this[_0x4a86('0x31')](_0x4a56da),_0x4a56da[_0x4a86('0x10')]&&this[_0x4a86('0x28')](),_0x4a56da[_0x4a86('0x29')]();}[_0x4a86('0x28')](){this['hasDirtyComment']=Array[_0x4a86('0x0')](this['commentViews'])[_0x4a86('0x39')](_0x25ccb0=>_0x25ccb0[_0x4a86('0x10')]);}[_0x4a86('0x25')](){const _0x4b9b2b=function(_0x30584c){const _0x36dba8=new _0x182468();for(const _0x28d3c8 of _0x30584c)_0x36dba8[_0x4a86('0x24')](_0x28d3c8);return _0x36dba8;}(this[_0x4a86('0x13')]),_0x471bf5=this[_0x4a86('0x14')][_0x4a86('0x1b')];for(let _0x130a97=0x1;_0x130a97<=_0x471bf5;_0x130a97++)_0x4b9b2b[_0x4a86('0x20')](0x1);for(const _0x5d2801 of _0x4b9b2b)_0x5d2801[_0x4a86('0x18')]();_0x471bf5>0x0&&_0x4b9b2b[_0x4a86('0x24')](this[_0x4a86('0x14')],0x1),is(_0x217ee7(Array[_0x4a86('0x0')](this[_0x4a86('0x3d')]),Array[_0x4a86('0x0')](_0x4b9b2b)),this[_0x4a86('0x3d')],_0x4b9b2b);}[_0x4a86('0x26')](){is(_0x217ee7(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this[_0x4a86('0x3d')],this['commentViews']);for(const _0x1031f5 of this[_0x4a86('0x3d')])_0x1031f5[_0x4a86('0x2a')]();}}function is(_0x57a4b8,_0x2b1ae7,_0x2480fe){let _0x571342=0x0;for(const _0x1283fc of _0x57a4b8)switch(_0x1283fc){case _0x4a86('0x3b'):_0x2b1ae7[_0x4a86('0x24')](_0x2480fe[_0x4a86('0x1')](_0x571342),_0x571342),_0x571342++;break;case _0x4a86('0x2c'):_0x2b1ae7['remove'](_0x571342);break;case _0x4a86('0x1d'):_0x571342++;}}
23
+ const _0x5048=['equal','destroy','_handleRemoveCommentModel','CommentView','_calculatePosition','ck-thread__comments','weight','_rearrangeExpand','collapse','comments','updateComment','editorDestroyed','commentViews','_config','createCollection','_findOptimalIndex','count','setTemplate','removeComment','listenTo','_updateHasDirtyComment','maxCommentCharsWhenCollapsed','stopListening','commentUpdated','get','remove','_collapsedCommentsView','resolveCommentThread','locale','maxCommentsWhenCollapsed','_handleNewCommentModel','_handleInfoComment','element','delegate','from','_rearrangeCollapse','editorReady','focus','isEditMode','visibleViews','set','change:isResolved','_model','length','resolvedBy','resolvedCommentView','refreshVisibleViews','Marked\x20as\x20resolved','change:hasDirtyComment','formatDateTime','_shouldCollapse','isActive','resolved','bind','hasDirtyComment','authoredAt','change:isActive','add'];(function(_0x1ab38a,_0x504822){const _0x53fed3=function(_0x564c94){while(--_0x564c94){_0x1ab38a['push'](_0x1ab38a['shift']());}};_0x53fed3(++_0x504822);}(_0x5048,0xd4));const _0x53fe=function(_0x1ab38a,_0x504822){_0x1ab38a=_0x1ab38a-0x0;let _0x53fed3=_0x5048[_0x1ab38a];return _0x53fed3;};import{View as _0x85c9ae}from'ckeditor5/src/ui.js';import{diff as _0x5d0ba8,Collection as _0x5519ed}from'ckeditor5/src/utils.js';import{getTranslation as _0x4b09e1}from'../../../utils/common-translations.js';import _0x4dea4e from'./collapsedcommentsview.js';export default class vt extends _0x85c9ae{constructor(_0x3605a0,_0x45efe1,_0x3c27b1){super(_0x3605a0),this[_0x53fe('0x2')](_0x53fe('0x10'),!0x1),this[_0x53fe('0x2')](_0x53fe('0x5'),_0x45efe1[_0x53fe('0x1d')][_0x53fe('0x5')]),this[_0x53fe('0x2')](_0x53fe('0xd'),!0x1),this['_model']=_0x45efe1,this[_0x53fe('0x21')]=_0x3c27b1,this[_0x53fe('0x20')]=this['createCollection'](),this[_0x53fe('0x1')]=this[_0x53fe('0x22')](),this['resolvedCommentView']=null,this['_collapsedCommentsView']=new _0x4dea4e(_0x3605a0),this[_0x53fe('0x2e')][_0x53fe('0xf')]('count')['to'](this,_0x53fe('0x5'),_0x43d495=>_0x43d495-this[_0x53fe('0x21')][_0x53fe('0x31')]);for(const _0xc226a9 of _0x45efe1[_0x53fe('0x1d')])this[_0x53fe('0x32')](_0xc226a9);this['_handleInfoComment'](),this[_0x53fe('0x27')](_0x45efe1[_0x53fe('0x1d')],_0x53fe('0x13'),(_0x3c6c97,_0x5ae04d)=>{const _0x49ef8e=this[_0x53fe('0x18')](_0x5ae04d);this[_0x53fe('0x5')]++,this[_0x53fe('0x32')](_0x5ae04d,_0x49ef8e),this[_0x53fe('0x8')]();}),this[_0x53fe('0x27')](_0x45efe1[_0x53fe('0x1d')],_0x53fe('0x2d'),(_0x414655,_0x110b6f)=>{this[_0x53fe('0x5')]--,this[_0x53fe('0x16')](_0x110b6f),this[_0x53fe('0x8')]();}),this[_0x53fe('0x27')](_0x45efe1,_0x53fe('0x2b'),()=>this[_0x53fe('0x8')]()),this['listenTo'](_0x45efe1,_0x53fe('0x3'),()=>this[_0x53fe('0x33')]()),this['on'](_0x53fe('0x12'),()=>this[_0x53fe('0x8')]()),this['on'](_0x53fe('0xa'),()=>this[_0x53fe('0x8')]()),this[_0x53fe('0x25')]({'tag':'ul','attributes':{'class':[_0x53fe('0x19')]},'children':this[_0x53fe('0x1')]});}get[_0x53fe('0xc')](){return this['_model'][_0x53fe('0x1a')]>this['_config']['maxThreadTotalWeight']&&!this[_0x53fe('0xd')]&&!this['hasDirtyComment'];}['render'](){super['render'](),this[_0x53fe('0x8')]();}[_0x53fe('0x39')](){this[_0x53fe('0x34')]['focus']();}[_0x53fe('0x15')](){this['_collapsedCommentsView'][_0x53fe('0x15')]();for(const _0x419154 of this[_0x53fe('0x20')])_0x419154[_0x53fe('0x15')]();super[_0x53fe('0x15')]();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}[_0x53fe('0x32')](_0x46afd0,_0x5234db){const _0x2b7b9c=new this[(_0x53fe('0x21'))][(_0x53fe('0x17'))](this['locale'],_0x46afd0,{'maxCommentCharsWhenCollapsed':this[_0x53fe('0x21')][_0x53fe('0x29')],'formatDateTime':this[_0x53fe('0x21')]['formatDateTime'],'editorConfig':this[_0x53fe('0x21')]['editorConfig']});_0x2b7b9c['viewUid']=_0x46afd0['id'],_0x2b7b9c['delegate'](_0x53fe('0x26'))['to'](this),_0x2b7b9c[_0x53fe('0x35')](_0x53fe('0x1e'))['to'](this),_0x2b7b9c[_0x53fe('0x35')](_0x53fe('0x2f'))['to'](this),_0x2b7b9c['delegate'](_0x53fe('0x38'))['to'](this),_0x2b7b9c[_0x53fe('0x35')](_0x53fe('0x1f'))['to'](this),this[_0x53fe('0x27')](_0x2b7b9c,'change:isEditMode',()=>this[_0x53fe('0x28')]()),this[_0x53fe('0x20')][_0x53fe('0x13')](_0x2b7b9c,_0x5234db);}[_0x53fe('0x18')](_0xc069c2){const _0x4d53fa=this['_model'][_0x53fe('0x23')](_0xc069c2);return this[_0x53fe('0x7')]?this[_0x53fe('0x7')][_0x53fe('0x11')]>_0xc069c2['authoredAt']?_0x4d53fa-0x1:_0x4d53fa:_0x4d53fa-0x1;}['_handleInfoComment'](){if(this[_0x53fe('0x4')][_0x53fe('0x6')]&&this[_0x53fe('0x4')]['resolvedAt']){const _0xb9e549={'id':_0x53fe('0xe'),'author':this['_model'][_0x53fe('0x6')],'authoredAt':this['_model']['resolvedAt'],'content':_0x4b09e1(this['locale'],_0x53fe('0x9')),'attributes':{}};this[_0x53fe('0x7')]=new this[(_0x53fe('0x21'))][(_0x53fe('0x17'))](this[_0x53fe('0x30')],_0xb9e549,{'maxCommentCharsWhenCollapsed':this[_0x53fe('0x21')][_0x53fe('0x29')],'formatDateTime':this[_0x53fe('0x21')][_0x53fe('0xb')],'editorConfig':this[_0x53fe('0x21')]['editorConfig'],'isSystemComment':!0x0}),this[_0x53fe('0x20')][_0x53fe('0x13')](this['resolvedCommentView'],this[_0x53fe('0x4')][_0x53fe('0x23')](_0xb9e549));}else this[_0x53fe('0x7')]&&(this[_0x53fe('0x20')]['remove'](this[_0x53fe('0x7')]),this[_0x53fe('0x7')][_0x53fe('0x15')](),this[_0x53fe('0x7')]=null);this['refreshVisibleViews']();}[_0x53fe('0x16')](_0x237353){const _0x1cbd31=this[_0x53fe('0x20')][_0x53fe('0x2d')](_0x237353['id']);this[_0x53fe('0x2a')](_0x1cbd31),_0x1cbd31[_0x53fe('0x0')]&&this[_0x53fe('0x28')](),_0x1cbd31['destroy']();}[_0x53fe('0x28')](){this[_0x53fe('0x10')]=Array[_0x53fe('0x36')](this[_0x53fe('0x20')])['some'](_0x5c73e6=>_0x5c73e6[_0x53fe('0x0')]);}[_0x53fe('0x37')](){const _0x393a6d=function(_0x397207){const _0x5adf46=new _0x5519ed();for(const _0x516723 of _0x397207)_0x5adf46[_0x53fe('0x13')](_0x516723);return _0x5adf46;}(this[_0x53fe('0x20')]),_0x113112=this['_collapsedCommentsView'][_0x53fe('0x24')];for(let _0x9de556=0x1;_0x9de556<=_0x113112;_0x9de556++)_0x393a6d[_0x53fe('0x2d')](0x1);for(const _0x52ca5a of _0x393a6d)_0x52ca5a[_0x53fe('0x1c')]();_0x113112>0x0&&_0x393a6d[_0x53fe('0x13')](this[_0x53fe('0x2e')],0x1),is(_0x5d0ba8(Array[_0x53fe('0x36')](this[_0x53fe('0x1')]),Array[_0x53fe('0x36')](_0x393a6d)),this[_0x53fe('0x1')],_0x393a6d);}[_0x53fe('0x1b')](){is(_0x5d0ba8(Array[_0x53fe('0x36')](this[_0x53fe('0x1')]),Array['from'](this[_0x53fe('0x20')])),this[_0x53fe('0x1')],this[_0x53fe('0x20')]);for(const _0x15ad20 of this[_0x53fe('0x1')])_0x15ad20['expand']();}}function is(_0x28603f,_0x133acb,_0x40ccec){let _0x3ad9d9=0x0;for(const _0x4ae338 of _0x28603f)switch(_0x4ae338){case'insert':_0x133acb[_0x53fe('0x13')](_0x40ccec[_0x53fe('0x2c')](_0x3ad9d9),_0x3ad9d9),_0x3ad9d9++;break;case'delete':_0x133acb['remove'](_0x3ad9d9);break;case _0x53fe('0x14'):_0x3ad9d9++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e7c=['classList','contextValue','_trimContextValue','locale','setTemplate','execute','_attachContextActions','...','overlay','Reopen','fire','ck-annotation__actions','_createReopenButton','icon','reopenCommentThread','ck-context','length','span','render','remove','substring','div','_model','isReadOnly','context','element','querySelector','isResolvable','.ck-context','mouseleave','reopenButtonView','isVisible','isResolved','hasContext','add','label','listenTo','tooltip','lastIndexOf','ck-context-wrapper','bindTemplate','value','ck-thread__header','bind','isEnabled','.ck-context__value'];(function(_0x594ab2,_0x3e7c36){const _0xef5416=function(_0x534e6d){while(--_0x534e6d){_0x594ab2['push'](_0x594ab2['shift']());}};_0xef5416(++_0x3e7c36);}(_0x3e7c,0x1db));const _0xef54=function(_0x594ab2,_0x3e7c36){_0x594ab2=_0x594ab2-0x0;let _0xef5416=_0x3e7c[_0x594ab2];return _0xef5416;};import{View as _0x34f01c,ButtonView as _0x39c19e}from'ckeditor5/src/ui.js';import{getTranslation as _0x227edb}from'../../../utils/common-translations.js';import _0x4c6866 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x34f01c{constructor(_0x58376e,_0x478918){super(_0x58376e);const _0x2cdf2c=this[_0xef54('0x19')];this[_0xef54('0x7')]=_0x478918,this['reopenButtonView']=this['_createReopenButton'](),this[_0xef54('0x1c')](_0xef54('0x12'))['to'](this[_0xef54('0x7')],_0xef54('0x9'),_0x554db6=>!!_0x554db6),this[_0xef54('0x1c')](_0xef54('0x20'))['to'](this[_0xef54('0x7')],_0xef54('0x9'),_0x14f03a=>_0x14f03a&&_0x14f03a[_0xef54('0x1a')]?this[_0xef54('0x21')](_0x14f03a[_0xef54('0x1a')]):_0x227edb(this[_0xef54('0x22')],'Comment\x20was\x20made\x20on\x20an\x20element')),this[_0xef54('0x23')]({'tag':_0xef54('0x6'),'attributes':{'class':[_0xef54('0x1b')]},'children':[{'tag':_0xef54('0x6'),'attributes':{'class':[_0xef54('0x18')]},'children':[{'tag':'div','attributes':{'class':[_0xef54('0x0'),_0x2cdf2c['if']('hasContext','ck-context--quotes')]},'children':[{'tag':_0xef54('0x2'),'attributes':{'class':['ck-context__value']},'children':[{'text':_0x2cdf2c['to'](_0xef54('0x20'))}]}]}]},{'tag':_0xef54('0x6'),'attributes':{'class':[_0xef54('0x2a')]},'children':[this[_0xef54('0xf')]]}]});}[_0xef54('0x3')](){super[_0xef54('0x3')](),this[_0xef54('0x25')]();}[_0xef54('0x2b')](){const _0x429bb5=new _0x39c19e(this['locale']);return _0x429bb5[_0xef54('0x14')]=_0x227edb(this[_0xef54('0x22')],'Reopen'),_0x429bb5[_0xef54('0x16')]=_0x227edb(this[_0xef54('0x22')],_0xef54('0x28')),_0x429bb5[_0xef54('0x2c')]=_0x4c6866,_0x429bb5['bind'](_0xef54('0x1d'))['to'](this['_model'],_0xef54('0x8'),_0x5b15c8=>!_0x5b15c8),_0x429bb5[_0xef54('0x1c')](_0xef54('0x10'))['to'](this[_0xef54('0x7')],_0xef54('0xc'),this['_model'],_0xef54('0x11'),(_0x5130be,_0x428311)=>_0x5130be&&_0x428311),_0x429bb5['on'](_0xef54('0x24'),()=>{this[_0xef54('0x29')](_0xef54('0x2d'),this['_model']['id']);}),_0x429bb5;}[_0xef54('0x21')](_0x47564c){if(_0x47564c[_0xef54('0x1')]<0x96)return _0x47564c;const _0x4d00de=_0x47564c[_0xef54('0x17')]('\x20',0x93);return _0x47564c[_0xef54('0x5')](0x0,_0x4d00de>-0x1?_0x4d00de:0x93)+_0xef54('0x26');}[_0xef54('0x25')](){const _0x375dbe=this[_0xef54('0xa')]['querySelector'](_0xef54('0xd')),_0x4abfb4=_0x375dbe[_0xef54('0xb')](_0xef54('0x1e'));this['listenTo'](_0x375dbe,'mouseenter',()=>{_0x4abfb4['offsetWidth']<_0x4abfb4['scrollWidth']&&_0x375dbe[_0xef54('0x1f')][_0xef54('0x13')](_0xef54('0x27'));}),this[_0xef54('0x15')](_0x375dbe,_0xef54('0xe'),()=>{_0x375dbe[_0xef54('0x1f')][_0xef54('0x4')](_0xef54('0x27'));});}}
23
+ const _0x4ad6=['remove','Reopen','offsetWidth','Comment\x20was\x20made\x20on\x20an\x20element','isReadOnly','length','element','isResolved','hasContext','value','ck-context','listenTo','ck-context-wrapper','div','mouseenter','contextValue','bind','ck-context--quotes','execute','add','ck-annotation__actions','.ck-context','scrollWidth','_attachContextActions','isResolvable','reopenButtonView','...','.ck-context__value','ck-thread__header','ck-context__value','context','substring','overlay','setTemplate','bindTemplate','_createReopenButton','render','querySelector','_model','locale','span','classList','_trimContextValue','fire','mouseleave','reopenCommentThread'];(function(_0x4e40f3,_0x4ad6db){const _0x2a2d07=function(_0x55f69c){while(--_0x55f69c){_0x4e40f3['push'](_0x4e40f3['shift']());}};_0x2a2d07(++_0x4ad6db);}(_0x4ad6,0x1ad));const _0x2a2d=function(_0x4e40f3,_0x4ad6db){_0x4e40f3=_0x4e40f3-0x0;let _0x2a2d07=_0x4ad6[_0x4e40f3];return _0x2a2d07;};import{View as _0x2d7958,ButtonView as _0x2155e3}from'ckeditor5/src/ui.js';import{getTranslation as _0x6096a}from'../../../utils/common-translations.js';import _0x518f79 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x2d7958{constructor(_0x3ba930,_0x388217){super(_0x3ba930);const _0x55a5d4=this[_0x2a2d('0x13')];this['_model']=_0x388217,this[_0x2a2d('0xa')]=this[_0x2a2d('0x14')](),this['bind'](_0x2a2d('0x27'))['to'](this['_model'],'context',_0x169cd0=>!!_0x169cd0),this[_0x2a2d('0x1')]('contextValue')['to'](this[_0x2a2d('0x17')],_0x2a2d('0xf'),_0xc1b3d5=>_0xc1b3d5&&_0xc1b3d5[_0x2a2d('0x28')]?this[_0x2a2d('0x1b')](_0xc1b3d5[_0x2a2d('0x28')]):_0x6096a(this[_0x2a2d('0x18')],_0x2a2d('0x22'))),this[_0x2a2d('0x12')]({'tag':'div','attributes':{'class':[_0x2a2d('0xd')]},'children':[{'tag':_0x2a2d('0x2c'),'attributes':{'class':[_0x2a2d('0x2b')]},'children':[{'tag':_0x2a2d('0x2c'),'attributes':{'class':[_0x2a2d('0x29'),_0x55a5d4['if'](_0x2a2d('0x27'),_0x2a2d('0x2'))]},'children':[{'tag':_0x2a2d('0x19'),'attributes':{'class':[_0x2a2d('0xe')]},'children':[{'text':_0x55a5d4['to'](_0x2a2d('0x0'))}]}]}]},{'tag':_0x2a2d('0x2c'),'attributes':{'class':[_0x2a2d('0x5')]},'children':[this[_0x2a2d('0xa')]]}]});}[_0x2a2d('0x15')](){super['render'](),this['_attachContextActions']();}['_createReopenButton'](){const _0x2128fa=new _0x2155e3(this[_0x2a2d('0x18')]);return _0x2128fa['label']=_0x6096a(this[_0x2a2d('0x18')],'Reopen'),_0x2128fa['tooltip']=_0x6096a(this[_0x2a2d('0x18')],_0x2a2d('0x20')),_0x2128fa['icon']=_0x518f79,_0x2128fa[_0x2a2d('0x1')]('isEnabled')['to'](this[_0x2a2d('0x17')],_0x2a2d('0x23'),_0x33847f=>!_0x33847f),_0x2128fa[_0x2a2d('0x1')]('isVisible')['to'](this[_0x2a2d('0x17')],_0x2a2d('0x9'),this[_0x2a2d('0x17')],_0x2a2d('0x26'),(_0x2b75c5,_0x3eed6a)=>_0x2b75c5&&_0x3eed6a),_0x2128fa['on'](_0x2a2d('0x3'),()=>{this[_0x2a2d('0x1c')](_0x2a2d('0x1e'),this['_model']['id']);}),_0x2128fa;}['_trimContextValue'](_0x224fd7){if(_0x224fd7[_0x2a2d('0x24')]<0x96)return _0x224fd7;const _0x329b27=_0x224fd7['lastIndexOf']('\x20',0x93);return _0x224fd7[_0x2a2d('0x10')](0x0,_0x329b27>-0x1?_0x329b27:0x93)+_0x2a2d('0xb');}[_0x2a2d('0x8')](){const _0x1325d1=this[_0x2a2d('0x25')][_0x2a2d('0x16')](_0x2a2d('0x6')),_0x1feb42=_0x1325d1[_0x2a2d('0x16')](_0x2a2d('0xc'));this[_0x2a2d('0x2a')](_0x1325d1,_0x2a2d('0x2d'),()=>{_0x1feb42[_0x2a2d('0x21')]<_0x1feb42[_0x2a2d('0x7')]&&_0x1325d1[_0x2a2d('0x1a')][_0x2a2d('0x4')]('overlay');}),this['listenTo'](_0x1325d1,_0x2a2d('0x1d'),()=>{_0x1325d1['classList'][_0x2a2d('0x1f')](_0x2a2d('0x11'));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x20dc=['userView','extendTemplate','change:showInput','showInput','createEditor','isFocused','value','ck-thread__user','editorReady','then','delegate','focusTracker','set','editor','bind','editorDestroyed','bindTemplate','ck-comment__input-container--active','destroy','commentInputView'];(function(_0x3d27d4,_0x20dcc2){var _0x14f302=function(_0x3e8478){while(--_0x3e8478){_0x3d27d4['push'](_0x3d27d4['shift']());}};_0x14f302(++_0x20dcc2);}(_0x20dc,0x165));var _0x14f3=function(_0x3d27d4,_0x20dcc2){_0x3d27d4=_0x3d27d4-0x0;var _0x14f302=_0x20dc[_0x3d27d4];return _0x14f302;};import{View as _0x5bb1ee}from'ckeditor5/src/ui.js';import _0x250ded from'./commentinputview.js';import{UserView as _0x41ecaf}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x5bb1ee{constructor(_0x100c67,_0x3e30b2,_0x446a88){super(_0x100c67),this['commentInputView']=new _0x250ded(_0x100c67,_0x446a88),this[_0x14f3('0x2')][_0x14f3('0x11')]('showButtons')['to'](this[_0x14f3('0x2')][_0x14f3('0xe')],_0x14f3('0x8'),this[_0x14f3('0x2')],_0x14f3('0x9'),(_0x4e3bb4,_0x15e87f)=>_0x4e3bb4||!!_0x15e87f),this[_0x14f3('0xf')]('showInput',!0x1),this['on'](_0x14f3('0x5'),()=>{this[_0x14f3('0x6')]&&!this[_0x14f3('0x2')][_0x14f3('0x10')]&&this[_0x14f3('0x2')][_0x14f3('0x7')]();}),this[_0x14f3('0x2')][_0x14f3('0xd')](_0x14f3('0xb'))['to'](this),this[_0x14f3('0x2')]['delegate'](_0x14f3('0x12'))['to'](this),this['userView']=new _0x41ecaf(_0x100c67,_0x3e30b2),this['userView'][_0x14f3('0x4')]({'attributes':{'class':_0x14f3('0xa')}}),this['commentInputView'][_0x14f3('0x4')]({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this[_0x14f3('0x13')]['if']('showInput',_0x14f3('0x0'))]},'children':[this[_0x14f3('0x3')],this[_0x14f3('0x2')]]});}[_0x14f3('0x1')](){return this[_0x14f3('0x2')][_0x14f3('0x1')]()[_0x14f3('0xc')](()=>super['destroy']());}}
23
+ var _0x3977=['setTemplate','delegate','ck-comment__input-container','div','editor','userView','bind','ck-thread__input','value','commentInputView','bindTemplate','editorReady','ck-thread__user','showInput','destroy','createEditor','extendTemplate','isFocused','then','change:showInput','editorDestroyed','set','showButtons'];(function(_0x592100,_0x39774d){var _0x2d3892=function(_0x4784b6){while(--_0x4784b6){_0x592100['push'](_0x592100['shift']());}};_0x2d3892(++_0x39774d);}(_0x3977,0x1da));var _0x2d38=function(_0x592100,_0x39774d){_0x592100=_0x592100-0x0;var _0x2d3892=_0x3977[_0x592100];return _0x2d3892;};import{View as _0x287fa0}from'ckeditor5/src/ui.js';import _0x3a98b8 from'./commentinputview.js';import{UserView as _0x23d860}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x287fa0{constructor(_0x409df9,_0x4cf061,_0x22bbac){super(_0x409df9),this[_0x2d38('0x12')]=new _0x3a98b8(_0x409df9,_0x22bbac),this[_0x2d38('0x12')][_0x2d38('0xf')](_0x2d38('0x8'))['to'](this[_0x2d38('0x12')]['focusTracker'],_0x2d38('0x3'),this[_0x2d38('0x12')],_0x2d38('0x11'),(_0x4f2d16,_0x13e66e)=>_0x4f2d16||!!_0x13e66e),this[_0x2d38('0x7')](_0x2d38('0x16'),!0x1),this['on'](_0x2d38('0x5'),()=>{this['showInput']&&!this['commentInputView'][_0x2d38('0xd')]&&this[_0x2d38('0x12')][_0x2d38('0x1')]();}),this[_0x2d38('0x12')][_0x2d38('0xa')](_0x2d38('0x14'))['to'](this),this[_0x2d38('0x12')]['delegate'](_0x2d38('0x6'))['to'](this),this[_0x2d38('0xe')]=new _0x23d860(_0x409df9,_0x4cf061),this[_0x2d38('0xe')]['extendTemplate']({'attributes':{'class':_0x2d38('0x15')}}),this[_0x2d38('0x12')][_0x2d38('0x2')]({'attributes':{'class':_0x2d38('0x10')}}),this[_0x2d38('0x9')]({'tag':_0x2d38('0xc'),'attributes':{'class':[_0x2d38('0xb'),this[_0x2d38('0x13')]['if'](_0x2d38('0x16'),'ck-comment__input-container--active')]},'children':[this[_0x2d38('0xe')],this[_0x2d38('0x12')]]});}[_0x2d38('0x0')](){return this['commentInputView'][_0x2d38('0x0')]()[_0x2d38('0x4')](()=>super[_0x2d38('0x0')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e82=['extendTemplate','actionBar','removeButton','listenTo','set','get','.ck-thread__container','length','div','element','Write\x20a\x20comment...','_cancelAllConfirms','commentsListView','ck-thread--unlinked','execute','isResolved','removeCommentThread','commentThreadHeaderView','icon','fire','high','Resolve','bindTemplate','commentViews','resolveButton','check','add','isResolvable','ck-thread','tooltip','ck-reset_all-excluded','stop','commentThreadChildren','isVisible','render','_createResolveButton','ck-thread--remove-confirmation','placeholder','getTemplate','addMany','archivedAt','unbind','_boundFirstCommentView','label','isConfirm','commentThreadInputView','ck-thread__container','Delete\x20comment\x20thread?','cancelConfirm','isEnabled','isActive','createCollection','change:isReadOnly','_bindFirstCommentView','has','bind','setTemplate','querySelector','actionIndicator','containerElement','remove','ck-thread--active','isUnlinked','locale','_model'];(function(_0x46a07d,_0x3e8226){const _0x587c18=function(_0x5e3006){while(--_0x5e3006){_0x46a07d['push'](_0x46a07d['shift']());}};_0x587c18(++_0x3e8226);}(_0x3e82,0x76));const _0x587c=function(_0x46a07d,_0x3e8226){_0x46a07d=_0x46a07d-0x0;let _0x587c18=_0x3e82[_0x46a07d];return _0x587c18;};import{ConfirmMixin as _0x7e9c80}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x497020}from'ckeditor5/src/ui.js';import{icons as _0x3251d6}from'ckeditor5/src/core.js';import _0x42ec5e from'./basecommentthreadview.js';import{getTranslation as _0x27d766}from'../../../utils/common-translations.js';export default class ft extends _0x7e9c80(_0x42ec5e){constructor(_0x57b3db,_0x1a6608,_0x2a82a8,_0x462640){super(_0x57b3db,_0x1a6608,_0x2a82a8,_0x462640),this[_0x587c('0x2c')]=this[_0x587c('0x3f')](),this[_0x587c('0x2c')][_0x587c('0x33')]([this[_0x587c('0x18')],this[_0x587c('0x39')]]),this[_0x587c('0xb')][_0x587c('0x34')]&&this[_0x587c('0x2c')]['add'](this[_0x587c('0x1d')],0x0),this[_0x587c('0xb')]['on']('change:archivedAt',(_0x1ba96f,_0x5b346b,_0x38b37f)=>{_0x38b37f?this[_0x587c('0x2c')][_0x587c('0x1')](this[_0x587c('0x1d')])||this[_0x587c('0x2c')][_0x587c('0x26')](this['commentThreadHeaderView'],0x0):this[_0x587c('0x2c')][_0x587c('0x7')](this['commentThreadHeaderView']);}),this[_0x587c('0x10')]('actionIndicator',null),this[_0x587c('0x6')]=null,this['_boundFirstCommentView']=null,this[_0x587c('0xa')]=_0x57b3db,this[_0x587c('0x24')]=this[_0x587c('0x2f')](),this[_0x587c('0x3')](this['getTemplate']()),this['on']('change:isActive',(_0x21dbd9,_0x514a2b,_0x52fc76)=>{_0x52fc76||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],_0x587c('0x40'),(_0x3581a2,_0xd154c7,_0x35e21d)=>{_0x35e21d&&this[_0x587c('0x17')]();}),this[_0x587c('0x13')]>0x0&&this[_0x587c('0x0')](),this[_0x587c('0xf')](this[_0x587c('0x18')]['commentViews'],'add',()=>{this[_0x587c('0x0')]();});}[_0x587c('0x32')](){const _0xfdb20e=this[_0x587c('0x22')];return{'tag':_0x587c('0x14'),'attributes':{'class':[_0x587c('0x28'),_0x587c('0x2a'),_0xfdb20e['if'](_0x587c('0x3e'),_0x587c('0x8')),_0xfdb20e['if'](_0x587c('0x9'),_0x587c('0x19')),_0xfdb20e['if'](_0x587c('0x38'),_0x587c('0x30')),_0xfdb20e['to'](_0x587c('0x5'),_0x23f928=>_0x23f928?'ck-thread--'+_0x23f928:'')],'data-thread-id':this[_0x587c('0xb')]['id'],'tabindex':-0x1},'children':[{'tag':_0x587c('0x14'),'attributes':{'class':_0x587c('0x3a')},'children':this[_0x587c('0x2c')]}]};}[_0x587c('0x2e')](){super[_0x587c('0x2e')](),this[_0x587c('0x6')]=this[_0x587c('0x15')][_0x587c('0x4')](_0x587c('0x12'));}[_0x587c('0x17')](){this[_0x587c('0x3c')]();for(const _0xee1463 of this['commentsListView']['commentViews'])_0xee1463[_0x587c('0x3c')]();}[_0x587c('0x0')](){const {locale:_0x473ecf}=this,_0x55d289=this[_0x587c('0x18')][_0x587c('0x23')][_0x587c('0x11')](0x0);_0x55d289===this[_0x587c('0x36')]||_0x55d289['isSystemComment']||(this[_0x587c('0x36')]=_0x55d289,this[_0x587c('0x35')](_0x587c('0x5')),this[_0x587c('0x2')](_0x587c('0x5'))['to'](_0x55d289,_0x587c('0x5'),_0x37181a=>'remove'===_0x37181a?_0x587c('0x7'):null),_0x55d289[_0x587c('0x31')]=_0x27d766(_0x473ecf,_0x587c('0x16')),_0x55d289[_0x587c('0xe')]['on'](_0x587c('0x1a'),_0x48aa06=>{_0x48aa06[_0x587c('0x2b')](),this['showConfirm'](_0x27d766(_0x473ecf,_0x587c('0x3b')),this['containerElement'])['then'](()=>{this['fire'](_0x587c('0x1c'));});},{'priority':_0x587c('0x20')}),_0x55d289[_0x587c('0xd')][_0x587c('0x26')](this['resolveButton'],0x0));}[_0x587c('0x2f')](){const _0x1f0b33=new _0x497020(this[_0x587c('0xa')]);return _0x1f0b33[_0x587c('0x37')]=_0x27d766(this[_0x587c('0xa')],_0x587c('0x21')),_0x1f0b33[_0x587c('0x29')]=_0x27d766(this[_0x587c('0xa')],'Resolve'),_0x1f0b33[_0x587c('0x1e')]=_0x3251d6[_0x587c('0x25')],_0x1f0b33[_0x587c('0xc')]({'attributes':{'class':'ck-comment--resolve'}}),_0x1f0b33['bind'](_0x587c('0x3d'))['to'](this[_0x587c('0xb')],'isReadOnly',_0x4a9d11=>!_0x4a9d11),_0x1f0b33[_0x587c('0x2')](_0x587c('0x2d'))['to'](this[_0x587c('0xb')],_0x587c('0x27'),this[_0x587c('0xb')],_0x587c('0x1b'),(_0x42e720,_0x5d5f7c)=>_0x42e720&&!_0x5d5f7c),_0x1f0b33['on'](_0x587c('0x1a'),()=>{this[_0x587c('0x1f')]('resolveCommentThread',this[_0x587c('0xb')]['id']);}),_0x1f0b33;}}
23
+ const _0x4a74=['_bindFirstCommentView','Write\x20a\x20comment...','isSystemComment','locale','actionBar','commentViews','createCollection','actionIndicator','has','_boundFirstCommentView','isVisible','div','remove','add','commentThreadHeaderView','isUnlinked','resolveCommentThread','render','isReadOnly','icon','ck-thread','addMany','isResolved','ck-thread--','showConfirm','getTemplate','listenTo','commentThreadChildren','querySelector','label','change:isActive','fire','.ck-thread__container','isConfirm','containerElement','ck-comment--resolve','Delete\x20comment\x20thread?','unbind','extendTemplate','isActive','ck-thread__container','length','resolveButton','ck-thread--unlinked','cancelConfirm','get','bind','execute','ck-thread--remove-confirmation','isResolvable','_cancelAllConfirms','removeCommentThread','Resolve','_model','high','isEnabled','bindTemplate','commentsListView','stop','placeholder','then'];(function(_0xac4296,_0x4a7422){const _0x48d8bd=function(_0x5c5725){while(--_0x5c5725){_0xac4296['push'](_0xac4296['shift']());}};_0x48d8bd(++_0x4a7422);}(_0x4a74,0x91));const _0x48d8=function(_0xac4296,_0x4a7422){_0xac4296=_0xac4296-0x0;let _0x48d8bd=_0x4a74[_0xac4296];return _0x48d8bd;};import{ConfirmMixin as _0x331d91}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x3f4e09}from'ckeditor5/src/ui.js';import{icons as _0x1a9151}from'ckeditor5/src/core.js';import _0x5a1ce1 from'./basecommentthreadview.js';import{getTranslation as _0x3999d7}from'../../../utils/common-translations.js';export default class ft extends _0x331d91(_0x5a1ce1){constructor(_0x90360b,_0x25ed47,_0x1a202b,_0x30a5d2){super(_0x90360b,_0x25ed47,_0x1a202b,_0x30a5d2),this[_0x48d8('0x4')]=this[_0x48d8('0x2c')](),this[_0x48d8('0x4')][_0x48d8('0x3b')]([this['commentsListView'],this['commentThreadInputView']]),this[_0x48d8('0x1e')]['archivedAt']&&this['commentThreadChildren'][_0x48d8('0x33')](this[_0x48d8('0x34')],0x0),this[_0x48d8('0x1e')]['on']('change:archivedAt',(_0x5a1c76,_0x1eeebf,_0x575e62)=>{_0x575e62?this[_0x48d8('0x4')][_0x48d8('0x2e')](this['commentThreadHeaderView'])||this[_0x48d8('0x4')]['add'](this[_0x48d8('0x34')],0x0):this[_0x48d8('0x4')][_0x48d8('0x32')](this['commentThreadHeaderView']);}),this['set'](_0x48d8('0x2d'),null),this['containerElement']=null,this[_0x48d8('0x2f')]=null,this[_0x48d8('0x29')]=_0x90360b,this[_0x48d8('0x13')]=this['_createResolveButton'](),this['setTemplate'](this[_0x48d8('0x2')]()),this['on'](_0x48d8('0x7'),(_0x2254ba,_0x151454,_0x5ab6e9)=>{_0x5ab6e9||this[_0x48d8('0x1b')]();}),this[_0x48d8('0x3')](this[_0x48d8('0x1e')],'change:isReadOnly',(_0x4a582e,_0x1ca875,_0x58c629)=>{_0x58c629&&this[_0x48d8('0x1b')]();}),this[_0x48d8('0x12')]>0x0&&this[_0x48d8('0x26')](),this[_0x48d8('0x3')](this[_0x48d8('0x22')][_0x48d8('0x2b')],_0x48d8('0x33'),()=>{this[_0x48d8('0x26')]();});}['getTemplate'](){const _0x1d60fe=this[_0x48d8('0x21')];return{'tag':_0x48d8('0x31'),'attributes':{'class':[_0x48d8('0x3a'),'ck-reset_all-excluded',_0x1d60fe['if'](_0x48d8('0x10'),'ck-thread--active'),_0x1d60fe['if'](_0x48d8('0x35'),_0x48d8('0x14')),_0x1d60fe['if'](_0x48d8('0xa'),_0x48d8('0x19')),_0x1d60fe['to'](_0x48d8('0x2d'),_0x11f864=>_0x11f864?_0x48d8('0x0')+_0x11f864:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':_0x48d8('0x11')},'children':this[_0x48d8('0x4')]}]};}[_0x48d8('0x37')](){super[_0x48d8('0x37')](),this[_0x48d8('0xb')]=this['element'][_0x48d8('0x5')](_0x48d8('0x9'));}[_0x48d8('0x1b')](){this[_0x48d8('0x15')]();for(const _0x3fa9e8 of this['commentsListView'][_0x48d8('0x2b')])_0x3fa9e8[_0x48d8('0x15')]();}[_0x48d8('0x26')](){const {locale:_0x49eabb}=this,_0x2f62a7=this[_0x48d8('0x22')]['commentViews'][_0x48d8('0x16')](0x0);_0x2f62a7===this[_0x48d8('0x2f')]||_0x2f62a7[_0x48d8('0x28')]||(this[_0x48d8('0x2f')]=_0x2f62a7,this[_0x48d8('0xe')](_0x48d8('0x2d')),this[_0x48d8('0x17')]('actionIndicator')['to'](_0x2f62a7,_0x48d8('0x2d'),_0x27cf01=>_0x48d8('0x32')===_0x27cf01?_0x48d8('0x32'):null),_0x2f62a7[_0x48d8('0x24')]=_0x3999d7(_0x49eabb,_0x48d8('0x27')),_0x2f62a7['removeButton']['on'](_0x48d8('0x18'),_0x2698ee=>{_0x2698ee[_0x48d8('0x23')](),this[_0x48d8('0x1')](_0x3999d7(_0x49eabb,_0x48d8('0xd')),this['containerElement'])[_0x48d8('0x25')](()=>{this[_0x48d8('0x8')](_0x48d8('0x1c'));});},{'priority':_0x48d8('0x1f')}),_0x2f62a7[_0x48d8('0x2a')][_0x48d8('0x33')](this[_0x48d8('0x13')],0x0));}['_createResolveButton'](){const _0x5af07=new _0x3f4e09(this['locale']);return _0x5af07[_0x48d8('0x6')]=_0x3999d7(this['locale'],_0x48d8('0x1d')),_0x5af07['tooltip']=_0x3999d7(this[_0x48d8('0x29')],_0x48d8('0x1d')),_0x5af07[_0x48d8('0x39')]=_0x1a9151['check'],_0x5af07[_0x48d8('0xf')]({'attributes':{'class':_0x48d8('0xc')}}),_0x5af07[_0x48d8('0x17')](_0x48d8('0x20'))['to'](this[_0x48d8('0x1e')],_0x48d8('0x38'),_0x28292b=>!_0x28292b),_0x5af07[_0x48d8('0x17')](_0x48d8('0x30'))['to'](this[_0x48d8('0x1e')],_0x48d8('0x1a'),this[_0x48d8('0x1e')],_0x48d8('0x3c'),(_0x217cfc,_0x3375b6)=>_0x217cfc&&!_0x3375b6),_0x5af07['on'](_0x48d8('0x18'),()=>{this[_0x48d8('0x8')](_0x48d8('0x36'),this['_model']['id']);}),_0x5af07;}}