@ckeditor/ckeditor5-comments 0.0.0-nightly-20231103.0 → 0.0.0-nightly-20231105.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/LICENSE.md +3 -3
- package/build/comments.js +1 -1
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- 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/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.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/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d57=['addCommentThread','define','execute','listenTo','config','comments','importWord','editor','get','forEach','commands','plugins','afterInit','basic','_handleImportedData','importWord.formatting.comments'];(function(_0x5753bd,_0x1d577a){const _0x48b492=function(_0x2144d4){while(--_0x2144d4){_0x5753bd['push'](_0x5753bd['shift']());}};_0x48b492(++_0x1d577a);}(_0x1d57,0x1d3));const _0x48b4=function(_0x5753bd,_0x1d577a){_0x5753bd=_0x5753bd-0x0;let _0x48b492=_0x1d57[_0x5753bd];return _0x48b492;};import{Plugin as _0xc23ddf}from'ckeditor5/src/core';import{priorities as _0x3febeb}from'ckeditor5/src/utils';import{Users as _0x427a88}from'ckeditor5-collaboration/src/collaboration-core';import _0x24c435 from'../commentsrepository';export default class Y extends _0xc23ddf{constructor(_0x5b186f){super(_0x5b186f),this[_0x48b4('0x4')][_0x48b4('0x1')][_0x48b4('0xe')](_0x48b4('0xc'),_0x48b4('0xa'));}[_0x48b4('0x9')](){const _0x2010d7=this[_0x48b4('0x4')],_0x1452ec=_0x2010d7[_0x48b4('0x7')][_0x48b4('0x5')]('importWord'),_0xf0b73c=_0x2010d7[_0x48b4('0x8')][_0x48b4('0x5')](_0x427a88);_0x1452ec&&(_0x1452ec['on'](_0x48b4('0xf'),(_0x28fc2a,[,_0x21fb18])=>{_0x21fb18['collaboration_features']={'comments':!0x0,'user_id':_0xf0b73c['me']['id']},_0x21fb18['formatting'][_0x48b4('0x2')]=this['editor'][_0x48b4('0x1')][_0x48b4('0x5')](_0x48b4('0xc'));},{'priority':_0x3febeb['high']+0xa}),this[_0x48b4('0x0')](_0x1452ec,'dataInsert',this[_0x48b4('0xb')]));}[_0x48b4('0xb')](_0x59c3a2,_0x3b9c0c){const {comment_threads:_0x17f91b}=_0x3b9c0c;_0x17f91b&&_0x17f91b[_0x48b4('0x6')](({thread_id:_0x118b6f,comments:_0x434447,is_resolved:_0x3de873})=>{const _0x3bffb4=new Date(),_0x1ea771=_0x434447['map'](({author:_0x26b31e,content:_0x3a91b7,created_at:_0x583f98})=>({'content':_0x3a91b7,'authorId':this[_0x48b4('0x4')]['plugins']['get'](_0x427a88)['me']['id'],'createdAt':_0x3bffb4,'attributes':{'@external':{'authorName':_0x26b31e,'createdAt':_0x583f98?new Date(_0x583f98):new Date(),'source':_0x48b4('0x3')}}})),_0x5f545a=this[_0x48b4('0x4')][_0x48b4('0x1')]['get']('collaboration.channelId');this['editor'][_0x48b4('0x8')][_0x48b4('0x5')](_0x24c435)[_0x48b4('0xd')]({'channelId':_0x5f545a,'threadId':_0x118b6f,'comments':_0x1ea771,'resolvedAt':_0x3de873?_0x3bffb4:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14d2=['init','low','placeholderElement','create','initialData','data','placeholder','editing','defaultPlugins','view','ready','change','childCount','getChild','model','_updatePlaceholder','config','createRoot','set','setSelection','document','initPlugins','destroy','then','focus','plugins','assign','getRoot'];(function(_0x2f7ad8,_0x14d2c3){const _0x67c3b1=function(_0x5ce123){while(--_0x5ce123){_0x2f7ad8['push'](_0x2f7ad8['shift']());}};_0x67c3b1(++_0x14d2c3);}(_0x14d2,0x12b));const _0x67c3=function(_0x2f7ad8,_0x14d2c3){_0x2f7ad8=_0x2f7ad8-0x0;let _0x67c3b1=_0x14d2[_0x2f7ad8];return _0x67c3b1;};import{Editor as _0x48d646,DataApiMixin as _0x7367aa}from'ckeditor5/src/core';import _0x3cb099 from'./commenteditorui';import{ObservableMixin as _0x5a5d79}from'ckeditor5/src/utils';import{enablePlaceholder as _0x542492,disablePlaceholder as _0x4b5639}from'ckeditor5/src/engine';import{Clipboard as _0xf6c377}from'ckeditor5/src/clipboard';import{Enter as _0xa5ea6d,ShiftEnter as _0x55e1f1}from'ckeditor5/src/enter';import{SelectAll as _0x2a04b3}from'ckeditor5/src/select-all';import{Typing as _0x36baf5}from'ckeditor5/src/typing';import{Undo as _0x4c1bd2}from'ckeditor5/src/undo';import{Paragraph as _0x386370}from'ckeditor5/src/paragraph';const Kt=[_0xf6c377,_0xa5ea6d,_0x55e1f1,_0x2a04b3,_0x36baf5,_0x4c1bd2,_0x386370];export default class Lt extends _0x5a5d79(_0x7367aa(_0x48d646)){constructor(_0x381f58={}){(_0x381f58=Object[_0x67c3('0x7')]({},_0x381f58))[_0x67c3('0x6')]||(_0x381f58[_0x67c3('0x6')]=Lt[_0x67c3('0x11')]),super(_0x381f58),this['ui']=new _0x3cb099(this),this[_0x67c3('0x1b')](_0x67c3('0xf'),''),this[_0x67c3('0x17')][_0x67c3('0x1')]['on'](_0x67c3('0x14'),()=>this[_0x67c3('0x18')](),{'priority':_0x67c3('0xa')}),this['on']('change:placeholder',()=>this[_0x67c3('0x18')]()),this[_0x67c3('0x17')][_0x67c3('0x1')][_0x67c3('0x1a')]();}[_0x67c3('0xc')](){const _0x565acd=this[_0x67c3('0x19')]['get'](_0x67c3('0xd'))||'';return this[_0x67c3('0x2')]()[_0x67c3('0x4')](()=>this['ui'][_0x67c3('0x9')]())[_0x67c3('0x4')](()=>this[_0x67c3('0xe')][_0x67c3('0x9')](_0x565acd))[_0x67c3('0x4')](()=>this['fire'](_0x67c3('0x13')));}[_0x67c3('0x3')](){return super[_0x67c3('0x3')]()[_0x67c3('0x4')](()=>this['ui'][_0x67c3('0x3')]());}[_0x67c3('0x5')](){this['model']['change'](_0x5e3b89=>{const _0x8a8efe=this[_0x67c3('0x17')]['document'][_0x67c3('0x8')](),_0x400422=_0x8a8efe&&_0x8a8efe[_0x67c3('0x16')](_0x8a8efe[_0x67c3('0x15')]-0x1);_0x5e3b89[_0x67c3('0x0')](_0x400422,'end'),this[_0x67c3('0x10')][_0x67c3('0x12')][_0x67c3('0x5')]();});}['_updatePlaceholder'](){const _0x4aa105=this[_0x67c3('0x10')][_0x67c3('0x12')],_0x34ea79=_0x4aa105[_0x67c3('0x1')][_0x67c3('0x8')](),_0x53bcac=_0x34ea79[_0x67c3('0x16')](0x0);_0x34ea79[_0x67c3('0x15')]>0x1||!_0x53bcac||'p'!=_0x53bcac['name']?this[_0x67c3('0xb')]&&this['placeholderElement'][_0x67c3('0xf')]&&(_0x4b5639(_0x4aa105,this['placeholderElement']),this[_0x67c3('0xb')]=void 0x0):(this[_0x67c3('0xf')]&&(_0x53bcac['placeholder']=this[_0x67c3('0xf')]),_0x542492({'view':_0x4aa105,'element':_0x53bcac,'keepOnFocus':!0x0}),this[_0x67c3('0xb')]=_0x53bcac);}}Lt[_0x67c3('0x11')]=Kt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d2c=['setEditableElement','ready','name','editable','locale','destroy','view','element','rootName','editing','isFocused','document','focusTracker','render','attachDomRoot','getRoot','bind'];(function(_0x62e604,_0x2d2c70){const _0x415e4c=function(_0x47536a){while(--_0x47536a){_0x62e604['push'](_0x62e604['shift']());}};_0x415e4c(++_0x2d2c70);}(_0x2d2c,0x7d));const _0x415e=function(_0x62e604,_0x2d2c70){_0x62e604=_0x62e604-0x0;let _0x415e4c=_0x2d2c[_0x62e604];return _0x415e4c;};import{EditorUI as _0x3af4a3}from'ckeditor5/src/ui';import _0x35cd70 from'./commenteditoruiview';export default class jt extends _0x3af4a3{constructor(_0x189467){super(_0x189467),this[_0x415e('0x0')]=new _0x35cd70(_0x189467[_0x415e('0xf')],_0x189467[_0x415e('0x3')][_0x415e('0x0')]);}get[_0x415e('0x1')](){return this[_0x415e('0x0')][_0x415e('0x1')];}['init'](){const _0x18a52c=this['editor'][_0x415e('0x3')][_0x415e('0x0')],_0x1fb8f2=this['view']['editable'],_0x4d5fb6=_0x18a52c[_0x415e('0x5')][_0x415e('0x9')]();_0x1fb8f2[_0x415e('0xd')]=_0x4d5fb6[_0x415e('0x2')],this[_0x415e('0x0')][_0x415e('0x7')]();const _0x1a6949=_0x1fb8f2[_0x415e('0x1')];this[_0x415e('0xb')](_0x1fb8f2[_0x415e('0xd')],_0x1a6949),this[_0x415e('0x0')][_0x415e('0xe')][_0x415e('0xa')](_0x415e('0x4'))['to'](this[_0x415e('0x6')]),_0x18a52c[_0x415e('0x8')](_0x1a6949),this['fire'](_0x415e('0xc'));}[_0x415e('0x10')](){super[_0x415e('0x10')](),this[_0x415e('0x0')][_0x415e('0x10')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c93=['_createVoiceLabel','focus','ck-editor','main','ck-voice-label','extendTemplate','ck-reset','ck-comment__input','ck-editor__main','uiLanguage','element','uiLanguageDirection','ck-rounded-corners','text','render','ck-editor__aria-label_','_voiceLabelView','editable'];(function(_0x49af5c,_0x1c9358){const _0x2ad4a3=function(_0xffdc65){while(--_0xffdc65){_0x49af5c['push'](_0x49af5c['shift']());}};_0x2ad4a3(++_0x1c9358);}(_0x1c93,0x77));const _0x2ad4=function(_0x49af5c,_0x1c9358){_0x49af5c=_0x49af5c-0x0;let _0x2ad4a3=_0x1c93[_0x49af5c];return _0x2ad4a3;};import{InlineEditableUIView as _0x55034a,EditorUIView as _0x2a6446,LabelView as _0x18f54c}from'ckeditor5/src/ui';import{uid as _0x3a0da3}from'ckeditor5/src/utils';import{getTranslation as _0x10eeb4}from'../../../utils/common-translations';export default class Nt extends _0x2a6446{constructor(_0x147a03,_0x4d116d){super(_0x147a03);const _0x28305e=_0x3a0da3();this[_0x2ad4('0xa')]=this['createCollection'](),this[_0x2ad4('0x6')]=new _0x55034a(_0x147a03,_0x4d116d),this[_0x2ad4('0x5')]=this[_0x2ad4('0x7')](_0x28305e,_0x147a03),this['setTemplate']({'tag':'div','attributes':{'class':[_0x2ad4('0xd'),_0x2ad4('0x9'),_0x2ad4('0x1'),_0x2ad4('0xe')],'role':'comment','dir':_0x147a03[_0x2ad4('0x0')],'lang':_0x147a03[_0x2ad4('0x10')],'aria-labelledby':'cke-editor__aria-label_'+_0x28305e},'children':[this[_0x2ad4('0x5')],{'tag':'div','attributes':{'class':_0x2ad4('0xf'),'role':'presentation'},'children':this[_0x2ad4('0xa')]}]});}[_0x2ad4('0x3')](){super[_0x2ad4('0x3')](),this['main']['add'](this[_0x2ad4('0x6')]);}[_0x2ad4('0x8')](){this[_0x2ad4('0x6')][_0x2ad4('0x11')][_0x2ad4('0x8')]();}[_0x2ad4('0x7')](_0x57f2ce,_0x33f428){const _0x55a819=new _0x18f54c();return _0x55a819[_0x2ad4('0x2')]=_0x10eeb4(_0x33f428,'Comment\x20editor'),_0x55a819[_0x2ad4('0xc')]({'attributes':{'id':_0x2ad4('0x4')+_0x57f2ce,'class':_0x2ad4('0xb')}}),_0x55a819;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x21eb=['reopenCommentThread','resolve','removeCommentThread','updateComment','listenTo','isResolved','reopen','model','stopListening','addComment','removeComment','getComment','remove','view','destroy','submit','_isAttached','resolveCommentThread'];(function(_0x4af2c9,_0x21ebf0){var _0x5cf85f=function(_0x14a27e){while(--_0x14a27e){_0x4af2c9['push'](_0x4af2c9['shift']());}};_0x5cf85f(++_0x21ebf0);}(_0x21eb,0x19f));var _0x5cf8=function(_0x4af2c9,_0x21ebf0){_0x4af2c9=_0x4af2c9-0x0;var _0x5cf85f=_0x21eb[_0x4af2c9];return _0x5cf85f;};import{ObservableMixin as _0x568ba2}from'ckeditor5/src/utils';export default class ct extends _0x568ba2(){constructor(_0x351985,_0x5a151c){super(),this['model']=_0x351985,this[_0x5cf8('0x6')][_0x5cf8('0xf')]=!0x0,this[_0x5cf8('0xc')]=_0x5a151c,this[_0x5cf8('0x3')](_0x5a151c,'submitCommentThread',()=>this['submit']()),this[_0x5cf8('0x3')](_0x5a151c,_0x5cf8('0x1'),()=>this[_0x5cf8('0xb')]()),this[_0x5cf8('0x3')](_0x5a151c,_0x5cf8('0x10'),()=>this[_0x5cf8('0x0')]()),this[_0x5cf8('0x3')](_0x5a151c,_0x5cf8('0x11'),()=>this[_0x5cf8('0x5')]()),this[_0x5cf8('0x3')](_0x5a151c,_0x5cf8('0x8'),(_0x2fc071,_0x133818)=>this[_0x5cf8('0x8')](_0x133818)),this[_0x5cf8('0x3')](_0x5a151c,_0x5cf8('0x2'),(_0x291825,_0x219bd0,_0x22928d)=>this[_0x5cf8('0x2')](_0x219bd0,_0x22928d)),this[_0x5cf8('0x3')](_0x5a151c,_0x5cf8('0x9'),(_0x11198e,_0x2b3ac0)=>this[_0x5cf8('0x9')](_0x2b3ac0));}[_0x5cf8('0xe')](){this['model'][_0x5cf8('0xe')]();}[_0x5cf8('0xb')](){this['model'][_0x5cf8('0xb')]();}[_0x5cf8('0x0')](){this[_0x5cf8('0x6')][_0x5cf8('0x4')]||this[_0x5cf8('0x6')][_0x5cf8('0x0')]();}[_0x5cf8('0x5')](){this[_0x5cf8('0x6')][_0x5cf8('0x4')]&&this[_0x5cf8('0x6')]['reopen']();}[_0x5cf8('0x8')](_0x2eff3a){this[_0x5cf8('0x6')]['addComment']({'content':_0x2eff3a,'authorId':this['view']['_localUser']['id']});}[_0x5cf8('0x2')](_0x57e7c6,_0x20407e){this[_0x5cf8('0x6')][_0x5cf8('0xa')](_0x57e7c6)['update']({'content':_0x20407e});}[_0x5cf8('0x9')](_0x463bd3){this[_0x5cf8('0x6')][_0x5cf8('0xa')](_0x463bd3)[_0x5cf8('0xb')]();}[_0x5cf8('0xd')](){this[_0x5cf8('0x7')](),this[_0x5cf8('0x6')][_0x5cf8('0xf')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ac9=['addComment','locale','Reply','destroy','isResolvable','showInput','isResolved','removeCommentThread','canComment','_config','Comment','commentThreadHeaderView','Write\x20a\x20comment...','editorReady','isActive','_createCommentThreadInputView','disabledSubmit','_model','stop','Reply...','commentsListView','editorDestroyed','assign','set','commentInputView','placeholder','cancel','fire','length','commentThreadInputView','_localUser','isSubmitted','delegate','updateComment','resolveCommentThread','focus','isUnlinked','isReadOnly','value','listenTo','bind','editorConfig','unlinkedAt','element','isDirty','hasDirtyComment','removeComment'];(function(_0x4f880c,_0x5ac968){const _0x9fa878=function(_0x1c4478){while(--_0x1c4478){_0x4f880c['push'](_0x4f880c['shift']());}};_0x9fa878(++_0x5ac968);}(_0x5ac9,0x1b2));const _0x9fa8=function(_0x4f880c,_0x5ac968){_0x4f880c=_0x4f880c-0x0;let _0x9fa878=_0x5ac9[_0x4f880c];return _0x9fa878;};import{View as _0x586699}from'ckeditor5/src/ui';import _0x262e87 from'./commentthreadinputview';import _0xcb0a6b from'./commentslistview';import _0x1d7f75 from'./commentthreadheaderview';import{getTranslation as _0x5dd305}from'../../../utils/common-translations';export default class Tt extends _0x586699{constructor(_0x3d310f,_0x2e47fb,_0x490f47,_0x27ae60){super(_0x3d310f),this[_0x9fa8('0xc')](_0x9fa8('0x3'),!0x1),this['set'](_0x9fa8('0x21'),!0x1),this['_model']=_0x2e47fb,this['_localUser']=_0x490f47,this[_0x9fa8('0x2d')]=_0x27ae60,this[_0x9fa8('0x0')]=new _0x1d7f75(_0x3d310f,_0x2e47fb),this['commentThreadHeaderView'][_0x9fa8('0x15')]('reopenCommentThread')['to'](this),this[_0x9fa8('0x1c')](this,'reopenCommentThread',()=>{this[_0x9fa8('0x18')]();}),this[_0x9fa8('0x9')]=new _0xcb0a6b(_0x3d310f,_0x2e47fb,Object[_0x9fa8('0xb')]({'CommentView':this[_0x9fa8('0x2d')]['CommentView']},_0x27ae60)),this[_0x9fa8('0x9')][_0x9fa8('0x15')](_0x9fa8('0x23'))['to'](this),this[_0x9fa8('0x9')]['delegate'](_0x9fa8('0x16'))['to'](this),this[_0x9fa8('0x9')][_0x9fa8('0x15')](_0x9fa8('0x17'))['to'](this),this[_0x9fa8('0x9')][_0x9fa8('0x15')](_0x9fa8('0x2'))['to'](this),this['commentsListView'][_0x9fa8('0x15')](_0x9fa8('0xa'))['to'](this),this[_0x9fa8('0x9')][_0x9fa8('0x1d')]('isActive')['to'](this),this[_0x9fa8('0x1c')](this,_0x9fa8('0x17'),()=>{this[_0x9fa8('0x18')]();}),this[_0x9fa8('0xc')](_0x9fa8('0x11'),this[_0x9fa8('0x9')]['length']),this['bind'](_0x9fa8('0x11'))['to'](this[_0x9fa8('0x9')],_0x9fa8('0x11')),this['commentThreadInputView']=this[_0x9fa8('0x4')](),this['commentThreadInputView'][_0x9fa8('0x15')]('editorReady')['to'](this),this['commentThreadInputView'][_0x9fa8('0x15')]('editorDestroyed')['to'](this),this['on'](_0x9fa8('0x23'),()=>this[_0x9fa8('0x18')]()),this[_0x9fa8('0x1d')](_0x9fa8('0x21'))['to'](this['commentsListView'],_0x9fa8('0x22'),this['commentThreadInputView'][_0x9fa8('0xd')],_0x9fa8('0x1b'),(_0x338a60,_0x249c8a)=>_0x338a60||!!_0x249c8a),this[_0x9fa8('0x1d')](_0x9fa8('0x19'))['to'](_0x2e47fb,_0x9fa8('0x1f'),_0x1c6029=>!!_0x1c6029);}['focus'](){this[_0x9fa8('0x20')][_0x9fa8('0x18')]();}async[_0x9fa8('0x27')](){this[_0x9fa8('0x21')]=!0x1,this['commentsListView'][_0x9fa8('0x27')](),await this[_0x9fa8('0x12')]['destroy'](),super[_0x9fa8('0x27')]();}[_0x9fa8('0x4')](){const _0x4797ee=new _0x262e87(this[_0x9fa8('0x25')],this[_0x9fa8('0x13')],this[_0x9fa8('0x2d')][_0x9fa8('0x1e')]),_0x3dac00=_0x4797ee[_0x9fa8('0xd')];return _0x4797ee['bind'](_0x9fa8('0x29'))['to'](this,_0x9fa8('0x3'),this[_0x9fa8('0x6')],_0x9fa8('0x1a'),this[_0x9fa8('0x6')],_0x9fa8('0x2c'),this[_0x9fa8('0x6')],'archivedAt',_0x3dac00,_0x9fa8('0x1b'),(_0x228fb2,_0x32ba51,_0x424df7,_0x44a455,_0x1096b4)=>!!_0x1096b4||!!_0x44a455&&_0x424df7&&!_0x32ba51||_0x228fb2&&_0x424df7&&!_0x32ba51),_0x3dac00[_0x9fa8('0x1d')](_0x9fa8('0xe'))['to'](this,_0x9fa8('0x11'),this[_0x9fa8('0x6')],'isResolvable',this[_0x9fa8('0x6')],_0x9fa8('0x2a'),(_0x4296e6,_0x60ea47,_0x3f79aa)=>{let _0x2ff938;return _0x2ff938=_0x3f79aa&&_0x60ea47?'Reply\x20to\x20reopen\x20discussion...':_0x4296e6?_0x9fa8('0x8'):_0x9fa8('0x1'),_0x5dd305(this['locale'],_0x2ff938);}),_0x3dac00[_0x9fa8('0x1d')]('submitLabel')['to'](this,_0x9fa8('0x11'),_0x427f00=>_0x5dd305(this[_0x9fa8('0x25')],_0x427f00?_0x9fa8('0x26'):_0x9fa8('0x2e'))),_0x3dac00['on']('submit',(_0x5d0fc8,_0x1bae31)=>{this[_0x9fa8('0x10')](_0x9fa8('0x24'),_0x1bae31),this[_0x9fa8('0x6')][_0x9fa8('0x2a')]&&this[_0x9fa8('0x6')][_0x9fa8('0x28')]&&this[_0x9fa8('0x10')]('reopenCommentThread',this['_model']['id']),this[_0x9fa8('0x6')][_0x9fa8('0x14')]||this[_0x9fa8('0x10')]('submitCommentThread');}),_0x3dac00['on'](_0x9fa8('0xf'),()=>{this[_0x9fa8('0x18')]();}),_0x3dac00[_0x9fa8('0x1d')](_0x9fa8('0x5'))['to'](this[_0x9fa8('0x6')],_0x9fa8('0x1a')),_0x3dac00['on'](_0x9fa8('0xf'),_0x4cd486=>{0x0==this[_0x9fa8('0x11')]&&(this[_0x9fa8('0x10')]('removeCommentThread'),_0x4cd486[_0x9fa8('0x7')]());}),this['on']('change:isActive',(_0x1e970d,_0x357e19,_0x414198)=>{_0x414198||this['length']||_0x3dac00[_0x9fa8('0x1b')]||this[_0x9fa8('0x10')](_0x9fa8('0x2b'));}),_0x4797ee;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53a2=['value','_config','set','isReadOnly','add','locale','switchToEditMode','isEditMode','get','bind','editorConfig','focus','switchToDisplayMode','editorReady','disabledSubmit','once','collapse','submitLabel','content','cancel','visibleView','element','isSystemComment','destroy','createCollection','_createCommentInputView','_model','remove','isCollapsed','_createCommentContentView','delegate','submit','updateComment','maxCommentCharsWhenCollapsed'];(function(_0x13d8de,_0x53a27d){const _0x5d36eb=function(_0x417a43){while(--_0x417a43){_0x13d8de['push'](_0x13d8de['shift']());}};_0x5d36eb(++_0x53a27d);}(_0x53a2,0xb7));const _0x5d36=function(_0x13d8de,_0x53a27d){_0x13d8de=_0x13d8de-0x0;let _0x5d36eb=_0x53a2[_0x13d8de];return _0x5d36eb;};import{View as _0x1db02d}from'ckeditor5/src/ui';import{trimHtml as _0xbc9561}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b6d49 from'./commentcontentview';import _0x224f7d from'./commentinputview';import{getTranslation as _0x46e630}from'../../../utils/common-translations';export default class Yt extends _0x1db02d{constructor(_0x2ac5ba,_0x57142f,_0x3316bd){super(_0x2ac5ba),this[_0x5d36('0xd')]=_0x57142f,this[_0x5d36('0x16')]=_0x3316bd,this[_0x5d36('0x9')]=!!this[_0x5d36('0x16')][_0x5d36('0x9')],this[_0x5d36('0x17')](_0x5d36('0x1c'),!0x1),this[_0x5d36('0x17')]('isCollapsed',!0x0),this['visibleView']=this[_0x5d36('0xb')](),this[_0x5d36('0x7')][_0x5d36('0x19')](this[_0x5d36('0x10')]());}['expand'](){this[_0x5d36('0xf')]=!0x1;}[_0x5d36('0x3')](){this[_0x5d36('0x1c')]||(this[_0x5d36('0xf')]=!0x0);}[_0x5d36('0x20')](){this[_0x5d36('0x8')][_0x5d36('0x20')]();}async['destroy'](){await this[_0x5d36('0x7')][_0x5d36('0x1d')](0x0)['destroy'](),super['destroy']();}[_0x5d36('0x1b')](){this[_0x5d36('0x1c')]||(this[_0x5d36('0x1c')]=!0x0,this['visibleView']['remove'](0x0)[_0x5d36('0xa')](),this[_0x5d36('0x7')][_0x5d36('0x19')](this[_0x5d36('0xc')]()));}[_0x5d36('0x21')](){this['isEditMode']&&(this[_0x5d36('0x1c')]=!0x1,this['visibleView'][_0x5d36('0xe')](0x0)['destroy'](),this[_0x5d36('0x7')][_0x5d36('0x19')](this[_0x5d36('0x10')]()));}[_0x5d36('0x10')](){const _0x5185bb=new _0x4b6d49(this[_0x5d36('0x1a')]);return _0x5185bb['bind']('content')['to'](this[_0x5d36('0xd')],_0x5d36('0x5'),this,'isCollapsed',(_0x43736a,_0x5bc1bc)=>_0x5bc1bc?_0xbc9561(_0x43736a,{'limit':this['_config'][_0x5d36('0x14')]}):_0x43736a),_0x5185bb;}[_0x5d36('0xc')](){this[_0x5d36('0x16')][_0x5d36('0x1f')]||(this[_0x5d36('0x16')][_0x5d36('0x1f')]={}),this['_config'][_0x5d36('0x1f')]['initialData']=this[_0x5d36('0xd')][_0x5d36('0x5')];const _0x1dcced=new _0x224f7d(this[_0x5d36('0x1a')],this[_0x5d36('0x16')][_0x5d36('0x1f')]);return _0x1dcced[_0x5d36('0x15')]=this[_0x5d36('0xd')][_0x5d36('0x5')],_0x1dcced[_0x5d36('0x1e')](_0x5d36('0x1'))['to'](this[_0x5d36('0xd')],_0x5d36('0x18')),_0x1dcced[_0x5d36('0x4')]=_0x46e630(this[_0x5d36('0x1a')],'Save'),_0x1dcced['on'](_0x5d36('0x12'),(_0x36ba1e,_0x4febf)=>{this['fire'](_0x5d36('0x13'),this[_0x5d36('0xd')]['id'],_0x4febf),this[_0x5d36('0x21')](),this[_0x5d36('0x20')]();}),_0x1dcced['on'](_0x5d36('0x6'),()=>{this[_0x5d36('0x21')](),this[_0x5d36('0x20')]();}),_0x1dcced[_0x5d36('0x2')](_0x5d36('0x0'),()=>{_0x1dcced[_0x5d36('0x20')]();}),_0x1dcced['createEditor'](),_0x1dcced['delegate']('editorReady')['to'](this),_0x1dcced[_0x5d36('0x11')]('editorDestroyed')['to'](this),_0x1dcced;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8f91=['bindTemplate','NUMBER_OF_COMMENTS','count','ck-thread__comment-count'];(function(_0x2c5ebf,_0x8f91a){const _0x524221=function(_0x691981){while(--_0x691981){_0x2c5ebf['push'](_0x2c5ebf['shift']());}};_0x524221(++_0x8f91a);}(_0x8f91,0x11e));const _0x5242=function(_0x2c5ebf,_0x8f91a){_0x2c5ebf=_0x2c5ebf-0x0;let _0x524221=_0x8f91[_0x2c5ebf];return _0x524221;};import{View as _0x1d0ecb}from'ckeditor5/src/ui';import{getTranslation as _0x591ab6}from'../../../utils/common-translations';export default class Zt extends _0x1d0ecb{constructor(_0x5bb12b){super(_0x5bb12b);const _0x10732e=this[_0x5242('0x2')];this['set'](_0x5242('0x0'),void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':_0x5242('0x1')},'children':[{'text':_0x10732e['to'](_0x5242('0x0'),_0x104b73=>_0x591ab6(_0x5bb12b,_0x5242('0x3'),_0x104b73))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xfa4f=['ck-comment__content','change:content','element','ck-annotation__content','set','div','innerHTML','content','render'];(function(_0x58d4f2,_0xfa4fd8){var _0x5ade39=function(_0x428e48){while(--_0x428e48){_0x58d4f2['push'](_0x58d4f2['shift']());}};_0x5ade39(++_0xfa4fd8);}(_0xfa4f,0x1d9));var _0x5ade=function(_0x58d4f2,_0xfa4fd8){_0x58d4f2=_0x58d4f2-0x0;var _0x5ade39=_0xfa4f[_0x58d4f2];return _0x5ade39;};import{View as _0x26da56}from'ckeditor5/src/ui';export default class Ut extends _0x26da56{constructor(_0x6bb7db){super(_0x6bb7db),this[_0x5ade('0x8')]('content',''),this['setTemplate']({'tag':_0x5ade('0x0'),'attributes':{'class':[_0x5ade('0x4'),_0x5ade('0x7')]}});}['render'](){super[_0x5ade('0x3')](),this['on'](_0x5ade('0x5'),(_0xf3da1c,_0x296c15,_0x81635f)=>{this[_0x5ade('0x6')][_0x5ade('0x1')]=_0x81635f;}),this['element']['innerHTML']=this[_0x5ade('0x2')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19df=['firstChild','submit','low','Reply','element','cancelButtonView','editor','disabledSubmit','isEnabled','focusTracker','submitButtonView','render','setTemplate','placeholder','fire','_createCancelButton','TOO_LONG_COMMENT_ALERT','tab','cancel','Esc','high','add','ck-comment__input-actions--submit','stop','bind','execute','change','forEach','destroy','focusPrevious','then','shift\x20+\x20tab','set','setData','model','focus','_editorCreationPromise','length','submitLabel','bindTemplate','view','_createSubmitButton','initialData','trim','label','document','createEditor','withText','editorDestroyed','div','getData','value','_initializeFocusCycling','ck-comment__input-actions--cancel','ck-comment__input-actions--active','create','extendTemplate','_isDestroyed','showButtons','keystrokes','focusNext','editorReady','_editorConfig'];(function(_0x1ed19a,_0x19dfa5){const _0x239db4=function(_0x119beb){while(--_0x119beb){_0x1ed19a['push'](_0x1ed19a['shift']());}};_0x239db4(++_0x19dfa5);}(_0x19df,0xe5));const _0x239d=function(_0x1ed19a,_0x19dfa5){_0x1ed19a=_0x1ed19a-0x0;let _0x239db4=_0x19df[_0x1ed19a];return _0x239db4;};import{View as _0x57023c,ViewCollection as _0xdcd040,FocusCycler as _0x4c6fec,ButtonView as _0x28b220}from'ckeditor5/src/ui';import{FocusTracker as _0x2a608b,KeystrokeHandler as _0x5b9821}from'ckeditor5/src/utils';import _0x4ed8d2 from'../commenteditor/commenteditor';import{getTranslation as _0x141ba0}from'../../../utils/common-translations';export default class Xt extends _0x57023c{constructor(_0x4c4253,_0x265a91={}){super(_0x4c4253),this['editor']=null,this[_0x239d('0x16')]=_0x265a91,this['keystrokes']=new _0x5b9821(),this['focusTracker']=new _0x2a608b(),this['set'](_0x239d('0xb'),_0x265a91[_0x239d('0x2')]||''),this[_0x239d('0x37')](_0x239d('0x1e'),!0x1),this[_0x239d('0x37')](_0x239d('0x12'),!0x0),this[_0x239d('0x37')](_0x239d('0x24'),_0x141ba0(_0x4c4253,'Reply...')),this[_0x239d('0x37')](_0x239d('0x3d'),_0x141ba0(_0x4c4253,_0x239d('0x1a'))),this[_0x239d('0x21')]=this['_createSubmitButton'](),this[_0x239d('0x1c')]=this[_0x239d('0x26')](),this[_0x239d('0x23')]({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':_0x239d('0x9'),'attributes':{'class':['ck-comment__input-actions',this[_0x239d('0x3e')]['if']('showButtons',_0x239d('0xe'))]},'children':[this[_0x239d('0x21')],this[_0x239d('0x1c')]]}]}),this[_0x239d('0x13')][_0x239d('0x37')](_0x239d('0x2a'),(_0xf858dd,_0x3e6d9e)=>{this['cancelButtonView']['fire'](_0x239d('0x30')),_0x3e6d9e();}),this['on']('submit',(_0x49cd3c,_0x2602ae)=>{_0x2602ae[_0x239d('0x3c')]>0xfde8?(alert(_0x141ba0(_0x4c4253,_0x239d('0x27'),[_0x2602ae[_0x239d('0x3c')],0xfde8])),_0x49cd3c[_0x239d('0x2e')]()):this[_0x239d('0x1d')][_0x239d('0x38')]('');},{'priority':_0x239d('0x2b')});}[_0x239d('0x22')](){super[_0x239d('0x22')](),this[_0x239d('0x13')]['listenTo'](this[_0x239d('0x1b')]),this[_0x239d('0x20')][_0x239d('0x2c')](this[_0x239d('0x1b')]);}[_0x239d('0x6')](){return this[_0x239d('0x1d')]||(this[_0x239d('0x1d')]=new _0x4ed8d2(this[_0x239d('0x16')]),this[_0x239d('0x3b')]=this[_0x239d('0x1d')][_0x239d('0xf')]()[_0x239d('0x35')](()=>{if(this['_isDestroyed'])return;const _0x53c8f8=this['editor'];this[_0x239d('0x1b')]['insertBefore'](_0x53c8f8['ui'][_0x239d('0x1b')],this[_0x239d('0x1b')][_0x239d('0x17')]),_0x53c8f8[_0x239d('0x39')][_0x239d('0x5')]['on'](_0x239d('0x31'),()=>this[_0x239d('0xb')]=_0x53c8f8[_0x239d('0xa')]()),_0x53c8f8[_0x239d('0x2f')](_0x239d('0x24'))['to'](this),this[_0x239d('0xc')](this[_0x239d('0x1d')]),this[_0x239d('0x25')](_0x239d('0x15'),this[_0x239d('0x1d')]);})),this[_0x239d('0x3b')];}[_0x239d('0x3a')](){this['editor']&&this[_0x239d('0x1d')][_0x239d('0x3a')]();}async[_0x239d('0x33')](){this[_0x239d('0x11')]||(this[_0x239d('0x11')]=!0x0,this[_0x239d('0x1d')]&&(await this[_0x239d('0x3b')],await this[_0x239d('0x1d')]['destroy'](),this[_0x239d('0x25')](_0x239d('0x8'),this[_0x239d('0x1d')])),await super[_0x239d('0x33')]());}[_0x239d('0x1')](){const {locale:_0x45f84c}=this,_0x80c7fb=new _0x28b220(_0x45f84c);return _0x80c7fb[_0x239d('0x10')]({'attributes':{'class':[_0x239d('0x2d')]}}),_0x80c7fb[_0x239d('0x7')]=!0x0,_0x80c7fb[_0x239d('0x2f')](_0x239d('0x4'))['to'](this,_0x239d('0x3d')),_0x80c7fb['on'](_0x239d('0x30'),()=>{this['fire'](_0x239d('0x18'),this[_0x239d('0xb')]);}),_0x80c7fb[_0x239d('0x2f')](_0x239d('0x1f'))['to'](this,'value',this,'disabledSubmit',(_0x1c7761,_0x8749ec)=>!_0x8749ec&&!!_0x1c7761[_0x239d('0x3')]()),_0x80c7fb;}[_0x239d('0x26')](){const {locale:_0x14b0b7}=this,_0x276af0=new _0x28b220(_0x14b0b7);return _0x276af0['extendTemplate']({'attributes':{'class':[_0x239d('0xd')]}}),_0x276af0['label']=_0x141ba0(_0x14b0b7,'Cancel'),_0x276af0['withText']=!0x0,_0x276af0['on'](_0x239d('0x30'),()=>{this[_0x239d('0x1d')][_0x239d('0x38')](''),this['fire'](_0x239d('0x29'));}),_0x276af0;}[_0x239d('0xc')](_0x3ede8d){const _0x488259=this['focusTracker'],_0x4ba25f=new _0xdcd040();[_0x3ede8d['ui'][_0x239d('0x0')],this[_0x239d('0x21')],this[_0x239d('0x1c')]][_0x239d('0x32')](_0x1dbd4e=>{_0x4ba25f[_0x239d('0x2c')](_0x1dbd4e),_0x488259['add'](_0x1dbd4e['element']);});const _0x32e575=new _0x4c6fec({'focusables':_0x4ba25f,'focusTracker':_0x488259});this[_0x239d('0x13')]['set'](_0x239d('0x28'),(_0x10f967,_0x515825)=>{_0x32e575[_0x239d('0x14')](),_0x515825();},{'priority':_0x239d('0x19')}),this['keystrokes'][_0x239d('0x37')](_0x239d('0x36'),(_0x2d4660,_0x28c845)=>{_0x32e575[_0x239d('0x34')](),_0x28c845();},{'priority':_0x239d('0x19')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2297=['arrowdown','set','render','ck-comments-archive__content','bindTemplate','listenTo','isEmpty','stopPropagation','arrowright','length','_focusTracker','EMPTY_COMMENTS_ARCHIVE','_focusables','setTemplate','ck-comments-archive__info','arrowup','high','element','_focusCycler','arrowleft','div','isActive','shift\x20+\x20tab','_keystrokes','ck-hidden','COMMENTS_ARCHIVE','ck-comments-archive__header\x20','destroy','selectstart','remove'];(function(_0x3f6801,_0x229758){const _0x172986=function(_0x503c7e){while(--_0x503c7e){_0x3f6801['push'](_0x3f6801['shift']());}};_0x172986(++_0x229758);}(_0x2297,0x16e));const _0x1729=function(_0x3f6801,_0x229758){_0x3f6801=_0x3f6801-0x0;let _0x172986=_0x2297[_0x3f6801];return _0x172986;};import{View as _0xa19f86,FocusCycler as _0x5c61f4}from'ckeditor5/src/ui';import{FocusTracker as _0x27d54e,KeystrokeHandler as _0x407312}from'ckeditor5/src/utils';import{getTranslation as _0x3af42e}from'../../../utils/common-translations';export default class K extends _0xa19f86{constructor(_0x381318,_0x199f74){super(_0x381318),this[_0x1729('0x19')](_0x1729('0x0'),!_0x199f74[_0x1729('0x3')]),this[_0x1729('0x4')]=new _0x27d54e(),this[_0x1729('0x11')]=new _0x407312(),this[_0x1729('0x6')]=_0x199f74,this[_0x1729('0xc')]=new _0x5c61f4({'focusables':this[_0x1729('0x6')],'focusTracker':this[_0x1729('0x4')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0x1729('0x10'),'focusNext':'tab'}}),this[_0x1729('0x1d')](_0x199f74,'add',()=>{this[_0x1729('0x0')]=!0x1;}),this[_0x1729('0x1d')](_0x199f74,_0x1729('0x17'),(_0x3b660b,_0x3b6ed5)=>{_0x3b6ed5[_0x1729('0xf')]&&this['focus'](),_0x199f74['length']||(this['isEmpty']=!0x0);});const _0x4086dd=this[_0x1729('0x1c')];this[_0x1729('0x7')]({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x1729('0x14')]},'children':[{'text':_0x3af42e(_0x381318,_0x1729('0x13'))}]},{'tag':_0x1729('0xe'),'attributes':{'class':[_0x1729('0x1b')]},'children':[{'tag':_0x1729('0xe'),'children':_0x199f74},{'tag':'p','attributes':{'class':[_0x1729('0x8'),_0x4086dd['if']('isEmpty',_0x1729('0x12'),_0x1b58ac=>!_0x1b58ac)]},'children':[{'text':_0x3af42e(_0x381318,_0x1729('0x5'))}]}]}]});}[_0x1729('0x1a')](){super[_0x1729('0x1a')](),this['_keystrokes'][_0x1729('0x1d')](this['element']);const _0x7ee0cb=_0x37c25d=>_0x37c25d[_0x1729('0x1')]();this['_keystrokes'][_0x1729('0x19')](_0x1729('0x2'),_0x7ee0cb),this[_0x1729('0x11')][_0x1729('0x19')](_0x1729('0xd'),_0x7ee0cb),this[_0x1729('0x11')][_0x1729('0x19')](_0x1729('0x9'),_0x7ee0cb),this[_0x1729('0x11')][_0x1729('0x19')](_0x1729('0x18'),_0x7ee0cb),this[_0x1729('0x1d')](this['element'],_0x1729('0x16'),(_0xc40661,_0x22398f)=>{_0x22398f[_0x1729('0x1')]();},{'priority':_0x1729('0xa')});}[_0x1729('0x15')](){super[_0x1729('0x15')](),this[_0x1729('0x4')][_0x1729('0x15')](),this['_keystrokes'][_0x1729('0x15')]();}['focus'](){this[_0x1729('0xb')]['focus']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11f6=['equal','render','some','comments','ck-thread__comments','maxCommentCharsWhenCollapsed','createCollection','visibleViews','refreshVisibleViews','_model','updateComment','_handleNewCommentModel','_rearrangeExpand','_config','maxThreadTotalWeight','_handleRemoveCommentModel','isActive','commentUpdated','set','_handleInfoComment','delete','resolvedCommentView','setTemplate','length','_collapsedCommentsView','isEditMode','editorConfig','formatDateTime','editorDestroyed','_updateHasDirtyComment','stopListening','_findOptimalIndex','element','add','viewUid','delegate','get','_calculatePosition','locale','commentViews','change:isResolved','remove','resolvedBy','from','_rearrangeCollapse','count','listenTo','expand','change:isEditMode','_shouldCollapse','resolvedAt','hasDirtyComment','bind','resolved','authoredAt','CommentView','destroy','insert','change:isActive','focus'];(function(_0x9bfd9f,_0x11f62d){const _0x136198=function(_0x38d886){while(--_0x38d886){_0x9bfd9f['push'](_0x9bfd9f['shift']());}};_0x136198(++_0x11f62d);}(_0x11f6,0x8c));const _0x1361=function(_0x9bfd9f,_0x11f62d){_0x9bfd9f=_0x9bfd9f-0x0;let _0x136198=_0x11f6[_0x9bfd9f];return _0x136198;};import{View as _0x43f308}from'ckeditor5/src/ui';import{diff as _0x404c82,Collection as _0x670713}from'ckeditor5/src/utils';import{getTranslation as _0x50e20d}from'../../../utils/common-translations';import _0x54861f from'./collapsedcommentsview';export default class wt extends _0x43f308{constructor(_0xa9904e,_0x2a7b9a,_0x604267){super(_0xa9904e),this[_0x1361('0x3a')]('hasDirtyComment',!0x1),this[_0x1361('0x3a')](_0x1361('0x3'),_0x2a7b9a[_0x1361('0x2b')][_0x1361('0x3')]),this[_0x1361('0x3a')]('isActive',!0x1),this['_model']=_0x2a7b9a,this[_0x1361('0x35')]=_0x604267,this[_0x1361('0x13')]=this[_0x1361('0x2e')](),this[_0x1361('0x2f')]=this['createCollection'](),this[_0x1361('0x1')]=null,this[_0x1361('0x4')]=new _0x54861f(_0xa9904e),this[_0x1361('0x4')][_0x1361('0x20')]('count')['to'](this,'length',_0x3a5aa9=>_0x3a5aa9-this['_config']['maxCommentsWhenCollapsed']);for(const _0x10283f of _0x2a7b9a[_0x1361('0x2b')])this['_handleNewCommentModel'](_0x10283f);this['_handleInfoComment'](),this[_0x1361('0x1a')](_0x2a7b9a[_0x1361('0x2b')],_0x1361('0xd'),(_0x13cd1b,_0x493ede)=>{const _0x4315c3=this[_0x1361('0x11')](_0x493ede);this['length']++,this[_0x1361('0x33')](_0x493ede,_0x4315c3),this[_0x1361('0x30')]();}),this[_0x1361('0x1a')](_0x2a7b9a[_0x1361('0x2b')],_0x1361('0x15'),(_0x229053,_0x8a1708)=>{this[_0x1361('0x3')]--,this[_0x1361('0x37')](_0x8a1708),this['refreshVisibleViews']();}),this['listenTo'](_0x2a7b9a,_0x1361('0x39'),()=>this[_0x1361('0x30')]()),this[_0x1361('0x1a')](_0x2a7b9a,_0x1361('0x14'),()=>this[_0x1361('0x3b')]()),this['on'](_0x1361('0x26'),()=>this[_0x1361('0x30')]()),this['on']('change:hasDirtyComment',()=>this[_0x1361('0x30')]()),this[_0x1361('0x2')]({'tag':'ul','attributes':{'class':[_0x1361('0x2c')]},'children':this[_0x1361('0x2f')]});}get[_0x1361('0x1d')](){return this[_0x1361('0x31')]['weight']>this[_0x1361('0x35')][_0x1361('0x36')]&&!this[_0x1361('0x38')]&&!this[_0x1361('0x1f')];}[_0x1361('0x29')](){super[_0x1361('0x29')](),this[_0x1361('0x30')]();}[_0x1361('0x27')](){this[_0x1361('0xc')][_0x1361('0x27')]();}[_0x1361('0x24')](){this[_0x1361('0x4')][_0x1361('0x24')]();for(const _0x588a5c of this[_0x1361('0x13')])_0x588a5c['destroy']();super['destroy']();}[_0x1361('0x30')](){this[_0x1361('0x1d')]?this[_0x1361('0x18')]():this[_0x1361('0x34')]();}[_0x1361('0x33')](_0x4b26df,_0x531b62){const _0x4bccb5=new this['_config'][(_0x1361('0x23'))](this[_0x1361('0x12')],_0x4b26df,{'maxCommentCharsWhenCollapsed':this[_0x1361('0x35')][_0x1361('0x2d')],'formatDateTime':this[_0x1361('0x35')][_0x1361('0x7')],'editorConfig':this[_0x1361('0x35')][_0x1361('0x6')]});_0x4bccb5[_0x1361('0xe')]=_0x4b26df['id'],_0x4bccb5['delegate']('removeComment')['to'](this),_0x4bccb5[_0x1361('0xf')](_0x1361('0x32'))['to'](this),_0x4bccb5['delegate']('resolveCommentThread')['to'](this),_0x4bccb5['delegate']('editorReady')['to'](this),_0x4bccb5[_0x1361('0xf')](_0x1361('0x8'))['to'](this),this[_0x1361('0x1a')](_0x4bccb5,_0x1361('0x1c'),()=>this[_0x1361('0x9')]()),this[_0x1361('0x13')]['add'](_0x4bccb5,_0x531b62);}[_0x1361('0x11')](_0xfce2ae){const _0x546f4f=this['_model'][_0x1361('0xb')](_0xfce2ae);return this[_0x1361('0x1')]?this[_0x1361('0x1')][_0x1361('0x22')]>_0xfce2ae[_0x1361('0x22')]?_0x546f4f-0x1:_0x546f4f:_0x546f4f-0x1;}[_0x1361('0x3b')](){if(this['_model'][_0x1361('0x16')]&&this['_model'][_0x1361('0x1e')]){const _0xef8f06={'id':_0x1361('0x21'),'author':this['_model'][_0x1361('0x16')],'authoredAt':this[_0x1361('0x31')][_0x1361('0x1e')],'content':_0x50e20d(this[_0x1361('0x12')],'Marked\x20as\x20resolved'),'attributes':{}};this[_0x1361('0x1')]=new this[(_0x1361('0x35'))][(_0x1361('0x23'))](this['locale'],_0xef8f06,{'maxCommentCharsWhenCollapsed':this[_0x1361('0x35')][_0x1361('0x2d')],'formatDateTime':this[_0x1361('0x35')][_0x1361('0x7')],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this[_0x1361('0x13')][_0x1361('0xd')](this['resolvedCommentView'],this[_0x1361('0x31')][_0x1361('0xb')](_0xef8f06));}else this[_0x1361('0x1')]&&(this[_0x1361('0x13')][_0x1361('0x15')](this[_0x1361('0x1')]),this[_0x1361('0x1')][_0x1361('0x24')](),this[_0x1361('0x1')]=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x4b2dad){const _0xa46f91=this[_0x1361('0x13')][_0x1361('0x15')](_0x4b2dad['id']);this[_0x1361('0xa')](_0xa46f91),_0xa46f91[_0x1361('0x5')]&&this[_0x1361('0x9')](),_0xa46f91[_0x1361('0x24')]();}[_0x1361('0x9')](){this['hasDirtyComment']=Array[_0x1361('0x17')](this[_0x1361('0x13')])[_0x1361('0x2a')](_0xb6124f=>_0xb6124f[_0x1361('0x5')]);}[_0x1361('0x18')](){const _0x222738=function(_0x201130){const _0xbaf71e=new _0x670713();for(const _0x2d5450 of _0x201130)_0xbaf71e[_0x1361('0xd')](_0x2d5450);return _0xbaf71e;}(this[_0x1361('0x13')]),_0x388140=this[_0x1361('0x4')][_0x1361('0x19')];for(let _0x1e743d=0x1;_0x1e743d<=_0x388140;_0x1e743d++)_0x222738[_0x1361('0x15')](0x1);for(const _0x5a0fc6 of _0x222738)_0x5a0fc6['collapse']();_0x388140>0x0&&_0x222738[_0x1361('0xd')](this[_0x1361('0x4')],0x1),ss(_0x404c82(Array[_0x1361('0x17')](this[_0x1361('0x2f')]),Array['from'](_0x222738)),this[_0x1361('0x2f')],_0x222738);}[_0x1361('0x34')](){ss(_0x404c82(Array[_0x1361('0x17')](this[_0x1361('0x2f')]),Array['from'](this[_0x1361('0x13')])),this[_0x1361('0x2f')],this[_0x1361('0x13')]);for(const _0xb79a24 of this[_0x1361('0x2f')])_0xb79a24[_0x1361('0x1b')]();}}function ss(_0x4b34a2,_0x358d82,_0x164c53){let _0x5eec11=0x0;for(const _0xcaf04f of _0x4b34a2)switch(_0xcaf04f){case _0x1361('0x25'):_0x358d82[_0x1361('0xd')](_0x164c53[_0x1361('0x10')](_0x5eec11),_0x5eec11),_0x5eec11++;break;case _0x1361('0x0'):_0x358d82[_0x1361('0x15')](_0x5eec11);break;case _0x1361('0x28'):_0x5eec11++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21bd=['hasContext','overlay','classList','bind','execute','ck-context--quotes','ck-thread__header','_trimContextValue','tooltip','reopenButtonView','querySelector','div','mouseleave','substring','listenTo','.ck-context__value','...','context','lastIndexOf','span','ck-context','contextValue','isResolvable','ck-context-wrapper','remove','ck-context__value','_attachContextActions','mouseenter','.ck-context','render','_model','isResolved','bindTemplate','value','setTemplate','locale','fire','offsetWidth','_createReopenButton','Reopen','isReadOnly','element'];(function(_0x2706ca,_0x21bdf6){const _0xc4e4be=function(_0x28581f){while(--_0x28581f){_0x2706ca['push'](_0x2706ca['shift']());}};_0xc4e4be(++_0x21bdf6);}(_0x21bd,0x108));const _0xc4e4=function(_0x2706ca,_0x21bdf6){_0x2706ca=_0x2706ca-0x0;let _0xc4e4be=_0x21bd[_0x2706ca];return _0xc4e4be;};import{View as _0x7ac108,ButtonView as _0x594757}from'ckeditor5/src/ui';import{getTranslation as _0x32a153}from'../../../utils/common-translations';import _0x293e95 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x7ac108{constructor(_0xadb145,_0x3f566d){super(_0xadb145);const _0x5766e2=this[_0xc4e4('0x14')];this[_0xc4e4('0x12')]=_0x3f566d,this['reopenButtonView']=this[_0xc4e4('0x1a')](),this[_0xc4e4('0x21')](_0xc4e4('0x1e'))['to'](this[_0xc4e4('0x12')],_0xc4e4('0x5'),_0x2910eb=>!!_0x2910eb),this[_0xc4e4('0x21')](_0xc4e4('0x9'))['to'](this[_0xc4e4('0x12')],_0xc4e4('0x5'),_0x491da3=>_0x491da3&&_0x491da3[_0xc4e4('0x15')]?this[_0xc4e4('0x25')](_0x491da3[_0xc4e4('0x15')]):_0x32a153(this[_0xc4e4('0x17')],'Comment\x20was\x20made\x20on\x20an\x20element')),this[_0xc4e4('0x16')]({'tag':_0xc4e4('0x29'),'attributes':{'class':[_0xc4e4('0x24')]},'children':[{'tag':_0xc4e4('0x29'),'attributes':{'class':[_0xc4e4('0xb')]},'children':[{'tag':'div','attributes':{'class':[_0xc4e4('0x8'),_0x5766e2['if'](_0xc4e4('0x1e'),_0xc4e4('0x23'))]},'children':[{'tag':_0xc4e4('0x7'),'attributes':{'class':[_0xc4e4('0xd')]},'children':[{'text':_0x5766e2['to']('contextValue')}]}]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this[_0xc4e4('0x27')]]}]});}[_0xc4e4('0x11')](){super[_0xc4e4('0x11')](),this['_attachContextActions']();}['_createReopenButton'](){const _0x1ed5cf=new _0x594757(this[_0xc4e4('0x17')]);return _0x1ed5cf['label']=_0x32a153(this['locale'],'Reopen'),_0x1ed5cf[_0xc4e4('0x26')]=_0x32a153(this[_0xc4e4('0x17')],_0xc4e4('0x1b')),_0x1ed5cf['icon']=_0x293e95,_0x1ed5cf[_0xc4e4('0x21')]('isEnabled')['to'](this[_0xc4e4('0x12')],_0xc4e4('0x1c'),_0xcde7be=>!_0xcde7be),_0x1ed5cf[_0xc4e4('0x21')]('isVisible')['to'](this[_0xc4e4('0x12')],_0xc4e4('0xa'),this[_0xc4e4('0x12')],_0xc4e4('0x13'),(_0x2f8293,_0x555fa2)=>_0x2f8293&&_0x555fa2),_0x1ed5cf['on'](_0xc4e4('0x22'),()=>{this[_0xc4e4('0x18')]('reopenCommentThread',this[_0xc4e4('0x12')]['id']);}),_0x1ed5cf;}['_trimContextValue'](_0x58cb4a){if(_0x58cb4a['length']<0x96)return _0x58cb4a;const _0x183995=_0x58cb4a[_0xc4e4('0x6')]('\x20',0x93);return _0x58cb4a[_0xc4e4('0x1')](0x0,_0x183995>-0x1?_0x183995:0x93)+_0xc4e4('0x4');}[_0xc4e4('0xe')](){const _0xd5c003=this[_0xc4e4('0x1d')][_0xc4e4('0x28')](_0xc4e4('0x10')),_0x457cfe=_0xd5c003[_0xc4e4('0x28')](_0xc4e4('0x3'));this[_0xc4e4('0x2')](_0xd5c003,_0xc4e4('0xf'),()=>{_0x457cfe[_0xc4e4('0x19')]<_0x457cfe['scrollWidth']&&_0xd5c003[_0xc4e4('0x20')]['add'](_0xc4e4('0x1f'));}),this[_0xc4e4('0x2')](_0xd5c003,_0xc4e4('0x0'),()=>{_0xd5c003[_0xc4e4('0x20')][_0xc4e4('0xc')](_0xc4e4('0x1f'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x58ef=['value','commentInputView','ck-comment__input-container','editor','bindTemplate','then','bind','div','ck-comment__input-container--active','ck-thread__user','createEditor','showInput','destroy','userView','delegate','focusTracker','ck-thread__input','extendTemplate'];(function(_0xb2fc51,_0x58ef8e){var _0xc5fa97=function(_0x4dc0c3){while(--_0x4dc0c3){_0xb2fc51['push'](_0xb2fc51['shift']());}};_0xc5fa97(++_0x58ef8e);}(_0x58ef,0x93));var _0xc5fa=function(_0xb2fc51,_0x58ef8e){_0xb2fc51=_0xb2fc51-0x0;var _0xc5fa97=_0x58ef[_0xb2fc51];return _0xc5fa97;};import{View as _0x19ceff}from'ckeditor5/src/ui';import _0x129bfe from'./commentinputview';import{UserView as _0x5be2ce}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x19ceff{constructor(_0x4579d7,_0x292daf,_0x339607){super(_0x4579d7),this[_0xc5fa('0x10')]=new _0x129bfe(_0x4579d7,_0x339607),this['commentInputView'][_0xc5fa('0x3')]('showButtons')['to'](this[_0xc5fa('0x10')][_0xc5fa('0xc')],'isFocused',this[_0xc5fa('0x10')],_0xc5fa('0xf'),(_0x4527b9,_0x5ef65a)=>_0x4527b9||!!_0x5ef65a),this['set'](_0xc5fa('0x8'),!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this[_0xc5fa('0x10')][_0xc5fa('0x0')]&&this[_0xc5fa('0x10')][_0xc5fa('0x7')]();}),this[_0xc5fa('0x10')][_0xc5fa('0xb')]('editorReady')['to'](this),this[_0xc5fa('0x10')][_0xc5fa('0xb')]('editorDestroyed')['to'](this),this[_0xc5fa('0xa')]=new _0x5be2ce(_0x4579d7,_0x292daf),this[_0xc5fa('0xa')][_0xc5fa('0xe')]({'attributes':{'class':_0xc5fa('0x6')}}),this['commentInputView'][_0xc5fa('0xe')]({'attributes':{'class':_0xc5fa('0xd')}}),this['setTemplate']({'tag':_0xc5fa('0x4'),'attributes':{'class':[_0xc5fa('0x11'),this[_0xc5fa('0x1')]['if']('showInput',_0xc5fa('0x5'))]},'children':[this[_0xc5fa('0xa')],this[_0xc5fa('0x10')]]});}[_0xc5fa('0x9')](){return this['commentInputView']['destroy']()[_0xc5fa('0x2')](()=>super[_0xc5fa('0x9')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46e1=['isConfirm','change:isReadOnly','has','div','removeButton','ck-thread--','_model','cancelConfirm','extendTemplate','removeCommentThread','bind','Delete\x20comment\x20thread?','isActive','commentViews','isResolvable','isUnlinked','fire','createCollection','execute','Resolve','listenTo','actionIndicator','showConfirm','querySelector','getTemplate','commentThreadChildren','element','containerElement','length','isVisible','ck-thread--active','_boundFirstCommentView','set','ck-thread--remove-confirmation','commentThreadHeaderView','label','commentThreadInputView','commentsListView','icon','stop','ck-comment--resolve','resolveButton','add','isEnabled','_bindFirstCommentView','high','change:isActive','change:archivedAt','locale','tooltip','archivedAt','remove','check','_cancelAllConfirms','isResolved','then','setTemplate','render'];(function(_0x396dc3,_0x46e1d3){const _0x5a3b2f=function(_0x475bdd){while(--_0x475bdd){_0x396dc3['push'](_0x396dc3['shift']());}};_0x5a3b2f(++_0x46e1d3);}(_0x46e1,0x155));const _0x5a3b=function(_0x396dc3,_0x46e1d3){_0x396dc3=_0x396dc3-0x0;let _0x5a3b2f=_0x46e1[_0x396dc3];return _0x5a3b2f;};import{ConfirmMixin as _0x24ef0e}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x100f14}from'ckeditor5/src/ui';import{icons as _0x53454b}from'ckeditor5/src/core';import _0x3af36b from'./basecommentthreadview';import{getTranslation as _0x2e9c56}from'../../../utils/common-translations';export default class lt extends _0x24ef0e(_0x3af36b){constructor(_0x3223b6,_0x15af1a,_0x474efe,_0x574b67){super(_0x3223b6,_0x15af1a,_0x474efe,_0x574b67),this['commentThreadChildren']=this[_0x5a3b('0x18')](),this[_0x5a3b('0x20')]['addMany']([this['commentsListView'],this[_0x5a3b('0x2b')]]),this[_0x5a3b('0xd')][_0x5a3b('0x39')]&&this[_0x5a3b('0x20')][_0x5a3b('0x31')](this[_0x5a3b('0x29')],0x0),this[_0x5a3b('0xd')]['on'](_0x5a3b('0x36'),(_0x532e29,_0x1de56c,_0x54ee28)=>{_0x54ee28?this['commentThreadChildren'][_0x5a3b('0x9')](this[_0x5a3b('0x29')])||this[_0x5a3b('0x20')][_0x5a3b('0x31')](this[_0x5a3b('0x29')],0x0):this[_0x5a3b('0x20')][_0x5a3b('0x0')](this[_0x5a3b('0x29')]);}),this[_0x5a3b('0x27')](_0x5a3b('0x1c'),null),this[_0x5a3b('0x22')]=null,this['_boundFirstCommentView']=null,this[_0x5a3b('0x37')]=_0x3223b6,this[_0x5a3b('0x30')]=this['_createResolveButton'](),this[_0x5a3b('0x5')](this['getTemplate']()),this['on'](_0x5a3b('0x35'),(_0x15f5a4,_0x36a3d8,_0x2c1d78)=>{_0x2c1d78||this[_0x5a3b('0x2')]();}),this[_0x5a3b('0x1b')](this['_model'],_0x5a3b('0x8'),(_0x2b74cc,_0x3067b2,_0x3d9df0)=>{_0x3d9df0&&this[_0x5a3b('0x2')]();}),this[_0x5a3b('0x23')]>0x0&&this['_bindFirstCommentView'](),this[_0x5a3b('0x1b')](this[_0x5a3b('0x2c')][_0x5a3b('0x14')],'add',()=>{this[_0x5a3b('0x33')]();});}[_0x5a3b('0x1f')](){const _0x5197e0=this['bindTemplate'];return{'tag':_0x5a3b('0xa'),'attributes':{'class':['ck-thread','ck-reset_all-excluded',_0x5197e0['if'](_0x5a3b('0x13'),_0x5a3b('0x25')),_0x5197e0['if'](_0x5a3b('0x16'),'ck-thread--unlinked'),_0x5197e0['if'](_0x5a3b('0x7'),_0x5a3b('0x28')),_0x5197e0['to'](_0x5a3b('0x1c'),_0x1b1992=>_0x1b1992?_0x5a3b('0xc')+_0x1b1992:'')],'data-thread-id':this[_0x5a3b('0xd')]['id'],'tabindex':-0x1},'children':[{'tag':_0x5a3b('0xa'),'attributes':{'class':'ck-thread__container'},'children':this[_0x5a3b('0x20')]}]};}['render'](){super[_0x5a3b('0x6')](),this[_0x5a3b('0x22')]=this[_0x5a3b('0x21')][_0x5a3b('0x1e')]('.ck-thread__container');}['_cancelAllConfirms'](){this[_0x5a3b('0xe')]();for(const _0x5bcd29 of this['commentsListView'][_0x5a3b('0x14')])_0x5bcd29[_0x5a3b('0xe')]();}[_0x5a3b('0x33')](){const {locale:_0x31a894}=this,_0xa12183=this['commentsListView'][_0x5a3b('0x14')]['get'](0x0);_0xa12183===this[_0x5a3b('0x26')]||_0xa12183['isSystemComment']||(this['_boundFirstCommentView']=_0xa12183,this['unbind'](_0x5a3b('0x1c')),this[_0x5a3b('0x11')](_0x5a3b('0x1c'))['to'](_0xa12183,_0x5a3b('0x1c'),_0x76dfa4=>_0x5a3b('0x0')===_0x76dfa4?_0x5a3b('0x0'):null),_0xa12183['placeholder']=_0x2e9c56(_0x31a894,'Write\x20a\x20comment...'),_0xa12183[_0x5a3b('0xb')]['on']('execute',_0x52d761=>{_0x52d761[_0x5a3b('0x2e')](),this[_0x5a3b('0x1d')](_0x2e9c56(_0x31a894,_0x5a3b('0x12')),this['containerElement'])[_0x5a3b('0x4')](()=>{this[_0x5a3b('0x17')](_0x5a3b('0x10'));});},{'priority':_0x5a3b('0x34')}),_0xa12183['actionBar'][_0x5a3b('0x31')](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x1b4f2b=new _0x100f14(this[_0x5a3b('0x37')]);return _0x1b4f2b[_0x5a3b('0x2a')]=_0x2e9c56(this[_0x5a3b('0x37')],_0x5a3b('0x1a')),_0x1b4f2b[_0x5a3b('0x38')]=_0x2e9c56(this[_0x5a3b('0x37')],_0x5a3b('0x1a')),_0x1b4f2b[_0x5a3b('0x2d')]=_0x53454b[_0x5a3b('0x1')],_0x1b4f2b[_0x5a3b('0xf')]({'attributes':{'class':_0x5a3b('0x2f')}}),_0x1b4f2b['bind'](_0x5a3b('0x32'))['to'](this[_0x5a3b('0xd')],'isReadOnly',_0x35c12e=>!_0x35c12e),_0x1b4f2b[_0x5a3b('0x11')](_0x5a3b('0x24'))['to'](this[_0x5a3b('0xd')],_0x5a3b('0x15'),this['_model'],_0x5a3b('0x3'),(_0x55a38f,_0x3d4f2f)=>_0x55a38f&&!_0x3d4f2f),_0x1b4f2b['on'](_0x5a3b('0x19'),()=>{this[_0x5a3b('0x17')]('resolveCommentThread',this[_0x5a3b('0xd')]['id']);}),_0x1b4f2b;}}
|