@ckeditor/ckeditor5-comments 34.0.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 (81) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/build/comments.js +1 -1
  4. package/build/translations/af.js +1 -0
  5. package/build/translations/ar.js +1 -0
  6. package/build/translations/bg.js +1 -0
  7. package/build/translations/bn.js +1 -0
  8. package/build/translations/ca.js +1 -0
  9. package/build/translations/es.js +1 -1
  10. package/build/translations/fi.js +1 -0
  11. package/build/translations/fr.js +1 -1
  12. package/build/translations/he.js +1 -0
  13. package/build/translations/it.js +1 -1
  14. package/build/translations/ja.js +1 -1
  15. package/build/translations/lt.js +1 -0
  16. package/build/translations/lv.js +1 -0
  17. package/build/translations/ms.js +1 -0
  18. package/build/translations/pt-br.js +1 -1
  19. package/build/translations/pt.js +1 -0
  20. package/build/translations/sr.js +1 -1
  21. package/build/translations/sv.js +1 -0
  22. package/build/translations/th.js +1 -0
  23. package/build/translations/ur.js +1 -0
  24. package/build/translations/vi.js +1 -0
  25. package/lang/translations/af.po +67 -0
  26. package/lang/translations/ar.po +71 -0
  27. package/lang/translations/bg.po +67 -0
  28. package/lang/translations/bn.po +67 -0
  29. package/lang/translations/ca.po +67 -0
  30. package/lang/translations/es.po +2 -1
  31. package/lang/translations/fi.po +67 -0
  32. package/lang/translations/fr.po +2 -1
  33. package/lang/translations/he.po +69 -0
  34. package/lang/translations/it.po +2 -1
  35. package/lang/translations/ja.po +3 -3
  36. package/lang/translations/lt.po +69 -0
  37. package/lang/translations/lv.po +68 -0
  38. package/lang/translations/ms.po +66 -0
  39. package/lang/translations/pt-br.po +2 -1
  40. package/lang/translations/pt.po +68 -0
  41. package/lang/translations/sr.po +3 -3
  42. package/lang/translations/sv.po +67 -0
  43. package/lang/translations/th.po +66 -0
  44. package/lang/translations/ur.po +67 -0
  45. package/lang/translations/vi.po +66 -0
  46. package/package.json +3 -3
  47. package/src/annotations/annotation.js +1 -1
  48. package/src/annotations/annotationcollection.js +1 -1
  49. package/src/annotations/annotations.js +1 -1
  50. package/src/annotations/annotationsuis.js +1 -1
  51. package/src/annotations/editorannotations.js +1 -1
  52. package/src/annotations/inlineannotations.js +1 -1
  53. package/src/annotations/narrowsidebar.js +1 -1
  54. package/src/annotations/sidebar.js +1 -1
  55. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  56. package/src/annotations/view/annotationview.js +1 -1
  57. package/src/annotations/view/sidebaritemview.js +1 -1
  58. package/src/annotations/view/sidebarview.js +1 -1
  59. package/src/annotations/widesidebar.js +1 -1
  60. package/src/comments/addcommentthreadcommand.js +1 -1
  61. package/src/comments/commentsediting.js +1 -1
  62. package/src/comments/commentsrepository.js +1 -1
  63. package/src/comments/commentsui.js +1 -1
  64. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  65. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  66. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  67. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  68. package/src/comments/ui/commentthreadcontroller.js +1 -1
  69. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  70. package/src/comments/ui/view/basecommentview.js +1 -1
  71. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  72. package/src/comments/ui/view/commentcontentview.js +1 -1
  73. package/src/comments/ui/view/commentinputview.js +1 -1
  74. package/src/comments/ui/view/commentslistview.js +1 -1
  75. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  76. package/src/comments/ui/view/commentthreadview.js +1 -1
  77. package/src/comments/ui/view/commentview.js +1 -1
  78. package/src/comments.js +1 -1
  79. package/src/commentsonly.js +1 -1
  80. package/src/utils/common-translations.js +1 -1
  81. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c00=['destroy','ready','setEditableElement','bind','name','document','editing','editor','getRoot','fire','init','view','render','attachDomRoot','focusTracker','element','editable','rootName'];(function(_0x5394bb,_0x2c002d){const _0x2a407c=function(_0x3bfa7e){while(--_0x3bfa7e){_0x5394bb['push'](_0x5394bb['shift']());}};_0x2a407c(++_0x2c002d);}(_0x2c00,0x1c3));const _0x2a40=function(_0x5394bb,_0x2c002d){_0x5394bb=_0x5394bb-0x0;let _0x2a407c=_0x2c00[_0x5394bb];return _0x2a407c;};import{EditorUI as _0x44a97d}from'ckeditor5/src/core';import _0x9364b6 from'./commenteditoruiview';export default class yt extends _0x44a97d{constructor(_0x3217cc){super(_0x3217cc),this['view']=new _0x9364b6(_0x3217cc['locale'],_0x3217cc[_0x2a40('0x5')]['view']);}get['element'](){return this[_0x2a40('0xa')]['element'];}[_0x2a40('0x9')](){const _0x24a044=this[_0x2a40('0x6')][_0x2a40('0x5')]['view'],_0x57135e=this[_0x2a40('0xa')][_0x2a40('0xf')],_0xfe2119=_0x24a044[_0x2a40('0x4')][_0x2a40('0x7')]();_0x57135e[_0x2a40('0x3')]=_0xfe2119[_0x2a40('0x10')],this[_0x2a40('0xa')][_0x2a40('0xb')]();const _0x468ea7=_0x57135e[_0x2a40('0xe')];this[_0x2a40('0x1')](_0x57135e[_0x2a40('0x3')],_0x468ea7),this[_0x2a40('0xd')]['add'](_0x468ea7),this[_0x2a40('0xa')][_0x2a40('0xf')][_0x2a40('0x2')]('isFocused')['to'](this['focusTracker']),_0x24a044[_0x2a40('0xc')](_0x468ea7),this[_0x2a40('0x8')](_0x2a40('0x0'));}[_0x2a40('0x11')](){this[_0x2a40('0xa')]['destroy'](),super[_0x2a40('0x11')]();}}
23
+ const _0x218b=['bind','editable','destroy','render','ready','focusTracker','locale','document','view','getRoot','element','editing','editor','init'];(function(_0x3c0416,_0x218b39){const _0x43adb1=function(_0xbbfecb){while(--_0xbbfecb){_0x3c0416['push'](_0x3c0416['shift']());}};_0x43adb1(++_0x218b39);}(_0x218b,0x160));const _0x43ad=function(_0x3c0416,_0x218b39){_0x3c0416=_0x3c0416-0x0;let _0x43adb1=_0x218b[_0x3c0416];return _0x43adb1;};import{EditorUI as _0x55e286}from'ckeditor5/src/core';import _0x420053 from'./commenteditoruiview';export default class yt extends _0x55e286{constructor(_0x211301){super(_0x211301),this['view']=new _0x420053(_0x211301[_0x43ad('0x4')],_0x211301[_0x43ad('0x9')][_0x43ad('0x6')]);}get[_0x43ad('0x8')](){return this[_0x43ad('0x6')][_0x43ad('0x8')];}[_0x43ad('0xb')](){const _0x3c9d7e=this[_0x43ad('0xa')][_0x43ad('0x9')][_0x43ad('0x6')],_0x1d1aa0=this[_0x43ad('0x6')][_0x43ad('0xd')],_0x307eec=_0x3c9d7e[_0x43ad('0x5')][_0x43ad('0x7')]();_0x1d1aa0['name']=_0x307eec['rootName'],this['view'][_0x43ad('0x1')]();const _0x26373d=_0x1d1aa0[_0x43ad('0x8')];this['setEditableElement'](_0x1d1aa0['name'],_0x26373d),this['focusTracker']['add'](_0x26373d),this['view']['editable'][_0x43ad('0xc')]('isFocused')['to'](this[_0x43ad('0x3')]),_0x3c9d7e['attachDomRoot'](_0x26373d),this['fire'](_0x43ad('0x2'));}[_0x43ad('0x0')](){this[_0x43ad('0x6')]['destroy'](),super[_0x43ad('0x0')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{InlineEditableUIView as $t,EditorUIView as Ct,LabelView as Lt}from'ckeditor5/src/ui';import{uid as _0x51d464}from'ckeditor5/src/utils';export default class At extends Ct{constructor(_0xfda6a1,_0x167555){super(_0xfda6a1);const _0x3f7d2e=_0x51d464();this['main']=this['createCollection'](),this['editable']=new $t(_0xfda6a1,_0x167555),this['_voiceLabelView']=this['_createVoiceLabel'](_0x3f7d2e,_0xfda6a1),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'role':'comment','dir':_0xfda6a1['uiLanguageDirection'],'lang':_0xfda6a1['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x3f7d2e},'children':[this['_voiceLabelView'],{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}['_createVoiceLabel'](_0x3da27a,_0x4762a4){const _0x37ea71=new Lt(),{t:t}=_0x4762a4;return _0x37ea71['text']=t('Comment\x20editor'),_0x37ea71['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x3da27a,'class':'ck-voice-label'}}),_0x37ea71;}}
23
+ const _0x4c7a=['ck-rounded-corners','uiLanguage','render','ck-reset','editable','extendTemplate','setTemplate','ck-voice-label','div','add','presentation','focus','main','_createVoiceLabel','ck-editor__main','_voiceLabelView'];(function(_0x59e26f,_0x4c7ac7){const _0x1bdb83=function(_0x585d47){while(--_0x585d47){_0x59e26f['push'](_0x59e26f['shift']());}};_0x1bdb83(++_0x4c7ac7);}(_0x4c7a,0x1dd));const _0x1bdb=function(_0x59e26f,_0x4c7ac7){_0x59e26f=_0x59e26f-0x0;let _0x1bdb83=_0x4c7a[_0x59e26f];return _0x1bdb83;};import{InlineEditableUIView as _0x29dcb8,EditorUIView as _0x47cfb6,LabelView as _0x47b3a5}from'ckeditor5/src/ui';import{uid as _0x131659}from'ckeditor5/src/utils';import{getTranslation as _0x383c1a}from'../../../utils/common-translations';export default class At extends _0x47cfb6{constructor(_0x45f056,_0x801365){super(_0x45f056);const _0x5568d3=_0x131659();this[_0x1bdb('0xf')]=this['createCollection'](),this[_0x1bdb('0x7')]=new _0x29dcb8(_0x45f056,_0x801365),this[_0x1bdb('0x2')]=this['_createVoiceLabel'](_0x5568d3,_0x45f056),this[_0x1bdb('0x9')]({'tag':'div','attributes':{'class':[_0x1bdb('0x6'),'ck-editor',_0x1bdb('0x3'),'ck-comment__input'],'role':'comment','dir':_0x45f056['uiLanguageDirection'],'lang':_0x45f056[_0x1bdb('0x4')],'aria-labelledby':'cke-editor__aria-label_'+_0x5568d3},'children':[this[_0x1bdb('0x2')],{'tag':_0x1bdb('0xb'),'attributes':{'class':_0x1bdb('0x1'),'role':_0x1bdb('0xd')},'children':this[_0x1bdb('0xf')]}]});}[_0x1bdb('0x5')](){super[_0x1bdb('0x5')](),this[_0x1bdb('0xf')][_0x1bdb('0xc')](this['editable']);}[_0x1bdb('0xe')](){this['editable']['element'][_0x1bdb('0xe')]();}[_0x1bdb('0x0')](_0x52fbe1,_0x179905){const _0x45e101=new _0x47b3a5();return _0x45e101['text']=_0x383c1a(_0x179905,'Comment\x20editor'),_0x45e101[_0x1bdb('0x8')]({'attributes':{'id':'ck-editor__aria-label_'+_0x52fbe1,'class':_0x1bdb('0xa')}}),_0x45e101;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x59e9=['stopListening','remove','updateComment','addComment','listenTo','getComment','_isAttached','update','view','model','removeCommentThread','removeComment'];(function(_0x22918a,_0x59e976){var _0x54bc46=function(_0x3eb5c6){while(--_0x3eb5c6){_0x22918a['push'](_0x22918a['shift']());}};_0x54bc46(++_0x59e976);}(_0x59e9,0xf5));var _0x54bc=function(_0x22918a,_0x59e976){_0x22918a=_0x22918a-0x0;var _0x54bc46=_0x59e9[_0x22918a];return _0x54bc46;};import{ObservableMixin as _0x4e7695,mix as _0x381c52}from'ckeditor5/src/utils';export default class et{constructor(_0x4e44ad,_0x14634a){this['model']=_0x4e44ad,this[_0x54bc('0x4')][_0x54bc('0x1')]=!0x0,this['view']=_0x14634a,this[_0x54bc('0xb')](_0x14634a,_0x54bc('0x5'),()=>this[_0x54bc('0x8')]()),this[_0x54bc('0xb')](_0x14634a,_0x54bc('0xa'),(_0x2646f4,_0xddb65a)=>this[_0x54bc('0xa')](_0xddb65a)),this[_0x54bc('0xb')](_0x14634a,'updateComment',(_0x351f12,_0x3c44a0,_0x3e3d09)=>this[_0x54bc('0x9')](_0x3c44a0,_0x3e3d09)),this[_0x54bc('0xb')](_0x14634a,_0x54bc('0x6'),(_0x4a0d18,_0x36bacf)=>this['removeComment'](_0x36bacf));}[_0x54bc('0x8')](){this[_0x54bc('0x4')][_0x54bc('0x8')]();}[_0x54bc('0xa')](_0x60acb){this[_0x54bc('0x4')][_0x54bc('0xa')]({'content':_0x60acb,'authorId':this[_0x54bc('0x3')]['_localUser']['id']});}[_0x54bc('0x9')](_0x42d191,_0x34279c){this[_0x54bc('0x4')][_0x54bc('0x0')](_0x42d191)[_0x54bc('0x2')]({'content':_0x34279c});}['removeComment'](_0x3a9d3d){this['model']['getComment'](_0x3a9d3d)['remove']();}['destroy'](){this[_0x54bc('0x7')](),this[_0x54bc('0x4')]['_isAttached']=!0x1;}}_0x381c52(et,_0x4e7695);
23
+ var _0x55d7=['removeComment','model','updateComment','listenTo','view','getComment','_isAttached','addComment','destroy','remove','stopListening'];(function(_0x30c0c0,_0x55d74b){var _0x28c615=function(_0x4b5909){while(--_0x4b5909){_0x30c0c0['push'](_0x30c0c0['shift']());}};_0x28c615(++_0x55d74b);}(_0x55d7,0x130));var _0x28c6=function(_0x30c0c0,_0x55d74b){_0x30c0c0=_0x30c0c0-0x0;var _0x28c615=_0x55d7[_0x30c0c0];return _0x28c615;};import{ObservableMixin as _0x40dc84,mix as _0x359d1f}from'ckeditor5/src/utils';export default class et{constructor(_0x205e6b,_0x234735){this['model']=_0x205e6b,this[_0x28c6('0x5')][_0x28c6('0xa')]=!0x0,this[_0x28c6('0x8')]=_0x234735,this[_0x28c6('0x7')](_0x234735,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x234735,'addComment',(_0x5ed6d8,_0x2d915d)=>this['addComment'](_0x2d915d)),this[_0x28c6('0x7')](_0x234735,_0x28c6('0x6'),(_0x395294,_0x9dfa92,_0x2c4846)=>this[_0x28c6('0x6')](_0x9dfa92,_0x2c4846)),this[_0x28c6('0x7')](_0x234735,'removeComment',(_0x163f9e,_0x73ebe4)=>this['removeComment'](_0x73ebe4));}[_0x28c6('0x2')](){this[_0x28c6('0x5')][_0x28c6('0x2')]();}[_0x28c6('0x0')](_0x24f016){this[_0x28c6('0x5')][_0x28c6('0x0')]({'content':_0x24f016,'authorId':this[_0x28c6('0x8')]['_localUser']['id']});}[_0x28c6('0x6')](_0x5a88ce,_0x5dbef0){this[_0x28c6('0x5')][_0x28c6('0x9')](_0x5a88ce)['update']({'content':_0x5dbef0});}[_0x28c6('0x4')](_0x415efa){this['model'][_0x28c6('0x9')](_0x415efa)[_0x28c6('0x2')]();}[_0x28c6('0x1')](){this[_0x28c6('0x3')](),this[_0x28c6('0x5')][_0x28c6('0xa')]=!0x1;}}_0x359d1f(et,_0x40dc84);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as ht}from'ckeditor5/src/ui';import dt from'./commentthreadinputview';import ct from'./commentslistview';export default class Rt extends ht{constructor(_0x5bdad1,_0x1a3a7e,_0x228f4f,_0xb2f3ee){super(_0x5bdad1),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x1a3a7e,this['_localUser']=_0x228f4f,this['_config']=_0xb2f3ee,this['commentsListView']=new ct(_0x5bdad1,_0x1a3a7e,Object['assign']({'CommentView':this['_config']['CommentView']},_0xb2f3ee)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x55307a,_0x198e68)=>_0x55307a||!!_0x198e68);}['focus'](){this['element']['focus']();}['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const {t:t}=this['locale'],_0x1e1d42=new dt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x519b31=_0x1e1d42['commentInputView'];return _0x1e1d42['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',_0x519b31,'value',(_0x94d79,_0xdbd480,_0x5b1fbb)=>!!_0x5b1fbb||_0x94d79&&!_0xdbd480),_0x519b31['bind']('placeholder')['to'](this,'length',_0xac9c1e=>t(_0xac9c1e?'Reply...':'Write\x20a\x20comment...')),_0x519b31['on']('submit',(_0x27b5a3,_0x3d15f2)=>{this['fire']('addComment',_0x3d15f2);}),_0x519b31['on']('cancel',()=>{this['focus']();}),_0x519b31['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x519b31['on']('cancel',_0xa298a8=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0xa298a8['stop']());}),this['on']('change:isActive',(_0x448dc2,_0x31af27,_0x4ffdf7)=>{_0x4ffdf7||this['length']||_0x519b31['value']||this['fire']('removeCommentThread');}),_0x1e1d42;}}
23
+ const _0x5bf3=['set','isReadOnly','isDirty','removeCommentThread','commentsListView','change:isActive','cancel','destroy','submit','isActive','updateComment','length','element','bind','delegate','_createCommentThreadInputView','Reply...','fire','commentInputView','commentThreadInputView','_localUser','addComment','focus','value','disabledSubmit','editorConfig','locale','removeComment','_config','_model','showInput'];(function(_0x55cda9,_0x5bf3b5){const _0x3d4f96=function(_0x1dfacd){while(--_0x1dfacd){_0x55cda9['push'](_0x55cda9['shift']());}};_0x3d4f96(++_0x5bf3b5);}(_0x5bf3,0x1cc));const _0x3d4f=function(_0x55cda9,_0x5bf3b5){_0x55cda9=_0x55cda9-0x0;let _0x3d4f96=_0x5bf3[_0x55cda9];return _0x3d4f96;};import{View as _0x394d54}from'ckeditor5/src/ui';import _0x3a84c5 from'./commentthreadinputview';import _0x1ed77a from'./commentslistview';import{getTranslation as _0x174191}from'../../../utils/common-translations';export default class Rt extends _0x394d54{constructor(_0x24f36b,_0x25d867,_0x4b57f8,_0x14d0e0){super(_0x24f36b),this[_0x3d4f('0x5')](_0x3d4f('0xe'),!0x1),this[_0x3d4f('0x5')](_0x3d4f('0x7'),!0x1),this[_0x3d4f('0x3')]=_0x25d867,this[_0x3d4f('0x19')]=_0x4b57f8,this['_config']=_0x14d0e0,this[_0x3d4f('0x9')]=new _0x1ed77a(_0x24f36b,_0x25d867,Object['assign']({'CommentView':this[_0x3d4f('0x2')]['CommentView']},_0x14d0e0)),this[_0x3d4f('0x9')][_0x3d4f('0x13')](_0x3d4f('0x1'))['to'](this),this[_0x3d4f('0x9')]['delegate'](_0x3d4f('0xf'))['to'](this),this[_0x3d4f('0x9')]['bind']('isActive')['to'](this),this[_0x3d4f('0x5')](_0x3d4f('0x10'),this['commentsListView'][_0x3d4f('0x10')]),this[_0x3d4f('0x12')]('length')['to'](this['commentsListView'],_0x3d4f('0x10')),this['commentThreadInputView']=this[_0x3d4f('0x14')](),this['on'](_0x3d4f('0x1'),()=>this['focus']()),this['bind'](_0x3d4f('0x7'))['to'](this[_0x3d4f('0x9')],'hasDirtyComment',this[_0x3d4f('0x18')]['commentInputView'],'value',(_0x202866,_0x4d5893)=>_0x202866||!!_0x4d5893);}[_0x3d4f('0x1b')](){this[_0x3d4f('0x11')][_0x3d4f('0x1b')]();}['destroy'](){this['isDirty']=!0x1,this[_0x3d4f('0x9')][_0x3d4f('0xc')](),this[_0x3d4f('0x18')][_0x3d4f('0xc')](),super[_0x3d4f('0xc')]();}['_createCommentThreadInputView'](){const _0xac943=new _0x3a84c5(this[_0x3d4f('0x0')],this[_0x3d4f('0x19')],this[_0x3d4f('0x2')][_0x3d4f('0x1e')]),_0x6f0d05=_0xac943[_0x3d4f('0x17')];return _0xac943[_0x3d4f('0x12')](_0x3d4f('0x4'))['to'](this,_0x3d4f('0xe'),this[_0x3d4f('0x3')],_0x3d4f('0x6'),_0x6f0d05,_0x3d4f('0x1c'),(_0x588435,_0x4284bf,_0x4db25c)=>!!_0x4db25c||_0x588435&&!_0x4284bf),_0x6f0d05['bind']('placeholder')['to'](this,_0x3d4f('0x10'),_0x19fc45=>_0x174191(this['locale'],_0x19fc45?_0x3d4f('0x15'):'Write\x20a\x20comment...')),_0x6f0d05['on'](_0x3d4f('0xd'),(_0x339d8c,_0x5300f9)=>{this[_0x3d4f('0x16')](_0x3d4f('0x1a'),_0x5300f9);}),_0x6f0d05['on'](_0x3d4f('0xb'),()=>{this[_0x3d4f('0x1b')]();}),_0x6f0d05[_0x3d4f('0x12')](_0x3d4f('0x1d'))['to'](this['_model'],_0x3d4f('0x6')),_0x6f0d05['on'](_0x3d4f('0xb'),_0x231ebf=>{0x0==this[_0x3d4f('0x10')]&&(this['fire'](_0x3d4f('0x8')),_0x231ebf['stop']());}),this['on'](_0x3d4f('0xa'),(_0x3c59eb,_0x2e3424,_0x5af150)=>{_0x5af150||this['length']||_0x6f0d05[_0x3d4f('0x1c')]||this['fire'](_0x3d4f('0x8'));}),_0xac943;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2976=['_createCommentContentView','expand','isCollapsed','visibleView','destroy','set','createCollection','_config','_createCommentInputView','_model','fire','value','editorConfig','switchToDisplayMode','initialData','maxCommentCharsWhenCollapsed','add','element','isEditMode','disabledSubmit','isReadOnly','cancel','content','switchToEditMode','get','remove','focus','locale','updateComment'];(function(_0x56eb8e,_0x29767a){const _0x57405b=function(_0xcfffc4){while(--_0xcfffc4){_0x56eb8e['push'](_0x56eb8e['shift']());}};_0x57405b(++_0x29767a);}(_0x2976,0x1d1));const _0x5740=function(_0x56eb8e,_0x29767a){_0x56eb8e=_0x56eb8e-0x0;let _0x57405b=_0x2976[_0x56eb8e];return _0x57405b;};import{View as _0x1b40c6}from'ckeditor5/src/ui';import{trimHtml as _0x15ff53}from'ckeditor5-collaboration/src/collaboration-core';import _0x1c1a9a from'./commentcontentview';import _0x2a2876 from'./commentinputview';export default class Vt extends _0x1b40c6{constructor(_0x16a871,_0x506454,_0x3ebfcc){super(_0x16a871),this['_model']=_0x506454,this[_0x5740('0x6')]=_0x3ebfcc,this[_0x5740('0x4')](_0x5740('0x11'),!0x1),this[_0x5740('0x4')](_0x5740('0x1'),!0x0),this[_0x5740('0x2')]=this[_0x5740('0x5')](),this[_0x5740('0x2')][_0x5740('0xf')](this[_0x5740('0x1c')]());}[_0x5740('0x0')](){this[_0x5740('0x1')]=!0x1;}['collapse'](){this['isEditMode']||(this[_0x5740('0x1')]=!0x0);}[_0x5740('0x19')](){this[_0x5740('0x10')][_0x5740('0x19')]();}async['destroy'](){await this[_0x5740('0x2')][_0x5740('0x17')](0x0)[_0x5740('0x3')](),super[_0x5740('0x3')]();}[_0x5740('0x16')](){this['isEditMode']||(this[_0x5740('0x11')]=!0x0,this[_0x5740('0x2')][_0x5740('0x18')](0x0)[_0x5740('0x3')](),this[_0x5740('0x2')][_0x5740('0xf')](this[_0x5740('0x7')]()));}[_0x5740('0xc')](){this[_0x5740('0x11')]&&(this[_0x5740('0x11')]=!0x1,this[_0x5740('0x2')][_0x5740('0x18')](0x0)[_0x5740('0x3')](),this[_0x5740('0x2')][_0x5740('0xf')](this[_0x5740('0x1c')]()));}[_0x5740('0x1c')](){const _0x59ae16=new _0x1c1a9a(this['locale']);return _0x59ae16['bind'](_0x5740('0x15'))['to'](this[_0x5740('0x8')],_0x5740('0x15'),this,_0x5740('0x1'),(_0x1442d2,_0x29d9a2)=>_0x29d9a2?_0x15ff53(_0x1442d2,{'limit':this[_0x5740('0x6')][_0x5740('0xe')]}):_0x1442d2),_0x59ae16;}[_0x5740('0x7')](){this['_config'][_0x5740('0xb')]||(this['_config'][_0x5740('0xb')]={}),this[_0x5740('0x6')][_0x5740('0xb')][_0x5740('0xd')]=this[_0x5740('0x8')][_0x5740('0x15')];const _0xa06791=new _0x2a2876(this[_0x5740('0x1a')],this[_0x5740('0x6')][_0x5740('0xb')]);return _0xa06791[_0x5740('0xa')]=this[_0x5740('0x8')][_0x5740('0x15')],_0xa06791['bind'](_0x5740('0x12'))['to'](this[_0x5740('0x8')],_0x5740('0x13')),_0xa06791['on']('submit',(_0x358ec0,_0x50f43b)=>{this[_0x5740('0x9')](_0x5740('0x1b'),this[_0x5740('0x8')]['id'],_0x50f43b),this['switchToDisplayMode'](),this[_0x5740('0x19')]();}),_0xa06791['on'](_0x5740('0x14'),()=>{this['switchToDisplayMode'](),this[_0x5740('0x19')]();}),_0xa06791['once']('editorReady',()=>{_0xa06791[_0x5740('0x19')]();}),_0xa06791;}}
23
+ const _0x2064=['expand','isReadOnly','_config','remove','collapse','cancel','add','locale','initialData','set','createCollection','fire','_createCommentInputView','get','isCollapsed','isEditMode','focus','value','destroy','content','editorConfig','disabledSubmit','_model','switchToDisplayMode','switchToEditMode','once','_createCommentContentView','element','bind','visibleView'];(function(_0x46bfaa,_0x2064a0){const _0x26239c=function(_0x4022f2){while(--_0x4022f2){_0x46bfaa['push'](_0x46bfaa['shift']());}};_0x26239c(++_0x2064a0);}(_0x2064,0x18d));const _0x2623=function(_0x46bfaa,_0x2064a0){_0x46bfaa=_0x46bfaa-0x0;let _0x26239c=_0x2064[_0x46bfaa];return _0x26239c;};import{View as _0x22ba89}from'ckeditor5/src/ui';import{trimHtml as _0x559483}from'ckeditor5-collaboration/src/collaboration-core';import _0x29bf3f from'./commentcontentview';import _0x56ce6f from'./commentinputview';export default class Vt extends _0x22ba89{constructor(_0x116616,_0x5b3cd2,_0x141577){super(_0x116616),this['_model']=_0x5b3cd2,this['_config']=_0x141577,this[_0x2623('0x2')](_0x2623('0x8'),!0x1),this[_0x2623('0x2')](_0x2623('0x7'),!0x0),this['visibleView']=this[_0x2623('0x3')](),this['visibleView'][_0x2623('0x1d')](this['_createCommentContentView']());}[_0x2623('0x17')](){this[_0x2623('0x7')]=!0x1;}[_0x2623('0x1b')](){this[_0x2623('0x8')]||(this[_0x2623('0x7')]=!0x0);}['focus'](){this[_0x2623('0x14')][_0x2623('0x9')]();}async[_0x2623('0xb')](){await this[_0x2623('0x16')][_0x2623('0x6')](0x0)[_0x2623('0xb')](),super[_0x2623('0xb')]();}[_0x2623('0x11')](){this[_0x2623('0x8')]||(this[_0x2623('0x8')]=!0x0,this[_0x2623('0x16')][_0x2623('0x1a')](0x0)[_0x2623('0xb')](),this[_0x2623('0x16')]['add'](this[_0x2623('0x5')]()));}['switchToDisplayMode'](){this['isEditMode']&&(this[_0x2623('0x8')]=!0x1,this[_0x2623('0x16')][_0x2623('0x1a')](0x0)[_0x2623('0xb')](),this[_0x2623('0x16')][_0x2623('0x1d')](this[_0x2623('0x13')]()));}[_0x2623('0x13')](){const _0x2fd517=new _0x29bf3f(this[_0x2623('0x0')]);return _0x2fd517[_0x2623('0x15')](_0x2623('0xc'))['to'](this[_0x2623('0xf')],_0x2623('0xc'),this,_0x2623('0x7'),(_0x1f12bf,_0x20123b)=>_0x20123b?_0x559483(_0x1f12bf,{'limit':this[_0x2623('0x19')]['maxCommentCharsWhenCollapsed']}):_0x1f12bf),_0x2fd517;}['_createCommentInputView'](){this[_0x2623('0x19')]['editorConfig']||(this['_config']['editorConfig']={}),this[_0x2623('0x19')][_0x2623('0xd')][_0x2623('0x1')]=this['_model'][_0x2623('0xc')];const _0x3b920a=new _0x56ce6f(this[_0x2623('0x0')],this['_config'][_0x2623('0xd')]);return _0x3b920a[_0x2623('0xa')]=this[_0x2623('0xf')]['content'],_0x3b920a[_0x2623('0x15')](_0x2623('0xe'))['to'](this['_model'],_0x2623('0x18')),_0x3b920a['on']('submit',(_0x2a59f1,_0x1c3f82)=>{this[_0x2623('0x4')]('updateComment',this[_0x2623('0xf')]['id'],_0x1c3f82),this[_0x2623('0x10')](),this[_0x2623('0x9')]();}),_0x3b920a['on'](_0x2623('0x1c'),()=>{this[_0x2623('0x10')](),this[_0x2623('0x9')]();}),_0x3b920a[_0x2623('0x12')]('editorReady',()=>{_0x3b920a[_0x2623('0x9')]();}),_0x3b920a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as ht}from'ckeditor5/src/ui';export default class Nt extends ht{constructor(_0x29edee){super(_0x29edee);const {t:t}=_0x29edee,_0x41d0a6=this['bindTemplate'];this['set']('count'),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x41d0a6['to']('count',_0xae26e=>t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0xae26e))}]});}}
23
+ const _0x4a7b=['count','NUMBER_OF_COMMENTS','set','ck-thread__comment-count','bindTemplate'];(function(_0x357c6f,_0x4a7b04){const _0x13f266=function(_0x13e37d){while(--_0x13e37d){_0x357c6f['push'](_0x357c6f['shift']());}};_0x13f266(++_0x4a7b04);}(_0x4a7b,0x144));const _0x13f2=function(_0x357c6f,_0x4a7b04){_0x357c6f=_0x357c6f-0x0;let _0x13f266=_0x4a7b[_0x357c6f];return _0x13f266;};import{View as _0x48b7c4}from'ckeditor5/src/ui';import{getTranslation as _0x3872c8}from'../../../utils/common-translations';export default class Nt extends _0x48b7c4{constructor(_0x11b784){super(_0x11b784);const _0x1c9e50=this[_0x13f2('0x0')];this[_0x13f2('0x3')]('count'),this['setTemplate']({'tag':'li','attributes':{'class':_0x13f2('0x4')},'children':[{'text':_0x1c9e50['to'](_0x13f2('0x1'),_0x18da5a=>_0x3872c8(_0x11b784,_0x13f2('0x2'),_0x18da5a))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3b3f=['setTemplate','content','element','set','render','innerHTML','ck-annotation__content','change:content'];(function(_0x39da51,_0x3b3f1d){var _0x947a53=function(_0x332873){while(--_0x332873){_0x39da51['push'](_0x39da51['shift']());}};_0x947a53(++_0x3b3f1d);}(_0x3b3f,0x157));var _0x947a=function(_0x39da51,_0x3b3f1d){_0x39da51=_0x39da51-0x0;var _0x947a53=_0x3b3f[_0x39da51];return _0x947a53;};import{View as _0x71169a}from'ckeditor5/src/ui';export default class Et extends _0x71169a{constructor(_0x2ff9cd){super(_0x2ff9cd),this[_0x947a('0x4')](_0x947a('0x2'),''),this[_0x947a('0x1')]({'tag':'div','attributes':{'class':['ck-comment__content',_0x947a('0x7')]}});}[_0x947a('0x5')](){super[_0x947a('0x5')](),this['on'](_0x947a('0x0'),(_0xf94859,_0x2714ad,_0x14468e)=>{this[_0x947a('0x3')][_0x947a('0x6')]=_0x14468e;}),this[_0x947a('0x3')][_0x947a('0x6')]=this[_0x947a('0x2')];}}
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
- import{View as ht,ViewCollection as Bt,FocusCycler as St,ButtonView as mt}from'ckeditor5/src/ui';import{FocusTracker as _0x2949e4,KeystrokeHandler as pt}from'ckeditor5/src/utils';import{icons as Gt}from'ckeditor5/src/core';import qt from'../commenteditor/commenteditor';export default class Tt extends ht{constructor(_0x374a64,_0x3bf09a={}){super(_0x374a64);const {t:t}=_0x374a64;this['editor']=new qt(_0x3bf09a),this['keystrokes']=new pt(),this['focusTracker']=new _0x2949e4(),this['set']('value',_0x3bf09a['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',t('Reply...')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0xdffdb6,_0x2e24ba)=>{this['cancelButtonView']['fire']('execute'),_0x2e24ba();}),this['on']('submit',(_0x36c186,_0x31b09d)=>{_0x31b09d['length']>0xfde8?(alert(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'},[_0x31b09d['length'],0xfde8])),_0x36c186['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x26baba,element:_0x46854d}=this;this['keystrokes']['listenTo'](_0x46854d),this['focusTracker']['add'](_0x46854d),this['_editorCreationPromise']=_0x26baba['create']()['then'](()=>{_0x46854d['insertBefore'](_0x26baba['ui']['element'],_0x46854d['firstChild']),_0x26baba['model']['document']['on']('change',()=>this['value']=_0x26baba['getData']()),_0x26baba['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x26baba),this['fire']('editorReady');});}['focus'](){this['editor']['focus']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['isRendered']&&(await this['_editorCreationPromise'],await this['editor']['destroy']()),await super['destroy']());}['_createSubmitButton'](){const _0x297ab9=new mt(this['locale']),{t:t}=this['locale'];return _0x297ab9['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x297ab9['label']=t('Submit'),_0x297ab9['icon']=Gt['check'],_0x297ab9['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x297ab9['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x54e110,_0x2e044d)=>!_0x2e044d&&!!_0x54e110['trim']()),_0x297ab9;}['_createCancelButton'](){const _0x3ab44f=new mt(this['locale']),{t:t}=this['locale'];return _0x3ab44f['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x3ab44f['label']=t('Cancel'),_0x3ab44f['icon']=Gt['cancel'],_0x3ab44f['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x3ab44f;}['_initializeFocusCycling'](_0x18fa72){const _0x48aeff=this['focusTracker'],_0x1319a3=new Bt();[_0x18fa72['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x5b853e=>{_0x1319a3['add'](_0x5b853e),_0x48aeff['add'](_0x5b853e['element']);});const _0x423243=new St({'focusables':_0x1319a3,'focusTracker':_0x48aeff});this['keystrokes']['set']('tab',(_0x1016fb,_0x17f9b8)=>{_0x423243['focusNext'](),_0x17f9b8();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x298536,_0x1aff3b)=>{_0x423243['focusPrevious'](),_0x1aff3b();},{'priority':'low'});}}
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 _0x3668=['collapse','editorConfig','weight','remove','_rearrangeCollapse','_shouldCollapse','from','bind','destroy','createCollection','visibleViews','formatDateTime','commentViews','_handleRemoveCommentModel','refreshVisibleViews','_updateHasDirtyComment','comments','removeComment','count','render','delete','hasDirtyComment','change:hasDirtyComment','isActive','_config','viewUid','_model','change:isEditMode','CommentView','expand','_collapsedCommentsView','maxThreadTotalWeight','set','maxCommentCharsWhenCollapsed','isEditMode','_rearrangeExpand','get','ck-thread__comments','locale','delegate','updateComment','commentUpdated','setTemplate','element','maxCommentsWhenCollapsed','add','listenTo','_handleNewCommentModel','stopListening','insert','length'];(function(_0x225b3e,_0x3668d2){const _0x2150fe=function(_0x3034c8){while(--_0x3034c8){_0x225b3e['push'](_0x225b3e['shift']());}};_0x2150fe(++_0x3668d2);}(_0x3668,0xf4));const _0x2150=function(_0x225b3e,_0x3668d2){_0x225b3e=_0x225b3e-0x0;let _0x2150fe=_0x3668[_0x225b3e];return _0x2150fe;};import{View as _0x5bd7ed}from'ckeditor5/src/ui';import{diff as _0x27a70e,Collection as _0x19170b}from'ckeditor5/src/utils';import _0x3319dd from'./collapsedcommentsview';export default class ct extends _0x5bd7ed{constructor(_0x5673f2,_0x34e2e9,_0x56410d){super(_0x5673f2),this[_0x2150('0x2b')](_0x2150('0x20'),!0x1),this[_0x2150('0x2b')]('length',_0x34e2e9[_0x2150('0x1b')][_0x2150('0xa')]),this[_0x2150('0x2b')](_0x2150('0x22'),!0x1),this[_0x2150('0x25')]=_0x34e2e9,this[_0x2150('0x23')]=_0x56410d,this['commentViews']=this[_0x2150('0x14')](),this[_0x2150('0x15')]=this[_0x2150('0x14')](),this[_0x2150('0x29')]=new _0x3319dd(_0x5673f2),this[_0x2150('0x29')][_0x2150('0x12')](_0x2150('0x1d'))['to'](this,_0x2150('0xa'),_0x51f9fb=>_0x51f9fb-this['_config'][_0x2150('0x4')]);for(const _0x7a7f6e of _0x34e2e9[_0x2150('0x1b')])this[_0x2150('0x7')](_0x7a7f6e);this[_0x2150('0x6')](_0x34e2e9['comments'],_0x2150('0x5'),(_0x49166c,_0x1c7b3a)=>{this[_0x2150('0xa')]++,this['_handleNewCommentModel'](_0x1c7b3a),this[_0x2150('0x19')]();}),this[_0x2150('0x6')](_0x34e2e9[_0x2150('0x1b')],_0x2150('0xe'),(_0x52092f,_0x4e1df4)=>{this[_0x2150('0xa')]--,this[_0x2150('0x18')](_0x4e1df4),this['refreshVisibleViews']();}),this['listenTo'](_0x34e2e9,_0x2150('0x1'),()=>this[_0x2150('0x19')]()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on'](_0x2150('0x21'),()=>this[_0x2150('0x19')]()),this[_0x2150('0x2')]({'tag':'ul','attributes':{'class':[_0x2150('0x30')]},'children':this[_0x2150('0x15')]});}get[_0x2150('0x10')](){return this[_0x2150('0x25')][_0x2150('0xd')]>this[_0x2150('0x23')][_0x2150('0x2a')]&&!this[_0x2150('0x22')]&&!this[_0x2150('0x20')];}[_0x2150('0x1e')](){super[_0x2150('0x1e')](),this[_0x2150('0x19')]();}['focus'](){this[_0x2150('0x3')]['focus']();}['destroy'](){this['_collapsedCommentsView'][_0x2150('0x13')]();for(const _0x4a1a60 of this[_0x2150('0x17')])_0x4a1a60[_0x2150('0x13')]();super['destroy']();}[_0x2150('0x19')](){this['_shouldCollapse']?this[_0x2150('0xf')]():this[_0x2150('0x2e')]();}[_0x2150('0x7')](_0x2dc06c){const _0x26d130=new this[(_0x2150('0x23'))][(_0x2150('0x27'))](this[_0x2150('0x31')],_0x2dc06c,{'maxCommentCharsWhenCollapsed':this[_0x2150('0x23')][_0x2150('0x2c')],'formatDateTime':this['_config'][_0x2150('0x16')],'editorConfig':this[_0x2150('0x23')][_0x2150('0xc')]});_0x26d130[_0x2150('0x24')]=_0x2dc06c['id'],_0x26d130['delegate'](_0x2150('0x1c'))['to'](this),_0x26d130[_0x2150('0x32')](_0x2150('0x0'))['to'](this),this[_0x2150('0x6')](_0x26d130,_0x2150('0x26'),()=>this[_0x2150('0x1a')]()),this[_0x2150('0x17')]['add'](_0x26d130);}['_handleRemoveCommentModel'](_0x1c8c73){const _0x24f7fb=this['commentViews'][_0x2150('0xe')](_0x1c8c73['id']);this[_0x2150('0x8')](_0x24f7fb),_0x24f7fb[_0x2150('0x2d')]&&this[_0x2150('0x1a')](),_0x24f7fb['destroy']();}[_0x2150('0x1a')](){this[_0x2150('0x20')]=Array['from'](this[_0x2150('0x17')])['some'](_0x4d879e=>_0x4d879e[_0x2150('0x2d')]);}['_rearrangeCollapse'](){const _0x2a9272=function(_0x3c8ed3){const _0x31d901=new _0x19170b();for(const _0x11b52f of _0x3c8ed3)_0x31d901['add'](_0x11b52f);return _0x31d901;}(this[_0x2150('0x17')]),_0x3a9b8e=this[_0x2150('0x29')][_0x2150('0x1d')];for(let _0x3cc20c=0x1;_0x3cc20c<=_0x3a9b8e;_0x3cc20c++)_0x2a9272[_0x2150('0xe')](0x1);for(const _0x4dad2d of _0x2a9272)_0x4dad2d[_0x2150('0xb')]();_0x3a9b8e>0x0&&_0x2a9272[_0x2150('0x5')](this[_0x2150('0x29')],0x1),Ut(_0x27a70e(Array[_0x2150('0x11')](this['visibleViews']),Array[_0x2150('0x11')](_0x2a9272)),this[_0x2150('0x15')],_0x2a9272);}['_rearrangeExpand'](){Ut(_0x27a70e(Array[_0x2150('0x11')](this[_0x2150('0x15')]),Array[_0x2150('0x11')](this[_0x2150('0x17')])),this['visibleViews'],this['commentViews']);for(const _0x3eae68 of this[_0x2150('0x15')])_0x3eae68[_0x2150('0x28')]();}}function Ut(_0x3ab9ad,_0x377459,_0x5af95d){let _0x497c2f=0x0;for(const _0x551ef6 of _0x3ab9ad)switch(_0x551ef6){case _0x2150('0x9'):_0x377459[_0x2150('0x5')](_0x5af95d[_0x2150('0x2f')](_0x497c2f),_0x497c2f),_0x497c2f++;break;case _0x2150('0x1f'):_0x377459[_0x2150('0xe')](_0x497c2f);break;case'equal':_0x497c2f++;}}
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 _0x5d2d=['then','showInput','ck-comment__input-container','setTemplate','commentInputView','div','bindTemplate','userView','bind','ck-comment__input-container--active','extendTemplate','set','showButtons','destroy','ck-thread__user'];(function(_0xc6d9aa,_0x5d2d6e){var _0x330cc7=function(_0x35fa3e){while(--_0x35fa3e){_0xc6d9aa['push'](_0xc6d9aa['shift']());}};_0x330cc7(++_0x5d2d6e);}(_0x5d2d,0x98));var _0x330c=function(_0xc6d9aa,_0x5d2d6e){_0xc6d9aa=_0xc6d9aa-0x0;var _0x330cc7=_0x5d2d[_0xc6d9aa];return _0x330cc7;};import{View as _0x5a00ca}from'ckeditor5/src/ui';import _0x1ac974 from'./commentinputview';import{UserView as _0x3d7bc8}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x5a00ca{constructor(_0x47d8fd,_0x530ddc,_0x4404c0){super(_0x47d8fd),this[_0x330c('0x2')]=new _0x1ac974(_0x47d8fd,_0x4404c0),this[_0x330c('0x2')][_0x330c('0x6')](_0x330c('0xa'))['to'](this[_0x330c('0x2')]['focusTracker'],'isFocused',this[_0x330c('0x2')],'value',(_0x3a8e16,_0x56cdd9)=>_0x3a8e16||!!_0x56cdd9),this[_0x330c('0x9')](_0x330c('0xe'),!0x1),this[_0x330c('0x5')]=new _0x3d7bc8(_0x47d8fd,_0x530ddc),this[_0x330c('0x5')][_0x330c('0x8')]({'attributes':{'class':_0x330c('0xc')}}),this[_0x330c('0x2')][_0x330c('0x8')]({'attributes':{'class':'ck-thread__input'}}),this[_0x330c('0x1')]({'tag':_0x330c('0x3'),'attributes':{'class':[_0x330c('0x0'),this[_0x330c('0x4')]['if'](_0x330c('0xe'),_0x330c('0x7'))]},'children':[this[_0x330c('0x5')],this[_0x330c('0x2')]]});}[_0x330c('0xb')](){return this[_0x330c('0x2')][_0x330c('0xb')]()[_0x330c('0xd')](()=>super[_0x330c('0xb')]());}}
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
- import{mix as _0x23b50a}from'ckeditor5/src/utils';import{ConfirmMixin as Wt}from'ckeditor5-collaboration/src/collaboration-core';import Rt from'./basecommentthreadview';export default class nt extends Rt{constructor(_0x5cfe3b,_0x33e49e,_0x47d701,_0x4e76e2){super(_0x5cfe3b,_0x33e49e,_0x47d701,_0x4e76e2),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x5cfe3b,this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x442347,_0x5d51e1,_0x2f112e)=>{_0x2f112e||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x524558,_0x466f88,_0x57e8ac)=>{_0x57e8ac&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x532627=>{this['_bindFirstCommentView'](),_0x532627['off']();});}['getTemplate'](){const _0x2f83dd=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x2f83dd['if']('isActive','ck-thread--active'),_0x2f83dd['if']('isConfirm','ck-thread--remove-confirmation'),_0x2f83dd['to']('actionIndicator',_0x1e563f=>_0x1e563f?'ck-thread--'+_0x1e563f:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':[this['commentsListView'],this['commentThreadInputView']]}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x1bf5e7 of this['commentsListView']['commentViews'])_0x1bf5e7['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x5df131=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x5df131,'actionIndicator',_0x1c09a8=>'remove'===_0x1c09a8?'remove':null),_0x5df131['placeholder']=t('Write\x20a\x20comment...'),_0x5df131['removeButton']['on']('execute',_0x34b031=>{_0x34b031['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x23b50a(nt,Wt);
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
- import{mix as _0x191255}from'ckeditor5/src/utils';import{ButtonView as mt}from'ckeditor5/src/ui';import{icons as Gt}from'ckeditor5/src/core';import{UserView as It,ConfirmMixin as Wt}from'ckeditor5-collaboration/src/collaboration-core';import Vt from'./basecommentview';import Jt from'../../../../theme/icons/remove-comment.svg';export default class ot extends Vt{constructor(_0x4e6cee,_0x189c42,_0x4f426e){super(_0x4e6cee,_0x189c42,_0x4f426e);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x189c42),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new It(_0x4e6cee,_0x189c42['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x189c42,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1a0af4=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x1a0af4['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x1a0af4['if']('isEditMode','ck-comment--edit'),_0x1a0af4['to']('actionIndicator',_0x5b9824=>_0x5b9824?'ck-comment--'+_0x5b9824:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x1a0af4['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1a0af4['to']('createdAt',_0x51fed3=>this['_config']['formatDateTime'](_0x51fed3))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x1a0af4['if']('isEditMode','ck-comment__actions--hidden'),_0x1a0af4['if']('isEditMode','ck-annotation__actions--hidden')]},'children':[this['editButton'],this['removeButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}]}]}]};}['_createEditButton'](){const {t:t}=this['locale'],_0x1e1916=new mt(this['locale']);return _0x1e1916['label']=t('Edit'),_0x1e1916['icon']=Gt['pencil'],_0x1e1916['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x1e1916['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x15f2b1=>!_0x15f2b1),_0x1e1916['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x1e1916['on']('execute',()=>this['switchToEditMode']()),_0x1e1916;}['_createRemoveButton'](){const {t:t}=this['locale'],_0xaeb519=new mt(this['locale']);return _0xaeb519['label']=t('Remove'),_0xaeb519['icon']=Jt,_0xaeb519['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0xaeb519['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x117c75=>!_0x117c75),_0xaeb519['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0xaeb519['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0xaeb519;}['_attachActions'](_0x4bf817,_0x4e6825){this['listenTo'](_0x4bf817,'mouseenter',()=>this['actionIndicator']=_0x4e6825),this['listenTo'](_0x4bf817,'focus',()=>this['actionIndicator']=_0x4e6825),this['listenTo'](_0x4bf817,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x4bf817,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0xc0a757=super['_createCommentInputView']();return _0xc0a757['bind']('placeholder')['to'](this),_0xc0a757;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x191255(ot,Wt);
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 _0x47cb=['Comments','pluginName'];(function(_0xe9bf64,_0x47cb46){var _0xe646fc=function(_0x51dc50){while(--_0x51dc50){_0xe9bf64['push'](_0xe9bf64['shift']());}};_0xe646fc(++_0x47cb46);}(_0x47cb,0xa1));var _0xe646=function(_0xe9bf64,_0x47cb46){_0xe9bf64=_0xe9bf64-0x0;var _0xe646fc=_0x47cb[_0xe9bf64];return _0xe646fc;};import{Plugin as _0xf52208}from'ckeditor5/src/core';import _0x5cb3cc from'./comments/commentsrepository';import _0x47ab0a from'./comments/commentsediting';import _0x4d6834 from'./comments/commentsui';import _0xd64a0d from'./commentsonly';import _0x4aae4d from'./annotations/widesidebar';import _0x348547 from'./annotations/narrowsidebar';import _0x23f0c5 from'./annotations/inlineannotations';export default class c extends _0xf52208{static get['requires'](){return[_0x5cb3cc,_0x47ab0a,_0x4d6834,_0xd64a0d,_0x4aae4d,_0x348547,_0x23f0c5];}static get[_0xe646('0x0')](){return _0xe646('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 _0x3314=['commentsOnlyMode','delete','addCommentThread','listenTo','view','pluginName','highest','get','clipboardInput','requires','editor','afterInit','editing','config','stop','set','clearForceDisabled','commentsOnly','affectsData','change:isEnabled','commands','isEnabled','forceDisabled','CommentsOnly','plugins','document','DragDrop','cut'];(function(_0x1d3cd9,_0x33140e){const _0x84cc91=function(_0x2c6427){while(--_0x2c6427){_0x1d3cd9['push'](_0x1d3cd9['shift']());}};_0x84cc91(++_0x33140e);}(_0x3314,0xde));const _0x84cc=function(_0x1d3cd9,_0x33140e){_0x1d3cd9=_0x1d3cd9-0x0;let _0x84cc91=_0x3314[_0x1d3cd9];return _0x84cc91;};import{Plugin as _0x3efed5}from'ckeditor5/src/core';import _0x571ab4 from'./comments/commentsediting';export default class e extends _0x3efed5{static get[_0x84cc('0x7')](){return _0x84cc('0x19');}static get[_0x84cc('0xb')](){return[_0x571ab4];}constructor(_0x410184){super(_0x410184),this[_0x84cc('0x11')]('isEnabled',null),this['on'](_0x84cc('0x15'),(_0x26208e,_0x412ef1,_0x3daf3f)=>{_0x3daf3f?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x84cc('0xd')](){null===this[_0x84cc('0x17')]&&(this[_0x84cc('0x17')]=!!this[_0x84cc('0xc')][_0x84cc('0xf')][_0x84cc('0x9')](_0x84cc('0x13')));}['_enableCommentsOnlyMode'](){for(const [_0x195cd3,_0x34ed44]of this[_0x84cc('0xc')]['commands'])_0x34ed44[_0x84cc('0x14')]&&_0x84cc('0x4')!==_0x195cd3&&_0x34ed44[_0x84cc('0x18')](_0x84cc('0x2'));this[_0x84cc('0xc')]['plugins']['has']('DragDrop')&&this['editor'][_0x84cc('0x1a')][_0x84cc('0x9')](_0x84cc('0x0'))[_0x84cc('0x18')]('commentsOnlyMode');const _0x5403de=this[_0x84cc('0xc')][_0x84cc('0xe')][_0x84cc('0x6')]['document'];this[_0x84cc('0x5')](_0x5403de,_0x84cc('0x1'),_0x59d969=>_0x59d969[_0x84cc('0x10')](),{'priority':'highest'}),this[_0x84cc('0x5')](_0x5403de,_0x84cc('0xa'),_0x4f4563=>_0x4f4563[_0x84cc('0x10')](),{'priority':_0x84cc('0x8')}),this['listenTo'](_0x5403de,_0x84cc('0x3'),_0x3fbad5=>_0x3fbad5[_0x84cc('0x10')](),{'priority':_0x84cc('0x8')});}['_disableCommentsOnlyMode'](){for(const [_0x9d9766,_0x2224ee]of this[_0x84cc('0xc')][_0x84cc('0x16')])_0x2224ee[_0x84cc('0x14')]&&_0x84cc('0x4')!==_0x9d9766&&_0x2224ee[_0x84cc('0x12')](_0x84cc('0x2'));this['stopListening'](this['editor'][_0x84cc('0xe')]['view'][_0x84cc('0x1b')]);}}
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(_0x263b39,_0xcd0479){const t=_0x263b39['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0xcd0479)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
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 _0x7808=['type','childList','observe','disconnect','attributeName','attributes'];(function(_0x167f8b,_0x7808f3){const _0x194aa4=function(_0x36985d){while(--_0x36985d){_0x167f8b['push'](_0x167f8b['shift']());}};_0x194aa4(++_0x7808f3);}(_0x7808,0xc2));const _0x194a=function(_0x167f8b,_0x7808f3){_0x167f8b=_0x167f8b-0x0;let _0x194aa4=_0x7808[_0x167f8b];return _0x194aa4;};import{throttle as _0x14e8c7}from'lodash-es';export default function ut(_0x266595){const _0x294357=_0x14e8c7(_0x266595,0x1e),_0xb9acf=new MutationObserver(_0x4b565e=>{for(const _0x2251ff of _0x4b565e)(_0x194a('0x3')==_0x2251ff['type']&&'class'==_0x2251ff[_0x194a('0x2')]||_0x194a('0x5')==_0x2251ff[_0x194a('0x4')])&&_0x294357();});return{'attach'(_0x110746){_0xb9acf[_0x194a('0x0')](_0x110746,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0xb9acf[_0x194a('0x1')](),_0x294357['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']();}};}