@ckeditor/ckeditor5-comments 0.0.0-nightly-20231224.0 → 0.0.0-nightly-20231225.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.
- package/build/comments.js +1 -1
- package/package.json +3 -3
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x119f=['editorConfig','length','canComment','isReadOnly','submitCommentThread','unlinkedAt','_config','editorDestroyed','delegate','Reply\x20to\x20reopen\x20discussion...','focus','commentThreadInputView','addComment','locale','cancel','placeholder','updateComment','removeCommentThread','commentsListView','isDirty','fire','showInput','reopenCommentThread','isResolved','listenTo','bind','assign','removeComment','submit','CommentView','isResolvable','destroy','disabledSubmit','editorReady','commentInputView','_model','submitLabel','resolveCommentThread','_localUser','Reply...','Write\x20a\x20comment...','isActive','value','Comment','set','_createCommentThreadInputView'];(function(_0x39d1b2,_0x119f22){const _0x78a598=function(_0x2b358f){while(--_0x2b358f){_0x39d1b2['push'](_0x39d1b2['shift']());}};_0x78a598(++_0x119f22);}(_0x119f,0x157));const _0x78a5=function(_0x39d1b2,_0x119f22){_0x39d1b2=_0x39d1b2-0x0;let _0x78a598=_0x119f[_0x39d1b2];return _0x78a598;};import{View as _0x387b4f}from'ckeditor5/src/ui.js';import _0x91602d from'./commentthreadinputview.js';import _0x532647 from'./commentslistview.js';import _0x35b1cf from'./commentthreadheaderview.js';import{getTranslation as _0x1944a7}from'../../../utils/common-translations.js';export default class Ut extends _0x387b4f{constructor(_0x413063,_0x44e936,_0x3aab7a,_0x82d20b){super(_0x413063),this[_0x78a5('0x17')](_0x78a5('0x14'),!0x1),this[_0x78a5('0x17')](_0x78a5('0x2c'),!0x1),this[_0x78a5('0xe')]=_0x44e936,this[_0x78a5('0x11')]=_0x3aab7a,this['_config']=_0x82d20b,this['commentThreadHeaderView']=new _0x35b1cf(_0x413063,_0x44e936),this['commentThreadHeaderView'][_0x78a5('0x21')](_0x78a5('0x1'))['to'](this),this[_0x78a5('0x3')](this,_0x78a5('0x1'),()=>{this[_0x78a5('0x23')]();}),this[_0x78a5('0x2b')]=new _0x532647(_0x413063,_0x44e936,Object[_0x78a5('0x5')]({'CommentView':this[_0x78a5('0x1f')][_0x78a5('0x8')]},_0x82d20b)),this[_0x78a5('0x2b')][_0x78a5('0x21')](_0x78a5('0x6'))['to'](this),this['commentsListView'][_0x78a5('0x21')](_0x78a5('0x29'))['to'](this),this[_0x78a5('0x2b')]['delegate'](_0x78a5('0x10'))['to'](this),this[_0x78a5('0x2b')][_0x78a5('0x21')](_0x78a5('0xc'))['to'](this),this[_0x78a5('0x2b')]['delegate'](_0x78a5('0x20'))['to'](this),this[_0x78a5('0x2b')][_0x78a5('0x4')](_0x78a5('0x14'))['to'](this),this[_0x78a5('0x3')](this,'resolveCommentThread',()=>{this[_0x78a5('0x23')]();}),this[_0x78a5('0x17')](_0x78a5('0x1a'),this[_0x78a5('0x2b')][_0x78a5('0x1a')]),this[_0x78a5('0x4')](_0x78a5('0x1a'))['to'](this[_0x78a5('0x2b')],_0x78a5('0x1a')),this[_0x78a5('0x24')]=this[_0x78a5('0x18')](),this[_0x78a5('0x24')]['delegate'](_0x78a5('0xc'))['to'](this),this[_0x78a5('0x24')][_0x78a5('0x21')](_0x78a5('0x20'))['to'](this),this['on'](_0x78a5('0x6'),()=>this[_0x78a5('0x23')]()),this['bind'](_0x78a5('0x2c'))['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView'][_0x78a5('0xd')],_0x78a5('0x15'),(_0x5d8d68,_0x3c4dcf)=>_0x5d8d68||!!_0x3c4dcf),this['bind']('isUnlinked')['to'](_0x44e936,_0x78a5('0x1e'),_0x599ea2=>!!_0x599ea2);}[_0x78a5('0x23')](){this['element']['focus']();}async[_0x78a5('0xa')](){this[_0x78a5('0x2c')]=!0x1,this[_0x78a5('0x2b')]['destroy'](),await this[_0x78a5('0x24')][_0x78a5('0xa')](),super[_0x78a5('0xa')]();}['_createCommentThreadInputView'](){const _0x1fd7b8=new _0x91602d(this['locale'],this[_0x78a5('0x11')],this[_0x78a5('0x1f')][_0x78a5('0x19')]),_0x2e177f=_0x1fd7b8[_0x78a5('0xd')];return _0x1fd7b8[_0x78a5('0x4')](_0x78a5('0x0'))['to'](this,_0x78a5('0x14'),this[_0x78a5('0xe')],_0x78a5('0x1c'),this[_0x78a5('0xe')],_0x78a5('0x1b'),this[_0x78a5('0xe')],'archivedAt',_0x2e177f,_0x78a5('0x15'),(_0x3e4560,_0xcdcc3d,_0x46a602,_0x4774aa,_0x14673c)=>!!_0x14673c||!!_0x4774aa&&_0x46a602&&!_0xcdcc3d||_0x3e4560&&_0x46a602&&!_0xcdcc3d),_0x2e177f[_0x78a5('0x4')](_0x78a5('0x28'))['to'](this,_0x78a5('0x1a'),this[_0x78a5('0xe')],'isResolvable',this[_0x78a5('0xe')],_0x78a5('0x2'),(_0x5aaac3,_0x4c65a2,_0x28fef0)=>{let _0x3c1f81;return _0x3c1f81=_0x28fef0&&_0x4c65a2?_0x78a5('0x22'):_0x5aaac3?_0x78a5('0x12'):_0x78a5('0x13'),_0x1944a7(this[_0x78a5('0x26')],_0x3c1f81);}),_0x2e177f[_0x78a5('0x4')](_0x78a5('0xf'))['to'](this,_0x78a5('0x1a'),_0x42ef34=>_0x1944a7(this['locale'],_0x42ef34?'Reply':_0x78a5('0x16'))),_0x2e177f['on'](_0x78a5('0x7'),(_0x3c50c5,_0x3d20e3)=>{this[_0x78a5('0x2d')](_0x78a5('0x25'),_0x3d20e3),this[_0x78a5('0xe')]['isResolved']&&this['_model'][_0x78a5('0x9')]&&this[_0x78a5('0x2d')](_0x78a5('0x1'),this[_0x78a5('0xe')]['id']),this[_0x78a5('0xe')]['isSubmitted']||this[_0x78a5('0x2d')](_0x78a5('0x1d'));}),_0x2e177f['on'](_0x78a5('0x27'),()=>{this['focus']();}),_0x2e177f[_0x78a5('0x4')](_0x78a5('0xb'))['to'](this['_model'],'isReadOnly'),_0x2e177f['on'](_0x78a5('0x27'),_0x350ded=>{0x0==this[_0x78a5('0x1a')]&&(this[_0x78a5('0x2d')](_0x78a5('0x2a')),_0x350ded['stop']());}),this['on']('change:isActive',(_0x5b526a,_0x337192,_0x1c4bde)=>{_0x1c4bde||this[_0x78a5('0x1a')]||_0x2e177f[_0x78a5('0x15')]||this['fire'](_0x78a5('0x2a'));}),_0x1fd7b8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21a2=['editorDestroyed','destroy','remove','set','initialData','_createCommentContentView','isEditMode','switchToDisplayMode','_createCommentInputView','disabledSubmit','switchToEditMode','delegate','submit','content','focus','isReadOnly','fire','element','_model','bind','once','add','updateComment','_config','isCollapsed','locale','createEditor','collapse','value','visibleView','get','editorConfig','editorReady','cancel','Save'];(function(_0x1f583b,_0x21a29b){const _0x37638b=function(_0x2ce91d){while(--_0x2ce91d){_0x1f583b['push'](_0x1f583b['shift']());}};_0x37638b(++_0x21a29b);}(_0x21a2,0xe7));const _0x3763=function(_0x1f583b,_0x21a29b){_0x1f583b=_0x1f583b-0x0;let _0x37638b=_0x21a2[_0x1f583b];return _0x37638b;};import{View as _0x74887e}from'ckeditor5/src/ui.js';import{trimHtml as _0x448c85}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x25f62f from'./commentcontentview.js';import _0x360017 from'./commentinputview.js';import{getTranslation as _0x427e72}from'../../../utils/common-translations.js';export default class ti extends _0x74887e{constructor(_0x20aa6a,_0x248a94,_0x52c9cc){super(_0x20aa6a),this[_0x3763('0x20')]=_0x248a94,this['_config']=_0x52c9cc,this['isSystemComment']=!!this[_0x3763('0x2')]['isSystemComment'],this[_0x3763('0x11')](_0x3763('0x14'),!0x1),this[_0x3763('0x11')](_0x3763('0x3'),!0x0),this[_0x3763('0x8')]=this['createCollection'](),this[_0x3763('0x8')][_0x3763('0x0')](this[_0x3763('0x13')]());}['expand'](){this[_0x3763('0x3')]=!0x1;}[_0x3763('0x6')](){this[_0x3763('0x14')]||(this[_0x3763('0x3')]=!0x0);}[_0x3763('0x1c')](){this[_0x3763('0x1f')][_0x3763('0x1c')]();}async['destroy'](){await this[_0x3763('0x8')][_0x3763('0x9')](0x0)['destroy'](),super[_0x3763('0xf')]();}[_0x3763('0x18')](){this[_0x3763('0x14')]||(this[_0x3763('0x14')]=!0x0,this[_0x3763('0x8')][_0x3763('0x10')](0x0)[_0x3763('0xf')](),this[_0x3763('0x8')]['add'](this[_0x3763('0x16')]()));}[_0x3763('0x15')](){this[_0x3763('0x14')]&&(this[_0x3763('0x14')]=!0x1,this['visibleView']['remove'](0x0)[_0x3763('0xf')](),this[_0x3763('0x8')][_0x3763('0x0')](this[_0x3763('0x13')]()));}[_0x3763('0x13')](){const _0x229648=new _0x25f62f(this[_0x3763('0x4')]);return _0x229648[_0x3763('0x21')]('content')['to'](this['_model'],_0x3763('0x1b'),this,'isCollapsed',(_0x3a4f15,_0x17707f)=>_0x17707f?_0x448c85(_0x3a4f15,{'limit':this[_0x3763('0x2')]['maxCommentCharsWhenCollapsed']}):_0x3a4f15),_0x229648;}[_0x3763('0x16')](){this[_0x3763('0x2')]['editorConfig']||(this[_0x3763('0x2')][_0x3763('0xa')]={}),this[_0x3763('0x2')][_0x3763('0xa')][_0x3763('0x12')]=this[_0x3763('0x20')][_0x3763('0x1b')];const _0x605e22=new _0x360017(this[_0x3763('0x4')],this['_config'][_0x3763('0xa')]);return _0x605e22[_0x3763('0x7')]=this[_0x3763('0x20')]['content'],_0x605e22[_0x3763('0x21')](_0x3763('0x17'))['to'](this['_model'],_0x3763('0x1d')),_0x605e22['submitLabel']=_0x427e72(this[_0x3763('0x4')],_0x3763('0xd')),_0x605e22['on'](_0x3763('0x1a'),(_0x39ab45,_0x2f1198)=>{this[_0x3763('0x1e')](_0x3763('0x1'),this[_0x3763('0x20')]['id'],_0x2f1198),this[_0x3763('0x15')](),this[_0x3763('0x1c')]();}),_0x605e22['on'](_0x3763('0xc'),()=>{this[_0x3763('0x15')](),this[_0x3763('0x1c')]();}),_0x605e22[_0x3763('0x22')]('editorReady',()=>{_0x605e22[_0x3763('0x1c')]();}),_0x605e22[_0x3763('0x5')](),_0x605e22['delegate'](_0x3763('0xb'))['to'](this),_0x605e22[_0x3763('0x19')](_0x3763('0xe'))['to'](this),_0x605e22;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2582=['ck-thread__comment-count','bindTemplate','set','setTemplate','NUMBER_OF_COMMENTS','count'];(function(_0x4fbd82,_0x2582e2){const _0x422ca9=function(_0x269013){while(--_0x269013){_0x4fbd82['push'](_0x4fbd82['shift']());}};_0x422ca9(++_0x2582e2);}(_0x2582,0x1b3));const _0x422c=function(_0x4fbd82,_0x2582e2){_0x4fbd82=_0x4fbd82-0x0;let _0x422ca9=_0x2582[_0x4fbd82];return _0x422ca9;};import{View as _0x59bd5d}from'ckeditor5/src/ui.js';import{getTranslation as _0x21fdc0}from'../../../utils/common-translations.js';export default class ts extends _0x59bd5d{constructor(_0x495b1c){super(_0x495b1c);const _0x1a1815=this[_0x422c('0x4')];this[_0x422c('0x5')](_0x422c('0x2'),void 0x0),this[_0x422c('0x0')]({'tag':'li','attributes':{'class':_0x422c('0x3')},'children':[{'text':_0x1a1815['to'](_0x422c('0x2'),_0x63cb5f=>_0x21fdc0(_0x495b1c,_0x422c('0x1'),_0x63cb5f))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xf13b=['set','div','ck-annotation__content','setTemplate','render','content','ck-comment__content','innerHTML'];(function(_0x567875,_0xf13b69){var _0x41e044=function(_0x2808){while(--_0x2808){_0x567875['push'](_0x567875['shift']());}};_0x41e044(++_0xf13b69);}(_0xf13b,0x1cf));var _0x41e0=function(_0x567875,_0xf13b69){_0x567875=_0x567875-0x0;var _0x41e044=_0xf13b[_0x567875];return _0x41e044;};import{View as _0x52d0f5}from'ckeditor5/src/ui.js';export default class Yt extends _0x52d0f5{constructor(_0x3cbcf7){super(_0x3cbcf7),this[_0x41e0('0x1')](_0x41e0('0x6'),''),this[_0x41e0('0x4')]({'tag':_0x41e0('0x2'),'attributes':{'class':[_0x41e0('0x7'),_0x41e0('0x3')]}});}['render'](){super[_0x41e0('0x5')](),this['on']('change:content',(_0xf1a3db,_0x1be7bf,_0x1907fb)=>{this['element'][_0x41e0('0x0')]=_0x1907fb;}),this['element'][_0x41e0('0x0')]=this['content'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7d3d=['ck-comment__input-actions--submit','set','bindTemplate','_createSubmitButton','high','extendTemplate','forEach','value','label','add','render','ck-comment__input-wrapper','submit','stop','showButtons','_editorCreationPromise','view','length','execute','Cancel','Reply...','bind','Esc','submitLabel','cancelButtonView','editorReady','_isDestroyed','tab','focusTracker','Reply','fire','disabledSubmit','low','element','focus','document','placeholder','_createCancelButton','shift\x20+\x20tab','editor','create','withText','ck-comment__input-actions','initialData','destroy','cancel','keystrokes','setData','_initializeFocusCycling','trim','createEditor','_editorConfig','model','submitButtonView','insertBefore','ck-comment__input-actions--cancel','div'];(function(_0x2f8029,_0x7d3de1){const _0x16280e=function(_0x1f01e1){while(--_0x1f01e1){_0x2f8029['push'](_0x2f8029['shift']());}};_0x16280e(++_0x7d3de1);}(_0x7d3d,0x12b));const _0x1628=function(_0x2f8029,_0x7d3de1){_0x2f8029=_0x2f8029-0x0;let _0x16280e=_0x7d3d[_0x2f8029];return _0x16280e;};import{View as _0x4bc92d,ViewCollection as _0x111592,FocusCycler as _0x377fc5,ButtonView as _0x44e2cb}from'ckeditor5/src/ui.js';import{FocusTracker as _0x166a3c,KeystrokeHandler as _0x198954}from'ckeditor5/src/utils.js';import _0x1be567 from'../commenteditor/commenteditor.js';import{getTranslation as _0x5d3f2e}from'../../../utils/common-translations.js';export default class Zt extends _0x4bc92d{constructor(_0x1d8eec,_0x49ac8d={}){super(_0x1d8eec),this[_0x1628('0x19')]=null,this[_0x1628('0x25')]=_0x49ac8d,this[_0x1628('0x20')]=new _0x198954(),this[_0x1628('0xe')]=new _0x166a3c(),this['set']('value',_0x49ac8d[_0x1628('0x1d')]||''),this['set'](_0x1628('0x11'),!0x1),this[_0x1628('0x2c')](_0x1628('0x0'),!0x0),this[_0x1628('0x2c')](_0x1628('0x16'),_0x5d3f2e(_0x1d8eec,_0x1628('0x6'))),this[_0x1628('0x2c')](_0x1628('0x9'),_0x5d3f2e(_0x1d8eec,_0x1628('0xf'))),this['submitButtonView']=this[_0x1628('0x2e')](),this[_0x1628('0xa')]=this[_0x1628('0x17')](),this['setTemplate']({'tag':_0x1628('0x2a'),'attributes':{'class':[_0x1628('0x36')]},'children':[{'tag':'div','attributes':{'class':[_0x1628('0x1c'),this[_0x1628('0x2d')]['if'](_0x1628('0x0'),'ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this[_0x1628('0xa')]]}]}),this[_0x1628('0x20')][_0x1628('0x2c')](_0x1628('0x8'),(_0x1799e2,_0x516065)=>{this[_0x1628('0xa')][_0x1628('0x10')](_0x1628('0x4')),_0x516065();}),this['on']('submit',(_0x3a94df,_0x3b9b39)=>{_0x3b9b39['length']>0xfde8?(alert(_0x5d3f2e(_0x1d8eec,'TOO_LONG_COMMENT_ALERT',[_0x3b9b39[_0x1628('0x3')],0xfde8])),_0x3a94df[_0x1628('0x38')]()):this['editor']['setData']('');},{'priority':_0x1628('0x2f')});}[_0x1628('0x35')](){super[_0x1628('0x35')](),this[_0x1628('0x20')]['listenTo'](this['element']),this[_0x1628('0xe')][_0x1628('0x34')](this[_0x1628('0x13')]);}[_0x1628('0x24')](){return this[_0x1628('0x19')]||(this[_0x1628('0x19')]=new _0x1be567(this[_0x1628('0x25')]),this[_0x1628('0x1')]=this[_0x1628('0x19')][_0x1628('0x1a')]()['then'](()=>{if(this['_isDestroyed'])return;const _0x3e54d9=this[_0x1628('0x19')];this[_0x1628('0x13')][_0x1628('0x28')](_0x3e54d9['ui'][_0x1628('0x13')],this['element']['firstChild']),_0x3e54d9[_0x1628('0x26')][_0x1628('0x15')]['on']('change',()=>this[_0x1628('0x32')]=_0x3e54d9['getData']()),_0x3e54d9[_0x1628('0x7')](_0x1628('0x16'))['to'](this),this[_0x1628('0x22')](this[_0x1628('0x19')]),this[_0x1628('0x10')](_0x1628('0xb'),this[_0x1628('0x19')]);})),this['_editorCreationPromise'];}['focus'](){this[_0x1628('0x19')]&&this[_0x1628('0x19')][_0x1628('0x14')]();}async[_0x1628('0x1e')](){this[_0x1628('0xc')]||(this[_0x1628('0xc')]=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this[_0x1628('0x19')][_0x1628('0x1e')](),this[_0x1628('0x10')]('editorDestroyed',this[_0x1628('0x19')])),await super[_0x1628('0x1e')]());}['_createSubmitButton'](){const {locale:_0x3d27c7}=this,_0x97d253=new _0x44e2cb(_0x3d27c7);return _0x97d253[_0x1628('0x30')]({'attributes':{'class':[_0x1628('0x2b')]}}),_0x97d253['withText']=!0x0,_0x97d253[_0x1628('0x7')](_0x1628('0x33'))['to'](this,_0x1628('0x9')),_0x97d253['on'](_0x1628('0x4'),()=>{this['fire'](_0x1628('0x37'),this[_0x1628('0x32')]);}),_0x97d253['bind']('isEnabled')['to'](this,_0x1628('0x32'),this,_0x1628('0x11'),(_0x58a524,_0x243c85)=>!_0x243c85&&!!_0x58a524[_0x1628('0x23')]()),_0x97d253;}[_0x1628('0x17')](){const {locale:_0x18b450}=this,_0x49b239=new _0x44e2cb(_0x18b450);return _0x49b239[_0x1628('0x30')]({'attributes':{'class':[_0x1628('0x29')]}}),_0x49b239['label']=_0x5d3f2e(_0x18b450,_0x1628('0x5')),_0x49b239[_0x1628('0x1b')]=!0x0,_0x49b239['on'](_0x1628('0x4'),()=>{this[_0x1628('0x19')][_0x1628('0x21')](''),this[_0x1628('0x10')](_0x1628('0x1f'));}),_0x49b239;}[_0x1628('0x22')](_0x4031f8){const _0x419afa=this[_0x1628('0xe')],_0x26b502=new _0x111592();[_0x4031f8['ui'][_0x1628('0x2')],this[_0x1628('0x27')],this['cancelButtonView']][_0x1628('0x31')](_0x27d28a=>{_0x26b502['add'](_0x27d28a),_0x419afa[_0x1628('0x34')](_0x27d28a[_0x1628('0x13')]);});const _0x26144e=new _0x377fc5({'focusables':_0x26b502,'focusTracker':_0x419afa});this[_0x1628('0x20')][_0x1628('0x2c')](_0x1628('0xd'),(_0x41d2df,_0x39f3eb)=>{_0x26144e['focusNext'](),_0x39f3eb();},{'priority':_0x1628('0x12')}),this['keystrokes'][_0x1628('0x2c')](_0x1628('0x18'),(_0x48f76e,_0x45bdd2)=>{_0x26144e['focusPrevious'](),_0x45bdd2();},{'priority':'low'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4af7=['remove','_focusTracker','EMPTY_COMMENTS_ARCHIVE','ck-comments-archive__info','high','element','listenTo','stopPropagation','COMMENTS_ARCHIVE','_focusCycler','isActive','auto','length','arrowright','render','isEmpty','ck-comments-archive__content','destroy','set','setTemplate','_focusables','focus','ck-hidden','bindTemplate','div','selectstart','_keystrokes','shift\x20+\x20tab','arrowup','ck-comments-archive__header\x20'];(function(_0xc8dc0d,_0x4af739){const _0x1dd125=function(_0x3e1297){while(--_0x3e1297){_0xc8dc0d['push'](_0xc8dc0d['shift']());}};_0x1dd125(++_0x4af739);}(_0x4af7,0x98));const _0x1dd1=function(_0xc8dc0d,_0x4af739){_0xc8dc0d=_0xc8dc0d-0x0;let _0x1dd125=_0x4af7[_0xc8dc0d];return _0x1dd125;};import{View as _0x1bfc9b,FocusCycler as _0x568987}from'ckeditor5/src/ui.js';import{FocusTracker as _0x3dd841,KeystrokeHandler as _0x5c76e3}from'ckeditor5/src/utils.js';import{getTranslation as _0x5e3495}from'../../../utils/common-translations.js';export default class K extends _0x1bfc9b{constructor(_0x413ebb,_0x28d71c){super(_0x413ebb),this[_0x1dd1('0x10')](_0x1dd1('0xd'),!_0x28d71c[_0x1dd1('0xa')]),this['_focusTracker']=new _0x3dd841(),this[_0x1dd1('0x18')]=new _0x5c76e3(),this[_0x1dd1('0x12')]=_0x28d71c,this[_0x1dd1('0x7')]=new _0x568987({'focusables':this['_focusables'],'focusTracker':this[_0x1dd1('0x1d')],'keystrokeHandler':this[_0x1dd1('0x18')],'actions':{'focusPrevious':_0x1dd1('0x19'),'focusNext':'tab'}}),this[_0x1dd1('0x4')](_0x28d71c,'add',()=>{this[_0x1dd1('0xd')]=!0x1;}),this[_0x1dd1('0x4')](_0x28d71c,_0x1dd1('0x1c'),(_0x4446ce,_0xb7830e)=>{_0xb7830e[_0x1dd1('0x8')]&&this[_0x1dd1('0x13')](),_0x28d71c[_0x1dd1('0xa')]||(this[_0x1dd1('0xd')]=!0x0);});const _0x527962=this[_0x1dd1('0x15')];this[_0x1dd1('0x11')]({'tag':_0x1dd1('0x16'),'attributes':{'dir':_0x1dd1('0x9'),'class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x1dd1('0x1b')]},'children':[{'text':_0x5e3495(_0x413ebb,_0x1dd1('0x6'))}]},{'tag':_0x1dd1('0x16'),'attributes':{'class':[_0x1dd1('0xe')]},'children':[{'tag':_0x1dd1('0x16'),'children':_0x28d71c},{'tag':'p','attributes':{'class':[_0x1dd1('0x1'),_0x527962['if'](_0x1dd1('0xd'),_0x1dd1('0x14'),_0x514a9d=>!_0x514a9d)]},'children':[{'text':_0x5e3495(_0x413ebb,_0x1dd1('0x0'))}]}]}]});}[_0x1dd1('0xc')](){super[_0x1dd1('0xc')](),this[_0x1dd1('0x18')][_0x1dd1('0x4')](this['element']);const _0x16c3fb=_0x2db3dc=>_0x2db3dc['stopPropagation']();this[_0x1dd1('0x18')][_0x1dd1('0x10')](_0x1dd1('0xb'),_0x16c3fb),this[_0x1dd1('0x18')][_0x1dd1('0x10')]('arrowleft',_0x16c3fb),this[_0x1dd1('0x18')][_0x1dd1('0x10')](_0x1dd1('0x1a'),_0x16c3fb),this[_0x1dd1('0x18')][_0x1dd1('0x10')]('arrowdown',_0x16c3fb),this[_0x1dd1('0x4')](this[_0x1dd1('0x3')],_0x1dd1('0x17'),(_0xed467d,_0x563ed3)=>{_0x563ed3[_0x1dd1('0x5')]();},{'priority':_0x1dd1('0x2')});}[_0x1dd1('0xf')](){super[_0x1dd1('0xf')](),this['_focusTracker'][_0x1dd1('0xf')](),this[_0x1dd1('0x18')][_0x1dd1('0xf')]();}[_0x1dd1('0x13')](){this['element'][_0x1dd1('0x13')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x168b=['commentViews','Marked\x20as\x20resolved','comments','createCollection','authoredAt','_findOptimalIndex','maxCommentCharsWhenCollapsed','delegate','_model','destroy','change:isActive','bind','get','_shouldCollapse','stopListening','resolvedBy','_calculatePosition','CommentView','focus','render','_config','some','hasDirtyComment','_collapsedCommentsView','expand','resolvedCommentView','resolvedAt','updateComment','equal','editorConfig','insert','_updateHasDirtyComment','set','length','remove','_rearrangeCollapse','listenTo','isActive','visibleViews','count','resolved','commentUpdated','refreshVisibleViews','from','add','delete','_handleRemoveCommentModel','setTemplate','viewUid','ck-thread__comments','element','formatDateTime','_handleInfoComment','_rearrangeExpand','locale','maxThreadTotalWeight','_handleNewCommentModel'];(function(_0x4aceaf,_0x168b4e){const _0x38d642=function(_0x1f8ba2){while(--_0x1f8ba2){_0x4aceaf['push'](_0x4aceaf['shift']());}};_0x38d642(++_0x168b4e);}(_0x168b,0x19e));const _0x38d6=function(_0x4aceaf,_0x168b4e){_0x4aceaf=_0x4aceaf-0x0;let _0x38d642=_0x168b[_0x4aceaf];return _0x38d642;};import{View as _0x2c7395}from'ckeditor5/src/ui.js';import{diff as _0xa8c75a,Collection as _0x51c1bb}from'ckeditor5/src/utils.js';import{getTranslation as _0x38dbc7}from'../../../utils/common-translations.js';import _0xfe1a8 from'./collapsedcommentsview.js';export default class vt extends _0x2c7395{constructor(_0x2ccc7b,_0x4482d4,_0x1ccdc6){super(_0x2ccc7b),this[_0x38d6('0x11')]('hasDirtyComment',!0x1),this[_0x38d6('0x11')]('length',_0x4482d4[_0x38d6('0x2c')]['length']),this[_0x38d6('0x11')](_0x38d6('0x16'),!0x1),this['_model']=_0x4482d4,this[_0x38d6('0x5')]=_0x1ccdc6,this[_0x38d6('0x2a')]=this[_0x38d6('0x2d')](),this['visibleViews']=this['createCollection'](),this[_0x38d6('0xa')]=null,this['_collapsedCommentsView']=new _0xfe1a8(_0x2ccc7b),this['_collapsedCommentsView'][_0x38d6('0x35')](_0x38d6('0x18'))['to'](this,_0x38d6('0x12'),_0x35f6f7=>_0x35f6f7-this[_0x38d6('0x5')]['maxCommentsWhenCollapsed']);for(const _0xb4db19 of _0x4482d4[_0x38d6('0x2c')])this[_0x38d6('0x29')](_0xb4db19);this['_handleInfoComment'](),this[_0x38d6('0x15')](_0x4482d4[_0x38d6('0x2c')],_0x38d6('0x1d'),(_0xa12cca,_0x4c62d9)=>{const _0x5b2504=this[_0x38d6('0x1')](_0x4c62d9);this[_0x38d6('0x12')]++,this[_0x38d6('0x29')](_0x4c62d9,_0x5b2504),this[_0x38d6('0x1b')]();}),this['listenTo'](_0x4482d4[_0x38d6('0x2c')],'remove',(_0x1c5d15,_0x2b5b14)=>{this['length']--,this[_0x38d6('0x1f')](_0x2b5b14),this[_0x38d6('0x1b')]();}),this[_0x38d6('0x15')](_0x4482d4,_0x38d6('0x1a'),()=>this[_0x38d6('0x1b')]()),this[_0x38d6('0x15')](_0x4482d4,'change:isResolved',()=>this[_0x38d6('0x25')]()),this['on'](_0x38d6('0x34'),()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this[_0x38d6('0x1b')]()),this[_0x38d6('0x20')]({'tag':'ul','attributes':{'class':[_0x38d6('0x22')]},'children':this[_0x38d6('0x17')]});}get[_0x38d6('0x37')](){return this[_0x38d6('0x32')]['weight']>this[_0x38d6('0x5')][_0x38d6('0x28')]&&!this[_0x38d6('0x16')]&&!this[_0x38d6('0x7')];}['render'](){super[_0x38d6('0x4')](),this[_0x38d6('0x1b')]();}['focus'](){this[_0x38d6('0x23')][_0x38d6('0x3')]();}[_0x38d6('0x33')](){this[_0x38d6('0x8')][_0x38d6('0x33')]();for(const _0x1d02f8 of this[_0x38d6('0x2a')])_0x1d02f8[_0x38d6('0x33')]();super['destroy']();}[_0x38d6('0x1b')](){this[_0x38d6('0x37')]?this['_rearrangeCollapse']():this[_0x38d6('0x26')]();}[_0x38d6('0x29')](_0x41371a,_0x4e245a){const _0x2f8209=new this[(_0x38d6('0x5'))][(_0x38d6('0x2'))](this[_0x38d6('0x27')],_0x41371a,{'maxCommentCharsWhenCollapsed':this[_0x38d6('0x5')][_0x38d6('0x30')],'formatDateTime':this[_0x38d6('0x5')][_0x38d6('0x24')],'editorConfig':this[_0x38d6('0x5')]['editorConfig']});_0x2f8209[_0x38d6('0x21')]=_0x41371a['id'],_0x2f8209[_0x38d6('0x31')]('removeComment')['to'](this),_0x2f8209[_0x38d6('0x31')](_0x38d6('0xc'))['to'](this),_0x2f8209['delegate']('resolveCommentThread')['to'](this),_0x2f8209[_0x38d6('0x31')]('editorReady')['to'](this),_0x2f8209[_0x38d6('0x31')]('editorDestroyed')['to'](this),this['listenTo'](_0x2f8209,'change:isEditMode',()=>this[_0x38d6('0x10')]()),this[_0x38d6('0x2a')][_0x38d6('0x1d')](_0x2f8209,_0x4e245a);}[_0x38d6('0x1')](_0x34d30b){const _0x4bfba0=this[_0x38d6('0x32')][_0x38d6('0x2f')](_0x34d30b);return this[_0x38d6('0xa')]?this['resolvedCommentView'][_0x38d6('0x2e')]>_0x34d30b['authoredAt']?_0x4bfba0-0x1:_0x4bfba0:_0x4bfba0-0x1;}[_0x38d6('0x25')](){if(this[_0x38d6('0x32')][_0x38d6('0x0')]&&this[_0x38d6('0x32')][_0x38d6('0xb')]){const _0x5dca26={'id':_0x38d6('0x19'),'author':this[_0x38d6('0x32')]['resolvedBy'],'authoredAt':this[_0x38d6('0x32')][_0x38d6('0xb')],'content':_0x38dbc7(this[_0x38d6('0x27')],_0x38d6('0x2b')),'attributes':{}};this[_0x38d6('0xa')]=new this[(_0x38d6('0x5'))][(_0x38d6('0x2'))](this[_0x38d6('0x27')],_0x5dca26,{'maxCommentCharsWhenCollapsed':this[_0x38d6('0x5')][_0x38d6('0x30')],'formatDateTime':this[_0x38d6('0x5')]['formatDateTime'],'editorConfig':this[_0x38d6('0x5')][_0x38d6('0xe')],'isSystemComment':!0x0}),this[_0x38d6('0x2a')]['add'](this['resolvedCommentView'],this[_0x38d6('0x32')]['_findOptimalIndex'](_0x5dca26));}else this[_0x38d6('0xa')]&&(this[_0x38d6('0x2a')]['remove'](this[_0x38d6('0xa')]),this['resolvedCommentView'][_0x38d6('0x33')](),this[_0x38d6('0xa')]=null);this[_0x38d6('0x1b')]();}['_handleRemoveCommentModel'](_0x218713){const _0x37cc9a=this[_0x38d6('0x2a')]['remove'](_0x218713['id']);this[_0x38d6('0x38')](_0x37cc9a),_0x37cc9a['isEditMode']&&this['_updateHasDirtyComment'](),_0x37cc9a['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array[_0x38d6('0x1c')](this[_0x38d6('0x2a')])[_0x38d6('0x6')](_0x381766=>_0x381766['isEditMode']);}[_0x38d6('0x14')](){const _0xfcf2c1=function(_0x5b569f){const _0x301ccb=new _0x51c1bb();for(const _0x5debdc of _0x5b569f)_0x301ccb[_0x38d6('0x1d')](_0x5debdc);return _0x301ccb;}(this['commentViews']),_0x299b99=this['_collapsedCommentsView']['count'];for(let _0x5cefcf=0x1;_0x5cefcf<=_0x299b99;_0x5cefcf++)_0xfcf2c1['remove'](0x1);for(const _0x46ab93 of _0xfcf2c1)_0x46ab93['collapse']();_0x299b99>0x0&&_0xfcf2c1[_0x38d6('0x1d')](this[_0x38d6('0x8')],0x1),is(_0xa8c75a(Array[_0x38d6('0x1c')](this[_0x38d6('0x17')]),Array['from'](_0xfcf2c1)),this[_0x38d6('0x17')],_0xfcf2c1);}[_0x38d6('0x26')](){is(_0xa8c75a(Array['from'](this[_0x38d6('0x17')]),Array[_0x38d6('0x1c')](this['commentViews'])),this['visibleViews'],this[_0x38d6('0x2a')]);for(const _0x3b2e8a of this[_0x38d6('0x17')])_0x3b2e8a[_0x38d6('0x9')]();}}function is(_0x17284e,_0xf66bfb,_0x5a5eb4){let _0x12f92e=0x0;for(const _0x36d3d4 of _0x17284e)switch(_0x36d3d4){case _0x38d6('0xf'):_0xf66bfb[_0x38d6('0x1d')](_0x5a5eb4[_0x38d6('0x36')](_0x12f92e),_0x12f92e),_0x12f92e++;break;case _0x38d6('0x1e'):_0xf66bfb[_0x38d6('0x13')](_0x12f92e);break;case _0x38d6('0xd'):_0x12f92e++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d82=['Reopen','overlay','listenTo','hasContext','...','tooltip','value','isEnabled','scrollWidth','reopenButtonView','substring','_attachContextActions','_createReopenButton','label','classList','fire','context','isReadOnly','locale','setTemplate','span','.ck-context','ck-context__value','add','bindTemplate','lastIndexOf','mouseenter','execute','mouseleave','contextValue','_model','querySelector','isResolvable','div','.ck-context__value','bind','ck-context--quotes','isResolved','ck-context-wrapper','length'];(function(_0xaa0423,_0x3d8220){const _0x307fd4=function(_0x4fec9d){while(--_0x4fec9d){_0xaa0423['push'](_0xaa0423['shift']());}};_0x307fd4(++_0x3d8220);}(_0x3d82,0x90));const _0x307f=function(_0xaa0423,_0x3d8220){_0xaa0423=_0xaa0423-0x0;let _0x307fd4=_0x3d82[_0xaa0423];return _0x307fd4;};import{View as _0x1820c4,ButtonView as _0x49739a}from'ckeditor5/src/ui.js';import{getTranslation as _0x58e836}from'../../../utils/common-translations.js';import _0xa312e4 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x1820c4{constructor(_0x5c7541,_0x3959c6){super(_0x5c7541);const _0x1f9692=this[_0x307f('0x0')];this['_model']=_0x3959c6,this[_0x307f('0x19')]=this[_0x307f('0x1c')](),this[_0x307f('0xb')](_0x307f('0x13'))['to'](this[_0x307f('0x6')],_0x307f('0x20'),_0x517c04=>!!_0x517c04),this[_0x307f('0xb')](_0x307f('0x5'))['to'](this[_0x307f('0x6')],_0x307f('0x20'),_0x22c948=>_0x22c948&&_0x22c948[_0x307f('0x16')]?this['_trimContextValue'](_0x22c948[_0x307f('0x16')]):_0x58e836(this[_0x307f('0x22')],'Comment\x20was\x20made\x20on\x20an\x20element')),this[_0x307f('0x23')]({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':_0x307f('0x9'),'attributes':{'class':[_0x307f('0xe')]},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x1f9692['if'](_0x307f('0x13'),_0x307f('0xc'))]},'children':[{'tag':_0x307f('0x24'),'attributes':{'class':[_0x307f('0x26')]},'children':[{'text':_0x1f9692['to'](_0x307f('0x5'))}]}]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this[_0x307f('0x19')]]}]});}['render'](){super['render'](),this[_0x307f('0x1b')]();}[_0x307f('0x1c')](){const _0x3da495=new _0x49739a(this['locale']);return _0x3da495[_0x307f('0x1d')]=_0x58e836(this[_0x307f('0x22')],_0x307f('0x10')),_0x3da495[_0x307f('0x15')]=_0x58e836(this[_0x307f('0x22')],_0x307f('0x10')),_0x3da495['icon']=_0xa312e4,_0x3da495[_0x307f('0xb')](_0x307f('0x17'))['to'](this[_0x307f('0x6')],_0x307f('0x21'),_0x42fca2=>!_0x42fca2),_0x3da495['bind']('isVisible')['to'](this[_0x307f('0x6')],_0x307f('0x8'),this[_0x307f('0x6')],_0x307f('0xd'),(_0x6fbf91,_0x33b19a)=>_0x6fbf91&&_0x33b19a),_0x3da495['on'](_0x307f('0x3'),()=>{this[_0x307f('0x1f')]('reopenCommentThread',this[_0x307f('0x6')]['id']);}),_0x3da495;}['_trimContextValue'](_0x2e5703){if(_0x2e5703[_0x307f('0xf')]<0x96)return _0x2e5703;const _0x983e89=_0x2e5703[_0x307f('0x1')]('\x20',0x93);return _0x2e5703[_0x307f('0x1a')](0x0,_0x983e89>-0x1?_0x983e89:0x93)+_0x307f('0x14');}[_0x307f('0x1b')](){const _0xf26d42=this['element'][_0x307f('0x7')](_0x307f('0x25')),_0x49ee19=_0xf26d42[_0x307f('0x7')](_0x307f('0xa'));this[_0x307f('0x12')](_0xf26d42,_0x307f('0x2'),()=>{_0x49ee19['offsetWidth']<_0x49ee19[_0x307f('0x18')]&&_0xf26d42[_0x307f('0x1e')][_0x307f('0x27')](_0x307f('0x11'));}),this[_0x307f('0x12')](_0xf26d42,_0x307f('0x4'),()=>{_0xf26d42[_0x307f('0x1e')]['remove'](_0x307f('0x11'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5609=['commentInputView','ck-comment__input-container--active','then','set','focusTracker','div','value','bindTemplate','setTemplate','isFocused','change:showInput','ck-thread__input','bind','showInput','ck-thread__user','extendTemplate','ck-comment__input-container','delegate','destroy','userView','showButtons','editorDestroyed'];(function(_0x19bf6c,_0x56093d){var _0x15f99f=function(_0x14066f){while(--_0x14066f){_0x19bf6c['push'](_0x19bf6c['shift']());}};_0x15f99f(++_0x56093d);}(_0x5609,0xd0));var _0x15f9=function(_0x19bf6c,_0x56093d){_0x19bf6c=_0x19bf6c-0x0;var _0x15f99f=_0x5609[_0x19bf6c];return _0x15f99f;};import{View as _0x9addd5}from'ckeditor5/src/ui.js';import _0x2d7106 from'./commentinputview.js';import{UserView as _0x33d65c}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x9addd5{constructor(_0x1f24f1,_0x457e8a,_0x5b54b9){super(_0x1f24f1),this[_0x15f9('0xc')]=new _0x2d7106(_0x1f24f1,_0x5b54b9),this[_0x15f9('0xc')][_0x15f9('0x2')](_0x15f9('0xa'))['to'](this[_0x15f9('0xc')][_0x15f9('0x10')],_0x15f9('0x15'),this['commentInputView'],_0x15f9('0x12'),(_0xed693d,_0x10e3cc)=>_0xed693d||!!_0x10e3cc),this[_0x15f9('0xf')](_0x15f9('0x3'),!0x1),this['on'](_0x15f9('0x0'),()=>{this[_0x15f9('0x3')]&&!this[_0x15f9('0xc')]['editor']&&this[_0x15f9('0xc')]['createEditor']();}),this[_0x15f9('0xc')]['delegate']('editorReady')['to'](this),this[_0x15f9('0xc')][_0x15f9('0x7')](_0x15f9('0xb'))['to'](this),this[_0x15f9('0x9')]=new _0x33d65c(_0x1f24f1,_0x457e8a),this[_0x15f9('0x9')][_0x15f9('0x5')]({'attributes':{'class':_0x15f9('0x4')}}),this[_0x15f9('0xc')][_0x15f9('0x5')]({'attributes':{'class':_0x15f9('0x1')}}),this[_0x15f9('0x14')]({'tag':_0x15f9('0x11'),'attributes':{'class':[_0x15f9('0x6'),this[_0x15f9('0x13')]['if'](_0x15f9('0x3'),_0x15f9('0xd'))]},'children':[this[_0x15f9('0x9')],this['commentInputView']]});}['destroy'](){return this[_0x15f9('0xc')][_0x15f9('0x8')]()[_0x15f9('0xe')](()=>super[_0x15f9('0x8')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e93=['childList','attributeName','class','disconnect','cancel','observe','type'];(function(_0x4bcee5,_0x4e934b){const _0x544d7c=function(_0x30f976){while(--_0x30f976){_0x4bcee5['push'](_0x4bcee5['shift']());}};_0x544d7c(++_0x4e934b);}(_0x4e93,0x1a2));const _0x544d=function(_0x4bcee5,_0x4e934b){_0x4bcee5=_0x4bcee5-0x0;let _0x544d7c=_0x4e93[_0x4bcee5];return _0x544d7c;};import{throttle as _0x31a616}from'lodash-es';export default function xt(_0x542378){const _0x251735=_0x31a616(_0x542378,0x1e),_0x2d9507=new MutationObserver(_0x1ca85b=>{for(const _0x402b09 of _0x1ca85b)('attributes'==_0x402b09[_0x544d('0x1')]&&_0x544d('0x4')==_0x402b09[_0x544d('0x3')]||_0x544d('0x2')==_0x402b09[_0x544d('0x1')]||'characterData'==_0x402b09[_0x544d('0x1')])&&_0x251735();});return{'attach'(_0x194d98){_0x2d9507[_0x544d('0x0')](_0x194d98,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x2d9507[_0x544d('0x5')](),_0x251735[_0x544d('0x6')]();}};}
|