@ckeditor/ckeditor5-comments 38.0.0 → 38.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +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 _0x58c3=['element','targetRect','set','bindTemplate','focusTracker','_updateHeight','listenTo','div','isDirty','render','destroy','setTemplate','createCollection','height','fire','attach','ck-rounded-corners','_mutationObserver','keystrokes','isActive','type','clear','mainView','add','focus','detach','length','content'];(function(_0xc28432,_0x58c387){const _0x4fb4ea=function(_0xb6c18d){while(--_0xb6c18d){_0xc28432['push'](_0xc28432['shift']());}};_0x4fb4ea(++_0x58c387);}(_0x58c3,0x97));const _0x4fb4=function(_0xc28432,_0x58c387){_0xc28432=_0xc28432-0x0;let _0x4fb4ea=_0x58c3[_0xc28432];return _0x4fb4ea;};import{View as _0x311bbf}from'ckeditor5/src/ui';import{FocusTracker as _0x2e0f78,KeystrokeHandler as _0x56b2b7,uid as _0x5da8c7}from'ckeditor5/src/utils';import _0x4fcebf from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x311bbf{constructor(_0x49ae2e,_0x5d1656){super(_0x49ae2e),this['id']=_0x5da8c7(),this[_0x4fb4('0x15')]=new _0x2e0f78(),this[_0x4fb4('0x7')]=new _0x56b2b7(),this[_0x4fb4('0x7')][_0x4fb4('0x13')]('Esc',(_0x23b745,_0x57c49f)=>this[_0x4fb4('0x3')]('Esc',_0x57c49f)),this[_0x4fb4('0x13')](_0x4fb4('0x12'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x4fb4('0x13')]('height',0x0),this[_0x4fb4('0x13')](_0x4fb4('0x8'),!0x1),this[_0x4fb4('0x13')](_0x4fb4('0x19'),!0x1),this[_0x4fb4('0x13')](_0x4fb4('0xf'),0x0),this['set'](_0x4fb4('0x9'),''),this[_0x4fb4('0x6')]=_0x4fcebf(()=>this['_updateHeight']()),this[_0x4fb4('0x10')]=this[_0x4fb4('0x1')](),this[_0x4fb4('0x10')]['add'](_0x5d1656),this[_0x4fb4('0xb')]=_0x5d1656;const _0x412c0e=this[_0x4fb4('0x14')];this[_0x4fb4('0x0')]({'tag':_0x4fb4('0x18'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x4fb4('0x5'),_0x412c0e['if'](_0x4fb4('0x8'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x4fb4('0x10')]});}[_0x4fb4('0x1a')](){super['render'](),this[_0x4fb4('0x15')][_0x4fb4('0xc')](this[_0x4fb4('0x11')]),this[_0x4fb4('0x7')][_0x4fb4('0x17')](this[_0x4fb4('0x11')]),this[_0x4fb4('0x6')][_0x4fb4('0x4')](this[_0x4fb4('0x11')]);}[_0x4fb4('0x1b')](){this[_0x4fb4('0x10')][_0x4fb4('0xa')](),this['keystrokes']['destroy'](),this[_0x4fb4('0x15')]['destroy'](),this[_0x4fb4('0x6')][_0x4fb4('0xe')](),super['destroy']();}[_0x4fb4('0xd')](){this[_0x4fb4('0x11')][_0x4fb4('0xd')]();}[_0x4fb4('0x16')](){const _0x5914dd=this[_0x4fb4('0x11')]['clientHeight'];_0x5914dd&&(this[_0x4fb4('0x2')]=_0x5914dd);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f14=['clear','_targetTop','content','set','isAnimationDisabled','bind','height','destroy','element','attach','setTemplate','render','clientHeight','ck-sidebar-item','_mutationObserver','updateHeight','ck-sidebar-item--no-animation'];(function(_0x48b4cf,_0x5f14f6){const _0x26b0bb=function(_0x1aeb66){while(--_0x1aeb66){_0x48b4cf['push'](_0x48b4cf['shift']());}};_0x26b0bb(++_0x5f14f6);}(_0x5f14,0x195));const _0x26b0=function(_0x48b4cf,_0x5f14f6){_0x48b4cf=_0x48b4cf-0x0;let _0x26b0bb=_0x5f14[_0x48b4cf];return _0x26b0bb;};import{View as _0x146eca}from'ckeditor5/src/ui';import{toUnit as _0x5d1dbf}from'ckeditor5/src/utils';import _0x4f0ee7 from'../../utils/createmutationobserver';const At=_0x5d1dbf('px');export default class C extends _0x146eca{constructor(_0x10b6a9){super(_0x10b6a9),this[_0x26b0('0x6')]('top',0x0),this[_0x26b0('0x6')](_0x26b0('0x9'),0x0),this[_0x26b0('0x8')]('bottom')['to'](this,'top',this,_0x26b0('0x9'),(_0x2d745f,_0x39bdae)=>_0x2d745f+_0x39bdae),this['set']('isAnimationDisabled',!0x1),this[_0x26b0('0x0')]=_0x4f0ee7(()=>this[_0x26b0('0x1')]()),this[_0x26b0('0x4')]=null,this[_0x26b0('0x5')]=this['createCollection']();const _0x3f4d49=this['bindTemplate'];this[_0x26b0('0xd')]({'tag':'div','attributes':{'class':[_0x26b0('0x10'),_0x3f4d49['to'](_0x26b0('0x7'),_0x652d58=>_0x652d58?_0x26b0('0x2'):'')],'style':{'top':_0x3f4d49['to']('top',_0x546fe6=>At(_0x546fe6))}},'children':this['content']});}[_0x26b0('0xe')](){super['render'](),this[_0x26b0('0x0')][_0x26b0('0xc')](this[_0x26b0('0xb')]);}[_0x26b0('0x1')](){const _0x35f08b=this['element'][_0x26b0('0xf')];_0x35f08b&&(this[_0x26b0('0x9')]=_0x35f08b);}[_0x26b0('0xa')](){this['content'][_0x26b0('0x3')](),this[_0x26b0('0x0')]['detach'](),super['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8f5e=['list','ck-sidebar','createCollection','minHeight','number','set','div','bindTemplate','ck-reset'];(function(_0x3013bb,_0x8f5e21){const _0x10d64e=function(_0x5c611a){while(--_0x5c611a){_0x3013bb['push'](_0x3013bb['shift']());}};_0x10d64e(++_0x8f5e21);}(_0x8f5e,0x12e));const _0x10d6=function(_0x3013bb,_0x8f5e21){_0x3013bb=_0x3013bb-0x0;let _0x10d64e=_0x8f5e[_0x3013bb];return _0x10d64e;};import{View as _0xcabc94}from'ckeditor5/src/ui';import{toUnit as _0x3ee03f}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x3ee03f('px');export default class T extends _0xcabc94{constructor(_0x12ca0d){super(_0x12ca0d);const _0x10a17f=this[_0x10d6('0x2')];this[_0x10d6('0x0')]('minHeight',0x0),this['set']('class',''),this['list']=this[_0x10d6('0x6')](),this['setTemplate']({'tag':_0x10d6('0x1'),'attributes':{'class':['ck',_0x10d6('0x5'),_0x10d6('0x3'),_0x10a17f['to']('class')],'style':{'minHeight':_0x10a17f['to'](_0x10d6('0x7'),_0xfc58be=>_0x10d6('0x8')==typeof _0xfc58be?At(_0xfc58be+0xa):null)}},'children':this[_0x10d6('0x4')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f31=['removeEventListener','add','off','_activeAnnotation','_integrateWithEditorAnnotations','pluginName','refreshPositioning','get','set','activeAnnotation','resize','WideSidebar','focus','stopListening','change:container','container','EditorAnnotations','setActiveAnnotation','_refreshPositioningDebounced','plugins','switchTo','annotations','hasDomSelection','ready','wideSidebar','_editorAnnotations','widesidebar-detach-not-attached','context','has','high','destroy','stop','uiUpdate','addAnnotation','register','rearrange','blur','getOrderedSelectedAnnotations','isAttached','attach','detach','updateTargetRect','listenTo','_destroyEditorAnnotationsIntegration','ck-sidebar--wide','from','_detachFromContainer','editors','requires','refresh'];(function(_0x3d6a53,_0x1f31c0){const _0x229545=function(_0x297768){while(--_0x297768){_0x3d6a53['push'](_0x3d6a53['shift']());}};_0x229545(++_0x1f31c0);}(_0x1f31,0x166));const _0x2295=function(_0x3d6a53,_0x1f31c0){_0x3d6a53=_0x3d6a53-0x0;let _0x229545=_0x1f31[_0x3d6a53];return _0x229545;};import{ContextPlugin as _0x86cc,Context as _0x86c9ad}from'ckeditor5/src/core';import _0x3e6664 from'./annotationsuis';import _0xa91dc9 from'./sidebar';import{CKEditorError as _0x162069,Collection as _0x4b0703}from'ckeditor5/src/utils';import{debounce as _0x5e1c10}from'lodash-es';import _0x3b3c5d from'./editorannotations';export default class i extends _0x86cc{static get[_0x2295('0x28')](){return[_0xa91dc9,_0x3e6664];}static get[_0x2295('0x2f')](){return _0x2295('0x3');}constructor(_0x567623){super(_0x567623),this[_0x2295('0x1e')]=!0x1,this[_0x2295('0x0')]('activeAnnotation',null),this['annotations']=null,this[_0x2295('0x11')]=new _0x4b0703(),this[_0x2295('0xa')]=_0x5e1c10(()=>{this['annotations'][_0x2295('0x30')]();},0xfa,{'leading':!0x1});}['init'](){const _0x49816f=this[_0x2295('0x13')][_0x2295('0xb')][_0x2295('0x31')](_0x3e6664),_0x220a13=this[_0x2295('0x13')]['plugins'][_0x2295('0x31')](_0xa91dc9);_0x49816f[_0x2295('0x1a')](_0x2295('0x10'),this),_0x220a13[_0x2295('0x7')]&&_0x49816f[_0x2295('0xc')](_0x2295('0x10'));}[_0x2295('0x9')](_0x32d96d){if(_0x32d96d===this[_0x2295('0x1')])return;const _0x567ebd=this['context']['plugins'][_0x2295('0x31')](_0xa91dc9);_0x567ebd[_0x2295('0x2d')]=_0x32d96d;const _0x19b6f3=this[_0x2295('0x1')];this[_0x2295('0x1')]=_0x32d96d,_0x567ebd['refresh']({'blurredAnnotation':_0x19b6f3,'activatedAnnotation':this[_0x2295('0x1')]});}[_0x2295('0x1f')](_0x20f45c){this['annotations']=_0x20f45c;const _0x4f0712=this['context'][_0x2295('0xb')]['get'](_0xa91dc9);if(_0x4f0712['_annotations']=_0x20f45c,this[_0x2295('0x1e')])throw new _0x162069('widesidebar-attach-already-attached',this);this[_0x2295('0x1e')]=!0x0,this[_0x2295('0x22')](_0x4f0712,'set:container',()=>{this[_0x2295('0x20')](),this[_0x2295('0x22')](_0x4f0712,_0x2295('0x6'),_0x3b4ec7=>{_0x3b4ec7[_0x2295('0x2c')](),this[_0x2295('0x1f')](_0x20f45c);});}),_0x4f0712['_attachToContainer']({'viewClass':_0x2295('0x24')});const _0x43167e=_0x531bf2=>{_0x531bf2[_0x2295('0x21')](),_0x4f0712[_0x2295('0x19')](_0x531bf2);};for(const _0x312662 of _0x20f45c)_0x43167e(_0x312662);this[_0x2295('0x22')](_0x20f45c,_0x2295('0x2b'),(_0x5cc704,_0x28e37f)=>{_0x43167e(_0x28e37f);}),this[_0x2295('0x22')](_0x20f45c,'remove',(_0x4a7912,_0x2a2004,_0x2a1768)=>{_0x4f0712[_0x2295('0x1b')]({'removedAnnotation':_0x2a2004,'previousAnnotation':_0x20f45c['get'](_0x2a1768-0x1),'nextAnnotation':_0x20f45c[_0x2295('0x31')](_0x2a1768+0x1)}),_0x2a2004===this['activeAnnotation']&&this[_0x2295('0x9')](null);},{'priority':'high'}),this['listenTo'](_0x20f45c,_0x2295('0x4'),(_0x4e2ee6,_0x11a558)=>{this[_0x2295('0x9')](_0x11a558);}),this['listenTo'](_0x20f45c,'blur',()=>{this[_0x2295('0x9')](null);});const _0x4b46f2=this[_0x2295('0x13')]instanceof _0x86c9ad?this[_0x2295('0x13')]['editors']:new _0x4b0703([this[_0x2295('0x13')]]);for(const _0x20bd78 of _0x4b46f2)this[_0x2295('0x2e')](_0x20bd78);this[_0x2295('0x22')](_0x4b46f2,_0x2295('0x2b'),(_0xe26dd7,_0x393e97)=>{this[_0x2295('0x22')](_0x393e97,_0x2295('0xf'),()=>{this[_0x2295('0x2e')](_0x393e97);});}),this[_0x2295('0x22')](_0x4b46f2,'remove',(_0x10f25d,_0x2a3926)=>{_0x2a3926['plugins'][_0x2295('0x14')](_0x2295('0x8'))&&this['_destroyEditorAnnotationsIntegration'](_0x2a3926[_0x2295('0xb')]['get'](_0x2295('0x8')));}),window['addEventListener']('resize',this[_0x2295('0xa')]),this['annotations']['refreshPositioning']();}['detach'](){if(!this[_0x2295('0x1e')])throw new _0x162069(_0x2295('0x12'),this);this[_0x2295('0x9')](null);const _0x5e145d=this[_0x2295('0x13')][_0x2295('0xb')][_0x2295('0x31')](_0xa91dc9);_0x5e145d[_0x2295('0x26')](this['annotations']),this[_0x2295('0x5')](_0x5e145d),this[_0x2295('0x5')](this[_0x2295('0xd')]),this[_0x2295('0x13')]instanceof _0x86c9ad&&this['stopListening'](this['context'][_0x2295('0x27')]);for(const _0x124ce9 of Array[_0x2295('0x25')](this[_0x2295('0x11')]))this[_0x2295('0x23')](_0x124ce9);window[_0x2295('0x2a')](_0x2295('0x2'),this[_0x2295('0xa')]),this[_0x2295('0xa')]['cancel'](),this[_0x2295('0x1')]=null,this[_0x2295('0x1e')]=!0x1,this[_0x2295('0xd')]=null;}[_0x2295('0x16')](){this['isAttached']&&this[_0x2295('0x20')]();}['_integrateWithEditorAnnotations'](_0x4d2fc2){const _0xae8932=_0x4d2fc2['plugins'][_0x2295('0x31')](_0x3b3c5d);if(!_0xae8932)return;const _0x2cf1a6=()=>{const _0x491abd=_0xae8932[_0x2295('0x1d')]({'annotations':this[_0x2295('0xd')],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x491abd[0x0]||null);};this[_0x2295('0x22')](_0xae8932,_0x2295('0x29'),_0x2cf1a6),this['listenTo'](_0xae8932,_0x2295('0x1c'),(_0x120d87,{isAnnotationTracked:_0x235dc1})=>{this['activeAnnotation']&&_0x235dc1(this[_0x2295('0x1')])&&this[_0x2295('0x9')](null);}),this[_0x2295('0x22')](_0xae8932,_0x2295('0x18'),()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this[_0x2295('0xd')],_0x2295('0x1c'),_0x4dd17f=>{_0xae8932[_0x2295('0xe')]()&&(_0x2cf1a6(),_0x4dd17f[_0x2295('0x17')]());},{'priority':_0x2295('0x15')}),this[_0x2295('0x11')][_0x2295('0x2b')](_0xae8932);}[_0x2295('0x23')](_0x13543f){this[_0x2295('0x5')](_0x13543f),this['_editorAnnotations']['remove'](_0x13543f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2343=['editor','backward','addMarker','_trimToContent','element','document','getLastMatchingPosition','model','item','isEnabled','selection','end','schema','isObject','getRanges','change','_hasContent','tableCell','$textProxy','execute','createRange','refresh','push','_itemIsContent','comment:'];(function(_0x2d7bdb,_0x2343a2){const _0x30068d=function(_0x431087){while(--_0x431087){_0x2d7bdb['push'](_0x2d7bdb['shift']());}};_0x30068d(++_0x2343a2);}(_0x2343,0x123));const _0x3006=function(_0x2d7bdb,_0x2343a2){_0x2d7bdb=_0x2d7bdb-0x0;let _0x30068d=_0x2343[_0x2d7bdb];return _0x30068d;};import{Command as _0x1b4b5c}from'ckeditor5/src/core';import{uid as _0x41d9c0}from'ckeditor5/src/utils';export default class q extends _0x1b4b5c{[_0x3006('0x5')](){const _0x4dccf4=this[_0x3006('0x9')][_0x3006('0x10')][_0x3006('0xe')]['selection'];for(const _0xbed002 of _0x4dccf4[_0x3006('0x17')]())if(this[_0x3006('0x0')](_0xbed002))return void(this['isEnabled']=!0x0);this[_0x3006('0x12')]=!0x1;}[_0x3006('0x3')]({threadId:_0x8c60bb=_0x41d9c0()}={}){const _0x78220b=this[_0x3006('0x9')][_0x3006('0x10')],_0x27a7c4=[];for(const _0x22957e of _0x78220b[_0x3006('0xe')][_0x3006('0x13')][_0x3006('0x17')]())this[_0x3006('0x0')](_0x22957e)&&_0x27a7c4[_0x3006('0x6')](this[_0x3006('0xc')](_0x22957e));_0x78220b[_0x3006('0x18')](_0x6484c3=>{for(const _0x3af4b4 of _0x27a7c4){const _0x38a3bb=_0x41d9c0()['substr'](0x1,0x5),_0x2c568e=_0x3006('0x8')+_0x8c60bb+':'+_0x38a3bb;_0x6484c3[_0x3006('0xb')](_0x2c568e,{'range':_0x3af4b4,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x3006('0x0')](_0x282618){for(const _0x32ec47 of _0x282618['getItems']())if(this[_0x3006('0x7')](_0x32ec47))return!0x0;return!0x1;}[_0x3006('0x7')](_0x5bbce9){return _0x5bbce9['is'](_0x3006('0x2'))||this[_0x3006('0x9')]['model'][_0x3006('0x15')][_0x3006('0x16')](_0x5bbce9)&&!_0x5bbce9['is'](_0x3006('0xd'),_0x3006('0x1'));}[_0x3006('0xc')](_0x4ff6e9){const _0x4a799a=_0x50f52a=>!this[_0x3006('0x7')](_0x50f52a[_0x3006('0x11')]),_0x495c7e=_0x4ff6e9['start'][_0x3006('0xf')](_0x4a799a),_0x4e1f73=_0x4ff6e9[_0x3006('0x14')]['getLastMatchingPosition'](_0x4a799a,{'direction':_0x3006('0xa')});return this[_0x3006('0x9')]['model'][_0x3006('0x4')](_0x495c7e,_0x4e1f73);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48a1=['add','get','addCommentThread','isActive','has','resolveCommentThread','highest','listenTo','_calculatePosition','remove','pluginName','reopenCommentThread','focus','collection','plugins','context','resolvedThreads','getCommentThread','resolvedAt'];(function(_0x2477e6,_0x48a1dc){const _0x1fbe6e=function(_0x2da527){while(--_0x2da527){_0x2477e6['push'](_0x2477e6['shift']());}};_0x1fbe6e(++_0x48a1dc);}(_0x48a1,0xfd));const _0x1fbe=function(_0x2477e6,_0x48a1dc){_0x2477e6=_0x2477e6-0x0;let _0x1fbe6e=_0x48a1[_0x2477e6];return _0x1fbe6e;};import{ContextPlugin as _0x3fb0c6}from'ckeditor5/src/core';import{Collection as _0xa35cd7}from'ckeditor5/src/utils';import _0x1138c5 from'./commentsrepository';import _0x3ddf80 from'../annotations/annotations';export default class p extends _0x3fb0c6{static get[_0x1fbe('0x4')](){return'CommentsArchive';}static get['requires'](){return[_0x1138c5,_0x3ddf80];}constructor(_0x140f87){super(_0x140f87),this[_0x1fbe('0xa')]=new _0xa35cd7();}['init'](){const _0x18cd5b=this[_0x1fbe('0x9')],_0x28644a=_0x18cd5b[_0x1fbe('0x8')][_0x1fbe('0xe')](_0x1138c5),_0x1204fe=_0x18cd5b['plugins'][_0x1fbe('0xe')](_0x3ddf80);this[_0x1fbe('0x1')](_0x28644a,_0x1fbe('0xf'),(_0x2a025b,{threadId:_0x2578b6,resolvedAt:_0x486812,deletedAt:_0x914480})=>{if(_0x486812&&!_0x914480){const _0x2985a3=_0x28644a['getCommentThread'](_0x2578b6);this[_0x1fbe('0xa')]['add'](_0x2985a3,this[_0x1fbe('0x2')](_0x486812));}}),this[_0x1fbe('0x1')](_0x28644a,_0x1fbe('0x12'),(_0x1fa4b1,{threadId:_0x405ca8,resolvedAt:_0x28a33f})=>{const _0x4d4d54=_0x28644a[_0x1fbe('0xb')](_0x405ca8);this[_0x1fbe('0xa')][_0x1fbe('0xd')](_0x4d4d54,this['_calculatePosition'](_0x28a33f));},{'priority':_0x1fbe('0x0')}),this['listenTo'](_0x28644a,_0x1fbe('0x5'),(_0xb47fe7,{threadId:_0x3c1511})=>{const _0x3905d5=_0x28644a[_0x1fbe('0xb')](_0x3c1511);this[_0x1fbe('0xa')][_0x1fbe('0x11')](_0x3905d5)&&this[_0x1fbe('0xa')][_0x1fbe('0x3')](_0x3905d5);},{'priority':_0x1fbe('0x0')}),this[_0x1fbe('0x1')](_0x28644a,'removeCommentThread',(_0x17893c,{threadId:_0x350553})=>{const _0x5920ee=_0x28644a[_0x1fbe('0xb')](_0x350553);this[_0x1fbe('0xa')][_0x1fbe('0x11')](_0x5920ee)&&this[_0x1fbe('0xa')][_0x1fbe('0x3')](_0x5920ee);},{'priority':'highest'}),this[_0x1fbe('0x1')](_0x1204fe[_0x1fbe('0x7')],_0x1fbe('0x6'),(_0x157147,_0x539300)=>{_0x539300[_0x1fbe('0x10')]=!0x0,_0x1204fe['activate'](_0x539300);});}['_calculatePosition'](_0xaaf86){const _0x3b70b1=[...this[_0x1fbe('0xa')]]['findIndex'](_0x5026ee=>_0x5026ee[_0x1fbe('0xc')]<_0xaaf86);return _0x3b70b1>-0x1?_0x3b70b1:this[_0x1fbe('0xa')]['length'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x577f=['listenTo','mousedown','add','init','ck-comments-archive-dropdown','componentFactory','channelId','element','collaboration.channelId','plugins','innerView','commentsArchiveView','config','resolvedThreads','high','editor','_threadToController','_pendingThreads','commentsArchive','stop','locale','getByInnerView','querySelectorAll','_createArchiveUIDropdown','focusTracker','push','change:isFocused','forEach','pluginName','remove','isOpen','panelView','COMMENTS_ARCHIVE','collection','render','requires','annotationViews','CommentsRepository','stopListening','get','view','.ck.ck-body','buttonView','splice'];(function(_0x23c91c,_0x577f48){const _0xdced94=function(_0xda9e90){while(--_0xda9e90){_0x23c91c['push'](_0x23c91c['shift']());}};_0xdced94(++_0x577f48);}(_0x577f,0xfa));const _0xdced=function(_0x23c91c,_0x577f48){_0x23c91c=_0x23c91c-0x0;let _0xdced94=_0x577f[_0x23c91c];return _0xdced94;};import'../../theme/commentsarchive.css';import{Plugin as _0x2bcce6}from'ckeditor5/src/core';import{createDropdown as _0x5e37c1,clickOutsideHandler as _0x2958b6,ViewCollection as _0x58b15a}from'ckeditor5/src/ui';import _0x6e63e from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x5e3d14}from'../utils/common-translations';import _0x3b06a8 from'./ui/view/commentsarchiveview';import _0x1aba02 from'./commentsarchive';export default class a extends _0x2bcce6{static get[_0xdced('0x2a')](){return'CommentsArchiveUI';}static get[_0xdced('0x5')](){return[_0x1aba02];}constructor(_0x558a17){super(_0x558a17),this[_0xdced('0x6')]=new _0x58b15a(),this[_0xdced('0x1f')]=[];}[_0xdced('0x11')](){this['editor']['ui'][_0xdced('0x13')]['add'](_0xdced('0x20'),()=>this[_0xdced('0x25')]());const _0xdc0a71=this[_0xdced('0x1d')][_0xdced('0x17')][_0xdced('0x9')](_0x1aba02),_0x559c74=this[_0xdced('0x1d')][_0xdced('0x17')][_0xdced('0x9')]('Annotations'),_0x579d74=this['editor'][_0xdced('0x17')]['get'](_0xdced('0x7'));this[_0xdced('0xe')](_0xdc0a71['resolvedThreads'],_0xdced('0x10'),(_0x2aa837,_0x5bcbdf,_0x1d0029)=>{const _0x2f1603=this['editor'][_0xdced('0x1a')][_0xdced('0x9')](_0xdced('0x16'));if(!_0x2f1603||_0x5bcbdf['channelId']===_0x2f1603){const _0xed162d=_0x579d74['_threadToController'][_0xdced('0x9')](_0x5bcbdf);if(!_0xed162d)return void this[_0xdced('0x1f')][_0xdced('0x27')]({'thread':_0x5bcbdf,'position':_0x1d0029});const _0x483a55=_0x559c74['getByInnerView'](_0xed162d[_0xdced('0xa')]);_0x483a55['isVisible']?this[_0xdced('0xe')](_0x483a55,'change:isVisible',(_0x1f10cd,_0x3233d2,_0xb2b85d)=>{_0xb2b85d||(this[_0xdced('0x6')]['add'](_0x483a55[_0xdced('0xa')],_0x1d0029),this[_0xdced('0x8')](_0x483a55));}):this['annotationViews'][_0xdced('0x10')](_0x483a55[_0xdced('0xa')],_0x1d0029);}}),this['listenTo'](_0x559c74[_0xdced('0x3')],'add',(_0x28f760,_0x5ce52a)=>{this[_0xdced('0x1f')][_0xdced('0x29')](({thread:_0x41c7a9,position:_0xa0cc67},_0x2ef5fc)=>{const _0x29391c=_0x579d74[_0xdced('0x1e')][_0xdced('0x9')](_0x41c7a9);_0x29391c&&_0x5ce52a[_0xdced('0x18')]===_0x29391c['view']&&(this[_0xdced('0x6')][_0xdced('0x10')](_0x5ce52a['view'],_0xa0cc67),this[_0xdced('0x1f')][_0xdced('0xd')](_0x2ef5fc,0x1));});}),this[_0xdced('0xe')](_0xdc0a71[_0xdced('0x1b')],_0xdced('0x2b'),(_0x161210,_0x182d47)=>{const _0x195e78=this[_0xdced('0x1d')][_0xdced('0x1a')]['get']('collaboration.channelId');if(!_0x195e78||_0x182d47[_0xdced('0x14')]===_0x195e78){const _0x238dd0=_0x579d74[_0xdced('0x1e')][_0xdced('0x9')](_0x182d47),_0x40bf80=_0x559c74[_0xdced('0x23')](_0x238dd0[_0xdced('0xa')])['view'];this[_0xdced('0x6')]['remove'](_0x40bf80);}});}[_0xdced('0x25')](){const _0x2b7d36=this[_0xdced('0x1d')],_0x2ce495=_0x5e37c1(_0x2b7d36[_0xdced('0x22')]);return _0x2ce495['on'](_0xdced('0x4'),()=>{_0x2ce495['stopListening'](document,_0xdced('0xf')),_0x2958b6({'emitter':_0x2ce495,'activator':()=>_0x2ce495[_0xdced('0x0')],'callback':()=>{_0x2ce495[_0xdced('0x0')]=!0x1;},'contextElements':()=>[_0x2ce495[_0xdced('0x15')],...document[_0xdced('0x24')](_0xdced('0xb'))]});}),_0x2ce495[_0xdced('0x26')]['on'](_0xdced('0x28'),_0x3283e3=>{_0x3283e3[_0xdced('0x21')]();},{'priority':_0xdced('0x1c')}),_0x2ce495[_0xdced('0xc')]['set']({'icon':_0x6e63e,'label':_0x5e3d14(_0x2b7d36[_0xdced('0x22')],_0xdced('0x2')),'tooltip':!0x0}),_0x2ce495[_0xdced('0x1')]['extendTemplate']({'attributes':{'class':_0xdced('0x12')}}),_0x2ce495['on']('change:isOpen',(_0x3facea,_0x217a5e,_0x3bbdb6)=>{this['commentsArchiveView']||(this[_0xdced('0x19')]=new _0x3b06a8(_0x2b7d36[_0xdced('0x22')],this['annotationViews'])),_0x3bbdb6?_0x2ce495[_0xdced('0x1')]['children'][_0xdced('0x10')](this[_0xdced('0x19')]):_0x2ce495[_0xdced('0x1')]['children'][_0xdced('0x2b')](this[_0xdced('0x19')]);}),_0x2ce495;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5531=['isObject','low','filter','add','hasCommentThread','setContext','addCommentThread','CommentsEditing','editing','destroy','$textProxy','_getTextContext','change','change:isReadOnly','size','createElement','listenTo','split','markerToHighlight','commands','_threadToController','differ','_initializeMarkerConverters','reconvertMarker','isResolved','_handleThreadMarker','scrollToThreadMarker','reopen','_reconvertMarkers','registerAnnotation','fetchCommentThread','set','isThreadsLoadingPaused','getCommentThread','_attachedThreads','_getTargetForId','hasMarkerForId','removeCommentThread','from','_handleMarkerAddAndRemove','has','hasContent','removeMarker','render','schema','addComment','addMarker:','getAllMarkersForId','get','hasDomSelection','isLocal','for','activeMarker','delete','$marker','managedUsingOperations','consumable','text','_detachCommentThread','change:isThreadsLoadingPaused','editingDowncast','init','view','editor','ignoreResolvedComments','_hasTargetInContent','config','comment:','reopenCommentThread','comment','ck-comment-marker--active','switchReadOnly','map','$graveyard','document','includes','plugins','upcast','getCommentThreads','state','item','high','data','resolveCommentThread','markers','conversion','length','updateMarker','openNewCommentThread','getAttribute','start','elementToElement','requires','enqueueChange','consume','root','_threads','push','ck-comment-marker','isCollapsed','once','end','affectsData','newRange','attachTo','isEqual','getByInnerView','then','getChangedMarkers','_attachMarkerToThread','model','markerName'];(function(_0x12f6c4,_0x553170){const _0x1a1cad=function(_0xd8983d){while(--_0xd8983d){_0x12f6c4['push'](_0x12f6c4['shift']());}};_0x1a1cad(++_0x553170);}(_0x5531,0xb3));const _0x1a1c=function(_0x12f6c4,_0x553170){_0x12f6c4=_0x12f6c4-0x0;let _0x1a1cad=_0x5531[_0x12f6c4];return _0x1a1cad;};import{Plugin as _0x37588d}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2cbd95}from'ckeditor5/src/utils';import _0x1c47a4 from'./commentsrepository';import _0x29792c from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4d2d0e}from'ckeditor5-collaboration/src/collaboration-core';import _0x1c82fc from'../annotations/editorannotations';import _0xee51b from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x220435 from'./integrations/importword';import _0x3144be from'../annotations/annotations';export default class r extends _0x37588d{static get[_0x1a1c('0x19')](){return[_0x1c47a4,_0x1c82fc,_0xee51b,_0x220435];}static get['pluginName'](){return _0x1a1c('0x34');}constructor(_0x544bd9){super(_0x544bd9),this['set'](_0x1a1c('0x4d'),!0x0),_0x544bd9['data'][_0x1a1c('0x21')]('ready',()=>this[_0x1a1c('0x4d')]=!0x1),this['set'](_0x1a1c('0x61'),null),this['on']('change:activeMarker',(_0x28555b,_0x8a9bfb,_0x37ac89,_0x2f48b7)=>{const _0x3a09c8=_0x37ac89?rt(_0x37ac89)['id']:null;if(_0x544bd9[_0x1a1c('0x2b')][_0x1a1c('0x39')](()=>{if(_0x3a09c8){const _0x22edf0=this[_0x1a1c('0x5c')](_0x3a09c8);for(const _0x17bc1e of _0x22edf0)_0x544bd9[_0x1a1c('0x35')][_0x1a1c('0x44')](_0x17bc1e);}if(_0x2f48b7){const {id:_0x308212}=rt(_0x2f48b7),_0x4ce0f6=this[_0x1a1c('0x5c')](_0x308212);for(const _0x24a194 of _0x4ce0f6)_0x544bd9[_0x1a1c('0x35')][_0x1a1c('0x44')](_0x24a194);}}),_0x3a09c8){const _0x2956bb=_0x544bd9[_0x1a1c('0x9')]['get'](_0x1c47a4)['getCommentThread'](_0x3a09c8);_0x2956bb&&_0x2956bb[_0x1a1c('0x45')]&&this[_0x1a1c('0x47')](_0x3a09c8);}}),this[_0x1a1c('0x4f')]=new Map();}[_0x1a1c('0x6a')](){const _0x2c847d=this['editor'],_0x57058b=_0x2c847d[_0x1a1c('0x9')][_0x1a1c('0x5d')](_0x1c47a4),_0x30796b=_0x2c847d['config'][_0x1a1c('0x5d')]('collaboration.channelId');_0x2c847d[_0x1a1c('0x40')][_0x1a1c('0x30')](_0x1a1c('0x33'),new _0x29792c(_0x2c847d)),this['listenTo'](_0x2c847d,_0x1a1c('0x3a'),(_0x2cf21c,_0x169683,_0x2c17d2)=>{_0x57058b[_0x1a1c('0x4')](_0x2c17d2,_0x2c847d[_0x1a1c('0x6f')][_0x1a1c('0x5d')]('collaboration.channelId'));}),this[_0x1a1c('0x3d')](_0x57058b,et(_0x1a1c('0x33'),_0x30796b),(_0x4b6b44,{threadId:_0x4a93d2})=>{const _0xdc8b1=_0x2c847d[_0x1a1c('0x9')][_0x1a1c('0x5d')](_0x1c82fc),_0x5dab23=this[_0x1a1c('0x6c')][_0x1a1c('0x9')][_0x1a1c('0x5d')](_0x1c47a4)[_0x1a1c('0x4e')](_0x4a93d2);if(_0x5dab23&&_0x5dab23[_0x1a1c('0x45')]&&!this[_0x1a1c('0x4f')][_0x1a1c('0x55')](_0x4a93d2)){const _0x47688f=_0x5dab23[_0x1a1c('0x25')](()=>this[_0x1a1c('0x50')](_0x5dab23['id']));_0xdc8b1[_0x1a1c('0x4a')](_0x47688f),this[_0x1a1c('0x4f')][_0x1a1c('0x4c')](_0x4a93d2,[]),0x0===this[_0x1a1c('0x5c')](_0x4a93d2)[_0x1a1c('0x13')]&&(_0x5dab23[_0x1a1c('0x6e')]=!0x1);}}),this[_0x1a1c('0x3d')](_0x57058b,et(_0x1a1c('0x52'),_0x30796b),(_0x164944,{threadId:_0x8d2819})=>{_0x2c847d[_0x1a1c('0x2b')][_0x1a1c('0x1a')]({'isUndoable':!0x1},_0x126958=>{const _0x1d9cd9=this[_0x1a1c('0x5c')](_0x8d2819);this[_0x1a1c('0x4f')][_0x1a1c('0x62')](_0x8d2819);for(const _0xf9a98c of _0x1d9cd9)_0x126958[_0x1a1c('0x57')](_0xf9a98c);});},{'priority':_0x1a1c('0xe')}),this[_0x1a1c('0x3d')](_0x57058b,et(_0x1a1c('0x10'),_0x30796b),(_0x15758c,{threadId:_0x41c318})=>{this['_reconvertMarkers'](_0x41c318),this[_0x1a1c('0x6c')]['editing']['view'][_0x1a1c('0x5e')]&&this['editor']['editing'][_0x1a1c('0x6b')]['focus']();},{'priority':_0x1a1c('0x2e')}),this[_0x1a1c('0x3d')](_0x57058b,et(_0x1a1c('0x1'),_0x30796b),(_0x30f352,{threadId:_0x553dd6})=>{this[_0x1a1c('0x49')](_0x553dd6);},{'priority':_0x1a1c('0x2e')}),this[_0x1a1c('0x3d')](_0x57058b,et(_0x1a1c('0x5a'),_0x30796b),(_0x3faa40,{threadId:_0x7a315a,isFromAdapter:_0x49493e})=>{const _0x49d71f=this[_0x1a1c('0x5c')](_0x7a315a);if(_0x49493e||0x0==_0x49d71f['length']||!_0x57058b[_0x1a1c('0x31')](_0x7a315a))return;0x1===_0x57058b[_0x1a1c('0x4e')](_0x7a315a)[_0x1a1c('0x13')]&&_0x2c847d['model'][_0x1a1c('0x1a')]({'isUndoable':!0x1},_0x19633f=>{for(const _0x230dcc of _0x49d71f)_0x19633f[_0x1a1c('0x14')](_0x230dcc,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x1a1c('0x43')](),this['_handleMarkerAddAndRemove']();}['destroy'](){const _0x22e4a6=this[_0x1a1c('0x6c')]['plugins'][_0x1a1c('0x5d')](_0x1c47a4),_0x557b0c=this['editor'][_0x1a1c('0x6f')][_0x1a1c('0x5d')]('collaboration.channelId');for(const _0x34e401 of _0x22e4a6[_0x1a1c('0xb')]({'channelId':_0x557b0c}))_0x22e4a6[_0x1a1c('0x67')](_0x34e401['id']),_0x22e4a6[_0x1a1c('0x1d')][_0x1a1c('0x62')](_0x34e401['id']);super[_0x1a1c('0x36')]();}[_0x1a1c('0x51')](_0xe183a6){return this[_0x1a1c('0x5c')](_0xe183a6)[_0x1a1c('0x13')]>0x0;}[_0x1a1c('0x5c')](_0x1ed717){return(this['_attachedThreads'][_0x1a1c('0x5d')](_0x1ed717)||[])[_0x1a1c('0x5')](_0x1c17ae=>this[_0x1a1c('0x6c')][_0x1a1c('0x2b')][_0x1a1c('0x11')][_0x1a1c('0x5d')](_0x1c17ae))[_0x1a1c('0x2f')](_0x5a1f87=>_0x5a1f87);}[_0x1a1c('0x47')](_0x13f50a){const _0x4a531b=this[_0x1a1c('0x50')](_0x13f50a);_0x4a531b&&setTimeout(()=>{this[_0x1a1c('0x61')]&&rt(this['activeMarker'])['id']===_0x13f50a&&_0x2cbd95({'target':_0x4a531b[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x1a1c('0x49')](_0x52cccc){this[_0x1a1c('0x6c')][_0x1a1c('0x2b')][_0x1a1c('0x39')](()=>{for(const _0x196644 of this[_0x1a1c('0x5c')](_0x52cccc))this['editor'][_0x1a1c('0x35')]['reconvertMarker'](_0x196644);});}['_initializeMarkerConverters'](){const _0x2ae8ac=this['editor'];_0x2ae8ac[_0x1a1c('0x12')][_0x1a1c('0x60')](_0x1a1c('0x69'))[_0x1a1c('0x3f')]({'model':'comment','view':(_0x109af2,_0x330841)=>{const {id:_0x1d4246}=rt(_0x109af2[_0x1a1c('0x2c')]),_0x1ba129=_0x2ae8ac[_0x1a1c('0x9')][_0x1a1c('0x5d')](_0x1c47a4)[_0x1a1c('0x4e')](_0x1d4246),_0x4f132e=this[_0x1a1c('0x61')]&&rt(this[_0x1a1c('0x61')])['id']===_0x1d4246;if(_0x1ba129&&_0x1ba129[_0x1a1c('0x45')]&&!_0x4f132e&&_0x109af2[_0x1a1c('0xd')])return _0x330841[_0x1a1c('0x65')][_0x1a1c('0x1b')](_0x109af2[_0x1a1c('0xd')],_0x1a1c('0x5b')+_0x109af2[_0x1a1c('0x2c')]),_0x330841[_0x1a1c('0x65')][_0x1a1c('0x1b')](_0x109af2['item'],'removeMarker:'+_0x109af2[_0x1a1c('0x2c')]),{'classes':[]};const _0x1fbdeb=[_0x1a1c('0x1f')];return _0x4f132e&&_0x1fbdeb[_0x1a1c('0x1e')](_0x1a1c('0x3')),{'classes':_0x1fbdeb,'attributes':{'data-comment':_0x1d4246}};}}),_0x2ae8ac[_0x1a1c('0x12')]['for']('dataDowncast')['markerToData']({'model':_0x1a1c('0x2'),'view':(_0x1d7c5b,{options:_0x488f2c})=>{const _0x277c23=_0x2ae8ac['plugins'][_0x1a1c('0x5d')](_0x1c47a4),_0x3ffca6=_0x2ae8ac['model']['markers'][_0x1a1c('0x5d')](_0x1d7c5b),{id:_0x5a9a9b,part:_0x1c3198}=rt(_0x1d7c5b),_0x5d357e=_0x277c23[_0x1a1c('0x4e')](_0x5a9a9b);return _0x3ffca6&&!_0x3ffca6[_0x1a1c('0x23')]||_0x5d357e&&_0x5d357e[_0x1a1c('0x45')]&&_0x488f2c[_0x1a1c('0x6d')]?null:{'group':_0x1a1c('0x2'),'name':_0x1c3198?_0x5a9a9b+':'+_0x1c3198:_0x5a9a9b};}}),_0x2ae8ac[_0x1a1c('0x12')][_0x1a1c('0x60')](_0x1a1c('0xa'))[_0x1a1c('0x18')]({'view':{'name':_0x1a1c('0x2'),'attributes':{'id':/^\w/}},'model':(_0x295834,{writer:_0x4ae235})=>_0x4ae235[_0x1a1c('0x3c')](_0x1a1c('0x63'),{'data-name':_0x1a1c('0x0')+_0x295834[_0x1a1c('0x16')]('id')})}),_0x2ae8ac['conversion'][_0x1a1c('0x60')](_0x1a1c('0xa'))['dataToMarker']({'view':_0x1a1c('0x2')});}[_0x1a1c('0x54')](){const _0x35dcbb=this[_0x1a1c('0x6c')],_0x36188c=_0x35dcbb[_0x1a1c('0x9')]['get'](_0x1c47a4),_0x8eb907=new Set();_0x35dcbb[_0x1a1c('0x2b')][_0x1a1c('0x7')]['registerPostFixer'](_0x4baae7=>{let _0xae59e8=!0x1;for(const {name:_0x4aa2f2,data:_0x383dfa}of _0x35dcbb[_0x1a1c('0x2b')][_0x1a1c('0x7')][_0x1a1c('0x42')][_0x1a1c('0x29')]()){const {group:_0x10316c,id:_0x2ab3df}=rt(_0x4aa2f2);let _0x44d1b5=_0x383dfa[_0x1a1c('0x24')];if(_0x1a1c('0x2')!==_0x10316c||!_0x44d1b5)continue;const _0x21d083=_0x1a1c('0x6')===_0x44d1b5[_0x1a1c('0x1c')]['rootName'];_0x21d083||(_0x44d1b5=nt(_0x44d1b5,_0x35dcbb[_0x1a1c('0x2b')]),!_0x44d1b5||!_0x383dfa[_0x1a1c('0x24')]||_0x44d1b5[_0x1a1c('0x26')](_0x383dfa[_0x1a1c('0x24')]))?!_0x44d1b5||!_0x35dcbb[_0x1a1c('0x2b')][_0x1a1c('0x56')](_0x44d1b5)||this[_0x1a1c('0x4f')][_0x1a1c('0x55')](_0x2ab3df)&&_0x21d083?(_0x4baae7['removeMarker'](_0x4aa2f2),_0xae59e8=!0x0):_0x21d083||(this[_0x1a1c('0x4d')]?_0x8eb907[_0x1a1c('0x30')](_0x4aa2f2):this[_0x1a1c('0x46')](_0x4aa2f2,_0x2ab3df)):(_0x4baae7[_0x1a1c('0x14')](_0x4aa2f2,{'range':_0x44d1b5}),_0xae59e8=!0x0);}return _0xae59e8;}),this['on'](_0x1a1c('0x68'),(_0x515f27,_0x5cd9c0,_0x1d2d6f)=>{if(!_0x1d2d6f&&_0x8eb907[_0x1a1c('0x3b')])for(const _0x1bfb7a of _0x8eb907){const {id:_0xc7219b}=rt(_0x1bfb7a);_0x8eb907[_0x1a1c('0x62')](_0xc7219b),_0x35dcbb[_0x1a1c('0x2b')][_0x1a1c('0x11')]['get'](_0x1bfb7a)&&this[_0x1a1c('0x46')](_0x1bfb7a,_0xc7219b);}}),this[_0x1a1c('0x3d')](_0x35dcbb['model'][_0x1a1c('0x7')],_0x1a1c('0x39'),(_0x46d5db,_0x238da2)=>{for(const {name:_0x434f31,data:{newRange:_0x27cfd8}}of _0x35dcbb[_0x1a1c('0x2b')][_0x1a1c('0x7')][_0x1a1c('0x42')][_0x1a1c('0x29')]()){const {group:_0xed159d,id:_0x3def62}=rt(_0x434f31);if(_0x1a1c('0x2')!==_0xed159d)continue;const _0x5817d7=_0x36188c[_0x1a1c('0x4e')](_0x3def62),_0x29f34d=this['hasMarkerForId'](_0x3def62);_0x5817d7&&(_0x5817d7[_0x1a1c('0x6e')]||_0x35dcbb[_0x1a1c('0x35')][_0x1a1c('0x6b')][_0x1a1c('0x21')](_0x1a1c('0x58'),()=>{const _0x5ca464=_0x35dcbb['plugins']['get'](_0x3144be),_0x3cedd0=_0x36188c[_0x1a1c('0x41')][_0x1a1c('0x5d')](_0x5817d7)[_0x1a1c('0x6b')];_0x5ca464['getByInnerView'](_0x3cedd0)['refreshVisibility']();},{'priority':_0x1a1c('0x2e')}),_0x5817d7[_0x1a1c('0x6e')]=_0x29f34d||!!_0x27cfd8),!_0x27cfd8&&_0x238da2[_0x1a1c('0x5f')]&&(_0x8eb907['delete'](_0x3def62),_0x5817d7&&!_0x5817d7['isResolved']&&!_0x29f34d&&this[_0x1a1c('0x4f')][_0x1a1c('0x55')](_0x3def62)&&(this[_0x1a1c('0x4f')][_0x1a1c('0x62')](_0x3def62),_0x5817d7['resolve']()));}});}[_0x1a1c('0x50')](_0x35e995){const _0x4ec23b=this['editor'],_0x565ab9=this[_0x1a1c('0x5c')](_0x35e995);return _0x4d2d0e(_0x4ec23b[_0x1a1c('0x35')],_0x565ab9);}['_getTextContext'](_0xb5af54){const _0x2d904d=this[_0x1a1c('0x5c')](_0xb5af54);let _0x4b4021='',_0x51b996=!0x1;for(const _0x5a902f of _0x2d904d){const _0x59d0e5=_0x5a902f['getRange']();for(const _0x3864ab of Array[_0x1a1c('0x53')](_0x59d0e5['getItems']()))_0x3864ab['is'](_0x1a1c('0x37'))?(_0x4b4021&&_0x51b996&&(_0x4b4021+='\x20',_0x51b996=!0x1),_0x4b4021+=_0x3864ab[_0x1a1c('0xf')]):_0x51b996=!0x0;_0x51b996=!0x0;}return _0x4b4021['substring'](0x0,0x96);}[_0x1a1c('0x2a')](_0x1635ba,_0x256ddf){const _0x32d4e9=this[_0x1a1c('0x6c')],_0x4203fe=_0x32d4e9['plugins'][_0x1a1c('0x5d')](_0x1c47a4);let _0x1ac7a9=_0x4203fe[_0x1a1c('0x4e')](_0x256ddf);if(this[_0x1a1c('0x4f')][_0x1a1c('0x55')](_0x256ddf)){const _0x431898=this[_0x1a1c('0x4f')][_0x1a1c('0x5d')](_0x256ddf);return _0x431898[_0x1a1c('0x8')](_0x1635ba)||_0x431898['push'](_0x1635ba),_0x1ac7a9;}this[_0x1a1c('0x4f')]['set'](_0x256ddf,[_0x1635ba]);const _0x9e9e55=_0x32d4e9[_0x1a1c('0x6f')][_0x1a1c('0x5d')]('collaboration.channelId'),_0x315dc3=_0x32d4e9['plugins']['get'](_0x1c82fc);if(_0x1ac7a9&&_0x1ac7a9[_0x1a1c('0x45')])return _0x1ac7a9[_0x1a1c('0x48')](),_0x1ac7a9;return!this[_0x1a1c('0x5c')](_0x256ddf)[0x0][_0x1a1c('0x64')]?_0x32d4e9[_0x1a1c('0x35')][_0x1a1c('0x6b')][_0x1a1c('0x21')](_0x1a1c('0x58'),()=>{const _0x5434d2=_0x32d4e9[_0x1a1c('0x9')][_0x1a1c('0x5d')](_0x3144be);_0x1ac7a9=_0x4203fe[_0x1a1c('0x15')]({'channelId':_0x9e9e55,'threadId':_0x256ddf,'target':()=>this[_0x1a1c('0x50')](_0x256ddf),'context':{'type':'text','value':this[_0x1a1c('0x38')](_0x256ddf)}});const _0x2ebab8=_0x4203fe[_0x1a1c('0x41')][_0x1a1c('0x5d')](_0x1ac7a9)[_0x1a1c('0x6b')],_0x3e83d6=_0x5434d2[_0x1a1c('0x27')](_0x2ebab8);_0x3e83d6&&_0x315dc3[_0x1a1c('0x4a')](_0x3e83d6);},{'priority':'low'}):_0x4203fe[_0x1a1c('0x4b')]({'channelId':_0x9e9e55,'threadId':_0x256ddf})[_0x1a1c('0x28')](_0x53233c=>{if('destroyed'!==_0x32d4e9[_0x1a1c('0xc')]){if(_0x1ac7a9=_0x53233c,_0x1ac7a9){const _0x126c01=_0x1ac7a9[_0x1a1c('0x25')](()=>this[_0x1a1c('0x50')](_0x256ddf));_0x315dc3[_0x1a1c('0x4a')](_0x126c01),_0x1ac7a9[_0x1a1c('0x45')]&&this[_0x1a1c('0x49')](_0x256ddf);}else{const _0x5a7340=this[_0x1a1c('0x5c')](_0x256ddf);_0x32d4e9[_0x1a1c('0x2b')]['change'](_0x42dc7d=>{for(const _0x375288 of _0x5a7340)_0x42dc7d[_0x1a1c('0x57')](_0x375288);});}}}),_0x1ac7a9;}[_0x1a1c('0x46')](_0x40766e,_0x571adf){const _0x2c8e89=this[_0x1a1c('0x2a')](_0x40766e,_0x571adf);_0x2c8e89&&!_0x2c8e89['context']&&_0x2c8e89[_0x1a1c('0x32')]({'type':'text','value':this[_0x1a1c('0x38')](_0x571adf)});}}function et(_0x5368e1,_0x1960a1){return _0x1960a1?_0x5368e1+':'+_0x1960a1:_0x5368e1;}function rt(_0x2a44e5){const _0x3ce274=_0x2a44e5[_0x1a1c('0x3e')](':');return{'group':_0x3ce274[0x0],'id':_0x3ce274[0x1],'part':_0x3ce274[0x2]};}function nt(_0x714577,_0x230e37){const _0x4c9980=_0x230e37[_0x1a1c('0x59')],_0x3070ac=_0x230e37['createRange'](_0x714577[_0x1a1c('0x17')]);for(const _0x5bc6f4 of _0x714577['getWalker']()){const {type:_0x4630b3,item:_0x2e161b,nextPosition:_0x3ee39b}=_0x5bc6f4;if(_0x1a1c('0x66')===_0x4630b3||_0x4c9980[_0x1a1c('0x2d')](_0x2e161b)){const _0x4d9888=_0x230e37['createPositionBefore'](_0x2e161b);_0x3070ac[_0x1a1c('0x20')]&&(_0x3070ac[_0x1a1c('0x17')]=_0x4d9888),_0x3070ac[_0x1a1c('0x22')]=_0x3ee39b;}}return _0x3070ac[_0x1a1c('0x20')]?null:_0x3070ac;}
|
|
23
|
+
const _0x1b47=['markers','reopenCommentThread','isCollapsed','isEqual','end','high','markerToData','ck-comment-marker--active','_threads','set','push','addComment','get','upcast','_hasTargetInContent','refreshVisibility','comment:','getItems','plugins','consumable','_attachedThreads','root','setContext','_initializeMarkerConverters','registerAnnotation','includes','comment','has','scrollToThreadMarker','resolve','markerName','length','addCommentThread','newRange','delete','editor','text','$textProxy','getCommentThread','activeMarker','isResolved','editing','view','attachTo','once','collaboration.channelId','createRange','removeMarker','filter','change:isReadOnly','data','focus','then','_attachMarkerToThread','low','document','dataToMarker','schema','getAttribute','from','conversion','registerPostFixer','getCommentThreads','removeCommentThread','map','getChangedMarkers','differ','getAllMarkersForId','getWalker','ignoreResolvedComments','addMarker:','dataDowncast','getByInnerView','_threadToController','commands','add','hasMarkerForId','for','fetchCommentThread','model','$graveyard','_getTextContext','substring','reconvertMarker','createPositionBefore','CommentsEditing','consume','_handleThreadMarker','affectsData','config','ck-comment-marker','size','editingDowncast','start','elementToElement','destroy','enqueueChange','listenTo','hasDomSelection','createElement','split','change','ready','_handleMarkerAddAndRemove','getRange','resolveCommentThread','item','managedUsingOperations','render','isThreadsLoadingPaused','_getTargetForId','updateMarker','$marker'];(function(_0xdec847,_0x1b474a){const _0x4d0f3e=function(_0x53b8ca){while(--_0x53b8ca){_0xdec847['push'](_0xdec847['shift']());}};_0x4d0f3e(++_0x1b474a);}(_0x1b47,0x9e));const _0x4d0f=function(_0xdec847,_0x1b474a){_0xdec847=_0xdec847-0x0;let _0x4d0f3e=_0x1b47[_0xdec847];return _0x4d0f3e;};import{Plugin as _0x4497cf}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2f7256}from'ckeditor5/src/utils';import _0x54e255 from'./commentsrepository';import _0x522ff5 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x253c05}from'ckeditor5-collaboration/src/collaboration-core';import _0x1c74e4 from'../annotations/editorannotations';import _0x4fa397 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x5def8f from'./integrations/importword';import _0x39f743 from'../annotations/annotations';export default class r extends _0x4497cf{static get['requires'](){return[_0x54e255,_0x1c74e4,_0x4fa397,_0x5def8f];}static get['pluginName'](){return _0x4d0f('0x28');}constructor(_0x3b4047){super(_0x3b4047),this['set'](_0x4d0f('0x40'),!0x0),_0x3b4047[_0x4d0f('0x5')]['once'](_0x4d0f('0x39'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0x4d0f('0x6b'),null),this['on']('change:activeMarker',(_0x2d95f2,_0x196811,_0xb4823,_0xa65089)=>{const _0xa5af14=_0xb4823?ot(_0xb4823)['id']:null;if(_0x3b4047[_0x4d0f('0x22')][_0x4d0f('0x38')](()=>{if(_0xa5af14){const _0x54bbd3=this['getAllMarkersForId'](_0xa5af14);for(const _0x59c37b of _0x54bbd3)_0x3b4047[_0x4d0f('0x6d')][_0x4d0f('0x26')](_0x59c37b);}if(_0xa65089){const {id:_0x16edd4}=ot(_0xa65089),_0x55a47a=this[_0x4d0f('0x16')](_0x16edd4);for(const _0x567aed of _0x55a47a)_0x3b4047[_0x4d0f('0x6d')][_0x4d0f('0x26')](_0x567aed);}}),_0xa5af14){const _0xe8c19f=_0x3b4047[_0x4d0f('0x56')]['get'](_0x54e255)[_0x4d0f('0x6a')](_0xa5af14);_0xe8c19f&&_0xe8c19f['isResolved']&&this['scrollToThreadMarker'](_0xa5af14);}}),this['_attachedThreads']=new Map();}['init'](){const _0x11cb71=this['editor'],_0x4b81c3=_0x11cb71[_0x4d0f('0x56')]['get'](_0x54e255),_0x1772e6=_0x11cb71[_0x4d0f('0x2c')][_0x4d0f('0x50')](_0x4d0f('0x0'));_0x11cb71[_0x4d0f('0x1d')][_0x4d0f('0x1e')](_0x4d0f('0x64'),new _0x522ff5(_0x11cb71)),this[_0x4d0f('0x34')](_0x11cb71,_0x4d0f('0x4'),(_0x587a4b,_0x448975,_0x5e55d8)=>{_0x4b81c3['switchReadOnly'](_0x5e55d8,_0x11cb71['config'][_0x4d0f('0x50')](_0x4d0f('0x0')));}),this['listenTo'](_0x4b81c3,tt(_0x4d0f('0x64'),_0x1772e6),(_0x108ac3,{threadId:_0x23c8a9})=>{const _0xc8f2e8=_0x11cb71[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x1c74e4),_0x359402=this[_0x4d0f('0x67')][_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255)['getCommentThread'](_0x23c8a9);if(_0x359402&&_0x359402['isResolved']&&!this[_0x4d0f('0x58')][_0x4d0f('0x5f')](_0x23c8a9)){const _0x477c36=_0x359402[_0x4d0f('0x6f')](()=>this[_0x4d0f('0x41')](_0x359402['id']));_0xc8f2e8['registerAnnotation'](_0x477c36),this['_attachedThreads']['set'](_0x23c8a9,[]),0x0===this[_0x4d0f('0x16')](_0x23c8a9)[_0x4d0f('0x63')]&&(_0x359402[_0x4d0f('0x52')]=!0x1);}}),this[_0x4d0f('0x34')](_0x4b81c3,tt(_0x4d0f('0x12'),_0x1772e6),(_0x3d4f65,{threadId:_0x5c06e2})=>{_0x11cb71[_0x4d0f('0x22')]['enqueueChange']({'isUndoable':!0x1},_0x2b5c7c=>{const _0xc3827=this[_0x4d0f('0x16')](_0x5c06e2);this[_0x4d0f('0x58')]['delete'](_0x5c06e2);for(const _0x235029 of _0xc3827)_0x2b5c7c[_0x4d0f('0x2')](_0x235029);});},{'priority':_0x4d0f('0x49')}),this[_0x4d0f('0x34')](_0x4b81c3,tt(_0x4d0f('0x3c'),_0x1772e6),(_0x3ca3a9,{threadId:_0x1fe638})=>{this['_reconvertMarkers'](_0x1fe638),this[_0x4d0f('0x67')][_0x4d0f('0x6d')][_0x4d0f('0x6e')][_0x4d0f('0x35')]&&this[_0x4d0f('0x67')][_0x4d0f('0x6d')][_0x4d0f('0x6e')][_0x4d0f('0x6')]();},{'priority':_0x4d0f('0x9')}),this[_0x4d0f('0x34')](_0x4b81c3,tt(_0x4d0f('0x45'),_0x1772e6),(_0x316ebd,{threadId:_0x391091})=>{this['_reconvertMarkers'](_0x391091);},{'priority':_0x4d0f('0x9')}),this[_0x4d0f('0x34')](_0x4b81c3,tt(_0x4d0f('0x4f'),_0x1772e6),(_0x571ec1,{threadId:_0xbe6e7a,isFromAdapter:_0xf7a045})=>{const _0x4f858a=this[_0x4d0f('0x16')](_0xbe6e7a);if(_0xf7a045||0x0==_0x4f858a[_0x4d0f('0x63')]||!_0x4b81c3['hasCommentThread'](_0xbe6e7a))return;0x1===_0x4b81c3[_0x4d0f('0x6a')](_0xbe6e7a)[_0x4d0f('0x63')]&&_0x11cb71[_0x4d0f('0x22')][_0x4d0f('0x33')]({'isUndoable':!0x1},_0x407873=>{for(const _0x3a8885 of _0x4f858a)_0x407873[_0x4d0f('0x42')](_0x3a8885,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x4d0f('0x9')}),this[_0x4d0f('0x5b')](),this[_0x4d0f('0x3a')]();}['destroy'](){const _0x4eed6e=this[_0x4d0f('0x67')][_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255),_0x541492=this[_0x4d0f('0x67')][_0x4d0f('0x2c')][_0x4d0f('0x50')]('collaboration.channelId');for(const _0x28bdfd of _0x4eed6e[_0x4d0f('0x11')]({'channelId':_0x541492}))_0x4eed6e['_detachCommentThread'](_0x28bdfd['id']),_0x4eed6e[_0x4d0f('0x4c')][_0x4d0f('0x66')](_0x28bdfd['id']);super[_0x4d0f('0x32')]();}['hasMarkerForId'](_0xf7f0de){return this[_0x4d0f('0x16')](_0xf7f0de)[_0x4d0f('0x63')]>0x0;}['getAllMarkersForId'](_0x65e10d){return(this[_0x4d0f('0x58')][_0x4d0f('0x50')](_0x65e10d)||[])[_0x4d0f('0x13')](_0x2ba522=>this[_0x4d0f('0x67')][_0x4d0f('0x22')][_0x4d0f('0x44')]['get'](_0x2ba522))[_0x4d0f('0x3')](_0x3c58f3=>_0x3c58f3);}[_0x4d0f('0x60')](_0x32867f){const _0x1dca8f=this[_0x4d0f('0x41')](_0x32867f);_0x1dca8f&&setTimeout(()=>{this['activeMarker']&&ot(this[_0x4d0f('0x6b')])['id']===_0x32867f&&_0x2f7256({'target':_0x1dca8f[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x10d04a){this[_0x4d0f('0x67')][_0x4d0f('0x22')][_0x4d0f('0x38')](()=>{for(const _0x3eb0b8 of this[_0x4d0f('0x16')](_0x10d04a))this[_0x4d0f('0x67')][_0x4d0f('0x6d')][_0x4d0f('0x26')](_0x3eb0b8);});}['_initializeMarkerConverters'](){const _0x10d465=this[_0x4d0f('0x67')];_0x10d465[_0x4d0f('0xf')][_0x4d0f('0x20')](_0x4d0f('0x2f'))['markerToHighlight']({'model':_0x4d0f('0x5e'),'view':(_0xc8a9cc,_0x46d62b)=>{const {id:_0x190907}=ot(_0xc8a9cc['markerName']),_0x4ed419=_0x10d465[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255)[_0x4d0f('0x6a')](_0x190907),_0x44117a=this[_0x4d0f('0x6b')]&&ot(this['activeMarker'])['id']===_0x190907;if(_0x4ed419&&_0x4ed419[_0x4d0f('0x6c')]&&!_0x44117a&&_0xc8a9cc[_0x4d0f('0x3d')])return _0x46d62b[_0x4d0f('0x57')][_0x4d0f('0x29')](_0xc8a9cc['item'],_0x4d0f('0x19')+_0xc8a9cc[_0x4d0f('0x62')]),_0x46d62b[_0x4d0f('0x57')]['consume'](_0xc8a9cc['item'],'removeMarker:'+_0xc8a9cc[_0x4d0f('0x62')]),{'classes':[]};const _0x43fd99=[_0x4d0f('0x2d')];return _0x44117a&&_0x43fd99['push'](_0x4d0f('0x4b')),{'classes':_0x43fd99,'attributes':{'data-comment':_0x190907}};}}),_0x10d465['conversion'][_0x4d0f('0x20')](_0x4d0f('0x1a'))[_0x4d0f('0x4a')]({'model':_0x4d0f('0x5e'),'view':(_0x41bd4d,{options:_0x4b1b5e})=>{const _0x22e6b7=_0x10d465[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255),_0x5257ea=_0x10d465[_0x4d0f('0x22')][_0x4d0f('0x44')][_0x4d0f('0x50')](_0x41bd4d),{id:_0x365e69,part:_0x27d53f}=ot(_0x41bd4d),_0x46a712=_0x22e6b7[_0x4d0f('0x6a')](_0x365e69);return _0x5257ea&&!_0x5257ea[_0x4d0f('0x2b')]||_0x46a712&&_0x46a712[_0x4d0f('0x6c')]&&_0x4b1b5e[_0x4d0f('0x18')]?null:{'group':_0x4d0f('0x5e'),'name':_0x27d53f?_0x365e69+':'+_0x27d53f:_0x365e69};}}),_0x10d465[_0x4d0f('0xf')][_0x4d0f('0x20')](_0x4d0f('0x51'))[_0x4d0f('0x31')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x13b1c1,{writer:_0x1feda6})=>_0x1feda6[_0x4d0f('0x36')](_0x4d0f('0x43'),{'data-name':_0x4d0f('0x54')+_0x13b1c1[_0x4d0f('0xd')]('id')})}),_0x10d465['conversion'][_0x4d0f('0x20')]('upcast')[_0x4d0f('0xb')]({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x1f20d2=this[_0x4d0f('0x67')],_0x46ee56=_0x1f20d2[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255),_0x5c6d21=new Set();_0x1f20d2['model']['document'][_0x4d0f('0x10')](_0x1860a8=>{let _0x293d94=!0x1;for(const {name:_0x28399d,data:_0x2e08ee}of _0x1f20d2['model'][_0x4d0f('0xa')][_0x4d0f('0x15')][_0x4d0f('0x14')]()){const {group:_0xbeb272,id:_0x1cb389}=ot(_0x28399d);let _0xe2cceb=_0x2e08ee['newRange'];if(_0x4d0f('0x5e')!==_0xbeb272||!_0xe2cceb)continue;const _0xe8d1d1=_0x4d0f('0x23')===_0xe2cceb[_0x4d0f('0x59')]['rootName'];_0xe8d1d1||(_0xe2cceb=et(_0xe2cceb,_0x1f20d2['model']),!_0xe2cceb||!_0x2e08ee[_0x4d0f('0x65')]||_0xe2cceb[_0x4d0f('0x47')](_0x2e08ee['newRange']))?!_0xe2cceb||!_0x1f20d2[_0x4d0f('0x22')]['hasContent'](_0xe2cceb)||this[_0x4d0f('0x58')][_0x4d0f('0x5f')](_0x1cb389)&&_0xe8d1d1?(_0x1860a8[_0x4d0f('0x2')](_0x28399d),_0x293d94=!0x0):_0xe8d1d1||(this[_0x4d0f('0x40')]?_0x5c6d21['add'](_0x28399d):this[_0x4d0f('0x2a')](_0x28399d,_0x1cb389)):(_0x1860a8[_0x4d0f('0x42')](_0x28399d,{'range':_0xe2cceb}),_0x293d94=!0x0);}return _0x293d94;}),this['on']('change:isThreadsLoadingPaused',(_0x5132ef,_0x3667ad,_0x3a81b8)=>{if(!_0x3a81b8&&_0x5c6d21[_0x4d0f('0x2e')])for(const _0x130e0d of _0x5c6d21){const {id:_0x294a99}=ot(_0x130e0d);_0x5c6d21[_0x4d0f('0x66')](_0x294a99),_0x1f20d2['model'][_0x4d0f('0x44')]['get'](_0x130e0d)&&this[_0x4d0f('0x2a')](_0x130e0d,_0x294a99);}}),this['listenTo'](_0x1f20d2[_0x4d0f('0x22')][_0x4d0f('0xa')],'change',(_0x316967,_0x20d34e)=>{for(const {name:_0x658046,data:{newRange:_0x33fc49}}of _0x1f20d2['model'][_0x4d0f('0xa')][_0x4d0f('0x15')][_0x4d0f('0x14')]()){const {group:_0x53ecf9,id:_0xb4f7d2}=ot(_0x658046);if(_0x4d0f('0x5e')!==_0x53ecf9)continue;const _0x45eaa3=_0x46ee56['getCommentThread'](_0xb4f7d2),_0x3ec9f9=this[_0x4d0f('0x1f')](_0xb4f7d2);_0x45eaa3&&(_0x45eaa3[_0x4d0f('0x52')]||_0x1f20d2[_0x4d0f('0x6d')][_0x4d0f('0x6e')]['once'](_0x4d0f('0x3f'),()=>{const _0x5a32b7=_0x1f20d2[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x39f743),_0xdfecb9=_0x46ee56[_0x4d0f('0x1c')][_0x4d0f('0x50')](_0x45eaa3)[_0x4d0f('0x6e')];_0x5a32b7[_0x4d0f('0x1b')](_0xdfecb9)[_0x4d0f('0x53')]();},{'priority':_0x4d0f('0x9')}),_0x45eaa3[_0x4d0f('0x52')]=_0x3ec9f9||!!_0x33fc49),!_0x33fc49&&_0x20d34e['isLocal']&&(_0x5c6d21[_0x4d0f('0x66')](_0xb4f7d2),_0x45eaa3&&!_0x45eaa3[_0x4d0f('0x6c')]&&!_0x3ec9f9&&this[_0x4d0f('0x58')]['has'](_0xb4f7d2)&&(this[_0x4d0f('0x58')]['delete'](_0xb4f7d2),_0x45eaa3[_0x4d0f('0x61')]()));}});}[_0x4d0f('0x41')](_0x51636f){const _0x17808d=this[_0x4d0f('0x67')],_0x418222=this['getAllMarkersForId'](_0x51636f);return _0x253c05(_0x17808d[_0x4d0f('0x6d')],_0x418222);}[_0x4d0f('0x24')](_0x494309){const _0x22afbd=this['getAllMarkersForId'](_0x494309);let _0x140d36='',_0x1b69bc=!0x1;for(const _0x1a2042 of _0x22afbd){const _0x51d069=_0x1a2042[_0x4d0f('0x3b')]();for(const _0x119c68 of Array[_0x4d0f('0xe')](_0x51d069[_0x4d0f('0x55')]()))_0x119c68['is'](_0x4d0f('0x69'))?(_0x140d36&&_0x1b69bc&&(_0x140d36+='\x20',_0x1b69bc=!0x1),_0x140d36+=_0x119c68[_0x4d0f('0x5')]):_0x1b69bc=!0x0;_0x1b69bc=!0x0;}return _0x140d36[_0x4d0f('0x25')](0x0,0x96);}[_0x4d0f('0x8')](_0x3a0657,_0x116ee9){const _0x2c9def=this[_0x4d0f('0x67')],_0x4146e0=_0x2c9def[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255);let _0x5a3d8d=_0x4146e0[_0x4d0f('0x6a')](_0x116ee9);if(this[_0x4d0f('0x58')]['has'](_0x116ee9)){const _0x54a613=this['_attachedThreads'][_0x4d0f('0x50')](_0x116ee9);return _0x54a613[_0x4d0f('0x5d')](_0x3a0657)||_0x54a613[_0x4d0f('0x4e')](_0x3a0657),_0x5a3d8d;}this['_attachedThreads'][_0x4d0f('0x4d')](_0x116ee9,[_0x3a0657]);const _0x2782d9=_0x2c9def[_0x4d0f('0x2c')][_0x4d0f('0x50')](_0x4d0f('0x0')),_0x18710c=_0x2c9def[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x1c74e4);if(_0x5a3d8d&&_0x5a3d8d[_0x4d0f('0x6c')])return _0x5a3d8d['reopen'](),_0x5a3d8d;return!this[_0x4d0f('0x16')](_0x116ee9)[0x0][_0x4d0f('0x3e')]?_0x2c9def[_0x4d0f('0x6d')][_0x4d0f('0x6e')][_0x4d0f('0x70')]('render',()=>{const _0x4ef953=_0x2c9def[_0x4d0f('0x56')]['get'](_0x39f743);_0x5a3d8d=_0x4146e0['openNewCommentThread']({'channelId':_0x2782d9,'threadId':_0x116ee9,'target':()=>this[_0x4d0f('0x41')](_0x116ee9),'context':{'type':_0x4d0f('0x68'),'value':this[_0x4d0f('0x24')](_0x116ee9)}});const _0x2e88a9=_0x4146e0['_threadToController'][_0x4d0f('0x50')](_0x5a3d8d)[_0x4d0f('0x6e')],_0x3362b4=_0x4ef953[_0x4d0f('0x1b')](_0x2e88a9);_0x3362b4&&_0x18710c[_0x4d0f('0x5c')](_0x3362b4);},{'priority':'low'}):_0x4146e0[_0x4d0f('0x21')]({'channelId':_0x2782d9,'threadId':_0x116ee9})[_0x4d0f('0x7')](_0x212204=>{if('destroyed'!==_0x2c9def['state']){if(_0x5a3d8d=_0x212204,_0x5a3d8d){const _0x1b550e=_0x5a3d8d[_0x4d0f('0x6f')](()=>this['_getTargetForId'](_0x116ee9));_0x18710c[_0x4d0f('0x5c')](_0x1b550e),_0x5a3d8d[_0x4d0f('0x6c')]&&this['_reconvertMarkers'](_0x116ee9);}else{const _0x2812e6=this[_0x4d0f('0x16')](_0x116ee9);_0x2c9def['model'][_0x4d0f('0x38')](_0x2dd636=>{for(const _0x181d69 of _0x2812e6)_0x2dd636[_0x4d0f('0x2')](_0x181d69);});}}}),_0x5a3d8d;}[_0x4d0f('0x2a')](_0xdc863c,_0x16de4b){const _0x1372ce=this[_0x4d0f('0x8')](_0xdc863c,_0x16de4b);_0x1372ce&&!_0x1372ce['context']&&_0x1372ce[_0x4d0f('0x5a')]({'type':_0x4d0f('0x68'),'value':this[_0x4d0f('0x24')](_0x16de4b)});}}function tt(_0x39d02d,_0x51c659){return _0x51c659?_0x39d02d+':'+_0x51c659:_0x39d02d;}function ot(_0xfc4e50){const _0x23eed2=_0xfc4e50[_0x4d0f('0x37')](':');return{'group':_0x23eed2[0x0],'id':_0x23eed2[0x1],'part':_0x23eed2[0x2]};}function et(_0x2226bb,_0x2ac3dc){const _0x48de27=_0x2ac3dc[_0x4d0f('0xc')],_0x5a1b22=_0x2ac3dc[_0x4d0f('0x1')](_0x2226bb[_0x4d0f('0x30')]);for(const _0x1c4731 of _0x2226bb[_0x4d0f('0x17')]()){const {type:_0x367ee1,item:_0xa5b165,nextPosition:_0x3408c0}=_0x1c4731;if(_0x4d0f('0x68')===_0x367ee1||_0x48de27['isObject'](_0xa5b165)){const _0x1bd2db=_0x2ac3dc[_0x4d0f('0x27')](_0xa5b165);_0x5a1b22[_0x4d0f('0x46')]&&(_0x5a1b22['start']=_0x1bd2db),_0x5a1b22[_0x4d0f('0x48')]=_0x3408c0;}}return _0x5a1b22[_0x4d0f('0x46')]?null:_0x5a1b22;}
|