@ckeditor/ckeditor5-comments 0.0.0-nightly-20230907.0 → 0.0.0-nightly-20230909.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 _0x3bd5=['_mutationObserver','focus','add','type','render','fire','destroy','attach','set','ck-annotation-wrapper--active','setTemplate','keystrokes','clear','listenTo','content','div','ck-annotation-wrapper','detach','height','isDirty','_updateHeight','isActive','targetRect','clientHeight','length','element','createCollection'];(function(_0xa00aa2,_0x3bd581){const _0xa9035f=function(_0x416ecb){while(--_0x416ecb){_0xa00aa2['push'](_0xa00aa2['shift']());}};_0xa9035f(++_0x3bd581);}(_0x3bd5,0x8e));const _0xa903=function(_0xa00aa2,_0x3bd581){_0xa00aa2=_0xa00aa2-0x0;let _0xa9035f=_0x3bd5[_0xa00aa2];return _0xa9035f;};import{View as _0x4d3249}from'ckeditor5/src/ui';import{FocusTracker as _0x15dcb6,KeystrokeHandler as _0x59f6a3,uid as _0x523f67}from'ckeditor5/src/utils';import _0x51d96f from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x4d3249{constructor(_0x4c261f,_0x26551d){super(_0x4c261f),this['id']=_0x523f67(),this['focusTracker']=new _0x15dcb6(),this['keystrokes']=new _0x59f6a3(),this[_0xa903('0x4')]['set']('Esc',(_0x8f8ae,_0x2d73e5)=>this[_0xa903('0x19')]('Esc',_0x2d73e5)),this[_0xa903('0x1')](_0xa903('0xf'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0xa903('0x1')](_0xa903('0xb'),0x0),this[_0xa903('0x1')](_0xa903('0xe'),!0x1),this[_0xa903('0x1')](_0xa903('0xc'),!0x1),this[_0xa903('0x1')](_0xa903('0x11'),0x0),this[_0xa903('0x1')](_0xa903('0x17'),''),this[_0xa903('0x14')]=_0x51d96f(()=>this[_0xa903('0xd')]()),this['content']=this[_0xa903('0x13')](),this[_0xa903('0x7')][_0xa903('0x16')](_0x26551d),this['mainView']=_0x26551d;const _0x4a91da=this['bindTemplate'];this[_0xa903('0x3')]({'tag':_0xa903('0x8'),'attributes':{'class':['ck',_0xa903('0x9'),'ck-rounded-corners',_0x4a91da['if'](_0xa903('0xe'),_0xa903('0x2'))],'tabindex':-0x1},'children':this[_0xa903('0x7')]});}[_0xa903('0x18')](){super[_0xa903('0x18')](),this['focusTracker'][_0xa903('0x16')](this[_0xa903('0x12')]),this[_0xa903('0x4')][_0xa903('0x6')](this[_0xa903('0x12')]),this['_mutationObserver'][_0xa903('0x0')](this[_0xa903('0x12')]);}[_0xa903('0x1a')](){this[_0xa903('0x7')][_0xa903('0x5')](),this[_0xa903('0x4')]['destroy'](),this['focusTracker'][_0xa903('0x1a')](),this[_0xa903('0x14')][_0xa903('0xa')](),super[_0xa903('0x1a')]();}[_0xa903('0x15')](){this['element']['focus']();}[_0xa903('0xd')](){const _0x4446dc=this[_0xa903('0x12')][_0xa903('0x10')];_0x4446dc&&(this[_0xa903('0xb')]=_0x4446dc);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42eb=['setTemplate','top','bottom','isAnimationDisabled','set','_targetTop','clear','height','ck-sidebar-item','updateHeight','element','content','render','createCollection','bind','div','destroy','attach','clientHeight','bindTemplate','_mutationObserver'];(function(_0x5d1eee,_0x42ebbd){const _0x2afce5=function(_0x4e60ef){while(--_0x4e60ef){_0x5d1eee['push'](_0x5d1eee['shift']());}};_0x2afce5(++_0x42ebbd);}(_0x42eb,0x1eb));const _0x2afc=function(_0x5d1eee,_0x42ebbd){_0x5d1eee=_0x5d1eee-0x0;let _0x2afce5=_0x42eb[_0x5d1eee];return _0x2afce5;};import{View as _0x2862c8}from'ckeditor5/src/ui';import{toUnit as _0x4940ed}from'ckeditor5/src/utils';import _0x47ba45 from'../../utils/createmutationobserver';const At=_0x4940ed('px');export default class C extends _0x2862c8{constructor(_0x368f7c){super(_0x368f7c),this[_0x2afc('0x11')](_0x2afc('0xe'),0x0),this[_0x2afc('0x11')]('height',0x0),this[_0x2afc('0x6')](_0x2afc('0xf'))['to'](this,'top',this,_0x2afc('0x14'),(_0x4e1a92,_0x50265f)=>_0x4e1a92+_0x50265f),this['set']('isAnimationDisabled',!0x1),this[_0x2afc('0xc')]=_0x47ba45(()=>this['updateHeight']()),this[_0x2afc('0x12')]=null,this['content']=this[_0x2afc('0x5')]();const _0x127412=this[_0x2afc('0xb')];this[_0x2afc('0xd')]({'tag':_0x2afc('0x7'),'attributes':{'class':[_0x2afc('0x0'),_0x127412['to'](_0x2afc('0x10'),_0x5d1d90=>_0x5d1d90?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x127412['to'](_0x2afc('0xe'),_0x3a07fd=>At(_0x3a07fd))}},'children':this[_0x2afc('0x3')]});}['render'](){super[_0x2afc('0x4')](),this[_0x2afc('0xc')][_0x2afc('0x9')](this[_0x2afc('0x2')]);}[_0x2afc('0x1')](){const _0x189199=this['element'][_0x2afc('0xa')];_0x189199&&(this[_0x2afc('0x14')]=_0x189199);}[_0x2afc('0x8')](){this['content'][_0x2afc('0x13')](),this[_0x2afc('0xc')]['detach'](),super[_0x2afc('0x8')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf0b7=['class','createCollection','set','list','ck-reset','minHeight','div','bindTemplate','ck-sidebar'];(function(_0x461426,_0xf0b704){const _0x47737a=function(_0x3c092a){while(--_0x3c092a){_0x461426['push'](_0x461426['shift']());}};_0x47737a(++_0xf0b704);}(_0xf0b7,0x18a));const _0x4773=function(_0x461426,_0xf0b704){_0x461426=_0x461426-0x0;let _0x47737a=_0xf0b7[_0x461426];return _0x47737a;};import{View as _0xef54d5}from'ckeditor5/src/ui';import{toUnit as _0x26e890}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x26e890('px');export default class T extends _0xef54d5{constructor(_0x3c8a4d){super(_0x3c8a4d);const _0x2d5090=this[_0x4773('0x0')];this[_0x4773('0x4')](_0x4773('0x7'),0x0),this['set'](_0x4773('0x2'),''),this['list']=this[_0x4773('0x3')](),this['setTemplate']({'tag':_0x4773('0x8'),'attributes':{'class':['ck',_0x4773('0x1'),_0x4773('0x6'),_0x2d5090['to'](_0x4773('0x2'))],'style':{'minHeight':_0x2d5090['to'](_0x4773('0x7'),_0x35020d=>'number'==typeof _0x35020d?At(_0x35020d+0xa):null)}},'children':this[_0x4773('0x5')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47a9=['hasDomSelection','set:container','get','getOrderedSelectedAnnotations','updateTargetRect','set','refreshPositioning','stopListening','blur','editors','_destroyEditorAnnotationsIntegration','resize','isAttached','_integrateWithEditorAnnotations','_annotations','stop','activeAnnotation','listenTo','from','setActiveAnnotation','cancel','rearrange','removeEventListener','plugins','ck-sidebar--wide','annotations','WideSidebar','remove','requires','focus','_refreshPositioningDebounced','addAnnotation','add','_editorAnnotations','attach','EditorAnnotations','wideSidebar','widesidebar-attach-already-attached','refresh','context','off','_activeAnnotation','uiUpdate','register','detach','container','high','ready'];(function(_0x3f612d,_0x47a937){const _0x185915=function(_0x469b18){while(--_0x469b18){_0x3f612d['push'](_0x3f612d['shift']());}};_0x185915(++_0x47a937);}(_0x47a9,0x16e));const _0x1859=function(_0x3f612d,_0x47a937){_0x3f612d=_0x3f612d-0x0;let _0x185915=_0x47a9[_0x3f612d];return _0x185915;};import{ContextPlugin as _0xec89e7,Context as _0x33f83b}from'ckeditor5/src/core';import _0x3de453 from'./annotationsuis';import _0x1a250a from'./sidebar';import{CKEditorError as _0x365a1e,Collection as _0x211758}from'ckeditor5/src/utils';import{debounce as _0xf29f2b}from'lodash-es';import _0x53c614 from'./editorannotations';export default class i extends _0xec89e7{static get[_0x1859('0x2e')](){return[_0x1a250a,_0x3de453];}static get['pluginName'](){return _0x1859('0x2c');}constructor(_0x19d96a){super(_0x19d96a),this[_0x1859('0x1e')]=!0x1,this[_0x1859('0x17')](_0x1859('0x22'),null),this['annotations']=null,this[_0x1859('0x3')]=new _0x211758(),this[_0x1859('0x0')]=_0xf29f2b(()=>{this[_0x1859('0x2b')][_0x1859('0x18')]();},0xfa,{'leading':!0x1});}['init'](){const _0x5efc9c=this[_0x1859('0x9')][_0x1859('0x29')]['get'](_0x3de453),_0x26620b=this['context'][_0x1859('0x29')]['get'](_0x1a250a);_0x5efc9c[_0x1859('0xd')](_0x1859('0x6'),this),_0x26620b[_0x1859('0xf')]&&_0x5efc9c['switchTo'](_0x1859('0x6'));}[_0x1859('0x25')](_0x500ab8){if(_0x500ab8===this['activeAnnotation'])return;const _0x4765f6=this['context'][_0x1859('0x29')][_0x1859('0x14')](_0x1a250a);_0x4765f6[_0x1859('0xb')]=_0x500ab8;const _0x393bed=this[_0x1859('0x22')];this[_0x1859('0x22')]=_0x500ab8,_0x4765f6['refresh']({'blurredAnnotation':_0x393bed,'activatedAnnotation':this[_0x1859('0x22')]});}[_0x1859('0x4')](_0x1af58c){this['annotations']=_0x1af58c;const _0x478684=this[_0x1859('0x9')]['plugins'][_0x1859('0x14')](_0x1a250a);if(_0x478684[_0x1859('0x20')]=_0x1af58c,this['isAttached'])throw new _0x365a1e(_0x1859('0x7'),this);this['isAttached']=!0x0,this['listenTo'](_0x478684,_0x1859('0x13'),()=>{this[_0x1859('0xe')](),this[_0x1859('0x23')](_0x478684,'change:container',_0x278678=>{_0x278678[_0x1859('0xa')](),this[_0x1859('0x4')](_0x1af58c);});}),_0x478684['_attachToContainer']({'viewClass':_0x1859('0x2a')});const _0x563d1a=_0x28d66=>{_0x28d66[_0x1859('0x16')](),_0x478684[_0x1859('0x1')](_0x28d66);};for(const _0x5d46fa of _0x1af58c)_0x563d1a(_0x5d46fa);this['listenTo'](_0x1af58c,_0x1859('0x2'),(_0x3e3336,_0x206f48)=>{_0x563d1a(_0x206f48);}),this['listenTo'](_0x1af58c,_0x1859('0x2d'),(_0x360cdb,_0x1bd5b1,_0xf0fda6)=>{_0x478684[_0x1859('0x27')]({'removedAnnotation':_0x1bd5b1,'previousAnnotation':_0x1af58c[_0x1859('0x14')](_0xf0fda6-0x1),'nextAnnotation':_0x1af58c['get'](_0xf0fda6+0x1)}),_0x1bd5b1===this[_0x1859('0x22')]&&this[_0x1859('0x25')](null);},{'priority':_0x1859('0x10')}),this[_0x1859('0x23')](_0x1af58c,_0x1859('0x2f'),(_0x3d9ecc,_0x47e894)=>{this[_0x1859('0x25')](_0x47e894);}),this['listenTo'](_0x1af58c,_0x1859('0x1a'),()=>{this[_0x1859('0x25')](null);});const _0x4e74db=this['context']instanceof _0x33f83b?this['context'][_0x1859('0x1b')]:new _0x211758([this[_0x1859('0x9')]]);for(const _0x5f0a94 of _0x4e74db)this[_0x1859('0x1f')](_0x5f0a94);this[_0x1859('0x23')](_0x4e74db,_0x1859('0x2'),(_0x434197,_0x499b13)=>{this[_0x1859('0x23')](_0x499b13,_0x1859('0x11'),()=>{this['_integrateWithEditorAnnotations'](_0x499b13);});}),this[_0x1859('0x23')](_0x4e74db,_0x1859('0x2d'),(_0x1cd7f0,_0x288bd2)=>{_0x288bd2[_0x1859('0x29')]['has']('EditorAnnotations')&&this[_0x1859('0x1c')](_0x288bd2[_0x1859('0x29')][_0x1859('0x14')](_0x1859('0x5')));}),window['addEventListener'](_0x1859('0x1d'),this['_refreshPositioningDebounced']),this[_0x1859('0x2b')][_0x1859('0x18')]();}[_0x1859('0xe')](){if(!this['isAttached'])throw new _0x365a1e('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1fb4f6=this[_0x1859('0x9')][_0x1859('0x29')][_0x1859('0x14')](_0x1a250a);_0x1fb4f6['_detachFromContainer'](this[_0x1859('0x2b')]),this[_0x1859('0x19')](_0x1fb4f6),this[_0x1859('0x19')](this['annotations']),this[_0x1859('0x9')]instanceof _0x33f83b&&this[_0x1859('0x19')](this[_0x1859('0x9')]['editors']);for(const _0x5e226f of Array[_0x1859('0x24')](this[_0x1859('0x3')]))this[_0x1859('0x1c')](_0x5e226f);window[_0x1859('0x28')](_0x1859('0x1d'),this['_refreshPositioningDebounced']),this[_0x1859('0x0')][_0x1859('0x26')](),this[_0x1859('0x22')]=null,this[_0x1859('0x1e')]=!0x1,this[_0x1859('0x2b')]=null;}['destroy'](){this['isAttached']&&this['detach']();}[_0x1859('0x1f')](_0x554d47){const _0xcddcb8=_0x554d47[_0x1859('0x29')][_0x1859('0x14')](_0x53c614);if(!_0xcddcb8)return;const _0x35ae0d=()=>{const _0x2a563e=_0xcddcb8[_0x1859('0x15')]({'annotations':this[_0x1859('0x2b')],'activeAnnotation':this['activeAnnotation']});this[_0x1859('0x25')](_0x2a563e[0x0]||null);};this['listenTo'](_0xcddcb8,_0x1859('0x8'),_0x35ae0d),this[_0x1859('0x23')](_0xcddcb8,'blur',(_0x2fa849,{isAnnotationTracked:_0x5353da})=>{this[_0x1859('0x22')]&&_0x5353da(this['activeAnnotation'])&&this[_0x1859('0x25')](null);}),this[_0x1859('0x23')](_0xcddcb8,_0x1859('0xc'),()=>{this[_0x1859('0x0')]();}),this[_0x1859('0x23')](this[_0x1859('0x2b')],'blur',_0x4c82b4=>{_0xcddcb8[_0x1859('0x12')]()&&(_0x35ae0d(),_0x4c82b4[_0x1859('0x21')]());},{'priority':'high'}),this['_editorAnnotations'][_0x1859('0x2')](_0xcddcb8);}['_destroyEditorAnnotationsIntegration'](_0x3d359d){this['stopListening'](_0x3d359d),this[_0x1859('0x3')]['remove'](_0x3d359d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25d8=['end','_hasContent','_trimToContent','backward','model','isObject','$textProxy','editor','execute','comment:','_itemIsContent','isEnabled','getRanges','tableCell','refresh','getLastMatchingPosition','item','document','addMarker'];(function(_0x5ce29c,_0x25d862){const _0x195879=function(_0x2bb008){while(--_0x2bb008){_0x5ce29c['push'](_0x5ce29c['shift']());}};_0x195879(++_0x25d862);}(_0x25d8,0x1ea));const _0x1958=function(_0x5ce29c,_0x25d862){_0x5ce29c=_0x5ce29c-0x0;let _0x195879=_0x25d8[_0x5ce29c];return _0x195879;};import{Command as _0x592141}from'ckeditor5/src/core';import{uid as _0x6b055f}from'ckeditor5/src/utils';export default class q extends _0x592141{[_0x1958('0x12')](){const _0x3fc08b=this[_0x1958('0xb')][_0x1958('0x8')]['document']['selection'];for(const _0x20ac80 of _0x3fc08b[_0x1958('0x10')]())if(this['_hasContent'](_0x20ac80))return void(this[_0x1958('0xf')]=!0x0);this[_0x1958('0xf')]=!0x1;}[_0x1958('0xc')]({threadId:_0x9aeb35=_0x6b055f()}={}){const _0x1c1410=this['editor'][_0x1958('0x8')],_0x57b07a=[];for(const _0x4da6f8 of _0x1c1410[_0x1958('0x2')]['selection'][_0x1958('0x10')]())this['_hasContent'](_0x4da6f8)&&_0x57b07a['push'](this[_0x1958('0x6')](_0x4da6f8));_0x1c1410['change'](_0xe3a36b=>{for(const _0x3e6c10 of _0x57b07a){const _0x54390a=_0x6b055f()['substr'](0x1,0x5),_0x5a49a0=_0x1958('0xd')+_0x9aeb35+':'+_0x54390a;_0xe3a36b[_0x1958('0x3')](_0x5a49a0,{'range':_0x3e6c10,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x1958('0x5')](_0x392565){for(const _0x504520 of _0x392565['getItems']())if(this['_itemIsContent'](_0x504520))return!0x0;return!0x1;}[_0x1958('0xe')](_0x2babf5){return _0x2babf5['is'](_0x1958('0xa'))||this[_0x1958('0xb')][_0x1958('0x8')]['schema'][_0x1958('0x9')](_0x2babf5)&&!_0x2babf5['is']('element',_0x1958('0x11'));}[_0x1958('0x6')](_0x24ff75){const _0x333476=_0x50ec21=>!this['_itemIsContent'](_0x50ec21[_0x1958('0x1')]),_0x3ae63d=_0x24ff75['start'][_0x1958('0x0')](_0x333476),_0x5dd9d0=_0x24ff75[_0x1958('0x4')]['getLastMatchingPosition'](_0x333476,{'direction':_0x1958('0x7')});return this[_0x1958('0xb')]['model']['createRange'](_0x3ae63d,_0x5dd9d0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3348=['requires','listenTo','resolvedThreads','plugins','context','resolvedAt','collection','findIndex','getCommentThread','highest','reopenCommentThread','add','focus','_calculatePosition','init','remove','get','pluginName','isActive','resolveCommentThread','length','removeCommentThread','has'];(function(_0x3c9bd3,_0x334886){const _0x319f19=function(_0x5244e8){while(--_0x5244e8){_0x3c9bd3['push'](_0x3c9bd3['shift']());}};_0x319f19(++_0x334886);}(_0x3348,0x162));const _0x319f=function(_0x3c9bd3,_0x334886){_0x3c9bd3=_0x3c9bd3-0x0;let _0x319f19=_0x3348[_0x3c9bd3];return _0x319f19;};import{ContextPlugin as _0x1367be}from'ckeditor5/src/core';import{Collection as _0x303a05}from'ckeditor5/src/utils';import _0x1374d0 from'./commentsrepository';import _0x5017d9 from'../annotations/annotations';export default class p extends _0x1367be{static get[_0x319f('0x8')](){return'CommentsArchive';}static get[_0x319f('0xe')](){return[_0x1374d0,_0x5017d9];}constructor(_0x2b0b6b){super(_0x2b0b6b),this[_0x319f('0x10')]=new _0x303a05();}[_0x319f('0x5')](){const _0x227748=this[_0x319f('0x12')],_0x31c05e=_0x227748[_0x319f('0x11')][_0x319f('0x7')](_0x1374d0),_0x2dcd4e=_0x227748[_0x319f('0x11')][_0x319f('0x7')](_0x5017d9);this[_0x319f('0xf')](_0x31c05e,'addCommentThread',(_0x11fbf5,{threadId:_0x599eac,resolvedAt:_0x5acf41,deletedAt:_0x2e5b22})=>{if(_0x5acf41&&!_0x2e5b22){const _0x1486db=_0x31c05e['getCommentThread'](_0x599eac);this['resolvedThreads'][_0x319f('0x2')](_0x1486db,this[_0x319f('0x4')](_0x5acf41));}}),this[_0x319f('0xf')](_0x31c05e,_0x319f('0xa'),(_0x196a8e,{threadId:_0x19abb6,resolvedAt:_0x27de6c})=>{const _0x58eef3=_0x31c05e['getCommentThread'](_0x19abb6);this['resolvedThreads'][_0x319f('0x2')](_0x58eef3,this[_0x319f('0x4')](_0x27de6c));},{'priority':_0x319f('0x0')}),this[_0x319f('0xf')](_0x31c05e,_0x319f('0x1'),(_0x355232,{threadId:_0x18385d})=>{const _0x3c90fb=_0x31c05e[_0x319f('0x16')](_0x18385d);this[_0x319f('0x10')][_0x319f('0xd')](_0x3c90fb)&&this['resolvedThreads']['remove'](_0x3c90fb);},{'priority':_0x319f('0x0')}),this[_0x319f('0xf')](_0x31c05e,_0x319f('0xc'),(_0x2dc070,{threadId:_0x49f5b0})=>{const _0x4cef81=_0x31c05e[_0x319f('0x16')](_0x49f5b0);this[_0x319f('0x10')][_0x319f('0xd')](_0x4cef81)&&this[_0x319f('0x10')][_0x319f('0x6')](_0x4cef81);},{'priority':_0x319f('0x0')}),this['listenTo'](_0x2dcd4e[_0x319f('0x14')],_0x319f('0x3'),(_0x1350c2,_0x25546f)=>{_0x25546f[_0x319f('0x9')]=!0x0,_0x2dcd4e['activate'](_0x25546f);});}[_0x319f('0x4')](_0x1ac3f7){const _0x2d73d9=[...this[_0x319f('0x10')]][_0x319f('0x15')](_0x4d10a5=>_0x4d10a5[_0x319f('0x13')]<_0x1ac3f7);return _0x2d73d9>-0x1?_0x2d73d9:this[_0x319f('0x10')][_0x319f('0xb')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3932=['indexOf','_calculatePosition','mainView','classList','editor','locale','commentsArchiveView','extendTemplate','get','focusTracker','CommentsRepository','stopListening','annotationViews','set','push','_threadToController','requires','findIndex','buttonView','isVisible','length','getByInnerView','COMMENTS_ARCHIVE','children','ck-comments-archive-dropdown','innerView','pluginName','plugins','panelView','_handleAnnotationFocusableElements','_pendingThreads','remove','collaboration.channelId','ck-body','channelId','_createArchiveUIDropdown','collection','find','config','contains','_visibleAnnotations','componentFactory','resolvedThreads','position','view','CommentsArchiveUI','listenTo','resolvedAt','focusableElements','add'];(function(_0x1798a5,_0x39322d){const _0x25341c=function(_0x377f5e){while(--_0x377f5e){_0x1798a5['push'](_0x1798a5['shift']());}};_0x25341c(++_0x39322d);}(_0x3932,0xc7));const _0x2534=function(_0x1798a5,_0x39322d){_0x1798a5=_0x1798a5-0x0;let _0x25341c=_0x3932[_0x1798a5];return _0x25341c;};import'../../theme/commentsarchive.css';import{Plugin as _0x3f5a38}from'ckeditor5/src/core';import{createDropdown as _0x27dc41,ViewCollection as _0x4178a0}from'ckeditor5/src/ui';import _0x28ecf2 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x351c73}from'../utils/common-translations';import _0x140eea from'./ui/view/commentsarchiveview';import _0x3cef1a from'./commentsarchive';export default class a extends _0x3f5a38{static get[_0x2534('0x1b')](){return _0x2534('0x2e');}static get[_0x2534('0x11')](){return[_0x3cef1a];}constructor(_0x16410a){super(_0x16410a),this[_0x2534('0xd')]=new _0x4178a0(),this[_0x2534('0x1f')]=[];}['init'](){this[_0x2534('0x5')]['ui'][_0x2534('0x2a')][_0x2534('0x0')]('commentsArchive',()=>this[_0x2534('0x24')]());const _0x488daf=this[_0x2534('0x5')][_0x2534('0x1c')][_0x2534('0x9')](_0x3cef1a),_0x2aae15=this['editor']['plugins'][_0x2534('0x9')]('Annotations'),_0x28171c=this[_0x2534('0x5')][_0x2534('0x1c')][_0x2534('0x9')](_0x2534('0xb'));this[_0x2534('0x2f')](_0x488daf[_0x2534('0x2b')],_0x2534('0x0'),(_0x2836b6,_0x39ef72)=>{const _0x19a719=this['editor'][_0x2534('0x27')][_0x2534('0x9')](_0x2534('0x21'));if(!_0x19a719||_0x39ef72[_0x2534('0x23')]===_0x19a719){const _0x2f98e9=this['_calculatePosition'](_0x39ef72[_0x2534('0x30')]),_0x4ba762=_0x28171c[_0x2534('0x10')][_0x2534('0x9')](_0x39ef72);if(!_0x4ba762)return void this['_pendingThreads'][_0x2534('0xf')]({'thread':_0x39ef72,'position':_0x2f98e9});const _0x56db3b=_0x2aae15['getByInnerView'](_0x4ba762[_0x2534('0x2d')]);_0x56db3b[_0x2534('0x14')]&&_0x2aae15[_0x2534('0x29')]['remove'](_0x56db3b),this[_0x2534('0xd')][_0x2534('0x0')](_0x56db3b[_0x2534('0x2d')],_0x2f98e9);}}),this[_0x2534('0x2f')](_0x2aae15[_0x2534('0x25')],_0x2534('0x0'),(_0x2fcb32,_0x1a8f86)=>{const _0x5b3ada=this[_0x2534('0x1f')][_0x2534('0x26')](({thread:_0x2499f1})=>{const _0x1bee61=_0x28171c[_0x2534('0x10')][_0x2534('0x9')](_0x2499f1);return _0x1bee61&&_0x1a8f86[_0x2534('0x1a')]===_0x1bee61[_0x2534('0x2d')];});_0x5b3ada&&(this['annotationViews'][_0x2534('0x0')](_0x1a8f86[_0x2534('0x2d')],_0x5b3ada[_0x2534('0x2c')]),this[_0x2534('0x1f')]['splice'](this['_pendingThreads'][_0x2534('0x1')](_0x5b3ada),0x1));}),this[_0x2534('0x2f')](_0x488daf[_0x2534('0x2b')],_0x2534('0x20'),(_0x228514,_0x597974)=>{const _0x4c803a=this['editor'][_0x2534('0x27')][_0x2534('0x9')](_0x2534('0x21'));if(!_0x4c803a||_0x597974['channelId']===_0x4c803a){const _0xe92cf1=_0x28171c['_threadToController'][_0x2534('0x9')](_0x597974),_0x53f431=_0x2aae15['getByInnerView'](_0xe92cf1[_0x2534('0x2d')]);this[_0x2534('0xd')][_0x2534('0x20')](_0x53f431[_0x2534('0x2d')]),this[_0x2534('0xc')](_0x53f431[_0x2534('0x31')]);}});}[_0x2534('0x1e')](_0x28c552,_0x1dff77){for(const _0x40510c of _0x1dff77[_0x2534('0x31')])_0x40510c[_0x2534('0x4')][_0x2534('0x28')](_0x2534('0x22'))&&_0x28c552[_0x2534('0xa')][_0x2534('0x0')](_0x40510c);this[_0x2534('0x2f')](_0x1dff77['focusableElements'],_0x2534('0x0'),(_0x39916d,_0x5dbe1d)=>{_0x5dbe1d[_0x2534('0x4')][_0x2534('0x28')](_0x2534('0x22'))&&_0x28c552[_0x2534('0xa')][_0x2534('0x0')](_0x5dbe1d);}),this[_0x2534('0x2f')](_0x1dff77['focusableElements'],_0x2534('0x20'),(_0x4501bf,_0xde4e57)=>{_0xde4e57['classList']['contains']('ck-body')&&_0x28c552['focusTracker']['remove'](_0xde4e57);});}[_0x2534('0x2')](_0x557c35){const _0x5306bb=this[_0x2534('0x5')]['config']['get']('collaboration.channelId'),_0x18f000=[...this['editor']['plugins'][_0x2534('0x9')](_0x3cef1a)[_0x2534('0x2b')]]['filter'](_0x547223=>_0x547223[_0x2534('0x23')]!==_0x5306bb)[_0x2534('0x12')](_0x5bd359=>_0x5bd359[_0x2534('0x30')]<_0x557c35);return _0x18f000>-0x1?_0x18f000:this[_0x2534('0xd')][_0x2534('0x15')];}['_createArchiveUIDropdown'](){const _0x3d84e4=this[_0x2534('0x5')],_0x444ac0=this['editor'][_0x2534('0x1c')][_0x2534('0x9')]('Annotations'),_0x1ac342=_0x27dc41(_0x3d84e4[_0x2534('0x6')]);_0x1ac342[_0x2534('0x13')][_0x2534('0xe')]({'icon':_0x28ecf2,'label':_0x351c73(_0x3d84e4[_0x2534('0x6')],_0x2534('0x17')),'tooltip':!0x0}),_0x1ac342[_0x2534('0x1d')][_0x2534('0x8')]({'attributes':{'class':_0x2534('0x19')}}),_0x1ac342['on']('change:isOpen',(_0x3adc63,_0x3a1fac,_0x818652)=>{this['commentsArchiveView']||(this[_0x2534('0x7')]=new _0x140eea(_0x3d84e4[_0x2534('0x6')],this[_0x2534('0xd')])),_0x818652?_0x1ac342[_0x2534('0x1d')][_0x2534('0x18')][_0x2534('0x0')](this['commentsArchiveView']):_0x1ac342[_0x2534('0x1d')][_0x2534('0x18')][_0x2534('0x20')](this[_0x2534('0x7')]);});for(const _0x330e3f of this['annotationViews']){const _0x502f5b=_0x444ac0[_0x2534('0x16')](_0x330e3f[_0x2534('0x3')]);this[_0x2534('0x1e')](_0x1ac342,_0x502f5b);}return _0x1ac342[_0x2534('0x2f')](this[_0x2534('0xd')],_0x2534('0x0'),(_0x4692ed,_0x406713)=>{const _0x5165f3=_0x444ac0[_0x2534('0x16')](_0x406713[_0x2534('0x3')]);this['_handleAnnotationFocusableElements'](_0x1ac342,_0x5165f3);}),_0x1ac342[_0x2534('0x2f')](this[_0x2534('0xd')],_0x2534('0x20'),(_0x318cae,_0x16c940)=>{const _0x587c39=_0x444ac0['getByInnerView'](_0x16c940[_0x2534('0x3')]);for(const _0x15e241 of _0x587c39['focusableElements'])_0x15e241[_0x2534('0x4')][_0x2534('0x28')](_0x2534('0x22'))&&_0x1ac342[_0x2534('0xa')][_0x2534('0x20')](_0x15e241);}),_0x1ac342;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2d0a=['data','hasContent','registerAnnotation','addCommentThread','_attachResolvedThread','createRange','split','comment:','_getTargetForId','addComment','isObject','filter','init','end','_getTextContext','resolveCommentThread','conversion','editor','registerPostFixer','ready','markerToHighlight','text','high','get','reopen','then','root','render','removeCommentThread','item','reconvertMarker','_handleThreadMarker','collaboration.channelId','isLocal','_attachMarkerToThread','model','differ','focus','pluginName','isResolved','managedUsingOperations','editingDowncast','removeMarker','affectsData','markerName','comment','consume','view','change:activeMarker','rootName','createPositionBefore','enqueueChange','state','size','low','context','change:isReadOnly','getByInnerView','plugins','change:isThreadsLoadingPaused','ck-comment-marker--active','_threadToController','markers','_handleMarkerAddAndRemove','CommentsEditing','once','activeMarker','_threads','_autoResolvedThreads','document','dataToMarker','start','setContext','$graveyard','map','_reconvertMarkers','getCommentThreads','_hasTargetInContent','$marker','hasDomSelection','getChangedMarkers','switchReadOnly','elementToElement','add','openNewCommentThread','set','consumable','for','updateMarker','scrollToThreadMarker','from','config','has','clear','destroy','getAttribute','listenTo','hasMarkerForId','getCommentThread','schema','resolve','getAllMarkersForId','editing','delete','dataDowncast','_removedThread','isCollapsed','upcast','length','destroyed','_detachCommentThread','ck-comment-marker','markerToData','_attachedThreads','removeMarker:','commands','isThreadsLoadingPaused','change','newRange','getItems','isEqual'];(function(_0x160498,_0x2d0ab5){const _0x410e21=function(_0xa8a40f){while(--_0xa8a40f){_0x160498['push'](_0x160498['shift']());}};_0x410e21(++_0x2d0ab5);}(_0x2d0a,0xc0));const _0x410e=function(_0x160498,_0x2d0ab5){_0x160498=_0x160498-0x0;let _0x410e21=_0x2d0a[_0x160498];return _0x410e21;};import{Plugin as _0x4cfb5c}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x34e470}from'ckeditor5/src/utils';import _0x1bf62 from'./commentsrepository';import _0x3cc61a from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4ae96b}from'ckeditor5-collaboration/src/collaboration-core';import _0x2d04e6 from'../annotations/editorannotations';import _0x137232 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x3336c7 from'./integrations/importword';import _0xc1ca11 from'../annotations/annotations';export default class r extends _0x4cfb5c{static get['requires'](){return[_0x1bf62,_0x2d04e6,_0x137232,_0x3336c7];}static get[_0x410e('0x58')](){return _0x410e('0x72');}constructor(_0x2b72b8){super(_0x2b72b8),this[_0x410e('0x22')]=null,this[_0x410e('0x76')]=new Set(),this['set']('isThreadsLoadingPaused',!0x0),_0x2b72b8[_0x410e('0x32')]['once'](_0x410e('0x45'),()=>this[_0x410e('0x2d')]=!0x1),this['set'](_0x410e('0x74'),null),this['on'](_0x410e('0x62'),(_0x2c4763,_0x1f8771,_0x564d2a,_0x449e61)=>{const _0xb32b8=_0x564d2a?tt(_0x564d2a)['id']:null;if(_0x2b72b8[_0x410e('0x55')]['change'](()=>{if(_0xb32b8){const _0x14f7c5=this[_0x410e('0x1e')](_0xb32b8);for(const _0x189a03 of _0x14f7c5)_0x2b72b8[_0x410e('0x1f')][_0x410e('0x50')](_0x189a03);}if(_0x449e61){const {id:_0x2d0666}=tt(_0x449e61),_0x335419=this[_0x410e('0x1e')](_0x2d0666);for(const _0x3ee823 of _0x335419)_0x2b72b8['editing'][_0x410e('0x50')](_0x3ee823);}}),_0xb32b8){const _0x277d1c=_0x2b72b8[_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62)['getCommentThread'](_0xb32b8);_0x277d1c&&_0x277d1c[_0x410e('0x59')]&&this['scrollToThreadMarker'](_0xb32b8);}}),this['_attachedThreads']=new Map();}[_0x410e('0x3e')](){const _0x593214=this[_0x410e('0x43')],_0x46441d=_0x593214['plugins'][_0x410e('0x49')](_0x1bf62),_0x75ad6d=_0x593214[_0x410e('0x14')]['get'](_0x410e('0x52'));_0x593214[_0x410e('0x2c')][_0x410e('0xc')]('addCommentThread',new _0x3cc61a(_0x593214)),this[_0x410e('0x19')](_0x593214,_0x410e('0x6a'),(_0x27c763,_0x57e152,_0x52706c)=>{_0x46441d[_0x410e('0xa')](_0x52706c,_0x593214[_0x410e('0x14')]['get'](_0x410e('0x52')));}),this['listenTo'](_0x46441d,Z(_0x410e('0x35'),_0x75ad6d),(_0xe841ad,{threadId:_0x32c35})=>{const _0x22a8e3=this['editor'][_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62)[_0x410e('0x1b')](_0x32c35);_0x22a8e3&&_0x22a8e3[_0x410e('0x59')]&&this[_0x410e('0x36')](_0x32c35);}),this[_0x410e('0x19')](_0x46441d,Z(_0x410e('0x4e'),_0x75ad6d),(_0xed4734,{threadId:_0x4d9bdc})=>{_0x593214[_0x410e('0x55')]['enqueueChange']({'isUndoable':!0x1},_0x3429cf=>{const _0x29fcb0=this[_0x410e('0x1e')](_0x4d9bdc);this[_0x410e('0x2a')]['delete'](_0x4d9bdc),this['_removedThread']=_0x4d9bdc;for(const _0x36fad1 of _0x29fcb0)_0x3429cf[_0x410e('0x5c')](_0x36fad1);}),this['_removedThread']=null;},{'priority':_0x410e('0x48')}),this['listenTo'](_0x46441d,Z(_0x410e('0x41'),_0x75ad6d),(_0x26dc53,{threadId:_0x1a4e7e})=>{this[_0x410e('0x36')](_0x1a4e7e),this[_0x410e('0x4')](_0x1a4e7e),this[_0x410e('0x43')][_0x410e('0x1f')]['view'][_0x410e('0x8')]&&this['editor'][_0x410e('0x1f')][_0x410e('0x61')][_0x410e('0x57')]();},{'priority':_0x410e('0x68')}),this['listenTo'](_0x46441d,Z('reopenCommentThread',_0x75ad6d),(_0x4b7109,{threadId:_0x2420b4})=>{this[_0x410e('0x4')](_0x2420b4);},{'priority':_0x410e('0x68')}),this[_0x410e('0x19')](_0x46441d,Z(_0x410e('0x3b'),_0x75ad6d),(_0x3dcdef,{threadId:_0x5d6490,isFromAdapter:_0xe3e089})=>{const _0x3af269=this[_0x410e('0x1e')](_0x5d6490);if(_0xe3e089||0x0==_0x3af269[_0x410e('0x25')]||!_0x46441d['hasCommentThread'](_0x5d6490))return;0x1===_0x46441d[_0x410e('0x1b')](_0x5d6490)[_0x410e('0x25')]&&_0x593214['model'][_0x410e('0x65')]({'isUndoable':!0x1},_0x30d3ae=>{for(const _0x3f4f27 of _0x3af269)_0x30d3ae['updateMarker'](_0x3f4f27,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['destroy'](){const _0x5ec5b9=this[_0x410e('0x43')][_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62),_0x9c955d=this[_0x410e('0x43')][_0x410e('0x14')][_0x410e('0x49')]('collaboration.channelId');for(const _0x39869 of _0x5ec5b9[_0x410e('0x5')]({'channelId':_0x9c955d}))_0x5ec5b9[_0x410e('0x27')](_0x39869['id']),_0x5ec5b9[_0x410e('0x75')]['delete'](_0x39869['id']);super[_0x410e('0x17')]();}[_0x410e('0x1a')](_0x6024af){return this['getAllMarkersForId'](_0x6024af)['length']>0x0;}[_0x410e('0x1e')](_0xb04bf3){return Array[_0x410e('0x13')](this[_0x410e('0x2a')][_0x410e('0x49')](_0xb04bf3)||[])[_0x410e('0x3')](_0x7d2cf4=>this[_0x410e('0x43')][_0x410e('0x55')][_0x410e('0x70')]['get'](_0x7d2cf4))[_0x410e('0x3d')](_0x295bd7=>_0x295bd7);}[_0x410e('0x12')](_0x130685){const _0x596cfa=this[_0x410e('0x3a')](_0x130685);_0x596cfa&&setTimeout(()=>{this[_0x410e('0x74')]&&tt(this[_0x410e('0x74')])['id']===_0x130685&&_0x34e470({'target':_0x596cfa[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x410e('0x4')](_0x3260ef){this[_0x410e('0x43')][_0x410e('0x55')][_0x410e('0x2e')](()=>{for(const _0x24bfa8 of this[_0x410e('0x1e')](_0x3260ef))this[_0x410e('0x43')]['editing'][_0x410e('0x50')](_0x24bfa8);});}['_attachResolvedThread'](_0x2a72d2){const _0x4b7961=this[_0x410e('0x43')][_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62),_0x3c2ce5=this[_0x410e('0x43')][_0x410e('0x6c')][_0x410e('0x49')](_0x2d04e6),_0xb7dad4=_0x4b7961[_0x410e('0x1b')](_0x2a72d2);if(!this[_0x410e('0x2a')][_0x410e('0x15')](_0x2a72d2)){const _0x19ec80=_0xb7dad4['attachTo'](()=>this[_0x410e('0x3a')](_0xb7dad4['id']));_0x3c2ce5['registerAnnotation'](_0x19ec80),this['_attachedThreads'][_0x410e('0xe')](_0x2a72d2,new Set()),_0xb7dad4[_0x410e('0x6')]=!0x1;}}['_initializeMarkerConverters'](){const _0x8f94a2=this['editor'];_0x8f94a2[_0x410e('0x42')][_0x410e('0x10')](_0x410e('0x5b'))[_0x410e('0x46')]({'model':_0x410e('0x5f'),'view':(_0x361a46,_0x255c66)=>{const {id:_0x4223c5}=tt(_0x361a46[_0x410e('0x5e')]),_0x6d88b9=_0x8f94a2[_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62)[_0x410e('0x1b')](_0x4223c5),_0x512ae9=this[_0x410e('0x74')]&&tt(this['activeMarker'])['id']===_0x4223c5;if(_0x6d88b9&&_0x6d88b9['isResolved']&&!_0x512ae9&&_0x361a46[_0x410e('0x4f')])return _0x255c66[_0x410e('0xf')][_0x410e('0x60')](_0x361a46[_0x410e('0x4f')],'addMarker:'+_0x361a46[_0x410e('0x5e')]),_0x255c66['consumable'][_0x410e('0x60')](_0x361a46[_0x410e('0x4f')],_0x410e('0x2b')+_0x361a46[_0x410e('0x5e')]),{'classes':[]};const _0x4269d9=[_0x410e('0x28')];return _0x512ae9&&_0x4269d9['push'](_0x410e('0x6e')),{'classes':_0x4269d9,'attributes':{'data-comment':_0x4223c5}};}}),_0x8f94a2[_0x410e('0x42')][_0x410e('0x10')](_0x410e('0x21'))[_0x410e('0x29')]({'model':_0x410e('0x5f'),'view':(_0x19f6d1,{options:_0x6056e0})=>{const _0x4569ce=_0x8f94a2[_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62),_0x3584d3=_0x8f94a2[_0x410e('0x55')][_0x410e('0x70')]['get'](_0x19f6d1),{id:_0x50d244,part:_0x8bbaa1}=tt(_0x19f6d1);if(_0x3584d3&&!_0x3584d3[_0x410e('0x5d')])return null;if(_0x6056e0['ignoreResolvedComments']){const _0x306172=_0x4569ce[_0x410e('0x1b')](_0x50d244);if(_0x306172&&_0x306172[_0x410e('0x59')])return null;}return{'group':'comment','name':_0x8bbaa1?_0x50d244+':'+_0x8bbaa1:_0x50d244};}}),_0x8f94a2[_0x410e('0x42')]['for'](_0x410e('0x24'))[_0x410e('0xb')]({'view':{'name':_0x410e('0x5f'),'attributes':{'id':/^\w/}},'model':(_0x3d9c42,{writer:_0x26ebb9})=>_0x26ebb9['createElement'](_0x410e('0x7'),{'data-name':_0x410e('0x39')+_0x3d9c42[_0x410e('0x18')]('id')})}),_0x8f94a2[_0x410e('0x42')]['for'](_0x410e('0x24'))[_0x410e('0x78')]({'view':'comment'});}[_0x410e('0x71')](){const _0x3b96=this[_0x410e('0x43')],_0x2f06bf=_0x3b96[_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62),_0x46b400=new Set(),_0x3d4ac3=new Set();_0x3b96[_0x410e('0x55')]['document'][_0x410e('0x44')](_0x12e660=>{let _0x453fd4=!0x1;for(const {name:_0xd14dd9,data:_0x56a772}of _0x3b96['model']['document'][_0x410e('0x56')][_0x410e('0x9')]()){const {group:_0x530ca3,id:_0x162b54}=tt(_0xd14dd9);let _0x3a7113=_0x56a772[_0x410e('0x2f')];if(_0x410e('0x5f')!==_0x530ca3||!_0x3a7113)continue;const _0x198779=_0x410e('0x2')===_0x3a7113[_0x410e('0x4c')][_0x410e('0x63')];_0x198779||(_0x3a7113=ot(_0x3a7113,_0x3b96[_0x410e('0x55')]),!_0x3a7113||_0x3a7113[_0x410e('0x23')]||!_0x56a772['newRange']||_0x3a7113[_0x410e('0x31')](_0x56a772[_0x410e('0x2f')]))?_0x3b96[_0x410e('0x55')][_0x410e('0x33')](_0x3a7113)&&!_0x198779?this['isThreadsLoadingPaused']?_0x46b400[_0x410e('0xc')](_0xd14dd9):this['_handleThreadMarker'](_0xd14dd9,_0x162b54):(_0x3d4ac3[_0x410e('0xc')](_0xd14dd9),_0x46b400['delete'](_0xd14dd9),_0x12e660[_0x410e('0x5c')](_0xd14dd9),_0x453fd4=!0x0):(_0x12e660[_0x410e('0x11')](_0xd14dd9,{'range':_0x3a7113}),_0x453fd4=!0x0);}return _0x453fd4;}),this['on'](_0x410e('0x6d'),(_0x9558c7,_0xf1f6c1,_0x3d57c7)=>{if(!_0x3d57c7&&_0x46b400[_0x410e('0x67')])for(const _0x5a47e2 of _0x46b400){const {id:_0x3de01f}=tt(_0x5a47e2);_0x46b400[_0x410e('0x20')](_0x5a47e2),_0x3b96[_0x410e('0x55')]['markers']['get'](_0x5a47e2)&&this[_0x410e('0x51')](_0x5a47e2,_0x3de01f);}}),this['listenTo'](_0x3b96['model'][_0x410e('0x77')],_0x410e('0x2e'),(_0x430261,_0x509080)=>{for(const {name:_0x5d1450,data:{newRange:_0x33e05d}}of _0x3b96['model'][_0x410e('0x77')][_0x410e('0x56')][_0x410e('0x9')]()){const {group:_0x12b811,id:_0x47ad00}=tt(_0x5d1450);if(_0x410e('0x5f')!==_0x12b811)continue;const _0x1d0377=_0x2f06bf[_0x410e('0x1b')](_0x47ad00),_0x495308=this[_0x410e('0x1a')](_0x47ad00);_0x1d0377&&(_0x1d0377[_0x410e('0x6')]||_0x3b96['editing'][_0x410e('0x61')][_0x410e('0x73')](_0x410e('0x4d'),()=>{const _0x1023ce=_0x3b96[_0x410e('0x6c')][_0x410e('0x49')](_0xc1ca11),_0x272edf=_0x2f06bf[_0x410e('0x6f')][_0x410e('0x49')](_0x1d0377)[_0x410e('0x61')];_0x1023ce[_0x410e('0x6b')](_0x272edf)['refreshVisibility']();},{'priority':_0x410e('0x68')}),_0x1d0377[_0x410e('0x6')]=_0x495308||!!_0x33e05d),_0x33e05d||(_0x3d4ac3['add'](_0x5d1450),_0x46b400[_0x410e('0x20')](_0x5d1450),this[_0x410e('0x2a')][_0x410e('0x15')](_0x47ad00)&&this['_attachedThreads']['get'](_0x47ad00)[_0x410e('0x20')](_0x5d1450));}if(_0x509080[_0x410e('0x53')])for(const _0xa35671 of _0x3d4ac3){const {id:_0x3f7948}=tt(_0xa35671),_0x3d9954=_0x2f06bf['getCommentThread'](_0x3f7948),_0x167926=this[_0x410e('0x1a')](_0x3f7948);_0x46b400['delete'](_0xa35671),!_0x3d9954||_0x167926||_0x3d9954[_0x410e('0x59')]||this[_0x410e('0x22')]===_0x3f7948||(this[_0x410e('0x76')]['add'](_0x3d9954),_0x3d9954[_0x410e('0x1d')]());}_0x3d4ac3[_0x410e('0x16')]();});}[_0x410e('0x3a')](_0x40c864){const _0x36f7f3=this[_0x410e('0x43')],_0x33e0ab=this[_0x410e('0x1e')](_0x40c864);return _0x4ae96b(_0x36f7f3[_0x410e('0x1f')],_0x33e0ab);}[_0x410e('0x40')](_0xc71e67){const _0x1462c4=this['getAllMarkersForId'](_0xc71e67);let _0x38a7dc='',_0x5749d7=!0x1;for(const _0x197670 of _0x1462c4){const _0x195092=_0x197670['getRange']();for(const _0x5821c4 of Array[_0x410e('0x13')](_0x195092[_0x410e('0x30')]()))_0x5821c4['is']('$textProxy')?(_0x38a7dc&&_0x5749d7&&(_0x38a7dc+='\x20',_0x5749d7=!0x1),_0x38a7dc+=_0x5821c4[_0x410e('0x32')]):_0x5749d7=!0x0;_0x5749d7=!0x0;}return _0x38a7dc['substring'](0x0,0x96);}[_0x410e('0x54')](_0x11e9ef,_0xad0317){const _0x1cfd88=this[_0x410e('0x43')],_0x15c3e0=_0x1cfd88[_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62);let _0x224210=_0x15c3e0['getCommentThread'](_0xad0317);if(this[_0x410e('0x2a')][_0x410e('0x15')](_0xad0317)){const _0x2a398d=this[_0x410e('0x2a')][_0x410e('0x49')](_0xad0317);_0x2a398d[_0x410e('0x15')](_0x11e9ef)||_0x2a398d[_0x410e('0xc')](_0x11e9ef);}const _0x6725b5=_0x1cfd88[_0x410e('0x14')][_0x410e('0x49')](_0x410e('0x52')),_0x2a71c3=_0x1cfd88[_0x410e('0x6c')][_0x410e('0x49')](_0x2d04e6);if(_0x224210&&_0x224210['isResolved']&&this[_0x410e('0x76')]['has'](_0x224210)&&(this['_autoResolvedThreads'][_0x410e('0x20')](_0x224210),_0x224210[_0x410e('0x4a')]()),this[_0x410e('0x2a')][_0x410e('0x15')](_0xad0317))return _0x224210;return this[_0x410e('0x2a')][_0x410e('0xe')](_0xad0317,new Set([_0x11e9ef])),(!this[_0x410e('0x1e')](_0xad0317)[0x0][_0x410e('0x5a')]?_0x1cfd88['editing']['view']['once'](_0x410e('0x4d'),()=>{const _0x8387e7=_0x1cfd88[_0x410e('0x6c')]['get'](_0xc1ca11);_0x224210=_0x15c3e0[_0x410e('0xd')]({'channelId':_0x6725b5,'threadId':_0xad0317,'target':()=>this[_0x410e('0x3a')](_0xad0317),'context':{'type':_0x410e('0x47'),'value':this[_0x410e('0x40')](_0xad0317)}});const _0x5277c8=_0x15c3e0['_threadToController']['get'](_0x224210)[_0x410e('0x61')],_0x49a8da=_0x8387e7['getByInnerView'](_0x5277c8);_0x49a8da&&_0x2a71c3[_0x410e('0x34')](_0x49a8da);},{'priority':_0x410e('0x68')}):_0x15c3e0['fetchCommentThread']({'channelId':_0x6725b5,'threadId':_0xad0317})[_0x410e('0x4b')](_0x11ea21=>{if(_0x410e('0x26')!==_0x1cfd88[_0x410e('0x66')]){if(_0x224210=_0x11ea21,_0x224210){const _0x2a4a67=_0x224210['attachTo'](()=>this[_0x410e('0x3a')](_0xad0317));_0x2a71c3[_0x410e('0x34')](_0x2a4a67),_0x224210['isResolved']&&this[_0x410e('0x4')](_0xad0317);}else{const _0x5ac16c=this[_0x410e('0x1e')](_0xad0317);_0x1cfd88[_0x410e('0x55')][_0x410e('0x2e')](_0x316150=>{for(const _0x4f32a9 of _0x5ac16c)_0x316150[_0x410e('0x5c')](_0x4f32a9);});}}}),_0x224210);}['_handleThreadMarker'](_0x4433f5,_0x865fa1){const _0x2ed189=this[_0x410e('0x54')](_0x4433f5,_0x865fa1);_0x2ed189&&!_0x2ed189[_0x410e('0x69')]&&_0x2ed189[_0x410e('0x1')]({'type':_0x410e('0x47'),'value':this['_getTextContext'](_0x865fa1)});}}function Z(_0x180df6,_0x4ebb42){return _0x4ebb42?_0x180df6+':'+_0x4ebb42:_0x180df6;}function tt(_0x35bf5e){const _0xcba58c=_0x35bf5e[_0x410e('0x38')](':');return{'group':_0xcba58c[0x0],'id':_0xcba58c[0x1],'part':_0xcba58c[0x2]};}function ot(_0x397303,_0x1ed332){const _0x48db34=_0x1ed332[_0x410e('0x1c')],_0x15d71e=_0x1ed332[_0x410e('0x37')](_0x397303[_0x410e('0x0')]);for(const _0x5b5b93 of _0x397303['getWalker']()){const {type:_0x2ab65d,item:_0x2cd1b9,nextPosition:_0x3279d0}=_0x5b5b93;if('text'===_0x2ab65d||_0x48db34[_0x410e('0x3c')](_0x2cd1b9)){const _0x3e3a57=_0x1ed332[_0x410e('0x64')](_0x2cd1b9);_0x15d71e['isCollapsed']&&(_0x15d71e['start']=_0x3e3a57),_0x15d71e[_0x410e('0x3f')]=_0x3279d0;}}return _0x15d71e;}
|
|
23
|
+
const _0x4f0e=['start','pluginName','_handleMarkerAddAndRemove','$marker','has','activeMarker','hasDomSelection','_threads','_attachedThreads','hasMarkerForId','isEqual','refreshVisibility','consumable','markers','registerPostFixer','from','size','data','_initializeMarkerConverters','end','addCommentThread','map','reconvertMarker','ck-comment-marker','for','state','destroyed','substring','_autoResolvedThreads','conversion','reopenCommentThread','ready','setContext','render','focus','item','_detachCommentThread','document','rootName','addComment','add','once','resolve','high','attachTo','_getTargetForId','removeCommentThread','config','removeMarker:','isThreadsLoadingPaused','registerAnnotation','markerToHighlight','context','upcast','isCollapsed','clear','isResolved','destroy','_handleThreadMarker','change:isReadOnly','$textProxy','scrollToThreadMarker','hasCommentThread','getWalker','_reconvertMarkers','listenTo','getCommentThread','set','createElement','low','ck-comment-marker--active','getAllMarkersForId','model','view','consume','comment','markerName','delete','switchReadOnly','addMarker:','commands','length','managedUsingOperations','getCommentThreads','change','schema','collaboration.channelId','_removedThread','getAttribute','removeMarker','init','editing','CommentsEditing','differ','_hasTargetInContent','newRange','ignoreResolvedComments','enqueueChange','_attachResolvedThread','editingDowncast','getByInnerView','push','plugins','root','_threadToController','editor','_getTextContext','getItems','change:activeMarker','then','text','updateMarker','resolveCommentThread','$graveyard','openNewCommentThread','requires','createPositionBefore','get'];(function(_0x65cdcc,_0x4f0e37){const _0x2be088=function(_0x23882b){while(--_0x23882b){_0x65cdcc['push'](_0x65cdcc['shift']());}};_0x2be088(++_0x4f0e37);}(_0x4f0e,0x7e));const _0x2be0=function(_0x65cdcc,_0x4f0e37){_0x65cdcc=_0x65cdcc-0x0;let _0x2be088=_0x4f0e[_0x65cdcc];return _0x2be088;};import{Plugin as _0xb1c932}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x203557}from'ckeditor5/src/utils';import _0x14340c from'./commentsrepository';import _0x5db15c from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x13b59d}from'ckeditor5-collaboration/src/collaboration-core';import _0x1c6991 from'../annotations/editorannotations';import _0x541953 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x19346f from'./integrations/importword';import _0x514412 from'../annotations/annotations';export default class r extends _0xb1c932{static get[_0x2be0('0x6b')](){return[_0x14340c,_0x1c6991,_0x541953,_0x19346f];}static get[_0x2be0('0x6f')](){return _0x2be0('0x54');}constructor(_0x1ec3a1){super(_0x1ec3a1),this['_removedThread']=null,this[_0x2be0('0x14')]=new Set(),this[_0x2be0('0x3b')](_0x2be0('0x29'),!0x0),_0x1ec3a1[_0x2be0('0x9')][_0x2be0('0x21')](_0x2be0('0x17'),()=>this[_0x2be0('0x29')]=!0x1),this[_0x2be0('0x3b')]('activeMarker',null),this['on'](_0x2be0('0x64'),(_0x5a7a28,_0x507556,_0x3efcc8,_0x2c76c8)=>{const _0x2a8f6a=_0x3efcc8?tt(_0x3efcc8)['id']:null;if(_0x1ec3a1[_0x2be0('0x40')]['change'](()=>{if(_0x2a8f6a){const _0x3a331c=this['getAllMarkersForId'](_0x2a8f6a);for(const _0x55f685 of _0x3a331c)_0x1ec3a1['editing'][_0x2be0('0xe')](_0x55f685);}if(_0x2c76c8){const {id:_0x4a7360}=tt(_0x2c76c8),_0x3aac46=this[_0x2be0('0x3f')](_0x4a7360);for(const _0x954880 of _0x3aac46)_0x1ec3a1['editing'][_0x2be0('0xe')](_0x954880);}}),_0x2a8f6a){const _0x45c69f=_0x1ec3a1[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c)['getCommentThread'](_0x2a8f6a);_0x45c69f&&_0x45c69f['isResolved']&&this[_0x2be0('0x35')](_0x2a8f6a);}}),this[_0x2be0('0x0')]=new Map();}[_0x2be0('0x52')](){const _0x1aa5a3=this[_0x2be0('0x61')],_0x309136=_0x1aa5a3[_0x2be0('0x5e')]['get'](_0x14340c),_0x68f2a2=_0x1aa5a3[_0x2be0('0x27')]['get'](_0x2be0('0x4e'));_0x1aa5a3[_0x2be0('0x48')][_0x2be0('0x20')](_0x2be0('0xc'),new _0x5db15c(_0x1aa5a3)),this[_0x2be0('0x39')](_0x1aa5a3,_0x2be0('0x33'),(_0x1eb8d0,_0x20533e,_0xd70650)=>{_0x309136[_0x2be0('0x46')](_0xd70650,_0x1aa5a3[_0x2be0('0x27')]['get'](_0x2be0('0x4e')));}),this[_0x2be0('0x39')](_0x309136,Z(_0x2be0('0xc'),_0x68f2a2),(_0x53b39a,{threadId:_0x51e386})=>{const _0x554043=this[_0x2be0('0x61')][_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c)[_0x2be0('0x3a')](_0x51e386);_0x554043&&_0x554043[_0x2be0('0x30')]&&this[_0x2be0('0x5a')](_0x51e386);}),this[_0x2be0('0x39')](_0x309136,Z(_0x2be0('0x26'),_0x68f2a2),(_0x4bd1ad,{threadId:_0x8d484c})=>{_0x1aa5a3[_0x2be0('0x40')][_0x2be0('0x59')]({'isUndoable':!0x1},_0x287d2f=>{const _0x578d6a=this[_0x2be0('0x3f')](_0x8d484c);this[_0x2be0('0x0')]['delete'](_0x8d484c),this[_0x2be0('0x4f')]=_0x8d484c;for(const _0x329732 of _0x578d6a)_0x287d2f[_0x2be0('0x51')](_0x329732);}),this['_removedThread']=null;},{'priority':_0x2be0('0x23')}),this['listenTo'](_0x309136,Z(_0x2be0('0x68'),_0x68f2a2),(_0x334d28,{threadId:_0x3686bc})=>{this[_0x2be0('0x5a')](_0x3686bc),this[_0x2be0('0x38')](_0x3686bc),this[_0x2be0('0x61')]['editing'][_0x2be0('0x41')][_0x2be0('0x74')]&&this[_0x2be0('0x61')][_0x2be0('0x53')][_0x2be0('0x41')][_0x2be0('0x1a')]();},{'priority':_0x2be0('0x3d')}),this[_0x2be0('0x39')](_0x309136,Z(_0x2be0('0x16'),_0x68f2a2),(_0x101495,{threadId:_0x2f800c})=>{this[_0x2be0('0x38')](_0x2f800c);},{'priority':_0x2be0('0x3d')}),this['listenTo'](_0x309136,Z(_0x2be0('0x1f'),_0x68f2a2),(_0x31adce,{threadId:_0x195a94,isFromAdapter:_0x377d78})=>{const _0x747388=this[_0x2be0('0x3f')](_0x195a94);if(_0x377d78||0x0==_0x747388[_0x2be0('0x49')]||!_0x309136[_0x2be0('0x36')](_0x195a94))return;0x1===_0x309136[_0x2be0('0x3a')](_0x195a94)[_0x2be0('0x49')]&&_0x1aa5a3[_0x2be0('0x40')][_0x2be0('0x59')]({'isUndoable':!0x1},_0x4fb570=>{for(const _0x1d0293 of _0x747388)_0x4fb570[_0x2be0('0x67')](_0x1d0293,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x2be0('0x3d')}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}[_0x2be0('0x31')](){const _0x4488b8=this['editor'][_0x2be0('0x5e')]['get'](_0x14340c),_0x3d358d=this[_0x2be0('0x61')][_0x2be0('0x27')][_0x2be0('0x6d')]('collaboration.channelId');for(const _0xcdf606 of _0x4488b8[_0x2be0('0x4b')]({'channelId':_0x3d358d}))_0x4488b8[_0x2be0('0x1c')](_0xcdf606['id']),_0x4488b8[_0x2be0('0x75')]['delete'](_0xcdf606['id']);super[_0x2be0('0x31')]();}[_0x2be0('0x1')](_0x1a5824){return this[_0x2be0('0x3f')](_0x1a5824)[_0x2be0('0x49')]>0x0;}['getAllMarkersForId'](_0x58ff78){return Array[_0x2be0('0x7')](this['_attachedThreads']['get'](_0x58ff78)||[])[_0x2be0('0xd')](_0x51be71=>this[_0x2be0('0x61')][_0x2be0('0x40')][_0x2be0('0x5')]['get'](_0x51be71))['filter'](_0x144240=>_0x144240);}[_0x2be0('0x35')](_0x223145){const _0x4bcce4=this[_0x2be0('0x25')](_0x223145);_0x4bcce4&&setTimeout(()=>{this[_0x2be0('0x73')]&&tt(this['activeMarker'])['id']===_0x223145&&_0x203557({'target':_0x4bcce4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x2be0('0x38')](_0x4454f8){this[_0x2be0('0x61')][_0x2be0('0x40')][_0x2be0('0x4c')](()=>{for(const _0x7f6b8d of this[_0x2be0('0x3f')](_0x4454f8))this[_0x2be0('0x61')][_0x2be0('0x53')][_0x2be0('0xe')](_0x7f6b8d);});}[_0x2be0('0x5a')](_0x491bb2){const _0x545b5a=this[_0x2be0('0x61')][_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c),_0x5444d6=this[_0x2be0('0x61')]['plugins'][_0x2be0('0x6d')](_0x1c6991),_0x1a5d47=_0x545b5a['getCommentThread'](_0x491bb2);if(!this[_0x2be0('0x0')]['has'](_0x491bb2)){const _0x31c0d6=_0x1a5d47[_0x2be0('0x24')](()=>this['_getTargetForId'](_0x1a5d47['id']));_0x5444d6['registerAnnotation'](_0x31c0d6),this['_attachedThreads'][_0x2be0('0x3b')](_0x491bb2,new Set()),_0x1a5d47['_hasTargetInContent']=!0x1;}}[_0x2be0('0xa')](){const _0x158dde=this[_0x2be0('0x61')];_0x158dde[_0x2be0('0x15')][_0x2be0('0x10')](_0x2be0('0x5b'))[_0x2be0('0x2b')]({'model':_0x2be0('0x43'),'view':(_0x37b090,_0x54254b)=>{const {id:_0x5902f5}=tt(_0x37b090[_0x2be0('0x44')]),_0x217a03=_0x158dde[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c)[_0x2be0('0x3a')](_0x5902f5),_0x5b566b=this[_0x2be0('0x73')]&&tt(this['activeMarker'])['id']===_0x5902f5;if(_0x217a03&&_0x217a03['isResolved']&&!_0x5b566b&&_0x37b090[_0x2be0('0x1b')])return _0x54254b[_0x2be0('0x4')][_0x2be0('0x42')](_0x37b090[_0x2be0('0x1b')],_0x2be0('0x47')+_0x37b090[_0x2be0('0x44')]),_0x54254b[_0x2be0('0x4')][_0x2be0('0x42')](_0x37b090[_0x2be0('0x1b')],_0x2be0('0x28')+_0x37b090['markerName']),{'classes':[]};const _0x19b944=[_0x2be0('0xf')];return _0x5b566b&&_0x19b944[_0x2be0('0x5d')](_0x2be0('0x3e')),{'classes':_0x19b944,'attributes':{'data-comment':_0x5902f5}};}}),_0x158dde[_0x2be0('0x15')][_0x2be0('0x10')]('dataDowncast')['markerToData']({'model':'comment','view':(_0x331531,{options:_0x5ded89})=>{const _0x459ecc=_0x158dde[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c),_0x57b500=_0x158dde[_0x2be0('0x40')][_0x2be0('0x5')][_0x2be0('0x6d')](_0x331531),{id:_0x4d6846,part:_0x4a7896}=tt(_0x331531);if(_0x57b500&&!_0x57b500['affectsData'])return null;if(_0x5ded89[_0x2be0('0x58')]){const _0x54ac3f=_0x459ecc[_0x2be0('0x3a')](_0x4d6846);if(_0x54ac3f&&_0x54ac3f[_0x2be0('0x30')])return null;}return{'group':'comment','name':_0x4a7896?_0x4d6846+':'+_0x4a7896:_0x4d6846};}}),_0x158dde['conversion'][_0x2be0('0x10')](_0x2be0('0x2d'))['elementToElement']({'view':{'name':_0x2be0('0x43'),'attributes':{'id':/^\w/}},'model':(_0x550286,{writer:_0x3f7744})=>_0x3f7744[_0x2be0('0x3c')](_0x2be0('0x71'),{'data-name':'comment:'+_0x550286[_0x2be0('0x50')]('id')})}),_0x158dde[_0x2be0('0x15')][_0x2be0('0x10')]('upcast')['dataToMarker']({'view':_0x2be0('0x43')});}[_0x2be0('0x70')](){const _0x2ae801=this[_0x2be0('0x61')],_0x4ad008=_0x2ae801[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c),_0x4c7685=new Set(),_0x5015ed=new Set();_0x2ae801['model']['document'][_0x2be0('0x6')](_0x1e12ee=>{let _0x4df1bd=!0x1;for(const {name:_0x1cce09,data:_0x59ffcf}of _0x2ae801[_0x2be0('0x40')][_0x2be0('0x1d')][_0x2be0('0x55')]['getChangedMarkers']()){const {group:_0x424356,id:_0x2c028b}=tt(_0x1cce09);let _0x30abe8=_0x59ffcf[_0x2be0('0x57')];if(_0x2be0('0x43')!==_0x424356||!_0x30abe8)continue;const _0x4a0caa=_0x2be0('0x69')===_0x30abe8[_0x2be0('0x5f')][_0x2be0('0x1e')];_0x4a0caa||(_0x30abe8=ot(_0x30abe8,_0x2ae801[_0x2be0('0x40')]),!_0x30abe8||_0x30abe8['isCollapsed']||!_0x59ffcf[_0x2be0('0x57')]||_0x30abe8[_0x2be0('0x2')](_0x59ffcf[_0x2be0('0x57')]))?_0x2ae801[_0x2be0('0x40')]['hasContent'](_0x30abe8)&&!_0x4a0caa?this[_0x2be0('0x29')]?_0x4c7685[_0x2be0('0x20')](_0x1cce09):this[_0x2be0('0x32')](_0x1cce09,_0x2c028b):(_0x5015ed['add'](_0x1cce09),_0x4c7685[_0x2be0('0x45')](_0x1cce09),_0x1e12ee[_0x2be0('0x51')](_0x1cce09),_0x4df1bd=!0x0):(_0x1e12ee['updateMarker'](_0x1cce09,{'range':_0x30abe8}),_0x4df1bd=!0x0);}return _0x4df1bd;}),this['on']('change:isThreadsLoadingPaused',(_0x3c57dc,_0x28aefd,_0x3e3812)=>{if(!_0x3e3812&&_0x4c7685[_0x2be0('0x8')])for(const _0x3d9158 of _0x4c7685){const {id:_0x5909e2}=tt(_0x3d9158);_0x4c7685[_0x2be0('0x45')](_0x3d9158),_0x2ae801[_0x2be0('0x40')][_0x2be0('0x5')][_0x2be0('0x6d')](_0x3d9158)&&this[_0x2be0('0x32')](_0x3d9158,_0x5909e2);}}),this[_0x2be0('0x39')](_0x2ae801[_0x2be0('0x40')]['document'],_0x2be0('0x4c'),(_0x1e39d2,_0x107813)=>{for(const {name:_0x16ff82,data:{newRange:_0x3525df}}of _0x2ae801['model'][_0x2be0('0x1d')][_0x2be0('0x55')]['getChangedMarkers']()){const {group:_0x421789,id:_0x22c6b9}=tt(_0x16ff82);if(_0x2be0('0x43')!==_0x421789)continue;const _0x25bf94=_0x4ad008[_0x2be0('0x3a')](_0x22c6b9),_0x52f78f=this['hasMarkerForId'](_0x22c6b9);_0x25bf94&&(_0x25bf94[_0x2be0('0x56')]||_0x2ae801['editing'][_0x2be0('0x41')][_0x2be0('0x21')](_0x2be0('0x19'),()=>{const _0x24ebf3=_0x2ae801[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x514412),_0x18fc25=_0x4ad008['_threadToController']['get'](_0x25bf94)['view'];_0x24ebf3[_0x2be0('0x5c')](_0x18fc25)[_0x2be0('0x3')]();},{'priority':_0x2be0('0x3d')}),_0x25bf94['_hasTargetInContent']=_0x52f78f||!!_0x3525df),_0x3525df||(_0x5015ed['add'](_0x16ff82),_0x4c7685[_0x2be0('0x45')](_0x16ff82),this[_0x2be0('0x0')][_0x2be0('0x72')](_0x22c6b9)&&this[_0x2be0('0x0')]['get'](_0x22c6b9)['delete'](_0x16ff82));}if(_0x107813['isLocal'])for(const _0x2299e5 of _0x5015ed){const {id:_0x5ce4af}=tt(_0x2299e5),_0x1b10f6=_0x4ad008[_0x2be0('0x3a')](_0x5ce4af),_0x5c5e73=this[_0x2be0('0x1')](_0x5ce4af);_0x4c7685[_0x2be0('0x45')](_0x2299e5),!_0x1b10f6||_0x5c5e73||_0x1b10f6[_0x2be0('0x30')]||this[_0x2be0('0x4f')]===_0x5ce4af||(this[_0x2be0('0x14')][_0x2be0('0x20')](_0x1b10f6),_0x1b10f6[_0x2be0('0x22')]());}_0x5015ed[_0x2be0('0x2f')]();});}[_0x2be0('0x25')](_0x2bc804){const _0x50edbe=this['editor'],_0x269ab3=this[_0x2be0('0x3f')](_0x2bc804);return _0x13b59d(_0x50edbe[_0x2be0('0x53')],_0x269ab3);}[_0x2be0('0x62')](_0x5d1ac2){const _0x44a649=this[_0x2be0('0x3f')](_0x5d1ac2);let _0x18ba19='',_0x77126e=!0x1;for(const _0xfadf3c of _0x44a649){const _0x54d624=_0xfadf3c['getRange']();for(const _0x1f95c4 of Array['from'](_0x54d624[_0x2be0('0x63')]()))_0x1f95c4['is'](_0x2be0('0x34'))?(_0x18ba19&&_0x77126e&&(_0x18ba19+='\x20',_0x77126e=!0x1),_0x18ba19+=_0x1f95c4[_0x2be0('0x9')]):_0x77126e=!0x0;_0x77126e=!0x0;}return _0x18ba19[_0x2be0('0x13')](0x0,0x96);}['_attachMarkerToThread'](_0x43acf2,_0x1b724f){const _0xd468b5=this[_0x2be0('0x61')],_0x1a2de9=_0xd468b5['plugins'][_0x2be0('0x6d')](_0x14340c);let _0x232b3b=_0x1a2de9['getCommentThread'](_0x1b724f);if(this[_0x2be0('0x0')][_0x2be0('0x72')](_0x1b724f)){const _0x4fed62=this[_0x2be0('0x0')][_0x2be0('0x6d')](_0x1b724f);_0x4fed62[_0x2be0('0x72')](_0x43acf2)||_0x4fed62[_0x2be0('0x20')](_0x43acf2);}const _0x1fe196=_0xd468b5[_0x2be0('0x27')][_0x2be0('0x6d')](_0x2be0('0x4e')),_0x513ddd=_0xd468b5[_0x2be0('0x5e')]['get'](_0x1c6991);if(_0x232b3b&&_0x232b3b[_0x2be0('0x30')]&&this[_0x2be0('0x14')][_0x2be0('0x72')](_0x232b3b)&&(this[_0x2be0('0x14')][_0x2be0('0x45')](_0x232b3b),_0x232b3b['reopen']()),this[_0x2be0('0x0')]['has'](_0x1b724f))return _0x232b3b;return this[_0x2be0('0x0')][_0x2be0('0x3b')](_0x1b724f,new Set([_0x43acf2])),(!this[_0x2be0('0x3f')](_0x1b724f)[0x0][_0x2be0('0x4a')]?_0xd468b5[_0x2be0('0x53')][_0x2be0('0x41')][_0x2be0('0x21')](_0x2be0('0x19'),()=>{const _0x52e24d=_0xd468b5[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x514412);_0x232b3b=_0x1a2de9[_0x2be0('0x6a')]({'channelId':_0x1fe196,'threadId':_0x1b724f,'target':()=>this[_0x2be0('0x25')](_0x1b724f),'context':{'type':_0x2be0('0x66'),'value':this['_getTextContext'](_0x1b724f)}});const _0x388e75=_0x1a2de9[_0x2be0('0x60')]['get'](_0x232b3b)[_0x2be0('0x41')],_0x291fdc=_0x52e24d['getByInnerView'](_0x388e75);_0x291fdc&&_0x513ddd[_0x2be0('0x2a')](_0x291fdc);},{'priority':_0x2be0('0x3d')}):_0x1a2de9['fetchCommentThread']({'channelId':_0x1fe196,'threadId':_0x1b724f})[_0x2be0('0x65')](_0x2b553c=>{if(_0x2be0('0x12')!==_0xd468b5[_0x2be0('0x11')]){if(_0x232b3b=_0x2b553c,_0x232b3b){const _0xba90b0=_0x232b3b[_0x2be0('0x24')](()=>this['_getTargetForId'](_0x1b724f));_0x513ddd['registerAnnotation'](_0xba90b0),_0x232b3b[_0x2be0('0x30')]&&this[_0x2be0('0x38')](_0x1b724f);}else{const _0x14f4eb=this[_0x2be0('0x3f')](_0x1b724f);_0xd468b5['model'][_0x2be0('0x4c')](_0x9cebf3=>{for(const _0x4aea53 of _0x14f4eb)_0x9cebf3[_0x2be0('0x51')](_0x4aea53);});}}}),_0x232b3b);}['_handleThreadMarker'](_0x3ca084,_0x3c91a9){const _0x560db4=this['_attachMarkerToThread'](_0x3ca084,_0x3c91a9);_0x560db4&&!_0x560db4[_0x2be0('0x2c')]&&_0x560db4[_0x2be0('0x18')]({'type':_0x2be0('0x66'),'value':this['_getTextContext'](_0x3c91a9)});}}function Z(_0x5192d9,_0x46bdd6){return _0x46bdd6?_0x5192d9+':'+_0x46bdd6:_0x5192d9;}function tt(_0x2da5aa){const _0x53e16a=_0x2da5aa['split'](':');return{'group':_0x53e16a[0x0],'id':_0x53e16a[0x1],'part':_0x53e16a[0x2]};}function ot(_0x364dbf,_0x384db4){const _0x5c19c4=_0x384db4[_0x2be0('0x4d')],_0x71b601=_0x384db4['createRange'](_0x364dbf[_0x2be0('0x6e')]);for(const _0x1035f9 of _0x364dbf[_0x2be0('0x37')]()){const {type:_0x1c908c,item:_0x4a51c4,nextPosition:_0xbed3c9}=_0x1035f9;if(_0x2be0('0x66')===_0x1c908c||_0x5c19c4['isObject'](_0x4a51c4)){const _0xe600d9=_0x384db4[_0x2be0('0x6c')](_0x4a51c4);_0x71b601[_0x2be0('0x2e')]&&(_0x71b601[_0x2be0('0x6e')]=_0xe600d9),_0x71b601[_0x2be0('0xb')]=_0xbed3c9;}}return _0x71b601;}
|