@ckeditor/ckeditor5-comments 35.4.0 → 36.0.1
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 _0x2c97=['enableCommand','editor','get','plugins','addCommentThread','RestrictedEditingModeEditing'];(function(_0x207790,_0x2c97f1){const _0x579262=function(_0x502238){while(--_0x502238){_0x207790['push'](_0x207790['shift']());}};_0x579262(++_0x2c97f1);}(_0x2c97,0xec));const _0x5792=function(_0x207790,_0x2c97f1){_0x207790=_0x207790-0x0;let _0x579262=_0x2c97[_0x207790];return _0x579262;};import{Plugin as _0x535fbe}from'ckeditor5/src/core';export default class q extends _0x535fbe{['afterInit'](){const _0x92fbd3=this[_0x5792('0x5')];if(!_0x92fbd3[_0x5792('0x1')]['has'](_0x5792('0x3')))return;_0x92fbd3[_0x5792('0x1')][_0x5792('0x0')](_0x5792('0x3'))[_0x5792('0x4')](_0x5792('0x2'));}}
|
|
@@ -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 _0x4700=['plugins','forEach','collaboration_features','map','get','dataInsert','_handleImportedData','Users','commands','execute','listenTo','basic','config','define','importWord.commentsStyles','importWord','editor','collaboration.channelId','afterInit'];(function(_0x3a80ed,_0x4700c8){const _0x37458a=function(_0xda978a){while(--_0xda978a){_0x3a80ed['push'](_0x3a80ed['shift']());}};_0x37458a(++_0x4700c8);}(_0x4700,0x159));const _0x3745=function(_0x3a80ed,_0x4700c8){_0x3a80ed=_0x3a80ed-0x0;let _0x37458a=_0x4700[_0x3a80ed];return _0x37458a;};import{Plugin as _0xa095c3}from'ckeditor5/src/core';import{priorities as _0x3e0004}from'ckeditor5/src/utils';import _0x223d54 from'../commentsrepository';export default class G extends _0xa095c3{constructor(_0x4c1626){super(_0x4c1626),this[_0x3745('0xd')][_0x3745('0x9')][_0x3745('0xa')](_0x3745('0xb'),_0x3745('0x8'));}[_0x3745('0xf')](){const _0x5ab623=this[_0x3745('0xd')],_0x4f5984=_0x5ab623[_0x3745('0x5')][_0x3745('0x1')]('importWord'),_0x1be308=_0x5ab623[_0x3745('0x10')][_0x3745('0x1')](_0x3745('0x4'));_0x4f5984&&(_0x4f5984['on'](_0x3745('0x6'),(_0x575ddb,[,_0x391f18])=>{_0x391f18[_0x3745('0x12')]={'comments':!0x0,'user_id':_0x1be308['me']['id'],'comments_styles':this[_0x3745('0xd')]['config'][_0x3745('0x1')](_0x3745('0xb'))};},{'priority':_0x3e0004['high']+0xa}),this[_0x3745('0x7')](_0x4f5984,_0x3745('0x2'),this[_0x3745('0x3')]));}['_handleImportedData'](_0x4f32bb,_0x4d8ce1){const {comment_threads:_0x5f03c8}=_0x4d8ce1;_0x5f03c8&&_0x5f03c8[_0x3745('0x11')](({thread_id:_0x4ca86f,comments:_0x332bfc})=>{const _0x4d26a0=_0x332bfc[_0x3745('0x0')](({author:_0x84384d,content:_0x1e69de,created_at:_0x7efa6e})=>({'content':_0x1e69de,'authorId':this['editor']['plugins'][_0x3745('0x1')](_0x3745('0x4'))['me']['id'],'createdAt':new Date(),'attributes':{'@external':{'authorName':_0x84384d,'createdAt':_0x7efa6e?new Date(_0x7efa6e):new Date(),'source':_0x3745('0xc')}}})),_0x349456=this['editor']['config'][_0x3745('0x1')](_0x3745('0xe'));this[_0x3745('0xd')][_0x3745('0x10')][_0x3745('0x1')](_0x223d54)['addCommentThread']({'channelId':_0x349456,'threadId':_0x4ca86f,'comments':_0x4d26a0});});}}
|
|
@@ -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 _0x4ea3=['create','placeholderElement','getRoot','init','fire','config','name','placeholder','document','view','childCount','plugins','assign','get','end','defaultPlugins','getChild','editing','initPlugins','initialData','model','then','_updatePlaceholder','change','data','focus','destroy','set','createRoot','low','change:placeholder'];(function(_0x5bd152,_0x4ea333){const _0x76364c=function(_0x5d8586){while(--_0x5d8586){_0x5bd152['push'](_0x5bd152['shift']());}};_0x76364c(++_0x4ea333);}(_0x4ea3,0x1e6));const _0x7636=function(_0x5bd152,_0x4ea333){_0x5bd152=_0x5bd152-0x0;let _0x76364c=_0x4ea3[_0x5bd152];return _0x76364c;};import{Editor as _0x3ff759,DataApiMixin as _0x15d8d0}from'ckeditor5/src/core';import _0x26fea6 from'./commenteditorui';import{mix as _0x3172a6,ObservableMixin as _0x3f04de}from'ckeditor5/src/utils';import{enablePlaceholder as _0x3e8657,disablePlaceholder as _0x375a9a}from'ckeditor5/src/engine';import{Clipboard as _0x376621}from'ckeditor5/src/clipboard';import{Enter as _0x88601e,ShiftEnter as _0x858201}from'ckeditor5/src/enter';import{SelectAll as _0x10d8b9}from'ckeditor5/src/select-all';import{Typing as _0xc06e4}from'ckeditor5/src/typing';import{Undo as _0x31e916}from'ckeditor5/src/undo';import{Paragraph as _0x2e9dce}from'ckeditor5/src/paragraph';export default class Bt extends _0x3ff759{constructor(_0x58ad6e={}){(_0x58ad6e=Object[_0x7636('0x16')]({},_0x58ad6e))[_0x7636('0x15')]||(_0x58ad6e[_0x7636('0x15')]=Bt[_0x7636('0x19')]),super(_0x58ad6e),this['ui']=new _0x26fea6(this),this[_0x7636('0x6')](_0x7636('0x11'),''),this[_0x7636('0x1e')][_0x7636('0x12')]['on'](_0x7636('0x2'),()=>this[_0x7636('0x1')](),{'priority':_0x7636('0x8')}),this['on'](_0x7636('0x9'),()=>this[_0x7636('0x1')]()),this[_0x7636('0x1e')][_0x7636('0x12')][_0x7636('0x7')]();}[_0x7636('0xa')](){const _0x5b24e2=this[_0x7636('0xf')][_0x7636('0x17')](_0x7636('0x1d'))||'';return this[_0x7636('0x1c')]()[_0x7636('0x0')](()=>this['ui'][_0x7636('0xd')]())[_0x7636('0x0')](()=>this[_0x7636('0x3')][_0x7636('0xd')](_0x5b24e2))['then'](()=>this[_0x7636('0xe')]('ready'));}[_0x7636('0x5')](){return super[_0x7636('0x5')]()['then'](()=>this['ui'][_0x7636('0x5')]());}[_0x7636('0x4')](){this[_0x7636('0x1e')][_0x7636('0x2')](_0x3e41cc=>{const _0x3ff1e0=this['model'][_0x7636('0x12')]['getRoot'](),_0xf7dd74=_0x3ff1e0['getChild'](_0x3ff1e0[_0x7636('0x14')]-0x1);_0x3e41cc['setSelection'](_0xf7dd74,_0x7636('0x18')),this['editing']['view']['focus']();});}[_0x7636('0x1')](){const _0x2076b8=this[_0x7636('0x1b')][_0x7636('0x13')],_0x560ab6=_0x2076b8[_0x7636('0x12')][_0x7636('0xc')](),_0x51d25c=_0x560ab6[_0x7636('0x1a')](0x0);_0x560ab6['childCount']>0x1||!_0x51d25c||'p'!=_0x51d25c[_0x7636('0x10')]?this[_0x7636('0xb')]&&(_0x375a9a(_0x2076b8,this[_0x7636('0xb')]),this[_0x7636('0xb')]=void 0x0):(_0x3e8657({'view':_0x2076b8,'element':_0x51d25c,'text':this['placeholder'],'keepOnFocus':!0x0}),this[_0x7636('0xb')]=_0x51d25c);}}_0x3172a6(Bt,_0x3f04de),_0x3172a6(Bt,_0x15d8d0),Bt['defaultPlugins']=[_0x376621,_0x88601e,_0x858201,_0x10d8b9,_0xc06e4,_0x31e916,_0x2e9dce];
|
|
@@ -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 _0x2873=['render','ready','init','document','name','fire','locale','view','isFocused','bind','getRoot','element','destroy','rootName','editable'];(function(_0x1516cb,_0x28735d){const _0x2b56e3=function(_0x2e1d4c){while(--_0x2e1d4c){_0x1516cb['push'](_0x1516cb['shift']());}};_0x2b56e3(++_0x28735d);}(_0x2873,0xbc));const _0x2b56=function(_0x1516cb,_0x28735d){_0x1516cb=_0x1516cb-0x0;let _0x2b56e3=_0x2873[_0x1516cb];return _0x2b56e3;};import{EditorUI as _0x331411}from'ckeditor5/src/ui';import _0x4d6c29 from'./commenteditoruiview';export default class xt extends _0x331411{constructor(_0x3877cc){super(_0x3877cc),this[_0x2b56('0xe')]=new _0x4d6c29(_0x3877cc[_0x2b56('0xd')],_0x3877cc['editing'][_0x2b56('0xe')]);}get[_0x2b56('0x3')](){return this[_0x2b56('0xe')][_0x2b56('0x3')];}[_0x2b56('0x9')](){const _0x5158d3=this['editor']['editing'][_0x2b56('0xe')],_0x217ce9=this['view'][_0x2b56('0x6')],_0x5ee7cb=_0x5158d3[_0x2b56('0xa')][_0x2b56('0x2')]();_0x217ce9[_0x2b56('0xb')]=_0x5ee7cb[_0x2b56('0x5')],this[_0x2b56('0xe')][_0x2b56('0x7')]();const _0x127288=_0x217ce9[_0x2b56('0x3')];this['setEditableElement'](_0x217ce9[_0x2b56('0xb')],_0x127288),this['view'][_0x2b56('0x6')][_0x2b56('0x1')](_0x2b56('0x0'))['to'](this['focusTracker']),_0x5158d3['attachDomRoot'](_0x127288),this[_0x2b56('0xc')](_0x2b56('0x8'));}[_0x2b56('0x4')](){super[_0x2b56('0x4')](),this[_0x2b56('0xe')][_0x2b56('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 _0x562a=['focus','createCollection','extendTemplate','ck-voice-label','setTemplate','editable','text','ck-editor__main','comment','ck-editor','ck-editor__aria-label_','cke-editor__aria-label_','main','element','Comment\x20editor','add','render'];(function(_0x56c4cc,_0x562a3c){const _0x109f50=function(_0x58b786){while(--_0x58b786){_0x56c4cc['push'](_0x56c4cc['shift']());}};_0x109f50(++_0x562a3c);}(_0x562a,0x1d0));const _0x109f=function(_0x56c4cc,_0x562a3c){_0x56c4cc=_0x56c4cc-0x0;let _0x109f50=_0x562a[_0x56c4cc];return _0x109f50;};import{InlineEditableUIView as _0x260539,EditorUIView as _0x34d7e9,LabelView as _0x3a87f0}from'ckeditor5/src/ui';import{uid as _0x7a5fb2}from'ckeditor5/src/utils';import{getTranslation as _0x214614}from'../../../utils/common-translations';export default class Et extends _0x34d7e9{constructor(_0x560a4e,_0x519cee){super(_0x560a4e);const _0xbf1f1a=_0x7a5fb2();this[_0x109f('0x7')]=this[_0x109f('0xd')](),this[_0x109f('0x0')]=new _0x260539(_0x560a4e,_0x519cee),this['_voiceLabelView']=this['_createVoiceLabel'](_0xbf1f1a,_0x560a4e),this[_0x109f('0x10')]({'tag':'div','attributes':{'class':['ck-reset',_0x109f('0x4'),'ck-rounded-corners','ck-comment__input'],'role':_0x109f('0x3'),'dir':_0x560a4e['uiLanguageDirection'],'lang':_0x560a4e['uiLanguage'],'aria-labelledby':_0x109f('0x6')+_0xbf1f1a},'children':[this['_voiceLabelView'],{'tag':'div','attributes':{'class':_0x109f('0x2'),'role':'presentation'},'children':this[_0x109f('0x7')]}]});}[_0x109f('0xb')](){super[_0x109f('0xb')](),this[_0x109f('0x7')][_0x109f('0xa')](this[_0x109f('0x0')]);}[_0x109f('0xc')](){this[_0x109f('0x0')][_0x109f('0x8')][_0x109f('0xc')]();}['_createVoiceLabel'](_0x346ec0,_0x2d15a3){const _0x3c7735=new _0x3a87f0();return _0x3c7735[_0x109f('0x1')]=_0x214614(_0x2d15a3,_0x109f('0x9')),_0x3c7735[_0x109f('0xe')]({'attributes':{'id':_0x109f('0x5')+_0x346ec0,'class':_0x109f('0xf')}}),_0x3c7735;}}
|
|
@@ -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 _0x374b=['remove','update','view','stopListening','addComment','getComment','removeComment','listenTo','destroy','removeCommentThread','model','updateComment'];(function(_0x5eb7b7,_0x374b97){var _0x3430f0=function(_0x324676){while(--_0x324676){_0x5eb7b7['push'](_0x5eb7b7['shift']());}};_0x3430f0(++_0x374b97);}(_0x374b,0x1f2));var _0x3430=function(_0x5eb7b7,_0x374b97){_0x5eb7b7=_0x5eb7b7-0x0;var _0x3430f0=_0x374b[_0x5eb7b7];return _0x3430f0;};import{ObservableMixin as _0x28b3c7,mix as _0x2bc0b1}from'ckeditor5/src/utils';export default class ot{constructor(_0x5a1330,_0x3eb4a5){this['model']=_0x5a1330,this[_0x3430('0x4')]['_isAttached']=!0x0,this[_0x3430('0x8')]=_0x3eb4a5,this[_0x3430('0x1')](_0x3eb4a5,_0x3430('0x3'),()=>this[_0x3430('0x6')]()),this['listenTo'](_0x3eb4a5,_0x3430('0xa'),(_0x2a8499,_0x594e99)=>this[_0x3430('0xa')](_0x594e99)),this['listenTo'](_0x3eb4a5,'updateComment',(_0x3e67c6,_0x1bc6cf,_0x5bc003)=>this[_0x3430('0x5')](_0x1bc6cf,_0x5bc003)),this['listenTo'](_0x3eb4a5,_0x3430('0x0'),(_0x243057,_0x56f969)=>this[_0x3430('0x0')](_0x56f969));}[_0x3430('0x6')](){this[_0x3430('0x4')][_0x3430('0x6')]();}[_0x3430('0xa')](_0x45b332){this[_0x3430('0x4')]['addComment']({'content':_0x45b332,'authorId':this[_0x3430('0x8')]['_localUser']['id']});}['updateComment'](_0x1d3f0f,_0x35dd26){this[_0x3430('0x4')][_0x3430('0xb')](_0x1d3f0f)[_0x3430('0x7')]({'content':_0x35dd26});}[_0x3430('0x0')](_0x519765){this['model'][_0x3430('0xb')](_0x519765)['remove']();}[_0x3430('0x2')](){this[_0x3430('0x9')](),this[_0x3430('0x4')]['_isAttached']=!0x1;}}_0x2bc0b1(ot,_0x28b3c7);
|
|
@@ -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 _0x4f87=['cancel','placeholder','isReadOnly','_createCommentThreadInputView','set','focus','disabledSubmit','Reply...','assign','fire','element','length','commentThreadInputView','_config','addComment','stop','change:isActive','destroy','commentsListView','isDirty','removeComment','locale','value','_localUser','submit','hasDirtyComment','delegate','_model','commentInputView','updateComment','removeCommentThread','bind','isActive','Write\x20a\x20comment...'];(function(_0x5bb518,_0x4f87f3){const _0xd06874=function(_0x2453f6){while(--_0x2453f6){_0x5bb518['push'](_0x5bb518['shift']());}};_0xd06874(++_0x4f87f3);}(_0x4f87,0x1e5));const _0xd068=function(_0x5bb518,_0x4f87f3){_0x5bb518=_0x5bb518-0x0;let _0xd06874=_0x4f87[_0x5bb518];return _0xd06874;};import{View as _0x12b732}from'ckeditor5/src/ui';import _0x88cc88 from'./commentthreadinputview';import _0x11d658 from'./commentslistview';import{getTranslation as _0x3fb138}from'../../../utils/common-translations';export default class Rt extends _0x12b732{constructor(_0x538012,_0x392717,_0x42c1ef,_0x17dc66){super(_0x538012),this[_0xd068('0x1d')](_0xd068('0x17'),!0x1),this[_0xd068('0x1d')]('isDirty',!0x1),this[_0xd068('0x12')]=_0x392717,this[_0xd068('0xe')]=_0x42c1ef,this['_config']=_0x17dc66,this[_0xd068('0x9')]=new _0x11d658(_0x538012,_0x392717,Object[_0xd068('0x21')]({'CommentView':this[_0xd068('0x4')]['CommentView']},_0x17dc66)),this[_0xd068('0x9')]['delegate'](_0xd068('0xb'))['to'](this),this[_0xd068('0x9')][_0xd068('0x11')](_0xd068('0x14'))['to'](this),this[_0xd068('0x9')][_0xd068('0x16')](_0xd068('0x17'))['to'](this),this[_0xd068('0x1d')](_0xd068('0x2'),this['commentsListView'][_0xd068('0x2')]),this[_0xd068('0x16')](_0xd068('0x2'))['to'](this[_0xd068('0x9')],'length'),this[_0xd068('0x3')]=this['_createCommentThreadInputView'](),this['on'](_0xd068('0xb'),()=>this['focus']()),this[_0xd068('0x16')](_0xd068('0xa'))['to'](this[_0xd068('0x9')],_0xd068('0x10'),this[_0xd068('0x3')]['commentInputView'],_0xd068('0xd'),(_0xc55d26,_0x44cc22)=>_0xc55d26||!!_0x44cc22);}[_0xd068('0x1e')](){this[_0xd068('0x1')][_0xd068('0x1e')]();}[_0xd068('0x8')](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),this[_0xd068('0x3')][_0xd068('0x8')](),super[_0xd068('0x8')]();}[_0xd068('0x1c')](){const _0x46f5ee=new _0x88cc88(this[_0xd068('0xc')],this[_0xd068('0xe')],this['_config']['editorConfig']),_0x236c10=_0x46f5ee[_0xd068('0x13')];return _0x46f5ee[_0xd068('0x16')]('showInput')['to'](this,'isActive',this[_0xd068('0x12')],_0xd068('0x1b'),_0x236c10,_0xd068('0xd'),(_0x20a792,_0x3183c1,_0x3141c0)=>!!_0x3141c0||_0x20a792&&!_0x3183c1),_0x236c10[_0xd068('0x16')](_0xd068('0x1a'))['to'](this,'length',_0x1b895=>_0x3fb138(this[_0xd068('0xc')],_0x1b895?_0xd068('0x20'):_0xd068('0x18'))),_0x236c10['on'](_0xd068('0xf'),(_0x2e4e34,_0x49a14d)=>{this['fire'](_0xd068('0x5'),_0x49a14d);}),_0x236c10['on'](_0xd068('0x19'),()=>{this[_0xd068('0x1e')]();}),_0x236c10['bind'](_0xd068('0x1f'))['to'](this[_0xd068('0x12')],'isReadOnly'),_0x236c10['on'](_0xd068('0x19'),_0x28a3c2=>{0x0==this[_0xd068('0x2')]&&(this[_0xd068('0x0')](_0xd068('0x15')),_0x28a3c2[_0xd068('0x6')]());}),this['on'](_0xd068('0x7'),(_0x12c58f,_0x47ccce,_0x176aed)=>{_0x176aed||this[_0xd068('0x2')]||_0x236c10['value']||this[_0xd068('0x0')](_0xd068('0x15'));}),_0x46f5ee;}}
|
|
@@ -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 _0x4539=['set','editorConfig','element','createEditor','collapse','disabledSubmit','_createCommentContentView','_model','_config','maxCommentCharsWhenCollapsed','value','initialData','bind','content','focus','add','isReadOnly','switchToDisplayMode','locale','isCollapsed','get','visibleView','isEditMode','editorReady','switchToEditMode','expand','once','_createCommentInputView','destroy','fire','submit'];(function(_0x1036e2,_0x4539e4){const _0x1d387c=function(_0x44ef21){while(--_0x44ef21){_0x1036e2['push'](_0x1036e2['shift']());}};_0x1d387c(++_0x4539e4);}(_0x4539,0x68));const _0x1d38=function(_0x1036e2,_0x4539e4){_0x1036e2=_0x1036e2-0x0;let _0x1d387c=_0x4539[_0x1036e2];return _0x1d387c;};import{View as _0x130eae}from'ckeditor5/src/ui';import{trimHtml as _0x38d826}from'ckeditor5-collaboration/src/collaboration-core';import _0x222bf0 from'./commentcontentview';import _0x5d60c9 from'./commentinputview';export default class Gt extends _0x130eae{constructor(_0x27b2ad,_0x5482b1,_0x583154){super(_0x27b2ad),this[_0x1d38('0x1b')]=_0x5482b1,this['_config']=_0x583154,this[_0x1d38('0x14')](_0x1d38('0xb'),!0x1),this[_0x1d38('0x14')](_0x1d38('0x8'),!0x0),this[_0x1d38('0xa')]=this['createCollection'](),this[_0x1d38('0xa')][_0x1d38('0x4')](this['_createCommentContentView']());}[_0x1d38('0xe')](){this['isCollapsed']=!0x1;}[_0x1d38('0x18')](){this['isEditMode']||(this[_0x1d38('0x8')]=!0x0);}[_0x1d38('0x3')](){this[_0x1d38('0x16')][_0x1d38('0x3')]();}async[_0x1d38('0x11')](){await this[_0x1d38('0xa')][_0x1d38('0x9')](0x0)[_0x1d38('0x11')](),super['destroy']();}[_0x1d38('0xd')](){this[_0x1d38('0xb')]||(this[_0x1d38('0xb')]=!0x0,this[_0x1d38('0xa')]['remove'](0x0)[_0x1d38('0x11')](),this[_0x1d38('0xa')]['add'](this['_createCommentInputView']()));}[_0x1d38('0x6')](){this[_0x1d38('0xb')]&&(this[_0x1d38('0xb')]=!0x1,this['visibleView']['remove'](0x0)[_0x1d38('0x11')](),this[_0x1d38('0xa')][_0x1d38('0x4')](this[_0x1d38('0x1a')]()));}[_0x1d38('0x1a')](){const _0x54d3a3=new _0x222bf0(this['locale']);return _0x54d3a3['bind'](_0x1d38('0x2'))['to'](this[_0x1d38('0x1b')],'content',this,_0x1d38('0x8'),(_0x16ec12,_0x3177b4)=>_0x3177b4?_0x38d826(_0x16ec12,{'limit':this[_0x1d38('0x1c')][_0x1d38('0x1d')]}):_0x16ec12),_0x54d3a3;}[_0x1d38('0x10')](){this['_config'][_0x1d38('0x15')]||(this[_0x1d38('0x1c')][_0x1d38('0x15')]={}),this[_0x1d38('0x1c')][_0x1d38('0x15')][_0x1d38('0x0')]=this[_0x1d38('0x1b')][_0x1d38('0x2')];const _0x462ede=new _0x5d60c9(this[_0x1d38('0x7')],this['_config'][_0x1d38('0x15')]);return _0x462ede[_0x1d38('0x1e')]=this[_0x1d38('0x1b')][_0x1d38('0x2')],_0x462ede[_0x1d38('0x1')](_0x1d38('0x19'))['to'](this[_0x1d38('0x1b')],_0x1d38('0x5')),_0x462ede['on'](_0x1d38('0x13'),(_0x15260d,_0x223083)=>{this[_0x1d38('0x12')]('updateComment',this[_0x1d38('0x1b')]['id'],_0x223083),this[_0x1d38('0x6')](),this[_0x1d38('0x3')]();}),_0x462ede['on']('cancel',()=>{this[_0x1d38('0x6')](),this[_0x1d38('0x3')]();}),_0x462ede[_0x1d38('0xf')](_0x1d38('0xc'),()=>{_0x462ede[_0x1d38('0x3')]();}),_0x462ede[_0x1d38('0x17')](),_0x462ede;}}
|
|
@@ -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 _0x2ea3=['count','setTemplate','bindTemplate','NUMBER_OF_COMMENTS'];(function(_0x5311d1,_0x2ea334){const _0x1e5cee=function(_0x4817e3){while(--_0x4817e3){_0x5311d1['push'](_0x5311d1['shift']());}};_0x1e5cee(++_0x2ea334);}(_0x2ea3,0x1c1));const _0x1e5c=function(_0x5311d1,_0x2ea334){_0x5311d1=_0x5311d1-0x0;let _0x1e5cee=_0x2ea3[_0x5311d1];return _0x1e5cee;};import{View as _0x20fcf0}from'ckeditor5/src/ui';import{getTranslation as _0x187678}from'../../../utils/common-translations';export default class Nt extends _0x20fcf0{constructor(_0x4b5ce9){super(_0x4b5ce9);const _0x1e44d3=this[_0x1e5c('0x1')];this['set']('count'),this[_0x1e5c('0x0')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x1e44d3['to'](_0x1e5c('0x3'),_0x3c8bc6=>_0x187678(_0x4b5ce9,_0x1e5c('0x2'),_0x3c8bc6))}]});}}
|
|
@@ -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 _0x35c3=['innerHTML','setTemplate','div','ck-comment__content','render','element','content','set'];(function(_0x31f0eb,_0x35c355){var _0x5a934f=function(_0x3abcdd){while(--_0x3abcdd){_0x31f0eb['push'](_0x31f0eb['shift']());}};_0x5a934f(++_0x35c355);}(_0x35c3,0x135));var _0x5a93=function(_0x31f0eb,_0x35c355){_0x31f0eb=_0x31f0eb-0x0;var _0x5a934f=_0x35c3[_0x31f0eb];return _0x5a934f;};import{View as _0x3ac39a}from'ckeditor5/src/ui';export default class Tt extends _0x3ac39a{constructor(_0x288377){super(_0x288377),this[_0x5a93('0x2')](_0x5a93('0x1'),''),this[_0x5a93('0x4')]({'tag':_0x5a93('0x5'),'attributes':{'class':[_0x5a93('0x6'),'ck-annotation__content']}});}[_0x5a93('0x7')](){super[_0x5a93('0x7')](),this['on']('change:content',(_0x1a91c0,_0x10bd86,_0x5f48f4)=>{this[_0x5a93('0x0')]['innerHTML']=_0x5f48f4;}),this[_0x5a93('0x0')][_0x5a93('0x3')]=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 _0x24c2=['Esc','insertBefore','focusTracker','cancel','set','getData','model','_initializeFocusCycling','execute','length','_createCancelButton','low','_isDestroyed','render','keystrokes','disabledSubmit','editorReady','ck-comment__input-wrapper','tab','firstChild','initialData','bindTemplate','createEditor','label','change','focus','_createSubmitButton','Reply...','ck-comment__input-actions--cancel','ck-comment__input-actions--active','stop','element','document','destroy','cancelButtonView','forEach','ck-comment__input-actions','submitButtonView','editor','_editorConfig','focusPrevious','bind','high','submit','fire','_editorCreationPromise','isEnabled','extendTemplate','setData','placeholder','then','setTemplate','showButtons','icon','value','add','div','trim'];(function(_0x419b0c,_0x24c279){const _0x12091b=function(_0x42765c){while(--_0x42765c){_0x419b0c['push'](_0x419b0c['shift']());}};_0x12091b(++_0x24c279);}(_0x24c2,0x177));const _0x1209=function(_0x419b0c,_0x24c279){_0x419b0c=_0x419b0c-0x0;let _0x12091b=_0x24c2[_0x419b0c];return _0x12091b;};import{View as _0x20a802,ViewCollection as _0x350831,FocusCycler as _0x45eb3d,ButtonView as _0x163772}from'ckeditor5/src/ui';import{FocusTracker as _0x2a806d,KeystrokeHandler as _0x5d06e5}from'ckeditor5/src/utils';import{icons as _0x1dca17}from'ckeditor5/src/core';import _0x564f95 from'../commenteditor/commenteditor';import{getTranslation as _0x4700ae}from'../../../utils/common-translations';export default class St extends _0x20a802{constructor(_0x3ad983,_0xcb4d28={}){super(_0x3ad983),this[_0x1209('0xb')]=null,this[_0x1209('0xc')]=_0xcb4d28,this[_0x1209('0x2d')]=new _0x5d06e5(),this['focusTracker']=new _0x2a806d(),this[_0x1209('0x23')](_0x1209('0x1b'),_0xcb4d28[_0x1209('0x33')]||''),this['set'](_0x1209('0x2e'),!0x1),this[_0x1209('0x23')]('showButtons',!0x0),this['set'](_0x1209('0x16'),_0x4700ae(_0x3ad983,_0x1209('0x0'))),this[_0x1209('0xa')]=this[_0x1209('0x39')](),this[_0x1209('0x7')]=this[_0x1209('0x29')](),this[_0x1209('0x18')]({'tag':_0x1209('0x1d'),'attributes':{'class':[_0x1209('0x30')]},'children':[{'tag':_0x1209('0x1d'),'attributes':{'class':[_0x1209('0x9'),this[_0x1209('0x34')]['if'](_0x1209('0x19'),_0x1209('0x2'))]},'children':[this[_0x1209('0xa')],this[_0x1209('0x7')]]}]}),this['keystrokes'][_0x1209('0x23')](_0x1209('0x1f'),(_0x1b7b8c,_0x56ed5a)=>{this[_0x1209('0x7')][_0x1209('0x11')](_0x1209('0x27')),_0x56ed5a();}),this['on'](_0x1209('0x10'),(_0x3697fb,_0x28ccac)=>{_0x28ccac[_0x1209('0x28')]>0xfde8?(alert(_0x4700ae(_0x3ad983,'TOO_LONG_COMMENT_ALERT',[_0x28ccac['length'],0xfde8])),_0x3697fb[_0x1209('0x3')]()):this[_0x1209('0xb')][_0x1209('0x15')]('');},{'priority':_0x1209('0xf')});}[_0x1209('0x2c')](){super[_0x1209('0x2c')](),this[_0x1209('0x2d')]['listenTo'](this['element']),this[_0x1209('0x21')][_0x1209('0x1c')](this[_0x1209('0x4')]);}[_0x1209('0x35')](){return this['editor']||(this[_0x1209('0xb')]=new _0x564f95(this['_editorConfig']),this[_0x1209('0x12')]=this[_0x1209('0xb')]['create']()[_0x1209('0x17')](()=>{this[_0x1209('0x2b')]||(this['element'][_0x1209('0x20')](this[_0x1209('0xb')]['ui']['element'],this[_0x1209('0x4')][_0x1209('0x32')]),this[_0x1209('0xb')][_0x1209('0x25')][_0x1209('0x5')]['on'](_0x1209('0x37'),()=>this[_0x1209('0x1b')]=this[_0x1209('0xb')][_0x1209('0x24')]()),this[_0x1209('0xb')][_0x1209('0xe')]('placeholder')['to'](this),this[_0x1209('0x26')](this['editor']),this[_0x1209('0x11')](_0x1209('0x2f')));})),this[_0x1209('0x12')];}['focus'](){this[_0x1209('0xb')]&&this['editor'][_0x1209('0x38')]();}async['destroy'](){this[_0x1209('0x2b')]||(this['_isDestroyed']=!0x0,this[_0x1209('0xb')]&&(await this[_0x1209('0x12')],await this[_0x1209('0xb')][_0x1209('0x6')]()),await super['destroy']());}[_0x1209('0x39')](){const {locale:_0xf03bdc}=this,_0x2d4c80=new _0x163772(_0xf03bdc);return _0x2d4c80[_0x1209('0x14')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2d4c80['label']=_0x4700ae(_0xf03bdc,'Submit'),_0x2d4c80[_0x1209('0x1a')]=_0x1dca17['check'],_0x2d4c80['on']('execute',()=>{this['fire']('submit',this[_0x1209('0x1b')]);}),_0x2d4c80['bind'](_0x1209('0x13'))['to'](this,_0x1209('0x1b'),this,_0x1209('0x2e'),(_0x4fd535,_0x4253de)=>!_0x4253de&&!!_0x4fd535[_0x1209('0x1e')]()),_0x2d4c80;}['_createCancelButton'](){const {locale:_0x1fa418}=this,_0x57bbea=new _0x163772(_0x1fa418);return _0x57bbea[_0x1209('0x14')]({'attributes':{'class':[_0x1209('0x1')]}}),_0x57bbea[_0x1209('0x36')]=_0x4700ae(_0x1fa418,'Cancel'),_0x57bbea[_0x1209('0x1a')]=_0x1dca17[_0x1209('0x22')],_0x57bbea['on'](_0x1209('0x27'),()=>{this[_0x1209('0xb')]['setData'](''),this[_0x1209('0x11')](_0x1209('0x22'));}),_0x57bbea;}['_initializeFocusCycling'](_0x67e616){const _0x4b80cb=this['focusTracker'],_0x5f0587=new _0x350831();[_0x67e616['ui']['view'],this[_0x1209('0xa')],this[_0x1209('0x7')]][_0x1209('0x8')](_0x46cfdd=>{_0x5f0587[_0x1209('0x1c')](_0x46cfdd),_0x4b80cb['add'](_0x46cfdd[_0x1209('0x4')]);});const _0x3908b1=new _0x45eb3d({'focusables':_0x5f0587,'focusTracker':_0x4b80cb});this[_0x1209('0x2d')][_0x1209('0x23')](_0x1209('0x31'),(_0x37408d,_0x35838f)=>{_0x3908b1['focusNext'](),_0x35838f();},{'priority':_0x1209('0x2a')}),this[_0x1209('0x2d')][_0x1209('0x23')]('shift\x20+\x20tab',(_0x110756,_0x497877)=>{_0x3908b1[_0x1209('0xd')](),_0x497877();},{'priority':_0x1209('0x2a')});}}
|
|
@@ -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 _0xaa3a=['set','createCollection','_shouldCollapse','equal','setTemplate','length','delete','_handleNewCommentModel','listenTo','_model','add','render','refreshVisibleViews','change:isActive','isActive','maxThreadTotalWeight','some','change:isEditMode','maxCommentCharsWhenCollapsed','_collapsedCommentsView','commentViews','ck-thread__comments','CommentView','_updateHasDirtyComment','insert','_config','editorConfig','remove','delegate','from','hasDirtyComment','element','_handleRemoveCommentModel','stopListening','change:hasDirtyComment','destroy','formatDateTime','comments','visibleViews','removeComment','commentUpdated','_rearrangeCollapse','maxCommentsWhenCollapsed','isEditMode','count','weight'];(function(_0x4f86ae,_0xaa3a82){const _0x5e6264=function(_0x36a5c4){while(--_0x36a5c4){_0x4f86ae['push'](_0x4f86ae['shift']());}};_0x5e6264(++_0xaa3a82);}(_0xaa3a,0x1b2));const _0x5e62=function(_0x4f86ae,_0xaa3a82){_0x4f86ae=_0x4f86ae-0x0;let _0x5e6264=_0xaa3a[_0x4f86ae];return _0x5e6264;};import{View as _0x2d1e02}from'ckeditor5/src/ui';import{diff as _0x22e5b6,Collection as _0x375906}from'ckeditor5/src/utils';import _0x2f5189 from'./collapsedcommentsview';export default class dt extends _0x2d1e02{constructor(_0x2faff5,_0x301182,_0x47f377){super(_0x2faff5),this['set'](_0x5e62('0xa'),!0x1),this[_0x5e62('0x1a')](_0x5e62('0x1f'),_0x301182[_0x5e62('0x11')]['length']),this[_0x5e62('0x1a')]('isActive',!0x1),this[_0x5e62('0x23')]=_0x301182,this[_0x5e62('0x5')]=_0x47f377,this[_0x5e62('0x0')]=this[_0x5e62('0x1b')](),this[_0x5e62('0x12')]=this[_0x5e62('0x1b')](),this[_0x5e62('0x2d')]=new _0x2f5189(_0x2faff5),this[_0x5e62('0x2d')]['bind'](_0x5e62('0x18'))['to'](this,_0x5e62('0x1f'),_0x884420=>_0x884420-this['_config'][_0x5e62('0x16')]);for(const _0x1494f4 of _0x301182[_0x5e62('0x11')])this[_0x5e62('0x21')](_0x1494f4);this[_0x5e62('0x22')](_0x301182['comments'],'add',(_0x497aee,_0x6b15eb)=>{this[_0x5e62('0x1f')]++,this[_0x5e62('0x21')](_0x6b15eb),this[_0x5e62('0x26')]();}),this[_0x5e62('0x22')](_0x301182[_0x5e62('0x11')],_0x5e62('0x7'),(_0x299031,_0x1ca232)=>{this[_0x5e62('0x1f')]--,this[_0x5e62('0xc')](_0x1ca232),this[_0x5e62('0x26')]();}),this['listenTo'](_0x301182,_0x5e62('0x14'),()=>this[_0x5e62('0x26')]()),this['on'](_0x5e62('0x27'),()=>this['refreshVisibleViews']()),this['on'](_0x5e62('0xe'),()=>this[_0x5e62('0x26')]()),this[_0x5e62('0x1e')]({'tag':'ul','attributes':{'class':[_0x5e62('0x1')]},'children':this[_0x5e62('0x12')]});}get[_0x5e62('0x1c')](){return this[_0x5e62('0x23')][_0x5e62('0x19')]>this[_0x5e62('0x5')][_0x5e62('0x29')]&&!this[_0x5e62('0x28')]&&!this[_0x5e62('0xa')];}[_0x5e62('0x25')](){super['render'](),this[_0x5e62('0x26')]();}['focus'](){this[_0x5e62('0xb')]['focus']();}[_0x5e62('0xf')](){this[_0x5e62('0x2d')]['destroy']();for(const _0x2cf0d6 of this[_0x5e62('0x0')])_0x2cf0d6['destroy']();super[_0x5e62('0xf')]();}[_0x5e62('0x26')](){this[_0x5e62('0x1c')]?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x160c7e){const _0x29a7db=new this[(_0x5e62('0x5'))][(_0x5e62('0x2'))](this['locale'],_0x160c7e,{'maxCommentCharsWhenCollapsed':this['_config'][_0x5e62('0x2c')],'formatDateTime':this[_0x5e62('0x5')][_0x5e62('0x10')],'editorConfig':this[_0x5e62('0x5')][_0x5e62('0x6')]});_0x29a7db['viewUid']=_0x160c7e['id'],_0x29a7db[_0x5e62('0x8')](_0x5e62('0x13'))['to'](this),_0x29a7db[_0x5e62('0x8')]('updateComment')['to'](this),this[_0x5e62('0x22')](_0x29a7db,_0x5e62('0x2b'),()=>this[_0x5e62('0x3')]()),this[_0x5e62('0x0')][_0x5e62('0x24')](_0x29a7db);}[_0x5e62('0xc')](_0x4557d2){const _0x38fa1f=this[_0x5e62('0x0')][_0x5e62('0x7')](_0x4557d2['id']);this[_0x5e62('0xd')](_0x38fa1f),_0x38fa1f['isEditMode']&&this[_0x5e62('0x3')](),_0x38fa1f[_0x5e62('0xf')]();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array[_0x5e62('0x9')](this[_0x5e62('0x0')])[_0x5e62('0x2a')](_0x3e6df1=>_0x3e6df1[_0x5e62('0x17')]);}[_0x5e62('0x15')](){const _0x4d2846=function(_0x298d25){const _0x427fdb=new _0x375906();for(const _0x4d7408 of _0x298d25)_0x427fdb[_0x5e62('0x24')](_0x4d7408);return _0x427fdb;}(this[_0x5e62('0x0')]),_0x418aa7=this['_collapsedCommentsView'][_0x5e62('0x18')];for(let _0x34faa2=0x1;_0x34faa2<=_0x418aa7;_0x34faa2++)_0x4d2846[_0x5e62('0x7')](0x1);for(const _0x46aad0 of _0x4d2846)_0x46aad0['collapse']();_0x418aa7>0x0&&_0x4d2846['add'](this['_collapsedCommentsView'],0x1),Wt(_0x22e5b6(Array['from'](this[_0x5e62('0x12')]),Array[_0x5e62('0x9')](_0x4d2846)),this['visibleViews'],_0x4d2846);}['_rearrangeExpand'](){Wt(_0x22e5b6(Array['from'](this[_0x5e62('0x12')]),Array[_0x5e62('0x9')](this['commentViews'])),this[_0x5e62('0x12')],this[_0x5e62('0x0')]);for(const _0x4495e3 of this[_0x5e62('0x12')])_0x4495e3['expand']();}}function Wt(_0x4287ef,_0x496983,_0x3323a5){let _0x4937ce=0x0;for(const _0x3c892a of _0x4287ef)switch(_0x3c892a){case _0x5e62('0x4'):_0x496983[_0x5e62('0x24')](_0x3323a5['get'](_0x4937ce),_0x4937ce),_0x4937ce++;break;case _0x5e62('0x20'):_0x496983[_0x5e62('0x7')](_0x4937ce);break;case _0x5e62('0x1d'):_0x4937ce++;}}
|
|
@@ -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 _0x3052=['destroy','ck-thread__input','div','bind','then','value','userView','editor','ck-comment__input-container--active','set','commentInputView','createEditor','ck-thread__user','showInput'];(function(_0x38b1d3,_0x3052f1){var _0x5448cd=function(_0x11be1b){while(--_0x11be1b){_0x38b1d3['push'](_0x38b1d3['shift']());}};_0x5448cd(++_0x3052f1);}(_0x3052,0x152));var _0x5448=function(_0x38b1d3,_0x3052f1){_0x38b1d3=_0x38b1d3-0x0;var _0x5448cd=_0x3052[_0x38b1d3];return _0x5448cd;};import{View as _0x1dad78}from'ckeditor5/src/ui';import _0x25e027 from'./commentinputview';import{UserView as _0xd2f6ed}from'ckeditor5-collaboration/src/collaboration-core';export default class ut extends _0x1dad78{constructor(_0x40b0d4,_0x48884e,_0x4cc47d){super(_0x40b0d4),this[_0x5448('0x8')]=new _0x25e027(_0x40b0d4,_0x4cc47d),this[_0x5448('0x8')][_0x5448('0x1')]('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],_0x5448('0x3'),(_0x94c53d,_0x2369cd)=>_0x94c53d||!!_0x2369cd),this[_0x5448('0x7')](_0x5448('0xb'),!0x1),this['on']('change:showInput',()=>{this[_0x5448('0xb')]&&!this[_0x5448('0x8')][_0x5448('0x5')]&&this[_0x5448('0x8')][_0x5448('0x9')]();}),this[_0x5448('0x4')]=new _0xd2f6ed(_0x40b0d4,_0x48884e),this[_0x5448('0x4')]['extendTemplate']({'attributes':{'class':_0x5448('0xa')}}),this[_0x5448('0x8')]['extendTemplate']({'attributes':{'class':_0x5448('0xd')}}),this['setTemplate']({'tag':_0x5448('0x0'),'attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput',_0x5448('0x6'))]},'children':[this['userView'],this[_0x5448('0x8')]]});}[_0x5448('0xc')](){return this[_0x5448('0x8')][_0x5448('0xc')]()[_0x5448('0x2')](()=>super[_0x5448('0xc')]());}}
|
|
@@ -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 _0x28c2=['set','containerElement','isConfirm','isActive','.ck-thread__container','locale','ck-thread--','removeButton','getTemplate','showConfirm','fire','div','change:isActive','removeCommentThread','actionIndicator','placeholder','add','render','then','ck-thread','bindTemplate','ck-thread__container','change:isReadOnly','_boundFirstCommentView','bind','commentThreadInputView','high','element','commentViews','cancelConfirm','stop','remove','listenTo','ck-thread--active','_cancelAllConfirms','commentsListView','_bindFirstCommentView','setTemplate','_model','Write\x20a\x20comment...'];(function(_0x1ea8f1,_0x28c262){const _0x2054a2=function(_0x1efd05){while(--_0x1efd05){_0x1ea8f1['push'](_0x1ea8f1['shift']());}};_0x2054a2(++_0x28c262);}(_0x28c2,0xe4));const _0x2054=function(_0x1ea8f1,_0x28c262){_0x1ea8f1=_0x1ea8f1-0x0;let _0x2054a2=_0x28c2[_0x1ea8f1];return _0x2054a2;};import{mix as _0x126413}from'ckeditor5/src/utils';import{ConfirmMixin as _0x506442}from'ckeditor5-collaboration/src/collaboration-core';import _0x12bdc1 from'./basecommentthreadview';import{getTranslation as _0x1b642a}from'../../../utils/common-translations';export default class it extends _0x12bdc1{constructor(_0x1625d8,_0x539216,_0x330df8,_0x239b9a){super(_0x1625d8,_0x539216,_0x330df8,_0x239b9a),this[_0x2054('0xc')](_0x2054('0x1a'),null),this[_0x2054('0xd')]=null,this[_0x2054('0x23')]=null,this[_0x2054('0x11')]=_0x1625d8,this[_0x2054('0x9')](this['getTemplate']()),this['on'](_0x2054('0x18'),(_0x5d74a5,_0x5ab79a,_0x263e0c)=>{_0x263e0c||this['_cancelAllConfirms']();}),this[_0x2054('0x4')](this[_0x2054('0xa')],_0x2054('0x22'),(_0x19c588,_0x330de3,_0x5a9abc)=>{_0x5a9abc&&this[_0x2054('0x6')]();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this[_0x2054('0x7')][_0x2054('0x0')],_0x2054('0x1c'),()=>{this[_0x2054('0x8')]();});}[_0x2054('0x14')](){const _0x36e441=this[_0x2054('0x20')];return{'tag':_0x2054('0x17'),'attributes':{'class':[_0x2054('0x1f'),_0x36e441['if'](_0x2054('0xf'),_0x2054('0x5')),_0x36e441['if'](_0x2054('0xe'),'ck-thread--remove-confirmation'),_0x36e441['to'](_0x2054('0x1a'),_0x4098e4=>_0x4098e4?_0x2054('0x12')+_0x4098e4:'')],'data-thread-id':this[_0x2054('0xa')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':_0x2054('0x21')},'children':[this['commentsListView'],this[_0x2054('0x25')]]}]};}[_0x2054('0x1d')](){super[_0x2054('0x1d')](),this[_0x2054('0xd')]=this[_0x2054('0x27')]['querySelector'](_0x2054('0x10'));}[_0x2054('0x6')](){this[_0x2054('0x1')]();for(const _0x105428 of this['commentsListView'][_0x2054('0x0')])_0x105428[_0x2054('0x1')]();}['_bindFirstCommentView'](){const {locale:_0x5e790f}=this,_0x4099ad=this[_0x2054('0x7')][_0x2054('0x0')]['get'](0x0);_0x4099ad!==this['_boundFirstCommentView']&&(this[_0x2054('0x23')]=_0x4099ad,this['unbind']('actionIndicator'),this[_0x2054('0x24')](_0x2054('0x1a'))['to'](_0x4099ad,_0x2054('0x1a'),_0x1c96a8=>_0x2054('0x3')===_0x1c96a8?'remove':null),_0x4099ad[_0x2054('0x1b')]=_0x1b642a(_0x5e790f,_0x2054('0xb')),_0x4099ad[_0x2054('0x13')]['on']('execute',_0x52b7e2=>{_0x52b7e2[_0x2054('0x2')](),this[_0x2054('0x15')](_0x1b642a(_0x5e790f,'Delete\x20comment\x20thread?'),this[_0x2054('0xd')])[_0x2054('0x1e')](()=>{this[_0x2054('0x16')](_0x2054('0x19'));});},{'priority':_0x2054('0x26')}));}}_0x126413(it,_0x506442);
|