@ckeditor/ckeditor5-comments 38.0.0-rc.1 → 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 _0xa102=['comment','map','length','addMarker:','editingDowncast','isThreadsLoadingPaused','change:activeMarker','createRange','CommentsEditing','low','removeCommentThread','_handleThreadMarker','isCollapsed','change:isThreadsLoadingPaused','get','hasMarkerForId','commands','getWalker','activeMarker','reopenCommentThread','updateMarker','change','config','item','plugins','ignoreResolvedComments','model','rootName','attachTo','hasCommentThread','_getTargetForId','context','enqueueChange','_getTextContext','pluginName','getCommentThread','editor','openNewCommentThread','_attachMarkerToThread','collaboration.channelId','affectsData','filter','consumable','getByInnerView','_hasTargetInContent','$marker','getChangedMarkers','destroyed','change:isReadOnly','includes','editing','upcast','from','root','for','removeMarker:','addCommentThread','registerPostFixer','document','getCommentThreads','view','ck-comment-marker--active','fetchCommentThread','then','_attachedThreads','dataToMarker','consume','reconvertMarker','high','createElement','hasDomSelection','start','switchReadOnly','once','listenTo','addComment','markerToHighlight','isLocal','focus','isResolved','_handleMarkerAddAndRemove','_threadToController','schema','conversion','add','data','getItems','resolve','push','markerName','delete','text','removeMarker','newRange','has','scrollToThreadMarker','state','_initializeMarkerConverters','_threads','_reconvertMarkers','destroy','createPositionBefore','$graveyard','set','end','size','reopen','registerAnnotation','getAllMarkersForId','differ','markers'];(function(_0xd71f52,_0xa102f3){const _0x1d948e=function(_0x3350f6){while(--_0x3350f6){_0xd71f52['push'](_0xd71f52['shift']());}};_0x1d948e(++_0xa102f3);}(_0xa102,0x9c));const _0x1d94=function(_0xd71f52,_0xa102f3){_0xd71f52=_0xd71f52-0x0;let _0x1d948e=_0xa102[_0xd71f52];return _0x1d948e;};import{Plugin as _0x231995}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x17700a}from'ckeditor5/src/utils';import _0x5f0d92 from'./commentsrepository';import _0x21118a from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x20aedf}from'ckeditor5-collaboration/src/collaboration-core';import _0x52962c from'../annotations/editorannotations';import _0x1836d5 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x386f8c from'./integrations/importword';import _0x27c82d from'../annotations/annotations';export default class r extends _0x231995{static get['requires'](){return[_0x5f0d92,_0x52962c,_0x1836d5,_0x386f8c];}static get[_0x1d94('0x64')](){return _0x1d94('0x4a');}constructor(_0x3dac25){super(_0x3dac25),this[_0x1d94('0x3a')]('isThreadsLoadingPaused',!0x0),_0x3dac25['data'][_0x1d94('0x1c')]('ready',()=>this[_0x1d94('0x47')]=!0x1),this['set']('activeMarker',null),this['on'](_0x1d94('0x48'),(_0xd1d10,_0x19046f,_0x7ca8b3,_0x2a2479)=>{const _0x370084=_0x7ca8b3?P(_0x7ca8b3)['id']:null;if(_0x3dac25[_0x1d94('0x5c')][_0x1d94('0x57')](()=>{if(_0x370084){const _0x4a7b69=this[_0x1d94('0x3f')](_0x370084);for(const _0x44f7f8 of _0x4a7b69)_0x3dac25[_0x1d94('0x5')][_0x1d94('0x16')](_0x44f7f8);}if(_0x2a2479){const {id:_0x8286bc}=P(_0x2a2479),_0x2ac73d=this[_0x1d94('0x3f')](_0x8286bc);for(const _0x356e88 of _0x2ac73d)_0x3dac25[_0x1d94('0x5')]['reconvertMarker'](_0x356e88);}}),_0x370084){const _0x27fd6c=_0x3dac25[_0x1d94('0x5a')][_0x1d94('0x50')](_0x5f0d92)['getCommentThread'](_0x370084);_0x27fd6c&&_0x27fd6c[_0x1d94('0x22')]&&this['scrollToThreadMarker'](_0x370084);}}),this['_attachedThreads']=new Map();}['init'](){const _0x284bc3=this[_0x1d94('0x66')],_0x406643=_0x284bc3[_0x1d94('0x5a')]['get'](_0x5f0d92),_0x4dc3d0=_0x284bc3[_0x1d94('0x58')][_0x1d94('0x50')]('collaboration.channelId');_0x284bc3[_0x1d94('0x52')][_0x1d94('0x27')](_0x1d94('0xb'),new _0x21118a(_0x284bc3)),this[_0x1d94('0x1d')](_0x284bc3,_0x1d94('0x3'),(_0x387b47,_0x5691e6,_0x4e748e)=>{_0x406643[_0x1d94('0x1b')](_0x4e748e,_0x284bc3[_0x1d94('0x58')][_0x1d94('0x50')](_0x1d94('0x69')));}),this[_0x1d94('0x1d')](_0x406643,F(_0x1d94('0xb'),_0x4dc3d0),(_0x59754b,{threadId:_0x53a7e3})=>{const _0x15de17=_0x284bc3[_0x1d94('0x5a')][_0x1d94('0x50')](_0x52962c),_0x1d0d46=this[_0x1d94('0x66')][_0x1d94('0x5a')][_0x1d94('0x50')](_0x5f0d92)[_0x1d94('0x65')](_0x53a7e3);if(_0x1d0d46&&_0x1d0d46[_0x1d94('0x22')]&&!this['_attachedThreads'][_0x1d94('0x31')](_0x53a7e3)){const _0x11af58=_0x1d0d46[_0x1d94('0x5e')](()=>this[_0x1d94('0x60')](_0x1d0d46['id']));_0x15de17[_0x1d94('0x3e')](_0x11af58),this[_0x1d94('0x13')]['set'](_0x53a7e3,[]),0x0===this[_0x1d94('0x3f')](_0x53a7e3)['length']&&(_0x1d0d46['_hasTargetInContent']=!0x1);}}),this['listenTo'](_0x406643,F(_0x1d94('0x4c'),_0x4dc3d0),(_0x23f0da,{threadId:_0x48954d})=>{_0x284bc3['model'][_0x1d94('0x62')]({'isUndoable':!0x1},_0x1dd010=>{const _0x1f683f=this[_0x1d94('0x3f')](_0x48954d);this['_attachedThreads'][_0x1d94('0x2d')](_0x48954d);for(const _0x54370f of _0x1f683f)_0x1dd010[_0x1d94('0x2f')](_0x54370f);});},{'priority':_0x1d94('0x17')}),this['listenTo'](_0x406643,F('resolveCommentThread',_0x4dc3d0),(_0x164bad,{threadId:_0xd4fb2b})=>{this[_0x1d94('0x36')](_0xd4fb2b),this[_0x1d94('0x66')]['editing'][_0x1d94('0xf')][_0x1d94('0x19')]&&this[_0x1d94('0x66')][_0x1d94('0x5')][_0x1d94('0xf')][_0x1d94('0x21')]();},{'priority':_0x1d94('0x4b')}),this[_0x1d94('0x1d')](_0x406643,F(_0x1d94('0x55'),_0x4dc3d0),(_0xd144d5,{threadId:_0x47c0e3})=>{this[_0x1d94('0x36')](_0x47c0e3);},{'priority':_0x1d94('0x4b')}),this[_0x1d94('0x1d')](_0x406643,F(_0x1d94('0x1e'),_0x4dc3d0),(_0x45dfca,{threadId:_0x3c8004,isFromAdapter:_0x590e05})=>{const _0x1dd4b2=this[_0x1d94('0x3f')](_0x3c8004);if(_0x590e05||0x0==_0x1dd4b2[_0x1d94('0x44')]||!_0x406643[_0x1d94('0x5f')](_0x3c8004))return;0x1===_0x406643[_0x1d94('0x65')](_0x3c8004)[_0x1d94('0x44')]&&_0x284bc3['model'][_0x1d94('0x62')]({'isUndoable':!0x1},_0x2e9a07=>{for(const _0x4f2462 of _0x1dd4b2)_0x2e9a07[_0x1d94('0x56')](_0x4f2462,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x1d94('0x4b')}),this[_0x1d94('0x34')](),this[_0x1d94('0x23')]();}['destroy'](){const _0x381dcf=this[_0x1d94('0x66')][_0x1d94('0x5a')][_0x1d94('0x50')](_0x5f0d92),_0x455b1c=this[_0x1d94('0x66')]['config'][_0x1d94('0x50')](_0x1d94('0x69'));for(const _0x329f52 of _0x381dcf[_0x1d94('0xe')]({'channelId':_0x455b1c}))_0x381dcf['_detachCommentThread'](_0x329f52['id']),_0x381dcf[_0x1d94('0x35')]['delete'](_0x329f52['id']);super[_0x1d94('0x37')]();}[_0x1d94('0x51')](_0x41fe2d){return this[_0x1d94('0x3f')](_0x41fe2d)[_0x1d94('0x44')]>0x0;}[_0x1d94('0x3f')](_0x102049){return(this['_attachedThreads'][_0x1d94('0x50')](_0x102049)||[])[_0x1d94('0x43')](_0x4cf3f9=>this[_0x1d94('0x66')][_0x1d94('0x5c')][_0x1d94('0x41')][_0x1d94('0x50')](_0x4cf3f9))[_0x1d94('0x6b')](_0x20ebb0=>_0x20ebb0);}[_0x1d94('0x32')](_0x273580){const _0x3680e0=this[_0x1d94('0x60')](_0x273580);_0x3680e0&&setTimeout(()=>{this[_0x1d94('0x54')]&&P(this[_0x1d94('0x54')])['id']===_0x273580&&_0x17700a({'target':_0x3680e0[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x1d94('0x36')](_0x41b12e){this[_0x1d94('0x66')][_0x1d94('0x5c')][_0x1d94('0x57')](()=>{for(const _0x38ea81 of this[_0x1d94('0x3f')](_0x41b12e))this[_0x1d94('0x66')]['editing'][_0x1d94('0x16')](_0x38ea81);});}[_0x1d94('0x34')](){const _0x258dab=this[_0x1d94('0x66')];_0x258dab[_0x1d94('0x26')][_0x1d94('0x9')](_0x1d94('0x46'))[_0x1d94('0x1f')]({'model':'comment','view':(_0x494429,_0xd6c0fd)=>{const {id:_0x884cc3}=P(_0x494429[_0x1d94('0x2c')]),_0x197112=_0x258dab[_0x1d94('0x5a')]['get'](_0x5f0d92)['getCommentThread'](_0x884cc3),_0x378d87=this[_0x1d94('0x54')]&&P(this[_0x1d94('0x54')])['id']===_0x884cc3;if(_0x197112&&_0x197112[_0x1d94('0x22')]&&!_0x378d87&&_0x494429[_0x1d94('0x59')])return _0xd6c0fd[_0x1d94('0x6c')][_0x1d94('0x15')](_0x494429[_0x1d94('0x59')],_0x1d94('0x45')+_0x494429[_0x1d94('0x2c')]),_0xd6c0fd[_0x1d94('0x6c')][_0x1d94('0x15')](_0x494429[_0x1d94('0x59')],_0x1d94('0xa')+_0x494429[_0x1d94('0x2c')]),{'classes':[]};const _0x27ecd2=['ck-comment-marker'];return _0x378d87&&_0x27ecd2[_0x1d94('0x2b')](_0x1d94('0x10')),{'classes':_0x27ecd2,'attributes':{'data-comment':_0x884cc3}};}}),_0x258dab[_0x1d94('0x26')][_0x1d94('0x9')]('dataDowncast')['markerToData']({'model':_0x1d94('0x42'),'view':(_0x5bf3aa,{options:_0x177dae})=>{const _0x61f63d=_0x258dab[_0x1d94('0x5a')][_0x1d94('0x50')](_0x5f0d92),_0x2f5648=_0x258dab['model'][_0x1d94('0x41')]['get'](_0x5bf3aa),{id:_0x3dee11,part:_0x2774b2}=P(_0x5bf3aa),_0x315434=_0x61f63d[_0x1d94('0x65')](_0x3dee11);return _0x2f5648&&!_0x2f5648[_0x1d94('0x6a')]||_0x315434&&_0x315434['isResolved']&&_0x177dae[_0x1d94('0x5b')]?null:{'group':'comment','name':_0x2774b2?_0x3dee11+':'+_0x2774b2:_0x3dee11};}}),_0x258dab['conversion'][_0x1d94('0x9')]('upcast')['elementToElement']({'view':{'name':_0x1d94('0x42'),'attributes':{'id':/^\w/}},'model':(_0x2dc007,{writer:_0x3a8829})=>_0x3a8829[_0x1d94('0x18')](_0x1d94('0x0'),{'data-name':'comment:'+_0x2dc007['getAttribute']('id')})}),_0x258dab['conversion'][_0x1d94('0x9')](_0x1d94('0x6'))[_0x1d94('0x14')]({'view':_0x1d94('0x42')});}[_0x1d94('0x23')](){const _0x59a9b8=this[_0x1d94('0x66')],_0x4e4d96=_0x59a9b8[_0x1d94('0x5a')][_0x1d94('0x50')](_0x5f0d92),_0x413df8=new Set();_0x59a9b8['model'][_0x1d94('0xd')][_0x1d94('0xc')](_0x30c140=>{let _0x58c811=!0x1;for(const {name:_0x1235d1,data:_0x27d3fa}of _0x59a9b8[_0x1d94('0x5c')]['document'][_0x1d94('0x40')][_0x1d94('0x1')]()){const {group:_0x236609,id:_0x1e3ca4}=P(_0x1235d1);let _0x223c42=_0x27d3fa['newRange'];if(_0x1d94('0x42')!==_0x236609||!_0x223c42)continue;const _0x4c3842=_0x1d94('0x39')===_0x223c42[_0x1d94('0x8')][_0x1d94('0x5d')];_0x4c3842||(_0x223c42=D(_0x223c42,_0x59a9b8[_0x1d94('0x5c')]),!_0x223c42||!_0x27d3fa[_0x1d94('0x30')]||_0x223c42['isEqual'](_0x27d3fa[_0x1d94('0x30')]))?!_0x223c42||!_0x59a9b8[_0x1d94('0x5c')]['hasContent'](_0x223c42)||this[_0x1d94('0x13')][_0x1d94('0x31')](_0x1e3ca4)&&_0x4c3842?(_0x30c140[_0x1d94('0x2f')](_0x1235d1),_0x58c811=!0x0):_0x4c3842||(this[_0x1d94('0x47')]?_0x413df8[_0x1d94('0x27')](_0x1235d1):this['_handleThreadMarker'](_0x1235d1,_0x1e3ca4)):(_0x30c140[_0x1d94('0x56')](_0x1235d1,{'range':_0x223c42}),_0x58c811=!0x0);}return _0x58c811;}),this['on'](_0x1d94('0x4f'),(_0x419dc8,_0x2f1f6f,_0x78588b)=>{if(!_0x78588b&&_0x413df8[_0x1d94('0x3c')])for(const _0x1afc4d of _0x413df8){const {id:_0x3b1499}=P(_0x1afc4d);_0x413df8[_0x1d94('0x2d')](_0x3b1499),_0x59a9b8[_0x1d94('0x5c')][_0x1d94('0x41')]['get'](_0x1afc4d)&&this['_handleThreadMarker'](_0x1afc4d,_0x3b1499);}}),this[_0x1d94('0x1d')](_0x59a9b8[_0x1d94('0x5c')][_0x1d94('0xd')],_0x1d94('0x57'),(_0x543171,_0x298fbd)=>{for(const {name:_0x4cc9ff,data:{newRange:_0x50b790}}of _0x59a9b8[_0x1d94('0x5c')][_0x1d94('0xd')]['differ'][_0x1d94('0x1')]()){const {group:_0x6df6fa,id:_0xb4a656}=P(_0x4cc9ff);if(_0x1d94('0x42')!==_0x6df6fa)continue;const _0x338ab4=_0x4e4d96['getCommentThread'](_0xb4a656),_0x35b50b=this[_0x1d94('0x51')](_0xb4a656);_0x338ab4&&(_0x338ab4[_0x1d94('0x6e')]||_0x59a9b8[_0x1d94('0x5')][_0x1d94('0xf')][_0x1d94('0x1c')]('render',()=>{const _0x2b7392=_0x59a9b8['plugins'][_0x1d94('0x50')](_0x27c82d),_0x4afa6b=_0x4e4d96[_0x1d94('0x24')][_0x1d94('0x50')](_0x338ab4)[_0x1d94('0xf')];_0x2b7392['getByInnerView'](_0x4afa6b)['refreshVisibility']();},{'priority':'low'}),_0x338ab4['_hasTargetInContent']=_0x35b50b||!!_0x50b790),!_0x50b790&&_0x298fbd[_0x1d94('0x20')]&&(_0x413df8[_0x1d94('0x2d')](_0xb4a656),_0x338ab4&&!_0x338ab4['isResolved']&&!_0x35b50b&&this[_0x1d94('0x13')][_0x1d94('0x31')](_0xb4a656)&&(this[_0x1d94('0x13')][_0x1d94('0x2d')](_0xb4a656),_0x338ab4[_0x1d94('0x2a')]()));}});}[_0x1d94('0x60')](_0x497dd6){const _0x365676=this[_0x1d94('0x66')],_0x4a1624=this[_0x1d94('0x3f')](_0x497dd6);return _0x20aedf(_0x365676[_0x1d94('0x5')],_0x4a1624);}['_getTextContext'](_0x4741a7){const _0x1d991c=this[_0x1d94('0x3f')](_0x4741a7);let _0x283c22='',_0x485c06=!0x1;for(const _0x19247a of _0x1d991c){const _0x3f1f2d=_0x19247a['getRange']();for(const _0x5763c6 of Array[_0x1d94('0x7')](_0x3f1f2d[_0x1d94('0x29')]()))_0x5763c6['is']('$textProxy')?(_0x283c22&&_0x485c06&&(_0x283c22+='\x20',_0x485c06=!0x1),_0x283c22+=_0x5763c6[_0x1d94('0x28')]):_0x485c06=!0x0;_0x485c06=!0x0;}return _0x283c22['substring'](0x0,0x96);}[_0x1d94('0x68')](_0x1482a6,_0x2cdded){const _0x5d5c1c=this[_0x1d94('0x66')],_0x31a38f=_0x5d5c1c[_0x1d94('0x5a')]['get'](_0x5f0d92);let _0x5e6478=_0x31a38f['getCommentThread'](_0x2cdded);if(this[_0x1d94('0x13')]['has'](_0x2cdded)){const _0x23291f=this[_0x1d94('0x13')][_0x1d94('0x50')](_0x2cdded);return _0x23291f[_0x1d94('0x4')](_0x1482a6)||_0x23291f[_0x1d94('0x2b')](_0x1482a6),_0x5e6478;}this[_0x1d94('0x13')][_0x1d94('0x3a')](_0x2cdded,[_0x1482a6]);const _0x1c1edb=_0x5d5c1c[_0x1d94('0x58')]['get'](_0x1d94('0x69')),_0x19a324=_0x5d5c1c[_0x1d94('0x5a')][_0x1d94('0x50')](_0x52962c);if(_0x5e6478&&_0x5e6478['isResolved'])return _0x5e6478[_0x1d94('0x3d')](),_0x5e6478;return!this[_0x1d94('0x3f')](_0x2cdded)[0x0]['managedUsingOperations']?_0x5d5c1c[_0x1d94('0x5')]['view'][_0x1d94('0x1c')]('render',()=>{const _0x28f0cd=_0x5d5c1c[_0x1d94('0x5a')][_0x1d94('0x50')](_0x27c82d);_0x5e6478=_0x31a38f[_0x1d94('0x67')]({'channelId':_0x1c1edb,'threadId':_0x2cdded,'target':()=>this[_0x1d94('0x60')](_0x2cdded),'context':{'type':_0x1d94('0x2e'),'value':this[_0x1d94('0x63')](_0x2cdded)}});const _0x4e00cf=_0x31a38f['_threadToController'][_0x1d94('0x50')](_0x5e6478)['view'],_0x22364c=_0x28f0cd[_0x1d94('0x6d')](_0x4e00cf);_0x22364c&&_0x19a324[_0x1d94('0x3e')](_0x22364c);},{'priority':_0x1d94('0x4b')}):_0x31a38f[_0x1d94('0x11')]({'channelId':_0x1c1edb,'threadId':_0x2cdded})[_0x1d94('0x12')](_0x3dcbce=>{if(_0x1d94('0x2')!==_0x5d5c1c[_0x1d94('0x33')]){if(_0x5e6478=_0x3dcbce,_0x5e6478){const _0x5d0efd=_0x5e6478[_0x1d94('0x5e')](()=>this[_0x1d94('0x60')](_0x2cdded));_0x19a324[_0x1d94('0x3e')](_0x5d0efd),_0x5e6478[_0x1d94('0x22')]&&this[_0x1d94('0x36')](_0x2cdded);}else{const _0xe932d8=this[_0x1d94('0x3f')](_0x2cdded);_0x5d5c1c[_0x1d94('0x5c')][_0x1d94('0x57')](_0x322741=>{for(const _0x404c00 of _0xe932d8)_0x322741[_0x1d94('0x2f')](_0x404c00);});}}}),_0x5e6478;}[_0x1d94('0x4d')](_0x2f667e,_0xc555f7){const _0x321167=this['_attachMarkerToThread'](_0x2f667e,_0xc555f7);_0x321167&&!_0x321167[_0x1d94('0x61')]&&_0x321167['setContext']({'type':_0x1d94('0x2e'),'value':this[_0x1d94('0x63')](_0xc555f7)});}}function F(_0x5045dd,_0x5052ea){return _0x5052ea?_0x5045dd+':'+_0x5052ea:_0x5045dd;}function P(_0x1e1583){const _0x4fea8b=_0x1e1583['split'](':');return{'group':_0x4fea8b[0x0],'id':_0x4fea8b[0x1],'part':_0x4fea8b[0x2]};}function D(_0x266d00,_0x1fbd52){const _0x1cd8f4=_0x1fbd52[_0x1d94('0x25')],_0x36db13=_0x1fbd52[_0x1d94('0x49')](_0x266d00[_0x1d94('0x1a')]);for(const _0x3a75e6 of _0x266d00[_0x1d94('0x53')]()){const {type:_0x3308a1,item:_0x550979,nextPosition:_0x17a896}=_0x3a75e6;if(_0x1d94('0x2e')===_0x3308a1||_0x1cd8f4['isObject'](_0x550979)){const _0x2a05ab=_0x1fbd52[_0x1d94('0x38')](_0x550979);_0x36db13['isCollapsed']&&(_0x36db13[_0x1d94('0x1a')]=_0x2a05ab),_0x36db13[_0x1d94('0x3b')]=_0x17a896;}}return _0x36db13[_0x1d94('0x4e')]?null:_0x36db13;}
|
|
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;}
|