@ckeditor/ckeditor5-comments 41.0.0 → 41.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/build/comments.js +1 -1
  2. package/build/translations/he.js +1 -1
  3. package/lang/translations/he.po +1 -2
  4. package/package.json +3 -3
  5. package/src/annotations/annotation.js +1 -1
  6. package/src/annotations/annotationcollection.js +1 -1
  7. package/src/annotations/annotations.js +1 -1
  8. package/src/annotations/annotationsuis.js +1 -1
  9. package/src/annotations/editorannotations.js +1 -1
  10. package/src/annotations/inlineannotations.js +1 -1
  11. package/src/annotations/narrowsidebar.js +1 -1
  12. package/src/annotations/sidebar.js +1 -1
  13. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  14. package/src/annotations/view/annotationview.js +1 -1
  15. package/src/annotations/view/sidebaritemview.js +1 -1
  16. package/src/annotations/view/sidebarview.js +1 -1
  17. package/src/annotations/widesidebar.js +1 -1
  18. package/src/comments/addcommentthreadcommand.js +1 -1
  19. package/src/comments/commentsarchive.js +1 -1
  20. package/src/comments/commentsarchiveui.js +1 -1
  21. package/src/comments/commentsediting.d.ts +3 -2
  22. package/src/comments/commentsediting.js +1 -1
  23. package/src/comments/commentsrepository.js +1 -1
  24. package/src/comments/commentsui.js +1 -1
  25. package/src/comments/integrations/clipboard.d.ts +26 -0
  26. package/src/comments/integrations/clipboard.js +23 -0
  27. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  28. package/src/comments/integrations/importword.js +1 -1
  29. package/src/comments/ui/commenteditor/commenteditor.d.ts +1 -1
  30. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  31. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  32. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  33. package/src/comments/ui/commentthreadcontroller.js +1 -1
  34. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  35. package/src/comments/ui/view/basecommentview.js +1 -1
  36. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  37. package/src/comments/ui/view/commentcontentview.js +1 -1
  38. package/src/comments/ui/view/commentinputview.js +1 -1
  39. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  40. package/src/comments/ui/view/commentslistview.js +1 -1
  41. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  42. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  43. package/src/comments/ui/view/commentthreadview.js +1 -1
  44. package/src/comments/ui/view/commentview.js +1 -1
  45. package/src/comments.js +1 -1
  46. package/src/commentsonly.js +1 -1
  47. package/src/config.d.ts +17 -2
  48. package/src/index.js +1 -1
  49. package/src/utils/common-translations.js +1 -1
  50. package/src/utils/createmutationobserver.js +1 -1
  51. package/theme/annotation.css +4 -0
  52. package/theme/commentthread.css +4 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x137f=['locale','set','actionBar','_bindFirstCommentView','remove','length','setTemplate','isVisible','bind','tooltip','element','ck-reset_all-excluded','.ck-thread__container','isUnlinked','ck-thread__container','actionIndicator','high','removeCommentThread','commentThreadInputView','_model','change:isReadOnly','div','showConfirm','isActive','listenTo','execute','removeButton','isResolved','commentThreadHeaderView','extendTemplate','_boundFirstCommentView','render','icon','addMany','resolveButton','ck-thread--remove-confirmation','add','get','isReadOnly','change:isActive','ck-thread--','isEnabled','commentViews','querySelector','getTemplate','change:archivedAt','placeholder','resolveCommentThread','commentsListView','_cancelAllConfirms','cancelConfirm','ck-thread--unlinked','label','isConfirm','commentThreadChildren','ck-thread--active','fire','_createResolveButton','containerElement','createCollection','Resolve','bindTemplate','check'];(function(_0x26565f,_0x137fd3){const _0xe29800=function(_0x33c268){while(--_0x33c268){_0x26565f['push'](_0x26565f['shift']());}};_0xe29800(++_0x137fd3);}(_0x137f,0x105));const _0xe298=function(_0x26565f,_0x137fd3){_0x26565f=_0x26565f-0x0;let _0xe29800=_0x137f[_0x26565f];return _0xe29800;};import{ConfirmMixin as _0x3a74b6}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x24fa8f}from'ckeditor5/src/ui.js';import{icons as _0x174514}from'ckeditor5/src/core.js';import _0x337d3b from'./basecommentthreadview.js';import{getTranslation as _0x4a2629}from'../../../utils/common-translations.js';export default class ft extends _0x3a74b6(_0x337d3b){constructor(_0x427707,_0x22aeb0,_0x341330,_0x351463){super(_0x427707,_0x22aeb0,_0x341330,_0x351463),this['commentThreadChildren']=this[_0xe298('0x32')](),this[_0xe298('0x2d')][_0xe298('0x18')]([this[_0xe298('0x27')],this[_0xe298('0x9')]]),this[_0xe298('0xa')]['archivedAt']&&this[_0xe298('0x2d')][_0xe298('0x1b')](this[_0xe298('0x13')],0x0),this[_0xe298('0xa')]['on'](_0xe298('0x24'),(_0xfca9c4,_0x578b7c,_0x37d099)=>{_0x37d099?this[_0xe298('0x2d')]['has'](this['commentThreadHeaderView'])||this[_0xe298('0x2d')]['add'](this[_0xe298('0x13')],0x0):this[_0xe298('0x2d')][_0xe298('0x3a')](this[_0xe298('0x13')]);}),this[_0xe298('0x37')](_0xe298('0x6'),null),this[_0xe298('0x31')]=null,this[_0xe298('0x15')]=null,this['locale']=_0x427707,this['resolveButton']=this[_0xe298('0x30')](),this[_0xe298('0x3c')](this[_0xe298('0x23')]()),this['on'](_0xe298('0x1e'),(_0x3eec1c,_0x426968,_0x3cd7a5)=>{_0x3cd7a5||this[_0xe298('0x28')]();}),this[_0xe298('0xf')](this['_model'],_0xe298('0xb'),(_0x5850a7,_0x59a8d3,_0x53d4d7)=>{_0x53d4d7&&this['_cancelAllConfirms']();}),this[_0xe298('0x3b')]>0x0&&this[_0xe298('0x39')](),this['listenTo'](this[_0xe298('0x27')]['commentViews'],_0xe298('0x1b'),()=>{this['_bindFirstCommentView']();});}[_0xe298('0x23')](){const _0x48695e=this[_0xe298('0x34')];return{'tag':_0xe298('0xc'),'attributes':{'class':['ck-thread',_0xe298('0x2'),_0x48695e['if'](_0xe298('0xe'),_0xe298('0x2e')),_0x48695e['if'](_0xe298('0x4'),_0xe298('0x2a')),_0x48695e['if'](_0xe298('0x2c'),_0xe298('0x1a')),_0x48695e['to'](_0xe298('0x6'),_0xd21011=>_0xd21011?_0xe298('0x1f')+_0xd21011:'')],'data-thread-id':this[_0xe298('0xa')]['id'],'tabindex':-0x1},'children':[{'tag':_0xe298('0xc'),'attributes':{'class':_0xe298('0x5')},'children':this[_0xe298('0x2d')]}]};}[_0xe298('0x16')](){super['render'](),this[_0xe298('0x31')]=this[_0xe298('0x1')][_0xe298('0x22')](_0xe298('0x3'));}[_0xe298('0x28')](){this[_0xe298('0x29')]();for(const _0xf4e0b4 of this[_0xe298('0x27')][_0xe298('0x21')])_0xf4e0b4[_0xe298('0x29')]();}[_0xe298('0x39')](){const {locale:_0x3b36b8}=this,_0xd19ce=this[_0xe298('0x27')]['commentViews'][_0xe298('0x1c')](0x0);_0xd19ce===this['_boundFirstCommentView']||_0xd19ce['isSystemComment']||(this[_0xe298('0x15')]=_0xd19ce,this['unbind']('actionIndicator'),this[_0xe298('0x3e')](_0xe298('0x6'))['to'](_0xd19ce,_0xe298('0x6'),_0xd2441=>_0xe298('0x3a')===_0xd2441?_0xe298('0x3a'):null),_0xd19ce[_0xe298('0x25')]=_0x4a2629(_0x3b36b8,'Write\x20a\x20comment...'),_0xd19ce[_0xe298('0x11')]['on'](_0xe298('0x10'),_0x4354b6=>{_0x4354b6['stop'](),this[_0xe298('0xd')](_0x4a2629(_0x3b36b8,'Delete\x20comment\x20thread?'),this[_0xe298('0x31')])['then'](()=>{this['fire'](_0xe298('0x8'));});},{'priority':_0xe298('0x7')}),_0xd19ce[_0xe298('0x38')]['add'](this[_0xe298('0x19')],0x0));}[_0xe298('0x30')](){const _0x2f66d0=new _0x24fa8f(this['locale']);return _0x2f66d0[_0xe298('0x2b')]=_0x4a2629(this[_0xe298('0x36')],_0xe298('0x33')),_0x2f66d0[_0xe298('0x0')]=_0x4a2629(this[_0xe298('0x36')],_0xe298('0x33')),_0x2f66d0[_0xe298('0x17')]=_0x174514[_0xe298('0x35')],_0x2f66d0[_0xe298('0x14')]({'attributes':{'class':'ck-comment--resolve'}}),_0x2f66d0[_0xe298('0x3e')](_0xe298('0x20'))['to'](this[_0xe298('0xa')],_0xe298('0x1d'),_0x14bc2d=>!_0x14bc2d),_0x2f66d0[_0xe298('0x3e')](_0xe298('0x3d'))['to'](this[_0xe298('0xa')],'isResolvable',this[_0xe298('0xa')],_0xe298('0x12'),(_0xf10b00,_0x3d5752)=>_0xf10b00&&!_0x3d5752),_0x2f66d0['on'](_0xe298('0x10'),()=>{this[_0xe298('0x2f')](_0xe298('0x26'),this[_0xe298('0xa')]['id']);}),_0x2f66d0;}}
23
+ const _0x28a6ee=_0x43d8;(function(_0x44c50d,_0xfb551e){const _0x19b3a2=_0x43d8,_0x2fa9ec=_0x44c50d();while(!![]){try{const _0x4976dd=-parseInt(_0x19b3a2(0x10d))/0x1+parseInt(_0x19b3a2(0x12f))/0x2*(-parseInt(_0x19b3a2(0x10b))/0x3)+parseInt(_0x19b3a2(0x11d))/0x4+parseInt(_0x19b3a2(0x155))/0x5*(parseInt(_0x19b3a2(0x123))/0x6)+parseInt(_0x19b3a2(0x14d))/0x7*(-parseInt(_0x19b3a2(0x12b))/0x8)+parseInt(_0x19b3a2(0x13e))/0x9*(-parseInt(_0x19b3a2(0x159))/0xa)+parseInt(_0x19b3a2(0x148))/0xb*(parseInt(_0x19b3a2(0x11f))/0xc);if(_0x4976dd===_0xfb551e)break;else _0x2fa9ec['push'](_0x2fa9ec['shift']());}catch(_0x52b7a9){_0x2fa9ec['push'](_0x2fa9ec['shift']());}}}(_0x28a7,0x3869a));import{ConfirmMixin as _0x2fd70e}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x43d8(_0x441fac,_0x3269c5){const _0x28a79e=_0x28a7();return _0x43d8=function(_0x43d87c,_0x4f75f4){_0x43d87c=_0x43d87c-0x108;let _0x42a8e8=_0x28a79e[_0x43d87c];return _0x42a8e8;},_0x43d8(_0x441fac,_0x3269c5);}import{ButtonView as _0x24e2e4}from'ckeditor5/src/ui.js';import{icons as _0x57306e}from'ckeditor5/src/core.js';import _0x52d883 from'./basecommentthreadview.js';function _0x28a7(){const _0x46e38=['_cancelAllConfirms','ck-reset_all-excluded','querySelector','change:isActive','633880Edlinc','ck-thread--','6673236lyuvel','add','resolveCommentThread','isUnlinked','18SVoKUZ','length','div','_createResolveButton','_model','actionBar','icon','.ck-thread__container','43544RpoqRn','createCollection','fire','ck-thread--remove-confirmation','20JPIsvy','isEnabled','isConfirm','isResolved','tooltip','setTemplate','extendTemplate','set','then','high','execute','remove','unbind','ck-thread--active','commentViews','9OSjwhz','getTemplate','containerElement','actionIndicator','bind','check','element','isReadOnly','cancelConfirm','listenTo','11VyUAEp','isVisible','ck-comment--resolve','has','Write\x20a\x20comment...','210yPYJmY','stop','Resolve','commentThreadInputView','placeholder','removeCommentThread','isSystemComment','get','175675idlWUd','change:isReadOnly','isResolvable','ck-thread--unlinked','769540MNgyFJ','change:archivedAt','label','locale','showConfirm','commentThreadHeaderView','ck-thread','isActive','14244RrAByS','Delete\x20comment\x20thread?','301188dAMLKi','_bindFirstCommentView','commentsListView','render','resolveButton','_boundFirstCommentView','bindTemplate','archivedAt','ck-thread__container','addMany','removeButton','commentThreadChildren'];_0x28a7=function(){return _0x46e38;};return _0x28a7();}import{getTranslation as _0x305453}from'../../../utils/common-translations.js';export default class pt extends _0x2fd70e(_0x52d883){constructor(_0x4f6aa3,_0xb880f2,_0x5d6731,_0x24bc79){const _0x1ca88e=_0x43d8;super(_0x4f6aa3,_0xb880f2,_0x5d6731,_0x24bc79),this[_0x1ca88e(0x118)]=this[_0x1ca88e(0x12c)](),this[_0x1ca88e(0x118)][_0x1ca88e(0x116)]([this[_0x1ca88e(0x10f)],this[_0x1ca88e(0x150)]]),this[_0x1ca88e(0x127)][_0x1ca88e(0x114)]&&this[_0x1ca88e(0x118)][_0x1ca88e(0x120)](this[_0x1ca88e(0x108)],0x0),this[_0x1ca88e(0x127)]['on'](_0x1ca88e(0x15a),(_0x2394bb,_0x24550a,_0x17a049)=>{const _0x21ad4e=_0x1ca88e;_0x17a049?this[_0x21ad4e(0x118)][_0x21ad4e(0x14b)](this[_0x21ad4e(0x108)])||this[_0x21ad4e(0x118)][_0x21ad4e(0x120)](this[_0x21ad4e(0x108)],0x0):this[_0x21ad4e(0x118)][_0x21ad4e(0x13a)](this[_0x21ad4e(0x108)]);}),this[_0x1ca88e(0x136)](_0x1ca88e(0x141),null),this[_0x1ca88e(0x140)]=null,this[_0x1ca88e(0x112)]=null,this[_0x1ca88e(0x15c)]=_0x4f6aa3,this[_0x1ca88e(0x111)]=this[_0x1ca88e(0x126)](),this[_0x1ca88e(0x134)](this[_0x1ca88e(0x13f)]()),this['on'](_0x1ca88e(0x11c),(_0x482fcf,_0x946479,_0x3e28f9)=>{const _0x542b06=_0x1ca88e;_0x3e28f9||this[_0x542b06(0x119)]();}),this[_0x1ca88e(0x147)](this[_0x1ca88e(0x127)],_0x1ca88e(0x156),(_0x2bd805,_0x55acbc,_0x4f1692)=>{const _0x44b7ce=_0x1ca88e;_0x4f1692&&this[_0x44b7ce(0x119)]();}),this[_0x1ca88e(0x124)]>0x0&&this[_0x1ca88e(0x10e)](),this[_0x1ca88e(0x147)](this[_0x1ca88e(0x10f)][_0x1ca88e(0x13d)],_0x1ca88e(0x120),()=>{const _0xfb0225=_0x1ca88e;this[_0xfb0225(0x10e)]();});}[_0x28a6ee(0x13f)](){const _0x5bea94=_0x28a6ee,_0x2b0e8f=this[_0x5bea94(0x113)];return{'tag':_0x5bea94(0x125),'attributes':{'class':[_0x5bea94(0x109),_0x5bea94(0x11a),_0x2b0e8f['if'](_0x5bea94(0x10a),_0x5bea94(0x13c)),_0x2b0e8f['if'](_0x5bea94(0x122),_0x5bea94(0x158)),_0x2b0e8f['if'](_0x5bea94(0x131),_0x5bea94(0x12e)),_0x2b0e8f['to'](_0x5bea94(0x141),_0x580944=>_0x580944?_0x5bea94(0x11e)+_0x580944:'')],'data-thread-id':this[_0x5bea94(0x127)]['id'],'tabindex':-0x1},'children':[{'tag':_0x5bea94(0x125),'attributes':{'class':_0x5bea94(0x115)},'children':this[_0x5bea94(0x118)]}]};}[_0x28a6ee(0x110)](){const _0x3bc6f3=_0x28a6ee;super[_0x3bc6f3(0x110)](),this[_0x3bc6f3(0x140)]=this[_0x3bc6f3(0x144)][_0x3bc6f3(0x11b)](_0x3bc6f3(0x12a));}[_0x28a6ee(0x119)](){const _0x2ae341=_0x28a6ee;this[_0x2ae341(0x146)]();for(const _0x44f00f of this[_0x2ae341(0x10f)][_0x2ae341(0x13d)])_0x44f00f[_0x2ae341(0x146)]();}[_0x28a6ee(0x10e)](){const _0x60c0e8=_0x28a6ee,{locale:_0x136fbd}=this,_0x5f1a79=this[_0x60c0e8(0x10f)][_0x60c0e8(0x13d)][_0x60c0e8(0x154)](0x0);_0x5f1a79===this[_0x60c0e8(0x112)]||_0x5f1a79[_0x60c0e8(0x153)]||(this[_0x60c0e8(0x112)]=_0x5f1a79,this[_0x60c0e8(0x13b)](_0x60c0e8(0x141)),this[_0x60c0e8(0x142)](_0x60c0e8(0x141))['to'](_0x5f1a79,_0x60c0e8(0x141),_0x56d596=>_0x60c0e8(0x13a)===_0x56d596?_0x60c0e8(0x13a):null),_0x5f1a79[_0x60c0e8(0x151)]=_0x305453(_0x136fbd,_0x60c0e8(0x14c)),_0x5f1a79[_0x60c0e8(0x117)]['on'](_0x60c0e8(0x139),_0x483c8b=>{const _0x10864d=_0x60c0e8;_0x483c8b[_0x10864d(0x14e)](),this[_0x10864d(0x15d)](_0x305453(_0x136fbd,_0x10864d(0x10c)),this[_0x10864d(0x140)])[_0x10864d(0x137)](()=>{const _0x3c523e=_0x10864d;this[_0x3c523e(0x12d)](_0x3c523e(0x152));});},{'priority':_0x60c0e8(0x138)}),_0x5f1a79[_0x60c0e8(0x128)][_0x60c0e8(0x120)](this[_0x60c0e8(0x111)],0x0));}[_0x28a6ee(0x126)](){const _0x227d09=_0x28a6ee,_0x1ed0bf=new _0x24e2e4(this[_0x227d09(0x15c)]);return _0x1ed0bf[_0x227d09(0x15b)]=_0x305453(this[_0x227d09(0x15c)],_0x227d09(0x14f)),_0x1ed0bf[_0x227d09(0x133)]=_0x305453(this[_0x227d09(0x15c)],_0x227d09(0x14f)),_0x1ed0bf[_0x227d09(0x129)]=_0x57306e[_0x227d09(0x143)],_0x1ed0bf[_0x227d09(0x135)]({'attributes':{'class':_0x227d09(0x14a)}}),_0x1ed0bf[_0x227d09(0x142)](_0x227d09(0x130))['to'](this[_0x227d09(0x127)],_0x227d09(0x145),_0x304705=>!_0x304705),_0x1ed0bf[_0x227d09(0x142)](_0x227d09(0x149))['to'](this[_0x227d09(0x127)],_0x227d09(0x157),this[_0x227d09(0x127)],_0x227d09(0x132),(_0x3d1f8c,_0x474d24)=>_0x3d1f8c&&!_0x474d24),_0x1ed0bf['on'](_0x227d09(0x139),()=>{const _0x5b4af6=_0x227d09;this[_0x5b4af6(0x12d)](_0x5b4af6(0x121),this[_0x5b4af6(0x127)]['id']);}),_0x1ed0bf;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x530a=['ck-comment__external','isReadOnly','dropdown','mouseenter','importWord','ck-annotation__info-name','isEditMode','remove','ck-annotation__info-time','label','some','blur','add','source','getUserViewNotificationText','time','_createCommentInputView','Show\x20more\x20items','ck-comment--remove','change:isEnabled','removeButton','withText','createCollection','isEditable','EXTERNAL_AVATAR','_createDropdown','buttonView','panelPosition','ck-annotation__info','ck-comment__actions','actionIndicator','focus','items','author','push','authoredAt','locale','isConfirm','_createEditButton','_createRemoveButton','set','showConfirm','ck-comment__info','resolvedAt','children','getTemplate','ck-comment__actions--hidden','ck-comment','_model','ck-comment__info-time','execute','attributes','pencil','edit','bind','Edit','isVisible','placeholder','mouseleave','formatDateTime','ck-comment--info','element','isEnabled','then','getExternalCommentNote','span','listenTo','length','EXTERNAL_IMPORT_WORD_COMMENT','panelView','actionBar','extendTemplate','ck-annotation__main','bindTemplate','icon','_attachActions','name','isSystemComment','editButton','render','@external','ck-comment--edit','change:isVisible','visibleView','isExternal','ck-comment__main','div','ck-comment__wrapper','Delete\x20comment?','addMany','userView','ck-comment__user','setTemplate','ck-comment--remove-confirmation'];(function(_0x4b5fa2,_0x530a70){const _0xaa8fac=function(_0x5a9be5){while(--_0x5a9be5){_0x4b5fa2['push'](_0x4b5fa2['shift']());}};_0xaa8fac(++_0x530a70);}(_0x530a,0x1a0));const _0xaa8f=function(_0x4b5fa2,_0x530a70){_0x4b5fa2=_0x4b5fa2-0x0;let _0xaa8fac=_0x530a[_0x4b5fa2];return _0xaa8fac;};import{ButtonView as _0x3e500e,createDropdown as _0x3d341a,ListView as _0x5e1f89,ListItemView as _0x5d8d4c}from'ckeditor5/src/ui.js';import{icons as _0x5d58d1}from'ckeditor5/src/core.js';import{UserView as _0x23916e,ConfirmMixin as _0x171e5c}from'ckeditor5-collaboration/src/collaboration-core.js';import _0xa36540 from'./basecommentview.js';import _0x3945a1 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x4c7e6d}from'../../../utils/common-translations.js';export default class pt extends _0x171e5c(_0xa36540){constructor(_0x2ef118,_0x19a14b,_0x156501){super(_0x2ef118,_0x19a14b,_0x156501),this[_0xaa8f('0x0')](_0xaa8f('0x54'),null),this[_0xaa8f('0x0')](_0xaa8f('0x11'),_0x4c7e6d(_0x2ef118,'Reply...')),this[_0xaa8f('0xe')](_0xaa8f('0x59'))['to'](_0x19a14b),this[_0xaa8f('0xe')](_0xaa8f('0x3'))['to'](_0x19a14b),this[_0xaa8f('0x1e')]=this[_0xaa8f('0x4c')](),this[_0xaa8f('0x25')]||(this[_0xaa8f('0x26')]=this[_0xaa8f('0x5c')](),this[_0xaa8f('0x4a')]=this[_0xaa8f('0x5d')](),this['items']=this[_0xaa8f('0x4c')](),this['items'][_0xaa8f('0x31')]([this[_0xaa8f('0x26')],this[_0xaa8f('0x4a')]]),this[_0xaa8f('0x38')]=this[_0xaa8f('0x4f')](),this[_0xaa8f('0x1e')][_0xaa8f('0x42')](this[_0xaa8f('0x38')])),this[_0xaa8f('0x32')]=new _0x23916e(_0x2ef118,_0x19a14b[_0xaa8f('0x57')],this['getUserViewNotificationText']()),this[_0xaa8f('0x32')][_0xaa8f('0x1f')]({'attributes':{'class':[_0xaa8f('0x33'),'ck-annotation__user']}}),this[_0xaa8f('0x1a')](_0x19a14b,'change:isRemovable',()=>this['cancelConfirm']()),this[_0xaa8f('0x34')](this['getTemplate']());}[_0xaa8f('0x5')](){const _0x34f12c=this[_0xaa8f('0x21')],_0x4c9430=[{'tag':_0xaa8f('0x2e'),'attributes':{'class':[_0xaa8f('0x2'),_0xaa8f('0x52')]},'children':[{'tag':_0xaa8f('0x19'),'children':[{'text':this[_0xaa8f('0x32')][_0xaa8f('0x24')]}],'attributes':{'class':['ck-comment__info-name',_0xaa8f('0x3b')]}},{'tag':_0xaa8f('0x45'),'attributes':{'datetime':_0x34f12c['to'](_0xaa8f('0x59')),'class':[_0xaa8f('0x9'),_0xaa8f('0x3e')]},'children':[{'text':_0x34f12c['to']('authoredAt',_0x3da3b9=>this['_config'][_0xaa8f('0x13')](_0x3da3b9))}]}]},{'tag':_0xaa8f('0x2e'),'attributes':{'class':[_0xaa8f('0x53'),'ck-annotation__actions',_0x34f12c['if'](_0xaa8f('0x3c'),_0xaa8f('0x6')),_0x34f12c['if'](_0xaa8f('0x3c'),'ck-annotation__actions--hidden')]},'children':this[_0xaa8f('0x1e')]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this[_0xaa8f('0x2b')]}];return this['_model'][_0xaa8f('0x2c')]&&_0x4c9430[_0xaa8f('0x58')]({'tag':_0xaa8f('0x2e'),'attributes':{'class':[_0xaa8f('0x36')]},'children':[{'text':this[_0xaa8f('0x18')]()}]}),{'tag':'li','attributes':{'class':[_0xaa8f('0x2f'),_0x34f12c['if'](_0xaa8f('0x5b'),_0xaa8f('0x35'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0xaa8f('0x7'),'ck-annotation',_0x34f12c['if']('isEditMode',_0xaa8f('0x29')),_0x34f12c['if']('isSystemComment',_0xaa8f('0x14')),_0x34f12c['to'](_0xaa8f('0x54'),_0xaded03=>_0xaded03?'ck-comment--'+_0xaded03:'')],'data-author-id':this[_0xaa8f('0x8')][_0xaa8f('0x57')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0xaa8f('0x32')],{'tag':_0xaa8f('0x2e'),'attributes':{'class':[_0xaa8f('0x2d'),_0xaa8f('0x20')]},'children':_0x4c9430}]}]};}[_0xaa8f('0x5c')](){const _0xd91b87=new _0x3e500e(this[_0xaa8f('0x5a')]);return _0xd91b87[_0xaa8f('0x3f')]=_0x4c7e6d(this['locale'],_0xaa8f('0xf')),_0xd91b87[_0xaa8f('0x22')]=_0x5d58d1[_0xaa8f('0xc')],_0xd91b87['withText']=!0x0,_0xd91b87[_0xaa8f('0x1f')]({'attributes':{'class':'ck-comment--edit'}}),_0xd91b87[_0xaa8f('0xe')](_0xaa8f('0x16'))['to'](this[_0xaa8f('0x8')],_0xaa8f('0x37'),_0x5b959d=>!_0x5b959d),_0xd91b87[_0xaa8f('0xe')](_0xaa8f('0x10'))['to'](this[_0xaa8f('0x8')],_0xaa8f('0x4d')),_0xd91b87['on']('execute',()=>this['switchToEditMode']()),_0xd91b87;}[_0xaa8f('0x5d')](){const _0x26fb26=new _0x3e500e(this[_0xaa8f('0x5a')]);return _0x26fb26[_0xaa8f('0x3f')]=_0x4c7e6d(this['locale'],'Remove'),_0x26fb26['icon']=_0x3945a1,_0x26fb26[_0xaa8f('0x4b')]=!0x0,_0x26fb26[_0xaa8f('0x1f')]({'attributes':{'class':_0xaa8f('0x48')}}),_0x26fb26[_0xaa8f('0xe')](_0xaa8f('0x16'))['to'](this['_model'],_0xaa8f('0x37'),_0x5d6473=>!_0x5d6473),_0x26fb26[_0xaa8f('0xe')](_0xaa8f('0x10'))['to'](this[_0xaa8f('0x8')],'isRemovable'),_0x26fb26['on'](_0xaa8f('0xa'),()=>{this[_0xaa8f('0x1')](_0x4c7e6d(this[_0xaa8f('0x5a')],_0xaa8f('0x30')),this[_0xaa8f('0x15')])[_0xaa8f('0x17')](()=>{this['fire']('removeComment',this[_0xaa8f('0x8')]['id']);});}),_0x26fb26;}['_createDropdown'](){const _0x36e7ea=_0x3d341a(this[_0xaa8f('0x5a')]),_0x33a83b=_0x36e7ea[_0xaa8f('0x1d')]['children'],_0x24f46d=new _0x5e1f89(this[_0xaa8f('0x5a')]),_0x3bb4d8=(_0x41bc41,_0x320525=-0x1)=>{const _0x20bc20=new _0x5d8d4c(this['locale']);_0x20bc20[_0xaa8f('0x4')][_0xaa8f('0x42')](_0x41bc41);const _0x4b5d5c=_0x320525>-0x1?_0x320525:_0x24f46d[_0xaa8f('0x56')][_0xaa8f('0x1b')];_0x24f46d[_0xaa8f('0x56')]['add'](_0x20bc20,_0x4b5d5c),_0x36e7ea['listenTo'](_0x41bc41,_0xaa8f('0x49'),()=>{_0x36e7ea[_0xaa8f('0x16')]=[...this[_0xaa8f('0x56')]][_0xaa8f('0x40')](_0x532f29=>_0x532f29[_0xaa8f('0x16')]);}),_0x36e7ea['listenTo'](_0x41bc41,_0xaa8f('0x2a'),()=>{_0x36e7ea[_0xaa8f('0x50')]['isVisible']=[...this['items']][_0xaa8f('0x40')](_0x20232c=>_0x20232c[_0xaa8f('0x10')]);});};_0x36e7ea[_0xaa8f('0x51')]='sw',_0x36e7ea['buttonView'][_0xaa8f('0x0')]({'label':_0x4c7e6d(this[_0xaa8f('0x5a')],_0xaa8f('0x47')),'icon':_0x5d58d1['threeVerticalDots']}),_0x36e7ea[_0xaa8f('0x16')]=[...this[_0xaa8f('0x56')]][_0xaa8f('0x40')](_0x4ae9ac=>_0x4ae9ac[_0xaa8f('0x16')]),_0x36e7ea[_0xaa8f('0x50')]['isVisible']=[...this[_0xaa8f('0x56')]][_0xaa8f('0x40')](_0x187357=>_0x187357[_0xaa8f('0x10')]);for(const _0x4d28b4 of this[_0xaa8f('0x56')])_0x3bb4d8(_0x4d28b4);return _0x33a83b[_0xaa8f('0x42')](_0x24f46d),_0x36e7ea['listenTo'](this[_0xaa8f('0x56')],_0xaa8f('0x42'),(_0x2b1b38,_0x45fc66,_0x4e88a3)=>{_0x3bb4d8(_0x45fc66,_0x4e88a3);}),_0x36e7ea[_0xaa8f('0x1a')](this[_0xaa8f('0x56')],_0xaa8f('0x3d'),(_0x53e85c,_0x7ae1ad,_0xdcee3f)=>{_0x24f46d[_0xaa8f('0x56')][_0xaa8f('0x3d')](_0xdcee3f);}),_0x36e7ea;}[_0xaa8f('0x23')](_0x459644,_0x76c319){const _0x163589=_0x459644&&_0x459644[_0xaa8f('0x15')];_0x163589&&(this[_0xaa8f('0x1a')](_0x163589,_0xaa8f('0x39'),()=>this[_0xaa8f('0x54')]=_0x76c319),this['listenTo'](_0x163589,_0xaa8f('0x55'),()=>this[_0xaa8f('0x54')]=_0x76c319),this[_0xaa8f('0x1a')](_0x163589,_0xaa8f('0x12'),()=>this['actionIndicator']=null),this['listenTo'](_0x163589,_0xaa8f('0x41'),()=>this[_0xaa8f('0x54')]=null));}['_createCommentInputView'](){const _0x44c26e=super[_0xaa8f('0x46')]();return _0x44c26e[_0xaa8f('0xe')](_0xaa8f('0x11'))['to'](this),_0x44c26e;}['getExternalCommentNote'](){return _0xaa8f('0x3a')===this[_0xaa8f('0x8')]['attributes']['@external'][_0xaa8f('0x43')]?_0x4c7e6d(this['locale'],_0xaa8f('0x1c')):_0x4c7e6d(this[_0xaa8f('0x5a')],'EXTERNAL_COMMENT');}[_0xaa8f('0x44')](){return this['_model'][_0xaa8f('0x2c')]?_0xaa8f('0x3a')===this[_0xaa8f('0x8')][_0xaa8f('0xb')][_0xaa8f('0x28')]['source']?_0x4c7e6d(this[_0xaa8f('0x5a')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0xaa8f('0x8')]['creator'][_0xaa8f('0x24')]):_0x4c7e6d(this[_0xaa8f('0x5a')],_0xaa8f('0x4e'),this[_0xaa8f('0x8')]['creator'][_0xaa8f('0x24')]):null;}['render'](){super[_0xaa8f('0x27')](),this[_0xaa8f('0x23')](this['editButton'],_0xaa8f('0xd')),this[_0xaa8f('0x23')](this['removeButton'],_0xaa8f('0x3d'));}}
23
+ function _0x3f65(){const _0x3f8e8e=['ck-annotation__info-name','render','attributes','withText','creator','ck-comment__info-name','actionBar','formatDateTime','execute','visibleView','isEditMode','isVisible','isReadOnly','threeVerticalDots','796730jTrqkb','21HfAPKw','Delete\x20comment?','label','blur','_createCommentInputView','@external','isEditable','48055kpBVXT','ck-annotation__actions--hidden','panelPosition','add','_createRemoveButton','ck-annotation__content-wrapper','_config','_attachActions','getExternalCommentNote','source','5064OzzMne','editButton','switchToEditMode','cancelConfirm','buttonView','EXTERNAL_COMMENT','isEnabled','ck-comment--edit','getTemplate','userView','locale','ck-comment--','extendTemplate','author','ck-comment--remove-confirmation','div','ck-annotation__actions','1230860VFQgFj','bindTemplate','remove','ck-comment__user','set','then','ck-annotation__user','setTemplate','ck-annotation__info-time','edit','span','isExternal','element','items','387FHFSLU','ck-comment__external','actionIndicator','EXTERNAL_IMPORT_WORD_AVATAR','isSystemComment','push','removeButton','change:isRemovable','showConfirm','resolvedAt','pencil','importWord','some','placeholder','ck-comment','ck-annotation__info','dropdown','48itEDqq','authoredAt','focus','385620pjEIKo','panelView','ck-comment__actions--hidden','isRemovable','listenTo','children','ck-annotation','EXTERNAL_IMPORT_WORD_COMMENT','112820DeARxt','isConfirm','ck-annotation__main','getUserViewNotificationText','mouseenter','icon','ck-comment__actions','1NnCGeR','ck-comment__wrapper','ck-comment__info-time','mouseleave','ck-comment__info','ck-comment--remove','name','time','_model','removeComment','_createDropdown','3745203NChwkL','createCollection','bind','change:isEnabled','Edit','change:isVisible','Show\x20more\x20items','ck-comment__main','_createEditButton','Remove','Reply...','fire','EXTERNAL_AVATAR','ck-comment--info','length','addMany'];_0x3f65=function(){return _0x3f8e8e;};return _0x3f65();}function _0x4389(_0x40cc0b,_0x270eea){const _0x3f6564=_0x3f65();return _0x4389=function(_0x4389b7,_0x148b02){_0x4389b7=_0x4389b7-0x19d;let _0x312d10=_0x3f6564[_0x4389b7];return _0x312d10;},_0x4389(_0x40cc0b,_0x270eea);}const _0x4c8410=_0x4389;(function(_0x47d496,_0x422726){const _0x272848=_0x4389,_0x555837=_0x47d496();while(!![]){try{const _0x5d080d=-parseInt(_0x272848(0x203))/0x1*(-parseInt(_0x272848(0x1f4))/0x2)+parseInt(_0x272848(0x1b0))/0x3*(-parseInt(_0x272848(0x1fc))/0x4)+parseInt(_0x272848(0x1af))/0x5+parseInt(_0x272848(0x1f1))/0x6*(-parseInt(_0x272848(0x1b7))/0x7)+-parseInt(_0x272848(0x1c1))/0x8*(parseInt(_0x272848(0x1e0))/0x9)+-parseInt(_0x272848(0x1d2))/0xa+parseInt(_0x272848(0x20e))/0xb;if(_0x5d080d===_0x422726)break;else _0x555837['push'](_0x555837['shift']());}catch(_0x468cd2){_0x555837['push'](_0x555837['shift']());}}}(_0x3f65,0x46cb1));import{ButtonView as _0x128d56,createDropdown as _0x294b3d,ListView as _0x1baf69,ListItemView as _0x56f7b3}from'ckeditor5/src/ui.js';import{icons as _0x1bd0e7}from'ckeditor5/src/core.js';import{UserView as _0x347e15,ConfirmMixin as _0x426239}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4cd379 from'./basecommentview.js';import _0x5ac749 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x5d3413}from'../../../utils/common-translations.js';export default class wt extends _0x426239(_0x4cd379){constructor(_0x206d26,_0x4645e1,_0x1e5843){const _0x4341d9=_0x4389;super(_0x206d26,_0x4645e1,_0x1e5843),this[_0x4341d9(0x1d6)](_0x4341d9(0x1e2),null),this[_0x4341d9(0x1d6)](_0x4341d9(0x1ed),_0x5d3413(_0x206d26,_0x4341d9(0x218))),this[_0x4341d9(0x210)](_0x4341d9(0x1f2))['to'](_0x4645e1),this[_0x4341d9(0x210)](_0x4341d9(0x1e9))['to'](_0x4645e1),this[_0x4341d9(0x1a7)]=this[_0x4341d9(0x20f)](),this[_0x4341d9(0x1e4)]||(this[_0x4341d9(0x1c2)]=this[_0x4341d9(0x216)](),this[_0x4341d9(0x1e6)]=this[_0x4341d9(0x1bb)](),this[_0x4341d9(0x1df)]=this[_0x4341d9(0x20f)](),this[_0x4341d9(0x1df)][_0x4341d9(0x1a0)]([this[_0x4341d9(0x1c2)],this[_0x4341d9(0x1e6)]]),this[_0x4341d9(0x1f0)]=this[_0x4341d9(0x20d)](),this[_0x4341d9(0x1a7)][_0x4341d9(0x1ba)](this[_0x4341d9(0x1f0)])),this[_0x4341d9(0x1ca)]=new _0x347e15(_0x206d26,_0x4645e1[_0x4341d9(0x1ce)],this[_0x4341d9(0x1ff)]()),this[_0x4341d9(0x1ca)][_0x4341d9(0x1cd)]({'attributes':{'class':[_0x4341d9(0x1d5),_0x4341d9(0x1d8)]}}),this[_0x4341d9(0x1f8)](_0x4645e1,_0x4341d9(0x1e7),()=>this[_0x4341d9(0x1c4)]()),this[_0x4341d9(0x1d9)](this[_0x4341d9(0x1c9)]());}[_0x4c8410(0x1c9)](){const _0x50c189=_0x4c8410,_0x4ab52f=this[_0x50c189(0x1d3)],_0x26fe20=[{'tag':_0x50c189(0x1d0),'attributes':{'class':[_0x50c189(0x207),_0x50c189(0x1ef)]},'children':[{'tag':_0x50c189(0x1dc),'children':[{'text':this[_0x50c189(0x1ca)][_0x50c189(0x209)]}],'attributes':{'class':[_0x50c189(0x1a6),_0x50c189(0x1a1)]}},{'tag':_0x50c189(0x20a),'attributes':{'datetime':_0x4ab52f['to'](_0x50c189(0x1f2)),'class':[_0x50c189(0x205),_0x50c189(0x1da)]},'children':[{'text':_0x4ab52f['to'](_0x50c189(0x1f2),_0x39d095=>this[_0x50c189(0x1bd)][_0x50c189(0x1a8)](_0x39d095))}]}]},{'tag':_0x50c189(0x1d0),'attributes':{'class':[_0x50c189(0x202),_0x50c189(0x1d1),_0x4ab52f['if'](_0x50c189(0x1ab),_0x50c189(0x1f6)),_0x4ab52f['if'](_0x50c189(0x1ab),_0x50c189(0x1b8))]},'children':this[_0x50c189(0x1a7)]},{'tag':_0x50c189(0x1d0),'attributes':{'class':[_0x50c189(0x1bc)]},'children':this[_0x50c189(0x1aa)]}];return this[_0x50c189(0x20b)][_0x50c189(0x1dd)]&&_0x26fe20[_0x50c189(0x1e5)]({'tag':_0x50c189(0x1d0),'attributes':{'class':[_0x50c189(0x1e1)]},'children':[{'text':this[_0x50c189(0x1bf)]()}]}),{'tag':'li','attributes':{'class':[_0x50c189(0x204),_0x4ab52f['if'](_0x50c189(0x1fd),_0x50c189(0x1cf))],'tabindex':-0x1},'children':[{'tag':_0x50c189(0x1d0),'attributes':{'class':[_0x50c189(0x1ee),_0x50c189(0x1fa),_0x4ab52f['if'](_0x50c189(0x1ab),_0x50c189(0x1c8)),_0x4ab52f['if'](_0x50c189(0x1e4),_0x50c189(0x19e)),_0x4ab52f['to'](_0x50c189(0x1e2),_0x449cc1=>_0x449cc1?_0x50c189(0x1cc)+_0x449cc1:'')],'data-author-id':this[_0x50c189(0x20b)][_0x50c189(0x1ce)]['id'],'data-comment-id':this[_0x50c189(0x20b)]['id']},'children':[this[_0x50c189(0x1ca)],{'tag':_0x50c189(0x1d0),'attributes':{'class':[_0x50c189(0x215),_0x50c189(0x1fe)]},'children':_0x26fe20}]}]};}[_0x4c8410(0x216)](){const _0x1b668a=_0x4c8410,_0x20789c=new _0x128d56(this[_0x1b668a(0x1cb)]);return _0x20789c[_0x1b668a(0x1b2)]=_0x5d3413(this[_0x1b668a(0x1cb)],_0x1b668a(0x212)),_0x20789c[_0x1b668a(0x201)]=_0x1bd0e7[_0x1b668a(0x1ea)],_0x20789c[_0x1b668a(0x1a4)]=!0x0,_0x20789c[_0x1b668a(0x1cd)]({'attributes':{'class':_0x1b668a(0x1c8)}}),_0x20789c[_0x1b668a(0x210)](_0x1b668a(0x1c7))['to'](this[_0x1b668a(0x20b)],_0x1b668a(0x1ad),_0x298d3a=>!_0x298d3a),_0x20789c[_0x1b668a(0x210)](_0x1b668a(0x1ac))['to'](this[_0x1b668a(0x20b)],_0x1b668a(0x1b6)),_0x20789c['on'](_0x1b668a(0x1a9),()=>this[_0x1b668a(0x1c3)]()),_0x20789c;}[_0x4c8410(0x1bb)](){const _0x12e80e=_0x4c8410,_0x19cd56=new _0x128d56(this[_0x12e80e(0x1cb)]);return _0x19cd56[_0x12e80e(0x1b2)]=_0x5d3413(this[_0x12e80e(0x1cb)],_0x12e80e(0x217)),_0x19cd56[_0x12e80e(0x201)]=_0x5ac749,_0x19cd56[_0x12e80e(0x1a4)]=!0x0,_0x19cd56[_0x12e80e(0x1cd)]({'attributes':{'class':_0x12e80e(0x208)}}),_0x19cd56[_0x12e80e(0x210)](_0x12e80e(0x1c7))['to'](this[_0x12e80e(0x20b)],_0x12e80e(0x1ad),_0x39ec66=>!_0x39ec66),_0x19cd56[_0x12e80e(0x210)](_0x12e80e(0x1ac))['to'](this[_0x12e80e(0x20b)],_0x12e80e(0x1f7)),_0x19cd56['on'](_0x12e80e(0x1a9),()=>{const _0xd0f545=_0x12e80e;this[_0xd0f545(0x1e8)](_0x5d3413(this[_0xd0f545(0x1cb)],_0xd0f545(0x1b1)),this[_0xd0f545(0x1de)])[_0xd0f545(0x1d7)](()=>{const _0xecb618=_0xd0f545;this[_0xecb618(0x219)](_0xecb618(0x20c),this[_0xecb618(0x20b)]['id']);});}),_0x19cd56;}[_0x4c8410(0x20d)](){const _0x584d49=_0x4c8410,_0x315766=_0x294b3d(this[_0x584d49(0x1cb)]),_0x342495=_0x315766[_0x584d49(0x1f5)][_0x584d49(0x1f9)],_0x4ba353=new _0x1baf69(this[_0x584d49(0x1cb)]),_0x5af5ec=(_0x4b191f,_0x36b3d0=-0x1)=>{const _0x66a2d1=_0x584d49,_0x11c0f0=new _0x56f7b3(this[_0x66a2d1(0x1cb)]);_0x11c0f0[_0x66a2d1(0x1f9)][_0x66a2d1(0x1ba)](_0x4b191f);const _0x759003=_0x36b3d0>-0x1?_0x36b3d0:_0x4ba353[_0x66a2d1(0x1df)][_0x66a2d1(0x19f)];_0x4ba353[_0x66a2d1(0x1df)][_0x66a2d1(0x1ba)](_0x11c0f0,_0x759003),_0x315766[_0x66a2d1(0x1f8)](_0x4b191f,_0x66a2d1(0x211),()=>{const _0x302629=_0x66a2d1;_0x315766[_0x302629(0x1c7)]=[...this[_0x302629(0x1df)]][_0x302629(0x1ec)](_0x213a91=>_0x213a91[_0x302629(0x1c7)]);}),_0x315766[_0x66a2d1(0x1f8)](_0x4b191f,_0x66a2d1(0x213),()=>{const _0x50f078=_0x66a2d1;_0x315766[_0x50f078(0x1c5)][_0x50f078(0x1ac)]=[...this[_0x50f078(0x1df)]][_0x50f078(0x1ec)](_0x1980fa=>_0x1980fa[_0x50f078(0x1ac)]);});};_0x315766[_0x584d49(0x1b9)]='sw',_0x315766[_0x584d49(0x1c5)][_0x584d49(0x1d6)]({'label':_0x5d3413(this[_0x584d49(0x1cb)],_0x584d49(0x214)),'icon':_0x1bd0e7[_0x584d49(0x1ae)]}),_0x315766[_0x584d49(0x1c7)]=[...this[_0x584d49(0x1df)]][_0x584d49(0x1ec)](_0x4f77f3=>_0x4f77f3[_0x584d49(0x1c7)]),_0x315766[_0x584d49(0x1c5)][_0x584d49(0x1ac)]=[...this[_0x584d49(0x1df)]][_0x584d49(0x1ec)](_0x5c4ab6=>_0x5c4ab6[_0x584d49(0x1ac)]);for(const _0x1eea03 of this[_0x584d49(0x1df)])_0x5af5ec(_0x1eea03);return _0x342495[_0x584d49(0x1ba)](_0x4ba353),_0x315766[_0x584d49(0x1f8)](this[_0x584d49(0x1df)],_0x584d49(0x1ba),(_0x31f6ab,_0x14ea47,_0x47aee3)=>{_0x5af5ec(_0x14ea47,_0x47aee3);}),_0x315766[_0x584d49(0x1f8)](this[_0x584d49(0x1df)],_0x584d49(0x1d4),(_0x47246f,_0x81cc33,_0x3db32b)=>{const _0x1f34ec=_0x584d49;_0x4ba353[_0x1f34ec(0x1df)][_0x1f34ec(0x1d4)](_0x3db32b);}),_0x315766;}[_0x4c8410(0x1be)](_0x52cbb2,_0x21d341){const _0x336001=_0x4c8410,_0x2ef9bd=_0x52cbb2&&_0x52cbb2[_0x336001(0x1de)];_0x2ef9bd&&(this[_0x336001(0x1f8)](_0x2ef9bd,_0x336001(0x200),()=>this[_0x336001(0x1e2)]=_0x21d341),this[_0x336001(0x1f8)](_0x2ef9bd,_0x336001(0x1f3),()=>this[_0x336001(0x1e2)]=_0x21d341),this[_0x336001(0x1f8)](_0x2ef9bd,_0x336001(0x206),()=>this[_0x336001(0x1e2)]=null),this[_0x336001(0x1f8)](_0x2ef9bd,_0x336001(0x1b3),()=>this[_0x336001(0x1e2)]=null));}[_0x4c8410(0x1b4)](){const _0x2d2731=_0x4c8410,_0x4e0808=super[_0x2d2731(0x1b4)]();return _0x4e0808[_0x2d2731(0x210)](_0x2d2731(0x1ed))['to'](this),_0x4e0808;}[_0x4c8410(0x1bf)](){const _0x4bcc73=_0x4c8410;return _0x4bcc73(0x1eb)===this[_0x4bcc73(0x20b)][_0x4bcc73(0x1a3)][_0x4bcc73(0x1b5)][_0x4bcc73(0x1c0)]?_0x5d3413(this[_0x4bcc73(0x1cb)],_0x4bcc73(0x1fb)):_0x5d3413(this[_0x4bcc73(0x1cb)],_0x4bcc73(0x1c6));}[_0x4c8410(0x1ff)](){const _0x567ed2=_0x4c8410;return this[_0x567ed2(0x20b)][_0x567ed2(0x1dd)]?_0x567ed2(0x1eb)===this[_0x567ed2(0x20b)][_0x567ed2(0x1a3)][_0x567ed2(0x1b5)][_0x567ed2(0x1c0)]?_0x5d3413(this[_0x567ed2(0x1cb)],_0x567ed2(0x1e3),this[_0x567ed2(0x20b)][_0x567ed2(0x1a5)][_0x567ed2(0x209)]):_0x5d3413(this[_0x567ed2(0x1cb)],_0x567ed2(0x19d),this[_0x567ed2(0x20b)][_0x567ed2(0x1a5)][_0x567ed2(0x209)]):null;}[_0x4c8410(0x1a2)](){const _0xea9700=_0x4c8410;super[_0xea9700(0x1a2)](),this[_0xea9700(0x1be)](this[_0xea9700(0x1c2)],_0xea9700(0x1db)),this[_0xea9700(0x1be)](this[_0xea9700(0x1e6)],_0xea9700(0x1d4));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x394e=['Comments','requires'];(function(_0x54894a,_0x394e38){var _0xc4008a=function(_0x555e8e){while(--_0x555e8e){_0x54894a['push'](_0x54894a['shift']());}};_0xc4008a(++_0x394e38);}(_0x394e,0x1c7));var _0xc400=function(_0x54894a,_0x394e38){_0x54894a=_0x54894a-0x0;var _0xc4008a=_0x394e[_0x54894a];return _0xc4008a;};import{Plugin as _0x6249ce}from'ckeditor5/src/core.js';import _0x4bf83a from'./comments/commentsrepository.js';import _0x495279 from'./comments/commentsediting.js';import _0x33c622 from'./comments/commentsui.js';import _0x414ee3 from'./commentsonly.js';import _0x23f524 from'./annotations/widesidebar.js';import _0x52fe33 from'./annotations/narrowsidebar.js';import _0x55b667 from'./annotations/inlineannotations.js';import _0x4b8fe7 from'./comments/commentsarchiveui.js';import _0x16b7db from'./comments/commentsarchive.js';export default class f extends _0x6249ce{static get[_0xc400('0x0')](){return[_0x4bf83a,_0x495279,_0x33c622,_0x16b7db,_0x4b8fe7,_0x414ee3,_0x23f524,_0x52fe33,_0x55b667];}static get['pluginName'](){return _0xc400('0x1');}}
23
+ function _0x3fc3(_0x2b509b,_0x333046){var _0x1141c6=_0x1141();return _0x3fc3=function(_0x3fc3a8,_0xb1e9de){_0x3fc3a8=_0x3fc3a8-0x164;var _0x12040e=_0x1141c6[_0x3fc3a8];return _0x12040e;},_0x3fc3(_0x2b509b,_0x333046);}var _0x2e3124=_0x3fc3;(function(_0x27f642,_0x55b097){var _0x428e28=_0x3fc3,_0x2c64eb=_0x27f642();while(!![]){try{var _0x423d41=parseInt(_0x428e28(0x16d))/0x1*(parseInt(_0x428e28(0x167))/0x2)+parseInt(_0x428e28(0x169))/0x3+-parseInt(_0x428e28(0x170))/0x4*(-parseInt(_0x428e28(0x164))/0x5)+parseInt(_0x428e28(0x16e))/0x6+-parseInt(_0x428e28(0x16a))/0x7+parseInt(_0x428e28(0x16c))/0x8*(parseInt(_0x428e28(0x16b))/0x9)+-parseInt(_0x428e28(0x165))/0xa;if(_0x423d41===_0x55b097)break;else _0x2c64eb['push'](_0x2c64eb['shift']());}catch(_0x3de851){_0x2c64eb['push'](_0x2c64eb['shift']());}}}(_0x1141,0x650df));import{Plugin as _0x39d617}from'ckeditor5/src/core.js';import _0x13bb15 from'./comments/commentsrepository.js';import _0xe073a9 from'./comments/commentsediting.js';import _0x221c6c from'./comments/commentsui.js';import _0x17ee80 from'./commentsonly.js';import _0x4bf21f from'./annotations/widesidebar.js';import _0x1fcb34 from'./annotations/narrowsidebar.js';import _0x1e5d22 from'./annotations/inlineannotations.js';function _0x1141(){var _0x552a38=['5162YPXDcP','394842koSwVT','Comments','148PEkdjZ','100395WPLSuW','16131440xvkexV','requires','192oWOSqz','pluginName','1053843UWDcUE','1303652isYYCV','295272nrnIKT','136mQyyRG'];_0x1141=function(){return _0x552a38;};return _0x1141();}import _0x418366 from'./comments/commentsarchiveui.js';import _0x2f15f7 from'./comments/commentsarchive.js';export default class f extends _0x39d617{static get[_0x2e3124(0x166)](){return[_0x13bb15,_0xe073a9,_0x221c6c,_0x2f15f7,_0x418366,_0x17ee80,_0x4bf21f,_0x1fcb34,_0x1e5d22];}static get[_0x2e3124(0x168)](){var _0x3958bc=_0x2e3124;return _0x3958bc(0x16f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x579c=['commentsOnlyMode','affectsData','commands','isEnabled','view','editing','stop','get','change:isEnabled','requires','stopListening','config','plugins','forceDisabled','_enableCommentsOnlyMode','DragDrop','has','highest','delete','pluginName','clipboardInput','afterInit','_disableCommentsOnlyMode','cut','listenTo','editor','addCommentThread','document'];(function(_0x847b17,_0x579ca2){const _0x307274=function(_0x49e481){while(--_0x49e481){_0x847b17['push'](_0x847b17['shift']());}};_0x307274(++_0x579ca2);}(_0x579c,0x86));const _0x3072=function(_0x847b17,_0x579ca2){_0x847b17=_0x847b17-0x0;let _0x307274=_0x579c[_0x847b17];return _0x307274;};import{Plugin as _0x196245}from'ckeditor5/src/core.js';import _0x4022e2 from'./comments/commentsediting.js';export default class e extends _0x196245{static get[_0x3072('0x19')](){return'CommentsOnly';}static get[_0x3072('0xf')](){return[_0x4022e2];}constructor(_0x5f567d){super(_0x5f567d),this['set']('isEnabled',!0x1),this['on'](_0x3072('0xe'),(_0x317e0e,_0x5eb909,_0x597655)=>{_0x597655?this[_0x3072('0x14')]():this[_0x3072('0x0')]();});}[_0x3072('0x1b')](){!this[_0x3072('0x9')]&&this[_0x3072('0x3')][_0x3072('0x11')][_0x3072('0xd')]('commentsOnly')&&(this[_0x3072('0x9')]=!0x0);}[_0x3072('0x14')](){for(const [_0x3eed31,_0x554292]of this[_0x3072('0x3')][_0x3072('0x8')])_0x554292[_0x3072('0x7')]&&_0x3072('0x4')!==_0x3eed31&&_0x554292['forceDisabled'](_0x3072('0x6'));this[_0x3072('0x3')][_0x3072('0x12')][_0x3072('0x16')](_0x3072('0x15'))&&this[_0x3072('0x3')][_0x3072('0x12')][_0x3072('0xd')](_0x3072('0x15'))[_0x3072('0x13')](_0x3072('0x6'));const _0x520b9e=this[_0x3072('0x3')][_0x3072('0xb')][_0x3072('0xa')][_0x3072('0x5')];this[_0x3072('0x2')](_0x520b9e,_0x3072('0x1'),_0x2b3827=>_0x2b3827['stop'](),{'priority':'highest'}),this[_0x3072('0x2')](_0x520b9e,_0x3072('0x1a'),_0x31e666=>_0x31e666[_0x3072('0xc')](),{'priority':_0x3072('0x17')}),this[_0x3072('0x2')](_0x520b9e,_0x3072('0x18'),_0x1afbb3=>_0x1afbb3[_0x3072('0xc')](),{'priority':_0x3072('0x17')});}['_disableCommentsOnlyMode'](){for(const [_0x3663c5,_0x32c07c]of this[_0x3072('0x3')][_0x3072('0x8')])_0x32c07c[_0x3072('0x7')]&&_0x3072('0x4')!==_0x3663c5&&_0x32c07c['clearForceDisabled'](_0x3072('0x6'));this[_0x3072('0x10')](this[_0x3072('0x3')]['editing'][_0x3072('0xa')]['document']);}}
23
+ const _0x2305a7=_0x2be3;(function(_0x5d2325,_0x51ac0d){const _0x5ae4b1=_0x2be3,_0x5d3ad4=_0x5d2325();while(!![]){try{const _0x58aefc=-parseInt(_0x5ae4b1(0xa3))/0x1+-parseInt(_0x5ae4b1(0xa6))/0x2*(parseInt(_0x5ae4b1(0x9f))/0x3)+-parseInt(_0x5ae4b1(0x8c))/0x4+-parseInt(_0x5ae4b1(0x8e))/0x5+-parseInt(_0x5ae4b1(0x93))/0x6*(-parseInt(_0x5ae4b1(0x99))/0x7)+parseInt(_0x5ae4b1(0xaa))/0x8*(-parseInt(_0x5ae4b1(0xab))/0x9)+-parseInt(_0x5ae4b1(0xb0))/0xa*(-parseInt(_0x5ae4b1(0xa2))/0xb);if(_0x58aefc===_0x51ac0d)break;else _0x5d3ad4['push'](_0x5d3ad4['shift']());}catch(_0xbec9c6){_0x5d3ad4['push'](_0x5d3ad4['shift']());}}}(_0x44d7,0x40cbb));function _0x2be3(_0x4227e2,_0x1aa3bc){const _0x44d7d2=_0x44d7();return _0x2be3=function(_0x2be3e4,_0x234277){_0x2be3e4=_0x2be3e4-0x86;let _0x265eee=_0x44d7d2[_0x2be3e4];return _0x265eee;},_0x2be3(_0x4227e2,_0x1aa3bc);}import{Plugin as _0x39f12c}from'ckeditor5/src/core.js';import _0xc29be4 from'./comments/commentsediting.js';export default class e extends _0x39f12c{static get[_0x2305a7(0x94)](){const _0x4e7403=_0x2305a7;return _0x4e7403(0x89);}static get[_0x2305a7(0xa9)](){return[_0xc29be4];}constructor(_0x5ab446){const _0x5d568f=_0x2305a7;super(_0x5ab446),this[_0x5d568f(0x9b)](_0x5d568f(0x91),!0x1),this['on'](_0x5d568f(0x97),(_0xe520f3,_0x3147ec,_0x16e52d)=>{const _0x45364b=_0x5d568f;_0x16e52d?this[_0x45364b(0xa1)]():this[_0x45364b(0x8d)]();});}[_0x2305a7(0x9a)](){const _0x24611f=_0x2305a7;!this[_0x24611f(0x91)]&&this[_0x24611f(0x9c)][_0x24611f(0xac)][_0x24611f(0x8b)](_0x24611f(0x87))&&(this[_0x24611f(0x91)]=!0x0);}[_0x2305a7(0xa1)](){const _0x13994e=_0x2305a7;for(const [_0x1b00c5,_0x578e29]of this[_0x13994e(0x9c)][_0x13994e(0xa5)])_0x578e29[_0x13994e(0xae)]&&_0x13994e(0xa7)!==_0x1b00c5&&_0x578e29[_0x13994e(0x9e)](_0x13994e(0xaf));this[_0x13994e(0x9c)][_0x13994e(0x9d)][_0x13994e(0xa4)](_0x13994e(0xad))&&this[_0x13994e(0x9c)][_0x13994e(0x9d)][_0x13994e(0x8b)](_0x13994e(0xad))[_0x13994e(0x9e)](_0x13994e(0xaf));const _0x58fb01=this[_0x13994e(0x9c)][_0x13994e(0x92)][_0x13994e(0x96)][_0x13994e(0x86)];this[_0x13994e(0x95)](_0x58fb01,_0x13994e(0xa8),_0x51cbc3=>_0x51cbc3[_0x13994e(0x8f)](),{'priority':_0x13994e(0x90)}),this[_0x13994e(0x95)](_0x58fb01,_0x13994e(0x98),_0x2f81f1=>_0x2f81f1[_0x13994e(0x8f)](),{'priority':_0x13994e(0x90)}),this[_0x13994e(0x95)](_0x58fb01,_0x13994e(0xa0),_0x54c3a7=>_0x54c3a7[_0x13994e(0x8f)](),{'priority':_0x13994e(0x90)});}[_0x2305a7(0x8d)](){const _0x5e624b=_0x2305a7;for(const [_0x15fc20,_0x266158]of this[_0x5e624b(0x9c)][_0x5e624b(0xa5)])_0x266158[_0x5e624b(0xae)]&&_0x5e624b(0xa7)!==_0x15fc20&&_0x266158[_0x5e624b(0x88)](_0x5e624b(0xaf));this[_0x5e624b(0x8a)](this[_0x5e624b(0x9c)][_0x5e624b(0x92)][_0x5e624b(0x96)][_0x5e624b(0x86)]);}}function _0x44d7(){const _0xce6888=['config','DragDrop','affectsData','commentsOnlyMode','170lxDqWL','document','commentsOnly','clearForceDisabled','CommentsOnly','stopListening','get','1328816UmmTBs','_disableCommentsOnlyMode','897030KqitFI','stop','highest','isEnabled','editing','12QlQyal','pluginName','listenTo','view','change:isEnabled','clipboardInput','851158ySLepf','afterInit','set','editor','plugins','forceDisabled','13305ycyHzk','delete','_enableCommentsOnlyMode','1016059BNKERq','180047pMfGBe','has','commands','232zwPmKb','addCommentThread','cut','requires','184zsyuwB','133803yKkBjs'];_0x44d7=function(){return _0xce6888;};return _0x44d7();}
package/src/config.d.ts CHANGED
@@ -6,7 +6,8 @@
6
6
  * @module comments/config
7
7
  * @publicApi
8
8
  */
9
- import type { EditorConfig } from 'ckeditor5/src/core.js';
9
+ import type { ClipboardMarkerRestrictionsPreset } from 'ckeditor5/src/clipboard.js';
10
+ import type { EditorConfig, PartialBy } from 'ckeditor5/src/core.js';
10
11
  import type CommentView from './comments/ui/view/commentview.js';
11
12
  import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview.js';
12
13
  /**
@@ -23,6 +24,20 @@ import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview
23
24
  * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
24
25
  */
25
26
  export interface CommentsConfig {
27
+ /**
28
+ * Specifies whether comment markers should be preserved on copy-paste and cut-paste actions.
29
+ *
30
+ * Following values are available:
31
+ *
32
+ * * `'default'` - the markers will be preserved on cut-paste and drag and drop actions only.
33
+ * * `'always'` - the markers will be preserved on all clipboard actions (cut, copy, drag and drop).
34
+ * * `'never'` - the markers will be ignored by clipboard.
35
+ *
36
+ * If empty array is set, the markers will not be preserved on any of these actions.
37
+ *
38
+ * Defaults to `'default'`.
39
+ */
40
+ copyMarkers?: ClipboardMarkerRestrictionsPreset;
26
41
  /**
27
42
  * The total number of comments shown when the thread view is collapsed.
28
43
  *
@@ -167,7 +182,7 @@ export interface SidebarConfig {
167
182
  */
168
183
  preventScrollOutOfView?: boolean;
169
184
  }
170
- export type CommentThreadConfig = Required<Omit<CommentsConfig, 'CommentThreadView'>>;
185
+ export type CommentThreadConfig = PartialBy<Required<Omit<CommentsConfig, 'CommentThreadView'>>, 'copyMarkers'>;
171
186
  export type CommentViewConfig = Required<Pick<CommentsConfig, 'maxCommentCharsWhenCollapsed' | 'formatDateTime' | 'editorConfig'>> & {
172
187
  /**
173
188
  * Defines whether the comment is created by the system.
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export{default as Comments}from'./comments.js';export{default as CommentsOnly}from'./commentsonly.js';export{default as CommentsUI}from'./comments/commentsui.js';export{default as CommentsRepository,CommentThread,Comment}from'./comments/commentsrepository.js';export{default as CommentThreadController}from'./comments/ui/commentthreadcontroller.js';export{default as Annotations}from'./annotations/annotations.js';export{default as AnnotationsUIs}from'./annotations/annotationsuis.js';export{default as EditorAnnotations}from'./annotations/editorannotations.js';export{default as InlineAnnotations}from'./annotations/inlineannotations.js';export{default as WideSidebar}from'./annotations/widesidebar.js';export{default as NarrowSidebar}from'./annotations/narrowsidebar.js';export{default as AnnotationView}from'./annotations/view/annotationview.js';export{default as BaseCommentView}from'./comments/ui/view/basecommentview.js';export{default as BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview.js';export{default as CommentsListView}from'./comments/ui/view/commentslistview.js';export{default as CommentView}from'./comments/ui/view/commentview.js';export{default as CommentThreadInputView}from'./comments/ui/view/commentthreadinputview.js';import'./augmentation.js';
23
+ (function(_0x2efc67,_0x22fb8f){var _0x3f3de2=_0x2650,_0x2983c4=_0x2efc67();while(!![]){try{var _0x5da39d=-parseInt(_0x3f3de2(0x190))/0x1*(parseInt(_0x3f3de2(0x192))/0x2)+-parseInt(_0x3f3de2(0x193))/0x3+-parseInt(_0x3f3de2(0x197))/0x4*(-parseInt(_0x3f3de2(0x18f))/0x5)+-parseInt(_0x3f3de2(0x194))/0x6+-parseInt(_0x3f3de2(0x191))/0x7*(-parseInt(_0x3f3de2(0x195))/0x8)+parseInt(_0x3f3de2(0x18e))/0x9+-parseInt(_0x3f3de2(0x196))/0xa*(-parseInt(_0x3f3de2(0x198))/0xb);if(_0x5da39d===_0x22fb8f)break;else _0x2983c4['push'](_0x2983c4['shift']());}catch(_0x20935a){_0x2983c4['push'](_0x2983c4['shift']());}}}(_0x5190,0x2dc52));export{default as Comments}from'./comments.js';export{default as CommentsOnly}from'./commentsonly.js';export{default as CommentsUI}from'./comments/commentsui.js';export{default as CommentsRepository,CommentThread,Comment}from'./comments/commentsrepository.js';export{default as CommentThreadController}from'./comments/ui/commentthreadcontroller.js';export{default as Annotations}from'./annotations/annotations.js';function _0x5190(){var _0x23fd1f=['15356caXIlU','2336895ghvVUO','1865qPnSxF','1400ZeHFvX','7aHhAQg','380AvQEUG','1105326fXJrrR','1623408XPTdRs','2685032jWTYWo','1050pShNBn','3760GjuSQq'];_0x5190=function(){return _0x23fd1f;};return _0x5190();}export{default as AnnotationsUIs}from'./annotations/annotationsuis.js';export{default as EditorAnnotations}from'./annotations/editorannotations.js';export{default as InlineAnnotations}from'./annotations/inlineannotations.js';function _0x2650(_0xafaf18,_0xa1f6d8){var _0x5190ab=_0x5190();return _0x2650=function(_0x265096,_0x1dd022){_0x265096=_0x265096-0x18e;var _0x1c43c9=_0x5190ab[_0x265096];return _0x1c43c9;},_0x2650(_0xafaf18,_0xa1f6d8);}export{default as WideSidebar}from'./annotations/widesidebar.js';export{default as NarrowSidebar}from'./annotations/narrowsidebar.js';export{default as AnnotationView}from'./annotations/view/annotationview.js';export{default as BaseCommentView}from'./comments/ui/view/basecommentview.js';export{default as BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview.js';export{default as CommentsListView}from'./comments/ui/view/commentslistview.js';export{default as CommentView}from'./comments/ui/view/commentview.js';export{default as CommentThreadInputView}from'./comments/ui/view/commentthreadinputview.js';import'./augmentation.js';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x242276,_0x1e788a,_0xaab6ea){const t=_0x242276['t'];switch(_0x1e788a){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'},_0xaab6ea);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'},_0xaab6ea);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'},_0xaab6ea);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'},_0xaab6ea);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(_0x35982c,_0x332785,_0x50a867){const t=_0x35982c['t'];switch(_0x332785){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'},_0x50a867);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'},_0x50a867);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'},_0x50a867);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'},_0x50a867);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 _0x5d5e=['attributes','observe','type','childList','characterData','class','disconnect','attributeName','cancel'];(function(_0x1b2c15,_0x5d5eae){const _0x2d2268=function(_0xc85af7){while(--_0xc85af7){_0x1b2c15['push'](_0x1b2c15['shift']());}};_0x2d2268(++_0x5d5eae);}(_0x5d5e,0xd6));const _0x2d22=function(_0x1b2c15,_0x5d5eae){_0x1b2c15=_0x1b2c15-0x0;let _0x2d2268=_0x5d5e[_0x1b2c15];return _0x2d2268;};import{throttle as _0x46fd42}from'lodash-es';export default function Dt(_0x12bb49){const _0x597420=_0x46fd42(_0x12bb49,0x1e),_0x2a6578=new MutationObserver(_0x10fbbf=>{for(const _0x1506fd of _0x10fbbf)(_0x2d22('0x2')==_0x1506fd['type']&&_0x2d22('0x7')==_0x1506fd[_0x2d22('0x0')]||_0x2d22('0x5')==_0x1506fd[_0x2d22('0x4')]||_0x2d22('0x6')==_0x1506fd[_0x2d22('0x4')])&&_0x597420();});return{'attach'(_0x5d22e6){_0x2a6578[_0x2d22('0x3')](_0x5d22e6,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x2a6578[_0x2d22('0x8')](),_0x597420[_0x2d22('0x1')]();}};}
23
+ (function(_0x5e8a7c,_0x939ed9){const _0x249da1=_0x43b3,_0x4352f6=_0x5e8a7c();while(!![]){try{const _0x386624=parseInt(_0x249da1(0x16b))/0x1*(-parseInt(_0x249da1(0x169))/0x2)+-parseInt(_0x249da1(0x159))/0x3*(-parseInt(_0x249da1(0x15b))/0x4)+parseInt(_0x249da1(0x166))/0x5+parseInt(_0x249da1(0x161))/0x6*(parseInt(_0x249da1(0x164))/0x7)+-parseInt(_0x249da1(0x15f))/0x8*(parseInt(_0x249da1(0x163))/0x9)+-parseInt(_0x249da1(0x167))/0xa+parseInt(_0x249da1(0x165))/0xb;if(_0x386624===_0x939ed9)break;else _0x4352f6['push'](_0x4352f6['shift']());}catch(_0x39df5b){_0x4352f6['push'](_0x4352f6['shift']());}}}(_0x1362,0x72b45));function _0x43b3(_0xae44cc,_0x1d31c1){const _0x1362ce=_0x1362();return _0x43b3=function(_0x43b364,_0x3c3196){_0x43b364=_0x43b364-0x159;let _0x3ea19f=_0x1362ce[_0x43b364];return _0x3ea19f;},_0x43b3(_0xae44cc,_0x1d31c1);}function _0x1362(){const _0x306c82=['8607269uDtgXg','3055375qlkurS','4840370QzQfAG','characterData','178ozlOrp','attributeName','8471YEftYl','cancel','70971XiaCEY','attributes','12tyeEIN','observe','disconnect','childList','208ZBZneg','type','6YfRGoc','class','90747cCRXbf','3537926xWukiP'];_0x1362=function(){return _0x306c82;};return _0x1362();}import{throttle as _0x2f436e}from'lodash-es';export default function Dt(_0x3804ee){const _0x2ee365=_0x2f436e(_0x3804ee,0x1e),_0x4c9d6c=new MutationObserver(_0x1fdacd=>{const _0x30a64f=_0x43b3;for(const _0xb06ef3 of _0x1fdacd)(_0x30a64f(0x15a)==_0xb06ef3[_0x30a64f(0x160)]&&_0x30a64f(0x162)==_0xb06ef3[_0x30a64f(0x16a)]||_0x30a64f(0x15e)==_0xb06ef3[_0x30a64f(0x160)]||_0x30a64f(0x168)==_0xb06ef3[_0x30a64f(0x160)])&&_0x2ee365();});return{'attach'(_0x3dd8f5){const _0x166503=_0x43b3;_0x4c9d6c[_0x166503(0x15c)](_0x3dd8f5,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){const _0x1a6c47=_0x43b3;_0x4c9d6c[_0x1a6c47(0x15d)](),_0x2ee365[_0x1a6c47(0x16c)]();}};}
@@ -38,6 +38,10 @@
38
38
  border-radius: var(--ck-border-radius);
39
39
  font-size: var(--ck-annotation-button-size);
40
40
  }
41
+
42
+ & .ck-user {
43
+ font-size: 0.85em;
44
+ }
41
45
  }
42
46
 
43
47
  .ck .ck-annotation__main {
@@ -155,6 +155,10 @@
155
155
  border-radius: var(--ck-border-radius);
156
156
  }
157
157
 
158
+ .ck .ck-thread__user {
159
+ font-size: 0.85em;
160
+ }
161
+
158
162
  .ck .ck-thread__input {
159
163
  /* #1829. Firefox is wrongly rendering flex container width 100% with overflowed (non-spaced) text. */
160
164
  width: calc( 100% - var(--ck-user-avatar-size) );