@ckeditor/ckeditor5-comments 0.0.0-nightly-20230911.0 → 0.0.0-nightly-20230913.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 _0x47d7=['basic','plugins','execute','importWord','get','collaboration.channelId','_handleImportedData','addCommentThread','afterInit','config','high','dataInsert','editor','importWord.commentsStyles','define','forEach'];(function(_0x4e4cfe,_0x47d700){const _0x50dba7=function(_0x3995d7){while(--_0x3995d7){_0x4e4cfe['push'](_0x4e4cfe['shift']());}};_0x50dba7(++_0x47d700);}(_0x47d7,0x1ad));const _0x50db=function(_0x4e4cfe,_0x47d700){_0x4e4cfe=_0x4e4cfe-0x0;let _0x50dba7=_0x47d7[_0x4e4cfe];return _0x50dba7;};import{Plugin as _0x2fd361}from'ckeditor5/src/core';import{priorities as _0x46a7fc}from'ckeditor5/src/utils';import{Users as _0x10f2dd}from'ckeditor5-collaboration/src/collaboration-core';import _0x36b9cc from'../commentsrepository';export default class Y extends _0x2fd361{constructor(_0x1fd57e){super(_0x1fd57e),this[_0x50db('0xf')][_0x50db('0xc')][_0x50db('0x1')](_0x50db('0x0'),_0x50db('0x3'));}[_0x50db('0xb')](){const _0x18318e=this['editor'],_0x139622=_0x18318e['commands'][_0x50db('0x7')](_0x50db('0x6')),_0x4b0161=_0x18318e[_0x50db('0x4')][_0x50db('0x7')](_0x10f2dd);_0x139622&&(_0x139622['on'](_0x50db('0x5'),(_0x465d24,[,_0x244077])=>{_0x244077['collaboration_features']={'comments':!0x0,'user_id':_0x4b0161['me']['id'],'comments_styles':this[_0x50db('0xf')]['config'][_0x50db('0x7')](_0x50db('0x0'))};},{'priority':_0x46a7fc[_0x50db('0xd')]+0xa}),this['listenTo'](_0x139622,_0x50db('0xe'),this[_0x50db('0x9')]));}['_handleImportedData'](_0x285f2d,_0x4d4f9e){const {comment_threads:_0x23baf7}=_0x4d4f9e;_0x23baf7&&_0x23baf7[_0x50db('0x2')](({thread_id:_0x2ad92d,comments:_0x3b9c7d,is_resolved:_0x18cc35})=>{const _0x3f27=new Date(),_0x41f9d7=_0x3b9c7d['map'](({author:_0x3d0289,content:_0xb16569,created_at:_0x2b724f})=>({'content':_0xb16569,'authorId':this['editor'][_0x50db('0x4')]['get'](_0x10f2dd)['me']['id'],'createdAt':_0x3f27,'attributes':{'@external':{'authorName':_0x3d0289,'createdAt':_0x2b724f?new Date(_0x2b724f):new Date(),'source':'importWord'}}})),_0x1335a6=this[_0x50db('0xf')][_0x50db('0xc')][_0x50db('0x7')](_0x50db('0x8'));this[_0x50db('0xf')][_0x50db('0x4')][_0x50db('0x7')](_0x36b9cc)[_0x50db('0xa')]({'channelId':_0x1335a6,'threadId':_0x2ad92d,'comments':_0x41f9d7,'resolvedAt':_0x18cc35?_0x3f27:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8c29=['getRoot','placeholderElement','name','document','createRoot','getChild','initPlugins','create','config','editing','low','change','ready','plugins','_updatePlaceholder','setSelection','destroy','change:placeholder','assign','focus','defaultPlugins','data','model','set','view','then','placeholder','childCount','get'];(function(_0x141301,_0x8c29f0){const _0x154069=function(_0x2242fb){while(--_0x2242fb){_0x141301['push'](_0x141301['shift']());}};_0x154069(++_0x8c29f0);}(_0x8c29,0xb8));const _0x1540=function(_0x141301,_0x8c29f0){_0x141301=_0x141301-0x0;let _0x154069=_0x8c29[_0x141301];return _0x154069;};import{Editor as _0x50c707,DataApiMixin as _0x4ee2fb}from'ckeditor5/src/core';import _0x4a003c from'./commenteditorui';import{ObservableMixin as _0x2ae847}from'ckeditor5/src/utils';import{enablePlaceholder as _0x50d565,disablePlaceholder as _0x5aad4a}from'ckeditor5/src/engine';import{Clipboard as _0x3df660}from'ckeditor5/src/clipboard';import{Enter as _0xfd6893,ShiftEnter as _0x3ba6df}from'ckeditor5/src/enter';import{SelectAll as _0xdf518a}from'ckeditor5/src/select-all';import{Typing as _0x2b1b55}from'ckeditor5/src/typing';import{Undo as _0x4a2b56}from'ckeditor5/src/undo';import{Paragraph as _0x27236f}from'ckeditor5/src/paragraph';const Kt=[_0x3df660,_0xfd6893,_0x3ba6df,_0xdf518a,_0x2b1b55,_0x4a2b56,_0x27236f];export default class Lt extends _0x2ae847(_0x4ee2fb(_0x50c707)){constructor(_0x15e1c3={}){(_0x15e1c3=Object[_0x1540('0x8')]({},_0x15e1c3))[_0x1540('0x3')]||(_0x15e1c3[_0x1540('0x3')]=Lt[_0x1540('0xa')]),super(_0x15e1c3),this['ui']=new _0x4a003c(this),this[_0x1540('0xd')](_0x1540('0x10'),''),this[_0x1540('0xc')][_0x1540('0x16')]['on'](_0x1540('0x1'),()=>this['_updatePlaceholder'](),{'priority':_0x1540('0x0')}),this['on'](_0x1540('0x7'),()=>this[_0x1540('0x4')]()),this[_0x1540('0xc')][_0x1540('0x16')][_0x1540('0x17')]();}[_0x1540('0x1a')](){const _0x1debb0=this[_0x1540('0x1b')][_0x1540('0x12')]('initialData')||'';return this[_0x1540('0x19')]()[_0x1540('0xf')](()=>this['ui']['init']())['then'](()=>this[_0x1540('0xb')]['init'](_0x1debb0))['then'](()=>this['fire'](_0x1540('0x2')));}[_0x1540('0x6')](){return super[_0x1540('0x6')]()[_0x1540('0xf')](()=>this['ui']['destroy']());}[_0x1540('0x9')](){this[_0x1540('0xc')]['change'](_0x3eee17=>{const _0x244bc1=this['model'][_0x1540('0x16')][_0x1540('0x13')](),_0x3e213a=_0x244bc1&&_0x244bc1['getChild'](_0x244bc1[_0x1540('0x11')]-0x1);_0x3eee17[_0x1540('0x5')](_0x3e213a,'end'),this[_0x1540('0x1c')][_0x1540('0xe')][_0x1540('0x9')]();});}[_0x1540('0x4')](){const _0xb9835c=this[_0x1540('0x1c')]['view'],_0x53ee3c=_0xb9835c[_0x1540('0x16')][_0x1540('0x13')](),_0x3a8816=_0x53ee3c[_0x1540('0x18')](0x0);_0x53ee3c[_0x1540('0x11')]>0x1||!_0x3a8816||'p'!=_0x3a8816[_0x1540('0x15')]?this[_0x1540('0x14')]&&this[_0x1540('0x14')][_0x1540('0x10')]&&(_0x5aad4a(_0xb9835c,this['placeholderElement']),this[_0x1540('0x14')]=void 0x0):(this[_0x1540('0x10')]&&(_0x3a8816[_0x1540('0x10')]=this[_0x1540('0x10')]),_0x50d565({'view':_0xb9835c,'element':_0x3a8816,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3a8816);}}Lt[_0x1540('0xa')]=Kt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x347c=['getRoot','locale','bind','editor','document','editable','setEditableElement','editing','isFocused','rootName','view','render','attachDomRoot','name','init','element','ready','destroy'];(function(_0x1a16d5,_0x347cb0){const _0x597111=function(_0x1bfada){while(--_0x1bfada){_0x1a16d5['push'](_0x1a16d5['shift']());}};_0x597111(++_0x347cb0);}(_0x347c,0xd1));const _0x5971=function(_0x1a16d5,_0x347cb0){_0x1a16d5=_0x1a16d5-0x0;let _0x597111=_0x347c[_0x1a16d5];return _0x597111;};import{EditorUI as _0x161de5}from'ckeditor5/src/ui';import _0x466092 from'./commenteditoruiview';export default class jt extends _0x161de5{constructor(_0x4f2598){super(_0x4f2598),this[_0x5971('0x11')]=new _0x466092(_0x4f2598[_0x5971('0x8')],_0x4f2598[_0x5971('0xe')][_0x5971('0x11')]);}get[_0x5971('0x4')](){return this['view'][_0x5971('0x4')];}[_0x5971('0x3')](){const _0x1067a3=this[_0x5971('0xa')][_0x5971('0xe')][_0x5971('0x11')],_0x5a4595=this[_0x5971('0x11')][_0x5971('0xc')],_0x2a6ec0=_0x1067a3[_0x5971('0xb')][_0x5971('0x7')]();_0x5a4595[_0x5971('0x2')]=_0x2a6ec0[_0x5971('0x10')],this[_0x5971('0x11')][_0x5971('0x0')]();const _0x31b025=_0x5a4595[_0x5971('0x4')];this[_0x5971('0xd')](_0x5a4595[_0x5971('0x2')],_0x31b025),this[_0x5971('0x11')][_0x5971('0xc')][_0x5971('0x9')](_0x5971('0xf'))['to'](this['focusTracker']),_0x1067a3[_0x5971('0x1')](_0x31b025),this['fire'](_0x5971('0x5'));}[_0x5971('0x6')](){super[_0x5971('0x6')](),this[_0x5971('0x11')][_0x5971('0x6')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x278a=['Comment\x20editor','extendTemplate','div','uiLanguage','focus','_createVoiceLabel','ck-comment__input','editable','ck-reset','text','ck-voice-label','uiLanguageDirection','presentation','comment','_voiceLabelView','render','setTemplate','cke-editor__aria-label_','main','ck-editor__aria-label_','ck-editor__main','ck-rounded-corners','createCollection','element'];(function(_0x2efa6b,_0x278ab1){const _0x57697c=function(_0x41dd81){while(--_0x41dd81){_0x2efa6b['push'](_0x2efa6b['shift']());}};_0x57697c(++_0x278ab1);}(_0x278a,0x129));const _0x5769=function(_0x2efa6b,_0x278ab1){_0x2efa6b=_0x2efa6b-0x0;let _0x57697c=_0x278a[_0x2efa6b];return _0x57697c;};import{InlineEditableUIView as _0x4012da,EditorUIView as _0x29dff3,LabelView as _0x3cf570}from'ckeditor5/src/ui';import{uid as _0x3f00d5}from'ckeditor5/src/utils';import{getTranslation as _0x3f0ca0}from'../../../utils/common-translations';export default class Nt extends _0x29dff3{constructor(_0xf874f7,_0x382637){super(_0xf874f7);const _0x35e2c6=_0x3f00d5();this['main']=this[_0x5769('0xd')](),this[_0x5769('0x16')]=new _0x4012da(_0xf874f7,_0x382637),this[_0x5769('0x5')]=this[_0x5769('0x14')](_0x35e2c6,_0xf874f7),this[_0x5769('0x7')]({'tag':_0x5769('0x11'),'attributes':{'class':[_0x5769('0x17'),'ck-editor',_0x5769('0xc'),_0x5769('0x15')],'role':_0x5769('0x4'),'dir':_0xf874f7[_0x5769('0x2')],'lang':_0xf874f7[_0x5769('0x12')],'aria-labelledby':_0x5769('0x8')+_0x35e2c6},'children':[this[_0x5769('0x5')],{'tag':'div','attributes':{'class':_0x5769('0xb'),'role':_0x5769('0x3')},'children':this[_0x5769('0x9')]}]});}['render'](){super[_0x5769('0x6')](),this[_0x5769('0x9')]['add'](this[_0x5769('0x16')]);}[_0x5769('0x13')](){this[_0x5769('0x16')][_0x5769('0xe')][_0x5769('0x13')]();}['_createVoiceLabel'](_0xa5f29a,_0x3c1901){const _0x3c0a5e=new _0x3cf570();return _0x3c0a5e[_0x5769('0x0')]=_0x3f0ca0(_0x3c1901,_0x5769('0xf')),_0x3c0a5e[_0x5769('0x10')]({'attributes':{'id':_0x5769('0xa')+_0xa5f29a,'class':_0x5769('0x1')}}),_0x3c0a5e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x296f=['destroy','view','updateComment','update','resolveCommentThread','stopListening','model','removeCommentThread','removeComment','addComment','resolve','reopenCommentThread','remove','reopen','submitCommentThread','listenTo','_isAttached','submit','isResolved','_localUser'];(function(_0x3ac275,_0x296fa3){var _0x5a23b1=function(_0x262c7b){while(--_0x262c7b){_0x3ac275['push'](_0x3ac275['shift']());}};_0x5a23b1(++_0x296fa3);}(_0x296f,0x15b));var _0x5a23=function(_0x3ac275,_0x296fa3){_0x3ac275=_0x3ac275-0x0;var _0x5a23b1=_0x296f[_0x3ac275];return _0x5a23b1;};import{ObservableMixin as _0xdbb634}from'ckeditor5/src/utils';export default class ct extends _0xdbb634(){constructor(_0x313d39,_0x4f4030){super(),this[_0x5a23('0x13')]=_0x313d39,this[_0x5a23('0x13')]['_isAttached']=!0x0,this[_0x5a23('0xe')]=_0x4f4030,this[_0x5a23('0x8')](_0x4f4030,_0x5a23('0x7'),()=>this['submit']()),this['listenTo'](_0x4f4030,_0x5a23('0x0'),()=>this[_0x5a23('0x5')]()),this[_0x5a23('0x8')](_0x4f4030,_0x5a23('0x11'),()=>this[_0x5a23('0x3')]()),this['listenTo'](_0x4f4030,_0x5a23('0x4'),()=>this[_0x5a23('0x6')]()),this['listenTo'](_0x4f4030,'addComment',(_0x47b1e2,_0x5304e2)=>this[_0x5a23('0x2')](_0x5304e2)),this[_0x5a23('0x8')](_0x4f4030,_0x5a23('0xf'),(_0x3d0727,_0x5dc886,_0x3a60c6)=>this[_0x5a23('0xf')](_0x5dc886,_0x3a60c6)),this[_0x5a23('0x8')](_0x4f4030,_0x5a23('0x1'),(_0x49564f,_0xc64ecf)=>this['removeComment'](_0xc64ecf));}[_0x5a23('0xa')](){this[_0x5a23('0x13')]['submit']();}[_0x5a23('0x5')](){this[_0x5a23('0x13')][_0x5a23('0x5')]();}['resolve'](){this['model'][_0x5a23('0xb')]||this['model'][_0x5a23('0x3')]();}[_0x5a23('0x6')](){this['model'][_0x5a23('0xb')]&&this['model'][_0x5a23('0x6')]();}['addComment'](_0x558c04){this[_0x5a23('0x13')][_0x5a23('0x2')]({'content':_0x558c04,'authorId':this[_0x5a23('0xe')][_0x5a23('0xc')]['id']});}[_0x5a23('0xf')](_0x3fe388,_0x533150){this[_0x5a23('0x13')]['getComment'](_0x3fe388)[_0x5a23('0x10')]({'content':_0x533150});}[_0x5a23('0x1')](_0x517adc){this['model']['getComment'](_0x517adc)[_0x5a23('0x5')]();}[_0x5a23('0xd')](){this[_0x5a23('0x12')](),this[_0x5a23('0x13')][_0x5a23('0x9')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3415=['resolveCommentThread','addComment','updateComment','commentsListView','placeholder','Reply\x20to\x20reopen\x20discussion...','isReadOnly','isResolved','isSubmitted','Reply...','fire','removeCommentThread','disabledSubmit','commentInputView','Comment','submitCommentThread','reopenCommentThread','commentThreadHeaderView','isActive','editorReady','_model','editorDestroyed','set','editorConfig','CommentView','Write\x20a\x20comment...','commentThreadInputView','Reply','element','submitLabel','locale','change:isActive','isResolvable','_localUser','length','bind','submit','delegate','value','cancel','_config','isDirty','assign','hasDirtyComment','destroy','_createCommentThreadInputView','canComment','showInput','focus'];(function(_0xb7da5,_0x34153d){const _0x355981=function(_0x5e4bf4){while(--_0x5e4bf4){_0xb7da5['push'](_0xb7da5['shift']());}};_0x355981(++_0x34153d);}(_0x3415,0x66));const _0x3559=function(_0xb7da5,_0x34153d){_0xb7da5=_0xb7da5-0x0;let _0x355981=_0x3415[_0xb7da5];return _0x355981;};import{View as _0x50ca31}from'ckeditor5/src/ui';import _0x394e3a from'./commentthreadinputview';import _0x23827e from'./commentslistview';import _0x1492b3 from'./commentthreadheaderview';import{getTranslation as _0x4b14a5}from'../../../utils/common-translations';export default class Tt extends _0x50ca31{constructor(_0x12c9d5,_0x218c03,_0x483fe5,_0x1bfe22){super(_0x12c9d5),this[_0x3559('0x12')](_0x3559('0xe'),!0x1),this[_0x3559('0x12')]('isDirty',!0x1),this[_0x3559('0x10')]=_0x218c03,this[_0x3559('0x1d')]=_0x483fe5,this[_0x3559('0x24')]=_0x1bfe22,this[_0x3559('0xd')]=new _0x1492b3(_0x12c9d5,_0x218c03),this[_0x3559('0xd')][_0x3559('0x21')](_0x3559('0xc'))['to'](this),this[_0x3559('0x30')]=new _0x23827e(_0x12c9d5,_0x218c03,Object[_0x3559('0x26')]({'CommentView':this['_config'][_0x3559('0x14')]},_0x1bfe22)),this[_0x3559('0x30')][_0x3559('0x21')]('removeComment')['to'](this),this['commentsListView'][_0x3559('0x21')](_0x3559('0x2f'))['to'](this),this[_0x3559('0x30')][_0x3559('0x21')](_0x3559('0x2d'))['to'](this),this[_0x3559('0x30')][_0x3559('0x21')](_0x3559('0xf'))['to'](this),this[_0x3559('0x30')][_0x3559('0x21')](_0x3559('0x11'))['to'](this),this[_0x3559('0x30')][_0x3559('0x1f')](_0x3559('0xe'))['to'](this),this[_0x3559('0x12')](_0x3559('0x1e'),this[_0x3559('0x30')][_0x3559('0x1e')]),this[_0x3559('0x1f')](_0x3559('0x1e'))['to'](this[_0x3559('0x30')],_0x3559('0x1e')),this[_0x3559('0x16')]=this[_0x3559('0x29')](),this['commentThreadInputView'][_0x3559('0x21')](_0x3559('0xf'))['to'](this),this['commentThreadInputView'][_0x3559('0x21')]('editorDestroyed')['to'](this),this['on']('removeComment',()=>this[_0x3559('0x2c')]()),this[_0x3559('0x1f')](_0x3559('0x25'))['to'](this[_0x3559('0x30')],_0x3559('0x27'),this[_0x3559('0x16')][_0x3559('0x9')],'value',(_0x49ce26,_0x3eb602)=>_0x49ce26||!!_0x3eb602);}[_0x3559('0x2c')](){this[_0x3559('0x18')][_0x3559('0x2c')]();}async[_0x3559('0x28')](){this[_0x3559('0x25')]=!0x1,this[_0x3559('0x30')][_0x3559('0x28')](),await this[_0x3559('0x16')][_0x3559('0x28')](),super[_0x3559('0x28')]();}[_0x3559('0x29')](){const _0x5957b0=new _0x394e3a(this[_0x3559('0x1a')],this['_localUser'],this[_0x3559('0x24')][_0x3559('0x13')]),_0x58fede=_0x5957b0[_0x3559('0x9')];return _0x5957b0[_0x3559('0x1f')](_0x3559('0x2b'))['to'](this,_0x3559('0xe'),this[_0x3559('0x10')],'isReadOnly',this[_0x3559('0x10')],_0x3559('0x2a'),this[_0x3559('0x10')],_0x3559('0x3'),_0x58fede,_0x3559('0x22'),(_0x4c586d,_0x2a66eb,_0x1bb684,_0x41001a,_0x514fa)=>!!_0x514fa||_0x41001a&&_0x1bb684&&!_0x2a66eb||_0x4c586d&&_0x1bb684&&!_0x2a66eb),_0x58fede[_0x3559('0x1f')](_0x3559('0x0'))['to'](this,_0x3559('0x1e'),this[_0x3559('0x10')],_0x3559('0x1c'),this['_model'],'isResolved',(_0x2b3c77,_0x8b7a67,_0x26d24c)=>{let _0x394fa8;return _0x394fa8=_0x26d24c&&_0x8b7a67?_0x3559('0x1'):_0x2b3c77?_0x3559('0x5'):_0x3559('0x15'),_0x4b14a5(this[_0x3559('0x1a')],_0x394fa8);}),_0x58fede[_0x3559('0x1f')](_0x3559('0x19'))['to'](this,_0x3559('0x1e'),_0x18a91b=>_0x4b14a5(this[_0x3559('0x1a')],_0x18a91b?_0x3559('0x17'):_0x3559('0xa'))),_0x58fede['on'](_0x3559('0x20'),(_0x5639fa,_0x24a3f5)=>{this[_0x3559('0x6')](_0x3559('0x2e'),_0x24a3f5),this['_model'][_0x3559('0x3')]&&this['_model']['isResolvable']&&this[_0x3559('0x6')](_0x3559('0xc'),this[_0x3559('0x10')]['id']),this['_model'][_0x3559('0x4')]||this[_0x3559('0x6')](_0x3559('0xb'));}),_0x58fede['on'](_0x3559('0x23'),()=>{this[_0x3559('0x2c')]();}),_0x58fede[_0x3559('0x1f')](_0x3559('0x8'))['to'](this[_0x3559('0x10')],_0x3559('0x2')),_0x58fede['on'](_0x3559('0x23'),_0x5f360f=>{0x0==this['length']&&(this[_0x3559('0x6')](_0x3559('0x7')),_0x5f360f['stop']());}),this['on'](_0x3559('0x1b'),(_0x105c50,_0x5467f0,_0x322001)=>{_0x322001||this[_0x3559('0x1e')]||_0x58fede[_0x3559('0x22')]||this[_0x3559('0x6')](_0x3559('0x7'));}),_0x5957b0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14b5=['locale','initialData','get','createCollection','editorReady','remove','maxCommentCharsWhenCollapsed','fire','editorDestroyed','delegate','isCollapsed','set','isEditMode','visibleView','switchToDisplayMode','collapse','switchToEditMode','content','_createCommentContentView','Save','add','bind','isSystemComment','destroy','_createCommentInputView','editorConfig','element','once','cancel','_config','value','focus','_model','createEditor','submitLabel'];(function(_0x5f59b6,_0x14b5a6){const _0x248481=function(_0x30e522){while(--_0x30e522){_0x5f59b6['push'](_0x5f59b6['shift']());}};_0x248481(++_0x14b5a6);}(_0x14b5,0x1f4));const _0x2484=function(_0x5f59b6,_0x14b5a6){_0x5f59b6=_0x5f59b6-0x0;let _0x248481=_0x14b5[_0x5f59b6];return _0x248481;};import{View as _0x58589d}from'ckeditor5/src/ui';import{trimHtml as _0x225cd2}from'ckeditor5-collaboration/src/collaboration-core';import _0xaa8544 from'./commentcontentview';import _0x1a8a84 from'./commentinputview';import{getTranslation as _0x17b149}from'../../../utils/common-translations';export default class Yt extends _0x58589d{constructor(_0x47d02f,_0x3bcdf3,_0x5ce841){super(_0x47d02f),this['_model']=_0x3bcdf3,this[_0x2484('0x13')]=_0x5ce841,this[_0x2484('0xc')]=!!this[_0x2484('0x13')][_0x2484('0xc')],this[_0x2484('0x1')](_0x2484('0x2'),!0x1),this['set'](_0x2484('0x0'),!0x0),this[_0x2484('0x3')]=this[_0x2484('0x1c')](),this[_0x2484('0x3')][_0x2484('0xa')](this[_0x2484('0x8')]());}['expand'](){this[_0x2484('0x0')]=!0x1;}[_0x2484('0x5')](){this[_0x2484('0x2')]||(this['isCollapsed']=!0x0);}[_0x2484('0x15')](){this[_0x2484('0x10')][_0x2484('0x15')]();}async['destroy'](){await this[_0x2484('0x3')][_0x2484('0x1b')](0x0)[_0x2484('0xd')](),super[_0x2484('0xd')]();}[_0x2484('0x6')](){this[_0x2484('0x2')]||(this[_0x2484('0x2')]=!0x0,this[_0x2484('0x3')][_0x2484('0x1e')](0x0)[_0x2484('0xd')](),this[_0x2484('0x3')][_0x2484('0xa')](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this[_0x2484('0x3')][_0x2484('0x1e')](0x0)['destroy'](),this[_0x2484('0x3')][_0x2484('0xa')](this['_createCommentContentView']()));}[_0x2484('0x8')](){const _0x32fbc3=new _0xaa8544(this[_0x2484('0x19')]);return _0x32fbc3[_0x2484('0xb')](_0x2484('0x7'))['to'](this[_0x2484('0x16')],_0x2484('0x7'),this,_0x2484('0x0'),(_0x3849d9,_0x401a5e)=>_0x401a5e?_0x225cd2(_0x3849d9,{'limit':this[_0x2484('0x13')][_0x2484('0x1f')]}):_0x3849d9),_0x32fbc3;}[_0x2484('0xe')](){this['_config'][_0x2484('0xf')]||(this[_0x2484('0x13')]['editorConfig']={}),this[_0x2484('0x13')][_0x2484('0xf')][_0x2484('0x1a')]=this['_model'][_0x2484('0x7')];const _0x457404=new _0x1a8a84(this[_0x2484('0x19')],this['_config'][_0x2484('0xf')]);return _0x457404[_0x2484('0x14')]=this[_0x2484('0x16')][_0x2484('0x7')],_0x457404[_0x2484('0xb')]('disabledSubmit')['to'](this[_0x2484('0x16')],'isReadOnly'),_0x457404[_0x2484('0x18')]=_0x17b149(this[_0x2484('0x19')],_0x2484('0x9')),_0x457404['on']('submit',(_0x8686ce,_0x1b3715)=>{this[_0x2484('0x20')]('updateComment',this['_model']['id'],_0x1b3715),this[_0x2484('0x4')](),this[_0x2484('0x15')]();}),_0x457404['on'](_0x2484('0x12'),()=>{this['switchToDisplayMode'](),this[_0x2484('0x15')]();}),_0x457404[_0x2484('0x11')]('editorReady',()=>{_0x457404[_0x2484('0x15')]();}),_0x457404[_0x2484('0x17')](),_0x457404[_0x2484('0x22')](_0x2484('0x1d'))['to'](this),_0x457404['delegate'](_0x2484('0x21'))['to'](this),_0x457404;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa0a6=['count','setTemplate','set','NUMBER_OF_COMMENTS','bindTemplate'];(function(_0x149ef2,_0xa0a682){const _0x1f9bba=function(_0x508f49){while(--_0x508f49){_0x149ef2['push'](_0x149ef2['shift']());}};_0x1f9bba(++_0xa0a682);}(_0xa0a6,0xba));const _0x1f9b=function(_0x149ef2,_0xa0a682){_0x149ef2=_0x149ef2-0x0;let _0x1f9bba=_0xa0a6[_0x149ef2];return _0x1f9bba;};import{View as _0x15ec5c}from'ckeditor5/src/ui';import{getTranslation as _0x4cd667}from'../../../utils/common-translations';export default class Zt extends _0x15ec5c{constructor(_0x2cbbaa){super(_0x2cbbaa);const _0x1058b6=this[_0x1f9b('0x3')];this[_0x1f9b('0x1')](_0x1f9b('0x4'),void 0x0),this[_0x1f9b('0x0')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x1058b6['to']('count',_0x413f11=>_0x4cd667(_0x2cbbaa,_0x1f9b('0x2'),_0x413f11))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3738=['set','render','change:content','div','element','content','ck-annotation__content','setTemplate','ck-comment__content','innerHTML'];(function(_0x4092e9,_0x373826){var _0x2dd23b=function(_0x101f5c){while(--_0x101f5c){_0x4092e9['push'](_0x4092e9['shift']());}};_0x2dd23b(++_0x373826);}(_0x3738,0x173));var _0x2dd2=function(_0x4092e9,_0x373826){_0x4092e9=_0x4092e9-0x0;var _0x2dd23b=_0x3738[_0x4092e9];return _0x2dd23b;};import{View as _0x51fcc8}from'ckeditor5/src/ui';export default class Ut extends _0x51fcc8{constructor(_0x5bdc9a){super(_0x5bdc9a),this[_0x2dd2('0x9')](_0x2dd2('0x4'),''),this[_0x2dd2('0x6')]({'tag':_0x2dd2('0x2'),'attributes':{'class':[_0x2dd2('0x7'),_0x2dd2('0x5')]}});}[_0x2dd2('0x0')](){super[_0x2dd2('0x0')](),this['on'](_0x2dd2('0x1'),(_0x353742,_0x4fd7fe,_0x389c93)=>{this[_0x2dd2('0x3')][_0x2dd2('0x8')]=_0x389c93;}),this['element']['innerHTML']=this['content'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4649=['_createSubmitButton','label','firstChild','disabledSubmit','_isDestroyed','forEach','div','showButtons','value','editor','submitButtonView','_createCancelButton','trim','Reply...','model','ck-comment__input-actions--submit','TOO_LONG_COMMENT_ALERT','ck-comment__input-actions--active','change','stop','initialData','setTemplate','createEditor','listenTo','ck-comment__input-wrapper','shift\x20+\x20tab','low','cancel','set','placeholder','withText','element','focus','ck-comment__input-actions--cancel','Cancel','document','keystrokes','then','_editorCreationPromise','submit','editorDestroyed','create','submitLabel','fire','render','destroy','bind','add','focusTracker','getData','_initializeFocusCycling','_editorConfig','Esc','execute','tab','extendTemplate','Reply','focusNext','cancelButtonView'];(function(_0x5aa4b9,_0x464962){const _0x11b23e=function(_0x59dbd6){while(--_0x59dbd6){_0x5aa4b9['push'](_0x5aa4b9['shift']());}};_0x11b23e(++_0x464962);}(_0x4649,0x1e1));const _0x11b2=function(_0x5aa4b9,_0x464962){_0x5aa4b9=_0x5aa4b9-0x0;let _0x11b23e=_0x4649[_0x5aa4b9];return _0x11b23e;};import{View as _0x54cb74,ViewCollection as _0x4ae903,FocusCycler as _0x472c4a,ButtonView as _0x3974ee}from'ckeditor5/src/ui';import{FocusTracker as _0x1a8727,KeystrokeHandler as _0x3da9fc}from'ckeditor5/src/utils';import _0x5bd145 from'../commenteditor/commenteditor';import{getTranslation as _0x24ed3f}from'../../../utils/common-translations';export default class Xt extends _0x54cb74{constructor(_0x1a27c9,_0x395a5c={}){super(_0x1a27c9),this[_0x11b2('0x0')]=null,this[_0x11b2('0x2a')]=_0x395a5c,this[_0x11b2('0x1b')]=new _0x3da9fc(),this[_0x11b2('0x27')]=new _0x1a8727(),this[_0x11b2('0x13')](_0x11b2('0x3a'),_0x395a5c[_0x11b2('0xb')]||''),this[_0x11b2('0x13')](_0x11b2('0x35'),!0x1),this[_0x11b2('0x13')]('showButtons',!0x0),this['set'](_0x11b2('0x14'),_0x24ed3f(_0x1a27c9,_0x11b2('0x4'))),this[_0x11b2('0x13')](_0x11b2('0x21'),_0x24ed3f(_0x1a27c9,_0x11b2('0x2f'))),this['submitButtonView']=this['_createSubmitButton'](),this[_0x11b2('0x31')]=this[_0x11b2('0x2')](),this[_0x11b2('0xc')]({'tag':_0x11b2('0x38'),'attributes':{'class':[_0x11b2('0xf')]},'children':[{'tag':_0x11b2('0x38'),'attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if'](_0x11b2('0x39'),_0x11b2('0x8'))]},'children':[this[_0x11b2('0x1')],this[_0x11b2('0x31')]]}]}),this['keystrokes'][_0x11b2('0x13')](_0x11b2('0x2b'),(_0x3c2f46,_0x540b7d)=>{this[_0x11b2('0x31')]['fire'](_0x11b2('0x2c')),_0x540b7d();}),this['on'](_0x11b2('0x1e'),(_0x55e071,_0x499bc8)=>{_0x499bc8['length']>0xfde8?(alert(_0x24ed3f(_0x1a27c9,_0x11b2('0x7'),[_0x499bc8['length'],0xfde8])),_0x55e071[_0x11b2('0xa')]()):this[_0x11b2('0x0')]['setData']('');},{'priority':'high'});}[_0x11b2('0x23')](){super[_0x11b2('0x23')](),this[_0x11b2('0x1b')][_0x11b2('0xe')](this['element']),this[_0x11b2('0x27')]['add'](this[_0x11b2('0x16')]);}[_0x11b2('0xd')](){return this['editor']||(this['editor']=new _0x5bd145(this[_0x11b2('0x2a')]),this[_0x11b2('0x1d')]=this[_0x11b2('0x0')][_0x11b2('0x20')]()[_0x11b2('0x1c')](()=>{if(this['_isDestroyed'])return;const _0x59c280=this['editor'];this[_0x11b2('0x16')]['insertBefore'](_0x59c280['ui'][_0x11b2('0x16')],this[_0x11b2('0x16')][_0x11b2('0x34')]),_0x59c280[_0x11b2('0x5')][_0x11b2('0x1a')]['on'](_0x11b2('0x9'),()=>this[_0x11b2('0x3a')]=_0x59c280[_0x11b2('0x28')]()),_0x59c280[_0x11b2('0x25')]('placeholder')['to'](this),this[_0x11b2('0x29')](this[_0x11b2('0x0')]),this[_0x11b2('0x22')]('editorReady',this[_0x11b2('0x0')]);})),this['_editorCreationPromise'];}['focus'](){this[_0x11b2('0x0')]&&this[_0x11b2('0x0')][_0x11b2('0x17')]();}async[_0x11b2('0x24')](){this['_isDestroyed']||(this[_0x11b2('0x36')]=!0x0,this['editor']&&(await this[_0x11b2('0x1d')],await this[_0x11b2('0x0')][_0x11b2('0x24')](),this[_0x11b2('0x22')](_0x11b2('0x1f'),this[_0x11b2('0x0')])),await super[_0x11b2('0x24')]());}[_0x11b2('0x32')](){const {locale:_0x23b6d0}=this,_0x49c6c3=new _0x3974ee(_0x23b6d0);return _0x49c6c3[_0x11b2('0x2e')]({'attributes':{'class':[_0x11b2('0x6')]}}),_0x49c6c3[_0x11b2('0x15')]=!0x0,_0x49c6c3[_0x11b2('0x25')](_0x11b2('0x33'))['to'](this,_0x11b2('0x21')),_0x49c6c3['on'](_0x11b2('0x2c'),()=>{this[_0x11b2('0x22')]('submit',this[_0x11b2('0x3a')]);}),_0x49c6c3[_0x11b2('0x25')]('isEnabled')['to'](this,'value',this,_0x11b2('0x35'),(_0x24f21d,_0x179e8d)=>!_0x179e8d&&!!_0x24f21d[_0x11b2('0x3')]()),_0x49c6c3;}[_0x11b2('0x2')](){const {locale:_0x4a9b6b}=this,_0x5daa25=new _0x3974ee(_0x4a9b6b);return _0x5daa25[_0x11b2('0x2e')]({'attributes':{'class':[_0x11b2('0x18')]}}),_0x5daa25[_0x11b2('0x33')]=_0x24ed3f(_0x4a9b6b,_0x11b2('0x19')),_0x5daa25['withText']=!0x0,_0x5daa25['on'](_0x11b2('0x2c'),()=>{this[_0x11b2('0x0')]['setData'](''),this[_0x11b2('0x22')](_0x11b2('0x12'));}),_0x5daa25;}['_initializeFocusCycling'](_0x2a7c51){const _0x3f8e11=this[_0x11b2('0x27')],_0x38f132=new _0x4ae903();[_0x2a7c51['ui']['view'],this['submitButtonView'],this[_0x11b2('0x31')]][_0x11b2('0x37')](_0x232384=>{_0x38f132[_0x11b2('0x26')](_0x232384),_0x3f8e11[_0x11b2('0x26')](_0x232384['element']);});const _0xd0bf74=new _0x472c4a({'focusables':_0x38f132,'focusTracker':_0x3f8e11});this[_0x11b2('0x1b')]['set'](_0x11b2('0x2d'),(_0x502f43,_0x3cb1bd)=>{_0xd0bf74[_0x11b2('0x30')](),_0x3cb1bd();},{'priority':_0x11b2('0x11')}),this[_0x11b2('0x1b')][_0x11b2('0x13')](_0x11b2('0x10'),(_0x33bf11,_0x266217)=>{_0xd0bf74['focusPrevious'](),_0x266217();},{'priority':_0x11b2('0x11')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ed5=['set','render','arrowleft','add','setTemplate','_focusables','element','destroy','ck-comments-archive','isEmpty','selectstart','_focusCycler','focus','listenTo','tab','ck-comments-archive__content','length','_keystrokes','arrowright','ck-comments-archive__header\x20','ck-comments-archive__info','remove','div','stopPropagation','isActive','EMPTY_COMMENTS_ARCHIVE','shift\x20+\x20tab','high','arrowup','_focusTracker','auto'];(function(_0x1843f2,_0x1ed594){const _0x56dd5f=function(_0x43af9d){while(--_0x43af9d){_0x1843f2['push'](_0x1843f2['shift']());}};_0x56dd5f(++_0x1ed594);}(_0x1ed5,0xca));const _0x56dd=function(_0x1843f2,_0x1ed594){_0x1843f2=_0x1843f2-0x0;let _0x56dd5f=_0x1ed5[_0x1843f2];return _0x56dd5f;};import{View as _0x1e9328,FocusCycler as _0x1e15e0}from'ckeditor5/src/ui';import{FocusTracker as _0x32b030,KeystrokeHandler as _0x5de162}from'ckeditor5/src/utils';import{getTranslation as _0x109575}from'../../../utils/common-translations';export default class K extends _0x1e9328{constructor(_0x1d2234,_0x415c4e){super(_0x1d2234),this[_0x56dd('0xf')](_0x56dd('0x18'),!_0x415c4e[_0x56dd('0x0')]),this[_0x56dd('0xd')]=new _0x32b030(),this['_keystrokes']=new _0x5de162(),this[_0x56dd('0x14')]=_0x415c4e,this[_0x56dd('0x1a')]=new _0x1e15e0({'focusables':this['_focusables'],'focusTracker':this[_0x56dd('0xd')],'keystrokeHandler':this[_0x56dd('0x1')],'actions':{'focusPrevious':_0x56dd('0xa'),'focusNext':_0x56dd('0x1d')}}),this[_0x56dd('0x1c')](_0x415c4e,_0x56dd('0x12'),()=>{this[_0x56dd('0x18')]=!0x1;}),this[_0x56dd('0x1c')](_0x415c4e,_0x56dd('0x5'),(_0x15142c,_0x3bab4d)=>{_0x3bab4d[_0x56dd('0x8')]&&this[_0x56dd('0x1b')](),_0x415c4e[_0x56dd('0x0')]||(this[_0x56dd('0x18')]=!0x0);});const _0x1c9298=this['bindTemplate'];this[_0x56dd('0x13')]({'tag':_0x56dd('0x6'),'attributes':{'dir':_0x56dd('0xe'),'class':['ck',_0x56dd('0x17')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x56dd('0x3')]},'children':[{'text':_0x109575(_0x1d2234,'COMMENTS_ARCHIVE')}]},{'tag':_0x56dd('0x6'),'attributes':{'class':[_0x56dd('0x1e')]},'children':[{'tag':_0x56dd('0x6'),'children':_0x415c4e},{'tag':'p','attributes':{'class':[_0x56dd('0x4'),_0x1c9298['if'](_0x56dd('0x18'),'ck-hidden',_0x4aaea8=>!_0x4aaea8)]},'children':[{'text':_0x109575(_0x1d2234,_0x56dd('0x9'))}]}]}]});}['render'](){super[_0x56dd('0x10')](),this[_0x56dd('0x1')][_0x56dd('0x1c')](this[_0x56dd('0x15')]);const _0x342749=_0x3ff0a6=>_0x3ff0a6[_0x56dd('0x7')]();this[_0x56dd('0x1')][_0x56dd('0xf')](_0x56dd('0x2'),_0x342749),this[_0x56dd('0x1')][_0x56dd('0xf')](_0x56dd('0x11'),_0x342749),this[_0x56dd('0x1')][_0x56dd('0xf')](_0x56dd('0xc'),_0x342749),this[_0x56dd('0x1')][_0x56dd('0xf')]('arrowdown',_0x342749),this[_0x56dd('0x1c')](this['element'],_0x56dd('0x19'),(_0x862e7e,_0x17c4cb)=>{_0x17c4cb[_0x56dd('0x7')]();},{'priority':_0x56dd('0xb')});}[_0x56dd('0x16')](){super[_0x56dd('0x16')](),this['_focusTracker'][_0x56dd('0x16')](),this['_keystrokes'][_0x56dd('0x16')]();}[_0x56dd('0x1b')](){this[_0x56dd('0x15')][_0x56dd('0x1b')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f05=['resolvedBy','_collapsedCommentsView','render','destroy','maxCommentCharsWhenCollapsed','change:hasDirtyComment','change:isResolved','visibleViews','weight','_handleRemoveCommentModel','viewUid','stopListening','listenTo','refreshVisibleViews','editorReady','_config','removeComment','from','_model','delegate','updateComment','formatDateTime','resolvedAt','comments','remove','collapse','_shouldCollapse','add','element','_handleInfoComment','isActive','_updateHasDirtyComment','_rearrangeExpand','resolvedCommentView','authoredAt','_handleNewCommentModel','length','count','editorConfig','createCollection','isEditMode','resolved','some','hasDirtyComment','commentViews','commentUpdated','resolveCommentThread','insert','set','editorDestroyed','change:isEditMode','focus','_calculatePosition','_rearrangeCollapse','ck-thread__comments','expand','locale','bind','CommentView','change:isActive','maxCommentsWhenCollapsed'];(function(_0x490420,_0x2f05c5){const _0x53c4c1=function(_0x381c3d){while(--_0x381c3d){_0x490420['push'](_0x490420['shift']());}};_0x53c4c1(++_0x2f05c5);}(_0x2f05,0x197));const _0x53c4=function(_0x490420,_0x2f05c5){_0x490420=_0x490420-0x0;let _0x53c4c1=_0x2f05[_0x490420];return _0x53c4c1;};import{View as _0x22a3ec}from'ckeditor5/src/ui';import{diff as _0x402ff3,Collection as _0xf215ad}from'ckeditor5/src/utils';import{getTranslation as _0x5df054}from'../../../utils/common-translations';import _0xb3dfd1 from'./collapsedcommentsview';export default class wt extends _0x22a3ec{constructor(_0x48ee7c,_0x4deede,_0x189484){super(_0x48ee7c),this[_0x53c4('0x7')]('hasDirtyComment',!0x1),this['set'](_0x53c4('0x38'),_0x4deede[_0x53c4('0x2b')][_0x53c4('0x38')]),this[_0x53c4('0x7')](_0x53c4('0x32'),!0x1),this[_0x53c4('0x26')]=_0x4deede,this['_config']=_0x189484,this[_0x53c4('0x3')]=this[_0x53c4('0x3b')](),this[_0x53c4('0x1b')]=this[_0x53c4('0x3b')](),this[_0x53c4('0x35')]=null,this[_0x53c4('0x15')]=new _0xb3dfd1(_0x48ee7c),this['_collapsedCommentsView'][_0x53c4('0x10')](_0x53c4('0x39'))['to'](this,_0x53c4('0x38'),_0x1510b5=>_0x1510b5-this[_0x53c4('0x23')][_0x53c4('0x13')]);for(const _0x105624 of _0x4deede[_0x53c4('0x2b')])this['_handleNewCommentModel'](_0x105624);this[_0x53c4('0x31')](),this['listenTo'](_0x4deede[_0x53c4('0x2b')],_0x53c4('0x2f'),(_0x5b923d,_0x219f21)=>{const _0x1494d3=this[_0x53c4('0xb')](_0x219f21);this[_0x53c4('0x38')]++,this[_0x53c4('0x37')](_0x219f21,_0x1494d3),this[_0x53c4('0x21')]();}),this[_0x53c4('0x20')](_0x4deede['comments'],_0x53c4('0x2c'),(_0x1a15bb,_0x182a9e)=>{this[_0x53c4('0x38')]--,this[_0x53c4('0x1d')](_0x182a9e),this[_0x53c4('0x21')]();}),this[_0x53c4('0x20')](_0x4deede,_0x53c4('0x4'),()=>this['refreshVisibleViews']()),this['listenTo'](_0x4deede,_0x53c4('0x1a'),()=>this[_0x53c4('0x31')]()),this['on'](_0x53c4('0x12'),()=>this[_0x53c4('0x21')]()),this['on'](_0x53c4('0x19'),()=>this[_0x53c4('0x21')]()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x53c4('0xd')]},'children':this[_0x53c4('0x1b')]});}get[_0x53c4('0x2e')](){return this['_model'][_0x53c4('0x1c')]>this[_0x53c4('0x23')]['maxThreadTotalWeight']&&!this['isActive']&&!this[_0x53c4('0x2')];}['render'](){super[_0x53c4('0x16')](),this[_0x53c4('0x21')]();}[_0x53c4('0xa')](){this[_0x53c4('0x30')][_0x53c4('0xa')]();}['destroy'](){this[_0x53c4('0x15')][_0x53c4('0x17')]();for(const _0x5e3d34 of this[_0x53c4('0x3')])_0x5e3d34[_0x53c4('0x17')]();super[_0x53c4('0x17')]();}['refreshVisibleViews'](){this[_0x53c4('0x2e')]?this[_0x53c4('0xc')]():this[_0x53c4('0x34')]();}[_0x53c4('0x37')](_0x17b0e2,_0x398a3e){const _0x37faf4=new this[(_0x53c4('0x23'))][(_0x53c4('0x11'))](this['locale'],_0x17b0e2,{'maxCommentCharsWhenCollapsed':this['_config'][_0x53c4('0x18')],'formatDateTime':this[_0x53c4('0x23')]['formatDateTime'],'editorConfig':this[_0x53c4('0x23')][_0x53c4('0x3a')]});_0x37faf4[_0x53c4('0x1e')]=_0x17b0e2['id'],_0x37faf4[_0x53c4('0x27')](_0x53c4('0x24'))['to'](this),_0x37faf4[_0x53c4('0x27')](_0x53c4('0x28'))['to'](this),_0x37faf4[_0x53c4('0x27')](_0x53c4('0x5'))['to'](this),_0x37faf4['delegate'](_0x53c4('0x22'))['to'](this),_0x37faf4['delegate'](_0x53c4('0x8'))['to'](this),this[_0x53c4('0x20')](_0x37faf4,_0x53c4('0x9'),()=>this['_updateHasDirtyComment']()),this[_0x53c4('0x3')][_0x53c4('0x2f')](_0x37faf4,_0x398a3e);}[_0x53c4('0xb')](_0x5dad0a){const _0x336b02=this[_0x53c4('0x26')]['_findOptimalIndex'](_0x5dad0a);return this[_0x53c4('0x35')]?this['resolvedCommentView']['authoredAt']>_0x5dad0a[_0x53c4('0x36')]?_0x336b02-0x1:_0x336b02:_0x336b02-0x1;}[_0x53c4('0x31')](){if(this[_0x53c4('0x26')][_0x53c4('0x14')]&&this[_0x53c4('0x26')][_0x53c4('0x2a')]){const _0x21fb75={'id':_0x53c4('0x0'),'author':this[_0x53c4('0x26')][_0x53c4('0x14')],'authoredAt':this[_0x53c4('0x26')]['resolvedAt'],'content':_0x5df054(this[_0x53c4('0xf')],'Marked\x20as\x20resolved'),'attributes':{}};this[_0x53c4('0x35')]=new this[(_0x53c4('0x23'))][(_0x53c4('0x11'))](this['locale'],_0x21fb75,{'maxCommentCharsWhenCollapsed':this['_config'][_0x53c4('0x18')],'formatDateTime':this[_0x53c4('0x23')][_0x53c4('0x29')],'editorConfig':this['_config'][_0x53c4('0x3a')],'isSystemComment':!0x0}),this[_0x53c4('0x3')][_0x53c4('0x2f')](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x21fb75));}else this['resolvedCommentView']&&(this[_0x53c4('0x3')][_0x53c4('0x2c')](this[_0x53c4('0x35')]),this[_0x53c4('0x35')][_0x53c4('0x17')](),this[_0x53c4('0x35')]=null);this[_0x53c4('0x21')]();}[_0x53c4('0x1d')](_0x116cf3){const _0x33fac6=this[_0x53c4('0x3')][_0x53c4('0x2c')](_0x116cf3['id']);this[_0x53c4('0x1f')](_0x33fac6),_0x33fac6['isEditMode']&&this[_0x53c4('0x33')](),_0x33fac6[_0x53c4('0x17')]();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array[_0x53c4('0x25')](this[_0x53c4('0x3')])[_0x53c4('0x1')](_0xc39279=>_0xc39279[_0x53c4('0x3c')]);}['_rearrangeCollapse'](){const _0x4dd902=function(_0x269041){const _0x26985d=new _0xf215ad();for(const _0x47bf74 of _0x269041)_0x26985d[_0x53c4('0x2f')](_0x47bf74);return _0x26985d;}(this[_0x53c4('0x3')]),_0x53d68=this[_0x53c4('0x15')][_0x53c4('0x39')];for(let _0x396e9a=0x1;_0x396e9a<=_0x53d68;_0x396e9a++)_0x4dd902[_0x53c4('0x2c')](0x1);for(const _0x53d5dc of _0x4dd902)_0x53d5dc[_0x53c4('0x2d')]();_0x53d68>0x0&&_0x4dd902[_0x53c4('0x2f')](this[_0x53c4('0x15')],0x1),ss(_0x402ff3(Array['from'](this['visibleViews']),Array[_0x53c4('0x25')](_0x4dd902)),this['visibleViews'],_0x4dd902);}[_0x53c4('0x34')](){ss(_0x402ff3(Array[_0x53c4('0x25')](this[_0x53c4('0x1b')]),Array[_0x53c4('0x25')](this[_0x53c4('0x3')])),this[_0x53c4('0x1b')],this[_0x53c4('0x3')]);for(const _0x92a9c of this[_0x53c4('0x1b')])_0x92a9c[_0x53c4('0xe')]();}}function ss(_0x2c9fad,_0x56ce04,_0x22bcbf){let _0x1d37c4=0x0;for(const _0x3731ee of _0x2c9fad)switch(_0x3731ee){case _0x53c4('0x6'):_0x56ce04[_0x53c4('0x2f')](_0x22bcbf['get'](_0x1d37c4),_0x1d37c4),_0x1d37c4++;break;case'delete':_0x56ce04[_0x53c4('0x2c')](_0x1d37c4);break;case'equal':_0x1d37c4++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2eb6=['bind','length','locale','.ck-context','Comment\x20was\x20made\x20on\x20an\x20element','_trimContextValue','add','label','isVisible','ck-context-wrapper','querySelector','ck-annotation__actions','_model','render','execute','lastIndexOf','fire','value','_createReopenButton','div','ck-thread__header','classList','substring','icon','element','ck-context__value','setTemplate','bindTemplate','context','reopenButtonView','reopenCommentThread','scrollWidth','tooltip','ck-context--quotes','mouseenter','contextValue','_attachContextActions','Reopen','isResolvable','hasContext','listenTo','ck-context','.ck-context__value'];(function(_0x31d78e,_0x2eb667){const _0xf961ee=function(_0x5ab077){while(--_0x5ab077){_0x31d78e['push'](_0x31d78e['shift']());}};_0xf961ee(++_0x2eb667);}(_0x2eb6,0x135));const _0xf961=function(_0x31d78e,_0x2eb667){_0x31d78e=_0x31d78e-0x0;let _0xf961ee=_0x2eb6[_0x31d78e];return _0xf961ee;};import{View as _0x1e08c1,ButtonView as _0x28c66c}from'ckeditor5/src/ui';import{getTranslation as _0x3c0ed0}from'../../../utils/common-translations';import _0x588d92 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x1e08c1{constructor(_0x3c3ed6,_0x316087){super(_0x3c3ed6);const _0x2821c6=this[_0xf961('0x13')];this[_0xf961('0x4')]=_0x316087,this[_0xf961('0x15')]=this['_createReopenButton'](),this[_0xf961('0x23')](_0xf961('0x1f'))['to'](this['_model'],_0xf961('0x14'),_0x502721=>!!_0x502721),this[_0xf961('0x23')](_0xf961('0x1b'))['to'](this[_0xf961('0x4')],_0xf961('0x14'),_0x32ba97=>_0x32ba97&&_0x32ba97['value']?this[_0xf961('0x28')](_0x32ba97[_0xf961('0x9')]):_0x3c0ed0(this[_0xf961('0x25')],_0xf961('0x27'))),this[_0xf961('0x12')]({'tag':_0xf961('0xb'),'attributes':{'class':[_0xf961('0xc')]},'children':[{'tag':_0xf961('0xb'),'attributes':{'class':[_0xf961('0x1')]},'children':[{'tag':_0xf961('0xb'),'attributes':{'class':[_0xf961('0x21'),_0x2821c6['if'](_0xf961('0x1f'),_0xf961('0x19'))]},'children':[{'tag':'span','attributes':{'class':[_0xf961('0x11')]},'children':[{'text':_0x2821c6['to'](_0xf961('0x1b'))}]}]}]},{'tag':_0xf961('0xb'),'attributes':{'class':[_0xf961('0x3')]},'children':[this['reopenButtonView']]}]});}[_0xf961('0x5')](){super[_0xf961('0x5')](),this[_0xf961('0x1c')]();}[_0xf961('0xa')](){const _0x32e712=new _0x28c66c(this[_0xf961('0x25')]);return _0x32e712[_0xf961('0x2a')]=_0x3c0ed0(this[_0xf961('0x25')],'Reopen'),_0x32e712[_0xf961('0x18')]=_0x3c0ed0(this[_0xf961('0x25')],_0xf961('0x1d')),_0x32e712[_0xf961('0xf')]=_0x588d92,_0x32e712[_0xf961('0x23')]('isEnabled')['to'](this[_0xf961('0x4')],'isReadOnly',_0x1f380b=>!_0x1f380b),_0x32e712['bind'](_0xf961('0x0'))['to'](this[_0xf961('0x4')],_0xf961('0x1e')),_0x32e712['on'](_0xf961('0x6'),()=>{this[_0xf961('0x8')](_0xf961('0x16'),this['_model']['id']);}),_0x32e712;}[_0xf961('0x28')](_0x25ab85){if(_0x25ab85[_0xf961('0x24')]<0x96)return _0x25ab85;const _0xb0b61f=_0x25ab85[_0xf961('0x7')]('\x20',0x93);return _0x25ab85[_0xf961('0xe')](0x0,_0xb0b61f>-0x1?_0xb0b61f:0x93)+'...';}[_0xf961('0x1c')](){const _0x174d92=this[_0xf961('0x10')][_0xf961('0x2')](_0xf961('0x26')),_0x50d154=_0x174d92['querySelector'](_0xf961('0x22'));this[_0xf961('0x20')](_0x174d92,_0xf961('0x1a'),()=>{_0x50d154['offsetWidth']<_0x50d154[_0xf961('0x17')]&&_0x174d92[_0xf961('0xd')][_0xf961('0x29')]('overlay');}),this['listenTo'](_0x174d92,'mouseleave',()=>{_0x174d92[_0xf961('0xd')]['remove']('overlay');});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2dca=['showButtons','extendTemplate','isFocused','commentInputView','editor','ck-thread__user','div','editorDestroyed','setTemplate','change:showInput','editorReady','createEditor','showInput','delegate','ck-thread__input','then','focusTracker','userView','value','destroy','ck-comment__input-container'];(function(_0x14b217,_0x2dca46){var _0x5834cb=function(_0x9b18dc){while(--_0x9b18dc){_0x14b217['push'](_0x14b217['shift']());}};_0x5834cb(++_0x2dca46);}(_0x2dca,0xba));var _0x5834=function(_0x14b217,_0x2dca46){_0x14b217=_0x14b217-0x0;var _0x5834cb=_0x2dca[_0x14b217];return _0x5834cb;};import{View as _0x534687}from'ckeditor5/src/ui';import _0x502847 from'./commentinputview';import{UserView as _0x5684ab}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x534687{constructor(_0x422419,_0x298cc4,_0x4503fc){super(_0x422419),this[_0x5834('0x6')]=new _0x502847(_0x422419,_0x4503fc),this[_0x5834('0x6')]['bind'](_0x5834('0x3'))['to'](this[_0x5834('0x6')][_0x5834('0x13')],_0x5834('0x5'),this[_0x5834('0x6')],_0x5834('0x0'),(_0x559364,_0x12aaa4)=>_0x559364||!!_0x12aaa4),this['set'](_0x5834('0xf'),!0x1),this['on'](_0x5834('0xc'),()=>{this[_0x5834('0xf')]&&!this['commentInputView'][_0x5834('0x7')]&&this[_0x5834('0x6')][_0x5834('0xe')]();}),this[_0x5834('0x6')][_0x5834('0x10')](_0x5834('0xd'))['to'](this),this[_0x5834('0x6')]['delegate'](_0x5834('0xa'))['to'](this),this['userView']=new _0x5684ab(_0x422419,_0x298cc4),this[_0x5834('0x14')][_0x5834('0x4')]({'attributes':{'class':_0x5834('0x8')}}),this[_0x5834('0x6')]['extendTemplate']({'attributes':{'class':_0x5834('0x11')}}),this[_0x5834('0xb')]({'tag':_0x5834('0x9'),'attributes':{'class':[_0x5834('0x2'),this['bindTemplate']['if'](_0x5834('0xf'),'ck-comment__input-container--active')]},'children':[this[_0x5834('0x14')],this['commentInputView']]});}['destroy'](){return this['commentInputView'][_0x5834('0x1')]()[_0x5834('0x12')](()=>super[_0x5834('0x1')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfbe1=['cancelConfirm','length','showConfirm','commentThreadChildren','render','actionBar','change:isResolved','_boundFirstCommentView','isReadOnly','bindTemplate','listenTo','isResolved','isVisible','isEnabled','ck-thread--remove-confirmation','Resolve','ck-thread--active','bind','containerElement','resolveCommentThread','setTemplate','check','isResolvable','_cancelAllConfirms','get','commentsListView','set','change:isActive','ck-thread--','removeButton','commentThreadHeaderView','createCollection','tooltip','_bindFirstCommentView','actionIndicator','locale','element','isConfirm','fire','stop','addMany','Delete\x20comment\x20thread?','_model','commentViews','_createResolveButton','div','remove','getTemplate','change:isReadOnly','add','extendTemplate','then','resolveButton','ck-reset_all-excluded','icon','placeholder'];(function(_0x3c3618,_0xfbe1e){const _0x58a938=function(_0x231803){while(--_0x231803){_0x3c3618['push'](_0x3c3618['shift']());}};_0x58a938(++_0xfbe1e);}(_0xfbe1,0x161));const _0x58a9=function(_0x3c3618,_0xfbe1e){_0x3c3618=_0x3c3618-0x0;let _0x58a938=_0xfbe1[_0x3c3618];return _0x58a938;};import{ConfirmMixin as _0x22f146}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x586fa}from'ckeditor5/src/ui';import{icons as _0x4eb7d4}from'ckeditor5/src/core';import _0x50ce9d from'./basecommentthreadview';import{getTranslation as _0x547440}from'../../../utils/common-translations';export default class lt extends _0x22f146(_0x50ce9d){constructor(_0xc3c36a,_0x512d71,_0x47a6ca,_0x13c133){super(_0xc3c36a,_0x512d71,_0x47a6ca,_0x13c133),this[_0x58a9('0x2a')]=this[_0x58a9('0xe')](),this['commentThreadChildren'][_0x58a9('0x17')]([this['commentsListView'],this['commentThreadInputView']]),this[_0x58a9('0x19')]['isResolved']&&this['commentThreadChildren'][_0x58a9('0x20')](this[_0x58a9('0xd')],0x0),this[_0x58a9('0x19')]['on'](_0x58a9('0x2d'),(_0x4ad07e,_0x4f9ee1,_0x324d68)=>{_0x324d68?this[_0x58a9('0x2a')][_0x58a9('0x20')](this['commentThreadHeaderView'],0x0):this['commentThreadChildren'][_0x58a9('0x1d')](this[_0x58a9('0xd')]);}),this[_0x58a9('0x9')](_0x58a9('0x11'),null),this[_0x58a9('0x1')]=null,this[_0x58a9('0x2e')]=null,this[_0x58a9('0x12')]=_0xc3c36a,this['resolveButton']=this['_createResolveButton'](),this[_0x58a9('0x3')](this[_0x58a9('0x1e')]()),this['on'](_0x58a9('0xa'),(_0x4dbe23,_0x5786e2,_0x495df9)=>{_0x495df9||this[_0x58a9('0x6')]();}),this['listenTo'](this[_0x58a9('0x19')],_0x58a9('0x1f'),(_0x41c0bd,_0x2524c2,_0x17dcf2)=>{_0x17dcf2&&this[_0x58a9('0x6')]();}),this[_0x58a9('0x28')]>0x0&&this[_0x58a9('0x10')](),this[_0x58a9('0x31')](this['commentsListView']['commentViews'],_0x58a9('0x20'),()=>{this[_0x58a9('0x10')]();});}[_0x58a9('0x1e')](){const _0x2e2902=this[_0x58a9('0x30')];return{'tag':'div','attributes':{'class':['ck-thread',_0x58a9('0x24'),_0x2e2902['if']('isActive',_0x58a9('0x37')),_0x2e2902['if'](_0x58a9('0x14'),_0x58a9('0x35')),_0x2e2902['to'](_0x58a9('0x11'),_0x26b661=>_0x26b661?_0x58a9('0xb')+_0x26b661:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':_0x58a9('0x1c'),'attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}[_0x58a9('0x2b')](){super[_0x58a9('0x2b')](),this[_0x58a9('0x1')]=this[_0x58a9('0x13')]['querySelector']('.ck-thread__container');}['_cancelAllConfirms'](){this[_0x58a9('0x27')]();for(const _0x415f46 of this['commentsListView'][_0x58a9('0x1a')])_0x415f46['cancelConfirm']();}[_0x58a9('0x10')](){const {locale:_0x2eb564}=this,_0x3179a7=this[_0x58a9('0x8')][_0x58a9('0x1a')][_0x58a9('0x7')](0x0);_0x3179a7===this['_boundFirstCommentView']||_0x3179a7['isSystemComment']||(this['_boundFirstCommentView']=_0x3179a7,this['unbind'](_0x58a9('0x11')),this[_0x58a9('0x0')](_0x58a9('0x11'))['to'](_0x3179a7,_0x58a9('0x11'),_0x2186a6=>_0x58a9('0x1d')===_0x2186a6?_0x58a9('0x1d'):null),_0x3179a7[_0x58a9('0x26')]=_0x547440(_0x2eb564,'Write\x20a\x20comment...'),_0x3179a7[_0x58a9('0xc')]['on']('execute',_0x599e64=>{_0x599e64[_0x58a9('0x16')](),this[_0x58a9('0x29')](_0x547440(_0x2eb564,_0x58a9('0x18')),this[_0x58a9('0x1')])[_0x58a9('0x22')](()=>{this[_0x58a9('0x15')]('removeCommentThread');});},{'priority':'high'}),_0x3179a7[_0x58a9('0x2c')][_0x58a9('0x20')](this[_0x58a9('0x23')],0x0));}[_0x58a9('0x1b')](){const _0x5c51d2=new _0x586fa(this['locale']);return _0x5c51d2['label']=_0x547440(this[_0x58a9('0x12')],_0x58a9('0x36')),_0x5c51d2[_0x58a9('0xf')]=_0x547440(this[_0x58a9('0x12')],_0x58a9('0x36')),_0x5c51d2[_0x58a9('0x25')]=_0x4eb7d4[_0x58a9('0x4')],_0x5c51d2[_0x58a9('0x21')]({'attributes':{'class':'ck-comment--resolve'}}),_0x5c51d2['bind'](_0x58a9('0x34'))['to'](this[_0x58a9('0x19')],_0x58a9('0x2f'),_0xf5df85=>!_0xf5df85),_0x5c51d2[_0x58a9('0x0')](_0x58a9('0x33'))['to'](this['_model'],_0x58a9('0x5'),this[_0x58a9('0x19')],_0x58a9('0x32'),(_0x3d494d,_0x19a3e5)=>_0x3d494d&&!_0x19a3e5),_0x5c51d2['on']('execute',()=>{this[_0x58a9('0x15')](_0x58a9('0x2'),this[_0x58a9('0x19')]['id']);}),_0x5c51d2;}}
|