@ckeditor/ckeditor5-comments 0.0.0-nightly-20240131.0 → 0.0.0-nightly-20240202.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 (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5763=['_handleImportedData','forEach','importWord','basic','listenTo','collaboration.channelId','config','get','plugins','high','define','dataInsert','afterInit','editor','execute'];(function(_0x2da2e2,_0x5763a3){const _0x2612d4=function(_0x301020){while(--_0x301020){_0x2da2e2['push'](_0x2da2e2['shift']());}};_0x2612d4(++_0x5763a3);}(_0x5763,0x123));const _0x2612=function(_0x2da2e2,_0x5763a3){_0x2da2e2=_0x2da2e2-0x0;let _0x2612d4=_0x5763[_0x2da2e2];return _0x2612d4;};import{Plugin as _0x14705b}from'ckeditor5/src/core.js';import{priorities as _0x568490}from'ckeditor5/src/utils.js';import{Users as _0x51b28a}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x557773 from'../commentsrepository.js';export default class Z extends _0x14705b{constructor(_0x474e8a){super(_0x474e8a),this[_0x2612('0x7')]['config'][_0x2612('0x4')]('importWord.formatting.comments',_0x2612('0xc'));}[_0x2612('0x6')](){const _0x3f1b1e=this['editor'],_0x393dde=_0x3f1b1e['commands'][_0x2612('0x1')](_0x2612('0xb')),_0x2ea192=_0x3f1b1e['plugins'][_0x2612('0x1')](_0x51b28a);_0x393dde&&(_0x393dde['on'](_0x2612('0x8'),(_0x4eaf1e,[,_0x31f29d])=>{_0x31f29d['collaboration_features']={'comments':!0x0,'user_id':_0x2ea192['me']['id']};},{'priority':_0x568490[_0x2612('0x3')]+0xa}),this[_0x2612('0xd')](_0x393dde,_0x2612('0x5'),this[_0x2612('0x9')]));}[_0x2612('0x9')](_0x433b6a,_0x4627d0){const {comment_threads:_0x45d576}=_0x4627d0;_0x45d576&&_0x45d576[_0x2612('0xa')](({thread_id:_0x2d75d1,comments:_0x52d6e8,is_resolved:_0x26dc5e})=>{const _0x26c2d9=new Date(),_0xe757f5=_0x52d6e8['map'](({author:_0x571fca,content:_0x549574,created_at:_0x39b07c})=>({'content':_0x549574,'authorId':this['editor'][_0x2612('0x2')][_0x2612('0x1')](_0x51b28a)['me']['id'],'createdAt':_0x26c2d9,'attributes':{'@external':{'authorName':_0x571fca,'createdAt':_0x39b07c?new Date(_0x39b07c):new Date(),'source':'importWord'}}})),_0x5df57e=this[_0x2612('0x7')][_0x2612('0x0')][_0x2612('0x1')](_0x2612('0xe'));this[_0x2612('0x7')][_0x2612('0x2')][_0x2612('0x1')](_0x557773)['addCommentThread']({'channelId':_0x5df57e,'threadId':_0x2d75d1,'comments':_0xe757f5,'resolvedAt':_0x26dc5e?_0x26c2d9:null});});}}
23
+ const _0x5c33=['collaboration_features','high','map','editor','basic','importWord.formatting.comments','plugins','listenTo','config','collaboration.channelId','execute','dataInsert','afterInit','get','forEach','addCommentThread'];(function(_0x27316a,_0x5c3365){const _0x16c178=function(_0x111a11){while(--_0x111a11){_0x27316a['push'](_0x27316a['shift']());}};_0x16c178(++_0x5c3365);}(_0x5c33,0x108));const _0x16c1=function(_0x27316a,_0x5c3365){_0x27316a=_0x27316a-0x0;let _0x16c178=_0x5c33[_0x27316a];return _0x16c178;};import{Plugin as _0x2997a0}from'ckeditor5/src/core.js';import{priorities as _0x8e6991}from'ckeditor5/src/utils.js';import{Users as _0x3ef8e1}from'ckeditor5-collaboration/src/collaboration-core.js';import _0xe4796a from'../commentsrepository.js';export default class Z extends _0x2997a0{constructor(_0x44a539){super(_0x44a539),this[_0x16c1('0xb')][_0x16c1('0x0')]['define'](_0x16c1('0xd'),_0x16c1('0xc'));}[_0x16c1('0x4')](){const _0x774a24=this[_0x16c1('0xb')],_0x3d4823=_0x774a24['commands']['get']('importWord'),_0x1c3b1f=_0x774a24[_0x16c1('0xe')][_0x16c1('0x5')](_0x3ef8e1);_0x3d4823&&(_0x3d4823['on'](_0x16c1('0x2'),(_0x2d3950,[,_0x2310c4])=>{_0x2310c4[_0x16c1('0x8')]={'comments':!0x0,'user_id':_0x1c3b1f['me']['id']};},{'priority':_0x8e6991[_0x16c1('0x9')]+0xa}),this[_0x16c1('0xf')](_0x3d4823,_0x16c1('0x3'),this['_handleImportedData']));}['_handleImportedData'](_0x118e76,_0x180435){const {comment_threads:_0x63932c}=_0x180435;_0x63932c&&_0x63932c[_0x16c1('0x6')](({thread_id:_0x5a2146,comments:_0x57a608,is_resolved:_0x2138af})=>{const _0xc0eac9=new Date(),_0x376cfc=_0x57a608[_0x16c1('0xa')](({author:_0x112b96,content:_0x484445,created_at:_0x37e5d5})=>({'content':_0x484445,'authorId':this[_0x16c1('0xb')][_0x16c1('0xe')][_0x16c1('0x5')](_0x3ef8e1)['me']['id'],'createdAt':_0xc0eac9,'attributes':{'@external':{'authorName':_0x112b96,'createdAt':_0x37e5d5?new Date(_0x37e5d5):new Date(),'source':'importWord'}}})),_0x527446=this[_0x16c1('0xb')]['config'][_0x16c1('0x5')](_0x16c1('0x1'));this[_0x16c1('0xb')]['plugins'][_0x16c1('0x5')](_0xe4796a)[_0x16c1('0x7')]({'channelId':_0x527446,'threadId':_0x5a2146,'comments':_0x376cfc,'resolvedAt':_0x2138af?_0xc0eac9:null});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1137=['change','placeholder','_updatePlaceholder','fire','low','data','init','editing','view','getRoot','model','document','defaultPlugins','ready','destroy','end','focus','change:placeholder','placeholderElement','getChild','create','assign','initPlugins','childCount','then','plugins','config'];(function(_0xff466b,_0x11376d){const _0x601120=function(_0x480d0f){while(--_0x480d0f){_0xff466b['push'](_0xff466b['shift']());}};_0x601120(++_0x11376d);}(_0x1137,0xa7));const _0x6011=function(_0xff466b,_0x11376d){_0xff466b=_0xff466b-0x0;let _0x601120=_0x1137[_0xff466b];return _0x601120;};import{Editor as _0x306b4b,DataApiMixin as _0x337800}from'ckeditor5/src/core.js';import _0x4a1d18 from'./commenteditorui.js';import{ObservableMixin as _0x34caa0}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x565109,disablePlaceholder as _0x5782ea}from'ckeditor5/src/engine.js';import{Clipboard as _0x45164b}from'ckeditor5/src/clipboard.js';import{Enter as _0x127af2,ShiftEnter as _0x4dd0dd}from'ckeditor5/src/enter.js';import{SelectAll as _0xef9046}from'ckeditor5/src/select-all.js';import{Typing as _0x5ede89}from'ckeditor5/src/typing.js';import{Undo as _0x307883}from'ckeditor5/src/undo.js';import{Paragraph as _0x28c1b7}from'ckeditor5/src/paragraph.js';const Mt=[_0x45164b,_0x127af2,_0x4dd0dd,_0xef9046,_0x5ede89,_0x307883,_0x28c1b7];class Nt extends _0x34caa0(_0x337800(_0x306b4b)){constructor(_0x541b12={}){(_0x541b12=Object[_0x6011('0x10')]({},_0x541b12))['plugins']||(_0x541b12[_0x6011('0x14')]=Nt['defaultPlugins']),super(_0x541b12),this['ui']=new _0x4a1d18(this),this['set']('placeholder',''),this[_0x6011('0x5')][_0x6011('0x6')]['on'](_0x6011('0x16'),()=>this[_0x6011('0x18')](),{'priority':_0x6011('0x1a')}),this['on'](_0x6011('0xc'),()=>this['_updatePlaceholder']()),this[_0x6011('0x5')][_0x6011('0x6')]['createRoot']();}[_0x6011('0xf')](){const _0x501cc1=this[_0x6011('0x15')]['get']('initialData')||'';return this[_0x6011('0x11')]()[_0x6011('0x13')](()=>this['ui']['init']())[_0x6011('0x13')](()=>this[_0x6011('0x0')][_0x6011('0x1')](_0x501cc1))['then'](()=>this[_0x6011('0x19')](_0x6011('0x8')));}['destroy'](){return super[_0x6011('0x9')]()[_0x6011('0x13')](()=>this['ui']['destroy']());}[_0x6011('0xb')](){this[_0x6011('0x5')][_0x6011('0x16')](_0x3a4523=>{const _0x1265e9=this['model'][_0x6011('0x6')][_0x6011('0x4')](),_0x15197a=_0x1265e9&&_0x1265e9[_0x6011('0xe')](_0x1265e9[_0x6011('0x12')]-0x1);_0x3a4523['setSelection'](_0x15197a,_0x6011('0xa')),this[_0x6011('0x2')][_0x6011('0x3')]['focus']();});}['_updatePlaceholder'](){const _0x140443=this['editing'][_0x6011('0x3')],_0x54aec3=_0x140443[_0x6011('0x6')][_0x6011('0x4')](),_0x18ae02=_0x54aec3['getChild'](0x0);_0x54aec3['childCount']>0x1||!_0x18ae02||'p'!=_0x18ae02['name']?this['placeholderElement']&&this[_0x6011('0xd')]['placeholder']&&(_0x5782ea(_0x140443,this[_0x6011('0xd')]),this[_0x6011('0xd')]=void 0x0):(this[_0x6011('0x17')]&&(_0x18ae02[_0x6011('0x17')]=this['placeholder']),_0x565109({'view':_0x140443,'element':_0x18ae02,'keepOnFocus':!0x0}),this[_0x6011('0xd')]=_0x18ae02);}}Nt[_0x6011('0x7')]=Mt;export default Nt;
23
+ const _0x395b=['model','document','end','change','change:placeholder','set','placeholder','init','destroy','placeholderElement','view','_updatePlaceholder','getRoot','getChild','data','low','initPlugins','create','editing','setSelection','createRoot','focus','then','get','name','defaultPlugins','childCount'];(function(_0x329030,_0x395b83){const _0x2ba0fe=function(_0x443a04){while(--_0x443a04){_0x329030['push'](_0x329030['shift']());}};_0x2ba0fe(++_0x395b83);}(_0x395b,0x138));const _0x2ba0=function(_0x329030,_0x395b83){_0x329030=_0x329030-0x0;let _0x2ba0fe=_0x395b[_0x329030];return _0x2ba0fe;};import{Editor as _0x380658,DataApiMixin as _0x40e1b1}from'ckeditor5/src/core.js';import _0x375e94 from'./commenteditorui.js';import{ObservableMixin as _0x36d38d}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x1c7bc3,disablePlaceholder as _0x1818b7}from'ckeditor5/src/engine.js';import{Clipboard as _0x25703a}from'ckeditor5/src/clipboard.js';import{Enter as _0x175388,ShiftEnter as _0x152ee9}from'ckeditor5/src/enter.js';import{SelectAll as _0x1b9cc2}from'ckeditor5/src/select-all.js';import{Typing as _0x11715e}from'ckeditor5/src/typing.js';import{Undo as _0x154411}from'ckeditor5/src/undo.js';import{Paragraph as _0x782062}from'ckeditor5/src/paragraph.js';const Mt=[_0x25703a,_0x175388,_0x152ee9,_0x1b9cc2,_0x11715e,_0x154411,_0x782062];class Nt extends _0x36d38d(_0x40e1b1(_0x380658)){constructor(_0x124efa={}){(_0x124efa=Object['assign']({},_0x124efa))['plugins']||(_0x124efa['plugins']=Nt[_0x2ba0('0xa')]),super(_0x124efa),this['ui']=new _0x375e94(this),this[_0x2ba0('0x11')](_0x2ba0('0x12'),''),this[_0x2ba0('0xc')][_0x2ba0('0xd')]['on'](_0x2ba0('0xf'),()=>this[_0x2ba0('0x17')](),{'priority':_0x2ba0('0x0')}),this['on'](_0x2ba0('0x10'),()=>this['_updatePlaceholder']()),this[_0x2ba0('0xc')][_0x2ba0('0xd')][_0x2ba0('0x5')]();}[_0x2ba0('0x2')](){const _0x31465b=this['config'][_0x2ba0('0x8')]('initialData')||'';return this[_0x2ba0('0x1')]()[_0x2ba0('0x7')](()=>this['ui'][_0x2ba0('0x13')]())[_0x2ba0('0x7')](()=>this[_0x2ba0('0x1a')][_0x2ba0('0x13')](_0x31465b))[_0x2ba0('0x7')](()=>this['fire']('ready'));}[_0x2ba0('0x14')](){return super[_0x2ba0('0x14')]()[_0x2ba0('0x7')](()=>this['ui'][_0x2ba0('0x14')]());}[_0x2ba0('0x6')](){this[_0x2ba0('0xc')][_0x2ba0('0xf')](_0x1daa87=>{const _0x4c7ae2=this[_0x2ba0('0xc')]['document'][_0x2ba0('0x18')](),_0x1b00e7=_0x4c7ae2&&_0x4c7ae2['getChild'](_0x4c7ae2[_0x2ba0('0xb')]-0x1);_0x1daa87[_0x2ba0('0x4')](_0x1b00e7,_0x2ba0('0xe')),this[_0x2ba0('0x3')][_0x2ba0('0x16')][_0x2ba0('0x6')]();});}['_updatePlaceholder'](){const _0x24bd67=this['editing']['view'],_0x164b5c=_0x24bd67[_0x2ba0('0xd')][_0x2ba0('0x18')](),_0x37f3f9=_0x164b5c[_0x2ba0('0x19')](0x0);_0x164b5c[_0x2ba0('0xb')]>0x1||!_0x37f3f9||'p'!=_0x37f3f9[_0x2ba0('0x9')]?this[_0x2ba0('0x15')]&&this['placeholderElement'][_0x2ba0('0x12')]&&(_0x1818b7(_0x24bd67,this[_0x2ba0('0x15')]),this[_0x2ba0('0x15')]=void 0x0):(this[_0x2ba0('0x12')]&&(_0x37f3f9['placeholder']=this[_0x2ba0('0x12')]),_0x1c7bc3({'view':_0x24bd67,'element':_0x37f3f9,'keepOnFocus':!0x0}),this['placeholderElement']=_0x37f3f9);}}Nt[_0x2ba0('0xa')]=Mt;export default Nt;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56b1=['getRoot','document','bind','focusTracker','locale','name','destroy','editable','editor','view','init','render','editing','ready','element','rootName','attachDomRoot'];(function(_0x148aa1,_0x56b1a0){const _0x1d1ee1=function(_0x5aab4e){while(--_0x5aab4e){_0x148aa1['push'](_0x148aa1['shift']());}};_0x1d1ee1(++_0x56b1a0);}(_0x56b1,0xba));const _0x1d1e=function(_0x148aa1,_0x56b1a0){_0x148aa1=_0x148aa1-0x0;let _0x1d1ee1=_0x56b1[_0x148aa1];return _0x1d1ee1;};import{EditorUI as _0x47b3e3}from'ckeditor5/src/ui.js';import _0x2aff2d from'./commenteditoruiview.js';export default class Ft extends _0x47b3e3{constructor(_0x35ffd2){super(_0x35ffd2),this[_0x1d1e('0xa')]=new _0x2aff2d(_0x35ffd2[_0x1d1e('0x5')],_0x35ffd2[_0x1d1e('0xd')][_0x1d1e('0xa')]);}get[_0x1d1e('0xf')](){return this[_0x1d1e('0xa')][_0x1d1e('0xf')];}[_0x1d1e('0xb')](){const _0x1bf384=this[_0x1d1e('0x9')][_0x1d1e('0xd')]['view'],_0x1aa16a=this['view'][_0x1d1e('0x8')],_0x16e88a=_0x1bf384[_0x1d1e('0x2')][_0x1d1e('0x1')]();_0x1aa16a[_0x1d1e('0x6')]=_0x16e88a[_0x1d1e('0x10')],this['view'][_0x1d1e('0xc')]();const _0x20d2b3=_0x1aa16a[_0x1d1e('0xf')];this['setEditableElement'](_0x1aa16a[_0x1d1e('0x6')],_0x20d2b3),this['view']['editable'][_0x1d1e('0x3')]('isFocused')['to'](this[_0x1d1e('0x4')]),_0x1bf384[_0x1d1e('0x0')](_0x20d2b3),this['fire'](_0x1d1e('0xe'));}[_0x1d1e('0x7')](){super[_0x1d1e('0x7')](),this[_0x1d1e('0xa')][_0x1d1e('0x7')]();}}
23
+ const _0x39ed=['view','destroy','init','attachDomRoot','focusTracker','bind','document','fire','element','setEditableElement','ready','editable','locale','editing','render','editor'];(function(_0x5a4274,_0x39edcf){const _0xc839e7=function(_0x341c03){while(--_0x341c03){_0x5a4274['push'](_0x5a4274['shift']());}};_0xc839e7(++_0x39edcf);}(_0x39ed,0x1df));const _0xc839=function(_0x5a4274,_0x39edcf){_0x5a4274=_0x5a4274-0x0;let _0xc839e7=_0x39ed[_0x5a4274];return _0xc839e7;};import{EditorUI as _0x53e646}from'ckeditor5/src/ui.js';import _0x14b67c from'./commenteditoruiview.js';export default class Ft extends _0x53e646{constructor(_0x2a5f47){super(_0x2a5f47),this[_0xc839('0x1')]=new _0x14b67c(_0x2a5f47[_0xc839('0xd')],_0x2a5f47[_0xc839('0xe')]['view']);}get[_0xc839('0x9')](){return this[_0xc839('0x1')]['element'];}[_0xc839('0x3')](){const _0x2b9338=this[_0xc839('0x0')][_0xc839('0xe')]['view'],_0xd91282=this[_0xc839('0x1')][_0xc839('0xc')],_0x22d384=_0x2b9338[_0xc839('0x7')]['getRoot']();_0xd91282['name']=_0x22d384['rootName'],this[_0xc839('0x1')][_0xc839('0xf')]();const _0x38aefd=_0xd91282['element'];this[_0xc839('0xa')](_0xd91282['name'],_0x38aefd),this[_0xc839('0x1')][_0xc839('0xc')][_0xc839('0x6')]('isFocused')['to'](this[_0xc839('0x5')]),_0x2b9338[_0xc839('0x4')](_0x38aefd),this[_0xc839('0x8')](_0xc839('0xb'));}[_0xc839('0x2')](){super[_0xc839('0x2')](),this[_0xc839('0x1')][_0xc839('0x2')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe84c=['focus','uiLanguage','Comment\x20editor','add','ck-comment__input','ck-voice-label','presentation','_voiceLabelView','editable','ck-editor__main','_createVoiceLabel','div','cke-editor__aria-label_','ck-rounded-corners','ck-reset','main','ck-editor__aria-label_','render','text','createCollection','extendTemplate','element'];(function(_0x412329,_0xe84c44){const _0x4f7878=function(_0x101555){while(--_0x101555){_0x412329['push'](_0x412329['shift']());}};_0x4f7878(++_0xe84c44);}(_0xe84c,0x175));const _0x4f78=function(_0x412329,_0xe84c44){_0x412329=_0x412329-0x0;let _0x4f7878=_0xe84c[_0x412329];return _0x4f7878;};import{InlineEditableUIView as _0x2c2827,EditorUIView as _0x309a97,LabelView as _0x8cbf0b}from'ckeditor5/src/ui.js';import{uid as _0x3bbb5a}from'ckeditor5/src/utils.js';import{getTranslation as _0x47c290}from'../../../utils/common-translations.js';export default class Rt extends _0x309a97{constructor(_0xa31bfb,_0x46b799){super(_0xa31bfb);const _0x49fcd2=_0x3bbb5a();this[_0x4f78('0x10')]=this[_0x4f78('0x14')](),this[_0x4f78('0x9')]=new _0x2c2827(_0xa31bfb,_0x46b799),this[_0x4f78('0x8')]=this[_0x4f78('0xb')](_0x49fcd2,_0xa31bfb),this['setTemplate']({'tag':_0x4f78('0xc'),'attributes':{'class':[_0x4f78('0xf'),'ck-editor',_0x4f78('0xe'),_0x4f78('0x5')],'role':'comment','dir':_0xa31bfb['uiLanguageDirection'],'lang':_0xa31bfb[_0x4f78('0x2')],'aria-labelledby':_0x4f78('0xd')+_0x49fcd2},'children':[this[_0x4f78('0x8')],{'tag':_0x4f78('0xc'),'attributes':{'class':_0x4f78('0xa'),'role':_0x4f78('0x7')},'children':this['main']}]});}['render'](){super[_0x4f78('0x12')](),this[_0x4f78('0x10')][_0x4f78('0x4')](this[_0x4f78('0x9')]);}['focus'](){this['editable'][_0x4f78('0x0')][_0x4f78('0x1')]();}[_0x4f78('0xb')](_0x1587ac,_0x328fc7){const _0x4edd86=new _0x8cbf0b();return _0x4edd86[_0x4f78('0x13')]=_0x47c290(_0x328fc7,_0x4f78('0x3')),_0x4edd86[_0x4f78('0x15')]({'attributes':{'id':_0x4f78('0x11')+_0x1587ac,'class':_0x4f78('0x6')}}),_0x4edd86;}}
23
+ const _0x1993=['render','Comment\x20editor','editable','_createVoiceLabel','main','ck-editor','ck-voice-label','_voiceLabelView','focus','ck-reset','extendTemplate','ck-editor__aria-label_','presentation','ck-comment__input','text','cke-editor__aria-label_','createCollection','comment','uiLanguage','div','setTemplate','ck-editor__main','uiLanguageDirection'];(function(_0x39da94,_0x199398){const _0x297d53=function(_0x4d1449){while(--_0x4d1449){_0x39da94['push'](_0x39da94['shift']());}};_0x297d53(++_0x199398);}(_0x1993,0x157));const _0x297d=function(_0x39da94,_0x199398){_0x39da94=_0x39da94-0x0;let _0x297d53=_0x1993[_0x39da94];return _0x297d53;};import{InlineEditableUIView as _0x52d145,EditorUIView as _0x4aea4b,LabelView as _0x6ca4c5}from'ckeditor5/src/ui.js';import{uid as _0x25d4b9}from'ckeditor5/src/utils.js';import{getTranslation as _0x232248}from'../../../utils/common-translations.js';export default class Rt extends _0x4aea4b{constructor(_0x34b3eb,_0x2eee3e){super(_0x34b3eb);const _0x192004=_0x25d4b9();this[_0x297d('0x6')]=this[_0x297d('0x12')](),this['editable']=new _0x52d145(_0x34b3eb,_0x2eee3e),this[_0x297d('0x9')]=this[_0x297d('0x5')](_0x192004,_0x34b3eb),this[_0x297d('0x16')]({'tag':_0x297d('0x15'),'attributes':{'class':[_0x297d('0xb'),_0x297d('0x7'),'ck-rounded-corners',_0x297d('0xf')],'role':_0x297d('0x13'),'dir':_0x34b3eb[_0x297d('0x1')],'lang':_0x34b3eb[_0x297d('0x14')],'aria-labelledby':_0x297d('0x11')+_0x192004},'children':[this['_voiceLabelView'],{'tag':_0x297d('0x15'),'attributes':{'class':_0x297d('0x0'),'role':_0x297d('0xe')},'children':this[_0x297d('0x6')]}]});}[_0x297d('0x2')](){super['render'](),this['main']['add'](this[_0x297d('0x4')]);}[_0x297d('0xa')](){this[_0x297d('0x4')]['element']['focus']();}['_createVoiceLabel'](_0x49ff9c,_0x2e449a){const _0x2ace56=new _0x6ca4c5();return _0x2ace56[_0x297d('0x10')]=_0x232248(_0x2e449a,_0x297d('0x3')),_0x2ace56[_0x297d('0xc')]({'attributes':{'id':_0x297d('0xd')+_0x49ff9c,'class':_0x297d('0x8')}}),_0x2ace56;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5f14=['isResolved','_localUser','submitCommentThread','destroy','update','_isAttached','listenTo','getComment','removeCommentThread','reopenCommentThread','submit','remove','resolve','stopListening','reopen','updateComment','addComment','view','model','removeComment'];(function(_0x337ee8,_0x5f146e){var _0x1711c5=function(_0x28708e){while(--_0x28708e){_0x337ee8['push'](_0x337ee8['shift']());}};_0x1711c5(++_0x5f146e);}(_0x5f14,0x13c));var _0x1711=function(_0x337ee8,_0x5f146e){_0x337ee8=_0x337ee8-0x0;var _0x1711c5=_0x5f14[_0x337ee8];return _0x1711c5;};import{ObservableMixin as _0x168b91}from'ckeditor5/src/utils.js';export default class ut extends _0x168b91(){constructor(_0x219e26,_0x273b27){super(),this[_0x1711('0x2')]=_0x219e26,this[_0x1711('0x2')][_0x1711('0x9')]=!0x0,this[_0x1711('0x1')]=_0x273b27,this[_0x1711('0xa')](_0x273b27,_0x1711('0x6'),()=>this[_0x1711('0xe')]()),this[_0x1711('0xa')](_0x273b27,_0x1711('0xc'),()=>this['remove']()),this[_0x1711('0xa')](_0x273b27,'resolveCommentThread',()=>this[_0x1711('0x10')]()),this[_0x1711('0xa')](_0x273b27,_0x1711('0xd'),()=>this[_0x1711('0x12')]()),this[_0x1711('0xa')](_0x273b27,_0x1711('0x0'),(_0x420f10,_0x391315)=>this[_0x1711('0x0')](_0x391315)),this['listenTo'](_0x273b27,_0x1711('0x13'),(_0x58754f,_0x47c16d,_0x5566c9)=>this['updateComment'](_0x47c16d,_0x5566c9)),this[_0x1711('0xa')](_0x273b27,'removeComment',(_0xc77ec4,_0x4d9c09)=>this[_0x1711('0x3')](_0x4d9c09));}[_0x1711('0xe')](){this['model'][_0x1711('0xe')]();}[_0x1711('0xf')](){this[_0x1711('0x2')]['remove']();}[_0x1711('0x10')](){this[_0x1711('0x2')][_0x1711('0x4')]||this[_0x1711('0x2')][_0x1711('0x10')]();}[_0x1711('0x12')](){this[_0x1711('0x2')][_0x1711('0x4')]&&this[_0x1711('0x2')][_0x1711('0x12')]();}[_0x1711('0x0')](_0x19b8cc){this[_0x1711('0x2')][_0x1711('0x0')]({'content':_0x19b8cc,'authorId':this[_0x1711('0x1')][_0x1711('0x5')]['id']});}[_0x1711('0x13')](_0x29e15b,_0x335f59){this[_0x1711('0x2')][_0x1711('0xb')](_0x29e15b)[_0x1711('0x8')]({'content':_0x335f59});}[_0x1711('0x3')](_0x2436b2){this[_0x1711('0x2')][_0x1711('0xb')](_0x2436b2)[_0x1711('0xf')]();}[_0x1711('0x7')](){this[_0x1711('0x11')](),this[_0x1711('0x2')][_0x1711('0x9')]=!0x1;}}
23
+ var _0x1024=['view','_isAttached','update','updateComment','remove','stopListening','resolve','_localUser','reopen','model','listenTo','getComment','removeComment','submitCommentThread','submit','reopenCommentThread','addComment'];(function(_0x1b41de,_0x1024cc){var _0x1dda7f=function(_0x515a2c){while(--_0x515a2c){_0x1b41de['push'](_0x1b41de['shift']());}};_0x1dda7f(++_0x1024cc);}(_0x1024,0x6b));var _0x1dda=function(_0x1b41de,_0x1024cc){_0x1b41de=_0x1b41de-0x0;var _0x1dda7f=_0x1024[_0x1b41de];return _0x1dda7f;};import{ObservableMixin as _0x161168}from'ckeditor5/src/utils.js';export default class ut extends _0x161168(){constructor(_0x234bc0,_0x50d351){super(),this[_0x1dda('0x4')]=_0x234bc0,this['model'][_0x1dda('0xd')]=!0x0,this[_0x1dda('0xc')]=_0x50d351,this['listenTo'](_0x50d351,_0x1dda('0x8'),()=>this[_0x1dda('0x9')]()),this[_0x1dda('0x5')](_0x50d351,'removeCommentThread',()=>this[_0x1dda('0x10')]()),this[_0x1dda('0x5')](_0x50d351,'resolveCommentThread',()=>this[_0x1dda('0x1')]()),this[_0x1dda('0x5')](_0x50d351,_0x1dda('0xa'),()=>this[_0x1dda('0x3')]()),this[_0x1dda('0x5')](_0x50d351,_0x1dda('0xb'),(_0x59c541,_0x2b55f8)=>this['addComment'](_0x2b55f8)),this[_0x1dda('0x5')](_0x50d351,_0x1dda('0xf'),(_0x548561,_0x5f52ed,_0x60392d)=>this[_0x1dda('0xf')](_0x5f52ed,_0x60392d)),this['listenTo'](_0x50d351,'removeComment',(_0x219ceb,_0x429957)=>this[_0x1dda('0x7')](_0x429957));}[_0x1dda('0x9')](){this[_0x1dda('0x4')][_0x1dda('0x9')]();}[_0x1dda('0x10')](){this[_0x1dda('0x4')][_0x1dda('0x10')]();}[_0x1dda('0x1')](){this[_0x1dda('0x4')]['isResolved']||this[_0x1dda('0x4')][_0x1dda('0x1')]();}[_0x1dda('0x3')](){this[_0x1dda('0x4')]['isResolved']&&this[_0x1dda('0x4')][_0x1dda('0x3')]();}[_0x1dda('0xb')](_0x3d8831){this[_0x1dda('0x4')]['addComment']({'content':_0x3d8831,'authorId':this[_0x1dda('0xc')][_0x1dda('0x2')]['id']});}[_0x1dda('0xf')](_0x4b6cc7,_0x45be00){this[_0x1dda('0x4')]['getComment'](_0x4b6cc7)[_0x1dda('0xe')]({'content':_0x45be00});}[_0x1dda('0x7')](_0x368a34){this[_0x1dda('0x4')][_0x1dda('0x6')](_0x368a34)[_0x1dda('0x10')]();}['destroy'](){this[_0x1dda('0x0')](),this[_0x1dda('0x4')][_0x1dda('0xd')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2548=['isResolvable','canComment','archivedAt','_model','resolveCommentThread','isActive','submitLabel','removeCommentThread','focus','Write\x20a\x20comment...','_config','removeComment','CommentView','disabledSubmit','_createCommentThreadInputView','set','placeholder','cancel','Reply\x20to\x20reopen\x20discussion...','isReadOnly','element','unlinkedAt','length','commentThreadHeaderView','showInput','fire','_localUser','delegate','isResolved','change:isActive','destroy','commentInputView','Comment','isUnlinked','reopenCommentThread','assign','isDirty','editorReady','value','submitCommentThread','addComment','bind','Reply...','editorDestroyed','commentThreadInputView','editorConfig','commentsListView','locale','listenTo'];(function(_0x50279d,_0x2548b2){const _0x2ca7c4=function(_0x346861){while(--_0x346861){_0x50279d['push'](_0x50279d['shift']());}};_0x2ca7c4(++_0x2548b2);}(_0x2548,0x1b5));const _0x2ca7=function(_0x50279d,_0x2548b2){_0x50279d=_0x50279d-0x0;let _0x2ca7c4=_0x2548[_0x50279d];return _0x2ca7c4;};import{View as _0x3961c9}from'ckeditor5/src/ui.js';import _0x41e948 from'./commentthreadinputview.js';import _0x3c1e3f from'./commentslistview.js';import _0x2b5398 from'./commentthreadheaderview.js';import{getTranslation as _0x3840dd}from'../../../utils/common-translations.js';export default class Ut extends _0x3961c9{constructor(_0x54fe8c,_0x21af01,_0x3e34ef,_0x460a6c){super(_0x54fe8c),this[_0x2ca7('0x13')](_0x2ca7('0x9'),!0x1),this[_0x2ca7('0x13')](_0x2ca7('0x28'),!0x1),this[_0x2ca7('0x7')]=_0x21af01,this[_0x2ca7('0x1e')]=_0x3e34ef,this[_0x2ca7('0xe')]=_0x460a6c,this[_0x2ca7('0x1b')]=new _0x2b5398(_0x54fe8c,_0x21af01),this[_0x2ca7('0x1b')][_0x2ca7('0x1f')](_0x2ca7('0x26'))['to'](this),this['listenTo'](this,_0x2ca7('0x26'),()=>{this[_0x2ca7('0xc')]();}),this[_0x2ca7('0x1')]=new _0x3c1e3f(_0x54fe8c,_0x21af01,Object[_0x2ca7('0x27')]({'CommentView':this['_config'][_0x2ca7('0x10')]},_0x460a6c)),this[_0x2ca7('0x1')][_0x2ca7('0x1f')](_0x2ca7('0xf'))['to'](this),this[_0x2ca7('0x1')][_0x2ca7('0x1f')]('updateComment')['to'](this),this[_0x2ca7('0x1')][_0x2ca7('0x1f')](_0x2ca7('0x8'))['to'](this),this[_0x2ca7('0x1')][_0x2ca7('0x1f')]('editorReady')['to'](this),this[_0x2ca7('0x1')][_0x2ca7('0x1f')](_0x2ca7('0x2f'))['to'](this),this[_0x2ca7('0x1')]['bind'](_0x2ca7('0x9'))['to'](this),this[_0x2ca7('0x3')](this,_0x2ca7('0x8'),()=>{this[_0x2ca7('0xc')]();}),this[_0x2ca7('0x13')](_0x2ca7('0x1a'),this[_0x2ca7('0x1')][_0x2ca7('0x1a')]),this[_0x2ca7('0x2d')](_0x2ca7('0x1a'))['to'](this[_0x2ca7('0x1')],_0x2ca7('0x1a')),this[_0x2ca7('0x30')]=this['_createCommentThreadInputView'](),this[_0x2ca7('0x30')][_0x2ca7('0x1f')](_0x2ca7('0x29'))['to'](this),this[_0x2ca7('0x30')]['delegate'](_0x2ca7('0x2f'))['to'](this),this['on'](_0x2ca7('0xf'),()=>this[_0x2ca7('0xc')]()),this[_0x2ca7('0x2d')](_0x2ca7('0x28'))['to'](this[_0x2ca7('0x1')],'hasDirtyComment',this[_0x2ca7('0x30')][_0x2ca7('0x23')],_0x2ca7('0x2a'),(_0x4eac33,_0x15ba44)=>_0x4eac33||!!_0x15ba44),this[_0x2ca7('0x2d')](_0x2ca7('0x25'))['to'](_0x21af01,_0x2ca7('0x19'),_0x1205b3=>!!_0x1205b3);}[_0x2ca7('0xc')](){this[_0x2ca7('0x18')][_0x2ca7('0xc')]();}async[_0x2ca7('0x22')](){this[_0x2ca7('0x28')]=!0x1,this[_0x2ca7('0x1')][_0x2ca7('0x22')](),await this[_0x2ca7('0x30')][_0x2ca7('0x22')](),super[_0x2ca7('0x22')]();}[_0x2ca7('0x12')](){const _0x117588=new _0x41e948(this[_0x2ca7('0x2')],this['_localUser'],this[_0x2ca7('0xe')][_0x2ca7('0x0')]),_0x4a5605=_0x117588[_0x2ca7('0x23')];return _0x117588['bind'](_0x2ca7('0x1c'))['to'](this,'isActive',this[_0x2ca7('0x7')],_0x2ca7('0x17'),this[_0x2ca7('0x7')],_0x2ca7('0x5'),this['_model'],_0x2ca7('0x6'),_0x4a5605,_0x2ca7('0x2a'),(_0x5d4c75,_0x9f674f,_0x3d6bc4,_0x2d1ef1,_0xa26423)=>!!_0xa26423||!!_0x2d1ef1&&_0x3d6bc4&&!_0x9f674f||_0x5d4c75&&_0x3d6bc4&&!_0x9f674f),_0x4a5605[_0x2ca7('0x2d')](_0x2ca7('0x14'))['to'](this,_0x2ca7('0x1a'),this[_0x2ca7('0x7')],_0x2ca7('0x4'),this[_0x2ca7('0x7')],_0x2ca7('0x20'),(_0x39e10a,_0x4dfa8b,_0x1171ad)=>{let _0x146985;return _0x146985=_0x1171ad&&_0x4dfa8b?_0x2ca7('0x16'):_0x39e10a?_0x2ca7('0x2e'):_0x2ca7('0xd'),_0x3840dd(this[_0x2ca7('0x2')],_0x146985);}),_0x4a5605[_0x2ca7('0x2d')](_0x2ca7('0xa'))['to'](this,'length',_0x250bb2=>_0x3840dd(this[_0x2ca7('0x2')],_0x250bb2?'Reply':_0x2ca7('0x24'))),_0x4a5605['on']('submit',(_0x5412c6,_0x54d5da)=>{this[_0x2ca7('0x1d')](_0x2ca7('0x2c'),_0x54d5da),this[_0x2ca7('0x7')][_0x2ca7('0x20')]&&this[_0x2ca7('0x7')][_0x2ca7('0x4')]&&this[_0x2ca7('0x1d')](_0x2ca7('0x26'),this[_0x2ca7('0x7')]['id']),this[_0x2ca7('0x7')]['isSubmitted']||this[_0x2ca7('0x1d')](_0x2ca7('0x2b'));}),_0x4a5605['on'](_0x2ca7('0x15'),()=>{this[_0x2ca7('0xc')]();}),_0x4a5605[_0x2ca7('0x2d')](_0x2ca7('0x11'))['to'](this[_0x2ca7('0x7')],'isReadOnly'),_0x4a5605['on']('cancel',_0x417e1d=>{0x0==this[_0x2ca7('0x1a')]&&(this[_0x2ca7('0x1d')](_0x2ca7('0xb')),_0x417e1d['stop']());}),this['on'](_0x2ca7('0x21'),(_0x2a2cf,_0x5c20d4,_0x56e82d)=>{_0x56e82d||this['length']||_0x4a5605[_0x2ca7('0x2a')]||this[_0x2ca7('0x1d')]('removeCommentThread');}),_0x117588;}}
23
+ const _0x3ef2=['submitCommentThread','set','delegate','isReadOnly','editorConfig','element','bind','locale','destroy','isUnlinked','commentThreadInputView','focus','isSubmitted','fire','hasDirtyComment','updateComment','Reply\x20to\x20reopen\x20discussion...','_localUser','resolveCommentThread','Reply','isDirty','commentThreadHeaderView','editorDestroyed','isActive','stop','canComment','submit','commentsListView','disabledSubmit','assign','length','isResolved','submitLabel','listenTo','_model','isResolvable','reopenCommentThread','cancel','CommentView','removeComment','commentInputView','placeholder','removeCommentThread','value','_config','showInput','editorReady'];(function(_0x27d599,_0x3ef2ab){const _0x2ec019=function(_0xff535e){while(--_0xff535e){_0x27d599['push'](_0x27d599['shift']());}};_0x2ec019(++_0x3ef2ab);}(_0x3ef2,0x10b));const _0x2ec0=function(_0x27d599,_0x3ef2ab){_0x27d599=_0x27d599-0x0;let _0x2ec019=_0x3ef2[_0x27d599];return _0x2ec019;};import{View as _0x64d8f1}from'ckeditor5/src/ui.js';import _0x324ef4 from'./commentthreadinputview.js';import _0x35b813 from'./commentslistview.js';import _0x3e30fe from'./commentthreadheaderview.js';import{getTranslation as _0x3becca}from'../../../utils/common-translations.js';export default class Ut extends _0x64d8f1{constructor(_0x5f08ce,_0x2ae2fd,_0x16b876,_0x2c7dc0){super(_0x5f08ce),this[_0x2ec0('0x10')]('isActive',!0x1),this[_0x2ec0('0x10')](_0x2ec0('0x23'),!0x1),this[_0x2ec0('0x2')]=_0x2ae2fd,this[_0x2ec0('0x20')]=_0x16b876,this[_0x2ec0('0xc')]=_0x2c7dc0,this['commentThreadHeaderView']=new _0x3e30fe(_0x5f08ce,_0x2ae2fd),this[_0x2ec0('0x24')][_0x2ec0('0x11')]('reopenCommentThread')['to'](this),this[_0x2ec0('0x1')](this,_0x2ec0('0x4'),()=>{this[_0x2ec0('0x1a')]();}),this[_0x2ec0('0x2a')]=new _0x35b813(_0x5f08ce,_0x2ae2fd,Object[_0x2ec0('0x2c')]({'CommentView':this[_0x2ec0('0xc')][_0x2ec0('0x6')]},_0x2c7dc0)),this[_0x2ec0('0x2a')][_0x2ec0('0x11')]('removeComment')['to'](this),this[_0x2ec0('0x2a')]['delegate'](_0x2ec0('0x1e'))['to'](this),this[_0x2ec0('0x2a')][_0x2ec0('0x11')](_0x2ec0('0x21'))['to'](this),this[_0x2ec0('0x2a')][_0x2ec0('0x11')]('editorReady')['to'](this),this[_0x2ec0('0x2a')][_0x2ec0('0x11')](_0x2ec0('0x25'))['to'](this),this[_0x2ec0('0x2a')][_0x2ec0('0x15')](_0x2ec0('0x26'))['to'](this),this[_0x2ec0('0x1')](this,_0x2ec0('0x21'),()=>{this[_0x2ec0('0x1a')]();}),this[_0x2ec0('0x10')]('length',this[_0x2ec0('0x2a')][_0x2ec0('0x2d')]),this[_0x2ec0('0x15')]('length')['to'](this['commentsListView'],_0x2ec0('0x2d')),this[_0x2ec0('0x19')]=this['_createCommentThreadInputView'](),this[_0x2ec0('0x19')][_0x2ec0('0x11')](_0x2ec0('0xe'))['to'](this),this[_0x2ec0('0x19')][_0x2ec0('0x11')]('editorDestroyed')['to'](this),this['on'](_0x2ec0('0x7'),()=>this['focus']()),this[_0x2ec0('0x15')](_0x2ec0('0x23'))['to'](this[_0x2ec0('0x2a')],_0x2ec0('0x1d'),this[_0x2ec0('0x19')][_0x2ec0('0x8')],_0x2ec0('0xb'),(_0x4dbec4,_0x4d23e1)=>_0x4dbec4||!!_0x4d23e1),this[_0x2ec0('0x15')](_0x2ec0('0x18'))['to'](_0x2ae2fd,'unlinkedAt',_0x34722d=>!!_0x34722d);}[_0x2ec0('0x1a')](){this[_0x2ec0('0x14')][_0x2ec0('0x1a')]();}async['destroy'](){this['isDirty']=!0x1,this[_0x2ec0('0x2a')][_0x2ec0('0x17')](),await this[_0x2ec0('0x19')][_0x2ec0('0x17')](),super[_0x2ec0('0x17')]();}['_createCommentThreadInputView'](){const _0x38e632=new _0x324ef4(this[_0x2ec0('0x16')],this[_0x2ec0('0x20')],this[_0x2ec0('0xc')][_0x2ec0('0x13')]),_0x1e9141=_0x38e632[_0x2ec0('0x8')];return _0x38e632['bind'](_0x2ec0('0xd'))['to'](this,_0x2ec0('0x26'),this['_model'],_0x2ec0('0x12'),this[_0x2ec0('0x2')],_0x2ec0('0x28'),this['_model'],'archivedAt',_0x1e9141,'value',(_0x5b3dd4,_0x33fe6e,_0x1461c6,_0x43007b,_0x2e9809)=>!!_0x2e9809||!!_0x43007b&&_0x1461c6&&!_0x33fe6e||_0x5b3dd4&&_0x1461c6&&!_0x33fe6e),_0x1e9141['bind'](_0x2ec0('0x9'))['to'](this,_0x2ec0('0x2d'),this[_0x2ec0('0x2')],_0x2ec0('0x3'),this[_0x2ec0('0x2')],_0x2ec0('0x2e'),(_0x24a64f,_0x50ff2,_0xea5010)=>{let _0x2e6c31;return _0x2e6c31=_0xea5010&&_0x50ff2?_0x2ec0('0x1f'):_0x24a64f?'Reply...':'Write\x20a\x20comment...',_0x3becca(this[_0x2ec0('0x16')],_0x2e6c31);}),_0x1e9141[_0x2ec0('0x15')](_0x2ec0('0x0'))['to'](this,_0x2ec0('0x2d'),_0x247f74=>_0x3becca(this[_0x2ec0('0x16')],_0x247f74?_0x2ec0('0x22'):'Comment')),_0x1e9141['on'](_0x2ec0('0x29'),(_0x1f57e9,_0x52356c)=>{this['fire']('addComment',_0x52356c),this[_0x2ec0('0x2')]['isResolved']&&this['_model'][_0x2ec0('0x3')]&&this['fire']('reopenCommentThread',this[_0x2ec0('0x2')]['id']),this[_0x2ec0('0x2')][_0x2ec0('0x1b')]||this['fire'](_0x2ec0('0xf'));}),_0x1e9141['on'](_0x2ec0('0x5'),()=>{this[_0x2ec0('0x1a')]();}),_0x1e9141['bind'](_0x2ec0('0x2b'))['to'](this[_0x2ec0('0x2')],'isReadOnly'),_0x1e9141['on'](_0x2ec0('0x5'),_0x4c87c6=>{0x0==this['length']&&(this[_0x2ec0('0x1c')](_0x2ec0('0xa')),_0x4c87c6[_0x2ec0('0x27')]());}),this['on']('change:isActive',(_0x386bc0,_0x142707,_0x2f2457)=>{_0x2f2457||this[_0x2ec0('0x2d')]||_0x1e9141['value']||this[_0x2ec0('0x1c')](_0x2ec0('0xa'));}),_0x38e632;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5812=['_config','visibleView','updateComment','_model','createEditor','isSystemComment','cancel','add','isReadOnly','focus','editorDestroyed','bind','submitLabel','set','submit','once','isEditMode','editorConfig','editorReady','createCollection','_createCommentInputView','value','initialData','remove','switchToDisplayMode','locale','_createCommentContentView','fire','isCollapsed','element','switchToEditMode','content','destroy','delegate','Save','get','expand'];(function(_0x46dc43,_0x5812e6){const _0x53b46c=function(_0x1e0b9e){while(--_0x1e0b9e){_0x46dc43['push'](_0x46dc43['shift']());}};_0x53b46c(++_0x5812e6);}(_0x5812,0x18d));const _0x53b4=function(_0x46dc43,_0x5812e6){_0x46dc43=_0x46dc43-0x0;let _0x53b46c=_0x5812[_0x46dc43];return _0x53b46c;};import{View as _0x29c0ed}from'ckeditor5/src/ui.js';import{trimHtml as _0x8772f1}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x40b639 from'./commentcontentview.js';import _0x20006c from'./commentinputview.js';import{getTranslation as _0x3e7c3c}from'../../../utils/common-translations.js';export default class ti extends _0x29c0ed{constructor(_0x5245fc,_0x4d4901,_0x50b285){super(_0x5245fc),this[_0x53b4('0xd')]=_0x4d4901,this['_config']=_0x50b285,this['isSystemComment']=!!this[_0x53b4('0xa')][_0x53b4('0xf')],this[_0x53b4('0x17')]('isEditMode',!0x1),this[_0x53b4('0x17')]('isCollapsed',!0x0),this['visibleView']=this[_0x53b4('0x1d')](),this[_0x53b4('0xb')]['add'](this[_0x53b4('0x24')]());}[_0x53b4('0x9')](){this[_0x53b4('0x1')]=!0x1;}['collapse'](){this[_0x53b4('0x1a')]||(this[_0x53b4('0x1')]=!0x0);}[_0x53b4('0x13')](){this[_0x53b4('0x2')]['focus']();}async[_0x53b4('0x5')](){await this[_0x53b4('0xb')][_0x53b4('0x8')](0x0)['destroy'](),super['destroy']();}[_0x53b4('0x3')](){this[_0x53b4('0x1a')]||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)[_0x53b4('0x5')](),this[_0x53b4('0xb')]['add'](this[_0x53b4('0x1e')]()));}[_0x53b4('0x22')](){this[_0x53b4('0x1a')]&&(this[_0x53b4('0x1a')]=!0x1,this[_0x53b4('0xb')][_0x53b4('0x21')](0x0)[_0x53b4('0x5')](),this['visibleView'][_0x53b4('0x11')](this[_0x53b4('0x24')]()));}[_0x53b4('0x24')](){const _0x1f3995=new _0x40b639(this[_0x53b4('0x23')]);return _0x1f3995[_0x53b4('0x15')](_0x53b4('0x4'))['to'](this[_0x53b4('0xd')],_0x53b4('0x4'),this,_0x53b4('0x1'),(_0x10d59c,_0x121b83)=>_0x121b83?_0x8772f1(_0x10d59c,{'limit':this[_0x53b4('0xa')]['maxCommentCharsWhenCollapsed']}):_0x10d59c),_0x1f3995;}[_0x53b4('0x1e')](){this[_0x53b4('0xa')]['editorConfig']||(this[_0x53b4('0xa')][_0x53b4('0x1b')]={}),this[_0x53b4('0xa')]['editorConfig'][_0x53b4('0x20')]=this['_model'][_0x53b4('0x4')];const _0x5b28fb=new _0x20006c(this[_0x53b4('0x23')],this[_0x53b4('0xa')]['editorConfig']);return _0x5b28fb[_0x53b4('0x1f')]=this[_0x53b4('0xd')][_0x53b4('0x4')],_0x5b28fb[_0x53b4('0x15')]('disabledSubmit')['to'](this[_0x53b4('0xd')],_0x53b4('0x12')),_0x5b28fb[_0x53b4('0x16')]=_0x3e7c3c(this['locale'],_0x53b4('0x7')),_0x5b28fb['on'](_0x53b4('0x18'),(_0x3b538c,_0x4dc6d7)=>{this[_0x53b4('0x0')](_0x53b4('0xc'),this['_model']['id'],_0x4dc6d7),this[_0x53b4('0x22')](),this[_0x53b4('0x13')]();}),_0x5b28fb['on'](_0x53b4('0x10'),()=>{this[_0x53b4('0x22')](),this[_0x53b4('0x13')]();}),_0x5b28fb[_0x53b4('0x19')]('editorReady',()=>{_0x5b28fb[_0x53b4('0x13')]();}),_0x5b28fb[_0x53b4('0xe')](),_0x5b28fb[_0x53b4('0x6')](_0x53b4('0x1c'))['to'](this),_0x5b28fb[_0x53b4('0x6')](_0x53b4('0x14'))['to'](this),_0x5b28fb;}}
23
+ const _0x4eed=['submit','isCollapsed','visibleView','disabledSubmit','remove','locale','editorConfig','cancel','add','isSystemComment','_model','focus','isReadOnly','_createCommentInputView','expand','isEditMode','fire','updateComment','switchToDisplayMode','createCollection','editorReady','once','content','submitLabel','_createCommentContentView','switchToEditMode','set','collapse','createEditor','Save','delegate','bind','destroy','_config'];(function(_0x588b15,_0x4eeda7){const _0x1c466d=function(_0x3c1165){while(--_0x3c1165){_0x588b15['push'](_0x588b15['shift']());}};_0x1c466d(++_0x4eeda7);}(_0x4eed,0x1d8));const _0x1c46=function(_0x588b15,_0x4eeda7){_0x588b15=_0x588b15-0x0;let _0x1c466d=_0x4eed[_0x588b15];return _0x1c466d;};import{View as _0x20c44f}from'ckeditor5/src/ui.js';import{trimHtml as _0x37f9f3}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2c744f from'./commentcontentview.js';import _0x1b8f87 from'./commentinputview.js';import{getTranslation as _0x2ab73d}from'../../../utils/common-translations.js';export default class ti extends _0x20c44f{constructor(_0x3381d8,_0x4b8a2c,_0x2b9708){super(_0x3381d8),this[_0x1c46('0xe')]=_0x4b8a2c,this[_0x1c46('0x3')]=_0x2b9708,this[_0x1c46('0xd')]=!!this[_0x1c46('0x3')]['isSystemComment'],this[_0x1c46('0x1e')](_0x1c46('0x13'),!0x1),this[_0x1c46('0x1e')](_0x1c46('0x5'),!0x0),this[_0x1c46('0x6')]=this[_0x1c46('0x17')](),this[_0x1c46('0x6')][_0x1c46('0xc')](this[_0x1c46('0x1c')]());}[_0x1c46('0x12')](){this[_0x1c46('0x5')]=!0x1;}[_0x1c46('0x1f')](){this[_0x1c46('0x13')]||(this[_0x1c46('0x5')]=!0x0);}['focus'](){this['element']['focus']();}async[_0x1c46('0x2')](){await this[_0x1c46('0x6')]['get'](0x0)[_0x1c46('0x2')](),super[_0x1c46('0x2')]();}[_0x1c46('0x1d')](){this[_0x1c46('0x13')]||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)[_0x1c46('0x2')](),this['visibleView']['add'](this[_0x1c46('0x11')]()));}['switchToDisplayMode'](){this[_0x1c46('0x13')]&&(this[_0x1c46('0x13')]=!0x1,this[_0x1c46('0x6')][_0x1c46('0x8')](0x0)[_0x1c46('0x2')](),this[_0x1c46('0x6')]['add'](this['_createCommentContentView']()));}['_createCommentContentView'](){const _0x133f0f=new _0x2c744f(this[_0x1c46('0x9')]);return _0x133f0f[_0x1c46('0x1')]('content')['to'](this['_model'],_0x1c46('0x1a'),this,_0x1c46('0x5'),(_0x4906d5,_0x1ab266)=>_0x1ab266?_0x37f9f3(_0x4906d5,{'limit':this[_0x1c46('0x3')]['maxCommentCharsWhenCollapsed']}):_0x4906d5),_0x133f0f;}[_0x1c46('0x11')](){this[_0x1c46('0x3')]['editorConfig']||(this[_0x1c46('0x3')][_0x1c46('0xa')]={}),this[_0x1c46('0x3')][_0x1c46('0xa')]['initialData']=this[_0x1c46('0xe')][_0x1c46('0x1a')];const _0x47295c=new _0x1b8f87(this[_0x1c46('0x9')],this[_0x1c46('0x3')][_0x1c46('0xa')]);return _0x47295c['value']=this['_model'][_0x1c46('0x1a')],_0x47295c[_0x1c46('0x1')](_0x1c46('0x7'))['to'](this[_0x1c46('0xe')],_0x1c46('0x10')),_0x47295c[_0x1c46('0x1b')]=_0x2ab73d(this['locale'],_0x1c46('0x21')),_0x47295c['on'](_0x1c46('0x4'),(_0x3b9437,_0x356671)=>{this[_0x1c46('0x14')](_0x1c46('0x15'),this['_model']['id'],_0x356671),this[_0x1c46('0x16')](),this['focus']();}),_0x47295c['on'](_0x1c46('0xb'),()=>{this[_0x1c46('0x16')](),this['focus']();}),_0x47295c[_0x1c46('0x19')]('editorReady',()=>{_0x47295c[_0x1c46('0xf')]();}),_0x47295c[_0x1c46('0x20')](),_0x47295c[_0x1c46('0x0')](_0x1c46('0x18'))['to'](this),_0x47295c[_0x1c46('0x0')]('editorDestroyed')['to'](this),_0x47295c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x50be=['NUMBER_OF_COMMENTS','set','count','ck-thread__comment-count','bindTemplate'];(function(_0x568a78,_0x50be03){const _0x43f221=function(_0x43a167){while(--_0x43a167){_0x568a78['push'](_0x568a78['shift']());}};_0x43f221(++_0x50be03);}(_0x50be,0x1cf));const _0x43f2=function(_0x568a78,_0x50be03){_0x568a78=_0x568a78-0x0;let _0x43f221=_0x50be[_0x568a78];return _0x43f221;};import{View as _0x102a11}from'ckeditor5/src/ui.js';import{getTranslation as _0x114839}from'../../../utils/common-translations.js';export default class ts extends _0x102a11{constructor(_0x33c04c){super(_0x33c04c);const _0x1612be=this[_0x43f2('0x1')];this[_0x43f2('0x3')](_0x43f2('0x4'),void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':_0x43f2('0x0')},'children':[{'text':_0x1612be['to'](_0x43f2('0x4'),_0x57c377=>_0x114839(_0x33c04c,_0x43f2('0x2'),_0x57c377))}]});}}
23
+ const _0x2ad4=['set','ck-thread__comment-count','bindTemplate','NUMBER_OF_COMMENTS'];(function(_0x575d4d,_0x2ad4d0){const _0x59f767=function(_0x23af5d){while(--_0x23af5d){_0x575d4d['push'](_0x575d4d['shift']());}};_0x59f767(++_0x2ad4d0);}(_0x2ad4,0x1d3));const _0x59f7=function(_0x575d4d,_0x2ad4d0){_0x575d4d=_0x575d4d-0x0;let _0x59f767=_0x2ad4[_0x575d4d];return _0x59f767;};import{View as _0xc7bc72}from'ckeditor5/src/ui.js';import{getTranslation as _0x4d0e40}from'../../../utils/common-translations.js';export default class ts extends _0xc7bc72{constructor(_0x2c9d8c){super(_0x2c9d8c);const _0x14dd48=this[_0x59f7('0x3')];this[_0x59f7('0x1')]('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':_0x59f7('0x2')},'children':[{'text':_0x14dd48['to']('count',_0x48a6f9=>_0x4d0e40(_0x2c9d8c,_0x59f7('0x0'),_0x48a6f9))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x20bc=['div','ck-annotation__content','set','setTemplate','content','innerHTML','render','element','ck-comment__content'];(function(_0x1a2650,_0x20bc3c){var _0x2e53a0=function(_0x159381){while(--_0x159381){_0x1a2650['push'](_0x1a2650['shift']());}};_0x2e53a0(++_0x20bc3c);}(_0x20bc,0xd1));var _0x2e53=function(_0x1a2650,_0x20bc3c){_0x1a2650=_0x1a2650-0x0;var _0x2e53a0=_0x20bc[_0x1a2650];return _0x2e53a0;};import{View as _0xf353f9}from'ckeditor5/src/ui.js';export default class Yt extends _0xf353f9{constructor(_0x156c2b){super(_0x156c2b),this[_0x2e53('0x0')](_0x2e53('0x2'),''),this[_0x2e53('0x1')]({'tag':_0x2e53('0x7'),'attributes':{'class':[_0x2e53('0x6'),_0x2e53('0x8')]}});}['render'](){super[_0x2e53('0x4')](),this['on']('change:content',(_0x14bab3,_0x34946d,_0x48256c)=>{this['element'][_0x2e53('0x3')]=_0x48256c;}),this[_0x2e53('0x5')][_0x2e53('0x3')]=this['content'];}}
23
+ var _0x4ed7=['innerHTML','element','setTemplate','set','ck-annotation__content','content','render','change:content'];(function(_0x543088,_0x4ed73c){var _0x40c557=function(_0xa17e1b){while(--_0xa17e1b){_0x543088['push'](_0x543088['shift']());}};_0x40c557(++_0x4ed73c);}(_0x4ed7,0x1c5));var _0x40c5=function(_0x543088,_0x4ed73c){_0x543088=_0x543088-0x0;var _0x40c557=_0x4ed7[_0x543088];return _0x40c557;};import{View as _0x380779}from'ckeditor5/src/ui.js';export default class Yt extends _0x380779{constructor(_0x30afb9){super(_0x30afb9),this[_0x40c5('0x6')](_0x40c5('0x0'),''),this[_0x40c5('0x5')]({'tag':'div','attributes':{'class':['ck-comment__content',_0x40c5('0x7')]}});}[_0x40c5('0x1')](){super[_0x40c5('0x1')](),this['on'](_0x40c5('0x2'),(_0x786736,_0x234c11,_0x480277)=>{this[_0x40c5('0x4')][_0x40c5('0x3')]=_0x480277;}),this['element'][_0x40c5('0x3')]=this['content'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a1f=['_createCancelButton','focusPrevious','ck-comment__input-actions','focusTracker','bind','TOO_LONG_COMMENT_ALERT','destroy','_createSubmitButton','add','div','label','fire','extendTemplate','element','_isDestroyed','Cancel','editor','submit','_editorCreationPromise','Reply','bindTemplate','editorDestroyed','document','focus','length','_initializeFocusCycling','low','execute','view','insertBefore','setData','showButtons','withText','Esc','stop','trim','setTemplate','render','shift\x20+\x20tab','getData','value','set','model','disabledSubmit','cancel','keystrokes','submitLabel','isEnabled','ck-comment__input-wrapper','placeholder','initialData','_editorConfig','high','cancelButtonView','listenTo','then','createEditor','submitButtonView','change','ck-comment__input-actions--submit','create'];(function(_0x4d63f6,_0x3a1f1f){const _0x553681=function(_0x325ffc){while(--_0x325ffc){_0x4d63f6['push'](_0x4d63f6['shift']());}};_0x553681(++_0x3a1f1f);}(_0x3a1f,0x1a9));const _0x5536=function(_0x4d63f6,_0x3a1f1f){_0x4d63f6=_0x4d63f6-0x0;let _0x553681=_0x3a1f[_0x4d63f6];return _0x553681;};import{View as _0xb6c751,ViewCollection as _0xdc3144,FocusCycler as _0x211baf,ButtonView as _0x11c7da}from'ckeditor5/src/ui.js';import{FocusTracker as _0x256e4a,KeystrokeHandler as _0x9f4c24}from'ckeditor5/src/utils.js';import _0x3ff9a5 from'../commenteditor/commenteditor.js';import{getTranslation as _0x363ea3}from'../../../utils/common-translations.js';export default class Zt extends _0xb6c751{constructor(_0xd41c8c,_0x380eec={}){super(_0xd41c8c),this[_0x5536('0x12')]=null,this[_0x5536('0x35')]=_0x380eec,this[_0x5536('0x2f')]=new _0x9f4c24(),this[_0x5536('0x5')]=new _0x256e4a(),this[_0x5536('0x2b')]('value',_0x380eec[_0x5536('0x34')]||''),this[_0x5536('0x2b')]('disabledSubmit',!0x1),this[_0x5536('0x2b')](_0x5536('0x21'),!0x0),this[_0x5536('0x2b')](_0x5536('0x33'),_0x363ea3(_0xd41c8c,'Reply...')),this['set'](_0x5536('0x30'),_0x363ea3(_0xd41c8c,_0x5536('0x15'))),this[_0x5536('0x3b')]=this[_0x5536('0x9')](),this['cancelButtonView']=this[_0x5536('0x2')](),this[_0x5536('0x26')]({'tag':_0x5536('0xb'),'attributes':{'class':[_0x5536('0x32')]},'children':[{'tag':'div','attributes':{'class':[_0x5536('0x4'),this[_0x5536('0x16')]['if'](_0x5536('0x21'),'ck-comment__input-actions--active')]},'children':[this[_0x5536('0x3b')],this['cancelButtonView']]}]}),this[_0x5536('0x2f')]['set'](_0x5536('0x23'),(_0x5cc473,_0x356048)=>{this[_0x5536('0x37')]['fire'](_0x5536('0x1d')),_0x356048();}),this['on'](_0x5536('0x13'),(_0x566b8b,_0x251f43)=>{_0x251f43[_0x5536('0x1a')]>0xfde8?(alert(_0x363ea3(_0xd41c8c,_0x5536('0x7'),[_0x251f43[_0x5536('0x1a')],0xfde8])),_0x566b8b[_0x5536('0x24')]()):this['editor'][_0x5536('0x20')]('');},{'priority':_0x5536('0x36')});}['render'](){super[_0x5536('0x27')](),this[_0x5536('0x2f')][_0x5536('0x38')](this['element']),this[_0x5536('0x5')][_0x5536('0xa')](this[_0x5536('0xf')]);}[_0x5536('0x3a')](){return this[_0x5536('0x12')]||(this['editor']=new _0x3ff9a5(this[_0x5536('0x35')]),this[_0x5536('0x14')]=this['editor'][_0x5536('0x1')]()[_0x5536('0x39')](()=>{if(this[_0x5536('0x10')])return;const _0x4d7de7=this['editor'];this[_0x5536('0xf')][_0x5536('0x1f')](_0x4d7de7['ui']['element'],this[_0x5536('0xf')]['firstChild']),_0x4d7de7[_0x5536('0x2c')][_0x5536('0x18')]['on'](_0x5536('0x3c'),()=>this['value']=_0x4d7de7[_0x5536('0x29')]()),_0x4d7de7[_0x5536('0x6')](_0x5536('0x33'))['to'](this),this['_initializeFocusCycling'](this[_0x5536('0x12')]),this[_0x5536('0xd')]('editorReady',this[_0x5536('0x12')]);})),this[_0x5536('0x14')];}[_0x5536('0x19')](){this[_0x5536('0x12')]&&this[_0x5536('0x12')][_0x5536('0x19')]();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this[_0x5536('0x14')],await this['editor'][_0x5536('0x8')](),this['fire'](_0x5536('0x17'),this[_0x5536('0x12')])),await super[_0x5536('0x8')]());}[_0x5536('0x9')](){const {locale:_0x1efd16}=this,_0x3567f7=new _0x11c7da(_0x1efd16);return _0x3567f7[_0x5536('0xe')]({'attributes':{'class':[_0x5536('0x0')]}}),_0x3567f7[_0x5536('0x22')]=!0x0,_0x3567f7['bind'](_0x5536('0xc'))['to'](this,_0x5536('0x30')),_0x3567f7['on'](_0x5536('0x1d'),()=>{this['fire'](_0x5536('0x13'),this[_0x5536('0x2a')]);}),_0x3567f7['bind'](_0x5536('0x31'))['to'](this,'value',this,_0x5536('0x2d'),(_0x1dd83a,_0x3782a0)=>!_0x3782a0&&!!_0x1dd83a[_0x5536('0x25')]()),_0x3567f7;}[_0x5536('0x2')](){const {locale:_0x22c912}=this,_0x2834fe=new _0x11c7da(_0x22c912);return _0x2834fe['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2834fe[_0x5536('0xc')]=_0x363ea3(_0x22c912,_0x5536('0x11')),_0x2834fe[_0x5536('0x22')]=!0x0,_0x2834fe['on'](_0x5536('0x1d'),()=>{this[_0x5536('0x12')][_0x5536('0x20')](''),this[_0x5536('0xd')](_0x5536('0x2e'));}),_0x2834fe;}[_0x5536('0x1b')](_0x5a091e){const _0x3e10d0=this['focusTracker'],_0x27d2c4=new _0xdc3144();[_0x5a091e['ui'][_0x5536('0x1e')],this[_0x5536('0x3b')],this[_0x5536('0x37')]]['forEach'](_0x2b2aa5=>{_0x27d2c4['add'](_0x2b2aa5),_0x3e10d0[_0x5536('0xa')](_0x2b2aa5['element']);});const _0x51f573=new _0x211baf({'focusables':_0x27d2c4,'focusTracker':_0x3e10d0});this[_0x5536('0x2f')][_0x5536('0x2b')]('tab',(_0x3afc30,_0x23e72c)=>{_0x51f573['focusNext'](),_0x23e72c();},{'priority':_0x5536('0x1c')}),this[_0x5536('0x2f')]['set'](_0x5536('0x28'),(_0x349f4e,_0x1b3bee)=>{_0x51f573[_0x5536('0x3')](),_0x1b3bee();},{'priority':'low'});}}
23
+ const _0x495d=['document','setTemplate','submitLabel','execute','stop','focusTracker','Cancel','setData','fire','render','trim','placeholder','div','then','focus','forEach','_editorConfig','focusPrevious','withText','editorDestroyed','submit','low','model','bindTemplate','getData','cancelButtonView','create','length','_initializeFocusCycling','_isDestroyed','submitButtonView','tab','_createCancelButton','element','value','shift\x20+\x20tab','createEditor','set','view','editor','label','showButtons','initialData','ck-comment__input-actions--active','keystrokes','listenTo','focusNext','ck-comment__input-wrapper','Reply','bind','ck-comment__input-actions--submit','add','_createSubmitButton','destroy','_editorCreationPromise','Reply...'];(function(_0x10d247,_0x495d35){const _0xc2bb7f=function(_0x318609){while(--_0x318609){_0x10d247['push'](_0x10d247['shift']());}};_0xc2bb7f(++_0x495d35);}(_0x495d,0xaa));const _0xc2bb=function(_0x10d247,_0x495d35){_0x10d247=_0x10d247-0x0;let _0xc2bb7f=_0x495d[_0x10d247];return _0xc2bb7f;};import{View as _0x387f5f,ViewCollection as _0x527e87,FocusCycler as _0x2cd86e,ButtonView as _0x5102a3}from'ckeditor5/src/ui.js';import{FocusTracker as _0x28b076,KeystrokeHandler as _0x5002b1}from'ckeditor5/src/utils.js';import _0x583094 from'../commenteditor/commenteditor.js';import{getTranslation as _0x54b4cf}from'../../../utils/common-translations.js';export default class Zt extends _0x387f5f{constructor(_0x5a3ab9,_0x100a53={}){super(_0x5a3ab9),this[_0xc2bb('0x25')]=null,this[_0xc2bb('0xe')]=_0x100a53,this[_0xc2bb('0x2a')]=new _0x5002b1(),this[_0xc2bb('0x3')]=new _0x28b076(),this[_0xc2bb('0x23')](_0xc2bb('0x20'),_0x100a53[_0xc2bb('0x28')]||''),this[_0xc2bb('0x23')]('disabledSubmit',!0x1),this[_0xc2bb('0x23')]('showButtons',!0x0),this[_0xc2bb('0x23')](_0xc2bb('0x9'),_0x54b4cf(_0x5a3ab9,_0xc2bb('0x35'))),this[_0xc2bb('0x23')](_0xc2bb('0x0'),_0x54b4cf(_0x5a3ab9,_0xc2bb('0x2e'))),this[_0xc2bb('0x1c')]=this[_0xc2bb('0x32')](),this[_0xc2bb('0x17')]=this[_0xc2bb('0x1e')](),this[_0xc2bb('0x37')]({'tag':_0xc2bb('0xa'),'attributes':{'class':[_0xc2bb('0x2d')]},'children':[{'tag':_0xc2bb('0xa'),'attributes':{'class':['ck-comment__input-actions',this[_0xc2bb('0x15')]['if'](_0xc2bb('0x27'),_0xc2bb('0x29'))]},'children':[this[_0xc2bb('0x1c')],this[_0xc2bb('0x17')]]}]}),this[_0xc2bb('0x2a')][_0xc2bb('0x23')]('Esc',(_0x23f16a,_0x4b7958)=>{this[_0xc2bb('0x17')][_0xc2bb('0x6')](_0xc2bb('0x1')),_0x4b7958();}),this['on'](_0xc2bb('0x12'),(_0x45fde7,_0x1ee1d2)=>{_0x1ee1d2['length']>0xfde8?(alert(_0x54b4cf(_0x5a3ab9,'TOO_LONG_COMMENT_ALERT',[_0x1ee1d2[_0xc2bb('0x19')],0xfde8])),_0x45fde7[_0xc2bb('0x2')]()):this['editor'][_0xc2bb('0x5')]('');},{'priority':'high'});}[_0xc2bb('0x7')](){super[_0xc2bb('0x7')](),this[_0xc2bb('0x2a')][_0xc2bb('0x2b')](this['element']),this[_0xc2bb('0x3')][_0xc2bb('0x31')](this[_0xc2bb('0x1f')]);}[_0xc2bb('0x22')](){return this['editor']||(this[_0xc2bb('0x25')]=new _0x583094(this['_editorConfig']),this[_0xc2bb('0x34')]=this[_0xc2bb('0x25')][_0xc2bb('0x18')]()[_0xc2bb('0xb')](()=>{if(this[_0xc2bb('0x1b')])return;const _0x3ccc07=this[_0xc2bb('0x25')];this['element']['insertBefore'](_0x3ccc07['ui']['element'],this[_0xc2bb('0x1f')]['firstChild']),_0x3ccc07[_0xc2bb('0x14')][_0xc2bb('0x36')]['on']('change',()=>this[_0xc2bb('0x20')]=_0x3ccc07[_0xc2bb('0x16')]()),_0x3ccc07['bind'](_0xc2bb('0x9'))['to'](this),this['_initializeFocusCycling'](this[_0xc2bb('0x25')]),this[_0xc2bb('0x6')]('editorReady',this[_0xc2bb('0x25')]);})),this[_0xc2bb('0x34')];}[_0xc2bb('0xc')](){this['editor']&&this['editor'][_0xc2bb('0xc')]();}async[_0xc2bb('0x33')](){this[_0xc2bb('0x1b')]||(this[_0xc2bb('0x1b')]=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this[_0xc2bb('0x25')]['destroy'](),this[_0xc2bb('0x6')](_0xc2bb('0x11'),this[_0xc2bb('0x25')])),await super['destroy']());}[_0xc2bb('0x32')](){const {locale:_0x304893}=this,_0x46c33d=new _0x5102a3(_0x304893);return _0x46c33d['extendTemplate']({'attributes':{'class':[_0xc2bb('0x30')]}}),_0x46c33d['withText']=!0x0,_0x46c33d[_0xc2bb('0x2f')](_0xc2bb('0x26'))['to'](this,_0xc2bb('0x0')),_0x46c33d['on'](_0xc2bb('0x1'),()=>{this['fire'](_0xc2bb('0x12'),this[_0xc2bb('0x20')]);}),_0x46c33d['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x9652f4,_0x3f3e1f)=>!_0x3f3e1f&&!!_0x9652f4[_0xc2bb('0x8')]()),_0x46c33d;}[_0xc2bb('0x1e')](){const {locale:_0x5e12c9}=this,_0x4cf509=new _0x5102a3(_0x5e12c9);return _0x4cf509['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x4cf509[_0xc2bb('0x26')]=_0x54b4cf(_0x5e12c9,_0xc2bb('0x4')),_0x4cf509[_0xc2bb('0x10')]=!0x0,_0x4cf509['on'](_0xc2bb('0x1'),()=>{this[_0xc2bb('0x25')][_0xc2bb('0x5')](''),this[_0xc2bb('0x6')]('cancel');}),_0x4cf509;}[_0xc2bb('0x1a')](_0x483c90){const _0x4f8f7e=this[_0xc2bb('0x3')],_0x33e797=new _0x527e87();[_0x483c90['ui'][_0xc2bb('0x24')],this[_0xc2bb('0x1c')],this[_0xc2bb('0x17')]][_0xc2bb('0xd')](_0x10ca48=>{_0x33e797['add'](_0x10ca48),_0x4f8f7e[_0xc2bb('0x31')](_0x10ca48[_0xc2bb('0x1f')]);});const _0x3446e8=new _0x2cd86e({'focusables':_0x33e797,'focusTracker':_0x4f8f7e});this['keystrokes'][_0xc2bb('0x23')](_0xc2bb('0x1d'),(_0x44a7eb,_0x27fd4a)=>{_0x3446e8[_0xc2bb('0x2c')](),_0x27fd4a();},{'priority':_0xc2bb('0x13')}),this[_0xc2bb('0x2a')]['set'](_0xc2bb('0x21'),(_0x33556f,_0x280a36)=>{_0x3446e8[_0xc2bb('0xf')](),_0x280a36();},{'priority':_0xc2bb('0x13')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27ac=['render','ck-comments-archive__header\x20','shift\x20+\x20tab','_focusTracker','arrowdown','element','set','arrowup','length','_keystrokes','div','bindTemplate','high','setTemplate','ck-comments-archive__content','listenTo','destroy','_focusCycler','COMMENTS_ARCHIVE','auto','stopPropagation','tab','remove','isEmpty','focus','_focusables','add','ck-comments-archive'];(function(_0x3671fe,_0x27ac3c){const _0x4fe169=function(_0x2b5038){while(--_0x2b5038){_0x3671fe['push'](_0x3671fe['shift']());}};_0x4fe169(++_0x27ac3c);}(_0x27ac,0x148));const _0x4fe1=function(_0x3671fe,_0x27ac3c){_0x3671fe=_0x3671fe-0x0;let _0x4fe169=_0x27ac[_0x3671fe];return _0x4fe169;};import{View as _0x13b0b0,FocusCycler as _0x4e7ee2}from'ckeditor5/src/ui.js';import{FocusTracker as _0x5b81de,KeystrokeHandler as _0x29c338}from'ckeditor5/src/utils.js';import{getTranslation as _0x236060}from'../../../utils/common-translations.js';export default class K extends _0x13b0b0{constructor(_0x374fdf,_0xcd4135){super(_0x374fdf),this['set'](_0x4fe1('0x3'),!_0xcd4135[_0x4fe1('0x10')]),this[_0x4fe1('0xb')]=new _0x5b81de(),this['_keystrokes']=new _0x29c338(),this[_0x4fe1('0x5')]=_0xcd4135,this[_0x4fe1('0x19')]=new _0x4e7ee2({'focusables':this[_0x4fe1('0x5')],'focusTracker':this[_0x4fe1('0xb')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0x4fe1('0xa'),'focusNext':_0x4fe1('0x1')}}),this[_0x4fe1('0x17')](_0xcd4135,_0x4fe1('0x6'),()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0xcd4135,_0x4fe1('0x2'),(_0x244bb9,_0x336ace)=>{_0x336ace['isActive']&&this['focus'](),_0xcd4135['length']||(this[_0x4fe1('0x3')]=!0x0);});const _0x260942=this[_0x4fe1('0x13')];this[_0x4fe1('0x15')]({'tag':_0x4fe1('0x12'),'attributes':{'dir':_0x4fe1('0x1b'),'class':['ck',_0x4fe1('0x7')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x4fe1('0x9')]},'children':[{'text':_0x236060(_0x374fdf,_0x4fe1('0x1a'))}]},{'tag':_0x4fe1('0x12'),'attributes':{'class':[_0x4fe1('0x16')]},'children':[{'tag':_0x4fe1('0x12'),'children':_0xcd4135},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x260942['if'](_0x4fe1('0x3'),'ck-hidden',_0x4cae68=>!_0x4cae68)]},'children':[{'text':_0x236060(_0x374fdf,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}[_0x4fe1('0x8')](){super[_0x4fe1('0x8')](),this[_0x4fe1('0x11')]['listenTo'](this[_0x4fe1('0xd')]);const _0x12e5fb=_0x5a70c0=>_0x5a70c0[_0x4fe1('0x0')]();this['_keystrokes']['set']('arrowright',_0x12e5fb),this['_keystrokes']['set']('arrowleft',_0x12e5fb),this[_0x4fe1('0x11')]['set'](_0x4fe1('0xf'),_0x12e5fb),this['_keystrokes'][_0x4fe1('0xe')](_0x4fe1('0xc'),_0x12e5fb),this['listenTo'](this[_0x4fe1('0xd')],'selectstart',(_0x983225,_0x93bda8)=>{_0x93bda8[_0x4fe1('0x0')]();},{'priority':_0x4fe1('0x14')});}[_0x4fe1('0x18')](){super[_0x4fe1('0x18')](),this[_0x4fe1('0xb')][_0x4fe1('0x18')](),this[_0x4fe1('0x11')][_0x4fe1('0x18')]();}[_0x4fe1('0x4')](){this[_0x4fe1('0xd')][_0x4fe1('0x4')]();}}
23
+ const _0x750b=['length','bindTemplate','tab','render','ck-comments-archive__info','_keystrokes','_focusables','ck-comments-archive__header\x20','_focusTracker','listenTo','add','EMPTY_COMMENTS_ARCHIVE','arrowdown','isEmpty','focus','isActive','destroy','element','stopPropagation','arrowright','remove','setTemplate','selectstart','COMMENTS_ARCHIVE','div','shift\x20+\x20tab','ck-hidden','ck-comments-archive__content','arrowup','set'];(function(_0x5cbfec,_0x750bdc){const _0x27dfe8=function(_0x430f1c){while(--_0x430f1c){_0x5cbfec['push'](_0x5cbfec['shift']());}};_0x27dfe8(++_0x750bdc);}(_0x750b,0x1e9));const _0x27df=function(_0x5cbfec,_0x750bdc){_0x5cbfec=_0x5cbfec-0x0;let _0x27dfe8=_0x750b[_0x5cbfec];return _0x27dfe8;};import{View as _0x4380bd,FocusCycler as _0x4dde2b}from'ckeditor5/src/ui.js';import{FocusTracker as _0x4847ff,KeystrokeHandler as _0x43c29a}from'ckeditor5/src/utils.js';import{getTranslation as _0x69b738}from'../../../utils/common-translations.js';export default class K extends _0x4380bd{constructor(_0x343dd8,_0x3f8eab){super(_0x343dd8),this['set'](_0x27df('0x4'),!_0x3f8eab[_0x27df('0x15')]),this[_0x27df('0x1d')]=new _0x4847ff(),this[_0x27df('0x1a')]=new _0x43c29a(),this[_0x27df('0x1b')]=_0x3f8eab,this['_focusCycler']=new _0x4dde2b({'focusables':this[_0x27df('0x1b')],'focusTracker':this[_0x27df('0x1d')],'keystrokeHandler':this[_0x27df('0x1a')],'actions':{'focusPrevious':_0x27df('0x10'),'focusNext':_0x27df('0x17')}}),this['listenTo'](_0x3f8eab,_0x27df('0x1'),()=>{this[_0x27df('0x4')]=!0x1;}),this[_0x27df('0x0')](_0x3f8eab,_0x27df('0xb'),(_0x2283f6,_0x10aa49)=>{_0x10aa49[_0x27df('0x6')]&&this[_0x27df('0x5')](),_0x3f8eab[_0x27df('0x15')]||(this[_0x27df('0x4')]=!0x0);});const _0x20970d=this[_0x27df('0x16')];this[_0x27df('0xc')]({'tag':_0x27df('0xf'),'attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x27df('0x1c')]},'children':[{'text':_0x69b738(_0x343dd8,_0x27df('0xe'))}]},{'tag':_0x27df('0xf'),'attributes':{'class':[_0x27df('0x12')]},'children':[{'tag':_0x27df('0xf'),'children':_0x3f8eab},{'tag':'p','attributes':{'class':[_0x27df('0x19'),_0x20970d['if'](_0x27df('0x4'),_0x27df('0x11'),_0x4c08c2=>!_0x4c08c2)]},'children':[{'text':_0x69b738(_0x343dd8,_0x27df('0x2'))}]}]}]});}[_0x27df('0x18')](){super[_0x27df('0x18')](),this[_0x27df('0x1a')][_0x27df('0x0')](this[_0x27df('0x8')]);const _0x5a1897=_0x3e4cd2=>_0x3e4cd2[_0x27df('0x9')]();this['_keystrokes'][_0x27df('0x14')](_0x27df('0xa'),_0x5a1897),this[_0x27df('0x1a')][_0x27df('0x14')]('arrowleft',_0x5a1897),this[_0x27df('0x1a')][_0x27df('0x14')](_0x27df('0x13'),_0x5a1897),this['_keystrokes'][_0x27df('0x14')](_0x27df('0x3'),_0x5a1897),this['listenTo'](this[_0x27df('0x8')],_0x27df('0xd'),(_0x2271c5,_0x554740)=>{_0x554740[_0x27df('0x9')]();},{'priority':'high'});}[_0x27df('0x7')](){super[_0x27df('0x7')](),this[_0x27df('0x1d')][_0x27df('0x7')](),this[_0x27df('0x1a')]['destroy']();}[_0x27df('0x5')](){this[_0x27df('0x8')][_0x27df('0x5')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b0b=['from','removeComment','maxCommentsWhenCollapsed','_config','commentUpdated','set','weight','focus','_handleInfoComment','_updateHasDirtyComment','change:isEditMode','length','visibleViews','_rearrangeCollapse','get','locale','_calculatePosition','_findOptimalIndex','destroy','resolvedBy','_collapsedCommentsView','viewUid','refreshVisibleViews','some','element','isEditMode','updateComment','listenTo','resolvedAt','editorDestroyed','resolvedCommentView','isActive','_shouldCollapse','formatDateTime','maxCommentCharsWhenCollapsed','commentViews','comments','remove','expand','ck-thread__comments','maxThreadTotalWeight','delete','createCollection','render','count','_handleNewCommentModel','resolveCommentThread','change:isActive','setTemplate','add','_model','_rearrangeExpand','_handleRemoveCommentModel','delegate','authoredAt','hasDirtyComment','CommentView','change:hasDirtyComment','editorReady'];(function(_0x54708e,_0x1b0b4a){const _0x4733f7=function(_0x58bd3b){while(--_0x58bd3b){_0x54708e['push'](_0x54708e['shift']());}};_0x4733f7(++_0x1b0b4a);}(_0x1b0b,0x1c7));const _0x4733=function(_0x54708e,_0x1b0b4a){_0x54708e=_0x54708e-0x0;let _0x4733f7=_0x1b0b[_0x54708e];return _0x4733f7;};import{View as _0x260a92}from'ckeditor5/src/ui.js';import{diff as _0x26d9bf,Collection as _0x550f97}from'ckeditor5/src/utils.js';import{getTranslation as _0x1dda6f}from'../../../utils/common-translations.js';import _0x5f0dbc from'./collapsedcommentsview.js';export default class vt extends _0x260a92{constructor(_0x4c8dac,_0x258a95,_0x4acd8b){super(_0x4c8dac),this['set'](_0x4733('0xd'),!0x1),this['set'](_0x4733('0x1c'),_0x258a95[_0x4733('0x35')]['length']),this[_0x4733('0x16')](_0x4733('0x30'),!0x1),this[_0x4733('0x8')]=_0x258a95,this['_config']=_0x4acd8b,this[_0x4733('0x34')]=this[_0x4733('0x0')](),this[_0x4733('0x1d')]=this[_0x4733('0x0')](),this['resolvedCommentView']=null,this[_0x4733('0x25')]=new _0x5f0dbc(_0x4c8dac),this[_0x4733('0x25')]['bind']('count')['to'](this,_0x4733('0x1c'),_0x5ee7d0=>_0x5ee7d0-this['_config'][_0x4733('0x13')]);for(const _0x58016a of _0x258a95['comments'])this['_handleNewCommentModel'](_0x58016a);this[_0x4733('0x19')](),this[_0x4733('0x2c')](_0x258a95[_0x4733('0x35')],_0x4733('0x7'),(_0x25abc9,_0x4662b7)=>{const _0x1d33c3=this[_0x4733('0x21')](_0x4662b7);this[_0x4733('0x1c')]++,this['_handleNewCommentModel'](_0x4662b7,_0x1d33c3),this[_0x4733('0x27')]();}),this[_0x4733('0x2c')](_0x258a95[_0x4733('0x35')],_0x4733('0x36'),(_0x339824,_0x350f8f)=>{this[_0x4733('0x1c')]--,this[_0x4733('0xa')](_0x350f8f),this[_0x4733('0x27')]();}),this[_0x4733('0x2c')](_0x258a95,_0x4733('0x15'),()=>this['refreshVisibleViews']()),this[_0x4733('0x2c')](_0x258a95,'change:isResolved',()=>this[_0x4733('0x19')]()),this['on'](_0x4733('0x5'),()=>this[_0x4733('0x27')]()),this['on'](_0x4733('0xf'),()=>this[_0x4733('0x27')]()),this[_0x4733('0x6')]({'tag':'ul','attributes':{'class':[_0x4733('0x38')]},'children':this[_0x4733('0x1d')]});}get[_0x4733('0x31')](){return this[_0x4733('0x8')][_0x4733('0x17')]>this['_config'][_0x4733('0x39')]&&!this[_0x4733('0x30')]&&!this[_0x4733('0xd')];}[_0x4733('0x1')](){super['render'](),this[_0x4733('0x27')]();}[_0x4733('0x18')](){this[_0x4733('0x29')][_0x4733('0x18')]();}['destroy'](){this[_0x4733('0x25')]['destroy']();for(const _0x69d646 of this[_0x4733('0x34')])_0x69d646[_0x4733('0x23')]();super[_0x4733('0x23')]();}[_0x4733('0x27')](){this[_0x4733('0x31')]?this[_0x4733('0x1e')]():this[_0x4733('0x9')]();}[_0x4733('0x3')](_0x9c2226,_0x5ee7ec){const _0x4d7293=new this[(_0x4733('0x14'))][(_0x4733('0xe'))](this[_0x4733('0x20')],_0x9c2226,{'maxCommentCharsWhenCollapsed':this['_config'][_0x4733('0x33')],'formatDateTime':this[_0x4733('0x14')][_0x4733('0x32')],'editorConfig':this['_config']['editorConfig']});_0x4d7293[_0x4733('0x26')]=_0x9c2226['id'],_0x4d7293[_0x4733('0xb')](_0x4733('0x12'))['to'](this),_0x4d7293[_0x4733('0xb')](_0x4733('0x2b'))['to'](this),_0x4d7293[_0x4733('0xb')](_0x4733('0x4'))['to'](this),_0x4d7293[_0x4733('0xb')](_0x4733('0x10'))['to'](this),_0x4d7293[_0x4733('0xb')](_0x4733('0x2e'))['to'](this),this[_0x4733('0x2c')](_0x4d7293,_0x4733('0x1b'),()=>this['_updateHasDirtyComment']()),this[_0x4733('0x34')]['add'](_0x4d7293,_0x5ee7ec);}[_0x4733('0x21')](_0x2609e2){const _0x3a9499=this['_model'][_0x4733('0x22')](_0x2609e2);return this[_0x4733('0x2f')]?this['resolvedCommentView'][_0x4733('0xc')]>_0x2609e2[_0x4733('0xc')]?_0x3a9499-0x1:_0x3a9499:_0x3a9499-0x1;}[_0x4733('0x19')](){if(this['_model'][_0x4733('0x24')]&&this['_model'][_0x4733('0x2d')]){const _0x47ab4e={'id':'resolved','author':this[_0x4733('0x8')][_0x4733('0x24')],'authoredAt':this[_0x4733('0x8')]['resolvedAt'],'content':_0x1dda6f(this[_0x4733('0x20')],'Marked\x20as\x20resolved'),'attributes':{}};this[_0x4733('0x2f')]=new this['_config'][(_0x4733('0xe'))](this['locale'],_0x47ab4e,{'maxCommentCharsWhenCollapsed':this[_0x4733('0x14')][_0x4733('0x33')],'formatDateTime':this['_config'][_0x4733('0x32')],'editorConfig':this[_0x4733('0x14')]['editorConfig'],'isSystemComment':!0x0}),this['commentViews'][_0x4733('0x7')](this[_0x4733('0x2f')],this[_0x4733('0x8')][_0x4733('0x22')](_0x47ab4e));}else this[_0x4733('0x2f')]&&(this['commentViews'][_0x4733('0x36')](this[_0x4733('0x2f')]),this[_0x4733('0x2f')][_0x4733('0x23')](),this['resolvedCommentView']=null);this[_0x4733('0x27')]();}[_0x4733('0xa')](_0x1d9282){const _0x40a634=this[_0x4733('0x34')][_0x4733('0x36')](_0x1d9282['id']);this['stopListening'](_0x40a634),_0x40a634[_0x4733('0x2a')]&&this[_0x4733('0x1a')](),_0x40a634['destroy']();}[_0x4733('0x1a')](){this[_0x4733('0xd')]=Array[_0x4733('0x11')](this[_0x4733('0x34')])[_0x4733('0x28')](_0x59687f=>_0x59687f[_0x4733('0x2a')]);}[_0x4733('0x1e')](){const _0x5bdb08=function(_0x48ac8a){const _0x439175=new _0x550f97();for(const _0x48869a of _0x48ac8a)_0x439175[_0x4733('0x7')](_0x48869a);return _0x439175;}(this[_0x4733('0x34')]),_0x551dcb=this['_collapsedCommentsView'][_0x4733('0x2')];for(let _0x33e18e=0x1;_0x33e18e<=_0x551dcb;_0x33e18e++)_0x5bdb08['remove'](0x1);for(const _0x380790 of _0x5bdb08)_0x380790['collapse']();_0x551dcb>0x0&&_0x5bdb08['add'](this[_0x4733('0x25')],0x1),is(_0x26d9bf(Array[_0x4733('0x11')](this[_0x4733('0x1d')]),Array[_0x4733('0x11')](_0x5bdb08)),this[_0x4733('0x1d')],_0x5bdb08);}[_0x4733('0x9')](){is(_0x26d9bf(Array[_0x4733('0x11')](this[_0x4733('0x1d')]),Array[_0x4733('0x11')](this[_0x4733('0x34')])),this['visibleViews'],this[_0x4733('0x34')]);for(const _0x42537e of this[_0x4733('0x1d')])_0x42537e[_0x4733('0x37')]();}}function is(_0x187e62,_0x30f6fb,_0xc1ec88){let _0x4b66f5=0x0;for(const _0x2bf0be of _0x187e62)switch(_0x2bf0be){case'insert':_0x30f6fb[_0x4733('0x7')](_0xc1ec88[_0x4733('0x1f')](_0x4b66f5),_0x4b66f5),_0x4b66f5++;break;case _0x4733('0x3a'):_0x30f6fb[_0x4733('0x36')](_0x4b66f5);break;case'equal':_0x4b66f5++;}}
23
+ const _0x5c6c=['authoredAt','maxThreadTotalWeight','bind','_handleNewCommentModel','CommentView','change:hasDirtyComment','change:isActive','isEditMode','maxCommentsWhenCollapsed','editorConfig','commentViews','_collapsedCommentsView','set','comments','length','collapse','locale','editorDestroyed','count','resolved','equal','change:isResolved','editorReady','remove','setTemplate','maxCommentCharsWhenCollapsed','commentUpdated','add','_rearrangeCollapse','_rearrangeExpand','resolvedAt','_updateHasDirtyComment','destroy','expand','_config','delete','_model','listenTo','resolvedCommentView','updateComment','stopListening','removeComment','_handleRemoveCommentModel','_shouldCollapse','isActive','_handleInfoComment','hasDirtyComment','createCollection','some','resolvedBy','insert','viewUid','visibleViews','render','from','get','resolveCommentThread','refreshVisibleViews','_calculatePosition','delegate','_findOptimalIndex','weight','focus'];(function(_0x310f4e,_0x5c6c58){const _0x4a8673=function(_0x55acee){while(--_0x55acee){_0x310f4e['push'](_0x310f4e['shift']());}};_0x4a8673(++_0x5c6c58);}(_0x5c6c,0x132));const _0x4a86=function(_0x310f4e,_0x5c6c58){_0x310f4e=_0x310f4e-0x0;let _0x4a8673=_0x5c6c[_0x310f4e];return _0x4a8673;};import{View as _0x1543a9}from'ckeditor5/src/ui.js';import{diff as _0x217ee7,Collection as _0x182468}from'ckeditor5/src/utils.js';import{getTranslation as _0x52e041}from'../../../utils/common-translations.js';import _0x16ed77 from'./collapsedcommentsview.js';export default class vt extends _0x1543a9{constructor(_0xdffef,_0x537e70,_0x34d628){super(_0xdffef),this[_0x4a86('0x15')]('hasDirtyComment',!0x1),this['set'](_0x4a86('0x17'),_0x537e70['comments'][_0x4a86('0x17')]),this[_0x4a86('0x15')](_0x4a86('0x35'),!0x1),this[_0x4a86('0x2d')]=_0x537e70,this[_0x4a86('0x2b')]=_0x34d628,this[_0x4a86('0x13')]=this[_0x4a86('0x38')](),this[_0x4a86('0x3d')]=this[_0x4a86('0x38')](),this[_0x4a86('0x2f')]=null,this[_0x4a86('0x14')]=new _0x16ed77(_0xdffef),this['_collapsedCommentsView'][_0x4a86('0xb')]('count')['to'](this,_0x4a86('0x17'),_0x185777=>_0x185777-this['_config'][_0x4a86('0x11')]);for(const _0x3ab43c of _0x537e70[_0x4a86('0x16')])this['_handleNewCommentModel'](_0x3ab43c);this[_0x4a86('0x36')](),this['listenTo'](_0x537e70[_0x4a86('0x16')],_0x4a86('0x24'),(_0x41c002,_0xc3cb97)=>{const _0x106018=this[_0x4a86('0x4')](_0xc3cb97);this['length']++,this[_0x4a86('0xc')](_0xc3cb97,_0x106018),this[_0x4a86('0x3')]();}),this['listenTo'](_0x537e70[_0x4a86('0x16')],_0x4a86('0x20'),(_0xfb158,_0x208d5b)=>{this[_0x4a86('0x17')]--,this[_0x4a86('0x33')](_0x208d5b),this[_0x4a86('0x3')]();}),this[_0x4a86('0x2e')](_0x537e70,_0x4a86('0x23'),()=>this['refreshVisibleViews']()),this[_0x4a86('0x2e')](_0x537e70,_0x4a86('0x1e'),()=>this[_0x4a86('0x36')]()),this['on'](_0x4a86('0xf'),()=>this['refreshVisibleViews']()),this['on'](_0x4a86('0xe'),()=>this[_0x4a86('0x3')]()),this[_0x4a86('0x21')]({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x4a86('0x3d')]});}get[_0x4a86('0x34')](){return this[_0x4a86('0x2d')][_0x4a86('0x7')]>this[_0x4a86('0x2b')][_0x4a86('0xa')]&&!this[_0x4a86('0x35')]&&!this[_0x4a86('0x37')];}['render'](){super[_0x4a86('0x3e')](),this['refreshVisibleViews']();}[_0x4a86('0x8')](){this['element']['focus']();}[_0x4a86('0x29')](){this[_0x4a86('0x14')][_0x4a86('0x29')]();for(const _0x8a4449 of this[_0x4a86('0x13')])_0x8a4449['destroy']();super[_0x4a86('0x29')]();}[_0x4a86('0x3')](){this[_0x4a86('0x34')]?this[_0x4a86('0x25')]():this[_0x4a86('0x26')]();}['_handleNewCommentModel'](_0x50437d,_0x37f5b6){const _0x3ed74e=new this['_config']['CommentView'](this['locale'],_0x50437d,{'maxCommentCharsWhenCollapsed':this['_config'][_0x4a86('0x22')],'formatDateTime':this[_0x4a86('0x2b')]['formatDateTime'],'editorConfig':this['_config'][_0x4a86('0x12')]});_0x3ed74e[_0x4a86('0x3c')]=_0x50437d['id'],_0x3ed74e[_0x4a86('0x5')](_0x4a86('0x32'))['to'](this),_0x3ed74e[_0x4a86('0x5')](_0x4a86('0x30'))['to'](this),_0x3ed74e[_0x4a86('0x5')](_0x4a86('0x2'))['to'](this),_0x3ed74e[_0x4a86('0x5')](_0x4a86('0x1f'))['to'](this),_0x3ed74e[_0x4a86('0x5')](_0x4a86('0x1a'))['to'](this),this[_0x4a86('0x2e')](_0x3ed74e,'change:isEditMode',()=>this[_0x4a86('0x28')]()),this[_0x4a86('0x13')][_0x4a86('0x24')](_0x3ed74e,_0x37f5b6);}['_calculatePosition'](_0x1152e5){const _0x977063=this[_0x4a86('0x2d')][_0x4a86('0x6')](_0x1152e5);return this['resolvedCommentView']?this[_0x4a86('0x2f')][_0x4a86('0x9')]>_0x1152e5['authoredAt']?_0x977063-0x1:_0x977063:_0x977063-0x1;}[_0x4a86('0x36')](){if(this['_model'][_0x4a86('0x3a')]&&this['_model'][_0x4a86('0x27')]){const _0x176ce5={'id':_0x4a86('0x1c'),'author':this['_model']['resolvedBy'],'authoredAt':this[_0x4a86('0x2d')][_0x4a86('0x27')],'content':_0x52e041(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this[_0x4a86('0x2f')]=new this['_config'][(_0x4a86('0xd'))](this[_0x4a86('0x19')],_0x176ce5,{'maxCommentCharsWhenCollapsed':this[_0x4a86('0x2b')][_0x4a86('0x22')],'formatDateTime':this[_0x4a86('0x2b')]['formatDateTime'],'editorConfig':this[_0x4a86('0x2b')][_0x4a86('0x12')],'isSystemComment':!0x0}),this[_0x4a86('0x13')]['add'](this[_0x4a86('0x2f')],this[_0x4a86('0x2d')][_0x4a86('0x6')](_0x176ce5));}else this[_0x4a86('0x2f')]&&(this[_0x4a86('0x13')][_0x4a86('0x20')](this[_0x4a86('0x2f')]),this[_0x4a86('0x2f')]['destroy'](),this[_0x4a86('0x2f')]=null);this[_0x4a86('0x3')]();}[_0x4a86('0x33')](_0x117143){const _0x4a56da=this[_0x4a86('0x13')]['remove'](_0x117143['id']);this[_0x4a86('0x31')](_0x4a56da),_0x4a56da[_0x4a86('0x10')]&&this[_0x4a86('0x28')](),_0x4a56da[_0x4a86('0x29')]();}[_0x4a86('0x28')](){this['hasDirtyComment']=Array[_0x4a86('0x0')](this['commentViews'])[_0x4a86('0x39')](_0x25ccb0=>_0x25ccb0[_0x4a86('0x10')]);}[_0x4a86('0x25')](){const _0x4b9b2b=function(_0x30584c){const _0x36dba8=new _0x182468();for(const _0x28d3c8 of _0x30584c)_0x36dba8[_0x4a86('0x24')](_0x28d3c8);return _0x36dba8;}(this[_0x4a86('0x13')]),_0x471bf5=this[_0x4a86('0x14')][_0x4a86('0x1b')];for(let _0x130a97=0x1;_0x130a97<=_0x471bf5;_0x130a97++)_0x4b9b2b[_0x4a86('0x20')](0x1);for(const _0x5d2801 of _0x4b9b2b)_0x5d2801[_0x4a86('0x18')]();_0x471bf5>0x0&&_0x4b9b2b[_0x4a86('0x24')](this[_0x4a86('0x14')],0x1),is(_0x217ee7(Array[_0x4a86('0x0')](this[_0x4a86('0x3d')]),Array[_0x4a86('0x0')](_0x4b9b2b)),this[_0x4a86('0x3d')],_0x4b9b2b);}[_0x4a86('0x26')](){is(_0x217ee7(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this[_0x4a86('0x3d')],this['commentViews']);for(const _0x1031f5 of this[_0x4a86('0x3d')])_0x1031f5[_0x4a86('0x2a')]();}}function is(_0x57a4b8,_0x2b1ae7,_0x2480fe){let _0x571342=0x0;for(const _0x1283fc of _0x57a4b8)switch(_0x1283fc){case _0x4a86('0x3b'):_0x2b1ae7[_0x4a86('0x24')](_0x2480fe[_0x4a86('0x1')](_0x571342),_0x571342),_0x571342++;break;case _0x4a86('0x2c'):_0x2b1ae7['remove'](_0x571342);break;case _0x4a86('0x1d'):_0x571342++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e47=['length','fire','ck-context--quotes','Comment\x20was\x20made\x20on\x20an\x20element','listenTo','hasContext','ck-context-wrapper','contextValue','render','label','ck-context__value','lastIndexOf','context','offsetWidth','add','isReadOnly','...','tooltip','.ck-context','reopenButtonView','span','value','isResolvable','_model','ck-annotation__actions','reopenCommentThread','locale','isEnabled','ck-thread__header','querySelector','_trimContextValue','classList','overlay','mouseleave','_createReopenButton','ck-context','substring','isResolved','.ck-context__value','Reopen','icon','div','setTemplate','bind','element'];(function(_0x246655,_0x3e47b4){const _0x2fafab=function(_0xf56611){while(--_0xf56611){_0x246655['push'](_0x246655['shift']());}};_0x2fafab(++_0x3e47b4);}(_0x3e47,0xfd));const _0x2faf=function(_0x246655,_0x3e47b4){_0x246655=_0x246655-0x0;let _0x2fafab=_0x3e47[_0x246655];return _0x2fafab;};import{View as _0x3f4277,ButtonView as _0x117532}from'ckeditor5/src/ui.js';import{getTranslation as _0x5bc6ff}from'../../../utils/common-translations.js';import _0x782fbc from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x3f4277{constructor(_0x43a82d,_0x4faea7){super(_0x43a82d);const _0x42845a=this['bindTemplate'];this[_0x2faf('0x28')]=_0x4faea7,this['reopenButtonView']=this[_0x2faf('0x6')](),this[_0x2faf('0xf')](_0x2faf('0x16'))['to'](this[_0x2faf('0x28')],'context',_0x3d9088=>!!_0x3d9088),this[_0x2faf('0xf')](_0x2faf('0x18'))['to'](this[_0x2faf('0x28')],_0x2faf('0x1d'),_0x2bdfb2=>_0x2bdfb2&&_0x2bdfb2['value']?this[_0x2faf('0x2')](_0x2bdfb2[_0x2faf('0x26')]):_0x5bc6ff(this['locale'],_0x2faf('0x14'))),this[_0x2faf('0xe')]({'tag':'div','attributes':{'class':[_0x2faf('0x0')]},'children':[{'tag':_0x2faf('0xd'),'attributes':{'class':[_0x2faf('0x17')]},'children':[{'tag':'div','attributes':{'class':[_0x2faf('0x7'),_0x42845a['if'](_0x2faf('0x16'),_0x2faf('0x13'))]},'children':[{'tag':_0x2faf('0x25'),'attributes':{'class':[_0x2faf('0x1b')]},'children':[{'text':_0x42845a['to'](_0x2faf('0x18'))}]}]}]},{'tag':_0x2faf('0xd'),'attributes':{'class':[_0x2faf('0x29')]},'children':[this[_0x2faf('0x24')]]}]});}[_0x2faf('0x19')](){super[_0x2faf('0x19')](),this['_attachContextActions']();}['_createReopenButton'](){const _0x2b593c=new _0x117532(this[_0x2faf('0x2b')]);return _0x2b593c[_0x2faf('0x1a')]=_0x5bc6ff(this[_0x2faf('0x2b')],'Reopen'),_0x2b593c[_0x2faf('0x22')]=_0x5bc6ff(this[_0x2faf('0x2b')],_0x2faf('0xb')),_0x2b593c[_0x2faf('0xc')]=_0x782fbc,_0x2b593c[_0x2faf('0xf')](_0x2faf('0x2c'))['to'](this[_0x2faf('0x28')],_0x2faf('0x20'),_0x3e7a6d=>!_0x3e7a6d),_0x2b593c['bind']('isVisible')['to'](this[_0x2faf('0x28')],_0x2faf('0x27'),this[_0x2faf('0x28')],_0x2faf('0x9'),(_0x35619b,_0x5c3078)=>_0x35619b&&_0x5c3078),_0x2b593c['on']('execute',()=>{this[_0x2faf('0x12')](_0x2faf('0x2a'),this[_0x2faf('0x28')]['id']);}),_0x2b593c;}[_0x2faf('0x2')](_0x420c5d){if(_0x420c5d[_0x2faf('0x11')]<0x96)return _0x420c5d;const _0x15d703=_0x420c5d[_0x2faf('0x1c')]('\x20',0x93);return _0x420c5d[_0x2faf('0x8')](0x0,_0x15d703>-0x1?_0x15d703:0x93)+_0x2faf('0x21');}['_attachContextActions'](){const _0x1e8b27=this[_0x2faf('0x10')][_0x2faf('0x1')](_0x2faf('0x23')),_0x11fcd5=_0x1e8b27[_0x2faf('0x1')](_0x2faf('0xa'));this[_0x2faf('0x15')](_0x1e8b27,'mouseenter',()=>{_0x11fcd5[_0x2faf('0x1e')]<_0x11fcd5['scrollWidth']&&_0x1e8b27[_0x2faf('0x3')][_0x2faf('0x1f')]('overlay');}),this[_0x2faf('0x15')](_0x1e8b27,_0x2faf('0x5'),()=>{_0x1e8b27[_0x2faf('0x3')]['remove'](_0x2faf('0x4'));});}}
23
+ const _0x3e7c=['classList','contextValue','_trimContextValue','locale','setTemplate','execute','_attachContextActions','...','overlay','Reopen','fire','ck-annotation__actions','_createReopenButton','icon','reopenCommentThread','ck-context','length','span','render','remove','substring','div','_model','isReadOnly','context','element','querySelector','isResolvable','.ck-context','mouseleave','reopenButtonView','isVisible','isResolved','hasContext','add','label','listenTo','tooltip','lastIndexOf','ck-context-wrapper','bindTemplate','value','ck-thread__header','bind','isEnabled','.ck-context__value'];(function(_0x594ab2,_0x3e7c36){const _0xef5416=function(_0x534e6d){while(--_0x534e6d){_0x594ab2['push'](_0x594ab2['shift']());}};_0xef5416(++_0x3e7c36);}(_0x3e7c,0x1db));const _0xef54=function(_0x594ab2,_0x3e7c36){_0x594ab2=_0x594ab2-0x0;let _0xef5416=_0x3e7c[_0x594ab2];return _0xef5416;};import{View as _0x34f01c,ButtonView as _0x39c19e}from'ckeditor5/src/ui.js';import{getTranslation as _0x227edb}from'../../../utils/common-translations.js';import _0x4c6866 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x34f01c{constructor(_0x58376e,_0x478918){super(_0x58376e);const _0x2cdf2c=this[_0xef54('0x19')];this[_0xef54('0x7')]=_0x478918,this['reopenButtonView']=this['_createReopenButton'](),this[_0xef54('0x1c')](_0xef54('0x12'))['to'](this[_0xef54('0x7')],_0xef54('0x9'),_0x554db6=>!!_0x554db6),this[_0xef54('0x1c')](_0xef54('0x20'))['to'](this[_0xef54('0x7')],_0xef54('0x9'),_0x14f03a=>_0x14f03a&&_0x14f03a[_0xef54('0x1a')]?this[_0xef54('0x21')](_0x14f03a[_0xef54('0x1a')]):_0x227edb(this[_0xef54('0x22')],'Comment\x20was\x20made\x20on\x20an\x20element')),this[_0xef54('0x23')]({'tag':_0xef54('0x6'),'attributes':{'class':[_0xef54('0x1b')]},'children':[{'tag':_0xef54('0x6'),'attributes':{'class':[_0xef54('0x18')]},'children':[{'tag':'div','attributes':{'class':[_0xef54('0x0'),_0x2cdf2c['if']('hasContext','ck-context--quotes')]},'children':[{'tag':_0xef54('0x2'),'attributes':{'class':['ck-context__value']},'children':[{'text':_0x2cdf2c['to'](_0xef54('0x20'))}]}]}]},{'tag':_0xef54('0x6'),'attributes':{'class':[_0xef54('0x2a')]},'children':[this[_0xef54('0xf')]]}]});}[_0xef54('0x3')](){super[_0xef54('0x3')](),this[_0xef54('0x25')]();}[_0xef54('0x2b')](){const _0x429bb5=new _0x39c19e(this['locale']);return _0x429bb5[_0xef54('0x14')]=_0x227edb(this[_0xef54('0x22')],'Reopen'),_0x429bb5[_0xef54('0x16')]=_0x227edb(this[_0xef54('0x22')],_0xef54('0x28')),_0x429bb5[_0xef54('0x2c')]=_0x4c6866,_0x429bb5['bind'](_0xef54('0x1d'))['to'](this['_model'],_0xef54('0x8'),_0x5b15c8=>!_0x5b15c8),_0x429bb5[_0xef54('0x1c')](_0xef54('0x10'))['to'](this[_0xef54('0x7')],_0xef54('0xc'),this['_model'],_0xef54('0x11'),(_0x5130be,_0x428311)=>_0x5130be&&_0x428311),_0x429bb5['on'](_0xef54('0x24'),()=>{this[_0xef54('0x29')](_0xef54('0x2d'),this['_model']['id']);}),_0x429bb5;}[_0xef54('0x21')](_0x47564c){if(_0x47564c[_0xef54('0x1')]<0x96)return _0x47564c;const _0x4d00de=_0x47564c[_0xef54('0x17')]('\x20',0x93);return _0x47564c[_0xef54('0x5')](0x0,_0x4d00de>-0x1?_0x4d00de:0x93)+_0xef54('0x26');}[_0xef54('0x25')](){const _0x375dbe=this[_0xef54('0xa')]['querySelector'](_0xef54('0xd')),_0x4abfb4=_0x375dbe[_0xef54('0xb')](_0xef54('0x1e'));this['listenTo'](_0x375dbe,'mouseenter',()=>{_0x4abfb4['offsetWidth']<_0x4abfb4['scrollWidth']&&_0x375dbe[_0xef54('0x1f')][_0xef54('0x13')](_0xef54('0x27'));}),this[_0xef54('0x15')](_0x375dbe,_0xef54('0xe'),()=>{_0x375dbe[_0xef54('0x1f')][_0xef54('0x4')](_0xef54('0x27'));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x11eb=['extendTemplate','createEditor','ck-thread__user','ck-comment__input-container','focusTracker','commentInputView','destroy','userView','set','delegate','bindTemplate','setTemplate','showInput','change:showInput','value','then','editor'];(function(_0x2c0d82,_0x11eb35){var _0x21d963=function(_0x148352){while(--_0x148352){_0x2c0d82['push'](_0x2c0d82['shift']());}};_0x21d963(++_0x11eb35);}(_0x11eb,0x11d));var _0x21d9=function(_0x2c0d82,_0x11eb35){_0x2c0d82=_0x2c0d82-0x0;var _0x21d963=_0x11eb[_0x2c0d82];return _0x21d963;};import{View as _0x27f8e6}from'ckeditor5/src/ui.js';import _0x3d1821 from'./commentinputview.js';import{UserView as _0x2d0984}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x27f8e6{constructor(_0x2e7f4b,_0x42bf96,_0x46df0e){super(_0x2e7f4b),this[_0x21d9('0x9')]=new _0x3d1821(_0x2e7f4b,_0x46df0e),this[_0x21d9('0x9')]['bind']('showButtons')['to'](this[_0x21d9('0x9')][_0x21d9('0x8')],'isFocused',this['commentInputView'],_0x21d9('0x1'),(_0x3920a6,_0x25c4ad)=>_0x3920a6||!!_0x25c4ad),this[_0x21d9('0xc')](_0x21d9('0x10'),!0x1),this['on'](_0x21d9('0x0'),()=>{this[_0x21d9('0x10')]&&!this[_0x21d9('0x9')][_0x21d9('0x3')]&&this[_0x21d9('0x9')][_0x21d9('0x5')]();}),this[_0x21d9('0x9')][_0x21d9('0xd')]('editorReady')['to'](this),this[_0x21d9('0x9')][_0x21d9('0xd')]('editorDestroyed')['to'](this),this['userView']=new _0x2d0984(_0x2e7f4b,_0x42bf96),this['userView'][_0x21d9('0x4')]({'attributes':{'class':_0x21d9('0x6')}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this[_0x21d9('0xf')]({'tag':'div','attributes':{'class':[_0x21d9('0x7'),this[_0x21d9('0xe')]['if'](_0x21d9('0x10'),'ck-comment__input-container--active')]},'children':[this[_0x21d9('0xb')],this['commentInputView']]});}[_0x21d9('0xa')](){return this[_0x21d9('0x9')][_0x21d9('0xa')]()[_0x21d9('0x2')](()=>super[_0x21d9('0xa')]());}}
23
+ var _0x20dc=['userView','extendTemplate','change:showInput','showInput','createEditor','isFocused','value','ck-thread__user','editorReady','then','delegate','focusTracker','set','editor','bind','editorDestroyed','bindTemplate','ck-comment__input-container--active','destroy','commentInputView'];(function(_0x3d27d4,_0x20dcc2){var _0x14f302=function(_0x3e8478){while(--_0x3e8478){_0x3d27d4['push'](_0x3d27d4['shift']());}};_0x14f302(++_0x20dcc2);}(_0x20dc,0x165));var _0x14f3=function(_0x3d27d4,_0x20dcc2){_0x3d27d4=_0x3d27d4-0x0;var _0x14f302=_0x20dc[_0x3d27d4];return _0x14f302;};import{View as _0x5bb1ee}from'ckeditor5/src/ui.js';import _0x250ded from'./commentinputview.js';import{UserView as _0x41ecaf}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x5bb1ee{constructor(_0x100c67,_0x3e30b2,_0x446a88){super(_0x100c67),this['commentInputView']=new _0x250ded(_0x100c67,_0x446a88),this[_0x14f3('0x2')][_0x14f3('0x11')]('showButtons')['to'](this[_0x14f3('0x2')][_0x14f3('0xe')],_0x14f3('0x8'),this[_0x14f3('0x2')],_0x14f3('0x9'),(_0x4e3bb4,_0x15e87f)=>_0x4e3bb4||!!_0x15e87f),this[_0x14f3('0xf')]('showInput',!0x1),this['on'](_0x14f3('0x5'),()=>{this[_0x14f3('0x6')]&&!this[_0x14f3('0x2')][_0x14f3('0x10')]&&this[_0x14f3('0x2')][_0x14f3('0x7')]();}),this[_0x14f3('0x2')][_0x14f3('0xd')](_0x14f3('0xb'))['to'](this),this[_0x14f3('0x2')]['delegate'](_0x14f3('0x12'))['to'](this),this['userView']=new _0x41ecaf(_0x100c67,_0x3e30b2),this['userView'][_0x14f3('0x4')]({'attributes':{'class':_0x14f3('0xa')}}),this['commentInputView'][_0x14f3('0x4')]({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this[_0x14f3('0x13')]['if']('showInput',_0x14f3('0x0'))]},'children':[this[_0x14f3('0x3')],this[_0x14f3('0x2')]]});}[_0x14f3('0x1')](){return this[_0x14f3('0x2')][_0x14f3('0x1')]()[_0x14f3('0xc')](()=>super['destroy']());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x92cf=['placeholder','cancelConfirm','extendTemplate','commentThreadChildren','getTemplate','ck-thread','_model','change:isActive','check','_boundFirstCommentView','ck-thread--active','commentViews','commentsListView','Write\x20a\x20comment...','showConfirm','resolveButton','addMany','_bindFirstCommentView','setTemplate','then','archivedAt','ck-reset_all-excluded','icon','actionIndicator','isEnabled','actionBar','length','Delete\x20comment\x20thread?','render','isReadOnly','change:isReadOnly','commentThreadInputView','_createResolveButton','containerElement','fire','resolveCommentThread','remove','_cancelAllConfirms','isConfirm','add','unbind','ck-thread__container','locale','change:archivedAt','isUnlinked','execute','div','listenTo','bind','.ck-thread__container','ck-thread--unlinked','set','commentThreadHeaderView','bindTemplate','createCollection'];(function(_0x4d1dc9,_0x92cf4e){const _0xae6419=function(_0x2a7b36){while(--_0x2a7b36){_0x4d1dc9['push'](_0x4d1dc9['shift']());}};_0xae6419(++_0x92cf4e);}(_0x92cf,0x1a8));const _0xae64=function(_0x4d1dc9,_0x92cf4e){_0x4d1dc9=_0x4d1dc9-0x0;let _0xae6419=_0x92cf[_0x4d1dc9];return _0xae6419;};import{ConfirmMixin as _0x58fc2e}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x1e8f67}from'ckeditor5/src/ui.js';import{icons as _0x1b52fd}from'ckeditor5/src/core.js';import _0xe8bdcf from'./basecommentthreadview.js';import{getTranslation as _0x5dca0e}from'../../../utils/common-translations.js';export default class ft extends _0x58fc2e(_0xe8bdcf){constructor(_0x154e92,_0x465f42,_0x5c5433,_0x2b0dbe){super(_0x154e92,_0x465f42,_0x5c5433,_0x2b0dbe),this[_0xae64('0x13')]=this[_0xae64('0xf')](),this[_0xae64('0x13')][_0xae64('0x20')]([this[_0xae64('0x1c')],this[_0xae64('0x2f')]]),this[_0xae64('0x16')][_0xae64('0x24')]&&this[_0xae64('0x13')][_0xae64('0x0')](this[_0xae64('0xd')],0x0),this['_model']['on'](_0xae64('0x4'),(_0x2a088a,_0x423a84,_0x48ec2d)=>{_0x48ec2d?this[_0xae64('0x13')]['has'](this['commentThreadHeaderView'])||this[_0xae64('0x13')]['add'](this[_0xae64('0xd')],0x0):this[_0xae64('0x13')]['remove'](this[_0xae64('0xd')]);}),this[_0xae64('0xc')](_0xae64('0x27'),null),this[_0xae64('0x31')]=null,this[_0xae64('0x19')]=null,this[_0xae64('0x3')]=_0x154e92,this[_0xae64('0x1f')]=this[_0xae64('0x30')](),this[_0xae64('0x22')](this[_0xae64('0x14')]()),this['on'](_0xae64('0x17'),(_0x5b658d,_0x131dd2,_0x4147aa)=>{_0x4147aa||this[_0xae64('0x35')]();}),this[_0xae64('0x8')](this[_0xae64('0x16')],_0xae64('0x2e'),(_0x5c14f0,_0x20342e,_0x55d040)=>{_0x55d040&&this[_0xae64('0x35')]();}),this[_0xae64('0x2a')]>0x0&&this[_0xae64('0x21')](),this[_0xae64('0x8')](this[_0xae64('0x1c')][_0xae64('0x1b')],'add',()=>{this[_0xae64('0x21')]();});}[_0xae64('0x14')](){const _0xfc943b=this[_0xae64('0xe')];return{'tag':_0xae64('0x7'),'attributes':{'class':[_0xae64('0x15'),_0xae64('0x25'),_0xfc943b['if']('isActive',_0xae64('0x1a')),_0xfc943b['if'](_0xae64('0x5'),_0xae64('0xb')),_0xfc943b['if'](_0xae64('0x36'),'ck-thread--remove-confirmation'),_0xfc943b['to'](_0xae64('0x27'),_0x4f528f=>_0x4f528f?'ck-thread--'+_0x4f528f:'')],'data-thread-id':this[_0xae64('0x16')]['id'],'tabindex':-0x1},'children':[{'tag':_0xae64('0x7'),'attributes':{'class':_0xae64('0x2')},'children':this[_0xae64('0x13')]}]};}[_0xae64('0x2c')](){super[_0xae64('0x2c')](),this[_0xae64('0x31')]=this['element']['querySelector'](_0xae64('0xa'));}[_0xae64('0x35')](){this[_0xae64('0x11')]();for(const _0x16cc9b of this[_0xae64('0x1c')]['commentViews'])_0x16cc9b['cancelConfirm']();}[_0xae64('0x21')](){const {locale:_0x4fc7f0}=this,_0x4ed695=this[_0xae64('0x1c')][_0xae64('0x1b')]['get'](0x0);_0x4ed695===this[_0xae64('0x19')]||_0x4ed695['isSystemComment']||(this['_boundFirstCommentView']=_0x4ed695,this[_0xae64('0x1')](_0xae64('0x27')),this[_0xae64('0x9')](_0xae64('0x27'))['to'](_0x4ed695,_0xae64('0x27'),_0x176c10=>'remove'===_0x176c10?_0xae64('0x34'):null),_0x4ed695[_0xae64('0x10')]=_0x5dca0e(_0x4fc7f0,_0xae64('0x1d')),_0x4ed695['removeButton']['on']('execute',_0xf1b8ec=>{_0xf1b8ec['stop'](),this[_0xae64('0x1e')](_0x5dca0e(_0x4fc7f0,_0xae64('0x2b')),this[_0xae64('0x31')])[_0xae64('0x23')](()=>{this[_0xae64('0x32')]('removeCommentThread');});},{'priority':'high'}),_0x4ed695[_0xae64('0x29')][_0xae64('0x0')](this[_0xae64('0x1f')],0x0));}[_0xae64('0x30')](){const _0x23706a=new _0x1e8f67(this[_0xae64('0x3')]);return _0x23706a['label']=_0x5dca0e(this[_0xae64('0x3')],'Resolve'),_0x23706a['tooltip']=_0x5dca0e(this[_0xae64('0x3')],'Resolve'),_0x23706a[_0xae64('0x26')]=_0x1b52fd[_0xae64('0x18')],_0x23706a[_0xae64('0x12')]({'attributes':{'class':'ck-comment--resolve'}}),_0x23706a[_0xae64('0x9')](_0xae64('0x28'))['to'](this[_0xae64('0x16')],_0xae64('0x2d'),_0x125396=>!_0x125396),_0x23706a[_0xae64('0x9')]('isVisible')['to'](this[_0xae64('0x16')],'isResolvable',this[_0xae64('0x16')],'isResolved',(_0x39a6b3,_0x500a10)=>_0x39a6b3&&!_0x500a10),_0x23706a['on'](_0xae64('0x6'),()=>{this[_0xae64('0x32')](_0xae64('0x33'),this['_model']['id']);}),_0x23706a;}}
23
+ const _0x3e82=['extendTemplate','actionBar','removeButton','listenTo','set','get','.ck-thread__container','length','div','element','Write\x20a\x20comment...','_cancelAllConfirms','commentsListView','ck-thread--unlinked','execute','isResolved','removeCommentThread','commentThreadHeaderView','icon','fire','high','Resolve','bindTemplate','commentViews','resolveButton','check','add','isResolvable','ck-thread','tooltip','ck-reset_all-excluded','stop','commentThreadChildren','isVisible','render','_createResolveButton','ck-thread--remove-confirmation','placeholder','getTemplate','addMany','archivedAt','unbind','_boundFirstCommentView','label','isConfirm','commentThreadInputView','ck-thread__container','Delete\x20comment\x20thread?','cancelConfirm','isEnabled','isActive','createCollection','change:isReadOnly','_bindFirstCommentView','has','bind','setTemplate','querySelector','actionIndicator','containerElement','remove','ck-thread--active','isUnlinked','locale','_model'];(function(_0x46a07d,_0x3e8226){const _0x587c18=function(_0x5e3006){while(--_0x5e3006){_0x46a07d['push'](_0x46a07d['shift']());}};_0x587c18(++_0x3e8226);}(_0x3e82,0x76));const _0x587c=function(_0x46a07d,_0x3e8226){_0x46a07d=_0x46a07d-0x0;let _0x587c18=_0x3e82[_0x46a07d];return _0x587c18;};import{ConfirmMixin as _0x7e9c80}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x497020}from'ckeditor5/src/ui.js';import{icons as _0x3251d6}from'ckeditor5/src/core.js';import _0x42ec5e from'./basecommentthreadview.js';import{getTranslation as _0x27d766}from'../../../utils/common-translations.js';export default class ft extends _0x7e9c80(_0x42ec5e){constructor(_0x57b3db,_0x1a6608,_0x2a82a8,_0x462640){super(_0x57b3db,_0x1a6608,_0x2a82a8,_0x462640),this[_0x587c('0x2c')]=this[_0x587c('0x3f')](),this[_0x587c('0x2c')][_0x587c('0x33')]([this[_0x587c('0x18')],this[_0x587c('0x39')]]),this[_0x587c('0xb')][_0x587c('0x34')]&&this[_0x587c('0x2c')]['add'](this[_0x587c('0x1d')],0x0),this[_0x587c('0xb')]['on']('change:archivedAt',(_0x1ba96f,_0x5b346b,_0x38b37f)=>{_0x38b37f?this[_0x587c('0x2c')][_0x587c('0x1')](this[_0x587c('0x1d')])||this[_0x587c('0x2c')][_0x587c('0x26')](this['commentThreadHeaderView'],0x0):this[_0x587c('0x2c')][_0x587c('0x7')](this['commentThreadHeaderView']);}),this[_0x587c('0x10')]('actionIndicator',null),this[_0x587c('0x6')]=null,this['_boundFirstCommentView']=null,this[_0x587c('0xa')]=_0x57b3db,this[_0x587c('0x24')]=this[_0x587c('0x2f')](),this[_0x587c('0x3')](this['getTemplate']()),this['on']('change:isActive',(_0x21dbd9,_0x514a2b,_0x52fc76)=>{_0x52fc76||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],_0x587c('0x40'),(_0x3581a2,_0xd154c7,_0x35e21d)=>{_0x35e21d&&this[_0x587c('0x17')]();}),this[_0x587c('0x13')]>0x0&&this[_0x587c('0x0')](),this[_0x587c('0xf')](this[_0x587c('0x18')]['commentViews'],'add',()=>{this[_0x587c('0x0')]();});}[_0x587c('0x32')](){const _0xfdb20e=this[_0x587c('0x22')];return{'tag':_0x587c('0x14'),'attributes':{'class':[_0x587c('0x28'),_0x587c('0x2a'),_0xfdb20e['if'](_0x587c('0x3e'),_0x587c('0x8')),_0xfdb20e['if'](_0x587c('0x9'),_0x587c('0x19')),_0xfdb20e['if'](_0x587c('0x38'),_0x587c('0x30')),_0xfdb20e['to'](_0x587c('0x5'),_0x23f928=>_0x23f928?'ck-thread--'+_0x23f928:'')],'data-thread-id':this[_0x587c('0xb')]['id'],'tabindex':-0x1},'children':[{'tag':_0x587c('0x14'),'attributes':{'class':_0x587c('0x3a')},'children':this[_0x587c('0x2c')]}]};}[_0x587c('0x2e')](){super[_0x587c('0x2e')](),this[_0x587c('0x6')]=this[_0x587c('0x15')][_0x587c('0x4')](_0x587c('0x12'));}[_0x587c('0x17')](){this[_0x587c('0x3c')]();for(const _0xee1463 of this['commentsListView']['commentViews'])_0xee1463[_0x587c('0x3c')]();}[_0x587c('0x0')](){const {locale:_0x473ecf}=this,_0x55d289=this[_0x587c('0x18')][_0x587c('0x23')][_0x587c('0x11')](0x0);_0x55d289===this[_0x587c('0x36')]||_0x55d289['isSystemComment']||(this[_0x587c('0x36')]=_0x55d289,this[_0x587c('0x35')](_0x587c('0x5')),this[_0x587c('0x2')](_0x587c('0x5'))['to'](_0x55d289,_0x587c('0x5'),_0x37181a=>'remove'===_0x37181a?_0x587c('0x7'):null),_0x55d289[_0x587c('0x31')]=_0x27d766(_0x473ecf,_0x587c('0x16')),_0x55d289[_0x587c('0xe')]['on'](_0x587c('0x1a'),_0x48aa06=>{_0x48aa06[_0x587c('0x2b')](),this['showConfirm'](_0x27d766(_0x473ecf,_0x587c('0x3b')),this['containerElement'])['then'](()=>{this['fire'](_0x587c('0x1c'));});},{'priority':_0x587c('0x20')}),_0x55d289[_0x587c('0xd')][_0x587c('0x26')](this['resolveButton'],0x0));}[_0x587c('0x2f')](){const _0x1f0b33=new _0x497020(this[_0x587c('0xa')]);return _0x1f0b33[_0x587c('0x37')]=_0x27d766(this[_0x587c('0xa')],_0x587c('0x21')),_0x1f0b33[_0x587c('0x29')]=_0x27d766(this[_0x587c('0xa')],'Resolve'),_0x1f0b33[_0x587c('0x1e')]=_0x3251d6[_0x587c('0x25')],_0x1f0b33[_0x587c('0xc')]({'attributes':{'class':'ck-comment--resolve'}}),_0x1f0b33['bind'](_0x587c('0x3d'))['to'](this[_0x587c('0xb')],'isReadOnly',_0x4a9d11=>!_0x4a9d11),_0x1f0b33[_0x587c('0x2')](_0x587c('0x2d'))['to'](this[_0x587c('0xb')],_0x587c('0x27'),this[_0x587c('0xb')],_0x587c('0x1b'),(_0x42e720,_0x5d5f7c)=>_0x42e720&&!_0x5d5f7c),_0x1f0b33['on'](_0x587c('0x1a'),()=>{this[_0x587c('0x1f')]('resolveCommentThread',this[_0x587c('0xb')]['id']);}),_0x1f0b33;}}