@ckeditor/ckeditor5-comments 0.0.0-nightly-20230818.1 → 0.0.0-nightly-20230820.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 _0x3e04=['ck-annotation-wrapper','focus','clear','_mutationObserver','isDirty','_updateHeight','content','Esc','targetRect','render','isActive','attach','add','mainView','bindTemplate','length','keystrokes','type','element','clientHeight','height','ck-rounded-corners','setTemplate','focusTracker','set','ck-annotation-wrapper--active','createCollection','destroy','listenTo','detach','fire'];(function(_0x2e7ea6,_0x3e040b){const _0x54347c=function(_0x29899e){while(--_0x29899e){_0x2e7ea6['push'](_0x2e7ea6['shift']());}};_0x54347c(++_0x3e040b);}(_0x3e04,0x127));const _0x5434=function(_0x2e7ea6,_0x3e040b){_0x2e7ea6=_0x2e7ea6-0x0;let _0x54347c=_0x3e04[_0x2e7ea6];return _0x54347c;};import{View as _0x577bb8}from'ckeditor5/src/ui';import{FocusTracker as _0x3d0120,KeystrokeHandler as _0x5dee7e,uid as _0x4b0d1d}from'ckeditor5/src/utils';import _0x179313 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x577bb8{constructor(_0x6714dd,_0x516746){super(_0x6714dd),this['id']=_0x4b0d1d(),this[_0x5434('0x7')]=new _0x3d0120(),this['keystrokes']=new _0x5dee7e(),this[_0x5434('0x0')][_0x5434('0x8')](_0x5434('0x16'),(_0x3ca721,_0x9c3164)=>this[_0x5434('0xe')](_0x5434('0x16'),_0x9c3164)),this[_0x5434('0x8')](_0x5434('0x17'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5434('0x8')](_0x5434('0x4'),0x0),this['set'](_0x5434('0x19'),!0x1),this['set'](_0x5434('0x13'),!0x1),this[_0x5434('0x8')](_0x5434('0x1e'),0x0),this[_0x5434('0x8')](_0x5434('0x1'),''),this[_0x5434('0x12')]=_0x179313(()=>this[_0x5434('0x14')]()),this[_0x5434('0x15')]=this[_0x5434('0xa')](),this[_0x5434('0x15')][_0x5434('0x1b')](_0x516746),this[_0x5434('0x1c')]=_0x516746;const _0xe77ccc=this[_0x5434('0x1d')];this[_0x5434('0x6')]({'tag':'div','attributes':{'class':['ck',_0x5434('0xf'),_0x5434('0x5'),_0xe77ccc['if']('isActive',_0x5434('0x9'))],'tabindex':-0x1},'children':this['content']});}['render'](){super[_0x5434('0x18')](),this[_0x5434('0x7')][_0x5434('0x1b')](this[_0x5434('0x2')]),this[_0x5434('0x0')][_0x5434('0xc')](this[_0x5434('0x2')]),this[_0x5434('0x12')][_0x5434('0x1a')](this[_0x5434('0x2')]);}[_0x5434('0xb')](){this[_0x5434('0x15')][_0x5434('0x11')](),this[_0x5434('0x0')][_0x5434('0xb')](),this['focusTracker'][_0x5434('0xb')](),this[_0x5434('0x12')][_0x5434('0xd')](),super[_0x5434('0xb')]();}[_0x5434('0x10')](){this[_0x5434('0x2')][_0x5434('0x10')]();}[_0x5434('0x14')](){const _0x537e62=this['element'][_0x5434('0x3')];_0x537e62&&(this[_0x5434('0x4')]=_0x537e62);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1684=['bottom','bindTemplate','content','ck-sidebar-item','clientHeight','isAnimationDisabled','attach','createCollection','setTemplate','top','bind','render','updateHeight','destroy','height','set','_mutationObserver','div','ck-sidebar-item--no-animation','element'];(function(_0x2b85f4,_0x168422){const _0x1a1b85=function(_0x3b414b){while(--_0x3b414b){_0x2b85f4['push'](_0x2b85f4['shift']());}};_0x1a1b85(++_0x168422);}(_0x1684,0x11a));const _0x1a1b=function(_0x2b85f4,_0x168422){_0x2b85f4=_0x2b85f4-0x0;let _0x1a1b85=_0x1684[_0x2b85f4];return _0x1a1b85;};import{View as _0x1c5e1b}from'ckeditor5/src/ui';import{toUnit as _0x400090}from'ckeditor5/src/utils';import _0x502881 from'../../utils/createmutationobserver';const At=_0x400090('px');export default class C extends _0x1c5e1b{constructor(_0x25f552){super(_0x25f552),this[_0x1a1b('0xd')]('top',0x0),this[_0x1a1b('0xd')](_0x1a1b('0xc'),0x0),this[_0x1a1b('0x8')](_0x1a1b('0x12'))['to'](this,'top',this,_0x1a1b('0xc'),(_0xb148a,_0xa8f8ff)=>_0xb148a+_0xa8f8ff),this['set'](_0x1a1b('0x3'),!0x1),this['_mutationObserver']=_0x502881(()=>this['updateHeight']()),this['_targetTop']=null,this[_0x1a1b('0x0')]=this[_0x1a1b('0x5')]();const _0x531461=this[_0x1a1b('0x13')];this[_0x1a1b('0x6')]({'tag':_0x1a1b('0xf'),'attributes':{'class':[_0x1a1b('0x1'),_0x531461['to'](_0x1a1b('0x3'),_0x4434ed=>_0x4434ed?_0x1a1b('0x10'):'')],'style':{'top':_0x531461['to'](_0x1a1b('0x7'),_0x54cd06=>At(_0x54cd06))}},'children':this['content']});}['render'](){super[_0x1a1b('0x9')](),this[_0x1a1b('0xe')][_0x1a1b('0x4')](this[_0x1a1b('0x11')]);}[_0x1a1b('0xa')](){const _0x50f89b=this[_0x1a1b('0x11')][_0x1a1b('0x2')];_0x50f89b&&(this['height']=_0x50f89b);}[_0x1a1b('0xb')](){this[_0x1a1b('0x0')]['clear'](),this[_0x1a1b('0xe')]['detach'](),super['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ace=['class','minHeight','bindTemplate','set','createCollection','list','ck-sidebar','div','number'];(function(_0x56647d,_0x2acee0){const _0x10d8b1=function(_0x3bd7d3){while(--_0x3bd7d3){_0x56647d['push'](_0x56647d['shift']());}};_0x10d8b1(++_0x2acee0);}(_0x2ace,0x1cf));const _0x10d8=function(_0x56647d,_0x2acee0){_0x56647d=_0x56647d-0x0;let _0x10d8b1=_0x2ace[_0x56647d];return _0x10d8b1;};import{View as _0x29c208}from'ckeditor5/src/ui';import{toUnit as _0x4b26f3}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x4b26f3('px');export default class T extends _0x29c208{constructor(_0x541957){super(_0x541957);const _0x556eb6=this[_0x10d8('0x7')];this[_0x10d8('0x8')](_0x10d8('0x6'),0x0),this[_0x10d8('0x8')](_0x10d8('0x5'),''),this[_0x10d8('0x1')]=this[_0x10d8('0x0')](),this['setTemplate']({'tag':_0x10d8('0x3'),'attributes':{'class':['ck',_0x10d8('0x2'),'ck-reset',_0x556eb6['to']('class')],'style':{'minHeight':_0x556eb6['to'](_0x10d8('0x6'),_0x4451cd=>_0x10d8('0x4')==typeof _0x4451cd?At(_0x4451cd+0xa):null)}},'children':this[_0x10d8('0x1')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20a0=['getOrderedSelectedAnnotations','high','attach','remove','pluginName','activeAnnotation','focus','uiUpdate','requires','editors','detach','setActiveAnnotation','annotations','EditorAnnotations','off','resize','addAnnotation','hasDomSelection','widesidebar-attach-already-attached','add','stopListening','blur','WideSidebar','_attachToContainer','_refreshPositioningDebounced','widesidebar-detach-not-attached','_annotations','destroy','_integrateWithEditorAnnotations','wideSidebar','context','_editorAnnotations','listenTo','plugins','init','container','isAttached','removeEventListener','get','change:container','set','refreshPositioning','cancel','refresh','switchTo','_detachFromContainer','_destroyEditorAnnotationsIntegration'];(function(_0x4bbe3c,_0x20a025){const _0x3ee6a3=function(_0x3aabb6){while(--_0x3aabb6){_0x4bbe3c['push'](_0x4bbe3c['shift']());}};_0x3ee6a3(++_0x20a025);}(_0x20a0,0x1a2));const _0x3ee6=function(_0x4bbe3c,_0x20a025){_0x4bbe3c=_0x4bbe3c-0x0;let _0x3ee6a3=_0x20a0[_0x4bbe3c];return _0x3ee6a3;};import{ContextPlugin as _0x391fd9,Context as _0x328571}from'ckeditor5/src/core';import _0x415a7a from'./annotationsuis';import _0xad456d from'./sidebar';import{CKEditorError as _0x95d049,Collection as _0x54c3fb}from'ckeditor5/src/utils';import{debounce as _0x40efd3}from'lodash-es';import _0x5778d1 from'./editorannotations';export default class i extends _0x391fd9{static get[_0x3ee6('0xd')](){return[_0xad456d,_0x415a7a];}static get[_0x3ee6('0x9')](){return _0x3ee6('0x1b');}constructor(_0x4b1d51){super(_0x4b1d51),this['isAttached']=!0x1,this[_0x3ee6('0x2d')](_0x3ee6('0xa'),null),this[_0x3ee6('0x11')]=null,this[_0x3ee6('0x24')]=new _0x54c3fb(),this[_0x3ee6('0x1d')]=_0x40efd3(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x3ee6('0x27')](){const _0xad4c2a=this['context'][_0x3ee6('0x26')][_0x3ee6('0x2b')](_0x415a7a),_0x2da80d=this[_0x3ee6('0x23')][_0x3ee6('0x26')][_0x3ee6('0x2b')](_0xad456d);_0xad4c2a['register'](_0x3ee6('0x22'),this),_0x2da80d[_0x3ee6('0x28')]&&_0xad4c2a[_0x3ee6('0x2')](_0x3ee6('0x22'));}[_0x3ee6('0x10')](_0x254d07){if(_0x254d07===this[_0x3ee6('0xa')])return;const _0xcbceb0=this[_0x3ee6('0x23')]['plugins'][_0x3ee6('0x2b')](_0xad456d);_0xcbceb0['_activeAnnotation']=_0x254d07;const _0x1de5e9=this[_0x3ee6('0xa')];this[_0x3ee6('0xa')]=_0x254d07,_0xcbceb0[_0x3ee6('0x1')]({'blurredAnnotation':_0x1de5e9,'activatedAnnotation':this[_0x3ee6('0xa')]});}[_0x3ee6('0x7')](_0x4ab1d9){this['annotations']=_0x4ab1d9;const _0x3cea60=this[_0x3ee6('0x23')]['plugins']['get'](_0xad456d);if(_0x3cea60[_0x3ee6('0x1f')]=_0x4ab1d9,this[_0x3ee6('0x29')])throw new _0x95d049(_0x3ee6('0x17'),this);this[_0x3ee6('0x29')]=!0x0,this[_0x3ee6('0x25')](_0x3cea60,'set:container',()=>{this[_0x3ee6('0xf')](),this[_0x3ee6('0x25')](_0x3cea60,_0x3ee6('0x2c'),_0x283621=>{_0x283621[_0x3ee6('0x13')](),this[_0x3ee6('0x7')](_0x4ab1d9);});}),_0x3cea60[_0x3ee6('0x1c')]({'viewClass':'ck-sidebar--wide'});const _0x1ba94b=_0xb426ca=>{_0xb426ca['updateTargetRect'](),_0x3cea60[_0x3ee6('0x15')](_0xb426ca);};for(const _0x5293f2 of _0x4ab1d9)_0x1ba94b(_0x5293f2);this[_0x3ee6('0x25')](_0x4ab1d9,_0x3ee6('0x18'),(_0x354614,_0x5bcf15)=>{_0x1ba94b(_0x5bcf15);}),this['listenTo'](_0x4ab1d9,'remove',(_0x24f122,_0x352e26,_0x1ec742)=>{_0x3cea60['rearrange']({'removedAnnotation':_0x352e26,'previousAnnotation':_0x4ab1d9[_0x3ee6('0x2b')](_0x1ec742-0x1),'nextAnnotation':_0x4ab1d9['get'](_0x1ec742+0x1)}),_0x352e26===this[_0x3ee6('0xa')]&&this[_0x3ee6('0x10')](null);},{'priority':_0x3ee6('0x6')}),this[_0x3ee6('0x25')](_0x4ab1d9,_0x3ee6('0xb'),(_0x122d3d,_0x250917)=>{this[_0x3ee6('0x10')](_0x250917);}),this[_0x3ee6('0x25')](_0x4ab1d9,_0x3ee6('0x1a'),()=>{this[_0x3ee6('0x10')](null);});const _0x25f2b0=this['context']instanceof _0x328571?this[_0x3ee6('0x23')][_0x3ee6('0xe')]:new _0x54c3fb([this[_0x3ee6('0x23')]]);for(const _0x28c3b8 of _0x25f2b0)this[_0x3ee6('0x21')](_0x28c3b8);this[_0x3ee6('0x25')](_0x25f2b0,_0x3ee6('0x18'),(_0x22ec27,_0xde4ef7)=>{this[_0x3ee6('0x25')](_0xde4ef7,'ready',()=>{this[_0x3ee6('0x21')](_0xde4ef7);});}),this[_0x3ee6('0x25')](_0x25f2b0,_0x3ee6('0x8'),(_0x440dd3,_0x3752f2)=>{_0x3752f2['plugins']['has'](_0x3ee6('0x12'))&&this[_0x3ee6('0x4')](_0x3752f2[_0x3ee6('0x26')][_0x3ee6('0x2b')]('EditorAnnotations'));}),window['addEventListener'](_0x3ee6('0x14'),this[_0x3ee6('0x1d')]),this['annotations'][_0x3ee6('0x2e')]();}[_0x3ee6('0xf')](){if(!this[_0x3ee6('0x29')])throw new _0x95d049(_0x3ee6('0x1e'),this);this['setActiveAnnotation'](null);const _0x371954=this[_0x3ee6('0x23')]['plugins'][_0x3ee6('0x2b')](_0xad456d);_0x371954[_0x3ee6('0x3')](this[_0x3ee6('0x11')]),this['stopListening'](_0x371954),this['stopListening'](this[_0x3ee6('0x11')]),this[_0x3ee6('0x23')]instanceof _0x328571&&this['stopListening'](this[_0x3ee6('0x23')][_0x3ee6('0xe')]);for(const _0x51a5ce of Array['from'](this[_0x3ee6('0x24')]))this[_0x3ee6('0x4')](_0x51a5ce);window[_0x3ee6('0x2a')]('resize',this[_0x3ee6('0x1d')]),this[_0x3ee6('0x1d')][_0x3ee6('0x0')](),this[_0x3ee6('0xa')]=null,this['isAttached']=!0x1,this[_0x3ee6('0x11')]=null;}[_0x3ee6('0x20')](){this[_0x3ee6('0x29')]&&this[_0x3ee6('0xf')]();}[_0x3ee6('0x21')](_0xac3621){const _0x4ee041=_0xac3621['plugins']['get'](_0x5778d1);if(!_0x4ee041)return;const _0x410dc8=()=>{const _0x59ced6=_0x4ee041[_0x3ee6('0x5')]({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x59ced6[0x0]||null);};this[_0x3ee6('0x25')](_0x4ee041,_0x3ee6('0x1'),_0x410dc8),this['listenTo'](_0x4ee041,_0x3ee6('0x1a'),(_0x2f2882,{isAnnotationTracked:_0x5e3278})=>{this[_0x3ee6('0xa')]&&_0x5e3278(this[_0x3ee6('0xa')])&&this[_0x3ee6('0x10')](null);}),this[_0x3ee6('0x25')](_0x4ee041,_0x3ee6('0xc'),()=>{this[_0x3ee6('0x1d')]();}),this['listenTo'](this[_0x3ee6('0x11')],'blur',_0x1df19d=>{_0x4ee041[_0x3ee6('0x16')]()&&(_0x410dc8(),_0x1df19d['stop']());},{'priority':_0x3ee6('0x6')}),this[_0x3ee6('0x24')]['add'](_0x4ee041);}['_destroyEditorAnnotationsIntegration'](_0x4e4c1e){this[_0x3ee6('0x19')](_0x4e4c1e),this[_0x3ee6('0x24')]['remove'](_0x4e4c1e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4334=['addMarker','substr','isEnabled','getItems','_trimToContent','end','document','schema','start','model','$textProxy','isObject','editor','createRange','item','getLastMatchingPosition','change','element','_hasContent','tableCell','_itemIsContent','push'];(function(_0x50acb6,_0x43347a){const _0x1b6d0b=function(_0x29f12d){while(--_0x29f12d){_0x50acb6['push'](_0x50acb6['shift']());}};_0x1b6d0b(++_0x43347a);}(_0x4334,0x1b7));const _0x1b6d=function(_0x50acb6,_0x43347a){_0x50acb6=_0x50acb6-0x0;let _0x1b6d0b=_0x4334[_0x50acb6];return _0x1b6d0b;};import{Command as _0xe882df}from'ckeditor5/src/core';import{uid as _0x3b4519}from'ckeditor5/src/utils';export default class q extends _0xe882df{['refresh'](){const _0x5084a0=this['editor'][_0x1b6d('0xa')][_0x1b6d('0x7')]['selection'];for(const _0x1b6e56 of _0x5084a0['getRanges']())if(this['_hasContent'](_0x1b6e56))return void(this[_0x1b6d('0x3')]=!0x0);this[_0x1b6d('0x3')]=!0x1;}['execute']({threadId:_0x11c242=_0x3b4519()}={}){const _0x3d5e98=this[_0x1b6d('0xd')][_0x1b6d('0xa')],_0x4dd4a0=[];for(const _0x2dc559 of _0x3d5e98['document']['selection']['getRanges']())this[_0x1b6d('0x13')](_0x2dc559)&&_0x4dd4a0[_0x1b6d('0x0')](this[_0x1b6d('0x5')](_0x2dc559));_0x3d5e98[_0x1b6d('0x11')](_0x4104f1=>{for(const _0x18705f of _0x4dd4a0){const _0x334382=_0x3b4519()[_0x1b6d('0x2')](0x1,0x5),_0xdf9707='comment:'+_0x11c242+':'+_0x334382;_0x4104f1[_0x1b6d('0x1')](_0xdf9707,{'range':_0x18705f,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x4661af){for(const _0x43d76d of _0x4661af[_0x1b6d('0x4')]())if(this[_0x1b6d('0x15')](_0x43d76d))return!0x0;return!0x1;}['_itemIsContent'](_0x6e3a0){return _0x6e3a0['is'](_0x1b6d('0xb'))||this['editor'][_0x1b6d('0xa')][_0x1b6d('0x8')][_0x1b6d('0xc')](_0x6e3a0)&&!_0x6e3a0['is'](_0x1b6d('0x12'),_0x1b6d('0x14'));}[_0x1b6d('0x5')](_0x45b86a){const _0x1c233f=_0x5b6604=>!this[_0x1b6d('0x15')](_0x5b6604[_0x1b6d('0xf')]),_0x2fcf96=_0x45b86a[_0x1b6d('0x9')][_0x1b6d('0x10')](_0x1c233f),_0x453715=_0x45b86a[_0x1b6d('0x6')][_0x1b6d('0x10')](_0x1c233f,{'direction':'backward'});return this['editor']['model'][_0x1b6d('0xe')](_0x2fcf96,_0x453715);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d74=['_calculatePosition','pluginName','resolvedAt','collection','CommentsArchive','length','context','resolvedThreads','highest','findIndex','listenTo','focus','reopenCommentThread','get','has','getCommentThread','resolveCommentThread','isActive','addCommentThread'];(function(_0x20aff0,_0x2d744c){const _0x36a715=function(_0x5764e4){while(--_0x5764e4){_0x20aff0['push'](_0x20aff0['shift']());}};_0x36a715(++_0x2d744c);}(_0x2d74,0xed));const _0x36a7=function(_0x20aff0,_0x2d744c){_0x20aff0=_0x20aff0-0x0;let _0x36a715=_0x2d74[_0x20aff0];return _0x36a715;};import{ContextPlugin as _0x4cc47a}from'ckeditor5/src/core';import{Collection as _0x5046d6}from'ckeditor5/src/utils';import _0x1e8b0a from'./commentsrepository';import _0x49506a from'../annotations/annotations';export default class p extends _0x4cc47a{static get[_0x36a7('0xb')](){return _0x36a7('0xe');}static get['requires'](){return[_0x1e8b0a,_0x49506a];}constructor(_0x226dcf){super(_0x226dcf),this[_0x36a7('0x11')]=new _0x5046d6();}['init'](){const _0x41292d=this[_0x36a7('0x10')],_0x4db8be=_0x41292d['plugins'][_0x36a7('0x4')](_0x1e8b0a),_0x25972d=_0x41292d['plugins']['get'](_0x49506a);this[_0x36a7('0x1')](_0x4db8be,_0x36a7('0x9'),(_0x57574a,{threadId:_0x175c23,resolvedAt:_0x27c177,deletedAt:_0x4aa7f2})=>{if(_0x27c177&&!_0x4aa7f2){const _0x5328e3=_0x4db8be[_0x36a7('0x6')](_0x175c23);this[_0x36a7('0x11')]['add'](_0x5328e3,this[_0x36a7('0xa')](_0x27c177));}}),this[_0x36a7('0x1')](_0x4db8be,_0x36a7('0x7'),(_0x356658,{threadId:_0x59058e,resolvedAt:_0x1ac6a6})=>{const _0x42d263=_0x4db8be[_0x36a7('0x6')](_0x59058e);this[_0x36a7('0x11')]['add'](_0x42d263,this['_calculatePosition'](_0x1ac6a6));},{'priority':_0x36a7('0x12')}),this[_0x36a7('0x1')](_0x4db8be,_0x36a7('0x3'),(_0xf738e,{threadId:_0x47e85f})=>{const _0x111182=_0x4db8be['getCommentThread'](_0x47e85f);this['resolvedThreads'][_0x36a7('0x5')](_0x111182)&&this[_0x36a7('0x11')]['remove'](_0x111182);},{'priority':_0x36a7('0x12')}),this[_0x36a7('0x1')](_0x4db8be,'removeCommentThread',(_0x8dbff4,{threadId:_0x246bc4})=>{const _0x5391fb=_0x4db8be[_0x36a7('0x6')](_0x246bc4);this['resolvedThreads'][_0x36a7('0x5')](_0x5391fb)&&this[_0x36a7('0x11')]['remove'](_0x5391fb);},{'priority':'highest'}),this['listenTo'](_0x25972d[_0x36a7('0xd')],_0x36a7('0x2'),(_0x438f93,_0x886d6a)=>{_0x886d6a[_0x36a7('0x8')]=!0x0,_0x25972d['activate'](_0x886d6a);});}['_calculatePosition'](_0x4378cb){const _0xb789ab=[...this['resolvedThreads']][_0x36a7('0x0')](_0x5084a9=>_0x5084a9[_0x36a7('0xc')]<_0x4378cb);return _0xb789ab>-0x1?_0xb789ab:this[_0x36a7('0x11')][_0x36a7('0xf')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d88=['componentFactory','get','commentsArchiveView','init','_threadToController','add','collection','CommentsArchiveUI','children','pluginName','config','requires','buttonView','plugins','contains','annotationViews','push','_handleAnnotationFocusableElements','extendTemplate','change:isOpen','COMMENTS_ARCHIVE','ck-comments-archive-dropdown','focusableElements','Annotations','getByInnerView','filter','_pendingThreads','mainView','channelId','innerView','_visibleAnnotations','view','ck-body','classList','resolvedAt','find','resolvedThreads','editor','panelView','collaboration.channelId','remove','_calculatePosition','listenTo','length','position','locale','findIndex','stopListening','splice','_createArchiveUIDropdown','focusTracker'];(function(_0x586451,_0x4d889b){const _0x1cd730=function(_0x4a4c3c){while(--_0x4a4c3c){_0x586451['push'](_0x586451['shift']());}};_0x1cd730(++_0x4d889b);}(_0x4d88,0x1d7));const _0x1cd7=function(_0x586451,_0x4d889b){_0x586451=_0x586451-0x0;let _0x1cd730=_0x4d88[_0x586451];return _0x1cd730;};import'../../theme/commentsarchive.css';import{Plugin as _0x57f146}from'ckeditor5/src/core';import{createDropdown as _0x48c2be,ViewCollection as _0x1723a6}from'ckeditor5/src/ui';import _0xab2e16 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x4488c1}from'../utils/common-translations';import _0x5645a8 from'./ui/view/commentsarchiveview';import _0x41afb2 from'./commentsarchive';export default class a extends _0x57f146{static get[_0x1cd7('0x30')](){return _0x1cd7('0x2e');}static get[_0x1cd7('0x32')](){return[_0x41afb2];}constructor(_0x1b7987){super(_0x1b7987),this[_0x1cd7('0x3')]=new _0x1723a6(),this[_0x1cd7('0xe')]=[];}[_0x1cd7('0x2a')](){this[_0x1cd7('0x19')]['ui'][_0x1cd7('0x27')]['add']('commentsArchive',()=>this[_0x1cd7('0x25')]());const _0x179258=this[_0x1cd7('0x19')][_0x1cd7('0x1')][_0x1cd7('0x28')](_0x41afb2),_0xff5ea1=this[_0x1cd7('0x19')]['plugins'][_0x1cd7('0x28')]('Annotations'),_0x39e88a=this[_0x1cd7('0x19')][_0x1cd7('0x1')][_0x1cd7('0x28')]('CommentsRepository');this[_0x1cd7('0x1e')](_0x179258['resolvedThreads'],'add',(_0x359f1b,_0x2f8e7d)=>{const _0x2f4f08=this[_0x1cd7('0x19')][_0x1cd7('0x31')][_0x1cd7('0x28')]('collaboration.channelId');if(!_0x2f4f08||_0x2f8e7d['channelId']===_0x2f4f08){const _0x8cbc22=this[_0x1cd7('0x1d')](_0x2f8e7d[_0x1cd7('0x16')]),_0x189f37=_0x39e88a[_0x1cd7('0x2b')][_0x1cd7('0x28')](_0x2f8e7d);if(!_0x189f37)return void this[_0x1cd7('0xe')][_0x1cd7('0x4')]({'thread':_0x2f8e7d,'position':_0x8cbc22});const _0x2a0270=_0xff5ea1[_0x1cd7('0xc')](_0x189f37[_0x1cd7('0x13')]);_0x2a0270['isVisible']&&_0xff5ea1[_0x1cd7('0x12')][_0x1cd7('0x1c')](_0x2a0270),this[_0x1cd7('0x3')]['add'](_0x2a0270[_0x1cd7('0x13')],_0x8cbc22);}}),this['listenTo'](_0xff5ea1[_0x1cd7('0x2d')],'add',(_0x57d0d4,_0x4d9140)=>{const _0x2ed10c=this['_pendingThreads'][_0x1cd7('0x17')](({thread:_0x2f566d})=>{const _0x4a6ad2=_0x39e88a[_0x1cd7('0x2b')][_0x1cd7('0x28')](_0x2f566d);return _0x4a6ad2&&_0x4d9140[_0x1cd7('0x11')]===_0x4a6ad2['view'];});_0x2ed10c&&(this[_0x1cd7('0x3')][_0x1cd7('0x2c')](_0x4d9140[_0x1cd7('0x13')],_0x2ed10c[_0x1cd7('0x20')]),this[_0x1cd7('0xe')][_0x1cd7('0x24')](this[_0x1cd7('0xe')]['indexOf'](_0x2ed10c),0x1));}),this[_0x1cd7('0x1e')](_0x179258[_0x1cd7('0x18')],_0x1cd7('0x1c'),(_0x3ea844,_0x25ada3)=>{const _0x5a07af=this['editor'][_0x1cd7('0x31')][_0x1cd7('0x28')](_0x1cd7('0x1b'));if(!_0x5a07af||_0x25ada3[_0x1cd7('0x10')]===_0x5a07af){const _0x3b863b=_0x39e88a['_threadToController']['get'](_0x25ada3),_0x5189f2=_0xff5ea1[_0x1cd7('0xc')](_0x3b863b['view']);this[_0x1cd7('0x3')][_0x1cd7('0x1c')](_0x5189f2[_0x1cd7('0x13')]),this[_0x1cd7('0x23')](_0x5189f2['focusableElements']);}});}['_handleAnnotationFocusableElements'](_0x49bb80,_0x44fb2d){for(const _0x320258 of _0x44fb2d[_0x1cd7('0xa')])_0x320258[_0x1cd7('0x15')][_0x1cd7('0x2')]('ck-body')&&_0x49bb80[_0x1cd7('0x26')][_0x1cd7('0x2c')](_0x320258);this[_0x1cd7('0x1e')](_0x44fb2d[_0x1cd7('0xa')],_0x1cd7('0x2c'),(_0x4bd4f5,_0x3b711d)=>{_0x3b711d['classList'][_0x1cd7('0x2')]('ck-body')&&_0x49bb80['focusTracker'][_0x1cd7('0x2c')](_0x3b711d);}),this[_0x1cd7('0x1e')](_0x44fb2d[_0x1cd7('0xa')],'remove',(_0x3b6e16,_0x4bfc1c)=>{_0x4bfc1c[_0x1cd7('0x15')]['contains'](_0x1cd7('0x14'))&&_0x49bb80['focusTracker'][_0x1cd7('0x1c')](_0x4bfc1c);});}[_0x1cd7('0x1d')](_0x2771f5){const _0x2a9800=this[_0x1cd7('0x19')]['config'][_0x1cd7('0x28')](_0x1cd7('0x1b')),_0x16398c=[...this[_0x1cd7('0x19')][_0x1cd7('0x1')]['get'](_0x41afb2)[_0x1cd7('0x18')]][_0x1cd7('0xd')](_0x2ff162=>_0x2ff162[_0x1cd7('0x10')]!==_0x2a9800)[_0x1cd7('0x22')](_0x113ff0=>_0x113ff0[_0x1cd7('0x16')]<_0x2771f5);return _0x16398c>-0x1?_0x16398c:this[_0x1cd7('0x3')][_0x1cd7('0x1f')];}[_0x1cd7('0x25')](){const _0x545b13=this['editor'],_0x342031=this['editor']['plugins'][_0x1cd7('0x28')](_0x1cd7('0xb')),_0x530ae8=_0x48c2be(_0x545b13[_0x1cd7('0x21')]);_0x530ae8[_0x1cd7('0x0')]['set']({'icon':_0xab2e16,'label':_0x4488c1(_0x545b13[_0x1cd7('0x21')],_0x1cd7('0x8')),'tooltip':!0x0}),_0x530ae8['panelView'][_0x1cd7('0x6')]({'attributes':{'class':_0x1cd7('0x9')}}),_0x530ae8['on'](_0x1cd7('0x7'),(_0x11c782,_0x74e6a1,_0x26997c)=>{this[_0x1cd7('0x29')]||(this[_0x1cd7('0x29')]=new _0x5645a8(_0x545b13['locale'],this[_0x1cd7('0x3')])),_0x26997c?_0x530ae8[_0x1cd7('0x1a')]['children'][_0x1cd7('0x2c')](this['commentsArchiveView']):_0x530ae8[_0x1cd7('0x1a')][_0x1cd7('0x2f')]['remove'](this['commentsArchiveView']);});for(const _0x5717f0 of this[_0x1cd7('0x3')]){const _0x245e4b=_0x342031[_0x1cd7('0xc')](_0x5717f0['mainView']);this[_0x1cd7('0x5')](_0x530ae8,_0x245e4b);}return _0x530ae8[_0x1cd7('0x1e')](this[_0x1cd7('0x3')],_0x1cd7('0x2c'),(_0x4fc6d4,_0x270969)=>{const _0x441dbe=_0x342031[_0x1cd7('0xc')](_0x270969[_0x1cd7('0xf')]);this['_handleAnnotationFocusableElements'](_0x530ae8,_0x441dbe);}),_0x530ae8[_0x1cd7('0x1e')](this[_0x1cd7('0x3')],_0x1cd7('0x1c'),(_0x6c1466,_0x485b16)=>{const _0x870f60=_0x342031[_0x1cd7('0xc')](_0x485b16[_0x1cd7('0xf')]);for(const _0x2c8e47 of _0x870f60[_0x1cd7('0xa')])_0x2c8e47[_0x1cd7('0x15')]['contains'](_0x1cd7('0x14'))&&_0x530ae8['focusTracker']['remove'](_0x2c8e47);}),_0x530ae8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x21d5=['createRange','clear','root','createElement','from','_attachedThreads','rootName','_attachResolvedThread','getRange','ready','config','ck-comment-marker--active','ck-comment-marker','render','getAllMarkersForId','conversion','collaboration.channelId','listenTo','substring','view','get','removeMarker','text','delete','data','split','removeCommentThread','_handleMarkerAddAndRemove','editingDowncast','size','destroy','ignoreResolvedComments','dataToMarker','_autoResolvedThreads','addComment','_threads','start','isThreadsLoadingPaused','createPositionBefore','item','document','updateMarker','resolveCommentThread','addCommentThread','$textProxy','push','_getTextContext','consume','getWalker','$marker','markers','once','set','markerToData','change:isThreadsLoadingPaused','hasMarkerForId','then','context','end','focus','managedUsingOperations','setContext','activeMarker','affectsData','reconvertMarker','upcast','differ','CommentsEditing','_getTargetForId','_reconvertMarkers','openNewCommentThread','low','enqueueChange','isObject','requires','refreshVisibility','reopenCommentThread','comment:','getCommentThread','change','markerName','consumable','elementToElement','isLocal','isEqual','markerToHighlight','length','isCollapsed','model','change:activeMarker','schema','plugins','_removedThread','_handleThreadMarker','fetchCommentThread','editor','registerAnnotation','_threadToController','commands','attachTo','comment','_hasTargetInContent','switchReadOnly','getByInnerView','isResolved','hasDomSelection','change:isReadOnly','has','scrollToThreadMarker','_attachMarkerToThread','newRange','init','registerPostFixer','add','reopen','for','$graveyard','editing','_initializeMarkerConverters','map'];(function(_0x3ac9cc,_0x21d558){const _0x3b17e9=function(_0x23489b){while(--_0x23489b){_0x3ac9cc['push'](_0x3ac9cc['shift']());}};_0x3b17e9(++_0x21d558);}(_0x21d5,0x15b));const _0x3b17=function(_0x3ac9cc,_0x21d558){_0x3ac9cc=_0x3ac9cc-0x0;let _0x3b17e9=_0x21d5[_0x3ac9cc];return _0x3b17e9;};import{Plugin as _0x55dc0b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3e671b}from'ckeditor5/src/utils';import _0x182687 from'./commentsrepository';import _0x4ceaca from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x3fe713}from'ckeditor5-collaboration/src/collaboration-core';import _0x434320 from'../annotations/editorannotations';import _0xf0f589 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x587004 from'./integrations/importword';import _0x3558a0 from'../annotations/annotations';export default class r extends _0x55dc0b{static get[_0x3b17('0x57')](){return[_0x182687,_0x434320,_0xf0f589,_0x587004];}static get['pluginName'](){return _0x3b17('0x50');}constructor(_0x21feff){super(_0x21feff),this['_removedThread']=null,this['_autoResolvedThreads']=new Set(),this[_0x3b17('0x41')](_0x3b17('0x32'),!0x0),_0x21feff[_0x3b17('0x25')][_0x3b17('0x40')](_0x3b17('0x16'),()=>this[_0x3b17('0x32')]=!0x1),this['set'](_0x3b17('0x4b'),null),this['on'](_0x3b17('0x66'),(_0x57432c,_0x1f8110,_0x47a477,_0x3747e7)=>{const _0x4fbcb9=_0x47a477?tt(_0x47a477)['id']:null;if(_0x21feff[_0x3b17('0x65')]['change'](()=>{if(_0x4fbcb9){const _0x2b4d84=this['getAllMarkersForId'](_0x4fbcb9);for(const _0x3fca7d of _0x2b4d84)_0x21feff[_0x3b17('0xa')]['reconvertMarker'](_0x3fca7d);}if(_0x3747e7){const {id:_0x1075dd}=tt(_0x3747e7),_0x5c982d=this[_0x3b17('0x1b')](_0x1075dd);for(const _0x3e5816 of _0x5c982d)_0x21feff[_0x3b17('0xa')][_0x3b17('0x4d')](_0x3e5816);}}),_0x4fbcb9){const _0x22e932=_0x21feff[_0x3b17('0x68')][_0x3b17('0x21')](_0x182687)[_0x3b17('0x5b')](_0x4fbcb9);_0x22e932&&_0x22e932[_0x3b17('0x75')]&&this['scrollToThreadMarker'](_0x4fbcb9);}}),this[_0x3b17('0x12')]=new Map();}[_0x3b17('0x4')](){const _0x42dea4=this[_0x3b17('0x6c')],_0x259adb=_0x42dea4[_0x3b17('0x68')]['get'](_0x182687),_0x37a40b=_0x42dea4[_0x3b17('0x17')][_0x3b17('0x21')](_0x3b17('0x1d'));_0x42dea4[_0x3b17('0x6f')]['add'](_0x3b17('0x38'),new _0x4ceaca(_0x42dea4)),this['listenTo'](_0x42dea4,_0x3b17('0x77'),(_0x3b7246,_0xf18d8f,_0x43d62c)=>{_0x259adb[_0x3b17('0x73')](_0x43d62c,_0x42dea4[_0x3b17('0x17')]['get'](_0x3b17('0x1d')));}),this[_0x3b17('0x1e')](_0x259adb,Z('addCommentThread',_0x37a40b),(_0x54476d,{threadId:_0x36a8ef})=>{const _0x10425b=this[_0x3b17('0x6c')][_0x3b17('0x68')]['get'](_0x182687)[_0x3b17('0x5b')](_0x36a8ef);_0x10425b&&_0x10425b[_0x3b17('0x75')]&&this[_0x3b17('0x14')](_0x36a8ef);}),this[_0x3b17('0x1e')](_0x259adb,Z(_0x3b17('0x27'),_0x37a40b),(_0x5f579d,{threadId:_0x4db24e})=>{_0x42dea4[_0x3b17('0x65')][_0x3b17('0x55')]({'isUndoable':!0x1},_0x708aaf=>{const _0x1b3c8a=this[_0x3b17('0x1b')](_0x4db24e);this['_attachedThreads']['delete'](_0x4db24e),this[_0x3b17('0x69')]=_0x4db24e;for(const _0xaa3657 of _0x1b3c8a)_0x708aaf[_0x3b17('0x22')](_0xaa3657);}),this[_0x3b17('0x69')]=null;},{'priority':'high'}),this[_0x3b17('0x1e')](_0x259adb,Z(_0x3b17('0x37'),_0x37a40b),(_0x449c2f,{threadId:_0x1ed4f4})=>{this[_0x3b17('0x14')](_0x1ed4f4),this[_0x3b17('0x52')](_0x1ed4f4),this[_0x3b17('0x6c')][_0x3b17('0xa')][_0x3b17('0x20')][_0x3b17('0x76')]&&this[_0x3b17('0x6c')][_0x3b17('0xa')]['view'][_0x3b17('0x48')]();},{'priority':_0x3b17('0x54')}),this[_0x3b17('0x1e')](_0x259adb,Z(_0x3b17('0x59'),_0x37a40b),(_0x2193b8,{threadId:_0x4f195f})=>{this['_reconvertMarkers'](_0x4f195f);},{'priority':_0x3b17('0x54')}),this[_0x3b17('0x1e')](_0x259adb,Z(_0x3b17('0x2f'),_0x37a40b),(_0x51f62d,{threadId:_0x59b3c1,isFromAdapter:_0x549c5f})=>{const _0x46c5ac=this['getAllMarkersForId'](_0x59b3c1);if(_0x549c5f||0x0==_0x46c5ac[_0x3b17('0x63')]||!_0x259adb['hasCommentThread'](_0x59b3c1))return;0x1===_0x259adb[_0x3b17('0x5b')](_0x59b3c1)[_0x3b17('0x63')]&&_0x42dea4['model'][_0x3b17('0x55')]({'isUndoable':!0x1},_0x1f2caf=>{for(const _0x4b346b of _0x46c5ac)_0x1f2caf['updateMarker'](_0x4b346b,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x3b17('0x54')}),this[_0x3b17('0xb')](),this[_0x3b17('0x28')]();}['destroy'](){const _0x2db4b0=this[_0x3b17('0x6c')][_0x3b17('0x68')][_0x3b17('0x21')](_0x182687),_0x5b0265=this['editor'][_0x3b17('0x17')][_0x3b17('0x21')](_0x3b17('0x1d'));for(const _0x2a05fc of _0x2db4b0['getCommentThreads']({'channelId':_0x5b0265}))_0x2db4b0['_detachCommentThread'](_0x2a05fc['id']),_0x2db4b0[_0x3b17('0x30')][_0x3b17('0x24')](_0x2a05fc['id']);super[_0x3b17('0x2b')]();}[_0x3b17('0x44')](_0x4ca2e2){return this[_0x3b17('0x1b')](_0x4ca2e2)[_0x3b17('0x63')]>0x0;}[_0x3b17('0x1b')](_0x283eff){return Array[_0x3b17('0x11')](this[_0x3b17('0x12')][_0x3b17('0x21')](_0x283eff)||[])[_0x3b17('0xc')](_0x4d48c7=>this[_0x3b17('0x6c')][_0x3b17('0x65')][_0x3b17('0x3f')]['get'](_0x4d48c7))['filter'](_0x29e94f=>_0x29e94f);}[_0x3b17('0x1')](_0x57401a){const _0x12be33=this[_0x3b17('0x51')](_0x57401a);_0x12be33&&setTimeout(()=>{this[_0x3b17('0x4b')]&&tt(this['activeMarker'])['id']===_0x57401a&&_0x3e671b({'target':_0x12be33[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x55c9d8){this['editor'][_0x3b17('0x65')]['change'](()=>{for(const _0x357366 of this[_0x3b17('0x1b')](_0x55c9d8))this[_0x3b17('0x6c')]['editing'][_0x3b17('0x4d')](_0x357366);});}[_0x3b17('0x14')](_0x3f1725){const _0x502e9d=this['editor'][_0x3b17('0x68')][_0x3b17('0x21')](_0x182687),_0x24f9ba=this[_0x3b17('0x6c')][_0x3b17('0x68')][_0x3b17('0x21')](_0x434320),_0x533701=_0x502e9d[_0x3b17('0x5b')](_0x3f1725);if(!this[_0x3b17('0x12')][_0x3b17('0x0')](_0x3f1725)){const _0x416bb9=_0x533701[_0x3b17('0x70')](()=>this['_getTargetForId'](_0x533701['id']));_0x24f9ba[_0x3b17('0x6d')](_0x416bb9),this[_0x3b17('0x12')]['set'](_0x3f1725,new Set()),_0x533701[_0x3b17('0x72')]=!0x1;}}[_0x3b17('0xb')](){const _0x3b6d59=this['editor'];_0x3b6d59[_0x3b17('0x1c')][_0x3b17('0x8')](_0x3b17('0x29'))[_0x3b17('0x62')]({'model':_0x3b17('0x71'),'view':(_0x27e1e2,_0x3180aa)=>{const {id:_0x7b0caf}=tt(_0x27e1e2[_0x3b17('0x5d')]),_0x1baccf=_0x3b6d59['plugins']['get'](_0x182687)[_0x3b17('0x5b')](_0x7b0caf),_0x17c174=this[_0x3b17('0x4b')]&&tt(this[_0x3b17('0x4b')])['id']===_0x7b0caf;if(_0x1baccf&&_0x1baccf['isResolved']&&!_0x17c174&&_0x27e1e2[_0x3b17('0x34')])return _0x3180aa[_0x3b17('0x5e')][_0x3b17('0x3c')](_0x27e1e2[_0x3b17('0x34')],'addMarker:'+_0x27e1e2['markerName']),_0x3180aa['consumable'][_0x3b17('0x3c')](_0x27e1e2['item'],'removeMarker:'+_0x27e1e2[_0x3b17('0x5d')]),{'classes':[]};const _0x337e69=[_0x3b17('0x19')];return _0x17c174&&_0x337e69[_0x3b17('0x3a')](_0x3b17('0x18')),{'classes':_0x337e69,'attributes':{'data-comment':_0x7b0caf}};}}),_0x3b6d59[_0x3b17('0x1c')][_0x3b17('0x8')]('dataDowncast')[_0x3b17('0x42')]({'model':_0x3b17('0x71'),'view':(_0x46f53e,{options:_0x5e2a91})=>{const _0x47690a=_0x3b6d59[_0x3b17('0x68')][_0x3b17('0x21')](_0x182687),_0x57957d=_0x3b6d59[_0x3b17('0x65')][_0x3b17('0x3f')][_0x3b17('0x21')](_0x46f53e),{id:_0x11f3c1,part:_0x4f8b7c}=tt(_0x46f53e);if(_0x57957d&&!_0x57957d[_0x3b17('0x4c')])return null;if(_0x5e2a91[_0x3b17('0x2c')]){const _0xd3c045=_0x47690a[_0x3b17('0x5b')](_0x11f3c1);if(_0xd3c045&&_0xd3c045[_0x3b17('0x75')])return null;}return{'group':_0x3b17('0x71'),'name':_0x4f8b7c?_0x11f3c1+':'+_0x4f8b7c:_0x11f3c1};}}),_0x3b6d59[_0x3b17('0x1c')][_0x3b17('0x8')](_0x3b17('0x4e'))[_0x3b17('0x5f')]({'view':{'name':_0x3b17('0x71'),'attributes':{'id':/^\w/}},'model':(_0x11cea7,{writer:_0x4e672f})=>_0x4e672f[_0x3b17('0x10')](_0x3b17('0x3e'),{'data-name':_0x3b17('0x5a')+_0x11cea7['getAttribute']('id')})}),_0x3b6d59['conversion'][_0x3b17('0x8')](_0x3b17('0x4e'))[_0x3b17('0x2d')]({'view':_0x3b17('0x71')});}[_0x3b17('0x28')](){const _0x136ca7=this[_0x3b17('0x6c')],_0xb7a203=_0x136ca7[_0x3b17('0x68')][_0x3b17('0x21')](_0x182687),_0x17a5d8=new Set(),_0x4dcd13=new Set();_0x136ca7['model']['document'][_0x3b17('0x5')](_0x4ad957=>{let _0x105a24=!0x1;for(const {name:_0x2d1e7b,data:_0x248042}of _0x136ca7[_0x3b17('0x65')][_0x3b17('0x35')][_0x3b17('0x4f')]['getChangedMarkers']()){const {group:_0x5e4958,id:_0x4b184d}=tt(_0x2d1e7b);let _0x3c1d03=_0x248042[_0x3b17('0x3')];if(_0x3b17('0x71')!==_0x5e4958||!_0x3c1d03)continue;const _0x7cd4c1=_0x3b17('0x9')===_0x3c1d03[_0x3b17('0xf')][_0x3b17('0x13')];_0x7cd4c1||(_0x3c1d03=ot(_0x3c1d03,_0x136ca7[_0x3b17('0x65')]),!_0x3c1d03||_0x3c1d03[_0x3b17('0x64')]||!_0x248042[_0x3b17('0x3')]||_0x3c1d03[_0x3b17('0x61')](_0x248042['newRange']))?_0x136ca7[_0x3b17('0x65')]['hasContent'](_0x3c1d03)&&!_0x7cd4c1?this[_0x3b17('0x32')]?_0x17a5d8[_0x3b17('0x6')](_0x2d1e7b):this[_0x3b17('0x6a')](_0x2d1e7b,_0x4b184d):(_0x4dcd13[_0x3b17('0x6')](_0x2d1e7b),_0x17a5d8[_0x3b17('0x24')](_0x2d1e7b),_0x4ad957[_0x3b17('0x22')](_0x2d1e7b),_0x105a24=!0x0):(_0x4ad957[_0x3b17('0x36')](_0x2d1e7b,{'range':_0x3c1d03}),_0x105a24=!0x0);}return _0x105a24;}),this['on'](_0x3b17('0x43'),(_0x3149b7,_0x7207d9,_0x4fb9a1)=>{if(!_0x4fb9a1&&_0x17a5d8[_0x3b17('0x2a')])for(const _0x311962 of _0x17a5d8){const {id:_0x48fa03}=tt(_0x311962);_0x17a5d8[_0x3b17('0x24')](_0x311962),_0x136ca7['model'][_0x3b17('0x3f')][_0x3b17('0x21')](_0x311962)&&this[_0x3b17('0x6a')](_0x311962,_0x48fa03);}}),this[_0x3b17('0x1e')](_0x136ca7['model'][_0x3b17('0x35')],'change',(_0x539629,_0x5b0269)=>{for(const {name:_0x1874df,data:{newRange:_0x56f79d}}of _0x136ca7[_0x3b17('0x65')][_0x3b17('0x35')][_0x3b17('0x4f')]['getChangedMarkers']()){const {group:_0x1d72b9,id:_0x16ec00}=tt(_0x1874df);if(_0x3b17('0x71')!==_0x1d72b9)continue;const _0x5d6053=_0xb7a203[_0x3b17('0x5b')](_0x16ec00),_0x2a48d2=this[_0x3b17('0x44')](_0x16ec00);_0x5d6053&&(_0x5d6053[_0x3b17('0x72')]||_0x136ca7[_0x3b17('0xa')]['view']['once']('render',()=>{const _0x4391bb=_0x136ca7[_0x3b17('0x68')][_0x3b17('0x21')](_0x3558a0),_0x333b7b=_0xb7a203[_0x3b17('0x6e')]['get'](_0x5d6053)['view'];_0x4391bb[_0x3b17('0x74')](_0x333b7b)[_0x3b17('0x58')]();},{'priority':_0x3b17('0x54')}),_0x5d6053[_0x3b17('0x72')]=_0x2a48d2||!!_0x56f79d),_0x56f79d||(_0x4dcd13[_0x3b17('0x6')](_0x1874df),_0x17a5d8['delete'](_0x1874df),this[_0x3b17('0x12')][_0x3b17('0x0')](_0x16ec00)&&this[_0x3b17('0x12')][_0x3b17('0x21')](_0x16ec00)['delete'](_0x1874df));}if(_0x5b0269[_0x3b17('0x60')])for(const _0xf316fa of _0x4dcd13){const {id:_0x1ee7ff}=tt(_0xf316fa),_0x5c4206=_0xb7a203['getCommentThread'](_0x1ee7ff),_0x1de949=this['hasMarkerForId'](_0x1ee7ff);_0x17a5d8['delete'](_0xf316fa),!_0x5c4206||_0x1de949||_0x5c4206[_0x3b17('0x75')]||this[_0x3b17('0x69')]===_0x1ee7ff||(this['_autoResolvedThreads'][_0x3b17('0x6')](_0x5c4206),_0x5c4206['resolve']());}_0x4dcd13[_0x3b17('0xe')]();});}[_0x3b17('0x51')](_0x1f585f){const _0x59919f=this[_0x3b17('0x6c')],_0x51f4a2=this[_0x3b17('0x1b')](_0x1f585f);return _0x3fe713(_0x59919f[_0x3b17('0xa')],_0x51f4a2);}[_0x3b17('0x3b')](_0x26d2b4){const _0x4f7785=this[_0x3b17('0x1b')](_0x26d2b4);let _0x1b12be='',_0x244aae=!0x1;for(const _0x1510ec of _0x4f7785){const _0x28c561=_0x1510ec[_0x3b17('0x15')]();for(const _0x1728ee of Array[_0x3b17('0x11')](_0x28c561['getItems']()))_0x1728ee['is'](_0x3b17('0x39'))?(_0x1b12be&&_0x244aae&&(_0x1b12be+='\x20',_0x244aae=!0x1),_0x1b12be+=_0x1728ee[_0x3b17('0x25')]):_0x244aae=!0x0;_0x244aae=!0x0;}return _0x1b12be[_0x3b17('0x1f')](0x0,0x96);}[_0x3b17('0x2')](_0x1a9ab1,_0xc744da){const _0x4cf579=this[_0x3b17('0x6c')],_0x493e45=_0x4cf579['plugins']['get'](_0x182687);let _0x42d7e2=_0x493e45[_0x3b17('0x5b')](_0xc744da);if(this[_0x3b17('0x12')][_0x3b17('0x0')](_0xc744da)){const _0x1477bc=this[_0x3b17('0x12')][_0x3b17('0x21')](_0xc744da);_0x1477bc[_0x3b17('0x0')](_0x1a9ab1)||_0x1477bc[_0x3b17('0x6')](_0x1a9ab1);}const _0x3f7122=_0x4cf579['config']['get'](_0x3b17('0x1d')),_0x388bdb=_0x4cf579[_0x3b17('0x68')][_0x3b17('0x21')](_0x434320);if(_0x42d7e2&&_0x42d7e2['isResolved']&&this[_0x3b17('0x2e')][_0x3b17('0x0')](_0x42d7e2)&&(this[_0x3b17('0x2e')][_0x3b17('0x24')](_0x42d7e2),_0x42d7e2[_0x3b17('0x7')]()),this[_0x3b17('0x12')][_0x3b17('0x0')](_0xc744da))return _0x42d7e2;return this[_0x3b17('0x12')][_0x3b17('0x41')](_0xc744da,new Set([_0x1a9ab1])),(!this['getAllMarkersForId'](_0xc744da)[0x0][_0x3b17('0x49')]?_0x4cf579[_0x3b17('0xa')][_0x3b17('0x20')][_0x3b17('0x40')](_0x3b17('0x1a'),()=>{const _0x506d5e=_0x4cf579[_0x3b17('0x68')][_0x3b17('0x21')](_0x3558a0);_0x42d7e2=_0x493e45[_0x3b17('0x53')]({'channelId':_0x3f7122,'threadId':_0xc744da,'target':()=>this[_0x3b17('0x51')](_0xc744da),'context':{'type':'text','value':this[_0x3b17('0x3b')](_0xc744da)}});const _0xf321a8=_0x493e45['_threadToController'][_0x3b17('0x21')](_0x42d7e2)['view'],_0x244c8c=_0x506d5e[_0x3b17('0x74')](_0xf321a8);_0x244c8c&&_0x388bdb['registerAnnotation'](_0x244c8c);},{'priority':'low'}):_0x493e45[_0x3b17('0x6b')]({'channelId':_0x3f7122,'threadId':_0xc744da})[_0x3b17('0x45')](_0x45a477=>{if('destroyed'!==_0x4cf579['state']){if(_0x42d7e2=_0x45a477,_0x42d7e2){const _0x1d67a1=_0x42d7e2[_0x3b17('0x70')](()=>this[_0x3b17('0x51')](_0xc744da));_0x388bdb[_0x3b17('0x6d')](_0x1d67a1),_0x42d7e2['isResolved']&&this[_0x3b17('0x52')](_0xc744da);}else{const _0x56f37d=this['getAllMarkersForId'](_0xc744da);_0x4cf579['model'][_0x3b17('0x5c')](_0x348ff5=>{for(const _0x4f6910 of _0x56f37d)_0x348ff5[_0x3b17('0x22')](_0x4f6910);});}}}),_0x42d7e2);}[_0x3b17('0x6a')](_0x1b9cbf,_0x4a78ae){const _0x494af6=this[_0x3b17('0x2')](_0x1b9cbf,_0x4a78ae);_0x494af6&&!_0x494af6[_0x3b17('0x46')]&&_0x494af6[_0x3b17('0x4a')]({'type':_0x3b17('0x23'),'value':this[_0x3b17('0x3b')](_0x4a78ae)});}}function Z(_0x1ad594,_0x398b0d){return _0x398b0d?_0x1ad594+':'+_0x398b0d:_0x1ad594;}function tt(_0x1a27f0){const _0x18e3f1=_0x1a27f0[_0x3b17('0x26')](':');return{'group':_0x18e3f1[0x0],'id':_0x18e3f1[0x1],'part':_0x18e3f1[0x2]};}function ot(_0x49ad85,_0x357c42){const _0xe4006a=_0x357c42[_0x3b17('0x67')],_0xca5af2=_0x357c42[_0x3b17('0xd')](_0x49ad85['start']);for(const _0x10e01f of _0x49ad85[_0x3b17('0x3d')]()){const {type:_0x3a182a,item:_0x20af80,nextPosition:_0x1dfbfe}=_0x10e01f;if(_0x3b17('0x23')===_0x3a182a||_0xe4006a[_0x3b17('0x56')](_0x20af80)){const _0x390e6c=_0x357c42[_0x3b17('0x33')](_0x20af80);_0xca5af2[_0x3b17('0x64')]&&(_0xca5af2[_0x3b17('0x31')]=_0x390e6c),_0xca5af2[_0x3b17('0x47')]=_0x1dfbfe;}}return _0xca5af2;}
|
|
23
|
+
const _0x35a5=['filter','push','context','model','low','$graveyard','end','text','change','_attachResolvedThread','ck-comment-marker--active','getItems','isThreadsLoadingPaused','markerToData','split','isObject','has','attachTo','$textProxy','ready','delete','getRange','add','length','document','consume','_autoResolvedThreads','resolve','focus','high','requires','getChangedMarkers','upcast','render','hasDomSelection','switchReadOnly','editing','change:isReadOnly','_detachCommentThread','newRange','scrollToThreadMarker','state','consumable','once','markerToHighlight','rootName','_getTargetForId','getAllMarkersForId','fetchCommentThread','openNewCommentThread','clear','_getTextContext','registerPostFixer','start','_hasTargetInContent','isCollapsed','_reconvertMarkers','markerName','isEqual','commands','addCommentThread','getAttribute','updateMarker','_removedThread','destroyed','_attachMarkerToThread','$marker','editor','setContext','_handleThreadMarker','item','enqueueChange','dataToMarker','plugins','removeCommentThread','_threadToController','addComment','getByInnerView','ck-comment-marker','ignoreResolvedComments','_attachedThreads','activeMarker','hasMarkerForId','createPositionBefore','affectsData','config','view','hasContent','isResolved','init','change:activeMarker','dataDowncast','collaboration.channelId','comment','change:isThreadsLoadingPaused','reconvertMarker','from','_initializeMarkerConverters','markers','differ','set','map','getCommentThread','removeMarker','editingDowncast','for','schema','_threads','isLocal','addMarker:','resolveCommentThread','data','getWalker','listenTo','createElement','reopen','_handleMarkerAddAndRemove','getCommentThreads','root','registerAnnotation','get'];(function(_0x307056,_0x35a586){const _0x5d2ae8=function(_0x1fef82){while(--_0x1fef82){_0x307056['push'](_0x307056['shift']());}};_0x5d2ae8(++_0x35a586);}(_0x35a5,0x12f));const _0x5d2a=function(_0x307056,_0x35a586){_0x307056=_0x307056-0x0;let _0x5d2ae8=_0x35a5[_0x307056];return _0x5d2ae8;};import{Plugin as _0x2bdc9c}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0xbaaaca}from'ckeditor5/src/utils';import _0x3ad7a2 from'./commentsrepository';import _0x3f8346 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x3323a4}from'ckeditor5-collaboration/src/collaboration-core';import _0x5ba2c3 from'../annotations/editorannotations';import _0x42434c from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x2e6800 from'./integrations/importword';import _0x5c0783 from'../annotations/annotations';export default class r extends _0x2bdc9c{static get[_0x5d2a('0x5a')](){return[_0x3ad7a2,_0x5ba2c3,_0x42434c,_0x2e6800];}static get['pluginName'](){return'CommentsEditing';}constructor(_0x3c407e){super(_0x3c407e),this[_0x5d2a('0x2')]=null,this[_0x5d2a('0x56')]=new Set(),this[_0x5d2a('0x27')](_0x5d2a('0x48'),!0x0),_0x3c407e['data'][_0x5d2a('0x67')](_0x5d2a('0x4f'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0x5d2a('0x27')](_0x5d2a('0x14'),null),this['on'](_0x5d2a('0x1d'),(_0x27860d,_0x127659,_0x4efc58,_0x5471d2)=>{const _0x43b82c=_0x4efc58?tt(_0x4efc58)['id']:null;if(_0x3c407e[_0x5d2a('0x3f')][_0x5d2a('0x44')](()=>{if(_0x43b82c){const _0x52dd62=this[_0x5d2a('0x6b')](_0x43b82c);for(const _0x4dae06 of _0x52dd62)_0x3c407e[_0x5d2a('0x60')][_0x5d2a('0x22')](_0x4dae06);}if(_0x5471d2){const {id:_0x5c8554}=tt(_0x5471d2),_0x5e5b83=this[_0x5d2a('0x6b')](_0x5c8554);for(const _0x274c2a of _0x5e5b83)_0x3c407e[_0x5d2a('0x60')]['reconvertMarker'](_0x274c2a);}}),_0x43b82c){const _0x173e38=_0x3c407e['plugins']['get'](_0x3ad7a2)[_0x5d2a('0x29')](_0x43b82c);_0x173e38&&_0x173e38[_0x5d2a('0x1b')]&&this[_0x5d2a('0x64')](_0x43b82c);}}),this['_attachedThreads']=new Map();}[_0x5d2a('0x1c')](){const _0x38f025=this[_0x5d2a('0x6')],_0x309707=_0x38f025[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2),_0x374f2d=_0x38f025[_0x5d2a('0x18')]['get'](_0x5d2a('0x1f'));_0x38f025[_0x5d2a('0x77')][_0x5d2a('0x52')]('addCommentThread',new _0x3f8346(_0x38f025)),this[_0x5d2a('0x34')](_0x38f025,_0x5d2a('0x61'),(_0x2be323,_0x2e6d0d,_0x5d321f)=>{_0x309707[_0x5d2a('0x5f')](_0x5d321f,_0x38f025[_0x5d2a('0x18')]['get'](_0x5d2a('0x1f')));}),this['listenTo'](_0x309707,Z(_0x5d2a('0x78'),_0x374f2d),(_0x4cdf2a,{threadId:_0x4ea23f})=>{const _0x5b5a4b=this[_0x5d2a('0x6')][_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2)[_0x5d2a('0x29')](_0x4ea23f);_0x5b5a4b&&_0x5b5a4b[_0x5d2a('0x1b')]&&this[_0x5d2a('0x45')](_0x4ea23f);}),this[_0x5d2a('0x34')](_0x309707,Z(_0x5d2a('0xd'),_0x374f2d),(_0x2313f6,{threadId:_0x459104})=>{_0x38f025[_0x5d2a('0x3f')]['enqueueChange']({'isUndoable':!0x1},_0x9495d4=>{const _0x417002=this[_0x5d2a('0x6b')](_0x459104);this[_0x5d2a('0x13')][_0x5d2a('0x50')](_0x459104),this['_removedThread']=_0x459104;for(const _0x3002ab of _0x417002)_0x9495d4[_0x5d2a('0x2a')](_0x3002ab);}),this['_removedThread']=null;},{'priority':_0x5d2a('0x59')}),this['listenTo'](_0x309707,Z(_0x5d2a('0x31'),_0x374f2d),(_0x2c3ecd,{threadId:_0x11b835})=>{this[_0x5d2a('0x45')](_0x11b835),this['_reconvertMarkers'](_0x11b835),this[_0x5d2a('0x6')][_0x5d2a('0x60')]['view'][_0x5d2a('0x5e')]&&this[_0x5d2a('0x6')][_0x5d2a('0x60')][_0x5d2a('0x19')][_0x5d2a('0x58')]();},{'priority':_0x5d2a('0x40')}),this[_0x5d2a('0x34')](_0x309707,Z('reopenCommentThread',_0x374f2d),(_0x38934c,{threadId:_0x2a1318})=>{this[_0x5d2a('0x74')](_0x2a1318);},{'priority':_0x5d2a('0x40')}),this[_0x5d2a('0x34')](_0x309707,Z(_0x5d2a('0xf'),_0x374f2d),(_0x50b118,{threadId:_0xd1c956,isFromAdapter:_0xba605a})=>{const _0x37d39f=this[_0x5d2a('0x6b')](_0xd1c956);if(_0xba605a||0x0==_0x37d39f[_0x5d2a('0x53')]||!_0x309707['hasCommentThread'](_0xd1c956))return;0x1===_0x309707[_0x5d2a('0x29')](_0xd1c956)[_0x5d2a('0x53')]&&_0x38f025[_0x5d2a('0x3f')][_0x5d2a('0xa')]({'isUndoable':!0x1},_0x5612a7=>{for(const _0x45b809 of _0x37d39f)_0x5612a7[_0x5d2a('0x1')](_0x45b809,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5d2a('0x40')}),this[_0x5d2a('0x24')](),this[_0x5d2a('0x37')]();}['destroy'](){const _0x276c81=this[_0x5d2a('0x6')]['plugins'][_0x5d2a('0x3b')](_0x3ad7a2),_0x1edc7e=this[_0x5d2a('0x6')]['config']['get'](_0x5d2a('0x1f'));for(const _0x51bd43 of _0x276c81[_0x5d2a('0x38')]({'channelId':_0x1edc7e}))_0x276c81[_0x5d2a('0x62')](_0x51bd43['id']),_0x276c81[_0x5d2a('0x2e')]['delete'](_0x51bd43['id']);super['destroy']();}[_0x5d2a('0x15')](_0x19407d){return this[_0x5d2a('0x6b')](_0x19407d)[_0x5d2a('0x53')]>0x0;}[_0x5d2a('0x6b')](_0x479be3){return Array[_0x5d2a('0x23')](this[_0x5d2a('0x13')][_0x5d2a('0x3b')](_0x479be3)||[])[_0x5d2a('0x28')](_0x1bf34d=>this[_0x5d2a('0x6')][_0x5d2a('0x3f')][_0x5d2a('0x25')][_0x5d2a('0x3b')](_0x1bf34d))[_0x5d2a('0x3c')](_0x23d5d8=>_0x23d5d8);}[_0x5d2a('0x64')](_0xf102ff){const _0x1e7b77=this['_getTargetForId'](_0xf102ff);_0x1e7b77&&setTimeout(()=>{this['activeMarker']&&tt(this[_0x5d2a('0x14')])['id']===_0xf102ff&&_0xbaaaca({'target':_0x1e7b77[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5d2a('0x74')](_0xfcf4b0){this['editor'][_0x5d2a('0x3f')][_0x5d2a('0x44')](()=>{for(const _0x2e8bf2 of this['getAllMarkersForId'](_0xfcf4b0))this['editor'][_0x5d2a('0x60')]['reconvertMarker'](_0x2e8bf2);});}[_0x5d2a('0x45')](_0x33c710){const _0x4dc73e=this[_0x5d2a('0x6')][_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2),_0x3fde7a=this[_0x5d2a('0x6')][_0x5d2a('0xc')]['get'](_0x5ba2c3),_0x5ef613=_0x4dc73e[_0x5d2a('0x29')](_0x33c710);if(!this['_attachedThreads'][_0x5d2a('0x4c')](_0x33c710)){const _0x4b01a1=_0x5ef613[_0x5d2a('0x4d')](()=>this[_0x5d2a('0x6a')](_0x5ef613['id']));_0x3fde7a[_0x5d2a('0x3a')](_0x4b01a1),this[_0x5d2a('0x13')][_0x5d2a('0x27')](_0x33c710,new Set()),_0x5ef613[_0x5d2a('0x72')]=!0x1;}}['_initializeMarkerConverters'](){const _0xf617ae=this[_0x5d2a('0x6')];_0xf617ae['conversion']['for'](_0x5d2a('0x2b'))[_0x5d2a('0x68')]({'model':_0x5d2a('0x20'),'view':(_0x2fece6,_0x5f0812)=>{const {id:_0x5e9917}=tt(_0x2fece6[_0x5d2a('0x75')]),_0x56bfc9=_0xf617ae[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2)[_0x5d2a('0x29')](_0x5e9917),_0x231e4a=this[_0x5d2a('0x14')]&&tt(this[_0x5d2a('0x14')])['id']===_0x5e9917;if(_0x56bfc9&&_0x56bfc9[_0x5d2a('0x1b')]&&!_0x231e4a&&_0x2fece6[_0x5d2a('0x9')])return _0x5f0812[_0x5d2a('0x66')]['consume'](_0x2fece6['item'],_0x5d2a('0x30')+_0x2fece6[_0x5d2a('0x75')]),_0x5f0812[_0x5d2a('0x66')][_0x5d2a('0x55')](_0x2fece6['item'],'removeMarker:'+_0x2fece6['markerName']),{'classes':[]};const _0x482eb2=[_0x5d2a('0x11')];return _0x231e4a&&_0x482eb2[_0x5d2a('0x3d')](_0x5d2a('0x46')),{'classes':_0x482eb2,'attributes':{'data-comment':_0x5e9917}};}}),_0xf617ae['conversion'][_0x5d2a('0x2c')](_0x5d2a('0x1e'))[_0x5d2a('0x49')]({'model':_0x5d2a('0x20'),'view':(_0x1965f6,{options:_0x970568})=>{const _0x28ae77=_0xf617ae[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2),_0x5af1ea=_0xf617ae[_0x5d2a('0x3f')][_0x5d2a('0x25')][_0x5d2a('0x3b')](_0x1965f6),{id:_0x5cfc3d,part:_0x515660}=tt(_0x1965f6);if(_0x5af1ea&&!_0x5af1ea[_0x5d2a('0x17')])return null;if(_0x970568[_0x5d2a('0x12')]){const _0x3938df=_0x28ae77[_0x5d2a('0x29')](_0x5cfc3d);if(_0x3938df&&_0x3938df[_0x5d2a('0x1b')])return null;}return{'group':_0x5d2a('0x20'),'name':_0x515660?_0x5cfc3d+':'+_0x515660:_0x5cfc3d};}}),_0xf617ae['conversion']['for'](_0x5d2a('0x5c'))['elementToElement']({'view':{'name':_0x5d2a('0x20'),'attributes':{'id':/^\w/}},'model':(_0x2b8f6c,{writer:_0x5d5a44})=>_0x5d5a44[_0x5d2a('0x35')](_0x5d2a('0x5'),{'data-name':'comment:'+_0x2b8f6c[_0x5d2a('0x0')]('id')})}),_0xf617ae['conversion'][_0x5d2a('0x2c')](_0x5d2a('0x5c'))[_0x5d2a('0xb')]({'view':_0x5d2a('0x20')});}[_0x5d2a('0x37')](){const _0x2685b1=this['editor'],_0x485c33=_0x2685b1[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2),_0x29702b=new Set(),_0x46461f=new Set();_0x2685b1[_0x5d2a('0x3f')][_0x5d2a('0x54')][_0x5d2a('0x70')](_0x3c36ef=>{let _0x2f9f4f=!0x1;for(const {name:_0x1a4b22,data:_0x4570c3}of _0x2685b1[_0x5d2a('0x3f')]['document'][_0x5d2a('0x26')][_0x5d2a('0x5b')]()){const {group:_0x5bc29d,id:_0xe91dc0}=tt(_0x1a4b22);let _0x2511a8=_0x4570c3['newRange'];if(_0x5d2a('0x20')!==_0x5bc29d||!_0x2511a8)continue;const _0x5ae5c7=_0x5d2a('0x41')===_0x2511a8[_0x5d2a('0x39')][_0x5d2a('0x69')];_0x5ae5c7||(_0x2511a8=ot(_0x2511a8,_0x2685b1[_0x5d2a('0x3f')]),!_0x2511a8||_0x2511a8[_0x5d2a('0x73')]||!_0x4570c3['newRange']||_0x2511a8[_0x5d2a('0x76')](_0x4570c3[_0x5d2a('0x63')]))?_0x2685b1[_0x5d2a('0x3f')][_0x5d2a('0x1a')](_0x2511a8)&&!_0x5ae5c7?this[_0x5d2a('0x48')]?_0x29702b[_0x5d2a('0x52')](_0x1a4b22):this[_0x5d2a('0x8')](_0x1a4b22,_0xe91dc0):(_0x46461f['add'](_0x1a4b22),_0x29702b[_0x5d2a('0x50')](_0x1a4b22),_0x3c36ef[_0x5d2a('0x2a')](_0x1a4b22),_0x2f9f4f=!0x0):(_0x3c36ef[_0x5d2a('0x1')](_0x1a4b22,{'range':_0x2511a8}),_0x2f9f4f=!0x0);}return _0x2f9f4f;}),this['on'](_0x5d2a('0x21'),(_0x54f310,_0x2fcb36,_0x3c09aa)=>{if(!_0x3c09aa&&_0x29702b['size'])for(const _0x461f6a of _0x29702b){const {id:_0x307806}=tt(_0x461f6a);_0x29702b[_0x5d2a('0x50')](_0x461f6a),_0x2685b1[_0x5d2a('0x3f')]['markers'][_0x5d2a('0x3b')](_0x461f6a)&&this[_0x5d2a('0x8')](_0x461f6a,_0x307806);}}),this[_0x5d2a('0x34')](_0x2685b1[_0x5d2a('0x3f')][_0x5d2a('0x54')],_0x5d2a('0x44'),(_0x49d159,_0x453f9f)=>{for(const {name:_0x1da20b,data:{newRange:_0x55cb5e}}of _0x2685b1[_0x5d2a('0x3f')]['document'][_0x5d2a('0x26')][_0x5d2a('0x5b')]()){const {group:_0x319735,id:_0x2a9f27}=tt(_0x1da20b);if(_0x5d2a('0x20')!==_0x319735)continue;const _0x535a89=_0x485c33[_0x5d2a('0x29')](_0x2a9f27),_0x5774d1=this['hasMarkerForId'](_0x2a9f27);_0x535a89&&(_0x535a89['_hasTargetInContent']||_0x2685b1[_0x5d2a('0x60')][_0x5d2a('0x19')][_0x5d2a('0x67')](_0x5d2a('0x5d'),()=>{const _0x424bc8=_0x2685b1[_0x5d2a('0xc')]['get'](_0x5c0783),_0x5b2dc6=_0x485c33[_0x5d2a('0xe')]['get'](_0x535a89)[_0x5d2a('0x19')];_0x424bc8[_0x5d2a('0x10')](_0x5b2dc6)['refreshVisibility']();},{'priority':'low'}),_0x535a89[_0x5d2a('0x72')]=_0x5774d1||!!_0x55cb5e),_0x55cb5e||(_0x46461f[_0x5d2a('0x52')](_0x1da20b),_0x29702b[_0x5d2a('0x50')](_0x1da20b),this[_0x5d2a('0x13')][_0x5d2a('0x4c')](_0x2a9f27)&&this[_0x5d2a('0x13')][_0x5d2a('0x3b')](_0x2a9f27)[_0x5d2a('0x50')](_0x1da20b));}if(_0x453f9f[_0x5d2a('0x2f')])for(const _0x5e7a27 of _0x46461f){const {id:_0x3d84a7}=tt(_0x5e7a27),_0x2dae45=_0x485c33[_0x5d2a('0x29')](_0x3d84a7),_0x46fb2e=this[_0x5d2a('0x15')](_0x3d84a7);_0x29702b[_0x5d2a('0x50')](_0x5e7a27),!_0x2dae45||_0x46fb2e||_0x2dae45['isResolved']||this['_removedThread']===_0x3d84a7||(this[_0x5d2a('0x56')][_0x5d2a('0x52')](_0x2dae45),_0x2dae45[_0x5d2a('0x57')]());}_0x46461f[_0x5d2a('0x6e')]();});}['_getTargetForId'](_0x3d8c68){const _0x3fb23e=this['editor'],_0x398b7f=this[_0x5d2a('0x6b')](_0x3d8c68);return _0x3323a4(_0x3fb23e[_0x5d2a('0x60')],_0x398b7f);}[_0x5d2a('0x6f')](_0x7c0927){const _0x4ec69c=this[_0x5d2a('0x6b')](_0x7c0927);let _0x4c70e4='',_0xdc1a31=!0x1;for(const _0x3253a5 of _0x4ec69c){const _0x178466=_0x3253a5[_0x5d2a('0x51')]();for(const _0x32ec07 of Array[_0x5d2a('0x23')](_0x178466[_0x5d2a('0x47')]()))_0x32ec07['is'](_0x5d2a('0x4e'))?(_0x4c70e4&&_0xdc1a31&&(_0x4c70e4+='\x20',_0xdc1a31=!0x1),_0x4c70e4+=_0x32ec07[_0x5d2a('0x32')]):_0xdc1a31=!0x0;_0xdc1a31=!0x0;}return _0x4c70e4['substring'](0x0,0x96);}[_0x5d2a('0x4')](_0x54b65b,_0x47ea3d){const _0x4aee33=this[_0x5d2a('0x6')],_0x1ae7e6=_0x4aee33[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2);let _0x2fad4f=_0x1ae7e6[_0x5d2a('0x29')](_0x47ea3d);if(this[_0x5d2a('0x13')][_0x5d2a('0x4c')](_0x47ea3d)){const _0x5ef1d3=this[_0x5d2a('0x13')][_0x5d2a('0x3b')](_0x47ea3d);_0x5ef1d3['has'](_0x54b65b)||_0x5ef1d3[_0x5d2a('0x52')](_0x54b65b);}const _0x2111a6=_0x4aee33[_0x5d2a('0x18')]['get'](_0x5d2a('0x1f')),_0x549076=_0x4aee33[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x5ba2c3);if(_0x2fad4f&&_0x2fad4f['isResolved']&&this[_0x5d2a('0x56')][_0x5d2a('0x4c')](_0x2fad4f)&&(this[_0x5d2a('0x56')][_0x5d2a('0x50')](_0x2fad4f),_0x2fad4f[_0x5d2a('0x36')]()),this[_0x5d2a('0x13')][_0x5d2a('0x4c')](_0x47ea3d))return _0x2fad4f;return this[_0x5d2a('0x13')][_0x5d2a('0x27')](_0x47ea3d,new Set([_0x54b65b])),(!this[_0x5d2a('0x6b')](_0x47ea3d)[0x0]['managedUsingOperations']?_0x4aee33[_0x5d2a('0x60')][_0x5d2a('0x19')]['once'](_0x5d2a('0x5d'),()=>{const _0x2013f3=_0x4aee33[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x5c0783);_0x2fad4f=_0x1ae7e6[_0x5d2a('0x6d')]({'channelId':_0x2111a6,'threadId':_0x47ea3d,'target':()=>this['_getTargetForId'](_0x47ea3d),'context':{'type':'text','value':this[_0x5d2a('0x6f')](_0x47ea3d)}});const _0x5c294e=_0x1ae7e6[_0x5d2a('0xe')]['get'](_0x2fad4f)[_0x5d2a('0x19')],_0x3cb027=_0x2013f3[_0x5d2a('0x10')](_0x5c294e);_0x3cb027&&_0x549076['registerAnnotation'](_0x3cb027);},{'priority':'low'}):_0x1ae7e6[_0x5d2a('0x6c')]({'channelId':_0x2111a6,'threadId':_0x47ea3d})['then'](_0x67463b=>{if(_0x5d2a('0x3')!==_0x4aee33[_0x5d2a('0x65')]){if(_0x2fad4f=_0x67463b,_0x2fad4f){const _0x329ce0=_0x2fad4f[_0x5d2a('0x4d')](()=>this[_0x5d2a('0x6a')](_0x47ea3d));_0x549076['registerAnnotation'](_0x329ce0),_0x2fad4f['isResolved']&&this[_0x5d2a('0x74')](_0x47ea3d);}else{const _0x27d394=this[_0x5d2a('0x6b')](_0x47ea3d);_0x4aee33[_0x5d2a('0x3f')]['change'](_0x29c94f=>{for(const _0x4dae5f of _0x27d394)_0x29c94f[_0x5d2a('0x2a')](_0x4dae5f);});}}}),_0x2fad4f);}['_handleThreadMarker'](_0x54091c,_0x354c47){const _0x4b3527=this[_0x5d2a('0x4')](_0x54091c,_0x354c47);_0x4b3527&&!_0x4b3527[_0x5d2a('0x3e')]&&_0x4b3527[_0x5d2a('0x7')]({'type':_0x5d2a('0x43'),'value':this[_0x5d2a('0x6f')](_0x354c47)});}}function Z(_0x33d523,_0x363140){return _0x363140?_0x33d523+':'+_0x363140:_0x33d523;}function tt(_0x1d2e76){const _0xfa33a4=_0x1d2e76[_0x5d2a('0x4a')](':');return{'group':_0xfa33a4[0x0],'id':_0xfa33a4[0x1],'part':_0xfa33a4[0x2]};}function ot(_0x3e0837,_0x217ae3){const _0x5b6638=_0x217ae3[_0x5d2a('0x2d')],_0x6e1291=_0x217ae3['createRange'](_0x3e0837[_0x5d2a('0x71')]);for(const _0x5ba108 of _0x3e0837[_0x5d2a('0x33')]()){const {type:_0x2a1e28,item:_0x4a1fb4,nextPosition:_0x3cce5e}=_0x5ba108;if('text'===_0x2a1e28||_0x5b6638[_0x5d2a('0x4b')](_0x4a1fb4)){const _0x204b0a=_0x217ae3[_0x5d2a('0x16')](_0x4a1fb4);_0x6e1291[_0x5d2a('0x73')]&&(_0x6e1291[_0x5d2a('0x71')]=_0x204b0a),_0x6e1291[_0x5d2a('0x42')]=_0x3cce5e;}}return _0x6e1291;}
|