@ckeditor/ckeditor5-comments 34.1.0 → 34.2.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 (45) hide show
  1. package/build/comments.js +1 -1
  2. package/build/translations/es.js +1 -1
  3. package/build/translations/fr.js +1 -1
  4. package/build/translations/it.js +1 -1
  5. package/build/translations/pt-br.js +1 -1
  6. package/lang/translations/es.po +2 -1
  7. package/lang/translations/fr.po +2 -1
  8. package/lang/translations/it.po +2 -1
  9. package/lang/translations/pt-br.po +2 -1
  10. package/package.json +3 -3
  11. package/src/annotations/annotation.js +1 -1
  12. package/src/annotations/annotationcollection.js +1 -1
  13. package/src/annotations/annotations.js +1 -1
  14. package/src/annotations/annotationsuis.js +1 -1
  15. package/src/annotations/editorannotations.js +1 -1
  16. package/src/annotations/inlineannotations.js +1 -1
  17. package/src/annotations/narrowsidebar.js +1 -1
  18. package/src/annotations/sidebar.js +1 -1
  19. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  20. package/src/annotations/view/annotationview.js +1 -1
  21. package/src/annotations/view/sidebaritemview.js +1 -1
  22. package/src/annotations/view/sidebarview.js +1 -1
  23. package/src/annotations/widesidebar.js +1 -1
  24. package/src/comments/addcommentthreadcommand.js +1 -1
  25. package/src/comments/commentsediting.js +1 -1
  26. package/src/comments/commentsrepository.js +1 -1
  27. package/src/comments/commentsui.js +1 -1
  28. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  29. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  30. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  31. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  32. package/src/comments/ui/commentthreadcontroller.js +1 -1
  33. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  34. package/src/comments/ui/view/basecommentview.js +1 -1
  35. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  36. package/src/comments/ui/view/commentcontentview.js +1 -1
  37. package/src/comments/ui/view/commentinputview.js +1 -1
  38. package/src/comments/ui/view/commentslistview.js +1 -1
  39. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  40. package/src/comments/ui/view/commentthreadview.js +1 -1
  41. package/src/comments/ui/view/commentview.js +1 -1
  42. package/src/comments.js +1 -1
  43. package/src/commentsonly.js +1 -1
  44. package/src/utils/common-translations.js +1 -1
  45. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3858=['bindTemplate','setTemplate','NUMBER_OF_COMMENTS','count'];(function(_0x141588,_0x385806){const _0x33887b=function(_0x5be669){while(--_0x5be669){_0x141588['push'](_0x141588['shift']());}};_0x33887b(++_0x385806);}(_0x3858,0xb8));const _0x3388=function(_0x141588,_0x385806){_0x141588=_0x141588-0x0;let _0x33887b=_0x3858[_0x141588];return _0x33887b;};import{View as _0x540276}from'ckeditor5/src/ui';import{getTranslation as _0x103cae}from'../../../utils/common-translations';export default class Nt extends _0x540276{constructor(_0x5bc704){super(_0x5bc704);const _0x45537f=this[_0x3388('0x0')];this['set'](_0x3388('0x3')),this[_0x3388('0x1')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x45537f['to'](_0x3388('0x3'),_0x4e29de=>_0x103cae(_0x5bc704,_0x3388('0x2'),_0x4e29de))}]});}}
23
+ const _0x1651=['set','count','bindTemplate','setTemplate'];(function(_0x3862b2,_0x1651df){const _0x3cc564=function(_0x15acdb){while(--_0x15acdb){_0x3862b2['push'](_0x3862b2['shift']());}};_0x3cc564(++_0x1651df);}(_0x1651,0x151));const _0x3cc5=function(_0x3862b2,_0x1651df){_0x3862b2=_0x3862b2-0x0;let _0x3cc564=_0x1651[_0x3862b2];return _0x3cc564;};import{View as _0x562d2c}from'ckeditor5/src/ui';import{getTranslation as _0x435fef}from'../../../utils/common-translations';export default class Nt extends _0x562d2c{constructor(_0x1d1735){super(_0x1d1735);const _0x443786=this[_0x3cc5('0x1')];this[_0x3cc5('0x3')](_0x3cc5('0x0')),this[_0x3cc5('0x2')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x443786['to'](_0x3cc5('0x0'),_0x15a6be=>_0x435fef(_0x1d1735,'NUMBER_OF_COMMENTS',_0x15a6be))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4c07=['ck-comment__content','content','render','set','setTemplate','ck-annotation__content','element','change:content','innerHTML'];(function(_0x59d10c,_0x4c0711){var _0x42114d=function(_0x5c921c){while(--_0x5c921c){_0x59d10c['push'](_0x59d10c['shift']());}};_0x42114d(++_0x4c0711);}(_0x4c07,0x1dd));var _0x4211=function(_0x59d10c,_0x4c0711){_0x59d10c=_0x59d10c-0x0;var _0x42114d=_0x4c07[_0x59d10c];return _0x42114d;};import{View as _0xa96acb}from'ckeditor5/src/ui';export default class Et extends _0xa96acb{constructor(_0x1d1a2e){super(_0x1d1a2e),this[_0x4211('0x3')]('content',''),this[_0x4211('0x4')]({'tag':'div','attributes':{'class':[_0x4211('0x0'),_0x4211('0x5')]}});}[_0x4211('0x2')](){super['render'](),this['on'](_0x4211('0x7'),(_0x2078ce,_0x5dc4ff,_0x1cda66)=>{this[_0x4211('0x6')][_0x4211('0x8')]=_0x1cda66;}),this['element']['innerHTML']=this[_0x4211('0x1')];}}
23
+ var _0x46e5=['div','ck-comment__content','ck-annotation__content','element','render','innerHTML','setTemplate','content'];(function(_0x10354c,_0x46e5f6){var _0x55c1b8=function(_0x177193){while(--_0x177193){_0x10354c['push'](_0x10354c['shift']());}};_0x55c1b8(++_0x46e5f6);}(_0x46e5,0xa8));var _0x55c1=function(_0x10354c,_0x46e5f6){_0x10354c=_0x10354c-0x0;var _0x55c1b8=_0x46e5[_0x10354c];return _0x55c1b8;};import{View as _0x165529}from'ckeditor5/src/ui';export default class Et extends _0x165529{constructor(_0x130f66){super(_0x130f66),this['set'](_0x55c1('0x7'),''),this[_0x55c1('0x6')]({'tag':_0x55c1('0x0'),'attributes':{'class':[_0x55c1('0x1'),_0x55c1('0x2')]}});}[_0x55c1('0x4')](){super[_0x55c1('0x4')](),this['on']('change:content',(_0x2574b9,_0x247c23,_0x97f1a1)=>{this[_0x55c1('0x3')][_0x55c1('0x5')]=_0x97f1a1;}),this[_0x55c1('0x3')][_0x55c1('0x5')]=this[_0x55c1('0x7')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x319e=['_createCancelButton','submitButtonView','focusPrevious','add','editor','create','stop','trim','low','insertBefore','focusNext','Cancel','shift\x20+\x20tab','document','_editorCreationPromise','icon','change','set','initialData','length','bind','TOO_LONG_COMMENT_ALERT','focusTracker','model','high','keystrokes','ck-comment__input-actions--cancel','_isDestroyed','extendTemplate','value','element','setData','submit','destroy','ck-comment__input-actions','disabledSubmit','fire','ck-comment__input-actions--active','cancelButtonView','placeholder','label','then','Reply...','_createSubmitButton','cancel','forEach','tab','Submit','isRendered','_initializeFocusCycling','getData','view','ck-comment__input-actions--submit','bindTemplate','editorReady','ck-comment__input-wrapper','Esc','focus','showButtons','execute'];(function(_0x2b6b1c,_0x319e52){const _0x478a93=function(_0xa9c7fd){while(--_0xa9c7fd){_0x2b6b1c['push'](_0x2b6b1c['shift']());}};_0x478a93(++_0x319e52);}(_0x319e,0x11a));const _0x478a=function(_0x2b6b1c,_0x319e52){_0x2b6b1c=_0x2b6b1c-0x0;let _0x478a93=_0x319e[_0x2b6b1c];return _0x478a93;};import{View as _0x25f8b7,ViewCollection as _0x53cfcb,FocusCycler as _0x30ca6f,ButtonView as _0x107732}from'ckeditor5/src/ui';import{FocusTracker as _0x3a57c9,KeystrokeHandler as _0x472aa8}from'ckeditor5/src/utils';import{icons as _0x40ff7e}from'ckeditor5/src/core';import _0x319118 from'../commenteditor/commenteditor';import{getTranslation as _0xf86d64}from'../../../utils/common-translations';export default class Tt extends _0x25f8b7{constructor(_0x1f1807,_0x54370b={}){super(_0x1f1807),this['editor']=new _0x319118(_0x54370b),this[_0x478a('0x2b')]=new _0x472aa8(),this[_0x478a('0x28')]=new _0x3a57c9(),this[_0x478a('0x23')](_0x478a('0x2f'),_0x54370b[_0x478a('0x24')]||''),this[_0x478a('0x23')](_0x478a('0x35'),!0x1),this[_0x478a('0x23')](_0x478a('0x10'),!0x0),this[_0x478a('0x23')]('placeholder',_0xf86d64(_0x1f1807,_0x478a('0x0'))),this[_0x478a('0x13')]=this['_createSubmitButton'](),this[_0x478a('0x38')]=this['_createCancelButton'](),this['setTemplate']({'tag':'div','attributes':{'class':[_0x478a('0xd')]},'children':[{'tag':'div','attributes':{'class':[_0x478a('0x34'),this[_0x478a('0xb')]['if'](_0x478a('0x10'),_0x478a('0x37'))]},'children':[this[_0x478a('0x13')],this[_0x478a('0x38')]]}]}),this['keystrokes'][_0x478a('0x23')](_0x478a('0xe'),(_0x461b10,_0x382d08)=>{this[_0x478a('0x38')]['fire'](_0x478a('0x11')),_0x382d08();}),this['on'](_0x478a('0x32'),(_0x5e3c87,_0xef63ad)=>{_0xef63ad[_0x478a('0x25')]>0xfde8?(alert(_0xf86d64(_0x1f1807,_0x478a('0x27'),[_0xef63ad[_0x478a('0x25')],0xfde8])),_0x5e3c87[_0x478a('0x18')]()):this[_0x478a('0x16')][_0x478a('0x31')]('');},{'priority':_0x478a('0x2a')});}['render'](){super['render']();const {editor:_0x16d278,element:_0x1807d2}=this;this[_0x478a('0x2b')]['listenTo'](_0x1807d2),this[_0x478a('0x28')][_0x478a('0x15')](_0x1807d2),this[_0x478a('0x20')]=_0x16d278[_0x478a('0x17')]()[_0x478a('0x3b')](()=>{_0x1807d2[_0x478a('0x1b')](_0x16d278['ui'][_0x478a('0x30')],_0x1807d2['firstChild']),_0x16d278[_0x478a('0x29')][_0x478a('0x1f')]['on'](_0x478a('0x22'),()=>this[_0x478a('0x2f')]=_0x16d278[_0x478a('0x8')]()),_0x16d278[_0x478a('0x26')](_0x478a('0x39'))['to'](this),this[_0x478a('0x7')](_0x16d278),this['fire'](_0x478a('0xc'));});}[_0x478a('0xf')](){this[_0x478a('0x16')]['focus']();}async[_0x478a('0x33')](){this[_0x478a('0x2d')]||(this[_0x478a('0x2d')]=!0x0,this[_0x478a('0x6')]&&(await this[_0x478a('0x20')],await this[_0x478a('0x16')][_0x478a('0x33')]()),await super[_0x478a('0x33')]());}[_0x478a('0x1')](){const {locale:_0x3de5e2}=this,_0x28beac=new _0x107732(_0x3de5e2);return _0x28beac[_0x478a('0x2e')]({'attributes':{'class':[_0x478a('0xa')]}}),_0x28beac[_0x478a('0x3a')]=_0xf86d64(_0x3de5e2,_0x478a('0x5')),_0x28beac[_0x478a('0x21')]=_0x40ff7e['check'],_0x28beac['on']('execute',()=>{this[_0x478a('0x36')](_0x478a('0x32'),this[_0x478a('0x2f')]);}),_0x28beac[_0x478a('0x26')]('isEnabled')['to'](this,'value',this,_0x478a('0x35'),(_0x3b0dae,_0x41b67c)=>!_0x41b67c&&!!_0x3b0dae[_0x478a('0x19')]()),_0x28beac;}[_0x478a('0x12')](){const {locale:_0x3f5ebe}=this,_0x48171c=new _0x107732(_0x3f5ebe);return _0x48171c[_0x478a('0x2e')]({'attributes':{'class':[_0x478a('0x2c')]}}),_0x48171c[_0x478a('0x3a')]=_0xf86d64(_0x3f5ebe,_0x478a('0x1d')),_0x48171c[_0x478a('0x21')]=_0x40ff7e[_0x478a('0x2')],_0x48171c['on']('execute',()=>{this[_0x478a('0x16')][_0x478a('0x31')](''),this[_0x478a('0x36')](_0x478a('0x2'));}),_0x48171c;}[_0x478a('0x7')](_0x4cd98a){const _0x328db9=this[_0x478a('0x28')],_0x150d0d=new _0x53cfcb();[_0x4cd98a['ui'][_0x478a('0x9')],this[_0x478a('0x13')],this['cancelButtonView']][_0x478a('0x3')](_0x2a74d6=>{_0x150d0d['add'](_0x2a74d6),_0x328db9['add'](_0x2a74d6[_0x478a('0x30')]);});const _0x5a8ac8=new _0x30ca6f({'focusables':_0x150d0d,'focusTracker':_0x328db9});this[_0x478a('0x2b')][_0x478a('0x23')](_0x478a('0x4'),(_0x70228d,_0x38d65a)=>{_0x5a8ac8[_0x478a('0x1c')](),_0x38d65a();},{'priority':_0x478a('0x1a')}),this[_0x478a('0x2b')][_0x478a('0x23')](_0x478a('0x1e'),(_0x4a80f6,_0x277a9b)=>{_0x5a8ac8[_0x478a('0x14')](),_0x277a9b();},{'priority':_0x478a('0x1a')});}}
23
+ const _0x19ef=['getData','destroy','execute','initialData','extendTemplate','focusPrevious','forEach','add','Esc','focusTracker','cancel','Cancel','ck-comment__input-wrapper','ck-comment__input-actions--active','setData','insertBefore','icon','then','element','editorReady','_createCancelButton','editor','bind','submitButtonView','tab','set','listenTo','disabledSubmit','submit','shift\x20+\x20tab','fire','render','model','showButtons','placeholder','_editorCreationPromise','Submit','high','_initializeFocusCycling','Reply...','document','keystrokes','view','cancelButtonView','trim','div','focus','firstChild','_createSubmitButton','length','focusNext','low','_isDestroyed','value','ck-comment__input-actions','ck-comment__input-actions--cancel'];(function(_0x4240d0,_0x19ef0b){const _0x10347f=function(_0x51967f){while(--_0x51967f){_0x4240d0['push'](_0x4240d0['shift']());}};_0x10347f(++_0x19ef0b);}(_0x19ef,0x17a));const _0x1034=function(_0x4240d0,_0x19ef0b){_0x4240d0=_0x4240d0-0x0;let _0x10347f=_0x19ef[_0x4240d0];return _0x10347f;};import{View as _0x2e3ad0,ViewCollection as _0x2099d0,FocusCycler as _0x5cd270,ButtonView as _0x50a041}from'ckeditor5/src/ui';import{FocusTracker as _0x2593ed,KeystrokeHandler as _0x116426}from'ckeditor5/src/utils';import{icons as _0x3206fd}from'ckeditor5/src/core';import _0x4fa690 from'../commenteditor/commenteditor';import{getTranslation as _0x2a4f5f}from'../../../utils/common-translations';export default class Tt extends _0x2e3ad0{constructor(_0x57ce62,_0x3466f1={}){super(_0x57ce62),this[_0x1034('0x23')]=new _0x4fa690(_0x3466f1),this[_0x1034('0x37')]=new _0x116426(),this[_0x1034('0x17')]=new _0x2593ed(),this['set'](_0x1034('0xb'),_0x3466f1[_0x1034('0x11')]||''),this[_0x1034('0x27')](_0x1034('0x29'),!0x1),this[_0x1034('0x27')](_0x1034('0x2f'),!0x0),this[_0x1034('0x27')](_0x1034('0x30'),_0x2a4f5f(_0x57ce62,_0x1034('0x35'))),this[_0x1034('0x25')]=this[_0x1034('0x6')](),this['cancelButtonView']=this['_createCancelButton'](),this['setTemplate']({'tag':_0x1034('0x3'),'attributes':{'class':[_0x1034('0x1a')]},'children':[{'tag':_0x1034('0x3'),'attributes':{'class':[_0x1034('0xc'),this['bindTemplate']['if'](_0x1034('0x2f'),_0x1034('0x1b'))]},'children':[this[_0x1034('0x25')],this[_0x1034('0x1')]]}]}),this[_0x1034('0x37')][_0x1034('0x27')](_0x1034('0x16'),(_0x1986c9,_0x5be890)=>{this[_0x1034('0x1')][_0x1034('0x2c')](_0x1034('0x10')),_0x5be890();}),this['on'](_0x1034('0x2a'),(_0x443761,_0x11b405)=>{_0x11b405['length']>0xfde8?(alert(_0x2a4f5f(_0x57ce62,'TOO_LONG_COMMENT_ALERT',[_0x11b405[_0x1034('0x7')],0xfde8])),_0x443761['stop']()):this[_0x1034('0x23')][_0x1034('0x1c')]('');},{'priority':_0x1034('0x33')});}[_0x1034('0x2d')](){super[_0x1034('0x2d')]();const {editor:_0x4c709a,element:_0x15b485}=this;this[_0x1034('0x37')][_0x1034('0x28')](_0x15b485),this[_0x1034('0x17')][_0x1034('0x15')](_0x15b485),this['_editorCreationPromise']=_0x4c709a['create']()[_0x1034('0x1f')](()=>{_0x15b485[_0x1034('0x1d')](_0x4c709a['ui'][_0x1034('0x20')],_0x15b485[_0x1034('0x5')]),_0x4c709a[_0x1034('0x2e')][_0x1034('0x36')]['on']('change',()=>this[_0x1034('0xb')]=_0x4c709a[_0x1034('0xe')]()),_0x4c709a[_0x1034('0x24')]('placeholder')['to'](this),this[_0x1034('0x34')](_0x4c709a),this['fire'](_0x1034('0x21'));});}[_0x1034('0x4')](){this['editor'][_0x1034('0x4')]();}async[_0x1034('0xf')](){this['_isDestroyed']||(this[_0x1034('0xa')]=!0x0,this['isRendered']&&(await this[_0x1034('0x31')],await this[_0x1034('0x23')][_0x1034('0xf')]()),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x4d6b5e}=this,_0x2893b4=new _0x50a041(_0x4d6b5e);return _0x2893b4[_0x1034('0x12')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2893b4['label']=_0x2a4f5f(_0x4d6b5e,_0x1034('0x32')),_0x2893b4[_0x1034('0x1e')]=_0x3206fd['check'],_0x2893b4['on']('execute',()=>{this[_0x1034('0x2c')](_0x1034('0x2a'),this[_0x1034('0xb')]);}),_0x2893b4['bind']('isEnabled')['to'](this,_0x1034('0xb'),this,_0x1034('0x29'),(_0x543e6e,_0x1bcd36)=>!_0x1bcd36&&!!_0x543e6e[_0x1034('0x2')]()),_0x2893b4;}[_0x1034('0x22')](){const {locale:_0x5026b6}=this,_0x4c2a26=new _0x50a041(_0x5026b6);return _0x4c2a26[_0x1034('0x12')]({'attributes':{'class':[_0x1034('0xd')]}}),_0x4c2a26['label']=_0x2a4f5f(_0x5026b6,_0x1034('0x19')),_0x4c2a26[_0x1034('0x1e')]=_0x3206fd[_0x1034('0x18')],_0x4c2a26['on'](_0x1034('0x10'),()=>{this['editor'][_0x1034('0x1c')](''),this['fire'](_0x1034('0x18'));}),_0x4c2a26;}['_initializeFocusCycling'](_0x1caf22){const _0x1edcac=this['focusTracker'],_0x577442=new _0x2099d0();[_0x1caf22['ui'][_0x1034('0x0')],this[_0x1034('0x25')],this[_0x1034('0x1')]][_0x1034('0x14')](_0x2de9af=>{_0x577442[_0x1034('0x15')](_0x2de9af),_0x1edcac[_0x1034('0x15')](_0x2de9af[_0x1034('0x20')]);});const _0x401cf4=new _0x5cd270({'focusables':_0x577442,'focusTracker':_0x1edcac});this['keystrokes'][_0x1034('0x27')](_0x1034('0x26'),(_0x397b7d,_0x53f197)=>{_0x401cf4[_0x1034('0x8')](),_0x53f197();},{'priority':'low'}),this[_0x1034('0x37')][_0x1034('0x27')](_0x1034('0x2b'),(_0x7726a3,_0x3ef709)=>{_0x401cf4[_0x1034('0x13')](),_0x3ef709();},{'priority':_0x1034('0x9')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b59=['from','refreshVisibleViews','viewUid','destroy','_updateHasDirtyComment','createCollection','_rearrangeExpand','_handleRemoveCommentModel','element','some','_config','visibleViews','listenTo','length','_shouldCollapse','isActive','ck-thread__comments','equal','hasDirtyComment','change:isEditMode','set','_rearrangeCollapse','isEditMode','_collapsedCommentsView','comments','add','commentViews','formatDateTime','remove','expand','commentUpdated','focus','maxCommentCharsWhenCollapsed','count','render','insert','updateComment','removeComment','delete','stopListening','change:hasDirtyComment','_handleNewCommentModel'];(function(_0x4cde7c,_0x4b5941){const _0x229c0a=function(_0x309521){while(--_0x309521){_0x4cde7c['push'](_0x4cde7c['shift']());}};_0x229c0a(++_0x4b5941);}(_0x4b59,0x1a7));const _0x229c=function(_0x4cde7c,_0x4b5941){_0x4cde7c=_0x4cde7c-0x0;let _0x229c0a=_0x4b59[_0x4cde7c];return _0x229c0a;};import{View as _0x49ff2a}from'ckeditor5/src/ui';import{diff as _0x112b46,Collection as _0x5e293a}from'ckeditor5/src/utils';import _0x2a3ef9 from'./collapsedcommentsview';export default class L extends _0x49ff2a{constructor(_0x5438de,_0x91f125,_0x2479fe){super(_0x5438de),this['set'](_0x229c('0xf'),!0x1),this['set'](_0x229c('0xa'),_0x91f125[_0x229c('0x15')][_0x229c('0xa')]),this[_0x229c('0x11')](_0x229c('0xc'),!0x1),this['_model']=_0x91f125,this[_0x229c('0x7')]=_0x2479fe,this[_0x229c('0x17')]=this[_0x229c('0x2')](),this[_0x229c('0x8')]=this['createCollection'](),this[_0x229c('0x14')]=new _0x2a3ef9(_0x5438de),this[_0x229c('0x14')]['bind']('count')['to'](this,_0x229c('0xa'),_0xbc2dae=>_0xbc2dae-this[_0x229c('0x7')]['maxCommentsWhenCollapsed']);for(const _0x5b4ef5 of _0x91f125[_0x229c('0x15')])this[_0x229c('0x26')](_0x5b4ef5);this[_0x229c('0x9')](_0x91f125['comments'],_0x229c('0x16'),(_0xee5a27,_0x24d4db)=>{this[_0x229c('0xa')]++,this['_handleNewCommentModel'](_0x24d4db),this[_0x229c('0x28')]();}),this[_0x229c('0x9')](_0x91f125[_0x229c('0x15')],_0x229c('0x19'),(_0xb4910b,_0x3e3a2d)=>{this[_0x229c('0xa')]--,this['_handleRemoveCommentModel'](_0x3e3a2d),this['refreshVisibleViews']();}),this['listenTo'](_0x91f125,_0x229c('0x1b'),()=>this[_0x229c('0x28')]()),this['on']('change:isActive',()=>this[_0x229c('0x28')]()),this['on'](_0x229c('0x25'),()=>this[_0x229c('0x28')]()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x229c('0xd')]},'children':this[_0x229c('0x8')]});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this[_0x229c('0xc')]&&!this['hasDirtyComment'];}['render'](){super[_0x229c('0x1f')](),this[_0x229c('0x28')]();}[_0x229c('0x1c')](){this[_0x229c('0x5')][_0x229c('0x1c')]();}[_0x229c('0x0')](){this['_collapsedCommentsView'][_0x229c('0x0')]();for(const _0x9ec08c of this[_0x229c('0x17')])_0x9ec08c[_0x229c('0x0')]();super['destroy']();}[_0x229c('0x28')](){this[_0x229c('0xb')]?this['_rearrangeCollapse']():this[_0x229c('0x3')]();}['_handleNewCommentModel'](_0x29ce2a){const _0xc99503=new this[(_0x229c('0x7'))]['CommentView'](this['locale'],_0x29ce2a,{'maxCommentCharsWhenCollapsed':this['_config'][_0x229c('0x1d')],'formatDateTime':this[_0x229c('0x7')][_0x229c('0x18')],'editorConfig':this[_0x229c('0x7')]['editorConfig']});_0xc99503[_0x229c('0x29')]=_0x29ce2a['id'],_0xc99503['delegate'](_0x229c('0x22'))['to'](this),_0xc99503['delegate'](_0x229c('0x21'))['to'](this),this['listenTo'](_0xc99503,_0x229c('0x10'),()=>this['_updateHasDirtyComment']()),this[_0x229c('0x17')][_0x229c('0x16')](_0xc99503);}[_0x229c('0x4')](_0x4c5f37){const _0x18e6e5=this[_0x229c('0x17')][_0x229c('0x19')](_0x4c5f37['id']);this[_0x229c('0x24')](_0x18e6e5),_0x18e6e5['isEditMode']&&this[_0x229c('0x1')](),_0x18e6e5[_0x229c('0x0')]();}[_0x229c('0x1')](){this[_0x229c('0xf')]=Array[_0x229c('0x27')](this['commentViews'])[_0x229c('0x6')](_0x23475c=>_0x23475c[_0x229c('0x13')]);}[_0x229c('0x12')](){const _0x157708=function(_0x105662){const _0x174a4c=new _0x5e293a();for(const _0x452fe6 of _0x105662)_0x174a4c[_0x229c('0x16')](_0x452fe6);return _0x174a4c;}(this[_0x229c('0x17')]),_0x1c2340=this[_0x229c('0x14')][_0x229c('0x1e')];for(let _0x19c22e=0x1;_0x19c22e<=_0x1c2340;_0x19c22e++)_0x157708['remove'](0x1);for(const _0x1d3af2 of _0x157708)_0x1d3af2['collapse']();_0x1c2340>0x0&&_0x157708['add'](this[_0x229c('0x14')],0x1),Ut(_0x112b46(Array['from'](this['visibleViews']),Array['from'](_0x157708)),this['visibleViews'],_0x157708);}['_rearrangeExpand'](){Ut(_0x112b46(Array[_0x229c('0x27')](this['visibleViews']),Array[_0x229c('0x27')](this['commentViews'])),this[_0x229c('0x8')],this[_0x229c('0x17')]);for(const _0x416b8a of this[_0x229c('0x8')])_0x416b8a[_0x229c('0x1a')]();}}function Ut(_0x57d874,_0x2ddecf,_0x765b31){let _0xaaef07=0x0;for(const _0x3b21e6 of _0x57d874)switch(_0x3b21e6){case _0x229c('0x20'):_0x2ddecf[_0x229c('0x16')](_0x765b31['get'](_0xaaef07),_0xaaef07),_0xaaef07++;break;case _0x229c('0x23'):_0x2ddecf[_0x229c('0x19')](_0xaaef07);break;case _0x229c('0xe'):_0xaaef07++;}}
23
+ const _0xfe39=['_model','maxThreadTotalWeight','editorConfig','change:hasDirtyComment','_config','_handleRemoveCommentModel','insert','render','commentViews','change:isActive','isEditMode','stopListening','formatDateTime','weight','get','delete','from','length','visibleViews','_handleNewCommentModel','equal','_rearrangeExpand','_collapsedCommentsView','set','listenTo','destroy','refreshVisibleViews','maxCommentsWhenCollapsed','_rearrangeCollapse','ck-thread__comments','_updateHasDirtyComment','change:isEditMode','viewUid','hasDirtyComment','comments','add','remove','focus','createCollection','delegate','_shouldCollapse','count','isActive'];(function(_0x3deabc,_0xfe39a1){const _0x5ea267=function(_0x5b0edb){while(--_0x5b0edb){_0x3deabc['push'](_0x3deabc['shift']());}};_0x5ea267(++_0xfe39a1);}(_0xfe39,0x168));const _0x5ea2=function(_0x3deabc,_0xfe39a1){_0x3deabc=_0x3deabc-0x0;let _0x5ea267=_0xfe39[_0x3deabc];return _0x5ea267;};import{View as _0x4dfe29}from'ckeditor5/src/ui';import{diff as _0x57ea00,Collection as _0x119050}from'ckeditor5/src/utils';import _0x102404 from'./collapsedcommentsview';export default class ct extends _0x4dfe29{constructor(_0x204ecb,_0x345055,_0x2df68f){super(_0x204ecb),this[_0x5ea2('0x7')]('hasDirtyComment',!0x1),this[_0x5ea2('0x7')](_0x5ea2('0x1'),_0x345055['comments'][_0x5ea2('0x1')]),this[_0x5ea2('0x7')](_0x5ea2('0x1a'),!0x1),this[_0x5ea2('0x1b')]=_0x345055,this[_0x5ea2('0x1f')]=_0x2df68f,this[_0x5ea2('0x23')]=this[_0x5ea2('0x16')](),this['visibleViews']=this[_0x5ea2('0x16')](),this[_0x5ea2('0x6')]=new _0x102404(_0x204ecb),this[_0x5ea2('0x6')]['bind'](_0x5ea2('0x19'))['to'](this,'length',_0x41adf2=>_0x41adf2-this[_0x5ea2('0x1f')][_0x5ea2('0xb')]);for(const _0x278810 of _0x345055[_0x5ea2('0x12')])this[_0x5ea2('0x3')](_0x278810);this['listenTo'](_0x345055[_0x5ea2('0x12')],_0x5ea2('0x13'),(_0x1e82aa,_0x10c9ab)=>{this[_0x5ea2('0x1')]++,this[_0x5ea2('0x3')](_0x10c9ab),this['refreshVisibleViews']();}),this['listenTo'](_0x345055['comments'],_0x5ea2('0x14'),(_0x367ae9,_0x8b4a24)=>{this[_0x5ea2('0x1')]--,this[_0x5ea2('0x20')](_0x8b4a24),this[_0x5ea2('0xa')]();}),this['listenTo'](_0x345055,'commentUpdated',()=>this['refreshVisibleViews']()),this['on'](_0x5ea2('0x24'),()=>this[_0x5ea2('0xa')]()),this['on'](_0x5ea2('0x1e'),()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x5ea2('0xd')]},'children':this[_0x5ea2('0x2')]});}get['_shouldCollapse'](){return this[_0x5ea2('0x1b')][_0x5ea2('0x28')]>this[_0x5ea2('0x1f')][_0x5ea2('0x1c')]&&!this['isActive']&&!this['hasDirtyComment'];}[_0x5ea2('0x22')](){super[_0x5ea2('0x22')](),this[_0x5ea2('0xa')]();}[_0x5ea2('0x15')](){this['element']['focus']();}[_0x5ea2('0x9')](){this[_0x5ea2('0x6')][_0x5ea2('0x9')]();for(const _0x522100 of this['commentViews'])_0x522100[_0x5ea2('0x9')]();super[_0x5ea2('0x9')]();}[_0x5ea2('0xa')](){this[_0x5ea2('0x18')]?this[_0x5ea2('0xc')]():this[_0x5ea2('0x5')]();}['_handleNewCommentModel'](_0x506d83){const _0x5afb66=new this['_config']['CommentView'](this['locale'],_0x506d83,{'maxCommentCharsWhenCollapsed':this[_0x5ea2('0x1f')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x5ea2('0x1f')][_0x5ea2('0x27')],'editorConfig':this[_0x5ea2('0x1f')][_0x5ea2('0x1d')]});_0x5afb66[_0x5ea2('0x10')]=_0x506d83['id'],_0x5afb66[_0x5ea2('0x17')]('removeComment')['to'](this),_0x5afb66[_0x5ea2('0x17')]('updateComment')['to'](this),this[_0x5ea2('0x8')](_0x5afb66,_0x5ea2('0xf'),()=>this[_0x5ea2('0xe')]()),this[_0x5ea2('0x23')][_0x5ea2('0x13')](_0x5afb66);}[_0x5ea2('0x20')](_0x26dccb){const _0x586592=this[_0x5ea2('0x23')]['remove'](_0x26dccb['id']);this[_0x5ea2('0x26')](_0x586592),_0x586592[_0x5ea2('0x25')]&&this['_updateHasDirtyComment'](),_0x586592['destroy']();}[_0x5ea2('0xe')](){this[_0x5ea2('0x11')]=Array[_0x5ea2('0x0')](this[_0x5ea2('0x23')])['some'](_0xf9b0e7=>_0xf9b0e7[_0x5ea2('0x25')]);}['_rearrangeCollapse'](){const _0x32eed9=function(_0x4ddfa6){const _0x2b728c=new _0x119050();for(const _0x3910f8 of _0x4ddfa6)_0x2b728c[_0x5ea2('0x13')](_0x3910f8);return _0x2b728c;}(this[_0x5ea2('0x23')]),_0x42af8e=this[_0x5ea2('0x6')][_0x5ea2('0x19')];for(let _0x8fd3ca=0x1;_0x8fd3ca<=_0x42af8e;_0x8fd3ca++)_0x32eed9[_0x5ea2('0x14')](0x1);for(const _0x3c52b6 of _0x32eed9)_0x3c52b6['collapse']();_0x42af8e>0x0&&_0x32eed9['add'](this['_collapsedCommentsView'],0x1),Ut(_0x57ea00(Array['from'](this[_0x5ea2('0x2')]),Array[_0x5ea2('0x0')](_0x32eed9)),this[_0x5ea2('0x2')],_0x32eed9);}[_0x5ea2('0x5')](){Ut(_0x57ea00(Array[_0x5ea2('0x0')](this['visibleViews']),Array[_0x5ea2('0x0')](this[_0x5ea2('0x23')])),this[_0x5ea2('0x2')],this['commentViews']);for(const _0x2adc08 of this[_0x5ea2('0x2')])_0x2adc08['expand']();}}function Ut(_0x2e26fa,_0x43fb20,_0x402904){let _0x4b489d=0x0;for(const _0x214fe3 of _0x2e26fa)switch(_0x214fe3){case _0x5ea2('0x21'):_0x43fb20['add'](_0x402904[_0x5ea2('0x29')](_0x4b489d),_0x4b489d),_0x4b489d++;break;case _0x5ea2('0x2a'):_0x43fb20['remove'](_0x4b489d);break;case _0x5ea2('0x4'):_0x4b489d++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2daa=['commentInputView','showInput','isFocused','destroy','bindTemplate','ck-thread__user','value','showButtons','userView','setTemplate','ck-thread__input','bind','extendTemplate','set','ck-comment__input-container--active','div','ck-comment__input-container','then'];(function(_0xd49cb0,_0x2daac7){var _0x3f18a1=function(_0x34b68f){while(--_0x34b68f){_0xd49cb0['push'](_0xd49cb0['shift']());}};_0x3f18a1(++_0x2daac7);}(_0x2daa,0x9b));var _0x3f18=function(_0xd49cb0,_0x2daac7){_0xd49cb0=_0xd49cb0-0x0;var _0x3f18a1=_0x2daa[_0xd49cb0];return _0x3f18a1;};import{View as _0x332d95}from'ckeditor5/src/ui';import _0x49ab72 from'./commentinputview';import{UserView as _0x35cbcd}from'ckeditor5-collaboration/src/collaboration-core';export default class z extends _0x332d95{constructor(_0x231cce,_0x4637cf,_0x335fb7){super(_0x231cce),this[_0x3f18('0x7')]=new _0x49ab72(_0x231cce,_0x335fb7),this[_0x3f18('0x7')][_0x3f18('0x0')](_0x3f18('0xe'))['to'](this[_0x3f18('0x7')]['focusTracker'],_0x3f18('0x9'),this['commentInputView'],_0x3f18('0xd'),(_0x1d1714,_0x3b4f1c)=>_0x1d1714||!!_0x3b4f1c),this[_0x3f18('0x2')](_0x3f18('0x8'),!0x1),this['userView']=new _0x35cbcd(_0x231cce,_0x4637cf),this[_0x3f18('0xf')][_0x3f18('0x1')]({'attributes':{'class':_0x3f18('0xc')}}),this[_0x3f18('0x7')]['extendTemplate']({'attributes':{'class':_0x3f18('0x11')}}),this[_0x3f18('0x10')]({'tag':_0x3f18('0x4'),'attributes':{'class':[_0x3f18('0x5'),this[_0x3f18('0xb')]['if'](_0x3f18('0x8'),_0x3f18('0x3'))]},'children':[this[_0x3f18('0xf')],this[_0x3f18('0x7')]]});}[_0x3f18('0xa')](){return this[_0x3f18('0x7')][_0x3f18('0xa')]()[_0x3f18('0x6')](()=>super[_0x3f18('0xa')]());}}
23
+ var _0x98c5=['destroy','ck-comment__input-container--active','userView','div','ck-comment__input-container','showInput','commentInputView','ck-thread__user','setTemplate','then','value','isFocused','ck-thread__input','extendTemplate'];(function(_0x1998eb,_0x98c5c5){var _0x17a38f=function(_0x8cd8b5){while(--_0x8cd8b5){_0x1998eb['push'](_0x1998eb['shift']());}};_0x17a38f(++_0x98c5c5);}(_0x98c5,0xcf));var _0x17a3=function(_0x1998eb,_0x98c5c5){_0x1998eb=_0x1998eb-0x0;var _0x17a38f=_0x98c5[_0x1998eb];return _0x17a38f;};import{View as _0x1e333e}from'ckeditor5/src/ui';import _0x271e1b from'./commentinputview';import{UserView as _0x1f7097}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x1e333e{constructor(_0x5acedd,_0x1afa95,_0xbfed42){super(_0x5acedd),this[_0x17a3('0x9')]=new _0x271e1b(_0x5acedd,_0xbfed42),this[_0x17a3('0x9')]['bind']('showButtons')['to'](this[_0x17a3('0x9')]['focusTracker'],_0x17a3('0x0'),this[_0x17a3('0x9')],_0x17a3('0xd'),(_0x430f20,_0x4b996b)=>_0x430f20||!!_0x4b996b),this['set'](_0x17a3('0x8'),!0x1),this[_0x17a3('0x5')]=new _0x1f7097(_0x5acedd,_0x1afa95),this['userView'][_0x17a3('0x2')]({'attributes':{'class':_0x17a3('0xa')}}),this['commentInputView'][_0x17a3('0x2')]({'attributes':{'class':_0x17a3('0x1')}}),this[_0x17a3('0xb')]({'tag':_0x17a3('0x6'),'attributes':{'class':[_0x17a3('0x7'),this['bindTemplate']['if'](_0x17a3('0x8'),_0x17a3('0x4'))]},'children':[this[_0x17a3('0x5')],this[_0x17a3('0x9')]]});}[_0x17a3('0x3')](){return this[_0x17a3('0x9')][_0x17a3('0x3')]()[_0x17a3('0xc')](()=>super[_0x17a3('0x3')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5775=['Delete\x20comment\x20thread?','actionIndicator','length','.ck-thread__container','Write\x20a\x20comment...','ck-thread--active','setTemplate','removeCommentThread','change:isActive','ck-thread','isActive','_model','off','getTemplate','stop','bind','_cancelAllConfirms','placeholder','add','locale','ck-thread--remove-confirmation','execute','removeButton','remove','querySelector','containerElement','listenTo','isConfirm','showConfirm','fire','set','change:isReadOnly','cancelConfirm','_bindFirstCommentView','commentViews','get','commentsListView'];(function(_0x43ca61,_0x57756f){const _0x63eb7f=function(_0x313c45){while(--_0x313c45){_0x43ca61['push'](_0x43ca61['shift']());}};_0x63eb7f(++_0x57756f);}(_0x5775,0x181));const _0x63eb=function(_0x43ca61,_0x57756f){_0x43ca61=_0x43ca61-0x0;let _0x63eb7f=_0x5775[_0x43ca61];return _0x63eb7f;};import{mix as _0x3968c1}from'ckeditor5/src/utils';import{ConfirmMixin as _0x40e657}from'ckeditor5-collaboration/src/collaboration-core';import _0x21dca3 from'./basecommentthreadview';import{getTranslation as _0x26c5f5}from'../../../utils/common-translations';export default class M extends _0x21dca3{constructor(_0x1bcad2,_0x33dace,_0x254a00,_0x5e87a3){super(_0x1bcad2,_0x33dace,_0x254a00,_0x5e87a3),this[_0x63eb('0xf')]('actionIndicator',null),this[_0x63eb('0xa')]=null,this[_0x63eb('0x4')]=_0x1bcad2,this[_0x63eb('0x1c')](this[_0x63eb('0x23')]()),this['on'](_0x63eb('0x1e'),(_0x4f67de,_0x5c5e2b,_0x287fd4)=>{_0x287fd4||this[_0x63eb('0x1')]();}),this['listenTo'](this['_model'],_0x63eb('0x10'),(_0x255d48,_0x250566,_0x3cb6da)=>{_0x3cb6da&&this[_0x63eb('0x1')]();}),this[_0x63eb('0x18')]>0x0?this[_0x63eb('0x12')]():this[_0x63eb('0xb')](this[_0x63eb('0x15')][_0x63eb('0x13')],_0x63eb('0x3'),_0x3b6dda=>{this[_0x63eb('0x12')](),_0x3b6dda[_0x63eb('0x22')]();});}[_0x63eb('0x23')](){const _0x497455=this['bindTemplate'];return{'tag':'div','attributes':{'class':[_0x63eb('0x1f'),_0x497455['if'](_0x63eb('0x20'),_0x63eb('0x1b')),_0x497455['if'](_0x63eb('0xc'),_0x63eb('0x5')),_0x497455['to'](_0x63eb('0x17'),_0x727d23=>_0x727d23?'ck-thread--'+_0x727d23:'')],'data-thread-id':this[_0x63eb('0x21')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':[this[_0x63eb('0x15')],this['commentThreadInputView']]}]};}['render'](){super['render'](),this[_0x63eb('0xa')]=this['element'][_0x63eb('0x9')](_0x63eb('0x19'));}['_cancelAllConfirms'](){this[_0x63eb('0x11')]();for(const _0x5d6a70 of this[_0x63eb('0x15')][_0x63eb('0x13')])_0x5d6a70[_0x63eb('0x11')]();}[_0x63eb('0x12')](){const {locale:_0x291d78}=this,_0x86288e=this['commentsListView'][_0x63eb('0x13')][_0x63eb('0x14')](0x0);this[_0x63eb('0x0')](_0x63eb('0x17'))['to'](_0x86288e,'actionIndicator',_0x6870aa=>_0x63eb('0x8')===_0x6870aa?_0x63eb('0x8'):null),_0x86288e[_0x63eb('0x2')]=_0x26c5f5(_0x291d78,_0x63eb('0x1a')),_0x86288e[_0x63eb('0x7')]['on'](_0x63eb('0x6'),_0x56a763=>{_0x56a763[_0x63eb('0x24')](),this[_0x63eb('0xd')](_0x26c5f5(_0x291d78,_0x63eb('0x16')),this[_0x63eb('0xa')])['then'](()=>{this[_0x63eb('0xe')](_0x63eb('0x1d'));});},{'priority':'high'});}}_0x3968c1(M,_0x40e657);
23
+ const _0x502c=['actionIndicator','locale','remove','getTemplate','isActive','ck-thread__container','_model','.ck-thread__container','fire','containerElement','setTemplate','_cancelAllConfirms','showConfirm','bindTemplate','ck-thread--active','high','listenTo','commentViews','set','ck-thread--remove-confirmation','Write\x20a\x20comment...','_bindFirstCommentView','commentsListView','isConfirm','off','change:isReadOnly','length','stop','element','change:isActive','placeholder','div','render','cancelConfirm','Delete\x20comment\x20thread?'];(function(_0x2e5dda,_0x502c42){const _0x481b5f=function(_0xf47a){while(--_0xf47a){_0x2e5dda['push'](_0x2e5dda['shift']());}};_0x481b5f(++_0x502c42);}(_0x502c,0x126));const _0x481b=function(_0x2e5dda,_0x502c42){_0x2e5dda=_0x2e5dda-0x0;let _0x481b5f=_0x502c[_0x2e5dda];return _0x481b5f;};import{mix as _0x2292d4}from'ckeditor5/src/utils';import{ConfirmMixin as _0x40d712}from'ckeditor5-collaboration/src/collaboration-core';import _0x5d9173 from'./basecommentthreadview';import{getTranslation as _0x22dfc5}from'../../../utils/common-translations';export default class nt extends _0x5d9173{constructor(_0x100850,_0x137aab,_0x633625,_0x481b95){super(_0x100850,_0x137aab,_0x633625,_0x481b95),this[_0x481b('0x4')](_0x481b('0x15'),null),this['containerElement']=null,this[_0x481b('0x16')]=_0x100850,this[_0x481b('0x1f')](this[_0x481b('0x18')]()),this['on'](_0x481b('0xf'),(_0x44f164,_0x3b5a1e,_0x1f10a1)=>{_0x1f10a1||this[_0x481b('0x20')]();}),this[_0x481b('0x2')](this[_0x481b('0x1b')],_0x481b('0xb'),(_0xd29bff,_0x2f63e1,_0x51d212)=>{_0x51d212&&this['_cancelAllConfirms']();}),this[_0x481b('0xc')]>0x0?this['_bindFirstCommentView']():this[_0x481b('0x2')](this['commentsListView'][_0x481b('0x3')],'add',_0x324553=>{this[_0x481b('0x7')](),_0x324553[_0x481b('0xa')]();});}[_0x481b('0x18')](){const _0x290af3=this[_0x481b('0x22')];return{'tag':_0x481b('0x11'),'attributes':{'class':['ck-thread',_0x290af3['if'](_0x481b('0x19'),_0x481b('0x0')),_0x290af3['if'](_0x481b('0x9'),_0x481b('0x5')),_0x290af3['to']('actionIndicator',_0x186b10=>_0x186b10?'ck-thread--'+_0x186b10:'')],'data-thread-id':this[_0x481b('0x1b')]['id'],'tabindex':-0x1},'children':[{'tag':_0x481b('0x11'),'attributes':{'class':_0x481b('0x1a')},'children':[this[_0x481b('0x8')],this['commentThreadInputView']]}]};}[_0x481b('0x12')](){super['render'](),this[_0x481b('0x1e')]=this[_0x481b('0xe')]['querySelector'](_0x481b('0x1c'));}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x2f4d5b of this[_0x481b('0x8')][_0x481b('0x3')])_0x2f4d5b[_0x481b('0x13')]();}[_0x481b('0x7')](){const {locale:_0xb8768a}=this,_0x35bc19=this[_0x481b('0x8')][_0x481b('0x3')]['get'](0x0);this['bind'](_0x481b('0x15'))['to'](_0x35bc19,'actionIndicator',_0xc41127=>_0x481b('0x17')===_0xc41127?'remove':null),_0x35bc19[_0x481b('0x10')]=_0x22dfc5(_0xb8768a,_0x481b('0x6')),_0x35bc19['removeButton']['on']('execute',_0x4ea880=>{_0x4ea880[_0x481b('0xd')](),this[_0x481b('0x21')](_0x22dfc5(_0xb8768a,_0x481b('0x14')),this[_0x481b('0x1e')])['then'](()=>{this[_0x481b('0x1d')]('removeCommentThread');});},{'priority':_0x481b('0x1')});}}_0x2292d4(nt,_0x40d712);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x38d0=['ck-comment__info-time','extendTemplate','_createRemoveButton','name','ck-comment--remove-confirmation','createdAt','Delete\x20comment?','div','ck-annotation__actions','ck-annotation__user','element','fire','listenTo','ck-comment__main','placeholder','switchToEditMode','cancelConfirm','ck-comment__user','setTemplate','bind','userView','isEditable','formatDateTime','Reply...','edit','isRemovable','_createCommentInputView','render','removeButton','ck-comment--edit','ck-comment--remove','ck-comment--','ck-annotation__info-time','mouseleave','ck-annotation__main','ck-comment__info','ck-annotation__content-wrapper','Remove','isEditMode','remove','ck-comment__wrapper','icon','_createEditButton','showConfirm','isConfirm','set','ck-comment','pencil','removeComment','actionIndicator','isEnabled','ck-annotation__actions--hidden','isVisible','then','ck-comment__actions--hidden','visibleView','_model','_attachActions','locale','ck-comment__info-name','editButton','author','execute','label'];(function(_0x43a6dd,_0x38d03e){const _0x3773d1=function(_0x1b541b){while(--_0x1b541b){_0x43a6dd['push'](_0x43a6dd['shift']());}};_0x3773d1(++_0x38d03e);}(_0x38d0,0x180));const _0x3773=function(_0x43a6dd,_0x38d03e){_0x43a6dd=_0x43a6dd-0x0;let _0x3773d1=_0x38d0[_0x43a6dd];return _0x3773d1;};import{mix as _0x27eef6}from'ckeditor5/src/utils';import{ButtonView as _0x685a9e}from'ckeditor5/src/ui';import{icons as _0x116a90}from'ckeditor5/src/core';import{UserView as _0x3863a5,ConfirmMixin as _0x48ae5a}from'ckeditor5-collaboration/src/collaboration-core';import _0x5a149c from'./basecommentview';import _0x3731de from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x4656f7}from'../../../utils/common-translations';export default class R extends _0x5a149c{constructor(_0x1f46d1,_0x49c388,_0x2956ad){super(_0x1f46d1,_0x49c388,_0x2956ad),this[_0x3773('0x2d')](_0x3773('0x31'),null),this['set']('placeholder',_0x4656f7(_0x1f46d1,_0x3773('0x17'))),this['set']('createdAt',null),this[_0x3773('0x13')](_0x3773('0x5'))['to'](_0x49c388),this['editButton']=this[_0x3773('0x2a')](),this[_0x3773('0x1c')]=this[_0x3773('0x2')](),this[_0x3773('0x14')]=new _0x3863a5(_0x1f46d1,_0x49c388[_0x3773('0x3d')]),this[_0x3773('0x14')][_0x3773('0x1')]({'attributes':{'class':[_0x3773('0x11'),_0x3773('0x9')]}}),this[_0x3773('0xc')](_0x49c388,'change:isRemovable',()=>this[_0x3773('0x10')]()),this[_0x3773('0x12')](this['getTemplate']());}['getTemplate'](){const _0x3fccac=this['bindTemplate'];return{'tag':'li','attributes':{'class':[_0x3773('0x28'),_0x3fccac['if'](_0x3773('0x2c'),_0x3773('0x4'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x3773('0x2e'),'ck-annotation',_0x3fccac['if'](_0x3773('0x26'),_0x3773('0x1d')),_0x3fccac['to'](_0x3773('0x31'),_0x20cb09=>_0x20cb09?_0x3773('0x1f')+_0x20cb09:'')],'data-author-id':this['_model'][_0x3773('0x3d')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x3773('0x14')],{'tag':'div','attributes':{'class':[_0x3773('0xd'),_0x3773('0x22')]},'children':[{'tag':_0x3773('0x7'),'attributes':{'class':[_0x3773('0x23'),'ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this[_0x3773('0x14')][_0x3773('0x3')]}],'attributes':{'class':[_0x3773('0x3b'),'ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x3fccac['to'](_0x3773('0x5')),'class':[_0x3773('0x0'),_0x3773('0x20')]},'children':[{'text':_0x3fccac['to'](_0x3773('0x5'),_0x59195d=>this['_config'][_0x3773('0x16')](_0x59195d))}]}]},{'tag':_0x3773('0x7'),'attributes':{'class':['ck-comment__actions',_0x3773('0x8'),_0x3fccac['if'](_0x3773('0x26'),_0x3773('0x36')),_0x3fccac['if'](_0x3773('0x26'),_0x3773('0x33'))]},'children':[this[_0x3773('0x3c')],this[_0x3773('0x1c')]]},{'tag':_0x3773('0x7'),'attributes':{'class':[_0x3773('0x24')]},'children':this[_0x3773('0x37')]}]}]}]};}[_0x3773('0x2a')](){const _0x513cc1=new _0x685a9e(this[_0x3773('0x3a')]);return _0x513cc1[_0x3773('0x3f')]=_0x4656f7(this[_0x3773('0x3a')],'Edit'),_0x513cc1[_0x3773('0x29')]=_0x116a90[_0x3773('0x2f')],_0x513cc1[_0x3773('0x1')]({'attributes':{'class':'ck-comment--edit'}}),_0x513cc1['bind']('isEnabled')['to'](this[_0x3773('0x38')],'isReadOnly',_0x25a976=>!_0x25a976),_0x513cc1[_0x3773('0x13')](_0x3773('0x34'))['to'](this['_model'],_0x3773('0x15')),_0x513cc1['on'](_0x3773('0x3e'),()=>this[_0x3773('0xf')]()),_0x513cc1;}[_0x3773('0x2')](){const _0x3e6ce4=new _0x685a9e(this['locale']);return _0x3e6ce4[_0x3773('0x3f')]=_0x4656f7(this[_0x3773('0x3a')],_0x3773('0x25')),_0x3e6ce4[_0x3773('0x29')]=_0x3731de,_0x3e6ce4[_0x3773('0x1')]({'attributes':{'class':_0x3773('0x1e')}}),_0x3e6ce4[_0x3773('0x13')](_0x3773('0x32'))['to'](this['_model'],'isReadOnly',_0x828ba8=>!_0x828ba8),_0x3e6ce4['bind'](_0x3773('0x34'))['to'](this[_0x3773('0x38')],_0x3773('0x19')),_0x3e6ce4['on']('execute',()=>{this[_0x3773('0x2b')](_0x4656f7(this[_0x3773('0x3a')],_0x3773('0x6')),this[_0x3773('0xa')])[_0x3773('0x35')](()=>{this[_0x3773('0xb')](_0x3773('0x30'),this['_model']['id']);});}),_0x3e6ce4;}[_0x3773('0x39')](_0x945ecc,_0x50fbdd){this['listenTo'](_0x945ecc,'mouseenter',()=>this[_0x3773('0x31')]=_0x50fbdd),this[_0x3773('0xc')](_0x945ecc,'focus',()=>this[_0x3773('0x31')]=_0x50fbdd),this[_0x3773('0xc')](_0x945ecc,_0x3773('0x21'),()=>this[_0x3773('0x31')]=null),this[_0x3773('0xc')](_0x945ecc,'blur',()=>this[_0x3773('0x31')]=null);}[_0x3773('0x1a')](){const _0x1f3f21=super[_0x3773('0x1a')]();return _0x1f3f21['bind'](_0x3773('0xe'))['to'](this),_0x1f3f21;}[_0x3773('0x1b')](){super[_0x3773('0x1b')](),this[_0x3773('0x39')](this[_0x3773('0x3c')][_0x3773('0xa')],_0x3773('0x18')),this['_attachActions'](this['removeButton']['element'],_0x3773('0x27'));}}_0x27eef6(R,_0x48ae5a);
23
+ const _0x5521=['icon','isEditMode','ck-annotation__content-wrapper','execute','isEditable','then','blur','ck-annotation__info-time','ck-comment__main','isVisible','bindTemplate','ck-comment--edit','mouseleave','_createCommentInputView','Delete\x20comment?','render','ck-annotation__user','span','ck-comment--remove','ck-annotation__actions','_model','isEnabled','edit','editButton','element','ck-annotation__main','locale','label','ck-annotation__info-name','isReadOnly','pencil','ck-annotation','change:isRemovable','_attachActions','name','actionIndicator','extendTemplate','removeComment','userView','ck-comment__info-time','div','createdAt','isConfirm','ck-comment__user','time','ck-comment__info-name','ck-comment--','fire','showConfirm','isRemovable','listenTo','set','removeButton','_createRemoveButton','_config','ck-annotation__info','_createEditButton','cancelConfirm','setTemplate','formatDateTime','Reply...','Edit','author','placeholder','remove','switchToEditMode','ck-comment__actions','bind'];(function(_0x3863d6,_0x55215c){const _0x3deb94=function(_0xde58f8){while(--_0xde58f8){_0x3863d6['push'](_0x3863d6['shift']());}};_0x3deb94(++_0x55215c);}(_0x5521,0x151));const _0x3deb=function(_0x3863d6,_0x55215c){_0x3863d6=_0x3863d6-0x0;let _0x3deb94=_0x5521[_0x3863d6];return _0x3deb94;};import{mix as _0x333591}from'ckeditor5/src/utils';import{ButtonView as _0x3f2f2b}from'ckeditor5/src/ui';import{icons as _0x69ae85}from'ckeditor5/src/core';import{UserView as _0x9b621,ConfirmMixin as _0x23cc88}from'ckeditor5-collaboration/src/collaboration-core';import _0x198c2d from'./basecommentview';import _0x244589 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x369cf3}from'../../../utils/common-translations';export default class ot extends _0x198c2d{constructor(_0x3528d4,_0x53a480,_0x1044fa){super(_0x3528d4,_0x53a480,_0x1044fa),this[_0x3deb('0x36')](_0x3deb('0x26'),null),this[_0x3deb('0x36')](_0x3deb('0x42'),_0x369cf3(_0x3528d4,_0x3deb('0x3f'))),this[_0x3deb('0x36')]('createdAt',null),this[_0x3deb('0x2')]('createdAt')['to'](_0x53a480),this['editButton']=this['_createEditButton'](),this[_0x3deb('0x37')]=this[_0x3deb('0x38')](),this['userView']=new _0x9b621(_0x3528d4,_0x53a480[_0x3deb('0x41')]),this[_0x3deb('0x29')]['extendTemplate']({'attributes':{'class':[_0x3deb('0x2e'),_0x3deb('0x13')]}}),this[_0x3deb('0x35')](_0x53a480,_0x3deb('0x23'),()=>this[_0x3deb('0x3c')]()),this[_0x3deb('0x3d')](this['getTemplate']());}['getTemplate'](){const _0x5c6a70=this[_0x3deb('0xd')];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x5c6a70['if'](_0x3deb('0x2d'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x3deb('0x2b'),'attributes':{'class':['ck-comment',_0x3deb('0x22'),_0x5c6a70['if'](_0x3deb('0x4'),_0x3deb('0xe')),_0x5c6a70['to'](_0x3deb('0x26'),_0x392480=>_0x392480?_0x3deb('0x31')+_0x392480:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x3deb('0x29')],{'tag':_0x3deb('0x2b'),'attributes':{'class':[_0x3deb('0xb'),_0x3deb('0x1c')]},'children':[{'tag':_0x3deb('0x2b'),'attributes':{'class':['ck-comment__info',_0x3deb('0x3a')]},'children':[{'tag':_0x3deb('0x14'),'children':[{'text':this['userView'][_0x3deb('0x25')]}],'attributes':{'class':[_0x3deb('0x30'),_0x3deb('0x1f')]}},{'tag':_0x3deb('0x2f'),'attributes':{'datetime':_0x5c6a70['to'](_0x3deb('0x2c')),'class':[_0x3deb('0x2a'),_0x3deb('0xa')]},'children':[{'text':_0x5c6a70['to'](_0x3deb('0x2c'),_0x51decb=>this[_0x3deb('0x39')][_0x3deb('0x3e')](_0x51decb))}]}]},{'tag':_0x3deb('0x2b'),'attributes':{'class':[_0x3deb('0x1'),_0x3deb('0x16'),_0x5c6a70['if'](_0x3deb('0x4'),'ck-comment__actions--hidden'),_0x5c6a70['if'](_0x3deb('0x4'),'ck-annotation__actions--hidden')]},'children':[this[_0x3deb('0x1a')],this[_0x3deb('0x37')]]},{'tag':_0x3deb('0x2b'),'attributes':{'class':[_0x3deb('0x5')]},'children':this['visibleView']}]}]}]};}[_0x3deb('0x3b')](){const _0x5eaf06=new _0x3f2f2b(this[_0x3deb('0x1d')]);return _0x5eaf06['label']=_0x369cf3(this['locale'],_0x3deb('0x40')),_0x5eaf06[_0x3deb('0x3')]=_0x69ae85[_0x3deb('0x21')],_0x5eaf06[_0x3deb('0x27')]({'attributes':{'class':_0x3deb('0xe')}}),_0x5eaf06['bind']('isEnabled')['to'](this[_0x3deb('0x17')],_0x3deb('0x20'),_0x27c640=>!_0x27c640),_0x5eaf06[_0x3deb('0x2')]('isVisible')['to'](this[_0x3deb('0x17')],_0x3deb('0x7')),_0x5eaf06['on'](_0x3deb('0x6'),()=>this[_0x3deb('0x0')]()),_0x5eaf06;}[_0x3deb('0x38')](){const _0x5a0135=new _0x3f2f2b(this['locale']);return _0x5a0135[_0x3deb('0x1e')]=_0x369cf3(this['locale'],'Remove'),_0x5a0135['icon']=_0x244589,_0x5a0135['extendTemplate']({'attributes':{'class':_0x3deb('0x15')}}),_0x5a0135[_0x3deb('0x2')](_0x3deb('0x18'))['to'](this[_0x3deb('0x17')],_0x3deb('0x20'),_0x9b4038=>!_0x9b4038),_0x5a0135[_0x3deb('0x2')](_0x3deb('0xc'))['to'](this[_0x3deb('0x17')],_0x3deb('0x34')),_0x5a0135['on'](_0x3deb('0x6'),()=>{this[_0x3deb('0x33')](_0x369cf3(this[_0x3deb('0x1d')],_0x3deb('0x11')),this['element'])[_0x3deb('0x8')](()=>{this[_0x3deb('0x32')](_0x3deb('0x28'),this[_0x3deb('0x17')]['id']);});}),_0x5a0135;}[_0x3deb('0x24')](_0x5b4332,_0x535244){this['listenTo'](_0x5b4332,'mouseenter',()=>this[_0x3deb('0x26')]=_0x535244),this[_0x3deb('0x35')](_0x5b4332,'focus',()=>this[_0x3deb('0x26')]=_0x535244),this[_0x3deb('0x35')](_0x5b4332,_0x3deb('0xf'),()=>this[_0x3deb('0x26')]=null),this['listenTo'](_0x5b4332,_0x3deb('0x9'),()=>this[_0x3deb('0x26')]=null);}[_0x3deb('0x10')](){const _0x19a52d=super[_0x3deb('0x10')]();return _0x19a52d[_0x3deb('0x2')](_0x3deb('0x42'))['to'](this),_0x19a52d;}['render'](){super[_0x3deb('0x12')](),this[_0x3deb('0x24')](this['editButton'][_0x3deb('0x1b')],_0x3deb('0x19')),this[_0x3deb('0x24')](this[_0x3deb('0x37')]['element'],_0x3deb('0x43'));}}_0x333591(ot,_0x23cc88);
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3355=['Comments','pluginName','requires'];(function(_0x1db8cf,_0x33552d){var _0x4dd703=function(_0x5468c7){while(--_0x5468c7){_0x1db8cf['push'](_0x1db8cf['shift']());}};_0x4dd703(++_0x33552d);}(_0x3355,0xe0));var _0x4dd7=function(_0x1db8cf,_0x33552d){_0x1db8cf=_0x1db8cf-0x0;var _0x4dd703=_0x3355[_0x1db8cf];return _0x4dd703;};import{Plugin as _0x24e048}from'ckeditor5/src/core';import _0xeb67bc from'./comments/commentsrepository';import _0x15739b from'./comments/commentsediting';import _0x51e817 from'./comments/commentsui';import _0x5dd03d from'./commentsonly';import _0x2ed951 from'./annotations/widesidebar';import _0x208f3a from'./annotations/narrowsidebar';import _0x1ab717 from'./annotations/inlineannotations';export default class c extends _0x24e048{static get[_0x4dd7('0x0')](){return[_0xeb67bc,_0x15739b,_0x51e817,_0x5dd03d,_0x2ed951,_0x208f3a,_0x1ab717];}static get[_0x4dd7('0x2')](){return _0x4dd7('0x1');}}
23
+ var _0x1609=['requires','pluginName','Comments'];(function(_0xd9635f,_0x1609dd){var _0x414f9c=function(_0x363200){while(--_0x363200){_0xd9635f['push'](_0xd9635f['shift']());}};_0x414f9c(++_0x1609dd);}(_0x1609,0x9d));var _0x414f=function(_0xd9635f,_0x1609dd){_0xd9635f=_0xd9635f-0x0;var _0x414f9c=_0x1609[_0xd9635f];return _0x414f9c;};import{Plugin as _0x1d14ea}from'ckeditor5/src/core';import _0x4a6643 from'./comments/commentsrepository';import _0x4e2c0c from'./comments/commentsediting';import _0x2b4976 from'./comments/commentsui';import _0x1cbf97 from'./commentsonly';import _0x2af720 from'./annotations/widesidebar';import _0x115eaf from'./annotations/narrowsidebar';import _0x1446d1 from'./annotations/inlineannotations';export default class c extends _0x1d14ea{static get[_0x414f('0x2')](){return[_0x4a6643,_0x4e2c0c,_0x2b4976,_0x1cbf97,_0x2af720,_0x115eaf,_0x1446d1];}static get[_0x414f('0x0')](){return _0x414f('0x1');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5879=['get','config','clearForceDisabled','plugins','_disableCommentsOnlyMode','listenTo','affectsData','view','commentsOnly','addCommentThread','document','set','stopListening','forceDisabled','commentsOnlyMode','editor','editing','isEnabled','commands','highest','has','requires','_enableCommentsOnlyMode','stop','cut'];(function(_0x7c1826,_0x587939){const _0x40e8a3=function(_0x396bfd){while(--_0x396bfd){_0x7c1826['push'](_0x7c1826['shift']());}};_0x40e8a3(++_0x587939);}(_0x5879,0x84));const _0x40e8=function(_0x7c1826,_0x587939){_0x7c1826=_0x7c1826-0x0;let _0x40e8a3=_0x5879[_0x7c1826];return _0x40e8a3;};import{Plugin as _0x4d0f1f}from'ckeditor5/src/core';import _0x43173d from'./comments/commentsediting';export default class e extends _0x4d0f1f{static get['pluginName'](){return'CommentsOnly';}static get[_0x40e8('0xe')](){return[_0x43173d];}constructor(_0x38a4f2){super(_0x38a4f2),this[_0x40e8('0x4')]('isEnabled',null),this['on']('change:isEnabled',(_0x345d92,_0x155712,_0x2215c8)=>{_0x2215c8?this[_0x40e8('0xf')]():this[_0x40e8('0x16')]();});}['afterInit'](){null===this[_0x40e8('0xa')]&&(this['isEnabled']=!!this[_0x40e8('0x8')][_0x40e8('0x13')][_0x40e8('0x12')](_0x40e8('0x1')));}['_enableCommentsOnlyMode'](){for(const [_0x438816,_0x26dbd7]of this[_0x40e8('0x8')][_0x40e8('0xb')])_0x26dbd7[_0x40e8('0x18')]&&_0x40e8('0x2')!==_0x438816&&_0x26dbd7[_0x40e8('0x6')](_0x40e8('0x7'));this['editor'][_0x40e8('0x15')][_0x40e8('0xd')]('DragDrop')&&this[_0x40e8('0x8')][_0x40e8('0x15')][_0x40e8('0x12')]('DragDrop')['forceDisabled'](_0x40e8('0x7'));const _0x1b3148=this['editor'][_0x40e8('0x9')]['view']['document'];this[_0x40e8('0x17')](_0x1b3148,_0x40e8('0x11'),_0xd70501=>_0xd70501[_0x40e8('0x10')](),{'priority':'highest'}),this[_0x40e8('0x17')](_0x1b3148,'clipboardInput',_0x31794f=>_0x31794f[_0x40e8('0x10')](),{'priority':_0x40e8('0xc')}),this[_0x40e8('0x17')](_0x1b3148,'delete',_0x5a6a96=>_0x5a6a96['stop'](),{'priority':_0x40e8('0xc')});}[_0x40e8('0x16')](){for(const [_0x5c34ed,_0x25f653]of this['editor']['commands'])_0x25f653[_0x40e8('0x18')]&&_0x40e8('0x2')!==_0x5c34ed&&_0x25f653[_0x40e8('0x14')](_0x40e8('0x7'));this[_0x40e8('0x5')](this[_0x40e8('0x8')][_0x40e8('0x9')][_0x40e8('0x0')][_0x40e8('0x3')]);}}
23
+ const _0x48a5=['stopListening','forceDisabled','addCommentThread','commands','_enableCommentsOnlyMode','clearForceDisabled','cut','change:isEnabled','get','editor','isEnabled','editing','view','commentsOnlyMode','pluginName','requires','stop','DragDrop','set','listenTo','delete','plugins','_disableCommentsOnlyMode','document','affectsData','has','CommentsOnly','afterInit'];(function(_0x60cfb,_0x48a57a){const _0x548175=function(_0x14cc80){while(--_0x14cc80){_0x60cfb['push'](_0x60cfb['shift']());}};_0x548175(++_0x48a57a);}(_0x48a5,0x65));const _0x5481=function(_0x60cfb,_0x48a57a){_0x60cfb=_0x60cfb-0x0;let _0x548175=_0x48a5[_0x60cfb];return _0x548175;};import{Plugin as _0xf44ab6}from'ckeditor5/src/core';import _0x36edbd from'./comments/commentsediting';export default class e extends _0xf44ab6{static get[_0x5481('0x19')](){return _0x5481('0x9');}static get[_0x5481('0x1a')](){return[_0x36edbd];}constructor(_0x1d4cce){super(_0x1d4cce),this[_0x5481('0x1')](_0x5481('0x15'),null),this['on'](_0x5481('0x12'),(_0x3eed35,_0x3e6159,_0x182bfb)=>{_0x182bfb?this[_0x5481('0xf')]():this['_disableCommentsOnlyMode']();});}[_0x5481('0xa')](){null===this[_0x5481('0x15')]&&(this[_0x5481('0x15')]=!!this[_0x5481('0x14')]['config'][_0x5481('0x13')]('commentsOnly'));}[_0x5481('0xf')](){for(const [_0x1f50c4,_0x32e372]of this[_0x5481('0x14')][_0x5481('0xe')])_0x32e372['affectsData']&&_0x5481('0xd')!==_0x1f50c4&&_0x32e372['forceDisabled'](_0x5481('0x18'));this[_0x5481('0x14')][_0x5481('0x4')][_0x5481('0x8')](_0x5481('0x0'))&&this['editor'][_0x5481('0x4')][_0x5481('0x13')](_0x5481('0x0'))[_0x5481('0xc')](_0x5481('0x18'));const _0x364415=this['editor'][_0x5481('0x16')][_0x5481('0x17')]['document'];this['listenTo'](_0x364415,_0x5481('0x11'),_0x1733a7=>_0x1733a7[_0x5481('0x1b')](),{'priority':'highest'}),this['listenTo'](_0x364415,'clipboardInput',_0x52caff=>_0x52caff[_0x5481('0x1b')](),{'priority':'highest'}),this[_0x5481('0x2')](_0x364415,_0x5481('0x3'),_0x3181b8=>_0x3181b8[_0x5481('0x1b')](),{'priority':'highest'});}[_0x5481('0x5')](){for(const [_0x57d641,_0x3aacd2]of this[_0x5481('0x14')][_0x5481('0xe')])_0x3aacd2[_0x5481('0x7')]&&_0x5481('0xd')!==_0x57d641&&_0x3aacd2[_0x5481('0x10')](_0x5481('0x18'));this[_0x5481('0xb')](this[_0x5481('0x14')][_0x5481('0x16')][_0x5481('0x17')][_0x5481('0x6')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x2ac5fd,_0x1c07f9,_0x318695){const t=_0x2ac5fd['t'];switch(_0x1c07f9){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Remove':return t('Remove');case'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x318695);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x318695);}}
23
+ export function getTranslation(_0x38f87b,_0x3d80e8,_0x32f927){const t=_0x38f87b['t'];switch(_0x3d80e8){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Remove':return t('Remove');case'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x32f927);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x32f927);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1cfe=['disconnect','attributeName','class','cancel','attributes','type'];(function(_0x280552,_0x1cfee4){const _0x795e7b=function(_0x2e817e){while(--_0x2e817e){_0x280552['push'](_0x280552['shift']());}};_0x795e7b(++_0x1cfee4);}(_0x1cfe,0x10c));const _0x795e=function(_0x280552,_0x1cfee4){_0x280552=_0x280552-0x0;let _0x795e7b=_0x1cfe[_0x280552];return _0x795e7b;};import{throttle as _0x2825e2}from'lodash-es';export default function ut(_0x16d61e){const _0x24aa2=_0x2825e2(_0x16d61e,0x1e),_0x5052a4=new MutationObserver(_0x43f2a9=>{for(const _0x1573b6 of _0x43f2a9)(_0x795e('0x0')==_0x1573b6[_0x795e('0x1')]&&_0x795e('0x4')==_0x1573b6[_0x795e('0x3')]||'childList'==_0x1573b6[_0x795e('0x1')])&&_0x24aa2();});return{'attach'(_0x276237){_0x5052a4['observe'](_0x276237,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x5052a4[_0x795e('0x2')](),_0x24aa2[_0x795e('0x5')]();}};}
23
+ const _0x54dd=['class','observe','attributes','disconnect','type','childList'];(function(_0x5a5a46,_0x54dd36){const _0x4fedfb=function(_0x20f8cf){while(--_0x20f8cf){_0x5a5a46['push'](_0x5a5a46['shift']());}};_0x4fedfb(++_0x54dd36);}(_0x54dd,0x1df));const _0x4fed=function(_0x5a5a46,_0x54dd36){_0x5a5a46=_0x5a5a46-0x0;let _0x4fedfb=_0x54dd[_0x5a5a46];return _0x4fedfb;};import{throttle as _0x5b0bb0}from'lodash-es';export default function ut(_0x2890c3){const _0x324ed6=_0x5b0bb0(_0x2890c3,0x1e),_0x2ca105=new MutationObserver(_0x5a2e56=>{for(const _0x3fcfc3 of _0x5a2e56)(_0x4fed('0x3')==_0x3fcfc3['type']&&_0x4fed('0x1')==_0x3fcfc3['attributeName']||_0x4fed('0x0')==_0x3fcfc3[_0x4fed('0x5')])&&_0x324ed6();});return{'attach'(_0x3c348e){_0x2ca105[_0x4fed('0x2')](_0x3c348e,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x2ca105[_0x4fed('0x4')](),_0x324ed6['cancel']();}};}