@ckeditor/ckeditor5-comments 0.0.0-nightly-20230711.0 → 0.0.0-nightly-20230712.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +1 -1
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a09=['type','add','clear','isActive','focusTracker','destroy','render','focus','keystrokes','_mutationObserver','content','createCollection','element','setTemplate','_updateHeight','div','targetRect','ck-annotation-wrapper--active','Esc','ck-rounded-corners','attach','set','fire','isDirty'];(function(_0x3399bf,_0x3a09fe){const _0x1ed073=function(_0x5b9a68){while(--_0x5b9a68){_0x3399bf['push'](_0x3399bf['shift']());}};_0x1ed073(++_0x3a09fe);}(_0x3a09,0x13c));const _0x1ed0=function(_0x3399bf,_0x3a09fe){_0x3399bf=_0x3399bf-0x0;let _0x1ed073=_0x3a09[_0x3399bf];return _0x1ed073;};import{View as _0x5139e3}from'ckeditor5/src/ui';import{FocusTracker as _0x5b18ed,KeystrokeHandler as _0x6730a6,uid as _0xdbf13b}from'ckeditor5/src/utils';import _0x356f72 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x5139e3{constructor(_0x6f8c91,_0x2ad96f){super(_0x6f8c91),this['id']=_0xdbf13b(),this[_0x1ed0('0x0')]=new _0x5b18ed(),this[_0x1ed0('0x4')]=new _0x6730a6(),this['keystrokes'][_0x1ed0('0x11')](_0x1ed0('0xe'),(_0x45baf9,_0x115807)=>this[_0x1ed0('0x12')](_0x1ed0('0xe'),_0x115807)),this[_0x1ed0('0x11')](_0x1ed0('0xc'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x1ed0('0x11')]('height',0x0),this[_0x1ed0('0x11')](_0x1ed0('0x17'),!0x1),this[_0x1ed0('0x11')](_0x1ed0('0x13'),!0x1),this[_0x1ed0('0x11')]('length',0x0),this[_0x1ed0('0x11')](_0x1ed0('0x14'),''),this['_mutationObserver']=_0x356f72(()=>this[_0x1ed0('0xa')]()),this['content']=this[_0x1ed0('0x7')](),this[_0x1ed0('0x6')]['add'](_0x2ad96f),this['mainView']=_0x2ad96f;const _0x2b950a=this['bindTemplate'];this[_0x1ed0('0x9')]({'tag':_0x1ed0('0xb'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x1ed0('0xf'),_0x2b950a['if'](_0x1ed0('0x17'),_0x1ed0('0xd'))],'tabindex':-0x1},'children':this[_0x1ed0('0x6')]});}[_0x1ed0('0x2')](){super['render'](),this[_0x1ed0('0x0')][_0x1ed0('0x15')](this[_0x1ed0('0x8')]),this[_0x1ed0('0x4')]['listenTo'](this['element']),this['_mutationObserver'][_0x1ed0('0x10')](this[_0x1ed0('0x8')]);}[_0x1ed0('0x1')](){this['content'][_0x1ed0('0x16')](),this['keystrokes']['destroy'](),this['focusTracker'][_0x1ed0('0x1')](),this[_0x1ed0('0x5')]['detach'](),super[_0x1ed0('0x1')]();}[_0x1ed0('0x3')](){this['element'][_0x1ed0('0x3')]();}[_0x1ed0('0xa')](){const _0x43b0ae=this[_0x1ed0('0x8')]['clientHeight'];_0x43b0ae&&(this['height']=_0x43b0ae);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ff5=['set','content','updateHeight','div','detach','top','destroy','ck-sidebar-item--no-animation','isAnimationDisabled','setTemplate','_mutationObserver','_targetTop','render','clear','height','element','bottom','clientHeight','bind','bindTemplate'];(function(_0x267faa,_0x4ff55b){const _0x4154b3=function(_0x5848b4){while(--_0x5848b4){_0x267faa['push'](_0x267faa['shift']());}};_0x4154b3(++_0x4ff55b);}(_0x4ff5,0x105));const _0x4154=function(_0x267faa,_0x4ff55b){_0x267faa=_0x267faa-0x0;let _0x4154b3=_0x4ff5[_0x267faa];return _0x4154b3;};import{View as _0x385eb6}from'ckeditor5/src/ui';import{toUnit as _0x26cd37}from'ckeditor5/src/utils';import _0x31b543 from'../../utils/createmutationobserver';const At=_0x26cd37('px');export default class C extends _0x385eb6{constructor(_0x1f21c2){super(_0x1f21c2),this[_0x4154('0x13')](_0x4154('0x4'),0x0),this[_0x4154('0x13')](_0x4154('0xd'),0x0),this[_0x4154('0x11')](_0x4154('0xf'))['to'](this,_0x4154('0x4'),this,_0x4154('0xd'),(_0xf8eebb,_0x3b236d)=>_0xf8eebb+_0x3b236d),this[_0x4154('0x13')](_0x4154('0x7'),!0x1),this[_0x4154('0x9')]=_0x31b543(()=>this[_0x4154('0x1')]()),this[_0x4154('0xa')]=null,this['content']=this['createCollection']();const _0x331977=this[_0x4154('0x12')];this[_0x4154('0x8')]({'tag':_0x4154('0x2'),'attributes':{'class':['ck-sidebar-item',_0x331977['to'](_0x4154('0x7'),_0x53f346=>_0x53f346?_0x4154('0x6'):'')],'style':{'top':_0x331977['to'](_0x4154('0x4'),_0x5b600c=>At(_0x5b600c))}},'children':this[_0x4154('0x0')]});}[_0x4154('0xb')](){super[_0x4154('0xb')](),this['_mutationObserver']['attach'](this[_0x4154('0xe')]);}[_0x4154('0x1')](){const _0x5a0b30=this[_0x4154('0xe')][_0x4154('0x10')];_0x5a0b30&&(this[_0x4154('0xd')]=_0x5a0b30);}[_0x4154('0x5')](){this[_0x4154('0x0')][_0x4154('0xc')](),this[_0x4154('0x9')][_0x4154('0x3')](),super[_0x4154('0x5')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x263a=['ck-reset','set','number','class','ck-sidebar','list','createCollection','minHeight','setTemplate','div'];(function(_0x35c4b6,_0x263a9f){const _0x54872c=function(_0x2f0b3d){while(--_0x2f0b3d){_0x35c4b6['push'](_0x35c4b6['shift']());}};_0x54872c(++_0x263a9f);}(_0x263a,0x146));const _0x5487=function(_0x35c4b6,_0x263a9f){_0x35c4b6=_0x35c4b6-0x0;let _0x54872c=_0x263a[_0x35c4b6];return _0x54872c;};import{View as _0x8f7054}from'ckeditor5/src/ui';import{toUnit as _0x253996}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x253996('px');export default class T extends _0x8f7054{constructor(_0x2605fa){super(_0x2605fa);const _0x1e4b52=this['bindTemplate'];this[_0x5487('0x5')](_0x5487('0x1'),0x0),this[_0x5487('0x5')](_0x5487('0x7'),''),this['list']=this[_0x5487('0x0')](),this[_0x5487('0x2')]({'tag':_0x5487('0x3'),'attributes':{'class':['ck',_0x5487('0x8'),_0x5487('0x4'),_0x1e4b52['to'](_0x5487('0x7'))],'style':{'minHeight':_0x1e4b52['to'](_0x5487('0x1'),_0x28cd8c=>_0x5487('0x6')==typeof _0x28cd8c?At(_0x28cd8c+0xa):null)}},'children':this[_0x5487('0x9')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24cf=['annotations','editors','_activeAnnotation','_integrateWithEditorAnnotations','removeEventListener','wideSidebar','set','_annotations','set:container','updateTargetRect','high','has','WideSidebar','refresh','from','container','init','add','context','change:container','addAnnotation','uiUpdate','_editorAnnotations','rearrange','ready','switchTo','widesidebar-attach-already-attached','focus','stopListening','_destroyEditorAnnotationsIntegration','refreshPositioning','listenTo','register','remove','plugins','detach','getOrderedSelectedAnnotations','hasDomSelection','isAttached','destroy','requires','setActiveAnnotation','cancel','get','_refreshPositioningDebounced','_attachToContainer','attach','activeAnnotation','resize','blur','_detachFromContainer','addEventListener'];(function(_0xc57124,_0x24cfd1){const _0x243576=function(_0x1f319f){while(--_0x1f319f){_0xc57124['push'](_0xc57124['shift']());}};_0x243576(++_0x24cfd1);}(_0x24cf,0x97));const _0x2435=function(_0xc57124,_0x24cfd1){_0xc57124=_0xc57124-0x0;let _0x243576=_0x24cf[_0xc57124];return _0x243576;};import{ContextPlugin as _0x3276d2,Context as _0x114d4d}from'ckeditor5/src/core';import _0x61cc94 from'./annotationsuis';import _0x14536b from'./sidebar';import{CKEditorError as _0x52b619,Collection as _0x6236ec}from'ckeditor5/src/utils';import{debounce as _0x57a2b3}from'lodash-es';import _0x311821 from'./editorannotations';export default class i extends _0x3276d2{static get[_0x2435('0x2d')](){return[_0x14536b,_0x61cc94];}static get['pluginName'](){return _0x2435('0x11');}constructor(_0x341b3d){super(_0x341b3d),this[_0x2435('0x2b')]=!0x1,this[_0x2435('0xb')](_0x2435('0x0'),null),this[_0x2435('0x5')]=null,this[_0x2435('0x1b')]=new _0x6236ec(),this['_refreshPositioningDebounced']=_0x57a2b3(()=>{this[_0x2435('0x5')][_0x2435('0x23')]();},0xfa,{'leading':!0x1});}[_0x2435('0x15')](){const _0x171d67=this[_0x2435('0x17')][_0x2435('0x27')][_0x2435('0x30')](_0x61cc94),_0x3c6140=this[_0x2435('0x17')][_0x2435('0x27')][_0x2435('0x30')](_0x14536b);_0x171d67[_0x2435('0x25')](_0x2435('0xa'),this),_0x3c6140[_0x2435('0x14')]&&_0x171d67[_0x2435('0x1e')]('wideSidebar');}[_0x2435('0x2e')](_0x128ff7){if(_0x128ff7===this['activeAnnotation'])return;const _0x1e5223=this[_0x2435('0x17')][_0x2435('0x27')][_0x2435('0x30')](_0x14536b);_0x1e5223[_0x2435('0x7')]=_0x128ff7;const _0x2ea321=this['activeAnnotation'];this['activeAnnotation']=_0x128ff7,_0x1e5223[_0x2435('0x12')]({'blurredAnnotation':_0x2ea321,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x2badd1){this[_0x2435('0x5')]=_0x2badd1;const _0xdde0ff=this['context'][_0x2435('0x27')][_0x2435('0x30')](_0x14536b);if(_0xdde0ff[_0x2435('0xc')]=_0x2badd1,this[_0x2435('0x2b')])throw new _0x52b619(_0x2435('0x1f'),this);this[_0x2435('0x2b')]=!0x0,this[_0x2435('0x24')](_0xdde0ff,_0x2435('0xd'),()=>{this[_0x2435('0x28')](),this['listenTo'](_0xdde0ff,_0x2435('0x18'),_0x14ca92=>{_0x14ca92['off'](),this[_0x2435('0x33')](_0x2badd1);});}),_0xdde0ff[_0x2435('0x32')]({'viewClass':'ck-sidebar--wide'});const _0x182eea=_0x34bf61=>{_0x34bf61[_0x2435('0xe')](),_0xdde0ff[_0x2435('0x19')](_0x34bf61);};for(const _0x4475bc of _0x2badd1)_0x182eea(_0x4475bc);this[_0x2435('0x24')](_0x2badd1,_0x2435('0x16'),(_0x5f24b5,_0x22bc1c)=>{_0x182eea(_0x22bc1c);}),this[_0x2435('0x24')](_0x2badd1,_0x2435('0x26'),(_0x3c0eb4,_0x38fdbf,_0x2cb10a)=>{_0xdde0ff[_0x2435('0x1c')]({'removedAnnotation':_0x38fdbf,'previousAnnotation':_0x2badd1[_0x2435('0x30')](_0x2cb10a-0x1),'nextAnnotation':_0x2badd1['get'](_0x2cb10a+0x1)}),_0x38fdbf===this[_0x2435('0x0')]&&this[_0x2435('0x2e')](null);},{'priority':_0x2435('0xf')}),this[_0x2435('0x24')](_0x2badd1,_0x2435('0x20'),(_0x4bce5a,_0x2b6837)=>{this[_0x2435('0x2e')](_0x2b6837);}),this[_0x2435('0x24')](_0x2badd1,_0x2435('0x2'),()=>{this[_0x2435('0x2e')](null);});const _0x506e39=this[_0x2435('0x17')]instanceof _0x114d4d?this[_0x2435('0x17')][_0x2435('0x6')]:new _0x6236ec([this['context']]);for(const _0x55bcee of _0x506e39)this[_0x2435('0x8')](_0x55bcee);this[_0x2435('0x24')](_0x506e39,_0x2435('0x16'),(_0x226748,_0x42da9b)=>{this['listenTo'](_0x42da9b,_0x2435('0x1d'),()=>{this['_integrateWithEditorAnnotations'](_0x42da9b);});}),this[_0x2435('0x24')](_0x506e39,_0x2435('0x26'),(_0xf7945b,_0x2c800b)=>{_0x2c800b[_0x2435('0x27')][_0x2435('0x10')]('EditorAnnotations')&&this[_0x2435('0x22')](_0x2c800b[_0x2435('0x27')][_0x2435('0x30')]('EditorAnnotations'));}),window[_0x2435('0x4')](_0x2435('0x1'),this[_0x2435('0x31')]),this['annotations'][_0x2435('0x23')]();}[_0x2435('0x28')](){if(!this['isAttached'])throw new _0x52b619('widesidebar-detach-not-attached',this);this[_0x2435('0x2e')](null);const _0x50d1e1=this[_0x2435('0x17')]['plugins'][_0x2435('0x30')](_0x14536b);_0x50d1e1[_0x2435('0x3')](this[_0x2435('0x5')]),this[_0x2435('0x21')](_0x50d1e1),this[_0x2435('0x21')](this['annotations']),this[_0x2435('0x17')]instanceof _0x114d4d&&this[_0x2435('0x21')](this[_0x2435('0x17')][_0x2435('0x6')]);for(const _0x3e40de of Array[_0x2435('0x13')](this[_0x2435('0x1b')]))this[_0x2435('0x22')](_0x3e40de);window[_0x2435('0x9')](_0x2435('0x1'),this[_0x2435('0x31')]),this[_0x2435('0x31')][_0x2435('0x2f')](),this[_0x2435('0x0')]=null,this['isAttached']=!0x1,this[_0x2435('0x5')]=null;}[_0x2435('0x2c')](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0xeefba5){const _0x1428ab=_0xeefba5[_0x2435('0x27')][_0x2435('0x30')](_0x311821);if(!_0x1428ab)return;const _0x1e2705=()=>{const _0x4bb924=_0x1428ab[_0x2435('0x29')]({'annotations':this[_0x2435('0x5')],'activeAnnotation':this[_0x2435('0x0')]});this[_0x2435('0x2e')](_0x4bb924[0x0]||null);};this[_0x2435('0x24')](_0x1428ab,_0x2435('0x12'),_0x1e2705),this[_0x2435('0x24')](_0x1428ab,_0x2435('0x2'),(_0x208007,{isAnnotationTracked:_0xd95b58})=>{this[_0x2435('0x0')]&&_0xd95b58(this[_0x2435('0x0')])&&this[_0x2435('0x2e')](null);}),this['listenTo'](_0x1428ab,_0x2435('0x1a'),()=>{this[_0x2435('0x31')]();}),this[_0x2435('0x24')](this['annotations'],_0x2435('0x2'),_0x38c7df=>{_0x1428ab[_0x2435('0x2a')]()&&(_0x1e2705(),_0x38c7df['stop']());},{'priority':_0x2435('0xf')}),this[_0x2435('0x1b')][_0x2435('0x16')](_0x1428ab);}[_0x2435('0x22')](_0x37e17b){this[_0x2435('0x21')](_0x37e17b),this['_editorAnnotations'][_0x2435('0x26')](_0x37e17b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c46=['selection','isObject','getItems','document','push','comment:','editor','element','addMarker','refresh','substr','_itemIsContent','_trimToContent','_hasContent','isEnabled','createRange','$textProxy','model','change','item','end','start','getRanges','tableCell','getLastMatchingPosition'];(function(_0x351f58,_0x2c468f){const _0x9cd0c1=function(_0x1d9344){while(--_0x1d9344){_0x351f58['push'](_0x351f58['shift']());}};_0x9cd0c1(++_0x2c468f);}(_0x2c46,0x143));const _0x9cd0=function(_0x351f58,_0x2c468f){_0x351f58=_0x351f58-0x0;let _0x9cd0c1=_0x2c46[_0x351f58];return _0x9cd0c1;};import{Command as _0x30aeee}from'ckeditor5/src/core';import{uid as _0x47a2ff}from'ckeditor5/src/utils';export default class q extends _0x30aeee{[_0x9cd0('0xb')](){const _0x327ec4=this[_0x9cd0('0x8')][_0x9cd0('0x13')][_0x9cd0('0x5')][_0x9cd0('0x2')];for(const _0x50d506 of _0x327ec4[_0x9cd0('0x18')]())if(this['_hasContent'](_0x50d506))return void(this[_0x9cd0('0x10')]=!0x0);this[_0x9cd0('0x10')]=!0x1;}['execute']({threadId:_0xeb37bb=_0x47a2ff()}={}){const _0x20a924=this[_0x9cd0('0x8')]['model'],_0x5813cb=[];for(const _0x34a6d5 of _0x20a924[_0x9cd0('0x5')]['selection'][_0x9cd0('0x18')]())this[_0x9cd0('0xf')](_0x34a6d5)&&_0x5813cb[_0x9cd0('0x6')](this[_0x9cd0('0xe')](_0x34a6d5));_0x20a924[_0x9cd0('0x14')](_0x2c2255=>{for(const _0x473e87 of _0x5813cb){const _0x4272c5=_0x47a2ff()[_0x9cd0('0xc')](0x1,0x5),_0x41ce11=_0x9cd0('0x7')+_0xeb37bb+':'+_0x4272c5;_0x2c2255[_0x9cd0('0xa')](_0x41ce11,{'range':_0x473e87,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x1f77df){for(const _0x3e5238 of _0x1f77df[_0x9cd0('0x4')]())if(this[_0x9cd0('0xd')](_0x3e5238))return!0x0;return!0x1;}[_0x9cd0('0xd')](_0x19cc5b){return _0x19cc5b['is'](_0x9cd0('0x12'))||this[_0x9cd0('0x8')][_0x9cd0('0x13')]['schema'][_0x9cd0('0x3')](_0x19cc5b)&&!_0x19cc5b['is'](_0x9cd0('0x9'),_0x9cd0('0x0'));}['_trimToContent'](_0x456eb5){const _0x3694cb=_0x305fa2=>!this['_itemIsContent'](_0x305fa2[_0x9cd0('0x15')]),_0x32e299=_0x456eb5[_0x9cd0('0x17')][_0x9cd0('0x1')](_0x3694cb),_0x3e8746=_0x456eb5[_0x9cd0('0x16')]['getLastMatchingPosition'](_0x3694cb,{'direction':'backward'});return this[_0x9cd0('0x8')][_0x9cd0('0x13')][_0x9cd0('0x11')](_0x32e299,_0x3e8746);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2267=['_calculatePosition','reopenCommentThread','getCommentThread','remove','length','has','findIndex','removeCommentThread','resolvedAt','pluginName','add','listenTo','plugins','focus','highest','resolveCommentThread','addCommentThread','activate','resolvedThreads','get'];(function(_0x2867cc,_0x22674e){const _0x262fc0=function(_0x5f5b9b){while(--_0x5f5b9b){_0x2867cc['push'](_0x2867cc['shift']());}};_0x262fc0(++_0x22674e);}(_0x2267,0x10d));const _0x262f=function(_0x2867cc,_0x22674e){_0x2867cc=_0x2867cc-0x0;let _0x262fc0=_0x2267[_0x2867cc];return _0x262fc0;};import{ContextPlugin as _0x359202}from'ckeditor5/src/core';import{Collection as _0xa238b9}from'ckeditor5/src/utils';import _0x150d41 from'./commentsrepository';import _0x5ed7e6 from'../annotations/annotations';export default class p extends _0x359202{static get[_0x262f('0x0')](){return'CommentsArchive';}static get['requires'](){return[_0x150d41,_0x5ed7e6];}constructor(_0x15540c){super(_0x15540c),this[_0x262f('0x9')]=new _0xa238b9();}['init'](){const _0x50e107=this['context'],_0x1bfee4=_0x50e107[_0x262f('0x3')][_0x262f('0xa')](_0x150d41),_0x74c0ac=_0x50e107[_0x262f('0x3')][_0x262f('0xa')](_0x5ed7e6);this['listenTo'](_0x1bfee4,_0x262f('0x7'),(_0x52db6c,{threadId:_0xca202b,resolvedAt:_0x164967,deletedAt:_0x10e724})=>{if(_0x164967&&!_0x10e724){const _0x8298f2=_0x1bfee4[_0x262f('0xd')](_0xca202b);this[_0x262f('0x9')][_0x262f('0x1')](_0x8298f2,this[_0x262f('0xb')](_0x164967));}}),this[_0x262f('0x2')](_0x1bfee4,_0x262f('0x6'),(_0x1dcec3,{threadId:_0x4d5b33,resolvedAt:_0x1c2e32})=>{const _0x582c5d=_0x1bfee4[_0x262f('0xd')](_0x4d5b33);this[_0x262f('0x9')][_0x262f('0x1')](_0x582c5d,this[_0x262f('0xb')](_0x1c2e32));},{'priority':_0x262f('0x5')}),this[_0x262f('0x2')](_0x1bfee4,_0x262f('0xc'),(_0x4d20f6,{threadId:_0x307332})=>{const _0x3cc4a3=_0x1bfee4[_0x262f('0xd')](_0x307332);this[_0x262f('0x9')][_0x262f('0x10')](_0x3cc4a3)&&this[_0x262f('0x9')]['remove'](_0x3cc4a3);},{'priority':_0x262f('0x5')}),this[_0x262f('0x2')](_0x1bfee4,_0x262f('0x12'),(_0x5cdff3,{threadId:_0x5e568a})=>{const _0x16e1d5=_0x1bfee4['getCommentThread'](_0x5e568a);this[_0x262f('0x9')][_0x262f('0x10')](_0x16e1d5)&&this[_0x262f('0x9')][_0x262f('0xe')](_0x16e1d5);},{'priority':_0x262f('0x5')}),this[_0x262f('0x2')](_0x74c0ac['collection'],_0x262f('0x4'),(_0x30337f,_0x464757)=>{_0x464757['isActive']=!0x0,_0x74c0ac[_0x262f('0x8')](_0x464757);});}[_0x262f('0xb')](_0x36c660){const _0x53d6e3=[...this[_0x262f('0x9')]][_0x262f('0x11')](_0x2c85e5=>_0x2c85e5[_0x262f('0x13')]<_0x36c660);return _0x53d6e3>-0x1?_0x53d6e3:this[_0x262f('0x9')][_0x262f('0xf')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e14=['children','_threadToController','filter','get','buttonView','view','extendTemplate','plugins','isVisible','getByInnerView','editor','commentsArchiveView','annotationViews','innerView','indexOf','find','locale','splice','resolvedThreads','_pendingThreads','_handleAnnotationFocusableElements','remove','classList','COMMENTS_ARCHIVE','CommentsArchiveUI','focusableElements','contains','ck-body','init','Annotations','mainView','CommentsRepository','set','add','panelView','requires','channelId','_createArchiveUIDropdown','push','listenTo','collaboration.channelId','focusTracker','findIndex','position','config'];(function(_0x5a8c1d,_0x3e142d){const _0x58f561=function(_0x3daa2b){while(--_0x3daa2b){_0x5a8c1d['push'](_0x5a8c1d['shift']());}};_0x58f561(++_0x3e142d);}(_0x3e14,0x1e0));const _0x58f5=function(_0x5a8c1d,_0x3e142d){_0x5a8c1d=_0x5a8c1d-0x0;let _0x58f561=_0x3e14[_0x5a8c1d];return _0x58f561;};import'../../theme/commentsarchive.css';import{Plugin as _0x2c28ee}from'ckeditor5/src/core';import{createDropdown as _0xc11b4f,ViewCollection as _0x59a959}from'ckeditor5/src/ui';import _0x2543ce from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x2a02fd}from'../utils/common-translations';import _0x4cce20 from'./ui/view/commentsarchiveview';import _0x19b235 from'./commentsarchive';export default class a extends _0x2c28ee{static get['pluginName'](){return _0x58f5('0x27');}static get[_0x58f5('0x5')](){return[_0x19b235];}constructor(_0x3c0597){super(_0x3c0597),this[_0x58f5('0x1b')]=new _0x59a959(),this['_pendingThreads']=[];}[_0x58f5('0x2b')](){this['editor']['ui']['componentFactory'][_0x58f5('0x3')]('commentsArchive',()=>this[_0x58f5('0x7')]());const _0x4b2a4f=this[_0x58f5('0x19')][_0x58f5('0x16')][_0x58f5('0x12')](_0x19b235),_0x1ab67e=this[_0x58f5('0x19')][_0x58f5('0x16')][_0x58f5('0x12')]('Annotations'),_0x19573f=this['editor'][_0x58f5('0x16')][_0x58f5('0x12')](_0x58f5('0x1'));this[_0x58f5('0x9')](_0x4b2a4f[_0x58f5('0x21')],'add',(_0x21d027,_0x5eaa20)=>{const _0xa745bd=this[_0x58f5('0x19')][_0x58f5('0xe')]['get']('collaboration.channelId');if(!_0xa745bd||_0x5eaa20[_0x58f5('0x6')]===_0xa745bd){const _0x2acab1=this['_calculatePosition'](_0x5eaa20['resolvedAt']),_0x270510=_0x19573f[_0x58f5('0x10')][_0x58f5('0x12')](_0x5eaa20);if(!_0x270510)return void this[_0x58f5('0x22')][_0x58f5('0x8')]({'thread':_0x5eaa20,'position':_0x2acab1});const _0xd0b85f=_0x1ab67e[_0x58f5('0x18')](_0x270510[_0x58f5('0x14')]);_0xd0b85f[_0x58f5('0x17')]&&_0x1ab67e['_visibleAnnotations'][_0x58f5('0x24')](_0xd0b85f),this[_0x58f5('0x1b')][_0x58f5('0x3')](_0xd0b85f[_0x58f5('0x14')],_0x2acab1);}}),this[_0x58f5('0x9')](_0x1ab67e['collection'],'add',(_0x20807e,_0xed6bd9)=>{const _0x3c4742=this[_0x58f5('0x22')][_0x58f5('0x1e')](({thread:_0x455ea8})=>{const _0x3af6b1=_0x19573f[_0x58f5('0x10')]['get'](_0x455ea8);return _0x3af6b1&&_0xed6bd9[_0x58f5('0x1c')]===_0x3af6b1[_0x58f5('0x14')];});_0x3c4742&&(this[_0x58f5('0x1b')][_0x58f5('0x3')](_0xed6bd9[_0x58f5('0x14')],_0x3c4742[_0x58f5('0xd')]),this[_0x58f5('0x22')][_0x58f5('0x20')](this[_0x58f5('0x22')][_0x58f5('0x1d')](_0x3c4742),0x1));}),this[_0x58f5('0x9')](_0x4b2a4f[_0x58f5('0x21')],_0x58f5('0x24'),(_0x1cb7e3,_0xcbc77c)=>{const _0x13c355=this[_0x58f5('0x19')][_0x58f5('0xe')][_0x58f5('0x12')](_0x58f5('0xa'));if(!_0x13c355||_0xcbc77c[_0x58f5('0x6')]===_0x13c355){const _0x5e3f81=_0x19573f[_0x58f5('0x10')][_0x58f5('0x12')](_0xcbc77c),_0x30674b=_0x1ab67e[_0x58f5('0x18')](_0x5e3f81[_0x58f5('0x14')]);this[_0x58f5('0x1b')][_0x58f5('0x24')](_0x30674b[_0x58f5('0x14')]),this['stopListening'](_0x30674b[_0x58f5('0x28')]);}});}['_handleAnnotationFocusableElements'](_0x2308ea,_0x1937a0){for(const _0x8e35ea of _0x1937a0[_0x58f5('0x28')])_0x8e35ea[_0x58f5('0x25')][_0x58f5('0x29')](_0x58f5('0x2a'))&&_0x2308ea[_0x58f5('0xb')][_0x58f5('0x3')](_0x8e35ea);this['listenTo'](_0x1937a0[_0x58f5('0x28')],_0x58f5('0x3'),(_0x4783fc,_0x1ba40e)=>{_0x1ba40e[_0x58f5('0x25')][_0x58f5('0x29')]('ck-body')&&_0x2308ea[_0x58f5('0xb')][_0x58f5('0x3')](_0x1ba40e);}),this[_0x58f5('0x9')](_0x1937a0[_0x58f5('0x28')],_0x58f5('0x24'),(_0x93ff4,_0x20656a)=>{_0x20656a[_0x58f5('0x25')][_0x58f5('0x29')]('ck-body')&&_0x2308ea['focusTracker'][_0x58f5('0x24')](_0x20656a);});}['_calculatePosition'](_0x376895){const _0x5c3e3c=this[_0x58f5('0x19')][_0x58f5('0xe')][_0x58f5('0x12')](_0x58f5('0xa')),_0x500254=[...this[_0x58f5('0x19')][_0x58f5('0x16')][_0x58f5('0x12')](_0x19b235)[_0x58f5('0x21')]][_0x58f5('0x11')](_0x56f2ee=>_0x56f2ee['channelId']!==_0x5c3e3c)[_0x58f5('0xc')](_0x573d7b=>_0x573d7b['resolvedAt']<_0x376895);return _0x500254>-0x1?_0x500254:this[_0x58f5('0x1b')]['length'];}[_0x58f5('0x7')](){const _0x11f171=this[_0x58f5('0x19')],_0x2db325=this[_0x58f5('0x19')][_0x58f5('0x16')][_0x58f5('0x12')](_0x58f5('0x2c')),_0x219d0d=_0xc11b4f(_0x11f171[_0x58f5('0x1f')]);_0x219d0d[_0x58f5('0x13')][_0x58f5('0x2')]({'icon':_0x2543ce,'label':_0x2a02fd(_0x11f171[_0x58f5('0x1f')],_0x58f5('0x26')),'tooltip':!0x0}),_0x219d0d[_0x58f5('0x4')][_0x58f5('0x15')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x219d0d['on']('change:isOpen',(_0x1cf2fa,_0x54408f,_0x3b39b1)=>{this[_0x58f5('0x1a')]||(this[_0x58f5('0x1a')]=new _0x4cce20(_0x11f171['locale'],this[_0x58f5('0x1b')])),_0x3b39b1?_0x219d0d[_0x58f5('0x4')][_0x58f5('0xf')][_0x58f5('0x3')](this['commentsArchiveView']):_0x219d0d[_0x58f5('0x4')]['children'][_0x58f5('0x24')](this[_0x58f5('0x1a')]);});for(const _0x119fcd of this[_0x58f5('0x1b')]){const _0x33e12c=_0x2db325[_0x58f5('0x18')](_0x119fcd[_0x58f5('0x0')]);this[_0x58f5('0x23')](_0x219d0d,_0x33e12c);}return _0x219d0d[_0x58f5('0x9')](this[_0x58f5('0x1b')],_0x58f5('0x3'),(_0x32531f,_0x95c782)=>{const _0x3476d7=_0x2db325['getByInnerView'](_0x95c782[_0x58f5('0x0')]);this[_0x58f5('0x23')](_0x219d0d,_0x3476d7);}),_0x219d0d[_0x58f5('0x9')](this['annotationViews'],'remove',(_0xa4a1b2,_0x58bf67)=>{const _0x15418e=_0x2db325[_0x58f5('0x18')](_0x58bf67[_0x58f5('0x0')]);for(const _0x5f020e of _0x15418e[_0x58f5('0x28')])_0x5f020e[_0x58f5('0x25')][_0x58f5('0x29')](_0x58f5('0x2a'))&&_0x219d0d['focusTracker'][_0x58f5('0x24')](_0x5f020e);}),_0x219d0d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4f36=['destroy','_attachMarkerToThread','filter','upcast','map','config','openNewCommentThread','CommentsEditing','addMarker:','markerName','addComment','ck-comment-marker--active','removeMarker','differ','registerAnnotation','includes','fetchCommentThread','isLocal','_hasTargetInContent','scrollToThreadMarker','init','item','low','_getTargetForId','root','schema','collaboration.channelId','_getTextContext','set','conversion','then','removeCommentThread','text','newRange','change:activeMarker','attachTo','start','focus','push','addCommentThread','listenTo','_handleThreadMarker','getWalker','removeMarker:','comment','view','_reconvertMarkers','state','substring','_initializeMarkerConverters','dataToMarker','hasContent','hasCommentThread','getChangedMarkers','$textProxy','markerToHighlight','model','get','getAttribute','_detachCommentThread','add','data','consumable','setContext','change','isEqual','comment:','_handleMarkerAddAndRemove','from','plugins','reconvertMarker','dataDowncast','getByInnerView','editing','requires','registerPostFixer','render','getAllMarkersForId','isThreadsLoadingPaused','has','isResolved','delete','$marker','resolve','updateMarker','hasMarkerForId','createPositionBefore','refreshVisibility','$graveyard','end','activeMarker','size','reopenCommentThread','_threads','editingDowncast','markers','once','for','getCommentThread','affectsData','split','editor','ready','_attachedThreads','length','switchReadOnly','consume','markerToData','pluginName','enqueueChange','reopen','context','ck-comment-marker'];(function(_0x4caa13,_0x4f369b){const _0x140c94=function(_0x478a07){while(--_0x478a07){_0x4caa13['push'](_0x4caa13['shift']());}};_0x140c94(++_0x4f369b);}(_0x4f36,0x1a6));const _0x140c=function(_0x4caa13,_0x4f369b){_0x4caa13=_0x4caa13-0x0;let _0x140c94=_0x4f36[_0x4caa13];return _0x140c94;};import{Plugin as _0x2e92e6}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2c2f83}from'ckeditor5/src/utils';import _0xa4ac8 from'./commentsrepository';import _0x459640 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x40a111}from'ckeditor5-collaboration/src/collaboration-core';import _0x1e9a36 from'../annotations/editorannotations';import _0x340e38 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x1d284d from'./integrations/importword';import _0x22fe3d from'../annotations/annotations';export default class r extends _0x2e92e6{static get[_0x140c('0x68')](){return[_0xa4ac8,_0x1e9a36,_0x340e38,_0x1d284d];}static get[_0x140c('0x19')](){return _0x140c('0x25');}constructor(_0x414b85){super(_0x414b85),this[_0x140c('0x3a')]('isThreadsLoadingPaused',!0x0),_0x414b85[_0x140c('0x5b')][_0x140c('0xd')](_0x140c('0x13'),()=>this[_0x140c('0x6c')]=!0x1),this[_0x140c('0x3a')](_0x140c('0x7'),null),this['on'](_0x140c('0x40'),(_0x17bd62,_0x3d2cb3,_0x18168d,_0x541d8b)=>{const _0x3dddb0=_0x18168d?tt(_0x18168d)['id']:null;if(_0x414b85[_0x140c('0x56')]['change'](()=>{if(_0x3dddb0){const _0x358544=this[_0x140c('0x6b')](_0x3dddb0);for(const _0x461ec3 of _0x358544)_0x414b85[_0x140c('0x67')][_0x140c('0x64')](_0x461ec3);}if(_0x541d8b){const {id:_0x2a140f}=tt(_0x541d8b),_0x5d5ae1=this['getAllMarkersForId'](_0x2a140f);for(const _0x50575e of _0x5d5ae1)_0x414b85[_0x140c('0x67')][_0x140c('0x64')](_0x50575e);}}),_0x3dddb0){const _0x217b52=_0x414b85['plugins']['get'](_0xa4ac8)[_0x140c('0xf')](_0x3dddb0);_0x217b52&&_0x217b52[_0x140c('0x6e')]&&this[_0x140c('0x31')](_0x3dddb0);}}),this[_0x140c('0x14')]=new Map();}[_0x140c('0x32')](){const _0x22f652=this['editor'],_0x264f38=_0x22f652[_0x140c('0x63')][_0x140c('0x57')](_0xa4ac8),_0x57e0d4=_0x22f652[_0x140c('0x23')][_0x140c('0x57')]('collaboration.channelId');_0x22f652['commands']['add'](_0x140c('0x45'),new _0x459640(_0x22f652)),this[_0x140c('0x46')](_0x22f652,'change:isReadOnly',(_0x52189f,_0x263b87,_0x1b915c)=>{_0x264f38[_0x140c('0x16')](_0x1b915c,_0x22f652['config'][_0x140c('0x57')]('collaboration.channelId'));}),this[_0x140c('0x46')](_0x264f38,Z(_0x140c('0x45'),_0x57e0d4),(_0x388ae5,{threadId:_0xa4ad67})=>{const _0x343429=_0x22f652[_0x140c('0x63')][_0x140c('0x57')](_0x1e9a36),_0x1c6476=this[_0x140c('0x12')][_0x140c('0x63')][_0x140c('0x57')](_0xa4ac8)['getCommentThread'](_0xa4ad67);if(_0x1c6476&&_0x1c6476[_0x140c('0x6e')]&&!this[_0x140c('0x14')][_0x140c('0x6d')](_0xa4ad67)){const _0x5e02a8=_0x1c6476[_0x140c('0x41')](()=>this[_0x140c('0x35')](_0x1c6476['id']));_0x343429['registerAnnotation'](_0x5e02a8),this['_attachedThreads'][_0x140c('0x3a')](_0xa4ad67,[]),0x0===this[_0x140c('0x6b')](_0xa4ad67)[_0x140c('0x15')]&&(_0x1c6476[_0x140c('0x30')]=!0x1);}}),this['listenTo'](_0x264f38,Z(_0x140c('0x3d'),_0x57e0d4),(_0x4ea497,{threadId:_0x49d57b})=>{_0x22f652[_0x140c('0x56')][_0x140c('0x1a')]({'isUndoable':!0x1},_0xd8b0e7=>{const _0x4b5969=this[_0x140c('0x6b')](_0x49d57b);this[_0x140c('0x14')][_0x140c('0x6f')](_0x49d57b);for(const _0x5e39ec of _0x4b5969)_0xd8b0e7['removeMarker'](_0x5e39ec);});},{'priority':'high'}),this['listenTo'](_0x264f38,Z('resolveCommentThread',_0x57e0d4),(_0x16fb6e,{threadId:_0x4d8c34})=>{this[_0x140c('0x4c')](_0x4d8c34),this[_0x140c('0x12')][_0x140c('0x67')]['view']['hasDomSelection']&&this[_0x140c('0x12')][_0x140c('0x67')][_0x140c('0x4b')][_0x140c('0x43')]();},{'priority':_0x140c('0x34')}),this[_0x140c('0x46')](_0x264f38,Z(_0x140c('0x9'),_0x57e0d4),(_0x501f8b,{threadId:_0x33f4ec})=>{this[_0x140c('0x4c')](_0x33f4ec);},{'priority':_0x140c('0x34')}),this['listenTo'](_0x264f38,Z(_0x140c('0x28'),_0x57e0d4),(_0x46f854,{threadId:_0x450a98,isFromAdapter:_0x43a552})=>{const _0x14f2b3=this[_0x140c('0x6b')](_0x450a98);if(_0x43a552||0x0==_0x14f2b3[_0x140c('0x15')]||!_0x264f38[_0x140c('0x52')](_0x450a98))return;0x1===_0x264f38[_0x140c('0xf')](_0x450a98)[_0x140c('0x15')]&&_0x22f652['model'][_0x140c('0x1a')]({'isUndoable':!0x1},_0x2cbfa7=>{for(const _0x1417cc of _0x14f2b3)_0x2cbfa7[_0x140c('0x1')](_0x1417cc,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x140c('0x34')}),this['_initializeMarkerConverters'](),this[_0x140c('0x61')]();}['destroy'](){const _0x3d644f=this[_0x140c('0x12')][_0x140c('0x63')]['get'](_0xa4ac8),_0x2a942e=this[_0x140c('0x12')][_0x140c('0x23')][_0x140c('0x57')](_0x140c('0x38'));for(const _0x2ad1fb of _0x3d644f['getCommentThreads']({'channelId':_0x2a942e}))_0x3d644f[_0x140c('0x59')](_0x2ad1fb['id']),_0x3d644f[_0x140c('0xa')][_0x140c('0x6f')](_0x2ad1fb['id']);super[_0x140c('0x1e')]();}[_0x140c('0x2')](_0x157e26){return this[_0x140c('0x6b')](_0x157e26)[_0x140c('0x15')]>0x0;}['getAllMarkersForId'](_0xa6e93b){return(this[_0x140c('0x14')]['get'](_0xa6e93b)||[])[_0x140c('0x22')](_0x4a8342=>this['editor']['model'][_0x140c('0xc')][_0x140c('0x57')](_0x4a8342))[_0x140c('0x20')](_0x26be1d=>_0x26be1d);}[_0x140c('0x31')](_0x24a1fb){const _0x388d6e=this[_0x140c('0x35')](_0x24a1fb);_0x388d6e&&setTimeout(()=>{this[_0x140c('0x7')]&&tt(this['activeMarker'])['id']===_0x24a1fb&&_0x2c2f83({'target':_0x388d6e[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x140c('0x4c')](_0x106f3b){this[_0x140c('0x12')][_0x140c('0x56')][_0x140c('0x5e')](()=>{for(const _0x336e80 of this[_0x140c('0x6b')](_0x106f3b))this['editor']['editing'][_0x140c('0x64')](_0x336e80);});}[_0x140c('0x4f')](){const _0x425f5c=this[_0x140c('0x12')];_0x425f5c[_0x140c('0x3b')]['for'](_0x140c('0xb'))[_0x140c('0x55')]({'model':_0x140c('0x4a'),'view':(_0x522747,_0x2a3748)=>{const {id:_0xfbfa92}=tt(_0x522747[_0x140c('0x27')]),_0x39729c=_0x425f5c['plugins'][_0x140c('0x57')](_0xa4ac8)['getCommentThread'](_0xfbfa92),_0x23ea7e=this[_0x140c('0x7')]&&tt(this['activeMarker'])['id']===_0xfbfa92;if(_0x39729c&&_0x39729c[_0x140c('0x6e')]&&!_0x23ea7e&&_0x522747[_0x140c('0x33')])return _0x2a3748['consumable'][_0x140c('0x17')](_0x522747[_0x140c('0x33')],_0x140c('0x26')+_0x522747['markerName']),_0x2a3748[_0x140c('0x5c')][_0x140c('0x17')](_0x522747[_0x140c('0x33')],_0x140c('0x49')+_0x522747['markerName']),{'classes':[]};const _0x117ccd=[_0x140c('0x1d')];return _0x23ea7e&&_0x117ccd['push'](_0x140c('0x29')),{'classes':_0x117ccd,'attributes':{'data-comment':_0xfbfa92}};}}),_0x425f5c[_0x140c('0x3b')][_0x140c('0xe')](_0x140c('0x65'))[_0x140c('0x18')]({'model':_0x140c('0x4a'),'view':(_0x1d28d6,{options:_0x25aa45})=>{const _0x382774=_0x425f5c['plugins'][_0x140c('0x57')](_0xa4ac8),_0x1b1678=_0x425f5c[_0x140c('0x56')][_0x140c('0xc')][_0x140c('0x57')](_0x1d28d6),{id:_0x49db56,part:_0x1d368c}=tt(_0x1d28d6);if(_0x1b1678&&!_0x1b1678[_0x140c('0x10')])return null;if(_0x25aa45['ignoreResolvedComments']){const _0x5b857c=_0x382774[_0x140c('0xf')](_0x49db56);if(_0x5b857c&&_0x5b857c[_0x140c('0x6e')])return null;}return{'group':_0x140c('0x4a'),'name':_0x1d368c?_0x49db56+':'+_0x1d368c:_0x49db56};}}),_0x425f5c['conversion'][_0x140c('0xe')]('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x4daf17,{writer:_0x104905})=>_0x104905['createElement'](_0x140c('0x70'),{'data-name':_0x140c('0x60')+_0x4daf17[_0x140c('0x58')]('id')})}),_0x425f5c['conversion'][_0x140c('0xe')](_0x140c('0x21'))[_0x140c('0x50')]({'view':_0x140c('0x4a')});}['_handleMarkerAddAndRemove'](){const _0x1308fe=this['editor'],_0x418ce0=_0x1308fe['plugins'][_0x140c('0x57')](_0xa4ac8),_0x196978=new Set();_0x1308fe[_0x140c('0x56')]['document'][_0x140c('0x69')](_0x1d62b9=>{let _0x3baacd=!0x1;for(const {name:_0x534758,data:_0x59207d}of _0x1308fe[_0x140c('0x56')]['document']['differ'][_0x140c('0x53')]()){const {group:_0x321c2d,id:_0x33dcab}=tt(_0x534758);let _0x5b6d63=_0x59207d['newRange'];if(_0x140c('0x4a')!==_0x321c2d||!_0x5b6d63)continue;const _0x4f2aec=_0x140c('0x5')===_0x5b6d63[_0x140c('0x36')]['rootName'];_0x4f2aec||(_0x5b6d63=ot(_0x5b6d63,_0x1308fe['model']),!_0x5b6d63||!_0x59207d[_0x140c('0x3f')]||_0x5b6d63[_0x140c('0x5f')](_0x59207d[_0x140c('0x3f')]))?!_0x5b6d63||!_0x1308fe[_0x140c('0x56')][_0x140c('0x51')](_0x5b6d63)||this['_attachedThreads']['has'](_0x33dcab)&&_0x4f2aec?(_0x1d62b9[_0x140c('0x2a')](_0x534758),_0x3baacd=!0x0):_0x4f2aec||(this[_0x140c('0x6c')]?_0x196978[_0x140c('0x5a')](_0x534758):this[_0x140c('0x47')](_0x534758,_0x33dcab)):(_0x1d62b9['updateMarker'](_0x534758,{'range':_0x5b6d63}),_0x3baacd=!0x0);}return _0x3baacd;}),this['on']('change:isThreadsLoadingPaused',(_0x1d5a20,_0x3f6f84,_0x12de93)=>{if(!_0x12de93&&_0x196978[_0x140c('0x8')])for(const _0x4f6917 of _0x196978){const {id:_0x283713}=tt(_0x4f6917);_0x196978['delete'](_0x283713),_0x1308fe[_0x140c('0x56')][_0x140c('0xc')][_0x140c('0x57')](_0x4f6917)&&this[_0x140c('0x47')](_0x4f6917,_0x283713);}}),this['listenTo'](_0x1308fe[_0x140c('0x56')]['document'],'change',(_0xae09fe,_0x2df1cc)=>{for(const {name:_0x46f8cb,data:{newRange:_0x24558c}}of _0x1308fe['model']['document'][_0x140c('0x2b')][_0x140c('0x53')]()){const {group:_0x14650b,id:_0x272a41}=tt(_0x46f8cb);if('comment'!==_0x14650b)continue;const _0x392b3c=_0x418ce0['getCommentThread'](_0x272a41),_0x31f0bb=this[_0x140c('0x2')](_0x272a41);_0x392b3c&&(_0x392b3c['_hasTargetInContent']||_0x1308fe[_0x140c('0x67')][_0x140c('0x4b')][_0x140c('0xd')](_0x140c('0x6a'),()=>{const _0x4e86b1=_0x1308fe[_0x140c('0x63')][_0x140c('0x57')](_0x22fe3d),_0x20e4c0=_0x418ce0['_threadToController'][_0x140c('0x57')](_0x392b3c)[_0x140c('0x4b')];_0x4e86b1[_0x140c('0x66')](_0x20e4c0)[_0x140c('0x4')]();},{'priority':'low'}),_0x392b3c[_0x140c('0x30')]=_0x31f0bb||!!_0x24558c),!_0x24558c&&_0x2df1cc[_0x140c('0x2f')]&&(_0x196978[_0x140c('0x6f')](_0x272a41),_0x392b3c&&!_0x392b3c[_0x140c('0x6e')]&&!_0x31f0bb&&this[_0x140c('0x14')][_0x140c('0x6d')](_0x272a41)&&(this[_0x140c('0x14')][_0x140c('0x6f')](_0x272a41),_0x392b3c[_0x140c('0x0')]()));}});}[_0x140c('0x35')](_0x50605f){const _0x298c1b=this[_0x140c('0x12')],_0x413180=this['getAllMarkersForId'](_0x50605f);return _0x40a111(_0x298c1b[_0x140c('0x67')],_0x413180);}['_getTextContext'](_0x41e154){const _0x2bb778=this[_0x140c('0x6b')](_0x41e154);let _0x29bf7b='',_0x48f853=!0x1;for(const _0x4b7db3 of _0x2bb778){const _0x5277bc=_0x4b7db3['getRange']();for(const _0x194cb3 of Array[_0x140c('0x62')](_0x5277bc['getItems']()))_0x194cb3['is'](_0x140c('0x54'))?(_0x29bf7b&&_0x48f853&&(_0x29bf7b+='\x20',_0x48f853=!0x1),_0x29bf7b+=_0x194cb3[_0x140c('0x5b')]):_0x48f853=!0x0;_0x48f853=!0x0;}return _0x29bf7b[_0x140c('0x4e')](0x0,0x96);}[_0x140c('0x1f')](_0x285c54,_0x2c896f){const _0xc3bbd1=this[_0x140c('0x12')],_0x4fb5f5=_0xc3bbd1['plugins'][_0x140c('0x57')](_0xa4ac8);let _0x9f25aa=_0x4fb5f5['getCommentThread'](_0x2c896f);if(this[_0x140c('0x14')]['has'](_0x2c896f)){const _0x5c0469=this['_attachedThreads'][_0x140c('0x57')](_0x2c896f);return _0x5c0469[_0x140c('0x2d')](_0x285c54)||_0x5c0469[_0x140c('0x44')](_0x285c54),_0x9f25aa;}this[_0x140c('0x14')][_0x140c('0x3a')](_0x2c896f,[_0x285c54]);const _0x1ae9e5=_0xc3bbd1['config'][_0x140c('0x57')](_0x140c('0x38')),_0x3b1cff=_0xc3bbd1[_0x140c('0x63')][_0x140c('0x57')](_0x1e9a36);if(_0x9f25aa&&_0x9f25aa['isResolved'])return _0x9f25aa[_0x140c('0x1b')](),_0x9f25aa;return!this[_0x140c('0x6b')](_0x2c896f)[0x0]['managedUsingOperations']?_0xc3bbd1[_0x140c('0x67')][_0x140c('0x4b')]['once'](_0x140c('0x6a'),()=>{const _0x474bd4=_0xc3bbd1['plugins'][_0x140c('0x57')](_0x22fe3d);_0x9f25aa=_0x4fb5f5[_0x140c('0x24')]({'channelId':_0x1ae9e5,'threadId':_0x2c896f,'target':()=>this[_0x140c('0x35')](_0x2c896f),'context':{'type':_0x140c('0x3e'),'value':this[_0x140c('0x39')](_0x2c896f)}});const _0x3e4054=_0x4fb5f5['_threadToController'][_0x140c('0x57')](_0x9f25aa)[_0x140c('0x4b')],_0x2d7fea=_0x474bd4['getByInnerView'](_0x3e4054);_0x2d7fea&&_0x3b1cff['registerAnnotation'](_0x2d7fea);},{'priority':_0x140c('0x34')}):_0x4fb5f5[_0x140c('0x2e')]({'channelId':_0x1ae9e5,'threadId':_0x2c896f})[_0x140c('0x3c')](_0x55e243=>{if('destroyed'!==_0xc3bbd1[_0x140c('0x4d')]){if(_0x9f25aa=_0x55e243,_0x9f25aa){const _0x1c4ec3=_0x9f25aa['attachTo'](()=>this[_0x140c('0x35')](_0x2c896f));_0x3b1cff[_0x140c('0x2c')](_0x1c4ec3),_0x9f25aa[_0x140c('0x6e')]&&this[_0x140c('0x4c')](_0x2c896f);}else{const _0x543d50=this[_0x140c('0x6b')](_0x2c896f);_0xc3bbd1['model'][_0x140c('0x5e')](_0x52d883=>{for(const _0x3fc68f of _0x543d50)_0x52d883[_0x140c('0x2a')](_0x3fc68f);});}}}),_0x9f25aa;}[_0x140c('0x47')](_0x537542,_0x26eabf){const _0x22cb82=this[_0x140c('0x1f')](_0x537542,_0x26eabf);_0x22cb82&&!_0x22cb82[_0x140c('0x1c')]&&_0x22cb82[_0x140c('0x5d')]({'type':_0x140c('0x3e'),'value':this[_0x140c('0x39')](_0x26eabf)});}}function Z(_0x207f11,_0x40442){return _0x40442?_0x207f11+':'+_0x40442:_0x207f11;}function tt(_0x212770){const _0x4a67dd=_0x212770[_0x140c('0x11')](':');return{'group':_0x4a67dd[0x0],'id':_0x4a67dd[0x1],'part':_0x4a67dd[0x2]};}function ot(_0x10eaf4,_0x3f55a8){const _0x302562=_0x3f55a8[_0x140c('0x37')],_0x50bab6=_0x3f55a8['createRange'](_0x10eaf4['start']);for(const _0x38f185 of _0x10eaf4[_0x140c('0x48')]()){const {type:_0x7ab86a,item:_0x4b19d4,nextPosition:_0x2ec4f3}=_0x38f185;if(_0x140c('0x3e')===_0x7ab86a||_0x302562['isObject'](_0x4b19d4)){const _0x206688=_0x3f55a8[_0x140c('0x3')](_0x4b19d4);_0x50bab6['isCollapsed']&&(_0x50bab6[_0x140c('0x42')]=_0x206688),_0x50bab6[_0x140c('0x6')]=_0x2ec4f3;}}return _0x50bab6['isCollapsed']?null:_0x50bab6;}
|
|
23
|
+
const _0x27a1=['low','getWalker','document','once','config','commands','getByInnerView','pluginName','render','_hasTargetInContent','conversion','add','createPositionBefore','isThreadsLoadingPaused','removeCommentThread','change:isThreadsLoadingPaused','start','getItems','createElement','isResolved','change','focus','resolve','change:isReadOnly','ck-comment-marker--active','change:activeMarker','openNewCommentThread','upcast','ck-comment-marker','getRange','model','markerName','root','comment','ignoreResolvedComments','text','view','destroyed','from','init','_detachCommentThread','markerToData','_getTextContext','rootName','length','context','createRange','includes','addComment','attachTo','filter','addMarker:','_threads','push','_attachedThreads','addCommentThread','_handleMarkerAddAndRemove','set','reconvertMarker','isObject','listenTo','scrollToThreadMarker','switchReadOnly','editor','newRange','removeMarker','editing','fetchCommentThread','state','registerPostFixer','getAttribute','consume','comment:','_getTargetForId','_initializeMarkerConverters','dataToMarker','markers','_attachMarkerToThread','plugins','isCollapsed','collaboration.channelId','CommentsEditing','updateMarker','substring','getCommentThread','registerAnnotation','$textProxy','editingDowncast','then','_threadToController','split','delete','consumable','markerToHighlight','destroy','hasCommentThread','_handleThreadMarker','get','for','_reconvertMarkers','requires','data','schema','isEqual','has','elementToElement','getChangedMarkers','hasMarkerForId','high','setContext','activeMarker','hasContent','getAllMarkersForId','refreshVisibility','size','isLocal','$graveyard','$marker','differ','getCommentThreads'];(function(_0x98f394,_0x27a15e){const _0x51831d=function(_0x3f4635){while(--_0x3f4635){_0x98f394['push'](_0x98f394['shift']());}};_0x51831d(++_0x27a15e);}(_0x27a1,0x8c));const _0x5183=function(_0x98f394,_0x27a15e){_0x98f394=_0x98f394-0x0;let _0x51831d=_0x27a1[_0x98f394];return _0x51831d;};import{Plugin as _0x1ecd54}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4b5654}from'ckeditor5/src/utils';import _0x2d8a67 from'./commentsrepository';import _0xdb6663 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x160b80}from'ckeditor5-collaboration/src/collaboration-core';import _0x1ed552 from'../annotations/editorannotations';import _0x3682ea from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x3120c8 from'./integrations/importword';import _0x51188a from'../annotations/annotations';export default class r extends _0x1ecd54{static get[_0x5183('0x50')](){return[_0x2d8a67,_0x1ed552,_0x3682ea,_0x3120c8];}static get[_0x5183('0x6b')](){return _0x5183('0x3d');}constructor(_0x10d7be){super(_0x10d7be),this[_0x5183('0x25')](_0x5183('0x71'),!0x0),_0x10d7be['data']['once']('ready',()=>this[_0x5183('0x71')]=!0x1),this[_0x5183('0x25')](_0x5183('0x5a'),null),this['on'](_0x5183('0x5'),(_0x334412,_0xb8c289,_0x3f28ae,_0x1b16ce)=>{const _0x5b3f3c=_0x3f28ae?tt(_0x3f28ae)['id']:null;if(_0x10d7be[_0x5183('0xa')][_0x5183('0x0')](()=>{if(_0x5b3f3c){const _0x2896ee=this[_0x5183('0x5c')](_0x5b3f3c);for(const _0xaca336 of _0x2896ee)_0x10d7be[_0x5183('0x2e')]['reconvertMarker'](_0xaca336);}if(_0x1b16ce){const {id:_0x31d41b}=tt(_0x1b16ce),_0x1bd7d6=this[_0x5183('0x5c')](_0x31d41b);for(const _0x4cca04 of _0x1bd7d6)_0x10d7be['editing'][_0x5183('0x26')](_0x4cca04);}}),_0x5b3f3c){const _0x1152fe=_0x10d7be[_0x5183('0x3a')][_0x5183('0x4d')](_0x2d8a67)[_0x5183('0x40')](_0x5b3f3c);_0x1152fe&&_0x1152fe[_0x5183('0x77')]&&this[_0x5183('0x29')](_0x5b3f3c);}}),this[_0x5183('0x22')]=new Map();}[_0x5183('0x13')](){const _0xf81e6f=this[_0x5183('0x2b')],_0x1f97f7=_0xf81e6f[_0x5183('0x3a')][_0x5183('0x4d')](_0x2d8a67),_0x5481c1=_0xf81e6f[_0x5183('0x68')]['get'](_0x5183('0x3c'));_0xf81e6f[_0x5183('0x69')][_0x5183('0x6f')](_0x5183('0x23'),new _0xdb6663(_0xf81e6f)),this[_0x5183('0x28')](_0xf81e6f,_0x5183('0x3'),(_0x41f0dd,_0x3cd2e1,_0x4c94cd)=>{_0x1f97f7[_0x5183('0x2a')](_0x4c94cd,_0xf81e6f[_0x5183('0x68')][_0x5183('0x4d')](_0x5183('0x3c')));}),this[_0x5183('0x28')](_0x1f97f7,Z(_0x5183('0x23'),_0x5481c1),(_0x44e482,{threadId:_0x5cfd7a})=>{const _0x40a446=_0xf81e6f[_0x5183('0x3a')][_0x5183('0x4d')](_0x1ed552),_0x4bbdac=this[_0x5183('0x2b')][_0x5183('0x3a')][_0x5183('0x4d')](_0x2d8a67)[_0x5183('0x40')](_0x5cfd7a);if(_0x4bbdac&&_0x4bbdac[_0x5183('0x77')]&&!this[_0x5183('0x22')][_0x5183('0x54')](_0x5cfd7a)){const _0x3240de=_0x4bbdac['attachTo'](()=>this['_getTargetForId'](_0x4bbdac['id']));_0x40a446['registerAnnotation'](_0x3240de),this['_attachedThreads'][_0x5183('0x25')](_0x5cfd7a,[]),0x0===this['getAllMarkersForId'](_0x5cfd7a)[_0x5183('0x18')]&&(_0x4bbdac[_0x5183('0x6d')]=!0x1);}}),this[_0x5183('0x28')](_0x1f97f7,Z(_0x5183('0x72'),_0x5481c1),(_0x1bf6ea,{threadId:_0x4b3e28})=>{_0xf81e6f['model']['enqueueChange']({'isUndoable':!0x1},_0x3b115a=>{const _0x222a73=this[_0x5183('0x5c')](_0x4b3e28);this[_0x5183('0x22')][_0x5183('0x47')](_0x4b3e28);for(const _0x234215 of _0x222a73)_0x3b115a[_0x5183('0x2d')](_0x234215);});},{'priority':_0x5183('0x58')}),this['listenTo'](_0x1f97f7,Z('resolveCommentThread',_0x5481c1),(_0x5c1827,{threadId:_0x5504af})=>{this['_reconvertMarkers'](_0x5504af),this[_0x5183('0x2b')][_0x5183('0x2e')]['view']['hasDomSelection']&&this[_0x5183('0x2b')][_0x5183('0x2e')][_0x5183('0x10')][_0x5183('0x1')]();},{'priority':_0x5183('0x64')}),this[_0x5183('0x28')](_0x1f97f7,Z('reopenCommentThread',_0x5481c1),(_0x186589,{threadId:_0x415c34})=>{this[_0x5183('0x4f')](_0x415c34);},{'priority':'low'}),this[_0x5183('0x28')](_0x1f97f7,Z(_0x5183('0x1c'),_0x5481c1),(_0x510f4b,{threadId:_0x1aa8c5,isFromAdapter:_0x21473d})=>{const _0x2870c3=this['getAllMarkersForId'](_0x1aa8c5);if(_0x21473d||0x0==_0x2870c3[_0x5183('0x18')]||!_0x1f97f7[_0x5183('0x4b')](_0x1aa8c5))return;0x1===_0x1f97f7[_0x5183('0x40')](_0x1aa8c5)[_0x5183('0x18')]&&_0xf81e6f[_0x5183('0xa')]['enqueueChange']({'isUndoable':!0x1},_0x27c371=>{for(const _0x3f61f4 of _0x2870c3)_0x27c371[_0x5183('0x3e')](_0x3f61f4,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5183('0x64')}),this[_0x5183('0x36')](),this['_handleMarkerAddAndRemove']();}[_0x5183('0x4a')](){const _0xbbc2ae=this[_0x5183('0x2b')][_0x5183('0x3a')]['get'](_0x2d8a67),_0x17105f=this[_0x5183('0x2b')][_0x5183('0x68')][_0x5183('0x4d')]('collaboration.channelId');for(const _0x2b8ec4 of _0xbbc2ae[_0x5183('0x63')]({'channelId':_0x17105f}))_0xbbc2ae[_0x5183('0x14')](_0x2b8ec4['id']),_0xbbc2ae[_0x5183('0x20')][_0x5183('0x47')](_0x2b8ec4['id']);super[_0x5183('0x4a')]();}[_0x5183('0x57')](_0x1a594d){return this['getAllMarkersForId'](_0x1a594d)['length']>0x0;}[_0x5183('0x5c')](_0x137e72){return(this[_0x5183('0x22')][_0x5183('0x4d')](_0x137e72)||[])['map'](_0x5ddde3=>this[_0x5183('0x2b')][_0x5183('0xa')][_0x5183('0x38')][_0x5183('0x4d')](_0x5ddde3))[_0x5183('0x1e')](_0xdd8088=>_0xdd8088);}[_0x5183('0x29')](_0x1d2d90){const _0x31329b=this[_0x5183('0x35')](_0x1d2d90);_0x31329b&&setTimeout(()=>{this[_0x5183('0x5a')]&&tt(this[_0x5183('0x5a')])['id']===_0x1d2d90&&_0x4b5654({'target':_0x31329b[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5183('0x4f')](_0x3c2a74){this[_0x5183('0x2b')][_0x5183('0xa')][_0x5183('0x0')](()=>{for(const _0x25ee6e of this[_0x5183('0x5c')](_0x3c2a74))this[_0x5183('0x2b')][_0x5183('0x2e')][_0x5183('0x26')](_0x25ee6e);});}[_0x5183('0x36')](){const _0x420369=this[_0x5183('0x2b')];_0x420369[_0x5183('0x6e')][_0x5183('0x4e')](_0x5183('0x43'))[_0x5183('0x49')]({'model':'comment','view':(_0x4d983f,_0x46a9ca)=>{const {id:_0x46cd6a}=tt(_0x4d983f[_0x5183('0xb')]),_0x47b024=_0x420369[_0x5183('0x3a')][_0x5183('0x4d')](_0x2d8a67)[_0x5183('0x40')](_0x46cd6a),_0x5cca67=this['activeMarker']&&tt(this[_0x5183('0x5a')])['id']===_0x46cd6a;if(_0x47b024&&_0x47b024[_0x5183('0x77')]&&!_0x5cca67&&_0x4d983f['item'])return _0x46a9ca['consumable'][_0x5183('0x33')](_0x4d983f['item'],_0x5183('0x1f')+_0x4d983f[_0x5183('0xb')]),_0x46a9ca[_0x5183('0x48')][_0x5183('0x33')](_0x4d983f['item'],'removeMarker:'+_0x4d983f[_0x5183('0xb')]),{'classes':[]};const _0x1a2db1=[_0x5183('0x8')];return _0x5cca67&&_0x1a2db1[_0x5183('0x21')](_0x5183('0x4')),{'classes':_0x1a2db1,'attributes':{'data-comment':_0x46cd6a}};}}),_0x420369[_0x5183('0x6e')]['for']('dataDowncast')[_0x5183('0x15')]({'model':'comment','view':(_0x15df80,{options:_0x50846f})=>{const _0x49bba8=_0x420369['plugins'][_0x5183('0x4d')](_0x2d8a67),_0x2b2229=_0x420369['model'][_0x5183('0x38')][_0x5183('0x4d')](_0x15df80),{id:_0x431cf1,part:_0x33a453}=tt(_0x15df80);if(_0x2b2229&&!_0x2b2229['affectsData'])return null;if(_0x50846f[_0x5183('0xe')]){const _0x1f754a=_0x49bba8[_0x5183('0x40')](_0x431cf1);if(_0x1f754a&&_0x1f754a['isResolved'])return null;}return{'group':_0x5183('0xd'),'name':_0x33a453?_0x431cf1+':'+_0x33a453:_0x431cf1};}}),_0x420369[_0x5183('0x6e')][_0x5183('0x4e')](_0x5183('0x7'))[_0x5183('0x55')]({'view':{'name':_0x5183('0xd'),'attributes':{'id':/^\w/}},'model':(_0xc4fe1d,{writer:_0xaec11e})=>_0xaec11e[_0x5183('0x76')](_0x5183('0x61'),{'data-name':_0x5183('0x34')+_0xc4fe1d[_0x5183('0x32')]('id')})}),_0x420369[_0x5183('0x6e')][_0x5183('0x4e')](_0x5183('0x7'))[_0x5183('0x37')]({'view':_0x5183('0xd')});}[_0x5183('0x24')](){const _0x27d6eb=this[_0x5183('0x2b')],_0xb0064e=_0x27d6eb[_0x5183('0x3a')][_0x5183('0x4d')](_0x2d8a67),_0x5c66ab=new Set();_0x27d6eb['model'][_0x5183('0x66')][_0x5183('0x31')](_0x3fc27d=>{let _0x1feefc=!0x1;for(const {name:_0x4acd12,data:_0x1cc0b2}of _0x27d6eb['model'][_0x5183('0x66')][_0x5183('0x62')][_0x5183('0x56')]()){const {group:_0x21dc54,id:_0x3ba824}=tt(_0x4acd12);let _0x3ba609=_0x1cc0b2[_0x5183('0x2c')];if(_0x5183('0xd')!==_0x21dc54||!_0x3ba609)continue;const _0x2801ff=_0x5183('0x60')===_0x3ba609[_0x5183('0xc')][_0x5183('0x17')];_0x2801ff||(_0x3ba609=ot(_0x3ba609,_0x27d6eb[_0x5183('0xa')]),!_0x3ba609||!_0x1cc0b2[_0x5183('0x2c')]||_0x3ba609[_0x5183('0x53')](_0x1cc0b2[_0x5183('0x2c')]))?!_0x3ba609||!_0x27d6eb['model'][_0x5183('0x5b')](_0x3ba609)||this[_0x5183('0x22')][_0x5183('0x54')](_0x3ba824)&&_0x2801ff?(_0x3fc27d['removeMarker'](_0x4acd12),_0x1feefc=!0x0):_0x2801ff||(this['isThreadsLoadingPaused']?_0x5c66ab[_0x5183('0x6f')](_0x4acd12):this['_handleThreadMarker'](_0x4acd12,_0x3ba824)):(_0x3fc27d[_0x5183('0x3e')](_0x4acd12,{'range':_0x3ba609}),_0x1feefc=!0x0);}return _0x1feefc;}),this['on'](_0x5183('0x73'),(_0x1e365b,_0x325026,_0x2e7445)=>{if(!_0x2e7445&&_0x5c66ab[_0x5183('0x5e')])for(const _0x15a04c of _0x5c66ab){const {id:_0x148084}=tt(_0x15a04c);_0x5c66ab['delete'](_0x148084),_0x27d6eb[_0x5183('0xa')][_0x5183('0x38')][_0x5183('0x4d')](_0x15a04c)&&this[_0x5183('0x4c')](_0x15a04c,_0x148084);}}),this[_0x5183('0x28')](_0x27d6eb[_0x5183('0xa')][_0x5183('0x66')],_0x5183('0x0'),(_0x4612cd,_0x265922)=>{for(const {name:_0x5e4f53,data:{newRange:_0x1048f0}}of _0x27d6eb[_0x5183('0xa')]['document'][_0x5183('0x62')][_0x5183('0x56')]()){const {group:_0x24ffb7,id:_0x46f5a6}=tt(_0x5e4f53);if(_0x5183('0xd')!==_0x24ffb7)continue;const _0x2253ad=_0xb0064e[_0x5183('0x40')](_0x46f5a6),_0x262b5e=this[_0x5183('0x57')](_0x46f5a6);_0x2253ad&&(_0x2253ad[_0x5183('0x6d')]||_0x27d6eb[_0x5183('0x2e')][_0x5183('0x10')][_0x5183('0x67')](_0x5183('0x6c'),()=>{const _0x312e4c=_0x27d6eb[_0x5183('0x3a')][_0x5183('0x4d')](_0x51188a),_0x4e0ea6=_0xb0064e['_threadToController'][_0x5183('0x4d')](_0x2253ad)[_0x5183('0x10')];_0x312e4c[_0x5183('0x6a')](_0x4e0ea6)[_0x5183('0x5d')]();},{'priority':_0x5183('0x64')}),_0x2253ad[_0x5183('0x6d')]=_0x262b5e||!!_0x1048f0),!_0x1048f0&&_0x265922[_0x5183('0x5f')]&&(_0x5c66ab['delete'](_0x46f5a6),_0x2253ad&&!_0x2253ad[_0x5183('0x77')]&&!_0x262b5e&&this[_0x5183('0x22')]['has'](_0x46f5a6)&&(this[_0x5183('0x22')][_0x5183('0x47')](_0x46f5a6),_0x2253ad[_0x5183('0x2')]()));}});}[_0x5183('0x35')](_0x300540){const _0x2e0ed5=this[_0x5183('0x2b')],_0x36f1ce=this['getAllMarkersForId'](_0x300540);return _0x160b80(_0x2e0ed5[_0x5183('0x2e')],_0x36f1ce);}['_getTextContext'](_0xe89504){const _0x224455=this[_0x5183('0x5c')](_0xe89504);let _0x5778d4='',_0x34ec5b=!0x1;for(const _0x538530 of _0x224455){const _0x5a6864=_0x538530[_0x5183('0x9')]();for(const _0x3ebdf8 of Array[_0x5183('0x12')](_0x5a6864[_0x5183('0x75')]()))_0x3ebdf8['is'](_0x5183('0x42'))?(_0x5778d4&&_0x34ec5b&&(_0x5778d4+='\x20',_0x34ec5b=!0x1),_0x5778d4+=_0x3ebdf8[_0x5183('0x51')]):_0x34ec5b=!0x0;_0x34ec5b=!0x0;}return _0x5778d4[_0x5183('0x3f')](0x0,0x96);}['_attachMarkerToThread'](_0x22e5c4,_0x23ccc9){const _0x4635f1=this[_0x5183('0x2b')],_0x326657=_0x4635f1[_0x5183('0x3a')][_0x5183('0x4d')](_0x2d8a67);let _0x47d9bd=_0x326657[_0x5183('0x40')](_0x23ccc9);if(this['_attachedThreads']['has'](_0x23ccc9)){const _0x5ee87c=this[_0x5183('0x22')]['get'](_0x23ccc9);return _0x5ee87c[_0x5183('0x1b')](_0x22e5c4)||_0x5ee87c[_0x5183('0x21')](_0x22e5c4),_0x47d9bd;}this[_0x5183('0x22')][_0x5183('0x25')](_0x23ccc9,[_0x22e5c4]);const _0x5ebf68=_0x4635f1[_0x5183('0x68')]['get']('collaboration.channelId'),_0x111a13=_0x4635f1[_0x5183('0x3a')][_0x5183('0x4d')](_0x1ed552);if(_0x47d9bd&&_0x47d9bd['isResolved'])return _0x47d9bd['reopen'](),_0x47d9bd;return!this[_0x5183('0x5c')](_0x23ccc9)[0x0]['managedUsingOperations']?_0x4635f1[_0x5183('0x2e')][_0x5183('0x10')][_0x5183('0x67')](_0x5183('0x6c'),()=>{const _0x1966ab=_0x4635f1[_0x5183('0x3a')][_0x5183('0x4d')](_0x51188a);_0x47d9bd=_0x326657[_0x5183('0x6')]({'channelId':_0x5ebf68,'threadId':_0x23ccc9,'target':()=>this['_getTargetForId'](_0x23ccc9),'context':{'type':'text','value':this[_0x5183('0x16')](_0x23ccc9)}});const _0x352f60=_0x326657[_0x5183('0x45')][_0x5183('0x4d')](_0x47d9bd)[_0x5183('0x10')],_0x476e5=_0x1966ab[_0x5183('0x6a')](_0x352f60);_0x476e5&&_0x111a13[_0x5183('0x41')](_0x476e5);},{'priority':_0x5183('0x64')}):_0x326657[_0x5183('0x2f')]({'channelId':_0x5ebf68,'threadId':_0x23ccc9})[_0x5183('0x44')](_0x12cfc8=>{if(_0x5183('0x11')!==_0x4635f1[_0x5183('0x30')]){if(_0x47d9bd=_0x12cfc8,_0x47d9bd){const _0x37ea92=_0x47d9bd[_0x5183('0x1d')](()=>this[_0x5183('0x35')](_0x23ccc9));_0x111a13[_0x5183('0x41')](_0x37ea92),_0x47d9bd[_0x5183('0x77')]&&this['_reconvertMarkers'](_0x23ccc9);}else{const _0x1e7443=this[_0x5183('0x5c')](_0x23ccc9);_0x4635f1['model']['change'](_0x1fe12b=>{for(const _0x2c6494 of _0x1e7443)_0x1fe12b[_0x5183('0x2d')](_0x2c6494);});}}}),_0x47d9bd;}[_0x5183('0x4c')](_0xf9ae91,_0x28d891){const _0x1d32b9=this[_0x5183('0x39')](_0xf9ae91,_0x28d891);_0x1d32b9&&!_0x1d32b9[_0x5183('0x19')]&&_0x1d32b9[_0x5183('0x59')]({'type':'text','value':this[_0x5183('0x16')](_0x28d891)});}}function Z(_0x5f275a,_0x127608){return _0x127608?_0x5f275a+':'+_0x127608:_0x5f275a;}function tt(_0x8009db){const _0x3c8ac1=_0x8009db[_0x5183('0x46')](':');return{'group':_0x3c8ac1[0x0],'id':_0x3c8ac1[0x1],'part':_0x3c8ac1[0x2]};}function ot(_0x558082,_0x5d3f2a){const _0x4922e1=_0x5d3f2a[_0x5183('0x52')],_0x38b597=_0x5d3f2a[_0x5183('0x1a')](_0x558082['start']);for(const _0x37cb44 of _0x558082[_0x5183('0x65')]()){const {type:_0x5d4c3d,item:_0x15736e,nextPosition:_0x3868e4}=_0x37cb44;if(_0x5183('0xf')===_0x5d4c3d||_0x4922e1[_0x5183('0x27')](_0x15736e)){const _0x31bef8=_0x5d3f2a[_0x5183('0x70')](_0x15736e);_0x38b597[_0x5183('0x3b')]&&(_0x38b597[_0x5183('0x74')]=_0x31bef8),_0x38b597['end']=_0x3868e4;}}return _0x38b597[_0x5183('0x3b')]?null:_0x38b597;}
|