@ckeditor/ckeditor5-comments 39.0.0 → 39.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +1 -1
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bf1=['listenTo','length','clear','Esc','focus','mainView','bindTemplate','_mutationObserver','keystrokes','detach','focusTracker','content','render','height','_updateHeight','element','targetRect','set','isDirty','destroy','fire','createCollection','clientHeight','ck-annotation-wrapper--active','ck-annotation-wrapper','isActive','ck-rounded-corners'];(function(_0x219a45,_0x5bf183){const _0x21143b=function(_0x1a7940){while(--_0x1a7940){_0x219a45['push'](_0x219a45['shift']());}};_0x21143b(++_0x5bf183);}(_0x5bf1,0xf1));const _0x2114=function(_0x219a45,_0x5bf183){_0x219a45=_0x219a45-0x0;let _0x21143b=_0x5bf1[_0x219a45];return _0x21143b;};import{View as _0x2414d1}from'ckeditor5/src/ui';import{FocusTracker as _0x1a4edf,KeystrokeHandler as _0x20912c,uid as _0x34b6cc}from'ckeditor5/src/utils';import _0xf2b911 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x2414d1{constructor(_0x43b6e3,_0x1d5450){super(_0x43b6e3),this['id']=_0x34b6cc(),this[_0x2114('0xc')]=new _0x1a4edf(),this[_0x2114('0xa')]=new _0x20912c(),this[_0x2114('0xa')]['set'](_0x2114('0x5'),(_0x3e52c8,_0x44a500)=>this[_0x2114('0x16')](_0x2114('0x5'),_0x44a500)),this['set'](_0x2114('0x12'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x2114('0xf'),0x0),this[_0x2114('0x13')](_0x2114('0x0'),!0x1),this[_0x2114('0x13')](_0x2114('0x14'),!0x1),this[_0x2114('0x13')](_0x2114('0x3'),0x0),this['set']('type',''),this['_mutationObserver']=_0xf2b911(()=>this[_0x2114('0x10')]()),this['content']=this[_0x2114('0x17')](),this[_0x2114('0xd')]['add'](_0x1d5450),this[_0x2114('0x7')]=_0x1d5450;const _0x33f60e=this[_0x2114('0x8')];this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x2114('0x1a'),_0x2114('0x1'),_0x33f60e['if']('isActive',_0x2114('0x19'))],'tabindex':-0x1},'children':this[_0x2114('0xd')]});}[_0x2114('0xe')](){super[_0x2114('0xe')](),this[_0x2114('0xc')]['add'](this[_0x2114('0x11')]),this[_0x2114('0xa')][_0x2114('0x2')](this[_0x2114('0x11')]),this[_0x2114('0x9')]['attach'](this[_0x2114('0x11')]);}[_0x2114('0x15')](){this[_0x2114('0xd')][_0x2114('0x4')](),this[_0x2114('0xa')]['destroy'](),this[_0x2114('0xc')][_0x2114('0x15')](),this[_0x2114('0x9')][_0x2114('0xb')](),super[_0x2114('0x15')]();}[_0x2114('0x6')](){this['element'][_0x2114('0x6')]();}[_0x2114('0x10')](){const _0x4c6cb8=this['element'][_0x2114('0x18')];_0x4c6cb8&&(this['height']=_0x4c6cb8);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cd9=['set','ck-sidebar-item','createCollection','attach','render','element','top','height','destroy','ck-sidebar-item--no-animation','bottom','content','clientHeight','setTemplate','isAnimationDisabled','_mutationObserver'];(function(_0x3ac335,_0x4cd9e0){const _0x1bd2de=function(_0x4832d4){while(--_0x4832d4){_0x3ac335['push'](_0x3ac335['shift']());}};_0x1bd2de(++_0x4cd9e0);}(_0x4cd9,0x15b));const _0x1bd2=function(_0x3ac335,_0x4cd9e0){_0x3ac335=_0x3ac335-0x0;let _0x1bd2de=_0x4cd9[_0x3ac335];return _0x1bd2de;};import{View as _0x1104c4}from'ckeditor5/src/ui';import{toUnit as _0x2afbe6}from'ckeditor5/src/utils';import _0x5b5912 from'../../utils/createmutationobserver';const At=_0x2afbe6('px');export default class C extends _0x1104c4{constructor(_0x26f921){super(_0x26f921),this[_0x1bd2('0x5')](_0x1bd2('0xb'),0x0),this[_0x1bd2('0x5')]('height',0x0),this['bind'](_0x1bd2('0xf'))['to'](this,_0x1bd2('0xb'),this,'height',(_0x5a2de1,_0x49780c)=>_0x5a2de1+_0x49780c),this[_0x1bd2('0x5')](_0x1bd2('0x3'),!0x1),this['_mutationObserver']=_0x5b5912(()=>this['updateHeight']()),this['_targetTop']=null,this[_0x1bd2('0x0')]=this[_0x1bd2('0x7')]();const _0x1d6592=this['bindTemplate'];this[_0x1bd2('0x2')]({'tag':'div','attributes':{'class':[_0x1bd2('0x6'),_0x1d6592['to'](_0x1bd2('0x3'),_0x44f2c2=>_0x44f2c2?_0x1bd2('0xe'):'')],'style':{'top':_0x1d6592['to'](_0x1bd2('0xb'),_0x421acf=>At(_0x421acf))}},'children':this[_0x1bd2('0x0')]});}[_0x1bd2('0x9')](){super[_0x1bd2('0x9')](),this[_0x1bd2('0x4')][_0x1bd2('0x8')](this[_0x1bd2('0xa')]);}['updateHeight'](){const _0x550b54=this[_0x1bd2('0xa')][_0x1bd2('0x1')];_0x550b54&&(this[_0x1bd2('0xc')]=_0x550b54);}['destroy'](){this[_0x1bd2('0x0')]['clear'](),this[_0x1bd2('0x4')]['detach'](),super[_0x1bd2('0xd')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13f3=['list','set','number','div','setTemplate','ck-reset','minHeight','ck-sidebar','class'];(function(_0x22b394,_0x13f3a6){const _0x49f720=function(_0x3fcff5){while(--_0x3fcff5){_0x22b394['push'](_0x22b394['shift']());}};_0x49f720(++_0x13f3a6);}(_0x13f3,0xf5));const _0x49f7=function(_0x22b394,_0x13f3a6){_0x22b394=_0x22b394-0x0;let _0x49f720=_0x13f3[_0x22b394];return _0x49f720;};import{View as _0x616409}from'ckeditor5/src/ui';import{toUnit as _0x3eadf0}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x3eadf0('px');export default class T extends _0x616409{constructor(_0x140338){super(_0x140338);const _0x2c966b=this['bindTemplate'];this[_0x49f7('0x8')](_0x49f7('0x4'),0x0),this['set']('class',''),this['list']=this['createCollection'](),this[_0x49f7('0x2')]({'tag':_0x49f7('0x1'),'attributes':{'class':['ck',_0x49f7('0x5'),_0x49f7('0x3'),_0x2c966b['to'](_0x49f7('0x6'))],'style':{'minHeight':_0x2c966b['to']('minHeight',_0x54a5cb=>_0x49f7('0x0')==typeof _0x54a5cb?At(_0x54a5cb+0xa):null)}},'children':this[_0x49f7('0x7')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10b0=['remove','from','stop','detach','ready','WideSidebar','add','annotations','activeAnnotation','addEventListener','EditorAnnotations','get','set','refreshPositioning','addAnnotation','attach','stopListening','has','setActiveAnnotation','pluginName','destroy','_annotations','uiUpdate','set:container','updateTargetRect','register','cancel','ck-sidebar--wide','isAttached','refresh','_refreshPositioningDebounced','wideSidebar','change:container','listenTo','_destroyEditorAnnotationsIntegration','plugins','context','editors','container','widesidebar-attach-already-attached','resize','_integrateWithEditorAnnotations','rearrange','_activeAnnotation','_editorAnnotations','high','focus','blur'];(function(_0x56c9c5,_0x10b0f0){const _0x918895=function(_0x128ddc){while(--_0x128ddc){_0x56c9c5['push'](_0x56c9c5['shift']());}};_0x918895(++_0x10b0f0);}(_0x10b0,0x1d0));const _0x9188=function(_0x56c9c5,_0x10b0f0){_0x56c9c5=_0x56c9c5-0x0;let _0x918895=_0x10b0[_0x56c9c5];return _0x918895;};import{ContextPlugin as _0x1bb172,Context as _0x369c18}from'ckeditor5/src/core';import _0x364217 from'./annotationsuis';import _0x43267f from'./sidebar';import{CKEditorError as _0x19fbbc,Collection as _0x3834c7}from'ckeditor5/src/utils';import{debounce as _0x379b69}from'lodash-es';import _0x160b49 from'./editorannotations';export default class i extends _0x1bb172{static get['requires'](){return[_0x43267f,_0x364217];}static get[_0x9188('0x23')](){return _0x9188('0x15');}constructor(_0x212daf){super(_0x212daf),this[_0x9188('0x2c')]=!0x1,this[_0x9188('0x1c')](_0x9188('0x18'),null),this[_0x9188('0x17')]=null,this[_0x9188('0xc')]=new _0x3834c7(),this[_0x9188('0x2e')]=_0x379b69(()=>{this[_0x9188('0x17')][_0x9188('0x1d')]();},0xfa,{'leading':!0x1});}['init'](){const _0x12210c=this[_0x9188('0x4')][_0x9188('0x3')][_0x9188('0x1b')](_0x364217),_0x501735=this[_0x9188('0x4')]['plugins'][_0x9188('0x1b')](_0x43267f);_0x12210c[_0x9188('0x29')](_0x9188('0x2f'),this),_0x501735[_0x9188('0x6')]&&_0x12210c['switchTo'](_0x9188('0x2f'));}['setActiveAnnotation'](_0x3571b6){if(_0x3571b6===this[_0x9188('0x18')])return;const _0x5d82eb=this[_0x9188('0x4')]['plugins'][_0x9188('0x1b')](_0x43267f);_0x5d82eb[_0x9188('0xb')]=_0x3571b6;const _0x48c0eb=this[_0x9188('0x18')];this['activeAnnotation']=_0x3571b6,_0x5d82eb[_0x9188('0x2d')]({'blurredAnnotation':_0x48c0eb,'activatedAnnotation':this[_0x9188('0x18')]});}[_0x9188('0x1f')](_0x21f3da){this['annotations']=_0x21f3da;const _0x124ff6=this['context'][_0x9188('0x3')][_0x9188('0x1b')](_0x43267f);if(_0x124ff6[_0x9188('0x25')]=_0x21f3da,this[_0x9188('0x2c')])throw new _0x19fbbc(_0x9188('0x7'),this);this[_0x9188('0x2c')]=!0x0,this[_0x9188('0x1')](_0x124ff6,_0x9188('0x27'),()=>{this[_0x9188('0x13')](),this[_0x9188('0x1')](_0x124ff6,_0x9188('0x0'),_0x2781ab=>{_0x2781ab['off'](),this[_0x9188('0x1f')](_0x21f3da);});}),_0x124ff6['_attachToContainer']({'viewClass':_0x9188('0x2b')});const _0x1a60ce=_0x62558a=>{_0x62558a[_0x9188('0x28')](),_0x124ff6[_0x9188('0x1e')](_0x62558a);};for(const _0x3461d5 of _0x21f3da)_0x1a60ce(_0x3461d5);this[_0x9188('0x1')](_0x21f3da,_0x9188('0x16'),(_0x56d488,_0x11c127)=>{_0x1a60ce(_0x11c127);}),this[_0x9188('0x1')](_0x21f3da,_0x9188('0x10'),(_0x32cb58,_0x36c53d,_0x5afd6a)=>{_0x124ff6[_0x9188('0xa')]({'removedAnnotation':_0x36c53d,'previousAnnotation':_0x21f3da['get'](_0x5afd6a-0x1),'nextAnnotation':_0x21f3da['get'](_0x5afd6a+0x1)}),_0x36c53d===this[_0x9188('0x18')]&&this[_0x9188('0x22')](null);},{'priority':_0x9188('0xd')}),this[_0x9188('0x1')](_0x21f3da,_0x9188('0xe'),(_0x11bc9f,_0x36ab4c)=>{this['setActiveAnnotation'](_0x36ab4c);}),this[_0x9188('0x1')](_0x21f3da,_0x9188('0xf'),()=>{this[_0x9188('0x22')](null);});const _0x5ed7df=this[_0x9188('0x4')]instanceof _0x369c18?this[_0x9188('0x4')][_0x9188('0x5')]:new _0x3834c7([this[_0x9188('0x4')]]);for(const _0x11a80a of _0x5ed7df)this[_0x9188('0x9')](_0x11a80a);this[_0x9188('0x1')](_0x5ed7df,_0x9188('0x16'),(_0xa51fe4,_0x5e0005)=>{this['listenTo'](_0x5e0005,_0x9188('0x14'),()=>{this[_0x9188('0x9')](_0x5e0005);});}),this['listenTo'](_0x5ed7df,'remove',(_0x1c672d,_0x440783)=>{_0x440783[_0x9188('0x3')][_0x9188('0x21')](_0x9188('0x1a'))&&this[_0x9188('0x2')](_0x440783['plugins']['get'](_0x9188('0x1a')));}),window[_0x9188('0x19')](_0x9188('0x8'),this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}[_0x9188('0x13')](){if(!this[_0x9188('0x2c')])throw new _0x19fbbc('widesidebar-detach-not-attached',this);this[_0x9188('0x22')](null);const _0x38ca72=this[_0x9188('0x4')]['plugins'][_0x9188('0x1b')](_0x43267f);_0x38ca72['_detachFromContainer'](this[_0x9188('0x17')]),this[_0x9188('0x20')](_0x38ca72),this[_0x9188('0x20')](this[_0x9188('0x17')]),this[_0x9188('0x4')]instanceof _0x369c18&&this[_0x9188('0x20')](this['context'][_0x9188('0x5')]);for(const _0x340786 of Array[_0x9188('0x11')](this[_0x9188('0xc')]))this[_0x9188('0x2')](_0x340786);window['removeEventListener'](_0x9188('0x8'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x9188('0x2a')](),this['activeAnnotation']=null,this[_0x9188('0x2c')]=!0x1,this[_0x9188('0x17')]=null;}[_0x9188('0x24')](){this[_0x9188('0x2c')]&&this[_0x9188('0x13')]();}['_integrateWithEditorAnnotations'](_0x4aa962){const _0x463b64=_0x4aa962[_0x9188('0x3')][_0x9188('0x1b')](_0x160b49);if(!_0x463b64)return;const _0x3b0202=()=>{const _0x4199d0=_0x463b64['getOrderedSelectedAnnotations']({'annotations':this[_0x9188('0x17')],'activeAnnotation':this[_0x9188('0x18')]});this['setActiveAnnotation'](_0x4199d0[0x0]||null);};this[_0x9188('0x1')](_0x463b64,'refresh',_0x3b0202),this['listenTo'](_0x463b64,_0x9188('0xf'),(_0x529bd7,{isAnnotationTracked:_0x3fff23})=>{this[_0x9188('0x18')]&&_0x3fff23(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this[_0x9188('0x1')](_0x463b64,_0x9188('0x26'),()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],_0x9188('0xf'),_0x330a16=>{_0x463b64['hasDomSelection']()&&(_0x3b0202(),_0x330a16[_0x9188('0x12')]());},{'priority':_0x9188('0xd')}),this[_0x9188('0xc')][_0x9188('0x16')](_0x463b64);}[_0x9188('0x2')](_0x810b2c){this[_0x9188('0x20')](_0x810b2c),this[_0x9188('0xc')][_0x9188('0x10')](_0x810b2c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9e75=['isEnabled','substr','comment:','schema','selection','_hasContent','editor','_trimToContent','addMarker','_itemIsContent','getLastMatchingPosition','push','getRanges','execute','model','element','backward','$textProxy','getItems'];(function(_0x1ce009,_0x9e75ee){const _0x24720f=function(_0x34b0ef){while(--_0x34b0ef){_0x1ce009['push'](_0x1ce009['shift']());}};_0x24720f(++_0x9e75ee);}(_0x9e75,0x6b));const _0x2472=function(_0x1ce009,_0x9e75ee){_0x1ce009=_0x1ce009-0x0;let _0x24720f=_0x9e75[_0x1ce009];return _0x24720f;};import{Command as _0x214934}from'ckeditor5/src/core';import{uid as _0x3b6d38}from'ckeditor5/src/utils';export default class q extends _0x214934{['refresh'](){const _0x4ac79e=this[_0x2472('0xd')][_0x2472('0x2')]['document'][_0x2472('0xb')];for(const _0x2a03e4 of _0x4ac79e[_0x2472('0x0')]())if(this[_0x2472('0xc')](_0x2a03e4))return void(this['isEnabled']=!0x0);this[_0x2472('0x7')]=!0x1;}[_0x2472('0x1')]({threadId:_0x5d2953=_0x3b6d38()}={}){const _0x42f814=this['editor']['model'],_0x17942d=[];for(const _0x550203 of _0x42f814['document']['selection'][_0x2472('0x0')]())this[_0x2472('0xc')](_0x550203)&&_0x17942d[_0x2472('0x12')](this[_0x2472('0xe')](_0x550203));_0x42f814['change'](_0x1b5227=>{for(const _0x4b2987 of _0x17942d){const _0x4d4f9e=_0x3b6d38()[_0x2472('0x8')](0x1,0x5),_0x2c66d6=_0x2472('0x9')+_0x5d2953+':'+_0x4d4f9e;_0x1b5227[_0x2472('0xf')](_0x2c66d6,{'range':_0x4b2987,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x2472('0xc')](_0x397e8e){for(const _0x257bbd of _0x397e8e[_0x2472('0x6')]())if(this[_0x2472('0x10')](_0x257bbd))return!0x0;return!0x1;}['_itemIsContent'](_0x93dcd8){return _0x93dcd8['is'](_0x2472('0x5'))||this[_0x2472('0xd')]['model'][_0x2472('0xa')]['isObject'](_0x93dcd8)&&!_0x93dcd8['is'](_0x2472('0x3'),'tableCell');}[_0x2472('0xe')](_0x5b6c36){const _0x216fad=_0x59eb65=>!this[_0x2472('0x10')](_0x59eb65['item']),_0x53b04f=_0x5b6c36['start'][_0x2472('0x11')](_0x216fad),_0x5b35ed=_0x5b6c36['end']['getLastMatchingPosition'](_0x216fad,{'direction':_0x2472('0x4')});return this['editor'][_0x2472('0x2')]['createRange'](_0x53b04f,_0x5b35ed);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36f5=['highest','resolveCommentThread','activate','focus','init','get','resolvedAt','plugins','listenTo','has','collection','requires','isActive','getCommentThread','_calculatePosition','addCommentThread','resolvedThreads','context','length','remove','CommentsArchive','add','removeCommentThread','pluginName'];(function(_0x250c5b,_0x36f5cb){const _0x500eb3=function(_0x419701){while(--_0x419701){_0x250c5b['push'](_0x250c5b['shift']());}};_0x500eb3(++_0x36f5cb);}(_0x36f5,0xff));const _0x500e=function(_0x250c5b,_0x36f5cb){_0x250c5b=_0x250c5b-0x0;let _0x500eb3=_0x36f5[_0x250c5b];return _0x500eb3;};import{ContextPlugin as _0x4deb87}from'ckeditor5/src/core';import{Collection as _0x436ccc}from'ckeditor5/src/utils';import _0x3d7aff from'./commentsrepository';import _0x14ad91 from'../annotations/annotations';export default class p extends _0x4deb87{static get[_0x500e('0x8')](){return _0x500e('0x5');}static get[_0x500e('0x14')](){return[_0x3d7aff,_0x14ad91];}constructor(_0x5cee9b){super(_0x5cee9b),this[_0x500e('0x1')]=new _0x436ccc();}[_0x500e('0xd')](){const _0x2f176d=this[_0x500e('0x2')],_0x5e6692=_0x2f176d['plugins'][_0x500e('0xe')](_0x3d7aff),_0x1499bd=_0x2f176d[_0x500e('0x10')]['get'](_0x14ad91);this[_0x500e('0x11')](_0x5e6692,_0x500e('0x0'),(_0x5e4aa7,{threadId:_0x4b8840,resolvedAt:_0x560ebf,deletedAt:_0x144c6a})=>{if(_0x560ebf&&!_0x144c6a){const _0x881537=_0x5e6692[_0x500e('0x16')](_0x4b8840);this[_0x500e('0x1')][_0x500e('0x6')](_0x881537,this[_0x500e('0x17')](_0x560ebf));}}),this[_0x500e('0x11')](_0x5e6692,_0x500e('0xa'),(_0x3d4a2a,{threadId:_0x196edf,resolvedAt:_0x5eb758})=>{const _0x5c8e30=_0x5e6692[_0x500e('0x16')](_0x196edf);this[_0x500e('0x1')][_0x500e('0x6')](_0x5c8e30,this[_0x500e('0x17')](_0x5eb758));},{'priority':_0x500e('0x9')}),this['listenTo'](_0x5e6692,'reopenCommentThread',(_0x3c7c97,{threadId:_0x54bd4c})=>{const _0x3f4447=_0x5e6692[_0x500e('0x16')](_0x54bd4c);this[_0x500e('0x1')][_0x500e('0x12')](_0x3f4447)&&this['resolvedThreads'][_0x500e('0x4')](_0x3f4447);},{'priority':_0x500e('0x9')}),this[_0x500e('0x11')](_0x5e6692,_0x500e('0x7'),(_0x3b923c,{threadId:_0x317c39})=>{const _0x12f4f3=_0x5e6692[_0x500e('0x16')](_0x317c39);this[_0x500e('0x1')][_0x500e('0x12')](_0x12f4f3)&&this[_0x500e('0x1')][_0x500e('0x4')](_0x12f4f3);},{'priority':_0x500e('0x9')}),this[_0x500e('0x11')](_0x1499bd[_0x500e('0x13')],_0x500e('0xc'),(_0x5ba6b4,_0x4313d8)=>{_0x4313d8[_0x500e('0x15')]=!0x0,_0x1499bd[_0x500e('0xb')](_0x4313d8);});}[_0x500e('0x17')](_0x459034){const _0xd32a52=[...this[_0x500e('0x1')]]['findIndex'](_0x14f9a2=>_0x14f9a2[_0x500e('0xf')]<_0x459034);return _0xd32a52>-0x1?_0xd32a52:this[_0x500e('0x1')][_0x500e('0x3')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30db=['_threadToController','ck-body','push','collection','_pendingThreads','length','mainView','collaboration.channelId','findIndex','Annotations','_calculatePosition','get','_createArchiveUIDropdown','find','annotationViews','classList','plugins','isVisible','listenTo','CommentsRepository','focusableElements','focusTracker','buttonView','contains','config','children','extendTemplate','channelId','_handleAnnotationFocusableElements','innerView','add','remove','position','locale','panelView','_visibleAnnotations','set','init','editor','filter','resolvedThreads','resolvedAt','getByInnerView','CommentsArchiveUI','change:isOpen','view','commentsArchive','commentsArchiveView'];(function(_0x1639ec,_0x30db15){const _0x1ce3db=function(_0x2790ef){while(--_0x2790ef){_0x1639ec['push'](_0x1639ec['shift']());}};_0x1ce3db(++_0x30db15);}(_0x30db,0xc1));const _0x1ce3=function(_0x1639ec,_0x30db15){_0x1639ec=_0x1639ec-0x0;let _0x1ce3db=_0x30db[_0x1639ec];return _0x1ce3db;};import'../../theme/commentsarchive.css';import{Plugin as _0x41b119}from'ckeditor5/src/core';import{createDropdown as _0x539c44,ViewCollection as _0x4a723a}from'ckeditor5/src/ui';import _0x560133 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x445600}from'../utils/common-translations';import _0x5f03d6 from'./ui/view/commentsarchiveview';import _0x2089d8 from'./commentsarchive';export default class a extends _0x41b119{static get['pluginName'](){return _0x1ce3('0x2a');}static get['requires'](){return[_0x2089d8];}constructor(_0x10b63b){super(_0x10b63b),this['annotationViews']=new _0x4a723a(),this[_0x1ce3('0x3')]=[];}[_0x1ce3('0x24')](){this[_0x1ce3('0x25')]['ui']['componentFactory']['add'](_0x1ce3('0x2d'),()=>this[_0x1ce3('0xb')]());const _0x2bf972=this[_0x1ce3('0x25')]['plugins'][_0x1ce3('0xa')](_0x2089d8),_0x3217ff=this[_0x1ce3('0x25')][_0x1ce3('0xf')][_0x1ce3('0xa')]('Annotations'),_0x298437=this[_0x1ce3('0x25')][_0x1ce3('0xf')]['get'](_0x1ce3('0x12'));this[_0x1ce3('0x11')](_0x2bf972[_0x1ce3('0x27')],_0x1ce3('0x1d'),(_0x5a7c18,_0x930dd2)=>{const _0x20fa02=this[_0x1ce3('0x25')][_0x1ce3('0x17')][_0x1ce3('0xa')](_0x1ce3('0x6'));if(!_0x20fa02||_0x930dd2[_0x1ce3('0x1a')]===_0x20fa02){const _0x5943a8=this[_0x1ce3('0x9')](_0x930dd2[_0x1ce3('0x28')]),_0x1be2e4=_0x298437[_0x1ce3('0x2f')][_0x1ce3('0xa')](_0x930dd2);if(!_0x1be2e4)return void this[_0x1ce3('0x3')][_0x1ce3('0x1')]({'thread':_0x930dd2,'position':_0x5943a8});const _0x2efc49=_0x3217ff[_0x1ce3('0x29')](_0x1be2e4['view']);_0x2efc49[_0x1ce3('0x10')]&&_0x3217ff[_0x1ce3('0x22')][_0x1ce3('0x1e')](_0x2efc49),this['annotationViews']['add'](_0x2efc49[_0x1ce3('0x2c')],_0x5943a8);}}),this[_0x1ce3('0x11')](_0x3217ff[_0x1ce3('0x2')],_0x1ce3('0x1d'),(_0x28e724,_0x4db21c)=>{const _0x2c4ce3=this['_pendingThreads'][_0x1ce3('0xc')](({thread:_0x5eb3e7})=>{const _0x2bfe21=_0x298437['_threadToController'][_0x1ce3('0xa')](_0x5eb3e7);return _0x2bfe21&&_0x4db21c[_0x1ce3('0x1c')]===_0x2bfe21[_0x1ce3('0x2c')];});_0x2c4ce3&&(this[_0x1ce3('0xd')][_0x1ce3('0x1d')](_0x4db21c['view'],_0x2c4ce3[_0x1ce3('0x1f')]),this[_0x1ce3('0x3')]['splice'](this[_0x1ce3('0x3')]['indexOf'](_0x2c4ce3),0x1));}),this[_0x1ce3('0x11')](_0x2bf972[_0x1ce3('0x27')],_0x1ce3('0x1e'),(_0x4a419b,_0x31aa3f)=>{const _0x443e65=this[_0x1ce3('0x25')][_0x1ce3('0x17')][_0x1ce3('0xa')](_0x1ce3('0x6'));if(!_0x443e65||_0x31aa3f['channelId']===_0x443e65){const _0x5a26f5=_0x298437[_0x1ce3('0x2f')][_0x1ce3('0xa')](_0x31aa3f),_0x40c45e=_0x3217ff['getByInnerView'](_0x5a26f5[_0x1ce3('0x2c')]);this['annotationViews'][_0x1ce3('0x1e')](_0x40c45e[_0x1ce3('0x2c')]),this['stopListening'](_0x40c45e['focusableElements']);}});}[_0x1ce3('0x1b')](_0x454349,_0x41e0f3){for(const _0x1a0998 of _0x41e0f3[_0x1ce3('0x13')])_0x1a0998[_0x1ce3('0xe')][_0x1ce3('0x16')](_0x1ce3('0x0'))&&_0x454349[_0x1ce3('0x14')][_0x1ce3('0x1d')](_0x1a0998);this[_0x1ce3('0x11')](_0x41e0f3[_0x1ce3('0x13')],'add',(_0x59e4c6,_0x1bafbe)=>{_0x1bafbe[_0x1ce3('0xe')]['contains'](_0x1ce3('0x0'))&&_0x454349[_0x1ce3('0x14')][_0x1ce3('0x1d')](_0x1bafbe);}),this[_0x1ce3('0x11')](_0x41e0f3['focusableElements'],_0x1ce3('0x1e'),(_0x470138,_0xee05b2)=>{_0xee05b2[_0x1ce3('0xe')][_0x1ce3('0x16')](_0x1ce3('0x0'))&&_0x454349[_0x1ce3('0x14')][_0x1ce3('0x1e')](_0xee05b2);});}[_0x1ce3('0x9')](_0x12f446){const _0x1c3264=this[_0x1ce3('0x25')][_0x1ce3('0x17')][_0x1ce3('0xa')](_0x1ce3('0x6')),_0x3a7ae2=[...this[_0x1ce3('0x25')][_0x1ce3('0xf')][_0x1ce3('0xa')](_0x2089d8)['resolvedThreads']][_0x1ce3('0x26')](_0x1639c5=>_0x1639c5[_0x1ce3('0x1a')]!==_0x1c3264)[_0x1ce3('0x7')](_0x33f0d2=>_0x33f0d2[_0x1ce3('0x28')]<_0x12f446);return _0x3a7ae2>-0x1?_0x3a7ae2:this['annotationViews'][_0x1ce3('0x4')];}[_0x1ce3('0xb')](){const _0xbc93e9=this[_0x1ce3('0x25')],_0xd69227=this[_0x1ce3('0x25')][_0x1ce3('0xf')]['get'](_0x1ce3('0x8')),_0x206a0f=_0x539c44(_0xbc93e9[_0x1ce3('0x20')]);_0x206a0f[_0x1ce3('0x15')][_0x1ce3('0x23')]({'icon':_0x560133,'label':_0x445600(_0xbc93e9[_0x1ce3('0x20')],'COMMENTS_ARCHIVE'),'tooltip':!0x0}),_0x206a0f[_0x1ce3('0x21')][_0x1ce3('0x19')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x206a0f['on'](_0x1ce3('0x2b'),(_0x3041a2,_0x19aada,_0x56afc3)=>{this[_0x1ce3('0x2e')]||(this['commentsArchiveView']=new _0x5f03d6(_0xbc93e9['locale'],this[_0x1ce3('0xd')])),_0x56afc3?_0x206a0f[_0x1ce3('0x21')][_0x1ce3('0x18')][_0x1ce3('0x1d')](this[_0x1ce3('0x2e')]):_0x206a0f[_0x1ce3('0x21')]['children']['remove'](this['commentsArchiveView']);});for(const _0x385db7 of this[_0x1ce3('0xd')]){const _0x3c3203=_0xd69227['getByInnerView'](_0x385db7[_0x1ce3('0x5')]);this[_0x1ce3('0x1b')](_0x206a0f,_0x3c3203);}return _0x206a0f[_0x1ce3('0x11')](this['annotationViews'],_0x1ce3('0x1d'),(_0x469701,_0x201fc3)=>{const _0x3155bf=_0xd69227['getByInnerView'](_0x201fc3[_0x1ce3('0x5')]);this['_handleAnnotationFocusableElements'](_0x206a0f,_0x3155bf);}),_0x206a0f['listenTo'](this['annotationViews'],_0x1ce3('0x1e'),(_0x71c110,_0x314f97)=>{const _0xc9734f=_0xd69227[_0x1ce3('0x29')](_0x314f97['mainView']);for(const _0x3ca9dd of _0xc9734f['focusableElements'])_0x3ca9dd['classList']['contains'](_0x1ce3('0x0'))&&_0x206a0f[_0x1ce3('0x14')][_0x1ce3('0x1e')](_0x3ca9dd);}),_0x206a0f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3bba=['_hasTargetInContent','destroy','openNewCommentThread','editingDowncast','collaboration.channelId','hasContent','change:isThreadsLoadingPaused','_handleMarkerAddAndRemove','getChangedMarkers','_attachMarkerToThread','attachTo','registerPostFixer','change:isReadOnly','state','length','item','_autoResolvedThreads','substring','_attachResolvedThread','differ','_detachCommentThread','reconvertMarker','rootName','from','render','markerToData','split','scrollToThreadMarker','consume','low','_attachedThreads','isCollapsed','ck-comment-marker--active','editor','dataDowncast','createPositionBefore','config','requires','ignoreResolvedComments','comment:','removeMarker','markerName','_reconvertMarkers','_threads','resolveCommentThread','updateMarker','$graveyard','hasMarkerForId','createElement','isEqual','delete','ready','isResolved','isLocal','view','high','newRange','removeMarker:','destroyed','affectsData','init','isThreadsLoadingPaused','editing','set','$textProxy','reopen','ck-comment-marker','clear','getCommentThreads','_getTargetForId','text','markers','focus','getItems','has','getCommentThread','end','start','getAllMarkersForId','upcast','model','pluginName','CommentsEditing','comment','plugins','conversion','get','listenTo','once','change','_threadToController','setContext','resolve','addCommentThread','hasDomSelection','_removedThread','$marker','_initializeMarkerConverters','removeCommentThread','for','_handleThreadMarker','add','registerAnnotation','data','filter','fetchCommentThread','consumable','hasCommentThread','getByInnerView','refreshVisibility','dataToMarker','_getTextContext','map','push','isObject','getRange','getAttribute','activeMarker','reopenCommentThread'];(function(_0x2e3b4c,_0x3bba7e){const _0x3e7b3a=function(_0x285168){while(--_0x285168){_0x2e3b4c['push'](_0x2e3b4c['shift']());}};_0x3e7b3a(++_0x3bba7e);}(_0x3bba,0x126));const _0x3e7b=function(_0x2e3b4c,_0x3bba7e){_0x2e3b4c=_0x2e3b4c-0x0;let _0x3e7b3a=_0x3bba[_0x2e3b4c];return _0x3e7b3a;};import{Plugin as _0x18c9f0}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x33c97f}from'ckeditor5/src/utils';import _0x536918 from'./commentsrepository';import _0x21db5e from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x22f157}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e3bee from'../annotations/editorannotations';import _0x13a517 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x1752af from'./integrations/importword';import _0x2c61ab from'../annotations/annotations';export default class r extends _0x18c9f0{static get[_0x3e7b('0x64')](){return[_0x536918,_0x5e3bee,_0x13a517,_0x1752af];}static get[_0x3e7b('0x19')](){return _0x3e7b('0x1a');}constructor(_0x2062db){super(_0x2062db),this['_removedThread']=null,this['_autoResolvedThreads']=new Set(),this['set'](_0x3e7b('0x5'),!0x0),_0x2062db[_0x3e7b('0x2f')]['once'](_0x3e7b('0x72'),()=>this[_0x3e7b('0x5')]=!0x1),this[_0x3e7b('0x7')]('activeMarker',null),this['on']('change:activeMarker',(_0x4cd105,_0xfffe3b,_0x3c18e7,_0x586739)=>{const _0x3ee0c0=_0x3c18e7?tt(_0x3c18e7)['id']:null;if(_0x2062db[_0x3e7b('0x18')][_0x3e7b('0x21')](()=>{if(_0x3ee0c0){const _0x19a63c=this[_0x3e7b('0x16')](_0x3ee0c0);for(const _0x9be131 of _0x19a63c)_0x2062db['editing']['reconvertMarker'](_0x9be131);}if(_0x586739){const {id:_0x2b0bd6}=tt(_0x586739),_0x3864a8=this[_0x3e7b('0x16')](_0x2b0bd6);for(const _0x16b733 of _0x3864a8)_0x2062db[_0x3e7b('0x6')][_0x3e7b('0x54')](_0x16b733);}}),_0x3ee0c0){const _0x2735dd=_0x2062db['plugins'][_0x3e7b('0x1e')](_0x536918)['getCommentThread'](_0x3ee0c0);_0x2735dd&&_0x2735dd[_0x3e7b('0x73')]&&this[_0x3e7b('0x5a')](_0x3ee0c0);}}),this['_attachedThreads']=new Map();}[_0x3e7b('0x4')](){const _0x4299fe=this['editor'],_0x13afed=_0x4299fe[_0x3e7b('0x1c')]['get'](_0x536918),_0x4a4bd0=_0x4299fe['config'][_0x3e7b('0x1e')](_0x3e7b('0x43'));_0x4299fe['commands'][_0x3e7b('0x2d')](_0x3e7b('0x25'),new _0x21db5e(_0x4299fe)),this[_0x3e7b('0x1f')](_0x4299fe,_0x3e7b('0x4b'),(_0x2b078b,_0x500d2b,_0x115625)=>{_0x13afed['switchReadOnly'](_0x115625,_0x4299fe[_0x3e7b('0x63')][_0x3e7b('0x1e')]('collaboration.channelId'));}),this['listenTo'](_0x13afed,Z(_0x3e7b('0x25'),_0x4a4bd0),(_0x12ffea,{threadId:_0xc9d253})=>{const _0x213acc=this['editor'][_0x3e7b('0x1c')][_0x3e7b('0x1e')](_0x536918)[_0x3e7b('0x13')](_0xc9d253);_0x213acc&&_0x213acc[_0x3e7b('0x73')]&&this[_0x3e7b('0x51')](_0xc9d253);}),this['listenTo'](_0x13afed,Z(_0x3e7b('0x2a'),_0x4a4bd0),(_0x33589b,{threadId:_0x2d1372})=>{_0x4299fe[_0x3e7b('0x18')]['enqueueChange']({'isUndoable':!0x1},_0x21e148=>{const _0x578b2e=this[_0x3e7b('0x16')](_0x2d1372);this[_0x3e7b('0x5d')]['delete'](_0x2d1372),this[_0x3e7b('0x27')]=_0x2d1372;for(const _0x3c8be7 of _0x578b2e)_0x21e148[_0x3e7b('0x67')](_0x3c8be7);}),this[_0x3e7b('0x27')]=null;},{'priority':_0x3e7b('0x76')}),this[_0x3e7b('0x1f')](_0x13afed,Z(_0x3e7b('0x6b'),_0x4a4bd0),(_0x533ca6,{threadId:_0x1df717})=>{this[_0x3e7b('0x51')](_0x1df717),this[_0x3e7b('0x69')](_0x1df717),this[_0x3e7b('0x60')]['editing'][_0x3e7b('0x75')][_0x3e7b('0x26')]&&this['editor'][_0x3e7b('0x6')][_0x3e7b('0x75')][_0x3e7b('0x10')]();},{'priority':_0x3e7b('0x5c')}),this[_0x3e7b('0x1f')](_0x13afed,Z(_0x3e7b('0x3e'),_0x4a4bd0),(_0x1b0bf2,{threadId:_0x49c5db})=>{this[_0x3e7b('0x69')](_0x49c5db);},{'priority':_0x3e7b('0x5c')}),this['listenTo'](_0x13afed,Z('addComment',_0x4a4bd0),(_0x12c436,{threadId:_0x139e4c,isFromAdapter:_0x587102})=>{const _0xe5254=this[_0x3e7b('0x16')](_0x139e4c);if(_0x587102||0x0==_0xe5254['length']||!_0x13afed[_0x3e7b('0x33')](_0x139e4c))return;0x1===_0x13afed[_0x3e7b('0x13')](_0x139e4c)[_0x3e7b('0x4d')]&&_0x4299fe['model']['enqueueChange']({'isUndoable':!0x1},_0x111708=>{for(const _0x4b78a2 of _0xe5254)_0x111708[_0x3e7b('0x6c')](_0x4b78a2,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x3e7b('0x29')](),this[_0x3e7b('0x46')]();}[_0x3e7b('0x40')](){const _0x8f9e5c=this['editor'][_0x3e7b('0x1c')][_0x3e7b('0x1e')](_0x536918),_0x1b5f81=this[_0x3e7b('0x60')]['config']['get'](_0x3e7b('0x43'));for(const _0x5d59d4 of _0x8f9e5c[_0x3e7b('0xc')]({'channelId':_0x1b5f81}))_0x8f9e5c[_0x3e7b('0x53')](_0x5d59d4['id']),_0x8f9e5c[_0x3e7b('0x6a')][_0x3e7b('0x71')](_0x5d59d4['id']);super[_0x3e7b('0x40')]();}[_0x3e7b('0x6e')](_0xabade9){return this[_0x3e7b('0x16')](_0xabade9)['length']>0x0;}[_0x3e7b('0x16')](_0x20b5a3){return Array[_0x3e7b('0x56')](this['_attachedThreads'][_0x3e7b('0x1e')](_0x20b5a3)||[])[_0x3e7b('0x38')](_0x22f930=>this['editor'][_0x3e7b('0x18')][_0x3e7b('0xf')][_0x3e7b('0x1e')](_0x22f930))[_0x3e7b('0x30')](_0x52f130=>_0x52f130);}['scrollToThreadMarker'](_0x41ba95){const _0x24854c=this['_getTargetForId'](_0x41ba95);_0x24854c&&setTimeout(()=>{this[_0x3e7b('0x3d')]&&tt(this[_0x3e7b('0x3d')])['id']===_0x41ba95&&_0x33c97f({'target':_0x24854c[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x3e7b('0x69')](_0x17f447){this[_0x3e7b('0x60')][_0x3e7b('0x18')][_0x3e7b('0x21')](()=>{for(const _0x3d54f1 of this['getAllMarkersForId'](_0x17f447))this[_0x3e7b('0x60')]['editing']['reconvertMarker'](_0x3d54f1);});}[_0x3e7b('0x51')](_0x256469){const _0xd4d5bc=this[_0x3e7b('0x60')]['plugins'][_0x3e7b('0x1e')](_0x536918),_0x2f6b5f=this[_0x3e7b('0x60')]['plugins'][_0x3e7b('0x1e')](_0x5e3bee),_0x258e76=_0xd4d5bc[_0x3e7b('0x13')](_0x256469);if(!this[_0x3e7b('0x5d')]['has'](_0x256469)){const _0x21bd12=_0x258e76[_0x3e7b('0x49')](()=>this[_0x3e7b('0xd')](_0x258e76['id']));_0x2f6b5f[_0x3e7b('0x2e')](_0x21bd12),this[_0x3e7b('0x5d')][_0x3e7b('0x7')](_0x256469,new Set()),_0x258e76[_0x3e7b('0x3f')]=!0x1;}}[_0x3e7b('0x29')](){const _0x559c48=this['editor'];_0x559c48['conversion'][_0x3e7b('0x2b')](_0x3e7b('0x42'))['markerToHighlight']({'model':_0x3e7b('0x1b'),'view':(_0x177bf7,_0x1825e0)=>{const {id:_0x1a4606}=tt(_0x177bf7[_0x3e7b('0x68')]),_0x449999=_0x559c48[_0x3e7b('0x1c')][_0x3e7b('0x1e')](_0x536918)[_0x3e7b('0x13')](_0x1a4606),_0xc41db2=this['activeMarker']&&tt(this['activeMarker'])['id']===_0x1a4606;if(_0x449999&&_0x449999[_0x3e7b('0x73')]&&!_0xc41db2&&_0x177bf7['item'])return _0x1825e0[_0x3e7b('0x32')][_0x3e7b('0x5b')](_0x177bf7['item'],'addMarker:'+_0x177bf7[_0x3e7b('0x68')]),_0x1825e0['consumable'][_0x3e7b('0x5b')](_0x177bf7[_0x3e7b('0x4e')],_0x3e7b('0x1')+_0x177bf7[_0x3e7b('0x68')]),{'classes':[]};const _0x15590d=[_0x3e7b('0xa')];return _0xc41db2&&_0x15590d[_0x3e7b('0x39')](_0x3e7b('0x5f')),{'classes':_0x15590d,'attributes':{'data-comment':_0x1a4606}};}}),_0x559c48[_0x3e7b('0x1d')][_0x3e7b('0x2b')](_0x3e7b('0x61'))[_0x3e7b('0x58')]({'model':_0x3e7b('0x1b'),'view':(_0x1afe64,{options:_0x26dabc})=>{const _0x15b060=_0x559c48[_0x3e7b('0x1c')]['get'](_0x536918),_0x5893bc=_0x559c48['model'][_0x3e7b('0xf')]['get'](_0x1afe64),{id:_0x4c7d50,part:_0x436b0e}=tt(_0x1afe64);if(_0x5893bc&&!_0x5893bc[_0x3e7b('0x3')])return null;if(_0x26dabc[_0x3e7b('0x65')]){const _0x4c66cf=_0x15b060[_0x3e7b('0x13')](_0x4c7d50);if(_0x4c66cf&&_0x4c66cf[_0x3e7b('0x73')])return null;}return{'group':'comment','name':_0x436b0e?_0x4c7d50+':'+_0x436b0e:_0x4c7d50};}}),_0x559c48['conversion'][_0x3e7b('0x2b')](_0x3e7b('0x17'))['elementToElement']({'view':{'name':_0x3e7b('0x1b'),'attributes':{'id':/^\w/}},'model':(_0x42e24c,{writer:_0x4664f8})=>_0x4664f8[_0x3e7b('0x6f')](_0x3e7b('0x28'),{'data-name':_0x3e7b('0x66')+_0x42e24c[_0x3e7b('0x3c')]('id')})}),_0x559c48[_0x3e7b('0x1d')][_0x3e7b('0x2b')](_0x3e7b('0x17'))[_0x3e7b('0x36')]({'view':_0x3e7b('0x1b')});}['_handleMarkerAddAndRemove'](){const _0x422ff4=this[_0x3e7b('0x60')],_0x36a581=_0x422ff4['plugins'][_0x3e7b('0x1e')](_0x536918),_0x51ba66=new Set(),_0x4fe00e=new Set();_0x422ff4[_0x3e7b('0x18')]['document'][_0x3e7b('0x4a')](_0x4ae758=>{let _0x5c3098=!0x1;for(const {name:_0x47bf65,data:_0x504e49}of _0x422ff4[_0x3e7b('0x18')]['document'][_0x3e7b('0x52')][_0x3e7b('0x47')]()){const {group:_0x319329,id:_0x54a9b5}=tt(_0x47bf65);let _0x5137a9=_0x504e49[_0x3e7b('0x0')];if('comment'!==_0x319329||!_0x5137a9)continue;const _0x543458=_0x3e7b('0x6d')===_0x5137a9['root'][_0x3e7b('0x55')];_0x543458||(_0x5137a9=ot(_0x5137a9,_0x422ff4[_0x3e7b('0x18')]),!_0x5137a9||_0x5137a9[_0x3e7b('0x5e')]||!_0x504e49['newRange']||_0x5137a9[_0x3e7b('0x70')](_0x504e49[_0x3e7b('0x0')]))?_0x422ff4[_0x3e7b('0x18')][_0x3e7b('0x44')](_0x5137a9)&&!_0x543458?this['isThreadsLoadingPaused']?_0x51ba66[_0x3e7b('0x2d')](_0x47bf65):this['_handleThreadMarker'](_0x47bf65,_0x54a9b5):(_0x4fe00e[_0x3e7b('0x2d')](_0x47bf65),_0x51ba66[_0x3e7b('0x71')](_0x47bf65),_0x4ae758[_0x3e7b('0x67')](_0x47bf65),_0x5c3098=!0x0):(_0x4ae758[_0x3e7b('0x6c')](_0x47bf65,{'range':_0x5137a9}),_0x5c3098=!0x0);}return _0x5c3098;}),this['on'](_0x3e7b('0x45'),(_0x17bc5f,_0x41ccad,_0x1f0e37)=>{if(!_0x1f0e37&&_0x51ba66['size'])for(const _0x1e0c16 of _0x51ba66){const {id:_0x5b5844}=tt(_0x1e0c16);_0x51ba66[_0x3e7b('0x71')](_0x1e0c16),_0x422ff4[_0x3e7b('0x18')][_0x3e7b('0xf')]['get'](_0x1e0c16)&&this[_0x3e7b('0x2c')](_0x1e0c16,_0x5b5844);}}),this['listenTo'](_0x422ff4['model']['document'],_0x3e7b('0x21'),(_0x1fcab5,_0x4e35e0)=>{for(const {name:_0x4a1072,data:{newRange:_0x3c9f96}}of _0x422ff4[_0x3e7b('0x18')]['document'][_0x3e7b('0x52')]['getChangedMarkers']()){const {group:_0x359f33,id:_0x1557d9}=tt(_0x4a1072);if(_0x3e7b('0x1b')!==_0x359f33)continue;const _0x41f4b8=_0x36a581[_0x3e7b('0x13')](_0x1557d9),_0x59ce36=this[_0x3e7b('0x6e')](_0x1557d9);_0x41f4b8&&(_0x41f4b8[_0x3e7b('0x3f')]||_0x422ff4[_0x3e7b('0x6')]['view']['once'](_0x3e7b('0x57'),()=>{const _0x1c4d3b=_0x422ff4[_0x3e7b('0x1c')][_0x3e7b('0x1e')](_0x2c61ab),_0x3a18d2=_0x36a581['_threadToController']['get'](_0x41f4b8)['view'];_0x1c4d3b[_0x3e7b('0x34')](_0x3a18d2)[_0x3e7b('0x35')]();},{'priority':_0x3e7b('0x5c')}),_0x41f4b8[_0x3e7b('0x3f')]=_0x59ce36||!!_0x3c9f96),_0x3c9f96||(_0x4fe00e[_0x3e7b('0x2d')](_0x4a1072),_0x51ba66['delete'](_0x4a1072),this[_0x3e7b('0x5d')][_0x3e7b('0x12')](_0x1557d9)&&this[_0x3e7b('0x5d')][_0x3e7b('0x1e')](_0x1557d9)['delete'](_0x4a1072));}if(_0x4e35e0[_0x3e7b('0x74')])for(const _0x1a9103 of _0x4fe00e){const {id:_0x537d75}=tt(_0x1a9103),_0x4889ea=_0x36a581[_0x3e7b('0x13')](_0x537d75),_0x1a4e67=this['hasMarkerForId'](_0x537d75);_0x51ba66[_0x3e7b('0x71')](_0x1a9103),!_0x4889ea||_0x1a4e67||_0x4889ea['isResolved']||this['_removedThread']===_0x537d75||(this['_autoResolvedThreads']['add'](_0x4889ea),_0x4889ea[_0x3e7b('0x24')]());}_0x4fe00e[_0x3e7b('0xb')]();});}['_getTargetForId'](_0x4e73f0){const _0x2756b9=this[_0x3e7b('0x60')],_0x29f4d2=this[_0x3e7b('0x16')](_0x4e73f0);return _0x22f157(_0x2756b9[_0x3e7b('0x6')],_0x29f4d2);}[_0x3e7b('0x37')](_0x40430b){const _0x4333f8=this[_0x3e7b('0x16')](_0x40430b);let _0x5f14f1='',_0x2fa7f3=!0x1;for(const _0x93354d of _0x4333f8){const _0x55ff9b=_0x93354d[_0x3e7b('0x3b')]();for(const _0x5d9019 of Array[_0x3e7b('0x56')](_0x55ff9b[_0x3e7b('0x11')]()))_0x5d9019['is'](_0x3e7b('0x8'))?(_0x5f14f1&&_0x2fa7f3&&(_0x5f14f1+='\x20',_0x2fa7f3=!0x1),_0x5f14f1+=_0x5d9019[_0x3e7b('0x2f')]):_0x2fa7f3=!0x0;_0x2fa7f3=!0x0;}return _0x5f14f1[_0x3e7b('0x50')](0x0,0x96);}[_0x3e7b('0x48')](_0x206b9a,_0x7cd6a5){const _0x4afcf4=this[_0x3e7b('0x60')],_0x5c18bc=_0x4afcf4['plugins'][_0x3e7b('0x1e')](_0x536918);let _0x78623=_0x5c18bc['getCommentThread'](_0x7cd6a5);if(this[_0x3e7b('0x5d')][_0x3e7b('0x12')](_0x7cd6a5)){const _0x504c98=this['_attachedThreads']['get'](_0x7cd6a5);_0x504c98[_0x3e7b('0x12')](_0x206b9a)||_0x504c98[_0x3e7b('0x2d')](_0x206b9a);}const _0x500740=_0x4afcf4[_0x3e7b('0x63')][_0x3e7b('0x1e')](_0x3e7b('0x43')),_0x2b3e27=_0x4afcf4[_0x3e7b('0x1c')]['get'](_0x5e3bee);if(_0x78623&&_0x78623[_0x3e7b('0x73')]&&this[_0x3e7b('0x4f')][_0x3e7b('0x12')](_0x78623)&&(this['_autoResolvedThreads'][_0x3e7b('0x71')](_0x78623),_0x78623[_0x3e7b('0x9')]()),this[_0x3e7b('0x5d')][_0x3e7b('0x12')](_0x7cd6a5))return _0x78623;return this[_0x3e7b('0x5d')][_0x3e7b('0x7')](_0x7cd6a5,new Set([_0x206b9a])),(!this[_0x3e7b('0x16')](_0x7cd6a5)[0x0]['managedUsingOperations']?_0x4afcf4[_0x3e7b('0x6')]['view'][_0x3e7b('0x20')](_0x3e7b('0x57'),()=>{const _0x5bc433=_0x4afcf4['plugins'][_0x3e7b('0x1e')](_0x2c61ab);_0x78623=_0x5c18bc[_0x3e7b('0x41')]({'channelId':_0x500740,'threadId':_0x7cd6a5,'target':()=>this[_0x3e7b('0xd')](_0x7cd6a5),'context':{'type':_0x3e7b('0xe'),'value':this[_0x3e7b('0x37')](_0x7cd6a5)}});const _0x2e0889=_0x5c18bc[_0x3e7b('0x22')][_0x3e7b('0x1e')](_0x78623)[_0x3e7b('0x75')],_0x1dcd80=_0x5bc433[_0x3e7b('0x34')](_0x2e0889);_0x1dcd80&&_0x2b3e27[_0x3e7b('0x2e')](_0x1dcd80);},{'priority':_0x3e7b('0x5c')}):_0x5c18bc[_0x3e7b('0x31')]({'channelId':_0x500740,'threadId':_0x7cd6a5})['then'](_0x1327b8=>{if(_0x3e7b('0x2')!==_0x4afcf4[_0x3e7b('0x4c')]){if(_0x78623=_0x1327b8,_0x78623){const _0x189f91=_0x78623['attachTo'](()=>this[_0x3e7b('0xd')](_0x7cd6a5));_0x2b3e27['registerAnnotation'](_0x189f91),_0x78623['isResolved']&&this[_0x3e7b('0x69')](_0x7cd6a5);}else{const _0x6a0eee=this[_0x3e7b('0x16')](_0x7cd6a5);_0x4afcf4[_0x3e7b('0x18')]['change'](_0x1ba31c=>{for(const _0x329f1b of _0x6a0eee)_0x1ba31c[_0x3e7b('0x67')](_0x329f1b);});}}}),_0x78623);}[_0x3e7b('0x2c')](_0x2cadc9,_0x2dcbea){const _0x572ea6=this[_0x3e7b('0x48')](_0x2cadc9,_0x2dcbea);_0x572ea6&&!_0x572ea6['context']&&_0x572ea6[_0x3e7b('0x23')]({'type':_0x3e7b('0xe'),'value':this[_0x3e7b('0x37')](_0x2dcbea)});}}function Z(_0x3554e4,_0x27dfbd){return _0x27dfbd?_0x3554e4+':'+_0x27dfbd:_0x3554e4;}function tt(_0x1f1f29){const _0x18be27=_0x1f1f29[_0x3e7b('0x59')](':');return{'group':_0x18be27[0x0],'id':_0x18be27[0x1],'part':_0x18be27[0x2]};}function ot(_0x4cb63d,_0x43a507){const _0x55357a=_0x43a507['schema'],_0x357ee9=_0x43a507['createRange'](_0x4cb63d[_0x3e7b('0x15')]);for(const _0x3f02a3 of _0x4cb63d['getWalker']()){const {type:_0x5a32f7,item:_0x3cbbcb,nextPosition:_0x46b9a4}=_0x3f02a3;if(_0x3e7b('0xe')===_0x5a32f7||_0x55357a[_0x3e7b('0x3a')](_0x3cbbcb)){const _0x42e903=_0x43a507[_0x3e7b('0x62')](_0x3cbbcb);_0x357ee9[_0x3e7b('0x5e')]&&(_0x357ee9[_0x3e7b('0x15')]=_0x42e903),_0x357ee9[_0x3e7b('0x14')]=_0x46b9a4;}}return _0x357ee9;}
|
|
23
|
+
const _0x1fa3=['resolveCommentThread','model','attachTo','substring','_attachedThreads','once','getCommentThreads','hasCommentThread','comment:','registerAnnotation','differ','reopenCommentThread','start','then','change:activeMarker','split','getRange','requires','_attachMarkerToThread','removeMarker:','isLocal','editor','isObject','getWalker','getByInnerView','refreshVisibility','_detachCommentThread','focus','$textProxy','createRange','getChangedMarkers','get','_hasTargetInContent','resolve','isThreadsLoadingPaused','_handleMarkerAddAndRemove','scrollToThreadMarker','affectsData','render','change:isReadOnly','reopen','ready','_removedThread','filter','view','setContext','for','ck-comment-marker','hasDomSelection','CommentsEditing','createElement','pluginName','add','context','has','upcast','change:isThreadsLoadingPaused','hasMarkerForId','removeMarker','ignoreResolvedComments','change','markerToData','push','openNewCommentThread','removeCommentThread','getAllMarkersForId','elementToElement','activeMarker','destroy','conversion','consumable','_handleThreadMarker','comment','newRange','hasContent','_getTargetForId','map','item','config','markers','isCollapsed','init','_autoResolvedThreads','_threadToController','listenTo','from','_initializeMarkerConverters','set','markerName','data','end','addCommentThread','registerPostFixer','length','collaboration.channelId','delete','editingDowncast','$graveyard','getCommentThread','reconvertMarker','_attachResolvedThread','markerToHighlight','high','addMarker:','document','dataDowncast','_getTextContext','isResolved','_reconvertMarkers','editing','rootName','enqueueChange','ck-comment-marker--active','plugins','isEqual','dataToMarker','schema','size','getItems','low','commands','consume','clear','text'];(function(_0x3fe63d,_0x1fa305){const _0x58dfa1=function(_0x40fbf4){while(--_0x40fbf4){_0x3fe63d['push'](_0x3fe63d['shift']());}};_0x58dfa1(++_0x1fa305);}(_0x1fa3,0x170));const _0x58df=function(_0x3fe63d,_0x1fa305){_0x3fe63d=_0x3fe63d-0x0;let _0x58dfa1=_0x1fa3[_0x3fe63d];return _0x58dfa1;};import{Plugin as _0x52a63d}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1b0496}from'ckeditor5/src/utils';import _0x3774d2 from'./commentsrepository';import _0x4bf6b1 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x576cfb}from'ckeditor5-collaboration/src/collaboration-core';import _0x34c36f from'../annotations/editorannotations';import _0x2c1a2e from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x12cfc3 from'./integrations/importword';import _0x196f95 from'../annotations/annotations';export default class r extends _0x52a63d{static get[_0x58df('0x15')](){return[_0x3774d2,_0x34c36f,_0x2c1a2e,_0x12cfc3];}static get[_0x58df('0x37')](){return _0x58df('0x35');}constructor(_0x14efa8){super(_0x14efa8),this[_0x58df('0x2e')]=null,this[_0x58df('0x56')]=new Set(),this[_0x58df('0x5b')](_0x58df('0x26'),!0x0),_0x14efa8[_0x58df('0x5d')][_0x58df('0x9')](_0x58df('0x2d'),()=>this[_0x58df('0x26')]=!0x1),this[_0x58df('0x5b')]('activeMarker',null),this['on'](_0x58df('0x12'),(_0x1f54cf,_0x22567a,_0x4a222d,_0xc2bba2)=>{const _0x42cf2b=_0x4a222d?tt(_0x4a222d)['id']:null;if(_0x14efa8['model'][_0x58df('0x40')](()=>{if(_0x42cf2b){const _0x2b8161=this['getAllMarkersForId'](_0x42cf2b);for(const _0x351b43 of _0x2b8161)_0x14efa8[_0x58df('0x71')][_0x58df('0x67')](_0x351b43);}if(_0xc2bba2){const {id:_0x37e776}=tt(_0xc2bba2),_0x1d1047=this[_0x58df('0x45')](_0x37e776);for(const _0x4ddbc3 of _0x1d1047)_0x14efa8[_0x58df('0x71')][_0x58df('0x67')](_0x4ddbc3);}}),_0x42cf2b){const _0x447a66=_0x14efa8[_0x58df('0x75')][_0x58df('0x23')](_0x3774d2)[_0x58df('0x66')](_0x42cf2b);_0x447a66&&_0x447a66['isResolved']&&this[_0x58df('0x28')](_0x42cf2b);}}),this[_0x58df('0x8')]=new Map();}[_0x58df('0x55')](){const _0xe16a7c=this[_0x58df('0x19')],_0x43da58=_0xe16a7c[_0x58df('0x75')]['get'](_0x3774d2),_0x8f5259=_0xe16a7c[_0x58df('0x52')][_0x58df('0x23')](_0x58df('0x62'));_0xe16a7c[_0x58df('0x0')][_0x58df('0x38')](_0x58df('0x5f'),new _0x4bf6b1(_0xe16a7c)),this[_0x58df('0x58')](_0xe16a7c,_0x58df('0x2b'),(_0x234f80,_0x57c38a,_0x2ab83d)=>{_0x43da58['switchReadOnly'](_0x2ab83d,_0xe16a7c[_0x58df('0x52')]['get'](_0x58df('0x62')));}),this[_0x58df('0x58')](_0x43da58,Z('addCommentThread',_0x8f5259),(_0x3b518e,{threadId:_0x599e82})=>{const _0x1f660e=this[_0x58df('0x19')][_0x58df('0x75')]['get'](_0x3774d2)['getCommentThread'](_0x599e82);_0x1f660e&&_0x1f660e[_0x58df('0x6f')]&&this[_0x58df('0x68')](_0x599e82);}),this[_0x58df('0x58')](_0x43da58,Z(_0x58df('0x44'),_0x8f5259),(_0xc6668d,{threadId:_0x191d6d})=>{_0xe16a7c[_0x58df('0x5')][_0x58df('0x73')]({'isUndoable':!0x1},_0x12f72d=>{const _0x14d8ce=this['getAllMarkersForId'](_0x191d6d);this[_0x58df('0x8')][_0x58df('0x63')](_0x191d6d),this[_0x58df('0x2e')]=_0x191d6d;for(const _0x449fd6 of _0x14d8ce)_0x12f72d[_0x58df('0x3e')](_0x449fd6);}),this[_0x58df('0x2e')]=null;},{'priority':_0x58df('0x6a')}),this[_0x58df('0x58')](_0x43da58,Z(_0x58df('0x4'),_0x8f5259),(_0x41f63d,{threadId:_0x2334fe})=>{this[_0x58df('0x68')](_0x2334fe),this[_0x58df('0x70')](_0x2334fe),this[_0x58df('0x19')]['editing']['view'][_0x58df('0x34')]&&this[_0x58df('0x19')]['editing'][_0x58df('0x30')][_0x58df('0x1f')]();},{'priority':_0x58df('0x7b')}),this['listenTo'](_0x43da58,Z(_0x58df('0xf'),_0x8f5259),(_0x251390,{threadId:_0x185ee2})=>{this['_reconvertMarkers'](_0x185ee2);},{'priority':_0x58df('0x7b')}),this[_0x58df('0x58')](_0x43da58,Z('addComment',_0x8f5259),(_0x18c142,{threadId:_0x2fc7be,isFromAdapter:_0x45f17d})=>{const _0x3ecbce=this['getAllMarkersForId'](_0x2fc7be);if(_0x45f17d||0x0==_0x3ecbce[_0x58df('0x61')]||!_0x43da58[_0x58df('0xb')](_0x2fc7be))return;0x1===_0x43da58[_0x58df('0x66')](_0x2fc7be)[_0x58df('0x61')]&&_0xe16a7c[_0x58df('0x5')][_0x58df('0x73')]({'isUndoable':!0x1},_0x51f284=>{for(const _0x321f49 of _0x3ecbce)_0x51f284['updateMarker'](_0x321f49,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x58df('0x7b')}),this[_0x58df('0x5a')](),this[_0x58df('0x27')]();}['destroy'](){const _0x524b1e=this['editor'][_0x58df('0x75')][_0x58df('0x23')](_0x3774d2),_0x474100=this['editor'][_0x58df('0x52')][_0x58df('0x23')](_0x58df('0x62'));for(const _0x42b4ac of _0x524b1e[_0x58df('0xa')]({'channelId':_0x474100}))_0x524b1e[_0x58df('0x1e')](_0x42b4ac['id']),_0x524b1e['_threads'][_0x58df('0x63')](_0x42b4ac['id']);super[_0x58df('0x48')]();}[_0x58df('0x3d')](_0x341b07){return this[_0x58df('0x45')](_0x341b07)[_0x58df('0x61')]>0x0;}[_0x58df('0x45')](_0x569574){return Array[_0x58df('0x59')](this['_attachedThreads'][_0x58df('0x23')](_0x569574)||[])[_0x58df('0x50')](_0x18c846=>this[_0x58df('0x19')][_0x58df('0x5')][_0x58df('0x53')][_0x58df('0x23')](_0x18c846))[_0x58df('0x2f')](_0x4fb3c3=>_0x4fb3c3);}[_0x58df('0x28')](_0x4edcf5){const _0x7a3788=this[_0x58df('0x4f')](_0x4edcf5);_0x7a3788&&setTimeout(()=>{this['activeMarker']&&tt(this['activeMarker'])['id']===_0x4edcf5&&_0x1b0496({'target':_0x7a3788[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x58df('0x70')](_0x4e00f3){this[_0x58df('0x19')][_0x58df('0x5')][_0x58df('0x40')](()=>{for(const _0x3b908b of this[_0x58df('0x45')](_0x4e00f3))this[_0x58df('0x19')]['editing'][_0x58df('0x67')](_0x3b908b);});}['_attachResolvedThread'](_0xb53526){const _0x4a5c15=this[_0x58df('0x19')][_0x58df('0x75')][_0x58df('0x23')](_0x3774d2),_0x977f09=this[_0x58df('0x19')]['plugins'][_0x58df('0x23')](_0x34c36f),_0x21a72c=_0x4a5c15[_0x58df('0x66')](_0xb53526);if(!this[_0x58df('0x8')][_0x58df('0x3a')](_0xb53526)){const _0x4dbf5f=_0x21a72c['attachTo'](()=>this[_0x58df('0x4f')](_0x21a72c['id']));_0x977f09['registerAnnotation'](_0x4dbf5f),this['_attachedThreads']['set'](_0xb53526,new Set()),_0x21a72c[_0x58df('0x24')]=!0x1;}}[_0x58df('0x5a')](){const _0x1b3b2b=this[_0x58df('0x19')];_0x1b3b2b[_0x58df('0x49')][_0x58df('0x32')](_0x58df('0x64'))[_0x58df('0x69')]({'model':_0x58df('0x4c'),'view':(_0x136d41,_0x429e86)=>{const {id:_0x2b29ce}=tt(_0x136d41[_0x58df('0x5c')]),_0x59d459=_0x1b3b2b['plugins']['get'](_0x3774d2)[_0x58df('0x66')](_0x2b29ce),_0x292e9b=this[_0x58df('0x47')]&&tt(this[_0x58df('0x47')])['id']===_0x2b29ce;if(_0x59d459&&_0x59d459[_0x58df('0x6f')]&&!_0x292e9b&&_0x136d41[_0x58df('0x51')])return _0x429e86[_0x58df('0x4a')][_0x58df('0x1')](_0x136d41['item'],_0x58df('0x6b')+_0x136d41[_0x58df('0x5c')]),_0x429e86[_0x58df('0x4a')][_0x58df('0x1')](_0x136d41[_0x58df('0x51')],_0x58df('0x17')+_0x136d41[_0x58df('0x5c')]),{'classes':[]};const _0x19b9ab=[_0x58df('0x33')];return _0x292e9b&&_0x19b9ab[_0x58df('0x42')](_0x58df('0x74')),{'classes':_0x19b9ab,'attributes':{'data-comment':_0x2b29ce}};}}),_0x1b3b2b[_0x58df('0x49')][_0x58df('0x32')](_0x58df('0x6d'))[_0x58df('0x41')]({'model':'comment','view':(_0x49eb97,{options:_0xb55dcd})=>{const _0x379af8=_0x1b3b2b['plugins']['get'](_0x3774d2),_0x272b46=_0x1b3b2b[_0x58df('0x5')]['markers'][_0x58df('0x23')](_0x49eb97),{id:_0x54a63e,part:_0x4f43f6}=tt(_0x49eb97);if(_0x272b46&&!_0x272b46[_0x58df('0x29')])return null;if(_0xb55dcd[_0x58df('0x3f')]){const _0x298acc=_0x379af8[_0x58df('0x66')](_0x54a63e);if(_0x298acc&&_0x298acc[_0x58df('0x6f')])return null;}return{'group':_0x58df('0x4c'),'name':_0x4f43f6?_0x54a63e+':'+_0x4f43f6:_0x54a63e};}}),_0x1b3b2b['conversion'][_0x58df('0x32')]('upcast')[_0x58df('0x46')]({'view':{'name':_0x58df('0x4c'),'attributes':{'id':/^\w/}},'model':(_0x257753,{writer:_0x3d7b28})=>_0x3d7b28[_0x58df('0x36')]('$marker',{'data-name':_0x58df('0xc')+_0x257753['getAttribute']('id')})}),_0x1b3b2b[_0x58df('0x49')][_0x58df('0x32')](_0x58df('0x3b'))[_0x58df('0x77')]({'view':_0x58df('0x4c')});}[_0x58df('0x27')](){const _0x366129=this[_0x58df('0x19')],_0xcd5af=_0x366129[_0x58df('0x75')]['get'](_0x3774d2),_0x2b3cb3=new Set(),_0x27898f=new Set();_0x366129[_0x58df('0x5')][_0x58df('0x6c')][_0x58df('0x60')](_0x42254e=>{let _0x14453e=!0x1;for(const {name:_0x433a69,data:_0x1eb01d}of _0x366129['model']['document'][_0x58df('0xe')][_0x58df('0x22')]()){const {group:_0x3e8a34,id:_0x271bb5}=tt(_0x433a69);let _0x2b1eea=_0x1eb01d['newRange'];if('comment'!==_0x3e8a34||!_0x2b1eea)continue;const _0x5cdce2=_0x58df('0x65')===_0x2b1eea['root'][_0x58df('0x72')];_0x5cdce2||(_0x2b1eea=ot(_0x2b1eea,_0x366129[_0x58df('0x5')]),!_0x2b1eea||_0x2b1eea[_0x58df('0x54')]||!_0x1eb01d['newRange']||_0x2b1eea[_0x58df('0x76')](_0x1eb01d[_0x58df('0x4d')]))?_0x366129[_0x58df('0x5')][_0x58df('0x4e')](_0x2b1eea)&&!_0x5cdce2?this[_0x58df('0x26')]?_0x2b3cb3['add'](_0x433a69):this[_0x58df('0x4b')](_0x433a69,_0x271bb5):(_0x27898f['add'](_0x433a69),_0x2b3cb3['delete'](_0x433a69),_0x42254e[_0x58df('0x3e')](_0x433a69),_0x14453e=!0x0):(_0x42254e['updateMarker'](_0x433a69,{'range':_0x2b1eea}),_0x14453e=!0x0);}return _0x14453e;}),this['on'](_0x58df('0x3c'),(_0x32a5f3,_0xce001d,_0x2f7353)=>{if(!_0x2f7353&&_0x2b3cb3[_0x58df('0x79')])for(const _0x4af62e of _0x2b3cb3){const {id:_0x1db415}=tt(_0x4af62e);_0x2b3cb3['delete'](_0x4af62e),_0x366129[_0x58df('0x5')][_0x58df('0x53')][_0x58df('0x23')](_0x4af62e)&&this['_handleThreadMarker'](_0x4af62e,_0x1db415);}}),this['listenTo'](_0x366129[_0x58df('0x5')][_0x58df('0x6c')],_0x58df('0x40'),(_0x369277,_0x2c378a)=>{for(const {name:_0x1a637d,data:{newRange:_0x263dd2}}of _0x366129[_0x58df('0x5')][_0x58df('0x6c')][_0x58df('0xe')][_0x58df('0x22')]()){const {group:_0x316859,id:_0x23c709}=tt(_0x1a637d);if(_0x58df('0x4c')!==_0x316859)continue;const _0x518fb6=_0xcd5af[_0x58df('0x66')](_0x23c709),_0x4c0ea0=this[_0x58df('0x3d')](_0x23c709);_0x518fb6&&(_0x518fb6[_0x58df('0x24')]||_0x366129['editing'][_0x58df('0x30')][_0x58df('0x9')](_0x58df('0x2a'),()=>{const _0x23b9ea=_0x366129[_0x58df('0x75')][_0x58df('0x23')](_0x196f95),_0x499c2d=_0xcd5af[_0x58df('0x57')][_0x58df('0x23')](_0x518fb6)[_0x58df('0x30')];_0x23b9ea['getByInnerView'](_0x499c2d)[_0x58df('0x1d')]();},{'priority':_0x58df('0x7b')}),_0x518fb6[_0x58df('0x24')]=_0x4c0ea0||!!_0x263dd2),_0x263dd2||(_0x27898f[_0x58df('0x38')](_0x1a637d),_0x2b3cb3[_0x58df('0x63')](_0x1a637d),this[_0x58df('0x8')][_0x58df('0x3a')](_0x23c709)&&this['_attachedThreads']['get'](_0x23c709)[_0x58df('0x63')](_0x1a637d));}if(_0x2c378a[_0x58df('0x18')])for(const _0x189b7c of _0x27898f){const {id:_0x54e218}=tt(_0x189b7c),_0x42c00b=_0xcd5af[_0x58df('0x66')](_0x54e218),_0x424e49=this[_0x58df('0x3d')](_0x54e218);_0x2b3cb3[_0x58df('0x63')](_0x189b7c),!_0x42c00b||_0x424e49||_0x42c00b[_0x58df('0x6f')]||this[_0x58df('0x2e')]===_0x54e218||(this[_0x58df('0x56')][_0x58df('0x38')](_0x42c00b),_0x42c00b[_0x58df('0x25')]());}_0x27898f[_0x58df('0x2')]();});}['_getTargetForId'](_0x1895b6){const _0x145859=this['editor'],_0x48af71=this[_0x58df('0x45')](_0x1895b6);return _0x576cfb(_0x145859[_0x58df('0x71')],_0x48af71);}['_getTextContext'](_0x15f04e){const _0x36b16d=this['getAllMarkersForId'](_0x15f04e);let _0x2db1d2='',_0x535e79=!0x1;for(const _0x1be740 of _0x36b16d){const _0x55a9fe=_0x1be740[_0x58df('0x14')]();for(const _0x11d2d0 of Array[_0x58df('0x59')](_0x55a9fe[_0x58df('0x7a')]()))_0x11d2d0['is'](_0x58df('0x20'))?(_0x2db1d2&&_0x535e79&&(_0x2db1d2+='\x20',_0x535e79=!0x1),_0x2db1d2+=_0x11d2d0['data']):_0x535e79=!0x0;_0x535e79=!0x0;}return _0x2db1d2[_0x58df('0x7')](0x0,0x96);}[_0x58df('0x16')](_0x89a6b5,_0x3989e4){const _0x3040a5=this[_0x58df('0x19')],_0x4e551a=_0x3040a5['plugins'][_0x58df('0x23')](_0x3774d2);let _0x871118=_0x4e551a[_0x58df('0x66')](_0x3989e4);if(this[_0x58df('0x8')]['has'](_0x3989e4)){const _0x22f883=this['_attachedThreads'][_0x58df('0x23')](_0x3989e4);_0x22f883[_0x58df('0x3a')](_0x89a6b5)||_0x22f883[_0x58df('0x38')](_0x89a6b5);}const _0x492d03=_0x3040a5[_0x58df('0x52')][_0x58df('0x23')](_0x58df('0x62')),_0x275223=_0x3040a5[_0x58df('0x75')][_0x58df('0x23')](_0x34c36f);if(_0x871118&&_0x871118[_0x58df('0x6f')]&&this[_0x58df('0x56')][_0x58df('0x3a')](_0x871118)&&(this[_0x58df('0x56')][_0x58df('0x63')](_0x871118),_0x871118[_0x58df('0x2c')]()),this['_attachedThreads'][_0x58df('0x3a')](_0x3989e4))return _0x871118;return this[_0x58df('0x8')][_0x58df('0x5b')](_0x3989e4,new Set([_0x89a6b5])),(!this[_0x58df('0x45')](_0x3989e4)[0x0]['managedUsingOperations']?_0x3040a5['editing'][_0x58df('0x30')][_0x58df('0x9')](_0x58df('0x2a'),()=>{const _0x351e17=_0x3040a5[_0x58df('0x75')][_0x58df('0x23')](_0x196f95);_0x871118=_0x4e551a[_0x58df('0x43')]({'channelId':_0x492d03,'threadId':_0x3989e4,'target':()=>this['_getTargetForId'](_0x3989e4),'context':{'type':_0x58df('0x3'),'value':this['_getTextContext'](_0x3989e4)}});const _0xd16c6b=_0x4e551a[_0x58df('0x57')][_0x58df('0x23')](_0x871118)[_0x58df('0x30')],_0x246399=_0x351e17[_0x58df('0x1c')](_0xd16c6b);_0x246399&&_0x275223[_0x58df('0xd')](_0x246399);},{'priority':_0x58df('0x7b')}):_0x4e551a['fetchCommentThread']({'channelId':_0x492d03,'threadId':_0x3989e4})[_0x58df('0x11')](_0x29d0cb=>{if('destroyed'!==_0x3040a5['state']){if(_0x871118=_0x29d0cb,_0x871118){const _0x19e1ad=_0x871118[_0x58df('0x6')](()=>this[_0x58df('0x4f')](_0x3989e4));_0x275223[_0x58df('0xd')](_0x19e1ad),_0x871118['isResolved']&&this['_reconvertMarkers'](_0x3989e4);}else{const _0x3d79d6=this[_0x58df('0x45')](_0x3989e4);_0x3040a5[_0x58df('0x5')][_0x58df('0x40')](_0x1ac391=>{for(const _0x4c31b4 of _0x3d79d6)_0x1ac391[_0x58df('0x3e')](_0x4c31b4);});}}}),_0x871118);}[_0x58df('0x4b')](_0x5e0857,_0x48f532){const _0x3d65a1=this[_0x58df('0x16')](_0x5e0857,_0x48f532);_0x3d65a1&&!_0x3d65a1[_0x58df('0x39')]&&_0x3d65a1[_0x58df('0x31')]({'type':_0x58df('0x3'),'value':this[_0x58df('0x6e')](_0x48f532)});}}function Z(_0x3bf799,_0x33715b){return _0x33715b?_0x3bf799+':'+_0x33715b:_0x3bf799;}function tt(_0x4464dd){const _0x42ba47=_0x4464dd[_0x58df('0x13')](':');return{'group':_0x42ba47[0x0],'id':_0x42ba47[0x1],'part':_0x42ba47[0x2]};}function ot(_0x3d017b,_0x21aa0c){const _0x2b44f3=_0x21aa0c[_0x58df('0x78')],_0x3b74d5=_0x21aa0c[_0x58df('0x21')](_0x3d017b[_0x58df('0x10')]);for(const _0x5a85d5 of _0x3d017b[_0x58df('0x1b')]()){const {type:_0x2f9268,item:_0x2ffd87,nextPosition:_0x5e9e33}=_0x5a85d5;if(_0x58df('0x3')===_0x2f9268||_0x2b44f3[_0x58df('0x1a')](_0x2ffd87)){const _0x4baf7e=_0x21aa0c['createPositionBefore'](_0x2ffd87);_0x3b74d5[_0x58df('0x54')]&&(_0x3b74d5[_0x58df('0x10')]=_0x4baf7e),_0x3b74d5[_0x58df('0x5e')]=_0x5e9e33;}}return _0x3b74d5;}
|