@ckeditor/ckeditor5-comments 41.1.0 → 41.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
+ function _0x44d5(){const _0x4392c7=['set','ck-comment--resolve','isConfirm','3083410tTCqBI','commentsListView','listenTo','isSystemComment','ck-thread--active','bindTemplate','6NRyuJR','change:isActive','fire','showConfirm','ck-thread__container','36nwpDrU','stop','getTemplate','tooltip','_cancelAllConfirms','removeCommentThread','unbind','Resolve','get','locale','execute','element','ck-thread--','label','_createResolveButton','83247lLzLiG','_model','cancelConfirm','resolveButton','extendTemplate','isResolvable','resolveCommentThread','remove','commentThreadChildren','Delete\x20comment\x20thread?','isVisible','containerElement','ck-reset_all-excluded','isActive','isReadOnly','commentThreadHeaderView','isResolved','check','.ck-thread__container','render','querySelector','commentThreadInputView','_bindFirstCommentView','icon','173327PHEkML','1705840pzZVQT','2394999xgRbYM','createCollection','length','add','isEnabled','Write\x20a\x20comment...','removeButton','actionBar','ck-thread','308xIcMZB','commentViews','154524anrOLU','archivedAt','placeholder','bind','setTemplate','ck-thread--unlinked','then','has','19qHvOKX','8JQQDTk','_boundFirstCommentView','change:isReadOnly','div','ck-thread--remove-confirmation','actionIndicator','1774VbsJCx','high','change:archivedAt','isUnlinked','addMany'];_0x44d5=function(){return _0x4392c7;};return _0x44d5();}const _0xe79c60=_0x2163;(function(_0x1a1bfe,_0x570b11){const _0x3a0b88=_0x2163,_0xa2b780=_0x1a1bfe();while(!![]){try{const _0x90aa4a=-parseInt(_0x3a0b88(0x1ab))/0x1*(-parseInt(_0x3a0b88(0x1b2))/0x2)+parseInt(_0x3a0b88(0x1d4))/0x3*(parseInt(_0x3a0b88(0x1c5))/0x4)+parseInt(_0x3a0b88(0x197))/0x5+-parseInt(_0x3a0b88(0x1c0))/0x6*(parseInt(_0x3a0b88(0x196))/0x7)+parseInt(_0x3a0b88(0x1ac))/0x8*(parseInt(_0x3a0b88(0x198))/0x9)+-parseInt(_0x3a0b88(0x1ba))/0xa+parseInt(_0x3a0b88(0x1a1))/0xb*(-parseInt(_0x3a0b88(0x1a3))/0xc);if(_0x90aa4a===_0x570b11)break;else _0xa2b780['push'](_0xa2b780['shift']());}catch(_0x29b119){_0xa2b780['push'](_0xa2b780['shift']());}}}(_0x44d5,0x2bff7));import{ConfirmMixin as _0x5a8482}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x189b93}from'ckeditor5/src/ui.js';import{icons as _0x3ca89e}from'ckeditor5/src/core.js';import _0x4d2280 from'./basecommentthreadview.js';import{getTranslation as _0x69eaec}from'../../../utils/common-translations.js';function _0x2163(_0x3107d9,_0x14e063){const _0x44d51e=_0x44d5();return _0x2163=function(_0x216337,_0x1be48f){_0x216337=_0x216337-0x181;let _0x18db8a=_0x44d51e[_0x216337];return _0x18db8a;},_0x2163(_0x3107d9,_0x14e063);}export default class pt extends _0x5a8482(_0x4d2280){constructor(_0x1371a2,_0x35a1f8,_0x5dc264,_0x552569){const _0x329960=_0x2163;super(_0x1371a2,_0x35a1f8,_0x5dc264,_0x552569),this[_0x329960(0x186)]=this[_0x329960(0x199)](),this[_0x329960(0x186)][_0x329960(0x1b6)]([this[_0x329960(0x1bb)],this[_0x329960(0x193)]]),this[_0x329960(0x1d5)][_0x329960(0x1a4)]&&this[_0x329960(0x186)][_0x329960(0x19b)](this[_0x329960(0x18d)],0x0),this[_0x329960(0x1d5)]['on'](_0x329960(0x1b4),(_0xb73192,_0x52f531,_0x3056fa)=>{const _0x48e680=_0x329960;_0x3056fa?this[_0x48e680(0x186)][_0x48e680(0x1aa)](this[_0x48e680(0x18d)])||this[_0x48e680(0x186)][_0x48e680(0x19b)](this[_0x48e680(0x18d)],0x0):this[_0x48e680(0x186)][_0x48e680(0x185)](this[_0x48e680(0x18d)]);}),this[_0x329960(0x1b7)](_0x329960(0x1b1),null),this[_0x329960(0x189)]=null,this[_0x329960(0x1ad)]=null,this[_0x329960(0x1ce)]=_0x1371a2,this[_0x329960(0x181)]=this[_0x329960(0x1d3)](),this[_0x329960(0x1a7)](this[_0x329960(0x1c7)]()),this['on'](_0x329960(0x1c1),(_0x27ca69,_0x648f2e,_0x3fa00a)=>{const _0x4c1a05=_0x329960;_0x3fa00a||this[_0x4c1a05(0x1c9)]();}),this[_0x329960(0x1bc)](this[_0x329960(0x1d5)],_0x329960(0x1ae),(_0x5baf1e,_0x1f7989,_0x51eb01)=>{const _0x1486f6=_0x329960;_0x51eb01&&this[_0x1486f6(0x1c9)]();}),this[_0x329960(0x19a)]>0x0&&this[_0x329960(0x194)](),this[_0x329960(0x1bc)](this[_0x329960(0x1bb)][_0x329960(0x1a2)],_0x329960(0x19b),()=>{const _0x16f25b=_0x329960;this[_0x16f25b(0x194)]();});}[_0xe79c60(0x1c7)](){const _0x41d2de=_0xe79c60,_0x20b659=this[_0x41d2de(0x1bf)];return{'tag':_0x41d2de(0x1af),'attributes':{'class':[_0x41d2de(0x1a0),_0x41d2de(0x18a),_0x20b659['if'](_0x41d2de(0x18b),_0x41d2de(0x1be)),_0x20b659['if'](_0x41d2de(0x1b5),_0x41d2de(0x1a8)),_0x20b659['if'](_0x41d2de(0x1b9),_0x41d2de(0x1b0)),_0x20b659['to'](_0x41d2de(0x1b1),_0x57a926=>_0x57a926?_0x41d2de(0x1d1)+_0x57a926:'')],'data-thread-id':this[_0x41d2de(0x1d5)]['id'],'tabindex':-0x1},'children':[{'tag':_0x41d2de(0x1af),'attributes':{'class':_0x41d2de(0x1c4)},'children':this[_0x41d2de(0x186)]}]};}[_0xe79c60(0x191)](){const _0x4cc5a6=_0xe79c60;super[_0x4cc5a6(0x191)](),this[_0x4cc5a6(0x189)]=this[_0x4cc5a6(0x1d0)][_0x4cc5a6(0x192)](_0x4cc5a6(0x190));}[_0xe79c60(0x1c9)](){const _0x5c02f5=_0xe79c60;this[_0x5c02f5(0x1d6)]();for(const _0x4549d8 of this[_0x5c02f5(0x1bb)][_0x5c02f5(0x1a2)])_0x4549d8[_0x5c02f5(0x1d6)]();}[_0xe79c60(0x194)](){const _0x111414=_0xe79c60,{locale:_0x5b4a93}=this,_0x4c745a=this[_0x111414(0x1bb)][_0x111414(0x1a2)][_0x111414(0x1cd)](0x0);_0x4c745a===this[_0x111414(0x1ad)]||_0x4c745a[_0x111414(0x1bd)]||(this[_0x111414(0x1ad)]=_0x4c745a,this[_0x111414(0x1cb)](_0x111414(0x1b1)),this[_0x111414(0x1a6)](_0x111414(0x1b1))['to'](_0x4c745a,_0x111414(0x1b1),_0x4aef2f=>_0x111414(0x185)===_0x4aef2f?_0x111414(0x185):null),_0x4c745a[_0x111414(0x1a5)]=_0x69eaec(_0x5b4a93,_0x111414(0x19d)),_0x4c745a[_0x111414(0x19e)]['on'](_0x111414(0x1cf),_0x677f3c=>{const _0x49e671=_0x111414;_0x677f3c[_0x49e671(0x1c6)](),this[_0x49e671(0x1c3)](_0x69eaec(_0x5b4a93,_0x49e671(0x187)),this[_0x49e671(0x189)])[_0x49e671(0x1a9)](()=>{const _0xa5abac=_0x49e671;this[_0xa5abac(0x1c2)](_0xa5abac(0x1ca));});},{'priority':_0x111414(0x1b3)}),_0x4c745a[_0x111414(0x19f)][_0x111414(0x19b)](this[_0x111414(0x181)],0x0));}[_0xe79c60(0x1d3)](){const _0x3f6da8=_0xe79c60,_0x482365=new _0x189b93(this[_0x3f6da8(0x1ce)]);return _0x482365[_0x3f6da8(0x1d2)]=_0x69eaec(this[_0x3f6da8(0x1ce)],_0x3f6da8(0x1cc)),_0x482365[_0x3f6da8(0x1c8)]=_0x69eaec(this[_0x3f6da8(0x1ce)],_0x3f6da8(0x1cc)),_0x482365[_0x3f6da8(0x195)]=_0x3ca89e[_0x3f6da8(0x18f)],_0x482365[_0x3f6da8(0x182)]({'attributes':{'class':_0x3f6da8(0x1b8)}}),_0x482365[_0x3f6da8(0x1a6)](_0x3f6da8(0x19c))['to'](this[_0x3f6da8(0x1d5)],_0x3f6da8(0x18c),_0x5e42d9=>!_0x5e42d9),_0x482365[_0x3f6da8(0x1a6)](_0x3f6da8(0x188))['to'](this[_0x3f6da8(0x1d5)],_0x3f6da8(0x183),this[_0x3f6da8(0x1d5)],_0x3f6da8(0x18e),(_0x485d78,_0x1e42d7)=>_0x485d78&&!_0x1e42d7),_0x482365['on'](_0x3f6da8(0x1cf),()=>{const _0x3d2aae=_0x3f6da8;this[_0x3d2aae(0x1c2)](_0x3d2aae(0x184),this[_0x3d2aae(0x1d5)]['id']);}),_0x482365;}}
@@ -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 _0x48a7(_0x5ba2a4,_0x320102){const _0x2bbdbc=_0x2bbd();return _0x48a7=function(_0x48a72c,_0x43f132){_0x48a72c=_0x48a72c-0x159;let _0xab8fc3=_0x2bbdbc[_0x48a72c];return _0xab8fc3;},_0x48a7(_0x5ba2a4,_0x320102);}const _0x349bc9=_0x48a7;(function(_0x1c41f4,_0x47c921){const _0x1b6dfe=_0x48a7,_0x1b482a=_0x1c41f4();while(!![]){try{const _0x286f1c=-parseInt(_0x1b6dfe(0x1ce))/0x1+-parseInt(_0x1b6dfe(0x168))/0x2+parseInt(_0x1b6dfe(0x196))/0x3+parseInt(_0x1b6dfe(0x1bf))/0x4+-parseInt(_0x1b6dfe(0x1ac))/0x5*(parseInt(_0x1b6dfe(0x17a))/0x6)+-parseInt(_0x1b6dfe(0x175))/0x7*(parseInt(_0x1b6dfe(0x1a9))/0x8)+parseInt(_0x1b6dfe(0x1a6))/0x9;if(_0x286f1c===_0x47c921)break;else _0x1b482a['push'](_0x1b482a['shift']());}catch(_0x5caa7){_0x1b482a['push'](_0x1b482a['shift']());}}}(_0x2bbd,0x5b39a));import{ButtonView as _0x1e8ca6,createDropdown as _0x367883,ListView as _0x85efd0,ListItemView as _0x11fae9}from'ckeditor5/src/ui.js';import{icons as _0x55130a}from'ckeditor5/src/core.js';import{UserView as _0x56dee0,ConfirmMixin as _0x52434e}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x2bbd(){const _0x312025=['attributes','mouseleave','10722AFoubt','ck-annotation__content-wrapper','ck-comment--remove','ck-annotation__main','EXTERNAL_COMMENT','div','dropdown','isEnabled','name','actionBar','isRemovable','importWord','extendTemplate','ck-comment--','source','formatDateTime','threeVerticalDots','items','some','buttonView','blur','listenTo','_model','Reply...','ck-comment__main','ck-comment__actions','pencil','showConfirm','1523223egVHAu','switchToEditMode','ck-comment--remove-confirmation','isVisible','isReadOnly','label','bindTemplate','ck-comment__actions--hidden','ck-annotation__user','children','ck-comment__info','ck-comment','ck-annotation__info-name','getUserViewNotificationText','_createDropdown','getTemplate','13202937KJILxs','authoredAt','execute','16oMMehH','remove','EXTERNAL_IMPORT_WORD_AVATAR','1845uOfNdt','ck-comment__info-name','getExternalCommentNote','isEditMode','ck-comment__user','_createRemoveButton','change:isRemovable','isExternal','locale','_createCommentInputView','change:isEnabled','render','isSystemComment','fire','isConfirm','author','ck-comment__external','ck-annotation__info-time','push','1306964rFHEvp','createCollection','_createEditButton','ck-annotation__actions--hidden','Delete\x20comment?','EXTERNAL_IMPORT_WORD_COMMENT','@external','placeholder','change:isVisible','userView','setTemplate','time','ck-annotation__actions','ck-comment--edit','ck-comment--info','370736Meyyia','element','_attachActions','Show\x20more\x20items','ck-comment__wrapper','Remove','focus','span','editButton','actionIndicator','withText','_config','isEditable','panelView','ck-annotation__info','visibleView','add','addMany','icon','creator','removeComment','1234632fCXHwd','cancelConfirm','ck-annotation','bind','ck-comment__info-time','mouseenter','length','Edit','edit','EXTERNAL_AVATAR','panelPosition','removeButton','resolvedAt','981267MnKnHb','then','set'];_0x2bbd=function(){return _0x312025;};return _0x2bbd();}import _0x2bd15a from'./basecommentview.js';import _0xe4bf3f from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x55e9ac}from'../../../utils/common-translations.js';export default class wt extends _0x52434e(_0x2bd15a){constructor(_0x5a5cb6,_0x273f1d,_0x3c3cb2){const _0x2ada69=_0x48a7;super(_0x5a5cb6,_0x273f1d,_0x3c3cb2),this[_0x2ada69(0x177)](_0x2ada69(0x15c),null),this[_0x2ada69(0x177)](_0x2ada69(0x1c6),_0x55e9ac(_0x5a5cb6,_0x2ada69(0x191))),this[_0x2ada69(0x16b)](_0x2ada69(0x1a7))['to'](_0x273f1d),this[_0x2ada69(0x16b)](_0x2ada69(0x174))['to'](_0x273f1d),this[_0x2ada69(0x183)]=this[_0x2ada69(0x1c0)](),this[_0x2ada69(0x1b8)]||(this[_0x2ada69(0x15b)]=this[_0x2ada69(0x1c1)](),this[_0x2ada69(0x173)]=this[_0x2ada69(0x1b1)](),this[_0x2ada69(0x18b)]=this[_0x2ada69(0x1c0)](),this[_0x2ada69(0x18b)][_0x2ada69(0x164)]([this[_0x2ada69(0x15b)],this[_0x2ada69(0x173)]]),this[_0x2ada69(0x180)]=this[_0x2ada69(0x1a4)](),this[_0x2ada69(0x183)][_0x2ada69(0x163)](this[_0x2ada69(0x180)])),this[_0x2ada69(0x1c8)]=new _0x56dee0(_0x5a5cb6,_0x273f1d[_0x2ada69(0x1bb)],this[_0x2ada69(0x1a3)]()),this[_0x2ada69(0x1c8)][_0x2ada69(0x186)]({'attributes':{'class':[_0x2ada69(0x1b0),_0x2ada69(0x19e)]}}),this[_0x2ada69(0x18f)](_0x273f1d,_0x2ada69(0x1b2),()=>this[_0x2ada69(0x169)]()),this[_0x2ada69(0x1c9)](this[_0x2ada69(0x1a5)]());}[_0x349bc9(0x1a5)](){const _0x95d7f3=_0x349bc9,_0x3add00=this[_0x95d7f3(0x19c)],_0x44af41=[{'tag':_0x95d7f3(0x17f),'attributes':{'class':[_0x95d7f3(0x1a0),_0x95d7f3(0x161)]},'children':[{'tag':_0x95d7f3(0x15a),'children':[{'text':this[_0x95d7f3(0x1c8)][_0x95d7f3(0x182)]}],'attributes':{'class':[_0x95d7f3(0x1ad),_0x95d7f3(0x1a2)]}},{'tag':_0x95d7f3(0x1ca),'attributes':{'datetime':_0x3add00['to'](_0x95d7f3(0x1a7)),'class':[_0x95d7f3(0x16c),_0x95d7f3(0x1bd)]},'children':[{'text':_0x3add00['to'](_0x95d7f3(0x1a7),_0x1713e2=>this[_0x95d7f3(0x15e)][_0x95d7f3(0x189)](_0x1713e2))}]}]},{'tag':_0x95d7f3(0x17f),'attributes':{'class':[_0x95d7f3(0x193),_0x95d7f3(0x1cb),_0x3add00['if'](_0x95d7f3(0x1af),_0x95d7f3(0x19d)),_0x3add00['if'](_0x95d7f3(0x1af),_0x95d7f3(0x1c2))]},'children':this[_0x95d7f3(0x183)]},{'tag':_0x95d7f3(0x17f),'attributes':{'class':[_0x95d7f3(0x17b)]},'children':this[_0x95d7f3(0x162)]}];return this[_0x95d7f3(0x190)][_0x95d7f3(0x1b3)]&&_0x44af41[_0x95d7f3(0x1be)]({'tag':_0x95d7f3(0x17f),'attributes':{'class':[_0x95d7f3(0x1bc)]},'children':[{'text':this[_0x95d7f3(0x1ae)]()}]}),{'tag':'li','attributes':{'class':[_0x95d7f3(0x1d2),_0x3add00['if'](_0x95d7f3(0x1ba),_0x95d7f3(0x198))],'tabindex':-0x1},'children':[{'tag':_0x95d7f3(0x17f),'attributes':{'class':[_0x95d7f3(0x1a1),_0x95d7f3(0x16a),_0x3add00['if'](_0x95d7f3(0x1af),_0x95d7f3(0x1cc)),_0x3add00['if'](_0x95d7f3(0x1b8),_0x95d7f3(0x1cd)),_0x3add00['to'](_0x95d7f3(0x15c),_0x120cca=>_0x120cca?_0x95d7f3(0x187)+_0x120cca:'')],'data-author-id':this[_0x95d7f3(0x190)][_0x95d7f3(0x1bb)]['id'],'data-comment-id':this[_0x95d7f3(0x190)]['id']},'children':[this[_0x95d7f3(0x1c8)],{'tag':_0x95d7f3(0x17f),'attributes':{'class':[_0x95d7f3(0x192),_0x95d7f3(0x17d)]},'children':_0x44af41}]}]};}[_0x349bc9(0x1c1)](){const _0xae9735=_0x349bc9,_0xfc5c2e=new _0x1e8ca6(this[_0xae9735(0x1b4)]);return _0xfc5c2e[_0xae9735(0x19b)]=_0x55e9ac(this[_0xae9735(0x1b4)],_0xae9735(0x16f)),_0xfc5c2e[_0xae9735(0x165)]=_0x55130a[_0xae9735(0x194)],_0xfc5c2e[_0xae9735(0x15d)]=!0x0,_0xfc5c2e[_0xae9735(0x186)]({'attributes':{'class':_0xae9735(0x1cc)}}),_0xfc5c2e[_0xae9735(0x16b)](_0xae9735(0x181))['to'](this[_0xae9735(0x190)],_0xae9735(0x19a),_0x419a87=>!_0x419a87),_0xfc5c2e[_0xae9735(0x16b)](_0xae9735(0x199))['to'](this[_0xae9735(0x190)],_0xae9735(0x15f)),_0xfc5c2e['on'](_0xae9735(0x1a8),()=>this[_0xae9735(0x197)]()),_0xfc5c2e;}[_0x349bc9(0x1b1)](){const _0xd983bf=_0x349bc9,_0x27bf69=new _0x1e8ca6(this[_0xd983bf(0x1b4)]);return _0x27bf69[_0xd983bf(0x19b)]=_0x55e9ac(this[_0xd983bf(0x1b4)],_0xd983bf(0x1d3)),_0x27bf69[_0xd983bf(0x165)]=_0xe4bf3f,_0x27bf69[_0xd983bf(0x15d)]=!0x0,_0x27bf69[_0xd983bf(0x186)]({'attributes':{'class':_0xd983bf(0x17c)}}),_0x27bf69[_0xd983bf(0x16b)](_0xd983bf(0x181))['to'](this[_0xd983bf(0x190)],_0xd983bf(0x19a),_0x2aa859=>!_0x2aa859),_0x27bf69[_0xd983bf(0x16b)](_0xd983bf(0x199))['to'](this[_0xd983bf(0x190)],_0xd983bf(0x184)),_0x27bf69['on'](_0xd983bf(0x1a8),()=>{const _0x263b71=_0xd983bf;this[_0x263b71(0x195)](_0x55e9ac(this[_0x263b71(0x1b4)],_0x263b71(0x1c3)),this[_0x263b71(0x1cf)])[_0x263b71(0x176)](()=>{const _0x521354=_0x263b71;this[_0x521354(0x1b9)](_0x521354(0x167),this[_0x521354(0x190)]['id']);});}),_0x27bf69;}[_0x349bc9(0x1a4)](){const _0x307db1=_0x349bc9,_0x1c329f=_0x367883(this[_0x307db1(0x1b4)]),_0x397503=_0x1c329f[_0x307db1(0x160)][_0x307db1(0x19f)],_0x1cc812=new _0x85efd0(this[_0x307db1(0x1b4)]),_0x1c4259=(_0x3c877b,_0x3b7926=-0x1)=>{const _0x9ea03b=_0x307db1,_0x151f2c=new _0x11fae9(this[_0x9ea03b(0x1b4)]);_0x151f2c[_0x9ea03b(0x19f)][_0x9ea03b(0x163)](_0x3c877b);const _0x5c655f=_0x3b7926>-0x1?_0x3b7926:_0x1cc812[_0x9ea03b(0x18b)][_0x9ea03b(0x16e)];_0x1cc812[_0x9ea03b(0x18b)][_0x9ea03b(0x163)](_0x151f2c,_0x5c655f),_0x1c329f[_0x9ea03b(0x18f)](_0x3c877b,_0x9ea03b(0x1b6),()=>{const _0x17e7ef=_0x9ea03b;_0x1c329f[_0x17e7ef(0x181)]=[...this[_0x17e7ef(0x18b)]][_0x17e7ef(0x18c)](_0x2958e6=>_0x2958e6[_0x17e7ef(0x181)]);}),_0x1c329f[_0x9ea03b(0x18f)](_0x3c877b,_0x9ea03b(0x1c7),()=>{const _0x484dc1=_0x9ea03b;_0x1c329f[_0x484dc1(0x18d)][_0x484dc1(0x199)]=[...this[_0x484dc1(0x18b)]][_0x484dc1(0x18c)](_0x4a6f60=>_0x4a6f60[_0x484dc1(0x199)]);});};_0x1c329f[_0x307db1(0x172)]='sw',_0x1c329f[_0x307db1(0x18d)][_0x307db1(0x177)]({'label':_0x55e9ac(this[_0x307db1(0x1b4)],_0x307db1(0x1d1)),'icon':_0x55130a[_0x307db1(0x18a)]}),_0x1c329f[_0x307db1(0x181)]=[...this[_0x307db1(0x18b)]][_0x307db1(0x18c)](_0x1bcb91=>_0x1bcb91[_0x307db1(0x181)]),_0x1c329f[_0x307db1(0x18d)][_0x307db1(0x199)]=[...this[_0x307db1(0x18b)]][_0x307db1(0x18c)](_0x435791=>_0x435791[_0x307db1(0x199)]);for(const _0x58fe92 of this[_0x307db1(0x18b)])_0x1c4259(_0x58fe92);return _0x397503[_0x307db1(0x163)](_0x1cc812),_0x1c329f[_0x307db1(0x18f)](this[_0x307db1(0x18b)],_0x307db1(0x163),(_0x12820f,_0x55986d,_0x4836b8)=>{_0x1c4259(_0x55986d,_0x4836b8);}),_0x1c329f[_0x307db1(0x18f)](this[_0x307db1(0x18b)],_0x307db1(0x1aa),(_0x5e4236,_0x2c5ed7,_0x3cab1c)=>{const _0x31f8d0=_0x307db1;_0x1cc812[_0x31f8d0(0x18b)][_0x31f8d0(0x1aa)](_0x3cab1c);}),_0x1c329f;}[_0x349bc9(0x1d0)](_0x9c87fd,_0x2ca6a8){const _0x3d396a=_0x349bc9,_0x3aa790=_0x9c87fd&&_0x9c87fd[_0x3d396a(0x1cf)];_0x3aa790&&(this[_0x3d396a(0x18f)](_0x3aa790,_0x3d396a(0x16d),()=>this[_0x3d396a(0x15c)]=_0x2ca6a8),this[_0x3d396a(0x18f)](_0x3aa790,_0x3d396a(0x159),()=>this[_0x3d396a(0x15c)]=_0x2ca6a8),this[_0x3d396a(0x18f)](_0x3aa790,_0x3d396a(0x179),()=>this[_0x3d396a(0x15c)]=null),this[_0x3d396a(0x18f)](_0x3aa790,_0x3d396a(0x18e),()=>this[_0x3d396a(0x15c)]=null));}[_0x349bc9(0x1b5)](){const _0x26f4a2=_0x349bc9,_0x248360=super[_0x26f4a2(0x1b5)]();return _0x248360[_0x26f4a2(0x16b)](_0x26f4a2(0x1c6))['to'](this),_0x248360;}[_0x349bc9(0x1ae)](){const _0x1efa01=_0x349bc9;return _0x1efa01(0x185)===this[_0x1efa01(0x190)][_0x1efa01(0x178)][_0x1efa01(0x1c5)][_0x1efa01(0x188)]?_0x55e9ac(this[_0x1efa01(0x1b4)],_0x1efa01(0x1c4)):_0x55e9ac(this[_0x1efa01(0x1b4)],_0x1efa01(0x17e));}[_0x349bc9(0x1a3)](){const _0x1f743d=_0x349bc9;return this[_0x1f743d(0x190)][_0x1f743d(0x1b3)]?_0x1f743d(0x185)===this[_0x1f743d(0x190)][_0x1f743d(0x178)][_0x1f743d(0x1c5)][_0x1f743d(0x188)]?_0x55e9ac(this[_0x1f743d(0x1b4)],_0x1f743d(0x1ab),this[_0x1f743d(0x190)][_0x1f743d(0x166)][_0x1f743d(0x182)]):_0x55e9ac(this[_0x1f743d(0x1b4)],_0x1f743d(0x171),this[_0x1f743d(0x190)][_0x1f743d(0x166)][_0x1f743d(0x182)]):null;}[_0x349bc9(0x1b7)](){const _0x5908a9=_0x349bc9;super[_0x5908a9(0x1b7)](),this[_0x5908a9(0x1d0)](this[_0x5908a9(0x15b)],_0x5908a9(0x170)),this[_0x5908a9(0x1d0)](this[_0x5908a9(0x173)],_0x5908a9(0x1aa));}}
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
+ var _0x3189b1=_0x20dc;(function(_0x41476d,_0xc8c6fa){var _0x9a49fd=_0x20dc,_0x17b31d=_0x41476d();while(!![]){try{var _0x4383b1=parseInt(_0x9a49fd(0xe9))/0x1*(-parseInt(_0x9a49fd(0xef))/0x2)+parseInt(_0x9a49fd(0xe8))/0x3*(parseInt(_0x9a49fd(0xf5))/0x4)+-parseInt(_0x9a49fd(0xf2))/0x5+parseInt(_0x9a49fd(0xea))/0x6+parseInt(_0x9a49fd(0xf3))/0x7*(-parseInt(_0x9a49fd(0xf4))/0x8)+parseInt(_0x9a49fd(0xec))/0x9*(-parseInt(_0x9a49fd(0xf1))/0xa)+parseInt(_0x9a49fd(0xee))/0xb*(parseInt(_0x9a49fd(0xf0))/0xc);if(_0x4383b1===_0xc8c6fa)break;else _0x17b31d['push'](_0x17b31d['shift']());}catch(_0x1e9ed0){_0x17b31d['push'](_0x17b31d['shift']());}}}(_0x3889,0x7d386));import{Plugin as _0xeb915a}from'ckeditor5/src/core.js';import _0x3d01e0 from'./comments/commentsrepository.js';import _0x22fdae from'./comments/commentsediting.js';import _0x203420 from'./comments/commentsui.js';import _0x1a540a from'./commentsonly.js';import _0x32048c from'./annotations/widesidebar.js';import _0x23f229 from'./annotations/narrowsidebar.js';function _0x20dc(_0x2e776d,_0x838f70){var _0x388979=_0x3889();return _0x20dc=function(_0x20dc2d,_0xee2c29){_0x20dc2d=_0x20dc2d-0xe7;var _0x5c4546=_0x388979[_0x20dc2d];return _0x5c4546;},_0x20dc(_0x2e776d,_0x838f70);}import _0x4b95f4 from'./annotations/inlineannotations.js';import _0x1507a2 from'./comments/commentsarchiveui.js';import _0x22aa03 from'./comments/commentsarchive.js';function _0x3889(){var _0x3eb694=['23458764MUGKoI','90wusvuz','1747190lzOCuI','917ddkvBo','35832qbuVxb','4GNiLLS','pluginName','1002747dnJyfO','7buVBAN','1714782YxtBPJ','requires','814977zxhHrn','Comments','11yAINev','88822kPYAbt'];_0x3889=function(){return _0x3eb694;};return _0x3889();}export default class f extends _0xeb915a{static get[_0x3189b1(0xeb)](){return[_0x3d01e0,_0x22fdae,_0x203420,_0x22aa03,_0x1507a2,_0x1a540a,_0x32048c,_0x23f229,_0x4b95f4];}static get[_0x3189b1(0xe7)](){var _0xd3605b=_0x3189b1;return _0xd3605b(0xed);}}
@@ -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
+ function _0x2152(){const _0x45dced=['delete','highest','_enableCommentsOnlyMode','document','63436UbyzDq','_disableCommentsOnlyMode','clearForceDisabled','listenTo','stop','944085brXuNN','has','config','commentsOnly','editor','12833624JFvFGM','addCommentThread','clipboardInput','21220qfkLIH','471573eFqkKQ','forceDisabled','isEnabled','728874AXCiUw','DragDrop','set','18WKquMb','change:isEnabled','get','affectsData','requires','commentsOnlyMode','cut','editing','commands','plugins','pluginName','view','afterInit','1060262LJRNys','CommentsOnly','stopListening'];_0x2152=function(){return _0x45dced;};return _0x2152();}const _0x545fad=_0x5816;function _0x5816(_0x5bcea8,_0xd30878){const _0x215241=_0x2152();return _0x5816=function(_0x58165d,_0x4794c0){_0x58165d=_0x58165d-0x1e5;let _0x4bcb25=_0x215241[_0x58165d];return _0x4bcb25;},_0x5816(_0x5bcea8,_0xd30878);}(function(_0x1bd516,_0x488cda){const _0x272ead=_0x5816,_0x2a76cc=_0x1bd516();while(!![]){try{const _0x53546d=-parseInt(_0x272ead(0x203))/0x1+parseInt(_0x272ead(0x202))/0x2+-parseInt(_0x272ead(0x206))/0x3+parseInt(_0x272ead(0x1f5))/0x4+-parseInt(_0x272ead(0x1fa))/0x5+-parseInt(_0x272ead(0x209))/0x6*(parseInt(_0x272ead(0x1ee))/0x7)+parseInt(_0x272ead(0x1ff))/0x8;if(_0x53546d===_0x488cda)break;else _0x2a76cc['push'](_0x2a76cc['shift']());}catch(_0x1d168f){_0x2a76cc['push'](_0x2a76cc['shift']());}}}(_0x2152,0x42a1e));import{Plugin as _0x338567}from'ckeditor5/src/core.js';import _0x4f92e4 from'./comments/commentsediting.js';export default class e extends _0x338567{static get[_0x545fad(0x1eb)](){const _0x3ffb7e=_0x545fad;return _0x3ffb7e(0x1ef);}static get[_0x545fad(0x1e5)](){return[_0x4f92e4];}constructor(_0x301fde){const _0x3c4856=_0x545fad;super(_0x301fde),this[_0x3c4856(0x208)](_0x3c4856(0x205),!0x1),this['on'](_0x3c4856(0x20a),(_0x14c271,_0x4492f2,_0x3fafb6)=>{const _0x172a03=_0x3c4856;_0x3fafb6?this[_0x172a03(0x1f3)]():this[_0x172a03(0x1f6)]();});}[_0x545fad(0x1ed)](){const _0x3dbbad=_0x545fad;!this[_0x3dbbad(0x205)]&&this[_0x3dbbad(0x1fe)][_0x3dbbad(0x1fc)][_0x3dbbad(0x20b)](_0x3dbbad(0x1fd))&&(this[_0x3dbbad(0x205)]=!0x0);}[_0x545fad(0x1f3)](){const _0x35ffa0=_0x545fad;for(const [_0x28ebf3,_0x2c731c]of this[_0x35ffa0(0x1fe)][_0x35ffa0(0x1e9)])_0x2c731c[_0x35ffa0(0x20c)]&&_0x35ffa0(0x200)!==_0x28ebf3&&_0x2c731c[_0x35ffa0(0x204)](_0x35ffa0(0x1e6));this[_0x35ffa0(0x1fe)][_0x35ffa0(0x1ea)][_0x35ffa0(0x1fb)](_0x35ffa0(0x207))&&this[_0x35ffa0(0x1fe)][_0x35ffa0(0x1ea)][_0x35ffa0(0x20b)](_0x35ffa0(0x207))[_0x35ffa0(0x204)](_0x35ffa0(0x1e6));const _0x2b6382=this[_0x35ffa0(0x1fe)][_0x35ffa0(0x1e8)][_0x35ffa0(0x1ec)][_0x35ffa0(0x1f4)];this[_0x35ffa0(0x1f8)](_0x2b6382,_0x35ffa0(0x1e7),_0x20243d=>_0x20243d[_0x35ffa0(0x1f9)](),{'priority':_0x35ffa0(0x1f2)}),this[_0x35ffa0(0x1f8)](_0x2b6382,_0x35ffa0(0x201),_0x3d4014=>_0x3d4014[_0x35ffa0(0x1f9)](),{'priority':_0x35ffa0(0x1f2)}),this[_0x35ffa0(0x1f8)](_0x2b6382,_0x35ffa0(0x1f1),_0x1f687c=>_0x1f687c[_0x35ffa0(0x1f9)](),{'priority':_0x35ffa0(0x1f2)});}[_0x545fad(0x1f6)](){const _0x4445de=_0x545fad;for(const [_0x2fd722,_0x3bb3fd]of this[_0x4445de(0x1fe)][_0x4445de(0x1e9)])_0x3bb3fd[_0x4445de(0x20c)]&&_0x4445de(0x200)!==_0x2fd722&&_0x3bb3fd[_0x4445de(0x1f7)](_0x4445de(0x1e6));this[_0x4445de(0x1f0)](this[_0x4445de(0x1fe)][_0x4445de(0x1e8)][_0x4445de(0x1ec)][_0x4445de(0x1f4)]);}}
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(_0x223537,_0x2304bb){var _0x5973e8=_0x3dcd,_0x69192f=_0x223537();while(!![]){try{var _0x11ce37=-parseInt(_0x5973e8(0x168))/0x1+-parseInt(_0x5973e8(0x16e))/0x2+parseInt(_0x5973e8(0x170))/0x3*(-parseInt(_0x5973e8(0x16a))/0x4)+parseInt(_0x5973e8(0x16c))/0x5+-parseInt(_0x5973e8(0x169))/0x6*(parseInt(_0x5973e8(0x16b))/0x7)+-parseInt(_0x5973e8(0x16f))/0x8+parseInt(_0x5973e8(0x16d))/0x9;if(_0x11ce37===_0x2304bb)break;else _0x69192f['push'](_0x69192f['shift']());}catch(_0x213bce){_0x69192f['push'](_0x69192f['shift']());}}}(_0x4c92,0x489a2));export{default as Comments}from'./comments.js';function _0x4c92(){var _0x26d5e7=['33339lvjdcs','97339tRLNjO','214416KtvFnm','44oqGnuc','14JYCVYX','203715YADcAL','9790812MHNhyA','752142bTNLqk','1312864KKZDKc'];_0x4c92=function(){return _0x26d5e7;};return _0x4c92();}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';function _0x3dcd(_0x246d22,_0x36877f){var _0x4c9200=_0x4c92();return _0x3dcd=function(_0x3dcdf8,_0x162618){_0x3dcdf8=_0x3dcdf8-0x168;var _0x327abb=_0x4c9200[_0x3dcdf8];return _0x327abb;},_0x3dcd(_0x246d22,_0x36877f);}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(_0xc5d4da,_0x464c6d,_0x19b8a6){const t=_0xc5d4da['t'];switch(_0x464c6d){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'},_0x19b8a6);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'},_0x19b8a6);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'},_0x19b8a6);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'},_0x19b8a6);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 _0x5254(_0x67240,_0x4b2a7d){const _0x4fae7f=_0x4fae();return _0x5254=function(_0x52548e,_0x34c489){_0x52548e=_0x52548e-0x103;let _0x175897=_0x4fae7f[_0x52548e];return _0x175897;},_0x5254(_0x67240,_0x4b2a7d);}(function(_0x1cc7a4,_0x14a3fb){const _0x587c56=_0x5254,_0x147b03=_0x1cc7a4();while(!![]){try{const _0x1787ad=-parseInt(_0x587c56(0x10e))/0x1+-parseInt(_0x587c56(0x108))/0x2+-parseInt(_0x587c56(0x103))/0x3+parseInt(_0x587c56(0x10c))/0x4+-parseInt(_0x587c56(0x109))/0x5+parseInt(_0x587c56(0x10a))/0x6+-parseInt(_0x587c56(0x10d))/0x7*(-parseInt(_0x587c56(0x106))/0x8);if(_0x1787ad===_0x14a3fb)break;else _0x147b03['push'](_0x147b03['shift']());}catch(_0x382f14){_0x147b03['push'](_0x147b03['shift']());}}}(_0x4fae,0x9f057));import{throttle as _0x4ca4d8}from'lodash-es';function _0x4fae(){const _0x2f2933=['29382VcGMhH','5586370zaSIfe','3520662DGxvqO','characterData','4922736dUjjjs','161OYhXvV','1114575JimTol','childList','type','class','cancel','disconnect','3360009RaHlZL','attributeName','observe','765368Jrbell','attributes'];_0x4fae=function(){return _0x2f2933;};return _0x4fae();}export default function Dt(_0x2fbb72){const _0x2b14bc=_0x4ca4d8(_0x2fbb72,0x1e),_0x486d1c=new MutationObserver(_0x2f4587=>{const _0x438cac=_0x5254;for(const _0x2fa048 of _0x2f4587)(_0x438cac(0x107)==_0x2fa048[_0x438cac(0x110)]&&_0x438cac(0x111)==_0x2fa048[_0x438cac(0x104)]||_0x438cac(0x10f)==_0x2fa048[_0x438cac(0x110)]||_0x438cac(0x10b)==_0x2fa048[_0x438cac(0x110)])&&_0x2b14bc();});return{'attach'(_0x171f0b){const _0x353d97=_0x5254;_0x486d1c[_0x353d97(0x105)](_0x171f0b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){const _0x2170fe=_0x5254;_0x486d1c[_0x2170fe(0x113)](),_0x2b14bc[_0x2170fe(0x112)]();}};}