@ckeditor/ckeditor5-comments 0.0.0-nightly-20231229.0 → 0.0.0-nightly-20231230.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 _0x1c3b=['_updateHeight','bindTemplate','ck-annotation-wrapper--active','fire','render','focus','set','mainView','Esc','focusTracker','listenTo','isActive','isDirty','setTemplate','ck-annotation-wrapper','destroy','content','_mutationObserver','add','element','clear','targetRect','div','height','keystrokes','detach'];(function(_0x3d6297,_0x1c3b90){const _0x284015=function(_0x23a853){while(--_0x23a853){_0x3d6297['push'](_0x3d6297['shift']());}};_0x284015(++_0x1c3b90);}(_0x1c3b,0x166));const _0x2840=function(_0x3d6297,_0x1c3b90){_0x3d6297=_0x3d6297-0x0;let _0x284015=_0x1c3b[_0x3d6297];return _0x284015;};import{View as _0x38b6f3}from'ckeditor5/src/ui.js';import{FocusTracker as _0x3a8963,KeystrokeHandler as _0x3903aa,uid as _0x1e9526}from'ckeditor5/src/utils.js';import _0x221828 from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0x38b6f3{constructor(_0x432037,_0x1ebbed){super(_0x432037),this['id']=_0x1e9526(),this[_0x2840('0xf')]=new _0x3a8963(),this[_0x2840('0x4')]=new _0x3903aa(),this['keystrokes'][_0x2840('0xc')](_0x2840('0xe'),(_0x1d7009,_0x3bcc5b)=>this[_0x2840('0x9')](_0x2840('0xe'),_0x3bcc5b)),this[_0x2840('0xc')](_0x2840('0x1'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x2840('0xc')](_0x2840('0x3'),0x0),this[_0x2840('0xc')](_0x2840('0x11'),!0x1),this['set'](_0x2840('0x12'),!0x1),this['set']('length',0x0),this['set']('type',''),this[_0x2840('0x17')]=_0x221828(()=>this[_0x2840('0x6')]()),this['content']=this['createCollection'](),this[_0x2840('0x16')][_0x2840('0x18')](_0x1ebbed),this[_0x2840('0xd')]=_0x1ebbed;const _0x3c9df3=this[_0x2840('0x7')];this[_0x2840('0x13')]({'tag':_0x2840('0x2'),'attributes':{'class':['ck',_0x2840('0x14'),'ck-rounded-corners',_0x3c9df3['if'](_0x2840('0x11'),_0x2840('0x8'))],'tabindex':-0x1},'children':this[_0x2840('0x16')]});}[_0x2840('0xa')](){super[_0x2840('0xa')](),this['focusTracker'][_0x2840('0x18')](this[_0x2840('0x19')]),this[_0x2840('0x4')][_0x2840('0x10')](this[_0x2840('0x19')]),this[_0x2840('0x17')]['attach'](this['element']);}[_0x2840('0x15')](){this['content'][_0x2840('0x0')](),this[_0x2840('0x4')][_0x2840('0x15')](),this[_0x2840('0xf')][_0x2840('0x15')](),this[_0x2840('0x17')][_0x2840('0x5')](),super[_0x2840('0x15')]();}[_0x2840('0xb')](){this[_0x2840('0x19')][_0x2840('0xb')]();}[_0x2840('0x6')](){const _0x2b3f40=this[_0x2840('0x19')]['clientHeight'];_0x2b3f40&&(this[_0x2840('0x3')]=_0x2b3f40);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15ae=['height','bottom','element','set','ck-sidebar-item','setTemplate','clear','destroy','render','clientHeight','bind','div','isAnimationDisabled','top','_mutationObserver','_targetTop','content','attach','createCollection','bindTemplate'];(function(_0x4c921e,_0x15ae58){const _0x1fedf0=function(_0x273903){while(--_0x273903){_0x4c921e['push'](_0x4c921e['shift']());}};_0x1fedf0(++_0x15ae58);}(_0x15ae,0x1a5));const _0x1fed=function(_0x4c921e,_0x15ae58){_0x4c921e=_0x4c921e-0x0;let _0x1fedf0=_0x15ae[_0x4c921e];return _0x1fedf0;};import{View as _0x510637}from'ckeditor5/src/ui.js';import{toUnit as _0xda5729}from'ckeditor5/src/utils.js';import _0x3cf5c3 from'../../utils/createmutationobserver.js';const Ht=_0xda5729('px');export default class C extends _0x510637{constructor(_0x59c63f){super(_0x59c63f),this[_0x1fed('0x2')](_0x1fed('0xc'),0x0),this['set'](_0x1fed('0x13'),0x0),this[_0x1fed('0x9')](_0x1fed('0x0'))['to'](this,_0x1fed('0xc'),this,'height',(_0x5d3cc1,_0x18ddda)=>_0x5d3cc1+_0x18ddda),this['set']('isAnimationDisabled',!0x1),this[_0x1fed('0xd')]=_0x3cf5c3(()=>this['updateHeight']()),this[_0x1fed('0xe')]=null,this['content']=this[_0x1fed('0x11')]();const _0x420b5c=this[_0x1fed('0x12')];this[_0x1fed('0x4')]({'tag':_0x1fed('0xa'),'attributes':{'class':[_0x1fed('0x3'),_0x420b5c['to'](_0x1fed('0xb'),_0x3438dc=>_0x3438dc?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x420b5c['to'](_0x1fed('0xc'),_0x586ab3=>Ht(_0x586ab3))}},'children':this['content']});}['render'](){super[_0x1fed('0x7')](),this[_0x1fed('0xd')][_0x1fed('0x10')](this[_0x1fed('0x1')]);}['updateHeight'](){const _0x5004d4=this[_0x1fed('0x1')][_0x1fed('0x8')];_0x5004d4&&(this['height']=_0x5004d4);}[_0x1fed('0x6')](){this[_0x1fed('0xf')][_0x1fed('0x5')](),this['_mutationObserver']['detach'](),super[_0x1fed('0x6')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5abd=['class','minHeight','bindTemplate','list','set','number','ck-sidebar','ck-reset'];(function(_0x717a4f,_0x5abd9d){const _0x3f8f67=function(_0x594d9d){while(--_0x594d9d){_0x717a4f['push'](_0x717a4f['shift']());}};_0x3f8f67(++_0x5abd9d);}(_0x5abd,0x81));const _0x3f8f=function(_0x717a4f,_0x5abd9d){_0x717a4f=_0x717a4f-0x0;let _0x3f8f67=_0x5abd[_0x717a4f];return _0x3f8f67;};import{View as _0xf140a3}from'ckeditor5/src/ui.js';import{toUnit as _0x3ab162}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x3ab162('px');export default class T extends _0xf140a3{constructor(_0x26a41f){super(_0x26a41f);const _0x59af4c=this[_0x3f8f('0x1')];this[_0x3f8f('0x3')](_0x3f8f('0x0'),0x0),this['set']('class',''),this['list']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x3f8f('0x5'),_0x3f8f('0x6'),_0x59af4c['to'](_0x3f8f('0x7'))],'style':{'minHeight':_0x59af4c['to'](_0x3f8f('0x0'),_0x34faed=>_0x3f8f('0x4')==typeof _0x34faed?Ht(_0x34faed+0xa):null)}},'children':this[_0x3f8f('0x2')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6da0=['register','ck-sidebar--wide','activeAnnotation','listenTo','_attachToContainer','remove','high','switchTo','refresh','WideSidebar','addAnnotation','removeEventListener','resize','set:container','refreshPositioning','focus','_integrateWithEditorAnnotations','destroy','EditorAnnotations','addEventListener','container','pluginName','add','_detachFromContainer','set','_refreshPositioningDebounced','widesidebar-detach-not-attached','stopListening','editors','rearrange','hasDomSelection','updateTargetRect','from','blur','_destroyEditorAnnotationsIntegration','plugins','setActiveAnnotation','annotations','context','detach','get','attach','wideSidebar','change:container','cancel','isAttached','stop','uiUpdate','_editorAnnotations','off'];(function(_0xc1e428,_0x6da0b6){const _0x9201b0=function(_0x1a17b3){while(--_0x1a17b3){_0xc1e428['push'](_0xc1e428['shift']());}};_0x9201b0(++_0x6da0b6);}(_0x6da0,0x96));const _0x9201=function(_0xc1e428,_0x6da0b6){_0xc1e428=_0xc1e428-0x0;let _0x9201b0=_0x6da0[_0xc1e428];return _0x9201b0;};import{ContextPlugin as _0x4ce22f,Context as _0x2291d4}from'ckeditor5/src/core.js';import _0x11e929 from'./annotationsuis.js';import _0x1ef597 from'./sidebar.js';import{CKEditorError as _0xf792c3,Collection as _0x3a9240}from'ckeditor5/src/utils.js';import{debounce as _0x5b170c}from'lodash-es';import _0x56ab02 from'./editorannotations.js';export default class n extends _0x4ce22f{static get['requires'](){return[_0x1ef597,_0x11e929];}static get[_0x9201('0x15')](){return _0x9201('0x9');}constructor(_0x52ba10){super(_0x52ba10),this['isAttached']=!0x1,this[_0x9201('0x18')](_0x9201('0x2'),null),this[_0x9201('0x25')]=null,this[_0x9201('0x30')]=new _0x3a9240(),this['_refreshPositioningDebounced']=_0x5b170c(()=>{this[_0x9201('0x25')]['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x4d24f7=this[_0x9201('0x26')]['plugins'][_0x9201('0x28')](_0x11e929),_0x3d3109=this[_0x9201('0x26')][_0x9201('0x23')][_0x9201('0x28')](_0x1ef597);_0x4d24f7[_0x9201('0x0')]('wideSidebar',this),_0x3d3109[_0x9201('0x14')]&&_0x4d24f7[_0x9201('0x7')](_0x9201('0x2a'));}[_0x9201('0x24')](_0x147161){if(_0x147161===this[_0x9201('0x2')])return;const _0x4ddac4=this[_0x9201('0x26')][_0x9201('0x23')][_0x9201('0x28')](_0x1ef597);_0x4ddac4['_activeAnnotation']=_0x147161;const _0x5c154b=this[_0x9201('0x2')];this[_0x9201('0x2')]=_0x147161,_0x4ddac4[_0x9201('0x8')]({'blurredAnnotation':_0x5c154b,'activatedAnnotation':this[_0x9201('0x2')]});}['attach'](_0x1e4be3){this[_0x9201('0x25')]=_0x1e4be3;const _0x209bc0=this['context'][_0x9201('0x23')][_0x9201('0x28')](_0x1ef597);if(_0x209bc0['_annotations']=_0x1e4be3,this[_0x9201('0x2d')])throw new _0xf792c3('widesidebar-attach-already-attached',this);this[_0x9201('0x2d')]=!0x0,this['listenTo'](_0x209bc0,_0x9201('0xd'),()=>{this[_0x9201('0x27')](),this[_0x9201('0x3')](_0x209bc0,_0x9201('0x2b'),_0x25a030=>{_0x25a030[_0x9201('0x31')](),this[_0x9201('0x29')](_0x1e4be3);});}),_0x209bc0[_0x9201('0x4')]({'viewClass':_0x9201('0x1')});const _0x5eccdf=_0x18d1b5=>{_0x18d1b5[_0x9201('0x1f')](),_0x209bc0[_0x9201('0xa')](_0x18d1b5);};for(const _0x355e02 of _0x1e4be3)_0x5eccdf(_0x355e02);this[_0x9201('0x3')](_0x1e4be3,_0x9201('0x16'),(_0x241ec3,_0x2d0ade)=>{_0x5eccdf(_0x2d0ade);}),this['listenTo'](_0x1e4be3,_0x9201('0x5'),(_0x1369ed,_0x29ef79,_0x4d2725)=>{_0x209bc0[_0x9201('0x1d')]({'removedAnnotation':_0x29ef79,'previousAnnotation':_0x1e4be3[_0x9201('0x28')](_0x4d2725-0x1),'nextAnnotation':_0x1e4be3[_0x9201('0x28')](_0x4d2725+0x1)}),_0x29ef79===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':_0x9201('0x6')}),this[_0x9201('0x3')](_0x1e4be3,_0x9201('0xf'),(_0x27e510,_0x132a4a)=>{this[_0x9201('0x24')](_0x132a4a);}),this[_0x9201('0x3')](_0x1e4be3,_0x9201('0x21'),()=>{this[_0x9201('0x24')](null);});const _0x1e9f01=this[_0x9201('0x26')]instanceof _0x2291d4?this[_0x9201('0x26')]['editors']:new _0x3a9240([this['context']]);for(const _0x5a72a6 of _0x1e9f01)this['_integrateWithEditorAnnotations'](_0x5a72a6);this[_0x9201('0x3')](_0x1e9f01,'add',(_0x564c9f,_0x373de2)=>{this['listenTo'](_0x373de2,'ready',()=>{this[_0x9201('0x10')](_0x373de2);});}),this['listenTo'](_0x1e9f01,_0x9201('0x5'),(_0x2759e9,_0xac60d)=>{_0xac60d[_0x9201('0x23')]['has']('EditorAnnotations')&&this[_0x9201('0x22')](_0xac60d[_0x9201('0x23')][_0x9201('0x28')](_0x9201('0x12')));}),window[_0x9201('0x13')](_0x9201('0xc'),this[_0x9201('0x19')]),this[_0x9201('0x25')][_0x9201('0xe')]();}[_0x9201('0x27')](){if(!this[_0x9201('0x2d')])throw new _0xf792c3(_0x9201('0x1a'),this);this[_0x9201('0x24')](null);const _0x2873d0=this[_0x9201('0x26')][_0x9201('0x23')]['get'](_0x1ef597);_0x2873d0[_0x9201('0x17')](this[_0x9201('0x25')]),this[_0x9201('0x1b')](_0x2873d0),this['stopListening'](this[_0x9201('0x25')]),this['context']instanceof _0x2291d4&&this[_0x9201('0x1b')](this['context'][_0x9201('0x1c')]);for(const _0x1bbe57 of Array[_0x9201('0x20')](this[_0x9201('0x30')]))this['_destroyEditorAnnotationsIntegration'](_0x1bbe57);window[_0x9201('0xb')](_0x9201('0xc'),this['_refreshPositioningDebounced']),this[_0x9201('0x19')][_0x9201('0x2c')](),this[_0x9201('0x2')]=null,this[_0x9201('0x2d')]=!0x1,this['annotations']=null;}[_0x9201('0x11')](){this[_0x9201('0x2d')]&&this[_0x9201('0x27')]();}['_integrateWithEditorAnnotations'](_0xd0d22){const _0x5cd3e3=_0xd0d22[_0x9201('0x23')]['get'](_0x56ab02);if(!_0x5cd3e3)return;const _0x868fc6=()=>{const _0x39ecf1=_0x5cd3e3['getOrderedSelectedAnnotations']({'annotations':this[_0x9201('0x25')],'activeAnnotation':this[_0x9201('0x2')]});this[_0x9201('0x24')](_0x39ecf1[0x0]||null);};this[_0x9201('0x3')](_0x5cd3e3,_0x9201('0x8'),_0x868fc6),this[_0x9201('0x3')](_0x5cd3e3,'blur',(_0xed4bd2,{isAnnotationTracked:_0x48255b})=>{this[_0x9201('0x2')]&&_0x48255b(this['activeAnnotation'])&&this[_0x9201('0x24')](null);}),this[_0x9201('0x3')](_0x5cd3e3,_0x9201('0x2f'),()=>{this[_0x9201('0x19')]();}),this[_0x9201('0x3')](this[_0x9201('0x25')],_0x9201('0x21'),_0x1ed056=>{_0x5cd3e3[_0x9201('0x1e')]()&&(_0x868fc6(),_0x1ed056[_0x9201('0x2e')]());},{'priority':'high'}),this['_editorAnnotations'][_0x9201('0x16')](_0x5cd3e3);}[_0x9201('0x22')](_0x36618f){this[_0x9201('0x1b')](_0x36618f),this[_0x9201('0x30')][_0x9201('0x5')](_0x36618f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xdb95=['end','getLastMatchingPosition','_itemIsContent','push','execute','getRanges','selection','editor','_trimToContent','_hasContent','document','item','isEnabled','schema','addMarker','isObject','backward','getItems','comment:','$textProxy','change','model'];(function(_0x9e8f35,_0xdb959a){const _0x22b887=function(_0x2436d2){while(--_0x2436d2){_0x9e8f35['push'](_0x9e8f35['shift']());}};_0x22b887(++_0xdb959a);}(_0xdb95,0x8d));const _0x22b8=function(_0x9e8f35,_0xdb959a){_0x9e8f35=_0x9e8f35-0x0;let _0x22b887=_0xdb95[_0x9e8f35];return _0x22b887;};import{Command as _0x4380d7}from'ckeditor5/src/core.js';import{uid as _0x4a840f}from'ckeditor5/src/utils.js';export default class G extends _0x4380d7{['refresh'](){const _0xea40b4=this[_0x22b8('0x14')][_0x22b8('0xc')][_0x22b8('0x1')][_0x22b8('0x13')];for(const _0xdd7bd1 of _0xea40b4[_0x22b8('0x12')]())if(this[_0x22b8('0x0')](_0xdd7bd1))return void(this[_0x22b8('0x3')]=!0x0);this['isEnabled']=!0x1;}[_0x22b8('0x11')]({threadId:_0x429ad7=_0x4a840f()}={}){const _0x336d37=this[_0x22b8('0x14')][_0x22b8('0xc')],_0x2befad=[];for(const _0x27d508 of _0x336d37[_0x22b8('0x1')][_0x22b8('0x13')]['getRanges']())this[_0x22b8('0x0')](_0x27d508)&&_0x2befad[_0x22b8('0x10')](this[_0x22b8('0x15')](_0x27d508));_0x336d37[_0x22b8('0xb')](_0x21bc4f=>{for(const _0x3d7617 of _0x2befad){const _0x313cad=_0x4a840f()['substr'](0x1,0x5),_0x3f9ac3=_0x22b8('0x9')+_0x429ad7+':'+_0x313cad;_0x21bc4f[_0x22b8('0x5')](_0x3f9ac3,{'range':_0x3d7617,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x22b8('0x0')](_0x4d8dfb){for(const _0x42b149 of _0x4d8dfb[_0x22b8('0x8')]())if(this['_itemIsContent'](_0x42b149))return!0x0;return!0x1;}[_0x22b8('0xf')](_0x1fdfc8){return _0x1fdfc8['is'](_0x22b8('0xa'))||this[_0x22b8('0x14')]['model'][_0x22b8('0x4')][_0x22b8('0x6')](_0x1fdfc8)&&!_0x1fdfc8['is']('element','tableCell');}[_0x22b8('0x15')](_0x402f3b){const _0x3e8a1c=_0x2bc99a=>!this['_itemIsContent'](_0x2bc99a[_0x22b8('0x2')]),_0x5bd7c1=_0x402f3b['start'][_0x22b8('0xe')](_0x3e8a1c),_0x426e12=_0x402f3b[_0x22b8('0xd')][_0x22b8('0xe')](_0x3e8a1c,{'direction':_0x22b8('0x7')});return this[_0x22b8('0x14')]['model']['createRange'](_0x5bd7c1,_0x426e12);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56ce=['_calculatePosition','CommentsArchive','archivedAt','collection','init','plugins','has','focus','get','archivedThreads','removeCommentThread','remove','length','stopListening','findIndex','add','addCommentThread','listenTo','isActive','context','getCommentThread'];(function(_0x2e9443,_0x56ce35){const _0x4120b3=function(_0x3e8428){while(--_0x3e8428){_0x2e9443['push'](_0x2e9443['shift']());}};_0x4120b3(++_0x56ce35);}(_0x56ce,0x127));const _0x4120=function(_0x2e9443,_0x56ce35){_0x2e9443=_0x2e9443-0x0;let _0x4120b3=_0x56ce[_0x2e9443];return _0x4120b3;};import{ContextPlugin as _0x4653f4}from'ckeditor5/src/core.js';import{Collection as _0x293273}from'ckeditor5/src/utils.js';import _0x414c5a from'./commentsrepository.js';import _0x2ed6e2 from'../annotations/annotations.js';export default class p extends _0x4653f4{static get['pluginName'](){return _0x4120('0x0');}static get['requires'](){return[_0x414c5a,_0x2ed6e2];}constructor(_0x41a15d){super(_0x41a15d),this[_0x4120('0x8')]=new _0x293273();}[_0x4120('0x3')](){const _0xf512f=this[_0x4120('0x12')],_0x44668d=_0xf512f[_0x4120('0x4')][_0x4120('0x7')](_0x414c5a),_0x2321ea=_0xf512f[_0x4120('0x4')][_0x4120('0x7')](_0x2ed6e2);this[_0x4120('0x10')](_0x44668d,_0x4120('0xf'),(_0x5dfd8e,{threadId:_0x3b4386})=>{const _0x8bfe51=_0x44668d[_0x4120('0x13')](_0x3b4386);_0x8bfe51['archivedAt']&&this[_0x4120('0x8')][_0x4120('0xe')](_0x8bfe51,this[_0x4120('0x14')](_0x8bfe51[_0x4120('0x1')])),this[_0x4120('0x10')](_0x8bfe51,'change:archivedAt',(_0x1f8577,_0xd0d02c,_0x381f99)=>{_0x381f99?this[_0x4120('0x8')][_0x4120('0x5')](_0x8bfe51)||this[_0x4120('0x8')]['add'](_0x8bfe51,this[_0x4120('0x14')](_0x8bfe51[_0x4120('0x1')])):this[_0x4120('0x8')][_0x4120('0x5')](_0x8bfe51)&&this[_0x4120('0x8')][_0x4120('0xa')](_0x8bfe51);});}),this['listenTo'](_0x44668d,_0x4120('0x9'),(_0x215cdd,{threadId:_0x3bb613})=>{const _0x4bada8=_0x44668d[_0x4120('0x13')](_0x3bb613);this[_0x4120('0xc')](_0x4bada8),this['archivedThreads']['has'](_0x4bada8)&&this[_0x4120('0x8')][_0x4120('0xa')](_0x4bada8);},{'priority':'highest'}),this[_0x4120('0x10')](_0x2321ea[_0x4120('0x2')],_0x4120('0x6'),(_0x17bb61,_0x14663a)=>{_0x14663a[_0x4120('0x11')]=!0x0,_0x2321ea['activate'](_0x14663a);});}[_0x4120('0x14')](_0x1afe4e){const _0x1b2d2d=[...this[_0x4120('0x8')]][_0x4120('0xd')](_0xac6e94=>_0xac6e94['archivedAt']<_0x1afe4e);return _0x1b2d2d>-0x1?_0x1b2d2d:this['archivedThreads'][_0x4120('0xb')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52c1=['classList','editor','focusTracker','archivedThreads','plugins','set','_calculatePosition','length','config','indexOf','change:isOpen','commentsArchive','collaboration.channelId','collection','find','findIndex','locale','getByInnerView','CommentsArchiveUI','annotationViews','buttonView','listenTo','get','contains','panelView','mainView','componentFactory','_threadToController','channelId','add','children','_pendingThreads','ck-body','_visibleAnnotations','ck-comments-archive-dropdown','pluginName','requires','_createArchiveUIDropdown','Annotations','COMMENTS_ARCHIVE','remove','CommentsRepository','position','view','innerView','filter','commentsArchiveView','_handleAnnotationFocusableElements','focusableElements'];(function(_0x24d7e1,_0x52c12d){const _0x4c02b8=function(_0x104d40){while(--_0x104d40){_0x24d7e1['push'](_0x24d7e1['shift']());}};_0x4c02b8(++_0x52c12d);}(_0x52c1,0xfe));const _0x4c02=function(_0x24d7e1,_0x52c12d){_0x24d7e1=_0x24d7e1-0x0;let _0x4c02b8=_0x52c1[_0x24d7e1];return _0x4c02b8;};import'../../theme/commentsarchive.css';import{Plugin as _0x5a292d}from'ckeditor5/src/core.js';import{createDropdown as _0x4f76fd,ViewCollection as _0x1274ae}from'ckeditor5/src/ui.js';import _0x1b6fc9 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x4d1b6c}from'../utils/common-translations.js';import _0x103a9d from'./ui/view/commentsarchiveview.js';import _0x4df3e6 from'./commentsarchive.js';export default class a extends _0x5a292d{static get[_0x4c02('0x1a')](){return _0x4c02('0x9');}static get[_0x4c02('0x1b')](){return[_0x4df3e6];}constructor(_0x548951){super(_0x548951),this[_0x4c02('0xa')]=new _0x1274ae(),this['_pendingThreads']=[];}['init'](){this[_0x4c02('0x29')]['ui'][_0x4c02('0x11')][_0x4c02('0x14')](_0x4c02('0x2'),()=>this['_createArchiveUIDropdown']());const _0x2bf59e=this[_0x4c02('0x29')][_0x4c02('0x2c')]['get'](_0x4df3e6),_0xc1253d=this[_0x4c02('0x29')][_0x4c02('0x2c')][_0x4c02('0xd')](_0x4c02('0x1d')),_0x4fc434=this[_0x4c02('0x29')][_0x4c02('0x2c')][_0x4c02('0xd')](_0x4c02('0x20'));this[_0x4c02('0xc')](_0x2bf59e['archivedThreads'],_0x4c02('0x14'),(_0x3cf5e1,_0x10f2f5)=>{const _0x20271d=this[_0x4c02('0x29')][_0x4c02('0x30')]['get']('collaboration.channelId');if(!_0x20271d||_0x10f2f5[_0x4c02('0x13')]===_0x20271d){const _0x4f7224=this[_0x4c02('0x2e')](_0x10f2f5['archivedAt']),_0x43ecc0=_0x4fc434['_threadToController']['get'](_0x10f2f5);if(!_0x43ecc0)return void this[_0x4c02('0x16')]['push']({'thread':_0x10f2f5,'position':_0x4f7224});const _0x4bf65e=_0xc1253d[_0x4c02('0x8')](_0x43ecc0[_0x4c02('0x22')]);_0x4bf65e['isVisible']&&_0xc1253d[_0x4c02('0x18')][_0x4c02('0x1f')](_0x4bf65e),this[_0x4c02('0xa')][_0x4c02('0x14')](_0x4bf65e[_0x4c02('0x22')],_0x4f7224);}}),this[_0x4c02('0xc')](_0xc1253d[_0x4c02('0x4')],_0x4c02('0x14'),(_0x121299,_0x51d879)=>{const _0x3ac4b5=this['_pendingThreads'][_0x4c02('0x5')](({thread:_0x305b7b})=>{const _0x3657f7=_0x4fc434['_threadToController']['get'](_0x305b7b);return _0x3657f7&&_0x51d879[_0x4c02('0x23')]===_0x3657f7['view'];});_0x3ac4b5&&(this[_0x4c02('0xa')][_0x4c02('0x14')](_0x51d879[_0x4c02('0x22')],_0x3ac4b5[_0x4c02('0x21')]),this[_0x4c02('0x16')]['splice'](this[_0x4c02('0x16')][_0x4c02('0x0')](_0x3ac4b5),0x1));}),this[_0x4c02('0xc')](_0x2bf59e[_0x4c02('0x2b')],_0x4c02('0x1f'),(_0x24f763,_0x1966d3)=>{const _0x3c2ac1=this[_0x4c02('0x29')][_0x4c02('0x30')][_0x4c02('0xd')]('collaboration.channelId');if(!_0x3c2ac1||_0x1966d3[_0x4c02('0x13')]===_0x3c2ac1){const _0x340cc5=_0x4fc434[_0x4c02('0x12')]['get'](_0x1966d3),_0x34307b=_0xc1253d['getByInnerView'](_0x340cc5['view']);this['annotationViews'][_0x4c02('0x1f')](_0x34307b['view']),this['stopListening'](_0x34307b[_0x4c02('0x27')]);}});}['_handleAnnotationFocusableElements'](_0x4f159a,_0x2275db){for(const _0x2d1a78 of _0x2275db[_0x4c02('0x27')])_0x2d1a78[_0x4c02('0x28')][_0x4c02('0xe')](_0x4c02('0x17'))&&_0x4f159a['focusTracker'][_0x4c02('0x14')](_0x2d1a78);this[_0x4c02('0xc')](_0x2275db[_0x4c02('0x27')],_0x4c02('0x14'),(_0x3a7144,_0x3dce28)=>{_0x3dce28[_0x4c02('0x28')][_0x4c02('0xe')](_0x4c02('0x17'))&&_0x4f159a[_0x4c02('0x2a')][_0x4c02('0x14')](_0x3dce28);}),this[_0x4c02('0xc')](_0x2275db[_0x4c02('0x27')],_0x4c02('0x1f'),(_0x4daffa,_0x21ec02)=>{_0x21ec02[_0x4c02('0x28')][_0x4c02('0xe')]('ck-body')&&_0x4f159a[_0x4c02('0x2a')][_0x4c02('0x1f')](_0x21ec02);});}[_0x4c02('0x2e')](_0x3fef94){const _0x2bf018=this[_0x4c02('0x29')][_0x4c02('0x30')][_0x4c02('0xd')](_0x4c02('0x3')),_0x3d0976=[...this[_0x4c02('0x29')]['plugins']['get'](_0x4df3e6)[_0x4c02('0x2b')]][_0x4c02('0x24')](_0x552e34=>_0x552e34[_0x4c02('0x13')]===_0x2bf018)[_0x4c02('0x6')](_0x4cc48a=>_0x4cc48a['archivedAt']<_0x3fef94);return _0x3d0976>-0x1?_0x3d0976-0x1:this[_0x4c02('0xa')][_0x4c02('0x2f')];}[_0x4c02('0x1c')](){const _0x5575bd=this[_0x4c02('0x29')],_0x4f97fb=this['editor'][_0x4c02('0x2c')][_0x4c02('0xd')]('Annotations'),_0x1551d9=_0x4f76fd(_0x5575bd[_0x4c02('0x7')]);_0x1551d9[_0x4c02('0xb')][_0x4c02('0x2d')]({'icon':_0x1b6fc9,'label':_0x4d1b6c(_0x5575bd['locale'],_0x4c02('0x1e')),'tooltip':!0x0}),_0x1551d9[_0x4c02('0xf')]['extendTemplate']({'attributes':{'class':_0x4c02('0x19')}}),_0x1551d9['on'](_0x4c02('0x1'),(_0x5d090b,_0x3c1b9f,_0x3773a4)=>{this[_0x4c02('0x25')]||(this[_0x4c02('0x25')]=new _0x103a9d(_0x5575bd[_0x4c02('0x7')],this[_0x4c02('0xa')])),_0x3773a4?_0x1551d9['panelView'][_0x4c02('0x15')][_0x4c02('0x14')](this['commentsArchiveView']):_0x1551d9[_0x4c02('0xf')][_0x4c02('0x15')][_0x4c02('0x1f')](this[_0x4c02('0x25')]);});for(const _0x3d0ce3 of this[_0x4c02('0xa')]){const _0x1ebcc6=_0x4f97fb[_0x4c02('0x8')](_0x3d0ce3[_0x4c02('0x10')]);this['_handleAnnotationFocusableElements'](_0x1551d9,_0x1ebcc6);}return _0x1551d9[_0x4c02('0xc')](this[_0x4c02('0xa')],_0x4c02('0x14'),(_0x4968f0,_0x493121)=>{const _0x3f8dc1=_0x4f97fb['getByInnerView'](_0x493121[_0x4c02('0x10')]);this[_0x4c02('0x26')](_0x1551d9,_0x3f8dc1);}),_0x1551d9['listenTo'](this['annotationViews'],_0x4c02('0x1f'),(_0x479049,_0x8533a8)=>{const _0x15f818=_0x4f97fb['getByInnerView'](_0x8533a8['mainView']);for(const _0x52830b of _0x15f818[_0x4c02('0x27')])_0x52830b[_0x4c02('0x28')][_0x4c02('0xe')](_0x4c02('0x17'))&&_0x1551d9[_0x4c02('0x2a')][_0x4c02('0x1f')](_0x52830b);}),_0x1551d9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1c96=['clear','startsWith','low','editor','markerName','_handleMarkerAddAndRemove','markerToHighlight','registerAnnotation','from','getItems','model','root','context','_attachResolvedThread','_reconvertMarkers','getByInnerView','getCommentThread','change:activeMarker','delete','_threadToController','removeCommentThread','_getTextContext','getAttribute','ENTER_COMMENT_ANNOUNCEMENT','commands','data','isAttached','consume','$graveyard','for','openNewCommentThread','ready','removeMarker:','document','rootName','_initAriaMarkerChangeAnnouncements','hasMarkerForId','substring','collaboration.channelId','ariaLiveAnnouncer','fetchCommentThread','reopenCommentThread','comment:','_handleThreadMarker','activeMarker','start','conversion','add','schema','requires','addMarker:','markers','ignoreResolvedComments','size','isCollapsed','isResolved','_detachCommentThread','addComment','dataDowncast','$textProxy','change:isReadOnly','ck-comment-marker--active','newRange','item','setContext','join','ck-comment-marker','destroyed','name','announce','text','enqueueChange','config','isLocal','createRange','set','$marker','createElement','_threads','dataToMarker','length','push','destroy','scrollToThreadMarker','editing','isObject','end','editingDowncast','init','reconvertMarker','setUnlinkedAt','locale','isEqual','affectsData','getAllMarkersForId','pluginName','get','listenTo','render','hasDomSelection','resolveCommentThread','group','getRange','hasCommentThread','_attachMarkerToThread','differ','focus','getChangedMarkers','once','comments','CommentsEditing','createPositionBefore','split','refreshVisibility','plugins','removeMarker','isThreadsLoadingPaused','_hasTargetInContent','comment','change:isThreadsLoadingPaused','unlinkedAt','view','switchReadOnly','change','addCommentThread','consumable','_getTargetForId'];(function(_0x53d002,_0x1c9673){const _0x25e3b4=function(_0x23e75a){while(--_0x23e75a){_0x53d002['push'](_0x53d002['shift']());}};_0x25e3b4(++_0x1c9673);}(_0x1c96,0x1c4));const _0x25e3=function(_0x53d002,_0x1c9673){_0x53d002=_0x53d002-0x0;let _0x25e3b4=_0x1c96[_0x53d002];return _0x25e3b4;};import{Plugin as _0x5a4b36}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x427975}from'ckeditor5/src/utils.js';import _0x3de9b from'./commentsrepository.js';import _0x467dc1 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x40b203,getAllMarkersDomElementsSorted as _0x45fe43}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x21e1f2 from'../annotations/editorannotations.js';import _0x5538c9 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0xa6a4d1 from'./integrations/importword.js';import _0x130beb from'../annotations/annotations.js';import{getTranslation as _0x32a8de}from'../utils/common-translations.js';export default class r extends _0x5a4b36{static get[_0x25e3('0x69')](){return[_0x3de9b,_0x21e1f2,_0x5538c9,_0xa6a4d1];}static get[_0x25e3('0x18')](){return _0x25e3('0x27');}constructor(_0x4a3673){super(_0x4a3673),this[_0x25e3('0x4')](_0x25e3('0x2d'),!0x0),_0x4a3673['data']['once'](_0x25e3('0x57'),()=>this[_0x25e3('0x2d')]=!0x1),this[_0x25e3('0x4')]('activeMarker',null),this['on'](_0x25e3('0x49'),(_0x246617,_0x39bf51,_0xb536f7,_0x565eb6)=>{const _0x4a53f7=_0xb536f7?ot(_0xb536f7)['id']:null;if(_0x4a3673[_0x25e3('0x42')][_0x25e3('0x34')](()=>{if(_0x4a53f7){const _0x52f629=this['getAllMarkersForId'](_0x4a53f7);for(const _0x2c9734 of _0x52f629)_0x4a3673[_0x25e3('0xd')][_0x25e3('0x12')](_0x2c9734);}if(_0x565eb6){const {id:_0x2ecf9e}=ot(_0x565eb6),_0x225eed=this[_0x25e3('0x17')](_0x2ecf9e);for(const _0x2300f5 of _0x225eed)_0x4a3673[_0x25e3('0xd')][_0x25e3('0x12')](_0x2300f5);}}),_0x4a53f7){const _0x35b2dd=_0x4a3673[_0x25e3('0x2b')][_0x25e3('0x19')](_0x3de9b)['getCommentThread'](_0x4a53f7);_0x35b2dd&&_0x35b2dd[_0x25e3('0x6f')]&&this[_0x25e3('0xc')](_0x4a53f7);}}),this[_0x25e3('0x5b')]();}[_0x25e3('0x11')](){const _0x1ffed5=this['editor'],_0x5e73d9=_0x1ffed5[_0x25e3('0x2b')][_0x25e3('0x19')](_0x3de9b),_0x42d341=_0x1ffed5['config'][_0x25e3('0x19')](_0x25e3('0x5e'));_0x1ffed5[_0x25e3('0x50')]['add'](_0x25e3('0x35'),new _0x467dc1(_0x1ffed5)),this[_0x25e3('0x1a')](_0x1ffed5,_0x25e3('0x74'),(_0x54b453,_0x1db391,_0x3ac644)=>{_0x5e73d9[_0x25e3('0x33')](_0x3ac644,_0x1ffed5[_0x25e3('0x1')][_0x25e3('0x19')](_0x25e3('0x5e')));}),this['listenTo'](_0x5e73d9,tt(_0x25e3('0x35'),_0x42d341),(_0x236c04,{threadId:_0x3fde03})=>{const _0x234443=this[_0x25e3('0x3b')][_0x25e3('0x2b')][_0x25e3('0x19')](_0x3de9b)['getCommentThread'](_0x3fde03);_0x234443&&_0x234443['archivedAt']&&this['_attachResolvedThread'](_0x3fde03);}),this[_0x25e3('0x1a')](_0x5e73d9,tt(_0x25e3('0x4c'),_0x42d341),(_0x4d5cd5,{threadId:_0x4b0a2e})=>{_0x1ffed5['model'][_0x25e3('0x0')]({'isUndoable':!0x1},_0x550ef7=>{const _0x47d8c8=this[_0x25e3('0x17')](_0x4b0a2e);for(const _0x14538b of _0x47d8c8)_0x550ef7[_0x25e3('0x2c')](_0x14538b);});}),this[_0x25e3('0x1a')](_0x5e73d9,tt(_0x25e3('0x1d'),_0x42d341),(_0x1528b4,{threadId:_0x212da4})=>{(this[_0x25e3('0x45')](_0x212da4),this['_reconvertMarkers'](_0x212da4),this[_0x25e3('0x3b')][_0x25e3('0xd')][_0x25e3('0x32')][_0x25e3('0x1c')])&&(this[_0x25e3('0x3b')][_0x25e3('0x2b')]['get'](_0x3de9b)['getCommentThread'](_0x212da4)[_0x25e3('0x31')]||this[_0x25e3('0x3b')][_0x25e3('0xd')][_0x25e3('0x32')][_0x25e3('0x23')]());},{'priority':_0x25e3('0x3a')}),this[_0x25e3('0x1a')](_0x5e73d9,tt(_0x25e3('0x61'),_0x42d341),(_0x2c61a9,{threadId:_0x2e9890})=>{this[_0x25e3('0x46')](_0x2e9890);},{'priority':_0x25e3('0x3a')}),this['listenTo'](_0x5e73d9,tt(_0x25e3('0x71'),_0x42d341),(_0x5cfcc7,{threadId:_0x21c774,isFromAdapter:_0x49930f})=>{const _0x4d3f50=this[_0x25e3('0x17')](_0x21c774);if(_0x49930f||0x0==_0x4d3f50[_0x25e3('0x9')]||!_0x5e73d9[_0x25e3('0x20')](_0x21c774))return;0x1===_0x5e73d9[_0x25e3('0x48')](_0x21c774)[_0x25e3('0x9')]&&_0x1ffed5[_0x25e3('0x42')][_0x25e3('0x0')]({'isUndoable':!0x1},_0xdbc5b3=>{for(const _0x233ffb of _0x4d3f50)_0xdbc5b3['updateMarker'](_0x233ffb,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x25e3('0x3a')}),this['_initializeMarkerConverters'](),this[_0x25e3('0x3d')]();}[_0x25e3('0xb')](){const _0x104d32=this['editor'][_0x25e3('0x2b')][_0x25e3('0x19')](_0x3de9b),_0x52e14f=this[_0x25e3('0x3b')]['config'][_0x25e3('0x19')](_0x25e3('0x5e'));for(const _0x5c1384 of _0x104d32['getCommentThreads']({'channelId':_0x52e14f}))_0x104d32[_0x25e3('0x70')](_0x5c1384['id']),_0x104d32[_0x25e3('0x7')][_0x25e3('0x4a')](_0x5c1384['id']);super[_0x25e3('0xb')]();}[_0x25e3('0x5c')](_0x5e3b9a){return this[_0x25e3('0x17')](_0x5e3b9a)['length']>0x0;}[_0x25e3('0x17')](_0x5d2093){const _0x4897b9=[];for(const _0x5236ef of this['editor'][_0x25e3('0x42')][_0x25e3('0x6b')])_0x5236ef['name'][_0x25e3('0x39')](_0x25e3('0x62')+_0x5d2093)&&_0x4897b9[_0x25e3('0xa')](_0x5236ef);return _0x4897b9;}[_0x25e3('0xc')](_0x3cb00b){const _0xebfb1e=this[_0x25e3('0x37')](_0x3cb00b);_0xebfb1e&&setTimeout(()=>{this[_0x25e3('0x64')]&&ot(this[_0x25e3('0x64')])['id']===_0x3cb00b&&_0x427975({'target':_0xebfb1e[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x1b6bd4){this['editor'][_0x25e3('0x42')][_0x25e3('0x34')](()=>{for(const _0x4e3679 of this[_0x25e3('0x17')](_0x1b6bd4))this[_0x25e3('0x3b')][_0x25e3('0xd')][_0x25e3('0x12')](_0x4e3679);});}[_0x25e3('0x45')](_0x54bed0){const _0x51cda8=this['editor'][_0x25e3('0x2b')][_0x25e3('0x19')](_0x3de9b),_0x436eda=this['editor'][_0x25e3('0x2b')][_0x25e3('0x19')](_0x21e1f2),_0x17a1a3=_0x51cda8[_0x25e3('0x48')](_0x54bed0);if(!_0x17a1a3[_0x25e3('0x52')]){const _0x58e346=_0x17a1a3['attachTo'](()=>this[_0x25e3('0x37')](_0x17a1a3['id']));_0x436eda[_0x25e3('0x3f')](_0x58e346),_0x17a1a3[_0x25e3('0x2e')]=!0x1;}}['_initializeMarkerConverters'](){const _0x3b4bcf=this[_0x25e3('0x3b')];_0x3b4bcf[_0x25e3('0x66')][_0x25e3('0x55')](_0x25e3('0x10'))[_0x25e3('0x3e')]({'model':_0x25e3('0x2f'),'view':(_0x248f22,_0x562e73)=>{const {id:_0x243b3e}=ot(_0x248f22['markerName']),_0x2bb26f=_0x3b4bcf['plugins'][_0x25e3('0x19')](_0x3de9b)[_0x25e3('0x48')](_0x243b3e),_0x3b32dd=this['activeMarker']&&ot(this['activeMarker'])['id']===_0x243b3e;if(_0x2bb26f&&_0x2bb26f[_0x25e3('0x6f')]&&!_0x3b32dd&&_0x248f22[_0x25e3('0x77')])return _0x562e73[_0x25e3('0x36')]['consume'](_0x248f22[_0x25e3('0x77')],_0x25e3('0x6a')+_0x248f22[_0x25e3('0x3c')]),_0x562e73[_0x25e3('0x36')][_0x25e3('0x53')](_0x248f22[_0x25e3('0x77')],_0x25e3('0x58')+_0x248f22['markerName']),{'classes':[]};const _0x1b4fcf=[_0x25e3('0x7a')];return _0x3b32dd&&_0x1b4fcf[_0x25e3('0xa')](_0x25e3('0x75')),{'classes':_0x1b4fcf,'attributes':{'data-comment':_0x243b3e}};}}),_0x3b4bcf[_0x25e3('0x66')]['for'](_0x25e3('0x72'))['markerToData']({'model':'comment','view':(_0x1fb1bd,{options:_0x363d2e})=>{const _0x963a52=_0x3b4bcf['plugins'][_0x25e3('0x19')](_0x3de9b),_0x5f2f0f=_0x3b4bcf[_0x25e3('0x42')]['markers'][_0x25e3('0x19')](_0x1fb1bd),{id:_0x442ff2,part:_0x137962}=ot(_0x1fb1bd);if(_0x5f2f0f&&!_0x5f2f0f[_0x25e3('0x16')])return null;if(_0x363d2e[_0x25e3('0x6c')]){const _0x5c5fbf=_0x963a52[_0x25e3('0x48')](_0x442ff2);if(_0x5c5fbf&&_0x5c5fbf[_0x25e3('0x6f')])return null;}return{'group':_0x25e3('0x2f'),'name':_0x137962?_0x442ff2+':'+_0x137962:_0x442ff2};}}),_0x3b4bcf[_0x25e3('0x66')]['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x5b5d7d,{writer:_0x28770f})=>_0x28770f[_0x25e3('0x6')](_0x25e3('0x5'),{'data-name':'comment:'+_0x5b5d7d[_0x25e3('0x4e')]('id')})}),_0x3b4bcf[_0x25e3('0x66')][_0x25e3('0x55')]('upcast')[_0x25e3('0x8')]({'view':_0x25e3('0x2f')});}['_handleMarkerAddAndRemove'](){const _0x2122e5=this[_0x25e3('0x3b')],_0x5c0639=_0x2122e5['plugins']['get'](_0x3de9b),_0x5b528e=new Set(),_0x54135d=new Set();_0x2122e5[_0x25e3('0x42')][_0x25e3('0x59')]['registerPostFixer'](_0x192a7c=>{let _0x3f77cc=!0x1;for(const {name:_0x2452f0,data:_0x522cea}of _0x2122e5['model'][_0x25e3('0x59')][_0x25e3('0x22')][_0x25e3('0x24')]()){const {group:_0x20ec71,id:_0x2e73e1}=ot(_0x2452f0);let _0x4c63a2=_0x522cea[_0x25e3('0x76')];if(_0x25e3('0x2f')!==_0x20ec71||!_0x4c63a2)continue;const _0x10d467=_0x25e3('0x54')===_0x4c63a2[_0x25e3('0x43')][_0x25e3('0x5a')];_0x10d467||(_0x4c63a2=et(_0x4c63a2,_0x2122e5[_0x25e3('0x42')]),!_0x4c63a2||_0x4c63a2[_0x25e3('0x6e')]||!_0x522cea[_0x25e3('0x76')]||_0x4c63a2[_0x25e3('0x15')](_0x522cea[_0x25e3('0x76')]))?_0x2122e5[_0x25e3('0x42')]['hasContent'](_0x4c63a2)&&!_0x10d467?this[_0x25e3('0x2d')]?_0x5b528e[_0x25e3('0x67')](_0x2452f0):this[_0x25e3('0x63')](_0x2452f0,_0x2e73e1):(_0x54135d[_0x25e3('0x67')](_0x2452f0),_0x5b528e[_0x25e3('0x4a')](_0x2452f0),_0x192a7c[_0x25e3('0x2c')](_0x2452f0),_0x3f77cc=!0x0):(_0x192a7c['updateMarker'](_0x2452f0,{'range':_0x4c63a2}),_0x3f77cc=!0x0);}return _0x3f77cc;}),this['on'](_0x25e3('0x30'),(_0x4edabf,_0x1032f6,_0x5ab8b8)=>{if(!_0x5ab8b8&&_0x5b528e[_0x25e3('0x6d')])for(const _0x7d7d10 of _0x5b528e){const {id:_0x1122e2}=ot(_0x7d7d10);_0x5b528e[_0x25e3('0x4a')](_0x7d7d10),_0x2122e5['model'][_0x25e3('0x6b')][_0x25e3('0x19')](_0x7d7d10)&&this[_0x25e3('0x63')](_0x7d7d10,_0x1122e2);}}),this['listenTo'](_0x2122e5[_0x25e3('0x42')]['document'],_0x25e3('0x34'),(_0x58b99,_0x4e3661)=>{for(const {name:_0x2cc9ee,data:{newRange:_0x42417d}}of _0x2122e5[_0x25e3('0x42')][_0x25e3('0x59')][_0x25e3('0x22')][_0x25e3('0x24')]()){const {group:_0x8a2479,id:_0x156af6}=ot(_0x2cc9ee);if(_0x25e3('0x2f')!==_0x8a2479)continue;const _0x2c50d1=_0x5c0639[_0x25e3('0x48')](_0x156af6),_0x415c9b=this[_0x25e3('0x5c')](_0x156af6);_0x2c50d1&&(_0x2c50d1[_0x25e3('0x2e')]||_0x2122e5[_0x25e3('0xd')]['view'][_0x25e3('0x25')](_0x25e3('0x1b'),()=>{const _0x335437=_0x2122e5[_0x25e3('0x2b')]['get'](_0x130beb),_0x85617d=_0x5c0639['_threadToController'][_0x25e3('0x19')](_0x2c50d1)[_0x25e3('0x32')];_0x335437[_0x25e3('0x47')](_0x85617d)[_0x25e3('0x2a')]();},{'priority':'low'}),_0x2c50d1[_0x25e3('0x2e')]=_0x415c9b||!!_0x42417d),_0x42417d||(_0x54135d[_0x25e3('0x67')](_0x2cc9ee),_0x5b528e[_0x25e3('0x4a')](_0x2cc9ee));}if(_0x4e3661[_0x25e3('0x2')])for(const _0x381fa1 of _0x54135d){const {id:_0x1d2dc6}=ot(_0x381fa1),_0x385d4d=_0x5c0639['getCommentThread'](_0x1d2dc6),_0x1a2dae=this['hasMarkerForId'](_0x1d2dc6);_0x5b528e[_0x25e3('0x4a')](_0x381fa1),!_0x385d4d||_0x1a2dae||_0x385d4d[_0x25e3('0x31')]||_0x385d4d[_0x25e3('0x13')](new Date());}_0x54135d[_0x25e3('0x38')]();});}['_getTargetForId'](_0x3ee069){const _0x351dd5=this[_0x25e3('0x3b')],_0x28ae45=this['getAllMarkersForId'](_0x3ee069);return _0x45fe43(_0x351dd5['editing'],_0x28ae45);}[_0x25e3('0x4d')](_0x2b0fdb){const _0x314f12=this[_0x25e3('0x17')](_0x2b0fdb);let _0x5612cb='',_0x4d01c9=!0x1;for(const _0xc28e28 of _0x314f12){const _0x2ae453=_0xc28e28[_0x25e3('0x1f')]();for(const _0x302ea4 of Array[_0x25e3('0x40')](_0x2ae453[_0x25e3('0x41')]()))_0x302ea4['is'](_0x25e3('0x73'))?(_0x5612cb&&_0x4d01c9&&(_0x5612cb+='\x20',_0x4d01c9=!0x1),_0x5612cb+=_0x302ea4[_0x25e3('0x51')]):_0x4d01c9=!0x0;_0x4d01c9=!0x0;}return _0x5612cb[_0x25e3('0x5d')](0x0,0x96);}[_0x25e3('0x21')](_0x8740a8,_0x47e617){const _0xe0f484=this[_0x25e3('0x3b')],_0x547db4=_0xe0f484['plugins'][_0x25e3('0x19')](_0x3de9b);let _0x294d0d=_0x547db4['getCommentThread'](_0x47e617);const _0x10c701=_0xe0f484[_0x25e3('0x1')][_0x25e3('0x19')](_0x25e3('0x5e')),_0x5592a3=_0xe0f484[_0x25e3('0x2b')][_0x25e3('0x19')](_0x21e1f2);if(_0x294d0d&&(_0x294d0d[_0x25e3('0x31')]&&_0x294d0d[_0x25e3('0x13')](null),_0x294d0d[_0x25e3('0x52')]))return _0x294d0d;return!this[_0x25e3('0x17')](_0x47e617)[0x0]['managedUsingOperations']?_0xe0f484[_0x25e3('0xd')][_0x25e3('0x32')][_0x25e3('0x25')](_0x25e3('0x1b'),()=>{if(_0x547db4[_0x25e3('0x48')](_0x47e617))return;const _0x40b067=_0xe0f484[_0x25e3('0x2b')]['get'](_0x130beb);_0x294d0d=_0x547db4[_0x25e3('0x56')]({'channelId':_0x10c701,'threadId':_0x47e617,'target':()=>this[_0x25e3('0x37')](_0x47e617),'context':{'type':_0x25e3('0x7e'),'value':this[_0x25e3('0x4d')](_0x47e617)}});const _0x1e38de=_0x547db4[_0x25e3('0x4b')]['get'](_0x294d0d)[_0x25e3('0x32')],_0x56b4dd=_0x40b067[_0x25e3('0x47')](_0x1e38de);_0x56b4dd&&_0x5592a3[_0x25e3('0x3f')](_0x56b4dd);},{'priority':_0x25e3('0x3a')}):_0x547db4[_0x25e3('0x60')]({'channelId':_0x10c701,'threadId':_0x47e617})['then'](_0x453bf1=>{if(_0x25e3('0x7b')!==_0xe0f484['state']){if(_0x294d0d=_0x453bf1,_0x294d0d&&!_0x294d0d[_0x25e3('0x52')]){const _0x1d76b9=_0x294d0d['attachTo'](()=>this[_0x25e3('0x37')](_0x47e617));_0x5592a3[_0x25e3('0x3f')](_0x1d76b9),_0x294d0d['isResolved']&&this['_reconvertMarkers'](_0x47e617);}else{if(!_0x294d0d){const _0x1da359=this[_0x25e3('0x17')](_0x47e617);_0xe0f484[_0x25e3('0x42')][_0x25e3('0x34')](_0x370a4d=>{for(const _0x25c50b of _0x1da359)_0x370a4d[_0x25e3('0x2c')](_0x25c50b);});}}}}),_0x294d0d;}[_0x25e3('0x63')](_0x467a81,_0x423b18){const _0x4f7241=this['_attachMarkerToThread'](_0x467a81,_0x423b18);_0x4f7241&&!_0x4f7241[_0x25e3('0x44')]&&_0x4f7241[_0x25e3('0x78')]({'type':_0x25e3('0x7e'),'value':this[_0x25e3('0x4d')](_0x423b18)});}[_0x25e3('0x5b')](){const _0x2d8382=this[_0x25e3('0x3b')];_0x40b203(_0x2d8382[_0x25e3('0x42')],({left:_0x12e473,entered:_0x47865b})=>{const _0x521f62=[];for(const _0x3aa78a of _0x12e473)if(rt(_0x3aa78a)){_0x521f62[_0x25e3('0xa')](_0x32a8de(_0x2d8382['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x19e4a7 of _0x47865b)if(rt(_0x19e4a7)){_0x521f62[_0x25e3('0xa')](_0x32a8de(_0x2d8382[_0x25e3('0x14')],_0x25e3('0x4f')));break;}_0x521f62[_0x25e3('0x9')]&&_0x2d8382['ui'][_0x25e3('0x5f')][_0x25e3('0x7d')](_0x25e3('0x26'),_0x521f62[_0x25e3('0x79')]('\x20'));});}}function tt(_0x12c05b,_0x5782c9){return _0x5782c9?_0x12c05b+':'+_0x5782c9:_0x12c05b;}function ot(_0x5a8319){const _0x3adbc9=_0x5a8319[_0x25e3('0x29')](':');return{'group':_0x3adbc9[0x0],'id':_0x3adbc9[0x1],'part':_0x3adbc9[0x2]};}function et(_0x3341cf,_0x5cbc1d){const _0x10c3c6=_0x5cbc1d[_0x25e3('0x68')],_0x5d83f6=_0x5cbc1d[_0x25e3('0x3')](_0x3341cf[_0x25e3('0x65')]);for(const _0x257486 of _0x3341cf['getWalker']()){const {type:_0x9960b6,item:_0x57ef76,nextPosition:_0x48fa1e}=_0x257486;if(_0x25e3('0x7e')===_0x9960b6||_0x10c3c6[_0x25e3('0xe')](_0x57ef76)){const _0x20660e=_0x5cbc1d[_0x25e3('0x28')](_0x57ef76);_0x5d83f6[_0x25e3('0x6e')]&&(_0x5d83f6[_0x25e3('0x65')]=_0x20660e),_0x5d83f6[_0x25e3('0xf')]=_0x48fa1e;}}return _0x5d83f6;}function rt(_0x1cdb03){return _0x25e3('0x2f')===ot(_0x1cdb03[_0x25e3('0x7c')])[_0x25e3('0x1e')];}
|
|
23
|
+
const _0x4534=['markerToData','startsWith','set','editor','ready','pluginName','isAttached','_getTextContext','getItems','setUnlinkedAt','differ','config','announce','destroyed','createPositionBefore','comment','_attachMarkerToThread','delete','getCommentThreads','_threadToController','getRange','dataToMarker','push','ignoreResolvedComments','_detachCommentThread','_hasTargetInContent','once','activeMarker','consumable','text','_handleThreadMarker','elementToElement','model','hasMarkerForId','markerToHighlight','_reconvertMarkers','split','reconvertMarker','removeMarker','LEAVE_COMMENT_ANNOUNCEMENT','document','listenTo','createRange','change','newRange','isCollapsed','size','dataDowncast','destroy','markerName','getCommentThread','addCommentThread','_attachResolvedThread','group','schema','consume','isThreadsLoadingPaused','refreshVisibility','change:isThreadsLoadingPaused','join','attachTo','change:activeMarker','isLocal','getAttribute','affectsData','ENTER_COMMENT_ANNOUNCEMENT','archivedAt','resolveCommentThread','change:isReadOnly','start','updateMarker','_initAriaMarkerChangeAnnouncements','low','commands','_initializeMarkerConverters','then','createElement','focus','render','CommentsEditing','getAllMarkersForId','isEqual','addMarker:','editing','markers','plugins','hasCommentThread','registerPostFixer','locale','isResolved','ariaLiveAnnouncer','_getTargetForId','from','addComment','unlinkedAt','root','add','hasDomSelection','managedUsingOperations','collaboration.channelId','length','comments','state','scrollToThreadMarker','_handleMarkerAddAndRemove','getChangedMarkers','registerAnnotation','removeMarker:','setContext','item','ck-comment-marker--active','view','comment:','for','upcast','get','context','requires','$marker','conversion'];(function(_0x52cc18,_0x45347a){const _0x1986b4=function(_0x3ca6c8){while(--_0x3ca6c8){_0x52cc18['push'](_0x52cc18['shift']());}};_0x1986b4(++_0x45347a);}(_0x4534,0x1c0));const _0x1986=function(_0x52cc18,_0x45347a){_0x52cc18=_0x52cc18-0x0;let _0x1986b4=_0x4534[_0x52cc18];return _0x1986b4;};import{Plugin as _0x130451}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x4f4065}from'ckeditor5/src/utils.js';import _0xe90143 from'./commentsrepository.js';import _0x392580 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x1430f6,getAllMarkersDomElementsSorted as _0x4852b1}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3c3145 from'../annotations/editorannotations.js';import _0x59e4a2 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x1e300b from'./integrations/importword.js';import _0x7802 from'../annotations/annotations.js';import{getTranslation as _0x3ffb6d}from'../utils/common-translations.js';export default class r extends _0x130451{static get[_0x1986('0x1d')](){return[_0xe90143,_0x3c3145,_0x59e4a2,_0x1e300b];}static get[_0x1986('0x25')](){return _0x1986('0x6f');}constructor(_0x5a8a76){super(_0x5a8a76),this[_0x1986('0x22')](_0x1986('0x58'),!0x0),_0x5a8a76['data'][_0x1986('0x3a')](_0x1986('0x24'),()=>this[_0x1986('0x58')]=!0x1),this[_0x1986('0x22')](_0x1986('0x3b'),null),this['on'](_0x1986('0x5d'),(_0x49b2bb,_0x255286,_0x305df2,_0x391b90)=>{const _0x4f9675=_0x305df2?ot(_0x305df2)['id']:null;if(_0x5a8a76[_0x1986('0x40')][_0x1986('0x4b')](()=>{if(_0x4f9675){const _0x3ecef0=this['getAllMarkersForId'](_0x4f9675);for(const _0x1f5f26 of _0x3ecef0)_0x5a8a76[_0x1986('0x73')][_0x1986('0x45')](_0x1f5f26);}if(_0x391b90){const {id:_0x32a7a2}=ot(_0x391b90),_0x1c9e85=this[_0x1986('0x70')](_0x32a7a2);for(const _0x476334 of _0x1c9e85)_0x5a8a76['editing'][_0x1986('0x45')](_0x476334);}}),_0x4f9675){const _0x2ec073=_0x5a8a76[_0x1986('0x75')][_0x1986('0x1b')](_0xe90143)['getCommentThread'](_0x4f9675);_0x2ec073&&_0x2ec073[_0x1986('0x1')]&&this[_0x1986('0xf')](_0x4f9675);}}),this[_0x1986('0x67')]();}['init'](){const _0x22c050=this[_0x1986('0x23')],_0x39e96a=_0x22c050[_0x1986('0x75')][_0x1986('0x1b')](_0xe90143),_0x31faee=_0x22c050[_0x1986('0x2b')][_0x1986('0x1b')](_0x1986('0xb'));_0x22c050[_0x1986('0x69')][_0x1986('0x8')](_0x1986('0x53'),new _0x392580(_0x22c050)),this['listenTo'](_0x22c050,_0x1986('0x64'),(_0x3e9d25,_0x4b9665,_0x2dac9e)=>{_0x39e96a['switchReadOnly'](_0x2dac9e,_0x22c050[_0x1986('0x2b')][_0x1986('0x1b')](_0x1986('0xb')));}),this[_0x1986('0x49')](_0x39e96a,tt(_0x1986('0x53'),_0x31faee),(_0x37832f,{threadId:_0x4e1ebc})=>{const _0x4c8ea6=this['editor'][_0x1986('0x75')][_0x1986('0x1b')](_0xe90143)['getCommentThread'](_0x4e1ebc);_0x4c8ea6&&_0x4c8ea6[_0x1986('0x62')]&&this[_0x1986('0x54')](_0x4e1ebc);}),this[_0x1986('0x49')](_0x39e96a,tt('removeCommentThread',_0x31faee),(_0x1412eb,{threadId:_0x12be3d})=>{_0x22c050[_0x1986('0x40')]['enqueueChange']({'isUndoable':!0x1},_0x1b521f=>{const _0x2091f0=this[_0x1986('0x70')](_0x12be3d);for(const _0x204baf of _0x2091f0)_0x1b521f[_0x1986('0x46')](_0x204baf);});}),this[_0x1986('0x49')](_0x39e96a,tt(_0x1986('0x63'),_0x31faee),(_0x1712a2,{threadId:_0x13db08})=>{(this['_attachResolvedThread'](_0x13db08),this[_0x1986('0x43')](_0x13db08),this['editor'][_0x1986('0x73')][_0x1986('0x17')][_0x1986('0x9')])&&(this['editor'][_0x1986('0x75')][_0x1986('0x1b')](_0xe90143)['getCommentThread'](_0x13db08)[_0x1986('0x6')]||this[_0x1986('0x23')][_0x1986('0x73')][_0x1986('0x17')][_0x1986('0x6d')]());},{'priority':'low'}),this[_0x1986('0x49')](_0x39e96a,tt('reopenCommentThread',_0x31faee),(_0x55d061,{threadId:_0x116fde})=>{this['_reconvertMarkers'](_0x116fde);},{'priority':_0x1986('0x68')}),this[_0x1986('0x49')](_0x39e96a,tt(_0x1986('0x5'),_0x31faee),(_0x4e2147,{threadId:_0x27ce5f,isFromAdapter:_0x36e70a})=>{const _0x147a02=this[_0x1986('0x70')](_0x27ce5f);if(_0x36e70a||0x0==_0x147a02[_0x1986('0xc')]||!_0x39e96a[_0x1986('0x76')](_0x27ce5f))return;0x1===_0x39e96a['getCommentThread'](_0x27ce5f)[_0x1986('0xc')]&&_0x22c050['model']['enqueueChange']({'isUndoable':!0x1},_0xe96aa7=>{for(const _0x108bb1 of _0x147a02)_0xe96aa7[_0x1986('0x66')](_0x108bb1,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x1986('0x68')}),this[_0x1986('0x6a')](),this[_0x1986('0x10')]();}['destroy'](){const _0xba6e00=this['editor']['plugins'][_0x1986('0x1b')](_0xe90143),_0x37cdd2=this[_0x1986('0x23')]['config'][_0x1986('0x1b')]('collaboration.channelId');for(const _0x10f04a of _0xba6e00[_0x1986('0x32')]({'channelId':_0x37cdd2}))_0xba6e00[_0x1986('0x38')](_0x10f04a['id']),_0xba6e00['_threads']['delete'](_0x10f04a['id']);super[_0x1986('0x50')]();}['hasMarkerForId'](_0x4b7d97){return this[_0x1986('0x70')](_0x4b7d97)[_0x1986('0xc')]>0x0;}[_0x1986('0x70')](_0x11cb7d){const _0x4c5304=[];for(const _0x70f537 of this[_0x1986('0x23')][_0x1986('0x40')][_0x1986('0x74')])_0x70f537['name'][_0x1986('0x21')](_0x1986('0x18')+_0x11cb7d)&&_0x4c5304['push'](_0x70f537);return _0x4c5304;}[_0x1986('0xf')](_0xd82ea0){const _0x4264e4=this['_getTargetForId'](_0xd82ea0);_0x4264e4&&setTimeout(()=>{this['activeMarker']&&ot(this[_0x1986('0x3b')])['id']===_0xd82ea0&&_0x4f4065({'target':_0x4264e4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x1986('0x43')](_0x168caa){this[_0x1986('0x23')][_0x1986('0x40')]['change'](()=>{for(const _0x3d3b72 of this['getAllMarkersForId'](_0x168caa))this[_0x1986('0x23')]['editing'][_0x1986('0x45')](_0x3d3b72);});}[_0x1986('0x54')](_0x4d6b29){const _0x358e9e=this['editor'][_0x1986('0x75')][_0x1986('0x1b')](_0xe90143),_0x44dda6=this[_0x1986('0x23')][_0x1986('0x75')][_0x1986('0x1b')](_0x3c3145),_0xf8ce25=_0x358e9e[_0x1986('0x52')](_0x4d6b29);if(!_0xf8ce25['isAttached']){const _0x23740b=_0xf8ce25[_0x1986('0x5c')](()=>this[_0x1986('0x3')](_0xf8ce25['id']));_0x44dda6['registerAnnotation'](_0x23740b),_0xf8ce25[_0x1986('0x39')]=!0x1;}}['_initializeMarkerConverters'](){const _0x8ac0e9=this['editor'];_0x8ac0e9[_0x1986('0x1f')][_0x1986('0x19')]('editingDowncast')[_0x1986('0x42')]({'model':_0x1986('0x2f'),'view':(_0x2de580,_0x12bbef)=>{const {id:_0x53c5f3}=ot(_0x2de580[_0x1986('0x51')]),_0x221488=_0x8ac0e9['plugins']['get'](_0xe90143)[_0x1986('0x52')](_0x53c5f3),_0x371303=this[_0x1986('0x3b')]&&ot(this['activeMarker'])['id']===_0x53c5f3;if(_0x221488&&_0x221488['isResolved']&&!_0x371303&&_0x2de580[_0x1986('0x15')])return _0x12bbef[_0x1986('0x3c')][_0x1986('0x57')](_0x2de580[_0x1986('0x15')],_0x1986('0x72')+_0x2de580[_0x1986('0x51')]),_0x12bbef[_0x1986('0x3c')][_0x1986('0x57')](_0x2de580[_0x1986('0x15')],_0x1986('0x13')+_0x2de580[_0x1986('0x51')]),{'classes':[]};const _0x5610c2=['ck-comment-marker'];return _0x371303&&_0x5610c2[_0x1986('0x36')](_0x1986('0x16')),{'classes':_0x5610c2,'attributes':{'data-comment':_0x53c5f3}};}}),_0x8ac0e9['conversion'][_0x1986('0x19')](_0x1986('0x4f'))[_0x1986('0x20')]({'model':_0x1986('0x2f'),'view':(_0xdeeaa0,{options:_0x510d5a})=>{const _0x1a9946=_0x8ac0e9['plugins'][_0x1986('0x1b')](_0xe90143),_0x217c97=_0x8ac0e9[_0x1986('0x40')][_0x1986('0x74')][_0x1986('0x1b')](_0xdeeaa0),{id:_0x2bc6c5,part:_0x4c632f}=ot(_0xdeeaa0);if(_0x217c97&&!_0x217c97[_0x1986('0x60')])return null;if(_0x510d5a[_0x1986('0x37')]){const _0x210e2d=_0x1a9946['getCommentThread'](_0x2bc6c5);if(_0x210e2d&&_0x210e2d[_0x1986('0x1')])return null;}return{'group':_0x1986('0x2f'),'name':_0x4c632f?_0x2bc6c5+':'+_0x4c632f:_0x2bc6c5};}}),_0x8ac0e9[_0x1986('0x1f')][_0x1986('0x19')](_0x1986('0x1a'))[_0x1986('0x3f')]({'view':{'name':_0x1986('0x2f'),'attributes':{'id':/^\w/}},'model':(_0x8666c,{writer:_0x2c99e8})=>_0x2c99e8[_0x1986('0x6c')](_0x1986('0x1e'),{'data-name':_0x1986('0x18')+_0x8666c[_0x1986('0x5f')]('id')})}),_0x8ac0e9['conversion'][_0x1986('0x19')](_0x1986('0x1a'))[_0x1986('0x35')]({'view':_0x1986('0x2f')});}[_0x1986('0x10')](){const _0x553297=this[_0x1986('0x23')],_0x5aad34=_0x553297['plugins'][_0x1986('0x1b')](_0xe90143),_0x3494b5=new Set(),_0x430fc3=new Set();_0x553297[_0x1986('0x40')][_0x1986('0x48')][_0x1986('0x77')](_0x36466f=>{let _0x480629=!0x1;for(const {name:_0x5b9b8c,data:_0x43c3a3}of _0x553297[_0x1986('0x40')][_0x1986('0x48')]['differ'][_0x1986('0x11')]()){const {group:_0x10037d,id:_0x55cd7b}=ot(_0x5b9b8c);let _0x9a85a=_0x43c3a3[_0x1986('0x4c')];if('comment'!==_0x10037d||!_0x9a85a)continue;const _0x455873='$graveyard'===_0x9a85a[_0x1986('0x7')]['rootName'];_0x455873||(_0x9a85a=et(_0x9a85a,_0x553297[_0x1986('0x40')]),!_0x9a85a||_0x9a85a[_0x1986('0x4d')]||!_0x43c3a3[_0x1986('0x4c')]||_0x9a85a[_0x1986('0x71')](_0x43c3a3[_0x1986('0x4c')]))?_0x553297[_0x1986('0x40')]['hasContent'](_0x9a85a)&&!_0x455873?this['isThreadsLoadingPaused']?_0x3494b5[_0x1986('0x8')](_0x5b9b8c):this[_0x1986('0x3e')](_0x5b9b8c,_0x55cd7b):(_0x430fc3['add'](_0x5b9b8c),_0x3494b5[_0x1986('0x31')](_0x5b9b8c),_0x36466f[_0x1986('0x46')](_0x5b9b8c),_0x480629=!0x0):(_0x36466f['updateMarker'](_0x5b9b8c,{'range':_0x9a85a}),_0x480629=!0x0);}return _0x480629;}),this['on'](_0x1986('0x5a'),(_0x98e8bc,_0x2e0eaf,_0x2ea7c7)=>{if(!_0x2ea7c7&&_0x3494b5[_0x1986('0x4e')])for(const _0x651230 of _0x3494b5){const {id:_0x10e801}=ot(_0x651230);_0x3494b5['delete'](_0x651230),_0x553297[_0x1986('0x40')]['markers']['get'](_0x651230)&&this[_0x1986('0x3e')](_0x651230,_0x10e801);}}),this[_0x1986('0x49')](_0x553297[_0x1986('0x40')][_0x1986('0x48')],_0x1986('0x4b'),(_0x36bc2e,_0x4ec5a)=>{for(const {name:_0x50c837,data:{newRange:_0x28ae76}}of _0x553297[_0x1986('0x40')]['document'][_0x1986('0x2a')][_0x1986('0x11')]()){const {group:_0x443163,id:_0x4c9cce}=ot(_0x50c837);if(_0x1986('0x2f')!==_0x443163)continue;const _0x3d73a1=_0x5aad34[_0x1986('0x52')](_0x4c9cce),_0x3908df=this[_0x1986('0x41')](_0x4c9cce);_0x3d73a1&&(_0x3d73a1['_hasTargetInContent']||_0x553297['editing'][_0x1986('0x17')][_0x1986('0x3a')](_0x1986('0x6e'),()=>{const _0x55a1b6=_0x553297[_0x1986('0x75')][_0x1986('0x1b')](_0x7802),_0x93ee72=_0x5aad34[_0x1986('0x33')]['get'](_0x3d73a1)['view'];_0x55a1b6['getByInnerView'](_0x93ee72)[_0x1986('0x59')]();},{'priority':'low'}),_0x3d73a1[_0x1986('0x39')]=_0x3908df||!!_0x28ae76),_0x28ae76||(_0x430fc3[_0x1986('0x8')](_0x50c837),_0x3494b5[_0x1986('0x31')](_0x50c837));}if(_0x4ec5a[_0x1986('0x5e')])for(const _0x2c8c4b of _0x430fc3){const {id:_0x1d8da6}=ot(_0x2c8c4b),_0x18afb0=_0x5aad34[_0x1986('0x52')](_0x1d8da6),_0x55db96=this['hasMarkerForId'](_0x1d8da6);_0x3494b5[_0x1986('0x31')](_0x2c8c4b),!_0x18afb0||_0x55db96||_0x18afb0[_0x1986('0x6')]||_0x18afb0[_0x1986('0x29')](new Date());}_0x430fc3['clear']();});}[_0x1986('0x3')](_0x54c204){const _0x26bee4=this[_0x1986('0x23')],_0x20c589=this['getAllMarkersForId'](_0x54c204);return _0x4852b1(_0x26bee4[_0x1986('0x73')],_0x20c589);}[_0x1986('0x27')](_0x6128ef){const _0x240ffe=this[_0x1986('0x70')](_0x6128ef);let _0x181885='',_0x16c24b=!0x1;for(const _0x41a6ee of _0x240ffe){const _0x175393=_0x41a6ee[_0x1986('0x34')]();for(const _0x27a2b3 of Array[_0x1986('0x4')](_0x175393[_0x1986('0x28')]()))_0x27a2b3['is']('$textProxy')?(_0x181885&&_0x16c24b&&(_0x181885+='\x20',_0x16c24b=!0x1),_0x181885+=_0x27a2b3['data']):_0x16c24b=!0x0;_0x16c24b=!0x0;}return _0x181885['substring'](0x0,0x96);}[_0x1986('0x30')](_0x2a18e1,_0xee0e02){const _0x1e69ef=this['editor'],_0x5cbc08=_0x1e69ef['plugins']['get'](_0xe90143);let _0x4d1c5d=_0x5cbc08[_0x1986('0x52')](_0xee0e02);const _0x206c65=_0x1e69ef['config'][_0x1986('0x1b')](_0x1986('0xb')),_0x5bc220=_0x1e69ef[_0x1986('0x75')][_0x1986('0x1b')](_0x3c3145);if(_0x4d1c5d&&(_0x4d1c5d[_0x1986('0x6')]&&_0x4d1c5d[_0x1986('0x29')](null),_0x4d1c5d[_0x1986('0x26')]))return _0x4d1c5d;return!this[_0x1986('0x70')](_0xee0e02)[0x0][_0x1986('0xa')]?_0x1e69ef[_0x1986('0x73')]['view'][_0x1986('0x3a')]('render',()=>{if(_0x5cbc08['getCommentThread'](_0xee0e02))return;const _0x20cbd0=_0x1e69ef[_0x1986('0x75')][_0x1986('0x1b')](_0x7802);_0x4d1c5d=_0x5cbc08['openNewCommentThread']({'channelId':_0x206c65,'threadId':_0xee0e02,'target':()=>this[_0x1986('0x3')](_0xee0e02),'context':{'type':_0x1986('0x3d'),'value':this[_0x1986('0x27')](_0xee0e02)}});const _0x3f4bc1=_0x5cbc08[_0x1986('0x33')]['get'](_0x4d1c5d)['view'],_0xf0c40d=_0x20cbd0['getByInnerView'](_0x3f4bc1);_0xf0c40d&&_0x5bc220['registerAnnotation'](_0xf0c40d);},{'priority':_0x1986('0x68')}):_0x5cbc08['fetchCommentThread']({'channelId':_0x206c65,'threadId':_0xee0e02})[_0x1986('0x6b')](_0x951f0a=>{if(_0x1986('0x2d')!==_0x1e69ef[_0x1986('0xe')]){if(_0x4d1c5d=_0x951f0a,_0x4d1c5d&&!_0x4d1c5d[_0x1986('0x26')]){const _0xdf2351=_0x4d1c5d['attachTo'](()=>this[_0x1986('0x3')](_0xee0e02));_0x5bc220[_0x1986('0x12')](_0xdf2351),_0x4d1c5d[_0x1986('0x1')]&&this[_0x1986('0x43')](_0xee0e02);}else{if(!_0x4d1c5d){const _0x2e6b69=this[_0x1986('0x70')](_0xee0e02);_0x1e69ef[_0x1986('0x40')][_0x1986('0x4b')](_0x228e8b=>{for(const _0x4ba205 of _0x2e6b69)_0x228e8b[_0x1986('0x46')](_0x4ba205);});}}}}),_0x4d1c5d;}[_0x1986('0x3e')](_0x219b06,_0x43c157){const _0x117660=this[_0x1986('0x30')](_0x219b06,_0x43c157);_0x117660&&!_0x117660[_0x1986('0x1c')]&&_0x117660[_0x1986('0x14')]({'type':_0x1986('0x3d'),'value':this['_getTextContext'](_0x43c157)});}[_0x1986('0x67')](){const _0x1499ae=this['editor'];_0x1430f6(_0x1499ae[_0x1986('0x40')],({left:_0x32fabe,entered:_0x4fd06f})=>{const _0x1bf158=[];for(const _0x4ca347 of _0x32fabe)if(rt(_0x4ca347)){_0x1bf158[_0x1986('0x36')](_0x3ffb6d(_0x1499ae['locale'],_0x1986('0x47')));break;}for(const _0x53b278 of _0x4fd06f)if(rt(_0x53b278)){_0x1bf158[_0x1986('0x36')](_0x3ffb6d(_0x1499ae[_0x1986('0x0')],_0x1986('0x61')));break;}_0x1bf158[_0x1986('0xc')]&&_0x1499ae['ui'][_0x1986('0x2')][_0x1986('0x2c')](_0x1986('0xd'),_0x1bf158[_0x1986('0x5b')]('\x20'));});}}function tt(_0x27ede4,_0x12ff31){return _0x12ff31?_0x27ede4+':'+_0x12ff31:_0x27ede4;}function ot(_0xfcdc35){const _0x583bf3=_0xfcdc35[_0x1986('0x44')](':');return{'group':_0x583bf3[0x0],'id':_0x583bf3[0x1],'part':_0x583bf3[0x2]};}function et(_0x4c7722,_0x296d60){const _0x5eb09e=_0x296d60[_0x1986('0x56')],_0x1c2f32=_0x296d60[_0x1986('0x4a')](_0x4c7722[_0x1986('0x65')]);for(const _0x3d5866 of _0x4c7722['getWalker']()){const {type:_0x6e4d20,item:_0x355978,nextPosition:_0x2d13cb}=_0x3d5866;if(_0x1986('0x3d')===_0x6e4d20||_0x5eb09e['isObject'](_0x355978)){const _0x516580=_0x296d60[_0x1986('0x2e')](_0x355978);_0x1c2f32[_0x1986('0x4d')]&&(_0x1c2f32[_0x1986('0x65')]=_0x516580),_0x1c2f32['end']=_0x2d13cb;}}return _0x1c2f32;}function rt(_0x1b4e4c){return'comment'===ot(_0x1b4e4c['name'])[_0x1986('0x55')];}
|