@ckeditor/ckeditor5-comments 0.0.0-nightly-20230710.1 → 0.0.0-nightly-20230711.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 _0x2b2a=['low','then','destroy','setSelection','placeholder','initialData','ready','_updatePlaceholder','placeholderElement','initPlugins','create','getChild','set','view','plugins','focus','getRoot','end','data','change','document','editing','config','createRoot','fire','change:placeholder','init','get','defaultPlugins','model'];(function(_0x3389e4,_0x2b2a62){const _0x5afd41=function(_0x27ff1b){while(--_0x27ff1b){_0x3389e4['push'](_0x3389e4['shift']());}};_0x5afd41(++_0x2b2a62);}(_0x2b2a,0x13c));const _0x5afd=function(_0x3389e4,_0x2b2a62){_0x3389e4=_0x3389e4-0x0;let _0x5afd41=_0x2b2a[_0x3389e4];return _0x5afd41;};import{Editor as _0x247655,DataApiMixin as _0x217d5d}from'ckeditor5/src/core';import _0x203ba7 from'./commenteditorui';import{ObservableMixin as _0x325935}from'ckeditor5/src/utils';import{enablePlaceholder as _0x21b87b,disablePlaceholder as _0x5b34f1}from'ckeditor5/src/engine';import{Clipboard as _0x3fdf68}from'ckeditor5/src/clipboard';import{Enter as _0x577997,ShiftEnter as _0x10799f}from'ckeditor5/src/enter';import{SelectAll as _0x1fcba5}from'ckeditor5/src/select-all';import{Typing as _0xc59536}from'ckeditor5/src/typing';import{Undo as _0x797cd5}from'ckeditor5/src/undo';import{Paragraph as _0x3633f6}from'ckeditor5/src/paragraph';const Kt=[_0x3fdf68,_0x577997,_0x10799f,_0x1fcba5,_0xc59536,_0x797cd5,_0x3633f6];export default class Lt extends _0x325935(_0x217d5d(_0x247655)){constructor(_0x2b9f33={}){(_0x2b9f33=Object['assign']({},_0x2b9f33))[_0x5afd('0x1c')]||(_0x2b9f33[_0x5afd('0x1c')]=Lt[_0x5afd('0xc')]),super(_0x2b9f33),this['ui']=new _0x203ba7(this),this[_0x5afd('0x1a')](_0x5afd('0x12'),''),this[_0x5afd('0xd')][_0x5afd('0x4')]['on'](_0x5afd('0x3'),()=>this[_0x5afd('0x15')](),{'priority':_0x5afd('0xe')}),this['on'](_0x5afd('0x9'),()=>this['_updatePlaceholder']()),this[_0x5afd('0xd')][_0x5afd('0x4')][_0x5afd('0x7')]();}[_0x5afd('0x18')](){const _0x2f71f6=this[_0x5afd('0x6')][_0x5afd('0xb')](_0x5afd('0x13'))||'';return this[_0x5afd('0x17')]()[_0x5afd('0xf')](()=>this['ui'][_0x5afd('0xa')]())[_0x5afd('0xf')](()=>this[_0x5afd('0x2')][_0x5afd('0xa')](_0x2f71f6))[_0x5afd('0xf')](()=>this[_0x5afd('0x8')](_0x5afd('0x14')));}['destroy'](){return super['destroy']()[_0x5afd('0xf')](()=>this['ui'][_0x5afd('0x10')]());}['focus'](){this['model'][_0x5afd('0x3')](_0x2dd156=>{const _0x28765e=this[_0x5afd('0xd')][_0x5afd('0x4')][_0x5afd('0x0')](),_0x5b062d=_0x28765e&&_0x28765e[_0x5afd('0x19')](_0x28765e['childCount']-0x1);_0x2dd156[_0x5afd('0x11')](_0x5b062d,_0x5afd('0x1')),this['editing'][_0x5afd('0x1b')][_0x5afd('0x1d')]();});}[_0x5afd('0x15')](){const _0x3990e4=this[_0x5afd('0x5')][_0x5afd('0x1b')],_0x49d805=_0x3990e4[_0x5afd('0x4')][_0x5afd('0x0')](),_0x1f0b61=_0x49d805[_0x5afd('0x19')](0x0);_0x49d805['childCount']>0x1||!_0x1f0b61||'p'!=_0x1f0b61['name']?this[_0x5afd('0x16')]&&(_0x5b34f1(_0x3990e4,this[_0x5afd('0x16')]),this[_0x5afd('0x16')]=void 0x0):(_0x21b87b({'view':_0x3990e4,'element':_0x1f0b61,'text':this[_0x5afd('0x12')],'keepOnFocus':!0x0}),this[_0x5afd('0x16')]=_0x1f0b61);}}Lt[_0x5afd('0xc')]=Kt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x570c=['setEditableElement','view','locale','editable','ready','element','attachDomRoot','focusTracker','bind','render','isFocused','editing','editor','rootName','getRoot','fire','destroy','document','name'];(function(_0x2ec8cf,_0x570c52){const _0x121090=function(_0x2c5cfa){while(--_0x2c5cfa){_0x2ec8cf['push'](_0x2ec8cf['shift']());}};_0x121090(++_0x570c52);}(_0x570c,0x128));const _0x1210=function(_0x2ec8cf,_0x570c52){_0x2ec8cf=_0x2ec8cf-0x0;let _0x121090=_0x570c[_0x2ec8cf];return _0x121090;};import{EditorUI as _0x5596ad}from'ckeditor5/src/ui';import _0x54d8f4 from'./commenteditoruiview';export default class jt extends _0x5596ad{constructor(_0xd60829){super(_0xd60829),this[_0x1210('0x9')]=new _0x54d8f4(_0xd60829[_0x1210('0xa')],_0xd60829[_0x1210('0x0')]['view']);}get[_0x1210('0xd')](){return this['view'][_0x1210('0xd')];}['init'](){const _0x392e11=this[_0x1210('0x1')][_0x1210('0x0')][_0x1210('0x9')],_0x592e4b=this[_0x1210('0x9')][_0x1210('0xb')],_0x4685bd=_0x392e11[_0x1210('0x6')][_0x1210('0x3')]();_0x592e4b[_0x1210('0x7')]=_0x4685bd[_0x1210('0x2')],this['view'][_0x1210('0x11')]();const _0x1aa799=_0x592e4b[_0x1210('0xd')];this[_0x1210('0x8')](_0x592e4b['name'],_0x1aa799),this[_0x1210('0x9')]['editable'][_0x1210('0x10')](_0x1210('0x12'))['to'](this[_0x1210('0xf')]),_0x392e11[_0x1210('0xe')](_0x1aa799),this[_0x1210('0x4')](_0x1210('0xc'));}['destroy'](){super[_0x1210('0x5')](),this[_0x1210('0x9')][_0x1210('0x5')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1eae=['cke-editor__aria-label_','createCollection','add','ck-editor','text','main','_voiceLabelView','focus','ck-comment__input','uiLanguageDirection','comment','Comment\x20editor','extendTemplate','_createVoiceLabel','editable','presentation','ck-editor__main','ck-reset','div'];(function(_0x51347b,_0x1eae33){const _0x3d960f=function(_0x3c1542){while(--_0x3c1542){_0x51347b['push'](_0x51347b['shift']());}};_0x3d960f(++_0x1eae33);}(_0x1eae,0x79));const _0x3d96=function(_0x51347b,_0x1eae33){_0x51347b=_0x51347b-0x0;let _0x3d960f=_0x1eae[_0x51347b];return _0x3d960f;};import{InlineEditableUIView as _0x15e4da,EditorUIView as _0x2e4e06,LabelView as _0x1fb021}from'ckeditor5/src/ui';import{uid as _0x4caf2e}from'ckeditor5/src/utils';import{getTranslation as _0x5ef708}from'../../../utils/common-translations';export default class Nt extends _0x2e4e06{constructor(_0x47b927,_0x49d54c){super(_0x47b927);const _0x5d3947=_0x4caf2e();this['main']=this[_0x3d96('0xd')](),this['editable']=new _0x15e4da(_0x47b927,_0x49d54c),this['_voiceLabelView']=this[_0x3d96('0x6')](_0x5d3947,_0x47b927),this['setTemplate']({'tag':_0x3d96('0xb'),'attributes':{'class':[_0x3d96('0xa'),_0x3d96('0xf'),'ck-rounded-corners',_0x3d96('0x1')],'role':_0x3d96('0x3'),'dir':_0x47b927[_0x3d96('0x2')],'lang':_0x47b927['uiLanguage'],'aria-labelledby':_0x3d96('0xc')+_0x5d3947},'children':[this[_0x3d96('0x12')],{'tag':_0x3d96('0xb'),'attributes':{'class':_0x3d96('0x9'),'role':_0x3d96('0x8')},'children':this[_0x3d96('0x11')]}]});}['render'](){super['render'](),this[_0x3d96('0x11')][_0x3d96('0xe')](this[_0x3d96('0x7')]);}[_0x3d96('0x0')](){this[_0x3d96('0x7')]['element'][_0x3d96('0x0')]();}[_0x3d96('0x6')](_0x21838a,_0x575a2a){const _0x2b658d=new _0x1fb021();return _0x2b658d[_0x3d96('0x10')]=_0x5ef708(_0x575a2a,_0x3d96('0x4')),_0x2b658d[_0x3d96('0x5')]({'attributes':{'id':'ck-editor__aria-label_'+_0x21838a,'class':'ck-voice-label'}}),_0x2b658d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3969=['submit','stopListening','destroy','isResolved','reopen','listenTo','resolveCommentThread','_isAttached','remove','view','getComment','removeCommentThread','removeComment','submitCommentThread','updateComment','resolve','update','model','addComment','reopenCommentThread'];(function(_0xa9719,_0x39699f){var _0x4ac030=function(_0x1c3442){while(--_0x1c3442){_0xa9719['push'](_0xa9719['shift']());}};_0x4ac030(++_0x39699f);}(_0x3969,0x66));var _0x4ac0=function(_0xa9719,_0x39699f){_0xa9719=_0xa9719-0x0;var _0x4ac030=_0x3969[_0xa9719];return _0x4ac030;};import{ObservableMixin as _0x329f26}from'ckeditor5/src/utils';export default class ct extends _0x329f26(){constructor(_0x14952e,_0x461a74){super(),this[_0x4ac0('0xf')]=_0x14952e,this['model'][_0x4ac0('0x5')]=!0x0,this['view']=_0x461a74,this[_0x4ac0('0x3')](_0x461a74,_0x4ac0('0xb'),()=>this['submit']()),this['listenTo'](_0x461a74,_0x4ac0('0x9'),()=>this['remove']()),this[_0x4ac0('0x3')](_0x461a74,_0x4ac0('0x4'),()=>this[_0x4ac0('0xd')]()),this[_0x4ac0('0x3')](_0x461a74,_0x4ac0('0x11'),()=>this[_0x4ac0('0x2')]()),this[_0x4ac0('0x3')](_0x461a74,'addComment',(_0x251324,_0x4078e3)=>this[_0x4ac0('0x10')](_0x4078e3)),this[_0x4ac0('0x3')](_0x461a74,_0x4ac0('0xc'),(_0x28b407,_0x1ceb9c,_0x31b43c)=>this[_0x4ac0('0xc')](_0x1ceb9c,_0x31b43c)),this[_0x4ac0('0x3')](_0x461a74,_0x4ac0('0xa'),(_0x260f13,_0x77da50)=>this[_0x4ac0('0xa')](_0x77da50));}[_0x4ac0('0x12')](){this[_0x4ac0('0xf')][_0x4ac0('0x12')]();}[_0x4ac0('0x6')](){this[_0x4ac0('0xf')][_0x4ac0('0x6')]();}[_0x4ac0('0xd')](){this[_0x4ac0('0xf')]['isResolved']||this[_0x4ac0('0xf')]['resolve']();}[_0x4ac0('0x2')](){this[_0x4ac0('0xf')][_0x4ac0('0x1')]&&this[_0x4ac0('0xf')][_0x4ac0('0x2')]();}[_0x4ac0('0x10')](_0x10742c){this[_0x4ac0('0xf')][_0x4ac0('0x10')]({'content':_0x10742c,'authorId':this[_0x4ac0('0x7')]['_localUser']['id']});}[_0x4ac0('0xc')](_0x51fc64,_0x2e8e73){this['model'][_0x4ac0('0x8')](_0x51fc64)[_0x4ac0('0xe')]({'content':_0x2e8e73});}[_0x4ac0('0xa')](_0x495832){this[_0x4ac0('0xf')][_0x4ac0('0x8')](_0x495832)[_0x4ac0('0x6')]();}[_0x4ac0('0x0')](){this[_0x4ac0('0x13')](),this[_0x4ac0('0xf')][_0x4ac0('0x5')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x359b=['addComment','isDirty','resolveCommentThread','fire','focus','Reply','editorReady','cancel','stop','isActive','assign','element','delegate','_config','isResolvable','Reply\x20to\x20reopen\x20discussion...','isSubmitted','value','isReadOnly','length','removeCommentThread','Comment','locale','_model','updateComment','change:isActive','commentInputView','Write\x20a\x20comment...','commentThreadInputView','editorConfig','submitLabel','_createCommentThreadInputView','bind','showInput','submitCommentThread','commentThreadHeaderView','removeComment','disabledSubmit','Reply...','reopenCommentThread','destroy','placeholder','set','isResolved','editorDestroyed','hasDirtyComment','commentsListView'];(function(_0x56287a,_0x359bee){const _0x5655af=function(_0x55bfef){while(--_0x55bfef){_0x56287a['push'](_0x56287a['shift']());}};_0x5655af(++_0x359bee);}(_0x359b,0x1ce));const _0x5655=function(_0x56287a,_0x359bee){_0x56287a=_0x56287a-0x0;let _0x5655af=_0x359b[_0x56287a];return _0x5655af;};import{View as _0x5220e6}from'ckeditor5/src/ui';import _0x4e76f7 from'./commentthreadinputview';import _0x5196d2 from'./commentslistview';import _0x245789 from'./commentthreadheaderview';import{getTranslation as _0x40ca20}from'../../../utils/common-translations';export default class Tt extends _0x5220e6{constructor(_0x2ea49f,_0x4a3df0,_0x7905d5,_0x161d01){super(_0x2ea49f),this[_0x5655('0x3')]('isActive',!0x1),this[_0x5655('0x3')](_0x5655('0x9'),!0x1),this[_0x5655('0x1f')]=_0x4a3df0,this['_localUser']=_0x7905d5,this[_0x5655('0x15')]=_0x161d01,this[_0x5655('0x2b')]=new _0x245789(_0x2ea49f,_0x4a3df0),this[_0x5655('0x2b')][_0x5655('0x14')](_0x5655('0x0'))['to'](this),this[_0x5655('0x7')]=new _0x5196d2(_0x2ea49f,_0x4a3df0,Object[_0x5655('0x12')]({'CommentView':this['_config']['CommentView']},_0x161d01)),this[_0x5655('0x7')][_0x5655('0x14')](_0x5655('0x2c'))['to'](this),this[_0x5655('0x7')][_0x5655('0x14')](_0x5655('0x20'))['to'](this),this[_0x5655('0x7')][_0x5655('0x14')](_0x5655('0xa'))['to'](this),this[_0x5655('0x7')][_0x5655('0x14')](_0x5655('0xe'))['to'](this),this['commentsListView'][_0x5655('0x14')](_0x5655('0x5'))['to'](this),this[_0x5655('0x7')]['bind']('isActive')['to'](this),this[_0x5655('0x3')](_0x5655('0x1b'),this['commentsListView'][_0x5655('0x1b')]),this['bind'](_0x5655('0x1b'))['to'](this['commentsListView'],_0x5655('0x1b')),this[_0x5655('0x24')]=this[_0x5655('0x27')](),this[_0x5655('0x24')][_0x5655('0x14')](_0x5655('0xe'))['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this[_0x5655('0xc')]()),this['bind'](_0x5655('0x9'))['to'](this[_0x5655('0x7')],_0x5655('0x6'),this['commentThreadInputView'][_0x5655('0x22')],_0x5655('0x19'),(_0x5b6cbb,_0x43b46f)=>_0x5b6cbb||!!_0x43b46f);}['focus'](){this[_0x5655('0x13')]['focus']();}[_0x5655('0x1')](){this[_0x5655('0x9')]=!0x1,this[_0x5655('0x7')][_0x5655('0x1')](),this[_0x5655('0x24')][_0x5655('0x1')](),super[_0x5655('0x1')]();}[_0x5655('0x27')](){const _0x5c6efc=new _0x4e76f7(this[_0x5655('0x1e')],this['_localUser'],this[_0x5655('0x15')][_0x5655('0x25')]),_0x1fddfc=_0x5c6efc[_0x5655('0x22')];return _0x5c6efc[_0x5655('0x28')](_0x5655('0x29'))['to'](this,_0x5655('0x11'),this[_0x5655('0x1f')],_0x5655('0x1a'),this[_0x5655('0x1f')],'isResolved',_0x1fddfc,_0x5655('0x19'),(_0x273bff,_0x48d1e5,_0x3c5c50,_0x45ea6e)=>!!_0x45ea6e||_0x3c5c50&&!_0x48d1e5||_0x273bff&&!_0x48d1e5),_0x1fddfc['bind'](_0x5655('0x2'))['to'](this,_0x5655('0x1b'),this[_0x5655('0x1f')],_0x5655('0x16'),this[_0x5655('0x1f')],_0x5655('0x4'),(_0x4a860f,_0x375df2,_0xe3972e)=>{let _0x4bc66c;return _0x4bc66c=_0xe3972e&&_0x375df2?_0x5655('0x17'):_0x4a860f?_0x5655('0x2e'):_0x5655('0x23'),_0x40ca20(this['locale'],_0x4bc66c);}),_0x1fddfc[_0x5655('0x28')](_0x5655('0x26'))['to'](this,'length',_0x33f40f=>_0x40ca20(this[_0x5655('0x1e')],_0x33f40f?_0x5655('0xd'):_0x5655('0x1d'))),_0x1fddfc['on']('submit',(_0x383a70,_0x494373)=>{this[_0x5655('0xb')](_0x5655('0x8'),_0x494373),this[_0x5655('0x1f')][_0x5655('0x4')]&&this[_0x5655('0x1f')][_0x5655('0x16')]&&this[_0x5655('0xb')]('reopenCommentThread',this[_0x5655('0x1f')]['id']),this[_0x5655('0x1f')][_0x5655('0x18')]||this['fire'](_0x5655('0x2a'));}),_0x1fddfc['on'](_0x5655('0xf'),()=>{this['focus']();}),_0x1fddfc['bind'](_0x5655('0x2d'))['to'](this[_0x5655('0x1f')],_0x5655('0x1a')),_0x1fddfc['on']('cancel',_0x368318=>{0x0==this[_0x5655('0x1b')]&&(this[_0x5655('0xb')](_0x5655('0x1c')),_0x368318[_0x5655('0x10')]());}),this['on'](_0x5655('0x21'),(_0x113b37,_0x40f006,_0x427eb4)=>{_0x427eb4||this[_0x5655('0x1b')]||_0x1fddfc[_0x5655('0x19')]||this['fire']('removeCommentThread');}),_0x5c6efc;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22c2=['createEditor','content','expand','submit','isEditMode','focus','once','_createCommentInputView','updateComment','visibleView','fire','Save','destroy','isReadOnly','get','collapse','element','isSystemComment','cancel','value','createCollection','submitLabel','remove','isCollapsed','disabledSubmit','switchToDisplayMode','set','initialData','bind','editorDestroyed','maxCommentCharsWhenCollapsed','_createCommentContentView','_config','_model','delegate','add','locale','editorReady','editorConfig'];(function(_0x4511b1,_0x22c25e){const _0x4c6e58=function(_0x394376){while(--_0x394376){_0x4511b1['push'](_0x4511b1['shift']());}};_0x4c6e58(++_0x22c25e);}(_0x22c2,0x186));const _0x4c6e=function(_0x4511b1,_0x22c25e){_0x4511b1=_0x4511b1-0x0;let _0x4c6e58=_0x22c2[_0x4511b1];return _0x4c6e58;};import{View as _0x423d62}from'ckeditor5/src/ui';import{trimHtml as _0x5a655e}from'ckeditor5-collaboration/src/collaboration-core';import _0x502b3d from'./commentcontentview';import _0x1df339 from'./commentinputview';import{getTranslation as _0x81242e}from'../../../utils/common-translations';export default class Yt extends _0x423d62{constructor(_0x18a019,_0x3dd9ad,_0x40de52){super(_0x18a019),this[_0x4c6e('0x21')]=_0x3dd9ad,this['_config']=_0x40de52,this[_0x4c6e('0x11')]=!!this[_0x4c6e('0x20')][_0x4c6e('0x11')],this[_0x4c6e('0x1a')](_0x4c6e('0x4'),!0x1),this[_0x4c6e('0x1a')](_0x4c6e('0x17'),!0x0),this[_0x4c6e('0x9')]=this[_0x4c6e('0x14')](),this['visibleView'][_0x4c6e('0x23')](this[_0x4c6e('0x1f')]());}[_0x4c6e('0x2')](){this[_0x4c6e('0x17')]=!0x1;}[_0x4c6e('0xf')](){this['isEditMode']||(this[_0x4c6e('0x17')]=!0x0);}[_0x4c6e('0x5')](){this[_0x4c6e('0x10')]['focus']();}async[_0x4c6e('0xc')](){await this[_0x4c6e('0x9')][_0x4c6e('0xe')](0x0)[_0x4c6e('0xc')](),super[_0x4c6e('0xc')]();}['switchToEditMode'](){this[_0x4c6e('0x4')]||(this[_0x4c6e('0x4')]=!0x0,this[_0x4c6e('0x9')]['remove'](0x0)[_0x4c6e('0xc')](),this[_0x4c6e('0x9')][_0x4c6e('0x23')](this[_0x4c6e('0x7')]()));}[_0x4c6e('0x19')](){this[_0x4c6e('0x4')]&&(this[_0x4c6e('0x4')]=!0x1,this[_0x4c6e('0x9')][_0x4c6e('0x16')](0x0)[_0x4c6e('0xc')](),this['visibleView'][_0x4c6e('0x23')](this['_createCommentContentView']()));}[_0x4c6e('0x1f')](){const _0x4a36b2=new _0x502b3d(this[_0x4c6e('0x24')]);return _0x4a36b2[_0x4c6e('0x1c')]('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x22fc7e,_0x5f3df2)=>_0x5f3df2?_0x5a655e(_0x22fc7e,{'limit':this['_config'][_0x4c6e('0x1e')]}):_0x22fc7e),_0x4a36b2;}[_0x4c6e('0x7')](){this[_0x4c6e('0x20')][_0x4c6e('0x26')]||(this[_0x4c6e('0x20')]['editorConfig']={}),this[_0x4c6e('0x20')]['editorConfig'][_0x4c6e('0x1b')]=this[_0x4c6e('0x21')][_0x4c6e('0x1')];const _0x2f3328=new _0x1df339(this[_0x4c6e('0x24')],this[_0x4c6e('0x20')][_0x4c6e('0x26')]);return _0x2f3328[_0x4c6e('0x13')]=this[_0x4c6e('0x21')][_0x4c6e('0x1')],_0x2f3328[_0x4c6e('0x1c')](_0x4c6e('0x18'))['to'](this['_model'],_0x4c6e('0xd')),_0x2f3328[_0x4c6e('0x15')]=_0x81242e(this[_0x4c6e('0x24')],_0x4c6e('0xb')),_0x2f3328['on'](_0x4c6e('0x3'),(_0x199646,_0x23b5e6)=>{this[_0x4c6e('0xa')](_0x4c6e('0x8'),this[_0x4c6e('0x21')]['id'],_0x23b5e6),this[_0x4c6e('0x19')](),this[_0x4c6e('0x5')]();}),_0x2f3328['on'](_0x4c6e('0x12'),()=>{this[_0x4c6e('0x19')](),this[_0x4c6e('0x5')]();}),_0x2f3328[_0x4c6e('0x6')](_0x4c6e('0x25'),()=>{_0x2f3328[_0x4c6e('0x5')]();}),_0x2f3328[_0x4c6e('0x0')](),_0x2f3328[_0x4c6e('0x22')]('editorReady')['to'](this),_0x2f3328[_0x4c6e('0x22')](_0x4c6e('0x1d'))['to'](this),_0x2f3328;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2313=['NUMBER_OF_COMMENTS','set','ck-thread__comment-count','count','setTemplate'];(function(_0x2adabf,_0x231310){const _0x45b742=function(_0x3f67cd){while(--_0x3f67cd){_0x2adabf['push'](_0x2adabf['shift']());}};_0x45b742(++_0x231310);}(_0x2313,0x118));const _0x45b7=function(_0x2adabf,_0x231310){_0x2adabf=_0x2adabf-0x0;let _0x45b742=_0x2313[_0x2adabf];return _0x45b742;};import{View as _0x1d8caa}from'ckeditor5/src/ui';import{getTranslation as _0x565fb6}from'../../../utils/common-translations';export default class Zt extends _0x1d8caa{constructor(_0x5627ca){super(_0x5627ca);const _0x5b961b=this['bindTemplate'];this[_0x45b7('0x1')](_0x45b7('0x3'),void 0x0),this[_0x45b7('0x4')]({'tag':'li','attributes':{'class':_0x45b7('0x2')},'children':[{'text':_0x5b961b['to'](_0x45b7('0x3'),_0x208fff=>_0x565fb6(_0x5627ca,_0x45b7('0x0'),_0x208fff))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2486=['setTemplate','content','ck-annotation__content','render','ck-comment__content','element','set','div','change:content','innerHTML'];(function(_0x3e2e9a,_0x2486db){var _0x2afdaa=function(_0x3dddcc){while(--_0x3dddcc){_0x3e2e9a['push'](_0x3e2e9a['shift']());}};_0x2afdaa(++_0x2486db);}(_0x2486,0x169));var _0x2afd=function(_0x3e2e9a,_0x2486db){_0x3e2e9a=_0x3e2e9a-0x0;var _0x2afdaa=_0x2486[_0x3e2e9a];return _0x2afdaa;};import{View as _0x507c27}from'ckeditor5/src/ui';export default class Ut extends _0x507c27{constructor(_0x2bd6f2){super(_0x2bd6f2),this[_0x2afd('0x5')](_0x2afd('0x0'),''),this[_0x2afd('0x9')]({'tag':_0x2afd('0x6'),'attributes':{'class':[_0x2afd('0x3'),_0x2afd('0x1')]}});}[_0x2afd('0x2')](){super[_0x2afd('0x2')](),this['on'](_0x2afd('0x7'),(_0xde5968,_0x176448,_0x283a0c)=>{this[_0x2afd('0x4')][_0x2afd('0x8')]=_0x283a0c;}),this[_0x2afd('0x4')]['innerHTML']=this['content'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b13=['getData','disabledSubmit','cancelButtonView','change','editorDestroyed','_isDestroyed','shift\x20+\x20tab','create','focusPrevious','Reply','destroy','ck-comment__input-actions--cancel','setData','fire','Cancel','element','placeholder','focusNext','extendTemplate','label','_editorCreationPromise','insertBefore','keystrokes','editor','setTemplate','low','_createCancelButton','stop','initialData','bind','firstChild','ck-comment__input-wrapper','value','cancel','focusTracker','_createSubmitButton','ck-comment__input-actions','Reply...','view','_initializeFocusCycling','_editorConfig','TOO_LONG_COMMENT_ALERT','withText','tab','length','createEditor','showButtons','ck-comment__input-actions--submit','div','focus','model','submitButtonView','bindTemplate','set','execute','submitLabel','forEach','add','submit'];(function(_0x44a5b2,_0x2b13e0){const _0x220a42=function(_0x3bde7b){while(--_0x3bde7b){_0x44a5b2['push'](_0x44a5b2['shift']());}};_0x220a42(++_0x2b13e0);}(_0x2b13,0x184));const _0x220a=function(_0x44a5b2,_0x2b13e0){_0x44a5b2=_0x44a5b2-0x0;let _0x220a42=_0x2b13[_0x44a5b2];return _0x220a42;};import{View as _0x1390bb,ViewCollection as _0x3479a6,FocusCycler as _0x44531d,ButtonView as _0x1b9f7c}from'ckeditor5/src/ui';import{FocusTracker as _0x3cb5c5,KeystrokeHandler as _0x1ec1d9}from'ckeditor5/src/utils';import _0x137df9 from'../commenteditor/commenteditor';import{getTranslation as _0x4c407a}from'../../../utils/common-translations';export default class Xt extends _0x1390bb{constructor(_0x175899,_0x35ec90={}){super(_0x175899),this['editor']=null,this['_editorConfig']=_0x35ec90,this[_0x220a('0x2f')]=new _0x1ec1d9(),this[_0x220a('0x0')]=new _0x3cb5c5(),this[_0x220a('0x13')](_0x220a('0x39'),_0x35ec90[_0x220a('0x35')]||''),this[_0x220a('0x13')](_0x220a('0x1a'),!0x1),this['set']('showButtons',!0x0),this[_0x220a('0x13')](_0x220a('0x29'),_0x4c407a(_0x175899,_0x220a('0x3'))),this['set'](_0x220a('0x15'),_0x4c407a(_0x175899,_0x220a('0x22'))),this[_0x220a('0x11')]=this[_0x220a('0x1')](),this[_0x220a('0x1b')]=this['_createCancelButton'](),this[_0x220a('0x31')]({'tag':_0x220a('0xe'),'attributes':{'class':[_0x220a('0x38')]},'children':[{'tag':_0x220a('0xe'),'attributes':{'class':[_0x220a('0x2'),this[_0x220a('0x12')]['if'](_0x220a('0xc'),'ck-comment__input-actions--active')]},'children':[this[_0x220a('0x11')],this[_0x220a('0x1b')]]}]}),this['keystrokes'][_0x220a('0x13')]('Esc',(_0x27424d,_0x25a1be)=>{this['cancelButtonView'][_0x220a('0x26')](_0x220a('0x14')),_0x25a1be();}),this['on'](_0x220a('0x18'),(_0x310003,_0x3d9488)=>{_0x3d9488[_0x220a('0xa')]>0xfde8?(alert(_0x4c407a(_0x175899,_0x220a('0x7'),[_0x3d9488[_0x220a('0xa')],0xfde8])),_0x310003[_0x220a('0x34')]()):this[_0x220a('0x30')][_0x220a('0x25')]('');},{'priority':'high'});}['render'](){super['render'](),this[_0x220a('0x2f')]['listenTo'](this[_0x220a('0x28')]),this[_0x220a('0x0')][_0x220a('0x17')](this[_0x220a('0x28')]);}[_0x220a('0xb')](){return this['editor']||(this[_0x220a('0x30')]=new _0x137df9(this[_0x220a('0x6')]),this['_editorCreationPromise']=this[_0x220a('0x30')][_0x220a('0x20')]()['then'](()=>{if(this[_0x220a('0x1e')])return;const _0xd6bd50=this[_0x220a('0x30')];this[_0x220a('0x28')][_0x220a('0x2e')](_0xd6bd50['ui']['element'],this[_0x220a('0x28')][_0x220a('0x37')]),_0xd6bd50[_0x220a('0x10')]['document']['on'](_0x220a('0x1c'),()=>this[_0x220a('0x39')]=_0xd6bd50[_0x220a('0x19')]()),_0xd6bd50['bind']('placeholder')['to'](this),this[_0x220a('0x5')](this['editor']),this[_0x220a('0x26')]('editorReady',this[_0x220a('0x30')]);})),this['_editorCreationPromise'];}[_0x220a('0xf')](){this[_0x220a('0x30')]&&this[_0x220a('0x30')][_0x220a('0xf')]();}async['destroy'](){this['_isDestroyed']||(this[_0x220a('0x1e')]=!0x0,this['editor']&&(await this[_0x220a('0x2d')],await this[_0x220a('0x30')]['destroy'](),this['fire'](_0x220a('0x1d'),this[_0x220a('0x30')])),await super[_0x220a('0x23')]());}[_0x220a('0x1')](){const {locale:_0x361ebc}=this,_0x104763=new _0x1b9f7c(_0x361ebc);return _0x104763[_0x220a('0x2b')]({'attributes':{'class':[_0x220a('0xd')]}}),_0x104763[_0x220a('0x8')]=!0x0,_0x104763[_0x220a('0x36')]('label')['to'](this,_0x220a('0x15')),_0x104763['on'](_0x220a('0x14'),()=>{this[_0x220a('0x26')](_0x220a('0x18'),this['value']);}),_0x104763[_0x220a('0x36')]('isEnabled')['to'](this,_0x220a('0x39'),this,_0x220a('0x1a'),(_0x731515,_0x2add3b)=>!_0x2add3b&&!!_0x731515['trim']()),_0x104763;}[_0x220a('0x33')](){const {locale:_0x3f83dd}=this,_0x29aede=new _0x1b9f7c(_0x3f83dd);return _0x29aede[_0x220a('0x2b')]({'attributes':{'class':[_0x220a('0x24')]}}),_0x29aede[_0x220a('0x2c')]=_0x4c407a(_0x3f83dd,_0x220a('0x27')),_0x29aede[_0x220a('0x8')]=!0x0,_0x29aede['on'](_0x220a('0x14'),()=>{this['editor']['setData'](''),this[_0x220a('0x26')](_0x220a('0x3a'));}),_0x29aede;}[_0x220a('0x5')](_0x54ac50){const _0x36aa41=this['focusTracker'],_0x2e11fd=new _0x3479a6();[_0x54ac50['ui'][_0x220a('0x4')],this[_0x220a('0x11')],this[_0x220a('0x1b')]][_0x220a('0x16')](_0x2ea6ca=>{_0x2e11fd[_0x220a('0x17')](_0x2ea6ca),_0x36aa41[_0x220a('0x17')](_0x2ea6ca['element']);});const _0x193daa=new _0x44531d({'focusables':_0x2e11fd,'focusTracker':_0x36aa41});this[_0x220a('0x2f')][_0x220a('0x13')](_0x220a('0x9'),(_0x36f8e0,_0x1fe1a2)=>{_0x193daa[_0x220a('0x2a')](),_0x1fe1a2();},{'priority':_0x220a('0x32')}),this['keystrokes'][_0x220a('0x13')](_0x220a('0x1f'),(_0x3df78d,_0x272bf5)=>{_0x193daa[_0x220a('0x21')](),_0x272bf5();},{'priority':_0x220a('0x32')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28aa=['stopPropagation','element','arrowright','ck-comments-archive__header\x20','set','EMPTY_COMMENTS_ARCHIVE','ck-hidden','ck-comments-archive__info','render','_focusables','div','focus','length','_focusTracker','tab','_focusCycler','listenTo','ck-comments-archive__content','selectstart','arrowleft','_keystrokes','ck-comments-archive','bindTemplate','destroy','isEmpty','arrowdown','high','arrowup','remove','COMMENTS_ARCHIVE'];(function(_0x2b3468,_0x28aa7f){const _0x2e1d74=function(_0x15b644){while(--_0x15b644){_0x2b3468['push'](_0x2b3468['shift']());}};_0x2e1d74(++_0x28aa7f);}(_0x28aa,0x119));const _0x2e1d=function(_0x2b3468,_0x28aa7f){_0x2b3468=_0x2b3468-0x0;let _0x2e1d74=_0x28aa[_0x2b3468];return _0x2e1d74;};import{View as _0x577c7a,FocusCycler as _0x576eaa}from'ckeditor5/src/ui';import{FocusTracker as _0x4ced03,KeystrokeHandler as _0x1fd72e}from'ckeditor5/src/utils';import{getTranslation as _0x5e6ffa}from'../../../utils/common-translations';export default class K extends _0x577c7a{constructor(_0x215f5a,_0x2b828c){super(_0x215f5a),this[_0x2e1d('0x17')](_0x2e1d('0xd'),!_0x2b828c[_0x2e1d('0x1')]),this[_0x2e1d('0x2')]=new _0x4ced03(),this['_keystrokes']=new _0x1fd72e(),this[_0x2e1d('0x1c')]=_0x2b828c,this[_0x2e1d('0x4')]=new _0x576eaa({'focusables':this['_focusables'],'focusTracker':this['_focusTracker'],'keystrokeHandler':this[_0x2e1d('0x9')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x2e1d('0x3')}}),this['listenTo'](_0x2b828c,'add',()=>{this[_0x2e1d('0xd')]=!0x1;}),this[_0x2e1d('0x5')](_0x2b828c,_0x2e1d('0x11'),(_0x515967,_0x333032)=>{_0x333032['isActive']&&this[_0x2e1d('0x0')](),_0x2b828c[_0x2e1d('0x1')]||(this[_0x2e1d('0xd')]=!0x0);});const _0x5839aa=this[_0x2e1d('0xb')];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck',_0x2e1d('0xa')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x2e1d('0x16')]},'children':[{'text':_0x5e6ffa(_0x215f5a,_0x2e1d('0x12'))}]},{'tag':'div','attributes':{'class':[_0x2e1d('0x6')]},'children':[{'tag':_0x2e1d('0x1d'),'children':_0x2b828c},{'tag':'p','attributes':{'class':[_0x2e1d('0x1a'),_0x5839aa['if']('isEmpty',_0x2e1d('0x19'),_0x2f7ac1=>!_0x2f7ac1)]},'children':[{'text':_0x5e6ffa(_0x215f5a,_0x2e1d('0x18'))}]}]}]});}['render'](){super[_0x2e1d('0x1b')](),this[_0x2e1d('0x9')]['listenTo'](this['element']);const _0x357c94=_0x1c1175=>_0x1c1175[_0x2e1d('0x13')]();this[_0x2e1d('0x9')][_0x2e1d('0x17')](_0x2e1d('0x15'),_0x357c94),this[_0x2e1d('0x9')]['set'](_0x2e1d('0x8'),_0x357c94),this[_0x2e1d('0x9')]['set'](_0x2e1d('0x10'),_0x357c94),this[_0x2e1d('0x9')]['set'](_0x2e1d('0xe'),_0x357c94),this[_0x2e1d('0x5')](this[_0x2e1d('0x14')],_0x2e1d('0x7'),(_0x18b7ae,_0x270bd4)=>{_0x270bd4['stopPropagation']();},{'priority':_0x2e1d('0xf')});}['destroy'](){super[_0x2e1d('0xc')](),this['_focusTracker'][_0x2e1d('0xc')](),this[_0x2e1d('0x9')]['destroy']();}[_0x2e1d('0x0')](){this[_0x2e1d('0x14')][_0x2e1d('0x0')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfa38=['set','setTemplate','expand','bind','comments','visibleViews','resolvedBy','_config','_model','resolveCommentThread','_calculatePosition','remove','from','delegate','formatDateTime','_collapsedCommentsView','isActive','delete','_findOptimalIndex','resolvedAt','CommentView','element','equal','length','locale','some','_shouldCollapse','change:isEditMode','stopListening','removeComment','ck-thread__comments','_updateHasDirtyComment','add','change:hasDirtyComment','change:isResolved','resolvedCommentView','isEditMode','hasDirtyComment','refreshVisibleViews','createCollection','maxCommentsWhenCollapsed','listenTo','_handleNewCommentModel','weight','_rearrangeExpand','change:isActive','commentViews','_handleInfoComment','_handleRemoveCommentModel','resolved','focus','destroy','commentUpdated','_rearrangeCollapse','editorConfig','viewUid'];(function(_0xb8aa53,_0xfa38b1){const _0x55327b=function(_0x157b52){while(--_0x157b52){_0xb8aa53['push'](_0xb8aa53['shift']());}};_0x55327b(++_0xfa38b1);}(_0xfa38,0x94));const _0x5532=function(_0xb8aa53,_0xfa38b1){_0xb8aa53=_0xb8aa53-0x0;let _0x55327b=_0xfa38[_0xb8aa53];return _0x55327b;};import{View as _0x5d06be}from'ckeditor5/src/ui';import{diff as _0x459775,Collection as _0x5b7a41}from'ckeditor5/src/utils';import{getTranslation as _0x3f0075}from'../../../utils/common-translations';import _0x4202dd from'./collapsedcommentsview';export default class wt extends _0x5d06be{constructor(_0x1358b0,_0x31f6b1,_0x2bcfda){super(_0x1358b0),this[_0x5532('0x14')](_0x5532('0x1'),!0x1),this[_0x5532('0x14')](_0x5532('0x2b'),_0x31f6b1[_0x5532('0x18')][_0x5532('0x2b')]),this[_0x5532('0x14')](_0x5532('0x24'),!0x1),this['_model']=_0x31f6b1,this[_0x5532('0x1b')]=_0x2bcfda,this[_0x5532('0xa')]=this[_0x5532('0x3')](),this[_0x5532('0x19')]=this[_0x5532('0x3')](),this[_0x5532('0x37')]=null,this[_0x5532('0x23')]=new _0x4202dd(_0x1358b0),this[_0x5532('0x23')][_0x5532('0x17')]('count')['to'](this,_0x5532('0x2b'),_0x1da780=>_0x1da780-this['_config'][_0x5532('0x4')]);for(const _0xfc0a6c of _0x31f6b1[_0x5532('0x18')])this[_0x5532('0x6')](_0xfc0a6c);this['_handleInfoComment'](),this['listenTo'](_0x31f6b1['comments'],_0x5532('0x34'),(_0x2c78b9,_0x4648a8)=>{const _0x105eb9=this[_0x5532('0x1e')](_0x4648a8);this[_0x5532('0x2b')]++,this[_0x5532('0x6')](_0x4648a8,_0x105eb9),this[_0x5532('0x2')]();}),this[_0x5532('0x5')](_0x31f6b1[_0x5532('0x18')],_0x5532('0x1f'),(_0x408d4f,_0xd05fcf)=>{this[_0x5532('0x2b')]--,this[_0x5532('0xc')](_0xd05fcf),this['refreshVisibleViews']();}),this[_0x5532('0x5')](_0x31f6b1,_0x5532('0x10'),()=>this['refreshVisibleViews']()),this[_0x5532('0x5')](_0x31f6b1,_0x5532('0x36'),()=>this[_0x5532('0xb')]()),this['on'](_0x5532('0x9'),()=>this['refreshVisibleViews']()),this['on'](_0x5532('0x35'),()=>this['refreshVisibleViews']()),this[_0x5532('0x15')]({'tag':'ul','attributes':{'class':[_0x5532('0x32')]},'children':this[_0x5532('0x19')]});}get[_0x5532('0x2e')](){return this['_model'][_0x5532('0x7')]>this[_0x5532('0x1b')]['maxThreadTotalWeight']&&!this[_0x5532('0x24')]&&!this[_0x5532('0x1')];}['render'](){super['render'](),this[_0x5532('0x2')]();}[_0x5532('0xe')](){this[_0x5532('0x29')]['focus']();}[_0x5532('0xf')](){this[_0x5532('0x23')]['destroy']();for(const _0x2688ad of this[_0x5532('0xa')])_0x2688ad['destroy']();super[_0x5532('0xf')]();}[_0x5532('0x2')](){this[_0x5532('0x2e')]?this[_0x5532('0x11')]():this[_0x5532('0x8')]();}[_0x5532('0x6')](_0x413d5f,_0xce78a8){const _0x4ea888=new this[(_0x5532('0x1b'))][(_0x5532('0x28'))](this[_0x5532('0x2c')],_0x413d5f,{'maxCommentCharsWhenCollapsed':this[_0x5532('0x1b')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x5532('0x1b')][_0x5532('0x22')],'editorConfig':this['_config'][_0x5532('0x12')]});_0x4ea888[_0x5532('0x13')]=_0x413d5f['id'],_0x4ea888['delegate'](_0x5532('0x31'))['to'](this),_0x4ea888[_0x5532('0x21')]('updateComment')['to'](this),_0x4ea888[_0x5532('0x21')](_0x5532('0x1d'))['to'](this),_0x4ea888['delegate']('editorReady')['to'](this),_0x4ea888['delegate']('editorDestroyed')['to'](this),this[_0x5532('0x5')](_0x4ea888,_0x5532('0x2f'),()=>this[_0x5532('0x33')]()),this['commentViews']['add'](_0x4ea888,_0xce78a8);}['_calculatePosition'](_0x6c8386){const _0xe1ba82=this[_0x5532('0x1c')][_0x5532('0x26')](_0x6c8386);return this[_0x5532('0x37')]?this[_0x5532('0x37')]['authoredAt']>_0x6c8386['authoredAt']?_0xe1ba82-0x1:_0xe1ba82:_0xe1ba82-0x1;}[_0x5532('0xb')](){if(this[_0x5532('0x1c')][_0x5532('0x1a')]&&this[_0x5532('0x1c')][_0x5532('0x27')]){const _0x5a6e8f={'id':_0x5532('0xd'),'author':this[_0x5532('0x1c')][_0x5532('0x1a')],'authoredAt':this[_0x5532('0x1c')]['resolvedAt'],'content':_0x3f0075(this[_0x5532('0x2c')],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this[(_0x5532('0x1b'))]['CommentView'](this[_0x5532('0x2c')],_0x5a6e8f,{'maxCommentCharsWhenCollapsed':this[_0x5532('0x1b')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x5532('0x1b')][_0x5532('0x22')],'editorConfig':this[_0x5532('0x1b')]['editorConfig'],'isSystemComment':!0x0}),this[_0x5532('0xa')]['add'](this[_0x5532('0x37')],this['_model'][_0x5532('0x26')](_0x5a6e8f));}else this[_0x5532('0x37')]&&(this[_0x5532('0xa')][_0x5532('0x1f')](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this[_0x5532('0x2')]();}[_0x5532('0xc')](_0x13172b){const _0x55c721=this[_0x5532('0xa')]['remove'](_0x13172b['id']);this[_0x5532('0x30')](_0x55c721),_0x55c721[_0x5532('0x0')]&&this[_0x5532('0x33')](),_0x55c721[_0x5532('0xf')]();}[_0x5532('0x33')](){this['hasDirtyComment']=Array['from'](this['commentViews'])[_0x5532('0x2d')](_0x4c003e=>_0x4c003e[_0x5532('0x0')]);}[_0x5532('0x11')](){const _0x55b76c=function(_0x56505a){const _0x4b8b1e=new _0x5b7a41();for(const _0x3b3dc9 of _0x56505a)_0x4b8b1e[_0x5532('0x34')](_0x3b3dc9);return _0x4b8b1e;}(this[_0x5532('0xa')]),_0x49eb52=this['_collapsedCommentsView']['count'];for(let _0x22aa57=0x1;_0x22aa57<=_0x49eb52;_0x22aa57++)_0x55b76c[_0x5532('0x1f')](0x1);for(const _0x4ec7e0 of _0x55b76c)_0x4ec7e0['collapse']();_0x49eb52>0x0&&_0x55b76c[_0x5532('0x34')](this['_collapsedCommentsView'],0x1),ss(_0x459775(Array[_0x5532('0x20')](this['visibleViews']),Array[_0x5532('0x20')](_0x55b76c)),this[_0x5532('0x19')],_0x55b76c);}['_rearrangeExpand'](){ss(_0x459775(Array[_0x5532('0x20')](this[_0x5532('0x19')]),Array['from'](this[_0x5532('0xa')])),this[_0x5532('0x19')],this[_0x5532('0xa')]);for(const _0x26030d of this[_0x5532('0x19')])_0x26030d[_0x5532('0x16')]();}}function ss(_0x529332,_0x58caf3,_0x130eca){let _0x3ca951=0x0;for(const _0xcc02e6 of _0x529332)switch(_0xcc02e6){case'insert':_0x58caf3[_0x5532('0x34')](_0x130eca['get'](_0x3ca951),_0x3ca951),_0x3ca951++;break;case _0x5532('0x25'):_0x58caf3['remove'](_0x3ca951);break;case _0x5532('0x2a'):_0x3ca951++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2144=['offsetWidth','fire','_model','listenTo','hasContext','mouseenter','querySelector','div','tooltip','_trimContextValue','mouseleave','add','...','scrollWidth','setTemplate','ck-context--quotes','_createReopenButton','_attachContextActions','.ck-context','ck-context','element','value','ck-context-wrapper','isVisible','icon','lastIndexOf','bind','Comment\x20was\x20made\x20on\x20an\x20element','Reopen','length','render','classList','contextValue','isResolvable','locale','reopenButtonView','span','execute','remove'];(function(_0x14fd42,_0x21448b){const _0x181b6d=function(_0x1f1e92){while(--_0x1f1e92){_0x14fd42['push'](_0x14fd42['shift']());}};_0x181b6d(++_0x21448b);}(_0x2144,0xbc));const _0x181b=function(_0x14fd42,_0x21448b){_0x14fd42=_0x14fd42-0x0;let _0x181b6d=_0x2144[_0x14fd42];return _0x181b6d;};import{View as _0x4ea75b,ButtonView as _0x77beba}from'ckeditor5/src/ui';import{getTranslation as _0x2fa292}from'../../../utils/common-translations';import _0x5ce984 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x4ea75b{constructor(_0x4bea31,_0xd16492){super(_0x4bea31);const _0x5d8747=this['bindTemplate'];this['_model']=_0xd16492,this[_0x181b('0x3')]=this['_createReopenButton'](),this[_0x181b('0x21')](_0x181b('0xb'))['to'](this[_0x181b('0x9')],'context',_0x320c77=>!!_0x320c77),this[_0x181b('0x21')](_0x181b('0x0'))['to'](this[_0x181b('0x9')],'context',_0x11f2f5=>_0x11f2f5&&_0x11f2f5[_0x181b('0x1c')]?this[_0x181b('0x10')](_0x11f2f5['value']):_0x2fa292(this[_0x181b('0x2')],_0x181b('0x22'))),this[_0x181b('0x15')]({'tag':_0x181b('0xe'),'attributes':{'class':['ck-thread__header']},'children':[{'tag':_0x181b('0xe'),'attributes':{'class':[_0x181b('0x1d')]},'children':[{'tag':'div','attributes':{'class':[_0x181b('0x1a'),_0x5d8747['if']('hasContext',_0x181b('0x16'))]},'children':[{'tag':_0x181b('0x4'),'attributes':{'class':['ck-context__value']},'children':[{'text':_0x5d8747['to'](_0x181b('0x0'))}]}]}]},{'tag':_0x181b('0xe'),'attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}[_0x181b('0x25')](){super[_0x181b('0x25')](),this[_0x181b('0x18')]();}[_0x181b('0x17')](){const _0x459af0=new _0x77beba(this[_0x181b('0x2')]);return _0x459af0['label']=_0x2fa292(this['locale'],_0x181b('0x23')),_0x459af0[_0x181b('0xf')]=_0x2fa292(this['locale'],'Reopen'),_0x459af0[_0x181b('0x1f')]=_0x5ce984,_0x459af0[_0x181b('0x21')]('isEnabled')['to'](this['_model'],'isReadOnly',_0x4bfe20=>!_0x4bfe20),_0x459af0[_0x181b('0x21')](_0x181b('0x1e'))['to'](this['_model'],_0x181b('0x1')),_0x459af0['on'](_0x181b('0x5'),()=>{this[_0x181b('0x8')]('reopenCommentThread',this[_0x181b('0x9')]['id']);}),_0x459af0;}['_trimContextValue'](_0x414c38){if(_0x414c38[_0x181b('0x24')]<0x96)return _0x414c38;const _0x18a9e8=_0x414c38[_0x181b('0x20')]('\x20',0x93);return _0x414c38['substring'](0x0,_0x18a9e8>-0x1?_0x18a9e8:0x93)+_0x181b('0x13');}[_0x181b('0x18')](){const _0x2bcb81=this[_0x181b('0x1b')][_0x181b('0xd')](_0x181b('0x19')),_0x5ae90a=_0x2bcb81[_0x181b('0xd')]('.ck-context__value');this[_0x181b('0xa')](_0x2bcb81,_0x181b('0xc'),()=>{_0x5ae90a[_0x181b('0x7')]<_0x5ae90a[_0x181b('0x14')]&&_0x2bcb81[_0x181b('0x26')][_0x181b('0x12')]('overlay');}),this['listenTo'](_0x2bcb81,_0x181b('0x11'),()=>{_0x2bcb81[_0x181b('0x26')][_0x181b('0x6')]('overlay');});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x410d=['userView','editor','bindTemplate','then','showButtons','ck-comment__input-container','destroy','change:showInput','editorDestroyed','ck-thread__user','commentInputView','extendTemplate','value','bind','isFocused','showInput','div','ck-thread__input','delegate'];(function(_0x4f5308,_0x410d01){var _0x3d4bff=function(_0x39eb5d){while(--_0x39eb5d){_0x4f5308['push'](_0x4f5308['shift']());}};_0x3d4bff(++_0x410d01);}(_0x410d,0x1b1));var _0x3d4b=function(_0x4f5308,_0x410d01){_0x4f5308=_0x4f5308-0x0;var _0x3d4bff=_0x410d[_0x4f5308];return _0x3d4bff;};import{View as _0xa8f967}from'ckeditor5/src/ui';import _0x35d8ac from'./commentinputview';import{UserView as _0x485c0b}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0xa8f967{constructor(_0x4acc9d,_0x41d14d,_0x5aeafb){super(_0x4acc9d),this['commentInputView']=new _0x35d8ac(_0x4acc9d,_0x5aeafb),this[_0x3d4b('0xe')][_0x3d4b('0x11')](_0x3d4b('0x8'))['to'](this[_0x3d4b('0xe')]['focusTracker'],_0x3d4b('0x12'),this['commentInputView'],_0x3d4b('0x10'),(_0x43477f,_0x1327ea)=>_0x43477f||!!_0x1327ea),this['set'](_0x3d4b('0x0'),!0x1),this['on'](_0x3d4b('0xb'),()=>{this['showInput']&&!this[_0x3d4b('0xe')][_0x3d4b('0x5')]&&this[_0x3d4b('0xe')]['createEditor']();}),this['commentInputView'][_0x3d4b('0x3')]('editorReady')['to'](this),this[_0x3d4b('0xe')]['delegate'](_0x3d4b('0xc'))['to'](this),this['userView']=new _0x485c0b(_0x4acc9d,_0x41d14d),this[_0x3d4b('0x4')]['extendTemplate']({'attributes':{'class':_0x3d4b('0xd')}}),this['commentInputView'][_0x3d4b('0xf')]({'attributes':{'class':_0x3d4b('0x2')}}),this['setTemplate']({'tag':_0x3d4b('0x1'),'attributes':{'class':[_0x3d4b('0x9'),this[_0x3d4b('0x6')]['if'](_0x3d4b('0x0'),'ck-comment__input-container--active')]},'children':[this[_0x3d4b('0x4')],this[_0x3d4b('0xe')]]});}['destroy'](){return this['commentInputView'][_0x3d4b('0xa')]()[_0x3d4b('0x7')](()=>super[_0x3d4b('0xa')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d54=['ck-thread--remove-confirmation','label','ck-thread','change:isActive','listenTo','add','commentThreadHeaderView','render','ck-thread__container','removeCommentThread','high','_model','ck-reset_all-excluded','commentThreadInputView','actionIndicator','element','setTemplate','Write\x20a\x20comment...','div','commentsListView','getTemplate','cancelConfirm','isResolvable','then','commentViews','bindTemplate','_bindFirstCommentView','stop','remove','locale','commentThreadChildren','isResolved','isEnabled','containerElement','_cancelAllConfirms','_createResolveButton','ck-thread--active','length','removeButton','resolveButton','createCollection','fire','check','isReadOnly','addMany','isConfirm','ck-thread--','bind','.ck-thread__container','change:isReadOnly','set','execute','placeholder','_boundFirstCommentView','tooltip','get','isSystemComment'];(function(_0x28533f,_0x3d540b){const _0x215f8d=function(_0x5242b8){while(--_0x5242b8){_0x28533f['push'](_0x28533f['shift']());}};_0x215f8d(++_0x3d540b);}(_0x3d54,0x10d));const _0x215f=function(_0x28533f,_0x3d540b){_0x28533f=_0x28533f-0x0;let _0x215f8d=_0x3d54[_0x28533f];return _0x215f8d;};import{ConfirmMixin as _0x5a5ff3}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x4455e2}from'ckeditor5/src/ui';import{icons as _0x4cd46c}from'ckeditor5/src/core';import _0x4c166c from'./basecommentthreadview';import{getTranslation as _0x6852d9}from'../../../utils/common-translations';export default class lt extends _0x5a5ff3(_0x4c166c){constructor(_0x198e3e,_0xb126ee,_0x59a262,_0x2ecd5f){super(_0x198e3e,_0xb126ee,_0x59a262,_0x2ecd5f),this[_0x215f('0x2e')]=this[_0x215f('0x38')](),this[_0x215f('0x2e')][_0x215f('0x3')]([this[_0x215f('0x23')],this[_0x215f('0x1d')]]),this[_0x215f('0x1b')]['isResolved']&&this['commentThreadChildren'][_0x215f('0x15')](this['commentThreadHeaderView'],0x0),this[_0x215f('0x1b')]['on']('change:isResolved',(_0x59179a,_0x27bc1d,_0x388b4a)=>{_0x388b4a?this[_0x215f('0x2e')]['add'](this[_0x215f('0x16')],0x0):this[_0x215f('0x2e')]['remove'](this['commentThreadHeaderView']);}),this[_0x215f('0x9')](_0x215f('0x1e'),null),this[_0x215f('0x31')]=null,this[_0x215f('0xc')]=null,this['locale']=_0x198e3e,this[_0x215f('0x37')]=this[_0x215f('0x33')](),this[_0x215f('0x20')](this['getTemplate']()),this['on'](_0x215f('0x13'),(_0x55ef20,_0x296f60,_0x39b34d)=>{_0x39b34d||this[_0x215f('0x32')]();}),this[_0x215f('0x14')](this['_model'],_0x215f('0x8'),(_0x360a71,_0x31649c,_0x336dc1)=>{_0x336dc1&&this[_0x215f('0x32')]();}),this[_0x215f('0x35')]>0x0&&this['_bindFirstCommentView'](),this[_0x215f('0x14')](this['commentsListView'][_0x215f('0x28')],_0x215f('0x15'),()=>{this[_0x215f('0x2a')]();});}[_0x215f('0x24')](){const _0xc99454=this[_0x215f('0x29')];return{'tag':_0x215f('0x22'),'attributes':{'class':[_0x215f('0x12'),_0x215f('0x1c'),_0xc99454['if']('isActive',_0x215f('0x34')),_0xc99454['if'](_0x215f('0x4'),_0x215f('0x10')),_0xc99454['to'](_0x215f('0x1e'),_0x58dcb3=>_0x58dcb3?_0x215f('0x5')+_0x58dcb3:'')],'data-thread-id':this[_0x215f('0x1b')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':_0x215f('0x18')},'children':this['commentThreadChildren']}]};}[_0x215f('0x17')](){super[_0x215f('0x17')](),this['containerElement']=this[_0x215f('0x1f')]['querySelector'](_0x215f('0x7'));}[_0x215f('0x32')](){this[_0x215f('0x25')]();for(const _0x4c1d64 of this[_0x215f('0x23')]['commentViews'])_0x4c1d64[_0x215f('0x25')]();}[_0x215f('0x2a')](){const {locale:_0x5e7e2c}=this,_0x4539f1=this[_0x215f('0x23')][_0x215f('0x28')][_0x215f('0xe')](0x0);_0x4539f1===this[_0x215f('0xc')]||_0x4539f1[_0x215f('0xf')]||(this[_0x215f('0xc')]=_0x4539f1,this['unbind'](_0x215f('0x1e')),this[_0x215f('0x6')](_0x215f('0x1e'))['to'](_0x4539f1,_0x215f('0x1e'),_0x20e7f4=>_0x215f('0x2c')===_0x20e7f4?_0x215f('0x2c'):null),_0x4539f1[_0x215f('0xb')]=_0x6852d9(_0x5e7e2c,_0x215f('0x21')),_0x4539f1[_0x215f('0x36')]['on'](_0x215f('0xa'),_0x3a3848=>{_0x3a3848[_0x215f('0x2b')](),this['showConfirm'](_0x6852d9(_0x5e7e2c,'Delete\x20comment\x20thread?'),this[_0x215f('0x31')])[_0x215f('0x27')](()=>{this[_0x215f('0x0')](_0x215f('0x19'));});},{'priority':_0x215f('0x1a')}),_0x4539f1['actionBar']['add'](this[_0x215f('0x37')],0x0));}[_0x215f('0x33')](){const _0x49d0b0=new _0x4455e2(this[_0x215f('0x2d')]);return _0x49d0b0[_0x215f('0x11')]=_0x6852d9(this[_0x215f('0x2d')],'Resolve'),_0x49d0b0[_0x215f('0xd')]=_0x6852d9(this['locale'],'Resolve'),_0x49d0b0['icon']=_0x4cd46c[_0x215f('0x1')],_0x49d0b0['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x49d0b0[_0x215f('0x6')](_0x215f('0x30'))['to'](this['_model'],_0x215f('0x2'),_0x3ea6bd=>!_0x3ea6bd),_0x49d0b0[_0x215f('0x6')]('isVisible')['to'](this[_0x215f('0x1b')],_0x215f('0x26'),this[_0x215f('0x1b')],_0x215f('0x2f'),(_0x310071,_0x42c3dd)=>_0x310071&&!_0x42c3dd),_0x49d0b0['on'](_0x215f('0xa'),()=>{this[_0x215f('0x0')]('resolveCommentThread',this[_0x215f('0x1b')]['id']);}),_0x49d0b0;}}
|