@ckeditor/ckeditor5-comments 0.0.0-nightly-20231225.0 → 0.0.0-nightly-20231226.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 _0x1a1a=['focus','CommentView','Reply\x20to\x20reopen\x20discussion...','commentThreadInputView','element','_model','cancel','submitLabel','addComment','resolveCommentThread','archivedAt','change:isActive','isResolved','isActive','commentInputView','delegate','submitCommentThread','locale','bind','showInput','removeComment','editorDestroyed','_localUser','submit','isResolvable','canComment','isReadOnly','unlinkedAt','updateComment','commentThreadHeaderView','Comment','editorReady','reopenCommentThread','value','isUnlinked','hasDirtyComment','Write\x20a\x20comment...','listenTo','isDirty','Reply...','isSubmitted','commentsListView','_config','fire','length','placeholder','set','destroy'];(function(_0x2633fb,_0x1a1a25){const _0x418271=function(_0x47b023){while(--_0x47b023){_0x2633fb['push'](_0x2633fb['shift']());}};_0x418271(++_0x1a1a25);}(_0x1a1a,0x104));const _0x4182=function(_0x2633fb,_0x1a1a25){_0x2633fb=_0x2633fb-0x0;let _0x418271=_0x1a1a[_0x2633fb];return _0x418271;};import{View as _0x34cf85}from'ckeditor5/src/ui.js';import _0x5e4c3e from'./commentthreadinputview.js';import _0x42a9b6 from'./commentslistview.js';import _0x512a9f from'./commentthreadheaderview.js';import{getTranslation as _0xa87e4a}from'../../../utils/common-translations.js';export default class Ut extends _0x34cf85{constructor(_0x490563,_0x209855,_0x4fe8d5,_0x1c9e5a){super(_0x490563),this[_0x4182('0x1a')](_0x4182('0x29'),!0x1),this[_0x4182('0x1a')](_0x4182('0x12'),!0x1),this[_0x4182('0x21')]=_0x209855,this[_0x4182('0x2')]=_0x4fe8d5,this[_0x4182('0x16')]=_0x1c9e5a,this[_0x4182('0x9')]=new _0x512a9f(_0x490563,_0x209855),this[_0x4182('0x9')][_0x4182('0x2b')](_0x4182('0xc'))['to'](this),this[_0x4182('0x11')](this,_0x4182('0xc'),()=>{this[_0x4182('0x1c')]();}),this['commentsListView']=new _0x42a9b6(_0x490563,_0x209855,Object['assign']({'CommentView':this[_0x4182('0x16')][_0x4182('0x1d')]},_0x1c9e5a)),this[_0x4182('0x15')][_0x4182('0x2b')](_0x4182('0x0'))['to'](this),this[_0x4182('0x15')][_0x4182('0x2b')](_0x4182('0x8'))['to'](this),this['commentsListView'][_0x4182('0x2b')](_0x4182('0x25'))['to'](this),this[_0x4182('0x15')][_0x4182('0x2b')](_0x4182('0xb'))['to'](this),this[_0x4182('0x15')]['delegate'](_0x4182('0x1'))['to'](this),this['commentsListView'][_0x4182('0x2e')](_0x4182('0x29'))['to'](this),this[_0x4182('0x11')](this,'resolveCommentThread',()=>{this[_0x4182('0x1c')]();}),this[_0x4182('0x1a')](_0x4182('0x18'),this[_0x4182('0x15')][_0x4182('0x18')]),this[_0x4182('0x2e')]('length')['to'](this['commentsListView'],_0x4182('0x18')),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this[_0x4182('0x1f')][_0x4182('0x2b')](_0x4182('0xb'))['to'](this),this['commentThreadInputView'][_0x4182('0x2b')](_0x4182('0x1'))['to'](this),this['on'](_0x4182('0x0'),()=>this[_0x4182('0x1c')]()),this[_0x4182('0x2e')](_0x4182('0x12'))['to'](this['commentsListView'],_0x4182('0xf'),this['commentThreadInputView'][_0x4182('0x2a')],_0x4182('0xd'),(_0x39aa39,_0x242063)=>_0x39aa39||!!_0x242063),this[_0x4182('0x2e')](_0x4182('0xe'))['to'](_0x209855,_0x4182('0x7'),_0x289c6e=>!!_0x289c6e);}[_0x4182('0x1c')](){this[_0x4182('0x20')]['focus']();}async[_0x4182('0x1b')](){this['isDirty']=!0x1,this[_0x4182('0x15')][_0x4182('0x1b')](),await this[_0x4182('0x1f')]['destroy'](),super[_0x4182('0x1b')]();}['_createCommentThreadInputView'](){const _0x4924ba=new _0x5e4c3e(this['locale'],this[_0x4182('0x2')],this['_config']['editorConfig']),_0x1755f7=_0x4924ba['commentInputView'];return _0x4924ba[_0x4182('0x2e')](_0x4182('0x2f'))['to'](this,'isActive',this[_0x4182('0x21')],'isReadOnly',this[_0x4182('0x21')],_0x4182('0x5'),this[_0x4182('0x21')],_0x4182('0x26'),_0x1755f7,_0x4182('0xd'),(_0x1bea4b,_0x389378,_0x25db57,_0x486768,_0x247bf8)=>!!_0x247bf8||!!_0x486768&&_0x25db57&&!_0x389378||_0x1bea4b&&_0x25db57&&!_0x389378),_0x1755f7[_0x4182('0x2e')](_0x4182('0x19'))['to'](this,_0x4182('0x18'),this[_0x4182('0x21')],_0x4182('0x4'),this[_0x4182('0x21')],_0x4182('0x28'),(_0x1bd4d6,_0x47892a,_0x54e53c)=>{let _0x26838a;return _0x26838a=_0x54e53c&&_0x47892a?_0x4182('0x1e'):_0x1bd4d6?_0x4182('0x13'):_0x4182('0x10'),_0xa87e4a(this['locale'],_0x26838a);}),_0x1755f7[_0x4182('0x2e')](_0x4182('0x23'))['to'](this,_0x4182('0x18'),_0x2d3bb5=>_0xa87e4a(this[_0x4182('0x2d')],_0x2d3bb5?'Reply':_0x4182('0xa'))),_0x1755f7['on'](_0x4182('0x3'),(_0x1254f0,_0x2e7f9b)=>{this[_0x4182('0x17')](_0x4182('0x24'),_0x2e7f9b),this[_0x4182('0x21')][_0x4182('0x28')]&&this['_model']['isResolvable']&&this[_0x4182('0x17')](_0x4182('0xc'),this[_0x4182('0x21')]['id']),this[_0x4182('0x21')][_0x4182('0x14')]||this[_0x4182('0x17')](_0x4182('0x2c'));}),_0x1755f7['on'](_0x4182('0x22'),()=>{this['focus']();}),_0x1755f7['bind']('disabledSubmit')['to'](this[_0x4182('0x21')],_0x4182('0x6')),_0x1755f7['on']('cancel',_0x463341=>{0x0==this[_0x4182('0x18')]&&(this[_0x4182('0x17')]('removeCommentThread'),_0x463341['stop']());}),this['on'](_0x4182('0x27'),(_0x165788,_0x2f7479,_0x1c990e)=>{_0x1c990e||this[_0x4182('0x18')]||_0x1755f7['value']||this[_0x4182('0x17')]('removeCommentThread');}),_0x4924ba;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5504=['destroy','_createCommentInputView','editorConfig','set','content','createCollection','initialData','once','element','switchToDisplayMode','_config','value','expand','focus','switchToEditMode','delegate','visibleView','maxCommentCharsWhenCollapsed','isCollapsed','isSystemComment','get','_createCommentContentView','editorDestroyed','editorReady','fire','updateComment','submit','_model','bind','locale','submitLabel','isEditMode','add','remove','createEditor','disabledSubmit','Save'];(function(_0x628b48,_0x5504e2){const _0x12c765=function(_0x662d4a){while(--_0x662d4a){_0x628b48['push'](_0x628b48['shift']());}};_0x12c765(++_0x5504e2);}(_0x5504,0x7d));const _0x12c7=function(_0x628b48,_0x5504e2){_0x628b48=_0x628b48-0x0;let _0x12c765=_0x5504[_0x628b48];return _0x12c765;};import{View as _0x638adf}from'ckeditor5/src/ui.js';import{trimHtml as _0x5019d8}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x46317a from'./commentcontentview.js';import _0x22b04c from'./commentinputview.js';import{getTranslation as _0x295320}from'../../../utils/common-translations.js';export default class ti extends _0x638adf{constructor(_0x2999b1,_0x5372ee,_0x2764cb){super(_0x2999b1),this[_0x12c7('0xd')]=_0x5372ee,this[_0x12c7('0x21')]=_0x2764cb,this[_0x12c7('0x5')]=!!this[_0x12c7('0x21')][_0x12c7('0x5')],this[_0x12c7('0x1a')](_0x12c7('0x11'),!0x1),this[_0x12c7('0x1a')](_0x12c7('0x4'),!0x0),this[_0x12c7('0x2')]=this[_0x12c7('0x1c')](),this[_0x12c7('0x2')][_0x12c7('0x12')](this[_0x12c7('0x7')]());}[_0x12c7('0x23')](){this[_0x12c7('0x4')]=!0x1;}['collapse'](){this[_0x12c7('0x11')]||(this[_0x12c7('0x4')]=!0x0);}[_0x12c7('0x24')](){this[_0x12c7('0x1f')][_0x12c7('0x24')]();}async[_0x12c7('0x17')](){await this['visibleView'][_0x12c7('0x6')](0x0)['destroy'](),super[_0x12c7('0x17')]();}[_0x12c7('0x0')](){this[_0x12c7('0x11')]||(this[_0x12c7('0x11')]=!0x0,this[_0x12c7('0x2')]['remove'](0x0)[_0x12c7('0x17')](),this[_0x12c7('0x2')][_0x12c7('0x12')](this[_0x12c7('0x18')]()));}[_0x12c7('0x20')](){this[_0x12c7('0x11')]&&(this[_0x12c7('0x11')]=!0x1,this[_0x12c7('0x2')][_0x12c7('0x13')](0x0)['destroy'](),this[_0x12c7('0x2')][_0x12c7('0x12')](this[_0x12c7('0x7')]()));}[_0x12c7('0x7')](){const _0x36af52=new _0x46317a(this[_0x12c7('0xf')]);return _0x36af52[_0x12c7('0xe')]('content')['to'](this[_0x12c7('0xd')],_0x12c7('0x1b'),this,'isCollapsed',(_0x195b58,_0x1af000)=>_0x1af000?_0x5019d8(_0x195b58,{'limit':this[_0x12c7('0x21')][_0x12c7('0x3')]}):_0x195b58),_0x36af52;}[_0x12c7('0x18')](){this[_0x12c7('0x21')][_0x12c7('0x19')]||(this[_0x12c7('0x21')][_0x12c7('0x19')]={}),this[_0x12c7('0x21')][_0x12c7('0x19')][_0x12c7('0x1d')]=this['_model'][_0x12c7('0x1b')];const _0x541535=new _0x22b04c(this[_0x12c7('0xf')],this[_0x12c7('0x21')][_0x12c7('0x19')]);return _0x541535[_0x12c7('0x22')]=this['_model'][_0x12c7('0x1b')],_0x541535['bind'](_0x12c7('0x15'))['to'](this['_model'],'isReadOnly'),_0x541535[_0x12c7('0x10')]=_0x295320(this[_0x12c7('0xf')],_0x12c7('0x16')),_0x541535['on'](_0x12c7('0xc'),(_0x247822,_0x5121d6)=>{this[_0x12c7('0xa')](_0x12c7('0xb'),this[_0x12c7('0xd')]['id'],_0x5121d6),this[_0x12c7('0x20')](),this[_0x12c7('0x24')]();}),_0x541535['on']('cancel',()=>{this[_0x12c7('0x20')](),this[_0x12c7('0x24')]();}),_0x541535[_0x12c7('0x1e')]('editorReady',()=>{_0x541535[_0x12c7('0x24')]();}),_0x541535[_0x12c7('0x14')](),_0x541535[_0x12c7('0x1')](_0x12c7('0x9'))['to'](this),_0x541535[_0x12c7('0x1')](_0x12c7('0x8'))['to'](this),_0x541535;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57fd=['NUMBER_OF_COMMENTS','ck-thread__comment-count','bindTemplate','count','set'];(function(_0x526a39,_0x57fd7d){const _0x1a2b94=function(_0x287ad4){while(--_0x287ad4){_0x526a39['push'](_0x526a39['shift']());}};_0x1a2b94(++_0x57fd7d);}(_0x57fd,0x1be));const _0x1a2b=function(_0x526a39,_0x57fd7d){_0x526a39=_0x526a39-0x0;let _0x1a2b94=_0x57fd[_0x526a39];return _0x1a2b94;};import{View as _0x2b8694}from'ckeditor5/src/ui.js';import{getTranslation as _0x2e84d8}from'../../../utils/common-translations.js';export default class ts extends _0x2b8694{constructor(_0x2b7f27){super(_0x2b7f27);const _0x1e99ca=this[_0x1a2b('0x1')];this[_0x1a2b('0x3')](_0x1a2b('0x2'),void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':_0x1a2b('0x0')},'children':[{'text':_0x1e99ca['to'](_0x1a2b('0x2'),_0x45547f=>_0x2e84d8(_0x2b7f27,_0x1a2b('0x4'),_0x45547f))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x41c6=['innerHTML','ck-annotation__content','set','render','setTemplate','element','content'];(function(_0x807266,_0x41c644){var _0x3a3964=function(_0xcd7e94){while(--_0xcd7e94){_0x807266['push'](_0x807266['shift']());}};_0x3a3964(++_0x41c644);}(_0x41c6,0x85));var _0x3a39=function(_0x807266,_0x41c644){_0x807266=_0x807266-0x0;var _0x3a3964=_0x41c6[_0x807266];return _0x3a3964;};import{View as _0x213eda}from'ckeditor5/src/ui.js';export default class Yt extends _0x213eda{constructor(_0x2e1b7c){super(_0x2e1b7c),this[_0x3a39('0x2')](_0x3a39('0x6'),''),this[_0x3a39('0x4')]({'tag':'div','attributes':{'class':['ck-comment__content',_0x3a39('0x1')]}});}[_0x3a39('0x3')](){super['render'](),this['on']('change:content',(_0x402b1e,_0x8347d1,_0x275093)=>{this[_0x3a39('0x5')][_0x3a39('0x0')]=_0x275093;}),this['element'][_0x3a39('0x0')]=this[_0x3a39('0x6')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5acb=['element','Cancel','_isDestroyed','submitLabel','_createCancelButton','keystrokes','render','focus','createEditor','insertBefore','view','submit','setTemplate','withText','set','ck-comment__input-actions--cancel','low','_editorConfig','showButtons','label','editor','_initializeFocusCycling','tab','cancel','model','submitButtonView','change','_editorCreationPromise','ck-comment__input-actions','add','initialData','Reply','focusNext','create','_createSubmitButton','Reply...','fire','ck-comment__input-actions--active','placeholder','trim','document','ck-comment__input-actions--submit','high','focusTracker','TOO_LONG_COMMENT_ALERT','div','cancelButtonView','setData','destroy','listenTo','value','execute','shift\x20+\x20tab','ck-comment__input-wrapper','stop','bind'];(function(_0x3e36ea,_0x5acb10){const _0x140dff=function(_0x5783eb){while(--_0x5783eb){_0x3e36ea['push'](_0x3e36ea['shift']());}};_0x140dff(++_0x5acb10);}(_0x5acb,0x169));const _0x140d=function(_0x3e36ea,_0x5acb10){_0x3e36ea=_0x3e36ea-0x0;let _0x140dff=_0x5acb[_0x3e36ea];return _0x140dff;};import{View as _0x29f651,ViewCollection as _0x577004,FocusCycler as _0x152d30,ButtonView as _0x2c8ab1}from'ckeditor5/src/ui.js';import{FocusTracker as _0x24a3f7,KeystrokeHandler as _0x70fef0}from'ckeditor5/src/utils.js';import _0x455261 from'../commenteditor/commenteditor.js';import{getTranslation as _0x1c88ee}from'../../../utils/common-translations.js';export default class Zt extends _0x29f651{constructor(_0x130e16,_0x56dd81={}){super(_0x130e16),this[_0x140d('0x33')]=null,this[_0x140d('0x30')]=_0x56dd81,this[_0x140d('0x24')]=new _0x70fef0(),this[_0x140d('0x12')]=new _0x24a3f7(),this['set'](_0x140d('0x19'),_0x56dd81[_0x140d('0x5')]||''),this[_0x140d('0x2d')]('disabledSubmit',!0x1),this[_0x140d('0x2d')](_0x140d('0x31'),!0x0),this[_0x140d('0x2d')](_0x140d('0xd'),_0x1c88ee(_0x130e16,_0x140d('0xa'))),this[_0x140d('0x2d')](_0x140d('0x22'),_0x1c88ee(_0x130e16,_0x140d('0x6'))),this['submitButtonView']=this[_0x140d('0x9')](),this['cancelButtonView']=this[_0x140d('0x23')](),this[_0x140d('0x2b')]({'tag':'div','attributes':{'class':[_0x140d('0x1c')]},'children':[{'tag':_0x140d('0x14'),'attributes':{'class':[_0x140d('0x3'),this['bindTemplate']['if'](_0x140d('0x31'),_0x140d('0xc'))]},'children':[this['submitButtonView'],this[_0x140d('0x15')]]}]}),this[_0x140d('0x24')]['set']('Esc',(_0x606e31,_0x78d7c4)=>{this[_0x140d('0x15')][_0x140d('0xb')](_0x140d('0x1a')),_0x78d7c4();}),this['on'](_0x140d('0x2a'),(_0x284f51,_0x3d9155)=>{_0x3d9155['length']>0xfde8?(alert(_0x1c88ee(_0x130e16,_0x140d('0x13'),[_0x3d9155['length'],0xfde8])),_0x284f51[_0x140d('0x1d')]()):this[_0x140d('0x33')]['setData']('');},{'priority':_0x140d('0x11')});}[_0x140d('0x25')](){super['render'](),this[_0x140d('0x24')][_0x140d('0x18')](this[_0x140d('0x1f')]),this[_0x140d('0x12')]['add'](this[_0x140d('0x1f')]);}[_0x140d('0x27')](){return this[_0x140d('0x33')]||(this[_0x140d('0x33')]=new _0x455261(this[_0x140d('0x30')]),this[_0x140d('0x2')]=this[_0x140d('0x33')][_0x140d('0x8')]()['then'](()=>{if(this[_0x140d('0x21')])return;const _0x4e2159=this[_0x140d('0x33')];this[_0x140d('0x1f')][_0x140d('0x28')](_0x4e2159['ui'][_0x140d('0x1f')],this[_0x140d('0x1f')]['firstChild']),_0x4e2159[_0x140d('0x37')][_0x140d('0xf')]['on'](_0x140d('0x1'),()=>this[_0x140d('0x19')]=_0x4e2159['getData']()),_0x4e2159[_0x140d('0x1e')]('placeholder')['to'](this),this['_initializeFocusCycling'](this['editor']),this[_0x140d('0xb')]('editorReady',this[_0x140d('0x33')]);})),this[_0x140d('0x2')];}[_0x140d('0x26')](){this[_0x140d('0x33')]&&this[_0x140d('0x33')][_0x140d('0x26')]();}async[_0x140d('0x17')](){this[_0x140d('0x21')]||(this[_0x140d('0x21')]=!0x0,this[_0x140d('0x33')]&&(await this[_0x140d('0x2')],await this[_0x140d('0x33')][_0x140d('0x17')](),this[_0x140d('0xb')]('editorDestroyed',this[_0x140d('0x33')])),await super[_0x140d('0x17')]());}[_0x140d('0x9')](){const {locale:_0x43551d}=this,_0x329d48=new _0x2c8ab1(_0x43551d);return _0x329d48['extendTemplate']({'attributes':{'class':[_0x140d('0x10')]}}),_0x329d48[_0x140d('0x2c')]=!0x0,_0x329d48[_0x140d('0x1e')](_0x140d('0x32'))['to'](this,'submitLabel'),_0x329d48['on'](_0x140d('0x1a'),()=>{this[_0x140d('0xb')](_0x140d('0x2a'),this['value']);}),_0x329d48[_0x140d('0x1e')]('isEnabled')['to'](this,_0x140d('0x19'),this,'disabledSubmit',(_0x1e949e,_0x380633)=>!_0x380633&&!!_0x1e949e[_0x140d('0xe')]()),_0x329d48;}[_0x140d('0x23')](){const {locale:_0x432cca}=this,_0x38e7ee=new _0x2c8ab1(_0x432cca);return _0x38e7ee['extendTemplate']({'attributes':{'class':[_0x140d('0x2e')]}}),_0x38e7ee[_0x140d('0x32')]=_0x1c88ee(_0x432cca,_0x140d('0x20')),_0x38e7ee['withText']=!0x0,_0x38e7ee['on'](_0x140d('0x1a'),()=>{this['editor'][_0x140d('0x16')](''),this[_0x140d('0xb')](_0x140d('0x36'));}),_0x38e7ee;}[_0x140d('0x34')](_0x2292bd){const _0x522402=this[_0x140d('0x12')],_0x20551b=new _0x577004();[_0x2292bd['ui'][_0x140d('0x29')],this[_0x140d('0x0')],this[_0x140d('0x15')]]['forEach'](_0x322b59=>{_0x20551b[_0x140d('0x4')](_0x322b59),_0x522402['add'](_0x322b59[_0x140d('0x1f')]);});const _0x220b8e=new _0x152d30({'focusables':_0x20551b,'focusTracker':_0x522402});this[_0x140d('0x24')][_0x140d('0x2d')](_0x140d('0x35'),(_0x465f5d,_0x1e1dce)=>{_0x220b8e[_0x140d('0x7')](),_0x1e1dce();},{'priority':_0x140d('0x2f')}),this[_0x140d('0x24')]['set'](_0x140d('0x1b'),(_0x3b1368,_0x432910)=>{_0x220b8e['focusPrevious'](),_0x432910();},{'priority':_0x140d('0x2f')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4790=['arrowleft','div','_focusables','high','listenTo','destroy','_focusCycler','auto','ck-comments-archive__header\x20','ck-comments-archive__content','selectstart','COMMENTS_ARCHIVE','ck-hidden','render','set','_focusTracker','isActive','tab','isEmpty','add','ck-comments-archive__info','stopPropagation','_keystrokes','EMPTY_COMMENTS_ARCHIVE','shift\x20+\x20tab','arrowup','arrowright','length','focus','element','remove','setTemplate'];(function(_0x5583fc,_0x479034){const _0x378817=function(_0xd9862){while(--_0xd9862){_0x5583fc['push'](_0x5583fc['shift']());}};_0x378817(++_0x479034);}(_0x4790,0x7a));const _0x3788=function(_0x5583fc,_0x479034){_0x5583fc=_0x5583fc-0x0;let _0x378817=_0x4790[_0x5583fc];return _0x378817;};import{View as _0x41f1f8,FocusCycler as _0x5b97b9}from'ckeditor5/src/ui.js';import{FocusTracker as _0x33350c,KeystrokeHandler as _0x49ef66}from'ckeditor5/src/utils.js';import{getTranslation as _0x1f9765}from'../../../utils/common-translations.js';export default class K extends _0x41f1f8{constructor(_0x474492,_0x564784){super(_0x474492),this[_0x3788('0x14')](_0x3788('0x18'),!_0x564784[_0x3788('0x1')]),this[_0x3788('0x15')]=new _0x33350c(),this['_keystrokes']=new _0x49ef66(),this[_0x3788('0x8')]=_0x564784,this[_0x3788('0xc')]=new _0x5b97b9({'focusables':this[_0x3788('0x8')],'focusTracker':this[_0x3788('0x15')],'keystrokeHandler':this[_0x3788('0x1c')],'actions':{'focusPrevious':_0x3788('0x1e'),'focusNext':_0x3788('0x17')}}),this[_0x3788('0xa')](_0x564784,_0x3788('0x19'),()=>{this[_0x3788('0x18')]=!0x1;}),this[_0x3788('0xa')](_0x564784,_0x3788('0x4'),(_0x1fbca4,_0x47f412)=>{_0x47f412[_0x3788('0x16')]&&this['focus'](),_0x564784[_0x3788('0x1')]||(this[_0x3788('0x18')]=!0x0);});const _0x241e51=this['bindTemplate'];this[_0x3788('0x5')]({'tag':_0x3788('0x7'),'attributes':{'dir':_0x3788('0xd'),'class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x3788('0xe')]},'children':[{'text':_0x1f9765(_0x474492,_0x3788('0x11'))}]},{'tag':_0x3788('0x7'),'attributes':{'class':[_0x3788('0xf')]},'children':[{'tag':_0x3788('0x7'),'children':_0x564784},{'tag':'p','attributes':{'class':[_0x3788('0x1a'),_0x241e51['if']('isEmpty',_0x3788('0x12'),_0x3fe8e4=>!_0x3fe8e4)]},'children':[{'text':_0x1f9765(_0x474492,_0x3788('0x1d'))}]}]}]});}[_0x3788('0x13')](){super['render'](),this[_0x3788('0x1c')][_0x3788('0xa')](this['element']);const _0x20d16f=_0x4dfb2b=>_0x4dfb2b[_0x3788('0x1b')]();this[_0x3788('0x1c')][_0x3788('0x14')](_0x3788('0x0'),_0x20d16f),this[_0x3788('0x1c')]['set'](_0x3788('0x6'),_0x20d16f),this[_0x3788('0x1c')][_0x3788('0x14')](_0x3788('0x1f'),_0x20d16f),this[_0x3788('0x1c')][_0x3788('0x14')]('arrowdown',_0x20d16f),this['listenTo'](this['element'],_0x3788('0x10'),(_0x481358,_0x58c319)=>{_0x58c319['stopPropagation']();},{'priority':_0x3788('0x9')});}[_0x3788('0xb')](){super[_0x3788('0xb')](),this[_0x3788('0x15')]['destroy'](),this[_0x3788('0x1c')][_0x3788('0xb')]();}[_0x3788('0x2')](){this[_0x3788('0x3')][_0x3788('0x2')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5490=['_handleRemoveCommentModel','change:isActive','maxCommentsWhenCollapsed','delegate','count','get','authoredAt','Marked\x20as\x20resolved','set','element','_rearrangeCollapse','add','visibleViews','render','listenTo','commentViews','hasDirtyComment','removeComment','editorDestroyed','equal','setTemplate','change:isResolved','CommentView','formatDateTime','insert','destroy','_shouldCollapse','bind','_collapsedCommentsView','from','updateComment','stopListening','length','resolvedAt','editorConfig','refreshVisibleViews','maxCommentCharsWhenCollapsed','createCollection','commentUpdated','expand','collapse','comments','_handleInfoComment','_handleNewCommentModel','_config','isActive','remove','_rearrangeExpand','resolveCommentThread','focus','resolvedBy','_model','locale','resolvedCommentView','_updateHasDirtyComment','change:isEditMode','_findOptimalIndex'];(function(_0x5475d1,_0x5490ef){const _0x1d27fe=function(_0x5a58c7){while(--_0x5a58c7){_0x5475d1['push'](_0x5475d1['shift']());}};_0x1d27fe(++_0x5490ef);}(_0x5490,0x1c7));const _0x1d27=function(_0x5475d1,_0x5490ef){_0x5475d1=_0x5475d1-0x0;let _0x1d27fe=_0x5490[_0x5475d1];return _0x1d27fe;};import{View as _0x6afd19}from'ckeditor5/src/ui.js';import{diff as _0x5ce587,Collection as _0x44c659}from'ckeditor5/src/utils.js';import{getTranslation as _0x4a2917}from'../../../utils/common-translations.js';import _0x2240b6 from'./collapsedcommentsview.js';export default class vt extends _0x6afd19{constructor(_0x37c718,_0x23eea5,_0x3dc3ef){super(_0x37c718),this['set'](_0x1d27('0x11'),!0x1),this[_0x1d27('0x9')]('length',_0x23eea5[_0x1d27('0x2a')][_0x1d27('0x21')]),this[_0x1d27('0x9')](_0x1d27('0x2e'),!0x1),this['_model']=_0x23eea5,this[_0x1d27('0x2d')]=_0x3dc3ef,this[_0x1d27('0x10')]=this[_0x1d27('0x26')](),this['visibleViews']=this[_0x1d27('0x26')](),this[_0x1d27('0x36')]=null,this[_0x1d27('0x1d')]=new _0x2240b6(_0x37c718),this[_0x1d27('0x1d')][_0x1d27('0x1c')](_0x1d27('0x5'))['to'](this,_0x1d27('0x21'),_0x5b539a=>_0x5b539a-this[_0x1d27('0x2d')][_0x1d27('0x3')]);for(const _0x323bb4 of _0x23eea5[_0x1d27('0x2a')])this[_0x1d27('0x2c')](_0x323bb4);this[_0x1d27('0x2b')](),this['listenTo'](_0x23eea5[_0x1d27('0x2a')],_0x1d27('0xc'),(_0x32302f,_0xea90fc)=>{const _0xabdd6b=this['_calculatePosition'](_0xea90fc);this[_0x1d27('0x21')]++,this[_0x1d27('0x2c')](_0xea90fc,_0xabdd6b),this[_0x1d27('0x24')]();}),this[_0x1d27('0xf')](_0x23eea5[_0x1d27('0x2a')],_0x1d27('0x2f'),(_0x47840f,_0x420916)=>{this[_0x1d27('0x21')]--,this['_handleRemoveCommentModel'](_0x420916),this['refreshVisibleViews']();}),this[_0x1d27('0xf')](_0x23eea5,_0x1d27('0x27'),()=>this['refreshVisibleViews']()),this['listenTo'](_0x23eea5,_0x1d27('0x16'),()=>this[_0x1d27('0x2b')]()),this['on'](_0x1d27('0x2'),()=>this[_0x1d27('0x24')]()),this['on']('change:hasDirtyComment',()=>this[_0x1d27('0x24')]()),this[_0x1d27('0x15')]({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x1d27('0xd')]});}get[_0x1d27('0x1b')](){return this[_0x1d27('0x34')]['weight']>this[_0x1d27('0x2d')]['maxThreadTotalWeight']&&!this['isActive']&&!this[_0x1d27('0x11')];}[_0x1d27('0xe')](){super[_0x1d27('0xe')](),this[_0x1d27('0x24')]();}[_0x1d27('0x32')](){this[_0x1d27('0xa')]['focus']();}[_0x1d27('0x1a')](){this['_collapsedCommentsView'][_0x1d27('0x1a')]();for(const _0x19558a of this[_0x1d27('0x10')])_0x19558a[_0x1d27('0x1a')]();super[_0x1d27('0x1a')]();}['refreshVisibleViews'](){this[_0x1d27('0x1b')]?this[_0x1d27('0xb')]():this[_0x1d27('0x30')]();}[_0x1d27('0x2c')](_0x4ac028,_0x1956a1){const _0x1cadc2=new this['_config'][(_0x1d27('0x17'))](this[_0x1d27('0x35')],_0x4ac028,{'maxCommentCharsWhenCollapsed':this[_0x1d27('0x2d')][_0x1d27('0x25')],'formatDateTime':this[_0x1d27('0x2d')][_0x1d27('0x18')],'editorConfig':this[_0x1d27('0x2d')][_0x1d27('0x23')]});_0x1cadc2['viewUid']=_0x4ac028['id'],_0x1cadc2[_0x1d27('0x4')](_0x1d27('0x12'))['to'](this),_0x1cadc2[_0x1d27('0x4')](_0x1d27('0x1f'))['to'](this),_0x1cadc2['delegate'](_0x1d27('0x31'))['to'](this),_0x1cadc2[_0x1d27('0x4')]('editorReady')['to'](this),_0x1cadc2[_0x1d27('0x4')](_0x1d27('0x13'))['to'](this),this[_0x1d27('0xf')](_0x1cadc2,_0x1d27('0x38'),()=>this[_0x1d27('0x37')]()),this['commentViews']['add'](_0x1cadc2,_0x1956a1);}['_calculatePosition'](_0x3026b2){const _0x5da96d=this[_0x1d27('0x34')][_0x1d27('0x0')](_0x3026b2);return this['resolvedCommentView']?this[_0x1d27('0x36')][_0x1d27('0x7')]>_0x3026b2[_0x1d27('0x7')]?_0x5da96d-0x1:_0x5da96d:_0x5da96d-0x1;}[_0x1d27('0x2b')](){if(this[_0x1d27('0x34')]['resolvedBy']&&this[_0x1d27('0x34')][_0x1d27('0x22')]){const _0xa2e1fa={'id':'resolved','author':this[_0x1d27('0x34')][_0x1d27('0x33')],'authoredAt':this[_0x1d27('0x34')][_0x1d27('0x22')],'content':_0x4a2917(this[_0x1d27('0x35')],_0x1d27('0x8')),'attributes':{}};this[_0x1d27('0x36')]=new this[(_0x1d27('0x2d'))][(_0x1d27('0x17'))](this[_0x1d27('0x35')],_0xa2e1fa,{'maxCommentCharsWhenCollapsed':this[_0x1d27('0x2d')][_0x1d27('0x25')],'formatDateTime':this[_0x1d27('0x2d')][_0x1d27('0x18')],'editorConfig':this[_0x1d27('0x2d')][_0x1d27('0x23')],'isSystemComment':!0x0}),this[_0x1d27('0x10')]['add'](this[_0x1d27('0x36')],this[_0x1d27('0x34')]['_findOptimalIndex'](_0xa2e1fa));}else this[_0x1d27('0x36')]&&(this[_0x1d27('0x10')][_0x1d27('0x2f')](this[_0x1d27('0x36')]),this[_0x1d27('0x36')][_0x1d27('0x1a')](),this['resolvedCommentView']=null);this[_0x1d27('0x24')]();}[_0x1d27('0x1')](_0x42477e){const _0x44d06a=this[_0x1d27('0x10')]['remove'](_0x42477e['id']);this[_0x1d27('0x20')](_0x44d06a),_0x44d06a['isEditMode']&&this[_0x1d27('0x37')](),_0x44d06a['destroy']();}['_updateHasDirtyComment'](){this[_0x1d27('0x11')]=Array[_0x1d27('0x1e')](this['commentViews'])['some'](_0x437422=>_0x437422['isEditMode']);}['_rearrangeCollapse'](){const _0x2446cc=function(_0x4fd8dd){const _0x3af363=new _0x44c659();for(const _0x4d4ea9 of _0x4fd8dd)_0x3af363[_0x1d27('0xc')](_0x4d4ea9);return _0x3af363;}(this[_0x1d27('0x10')]),_0x4e178d=this['_collapsedCommentsView'][_0x1d27('0x5')];for(let _0x3800ca=0x1;_0x3800ca<=_0x4e178d;_0x3800ca++)_0x2446cc[_0x1d27('0x2f')](0x1);for(const _0x2c5fb9 of _0x2446cc)_0x2c5fb9[_0x1d27('0x29')]();_0x4e178d>0x0&&_0x2446cc[_0x1d27('0xc')](this[_0x1d27('0x1d')],0x1),is(_0x5ce587(Array[_0x1d27('0x1e')](this[_0x1d27('0xd')]),Array[_0x1d27('0x1e')](_0x2446cc)),this[_0x1d27('0xd')],_0x2446cc);}[_0x1d27('0x30')](){is(_0x5ce587(Array['from'](this[_0x1d27('0xd')]),Array['from'](this[_0x1d27('0x10')])),this[_0x1d27('0xd')],this['commentViews']);for(const _0x2e0498 of this['visibleViews'])_0x2e0498[_0x1d27('0x28')]();}}function is(_0x4b8a63,_0x2e1a2a,_0x2406fe){let _0x5a7f2d=0x0;for(const _0x56f7ff of _0x4b8a63)switch(_0x56f7ff){case _0x1d27('0x19'):_0x2e1a2a[_0x1d27('0xc')](_0x2406fe[_0x1d27('0x6')](_0x5a7f2d),_0x5a7f2d),_0x5a7f2d++;break;case'delete':_0x2e1a2a[_0x1d27('0x2f')](_0x5a7f2d);break;case _0x1d27('0x14'):_0x5a7f2d++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47a8=['reopenButtonView','Comment\x20was\x20made\x20on\x20an\x20element','isReadOnly','.ck-context__value','locale','remove','overlay','listenTo','isVisible','classList','tooltip','length','context','isResolvable','icon','ck-context__value','ck-context','add','div','mouseenter','.ck-context','_model','scrollWidth','value','Reopen','mouseleave','isResolved','contextValue','render','hasContext','offsetWidth','querySelector','substring','fire','...','ck-context--quotes','bind','lastIndexOf','execute','span','_createReopenButton','ck-thread__header','_attachContextActions'];(function(_0x17a977,_0x47a80e){const _0x6e422b=function(_0x289fad){while(--_0x289fad){_0x17a977['push'](_0x17a977['shift']());}};_0x6e422b(++_0x47a80e);}(_0x47a8,0xc7));const _0x6e42=function(_0x17a977,_0x47a80e){_0x17a977=_0x17a977-0x0;let _0x6e422b=_0x47a8[_0x17a977];return _0x6e422b;};import{View as _0x35b73c,ButtonView as _0x2af6b0}from'ckeditor5/src/ui.js';import{getTranslation as _0x579c74}from'../../../utils/common-translations.js';import _0x31a2c5 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x35b73c{constructor(_0x302b96,_0x182140){super(_0x302b96);const _0x937c86=this['bindTemplate'];this[_0x6e42('0x25')]=_0x182140,this[_0x6e42('0x10')]=this['_createReopenButton'](),this['bind'](_0x6e42('0x2'))['to'](this[_0x6e42('0x25')],_0x6e42('0x1c'),_0x1df652=>!!_0x1df652),this[_0x6e42('0x9')](_0x6e42('0x0'))['to'](this['_model'],_0x6e42('0x1c'),_0x2985fd=>_0x2985fd&&_0x2985fd[_0x6e42('0x27')]?this['_trimContextValue'](_0x2985fd['value']):_0x579c74(this[_0x6e42('0x14')],_0x6e42('0x11'))),this['setTemplate']({'tag':_0x6e42('0x22'),'attributes':{'class':[_0x6e42('0xe')]},'children':[{'tag':_0x6e42('0x22'),'attributes':{'class':['ck-context-wrapper']},'children':[{'tag':_0x6e42('0x22'),'attributes':{'class':[_0x6e42('0x20'),_0x937c86['if'](_0x6e42('0x2'),_0x6e42('0x8'))]},'children':[{'tag':_0x6e42('0xc'),'attributes':{'class':[_0x6e42('0x1f')]},'children':[{'text':_0x937c86['to']('contextValue')}]}]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this[_0x6e42('0x10')]]}]});}[_0x6e42('0x1')](){super[_0x6e42('0x1')](),this[_0x6e42('0xf')]();}[_0x6e42('0xd')](){const _0x4880cc=new _0x2af6b0(this['locale']);return _0x4880cc['label']=_0x579c74(this['locale'],_0x6e42('0x28')),_0x4880cc[_0x6e42('0x1a')]=_0x579c74(this[_0x6e42('0x14')],_0x6e42('0x28')),_0x4880cc[_0x6e42('0x1e')]=_0x31a2c5,_0x4880cc['bind']('isEnabled')['to'](this[_0x6e42('0x25')],_0x6e42('0x12'),_0x4da71c=>!_0x4da71c),_0x4880cc['bind'](_0x6e42('0x18'))['to'](this['_model'],_0x6e42('0x1d'),this[_0x6e42('0x25')],_0x6e42('0x2a'),(_0x1c6aa5,_0x2c9a79)=>_0x1c6aa5&&_0x2c9a79),_0x4880cc['on'](_0x6e42('0xb'),()=>{this[_0x6e42('0x6')]('reopenCommentThread',this[_0x6e42('0x25')]['id']);}),_0x4880cc;}['_trimContextValue'](_0x249d71){if(_0x249d71[_0x6e42('0x1b')]<0x96)return _0x249d71;const _0x458bf1=_0x249d71[_0x6e42('0xa')]('\x20',0x93);return _0x249d71[_0x6e42('0x5')](0x0,_0x458bf1>-0x1?_0x458bf1:0x93)+_0x6e42('0x7');}[_0x6e42('0xf')](){const _0x535256=this['element'][_0x6e42('0x4')](_0x6e42('0x24')),_0x38f563=_0x535256['querySelector'](_0x6e42('0x13'));this[_0x6e42('0x17')](_0x535256,_0x6e42('0x23'),()=>{_0x38f563[_0x6e42('0x3')]<_0x38f563[_0x6e42('0x26')]&&_0x535256[_0x6e42('0x19')][_0x6e42('0x21')](_0x6e42('0x16'));}),this[_0x6e42('0x17')](_0x535256,_0x6e42('0x29'),()=>{_0x535256[_0x6e42('0x19')][_0x6e42('0x15')]('overlay');});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3362=['bindTemplate','createEditor','focusTracker','ck-comment__input-container--active','change:showInput','editorDestroyed','ck-thread__input','destroy','showInput','ck-thread__user','bind','showButtons','value','extendTemplate','then','div','editor','delegate','userView','commentInputView','editorReady'];(function(_0x288059,_0x336297){var _0x15811d=function(_0x34f9b7){while(--_0x34f9b7){_0x288059['push'](_0x288059['shift']());}};_0x15811d(++_0x336297);}(_0x3362,0x10e));var _0x1581=function(_0x288059,_0x336297){_0x288059=_0x288059-0x0;var _0x15811d=_0x3362[_0x288059];return _0x15811d;};import{View as _0x28dc16}from'ckeditor5/src/ui.js';import _0x29d483 from'./commentinputview.js';import{UserView as _0x4d8680}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x28dc16{constructor(_0x5936ad,_0xb9431d,_0x28c5a6){super(_0x5936ad),this[_0x1581('0x1')]=new _0x29d483(_0x5936ad,_0x28c5a6),this[_0x1581('0x1')][_0x1581('0xd')](_0x1581('0xe'))['to'](this[_0x1581('0x1')][_0x1581('0x5')],'isFocused',this[_0x1581('0x1')],_0x1581('0xf'),(_0x4ac3be,_0x19e715)=>_0x4ac3be||!!_0x19e715),this['set'](_0x1581('0xb'),!0x1),this['on'](_0x1581('0x7'),()=>{this[_0x1581('0xb')]&&!this[_0x1581('0x1')][_0x1581('0x13')]&&this[_0x1581('0x1')][_0x1581('0x4')]();}),this[_0x1581('0x1')][_0x1581('0x14')](_0x1581('0x2'))['to'](this),this[_0x1581('0x1')][_0x1581('0x14')](_0x1581('0x8'))['to'](this),this[_0x1581('0x0')]=new _0x4d8680(_0x5936ad,_0xb9431d),this[_0x1581('0x0')][_0x1581('0x10')]({'attributes':{'class':_0x1581('0xc')}}),this['commentInputView']['extendTemplate']({'attributes':{'class':_0x1581('0x9')}}),this['setTemplate']({'tag':_0x1581('0x12'),'attributes':{'class':['ck-comment__input-container',this[_0x1581('0x3')]['if']('showInput',_0x1581('0x6'))]},'children':[this[_0x1581('0x0')],this['commentInputView']]});}[_0x1581('0xa')](){return this['commentInputView'][_0x1581('0xa')]()[_0x1581('0x11')](()=>super[_0x1581('0xa')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x107e=['attributes','disconnect','childList','class','cancel','type','observe','attributeName'];(function(_0x3714bd,_0x107e91){const _0x47c22f=function(_0x1377b7){while(--_0x1377b7){_0x3714bd['push'](_0x3714bd['shift']());}};_0x47c22f(++_0x107e91);}(_0x107e,0x14b));const _0x47c2=function(_0x3714bd,_0x107e91){_0x3714bd=_0x3714bd-0x0;let _0x47c22f=_0x107e[_0x3714bd];return _0x47c22f;};import{throttle as _0x459215}from'lodash-es';export default function Dt(_0x3c3904){const _0x162be5=_0x459215(_0x3c3904,0x1e),_0xcf8998=new MutationObserver(_0x41f531=>{for(const _0xfba9e5 of _0x41f531)(_0x47c2('0x5')==_0xfba9e5[_0x47c2('0x2')]&&_0x47c2('0x0')==_0xfba9e5[_0x47c2('0x4')]||_0x47c2('0x7')==_0xfba9e5[_0x47c2('0x2')]||'characterData'==_0xfba9e5[_0x47c2('0x2')])&&_0x162be5();});return{'attach'(_0x1c2983){_0xcf8998[_0x47c2('0x3')](_0x1c2983,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0xcf8998[_0x47c2('0x6')](),_0x162be5[_0x47c2('0x1')]();}};}
|