@ckeditor/ckeditor5-comments 41.1.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 (50) 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
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x554a=['ck-thread--unlinked','Delete\x20comment\x20thread?','high','containerElement','isSystemComment','check','actionIndicator','commentThreadInputView','getTemplate','add','commentsListView','ck-thread--','remove','querySelector','fire','resolveButton','.ck-thread__container','ck-thread__container','_model','isActive','then','isResolvable','change:isActive','_boundFirstCommentView','render','extendTemplate','isVisible','commentViews','div','element','label','showConfirm','icon','isEnabled','set','cancelConfirm','ck-thread--remove-confirmation','bindTemplate','Write\x20a\x20comment...','commentThreadChildren','locale','createCollection','isReadOnly','addMany','change:isReadOnly','has','_bindFirstCommentView','get','_createResolveButton','actionBar','isConfirm','change:archivedAt','_cancelAllConfirms','execute','ck-thread','isResolved','Resolve','ck-comment--resolve','removeCommentThread','bind','commentThreadHeaderView'];(function(_0x463119,_0x554ad2){const _0x3ed666=function(_0x450dd8){while(--_0x450dd8){_0x463119['push'](_0x463119['shift']());}};_0x3ed666(++_0x554ad2);}(_0x554a,0x18b));const _0x3ed6=function(_0x463119,_0x554ad2){_0x463119=_0x463119-0x0;let _0x3ed666=_0x554a[_0x463119];return _0x3ed666;};import{ConfirmMixin as _0x3177fb}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x58b2bb}from'ckeditor5/src/ui.js';import{icons as _0x2377a}from'ckeditor5/src/core.js';import _0x50fcfa from'./basecommentthreadview.js';import{getTranslation as _0x1de9d5}from'../../../utils/common-translations.js';export default class ft extends _0x3177fb(_0x50fcfa){constructor(_0x52c589,_0x13d3ae,_0x5ad519,_0x55bb3d){super(_0x52c589,_0x13d3ae,_0x5ad519,_0x55bb3d),this[_0x3ed6('0xa')]=this[_0x3ed6('0xc')](),this['commentThreadChildren'][_0x3ed6('0xe')]([this['commentsListView'],this[_0x3ed6('0x27')]]),this[_0x3ed6('0x32')]['archivedAt']&&this[_0x3ed6('0xa')][_0x3ed6('0x29')](this[_0x3ed6('0x1f')],0x0),this['_model']['on'](_0x3ed6('0x16'),(_0x4fca9e,_0x439bbc,_0x129604)=>{_0x129604?this['commentThreadChildren'][_0x3ed6('0x10')](this[_0x3ed6('0x1f')])||this[_0x3ed6('0xa')][_0x3ed6('0x29')](this[_0x3ed6('0x1f')],0x0):this['commentThreadChildren']['remove'](this['commentThreadHeaderView']);}),this[_0x3ed6('0x5')](_0x3ed6('0x26'),null),this[_0x3ed6('0x23')]=null,this[_0x3ed6('0x37')]=null,this[_0x3ed6('0xb')]=_0x52c589,this[_0x3ed6('0x2f')]=this[_0x3ed6('0x13')](),this['setTemplate'](this[_0x3ed6('0x28')]()),this['on'](_0x3ed6('0x36'),(_0x3ea3e6,_0x1f1e25,_0x13d32b)=>{_0x13d32b||this['_cancelAllConfirms']();}),this['listenTo'](this[_0x3ed6('0x32')],_0x3ed6('0xf'),(_0x2063c1,_0x4a7f9e,_0x1d901c)=>{_0x1d901c&&this['_cancelAllConfirms']();}),this['length']>0x0&&this[_0x3ed6('0x11')](),this['listenTo'](this[_0x3ed6('0x2a')][_0x3ed6('0x3b')],'add',()=>{this[_0x3ed6('0x11')]();});}[_0x3ed6('0x28')](){const _0x15b2de=this[_0x3ed6('0x8')];return{'tag':_0x3ed6('0x3c'),'attributes':{'class':[_0x3ed6('0x19'),'ck-reset_all-excluded',_0x15b2de['if'](_0x3ed6('0x33'),'ck-thread--active'),_0x15b2de['if']('isUnlinked',_0x3ed6('0x20')),_0x15b2de['if'](_0x3ed6('0x15'),_0x3ed6('0x7')),_0x15b2de['to'](_0x3ed6('0x26'),_0x3c433b=>_0x3c433b?_0x3ed6('0x2b')+_0x3c433b:'')],'data-thread-id':this[_0x3ed6('0x32')]['id'],'tabindex':-0x1},'children':[{'tag':_0x3ed6('0x3c'),'attributes':{'class':_0x3ed6('0x31')},'children':this[_0x3ed6('0xa')]}]};}[_0x3ed6('0x38')](){super[_0x3ed6('0x38')](),this[_0x3ed6('0x23')]=this[_0x3ed6('0x0')][_0x3ed6('0x2d')](_0x3ed6('0x30'));}[_0x3ed6('0x17')](){this[_0x3ed6('0x6')]();for(const _0x53fff2 of this[_0x3ed6('0x2a')]['commentViews'])_0x53fff2['cancelConfirm']();}[_0x3ed6('0x11')](){const {locale:_0xbc1926}=this,_0x4c9de7=this[_0x3ed6('0x2a')][_0x3ed6('0x3b')][_0x3ed6('0x12')](0x0);_0x4c9de7===this['_boundFirstCommentView']||_0x4c9de7[_0x3ed6('0x24')]||(this[_0x3ed6('0x37')]=_0x4c9de7,this['unbind'](_0x3ed6('0x26')),this[_0x3ed6('0x1e')]('actionIndicator')['to'](_0x4c9de7,'actionIndicator',_0xba929b=>_0x3ed6('0x2c')===_0xba929b?_0x3ed6('0x2c'):null),_0x4c9de7['placeholder']=_0x1de9d5(_0xbc1926,_0x3ed6('0x9')),_0x4c9de7['removeButton']['on'](_0x3ed6('0x18'),_0x4f5b32=>{_0x4f5b32['stop'](),this[_0x3ed6('0x2')](_0x1de9d5(_0xbc1926,_0x3ed6('0x21')),this[_0x3ed6('0x23')])[_0x3ed6('0x34')](()=>{this[_0x3ed6('0x2e')](_0x3ed6('0x1d'));});},{'priority':_0x3ed6('0x22')}),_0x4c9de7[_0x3ed6('0x14')][_0x3ed6('0x29')](this[_0x3ed6('0x2f')],0x0));}['_createResolveButton'](){const _0x34f046=new _0x58b2bb(this[_0x3ed6('0xb')]);return _0x34f046[_0x3ed6('0x1')]=_0x1de9d5(this['locale'],'Resolve'),_0x34f046['tooltip']=_0x1de9d5(this[_0x3ed6('0xb')],_0x3ed6('0x1b')),_0x34f046[_0x3ed6('0x3')]=_0x2377a[_0x3ed6('0x25')],_0x34f046[_0x3ed6('0x39')]({'attributes':{'class':_0x3ed6('0x1c')}}),_0x34f046[_0x3ed6('0x1e')](_0x3ed6('0x4'))['to'](this['_model'],_0x3ed6('0xd'),_0x3d7f9d=>!_0x3d7f9d),_0x34f046['bind'](_0x3ed6('0x3a'))['to'](this[_0x3ed6('0x32')],_0x3ed6('0x35'),this['_model'],_0x3ed6('0x1a'),(_0x18c645,_0x47342b)=>_0x18c645&&!_0x47342b),_0x34f046['on']('execute',()=>{this[_0x3ed6('0x2e')]('resolveCommentThread',this[_0x3ed6('0x32')]['id']);}),_0x34f046;}}
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 _0x15f6=['authoredAt','items','attributes','switchToEditMode','ck-annotation__actions--hidden','ck-comment--remove','setTemplate','div','creator','isEnabled','set','ck-comment__actions','push','isConfirm','time','ck-annotation__info-time','name','extendTemplate','addMany','ck-annotation__info','isSystemComment','EXTERNAL_COMMENT','threeVerticalDots','placeholder','dropdown','_attachActions','ck-annotation__content-wrapper','bind','EXTERNAL_IMPORT_WORD_AVATAR','getTemplate','ck-annotation__user','actionBar','Reply...','_createDropdown','bindTemplate','element','fire','Delete\x20comment?','@external','ck-comment--','focus','removeComment','remove','_model','listenTo','length','ck-annotation','_createCommentInputView','mouseenter','change:isVisible','Edit','_config','resolvedAt','withText','ck-annotation__info-name','change:isRemovable','children','source','_createEditButton','EXTERNAL_IMPORT_WORD_COMMENT','userView','some','ck-comment--info','ck-comment__main','actionIndicator','removeButton','isEditMode','getExternalCommentNote','isVisible','isReadOnly','visibleView','ck-comment--edit','locale','add','createCollection','editButton','ck-comment__user','ck-comment__info','ck-annotation__main','Show\x20more\x20items','change:isEnabled','isExternal','_createRemoveButton','ck-comment__info-name','Remove','icon','execute','then','label','panelPosition','render','buttonView','getUserViewNotificationText','author','importWord','panelView'];(function(_0x48061d,_0x15f645){const _0x5bf289=function(_0x433949){while(--_0x433949){_0x48061d['push'](_0x48061d['shift']());}};_0x5bf289(++_0x15f645);}(_0x15f6,0x192));const _0x5bf2=function(_0x48061d,_0x15f645){_0x48061d=_0x48061d-0x0;let _0x5bf289=_0x15f6[_0x48061d];return _0x5bf289;};import{ButtonView as _0x37ec54,createDropdown as _0x1b67e8,ListView as _0x6ef491,ListItemView as _0x4c0af2}from'ckeditor5/src/ui.js';import{icons as _0x13345b}from'ckeditor5/src/core.js';import{UserView as _0x133c23,ConfirmMixin as _0x30968e}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x250d76 from'./basecommentview.js';import _0x4fb364 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x370c61}from'../../../utils/common-translations.js';export default class pt extends _0x30968e(_0x250d76){constructor(_0x3fc4a4,_0x2fee60,_0x592c9d){super(_0x3fc4a4,_0x2fee60,_0x592c9d),this[_0x5bf2('0x58')](_0x5bf2('0x2e'),null),this[_0x5bf2('0x58')](_0x5bf2('0x5'),_0x370c61(_0x3fc4a4,_0x5bf2('0xe'))),this[_0x5bf2('0x9')](_0x5bf2('0x4e'))['to'](_0x2fee60),this['bind'](_0x5bf2('0x22'))['to'](_0x2fee60),this['actionBar']=this[_0x5bf2('0x38')](),this[_0x5bf2('0x2')]||(this[_0x5bf2('0x39')]=this[_0x5bf2('0x28')](),this['removeButton']=this['_createRemoveButton'](),this[_0x5bf2('0x4f')]=this['createCollection'](),this['items'][_0x5bf2('0x0')]([this[_0x5bf2('0x39')],this[_0x5bf2('0x2f')]]),this[_0x5bf2('0x6')]=this[_0x5bf2('0xf')](),this[_0x5bf2('0xd')][_0x5bf2('0x37')](this[_0x5bf2('0x6')])),this[_0x5bf2('0x2a')]=new _0x133c23(_0x3fc4a4,_0x2fee60[_0x5bf2('0x4b')],this[_0x5bf2('0x4a')]()),this['userView'][_0x5bf2('0x5f')]({'attributes':{'class':[_0x5bf2('0x3a'),_0x5bf2('0xc')]}}),this[_0x5bf2('0x1a')](_0x2fee60,_0x5bf2('0x25'),()=>this['cancelConfirm']()),this[_0x5bf2('0x54')](this[_0x5bf2('0xb')]());}[_0x5bf2('0xb')](){const _0x52b8e3=this[_0x5bf2('0x10')],_0x109d93=[{'tag':'div','attributes':{'class':[_0x5bf2('0x3b'),_0x5bf2('0x1')]},'children':[{'tag':'span','children':[{'text':this[_0x5bf2('0x2a')][_0x5bf2('0x5e')]}],'attributes':{'class':[_0x5bf2('0x41'),_0x5bf2('0x24')]}},{'tag':_0x5bf2('0x5c'),'attributes':{'datetime':_0x52b8e3['to']('authoredAt'),'class':['ck-comment__info-time',_0x5bf2('0x5d')]},'children':[{'text':_0x52b8e3['to'](_0x5bf2('0x4e'),_0x1138d5=>this[_0x5bf2('0x21')]['formatDateTime'](_0x1138d5))}]}]},{'tag':_0x5bf2('0x55'),'attributes':{'class':[_0x5bf2('0x59'),'ck-annotation__actions',_0x52b8e3['if'](_0x5bf2('0x30'),'ck-comment__actions--hidden'),_0x52b8e3['if']('isEditMode',_0x5bf2('0x52'))]},'children':this['actionBar']},{'tag':_0x5bf2('0x55'),'attributes':{'class':[_0x5bf2('0x8')]},'children':this[_0x5bf2('0x34')]}];return this[_0x5bf2('0x19')][_0x5bf2('0x3f')]&&_0x109d93[_0x5bf2('0x5a')]({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x5bf2('0x31')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x52b8e3['if'](_0x5bf2('0x5b'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x5bf2('0x55'),'attributes':{'class':['ck-comment',_0x5bf2('0x1c'),_0x52b8e3['if'](_0x5bf2('0x30'),'ck-comment--edit'),_0x52b8e3['if'](_0x5bf2('0x2'),_0x5bf2('0x2c')),_0x52b8e3['to'](_0x5bf2('0x2e'),_0x27bd4e=>_0x27bd4e?_0x5bf2('0x15')+_0x27bd4e:'')],'data-author-id':this[_0x5bf2('0x19')][_0x5bf2('0x4b')]['id'],'data-comment-id':this[_0x5bf2('0x19')]['id']},'children':[this[_0x5bf2('0x2a')],{'tag':_0x5bf2('0x55'),'attributes':{'class':[_0x5bf2('0x2d'),_0x5bf2('0x3c')]},'children':_0x109d93}]}]};}[_0x5bf2('0x28')](){const _0x50abd0=new _0x37ec54(this[_0x5bf2('0x36')]);return _0x50abd0[_0x5bf2('0x46')]=_0x370c61(this[_0x5bf2('0x36')],_0x5bf2('0x20')),_0x50abd0['icon']=_0x13345b['pencil'],_0x50abd0[_0x5bf2('0x23')]=!0x0,_0x50abd0[_0x5bf2('0x5f')]({'attributes':{'class':_0x5bf2('0x35')}}),_0x50abd0[_0x5bf2('0x9')](_0x5bf2('0x57'))['to'](this['_model'],_0x5bf2('0x33'),_0x53fc4c=>!_0x53fc4c),_0x50abd0['bind'](_0x5bf2('0x32'))['to'](this['_model'],'isEditable'),_0x50abd0['on'](_0x5bf2('0x44'),()=>this[_0x5bf2('0x51')]()),_0x50abd0;}[_0x5bf2('0x40')](){const _0xcbd50f=new _0x37ec54(this[_0x5bf2('0x36')]);return _0xcbd50f[_0x5bf2('0x46')]=_0x370c61(this[_0x5bf2('0x36')],_0x5bf2('0x42')),_0xcbd50f[_0x5bf2('0x43')]=_0x4fb364,_0xcbd50f[_0x5bf2('0x23')]=!0x0,_0xcbd50f['extendTemplate']({'attributes':{'class':_0x5bf2('0x53')}}),_0xcbd50f[_0x5bf2('0x9')](_0x5bf2('0x57'))['to'](this['_model'],_0x5bf2('0x33'),_0x584bef=>!_0x584bef),_0xcbd50f[_0x5bf2('0x9')](_0x5bf2('0x32'))['to'](this[_0x5bf2('0x19')],'isRemovable'),_0xcbd50f['on'](_0x5bf2('0x44'),()=>{this['showConfirm'](_0x370c61(this[_0x5bf2('0x36')],_0x5bf2('0x13')),this['element'])[_0x5bf2('0x45')](()=>{this[_0x5bf2('0x12')](_0x5bf2('0x17'),this['_model']['id']);});}),_0xcbd50f;}[_0x5bf2('0xf')](){const _0x258032=_0x1b67e8(this[_0x5bf2('0x36')]),_0x2a492b=_0x258032[_0x5bf2('0x4d')][_0x5bf2('0x26')],_0x1ead36=new _0x6ef491(this[_0x5bf2('0x36')]),_0x34d0ee=(_0x17ee85,_0x48151e=-0x1)=>{const _0x2da085=new _0x4c0af2(this[_0x5bf2('0x36')]);_0x2da085[_0x5bf2('0x26')]['add'](_0x17ee85);const _0x410d03=_0x48151e>-0x1?_0x48151e:_0x1ead36[_0x5bf2('0x4f')][_0x5bf2('0x1b')];_0x1ead36[_0x5bf2('0x4f')][_0x5bf2('0x37')](_0x2da085,_0x410d03),_0x258032[_0x5bf2('0x1a')](_0x17ee85,_0x5bf2('0x3e'),()=>{_0x258032['isEnabled']=[...this[_0x5bf2('0x4f')]][_0x5bf2('0x2b')](_0x1f9b74=>_0x1f9b74[_0x5bf2('0x57')]);}),_0x258032['listenTo'](_0x17ee85,_0x5bf2('0x1f'),()=>{_0x258032[_0x5bf2('0x49')]['isVisible']=[...this[_0x5bf2('0x4f')]][_0x5bf2('0x2b')](_0x76ade0=>_0x76ade0[_0x5bf2('0x32')]);});};_0x258032[_0x5bf2('0x47')]='sw',_0x258032[_0x5bf2('0x49')][_0x5bf2('0x58')]({'label':_0x370c61(this[_0x5bf2('0x36')],_0x5bf2('0x3d')),'icon':_0x13345b[_0x5bf2('0x4')]}),_0x258032[_0x5bf2('0x57')]=[...this['items']][_0x5bf2('0x2b')](_0xff0da2=>_0xff0da2['isEnabled']),_0x258032[_0x5bf2('0x49')][_0x5bf2('0x32')]=[...this[_0x5bf2('0x4f')]]['some'](_0x162c00=>_0x162c00[_0x5bf2('0x32')]);for(const _0x30986c of this['items'])_0x34d0ee(_0x30986c);return _0x2a492b['add'](_0x1ead36),_0x258032[_0x5bf2('0x1a')](this[_0x5bf2('0x4f')],_0x5bf2('0x37'),(_0x355e9b,_0x1dca54,_0x24115d)=>{_0x34d0ee(_0x1dca54,_0x24115d);}),_0x258032['listenTo'](this[_0x5bf2('0x4f')],'remove',(_0x2636fb,_0x4a3eed,_0x26c4cf)=>{_0x1ead36[_0x5bf2('0x4f')]['remove'](_0x26c4cf);}),_0x258032;}[_0x5bf2('0x7')](_0x1fe9bf,_0x14d8d8){const _0xd9d881=_0x1fe9bf&&_0x1fe9bf[_0x5bf2('0x11')];_0xd9d881&&(this['listenTo'](_0xd9d881,_0x5bf2('0x1e'),()=>this[_0x5bf2('0x2e')]=_0x14d8d8),this[_0x5bf2('0x1a')](_0xd9d881,_0x5bf2('0x16'),()=>this[_0x5bf2('0x2e')]=_0x14d8d8),this['listenTo'](_0xd9d881,'mouseleave',()=>this[_0x5bf2('0x2e')]=null),this['listenTo'](_0xd9d881,'blur',()=>this[_0x5bf2('0x2e')]=null));}[_0x5bf2('0x1d')](){const _0x2b59a2=super[_0x5bf2('0x1d')]();return _0x2b59a2['bind'](_0x5bf2('0x5'))['to'](this),_0x2b59a2;}['getExternalCommentNote'](){return _0x5bf2('0x4c')===this[_0x5bf2('0x19')][_0x5bf2('0x50')][_0x5bf2('0x14')][_0x5bf2('0x27')]?_0x370c61(this['locale'],_0x5bf2('0x29')):_0x370c61(this[_0x5bf2('0x36')],_0x5bf2('0x3'));}[_0x5bf2('0x4a')](){return this[_0x5bf2('0x19')][_0x5bf2('0x3f')]?_0x5bf2('0x4c')===this[_0x5bf2('0x19')][_0x5bf2('0x50')][_0x5bf2('0x14')][_0x5bf2('0x27')]?_0x370c61(this['locale'],_0x5bf2('0xa'),this[_0x5bf2('0x19')][_0x5bf2('0x56')]['name']):_0x370c61(this[_0x5bf2('0x36')],'EXTERNAL_AVATAR',this[_0x5bf2('0x19')]['creator']['name']):null;}[_0x5bf2('0x48')](){super[_0x5bf2('0x48')](),this[_0x5bf2('0x7')](this['editButton'],'edit'),this[_0x5bf2('0x7')](this[_0x5bf2('0x2f')],_0x5bf2('0x18'));}}
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 _0x1db8=['requires'];(function(_0x42f50c,_0x1db83e){var _0x5c2956=function(_0x53c0ce){while(--_0x53c0ce){_0x42f50c['push'](_0x42f50c['shift']());}};_0x5c2956(++_0x1db83e);}(_0x1db8,0x17d));var _0x5c29=function(_0x42f50c,_0x1db83e){_0x42f50c=_0x42f50c-0x0;var _0x5c2956=_0x1db8[_0x42f50c];return _0x5c2956;};import{Plugin as _0x3577cd}from'ckeditor5/src/core.js';import _0x3db45a from'./comments/commentsrepository.js';import _0x3c3ed9 from'./comments/commentsediting.js';import _0x5cdb64 from'./comments/commentsui.js';import _0x22cd0f from'./commentsonly.js';import _0x371a02 from'./annotations/widesidebar.js';import _0x167585 from'./annotations/narrowsidebar.js';import _0x58cca3 from'./annotations/inlineannotations.js';import _0x578e22 from'./comments/commentsarchiveui.js';import _0x6a34d4 from'./comments/commentsarchive.js';export default class f extends _0x3577cd{static get[_0x5c29('0x0')](){return[_0x3db45a,_0x3c3ed9,_0x5cdb64,_0x6a34d4,_0x578e22,_0x22cd0f,_0x371a02,_0x167585,_0x58cca3];}static get['pluginName'](){return'Comments';}}
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 _0x57ac=['DragDrop','set','stop','delete','config','highest','has','plugins','stopListening','commentsOnly','commands','listenTo','requires','get','isEnabled','editor','document','change:isEnabled','cut','pluginName','addCommentThread','_disableCommentsOnlyMode','forceDisabled','clearForceDisabled','CommentsOnly','view','editing','commentsOnlyMode','clipboardInput','affectsData','_enableCommentsOnlyMode'];(function(_0x323081,_0x57acf4){const _0x2d9d6c=function(_0x4e922e){while(--_0x4e922e){_0x323081['push'](_0x323081['shift']());}};_0x2d9d6c(++_0x57acf4);}(_0x57ac,0x137));const _0x2d9d=function(_0x323081,_0x57acf4){_0x323081=_0x323081-0x0;let _0x2d9d6c=_0x57ac[_0x323081];return _0x2d9d6c;};import{Plugin as _0x41719}from'ckeditor5/src/core.js';import _0x4a9b3f from'./comments/commentsediting.js';export default class e extends _0x41719{static get[_0x2d9d('0x12')](){return _0x2d9d('0x17');}static get[_0x2d9d('0xb')](){return[_0x4a9b3f];}constructor(_0x5931a2){super(_0x5931a2),this[_0x2d9d('0x0')](_0x2d9d('0xd'),!0x1),this['on'](_0x2d9d('0x10'),(_0x3009fa,_0x545cf4,_0x3f4e45)=>{_0x3f4e45?this[_0x2d9d('0x1d')]():this[_0x2d9d('0x14')]();});}['afterInit'](){!this[_0x2d9d('0xd')]&&this['editor'][_0x2d9d('0x3')][_0x2d9d('0xc')](_0x2d9d('0x8'))&&(this[_0x2d9d('0xd')]=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0xda6a8e,_0xde9ea0]of this[_0x2d9d('0xe')][_0x2d9d('0x9')])_0xde9ea0[_0x2d9d('0x1c')]&&_0x2d9d('0x13')!==_0xda6a8e&&_0xde9ea0[_0x2d9d('0x15')](_0x2d9d('0x1a'));this[_0x2d9d('0xe')][_0x2d9d('0x6')][_0x2d9d('0x5')](_0x2d9d('0x1e'))&&this[_0x2d9d('0xe')][_0x2d9d('0x6')][_0x2d9d('0xc')](_0x2d9d('0x1e'))[_0x2d9d('0x15')](_0x2d9d('0x1a'));const _0x39c704=this['editor'][_0x2d9d('0x19')]['view'][_0x2d9d('0xf')];this[_0x2d9d('0xa')](_0x39c704,_0x2d9d('0x11'),_0x593175=>_0x593175[_0x2d9d('0x1')](),{'priority':_0x2d9d('0x4')}),this[_0x2d9d('0xa')](_0x39c704,_0x2d9d('0x1b'),_0xadbc43=>_0xadbc43[_0x2d9d('0x1')](),{'priority':_0x2d9d('0x4')}),this[_0x2d9d('0xa')](_0x39c704,_0x2d9d('0x2'),_0x286fad=>_0x286fad['stop'](),{'priority':_0x2d9d('0x4')});}[_0x2d9d('0x14')](){for(const [_0x3b1739,_0x152009]of this['editor'][_0x2d9d('0x9')])_0x152009['affectsData']&&_0x2d9d('0x13')!==_0x3b1739&&_0x152009[_0x2d9d('0x16')](_0x2d9d('0x1a'));this[_0x2d9d('0x7')](this[_0x2d9d('0xe')][_0x2d9d('0x19')][_0x2d9d('0x18')][_0x2d9d('0xf')]);}}
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(_0x1de352,_0x2db1e3,_0x48535a){const t=_0x1de352['t'];switch(_0x2db1e3){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'},_0x48535a);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'},_0x48535a);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'},_0x48535a);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'},_0x48535a);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 _0x64a6=['attributeName','cancel','characterData','attributes','class','childList','type','disconnect'];(function(_0x398d02,_0x64a633){const _0x4c6898=function(_0x34b1db){while(--_0x34b1db){_0x398d02['push'](_0x398d02['shift']());}};_0x4c6898(++_0x64a633);}(_0x64a6,0x155));const _0x4c68=function(_0x398d02,_0x64a633){_0x398d02=_0x398d02-0x0;let _0x4c6898=_0x64a6[_0x398d02];return _0x4c6898;};import{throttle as _0x39022d}from'lodash-es';export default function Dt(_0x5f4939){const _0x50f47c=_0x39022d(_0x5f4939,0x1e),_0x41eb16=new MutationObserver(_0x43d606=>{for(const _0x474b22 of _0x43d606)(_0x4c68('0x6')==_0x474b22[_0x4c68('0x1')]&&_0x4c68('0x7')==_0x474b22[_0x4c68('0x3')]||_0x4c68('0x0')==_0x474b22['type']||_0x4c68('0x5')==_0x474b22[_0x4c68('0x1')])&&_0x50f47c();});return{'attach'(_0x5e97ea){_0x41eb16['observe'](_0x5e97ea,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x41eb16[_0x4c68('0x2')](),_0x50f47c[_0x4c68('0x4')]();}};}
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)]();}};}