@ckeditor/ckeditor5-comments 39.0.0 → 39.0.2
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/CHANGELOG.md +2 -2
- package/LICENSE.md +5 -5
- package/README.md +13 -13
- package/build/comments.js +1 -1
- package/build/translations/fa.js +1 -1
- package/lang/translations/af.po +1 -0
- package/lang/translations/ar.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/bs.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de-ch.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es-co.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fa.po +10 -9
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/jv.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/ug.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -7
- 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.d.ts +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
- package/theme/annotation.css +0 -2
- package/theme/comment.css +37 -37
- package/theme/commentmarker.css +5 -5
- package/theme/commentthread.css +56 -56
- package/theme/sidebar-narrow.css +2 -2
- package/theme/sidebar.css +11 -11
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4df4=['length','detach','destroy','keystrokes','set','clientHeight','focus','Esc','createCollection','render','setTemplate','listenTo','_updateHeight','element','attach','div','ck-rounded-corners','isActive','height','bindTemplate','clear','add','fire','mainView','type','content','_mutationObserver','isDirty','focusTracker','ck-annotation-wrapper'];(function(_0x41a204,_0x4df434){const _0x123c09=function(_0x2abdc7){while(--_0x2abdc7){_0x41a204['push'](_0x41a204['shift']());}};_0x123c09(++_0x4df434);}(_0x4df4,0x177));const _0x123c=function(_0x41a204,_0x4df434){_0x41a204=_0x41a204-0x0;let _0x123c09=_0x4df4[_0x41a204];return _0x123c09;};import{View as _0x5e45d2}from'ckeditor5/src/ui';import{FocusTracker as _0x1ab8c0,KeystrokeHandler as _0x4e980c,uid as _0x163ed4}from'ckeditor5/src/utils';import _0x440ae5 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x5e45d2{constructor(_0x2ada83,_0x3d1046){super(_0x2ada83),this['id']=_0x163ed4(),this[_0x123c('0xd')]=new _0x1ab8c0(),this[_0x123c('0x12')]=new _0x4e980c(),this[_0x123c('0x12')]['set'](_0x123c('0x16'),(_0x20b205,_0x365f05)=>this[_0x123c('0x7')](_0x123c('0x16'),_0x365f05)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x123c('0x13')](_0x123c('0x3'),0x0),this['set'](_0x123c('0x2'),!0x1),this['set'](_0x123c('0xc'),!0x1),this[_0x123c('0x13')](_0x123c('0xf'),0x0),this[_0x123c('0x13')](_0x123c('0x9'),''),this[_0x123c('0xb')]=_0x440ae5(()=>this[_0x123c('0x1b')]()),this[_0x123c('0xa')]=this[_0x123c('0x17')](),this[_0x123c('0xa')][_0x123c('0x6')](_0x3d1046),this[_0x123c('0x8')]=_0x3d1046;const _0x323394=this[_0x123c('0x4')];this[_0x123c('0x19')]({'tag':_0x123c('0x0'),'attributes':{'class':['ck',_0x123c('0xe'),_0x123c('0x1'),_0x323394['if']('isActive','ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x123c('0xa')]});}[_0x123c('0x18')](){super[_0x123c('0x18')](),this[_0x123c('0xd')][_0x123c('0x6')](this[_0x123c('0x1c')]),this[_0x123c('0x12')][_0x123c('0x1a')](this[_0x123c('0x1c')]),this['_mutationObserver'][_0x123c('0x1d')](this[_0x123c('0x1c')]);}[_0x123c('0x11')](){this[_0x123c('0xa')][_0x123c('0x5')](),this[_0x123c('0x12')][_0x123c('0x11')](),this[_0x123c('0xd')]['destroy'](),this[_0x123c('0xb')][_0x123c('0x10')](),super[_0x123c('0x11')]();}[_0x123c('0x15')](){this[_0x123c('0x1c')][_0x123c('0x15')]();}[_0x123c('0x1b')](){const _0x3313c5=this[_0x123c('0x1c')][_0x123c('0x14')];_0x3313c5&&(this[_0x123c('0x3')]=_0x3313c5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f6a=['attach','_mutationObserver','setTemplate','content','top','_targetTop','set','destroy','render','height','element','isAnimationDisabled','clear','bind','bottom','clientHeight','div','ck-sidebar-item--no-animation','updateHeight','bindTemplate'];(function(_0xab22e5,_0x4f6a78){const _0x1ebe20=function(_0x22c668){while(--_0x22c668){_0xab22e5['push'](_0xab22e5['shift']());}};_0x1ebe20(++_0x4f6a78);}(_0x4f6a,0x90));const _0x1ebe=function(_0xab22e5,_0x4f6a78){_0xab22e5=_0xab22e5-0x0;let _0x1ebe20=_0x4f6a[_0xab22e5];return _0x1ebe20;};import{View as _0x4c3061}from'ckeditor5/src/ui';import{toUnit as _0x321761}from'ckeditor5/src/utils';import _0x3b7a30 from'../../utils/createmutationobserver';const At=_0x321761('px');export default class C extends _0x4c3061{constructor(_0x140637){super(_0x140637),this['set'](_0x1ebe('0x0'),0x0),this['set']('height',0x0),this[_0x1ebe('0x9')](_0x1ebe('0xa'))['to'](this,_0x1ebe('0x0'),this,_0x1ebe('0x5'),(_0x1f8619,_0x3de866)=>_0x1f8619+_0x3de866),this[_0x1ebe('0x2')]('isAnimationDisabled',!0x1),this[_0x1ebe('0x11')]=_0x3b7a30(()=>this[_0x1ebe('0xe')]()),this[_0x1ebe('0x1')]=null,this[_0x1ebe('0x13')]=this['createCollection']();const _0x4d1c5b=this[_0x1ebe('0xf')];this[_0x1ebe('0x12')]({'tag':_0x1ebe('0xc'),'attributes':{'class':['ck-sidebar-item',_0x4d1c5b['to'](_0x1ebe('0x7'),_0xc3811=>_0xc3811?_0x1ebe('0xd'):'')],'style':{'top':_0x4d1c5b['to'](_0x1ebe('0x0'),_0x471441=>At(_0x471441))}},'children':this['content']});}[_0x1ebe('0x4')](){super['render'](),this[_0x1ebe('0x11')][_0x1ebe('0x10')](this['element']);}['updateHeight'](){const _0x402aff=this[_0x1ebe('0x6')][_0x1ebe('0xb')];_0x402aff&&(this[_0x1ebe('0x5')]=_0x402aff);}[_0x1ebe('0x3')](){this[_0x1ebe('0x13')][_0x1ebe('0x8')](),this[_0x1ebe('0x11')]['detach'](),super[_0x1ebe('0x3')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3638=['createCollection','set','minHeight','class','list','number','setTemplate'];(function(_0x37ee69,_0x363862){const _0x2aa459=function(_0x5ca4a3){while(--_0x5ca4a3){_0x37ee69['push'](_0x37ee69['shift']());}};_0x2aa459(++_0x363862);}(_0x3638,0x14f));const _0x2aa4=function(_0x37ee69,_0x363862){_0x37ee69=_0x37ee69-0x0;let _0x2aa459=_0x3638[_0x37ee69];return _0x2aa459;};import{View as _0x4db835}from'ckeditor5/src/ui';import{toUnit as _0xba471b}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0xba471b('px');export default class T extends _0x4db835{constructor(_0x3bd3b4){super(_0x3bd3b4);const _0x4cfe68=this['bindTemplate'];this[_0x2aa4('0x2')](_0x2aa4('0x3'),0x0),this[_0x2aa4('0x2')]('class',''),this[_0x2aa4('0x5')]=this[_0x2aa4('0x1')](),this[_0x2aa4('0x0')]({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x4cfe68['to'](_0x2aa4('0x4'))],'style':{'minHeight':_0x4cfe68['to']('minHeight',_0xbf5a7d=>_0x2aa4('0x6')==typeof _0xbf5a7d?At(_0xbf5a7d+0xa):null)}},'children':this[_0x2aa4('0x5')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f1e=['register','plugins','get','_detachFromContainer','WideSidebar','attach','_annotations','set','ck-sidebar--wide','activeAnnotation','rearrange','cancel','high','updateTargetRect','pluginName','wideSidebar','focus','context','editors','listenTo','widesidebar-attach-already-attached','resize','widesidebar-detach-not-attached','add','_editorAnnotations','_destroyEditorAnnotationsIntegration','getOrderedSelectedAnnotations','off','_attachToContainer','ready','isAttached','has','destroy','annotations','_activeAnnotation','hasDomSelection','removeEventListener','stop','setActiveAnnotation','_refreshPositioningDebounced','requires','switchTo','refreshPositioning','container','detach','refresh','_integrateWithEditorAnnotations','remove'];(function(_0x207311,_0x1f1e3b){const _0x51552c=function(_0x1e5df5){while(--_0x1e5df5){_0x207311['push'](_0x207311['shift']());}};_0x51552c(++_0x1f1e3b);}(_0x1f1e,0x6c));const _0x5155=function(_0x207311,_0x1f1e3b){_0x207311=_0x207311-0x0;let _0x51552c=_0x1f1e[_0x207311];return _0x51552c;};import{ContextPlugin as _0x485d69,Context as _0x506c78}from'ckeditor5/src/core';import _0x28a5d8 from'./annotationsuis';import _0xfe5a3a from'./sidebar';import{CKEditorError as _0x1ca927,Collection as _0x3bf0a0}from'ckeditor5/src/utils';import{debounce as _0x232453}from'lodash-es';import _0x493f23 from'./editorannotations';export default class i extends _0x485d69{static get[_0x5155('0x1c')](){return[_0xfe5a3a,_0x28a5d8];}static get[_0x5155('0x2')](){return _0x5155('0x28');}constructor(_0x341b03){super(_0x341b03),this[_0x5155('0x12')]=!0x1,this[_0x5155('0x2b')](_0x5155('0x2d'),null),this[_0x5155('0x15')]=null,this[_0x5155('0xc')]=new _0x3bf0a0(),this[_0x5155('0x1b')]=_0x232453(()=>{this[_0x5155('0x15')][_0x5155('0x1e')]();},0xfa,{'leading':!0x1});}['init'](){const _0x3e9f97=this['context'][_0x5155('0x25')][_0x5155('0x26')](_0x28a5d8),_0x2e4b2c=this[_0x5155('0x5')][_0x5155('0x25')]['get'](_0xfe5a3a);_0x3e9f97[_0x5155('0x24')](_0x5155('0x3'),this),_0x2e4b2c[_0x5155('0x1f')]&&_0x3e9f97[_0x5155('0x1d')](_0x5155('0x3'));}['setActiveAnnotation'](_0x4c1554){if(_0x4c1554===this[_0x5155('0x2d')])return;const _0x26f92e=this[_0x5155('0x5')]['plugins'][_0x5155('0x26')](_0xfe5a3a);_0x26f92e[_0x5155('0x16')]=_0x4c1554;const _0x3b9a6f=this[_0x5155('0x2d')];this['activeAnnotation']=_0x4c1554,_0x26f92e[_0x5155('0x21')]({'blurredAnnotation':_0x3b9a6f,'activatedAnnotation':this[_0x5155('0x2d')]});}[_0x5155('0x29')](_0x4ba3b7){this[_0x5155('0x15')]=_0x4ba3b7;const _0xe9e16d=this[_0x5155('0x5')][_0x5155('0x25')][_0x5155('0x26')](_0xfe5a3a);if(_0xe9e16d[_0x5155('0x2a')]=_0x4ba3b7,this[_0x5155('0x12')])throw new _0x1ca927(_0x5155('0x8'),this);this[_0x5155('0x12')]=!0x0,this[_0x5155('0x7')](_0xe9e16d,'set:container',()=>{this[_0x5155('0x20')](),this[_0x5155('0x7')](_0xe9e16d,'change:container',_0xdec349=>{_0xdec349[_0x5155('0xf')](),this[_0x5155('0x29')](_0x4ba3b7);});}),_0xe9e16d[_0x5155('0x10')]({'viewClass':_0x5155('0x2c')});const _0xdc1278=_0x38b34d=>{_0x38b34d[_0x5155('0x1')](),_0xe9e16d['addAnnotation'](_0x38b34d);};for(const _0x4838ca of _0x4ba3b7)_0xdc1278(_0x4838ca);this[_0x5155('0x7')](_0x4ba3b7,_0x5155('0xb'),(_0x3ae847,_0x259982)=>{_0xdc1278(_0x259982);}),this[_0x5155('0x7')](_0x4ba3b7,_0x5155('0x23'),(_0x510dfa,_0x582cd1,_0x22d930)=>{_0xe9e16d[_0x5155('0x2e')]({'removedAnnotation':_0x582cd1,'previousAnnotation':_0x4ba3b7['get'](_0x22d930-0x1),'nextAnnotation':_0x4ba3b7[_0x5155('0x26')](_0x22d930+0x1)}),_0x582cd1===this[_0x5155('0x2d')]&&this[_0x5155('0x1a')](null);},{'priority':_0x5155('0x0')}),this[_0x5155('0x7')](_0x4ba3b7,_0x5155('0x4'),(_0x3a097a,_0x3b8de0)=>{this[_0x5155('0x1a')](_0x3b8de0);}),this[_0x5155('0x7')](_0x4ba3b7,'blur',()=>{this[_0x5155('0x1a')](null);});const _0x3aea6c=this[_0x5155('0x5')]instanceof _0x506c78?this[_0x5155('0x5')][_0x5155('0x6')]:new _0x3bf0a0([this[_0x5155('0x5')]]);for(const _0x59f56d of _0x3aea6c)this['_integrateWithEditorAnnotations'](_0x59f56d);this['listenTo'](_0x3aea6c,'add',(_0x1dacb0,_0x16417b)=>{this[_0x5155('0x7')](_0x16417b,_0x5155('0x11'),()=>{this[_0x5155('0x22')](_0x16417b);});}),this[_0x5155('0x7')](_0x3aea6c,_0x5155('0x23'),(_0xb33b26,_0x22e1a2)=>{_0x22e1a2[_0x5155('0x25')][_0x5155('0x13')]('EditorAnnotations')&&this[_0x5155('0xd')](_0x22e1a2['plugins'][_0x5155('0x26')]('EditorAnnotations'));}),window['addEventListener'](_0x5155('0x9'),this[_0x5155('0x1b')]),this[_0x5155('0x15')]['refreshPositioning']();}[_0x5155('0x20')](){if(!this['isAttached'])throw new _0x1ca927(_0x5155('0xa'),this);this['setActiveAnnotation'](null);const _0x3ad311=this[_0x5155('0x5')]['plugins'][_0x5155('0x26')](_0xfe5a3a);_0x3ad311[_0x5155('0x27')](this[_0x5155('0x15')]),this['stopListening'](_0x3ad311),this['stopListening'](this[_0x5155('0x15')]),this[_0x5155('0x5')]instanceof _0x506c78&&this['stopListening'](this[_0x5155('0x5')][_0x5155('0x6')]);for(const _0xd1c145 of Array['from'](this[_0x5155('0xc')]))this[_0x5155('0xd')](_0xd1c145);window[_0x5155('0x18')]('resize',this[_0x5155('0x1b')]),this[_0x5155('0x1b')][_0x5155('0x2f')](),this[_0x5155('0x2d')]=null,this['isAttached']=!0x1,this[_0x5155('0x15')]=null;}[_0x5155('0x14')](){this[_0x5155('0x12')]&&this['detach']();}[_0x5155('0x22')](_0x4e1676){const _0x5dc74c=_0x4e1676[_0x5155('0x25')][_0x5155('0x26')](_0x493f23);if(!_0x5dc74c)return;const _0x55a784=()=>{const _0x4061fa=_0x5dc74c[_0x5155('0xe')]({'annotations':this[_0x5155('0x15')],'activeAnnotation':this[_0x5155('0x2d')]});this[_0x5155('0x1a')](_0x4061fa[0x0]||null);};this[_0x5155('0x7')](_0x5dc74c,_0x5155('0x21'),_0x55a784),this[_0x5155('0x7')](_0x5dc74c,'blur',(_0x20f54a,{isAnnotationTracked:_0x531be6})=>{this[_0x5155('0x2d')]&&_0x531be6(this[_0x5155('0x2d')])&&this[_0x5155('0x1a')](null);}),this['listenTo'](_0x5dc74c,'uiUpdate',()=>{this[_0x5155('0x1b')]();}),this[_0x5155('0x7')](this[_0x5155('0x15')],'blur',_0x4bb6ed=>{_0x5dc74c[_0x5155('0x17')]()&&(_0x55a784(),_0x4bb6ed[_0x5155('0x19')]());},{'priority':_0x5155('0x0')}),this['_editorAnnotations'][_0x5155('0xb')](_0x5dc74c);}[_0x5155('0xd')](_0x286ea4){this['stopListening'](_0x286ea4),this[_0x5155('0xc')][_0x5155('0x23')](_0x286ea4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24be=['_hasContent','addMarker','tableCell','backward','schema','$textProxy','selection','getLastMatchingPosition','refresh','_itemIsContent','model','item','end','comment:','element','substr','editor','document','_trimToContent','isEnabled','getRanges','change'];(function(_0x53332f,_0x24be21){const _0x1f33ef=function(_0x58c2cf){while(--_0x58c2cf){_0x53332f['push'](_0x53332f['shift']());}};_0x1f33ef(++_0x24be21);}(_0x24be,0x1c1));const _0x1f33=function(_0x53332f,_0x24be21){_0x53332f=_0x53332f-0x0;let _0x1f33ef=_0x24be[_0x53332f];return _0x1f33ef;};import{Command as _0x290f9b}from'ckeditor5/src/core';import{uid as _0x3222c0}from'ckeditor5/src/utils';export default class q extends _0x290f9b{[_0x1f33('0x15')](){const _0x25beea=this[_0x1f33('0x7')][_0x1f33('0x1')][_0x1f33('0x8')][_0x1f33('0x13')];for(const _0x1fc0ce of _0x25beea['getRanges']())if(this[_0x1f33('0xd')](_0x1fc0ce))return void(this[_0x1f33('0xa')]=!0x0);this[_0x1f33('0xa')]=!0x1;}['execute']({threadId:_0x47f2de=_0x3222c0()}={}){const _0x38019d=this[_0x1f33('0x7')]['model'],_0x2987cf=[];for(const _0x495af2 of _0x38019d[_0x1f33('0x8')]['selection'][_0x1f33('0xb')]())this[_0x1f33('0xd')](_0x495af2)&&_0x2987cf['push'](this[_0x1f33('0x9')](_0x495af2));_0x38019d[_0x1f33('0xc')](_0x1bc485=>{for(const _0x35ae32 of _0x2987cf){const _0x49ccfe=_0x3222c0()[_0x1f33('0x6')](0x1,0x5),_0x1db688=_0x1f33('0x4')+_0x47f2de+':'+_0x49ccfe;_0x1bc485[_0x1f33('0xe')](_0x1db688,{'range':_0x35ae32,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x1f33('0xd')](_0x1eaac7){for(const _0x449e86 of _0x1eaac7['getItems']())if(this['_itemIsContent'](_0x449e86))return!0x0;return!0x1;}['_itemIsContent'](_0x46175b){return _0x46175b['is'](_0x1f33('0x12'))||this['editor']['model'][_0x1f33('0x11')]['isObject'](_0x46175b)&&!_0x46175b['is'](_0x1f33('0x5'),_0x1f33('0xf'));}['_trimToContent'](_0x67acda){const _0x538141=_0x1d0ce5=>!this[_0x1f33('0x0')](_0x1d0ce5[_0x1f33('0x2')]),_0x17e8c6=_0x67acda['start']['getLastMatchingPosition'](_0x538141),_0x20d037=_0x67acda[_0x1f33('0x3')][_0x1f33('0x14')](_0x538141,{'direction':_0x1f33('0x10')});return this[_0x1f33('0x7')][_0x1f33('0x1')]['createRange'](_0x17e8c6,_0x20d037);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ecd=['findIndex','CommentsArchive','requires','activate','focus','reopenCommentThread','resolvedThreads','plugins','_calculatePosition','getCommentThread','init','remove','length','highest','add','get','resolveCommentThread','has','collection','listenTo','resolvedAt','context','pluginName'];(function(_0x6e15c2,_0x2ecd61){const _0x2c4009=function(_0x20aece){while(--_0x20aece){_0x6e15c2['push'](_0x6e15c2['shift']());}};_0x2c4009(++_0x2ecd61);}(_0x2ecd,0x80));const _0x2c40=function(_0x6e15c2,_0x2ecd61){_0x6e15c2=_0x6e15c2-0x0;let _0x2c4009=_0x2ecd[_0x6e15c2];return _0x2c4009;};import{ContextPlugin as _0x250069}from'ckeditor5/src/core';import{Collection as _0x65f63c}from'ckeditor5/src/utils';import _0x43b3fd from'./commentsrepository';import _0x5a2941 from'../annotations/annotations';export default class p extends _0x250069{static get[_0x2c40('0x9')](){return _0x2c40('0xb');}static get[_0x2c40('0xc')](){return[_0x43b3fd,_0x5a2941];}constructor(_0x3552a5){super(_0x3552a5),this[_0x2c40('0x10')]=new _0x65f63c();}[_0x2c40('0x14')](){const _0x167898=this[_0x2c40('0x8')],_0x2a46ef=_0x167898['plugins'][_0x2c40('0x2')](_0x43b3fd),_0x2877de=_0x167898[_0x2c40('0x11')][_0x2c40('0x2')](_0x5a2941);this['listenTo'](_0x2a46ef,'addCommentThread',(_0x150e71,{threadId:_0x508c62,resolvedAt:_0x51b41a,deletedAt:_0x52ba3c})=>{if(_0x51b41a&&!_0x52ba3c){const _0x7d00e4=_0x2a46ef['getCommentThread'](_0x508c62);this['resolvedThreads'][_0x2c40('0x1')](_0x7d00e4,this[_0x2c40('0x12')](_0x51b41a));}}),this[_0x2c40('0x6')](_0x2a46ef,_0x2c40('0x3'),(_0x172ddd,{threadId:_0x212ec9,resolvedAt:_0x41d326})=>{const _0x17ba15=_0x2a46ef[_0x2c40('0x13')](_0x212ec9);this[_0x2c40('0x10')]['add'](_0x17ba15,this[_0x2c40('0x12')](_0x41d326));},{'priority':_0x2c40('0x0')}),this[_0x2c40('0x6')](_0x2a46ef,_0x2c40('0xf'),(_0x3918c9,{threadId:_0xf694dc})=>{const _0x5c5723=_0x2a46ef[_0x2c40('0x13')](_0xf694dc);this['resolvedThreads'][_0x2c40('0x4')](_0x5c5723)&&this[_0x2c40('0x10')][_0x2c40('0x15')](_0x5c5723);},{'priority':'highest'}),this['listenTo'](_0x2a46ef,'removeCommentThread',(_0x3490d4,{threadId:_0x53d5a8})=>{const _0x4ce058=_0x2a46ef[_0x2c40('0x13')](_0x53d5a8);this[_0x2c40('0x10')]['has'](_0x4ce058)&&this[_0x2c40('0x10')][_0x2c40('0x15')](_0x4ce058);},{'priority':_0x2c40('0x0')}),this['listenTo'](_0x2877de[_0x2c40('0x5')],_0x2c40('0xe'),(_0x500aad,_0xb2cecd)=>{_0xb2cecd['isActive']=!0x0,_0x2877de[_0x2c40('0xd')](_0xb2cecd);});}[_0x2c40('0x12')](_0x5f319d){const _0x344696=[...this[_0x2c40('0x10')]][_0x2c40('0xa')](_0x1b2e5a=>_0x1b2e5a[_0x2c40('0x7')]<_0x5f319d);return _0x344696>-0x1?_0x344696:this['resolvedThreads'][_0x2c40('0x16')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5760=['ck-comments-archive-dropdown','commentsArchiveView','change:isOpen','resolvedThreads','extendTemplate','CommentsRepository','_pendingThreads','listenTo','children','get','focusableElements','config','requires','focusTracker','resolvedAt','CommentsArchiveUI','set','indexOf','Annotations','remove','classList','plugins','init','_calculatePosition','contains','channelId','length','ck-body','COMMENTS_ARCHIVE','stopListening','locale','find','buttonView','mainView','editor','panelView','annotationViews','splice','collaboration.channelId','collection','_threadToController','_createArchiveUIDropdown','getByInnerView','position','view','commentsArchive','_handleAnnotationFocusableElements','add','innerView','componentFactory'];(function(_0x40c29b,_0x5760b7){const _0x2542c7=function(_0x1a5ec7){while(--_0x1a5ec7){_0x40c29b['push'](_0x40c29b['shift']());}};_0x2542c7(++_0x5760b7);}(_0x5760,0x174));const _0x2542=function(_0x40c29b,_0x5760b7){_0x40c29b=_0x40c29b-0x0;let _0x2542c7=_0x5760[_0x40c29b];return _0x2542c7;};import'../../theme/commentsarchive.css';import{Plugin as _0x17f238}from'ckeditor5/src/core';import{createDropdown as _0x1dc522,ViewCollection as _0x45d3d4}from'ckeditor5/src/ui';import _0x31d374 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x21f04c}from'../utils/common-translations';import _0x5983a3 from'./ui/view/commentsarchiveview';import _0x218eb from'./commentsarchive';export default class a extends _0x17f238{static get['pluginName'](){return _0x2542('0x2b');}static get[_0x2542('0x28')](){return[_0x218eb];}constructor(_0x3e85cf){super(_0x3e85cf),this[_0x2542('0xe')]=new _0x45d3d4(),this['_pendingThreads']=[];}[_0x2542('0x0')](){this[_0x2542('0xc')]['ui'][_0x2542('0x1b')][_0x2542('0x19')](_0x2542('0x17'),()=>this[_0x2542('0x13')]());const _0x108275=this[_0x2542('0xc')]['plugins'][_0x2542('0x25')](_0x218eb),_0x59a0f8=this[_0x2542('0xc')][_0x2542('0x31')][_0x2542('0x25')](_0x2542('0x2e')),_0x415e09=this[_0x2542('0xc')][_0x2542('0x31')][_0x2542('0x25')](_0x2542('0x21'));this['listenTo'](_0x108275[_0x2542('0x1f')],_0x2542('0x19'),(_0x2257f7,_0x19a4da)=>{const _0x419a80=this[_0x2542('0xc')][_0x2542('0x27')][_0x2542('0x25')](_0x2542('0x10'));if(!_0x419a80||_0x19a4da['channelId']===_0x419a80){const _0xe00f14=this['_calculatePosition'](_0x19a4da['resolvedAt']),_0x2a29a2=_0x415e09[_0x2542('0x12')][_0x2542('0x25')](_0x19a4da);if(!_0x2a29a2)return void this[_0x2542('0x22')]['push']({'thread':_0x19a4da,'position':_0xe00f14});const _0x161e7e=_0x59a0f8[_0x2542('0x14')](_0x2a29a2[_0x2542('0x16')]);_0x161e7e['isVisible']&&_0x59a0f8['_visibleAnnotations']['remove'](_0x161e7e),this['annotationViews']['add'](_0x161e7e[_0x2542('0x16')],_0xe00f14);}}),this[_0x2542('0x23')](_0x59a0f8[_0x2542('0x11')],'add',(_0x1944f8,_0x57b19b)=>{const _0xbc049d=this[_0x2542('0x22')][_0x2542('0x9')](({thread:_0x586d9c})=>{const _0x151f73=_0x415e09[_0x2542('0x12')][_0x2542('0x25')](_0x586d9c);return _0x151f73&&_0x57b19b[_0x2542('0x1a')]===_0x151f73['view'];});_0xbc049d&&(this['annotationViews'][_0x2542('0x19')](_0x57b19b[_0x2542('0x16')],_0xbc049d[_0x2542('0x15')]),this['_pendingThreads'][_0x2542('0xf')](this[_0x2542('0x22')][_0x2542('0x2d')](_0xbc049d),0x1));}),this['listenTo'](_0x108275['resolvedThreads'],_0x2542('0x2f'),(_0x2918c7,_0x20fe6b)=>{const _0x13b316=this[_0x2542('0xc')][_0x2542('0x27')]['get'](_0x2542('0x10'));if(!_0x13b316||_0x20fe6b['channelId']===_0x13b316){const _0x2fc5e2=_0x415e09[_0x2542('0x12')][_0x2542('0x25')](_0x20fe6b),_0x862ea8=_0x59a0f8[_0x2542('0x14')](_0x2fc5e2[_0x2542('0x16')]);this[_0x2542('0xe')][_0x2542('0x2f')](_0x862ea8[_0x2542('0x16')]),this[_0x2542('0x7')](_0x862ea8[_0x2542('0x26')]);}});}[_0x2542('0x18')](_0x1efbbd,_0x5fad55){for(const _0x35fa2d of _0x5fad55[_0x2542('0x26')])_0x35fa2d[_0x2542('0x30')][_0x2542('0x2')](_0x2542('0x5'))&&_0x1efbbd[_0x2542('0x29')][_0x2542('0x19')](_0x35fa2d);this[_0x2542('0x23')](_0x5fad55[_0x2542('0x26')],_0x2542('0x19'),(_0x5bd016,_0x1717a7)=>{_0x1717a7['classList'][_0x2542('0x2')](_0x2542('0x5'))&&_0x1efbbd['focusTracker'][_0x2542('0x19')](_0x1717a7);}),this[_0x2542('0x23')](_0x5fad55['focusableElements'],_0x2542('0x2f'),(_0x5dca97,_0x2601c8)=>{_0x2601c8[_0x2542('0x30')]['contains']('ck-body')&&_0x1efbbd[_0x2542('0x29')][_0x2542('0x2f')](_0x2601c8);});}[_0x2542('0x1')](_0x5abfe7){const _0xb3e0e0=this[_0x2542('0xc')][_0x2542('0x27')][_0x2542('0x25')](_0x2542('0x10')),_0x55eb02=[...this[_0x2542('0xc')][_0x2542('0x31')][_0x2542('0x25')](_0x218eb)[_0x2542('0x1f')]]['filter'](_0x1f1a3c=>_0x1f1a3c[_0x2542('0x3')]!==_0xb3e0e0)['findIndex'](_0x1baa31=>_0x1baa31[_0x2542('0x2a')]<_0x5abfe7);return _0x55eb02>-0x1?_0x55eb02:this['annotationViews'][_0x2542('0x4')];}[_0x2542('0x13')](){const _0xdbaa58=this[_0x2542('0xc')],_0xee6d8c=this[_0x2542('0xc')][_0x2542('0x31')][_0x2542('0x25')](_0x2542('0x2e')),_0x40e6e9=_0x1dc522(_0xdbaa58[_0x2542('0x8')]);_0x40e6e9[_0x2542('0xa')][_0x2542('0x2c')]({'icon':_0x31d374,'label':_0x21f04c(_0xdbaa58['locale'],_0x2542('0x6')),'tooltip':!0x0}),_0x40e6e9[_0x2542('0xd')][_0x2542('0x20')]({'attributes':{'class':_0x2542('0x1c')}}),_0x40e6e9['on'](_0x2542('0x1e'),(_0x2bfc75,_0x53370d,_0x4d7ebf)=>{this[_0x2542('0x1d')]||(this[_0x2542('0x1d')]=new _0x5983a3(_0xdbaa58[_0x2542('0x8')],this[_0x2542('0xe')])),_0x4d7ebf?_0x40e6e9[_0x2542('0xd')][_0x2542('0x24')][_0x2542('0x19')](this[_0x2542('0x1d')]):_0x40e6e9[_0x2542('0xd')]['children'][_0x2542('0x2f')](this[_0x2542('0x1d')]);});for(const _0xc0ef63 of this[_0x2542('0xe')]){const _0x1133c5=_0xee6d8c[_0x2542('0x14')](_0xc0ef63[_0x2542('0xb')]);this[_0x2542('0x18')](_0x40e6e9,_0x1133c5);}return _0x40e6e9[_0x2542('0x23')](this[_0x2542('0xe')],_0x2542('0x19'),(_0xf2ee54,_0x405628)=>{const _0x51fe70=_0xee6d8c[_0x2542('0x14')](_0x405628[_0x2542('0xb')]);this[_0x2542('0x18')](_0x40e6e9,_0x51fe70);}),_0x40e6e9['listenTo'](this['annotationViews'],'remove',(_0x410bbd,_0x1e31b2)=>{const _0x418c4b=_0xee6d8c[_0x2542('0x14')](_0x1e31b2[_0x2542('0xb')]);for(const _0x5ebb0 of _0x418c4b[_0x2542('0x26')])_0x5ebb0[_0x2542('0x30')][_0x2542('0x2')](_0x2542('0x5'))&&_0x40e6e9[_0x2542('0x29')][_0x2542('0x2f')](_0x5ebb0);}),_0x40e6e9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3bba=['_hasTargetInContent','destroy','openNewCommentThread','editingDowncast','collaboration.channelId','hasContent','change:isThreadsLoadingPaused','_handleMarkerAddAndRemove','getChangedMarkers','_attachMarkerToThread','attachTo','registerPostFixer','change:isReadOnly','state','length','item','_autoResolvedThreads','substring','_attachResolvedThread','differ','_detachCommentThread','reconvertMarker','rootName','from','render','markerToData','split','scrollToThreadMarker','consume','low','_attachedThreads','isCollapsed','ck-comment-marker--active','editor','dataDowncast','createPositionBefore','config','requires','ignoreResolvedComments','comment:','removeMarker','markerName','_reconvertMarkers','_threads','resolveCommentThread','updateMarker','$graveyard','hasMarkerForId','createElement','isEqual','delete','ready','isResolved','isLocal','view','high','newRange','removeMarker:','destroyed','affectsData','init','isThreadsLoadingPaused','editing','set','$textProxy','reopen','ck-comment-marker','clear','getCommentThreads','_getTargetForId','text','markers','focus','getItems','has','getCommentThread','end','start','getAllMarkersForId','upcast','model','pluginName','CommentsEditing','comment','plugins','conversion','get','listenTo','once','change','_threadToController','setContext','resolve','addCommentThread','hasDomSelection','_removedThread','$marker','_initializeMarkerConverters','removeCommentThread','for','_handleThreadMarker','add','registerAnnotation','data','filter','fetchCommentThread','consumable','hasCommentThread','getByInnerView','refreshVisibility','dataToMarker','_getTextContext','map','push','isObject','getRange','getAttribute','activeMarker','reopenCommentThread'];(function(_0x2e3b4c,_0x3bba7e){const _0x3e7b3a=function(_0x285168){while(--_0x285168){_0x2e3b4c['push'](_0x2e3b4c['shift']());}};_0x3e7b3a(++_0x3bba7e);}(_0x3bba,0x126));const _0x3e7b=function(_0x2e3b4c,_0x3bba7e){_0x2e3b4c=_0x2e3b4c-0x0;let _0x3e7b3a=_0x3bba[_0x2e3b4c];return _0x3e7b3a;};import{Plugin as _0x18c9f0}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x33c97f}from'ckeditor5/src/utils';import _0x536918 from'./commentsrepository';import _0x21db5e from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x22f157}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e3bee from'../annotations/editorannotations';import _0x13a517 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x1752af from'./integrations/importword';import _0x2c61ab from'../annotations/annotations';export default class r extends _0x18c9f0{static get[_0x3e7b('0x64')](){return[_0x536918,_0x5e3bee,_0x13a517,_0x1752af];}static get[_0x3e7b('0x19')](){return _0x3e7b('0x1a');}constructor(_0x2062db){super(_0x2062db),this['_removedThread']=null,this['_autoResolvedThreads']=new Set(),this['set'](_0x3e7b('0x5'),!0x0),_0x2062db[_0x3e7b('0x2f')]['once'](_0x3e7b('0x72'),()=>this[_0x3e7b('0x5')]=!0x1),this[_0x3e7b('0x7')]('activeMarker',null),this['on']('change:activeMarker',(_0x4cd105,_0xfffe3b,_0x3c18e7,_0x586739)=>{const _0x3ee0c0=_0x3c18e7?tt(_0x3c18e7)['id']:null;if(_0x2062db[_0x3e7b('0x18')][_0x3e7b('0x21')](()=>{if(_0x3ee0c0){const _0x19a63c=this[_0x3e7b('0x16')](_0x3ee0c0);for(const _0x9be131 of _0x19a63c)_0x2062db['editing']['reconvertMarker'](_0x9be131);}if(_0x586739){const {id:_0x2b0bd6}=tt(_0x586739),_0x3864a8=this[_0x3e7b('0x16')](_0x2b0bd6);for(const _0x16b733 of _0x3864a8)_0x2062db[_0x3e7b('0x6')][_0x3e7b('0x54')](_0x16b733);}}),_0x3ee0c0){const _0x2735dd=_0x2062db['plugins'][_0x3e7b('0x1e')](_0x536918)['getCommentThread'](_0x3ee0c0);_0x2735dd&&_0x2735dd[_0x3e7b('0x73')]&&this[_0x3e7b('0x5a')](_0x3ee0c0);}}),this['_attachedThreads']=new Map();}[_0x3e7b('0x4')](){const _0x4299fe=this['editor'],_0x13afed=_0x4299fe[_0x3e7b('0x1c')]['get'](_0x536918),_0x4a4bd0=_0x4299fe['config'][_0x3e7b('0x1e')](_0x3e7b('0x43'));_0x4299fe['commands'][_0x3e7b('0x2d')](_0x3e7b('0x25'),new _0x21db5e(_0x4299fe)),this[_0x3e7b('0x1f')](_0x4299fe,_0x3e7b('0x4b'),(_0x2b078b,_0x500d2b,_0x115625)=>{_0x13afed['switchReadOnly'](_0x115625,_0x4299fe[_0x3e7b('0x63')][_0x3e7b('0x1e')]('collaboration.channelId'));}),this['listenTo'](_0x13afed,Z(_0x3e7b('0x25'),_0x4a4bd0),(_0x12ffea,{threadId:_0xc9d253})=>{const _0x213acc=this['editor'][_0x3e7b('0x1c')][_0x3e7b('0x1e')](_0x536918)[_0x3e7b('0x13')](_0xc9d253);_0x213acc&&_0x213acc[_0x3e7b('0x73')]&&this[_0x3e7b('0x51')](_0xc9d253);}),this['listenTo'](_0x13afed,Z(_0x3e7b('0x2a'),_0x4a4bd0),(_0x33589b,{threadId:_0x2d1372})=>{_0x4299fe[_0x3e7b('0x18')]['enqueueChange']({'isUndoable':!0x1},_0x21e148=>{const _0x578b2e=this[_0x3e7b('0x16')](_0x2d1372);this[_0x3e7b('0x5d')]['delete'](_0x2d1372),this[_0x3e7b('0x27')]=_0x2d1372;for(const _0x3c8be7 of _0x578b2e)_0x21e148[_0x3e7b('0x67')](_0x3c8be7);}),this[_0x3e7b('0x27')]=null;},{'priority':_0x3e7b('0x76')}),this[_0x3e7b('0x1f')](_0x13afed,Z(_0x3e7b('0x6b'),_0x4a4bd0),(_0x533ca6,{threadId:_0x1df717})=>{this[_0x3e7b('0x51')](_0x1df717),this[_0x3e7b('0x69')](_0x1df717),this[_0x3e7b('0x60')]['editing'][_0x3e7b('0x75')][_0x3e7b('0x26')]&&this['editor'][_0x3e7b('0x6')][_0x3e7b('0x75')][_0x3e7b('0x10')]();},{'priority':_0x3e7b('0x5c')}),this[_0x3e7b('0x1f')](_0x13afed,Z(_0x3e7b('0x3e'),_0x4a4bd0),(_0x1b0bf2,{threadId:_0x49c5db})=>{this[_0x3e7b('0x69')](_0x49c5db);},{'priority':_0x3e7b('0x5c')}),this['listenTo'](_0x13afed,Z('addComment',_0x4a4bd0),(_0x12c436,{threadId:_0x139e4c,isFromAdapter:_0x587102})=>{const _0xe5254=this[_0x3e7b('0x16')](_0x139e4c);if(_0x587102||0x0==_0xe5254['length']||!_0x13afed[_0x3e7b('0x33')](_0x139e4c))return;0x1===_0x13afed[_0x3e7b('0x13')](_0x139e4c)[_0x3e7b('0x4d')]&&_0x4299fe['model']['enqueueChange']({'isUndoable':!0x1},_0x111708=>{for(const _0x4b78a2 of _0xe5254)_0x111708[_0x3e7b('0x6c')](_0x4b78a2,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x3e7b('0x29')](),this[_0x3e7b('0x46')]();}[_0x3e7b('0x40')](){const _0x8f9e5c=this['editor'][_0x3e7b('0x1c')][_0x3e7b('0x1e')](_0x536918),_0x1b5f81=this[_0x3e7b('0x60')]['config']['get'](_0x3e7b('0x43'));for(const _0x5d59d4 of _0x8f9e5c[_0x3e7b('0xc')]({'channelId':_0x1b5f81}))_0x8f9e5c[_0x3e7b('0x53')](_0x5d59d4['id']),_0x8f9e5c[_0x3e7b('0x6a')][_0x3e7b('0x71')](_0x5d59d4['id']);super[_0x3e7b('0x40')]();}[_0x3e7b('0x6e')](_0xabade9){return this[_0x3e7b('0x16')](_0xabade9)['length']>0x0;}[_0x3e7b('0x16')](_0x20b5a3){return Array[_0x3e7b('0x56')](this['_attachedThreads'][_0x3e7b('0x1e')](_0x20b5a3)||[])[_0x3e7b('0x38')](_0x22f930=>this['editor'][_0x3e7b('0x18')][_0x3e7b('0xf')][_0x3e7b('0x1e')](_0x22f930))[_0x3e7b('0x30')](_0x52f130=>_0x52f130);}['scrollToThreadMarker'](_0x41ba95){const _0x24854c=this['_getTargetForId'](_0x41ba95);_0x24854c&&setTimeout(()=>{this[_0x3e7b('0x3d')]&&tt(this[_0x3e7b('0x3d')])['id']===_0x41ba95&&_0x33c97f({'target':_0x24854c[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x3e7b('0x69')](_0x17f447){this[_0x3e7b('0x60')][_0x3e7b('0x18')][_0x3e7b('0x21')](()=>{for(const _0x3d54f1 of this['getAllMarkersForId'](_0x17f447))this[_0x3e7b('0x60')]['editing']['reconvertMarker'](_0x3d54f1);});}[_0x3e7b('0x51')](_0x256469){const _0xd4d5bc=this[_0x3e7b('0x60')]['plugins'][_0x3e7b('0x1e')](_0x536918),_0x2f6b5f=this[_0x3e7b('0x60')]['plugins'][_0x3e7b('0x1e')](_0x5e3bee),_0x258e76=_0xd4d5bc[_0x3e7b('0x13')](_0x256469);if(!this[_0x3e7b('0x5d')]['has'](_0x256469)){const _0x21bd12=_0x258e76[_0x3e7b('0x49')](()=>this[_0x3e7b('0xd')](_0x258e76['id']));_0x2f6b5f[_0x3e7b('0x2e')](_0x21bd12),this[_0x3e7b('0x5d')][_0x3e7b('0x7')](_0x256469,new Set()),_0x258e76[_0x3e7b('0x3f')]=!0x1;}}[_0x3e7b('0x29')](){const _0x559c48=this['editor'];_0x559c48['conversion'][_0x3e7b('0x2b')](_0x3e7b('0x42'))['markerToHighlight']({'model':_0x3e7b('0x1b'),'view':(_0x177bf7,_0x1825e0)=>{const {id:_0x1a4606}=tt(_0x177bf7[_0x3e7b('0x68')]),_0x449999=_0x559c48[_0x3e7b('0x1c')][_0x3e7b('0x1e')](_0x536918)[_0x3e7b('0x13')](_0x1a4606),_0xc41db2=this['activeMarker']&&tt(this['activeMarker'])['id']===_0x1a4606;if(_0x449999&&_0x449999[_0x3e7b('0x73')]&&!_0xc41db2&&_0x177bf7['item'])return _0x1825e0[_0x3e7b('0x32')][_0x3e7b('0x5b')](_0x177bf7['item'],'addMarker:'+_0x177bf7[_0x3e7b('0x68')]),_0x1825e0['consumable'][_0x3e7b('0x5b')](_0x177bf7[_0x3e7b('0x4e')],_0x3e7b('0x1')+_0x177bf7[_0x3e7b('0x68')]),{'classes':[]};const _0x15590d=[_0x3e7b('0xa')];return _0xc41db2&&_0x15590d[_0x3e7b('0x39')](_0x3e7b('0x5f')),{'classes':_0x15590d,'attributes':{'data-comment':_0x1a4606}};}}),_0x559c48[_0x3e7b('0x1d')][_0x3e7b('0x2b')](_0x3e7b('0x61'))[_0x3e7b('0x58')]({'model':_0x3e7b('0x1b'),'view':(_0x1afe64,{options:_0x26dabc})=>{const _0x15b060=_0x559c48[_0x3e7b('0x1c')]['get'](_0x536918),_0x5893bc=_0x559c48['model'][_0x3e7b('0xf')]['get'](_0x1afe64),{id:_0x4c7d50,part:_0x436b0e}=tt(_0x1afe64);if(_0x5893bc&&!_0x5893bc[_0x3e7b('0x3')])return null;if(_0x26dabc[_0x3e7b('0x65')]){const _0x4c66cf=_0x15b060[_0x3e7b('0x13')](_0x4c7d50);if(_0x4c66cf&&_0x4c66cf[_0x3e7b('0x73')])return null;}return{'group':'comment','name':_0x436b0e?_0x4c7d50+':'+_0x436b0e:_0x4c7d50};}}),_0x559c48['conversion'][_0x3e7b('0x2b')](_0x3e7b('0x17'))['elementToElement']({'view':{'name':_0x3e7b('0x1b'),'attributes':{'id':/^\w/}},'model':(_0x42e24c,{writer:_0x4664f8})=>_0x4664f8[_0x3e7b('0x6f')](_0x3e7b('0x28'),{'data-name':_0x3e7b('0x66')+_0x42e24c[_0x3e7b('0x3c')]('id')})}),_0x559c48[_0x3e7b('0x1d')][_0x3e7b('0x2b')](_0x3e7b('0x17'))[_0x3e7b('0x36')]({'view':_0x3e7b('0x1b')});}['_handleMarkerAddAndRemove'](){const _0x422ff4=this[_0x3e7b('0x60')],_0x36a581=_0x422ff4['plugins'][_0x3e7b('0x1e')](_0x536918),_0x51ba66=new Set(),_0x4fe00e=new Set();_0x422ff4[_0x3e7b('0x18')]['document'][_0x3e7b('0x4a')](_0x4ae758=>{let _0x5c3098=!0x1;for(const {name:_0x47bf65,data:_0x504e49}of _0x422ff4[_0x3e7b('0x18')]['document'][_0x3e7b('0x52')][_0x3e7b('0x47')]()){const {group:_0x319329,id:_0x54a9b5}=tt(_0x47bf65);let _0x5137a9=_0x504e49[_0x3e7b('0x0')];if('comment'!==_0x319329||!_0x5137a9)continue;const _0x543458=_0x3e7b('0x6d')===_0x5137a9['root'][_0x3e7b('0x55')];_0x543458||(_0x5137a9=ot(_0x5137a9,_0x422ff4[_0x3e7b('0x18')]),!_0x5137a9||_0x5137a9[_0x3e7b('0x5e')]||!_0x504e49['newRange']||_0x5137a9[_0x3e7b('0x70')](_0x504e49[_0x3e7b('0x0')]))?_0x422ff4[_0x3e7b('0x18')][_0x3e7b('0x44')](_0x5137a9)&&!_0x543458?this['isThreadsLoadingPaused']?_0x51ba66[_0x3e7b('0x2d')](_0x47bf65):this['_handleThreadMarker'](_0x47bf65,_0x54a9b5):(_0x4fe00e[_0x3e7b('0x2d')](_0x47bf65),_0x51ba66[_0x3e7b('0x71')](_0x47bf65),_0x4ae758[_0x3e7b('0x67')](_0x47bf65),_0x5c3098=!0x0):(_0x4ae758[_0x3e7b('0x6c')](_0x47bf65,{'range':_0x5137a9}),_0x5c3098=!0x0);}return _0x5c3098;}),this['on'](_0x3e7b('0x45'),(_0x17bc5f,_0x41ccad,_0x1f0e37)=>{if(!_0x1f0e37&&_0x51ba66['size'])for(const _0x1e0c16 of _0x51ba66){const {id:_0x5b5844}=tt(_0x1e0c16);_0x51ba66[_0x3e7b('0x71')](_0x1e0c16),_0x422ff4[_0x3e7b('0x18')][_0x3e7b('0xf')]['get'](_0x1e0c16)&&this[_0x3e7b('0x2c')](_0x1e0c16,_0x5b5844);}}),this['listenTo'](_0x422ff4['model']['document'],_0x3e7b('0x21'),(_0x1fcab5,_0x4e35e0)=>{for(const {name:_0x4a1072,data:{newRange:_0x3c9f96}}of _0x422ff4[_0x3e7b('0x18')]['document'][_0x3e7b('0x52')]['getChangedMarkers']()){const {group:_0x359f33,id:_0x1557d9}=tt(_0x4a1072);if(_0x3e7b('0x1b')!==_0x359f33)continue;const _0x41f4b8=_0x36a581[_0x3e7b('0x13')](_0x1557d9),_0x59ce36=this[_0x3e7b('0x6e')](_0x1557d9);_0x41f4b8&&(_0x41f4b8[_0x3e7b('0x3f')]||_0x422ff4[_0x3e7b('0x6')]['view']['once'](_0x3e7b('0x57'),()=>{const _0x1c4d3b=_0x422ff4[_0x3e7b('0x1c')][_0x3e7b('0x1e')](_0x2c61ab),_0x3a18d2=_0x36a581['_threadToController']['get'](_0x41f4b8)['view'];_0x1c4d3b[_0x3e7b('0x34')](_0x3a18d2)[_0x3e7b('0x35')]();},{'priority':_0x3e7b('0x5c')}),_0x41f4b8[_0x3e7b('0x3f')]=_0x59ce36||!!_0x3c9f96),_0x3c9f96||(_0x4fe00e[_0x3e7b('0x2d')](_0x4a1072),_0x51ba66['delete'](_0x4a1072),this[_0x3e7b('0x5d')][_0x3e7b('0x12')](_0x1557d9)&&this[_0x3e7b('0x5d')][_0x3e7b('0x1e')](_0x1557d9)['delete'](_0x4a1072));}if(_0x4e35e0[_0x3e7b('0x74')])for(const _0x1a9103 of _0x4fe00e){const {id:_0x537d75}=tt(_0x1a9103),_0x4889ea=_0x36a581[_0x3e7b('0x13')](_0x537d75),_0x1a4e67=this['hasMarkerForId'](_0x537d75);_0x51ba66[_0x3e7b('0x71')](_0x1a9103),!_0x4889ea||_0x1a4e67||_0x4889ea['isResolved']||this['_removedThread']===_0x537d75||(this['_autoResolvedThreads']['add'](_0x4889ea),_0x4889ea[_0x3e7b('0x24')]());}_0x4fe00e[_0x3e7b('0xb')]();});}['_getTargetForId'](_0x4e73f0){const _0x2756b9=this[_0x3e7b('0x60')],_0x29f4d2=this[_0x3e7b('0x16')](_0x4e73f0);return _0x22f157(_0x2756b9[_0x3e7b('0x6')],_0x29f4d2);}[_0x3e7b('0x37')](_0x40430b){const _0x4333f8=this[_0x3e7b('0x16')](_0x40430b);let _0x5f14f1='',_0x2fa7f3=!0x1;for(const _0x93354d of _0x4333f8){const _0x55ff9b=_0x93354d[_0x3e7b('0x3b')]();for(const _0x5d9019 of Array[_0x3e7b('0x56')](_0x55ff9b[_0x3e7b('0x11')]()))_0x5d9019['is'](_0x3e7b('0x8'))?(_0x5f14f1&&_0x2fa7f3&&(_0x5f14f1+='\x20',_0x2fa7f3=!0x1),_0x5f14f1+=_0x5d9019[_0x3e7b('0x2f')]):_0x2fa7f3=!0x0;_0x2fa7f3=!0x0;}return _0x5f14f1[_0x3e7b('0x50')](0x0,0x96);}[_0x3e7b('0x48')](_0x206b9a,_0x7cd6a5){const _0x4afcf4=this[_0x3e7b('0x60')],_0x5c18bc=_0x4afcf4['plugins'][_0x3e7b('0x1e')](_0x536918);let _0x78623=_0x5c18bc['getCommentThread'](_0x7cd6a5);if(this[_0x3e7b('0x5d')][_0x3e7b('0x12')](_0x7cd6a5)){const _0x504c98=this['_attachedThreads']['get'](_0x7cd6a5);_0x504c98[_0x3e7b('0x12')](_0x206b9a)||_0x504c98[_0x3e7b('0x2d')](_0x206b9a);}const _0x500740=_0x4afcf4[_0x3e7b('0x63')][_0x3e7b('0x1e')](_0x3e7b('0x43')),_0x2b3e27=_0x4afcf4[_0x3e7b('0x1c')]['get'](_0x5e3bee);if(_0x78623&&_0x78623[_0x3e7b('0x73')]&&this[_0x3e7b('0x4f')][_0x3e7b('0x12')](_0x78623)&&(this['_autoResolvedThreads'][_0x3e7b('0x71')](_0x78623),_0x78623[_0x3e7b('0x9')]()),this[_0x3e7b('0x5d')][_0x3e7b('0x12')](_0x7cd6a5))return _0x78623;return this[_0x3e7b('0x5d')][_0x3e7b('0x7')](_0x7cd6a5,new Set([_0x206b9a])),(!this[_0x3e7b('0x16')](_0x7cd6a5)[0x0]['managedUsingOperations']?_0x4afcf4[_0x3e7b('0x6')]['view'][_0x3e7b('0x20')](_0x3e7b('0x57'),()=>{const _0x5bc433=_0x4afcf4['plugins'][_0x3e7b('0x1e')](_0x2c61ab);_0x78623=_0x5c18bc[_0x3e7b('0x41')]({'channelId':_0x500740,'threadId':_0x7cd6a5,'target':()=>this[_0x3e7b('0xd')](_0x7cd6a5),'context':{'type':_0x3e7b('0xe'),'value':this[_0x3e7b('0x37')](_0x7cd6a5)}});const _0x2e0889=_0x5c18bc[_0x3e7b('0x22')][_0x3e7b('0x1e')](_0x78623)[_0x3e7b('0x75')],_0x1dcd80=_0x5bc433[_0x3e7b('0x34')](_0x2e0889);_0x1dcd80&&_0x2b3e27[_0x3e7b('0x2e')](_0x1dcd80);},{'priority':_0x3e7b('0x5c')}):_0x5c18bc[_0x3e7b('0x31')]({'channelId':_0x500740,'threadId':_0x7cd6a5})['then'](_0x1327b8=>{if(_0x3e7b('0x2')!==_0x4afcf4[_0x3e7b('0x4c')]){if(_0x78623=_0x1327b8,_0x78623){const _0x189f91=_0x78623['attachTo'](()=>this[_0x3e7b('0xd')](_0x7cd6a5));_0x2b3e27['registerAnnotation'](_0x189f91),_0x78623['isResolved']&&this[_0x3e7b('0x69')](_0x7cd6a5);}else{const _0x6a0eee=this[_0x3e7b('0x16')](_0x7cd6a5);_0x4afcf4[_0x3e7b('0x18')]['change'](_0x1ba31c=>{for(const _0x329f1b of _0x6a0eee)_0x1ba31c[_0x3e7b('0x67')](_0x329f1b);});}}}),_0x78623);}[_0x3e7b('0x2c')](_0x2cadc9,_0x2dcbea){const _0x572ea6=this[_0x3e7b('0x48')](_0x2cadc9,_0x2dcbea);_0x572ea6&&!_0x572ea6['context']&&_0x572ea6[_0x3e7b('0x23')]({'type':_0x3e7b('0xe'),'value':this[_0x3e7b('0x37')](_0x2dcbea)});}}function Z(_0x3554e4,_0x27dfbd){return _0x27dfbd?_0x3554e4+':'+_0x27dfbd:_0x3554e4;}function tt(_0x1f1f29){const _0x18be27=_0x1f1f29[_0x3e7b('0x59')](':');return{'group':_0x18be27[0x0],'id':_0x18be27[0x1],'part':_0x18be27[0x2]};}function ot(_0x4cb63d,_0x43a507){const _0x55357a=_0x43a507['schema'],_0x357ee9=_0x43a507['createRange'](_0x4cb63d[_0x3e7b('0x15')]);for(const _0x3f02a3 of _0x4cb63d['getWalker']()){const {type:_0x5a32f7,item:_0x3cbbcb,nextPosition:_0x46b9a4}=_0x3f02a3;if(_0x3e7b('0xe')===_0x5a32f7||_0x55357a[_0x3e7b('0x3a')](_0x3cbbcb)){const _0x42e903=_0x43a507[_0x3e7b('0x62')](_0x3cbbcb);_0x357ee9[_0x3e7b('0x5e')]&&(_0x357ee9[_0x3e7b('0x15')]=_0x42e903),_0x357ee9[_0x3e7b('0x14')]=_0x46b9a4;}}return _0x357ee9;}
|
|
23
|
+
const _0x5841=['openNewCommentThread','reopenCommentThread','reconvertMarker','updateMarker','dataToMarker','change','map','registerAnnotation','addCommentThread','scrollToThreadMarker','isThreadsLoadingPaused','getRange','getWalker','change:isReadOnly','isResolved','view','$marker','refreshVisibility','activeMarker','length','end','addMarker:','split','hasDomSelection','conversion','getCommentThreads','ck-comment-marker--active','isObject','elementToElement','change:activeMarker','state','_threadToController','_autoResolvedThreads','focus','text','_detachCommentThread','newRange','hasMarkerForId','model','removeCommentThread','requires','delete','set','ck-comment-marker','render','listenTo','get','destroy','getByInnerView','plugins','enqueueChange','once','schema','_handleMarkerAddAndRemove','$textProxy','ready','differ','push','has','_attachResolvedThread','_initializeMarkerConverters','_getTextContext','start','_reconvertMarkers','resolveCommentThread','fetchCommentThread','getCommentThread','markers','rootName','commands','data','markerName','low','from','upcast','_removedThread','getChangedMarkers','registerPostFixer','substring','isEqual','config','editing','_attachMarkerToThread','collaboration.channelId','removeMarker:','filter','item','getAllMarkersForId','editor','dataDowncast','createPositionBefore','comment','consumable','createRange','_getTargetForId','isCollapsed','size','attachTo','ignoreResolvedComments','removeMarker','_attachedThreads','_hasTargetInContent','add','getAttribute','pluginName','setContext','root','_handleThreadMarker','for','reopen','document','CommentsEditing'];(function(_0x1a19bf,_0x5841f5){const _0x244f1c=function(_0x52948e){while(--_0x52948e){_0x1a19bf['push'](_0x1a19bf['shift']());}};_0x244f1c(++_0x5841f5);}(_0x5841,0xd1));const _0x244f=function(_0x1a19bf,_0x5841f5){_0x1a19bf=_0x1a19bf-0x0;let _0x244f1c=_0x5841[_0x1a19bf];return _0x244f1c;};import{Plugin as _0x31951f}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x51ebf4}from'ckeditor5/src/utils';import _0x433bac from'./commentsrepository';import _0xfd7580 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x1e8424}from'ckeditor5-collaboration/src/collaboration-core';import _0x3f90b7 from'../annotations/editorannotations';import _0x1f3e51 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x4d67a6 from'./integrations/importword';import _0x1d19e6 from'../annotations/annotations';export default class r extends _0x31951f{static get[_0x244f('0x37')](){return[_0x433bac,_0x3f90b7,_0x1f3e51,_0x4d67a6];}static get[_0x244f('0x7')](){return _0x244f('0xe');}constructor(_0x35fecf){super(_0x35fecf),this[_0x244f('0x5a')]=null,this[_0x244f('0x2f')]=new Set(),this[_0x244f('0x39')](_0x244f('0x19'),!0x0),_0x35fecf['data']['once'](_0x244f('0x46'),()=>this[_0x244f('0x19')]=!0x1),this[_0x244f('0x39')](_0x244f('0x21'),null),this['on'](_0x244f('0x2c'),(_0x16bfe8,_0x58ef6c,_0x36e0df,_0x2f18ba)=>{const _0x21243a=_0x36e0df?tt(_0x36e0df)['id']:null;if(_0x35fecf[_0x244f('0x35')][_0x244f('0x14')](()=>{if(_0x21243a){const _0x193407=this['getAllMarkersForId'](_0x21243a);for(const _0x5d81f5 of _0x193407)_0x35fecf[_0x244f('0x60')]['reconvertMarker'](_0x5d81f5);}if(_0x2f18ba){const {id:_0xbbb7c2}=tt(_0x2f18ba),_0x16a3b8=this[_0x244f('0x66')](_0xbbb7c2);for(const _0x21c5b5 of _0x16a3b8)_0x35fecf['editing'][_0x244f('0x11')](_0x21c5b5);}}),_0x21243a){const _0x595fef=_0x35fecf[_0x244f('0x40')][_0x244f('0x3d')](_0x433bac)[_0x244f('0x51')](_0x21243a);_0x595fef&&_0x595fef[_0x244f('0x1d')]&&this[_0x244f('0x18')](_0x21243a);}}),this['_attachedThreads']=new Map();}['init'](){const _0x147f3b=this[_0x244f('0x67')],_0x503c4d=_0x147f3b['plugins'][_0x244f('0x3d')](_0x433bac),_0x78e89=_0x147f3b[_0x244f('0x5f')][_0x244f('0x3d')]('collaboration.channelId');_0x147f3b[_0x244f('0x54')][_0x244f('0x5')](_0x244f('0x17'),new _0xfd7580(_0x147f3b)),this[_0x244f('0x3c')](_0x147f3b,_0x244f('0x1c'),(_0x410885,_0x3d8a3c,_0x364590)=>{_0x503c4d['switchReadOnly'](_0x364590,_0x147f3b[_0x244f('0x5f')][_0x244f('0x3d')](_0x244f('0x62')));}),this[_0x244f('0x3c')](_0x503c4d,Z('addCommentThread',_0x78e89),(_0xb6dc84,{threadId:_0x4501bf})=>{const _0x3141ef=this[_0x244f('0x67')][_0x244f('0x40')][_0x244f('0x3d')](_0x433bac)[_0x244f('0x51')](_0x4501bf);_0x3141ef&&_0x3141ef[_0x244f('0x1d')]&&this[_0x244f('0x4a')](_0x4501bf);}),this[_0x244f('0x3c')](_0x503c4d,Z(_0x244f('0x36'),_0x78e89),(_0x23afad,{threadId:_0x310ea5})=>{_0x147f3b[_0x244f('0x35')]['enqueueChange']({'isUndoable':!0x1},_0x442f28=>{const _0x416a89=this[_0x244f('0x66')](_0x310ea5);this['_attachedThreads']['delete'](_0x310ea5),this[_0x244f('0x5a')]=_0x310ea5;for(const _0x1fe859 of _0x416a89)_0x442f28['removeMarker'](_0x1fe859);}),this[_0x244f('0x5a')]=null;},{'priority':'high'}),this[_0x244f('0x3c')](_0x503c4d,Z(_0x244f('0x4f'),_0x78e89),(_0x58c309,{threadId:_0xf4e753})=>{this[_0x244f('0x4a')](_0xf4e753),this['_reconvertMarkers'](_0xf4e753),this[_0x244f('0x67')]['editing'][_0x244f('0x1e')][_0x244f('0x26')]&&this[_0x244f('0x67')][_0x244f('0x60')][_0x244f('0x1e')][_0x244f('0x30')]();},{'priority':_0x244f('0x57')}),this[_0x244f('0x3c')](_0x503c4d,Z(_0x244f('0x10'),_0x78e89),(_0x54e4b5,{threadId:_0x51bfc6})=>{this[_0x244f('0x4e')](_0x51bfc6);},{'priority':'low'}),this[_0x244f('0x3c')](_0x503c4d,Z('addComment',_0x78e89),(_0x2669e6,{threadId:_0xffc33e,isFromAdapter:_0x52dbdb})=>{const _0x22cc8a=this['getAllMarkersForId'](_0xffc33e);if(_0x52dbdb||0x0==_0x22cc8a['length']||!_0x503c4d['hasCommentThread'](_0xffc33e))return;0x1===_0x503c4d[_0x244f('0x51')](_0xffc33e)[_0x244f('0x22')]&&_0x147f3b['model'][_0x244f('0x41')]({'isUndoable':!0x1},_0x3ad920=>{for(const _0x43c031 of _0x22cc8a)_0x3ad920['updateMarker'](_0x43c031,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x244f('0x57')}),this[_0x244f('0x4b')](),this[_0x244f('0x44')]();}[_0x244f('0x3e')](){const _0x31589a=this[_0x244f('0x67')][_0x244f('0x40')][_0x244f('0x3d')](_0x433bac),_0x51fb27=this[_0x244f('0x67')][_0x244f('0x5f')][_0x244f('0x3d')](_0x244f('0x62'));for(const _0x258fc5 of _0x31589a[_0x244f('0x28')]({'channelId':_0x51fb27}))_0x31589a[_0x244f('0x32')](_0x258fc5['id']),_0x31589a['_threads']['delete'](_0x258fc5['id']);super['destroy']();}['hasMarkerForId'](_0x41b9ab){return this[_0x244f('0x66')](_0x41b9ab)[_0x244f('0x22')]>0x0;}[_0x244f('0x66')](_0x43a93c){return Array[_0x244f('0x58')](this[_0x244f('0x3')][_0x244f('0x3d')](_0x43a93c)||[])[_0x244f('0x15')](_0xe7bb98=>this['editor']['model'][_0x244f('0x52')][_0x244f('0x3d')](_0xe7bb98))[_0x244f('0x64')](_0x572c01=>_0x572c01);}[_0x244f('0x18')](_0xcc88ce){const _0x52ff8d=this['_getTargetForId'](_0xcc88ce);_0x52ff8d&&setTimeout(()=>{this[_0x244f('0x21')]&&tt(this[_0x244f('0x21')])['id']===_0xcc88ce&&_0x51ebf4({'target':_0x52ff8d[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x244f('0x4e')](_0x119637){this[_0x244f('0x67')]['model'][_0x244f('0x14')](()=>{for(const _0x394ab3 of this['getAllMarkersForId'](_0x119637))this[_0x244f('0x67')][_0x244f('0x60')][_0x244f('0x11')](_0x394ab3);});}['_attachResolvedThread'](_0x33a4f9){const _0x504fe1=this[_0x244f('0x67')][_0x244f('0x40')][_0x244f('0x3d')](_0x433bac),_0x3ba2de=this[_0x244f('0x67')][_0x244f('0x40')][_0x244f('0x3d')](_0x3f90b7),_0x16a7f1=_0x504fe1[_0x244f('0x51')](_0x33a4f9);if(!this[_0x244f('0x3')][_0x244f('0x49')](_0x33a4f9)){const _0x54e1d0=_0x16a7f1[_0x244f('0x0')](()=>this[_0x244f('0x6d')](_0x16a7f1['id']));_0x3ba2de[_0x244f('0x16')](_0x54e1d0),this['_attachedThreads'][_0x244f('0x39')](_0x33a4f9,new Set()),_0x16a7f1[_0x244f('0x4')]=!0x1;}}['_initializeMarkerConverters'](){const _0x2aeabc=this[_0x244f('0x67')];_0x2aeabc[_0x244f('0x27')]['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x15a99f,_0x795dad)=>{const {id:_0x45caa1}=tt(_0x15a99f[_0x244f('0x56')]),_0xe5dad1=_0x2aeabc[_0x244f('0x40')]['get'](_0x433bac)[_0x244f('0x51')](_0x45caa1),_0x5a729a=this[_0x244f('0x21')]&&tt(this[_0x244f('0x21')])['id']===_0x45caa1;if(_0xe5dad1&&_0xe5dad1['isResolved']&&!_0x5a729a&&_0x15a99f[_0x244f('0x65')])return _0x795dad['consumable']['consume'](_0x15a99f[_0x244f('0x65')],_0x244f('0x24')+_0x15a99f[_0x244f('0x56')]),_0x795dad[_0x244f('0x6b')]['consume'](_0x15a99f['item'],_0x244f('0x63')+_0x15a99f['markerName']),{'classes':[]};const _0x159eec=[_0x244f('0x3a')];return _0x5a729a&&_0x159eec[_0x244f('0x48')](_0x244f('0x29')),{'classes':_0x159eec,'attributes':{'data-comment':_0x45caa1}};}}),_0x2aeabc[_0x244f('0x27')][_0x244f('0xb')](_0x244f('0x68'))['markerToData']({'model':_0x244f('0x6a'),'view':(_0xd3e8ca,{options:_0x2aa960})=>{const _0x3825b9=_0x2aeabc['plugins'][_0x244f('0x3d')](_0x433bac),_0x29844e=_0x2aeabc[_0x244f('0x35')][_0x244f('0x52')][_0x244f('0x3d')](_0xd3e8ca),{id:_0x1b6af7,part:_0x45d7a1}=tt(_0xd3e8ca);if(_0x29844e&&!_0x29844e['affectsData'])return null;if(_0x2aa960[_0x244f('0x1')]){const _0x43d1ea=_0x3825b9[_0x244f('0x51')](_0x1b6af7);if(_0x43d1ea&&_0x43d1ea[_0x244f('0x1d')])return null;}return{'group':_0x244f('0x6a'),'name':_0x45d7a1?_0x1b6af7+':'+_0x45d7a1:_0x1b6af7};}}),_0x2aeabc[_0x244f('0x27')][_0x244f('0xb')](_0x244f('0x59'))[_0x244f('0x2b')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x577679,{writer:_0x414a1a})=>_0x414a1a['createElement'](_0x244f('0x1f'),{'data-name':'comment:'+_0x577679[_0x244f('0x6')]('id')})}),_0x2aeabc['conversion'][_0x244f('0xb')](_0x244f('0x59'))[_0x244f('0x13')]({'view':'comment'});}[_0x244f('0x44')](){const _0x150c2d=this[_0x244f('0x67')],_0x447c37=_0x150c2d['plugins']['get'](_0x433bac),_0x5426ef=new Set(),_0x28a9a5=new Set();_0x150c2d['model'][_0x244f('0xd')][_0x244f('0x5c')](_0x113b0e=>{let _0x2b7358=!0x1;for(const {name:_0x3aa681,data:_0x3a857c}of _0x150c2d['model'][_0x244f('0xd')][_0x244f('0x47')][_0x244f('0x5b')]()){const {group:_0x10571a,id:_0x256a35}=tt(_0x3aa681);let _0x1b85d=_0x3a857c[_0x244f('0x33')];if(_0x244f('0x6a')!==_0x10571a||!_0x1b85d)continue;const _0x46c671='$graveyard'===_0x1b85d[_0x244f('0x9')][_0x244f('0x53')];_0x46c671||(_0x1b85d=ot(_0x1b85d,_0x150c2d[_0x244f('0x35')]),!_0x1b85d||_0x1b85d[_0x244f('0x6e')]||!_0x3a857c[_0x244f('0x33')]||_0x1b85d[_0x244f('0x5e')](_0x3a857c['newRange']))?_0x150c2d[_0x244f('0x35')]['hasContent'](_0x1b85d)&&!_0x46c671?this[_0x244f('0x19')]?_0x5426ef[_0x244f('0x5')](_0x3aa681):this[_0x244f('0xa')](_0x3aa681,_0x256a35):(_0x28a9a5[_0x244f('0x5')](_0x3aa681),_0x5426ef[_0x244f('0x38')](_0x3aa681),_0x113b0e[_0x244f('0x2')](_0x3aa681),_0x2b7358=!0x0):(_0x113b0e[_0x244f('0x12')](_0x3aa681,{'range':_0x1b85d}),_0x2b7358=!0x0);}return _0x2b7358;}),this['on']('change:isThreadsLoadingPaused',(_0x4109a1,_0x297c7e,_0x3c1f57)=>{if(!_0x3c1f57&&_0x5426ef[_0x244f('0x6f')])for(const _0x27d131 of _0x5426ef){const {id:_0x260f33}=tt(_0x27d131);_0x5426ef[_0x244f('0x38')](_0x27d131),_0x150c2d[_0x244f('0x35')][_0x244f('0x52')][_0x244f('0x3d')](_0x27d131)&&this[_0x244f('0xa')](_0x27d131,_0x260f33);}}),this[_0x244f('0x3c')](_0x150c2d[_0x244f('0x35')][_0x244f('0xd')],_0x244f('0x14'),(_0x376568,_0x212f11)=>{for(const {name:_0x539d10,data:{newRange:_0x475c86}}of _0x150c2d[_0x244f('0x35')][_0x244f('0xd')][_0x244f('0x47')][_0x244f('0x5b')]()){const {group:_0x2f9009,id:_0x3efd0f}=tt(_0x539d10);if(_0x244f('0x6a')!==_0x2f9009)continue;const _0x480f06=_0x447c37[_0x244f('0x51')](_0x3efd0f),_0x1e260a=this['hasMarkerForId'](_0x3efd0f);_0x480f06&&(_0x480f06[_0x244f('0x4')]||_0x150c2d[_0x244f('0x60')][_0x244f('0x1e')]['once'](_0x244f('0x3b'),()=>{const _0x25e18d=_0x150c2d[_0x244f('0x40')][_0x244f('0x3d')](_0x1d19e6),_0x105bfb=_0x447c37[_0x244f('0x2e')][_0x244f('0x3d')](_0x480f06)['view'];_0x25e18d[_0x244f('0x3f')](_0x105bfb)[_0x244f('0x20')]();},{'priority':_0x244f('0x57')}),_0x480f06[_0x244f('0x4')]=_0x1e260a||!!_0x475c86),_0x475c86||(_0x28a9a5[_0x244f('0x5')](_0x539d10),_0x5426ef['delete'](_0x539d10),this[_0x244f('0x3')][_0x244f('0x49')](_0x3efd0f)&&this[_0x244f('0x3')]['get'](_0x3efd0f)[_0x244f('0x38')](_0x539d10));}if(_0x212f11['isLocal'])for(const _0x5ea3c6 of _0x28a9a5){const {id:_0x1cb4b5}=tt(_0x5ea3c6),_0x51de8f=_0x447c37[_0x244f('0x51')](_0x1cb4b5),_0x155671=this[_0x244f('0x34')](_0x1cb4b5);_0x5426ef[_0x244f('0x38')](_0x5ea3c6),!_0x51de8f||_0x155671||_0x51de8f[_0x244f('0x1d')]||this[_0x244f('0x5a')]===_0x1cb4b5||(this['_autoResolvedThreads'][_0x244f('0x5')](_0x51de8f),_0x51de8f['resolve']());}_0x28a9a5['clear']();});}[_0x244f('0x6d')](_0x3672ed){const _0x178451=this[_0x244f('0x67')],_0x1d74ad=this[_0x244f('0x66')](_0x3672ed);return _0x1e8424(_0x178451[_0x244f('0x60')],_0x1d74ad);}['_getTextContext'](_0x4ddb45){const _0x1a83fd=this[_0x244f('0x66')](_0x4ddb45);let _0x3f2d84='',_0x3666e8=!0x1;for(const _0x2e19e9 of _0x1a83fd){const _0x26ede0=_0x2e19e9[_0x244f('0x1a')]();for(const _0x4e21f4 of Array[_0x244f('0x58')](_0x26ede0['getItems']()))_0x4e21f4['is'](_0x244f('0x45'))?(_0x3f2d84&&_0x3666e8&&(_0x3f2d84+='\x20',_0x3666e8=!0x1),_0x3f2d84+=_0x4e21f4[_0x244f('0x55')]):_0x3666e8=!0x0;_0x3666e8=!0x0;}return _0x3f2d84[_0x244f('0x5d')](0x0,0x96);}['_attachMarkerToThread'](_0x4b0817,_0x351359){const _0xc21dac=this[_0x244f('0x67')],_0x10b073=_0xc21dac[_0x244f('0x40')][_0x244f('0x3d')](_0x433bac);let _0x19c68f=_0x10b073[_0x244f('0x51')](_0x351359);if(this[_0x244f('0x3')]['has'](_0x351359)){const _0xd3edcd=this[_0x244f('0x3')]['get'](_0x351359);_0xd3edcd[_0x244f('0x49')](_0x4b0817)||_0xd3edcd['add'](_0x4b0817);}const _0x4d551c=_0xc21dac['config'][_0x244f('0x3d')]('collaboration.channelId'),_0x20ed20=_0xc21dac[_0x244f('0x40')][_0x244f('0x3d')](_0x3f90b7);if(_0x19c68f&&_0x19c68f[_0x244f('0x1d')]&&this[_0x244f('0x2f')][_0x244f('0x49')](_0x19c68f)&&(this[_0x244f('0x2f')][_0x244f('0x38')](_0x19c68f),_0x19c68f[_0x244f('0xc')]()),this[_0x244f('0x3')]['has'](_0x351359))return _0x19c68f;return this[_0x244f('0x3')][_0x244f('0x39')](_0x351359,new Set([_0x4b0817])),(!this['getAllMarkersForId'](_0x351359)[0x0]['managedUsingOperations']?_0xc21dac['editing'][_0x244f('0x1e')][_0x244f('0x42')](_0x244f('0x3b'),()=>{const _0x7ea96=_0xc21dac['plugins'][_0x244f('0x3d')](_0x1d19e6);_0x19c68f=_0x10b073[_0x244f('0xf')]({'channelId':_0x4d551c,'threadId':_0x351359,'target':()=>this[_0x244f('0x6d')](_0x351359),'context':{'type':'text','value':this[_0x244f('0x4c')](_0x351359)}});const _0x4c2a8b=_0x10b073[_0x244f('0x2e')][_0x244f('0x3d')](_0x19c68f)[_0x244f('0x1e')],_0x4df5de=_0x7ea96[_0x244f('0x3f')](_0x4c2a8b);_0x4df5de&&_0x20ed20[_0x244f('0x16')](_0x4df5de);},{'priority':'low'}):_0x10b073[_0x244f('0x50')]({'channelId':_0x4d551c,'threadId':_0x351359})['then'](_0x315a90=>{if('destroyed'!==_0xc21dac[_0x244f('0x2d')]){if(_0x19c68f=_0x315a90,_0x19c68f){const _0x19f1a4=_0x19c68f[_0x244f('0x0')](()=>this[_0x244f('0x6d')](_0x351359));_0x20ed20[_0x244f('0x16')](_0x19f1a4),_0x19c68f[_0x244f('0x1d')]&&this['_reconvertMarkers'](_0x351359);}else{const _0x42e32d=this[_0x244f('0x66')](_0x351359);_0xc21dac[_0x244f('0x35')][_0x244f('0x14')](_0x38454c=>{for(const _0x17d56c of _0x42e32d)_0x38454c[_0x244f('0x2')](_0x17d56c);});}}}),_0x19c68f);}[_0x244f('0xa')](_0x36d267,_0x2c5f37){const _0x276c85=this[_0x244f('0x61')](_0x36d267,_0x2c5f37);_0x276c85&&!_0x276c85['context']&&_0x276c85[_0x244f('0x8')]({'type':_0x244f('0x31'),'value':this[_0x244f('0x4c')](_0x2c5f37)});}}function Z(_0x1e399c,_0x246f3e){return _0x246f3e?_0x1e399c+':'+_0x246f3e:_0x1e399c;}function tt(_0x3d3f58){const _0x5c38b9=_0x3d3f58[_0x244f('0x25')](':');return{'group':_0x5c38b9[0x0],'id':_0x5c38b9[0x1],'part':_0x5c38b9[0x2]};}function ot(_0x4065c8,_0x5a74e4){const _0x1bce91=_0x5a74e4[_0x244f('0x43')],_0x13d69e=_0x5a74e4[_0x244f('0x6c')](_0x4065c8[_0x244f('0x4d')]);for(const _0x97b363 of _0x4065c8[_0x244f('0x1b')]()){const {type:_0x5f0b3f,item:_0x548e0a,nextPosition:_0x4b7611}=_0x97b363;if(_0x244f('0x31')===_0x5f0b3f||_0x1bce91[_0x244f('0x2a')](_0x548e0a)){const _0x2775a8=_0x5a74e4[_0x244f('0x69')](_0x548e0a);_0x13d69e[_0x244f('0x6e')]&&(_0x13d69e[_0x244f('0x4d')]=_0x2775a8),_0x13d69e[_0x244f('0x23')]=_0x4b7611;}}return _0x13d69e;}
|