@ckeditor/ckeditor5-comments 0.0.0-nightly-20230711.0 → 0.0.0-nightly-20230712.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 _0x38cf=['name','then','ready','end','change:placeholder','get','config','placeholder','initPlugins','defaultPlugins','assign','change','_updatePlaceholder','editing','destroy','setSelection','create','fire','plugins','low','getRoot','childCount','focus','init','model','view','createRoot','initialData','document','placeholderElement','data','getChild'];(function(_0x24d544,_0x38cf08){const _0x158fff=function(_0x3d9026){while(--_0x3d9026){_0x24d544['push'](_0x24d544['shift']());}};_0x158fff(++_0x38cf08);}(_0x38cf,0xfe));const _0x158f=function(_0x24d544,_0x38cf08){_0x24d544=_0x24d544-0x0;let _0x158fff=_0x38cf[_0x24d544];return _0x158fff;};import{Editor as _0x493d93,DataApiMixin as _0x5b57ec}from'ckeditor5/src/core';import _0x362e95 from'./commenteditorui';import{ObservableMixin as _0x7d3b18}from'ckeditor5/src/utils';import{enablePlaceholder as _0x4918a2,disablePlaceholder as _0x35fb8d}from'ckeditor5/src/engine';import{Clipboard as _0x42e1e0}from'ckeditor5/src/clipboard';import{Enter as _0x1d44ef,ShiftEnter as _0x40421e}from'ckeditor5/src/enter';import{SelectAll as _0xe3b725}from'ckeditor5/src/select-all';import{Typing as _0x5ab37a}from'ckeditor5/src/typing';import{Undo as _0x13ff27}from'ckeditor5/src/undo';import{Paragraph as _0x3de24a}from'ckeditor5/src/paragraph';const Kt=[_0x42e1e0,_0x1d44ef,_0x40421e,_0xe3b725,_0x5ab37a,_0x13ff27,_0x3de24a];export default class Lt extends _0x7d3b18(_0x5b57ec(_0x493d93)){constructor(_0x3b659b={}){(_0x3b659b=Object[_0x158f('0xc')]({},_0x3b659b))[_0x158f('0x14')]||(_0x3b659b[_0x158f('0x14')]=Lt[_0x158f('0xb')]),super(_0x3b659b),this['ui']=new _0x362e95(this),this['set'](_0x158f('0x9'),''),this[_0x158f('0x1a')]['document']['on'](_0x158f('0xd'),()=>this[_0x158f('0xe')](),{'priority':_0x158f('0x15')}),this['on'](_0x158f('0x6'),()=>this[_0x158f('0xe')]()),this[_0x158f('0x1a')]['document'][_0x158f('0x1c')]();}[_0x158f('0x12')](){const _0x2db326=this[_0x158f('0x8')][_0x158f('0x7')](_0x158f('0x1d'))||'';return this[_0x158f('0xa')]()['then'](()=>this['ui'][_0x158f('0x19')]())[_0x158f('0x3')](()=>this[_0x158f('0x0')][_0x158f('0x19')](_0x2db326))[_0x158f('0x3')](()=>this[_0x158f('0x13')](_0x158f('0x4')));}[_0x158f('0x10')](){return super[_0x158f('0x10')]()[_0x158f('0x3')](()=>this['ui'][_0x158f('0x10')]());}[_0x158f('0x18')](){this[_0x158f('0x1a')][_0x158f('0xd')](_0x1c5b73=>{const _0x9b75=this['model'][_0x158f('0x1e')][_0x158f('0x16')](),_0x27d297=_0x9b75&&_0x9b75[_0x158f('0x1')](_0x9b75[_0x158f('0x17')]-0x1);_0x1c5b73[_0x158f('0x11')](_0x27d297,_0x158f('0x5')),this['editing']['view'][_0x158f('0x18')]();});}[_0x158f('0xe')](){const _0x236faa=this[_0x158f('0xf')][_0x158f('0x1b')],_0x2b51bb=_0x236faa[_0x158f('0x1e')][_0x158f('0x16')](),_0x4e7f4b=_0x2b51bb[_0x158f('0x1')](0x0);_0x2b51bb[_0x158f('0x17')]>0x1||!_0x4e7f4b||'p'!=_0x4e7f4b[_0x158f('0x2')]?this['placeholderElement']&&(_0x35fb8d(_0x236faa,this[_0x158f('0x1f')]),this[_0x158f('0x1f')]=void 0x0):(_0x4918a2({'view':_0x236faa,'element':_0x4e7f4b,'text':this[_0x158f('0x9')],'keepOnFocus':!0x0}),this[_0x158f('0x1f')]=_0x4e7f4b);}}Lt[_0x158f('0xb')]=Kt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6f58=['editing','element','name','rootName','fire','view','ready','render','setEditableElement','isFocused','attachDomRoot','editor','getRoot','destroy','locale','bind'];(function(_0x5d3419,_0x6f58c){const _0x23cfdf=function(_0x1923aa){while(--_0x1923aa){_0x5d3419['push'](_0x5d3419['shift']());}};_0x23cfdf(++_0x6f58c);}(_0x6f58,0x1eb));const _0x23cf=function(_0x5d3419,_0x6f58c){_0x5d3419=_0x5d3419-0x0;let _0x23cfdf=_0x6f58[_0x5d3419];return _0x23cfdf;};import{EditorUI as _0x49d15c}from'ckeditor5/src/ui';import _0x32d2a9 from'./commenteditoruiview';export default class jt extends _0x49d15c{constructor(_0x57b2f9){super(_0x57b2f9),this[_0x23cf('0xa')]=new _0x32d2a9(_0x57b2f9[_0x23cf('0x3')],_0x57b2f9[_0x23cf('0x5')]['view']);}get[_0x23cf('0x6')](){return this[_0x23cf('0xa')]['element'];}['init'](){const _0x1b028a=this[_0x23cf('0x0')][_0x23cf('0x5')][_0x23cf('0xa')],_0x4086cf=this['view']['editable'],_0x630d98=_0x1b028a['document'][_0x23cf('0x1')]();_0x4086cf[_0x23cf('0x7')]=_0x630d98[_0x23cf('0x8')],this[_0x23cf('0xa')][_0x23cf('0xc')]();const _0x128afe=_0x4086cf[_0x23cf('0x6')];this[_0x23cf('0xd')](_0x4086cf[_0x23cf('0x7')],_0x128afe),this[_0x23cf('0xa')]['editable'][_0x23cf('0x4')](_0x23cf('0xe'))['to'](this['focusTracker']),_0x1b028a[_0x23cf('0xf')](_0x128afe),this[_0x23cf('0x9')](_0x23cf('0xb'));}['destroy'](){super[_0x23cf('0x2')](),this[_0x23cf('0xa')][_0x23cf('0x2')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa18c=['uiLanguage','ck-editor__main','setTemplate','Comment\x20editor','ck-voice-label','_createVoiceLabel','focus','render','div','_voiceLabelView','main','element','extendTemplate','comment','createCollection','text','presentation','ck-comment__input','uiLanguageDirection','editable'];(function(_0xeb144d,_0xa18c17){const _0x1043bb=function(_0x3efbfb){while(--_0x3efbfb){_0xeb144d['push'](_0xeb144d['shift']());}};_0x1043bb(++_0xa18c17);}(_0xa18c,0xa1));const _0x1043=function(_0xeb144d,_0xa18c17){_0xeb144d=_0xeb144d-0x0;let _0x1043bb=_0xa18c[_0xeb144d];return _0x1043bb;};import{InlineEditableUIView as _0x4967bf,EditorUIView as _0x552a59,LabelView as _0x5d880b}from'ckeditor5/src/ui';import{uid as _0x32e971}from'ckeditor5/src/utils';import{getTranslation as _0x3978e6}from'../../../utils/common-translations';export default class Nt extends _0x552a59{constructor(_0x49c282,_0xb06903){super(_0x49c282);const _0x3e608b=_0x32e971();this[_0x1043('0x9')]=this[_0x1043('0xd')](),this['editable']=new _0x4967bf(_0x49c282,_0xb06903),this[_0x1043('0x8')]=this[_0x1043('0x4')](_0x3e608b,_0x49c282),this[_0x1043('0x1')]({'tag':_0x1043('0x7'),'attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners',_0x1043('0x10')],'role':_0x1043('0xc'),'dir':_0x49c282[_0x1043('0x11')],'lang':_0x49c282[_0x1043('0x13')],'aria-labelledby':'cke-editor__aria-label_'+_0x3e608b},'children':[this[_0x1043('0x8')],{'tag':'div','attributes':{'class':_0x1043('0x0'),'role':_0x1043('0xf')},'children':this[_0x1043('0x9')]}]});}[_0x1043('0x6')](){super[_0x1043('0x6')](),this[_0x1043('0x9')]['add'](this[_0x1043('0x12')]);}[_0x1043('0x5')](){this['editable'][_0x1043('0xa')]['focus']();}[_0x1043('0x4')](_0x1e83d3,_0x1c215b){const _0x46248f=new _0x5d880b();return _0x46248f[_0x1043('0xe')]=_0x3978e6(_0x1c215b,_0x1043('0x2')),_0x46248f[_0x1043('0xb')]({'attributes':{'id':'ck-editor__aria-label_'+_0x1e83d3,'class':_0x1043('0x3')}}),_0x46248f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5c2d=['removeComment','submitCommentThread','view','resolveCommentThread','_isAttached','addComment','stopListening','resolve','isResolved','listenTo','submit','update','getComment','remove','reopen','updateComment','model'];(function(_0x16a53f,_0x5c2d50){var _0xf2c709=function(_0x534d0c){while(--_0x534d0c){_0x16a53f['push'](_0x16a53f['shift']());}};_0xf2c709(++_0x5c2d50);}(_0x5c2d,0xc3));var _0xf2c7=function(_0x16a53f,_0x5c2d50){_0x16a53f=_0x16a53f-0x0;var _0xf2c709=_0x5c2d[_0x16a53f];return _0xf2c709;};import{ObservableMixin as _0x413fe6}from'ckeditor5/src/utils';export default class ct extends _0x413fe6(){constructor(_0x1c019d,_0x4f946f){super(),this['model']=_0x1c019d,this['model'][_0xf2c7('0xd')]=!0x0,this[_0xf2c7('0xb')]=_0x4f946f,this[_0xf2c7('0x1')](_0x4f946f,_0xf2c7('0xa'),()=>this[_0xf2c7('0x2')]()),this['listenTo'](_0x4f946f,'removeCommentThread',()=>this[_0xf2c7('0x5')]()),this[_0xf2c7('0x1')](_0x4f946f,_0xf2c7('0xc'),()=>this[_0xf2c7('0x10')]()),this[_0xf2c7('0x1')](_0x4f946f,'reopenCommentThread',()=>this[_0xf2c7('0x6')]()),this['listenTo'](_0x4f946f,_0xf2c7('0xe'),(_0x5d9923,_0x230787)=>this[_0xf2c7('0xe')](_0x230787)),this['listenTo'](_0x4f946f,_0xf2c7('0x7'),(_0x21197a,_0x8922ba,_0x235378)=>this[_0xf2c7('0x7')](_0x8922ba,_0x235378)),this[_0xf2c7('0x1')](_0x4f946f,_0xf2c7('0x9'),(_0x3e67ba,_0x359542)=>this[_0xf2c7('0x9')](_0x359542));}[_0xf2c7('0x2')](){this['model']['submit']();}[_0xf2c7('0x5')](){this[_0xf2c7('0x8')]['remove']();}[_0xf2c7('0x10')](){this[_0xf2c7('0x8')][_0xf2c7('0x0')]||this[_0xf2c7('0x8')]['resolve']();}[_0xf2c7('0x6')](){this['model'][_0xf2c7('0x0')]&&this[_0xf2c7('0x8')][_0xf2c7('0x6')]();}[_0xf2c7('0xe')](_0x100c8d){this['model']['addComment']({'content':_0x100c8d,'authorId':this[_0xf2c7('0xb')]['_localUser']['id']});}[_0xf2c7('0x7')](_0x2b81cc,_0x506029){this[_0xf2c7('0x8')][_0xf2c7('0x4')](_0x2b81cc)[_0xf2c7('0x3')]({'content':_0x506029});}[_0xf2c7('0x9')](_0x2cb82f){this[_0xf2c7('0x8')][_0xf2c7('0x4')](_0x2cb82f)[_0xf2c7('0x5')]();}['destroy'](){this[_0xf2c7('0xf')](),this[_0xf2c7('0x8')]['_isAttached']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5544=['value','_createCommentThreadInputView','resolveCommentThread','submit','commentsListView','Reply...','updateComment','_model','hasDirtyComment','assign','editorDestroyed','editorConfig','commentThreadHeaderView','isResolved','delegate','change:isActive','length','stop','editorReady','isDirty','destroy','_localUser','set','commentInputView','element','showInput','commentThreadInputView','focus','_config','removeCommentThread','isSubmitted','placeholder','Reply','isActive','reopenCommentThread','CommentView','removeComment','bind','isReadOnly','fire','cancel','Comment','isResolvable','locale'];(function(_0x5f09b3,_0x5544d3){const _0x30c61a=function(_0x5408d4){while(--_0x5408d4){_0x5f09b3['push'](_0x5f09b3['shift']());}};_0x30c61a(++_0x5544d3);}(_0x5544,0x7c));const _0x30c6=function(_0x5f09b3,_0x5544d3){_0x5f09b3=_0x5f09b3-0x0;let _0x30c61a=_0x5544[_0x5f09b3];return _0x30c61a;};import{View as _0x2991f2}from'ckeditor5/src/ui';import _0xd139c1 from'./commentthreadinputview';import _0x348782 from'./commentslistview';import _0x456250 from'./commentthreadheaderview';import{getTranslation as _0x5ef696}from'../../../utils/common-translations';export default class Tt extends _0x2991f2{constructor(_0xe6bcdb,_0x572dcb,_0x5bdfec,_0x261fcb){super(_0xe6bcdb),this[_0x30c6('0x1e')](_0x30c6('0x29'),!0x1),this[_0x30c6('0x1e')](_0x30c6('0x1b'),!0x1),this[_0x30c6('0xf')]=_0x572dcb,this[_0x30c6('0x1d')]=_0x5bdfec,this[_0x30c6('0x24')]=_0x261fcb,this[_0x30c6('0x14')]=new _0x456250(_0xe6bcdb,_0x572dcb),this[_0x30c6('0x14')][_0x30c6('0x16')](_0x30c6('0x2a'))['to'](this),this['commentsListView']=new _0x348782(_0xe6bcdb,_0x572dcb,Object[_0x30c6('0x11')]({'CommentView':this[_0x30c6('0x24')][_0x30c6('0x2b')]},_0x261fcb)),this[_0x30c6('0xc')][_0x30c6('0x16')](_0x30c6('0x0'))['to'](this),this[_0x30c6('0xc')][_0x30c6('0x16')](_0x30c6('0xe'))['to'](this),this[_0x30c6('0xc')][_0x30c6('0x16')](_0x30c6('0xa'))['to'](this),this[_0x30c6('0xc')]['delegate'](_0x30c6('0x1a'))['to'](this),this[_0x30c6('0xc')][_0x30c6('0x16')](_0x30c6('0x12'))['to'](this),this['commentsListView'][_0x30c6('0x1')](_0x30c6('0x29'))['to'](this),this[_0x30c6('0x1e')]('length',this[_0x30c6('0xc')]['length']),this[_0x30c6('0x1')](_0x30c6('0x18'))['to'](this[_0x30c6('0xc')],_0x30c6('0x18')),this['commentThreadInputView']=this[_0x30c6('0x9')](),this[_0x30c6('0x22')][_0x30c6('0x16')]('editorReady')['to'](this),this[_0x30c6('0x22')][_0x30c6('0x16')](_0x30c6('0x12'))['to'](this),this['on'](_0x30c6('0x0'),()=>this[_0x30c6('0x23')]()),this[_0x30c6('0x1')](_0x30c6('0x1b'))['to'](this[_0x30c6('0xc')],_0x30c6('0x10'),this['commentThreadInputView'][_0x30c6('0x1f')],_0x30c6('0x8'),(_0x1b1bad,_0x144f27)=>_0x1b1bad||!!_0x144f27);}[_0x30c6('0x23')](){this[_0x30c6('0x20')][_0x30c6('0x23')]();}[_0x30c6('0x1c')](){this[_0x30c6('0x1b')]=!0x1,this['commentsListView'][_0x30c6('0x1c')](),this[_0x30c6('0x22')][_0x30c6('0x1c')](),super['destroy']();}[_0x30c6('0x9')](){const _0x1a1dd6=new _0xd139c1(this['locale'],this[_0x30c6('0x1d')],this[_0x30c6('0x24')][_0x30c6('0x13')]),_0x4840ed=_0x1a1dd6[_0x30c6('0x1f')];return _0x1a1dd6[_0x30c6('0x1')](_0x30c6('0x21'))['to'](this,'isActive',this[_0x30c6('0xf')],_0x30c6('0x2'),this[_0x30c6('0xf')],_0x30c6('0x15'),_0x4840ed,_0x30c6('0x8'),(_0x5e82e8,_0x6d57a5,_0x15af6a,_0x3cfe46)=>!!_0x3cfe46||_0x15af6a&&!_0x6d57a5||_0x5e82e8&&!_0x6d57a5),_0x4840ed[_0x30c6('0x1')](_0x30c6('0x27'))['to'](this,_0x30c6('0x18'),this[_0x30c6('0xf')],'isResolvable',this[_0x30c6('0xf')],_0x30c6('0x15'),(_0x9a496c,_0x6c9544,_0x3928af)=>{let _0x4ff7b5;return _0x4ff7b5=_0x3928af&&_0x6c9544?'Reply\x20to\x20reopen\x20discussion...':_0x9a496c?_0x30c6('0xd'):'Write\x20a\x20comment...',_0x5ef696(this[_0x30c6('0x7')],_0x4ff7b5);}),_0x4840ed[_0x30c6('0x1')]('submitLabel')['to'](this,_0x30c6('0x18'),_0x263c0c=>_0x5ef696(this['locale'],_0x263c0c?_0x30c6('0x28'):_0x30c6('0x5'))),_0x4840ed['on'](_0x30c6('0xb'),(_0x2ab4c5,_0x3d3877)=>{this['fire']('addComment',_0x3d3877),this[_0x30c6('0xf')][_0x30c6('0x15')]&&this[_0x30c6('0xf')][_0x30c6('0x6')]&&this[_0x30c6('0x3')]('reopenCommentThread',this[_0x30c6('0xf')]['id']),this[_0x30c6('0xf')][_0x30c6('0x26')]||this[_0x30c6('0x3')]('submitCommentThread');}),_0x4840ed['on']('cancel',()=>{this[_0x30c6('0x23')]();}),_0x4840ed['bind']('disabledSubmit')['to'](this[_0x30c6('0xf')],_0x30c6('0x2')),_0x4840ed['on'](_0x30c6('0x4'),_0x11075a=>{0x0==this[_0x30c6('0x18')]&&(this[_0x30c6('0x3')]('removeCommentThread'),_0x11075a[_0x30c6('0x19')]());}),this['on'](_0x30c6('0x17'),(_0x5a14cc,_0xaa0973,_0x42030a)=>{_0x42030a||this['length']||_0x4840ed[_0x30c6('0x8')]||this[_0x30c6('0x3')](_0x30c6('0x25'));}),_0x1a1dd6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3614=['locale','destroy','editorConfig','delegate','add','isReadOnly','element','isCollapsed','editorReady','isEditMode','updateComment','switchToEditMode','focus','editorDestroyed','Save','maxCommentCharsWhenCollapsed','submit','set','cancel','switchToDisplayMode','remove','_createCommentInputView','createCollection','visibleView','_createCommentContentView','_model','isSystemComment','content','createEditor','get','submitLabel','expand','_config'];(function(_0x3823bb,_0x361454){const _0x4438bd=function(_0x4c7355){while(--_0x4c7355){_0x3823bb['push'](_0x3823bb['shift']());}};_0x4438bd(++_0x361454);}(_0x3614,0x150));const _0x4438=function(_0x3823bb,_0x361454){_0x3823bb=_0x3823bb-0x0;let _0x4438bd=_0x3614[_0x3823bb];return _0x4438bd;};import{View as _0x18669b}from'ckeditor5/src/ui';import{trimHtml as _0x1a879d}from'ckeditor5-collaboration/src/collaboration-core';import _0x2e3894 from'./commentcontentview';import _0x275640 from'./commentinputview';import{getTranslation as _0x2538fc}from'../../../utils/common-translations';export default class Yt extends _0x18669b{constructor(_0x4f17ed,_0x35f28c,_0x4d6668){super(_0x4f17ed),this[_0x4438('0x13')]=_0x35f28c,this[_0x4438('0x1a')]=_0x4d6668,this[_0x4438('0x14')]=!!this['_config'][_0x4438('0x14')],this[_0x4438('0xb')](_0x4438('0x3'),!0x1),this[_0x4438('0xb')]('isCollapsed',!0x0),this[_0x4438('0x11')]=this[_0x4438('0x10')](),this[_0x4438('0x11')]['add'](this[_0x4438('0x12')]());}[_0x4438('0x19')](){this[_0x4438('0x1')]=!0x1;}['collapse'](){this[_0x4438('0x3')]||(this['isCollapsed']=!0x0);}['focus'](){this[_0x4438('0x0')][_0x4438('0x6')]();}async['destroy'](){await this[_0x4438('0x11')][_0x4438('0x17')](0x0)[_0x4438('0x1c')](),super['destroy']();}[_0x4438('0x5')](){this[_0x4438('0x3')]||(this[_0x4438('0x3')]=!0x0,this[_0x4438('0x11')][_0x4438('0xe')](0x0)[_0x4438('0x1c')](),this['visibleView'][_0x4438('0x1f')](this['_createCommentInputView']()));}[_0x4438('0xd')](){this[_0x4438('0x3')]&&(this[_0x4438('0x3')]=!0x1,this['visibleView'][_0x4438('0xe')](0x0)[_0x4438('0x1c')](),this[_0x4438('0x11')][_0x4438('0x1f')](this[_0x4438('0x12')]()));}[_0x4438('0x12')](){const _0x3ef005=new _0x2e3894(this[_0x4438('0x1b')]);return _0x3ef005['bind']('content')['to'](this[_0x4438('0x13')],'content',this,_0x4438('0x1'),(_0x1e0abc,_0x561141)=>_0x561141?_0x1a879d(_0x1e0abc,{'limit':this[_0x4438('0x1a')][_0x4438('0x9')]}):_0x1e0abc),_0x3ef005;}[_0x4438('0xf')](){this['_config'][_0x4438('0x1d')]||(this[_0x4438('0x1a')][_0x4438('0x1d')]={}),this[_0x4438('0x1a')][_0x4438('0x1d')]['initialData']=this[_0x4438('0x13')][_0x4438('0x15')];const _0x1290e6=new _0x275640(this[_0x4438('0x1b')],this['_config'][_0x4438('0x1d')]);return _0x1290e6['value']=this[_0x4438('0x13')]['content'],_0x1290e6['bind']('disabledSubmit')['to'](this['_model'],_0x4438('0x20')),_0x1290e6[_0x4438('0x18')]=_0x2538fc(this[_0x4438('0x1b')],_0x4438('0x8')),_0x1290e6['on'](_0x4438('0xa'),(_0x196c83,_0x3e1342)=>{this['fire'](_0x4438('0x4'),this[_0x4438('0x13')]['id'],_0x3e1342),this[_0x4438('0xd')](),this[_0x4438('0x6')]();}),_0x1290e6['on'](_0x4438('0xc'),()=>{this['switchToDisplayMode'](),this[_0x4438('0x6')]();}),_0x1290e6['once']('editorReady',()=>{_0x1290e6[_0x4438('0x6')]();}),_0x1290e6[_0x4438('0x16')](),_0x1290e6[_0x4438('0x1e')](_0x4438('0x2'))['to'](this),_0x1290e6[_0x4438('0x1e')](_0x4438('0x7'))['to'](this),_0x1290e6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x357d=['setTemplate','count','NUMBER_OF_COMMENTS','ck-thread__comment-count','bindTemplate','set'];(function(_0x101749,_0x357d99){const _0x33df0e=function(_0x46414e){while(--_0x46414e){_0x101749['push'](_0x101749['shift']());}};_0x33df0e(++_0x357d99);}(_0x357d,0xa7));const _0x33df=function(_0x101749,_0x357d99){_0x101749=_0x101749-0x0;let _0x33df0e=_0x357d[_0x101749];return _0x33df0e;};import{View as _0x3c9af0}from'ckeditor5/src/ui';import{getTranslation as _0x10f5df}from'../../../utils/common-translations';export default class Zt extends _0x3c9af0{constructor(_0x2d7c59){super(_0x2d7c59);const _0x39d89b=this[_0x33df('0x5')];this[_0x33df('0x0')](_0x33df('0x2'),void 0x0),this[_0x33df('0x1')]({'tag':'li','attributes':{'class':_0x33df('0x4')},'children':[{'text':_0x39d89b['to'](_0x33df('0x2'),_0x166134=>_0x10f5df(_0x2d7c59,_0x33df('0x3'),_0x166134))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2d52=['set','change:content','ck-annotation__content','element','content','div','innerHTML','render'];(function(_0x43abbf,_0x2d52ff){var _0x125e00=function(_0x10647b){while(--_0x10647b){_0x43abbf['push'](_0x43abbf['shift']());}};_0x125e00(++_0x2d52ff);}(_0x2d52,0x180));var _0x125e=function(_0x43abbf,_0x2d52ff){_0x43abbf=_0x43abbf-0x0;var _0x125e00=_0x2d52[_0x43abbf];return _0x125e00;};import{View as _0x5c2bfa}from'ckeditor5/src/ui';export default class Ut extends _0x5c2bfa{constructor(_0x4bffb7){super(_0x4bffb7),this[_0x125e('0x0')](_0x125e('0x4'),''),this['setTemplate']({'tag':_0x125e('0x5'),'attributes':{'class':['ck-comment__content',_0x125e('0x2')]}});}['render'](){super[_0x125e('0x7')](),this['on'](_0x125e('0x1'),(_0x37d11b,_0x1e721b,_0x5a4d48)=>{this[_0x125e('0x3')]['innerHTML']=_0x5a4d48;}),this['element'][_0x125e('0x6')]=this[_0x125e('0x4')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf17d=['extendTemplate','cancel','createEditor','initialData','keystrokes','focusTracker','document','high','submit','label','low','submitLabel','bind','focusPrevious','TOO_LONG_COMMENT_ALERT','ck-comment__input-wrapper','fire','focus','_createCancelButton','tab','submitButtonView','Esc','_editorConfig','_editorCreationPromise','ck-comment__input-actions--active','firstChild','getData','cancelButtonView','ck-comment__input-actions','placeholder','set','bindTemplate','withText','Reply','editor','shift\x20+\x20tab','then','add','_isDestroyed','execute','stop','destroy','model','change','setData','view','create','ck-comment__input-actions--cancel','length','element','disabledSubmit','forEach','trim','render','isEnabled','_initializeFocusCycling','div','insertBefore','_createSubmitButton','value','Reply...','setTemplate','editorDestroyed','focusNext','editorReady'];(function(_0x1cb2b4,_0xf17d40){const _0x2af1be=function(_0x3a7688){while(--_0x3a7688){_0x1cb2b4['push'](_0x1cb2b4['shift']());}};_0x2af1be(++_0xf17d40);}(_0xf17d,0xdc));const _0x2af1=function(_0x1cb2b4,_0xf17d40){_0x1cb2b4=_0x1cb2b4-0x0;let _0x2af1be=_0xf17d[_0x1cb2b4];return _0x2af1be;};import{View as _0x79b7e6,ViewCollection as _0x98ca5b,FocusCycler as _0x416223,ButtonView as _0x492e21}from'ckeditor5/src/ui';import{FocusTracker as _0x4afbd0,KeystrokeHandler as _0x35f02a}from'ckeditor5/src/utils';import _0x28a36e from'../commenteditor/commenteditor';import{getTranslation as _0x245e85}from'../../../utils/common-translations';export default class Xt extends _0x79b7e6{constructor(_0x5746c9,_0x268a6b={}){super(_0x5746c9),this['editor']=null,this['_editorConfig']=_0x268a6b,this[_0x2af1('0x2c')]=new _0x35f02a(),this[_0x2af1('0x2d')]=new _0x4afbd0(),this[_0x2af1('0x5')]('value',_0x268a6b[_0x2af1('0x2b')]||''),this[_0x2af1('0x5')](_0x2af1('0x19'),!0x1),this['set']('showButtons',!0x0),this[_0x2af1('0x5')](_0x2af1('0x4'),_0x245e85(_0x5746c9,_0x2af1('0x23'))),this[_0x2af1('0x5')](_0x2af1('0x33'),_0x245e85(_0x5746c9,_0x2af1('0x8'))),this[_0x2af1('0x3c')]=this[_0x2af1('0x21')](),this[_0x2af1('0x2')]=this[_0x2af1('0x3a')](),this[_0x2af1('0x24')]({'tag':_0x2af1('0x1f'),'attributes':{'class':[_0x2af1('0x37')]},'children':[{'tag':_0x2af1('0x1f'),'attributes':{'class':[_0x2af1('0x3'),this[_0x2af1('0x6')]['if']('showButtons',_0x2af1('0x40'))]},'children':[this['submitButtonView'],this[_0x2af1('0x2')]]}]}),this[_0x2af1('0x2c')][_0x2af1('0x5')](_0x2af1('0x3d'),(_0x3a6e8d,_0xc0c5b2)=>{this['cancelButtonView'][_0x2af1('0x38')](_0x2af1('0xe')),_0xc0c5b2();}),this['on'](_0x2af1('0x30'),(_0x5da0fd,_0x1b0da2)=>{_0x1b0da2[_0x2af1('0x17')]>0xfde8?(alert(_0x245e85(_0x5746c9,_0x2af1('0x36'),[_0x1b0da2[_0x2af1('0x17')],0xfde8])),_0x5da0fd[_0x2af1('0xf')]()):this[_0x2af1('0x9')][_0x2af1('0x13')]('');},{'priority':_0x2af1('0x2f')});}[_0x2af1('0x1c')](){super['render'](),this[_0x2af1('0x2c')]['listenTo'](this['element']),this[_0x2af1('0x2d')][_0x2af1('0xc')](this[_0x2af1('0x18')]);}[_0x2af1('0x2a')](){return this[_0x2af1('0x9')]||(this[_0x2af1('0x9')]=new _0x28a36e(this[_0x2af1('0x3e')]),this[_0x2af1('0x3f')]=this[_0x2af1('0x9')][_0x2af1('0x15')]()[_0x2af1('0xb')](()=>{if(this[_0x2af1('0xd')])return;const _0x11643d=this[_0x2af1('0x9')];this['element'][_0x2af1('0x20')](_0x11643d['ui'][_0x2af1('0x18')],this[_0x2af1('0x18')][_0x2af1('0x0')]),_0x11643d[_0x2af1('0x11')][_0x2af1('0x2e')]['on'](_0x2af1('0x12'),()=>this[_0x2af1('0x22')]=_0x11643d[_0x2af1('0x1')]()),_0x11643d['bind']('placeholder')['to'](this),this[_0x2af1('0x1e')](this[_0x2af1('0x9')]),this['fire'](_0x2af1('0x27'),this[_0x2af1('0x9')]);})),this[_0x2af1('0x3f')];}[_0x2af1('0x39')](){this[_0x2af1('0x9')]&&this[_0x2af1('0x9')][_0x2af1('0x39')]();}async[_0x2af1('0x10')](){this[_0x2af1('0xd')]||(this[_0x2af1('0xd')]=!0x0,this['editor']&&(await this[_0x2af1('0x3f')],await this[_0x2af1('0x9')][_0x2af1('0x10')](),this[_0x2af1('0x38')](_0x2af1('0x25'),this[_0x2af1('0x9')])),await super[_0x2af1('0x10')]());}[_0x2af1('0x21')](){const {locale:_0x27e2da}=this,_0x5d485b=new _0x492e21(_0x27e2da);return _0x5d485b[_0x2af1('0x28')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x5d485b[_0x2af1('0x7')]=!0x0,_0x5d485b[_0x2af1('0x34')](_0x2af1('0x31'))['to'](this,_0x2af1('0x33')),_0x5d485b['on']('execute',()=>{this[_0x2af1('0x38')]('submit',this[_0x2af1('0x22')]);}),_0x5d485b[_0x2af1('0x34')](_0x2af1('0x1d'))['to'](this,_0x2af1('0x22'),this,_0x2af1('0x19'),(_0x3a1a32,_0x5d9d64)=>!_0x5d9d64&&!!_0x3a1a32[_0x2af1('0x1b')]()),_0x5d485b;}['_createCancelButton'](){const {locale:_0x44a9f8}=this,_0x511d2b=new _0x492e21(_0x44a9f8);return _0x511d2b[_0x2af1('0x28')]({'attributes':{'class':[_0x2af1('0x16')]}}),_0x511d2b[_0x2af1('0x31')]=_0x245e85(_0x44a9f8,'Cancel'),_0x511d2b[_0x2af1('0x7')]=!0x0,_0x511d2b['on'](_0x2af1('0xe'),()=>{this['editor']['setData'](''),this['fire'](_0x2af1('0x29'));}),_0x511d2b;}[_0x2af1('0x1e')](_0x11bd96){const _0x196787=this[_0x2af1('0x2d')],_0x41ffe3=new _0x98ca5b();[_0x11bd96['ui'][_0x2af1('0x14')],this[_0x2af1('0x3c')],this[_0x2af1('0x2')]][_0x2af1('0x1a')](_0x52a793=>{_0x41ffe3[_0x2af1('0xc')](_0x52a793),_0x196787[_0x2af1('0xc')](_0x52a793[_0x2af1('0x18')]);});const _0x19383e=new _0x416223({'focusables':_0x41ffe3,'focusTracker':_0x196787});this[_0x2af1('0x2c')][_0x2af1('0x5')](_0x2af1('0x3b'),(_0x24bb2a,_0xe319a3)=>{_0x19383e[_0x2af1('0x26')](),_0xe319a3();},{'priority':_0x2af1('0x32')}),this[_0x2af1('0x2c')][_0x2af1('0x5')](_0x2af1('0xa'),(_0x5d8fcc,_0x3e1f91)=>{_0x19383e[_0x2af1('0x35')](),_0x3e1f91();},{'priority':_0x2af1('0x32')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38d9=['element','isActive','tab','arrowright','EMPTY_COMMENTS_ARCHIVE','bindTemplate','ck-hidden','length','shift\x20+\x20tab','destroy','_keystrokes','auto','stopPropagation','set','COMMENTS_ARCHIVE','ck-comments-archive__header\x20','arrowleft','add','arrowdown','isEmpty','ck-comments-archive__info','selectstart','render','ck-comments-archive__content','div','focus','_focusTracker','_focusCycler','listenTo','ck-comments-archive'];(function(_0xf59519,_0x38d9e3){const _0x2744bd=function(_0x33b4d2){while(--_0x33b4d2){_0xf59519['push'](_0xf59519['shift']());}};_0x2744bd(++_0x38d9e3);}(_0x38d9,0xa4));const _0x2744=function(_0xf59519,_0x38d9e3){_0xf59519=_0xf59519-0x0;let _0x2744bd=_0x38d9[_0xf59519];return _0x2744bd;};import{View as _0x12cd63,FocusCycler as _0x4a269f}from'ckeditor5/src/ui';import{FocusTracker as _0x4aa7ef,KeystrokeHandler as _0x370f4e}from'ckeditor5/src/utils';import{getTranslation as _0x54a7f5}from'../../../utils/common-translations';export default class K extends _0x12cd63{constructor(_0x897434,_0x2fd4bb){super(_0x897434),this[_0x2744('0x1d')](_0x2744('0x5'),!_0x2fd4bb[_0x2744('0x17')]),this[_0x2744('0xc')]=new _0x4aa7ef(),this[_0x2744('0x1a')]=new _0x370f4e(),this['_focusables']=_0x2fd4bb,this[_0x2744('0xd')]=new _0x4a269f({'focusables':this['_focusables'],'focusTracker':this[_0x2744('0xc')],'keystrokeHandler':this[_0x2744('0x1a')],'actions':{'focusPrevious':_0x2744('0x18'),'focusNext':_0x2744('0x12')}}),this[_0x2744('0xe')](_0x2fd4bb,_0x2744('0x3'),()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x2fd4bb,'remove',(_0x175d03,_0x2a9b11)=>{_0x2a9b11[_0x2744('0x11')]&&this[_0x2744('0xb')](),_0x2fd4bb[_0x2744('0x17')]||(this[_0x2744('0x5')]=!0x0);});const _0x3fc251=this[_0x2744('0x15')];this['setTemplate']({'tag':'div','attributes':{'dir':_0x2744('0x1b'),'class':['ck',_0x2744('0xf')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x2744('0x1')]},'children':[{'text':_0x54a7f5(_0x897434,_0x2744('0x0'))}]},{'tag':'div','attributes':{'class':[_0x2744('0x9')]},'children':[{'tag':_0x2744('0xa'),'children':_0x2fd4bb},{'tag':'p','attributes':{'class':[_0x2744('0x6'),_0x3fc251['if']('isEmpty',_0x2744('0x16'),_0x40c50d=>!_0x40c50d)]},'children':[{'text':_0x54a7f5(_0x897434,_0x2744('0x14'))}]}]}]});}['render'](){super[_0x2744('0x8')](),this[_0x2744('0x1a')][_0x2744('0xe')](this[_0x2744('0x10')]);const _0x4eaee2=_0xad1e78=>_0xad1e78[_0x2744('0x1c')]();this[_0x2744('0x1a')][_0x2744('0x1d')](_0x2744('0x13'),_0x4eaee2),this['_keystrokes'][_0x2744('0x1d')](_0x2744('0x2'),_0x4eaee2),this[_0x2744('0x1a')][_0x2744('0x1d')]('arrowup',_0x4eaee2),this[_0x2744('0x1a')]['set'](_0x2744('0x4'),_0x4eaee2),this['listenTo'](this[_0x2744('0x10')],_0x2744('0x7'),(_0x48cbab,_0x422f32)=>{_0x422f32['stopPropagation']();},{'priority':'high'});}[_0x2744('0x19')](){super[_0x2744('0x19')](),this[_0x2744('0xc')][_0x2744('0x19')](),this[_0x2744('0x1a')][_0x2744('0x19')]();}[_0x2744('0xb')](){this['element'][_0x2744('0xb')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3be4=['removeComment','delete','visibleViews','_shouldCollapse','maxCommentsWhenCollapsed','from','locale','Marked\x20as\x20resolved','_findOptimalIndex','resolvedAt','element','editorDestroyed','get','focus','length','_updateHasDirtyComment','viewUid','createCollection','formatDateTime','expand','stopListening','resolvedCommentView','collapse','maxCommentCharsWhenCollapsed','_calculatePosition','listenTo','commentViews','set','delegate','setTemplate','comments','resolved','isActive','destroy','CommentView','commentUpdated','_model','weight','hasDirtyComment','resolvedBy','count','remove','change:isEditMode','_handleNewCommentModel','_handleRemoveCommentModel','authoredAt','editorConfig','render','isEditMode','refreshVisibleViews','_collapsedCommentsView','add','_handleInfoComment','_config','insert','_rearrangeExpand','updateComment','change:isResolved'];(function(_0x297a44,_0x3be452){const _0x644c86=function(_0x4074e5){while(--_0x4074e5){_0x297a44['push'](_0x297a44['shift']());}};_0x644c86(++_0x3be452);}(_0x3be4,0x112));const _0x644c=function(_0x297a44,_0x3be452){_0x297a44=_0x297a44-0x0;let _0x644c86=_0x3be4[_0x297a44];return _0x644c86;};import{View as _0x57347e}from'ckeditor5/src/ui';import{diff as _0x41ab8b,Collection as _0x3d154f}from'ckeditor5/src/utils';import{getTranslation as _0x15eb29}from'../../../utils/common-translations';import _0x1a32bc from'./collapsedcommentsview';export default class wt extends _0x57347e{constructor(_0x583310,_0x1488af,_0xec2880){super(_0x583310),this[_0x644c('0x2b')](_0x644c('0x36'),!0x1),this['set'](_0x644c('0x1e'),_0x1488af[_0x644c('0x2e')][_0x644c('0x1e')]),this[_0x644c('0x2b')](_0x644c('0x30'),!0x1),this[_0x644c('0x34')]=_0x1488af,this['_config']=_0xec2880,this[_0x644c('0x2a')]=this[_0x644c('0x21')](),this[_0x644c('0x12')]=this['createCollection'](),this[_0x644c('0x25')]=null,this[_0x644c('0x8')]=new _0x1a32bc(_0x583310),this[_0x644c('0x8')]['bind'](_0x644c('0x38'))['to'](this,_0x644c('0x1e'),_0x42bfee=>_0x42bfee-this[_0x644c('0xb')][_0x644c('0x14')]);for(const _0x159a3a of _0x1488af[_0x644c('0x2e')])this[_0x644c('0x1')](_0x159a3a);this[_0x644c('0xa')](),this[_0x644c('0x29')](_0x1488af[_0x644c('0x2e')],_0x644c('0x9'),(_0x1065fe,_0x574516)=>{const _0x402307=this[_0x644c('0x28')](_0x574516);this['length']++,this[_0x644c('0x1')](_0x574516,_0x402307),this[_0x644c('0x7')]();}),this[_0x644c('0x29')](_0x1488af[_0x644c('0x2e')],_0x644c('0x39'),(_0xfebe41,_0x2c5812)=>{this[_0x644c('0x1e')]--,this[_0x644c('0x2')](_0x2c5812),this['refreshVisibleViews']();}),this[_0x644c('0x29')](_0x1488af,_0x644c('0x33'),()=>this[_0x644c('0x7')]()),this[_0x644c('0x29')](_0x1488af,_0x644c('0xf'),()=>this[_0x644c('0xa')]()),this['on']('change:isActive',()=>this[_0x644c('0x7')]()),this['on']('change:hasDirtyComment',()=>this[_0x644c('0x7')]()),this[_0x644c('0x2d')]({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x644c('0x12')]});}get[_0x644c('0x13')](){return this['_model'][_0x644c('0x35')]>this[_0x644c('0xb')]['maxThreadTotalWeight']&&!this[_0x644c('0x30')]&&!this[_0x644c('0x36')];}['render'](){super[_0x644c('0x5')](),this['refreshVisibleViews']();}['focus'](){this[_0x644c('0x1a')][_0x644c('0x1d')]();}['destroy'](){this['_collapsedCommentsView'][_0x644c('0x31')]();for(const _0x42dfb6 of this[_0x644c('0x2a')])_0x42dfb6[_0x644c('0x31')]();super[_0x644c('0x31')]();}[_0x644c('0x7')](){this[_0x644c('0x13')]?this['_rearrangeCollapse']():this[_0x644c('0xd')]();}[_0x644c('0x1')](_0x2d09ce,_0x287b31){const _0x4cbfe5=new this[(_0x644c('0xb'))]['CommentView'](this[_0x644c('0x16')],_0x2d09ce,{'maxCommentCharsWhenCollapsed':this[_0x644c('0xb')][_0x644c('0x27')],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this[_0x644c('0xb')]['editorConfig']});_0x4cbfe5[_0x644c('0x20')]=_0x2d09ce['id'],_0x4cbfe5['delegate'](_0x644c('0x10'))['to'](this),_0x4cbfe5[_0x644c('0x2c')](_0x644c('0xe'))['to'](this),_0x4cbfe5['delegate']('resolveCommentThread')['to'](this),_0x4cbfe5[_0x644c('0x2c')]('editorReady')['to'](this),_0x4cbfe5[_0x644c('0x2c')](_0x644c('0x1b'))['to'](this),this['listenTo'](_0x4cbfe5,_0x644c('0x0'),()=>this['_updateHasDirtyComment']()),this[_0x644c('0x2a')][_0x644c('0x9')](_0x4cbfe5,_0x287b31);}['_calculatePosition'](_0x16bd01){const _0x346de4=this[_0x644c('0x34')][_0x644c('0x18')](_0x16bd01);return this[_0x644c('0x25')]?this['resolvedCommentView'][_0x644c('0x3')]>_0x16bd01[_0x644c('0x3')]?_0x346de4-0x1:_0x346de4:_0x346de4-0x1;}[_0x644c('0xa')](){if(this[_0x644c('0x34')][_0x644c('0x37')]&&this[_0x644c('0x34')]['resolvedAt']){const _0x1243eb={'id':_0x644c('0x2f'),'author':this['_model'][_0x644c('0x37')],'authoredAt':this['_model'][_0x644c('0x19')],'content':_0x15eb29(this['locale'],_0x644c('0x17')),'attributes':{}};this[_0x644c('0x25')]=new this[(_0x644c('0xb'))][(_0x644c('0x32'))](this[_0x644c('0x16')],_0x1243eb,{'maxCommentCharsWhenCollapsed':this['_config'][_0x644c('0x27')],'formatDateTime':this[_0x644c('0xb')][_0x644c('0x22')],'editorConfig':this[_0x644c('0xb')][_0x644c('0x4')],'isSystemComment':!0x0}),this[_0x644c('0x2a')][_0x644c('0x9')](this[_0x644c('0x25')],this[_0x644c('0x34')][_0x644c('0x18')](_0x1243eb));}else this[_0x644c('0x25')]&&(this[_0x644c('0x2a')][_0x644c('0x39')](this['resolvedCommentView']),this[_0x644c('0x25')][_0x644c('0x31')](),this[_0x644c('0x25')]=null);this[_0x644c('0x7')]();}['_handleRemoveCommentModel'](_0x393673){const _0x3fada8=this['commentViews']['remove'](_0x393673['id']);this[_0x644c('0x24')](_0x3fada8),_0x3fada8['isEditMode']&&this[_0x644c('0x1f')](),_0x3fada8['destroy']();}[_0x644c('0x1f')](){this[_0x644c('0x36')]=Array['from'](this[_0x644c('0x2a')])['some'](_0x2c2907=>_0x2c2907[_0x644c('0x6')]);}['_rearrangeCollapse'](){const _0x573e34=function(_0x2abad5){const _0x3c9b22=new _0x3d154f();for(const _0x3bd3cb of _0x2abad5)_0x3c9b22[_0x644c('0x9')](_0x3bd3cb);return _0x3c9b22;}(this[_0x644c('0x2a')]),_0x3b077c=this[_0x644c('0x8')][_0x644c('0x38')];for(let _0x1abb82=0x1;_0x1abb82<=_0x3b077c;_0x1abb82++)_0x573e34[_0x644c('0x39')](0x1);for(const _0x37eb58 of _0x573e34)_0x37eb58[_0x644c('0x26')]();_0x3b077c>0x0&&_0x573e34['add'](this['_collapsedCommentsView'],0x1),ss(_0x41ab8b(Array[_0x644c('0x15')](this['visibleViews']),Array[_0x644c('0x15')](_0x573e34)),this['visibleViews'],_0x573e34);}['_rearrangeExpand'](){ss(_0x41ab8b(Array[_0x644c('0x15')](this[_0x644c('0x12')]),Array[_0x644c('0x15')](this[_0x644c('0x2a')])),this['visibleViews'],this[_0x644c('0x2a')]);for(const _0x1b5cda of this['visibleViews'])_0x1b5cda[_0x644c('0x23')]();}}function ss(_0x179ae9,_0x10e308,_0x30f8a2){let _0x3bda79=0x0;for(const _0x3a4c52 of _0x179ae9)switch(_0x3a4c52){case _0x644c('0xc'):_0x10e308['add'](_0x30f8a2[_0x644c('0x1c')](_0x3bda79),_0x3bda79),_0x3bda79++;break;case _0x644c('0x11'):_0x10e308[_0x644c('0x39')](_0x3bda79);break;case'equal':_0x3bda79++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e97=['listenTo','.ck-context__value','_createReopenButton','contextValue','classList','isVisible','ck-context-wrapper','_attachContextActions','element','isResolvable','length','tooltip','hasContext','isEnabled','querySelector','overlay','Reopen','_trimContextValue','add','isReadOnly','locale','.ck-context','mouseenter','value','icon','bind','mouseleave','offsetWidth','reopenCommentThread','reopenButtonView','_model','fire','ck-thread__header','div','render','ck-context','label','remove','context','...','lastIndexOf','substring'];(function(_0x1a8e1b,_0x5e97c1){const _0x1a9df6=function(_0x41de31){while(--_0x41de31){_0x1a8e1b['push'](_0x1a8e1b['shift']());}};_0x1a9df6(++_0x5e97c1);}(_0x5e97,0x6a));const _0x1a9d=function(_0x1a8e1b,_0x5e97c1){_0x1a8e1b=_0x1a8e1b-0x0;let _0x1a9df6=_0x5e97[_0x1a8e1b];return _0x1a9df6;};import{View as _0x54c1bd,ButtonView as _0x14409b}from'ckeditor5/src/ui';import{getTranslation as _0x278147}from'../../../utils/common-translations';import _0x463cd0 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x54c1bd{constructor(_0xebea2a,_0x5ec313){super(_0xebea2a);const _0x1150e1=this['bindTemplate'];this[_0x1a9d('0x8')]=_0x5ec313,this[_0x1a9d('0x7')]=this[_0x1a9d('0x16')](),this[_0x1a9d('0x3')](_0x1a9d('0x20'))['to'](this[_0x1a9d('0x8')],_0x1a9d('0x10'),_0xf14bc5=>!!_0xf14bc5),this[_0x1a9d('0x3')](_0x1a9d('0x17'))['to'](this[_0x1a9d('0x8')],'context',_0x36ea9e=>_0x36ea9e&&_0x36ea9e['value']?this[_0x1a9d('0x25')](_0x36ea9e[_0x1a9d('0x1')]):_0x278147(this[_0x1a9d('0x28')],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':_0x1a9d('0xb'),'attributes':{'class':[_0x1a9d('0xa')]},'children':[{'tag':_0x1a9d('0xb'),'attributes':{'class':[_0x1a9d('0x1a')]},'children':[{'tag':'div','attributes':{'class':[_0x1a9d('0xd'),_0x1150e1['if'](_0x1a9d('0x20'),'ck-context--quotes')]},'children':[{'tag':'span','attributes':{'class':['ck-context__value']},'children':[{'text':_0x1150e1['to']('contextValue')}]}]}]},{'tag':_0x1a9d('0xb'),'attributes':{'class':['ck-annotation__actions']},'children':[this[_0x1a9d('0x7')]]}]});}[_0x1a9d('0xc')](){super[_0x1a9d('0xc')](),this[_0x1a9d('0x1b')]();}[_0x1a9d('0x16')](){const _0x4d90ab=new _0x14409b(this['locale']);return _0x4d90ab[_0x1a9d('0xe')]=_0x278147(this[_0x1a9d('0x28')],_0x1a9d('0x24')),_0x4d90ab[_0x1a9d('0x1f')]=_0x278147(this[_0x1a9d('0x28')],_0x1a9d('0x24')),_0x4d90ab[_0x1a9d('0x2')]=_0x463cd0,_0x4d90ab[_0x1a9d('0x3')](_0x1a9d('0x21'))['to'](this[_0x1a9d('0x8')],_0x1a9d('0x27'),_0x4cb624=>!_0x4cb624),_0x4d90ab['bind'](_0x1a9d('0x19'))['to'](this[_0x1a9d('0x8')],_0x1a9d('0x1d')),_0x4d90ab['on']('execute',()=>{this[_0x1a9d('0x9')](_0x1a9d('0x6'),this['_model']['id']);}),_0x4d90ab;}[_0x1a9d('0x25')](_0x780b06){if(_0x780b06[_0x1a9d('0x1e')]<0x96)return _0x780b06;const _0x31c8b4=_0x780b06[_0x1a9d('0x12')]('\x20',0x93);return _0x780b06[_0x1a9d('0x13')](0x0,_0x31c8b4>-0x1?_0x31c8b4:0x93)+_0x1a9d('0x11');}[_0x1a9d('0x1b')](){const _0x717e86=this[_0x1a9d('0x1c')]['querySelector'](_0x1a9d('0x29')),_0xed8c77=_0x717e86[_0x1a9d('0x22')](_0x1a9d('0x15'));this[_0x1a9d('0x14')](_0x717e86,_0x1a9d('0x0'),()=>{_0xed8c77[_0x1a9d('0x5')]<_0xed8c77['scrollWidth']&&_0x717e86[_0x1a9d('0x18')][_0x1a9d('0x26')](_0x1a9d('0x23'));}),this[_0x1a9d('0x14')](_0x717e86,_0x1a9d('0x4'),()=>{_0x717e86['classList'][_0x1a9d('0xf')](_0x1a9d('0x23'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4901=['isFocused','div','editorReady','ck-thread__input','bind','bindTemplate','extendTemplate','showInput','ck-thread__user','commentInputView','value','destroy','createEditor','change:showInput','editorDestroyed','delegate','focusTracker','userView','editor','set','showButtons','ck-comment__input-container'];(function(_0x145561,_0x490147){var _0x42196f=function(_0x5b6d5b){while(--_0x5b6d5b){_0x145561['push'](_0x145561['shift']());}};_0x42196f(++_0x490147);}(_0x4901,0xb9));var _0x4219=function(_0x145561,_0x490147){_0x145561=_0x145561-0x0;var _0x42196f=_0x4901[_0x145561];return _0x42196f;};import{View as _0x553912}from'ckeditor5/src/ui';import _0x430088 from'./commentinputview';import{UserView as _0x23cf5d}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x553912{constructor(_0x4920b5,_0x1acbd7,_0x30f961){super(_0x4920b5),this[_0x4219('0x0')]=new _0x430088(_0x4920b5,_0x30f961),this[_0x4219('0x0')][_0x4219('0x11')](_0x4219('0xb'))['to'](this[_0x4219('0x0')][_0x4219('0x7')],_0x4219('0xd'),this['commentInputView'],_0x4219('0x1'),(_0x4a3e2d,_0x3c58e9)=>_0x4a3e2d||!!_0x3c58e9),this[_0x4219('0xa')](_0x4219('0x14'),!0x1),this['on'](_0x4219('0x4'),()=>{this[_0x4219('0x14')]&&!this[_0x4219('0x0')][_0x4219('0x9')]&&this[_0x4219('0x0')][_0x4219('0x3')]();}),this[_0x4219('0x0')]['delegate'](_0x4219('0xf'))['to'](this),this[_0x4219('0x0')][_0x4219('0x6')](_0x4219('0x5'))['to'](this),this[_0x4219('0x8')]=new _0x23cf5d(_0x4920b5,_0x1acbd7),this[_0x4219('0x8')]['extendTemplate']({'attributes':{'class':_0x4219('0x15')}}),this['commentInputView'][_0x4219('0x13')]({'attributes':{'class':_0x4219('0x10')}}),this['setTemplate']({'tag':_0x4219('0xe'),'attributes':{'class':[_0x4219('0xc'),this[_0x4219('0x12')]['if'](_0x4219('0x14'),'ck-comment__input-container--active')]},'children':[this[_0x4219('0x8')],this[_0x4219('0x0')]]});}[_0x4219('0x2')](){return this[_0x4219('0x0')][_0x4219('0x2')]()['then'](()=>super[_0x4219('0x2')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b9e=['_model','_boundFirstCommentView','high','actionIndicator','execute','unbind','isEnabled','bindTemplate','locale','commentThreadChildren','render','set','extendTemplate','change:isReadOnly','placeholder','tooltip','createCollection','icon','bind','remove','Resolve','isResolved','change:isActive','_createResolveButton','containerElement','listenTo','ck-comment--resolve','Delete\x20comment\x20thread?','.ck-thread__container','ck-thread--active','isVisible','actionBar','setTemplate','commentViews','get','querySelector','addMany','Write\x20a\x20comment...','_cancelAllConfirms','removeButton','ck-thread__container','cancelConfirm','commentThreadHeaderView','isActive','fire','_bindFirstCommentView','length','then','add','commentsListView','showConfirm','resolveCommentThread','isResolvable','ck-reset_all-excluded','check','commentThreadInputView','ck-thread--','getTemplate','label','ck-thread--remove-confirmation','isSystemComment','ck-thread','div'];(function(_0x381087,_0x3b9eba){const _0x1739b2=function(_0x4af335){while(--_0x4af335){_0x381087['push'](_0x381087['shift']());}};_0x1739b2(++_0x3b9eba);}(_0x3b9e,0x72));const _0x1739=function(_0x381087,_0x3b9eba){_0x381087=_0x381087-0x0;let _0x1739b2=_0x3b9e[_0x381087];return _0x1739b2;};import{ConfirmMixin as _0x340e67}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x49964f}from'ckeditor5/src/ui';import{icons as _0x3a92d8}from'ckeditor5/src/core';import _0x3bc77e from'./basecommentthreadview';import{getTranslation as _0x1c4d4b}from'../../../utils/common-translations';export default class lt extends _0x340e67(_0x3bc77e){constructor(_0x5675e0,_0x5852cb,_0x33a10e,_0x1f6292){super(_0x5675e0,_0x5852cb,_0x33a10e,_0x1f6292),this[_0x1739('0x15')]=this[_0x1739('0x1c')](),this['commentThreadChildren'][_0x1739('0x30')]([this[_0x1739('0x3d')],this[_0x1739('0x4')]]),this[_0x1739('0xc')][_0x1739('0x21')]&&this['commentThreadChildren'][_0x1739('0x3c')](this[_0x1739('0x36')],0x0),this[_0x1739('0xc')]['on']('change:isResolved',(_0x50e4d2,_0x23e895,_0xb1f5f0)=>{_0xb1f5f0?this['commentThreadChildren'][_0x1739('0x3c')](this['commentThreadHeaderView'],0x0):this[_0x1739('0x15')][_0x1739('0x1f')](this['commentThreadHeaderView']);}),this[_0x1739('0x17')](_0x1739('0xf'),null),this[_0x1739('0x24')]=null,this[_0x1739('0xd')]=null,this['locale']=_0x5675e0,this['resolveButton']=this[_0x1739('0x23')](),this[_0x1739('0x2c')](this[_0x1739('0x6')]()),this['on'](_0x1739('0x22'),(_0x4b4daf,_0x4614eb,_0x4a3931)=>{_0x4a3931||this[_0x1739('0x32')]();}),this[_0x1739('0x25')](this['_model'],_0x1739('0x19'),(_0x24c815,_0x2eba5d,_0x39e8c2)=>{_0x39e8c2&&this['_cancelAllConfirms']();}),this[_0x1739('0x3a')]>0x0&&this[_0x1739('0x39')](),this[_0x1739('0x25')](this[_0x1739('0x3d')][_0x1739('0x2d')],_0x1739('0x3c'),()=>{this[_0x1739('0x39')]();});}[_0x1739('0x6')](){const _0x5895e6=this[_0x1739('0x13')];return{'tag':_0x1739('0xb'),'attributes':{'class':[_0x1739('0xa'),_0x1739('0x2'),_0x5895e6['if'](_0x1739('0x37'),_0x1739('0x29')),_0x5895e6['if']('isConfirm',_0x1739('0x8')),_0x5895e6['to'](_0x1739('0xf'),_0x154aa=>_0x154aa?_0x1739('0x5')+_0x154aa:'')],'data-thread-id':this[_0x1739('0xc')]['id'],'tabindex':-0x1},'children':[{'tag':_0x1739('0xb'),'attributes':{'class':_0x1739('0x34')},'children':this[_0x1739('0x15')]}]};}[_0x1739('0x16')](){super[_0x1739('0x16')](),this[_0x1739('0x24')]=this['element'][_0x1739('0x2f')](_0x1739('0x28'));}[_0x1739('0x32')](){this[_0x1739('0x35')]();for(const _0x5ce19f of this[_0x1739('0x3d')][_0x1739('0x2d')])_0x5ce19f[_0x1739('0x35')]();}[_0x1739('0x39')](){const {locale:_0x15d0da}=this,_0x996ab=this[_0x1739('0x3d')][_0x1739('0x2d')][_0x1739('0x2e')](0x0);_0x996ab===this['_boundFirstCommentView']||_0x996ab[_0x1739('0x9')]||(this[_0x1739('0xd')]=_0x996ab,this[_0x1739('0x11')](_0x1739('0xf')),this[_0x1739('0x1e')]('actionIndicator')['to'](_0x996ab,'actionIndicator',_0x487d74=>_0x1739('0x1f')===_0x487d74?_0x1739('0x1f'):null),_0x996ab[_0x1739('0x1a')]=_0x1c4d4b(_0x15d0da,_0x1739('0x31')),_0x996ab[_0x1739('0x33')]['on'](_0x1739('0x10'),_0x3d499d=>{_0x3d499d['stop'](),this[_0x1739('0x3e')](_0x1c4d4b(_0x15d0da,_0x1739('0x27')),this[_0x1739('0x24')])[_0x1739('0x3b')](()=>{this[_0x1739('0x38')]('removeCommentThread');});},{'priority':_0x1739('0xe')}),_0x996ab[_0x1739('0x2b')][_0x1739('0x3c')](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x25e7f6=new _0x49964f(this[_0x1739('0x14')]);return _0x25e7f6[_0x1739('0x7')]=_0x1c4d4b(this[_0x1739('0x14')],_0x1739('0x20')),_0x25e7f6[_0x1739('0x1b')]=_0x1c4d4b(this[_0x1739('0x14')],_0x1739('0x20')),_0x25e7f6[_0x1739('0x1d')]=_0x3a92d8[_0x1739('0x3')],_0x25e7f6[_0x1739('0x18')]({'attributes':{'class':_0x1739('0x26')}}),_0x25e7f6[_0x1739('0x1e')](_0x1739('0x12'))['to'](this[_0x1739('0xc')],'isReadOnly',_0x176566=>!_0x176566),_0x25e7f6[_0x1739('0x1e')](_0x1739('0x2a'))['to'](this[_0x1739('0xc')],_0x1739('0x1'),this['_model'],_0x1739('0x21'),(_0x784dfe,_0x5def37)=>_0x784dfe&&!_0x5def37),_0x25e7f6['on'](_0x1739('0x10'),()=>{this[_0x1739('0x38')](_0x1739('0x0'),this[_0x1739('0xc')]['id']);}),_0x25e7f6;}}
|