@ckeditor/ckeditor5-comments 29.1.0 → 31.1.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 (46) hide show
  1. package/lang/translations/da.po +79 -0
  2. package/lang/translations/id.po +78 -0
  3. package/package.json +8 -8
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.js +1 -1
  6. package/src/annotations/annotations.js +1 -1
  7. package/src/annotations/annotationsuis.js +1 -1
  8. package/src/annotations/editorannotations.js +1 -1
  9. package/src/annotations/inlineannotations.js +1 -1
  10. package/src/annotations/narrowsidebar.js +1 -1
  11. package/src/annotations/sidebar.js +1 -1
  12. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  13. package/src/annotations/view/annotationview.js +1 -1
  14. package/src/annotations/view/sidebaritemview.js +1 -1
  15. package/src/annotations/view/sidebarview.js +1 -1
  16. package/src/annotations/widesidebar.js +1 -1
  17. package/src/comments/addcommentthreadcommand.js +1 -1
  18. package/src/comments/commentsediting.js +1 -1
  19. package/src/comments/commentsrepository.js +1 -1
  20. package/src/comments/commentsui.js +1 -1
  21. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  22. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  23. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  25. package/src/comments/ui/commentthreadcontroller.js +1 -1
  26. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  27. package/src/comments/ui/view/basecommentview.js +1 -1
  28. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  29. package/src/comments/ui/view/commentcontentview.js +1 -1
  30. package/src/comments/ui/view/commentinputview.js +1 -1
  31. package/src/comments/ui/view/commentslistview.js +1 -1
  32. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  33. package/src/comments/ui/view/commentthreadview.js +1 -1
  34. package/src/comments/ui/view/commentview.js +1 -1
  35. package/src/comments/ui/view/confirmmixin.js +1 -1
  36. package/src/comments/ui/view/confirmview.js +1 -1
  37. package/src/comments.js +1 -1
  38. package/src/commentsonly.js +1 -1
  39. package/src/utils/common-translations.js +1 -1
  40. package/src/utils/createmutationobserver.js +1 -1
  41. package/src/utils/getdatetimeformatter.js +1 -1
  42. package/src/utils/getmarkerdomelement.js +1 -1
  43. package/src/utils/trim-html.js +1 -1
  44. package/theme/icons/add-comment.svg +1 -1
  45. package/theme/sidebar-narrow.css +2 -2
  46. package/theme/icons/add-comment-inverted.svg +0 -11
@@ -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 _0x26489a,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(_0x5a9bf5,_0x33da59={}){super(_0x5a9bf5);const {t:t}=_0x5a9bf5;this['editor']=new zt(_0x33da59),this['keystrokes']=new pt(),this['focusTracker']=new _0x26489a(),this['set']('value',_0x33da59['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',(_0x3972f0,_0x3a3132)=>{this['cancelButtonView']['fire']('execute'),_0x3a3132();}),this['on']('submit',(_0x77ce4f,_0x372b0b)=>{_0x372b0b['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'},[_0x372b0b['length'],0xfa0])),_0x77ce4f['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x60c0db,element:_0x3f15a9}=this;this['keystrokes']['listenTo'](_0x3f15a9),this['focusTracker']['add'](_0x3f15a9),this['_editorCreationPromise']=_0x60c0db['create']()['then'](()=>{_0x3f15a9['insertBefore'](_0x60c0db['ui']['element'],_0x3f15a9['firstChild']),_0x60c0db['model']['document']['on']('change',()=>this['value']=_0x60c0db['getData']()),_0x60c0db['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x60c0db),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 _0xf3486a=new mt(this['locale']),{t:t}=this['locale'];return _0xf3486a['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0xf3486a['label']=t('Submit'),_0xf3486a['icon']=Yt['check'],_0xf3486a['on']('execute',()=>{this['fire']('submit',this['value']);}),_0xf3486a['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x475754,_0x161f9a)=>!_0x161f9a&&!!_0x475754['trim']()),_0xf3486a;}['_createCancelButton'](){const _0x2cf4e3=new mt(this['locale']),{t:t}=this['locale'];return _0x2cf4e3['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2cf4e3['label']=t('Cancel'),_0x2cf4e3['icon']=Yt['cancel'],_0x2cf4e3['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2cf4e3;}['_initializeFocusCycling'](_0x2727e6){const _0x507602=this['focusTracker'],_0x33c493=new St();[_0x2727e6['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x57a9f3=>{_0x33c493['add'](_0x57a9f3),_0x507602['add'](_0x57a9f3['element']);});const _0x43d441=new Gt({'focusables':_0x33c493,'focusTracker':_0x507602});this['keystrokes']['set']('tab',(_0x51e48a,_0x534eac)=>{_0x43d441['focusNext'](),_0x534eac();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x3f3b34,_0xa59420)=>{_0x43d441['focusPrevious'](),_0xa59420();},{'priority':'low'});}}
23
+ import{View as bt,ViewCollection as St,FocusCycler as Gt,ButtonView as mt}from'ckeditor5/src/ui';import{FocusTracker as _0x197062,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(_0x3ee17a,_0x5f3ded={}){super(_0x3ee17a);const {t:t}=_0x3ee17a;this['editor']=new zt(_0x5f3ded),this['keystrokes']=new pt(),this['focusTracker']=new _0x197062(),this['set']('value',_0x5f3ded['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',(_0x36bef0,_0x4c54fd)=>{this['cancelButtonView']['fire']('execute'),_0x4c54fd();}),this['on']('submit',(_0x3142dc,_0xcb6aba)=>{_0xcb6aba['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'},[_0xcb6aba['length'],0xfde8])),_0x3142dc['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x53cabf,element:_0x284de3}=this;this['keystrokes']['listenTo'](_0x284de3),this['focusTracker']['add'](_0x284de3),this['_editorCreationPromise']=_0x53cabf['create']()['then'](()=>{_0x284de3['insertBefore'](_0x53cabf['ui']['element'],_0x284de3['firstChild']),_0x53cabf['model']['document']['on']('change',()=>this['value']=_0x53cabf['getData']()),_0x53cabf['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x53cabf),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 _0x3bd5ce=new mt(this['locale']),{t:t}=this['locale'];return _0x3bd5ce['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x3bd5ce['label']=t('Submit'),_0x3bd5ce['icon']=Yt['check'],_0x3bd5ce['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x3bd5ce['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x352ed9,_0x32c5cb)=>!_0x32c5cb&&!!_0x352ed9['trim']()),_0x3bd5ce;}['_createCancelButton'](){const _0x380c24=new mt(this['locale']),{t:t}=this['locale'];return _0x380c24['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x380c24['label']=t('Cancel'),_0x380c24['icon']=Yt['cancel'],_0x380c24['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x380c24;}['_initializeFocusCycling'](_0x120c21){const _0x5dab29=this['focusTracker'],_0x26d2ef=new St();[_0x120c21['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x491d7b=>{_0x26d2ef['add'](_0x491d7b),_0x5dab29['add'](_0x491d7b['element']);});const _0x4b83ce=new Gt({'focusables':_0x26d2ef,'focusTracker':_0x5dab29});this['keystrokes']['set']('tab',(_0x360c28,_0x38da1f)=>{_0x4b83ce['focusNext'](),_0x38da1f();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x25dbc4,_0x35b112)=>{_0x4b83ce['focusPrevious'](),_0x35b112();},{'priority':'low'});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4dc1=['createCollection','add','render','ck-thread__comments','viewUid','_config','destroy','_model','length','setTemplate','_rearrangeCollapse','comments','_updateHasDirtyComment','collapse','commentViews','commentUpdated','change:isActive','removeComment','isActive','count','refreshVisibleViews','listenTo','some','weight','maxCommentsWhenCollapsed','hasDirtyComment','formatDateTime','_handleNewCommentModel','_rearrangeExpand','focus','visibleViews','change:isEditMode','_handleRemoveCommentModel','locale','CommentView','_collapsedCommentsView','_shouldCollapse','set','delegate','isEditMode','remove','updateComment','from','expand'];(function(_0x431852,_0x4dc10d){const _0x22b5eb=function(_0x338a2f){while(--_0x338a2f){_0x431852['push'](_0x431852['shift']());}};_0x22b5eb(++_0x4dc10d);}(_0x4dc1,0x17e));const _0x22b5=function(_0x431852,_0x4dc10d){_0x431852=_0x431852-0x0;let _0x22b5eb=_0x4dc1[_0x431852];return _0x22b5eb;};import{View as _0x2a01fe}from'ckeditor5/src/ui';import{diff as _0x4c0b1e,Collection as _0x1b4caf}from'ckeditor5/src/utils';import _0x2db711 from'./collapsedcommentsview';export default class Tt extends _0x2a01fe{constructor(_0x382eb1,_0x15f84f,_0x4a1886){super(_0x382eb1),this['set'](_0x22b5('0x27'),!0x1),this[_0x22b5('0x7')](_0x22b5('0x16'),_0x15f84f['comments'][_0x22b5('0x16')]),this[_0x22b5('0x7')](_0x22b5('0x20'),!0x1),this[_0x22b5('0x15')]=_0x15f84f,this[_0x22b5('0x13')]=_0x4a1886,this['commentViews']=this[_0x22b5('0xe')](),this[_0x22b5('0x0')]=this[_0x22b5('0xe')](),this[_0x22b5('0x5')]=new _0x2db711(_0x382eb1),this[_0x22b5('0x5')]['bind'](_0x22b5('0x21'))['to'](this,_0x22b5('0x16'),_0x59e18e=>_0x59e18e-this['_config'][_0x22b5('0x26')]);for(const _0x3aedde of _0x15f84f['comments'])this[_0x22b5('0x29')](_0x3aedde);this[_0x22b5('0x23')](_0x15f84f[_0x22b5('0x19')],_0x22b5('0xf'),(_0x302cea,_0x12ad51)=>{this[_0x22b5('0x16')]++,this['_handleNewCommentModel'](_0x12ad51),this[_0x22b5('0x22')]();}),this[_0x22b5('0x23')](_0x15f84f[_0x22b5('0x19')],'remove',(_0x2bd834,_0x52a042)=>{this['length']--,this['_handleRemoveCommentModel'](_0x52a042),this['refreshVisibleViews']();}),this[_0x22b5('0x23')](_0x15f84f,_0x22b5('0x1d'),()=>this[_0x22b5('0x22')]()),this['on'](_0x22b5('0x1e'),()=>this[_0x22b5('0x22')]()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this[_0x22b5('0x17')]({'tag':'ul','attributes':{'class':[_0x22b5('0x11')]},'children':this[_0x22b5('0x0')]});}get[_0x22b5('0x6')](){return this[_0x22b5('0x15')][_0x22b5('0x25')]>this[_0x22b5('0x13')]['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}[_0x22b5('0x10')](){super['render'](),this[_0x22b5('0x22')]();}[_0x22b5('0x2b')](){this['element'][_0x22b5('0x2b')]();}[_0x22b5('0x14')](){this[_0x22b5('0x5')]['destroy']();for(const _0x460bca of this[_0x22b5('0x1c')])_0x460bca[_0x22b5('0x14')]();super[_0x22b5('0x14')]();}[_0x22b5('0x22')](){this['_shouldCollapse']?this[_0x22b5('0x18')]():this[_0x22b5('0x2a')]();}[_0x22b5('0x29')](_0x5dca02){const _0x278cff=new this['_config'][(_0x22b5('0x4'))](this[_0x22b5('0x3')],_0x5dca02,{'maxCommentCharsWhenCollapsed':this[_0x22b5('0x13')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config'][_0x22b5('0x28')],'editorConfig':this[_0x22b5('0x13')]['editorConfig']});_0x278cff[_0x22b5('0x12')]=_0x5dca02['id'],_0x278cff[_0x22b5('0x8')](_0x22b5('0x1f'))['to'](this),_0x278cff[_0x22b5('0x8')](_0x22b5('0xb'))['to'](this),this[_0x22b5('0x23')](_0x278cff,_0x22b5('0x1'),()=>this[_0x22b5('0x1a')]()),this['commentViews'][_0x22b5('0xf')](_0x278cff);}[_0x22b5('0x2')](_0x18e002){const _0x31dd88=this[_0x22b5('0x1c')][_0x22b5('0xa')](_0x18e002['id']);this['stopListening'](_0x31dd88),_0x31dd88[_0x22b5('0x9')]&&this['_updateHasDirtyComment'](),_0x31dd88[_0x22b5('0x14')]();}[_0x22b5('0x1a')](){this[_0x22b5('0x27')]=Array[_0x22b5('0xc')](this[_0x22b5('0x1c')])[_0x22b5('0x24')](_0x253722=>_0x253722['isEditMode']);}[_0x22b5('0x18')](){const _0x4ade89=function(_0x1d5ea5){const _0x163e5f=new _0x1b4caf();for(const _0x5ee192 of _0x1d5ea5)_0x163e5f[_0x22b5('0xf')](_0x5ee192);return _0x163e5f;}(this[_0x22b5('0x1c')]),_0x548985=this[_0x22b5('0x5')][_0x22b5('0x21')];for(let _0x4787ef=0x1;_0x4787ef<=_0x548985;_0x4787ef++)_0x4ade89[_0x22b5('0xa')](0x1);for(const _0x3193e2 of _0x4ade89)_0x3193e2[_0x22b5('0x1b')]();_0x548985>0x0&&_0x4ade89[_0x22b5('0xf')](this[_0x22b5('0x5')],0x1),Ut(_0x4c0b1e(Array[_0x22b5('0xc')](this[_0x22b5('0x0')]),Array[_0x22b5('0xc')](_0x4ade89)),this[_0x22b5('0x0')],_0x4ade89);}['_rearrangeExpand'](){Ut(_0x4c0b1e(Array[_0x22b5('0xc')](this[_0x22b5('0x0')]),Array[_0x22b5('0xc')](this[_0x22b5('0x1c')])),this['visibleViews'],this[_0x22b5('0x1c')]);for(const _0x5a58d2 of this['visibleViews'])_0x5a58d2[_0x22b5('0xd')]();}}function Ut(_0x2d973b,_0x5f4f0f,_0x51b273){let _0x3cebb9=0x0;for(const _0x6d764f of _0x2d973b)switch(_0x6d764f){case'insert':_0x5f4f0f[_0x22b5('0xf')](_0x51b273['get'](_0x3cebb9),_0x3cebb9),_0x3cebb9++;break;case'delete':_0x5f4f0f[_0x22b5('0xa')](_0x3cebb9);break;case'equal':_0x3cebb9++;}}
23
+ const _0x3b52=['comments','_handleRemoveCommentModel','refreshVisibleViews','_config','isEditMode','commentViews','createCollection','_handleNewCommentModel','hasDirtyComment','change:isActive','destroy','expand','render','_rearrangeExpand','_collapsedCommentsView','collapse','stopListening','isActive','get','ck-thread__comments','_updateHasDirtyComment','_model','maxCommentCharsWhenCollapsed','delegate','setTemplate','_shouldCollapse','from','equal','count','maxCommentsWhenCollapsed','maxThreadTotalWeight','_rearrangeCollapse','length','add','visibleViews','change:hasDirtyComment','some','locale','remove','set','listenTo','updateComment','focus','editorConfig'];(function(_0x5a668c,_0x3b525f){const _0x57acfc=function(_0x85fdd){while(--_0x85fdd){_0x5a668c['push'](_0x5a668c['shift']());}};_0x57acfc(++_0x3b525f);}(_0x3b52,0x1e0));const _0x57ac=function(_0x5a668c,_0x3b525f){_0x5a668c=_0x5a668c-0x0;let _0x57acfc=_0x3b52[_0x5a668c];return _0x57acfc;};import{View as _0x33b83e}from'ckeditor5/src/ui';import{diff as _0xb6db4,Collection as _0x465c5c}from'ckeditor5/src/utils';import _0x5b8495 from'./collapsedcommentsview';export default class Tt extends _0x33b83e{constructor(_0x21289d,_0x4b4e75,_0xa2279e){super(_0x21289d),this[_0x57ac('0x2b')](_0x57ac('0xc'),!0x1),this[_0x57ac('0x2b')]('length',_0x4b4e75[_0x57ac('0x4')]['length']),this[_0x57ac('0x2b')]('isActive',!0x1),this[_0x57ac('0x19')]=_0x4b4e75,this[_0x57ac('0x7')]=_0xa2279e,this['commentViews']=this['createCollection'](),this[_0x57ac('0x26')]=this[_0x57ac('0xa')](),this['_collapsedCommentsView']=new _0x5b8495(_0x21289d),this[_0x57ac('0x12')]['bind']('count')['to'](this,_0x57ac('0x24'),_0x142935=>_0x142935-this[_0x57ac('0x7')][_0x57ac('0x21')]);for(const _0x503c33 of _0x4b4e75[_0x57ac('0x4')])this[_0x57ac('0xb')](_0x503c33);this[_0x57ac('0x0')](_0x4b4e75['comments'],_0x57ac('0x25'),(_0x53cca0,_0x49aa8b)=>{this[_0x57ac('0x24')]++,this[_0x57ac('0xb')](_0x49aa8b),this[_0x57ac('0x6')]();}),this[_0x57ac('0x0')](_0x4b4e75[_0x57ac('0x4')],_0x57ac('0x2a'),(_0xf9a4cd,_0x3cce9e)=>{this[_0x57ac('0x24')]--,this[_0x57ac('0x5')](_0x3cce9e),this[_0x57ac('0x6')]();}),this[_0x57ac('0x0')](_0x4b4e75,'commentUpdated',()=>this[_0x57ac('0x6')]()),this['on'](_0x57ac('0xd'),()=>this[_0x57ac('0x6')]()),this['on'](_0x57ac('0x27'),()=>this[_0x57ac('0x6')]()),this[_0x57ac('0x1c')]({'tag':'ul','attributes':{'class':[_0x57ac('0x17')]},'children':this[_0x57ac('0x26')]});}get[_0x57ac('0x1d')](){return this['_model']['weight']>this['_config'][_0x57ac('0x22')]&&!this[_0x57ac('0x15')]&&!this[_0x57ac('0xc')];}[_0x57ac('0x10')](){super[_0x57ac('0x10')](),this['refreshVisibleViews']();}[_0x57ac('0x2')](){this['element'][_0x57ac('0x2')]();}[_0x57ac('0xe')](){this[_0x57ac('0x12')][_0x57ac('0xe')]();for(const _0x25a3ab of this[_0x57ac('0x9')])_0x25a3ab[_0x57ac('0xe')]();super[_0x57ac('0xe')]();}['refreshVisibleViews'](){this[_0x57ac('0x1d')]?this[_0x57ac('0x23')]():this[_0x57ac('0x11')]();}[_0x57ac('0xb')](_0x594ae9){const _0x57c9a9=new this[(_0x57ac('0x7'))]['CommentView'](this[_0x57ac('0x29')],_0x594ae9,{'maxCommentCharsWhenCollapsed':this['_config'][_0x57ac('0x1a')],'formatDateTime':this[_0x57ac('0x7')]['formatDateTime'],'editorConfig':this[_0x57ac('0x7')][_0x57ac('0x3')]});_0x57c9a9['viewUid']=_0x594ae9['id'],_0x57c9a9[_0x57ac('0x1b')]('removeComment')['to'](this),_0x57c9a9['delegate'](_0x57ac('0x1'))['to'](this),this[_0x57ac('0x0')](_0x57c9a9,'change:isEditMode',()=>this[_0x57ac('0x18')]()),this[_0x57ac('0x9')]['add'](_0x57c9a9);}['_handleRemoveCommentModel'](_0x12409f){const _0x192e94=this['commentViews'][_0x57ac('0x2a')](_0x12409f['id']);this[_0x57ac('0x14')](_0x192e94),_0x192e94['isEditMode']&&this['_updateHasDirtyComment'](),_0x192e94[_0x57ac('0xe')]();}['_updateHasDirtyComment'](){this[_0x57ac('0xc')]=Array['from'](this['commentViews'])[_0x57ac('0x28')](_0x428a0b=>_0x428a0b[_0x57ac('0x8')]);}['_rearrangeCollapse'](){const _0x20489c=function(_0x508f66){const _0x59598c=new _0x465c5c();for(const _0x4ecd3f of _0x508f66)_0x59598c[_0x57ac('0x25')](_0x4ecd3f);return _0x59598c;}(this[_0x57ac('0x9')]),_0x48e313=this[_0x57ac('0x12')][_0x57ac('0x20')];for(let _0x11a41b=0x1;_0x11a41b<=_0x48e313;_0x11a41b++)_0x20489c['remove'](0x1);for(const _0x528ad7 of _0x20489c)_0x528ad7[_0x57ac('0x13')]();_0x48e313>0x0&&_0x20489c[_0x57ac('0x25')](this[_0x57ac('0x12')],0x1),Ut(_0xb6db4(Array[_0x57ac('0x1e')](this[_0x57ac('0x26')]),Array['from'](_0x20489c)),this[_0x57ac('0x26')],_0x20489c);}[_0x57ac('0x11')](){Ut(_0xb6db4(Array[_0x57ac('0x1e')](this[_0x57ac('0x26')]),Array['from'](this[_0x57ac('0x9')])),this[_0x57ac('0x26')],this[_0x57ac('0x9')]);for(const _0x4f2049 of this[_0x57ac('0x26')])_0x4f2049[_0x57ac('0xf')]();}}function Ut(_0x190901,_0x5bd70b,_0x2d5205){let _0xb5d5d=0x0;for(const _0x15da43 of _0x190901)switch(_0x15da43){case'insert':_0x5bd70b[_0x57ac('0x25')](_0x2d5205[_0x57ac('0x16')](_0xb5d5d),_0xb5d5d),_0xb5d5d++;break;case'delete':_0x5bd70b[_0x57ac('0x2a')](_0xb5d5d);break;case _0x57ac('0x1f'):_0xb5d5d++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xafc3=['setTemplate','commentInputView','showButtons','showInput','ck-thread__user','bindTemplate','div','extendTemplate','destroy','userView','focusTracker','value'];(function(_0x4159c3,_0xafc346){var _0x49a511=function(_0x115417){while(--_0x115417){_0x4159c3['push'](_0x4159c3['shift']());}};_0x49a511(++_0xafc346);}(_0xafc3,0x176));var _0x49a5=function(_0x4159c3,_0xafc346){_0x4159c3=_0x4159c3-0x0;var _0x49a511=_0xafc3[_0x4159c3];return _0x49a511;};import{View as _0x48b041}from'ckeditor5/src/ui';import _0x269e2c from'./commentinputview';import _0x489f7c from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';export default class Rt extends _0x48b041{constructor(_0x4155ec,_0x3027a6,_0xd9af8e){super(_0x4155ec),this[_0x49a5('0xb')]=new _0x269e2c(_0x4155ec,_0xd9af8e),this[_0x49a5('0xb')]['bind'](_0x49a5('0x0'))['to'](this[_0x49a5('0xb')][_0x49a5('0x8')],'isFocused',this['commentInputView'],_0x49a5('0x9'),(_0x254278,_0x110e44)=>_0x254278||!!_0x110e44),this['set'](_0x49a5('0x1'),!0x1),this[_0x49a5('0x7')]=new _0x489f7c(_0x4155ec,_0x3027a6),this[_0x49a5('0x7')][_0x49a5('0x5')]({'attributes':{'class':_0x49a5('0x2')}}),this[_0x49a5('0xb')][_0x49a5('0x5')]({'attributes':{'class':'ck-thread__input'}}),this[_0x49a5('0xa')]({'tag':_0x49a5('0x4'),'attributes':{'class':['ck-comment__input-container',this[_0x49a5('0x3')]['if']('showInput','ck-comment__input-container--active')]},'children':[this[_0x49a5('0x7')],this[_0x49a5('0xb')]]});}[_0x49a5('0x6')](){return this[_0x49a5('0xb')][_0x49a5('0x6')]()['then'](()=>super[_0x49a5('0x6')]());}}
23
+ var _0x599b=['commentInputView','showInput','bindTemplate','userView','isFocused','ck-thread__user','setTemplate','destroy','ck-comment__input-container','div','extendTemplate','ck-comment__input-container--active','bind','value','focusTracker'];(function(_0x280399,_0x599b8b){var _0x1073d5=function(_0x533816){while(--_0x533816){_0x280399['push'](_0x280399['shift']());}};_0x1073d5(++_0x599b8b);}(_0x599b,0x10c));var _0x1073=function(_0x280399,_0x599b8b){_0x280399=_0x280399-0x0;var _0x1073d5=_0x599b[_0x280399];return _0x1073d5;};import{View as _0x31854f}from'ckeditor5/src/ui';import _0x1d74a7 from'./commentinputview';import _0xdac1f9 from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';export default class Rt extends _0x31854f{constructor(_0xd25c71,_0x5eba98,_0x3024df){super(_0xd25c71),this[_0x1073('0x2')]=new _0x1d74a7(_0xd25c71,_0x3024df),this['commentInputView'][_0x1073('0xe')]('showButtons')['to'](this[_0x1073('0x2')][_0x1073('0x1')],_0x1073('0x6'),this[_0x1073('0x2')],_0x1073('0x0'),(_0x2c883d,_0xcfdc5c)=>_0x2c883d||!!_0xcfdc5c),this['set']('showInput',!0x1),this[_0x1073('0x5')]=new _0xdac1f9(_0xd25c71,_0x5eba98),this[_0x1073('0x5')]['extendTemplate']({'attributes':{'class':_0x1073('0x7')}}),this[_0x1073('0x2')][_0x1073('0xc')]({'attributes':{'class':'ck-thread__input'}}),this[_0x1073('0x8')]({'tag':_0x1073('0xb'),'attributes':{'class':[_0x1073('0xa'),this[_0x1073('0x4')]['if'](_0x1073('0x3'),_0x1073('0xd'))]},'children':[this[_0x1073('0x5')],this[_0x1073('0x2')]]});}['destroy'](){return this['commentInputView'][_0x1073('0x9')]()['then'](()=>super[_0x1073('0x9')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import It from'./basecommentthreadview';import{mix as _0x90ca9c}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class et extends It{constructor(_0x52d970,_0x448816,_0x5c9273,_0x27ae34){super(_0x52d970,_0x448816,_0x5c9273,_0x27ae34),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x52d970,this['setTemplate'](this['_getTemplate']()),this['on']('change:isActive',(_0x2eb137,_0x271256,_0x381e9f)=>{_0x381e9f||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x33f5e1,_0x21b9c5,_0x136bb5)=>{_0x136bb5&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x5b383c=>{this['_bindFirstCommentView'](),_0x5b383c['off']();});}['_getTemplate'](){const _0x11defe=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x11defe['if']('isActive','ck-thread--active'),_0x11defe['if']('isConfirm','ck-thread--remove-confirmation'),_0x11defe['to']('actionIndicator',_0xf34e03=>_0xf34e03?'ck-thread--'+_0xf34e03:'')],'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 _0x1eb87f of this['commentsListView']['commentViews'])_0x1eb87f['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x53fb6e=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x53fb6e,'actionIndicator',_0x5253c4=>'remove'===_0x5253c4?'remove':null),_0x53fb6e['placeholder']=t('Write\x20a\x20comment...'),_0x53fb6e['removeButton']['on']('execute',_0x95559e=>{_0x95559e['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x90ca9c(et,Wt);
23
+ import It from'./basecommentthreadview';import{mix as _0x57466c}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class et extends It{constructor(_0x586870,_0x1c1066,_0x32322c,_0x50191e){super(_0x586870,_0x1c1066,_0x32322c,_0x50191e),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x586870,this['setTemplate'](this['_getTemplate']()),this['on']('change:isActive',(_0x2bd3e3,_0x5cecd9,_0x226952)=>{_0x226952||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x32fbae,_0x397a7f,_0x16a3f6)=>{_0x16a3f6&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x246d68=>{this['_bindFirstCommentView'](),_0x246d68['off']();});}['_getTemplate'](){const _0x21afc3=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x21afc3['if']('isActive','ck-thread--active'),_0x21afc3['if']('isConfirm','ck-thread--remove-confirmation'),_0x21afc3['to']('actionIndicator',_0x42ccc1=>_0x42ccc1?'ck-thread--'+_0x42ccc1:'')],'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 _0xe5e879 of this['commentsListView']['commentViews'])_0xe5e879['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x294f4b=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x294f4b,'actionIndicator',_0x117f5c=>'remove'===_0x117f5c?'remove':null),_0x294f4b['placeholder']=t('Write\x20a\x20comment...'),_0x294f4b['removeButton']['on']('execute',_0x26e20e=>{_0x26e20e['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x57466c(et,Wt);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{mix as _0x466c51}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(_0x5c7910,_0x212556,_0x32fdd2){super(_0x5c7910,_0x212556,_0x32fdd2);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x212556),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new Jt(_0x5c7910,_0x212556['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x212556,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['_getTemplate']());}['_getTemplate'](){const _0x2580d6=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2580d6['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x2580d6['if']('isEditMode','ck-comment--edit'),_0x2580d6['to']('actionIndicator',_0x40dd30=>_0x40dd30?'ck-comment--'+_0x40dd30:'')],'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':_0x2580d6['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2580d6['to']('createdAt',_0x56c9a1=>this['_config']['formatDateTime'](_0x56c9a1))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x2580d6['if']('isEditMode','ck-comment__actions--hidden'),_0x2580d6['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'],_0x332752=new mt(this['locale']);return _0x332752['label']=t('Edit'),_0x332752['icon']=Yt['pencil'],_0x332752['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x332752['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4f2c24=>!_0x4f2c24),_0x332752['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x332752['on']('execute',()=>this['switchToEditMode']()),_0x332752;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x3482b6=new mt(this['locale']);return _0x3482b6['label']=t('Remove'),_0x3482b6['icon']=Kt,_0x3482b6['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x3482b6['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x41cf1b=>!_0x41cf1b),_0x3482b6['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x3482b6['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x3482b6;}['_attachActions'](_0xa7252c,_0x51d7d9){this['listenTo'](_0xa7252c,'mouseenter',()=>this['actionIndicator']=_0x51d7d9),this['listenTo'](_0xa7252c,'focus',()=>this['actionIndicator']=_0x51d7d9),this['listenTo'](_0xa7252c,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0xa7252c,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0x14227c=super['_createCommentInputView']();return _0x14227c['bind']('placeholder')['to'](this),_0x14227c;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x466c51(nt,Wt);
23
+ import{mix as _0x27d280}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(_0x561d2a,_0x452fd3,_0x1e7662){super(_0x561d2a,_0x452fd3,_0x1e7662);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x452fd3),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new Jt(_0x561d2a,_0x452fd3['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x452fd3,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['_getTemplate']());}['_getTemplate'](){const _0x29fd99=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x29fd99['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x29fd99['if']('isEditMode','ck-comment--edit'),_0x29fd99['to']('actionIndicator',_0x353fed=>_0x353fed?'ck-comment--'+_0x353fed:'')],'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':_0x29fd99['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x29fd99['to']('createdAt',_0x5ba23c=>this['_config']['formatDateTime'](_0x5ba23c))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x29fd99['if']('isEditMode','ck-comment__actions--hidden'),_0x29fd99['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'],_0x59f91b=new mt(this['locale']);return _0x59f91b['label']=t('Edit'),_0x59f91b['icon']=Yt['pencil'],_0x59f91b['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x59f91b['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3116dd=>!_0x3116dd),_0x59f91b['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x59f91b['on']('execute',()=>this['switchToEditMode']()),_0x59f91b;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x4f3fd6=new mt(this['locale']);return _0x4f3fd6['label']=t('Remove'),_0x4f3fd6['icon']=Kt,_0x4f3fd6['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x4f3fd6['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x29b31c=>!_0x29b31c),_0x4f3fd6['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x4f3fd6['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x4f3fd6;}['_attachActions'](_0x466c0e,_0x47b4ac){this['listenTo'](_0x466c0e,'mouseenter',()=>this['actionIndicator']=_0x47b4ac),this['listenTo'](_0x466c0e,'focus',()=>this['actionIndicator']=_0x47b4ac),this['listenTo'](_0x466c0e,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x466c0e,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0x5362ab=super['_createCommentInputView']();return _0x5362ab['bind']('placeholder')['to'](this),_0x5362ab;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x27d280(nt,Wt);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5a4c=['once','locale','registerChild','fire','confirmView','element','destroy','deregisterChild','render','remove','submit','isConfirm','appendChild','cancel','message','_removeConfirm'];(function(_0xde7c05,_0x5a4c61){var _0x2419c5=function(_0xb569a5){while(--_0xb569a5){_0xde7c05['push'](_0xde7c05['shift']());}};_0x2419c5(++_0x5a4c61);}(_0x5a4c,0x9e));var _0x2419=function(_0xde7c05,_0x5a4c61){_0xde7c05=_0xde7c05-0x0;var _0x2419c5=_0x5a4c[_0xde7c05];return _0x2419c5;};import _0x2dba50 from'./confirmview';export default{'showConfirm'(_0x109c88,_0x1ca83c){return this[_0x2419('0x6')]=new _0x2dba50(this[_0x2419('0x3')]),this['confirmView'][_0x2419('0xa')](),this[_0x2419('0x6')][_0x2419('0x0')]=_0x109c88,this[_0x2419('0x6')][_0x2419('0x2')](_0x2419('0xf'),()=>{this[_0x2419('0x1')]();}),this['confirmView'][_0x2419('0x2')](_0x2419('0xc'),()=>{this[_0x2419('0x1')]();}),_0x1ca83c[_0x2419('0xe')](this['confirmView'][_0x2419('0x7')]),this[_0x2419('0x4')](this[_0x2419('0x6')]),this['set'](_0x2419('0xd'),!0x0),new Promise(_0x27c122=>this[_0x2419('0x6')]['on'](_0x2419('0xc'),_0x27c122));},'cancelConfirm'(){this[_0x2419('0xd')]&&this[_0x2419('0x6')][_0x2419('0x5')](_0x2419('0xf'));},'_removeConfirm'(){this[_0x2419('0x6')]['element'][_0x2419('0xb')](),this[_0x2419('0x9')](this[_0x2419('0x6')]),this[_0x2419('0xd')]=!0x1,this[_0x2419('0x6')][_0x2419('0x8')](),delete this[_0x2419('0x6')];}};
23
+ var _0x12b5=['_removeConfirm','confirmView','message','deregisterChild','submit','fire','element','destroy','render','set','isConfirm','cancel','once'];(function(_0x18190e,_0x12b5f4){var _0x25bf84=function(_0x401d3c){while(--_0x401d3c){_0x18190e['push'](_0x18190e['shift']());}};_0x25bf84(++_0x12b5f4);}(_0x12b5,0xc9));var _0x25bf=function(_0x18190e,_0x12b5f4){_0x18190e=_0x18190e-0x0;var _0x25bf84=_0x12b5[_0x18190e];return _0x25bf84;};import _0x49c479 from'./confirmview';export default{'showConfirm'(_0x502a74,_0x42ae28){return this[_0x25bf('0x8')]=new _0x49c479(this['locale']),this[_0x25bf('0x8')][_0x25bf('0x2')](),this[_0x25bf('0x8')][_0x25bf('0x9')]=_0x502a74,this[_0x25bf('0x8')][_0x25bf('0x6')](_0x25bf('0x5'),()=>{this['_removeConfirm']();}),this[_0x25bf('0x8')][_0x25bf('0x6')](_0x25bf('0xb'),()=>{this[_0x25bf('0x7')]();}),_0x42ae28['appendChild'](this[_0x25bf('0x8')][_0x25bf('0x0')]),this['registerChild'](this['confirmView']),this[_0x25bf('0x3')](_0x25bf('0x4'),!0x0),new Promise(_0xcab0eb=>this['confirmView']['on']('submit',_0xcab0eb));},'cancelConfirm'(){this[_0x25bf('0x4')]&&this[_0x25bf('0x8')][_0x25bf('0xc')](_0x25bf('0x5'));},'_removeConfirm'(){this[_0x25bf('0x8')][_0x25bf('0x0')]['remove'](),this[_0x25bf('0xa')](this[_0x25bf('0x8')]),this[_0x25bf('0x4')]=!0x1,this[_0x25bf('0x8')][_0x25bf('0x1')](),delete this[_0x25bf('0x8')];}};
@@ -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(_0x15be66){super(_0x15be66);const {t:t}=_0x15be66,_0x1cf7a6=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x15be66,t('Yes'),Yt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x15be66,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':_0x1cf7a6['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x3fc06d,_0x380c8b,_0x3e57ab,_0x4c1bd7){const _0x426da2=new mt(_0x3fc06d);return _0x426da2['label']=_0x380c8b,_0x426da2['icon']=_0x3e57ab,_0x426da2['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x4c1bd7}}),_0x426da2['on']('execute',()=>this['fire'](_0x4c1bd7)),_0x426da2;}}
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(_0x482926){super(_0x482926);const {t:t}=_0x482926,_0x57fbcf=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x482926,t('Yes'),Yt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x482926,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':_0x57fbcf['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x2c406d,_0x59e602,_0x274f13,_0x5ae4a5){const _0x54b1a1=new mt(_0x2c406d);return _0x54b1a1['label']=_0x59e602,_0x54b1a1['icon']=_0x274f13,_0x54b1a1['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x5ae4a5}}),_0x54b1a1['on']('execute',()=>this['fire'](_0x5ae4a5)),_0x54b1a1;}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x262f=['requires','pluginName'];(function(_0x9da4a6,_0x262f87){var _0x37c2a2=function(_0x3124b3){while(--_0x3124b3){_0x9da4a6['push'](_0x9da4a6['shift']());}};_0x37c2a2(++_0x262f87);}(_0x262f,0x8d));var _0x37c2=function(_0x9da4a6,_0x262f87){_0x9da4a6=_0x9da4a6-0x0;var _0x37c2a2=_0x262f[_0x9da4a6];return _0x37c2a2;};import{Plugin as _0x227d23}from'ckeditor5/src/core';import _0x2c0789 from'./comments/commentsrepository';import _0x37b090 from'./comments/commentsediting';import _0x2c2d23 from'./comments/commentsui';import _0x322144 from'./commentsonly';import _0x4a6389 from'./annotations/widesidebar';import _0x6f19c5 from'./annotations/narrowsidebar';import _0x4d5592 from'./annotations/inlineannotations';export default class c extends _0x227d23{static get[_0x37c2('0x1')](){return[_0x2c0789,_0x37b090,_0x2c2d23,_0x322144,_0x4a6389,_0x6f19c5,_0x4d5592];}static get[_0x37c2('0x0')](){return'Comments';}}
23
+ var _0x16da=['pluginName','Comments','requires'];(function(_0x22bad5,_0x16da83){var _0x49e1fa=function(_0x38714e){while(--_0x38714e){_0x22bad5['push'](_0x22bad5['shift']());}};_0x49e1fa(++_0x16da83);}(_0x16da,0xf6));var _0x49e1=function(_0x22bad5,_0x16da83){_0x22bad5=_0x22bad5-0x0;var _0x49e1fa=_0x16da[_0x22bad5];return _0x49e1fa;};import{Plugin as _0x45f1dd}from'ckeditor5/src/core';import _0x4d6658 from'./comments/commentsrepository';import _0x3f7222 from'./comments/commentsediting';import _0x4a9ef6 from'./comments/commentsui';import _0x8f22dd from'./commentsonly';import _0x5b30dc from'./annotations/widesidebar';import _0x4a2aff from'./annotations/narrowsidebar';import _0x1c87df from'./annotations/inlineannotations';export default class c extends _0x45f1dd{static get[_0x49e1('0x2')](){return[_0x4d6658,_0x3f7222,_0x4a9ef6,_0x8f22dd,_0x5b30dc,_0x4a2aff,_0x1c87df];}static get[_0x49e1('0x0')](){return _0x49e1('0x1');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x87b1=['stopListening','pluginName','change:isEnabled','requires','config','_disableCommentsOnlyMode','_allowedCommands','DragDrop','has','plugins','commentsOnly','_enableCommentsOnlyMode','view','commentsOnlyMode','afterInit','set','commands','selectAll','document','listenTo','clearForceDisabled','forceDisabled','CommentsOnly','editing','isEnabled','highest','get','editor','cut','stop'];(function(_0x398361,_0x87b160){const _0x420ef8=function(_0x18ecd4){while(--_0x18ecd4){_0x398361['push'](_0x398361['shift']());}};_0x420ef8(++_0x87b160);}(_0x87b1,0x155));const _0x420e=function(_0x398361,_0x87b160){_0x398361=_0x398361-0x0;let _0x420ef8=_0x87b1[_0x398361];return _0x420ef8;};import{Plugin as _0x58ffbc}from'ckeditor5/src/core';import _0x43f4c3 from'./comments/commentsediting';export default class e extends _0x58ffbc{static get[_0x420e('0x14')](){return _0x420e('0xb');}static get[_0x420e('0x16')](){return[_0x43f4c3];}constructor(_0x18bd5b){super(_0x18bd5b),this[_0x420e('0x4')]('isEnabled',null),this['on'](_0x420e('0x15'),(_0x34403e,_0x476d85,_0x6875a4)=>{_0x6875a4?this[_0x420e('0x0')]():this[_0x420e('0x18')]();}),this[_0x420e('0x19')]=new Set(['addCommentThread',_0x420e('0x6'),'exportPdf']);}[_0x420e('0x3')](){null===this[_0x420e('0xd')]&&(this[_0x420e('0xd')]=!!this['editor'][_0x420e('0x17')][_0x420e('0xf')](_0x420e('0x1d')));}[_0x420e('0x0')](){for(const [_0xf8b785,_0x4e2403]of this[_0x420e('0x10')][_0x420e('0x5')])this[_0x420e('0x19')][_0x420e('0x1b')](_0xf8b785)||_0x4e2403[_0x420e('0xa')](_0x420e('0x2'));this[_0x420e('0x10')][_0x420e('0x1c')]['has'](_0x420e('0x1a'))&&this[_0x420e('0x10')][_0x420e('0x1c')][_0x420e('0xf')](_0x420e('0x1a'))[_0x420e('0xa')](_0x420e('0x2'));const _0x4d11dc=this[_0x420e('0x10')][_0x420e('0xc')][_0x420e('0x1')][_0x420e('0x7')];this['listenTo'](_0x4d11dc,_0x420e('0x11'),_0x4d1885=>_0x4d1885[_0x420e('0x12')](),{'priority':_0x420e('0xe')}),this[_0x420e('0x8')](_0x4d11dc,'clipboardInput',_0x4e3c33=>_0x4e3c33['stop'](),{'priority':'highest'}),this[_0x420e('0x8')](_0x4d11dc,'delete',_0x5ac572=>_0x5ac572[_0x420e('0x12')](),{'priority':_0x420e('0xe')});}['_disableCommentsOnlyMode'](){for(const [_0x2e79ec,_0x992e06]of this[_0x420e('0x10')][_0x420e('0x5')])this[_0x420e('0x19')]['has'](_0x2e79ec)||_0x992e06[_0x420e('0x9')](_0x420e('0x2'));this[_0x420e('0x13')](this[_0x420e('0x10')]['editing'][_0x420e('0x1')][_0x420e('0x7')]);}}
23
+ const _0x2a5c=['set','listenTo','_enableCommentsOnlyMode','view','clipboardInput','stop','cut','stopListening','forceDisabled','isEnabled','_disableCommentsOnlyMode','pluginName','document','has','highest','change:isEnabled','commentsOnlyMode','commentsOnly','addCommentThread','delete','commands','afterInit','get','DragDrop','editor','affectsData','plugins','editing','config'];(function(_0x1a6fb3,_0x2a5ce1){const _0x2b03d0=function(_0x1221af){while(--_0x1221af){_0x1a6fb3['push'](_0x1a6fb3['shift']());}};_0x2b03d0(++_0x2a5ce1);}(_0x2a5c,0xd3));const _0x2b03=function(_0x1a6fb3,_0x2a5ce1){_0x1a6fb3=_0x1a6fb3-0x0;let _0x2b03d0=_0x2a5c[_0x1a6fb3];return _0x2b03d0;};import{Plugin as _0x18ecf5}from'ckeditor5/src/core';import _0x3d1b9d from'./comments/commentsediting';export default class e extends _0x18ecf5{static get[_0x2b03('0x3')](){return'CommentsOnly';}static get['requires'](){return[_0x3d1b9d];}constructor(_0x5bd8fb){super(_0x5bd8fb),this[_0x2b03('0x15')](_0x2b03('0x1'),null),this['on'](_0x2b03('0x7'),(_0x17a75a,_0x17349c,_0x530167)=>{_0x530167?this[_0x2b03('0x17')]():this[_0x2b03('0x2')]();});}[_0x2b03('0xd')](){null===this[_0x2b03('0x1')]&&(this[_0x2b03('0x1')]=!!this[_0x2b03('0x10')][_0x2b03('0x14')]['get'](_0x2b03('0x9')));}[_0x2b03('0x17')](){for(const [_0x306083,_0x166594]of this['editor'][_0x2b03('0xc')])_0x166594[_0x2b03('0x11')]&&'addCommentThread'!==_0x306083&&_0x166594[_0x2b03('0x0')](_0x2b03('0x8'));this[_0x2b03('0x10')][_0x2b03('0x12')][_0x2b03('0x5')](_0x2b03('0xf'))&&this[_0x2b03('0x10')][_0x2b03('0x12')][_0x2b03('0xe')](_0x2b03('0xf'))[_0x2b03('0x0')](_0x2b03('0x8'));const _0x44074d=this[_0x2b03('0x10')][_0x2b03('0x13')][_0x2b03('0x18')][_0x2b03('0x4')];this[_0x2b03('0x16')](_0x44074d,_0x2b03('0x1b'),_0x1f091c=>_0x1f091c[_0x2b03('0x1a')](),{'priority':_0x2b03('0x6')}),this['listenTo'](_0x44074d,_0x2b03('0x19'),_0x454643=>_0x454643['stop'](),{'priority':_0x2b03('0x6')}),this[_0x2b03('0x16')](_0x44074d,_0x2b03('0xb'),_0x2f0df2=>_0x2f0df2[_0x2b03('0x1a')](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x24da27,_0x5cf8c5]of this[_0x2b03('0x10')][_0x2b03('0xc')])_0x5cf8c5[_0x2b03('0x11')]&&_0x2b03('0xa')!==_0x24da27&&_0x5cf8c5['clearForceDisabled'](_0x2b03('0x8'));this[_0x2b03('0x1c')](this[_0x2b03('0x10')]['editing'][_0x2b03('0x18')][_0x2b03('0x4')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x4e6f29,_0x24810d){const t=_0x4e6f29['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x24810d)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
23
+ export function getTranslation(_0x4bdbfe,_0x35bf07){const t=_0x4bdbfe['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x35bf07)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 _0x34cd=['attributes','class','cancel','attributeName','type','childList'];(function(_0x4efaa2,_0x34cdd0){const _0x2b7d81=function(_0x5ca745){while(--_0x5ca745){_0x4efaa2['push'](_0x4efaa2['shift']());}};_0x2b7d81(++_0x34cdd0);}(_0x34cd,0x1b0));const _0x2b7d=function(_0x4efaa2,_0x34cdd0){_0x4efaa2=_0x4efaa2-0x0;let _0x2b7d81=_0x34cd[_0x4efaa2];return _0x2b7d81;};import{throttle as _0x2534ec}from'lodash-es';export default function ct(_0x368e5d){const _0x159ae5=_0x2534ec(_0x368e5d,0x1e),_0x402446=new MutationObserver(_0x4d275b=>{for(const _0x44c41e of _0x4d275b)(_0x2b7d('0x0')==_0x44c41e['type']&&_0x2b7d('0x1')==_0x44c41e[_0x2b7d('0x3')]||_0x2b7d('0x5')==_0x44c41e[_0x2b7d('0x4')])&&_0x159ae5();});return{'attach'(_0xd11f2a){_0x402446['observe'](_0xd11f2a,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x402446['disconnect'](),_0x159ae5[_0x2b7d('0x2')]();}};}
23
+ const _0x4619=['attributes','type','disconnect','childList','cancel','observe','attributeName','class'];(function(_0x2f2708,_0x4619a8){const _0x5e79b4=function(_0x7618){while(--_0x7618){_0x2f2708['push'](_0x2f2708['shift']());}};_0x5e79b4(++_0x4619a8);}(_0x4619,0x12a));const _0x5e79=function(_0x2f2708,_0x4619a8){_0x2f2708=_0x2f2708-0x0;let _0x5e79b4=_0x4619[_0x2f2708];return _0x5e79b4;};import{throttle as _0x2c257b}from'lodash-es';export default function ct(_0x4e4d3a){const _0x483d0d=_0x2c257b(_0x4e4d3a,0x1e),_0x33d897=new MutationObserver(_0x614627=>{for(const _0x1dc865 of _0x614627)(_0x5e79('0x6')==_0x1dc865['type']&&_0x5e79('0x5')==_0x1dc865[_0x5e79('0x4')]||_0x5e79('0x1')==_0x1dc865[_0x5e79('0x7')])&&_0x483d0d();});return{'attach'(_0x706871){_0x33d897[_0x5e79('0x3')](_0x706871,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x33d897[_0x5e79('0x0')](),_0x483d0d[_0x5e79('0x2')]();}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52d0=['string','\x27Today\x27\x20hh:mma','function','\x27Yesterday\x27\x20hh:mma','dateTimeFormat'];(function(_0x16c19a,_0x52d09a){const _0x111672=function(_0x3ce3e9){while(--_0x3ce3e9){_0x16c19a['push'](_0x16c19a['shift']());}};_0x111672(++_0x52d09a);}(_0x52d0,0xc3));const _0x1116=function(_0x16c19a,_0x52d09a){_0x16c19a=_0x16c19a-0x0;let _0x111672=_0x52d0[_0x16c19a];return _0x111672;};import _0x59a29b from'date-fns/format';import _0x29eab8 from'date-fns/parseISO';import _0x2d8309 from'date-fns/differenceInCalendarDays';import _0x41e3cc from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default function J(_0x52f113={}){if(void 0x0!==_0x52f113['dateTimeFormat']&&_0x1116('0x2')!=typeof _0x52f113[_0x1116('0x4')])throw new _0x41e3cc('invalid-date-time-format');return _0x5b8130=>{const _0x347b1a=_0x1116('0x0')==typeof _0x5b8130?_0x29eab8(_0x5b8130):_0x5b8130,_0x517d8b=new Date(),_0x46b4f3=_0x2d8309(_0x517d8b,_0x347b1a);return _0x52f113[_0x1116('0x4')]?_0x52f113[_0x1116('0x4')](_0x347b1a):_0x59a29b(_0x347b1a,0x0===_0x46b4f3?_0x1116('0x1'):0x1===_0x46b4f3?_0x1116('0x3'):_0x46b4f3<0x7?'\x27Last\x27\x20EEEE\x20hh:mma':'MM-dd-yyyy\x20hh:mma');};}
23
+ const _0xbb57=['dateTimeFormat','function','invalid-date-time-format','\x27Today\x27\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','\x27Yesterday\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma'];(function(_0x52fd8,_0xbb5726){const _0x3843ac=function(_0x180e11){while(--_0x180e11){_0x52fd8['push'](_0x52fd8['shift']());}};_0x3843ac(++_0xbb5726);}(_0xbb57,0x65));const _0x3843=function(_0x52fd8,_0xbb5726){_0x52fd8=_0x52fd8-0x0;let _0x3843ac=_0xbb57[_0x52fd8];return _0x3843ac;};import _0x515e0b from'date-fns/format';import _0x3f7ff8 from'date-fns/parseISO';import _0x4b34e0 from'date-fns/differenceInCalendarDays';import _0x16e913 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default function J(_0x355f1={}){if(void 0x0!==_0x355f1[_0x3843('0x4')]&&_0x3843('0x5')!=typeof _0x355f1[_0x3843('0x4')])throw new _0x16e913(_0x3843('0x6'));return _0x28f4d9=>{const _0x2fc884='string'==typeof _0x28f4d9?_0x3f7ff8(_0x28f4d9):_0x28f4d9,_0x3739d1=new Date(),_0x1a1fdd=_0x4b34e0(_0x3739d1,_0x2fc884);return _0x355f1[_0x3843('0x4')]?_0x355f1[_0x3843('0x4')](_0x2fc884):_0x515e0b(_0x2fc884,0x0===_0x1a1fdd?_0x3843('0x0'):0x1===_0x1a1fdd?_0x3843('0x2'):_0x1a1fdd<0x7?_0x3843('0x1'):_0x3843('0x3'));};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3427=['mapViewToDom','view','markerNameToElements','name','mapper','domConverter'];(function(_0x304e9c,_0x3427f7){const _0xfa3986=function(_0x29967a){while(--_0x29967a){_0x304e9c['push'](_0x304e9c['shift']());}};_0xfa3986(++_0x3427f7);}(_0x3427,0x12f));const _0xfa39=function(_0x304e9c,_0x3427f7){_0x304e9c=_0x304e9c-0x0;let _0xfa3986=_0x3427[_0x304e9c];return _0xfa3986;};import _0x46dc46 from'@ckeditor/ckeditor5-utils/src/first';export default function M(_0x4420fe,_0x424798){const _0x25064c=_0x4420fe[_0xfa39('0x1')][_0xfa39('0x5')](_0x424798[_0xfa39('0x0')]),_0x26bcd0=_0x46dc46(_0x25064c['values']());return _0x4420fe[_0xfa39('0x4')][_0xfa39('0x2')][_0xfa39('0x3')](_0x26bcd0);}
23
+ const _0x2623=['mapper','domConverter','markerNameToElements','mapViewToDom','values'];(function(_0xe6ccbc,_0x2623bf){const _0x275c89=function(_0x4c0e06){while(--_0x4c0e06){_0xe6ccbc['push'](_0xe6ccbc['shift']());}};_0x275c89(++_0x2623bf);}(_0x2623,0xa0));const _0x275c=function(_0xe6ccbc,_0x2623bf){_0xe6ccbc=_0xe6ccbc-0x0;let _0x275c89=_0x2623[_0xe6ccbc];return _0x275c89;};import _0x2668ab from'@ckeditor/ckeditor5-utils/src/first';export default function R(_0x6995e6,_0x4956c3){const _0x3541e5=_0x6995e6[_0x275c('0x0')][_0x275c('0x2')](_0x4956c3['name']),_0x5a1af0=_0x2668ab(_0x3541e5[_0x275c('0x4')]());return _0x6995e6['view'][_0x275c('0x1')][_0x275c('0x3')](_0x5a1af0);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41a4=['replace','startsWith','...','slice','length','join','substring','match','indexOf','pop','split','push'];(function(_0x331f57,_0x41a44d){const _0x3b61ab=function(_0x128bb0){while(--_0x128bb0){_0x331f57['push'](_0x331f57['shift']());}};_0x3b61ab(++_0x41a44d);}(_0x41a4,0x13a));const _0x3b61=function(_0x331f57,_0x41a44d){_0x331f57=_0x331f57-0x0;let _0x3b61ab=_0x41a4[_0x331f57];return _0x3b61ab;};export default function nn(_0x1d8d57,{limit:_0x91f34a,suffix:_0x344166=_0x3b61('0x0')}){const _0x2735ef=[];let _0x23106b=0x0;const _0x5d6050=_0x1d8d57[_0x3b61('0xa')](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0x3b61('0xa')](/^\n/g,'')[_0x3b61('0xa')](/\n$/g,'')[_0x3b61('0x8')]('\x0a');for(let _0x34456b=0x0;_0x34456b<_0x5d6050[_0x3b61('0x2')];_0x34456b++){let _0x10755a=_0x5d6050[_0x34456b];const _0x5b03a3=tn(_0x10755a);if(_0x10755a[_0x3b61('0xb')]('<')){if(_0x23106b>=_0x91f34a){const _0x688bc7=_0x10755a[_0x3b61('0x5')](/[a-zA-Z]+/)[0x0];_0x10755a[_0x3b61('0xb')]('</')?(_0x2735ef[_0x3b61('0x2')]&&(_0x10755a=''),_0x2735ef[_0x3b61('0x7')]()):(_0x2735ef[_0x3b61('0x9')](_0x688bc7),_0x10755a='');}}else{if(_0x23106b>=_0x91f34a)_0x10755a='';else{if(_0x23106b+_0x5b03a3[_0x3b61('0x2')]>=_0x91f34a){let _0x1098ab=_0x91f34a-_0x23106b;if('\x20'===_0x5b03a3[_0x1098ab-0x1])_0x1098ab--;else{const _0x3437f0=_0x5b03a3['slice'](_0x1098ab)[_0x3b61('0x6')]('\x20');-0x1!==_0x3437f0?_0x1098ab+=_0x3437f0:_0x1098ab=_0x10755a[_0x3b61('0x2')];}_0x10755a=_0x5b03a3[_0x3b61('0x1')](0x0,_0x1098ab)[_0x3b61('0x3')]('')+_0x344166,_0x23106b=_0x91f34a;}else _0x23106b+=_0x5b03a3[_0x3b61('0x2')];}}_0x5d6050[_0x34456b]=_0x10755a;}return _0x5d6050[_0x3b61('0x3')]('\x0a')['replace'](/\n/g,'');}function tn(_0x2f4332){const _0xd5275=[];for(let _0x4eeb29=0x0;_0x4eeb29<_0x2f4332['length'];_0x4eeb29++){const _0x49a8b7=_0x2f4332[_0x3b61('0x4')](_0x4eeb29)[_0x3b61('0x5')](/^&[a-z0-9#]+;/);if(_0x49a8b7){const _0x32b648=_0x49a8b7[0x0];_0xd5275[_0x3b61('0x9')](_0x32b648),_0x4eeb29+=_0x32b648[_0x3b61('0x2')]-0x1;}else _0xd5275[_0x3b61('0x9')](_0x2f4332[_0x4eeb29]);}return _0xd5275;}
23
+ const _0x2222=['split','startsWith','push','slice','match','pop','substring','length','join','indexOf','...','replace'];(function(_0x3914c3,_0x22224a){const _0x382436=function(_0x5be0d6){while(--_0x5be0d6){_0x3914c3['push'](_0x3914c3['shift']());}};_0x382436(++_0x22224a);}(_0x2222,0x72));const _0x3824=function(_0x3914c3,_0x22224a){_0x3914c3=_0x3914c3-0x0;let _0x382436=_0x2222[_0x3914c3];return _0x382436;};export default function nn(_0x14b73c,{limit:_0x2aefa1,suffix:_0x3b3ae7=_0x3824('0x4')}){const _0x51bcac=[];let _0x47c4c5=0x0;const _0x12e286=_0x14b73c[_0x3824('0x5')](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0x3824('0x5')](/^\n/g,'')[_0x3824('0x5')](/\n$/g,'')[_0x3824('0x6')]('\x0a');for(let _0x20cd59=0x0;_0x20cd59<_0x12e286[_0x3824('0x1')];_0x20cd59++){let _0x509a99=_0x12e286[_0x20cd59];const _0x17b416=tn(_0x509a99);if(_0x509a99[_0x3824('0x7')]('<')){if(_0x47c4c5>=_0x2aefa1){const _0x36d943=_0x509a99[_0x3824('0xa')](/[a-zA-Z]+/)[0x0];_0x509a99['startsWith']('</')?(_0x51bcac['length']&&(_0x509a99=''),_0x51bcac[_0x3824('0xb')]()):(_0x51bcac[_0x3824('0x8')](_0x36d943),_0x509a99='');}}else{if(_0x47c4c5>=_0x2aefa1)_0x509a99='';else{if(_0x47c4c5+_0x17b416[_0x3824('0x1')]>=_0x2aefa1){let _0x1fc792=_0x2aefa1-_0x47c4c5;if('\x20'===_0x17b416[_0x1fc792-0x1])_0x1fc792--;else{const _0x4fa114=_0x17b416['slice'](_0x1fc792)[_0x3824('0x3')]('\x20');-0x1!==_0x4fa114?_0x1fc792+=_0x4fa114:_0x1fc792=_0x509a99[_0x3824('0x1')];}_0x509a99=_0x17b416[_0x3824('0x9')](0x0,_0x1fc792)[_0x3824('0x2')]('')+_0x3b3ae7,_0x47c4c5=_0x2aefa1;}else _0x47c4c5+=_0x17b416['length'];}}_0x12e286[_0x20cd59]=_0x509a99;}return _0x12e286[_0x3824('0x2')]('\x0a')[_0x3824('0x5')](/\n/g,'');}function tn(_0x4e5daa){const _0x3bb9b3=[];for(let _0x27e76b=0x0;_0x27e76b<_0x4e5daa['length'];_0x27e76b++){const _0x1493b6=_0x4e5daa[_0x3824('0x0')](_0x27e76b)['match'](/^&[a-z0-9#]+;/);if(_0x1493b6){const _0x1964be=_0x1493b6[0x0];_0x3bb9b3['push'](_0x1964be),_0x27e76b+=_0x1964be[_0x3824('0x1')]-0x1;}else _0x3bb9b3[_0x3824('0x8')](_0x4e5daa[_0x27e76b]);}return _0x3bb9b3;}
@@ -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>