@ckeditor/ckeditor5-comments 0.0.0-nightly-20231029.0 → 0.0.0-nightly-20231031.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/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 _0x43ad=['map','plugins','collaboration_features','get','comments','define','forEach','collaboration.channelId','commands','formatting','addCommentThread','editor','execute','_handleImportedData','high','dataInsert','config','importWord','importWord.formatting.comments'];(function(_0x59ba39,_0x43ad33){const _0x4b4125=function(_0x12fa65){while(--_0x12fa65){_0x59ba39['push'](_0x59ba39['shift']());}};_0x4b4125(++_0x43ad33);}(_0x43ad,0x1dd));const _0x4b41=function(_0x59ba39,_0x43ad33){_0x59ba39=_0x59ba39-0x0;let _0x4b4125=_0x43ad[_0x59ba39];return _0x4b4125;};import{Plugin as _0x47d7b6}from'ckeditor5/src/core';import{priorities as _0x2e3a7b}from'ckeditor5/src/utils';import{Users as _0x14defd}from'ckeditor5-collaboration/src/collaboration-core';import _0x526b91 from'../commentsrepository';export default class Y extends _0x47d7b6{constructor(_0x1aa9f8){super(_0x1aa9f8),this[_0x4b41('0x9')][_0x4b41('0xe')][_0x4b41('0x3')](_0x4b41('0x10'),'basic');}['afterInit'](){const _0x3794ff=this[_0x4b41('0x9')],_0x468775=_0x3794ff[_0x4b41('0x6')]['get'](_0x4b41('0xf')),_0x2c97d3=_0x3794ff[_0x4b41('0x12')]['get'](_0x14defd);_0x468775&&(_0x468775['on'](_0x4b41('0xa'),(_0x47c27c,[,_0x543765])=>{_0x543765[_0x4b41('0x0')]={'comments':!0x0,'user_id':_0x2c97d3['me']['id']},_0x543765[_0x4b41('0x7')][_0x4b41('0x2')]=this[_0x4b41('0x9')]['config'][_0x4b41('0x1')](_0x4b41('0x10'));},{'priority':_0x2e3a7b[_0x4b41('0xc')]+0xa}),this['listenTo'](_0x468775,_0x4b41('0xd'),this[_0x4b41('0xb')]));}[_0x4b41('0xb')](_0x409f93,_0x55999a){const {comment_threads:_0x33364b}=_0x55999a;_0x33364b&&_0x33364b[_0x4b41('0x4')](({thread_id:_0x461429,comments:_0x5698e1,is_resolved:_0xf8b9b4})=>{const _0x1618c5=new Date(),_0x495eb4=_0x5698e1[_0x4b41('0x11')](({author:_0x2d50e6,content:_0x2ad2be,created_at:_0x539995})=>({'content':_0x2ad2be,'authorId':this[_0x4b41('0x9')][_0x4b41('0x12')][_0x4b41('0x1')](_0x14defd)['me']['id'],'createdAt':_0x1618c5,'attributes':{'@external':{'authorName':_0x2d50e6,'createdAt':_0x539995?new Date(_0x539995):new Date(),'source':_0x4b41('0xf')}}})),_0x5cdd2c=this[_0x4b41('0x9')][_0x4b41('0xe')]['get'](_0x4b41('0x5'));this[_0x4b41('0x9')]['plugins']['get'](_0x526b91)[_0x4b41('0x8')]({'channelId':_0x5cdd2c,'threadId':_0x461429,'comments':_0x495eb4,'resolvedAt':_0xf8b9b4?_0x1618c5:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ab5=['getChild','setSelection','then','document','destroy','focus','data','placeholder','config','model','assign','defaultPlugins','childCount','end','placeholderElement','_updatePlaceholder','getRoot','init','set','change','plugins','change:placeholder','initialData','createRoot'];(function(_0x48803c,_0x3ab572){const _0x41bb25=function(_0x2f04d5){while(--_0x2f04d5){_0x48803c['push'](_0x48803c['shift']());}};_0x41bb25(++_0x3ab572);}(_0x3ab5,0x194));const _0x41bb=function(_0x48803c,_0x3ab572){_0x48803c=_0x48803c-0x0;let _0x41bb25=_0x3ab5[_0x48803c];return _0x41bb25;};import{Editor as _0x45c9a2,DataApiMixin as _0x2c689e}from'ckeditor5/src/core';import _0x419f82 from'./commenteditorui';import{ObservableMixin as _0x575713}from'ckeditor5/src/utils';import{enablePlaceholder as _0x3fa097,disablePlaceholder as _0x58a7e8}from'ckeditor5/src/engine';import{Clipboard as _0x4e6a2e}from'ckeditor5/src/clipboard';import{Enter as _0x50cc25,ShiftEnter as _0x126092}from'ckeditor5/src/enter';import{SelectAll as _0x2352b1}from'ckeditor5/src/select-all';import{Typing as _0x269706}from'ckeditor5/src/typing';import{Undo as _0x142f53}from'ckeditor5/src/undo';import{Paragraph as _0x34d50f}from'ckeditor5/src/paragraph';const Kt=[_0x4e6a2e,_0x50cc25,_0x126092,_0x2352b1,_0x269706,_0x142f53,_0x34d50f];export default class Lt extends _0x575713(_0x2c689e(_0x45c9a2)){constructor(_0x422db3={}){(_0x422db3=Object[_0x41bb('0xe')]({},_0x422db3))[_0x41bb('0x0')]||(_0x422db3[_0x41bb('0x0')]=Lt[_0x41bb('0xf')]),super(_0x422db3),this['ui']=new _0x419f82(this),this[_0x41bb('0x16')](_0x41bb('0xb'),''),this[_0x41bb('0xd')][_0x41bb('0x7')]['on'](_0x41bb('0x17'),()=>this[_0x41bb('0x13')](),{'priority':'low'}),this['on'](_0x41bb('0x1'),()=>this['_updatePlaceholder']()),this[_0x41bb('0xd')]['document'][_0x41bb('0x3')]();}['create'](){const _0x2cdce3=this[_0x41bb('0xc')]['get'](_0x41bb('0x2'))||'';return this['initPlugins']()[_0x41bb('0x6')](()=>this['ui'][_0x41bb('0x15')]())[_0x41bb('0x6')](()=>this[_0x41bb('0xa')][_0x41bb('0x15')](_0x2cdce3))['then'](()=>this['fire']('ready'));}[_0x41bb('0x8')](){return super['destroy']()[_0x41bb('0x6')](()=>this['ui']['destroy']());}['focus'](){this[_0x41bb('0xd')][_0x41bb('0x17')](_0x191982=>{const _0x381bd1=this[_0x41bb('0xd')][_0x41bb('0x7')]['getRoot'](),_0xb8d8a1=_0x381bd1&&_0x381bd1['getChild'](_0x381bd1['childCount']-0x1);_0x191982[_0x41bb('0x5')](_0xb8d8a1,_0x41bb('0x11')),this['editing']['view'][_0x41bb('0x9')]();});}['_updatePlaceholder'](){const _0x11b9d4=this['editing']['view'],_0x2e426f=_0x11b9d4[_0x41bb('0x7')][_0x41bb('0x14')](),_0x5616ed=_0x2e426f[_0x41bb('0x4')](0x0);_0x2e426f[_0x41bb('0x10')]>0x1||!_0x5616ed||'p'!=_0x5616ed['name']?this[_0x41bb('0x12')]&&this[_0x41bb('0x12')]['placeholder']&&(_0x58a7e8(_0x11b9d4,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x5616ed['placeholder']=this[_0x41bb('0xb')]),_0x3fa097({'view':_0x11b9d4,'element':_0x5616ed,'keepOnFocus':!0x0}),this['placeholderElement']=_0x5616ed);}}Lt[_0x41bb('0xf')]=Kt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2793=['bind','ready','rootName','name','fire','editable','document','view','init','destroy','focusTracker','editing','element','setEditableElement','attachDomRoot','isFocused'];(function(_0x2a1f87,_0x2793f8){const _0xbaa2e7=function(_0x36eec3){while(--_0x36eec3){_0x2a1f87['push'](_0x2a1f87['shift']());}};_0xbaa2e7(++_0x2793f8);}(_0x2793,0x115));const _0xbaa2=function(_0x2a1f87,_0x2793f8){_0x2a1f87=_0x2a1f87-0x0;let _0xbaa2e7=_0x2793[_0x2a1f87];return _0xbaa2e7;};import{EditorUI as _0xb9d672}from'ckeditor5/src/ui';import _0x4d15b9 from'./commenteditoruiview';export default class jt extends _0xb9d672{constructor(_0x220980){super(_0x220980),this['view']=new _0x4d15b9(_0x220980['locale'],_0x220980['editing'][_0xbaa2('0x2')]);}get[_0xbaa2('0x7')](){return this['view'][_0xbaa2('0x7')];}[_0xbaa2('0x3')](){const _0x54e627=this['editor'][_0xbaa2('0x6')]['view'],_0x517ccc=this[_0xbaa2('0x2')][_0xbaa2('0x0')],_0x345d46=_0x54e627[_0xbaa2('0x1')]['getRoot']();_0x517ccc[_0xbaa2('0xe')]=_0x345d46[_0xbaa2('0xd')],this['view']['render']();const _0x237ac4=_0x517ccc['element'];this[_0xbaa2('0x8')](_0x517ccc[_0xbaa2('0xe')],_0x237ac4),this[_0xbaa2('0x2')][_0xbaa2('0x0')][_0xbaa2('0xb')](_0xbaa2('0xa'))['to'](this[_0xbaa2('0x5')]),_0x54e627[_0xbaa2('0x9')](_0x237ac4),this[_0xbaa2('0xf')](_0xbaa2('0xc'));}[_0xbaa2('0x4')](){super[_0xbaa2('0x4')](),this['view'][_0xbaa2('0x4')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d90=['uiLanguageDirection','Comment\x20editor','presentation','focus','setTemplate','ck-editor__aria-label_','ck-rounded-corners','ck-comment__input','main','ck-editor','extendTemplate','add','uiLanguage','editable','ck-voice-label','createCollection','_voiceLabelView','div','_createVoiceLabel','element','ck-editor__main','comment'];(function(_0x45acda,_0x5d9092){const _0xba586b=function(_0x274558){while(--_0x274558){_0x45acda['push'](_0x45acda['shift']());}};_0xba586b(++_0x5d9092);}(_0x5d90,0x188));const _0xba58=function(_0x45acda,_0x5d9092){_0x45acda=_0x45acda-0x0;let _0xba586b=_0x5d90[_0x45acda];return _0xba586b;};import{InlineEditableUIView as _0x2248e6,EditorUIView as _0x3f11dd,LabelView as _0x1c4923}from'ckeditor5/src/ui';import{uid as _0x50ff81}from'ckeditor5/src/utils';import{getTranslation as _0x553a33}from'../../../utils/common-translations';export default class Nt extends _0x3f11dd{constructor(_0x438b39,_0x1be9da){super(_0x438b39);const _0x33438c=_0x50ff81();this['main']=this[_0xba58('0x13')](),this[_0xba58('0x11')]=new _0x2248e6(_0x438b39,_0x1be9da),this[_0xba58('0x14')]=this['_createVoiceLabel'](_0x33438c,_0x438b39),this[_0xba58('0x8')]({'tag':_0xba58('0x15'),'attributes':{'class':['ck-reset',_0xba58('0xd'),_0xba58('0xa'),_0xba58('0xb')],'role':_0xba58('0x3'),'dir':_0x438b39[_0xba58('0x4')],'lang':_0x438b39[_0xba58('0x10')],'aria-labelledby':'cke-editor__aria-label_'+_0x33438c},'children':[this[_0xba58('0x14')],{'tag':_0xba58('0x15'),'attributes':{'class':_0xba58('0x2'),'role':_0xba58('0x6')},'children':this[_0xba58('0xc')]}]});}['render'](){super['render'](),this['main'][_0xba58('0xf')](this[_0xba58('0x11')]);}[_0xba58('0x7')](){this[_0xba58('0x11')][_0xba58('0x1')][_0xba58('0x7')]();}[_0xba58('0x0')](_0x30b015,_0xffd2ac){const _0x1d9590=new _0x1c4923();return _0x1d9590['text']=_0x553a33(_0xffd2ac,_0xba58('0x5')),_0x1d9590[_0xba58('0xe')]({'attributes':{'id':_0xba58('0x9')+_0x30b015,'class':_0xba58('0x12')}}),_0x1d9590;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2569=['removeComment','isResolved','reopen','reopenCommentThread','submit','destroy','addComment','model','listenTo','updateComment','_isAttached','getComment','_localUser','view','resolve','remove','stopListening','resolveCommentThread'];(function(_0x1db564,_0x25690b){var _0x2097fa=function(_0x41a8fe){while(--_0x41a8fe){_0x1db564['push'](_0x1db564['shift']());}};_0x2097fa(++_0x25690b);}(_0x2569,0xe0));var _0x2097=function(_0x1db564,_0x25690b){_0x1db564=_0x1db564-0x0;var _0x2097fa=_0x2569[_0x1db564];return _0x2097fa;};import{ObservableMixin as _0x7b93dd}from'ckeditor5/src/utils';export default class ct extends _0x7b93dd(){constructor(_0x670409,_0xdab5e1){super(),this[_0x2097('0x11')]=_0x670409,this[_0x2097('0x11')]['_isAttached']=!0x0,this[_0x2097('0x5')]=_0xdab5e1,this[_0x2097('0x0')](_0xdab5e1,'submitCommentThread',()=>this[_0x2097('0xe')]()),this[_0x2097('0x0')](_0xdab5e1,'removeCommentThread',()=>this[_0x2097('0x7')]()),this[_0x2097('0x0')](_0xdab5e1,_0x2097('0x9'),()=>this[_0x2097('0x6')]()),this[_0x2097('0x0')](_0xdab5e1,_0x2097('0xd'),()=>this[_0x2097('0xc')]()),this['listenTo'](_0xdab5e1,_0x2097('0x10'),(_0x5c0c82,_0x50355f)=>this[_0x2097('0x10')](_0x50355f)),this['listenTo'](_0xdab5e1,_0x2097('0x1'),(_0x4022e2,_0x25b18,_0x53c1d8)=>this[_0x2097('0x1')](_0x25b18,_0x53c1d8)),this[_0x2097('0x0')](_0xdab5e1,_0x2097('0xa'),(_0x23463a,_0x3b174d)=>this['removeComment'](_0x3b174d));}[_0x2097('0xe')](){this[_0x2097('0x11')][_0x2097('0xe')]();}[_0x2097('0x7')](){this[_0x2097('0x11')][_0x2097('0x7')]();}[_0x2097('0x6')](){this[_0x2097('0x11')]['isResolved']||this[_0x2097('0x11')]['resolve']();}[_0x2097('0xc')](){this[_0x2097('0x11')][_0x2097('0xb')]&&this[_0x2097('0x11')][_0x2097('0xc')]();}[_0x2097('0x10')](_0xd5766e){this[_0x2097('0x11')][_0x2097('0x10')]({'content':_0xd5766e,'authorId':this['view'][_0x2097('0x4')]['id']});}['updateComment'](_0x635e1f,_0x41621a){this[_0x2097('0x11')][_0x2097('0x3')](_0x635e1f)['update']({'content':_0x41621a});}['removeComment'](_0x27f6e3){this[_0x2097('0x11')][_0x2097('0x3')](_0x27f6e3)[_0x2097('0x7')]();}[_0x2097('0xf')](){this[_0x2097('0x8')](),this['model'][_0x2097('0x2')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39a5=['isActive','reopenCommentThread','editorReady','isResolved','change:isActive','listenTo','resolveCommentThread','cancel','_localUser','isDirty','commentsListView','value','set','_createCommentThreadInputView','submitCommentThread','commentThreadHeaderView','showInput','Reply...','focus','Reply\x20to\x20reopen\x20discussion...','placeholder','updateComment','isSubmitted','unlinkedAt','isReadOnly','removeComment','removeCommentThread','stop','Write\x20a\x20comment...','editorDestroyed','length','hasDirtyComment','destroy','CommentView','locale','_model','commentInputView','bind','commentThreadInputView','submit','editorConfig','_config','isUnlinked','addComment','element','disabledSubmit','delegate','Comment','canComment','fire','isResolvable'];(function(_0x548604,_0x39a5e8){const _0x92203e=function(_0x5bc6b7){while(--_0x5bc6b7){_0x548604['push'](_0x548604['shift']());}};_0x92203e(++_0x39a5e8);}(_0x39a5,0x1c7));const _0x9220=function(_0x548604,_0x39a5e8){_0x548604=_0x548604-0x0;let _0x92203e=_0x39a5[_0x548604];return _0x92203e;};import{View as _0x521df3}from'ckeditor5/src/ui';import _0x3e48e9 from'./commentthreadinputview';import _0x5431e7 from'./commentslistview';import _0x534502 from'./commentthreadheaderview';import{getTranslation as _0x5dbb58}from'../../../utils/common-translations';export default class Tt extends _0x521df3{constructor(_0xf5ef99,_0xf99f5d,_0x523cb2,_0x461f3f){super(_0xf5ef99),this[_0x9220('0x10')](_0x9220('0x4'),!0x1),this[_0x9220('0x10')](_0x9220('0xd'),!0x1),this['_model']=_0xf99f5d,this['_localUser']=_0x523cb2,this['_config']=_0x461f3f,this['commentThreadHeaderView']=new _0x534502(_0xf5ef99,_0xf99f5d),this[_0x9220('0x13')][_0x9220('0x32')](_0x9220('0x5'))['to'](this),this[_0x9220('0x9')](this,_0x9220('0x5'),()=>{this[_0x9220('0x16')]();}),this['commentsListView']=new _0x5431e7(_0xf5ef99,_0xf99f5d,Object['assign']({'CommentView':this[_0x9220('0x2d')][_0x9220('0x25')]},_0x461f3f)),this['commentsListView']['delegate'](_0x9220('0x1d'))['to'](this),this[_0x9220('0xe')][_0x9220('0x32')](_0x9220('0x19'))['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this[_0x9220('0xe')]['delegate'](_0x9220('0x6'))['to'](this),this[_0x9220('0xe')][_0x9220('0x32')](_0x9220('0x21'))['to'](this),this[_0x9220('0xe')][_0x9220('0x29')](_0x9220('0x4'))['to'](this),this['listenTo'](this,_0x9220('0xa'),()=>{this['focus']();}),this[_0x9220('0x10')]('length',this[_0x9220('0xe')]['length']),this[_0x9220('0x29')]('length')['to'](this[_0x9220('0xe')],_0x9220('0x22')),this[_0x9220('0x2a')]=this[_0x9220('0x11')](),this[_0x9220('0x2a')][_0x9220('0x32')](_0x9220('0x6'))['to'](this),this['commentThreadInputView'][_0x9220('0x32')](_0x9220('0x21'))['to'](this),this['on'](_0x9220('0x1d'),()=>this[_0x9220('0x16')]()),this['bind']('isDirty')['to'](this[_0x9220('0xe')],_0x9220('0x23'),this[_0x9220('0x2a')][_0x9220('0x28')],'value',(_0x4f5ed1,_0x2cb8d6)=>_0x4f5ed1||!!_0x2cb8d6),this[_0x9220('0x29')](_0x9220('0x2e'))['to'](_0xf99f5d,_0x9220('0x1b'),_0x32fa8c=>!!_0x32fa8c);}['focus'](){this[_0x9220('0x30')][_0x9220('0x16')]();}async[_0x9220('0x24')](){this[_0x9220('0xd')]=!0x1,this[_0x9220('0xe')][_0x9220('0x24')](),await this[_0x9220('0x2a')][_0x9220('0x24')](),super[_0x9220('0x24')]();}['_createCommentThreadInputView'](){const _0x3e301d=new _0x3e48e9(this[_0x9220('0x26')],this[_0x9220('0xc')],this[_0x9220('0x2d')][_0x9220('0x2c')]),_0x4c708b=_0x3e301d[_0x9220('0x28')];return _0x3e301d[_0x9220('0x29')](_0x9220('0x14'))['to'](this,'isActive',this[_0x9220('0x27')],'isReadOnly',this['_model'],_0x9220('0x1'),this[_0x9220('0x27')],'archivedAt',_0x4c708b,_0x9220('0xf'),(_0x6a0ead,_0x471359,_0x37dc9d,_0x3ecb6a,_0x5b4aa2)=>!!_0x5b4aa2||!!_0x3ecb6a&&_0x37dc9d&&!_0x471359||_0x6a0ead&&_0x37dc9d&&!_0x471359),_0x4c708b['bind'](_0x9220('0x18'))['to'](this,_0x9220('0x22'),this[_0x9220('0x27')],_0x9220('0x3'),this['_model'],_0x9220('0x7'),(_0xf8b157,_0x291476,_0x533e23)=>{let _0x593b24;return _0x593b24=_0x533e23&&_0x291476?_0x9220('0x17'):_0xf8b157?_0x9220('0x15'):_0x9220('0x20'),_0x5dbb58(this[_0x9220('0x26')],_0x593b24);}),_0x4c708b[_0x9220('0x29')]('submitLabel')['to'](this,_0x9220('0x22'),_0xeb05cd=>_0x5dbb58(this['locale'],_0xeb05cd?'Reply':_0x9220('0x0'))),_0x4c708b['on'](_0x9220('0x2b'),(_0x30b869,_0x3c173e)=>{this[_0x9220('0x2')](_0x9220('0x2f'),_0x3c173e),this[_0x9220('0x27')]['isResolved']&&this[_0x9220('0x27')][_0x9220('0x3')]&&this[_0x9220('0x2')](_0x9220('0x5'),this[_0x9220('0x27')]['id']),this[_0x9220('0x27')][_0x9220('0x1a')]||this[_0x9220('0x2')](_0x9220('0x12'));}),_0x4c708b['on'](_0x9220('0xb'),()=>{this[_0x9220('0x16')]();}),_0x4c708b[_0x9220('0x29')](_0x9220('0x31'))['to'](this[_0x9220('0x27')],_0x9220('0x1c')),_0x4c708b['on']('cancel',_0x5e8a40=>{0x0==this['length']&&(this[_0x9220('0x2')](_0x9220('0x1e')),_0x5e8a40[_0x9220('0x1f')]());}),this['on'](_0x9220('0x8'),(_0x31dbfd,_0x4f8ec8,_0x427b62)=>{_0x427b62||this['length']||_0x4c708b[_0x9220('0xf')]||this[_0x9220('0x2')](_0x9220('0x1e'));}),_0x3e301d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x82a8=['_createCommentInputView','_createCommentContentView','add','set','editorDestroyed','fire','Save','collapse','createEditor','_model','cancel','focus','editorConfig','bind','submit','destroy','maxCommentCharsWhenCollapsed','delegate','switchToDisplayMode','get','_config','createCollection','element','remove','isSystemComment','isReadOnly','expand','visibleView','content','switchToEditMode','locale','submitLabel','isEditMode','editorReady','isCollapsed','initialData','updateComment'];(function(_0x6abddb,_0x82a8b4){const _0x217356=function(_0x1afcb3){while(--_0x1afcb3){_0x6abddb['push'](_0x6abddb['shift']());}};_0x217356(++_0x82a8b4);}(_0x82a8,0x80));const _0x2173=function(_0x6abddb,_0x82a8b4){_0x6abddb=_0x6abddb-0x0;let _0x217356=_0x82a8[_0x6abddb];return _0x217356;};import{View as _0x5de479}from'ckeditor5/src/ui';import{trimHtml as _0xa3f7c5}from'ckeditor5-collaboration/src/collaboration-core';import _0x26a0b5 from'./commentcontentview';import _0x5a5446 from'./commentinputview';import{getTranslation as _0x35fdde}from'../../../utils/common-translations';export default class Yt extends _0x5de479{constructor(_0x3e94f9,_0xce3c3e,_0xece32){super(_0x3e94f9),this['_model']=_0xce3c3e,this[_0x2173('0x3')]=_0xece32,this[_0x2173('0x7')]=!!this['_config'][_0x2173('0x7')],this[_0x2173('0x17')]('isEditMode',!0x1),this[_0x2173('0x17')](_0x2173('0x11'),!0x0),this[_0x2173('0xa')]=this[_0x2173('0x4')](),this['visibleView'][_0x2173('0x16')](this[_0x2173('0x15')]());}[_0x2173('0x9')](){this[_0x2173('0x11')]=!0x1;}[_0x2173('0x1b')](){this[_0x2173('0xf')]||(this[_0x2173('0x11')]=!0x0);}[_0x2173('0x1f')](){this[_0x2173('0x5')][_0x2173('0x1f')]();}async['destroy'](){await this[_0x2173('0xa')][_0x2173('0x2')](0x0)[_0x2173('0x23')](),super[_0x2173('0x23')]();}[_0x2173('0xc')](){this[_0x2173('0xf')]||(this[_0x2173('0xf')]=!0x0,this[_0x2173('0xa')][_0x2173('0x6')](0x0)[_0x2173('0x23')](),this[_0x2173('0xa')][_0x2173('0x16')](this[_0x2173('0x14')]()));}[_0x2173('0x1')](){this[_0x2173('0xf')]&&(this[_0x2173('0xf')]=!0x1,this[_0x2173('0xa')]['remove'](0x0)[_0x2173('0x23')](),this[_0x2173('0xa')][_0x2173('0x16')](this[_0x2173('0x15')]()));}['_createCommentContentView'](){const _0xa5a39c=new _0x26a0b5(this['locale']);return _0xa5a39c[_0x2173('0x21')](_0x2173('0xb'))['to'](this[_0x2173('0x1d')],'content',this,_0x2173('0x11'),(_0x5d2d23,_0x4d3739)=>_0x4d3739?_0xa3f7c5(_0x5d2d23,{'limit':this[_0x2173('0x3')][_0x2173('0x24')]}):_0x5d2d23),_0xa5a39c;}[_0x2173('0x14')](){this[_0x2173('0x3')][_0x2173('0x20')]||(this[_0x2173('0x3')][_0x2173('0x20')]={}),this[_0x2173('0x3')][_0x2173('0x20')][_0x2173('0x12')]=this['_model'][_0x2173('0xb')];const _0x59b3b3=new _0x5a5446(this['locale'],this[_0x2173('0x3')]['editorConfig']);return _0x59b3b3['value']=this[_0x2173('0x1d')][_0x2173('0xb')],_0x59b3b3[_0x2173('0x21')]('disabledSubmit')['to'](this[_0x2173('0x1d')],_0x2173('0x8')),_0x59b3b3[_0x2173('0xe')]=_0x35fdde(this[_0x2173('0xd')],_0x2173('0x1a')),_0x59b3b3['on'](_0x2173('0x22'),(_0x264e90,_0x29a44e)=>{this[_0x2173('0x19')](_0x2173('0x13'),this[_0x2173('0x1d')]['id'],_0x29a44e),this[_0x2173('0x1')](),this[_0x2173('0x1f')]();}),_0x59b3b3['on'](_0x2173('0x1e'),()=>{this[_0x2173('0x1')](),this[_0x2173('0x1f')]();}),_0x59b3b3['once'](_0x2173('0x10'),()=>{_0x59b3b3['focus']();}),_0x59b3b3[_0x2173('0x1c')](),_0x59b3b3[_0x2173('0x0')](_0x2173('0x10'))['to'](this),_0x59b3b3[_0x2173('0x0')](_0x2173('0x18'))['to'](this),_0x59b3b3;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x118a=['setTemplate','ck-thread__comment-count','set','NUMBER_OF_COMMENTS'];(function(_0x56a0eb,_0x118a95){const _0x3d6d10=function(_0x3c8851){while(--_0x3c8851){_0x56a0eb['push'](_0x56a0eb['shift']());}};_0x3d6d10(++_0x118a95);}(_0x118a,0x1d0));const _0x3d6d=function(_0x56a0eb,_0x118a95){_0x56a0eb=_0x56a0eb-0x0;let _0x3d6d10=_0x118a[_0x56a0eb];return _0x3d6d10;};import{View as _0x4ea891}from'ckeditor5/src/ui';import{getTranslation as _0xb25614}from'../../../utils/common-translations';export default class Zt extends _0x4ea891{constructor(_0x2490ed){super(_0x2490ed);const _0x53875b=this['bindTemplate'];this[_0x3d6d('0x2')]('count',void 0x0),this[_0x3d6d('0x0')]({'tag':'li','attributes':{'class':_0x3d6d('0x1')},'children':[{'text':_0x53875b['to']('count',_0x364e7d=>_0xb25614(_0x2490ed,_0x3d6d('0x3'),_0x364e7d))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5a0a=['innerHTML','setTemplate','set','ck-annotation__content','element','ck-comment__content','content','change:content'];(function(_0xb2963e,_0x5a0a4b){var _0x82aeb9=function(_0x5414af){while(--_0x5414af){_0xb2963e['push'](_0xb2963e['shift']());}};_0x82aeb9(++_0x5a0a4b);}(_0x5a0a,0x92));var _0x82ae=function(_0xb2963e,_0x5a0a4b){_0xb2963e=_0xb2963e-0x0;var _0x82aeb9=_0x5a0a[_0xb2963e];return _0x82aeb9;};import{View as _0x127376}from'ckeditor5/src/ui';export default class Ut extends _0x127376{constructor(_0x5122b9){super(_0x5122b9),this[_0x82ae('0x0')](_0x82ae('0x4'),''),this[_0x82ae('0x7')]({'tag':'div','attributes':{'class':[_0x82ae('0x3'),_0x82ae('0x1')]}});}['render'](){super['render'](),this['on'](_0x82ae('0x5'),(_0x310b84,_0x36b683,_0x45282c)=>{this[_0x82ae('0x2')][_0x82ae('0x6')]=_0x45282c;}),this[_0x82ae('0x2')][_0x82ae('0x6')]=this['content'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5497=['Cancel','_editorConfig','stop','set','submit','length','getData','high','focusPrevious','trim','insertBefore','cancelButtonView','Esc','bindTemplate','Reply...','render','ck-comment__input-wrapper','document','label','ck-comment__input-actions--active','_isDestroyed','showButtons','focus','shift\x20+\x20tab','_createSubmitButton','setTemplate','editor','isEnabled','value','_initializeFocusCycling','_createCancelButton','editorReady','ck-comment__input-actions','placeholder','TOO_LONG_COMMENT_ALERT','submitLabel','div','extendTemplate','element','keystrokes','setData','add','Reply','firstChild','focusTracker','ck-comment__input-actions--cancel','ck-comment__input-actions--submit','create','then','forEach','execute','editorDestroyed','_editorCreationPromise','cancel','listenTo','withText','destroy','tab','disabledSubmit','change','submitButtonView','view','low','fire'];(function(_0x34c958,_0x549714){const _0x426451=function(_0x14078f){while(--_0x14078f){_0x34c958['push'](_0x34c958['shift']());}};_0x426451(++_0x549714);}(_0x5497,0x141));const _0x4264=function(_0x34c958,_0x549714){_0x34c958=_0x34c958-0x0;let _0x426451=_0x5497[_0x34c958];return _0x426451;};import{View as _0xef94a7,ViewCollection as _0x83617b,FocusCycler as _0x279886,ButtonView as _0x49e138}from'ckeditor5/src/ui';import{FocusTracker as _0x2db0ab,KeystrokeHandler as _0x458553}from'ckeditor5/src/utils';import _0x487796 from'../commenteditor/commenteditor';import{getTranslation as _0x2c7268}from'../../../utils/common-translations';export default class Xt extends _0xef94a7{constructor(_0x22d723,_0x1c05a8={}){super(_0x22d723),this[_0x4264('0x19')]=null,this[_0x4264('0x0')]=_0x1c05a8,this[_0x4264('0x26')]=new _0x458553(),this[_0x4264('0x2b')]=new _0x2db0ab(),this[_0x4264('0x2')](_0x4264('0x1b'),_0x1c05a8['initialData']||''),this['set'](_0x4264('0x39'),!0x1),this['set']('showButtons',!0x0),this[_0x4264('0x2')](_0x4264('0x20'),_0x2c7268(_0x22d723,_0x4264('0xd'))),this[_0x4264('0x2')]('submitLabel',_0x2c7268(_0x22d723,_0x4264('0x29'))),this[_0x4264('0x3b')]=this[_0x4264('0x17')](),this[_0x4264('0xa')]=this[_0x4264('0x1d')](),this[_0x4264('0x18')]({'tag':_0x4264('0x23'),'attributes':{'class':[_0x4264('0xf')]},'children':[{'tag':_0x4264('0x23'),'attributes':{'class':[_0x4264('0x1f'),this[_0x4264('0xc')]['if'](_0x4264('0x14'),_0x4264('0x12'))]},'children':[this['submitButtonView'],this[_0x4264('0xa')]]}]}),this[_0x4264('0x26')][_0x4264('0x2')](_0x4264('0xb'),(_0x328c97,_0xf64632)=>{this['cancelButtonView'][_0x4264('0x3e')](_0x4264('0x31')),_0xf64632();}),this['on'](_0x4264('0x3'),(_0xbcb177,_0x53187e)=>{_0x53187e[_0x4264('0x4')]>0xfde8?(alert(_0x2c7268(_0x22d723,_0x4264('0x21'),[_0x53187e[_0x4264('0x4')],0xfde8])),_0xbcb177[_0x4264('0x1')]()):this[_0x4264('0x19')]['setData']('');},{'priority':_0x4264('0x6')});}[_0x4264('0xe')](){super[_0x4264('0xe')](),this[_0x4264('0x26')][_0x4264('0x35')](this[_0x4264('0x25')]),this[_0x4264('0x2b')][_0x4264('0x28')](this['element']);}['createEditor'](){return this[_0x4264('0x19')]||(this[_0x4264('0x19')]=new _0x487796(this[_0x4264('0x0')]),this[_0x4264('0x33')]=this['editor'][_0x4264('0x2e')]()[_0x4264('0x2f')](()=>{if(this[_0x4264('0x13')])return;const _0x3c5f7f=this[_0x4264('0x19')];this[_0x4264('0x25')][_0x4264('0x9')](_0x3c5f7f['ui'][_0x4264('0x25')],this[_0x4264('0x25')][_0x4264('0x2a')]),_0x3c5f7f['model'][_0x4264('0x10')]['on'](_0x4264('0x3a'),()=>this[_0x4264('0x1b')]=_0x3c5f7f[_0x4264('0x5')]()),_0x3c5f7f['bind'](_0x4264('0x20'))['to'](this),this[_0x4264('0x1c')](this[_0x4264('0x19')]),this[_0x4264('0x3e')](_0x4264('0x1e'),this['editor']);})),this[_0x4264('0x33')];}[_0x4264('0x15')](){this['editor']&&this['editor'][_0x4264('0x15')]();}async[_0x4264('0x37')](){this[_0x4264('0x13')]||(this[_0x4264('0x13')]=!0x0,this[_0x4264('0x19')]&&(await this['_editorCreationPromise'],await this['editor'][_0x4264('0x37')](),this[_0x4264('0x3e')](_0x4264('0x32'),this[_0x4264('0x19')])),await super['destroy']());}[_0x4264('0x17')](){const {locale:_0x4726ff}=this,_0x17fb67=new _0x49e138(_0x4726ff);return _0x17fb67[_0x4264('0x24')]({'attributes':{'class':[_0x4264('0x2d')]}}),_0x17fb67[_0x4264('0x36')]=!0x0,_0x17fb67['bind'](_0x4264('0x11'))['to'](this,_0x4264('0x22')),_0x17fb67['on']('execute',()=>{this[_0x4264('0x3e')]('submit',this['value']);}),_0x17fb67['bind'](_0x4264('0x1a'))['to'](this,_0x4264('0x1b'),this,_0x4264('0x39'),(_0x111238,_0xf3874e)=>!_0xf3874e&&!!_0x111238[_0x4264('0x8')]()),_0x17fb67;}[_0x4264('0x1d')](){const {locale:_0x38c80b}=this,_0x53b65f=new _0x49e138(_0x38c80b);return _0x53b65f[_0x4264('0x24')]({'attributes':{'class':[_0x4264('0x2c')]}}),_0x53b65f['label']=_0x2c7268(_0x38c80b,_0x4264('0x3f')),_0x53b65f[_0x4264('0x36')]=!0x0,_0x53b65f['on'](_0x4264('0x31'),()=>{this[_0x4264('0x19')][_0x4264('0x27')](''),this['fire'](_0x4264('0x34'));}),_0x53b65f;}[_0x4264('0x1c')](_0x21c225){const _0x362acb=this[_0x4264('0x2b')],_0x4e5873=new _0x83617b();[_0x21c225['ui'][_0x4264('0x3c')],this[_0x4264('0x3b')],this[_0x4264('0xa')]][_0x4264('0x30')](_0x14afc6=>{_0x4e5873[_0x4264('0x28')](_0x14afc6),_0x362acb[_0x4264('0x28')](_0x14afc6[_0x4264('0x25')]);});const _0x7a0439=new _0x279886({'focusables':_0x4e5873,'focusTracker':_0x362acb});this['keystrokes'][_0x4264('0x2')](_0x4264('0x38'),(_0x593bbb,_0x178511)=>{_0x7a0439['focusNext'](),_0x178511();},{'priority':_0x4264('0x3d')}),this[_0x4264('0x26')][_0x4264('0x2')](_0x4264('0x16'),(_0x274107,_0x57d176)=>{_0x7a0439[_0x4264('0x7')](),_0x57d176();},{'priority':_0x4264('0x3d')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56ee=['_focusables','isActive','_focusCycler','stopPropagation','shift\x20+\x20tab','ck-comments-archive__header\x20','div','add','element','auto','ck-comments-archive__info','_focusTracker','arrowright','_keystrokes','set','isEmpty','arrowleft','ck-hidden','bindTemplate','focus','length','COMMENTS_ARCHIVE','tab','destroy','listenTo','EMPTY_COMMENTS_ARCHIVE','arrowdown','render','selectstart'];(function(_0x38fd29,_0x56ee0a){const _0x17638a=function(_0x4d4a03){while(--_0x4d4a03){_0x38fd29['push'](_0x38fd29['shift']());}};_0x17638a(++_0x56ee0a);}(_0x56ee,0x153));const _0x1763=function(_0x38fd29,_0x56ee0a){_0x38fd29=_0x38fd29-0x0;let _0x17638a=_0x56ee[_0x38fd29];return _0x17638a;};import{View as _0x1b3e20,FocusCycler as _0x70965f}from'ckeditor5/src/ui';import{FocusTracker as _0x1e29e8,KeystrokeHandler as _0x9dd497}from'ckeditor5/src/utils';import{getTranslation as _0x511bf9}from'../../../utils/common-translations';export default class K extends _0x1b3e20{constructor(_0x44b22e,_0x4ddccc){super(_0x44b22e),this[_0x1763('0x17')](_0x1763('0x18'),!_0x4ddccc[_0x1763('0x0')]),this[_0x1763('0x14')]=new _0x1e29e8(),this[_0x1763('0x16')]=new _0x9dd497(),this[_0x1763('0x9')]=_0x4ddccc,this[_0x1763('0xb')]=new _0x70965f({'focusables':this['_focusables'],'focusTracker':this[_0x1763('0x14')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0x1763('0xd'),'focusNext':_0x1763('0x2')}}),this[_0x1763('0x4')](_0x4ddccc,_0x1763('0x10'),()=>{this[_0x1763('0x18')]=!0x1;}),this[_0x1763('0x4')](_0x4ddccc,'remove',(_0x1bd38d,_0x5d58ef)=>{_0x5d58ef[_0x1763('0xa')]&&this['focus'](),_0x4ddccc[_0x1763('0x0')]||(this[_0x1763('0x18')]=!0x0);});const _0x2bdce1=this[_0x1763('0x1b')];this['setTemplate']({'tag':_0x1763('0xf'),'attributes':{'dir':_0x1763('0x12'),'class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x1763('0xe')]},'children':[{'text':_0x511bf9(_0x44b22e,_0x1763('0x1'))}]},{'tag':'div','attributes':{'class':['ck-comments-archive__content']},'children':[{'tag':'div','children':_0x4ddccc},{'tag':'p','attributes':{'class':[_0x1763('0x13'),_0x2bdce1['if'](_0x1763('0x18'),_0x1763('0x1a'),_0x2a7496=>!_0x2a7496)]},'children':[{'text':_0x511bf9(_0x44b22e,_0x1763('0x5'))}]}]}]});}[_0x1763('0x7')](){super['render'](),this[_0x1763('0x16')][_0x1763('0x4')](this[_0x1763('0x11')]);const _0x3ebb1e=_0x318230=>_0x318230[_0x1763('0xc')]();this['_keystrokes'][_0x1763('0x17')](_0x1763('0x15'),_0x3ebb1e),this[_0x1763('0x16')][_0x1763('0x17')](_0x1763('0x19'),_0x3ebb1e),this[_0x1763('0x16')][_0x1763('0x17')]('arrowup',_0x3ebb1e),this['_keystrokes']['set'](_0x1763('0x6'),_0x3ebb1e),this[_0x1763('0x4')](this[_0x1763('0x11')],_0x1763('0x8'),(_0x5a331d,_0x2a121f)=>{_0x2a121f['stopPropagation']();},{'priority':'high'});}[_0x1763('0x3')](){super[_0x1763('0x3')](),this[_0x1763('0x14')][_0x1763('0x3')](),this[_0x1763('0x16')][_0x1763('0x3')]();}[_0x1763('0x1c')](){this[_0x1763('0x11')][_0x1763('0x1c')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x510e=['createCollection','editorReady','refreshVisibleViews','change:hasDirtyComment','maxThreadTotalWeight','removeComment','authoredAt','_shouldCollapse','editorConfig','_model','_updateHasDirtyComment','editorDestroyed','resolvedBy','isEditMode','comments','resolvedCommentView','_rearrangeCollapse','delegate','focus','_config','change:isActive','CommentView','visibleViews','_handleRemoveCommentModel','resolveCommentThread','add','resolved','isActive','resolvedAt','change:isResolved','set','commentUpdated','render','_handleInfoComment','element','insert','ck-thread__comments','_calculatePosition','locale','destroy','equal','Marked\x20as\x20resolved','from','_handleNewCommentModel','weight','stopListening','remove','listenTo','maxCommentsWhenCollapsed','expand','_collapsedCommentsView','bind','setTemplate','commentViews','hasDirtyComment','length','count'];(function(_0x131ea9,_0x510ef8){const _0x5e72f4=function(_0x64221d){while(--_0x64221d){_0x131ea9['push'](_0x131ea9['shift']());}};_0x5e72f4(++_0x510ef8);}(_0x510e,0xb4));const _0x5e72=function(_0x131ea9,_0x510ef8){_0x131ea9=_0x131ea9-0x0;let _0x5e72f4=_0x510e[_0x131ea9];return _0x5e72f4;};import{View as _0x3d4918}from'ckeditor5/src/ui';import{diff as _0x12f668,Collection as _0x5c94b3}from'ckeditor5/src/utils';import{getTranslation as _0x1464a9}from'../../../utils/common-translations';import _0x1e5c85 from'./collapsedcommentsview';export default class wt extends _0x3d4918{constructor(_0x2a99a4,_0x610fbd,_0x196643){super(_0x2a99a4),this[_0x5e72('0x15')](_0x5e72('0x2d'),!0x1),this['set'](_0x5e72('0x2e'),_0x610fbd[_0x5e72('0x5')][_0x5e72('0x2e')]),this['set'](_0x5e72('0x12'),!0x1),this['_model']=_0x610fbd,this[_0x5e72('0xa')]=_0x196643,this[_0x5e72('0x2c')]=this['createCollection'](),this[_0x5e72('0xd')]=this[_0x5e72('0x30')](),this['resolvedCommentView']=null,this['_collapsedCommentsView']=new _0x1e5c85(_0x2a99a4),this[_0x5e72('0x29')][_0x5e72('0x2a')](_0x5e72('0x2f'))['to'](this,'length',_0x332c94=>_0x332c94-this[_0x5e72('0xa')][_0x5e72('0x27')]);for(const _0x3490dc of _0x610fbd[_0x5e72('0x5')])this[_0x5e72('0x22')](_0x3490dc);this[_0x5e72('0x18')](),this[_0x5e72('0x26')](_0x610fbd[_0x5e72('0x5')],_0x5e72('0x10'),(_0x2dc461,_0x572748)=>{const _0x3fb36a=this[_0x5e72('0x1c')](_0x572748);this['length']++,this['_handleNewCommentModel'](_0x572748,_0x3fb36a),this[_0x5e72('0x32')]();}),this[_0x5e72('0x26')](_0x610fbd[_0x5e72('0x5')],_0x5e72('0x25'),(_0x1f9f59,_0x130da6)=>{this[_0x5e72('0x2e')]--,this['_handleRemoveCommentModel'](_0x130da6),this[_0x5e72('0x32')]();}),this[_0x5e72('0x26')](_0x610fbd,_0x5e72('0x16'),()=>this[_0x5e72('0x32')]()),this[_0x5e72('0x26')](_0x610fbd,_0x5e72('0x14'),()=>this[_0x5e72('0x18')]()),this['on'](_0x5e72('0xb'),()=>this['refreshVisibleViews']()),this['on'](_0x5e72('0x33'),()=>this[_0x5e72('0x32')]()),this[_0x5e72('0x2b')]({'tag':'ul','attributes':{'class':[_0x5e72('0x1b')]},'children':this[_0x5e72('0xd')]});}get[_0x5e72('0x37')](){return this[_0x5e72('0x0')][_0x5e72('0x23')]>this[_0x5e72('0xa')][_0x5e72('0x34')]&&!this[_0x5e72('0x12')]&&!this[_0x5e72('0x2d')];}[_0x5e72('0x17')](){super['render'](),this[_0x5e72('0x32')]();}[_0x5e72('0x9')](){this[_0x5e72('0x19')][_0x5e72('0x9')]();}[_0x5e72('0x1e')](){this[_0x5e72('0x29')][_0x5e72('0x1e')]();for(const _0x2baf98 of this[_0x5e72('0x2c')])_0x2baf98[_0x5e72('0x1e')]();super['destroy']();}[_0x5e72('0x32')](){this[_0x5e72('0x37')]?this[_0x5e72('0x7')]():this['_rearrangeExpand']();}[_0x5e72('0x22')](_0x4912ba,_0x4dbcf2){const _0x183350=new this[(_0x5e72('0xa'))][(_0x5e72('0xc'))](this[_0x5e72('0x1d')],_0x4912ba,{'maxCommentCharsWhenCollapsed':this[_0x5e72('0xa')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x5e72('0xa')]['formatDateTime'],'editorConfig':this[_0x5e72('0xa')][_0x5e72('0x38')]});_0x183350['viewUid']=_0x4912ba['id'],_0x183350[_0x5e72('0x8')](_0x5e72('0x35'))['to'](this),_0x183350[_0x5e72('0x8')]('updateComment')['to'](this),_0x183350['delegate'](_0x5e72('0xf'))['to'](this),_0x183350[_0x5e72('0x8')](_0x5e72('0x31'))['to'](this),_0x183350[_0x5e72('0x8')](_0x5e72('0x2'))['to'](this),this['listenTo'](_0x183350,'change:isEditMode',()=>this[_0x5e72('0x1')]()),this[_0x5e72('0x2c')][_0x5e72('0x10')](_0x183350,_0x4dbcf2);}[_0x5e72('0x1c')](_0x46be93){const _0x5dd6da=this[_0x5e72('0x0')]['_findOptimalIndex'](_0x46be93);return this['resolvedCommentView']?this['resolvedCommentView'][_0x5e72('0x36')]>_0x46be93['authoredAt']?_0x5dd6da-0x1:_0x5dd6da:_0x5dd6da-0x1;}[_0x5e72('0x18')](){if(this[_0x5e72('0x0')][_0x5e72('0x3')]&&this[_0x5e72('0x0')][_0x5e72('0x13')]){const _0x58b1b0={'id':_0x5e72('0x11'),'author':this[_0x5e72('0x0')][_0x5e72('0x3')],'authoredAt':this['_model'][_0x5e72('0x13')],'content':_0x1464a9(this[_0x5e72('0x1d')],_0x5e72('0x20')),'attributes':{}};this['resolvedCommentView']=new this[(_0x5e72('0xa'))][(_0x5e72('0xc'))](this[_0x5e72('0x1d')],_0x58b1b0,{'maxCommentCharsWhenCollapsed':this[_0x5e72('0xa')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x5e72('0xa')]['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this[_0x5e72('0x2c')][_0x5e72('0x10')](this[_0x5e72('0x6')],this['_model']['_findOptimalIndex'](_0x58b1b0));}else this['resolvedCommentView']&&(this[_0x5e72('0x2c')]['remove'](this['resolvedCommentView']),this[_0x5e72('0x6')][_0x5e72('0x1e')](),this[_0x5e72('0x6')]=null);this[_0x5e72('0x32')]();}[_0x5e72('0xe')](_0x1b60a0){const _0x4d4834=this[_0x5e72('0x2c')][_0x5e72('0x25')](_0x1b60a0['id']);this[_0x5e72('0x24')](_0x4d4834),_0x4d4834['isEditMode']&&this[_0x5e72('0x1')](),_0x4d4834['destroy']();}[_0x5e72('0x1')](){this[_0x5e72('0x2d')]=Array['from'](this[_0x5e72('0x2c')])['some'](_0x134728=>_0x134728[_0x5e72('0x4')]);}[_0x5e72('0x7')](){const _0x30a7a9=function(_0x5a7999){const _0x142253=new _0x5c94b3();for(const _0x225520 of _0x5a7999)_0x142253[_0x5e72('0x10')](_0x225520);return _0x142253;}(this[_0x5e72('0x2c')]),_0x512d57=this[_0x5e72('0x29')][_0x5e72('0x2f')];for(let _0x45a38c=0x1;_0x45a38c<=_0x512d57;_0x45a38c++)_0x30a7a9['remove'](0x1);for(const _0x3f964b of _0x30a7a9)_0x3f964b['collapse']();_0x512d57>0x0&&_0x30a7a9[_0x5e72('0x10')](this['_collapsedCommentsView'],0x1),ss(_0x12f668(Array[_0x5e72('0x21')](this[_0x5e72('0xd')]),Array[_0x5e72('0x21')](_0x30a7a9)),this[_0x5e72('0xd')],_0x30a7a9);}['_rearrangeExpand'](){ss(_0x12f668(Array[_0x5e72('0x21')](this[_0x5e72('0xd')]),Array[_0x5e72('0x21')](this[_0x5e72('0x2c')])),this[_0x5e72('0xd')],this[_0x5e72('0x2c')]);for(const _0x58039d of this[_0x5e72('0xd')])_0x58039d[_0x5e72('0x28')]();}}function ss(_0x2d8d53,_0x12d752,_0x18a29b){let _0x3a6c13=0x0;for(const _0x54f984 of _0x2d8d53)switch(_0x54f984){case _0x5e72('0x1a'):_0x12d752[_0x5e72('0x10')](_0x18a29b['get'](_0x3a6c13),_0x3a6c13),_0x3a6c13++;break;case'delete':_0x12d752[_0x5e72('0x25')](_0x3a6c13);break;case _0x5e72('0x1f'):_0x3a6c13++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cfa=['ck-thread__header','isEnabled','ck-context--quotes','_model','_trimContextValue','isResolvable','substring','div','classList','Comment\x20was\x20made\x20on\x20an\x20element','mouseenter','scrollWidth','tooltip','element','label','ck-context','context','overlay','bind','lastIndexOf','span','.ck-context__value','add','contextValue','querySelector','setTemplate','Reopen','...','value','offsetWidth','bindTemplate','ck-annotation__actions','_createReopenButton','locale','reopenButtonView','listenTo','remove','isVisible','ck-context__value','execute','render','reopenCommentThread','mouseleave'];(function(_0x1fc5d4,_0x4cfa7c){const _0x59f05e=function(_0x3675ad){while(--_0x3675ad){_0x1fc5d4['push'](_0x1fc5d4['shift']());}};_0x59f05e(++_0x4cfa7c);}(_0x4cfa,0xe9));const _0x59f0=function(_0x1fc5d4,_0x4cfa7c){_0x1fc5d4=_0x1fc5d4-0x0;let _0x59f05e=_0x4cfa[_0x1fc5d4];return _0x59f05e;};import{View as _0xeb7aab,ButtonView as _0xea2b7}from'ckeditor5/src/ui';import{getTranslation as _0xb1ad44}from'../../../utils/common-translations';import _0x490b41 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0xeb7aab{constructor(_0x1531e0,_0x2cb774){super(_0x1531e0);const _0x5df9d8=this[_0x59f0('0xc')];this[_0x59f0('0x1c')]=_0x2cb774,this[_0x59f0('0x10')]=this[_0x59f0('0xe')](),this[_0x59f0('0x0')]('hasContext')['to'](this[_0x59f0('0x1c')],_0x59f0('0x29'),_0x504a21=>!!_0x504a21),this[_0x59f0('0x0')]('contextValue')['to'](this[_0x59f0('0x1c')],_0x59f0('0x29'),_0x55dded=>_0x55dded&&_0x55dded[_0x59f0('0xa')]?this['_trimContextValue'](_0x55dded['value']):_0xb1ad44(this[_0x59f0('0xf')],_0x59f0('0x22'))),this[_0x59f0('0x7')]({'tag':_0x59f0('0x20'),'attributes':{'class':[_0x59f0('0x19')]},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':_0x59f0('0x20'),'attributes':{'class':[_0x59f0('0x28'),_0x5df9d8['if']('hasContext',_0x59f0('0x1b'))]},'children':[{'tag':_0x59f0('0x2'),'attributes':{'class':[_0x59f0('0x14')]},'children':[{'text':_0x5df9d8['to'](_0x59f0('0x5'))}]}]}]},{'tag':_0x59f0('0x20'),'attributes':{'class':[_0x59f0('0xd')]},'children':[this[_0x59f0('0x10')]]}]});}[_0x59f0('0x16')](){super[_0x59f0('0x16')](),this['_attachContextActions']();}['_createReopenButton'](){const _0x4ab0bd=new _0xea2b7(this[_0x59f0('0xf')]);return _0x4ab0bd[_0x59f0('0x27')]=_0xb1ad44(this[_0x59f0('0xf')],'Reopen'),_0x4ab0bd[_0x59f0('0x25')]=_0xb1ad44(this[_0x59f0('0xf')],_0x59f0('0x8')),_0x4ab0bd['icon']=_0x490b41,_0x4ab0bd['bind'](_0x59f0('0x1a'))['to'](this[_0x59f0('0x1c')],'isReadOnly',_0x22047b=>!_0x22047b),_0x4ab0bd['bind'](_0x59f0('0x13'))['to'](this['_model'],_0x59f0('0x1e'),this['_model'],'isResolved',(_0xb9d6b1,_0x2e11f0)=>_0xb9d6b1&&_0x2e11f0),_0x4ab0bd['on'](_0x59f0('0x15'),()=>{this['fire'](_0x59f0('0x17'),this[_0x59f0('0x1c')]['id']);}),_0x4ab0bd;}[_0x59f0('0x1d')](_0x57be27){if(_0x57be27['length']<0x96)return _0x57be27;const _0x28fc25=_0x57be27[_0x59f0('0x1')]('\x20',0x93);return _0x57be27[_0x59f0('0x1f')](0x0,_0x28fc25>-0x1?_0x28fc25:0x93)+_0x59f0('0x9');}['_attachContextActions'](){const _0x5bd0d0=this[_0x59f0('0x26')]['querySelector']('.ck-context'),_0x48f8ff=_0x5bd0d0[_0x59f0('0x6')](_0x59f0('0x3'));this[_0x59f0('0x11')](_0x5bd0d0,_0x59f0('0x23'),()=>{_0x48f8ff[_0x59f0('0xb')]<_0x48f8ff[_0x59f0('0x24')]&&_0x5bd0d0[_0x59f0('0x21')][_0x59f0('0x4')](_0x59f0('0x2a'));}),this[_0x59f0('0x11')](_0x5bd0d0,_0x59f0('0x18'),()=>{_0x5bd0d0[_0x59f0('0x21')][_0x59f0('0x12')](_0x59f0('0x2a'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x19d6=['ck-thread__user','bindTemplate','change:showInput','extendTemplate','ck-comment__input-container--active','commentInputView','ck-comment__input-container','div','delegate','value','then','setTemplate','userView','showInput','destroy','bind','ck-thread__input','isFocused','focusTracker','createEditor','set'];(function(_0x2ec5a5,_0x19d6c0){var _0x3462a0=function(_0x18f315){while(--_0x18f315){_0x2ec5a5['push'](_0x2ec5a5['shift']());}};_0x3462a0(++_0x19d6c0);}(_0x19d6,0x128));var _0x3462=function(_0x2ec5a5,_0x19d6c0){_0x2ec5a5=_0x2ec5a5-0x0;var _0x3462a0=_0x19d6[_0x2ec5a5];return _0x3462a0;};import{View as _0x2f6a95}from'ckeditor5/src/ui';import _0x234a02 from'./commentinputview';import{UserView as _0x115fe7}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x2f6a95{constructor(_0x41e42c,_0x1b059d,_0x4e2f99){super(_0x41e42c),this['commentInputView']=new _0x234a02(_0x41e42c,_0x4e2f99),this[_0x3462('0x3')][_0x3462('0xd')]('showButtons')['to'](this[_0x3462('0x3')][_0x3462('0x10')],_0x3462('0xf'),this[_0x3462('0x3')],_0x3462('0x7'),(_0x2919c5,_0x4b4e5b)=>_0x2919c5||!!_0x4b4e5b),this[_0x3462('0x12')](_0x3462('0xb'),!0x1),this['on'](_0x3462('0x0'),()=>{this[_0x3462('0xb')]&&!this[_0x3462('0x3')]['editor']&&this[_0x3462('0x3')][_0x3462('0x11')]();}),this[_0x3462('0x3')]['delegate']('editorReady')['to'](this),this['commentInputView'][_0x3462('0x6')]('editorDestroyed')['to'](this),this[_0x3462('0xa')]=new _0x115fe7(_0x41e42c,_0x1b059d),this[_0x3462('0xa')][_0x3462('0x1')]({'attributes':{'class':_0x3462('0x13')}}),this['commentInputView'][_0x3462('0x1')]({'attributes':{'class':_0x3462('0xe')}}),this[_0x3462('0x9')]({'tag':_0x3462('0x5'),'attributes':{'class':[_0x3462('0x4'),this[_0x3462('0x14')]['if'](_0x3462('0xb'),_0x3462('0x2'))]},'children':[this['userView'],this['commentInputView']]});}['destroy'](){return this[_0x3462('0x3')][_0x3462('0xc')]()[_0x3462('0x8')](()=>super[_0x3462('0xc')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x521e=['add','_model','tooltip','_bindFirstCommentView','Write\x20a\x20comment...','ck-reset_all-excluded','resolveButton','.ck-thread__container','has','locale','ck-thread--active','set','fire','Resolve','actionIndicator','unbind','ck-thread--remove-confirmation','length','icon','ck-thread--unlinked','isVisible','containerElement','cancelConfirm','then','commentsListView','render','commentThreadChildren','execute','bind','get','ck-thread','_boundFirstCommentView','isUnlinked','isReadOnly','isResolved','listenTo','change:isReadOnly','addMany','archivedAt','_cancelAllConfirms','extendTemplate','high','createCollection','commentViews','_createResolveButton','isResolvable','ck-comment--resolve','Delete\x20comment\x20thread?','ck-thread__container','change:isActive','showConfirm','isActive','isEnabled','commentThreadInputView','querySelector','isConfirm','bindTemplate','remove','getTemplate','commentThreadHeaderView'];(function(_0x3fff59,_0x521e2b){const _0xfa9bb7=function(_0x3478c5){while(--_0x3478c5){_0x3fff59['push'](_0x3fff59['shift']());}};_0xfa9bb7(++_0x521e2b);}(_0x521e,0x171));const _0xfa9b=function(_0x3fff59,_0x521e2b){_0x3fff59=_0x3fff59-0x0;let _0xfa9bb7=_0x521e[_0x3fff59];return _0xfa9bb7;};import{ConfirmMixin as _0x4ff187}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x463cd4}from'ckeditor5/src/ui';import{icons as _0x5466be}from'ckeditor5/src/core';import _0x2031ad from'./basecommentthreadview';import{getTranslation as _0x3417fa}from'../../../utils/common-translations';export default class lt extends _0x4ff187(_0x2031ad){constructor(_0xfc4784,_0x4f20f7,_0x3b6ccd,_0x25c31a){super(_0xfc4784,_0x4f20f7,_0x3b6ccd,_0x25c31a),this[_0xfa9b('0x11')]=this[_0xfa9b('0x21')](),this[_0xfa9b('0x11')][_0xfa9b('0x1c')]([this[_0xfa9b('0xf')],this[_0xfa9b('0x2c')]]),this[_0xfa9b('0x34')][_0xfa9b('0x1d')]&&this['commentThreadChildren'][_0xfa9b('0x33')](this[_0xfa9b('0x32')],0x0),this[_0xfa9b('0x34')]['on']('change:archivedAt',(_0x2e772d,_0x539e6d,_0x4faa8d)=>{_0x4faa8d?this[_0xfa9b('0x11')][_0xfa9b('0x3b')](this[_0xfa9b('0x32')])||this[_0xfa9b('0x11')]['add'](this[_0xfa9b('0x32')],0x0):this[_0xfa9b('0x11')]['remove'](this[_0xfa9b('0x32')]);}),this[_0xfa9b('0x2')]('actionIndicator',null),this[_0xfa9b('0xc')]=null,this['_boundFirstCommentView']=null,this[_0xfa9b('0x0')]=_0xfc4784,this[_0xfa9b('0x39')]=this[_0xfa9b('0x23')](),this['setTemplate'](this[_0xfa9b('0x31')]()),this['on'](_0xfa9b('0x28'),(_0x43f6c5,_0x312551,_0x5335e8)=>{_0x5335e8||this[_0xfa9b('0x1e')]();}),this['listenTo'](this[_0xfa9b('0x34')],_0xfa9b('0x1b'),(_0xa12afa,_0xb93d46,_0x4cbb8d)=>{_0x4cbb8d&&this[_0xfa9b('0x1e')]();}),this[_0xfa9b('0x8')]>0x0&&this['_bindFirstCommentView'](),this[_0xfa9b('0x1a')](this['commentsListView'][_0xfa9b('0x22')],'add',()=>{this[_0xfa9b('0x36')]();});}[_0xfa9b('0x31')](){const _0x3d5db8=this[_0xfa9b('0x2f')];return{'tag':'div','attributes':{'class':[_0xfa9b('0x15'),_0xfa9b('0x38'),_0x3d5db8['if'](_0xfa9b('0x2a'),_0xfa9b('0x1')),_0x3d5db8['if'](_0xfa9b('0x17'),_0xfa9b('0xa')),_0x3d5db8['if'](_0xfa9b('0x2e'),_0xfa9b('0x7')),_0x3d5db8['to']('actionIndicator',_0x13680d=>_0x13680d?'ck-thread--'+_0x13680d:'')],'data-thread-id':this[_0xfa9b('0x34')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':_0xfa9b('0x27')},'children':this[_0xfa9b('0x11')]}]};}[_0xfa9b('0x10')](){super[_0xfa9b('0x10')](),this[_0xfa9b('0xc')]=this['element'][_0xfa9b('0x2d')](_0xfa9b('0x3a'));}[_0xfa9b('0x1e')](){this['cancelConfirm']();for(const _0x11669e of this[_0xfa9b('0xf')][_0xfa9b('0x22')])_0x11669e[_0xfa9b('0xd')]();}['_bindFirstCommentView'](){const {locale:_0x11b724}=this,_0x8de822=this[_0xfa9b('0xf')][_0xfa9b('0x22')][_0xfa9b('0x14')](0x0);_0x8de822===this[_0xfa9b('0x16')]||_0x8de822['isSystemComment']||(this['_boundFirstCommentView']=_0x8de822,this[_0xfa9b('0x6')](_0xfa9b('0x5')),this[_0xfa9b('0x13')](_0xfa9b('0x5'))['to'](_0x8de822,_0xfa9b('0x5'),_0x41c84e=>_0xfa9b('0x30')===_0x41c84e?_0xfa9b('0x30'):null),_0x8de822['placeholder']=_0x3417fa(_0x11b724,_0xfa9b('0x37')),_0x8de822['removeButton']['on'](_0xfa9b('0x12'),_0x39af84=>{_0x39af84['stop'](),this[_0xfa9b('0x29')](_0x3417fa(_0x11b724,_0xfa9b('0x26')),this[_0xfa9b('0xc')])[_0xfa9b('0xe')](()=>{this[_0xfa9b('0x3')]('removeCommentThread');});},{'priority':_0xfa9b('0x20')}),_0x8de822['actionBar'][_0xfa9b('0x33')](this['resolveButton'],0x0));}[_0xfa9b('0x23')](){const _0x25892e=new _0x463cd4(this['locale']);return _0x25892e['label']=_0x3417fa(this[_0xfa9b('0x0')],'Resolve'),_0x25892e[_0xfa9b('0x35')]=_0x3417fa(this['locale'],_0xfa9b('0x4')),_0x25892e[_0xfa9b('0x9')]=_0x5466be['check'],_0x25892e[_0xfa9b('0x1f')]({'attributes':{'class':_0xfa9b('0x25')}}),_0x25892e[_0xfa9b('0x13')](_0xfa9b('0x2b'))['to'](this[_0xfa9b('0x34')],_0xfa9b('0x18'),_0x14724b=>!_0x14724b),_0x25892e['bind'](_0xfa9b('0xb'))['to'](this[_0xfa9b('0x34')],_0xfa9b('0x24'),this[_0xfa9b('0x34')],_0xfa9b('0x19'),(_0x2c5c25,_0xe8ab49)=>_0x2c5c25&&!_0xe8ab49),_0x25892e['on']('execute',()=>{this[_0xfa9b('0x3')]('resolveCommentThread',this[_0xfa9b('0x34')]['id']);}),_0x25892e;}}
|