@ckeditor/ckeditor5-comments 34.2.0 → 35.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/build/comments.js +1 -1
  2. package/build/translations/ar.js +1 -0
  3. package/build/translations/bg.js +1 -0
  4. package/build/translations/bn.js +1 -0
  5. package/build/translations/ca.js +1 -0
  6. package/build/translations/fi.js +1 -0
  7. package/build/translations/he.js +1 -0
  8. package/build/translations/ja.js +1 -1
  9. package/build/translations/lt.js +1 -0
  10. package/build/translations/ms.js +1 -0
  11. package/build/translations/pt.js +1 -0
  12. package/build/translations/sr.js +1 -1
  13. package/build/translations/sv.js +1 -0
  14. package/build/translations/th.js +1 -0
  15. package/build/translations/vi.js +1 -0
  16. package/lang/translations/ar.po +71 -0
  17. package/lang/translations/bg.po +67 -0
  18. package/lang/translations/bn.po +67 -0
  19. package/lang/translations/ca.po +67 -0
  20. package/lang/translations/fi.po +67 -0
  21. package/lang/translations/he.po +69 -0
  22. package/lang/translations/ja.po +3 -3
  23. package/lang/translations/lt.po +69 -0
  24. package/lang/translations/ms.po +66 -0
  25. package/lang/translations/pt.po +68 -0
  26. package/lang/translations/sr.po +3 -3
  27. package/lang/translations/sv.po +67 -0
  28. package/lang/translations/th.po +66 -0
  29. package/lang/translations/vi.po +66 -0
  30. package/package.json +3 -3
  31. package/src/annotations/annotation.js +1 -1
  32. package/src/annotations/annotationcollection.js +1 -1
  33. package/src/annotations/annotations.js +1 -1
  34. package/src/annotations/annotationsuis.js +1 -1
  35. package/src/annotations/editorannotations.js +1 -1
  36. package/src/annotations/inlineannotations.js +1 -1
  37. package/src/annotations/narrowsidebar.js +1 -1
  38. package/src/annotations/sidebar.js +1 -1
  39. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  40. package/src/annotations/view/annotationview.js +1 -1
  41. package/src/annotations/view/sidebaritemview.js +1 -1
  42. package/src/annotations/view/sidebarview.js +1 -1
  43. package/src/annotations/widesidebar.js +1 -1
  44. package/src/comments/addcommentthreadcommand.js +1 -1
  45. package/src/comments/commentsediting.js +1 -1
  46. package/src/comments/commentsrepository.js +1 -1
  47. package/src/comments/commentsui.js +1 -1
  48. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  49. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  51. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  52. package/src/comments/ui/commentthreadcontroller.js +1 -1
  53. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  54. package/src/comments/ui/view/basecommentview.js +1 -1
  55. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  56. package/src/comments/ui/view/commentcontentview.js +1 -1
  57. package/src/comments/ui/view/commentinputview.js +1 -1
  58. package/src/comments/ui/view/commentslistview.js +1 -1
  59. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  60. package/src/comments/ui/view/commentthreadview.js +1 -1
  61. package/src/comments/ui/view/commentview.js +1 -1
  62. package/src/comments.js +1 -1
  63. package/src/commentsonly.js +1 -1
  64. package/src/utils/common-translations.js +1 -1
  65. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')];}}
23
+ var _0x3e7e=['change:content','element','set','content','innerHTML','setTemplate','render'];(function(_0x30295d,_0x3e7e83){var _0x224746=function(_0x4f6d55){while(--_0x4f6d55){_0x30295d['push'](_0x30295d['shift']());}};_0x224746(++_0x3e7e83);}(_0x3e7e,0x12e));var _0x2247=function(_0x30295d,_0x3e7e83){_0x30295d=_0x30295d-0x0;var _0x224746=_0x3e7e[_0x30295d];return _0x224746;};import{View as _0x2eb74f}from'ckeditor5/src/ui';export default class Et extends _0x2eb74f{constructor(_0x1df4c4){super(_0x1df4c4),this[_0x2247('0x1')](_0x2247('0x2'),''),this[_0x2247('0x4')]({'tag':'div','attributes':{'class':['ck-comment__content','ck-annotation__content']}});}[_0x2247('0x5')](){super[_0x2247('0x5')](),this['on'](_0x2247('0x6'),(_0x798ef8,_0xd85185,_0x5ceff0)=>{this[_0x2247('0x0')][_0x2247('0x3')]=_0x5ceff0;}),this[_0x2247('0x0')][_0x2247('0x3')]=this[_0x2247('0x2')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')});}}
23
+ const _0x48c3=['then','Esc','ck-comment__input-actions--active','focusNext','element','submit','focus','set','getData','stop','ck-comment__input-actions--submit','execute','_initializeFocusCycling','add','destroy','insertBefore','listenTo','length','editorReady','label','showButtons','render','Submit','isRendered','shift\x20+\x20tab','icon','high','value','setData','editor','_createCancelButton','bindTemplate','low','Cancel','cancelButtonView','document','placeholder','view','tab','keystrokes','create','ck-comment__input-actions','forEach','extendTemplate','_isDestroyed','focusTracker','model','submitButtonView','bind','isEnabled','_editorCreationPromise','cancel','_createSubmitButton','disabledSubmit','setTemplate','trim','fire','ck-comment__input-wrapper','initialData'];(function(_0x264aa7,_0x48c3cf){const _0x540d3c=function(_0x25df4d){while(--_0x25df4d){_0x264aa7['push'](_0x264aa7['shift']());}};_0x540d3c(++_0x48c3cf);}(_0x48c3,0x104));const _0x540d=function(_0x264aa7,_0x48c3cf){_0x264aa7=_0x264aa7-0x0;let _0x540d3c=_0x48c3[_0x264aa7];return _0x540d3c;};import{View as _0x3e3c67,ViewCollection as _0x295c6f,FocusCycler as _0x4fc349,ButtonView as _0x441265}from'ckeditor5/src/ui';import{FocusTracker as _0x216167,KeystrokeHandler as _0x36a015}from'ckeditor5/src/utils';import{icons as _0x53a767}from'ckeditor5/src/core';import _0x30a9e6 from'../commenteditor/commenteditor';import{getTranslation as _0x47c37e}from'../../../utils/common-translations';export default class Tt extends _0x3e3c67{constructor(_0x29fb02,_0x1be684={}){super(_0x29fb02),this[_0x540d('0x5')]=new _0x30a9e6(_0x1be684),this[_0x540d('0xf')]=new _0x36a015(),this[_0x540d('0x15')]=new _0x216167(),this[_0x540d('0x2a')]('value',_0x1be684[_0x540d('0x22')]||''),this[_0x540d('0x2a')](_0x540d('0x1d'),!0x1),this['set']('showButtons',!0x0),this[_0x540d('0x2a')]('placeholder',_0x47c37e(_0x29fb02,'Reply...')),this[_0x540d('0x17')]=this[_0x540d('0x1c')](),this[_0x540d('0xa')]=this[_0x540d('0x6')](),this[_0x540d('0x1e')]({'tag':'div','attributes':{'class':[_0x540d('0x21')]},'children':[{'tag':'div','attributes':{'class':[_0x540d('0x11'),this[_0x540d('0x7')]['if'](_0x540d('0x37'),_0x540d('0x25'))]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes'][_0x540d('0x2a')](_0x540d('0x24'),(_0x2ff139,_0x4a10a0)=>{this['cancelButtonView']['fire']('execute'),_0x4a10a0();}),this['on'](_0x540d('0x28'),(_0xdb326f,_0x34f632)=>{_0x34f632[_0x540d('0x34')]>0xfde8?(alert(_0x47c37e(_0x29fb02,'TOO_LONG_COMMENT_ALERT',[_0x34f632['length'],0xfde8])),_0xdb326f[_0x540d('0x2c')]()):this[_0x540d('0x5')][_0x540d('0x4')]('');},{'priority':_0x540d('0x2')});}[_0x540d('0x38')](){super[_0x540d('0x38')]();const {editor:_0x2968c9,element:_0x590b37}=this;this[_0x540d('0xf')][_0x540d('0x33')](_0x590b37),this['focusTracker'][_0x540d('0x30')](_0x590b37),this[_0x540d('0x1a')]=_0x2968c9[_0x540d('0x10')]()[_0x540d('0x23')](()=>{_0x590b37[_0x540d('0x32')](_0x2968c9['ui'][_0x540d('0x27')],_0x590b37['firstChild']),_0x2968c9[_0x540d('0x16')][_0x540d('0xb')]['on']('change',()=>this[_0x540d('0x3')]=_0x2968c9[_0x540d('0x2b')]()),_0x2968c9['bind'](_0x540d('0xc'))['to'](this),this['_initializeFocusCycling'](_0x2968c9),this[_0x540d('0x20')](_0x540d('0x35'));});}[_0x540d('0x29')](){this[_0x540d('0x5')]['focus']();}async[_0x540d('0x31')](){this[_0x540d('0x14')]||(this['_isDestroyed']=!0x0,this[_0x540d('0x3a')]&&(await this['_editorCreationPromise'],await this['editor'][_0x540d('0x31')]()),await super['destroy']());}[_0x540d('0x1c')](){const {locale:_0x4ee1fa}=this,_0x19a7a9=new _0x441265(_0x4ee1fa);return _0x19a7a9[_0x540d('0x13')]({'attributes':{'class':[_0x540d('0x2d')]}}),_0x19a7a9[_0x540d('0x36')]=_0x47c37e(_0x4ee1fa,_0x540d('0x39')),_0x19a7a9['icon']=_0x53a767['check'],_0x19a7a9['on'](_0x540d('0x2e'),()=>{this['fire'](_0x540d('0x28'),this[_0x540d('0x3')]);}),_0x19a7a9[_0x540d('0x18')](_0x540d('0x19'))['to'](this,_0x540d('0x3'),this,'disabledSubmit',(_0x457fce,_0x41e030)=>!_0x41e030&&!!_0x457fce[_0x540d('0x1f')]()),_0x19a7a9;}[_0x540d('0x6')](){const {locale:_0x556e35}=this,_0x84ac28=new _0x441265(_0x556e35);return _0x84ac28[_0x540d('0x13')]({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x84ac28['label']=_0x47c37e(_0x556e35,_0x540d('0x9')),_0x84ac28[_0x540d('0x1')]=_0x53a767[_0x540d('0x1b')],_0x84ac28['on'](_0x540d('0x2e'),()=>{this[_0x540d('0x5')][_0x540d('0x4')](''),this['fire'](_0x540d('0x1b'));}),_0x84ac28;}[_0x540d('0x2f')](_0x361965){const _0xaee5e8=this[_0x540d('0x15')],_0x39f65a=new _0x295c6f();[_0x361965['ui'][_0x540d('0xd')],this[_0x540d('0x17')],this[_0x540d('0xa')]][_0x540d('0x12')](_0x52f70d=>{_0x39f65a[_0x540d('0x30')](_0x52f70d),_0xaee5e8['add'](_0x52f70d[_0x540d('0x27')]);});const _0x21546b=new _0x4fc349({'focusables':_0x39f65a,'focusTracker':_0xaee5e8});this['keystrokes']['set'](_0x540d('0xe'),(_0x2aa0af,_0x38ea73)=>{_0x21546b[_0x540d('0x26')](),_0x38ea73();},{'priority':'low'}),this[_0x540d('0xf')][_0x540d('0x2a')](_0x540d('0x0'),(_0xcbce43,_0x3ecf49)=>{_0x21546b['focusPrevious'](),_0x3ecf49();},{'priority':_0x540d('0x8')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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++;}}
23
+ const _0x321e=['delegate','destroy','_collapsedCommentsView','visibleViews','_shouldCollapse','comments','insert','element','focus','get','refreshVisibleViews','expand','updateComment','setTemplate','length','_model','remove','bind','hasDirtyComment','editorConfig','weight','change:hasDirtyComment','commentUpdated','_handleRemoveCommentModel','change:isActive','some','set','render','_rearrangeExpand','isActive','isEditMode','maxCommentCharsWhenCollapsed','createCollection','from','commentViews','_handleNewCommentModel','removeComment','count','_rearrangeCollapse','CommentView','equal','_updateHasDirtyComment','stopListening','collapse','ck-thread__comments','maxThreadTotalWeight','delete','add','locale','maxCommentsWhenCollapsed','listenTo','_config'];(function(_0x4485db,_0x321ee6){const _0x1c6cbf=function(_0x3b2c2f){while(--_0x3b2c2f){_0x4485db['push'](_0x4485db['shift']());}};_0x1c6cbf(++_0x321ee6);}(_0x321e,0x184));const _0x1c6c=function(_0x4485db,_0x321ee6){_0x4485db=_0x4485db-0x0;let _0x1c6cbf=_0x321e[_0x4485db];return _0x1c6cbf;};import{View as _0x1343fa}from'ckeditor5/src/ui';import{diff as _0x489d39,Collection as _0x3ed35d}from'ckeditor5/src/utils';import _0x37af3f from'./collapsedcommentsview';export default class ct extends _0x1343fa{constructor(_0x4e35cb,_0x1874b0,_0x48e48f){super(_0x4e35cb),this[_0x1c6c('0x2')](_0x1c6c('0x2e'),!0x1),this[_0x1c6c('0x2')]('length',_0x1874b0['comments'][_0x1c6c('0x2a')]),this[_0x1c6c('0x2')](_0x1c6c('0x5'),!0x1),this[_0x1c6c('0x2b')]=_0x1874b0,this[_0x1c6c('0x1b')]=_0x48e48f,this[_0x1c6c('0xa')]=this[_0x1c6c('0x8')](),this['visibleViews']=this[_0x1c6c('0x8')](),this['_collapsedCommentsView']=new _0x37af3f(_0x4e35cb),this[_0x1c6c('0x1e')][_0x1c6c('0x2d')](_0x1c6c('0xd'))['to'](this,'length',_0x178af4=>_0x178af4-this['_config'][_0x1c6c('0x19')]);for(const _0x1ee953 of _0x1874b0[_0x1c6c('0x21')])this[_0x1c6c('0xb')](_0x1ee953);this[_0x1c6c('0x1a')](_0x1874b0[_0x1c6c('0x21')],_0x1c6c('0x17'),(_0x37c1db,_0x4a56f9)=>{this['length']++,this[_0x1c6c('0xb')](_0x4a56f9),this[_0x1c6c('0x26')]();}),this['listenTo'](_0x1874b0['comments'],'remove',(_0xbb140c,_0x5cd63f)=>{this['length']--,this[_0x1c6c('0x33')](_0x5cd63f),this[_0x1c6c('0x26')]();}),this['listenTo'](_0x1874b0,_0x1c6c('0x32'),()=>this[_0x1c6c('0x26')]()),this['on'](_0x1c6c('0x0'),()=>this[_0x1c6c('0x26')]()),this['on'](_0x1c6c('0x31'),()=>this[_0x1c6c('0x26')]()),this[_0x1c6c('0x29')]({'tag':'ul','attributes':{'class':[_0x1c6c('0x14')]},'children':this['visibleViews']});}get[_0x1c6c('0x20')](){return this['_model'][_0x1c6c('0x30')]>this[_0x1c6c('0x1b')][_0x1c6c('0x15')]&&!this['isActive']&&!this[_0x1c6c('0x2e')];}['render'](){super[_0x1c6c('0x3')](),this['refreshVisibleViews']();}[_0x1c6c('0x24')](){this[_0x1c6c('0x23')][_0x1c6c('0x24')]();}['destroy'](){this[_0x1c6c('0x1e')][_0x1c6c('0x1d')]();for(const _0x18e9c9 of this[_0x1c6c('0xa')])_0x18e9c9['destroy']();super[_0x1c6c('0x1d')]();}['refreshVisibleViews'](){this[_0x1c6c('0x20')]?this[_0x1c6c('0xe')]():this[_0x1c6c('0x4')]();}[_0x1c6c('0xb')](_0x15d5df){const _0x207907=new this[(_0x1c6c('0x1b'))][(_0x1c6c('0xf'))](this[_0x1c6c('0x18')],_0x15d5df,{'maxCommentCharsWhenCollapsed':this['_config'][_0x1c6c('0x7')],'formatDateTime':this[_0x1c6c('0x1b')]['formatDateTime'],'editorConfig':this[_0x1c6c('0x1b')][_0x1c6c('0x2f')]});_0x207907['viewUid']=_0x15d5df['id'],_0x207907[_0x1c6c('0x1c')](_0x1c6c('0xc'))['to'](this),_0x207907[_0x1c6c('0x1c')](_0x1c6c('0x28'))['to'](this),this['listenTo'](_0x207907,'change:isEditMode',()=>this[_0x1c6c('0x11')]()),this[_0x1c6c('0xa')][_0x1c6c('0x17')](_0x207907);}[_0x1c6c('0x33')](_0x1464aa){const _0x39ebdc=this['commentViews'][_0x1c6c('0x2c')](_0x1464aa['id']);this[_0x1c6c('0x12')](_0x39ebdc),_0x39ebdc['isEditMode']&&this['_updateHasDirtyComment'](),_0x39ebdc[_0x1c6c('0x1d')]();}['_updateHasDirtyComment'](){this[_0x1c6c('0x2e')]=Array[_0x1c6c('0x9')](this[_0x1c6c('0xa')])[_0x1c6c('0x1')](_0x52b783=>_0x52b783[_0x1c6c('0x6')]);}['_rearrangeCollapse'](){const _0x9a7dc2=function(_0x3aab70){const _0x3f9b37=new _0x3ed35d();for(const _0xe17787 of _0x3aab70)_0x3f9b37[_0x1c6c('0x17')](_0xe17787);return _0x3f9b37;}(this[_0x1c6c('0xa')]),_0x18a41a=this[_0x1c6c('0x1e')][_0x1c6c('0xd')];for(let _0xdd1a78=0x1;_0xdd1a78<=_0x18a41a;_0xdd1a78++)_0x9a7dc2[_0x1c6c('0x2c')](0x1);for(const _0x34403c of _0x9a7dc2)_0x34403c[_0x1c6c('0x13')]();_0x18a41a>0x0&&_0x9a7dc2['add'](this[_0x1c6c('0x1e')],0x1),Ut(_0x489d39(Array[_0x1c6c('0x9')](this[_0x1c6c('0x1f')]),Array['from'](_0x9a7dc2)),this['visibleViews'],_0x9a7dc2);}[_0x1c6c('0x4')](){Ut(_0x489d39(Array[_0x1c6c('0x9')](this[_0x1c6c('0x1f')]),Array[_0x1c6c('0x9')](this[_0x1c6c('0xa')])),this[_0x1c6c('0x1f')],this['commentViews']);for(const _0xd37af7 of this[_0x1c6c('0x1f')])_0xd37af7[_0x1c6c('0x27')]();}}function Ut(_0x3e680e,_0x257369,_0x270398){let _0xcd467f=0x0;for(const _0x4897cc of _0x3e680e)switch(_0x4897cc){case _0x1c6c('0x22'):_0x257369['add'](_0x270398[_0x1c6c('0x25')](_0xcd467f),_0xcd467f),_0xcd467f++;break;case _0x1c6c('0x16'):_0x257369[_0x1c6c('0x2c')](_0xcd467f);break;case _0x1c6c('0x10'):_0xcd467f++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]());}}
23
+ var _0x55d6=['extendTemplate','then','userView','destroy','value','ck-thread__user','commentInputView','showInput','bindTemplate','focusTracker','ck-comment__input-container','div'];(function(_0x4081b7,_0x55d6a3){var _0x25416a=function(_0x2cb10b){while(--_0x2cb10b){_0x4081b7['push'](_0x4081b7['shift']());}};_0x25416a(++_0x55d6a3);}(_0x55d6,0x173));var _0x2541=function(_0x4081b7,_0x55d6a3){_0x4081b7=_0x4081b7-0x0;var _0x25416a=_0x55d6[_0x4081b7];return _0x25416a;};import{View as _0x3746de}from'ckeditor5/src/ui';import _0x6769f1 from'./commentinputview';import{UserView as _0x11bda0}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x3746de{constructor(_0x3bec74,_0x2e6c4f,_0xf16805){super(_0x3bec74),this['commentInputView']=new _0x6769f1(_0x3bec74,_0xf16805),this['commentInputView']['bind']('showButtons')['to'](this[_0x2541('0x7')][_0x2541('0xa')],'isFocused',this[_0x2541('0x7')],_0x2541('0x5'),(_0x2d4866,_0x19ddfc)=>_0x2d4866||!!_0x19ddfc),this['set'](_0x2541('0x8'),!0x1),this[_0x2541('0x3')]=new _0x11bda0(_0x3bec74,_0x2e6c4f),this['userView'][_0x2541('0x1')]({'attributes':{'class':_0x2541('0x6')}}),this['commentInputView'][_0x2541('0x1')]({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':_0x2541('0x0'),'attributes':{'class':[_0x2541('0xb'),this[_0x2541('0x9')]['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this[_0x2541('0x7')]]});}[_0x2541('0x4')](){return this[_0x2541('0x7')]['destroy']()[_0x2541('0x2')](()=>super[_0x2541('0x4')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);
23
+ const _0x123e=['removeCommentThread','ck-thread--active','commentsListView','commentViews','element','getTemplate','remove','execute','containerElement','length','stop','change:isReadOnly','isActive','locale','change:isActive','_cancelAllConfirms','render','ck-thread__container','isConfirm','div','Write\x20a\x20comment...','listenTo','fire','high','get','removeButton','querySelector','actionIndicator','off','bind','_bindFirstCommentView','set','cancelConfirm','_model'];(function(_0x28863a,_0x123e1d){const _0x29490d=function(_0x439070){while(--_0x439070){_0x28863a['push'](_0x28863a['shift']());}};_0x29490d(++_0x123e1d);}(_0x123e,0x10e));const _0x2949=function(_0x28863a,_0x123e1d){_0x28863a=_0x28863a-0x0;let _0x29490d=_0x123e[_0x28863a];return _0x29490d;};import{mix as _0x4b0bd0}from'ckeditor5/src/utils';import{ConfirmMixin as _0x2d1b98}from'ckeditor5-collaboration/src/collaboration-core';import _0xa3a141 from'./basecommentthreadview';import{getTranslation as _0x3ed49a}from'../../../utils/common-translations';export default class nt extends _0xa3a141{constructor(_0x55db0a,_0xebafb0,_0x11e9f6,_0xa77e06){super(_0x55db0a,_0xebafb0,_0x11e9f6,_0xa77e06),this[_0x2949('0x21')](_0x2949('0x1d'),null),this[_0x2949('0xa')]=null,this[_0x2949('0xf')]=_0x55db0a,this['setTemplate'](this[_0x2949('0x7')]()),this['on'](_0x2949('0x10'),(_0x3b2a74,_0x5d0732,_0xda63f3)=>{_0xda63f3||this[_0x2949('0x11')]();}),this[_0x2949('0x17')](this[_0x2949('0x1')],_0x2949('0xd'),(_0x10be9f,_0x4a6934,_0x15ab40)=>{_0x15ab40&&this[_0x2949('0x11')]();}),this[_0x2949('0xb')]>0x0?this[_0x2949('0x20')]():this[_0x2949('0x17')](this['commentsListView'][_0x2949('0x5')],'add',_0x5264b4=>{this[_0x2949('0x20')](),_0x5264b4[_0x2949('0x1e')]();});}[_0x2949('0x7')](){const _0xf72676=this['bindTemplate'];return{'tag':_0x2949('0x15'),'attributes':{'class':['ck-thread',_0xf72676['if'](_0x2949('0xe'),_0x2949('0x3')),_0xf72676['if'](_0x2949('0x14'),'ck-thread--remove-confirmation'),_0xf72676['to'](_0x2949('0x1d'),_0x560ccc=>_0x560ccc?'ck-thread--'+_0x560ccc:'')],'data-thread-id':this[_0x2949('0x1')]['id'],'tabindex':-0x1},'children':[{'tag':_0x2949('0x15'),'attributes':{'class':_0x2949('0x13')},'children':[this[_0x2949('0x4')],this['commentThreadInputView']]}]};}[_0x2949('0x12')](){super[_0x2949('0x12')](),this[_0x2949('0xa')]=this[_0x2949('0x6')][_0x2949('0x1c')]('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x3d771e of this[_0x2949('0x4')][_0x2949('0x5')])_0x3d771e[_0x2949('0x0')]();}['_bindFirstCommentView'](){const {locale:_0x5844ab}=this,_0x35eda0=this[_0x2949('0x4')][_0x2949('0x5')][_0x2949('0x1a')](0x0);this[_0x2949('0x1f')](_0x2949('0x1d'))['to'](_0x35eda0,_0x2949('0x1d'),_0x13d20f=>_0x2949('0x8')===_0x13d20f?_0x2949('0x8'):null),_0x35eda0['placeholder']=_0x3ed49a(_0x5844ab,_0x2949('0x16')),_0x35eda0[_0x2949('0x1b')]['on'](_0x2949('0x9'),_0x20d00f=>{_0x20d00f[_0x2949('0xc')](),this['showConfirm'](_0x3ed49a(_0x5844ab,'Delete\x20comment\x20thread?'),this[_0x2949('0xa')])['then'](()=>{this[_0x2949('0x18')](_0x2949('0x2'));});},{'priority':_0x2949('0x19')});}}_0x4b0bd0(nt,_0x2d1b98);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);
23
+ const _0xd9fb=['bind','isReadOnly','isEnabled','change:isRemovable','execute','label','render','isEditable','_createRemoveButton','ck-annotation__actions--hidden','isEditMode','ck-comment__user','locale','ck-annotation','formatDateTime','ck-annotation__content-wrapper','ck-comment__info','visibleView','listenTo','ck-comment--remove-confirmation','createdAt','div','edit','placeholder','ck-comment__actions','cancelConfirm','_attachActions','_createCommentInputView','removeButton','actionIndicator','ck-annotation__user','extendTemplate','icon','span','then','userView','ck-comment--edit','isVisible','set','blur','ck-comment__info-time','Remove','isConfirm','ck-annotation__info','_model','ck-annotation__info-time','editButton','remove','element','Reply...','_config','getTemplate','showConfirm','pencil','bindTemplate','mouseenter','focus','fire','setTemplate','_createEditButton','time'];(function(_0x3d4e2a,_0xd9fbc9){const _0x5552b2=function(_0x3bae59){while(--_0x3bae59){_0x3d4e2a['push'](_0x3d4e2a['shift']());}};_0x5552b2(++_0xd9fbc9);}(_0xd9fb,0x165));const _0x5552=function(_0x3d4e2a,_0xd9fbc9){_0x3d4e2a=_0x3d4e2a-0x0;let _0x5552b2=_0xd9fb[_0x3d4e2a];return _0x5552b2;};import{mix as _0x249466}from'ckeditor5/src/utils';import{ButtonView as _0x3672f4}from'ckeditor5/src/ui';import{icons as _0x5bcefa}from'ckeditor5/src/core';import{UserView as _0x24ee2e,ConfirmMixin as _0x5dc7e9}from'ckeditor5-collaboration/src/collaboration-core';import _0x2322b9 from'./basecommentview';import _0x233841 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x38305f}from'../../../utils/common-translations';export default class ot extends _0x2322b9{constructor(_0x33415c,_0x38b0a8,_0x58c0c9){super(_0x33415c,_0x38b0a8,_0x58c0c9),this['set']('actionIndicator',null),this[_0x5552('0x2f')](_0x5552('0x20'),_0x38305f(_0x33415c,_0x5552('0x3a'))),this['set']('createdAt',null),this[_0x5552('0x9')](_0x5552('0x1d'))['to'](_0x38b0a8),this[_0x5552('0x37')]=this[_0x5552('0x7')](),this['removeButton']=this['_createRemoveButton'](),this[_0x5552('0x2c')]=new _0x24ee2e(_0x33415c,_0x38b0a8['author']),this[_0x5552('0x2c')][_0x5552('0x28')]({'attributes':{'class':[_0x5552('0x14'),_0x5552('0x27')]}}),this[_0x5552('0x1b')](_0x38b0a8,_0x5552('0xc'),()=>this[_0x5552('0x22')]()),this[_0x5552('0x6')](this[_0x5552('0x3c')]());}[_0x5552('0x3c')](){const _0x289ef1=this[_0x5552('0x2')];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x289ef1['if'](_0x5552('0x33'),_0x5552('0x1c'))],'tabindex':-0x1},'children':[{'tag':_0x5552('0x1e'),'attributes':{'class':['ck-comment',_0x5552('0x16'),_0x289ef1['if'](_0x5552('0x13'),_0x5552('0x2d')),_0x289ef1['to'](_0x5552('0x26'),_0xb9d2d=>_0xb9d2d?'ck-comment--'+_0xb9d2d:'')],'data-author-id':this[_0x5552('0x35')]['author']['id'],'data-comment-id':this[_0x5552('0x35')]['id']},'children':[this[_0x5552('0x2c')],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':[{'tag':_0x5552('0x1e'),'attributes':{'class':[_0x5552('0x19'),_0x5552('0x34')]},'children':[{'tag':_0x5552('0x2a'),'children':[{'text':this[_0x5552('0x2c')]['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':_0x5552('0x8'),'attributes':{'datetime':_0x289ef1['to'](_0x5552('0x1d')),'class':[_0x5552('0x31'),_0x5552('0x36')]},'children':[{'text':_0x289ef1['to'](_0x5552('0x1d'),_0x42de30=>this[_0x5552('0x3b')][_0x5552('0x17')](_0x42de30))}]}]},{'tag':_0x5552('0x1e'),'attributes':{'class':[_0x5552('0x21'),'ck-annotation__actions',_0x289ef1['if'](_0x5552('0x13'),'ck-comment__actions--hidden'),_0x289ef1['if']('isEditMode',_0x5552('0x12'))]},'children':[this['editButton'],this[_0x5552('0x25')]]},{'tag':_0x5552('0x1e'),'attributes':{'class':[_0x5552('0x18')]},'children':this[_0x5552('0x1a')]}]}]}]};}[_0x5552('0x7')](){const _0x19090c=new _0x3672f4(this[_0x5552('0x15')]);return _0x19090c[_0x5552('0xe')]=_0x38305f(this[_0x5552('0x15')],'Edit'),_0x19090c[_0x5552('0x29')]=_0x5bcefa[_0x5552('0x1')],_0x19090c[_0x5552('0x28')]({'attributes':{'class':_0x5552('0x2d')}}),_0x19090c[_0x5552('0x9')]('isEnabled')['to'](this[_0x5552('0x35')],_0x5552('0xa'),_0x8aaf48=>!_0x8aaf48),_0x19090c['bind'](_0x5552('0x2e'))['to'](this[_0x5552('0x35')],_0x5552('0x10')),_0x19090c['on'](_0x5552('0xd'),()=>this['switchToEditMode']()),_0x19090c;}[_0x5552('0x11')](){const _0x5d76d1=new _0x3672f4(this[_0x5552('0x15')]);return _0x5d76d1[_0x5552('0xe')]=_0x38305f(this['locale'],_0x5552('0x32')),_0x5d76d1[_0x5552('0x29')]=_0x233841,_0x5d76d1[_0x5552('0x28')]({'attributes':{'class':'ck-comment--remove'}}),_0x5d76d1['bind'](_0x5552('0xb'))['to'](this[_0x5552('0x35')],_0x5552('0xa'),_0x453eec=>!_0x453eec),_0x5d76d1[_0x5552('0x9')](_0x5552('0x2e'))['to'](this[_0x5552('0x35')],'isRemovable'),_0x5d76d1['on']('execute',()=>{this[_0x5552('0x0')](_0x38305f(this[_0x5552('0x15')],'Delete\x20comment?'),this[_0x5552('0x39')])[_0x5552('0x2b')](()=>{this[_0x5552('0x5')]('removeComment',this['_model']['id']);});}),_0x5d76d1;}[_0x5552('0x23')](_0xe45558,_0x118c57){this['listenTo'](_0xe45558,_0x5552('0x3'),()=>this[_0x5552('0x26')]=_0x118c57),this[_0x5552('0x1b')](_0xe45558,_0x5552('0x4'),()=>this[_0x5552('0x26')]=_0x118c57),this['listenTo'](_0xe45558,'mouseleave',()=>this[_0x5552('0x26')]=null),this[_0x5552('0x1b')](_0xe45558,_0x5552('0x30'),()=>this[_0x5552('0x26')]=null);}[_0x5552('0x24')](){const _0x129f14=super[_0x5552('0x24')]();return _0x129f14['bind'](_0x5552('0x20'))['to'](this),_0x129f14;}[_0x5552('0xf')](){super[_0x5552('0xf')](),this['_attachActions'](this[_0x5552('0x37')][_0x5552('0x39')],_0x5552('0x1f')),this[_0x5552('0x23')](this['removeButton'][_0x5552('0x39')],_0x5552('0x38'));}}_0x249466(ot,_0x5dc7e9);
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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');}}
23
+ var _0x4867=['pluginName','Comments'];(function(_0x16133b,_0x48679e){var _0x5adc16=function(_0x26cf46){while(--_0x26cf46){_0x16133b['push'](_0x16133b['shift']());}};_0x5adc16(++_0x48679e);}(_0x4867,0xc0));var _0x5adc=function(_0x16133b,_0x48679e){_0x16133b=_0x16133b-0x0;var _0x5adc16=_0x4867[_0x16133b];return _0x5adc16;};import{Plugin as _0x44a58a}from'ckeditor5/src/core';import _0x19e2ba from'./comments/commentsrepository';import _0x1702e6 from'./comments/commentsediting';import _0x2c7635 from'./comments/commentsui';import _0x27826f from'./commentsonly';import _0x13954d from'./annotations/widesidebar';import _0x257b13 from'./annotations/narrowsidebar';import _0x349f99 from'./annotations/inlineannotations';export default class c extends _0x44a58a{static get['requires'](){return[_0x19e2ba,_0x1702e6,_0x2c7635,_0x27826f,_0x13954d,_0x257b13,_0x349f99];}static get[_0x5adc('0x0')](){return _0x5adc('0x1');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]);}}
23
+ const _0x5bc4=['pluginName','isEnabled','plugins','clearForceDisabled','affectsData','stopListening','addCommentThread','editor','commentsOnlyMode','DragDrop','highest','CommentsOnly','requires','_disableCommentsOnlyMode','get','set','cut','view','listenTo','config','_enableCommentsOnlyMode','editing','has','stop','commentsOnly','forceDisabled','commands','delete'];(function(_0x4345bc,_0x5bc4e1){const _0x41b2cb=function(_0x529c46){while(--_0x529c46){_0x4345bc['push'](_0x4345bc['shift']());}};_0x41b2cb(++_0x5bc4e1);}(_0x5bc4,0x17e));const _0x41b2=function(_0x4345bc,_0x5bc4e1){_0x4345bc=_0x4345bc-0x0;let _0x41b2cb=_0x5bc4[_0x4345bc];return _0x41b2cb;};import{Plugin as _0x699d63}from'ckeditor5/src/core';import _0x1afcec from'./comments/commentsediting';export default class e extends _0x699d63{static get[_0x41b2('0xa')](){return _0x41b2('0x15');}static get[_0x41b2('0x16')](){return[_0x1afcec];}constructor(_0x4d0946){super(_0x4d0946),this[_0x41b2('0x19')](_0x41b2('0xb'),null),this['on']('change:isEnabled',(_0x22d997,_0x212286,_0x497d1f)=>{_0x497d1f?this['_enableCommentsOnlyMode']():this[_0x41b2('0x17')]();});}['afterInit'](){null===this[_0x41b2('0xb')]&&(this[_0x41b2('0xb')]=!!this[_0x41b2('0x11')][_0x41b2('0x1')][_0x41b2('0x18')](_0x41b2('0x6')));}[_0x41b2('0x2')](){for(const [_0x4f13f3,_0x174301]of this[_0x41b2('0x11')][_0x41b2('0x8')])_0x174301[_0x41b2('0xe')]&&_0x41b2('0x10')!==_0x4f13f3&&_0x174301[_0x41b2('0x7')](_0x41b2('0x12'));this[_0x41b2('0x11')][_0x41b2('0xc')][_0x41b2('0x4')]('DragDrop')&&this[_0x41b2('0x11')][_0x41b2('0xc')][_0x41b2('0x18')](_0x41b2('0x13'))['forceDisabled'](_0x41b2('0x12'));const _0x5ce314=this['editor'][_0x41b2('0x3')][_0x41b2('0x1b')]['document'];this['listenTo'](_0x5ce314,_0x41b2('0x1a'),_0x4dbf86=>_0x4dbf86[_0x41b2('0x5')](),{'priority':_0x41b2('0x14')}),this[_0x41b2('0x0')](_0x5ce314,'clipboardInput',_0x2f24c8=>_0x2f24c8[_0x41b2('0x5')](),{'priority':_0x41b2('0x14')}),this[_0x41b2('0x0')](_0x5ce314,_0x41b2('0x9'),_0x12a5ad=>_0x12a5ad[_0x41b2('0x5')](),{'priority':_0x41b2('0x14')});}[_0x41b2('0x17')](){for(const [_0x5aa779,_0x39a37b]of this[_0x41b2('0x11')][_0x41b2('0x8')])_0x39a37b[_0x41b2('0xe')]&&_0x41b2('0x10')!==_0x5aa779&&_0x39a37b[_0x41b2('0xd')](_0x41b2('0x12'));this[_0x41b2('0xf')](this[_0x41b2('0x11')][_0x41b2('0x3')]['view']['document']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ export function getTranslation(_0x5c7e0d,_0x188a39,_0x4a24db){const t=_0x5c7e0d['t'];switch(_0x188a39){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'},_0x4a24db);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'},_0x4a24db);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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']();}};}
23
+ const _0x259c=['observe','type','attributeName','childList'];(function(_0x2c3f6e,_0x259c4d){const _0x54e65a=function(_0x84b183){while(--_0x84b183){_0x2c3f6e['push'](_0x2c3f6e['shift']());}};_0x54e65a(++_0x259c4d);}(_0x259c,0x11e));const _0x54e6=function(_0x2c3f6e,_0x259c4d){_0x2c3f6e=_0x2c3f6e-0x0;let _0x54e65a=_0x259c[_0x2c3f6e];return _0x54e65a;};import{throttle as _0xaaca04}from'lodash-es';export default function ut(_0x30762b){const _0x4b27ff=_0xaaca04(_0x30762b,0x1e),_0x3a9452=new MutationObserver(_0x4788b3=>{for(const _0x174a62 of _0x4788b3)('attributes'==_0x174a62[_0x54e6('0x3')]&&'class'==_0x174a62[_0x54e6('0x0')]||_0x54e6('0x1')==_0x174a62[_0x54e6('0x3')])&&_0x4b27ff();});return{'attach'(_0x28601b){_0x3a9452[_0x54e6('0x2')](_0x28601b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x3a9452['disconnect'](),_0x4b27ff['cancel']();}};}