@ckeditor/ckeditor5-comments 35.4.0 → 36.0.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 +2 -2
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/ug.js +1 -1
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +5 -5
- package/lang/translations/sr.po +5 -5
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +7 -7
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +3 -3
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.js +2 -2
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.js +2 -2
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/integrations/importword.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.js +2 -2
- package/src/commentsonly.js +2 -2
- package/src/index.js +1 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.js +2 -2
- package/theme/commentthread.css +7 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b12=['plugins','afterInit','RestrictedEditingModeEditing','get','editor'];(function(_0x2ad60d,_0x1b1204){const _0x5a9ea0=function(_0x2f7b40){while(--_0x2f7b40){_0x2ad60d['push'](_0x2ad60d['shift']());}};_0x5a9ea0(++_0x1b1204);}(_0x1b12,0x118));const _0x5a9e=function(_0x2ad60d,_0x1b1204){_0x2ad60d=_0x2ad60d-0x0;let _0x5a9ea0=_0x1b12[_0x2ad60d];return _0x5a9ea0;};import{Plugin as _0x332638}from'ckeditor5/src/core';export default class q extends _0x332638{[_0x5a9e('0x1')](){const _0x140529=this[_0x5a9e('0x4')];if(!_0x140529[_0x5a9e('0x0')]['has']('RestrictedEditingModeEditing'))return;_0x140529[_0x5a9e('0x0')][_0x5a9e('0x3')](_0x5a9e('0x2'))['enableCommand']('addCommentThread');}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d0d=['forEach','map','commands','editor','addCommentThread','importWord.commentsStyles','execute','plugins','collaboration.channelId','get','afterInit','basic','Users','high','define','config','listenTo','importWord','dataInsert'];(function(_0x2e818f,_0x1d0d70){const _0x4a0001=function(_0x11ae05){while(--_0x11ae05){_0x2e818f['push'](_0x2e818f['shift']());}};_0x4a0001(++_0x1d0d70);}(_0x1d0d,0x127));const _0x4a00=function(_0x2e818f,_0x1d0d70){_0x2e818f=_0x2e818f-0x0;let _0x4a0001=_0x1d0d[_0x2e818f];return _0x4a0001;};import{Plugin as _0x479e47}from'ckeditor5/src/core';import{priorities as _0x12ae38}from'ckeditor5/src/utils';import _0x3ce41a from'../commentsrepository';export default class G extends _0x479e47{constructor(_0x5cacf8){super(_0x5cacf8),this[_0x4a00('0xc')]['config'][_0x4a00('0x4')]('importWord.commentsStyles',_0x4a00('0x1'));}[_0x4a00('0x0')](){const _0x104ed2=this[_0x4a00('0xc')],_0xd73ee6=_0x104ed2[_0x4a00('0xb')][_0x4a00('0x12')]('importWord'),_0x4745d6=_0x104ed2['plugins']['get'](_0x4a00('0x2'));_0xd73ee6&&(_0xd73ee6['on'](_0x4a00('0xf'),(_0x4887f9,[,_0x2a7608])=>{_0x2a7608['collaboration_features']={'comments':!0x0,'user_id':_0x4745d6['me']['id'],'comments_styles':this[_0x4a00('0xc')]['config'][_0x4a00('0x12')](_0x4a00('0xe'))};},{'priority':_0x12ae38[_0x4a00('0x3')]+0xa}),this[_0x4a00('0x6')](_0xd73ee6,_0x4a00('0x8'),this['_handleImportedData']));}['_handleImportedData'](_0x202fc7,_0x38356d){const {comment_threads:_0x5d6fed}=_0x38356d;_0x5d6fed&&_0x5d6fed[_0x4a00('0x9')](({thread_id:_0x3162d1,comments:_0x3f2684})=>{const _0xb078fd=_0x3f2684[_0x4a00('0xa')](({author:_0x2f0959,content:_0x3c2981,created_at:_0x4430e7})=>({'content':_0x3c2981,'authorId':this[_0x4a00('0xc')][_0x4a00('0x10')][_0x4a00('0x12')]('Users')['me']['id'],'createdAt':new Date(),'attributes':{'@external':{'authorName':_0x2f0959,'createdAt':_0x4430e7?new Date(_0x4430e7):new Date(),'source':_0x4a00('0x7')}}})),_0x18346d=this[_0x4a00('0xc')][_0x4a00('0x5')][_0x4a00('0x12')](_0x4a00('0x11'));this[_0x4a00('0xc')][_0x4a00('0x10')][_0x4a00('0x12')](_0x3ce41a)[_0x4a00('0xd')]({'channelId':_0x18346d,'threadId':_0x3162d1,'comments':_0xb078fd});});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c58=['placeholderElement','config','placeholder','data','assign','plugins','_updatePlaceholder','setSelection','destroy','childCount','model','get','getChild','getRoot','then','document','focus','fire','defaultPlugins','set','init','create','initialData','change','low','editing','name','initPlugins','view'];(function(_0x2029a6,_0x5c5835){const _0x18387a=function(_0x3cca1c){while(--_0x3cca1c){_0x2029a6['push'](_0x2029a6['shift']());}};_0x18387a(++_0x5c5835);}(_0x5c58,0xeb));const _0x1838=function(_0x2029a6,_0x5c5835){_0x2029a6=_0x2029a6-0x0;let _0x18387a=_0x5c58[_0x2029a6];return _0x18387a;};import{Editor as _0x541e5d,DataApiMixin as _0x2d35aa}from'ckeditor5/src/core';import _0x1ab6d6 from'./commenteditorui';import{mix as _0x1fddaa,ObservableMixin as _0x5e62fd}from'ckeditor5/src/utils';import{enablePlaceholder as _0x4e2b5b,disablePlaceholder as _0x30fc23}from'ckeditor5/src/engine';import{Clipboard as _0x2fde8}from'ckeditor5/src/clipboard';import{Enter as _0x5f4644,ShiftEnter as _0x2824ce}from'ckeditor5/src/enter';import{SelectAll as _0x107504}from'ckeditor5/src/select-all';import{Typing as _0x1da83f}from'ckeditor5/src/typing';import{Undo as _0x4d334c}from'ckeditor5/src/undo';import{Paragraph as _0x139024}from'ckeditor5/src/paragraph';export default class Bt extends _0x541e5d{constructor(_0xcd7c67={}){(_0xcd7c67=Object[_0x1838('0x1')]({},_0xcd7c67))[_0x1838('0x2')]||(_0xcd7c67['plugins']=Bt[_0x1838('0xf')]),super(_0xcd7c67),this['ui']=new _0x1ab6d6(this),this[_0x1838('0x10')]('placeholder',''),this[_0x1838('0x7')][_0x1838('0xc')]['on'](_0x1838('0x14'),()=>this[_0x1838('0x3')](),{'priority':_0x1838('0x15')}),this['on']('change:placeholder',()=>this[_0x1838('0x3')]()),this[_0x1838('0x7')][_0x1838('0xc')]['createRoot']();}[_0x1838('0x12')](){const _0x21ecb4=this[_0x1838('0x1b')][_0x1838('0x8')](_0x1838('0x13'))||'';return this[_0x1838('0x18')]()[_0x1838('0xb')](()=>this['ui'][_0x1838('0x11')]())[_0x1838('0xb')](()=>this[_0x1838('0x0')]['init'](_0x21ecb4))['then'](()=>this[_0x1838('0xe')]('ready'));}[_0x1838('0x5')](){return super[_0x1838('0x5')]()[_0x1838('0xb')](()=>this['ui'][_0x1838('0x5')]());}[_0x1838('0xd')](){this[_0x1838('0x7')][_0x1838('0x14')](_0x1241b7=>{const _0x12a1d7=this['model'][_0x1838('0xc')]['getRoot'](),_0x53ca6b=_0x12a1d7[_0x1838('0x9')](_0x12a1d7[_0x1838('0x6')]-0x1);_0x1241b7[_0x1838('0x4')](_0x53ca6b,'end'),this[_0x1838('0x16')]['view'][_0x1838('0xd')]();});}[_0x1838('0x3')](){const _0x16d8e4=this['editing'][_0x1838('0x19')],_0x5504ed=_0x16d8e4[_0x1838('0xc')][_0x1838('0xa')](),_0x1e9ab7=_0x5504ed[_0x1838('0x9')](0x0);_0x5504ed[_0x1838('0x6')]>0x1||!_0x1e9ab7||'p'!=_0x1e9ab7[_0x1838('0x17')]?this[_0x1838('0x1a')]&&(_0x30fc23(_0x16d8e4,this['placeholderElement']),this[_0x1838('0x1a')]=void 0x0):(_0x4e2b5b({'view':_0x16d8e4,'element':_0x1e9ab7,'text':this[_0x1838('0x1c')],'keepOnFocus':!0x0}),this[_0x1838('0x1a')]=_0x1e9ab7);}}_0x1fddaa(Bt,_0x5e62fd),_0x1fddaa(Bt,_0x2d35aa),Bt[_0x1838('0xf')]=[_0x2fde8,_0x5f4644,_0x2824ce,_0x107504,_0x1da83f,_0x4d334c,_0x139024];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1781=['init','locale','setEditableElement','name','getRoot','editable','element','isFocused','fire','bind','editing','view','destroy','focusTracker','render'];(function(_0x58bb2b,_0x17810f){const _0x40ed5a=function(_0x59323e){while(--_0x59323e){_0x58bb2b['push'](_0x58bb2b['shift']());}};_0x40ed5a(++_0x17810f);}(_0x1781,0x1d9));const _0x40ed=function(_0x58bb2b,_0x17810f){_0x58bb2b=_0x58bb2b-0x0;let _0x40ed5a=_0x1781[_0x58bb2b];return _0x40ed5a;};import{EditorUI as _0x388cfe}from'ckeditor5/src/ui';import _0x15c946 from'./commenteditoruiview';export default class xt extends _0x388cfe{constructor(_0x22081e){super(_0x22081e),this[_0x40ed('0x3')]=new _0x15c946(_0x22081e[_0x40ed('0x8')],_0x22081e[_0x40ed('0x2')][_0x40ed('0x3')]);}get[_0x40ed('0xd')](){return this['view'][_0x40ed('0xd')];}[_0x40ed('0x7')](){const _0x287dde=this['editor']['editing'][_0x40ed('0x3')],_0x487abe=this[_0x40ed('0x3')][_0x40ed('0xc')],_0x36c05c=_0x287dde['document'][_0x40ed('0xb')]();_0x487abe[_0x40ed('0xa')]=_0x36c05c['rootName'],this['view'][_0x40ed('0x6')]();const _0xf4df1b=_0x487abe[_0x40ed('0xd')];this[_0x40ed('0x9')](_0x487abe[_0x40ed('0xa')],_0xf4df1b),this[_0x40ed('0x3')][_0x40ed('0xc')][_0x40ed('0x1')](_0x40ed('0xe'))['to'](this[_0x40ed('0x5')]),_0x287dde['attachDomRoot'](_0xf4df1b),this[_0x40ed('0x0')]('ready');}['destroy'](){super[_0x40ed('0x4')](),this[_0x40ed('0x3')][_0x40ed('0x4')]();}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55c8=['_voiceLabelView','ck-editor__aria-label_','ck-editor','render','extendTemplate','ck-rounded-corners','editable','uiLanguageDirection','presentation','main','add','_createVoiceLabel','ck-voice-label','setTemplate','Comment\x20editor','text','element','div','createCollection','ck-editor__main','cke-editor__aria-label_','ck-reset','ck-comment__input'];(function(_0x16ac66,_0x55c849){const _0x189f3a=function(_0x3bbe41){while(--_0x3bbe41){_0x16ac66['push'](_0x16ac66['shift']());}};_0x189f3a(++_0x55c849);}(_0x55c8,0xc3));const _0x189f=function(_0x16ac66,_0x55c849){_0x16ac66=_0x16ac66-0x0;let _0x189f3a=_0x55c8[_0x16ac66];return _0x189f3a;};import{InlineEditableUIView as _0x39e7e4,EditorUIView as _0x8201c,LabelView as _0x1105ef}from'ckeditor5/src/ui';import{uid as _0x1b03bb}from'ckeditor5/src/utils';import{getTranslation as _0x96dd36}from'../../../utils/common-translations';export default class Et extends _0x8201c{constructor(_0x4d89ae,_0x1886ee){super(_0x4d89ae);const _0x3a491c=_0x1b03bb();this[_0x189f('0x15')]=this[_0x189f('0x7')](),this[_0x189f('0x12')]=new _0x39e7e4(_0x4d89ae,_0x1886ee),this[_0x189f('0xc')]=this[_0x189f('0x0')](_0x3a491c,_0x4d89ae),this[_0x189f('0x2')]({'tag':_0x189f('0x6'),'attributes':{'class':[_0x189f('0xa'),_0x189f('0xe'),_0x189f('0x11'),_0x189f('0xb')],'role':'comment','dir':_0x4d89ae[_0x189f('0x13')],'lang':_0x4d89ae['uiLanguage'],'aria-labelledby':_0x189f('0x9')+_0x3a491c},'children':[this[_0x189f('0xc')],{'tag':_0x189f('0x6'),'attributes':{'class':_0x189f('0x8'),'role':_0x189f('0x14')},'children':this[_0x189f('0x15')]}]});}[_0x189f('0xf')](){super[_0x189f('0xf')](),this[_0x189f('0x15')][_0x189f('0x16')](this[_0x189f('0x12')]);}['focus'](){this[_0x189f('0x12')][_0x189f('0x5')]['focus']();}[_0x189f('0x0')](_0x54c3e6,_0x289d2c){const _0x2b8045=new _0x1105ef();return _0x2b8045[_0x189f('0x4')]=_0x96dd36(_0x289d2c,_0x189f('0x3')),_0x2b8045[_0x189f('0x10')]({'attributes':{'id':_0x189f('0xd')+_0x54c3e6,'class':_0x189f('0x1')}}),_0x2b8045;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x355b=['removeCommentThread','update','stopListening','model','remove','removeComment','view','getComment','listenTo','_isAttached','_localUser','addComment','updateComment'];(function(_0x5d0280,_0x355b81){var _0x3bc933=function(_0x23a7f4){while(--_0x23a7f4){_0x5d0280['push'](_0x5d0280['shift']());}};_0x3bc933(++_0x355b81);}(_0x355b,0x1eb));var _0x3bc9=function(_0x5d0280,_0x355b81){_0x5d0280=_0x5d0280-0x0;var _0x3bc933=_0x355b[_0x5d0280];return _0x3bc933;};import{ObservableMixin as _0x2547ce,mix as _0x6ebcbd}from'ckeditor5/src/utils';export default class ot{constructor(_0x55ed1f,_0x1abc3f){this[_0x3bc9('0x6')]=_0x55ed1f,this[_0x3bc9('0x6')]['_isAttached']=!0x0,this[_0x3bc9('0x9')]=_0x1abc3f,this[_0x3bc9('0xb')](_0x1abc3f,_0x3bc9('0x3'),()=>this[_0x3bc9('0x7')]()),this[_0x3bc9('0xb')](_0x1abc3f,_0x3bc9('0x1'),(_0xda3667,_0x537358)=>this['addComment'](_0x537358)),this['listenTo'](_0x1abc3f,_0x3bc9('0x2'),(_0x53e65d,_0x442e45,_0x268541)=>this['updateComment'](_0x442e45,_0x268541)),this[_0x3bc9('0xb')](_0x1abc3f,'removeComment',(_0x5abb18,_0x2cd1c2)=>this[_0x3bc9('0x8')](_0x2cd1c2));}[_0x3bc9('0x7')](){this[_0x3bc9('0x6')][_0x3bc9('0x7')]();}[_0x3bc9('0x1')](_0x1f3082){this[_0x3bc9('0x6')][_0x3bc9('0x1')]({'content':_0x1f3082,'authorId':this['view'][_0x3bc9('0x0')]['id']});}[_0x3bc9('0x2')](_0x51a6e7,_0x16bb06){this[_0x3bc9('0x6')][_0x3bc9('0xa')](_0x51a6e7)[_0x3bc9('0x4')]({'content':_0x16bb06});}[_0x3bc9('0x8')](_0x698a34){this[_0x3bc9('0x6')][_0x3bc9('0xa')](_0x698a34)[_0x3bc9('0x7')]();}['destroy'](){this[_0x3bc9('0x5')](),this[_0x3bc9('0x6')][_0x3bc9('0xc')]=!0x1;}}_0x6ebcbd(ot,_0x2547ce);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb577=['change:isActive','Write\x20a\x20comment...','fire','locale','commentInputView','commentsListView','element','disabledSubmit','cancel','length','bind','hasDirtyComment','addComment','value','_createCommentThreadInputView','isDirty','delegate','placeholder','stop','_config','destroy','focus','commentThreadInputView','set','CommentView','isActive','isReadOnly','_model','showInput','removeCommentThread','updateComment','_localUser','Reply...','removeComment','assign'];(function(_0x1a3c1c,_0xb57782){const _0x19f18c=function(_0x5766db){while(--_0x5766db){_0x1a3c1c['push'](_0x1a3c1c['shift']());}};_0x19f18c(++_0xb57782);}(_0xb577,0xd2));const _0x19f1=function(_0x1a3c1c,_0xb57782){_0x1a3c1c=_0x1a3c1c-0x0;let _0x19f18c=_0xb577[_0x1a3c1c];return _0x19f18c;};import{View as _0x5515ae}from'ckeditor5/src/ui';import _0x226e80 from'./commentthreadinputview';import _0x1d2b29 from'./commentslistview';import{getTranslation as _0x3e0570}from'../../../utils/common-translations';export default class Rt extends _0x5515ae{constructor(_0x1970c8,_0x30946d,_0x446d6a,_0x408d91){super(_0x1970c8),this[_0x19f1('0x17')](_0x19f1('0x19'),!0x1),this[_0x19f1('0x17')](_0x19f1('0xf'),!0x1),this[_0x19f1('0x1b')]=_0x30946d,this[_0x19f1('0x1f')]=_0x446d6a,this['_config']=_0x408d91,this['commentsListView']=new _0x1d2b29(_0x1970c8,_0x30946d,Object[_0x19f1('0x22')]({'CommentView':this[_0x19f1('0x13')][_0x19f1('0x18')]},_0x408d91)),this[_0x19f1('0x5')][_0x19f1('0x10')](_0x19f1('0x21'))['to'](this),this['commentsListView'][_0x19f1('0x10')](_0x19f1('0x1e'))['to'](this),this[_0x19f1('0x5')][_0x19f1('0xa')](_0x19f1('0x19'))['to'](this),this[_0x19f1('0x17')](_0x19f1('0x9'),this['commentsListView'][_0x19f1('0x9')]),this[_0x19f1('0xa')](_0x19f1('0x9'))['to'](this[_0x19f1('0x5')],_0x19f1('0x9')),this[_0x19f1('0x16')]=this[_0x19f1('0xe')](),this['on'](_0x19f1('0x21'),()=>this[_0x19f1('0x15')]()),this[_0x19f1('0xa')](_0x19f1('0xf'))['to'](this[_0x19f1('0x5')],_0x19f1('0xb'),this[_0x19f1('0x16')][_0x19f1('0x4')],'value',(_0x5b7dd8,_0x2db6b9)=>_0x5b7dd8||!!_0x2db6b9);}[_0x19f1('0x15')](){this[_0x19f1('0x6')]['focus']();}['destroy'](){this[_0x19f1('0xf')]=!0x1,this['commentsListView'][_0x19f1('0x14')](),this[_0x19f1('0x16')]['destroy'](),super[_0x19f1('0x14')]();}['_createCommentThreadInputView'](){const _0x4d7fa3=new _0x226e80(this['locale'],this[_0x19f1('0x1f')],this[_0x19f1('0x13')]['editorConfig']),_0x14647c=_0x4d7fa3[_0x19f1('0x4')];return _0x4d7fa3[_0x19f1('0xa')](_0x19f1('0x1c'))['to'](this,_0x19f1('0x19'),this['_model'],_0x19f1('0x1a'),_0x14647c,_0x19f1('0xd'),(_0x5d880d,_0x4f7674,_0x7a45e0)=>!!_0x7a45e0||_0x5d880d&&!_0x4f7674),_0x14647c[_0x19f1('0xa')](_0x19f1('0x11'))['to'](this,_0x19f1('0x9'),_0x7ad9b4=>_0x3e0570(this[_0x19f1('0x3')],_0x7ad9b4?_0x19f1('0x20'):_0x19f1('0x1'))),_0x14647c['on']('submit',(_0x115803,_0x3e7a45)=>{this['fire'](_0x19f1('0xc'),_0x3e7a45);}),_0x14647c['on'](_0x19f1('0x8'),()=>{this['focus']();}),_0x14647c[_0x19f1('0xa')](_0x19f1('0x7'))['to'](this[_0x19f1('0x1b')],'isReadOnly'),_0x14647c['on'](_0x19f1('0x8'),_0x11dca5=>{0x0==this[_0x19f1('0x9')]&&(this[_0x19f1('0x2')](_0x19f1('0x1d')),_0x11dca5[_0x19f1('0x12')]());}),this['on'](_0x19f1('0x0'),(_0x221967,_0x4f34d5,_0x88719b)=>{_0x88719b||this[_0x19f1('0x9')]||_0x14647c['value']||this[_0x19f1('0x2')]('removeCommentThread');}),_0x4d7fa3;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d79=['add','maxCommentCharsWhenCollapsed','editorReady','submit','switchToEditMode','visibleView','_model','expand','createCollection','_config','locale','_createCommentInputView','switchToDisplayMode','isCollapsed','createEditor','focus','fire','bind','destroy','isEditMode','content','updateComment','collapse','editorConfig','remove','disabledSubmit'];(function(_0x59f941,_0x5d79f4){const _0x2853d1=function(_0x5f2c64){while(--_0x5f2c64){_0x59f941['push'](_0x59f941['shift']());}};_0x2853d1(++_0x5d79f4);}(_0x5d79,0x7b));const _0x2853=function(_0x59f941,_0x5d79f4){_0x59f941=_0x59f941-0x0;let _0x2853d1=_0x5d79[_0x59f941];return _0x2853d1;};import{View as _0x403860}from'ckeditor5/src/ui';import{trimHtml as _0x186008}from'ckeditor5-collaboration/src/collaboration-core';import _0xd5e40d from'./commentcontentview';import _0xf335d from'./commentinputview';export default class Gt extends _0x403860{constructor(_0x22e8e7,_0x212064,_0x13f4b2){super(_0x22e8e7),this[_0x2853('0xd')]=_0x212064,this[_0x2853('0x10')]=_0x13f4b2,this['set'](_0x2853('0x0'),!0x1),this['set'](_0x2853('0x14'),!0x0),this[_0x2853('0xc')]=this[_0x2853('0xf')](),this[_0x2853('0xc')][_0x2853('0x7')](this['_createCommentContentView']());}[_0x2853('0xe')](){this[_0x2853('0x14')]=!0x1;}[_0x2853('0x3')](){this['isEditMode']||(this[_0x2853('0x14')]=!0x0);}[_0x2853('0x16')](){this['element'][_0x2853('0x16')]();}async[_0x2853('0x19')](){await this[_0x2853('0xc')]['get'](0x0)['destroy'](),super[_0x2853('0x19')]();}[_0x2853('0xb')](){this[_0x2853('0x0')]||(this['isEditMode']=!0x0,this[_0x2853('0xc')][_0x2853('0x5')](0x0)[_0x2853('0x19')](),this['visibleView'][_0x2853('0x7')](this['_createCommentInputView']()));}[_0x2853('0x13')](){this['isEditMode']&&(this['isEditMode']=!0x1,this[_0x2853('0xc')][_0x2853('0x5')](0x0)[_0x2853('0x19')](),this[_0x2853('0xc')][_0x2853('0x7')](this['_createCommentContentView']()));}['_createCommentContentView'](){const _0x41f00b=new _0xd5e40d(this[_0x2853('0x11')]);return _0x41f00b[_0x2853('0x18')](_0x2853('0x1'))['to'](this[_0x2853('0xd')],'content',this,_0x2853('0x14'),(_0x36e065,_0x5a0705)=>_0x5a0705?_0x186008(_0x36e065,{'limit':this['_config'][_0x2853('0x8')]}):_0x36e065),_0x41f00b;}[_0x2853('0x12')](){this['_config']['editorConfig']||(this[_0x2853('0x10')]['editorConfig']={}),this['_config'][_0x2853('0x4')]['initialData']=this[_0x2853('0xd')][_0x2853('0x1')];const _0x2269d4=new _0xf335d(this[_0x2853('0x11')],this[_0x2853('0x10')][_0x2853('0x4')]);return _0x2269d4['value']=this[_0x2853('0xd')][_0x2853('0x1')],_0x2269d4[_0x2853('0x18')](_0x2853('0x6'))['to'](this[_0x2853('0xd')],'isReadOnly'),_0x2269d4['on'](_0x2853('0xa'),(_0x3bb3e7,_0x4b3243)=>{this[_0x2853('0x17')](_0x2853('0x2'),this['_model']['id'],_0x4b3243),this[_0x2853('0x13')](),this[_0x2853('0x16')]();}),_0x2269d4['on']('cancel',()=>{this[_0x2853('0x13')](),this['focus']();}),_0x2269d4['once'](_0x2853('0x9'),()=>{_0x2269d4[_0x2853('0x16')]();}),_0x2269d4[_0x2853('0x15')](),_0x2269d4;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f3a=['setTemplate'];(function(_0x5b9d58,_0x4f3ac9){const _0x2d2424=function(_0x54dae0){while(--_0x54dae0){_0x5b9d58['push'](_0x5b9d58['shift']());}};_0x2d2424(++_0x4f3ac9);}(_0x4f3a,0x1e5));const _0x2d24=function(_0x5b9d58,_0x4f3ac9){_0x5b9d58=_0x5b9d58-0x0;let _0x2d2424=_0x4f3a[_0x5b9d58];return _0x2d2424;};import{View as _0x8c1530}from'ckeditor5/src/ui';import{getTranslation as _0x5885fc}from'../../../utils/common-translations';export default class Nt extends _0x8c1530{constructor(_0x36b0f8){super(_0x36b0f8);const _0x4c9f98=this['bindTemplate'];this['set']('count'),this[_0x2d24('0x0')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4c9f98['to']('count',_0x26f0ec=>_0x5885fc(_0x36b0f8,'NUMBER_OF_COMMENTS',_0x26f0ec))}]});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4161=['ck-comment__content','setTemplate','ck-annotation__content','set','render','content','innerHTML','div','element','change:content'];(function(_0x57c9b0,_0x416172){var _0x569973=function(_0xe95d0f){while(--_0xe95d0f){_0x57c9b0['push'](_0x57c9b0['shift']());}};_0x569973(++_0x416172);}(_0x4161,0x1d5));var _0x5699=function(_0x57c9b0,_0x416172){_0x57c9b0=_0x57c9b0-0x0;var _0x569973=_0x4161[_0x57c9b0];return _0x569973;};import{View as _0xfbcb12}from'ckeditor5/src/ui';export default class Tt extends _0xfbcb12{constructor(_0x2646a0){super(_0x2646a0),this[_0x5699('0x4')](_0x5699('0x6'),''),this[_0x5699('0x2')]({'tag':_0x5699('0x8'),'attributes':{'class':[_0x5699('0x1'),_0x5699('0x3')]}});}[_0x5699('0x5')](){super[_0x5699('0x5')](),this['on'](_0x5699('0x0'),(_0x32b3be,_0x43301e,_0x5d5e4a)=>{this['element']['innerHTML']=_0x5d5e4a;}),this[_0x5699('0x9')][_0x5699('0x7')]=this['content'];}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14d3=['isEnabled','createEditor','length','_editorConfig','_createCancelButton','listenTo','ck-comment__input-actions--active','fire','editor','TOO_LONG_COMMENT_ALERT','placeholder','getData','_editorCreationPromise','Submit','destroy','label','bindTemplate','focus','document','render','model','Esc','then','value','trim','initialData','stop','div','bind','_createSubmitButton','focusNext','create','extendTemplate','check','add','keystrokes','forEach','insertBefore','cancelButtonView','setData','icon','focusPrevious','element','low','set','_initializeFocusCycling','ck-comment__input-actions--cancel','focusTracker','execute','submit','submitButtonView','_isDestroyed','view','showButtons','ck-comment__input-wrapper','cancel','firstChild','disabledSubmit'];(function(_0x22d4ae,_0x14d374){const _0x1259b6=function(_0x4041d7){while(--_0x4041d7){_0x22d4ae['push'](_0x22d4ae['shift']());}};_0x1259b6(++_0x14d374);}(_0x14d3,0xf6));const _0x1259=function(_0x22d4ae,_0x14d374){_0x22d4ae=_0x22d4ae-0x0;let _0x1259b6=_0x14d3[_0x22d4ae];return _0x1259b6;};import{View as _0x5d0f5f,ViewCollection as _0x584e43,FocusCycler as _0x504c2f,ButtonView as _0x5b7371}from'ckeditor5/src/ui';import{FocusTracker as _0x7d6fe9,KeystrokeHandler as _0x38a999}from'ckeditor5/src/utils';import{icons as _0x5025cf}from'ckeditor5/src/core';import _0x2a435d from'../commenteditor/commenteditor';import{getTranslation as _0x4525fb}from'../../../utils/common-translations';export default class St extends _0x5d0f5f{constructor(_0x24f5b5,_0x5634dc={}){super(_0x24f5b5),this[_0x1259('0x34')]=null,this[_0x1259('0x2f')]=_0x5634dc,this[_0x1259('0x15')]=new _0x38a999(),this[_0x1259('0x21')]=new _0x7d6fe9(),this['set']('value',_0x5634dc[_0x1259('0xb')]||''),this[_0x1259('0x1e')](_0x1259('0x2b'),!0x1),this[_0x1259('0x1e')]('showButtons',!0x0),this[_0x1259('0x1e')](_0x1259('0x36'),_0x4525fb(_0x24f5b5,'Reply...')),this[_0x1259('0x24')]=this[_0x1259('0xf')](),this[_0x1259('0x18')]=this[_0x1259('0x30')](),this['setTemplate']({'tag':_0x1259('0xd'),'attributes':{'class':[_0x1259('0x28')]},'children':[{'tag':_0x1259('0xd'),'attributes':{'class':['ck-comment__input-actions',this[_0x1259('0x2')]['if'](_0x1259('0x27'),_0x1259('0x32'))]},'children':[this[_0x1259('0x24')],this[_0x1259('0x18')]]}]}),this[_0x1259('0x15')][_0x1259('0x1e')](_0x1259('0x7'),(_0x240215,_0xe9d149)=>{this['cancelButtonView'][_0x1259('0x33')](_0x1259('0x22')),_0xe9d149();}),this['on'](_0x1259('0x23'),(_0x59f5a0,_0x5c8660)=>{_0x5c8660['length']>0xfde8?(alert(_0x4525fb(_0x24f5b5,_0x1259('0x35'),[_0x5c8660[_0x1259('0x2e')],0xfde8])),_0x59f5a0[_0x1259('0xc')]()):this[_0x1259('0x34')][_0x1259('0x19')]('');},{'priority':'high'});}[_0x1259('0x5')](){super[_0x1259('0x5')](),this[_0x1259('0x15')][_0x1259('0x31')](this[_0x1259('0x1c')]),this[_0x1259('0x21')]['add'](this[_0x1259('0x1c')]);}[_0x1259('0x2d')](){return this['editor']||(this['editor']=new _0x2a435d(this[_0x1259('0x2f')]),this[_0x1259('0x38')]=this['editor'][_0x1259('0x11')]()[_0x1259('0x8')](()=>{this[_0x1259('0x25')]||(this[_0x1259('0x1c')][_0x1259('0x17')](this[_0x1259('0x34')]['ui'][_0x1259('0x1c')],this[_0x1259('0x1c')][_0x1259('0x2a')]),this[_0x1259('0x34')][_0x1259('0x6')][_0x1259('0x4')]['on']('change',()=>this[_0x1259('0x9')]=this[_0x1259('0x34')][_0x1259('0x37')]()),this[_0x1259('0x34')][_0x1259('0xe')](_0x1259('0x36'))['to'](this),this[_0x1259('0x1f')](this[_0x1259('0x34')]),this[_0x1259('0x33')]('editorReady'));})),this['_editorCreationPromise'];}['focus'](){this[_0x1259('0x34')]&&this[_0x1259('0x34')][_0x1259('0x3')]();}async['destroy'](){this[_0x1259('0x25')]||(this[_0x1259('0x25')]=!0x0,this[_0x1259('0x34')]&&(await this[_0x1259('0x38')],await this[_0x1259('0x34')][_0x1259('0x0')]()),await super[_0x1259('0x0')]());}[_0x1259('0xf')](){const {locale:_0x163e2d}=this,_0xf42c69=new _0x5b7371(_0x163e2d);return _0xf42c69[_0x1259('0x12')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0xf42c69['label']=_0x4525fb(_0x163e2d,_0x1259('0x39')),_0xf42c69[_0x1259('0x1a')]=_0x5025cf[_0x1259('0x13')],_0xf42c69['on'](_0x1259('0x22'),()=>{this['fire'](_0x1259('0x23'),this['value']);}),_0xf42c69[_0x1259('0xe')](_0x1259('0x2c'))['to'](this,_0x1259('0x9'),this,_0x1259('0x2b'),(_0x13288a,_0x7873af)=>!_0x7873af&&!!_0x13288a[_0x1259('0xa')]()),_0xf42c69;}[_0x1259('0x30')](){const {locale:_0x320477}=this,_0x4e8a7b=new _0x5b7371(_0x320477);return _0x4e8a7b[_0x1259('0x12')]({'attributes':{'class':[_0x1259('0x20')]}}),_0x4e8a7b[_0x1259('0x1')]=_0x4525fb(_0x320477,'Cancel'),_0x4e8a7b[_0x1259('0x1a')]=_0x5025cf[_0x1259('0x29')],_0x4e8a7b['on']('execute',()=>{this[_0x1259('0x34')][_0x1259('0x19')](''),this['fire'](_0x1259('0x29'));}),_0x4e8a7b;}[_0x1259('0x1f')](_0x363ddc){const _0xf8fb83=this[_0x1259('0x21')],_0x1c5138=new _0x584e43();[_0x363ddc['ui'][_0x1259('0x26')],this[_0x1259('0x24')],this[_0x1259('0x18')]][_0x1259('0x16')](_0x5717d4=>{_0x1c5138['add'](_0x5717d4),_0xf8fb83[_0x1259('0x14')](_0x5717d4['element']);});const _0x3bf77a=new _0x504c2f({'focusables':_0x1c5138,'focusTracker':_0xf8fb83});this['keystrokes'][_0x1259('0x1e')]('tab',(_0x52bf1d,_0x5ddd96)=>{_0x3bf77a[_0x1259('0x10')](),_0x5ddd96();},{'priority':_0x1259('0x1d')}),this[_0x1259('0x15')][_0x1259('0x1e')]('shift\x20+\x20tab',(_0x244efa,_0x53bfbb)=>{_0x3bf77a[_0x1259('0x1b')](),_0x53bfbb();},{'priority':_0x1259('0x1d')});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x77b5=['from','formatDateTime','element','createCollection','_collapsedCommentsView','_config','render','maxCommentCharsWhenCollapsed','destroy','delete','stopListening','equal','removeComment','_handleRemoveCommentModel','comments','change:isActive','focus','count','set','commentViews','listenTo','refreshVisibleViews','get','length','updateComment','hasDirtyComment','remove','maxThreadTotalWeight','add','_shouldCollapse','insert','_rearrangeCollapse','_updateHasDirtyComment','_handleNewCommentModel','_model','visibleViews','setTemplate','ck-thread__comments','delegate','maxCommentsWhenCollapsed','expand','collapse','isEditMode','editorConfig'];(function(_0x5aec50,_0x77b595){const _0x2a30cd=function(_0x41078d){while(--_0x41078d){_0x5aec50['push'](_0x5aec50['shift']());}};_0x2a30cd(++_0x77b595);}(_0x77b5,0x1e2));const _0x2a30=function(_0x5aec50,_0x77b595){_0x5aec50=_0x5aec50-0x0;let _0x2a30cd=_0x77b5[_0x5aec50];return _0x2a30cd;};import{View as _0x247425}from'ckeditor5/src/ui';import{diff as _0x52b6f4,Collection as _0x2ac3d6}from'ckeditor5/src/utils';import _0xb79c17 from'./collapsedcommentsview';export default class dt extends _0x247425{constructor(_0x3c84df,_0x66a886,_0x46d5d3){super(_0x3c84df),this['set']('hasDirtyComment',!0x1),this[_0x2a30('0x14')](_0x2a30('0x19'),_0x66a886[_0x2a30('0x10')][_0x2a30('0x19')]),this[_0x2a30('0x14')]('isActive',!0x1),this[_0x2a30('0x24')]=_0x66a886,this[_0x2a30('0x7')]=_0x46d5d3,this[_0x2a30('0x15')]=this[_0x2a30('0x5')](),this[_0x2a30('0x25')]=this['createCollection'](),this['_collapsedCommentsView']=new _0xb79c17(_0x3c84df),this[_0x2a30('0x6')]['bind']('count')['to'](this,_0x2a30('0x19'),_0x37f9e6=>_0x37f9e6-this[_0x2a30('0x7')][_0x2a30('0x29')]);for(const _0x117894 of _0x66a886[_0x2a30('0x10')])this[_0x2a30('0x23')](_0x117894);this[_0x2a30('0x16')](_0x66a886[_0x2a30('0x10')],_0x2a30('0x1e'),(_0x2fb22c,_0x2b667c)=>{this[_0x2a30('0x19')]++,this[_0x2a30('0x23')](_0x2b667c),this['refreshVisibleViews']();}),this['listenTo'](_0x66a886[_0x2a30('0x10')],'remove',(_0x929221,_0x1667b7)=>{this[_0x2a30('0x19')]--,this[_0x2a30('0xf')](_0x1667b7),this['refreshVisibleViews']();}),this[_0x2a30('0x16')](_0x66a886,'commentUpdated',()=>this[_0x2a30('0x17')]()),this['on'](_0x2a30('0x11'),()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this[_0x2a30('0x17')]()),this[_0x2a30('0x26')]({'tag':'ul','attributes':{'class':[_0x2a30('0x27')]},'children':this[_0x2a30('0x25')]});}get[_0x2a30('0x1f')](){return this['_model']['weight']>this[_0x2a30('0x7')][_0x2a30('0x1d')]&&!this['isActive']&&!this[_0x2a30('0x1b')];}[_0x2a30('0x8')](){super[_0x2a30('0x8')](),this[_0x2a30('0x17')]();}[_0x2a30('0x12')](){this[_0x2a30('0x4')][_0x2a30('0x12')]();}[_0x2a30('0xa')](){this[_0x2a30('0x6')]['destroy']();for(const _0x59a2ab of this['commentViews'])_0x59a2ab[_0x2a30('0xa')]();super[_0x2a30('0xa')]();}['refreshVisibleViews'](){this['_shouldCollapse']?this[_0x2a30('0x21')]():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x6b9ba9){const _0x5158b6=new this[(_0x2a30('0x7'))]['CommentView'](this['locale'],_0x6b9ba9,{'maxCommentCharsWhenCollapsed':this['_config'][_0x2a30('0x9')],'formatDateTime':this[_0x2a30('0x7')][_0x2a30('0x3')],'editorConfig':this['_config'][_0x2a30('0x1')]});_0x5158b6['viewUid']=_0x6b9ba9['id'],_0x5158b6['delegate'](_0x2a30('0xe'))['to'](this),_0x5158b6[_0x2a30('0x28')](_0x2a30('0x1a'))['to'](this),this['listenTo'](_0x5158b6,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this[_0x2a30('0x15')][_0x2a30('0x1e')](_0x5158b6);}['_handleRemoveCommentModel'](_0x581e6a){const _0x461bea=this[_0x2a30('0x15')]['remove'](_0x581e6a['id']);this[_0x2a30('0xc')](_0x461bea),_0x461bea[_0x2a30('0x0')]&&this[_0x2a30('0x22')](),_0x461bea[_0x2a30('0xa')]();}[_0x2a30('0x22')](){this['hasDirtyComment']=Array['from'](this[_0x2a30('0x15')])['some'](_0x4a44f5=>_0x4a44f5['isEditMode']);}[_0x2a30('0x21')](){const _0x331474=function(_0x3acb45){const _0x3ee11d=new _0x2ac3d6();for(const _0x2ef29b of _0x3acb45)_0x3ee11d[_0x2a30('0x1e')](_0x2ef29b);return _0x3ee11d;}(this[_0x2a30('0x15')]),_0x925e71=this[_0x2a30('0x6')][_0x2a30('0x13')];for(let _0x228e3b=0x1;_0x228e3b<=_0x925e71;_0x228e3b++)_0x331474[_0x2a30('0x1c')](0x1);for(const _0x2026b0 of _0x331474)_0x2026b0[_0x2a30('0x2b')]();_0x925e71>0x0&&_0x331474[_0x2a30('0x1e')](this[_0x2a30('0x6')],0x1),Wt(_0x52b6f4(Array[_0x2a30('0x2')](this['visibleViews']),Array[_0x2a30('0x2')](_0x331474)),this['visibleViews'],_0x331474);}['_rearrangeExpand'](){Wt(_0x52b6f4(Array['from'](this[_0x2a30('0x25')]),Array[_0x2a30('0x2')](this[_0x2a30('0x15')])),this[_0x2a30('0x25')],this[_0x2a30('0x15')]);for(const _0x50a5ca of this[_0x2a30('0x25')])_0x50a5ca[_0x2a30('0x2a')]();}}function Wt(_0x5279d9,_0x123614,_0xa15ff3){let _0x3b4d2b=0x0;for(const _0x244eae of _0x5279d9)switch(_0x244eae){case _0x2a30('0x20'):_0x123614[_0x2a30('0x1e')](_0xa15ff3[_0x2a30('0x18')](_0x3b4d2b),_0x3b4d2b),_0x3b4d2b++;break;case _0x2a30('0xb'):_0x123614[_0x2a30('0x1c')](_0x3b4d2b);break;case _0x2a30('0xd'):_0x3b4d2b++;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4830=['commentInputView','editor','userView','bind','ck-thread__input','extendTemplate','ck-comment__input-container','createEditor','set','change:showInput','showButtons','isFocused','value','then','showInput','div','setTemplate','destroy','bindTemplate','focusTracker'];(function(_0x23a24d,_0x4830ca){var _0x27fb77=function(_0x21eacc){while(--_0x21eacc){_0x23a24d['push'](_0x23a24d['shift']());}};_0x27fb77(++_0x4830ca);}(_0x4830,0xf9));var _0x27fb=function(_0x23a24d,_0x4830ca){_0x23a24d=_0x23a24d-0x0;var _0x27fb77=_0x4830[_0x23a24d];return _0x27fb77;};import{View as _0x44c319}from'ckeditor5/src/ui';import _0x7d30e2 from'./commentinputview';import{UserView as _0x2bdfb8}from'ckeditor5-collaboration/src/collaboration-core';export default class ut extends _0x44c319{constructor(_0xd609cc,_0x4e4d20,_0x529d0c){super(_0xd609cc),this[_0x27fb('0xb')]=new _0x7d30e2(_0xd609cc,_0x529d0c),this['commentInputView'][_0x27fb('0xe')](_0x27fb('0x1'))['to'](this['commentInputView'][_0x27fb('0xa')],_0x27fb('0x2'),this[_0x27fb('0xb')],_0x27fb('0x3'),(_0x24cb1e,_0x266c0f)=>_0x24cb1e||!!_0x266c0f),this[_0x27fb('0x13')](_0x27fb('0x5'),!0x1),this['on'](_0x27fb('0x0'),()=>{this['showInput']&&!this['commentInputView'][_0x27fb('0xc')]&&this['commentInputView'][_0x27fb('0x12')]();}),this[_0x27fb('0xd')]=new _0x2bdfb8(_0xd609cc,_0x4e4d20),this['userView'][_0x27fb('0x10')]({'attributes':{'class':'ck-thread__user'}}),this[_0x27fb('0xb')][_0x27fb('0x10')]({'attributes':{'class':_0x27fb('0xf')}}),this[_0x27fb('0x7')]({'tag':_0x27fb('0x6'),'attributes':{'class':[_0x27fb('0x11'),this[_0x27fb('0x9')]['if'](_0x27fb('0x5'),'ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['destroy'](){return this['commentInputView'][_0x27fb('0x8')]()[_0x27fb('0x4')](()=>super[_0x27fb('0x8')]());}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23cb=['actionIndicator','ck-thread__container','commentsListView','remove','locale','unbind','_model','fire','ck-thread','commentViews','ck-thread--','execute','change:isActive','Write\x20a\x20comment...','cancelConfirm','placeholder','querySelector','containerElement','stop','element','_boundFirstCommentView','Delete\x20comment\x20thread?','_cancelAllConfirms','bindTemplate','change:isReadOnly','listenTo','set','then','getTemplate','get','ck-thread--remove-confirmation','removeButton','ck-thread--active','div','showConfirm','length','commentThreadInputView','_bindFirstCommentView','render','add','removeCommentThread'];(function(_0x15843f,_0x23cb91){const _0x1708d1=function(_0x5cbc08){while(--_0x5cbc08){_0x15843f['push'](_0x15843f['shift']());}};_0x1708d1(++_0x23cb91);}(_0x23cb,0xbe));const _0x1708=function(_0x15843f,_0x23cb91){_0x15843f=_0x15843f-0x0;let _0x1708d1=_0x23cb[_0x15843f];return _0x1708d1;};import{mix as _0xc6623e}from'ckeditor5/src/utils';import{ConfirmMixin as _0x2638ea}from'ckeditor5-collaboration/src/collaboration-core';import _0xd79136 from'./basecommentthreadview';import{getTranslation as _0x282006}from'../../../utils/common-translations';export default class it extends _0xd79136{constructor(_0x1c6000,_0x281776,_0x369872,_0x24ae9b){super(_0x1c6000,_0x281776,_0x369872,_0x24ae9b),this[_0x1708('0x0')](_0x1708('0xf'),null),this[_0x1708('0x20')]=null,this[_0x1708('0x23')]=null,this[_0x1708('0x13')]=_0x1c6000,this['setTemplate'](this[_0x1708('0x2')]()),this['on'](_0x1708('0x1b'),(_0x1c0f63,_0x346242,_0x95258c)=>{_0x95258c||this['_cancelAllConfirms']();}),this[_0x1708('0x28')](this[_0x1708('0x15')],_0x1708('0x27'),(_0x19ec3e,_0x33c3fb,_0x8c137e)=>{_0x8c137e&&this[_0x1708('0x25')]();}),this[_0x1708('0x9')]>0x0&&this[_0x1708('0xb')](),this[_0x1708('0x28')](this[_0x1708('0x11')][_0x1708('0x18')],_0x1708('0xd'),()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x5ea0ad=this[_0x1708('0x26')];return{'tag':_0x1708('0x7'),'attributes':{'class':[_0x1708('0x17'),_0x5ea0ad['if']('isActive',_0x1708('0x6')),_0x5ea0ad['if']('isConfirm',_0x1708('0x4')),_0x5ea0ad['to'](_0x1708('0xf'),_0x1ed47a=>_0x1ed47a?_0x1708('0x19')+_0x1ed47a:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':_0x1708('0x7'),'attributes':{'class':_0x1708('0x10')},'children':[this['commentsListView'],this[_0x1708('0xa')]]}]};}[_0x1708('0xc')](){super['render'](),this['containerElement']=this[_0x1708('0x22')][_0x1708('0x1f')]('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x51cc5b of this[_0x1708('0x11')][_0x1708('0x18')])_0x51cc5b[_0x1708('0x1d')]();}[_0x1708('0xb')](){const {locale:_0x2efc5a}=this,_0x31a09c=this[_0x1708('0x11')][_0x1708('0x18')][_0x1708('0x3')](0x0);_0x31a09c!==this[_0x1708('0x23')]&&(this[_0x1708('0x23')]=_0x31a09c,this[_0x1708('0x14')](_0x1708('0xf')),this['bind'](_0x1708('0xf'))['to'](_0x31a09c,'actionIndicator',_0x32b5a2=>'remove'===_0x32b5a2?_0x1708('0x12'):null),_0x31a09c[_0x1708('0x1e')]=_0x282006(_0x2efc5a,_0x1708('0x1c')),_0x31a09c[_0x1708('0x5')]['on'](_0x1708('0x1a'),_0x503be5=>{_0x503be5[_0x1708('0x21')](),this[_0x1708('0x8')](_0x282006(_0x2efc5a,_0x1708('0x24')),this[_0x1708('0x20')])[_0x1708('0x1')](()=>{this[_0x1708('0x16')](_0x1708('0xe'));});},{'priority':'high'}));}}_0xc6623e(it,_0x2638ea);
|