@ckeditor/ckeditor5-comments 0.0.0-nightly-20231227.0 → 0.0.0-nightly-20231229.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +2 -2
  27. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  28. package/src/comments/ui/commentthreadcontroller.js +1 -1
  29. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  30. package/src/comments/ui/view/basecommentview.js +1 -1
  31. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  32. package/src/comments/ui/view/commentcontentview.js +1 -1
  33. package/src/comments/ui/view/commentinputview.js +1 -1
  34. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  35. package/src/comments/ui/view/commentslistview.js +1 -1
  36. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  37. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  38. package/src/comments/ui/view/commentthreadview.js +1 -1
  39. package/src/comments/ui/view/commentview.js +1 -1
  40. package/src/comments.js +1 -1
  41. package/src/commentsonly.js +1 -1
  42. package/src/utils/common-translations.js +1 -1
  43. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x278d=['length','isResolved','locale','_model','isEnabled','Write\x20a\x20comment...','ck-comment--resolve','removeButton','commentThreadInputView','listenTo','div','commentViews','ck-thread','isReadOnly','removeCommentThread','ck-thread__container','getTemplate','remove','change:archivedAt','isVisible','set','extendTemplate','execute','ck-reset_all-excluded','high','resolveButton','bind','unbind','change:isReadOnly','check','addMany','_bindFirstCommentView','_boundFirstCommentView','Delete\x20comment\x20thread?','isResolvable','archivedAt','showConfirm','_createResolveButton','_cancelAllConfirms','ck-thread--remove-confirmation','ck-thread--','fire','render','icon','createCollection','querySelector','actionBar','stop','then','commentsListView','resolveCommentThread','setTemplate','element','Resolve','commentThreadHeaderView','has','isUnlinked','ck-thread--unlinked','get','isConfirm','actionIndicator','commentThreadChildren','containerElement','add'];(function(_0x41fdd0,_0x278dc8){const _0x3c8143=function(_0x47c1c4){while(--_0x47c1c4){_0x41fdd0['push'](_0x41fdd0['shift']());}};_0x3c8143(++_0x278dc8);}(_0x278d,0x179));const _0x3c81=function(_0x41fdd0,_0x278dc8){_0x41fdd0=_0x41fdd0-0x0;let _0x3c8143=_0x278d[_0x41fdd0];return _0x3c8143;};import{ConfirmMixin as _0x551580}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0xe9af1b}from'ckeditor5/src/ui.js';import{icons as _0x1659a6}from'ckeditor5/src/core.js';import _0x269cc0 from'./basecommentthreadview.js';import{getTranslation as _0x41ac20}from'../../../utils/common-translations.js';export default class ft extends _0x551580(_0x269cc0){constructor(_0x10e127,_0x57ab34,_0x5d194b,_0x5b70bd){super(_0x10e127,_0x57ab34,_0x5d194b,_0x5b70bd),this[_0x3c81('0x4')]=this[_0x3c81('0x33')](),this[_0x3c81('0x4')][_0x3c81('0x25')]([this[_0x3c81('0x38')],this[_0x3c81('0xf')]]),this['_model'][_0x3c81('0x2a')]&&this[_0x3c81('0x4')][_0x3c81('0x6')](this[_0x3c81('0x3d')],0x0),this[_0x3c81('0xa')]['on'](_0x3c81('0x19'),(_0x3e31f7,_0x5da9fb,_0x4712a9)=>{_0x4712a9?this[_0x3c81('0x4')][_0x3c81('0x3e')](this[_0x3c81('0x3d')])||this[_0x3c81('0x4')][_0x3c81('0x6')](this[_0x3c81('0x3d')],0x0):this[_0x3c81('0x4')][_0x3c81('0x18')](this[_0x3c81('0x3d')]);}),this[_0x3c81('0x1b')](_0x3c81('0x3'),null),this[_0x3c81('0x5')]=null,this[_0x3c81('0x27')]=null,this[_0x3c81('0x9')]=_0x10e127,this[_0x3c81('0x20')]=this[_0x3c81('0x2c')](),this[_0x3c81('0x3a')](this[_0x3c81('0x17')]()),this['on']('change:isActive',(_0x427c16,_0x100ee3,_0x5d9f74)=>{_0x5d9f74||this[_0x3c81('0x2d')]();}),this['listenTo'](this[_0x3c81('0xa')],_0x3c81('0x23'),(_0x583cb9,_0x30db94,_0x29bc11)=>{_0x29bc11&&this[_0x3c81('0x2d')]();}),this[_0x3c81('0x7')]>0x0&&this[_0x3c81('0x26')](),this[_0x3c81('0x10')](this[_0x3c81('0x38')][_0x3c81('0x12')],_0x3c81('0x6'),()=>{this[_0x3c81('0x26')]();});}['getTemplate'](){const _0x55d335=this['bindTemplate'];return{'tag':_0x3c81('0x11'),'attributes':{'class':[_0x3c81('0x13'),_0x3c81('0x1e'),_0x55d335['if']('isActive','ck-thread--active'),_0x55d335['if'](_0x3c81('0x3f'),_0x3c81('0x0')),_0x55d335['if'](_0x3c81('0x2'),_0x3c81('0x2e')),_0x55d335['to'](_0x3c81('0x3'),_0x1d1957=>_0x1d1957?_0x3c81('0x2f')+_0x1d1957:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':_0x3c81('0x11'),'attributes':{'class':_0x3c81('0x16')},'children':this[_0x3c81('0x4')]}]};}[_0x3c81('0x31')](){super['render'](),this[_0x3c81('0x5')]=this[_0x3c81('0x3b')][_0x3c81('0x34')]('.ck-thread__container');}[_0x3c81('0x2d')](){this['cancelConfirm']();for(const _0x4be389 of this[_0x3c81('0x38')][_0x3c81('0x12')])_0x4be389['cancelConfirm']();}[_0x3c81('0x26')](){const {locale:_0x1e859a}=this,_0x4f9725=this[_0x3c81('0x38')][_0x3c81('0x12')][_0x3c81('0x1')](0x0);_0x4f9725===this[_0x3c81('0x27')]||_0x4f9725['isSystemComment']||(this[_0x3c81('0x27')]=_0x4f9725,this[_0x3c81('0x22')](_0x3c81('0x3')),this['bind']('actionIndicator')['to'](_0x4f9725,'actionIndicator',_0x54fcfc=>'remove'===_0x54fcfc?_0x3c81('0x18'):null),_0x4f9725['placeholder']=_0x41ac20(_0x1e859a,_0x3c81('0xc')),_0x4f9725[_0x3c81('0xe')]['on']('execute',_0x299de9=>{_0x299de9[_0x3c81('0x36')](),this[_0x3c81('0x2b')](_0x41ac20(_0x1e859a,_0x3c81('0x28')),this[_0x3c81('0x5')])[_0x3c81('0x37')](()=>{this[_0x3c81('0x30')](_0x3c81('0x15'));});},{'priority':_0x3c81('0x1f')}),_0x4f9725[_0x3c81('0x35')]['add'](this[_0x3c81('0x20')],0x0));}['_createResolveButton'](){const _0x599d0c=new _0xe9af1b(this['locale']);return _0x599d0c['label']=_0x41ac20(this[_0x3c81('0x9')],_0x3c81('0x3c')),_0x599d0c['tooltip']=_0x41ac20(this[_0x3c81('0x9')],_0x3c81('0x3c')),_0x599d0c[_0x3c81('0x32')]=_0x1659a6[_0x3c81('0x24')],_0x599d0c[_0x3c81('0x1c')]({'attributes':{'class':_0x3c81('0xd')}}),_0x599d0c[_0x3c81('0x21')](_0x3c81('0xb'))['to'](this[_0x3c81('0xa')],_0x3c81('0x14'),_0x3d5b2e=>!_0x3d5b2e),_0x599d0c[_0x3c81('0x21')](_0x3c81('0x1a'))['to'](this[_0x3c81('0xa')],_0x3c81('0x29'),this[_0x3c81('0xa')],_0x3c81('0x8'),(_0x50a2b4,_0x442f37)=>_0x50a2b4&&!_0x442f37),_0x599d0c['on'](_0x3c81('0x1d'),()=>{this['fire'](_0x3c81('0x39'),this[_0x3c81('0xa')]['id']);}),_0x599d0c;}}
23
+ const _0x2e4b=['commentThreadInputView','add','showConfirm','ck-reset_all-excluded','_bindFirstCommentView','ck-thread--remove-confirmation','bind','change:isReadOnly','removeCommentThread','isEnabled','icon','element','ck-comment--resolve','_cancelAllConfirms','set','addMany','_model','querySelector','_createResolveButton','cancelConfirm','div','listenTo','removeButton','Delete\x20comment\x20thread?','length','commentThreadChildren','actionIndicator','label','commentThreadHeaderView','commentViews','locale','Write\x20a\x20comment...','isSystemComment','render','Resolve','placeholder','high','ck-thread','commentsListView','remove','execute','isReadOnly','_boundFirstCommentView','archivedAt','actionBar','resolveButton','isUnlinked','bindTemplate','getTemplate','isVisible','isResolved','.ck-thread__container','change:isActive','stop','change:archivedAt','containerElement','ck-thread--unlinked','get','check','createCollection'];(function(_0x31cadd,_0x2e4bb4){const _0x4f037b=function(_0xb3bfe4){while(--_0xb3bfe4){_0x31cadd['push'](_0x31cadd['shift']());}};_0x4f037b(++_0x2e4bb4);}(_0x2e4b,0x135));const _0x4f03=function(_0x31cadd,_0x2e4bb4){_0x31cadd=_0x31cadd-0x0;let _0x4f037b=_0x2e4b[_0x31cadd];return _0x4f037b;};import{ConfirmMixin as _0x49787d}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x2d94}from'ckeditor5/src/ui.js';import{icons as _0x29810a}from'ckeditor5/src/core.js';import _0x4d7aea from'./basecommentthreadview.js';import{getTranslation as _0x3f6d34}from'../../../utils/common-translations.js';export default class ft extends _0x49787d(_0x4d7aea){constructor(_0x49d860,_0x150408,_0x4c4e5f,_0x3ff8d1){super(_0x49d860,_0x150408,_0x4c4e5f,_0x3ff8d1),this[_0x4f03('0x10')]=this[_0x4f03('0x32')](),this[_0x4f03('0x10')][_0x4f03('0x6')]([this[_0x4f03('0x1d')],this[_0x4f03('0x33')]]),this['_model'][_0x4f03('0x22')]&&this[_0x4f03('0x10')][_0x4f03('0x34')](this['commentThreadHeaderView'],0x0),this[_0x4f03('0x7')]['on'](_0x4f03('0x2d'),(_0x2afe20,_0xa0cc7f,_0x28f454)=>{_0x28f454?this[_0x4f03('0x10')]['has'](this[_0x4f03('0x13')])||this['commentThreadChildren'][_0x4f03('0x34')](this[_0x4f03('0x13')],0x0):this[_0x4f03('0x10')]['remove'](this['commentThreadHeaderView']);}),this[_0x4f03('0x5')](_0x4f03('0x11'),null),this[_0x4f03('0x2e')]=null,this[_0x4f03('0x21')]=null,this[_0x4f03('0x15')]=_0x49d860,this['resolveButton']=this[_0x4f03('0x9')](),this['setTemplate'](this[_0x4f03('0x27')]()),this['on'](_0x4f03('0x2b'),(_0x205a86,_0x391124,_0x110312)=>{_0x110312||this[_0x4f03('0x4')]();}),this['listenTo'](this['_model'],_0x4f03('0x3a'),(_0x1e3bdf,_0x2cc3dc,_0x5c9ac2)=>{_0x5c9ac2&&this[_0x4f03('0x4')]();}),this[_0x4f03('0xf')]>0x0&&this[_0x4f03('0x37')](),this[_0x4f03('0xc')](this[_0x4f03('0x1d')][_0x4f03('0x14')],_0x4f03('0x34'),()=>{this[_0x4f03('0x37')]();});}['getTemplate'](){const _0x520a37=this[_0x4f03('0x26')];return{'tag':_0x4f03('0xb'),'attributes':{'class':[_0x4f03('0x1c'),_0x4f03('0x36'),_0x520a37['if']('isActive','ck-thread--active'),_0x520a37['if'](_0x4f03('0x25'),_0x4f03('0x2f')),_0x520a37['if']('isConfirm',_0x4f03('0x38')),_0x520a37['to']('actionIndicator',_0xfc995b=>_0xfc995b?'ck-thread--'+_0xfc995b:'')],'data-thread-id':this[_0x4f03('0x7')]['id'],'tabindex':-0x1},'children':[{'tag':_0x4f03('0xb'),'attributes':{'class':'ck-thread__container'},'children':this[_0x4f03('0x10')]}]};}[_0x4f03('0x18')](){super[_0x4f03('0x18')](),this[_0x4f03('0x2e')]=this[_0x4f03('0x2')][_0x4f03('0x8')](_0x4f03('0x2a'));}[_0x4f03('0x4')](){this[_0x4f03('0xa')]();for(const _0x2471e2 of this[_0x4f03('0x1d')][_0x4f03('0x14')])_0x2471e2[_0x4f03('0xa')]();}['_bindFirstCommentView'](){const {locale:_0xca2077}=this,_0x2ce66c=this[_0x4f03('0x1d')][_0x4f03('0x14')][_0x4f03('0x30')](0x0);_0x2ce66c===this[_0x4f03('0x21')]||_0x2ce66c[_0x4f03('0x17')]||(this['_boundFirstCommentView']=_0x2ce66c,this['unbind'](_0x4f03('0x11')),this[_0x4f03('0x39')](_0x4f03('0x11'))['to'](_0x2ce66c,_0x4f03('0x11'),_0x349aa6=>_0x4f03('0x1e')===_0x349aa6?_0x4f03('0x1e'):null),_0x2ce66c[_0x4f03('0x1a')]=_0x3f6d34(_0xca2077,_0x4f03('0x16')),_0x2ce66c[_0x4f03('0xd')]['on']('execute',_0x348b35=>{_0x348b35[_0x4f03('0x2c')](),this[_0x4f03('0x35')](_0x3f6d34(_0xca2077,_0x4f03('0xe')),this[_0x4f03('0x2e')])['then'](()=>{this['fire'](_0x4f03('0x3b'));});},{'priority':_0x4f03('0x1b')}),_0x2ce66c[_0x4f03('0x23')][_0x4f03('0x34')](this[_0x4f03('0x24')],0x0));}['_createResolveButton'](){const _0x3318c6=new _0x2d94(this[_0x4f03('0x15')]);return _0x3318c6[_0x4f03('0x12')]=_0x3f6d34(this[_0x4f03('0x15')],_0x4f03('0x19')),_0x3318c6['tooltip']=_0x3f6d34(this['locale'],_0x4f03('0x19')),_0x3318c6[_0x4f03('0x1')]=_0x29810a[_0x4f03('0x31')],_0x3318c6['extendTemplate']({'attributes':{'class':_0x4f03('0x3')}}),_0x3318c6['bind'](_0x4f03('0x0'))['to'](this[_0x4f03('0x7')],_0x4f03('0x20'),_0x19ebe7=>!_0x19ebe7),_0x3318c6[_0x4f03('0x39')](_0x4f03('0x28'))['to'](this[_0x4f03('0x7')],'isResolvable',this[_0x4f03('0x7')],_0x4f03('0x29'),(_0x4f7ae0,_0x3605ac)=>_0x4f7ae0&&!_0x3605ac),_0x3318c6['on'](_0x4f03('0x1f'),()=>{this['fire']('resolveCommentThread',this[_0x4f03('0x7')]['id']);}),_0x3318c6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11d5=['actionIndicator','children','ck-annotation__info','buttonView','edit','focus','attributes','getExternalCommentNote','ck-comment__user','_createDropdown','EXTERNAL_COMMENT','withText','switchToEditMode','_createCommentInputView','span','ck-comment','createCollection','ck-annotation__main','authoredAt','importWord','ck-comment__actions--hidden','div','element','listenTo','threeVerticalDots','Delete\x20comment?','author','set','setTemplate','ck-comment--remove-confirmation','Edit','locale','placeholder','extendTemplate','isEnabled','_model','ck-comment--edit','getTemplate','userView','ck-comment__info-name','getUserViewNotificationText','formatDateTime','creator','resolvedAt','removeComment','Remove','showConfirm','some','isConfirm','_attachActions','Reply...','EXTERNAL_IMPORT_WORD_AVATAR','then','_config','ck-annotation__actions--hidden','pencil','isVisible','add','dropdown','Show\x20more\x20items','change:isVisible','editButton','_createEditButton','push','ck-comment__external','removeButton','isRemovable','EXTERNAL_IMPORT_WORD_COMMENT','icon','cancelConfirm','ck-annotation__info-name','ck-comment__info-time','fire','blur','execute','name','@external','ck-annotation','source','bind','ck-comment--remove','addMany','mouseleave','items','isExternal','ck-comment__main','change:isEnabled','render','length','mouseenter','remove','_createRemoveButton','actionBar','isEditMode','label'];(function(_0x202983,_0x11d5b3){const _0x39a8f9=function(_0x380ed6){while(--_0x380ed6){_0x202983['push'](_0x202983['shift']());}};_0x39a8f9(++_0x11d5b3);}(_0x11d5,0xeb));const _0x39a8=function(_0x202983,_0x11d5b3){_0x202983=_0x202983-0x0;let _0x39a8f9=_0x11d5[_0x202983];return _0x39a8f9;};import{ButtonView as _0x50b4c6,createDropdown as _0x244f3c,ListView as _0x52fe7e,ListItemView as _0x2491fa}from'ckeditor5/src/ui.js';import{icons as _0x16b8ea}from'ckeditor5/src/core.js';import{UserView as _0x1602ef,ConfirmMixin as _0x32fbda}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2f2bf8 from'./basecommentview.js';import _0xcc47e8 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x358ea3}from'../../../utils/common-translations.js';export default class pt extends _0x32fbda(_0x2f2bf8){constructor(_0x1a15d6,_0x22097c,_0x52df2d){super(_0x1a15d6,_0x22097c,_0x52df2d),this[_0x39a8('0x4d')](_0x39a8('0x32'),null),this[_0x39a8('0x4d')]('placeholder',_0x358ea3(_0x1a15d6,_0x39a8('0x5'))),this[_0x39a8('0x22')](_0x39a8('0x44'))['to'](_0x22097c),this['bind'](_0x39a8('0x5d'))['to'](_0x22097c),this['actionBar']=this[_0x39a8('0x42')](),this['isSystemComment']||(this[_0x39a8('0x10')]=this[_0x39a8('0x11')](),this[_0x39a8('0x14')]=this[_0x39a8('0x2e')](),this[_0x39a8('0x26')]=this[_0x39a8('0x42')](),this['items'][_0x39a8('0x24')]([this[_0x39a8('0x10')],this['removeButton']]),this[_0x39a8('0xd')]=this[_0x39a8('0x3b')](),this[_0x39a8('0x2f')][_0x39a8('0xc')](this[_0x39a8('0xd')])),this[_0x39a8('0x58')]=new _0x1602ef(_0x1a15d6,_0x22097c['author'],this[_0x39a8('0x5a')]()),this[_0x39a8('0x58')][_0x39a8('0x53')]({'attributes':{'class':[_0x39a8('0x3a'),'ck-annotation__user']}}),this[_0x39a8('0x49')](_0x22097c,'change:isRemovable',()=>this[_0x39a8('0x18')]()),this[_0x39a8('0x4e')](this[_0x39a8('0x57')]());}[_0x39a8('0x57')](){const _0x2fcdd7=this['bindTemplate'],_0xfd7990=[{'tag':_0x39a8('0x47'),'attributes':{'class':['ck-comment__info',_0x39a8('0x34')]},'children':[{'tag':_0x39a8('0x40'),'children':[{'text':this['userView']['name']}],'attributes':{'class':[_0x39a8('0x59'),_0x39a8('0x19')]}},{'tag':'time','attributes':{'datetime':_0x2fcdd7['to'](_0x39a8('0x44')),'class':[_0x39a8('0x1a'),'ck-annotation__info-time']},'children':[{'text':_0x2fcdd7['to'](_0x39a8('0x44'),_0x54d9db=>this[_0x39a8('0x8')][_0x39a8('0x5b')](_0x54d9db))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x2fcdd7['if'](_0x39a8('0x30'),_0x39a8('0x46')),_0x2fcdd7['if'](_0x39a8('0x30'),_0x39a8('0x9'))]},'children':this[_0x39a8('0x2f')]},{'tag':_0x39a8('0x47'),'attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}];return this['_model'][_0x39a8('0x27')]&&_0xfd7990[_0x39a8('0x12')]({'tag':_0x39a8('0x47'),'attributes':{'class':[_0x39a8('0x13')]},'children':[{'text':this[_0x39a8('0x39')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2fcdd7['if'](_0x39a8('0x3'),_0x39a8('0x4f'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x39a8('0x41'),_0x39a8('0x20'),_0x2fcdd7['if'](_0x39a8('0x30'),_0x39a8('0x56')),_0x2fcdd7['if']('isSystemComment','ck-comment--info'),_0x2fcdd7['to'](_0x39a8('0x32'),_0x379598=>_0x379598?'ck-comment--'+_0x379598:'')],'data-author-id':this[_0x39a8('0x55')][_0x39a8('0x4c')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x39a8('0x58')],{'tag':_0x39a8('0x47'),'attributes':{'class':[_0x39a8('0x28'),_0x39a8('0x43')]},'children':_0xfd7990}]}]};}[_0x39a8('0x11')](){const _0x1ad162=new _0x50b4c6(this[_0x39a8('0x51')]);return _0x1ad162[_0x39a8('0x31')]=_0x358ea3(this[_0x39a8('0x51')],_0x39a8('0x50')),_0x1ad162[_0x39a8('0x17')]=_0x16b8ea[_0x39a8('0xa')],_0x1ad162[_0x39a8('0x3d')]=!0x0,_0x1ad162[_0x39a8('0x53')]({'attributes':{'class':'ck-comment--edit'}}),_0x1ad162[_0x39a8('0x22')](_0x39a8('0x54'))['to'](this['_model'],'isReadOnly',_0x5f131e=>!_0x5f131e),_0x1ad162[_0x39a8('0x22')](_0x39a8('0xb'))['to'](this['_model'],'isEditable'),_0x1ad162['on'](_0x39a8('0x1d'),()=>this[_0x39a8('0x3e')]()),_0x1ad162;}['_createRemoveButton'](){const _0x4dbcbe=new _0x50b4c6(this['locale']);return _0x4dbcbe[_0x39a8('0x31')]=_0x358ea3(this[_0x39a8('0x51')],_0x39a8('0x0')),_0x4dbcbe['icon']=_0xcc47e8,_0x4dbcbe[_0x39a8('0x3d')]=!0x0,_0x4dbcbe[_0x39a8('0x53')]({'attributes':{'class':_0x39a8('0x23')}}),_0x4dbcbe[_0x39a8('0x22')](_0x39a8('0x54'))['to'](this['_model'],'isReadOnly',_0x5abe67=>!_0x5abe67),_0x4dbcbe[_0x39a8('0x22')]('isVisible')['to'](this[_0x39a8('0x55')],_0x39a8('0x15')),_0x4dbcbe['on'](_0x39a8('0x1d'),()=>{this[_0x39a8('0x1')](_0x358ea3(this[_0x39a8('0x51')],_0x39a8('0x4b')),this[_0x39a8('0x48')])[_0x39a8('0x7')](()=>{this[_0x39a8('0x1b')](_0x39a8('0x5e'),this['_model']['id']);});}),_0x4dbcbe;}[_0x39a8('0x3b')](){const _0xe43ec4=_0x244f3c(this[_0x39a8('0x51')]),_0x21e543=_0xe43ec4['panelView'][_0x39a8('0x33')],_0x2899d0=new _0x52fe7e(this['locale']),_0x545c5d=(_0x59d86d,_0x49826f=-0x1)=>{const _0x48f040=new _0x2491fa(this[_0x39a8('0x51')]);_0x48f040[_0x39a8('0x33')][_0x39a8('0xc')](_0x59d86d);const _0x20e44d=_0x49826f>-0x1?_0x49826f:_0x2899d0[_0x39a8('0x26')][_0x39a8('0x2b')];_0x2899d0[_0x39a8('0x26')][_0x39a8('0xc')](_0x48f040,_0x20e44d),_0xe43ec4[_0x39a8('0x49')](_0x59d86d,_0x39a8('0x29'),()=>{_0xe43ec4[_0x39a8('0x54')]=[...this[_0x39a8('0x26')]][_0x39a8('0x2')](_0x279dd4=>_0x279dd4[_0x39a8('0x54')]);}),_0xe43ec4['listenTo'](_0x59d86d,_0x39a8('0xf'),()=>{_0xe43ec4[_0x39a8('0x35')][_0x39a8('0xb')]=[...this['items']][_0x39a8('0x2')](_0x15a926=>_0x15a926['isVisible']);});};_0xe43ec4['panelPosition']='sw',_0xe43ec4[_0x39a8('0x35')][_0x39a8('0x4d')]({'label':_0x358ea3(this['locale'],_0x39a8('0xe')),'icon':_0x16b8ea[_0x39a8('0x4a')]}),_0xe43ec4[_0x39a8('0x54')]=[...this[_0x39a8('0x26')]]['some'](_0x138ab5=>_0x138ab5[_0x39a8('0x54')]),_0xe43ec4['buttonView']['isVisible']=[...this[_0x39a8('0x26')]][_0x39a8('0x2')](_0x1bf2c5=>_0x1bf2c5['isVisible']);for(const _0x2a2124 of this[_0x39a8('0x26')])_0x545c5d(_0x2a2124);return _0x21e543[_0x39a8('0xc')](_0x2899d0),_0xe43ec4['listenTo'](this['items'],'add',(_0x12c42d,_0x1b9969,_0x1a4761)=>{_0x545c5d(_0x1b9969,_0x1a4761);}),_0xe43ec4[_0x39a8('0x49')](this[_0x39a8('0x26')],'remove',(_0x298e4e,_0x13aee4,_0x188df7)=>{_0x2899d0[_0x39a8('0x26')][_0x39a8('0x2d')](_0x188df7);}),_0xe43ec4;}['_attachActions'](_0x11c458,_0x2865a2){const _0x145d09=_0x11c458&&_0x11c458[_0x39a8('0x48')];_0x145d09&&(this[_0x39a8('0x49')](_0x145d09,_0x39a8('0x2c'),()=>this[_0x39a8('0x32')]=_0x2865a2),this['listenTo'](_0x145d09,_0x39a8('0x37'),()=>this['actionIndicator']=_0x2865a2),this[_0x39a8('0x49')](_0x145d09,_0x39a8('0x25'),()=>this[_0x39a8('0x32')]=null),this[_0x39a8('0x49')](_0x145d09,_0x39a8('0x1c'),()=>this[_0x39a8('0x32')]=null));}[_0x39a8('0x3f')](){const _0x48b794=super['_createCommentInputView']();return _0x48b794[_0x39a8('0x22')](_0x39a8('0x52'))['to'](this),_0x48b794;}[_0x39a8('0x39')](){return _0x39a8('0x45')===this['_model'][_0x39a8('0x38')][_0x39a8('0x1f')][_0x39a8('0x21')]?_0x358ea3(this['locale'],_0x39a8('0x16')):_0x358ea3(this[_0x39a8('0x51')],_0x39a8('0x3c'));}[_0x39a8('0x5a')](){return this[_0x39a8('0x55')][_0x39a8('0x27')]?_0x39a8('0x45')===this[_0x39a8('0x55')]['attributes']['@external'][_0x39a8('0x21')]?_0x358ea3(this[_0x39a8('0x51')],_0x39a8('0x6'),this[_0x39a8('0x55')]['creator'][_0x39a8('0x1e')]):_0x358ea3(this[_0x39a8('0x51')],'EXTERNAL_AVATAR',this[_0x39a8('0x55')][_0x39a8('0x5c')]['name']):null;}[_0x39a8('0x2a')](){super[_0x39a8('0x2a')](),this[_0x39a8('0x4')](this[_0x39a8('0x10')],_0x39a8('0x36')),this[_0x39a8('0x4')](this['removeButton'],'remove');}}
23
+ const _0x43ed=['Show\x20more\x20items','ck-annotation__actions--hidden','editButton','ck-comment--edit','items','isSystemComment','ck-annotation','showConfirm','mouseleave','EXTERNAL_AVATAR','Reply...','ck-comment__info-time','ck-annotation__content-wrapper','author','actionBar','listenTo','withText','placeholder','locale','length','some','ck-comment--','authoredAt','extendTemplate','_createCommentInputView','pencil','createCollection','formatDateTime','addMany','remove','ck-comment__wrapper','ck-comment__external','ck-comment--remove','ck-comment__actions','isEditMode','ck-annotation__info','ck-annotation__info-name','name','isVisible','getTemplate','resolvedAt','_createRemoveButton','userView','icon','_model','ck-comment__info-name','EXTERNAL_IMPORT_WORD_COMMENT','isReadOnly','attributes','blur','isExternal','ck-annotation__main','set','change:isEnabled','getUserViewNotificationText','ck-comment__user','ck-comment__main','time','removeComment','children','_attachActions','_createEditButton','getExternalCommentNote','ck-comment__actions--hidden','span','EXTERNAL_COMMENT','creator','then','removeButton','execute','element','push','ck-comment--info','dropdown','actionIndicator','cancelConfirm','add','div','switchToEditMode','source','ck-comment--remove-confirmation','edit','bind','Remove','isEditable','_createDropdown','label','mouseenter','focus','ck-annotation__info-time','bindTemplate','Edit','change:isVisible','panelView','@external','importWord','isEnabled','ck-annotation__actions'];(function(_0x12847b,_0x43ed63){const _0x5b72bf=function(_0x580d00){while(--_0x580d00){_0x12847b['push'](_0x12847b['shift']());}};_0x5b72bf(++_0x43ed63);}(_0x43ed,0xb1));const _0x5b72=function(_0x12847b,_0x43ed63){_0x12847b=_0x12847b-0x0;let _0x5b72bf=_0x43ed[_0x12847b];return _0x5b72bf;};import{ButtonView as _0x5b292f,createDropdown as _0x4da35c,ListView as _0xe2c2dd,ListItemView as _0x1a85ee}from'ckeditor5/src/ui.js';import{icons as _0x27fb44}from'ckeditor5/src/core.js';import{UserView as _0x5d5ae5,ConfirmMixin as _0x16e441}from'ckeditor5-collaboration/src/collaboration-core.js';import _0xb0b588 from'./basecommentview.js';import _0x2e46a4 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x55cb56}from'../../../utils/common-translations.js';export default class pt extends _0x16e441(_0xb0b588){constructor(_0x384198,_0x4ac9e7,_0x3fc30f){super(_0x384198,_0x4ac9e7,_0x3fc30f),this[_0x5b72('0x47')](_0x5b72('0x5d'),null),this[_0x5b72('0x47')]('placeholder',_0x55cb56(_0x384198,_0x5b72('0x1d'))),this[_0x5b72('0x3')](_0x5b72('0x29'))['to'](_0x4ac9e7),this['bind'](_0x5b72('0x3b'))['to'](_0x4ac9e7),this['actionBar']=this[_0x5b72('0x2d')](),this[_0x5b72('0x18')]||(this[_0x5b72('0x15')]=this[_0x5b72('0x50')](),this[_0x5b72('0x57')]=this[_0x5b72('0x3c')](),this['items']=this['createCollection'](),this[_0x5b72('0x17')][_0x5b72('0x2f')]([this[_0x5b72('0x15')],this[_0x5b72('0x57')]]),this[_0x5b72('0x5c')]=this[_0x5b72('0x6')](),this['actionBar'][_0x5b72('0x5f')](this[_0x5b72('0x5c')])),this[_0x5b72('0x3d')]=new _0x5d5ae5(_0x384198,_0x4ac9e7[_0x5b72('0x20')],this[_0x5b72('0x49')]()),this[_0x5b72('0x3d')]['extendTemplate']({'attributes':{'class':[_0x5b72('0x4a'),'ck-annotation__user']}}),this[_0x5b72('0x22')](_0x4ac9e7,'change:isRemovable',()=>this[_0x5b72('0x5e')]()),this['setTemplate'](this[_0x5b72('0x3a')]());}[_0x5b72('0x3a')](){const _0x4edbb4=this[_0x5b72('0xb')],_0x5cd693=[{'tag':'div','attributes':{'class':['ck-comment__info',_0x5b72('0x36')]},'children':[{'tag':_0x5b72('0x53'),'children':[{'text':this['userView'][_0x5b72('0x38')]}],'attributes':{'class':[_0x5b72('0x40'),_0x5b72('0x37')]}},{'tag':_0x5b72('0x4c'),'attributes':{'datetime':_0x4edbb4['to'](_0x5b72('0x29')),'class':[_0x5b72('0x1e'),_0x5b72('0xa')]},'children':[{'text':_0x4edbb4['to']('authoredAt',_0xf02c75=>this['_config'][_0x5b72('0x2e')](_0xf02c75))}]}]},{'tag':_0x5b72('0x60'),'attributes':{'class':[_0x5b72('0x34'),_0x5b72('0x12'),_0x4edbb4['if'](_0x5b72('0x35'),_0x5b72('0x52')),_0x4edbb4['if'](_0x5b72('0x35'),_0x5b72('0x14'))]},'children':this[_0x5b72('0x21')]},{'tag':'div','attributes':{'class':[_0x5b72('0x1f')]},'children':this['visibleView']}];return this[_0x5b72('0x3f')][_0x5b72('0x45')]&&_0x5cd693[_0x5b72('0x5a')]({'tag':_0x5b72('0x60'),'attributes':{'class':[_0x5b72('0x32')]},'children':[{'text':this[_0x5b72('0x51')]()}]}),{'tag':'li','attributes':{'class':[_0x5b72('0x31'),_0x4edbb4['if']('isConfirm',_0x5b72('0x1'))],'tabindex':-0x1},'children':[{'tag':_0x5b72('0x60'),'attributes':{'class':['ck-comment',_0x5b72('0x19'),_0x4edbb4['if'](_0x5b72('0x35'),'ck-comment--edit'),_0x4edbb4['if'](_0x5b72('0x18'),_0x5b72('0x5b')),_0x4edbb4['to']('actionIndicator',_0x26b3a4=>_0x26b3a4?_0x5b72('0x28')+_0x26b3a4:'')],'data-author-id':this[_0x5b72('0x3f')][_0x5b72('0x20')]['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':[_0x5b72('0x4b'),_0x5b72('0x46')]},'children':_0x5cd693}]}]};}[_0x5b72('0x50')](){const _0x537f6d=new _0x5b292f(this[_0x5b72('0x25')]);return _0x537f6d[_0x5b72('0x7')]=_0x55cb56(this[_0x5b72('0x25')],_0x5b72('0xc')),_0x537f6d[_0x5b72('0x3e')]=_0x27fb44[_0x5b72('0x2c')],_0x537f6d[_0x5b72('0x23')]=!0x0,_0x537f6d['extendTemplate']({'attributes':{'class':_0x5b72('0x16')}}),_0x537f6d[_0x5b72('0x3')](_0x5b72('0x11'))['to'](this[_0x5b72('0x3f')],_0x5b72('0x42'),_0x2701d2=>!_0x2701d2),_0x537f6d[_0x5b72('0x3')](_0x5b72('0x39'))['to'](this[_0x5b72('0x3f')],_0x5b72('0x5')),_0x537f6d['on'](_0x5b72('0x58'),()=>this[_0x5b72('0x61')]()),_0x537f6d;}[_0x5b72('0x3c')](){const _0x3aec37=new _0x5b292f(this['locale']);return _0x3aec37[_0x5b72('0x7')]=_0x55cb56(this[_0x5b72('0x25')],_0x5b72('0x4')),_0x3aec37[_0x5b72('0x3e')]=_0x2e46a4,_0x3aec37[_0x5b72('0x23')]=!0x0,_0x3aec37[_0x5b72('0x2a')]({'attributes':{'class':_0x5b72('0x33')}}),_0x3aec37[_0x5b72('0x3')]('isEnabled')['to'](this[_0x5b72('0x3f')],'isReadOnly',_0x5e63cb=>!_0x5e63cb),_0x3aec37[_0x5b72('0x3')](_0x5b72('0x39'))['to'](this[_0x5b72('0x3f')],'isRemovable'),_0x3aec37['on'](_0x5b72('0x58'),()=>{this[_0x5b72('0x1a')](_0x55cb56(this[_0x5b72('0x25')],'Delete\x20comment?'),this[_0x5b72('0x59')])[_0x5b72('0x56')](()=>{this['fire'](_0x5b72('0x4d'),this[_0x5b72('0x3f')]['id']);});}),_0x3aec37;}[_0x5b72('0x6')](){const _0x7428ff=_0x4da35c(this[_0x5b72('0x25')]),_0x30e088=_0x7428ff[_0x5b72('0xe')][_0x5b72('0x4e')],_0x548a93=new _0xe2c2dd(this['locale']),_0x48f388=(_0x37a34e,_0x2c688e=-0x1)=>{const _0x5be256=new _0x1a85ee(this[_0x5b72('0x25')]);_0x5be256[_0x5b72('0x4e')][_0x5b72('0x5f')](_0x37a34e);const _0x4d7482=_0x2c688e>-0x1?_0x2c688e:_0x548a93[_0x5b72('0x17')][_0x5b72('0x26')];_0x548a93[_0x5b72('0x17')][_0x5b72('0x5f')](_0x5be256,_0x4d7482),_0x7428ff[_0x5b72('0x22')](_0x37a34e,_0x5b72('0x48'),()=>{_0x7428ff['isEnabled']=[...this[_0x5b72('0x17')]]['some'](_0x3a5718=>_0x3a5718['isEnabled']);}),_0x7428ff[_0x5b72('0x22')](_0x37a34e,_0x5b72('0xd'),()=>{_0x7428ff['buttonView'][_0x5b72('0x39')]=[...this[_0x5b72('0x17')]]['some'](_0xa1dab7=>_0xa1dab7['isVisible']);});};_0x7428ff['panelPosition']='sw',_0x7428ff['buttonView'][_0x5b72('0x47')]({'label':_0x55cb56(this[_0x5b72('0x25')],_0x5b72('0x13')),'icon':_0x27fb44['threeVerticalDots']}),_0x7428ff['isEnabled']=[...this[_0x5b72('0x17')]][_0x5b72('0x27')](_0x381766=>_0x381766[_0x5b72('0x11')]),_0x7428ff['buttonView'][_0x5b72('0x39')]=[...this[_0x5b72('0x17')]][_0x5b72('0x27')](_0xe2c182=>_0xe2c182[_0x5b72('0x39')]);for(const _0x14c4b0 of this[_0x5b72('0x17')])_0x48f388(_0x14c4b0);return _0x30e088[_0x5b72('0x5f')](_0x548a93),_0x7428ff[_0x5b72('0x22')](this['items'],'add',(_0x1a0137,_0x5c3404,_0x4b52b2)=>{_0x48f388(_0x5c3404,_0x4b52b2);}),_0x7428ff[_0x5b72('0x22')](this[_0x5b72('0x17')],_0x5b72('0x30'),(_0x58d5e4,_0x1ece44,_0x104a1b)=>{_0x548a93[_0x5b72('0x17')][_0x5b72('0x30')](_0x104a1b);}),_0x7428ff;}['_attachActions'](_0x1a8d4a,_0x11be37){const _0x282b7c=_0x1a8d4a&&_0x1a8d4a[_0x5b72('0x59')];_0x282b7c&&(this['listenTo'](_0x282b7c,_0x5b72('0x8'),()=>this[_0x5b72('0x5d')]=_0x11be37),this[_0x5b72('0x22')](_0x282b7c,_0x5b72('0x9'),()=>this[_0x5b72('0x5d')]=_0x11be37),this[_0x5b72('0x22')](_0x282b7c,_0x5b72('0x1b'),()=>this[_0x5b72('0x5d')]=null),this[_0x5b72('0x22')](_0x282b7c,_0x5b72('0x44'),()=>this[_0x5b72('0x5d')]=null));}[_0x5b72('0x2b')](){const _0x11ea98=super['_createCommentInputView']();return _0x11ea98[_0x5b72('0x3')](_0x5b72('0x24'))['to'](this),_0x11ea98;}[_0x5b72('0x51')](){return _0x5b72('0x10')===this[_0x5b72('0x3f')][_0x5b72('0x43')][_0x5b72('0xf')][_0x5b72('0x0')]?_0x55cb56(this[_0x5b72('0x25')],_0x5b72('0x41')):_0x55cb56(this['locale'],_0x5b72('0x54'));}['getUserViewNotificationText'](){return this['_model']['isExternal']?_0x5b72('0x10')===this[_0x5b72('0x3f')][_0x5b72('0x43')][_0x5b72('0xf')]['source']?_0x55cb56(this[_0x5b72('0x25')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x5b72('0x3f')][_0x5b72('0x55')]['name']):_0x55cb56(this[_0x5b72('0x25')],_0x5b72('0x1c'),this[_0x5b72('0x3f')]['creator'][_0x5b72('0x38')]):null;}['render'](){super['render'](),this[_0x5b72('0x4f')](this['editButton'],_0x5b72('0x2')),this[_0x5b72('0x4f')](this[_0x5b72('0x57')],_0x5b72('0x30'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4e84=['requires','pluginName','Comments'];(function(_0x36cd71,_0x4e84c0){var _0x1e7425=function(_0x5de536){while(--_0x5de536){_0x36cd71['push'](_0x36cd71['shift']());}};_0x1e7425(++_0x4e84c0);}(_0x4e84,0x14a));var _0x1e74=function(_0x36cd71,_0x4e84c0){_0x36cd71=_0x36cd71-0x0;var _0x1e7425=_0x4e84[_0x36cd71];return _0x1e7425;};import{Plugin as _0x205c13}from'ckeditor5/src/core.js';import _0x126162 from'./comments/commentsrepository.js';import _0x828e0d from'./comments/commentsediting.js';import _0x529a1b from'./comments/commentsui.js';import _0x457c46 from'./commentsonly.js';import _0x1903f9 from'./annotations/widesidebar.js';import _0x24297a from'./annotations/narrowsidebar.js';import _0x76bf86 from'./annotations/inlineannotations.js';import _0x3b872f from'./comments/commentsarchiveui.js';import _0x591898 from'./comments/commentsarchive.js';export default class f extends _0x205c13{static get[_0x1e74('0x0')](){return[_0x126162,_0x828e0d,_0x529a1b,_0x591898,_0x3b872f,_0x457c46,_0x1903f9,_0x24297a,_0x76bf86];}static get[_0x1e74('0x1')](){return _0x1e74('0x2');}}
23
+ var _0x3895=['pluginName','requires'];(function(_0x3784fe,_0x3895bf){var _0x1c5b7b=function(_0x4302c5){while(--_0x4302c5){_0x3784fe['push'](_0x3784fe['shift']());}};_0x1c5b7b(++_0x3895bf);}(_0x3895,0x14d));var _0x1c5b=function(_0x3784fe,_0x3895bf){_0x3784fe=_0x3784fe-0x0;var _0x1c5b7b=_0x3895[_0x3784fe];return _0x1c5b7b;};import{Plugin as _0x179367}from'ckeditor5/src/core.js';import _0x434f82 from'./comments/commentsrepository.js';import _0x5aae2f from'./comments/commentsediting.js';import _0x5d1689 from'./comments/commentsui.js';import _0x144f8a from'./commentsonly.js';import _0x26c65b from'./annotations/widesidebar.js';import _0x19a971 from'./annotations/narrowsidebar.js';import _0x78796c from'./annotations/inlineannotations.js';import _0x133b3d from'./comments/commentsarchiveui.js';import _0x903cea from'./comments/commentsarchive.js';export default class f extends _0x179367{static get[_0x1c5b('0x0')](){return[_0x434f82,_0x5aae2f,_0x5d1689,_0x903cea,_0x133b3d,_0x144f8a,_0x26c65b,_0x19a971,_0x78796c];}static get[_0x1c5b('0x1')](){return'Comments';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b24=['stop','delete','change:isEnabled','DragDrop','has','cut','plugins','_disableCommentsOnlyMode','editing','commentsOnlyMode','commands','pluginName','commentsOnly','isEnabled','clipboardInput','_enableCommentsOnlyMode','view','addCommentThread','affectsData','afterInit','stopListening','config','forceDisabled','listenTo','document','get','highest','editor','clearForceDisabled'];(function(_0x4014d8,_0x5b24f0){const _0x4d8ed8=function(_0x45b8be){while(--_0x45b8be){_0x4014d8['push'](_0x4014d8['shift']());}};_0x4d8ed8(++_0x5b24f0);}(_0x5b24,0x171));const _0x4d8e=function(_0x4014d8,_0x5b24f0){_0x4014d8=_0x4014d8-0x0;let _0x4d8ed8=_0x5b24[_0x4014d8];return _0x4d8ed8;};import{Plugin as _0x189a84}from'ckeditor5/src/core.js';import _0x30df73 from'./comments/commentsediting.js';export default class e extends _0x189a84{static get[_0x4d8e('0x13')](){return'CommentsOnly';}static get['requires'](){return[_0x30df73];}constructor(_0x512966){super(_0x512966),this['set'](_0x4d8e('0x15'),!0x1),this['on'](_0x4d8e('0xa'),(_0x38eeb6,_0x2d1f3e,_0x12e416)=>{_0x12e416?this['_enableCommentsOnlyMode']():this[_0x4d8e('0xf')]();});}[_0x4d8e('0x1b')](){!this[_0x4d8e('0x15')]&&this[_0x4d8e('0x6')][_0x4d8e('0x0')][_0x4d8e('0x4')](_0x4d8e('0x14'))&&(this[_0x4d8e('0x15')]=!0x0);}[_0x4d8e('0x17')](){for(const [_0xa46f65,_0x534928]of this[_0x4d8e('0x6')]['commands'])_0x534928[_0x4d8e('0x1a')]&&_0x4d8e('0x19')!==_0xa46f65&&_0x534928[_0x4d8e('0x1')](_0x4d8e('0x11'));this['editor']['plugins'][_0x4d8e('0xc')](_0x4d8e('0xb'))&&this[_0x4d8e('0x6')][_0x4d8e('0xe')][_0x4d8e('0x4')](_0x4d8e('0xb'))['forceDisabled'](_0x4d8e('0x11'));const _0x35b799=this[_0x4d8e('0x6')][_0x4d8e('0x10')][_0x4d8e('0x18')][_0x4d8e('0x3')];this['listenTo'](_0x35b799,_0x4d8e('0xd'),_0x245568=>_0x245568['stop'](),{'priority':_0x4d8e('0x5')}),this[_0x4d8e('0x2')](_0x35b799,_0x4d8e('0x16'),_0x39b897=>_0x39b897[_0x4d8e('0x8')](),{'priority':_0x4d8e('0x5')}),this['listenTo'](_0x35b799,_0x4d8e('0x9'),_0x4143b5=>_0x4143b5[_0x4d8e('0x8')](),{'priority':_0x4d8e('0x5')});}[_0x4d8e('0xf')](){for(const [_0x4c7ed6,_0x240a98]of this[_0x4d8e('0x6')][_0x4d8e('0x12')])_0x240a98['affectsData']&&_0x4d8e('0x19')!==_0x4c7ed6&&_0x240a98[_0x4d8e('0x7')](_0x4d8e('0x11'));this[_0x4d8e('0x1c')](this[_0x4d8e('0x6')][_0x4d8e('0x10')]['view']['document']);}}
23
+ const _0x54d7=['_enableCommentsOnlyMode','document','commentsOnlyMode','stopListening','change:isEnabled','clearForceDisabled','config','afterInit','forceDisabled','cut','view','_disableCommentsOnlyMode','commentsOnly','listenTo','commands','clipboardInput','pluginName','editor','has','highest','stop','affectsData','addCommentThread','editing','isEnabled','DragDrop','get','plugins'];(function(_0xb00da5,_0x54d7bc){const _0x52bc36=function(_0x5c5a18){while(--_0x5c5a18){_0xb00da5['push'](_0xb00da5['shift']());}};_0x52bc36(++_0x54d7bc);}(_0x54d7,0x92));const _0x52bc=function(_0xb00da5,_0x54d7bc){_0xb00da5=_0xb00da5-0x0;let _0x52bc36=_0x54d7[_0xb00da5];return _0x52bc36;};import{Plugin as _0x366ede}from'ckeditor5/src/core.js';import _0x1705a4 from'./comments/commentsediting.js';export default class e extends _0x366ede{static get[_0x52bc('0xa')](){return'CommentsOnly';}static get['requires'](){return[_0x1705a4];}constructor(_0x5ec9ab){super(_0x5ec9ab),this['set'](_0x52bc('0x12'),!0x1),this['on'](_0x52bc('0x1a'),(_0x1cb716,_0x24a806,_0x3ac4db)=>{_0x3ac4db?this[_0x52bc('0x16')]():this['_disableCommentsOnlyMode']();});}[_0x52bc('0x1')](){!this['isEnabled']&&this[_0x52bc('0xb')][_0x52bc('0x0')][_0x52bc('0x14')](_0x52bc('0x6'))&&(this['isEnabled']=!0x0);}[_0x52bc('0x16')](){for(const [_0x40144e,_0x2c5cc7]of this['editor'][_0x52bc('0x8')])_0x2c5cc7[_0x52bc('0xf')]&&_0x52bc('0x10')!==_0x40144e&&_0x2c5cc7['forceDisabled']('commentsOnlyMode');this[_0x52bc('0xb')]['plugins'][_0x52bc('0xc')](_0x52bc('0x13'))&&this[_0x52bc('0xb')][_0x52bc('0x15')]['get'](_0x52bc('0x13'))[_0x52bc('0x2')](_0x52bc('0x18'));const _0x581f8b=this['editor'][_0x52bc('0x11')][_0x52bc('0x4')][_0x52bc('0x17')];this[_0x52bc('0x7')](_0x581f8b,_0x52bc('0x3'),_0x460f4a=>_0x460f4a[_0x52bc('0xe')](),{'priority':_0x52bc('0xd')}),this['listenTo'](_0x581f8b,_0x52bc('0x9'),_0x6ec33f=>_0x6ec33f[_0x52bc('0xe')](),{'priority':'highest'}),this['listenTo'](_0x581f8b,'delete',_0x427cc0=>_0x427cc0[_0x52bc('0xe')](),{'priority':_0x52bc('0xd')});}[_0x52bc('0x5')](){for(const [_0x525b56,_0x261b3a]of this[_0x52bc('0xb')][_0x52bc('0x8')])_0x261b3a[_0x52bc('0xf')]&&'addCommentThread'!==_0x525b56&&_0x261b3a[_0x52bc('0x1b')]('commentsOnlyMode');this[_0x52bc('0x19')](this['editor'][_0x52bc('0x11')]['view'][_0x52bc('0x17')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x10e285,_0x428443,_0x45d435){const t=_0x10e285['t'];switch(_0x428443){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'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20comment.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20comment.','id':'ENTER_COMMENT_ANNOUNCEMENT'});case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x45d435);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'},_0x45d435);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x45d435);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x45d435);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}
23
+ export function getTranslation(_0x30e421,_0xb0bdb5,_0x3cd6bd){const t=_0x30e421['t'];switch(_0xb0bdb5){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'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20comment.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20comment.','id':'ENTER_COMMENT_ANNOUNCEMENT'});case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x3cd6bd);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'},_0x3cd6bd);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3cd6bd);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3cd6bd);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x107e=['attributes','disconnect','childList','class','cancel','type','observe','attributeName'];(function(_0x3714bd,_0x107e91){const _0x47c22f=function(_0x1377b7){while(--_0x1377b7){_0x3714bd['push'](_0x3714bd['shift']());}};_0x47c22f(++_0x107e91);}(_0x107e,0x14b));const _0x47c2=function(_0x3714bd,_0x107e91){_0x3714bd=_0x3714bd-0x0;let _0x47c22f=_0x107e[_0x3714bd];return _0x47c22f;};import{throttle as _0x459215}from'lodash-es';export default function Dt(_0x3c3904){const _0x162be5=_0x459215(_0x3c3904,0x1e),_0xcf8998=new MutationObserver(_0x41f531=>{for(const _0xfba9e5 of _0x41f531)(_0x47c2('0x5')==_0xfba9e5[_0x47c2('0x2')]&&_0x47c2('0x0')==_0xfba9e5[_0x47c2('0x4')]||_0x47c2('0x7')==_0xfba9e5[_0x47c2('0x2')]||'characterData'==_0xfba9e5[_0x47c2('0x2')])&&_0x162be5();});return{'attach'(_0x1c2983){_0xcf8998[_0x47c2('0x3')](_0x1c2983,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0xcf8998[_0x47c2('0x6')](),_0x162be5[_0x47c2('0x1')]();}};}
23
+ const _0x5ef1=['attributes','class','cancel','type','observe','disconnect','attributeName','childList'];(function(_0x26adec,_0x5ef1a9){const _0x151025=function(_0x48b0e0){while(--_0x48b0e0){_0x26adec['push'](_0x26adec['shift']());}};_0x151025(++_0x5ef1a9);}(_0x5ef1,0x106));const _0x1510=function(_0x26adec,_0x5ef1a9){_0x26adec=_0x26adec-0x0;let _0x151025=_0x5ef1[_0x26adec];return _0x151025;};import{throttle as _0xa963b7}from'lodash-es';export default function Dt(_0x4f9fa1){const _0x36ab30=_0xa963b7(_0x4f9fa1,0x1e),_0x33d348=new MutationObserver(_0x360077=>{for(const _0x1dd9d9 of _0x360077)(_0x1510('0x2')==_0x1dd9d9['type']&&_0x1510('0x3')==_0x1dd9d9[_0x1510('0x0')]||_0x1510('0x1')==_0x1dd9d9[_0x1510('0x5')]||'characterData'==_0x1dd9d9['type'])&&_0x36ab30();});return{'attach'(_0x48d999){_0x33d348[_0x1510('0x6')](_0x48d999,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x33d348[_0x1510('0x7')](),_0x36ab30[_0x1510('0x4')]();}};}