@ckeditor/ckeditor5-comments 0.0.0-nightly-20231212.0 → 0.0.0-nightly-20231213.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.d.ts +1 -0
- 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 _0x5b12=['content','length','_updateHeight','clientHeight','Esc','render','add','_mutationObserver','focusTracker','div','mainView','bindTemplate','attach','destroy','element','type','set','createCollection','keystrokes','listenTo','setTemplate','height','isActive','clear','ck-annotation-wrapper--active','isDirty','fire'];(function(_0x2ca5db,_0x5b125f){const _0x383e4f=function(_0x35128f){while(--_0x35128f){_0x2ca5db['push'](_0x2ca5db['shift']());}};_0x383e4f(++_0x5b125f);}(_0x5b12,0x11f));const _0x383e=function(_0x2ca5db,_0x5b125f){_0x2ca5db=_0x2ca5db-0x0;let _0x383e4f=_0x5b12[_0x2ca5db];return _0x383e4f;};import{View as _0x3cb4f8}from'ckeditor5/src/ui';import{FocusTracker as _0x5cf7bd,KeystrokeHandler as _0x2059be,uid as _0x425382}from'ckeditor5/src/utils';import _0x4b2676 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x3cb4f8{constructor(_0x428cee,_0x312a15){super(_0x428cee),this['id']=_0x425382(),this[_0x383e('0x12')]=new _0x5cf7bd(),this['keystrokes']=new _0x2059be(),this[_0x383e('0x1')]['set'](_0x383e('0xe'),(_0x3699c8,_0x33b380)=>this[_0x383e('0x9')](_0x383e('0xe'),_0x33b380)),this[_0x383e('0x1a')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x383e('0x1a')](_0x383e('0x4'),0x0),this[_0x383e('0x1a')](_0x383e('0x5'),!0x1),this['set'](_0x383e('0x8'),!0x1),this['set'](_0x383e('0xb'),0x0),this[_0x383e('0x1a')](_0x383e('0x19'),''),this['_mutationObserver']=_0x4b2676(()=>this['_updateHeight']()),this['content']=this[_0x383e('0x0')](),this[_0x383e('0xa')][_0x383e('0x10')](_0x312a15),this[_0x383e('0x14')]=_0x312a15;const _0x49bf4f=this[_0x383e('0x15')];this[_0x383e('0x3')]({'tag':_0x383e('0x13'),'attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x49bf4f['if'](_0x383e('0x5'),_0x383e('0x7'))],'tabindex':-0x1},'children':this['content']});}[_0x383e('0xf')](){super[_0x383e('0xf')](),this[_0x383e('0x12')][_0x383e('0x10')](this[_0x383e('0x18')]),this[_0x383e('0x1')][_0x383e('0x2')](this['element']),this['_mutationObserver'][_0x383e('0x16')](this['element']);}[_0x383e('0x17')](){this[_0x383e('0xa')][_0x383e('0x6')](),this[_0x383e('0x1')][_0x383e('0x17')](),this[_0x383e('0x12')][_0x383e('0x17')](),this[_0x383e('0x11')]['detach'](),super[_0x383e('0x17')]();}['focus'](){this[_0x383e('0x18')]['focus']();}[_0x383e('0xc')](){const _0xd2c53e=this[_0x383e('0x18')][_0x383e('0xd')];_0xd2c53e&&(this[_0x383e('0x4')]=_0xd2c53e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x545f=['height','top','div','content','element','updateHeight','ck-sidebar-item','detach','set','bindTemplate','destroy','isAnimationDisabled','_mutationObserver','render','setTemplate','createCollection','attach','bottom','_targetTop','clientHeight'];(function(_0x1dd0d3,_0x545ffb){const _0x30423c=function(_0x3638f1){while(--_0x3638f1){_0x1dd0d3['push'](_0x1dd0d3['shift']());}};_0x30423c(++_0x545ffb);}(_0x545f,0xe1));const _0x3042=function(_0x1dd0d3,_0x545ffb){_0x1dd0d3=_0x1dd0d3-0x0;let _0x30423c=_0x545f[_0x1dd0d3];return _0x30423c;};import{View as _0x5adeb2}from'ckeditor5/src/ui';import{toUnit as _0x4bce9a}from'ckeditor5/src/utils';import _0x41c348 from'../../utils/createmutationobserver';const jt=_0x4bce9a('px');export default class C extends _0x5adeb2{constructor(_0x462622){super(_0x462622),this[_0x3042('0x3')](_0x3042('0x10'),0x0),this[_0x3042('0x3')](_0x3042('0xf'),0x0),this['bind'](_0x3042('0xc'))['to'](this,_0x3042('0x10'),this,_0x3042('0xf'),(_0x2053f0,_0x465d32)=>_0x2053f0+_0x465d32),this['set'](_0x3042('0x6'),!0x1),this[_0x3042('0x7')]=_0x41c348(()=>this[_0x3042('0x0')]()),this[_0x3042('0xd')]=null,this[_0x3042('0x12')]=this[_0x3042('0xa')]();const _0xa3dbeb=this[_0x3042('0x4')];this[_0x3042('0x9')]({'tag':_0x3042('0x11'),'attributes':{'class':[_0x3042('0x1'),_0xa3dbeb['to'](_0x3042('0x6'),_0x54f0bc=>_0x54f0bc?'ck-sidebar-item--no-animation':'')],'style':{'top':_0xa3dbeb['to'](_0x3042('0x10'),_0x4c7820=>jt(_0x4c7820))}},'children':this[_0x3042('0x12')]});}['render'](){super[_0x3042('0x8')](),this[_0x3042('0x7')][_0x3042('0xb')](this[_0x3042('0x13')]);}[_0x3042('0x0')](){const _0x1ad661=this[_0x3042('0x13')][_0x3042('0xe')];_0x1ad661&&(this[_0x3042('0xf')]=_0x1ad661);}[_0x3042('0x5')](){this[_0x3042('0x12')]['clear'](),this[_0x3042('0x7')][_0x3042('0x2')](),super[_0x3042('0x5')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3349=['list','minHeight','div','set','ck-reset','number','class','setTemplate'];(function(_0x1ea4da,_0x3349c4){const _0x27462b=function(_0xd168b5){while(--_0xd168b5){_0x1ea4da['push'](_0x1ea4da['shift']());}};_0x27462b(++_0x3349c4);}(_0x3349,0xe4));const _0x2746=function(_0x1ea4da,_0x3349c4){_0x1ea4da=_0x1ea4da-0x0;let _0x27462b=_0x3349[_0x1ea4da];return _0x27462b;};import{View as _0x582762}from'ckeditor5/src/ui';import{toUnit as _0x30a132}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x30a132('px');export default class T extends _0x582762{constructor(_0x1ff128){super(_0x1ff128);const _0x34d936=this['bindTemplate'];this[_0x2746('0x7')]('minHeight',0x0),this[_0x2746('0x7')](_0x2746('0x2'),''),this[_0x2746('0x4')]=this['createCollection'](),this[_0x2746('0x3')]({'tag':_0x2746('0x6'),'attributes':{'class':['ck','ck-sidebar',_0x2746('0x0'),_0x34d936['to'](_0x2746('0x2'))],'style':{'minHeight':_0x34d936['to'](_0x2746('0x5'),_0xd2ee9f=>_0x2746('0x1')==typeof _0xd2ee9f?jt(_0xd2ee9f+0xa):null)}},'children':this[_0x2746('0x4')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3768=['_activeAnnotation','ready','uiUpdate','WideSidebar','refresh','activeAnnotation','_editorAnnotations','pluginName','register','get','_refreshPositioningDebounced','getOrderedSelectedAnnotations','remove','addEventListener','_destroyEditorAnnotationsIntegration','destroy','annotations','_annotations','refreshPositioning','_detachFromContainer','init','hasDomSelection','addAnnotation','rearrange','change:container','container','stopListening','widesidebar-attach-already-attached','add','cancel','from','resize','high','stop','editors','switchTo','blur','plugins','ck-sidebar--wide','listenTo','off','isAttached','detach','attach','context','setActiveAnnotation','_attachToContainer'];(function(_0x1c5a77,_0x376825){const _0x54df98=function(_0x74dffb){while(--_0x74dffb){_0x1c5a77['push'](_0x1c5a77['shift']());}};_0x54df98(++_0x376825);}(_0x3768,0x6b));const _0x54df=function(_0x1c5a77,_0x376825){_0x1c5a77=_0x1c5a77-0x0;let _0x54df98=_0x3768[_0x1c5a77];return _0x54df98;};import{ContextPlugin as _0x320597,Context as _0x2f406e}from'ckeditor5/src/core';import _0x125500 from'./annotationsuis';import _0x51b2d7 from'./sidebar';import{CKEditorError as _0x35a5e1,Collection as _0x568c18}from'ckeditor5/src/utils';import{debounce as _0x3d0297}from'lodash-es';import _0x1b79f3 from'./editorannotations';export default class i extends _0x320597{static get['requires'](){return[_0x51b2d7,_0x125500];}static get[_0x54df('0x29')](){return _0x54df('0x25');}constructor(_0x110178){super(_0x110178),this[_0x54df('0x1c')]=!0x1,this['set'](_0x54df('0x27'),null),this[_0x54df('0x3')]=null,this[_0x54df('0x28')]=new _0x568c18(),this[_0x54df('0x2c')]=_0x3d0297(()=>{this[_0x54df('0x3')]['refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x54df('0x7')](){const _0x5c3d8c=this[_0x54df('0x1f')][_0x54df('0x18')]['get'](_0x125500),_0x4ab47f=this[_0x54df('0x1f')][_0x54df('0x18')][_0x54df('0x2b')](_0x51b2d7);_0x5c3d8c[_0x54df('0x2a')]('wideSidebar',this),_0x4ab47f[_0x54df('0xc')]&&_0x5c3d8c[_0x54df('0x16')]('wideSidebar');}[_0x54df('0x20')](_0x4fd740){if(_0x4fd740===this[_0x54df('0x27')])return;const _0x1c4714=this[_0x54df('0x1f')]['plugins']['get'](_0x51b2d7);_0x1c4714[_0x54df('0x22')]=_0x4fd740;const _0xfe4d74=this['activeAnnotation'];this[_0x54df('0x27')]=_0x4fd740,_0x1c4714['refresh']({'blurredAnnotation':_0xfe4d74,'activatedAnnotation':this[_0x54df('0x27')]});}[_0x54df('0x1e')](_0x4c68e3){this['annotations']=_0x4c68e3;const _0x1ab7ce=this['context']['plugins']['get'](_0x51b2d7);if(_0x1ab7ce[_0x54df('0x4')]=_0x4c68e3,this[_0x54df('0x1c')])throw new _0x35a5e1(_0x54df('0xe'),this);this[_0x54df('0x1c')]=!0x0,this[_0x54df('0x1a')](_0x1ab7ce,'set:container',()=>{this[_0x54df('0x1d')](),this['listenTo'](_0x1ab7ce,_0x54df('0xb'),_0x55f893=>{_0x55f893[_0x54df('0x1b')](),this[_0x54df('0x1e')](_0x4c68e3);});}),_0x1ab7ce[_0x54df('0x21')]({'viewClass':_0x54df('0x19')});const _0x40b24f=_0x52f880=>{_0x52f880['updateTargetRect'](),_0x1ab7ce[_0x54df('0x9')](_0x52f880);};for(const _0x1af99a of _0x4c68e3)_0x40b24f(_0x1af99a);this['listenTo'](_0x4c68e3,'add',(_0x144cba,_0x48a187)=>{_0x40b24f(_0x48a187);}),this[_0x54df('0x1a')](_0x4c68e3,'remove',(_0x3efd45,_0x47dcf2,_0x3d4565)=>{_0x1ab7ce[_0x54df('0xa')]({'removedAnnotation':_0x47dcf2,'previousAnnotation':_0x4c68e3['get'](_0x3d4565-0x1),'nextAnnotation':_0x4c68e3[_0x54df('0x2b')](_0x3d4565+0x1)}),_0x47dcf2===this[_0x54df('0x27')]&&this[_0x54df('0x20')](null);},{'priority':_0x54df('0x13')}),this[_0x54df('0x1a')](_0x4c68e3,'focus',(_0x4cd814,_0x191931)=>{this[_0x54df('0x20')](_0x191931);}),this[_0x54df('0x1a')](_0x4c68e3,_0x54df('0x17'),()=>{this['setActiveAnnotation'](null);});const _0x203610=this[_0x54df('0x1f')]instanceof _0x2f406e?this[_0x54df('0x1f')][_0x54df('0x15')]:new _0x568c18([this[_0x54df('0x1f')]]);for(const _0x1cb5d1 of _0x203610)this['_integrateWithEditorAnnotations'](_0x1cb5d1);this[_0x54df('0x1a')](_0x203610,_0x54df('0xf'),(_0x373811,_0x4936d4)=>{this[_0x54df('0x1a')](_0x4936d4,_0x54df('0x23'),()=>{this['_integrateWithEditorAnnotations'](_0x4936d4);});}),this['listenTo'](_0x203610,'remove',(_0x5e90d1,_0x165e59)=>{_0x165e59['plugins']['has']('EditorAnnotations')&&this[_0x54df('0x1')](_0x165e59[_0x54df('0x18')][_0x54df('0x2b')]('EditorAnnotations'));}),window[_0x54df('0x0')](_0x54df('0x12'),this[_0x54df('0x2c')]),this['annotations'][_0x54df('0x5')]();}['detach'](){if(!this[_0x54df('0x1c')])throw new _0x35a5e1('widesidebar-detach-not-attached',this);this[_0x54df('0x20')](null);const _0x12b42a=this['context'][_0x54df('0x18')][_0x54df('0x2b')](_0x51b2d7);_0x12b42a[_0x54df('0x6')](this[_0x54df('0x3')]),this[_0x54df('0xd')](_0x12b42a),this[_0x54df('0xd')](this[_0x54df('0x3')]),this[_0x54df('0x1f')]instanceof _0x2f406e&&this[_0x54df('0xd')](this['context'][_0x54df('0x15')]);for(const _0x22d7c0 of Array[_0x54df('0x11')](this[_0x54df('0x28')]))this[_0x54df('0x1')](_0x22d7c0);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x54df('0x10')](),this[_0x54df('0x27')]=null,this[_0x54df('0x1c')]=!0x1,this['annotations']=null;}[_0x54df('0x2')](){this[_0x54df('0x1c')]&&this[_0x54df('0x1d')]();}['_integrateWithEditorAnnotations'](_0x4d5ed4){const _0x3a8d27=_0x4d5ed4['plugins'][_0x54df('0x2b')](_0x1b79f3);if(!_0x3a8d27)return;const _0x247f06=()=>{const _0xbd788e=_0x3a8d27[_0x54df('0x2d')]({'annotations':this[_0x54df('0x3')],'activeAnnotation':this[_0x54df('0x27')]});this[_0x54df('0x20')](_0xbd788e[0x0]||null);};this['listenTo'](_0x3a8d27,_0x54df('0x26'),_0x247f06),this[_0x54df('0x1a')](_0x3a8d27,_0x54df('0x17'),(_0x158a8b,{isAnnotationTracked:_0x2605a3})=>{this[_0x54df('0x27')]&&_0x2605a3(this['activeAnnotation'])&&this[_0x54df('0x20')](null);}),this[_0x54df('0x1a')](_0x3a8d27,_0x54df('0x24'),()=>{this[_0x54df('0x2c')]();}),this['listenTo'](this['annotations'],_0x54df('0x17'),_0x29bc63=>{_0x3a8d27[_0x54df('0x8')]()&&(_0x247f06(),_0x29bc63[_0x54df('0x14')]());},{'priority':_0x54df('0x13')}),this[_0x54df('0x28')][_0x54df('0xf')](_0x3a8d27);}[_0x54df('0x1')](_0x5bb0cd){this['stopListening'](_0x5bb0cd),this['_editorAnnotations'][_0x54df('0x2e')](_0x5bb0cd);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8cee=['element','schema','_itemIsContent','start','editor','_hasContent','isObject','getItems','model','comment:','tableCell','isEnabled','$textProxy','addMarker','getLastMatchingPosition','_trimToContent','document','end','refresh','push','createRange'];(function(_0x5a2a9b,_0x8cee5){const _0x1ecb28=function(_0x4a833a){while(--_0x4a833a){_0x5a2a9b['push'](_0x5a2a9b['shift']());}};_0x1ecb28(++_0x8cee5);}(_0x8cee,0x1df));const _0x1ecb=function(_0x5a2a9b,_0x8cee5){_0x5a2a9b=_0x5a2a9b-0x0;let _0x1ecb28=_0x8cee[_0x5a2a9b];return _0x1ecb28;};import{Command as _0x140b7e}from'ckeditor5/src/core';import{uid as _0x22310f}from'ckeditor5/src/utils';export default class q extends _0x140b7e{[_0x1ecb('0x1')](){const _0x234e32=this['editor'][_0x1ecb('0xc')][_0x1ecb('0x14')]['selection'];for(const _0x200fb5 of _0x234e32['getRanges']())if(this[_0x1ecb('0x9')](_0x200fb5))return void(this[_0x1ecb('0xf')]=!0x0);this[_0x1ecb('0xf')]=!0x1;}['execute']({threadId:_0x4d1f84=_0x22310f()}={}){const _0x22db42=this[_0x1ecb('0x8')][_0x1ecb('0xc')],_0x566b0e=[];for(const _0x573b99 of _0x22db42['document']['selection']['getRanges']())this['_hasContent'](_0x573b99)&&_0x566b0e[_0x1ecb('0x2')](this[_0x1ecb('0x13')](_0x573b99));_0x22db42['change'](_0x1bde7f=>{for(const _0xf13385 of _0x566b0e){const _0x118db2=_0x22310f()['substr'](0x1,0x5),_0x58b513=_0x1ecb('0xd')+_0x4d1f84+':'+_0x118db2;_0x1bde7f[_0x1ecb('0x11')](_0x58b513,{'range':_0xf13385,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x1ecb('0x9')](_0x42bab5){for(const _0x5df3f5 of _0x42bab5[_0x1ecb('0xb')]())if(this[_0x1ecb('0x6')](_0x5df3f5))return!0x0;return!0x1;}[_0x1ecb('0x6')](_0x43a173){return _0x43a173['is'](_0x1ecb('0x10'))||this[_0x1ecb('0x8')][_0x1ecb('0xc')][_0x1ecb('0x5')][_0x1ecb('0xa')](_0x43a173)&&!_0x43a173['is'](_0x1ecb('0x4'),_0x1ecb('0xe'));}[_0x1ecb('0x13')](_0x27c650){const _0x2d1db8=_0x37cf83=>!this[_0x1ecb('0x6')](_0x37cf83['item']),_0x2694ea=_0x27c650[_0x1ecb('0x7')][_0x1ecb('0x12')](_0x2d1db8),_0x42a714=_0x27c650[_0x1ecb('0x0')][_0x1ecb('0x12')](_0x2d1db8,{'direction':'backward'});return this[_0x1ecb('0x8')][_0x1ecb('0xc')][_0x1ecb('0x3')](_0x2694ea,_0x42a714);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x762a=['change:archivedAt','archivedAt','length','focus','addCommentThread','CommentsArchive','getCommentThread','_calculatePosition','findIndex','isActive','archivedThreads','pluginName','plugins','activate','has','requires','collection','listenTo','remove','add','stopListening','removeCommentThread'];(function(_0x3353ea,_0x762aef){const _0x17eca4=function(_0x69d344){while(--_0x69d344){_0x3353ea['push'](_0x3353ea['shift']());}};_0x17eca4(++_0x762aef);}(_0x762a,0x13b));const _0x17ec=function(_0x3353ea,_0x762aef){_0x3353ea=_0x3353ea-0x0;let _0x17eca4=_0x762a[_0x3353ea];return _0x17eca4;};import{ContextPlugin as _0x1984a3}from'ckeditor5/src/core';import{Collection as _0x75cd4c}from'ckeditor5/src/utils';import _0x45c3ea from'./commentsrepository';import _0x1e431c from'../annotations/annotations';export default class p extends _0x1984a3{static get[_0x17ec('0x4')](){return _0x17ec('0x14');}static get[_0x17ec('0x8')](){return[_0x45c3ea,_0x1e431c];}constructor(_0x73f375){super(_0x73f375),this[_0x17ec('0x3')]=new _0x75cd4c();}['init'](){const _0x561d0c=this['context'],_0x741198=_0x561d0c['plugins']['get'](_0x45c3ea),_0x547658=_0x561d0c[_0x17ec('0x5')]['get'](_0x1e431c);this[_0x17ec('0xa')](_0x741198,_0x17ec('0x13'),(_0x118d14,{threadId:_0x2e0a1b})=>{const _0x326ccb=_0x741198[_0x17ec('0x15')](_0x2e0a1b);_0x326ccb['archivedAt']&&this['archivedThreads']['add'](_0x326ccb,this[_0x17ec('0x0')](_0x326ccb[_0x17ec('0x10')])),this['listenTo'](_0x326ccb,_0x17ec('0xf'),(_0x35b196,_0x527003,_0xfd223c)=>{_0xfd223c?this[_0x17ec('0x3')][_0x17ec('0x7')](_0x326ccb)||this['archivedThreads'][_0x17ec('0xc')](_0x326ccb,this[_0x17ec('0x0')](_0x326ccb[_0x17ec('0x10')])):this[_0x17ec('0x3')][_0x17ec('0x7')](_0x326ccb)&&this[_0x17ec('0x3')][_0x17ec('0xb')](_0x326ccb);});}),this[_0x17ec('0xa')](_0x741198,_0x17ec('0xe'),(_0x2a6e62,{threadId:_0x1fc8ec})=>{const _0x34d486=_0x741198[_0x17ec('0x15')](_0x1fc8ec);this[_0x17ec('0xd')](_0x34d486),this['archivedThreads']['has'](_0x34d486)&&this[_0x17ec('0x3')]['remove'](_0x34d486);},{'priority':'highest'}),this[_0x17ec('0xa')](_0x547658[_0x17ec('0x9')],_0x17ec('0x12'),(_0x377fd4,_0x5d0e63)=>{_0x5d0e63[_0x17ec('0x2')]=!0x0,_0x547658[_0x17ec('0x6')](_0x5d0e63);});}[_0x17ec('0x0')](_0x4e27b1){const _0x769b7e=[...this[_0x17ec('0x3')]][_0x17ec('0x1')](_0x3ec046=>_0x3ec046[_0x17ec('0x10')]<_0x4e27b1);return _0x769b7e>-0x1?_0x769b7e:this[_0x17ec('0x3')][_0x17ec('0x11')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46bf=['archivedAt','pluginName','view','editor','collection','ck-comments-archive-dropdown','_calculatePosition','children','plugins','requires','find','contains','set','length','ck-body','panelView','extendTemplate','classList','collaboration.channelId','listenTo','locale','archivedThreads','innerView','splice','_threadToController','channelId','focusableElements','get','filter','_pendingThreads','CommentsArchiveUI','focusTracker','getByInnerView','annotationViews','init','add','_visibleAnnotations','mainView','indexOf','remove','Annotations','findIndex','position','buttonView','config','_createArchiveUIDropdown','commentsArchiveView','_handleAnnotationFocusableElements'];(function(_0x9eb829,_0x46bfaf){const _0x30f132=function(_0x371501){while(--_0x371501){_0x9eb829['push'](_0x9eb829['shift']());}};_0x30f132(++_0x46bfaf);}(_0x46bf,0x8d));const _0x30f1=function(_0x9eb829,_0x46bfaf){_0x9eb829=_0x9eb829-0x0;let _0x30f132=_0x46bf[_0x9eb829];return _0x30f132;};import'../../theme/commentsarchive.css';import{Plugin as _0x737729}from'ckeditor5/src/core';import{createDropdown as _0x11ca31,ViewCollection as _0x563916}from'ckeditor5/src/ui';import _0x33c521 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x3e982b}from'../utils/common-translations';import _0x35fe97 from'./ui/view/commentsarchiveview';import _0x4b6125 from'./commentsarchive';export default class a extends _0x737729{static get[_0x30f1('0x4')](){return _0x30f1('0x21');}static get[_0x30f1('0xc')](){return[_0x4b6125];}constructor(_0x16b9c6){super(_0x16b9c6),this['annotationViews']=new _0x563916(),this[_0x30f1('0x20')]=[];}[_0x30f1('0x25')](){this[_0x30f1('0x6')]['ui']['componentFactory'][_0x30f1('0x26')]('commentsArchive',()=>this[_0x30f1('0x0')]());const _0x2617e3=this['editor'][_0x30f1('0xb')][_0x30f1('0x1e')](_0x4b6125),_0x4eb499=this[_0x30f1('0x6')][_0x30f1('0xb')][_0x30f1('0x1e')](_0x30f1('0x2b')),_0x473c1f=this[_0x30f1('0x6')][_0x30f1('0xb')][_0x30f1('0x1e')]('CommentsRepository');this[_0x30f1('0x16')](_0x2617e3[_0x30f1('0x18')],_0x30f1('0x26'),(_0x4142f8,_0x45c116)=>{const _0x585bce=this[_0x30f1('0x6')][_0x30f1('0x2f')][_0x30f1('0x1e')]('collaboration.channelId');if(!_0x585bce||_0x45c116['channelId']===_0x585bce){const _0x1b1d02=this['_calculatePosition'](_0x45c116[_0x30f1('0x3')]),_0x4b4847=_0x473c1f[_0x30f1('0x1b')][_0x30f1('0x1e')](_0x45c116);if(!_0x4b4847)return void this['_pendingThreads']['push']({'thread':_0x45c116,'position':_0x1b1d02});const _0x1461fe=_0x4eb499['getByInnerView'](_0x4b4847[_0x30f1('0x5')]);_0x1461fe['isVisible']&&_0x4eb499[_0x30f1('0x27')][_0x30f1('0x2a')](_0x1461fe),this[_0x30f1('0x24')][_0x30f1('0x26')](_0x1461fe[_0x30f1('0x5')],_0x1b1d02);}}),this[_0x30f1('0x16')](_0x4eb499[_0x30f1('0x7')],'add',(_0x30514a,_0xa0a78c)=>{const _0x3fb9b6=this[_0x30f1('0x20')][_0x30f1('0xd')](({thread:_0x121d41})=>{const _0x9bd484=_0x473c1f[_0x30f1('0x1b')][_0x30f1('0x1e')](_0x121d41);return _0x9bd484&&_0xa0a78c[_0x30f1('0x19')]===_0x9bd484[_0x30f1('0x5')];});_0x3fb9b6&&(this[_0x30f1('0x24')][_0x30f1('0x26')](_0xa0a78c['view'],_0x3fb9b6[_0x30f1('0x2d')]),this[_0x30f1('0x20')][_0x30f1('0x1a')](this[_0x30f1('0x20')][_0x30f1('0x29')](_0x3fb9b6),0x1));}),this['listenTo'](_0x2617e3['archivedThreads'],'remove',(_0x32f336,_0x390932)=>{const _0x2c8ffb=this[_0x30f1('0x6')][_0x30f1('0x2f')][_0x30f1('0x1e')](_0x30f1('0x15'));if(!_0x2c8ffb||_0x390932[_0x30f1('0x1c')]===_0x2c8ffb){const _0x3bdf3c=_0x473c1f[_0x30f1('0x1b')][_0x30f1('0x1e')](_0x390932),_0x5f05f8=_0x4eb499[_0x30f1('0x23')](_0x3bdf3c[_0x30f1('0x5')]);this['annotationViews'][_0x30f1('0x2a')](_0x5f05f8[_0x30f1('0x5')]),this['stopListening'](_0x5f05f8[_0x30f1('0x1d')]);}});}[_0x30f1('0x2')](_0xcc6188,_0x3bdf69){for(const _0x397ada of _0x3bdf69[_0x30f1('0x1d')])_0x397ada[_0x30f1('0x14')][_0x30f1('0xe')](_0x30f1('0x11'))&&_0xcc6188[_0x30f1('0x22')][_0x30f1('0x26')](_0x397ada);this['listenTo'](_0x3bdf69[_0x30f1('0x1d')],_0x30f1('0x26'),(_0x514969,_0x11f609)=>{_0x11f609[_0x30f1('0x14')][_0x30f1('0xe')](_0x30f1('0x11'))&&_0xcc6188[_0x30f1('0x22')][_0x30f1('0x26')](_0x11f609);}),this[_0x30f1('0x16')](_0x3bdf69[_0x30f1('0x1d')],_0x30f1('0x2a'),(_0x571650,_0x51073c)=>{_0x51073c[_0x30f1('0x14')][_0x30f1('0xe')](_0x30f1('0x11'))&&_0xcc6188[_0x30f1('0x22')][_0x30f1('0x2a')](_0x51073c);});}[_0x30f1('0x9')](_0x238417){const _0x1f26f0=this['editor'][_0x30f1('0x2f')]['get']('collaboration.channelId'),_0x274e35=[...this[_0x30f1('0x6')][_0x30f1('0xb')][_0x30f1('0x1e')](_0x4b6125)['archivedThreads']][_0x30f1('0x1f')](_0x33530a=>_0x33530a[_0x30f1('0x1c')]===_0x1f26f0)[_0x30f1('0x2c')](_0x1473f3=>_0x1473f3[_0x30f1('0x3')]<_0x238417);return _0x274e35>-0x1?_0x274e35-0x1:this[_0x30f1('0x24')][_0x30f1('0x10')];}[_0x30f1('0x0')](){const _0x4f4cd6=this[_0x30f1('0x6')],_0x4db663=this[_0x30f1('0x6')][_0x30f1('0xb')][_0x30f1('0x1e')](_0x30f1('0x2b')),_0x3eb0de=_0x11ca31(_0x4f4cd6['locale']);_0x3eb0de[_0x30f1('0x2e')][_0x30f1('0xf')]({'icon':_0x33c521,'label':_0x3e982b(_0x4f4cd6['locale'],'COMMENTS_ARCHIVE'),'tooltip':!0x0}),_0x3eb0de[_0x30f1('0x12')][_0x30f1('0x13')]({'attributes':{'class':_0x30f1('0x8')}}),_0x3eb0de['on']('change:isOpen',(_0x3c06ed,_0xc84473,_0x217315)=>{this[_0x30f1('0x1')]||(this[_0x30f1('0x1')]=new _0x35fe97(_0x4f4cd6[_0x30f1('0x17')],this[_0x30f1('0x24')])),_0x217315?_0x3eb0de[_0x30f1('0x12')][_0x30f1('0xa')][_0x30f1('0x26')](this[_0x30f1('0x1')]):_0x3eb0de[_0x30f1('0x12')][_0x30f1('0xa')][_0x30f1('0x2a')](this[_0x30f1('0x1')]);});for(const _0x44d541 of this[_0x30f1('0x24')]){const _0x2d703e=_0x4db663[_0x30f1('0x23')](_0x44d541['mainView']);this[_0x30f1('0x2')](_0x3eb0de,_0x2d703e);}return _0x3eb0de[_0x30f1('0x16')](this[_0x30f1('0x24')],'add',(_0x1fba65,_0x290fbc)=>{const _0x287211=_0x4db663['getByInnerView'](_0x290fbc['mainView']);this[_0x30f1('0x2')](_0x3eb0de,_0x287211);}),_0x3eb0de[_0x30f1('0x16')](this[_0x30f1('0x24')],_0x30f1('0x2a'),(_0x510658,_0x2a13f2)=>{const _0x3ca8fc=_0x4db663[_0x30f1('0x23')](_0x2a13f2[_0x30f1('0x28')]);for(const _0x3a3b27 of _0x3ca8fc['focusableElements'])_0x3a3b27[_0x30f1('0x14')][_0x30f1('0xe')](_0x30f1('0x11'))&&_0x3eb0de[_0x30f1('0x22')][_0x30f1('0x2a')](_0x3a3b27);}),_0x3eb0de;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5ac1=['_handleThreadMarker','hasMarkerForId','addCommentThread','collaboration.channelId','change:activeMarker','addMarker:','editing','root','_detachCommentThread','item','updateMarker','getRange','delete','enqueueChange','$textProxy','text','markers','getWalker','model','getAttribute','scrollToThreadMarker','_attachResolvedThread','_getTargetForId','isResolved','setUnlinkedAt','affectsData','render','dataDowncast','_reconvertMarkers','document','isThreadsLoadingPaused','createRange','attachTo','removeMarker','commands','isObject','destroy','_handleMarkerAddAndRemove','start','once','fetchCommentThread','reconvertMarker','isEqual','switchReadOnly','createPositionBefore','group','change:isReadOnly','set','isCollapsed','hasCommentThread','for','openNewCommentThread','_getTextContext','consume','context','comments','registerAnnotation','upcast','config','archivedAt','getAllMarkersForId','then','conversion','unlinkedAt','_threadToController','getByInnerView','get','addComment','length','_hasTargetInContent','getItems','add','view','push','isAttached','isLocal','differ','getCommentThreads','LEAVE_COMMENT_ANNOUNCEMENT','split','startsWith','schema','low','rootName','markerToData','ariaLiveAnnouncer','removeCommentThread','activeMarker','consumable','setContext','removeMarker:','name','_initAriaMarkerChangeAnnouncements','_attachMarkerToThread','editor','dataToMarker','locale','size','change:isThreadsLoadingPaused','_threads','plugins','data','refreshVisibility','substring','join','change','init','listenTo','CommentsEditing','state','requires','newRange','markerName','announce','comment','editingDowncast','registerPostFixer','getChangedMarkers','getCommentThread','ck-comment-marker--active','$marker'];(function(_0x56fbb8,_0x5ac126){const _0x376a95=function(_0x4e25a2){while(--_0x4e25a2){_0x56fbb8['push'](_0x56fbb8['shift']());}};_0x376a95(++_0x5ac126);}(_0x5ac1,0x1d1));const _0x376a=function(_0x56fbb8,_0x5ac126){_0x56fbb8=_0x56fbb8-0x0;let _0x376a95=_0x5ac1[_0x56fbb8];return _0x376a95;};import{Plugin as _0x1e3676}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x11d671}from'ckeditor5/src/utils';import _0x42654b from'./commentsrepository';import _0x571ea8 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x14416c,getAllMarkersDomElementsSorted as _0x80c220}from'ckeditor5-collaboration/src/collaboration-core';import _0x35ced3 from'../annotations/editorannotations';import _0x4d24bd from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x516e72 from'./integrations/importword';import _0x3d77a2 from'../annotations/annotations';import{getTranslation as _0x459d07}from'../utils/common-translations';export default class r extends _0x1e3676{static get[_0x376a('0x8')](){return[_0x42654b,_0x35ced3,_0x4d24bd,_0x516e72];}static get['pluginName'](){return _0x376a('0x6');}constructor(_0x11aa10){super(_0x11aa10),this[_0x376a('0x42')](_0x376a('0x31'),!0x0),_0x11aa10[_0x376a('0x78')]['once']('ready',()=>this[_0x376a('0x31')]=!0x1),this['set']('activeMarker',null),this['on'](_0x376a('0x17'),(_0x48a0a6,_0x3c3329,_0x4a7db3,_0x4e38c0)=>{const _0x3f96f2=_0x4a7db3?ot(_0x4a7db3)['id']:null;if(_0x11aa10[_0x376a('0x25')]['change'](()=>{if(_0x3f96f2){const _0x3c5fef=this['getAllMarkersForId'](_0x3f96f2);for(const _0x32e296 of _0x3c5fef)_0x11aa10['editing'][_0x376a('0x3c')](_0x32e296);}if(_0x4e38c0){const {id:_0x200a90}=ot(_0x4e38c0),_0x2d94c9=this['getAllMarkersForId'](_0x200a90);for(const _0x4f5da2 of _0x2d94c9)_0x11aa10[_0x376a('0x19')]['reconvertMarker'](_0x4f5da2);}}),_0x3f96f2){const _0x470db2=_0x11aa10[_0x376a('0x77')][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0x3f96f2);_0x470db2&&_0x470db2[_0x376a('0x2a')]&&this[_0x376a('0x27')](_0x3f96f2);}}),this['_initAriaMarkerChangeAnnouncements']();}[_0x376a('0x4')](){const _0x79280e=this[_0x376a('0x71')],_0x4c1608=_0x79280e[_0x376a('0x77')]['get'](_0x42654b),_0x464e9b=_0x79280e[_0x376a('0x4d')]['get'](_0x376a('0x16'));_0x79280e[_0x376a('0x35')]['add'](_0x376a('0x15'),new _0x571ea8(_0x79280e)),this[_0x376a('0x5')](_0x79280e,_0x376a('0x41'),(_0x268aec,_0x243a96,_0x5b6dcc)=>{_0x4c1608[_0x376a('0x3e')](_0x5b6dcc,_0x79280e[_0x376a('0x4d')][_0x376a('0x55')]('collaboration.channelId'));}),this[_0x376a('0x5')](_0x4c1608,tt(_0x376a('0x15'),_0x464e9b),(_0x2463d0,{threadId:_0x52c8dd})=>{const _0x184594=this[_0x376a('0x71')][_0x376a('0x77')][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0x52c8dd);_0x184594&&_0x184594[_0x376a('0x4e')]&&this[_0x376a('0x28')](_0x52c8dd);}),this[_0x376a('0x5')](_0x4c1608,tt(_0x376a('0x69'),_0x464e9b),(_0x23f472,{threadId:_0x1ab6fd})=>{_0x79280e['model'][_0x376a('0x20')]({'isUndoable':!0x1},_0x3f75fb=>{const _0x40f761=this[_0x376a('0x4f')](_0x1ab6fd);for(const _0x20d60c of _0x40f761)_0x3f75fb[_0x376a('0x34')](_0x20d60c);});}),this[_0x376a('0x5')](_0x4c1608,tt('resolveCommentThread',_0x464e9b),(_0x1fd5c4,{threadId:_0xdaebaf})=>{(this[_0x376a('0x28')](_0xdaebaf),this['_reconvertMarkers'](_0xdaebaf),this['editor'][_0x376a('0x19')][_0x376a('0x5b')]['hasDomSelection'])&&(this[_0x376a('0x71')]['plugins'][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0xdaebaf)[_0x376a('0x52')]||this[_0x376a('0x71')][_0x376a('0x19')][_0x376a('0x5b')]['focus']());},{'priority':'low'}),this[_0x376a('0x5')](_0x4c1608,tt('reopenCommentThread',_0x464e9b),(_0x38c61f,{threadId:_0x15daa3})=>{this[_0x376a('0x2f')](_0x15daa3);},{'priority':_0x376a('0x65')}),this[_0x376a('0x5')](_0x4c1608,tt(_0x376a('0x56'),_0x464e9b),(_0x435ed5,{threadId:_0x227af7,isFromAdapter:_0x320ba8})=>{const _0x5ecebc=this['getAllMarkersForId'](_0x227af7);if(_0x320ba8||0x0==_0x5ecebc[_0x376a('0x57')]||!_0x4c1608[_0x376a('0x44')](_0x227af7))return;0x1===_0x4c1608[_0x376a('0x10')](_0x227af7)['length']&&_0x79280e['model'][_0x376a('0x20')]({'isUndoable':!0x1},_0x183a32=>{for(const _0x4a29bc of _0x5ecebc)_0x183a32[_0x376a('0x1d')](_0x4a29bc,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this[_0x376a('0x38')]();}['destroy'](){const _0x1ead5f=this[_0x376a('0x71')]['plugins'][_0x376a('0x55')](_0x42654b),_0x357a01=this[_0x376a('0x71')][_0x376a('0x4d')][_0x376a('0x55')](_0x376a('0x16'));for(const _0x2cb021 of _0x1ead5f[_0x376a('0x60')]({'channelId':_0x357a01}))_0x1ead5f[_0x376a('0x1b')](_0x2cb021['id']),_0x1ead5f[_0x376a('0x76')][_0x376a('0x1f')](_0x2cb021['id']);super[_0x376a('0x37')]();}[_0x376a('0x14')](_0x35d34f){return this[_0x376a('0x4f')](_0x35d34f)['length']>0x0;}[_0x376a('0x4f')](_0x11af53){const _0x3ba4a3=[];for(const _0x3a8094 of this[_0x376a('0x71')]['model']['markers'])_0x3a8094['name'][_0x376a('0x63')]('comment:'+_0x11af53)&&_0x3ba4a3[_0x376a('0x5c')](_0x3a8094);return _0x3ba4a3;}[_0x376a('0x27')](_0x327b0a){const _0x3d0435=this[_0x376a('0x29')](_0x327b0a);_0x3d0435&&setTimeout(()=>{this[_0x376a('0x6a')]&&ot(this[_0x376a('0x6a')])['id']===_0x327b0a&&_0x11d671({'target':_0x3d0435[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xfe5818){this[_0x376a('0x71')][_0x376a('0x25')][_0x376a('0x3')](()=>{for(const _0x139d03 of this[_0x376a('0x4f')](_0xfe5818))this['editor'][_0x376a('0x19')][_0x376a('0x3c')](_0x139d03);});}['_attachResolvedThread'](_0x15d9f4){const _0x2c8b9a=this[_0x376a('0x71')][_0x376a('0x77')][_0x376a('0x55')](_0x42654b),_0x1ea714=this[_0x376a('0x71')][_0x376a('0x77')][_0x376a('0x55')](_0x35ced3),_0x470175=_0x2c8b9a[_0x376a('0x10')](_0x15d9f4);if(!_0x470175[_0x376a('0x5d')]){const _0x22fe1f=_0x470175['attachTo'](()=>this[_0x376a('0x29')](_0x470175['id']));_0x1ea714['registerAnnotation'](_0x22fe1f),_0x470175[_0x376a('0x58')]=!0x1;}}['_initializeMarkerConverters'](){const _0x4f9f63=this[_0x376a('0x71')];_0x4f9f63['conversion'][_0x376a('0x45')](_0x376a('0xd'))['markerToHighlight']({'model':_0x376a('0xc'),'view':(_0x70050c,_0x4e4c94)=>{const {id:_0x2cf339}=ot(_0x70050c[_0x376a('0xa')]),_0x4f2dec=_0x4f9f63[_0x376a('0x77')][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0x2cf339),_0x41c378=this['activeMarker']&&ot(this[_0x376a('0x6a')])['id']===_0x2cf339;if(_0x4f2dec&&_0x4f2dec[_0x376a('0x2a')]&&!_0x41c378&&_0x70050c['item'])return _0x4e4c94['consumable'][_0x376a('0x48')](_0x70050c[_0x376a('0x1c')],_0x376a('0x18')+_0x70050c['markerName']),_0x4e4c94[_0x376a('0x6b')][_0x376a('0x48')](_0x70050c[_0x376a('0x1c')],_0x376a('0x6d')+_0x70050c['markerName']),{'classes':[]};const _0x48d8f8=['ck-comment-marker'];return _0x41c378&&_0x48d8f8[_0x376a('0x5c')](_0x376a('0x11')),{'classes':_0x48d8f8,'attributes':{'data-comment':_0x2cf339}};}}),_0x4f9f63[_0x376a('0x51')][_0x376a('0x45')](_0x376a('0x2e'))[_0x376a('0x67')]({'model':_0x376a('0xc'),'view':(_0x2fcd88,{options:_0x1e4489})=>{const _0x336543=_0x4f9f63[_0x376a('0x77')][_0x376a('0x55')](_0x42654b),_0x15fe89=_0x4f9f63[_0x376a('0x25')]['markers']['get'](_0x2fcd88),{id:_0x1023ce,part:_0x24ee4a}=ot(_0x2fcd88);if(_0x15fe89&&!_0x15fe89[_0x376a('0x2c')])return null;if(_0x1e4489['ignoreResolvedComments']){const _0x58e38e=_0x336543[_0x376a('0x10')](_0x1023ce);if(_0x58e38e&&_0x58e38e[_0x376a('0x2a')])return null;}return{'group':_0x376a('0xc'),'name':_0x24ee4a?_0x1023ce+':'+_0x24ee4a:_0x1023ce};}}),_0x4f9f63[_0x376a('0x51')][_0x376a('0x45')](_0x376a('0x4c'))['elementToElement']({'view':{'name':_0x376a('0xc'),'attributes':{'id':/^\w/}},'model':(_0xf56158,{writer:_0x204dec})=>_0x204dec['createElement'](_0x376a('0x12'),{'data-name':'comment:'+_0xf56158[_0x376a('0x26')]('id')})}),_0x4f9f63[_0x376a('0x51')][_0x376a('0x45')]('upcast')[_0x376a('0x72')]({'view':_0x376a('0xc')});}[_0x376a('0x38')](){const _0x40d519=this['editor'],_0x5a722d=_0x40d519[_0x376a('0x77')][_0x376a('0x55')](_0x42654b),_0x5dddff=new Set(),_0xec15a=new Set();_0x40d519[_0x376a('0x25')][_0x376a('0x30')][_0x376a('0xe')](_0x423927=>{let _0x53cb3c=!0x1;for(const {name:_0x4a58e5,data:_0xe925e9}of _0x40d519[_0x376a('0x25')][_0x376a('0x30')][_0x376a('0x5f')]['getChangedMarkers']()){const {group:_0x2befb0,id:_0x53d45a}=ot(_0x4a58e5);let _0x51fb2d=_0xe925e9[_0x376a('0x9')];if(_0x376a('0xc')!==_0x2befb0||!_0x51fb2d)continue;const _0xa1ab6f='$graveyard'===_0x51fb2d[_0x376a('0x1a')][_0x376a('0x66')];_0xa1ab6f||(_0x51fb2d=et(_0x51fb2d,_0x40d519[_0x376a('0x25')]),!_0x51fb2d||_0x51fb2d[_0x376a('0x43')]||!_0xe925e9[_0x376a('0x9')]||_0x51fb2d[_0x376a('0x3d')](_0xe925e9['newRange']))?_0x40d519['model']['hasContent'](_0x51fb2d)&&!_0xa1ab6f?this[_0x376a('0x31')]?_0x5dddff['add'](_0x4a58e5):this['_handleThreadMarker'](_0x4a58e5,_0x53d45a):(_0xec15a['add'](_0x4a58e5),_0x5dddff[_0x376a('0x1f')](_0x4a58e5),_0x423927['removeMarker'](_0x4a58e5),_0x53cb3c=!0x0):(_0x423927[_0x376a('0x1d')](_0x4a58e5,{'range':_0x51fb2d}),_0x53cb3c=!0x0);}return _0x53cb3c;}),this['on'](_0x376a('0x75'),(_0x4c0bd1,_0x5e82f7,_0x198a75)=>{if(!_0x198a75&&_0x5dddff[_0x376a('0x74')])for(const _0x5d09cc of _0x5dddff){const {id:_0x5db44b}=ot(_0x5d09cc);_0x5dddff[_0x376a('0x1f')](_0x5d09cc),_0x40d519[_0x376a('0x25')][_0x376a('0x23')][_0x376a('0x55')](_0x5d09cc)&&this[_0x376a('0x13')](_0x5d09cc,_0x5db44b);}}),this[_0x376a('0x5')](_0x40d519[_0x376a('0x25')][_0x376a('0x30')],_0x376a('0x3'),(_0x17cd81,_0xaea202)=>{for(const {name:_0x3771d3,data:{newRange:_0x1d2f9c}}of _0x40d519[_0x376a('0x25')][_0x376a('0x30')][_0x376a('0x5f')][_0x376a('0xf')]()){const {group:_0x4694dd,id:_0x19acbe}=ot(_0x3771d3);if('comment'!==_0x4694dd)continue;const _0xfacc96=_0x5a722d[_0x376a('0x10')](_0x19acbe),_0x1c0127=this[_0x376a('0x14')](_0x19acbe);_0xfacc96&&(_0xfacc96[_0x376a('0x58')]||_0x40d519['editing']['view'][_0x376a('0x3a')](_0x376a('0x2d'),()=>{const _0x25b859=_0x40d519[_0x376a('0x77')][_0x376a('0x55')](_0x3d77a2),_0xfec2c3=_0x5a722d[_0x376a('0x53')][_0x376a('0x55')](_0xfacc96)[_0x376a('0x5b')];_0x25b859[_0x376a('0x54')](_0xfec2c3)[_0x376a('0x0')]();},{'priority':_0x376a('0x65')}),_0xfacc96[_0x376a('0x58')]=_0x1c0127||!!_0x1d2f9c),_0x1d2f9c||(_0xec15a[_0x376a('0x5a')](_0x3771d3),_0x5dddff[_0x376a('0x1f')](_0x3771d3));}if(_0xaea202[_0x376a('0x5e')])for(const _0x346561 of _0xec15a){const {id:_0x593caf}=ot(_0x346561),_0x3d7a9a=_0x5a722d[_0x376a('0x10')](_0x593caf),_0x285468=this[_0x376a('0x14')](_0x593caf);_0x5dddff[_0x376a('0x1f')](_0x346561),!_0x3d7a9a||_0x285468||_0x3d7a9a[_0x376a('0x52')]||_0x3d7a9a[_0x376a('0x2b')](new Date());}_0xec15a['clear']();});}['_getTargetForId'](_0x1ddf8f){const _0x3b3224=this[_0x376a('0x71')],_0x44f55a=this[_0x376a('0x4f')](_0x1ddf8f);return _0x80c220(_0x3b3224[_0x376a('0x19')],_0x44f55a);}[_0x376a('0x47')](_0x359237){const _0x16a715=this[_0x376a('0x4f')](_0x359237);let _0x332b1a='',_0x423eec=!0x1;for(const _0x30b0ce of _0x16a715){const _0x513f7b=_0x30b0ce[_0x376a('0x1e')]();for(const _0x50676b of Array['from'](_0x513f7b[_0x376a('0x59')]()))_0x50676b['is'](_0x376a('0x21'))?(_0x332b1a&&_0x423eec&&(_0x332b1a+='\x20',_0x423eec=!0x1),_0x332b1a+=_0x50676b[_0x376a('0x78')]):_0x423eec=!0x0;_0x423eec=!0x0;}return _0x332b1a[_0x376a('0x1')](0x0,0x96);}[_0x376a('0x70')](_0xd1e7d4,_0x42afe1){const _0x45c225=this[_0x376a('0x71')],_0xfae551=_0x45c225[_0x376a('0x77')][_0x376a('0x55')](_0x42654b);let _0x1c9555=_0xfae551[_0x376a('0x10')](_0x42afe1);const _0x3c56d1=_0x45c225[_0x376a('0x4d')][_0x376a('0x55')]('collaboration.channelId'),_0x55a250=_0x45c225['plugins'][_0x376a('0x55')](_0x35ced3);if(_0x1c9555&&(_0x1c9555['unlinkedAt']&&_0x1c9555['setUnlinkedAt'](null),_0x1c9555['isAttached']))return _0x1c9555;return!this[_0x376a('0x4f')](_0x42afe1)[0x0]['managedUsingOperations']?_0x45c225['editing']['view'][_0x376a('0x3a')](_0x376a('0x2d'),()=>{if(_0xfae551[_0x376a('0x10')](_0x42afe1))return;const _0xbd5b6b=_0x45c225['plugins']['get'](_0x3d77a2);_0x1c9555=_0xfae551[_0x376a('0x46')]({'channelId':_0x3c56d1,'threadId':_0x42afe1,'target':()=>this[_0x376a('0x29')](_0x42afe1),'context':{'type':_0x376a('0x22'),'value':this['_getTextContext'](_0x42afe1)}});const _0x3909e2=_0xfae551[_0x376a('0x53')][_0x376a('0x55')](_0x1c9555)[_0x376a('0x5b')],_0x4c4985=_0xbd5b6b[_0x376a('0x54')](_0x3909e2);_0x4c4985&&_0x55a250[_0x376a('0x4b')](_0x4c4985);},{'priority':_0x376a('0x65')}):_0xfae551[_0x376a('0x3b')]({'channelId':_0x3c56d1,'threadId':_0x42afe1})[_0x376a('0x50')](_0x1b3fd9=>{if('destroyed'!==_0x45c225[_0x376a('0x7')]){if(_0x1c9555=_0x1b3fd9,_0x1c9555&&!_0x1c9555[_0x376a('0x5d')]){const _0x1568c8=_0x1c9555[_0x376a('0x33')](()=>this[_0x376a('0x29')](_0x42afe1));_0x55a250[_0x376a('0x4b')](_0x1568c8),_0x1c9555[_0x376a('0x2a')]&&this[_0x376a('0x2f')](_0x42afe1);}else{if(!_0x1c9555){const _0x5e2d07=this[_0x376a('0x4f')](_0x42afe1);_0x45c225['model'][_0x376a('0x3')](_0x1541ac=>{for(const _0x12edb2 of _0x5e2d07)_0x1541ac[_0x376a('0x34')](_0x12edb2);});}}}}),_0x1c9555;}[_0x376a('0x13')](_0x477a60,_0x15c3b1){const _0x2f9841=this[_0x376a('0x70')](_0x477a60,_0x15c3b1);_0x2f9841&&!_0x2f9841[_0x376a('0x49')]&&_0x2f9841[_0x376a('0x6c')]({'type':_0x376a('0x22'),'value':this['_getTextContext'](_0x15c3b1)});}[_0x376a('0x6f')](){const _0x24a3cf=this[_0x376a('0x71')];_0x14416c(_0x24a3cf['model'],({left:_0x4bccbe,entered:_0x5eb154})=>{const _0x2b2e68=[];for(const _0x2c5294 of _0x4bccbe)if(rt(_0x2c5294)){_0x2b2e68[_0x376a('0x5c')](_0x459d07(_0x24a3cf[_0x376a('0x73')],_0x376a('0x61')));break;}for(const _0x1d606d of _0x5eb154)if(rt(_0x1d606d)){_0x2b2e68[_0x376a('0x5c')](_0x459d07(_0x24a3cf[_0x376a('0x73')],'ENTER_COMMENT_ANNOUNCEMENT'));break;}_0x2b2e68[_0x376a('0x57')]&&_0x24a3cf['ui'][_0x376a('0x68')][_0x376a('0xb')](_0x376a('0x4a'),_0x2b2e68[_0x376a('0x2')]('\x20'));});}}function tt(_0x240cab,_0xebdd60){return _0xebdd60?_0x240cab+':'+_0xebdd60:_0x240cab;}function ot(_0x4fa8f5){const _0x5d8883=_0x4fa8f5[_0x376a('0x62')](':');return{'group':_0x5d8883[0x0],'id':_0x5d8883[0x1],'part':_0x5d8883[0x2]};}function et(_0x55e127,_0x364252){const _0x437ea6=_0x364252[_0x376a('0x64')],_0x23e083=_0x364252[_0x376a('0x32')](_0x55e127[_0x376a('0x39')]);for(const _0x1a701e of _0x55e127[_0x376a('0x24')]()){const {type:_0x21848c,item:_0x1583e4,nextPosition:_0x55c3fc}=_0x1a701e;if(_0x376a('0x22')===_0x21848c||_0x437ea6[_0x376a('0x36')](_0x1583e4)){const _0x520992=_0x364252[_0x376a('0x3f')](_0x1583e4);_0x23e083[_0x376a('0x43')]&&(_0x23e083[_0x376a('0x39')]=_0x520992),_0x23e083['end']=_0x55c3fc;}}return _0x23e083;}function rt(_0x11d3e3){return _0x376a('0xc')===ot(_0x11d3e3[_0x376a('0x6e')])[_0x376a('0x40')];}
|
|
23
|
+
const _0x1bb3=['ignoreResolvedComments','markers','removeMarker','from','_handleMarkerAddAndRemove','reconvertMarker','pluginName','delete','getAllMarkersForId','isObject','length','refreshVisibility','_handleThreadMarker','low','listenTo','push','_initAriaMarkerChangeAnnouncements','config','setUnlinkedAt','LEAVE_COMMENT_ANNOUNCEMENT','managedUsingOperations','model','name','differ','openNewCommentThread','comment','$textProxy','end','getWalker','getItems','comment:','addMarker:','fetchCommentThread','context','ck-comment-marker--active','newRange','change:isReadOnly','item','commands','render','comments','_getTextContext','dataToMarker','editing','getAttribute','ck-comment-marker','_threadToController','schema','consume','unlinkedAt','substring','scrollToThreadMarker','hasDomSelection','destroy','document','registerPostFixer','hasCommentThread','_reconvertMarkers','switchReadOnly','plugins','getCommentThreads','destroyed','registerAnnotation','_attachResolvedThread','start','_initializeMarkerConverters','addCommentThread','conversion','startsWith','state','get','addComment','updateMarker','isLocal','createRange','join','archivedAt','for','markerToHighlight','upcast','attachTo','split','init','add','isEqual','data','_detachCommentThread','createPositionBefore','isCollapsed','hasMarkerForId','removeMarker:','change','enqueueChange','CommentsEditing','change:activeMarker','_hasTargetInContent','set','getRange','markerName','locale','once','activeMarker','reopenCommentThread','ready','requires','isThreadsLoadingPaused','clear','affectsData','text','isResolved','collaboration.channelId','setContext','editor','_getTargetForId','isAttached','getCommentThread','$marker','getChangedMarkers','view','rootName','removeCommentThread','focus'];(function(_0x5c4a70,_0x1bb37d){const _0x455351=function(_0x1390a7){while(--_0x1390a7){_0x5c4a70['push'](_0x5c4a70['shift']());}};_0x455351(++_0x1bb37d);}(_0x1bb3,0x1e8));const _0x4553=function(_0x5c4a70,_0x1bb37d){_0x5c4a70=_0x5c4a70-0x0;let _0x455351=_0x1bb3[_0x5c4a70];return _0x455351;};import{Plugin as _0x3a8dfd}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x476550}from'ckeditor5/src/utils';import _0x2f3864 from'./commentsrepository';import _0x20a6c4 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x207c92,getAllMarkersDomElementsSorted as _0x2658f7}from'ckeditor5-collaboration/src/collaboration-core';import _0x4396e1 from'../annotations/editorannotations';import _0x5b83ad from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x126733 from'./integrations/importword';import _0x3a3722 from'../annotations/annotations';import{getTranslation as _0x495d88}from'../utils/common-translations';export default class r extends _0x3a8dfd{static get[_0x4553('0x68')](){return[_0x2f3864,_0x4396e1,_0x5b83ad,_0x126733];}static get[_0x4553('0x6')](){return _0x4553('0x5d');}constructor(_0x56d1cc){super(_0x56d1cc),this[_0x4553('0x60')](_0x4553('0x69'),!0x0),_0x56d1cc[_0x4553('0x55')]['once'](_0x4553('0x67'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0x4553('0x60')](_0x4553('0x65'),null),this['on'](_0x4553('0x5e'),(_0x5f387e,_0x5812cf,_0xbda505,_0x53b5ee)=>{const _0x22c20c=_0xbda505?ot(_0xbda505)['id']:null;if(_0x56d1cc[_0x4553('0x15')][_0x4553('0x5b')](()=>{if(_0x22c20c){const _0x1bb4f4=this[_0x4553('0x8')](_0x22c20c);for(const _0x5a9ab3 of _0x1bb4f4)_0x56d1cc[_0x4553('0x2b')]['reconvertMarker'](_0x5a9ab3);}if(_0x53b5ee){const {id:_0x2f84fd}=ot(_0x53b5ee),_0x1a9c37=this[_0x4553('0x8')](_0x2f84fd);for(const _0x50998f of _0x1a9c37)_0x56d1cc[_0x4553('0x2b')][_0x4553('0x5')](_0x50998f);}}),_0x22c20c){const _0x35f677=_0x56d1cc[_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864)[_0x4553('0x73')](_0x22c20c);_0x35f677&&_0x35f677[_0x4553('0x6d')]&&this[_0x4553('0x33')](_0x22c20c);}}),this[_0x4553('0x10')]();}[_0x4553('0x52')](){const _0x1093d1=this[_0x4553('0x70')],_0x89321f=_0x1093d1['plugins'][_0x4553('0x46')](_0x2f3864),_0x253fad=_0x1093d1[_0x4553('0x11')]['get'](_0x4553('0x6e'));_0x1093d1[_0x4553('0x26')]['add'](_0x4553('0x42'),new _0x20a6c4(_0x1093d1)),this['listenTo'](_0x1093d1,_0x4553('0x24'),(_0x22ca36,_0x1120b8,_0x1640c5)=>{_0x89321f[_0x4553('0x3a')](_0x1640c5,_0x1093d1['config'][_0x4553('0x46')]('collaboration.channelId'));}),this[_0x4553('0xe')](_0x89321f,tt(_0x4553('0x42'),_0x253fad),(_0xdec21c,{threadId:_0x5d882b})=>{const _0x5a46f1=this[_0x4553('0x70')][_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864)['getCommentThread'](_0x5d882b);_0x5a46f1&&_0x5a46f1[_0x4553('0x4c')]&&this[_0x4553('0x3f')](_0x5d882b);}),this['listenTo'](_0x89321f,tt(_0x4553('0x78'),_0x253fad),(_0x396032,{threadId:_0x39926d})=>{_0x1093d1[_0x4553('0x15')]['enqueueChange']({'isUndoable':!0x1},_0x220263=>{const _0x145610=this[_0x4553('0x8')](_0x39926d);for(const _0x4f26a4 of _0x145610)_0x220263[_0x4553('0x2')](_0x4f26a4);});}),this[_0x4553('0xe')](_0x89321f,tt('resolveCommentThread',_0x253fad),(_0x553763,{threadId:_0x57d049})=>{(this[_0x4553('0x3f')](_0x57d049),this[_0x4553('0x39')](_0x57d049),this[_0x4553('0x70')][_0x4553('0x2b')]['view'][_0x4553('0x34')])&&(this[_0x4553('0x70')][_0x4553('0x3b')]['get'](_0x2f3864)[_0x4553('0x73')](_0x57d049)[_0x4553('0x31')]||this['editor'][_0x4553('0x2b')]['view'][_0x4553('0x79')]());},{'priority':'low'}),this[_0x4553('0xe')](_0x89321f,tt(_0x4553('0x66'),_0x253fad),(_0x14b48c,{threadId:_0x5e7256})=>{this[_0x4553('0x39')](_0x5e7256);},{'priority':'low'}),this[_0x4553('0xe')](_0x89321f,tt(_0x4553('0x47'),_0x253fad),(_0x1fa474,{threadId:_0x11cfb4,isFromAdapter:_0x3d76bb})=>{const _0x1f1c52=this[_0x4553('0x8')](_0x11cfb4);if(_0x3d76bb||0x0==_0x1f1c52['length']||!_0x89321f[_0x4553('0x38')](_0x11cfb4))return;0x1===_0x89321f[_0x4553('0x73')](_0x11cfb4)[_0x4553('0xa')]&&_0x1093d1[_0x4553('0x15')][_0x4553('0x5c')]({'isUndoable':!0x1},_0x154853=>{for(const _0x45e1f4 of _0x1f1c52)_0x154853[_0x4553('0x48')](_0x45e1f4,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x4553('0xd')}),this['_initializeMarkerConverters'](),this[_0x4553('0x4')]();}[_0x4553('0x35')](){const _0x5c38c3=this[_0x4553('0x70')][_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864),_0x4d8675=this[_0x4553('0x70')][_0x4553('0x11')]['get'](_0x4553('0x6e'));for(const _0xdc0f8 of _0x5c38c3[_0x4553('0x3c')]({'channelId':_0x4d8675}))_0x5c38c3[_0x4553('0x56')](_0xdc0f8['id']),_0x5c38c3['_threads']['delete'](_0xdc0f8['id']);super['destroy']();}[_0x4553('0x59')](_0x484983){return this[_0x4553('0x8')](_0x484983)[_0x4553('0xa')]>0x0;}[_0x4553('0x8')](_0x517afa){const _0x49b2a5=[];for(const _0x3d2e60 of this['editor'][_0x4553('0x15')][_0x4553('0x1')])_0x3d2e60[_0x4553('0x16')][_0x4553('0x44')](_0x4553('0x1e')+_0x517afa)&&_0x49b2a5[_0x4553('0xf')](_0x3d2e60);return _0x49b2a5;}[_0x4553('0x33')](_0x56185e){const _0x51cc56=this[_0x4553('0x71')](_0x56185e);_0x51cc56&&setTimeout(()=>{this[_0x4553('0x65')]&&ot(this[_0x4553('0x65')])['id']===_0x56185e&&_0x476550({'target':_0x51cc56[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x396f71){this['editor']['model'][_0x4553('0x5b')](()=>{for(const _0x15cd49 of this[_0x4553('0x8')](_0x396f71))this[_0x4553('0x70')][_0x4553('0x2b')]['reconvertMarker'](_0x15cd49);});}[_0x4553('0x3f')](_0x46c63d){const _0x44282e=this['editor']['plugins']['get'](_0x2f3864),_0x3db748=this[_0x4553('0x70')][_0x4553('0x3b')][_0x4553('0x46')](_0x4396e1),_0x579209=_0x44282e['getCommentThread'](_0x46c63d);if(!_0x579209[_0x4553('0x72')]){const _0x3c3e7d=_0x579209[_0x4553('0x50')](()=>this[_0x4553('0x71')](_0x579209['id']));_0x3db748[_0x4553('0x3e')](_0x3c3e7d),_0x579209['_hasTargetInContent']=!0x1;}}[_0x4553('0x41')](){const _0xa95b2e=this[_0x4553('0x70')];_0xa95b2e[_0x4553('0x43')][_0x4553('0x4d')]('editingDowncast')[_0x4553('0x4e')]({'model':_0x4553('0x19'),'view':(_0x2a9fa7,_0x27463f)=>{const {id:_0x1ed944}=ot(_0x2a9fa7[_0x4553('0x62')]),_0x3e75ce=_0xa95b2e[_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864)[_0x4553('0x73')](_0x1ed944),_0x44d43e=this[_0x4553('0x65')]&&ot(this['activeMarker'])['id']===_0x1ed944;if(_0x3e75ce&&_0x3e75ce[_0x4553('0x6d')]&&!_0x44d43e&&_0x2a9fa7[_0x4553('0x25')])return _0x27463f['consumable'][_0x4553('0x30')](_0x2a9fa7['item'],_0x4553('0x1f')+_0x2a9fa7[_0x4553('0x62')]),_0x27463f['consumable'][_0x4553('0x30')](_0x2a9fa7['item'],_0x4553('0x5a')+_0x2a9fa7[_0x4553('0x62')]),{'classes':[]};const _0x1403bd=[_0x4553('0x2d')];return _0x44d43e&&_0x1403bd['push'](_0x4553('0x22')),{'classes':_0x1403bd,'attributes':{'data-comment':_0x1ed944}};}}),_0xa95b2e['conversion'][_0x4553('0x4d')]('dataDowncast')['markerToData']({'model':'comment','view':(_0x464d96,{options:_0x561add})=>{const _0x297062=_0xa95b2e['plugins'][_0x4553('0x46')](_0x2f3864),_0x140e67=_0xa95b2e[_0x4553('0x15')][_0x4553('0x1')][_0x4553('0x46')](_0x464d96),{id:_0x32b5bc,part:_0x4fdfd3}=ot(_0x464d96);if(_0x140e67&&!_0x140e67[_0x4553('0x6b')])return null;if(_0x561add[_0x4553('0x0')]){const _0x58d66a=_0x297062[_0x4553('0x73')](_0x32b5bc);if(_0x58d66a&&_0x58d66a['isResolved'])return null;}return{'group':_0x4553('0x19'),'name':_0x4fdfd3?_0x32b5bc+':'+_0x4fdfd3:_0x32b5bc};}}),_0xa95b2e[_0x4553('0x43')][_0x4553('0x4d')](_0x4553('0x4f'))['elementToElement']({'view':{'name':_0x4553('0x19'),'attributes':{'id':/^\w/}},'model':(_0x265ca9,{writer:_0x3c8fb6})=>_0x3c8fb6['createElement'](_0x4553('0x74'),{'data-name':_0x4553('0x1e')+_0x265ca9[_0x4553('0x2c')]('id')})}),_0xa95b2e[_0x4553('0x43')][_0x4553('0x4d')]('upcast')[_0x4553('0x2a')]({'view':_0x4553('0x19')});}['_handleMarkerAddAndRemove'](){const _0x129be2=this[_0x4553('0x70')],_0x2f10ab=_0x129be2['plugins'][_0x4553('0x46')](_0x2f3864),_0x567d40=new Set(),_0x3f9d24=new Set();_0x129be2[_0x4553('0x15')][_0x4553('0x36')][_0x4553('0x37')](_0xcfc1df=>{let _0x113314=!0x1;for(const {name:_0x2a23e5,data:_0x4a1950}of _0x129be2[_0x4553('0x15')][_0x4553('0x36')][_0x4553('0x17')][_0x4553('0x75')]()){const {group:_0x51d314,id:_0x98b494}=ot(_0x2a23e5);let _0x44db6d=_0x4a1950[_0x4553('0x23')];if('comment'!==_0x51d314||!_0x44db6d)continue;const _0x587fe3='$graveyard'===_0x44db6d['root'][_0x4553('0x77')];_0x587fe3||(_0x44db6d=et(_0x44db6d,_0x129be2[_0x4553('0x15')]),!_0x44db6d||_0x44db6d[_0x4553('0x58')]||!_0x4a1950[_0x4553('0x23')]||_0x44db6d[_0x4553('0x54')](_0x4a1950[_0x4553('0x23')]))?_0x129be2[_0x4553('0x15')]['hasContent'](_0x44db6d)&&!_0x587fe3?this[_0x4553('0x69')]?_0x567d40[_0x4553('0x53')](_0x2a23e5):this[_0x4553('0xc')](_0x2a23e5,_0x98b494):(_0x3f9d24['add'](_0x2a23e5),_0x567d40['delete'](_0x2a23e5),_0xcfc1df['removeMarker'](_0x2a23e5),_0x113314=!0x0):(_0xcfc1df[_0x4553('0x48')](_0x2a23e5,{'range':_0x44db6d}),_0x113314=!0x0);}return _0x113314;}),this['on']('change:isThreadsLoadingPaused',(_0x5c4f99,_0xc20035,_0x43d048)=>{if(!_0x43d048&&_0x567d40['size'])for(const _0x28fe7d of _0x567d40){const {id:_0x3318f3}=ot(_0x28fe7d);_0x567d40[_0x4553('0x7')](_0x28fe7d),_0x129be2[_0x4553('0x15')]['markers'][_0x4553('0x46')](_0x28fe7d)&&this[_0x4553('0xc')](_0x28fe7d,_0x3318f3);}}),this[_0x4553('0xe')](_0x129be2[_0x4553('0x15')][_0x4553('0x36')],_0x4553('0x5b'),(_0x1c3dd8,_0x1dd490)=>{for(const {name:_0x15a1d2,data:{newRange:_0x4b1546}}of _0x129be2[_0x4553('0x15')][_0x4553('0x36')]['differ'][_0x4553('0x75')]()){const {group:_0x5db00a,id:_0x343273}=ot(_0x15a1d2);if(_0x4553('0x19')!==_0x5db00a)continue;const _0x5c6214=_0x2f10ab[_0x4553('0x73')](_0x343273),_0x17572f=this[_0x4553('0x59')](_0x343273);_0x5c6214&&(_0x5c6214[_0x4553('0x5f')]||_0x129be2[_0x4553('0x2b')][_0x4553('0x76')][_0x4553('0x64')](_0x4553('0x27'),()=>{const _0x1a363e=_0x129be2[_0x4553('0x3b')][_0x4553('0x46')](_0x3a3722),_0xb14ba5=_0x2f10ab[_0x4553('0x2e')]['get'](_0x5c6214)[_0x4553('0x76')];_0x1a363e['getByInnerView'](_0xb14ba5)[_0x4553('0xb')]();},{'priority':_0x4553('0xd')}),_0x5c6214[_0x4553('0x5f')]=_0x17572f||!!_0x4b1546),_0x4b1546||(_0x3f9d24[_0x4553('0x53')](_0x15a1d2),_0x567d40[_0x4553('0x7')](_0x15a1d2));}if(_0x1dd490[_0x4553('0x49')])for(const _0x32691e of _0x3f9d24){const {id:_0x522b57}=ot(_0x32691e),_0x16b17c=_0x2f10ab['getCommentThread'](_0x522b57),_0x5538d4=this['hasMarkerForId'](_0x522b57);_0x567d40[_0x4553('0x7')](_0x32691e),!_0x16b17c||_0x5538d4||_0x16b17c['unlinkedAt']||_0x16b17c[_0x4553('0x12')](new Date());}_0x3f9d24[_0x4553('0x6a')]();});}['_getTargetForId'](_0x51a88d){const _0x1d79d0=this[_0x4553('0x70')],_0x2215e2=this['getAllMarkersForId'](_0x51a88d);return _0x2658f7(_0x1d79d0[_0x4553('0x2b')],_0x2215e2);}[_0x4553('0x29')](_0x2b030d){const _0x1766d7=this[_0x4553('0x8')](_0x2b030d);let _0x2a3641='',_0x8466c2=!0x1;for(const _0x326eb5 of _0x1766d7){const _0x46872c=_0x326eb5[_0x4553('0x61')]();for(const _0x149ae9 of Array[_0x4553('0x3')](_0x46872c[_0x4553('0x1d')]()))_0x149ae9['is'](_0x4553('0x1a'))?(_0x2a3641&&_0x8466c2&&(_0x2a3641+='\x20',_0x8466c2=!0x1),_0x2a3641+=_0x149ae9['data']):_0x8466c2=!0x0;_0x8466c2=!0x0;}return _0x2a3641[_0x4553('0x32')](0x0,0x96);}['_attachMarkerToThread'](_0x508cc6,_0x14a789){const _0x4a1da0=this[_0x4553('0x70')],_0x5cbd17=_0x4a1da0['plugins']['get'](_0x2f3864);let _0x429b9f=_0x5cbd17['getCommentThread'](_0x14a789);const _0x5b8736=_0x4a1da0[_0x4553('0x11')]['get'](_0x4553('0x6e')),_0x26e9db=_0x4a1da0[_0x4553('0x3b')][_0x4553('0x46')](_0x4396e1);if(_0x429b9f&&(_0x429b9f[_0x4553('0x31')]&&_0x429b9f[_0x4553('0x12')](null),_0x429b9f[_0x4553('0x72')]))return _0x429b9f;return!this[_0x4553('0x8')](_0x14a789)[0x0][_0x4553('0x14')]?_0x4a1da0[_0x4553('0x2b')][_0x4553('0x76')]['once'](_0x4553('0x27'),()=>{if(_0x5cbd17[_0x4553('0x73')](_0x14a789))return;const _0x5988c3=_0x4a1da0[_0x4553('0x3b')][_0x4553('0x46')](_0x3a3722);_0x429b9f=_0x5cbd17[_0x4553('0x18')]({'channelId':_0x5b8736,'threadId':_0x14a789,'target':()=>this[_0x4553('0x71')](_0x14a789),'context':{'type':'text','value':this[_0x4553('0x29')](_0x14a789)}});const _0x336d92=_0x5cbd17[_0x4553('0x2e')][_0x4553('0x46')](_0x429b9f)['view'],_0x1a6806=_0x5988c3['getByInnerView'](_0x336d92);_0x1a6806&&_0x26e9db[_0x4553('0x3e')](_0x1a6806);},{'priority':_0x4553('0xd')}):_0x5cbd17[_0x4553('0x20')]({'channelId':_0x5b8736,'threadId':_0x14a789})['then'](_0x27a949=>{if(_0x4553('0x3d')!==_0x4a1da0[_0x4553('0x45')]){if(_0x429b9f=_0x27a949,_0x429b9f&&!_0x429b9f[_0x4553('0x72')]){const _0xcaa09e=_0x429b9f[_0x4553('0x50')](()=>this['_getTargetForId'](_0x14a789));_0x26e9db[_0x4553('0x3e')](_0xcaa09e),_0x429b9f[_0x4553('0x6d')]&&this[_0x4553('0x39')](_0x14a789);}else{if(!_0x429b9f){const _0x3fe852=this[_0x4553('0x8')](_0x14a789);_0x4a1da0[_0x4553('0x15')]['change'](_0x32a8c1=>{for(const _0x55f5fb of _0x3fe852)_0x32a8c1[_0x4553('0x2')](_0x55f5fb);});}}}}),_0x429b9f;}['_handleThreadMarker'](_0x3f0bcc,_0x3aba1a){const _0x369752=this['_attachMarkerToThread'](_0x3f0bcc,_0x3aba1a);_0x369752&&!_0x369752[_0x4553('0x21')]&&_0x369752[_0x4553('0x6f')]({'type':_0x4553('0x6c'),'value':this['_getTextContext'](_0x3aba1a)});}[_0x4553('0x10')](){const _0x10ca16=this['editor'];_0x207c92(_0x10ca16['model'],({left:_0x453d89,entered:_0x47de43})=>{const _0x2328e1=[];for(const _0x5e89be of _0x453d89)if(rt(_0x5e89be)){_0x2328e1[_0x4553('0xf')](_0x495d88(_0x10ca16[_0x4553('0x63')],_0x4553('0x13')));break;}for(const _0x176acf of _0x47de43)if(rt(_0x176acf)){_0x2328e1['push'](_0x495d88(_0x10ca16[_0x4553('0x63')],'ENTER_COMMENT_ANNOUNCEMENT'));break;}_0x2328e1[_0x4553('0xa')]&&_0x10ca16['ui']['ariaLiveAnnouncer']['announce'](_0x4553('0x28'),_0x2328e1[_0x4553('0x4b')]('\x20'));});}}function tt(_0x18eb64,_0x5d34f4){return _0x5d34f4?_0x18eb64+':'+_0x5d34f4:_0x18eb64;}function ot(_0x4208a6){const _0xdaaf87=_0x4208a6[_0x4553('0x51')](':');return{'group':_0xdaaf87[0x0],'id':_0xdaaf87[0x1],'part':_0xdaaf87[0x2]};}function et(_0x44195a,_0x4553b3){const _0x4e5d35=_0x4553b3[_0x4553('0x2f')],_0x7cd3da=_0x4553b3[_0x4553('0x4a')](_0x44195a['start']);for(const _0x4d7537 of _0x44195a[_0x4553('0x1c')]()){const {type:_0x2612b4,item:_0x237a29,nextPosition:_0x4e25b4}=_0x4d7537;if('text'===_0x2612b4||_0x4e5d35[_0x4553('0x9')](_0x237a29)){const _0xe67486=_0x4553b3[_0x4553('0x57')](_0x237a29);_0x7cd3da['isCollapsed']&&(_0x7cd3da[_0x4553('0x40')]=_0xe67486),_0x7cd3da[_0x4553('0x1b')]=_0x4e25b4;}}return _0x7cd3da;}function rt(_0x597417){return _0x4553('0x19')===ot(_0x597417[_0x4553('0x16')])['group'];}
|