@ckeditor/ckeditor5-comments 0.0.0-nightly-20231102.0 → 0.0.0-nightly-20231104.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/LICENSE.md +3 -3
- 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 _0x5e92=['setTemplate','bindTemplate','_updateHeight','content','fire','length','clear','add','targetRect','ck-annotation-wrapper','element','height','_mutationObserver','attach','set','createCollection','Esc','listenTo','focus','isActive','ck-rounded-corners','div','focusTracker','render','isDirty','destroy','mainView','type','detach','keystrokes'];(function(_0x5653ac,_0x5e92ce){const _0x9559b7=function(_0x16b14d){while(--_0x16b14d){_0x5653ac['push'](_0x5653ac['shift']());}};_0x9559b7(++_0x5e92ce);}(_0x5e92,0x1ce));const _0x9559=function(_0x5653ac,_0x5e92ce){_0x5653ac=_0x5653ac-0x0;let _0x9559b7=_0x5e92[_0x5653ac];return _0x9559b7;};import{View as _0x3700ed}from'ckeditor5/src/ui';import{FocusTracker as _0x1dbf89,KeystrokeHandler as _0x43d0ca,uid as _0x3ec2dc}from'ckeditor5/src/utils';import _0x4a604a from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x3700ed{constructor(_0x517529,_0x1ef7f2){super(_0x517529),this['id']=_0x3ec2dc(),this[_0x9559('0xa')]=new _0x1dbf89(),this[_0x9559('0x11')]=new _0x43d0ca(),this[_0x9559('0x11')][_0x9559('0x2')](_0x9559('0x4'),(_0x52fc99,_0x5ab3f0)=>this[_0x9559('0x16')]('Esc',_0x5ab3f0)),this[_0x9559('0x2')](_0x9559('0x1a'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x9559('0x1d'),0x0),this[_0x9559('0x2')](_0x9559('0x7'),!0x1),this[_0x9559('0x2')](_0x9559('0xc'),!0x1),this[_0x9559('0x2')](_0x9559('0x17'),0x0),this[_0x9559('0x2')](_0x9559('0xf'),''),this[_0x9559('0x0')]=_0x4a604a(()=>this[_0x9559('0x14')]()),this[_0x9559('0x15')]=this[_0x9559('0x3')](),this[_0x9559('0x15')]['add'](_0x1ef7f2),this[_0x9559('0xe')]=_0x1ef7f2;const _0x4d0d8b=this[_0x9559('0x13')];this[_0x9559('0x12')]({'tag':_0x9559('0x9'),'attributes':{'class':['ck',_0x9559('0x1b'),_0x9559('0x8'),_0x4d0d8b['if'](_0x9559('0x7'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x9559('0x15')]});}[_0x9559('0xb')](){super['render'](),this[_0x9559('0xa')][_0x9559('0x19')](this[_0x9559('0x1c')]),this['keystrokes'][_0x9559('0x5')](this[_0x9559('0x1c')]),this['_mutationObserver'][_0x9559('0x1')](this[_0x9559('0x1c')]);}[_0x9559('0xd')](){this[_0x9559('0x15')][_0x9559('0x18')](),this[_0x9559('0x11')][_0x9559('0xd')](),this[_0x9559('0xa')][_0x9559('0xd')](),this[_0x9559('0x0')][_0x9559('0x10')](),super[_0x9559('0xd')]();}[_0x9559('0x6')](){this[_0x9559('0x1c')][_0x9559('0x6')]();}[_0x9559('0x14')](){const _0x5e7977=this[_0x9559('0x1c')]['clientHeight'];_0x5e7977&&(this[_0x9559('0x1d')]=_0x5e7977);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c5e=['content','destroy','ck-sidebar-item','height','bottom','ck-sidebar-item--no-animation','updateHeight','clear','attach','element','bindTemplate','createCollection','_targetTop','set','top','div','isAnimationDisabled','render','detach','_mutationObserver'];(function(_0x1c34b2,_0x2c5e58){const _0x17d160=function(_0x3af8b5){while(--_0x3af8b5){_0x1c34b2['push'](_0x1c34b2['shift']());}};_0x17d160(++_0x2c5e58);}(_0x2c5e,0xda));const _0x17d1=function(_0x1c34b2,_0x2c5e58){_0x1c34b2=_0x1c34b2-0x0;let _0x17d160=_0x2c5e[_0x1c34b2];return _0x17d160;};import{View as _0x4878e0}from'ckeditor5/src/ui';import{toUnit as _0x3a30f9}from'ckeditor5/src/utils';import _0x4cd713 from'../../utils/createmutationobserver';const At=_0x3a30f9('px');export default class C extends _0x4878e0{constructor(_0x4d3044){super(_0x4d3044),this[_0x17d1('0xf')]('top',0x0),this['set'](_0x17d1('0x5'),0x0),this['bind'](_0x17d1('0x6'))['to'](this,_0x17d1('0x10'),this,'height',(_0xb57ab,_0x599fc5)=>_0xb57ab+_0x599fc5),this[_0x17d1('0xf')](_0x17d1('0x12'),!0x1),this['_mutationObserver']=_0x4cd713(()=>this[_0x17d1('0x8')]()),this[_0x17d1('0xe')]=null,this[_0x17d1('0x2')]=this[_0x17d1('0xd')]();const _0x43301d=this[_0x17d1('0xc')];this['setTemplate']({'tag':_0x17d1('0x11'),'attributes':{'class':[_0x17d1('0x4'),_0x43301d['to'](_0x17d1('0x12'),_0xd814cd=>_0xd814cd?_0x17d1('0x7'):'')],'style':{'top':_0x43301d['to']('top',_0xff7f4e=>At(_0xff7f4e))}},'children':this[_0x17d1('0x2')]});}['render'](){super[_0x17d1('0x13')](),this[_0x17d1('0x1')][_0x17d1('0xa')](this[_0x17d1('0xb')]);}[_0x17d1('0x8')](){const _0x5b01df=this[_0x17d1('0xb')]['clientHeight'];_0x5b01df&&(this[_0x17d1('0x5')]=_0x5b01df);}[_0x17d1('0x3')](){this['content'][_0x17d1('0x9')](),this[_0x17d1('0x1')][_0x17d1('0x0')](),super[_0x17d1('0x3')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5383=['set','minHeight','ck-reset','number','ck-sidebar','createCollection','class','list','setTemplate','div','bindTemplate'];(function(_0x37385,_0x5383be){const _0x4348d9=function(_0x8ba4e9){while(--_0x8ba4e9){_0x37385['push'](_0x37385['shift']());}};_0x4348d9(++_0x5383be);}(_0x5383,0x64));const _0x4348=function(_0x37385,_0x5383be){_0x37385=_0x37385-0x0;let _0x4348d9=_0x5383[_0x37385];return _0x4348d9;};import{View as _0x3aa282}from'ckeditor5/src/ui';import{toUnit as _0x52b34a}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x52b34a('px');export default class T extends _0x3aa282{constructor(_0x39dcbc){super(_0x39dcbc);const _0x7fa3c2=this[_0x4348('0x9')];this[_0x4348('0xa')]('minHeight',0x0),this['set'](_0x4348('0x5'),''),this[_0x4348('0x6')]=this[_0x4348('0x4')](),this[_0x4348('0x7')]({'tag':_0x4348('0x8'),'attributes':{'class':['ck',_0x4348('0x3'),_0x4348('0x1'),_0x7fa3c2['to'](_0x4348('0x5'))],'style':{'minHeight':_0x7fa3c2['to'](_0x4348('0x0'),_0x29786d=>_0x4348('0x2')==typeof _0x29786d?At(_0x29786d+0xa):null)}},'children':this[_0x4348('0x6')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fc2=['resize','hasDomSelection','blur','_destroyEditorAnnotationsIntegration','ck-sidebar--wide','high','widesidebar-attach-already-attached','listenTo','setActiveAnnotation','requires','destroy','annotations','EditorAnnotations','off','detach','from','attach','ready','get','refreshPositioning','container','uiUpdate','_integrateWithEditorAnnotations','editors','plugins','addEventListener','widesidebar-detach-not-attached','_refreshPositioningDebounced','_annotations','cancel','pluginName','register','context','_activeAnnotation','_detachFromContainer','getOrderedSelectedAnnotations','stop','_editorAnnotations','_attachToContainer','set','removeEventListener','refresh','switchTo','updateTargetRect','stopListening','activeAnnotation','add','wideSidebar','addAnnotation','remove','init','rearrange','isAttached'];(function(_0x57410f,_0x1fc20b){const _0x5b152b=function(_0x574511){while(--_0x574511){_0x57410f['push'](_0x57410f['shift']());}};_0x5b152b(++_0x1fc20b);}(_0x1fc2,0x1d2));const _0x5b15=function(_0x57410f,_0x1fc20b){_0x57410f=_0x57410f-0x0;let _0x5b152b=_0x1fc2[_0x57410f];return _0x5b152b;};import{ContextPlugin as _0x34ebc6,Context as _0x27e3bd}from'ckeditor5/src/core';import _0x57da23 from'./annotationsuis';import _0xec9041 from'./sidebar';import{CKEditorError as _0x395c52,Collection as _0x4f69fb}from'ckeditor5/src/utils';import{debounce as _0x4afc07}from'lodash-es';import _0x2f7354 from'./editorannotations';export default class i extends _0x34ebc6{static get[_0x5b15('0x14')](){return[_0xec9041,_0x57da23];}static get[_0x5b15('0x29')](){return'WideSidebar';}constructor(_0x23addf){super(_0x23addf),this[_0x5b15('0xa')]=!0x1,this[_0x5b15('0x32')]('activeAnnotation',null),this[_0x5b15('0x16')]=null,this[_0x5b15('0x30')]=new _0x4f69fb(),this[_0x5b15('0x26')]=_0x4afc07(()=>{this[_0x5b15('0x16')][_0x5b15('0x1e')]();},0xfa,{'leading':!0x1});}[_0x5b15('0x8')](){const _0x4438fb=this[_0x5b15('0x2b')][_0x5b15('0x23')][_0x5b15('0x1d')](_0x57da23),_0x2e22fe=this[_0x5b15('0x2b')][_0x5b15('0x23')]['get'](_0xec9041);_0x4438fb[_0x5b15('0x2a')](_0x5b15('0x5'),this),_0x2e22fe[_0x5b15('0x1f')]&&_0x4438fb[_0x5b15('0x0')](_0x5b15('0x5'));}[_0x5b15('0x13')](_0x5053a5){if(_0x5053a5===this['activeAnnotation'])return;const _0xc86ad7=this[_0x5b15('0x2b')]['plugins'][_0x5b15('0x1d')](_0xec9041);_0xc86ad7[_0x5b15('0x2c')]=_0x5053a5;const _0x1647ac=this['activeAnnotation'];this[_0x5b15('0x3')]=_0x5053a5,_0xc86ad7[_0x5b15('0x34')]({'blurredAnnotation':_0x1647ac,'activatedAnnotation':this[_0x5b15('0x3')]});}[_0x5b15('0x1b')](_0x396498){this['annotations']=_0x396498;const _0x3ea9ae=this['context'][_0x5b15('0x23')][_0x5b15('0x1d')](_0xec9041);if(_0x3ea9ae[_0x5b15('0x27')]=_0x396498,this[_0x5b15('0xa')])throw new _0x395c52(_0x5b15('0x11'),this);this[_0x5b15('0xa')]=!0x0,this[_0x5b15('0x12')](_0x3ea9ae,'set:container',()=>{this[_0x5b15('0x19')](),this['listenTo'](_0x3ea9ae,'change:container',_0x555dd=>{_0x555dd[_0x5b15('0x18')](),this['attach'](_0x396498);});}),_0x3ea9ae[_0x5b15('0x31')]({'viewClass':_0x5b15('0xf')});const _0x28b6c9=_0x1fe9f=>{_0x1fe9f[_0x5b15('0x1')](),_0x3ea9ae[_0x5b15('0x6')](_0x1fe9f);};for(const _0x2ee552 of _0x396498)_0x28b6c9(_0x2ee552);this[_0x5b15('0x12')](_0x396498,'add',(_0x409aa3,_0x42ff03)=>{_0x28b6c9(_0x42ff03);}),this[_0x5b15('0x12')](_0x396498,_0x5b15('0x7'),(_0x456bd1,_0x9ce42d,_0x1258c7)=>{_0x3ea9ae[_0x5b15('0x9')]({'removedAnnotation':_0x9ce42d,'previousAnnotation':_0x396498[_0x5b15('0x1d')](_0x1258c7-0x1),'nextAnnotation':_0x396498[_0x5b15('0x1d')](_0x1258c7+0x1)}),_0x9ce42d===this[_0x5b15('0x3')]&&this[_0x5b15('0x13')](null);},{'priority':'high'}),this[_0x5b15('0x12')](_0x396498,'focus',(_0x5561b2,_0x32ee75)=>{this['setActiveAnnotation'](_0x32ee75);}),this[_0x5b15('0x12')](_0x396498,_0x5b15('0xd'),()=>{this[_0x5b15('0x13')](null);});const _0x3cce8a=this[_0x5b15('0x2b')]instanceof _0x27e3bd?this[_0x5b15('0x2b')][_0x5b15('0x22')]:new _0x4f69fb([this[_0x5b15('0x2b')]]);for(const _0x3b0975 of _0x3cce8a)this[_0x5b15('0x21')](_0x3b0975);this[_0x5b15('0x12')](_0x3cce8a,_0x5b15('0x4'),(_0x95ce11,_0x4c9b6c)=>{this[_0x5b15('0x12')](_0x4c9b6c,_0x5b15('0x1c'),()=>{this[_0x5b15('0x21')](_0x4c9b6c);});}),this[_0x5b15('0x12')](_0x3cce8a,_0x5b15('0x7'),(_0x578e86,_0x14c501)=>{_0x14c501[_0x5b15('0x23')]['has'](_0x5b15('0x17'))&&this[_0x5b15('0xe')](_0x14c501[_0x5b15('0x23')][_0x5b15('0x1d')](_0x5b15('0x17')));}),window[_0x5b15('0x24')](_0x5b15('0xb'),this[_0x5b15('0x26')]),this[_0x5b15('0x16')]['refreshPositioning']();}[_0x5b15('0x19')](){if(!this['isAttached'])throw new _0x395c52(_0x5b15('0x25'),this);this['setActiveAnnotation'](null);const _0x2c56a0=this['context'][_0x5b15('0x23')]['get'](_0xec9041);_0x2c56a0[_0x5b15('0x2d')](this[_0x5b15('0x16')]),this[_0x5b15('0x2')](_0x2c56a0),this[_0x5b15('0x2')](this['annotations']),this['context']instanceof _0x27e3bd&&this[_0x5b15('0x2')](this[_0x5b15('0x2b')][_0x5b15('0x22')]);for(const _0x55da27 of Array[_0x5b15('0x1a')](this[_0x5b15('0x30')]))this[_0x5b15('0xe')](_0x55da27);window[_0x5b15('0x33')]('resize',this[_0x5b15('0x26')]),this[_0x5b15('0x26')][_0x5b15('0x28')](),this['activeAnnotation']=null,this[_0x5b15('0xa')]=!0x1,this[_0x5b15('0x16')]=null;}[_0x5b15('0x15')](){this[_0x5b15('0xa')]&&this[_0x5b15('0x19')]();}[_0x5b15('0x21')](_0x31ad61){const _0x32602d=_0x31ad61['plugins'][_0x5b15('0x1d')](_0x2f7354);if(!_0x32602d)return;const _0x485c61=()=>{const _0x54796f=_0x32602d[_0x5b15('0x2e')]({'annotations':this[_0x5b15('0x16')],'activeAnnotation':this[_0x5b15('0x3')]});this[_0x5b15('0x13')](_0x54796f[0x0]||null);};this[_0x5b15('0x12')](_0x32602d,_0x5b15('0x34'),_0x485c61),this[_0x5b15('0x12')](_0x32602d,_0x5b15('0xd'),(_0x2a16db,{isAnnotationTracked:_0x5edc55})=>{this[_0x5b15('0x3')]&&_0x5edc55(this['activeAnnotation'])&&this[_0x5b15('0x13')](null);}),this[_0x5b15('0x12')](_0x32602d,_0x5b15('0x20'),()=>{this[_0x5b15('0x26')]();}),this['listenTo'](this['annotations'],_0x5b15('0xd'),_0x5534f6=>{_0x32602d[_0x5b15('0xc')]()&&(_0x485c61(),_0x5534f6[_0x5b15('0x2f')]());},{'priority':_0x5b15('0x10')}),this[_0x5b15('0x30')][_0x5b15('0x4')](_0x32602d);}[_0x5b15('0xe')](_0x2b376b){this[_0x5b15('0x2')](_0x2b376b),this[_0x5b15('0x30')][_0x5b15('0x7')](_0x2b376b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3cc1=['backward','addMarker','isObject','substr','start','$textProxy','refresh','execute','isEnabled','model','_hasContent','tableCell','_itemIsContent','getItems','createRange','change','getLastMatchingPosition','editor','document','selection','item'];(function(_0x1307e4,_0x3cc1a0){const _0x42f03a=function(_0x213ec6){while(--_0x213ec6){_0x1307e4['push'](_0x1307e4['shift']());}};_0x42f03a(++_0x3cc1a0);}(_0x3cc1,0xb3));const _0x42f0=function(_0x1307e4,_0x3cc1a0){_0x1307e4=_0x1307e4-0x0;let _0x42f03a=_0x3cc1[_0x1307e4];return _0x42f03a;};import{Command as _0x27a7ce}from'ckeditor5/src/core';import{uid as _0x29f08d}from'ckeditor5/src/utils';export default class q extends _0x27a7ce{[_0x42f0('0x10')](){const _0xc52143=this[_0x42f0('0x6')][_0x42f0('0x13')][_0x42f0('0x7')]['selection'];for(const _0xe6978 of _0xc52143['getRanges']())if(this['_hasContent'](_0xe6978))return void(this[_0x42f0('0x12')]=!0x0);this[_0x42f0('0x12')]=!0x1;}[_0x42f0('0x11')]({threadId:_0x577df6=_0x29f08d()}={}){const _0x82145=this[_0x42f0('0x6')][_0x42f0('0x13')],_0x23cba6=[];for(const _0x46a38b of _0x82145['document'][_0x42f0('0x8')]['getRanges']())this[_0x42f0('0x14')](_0x46a38b)&&_0x23cba6['push'](this['_trimToContent'](_0x46a38b));_0x82145[_0x42f0('0x4')](_0x51fcd3=>{for(const _0x3a0475 of _0x23cba6){const _0xb60ba2=_0x29f08d()[_0x42f0('0xd')](0x1,0x5),_0x34d573='comment:'+_0x577df6+':'+_0xb60ba2;_0x51fcd3[_0x42f0('0xb')](_0x34d573,{'range':_0x3a0475,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x42f0('0x14')](_0x403ca6){for(const _0xd2a0e9 of _0x403ca6[_0x42f0('0x2')]())if(this[_0x42f0('0x1')](_0xd2a0e9))return!0x0;return!0x1;}['_itemIsContent'](_0x2b393c){return _0x2b393c['is'](_0x42f0('0xf'))||this[_0x42f0('0x6')][_0x42f0('0x13')]['schema'][_0x42f0('0xc')](_0x2b393c)&&!_0x2b393c['is']('element',_0x42f0('0x0'));}['_trimToContent'](_0x28250f){const _0x50aefa=_0x9e0669=>!this[_0x42f0('0x1')](_0x9e0669[_0x42f0('0x9')]),_0x225e25=_0x28250f[_0x42f0('0xe')][_0x42f0('0x5')](_0x50aefa),_0x6c5340=_0x28250f['end'][_0x42f0('0x5')](_0x50aefa,{'direction':_0x42f0('0xa')});return this[_0x42f0('0x6')][_0x42f0('0x13')][_0x42f0('0x3')](_0x225e25,_0x6c5340);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e05=['findIndex','requires','archivedThreads','plugins','init','listenTo','focus','CommentsArchive','getCommentThread','_calculatePosition','isActive','collection','get','removeCommentThread','length','archivedAt','activate','highest','add','addCommentThread','has'];(function(_0x135bb1,_0x4e057a){const _0x1cd5e0=function(_0x4793a9){while(--_0x4793a9){_0x135bb1['push'](_0x135bb1['shift']());}};_0x1cd5e0(++_0x4e057a);}(_0x4e05,0xb5));const _0x1cd5=function(_0x135bb1,_0x4e057a){_0x135bb1=_0x135bb1-0x0;let _0x1cd5e0=_0x4e05[_0x135bb1];return _0x1cd5e0;};import{ContextPlugin as _0x3a46a4}from'ckeditor5/src/core';import{Collection as _0xa90065}from'ckeditor5/src/utils';import _0xd0de80 from'./commentsrepository';import _0x195326 from'../annotations/annotations';export default class p extends _0x3a46a4{static get['pluginName'](){return _0x1cd5('0xf');}static get[_0x1cd5('0x9')](){return[_0xd0de80,_0x195326];}constructor(_0x31b42e){super(_0x31b42e),this[_0x1cd5('0xa')]=new _0xa90065();}[_0x1cd5('0xc')](){const _0x37af01=this['context'],_0x339519=_0x37af01[_0x1cd5('0xb')]['get'](_0xd0de80),_0x8fca09=_0x37af01[_0x1cd5('0xb')][_0x1cd5('0x14')](_0x195326);this[_0x1cd5('0xd')](_0x339519,_0x1cd5('0x6'),(_0xc74750,{threadId:_0x3b53f3})=>{const _0xb9a1d2=_0x339519[_0x1cd5('0x10')](_0x3b53f3);_0xb9a1d2[_0x1cd5('0x2')]&&this['archivedThreads'][_0x1cd5('0x5')](_0xb9a1d2,this[_0x1cd5('0x11')](_0xb9a1d2[_0x1cd5('0x2')])),this['listenTo'](_0xb9a1d2,'change:archivedAt',(_0x28b987,_0x38992b,_0x484609)=>{_0x484609?this[_0x1cd5('0xa')][_0x1cd5('0x7')](_0xb9a1d2)||this[_0x1cd5('0xa')]['add'](_0xb9a1d2,this[_0x1cd5('0x11')](_0xb9a1d2['archivedAt'])):this[_0x1cd5('0xa')][_0x1cd5('0x7')](_0xb9a1d2)&&this[_0x1cd5('0xa')]['remove'](_0xb9a1d2);});}),this[_0x1cd5('0xd')](_0x339519,_0x1cd5('0x0'),(_0x5d5221,{threadId:_0x20d21a})=>{const _0x1bef63=_0x339519[_0x1cd5('0x10')](_0x20d21a);this['stopListening'](_0x1bef63),this['archivedThreads'][_0x1cd5('0x7')](_0x1bef63)&&this['archivedThreads']['remove'](_0x1bef63);},{'priority':_0x1cd5('0x4')}),this[_0x1cd5('0xd')](_0x8fca09[_0x1cd5('0x13')],_0x1cd5('0xe'),(_0x2e2a13,_0x570c6f)=>{_0x570c6f[_0x1cd5('0x12')]=!0x0,_0x8fca09[_0x1cd5('0x3')](_0x570c6f);});}['_calculatePosition'](_0x5baa61){const _0x3e726c=[...this['archivedThreads']][_0x1cd5('0x8')](_0x20cc0a=>_0x20cc0a[_0x1cd5('0x2')]<_0x5baa61);return _0x3e726c>-0x1?_0x3e726c:this['archivedThreads'][_0x1cd5('0x1')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5984=['focusableElements','classList','filter','splice','plugins','_pendingThreads','getByInnerView','channelId','ck-comments-archive-dropdown','get','focusTracker','remove','contains','panelView','stopListening','commentsArchiveView','extendTemplate','_createArchiveUIDropdown','add','view','archivedThreads','indexOf','_threadToController','config','buttonView','_visibleAnnotations','CommentsArchiveUI','archivedAt','collaboration.channelId','pluginName','requires','collection','annotationViews','editor','locale','mainView','length','listenTo','isVisible','_calculatePosition','ck-body','findIndex','commentsArchive','componentFactory','CommentsRepository','COMMENTS_ARCHIVE'];(function(_0x460593,_0x59848a){const _0x48336d=function(_0x1ed41b){while(--_0x1ed41b){_0x460593['push'](_0x460593['shift']());}};_0x48336d(++_0x59848a);}(_0x5984,0x18a));const _0x4833=function(_0x460593,_0x59848a){_0x460593=_0x460593-0x0;let _0x48336d=_0x5984[_0x460593];return _0x48336d;};import'../../theme/commentsarchive.css';import{Plugin as _0x34c9bd}from'ckeditor5/src/core';import{createDropdown as _0x7bf278,ViewCollection as _0xf8e234}from'ckeditor5/src/ui';import _0x5ae6ee from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x196b8b}from'../utils/common-translations';import _0x20980d from'./ui/view/commentsarchiveview';import _0x4d862e from'./commentsarchive';export default class a extends _0x34c9bd{static get[_0x4833('0x3')](){return _0x4833('0x0');}static get[_0x4833('0x4')](){return[_0x4d862e];}constructor(_0x42759e){super(_0x42759e),this[_0x4833('0x6')]=new _0xf8e234(),this['_pendingThreads']=[];}['init'](){this[_0x4833('0x7')]['ui'][_0x4833('0x11')][_0x4833('0x26')](_0x4833('0x10'),()=>this[_0x4833('0x25')]());const _0x3fb39c=this[_0x4833('0x7')][_0x4833('0x18')]['get'](_0x4d862e),_0x37b185=this[_0x4833('0x7')]['plugins']['get']('Annotations'),_0xf88500=this['editor'][_0x4833('0x18')]['get'](_0x4833('0x12'));this[_0x4833('0xb')](_0x3fb39c[_0x4833('0x28')],_0x4833('0x26'),(_0x34a753,_0x532fc1)=>{const _0x2dd294=this[_0x4833('0x7')][_0x4833('0x2b')][_0x4833('0x1d')](_0x4833('0x2'));if(!_0x2dd294||_0x532fc1['channelId']===_0x2dd294){const _0x34b56f=this[_0x4833('0xd')](_0x532fc1['archivedAt']),_0x913e8a=_0xf88500[_0x4833('0x2a')]['get'](_0x532fc1);if(!_0x913e8a)return void this[_0x4833('0x19')]['push']({'thread':_0x532fc1,'position':_0x34b56f});const _0x15fdff=_0x37b185['getByInnerView'](_0x913e8a[_0x4833('0x27')]);_0x15fdff[_0x4833('0xc')]&&_0x37b185[_0x4833('0x2d')][_0x4833('0x1f')](_0x15fdff),this['annotationViews'][_0x4833('0x26')](_0x15fdff[_0x4833('0x27')],_0x34b56f);}}),this[_0x4833('0xb')](_0x37b185[_0x4833('0x5')],_0x4833('0x26'),(_0x5a00f6,_0x439072)=>{const _0x1fc1af=this['_pendingThreads']['find'](({thread:_0x45af79})=>{const _0x7bcb0f=_0xf88500['_threadToController'][_0x4833('0x1d')](_0x45af79);return _0x7bcb0f&&_0x439072['innerView']===_0x7bcb0f[_0x4833('0x27')];});_0x1fc1af&&(this[_0x4833('0x6')][_0x4833('0x26')](_0x439072[_0x4833('0x27')],_0x1fc1af['position']),this[_0x4833('0x19')][_0x4833('0x17')](this[_0x4833('0x19')][_0x4833('0x29')](_0x1fc1af),0x1));}),this[_0x4833('0xb')](_0x3fb39c['archivedThreads'],_0x4833('0x1f'),(_0x3a8eba,_0xe1bdd5)=>{const _0x5c6ae9=this[_0x4833('0x7')][_0x4833('0x2b')][_0x4833('0x1d')]('collaboration.channelId');if(!_0x5c6ae9||_0xe1bdd5[_0x4833('0x1b')]===_0x5c6ae9){const _0x55673d=_0xf88500[_0x4833('0x2a')][_0x4833('0x1d')](_0xe1bdd5),_0x4efcc1=_0x37b185[_0x4833('0x1a')](_0x55673d[_0x4833('0x27')]);this[_0x4833('0x6')][_0x4833('0x1f')](_0x4efcc1[_0x4833('0x27')]),this[_0x4833('0x22')](_0x4efcc1[_0x4833('0x14')]);}});}['_handleAnnotationFocusableElements'](_0x5666b3,_0xa523a0){for(const _0x346db9 of _0xa523a0[_0x4833('0x14')])_0x346db9[_0x4833('0x15')]['contains'](_0x4833('0xe'))&&_0x5666b3['focusTracker'][_0x4833('0x26')](_0x346db9);this[_0x4833('0xb')](_0xa523a0[_0x4833('0x14')],'add',(_0x535a90,_0x544bfb)=>{_0x544bfb[_0x4833('0x15')][_0x4833('0x20')](_0x4833('0xe'))&&_0x5666b3[_0x4833('0x1e')][_0x4833('0x26')](_0x544bfb);}),this[_0x4833('0xb')](_0xa523a0[_0x4833('0x14')],_0x4833('0x1f'),(_0x3463f8,_0x5331a6)=>{_0x5331a6[_0x4833('0x15')][_0x4833('0x20')](_0x4833('0xe'))&&_0x5666b3[_0x4833('0x1e')][_0x4833('0x1f')](_0x5331a6);});}[_0x4833('0xd')](_0x2f691a){const _0x2fd291=this[_0x4833('0x7')][_0x4833('0x2b')][_0x4833('0x1d')](_0x4833('0x2')),_0x331dd8=[...this[_0x4833('0x7')][_0x4833('0x18')][_0x4833('0x1d')](_0x4d862e)['archivedThreads']][_0x4833('0x16')](_0x22397c=>_0x22397c[_0x4833('0x1b')]===_0x2fd291)[_0x4833('0xf')](_0x122575=>_0x122575[_0x4833('0x1')]<_0x2f691a);return _0x331dd8>-0x1?_0x331dd8-0x1:this['annotationViews'][_0x4833('0xa')];}[_0x4833('0x25')](){const _0x4a8cfe=this[_0x4833('0x7')],_0x2699fb=this[_0x4833('0x7')]['plugins'][_0x4833('0x1d')]('Annotations'),_0x5d26e4=_0x7bf278(_0x4a8cfe[_0x4833('0x8')]);_0x5d26e4[_0x4833('0x2c')]['set']({'icon':_0x5ae6ee,'label':_0x196b8b(_0x4a8cfe[_0x4833('0x8')],_0x4833('0x13')),'tooltip':!0x0}),_0x5d26e4[_0x4833('0x21')][_0x4833('0x24')]({'attributes':{'class':_0x4833('0x1c')}}),_0x5d26e4['on']('change:isOpen',(_0x1b98a3,_0x50b877,_0xb06c96)=>{this[_0x4833('0x23')]||(this[_0x4833('0x23')]=new _0x20980d(_0x4a8cfe[_0x4833('0x8')],this['annotationViews'])),_0xb06c96?_0x5d26e4['panelView']['children'][_0x4833('0x26')](this[_0x4833('0x23')]):_0x5d26e4[_0x4833('0x21')]['children']['remove'](this[_0x4833('0x23')]);});for(const _0x3d7683 of this[_0x4833('0x6')]){const _0x334ba9=_0x2699fb['getByInnerView'](_0x3d7683['mainView']);this['_handleAnnotationFocusableElements'](_0x5d26e4,_0x334ba9);}return _0x5d26e4[_0x4833('0xb')](this['annotationViews'],'add',(_0x2fc218,_0x38a45d)=>{const _0x5da498=_0x2699fb['getByInnerView'](_0x38a45d[_0x4833('0x9')]);this['_handleAnnotationFocusableElements'](_0x5d26e4,_0x5da498);}),_0x5d26e4[_0x4833('0xb')](this[_0x4833('0x6')],_0x4833('0x1f'),(_0x25b52e,_0x4c8b41)=>{const _0x2b6564=_0x2699fb[_0x4833('0x1a')](_0x4c8b41[_0x4833('0x9')]);for(const _0xf4796a of _0x2b6564[_0x4833('0x14')])_0xf4796a['classList']['contains']('ck-body')&&_0x5d26e4[_0x4833('0x1e')][_0x4833('0x1f')](_0xf4796a);}),_0x5d26e4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x134c=['hasDomSelection','view','hasMarkerForId','clear','differ','text','addMarker:','_handleMarkerAddAndRemove','getByInnerView','render','_hasTargetInContent','destroy','markerToHighlight','document','CommentsEditing','change:activeMarker','registerAnnotation','getAllMarkersForId','refreshVisibility','schema','getRange','_handleThreadMarker','change:isReadOnly','dataToMarker','setUnlinkedAt','activeMarker','createElement','getItems','getChangedMarkers','for','length','comment:','scrollToThreadMarker','listenTo','registerPostFixer','isThreadsLoadingPaused','hasCommentThread','resolveCommentThread','isAttached','ignoreResolvedComments','get','markers','model','start','substring','pluginName','focus','isCollapsed','root','change:isThreadsLoadingPaused','config','data','consume','unlinkedAt','context','getCommentThread','rootName','getWalker','editing','addComment','comment','add','elementToElement','size','from','delete','_getTextContext','enqueueChange','commands','_detachCommentThread','createPositionBefore','once','_threads','removeMarker:','removeMarker','set','editor','attachTo','isEqual','name','updateMarker','$textProxy','addCommentThread','switchReadOnly','item','push','markerName','_initializeMarkerConverters','collaboration.channelId','then','createRange','archivedAt','conversion','consumable','_getTargetForId','_reconvertMarkers','newRange','init','_attachMarkerToThread','plugins','isResolved','_attachResolvedThread','ck-comment-marker--active','managedUsingOperations','upcast','low','change','reconvertMarker','ck-comment-marker','requires','removeCommentThread','setContext'];(function(_0x3a173f,_0x134c5f){const _0x5f11cb=function(_0x4e1ee4){while(--_0x4e1ee4){_0x3a173f['push'](_0x3a173f['shift']());}};_0x5f11cb(++_0x134c5f);}(_0x134c,0x158));const _0x5f11=function(_0x3a173f,_0x134c5f){_0x3a173f=_0x3a173f-0x0;let _0x5f11cb=_0x134c[_0x3a173f];return _0x5f11cb;};import{Plugin as _0x28bfdf}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x55d1a8}from'ckeditor5/src/utils';import _0x43694d from'./commentsrepository';import _0x14696a from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x2cbaf9}from'ckeditor5-collaboration/src/collaboration-core';import _0x4a821a from'../annotations/editorannotations';import _0x4ec92d from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x1d389e from'./integrations/importword';import _0x3f8e08 from'../annotations/annotations';export default class r extends _0x28bfdf{static get[_0x5f11('0x65')](){return[_0x43694d,_0x4a821a,_0x4ec92d,_0x1d389e];}static get[_0x5f11('0x25')](){return _0x5f11('0x6');}constructor(_0x57093f){super(_0x57093f),this[_0x5f11('0x43')](_0x5f11('0x1b'),!0x0),_0x57093f[_0x5f11('0x2b')]['once']('ready',()=>this[_0x5f11('0x1b')]=!0x1),this[_0x5f11('0x43')]('activeMarker',null),this['on'](_0x5f11('0x7'),(_0x2ad7e8,_0x5813a6,_0x1b14c2,_0xb1e3dd)=>{const _0x4c631e=_0x1b14c2?tt(_0x1b14c2)['id']:null;if(_0x57093f[_0x5f11('0x22')]['change'](()=>{if(_0x4c631e){const _0x96ca79=this[_0x5f11('0x9')](_0x4c631e);for(const _0x5c8778 of _0x96ca79)_0x57093f[_0x5f11('0x32')][_0x5f11('0x63')](_0x5c8778);}if(_0xb1e3dd){const {id:_0x50d2e6}=tt(_0xb1e3dd),_0xde1790=this['getAllMarkersForId'](_0x50d2e6);for(const _0x49eeb4 of _0xde1790)_0x57093f['editing'][_0x5f11('0x63')](_0x49eeb4);}}),_0x4c631e){const _0x3927b8=_0x57093f[_0x5f11('0x5b')][_0x5f11('0x20')](_0x43694d)['getCommentThread'](_0x4c631e);_0x3927b8&&_0x3927b8['isResolved']&&this[_0x5f11('0x18')](_0x4c631e);}});}[_0x5f11('0x59')](){const _0x5b1b8f=this[_0x5f11('0x44')],_0x51e5a4=_0x5b1b8f['plugins']['get'](_0x43694d),_0x27dd26=_0x5b1b8f['config']['get']('collaboration.channelId');_0x5b1b8f[_0x5f11('0x3c')][_0x5f11('0x35')](_0x5f11('0x4a'),new _0x14696a(_0x5b1b8f)),this[_0x5f11('0x19')](_0x5b1b8f,_0x5f11('0xe'),(_0x2bdcc3,_0x4e46ca,_0x44b822)=>{_0x51e5a4[_0x5f11('0x4b')](_0x44b822,_0x5b1b8f[_0x5f11('0x2a')]['get']('collaboration.channelId'));}),this[_0x5f11('0x19')](_0x51e5a4,Z('addCommentThread',_0x27dd26),(_0x1271d3,{threadId:_0x51cd48})=>{const _0x50a9bf=this['editor']['plugins'][_0x5f11('0x20')](_0x43694d)['getCommentThread'](_0x51cd48);_0x50a9bf&&_0x50a9bf[_0x5f11('0x53')]&&this['_attachResolvedThread'](_0x51cd48);}),this[_0x5f11('0x19')](_0x51e5a4,Z(_0x5f11('0x66'),_0x27dd26),(_0x9186a5,{threadId:_0x5d672c})=>{_0x5b1b8f[_0x5f11('0x22')][_0x5f11('0x3b')]({'isUndoable':!0x1},_0x70e4f5=>{const _0x3560bf=this[_0x5f11('0x9')](_0x5d672c);for(const _0x2aa7a8 of _0x3560bf)_0x70e4f5[_0x5f11('0x42')](_0x2aa7a8);});}),this[_0x5f11('0x19')](_0x51e5a4,Z(_0x5f11('0x1d'),_0x27dd26),(_0x197d03,{threadId:_0x30e954})=>{(this[_0x5f11('0x5d')](_0x30e954),this[_0x5f11('0x57')](_0x30e954),this[_0x5f11('0x44')][_0x5f11('0x32')]['view'][_0x5f11('0x68')])&&(this[_0x5f11('0x44')]['plugins']['get'](_0x43694d)['getCommentThread'](_0x30e954)[_0x5f11('0x2d')]||this['editor']['editing']['view'][_0x5f11('0x26')]());},{'priority':_0x5f11('0x61')}),this[_0x5f11('0x19')](_0x51e5a4,Z('reopenCommentThread',_0x27dd26),(_0x57358c,{threadId:_0x53c2a5})=>{this[_0x5f11('0x57')](_0x53c2a5);},{'priority':_0x5f11('0x61')}),this[_0x5f11('0x19')](_0x51e5a4,Z(_0x5f11('0x33'),_0x27dd26),(_0x128d89,{threadId:_0x41dc87,isFromAdapter:_0x351920})=>{const _0x298779=this['getAllMarkersForId'](_0x41dc87);if(_0x351920||0x0==_0x298779[_0x5f11('0x16')]||!_0x51e5a4[_0x5f11('0x1c')](_0x41dc87))return;0x1===_0x51e5a4[_0x5f11('0x2f')](_0x41dc87)['length']&&_0x5b1b8f[_0x5f11('0x22')][_0x5f11('0x3b')]({'isUndoable':!0x1},_0x954294=>{for(const _0x2d46ca of _0x298779)_0x954294[_0x5f11('0x48')](_0x2d46ca,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x5f11('0x4f')](),this[_0x5f11('0x6f')]();}['destroy'](){const _0x5dc00b=this[_0x5f11('0x44')][_0x5f11('0x5b')]['get'](_0x43694d),_0x3f494e=this[_0x5f11('0x44')][_0x5f11('0x2a')]['get'](_0x5f11('0x50'));for(const _0x539d3 of _0x5dc00b['getCommentThreads']({'channelId':_0x3f494e}))_0x5dc00b[_0x5f11('0x3d')](_0x539d3['id']),_0x5dc00b[_0x5f11('0x40')][_0x5f11('0x39')](_0x539d3['id']);super[_0x5f11('0x3')]();}['hasMarkerForId'](_0x3e61c7){return this[_0x5f11('0x9')](_0x3e61c7)[_0x5f11('0x16')]>0x0;}['getAllMarkersForId'](_0x56f80e){const _0x55816c=[];for(const _0x3479f3 of this[_0x5f11('0x44')][_0x5f11('0x22')]['markers'])_0x3479f3[_0x5f11('0x47')]['startsWith'](_0x5f11('0x17')+_0x56f80e)&&_0x55816c[_0x5f11('0x4d')](_0x3479f3);return _0x55816c;}[_0x5f11('0x18')](_0x8221f8){const _0x1750f5=this[_0x5f11('0x56')](_0x8221f8);_0x1750f5&&setTimeout(()=>{this['activeMarker']&&tt(this[_0x5f11('0x11')])['id']===_0x8221f8&&_0x55d1a8({'target':_0x1750f5[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x3259b1){this[_0x5f11('0x44')][_0x5f11('0x22')][_0x5f11('0x62')](()=>{for(const _0x10b50c of this[_0x5f11('0x9')](_0x3259b1))this[_0x5f11('0x44')][_0x5f11('0x32')][_0x5f11('0x63')](_0x10b50c);});}['_attachResolvedThread'](_0x24a154){const _0x36edf2=this[_0x5f11('0x44')][_0x5f11('0x5b')]['get'](_0x43694d),_0xd8bdd2=this['editor'][_0x5f11('0x5b')][_0x5f11('0x20')](_0x4a821a),_0x35d650=_0x36edf2[_0x5f11('0x2f')](_0x24a154);if(!_0x35d650[_0x5f11('0x1e')]){const _0x5bfd5f=_0x35d650[_0x5f11('0x45')](()=>this[_0x5f11('0x56')](_0x35d650['id']));_0xd8bdd2[_0x5f11('0x8')](_0x5bfd5f),_0x35d650['_hasTargetInContent']=!0x1;}}[_0x5f11('0x4f')](){const _0xaec8dd=this[_0x5f11('0x44')];_0xaec8dd[_0x5f11('0x54')][_0x5f11('0x15')]('editingDowncast')[_0x5f11('0x4')]({'model':_0x5f11('0x34'),'view':(_0x41f452,_0xf99e7f)=>{const {id:_0x462ca5}=tt(_0x41f452[_0x5f11('0x4e')]),_0x5a148c=_0xaec8dd['plugins'][_0x5f11('0x20')](_0x43694d)['getCommentThread'](_0x462ca5),_0x29d579=this[_0x5f11('0x11')]&&tt(this['activeMarker'])['id']===_0x462ca5;if(_0x5a148c&&_0x5a148c['isResolved']&&!_0x29d579&&_0x41f452[_0x5f11('0x4c')])return _0xf99e7f[_0x5f11('0x55')][_0x5f11('0x2c')](_0x41f452[_0x5f11('0x4c')],_0x5f11('0x6e')+_0x41f452[_0x5f11('0x4e')]),_0xf99e7f['consumable'][_0x5f11('0x2c')](_0x41f452['item'],_0x5f11('0x41')+_0x41f452[_0x5f11('0x4e')]),{'classes':[]};const _0x6a381c=[_0x5f11('0x64')];return _0x29d579&&_0x6a381c[_0x5f11('0x4d')](_0x5f11('0x5e')),{'classes':_0x6a381c,'attributes':{'data-comment':_0x462ca5}};}}),_0xaec8dd[_0x5f11('0x54')][_0x5f11('0x15')]('dataDowncast')['markerToData']({'model':_0x5f11('0x34'),'view':(_0x1db674,{options:_0x411ffe})=>{const _0x2d25eb=_0xaec8dd[_0x5f11('0x5b')][_0x5f11('0x20')](_0x43694d),_0x536682=_0xaec8dd['model'][_0x5f11('0x21')]['get'](_0x1db674),{id:_0x1ab538,part:_0x51e102}=tt(_0x1db674);if(_0x536682&&!_0x536682['affectsData'])return null;if(_0x411ffe[_0x5f11('0x1f')]){const _0x5521e9=_0x2d25eb['getCommentThread'](_0x1ab538);if(_0x5521e9&&_0x5521e9[_0x5f11('0x5c')])return null;}return{'group':_0x5f11('0x34'),'name':_0x51e102?_0x1ab538+':'+_0x51e102:_0x1ab538};}}),_0xaec8dd[_0x5f11('0x54')][_0x5f11('0x15')](_0x5f11('0x60'))[_0x5f11('0x36')]({'view':{'name':_0x5f11('0x34'),'attributes':{'id':/^\w/}},'model':(_0xca4fa7,{writer:_0x9c5e78})=>_0x9c5e78[_0x5f11('0x12')]('$marker',{'data-name':_0x5f11('0x17')+_0xca4fa7['getAttribute']('id')})}),_0xaec8dd['conversion'][_0x5f11('0x15')](_0x5f11('0x60'))[_0x5f11('0xf')]({'view':_0x5f11('0x34')});}[_0x5f11('0x6f')](){const _0x4cf54c=this[_0x5f11('0x44')],_0x44db1d=_0x4cf54c[_0x5f11('0x5b')][_0x5f11('0x20')](_0x43694d),_0x83fb5d=new Set(),_0x5933e5=new Set();_0x4cf54c['model'][_0x5f11('0x5')][_0x5f11('0x1a')](_0x1d065f=>{let _0x3878a8=!0x1;for(const {name:_0x2dabc5,data:_0x25817c}of _0x4cf54c[_0x5f11('0x22')][_0x5f11('0x5')][_0x5f11('0x6c')][_0x5f11('0x14')]()){const {group:_0xfdcf4e,id:_0x347663}=tt(_0x2dabc5);let _0x355525=_0x25817c[_0x5f11('0x58')];if(_0x5f11('0x34')!==_0xfdcf4e||!_0x355525)continue;const _0x265c63='$graveyard'===_0x355525[_0x5f11('0x28')][_0x5f11('0x30')];_0x265c63||(_0x355525=ot(_0x355525,_0x4cf54c[_0x5f11('0x22')]),!_0x355525||_0x355525[_0x5f11('0x27')]||!_0x25817c['newRange']||_0x355525[_0x5f11('0x46')](_0x25817c[_0x5f11('0x58')]))?_0x4cf54c[_0x5f11('0x22')]['hasContent'](_0x355525)&&!_0x265c63?this[_0x5f11('0x1b')]?_0x83fb5d[_0x5f11('0x35')](_0x2dabc5):this[_0x5f11('0xd')](_0x2dabc5,_0x347663):(_0x5933e5[_0x5f11('0x35')](_0x2dabc5),_0x83fb5d[_0x5f11('0x39')](_0x2dabc5),_0x1d065f['removeMarker'](_0x2dabc5),_0x3878a8=!0x0):(_0x1d065f[_0x5f11('0x48')](_0x2dabc5,{'range':_0x355525}),_0x3878a8=!0x0);}return _0x3878a8;}),this['on'](_0x5f11('0x29'),(_0x31402c,_0x41a5ab,_0x17b2d2)=>{if(!_0x17b2d2&&_0x83fb5d[_0x5f11('0x37')])for(const _0x3dc88d of _0x83fb5d){const {id:_0x55b0f8}=tt(_0x3dc88d);_0x83fb5d[_0x5f11('0x39')](_0x3dc88d),_0x4cf54c[_0x5f11('0x22')][_0x5f11('0x21')][_0x5f11('0x20')](_0x3dc88d)&&this[_0x5f11('0xd')](_0x3dc88d,_0x55b0f8);}}),this[_0x5f11('0x19')](_0x4cf54c['model'][_0x5f11('0x5')],'change',(_0x338a88,_0x4cf852)=>{for(const {name:_0x25f7b9,data:{newRange:_0xef2ff7}}of _0x4cf54c[_0x5f11('0x22')][_0x5f11('0x5')]['differ'][_0x5f11('0x14')]()){const {group:_0x4204f0,id:_0x217e89}=tt(_0x25f7b9);if(_0x5f11('0x34')!==_0x4204f0)continue;const _0x683c92=_0x44db1d['getCommentThread'](_0x217e89),_0x4c9d63=this[_0x5f11('0x6a')](_0x217e89);_0x683c92&&(_0x683c92[_0x5f11('0x2')]||_0x4cf54c[_0x5f11('0x32')][_0x5f11('0x69')][_0x5f11('0x3f')](_0x5f11('0x1'),()=>{const _0x202e93=_0x4cf54c[_0x5f11('0x5b')]['get'](_0x3f8e08),_0x309112=_0x44db1d['_threadToController'][_0x5f11('0x20')](_0x683c92)['view'];_0x202e93['getByInnerView'](_0x309112)[_0x5f11('0xa')]();},{'priority':_0x5f11('0x61')}),_0x683c92[_0x5f11('0x2')]=_0x4c9d63||!!_0xef2ff7),_0xef2ff7||(_0x5933e5[_0x5f11('0x35')](_0x25f7b9),_0x83fb5d[_0x5f11('0x39')](_0x25f7b9));}if(_0x4cf852['isLocal'])for(const _0x22e6be of _0x5933e5){const {id:_0x2760df}=tt(_0x22e6be),_0x2ae45d=_0x44db1d[_0x5f11('0x2f')](_0x2760df),_0x195791=this['hasMarkerForId'](_0x2760df);_0x83fb5d[_0x5f11('0x39')](_0x22e6be),!_0x2ae45d||_0x195791||_0x2ae45d[_0x5f11('0x2d')]||_0x2ae45d[_0x5f11('0x10')](new Date());}_0x5933e5[_0x5f11('0x6b')]();});}[_0x5f11('0x56')](_0x401445){const _0x3c65f4=this[_0x5f11('0x44')],_0x758cf7=this[_0x5f11('0x9')](_0x401445);return _0x2cbaf9(_0x3c65f4['editing'],_0x758cf7);}['_getTextContext'](_0x25882a){const _0x12854d=this['getAllMarkersForId'](_0x25882a);let _0x56f638='',_0x4e0055=!0x1;for(const _0x1d4718 of _0x12854d){const _0x559523=_0x1d4718[_0x5f11('0xc')]();for(const _0xf39f99 of Array[_0x5f11('0x38')](_0x559523[_0x5f11('0x13')]()))_0xf39f99['is'](_0x5f11('0x49'))?(_0x56f638&&_0x4e0055&&(_0x56f638+='\x20',_0x4e0055=!0x1),_0x56f638+=_0xf39f99['data']):_0x4e0055=!0x0;_0x4e0055=!0x0;}return _0x56f638[_0x5f11('0x24')](0x0,0x96);}['_attachMarkerToThread'](_0x2d5629,_0x2daf40){const _0x2336c5=this[_0x5f11('0x44')],_0x2c9a8c=_0x2336c5['plugins'][_0x5f11('0x20')](_0x43694d);let _0x2c78bf=_0x2c9a8c['getCommentThread'](_0x2daf40);const _0x2d3174=_0x2336c5['config'][_0x5f11('0x20')]('collaboration.channelId'),_0x44fd14=_0x2336c5[_0x5f11('0x5b')][_0x5f11('0x20')](_0x4a821a);if(_0x2c78bf&&(_0x2c78bf[_0x5f11('0x2d')]&&_0x2c78bf[_0x5f11('0x10')](null),_0x2c78bf[_0x5f11('0x1e')]))return _0x2c78bf;return!this['getAllMarkersForId'](_0x2daf40)[0x0][_0x5f11('0x5f')]?_0x2336c5['editing'][_0x5f11('0x69')][_0x5f11('0x3f')](_0x5f11('0x1'),()=>{if(_0x2c9a8c['getCommentThread'](_0x2daf40))return;const _0x2a95af=_0x2336c5['plugins'][_0x5f11('0x20')](_0x3f8e08);_0x2c78bf=_0x2c9a8c['openNewCommentThread']({'channelId':_0x2d3174,'threadId':_0x2daf40,'target':()=>this['_getTargetForId'](_0x2daf40),'context':{'type':_0x5f11('0x6d'),'value':this[_0x5f11('0x3a')](_0x2daf40)}});const _0x511905=_0x2c9a8c['_threadToController']['get'](_0x2c78bf)['view'],_0xe2de17=_0x2a95af[_0x5f11('0x0')](_0x511905);_0xe2de17&&_0x44fd14[_0x5f11('0x8')](_0xe2de17);},{'priority':_0x5f11('0x61')}):_0x2c9a8c['fetchCommentThread']({'channelId':_0x2d3174,'threadId':_0x2daf40})[_0x5f11('0x51')](_0x37f33b=>{if('destroyed'!==_0x2336c5['state']){if(_0x2c78bf=_0x37f33b,_0x2c78bf&&!_0x2c78bf[_0x5f11('0x1e')]){const _0x7be716=_0x2c78bf[_0x5f11('0x45')](()=>this[_0x5f11('0x56')](_0x2daf40));_0x44fd14['registerAnnotation'](_0x7be716),_0x2c78bf[_0x5f11('0x5c')]&&this[_0x5f11('0x57')](_0x2daf40);}else{if(!_0x2c78bf){const _0x20e3e5=this[_0x5f11('0x9')](_0x2daf40);_0x2336c5[_0x5f11('0x22')][_0x5f11('0x62')](_0x1dcc62=>{for(const _0x3da824 of _0x20e3e5)_0x1dcc62[_0x5f11('0x42')](_0x3da824);});}}}}),_0x2c78bf;}[_0x5f11('0xd')](_0x55e843,_0x307725){const _0x3a62f3=this[_0x5f11('0x5a')](_0x55e843,_0x307725);_0x3a62f3&&!_0x3a62f3[_0x5f11('0x2e')]&&_0x3a62f3[_0x5f11('0x67')]({'type':_0x5f11('0x6d'),'value':this['_getTextContext'](_0x307725)});}}function Z(_0x29e4d6,_0xc9a9fb){return _0xc9a9fb?_0x29e4d6+':'+_0xc9a9fb:_0x29e4d6;}function tt(_0x62b432){const _0x277cfa=_0x62b432['split'](':');return{'group':_0x277cfa[0x0],'id':_0x277cfa[0x1],'part':_0x277cfa[0x2]};}function ot(_0x300b21,_0x478b23){const _0x33969e=_0x478b23[_0x5f11('0xb')],_0x3f468e=_0x478b23[_0x5f11('0x52')](_0x300b21[_0x5f11('0x23')]);for(const _0x121596 of _0x300b21[_0x5f11('0x31')]()){const {type:_0x29bea5,item:_0x4a927c,nextPosition:_0x1480d5}=_0x121596;if(_0x5f11('0x6d')===_0x29bea5||_0x33969e['isObject'](_0x4a927c)){const _0x147dd0=_0x478b23[_0x5f11('0x3e')](_0x4a927c);_0x3f468e[_0x5f11('0x27')]&&(_0x3f468e[_0x5f11('0x23')]=_0x147dd0),_0x3f468e['end']=_0x1480d5;}}return _0x3f468e;}
|
|
23
|
+
const _0x1c07=['getCommentThread','hasDomSelection','managedUsingOperations','context','isResolved','openNewCommentThread','upcast','_handleMarkerAddAndRemove','render','conversion','comment','CommentsEditing','isThreadsLoadingPaused','clear','isAttached','delete','length','differ','newRange','unlinkedAt','$textProxy','hasCommentThread','getChangedMarkers','ready','push','document','fetchCommentThread','archivedAt','item','root','markerName','text','_handleThreadMarker','for','registerPostFixer','isObject','getAllMarkersForId','removeCommentThread','destroyed','split','enqueueChange','reopenCommentThread','size','add','markerToHighlight','getRange','isCollapsed','isEqual','setUnlinkedAt','data','get','attachTo','editingDowncast','editing','start','markers','view','consume','collaboration.channelId','once','_detachCommentThread','affectsData','hasMarkerForId','ck-comment-marker','config','set','dataDowncast','resolveCommentThread','setContext','scrollToThreadMarker','comment:','reconvertMarker','substring','_attachMarkerToThread','rootName','ignoreResolvedComments','_getTargetForId','schema','model','name','createPositionBefore','registerAnnotation','change','removeMarker','addComment','pluginName','getWalker','_getTextContext','_threads','state','createElement','updateMarker','removeMarker:','elementToElement','isLocal','low','activeMarker','getByInnerView','_initializeMarkerConverters','editor','plugins','$marker','_reconvertMarkers','_attachResolvedThread','switchReadOnly','then','listenTo','_hasTargetInContent','change:activeMarker','destroy','hasContent'];(function(_0x3de4fa,_0x1c070d){const _0x160689=function(_0x1d2905){while(--_0x1d2905){_0x3de4fa['push'](_0x3de4fa['shift']());}};_0x160689(++_0x1c070d);}(_0x1c07,0x168));const _0x1606=function(_0x3de4fa,_0x1c070d){_0x3de4fa=_0x3de4fa-0x0;let _0x160689=_0x1c07[_0x3de4fa];return _0x160689;};import{Plugin as _0x3f0197}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x178352}from'ckeditor5/src/utils';import _0xed3963 from'./commentsrepository';import _0x3fdfe8 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4a3e0f}from'ckeditor5-collaboration/src/collaboration-core';import _0x58d941 from'../annotations/editorannotations';import _0x59d789 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x23aa2c from'./integrations/importword';import _0x48b987 from'../annotations/annotations';export default class r extends _0x3f0197{static get['requires'](){return[_0xed3963,_0x58d941,_0x59d789,_0x23aa2c];}static get[_0x1606('0x3a')](){return _0x1606('0x5f');}constructor(_0xb99084){super(_0xb99084),this[_0x1606('0x26')](_0x1606('0x60'),!0x0),_0xb99084[_0x1606('0x16')][_0x1606('0x20')](_0x1606('0x6b'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0x1606('0x26')](_0x1606('0x45'),null),this['on'](_0x1606('0x51'),(_0x45b7a2,_0x28f5c6,_0xa4ac43,_0x160ffd)=>{const _0x4be28d=_0xa4ac43?tt(_0xa4ac43)['id']:null;if(_0xb99084[_0x1606('0x33')][_0x1606('0x37')](()=>{if(_0x4be28d){const _0x37d836=this['getAllMarkersForId'](_0x4be28d);for(const _0x56aa36 of _0x37d836)_0xb99084[_0x1606('0x1a')][_0x1606('0x2c')](_0x56aa36);}if(_0x160ffd){const {id:_0x2f9e9b}=tt(_0x160ffd),_0x3b8577=this[_0x1606('0x9')](_0x2f9e9b);for(const _0x13de4d of _0x3b8577)_0xb99084[_0x1606('0x1a')][_0x1606('0x2c')](_0x13de4d);}}),_0x4be28d){const _0x3a9b3b=_0xb99084[_0x1606('0x49')][_0x1606('0x17')](_0xed3963)['getCommentThread'](_0x4be28d);_0x3a9b3b&&_0x3a9b3b['isResolved']&&this['scrollToThreadMarker'](_0x4be28d);}});}['init'](){const _0x1e874c=this[_0x1606('0x48')],_0x5435e5=_0x1e874c[_0x1606('0x49')][_0x1606('0x17')](_0xed3963),_0x1b0279=_0x1e874c['config'][_0x1606('0x17')](_0x1606('0x1f'));_0x1e874c['commands'][_0x1606('0x10')]('addCommentThread',new _0x3fdfe8(_0x1e874c)),this[_0x1606('0x4f')](_0x1e874c,'change:isReadOnly',(_0x32a981,_0xd65817,_0x59554e)=>{_0x5435e5[_0x1606('0x4d')](_0x59554e,_0x1e874c[_0x1606('0x25')]['get'](_0x1606('0x1f')));}),this['listenTo'](_0x5435e5,Z('addCommentThread',_0x1b0279),(_0x3898b2,{threadId:_0x496b75})=>{const _0x34e9ac=this[_0x1606('0x48')]['plugins'][_0x1606('0x17')](_0xed3963)[_0x1606('0x54')](_0x496b75);_0x34e9ac&&_0x34e9ac[_0x1606('0x0')]&&this['_attachResolvedThread'](_0x496b75);}),this[_0x1606('0x4f')](_0x5435e5,Z(_0x1606('0xa'),_0x1b0279),(_0x1252f8,{threadId:_0x1f9688})=>{_0x1e874c[_0x1606('0x33')][_0x1606('0xd')]({'isUndoable':!0x1},_0x6386e7=>{const _0x40bba3=this['getAllMarkersForId'](_0x1f9688);for(const _0x186ed1 of _0x40bba3)_0x6386e7[_0x1606('0x38')](_0x186ed1);});}),this['listenTo'](_0x5435e5,Z(_0x1606('0x28'),_0x1b0279),(_0x2aa2c2,{threadId:_0x377886})=>{(this['_attachResolvedThread'](_0x377886),this['_reconvertMarkers'](_0x377886),this[_0x1606('0x48')][_0x1606('0x1a')][_0x1606('0x1d')][_0x1606('0x55')])&&(this['editor']['plugins'][_0x1606('0x17')](_0xed3963)[_0x1606('0x54')](_0x377886)[_0x1606('0x67')]||this[_0x1606('0x48')][_0x1606('0x1a')]['view']['focus']());},{'priority':_0x1606('0x44')}),this[_0x1606('0x4f')](_0x5435e5,Z(_0x1606('0xe'),_0x1b0279),(_0xb298ca,{threadId:_0x797aaa})=>{this[_0x1606('0x4b')](_0x797aaa);},{'priority':_0x1606('0x44')}),this[_0x1606('0x4f')](_0x5435e5,Z(_0x1606('0x39'),_0x1b0279),(_0x50fe91,{threadId:_0x262245,isFromAdapter:_0x5da1c0})=>{const _0x187fc1=this['getAllMarkersForId'](_0x262245);if(_0x5da1c0||0x0==_0x187fc1[_0x1606('0x64')]||!_0x5435e5[_0x1606('0x69')](_0x262245))return;0x1===_0x5435e5['getCommentThread'](_0x262245)[_0x1606('0x64')]&&_0x1e874c[_0x1606('0x33')]['enqueueChange']({'isUndoable':!0x1},_0x1d5e0a=>{for(const _0x56409e of _0x187fc1)_0x1d5e0a[_0x1606('0x40')](_0x56409e,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x1606('0x44')}),this[_0x1606('0x47')](),this[_0x1606('0x5b')]();}[_0x1606('0x52')](){const _0x172a9d=this[_0x1606('0x48')][_0x1606('0x49')][_0x1606('0x17')](_0xed3963),_0x3e65eb=this[_0x1606('0x48')][_0x1606('0x25')][_0x1606('0x17')](_0x1606('0x1f'));for(const _0x44530a of _0x172a9d['getCommentThreads']({'channelId':_0x3e65eb}))_0x172a9d[_0x1606('0x21')](_0x44530a['id']),_0x172a9d[_0x1606('0x3d')]['delete'](_0x44530a['id']);super[_0x1606('0x52')]();}['hasMarkerForId'](_0x233728){return this[_0x1606('0x9')](_0x233728)['length']>0x0;}[_0x1606('0x9')](_0x4f078e){const _0x3f036f=[];for(const _0x4de2c0 of this[_0x1606('0x48')]['model'][_0x1606('0x1c')])_0x4de2c0[_0x1606('0x34')]['startsWith'](_0x1606('0x2b')+_0x4f078e)&&_0x3f036f[_0x1606('0x6c')](_0x4de2c0);return _0x3f036f;}[_0x1606('0x2a')](_0x30e0fc){const _0x395747=this['_getTargetForId'](_0x30e0fc);_0x395747&&setTimeout(()=>{this[_0x1606('0x45')]&&tt(this[_0x1606('0x45')])['id']===_0x30e0fc&&_0x178352({'target':_0x395747[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xc41ef){this[_0x1606('0x48')]['model'][_0x1606('0x37')](()=>{for(const _0x5277e0 of this[_0x1606('0x9')](_0xc41ef))this['editor']['editing'][_0x1606('0x2c')](_0x5277e0);});}[_0x1606('0x4c')](_0x5b5c2b){const _0x4c52b9=this[_0x1606('0x48')]['plugins'][_0x1606('0x17')](_0xed3963),_0x1de642=this[_0x1606('0x48')][_0x1606('0x49')][_0x1606('0x17')](_0x58d941),_0x591806=_0x4c52b9[_0x1606('0x54')](_0x5b5c2b);if(!_0x591806['isAttached']){const _0x2ea106=_0x591806[_0x1606('0x18')](()=>this[_0x1606('0x31')](_0x591806['id']));_0x1de642['registerAnnotation'](_0x2ea106),_0x591806[_0x1606('0x50')]=!0x1;}}[_0x1606('0x47')](){const _0x29fc33=this['editor'];_0x29fc33['conversion'][_0x1606('0x6')](_0x1606('0x19'))[_0x1606('0x11')]({'model':_0x1606('0x5e'),'view':(_0x4c7abc,_0x263e95)=>{const {id:_0x5dc562}=tt(_0x4c7abc[_0x1606('0x3')]),_0x59328e=_0x29fc33['plugins']['get'](_0xed3963)[_0x1606('0x54')](_0x5dc562),_0x550f7f=this[_0x1606('0x45')]&&tt(this[_0x1606('0x45')])['id']===_0x5dc562;if(_0x59328e&&_0x59328e['isResolved']&&!_0x550f7f&&_0x4c7abc[_0x1606('0x1')])return _0x263e95['consumable'][_0x1606('0x1e')](_0x4c7abc['item'],'addMarker:'+_0x4c7abc['markerName']),_0x263e95['consumable'][_0x1606('0x1e')](_0x4c7abc['item'],_0x1606('0x41')+_0x4c7abc[_0x1606('0x3')]),{'classes':[]};const _0x3fe49=[_0x1606('0x24')];return _0x550f7f&&_0x3fe49['push']('ck-comment-marker--active'),{'classes':_0x3fe49,'attributes':{'data-comment':_0x5dc562}};}}),_0x29fc33[_0x1606('0x5d')][_0x1606('0x6')](_0x1606('0x27'))['markerToData']({'model':'comment','view':(_0x19d1ab,{options:_0x20f347})=>{const _0xd0be2=_0x29fc33['plugins'][_0x1606('0x17')](_0xed3963),_0x2a7872=_0x29fc33[_0x1606('0x33')][_0x1606('0x1c')]['get'](_0x19d1ab),{id:_0x360426,part:_0xdf76ad}=tt(_0x19d1ab);if(_0x2a7872&&!_0x2a7872[_0x1606('0x22')])return null;if(_0x20f347[_0x1606('0x30')]){const _0x298df2=_0xd0be2[_0x1606('0x54')](_0x360426);if(_0x298df2&&_0x298df2[_0x1606('0x58')])return null;}return{'group':_0x1606('0x5e'),'name':_0xdf76ad?_0x360426+':'+_0xdf76ad:_0x360426};}}),_0x29fc33['conversion'][_0x1606('0x6')](_0x1606('0x5a'))[_0x1606('0x42')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x276e28,{writer:_0x3e32d4})=>_0x3e32d4[_0x1606('0x3f')](_0x1606('0x4a'),{'data-name':'comment:'+_0x276e28['getAttribute']('id')})}),_0x29fc33[_0x1606('0x5d')][_0x1606('0x6')](_0x1606('0x5a'))['dataToMarker']({'view':_0x1606('0x5e')});}[_0x1606('0x5b')](){const _0x16ec71=this[_0x1606('0x48')],_0x274763=_0x16ec71[_0x1606('0x49')][_0x1606('0x17')](_0xed3963),_0x47322a=new Set(),_0x3ff730=new Set();_0x16ec71[_0x1606('0x33')][_0x1606('0x6d')][_0x1606('0x7')](_0x3af6a7=>{let _0x55bd96=!0x1;for(const {name:_0x361a7b,data:_0x24c19a}of _0x16ec71[_0x1606('0x33')][_0x1606('0x6d')][_0x1606('0x65')][_0x1606('0x6a')]()){const {group:_0x50e9eb,id:_0x456f46}=tt(_0x361a7b);let _0x2d6199=_0x24c19a[_0x1606('0x66')];if(_0x1606('0x5e')!==_0x50e9eb||!_0x2d6199)continue;const _0x2bc27d='$graveyard'===_0x2d6199[_0x1606('0x2')][_0x1606('0x2f')];_0x2bc27d||(_0x2d6199=ot(_0x2d6199,_0x16ec71[_0x1606('0x33')]),!_0x2d6199||_0x2d6199['isCollapsed']||!_0x24c19a[_0x1606('0x66')]||_0x2d6199[_0x1606('0x14')](_0x24c19a[_0x1606('0x66')]))?_0x16ec71[_0x1606('0x33')][_0x1606('0x53')](_0x2d6199)&&!_0x2bc27d?this['isThreadsLoadingPaused']?_0x47322a['add'](_0x361a7b):this[_0x1606('0x5')](_0x361a7b,_0x456f46):(_0x3ff730[_0x1606('0x10')](_0x361a7b),_0x47322a[_0x1606('0x63')](_0x361a7b),_0x3af6a7[_0x1606('0x38')](_0x361a7b),_0x55bd96=!0x0):(_0x3af6a7[_0x1606('0x40')](_0x361a7b,{'range':_0x2d6199}),_0x55bd96=!0x0);}return _0x55bd96;}),this['on']('change:isThreadsLoadingPaused',(_0x2e2351,_0x2df593,_0x2477be)=>{if(!_0x2477be&&_0x47322a[_0x1606('0xf')])for(const _0x2b41a2 of _0x47322a){const {id:_0x33bb44}=tt(_0x2b41a2);_0x47322a[_0x1606('0x63')](_0x2b41a2),_0x16ec71[_0x1606('0x33')][_0x1606('0x1c')][_0x1606('0x17')](_0x2b41a2)&&this[_0x1606('0x5')](_0x2b41a2,_0x33bb44);}}),this[_0x1606('0x4f')](_0x16ec71[_0x1606('0x33')]['document'],_0x1606('0x37'),(_0x583f32,_0x9a819a)=>{for(const {name:_0x141c89,data:{newRange:_0x896741}}of _0x16ec71[_0x1606('0x33')][_0x1606('0x6d')][_0x1606('0x65')][_0x1606('0x6a')]()){const {group:_0x412746,id:_0x43614b}=tt(_0x141c89);if('comment'!==_0x412746)continue;const _0x385210=_0x274763[_0x1606('0x54')](_0x43614b),_0x45b00d=this[_0x1606('0x23')](_0x43614b);_0x385210&&(_0x385210[_0x1606('0x50')]||_0x16ec71[_0x1606('0x1a')][_0x1606('0x1d')][_0x1606('0x20')]('render',()=>{const _0x2a81d9=_0x16ec71[_0x1606('0x49')][_0x1606('0x17')](_0x48b987),_0x29bee0=_0x274763['_threadToController']['get'](_0x385210)[_0x1606('0x1d')];_0x2a81d9['getByInnerView'](_0x29bee0)['refreshVisibility']();},{'priority':_0x1606('0x44')}),_0x385210[_0x1606('0x50')]=_0x45b00d||!!_0x896741),_0x896741||(_0x3ff730[_0x1606('0x10')](_0x141c89),_0x47322a[_0x1606('0x63')](_0x141c89));}if(_0x9a819a[_0x1606('0x43')])for(const _0x86b2db of _0x3ff730){const {id:_0x181786}=tt(_0x86b2db),_0x26b4a6=_0x274763[_0x1606('0x54')](_0x181786),_0x5d7af2=this[_0x1606('0x23')](_0x181786);_0x47322a[_0x1606('0x63')](_0x86b2db),!_0x26b4a6||_0x5d7af2||_0x26b4a6[_0x1606('0x67')]||_0x26b4a6[_0x1606('0x15')](new Date());}_0x3ff730[_0x1606('0x61')]();});}[_0x1606('0x31')](_0x592905){const _0x35f8d0=this[_0x1606('0x48')],_0x126701=this[_0x1606('0x9')](_0x592905);return _0x4a3e0f(_0x35f8d0[_0x1606('0x1a')],_0x126701);}[_0x1606('0x3c')](_0x1998ab){const _0x5a0862=this[_0x1606('0x9')](_0x1998ab);let _0x5d7645='',_0x2f17bc=!0x1;for(const _0x23daed of _0x5a0862){const _0x5916d8=_0x23daed[_0x1606('0x12')]();for(const _0x445bd0 of Array['from'](_0x5916d8['getItems']()))_0x445bd0['is'](_0x1606('0x68'))?(_0x5d7645&&_0x2f17bc&&(_0x5d7645+='\x20',_0x2f17bc=!0x1),_0x5d7645+=_0x445bd0[_0x1606('0x16')]):_0x2f17bc=!0x0;_0x2f17bc=!0x0;}return _0x5d7645[_0x1606('0x2d')](0x0,0x96);}[_0x1606('0x2e')](_0x3a3ac0,_0x4836ed){const _0x3092b8=this['editor'],_0x2a879e=_0x3092b8[_0x1606('0x49')][_0x1606('0x17')](_0xed3963);let _0x3d4d9a=_0x2a879e[_0x1606('0x54')](_0x4836ed);const _0x2da072=_0x3092b8['config'][_0x1606('0x17')](_0x1606('0x1f')),_0x168eee=_0x3092b8['plugins'][_0x1606('0x17')](_0x58d941);if(_0x3d4d9a&&(_0x3d4d9a[_0x1606('0x67')]&&_0x3d4d9a[_0x1606('0x15')](null),_0x3d4d9a['isAttached']))return _0x3d4d9a;return!this[_0x1606('0x9')](_0x4836ed)[0x0][_0x1606('0x56')]?_0x3092b8[_0x1606('0x1a')]['view']['once'](_0x1606('0x5c'),()=>{if(_0x2a879e['getCommentThread'](_0x4836ed))return;const _0x4be6d3=_0x3092b8[_0x1606('0x49')]['get'](_0x48b987);_0x3d4d9a=_0x2a879e[_0x1606('0x59')]({'channelId':_0x2da072,'threadId':_0x4836ed,'target':()=>this['_getTargetForId'](_0x4836ed),'context':{'type':_0x1606('0x4'),'value':this['_getTextContext'](_0x4836ed)}});const _0x20e791=_0x2a879e['_threadToController'][_0x1606('0x17')](_0x3d4d9a)['view'],_0x574251=_0x4be6d3[_0x1606('0x46')](_0x20e791);_0x574251&&_0x168eee[_0x1606('0x36')](_0x574251);},{'priority':_0x1606('0x44')}):_0x2a879e[_0x1606('0x6e')]({'channelId':_0x2da072,'threadId':_0x4836ed})[_0x1606('0x4e')](_0x4adc98=>{if(_0x1606('0xb')!==_0x3092b8[_0x1606('0x3e')]){if(_0x3d4d9a=_0x4adc98,_0x3d4d9a&&!_0x3d4d9a[_0x1606('0x62')]){const _0x50d46f=_0x3d4d9a[_0x1606('0x18')](()=>this['_getTargetForId'](_0x4836ed));_0x168eee[_0x1606('0x36')](_0x50d46f),_0x3d4d9a['isResolved']&&this[_0x1606('0x4b')](_0x4836ed);}else{if(!_0x3d4d9a){const _0x1fd4f4=this[_0x1606('0x9')](_0x4836ed);_0x3092b8[_0x1606('0x33')][_0x1606('0x37')](_0x5a22da=>{for(const _0xcf7c91 of _0x1fd4f4)_0x5a22da[_0x1606('0x38')](_0xcf7c91);});}}}}),_0x3d4d9a;}[_0x1606('0x5')](_0xceb081,_0x2d548f){const _0x4bc98f=this['_attachMarkerToThread'](_0xceb081,_0x2d548f);_0x4bc98f&&!_0x4bc98f[_0x1606('0x57')]&&_0x4bc98f[_0x1606('0x29')]({'type':_0x1606('0x4'),'value':this[_0x1606('0x3c')](_0x2d548f)});}}function Z(_0x5ed721,_0x385daf){return _0x385daf?_0x5ed721+':'+_0x385daf:_0x5ed721;}function tt(_0x176af4){const _0x27070a=_0x176af4[_0x1606('0xc')](':');return{'group':_0x27070a[0x0],'id':_0x27070a[0x1],'part':_0x27070a[0x2]};}function ot(_0x4ab27b,_0x610ac1){const _0x2d71c5=_0x610ac1[_0x1606('0x32')],_0x19035f=_0x610ac1['createRange'](_0x4ab27b['start']);for(const _0x3e6db6 of _0x4ab27b[_0x1606('0x3b')]()){const {type:_0x291f13,item:_0x511843,nextPosition:_0x25d3d6}=_0x3e6db6;if(_0x1606('0x4')===_0x291f13||_0x2d71c5[_0x1606('0x8')](_0x511843)){const _0x489a64=_0x610ac1[_0x1606('0x35')](_0x511843);_0x19035f[_0x1606('0x13')]&&(_0x19035f[_0x1606('0x1b')]=_0x489a64),_0x19035f['end']=_0x25d3d6;}}return _0x19035f;}
|