@ckeditor/ckeditor5-comments 41.0.0 → 41.1.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 (44) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
  43. package/theme/annotation.css +4 -0
  44. package/theme/commentthread.css +4 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x333c=['forEach','define','plugins','execute','map','collaboration.channelId','listenTo','_handleImportedData','config','commands','afterInit','importWord','high','editor','get','collaboration_features','importWord.formatting.comments'];(function(_0x2ccdd5,_0x333c2b){const _0x36e591=function(_0xeb6096){while(--_0xeb6096){_0x2ccdd5['push'](_0x2ccdd5['shift']());}};_0x36e591(++_0x333c2b);}(_0x333c,0x120));const _0x36e5=function(_0x2ccdd5,_0x333c2b){_0x2ccdd5=_0x2ccdd5-0x0;let _0x36e591=_0x333c[_0x2ccdd5];return _0x36e591;};import{Plugin as _0x5d5ffa}from'ckeditor5/src/core.js';import{priorities as _0x235ed7}from'ckeditor5/src/utils.js';import{Users as _0x3b2ce0}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x50485e from'../commentsrepository.js';export default class Z extends _0x5d5ffa{constructor(_0x1587fb){super(_0x1587fb),this[_0x36e5('0xe')][_0x36e5('0x9')][_0x36e5('0x2')](_0x36e5('0x0'),'basic');}[_0x36e5('0xb')](){const _0x41de8d=this[_0x36e5('0xe')],_0x3effb9=_0x41de8d[_0x36e5('0xa')][_0x36e5('0xf')](_0x36e5('0xc')),_0x1a7bca=_0x41de8d[_0x36e5('0x3')][_0x36e5('0xf')](_0x3b2ce0);_0x3effb9&&(_0x3effb9['on'](_0x36e5('0x4'),(_0x14fb78,[,_0x18cf02])=>{_0x18cf02[_0x36e5('0x10')]={'comments':!0x0,'user_id':_0x1a7bca['me']['id']};},{'priority':_0x235ed7[_0x36e5('0xd')]+0xa}),this[_0x36e5('0x7')](_0x3effb9,'dataInsert',this[_0x36e5('0x8')]));}[_0x36e5('0x8')](_0x437e2c,_0x4172a2){const {comment_threads:_0x59be9}=_0x4172a2;_0x59be9&&_0x59be9[_0x36e5('0x1')](({thread_id:_0x37d3ff,comments:_0x56bced,is_resolved:_0x17cc9f})=>{const _0x2bf8de=new Date(),_0x12349e=_0x56bced[_0x36e5('0x5')](({author:_0x49d692,content:_0x3e295c,created_at:_0x6c8411})=>({'content':_0x3e295c,'authorId':this[_0x36e5('0xe')][_0x36e5('0x3')]['get'](_0x3b2ce0)['me']['id'],'createdAt':_0x2bf8de,'attributes':{'@external':{'authorName':_0x49d692,'createdAt':_0x6c8411?new Date(_0x6c8411):new Date(),'source':_0x36e5('0xc')}}})),_0x560f1e=this['editor'][_0x36e5('0x9')][_0x36e5('0xf')](_0x36e5('0x6'));this[_0x36e5('0xe')]['plugins'][_0x36e5('0xf')](_0x50485e)['addCommentThread']({'channelId':_0x560f1e,'threadId':_0x37d3ff,'comments':_0x12349e,'resolvedAt':_0x17cc9f?_0x2bf8de:null});});}}
23
+ const _0x3b08=['collaboration_features','listenTo','config','get','importWord','importWord.formatting.comments','define','map','dataInsert','plugins','editor','addCommentThread','basic','_handleImportedData','collaboration.channelId','commands'];(function(_0x168a8f,_0x3b085){const _0x424d77=function(_0x22a8f9){while(--_0x22a8f9){_0x168a8f['push'](_0x168a8f['shift']());}};_0x424d77(++_0x3b085);}(_0x3b08,0xc2));const _0x424d=function(_0x168a8f,_0x3b085){_0x168a8f=_0x168a8f-0x0;let _0x424d77=_0x3b08[_0x168a8f];return _0x424d77;};import{Plugin as _0x2a45b4}from'ckeditor5/src/core.js';import{priorities as _0x64cc9e}from'ckeditor5/src/utils.js';import{Users as _0x1d449c}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x5df313 from'../commentsrepository.js';export default class Z extends _0x2a45b4{constructor(_0xf22a8b){super(_0xf22a8b),this[_0x424d('0x8')][_0x424d('0x0')][_0x424d('0x4')](_0x424d('0x3'),_0x424d('0xa'));}['afterInit'](){const _0xd3733e=this['editor'],_0x26377=_0xd3733e[_0x424d('0xd')]['get']('importWord'),_0x5785c3=_0xd3733e['plugins'][_0x424d('0x1')](_0x1d449c);_0x26377&&(_0x26377['on']('execute',(_0xdc2c66,[,_0xf5a26d])=>{_0xf5a26d[_0x424d('0xe')]={'comments':!0x0,'user_id':_0x5785c3['me']['id']};},{'priority':_0x64cc9e['high']+0xa}),this[_0x424d('0xf')](_0x26377,_0x424d('0x6'),this[_0x424d('0xb')]));}[_0x424d('0xb')](_0x55a841,_0x25130c){const {comment_threads:_0xbb73af}=_0x25130c;_0xbb73af&&_0xbb73af['forEach'](({thread_id:_0x176c71,comments:_0x100319,is_resolved:_0x7e532c})=>{const _0x3db457=new Date(),_0x539d64=_0x100319[_0x424d('0x5')](({author:_0x8960cc,content:_0x2e97fd,created_at:_0x5b03f3})=>({'content':_0x2e97fd,'authorId':this[_0x424d('0x8')][_0x424d('0x7')][_0x424d('0x1')](_0x1d449c)['me']['id'],'createdAt':_0x3db457,'attributes':{'@external':{'authorName':_0x8960cc,'createdAt':_0x5b03f3?new Date(_0x5b03f3):new Date(),'source':_0x424d('0x2')}}})),_0x47006e=this[_0x424d('0x8')][_0x424d('0x0')][_0x424d('0x1')](_0x424d('0xc'));this[_0x424d('0x8')][_0x424d('0x7')][_0x424d('0x1')](_0x5df313)[_0x424d('0x9')]({'channelId':_0x47006e,'threadId':_0x176c71,'comments':_0x539d64,'resolvedAt':_0x7e532c?_0x3db457:null});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3664=['view','editing','destroy','document','initialData','name','getChild','assign','ready','config','focus','placeholder','defaultPlugins','change','init','create','setSelection','plugins','end','initPlugins','placeholderElement','getRoot','get','then','_updatePlaceholder','low','childCount','model'];(function(_0x39a919,_0x3664de){const _0x11fee4=function(_0x4146ed){while(--_0x4146ed){_0x39a919['push'](_0x39a919['shift']());}};_0x11fee4(++_0x3664de);}(_0x3664,0x156));const _0x11fe=function(_0x39a919,_0x3664de){_0x39a919=_0x39a919-0x0;let _0x11fee4=_0x3664[_0x39a919];return _0x11fee4;};import{Editor as _0x357ba0,DataApiMixin as _0x4d7080}from'ckeditor5/src/core.js';import _0x1cadf2 from'./commenteditorui.js';import{ObservableMixin as _0x35de2b}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x37d62c,disablePlaceholder as _0x5e17ea}from'ckeditor5/src/engine.js';import{Clipboard as _0x5bf2c1}from'ckeditor5/src/clipboard.js';import{Enter as _0x4591c5,ShiftEnter as _0x3940ce}from'ckeditor5/src/enter.js';import{SelectAll as _0xb2d37e}from'ckeditor5/src/select-all.js';import{Typing as _0x4f22b1}from'ckeditor5/src/typing.js';import{Undo as _0x6a8513}from'ckeditor5/src/undo.js';import{Paragraph as _0x49d09b}from'ckeditor5/src/paragraph.js';const Mt=[_0x5bf2c1,_0x4591c5,_0x3940ce,_0xb2d37e,_0x4f22b1,_0x6a8513,_0x49d09b];class Nt extends _0x35de2b(_0x4d7080(_0x357ba0)){constructor(_0x46d3cd={}){(_0x46d3cd=Object[_0x11fe('0x1')]({},_0x46d3cd))[_0x11fe('0xb')]||(_0x46d3cd['plugins']=Nt[_0x11fe('0x6')]),super(_0x46d3cd),this['ui']=new _0x1cadf2(this),this['set'](_0x11fe('0x5'),''),this[_0x11fe('0x15')][_0x11fe('0x19')]['on'](_0x11fe('0x7'),()=>this[_0x11fe('0x12')](),{'priority':_0x11fe('0x13')}),this['on']('change:placeholder',()=>this[_0x11fe('0x12')]()),this['model'][_0x11fe('0x19')]['createRoot']();}[_0x11fe('0x9')](){const _0x36e989=this[_0x11fe('0x3')][_0x11fe('0x10')](_0x11fe('0x1a'))||'';return this[_0x11fe('0xd')]()[_0x11fe('0x11')](()=>this['ui']['init']())['then'](()=>this['data'][_0x11fe('0x8')](_0x36e989))[_0x11fe('0x11')](()=>this['fire'](_0x11fe('0x2')));}[_0x11fe('0x18')](){return super['destroy']()[_0x11fe('0x11')](()=>this['ui'][_0x11fe('0x18')]());}[_0x11fe('0x4')](){this['model'][_0x11fe('0x7')](_0x2c8083=>{const _0xab50c2=this[_0x11fe('0x15')][_0x11fe('0x19')][_0x11fe('0xf')](),_0x10f29f=_0xab50c2&&_0xab50c2[_0x11fe('0x0')](_0xab50c2['childCount']-0x1);_0x2c8083[_0x11fe('0xa')](_0x10f29f,_0x11fe('0xc')),this[_0x11fe('0x17')][_0x11fe('0x16')]['focus']();});}['_updatePlaceholder'](){const _0x3be0e0=this[_0x11fe('0x17')]['view'],_0x5de328=_0x3be0e0[_0x11fe('0x19')][_0x11fe('0xf')](),_0x18862d=_0x5de328[_0x11fe('0x0')](0x0);_0x5de328[_0x11fe('0x14')]>0x1||!_0x18862d||'p'!=_0x18862d[_0x11fe('0x1b')]?this[_0x11fe('0xe')]&&this[_0x11fe('0xe')][_0x11fe('0x5')]&&(_0x5e17ea(_0x3be0e0,this[_0x11fe('0xe')]),this[_0x11fe('0xe')]=void 0x0):(this[_0x11fe('0x5')]&&(_0x18862d[_0x11fe('0x5')]=this[_0x11fe('0x5')]),_0x37d62c({'view':_0x3be0e0,'element':_0x18862d,'keepOnFocus':!0x0}),this[_0x11fe('0xe')]=_0x18862d);}}Nt['defaultPlugins']=Mt;export default Nt;
23
+ const _0x4091=['_updatePlaceholder','initPlugins','create','data','get','then','end','model','setSelection','low','config','childCount','change','name','init','placeholder','defaultPlugins','plugins','createRoot','destroy','getChild','document','ready','focus','fire','editing','assign','change:placeholder','view','initialData','getRoot','placeholderElement'];(function(_0x211ef9,_0x40919b){const _0x6b88e9=function(_0x4b763f){while(--_0x4b763f){_0x211ef9['push'](_0x211ef9['shift']());}};_0x6b88e9(++_0x40919b);}(_0x4091,0xef));const _0x6b88=function(_0x211ef9,_0x40919b){_0x211ef9=_0x211ef9-0x0;let _0x6b88e9=_0x4091[_0x211ef9];return _0x6b88e9;};import{Editor as _0x3fc9ba,DataApiMixin as _0x1e4f2d}from'ckeditor5/src/core.js';import _0x5a445c from'./commenteditorui.js';import{ObservableMixin as _0x4a9b03}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x3d70ff,disablePlaceholder as _0x3a70c4}from'ckeditor5/src/engine.js';import{Clipboard as _0xa8beb3}from'ckeditor5/src/clipboard.js';import{Enter as _0x3282e1,ShiftEnter as _0x1b2b14}from'ckeditor5/src/enter.js';import{SelectAll as _0xbc51e9}from'ckeditor5/src/select-all.js';import{Typing as _0x27efa0}from'ckeditor5/src/typing.js';import{Undo as _0x1482e1}from'ckeditor5/src/undo.js';import{Paragraph as _0x3e2575}from'ckeditor5/src/paragraph.js';const Mt=[_0xa8beb3,_0x3282e1,_0x1b2b14,_0xbc51e9,_0x27efa0,_0x1482e1,_0x3e2575];class Nt extends _0x4a9b03(_0x1e4f2d(_0x3fc9ba)){constructor(_0x1e8985={}){(_0x1e8985=Object[_0x6b88('0xb')]({},_0x1e8985))[_0x6b88('0x2')]||(_0x1e8985[_0x6b88('0x2')]=Nt[_0x6b88('0x1')]),super(_0x1e8985),this['ui']=new _0x5a445c(this),this['set'](_0x6b88('0x0'),''),this[_0x6b88('0x18')]['document']['on'](_0x6b88('0x1d'),()=>this[_0x6b88('0x11')](),{'priority':_0x6b88('0x1a')}),this['on'](_0x6b88('0xc'),()=>this[_0x6b88('0x11')]()),this['model'][_0x6b88('0x6')][_0x6b88('0x3')]();}[_0x6b88('0x13')](){const _0xf7c096=this[_0x6b88('0x1b')][_0x6b88('0x15')](_0x6b88('0xe'))||'';return this[_0x6b88('0x12')]()[_0x6b88('0x16')](()=>this['ui'][_0x6b88('0x1f')]())[_0x6b88('0x16')](()=>this[_0x6b88('0x14')][_0x6b88('0x1f')](_0xf7c096))[_0x6b88('0x16')](()=>this[_0x6b88('0x9')](_0x6b88('0x7')));}[_0x6b88('0x4')](){return super[_0x6b88('0x4')]()[_0x6b88('0x16')](()=>this['ui'][_0x6b88('0x4')]());}[_0x6b88('0x8')](){this[_0x6b88('0x18')][_0x6b88('0x1d')](_0x1c17cf=>{const _0x9ad17f=this['model'][_0x6b88('0x6')][_0x6b88('0xf')](),_0x1cd369=_0x9ad17f&&_0x9ad17f[_0x6b88('0x5')](_0x9ad17f[_0x6b88('0x1c')]-0x1);_0x1c17cf[_0x6b88('0x19')](_0x1cd369,_0x6b88('0x17')),this[_0x6b88('0xa')][_0x6b88('0xd')][_0x6b88('0x8')]();});}[_0x6b88('0x11')](){const _0x51e50c=this['editing'][_0x6b88('0xd')],_0x1bceae=_0x51e50c['document'][_0x6b88('0xf')](),_0xd5af07=_0x1bceae[_0x6b88('0x5')](0x0);_0x1bceae[_0x6b88('0x1c')]>0x1||!_0xd5af07||'p'!=_0xd5af07[_0x6b88('0x1e')]?this[_0x6b88('0x10')]&&this[_0x6b88('0x10')]['placeholder']&&(_0x3a70c4(_0x51e50c,this[_0x6b88('0x10')]),this['placeholderElement']=void 0x0):(this[_0x6b88('0x0')]&&(_0xd5af07['placeholder']=this[_0x6b88('0x0')]),_0x3d70ff({'view':_0x51e50c,'element':_0xd5af07,'keepOnFocus':!0x0}),this[_0x6b88('0x10')]=_0xd5af07);}}Nt[_0x6b88('0x1')]=Mt;export default Nt;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33aa=['ready','focusTracker','view','editable','getRoot','editing','destroy','document','init','isFocused','rootName','locale','element','setEditableElement','name'];(function(_0x173adb,_0x33aa5e){const _0x15e227=function(_0x21472b){while(--_0x21472b){_0x173adb['push'](_0x173adb['shift']());}};_0x15e227(++_0x33aa5e);}(_0x33aa,0xc5));const _0x15e2=function(_0x173adb,_0x33aa5e){_0x173adb=_0x173adb-0x0;let _0x15e227=_0x33aa[_0x173adb];return _0x15e227;};import{EditorUI as _0x2b881b}from'ckeditor5/src/ui.js';import _0x383441 from'./commenteditoruiview.js';export default class Ft extends _0x2b881b{constructor(_0x5cc990){super(_0x5cc990),this[_0x15e2('0x0')]=new _0x383441(_0x5cc990[_0x15e2('0x9')],_0x5cc990[_0x15e2('0x3')][_0x15e2('0x0')]);}get[_0x15e2('0xa')](){return this[_0x15e2('0x0')][_0x15e2('0xa')];}[_0x15e2('0x6')](){const _0xe6f4d8=this['editor'][_0x15e2('0x3')][_0x15e2('0x0')],_0x5ee7c3=this[_0x15e2('0x0')][_0x15e2('0x1')],_0x4309a1=_0xe6f4d8[_0x15e2('0x5')][_0x15e2('0x2')]();_0x5ee7c3[_0x15e2('0xc')]=_0x4309a1[_0x15e2('0x8')],this[_0x15e2('0x0')]['render']();const _0x10b4f9=_0x5ee7c3[_0x15e2('0xa')];this[_0x15e2('0xb')](_0x5ee7c3['name'],_0x10b4f9),this['view'][_0x15e2('0x1')]['bind'](_0x15e2('0x7'))['to'](this[_0x15e2('0xe')]),_0xe6f4d8['attachDomRoot'](_0x10b4f9),this['fire'](_0x15e2('0xd'));}[_0x15e2('0x4')](){super[_0x15e2('0x4')](),this['view'][_0x15e2('0x4')]();}}
23
+ const _0x4075=['name','editing','element','init','editor','setEditableElement','fire','getRoot','focusTracker','locale','ready','destroy','view','editable','render','bind'];(function(_0x36abfd,_0x4075ce){const _0xe451fe=function(_0x1c5fd3){while(--_0x1c5fd3){_0x36abfd['push'](_0x36abfd['shift']());}};_0xe451fe(++_0x4075ce);}(_0x4075,0x149));const _0xe451=function(_0x36abfd,_0x4075ce){_0x36abfd=_0x36abfd-0x0;let _0xe451fe=_0x4075[_0x36abfd];return _0xe451fe;};import{EditorUI as _0x4dc5f6}from'ckeditor5/src/ui.js';import _0x1004c6 from'./commenteditoruiview.js';export default class Ft extends _0x4dc5f6{constructor(_0x1a3d99){super(_0x1a3d99),this[_0xe451('0x3')]=new _0x1004c6(_0x1a3d99[_0xe451('0x0')],_0x1a3d99[_0xe451('0x8')]['view']);}get[_0xe451('0x9')](){return this[_0xe451('0x3')][_0xe451('0x9')];}[_0xe451('0xa')](){const _0x143d6c=this[_0xe451('0xb')]['editing']['view'],_0x568640=this[_0xe451('0x3')][_0xe451('0x4')],_0x2024f0=_0x143d6c['document'][_0xe451('0xe')]();_0x568640['name']=_0x2024f0['rootName'],this[_0xe451('0x3')][_0xe451('0x5')]();const _0x34d469=_0x568640[_0xe451('0x9')];this[_0xe451('0xc')](_0x568640[_0xe451('0x7')],_0x34d469),this[_0xe451('0x3')][_0xe451('0x4')][_0xe451('0x6')]('isFocused')['to'](this[_0xe451('0xf')]),_0x143d6c['attachDomRoot'](_0x34d469),this[_0xe451('0xd')](_0xe451('0x1'));}[_0xe451('0x2')](){super['destroy'](),this[_0xe451('0x3')][_0xe451('0x2')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x60cc=['ck-voice-label','_voiceLabelView','text','_createVoiceLabel','comment','createCollection','setTemplate','Comment\x20editor','div','element','ck-rounded-corners','add','uiLanguageDirection','focus','main','ck-reset','cke-editor__aria-label_','render','editable','ck-comment__input','uiLanguage'];(function(_0x4c703a,_0x60cc35){const _0x5042b1=function(_0x26b46a){while(--_0x26b46a){_0x4c703a['push'](_0x4c703a['shift']());}};_0x5042b1(++_0x60cc35);}(_0x60cc,0x1a5));const _0x5042=function(_0x4c703a,_0x60cc35){_0x4c703a=_0x4c703a-0x0;let _0x5042b1=_0x60cc[_0x4c703a];return _0x5042b1;};import{InlineEditableUIView as _0x4cccb4,EditorUIView as _0x49c6b6,LabelView as _0x39c8e8}from'ckeditor5/src/ui.js';import{uid as _0x2b4a2e}from'ckeditor5/src/utils.js';import{getTranslation as _0x446979}from'../../../utils/common-translations.js';export default class Rt extends _0x49c6b6{constructor(_0x3f2a8d,_0x3c3f21){super(_0x3f2a8d);const _0x2ade86=_0x2b4a2e();this[_0x5042('0xd')]=this[_0x5042('0x4')](),this['editable']=new _0x4cccb4(_0x3f2a8d,_0x3c3f21),this[_0x5042('0x0')]=this[_0x5042('0x2')](_0x2ade86,_0x3f2a8d),this[_0x5042('0x5')]({'tag':_0x5042('0x7'),'attributes':{'class':[_0x5042('0xe'),'ck-editor',_0x5042('0x9'),_0x5042('0x12')],'role':_0x5042('0x3'),'dir':_0x3f2a8d[_0x5042('0xb')],'lang':_0x3f2a8d[_0x5042('0x13')],'aria-labelledby':_0x5042('0xf')+_0x2ade86},'children':[this[_0x5042('0x0')],{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}[_0x5042('0x10')](){super[_0x5042('0x10')](),this[_0x5042('0xd')][_0x5042('0xa')](this[_0x5042('0x11')]);}[_0x5042('0xc')](){this[_0x5042('0x11')][_0x5042('0x8')][_0x5042('0xc')]();}['_createVoiceLabel'](_0x518ad3,_0x1abfa0){const _0x2e231d=new _0x39c8e8();return _0x2e231d[_0x5042('0x1')]=_0x446979(_0x1abfa0,_0x5042('0x6')),_0x2e231d['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x518ad3,'class':_0x5042('0x14')}}),_0x2e231d;}}
23
+ const _0x48ec=['div','ck-editor__main','setTemplate','ck-rounded-corners','_voiceLabelView','uiLanguageDirection','createCollection','_createVoiceLabel','Comment\x20editor','focus','text','main','ck-reset','cke-editor__aria-label_','uiLanguage','ck-editor__aria-label_','add','render','editable','comment','ck-comment__input'];(function(_0x1ddc4d,_0x48ec39){const _0x5a9122=function(_0x3223d7){while(--_0x3223d7){_0x1ddc4d['push'](_0x1ddc4d['shift']());}};_0x5a9122(++_0x48ec39);}(_0x48ec,0xe1));const _0x5a91=function(_0x1ddc4d,_0x48ec39){_0x1ddc4d=_0x1ddc4d-0x0;let _0x5a9122=_0x48ec[_0x1ddc4d];return _0x5a9122;};import{InlineEditableUIView as _0xfb6670,EditorUIView as _0x1a06c8,LabelView as _0x2a063f}from'ckeditor5/src/ui.js';import{uid as _0x24eb28}from'ckeditor5/src/utils.js';import{getTranslation as _0x1b3275}from'../../../utils/common-translations.js';export default class Rt extends _0x1a06c8{constructor(_0x12e41d,_0x1995d5){super(_0x12e41d);const _0x3ce748=_0x24eb28();this['main']=this[_0x5a91('0xc')](),this[_0x5a91('0x3')]=new _0xfb6670(_0x12e41d,_0x1995d5),this[_0x5a91('0xa')]=this['_createVoiceLabel'](_0x3ce748,_0x12e41d),this[_0x5a91('0x8')]({'tag':_0x5a91('0x6'),'attributes':{'class':[_0x5a91('0x12'),'ck-editor',_0x5a91('0x9'),_0x5a91('0x5')],'role':_0x5a91('0x4'),'dir':_0x12e41d[_0x5a91('0xb')],'lang':_0x12e41d[_0x5a91('0x14')],'aria-labelledby':_0x5a91('0x13')+_0x3ce748},'children':[this[_0x5a91('0xa')],{'tag':_0x5a91('0x6'),'attributes':{'class':_0x5a91('0x7'),'role':'presentation'},'children':this[_0x5a91('0x11')]}]});}[_0x5a91('0x2')](){super['render'](),this['main'][_0x5a91('0x1')](this[_0x5a91('0x3')]);}[_0x5a91('0xf')](){this[_0x5a91('0x3')]['element']['focus']();}[_0x5a91('0xd')](_0x539f39,_0x1f4d9a){const _0x518642=new _0x2a063f();return _0x518642[_0x5a91('0x10')]=_0x1b3275(_0x1f4d9a,_0x5a91('0xe')),_0x518642['extendTemplate']({'attributes':{'id':_0x5a91('0x0')+_0x539f39,'class':'ck-voice-label'}}),_0x518642;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x329f=['remove','resolve','_localUser','submitCommentThread','reopenCommentThread','getComment','removeCommentThread','model','_isAttached','addComment','view','listenTo','resolveCommentThread','update','submit','updateComment','reopen','removeComment'];(function(_0x449a10,_0x329f9b){var _0x59de44=function(_0x34a2d4){while(--_0x34a2d4){_0x449a10['push'](_0x449a10['shift']());}};_0x59de44(++_0x329f9b);}(_0x329f,0x184));var _0x59de=function(_0x449a10,_0x329f9b){_0x449a10=_0x449a10-0x0;var _0x59de44=_0x329f[_0x449a10];return _0x59de44;};import{ObservableMixin as _0x3b79e0}from'ckeditor5/src/utils.js';export default class ut extends _0x3b79e0(){constructor(_0x3535e6,_0x2b9109){super(),this['model']=_0x3535e6,this[_0x59de('0xf')][_0x59de('0x10')]=!0x0,this[_0x59de('0x0')]=_0x2b9109,this[_0x59de('0x1')](_0x2b9109,_0x59de('0xb'),()=>this[_0x59de('0x4')]()),this[_0x59de('0x1')](_0x2b9109,_0x59de('0xe'),()=>this['remove']()),this['listenTo'](_0x2b9109,_0x59de('0x2'),()=>this[_0x59de('0x9')]()),this[_0x59de('0x1')](_0x2b9109,_0x59de('0xc'),()=>this[_0x59de('0x6')]()),this[_0x59de('0x1')](_0x2b9109,_0x59de('0x11'),(_0x583975,_0xe44726)=>this[_0x59de('0x11')](_0xe44726)),this[_0x59de('0x1')](_0x2b9109,_0x59de('0x5'),(_0xe50615,_0x36b94c,_0x268d3d)=>this['updateComment'](_0x36b94c,_0x268d3d)),this[_0x59de('0x1')](_0x2b9109,_0x59de('0x7'),(_0x292bc4,_0x31f7bb)=>this[_0x59de('0x7')](_0x31f7bb));}[_0x59de('0x4')](){this[_0x59de('0xf')][_0x59de('0x4')]();}['remove'](){this[_0x59de('0xf')]['remove']();}[_0x59de('0x9')](){this['model']['isResolved']||this[_0x59de('0xf')][_0x59de('0x9')]();}[_0x59de('0x6')](){this[_0x59de('0xf')]['isResolved']&&this[_0x59de('0xf')][_0x59de('0x6')]();}['addComment'](_0x5afb2c){this[_0x59de('0xf')]['addComment']({'content':_0x5afb2c,'authorId':this[_0x59de('0x0')][_0x59de('0xa')]['id']});}['updateComment'](_0x51ed12,_0x1c6fc0){this['model'][_0x59de('0xd')](_0x51ed12)[_0x59de('0x3')]({'content':_0x1c6fc0});}[_0x59de('0x7')](_0xff8850){this['model'][_0x59de('0xd')](_0xff8850)[_0x59de('0x8')]();}['destroy'](){this['stopListening'](),this[_0x59de('0xf')]['_isAttached']=!0x1;}}
23
+ var _0x4d0a=['updateComment','_isAttached','removeCommentThread','submitCommentThread','addComment','reopenCommentThread','resolve','listenTo','remove','submit','resolveCommentThread','isResolved','destroy','reopen','getComment','removeComment','update','view','model'];(function(_0x1d57fb,_0x4d0a24){var _0x2c0a6a=function(_0x5073d4){while(--_0x5073d4){_0x1d57fb['push'](_0x1d57fb['shift']());}};_0x2c0a6a(++_0x4d0a24);}(_0x4d0a,0xdf));var _0x2c0a=function(_0x1d57fb,_0x4d0a24){_0x1d57fb=_0x1d57fb-0x0;var _0x2c0a6a=_0x4d0a[_0x1d57fb];return _0x2c0a6a;};import{ObservableMixin as _0x42d29f}from'ckeditor5/src/utils.js';export default class ut extends _0x42d29f(){constructor(_0x492a60,_0x3b386b){super(),this[_0x2c0a('0x4')]=_0x492a60,this[_0x2c0a('0x4')][_0x2c0a('0x6')]=!0x0,this[_0x2c0a('0x3')]=_0x3b386b,this[_0x2c0a('0xc')](_0x3b386b,_0x2c0a('0x8'),()=>this[_0x2c0a('0xe')]()),this[_0x2c0a('0xc')](_0x3b386b,_0x2c0a('0x7'),()=>this[_0x2c0a('0xd')]()),this[_0x2c0a('0xc')](_0x3b386b,_0x2c0a('0xf'),()=>this['resolve']()),this[_0x2c0a('0xc')](_0x3b386b,_0x2c0a('0xa'),()=>this[_0x2c0a('0x12')]()),this[_0x2c0a('0xc')](_0x3b386b,_0x2c0a('0x9'),(_0x379349,_0x4dda23)=>this[_0x2c0a('0x9')](_0x4dda23)),this[_0x2c0a('0xc')](_0x3b386b,_0x2c0a('0x5'),(_0x5046be,_0x371720,_0x15b094)=>this[_0x2c0a('0x5')](_0x371720,_0x15b094)),this[_0x2c0a('0xc')](_0x3b386b,_0x2c0a('0x1'),(_0x80b1b3,_0x329ccc)=>this[_0x2c0a('0x1')](_0x329ccc));}[_0x2c0a('0xe')](){this[_0x2c0a('0x4')][_0x2c0a('0xe')]();}['remove'](){this['model']['remove']();}[_0x2c0a('0xb')](){this['model'][_0x2c0a('0x10')]||this[_0x2c0a('0x4')][_0x2c0a('0xb')]();}[_0x2c0a('0x12')](){this[_0x2c0a('0x4')][_0x2c0a('0x10')]&&this[_0x2c0a('0x4')][_0x2c0a('0x12')]();}[_0x2c0a('0x9')](_0x3405f7){this[_0x2c0a('0x4')][_0x2c0a('0x9')]({'content':_0x3405f7,'authorId':this['view']['_localUser']['id']});}[_0x2c0a('0x5')](_0x3f08fb,_0x334881){this[_0x2c0a('0x4')][_0x2c0a('0x0')](_0x3f08fb)[_0x2c0a('0x2')]({'content':_0x334881});}['removeComment'](_0x5d323d){this[_0x2c0a('0x4')][_0x2c0a('0x0')](_0x5d323d)[_0x2c0a('0xd')]();}[_0x2c0a('0x11')](){this['stopListening'](),this[_0x2c0a('0x4')]['_isAttached']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fc3=['Comment','assign','value','hasDirtyComment','bind','removeComment','updateComment','removeCommentThread','_model','delegate','reopenCommentThread','element','Write\x20a\x20comment...','cancel','focus','commentThreadHeaderView','_config','submitCommentThread','isActive','change:isActive','destroy','isResolvable','isResolved','isDirty','isReadOnly','isUnlinked','canComment','submitLabel','length','commentThreadInputView','editorReady','listenTo','set','isSubmitted','Reply\x20to\x20reopen\x20discussion...','resolveCommentThread','placeholder','archivedAt','Reply...','commentInputView','commentsListView','editorDestroyed','_createCommentThreadInputView','stop','_localUser','showInput','submit','locale','fire'];(function(_0xa03536,_0x3fc37e){const _0x1235a4=function(_0x3561ae){while(--_0x3561ae){_0xa03536['push'](_0xa03536['shift']());}};_0x1235a4(++_0x3fc37e);}(_0x3fc3,0x8e));const _0x1235=function(_0xa03536,_0x3fc37e){_0xa03536=_0xa03536-0x0;let _0x1235a4=_0x3fc3[_0xa03536];return _0x1235a4;};import{View as _0x25e55b}from'ckeditor5/src/ui.js';import _0x495eb5 from'./commentthreadinputview.js';import _0xdbffbd from'./commentslistview.js';import _0x45dc13 from'./commentthreadheaderview.js';import{getTranslation as _0x12946f}from'../../../utils/common-translations.js';export default class Ut extends _0x25e55b{constructor(_0x397b3d,_0x2734e0,_0x473bb,_0x4474ff){super(_0x397b3d),this[_0x1235('0x25')]('isActive',!0x1),this[_0x1235('0x25')](_0x1235('0x1c'),!0x1),this[_0x1235('0xd')]=_0x2734e0,this['_localUser']=_0x473bb,this[_0x1235('0x15')]=_0x4474ff,this['commentThreadHeaderView']=new _0x45dc13(_0x397b3d,_0x2734e0),this[_0x1235('0x14')][_0x1235('0xe')](_0x1235('0xf'))['to'](this),this[_0x1235('0x24')](this,_0x1235('0xf'),()=>{this[_0x1235('0x13')]();}),this[_0x1235('0x2d')]=new _0xdbffbd(_0x397b3d,_0x2734e0,Object[_0x1235('0x6')]({'CommentView':this[_0x1235('0x15')]['CommentView']},_0x4474ff)),this[_0x1235('0x2d')][_0x1235('0xe')](_0x1235('0xa'))['to'](this),this[_0x1235('0x2d')]['delegate'](_0x1235('0xb'))['to'](this),this[_0x1235('0x2d')][_0x1235('0xe')](_0x1235('0x28'))['to'](this),this[_0x1235('0x2d')][_0x1235('0xe')](_0x1235('0x23'))['to'](this),this[_0x1235('0x2d')][_0x1235('0xe')](_0x1235('0x2e'))['to'](this),this[_0x1235('0x2d')][_0x1235('0x9')](_0x1235('0x17'))['to'](this),this[_0x1235('0x24')](this,_0x1235('0x28'),()=>{this[_0x1235('0x13')]();}),this[_0x1235('0x25')]('length',this[_0x1235('0x2d')][_0x1235('0x21')]),this[_0x1235('0x9')](_0x1235('0x21'))['to'](this[_0x1235('0x2d')],_0x1235('0x21')),this[_0x1235('0x22')]=this[_0x1235('0x2f')](),this[_0x1235('0x22')][_0x1235('0xe')](_0x1235('0x23'))['to'](this),this[_0x1235('0x22')][_0x1235('0xe')]('editorDestroyed')['to'](this),this['on'](_0x1235('0xa'),()=>this[_0x1235('0x13')]()),this[_0x1235('0x9')](_0x1235('0x1c'))['to'](this[_0x1235('0x2d')],_0x1235('0x8'),this['commentThreadInputView'][_0x1235('0x2c')],'value',(_0x3700c2,_0x2ee41c)=>_0x3700c2||!!_0x2ee41c),this[_0x1235('0x9')](_0x1235('0x1e'))['to'](_0x2734e0,'unlinkedAt',_0x3c9f57=>!!_0x3c9f57);}[_0x1235('0x13')](){this[_0x1235('0x10')]['focus']();}async[_0x1235('0x19')](){this[_0x1235('0x1c')]=!0x1,this[_0x1235('0x2d')][_0x1235('0x19')](),await this[_0x1235('0x22')][_0x1235('0x19')](),super[_0x1235('0x19')]();}['_createCommentThreadInputView'](){const _0x10ba6e=new _0x495eb5(this[_0x1235('0x3')],this[_0x1235('0x0')],this['_config']['editorConfig']),_0x32ca87=_0x10ba6e['commentInputView'];return _0x10ba6e[_0x1235('0x9')](_0x1235('0x1'))['to'](this,_0x1235('0x17'),this[_0x1235('0xd')],_0x1235('0x1d'),this[_0x1235('0xd')],_0x1235('0x1f'),this['_model'],_0x1235('0x2a'),_0x32ca87,_0x1235('0x7'),(_0x1a0102,_0x48b2b0,_0x5ddd68,_0x44d892,_0x27d256)=>!!_0x27d256||!!_0x44d892&&_0x5ddd68&&!_0x48b2b0||_0x1a0102&&_0x5ddd68&&!_0x48b2b0),_0x32ca87[_0x1235('0x9')](_0x1235('0x29'))['to'](this,_0x1235('0x21'),this[_0x1235('0xd')],_0x1235('0x1a'),this['_model'],_0x1235('0x1b'),(_0x1b9d00,_0x38661e,_0x3a301f)=>{let _0x37557e;return _0x37557e=_0x3a301f&&_0x38661e?_0x1235('0x27'):_0x1b9d00?_0x1235('0x2b'):_0x1235('0x11'),_0x12946f(this[_0x1235('0x3')],_0x37557e);}),_0x32ca87[_0x1235('0x9')](_0x1235('0x20'))['to'](this,_0x1235('0x21'),_0x1567b2=>_0x12946f(this[_0x1235('0x3')],_0x1567b2?'Reply':_0x1235('0x5'))),_0x32ca87['on'](_0x1235('0x2'),(_0x29b5a2,_0x411b23)=>{this['fire']('addComment',_0x411b23),this[_0x1235('0xd')][_0x1235('0x1b')]&&this[_0x1235('0xd')][_0x1235('0x1a')]&&this['fire']('reopenCommentThread',this[_0x1235('0xd')]['id']),this[_0x1235('0xd')][_0x1235('0x26')]||this['fire'](_0x1235('0x16'));}),_0x32ca87['on'](_0x1235('0x12'),()=>{this[_0x1235('0x13')]();}),_0x32ca87[_0x1235('0x9')]('disabledSubmit')['to'](this[_0x1235('0xd')],_0x1235('0x1d')),_0x32ca87['on'](_0x1235('0x12'),_0x79d235=>{0x0==this[_0x1235('0x21')]&&(this[_0x1235('0x4')](_0x1235('0xc')),_0x79d235[_0x1235('0x30')]());}),this['on'](_0x1235('0x18'),(_0x46f335,_0x85c709,_0x44298f)=>{_0x44298f||this[_0x1235('0x21')]||_0x32ca87[_0x1235('0x7')]||this[_0x1235('0x4')](_0x1235('0xc'));}),_0x10ba6e;}}
23
+ const _0x40ce=['Reply','locale','focus','assign','element','set','change:isActive','cancel','showInput','editorDestroyed','Reply...','isDirty','_model','commentThreadHeaderView','listenTo','removeCommentThread','isResolvable','bind','value','isActive','disabledSubmit','submit','removeComment','reopenCommentThread','destroy','isUnlinked','_createCommentThreadInputView','addComment','isReadOnly','_localUser','editorReady','commentThreadInputView','archivedAt','isSubmitted','isResolved','submitLabel','unlinkedAt','commentsListView','hasDirtyComment','commentInputView','fire','resolveCommentThread','_config','placeholder','delegate','Write\x20a\x20comment...','canComment','length'];(function(_0x35ea1b,_0x40ce2b){const _0x17eda5=function(_0xe97ae0){while(--_0xe97ae0){_0x35ea1b['push'](_0x35ea1b['shift']());}};_0x17eda5(++_0x40ce2b);}(_0x40ce,0x146));const _0x17ed=function(_0x35ea1b,_0x40ce2b){_0x35ea1b=_0x35ea1b-0x0;let _0x17eda5=_0x40ce[_0x35ea1b];return _0x17eda5;};import{View as _0x23ba80}from'ckeditor5/src/ui.js';import _0x4650c8 from'./commentthreadinputview.js';import _0xc3cf4d from'./commentslistview.js';import _0x25915c from'./commentthreadheaderview.js';import{getTranslation as _0x39e706}from'../../../utils/common-translations.js';export default class Ut extends _0x23ba80{constructor(_0x54d02a,_0x47c301,_0x229a71,_0x5a3bad){super(_0x54d02a),this[_0x17ed('0xf')]('isActive',!0x1),this[_0x17ed('0xf')](_0x17ed('0x15'),!0x1),this['_model']=_0x47c301,this[_0x17ed('0x27')]=_0x229a71,this[_0x17ed('0x4')]=_0x5a3bad,this[_0x17ed('0x17')]=new _0x25915c(_0x54d02a,_0x47c301),this[_0x17ed('0x17')][_0x17ed('0x6')](_0x17ed('0x21'))['to'](this),this[_0x17ed('0x18')](this,_0x17ed('0x21'),()=>{this['focus']();}),this['commentsListView']=new _0xc3cf4d(_0x54d02a,_0x47c301,Object[_0x17ed('0xd')]({'CommentView':this[_0x17ed('0x4')]['CommentView']},_0x5a3bad)),this['commentsListView'][_0x17ed('0x6')]('removeComment')['to'](this),this[_0x17ed('0x2f')][_0x17ed('0x6')]('updateComment')['to'](this),this['commentsListView'][_0x17ed('0x6')](_0x17ed('0x3'))['to'](this),this[_0x17ed('0x2f')][_0x17ed('0x6')](_0x17ed('0x28'))['to'](this),this[_0x17ed('0x2f')]['delegate']('editorDestroyed')['to'](this),this[_0x17ed('0x2f')][_0x17ed('0x1b')](_0x17ed('0x1d'))['to'](this),this[_0x17ed('0x18')](this,_0x17ed('0x3'),()=>{this[_0x17ed('0xc')]();}),this[_0x17ed('0xf')](_0x17ed('0x9'),this[_0x17ed('0x2f')][_0x17ed('0x9')]),this[_0x17ed('0x1b')](_0x17ed('0x9'))['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this[_0x17ed('0x24')](),this[_0x17ed('0x29')][_0x17ed('0x6')](_0x17ed('0x28'))['to'](this),this[_0x17ed('0x29')][_0x17ed('0x6')](_0x17ed('0x13'))['to'](this),this['on'](_0x17ed('0x20'),()=>this[_0x17ed('0xc')]()),this[_0x17ed('0x1b')](_0x17ed('0x15'))['to'](this[_0x17ed('0x2f')],_0x17ed('0x0'),this[_0x17ed('0x29')]['commentInputView'],_0x17ed('0x1c'),(_0x36df07,_0x23a57d)=>_0x36df07||!!_0x23a57d),this[_0x17ed('0x1b')](_0x17ed('0x23'))['to'](_0x47c301,_0x17ed('0x2e'),_0x3746ad=>!!_0x3746ad);}[_0x17ed('0xc')](){this[_0x17ed('0xe')][_0x17ed('0xc')]();}async[_0x17ed('0x22')](){this[_0x17ed('0x15')]=!0x1,this[_0x17ed('0x2f')][_0x17ed('0x22')](),await this[_0x17ed('0x29')][_0x17ed('0x22')](),super[_0x17ed('0x22')]();}['_createCommentThreadInputView'](){const _0x5d0ba4=new _0x4650c8(this[_0x17ed('0xb')],this[_0x17ed('0x27')],this[_0x17ed('0x4')]['editorConfig']),_0x569292=_0x5d0ba4[_0x17ed('0x1')];return _0x5d0ba4['bind'](_0x17ed('0x12'))['to'](this,_0x17ed('0x1d'),this[_0x17ed('0x16')],'isReadOnly',this[_0x17ed('0x16')],_0x17ed('0x8'),this[_0x17ed('0x16')],_0x17ed('0x2a'),_0x569292,_0x17ed('0x1c'),(_0x4420ba,_0x2e3179,_0x5eadba,_0x8562cd,_0x2aadf8)=>!!_0x2aadf8||!!_0x8562cd&&_0x5eadba&&!_0x2e3179||_0x4420ba&&_0x5eadba&&!_0x2e3179),_0x569292['bind'](_0x17ed('0x5'))['to'](this,'length',this[_0x17ed('0x16')],_0x17ed('0x1a'),this['_model'],'isResolved',(_0x114b2b,_0x186eb1,_0x4ec1b1)=>{let _0x1d03da;return _0x1d03da=_0x4ec1b1&&_0x186eb1?'Reply\x20to\x20reopen\x20discussion...':_0x114b2b?_0x17ed('0x14'):_0x17ed('0x7'),_0x39e706(this['locale'],_0x1d03da);}),_0x569292['bind'](_0x17ed('0x2d'))['to'](this,_0x17ed('0x9'),_0x5a4f35=>_0x39e706(this[_0x17ed('0xb')],_0x5a4f35?_0x17ed('0xa'):'Comment')),_0x569292['on'](_0x17ed('0x1f'),(_0x4559a7,_0x3d9b0a)=>{this[_0x17ed('0x2')](_0x17ed('0x25'),_0x3d9b0a),this[_0x17ed('0x16')][_0x17ed('0x2c')]&&this[_0x17ed('0x16')]['isResolvable']&&this[_0x17ed('0x2')]('reopenCommentThread',this[_0x17ed('0x16')]['id']),this[_0x17ed('0x16')][_0x17ed('0x2b')]||this[_0x17ed('0x2')]('submitCommentThread');}),_0x569292['on'](_0x17ed('0x11'),()=>{this['focus']();}),_0x569292[_0x17ed('0x1b')](_0x17ed('0x1e'))['to'](this[_0x17ed('0x16')],_0x17ed('0x26')),_0x569292['on'](_0x17ed('0x11'),_0x1c11de=>{0x0==this[_0x17ed('0x9')]&&(this[_0x17ed('0x2')]('removeCommentThread'),_0x1c11de['stop']());}),this['on'](_0x17ed('0x10'),(_0x3fdb2f,_0x305933,_0x5e5e16)=>{_0x5e5e16||this[_0x17ed('0x9')]||_0x569292[_0x17ed('0x1c')]||this[_0x17ed('0x2')](_0x17ed('0x19'));}),_0x5d0ba4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2534=['isEditMode','_model','expand','isReadOnly','Save','initialData','_config','value','fire','disabledSubmit','destroy','isCollapsed','editorConfig','get','set','cancel','locale','focus','editorReady','remove','isSystemComment','content','switchToDisplayMode','_createCommentContentView','once','delegate','createCollection','element','editorDestroyed','visibleView','switchToEditMode','submit','updateComment','add'];(function(_0x35ba3e,_0x253454){const _0x2d0c24=function(_0x193c0d){while(--_0x193c0d){_0x35ba3e['push'](_0x35ba3e['shift']());}};_0x2d0c24(++_0x253454);}(_0x2534,0x145));const _0x2d0c=function(_0x35ba3e,_0x253454){_0x35ba3e=_0x35ba3e-0x0;let _0x2d0c24=_0x2534[_0x35ba3e];return _0x2d0c24;};import{View as _0x19cd64}from'ckeditor5/src/ui.js';import{trimHtml as _0x5cc121}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x368603 from'./commentcontentview.js';import _0x11be4e from'./commentinputview.js';import{getTranslation as _0x2a2f06}from'../../../utils/common-translations.js';export default class ti extends _0x19cd64{constructor(_0x219470,_0x34cf37,_0x3c2b2f){super(_0x219470),this[_0x2d0c('0x10')]=_0x34cf37,this[_0x2d0c('0x15')]=_0x3c2b2f,this[_0x2d0c('0x1')]=!!this[_0x2d0c('0x15')][_0x2d0c('0x1')],this['set']('isEditMode',!0x1),this[_0x2d0c('0x1d')](_0x2d0c('0x1a'),!0x0),this['visibleView']=this[_0x2d0c('0x7')](),this['visibleView'][_0x2d0c('0xe')](this['_createCommentContentView']());}[_0x2d0c('0x11')](){this['isCollapsed']=!0x1;}['collapse'](){this[_0x2d0c('0xf')]||(this[_0x2d0c('0x1a')]=!0x0);}[_0x2d0c('0x20')](){this[_0x2d0c('0x8')]['focus']();}async[_0x2d0c('0x19')](){await this[_0x2d0c('0xa')][_0x2d0c('0x1c')](0x0)[_0x2d0c('0x19')](),super[_0x2d0c('0x19')]();}[_0x2d0c('0xb')](){this[_0x2d0c('0xf')]||(this[_0x2d0c('0xf')]=!0x0,this['visibleView'][_0x2d0c('0x0')](0x0)[_0x2d0c('0x19')](),this[_0x2d0c('0xa')][_0x2d0c('0xe')](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this[_0x2d0c('0xa')]['remove'](0x0)[_0x2d0c('0x19')](),this[_0x2d0c('0xa')]['add'](this[_0x2d0c('0x4')]()));}['_createCommentContentView'](){const _0x8d50b6=new _0x368603(this[_0x2d0c('0x1f')]);return _0x8d50b6['bind']('content')['to'](this[_0x2d0c('0x10')],'content',this,_0x2d0c('0x1a'),(_0x25c0c7,_0xef894b)=>_0xef894b?_0x5cc121(_0x25c0c7,{'limit':this[_0x2d0c('0x15')]['maxCommentCharsWhenCollapsed']}):_0x25c0c7),_0x8d50b6;}['_createCommentInputView'](){this[_0x2d0c('0x15')]['editorConfig']||(this[_0x2d0c('0x15')][_0x2d0c('0x1b')]={}),this['_config'][_0x2d0c('0x1b')][_0x2d0c('0x14')]=this[_0x2d0c('0x10')]['content'];const _0x1fa167=new _0x11be4e(this[_0x2d0c('0x1f')],this['_config'][_0x2d0c('0x1b')]);return _0x1fa167[_0x2d0c('0x16')]=this['_model'][_0x2d0c('0x2')],_0x1fa167['bind'](_0x2d0c('0x18'))['to'](this[_0x2d0c('0x10')],_0x2d0c('0x12')),_0x1fa167['submitLabel']=_0x2a2f06(this[_0x2d0c('0x1f')],_0x2d0c('0x13')),_0x1fa167['on'](_0x2d0c('0xc'),(_0x3c8903,_0x521e76)=>{this[_0x2d0c('0x17')](_0x2d0c('0xd'),this[_0x2d0c('0x10')]['id'],_0x521e76),this[_0x2d0c('0x3')](),this[_0x2d0c('0x20')]();}),_0x1fa167['on'](_0x2d0c('0x1e'),()=>{this[_0x2d0c('0x3')](),this[_0x2d0c('0x20')]();}),_0x1fa167[_0x2d0c('0x5')](_0x2d0c('0x21'),()=>{_0x1fa167['focus']();}),_0x1fa167['createEditor'](),_0x1fa167[_0x2d0c('0x6')]('editorReady')['to'](this),_0x1fa167[_0x2d0c('0x6')](_0x2d0c('0x9'))['to'](this),_0x1fa167;}}
23
+ const _0x52d0=['editorDestroyed','remove','destroy','content','editorConfig','set','visibleView','_createCommentInputView','isEditMode','submitLabel','delegate','cancel','switchToDisplayMode','isCollapsed','updateComment','focus','collapse','_model','locale','value','isSystemComment','_createCommentContentView','_config','disabledSubmit','expand','isReadOnly','bind','editorReady','once','Save'];(function(_0x5c04a9,_0x52d063){const _0x28a590=function(_0x37c167){while(--_0x37c167){_0x5c04a9['push'](_0x5c04a9['shift']());}};_0x28a590(++_0x52d063);}(_0x52d0,0x1e6));const _0x28a5=function(_0x5c04a9,_0x52d063){_0x5c04a9=_0x5c04a9-0x0;let _0x28a590=_0x52d0[_0x5c04a9];return _0x28a590;};import{View as _0x11bb6e}from'ckeditor5/src/ui.js';import{trimHtml as _0x370637}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4e095d from'./commentcontentview.js';import _0x2bbf21 from'./commentinputview.js';import{getTranslation as _0x5b0f78}from'../../../utils/common-translations.js';export default class ti extends _0x11bb6e{constructor(_0x404c35,_0x2ee431,_0x5beae0){super(_0x404c35),this[_0x28a5('0xb')]=_0x2ee431,this['_config']=_0x5beae0,this[_0x28a5('0xe')]=!!this[_0x28a5('0x10')]['isSystemComment'],this[_0x28a5('0x1d')](_0x28a5('0x2'),!0x1),this[_0x28a5('0x1d')](_0x28a5('0x7'),!0x0),this[_0x28a5('0x0')]=this['createCollection'](),this[_0x28a5('0x0')]['add'](this[_0x28a5('0xf')]());}[_0x28a5('0x12')](){this[_0x28a5('0x7')]=!0x1;}[_0x28a5('0xa')](){this[_0x28a5('0x2')]||(this['isCollapsed']=!0x0);}[_0x28a5('0x9')](){this['element'][_0x28a5('0x9')]();}async[_0x28a5('0x1a')](){await this[_0x28a5('0x0')]['get'](0x0)[_0x28a5('0x1a')](),super[_0x28a5('0x1a')]();}['switchToEditMode'](){this[_0x28a5('0x2')]||(this[_0x28a5('0x2')]=!0x0,this[_0x28a5('0x0')][_0x28a5('0x19')](0x0)['destroy'](),this[_0x28a5('0x0')]['add'](this[_0x28a5('0x1')]()));}[_0x28a5('0x6')](){this['isEditMode']&&(this[_0x28a5('0x2')]=!0x1,this[_0x28a5('0x0')]['remove'](0x0)['destroy'](),this[_0x28a5('0x0')]['add'](this['_createCommentContentView']()));}[_0x28a5('0xf')](){const _0xba5ade=new _0x4e095d(this[_0x28a5('0xc')]);return _0xba5ade[_0x28a5('0x14')]('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x4e746c,_0x3b57bb)=>_0x3b57bb?_0x370637(_0x4e746c,{'limit':this[_0x28a5('0x10')]['maxCommentCharsWhenCollapsed']}):_0x4e746c),_0xba5ade;}[_0x28a5('0x1')](){this['_config'][_0x28a5('0x1c')]||(this[_0x28a5('0x10')][_0x28a5('0x1c')]={}),this[_0x28a5('0x10')][_0x28a5('0x1c')]['initialData']=this['_model']['content'];const _0x4c93ff=new _0x2bbf21(this[_0x28a5('0xc')],this[_0x28a5('0x10')]['editorConfig']);return _0x4c93ff[_0x28a5('0xd')]=this[_0x28a5('0xb')][_0x28a5('0x1b')],_0x4c93ff[_0x28a5('0x14')](_0x28a5('0x11'))['to'](this['_model'],_0x28a5('0x13')),_0x4c93ff[_0x28a5('0x3')]=_0x5b0f78(this[_0x28a5('0xc')],_0x28a5('0x17')),_0x4c93ff['on']('submit',(_0x5e52cb,_0x129d6f)=>{this['fire'](_0x28a5('0x8'),this[_0x28a5('0xb')]['id'],_0x129d6f),this[_0x28a5('0x6')](),this[_0x28a5('0x9')]();}),_0x4c93ff['on'](_0x28a5('0x5'),()=>{this[_0x28a5('0x6')](),this['focus']();}),_0x4c93ff[_0x28a5('0x16')](_0x28a5('0x15'),()=>{_0x4c93ff['focus']();}),_0x4c93ff['createEditor'](),_0x4c93ff['delegate'](_0x28a5('0x15'))['to'](this),_0x4c93ff[_0x28a5('0x4')](_0x28a5('0x18'))['to'](this),_0x4c93ff;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa706=['ck-thread__comment-count','count','setTemplate','bindTemplate','set'];(function(_0x56ca5f,_0xa70681){const _0x344ff0=function(_0x5ac686){while(--_0x5ac686){_0x56ca5f['push'](_0x56ca5f['shift']());}};_0x344ff0(++_0xa70681);}(_0xa706,0x1d0));const _0x344f=function(_0x56ca5f,_0xa70681){_0x56ca5f=_0x56ca5f-0x0;let _0x344ff0=_0xa706[_0x56ca5f];return _0x344ff0;};import{View as _0x3258a9}from'ckeditor5/src/ui.js';import{getTranslation as _0x46c5a0}from'../../../utils/common-translations.js';export default class ts extends _0x3258a9{constructor(_0x530143){super(_0x530143);const _0x17ae67=this[_0x344f('0x4')];this[_0x344f('0x0')](_0x344f('0x2'),void 0x0),this[_0x344f('0x3')]({'tag':'li','attributes':{'class':_0x344f('0x1')},'children':[{'text':_0x17ae67['to'](_0x344f('0x2'),_0x44b709=>_0x46c5a0(_0x530143,'NUMBER_OF_COMMENTS',_0x44b709))}]});}}
23
+ const _0xc116=['setTemplate','count','ck-thread__comment-count','NUMBER_OF_COMMENTS'];(function(_0x11b8db,_0xc116b9){const _0x457b82=function(_0x38ebb4){while(--_0x38ebb4){_0x11b8db['push'](_0x11b8db['shift']());}};_0x457b82(++_0xc116b9);}(_0xc116,0xae));const _0x457b=function(_0x11b8db,_0xc116b9){_0x11b8db=_0x11b8db-0x0;let _0x457b82=_0xc116[_0x11b8db];return _0x457b82;};import{View as _0x565851}from'ckeditor5/src/ui.js';import{getTranslation as _0x27455a}from'../../../utils/common-translations.js';export default class ts extends _0x565851{constructor(_0x662f45){super(_0x662f45);const _0x61c4f5=this['bindTemplate'];this['set']('count',void 0x0),this[_0x457b('0x2')]({'tag':'li','attributes':{'class':_0x457b('0x0')},'children':[{'text':_0x61c4f5['to'](_0x457b('0x3'),_0x246d3e=>_0x27455a(_0x662f45,_0x457b('0x1'),_0x246d3e))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x42b4=['element','ck-annotation__content','content','ck-comment__content','set','div','innerHTML','render'];(function(_0x1435b5,_0x42b4b4){var _0x34c11a=function(_0x3c4ab3){while(--_0x3c4ab3){_0x1435b5['push'](_0x1435b5['shift']());}};_0x34c11a(++_0x42b4b4);}(_0x42b4,0xb8));var _0x34c1=function(_0x1435b5,_0x42b4b4){_0x1435b5=_0x1435b5-0x0;var _0x34c11a=_0x42b4[_0x1435b5];return _0x34c11a;};import{View as _0x25ec55}from'ckeditor5/src/ui.js';export default class Yt extends _0x25ec55{constructor(_0xd8d62e){super(_0xd8d62e),this[_0x34c1('0x4')]('content',''),this['setTemplate']({'tag':_0x34c1('0x5'),'attributes':{'class':[_0x34c1('0x3'),_0x34c1('0x1')]}});}[_0x34c1('0x7')](){super['render'](),this['on']('change:content',(_0x2e3063,_0x38199b,_0x2890dd)=>{this[_0x34c1('0x0')][_0x34c1('0x6')]=_0x2890dd;}),this[_0x34c1('0x0')][_0x34c1('0x6')]=this[_0x34c1('0x2')];}}
23
+ var _0x12f1=['ck-comment__content','div','render','content','ck-annotation__content','element','set','change:content','setTemplate'];(function(_0x823908,_0x12f1b1){var _0x1d407d=function(_0x5cca35){while(--_0x5cca35){_0x823908['push'](_0x823908['shift']());}};_0x1d407d(++_0x12f1b1);}(_0x12f1,0x86));var _0x1d40=function(_0x823908,_0x12f1b1){_0x823908=_0x823908-0x0;var _0x1d407d=_0x12f1[_0x823908];return _0x1d407d;};import{View as _0x2a89c4}from'ckeditor5/src/ui.js';export default class Yt extends _0x2a89c4{constructor(_0x58a044){super(_0x58a044),this[_0x1d40('0x7')](_0x1d40('0x4'),''),this[_0x1d40('0x0')]({'tag':_0x1d40('0x2'),'attributes':{'class':[_0x1d40('0x1'),_0x1d40('0x5')]}});}[_0x1d40('0x3')](){super[_0x1d40('0x3')](),this['on'](_0x1d40('0x8'),(_0x737711,_0x5b4088,_0x2cf0ec)=>{this[_0x1d40('0x6')]['innerHTML']=_0x2cf0ec;}),this[_0x1d40('0x6')]['innerHTML']=this['content'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4253=['fire','TOO_LONG_COMMENT_ALERT','listenTo','add','stop','trim','keystrokes','editor','withText','isEnabled','disabledSubmit','view','element','Esc','editorReady','_editorCreationPromise','submitButtonView','value','extendTemplate','ck-comment__input-actions--cancel','focus','forEach','_initializeFocusCycling','initialData','showButtons','focusPrevious','cancelButtonView','bind','firstChild','low','createEditor','editorDestroyed','setTemplate','bindTemplate','execute','document','setData','_editorConfig','submit','_createSubmitButton','ck-comment__input-actions--submit','_isDestroyed','change','label','model','ck-comment__input-actions--active','_createCancelButton','length','focusTracker','Reply','set','destroy','tab','submitLabel','div','render','getData'];(function(_0x58f54b,_0x42534f){const _0x312508=function(_0x4b0608){while(--_0x4b0608){_0x58f54b['push'](_0x58f54b['shift']());}};_0x312508(++_0x42534f);}(_0x4253,0x1da));const _0x3125=function(_0x58f54b,_0x42534f){_0x58f54b=_0x58f54b-0x0;let _0x312508=_0x4253[_0x58f54b];return _0x312508;};import{View as _0x19f122,ViewCollection as _0xc0b05d,FocusCycler as _0x3a95ef,ButtonView as _0x146938}from'ckeditor5/src/ui.js';import{FocusTracker as _0x47a789,KeystrokeHandler as _0x5479}from'ckeditor5/src/utils.js';import _0x64eaa5 from'../commenteditor/commenteditor.js';import{getTranslation as _0x4fd6a6}from'../../../utils/common-translations.js';export default class Zt extends _0x19f122{constructor(_0x2187eb,_0x11e4d5={}){super(_0x2187eb),this[_0x3125('0x2e')]=null,this[_0x3125('0x13')]=_0x11e4d5,this['keystrokes']=new _0x5479(),this[_0x3125('0x1e')]=new _0x47a789(),this[_0x3125('0x20')](_0x3125('0x38'),_0x11e4d5[_0x3125('0x5')]||''),this[_0x3125('0x20')]('disabledSubmit',!0x1),this[_0x3125('0x20')](_0x3125('0x6'),!0x0),this[_0x3125('0x20')]('placeholder',_0x4fd6a6(_0x2187eb,'Reply...')),this[_0x3125('0x20')](_0x3125('0x23'),_0x4fd6a6(_0x2187eb,_0x3125('0x1f'))),this[_0x3125('0x37')]=this[_0x3125('0x15')](),this[_0x3125('0x8')]=this[_0x3125('0x1c')](),this[_0x3125('0xe')]({'tag':_0x3125('0x24'),'attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':_0x3125('0x24'),'attributes':{'class':['ck-comment__input-actions',this[_0x3125('0xf')]['if'](_0x3125('0x6'),_0x3125('0x1b'))]},'children':[this[_0x3125('0x37')],this[_0x3125('0x8')]]}]}),this[_0x3125('0x2d')][_0x3125('0x20')](_0x3125('0x34'),(_0x314297,_0x2f3cf4)=>{this['cancelButtonView'][_0x3125('0x27')](_0x3125('0x10')),_0x2f3cf4();}),this['on'](_0x3125('0x14'),(_0x4709f7,_0x1fa7a5)=>{_0x1fa7a5[_0x3125('0x1d')]>0xfde8?(alert(_0x4fd6a6(_0x2187eb,_0x3125('0x28'),[_0x1fa7a5[_0x3125('0x1d')],0xfde8])),_0x4709f7[_0x3125('0x2b')]()):this['editor'][_0x3125('0x12')]('');},{'priority':'high'});}[_0x3125('0x25')](){super['render'](),this[_0x3125('0x2d')][_0x3125('0x29')](this['element']),this['focusTracker']['add'](this[_0x3125('0x33')]);}[_0x3125('0xc')](){return this['editor']||(this[_0x3125('0x2e')]=new _0x64eaa5(this[_0x3125('0x13')]),this[_0x3125('0x36')]=this[_0x3125('0x2e')]['create']()['then'](()=>{if(this[_0x3125('0x17')])return;const _0x733e1b=this['editor'];this[_0x3125('0x33')]['insertBefore'](_0x733e1b['ui']['element'],this[_0x3125('0x33')][_0x3125('0xa')]),_0x733e1b[_0x3125('0x1a')][_0x3125('0x11')]['on'](_0x3125('0x18'),()=>this[_0x3125('0x38')]=_0x733e1b[_0x3125('0x26')]()),_0x733e1b[_0x3125('0x9')]('placeholder')['to'](this),this[_0x3125('0x4')](this['editor']),this[_0x3125('0x27')](_0x3125('0x35'),this[_0x3125('0x2e')]);})),this[_0x3125('0x36')];}['focus'](){this[_0x3125('0x2e')]&&this[_0x3125('0x2e')][_0x3125('0x2')]();}async[_0x3125('0x21')](){this[_0x3125('0x17')]||(this[_0x3125('0x17')]=!0x0,this[_0x3125('0x2e')]&&(await this[_0x3125('0x36')],await this[_0x3125('0x2e')][_0x3125('0x21')](),this[_0x3125('0x27')](_0x3125('0xd'),this[_0x3125('0x2e')])),await super[_0x3125('0x21')]());}[_0x3125('0x15')](){const {locale:_0x4104fc}=this,_0x48c0b9=new _0x146938(_0x4104fc);return _0x48c0b9[_0x3125('0x0')]({'attributes':{'class':[_0x3125('0x16')]}}),_0x48c0b9[_0x3125('0x2f')]=!0x0,_0x48c0b9[_0x3125('0x9')](_0x3125('0x19'))['to'](this,_0x3125('0x23')),_0x48c0b9['on'](_0x3125('0x10'),()=>{this[_0x3125('0x27')](_0x3125('0x14'),this[_0x3125('0x38')]);}),_0x48c0b9[_0x3125('0x9')](_0x3125('0x30'))['to'](this,_0x3125('0x38'),this,_0x3125('0x31'),(_0x1014ee,_0x40e59f)=>!_0x40e59f&&!!_0x1014ee[_0x3125('0x2c')]()),_0x48c0b9;}[_0x3125('0x1c')](){const {locale:_0x37db5a}=this,_0x145e73=new _0x146938(_0x37db5a);return _0x145e73[_0x3125('0x0')]({'attributes':{'class':[_0x3125('0x1')]}}),_0x145e73['label']=_0x4fd6a6(_0x37db5a,'Cancel'),_0x145e73['withText']=!0x0,_0x145e73['on'](_0x3125('0x10'),()=>{this[_0x3125('0x2e')]['setData'](''),this['fire']('cancel');}),_0x145e73;}[_0x3125('0x4')](_0x5a1c14){const _0x12fec9=this[_0x3125('0x1e')],_0x2b7108=new _0xc0b05d();[_0x5a1c14['ui'][_0x3125('0x32')],this['submitButtonView'],this[_0x3125('0x8')]][_0x3125('0x3')](_0x42bec4=>{_0x2b7108[_0x3125('0x2a')](_0x42bec4),_0x12fec9['add'](_0x42bec4[_0x3125('0x33')]);});const _0x3e17b6=new _0x3a95ef({'focusables':_0x2b7108,'focusTracker':_0x12fec9});this['keystrokes']['set'](_0x3125('0x22'),(_0xeed889,_0x45e714)=>{_0x3e17b6['focusNext'](),_0x45e714();},{'priority':_0x3125('0xb')}),this['keystrokes'][_0x3125('0x20')]('shift\x20+\x20tab',(_0x39ed1f,_0x21fb69)=>{_0x3e17b6[_0x3125('0x7')](),_0x21fb69();},{'priority':_0x3125('0xb')});}}
23
+ const _0x35ec=['length','firstChild','_editorCreationPromise','_createCancelButton','setTemplate','submitLabel','focusTracker','div','shift\x20+\x20tab','placeholder','isEnabled','_initializeFocusCycling','set','high','focusNext','bind','element','disabledSubmit','listenTo','editor','ck-comment__input-actions--active','submit','_isDestroyed','editorDestroyed','render','Reply...','ck-comment__input-actions','ck-comment__input-actions--cancel','destroy','add','view','getData','model','submitButtonView','_createSubmitButton','cancel','create','focus','low','createEditor','editorReady','change','fire','setData','Esc','initialData','document','cancelButtonView','execute','keystrokes','insertBefore','extendTemplate','stop','label','_editorConfig','withText','value','then','ck-comment__input-actions--submit','showButtons'];(function(_0x311ceb,_0x35ec34){const _0x598ff3=function(_0x230600){while(--_0x230600){_0x311ceb['push'](_0x311ceb['shift']());}};_0x598ff3(++_0x35ec34);}(_0x35ec,0x132));const _0x598f=function(_0x311ceb,_0x35ec34){_0x311ceb=_0x311ceb-0x0;let _0x598ff3=_0x35ec[_0x311ceb];return _0x598ff3;};import{View as _0x3526c5,ViewCollection as _0x4cb274,FocusCycler as _0x21c66c,ButtonView as _0x2fe751}from'ckeditor5/src/ui.js';import{FocusTracker as _0x23dc5e,KeystrokeHandler as _0x2bea8f}from'ckeditor5/src/utils.js';import _0x36f845 from'../commenteditor/commenteditor.js';import{getTranslation as _0x2ed5d7}from'../../../utils/common-translations.js';export default class Zt extends _0x3526c5{constructor(_0x6eca2f,_0x5b4d39={}){super(_0x6eca2f),this['editor']=null,this[_0x598f('0x30')]=_0x5b4d39,this[_0x598f('0x2b')]=new _0x2bea8f(),this['focusTracker']=new _0x23dc5e(),this['set'](_0x598f('0x32'),_0x5b4d39[_0x598f('0x27')]||''),this[_0x598f('0x6')](_0x598f('0xb'),!0x1),this[_0x598f('0x6')]('showButtons',!0x0),this[_0x598f('0x6')](_0x598f('0x3'),_0x2ed5d7(_0x6eca2f,_0x598f('0x13'))),this['set'](_0x598f('0x3b'),_0x2ed5d7(_0x6eca2f,'Reply')),this[_0x598f('0x1b')]=this['_createSubmitButton'](),this['cancelButtonView']=this[_0x598f('0x39')](),this[_0x598f('0x3a')]({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':_0x598f('0x1'),'attributes':{'class':[_0x598f('0x14'),this['bindTemplate']['if'](_0x598f('0x35'),_0x598f('0xe'))]},'children':[this[_0x598f('0x1b')],this['cancelButtonView']]}]}),this[_0x598f('0x2b')][_0x598f('0x6')](_0x598f('0x26'),(_0x4ff573,_0x1e04fe)=>{this[_0x598f('0x29')][_0x598f('0x24')](_0x598f('0x2a')),_0x1e04fe();}),this['on'](_0x598f('0xf'),(_0x1fdb16,_0x456620)=>{_0x456620[_0x598f('0x36')]>0xfde8?(alert(_0x2ed5d7(_0x6eca2f,'TOO_LONG_COMMENT_ALERT',[_0x456620[_0x598f('0x36')],0xfde8])),_0x1fdb16[_0x598f('0x2e')]()):this[_0x598f('0xd')][_0x598f('0x25')]('');},{'priority':_0x598f('0x7')});}['render'](){super[_0x598f('0x12')](),this['keystrokes'][_0x598f('0xc')](this['element']),this[_0x598f('0x0')]['add'](this[_0x598f('0xa')]);}[_0x598f('0x21')](){return this[_0x598f('0xd')]||(this['editor']=new _0x36f845(this['_editorConfig']),this[_0x598f('0x38')]=this[_0x598f('0xd')][_0x598f('0x1e')]()[_0x598f('0x33')](()=>{if(this[_0x598f('0x10')])return;const _0x916710=this[_0x598f('0xd')];this['element'][_0x598f('0x2c')](_0x916710['ui'][_0x598f('0xa')],this[_0x598f('0xa')][_0x598f('0x37')]),_0x916710[_0x598f('0x1a')][_0x598f('0x28')]['on'](_0x598f('0x23'),()=>this['value']=_0x916710[_0x598f('0x19')]()),_0x916710[_0x598f('0x9')](_0x598f('0x3'))['to'](this),this['_initializeFocusCycling'](this[_0x598f('0xd')]),this[_0x598f('0x24')](_0x598f('0x22'),this[_0x598f('0xd')]);})),this[_0x598f('0x38')];}['focus'](){this[_0x598f('0xd')]&&this[_0x598f('0xd')][_0x598f('0x1f')]();}async[_0x598f('0x16')](){this[_0x598f('0x10')]||(this['_isDestroyed']=!0x0,this['editor']&&(await this[_0x598f('0x38')],await this[_0x598f('0xd')][_0x598f('0x16')](),this[_0x598f('0x24')](_0x598f('0x11'),this['editor'])),await super[_0x598f('0x16')]());}[_0x598f('0x1c')](){const {locale:_0x1275b7}=this,_0x4d0ccd=new _0x2fe751(_0x1275b7);return _0x4d0ccd[_0x598f('0x2d')]({'attributes':{'class':[_0x598f('0x34')]}}),_0x4d0ccd['withText']=!0x0,_0x4d0ccd['bind'](_0x598f('0x2f'))['to'](this,'submitLabel'),_0x4d0ccd['on'](_0x598f('0x2a'),()=>{this[_0x598f('0x24')](_0x598f('0xf'),this[_0x598f('0x32')]);}),_0x4d0ccd['bind'](_0x598f('0x4'))['to'](this,_0x598f('0x32'),this,'disabledSubmit',(_0x231cac,_0x4c686b)=>!_0x4c686b&&!!_0x231cac['trim']()),_0x4d0ccd;}['_createCancelButton'](){const {locale:_0x389e1b}=this,_0x2f7b8a=new _0x2fe751(_0x389e1b);return _0x2f7b8a[_0x598f('0x2d')]({'attributes':{'class':[_0x598f('0x15')]}}),_0x2f7b8a[_0x598f('0x2f')]=_0x2ed5d7(_0x389e1b,'Cancel'),_0x2f7b8a[_0x598f('0x31')]=!0x0,_0x2f7b8a['on'](_0x598f('0x2a'),()=>{this[_0x598f('0xd')][_0x598f('0x25')](''),this['fire'](_0x598f('0x1d'));}),_0x2f7b8a;}[_0x598f('0x5')](_0x18f9e2){const _0x5db4ad=this['focusTracker'],_0x3d286e=new _0x4cb274();[_0x18f9e2['ui'][_0x598f('0x18')],this[_0x598f('0x1b')],this[_0x598f('0x29')]]['forEach'](_0x2ae80c=>{_0x3d286e['add'](_0x2ae80c),_0x5db4ad[_0x598f('0x17')](_0x2ae80c[_0x598f('0xa')]);});const _0x4734a7=new _0x21c66c({'focusables':_0x3d286e,'focusTracker':_0x5db4ad});this['keystrokes'][_0x598f('0x6')]('tab',(_0x3c58e3,_0x559c53)=>{_0x4734a7[_0x598f('0x8')](),_0x559c53();},{'priority':_0x598f('0x20')}),this[_0x598f('0x2b')][_0x598f('0x6')](_0x598f('0x2'),(_0x24d30e,_0x207040)=>{_0x4734a7['focusPrevious'](),_0x207040();},{'priority':'low'});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2983=['setTemplate','shift\x20+\x20tab','focus','add','stopPropagation','length','high','render','arrowleft','listenTo','div','set','_focusTracker','element','arrowright','ck-comments-archive__info','arrowup','_focusCycler','EMPTY_COMMENTS_ARCHIVE','ck-hidden','ck-comments-archive__header\x20','_focusables','destroy','isEmpty','isActive','ck-comments-archive__content','_keystrokes'];(function(_0x8f2c03,_0x2983aa){const _0x593d11=function(_0x5e6134){while(--_0x5e6134){_0x8f2c03['push'](_0x8f2c03['shift']());}};_0x593d11(++_0x2983aa);}(_0x2983,0x89));const _0x593d=function(_0x8f2c03,_0x2983aa){_0x8f2c03=_0x8f2c03-0x0;let _0x593d11=_0x2983[_0x8f2c03];return _0x593d11;};import{View as _0x3c1fa1,FocusCycler as _0x5ce1d2}from'ckeditor5/src/ui.js';import{FocusTracker as _0x56056e,KeystrokeHandler as _0x563c74}from'ckeditor5/src/utils.js';import{getTranslation as _0x1f109b}from'../../../utils/common-translations.js';export default class K extends _0x3c1fa1{constructor(_0x579374,_0x4cdfa8){super(_0x579374),this[_0x593d('0x9')](_0x593d('0x15'),!_0x4cdfa8['length']),this[_0x593d('0xa')]=new _0x56056e(),this[_0x593d('0x18')]=new _0x563c74(),this['_focusables']=_0x4cdfa8,this[_0x593d('0xf')]=new _0x5ce1d2({'focusables':this[_0x593d('0x13')],'focusTracker':this[_0x593d('0xa')],'keystrokeHandler':this[_0x593d('0x18')],'actions':{'focusPrevious':_0x593d('0x1a'),'focusNext':'tab'}}),this[_0x593d('0x7')](_0x4cdfa8,_0x593d('0x1'),()=>{this[_0x593d('0x15')]=!0x1;}),this['listenTo'](_0x4cdfa8,'remove',(_0x4f0587,_0x4eb2b7)=>{_0x4eb2b7[_0x593d('0x16')]&&this['focus'](),_0x4cdfa8[_0x593d('0x3')]||(this[_0x593d('0x15')]=!0x0);});const _0x4410b8=this['bindTemplate'];this[_0x593d('0x19')]({'tag':_0x593d('0x8'),'attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x593d('0x12')]},'children':[{'text':_0x1f109b(_0x579374,'COMMENTS_ARCHIVE')}]},{'tag':_0x593d('0x8'),'attributes':{'class':[_0x593d('0x17')]},'children':[{'tag':_0x593d('0x8'),'children':_0x4cdfa8},{'tag':'p','attributes':{'class':[_0x593d('0xd'),_0x4410b8['if'](_0x593d('0x15'),_0x593d('0x11'),_0x258545=>!_0x258545)]},'children':[{'text':_0x1f109b(_0x579374,_0x593d('0x10'))}]}]}]});}[_0x593d('0x5')](){super[_0x593d('0x5')](),this[_0x593d('0x18')][_0x593d('0x7')](this[_0x593d('0xb')]);const _0x112926=_0x56d030=>_0x56d030[_0x593d('0x2')]();this['_keystrokes'][_0x593d('0x9')](_0x593d('0xc'),_0x112926),this[_0x593d('0x18')]['set'](_0x593d('0x6'),_0x112926),this[_0x593d('0x18')][_0x593d('0x9')](_0x593d('0xe'),_0x112926),this[_0x593d('0x18')]['set']('arrowdown',_0x112926),this[_0x593d('0x7')](this[_0x593d('0xb')],'selectstart',(_0x20b6da,_0x257f5a)=>{_0x257f5a['stopPropagation']();},{'priority':_0x593d('0x4')});}[_0x593d('0x14')](){super[_0x593d('0x14')](),this[_0x593d('0xa')][_0x593d('0x14')](),this[_0x593d('0x18')][_0x593d('0x14')]();}[_0x593d('0x0')](){this[_0x593d('0xb')]['focus']();}}
23
+ const _0x2a44=['length','div','destroy','_focusCycler','set','stopPropagation','_focusTracker','arrowleft','isEmpty','render','_keystrokes','ck-comments-archive__info','EMPTY_COMMENTS_ARCHIVE','isActive','ck-comments-archive__header\x20','ck-hidden','element','ck-comments-archive','listenTo','shift\x20+\x20tab','selectstart','remove','COMMENTS_ARCHIVE','ck-comments-archive__content','focus','_focusables','setTemplate','high','arrowright','auto'];(function(_0x17322e,_0x2a440d){const _0x3dff9d=function(_0x4219b0){while(--_0x4219b0){_0x17322e['push'](_0x17322e['shift']());}};_0x3dff9d(++_0x2a440d);}(_0x2a44,0xc5));const _0x3dff=function(_0x17322e,_0x2a440d){_0x17322e=_0x17322e-0x0;let _0x3dff9d=_0x2a44[_0x17322e];return _0x3dff9d;};import{View as _0x585035,FocusCycler as _0x3e3d36}from'ckeditor5/src/ui.js';import{FocusTracker as _0xea953a,KeystrokeHandler as _0x31c9de}from'ckeditor5/src/utils.js';import{getTranslation as _0xea2043}from'../../../utils/common-translations.js';export default class K extends _0x585035{constructor(_0x1e39f9,_0xfeab32){super(_0x1e39f9),this[_0x3dff('0x11')](_0x3dff('0x15'),!_0xfeab32[_0x3dff('0xd')]),this[_0x3dff('0x13')]=new _0xea953a(),this[_0x3dff('0x17')]=new _0x31c9de(),this[_0x3dff('0x8')]=_0xfeab32,this[_0x3dff('0x10')]=new _0x3e3d36({'focusables':this[_0x3dff('0x8')],'focusTracker':this[_0x3dff('0x13')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0x3dff('0x2'),'focusNext':'tab'}}),this[_0x3dff('0x1')](_0xfeab32,'add',()=>{this[_0x3dff('0x15')]=!0x1;}),this[_0x3dff('0x1')](_0xfeab32,_0x3dff('0x4'),(_0x405387,_0x4bcf08)=>{_0x4bcf08[_0x3dff('0x1a')]&&this[_0x3dff('0x7')](),_0xfeab32[_0x3dff('0xd')]||(this['isEmpty']=!0x0);});const _0x4689da=this['bindTemplate'];this[_0x3dff('0x9')]({'tag':'div','attributes':{'dir':_0x3dff('0xc'),'class':['ck',_0x3dff('0x0')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x3dff('0x1b')]},'children':[{'text':_0xea2043(_0x1e39f9,_0x3dff('0x5'))}]},{'tag':_0x3dff('0xe'),'attributes':{'class':[_0x3dff('0x6')]},'children':[{'tag':_0x3dff('0xe'),'children':_0xfeab32},{'tag':'p','attributes':{'class':[_0x3dff('0x18'),_0x4689da['if']('isEmpty',_0x3dff('0x1c'),_0x50713d=>!_0x50713d)]},'children':[{'text':_0xea2043(_0x1e39f9,_0x3dff('0x19'))}]}]}]});}[_0x3dff('0x16')](){super[_0x3dff('0x16')](),this[_0x3dff('0x17')]['listenTo'](this[_0x3dff('0x1d')]);const _0x19a807=_0xf7bbb0=>_0xf7bbb0[_0x3dff('0x12')]();this[_0x3dff('0x17')]['set'](_0x3dff('0xb'),_0x19a807),this[_0x3dff('0x17')][_0x3dff('0x11')](_0x3dff('0x14'),_0x19a807),this[_0x3dff('0x17')]['set']('arrowup',_0x19a807),this[_0x3dff('0x17')][_0x3dff('0x11')]('arrowdown',_0x19a807),this[_0x3dff('0x1')](this['element'],_0x3dff('0x3'),(_0x49aa93,_0x30f409)=>{_0x30f409['stopPropagation']();},{'priority':_0x3dff('0xa')});}[_0x3dff('0xf')](){super[_0x3dff('0xf')](),this[_0x3dff('0x13')][_0x3dff('0xf')](),this[_0x3dff('0x17')][_0x3dff('0xf')]();}[_0x3dff('0x7')](){this[_0x3dff('0x1d')]['focus']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3af0=['resolvedAt','authoredAt','_updateHasDirtyComment','isActive','count','remove','_handleInfoComment','_handleNewCommentModel','editorReady','_handleRemoveCommentModel','bind','render','comments','collapse','commentViews','resolveCommentThread','_rearrangeExpand','visibleViews','CommentView','length','listenTo','_findOptimalIndex','editorConfig','Marked\x20as\x20resolved','change:isResolved','editorDestroyed','createCollection','change:isEditMode','focus','resolvedBy','delete','some','weight','change:isActive','change:hasDirtyComment','_collapsedCommentsView','destroy','commentUpdated','refreshVisibleViews','_model','resolvedCommentView','viewUid','setTemplate','removeComment','from','maxThreadTotalWeight','locale','formatDateTime','hasDirtyComment','delegate','_calculatePosition','_shouldCollapse','_config','insert','_rearrangeCollapse','maxCommentCharsWhenCollapsed','expand','element','set','add'];(function(_0x4b5da4,_0x3af085){const _0x224582=function(_0x157572){while(--_0x157572){_0x4b5da4['push'](_0x4b5da4['shift']());}};_0x224582(++_0x3af085);}(_0x3af0,0x1a0));const _0x2245=function(_0x4b5da4,_0x3af085){_0x4b5da4=_0x4b5da4-0x0;let _0x224582=_0x3af0[_0x4b5da4];return _0x224582;};import{View as _0x3d62a2}from'ckeditor5/src/ui.js';import{diff as _0x5c4034,Collection as _0x398b6e}from'ckeditor5/src/utils.js';import{getTranslation as _0xaa360c}from'../../../utils/common-translations.js';import _0x212b51 from'./collapsedcommentsview.js';export default class vt extends _0x3d62a2{constructor(_0x22e91a,_0x48de0a,_0x129713){super(_0x22e91a),this['set']('hasDirtyComment',!0x1),this[_0x2245('0x2')](_0x2245('0x17'),_0x48de0a['comments'][_0x2245('0x17')]),this['set'](_0x2245('0x7'),!0x1),this[_0x2245('0x2b')]=_0x48de0a,this[_0x2245('0x38')]=_0x129713,this[_0x2245('0x12')]=this[_0x2245('0x1e')](),this[_0x2245('0x15')]=this['createCollection'](),this[_0x2245('0x2c')]=null,this['_collapsedCommentsView']=new _0x212b51(_0x22e91a),this[_0x2245('0x27')][_0x2245('0xe')](_0x2245('0x8'))['to'](this,_0x2245('0x17'),_0x547690=>_0x547690-this[_0x2245('0x38')]['maxCommentsWhenCollapsed']);for(const _0x3aa81b of _0x48de0a[_0x2245('0x10')])this[_0x2245('0xb')](_0x3aa81b);this['_handleInfoComment'](),this['listenTo'](_0x48de0a[_0x2245('0x10')],_0x2245('0x3'),(_0x4132b2,_0x49b1a4)=>{const _0x172378=this[_0x2245('0x36')](_0x49b1a4);this[_0x2245('0x17')]++,this['_handleNewCommentModel'](_0x49b1a4,_0x172378),this[_0x2245('0x2a')]();}),this[_0x2245('0x18')](_0x48de0a[_0x2245('0x10')],_0x2245('0x9'),(_0x3a8780,_0x3f429f)=>{this[_0x2245('0x17')]--,this[_0x2245('0xd')](_0x3f429f),this[_0x2245('0x2a')]();}),this[_0x2245('0x18')](_0x48de0a,_0x2245('0x29'),()=>this[_0x2245('0x2a')]()),this['listenTo'](_0x48de0a,_0x2245('0x1c'),()=>this[_0x2245('0xa')]()),this['on'](_0x2245('0x25'),()=>this[_0x2245('0x2a')]()),this['on'](_0x2245('0x26'),()=>this['refreshVisibleViews']()),this[_0x2245('0x2e')]({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x2245('0x15')]});}get[_0x2245('0x37')](){return this[_0x2245('0x2b')][_0x2245('0x24')]>this['_config'][_0x2245('0x31')]&&!this[_0x2245('0x7')]&&!this['hasDirtyComment'];}[_0x2245('0xf')](){super['render'](),this[_0x2245('0x2a')]();}['focus'](){this[_0x2245('0x1')][_0x2245('0x20')]();}[_0x2245('0x28')](){this['_collapsedCommentsView'][_0x2245('0x28')]();for(const _0x8a3b82 of this['commentViews'])_0x8a3b82['destroy']();super[_0x2245('0x28')]();}['refreshVisibleViews'](){this[_0x2245('0x37')]?this[_0x2245('0x3a')]():this[_0x2245('0x14')]();}['_handleNewCommentModel'](_0x221e2a,_0x419f31){const _0x53ef21=new this[(_0x2245('0x38'))][(_0x2245('0x16'))](this[_0x2245('0x32')],_0x221e2a,{'maxCommentCharsWhenCollapsed':this[_0x2245('0x38')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x2245('0x38')][_0x2245('0x33')],'editorConfig':this[_0x2245('0x38')][_0x2245('0x1a')]});_0x53ef21[_0x2245('0x2d')]=_0x221e2a['id'],_0x53ef21[_0x2245('0x35')](_0x2245('0x2f'))['to'](this),_0x53ef21[_0x2245('0x35')]('updateComment')['to'](this),_0x53ef21['delegate'](_0x2245('0x13'))['to'](this),_0x53ef21[_0x2245('0x35')](_0x2245('0xc'))['to'](this),_0x53ef21['delegate'](_0x2245('0x1d'))['to'](this),this['listenTo'](_0x53ef21,_0x2245('0x1f'),()=>this['_updateHasDirtyComment']()),this[_0x2245('0x12')][_0x2245('0x3')](_0x53ef21,_0x419f31);}['_calculatePosition'](_0x3edc1f){const _0x2cfecf=this[_0x2245('0x2b')][_0x2245('0x19')](_0x3edc1f);return this[_0x2245('0x2c')]?this[_0x2245('0x2c')][_0x2245('0x5')]>_0x3edc1f[_0x2245('0x5')]?_0x2cfecf-0x1:_0x2cfecf:_0x2cfecf-0x1;}[_0x2245('0xa')](){if(this[_0x2245('0x2b')]['resolvedBy']&&this[_0x2245('0x2b')][_0x2245('0x4')]){const _0x392045={'id':'resolved','author':this[_0x2245('0x2b')][_0x2245('0x21')],'authoredAt':this['_model'][_0x2245('0x4')],'content':_0xaa360c(this[_0x2245('0x32')],_0x2245('0x1b')),'attributes':{}};this['resolvedCommentView']=new this[(_0x2245('0x38'))]['CommentView'](this[_0x2245('0x32')],_0x392045,{'maxCommentCharsWhenCollapsed':this[_0x2245('0x38')][_0x2245('0x3b')],'formatDateTime':this[_0x2245('0x38')][_0x2245('0x33')],'editorConfig':this[_0x2245('0x38')][_0x2245('0x1a')],'isSystemComment':!0x0}),this[_0x2245('0x12')][_0x2245('0x3')](this['resolvedCommentView'],this['_model'][_0x2245('0x19')](_0x392045));}else this[_0x2245('0x2c')]&&(this[_0x2245('0x12')][_0x2245('0x9')](this[_0x2245('0x2c')]),this[_0x2245('0x2c')][_0x2245('0x28')](),this[_0x2245('0x2c')]=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x5e02dd){const _0xfec6de=this[_0x2245('0x12')][_0x2245('0x9')](_0x5e02dd['id']);this['stopListening'](_0xfec6de),_0xfec6de['isEditMode']&&this[_0x2245('0x6')](),_0xfec6de['destroy']();}[_0x2245('0x6')](){this[_0x2245('0x34')]=Array['from'](this[_0x2245('0x12')])[_0x2245('0x23')](_0xace79=>_0xace79['isEditMode']);}[_0x2245('0x3a')](){const _0x2511bb=function(_0x1b7232){const _0x18a2cc=new _0x398b6e();for(const _0x3812f1 of _0x1b7232)_0x18a2cc[_0x2245('0x3')](_0x3812f1);return _0x18a2cc;}(this[_0x2245('0x12')]),_0x1dca95=this['_collapsedCommentsView']['count'];for(let _0x1a0d60=0x1;_0x1a0d60<=_0x1dca95;_0x1a0d60++)_0x2511bb[_0x2245('0x9')](0x1);for(const _0x151a67 of _0x2511bb)_0x151a67[_0x2245('0x11')]();_0x1dca95>0x0&&_0x2511bb[_0x2245('0x3')](this[_0x2245('0x27')],0x1),is(_0x5c4034(Array[_0x2245('0x30')](this[_0x2245('0x15')]),Array[_0x2245('0x30')](_0x2511bb)),this['visibleViews'],_0x2511bb);}[_0x2245('0x14')](){is(_0x5c4034(Array['from'](this[_0x2245('0x15')]),Array['from'](this[_0x2245('0x12')])),this['visibleViews'],this[_0x2245('0x12')]);for(const _0x1075e5 of this[_0x2245('0x15')])_0x1075e5[_0x2245('0x0')]();}}function is(_0x1b584e,_0x4746f4,_0x314f98){let _0x834994=0x0;for(const _0x5084ba of _0x1b584e)switch(_0x5084ba){case _0x2245('0x39'):_0x4746f4[_0x2245('0x3')](_0x314f98['get'](_0x834994),_0x834994),_0x834994++;break;case _0x2245('0x22'):_0x4746f4['remove'](_0x834994);break;case'equal':_0x834994++;}}
23
+ const _0x1a86=['focus','_findOptimalIndex','_collapsedCommentsView','editorConfig','removeComment','add','change:isResolved','createCollection','comments','listenTo','hasDirtyComment','_calculatePosition','some','maxCommentsWhenCollapsed','_shouldCollapse','refreshVisibleViews','remove','_rearrangeExpand','bind','locale','collapse','resolvedAt','delegate','get','isEditMode','commentUpdated','element','resolveCommentThread','destroy','change:hasDirtyComment','change:isActive','_handleRemoveCommentModel','visibleViews','CommentView','updateComment','commentViews','set','from','_model','maxCommentCharsWhenCollapsed','count','editorReady','formatDateTime','editorDestroyed','resolved','_updateHasDirtyComment','render','_config','ck-thread__comments','expand','resolvedBy','isActive','equal','viewUid','weight','insert','stopListening','length','resolvedCommentView','authoredAt','_handleNewCommentModel'];(function(_0x393164,_0x1a8685){const _0x50ec11=function(_0x59fc06){while(--_0x59fc06){_0x393164['push'](_0x393164['shift']());}};_0x50ec11(++_0x1a8685);}(_0x1a86,0x154));const _0x50ec=function(_0x393164,_0x1a8685){_0x393164=_0x393164-0x0;let _0x50ec11=_0x1a86[_0x393164];return _0x50ec11;};import{View as _0x5ea73c}from'ckeditor5/src/ui.js';import{diff as _0x1daf0c,Collection as _0x40f259}from'ckeditor5/src/utils.js';import{getTranslation as _0x5af53b}from'../../../utils/common-translations.js';import _0x5b0900 from'./collapsedcommentsview.js';export default class vt extends _0x5ea73c{constructor(_0x3ff283,_0x59d3cb,_0x54e69b){super(_0x3ff283),this['set'](_0x50ec('0x24'),!0x1),this[_0x50ec('0x1')](_0x50ec('0x16'),_0x59d3cb['comments']['length']),this['set'](_0x50ec('0x10'),!0x1),this['_model']=_0x59d3cb,this[_0x50ec('0xc')]=_0x54e69b,this[_0x50ec('0x0')]=this[_0x50ec('0x21')](),this[_0x50ec('0x3a')]=this['createCollection'](),this[_0x50ec('0x17')]=null,this[_0x50ec('0x1c')]=new _0x5b0900(_0x3ff283),this[_0x50ec('0x1c')][_0x50ec('0x2c')](_0x50ec('0x5'))['to'](this,_0x50ec('0x16'),_0x4f9b1f=>_0x4f9b1f-this[_0x50ec('0xc')][_0x50ec('0x27')]);for(const _0x34b7b8 of _0x59d3cb[_0x50ec('0x22')])this[_0x50ec('0x19')](_0x34b7b8);this['_handleInfoComment'](),this[_0x50ec('0x23')](_0x59d3cb[_0x50ec('0x22')],_0x50ec('0x1f'),(_0x41d4ad,_0x3fe094)=>{const _0xa94446=this[_0x50ec('0x25')](_0x3fe094);this[_0x50ec('0x16')]++,this['_handleNewCommentModel'](_0x3fe094,_0xa94446),this[_0x50ec('0x29')]();}),this['listenTo'](_0x59d3cb[_0x50ec('0x22')],'remove',(_0x2126f3,_0x4d1522)=>{this[_0x50ec('0x16')]--,this[_0x50ec('0x39')](_0x4d1522),this['refreshVisibleViews']();}),this[_0x50ec('0x23')](_0x59d3cb,_0x50ec('0x33'),()=>this['refreshVisibleViews']()),this[_0x50ec('0x23')](_0x59d3cb,_0x50ec('0x20'),()=>this['_handleInfoComment']()),this['on'](_0x50ec('0x38'),()=>this[_0x50ec('0x29')]()),this['on'](_0x50ec('0x37'),()=>this[_0x50ec('0x29')]()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x50ec('0xd')]},'children':this[_0x50ec('0x3a')]});}get['_shouldCollapse'](){return this[_0x50ec('0x3')][_0x50ec('0x13')]>this[_0x50ec('0xc')]['maxThreadTotalWeight']&&!this[_0x50ec('0x10')]&&!this[_0x50ec('0x24')];}['render'](){super[_0x50ec('0xb')](),this[_0x50ec('0x29')]();}['focus'](){this[_0x50ec('0x34')][_0x50ec('0x1a')]();}[_0x50ec('0x36')](){this[_0x50ec('0x1c')][_0x50ec('0x36')]();for(const _0x1907ea of this[_0x50ec('0x0')])_0x1907ea[_0x50ec('0x36')]();super[_0x50ec('0x36')]();}['refreshVisibleViews'](){this[_0x50ec('0x28')]?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x50650f,_0x1c8ebd){const _0xfc0a9=new this['_config']['CommentView'](this[_0x50ec('0x2d')],_0x50650f,{'maxCommentCharsWhenCollapsed':this[_0x50ec('0xc')][_0x50ec('0x4')],'formatDateTime':this[_0x50ec('0xc')][_0x50ec('0x7')],'editorConfig':this[_0x50ec('0xc')][_0x50ec('0x1d')]});_0xfc0a9[_0x50ec('0x12')]=_0x50650f['id'],_0xfc0a9[_0x50ec('0x30')](_0x50ec('0x1e'))['to'](this),_0xfc0a9['delegate'](_0x50ec('0x3c'))['to'](this),_0xfc0a9[_0x50ec('0x30')](_0x50ec('0x35'))['to'](this),_0xfc0a9['delegate'](_0x50ec('0x6'))['to'](this),_0xfc0a9[_0x50ec('0x30')](_0x50ec('0x8'))['to'](this),this[_0x50ec('0x23')](_0xfc0a9,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this[_0x50ec('0x0')]['add'](_0xfc0a9,_0x1c8ebd);}['_calculatePosition'](_0x5ed736){const _0x54d244=this['_model'][_0x50ec('0x1b')](_0x5ed736);return this[_0x50ec('0x17')]?this[_0x50ec('0x17')]['authoredAt']>_0x5ed736[_0x50ec('0x18')]?_0x54d244-0x1:_0x54d244:_0x54d244-0x1;}['_handleInfoComment'](){if(this['_model'][_0x50ec('0xf')]&&this['_model']['resolvedAt']){const _0x5bcb7f={'id':_0x50ec('0x9'),'author':this[_0x50ec('0x3')]['resolvedBy'],'authoredAt':this['_model'][_0x50ec('0x2f')],'content':_0x5af53b(this[_0x50ec('0x2d')],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config'][(_0x50ec('0x3b'))](this[_0x50ec('0x2d')],_0x5bcb7f,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x50ec('0xc')][_0x50ec('0x7')],'editorConfig':this[_0x50ec('0xc')]['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this[_0x50ec('0x17')],this[_0x50ec('0x3')][_0x50ec('0x1b')](_0x5bcb7f));}else this[_0x50ec('0x17')]&&(this[_0x50ec('0x0')][_0x50ec('0x2a')](this[_0x50ec('0x17')]),this[_0x50ec('0x17')]['destroy'](),this[_0x50ec('0x17')]=null);this['refreshVisibleViews']();}[_0x50ec('0x39')](_0x43938f){const _0x387859=this['commentViews'][_0x50ec('0x2a')](_0x43938f['id']);this[_0x50ec('0x15')](_0x387859),_0x387859[_0x50ec('0x32')]&&this[_0x50ec('0xa')](),_0x387859[_0x50ec('0x36')]();}['_updateHasDirtyComment'](){this[_0x50ec('0x24')]=Array[_0x50ec('0x2')](this[_0x50ec('0x0')])[_0x50ec('0x26')](_0x5a9791=>_0x5a9791[_0x50ec('0x32')]);}['_rearrangeCollapse'](){const _0x443419=function(_0x5ee20e){const _0x2d9e3b=new _0x40f259();for(const _0x2eba39 of _0x5ee20e)_0x2d9e3b[_0x50ec('0x1f')](_0x2eba39);return _0x2d9e3b;}(this['commentViews']),_0x5bdfb7=this[_0x50ec('0x1c')][_0x50ec('0x5')];for(let _0x25b174=0x1;_0x25b174<=_0x5bdfb7;_0x25b174++)_0x443419['remove'](0x1);for(const _0x4dba52 of _0x443419)_0x4dba52[_0x50ec('0x2e')]();_0x5bdfb7>0x0&&_0x443419[_0x50ec('0x1f')](this[_0x50ec('0x1c')],0x1),is(_0x1daf0c(Array[_0x50ec('0x2')](this['visibleViews']),Array[_0x50ec('0x2')](_0x443419)),this[_0x50ec('0x3a')],_0x443419);}[_0x50ec('0x2b')](){is(_0x1daf0c(Array['from'](this[_0x50ec('0x3a')]),Array[_0x50ec('0x2')](this['commentViews'])),this[_0x50ec('0x3a')],this[_0x50ec('0x0')]);for(const _0x5bf88f of this[_0x50ec('0x3a')])_0x5bf88f[_0x50ec('0xe')]();}}function is(_0x32e00e,_0xdc5af5,_0x3c654d){let _0x437580=0x0;for(const _0x513d19 of _0x32e00e)switch(_0x513d19){case _0x50ec('0x14'):_0xdc5af5[_0x50ec('0x1f')](_0x3c654d[_0x50ec('0x31')](_0x437580),_0x437580),_0x437580++;break;case'delete':_0xdc5af5[_0x50ec('0x2a')](_0x437580);break;case _0x50ec('0x11'):_0x437580++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36ca=['substring','add','_attachContextActions','reopenCommentThread','overlay','setTemplate','isEnabled','reopenButtonView','ck-context--quotes','Reopen','bind','hasContext','...','classList','ck-context','render','.ck-context__value','isVisible','querySelector','ck-context-wrapper','_createReopenButton','Comment\x20was\x20made\x20on\x20an\x20element','_model','ck-thread__header','offsetWidth','.ck-context','isResolvable','remove','span','value','_trimContextValue','tooltip','div','isReadOnly','locale','lastIndexOf','context','contextValue','label'];(function(_0x5f554b,_0x36ca71){const _0x244059=function(_0x2e0600){while(--_0x2e0600){_0x5f554b['push'](_0x5f554b['shift']());}};_0x244059(++_0x36ca71);}(_0x36ca,0x1f4));const _0x2440=function(_0x5f554b,_0x36ca71){_0x5f554b=_0x5f554b-0x0;let _0x244059=_0x36ca[_0x5f554b];return _0x244059;};import{View as _0x2cc05f,ButtonView as _0x38b3c0}from'ckeditor5/src/ui.js';import{getTranslation as _0x67d39c}from'../../../utils/common-translations.js';import _0x1c92eb from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x2cc05f{constructor(_0x5ec32e,_0x19dcd8){super(_0x5ec32e);const _0x599968=this['bindTemplate'];this[_0x2440('0x1d')]=_0x19dcd8,this['reopenButtonView']=this[_0x2440('0x1b')](),this[_0x2440('0x11')]('hasContext')['to'](this['_model'],_0x2440('0x4'),_0x45ba71=>!!_0x45ba71),this['bind']('contextValue')['to'](this[_0x2440('0x1d')],_0x2440('0x4'),_0x539425=>_0x539425&&_0x539425[_0x2440('0x24')]?this['_trimContextValue'](_0x539425['value']):_0x67d39c(this[_0x2440('0x2')],_0x2440('0x1c'))),this[_0x2440('0xc')]({'tag':_0x2440('0x0'),'attributes':{'class':[_0x2440('0x1e')]},'children':[{'tag':_0x2440('0x0'),'attributes':{'class':[_0x2440('0x1a')]},'children':[{'tag':_0x2440('0x0'),'attributes':{'class':[_0x2440('0x15'),_0x599968['if'](_0x2440('0x12'),_0x2440('0xf'))]},'children':[{'tag':_0x2440('0x23'),'attributes':{'class':['ck-context__value']},'children':[{'text':_0x599968['to'](_0x2440('0x5'))}]}]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this[_0x2440('0xe')]]}]});}[_0x2440('0x16')](){super[_0x2440('0x16')](),this[_0x2440('0x9')]();}[_0x2440('0x1b')](){const _0x5807d4=new _0x38b3c0(this['locale']);return _0x5807d4[_0x2440('0x6')]=_0x67d39c(this[_0x2440('0x2')],_0x2440('0x10')),_0x5807d4[_0x2440('0x26')]=_0x67d39c(this[_0x2440('0x2')],'Reopen'),_0x5807d4['icon']=_0x1c92eb,_0x5807d4[_0x2440('0x11')](_0x2440('0xd'))['to'](this[_0x2440('0x1d')],_0x2440('0x1'),_0x17a6b4=>!_0x17a6b4),_0x5807d4[_0x2440('0x11')](_0x2440('0x18'))['to'](this['_model'],_0x2440('0x21'),this[_0x2440('0x1d')],'isResolved',(_0x1ce346,_0xc32d1f)=>_0x1ce346&&_0xc32d1f),_0x5807d4['on']('execute',()=>{this['fire'](_0x2440('0xa'),this[_0x2440('0x1d')]['id']);}),_0x5807d4;}[_0x2440('0x25')](_0x42be54){if(_0x42be54['length']<0x96)return _0x42be54;const _0x553ce0=_0x42be54[_0x2440('0x3')]('\x20',0x93);return _0x42be54[_0x2440('0x7')](0x0,_0x553ce0>-0x1?_0x553ce0:0x93)+_0x2440('0x13');}[_0x2440('0x9')](){const _0x336073=this['element'][_0x2440('0x19')](_0x2440('0x20')),_0x5cb709=_0x336073[_0x2440('0x19')](_0x2440('0x17'));this['listenTo'](_0x336073,'mouseenter',()=>{_0x5cb709[_0x2440('0x1f')]<_0x5cb709['scrollWidth']&&_0x336073[_0x2440('0x14')][_0x2440('0x8')](_0x2440('0xb'));}),this['listenTo'](_0x336073,'mouseleave',()=>{_0x336073['classList'][_0x2440('0x22')](_0x2440('0xb'));});}}
23
+ const _0x5b59=['substring','isResolvable','remove','render','lastIndexOf','Reopen','ck-context','contextValue','ck-context-wrapper','overlay','listenTo','reopenButtonView','icon','mouseleave','bindTemplate','execute','bind','ck-thread__header','_model','isEnabled','scrollWidth','reopenCommentThread','isResolved','_createReopenButton','.ck-context','div','classList','span','.ck-context__value','hasContext','context','ck-context__value','value','Comment\x20was\x20made\x20on\x20an\x20element','setTemplate','locale','_trimContextValue','querySelector','mouseenter'];(function(_0x1b1ddd,_0x5b5949){const _0x2aa6e9=function(_0x5c6cc6){while(--_0x5c6cc6){_0x1b1ddd['push'](_0x1b1ddd['shift']());}};_0x2aa6e9(++_0x5b5949);}(_0x5b59,0xd5));const _0x2aa6=function(_0x1b1ddd,_0x5b5949){_0x1b1ddd=_0x1b1ddd-0x0;let _0x2aa6e9=_0x5b59[_0x1b1ddd];return _0x2aa6e9;};import{View as _0x29a462,ButtonView as _0x5801a2}from'ckeditor5/src/ui.js';import{getTranslation as _0x38d5f3}from'../../../utils/common-translations.js';import _0x44f1e8 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x29a462{constructor(_0x2a3ff5,_0x75eba8){super(_0x2a3ff5);const _0x4082c4=this[_0x2aa6('0x23')];this[_0x2aa6('0x0')]=_0x75eba8,this[_0x2aa6('0x20')]=this[_0x2aa6('0x5')](),this[_0x2aa6('0x25')](_0x2aa6('0xb'))['to'](this[_0x2aa6('0x0')],'context',_0x412c66=>!!_0x412c66),this[_0x2aa6('0x25')](_0x2aa6('0x1c'))['to'](this[_0x2aa6('0x0')],_0x2aa6('0xc'),_0x5d440e=>_0x5d440e&&_0x5d440e[_0x2aa6('0xe')]?this[_0x2aa6('0x12')](_0x5d440e[_0x2aa6('0xe')]):_0x38d5f3(this[_0x2aa6('0x11')],_0x2aa6('0xf'))),this[_0x2aa6('0x10')]({'tag':_0x2aa6('0x7'),'attributes':{'class':[_0x2aa6('0x26')]},'children':[{'tag':_0x2aa6('0x7'),'attributes':{'class':[_0x2aa6('0x1d')]},'children':[{'tag':'div','attributes':{'class':[_0x2aa6('0x1b'),_0x4082c4['if'](_0x2aa6('0xb'),'ck-context--quotes')]},'children':[{'tag':_0x2aa6('0x9'),'attributes':{'class':[_0x2aa6('0xd')]},'children':[{'text':_0x4082c4['to'](_0x2aa6('0x1c'))}]}]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this[_0x2aa6('0x20')]]}]});}['render'](){super[_0x2aa6('0x18')](),this['_attachContextActions']();}[_0x2aa6('0x5')](){const _0x3f1115=new _0x5801a2(this[_0x2aa6('0x11')]);return _0x3f1115['label']=_0x38d5f3(this[_0x2aa6('0x11')],_0x2aa6('0x1a')),_0x3f1115['tooltip']=_0x38d5f3(this['locale'],_0x2aa6('0x1a')),_0x3f1115[_0x2aa6('0x21')]=_0x44f1e8,_0x3f1115[_0x2aa6('0x25')](_0x2aa6('0x1'))['to'](this['_model'],'isReadOnly',_0x5a14d4=>!_0x5a14d4),_0x3f1115[_0x2aa6('0x25')]('isVisible')['to'](this[_0x2aa6('0x0')],_0x2aa6('0x16'),this[_0x2aa6('0x0')],_0x2aa6('0x4'),(_0x53f45a,_0xbc7a86)=>_0x53f45a&&_0xbc7a86),_0x3f1115['on'](_0x2aa6('0x24'),()=>{this['fire'](_0x2aa6('0x3'),this[_0x2aa6('0x0')]['id']);}),_0x3f1115;}[_0x2aa6('0x12')](_0x5c5094){if(_0x5c5094['length']<0x96)return _0x5c5094;const _0x555064=_0x5c5094[_0x2aa6('0x19')]('\x20',0x93);return _0x5c5094[_0x2aa6('0x15')](0x0,_0x555064>-0x1?_0x555064:0x93)+'...';}['_attachContextActions'](){const _0x522d1a=this['element'][_0x2aa6('0x13')](_0x2aa6('0x6')),_0x183fdc=_0x522d1a[_0x2aa6('0x13')](_0x2aa6('0xa'));this[_0x2aa6('0x1f')](_0x522d1a,_0x2aa6('0x14'),()=>{_0x183fdc['offsetWidth']<_0x183fdc[_0x2aa6('0x2')]&&_0x522d1a[_0x2aa6('0x8')]['add'](_0x2aa6('0x1e'));}),this['listenTo'](_0x522d1a,_0x2aa6('0x22'),()=>{_0x522d1a[_0x2aa6('0x8')][_0x2aa6('0x17')]('overlay');});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x31b0=['showInput','ck-thread__user','isFocused','bind','delegate','change:showInput','userView','ck-comment__input-container','extendTemplate','createEditor','then','set','editor','editorDestroyed','focusTracker','showButtons','ck-comment__input-container--active','editorReady','setTemplate','destroy','commentInputView','div','bindTemplate','ck-thread__input'];(function(_0x450bd4,_0x31b0b8){var _0xdb9707=function(_0x40cc23){while(--_0x40cc23){_0x450bd4['push'](_0x450bd4['shift']());}};_0xdb9707(++_0x31b0b8);}(_0x31b0,0x186));var _0xdb97=function(_0x450bd4,_0x31b0b8){_0x450bd4=_0x450bd4-0x0;var _0xdb9707=_0x31b0[_0x450bd4];return _0xdb9707;};import{View as _0x322439}from'ckeditor5/src/ui.js';import _0x208286 from'./commentinputview.js';import{UserView as _0x120987}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x322439{constructor(_0x43b436,_0x427ea0,_0x55be84){super(_0x43b436),this[_0xdb97('0xe')]=new _0x208286(_0x43b436,_0x55be84),this[_0xdb97('0xe')][_0xdb97('0x15')](_0xdb97('0x9'))['to'](this[_0xdb97('0xe')][_0xdb97('0x8')],_0xdb97('0x14'),this[_0xdb97('0xe')],'value',(_0x4770e5,_0x32b23b)=>_0x4770e5||!!_0x32b23b),this[_0xdb97('0x5')]('showInput',!0x1),this['on'](_0xdb97('0x17'),()=>{this[_0xdb97('0x12')]&&!this['commentInputView'][_0xdb97('0x6')]&&this[_0xdb97('0xe')][_0xdb97('0x3')]();}),this[_0xdb97('0xe')]['delegate'](_0xdb97('0xb'))['to'](this),this[_0xdb97('0xe')][_0xdb97('0x16')](_0xdb97('0x7'))['to'](this),this[_0xdb97('0x0')]=new _0x120987(_0x43b436,_0x427ea0),this['userView']['extendTemplate']({'attributes':{'class':_0xdb97('0x13')}}),this[_0xdb97('0xe')][_0xdb97('0x2')]({'attributes':{'class':_0xdb97('0x11')}}),this[_0xdb97('0xc')]({'tag':_0xdb97('0xf'),'attributes':{'class':[_0xdb97('0x1'),this[_0xdb97('0x10')]['if'](_0xdb97('0x12'),_0xdb97('0xa'))]},'children':[this[_0xdb97('0x0')],this[_0xdb97('0xe')]]});}[_0xdb97('0xd')](){return this[_0xdb97('0xe')][_0xdb97('0xd')]()[_0xdb97('0x4')](()=>super[_0xdb97('0xd')]());}}
23
+ var _0x5939=['then','setTemplate','ck-comment__input-container','editorReady','ck-thread__input','showInput','commentInputView','bind','userView','editor','extendTemplate','bindTemplate','change:showInput','focusTracker','delegate','destroy','ck-thread__user','set','createEditor','ck-comment__input-container--active','editorDestroyed'];(function(_0x3ae90d,_0x593983){var _0x45fc08=function(_0xd992d0){while(--_0xd992d0){_0x3ae90d['push'](_0x3ae90d['shift']());}};_0x45fc08(++_0x593983);}(_0x5939,0x15b));var _0x45fc=function(_0x3ae90d,_0x593983){_0x3ae90d=_0x3ae90d-0x0;var _0x45fc08=_0x5939[_0x3ae90d];return _0x45fc08;};import{View as _0x9031b5}from'ckeditor5/src/ui.js';import _0x745649 from'./commentinputview.js';import{UserView as _0x2c2ffc}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x9031b5{constructor(_0x39b709,_0x1e0bce,_0xcfb524){super(_0x39b709),this[_0x45fc('0x10')]=new _0x745649(_0x39b709,_0xcfb524),this[_0x45fc('0x10')][_0x45fc('0x11')]('showButtons')['to'](this[_0x45fc('0x10')][_0x45fc('0x2')],'isFocused',this[_0x45fc('0x10')],'value',(_0x21017f,_0x2d3a1e)=>_0x21017f||!!_0x2d3a1e),this[_0x45fc('0x6')](_0x45fc('0xf'),!0x1),this['on'](_0x45fc('0x1'),()=>{this[_0x45fc('0xf')]&&!this['commentInputView'][_0x45fc('0x13')]&&this[_0x45fc('0x10')][_0x45fc('0x7')]();}),this[_0x45fc('0x10')][_0x45fc('0x3')](_0x45fc('0xd'))['to'](this),this['commentInputView'][_0x45fc('0x3')](_0x45fc('0x9'))['to'](this),this[_0x45fc('0x12')]=new _0x2c2ffc(_0x39b709,_0x1e0bce),this[_0x45fc('0x12')][_0x45fc('0x14')]({'attributes':{'class':_0x45fc('0x5')}}),this[_0x45fc('0x10')]['extendTemplate']({'attributes':{'class':_0x45fc('0xe')}}),this[_0x45fc('0xb')]({'tag':'div','attributes':{'class':[_0x45fc('0xc'),this[_0x45fc('0x0')]['if'](_0x45fc('0xf'),_0x45fc('0x8'))]},'children':[this[_0x45fc('0x12')],this[_0x45fc('0x10')]]});}[_0x45fc('0x4')](){return this[_0x45fc('0x10')][_0x45fc('0x4')]()[_0x45fc('0xa')](()=>super['destroy']());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x137f=['locale','set','actionBar','_bindFirstCommentView','remove','length','setTemplate','isVisible','bind','tooltip','element','ck-reset_all-excluded','.ck-thread__container','isUnlinked','ck-thread__container','actionIndicator','high','removeCommentThread','commentThreadInputView','_model','change:isReadOnly','div','showConfirm','isActive','listenTo','execute','removeButton','isResolved','commentThreadHeaderView','extendTemplate','_boundFirstCommentView','render','icon','addMany','resolveButton','ck-thread--remove-confirmation','add','get','isReadOnly','change:isActive','ck-thread--','isEnabled','commentViews','querySelector','getTemplate','change:archivedAt','placeholder','resolveCommentThread','commentsListView','_cancelAllConfirms','cancelConfirm','ck-thread--unlinked','label','isConfirm','commentThreadChildren','ck-thread--active','fire','_createResolveButton','containerElement','createCollection','Resolve','bindTemplate','check'];(function(_0x26565f,_0x137fd3){const _0xe29800=function(_0x33c268){while(--_0x33c268){_0x26565f['push'](_0x26565f['shift']());}};_0xe29800(++_0x137fd3);}(_0x137f,0x105));const _0xe298=function(_0x26565f,_0x137fd3){_0x26565f=_0x26565f-0x0;let _0xe29800=_0x137f[_0x26565f];return _0xe29800;};import{ConfirmMixin as _0x3a74b6}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x24fa8f}from'ckeditor5/src/ui.js';import{icons as _0x174514}from'ckeditor5/src/core.js';import _0x337d3b from'./basecommentthreadview.js';import{getTranslation as _0x4a2629}from'../../../utils/common-translations.js';export default class ft extends _0x3a74b6(_0x337d3b){constructor(_0x427707,_0x22aeb0,_0x341330,_0x351463){super(_0x427707,_0x22aeb0,_0x341330,_0x351463),this['commentThreadChildren']=this[_0xe298('0x32')](),this[_0xe298('0x2d')][_0xe298('0x18')]([this[_0xe298('0x27')],this[_0xe298('0x9')]]),this[_0xe298('0xa')]['archivedAt']&&this[_0xe298('0x2d')][_0xe298('0x1b')](this[_0xe298('0x13')],0x0),this[_0xe298('0xa')]['on'](_0xe298('0x24'),(_0xfca9c4,_0x578b7c,_0x37d099)=>{_0x37d099?this[_0xe298('0x2d')]['has'](this['commentThreadHeaderView'])||this[_0xe298('0x2d')]['add'](this[_0xe298('0x13')],0x0):this[_0xe298('0x2d')][_0xe298('0x3a')](this[_0xe298('0x13')]);}),this[_0xe298('0x37')](_0xe298('0x6'),null),this[_0xe298('0x31')]=null,this[_0xe298('0x15')]=null,this['locale']=_0x427707,this['resolveButton']=this[_0xe298('0x30')](),this[_0xe298('0x3c')](this[_0xe298('0x23')]()),this['on'](_0xe298('0x1e'),(_0x3eec1c,_0x426968,_0x3cd7a5)=>{_0x3cd7a5||this[_0xe298('0x28')]();}),this[_0xe298('0xf')](this['_model'],_0xe298('0xb'),(_0x5850a7,_0x59a8d3,_0x53d4d7)=>{_0x53d4d7&&this['_cancelAllConfirms']();}),this[_0xe298('0x3b')]>0x0&&this[_0xe298('0x39')](),this['listenTo'](this[_0xe298('0x27')]['commentViews'],_0xe298('0x1b'),()=>{this['_bindFirstCommentView']();});}[_0xe298('0x23')](){const _0x48695e=this[_0xe298('0x34')];return{'tag':_0xe298('0xc'),'attributes':{'class':['ck-thread',_0xe298('0x2'),_0x48695e['if'](_0xe298('0xe'),_0xe298('0x2e')),_0x48695e['if'](_0xe298('0x4'),_0xe298('0x2a')),_0x48695e['if'](_0xe298('0x2c'),_0xe298('0x1a')),_0x48695e['to'](_0xe298('0x6'),_0xd21011=>_0xd21011?_0xe298('0x1f')+_0xd21011:'')],'data-thread-id':this[_0xe298('0xa')]['id'],'tabindex':-0x1},'children':[{'tag':_0xe298('0xc'),'attributes':{'class':_0xe298('0x5')},'children':this[_0xe298('0x2d')]}]};}[_0xe298('0x16')](){super['render'](),this[_0xe298('0x31')]=this[_0xe298('0x1')][_0xe298('0x22')](_0xe298('0x3'));}[_0xe298('0x28')](){this[_0xe298('0x29')]();for(const _0xf4e0b4 of this[_0xe298('0x27')][_0xe298('0x21')])_0xf4e0b4[_0xe298('0x29')]();}[_0xe298('0x39')](){const {locale:_0x3b36b8}=this,_0xd19ce=this[_0xe298('0x27')]['commentViews'][_0xe298('0x1c')](0x0);_0xd19ce===this['_boundFirstCommentView']||_0xd19ce['isSystemComment']||(this[_0xe298('0x15')]=_0xd19ce,this['unbind']('actionIndicator'),this[_0xe298('0x3e')](_0xe298('0x6'))['to'](_0xd19ce,_0xe298('0x6'),_0xd2441=>_0xe298('0x3a')===_0xd2441?_0xe298('0x3a'):null),_0xd19ce[_0xe298('0x25')]=_0x4a2629(_0x3b36b8,'Write\x20a\x20comment...'),_0xd19ce[_0xe298('0x11')]['on'](_0xe298('0x10'),_0x4354b6=>{_0x4354b6['stop'](),this[_0xe298('0xd')](_0x4a2629(_0x3b36b8,'Delete\x20comment\x20thread?'),this[_0xe298('0x31')])['then'](()=>{this['fire'](_0xe298('0x8'));});},{'priority':_0xe298('0x7')}),_0xd19ce[_0xe298('0x38')]['add'](this[_0xe298('0x19')],0x0));}[_0xe298('0x30')](){const _0x2f66d0=new _0x24fa8f(this['locale']);return _0x2f66d0[_0xe298('0x2b')]=_0x4a2629(this[_0xe298('0x36')],_0xe298('0x33')),_0x2f66d0[_0xe298('0x0')]=_0x4a2629(this[_0xe298('0x36')],_0xe298('0x33')),_0x2f66d0[_0xe298('0x17')]=_0x174514[_0xe298('0x35')],_0x2f66d0[_0xe298('0x14')]({'attributes':{'class':'ck-comment--resolve'}}),_0x2f66d0[_0xe298('0x3e')](_0xe298('0x20'))['to'](this[_0xe298('0xa')],_0xe298('0x1d'),_0x14bc2d=>!_0x14bc2d),_0x2f66d0[_0xe298('0x3e')](_0xe298('0x3d'))['to'](this[_0xe298('0xa')],'isResolvable',this[_0xe298('0xa')],_0xe298('0x12'),(_0xf10b00,_0x3d5752)=>_0xf10b00&&!_0x3d5752),_0x2f66d0['on'](_0xe298('0x10'),()=>{this[_0xe298('0x2f')](_0xe298('0x26'),this[_0xe298('0xa')]['id']);}),_0x2f66d0;}}
23
+ const _0x554a=['ck-thread--unlinked','Delete\x20comment\x20thread?','high','containerElement','isSystemComment','check','actionIndicator','commentThreadInputView','getTemplate','add','commentsListView','ck-thread--','remove','querySelector','fire','resolveButton','.ck-thread__container','ck-thread__container','_model','isActive','then','isResolvable','change:isActive','_boundFirstCommentView','render','extendTemplate','isVisible','commentViews','div','element','label','showConfirm','icon','isEnabled','set','cancelConfirm','ck-thread--remove-confirmation','bindTemplate','Write\x20a\x20comment...','commentThreadChildren','locale','createCollection','isReadOnly','addMany','change:isReadOnly','has','_bindFirstCommentView','get','_createResolveButton','actionBar','isConfirm','change:archivedAt','_cancelAllConfirms','execute','ck-thread','isResolved','Resolve','ck-comment--resolve','removeCommentThread','bind','commentThreadHeaderView'];(function(_0x463119,_0x554ad2){const _0x3ed666=function(_0x450dd8){while(--_0x450dd8){_0x463119['push'](_0x463119['shift']());}};_0x3ed666(++_0x554ad2);}(_0x554a,0x18b));const _0x3ed6=function(_0x463119,_0x554ad2){_0x463119=_0x463119-0x0;let _0x3ed666=_0x554a[_0x463119];return _0x3ed666;};import{ConfirmMixin as _0x3177fb}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x58b2bb}from'ckeditor5/src/ui.js';import{icons as _0x2377a}from'ckeditor5/src/core.js';import _0x50fcfa from'./basecommentthreadview.js';import{getTranslation as _0x1de9d5}from'../../../utils/common-translations.js';export default class ft extends _0x3177fb(_0x50fcfa){constructor(_0x52c589,_0x13d3ae,_0x5ad519,_0x55bb3d){super(_0x52c589,_0x13d3ae,_0x5ad519,_0x55bb3d),this[_0x3ed6('0xa')]=this[_0x3ed6('0xc')](),this['commentThreadChildren'][_0x3ed6('0xe')]([this['commentsListView'],this[_0x3ed6('0x27')]]),this[_0x3ed6('0x32')]['archivedAt']&&this[_0x3ed6('0xa')][_0x3ed6('0x29')](this[_0x3ed6('0x1f')],0x0),this['_model']['on'](_0x3ed6('0x16'),(_0x4fca9e,_0x439bbc,_0x129604)=>{_0x129604?this['commentThreadChildren'][_0x3ed6('0x10')](this[_0x3ed6('0x1f')])||this[_0x3ed6('0xa')][_0x3ed6('0x29')](this[_0x3ed6('0x1f')],0x0):this['commentThreadChildren']['remove'](this['commentThreadHeaderView']);}),this[_0x3ed6('0x5')](_0x3ed6('0x26'),null),this[_0x3ed6('0x23')]=null,this[_0x3ed6('0x37')]=null,this[_0x3ed6('0xb')]=_0x52c589,this[_0x3ed6('0x2f')]=this[_0x3ed6('0x13')](),this['setTemplate'](this[_0x3ed6('0x28')]()),this['on'](_0x3ed6('0x36'),(_0x3ea3e6,_0x1f1e25,_0x13d32b)=>{_0x13d32b||this['_cancelAllConfirms']();}),this['listenTo'](this[_0x3ed6('0x32')],_0x3ed6('0xf'),(_0x2063c1,_0x4a7f9e,_0x1d901c)=>{_0x1d901c&&this['_cancelAllConfirms']();}),this['length']>0x0&&this[_0x3ed6('0x11')](),this['listenTo'](this[_0x3ed6('0x2a')][_0x3ed6('0x3b')],'add',()=>{this[_0x3ed6('0x11')]();});}[_0x3ed6('0x28')](){const _0x15b2de=this[_0x3ed6('0x8')];return{'tag':_0x3ed6('0x3c'),'attributes':{'class':[_0x3ed6('0x19'),'ck-reset_all-excluded',_0x15b2de['if'](_0x3ed6('0x33'),'ck-thread--active'),_0x15b2de['if']('isUnlinked',_0x3ed6('0x20')),_0x15b2de['if'](_0x3ed6('0x15'),_0x3ed6('0x7')),_0x15b2de['to'](_0x3ed6('0x26'),_0x3c433b=>_0x3c433b?_0x3ed6('0x2b')+_0x3c433b:'')],'data-thread-id':this[_0x3ed6('0x32')]['id'],'tabindex':-0x1},'children':[{'tag':_0x3ed6('0x3c'),'attributes':{'class':_0x3ed6('0x31')},'children':this[_0x3ed6('0xa')]}]};}[_0x3ed6('0x38')](){super[_0x3ed6('0x38')](),this[_0x3ed6('0x23')]=this[_0x3ed6('0x0')][_0x3ed6('0x2d')](_0x3ed6('0x30'));}[_0x3ed6('0x17')](){this[_0x3ed6('0x6')]();for(const _0x53fff2 of this[_0x3ed6('0x2a')]['commentViews'])_0x53fff2['cancelConfirm']();}[_0x3ed6('0x11')](){const {locale:_0xbc1926}=this,_0x4c9de7=this[_0x3ed6('0x2a')][_0x3ed6('0x3b')][_0x3ed6('0x12')](0x0);_0x4c9de7===this['_boundFirstCommentView']||_0x4c9de7[_0x3ed6('0x24')]||(this[_0x3ed6('0x37')]=_0x4c9de7,this['unbind'](_0x3ed6('0x26')),this[_0x3ed6('0x1e')]('actionIndicator')['to'](_0x4c9de7,'actionIndicator',_0xba929b=>_0x3ed6('0x2c')===_0xba929b?_0x3ed6('0x2c'):null),_0x4c9de7['placeholder']=_0x1de9d5(_0xbc1926,_0x3ed6('0x9')),_0x4c9de7['removeButton']['on'](_0x3ed6('0x18'),_0x4f5b32=>{_0x4f5b32['stop'](),this[_0x3ed6('0x2')](_0x1de9d5(_0xbc1926,_0x3ed6('0x21')),this[_0x3ed6('0x23')])[_0x3ed6('0x34')](()=>{this[_0x3ed6('0x2e')](_0x3ed6('0x1d'));});},{'priority':_0x3ed6('0x22')}),_0x4c9de7[_0x3ed6('0x14')][_0x3ed6('0x29')](this[_0x3ed6('0x2f')],0x0));}['_createResolveButton'](){const _0x34f046=new _0x58b2bb(this[_0x3ed6('0xb')]);return _0x34f046[_0x3ed6('0x1')]=_0x1de9d5(this['locale'],'Resolve'),_0x34f046['tooltip']=_0x1de9d5(this[_0x3ed6('0xb')],_0x3ed6('0x1b')),_0x34f046[_0x3ed6('0x3')]=_0x2377a[_0x3ed6('0x25')],_0x34f046[_0x3ed6('0x39')]({'attributes':{'class':_0x3ed6('0x1c')}}),_0x34f046[_0x3ed6('0x1e')](_0x3ed6('0x4'))['to'](this['_model'],_0x3ed6('0xd'),_0x3d7f9d=>!_0x3d7f9d),_0x34f046['bind'](_0x3ed6('0x3a'))['to'](this[_0x3ed6('0x32')],_0x3ed6('0x35'),this['_model'],_0x3ed6('0x1a'),(_0x18c645,_0x47342b)=>_0x18c645&&!_0x47342b),_0x34f046['on']('execute',()=>{this[_0x3ed6('0x2e')]('resolveCommentThread',this[_0x3ed6('0x32')]['id']);}),_0x34f046;}}