@ckeditor/ckeditor5-comments 0.0.0-nightly-20230818.1 → 0.0.0-nightly-20230820.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 _0x1a0a=['listenTo','config','collaboration.channelId','map','basic','importWord.commentsStyles','get','addCommentThread','editor','_handleImportedData','plugins','execute','importWord','collaboration_features'];(function(_0x5748dd,_0x1a0ac1){const _0x17db9f=function(_0x55d7a6){while(--_0x55d7a6){_0x5748dd['push'](_0x5748dd['shift']());}};_0x17db9f(++_0x1a0ac1);}(_0x1a0a,0x1d3));const _0x17db=function(_0x5748dd,_0x1a0ac1){_0x5748dd=_0x5748dd-0x0;let _0x17db9f=_0x1a0a[_0x5748dd];return _0x17db9f;};import{Plugin as _0x4eb688}from'ckeditor5/src/core';import{priorities as _0x34dbe7}from'ckeditor5/src/utils';import{Users as _0x38e886}from'ckeditor5-collaboration/src/collaboration-core';import _0x3017d2 from'../commentsrepository';export default class Y extends _0x4eb688{constructor(_0x542a6d){super(_0x542a6d),this['editor'][_0x17db('0xa')]['define'](_0x17db('0x0'),_0x17db('0xd'));}['afterInit'](){const _0x345e71=this[_0x17db('0x3')],_0xadaac4=_0x345e71['commands'][_0x17db('0x1')](_0x17db('0x7')),_0x477a2c=_0x345e71[_0x17db('0x5')][_0x17db('0x1')](_0x38e886);_0xadaac4&&(_0xadaac4['on'](_0x17db('0x6'),(_0x2dfb3f,[,_0x344a1e])=>{_0x344a1e[_0x17db('0x8')]={'comments':!0x0,'user_id':_0x477a2c['me']['id'],'comments_styles':this[_0x17db('0x3')][_0x17db('0xa')][_0x17db('0x1')](_0x17db('0x0'))};},{'priority':_0x34dbe7['high']+0xa}),this[_0x17db('0x9')](_0xadaac4,'dataInsert',this[_0x17db('0x4')]));}['_handleImportedData'](_0x161ef6,_0x241577){const {comment_threads:_0x1ab5c9}=_0x241577;_0x1ab5c9&&_0x1ab5c9['forEach'](({thread_id:_0xe3a24c,comments:_0x459f09,is_resolved:_0x2ebbcc})=>{const _0x24c948=new Date(),_0x3345b3=_0x459f09[_0x17db('0xc')](({author:_0x1ba01d,content:_0x29e382,created_at:_0x4d5f85})=>({'content':_0x29e382,'authorId':this[_0x17db('0x3')][_0x17db('0x5')]['get'](_0x38e886)['me']['id'],'createdAt':_0x24c948,'attributes':{'@external':{'authorName':_0x1ba01d,'createdAt':_0x4d5f85?new Date(_0x4d5f85):new Date(),'source':_0x17db('0x7')}}})),_0xa3f532=this[_0x17db('0x3')][_0x17db('0xa')][_0x17db('0x1')](_0x17db('0xb'));this[_0x17db('0x3')][_0x17db('0x5')]['get'](_0x3017d2)[_0x17db('0x2')]({'channelId':_0xa3f532,'threadId':_0xe3a24c,'comments':_0x3345b3,'resolvedAt':_0x2ebbcc?_0x24c948:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x216e=['end','data','childCount','ready','get','view','change','getRoot','assign','placeholderElement','initialData','init','initPlugins','model','then','destroy','low','focus','_updatePlaceholder','create','config','placeholder','plugins','defaultPlugins','document','name','editing','change:placeholder','getChild','setSelection','fire'];(function(_0x26c4ce,_0x216e70){const _0x373492=function(_0x3b6c84){while(--_0x3b6c84){_0x26c4ce['push'](_0x26c4ce['shift']());}};_0x373492(++_0x216e70);}(_0x216e,0x106));const _0x3734=function(_0x26c4ce,_0x216e70){_0x26c4ce=_0x26c4ce-0x0;let _0x373492=_0x216e[_0x26c4ce];return _0x373492;};import{Editor as _0x5c0005,DataApiMixin as _0x22a457}from'ckeditor5/src/core';import _0x139cec from'./commenteditorui';import{ObservableMixin as _0x4a666d}from'ckeditor5/src/utils';import{enablePlaceholder as _0x16c3a2,disablePlaceholder as _0x225cc4}from'ckeditor5/src/engine';import{Clipboard as _0x2083a1}from'ckeditor5/src/clipboard';import{Enter as _0x2a199f,ShiftEnter as _0x3f4b17}from'ckeditor5/src/enter';import{SelectAll as _0x44b2ea}from'ckeditor5/src/select-all';import{Typing as _0x5e1b00}from'ckeditor5/src/typing';import{Undo as _0x3e8be0}from'ckeditor5/src/undo';import{Paragraph as _0x19f65d}from'ckeditor5/src/paragraph';const Kt=[_0x2083a1,_0x2a199f,_0x3f4b17,_0x44b2ea,_0x5e1b00,_0x3e8be0,_0x19f65d];export default class Lt extends _0x4a666d(_0x22a457(_0x5c0005)){constructor(_0x51a56a={}){(_0x51a56a=Object[_0x3734('0x19')]({},_0x51a56a))[_0x3734('0x8')]||(_0x51a56a[_0x3734('0x8')]=Lt['defaultPlugins']),super(_0x51a56a),this['ui']=new _0x139cec(this),this['set']('placeholder',''),this['model'][_0x3734('0xa')]['on']('change',()=>this[_0x3734('0x4')](),{'priority':_0x3734('0x2')}),this['on'](_0x3734('0xd'),()=>this['_updatePlaceholder']()),this[_0x3734('0x1e')][_0x3734('0xa')]['createRoot']();}[_0x3734('0x5')](){const _0x45f361=this[_0x3734('0x6')][_0x3734('0x15')](_0x3734('0x1b'))||'';return this[_0x3734('0x1d')]()[_0x3734('0x0')](()=>this['ui'][_0x3734('0x1c')]())[_0x3734('0x0')](()=>this[_0x3734('0x12')]['init'](_0x45f361))[_0x3734('0x0')](()=>this[_0x3734('0x10')](_0x3734('0x14')));}['destroy'](){return super[_0x3734('0x1')]()[_0x3734('0x0')](()=>this['ui'][_0x3734('0x1')]());}[_0x3734('0x3')](){this[_0x3734('0x1e')][_0x3734('0x17')](_0x300327=>{const _0x114227=this['model']['document'][_0x3734('0x18')](),_0x261bed=_0x114227&&_0x114227[_0x3734('0xe')](_0x114227[_0x3734('0x13')]-0x1);_0x300327[_0x3734('0xf')](_0x261bed,_0x3734('0x11')),this[_0x3734('0xc')][_0x3734('0x16')][_0x3734('0x3')]();});}[_0x3734('0x4')](){const _0x1fc75b=this['editing'][_0x3734('0x16')],_0x515df8=_0x1fc75b[_0x3734('0xa')][_0x3734('0x18')](),_0x1418a5=_0x515df8[_0x3734('0xe')](0x0);_0x515df8[_0x3734('0x13')]>0x1||!_0x1418a5||'p'!=_0x1418a5[_0x3734('0xb')]?this[_0x3734('0x1a')]&&this[_0x3734('0x1a')][_0x3734('0x7')]&&(_0x225cc4(_0x1fc75b,this[_0x3734('0x1a')]),this[_0x3734('0x1a')]=void 0x0):(this[_0x3734('0x7')]&&(_0x1418a5[_0x3734('0x7')]=this[_0x3734('0x7')]),_0x16c3a2({'view':_0x1fc75b,'element':_0x1418a5,'keepOnFocus':!0x0}),this[_0x3734('0x1a')]=_0x1418a5);}}Lt[_0x3734('0x9')]=Kt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x476c=['editing','setEditableElement','rootName','init','element','editable','fire','ready','name','destroy','bind','isFocused','document','view','render'];(function(_0x5ca0e3,_0x476cda){const _0x53d3de=function(_0x1035fd){while(--_0x1035fd){_0x5ca0e3['push'](_0x5ca0e3['shift']());}};_0x53d3de(++_0x476cda);}(_0x476c,0x1e9));const _0x53d3=function(_0x5ca0e3,_0x476cda){_0x5ca0e3=_0x5ca0e3-0x0;let _0x53d3de=_0x476c[_0x5ca0e3];return _0x53d3de;};import{EditorUI as _0x203cf1}from'ckeditor5/src/ui';import _0x15224a from'./commenteditoruiview';export default class jt extends _0x203cf1{constructor(_0x247780){super(_0x247780),this[_0x53d3('0x4')]=new _0x15224a(_0x247780['locale'],_0x247780[_0x53d3('0x6')]['view']);}get['element'](){return this[_0x53d3('0x4')]['element'];}[_0x53d3('0x9')](){const _0x3b1f12=this['editor'][_0x53d3('0x6')][_0x53d3('0x4')],_0xffea07=this[_0x53d3('0x4')]['editable'],_0x156caa=_0x3b1f12[_0x53d3('0x3')]['getRoot']();_0xffea07[_0x53d3('0xe')]=_0x156caa[_0x53d3('0x8')],this['view'][_0x53d3('0x5')]();const _0xc782fc=_0xffea07[_0x53d3('0xa')];this[_0x53d3('0x7')](_0xffea07[_0x53d3('0xe')],_0xc782fc),this[_0x53d3('0x4')][_0x53d3('0xb')][_0x53d3('0x1')](_0x53d3('0x2'))['to'](this['focusTracker']),_0x3b1f12['attachDomRoot'](_0xc782fc),this[_0x53d3('0xc')](_0x53d3('0xd'));}[_0x53d3('0x0')](){super[_0x53d3('0x0')](),this['view'][_0x53d3('0x0')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bcb=['presentation','_voiceLabelView','div','extendTemplate','Comment\x20editor','ck-voice-label','text','element','ck-comment__input','editable','cke-editor__aria-label_','ck-editor__main','uiLanguage','_createVoiceLabel','uiLanguageDirection','focus','add','ck-rounded-corners','ck-reset'];(function(_0x306f55,_0x3bcbc3){const _0x5c900e=function(_0x445e79){while(--_0x445e79){_0x306f55['push'](_0x306f55['shift']());}};_0x5c900e(++_0x3bcbc3);}(_0x3bcb,0x12f));const _0x5c90=function(_0x306f55,_0x3bcbc3){_0x306f55=_0x306f55-0x0;let _0x5c900e=_0x3bcb[_0x306f55];return _0x5c900e;};import{InlineEditableUIView as _0x55acb7,EditorUIView as _0x29e059,LabelView as _0x8ab55c}from'ckeditor5/src/ui';import{uid as _0x3ec3fa}from'ckeditor5/src/utils';import{getTranslation as _0x3708cf}from'../../../utils/common-translations';export default class Nt extends _0x29e059{constructor(_0x4a0132,_0x1828fe){super(_0x4a0132);const _0x3fa4f0=_0x3ec3fa();this['main']=this['createCollection'](),this[_0x5c90('0xa')]=new _0x55acb7(_0x4a0132,_0x1828fe),this[_0x5c90('0x2')]=this[_0x5c90('0xe')](_0x3fa4f0,_0x4a0132),this['setTemplate']({'tag':_0x5c90('0x3'),'attributes':{'class':[_0x5c90('0x0'),'ck-editor',_0x5c90('0x12'),_0x5c90('0x9')],'role':'comment','dir':_0x4a0132[_0x5c90('0xf')],'lang':_0x4a0132[_0x5c90('0xd')],'aria-labelledby':_0x5c90('0xb')+_0x3fa4f0},'children':[this[_0x5c90('0x2')],{'tag':_0x5c90('0x3'),'attributes':{'class':_0x5c90('0xc'),'role':_0x5c90('0x1')},'children':this['main']}]});}['render'](){super['render'](),this['main'][_0x5c90('0x11')](this[_0x5c90('0xa')]);}[_0x5c90('0x10')](){this[_0x5c90('0xa')][_0x5c90('0x8')]['focus']();}[_0x5c90('0xe')](_0x3b4e35,_0x570f51){const _0x50cbba=new _0x8ab55c();return _0x50cbba[_0x5c90('0x7')]=_0x3708cf(_0x570f51,_0x5c90('0x5')),_0x50cbba[_0x5c90('0x4')]({'attributes':{'id':'ck-editor__aria-label_'+_0x3b4e35,'class':_0x5c90('0x6')}}),_0x50cbba;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x6440=['resolveCommentThread','remove','_localUser','reopenCommentThread','updateComment','submit','getComment','_isAttached','isResolved','destroy','stopListening','removeComment','resolve','listenTo','removeCommentThread','reopen','view','model','addComment','submitCommentThread'];(function(_0x3c55d4,_0x644093){var _0x3dfdd6=function(_0x51d487){while(--_0x51d487){_0x3c55d4['push'](_0x3c55d4['shift']());}};_0x3dfdd6(++_0x644093);}(_0x6440,0x161));var _0x3dfd=function(_0x3c55d4,_0x644093){_0x3c55d4=_0x3c55d4-0x0;var _0x3dfdd6=_0x6440[_0x3c55d4];return _0x3dfdd6;};import{ObservableMixin as _0x44a6d8}from'ckeditor5/src/utils';export default class ct extends _0x44a6d8(){constructor(_0x533ee5,_0x2391a5){super(),this[_0x3dfd('0x4')]=_0x533ee5,this[_0x3dfd('0x4')][_0x3dfd('0xe')]=!0x0,this[_0x3dfd('0x3')]=_0x2391a5,this['listenTo'](_0x2391a5,_0x3dfd('0x6'),()=>this['submit']()),this['listenTo'](_0x2391a5,_0x3dfd('0x1'),()=>this[_0x3dfd('0x8')]()),this[_0x3dfd('0x0')](_0x2391a5,_0x3dfd('0x7'),()=>this[_0x3dfd('0x13')]()),this['listenTo'](_0x2391a5,_0x3dfd('0xa'),()=>this[_0x3dfd('0x2')]()),this[_0x3dfd('0x0')](_0x2391a5,_0x3dfd('0x5'),(_0x415897,_0x1c40cf)=>this['addComment'](_0x1c40cf)),this[_0x3dfd('0x0')](_0x2391a5,_0x3dfd('0xb'),(_0x5925db,_0x32cc79,_0x2b39c9)=>this[_0x3dfd('0xb')](_0x32cc79,_0x2b39c9)),this['listenTo'](_0x2391a5,_0x3dfd('0x12'),(_0x174212,_0x3669c5)=>this[_0x3dfd('0x12')](_0x3669c5));}[_0x3dfd('0xc')](){this[_0x3dfd('0x4')][_0x3dfd('0xc')]();}[_0x3dfd('0x8')](){this[_0x3dfd('0x4')][_0x3dfd('0x8')]();}[_0x3dfd('0x13')](){this[_0x3dfd('0x4')]['isResolved']||this[_0x3dfd('0x4')][_0x3dfd('0x13')]();}['reopen'](){this['model'][_0x3dfd('0xf')]&&this['model'][_0x3dfd('0x2')]();}['addComment'](_0xc50e4d){this[_0x3dfd('0x4')][_0x3dfd('0x5')]({'content':_0xc50e4d,'authorId':this['view'][_0x3dfd('0x9')]['id']});}[_0x3dfd('0xb')](_0x44e826,_0x387212){this[_0x3dfd('0x4')]['getComment'](_0x44e826)['update']({'content':_0x387212});}[_0x3dfd('0x12')](_0x1a79f3){this[_0x3dfd('0x4')][_0x3dfd('0xd')](_0x1a79f3)[_0x3dfd('0x8')]();}[_0x3dfd('0x10')](){this[_0x3dfd('0x11')](),this[_0x3dfd('0x4')]['_isAttached']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3cb5=['commentThreadHeaderView','submit','Comment','Reply\x20to\x20reopen\x20discussion...','editorDestroyed','Reply','submitLabel','focus','showInput','set','_createCommentThreadInputView','addComment','cancel','resolveCommentThread','canComment','isSubmitted','_localUser','delegate','removeCommentThread','_config','fire','disabledSubmit','CommentView','_model','hasDirtyComment','value','assign','editorConfig','isActive','removeComment','locale','bind','editorReady','length','isResolvable','submitCommentThread','Reply...','reopenCommentThread','commentThreadInputView','commentsListView','destroy','commentInputView','isResolved','isDirty','change:isActive','Write\x20a\x20comment...','isReadOnly','updateComment'];(function(_0xd3384a,_0x3cb58f){const _0x3e01d8=function(_0x4228a9){while(--_0x4228a9){_0xd3384a['push'](_0xd3384a['shift']());}};_0x3e01d8(++_0x3cb58f);}(_0x3cb5,0x9b));const _0x3e01=function(_0xd3384a,_0x3cb58f){_0xd3384a=_0xd3384a-0x0;let _0x3e01d8=_0x3cb5[_0xd3384a];return _0x3e01d8;};import{View as _0x429bfd}from'ckeditor5/src/ui';import _0x5404fb from'./commentthreadinputview';import _0x570085 from'./commentslistview';import _0x43346c from'./commentthreadheaderview';import{getTranslation as _0x341c16}from'../../../utils/common-translations';export default class Tt extends _0x429bfd{constructor(_0x325094,_0x4f4455,_0x59b17f,_0x355f9f){super(_0x325094),this[_0x3e01('0x2e')](_0x3e01('0x11'),!0x1),this[_0x3e01('0x2e')](_0x3e01('0x20'),!0x1),this[_0x3e01('0xc')]=_0x4f4455,this[_0x3e01('0x5')]=_0x59b17f,this[_0x3e01('0x8')]=_0x355f9f,this[_0x3e01('0x25')]=new _0x43346c(_0x325094,_0x4f4455),this[_0x3e01('0x25')][_0x3e01('0x6')](_0x3e01('0x1a'))['to'](this),this[_0x3e01('0x1c')]=new _0x570085(_0x325094,_0x4f4455,Object[_0x3e01('0xf')]({'CommentView':this[_0x3e01('0x8')][_0x3e01('0xb')]},_0x355f9f)),this[_0x3e01('0x1c')][_0x3e01('0x6')](_0x3e01('0x12'))['to'](this),this[_0x3e01('0x1c')][_0x3e01('0x6')](_0x3e01('0x24'))['to'](this),this[_0x3e01('0x1c')][_0x3e01('0x6')](_0x3e01('0x2'))['to'](this),this[_0x3e01('0x1c')][_0x3e01('0x6')]('editorReady')['to'](this),this['commentsListView'][_0x3e01('0x6')](_0x3e01('0x29'))['to'](this),this['commentsListView']['bind'](_0x3e01('0x11'))['to'](this),this[_0x3e01('0x2e')](_0x3e01('0x16'),this[_0x3e01('0x1c')][_0x3e01('0x16')]),this['bind']('length')['to'](this[_0x3e01('0x1c')],'length'),this['commentThreadInputView']=this[_0x3e01('0x2f')](),this[_0x3e01('0x1b')][_0x3e01('0x6')](_0x3e01('0x15'))['to'](this),this[_0x3e01('0x1b')]['delegate'](_0x3e01('0x29'))['to'](this),this['on']('removeComment',()=>this[_0x3e01('0x2c')]()),this['bind']('isDirty')['to'](this[_0x3e01('0x1c')],_0x3e01('0xd'),this[_0x3e01('0x1b')][_0x3e01('0x1e')],_0x3e01('0xe'),(_0x27025f,_0x21b820)=>_0x27025f||!!_0x21b820);}[_0x3e01('0x2c')](){this['element']['focus']();}['destroy'](){this[_0x3e01('0x20')]=!0x1,this[_0x3e01('0x1c')]['destroy'](),this[_0x3e01('0x1b')][_0x3e01('0x1d')](),super[_0x3e01('0x1d')]();}[_0x3e01('0x2f')](){const _0x31fb9a=new _0x5404fb(this[_0x3e01('0x13')],this[_0x3e01('0x5')],this[_0x3e01('0x8')][_0x3e01('0x10')]),_0x539fc8=_0x31fb9a[_0x3e01('0x1e')];return _0x31fb9a[_0x3e01('0x14')](_0x3e01('0x2d'))['to'](this,_0x3e01('0x11'),this['_model'],_0x3e01('0x23'),this['_model'],_0x3e01('0x3'),this[_0x3e01('0xc')],_0x3e01('0x1f'),_0x539fc8,_0x3e01('0xe'),(_0x48e21c,_0x2e2caf,_0x4da5a3,_0x4ea6be,_0x2e1af8)=>!!_0x2e1af8||_0x4ea6be&&_0x4da5a3&&!_0x2e2caf||_0x48e21c&&_0x4da5a3&&!_0x2e2caf),_0x539fc8[_0x3e01('0x14')]('placeholder')['to'](this,_0x3e01('0x16'),this[_0x3e01('0xc')],_0x3e01('0x17'),this[_0x3e01('0xc')],_0x3e01('0x1f'),(_0x4474ac,_0x15a204,_0x29869c)=>{let _0x4816cb;return _0x4816cb=_0x29869c&&_0x15a204?_0x3e01('0x28'):_0x4474ac?_0x3e01('0x19'):_0x3e01('0x22'),_0x341c16(this[_0x3e01('0x13')],_0x4816cb);}),_0x539fc8[_0x3e01('0x14')](_0x3e01('0x2b'))['to'](this,_0x3e01('0x16'),_0x465a54=>_0x341c16(this[_0x3e01('0x13')],_0x465a54?_0x3e01('0x2a'):_0x3e01('0x27'))),_0x539fc8['on'](_0x3e01('0x26'),(_0x288d01,_0x4a15b6)=>{this[_0x3e01('0x9')](_0x3e01('0x0'),_0x4a15b6),this[_0x3e01('0xc')][_0x3e01('0x1f')]&&this['_model'][_0x3e01('0x17')]&&this[_0x3e01('0x9')](_0x3e01('0x1a'),this[_0x3e01('0xc')]['id']),this[_0x3e01('0xc')][_0x3e01('0x4')]||this['fire'](_0x3e01('0x18'));}),_0x539fc8['on']('cancel',()=>{this[_0x3e01('0x2c')]();}),_0x539fc8[_0x3e01('0x14')](_0x3e01('0xa'))['to'](this[_0x3e01('0xc')],_0x3e01('0x23')),_0x539fc8['on'](_0x3e01('0x1'),_0x170d77=>{0x0==this['length']&&(this['fire'](_0x3e01('0x7')),_0x170d77['stop']());}),this['on'](_0x3e01('0x21'),(_0x3001e7,_0x32750b,_0xca4f22)=>{_0xca4f22||this[_0x3e01('0x16')]||_0x539fc8['value']||this[_0x3e01('0x9')](_0x3e01('0x7'));}),_0x31fb9a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4fbc=['updateComment','_createCommentContentView','disabledSubmit','delegate','Save','set','content','cancel','focus','editorReady','_model','bind','editorConfig','initialData','visibleView','isReadOnly','locale','isCollapsed','createEditor','remove','add','destroy','value','switchToDisplayMode','fire','createCollection','_config','once','get','submitLabel','isEditMode','editorDestroyed','isSystemComment','submit','collapse','element'];(function(_0x4cdc6a,_0x4fbc67){const _0x561d53=function(_0x4a79d8){while(--_0x4a79d8){_0x4cdc6a['push'](_0x4cdc6a['shift']());}};_0x561d53(++_0x4fbc67);}(_0x4fbc,0x1a7));const _0x561d=function(_0x4cdc6a,_0x4fbc67){_0x4cdc6a=_0x4cdc6a-0x0;let _0x561d53=_0x4fbc[_0x4cdc6a];return _0x561d53;};import{View as _0xfbb41b}from'ckeditor5/src/ui';import{trimHtml as _0x2f8139}from'ckeditor5-collaboration/src/collaboration-core';import _0x3d758d from'./commentcontentview';import _0x1b2d57 from'./commentinputview';import{getTranslation as _0x50319f}from'../../../utils/common-translations';export default class Yt extends _0xfbb41b{constructor(_0x321fe2,_0x3d952f,_0x4767ff){super(_0x321fe2),this[_0x561d('0x13')]=_0x3d952f,this[_0x561d('0x23')]=_0x4767ff,this[_0x561d('0x5')]=!!this['_config']['isSystemComment'],this[_0x561d('0xe')](_0x561d('0x3'),!0x1),this[_0x561d('0xe')](_0x561d('0x1a'),!0x0),this[_0x561d('0x17')]=this[_0x561d('0x22')](),this[_0x561d('0x17')][_0x561d('0x1d')](this['_createCommentContentView']());}['expand'](){this[_0x561d('0x1a')]=!0x1;}[_0x561d('0x7')](){this[_0x561d('0x3')]||(this[_0x561d('0x1a')]=!0x0);}[_0x561d('0x11')](){this[_0x561d('0x8')][_0x561d('0x11')]();}async['destroy'](){await this[_0x561d('0x17')][_0x561d('0x1')](0x0)[_0x561d('0x1e')](),super[_0x561d('0x1e')]();}['switchToEditMode'](){this['isEditMode']||(this[_0x561d('0x3')]=!0x0,this[_0x561d('0x17')][_0x561d('0x1c')](0x0)['destroy'](),this[_0x561d('0x17')][_0x561d('0x1d')](this['_createCommentInputView']()));}[_0x561d('0x20')](){this['isEditMode']&&(this[_0x561d('0x3')]=!0x1,this[_0x561d('0x17')]['remove'](0x0)[_0x561d('0x1e')](),this[_0x561d('0x17')]['add'](this[_0x561d('0xa')]()));}[_0x561d('0xa')](){const _0x66e8cd=new _0x3d758d(this[_0x561d('0x19')]);return _0x66e8cd[_0x561d('0x14')]('content')['to'](this[_0x561d('0x13')],_0x561d('0xf'),this,_0x561d('0x1a'),(_0x51f7f8,_0x50bf0c)=>_0x50bf0c?_0x2f8139(_0x51f7f8,{'limit':this[_0x561d('0x23')]['maxCommentCharsWhenCollapsed']}):_0x51f7f8),_0x66e8cd;}['_createCommentInputView'](){this[_0x561d('0x23')][_0x561d('0x15')]||(this[_0x561d('0x23')]['editorConfig']={}),this[_0x561d('0x23')][_0x561d('0x15')][_0x561d('0x16')]=this[_0x561d('0x13')][_0x561d('0xf')];const _0x365a12=new _0x1b2d57(this[_0x561d('0x19')],this['_config']['editorConfig']);return _0x365a12[_0x561d('0x1f')]=this[_0x561d('0x13')][_0x561d('0xf')],_0x365a12['bind'](_0x561d('0xb'))['to'](this[_0x561d('0x13')],_0x561d('0x18')),_0x365a12[_0x561d('0x2')]=_0x50319f(this[_0x561d('0x19')],_0x561d('0xd')),_0x365a12['on'](_0x561d('0x6'),(_0x2b9095,_0x4ca155)=>{this[_0x561d('0x21')](_0x561d('0x9'),this['_model']['id'],_0x4ca155),this['switchToDisplayMode'](),this[_0x561d('0x11')]();}),_0x365a12['on'](_0x561d('0x10'),()=>{this['switchToDisplayMode'](),this[_0x561d('0x11')]();}),_0x365a12[_0x561d('0x0')](_0x561d('0x12'),()=>{_0x365a12['focus']();}),_0x365a12[_0x561d('0x1b')](),_0x365a12['delegate'](_0x561d('0x12'))['to'](this),_0x365a12[_0x561d('0xc')](_0x561d('0x4'))['to'](this),_0x365a12;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33c7=['ck-thread__comment-count','set','count','bindTemplate','setTemplate'];(function(_0x2425dd,_0x33c724){const _0x36a746=function(_0x46a647){while(--_0x46a647){_0x2425dd['push'](_0x2425dd['shift']());}};_0x36a746(++_0x33c724);}(_0x33c7,0xfb));const _0x36a7=function(_0x2425dd,_0x33c724){_0x2425dd=_0x2425dd-0x0;let _0x36a746=_0x33c7[_0x2425dd];return _0x36a746;};import{View as _0x4e2681}from'ckeditor5/src/ui';import{getTranslation as _0x5ab2b0}from'../../../utils/common-translations';export default class Zt extends _0x4e2681{constructor(_0x124964){super(_0x124964);const _0x3a6549=this[_0x36a7('0x2')];this[_0x36a7('0x0')](_0x36a7('0x1'),void 0x0),this[_0x36a7('0x3')]({'tag':'li','attributes':{'class':_0x36a7('0x4')},'children':[{'text':_0x3a6549['to']('count',_0x2f2f05=>_0x5ab2b0(_0x124964,'NUMBER_OF_COMMENTS',_0x2f2f05))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x490f=['set','innerHTML','div','element','render','ck-annotation__content','change:content','setTemplate','content'];(function(_0x437690,_0x490f04){var _0x21dbc1=function(_0x571575){while(--_0x571575){_0x437690['push'](_0x437690['shift']());}};_0x21dbc1(++_0x490f04);}(_0x490f,0x17f));var _0x21db=function(_0x437690,_0x490f04){_0x437690=_0x437690-0x0;var _0x21dbc1=_0x490f[_0x437690];return _0x21dbc1;};import{View as _0x41e705}from'ckeditor5/src/ui';export default class Ut extends _0x41e705{constructor(_0x5bf20e){super(_0x5bf20e),this[_0x21db('0x4')](_0x21db('0x3'),''),this[_0x21db('0x2')]({'tag':_0x21db('0x6'),'attributes':{'class':['ck-comment__content',_0x21db('0x0')]}});}[_0x21db('0x8')](){super['render'](),this['on'](_0x21db('0x1'),(_0x4f993f,_0x56b854,_0x5aa550)=>{this['element'][_0x21db('0x5')]=_0x5aa550;}),this[_0x21db('0x7')][_0x21db('0x5')]=this[_0x21db('0x3')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x412d=['element','initialData','editorReady','submitLabel','bind','value','focusNext','create','add','placeholder','Esc','forEach','low','showButtons','view','cancelButtonView','shift\x20+\x20tab','_createSubmitButton','cancel','tab','stop','execute','TOO_LONG_COMMENT_ALERT','label','setData','disabledSubmit','model','withText','Reply','ck-comment__input-actions--active','editor','_isDestroyed','createEditor','focus','bindTemplate','focusTracker','_initializeFocusCycling','length','_editorConfig','fire','then','ck-comment__input-actions','keystrokes','ck-comment__input-wrapper','change','render','ck-comment__input-actions--cancel','listenTo','Cancel','_editorCreationPromise','set','extendTemplate','document','_createCancelButton','high','destroy','submit','insertBefore','submitButtonView'];(function(_0x393a79,_0x412d4d){const _0x1818ba=function(_0x14b817){while(--_0x14b817){_0x393a79['push'](_0x393a79['shift']());}};_0x1818ba(++_0x412d4d);}(_0x412d,0x154));const _0x1818=function(_0x393a79,_0x412d4d){_0x393a79=_0x393a79-0x0;let _0x1818ba=_0x412d[_0x393a79];return _0x1818ba;};import{View as _0x4de88d,ViewCollection as _0x414954,FocusCycler as _0x5b6754,ButtonView as _0x1a2110}from'ckeditor5/src/ui';import{FocusTracker as _0x2d1691,KeystrokeHandler as _0x1477b7}from'ckeditor5/src/utils';import _0x48b217 from'../commenteditor/commenteditor';import{getTranslation as _0x3400bd}from'../../../utils/common-translations';export default class Xt extends _0x4de88d{constructor(_0x8898ef,_0x29ad9b={}){super(_0x8898ef),this['editor']=null,this[_0x1818('0x34')]=_0x29ad9b,this[_0x1818('0x38')]=new _0x1477b7(),this[_0x1818('0x31')]=new _0x2d1691(),this[_0x1818('0x5')](_0x1818('0x13'),_0x29ad9b[_0x1818('0xf')]||''),this[_0x1818('0x5')]('disabledSubmit',!0x1),this[_0x1818('0x5')](_0x1818('0x1b'),!0x0),this[_0x1818('0x5')](_0x1818('0x17'),_0x3400bd(_0x8898ef,'Reply...')),this['set'](_0x1818('0x11'),_0x3400bd(_0x8898ef,_0x1818('0x2a'))),this[_0x1818('0xd')]=this[_0x1818('0x1f')](),this[_0x1818('0x1d')]=this[_0x1818('0x8')](),this['setTemplate']({'tag':'div','attributes':{'class':[_0x1818('0x39')]},'children':[{'tag':'div','attributes':{'class':[_0x1818('0x37'),this[_0x1818('0x30')]['if']('showButtons',_0x1818('0x2b'))]},'children':[this[_0x1818('0xd')],this[_0x1818('0x1d')]]}]}),this['keystrokes'][_0x1818('0x5')](_0x1818('0x18'),(_0x53f271,_0x350ccf)=>{this['cancelButtonView'][_0x1818('0x35')](_0x1818('0x23')),_0x350ccf();}),this['on'](_0x1818('0xb'),(_0x147937,_0x117ba9)=>{_0x117ba9[_0x1818('0x33')]>0xfde8?(alert(_0x3400bd(_0x8898ef,_0x1818('0x24'),[_0x117ba9['length'],0xfde8])),_0x147937[_0x1818('0x22')]()):this[_0x1818('0x2c')]['setData']('');},{'priority':_0x1818('0x9')});}[_0x1818('0x0')](){super[_0x1818('0x0')](),this[_0x1818('0x38')][_0x1818('0x2')](this[_0x1818('0xe')]),this[_0x1818('0x31')][_0x1818('0x16')](this['element']);}[_0x1818('0x2e')](){return this['editor']||(this[_0x1818('0x2c')]=new _0x48b217(this[_0x1818('0x34')]),this[_0x1818('0x4')]=this[_0x1818('0x2c')][_0x1818('0x15')]()[_0x1818('0x36')](()=>{if(this[_0x1818('0x2d')])return;const _0x37e44d=this[_0x1818('0x2c')];this[_0x1818('0xe')][_0x1818('0xc')](_0x37e44d['ui']['element'],this[_0x1818('0xe')]['firstChild']),_0x37e44d[_0x1818('0x28')][_0x1818('0x7')]['on'](_0x1818('0x3a'),()=>this[_0x1818('0x13')]=_0x37e44d['getData']()),_0x37e44d[_0x1818('0x12')](_0x1818('0x17'))['to'](this),this[_0x1818('0x32')](this['editor']),this[_0x1818('0x35')](_0x1818('0x10'),this[_0x1818('0x2c')]);})),this[_0x1818('0x4')];}[_0x1818('0x2f')](){this[_0x1818('0x2c')]&&this[_0x1818('0x2c')][_0x1818('0x2f')]();}async[_0x1818('0xa')](){this[_0x1818('0x2d')]||(this[_0x1818('0x2d')]=!0x0,this[_0x1818('0x2c')]&&(await this[_0x1818('0x4')],await this[_0x1818('0x2c')]['destroy'](),this['fire']('editorDestroyed',this[_0x1818('0x2c')])),await super[_0x1818('0xa')]());}['_createSubmitButton'](){const {locale:_0x1f1f91}=this,_0x363a12=new _0x1a2110(_0x1f1f91);return _0x363a12[_0x1818('0x6')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x363a12[_0x1818('0x29')]=!0x0,_0x363a12['bind'](_0x1818('0x25'))['to'](this,_0x1818('0x11')),_0x363a12['on'](_0x1818('0x23'),()=>{this[_0x1818('0x35')]('submit',this[_0x1818('0x13')]);}),_0x363a12[_0x1818('0x12')]('isEnabled')['to'](this,_0x1818('0x13'),this,_0x1818('0x27'),(_0x5d71cc,_0x3e1291)=>!_0x3e1291&&!!_0x5d71cc['trim']()),_0x363a12;}[_0x1818('0x8')](){const {locale:_0x5bb01e}=this,_0x4baa6b=new _0x1a2110(_0x5bb01e);return _0x4baa6b[_0x1818('0x6')]({'attributes':{'class':[_0x1818('0x1')]}}),_0x4baa6b[_0x1818('0x25')]=_0x3400bd(_0x5bb01e,_0x1818('0x3')),_0x4baa6b[_0x1818('0x29')]=!0x0,_0x4baa6b['on'](_0x1818('0x23'),()=>{this[_0x1818('0x2c')][_0x1818('0x26')](''),this[_0x1818('0x35')](_0x1818('0x20'));}),_0x4baa6b;}[_0x1818('0x32')](_0x8af469){const _0x2c8eb7=this[_0x1818('0x31')],_0x31c94f=new _0x414954();[_0x8af469['ui'][_0x1818('0x1c')],this[_0x1818('0xd')],this[_0x1818('0x1d')]][_0x1818('0x19')](_0x39219b=>{_0x31c94f[_0x1818('0x16')](_0x39219b),_0x2c8eb7[_0x1818('0x16')](_0x39219b[_0x1818('0xe')]);});const _0x5d9de2=new _0x5b6754({'focusables':_0x31c94f,'focusTracker':_0x2c8eb7});this[_0x1818('0x38')][_0x1818('0x5')](_0x1818('0x21'),(_0x1d6e46,_0x1082e5)=>{_0x5d9de2[_0x1818('0x14')](),_0x1082e5();},{'priority':'low'}),this[_0x1818('0x38')][_0x1818('0x5')](_0x1818('0x1e'),(_0x3f39ef,_0x30dbd5)=>{_0x5d9de2['focusPrevious'](),_0x30dbd5();},{'priority':_0x1818('0x1a')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53b9=['_focusables','EMPTY_COMMENTS_ARCHIVE','_focusCycler','COMMENTS_ARCHIVE','shift\x20+\x20tab','listenTo','high','setTemplate','_focusTracker','_keystrokes','div','remove','bindTemplate','element','isActive','arrowright','length','isEmpty','tab','destroy','render','stopPropagation','set','focus','ck-hidden','ck-comments-archive__info','ck-comments-archive'];(function(_0x41e3c9,_0x53b92e){const _0x48025e=function(_0x4df88d){while(--_0x4df88d){_0x41e3c9['push'](_0x41e3c9['shift']());}};_0x48025e(++_0x53b92e);}(_0x53b9,0x179));const _0x4802=function(_0x41e3c9,_0x53b92e){_0x41e3c9=_0x41e3c9-0x0;let _0x48025e=_0x53b9[_0x41e3c9];return _0x48025e;};import{View as _0x2fac6d,FocusCycler as _0xe54f05}from'ckeditor5/src/ui';import{FocusTracker as _0x54d677,KeystrokeHandler as _0x495e59}from'ckeditor5/src/utils';import{getTranslation as _0x3d2b8b}from'../../../utils/common-translations';export default class K extends _0x2fac6d{constructor(_0xa8cbf,_0x2f1c39){super(_0xa8cbf),this[_0x4802('0x17')](_0x4802('0x12'),!_0x2f1c39[_0x4802('0x11')]),this['_focusTracker']=new _0x54d677(),this[_0x4802('0xa')]=new _0x495e59(),this[_0x4802('0x1')]=_0x2f1c39,this[_0x4802('0x3')]=new _0xe54f05({'focusables':this[_0x4802('0x1')],'focusTracker':this['_focusTracker'],'keystrokeHandler':this[_0x4802('0xa')],'actions':{'focusPrevious':_0x4802('0x5'),'focusNext':_0x4802('0x13')}}),this[_0x4802('0x6')](_0x2f1c39,'add',()=>{this[_0x4802('0x12')]=!0x1;}),this[_0x4802('0x6')](_0x2f1c39,_0x4802('0xc'),(_0x595a18,_0x582cf8)=>{_0x582cf8[_0x4802('0xf')]&&this[_0x4802('0x18')](),_0x2f1c39['length']||(this['isEmpty']=!0x0);});const _0x61be71=this[_0x4802('0xd')];this[_0x4802('0x8')]({'tag':'div','attributes':{'dir':'auto','class':['ck',_0x4802('0x0')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':['ck-comments-archive__header\x20']},'children':[{'text':_0x3d2b8b(_0xa8cbf,_0x4802('0x4'))}]},{'tag':_0x4802('0xb'),'attributes':{'class':['ck-comments-archive__content']},'children':[{'tag':'div','children':_0x2f1c39},{'tag':'p','attributes':{'class':[_0x4802('0x1a'),_0x61be71['if'](_0x4802('0x12'),_0x4802('0x19'),_0x156ef5=>!_0x156ef5)]},'children':[{'text':_0x3d2b8b(_0xa8cbf,_0x4802('0x2'))}]}]}]});}[_0x4802('0x15')](){super[_0x4802('0x15')](),this[_0x4802('0xa')][_0x4802('0x6')](this[_0x4802('0xe')]);const _0x246934=_0x5f3bfe=>_0x5f3bfe[_0x4802('0x16')]();this[_0x4802('0xa')][_0x4802('0x17')](_0x4802('0x10'),_0x246934),this['_keystrokes'][_0x4802('0x17')]('arrowleft',_0x246934),this[_0x4802('0xa')][_0x4802('0x17')]('arrowup',_0x246934),this[_0x4802('0xa')]['set']('arrowdown',_0x246934),this[_0x4802('0x6')](this[_0x4802('0xe')],'selectstart',(_0x4cfa25,_0x58c835)=>{_0x58c835[_0x4802('0x16')]();},{'priority':_0x4802('0x7')});}['destroy'](){super[_0x4802('0x14')](),this[_0x4802('0x9')][_0x4802('0x14')](),this['_keystrokes'][_0x4802('0x14')]();}[_0x4802('0x18')](){this['element'][_0x4802('0x18')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42e2=['CommentView','comments','from','maxCommentsWhenCollapsed','destroy','equal','change:isActive','hasDirtyComment','removeComment','collapse','bind','commentViews','_rearrangeExpand','change:isEditMode','_rearrangeCollapse','authoredAt','ck-thread__comments','_findOptimalIndex','expand','_collapsedCommentsView','visibleViews','resolvedCommentView','maxThreadTotalWeight','_config','_shouldCollapse','_model','set','editorDestroyed','resolvedBy','listenTo','_updateHasDirtyComment','isActive','weight','isEditMode','locale','render','viewUid','Marked\x20as\x20resolved','_handleNewCommentModel','length','get','delete','refreshVisibleViews','setTemplate','element','delegate','maxCommentCharsWhenCollapsed','resolveCommentThread','_calculatePosition','_handleInfoComment','insert','remove','editorReady','focus','editorConfig','updateComment','add','_handleRemoveCommentModel'];(function(_0x47923c,_0x42e25f){const _0x28750b=function(_0x3aaeab){while(--_0x3aaeab){_0x47923c['push'](_0x47923c['shift']());}};_0x28750b(++_0x42e25f);}(_0x42e2,0x190));const _0x2875=function(_0x47923c,_0x42e25f){_0x47923c=_0x47923c-0x0;let _0x28750b=_0x42e2[_0x47923c];return _0x28750b;};import{View as _0x398ff0}from'ckeditor5/src/ui';import{diff as _0x26312f,Collection as _0x53e573}from'ckeditor5/src/utils';import{getTranslation as _0x5c8cdb}from'../../../utils/common-translations';import _0x56d115 from'./collapsedcommentsview';export default class wt extends _0x398ff0{constructor(_0x30a934,_0x50fedc,_0x30fd06){super(_0x30a934),this[_0x2875('0x20')](_0x2875('0xd'),!0x1),this[_0x2875('0x20')](_0x2875('0x2d'),_0x50fedc[_0x2875('0x7')][_0x2875('0x2d')]),this[_0x2875('0x20')](_0x2875('0x25'),!0x1),this[_0x2875('0x1f')]=_0x50fedc,this['_config']=_0x30fd06,this['commentViews']=this['createCollection'](),this[_0x2875('0x1a')]=this['createCollection'](),this['resolvedCommentView']=null,this[_0x2875('0x19')]=new _0x56d115(_0x30a934),this['_collapsedCommentsView'][_0x2875('0x10')]('count')['to'](this,_0x2875('0x2d'),_0x20d11f=>_0x20d11f-this[_0x2875('0x1d')][_0x2875('0x9')]);for(const _0x1757a4 of _0x50fedc[_0x2875('0x7')])this['_handleNewCommentModel'](_0x1757a4);this['_handleInfoComment'](),this[_0x2875('0x23')](_0x50fedc[_0x2875('0x7')],'add',(_0x2f63c8,_0x2a1cdf)=>{const _0x1bacfc=this[_0x2875('0x36')](_0x2a1cdf);this[_0x2875('0x2d')]++,this[_0x2875('0x2c')](_0x2a1cdf,_0x1bacfc),this[_0x2875('0x30')]();}),this[_0x2875('0x23')](_0x50fedc[_0x2875('0x7')],_0x2875('0x39'),(_0xe6d2f7,_0x1287a1)=>{this['length']--,this[_0x2875('0x5')](_0x1287a1),this['refreshVisibleViews']();}),this['listenTo'](_0x50fedc,'commentUpdated',()=>this[_0x2875('0x30')]()),this['listenTo'](_0x50fedc,'change:isResolved',()=>this[_0x2875('0x37')]()),this['on'](_0x2875('0xc'),()=>this[_0x2875('0x30')]()),this['on']('change:hasDirtyComment',()=>this[_0x2875('0x30')]()),this[_0x2875('0x31')]({'tag':'ul','attributes':{'class':[_0x2875('0x16')]},'children':this[_0x2875('0x1a')]});}get[_0x2875('0x1e')](){return this[_0x2875('0x1f')][_0x2875('0x26')]>this[_0x2875('0x1d')][_0x2875('0x1c')]&&!this[_0x2875('0x25')]&&!this[_0x2875('0xd')];}[_0x2875('0x29')](){super[_0x2875('0x29')](),this['refreshVisibleViews']();}[_0x2875('0x1')](){this[_0x2875('0x32')][_0x2875('0x1')]();}[_0x2875('0xa')](){this[_0x2875('0x19')]['destroy']();for(const _0x3a0f67 of this['commentViews'])_0x3a0f67[_0x2875('0xa')]();super[_0x2875('0xa')]();}['refreshVisibleViews'](){this['_shouldCollapse']?this[_0x2875('0x14')]():this[_0x2875('0x12')]();}[_0x2875('0x2c')](_0x1a6720,_0x2dcceb){const _0xed9689=new this[(_0x2875('0x1d'))][(_0x2875('0x6'))](this[_0x2875('0x28')],_0x1a6720,{'maxCommentCharsWhenCollapsed':this[_0x2875('0x1d')][_0x2875('0x34')],'formatDateTime':this[_0x2875('0x1d')]['formatDateTime'],'editorConfig':this[_0x2875('0x1d')]['editorConfig']});_0xed9689[_0x2875('0x2a')]=_0x1a6720['id'],_0xed9689[_0x2875('0x33')](_0x2875('0xe'))['to'](this),_0xed9689[_0x2875('0x33')](_0x2875('0x3'))['to'](this),_0xed9689[_0x2875('0x33')](_0x2875('0x35'))['to'](this),_0xed9689[_0x2875('0x33')](_0x2875('0x0'))['to'](this),_0xed9689['delegate'](_0x2875('0x21'))['to'](this),this[_0x2875('0x23')](_0xed9689,_0x2875('0x13'),()=>this['_updateHasDirtyComment']()),this[_0x2875('0x11')][_0x2875('0x4')](_0xed9689,_0x2dcceb);}[_0x2875('0x36')](_0x571e1e){const _0x3eddfb=this['_model']['_findOptimalIndex'](_0x571e1e);return this[_0x2875('0x1b')]?this[_0x2875('0x1b')][_0x2875('0x15')]>_0x571e1e['authoredAt']?_0x3eddfb-0x1:_0x3eddfb:_0x3eddfb-0x1;}[_0x2875('0x37')](){if(this[_0x2875('0x1f')][_0x2875('0x22')]&&this[_0x2875('0x1f')]['resolvedAt']){const _0x1ea1af={'id':'resolved','author':this[_0x2875('0x1f')]['resolvedBy'],'authoredAt':this[_0x2875('0x1f')]['resolvedAt'],'content':_0x5c8cdb(this[_0x2875('0x28')],_0x2875('0x2b')),'attributes':{}};this[_0x2875('0x1b')]=new this['_config'][(_0x2875('0x6'))](this[_0x2875('0x28')],_0x1ea1af,{'maxCommentCharsWhenCollapsed':this[_0x2875('0x1d')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x2875('0x1d')]['formatDateTime'],'editorConfig':this[_0x2875('0x1d')][_0x2875('0x2')],'isSystemComment':!0x0}),this[_0x2875('0x11')][_0x2875('0x4')](this[_0x2875('0x1b')],this['_model'][_0x2875('0x17')](_0x1ea1af));}else this[_0x2875('0x1b')]&&(this['commentViews'][_0x2875('0x39')](this[_0x2875('0x1b')]),this[_0x2875('0x1b')][_0x2875('0xa')](),this[_0x2875('0x1b')]=null);this[_0x2875('0x30')]();}[_0x2875('0x5')](_0x53a10b){const _0x7ec905=this[_0x2875('0x11')]['remove'](_0x53a10b['id']);this['stopListening'](_0x7ec905),_0x7ec905[_0x2875('0x27')]&&this['_updateHasDirtyComment'](),_0x7ec905[_0x2875('0xa')]();}[_0x2875('0x24')](){this[_0x2875('0xd')]=Array['from'](this['commentViews'])['some'](_0x3dac01=>_0x3dac01[_0x2875('0x27')]);}[_0x2875('0x14')](){const _0x38ab04=function(_0x22e45d){const _0x4d2954=new _0x53e573();for(const _0x566ef2 of _0x22e45d)_0x4d2954[_0x2875('0x4')](_0x566ef2);return _0x4d2954;}(this['commentViews']),_0x1be304=this[_0x2875('0x19')]['count'];for(let _0x454861=0x1;_0x454861<=_0x1be304;_0x454861++)_0x38ab04[_0x2875('0x39')](0x1);for(const _0x1e3491 of _0x38ab04)_0x1e3491[_0x2875('0xf')]();_0x1be304>0x0&&_0x38ab04[_0x2875('0x4')](this[_0x2875('0x19')],0x1),ss(_0x26312f(Array[_0x2875('0x8')](this['visibleViews']),Array[_0x2875('0x8')](_0x38ab04)),this[_0x2875('0x1a')],_0x38ab04);}['_rearrangeExpand'](){ss(_0x26312f(Array[_0x2875('0x8')](this[_0x2875('0x1a')]),Array[_0x2875('0x8')](this[_0x2875('0x11')])),this['visibleViews'],this[_0x2875('0x11')]);for(const _0x18b9a2 of this[_0x2875('0x1a')])_0x18b9a2[_0x2875('0x18')]();}}function ss(_0x34f1d2,_0x1f5ff5,_0x58c1cc){let _0x56d242=0x0;for(const _0xfc0933 of _0x34f1d2)switch(_0xfc0933){case _0x2875('0x38'):_0x1f5ff5['add'](_0x58c1cc[_0x2875('0x2e')](_0x56d242),_0x56d242),_0x56d242++;break;case _0x2875('0x2f'):_0x1f5ff5[_0x2875('0x39')](_0x56d242);break;case _0x2875('0xb'):_0x56d242++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5597=['reopenButtonView','bindTemplate','span','_trimContextValue','div','_attachContextActions','reopenCommentThread','Reopen','_createReopenButton','render','isReadOnly','context','offsetWidth','.ck-context','...','element','label','contextValue','isVisible','ck-annotation__actions','ck-context-wrapper','lastIndexOf','length','locale','value','querySelector','isResolvable','mouseleave','hasContext','execute','isEnabled','bind','.ck-context__value','substring','add','overlay','fire','ck-thread__header','_model','listenTo','ck-context','classList','icon','ck-context--quotes'];(function(_0x1fb7b3,_0x5597d3){const _0xf69654=function(_0x10f811){while(--_0x10f811){_0x1fb7b3['push'](_0x1fb7b3['shift']());}};_0xf69654(++_0x5597d3);}(_0x5597,0xe9));const _0xf696=function(_0x1fb7b3,_0x5597d3){_0x1fb7b3=_0x1fb7b3-0x0;let _0xf69654=_0x5597[_0x1fb7b3];return _0xf69654;};import{View as _0x14689d,ButtonView as _0x3c9877}from'ckeditor5/src/ui';import{getTranslation as _0x193882}from'../../../utils/common-translations';import _0x4676ef from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x14689d{constructor(_0x48f094,_0x470ef4){super(_0x48f094);const _0x1015c8=this[_0xf696('0x20')];this[_0xf696('0x19')]=_0x470ef4,this[_0xf696('0x1f')]=this[_0xf696('0x27')](),this[_0xf696('0x12')](_0xf696('0xf'))['to'](this[_0xf696('0x19')],_0xf696('0x2a'),_0x112a8c=>!!_0x112a8c),this['bind'](_0xf696('0x4'))['to'](this[_0xf696('0x19')],'context',_0x398c84=>_0x398c84&&_0x398c84['value']?this[_0xf696('0x22')](_0x398c84[_0xf696('0xb')]):_0x193882(this[_0xf696('0xa')],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':_0xf696('0x23'),'attributes':{'class':[_0xf696('0x18')]},'children':[{'tag':_0xf696('0x23'),'attributes':{'class':[_0xf696('0x7')]},'children':[{'tag':'div','attributes':{'class':[_0xf696('0x1b'),_0x1015c8['if']('hasContext',_0xf696('0x1e'))]},'children':[{'tag':_0xf696('0x21'),'attributes':{'class':['ck-context__value']},'children':[{'text':_0x1015c8['to'](_0xf696('0x4'))}]}]}]},{'tag':_0xf696('0x23'),'attributes':{'class':[_0xf696('0x6')]},'children':[this[_0xf696('0x1f')]]}]});}[_0xf696('0x28')](){super[_0xf696('0x28')](),this['_attachContextActions']();}[_0xf696('0x27')](){const _0x268ff8=new _0x3c9877(this[_0xf696('0xa')]);return _0x268ff8[_0xf696('0x3')]=_0x193882(this[_0xf696('0xa')],_0xf696('0x26')),_0x268ff8['tooltip']=_0x193882(this[_0xf696('0xa')],_0xf696('0x26')),_0x268ff8[_0xf696('0x1d')]=_0x4676ef,_0x268ff8['bind'](_0xf696('0x11'))['to'](this[_0xf696('0x19')],_0xf696('0x29'),_0x3839e2=>!_0x3839e2),_0x268ff8['bind'](_0xf696('0x5'))['to'](this['_model'],_0xf696('0xd')),_0x268ff8['on'](_0xf696('0x10'),()=>{this[_0xf696('0x17')](_0xf696('0x25'),this[_0xf696('0x19')]['id']);}),_0x268ff8;}[_0xf696('0x22')](_0xf50f5e){if(_0xf50f5e[_0xf696('0x9')]<0x96)return _0xf50f5e;const _0x3645d6=_0xf50f5e[_0xf696('0x8')]('\x20',0x93);return _0xf50f5e[_0xf696('0x14')](0x0,_0x3645d6>-0x1?_0x3645d6:0x93)+_0xf696('0x1');}[_0xf696('0x24')](){const _0x51417a=this[_0xf696('0x2')][_0xf696('0xc')](_0xf696('0x0')),_0x55a6ef=_0x51417a['querySelector'](_0xf696('0x13'));this[_0xf696('0x1a')](_0x51417a,'mouseenter',()=>{_0x55a6ef[_0xf696('0x2b')]<_0x55a6ef['scrollWidth']&&_0x51417a[_0xf696('0x1c')][_0xf696('0x15')](_0xf696('0x16'));}),this[_0xf696('0x1a')](_0x51417a,_0xf696('0xe'),()=>{_0x51417a['classList']['remove'](_0xf696('0x16'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3005=['showButtons','setTemplate','destroy','then','ck-comment__input-container--active','ck-thread__user','bind','ck-comment__input-container','extendTemplate','showInput','change:showInput','userView','editorDestroyed','editor','ck-thread__input','commentInputView','focusTracker','div','editorReady'];(function(_0x57ff6c,_0x3005f7){var _0x1c9d9b=function(_0x1c3e4c){while(--_0x1c3e4c){_0x57ff6c['push'](_0x57ff6c['shift']());}};_0x1c9d9b(++_0x3005f7);}(_0x3005,0x1d6));var _0x1c9d=function(_0x57ff6c,_0x3005f7){_0x57ff6c=_0x57ff6c-0x0;var _0x1c9d9b=_0x3005[_0x57ff6c];return _0x1c9d9b;};import{View as _0x40ee1b}from'ckeditor5/src/ui';import _0x2b2caf from'./commentinputview';import{UserView as _0x147107}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x40ee1b{constructor(_0x3cb3e7,_0x32f1b4,_0x17e075){super(_0x3cb3e7),this['commentInputView']=new _0x2b2caf(_0x3cb3e7,_0x17e075),this[_0x1c9d('0x1')][_0x1c9d('0xb')](_0x1c9d('0x5'))['to'](this[_0x1c9d('0x1')][_0x1c9d('0x2')],'isFocused',this['commentInputView'],'value',(_0x5e86c1,_0xb98056)=>_0x5e86c1||!!_0xb98056),this['set'](_0x1c9d('0xe'),!0x1),this['on'](_0x1c9d('0xf'),()=>{this[_0x1c9d('0xe')]&&!this['commentInputView'][_0x1c9d('0x12')]&&this[_0x1c9d('0x1')]['createEditor']();}),this[_0x1c9d('0x1')]['delegate'](_0x1c9d('0x4'))['to'](this),this[_0x1c9d('0x1')]['delegate'](_0x1c9d('0x11'))['to'](this),this['userView']=new _0x147107(_0x3cb3e7,_0x32f1b4),this[_0x1c9d('0x10')][_0x1c9d('0xd')]({'attributes':{'class':_0x1c9d('0xa')}}),this[_0x1c9d('0x1')][_0x1c9d('0xd')]({'attributes':{'class':_0x1c9d('0x0')}}),this[_0x1c9d('0x6')]({'tag':_0x1c9d('0x3'),'attributes':{'class':[_0x1c9d('0xc'),this['bindTemplate']['if']('showInput',_0x1c9d('0x9'))]},'children':[this[_0x1c9d('0x10')],this[_0x1c9d('0x1')]]});}[_0x1c9d('0x7')](){return this['commentInputView'][_0x1c9d('0x7')]()[_0x1c9d('0x8')](()=>super[_0x1c9d('0x7')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1271=['containerElement','setTemplate','check','_model','commentsListView','locale','.ck-thread__container','Resolve','querySelector','isReadOnly','tooltip','ck-thread--','actionIndicator','resolveButton','remove','_cancelAllConfirms','listenTo','bindTemplate','ck-thread--active','resolveCommentThread','isSystemComment','isActive','then','add','removeCommentThread','ck-comment--resolve','isResolvable','actionBar','label','_bindFirstCommentView','get','bind','showConfirm','cancelConfirm','ck-thread--remove-confirmation','ck-reset_all-excluded','commentThreadHeaderView','stop','commentThreadChildren','render','ck-thread','getTemplate','placeholder','_boundFirstCommentView','commentViews','high','extendTemplate','isEnabled','isVisible','execute','fire','ck-thread__container','isResolved','addMany','Delete\x20comment\x20thread?','div','element','commentThreadInputView'];(function(_0x4cdec9,_0x127116){const _0x3696ae=function(_0x497ffa){while(--_0x497ffa){_0x4cdec9['push'](_0x4cdec9['shift']());}};_0x3696ae(++_0x127116);}(_0x1271,0x78));const _0x3696=function(_0x4cdec9,_0x127116){_0x4cdec9=_0x4cdec9-0x0;let _0x3696ae=_0x1271[_0x4cdec9];return _0x3696ae;};import{ConfirmMixin as _0x4674f7}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x5025cb}from'ckeditor5/src/ui';import{icons as _0xa9edad}from'ckeditor5/src/core';import _0x4b779a from'./basecommentthreadview';import{getTranslation as _0x5eb9eb}from'../../../utils/common-translations';export default class lt extends _0x4674f7(_0x4b779a){constructor(_0x2f063b,_0x3e3a75,_0x28f8da,_0x475530){super(_0x2f063b,_0x3e3a75,_0x28f8da,_0x475530),this[_0x3696('0x22')]=this['createCollection'](),this[_0x3696('0x22')][_0x3696('0x31')]([this['commentsListView'],this[_0x3696('0x35')]]),this[_0x3696('0x39')][_0x3696('0x30')]&&this[_0x3696('0x22')][_0x3696('0x13')](this[_0x3696('0x20')],0x0),this[_0x3696('0x39')]['on']('change:isResolved',(_0x382a6a,_0x5e935d,_0x24f084)=>{_0x24f084?this['commentThreadChildren'][_0x3696('0x13')](this[_0x3696('0x20')],0x0):this[_0x3696('0x22')][_0x3696('0xa')](this[_0x3696('0x20')]);}),this['set'](_0x3696('0x8'),null),this['containerElement']=null,this[_0x3696('0x27')]=null,this[_0x3696('0x1')]=_0x2f063b,this[_0x3696('0x9')]=this['_createResolveButton'](),this[_0x3696('0x37')](this[_0x3696('0x25')]()),this['on']('change:isActive',(_0x53ab12,_0x42c0a7,_0x5350e7)=>{_0x5350e7||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x64f029,_0x5aed71,_0x2acc47)=>{_0x2acc47&&this[_0x3696('0xb')]();}),this['length']>0x0&&this['_bindFirstCommentView'](),this[_0x3696('0xc')](this[_0x3696('0x0')][_0x3696('0x28')],_0x3696('0x13'),()=>{this[_0x3696('0x19')]();});}['getTemplate'](){const _0x15a337=this[_0x3696('0xd')];return{'tag':_0x3696('0x33'),'attributes':{'class':[_0x3696('0x24'),_0x3696('0x1f'),_0x15a337['if'](_0x3696('0x11'),_0x3696('0xe')),_0x15a337['if']('isConfirm',_0x3696('0x1e')),_0x15a337['to']('actionIndicator',_0x21435f=>_0x21435f?_0x3696('0x7')+_0x21435f:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':_0x3696('0x33'),'attributes':{'class':_0x3696('0x2f')},'children':this[_0x3696('0x22')]}]};}[_0x3696('0x23')](){super[_0x3696('0x23')](),this[_0x3696('0x36')]=this[_0x3696('0x34')][_0x3696('0x4')](_0x3696('0x2'));}[_0x3696('0xb')](){this[_0x3696('0x1d')]();for(const _0x523536 of this['commentsListView']['commentViews'])_0x523536[_0x3696('0x1d')]();}['_bindFirstCommentView'](){const {locale:_0x5d8778}=this,_0x3707da=this[_0x3696('0x0')]['commentViews'][_0x3696('0x1a')](0x0);_0x3707da===this[_0x3696('0x27')]||_0x3707da[_0x3696('0x10')]||(this[_0x3696('0x27')]=_0x3707da,this['unbind'](_0x3696('0x8')),this[_0x3696('0x1b')](_0x3696('0x8'))['to'](_0x3707da,_0x3696('0x8'),_0x3477fb=>_0x3696('0xa')===_0x3477fb?_0x3696('0xa'):null),_0x3707da[_0x3696('0x26')]=_0x5eb9eb(_0x5d8778,'Write\x20a\x20comment...'),_0x3707da['removeButton']['on'](_0x3696('0x2d'),_0xa2e7ba=>{_0xa2e7ba[_0x3696('0x21')](),this[_0x3696('0x1c')](_0x5eb9eb(_0x5d8778,_0x3696('0x32')),this[_0x3696('0x36')])[_0x3696('0x12')](()=>{this[_0x3696('0x2e')](_0x3696('0x14'));});},{'priority':_0x3696('0x29')}),_0x3707da[_0x3696('0x17')][_0x3696('0x13')](this[_0x3696('0x9')],0x0));}['_createResolveButton'](){const _0x1d32ce=new _0x5025cb(this['locale']);return _0x1d32ce[_0x3696('0x18')]=_0x5eb9eb(this[_0x3696('0x1')],_0x3696('0x3')),_0x1d32ce[_0x3696('0x6')]=_0x5eb9eb(this[_0x3696('0x1')],'Resolve'),_0x1d32ce['icon']=_0xa9edad[_0x3696('0x38')],_0x1d32ce[_0x3696('0x2a')]({'attributes':{'class':_0x3696('0x15')}}),_0x1d32ce[_0x3696('0x1b')](_0x3696('0x2b'))['to'](this[_0x3696('0x39')],_0x3696('0x5'),_0xdd9518=>!_0xdd9518),_0x1d32ce[_0x3696('0x1b')](_0x3696('0x2c'))['to'](this[_0x3696('0x39')],_0x3696('0x16'),this[_0x3696('0x39')],_0x3696('0x30'),(_0x16768a,_0x55c7ed)=>_0x16768a&&!_0x55c7ed),_0x1d32ce['on'](_0x3696('0x2d'),()=>{this['fire'](_0x3696('0xf'),this[_0x3696('0x39')]['id']);}),_0x1d32ce;}}
|