@ckeditor/ckeditor5-comments 29.0.0 → 31.0.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 (44) hide show
  1. package/package.json +8 -7
  2. package/src/annotations/annotation.js +1 -1
  3. package/src/annotations/annotationcollection.js +1 -1
  4. package/src/annotations/annotations.js +1 -1
  5. package/src/annotations/annotationsuis.js +1 -1
  6. package/src/annotations/editorannotations.js +1 -1
  7. package/src/annotations/inlineannotations.js +1 -1
  8. package/src/annotations/narrowsidebar.js +1 -1
  9. package/src/annotations/sidebar.js +1 -1
  10. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  11. package/src/annotations/view/annotationview.js +1 -1
  12. package/src/annotations/view/sidebaritemview.js +1 -1
  13. package/src/annotations/view/sidebarview.js +1 -1
  14. package/src/annotations/widesidebar.js +1 -1
  15. package/src/comments/addcommentthreadcommand.js +1 -1
  16. package/src/comments/commentsediting.js +1 -1
  17. package/src/comments/commentsrepository.js +1 -1
  18. package/src/comments/commentsui.js +1 -1
  19. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  20. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  21. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  22. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  23. package/src/comments/ui/commentthreadcontroller.js +1 -1
  24. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  25. package/src/comments/ui/view/basecommentview.js +1 -1
  26. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  27. package/src/comments/ui/view/commentcontentview.js +1 -1
  28. package/src/comments/ui/view/commentinputview.js +1 -1
  29. package/src/comments/ui/view/commentslistview.js +1 -1
  30. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  31. package/src/comments/ui/view/commentthreadview.js +1 -1
  32. package/src/comments/ui/view/commentview.js +1 -1
  33. package/src/comments/ui/view/confirmmixin.js +1 -1
  34. package/src/comments/ui/view/confirmview.js +1 -1
  35. package/src/comments.js +1 -1
  36. package/src/commentsonly.js +1 -1
  37. package/src/utils/common-translations.js +1 -1
  38. package/src/utils/createmutationobserver.js +1 -1
  39. package/src/utils/getdatetimeformatter.js +1 -1
  40. package/src/utils/getmarkerdomelement.js +1 -1
  41. package/src/utils/trim-html.js +1 -1
  42. package/theme/icons/add-comment.svg +1 -1
  43. package/theme/sidebar-narrow.css +2 -2
  44. package/theme/icons/add-comment-inverted.svg +0 -11
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d70=['focusTracker','name','ready','element','fire','getRoot','init','rootName','add','editing','editor','setEditableElement','isFocused','editable','render','locale','document','attachDomRoot','destroy','view'];(function(_0x10622c,_0x3d7071){const _0x2d2880=function(_0x3558f9){while(--_0x3558f9){_0x10622c['push'](_0x10622c['shift']());}};_0x2d2880(++_0x3d7071);}(_0x3d70,0xa8));const _0x2d28=function(_0x10622c,_0x3d7071){_0x10622c=_0x10622c-0x0;let _0x2d2880=_0x3d70[_0x10622c];return _0x2d2880;};import{EditorUI as _0x4fad72}from'ckeditor5/src/core';import _0x5ceaf6 from'./commenteditoruiview';export default class wt extends _0x4fad72{constructor(_0x1e70be){super(_0x1e70be),this['view']=new _0x5ceaf6(_0x1e70be[_0x2d28('0x7')],_0x1e70be[_0x2d28('0x1')][_0x2d28('0xb')]);}get['element'](){return this[_0x2d28('0xb')]['element'];}[_0x2d28('0x12')](){const _0x489755=this[_0x2d28('0x2')]['editing'][_0x2d28('0xb')],_0x84e9ab=this[_0x2d28('0xb')][_0x2d28('0x5')],_0x254713=_0x489755[_0x2d28('0x8')][_0x2d28('0x11')]();_0x84e9ab[_0x2d28('0xd')]=_0x254713[_0x2d28('0x13')],this[_0x2d28('0xb')][_0x2d28('0x6')]();const _0x532bbc=_0x84e9ab[_0x2d28('0xf')];this[_0x2d28('0x3')](_0x84e9ab[_0x2d28('0xd')],_0x532bbc),this[_0x2d28('0xc')][_0x2d28('0x0')](_0x532bbc),this[_0x2d28('0xb')]['editable']['bind'](_0x2d28('0x4'))['to'](this[_0x2d28('0xc')]),_0x489755[_0x2d28('0x9')](_0x532bbc),this[_0x2d28('0x10')](_0x2d28('0xe'));}['destroy'](){this[_0x2d28('0xb')][_0x2d28('0xa')](),super['destroy']();}}
23
+ const _0x1898=['document','getRoot','rootName','setEditableElement','isFocused','add','element','bind','editing','ready','attachDomRoot','editor','editable','name','destroy','view'];(function(_0x3f2dcd,_0x1898ac){const _0x530503=function(_0x4e14fd){while(--_0x4e14fd){_0x3f2dcd['push'](_0x3f2dcd['shift']());}};_0x530503(++_0x1898ac);}(_0x1898,0x16d));const _0x5305=function(_0x3f2dcd,_0x1898ac){_0x3f2dcd=_0x3f2dcd-0x0;let _0x530503=_0x1898[_0x3f2dcd];return _0x530503;};import{EditorUI as _0x29947a}from'ckeditor5/src/core';import _0x643894 from'./commenteditoruiview';export default class wt extends _0x29947a{constructor(_0x1a8fd2){super(_0x1a8fd2),this[_0x5305('0x2')]=new _0x643894(_0x1a8fd2['locale'],_0x1a8fd2[_0x5305('0xb')][_0x5305('0x2')]);}get[_0x5305('0x9')](){return this[_0x5305('0x2')]['element'];}['init'](){const _0x3b0b33=this[_0x5305('0xe')][_0x5305('0xb')]['view'],_0x49cfd3=this[_0x5305('0x2')][_0x5305('0xf')],_0x854de=_0x3b0b33[_0x5305('0x3')][_0x5305('0x4')]();_0x49cfd3[_0x5305('0x0')]=_0x854de[_0x5305('0x5')],this['view']['render']();const _0x3a0915=_0x49cfd3['element'];this[_0x5305('0x6')](_0x49cfd3['name'],_0x3a0915),this['focusTracker'][_0x5305('0x8')](_0x3a0915),this['view'][_0x5305('0xf')][_0x5305('0xa')](_0x5305('0x7'))['to'](this['focusTracker']),_0x3b0b33[_0x5305('0xd')](_0x3a0915),this['fire'](_0x5305('0xc'));}[_0x5305('0x1')](){this[_0x5305('0x2')][_0x5305('0x1')](),super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{InlineEditableUIView as $t,EditorUIView as Ct,LabelView as Lt}from'ckeditor5/src/ui';import{uid as _0x4018f8}from'ckeditor5/src/utils';export default class Bt extends Ct{constructor(_0x131079,_0x262864){super(_0x131079);const _0x4834ff=_0x4018f8();this['main']=this['createCollection'](),this['editable']=new $t(_0x131079,_0x262864),this['_voiceLabelView']=this['_createVoiceLabel'](_0x4834ff,_0x131079),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'role':'comment','dir':_0x131079['uiLanguageDirection'],'lang':_0x131079['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x4834ff},'children':[this['_voiceLabelView'],{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}['_createVoiceLabel'](_0x5ed02e,_0x89879c){const _0x339326=new Lt(),{t:t}=_0x89879c;return _0x339326['text']=t('Comment\x20editor'),_0x339326['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x5ed02e,'class':'ck-voice-label'}}),_0x339326;}}
23
+ import{InlineEditableUIView as $t,EditorUIView as Ct,LabelView as Lt}from'ckeditor5/src/ui';import{uid as _0xe9c037}from'ckeditor5/src/utils';export default class Bt extends Ct{constructor(_0x3a58c5,_0x39f7ba){super(_0x3a58c5);const _0x4fe5f6=_0xe9c037();this['main']=this['createCollection'](),this['editable']=new $t(_0x3a58c5,_0x39f7ba),this['_voiceLabelView']=this['_createVoiceLabel'](_0x4fe5f6,_0x3a58c5),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'role':'comment','dir':_0x3a58c5['uiLanguageDirection'],'lang':_0x3a58c5['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x4fe5f6},'children':[this['_voiceLabelView'],{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}['_createVoiceLabel'](_0x718eca,_0x31794){const _0xff98e=new Lt(),{t:t}=_0x31794;return _0xff98e['text']=t('Comment\x20editor'),_0xff98e['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x718eca,'class':'ck-voice-label'}}),_0xff98e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x20ea=['updateComment','_localUser','update','model','listenTo','_isAttached','remove','getComment','destroy','view','removeComment','addComment'];(function(_0x5ed19a,_0x20eaac){var _0x2900af=function(_0x14d043){while(--_0x14d043){_0x5ed19a['push'](_0x5ed19a['shift']());}};_0x2900af(++_0x20eaac);}(_0x20ea,0x1f2));var _0x2900=function(_0x5ed19a,_0x20eaac){_0x5ed19a=_0x5ed19a-0x0;var _0x2900af=_0x20ea[_0x5ed19a];return _0x2900af;};import{ObservableMixin as _0x4a60bd,mix as _0x3ad402}from'ckeditor5/src/utils';export default class H{constructor(_0x5a7934,_0x24bdc5){this[_0x2900('0x9')]=_0x5a7934,this['model'][_0x2900('0xb')]=!0x0,this[_0x2900('0x3')]=_0x24bdc5,this['listenTo'](_0x24bdc5,'removeCommentThread',()=>this[_0x2900('0x0')]()),this[_0x2900('0xa')](_0x24bdc5,_0x2900('0x5'),(_0x15ee65,_0x26060c)=>this[_0x2900('0x5')](_0x26060c)),this['listenTo'](_0x24bdc5,_0x2900('0x6'),(_0x15d394,_0x38cbaa,_0x116163)=>this['updateComment'](_0x38cbaa,_0x116163)),this[_0x2900('0xa')](_0x24bdc5,'removeComment',(_0x25fadc,_0x2d90b1)=>this['removeComment'](_0x2d90b1));}[_0x2900('0x0')](){this[_0x2900('0x9')]['remove']();}['addComment'](_0x28116b){this[_0x2900('0x9')]['addComment']({'content':_0x28116b,'authorId':this[_0x2900('0x3')][_0x2900('0x7')]['id']});}[_0x2900('0x6')](_0x3cd809,_0xa44f6d){this[_0x2900('0x9')][_0x2900('0x1')](_0x3cd809)[_0x2900('0x8')]({'content':_0xa44f6d});}[_0x2900('0x4')](_0x38cb53){this['model'][_0x2900('0x1')](_0x38cb53)[_0x2900('0x0')]();}[_0x2900('0x2')](){this['stopListening'](),this['model'][_0x2900('0xb')]=!0x1;}}_0x3ad402(H,_0x4a60bd);
23
+ var _0x8090=['removeComment','update','listenTo','destroy','addComment','remove','getComment','model','_isAttached','updateComment','removeCommentThread','view','_localUser'];(function(_0x2bde1a,_0x80907){var _0x325d67=function(_0x1729b2){while(--_0x1729b2){_0x2bde1a['push'](_0x2bde1a['shift']());}};_0x325d67(++_0x80907);}(_0x8090,0x11c));var _0x325d=function(_0x2bde1a,_0x80907){_0x2bde1a=_0x2bde1a-0x0;var _0x325d67=_0x8090[_0x2bde1a];return _0x325d67;};import{ObservableMixin as _0x52fef4,mix as _0x5e3558}from'ckeditor5/src/utils';export default class H{constructor(_0x524ec2,_0x35805f){this['model']=_0x524ec2,this[_0x325d('0x9')][_0x325d('0xa')]=!0x0,this[_0x325d('0x0')]=_0x35805f,this[_0x325d('0x4')](_0x35805f,_0x325d('0xc'),()=>this[_0x325d('0x7')]()),this['listenTo'](_0x35805f,_0x325d('0x6'),(_0x3f2690,_0x2af3d0)=>this['addComment'](_0x2af3d0)),this[_0x325d('0x4')](_0x35805f,_0x325d('0xb'),(_0x272274,_0x41b114,_0x524963)=>this[_0x325d('0xb')](_0x41b114,_0x524963)),this[_0x325d('0x4')](_0x35805f,_0x325d('0x2'),(_0x29251d,_0x556b8d)=>this[_0x325d('0x2')](_0x556b8d));}[_0x325d('0x7')](){this[_0x325d('0x9')][_0x325d('0x7')]();}[_0x325d('0x6')](_0x1adae7){this['model'][_0x325d('0x6')]({'content':_0x1adae7,'authorId':this[_0x325d('0x0')][_0x325d('0x1')]['id']});}[_0x325d('0xb')](_0x367123,_0x142b7e){this[_0x325d('0x9')][_0x325d('0x8')](_0x367123)[_0x325d('0x3')]({'content':_0x142b7e});}[_0x325d('0x2')](_0xe2dd3d){this[_0x325d('0x9')]['getComment'](_0xe2dd3d)[_0x325d('0x7')]();}[_0x325d('0x5')](){this['stopListening'](),this[_0x325d('0x9')][_0x325d('0xa')]=!0x1;}}_0x5e3558(H,_0x52fef4);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as bt}from'ckeditor5/src/ui';import Rt from'./commentthreadinputview';import Tt from'./commentslistview';export default class It extends bt{constructor(_0x465f23,_0x5ce534,_0x473cf7,_0x5395ff){super(_0x465f23),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x5ce534,this['_localUser']=_0x473cf7,this['_config']=_0x5395ff,this['commentsListView']=new Tt(_0x465f23,_0x5ce534,Object['assign']({'CommentView':this['_config']['CommentView']},_0x5395ff)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x39f7e4,_0x151ed0)=>_0x39f7e4||!!_0x151ed0);}['focus'](){this['element']['focus']();}['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const {t:t}=this['locale'],_0x4bbc29=new Rt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x32e92f=_0x4bbc29['commentInputView'];return _0x4bbc29['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',_0x32e92f,'value',(_0x2c4011,_0x4c1dde,_0x306d00)=>!!_0x306d00||_0x2c4011&&!_0x4c1dde),_0x32e92f['bind']('placeholder')['to'](this,'length',_0x5171a3=>t(_0x5171a3?'Reply...':'Write\x20a\x20comment...')),_0x32e92f['on']('submit',(_0x539ee1,_0x44b3df)=>{this['fire']('addComment',_0x44b3df);}),_0x32e92f['on']('cancel',()=>{this['focus']();}),_0x32e92f['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x32e92f['on']('cancel',_0x1aead6=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x1aead6['stop']());}),this['on']('change:isActive',(_0x59e13f,_0x190207,_0x4b90c6)=>{_0x4b90c6||this['length']||_0x32e92f['value']||this['fire']('removeCommentThread');}),_0x4bbc29;}}
23
+ import{View as bt}from'ckeditor5/src/ui';import Rt from'./commentthreadinputview';import Tt from'./commentslistview';export default class It extends bt{constructor(_0x4a94c5,_0x394426,_0x529e03,_0x56f688){super(_0x4a94c5),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x394426,this['_localUser']=_0x529e03,this['_config']=_0x56f688,this['commentsListView']=new Tt(_0x4a94c5,_0x394426,Object['assign']({'CommentView':this['_config']['CommentView']},_0x56f688)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x13d3ae,_0x50f8f)=>_0x13d3ae||!!_0x50f8f);}['focus'](){this['element']['focus']();}['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const {t:t}=this['locale'],_0x4a1895=new Rt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x23f66e=_0x4a1895['commentInputView'];return _0x4a1895['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',_0x23f66e,'value',(_0x2f4c62,_0x343965,_0x1b1330)=>!!_0x1b1330||_0x2f4c62&&!_0x343965),_0x23f66e['bind']('placeholder')['to'](this,'length',_0x5b7eae=>t(_0x5b7eae?'Reply...':'Write\x20a\x20comment...')),_0x23f66e['on']('submit',(_0x25f35f,_0x1131ae)=>{this['fire']('addComment',_0x1131ae);}),_0x23f66e['on']('cancel',()=>{this['focus']();}),_0x23f66e['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x23f66e['on']('cancel',_0x7ecc34=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x7ecc34['stop']());}),this['on']('change:isActive',(_0x1221e8,_0x574b0a,_0x2770ab)=>{_0x2770ab||this['length']||_0x23f66e['value']||this['fire']('removeCommentThread');}),_0x4a1895;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fd8=['content','_model','isEditMode','value','switchToEditMode','locale','bind','_createCommentInputView','editorReady','destroy','switchToDisplayMode','visibleView','maxCommentCharsWhenCollapsed','createCollection','isReadOnly','add','focus','collapse','fire','cancel','editorConfig','_createCommentContentView','set','isCollapsed','_config'];(function(_0x19c757,_0x3fd837){const _0x2d6f4a=function(_0x18e04f){while(--_0x18e04f){_0x19c757['push'](_0x19c757['shift']());}};_0x2d6f4a(++_0x3fd837);}(_0x3fd8,0xd0));const _0x2d6f=function(_0x19c757,_0x3fd837){_0x19c757=_0x19c757-0x0;let _0x2d6f4a=_0x3fd8[_0x19c757];return _0x2d6f4a;};import{View as _0x3a5de4}from'ckeditor5/src/ui';import _0x4bfd79 from'./commentcontentview';import _0x1a9fd4 from'./commentinputview';import _0x576d5e from'../../../utils/trim-html';export default class Vt extends _0x3a5de4{constructor(_0x4681d5,_0x4f9211,_0x359139){super(_0x4681d5),this[_0x2d6f('0x12')]=_0x4f9211,this[_0x2d6f('0x10')]=_0x359139,this[_0x2d6f('0xe')]('isEditMode',!0x1),this[_0x2d6f('0xe')](_0x2d6f('0xf'),!0x0),this[_0x2d6f('0x3')]=this[_0x2d6f('0x5')](),this[_0x2d6f('0x3')][_0x2d6f('0x7')](this[_0x2d6f('0xd')]());}['expand'](){this[_0x2d6f('0xf')]=!0x1;}[_0x2d6f('0x9')](){this[_0x2d6f('0x13')]||(this['isCollapsed']=!0x0);}[_0x2d6f('0x8')](){this['element'][_0x2d6f('0x8')]();}async[_0x2d6f('0x1')](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}[_0x2d6f('0x15')](){this['isEditMode']||(this[_0x2d6f('0x13')]=!0x0,this[_0x2d6f('0x3')]['remove'](0x0)[_0x2d6f('0x1')](),this[_0x2d6f('0x3')]['add'](this[_0x2d6f('0x18')]()));}[_0x2d6f('0x2')](){this['isEditMode']&&(this[_0x2d6f('0x13')]=!0x1,this[_0x2d6f('0x3')]['remove'](0x0)[_0x2d6f('0x1')](),this[_0x2d6f('0x3')][_0x2d6f('0x7')](this[_0x2d6f('0xd')]()));}['_createCommentContentView'](){const _0x35818f=new _0x4bfd79(this[_0x2d6f('0x16')]);return _0x35818f[_0x2d6f('0x17')]('content')['to'](this[_0x2d6f('0x12')],_0x2d6f('0x11'),this,'isCollapsed',(_0x3716f8,_0x2fc29c)=>_0x2fc29c?_0x576d5e(_0x3716f8,{'limit':this[_0x2d6f('0x10')][_0x2d6f('0x4')]}):_0x3716f8),_0x35818f;}[_0x2d6f('0x18')](){this[_0x2d6f('0x10')][_0x2d6f('0xc')]||(this['_config'][_0x2d6f('0xc')]={}),this[_0x2d6f('0x10')][_0x2d6f('0xc')]['initialData']=this[_0x2d6f('0x12')][_0x2d6f('0x11')];const _0x1c9372=new _0x1a9fd4(this[_0x2d6f('0x16')],this['_config'][_0x2d6f('0xc')]);return _0x1c9372[_0x2d6f('0x14')]=this[_0x2d6f('0x12')][_0x2d6f('0x11')],_0x1c9372[_0x2d6f('0x17')]('disabledSubmit')['to'](this['_model'],_0x2d6f('0x6')),_0x1c9372['on']('submit',(_0x163a27,_0x46cd98)=>{this[_0x2d6f('0xa')]('updateComment',this[_0x2d6f('0x12')]['id'],_0x46cd98),this[_0x2d6f('0x2')](),this[_0x2d6f('0x8')]();}),_0x1c9372['on'](_0x2d6f('0xb'),()=>{this[_0x2d6f('0x2')](),this[_0x2d6f('0x8')]();}),_0x1c9372['once'](_0x2d6f('0x0'),()=>{_0x1c9372[_0x2d6f('0x8')]();}),_0x1c9372;}}
23
+ const _0x4226=['editorConfig','disabledSubmit','isEditMode','switchToDisplayMode','destroy','locale','content','collapse','add','isCollapsed','_createCommentInputView','visibleView','_model','isReadOnly','maxCommentCharsWhenCollapsed','_config','once','set','bind','submit','updateComment','initialData','focus','switchToEditMode','value','cancel','editorReady','_createCommentContentView'];(function(_0x4452bb,_0x422665){const _0x41ab00=function(_0x4125af){while(--_0x4125af){_0x4452bb['push'](_0x4452bb['shift']());}};_0x41ab00(++_0x422665);}(_0x4226,0x183));const _0x41ab=function(_0x4452bb,_0x422665){_0x4452bb=_0x4452bb-0x0;let _0x41ab00=_0x4226[_0x4452bb];return _0x41ab00;};import{View as _0x1e6adf}from'ckeditor5/src/ui';import _0x2049a8 from'./commentcontentview';import _0xa41e3e from'./commentinputview';import _0x5ae84b from'../../../utils/trim-html';export default class Vt extends _0x1e6adf{constructor(_0x18003b,_0xc4ae62,_0x3928ab){super(_0x18003b),this[_0x41ab('0x11')]=_0xc4ae62,this['_config']=_0x3928ab,this['set'](_0x41ab('0x7'),!0x1),this[_0x41ab('0x16')](_0x41ab('0xe'),!0x0),this[_0x41ab('0x10')]=this['createCollection'](),this[_0x41ab('0x10')][_0x41ab('0xd')](this[_0x41ab('0x4')]());}['expand'](){this['isCollapsed']=!0x1;}[_0x41ab('0xc')](){this[_0x41ab('0x7')]||(this[_0x41ab('0xe')]=!0x0);}[_0x41ab('0x1b')](){this['element'][_0x41ab('0x1b')]();}async[_0x41ab('0x9')](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}[_0x41ab('0x0')](){this[_0x41ab('0x7')]||(this[_0x41ab('0x7')]=!0x0,this[_0x41ab('0x10')]['remove'](0x0)[_0x41ab('0x9')](),this[_0x41ab('0x10')][_0x41ab('0xd')](this['_createCommentInputView']()));}[_0x41ab('0x8')](){this[_0x41ab('0x7')]&&(this[_0x41ab('0x7')]=!0x1,this[_0x41ab('0x10')]['remove'](0x0)[_0x41ab('0x9')](),this[_0x41ab('0x10')][_0x41ab('0xd')](this[_0x41ab('0x4')]()));}[_0x41ab('0x4')](){const _0x5e11fb=new _0x2049a8(this[_0x41ab('0xa')]);return _0x5e11fb['bind']('content')['to'](this[_0x41ab('0x11')],_0x41ab('0xb'),this,_0x41ab('0xe'),(_0x5064e6,_0x4a2946)=>_0x4a2946?_0x5ae84b(_0x5064e6,{'limit':this[_0x41ab('0x14')][_0x41ab('0x13')]}):_0x5064e6),_0x5e11fb;}[_0x41ab('0xf')](){this[_0x41ab('0x14')][_0x41ab('0x5')]||(this['_config']['editorConfig']={}),this['_config']['editorConfig'][_0x41ab('0x1a')]=this[_0x41ab('0x11')][_0x41ab('0xb')];const _0x4b2202=new _0xa41e3e(this[_0x41ab('0xa')],this[_0x41ab('0x14')][_0x41ab('0x5')]);return _0x4b2202[_0x41ab('0x1')]=this[_0x41ab('0x11')][_0x41ab('0xb')],_0x4b2202[_0x41ab('0x17')](_0x41ab('0x6'))['to'](this[_0x41ab('0x11')],_0x41ab('0x12')),_0x4b2202['on'](_0x41ab('0x18'),(_0x505bf7,_0x4d495c)=>{this['fire'](_0x41ab('0x19'),this['_model']['id'],_0x4d495c),this[_0x41ab('0x8')](),this[_0x41ab('0x1b')]();}),_0x4b2202['on'](_0x41ab('0x2'),()=>{this[_0x41ab('0x8')](),this[_0x41ab('0x1b')]();}),_0x4b2202[_0x41ab('0x15')](_0x41ab('0x3'),()=>{_0x4b2202[_0x41ab('0x1b')]();}),_0x4b2202;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as bt}from'ckeditor5/src/ui';export default class Nt extends bt{constructor(_0x144bcc){super(_0x144bcc);const {t:t}=_0x144bcc,_0x429227=this['bindTemplate'];this['set']('count'),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x429227['to']('count',_0x1f474b=>t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x1f474b))}]});}}
23
+ import{View as bt}from'ckeditor5/src/ui';export default class Nt extends bt{constructor(_0x566eae){super(_0x566eae);const {t:t}=_0x566eae,_0x4653a6=this['bindTemplate'];this['set']('count'),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4653a6['to']('count',_0x121f37=>t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x121f37))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2fb9=['ck-annotation__content','content','render','element','div','change:content','ck-comment__content','set'];(function(_0x5d3a0a,_0x2fb991){var _0x40a6c6=function(_0xfea59a){while(--_0xfea59a){_0x5d3a0a['push'](_0x5d3a0a['shift']());}};_0x40a6c6(++_0x2fb991);}(_0x2fb9,0x1eb));var _0x40a6=function(_0x5d3a0a,_0x2fb991){_0x5d3a0a=_0x5d3a0a-0x0;var _0x40a6c6=_0x2fb9[_0x5d3a0a];return _0x40a6c6;};import{View as _0x8d84f9}from'ckeditor5/src/ui';export default class Mt extends _0x8d84f9{constructor(_0x52cbd3){super(_0x52cbd3),this[_0x40a6('0x4')](_0x40a6('0x6'),''),this['setTemplate']({'tag':_0x40a6('0x1'),'attributes':{'class':[_0x40a6('0x3'),_0x40a6('0x5')]}});}[_0x40a6('0x7')](){super[_0x40a6('0x7')](),this['on'](_0x40a6('0x2'),(_0x5ed82a,_0x400fd2,_0x437708)=>{this[_0x40a6('0x0')]['innerHTML']=_0x437708;}),this['element']['innerHTML']=this[_0x40a6('0x6')];}}
23
+ var _0x5041=['ck-comment__content','render','element','content','set','innerHTML'];(function(_0x12cd69,_0x5041e1){var _0x5a32e8=function(_0x5decc7){while(--_0x5decc7){_0x12cd69['push'](_0x12cd69['shift']());}};_0x5a32e8(++_0x5041e1);}(_0x5041,0xb3));var _0x5a32=function(_0x12cd69,_0x5041e1){_0x12cd69=_0x12cd69-0x0;var _0x5a32e8=_0x5041[_0x12cd69];return _0x5a32e8;};import{View as _0x4412f7}from'ckeditor5/src/ui';export default class Mt extends _0x4412f7{constructor(_0x5ba408){super(_0x5ba408),this[_0x5a32('0x5')]('content',''),this['setTemplate']({'tag':'div','attributes':{'class':[_0x5a32('0x1'),'ck-annotation__content']}});}[_0x5a32('0x2')](){super[_0x5a32('0x2')](),this['on']('change:content',(_0x3e1209,_0x37cbaf,_0x2b1169)=>{this[_0x5a32('0x3')][_0x5a32('0x0')]=_0x2b1169;}),this[_0x5a32('0x3')][_0x5a32('0x0')]=this[_0x5a32('0x4')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as bt,ViewCollection as St,FocusCycler as Gt,ButtonView as mt}from'ckeditor5/src/ui';import{FocusTracker as _0x4ce599,KeystrokeHandler as pt}from'ckeditor5/src/utils';import{icons as Yt}from'ckeditor5/src/core';import zt from'../commenteditor/commenteditor';export default class Et extends bt{constructor(_0x2aa90e,_0x505977={}){super(_0x2aa90e);const {t:t}=_0x2aa90e;this['editor']=new zt(_0x505977),this['keystrokes']=new pt(),this['focusTracker']=new _0x4ce599(),this['set']('value',_0x505977['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',t('Reply...')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x62a687,_0x575bc1)=>{this['cancelButtonView']['fire']('execute'),_0x575bc1();}),this['on']('submit',(_0xb376a2,_0x395f60)=>{_0x395f60['length']>0xfa0?(alert(t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},[_0x395f60['length'],0xfa0])),_0xb376a2['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x500cb3,element:_0x389127}=this;this['keystrokes']['listenTo'](_0x389127),this['focusTracker']['add'](_0x389127),this['_editorCreationPromise']=_0x500cb3['create']()['then'](()=>{_0x389127['insertBefore'](_0x500cb3['ui']['element'],_0x389127['firstChild']),_0x500cb3['model']['document']['on']('change',()=>this['value']=_0x500cb3['getData']()),_0x500cb3['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x500cb3),this['fire']('editorReady');});}['focus'](){this['editor']['focus']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['isRendered']&&(await this['_editorCreationPromise'],await this['editor']['destroy']()),await super['destroy']());}['_createSubmitButton'](){const _0x3ae65c=new mt(this['locale']),{t:t}=this['locale'];return _0x3ae65c['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x3ae65c['label']=t('Submit'),_0x3ae65c['icon']=Yt['check'],_0x3ae65c['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x3ae65c['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x4dd607,_0x2ec418)=>!_0x2ec418&&!!_0x4dd607['trim']()),_0x3ae65c;}['_createCancelButton'](){const _0x45581b=new mt(this['locale']),{t:t}=this['locale'];return _0x45581b['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x45581b['label']=t('Cancel'),_0x45581b['icon']=Yt['cancel'],_0x45581b['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x45581b;}['_initializeFocusCycling'](_0x2caae0){const _0x182b91=this['focusTracker'],_0x2e781f=new St();[_0x2caae0['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x572bf0=>{_0x2e781f['add'](_0x572bf0),_0x182b91['add'](_0x572bf0['element']);});const _0x396fec=new Gt({'focusables':_0x2e781f,'focusTracker':_0x182b91});this['keystrokes']['set']('tab',(_0x37adc0,_0x2363c3)=>{_0x396fec['focusNext'](),_0x2363c3();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x26c496,_0xd3fde7)=>{_0x396fec['focusPrevious'](),_0xd3fde7();},{'priority':'low'});}}
23
+ import{View as bt,ViewCollection as St,FocusCycler as Gt,ButtonView as mt}from'ckeditor5/src/ui';import{FocusTracker as _0x52e288,KeystrokeHandler as pt}from'ckeditor5/src/utils';import{icons as Yt}from'ckeditor5/src/core';import zt from'../commenteditor/commenteditor';export default class Et extends bt{constructor(_0x17f159,_0x5ebf4f={}){super(_0x17f159);const {t:t}=_0x17f159;this['editor']=new zt(_0x5ebf4f),this['keystrokes']=new pt(),this['focusTracker']=new _0x52e288(),this['set']('value',_0x5ebf4f['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',t('Reply...')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x43f6ce,_0x464c3a)=>{this['cancelButtonView']['fire']('execute'),_0x464c3a();}),this['on']('submit',(_0x177452,_0x4c320c)=>{_0x4c320c['length']>0xfde8?(alert(t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},[_0x4c320c['length'],0xfde8])),_0x177452['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x115056,element:_0x16b107}=this;this['keystrokes']['listenTo'](_0x16b107),this['focusTracker']['add'](_0x16b107),this['_editorCreationPromise']=_0x115056['create']()['then'](()=>{_0x16b107['insertBefore'](_0x115056['ui']['element'],_0x16b107['firstChild']),_0x115056['model']['document']['on']('change',()=>this['value']=_0x115056['getData']()),_0x115056['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x115056),this['fire']('editorReady');});}['focus'](){this['editor']['focus']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['isRendered']&&(await this['_editorCreationPromise'],await this['editor']['destroy']()),await super['destroy']());}['_createSubmitButton'](){const _0x580103=new mt(this['locale']),{t:t}=this['locale'];return _0x580103['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x580103['label']=t('Submit'),_0x580103['icon']=Yt['check'],_0x580103['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x580103['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x61b5fe,_0x184c7f)=>!_0x184c7f&&!!_0x61b5fe['trim']()),_0x580103;}['_createCancelButton'](){const _0x32867d=new mt(this['locale']),{t:t}=this['locale'];return _0x32867d['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x32867d['label']=t('Cancel'),_0x32867d['icon']=Yt['cancel'],_0x32867d['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x32867d;}['_initializeFocusCycling'](_0x293f05){const _0x31ced7=this['focusTracker'],_0x56f2b0=new St();[_0x293f05['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x25af29=>{_0x56f2b0['add'](_0x25af29),_0x31ced7['add'](_0x25af29['element']);});const _0x43a235=new Gt({'focusables':_0x56f2b0,'focusTracker':_0x31ced7});this['keystrokes']['set']('tab',(_0x5b43db,_0x41141a)=>{_0x43a235['focusNext'](),_0x41141a();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x352195,_0x21ba3d)=>{_0x43a235['focusPrevious'](),_0x21ba3d();},{'priority':'low'});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1944=['listenTo','get','equal','stopListening','updateComment','change:hasDirtyComment','formatDateTime','_shouldCollapse','change:isActive','refreshVisibleViews','ck-thread__comments','comments','_handleNewCommentModel','commentUpdated','viewUid','isEditMode','length','set','_handleRemoveCommentModel','delete','insert','hasDirtyComment','locale','count','isActive','visibleViews','maxThreadTotalWeight','_updateHasDirtyComment','commentViews','bind','setTemplate','_rearrangeCollapse','delegate','_model','remove','_collapsedCommentsView','render','maxCommentsWhenCollapsed','add','some','createCollection','CommentView','_config','from','change:isEditMode','collapse','destroy','_rearrangeExpand','weight'];(function(_0x38a07c,_0x1944fd){const _0x2510a0=function(_0x1ac8e3){while(--_0x1ac8e3){_0x38a07c['push'](_0x38a07c['shift']());}};_0x2510a0(++_0x1944fd);}(_0x1944,0x152));const _0x2510=function(_0x38a07c,_0x1944fd){_0x38a07c=_0x38a07c-0x0;let _0x2510a0=_0x1944[_0x38a07c];return _0x2510a0;};import{View as _0x406042}from'ckeditor5/src/ui';import{diff as _0x1ace5e,Collection as _0x3bc6fd}from'ckeditor5/src/utils';import _0x294d98 from'./collapsedcommentsview';export default class Tt extends _0x406042{constructor(_0x21a0bd,_0x2da1da,_0x39c30c){super(_0x21a0bd),this[_0x2510('0x16')]('hasDirtyComment',!0x1),this[_0x2510('0x16')]('length',_0x2da1da[_0x2510('0x10')][_0x2510('0x15')]),this['set']('isActive',!0x1),this[_0x2510('0x26')]=_0x2da1da,this[_0x2510('0x2f')]=_0x39c30c,this['commentViews']=this[_0x2510('0x2d')](),this[_0x2510('0x1e')]=this['createCollection'](),this['_collapsedCommentsView']=new _0x294d98(_0x21a0bd),this[_0x2510('0x28')][_0x2510('0x22')](_0x2510('0x1c'))['to'](this,_0x2510('0x15'),_0x42e3ee=>_0x42e3ee-this[_0x2510('0x2f')][_0x2510('0x2a')]);for(const _0x5a5a8f of _0x2da1da[_0x2510('0x10')])this[_0x2510('0x11')](_0x5a5a8f);this[_0x2510('0x5')](_0x2da1da[_0x2510('0x10')],_0x2510('0x2b'),(_0x104ab6,_0x54d5ce)=>{this[_0x2510('0x15')]++,this['_handleNewCommentModel'](_0x54d5ce),this[_0x2510('0xe')]();}),this['listenTo'](_0x2da1da['comments'],_0x2510('0x27'),(_0x5baba7,_0x8d4687)=>{this[_0x2510('0x15')]--,this[_0x2510('0x17')](_0x8d4687),this[_0x2510('0xe')]();}),this['listenTo'](_0x2da1da,_0x2510('0x12'),()=>this[_0x2510('0xe')]()),this['on'](_0x2510('0xd'),()=>this[_0x2510('0xe')]()),this['on'](_0x2510('0xa'),()=>this[_0x2510('0xe')]()),this[_0x2510('0x23')]({'tag':'ul','attributes':{'class':[_0x2510('0xf')]},'children':this[_0x2510('0x1e')]});}get[_0x2510('0xc')](){return this['_model'][_0x2510('0x4')]>this[_0x2510('0x2f')][_0x2510('0x1f')]&&!this[_0x2510('0x1d')]&&!this[_0x2510('0x1a')];}[_0x2510('0x29')](){super[_0x2510('0x29')](),this[_0x2510('0xe')]();}['focus'](){this['element']['focus']();}[_0x2510('0x2')](){this[_0x2510('0x28')]['destroy']();for(const _0x29137a of this['commentViews'])_0x29137a[_0x2510('0x2')]();super[_0x2510('0x2')]();}['refreshVisibleViews'](){this['_shouldCollapse']?this[_0x2510('0x24')]():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0xb87bcd){const _0x35fc2b=new this[(_0x2510('0x2f'))][(_0x2510('0x2e'))](this[_0x2510('0x1b')],_0xb87bcd,{'maxCommentCharsWhenCollapsed':this[_0x2510('0x2f')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config'][_0x2510('0xb')],'editorConfig':this[_0x2510('0x2f')]['editorConfig']});_0x35fc2b[_0x2510('0x13')]=_0xb87bcd['id'],_0x35fc2b['delegate']('removeComment')['to'](this),_0x35fc2b[_0x2510('0x25')](_0x2510('0x9'))['to'](this),this[_0x2510('0x5')](_0x35fc2b,_0x2510('0x0'),()=>this[_0x2510('0x20')]()),this[_0x2510('0x21')]['add'](_0x35fc2b);}[_0x2510('0x17')](_0x177829){const _0x2982bf=this[_0x2510('0x21')][_0x2510('0x27')](_0x177829['id']);this[_0x2510('0x8')](_0x2982bf),_0x2982bf[_0x2510('0x14')]&&this[_0x2510('0x20')](),_0x2982bf[_0x2510('0x2')]();}[_0x2510('0x20')](){this[_0x2510('0x1a')]=Array['from'](this[_0x2510('0x21')])[_0x2510('0x2c')](_0x52bdad=>_0x52bdad['isEditMode']);}[_0x2510('0x24')](){const _0x45fb9d=function(_0x3df8d7){const _0x3b6f15=new _0x3bc6fd();for(const _0x2e5b2b of _0x3df8d7)_0x3b6f15[_0x2510('0x2b')](_0x2e5b2b);return _0x3b6f15;}(this[_0x2510('0x21')]),_0x395832=this[_0x2510('0x28')][_0x2510('0x1c')];for(let _0x232bc0=0x1;_0x232bc0<=_0x395832;_0x232bc0++)_0x45fb9d[_0x2510('0x27')](0x1);for(const _0x23f423 of _0x45fb9d)_0x23f423[_0x2510('0x1')]();_0x395832>0x0&&_0x45fb9d['add'](this[_0x2510('0x28')],0x1),Ut(_0x1ace5e(Array[_0x2510('0x30')](this['visibleViews']),Array[_0x2510('0x30')](_0x45fb9d)),this[_0x2510('0x1e')],_0x45fb9d);}[_0x2510('0x3')](){Ut(_0x1ace5e(Array[_0x2510('0x30')](this[_0x2510('0x1e')]),Array['from'](this[_0x2510('0x21')])),this[_0x2510('0x1e')],this[_0x2510('0x21')]);for(const _0x4ef5fd of this[_0x2510('0x1e')])_0x4ef5fd['expand']();}}function Ut(_0x103cc0,_0x20578d,_0x42727a){let _0x3cb5ac=0x0;for(const _0x18aeb6 of _0x103cc0)switch(_0x18aeb6){case _0x2510('0x19'):_0x20578d[_0x2510('0x2b')](_0x42727a[_0x2510('0x6')](_0x3cb5ac),_0x3cb5ac),_0x3cb5ac++;break;case _0x2510('0x18'):_0x20578d[_0x2510('0x27')](_0x3cb5ac);break;case _0x2510('0x7'):_0x3cb5ac++;}}
23
+ const _0xa180=['from','_updateHasDirtyComment','insert','comments','change:isEditMode','weight','set','commentUpdated','visibleViews','delegate','count','destroy','maxThreadTotalWeight','add','listenTo','_rearrangeExpand','CommentView','_config','refreshVisibleViews','isEditMode','equal','change:hasDirtyComment','element','_rearrangeCollapse','createCollection','delete','render','formatDateTime','_model','setTemplate','_handleRemoveCommentModel','remove','expand','length','focus','hasDirtyComment','_collapsedCommentsView','bind','maxCommentsWhenCollapsed','viewUid','_handleNewCommentModel','maxCommentCharsWhenCollapsed','_shouldCollapse','commentViews','ck-thread__comments','change:isActive'];(function(_0x292cc9,_0xa18060){const _0xa1a5ef=function(_0x67fd8){while(--_0x67fd8){_0x292cc9['push'](_0x292cc9['shift']());}};_0xa1a5ef(++_0xa18060);}(_0xa180,0x111));const _0xa1a5=function(_0x292cc9,_0xa18060){_0x292cc9=_0x292cc9-0x0;let _0xa1a5ef=_0xa180[_0x292cc9];return _0xa1a5ef;};import{View as _0x543951}from'ckeditor5/src/ui';import{diff as _0x3f0723,Collection as _0x51ca13}from'ckeditor5/src/utils';import _0x40e95a from'./collapsedcommentsview';export default class Tt extends _0x543951{constructor(_0x416bd8,_0x266860,_0x5a0c4f){super(_0x416bd8),this[_0xa1a5('0x9')]('hasDirtyComment',!0x1),this[_0xa1a5('0x9')](_0xa1a5('0x24'),_0x266860['comments'][_0xa1a5('0x24')]),this[_0xa1a5('0x9')]('isActive',!0x1),this['_model']=_0x266860,this[_0xa1a5('0x14')]=_0x5a0c4f,this['commentViews']=this[_0xa1a5('0x1b')](),this[_0xa1a5('0xb')]=this[_0xa1a5('0x1b')](),this['_collapsedCommentsView']=new _0x40e95a(_0x416bd8),this['_collapsedCommentsView'][_0xa1a5('0x28')](_0xa1a5('0xd'))['to'](this,_0xa1a5('0x24'),_0x5789bb=>_0x5789bb-this[_0xa1a5('0x14')][_0xa1a5('0x29')]);for(const _0x35f08b of _0x266860[_0xa1a5('0x6')])this[_0xa1a5('0x2b')](_0x35f08b);this['listenTo'](_0x266860['comments'],_0xa1a5('0x10'),(_0x294ad1,_0xbaf1ec)=>{this[_0xa1a5('0x24')]++,this[_0xa1a5('0x2b')](_0xbaf1ec),this[_0xa1a5('0x15')]();}),this[_0xa1a5('0x11')](_0x266860[_0xa1a5('0x6')],'remove',(_0xa4f03a,_0x25702f)=>{this[_0xa1a5('0x24')]--,this[_0xa1a5('0x21')](_0x25702f),this[_0xa1a5('0x15')]();}),this['listenTo'](_0x266860,_0xa1a5('0xa'),()=>this[_0xa1a5('0x15')]()),this['on'](_0xa1a5('0x2'),()=>this[_0xa1a5('0x15')]()),this['on'](_0xa1a5('0x18'),()=>this['refreshVisibleViews']()),this[_0xa1a5('0x20')]({'tag':'ul','attributes':{'class':[_0xa1a5('0x1')]},'children':this[_0xa1a5('0xb')]});}get[_0xa1a5('0x2d')](){return this[_0xa1a5('0x1f')][_0xa1a5('0x8')]>this[_0xa1a5('0x14')][_0xa1a5('0xf')]&&!this['isActive']&&!this[_0xa1a5('0x26')];}[_0xa1a5('0x1d')](){super[_0xa1a5('0x1d')](),this['refreshVisibleViews']();}[_0xa1a5('0x25')](){this[_0xa1a5('0x19')][_0xa1a5('0x25')]();}[_0xa1a5('0xe')](){this[_0xa1a5('0x27')]['destroy']();for(const _0x567f75 of this[_0xa1a5('0x0')])_0x567f75['destroy']();super[_0xa1a5('0xe')]();}[_0xa1a5('0x15')](){this[_0xa1a5('0x2d')]?this[_0xa1a5('0x1a')]():this[_0xa1a5('0x12')]();}[_0xa1a5('0x2b')](_0x17d349){const _0x13ad43=new this[(_0xa1a5('0x14'))][(_0xa1a5('0x13'))](this['locale'],_0x17d349,{'maxCommentCharsWhenCollapsed':this[_0xa1a5('0x14')][_0xa1a5('0x2c')],'formatDateTime':this['_config'][_0xa1a5('0x1e')],'editorConfig':this[_0xa1a5('0x14')]['editorConfig']});_0x13ad43[_0xa1a5('0x2a')]=_0x17d349['id'],_0x13ad43[_0xa1a5('0xc')]('removeComment')['to'](this),_0x13ad43[_0xa1a5('0xc')]('updateComment')['to'](this),this[_0xa1a5('0x11')](_0x13ad43,_0xa1a5('0x7'),()=>this[_0xa1a5('0x4')]()),this['commentViews']['add'](_0x13ad43);}['_handleRemoveCommentModel'](_0xb4954f){const _0x1adff4=this['commentViews']['remove'](_0xb4954f['id']);this['stopListening'](_0x1adff4),_0x1adff4[_0xa1a5('0x16')]&&this[_0xa1a5('0x4')](),_0x1adff4[_0xa1a5('0xe')]();}[_0xa1a5('0x4')](){this[_0xa1a5('0x26')]=Array[_0xa1a5('0x3')](this[_0xa1a5('0x0')])['some'](_0x2f8886=>_0x2f8886[_0xa1a5('0x16')]);}['_rearrangeCollapse'](){const _0xc13fa1=function(_0x111fa5){const _0x58f1f9=new _0x51ca13();for(const _0x575a90 of _0x111fa5)_0x58f1f9[_0xa1a5('0x10')](_0x575a90);return _0x58f1f9;}(this[_0xa1a5('0x0')]),_0x2d8536=this['_collapsedCommentsView'][_0xa1a5('0xd')];for(let _0x5db0a7=0x1;_0x5db0a7<=_0x2d8536;_0x5db0a7++)_0xc13fa1[_0xa1a5('0x22')](0x1);for(const _0x3ce02c of _0xc13fa1)_0x3ce02c['collapse']();_0x2d8536>0x0&&_0xc13fa1['add'](this[_0xa1a5('0x27')],0x1),Ut(_0x3f0723(Array[_0xa1a5('0x3')](this['visibleViews']),Array[_0xa1a5('0x3')](_0xc13fa1)),this[_0xa1a5('0xb')],_0xc13fa1);}['_rearrangeExpand'](){Ut(_0x3f0723(Array[_0xa1a5('0x3')](this[_0xa1a5('0xb')]),Array[_0xa1a5('0x3')](this[_0xa1a5('0x0')])),this[_0xa1a5('0xb')],this[_0xa1a5('0x0')]);for(const _0x3fb007 of this[_0xa1a5('0xb')])_0x3fb007[_0xa1a5('0x23')]();}}function Ut(_0x3fb33a,_0xa98444,_0x35e0c0){let _0x47cb2e=0x0;for(const _0x27b319 of _0x3fb33a)switch(_0x27b319){case _0xa1a5('0x5'):_0xa98444[_0xa1a5('0x10')](_0x35e0c0['get'](_0x47cb2e),_0x47cb2e),_0x47cb2e++;break;case _0xa1a5('0x1c'):_0xa98444[_0xa1a5('0x22')](_0x47cb2e);break;case _0xa1a5('0x17'):_0x47cb2e++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4215=['ck-thread__input','commentInputView','ck-comment__input-container','isFocused','bind','destroy','showInput','ck-comment__input-container--active','setTemplate','showButtons','value','then','div','extendTemplate','focusTracker','userView'];(function(_0x2647e5,_0x4215e4){var _0x5b2236=function(_0x47c342){while(--_0x47c342){_0x2647e5['push'](_0x2647e5['shift']());}};_0x5b2236(++_0x4215e4);}(_0x4215,0x104));var _0x5b22=function(_0x2647e5,_0x4215e4){_0x2647e5=_0x2647e5-0x0;var _0x5b2236=_0x4215[_0x2647e5];return _0x5b2236;};import{View as _0x4d0a70}from'ckeditor5/src/ui';import _0x23642e from'./commentinputview';import _0xd28301 from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';export default class Rt extends _0x4d0a70{constructor(_0x3cb23a,_0x1e5b8a,_0x4e88d3){super(_0x3cb23a),this[_0x5b22('0xd')]=new _0x23642e(_0x3cb23a,_0x4e88d3),this['commentInputView'][_0x5b22('0x0')](_0x5b22('0x5'))['to'](this[_0x5b22('0xd')][_0x5b22('0xa')],_0x5b22('0xf'),this[_0x5b22('0xd')],_0x5b22('0x6'),(_0x4e90fb,_0x3d62f3)=>_0x4e90fb||!!_0x3d62f3),this['set'](_0x5b22('0x2'),!0x1),this[_0x5b22('0xb')]=new _0xd28301(_0x3cb23a,_0x1e5b8a),this[_0x5b22('0xb')]['extendTemplate']({'attributes':{'class':'ck-thread__user'}}),this[_0x5b22('0xd')][_0x5b22('0x9')]({'attributes':{'class':_0x5b22('0xc')}}),this[_0x5b22('0x4')]({'tag':_0x5b22('0x8'),'attributes':{'class':[_0x5b22('0xe'),this['bindTemplate']['if'](_0x5b22('0x2'),_0x5b22('0x3'))]},'children':[this[_0x5b22('0xb')],this[_0x5b22('0xd')]]});}[_0x5b22('0x1')](){return this[_0x5b22('0xd')]['destroy']()[_0x5b22('0x7')](()=>super['destroy']());}}
23
+ var _0x526f=['userView','bindTemplate','focusTracker','extendTemplate','set','showButtons','ck-comment__input-container','bind','then','destroy','ck-comment__input-container--active','commentInputView','div','ck-thread__input','showInput','isFocused','value','ck-thread__user'];(function(_0x2a6ad9,_0x526f84){var _0x2175a3=function(_0x3295b3){while(--_0x3295b3){_0x2a6ad9['push'](_0x2a6ad9['shift']());}};_0x2175a3(++_0x526f84);}(_0x526f,0x6f));var _0x2175=function(_0x2a6ad9,_0x526f84){_0x2a6ad9=_0x2a6ad9-0x0;var _0x2175a3=_0x526f[_0x2a6ad9];return _0x2175a3;};import{View as _0x4f775c}from'ckeditor5/src/ui';import _0x37da92 from'./commentinputview';import _0x5efbbf from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';export default class Rt extends _0x4f775c{constructor(_0x2cc481,_0x24c350,_0x5dd81b){super(_0x2cc481),this[_0x2175('0x8')]=new _0x37da92(_0x2cc481,_0x5dd81b),this[_0x2175('0x8')][_0x2175('0x4')](_0x2175('0x2'))['to'](this[_0x2175('0x8')][_0x2175('0x11')],_0x2175('0xc'),this[_0x2175('0x8')],_0x2175('0xd'),(_0x389cef,_0x3876d1)=>_0x389cef||!!_0x3876d1),this[_0x2175('0x1')](_0x2175('0xb'),!0x1),this['userView']=new _0x5efbbf(_0x2cc481,_0x24c350),this['userView']['extendTemplate']({'attributes':{'class':_0x2175('0xe')}}),this[_0x2175('0x8')][_0x2175('0x0')]({'attributes':{'class':_0x2175('0xa')}}),this['setTemplate']({'tag':_0x2175('0x9'),'attributes':{'class':[_0x2175('0x3'),this[_0x2175('0x10')]['if'](_0x2175('0xb'),_0x2175('0x7'))]},'children':[this[_0x2175('0xf')],this['commentInputView']]});}[_0x2175('0x6')](){return this[_0x2175('0x8')][_0x2175('0x6')]()[_0x2175('0x5')](()=>super['destroy']());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import It from'./basecommentthreadview';import{mix as _0x3cc0c9}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class et extends It{constructor(_0x5894d4,_0xfcec23,_0x4624d2,_0x143dda){super(_0x5894d4,_0xfcec23,_0x4624d2,_0x143dda),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x5894d4,this['setTemplate'](this['_getTemplate']()),this['on']('change:isActive',(_0x43ab65,_0x1f165f,_0x4e5d79)=>{_0x4e5d79||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x54eac2,_0x2ecf63,_0x453c46)=>{_0x453c46&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x136823=>{this['_bindFirstCommentView'](),_0x136823['off']();});}['_getTemplate'](){const _0x522873=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x522873['if']('isActive','ck-thread--active'),_0x522873['if']('isConfirm','ck-thread--remove-confirmation'),_0x522873['to']('actionIndicator',_0x837874=>_0x837874?'ck-thread--'+_0x837874:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':[this['commentsListView'],this['commentThreadInputView']]}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x584615 of this['commentsListView']['commentViews'])_0x584615['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x560225=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x560225,'actionIndicator',_0x962e85=>'remove'===_0x962e85?'remove':null),_0x560225['placeholder']=t('Write\x20a\x20comment...'),_0x560225['removeButton']['on']('execute',_0x292a95=>{_0x292a95['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x3cc0c9(et,Wt);
23
+ import It from'./basecommentthreadview';import{mix as _0x397ece}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class et extends It{constructor(_0x5db37e,_0x40052d,_0x4134d7,_0x476f79){super(_0x5db37e,_0x40052d,_0x4134d7,_0x476f79),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x5db37e,this['setTemplate'](this['_getTemplate']()),this['on']('change:isActive',(_0x40b1ce,_0x47ce2b,_0x367c6b)=>{_0x367c6b||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x2408e8,_0x552be9,_0x31deb6)=>{_0x31deb6&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x59b52b=>{this['_bindFirstCommentView'](),_0x59b52b['off']();});}['_getTemplate'](){const _0x1fca07=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x1fca07['if']('isActive','ck-thread--active'),_0x1fca07['if']('isConfirm','ck-thread--remove-confirmation'),_0x1fca07['to']('actionIndicator',_0x4c6dd4=>_0x4c6dd4?'ck-thread--'+_0x4c6dd4:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':[this['commentsListView'],this['commentThreadInputView']]}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x137bc4 of this['commentsListView']['commentViews'])_0x137bc4['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x51664a=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x51664a,'actionIndicator',_0xba5f10=>'remove'===_0xba5f10?'remove':null),_0x51664a['placeholder']=t('Write\x20a\x20comment...'),_0x51664a['removeButton']['on']('execute',_0x2ed9c0=>{_0x2ed9c0['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x397ece(et,Wt);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{mix as _0x2e20af}from'ckeditor5/src/utils';import{ButtonView as mt}from'ckeditor5/src/ui';import Vt from'./basecommentview';import Jt from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import{icons as Yt}from'ckeditor5/src/core';import Kt from'../../../../theme/icons/remove-comment.svg';import Wt from'./confirmmixin';export default class nt extends Vt{constructor(_0x29c6b1,_0x363418,_0x1072e9){super(_0x29c6b1,_0x363418,_0x1072e9);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x363418),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new Jt(_0x29c6b1,_0x363418['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x363418,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['_getTemplate']());}['_getTemplate'](){const _0x17572c=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x17572c['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x17572c['if']('isEditMode','ck-comment--edit'),_0x17572c['to']('actionIndicator',_0x5b65e4=>_0x5b65e4?'ck-comment--'+_0x5b65e4:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x17572c['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x17572c['to']('createdAt',_0x41f7a8=>this['_config']['formatDateTime'](_0x41f7a8))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x17572c['if']('isEditMode','ck-comment__actions--hidden'),_0x17572c['if']('isEditMode','ck-annotation__actions--hidden')]},'children':[this['editButton'],this['removeButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}]}]}]};}['_createEditButton'](){const {t:t}=this['locale'],_0x198be7=new mt(this['locale']);return _0x198be7['label']=t('Edit'),_0x198be7['icon']=Yt['pencil'],_0x198be7['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x198be7['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x122112=>!_0x122112),_0x198be7['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x198be7['on']('execute',()=>this['switchToEditMode']()),_0x198be7;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x2487ad=new mt(this['locale']);return _0x2487ad['label']=t('Remove'),_0x2487ad['icon']=Kt,_0x2487ad['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x2487ad['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3e7501=>!_0x3e7501),_0x2487ad['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x2487ad['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x2487ad;}['_attachActions'](_0x19e1f7,_0x4cdd6a){this['listenTo'](_0x19e1f7,'mouseenter',()=>this['actionIndicator']=_0x4cdd6a),this['listenTo'](_0x19e1f7,'focus',()=>this['actionIndicator']=_0x4cdd6a),this['listenTo'](_0x19e1f7,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x19e1f7,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0x459253=super['_createCommentInputView']();return _0x459253['bind']('placeholder')['to'](this),_0x459253;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x2e20af(nt,Wt);
23
+ import{mix as _0x5d3c69}from'ckeditor5/src/utils';import{ButtonView as mt}from'ckeditor5/src/ui';import Vt from'./basecommentview';import Jt from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import{icons as Yt}from'ckeditor5/src/core';import Kt from'../../../../theme/icons/remove-comment.svg';import Wt from'./confirmmixin';export default class nt extends Vt{constructor(_0x389e43,_0x5c1e53,_0x281cae){super(_0x389e43,_0x5c1e53,_0x281cae);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x5c1e53),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new Jt(_0x389e43,_0x5c1e53['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x5c1e53,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['_getTemplate']());}['_getTemplate'](){const _0x2cff3c=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2cff3c['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x2cff3c['if']('isEditMode','ck-comment--edit'),_0x2cff3c['to']('actionIndicator',_0x40da0b=>_0x40da0b?'ck-comment--'+_0x40da0b:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x2cff3c['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2cff3c['to']('createdAt',_0x4c18eb=>this['_config']['formatDateTime'](_0x4c18eb))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x2cff3c['if']('isEditMode','ck-comment__actions--hidden'),_0x2cff3c['if']('isEditMode','ck-annotation__actions--hidden')]},'children':[this['editButton'],this['removeButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}]}]}]};}['_createEditButton'](){const {t:t}=this['locale'],_0x391d39=new mt(this['locale']);return _0x391d39['label']=t('Edit'),_0x391d39['icon']=Yt['pencil'],_0x391d39['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x391d39['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x139a1d=>!_0x139a1d),_0x391d39['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x391d39['on']('execute',()=>this['switchToEditMode']()),_0x391d39;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x489601=new mt(this['locale']);return _0x489601['label']=t('Remove'),_0x489601['icon']=Kt,_0x489601['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x489601['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x26cd5a=>!_0x26cd5a),_0x489601['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x489601['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x489601;}['_attachActions'](_0x3a61bd,_0x57fc7a){this['listenTo'](_0x3a61bd,'mouseenter',()=>this['actionIndicator']=_0x57fc7a),this['listenTo'](_0x3a61bd,'focus',()=>this['actionIndicator']=_0x57fc7a),this['listenTo'](_0x3a61bd,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x3a61bd,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0x28ad35=super['_createCommentInputView']();return _0x28ad35['bind']('placeholder')['to'](this),_0x28ad35;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x5d3c69(nt,Wt);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5b56=['appendChild','_removeConfirm','cancel','deregisterChild','remove','destroy','confirmView','isConfirm','locale','once','message','element','render','fire','set','submit'];(function(_0x45b71d,_0x5b56c6){var _0x3bacce=function(_0x17f156){while(--_0x17f156){_0x45b71d['push'](_0x45b71d['shift']());}};_0x3bacce(++_0x5b56c6);}(_0x5b56,0x189));var _0x3bac=function(_0x45b71d,_0x5b56c6){_0x45b71d=_0x45b71d-0x0;var _0x3bacce=_0x5b56[_0x45b71d];return _0x3bacce;};import _0x2628a0 from'./confirmview';export default{'showConfirm'(_0x45275c,_0x399d3b){return this['confirmView']=new _0x2628a0(this[_0x3bac('0xf')]),this['confirmView'][_0x3bac('0x3')](),this[_0x3bac('0xd')][_0x3bac('0x1')]=_0x45275c,this[_0x3bac('0xd')]['once']('cancel',()=>{this[_0x3bac('0x8')]();}),this[_0x3bac('0xd')][_0x3bac('0x0')](_0x3bac('0x6'),()=>{this['_removeConfirm']();}),_0x399d3b[_0x3bac('0x7')](this[_0x3bac('0xd')][_0x3bac('0x2')]),this['registerChild'](this[_0x3bac('0xd')]),this[_0x3bac('0x5')](_0x3bac('0xe'),!0x0),new Promise(_0xe184b3=>this[_0x3bac('0xd')]['on'](_0x3bac('0x6'),_0xe184b3));},'cancelConfirm'(){this[_0x3bac('0xe')]&&this[_0x3bac('0xd')][_0x3bac('0x4')](_0x3bac('0x9'));},'_removeConfirm'(){this[_0x3bac('0xd')][_0x3bac('0x2')][_0x3bac('0xb')](),this[_0x3bac('0xa')](this[_0x3bac('0xd')]),this[_0x3bac('0xe')]=!0x1,this[_0x3bac('0xd')][_0x3bac('0xc')](),delete this[_0x3bac('0xd')];}};
23
+ var _0x4319=['fire','set','appendChild','registerChild','submit','element','render','remove','_removeConfirm','once','deregisterChild','isConfirm','confirmView','cancel','locale','destroy'];(function(_0x5e6f1d,_0x4319fb){var _0x5bee74=function(_0x5d2cd0){while(--_0x5d2cd0){_0x5e6f1d['push'](_0x5e6f1d['shift']());}};_0x5bee74(++_0x4319fb);}(_0x4319,0x1f1));var _0x5bee=function(_0x5e6f1d,_0x4319fb){_0x5e6f1d=_0x5e6f1d-0x0;var _0x5bee74=_0x4319[_0x5e6f1d];return _0x5bee74;};import _0xa8ccc8 from'./confirmview';export default{'showConfirm'(_0x443e72,_0x3a03e6){return this[_0x5bee('0xb')]=new _0xa8ccc8(this[_0x5bee('0xd')]),this[_0x5bee('0xb')][_0x5bee('0x5')](),this['confirmView']['message']=_0x443e72,this['confirmView'][_0x5bee('0x8')](_0x5bee('0xc'),()=>{this[_0x5bee('0x7')]();}),this['confirmView'][_0x5bee('0x8')]('submit',()=>{this[_0x5bee('0x7')]();}),_0x3a03e6[_0x5bee('0x1')](this['confirmView']['element']),this[_0x5bee('0x2')](this[_0x5bee('0xb')]),this[_0x5bee('0x0')](_0x5bee('0xa'),!0x0),new Promise(_0x108ade=>this[_0x5bee('0xb')]['on'](_0x5bee('0x3'),_0x108ade));},'cancelConfirm'(){this[_0x5bee('0xa')]&&this[_0x5bee('0xb')][_0x5bee('0xf')](_0x5bee('0xc'));},'_removeConfirm'(){this[_0x5bee('0xb')][_0x5bee('0x4')][_0x5bee('0x6')](),this[_0x5bee('0x9')](this[_0x5bee('0xb')]),this[_0x5bee('0xa')]=!0x1,this['confirmView'][_0x5bee('0xe')](),delete this[_0x5bee('0xb')];}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as bt,ButtonView as mt}from'ckeditor5/src/ui';import{icons as Yt}from'ckeditor5/src/core';export default class ii extends bt{constructor(_0x505d4e){super(_0x505d4e);const {t:t}=_0x505d4e,_0x111023=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x505d4e,t('Yes'),Yt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x505d4e,t('No'),Yt['cancel'],'cancel'),this['set']('message',t('Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x111023['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x471e74,_0x2837e2,_0x10267b,_0x273ad2){const _0x3f57f2=new mt(_0x471e74);return _0x3f57f2['label']=_0x2837e2,_0x3f57f2['icon']=_0x10267b,_0x3f57f2['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x273ad2}}),_0x3f57f2['on']('execute',()=>this['fire'](_0x273ad2)),_0x3f57f2;}}
23
+ import{View as bt,ButtonView as mt}from'ckeditor5/src/ui';import{icons as Yt}from'ckeditor5/src/core';export default class ii extends bt{constructor(_0x2fc29a){super(_0x2fc29a);const {t:t}=_0x2fc29a,_0x586691=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x2fc29a,t('Yes'),Yt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x2fc29a,t('No'),Yt['cancel'],'cancel'),this['set']('message',t('Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x586691['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x47e923,_0x21b0ab,_0x2b510c,_0x3573ba){const _0x230fde=new mt(_0x47e923);return _0x230fde['label']=_0x21b0ab,_0x230fde['icon']=_0x2b510c,_0x230fde['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x3573ba}}),_0x230fde['on']('execute',()=>this['fire'](_0x3573ba)),_0x230fde;}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xb95b=['Comments','pluginName','requires'];(function(_0x145e09,_0xb95ba7){var _0x5a68f4=function(_0x5600cb){while(--_0x5600cb){_0x145e09['push'](_0x145e09['shift']());}};_0x5a68f4(++_0xb95ba7);}(_0xb95b,0xb9));var _0x5a68=function(_0x145e09,_0xb95ba7){_0x145e09=_0x145e09-0x0;var _0x5a68f4=_0xb95b[_0x145e09];return _0x5a68f4;};import{Plugin as _0x3a17f2}from'ckeditor5/src/core';import _0x43f9af from'./comments/commentsrepository';import _0x7dbd96 from'./comments/commentsediting';import _0xc0180c from'./comments/commentsui';import _0x38dc6e from'./commentsonly';import _0x372164 from'./annotations/widesidebar';import _0x49875d from'./annotations/narrowsidebar';import _0x569708 from'./annotations/inlineannotations';export default class c extends _0x3a17f2{static get[_0x5a68('0x0')](){return[_0x43f9af,_0x7dbd96,_0xc0180c,_0x38dc6e,_0x372164,_0x49875d,_0x569708];}static get[_0x5a68('0x2')](){return _0x5a68('0x1');}}
23
+ var _0x5409=['pluginName','requires'];(function(_0x1a03b2,_0x54095a){var _0x3c0948=function(_0x58260a){while(--_0x58260a){_0x1a03b2['push'](_0x1a03b2['shift']());}};_0x3c0948(++_0x54095a);}(_0x5409,0x6a));var _0x3c09=function(_0x1a03b2,_0x54095a){_0x1a03b2=_0x1a03b2-0x0;var _0x3c0948=_0x5409[_0x1a03b2];return _0x3c0948;};import{Plugin as _0x33c462}from'ckeditor5/src/core';import _0x2c7697 from'./comments/commentsrepository';import _0x1c5fc9 from'./comments/commentsediting';import _0x177e2e from'./comments/commentsui';import _0x2589d9 from'./commentsonly';import _0x237a03 from'./annotations/widesidebar';import _0x1b9b63 from'./annotations/narrowsidebar';import _0x2edf6b from'./annotations/inlineannotations';export default class c extends _0x33c462{static get[_0x3c09('0x1')](){return[_0x2c7697,_0x1c5fc9,_0x177e2e,_0x2589d9,_0x237a03,_0x1b9b63,_0x2edf6b];}static get[_0x3c09('0x0')](){return'Comments';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43dc=['highest','commands','pluginName','_allowedCommands','editor','delete','cut','document','get','clipboardInput','editing','commentsOnlyMode','stopListening','exportPdf','view','plugins','forceDisabled','DragDrop','afterInit','_disableCommentsOnlyMode','CommentsOnly','isEnabled','listenTo','set','stop','_enableCommentsOnlyMode','has','clearForceDisabled','requires'];(function(_0x52bd1e,_0x43dc56){const _0x36e1e5=function(_0x1e3bb8){while(--_0x1e3bb8){_0x52bd1e['push'](_0x52bd1e['shift']());}};_0x36e1e5(++_0x43dc56);}(_0x43dc,0x1bf));const _0x36e1=function(_0x52bd1e,_0x43dc56){_0x52bd1e=_0x52bd1e-0x0;let _0x36e1e5=_0x43dc[_0x52bd1e];return _0x36e1e5;};import{Plugin as _0x4eee0a}from'ckeditor5/src/core';import _0x2a1345 from'./comments/commentsediting';export default class e extends _0x4eee0a{static get[_0x36e1('0x13')](){return _0x36e1('0x8');}static get[_0x36e1('0x10')](){return[_0x2a1345];}constructor(_0x37671d){super(_0x37671d),this[_0x36e1('0xb')](_0x36e1('0x9'),null),this['on']('change:isEnabled',(_0x40b7ea,_0x24820a,_0x316298)=>{_0x316298?this[_0x36e1('0xd')]():this[_0x36e1('0x7')]();}),this[_0x36e1('0x14')]=new Set(['addCommentThread','selectAll',_0x36e1('0x1')]);}[_0x36e1('0x6')](){null===this['isEnabled']&&(this[_0x36e1('0x9')]=!!this[_0x36e1('0x15')]['config'][_0x36e1('0x19')]('commentsOnly'));}[_0x36e1('0xd')](){for(const [_0x3c96dd,_0x4cbcb6]of this[_0x36e1('0x15')]['commands'])this['_allowedCommands'][_0x36e1('0xe')](_0x3c96dd)||_0x4cbcb6[_0x36e1('0x4')](_0x36e1('0x1c'));this[_0x36e1('0x15')]['plugins']['has'](_0x36e1('0x5'))&&this[_0x36e1('0x15')][_0x36e1('0x3')][_0x36e1('0x19')]('DragDrop')[_0x36e1('0x4')](_0x36e1('0x1c'));const _0x4fd50d=this['editor'][_0x36e1('0x1b')][_0x36e1('0x2')][_0x36e1('0x18')];this['listenTo'](_0x4fd50d,_0x36e1('0x17'),_0x5833eb=>_0x5833eb['stop'](),{'priority':'highest'}),this[_0x36e1('0xa')](_0x4fd50d,_0x36e1('0x1a'),_0x30676b=>_0x30676b[_0x36e1('0xc')](),{'priority':_0x36e1('0x11')}),this[_0x36e1('0xa')](_0x4fd50d,_0x36e1('0x16'),_0x26b67c=>_0x26b67c['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x20a8dc,_0x129d44]of this[_0x36e1('0x15')][_0x36e1('0x12')])this[_0x36e1('0x14')][_0x36e1('0xe')](_0x20a8dc)||_0x129d44[_0x36e1('0xf')](_0x36e1('0x1c'));this[_0x36e1('0x0')](this['editor']['editing']['view']['document']);}}
23
+ const _0x4bf4=['addCommentThread','view','commentsOnlyMode','get','stopListening','_disableCommentsOnlyMode','isEnabled','stop','editor','set','listenTo','commentsOnly','editing','affectsData','requires','CommentsOnly','_enableCommentsOnlyMode','document','DragDrop','clearForceDisabled','plugins','highest','delete','forceDisabled','has','pluginName','commands'];(function(_0x48e44e,_0x4bf46f){const _0x2e4f85=function(_0x1fc67b){while(--_0x1fc67b){_0x48e44e['push'](_0x48e44e['shift']());}};_0x2e4f85(++_0x4bf46f);}(_0x4bf4,0x196));const _0x2e4f=function(_0x48e44e,_0x4bf46f){_0x48e44e=_0x48e44e-0x0;let _0x2e4f85=_0x4bf4[_0x48e44e];return _0x2e4f85;};import{Plugin as _0x179591}from'ckeditor5/src/core';import _0x1deb6e from'./comments/commentsediting';export default class e extends _0x179591{static get[_0x2e4f('0x18')](){return _0x2e4f('0xe');}static get[_0x2e4f('0xd')](){return[_0x1deb6e];}constructor(_0x2b64bb){super(_0x2b64bb),this[_0x2e4f('0x8')](_0x2e4f('0x5'),null),this['on']('change:isEnabled',(_0x2b44f3,_0xbbbe68,_0x2c66f8)=>{_0x2c66f8?this[_0x2e4f('0xf')]():this['_disableCommentsOnlyMode']();});}['afterInit'](){null===this[_0x2e4f('0x5')]&&(this[_0x2e4f('0x5')]=!!this['editor']['config'][_0x2e4f('0x2')](_0x2e4f('0xa')));}['_enableCommentsOnlyMode'](){for(const [_0x50b384,_0x572aad]of this[_0x2e4f('0x7')][_0x2e4f('0x19')])_0x572aad[_0x2e4f('0xc')]&&_0x2e4f('0x1a')!==_0x50b384&&_0x572aad[_0x2e4f('0x16')]('commentsOnlyMode');this[_0x2e4f('0x7')][_0x2e4f('0x13')][_0x2e4f('0x17')]('DragDrop')&&this[_0x2e4f('0x7')][_0x2e4f('0x13')][_0x2e4f('0x2')](_0x2e4f('0x11'))[_0x2e4f('0x16')](_0x2e4f('0x1'));const _0x27014c=this[_0x2e4f('0x7')][_0x2e4f('0xb')][_0x2e4f('0x0')]['document'];this[_0x2e4f('0x9')](_0x27014c,'cut',_0xd001ef=>_0xd001ef[_0x2e4f('0x6')](),{'priority':_0x2e4f('0x14')}),this['listenTo'](_0x27014c,'clipboardInput',_0x12f50c=>_0x12f50c[_0x2e4f('0x6')](),{'priority':_0x2e4f('0x14')}),this[_0x2e4f('0x9')](_0x27014c,_0x2e4f('0x15'),_0x3ad44f=>_0x3ad44f['stop'](),{'priority':_0x2e4f('0x14')});}[_0x2e4f('0x4')](){for(const [_0x14d906,_0x1a0089]of this['editor'][_0x2e4f('0x19')])_0x1a0089['affectsData']&&_0x2e4f('0x1a')!==_0x14d906&&_0x1a0089[_0x2e4f('0x12')](_0x2e4f('0x1'));this[_0x2e4f('0x3')](this[_0x2e4f('0x7')][_0x2e4f('0xb')]['view'][_0x2e4f('0x10')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x214e22,_0x31e7ae){const t=_0x214e22['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x31e7ae)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
23
+ export function getTranslation(_0x7b4d10,_0x14351e){const t=_0x7b4d10['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x14351e)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x57c4=['childList','cancel','attributes','disconnect','type','attributeName'];(function(_0x529a12,_0x57c42f){const _0x1b4690=function(_0x28b96e){while(--_0x28b96e){_0x529a12['push'](_0x529a12['shift']());}};_0x1b4690(++_0x57c42f);}(_0x57c4,0x1bf));const _0x1b46=function(_0x529a12,_0x57c42f){_0x529a12=_0x529a12-0x0;let _0x1b4690=_0x57c4[_0x529a12];return _0x1b4690;};import{throttle as _0x1326d2}from'lodash-es';export default function ct(_0x91d1b6){const _0x3eef65=_0x1326d2(_0x91d1b6,0x1e),_0x43012f=new MutationObserver(_0x416fae=>{for(const _0x111843 of _0x416fae)(_0x1b46('0x5')==_0x111843[_0x1b46('0x1')]&&'class'==_0x111843[_0x1b46('0x2')]||_0x1b46('0x3')==_0x111843['type'])&&_0x3eef65();});return{'attach'(_0x11454c){_0x43012f['observe'](_0x11454c,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x43012f[_0x1b46('0x0')](),_0x3eef65[_0x1b46('0x4')]();}};}
23
+ const _0x11a0=['disconnect','observe','attributes','type','class','childList','cancel'];(function(_0x3b4eaf,_0x11a09d){const _0x38ccf2=function(_0x41c28e){while(--_0x41c28e){_0x3b4eaf['push'](_0x3b4eaf['shift']());}};_0x38ccf2(++_0x11a09d);}(_0x11a0,0x15d));const _0x38cc=function(_0x3b4eaf,_0x11a09d){_0x3b4eaf=_0x3b4eaf-0x0;let _0x38ccf2=_0x11a0[_0x3b4eaf];return _0x38ccf2;};import{throttle as _0x5eb47b}from'lodash-es';export default function ct(_0x195612){const _0x529206=_0x5eb47b(_0x195612,0x1e),_0xb97f77=new MutationObserver(_0x2f7fec=>{for(const _0xeb9778 of _0x2f7fec)(_0x38cc('0x3')==_0xeb9778[_0x38cc('0x4')]&&_0x38cc('0x5')==_0xeb9778['attributeName']||_0x38cc('0x6')==_0xeb9778[_0x38cc('0x4')])&&_0x529206();});return{'attach'(_0x32caf1){_0xb97f77[_0x38cc('0x2')](_0x32caf1,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0xb97f77[_0x38cc('0x1')](),_0x529206[_0x38cc('0x0')]();}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1eaf=['invalid-date-time-format','function','string','MM-dd-yyyy\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','dateTimeFormat'];(function(_0x54a3b0,_0x1eaf9f){const _0x196726=function(_0x1caa9a){while(--_0x1caa9a){_0x54a3b0['push'](_0x54a3b0['shift']());}};_0x196726(++_0x1eaf9f);}(_0x1eaf,0x1c7));const _0x1967=function(_0x54a3b0,_0x1eaf9f){_0x54a3b0=_0x54a3b0-0x0;let _0x196726=_0x1eaf[_0x54a3b0];return _0x196726;};import _0x2c1624 from'date-fns/format';import _0xcbcdb8 from'date-fns/parseISO';import _0x154921 from'date-fns/differenceInCalendarDays';import _0x5f7c01 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default function J(_0x4d19f3={}){if(void 0x0!==_0x4d19f3['dateTimeFormat']&&_0x1967('0x2')!=typeof _0x4d19f3[_0x1967('0x0')])throw new _0x5f7c01(_0x1967('0x1'));return _0x43d853=>{const _0x276272=_0x1967('0x3')==typeof _0x43d853?_0xcbcdb8(_0x43d853):_0x43d853,_0x29adb2=new Date(),_0x1a8175=_0x154921(_0x29adb2,_0x276272);return _0x4d19f3[_0x1967('0x0')]?_0x4d19f3[_0x1967('0x0')](_0x276272):_0x2c1624(_0x276272,0x0===_0x1a8175?'\x27Today\x27\x20hh:mma':0x1===_0x1a8175?'\x27Yesterday\x27\x20hh:mma':_0x1a8175<0x7?_0x1967('0x5'):_0x1967('0x4'));};}
23
+ const _0x5ed7=['invalid-date-time-format','dateTimeFormat','\x27Last\x27\x20EEEE\x20hh:mma','function','\x27Today\x27\x20hh:mma'];(function(_0x4bcf8d,_0x5ed7af){const _0x505b48=function(_0xc36bcb){while(--_0xc36bcb){_0x4bcf8d['push'](_0x4bcf8d['shift']());}};_0x505b48(++_0x5ed7af);}(_0x5ed7,0x1a2));const _0x505b=function(_0x4bcf8d,_0x5ed7af){_0x4bcf8d=_0x4bcf8d-0x0;let _0x505b48=_0x5ed7[_0x4bcf8d];return _0x505b48;};import _0x57f122 from'date-fns/format';import _0x5eb0cd from'date-fns/parseISO';import _0x506666 from'date-fns/differenceInCalendarDays';import _0x6b54dc from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default function J(_0x2a1ff0={}){if(void 0x0!==_0x2a1ff0[_0x505b('0x3')]&&_0x505b('0x0')!=typeof _0x2a1ff0[_0x505b('0x3')])throw new _0x6b54dc(_0x505b('0x2'));return _0x1b01b4=>{const _0x22873b='string'==typeof _0x1b01b4?_0x5eb0cd(_0x1b01b4):_0x1b01b4,_0x430fa9=new Date(),_0x18fa01=_0x506666(_0x430fa9,_0x22873b);return _0x2a1ff0[_0x505b('0x3')]?_0x2a1ff0[_0x505b('0x3')](_0x22873b):_0x57f122(_0x22873b,0x0===_0x18fa01?_0x505b('0x1'):0x1===_0x18fa01?'\x27Yesterday\x27\x20hh:mma':_0x18fa01<0x7?_0x505b('0x4'):'MM-dd-yyyy\x20hh:mma');};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b9c=['markerNameToElements','name','domConverter','view','mapper','values'];(function(_0x11d8f5,_0x4b9c25){const _0x6713c2=function(_0x5775e3){while(--_0x5775e3){_0x11d8f5['push'](_0x11d8f5['shift']());}};_0x6713c2(++_0x4b9c25);}(_0x4b9c,0xaf));const _0x6713=function(_0x11d8f5,_0x4b9c25){_0x11d8f5=_0x11d8f5-0x0;let _0x6713c2=_0x4b9c[_0x11d8f5];return _0x6713c2;};import _0x37a564 from'@ckeditor/ckeditor5-utils/src/first';export default function M(_0x534ba3,_0x11306d){const _0x4454ba=_0x534ba3[_0x6713('0x3')][_0x6713('0x5')](_0x11306d[_0x6713('0x0')]),_0xb641f2=_0x37a564(_0x4454ba[_0x6713('0x4')]());return _0x534ba3[_0x6713('0x2')][_0x6713('0x1')]['mapViewToDom'](_0xb641f2);}
23
+ const _0x36ab=['values','markerNameToElements','name','domConverter','mapper','view'];(function(_0x4fb680,_0x36ab64){const _0x1bd2e3=function(_0x172699){while(--_0x172699){_0x4fb680['push'](_0x4fb680['shift']());}};_0x1bd2e3(++_0x36ab64);}(_0x36ab,0x1b3));const _0x1bd2=function(_0x4fb680,_0x36ab64){_0x4fb680=_0x4fb680-0x0;let _0x1bd2e3=_0x36ab[_0x4fb680];return _0x1bd2e3;};import _0x379a38 from'@ckeditor/ckeditor5-utils/src/first';export default function M(_0x65a588,_0x453554){const _0x619e78=_0x65a588[_0x1bd2('0x1')][_0x1bd2('0x4')](_0x453554[_0x1bd2('0x5')]),_0x534434=_0x379a38(_0x619e78[_0x1bd2('0x3')]());return _0x65a588[_0x1bd2('0x2')][_0x1bd2('0x0')]['mapViewToDom'](_0x534434);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x38cf=['match','join','replace','startsWith','push','...','indexOf','length','substring','pop'];(function(_0x26d156,_0x38cf70){const _0x29cc6c=function(_0x17d3a5){while(--_0x17d3a5){_0x26d156['push'](_0x26d156['shift']());}};_0x29cc6c(++_0x38cf70);}(_0x38cf,0x107));const _0x29cc=function(_0x26d156,_0x38cf70){_0x26d156=_0x26d156-0x0;let _0x29cc6c=_0x38cf[_0x26d156];return _0x29cc6c;};export default function nn(_0x27cc2f,{limit:_0x258480,suffix:_0x3dc744=_0x29cc('0x2')}){const _0x5cb57b=[];let _0x55cf96=0x0;const _0xeb2166=_0x27cc2f['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0x29cc('0x9')](/^\n/g,'')[_0x29cc('0x9')](/\n$/g,'')['split']('\x0a');for(let _0x107d41=0x0;_0x107d41<_0xeb2166[_0x29cc('0x4')];_0x107d41++){let _0x5a3ec3=_0xeb2166[_0x107d41];const _0x29c6e5=tn(_0x5a3ec3);if(_0x5a3ec3['startsWith']('<')){if(_0x55cf96>=_0x258480){const _0x41ee1d=_0x5a3ec3[_0x29cc('0x7')](/[a-zA-Z]+/)[0x0];_0x5a3ec3[_0x29cc('0x0')]('</')?(_0x5cb57b[_0x29cc('0x4')]&&(_0x5a3ec3=''),_0x5cb57b[_0x29cc('0x6')]()):(_0x5cb57b[_0x29cc('0x1')](_0x41ee1d),_0x5a3ec3='');}}else{if(_0x55cf96>=_0x258480)_0x5a3ec3='';else{if(_0x55cf96+_0x29c6e5['length']>=_0x258480){let _0x5327ec=_0x258480-_0x55cf96;if('\x20'===_0x29c6e5[_0x5327ec-0x1])_0x5327ec--;else{const _0x252640=_0x29c6e5['slice'](_0x5327ec)[_0x29cc('0x3')]('\x20');-0x1!==_0x252640?_0x5327ec+=_0x252640:_0x5327ec=_0x5a3ec3['length'];}_0x5a3ec3=_0x29c6e5['slice'](0x0,_0x5327ec)[_0x29cc('0x8')]('')+_0x3dc744,_0x55cf96=_0x258480;}else _0x55cf96+=_0x29c6e5[_0x29cc('0x4')];}}_0xeb2166[_0x107d41]=_0x5a3ec3;}return _0xeb2166[_0x29cc('0x8')]('\x0a')[_0x29cc('0x9')](/\n/g,'');}function tn(_0x1b9b03){const _0x17cdf3=[];for(let _0x5bc595=0x0;_0x5bc595<_0x1b9b03[_0x29cc('0x4')];_0x5bc595++){const _0x5c7f6b=_0x1b9b03[_0x29cc('0x5')](_0x5bc595)[_0x29cc('0x7')](/^&[a-z0-9#]+;/);if(_0x5c7f6b){const _0x5c075f=_0x5c7f6b[0x0];_0x17cdf3['push'](_0x5c075f),_0x5bc595+=_0x5c075f['length']-0x1;}else _0x17cdf3[_0x29cc('0x1')](_0x1b9b03[_0x5bc595]);}return _0x17cdf3;}
23
+ const _0x1f36=['slice','join','pop','replace','push','startsWith','length','match','indexOf','substring'];(function(_0x10f697,_0x1f36b8){const _0x5433d3=function(_0x119035){while(--_0x119035){_0x10f697['push'](_0x10f697['shift']());}};_0x5433d3(++_0x1f36b8);}(_0x1f36,0xab));const _0x5433=function(_0x10f697,_0x1f36b8){_0x10f697=_0x10f697-0x0;let _0x5433d3=_0x1f36[_0x10f697];return _0x5433d3;};export default function nn(_0x59488e,{limit:_0x5f478e,suffix:_0x199053='...'}){const _0x156d95=[];let _0x27c7cd=0x0;const _0x50c39f=_0x59488e['replace'](/</g,'\x0a<')[_0x5433('0x2')](/>/g,'>\x0a')[_0x5433('0x2')](/^\n/g,'')[_0x5433('0x2')](/\n$/g,'')['split']('\x0a');for(let _0x2623bc=0x0;_0x2623bc<_0x50c39f[_0x5433('0x5')];_0x2623bc++){let _0x431f5f=_0x50c39f[_0x2623bc];const _0x30fa99=tn(_0x431f5f);if(_0x431f5f[_0x5433('0x4')]('<')){if(_0x27c7cd>=_0x5f478e){const _0x3cb775=_0x431f5f[_0x5433('0x6')](/[a-zA-Z]+/)[0x0];_0x431f5f[_0x5433('0x4')]('</')?(_0x156d95[_0x5433('0x5')]&&(_0x431f5f=''),_0x156d95[_0x5433('0x1')]()):(_0x156d95['push'](_0x3cb775),_0x431f5f='');}}else{if(_0x27c7cd>=_0x5f478e)_0x431f5f='';else{if(_0x27c7cd+_0x30fa99['length']>=_0x5f478e){let _0x40285d=_0x5f478e-_0x27c7cd;if('\x20'===_0x30fa99[_0x40285d-0x1])_0x40285d--;else{const _0x2c0aa0=_0x30fa99[_0x5433('0x9')](_0x40285d)[_0x5433('0x7')]('\x20');-0x1!==_0x2c0aa0?_0x40285d+=_0x2c0aa0:_0x40285d=_0x431f5f['length'];}_0x431f5f=_0x30fa99[_0x5433('0x9')](0x0,_0x40285d)[_0x5433('0x0')]('')+_0x199053,_0x27c7cd=_0x5f478e;}else _0x27c7cd+=_0x30fa99[_0x5433('0x5')];}}_0x50c39f[_0x2623bc]=_0x431f5f;}return _0x50c39f[_0x5433('0x0')]('\x0a')[_0x5433('0x2')](/\n/g,'');}function tn(_0x21a7c3){const _0x1cbf43=[];for(let _0x39ec61=0x0;_0x39ec61<_0x21a7c3[_0x5433('0x5')];_0x39ec61++){const _0x155bd2=_0x21a7c3[_0x5433('0x8')](_0x39ec61)['match'](/^&[a-z0-9#]+;/);if(_0x155bd2){const _0x1af5d3=_0x155bd2[0x0];_0x1cbf43[_0x5433('0x3')](_0x1af5d3),_0x39ec61+=_0x1af5d3[_0x5433('0x5')]-0x1;}else _0x1cbf43['push'](_0x21a7c3[_0x39ec61]);}return _0x1cbf43;}
@@ -8,4 +8,4 @@
8
8
 
9
9
  !-->
10
10
 
11
- <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 9.41c0 3.54 3.24 6.42 7.23 6.42 1.03 0 2.02-.19 2.95-.56 1.65.93 1.79.98 3.62 1.63.3.11.57.13.61.05.04-.08.02-.43-.08-.75-.48-1.63-.87-1.77-1.01-3.32a5.87 5.87 0 0 0 1.15-3.47C16.97 5.88 13.72 3 9.73 3S2.5 5.88 2.5 9.41zm9.64 0c0-.52.44-.95.97-.95s.96.43.96.95c0 .53-.43.95-.96.95a.96.96 0 0 1-.97-.95zm-3.37 0c0-.52.43-.95.96-.95.54 0 .97.43.97.95 0 .53-.43.95-.97.95a.96.96 0 0 1-.96-.95zm-3.38 0c0-.52.44-.95.97-.95s.96.43.96.95c0 .53-.43.95-.96.95a.96.96 0 0 1-.97-.95z"/></svg>
11
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 1.5h12A3.5 3.5 0 0 1 19.5 5v8l-.005.192a3.501 3.501 0 0 1-2.927 3.262l-.062.008v1.813a1.5 1.5 0 0 1-2.193 1.33l-.371-.193-.38-.212a13.452 13.452 0 0 1-3.271-2.63l-.062-.07H4A3.5 3.5 0 0 1 .5 13V5A3.5 3.5 0 0 1 4 1.5ZM4 3a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h6.924a11.916 11.916 0 0 0 3.71 3.081l.372.194v-3.268L14.962 15H16a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H4Zm1.55 5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm4.5 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm4.5 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Z"/></svg>
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  :root {
10
- --ck-annotation-counter-icon-size: 18px;
10
+ --ck-annotation-counter-icon-size: 16px;
11
11
  --ck-annotation-counter-number-size: 10px;
12
12
  --ck-color-annotation-counter-comment: hsl(55, 98%, 48%);
13
13
  --ck-color-annotation-counter-suggestion-insertion: hsl(128, 62%, 60%);
@@ -51,7 +51,7 @@
51
51
  font-size: var(--ck-annotation-counter-number-size);
52
52
  font-family: var(--ck-font-face);
53
53
  right: 0;
54
- top: 0;
54
+ top: -6px;
55
55
 
56
56
  /* Improve visibility of counter number. */
57
57
  text-shadow: -1px 0 2px #444, 1px 0 2px #444;
@@ -1,11 +0,0 @@
1
- <!--
2
-
3
- What you're currently looking at is the source code of a legally protected, proprietary software.
4
- CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
- all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
-
7
- Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
8
-
9
- !-->
10
-
11
- <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12 9.4a1 1 0 0 1 2 0c0 .5-.5 1-1 1a1 1 0 0 1-1-1zM8.7 9.4c0-.5.4-1 1-1 .5 0 .9.5.9 1s-.4 1-1 1a1 1 0 0 1-1-1zM6.3 8.5c.5 0 1 .4 1 1 0 .4-.5.9-1 .9a1 1 0 0 1-1-1c0-.5.4-1 1-1z"/><path d="M16 17.4c.6.2 1 .2 1.3-.2V16l-.5-1.1-.3-.7-.3-1.3c.8-1 1.2-2.3 1.2-3.6 0-3.8-3.5-6.9-7.8-6.9-4.2 0-7.7 3-7.7 7 0 3.7 3.5 6.8 7.7 6.8 1 0 2-.1 3-.5 1.4.8 1.6 1 3.4 1.6zm-3.2-2.6h-.4c-.9.4-1.8.5-2.8.5C6 15.3 3 12.7 3 9.4c0-3.2 3-5.9 6.7-5.9 3.8 0 6.8 2.7 6.8 6 0 1-.4 2.2-1 3l-.2.2v.2c0 .7.2 1.2.4 1.8l.3.7a10.4 10.4 0 0 1 .4 1c-1.8-.6-2-.7-3.5-1.6z"/></svg>