@ckeditor/ckeditor5-comments 0.0.0-nightly-20231029.0 → 0.0.0-nightly-20231031.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 _0x8ed8=['fire','targetRect','render','div','content','focus','listenTo','setTemplate','add','type','mainView','isActive','destroy','_mutationObserver','_updateHeight','focusTracker','Esc','keystrokes','height','isDirty','clear','attach','createCollection','element','detach','set'];(function(_0x4131aa,_0x8ed86e){const _0x24998b=function(_0x3385f9){while(--_0x3385f9){_0x4131aa['push'](_0x4131aa['shift']());}};_0x24998b(++_0x8ed86e);}(_0x8ed8,0x176));const _0x2499=function(_0x4131aa,_0x8ed86e){_0x4131aa=_0x4131aa-0x0;let _0x24998b=_0x8ed8[_0x4131aa];return _0x24998b;};import{View as _0x306395}from'ckeditor5/src/ui';import{FocusTracker as _0x1baac9,KeystrokeHandler as _0x515899,uid as _0x984674}from'ckeditor5/src/utils';import _0x20301e from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x306395{constructor(_0x4d789a,_0x1c10da){super(_0x4d789a),this['id']=_0x984674(),this[_0x2499('0x5')]=new _0x1baac9(),this[_0x2499('0x7')]=new _0x515899(),this[_0x2499('0x7')][_0x2499('0xf')](_0x2499('0x6'),(_0x32a711,_0x37db13)=>this[_0x2499('0x10')]('Esc',_0x37db13)),this[_0x2499('0xf')](_0x2499('0x11'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x2499('0x8'),0x0),this[_0x2499('0xf')](_0x2499('0x1'),!0x1),this[_0x2499('0xf')](_0x2499('0x9'),!0x1),this[_0x2499('0xf')]('length',0x0),this[_0x2499('0xf')](_0x2499('0x19'),''),this['_mutationObserver']=_0x20301e(()=>this[_0x2499('0x4')]()),this[_0x2499('0x14')]=this[_0x2499('0xc')](),this[_0x2499('0x14')][_0x2499('0x18')](_0x1c10da),this[_0x2499('0x0')]=_0x1c10da;const _0x330567=this['bindTemplate'];this[_0x2499('0x17')]({'tag':_0x2499('0x13'),'attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x330567['if'](_0x2499('0x1'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x2499('0x14')]});}[_0x2499('0x12')](){super[_0x2499('0x12')](),this[_0x2499('0x5')][_0x2499('0x18')](this[_0x2499('0xd')]),this[_0x2499('0x7')][_0x2499('0x16')](this[_0x2499('0xd')]),this[_0x2499('0x3')][_0x2499('0xb')](this['element']);}[_0x2499('0x2')](){this[_0x2499('0x14')][_0x2499('0xa')](),this[_0x2499('0x7')][_0x2499('0x2')](),this[_0x2499('0x5')][_0x2499('0x2')](),this[_0x2499('0x3')][_0x2499('0xe')](),super[_0x2499('0x2')]();}[_0x2499('0x15')](){this['element'][_0x2499('0x15')]();}[_0x2499('0x4')](){const _0x3ec119=this['element']['clientHeight'];_0x3ec119&&(this['height']=_0x3ec119);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e8c=['createCollection','updateHeight','_mutationObserver','set','ck-sidebar-item','clear','element','ck-sidebar-item--no-animation','top','bindTemplate','render','isAnimationDisabled','attach','setTemplate','destroy','_targetTop','content','height','detach','clientHeight','bind','bottom'];(function(_0x3b6f36,_0x5e8c96){const _0x4b9106=function(_0x4aa39d){while(--_0x4aa39d){_0x3b6f36['push'](_0x3b6f36['shift']());}};_0x4b9106(++_0x5e8c96);}(_0x5e8c,0x15d));const _0x4b91=function(_0x3b6f36,_0x5e8c96){_0x3b6f36=_0x3b6f36-0x0;let _0x4b9106=_0x5e8c[_0x3b6f36];return _0x4b9106;};import{View as _0x310f38}from'ckeditor5/src/ui';import{toUnit as _0x3454bc}from'ckeditor5/src/utils';import _0x5746b0 from'../../utils/createmutationobserver';const At=_0x3454bc('px');export default class C extends _0x310f38{constructor(_0x431ffb){super(_0x431ffb),this[_0x4b91('0x6')](_0x4b91('0xb'),0x0),this['set'](_0x4b91('0x14'),0x0),this[_0x4b91('0x1')](_0x4b91('0x2'))['to'](this,'top',this,'height',(_0x385211,_0x2d141f)=>_0x385211+_0x2d141f),this[_0x4b91('0x6')](_0x4b91('0xe'),!0x1),this[_0x4b91('0x5')]=_0x5746b0(()=>this[_0x4b91('0x4')]()),this[_0x4b91('0x12')]=null,this[_0x4b91('0x13')]=this[_0x4b91('0x3')]();const _0x53fcd5=this[_0x4b91('0xc')];this[_0x4b91('0x10')]({'tag':'div','attributes':{'class':[_0x4b91('0x7'),_0x53fcd5['to']('isAnimationDisabled',_0x1fe74a=>_0x1fe74a?_0x4b91('0xa'):'')],'style':{'top':_0x53fcd5['to']('top',_0x9aa43e=>At(_0x9aa43e))}},'children':this['content']});}['render'](){super[_0x4b91('0xd')](),this[_0x4b91('0x5')][_0x4b91('0xf')](this[_0x4b91('0x9')]);}['updateHeight'](){const _0x1e3dae=this[_0x4b91('0x9')][_0x4b91('0x0')];_0x1e3dae&&(this[_0x4b91('0x14')]=_0x1e3dae);}[_0x4b91('0x11')](){this['content'][_0x4b91('0x8')](),this[_0x4b91('0x5')][_0x4b91('0x15')](),super[_0x4b91('0x11')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23fe=['div','bindTemplate','createCollection','setTemplate','ck-reset','class','minHeight','list','set','number'];(function(_0x180d99,_0x23fe25){const _0x2caa1=function(_0x12202c){while(--_0x12202c){_0x180d99['push'](_0x180d99['shift']());}};_0x2caa1(++_0x23fe25);}(_0x23fe,0xc9));const _0x2caa=function(_0x180d99,_0x23fe25){_0x180d99=_0x180d99-0x0;let _0x2caa1=_0x23fe[_0x180d99];return _0x2caa1;};import{View as _0x226172}from'ckeditor5/src/ui';import{toUnit as _0x47fcc3}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x47fcc3('px');export default class T extends _0x226172{constructor(_0x1e1a57){super(_0x1e1a57);const _0x43ca88=this[_0x2caa('0x0')];this[_0x2caa('0x7')]('minHeight',0x0),this[_0x2caa('0x7')](_0x2caa('0x4'),''),this[_0x2caa('0x6')]=this[_0x2caa('0x1')](),this[_0x2caa('0x2')]({'tag':_0x2caa('0x9'),'attributes':{'class':['ck','ck-sidebar',_0x2caa('0x3'),_0x43ca88['to']('class')],'style':{'minHeight':_0x43ca88['to'](_0x2caa('0x5'),_0x2ee1b9=>_0x2caa('0x8')==typeof _0x2ee1b9?At(_0x2ee1b9+0xa):null)}},'children':this[_0x2caa('0x6')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20ce=['attach','from','hasDomSelection','listenTo','WideSidebar','editors','widesidebar-detach-not-attached','set:container','_annotations','context','_activeAnnotation','_destroyEditorAnnotationsIntegration','focus','remove','uiUpdate','activeAnnotation','addEventListener','wideSidebar','init','refresh','setActiveAnnotation','detach','resize','destroy','_integrateWithEditorAnnotations','switchTo','blur','stopListening','removeEventListener','rearrange','_detachFromContainer','_editorAnnotations','addAnnotation','add','refreshPositioning','has','stop','updateTargetRect','container','change:container','_attachToContainer','cancel','_refreshPositioningDebounced','annotations','plugins','isAttached','register','requires','ready','get'];(function(_0xef4a18,_0x20ce80){const _0x156600=function(_0x449744){while(--_0x449744){_0xef4a18['push'](_0xef4a18['shift']());}};_0x156600(++_0x20ce80);}(_0x20ce,0xa2));const _0x1566=function(_0xef4a18,_0x20ce80){_0xef4a18=_0xef4a18-0x0;let _0x156600=_0x20ce[_0xef4a18];return _0x156600;};import{ContextPlugin as _0x470189,Context as _0x525eec}from'ckeditor5/src/core';import _0x3704ec from'./annotationsuis';import _0x1fb27a from'./sidebar';import{CKEditorError as _0xeafd54,Collection as _0x4c19df}from'ckeditor5/src/utils';import{debounce as _0x52bf24}from'lodash-es';import _0x3d28a1 from'./editorannotations';export default class i extends _0x470189{static get[_0x1566('0x23')](){return[_0x1fb27a,_0x3704ec];}static get['pluginName'](){return _0x1566('0x2a');}constructor(_0x2be5fa){super(_0x2be5fa),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this[_0x1566('0x1f')]=null,this[_0x1566('0x13')]=new _0x4c19df(),this[_0x1566('0x1e')]=_0x52bf24(()=>{this[_0x1566('0x1f')][_0x1566('0x16')]();},0xfa,{'leading':!0x1});}[_0x1566('0x6')](){const _0x98f281=this['context'][_0x1566('0x20')][_0x1566('0x25')](_0x3704ec),_0x5cdf7b=this[_0x1566('0x2f')]['plugins'][_0x1566('0x25')](_0x1fb27a);_0x98f281[_0x1566('0x22')](_0x1566('0x5'),this),_0x5cdf7b[_0x1566('0x1a')]&&_0x98f281[_0x1566('0xd')]('wideSidebar');}['setActiveAnnotation'](_0x41ad84){if(_0x41ad84===this[_0x1566('0x3')])return;const _0x505c81=this[_0x1566('0x2f')]['plugins'][_0x1566('0x25')](_0x1fb27a);_0x505c81[_0x1566('0x30')]=_0x41ad84;const _0x3b4d2f=this[_0x1566('0x3')];this[_0x1566('0x3')]=_0x41ad84,_0x505c81['refresh']({'blurredAnnotation':_0x3b4d2f,'activatedAnnotation':this[_0x1566('0x3')]});}[_0x1566('0x26')](_0x1e6389){this[_0x1566('0x1f')]=_0x1e6389;const _0x7db142=this[_0x1566('0x2f')][_0x1566('0x20')][_0x1566('0x25')](_0x1fb27a);if(_0x7db142[_0x1566('0x2e')]=_0x1e6389,this['isAttached'])throw new _0xeafd54('widesidebar-attach-already-attached',this);this[_0x1566('0x21')]=!0x0,this[_0x1566('0x29')](_0x7db142,_0x1566('0x2d'),()=>{this[_0x1566('0x9')](),this['listenTo'](_0x7db142,_0x1566('0x1b'),_0x4d1891=>{_0x4d1891['off'](),this['attach'](_0x1e6389);});}),_0x7db142[_0x1566('0x1c')]({'viewClass':'ck-sidebar--wide'});const _0x1576e3=_0xe9ed10=>{_0xe9ed10[_0x1566('0x19')](),_0x7db142[_0x1566('0x14')](_0xe9ed10);};for(const _0x5dd829 of _0x1e6389)_0x1576e3(_0x5dd829);this['listenTo'](_0x1e6389,_0x1566('0x15'),(_0x8b112,_0x427edb)=>{_0x1576e3(_0x427edb);}),this[_0x1566('0x29')](_0x1e6389,_0x1566('0x1'),(_0x550a58,_0x4f6814,_0xaf8cda)=>{_0x7db142[_0x1566('0x11')]({'removedAnnotation':_0x4f6814,'previousAnnotation':_0x1e6389['get'](_0xaf8cda-0x1),'nextAnnotation':_0x1e6389[_0x1566('0x25')](_0xaf8cda+0x1)}),_0x4f6814===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x1e6389,_0x1566('0x0'),(_0x5aa181,_0x4622d0)=>{this[_0x1566('0x8')](_0x4622d0);}),this[_0x1566('0x29')](_0x1e6389,'blur',()=>{this[_0x1566('0x8')](null);});const _0x585a65=this[_0x1566('0x2f')]instanceof _0x525eec?this[_0x1566('0x2f')][_0x1566('0x2b')]:new _0x4c19df([this[_0x1566('0x2f')]]);for(const _0x20b409 of _0x585a65)this[_0x1566('0xc')](_0x20b409);this[_0x1566('0x29')](_0x585a65,_0x1566('0x15'),(_0x2156f4,_0x1dc639)=>{this['listenTo'](_0x1dc639,_0x1566('0x24'),()=>{this[_0x1566('0xc')](_0x1dc639);});}),this['listenTo'](_0x585a65,_0x1566('0x1'),(_0x59c19b,_0x46ad1e)=>{_0x46ad1e['plugins'][_0x1566('0x17')]('EditorAnnotations')&&this[_0x1566('0x31')](_0x46ad1e[_0x1566('0x20')]['get']('EditorAnnotations'));}),window[_0x1566('0x4')](_0x1566('0xa'),this[_0x1566('0x1e')]),this['annotations'][_0x1566('0x16')]();}[_0x1566('0x9')](){if(!this[_0x1566('0x21')])throw new _0xeafd54(_0x1566('0x2c'),this);this[_0x1566('0x8')](null);const _0xb6ab2a=this['context'][_0x1566('0x20')][_0x1566('0x25')](_0x1fb27a);_0xb6ab2a[_0x1566('0x12')](this['annotations']),this['stopListening'](_0xb6ab2a),this[_0x1566('0xf')](this[_0x1566('0x1f')]),this['context']instanceof _0x525eec&&this[_0x1566('0xf')](this[_0x1566('0x2f')]['editors']);for(const _0x54442d of Array[_0x1566('0x27')](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x54442d);window[_0x1566('0x10')]('resize',this['_refreshPositioningDebounced']),this[_0x1566('0x1e')][_0x1566('0x1d')](),this['activeAnnotation']=null,this[_0x1566('0x21')]=!0x1,this[_0x1566('0x1f')]=null;}[_0x1566('0xb')](){this['isAttached']&&this[_0x1566('0x9')]();}['_integrateWithEditorAnnotations'](_0x3ca602){const _0x23682e=_0x3ca602[_0x1566('0x20')]['get'](_0x3d28a1);if(!_0x23682e)return;const _0x4bf099=()=>{const _0x46ae8c=_0x23682e['getOrderedSelectedAnnotations']({'annotations':this[_0x1566('0x1f')],'activeAnnotation':this[_0x1566('0x3')]});this['setActiveAnnotation'](_0x46ae8c[0x0]||null);};this[_0x1566('0x29')](_0x23682e,_0x1566('0x7'),_0x4bf099),this[_0x1566('0x29')](_0x23682e,_0x1566('0xe'),(_0x2eeee6,{isAnnotationTracked:_0x59c832})=>{this[_0x1566('0x3')]&&_0x59c832(this['activeAnnotation'])&&this[_0x1566('0x8')](null);}),this['listenTo'](_0x23682e,_0x1566('0x2'),()=>{this[_0x1566('0x1e')]();}),this['listenTo'](this[_0x1566('0x1f')],_0x1566('0xe'),_0x331d45=>{_0x23682e[_0x1566('0x28')]()&&(_0x4bf099(),_0x331d45[_0x1566('0x18')]());},{'priority':'high'}),this['_editorAnnotations'][_0x1566('0x15')](_0x23682e);}[_0x1566('0x31')](_0x430f56){this['stopListening'](_0x430f56),this[_0x1566('0x13')][_0x1566('0x1')](_0x430f56);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a85=['schema','tableCell','getLastMatchingPosition','selection','push','addMarker','item','_trimToContent','isEnabled','model','isObject','_itemIsContent','change','substr','backward','_hasContent','refresh','comment:','editor','getRanges','execute','getItems','document'];(function(_0x13f0c7,_0x2a8528){const _0x5823e1=function(_0x30de67){while(--_0x30de67){_0x13f0c7['push'](_0x13f0c7['shift']());}};_0x5823e1(++_0x2a8528);}(_0x2a85,0xb7));const _0x5823=function(_0x13f0c7,_0x2a8528){_0x13f0c7=_0x13f0c7-0x0;let _0x5823e1=_0x2a85[_0x13f0c7];return _0x5823e1;};import{Command as _0x1e3687}from'ckeditor5/src/core';import{uid as _0x34c5ae}from'ckeditor5/src/utils';export default class q extends _0x1e3687{[_0x5823('0x11')](){const _0x2f65f7=this['editor'][_0x5823('0xa')][_0x5823('0x0')][_0x5823('0x4')];for(const _0x3ff918 of _0x2f65f7[_0x5823('0x14')]())if(this[_0x5823('0x10')](_0x3ff918))return void(this[_0x5823('0x9')]=!0x0);this[_0x5823('0x9')]=!0x1;}[_0x5823('0x15')]({threadId:_0x882d46=_0x34c5ae()}={}){const _0x2acf53=this[_0x5823('0x13')][_0x5823('0xa')],_0x8c8be3=[];for(const _0x1bfa02 of _0x2acf53[_0x5823('0x0')][_0x5823('0x4')][_0x5823('0x14')]())this[_0x5823('0x10')](_0x1bfa02)&&_0x8c8be3[_0x5823('0x5')](this[_0x5823('0x8')](_0x1bfa02));_0x2acf53[_0x5823('0xd')](_0x56d638=>{for(const _0x2322c6 of _0x8c8be3){const _0x5d0889=_0x34c5ae()[_0x5823('0xe')](0x1,0x5),_0x4aadfe=_0x5823('0x12')+_0x882d46+':'+_0x5d0889;_0x56d638[_0x5823('0x6')](_0x4aadfe,{'range':_0x2322c6,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x5823('0x10')](_0x53f306){for(const _0x167231 of _0x53f306[_0x5823('0x16')]())if(this[_0x5823('0xc')](_0x167231))return!0x0;return!0x1;}[_0x5823('0xc')](_0x59aabe){return _0x59aabe['is']('$textProxy')||this[_0x5823('0x13')][_0x5823('0xa')][_0x5823('0x1')][_0x5823('0xb')](_0x59aabe)&&!_0x59aabe['is']('element',_0x5823('0x2'));}['_trimToContent'](_0x3e9826){const _0x2f9647=_0x31ac20=>!this[_0x5823('0xc')](_0x31ac20[_0x5823('0x7')]),_0x264b13=_0x3e9826['start'][_0x5823('0x3')](_0x2f9647),_0x166517=_0x3e9826['end'][_0x5823('0x3')](_0x2f9647,{'direction':_0x5823('0xf')});return this[_0x5823('0x13')][_0x5823('0xa')]['createRange'](_0x264b13,_0x166517);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12a4=['stopListening','change:archivedAt','_calculatePosition','requires','has','collection','CommentsArchive','highest','removeCommentThread','get','remove','findIndex','plugins','archivedThreads','pluginName','add','archivedAt','isActive','getCommentThread','init','listenTo','addCommentThread'];(function(_0x232ced,_0x12a4cc){const _0x3a8e8f=function(_0x14cd2d){while(--_0x14cd2d){_0x232ced['push'](_0x232ced['shift']());}};_0x3a8e8f(++_0x12a4cc);}(_0x12a4,0xf7));const _0x3a8e=function(_0x232ced,_0x12a4cc){_0x232ced=_0x232ced-0x0;let _0x3a8e8f=_0x12a4[_0x232ced];return _0x3a8e8f;};import{ContextPlugin as _0x935da}from'ckeditor5/src/core';import{Collection as _0x4c1b57}from'ckeditor5/src/utils';import _0x31013a from'./commentsrepository';import _0x163626 from'../annotations/annotations';export default class p extends _0x935da{static get[_0x3a8e('0x9')](){return _0x3a8e('0x1');}static get[_0x3a8e('0x14')](){return[_0x31013a,_0x163626];}constructor(_0x23cab0){super(_0x23cab0),this[_0x3a8e('0x8')]=new _0x4c1b57();}[_0x3a8e('0xe')](){const _0xeceba=this['context'],_0x5761b8=_0xeceba['plugins'][_0x3a8e('0x4')](_0x31013a),_0x12c917=_0xeceba[_0x3a8e('0x7')][_0x3a8e('0x4')](_0x163626);this[_0x3a8e('0xf')](_0x5761b8,_0x3a8e('0x10'),(_0x14e65a,{threadId:_0x98d3f7})=>{const _0x33c7d1=_0x5761b8[_0x3a8e('0xd')](_0x98d3f7);_0x33c7d1[_0x3a8e('0xb')]&&this[_0x3a8e('0x8')][_0x3a8e('0xa')](_0x33c7d1,this[_0x3a8e('0x13')](_0x33c7d1[_0x3a8e('0xb')])),this[_0x3a8e('0xf')](_0x33c7d1,_0x3a8e('0x12'),(_0x1b135b,_0x53430a,_0x151f4a)=>{_0x151f4a?this[_0x3a8e('0x8')][_0x3a8e('0x15')](_0x33c7d1)||this[_0x3a8e('0x8')][_0x3a8e('0xa')](_0x33c7d1,this['_calculatePosition'](_0x33c7d1[_0x3a8e('0xb')])):this[_0x3a8e('0x8')][_0x3a8e('0x15')](_0x33c7d1)&&this[_0x3a8e('0x8')][_0x3a8e('0x5')](_0x33c7d1);});}),this[_0x3a8e('0xf')](_0x5761b8,_0x3a8e('0x3'),(_0x41f012,{threadId:_0x1b741d})=>{const _0x44228a=_0x5761b8[_0x3a8e('0xd')](_0x1b741d);this[_0x3a8e('0x11')](_0x44228a),this[_0x3a8e('0x8')][_0x3a8e('0x15')](_0x44228a)&&this[_0x3a8e('0x8')][_0x3a8e('0x5')](_0x44228a);},{'priority':_0x3a8e('0x2')}),this[_0x3a8e('0xf')](_0x12c917[_0x3a8e('0x0')],'focus',(_0x1b62d9,_0x1339fb)=>{_0x1339fb[_0x3a8e('0xc')]=!0x0,_0x12c917['activate'](_0x1339fb);});}[_0x3a8e('0x13')](_0x47fba5){const _0x56dc05=[...this[_0x3a8e('0x8')]][_0x3a8e('0x6')](_0x2a8839=>_0x2a8839[_0x3a8e('0xb')]<_0x47fba5);return _0x56dc05>-0x1?_0x56dc05:this[_0x3a8e('0x8')]['length'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x462a=['config','locale','change:isOpen','listenTo','_calculatePosition','collection','push','add','focusableElements','COMMENTS_ARCHIVE','pluginName','_pendingThreads','ck-comments-archive-dropdown','collaboration.channelId','channelId','commentsArchive','remove','ck-body','find','findIndex','getByInnerView','children','CommentsArchiveUI','archivedAt','editor','panelView','contains','classList','isVisible','length','commentsArchiveView','_visibleAnnotations','focusTracker','set','indexOf','Annotations','archivedThreads','annotationViews','get','plugins','mainView','_handleAnnotationFocusableElements','buttonView','filter','stopListening','_threadToController','CommentsRepository','view','innerView','init'];(function(_0x522fd3,_0x462a17){const _0x3f82f4=function(_0x173dbd){while(--_0x173dbd){_0x522fd3['push'](_0x522fd3['shift']());}};_0x3f82f4(++_0x462a17);}(_0x462a,0x1bd));const _0x3f82=function(_0x522fd3,_0x462a17){_0x522fd3=_0x522fd3-0x0;let _0x3f82f4=_0x462a[_0x522fd3];return _0x3f82f4;};import'../../theme/commentsarchive.css';import{Plugin as _0x556f7f}from'ckeditor5/src/core';import{createDropdown as _0x39f197,ViewCollection as _0x4ff804}from'ckeditor5/src/ui';import _0x4482a7 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x4ff23d}from'../utils/common-translations';import _0x18f82d from'./ui/view/commentsarchiveview';import _0x573e76 from'./commentsarchive';export default class a extends _0x556f7f{static get[_0x3f82('0xf')](){return _0x3f82('0x1b');}static get['requires'](){return[_0x573e76];}constructor(_0x342f9a){super(_0x342f9a),this['annotationViews']=new _0x4ff804(),this[_0x3f82('0x10')]=[];}[_0x3f82('0x4')](){this[_0x3f82('0x1d')]['ui']['componentFactory']['add'](_0x3f82('0x14'),()=>this['_createArchiveUIDropdown']());const _0x142dfb=this[_0x3f82('0x1d')]['plugins'][_0x3f82('0x2b')](_0x573e76),_0x2bcc7a=this[_0x3f82('0x1d')][_0x3f82('0x2c')][_0x3f82('0x2b')]('Annotations'),_0x22b2e4=this['editor'][_0x3f82('0x2c')]['get'](_0x3f82('0x1'));this[_0x3f82('0x8')](_0x142dfb[_0x3f82('0x29')],'add',(_0x48aa4,_0x4b266d)=>{const _0x2ef637=this[_0x3f82('0x1d')][_0x3f82('0x5')][_0x3f82('0x2b')](_0x3f82('0x12'));if(!_0x2ef637||_0x4b266d[_0x3f82('0x13')]===_0x2ef637){const _0x369655=this[_0x3f82('0x9')](_0x4b266d[_0x3f82('0x1c')]),_0x35ddcb=_0x22b2e4['_threadToController'][_0x3f82('0x2b')](_0x4b266d);if(!_0x35ddcb)return void this[_0x3f82('0x10')][_0x3f82('0xb')]({'thread':_0x4b266d,'position':_0x369655});const _0xb227ef=_0x2bcc7a['getByInnerView'](_0x35ddcb[_0x3f82('0x2')]);_0xb227ef[_0x3f82('0x21')]&&_0x2bcc7a[_0x3f82('0x24')][_0x3f82('0x15')](_0xb227ef),this[_0x3f82('0x2a')]['add'](_0xb227ef[_0x3f82('0x2')],_0x369655);}}),this[_0x3f82('0x8')](_0x2bcc7a[_0x3f82('0xa')],_0x3f82('0xc'),(_0x238210,_0x4ab926)=>{const _0x590919=this[_0x3f82('0x10')][_0x3f82('0x17')](({thread:_0x4fae13})=>{const _0x1b9f9f=_0x22b2e4['_threadToController'][_0x3f82('0x2b')](_0x4fae13);return _0x1b9f9f&&_0x4ab926[_0x3f82('0x3')]===_0x1b9f9f[_0x3f82('0x2')];});_0x590919&&(this[_0x3f82('0x2a')][_0x3f82('0xc')](_0x4ab926[_0x3f82('0x2')],_0x590919['position']),this['_pendingThreads']['splice'](this[_0x3f82('0x10')][_0x3f82('0x27')](_0x590919),0x1));}),this[_0x3f82('0x8')](_0x142dfb[_0x3f82('0x29')],_0x3f82('0x15'),(_0x531568,_0x58b55b)=>{const _0x26d74d=this[_0x3f82('0x1d')][_0x3f82('0x5')][_0x3f82('0x2b')](_0x3f82('0x12'));if(!_0x26d74d||_0x58b55b[_0x3f82('0x13')]===_0x26d74d){const _0x37ef2e=_0x22b2e4[_0x3f82('0x0')][_0x3f82('0x2b')](_0x58b55b),_0x5be25c=_0x2bcc7a[_0x3f82('0x19')](_0x37ef2e[_0x3f82('0x2')]);this[_0x3f82('0x2a')][_0x3f82('0x15')](_0x5be25c[_0x3f82('0x2')]),this[_0x3f82('0x31')](_0x5be25c[_0x3f82('0xd')]);}});}[_0x3f82('0x2e')](_0x49bc6c,_0x517e7){for(const _0x4dfd94 of _0x517e7[_0x3f82('0xd')])_0x4dfd94['classList'][_0x3f82('0x1f')](_0x3f82('0x16'))&&_0x49bc6c[_0x3f82('0x25')][_0x3f82('0xc')](_0x4dfd94);this[_0x3f82('0x8')](_0x517e7[_0x3f82('0xd')],_0x3f82('0xc'),(_0x252898,_0x6ebaa6)=>{_0x6ebaa6[_0x3f82('0x20')][_0x3f82('0x1f')](_0x3f82('0x16'))&&_0x49bc6c['focusTracker'][_0x3f82('0xc')](_0x6ebaa6);}),this['listenTo'](_0x517e7[_0x3f82('0xd')],_0x3f82('0x15'),(_0x35ea95,_0x3ffe6f)=>{_0x3ffe6f[_0x3f82('0x20')][_0x3f82('0x1f')]('ck-body')&&_0x49bc6c[_0x3f82('0x25')][_0x3f82('0x15')](_0x3ffe6f);});}[_0x3f82('0x9')](_0xe1f8c9){const _0x445278=this[_0x3f82('0x1d')][_0x3f82('0x5')][_0x3f82('0x2b')](_0x3f82('0x12')),_0x3abdaf=[...this['editor']['plugins'][_0x3f82('0x2b')](_0x573e76)['archivedThreads']][_0x3f82('0x30')](_0x64dd66=>_0x64dd66[_0x3f82('0x13')]===_0x445278)[_0x3f82('0x18')](_0xbc04a=>_0xbc04a[_0x3f82('0x1c')]<_0xe1f8c9);return _0x3abdaf>-0x1?_0x3abdaf-0x1:this[_0x3f82('0x2a')][_0x3f82('0x22')];}['_createArchiveUIDropdown'](){const _0x3b63fc=this['editor'],_0x3b1882=this[_0x3f82('0x1d')][_0x3f82('0x2c')][_0x3f82('0x2b')](_0x3f82('0x28')),_0x31cb79=_0x39f197(_0x3b63fc['locale']);_0x31cb79[_0x3f82('0x2f')][_0x3f82('0x26')]({'icon':_0x4482a7,'label':_0x4ff23d(_0x3b63fc[_0x3f82('0x6')],_0x3f82('0xe')),'tooltip':!0x0}),_0x31cb79['panelView']['extendTemplate']({'attributes':{'class':_0x3f82('0x11')}}),_0x31cb79['on'](_0x3f82('0x7'),(_0x37bf8c,_0x5cbd6f,_0x5893b3)=>{this[_0x3f82('0x23')]||(this[_0x3f82('0x23')]=new _0x18f82d(_0x3b63fc['locale'],this[_0x3f82('0x2a')])),_0x5893b3?_0x31cb79['panelView']['children']['add'](this[_0x3f82('0x23')]):_0x31cb79[_0x3f82('0x1e')][_0x3f82('0x1a')][_0x3f82('0x15')](this[_0x3f82('0x23')]);});for(const _0xcad376 of this[_0x3f82('0x2a')]){const _0x33abf0=_0x3b1882['getByInnerView'](_0xcad376[_0x3f82('0x2d')]);this[_0x3f82('0x2e')](_0x31cb79,_0x33abf0);}return _0x31cb79[_0x3f82('0x8')](this[_0x3f82('0x2a')],_0x3f82('0xc'),(_0x4603e9,_0x562ab4)=>{const _0xa3409d=_0x3b1882[_0x3f82('0x19')](_0x562ab4[_0x3f82('0x2d')]);this[_0x3f82('0x2e')](_0x31cb79,_0xa3409d);}),_0x31cb79[_0x3f82('0x8')](this[_0x3f82('0x2a')],_0x3f82('0x15'),(_0x61b2e8,_0x1c6b87)=>{const _0x275478=_0x3b1882[_0x3f82('0x19')](_0x1c6b87[_0x3f82('0x2d')]);for(const _0x57daf1 of _0x275478[_0x3f82('0xd')])_0x57daf1[_0x3f82('0x20')][_0x3f82('0x1f')](_0x3f82('0x16'))&&_0x31cb79['focusTracker']['remove'](_0x57daf1);}),_0x31cb79;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x328c=['fetchCommentThread','pluginName','hasDomSelection','comment','scrollToThreadMarker','context','getItems','data','affectsData','end','$textProxy','schema','_getTextContext','reconvertMarker','enqueueChange','upcast','isObject','item','ready','markers','conversion','attachTo','_attachResolvedThread','for','setContext','isThreadsLoadingPaused','hasCommentThread','editingDowncast','refreshVisibility','ignoreResolvedComments','_attachMarkerToThread','add','consumable','ck-comment-marker--active','editor','differ','listenTo','addComment','dataToMarker','_initializeMarkerConverters','hasMarkerForId','_hasTargetInContent','registerAnnotation','switchReadOnly','isLocal','destroyed','once','updateMarker','change:activeMarker','split','getRange','getByInnerView','delete','_reconvertMarkers','destroy','requires','createElement','root','activeMarker','dataDowncast','managedUsingOperations','low','comment:','markerToData','commands','name','startsWith','reopenCommentThread','newRange','addCommentThread','unlinkedAt','view','change','change:isReadOnly','state','$graveyard','isEqual','getWalker','_getTargetForId','collaboration.channelId','_handleMarkerAddAndRemove','length','CommentsEditing','then','getAttribute','document','_handleThreadMarker','setUnlinkedAt','registerPostFixer','ck-comment-marker','removeMarker','markerName','removeMarker:','text','createPositionBefore','getCommentThread','push','start','plugins','_threadToController','consume','config','isResolved','model','editing','from','get','isAttached','change:isThreadsLoadingPaused','getAllMarkersForId','render','_detachCommentThread','elementToElement','substring','set','isCollapsed','getCommentThreads'];(function(_0x250be2,_0x328c39){const _0x182480=function(_0xadd85e){while(--_0xadd85e){_0x250be2['push'](_0x250be2['shift']());}};_0x182480(++_0x328c39);}(_0x328c,0xff));const _0x1824=function(_0x250be2,_0x328c39){_0x250be2=_0x250be2-0x0;let _0x182480=_0x328c[_0x250be2];return _0x182480;};import{Plugin as _0x9ef26f}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3dc1b6}from'ckeditor5/src/utils';import _0x5c993d from'./commentsrepository';import _0x27ef7e from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x22bf61}from'ckeditor5-collaboration/src/collaboration-core';import _0x180543 from'../annotations/editorannotations';import _0x14f6c4 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0xc196ab from'./integrations/importword';import _0x520bd2 from'../annotations/annotations';export default class r extends _0x9ef26f{static get[_0x1824('0x22')](){return[_0x5c993d,_0x180543,_0x14f6c4,_0xc196ab];}static get[_0x1824('0x61')](){return _0x1824('0x3d');}constructor(_0x1b0515){super(_0x1b0515),this[_0x1824('0x5d')](_0x1824('0x4'),!0x0),_0x1b0515[_0x1824('0x67')][_0x1824('0x19')](_0x1824('0x72'),()=>this[_0x1824('0x4')]=!0x1),this[_0x1824('0x5d')](_0x1824('0x25'),null),this['on'](_0x1824('0x1b'),(_0x2cb977,_0xe00a77,_0x2216a4,_0x170256)=>{const _0xf52a0c=_0x2216a4?tt(_0x2216a4)['id']:null;if(_0x1b0515[_0x1824('0x52')]['change'](()=>{if(_0xf52a0c){const _0x423915=this['getAllMarkersForId'](_0xf52a0c);for(const _0x96aa78 of _0x423915)_0x1b0515[_0x1824('0x53')][_0x1824('0x6d')](_0x96aa78);}if(_0x170256){const {id:_0x48f613}=tt(_0x170256),_0xee786=this['getAllMarkersForId'](_0x48f613);for(const _0x4ae0f2 of _0xee786)_0x1b0515['editing'][_0x1824('0x6d')](_0x4ae0f2);}}),_0xf52a0c){const _0x1480e8=_0x1b0515[_0x1824('0x4d')][_0x1824('0x55')](_0x5c993d)['getCommentThread'](_0xf52a0c);_0x1480e8&&_0x1480e8[_0x1824('0x51')]&&this[_0x1824('0x64')](_0xf52a0c);}});}['init'](){const _0x3d5f47=this[_0x1824('0xd')],_0x306918=_0x3d5f47[_0x1824('0x4d')][_0x1824('0x55')](_0x5c993d),_0x725a0a=_0x3d5f47['config'][_0x1824('0x55')](_0x1824('0x3a'));_0x3d5f47[_0x1824('0x2b')][_0x1824('0xa')](_0x1824('0x30'),new _0x27ef7e(_0x3d5f47)),this[_0x1824('0xf')](_0x3d5f47,_0x1824('0x34'),(_0x58d4c2,_0x3b75d0,_0x5876c0)=>{_0x306918[_0x1824('0x16')](_0x5876c0,_0x3d5f47[_0x1824('0x50')][_0x1824('0x55')](_0x1824('0x3a')));}),this[_0x1824('0xf')](_0x306918,Z(_0x1824('0x30'),_0x725a0a),(_0x29effa,{threadId:_0x5306f0})=>{const _0x3b3cdf=this[_0x1824('0xd')]['plugins']['get'](_0x5c993d)[_0x1824('0x4a')](_0x5306f0);_0x3b3cdf&&_0x3b3cdf['archivedAt']&&this['_attachResolvedThread'](_0x5306f0);}),this[_0x1824('0xf')](_0x306918,Z('removeCommentThread',_0x725a0a),(_0x6fe41a,{threadId:_0xfa1a8b})=>{_0x3d5f47[_0x1824('0x52')][_0x1824('0x6e')]({'isUndoable':!0x1},_0x3f859c=>{const _0x1daa59=this['getAllMarkersForId'](_0xfa1a8b);for(const _0x440718 of _0x1daa59)_0x3f859c['removeMarker'](_0x440718);});}),this[_0x1824('0xf')](_0x306918,Z('resolveCommentThread',_0x725a0a),(_0x503556,{threadId:_0x558bac})=>{(this[_0x1824('0x1')](_0x558bac),this[_0x1824('0x20')](_0x558bac),this[_0x1824('0xd')]['editing'][_0x1824('0x32')][_0x1824('0x62')])&&(this[_0x1824('0xd')][_0x1824('0x4d')]['get'](_0x5c993d)[_0x1824('0x4a')](_0x558bac)['unlinkedAt']||this[_0x1824('0xd')][_0x1824('0x53')][_0x1824('0x32')]['focus']());},{'priority':_0x1824('0x28')}),this[_0x1824('0xf')](_0x306918,Z(_0x1824('0x2e'),_0x725a0a),(_0x570aab,{threadId:_0x24556a})=>{this[_0x1824('0x20')](_0x24556a);},{'priority':'low'}),this[_0x1824('0xf')](_0x306918,Z(_0x1824('0x10'),_0x725a0a),(_0x2ddee1,{threadId:_0x626084,isFromAdapter:_0x117c7d})=>{const _0x302cfd=this[_0x1824('0x58')](_0x626084);if(_0x117c7d||0x0==_0x302cfd[_0x1824('0x3c')]||!_0x306918[_0x1824('0x5')](_0x626084))return;0x1===_0x306918[_0x1824('0x4a')](_0x626084)[_0x1824('0x3c')]&&_0x3d5f47['model'][_0x1824('0x6e')]({'isUndoable':!0x1},_0x35f69f=>{for(const _0x5e1e9a of _0x302cfd)_0x35f69f[_0x1824('0x1a')](_0x5e1e9a,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x1824('0x12')](),this[_0x1824('0x3b')]();}['destroy'](){const _0x21fbea=this[_0x1824('0xd')]['plugins']['get'](_0x5c993d),_0x50a331=this[_0x1824('0xd')][_0x1824('0x50')][_0x1824('0x55')](_0x1824('0x3a'));for(const _0x5ba574 of _0x21fbea[_0x1824('0x5f')]({'channelId':_0x50a331}))_0x21fbea[_0x1824('0x5a')](_0x5ba574['id']),_0x21fbea['_threads'][_0x1824('0x1f')](_0x5ba574['id']);super[_0x1824('0x21')]();}['hasMarkerForId'](_0x5431c7){return this[_0x1824('0x58')](_0x5431c7)['length']>0x0;}['getAllMarkersForId'](_0x3eb691){const _0x1960b9=[];for(const _0x2c2d1f of this['editor']['model'][_0x1824('0x73')])_0x2c2d1f[_0x1824('0x2c')][_0x1824('0x2d')](_0x1824('0x29')+_0x3eb691)&&_0x1960b9[_0x1824('0x4b')](_0x2c2d1f);return _0x1960b9;}[_0x1824('0x64')](_0x120fef){const _0x322ad1=this[_0x1824('0x39')](_0x120fef);_0x322ad1&&setTimeout(()=>{this[_0x1824('0x25')]&&tt(this[_0x1824('0x25')])['id']===_0x120fef&&_0x3dc1b6({'target':_0x322ad1[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x1824('0x20')](_0x263294){this[_0x1824('0xd')][_0x1824('0x52')][_0x1824('0x33')](()=>{for(const _0x4b6ee8 of this['getAllMarkersForId'](_0x263294))this[_0x1824('0xd')]['editing'][_0x1824('0x6d')](_0x4b6ee8);});}[_0x1824('0x1')](_0x2f0d16){const _0x2f73a8=this['editor'][_0x1824('0x4d')][_0x1824('0x55')](_0x5c993d),_0x3512df=this[_0x1824('0xd')][_0x1824('0x4d')][_0x1824('0x55')](_0x180543),_0x2d9025=_0x2f73a8[_0x1824('0x4a')](_0x2f0d16);if(!_0x2d9025['isAttached']){const _0x38c519=_0x2d9025[_0x1824('0x0')](()=>this[_0x1824('0x39')](_0x2d9025['id']));_0x3512df['registerAnnotation'](_0x38c519),_0x2d9025[_0x1824('0x14')]=!0x1;}}[_0x1824('0x12')](){const _0x447251=this[_0x1824('0xd')];_0x447251[_0x1824('0x74')][_0x1824('0x2')](_0x1824('0x6'))['markerToHighlight']({'model':_0x1824('0x63'),'view':(_0x5c796e,_0x3424ae)=>{const {id:_0x5be6e2}=tt(_0x5c796e[_0x1824('0x46')]),_0x3b532a=_0x447251[_0x1824('0x4d')][_0x1824('0x55')](_0x5c993d)[_0x1824('0x4a')](_0x5be6e2),_0x1ff631=this[_0x1824('0x25')]&&tt(this[_0x1824('0x25')])['id']===_0x5be6e2;if(_0x3b532a&&_0x3b532a['isResolved']&&!_0x1ff631&&_0x5c796e[_0x1824('0x71')])return _0x3424ae[_0x1824('0xb')][_0x1824('0x4f')](_0x5c796e['item'],'addMarker:'+_0x5c796e['markerName']),_0x3424ae[_0x1824('0xb')][_0x1824('0x4f')](_0x5c796e[_0x1824('0x71')],_0x1824('0x47')+_0x5c796e[_0x1824('0x46')]),{'classes':[]};const _0x51c037=[_0x1824('0x44')];return _0x1ff631&&_0x51c037[_0x1824('0x4b')](_0x1824('0xc')),{'classes':_0x51c037,'attributes':{'data-comment':_0x5be6e2}};}}),_0x447251[_0x1824('0x74')][_0x1824('0x2')](_0x1824('0x26'))[_0x1824('0x2a')]({'model':_0x1824('0x63'),'view':(_0x46650f,{options:_0xb82d9b})=>{const _0x1cff88=_0x447251[_0x1824('0x4d')][_0x1824('0x55')](_0x5c993d),_0x43312a=_0x447251[_0x1824('0x52')]['markers'][_0x1824('0x55')](_0x46650f),{id:_0x20e351,part:_0x184f14}=tt(_0x46650f);if(_0x43312a&&!_0x43312a[_0x1824('0x68')])return null;if(_0xb82d9b[_0x1824('0x8')]){const _0x280f03=_0x1cff88['getCommentThread'](_0x20e351);if(_0x280f03&&_0x280f03[_0x1824('0x51')])return null;}return{'group':_0x1824('0x63'),'name':_0x184f14?_0x20e351+':'+_0x184f14:_0x20e351};}}),_0x447251[_0x1824('0x74')][_0x1824('0x2')](_0x1824('0x6f'))[_0x1824('0x5b')]({'view':{'name':_0x1824('0x63'),'attributes':{'id':/^\w/}},'model':(_0x18eab6,{writer:_0x28c428})=>_0x28c428[_0x1824('0x23')]('$marker',{'data-name':_0x1824('0x29')+_0x18eab6[_0x1824('0x3f')]('id')})}),_0x447251[_0x1824('0x74')][_0x1824('0x2')](_0x1824('0x6f'))[_0x1824('0x11')]({'view':_0x1824('0x63')});}[_0x1824('0x3b')](){const _0x5d2d33=this[_0x1824('0xd')],_0x2639b8=_0x5d2d33[_0x1824('0x4d')][_0x1824('0x55')](_0x5c993d),_0x3fc59d=new Set(),_0x68235=new Set();_0x5d2d33[_0x1824('0x52')]['document'][_0x1824('0x43')](_0x242459=>{let _0x2f7702=!0x1;for(const {name:_0x2e6212,data:_0x452ceb}of _0x5d2d33[_0x1824('0x52')][_0x1824('0x40')][_0x1824('0xe')]['getChangedMarkers']()){const {group:_0x465c93,id:_0x2bce78}=tt(_0x2e6212);let _0x2d9a72=_0x452ceb[_0x1824('0x2f')];if(_0x1824('0x63')!==_0x465c93||!_0x2d9a72)continue;const _0x5508a1=_0x1824('0x36')===_0x2d9a72[_0x1824('0x24')]['rootName'];_0x5508a1||(_0x2d9a72=ot(_0x2d9a72,_0x5d2d33[_0x1824('0x52')]),!_0x2d9a72||_0x2d9a72[_0x1824('0x5e')]||!_0x452ceb[_0x1824('0x2f')]||_0x2d9a72[_0x1824('0x37')](_0x452ceb[_0x1824('0x2f')]))?_0x5d2d33[_0x1824('0x52')]['hasContent'](_0x2d9a72)&&!_0x5508a1?this['isThreadsLoadingPaused']?_0x3fc59d[_0x1824('0xa')](_0x2e6212):this[_0x1824('0x41')](_0x2e6212,_0x2bce78):(_0x68235[_0x1824('0xa')](_0x2e6212),_0x3fc59d[_0x1824('0x1f')](_0x2e6212),_0x242459[_0x1824('0x45')](_0x2e6212),_0x2f7702=!0x0):(_0x242459[_0x1824('0x1a')](_0x2e6212,{'range':_0x2d9a72}),_0x2f7702=!0x0);}return _0x2f7702;}),this['on'](_0x1824('0x57'),(_0x208704,_0x59d48b,_0x3fc8e3)=>{if(!_0x3fc8e3&&_0x3fc59d['size'])for(const _0x5b0fb9 of _0x3fc59d){const {id:_0xcb83e1}=tt(_0x5b0fb9);_0x3fc59d[_0x1824('0x1f')](_0x5b0fb9),_0x5d2d33[_0x1824('0x52')]['markers'][_0x1824('0x55')](_0x5b0fb9)&&this[_0x1824('0x41')](_0x5b0fb9,_0xcb83e1);}}),this[_0x1824('0xf')](_0x5d2d33[_0x1824('0x52')][_0x1824('0x40')],_0x1824('0x33'),(_0x943855,_0x4fe614)=>{for(const {name:_0x84045,data:{newRange:_0x3f9cf8}}of _0x5d2d33[_0x1824('0x52')][_0x1824('0x40')]['differ']['getChangedMarkers']()){const {group:_0x53046f,id:_0x13955d}=tt(_0x84045);if(_0x1824('0x63')!==_0x53046f)continue;const _0x3d1038=_0x2639b8['getCommentThread'](_0x13955d),_0x3769ee=this[_0x1824('0x13')](_0x13955d);_0x3d1038&&(_0x3d1038[_0x1824('0x14')]||_0x5d2d33[_0x1824('0x53')][_0x1824('0x32')][_0x1824('0x19')](_0x1824('0x59'),()=>{const _0x3277ae=_0x5d2d33['plugins'][_0x1824('0x55')](_0x520bd2),_0x536872=_0x2639b8[_0x1824('0x4e')][_0x1824('0x55')](_0x3d1038)[_0x1824('0x32')];_0x3277ae['getByInnerView'](_0x536872)[_0x1824('0x7')]();},{'priority':'low'}),_0x3d1038[_0x1824('0x14')]=_0x3769ee||!!_0x3f9cf8),_0x3f9cf8||(_0x68235[_0x1824('0xa')](_0x84045),_0x3fc59d[_0x1824('0x1f')](_0x84045));}if(_0x4fe614[_0x1824('0x17')])for(const _0x3aa511 of _0x68235){const {id:_0x4cc424}=tt(_0x3aa511),_0x1f0f5b=_0x2639b8[_0x1824('0x4a')](_0x4cc424),_0x15b2cd=this['hasMarkerForId'](_0x4cc424);_0x3fc59d[_0x1824('0x1f')](_0x3aa511),!_0x1f0f5b||_0x15b2cd||_0x1f0f5b[_0x1824('0x31')]||_0x1f0f5b[_0x1824('0x42')](new Date());}_0x68235['clear']();});}['_getTargetForId'](_0x5cb79a){const _0x4c76c0=this['editor'],_0x4424f7=this[_0x1824('0x58')](_0x5cb79a);return _0x22bf61(_0x4c76c0[_0x1824('0x53')],_0x4424f7);}[_0x1824('0x6c')](_0x4a398e){const _0x434e8f=this['getAllMarkersForId'](_0x4a398e);let _0x4aefca='',_0x346d5d=!0x1;for(const _0xd55e0c of _0x434e8f){const _0x4a93c3=_0xd55e0c[_0x1824('0x1d')]();for(const _0x282d29 of Array[_0x1824('0x54')](_0x4a93c3[_0x1824('0x66')]()))_0x282d29['is'](_0x1824('0x6a'))?(_0x4aefca&&_0x346d5d&&(_0x4aefca+='\x20',_0x346d5d=!0x1),_0x4aefca+=_0x282d29[_0x1824('0x67')]):_0x346d5d=!0x0;_0x346d5d=!0x0;}return _0x4aefca[_0x1824('0x5c')](0x0,0x96);}[_0x1824('0x9')](_0x282b3b,_0x3a21bc){const _0xc23379=this[_0x1824('0xd')],_0x5ca97a=_0xc23379[_0x1824('0x4d')][_0x1824('0x55')](_0x5c993d);let _0x3a5cae=_0x5ca97a[_0x1824('0x4a')](_0x3a21bc);const _0x15d86f=_0xc23379[_0x1824('0x50')][_0x1824('0x55')](_0x1824('0x3a')),_0xb48520=_0xc23379[_0x1824('0x4d')]['get'](_0x180543);if(_0x3a5cae&&(_0x3a5cae[_0x1824('0x31')]&&_0x3a5cae[_0x1824('0x42')](null),_0x3a5cae[_0x1824('0x56')]))return _0x3a5cae;return!this[_0x1824('0x58')](_0x3a21bc)[0x0][_0x1824('0x27')]?_0xc23379[_0x1824('0x53')]['view']['once'](_0x1824('0x59'),()=>{if(_0x5ca97a[_0x1824('0x4a')](_0x3a21bc))return;const _0x3b5422=_0xc23379[_0x1824('0x4d')][_0x1824('0x55')](_0x520bd2);_0x3a5cae=_0x5ca97a['openNewCommentThread']({'channelId':_0x15d86f,'threadId':_0x3a21bc,'target':()=>this[_0x1824('0x39')](_0x3a21bc),'context':{'type':_0x1824('0x48'),'value':this[_0x1824('0x6c')](_0x3a21bc)}});const _0x523097=_0x5ca97a[_0x1824('0x4e')][_0x1824('0x55')](_0x3a5cae)[_0x1824('0x32')],_0x351561=_0x3b5422[_0x1824('0x1e')](_0x523097);_0x351561&&_0xb48520[_0x1824('0x15')](_0x351561);},{'priority':'low'}):_0x5ca97a[_0x1824('0x60')]({'channelId':_0x15d86f,'threadId':_0x3a21bc})[_0x1824('0x3e')](_0x6b3600=>{if(_0x1824('0x18')!==_0xc23379[_0x1824('0x35')]){if(_0x3a5cae=_0x6b3600,_0x3a5cae&&!_0x3a5cae[_0x1824('0x56')]){const _0x5d2216=_0x3a5cae[_0x1824('0x0')](()=>this[_0x1824('0x39')](_0x3a21bc));_0xb48520['registerAnnotation'](_0x5d2216),_0x3a5cae['isResolved']&&this[_0x1824('0x20')](_0x3a21bc);}else{if(!_0x3a5cae){const _0x2e3bfd=this['getAllMarkersForId'](_0x3a21bc);_0xc23379[_0x1824('0x52')][_0x1824('0x33')](_0x1a18bd=>{for(const _0x127135 of _0x2e3bfd)_0x1a18bd[_0x1824('0x45')](_0x127135);});}}}}),_0x3a5cae;}[_0x1824('0x41')](_0x1b3719,_0x10af7e){const _0x972b7a=this[_0x1824('0x9')](_0x1b3719,_0x10af7e);_0x972b7a&&!_0x972b7a[_0x1824('0x65')]&&_0x972b7a[_0x1824('0x3')]({'type':_0x1824('0x48'),'value':this[_0x1824('0x6c')](_0x10af7e)});}}function Z(_0x43935f,_0x381ad7){return _0x381ad7?_0x43935f+':'+_0x381ad7:_0x43935f;}function tt(_0x1fc38d){const _0x28c45e=_0x1fc38d[_0x1824('0x1c')](':');return{'group':_0x28c45e[0x0],'id':_0x28c45e[0x1],'part':_0x28c45e[0x2]};}function ot(_0x203d7e,_0x1a6908){const _0x1f5ae5=_0x1a6908[_0x1824('0x6b')],_0x2377bd=_0x1a6908['createRange'](_0x203d7e['start']);for(const _0xc2e0d2 of _0x203d7e[_0x1824('0x38')]()){const {type:_0x11c219,item:_0x2ad2dd,nextPosition:_0x5d2c96}=_0xc2e0d2;if(_0x1824('0x48')===_0x11c219||_0x1f5ae5[_0x1824('0x70')](_0x2ad2dd)){const _0x57b3c6=_0x1a6908[_0x1824('0x49')](_0x2ad2dd);_0x2377bd[_0x1824('0x5e')]&&(_0x2377bd[_0x1824('0x4c')]=_0x57b3c6),_0x2377bd[_0x1824('0x69')]=_0x5d2c96;}}return _0x2377bd;}
|
|
23
|
+
const _0x2c77=['addCommentThread','addComment','markerToData','consumable','editing','managedUsingOperations','collaboration.channelId','requires','comment:','_attachResolvedThread','low','activeMarker','view','comment','$textProxy','markers','name','get','delete','setUnlinkedAt','focus','getItems','$marker','archivedAt','document','data','commands','for','$graveyard','reconvertMarker','getCommentThread','push','_hasTargetInContent','editor','getRange','add','_getTargetForId','ready','removeMarker','hasContent','_initializeMarkerConverters','updateMarker','conversion','from','_reconvertMarkers','text','getCommentThreads','once','removeMarker:','editingDowncast','config','isThreadsLoadingPaused','differ','markerName','destroy','registerAnnotation','switchReadOnly','unlinkedAt','upcast','render','attachTo','listenTo','init','change','createPositionBefore','isCollapsed','_threadToController','_attachMarkerToThread','change:isReadOnly','fetchCommentThread','hasDomSelection','scrollToThreadMarker','getChangedMarkers','_handleMarkerAddAndRemove','hasMarkerForId','start','model','then','_threads','dataDowncast','end','newRange','set','elementToElement','_getTextContext','createElement','change:activeMarker','isLocal','isResolved','getAllMarkersForId','ignoreResolvedComments','startsWith','size','state','dataToMarker','setContext','isAttached','getWalker','_handleThreadMarker','item','isObject','length','consume','refreshVisibility','addMarker:','plugins','ck-comment-marker'];(function(_0x2061cf,_0x2c77c4){const _0x3dd182=function(_0x138145){while(--_0x138145){_0x2061cf['push'](_0x2061cf['shift']());}};_0x3dd182(++_0x2c77c4);}(_0x2c77,0xec));const _0x3dd1=function(_0x2061cf,_0x2c77c4){_0x2061cf=_0x2061cf-0x0;let _0x3dd182=_0x2c77[_0x2061cf];return _0x3dd182;};import{Plugin as _0x4483d4}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x8e53ba}from'ckeditor5/src/utils';import _0x14179a from'./commentsrepository';import _0x7d3f08 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x50fa5d}from'ckeditor5-collaboration/src/collaboration-core';import _0x4a4d7f from'../annotations/editorannotations';import _0x17e9ec from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x3d7b77 from'./integrations/importword';import _0x38dd6f from'../annotations/annotations';export default class r extends _0x4483d4{static get[_0x3dd1('0x5c')](){return[_0x14179a,_0x4a4d7f,_0x17e9ec,_0x3d7b77];}static get['pluginName'](){return'CommentsEditing';}constructor(_0x56b76e){super(_0x56b76e),this[_0x3dd1('0x3c')](_0x3dd1('0x1d'),!0x0),_0x56b76e[_0x3dd1('0x3')][_0x3dd1('0x19')](_0x3dd1('0xf'),()=>this[_0x3dd1('0x1d')]=!0x1),this[_0x3dd1('0x3c')](_0x3dd1('0x60'),null),this['on'](_0x3dd1('0x40'),(_0x17fe55,_0x1a8b5f,_0x14f389,_0x29285)=>{const _0x543f22=_0x14f389?tt(_0x14f389)['id']:null;if(_0x56b76e[_0x3dd1('0x36')][_0x3dd1('0x29')](()=>{if(_0x543f22){const _0x47abfd=this[_0x3dd1('0x43')](_0x543f22);for(const _0x528e0b of _0x47abfd)_0x56b76e[_0x3dd1('0x59')]['reconvertMarker'](_0x528e0b);}if(_0x29285){const {id:_0x5dce08}=tt(_0x29285),_0x104cea=this[_0x3dd1('0x43')](_0x5dce08);for(const _0x1502a2 of _0x104cea)_0x56b76e[_0x3dd1('0x59')][_0x3dd1('0x7')](_0x1502a2);}}),_0x543f22){const _0x386827=_0x56b76e[_0x3dd1('0x53')][_0x3dd1('0x66')](_0x14179a)[_0x3dd1('0x8')](_0x543f22);_0x386827&&_0x386827[_0x3dd1('0x42')]&&this['scrollToThreadMarker'](_0x543f22);}});}[_0x3dd1('0x28')](){const _0x46276c=this[_0x3dd1('0xb')],_0xffbfd8=_0x46276c[_0x3dd1('0x53')]['get'](_0x14179a),_0x28973e=_0x46276c[_0x3dd1('0x1c')][_0x3dd1('0x66')](_0x3dd1('0x5b'));_0x46276c[_0x3dd1('0x4')][_0x3dd1('0xd')](_0x3dd1('0x55'),new _0x7d3f08(_0x46276c)),this['listenTo'](_0x46276c,_0x3dd1('0x2e'),(_0x1fde1a,_0x272a4d,_0x60e054)=>{_0xffbfd8[_0x3dd1('0x22')](_0x60e054,_0x46276c[_0x3dd1('0x1c')][_0x3dd1('0x66')]('collaboration.channelId'));}),this[_0x3dd1('0x27')](_0xffbfd8,Z(_0x3dd1('0x55'),_0x28973e),(_0x4a5173,{threadId:_0x118598})=>{const _0x5ec1e5=this[_0x3dd1('0xb')][_0x3dd1('0x53')]['get'](_0x14179a)[_0x3dd1('0x8')](_0x118598);_0x5ec1e5&&_0x5ec1e5[_0x3dd1('0x1')]&&this['_attachResolvedThread'](_0x118598);}),this[_0x3dd1('0x27')](_0xffbfd8,Z('removeCommentThread',_0x28973e),(_0x2c92ab,{threadId:_0xf977ec})=>{_0x46276c[_0x3dd1('0x36')]['enqueueChange']({'isUndoable':!0x1},_0x298471=>{const _0x29d673=this[_0x3dd1('0x43')](_0xf977ec);for(const _0x167b0b of _0x29d673)_0x298471[_0x3dd1('0x10')](_0x167b0b);});}),this[_0x3dd1('0x27')](_0xffbfd8,Z('resolveCommentThread',_0x28973e),(_0x4dee63,{threadId:_0x17b9d9})=>{(this[_0x3dd1('0x5e')](_0x17b9d9),this['_reconvertMarkers'](_0x17b9d9),this[_0x3dd1('0xb')][_0x3dd1('0x59')][_0x3dd1('0x61')][_0x3dd1('0x30')])&&(this[_0x3dd1('0xb')][_0x3dd1('0x53')][_0x3dd1('0x66')](_0x14179a)['getCommentThread'](_0x17b9d9)[_0x3dd1('0x23')]||this[_0x3dd1('0xb')]['editing']['view'][_0x3dd1('0x69')]());},{'priority':'low'}),this[_0x3dd1('0x27')](_0xffbfd8,Z('reopenCommentThread',_0x28973e),(_0x1f71eb,{threadId:_0x1df8b3})=>{this[_0x3dd1('0x16')](_0x1df8b3);},{'priority':'low'}),this[_0x3dd1('0x27')](_0xffbfd8,Z(_0x3dd1('0x56'),_0x28973e),(_0x31e047,{threadId:_0x5300af,isFromAdapter:_0x148c3b})=>{const _0x921883=this[_0x3dd1('0x43')](_0x5300af);if(_0x148c3b||0x0==_0x921883[_0x3dd1('0x4f')]||!_0xffbfd8['hasCommentThread'](_0x5300af))return;0x1===_0xffbfd8[_0x3dd1('0x8')](_0x5300af)[_0x3dd1('0x4f')]&&_0x46276c['model']['enqueueChange']({'isUndoable':!0x1},_0x1b54f2=>{for(const _0x8f5b52 of _0x921883)_0x1b54f2[_0x3dd1('0x13')](_0x8f5b52,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x3dd1('0x5f')}),this[_0x3dd1('0x12')](),this[_0x3dd1('0x33')]();}[_0x3dd1('0x20')](){const _0x3e8876=this[_0x3dd1('0xb')][_0x3dd1('0x53')]['get'](_0x14179a),_0x3e5157=this[_0x3dd1('0xb')][_0x3dd1('0x1c')][_0x3dd1('0x66')](_0x3dd1('0x5b'));for(const _0x3e8d6c of _0x3e8876[_0x3dd1('0x18')]({'channelId':_0x3e5157}))_0x3e8876['_detachCommentThread'](_0x3e8d6c['id']),_0x3e8876[_0x3dd1('0x38')]['delete'](_0x3e8d6c['id']);super[_0x3dd1('0x20')]();}[_0x3dd1('0x34')](_0xb56a48){return this[_0x3dd1('0x43')](_0xb56a48)[_0x3dd1('0x4f')]>0x0;}[_0x3dd1('0x43')](_0x78e1d1){const _0x541318=[];for(const _0x2503c8 of this['editor']['model'][_0x3dd1('0x64')])_0x2503c8[_0x3dd1('0x65')][_0x3dd1('0x45')]('comment:'+_0x78e1d1)&&_0x541318[_0x3dd1('0x9')](_0x2503c8);return _0x541318;}[_0x3dd1('0x31')](_0x15a265){const _0x38d704=this['_getTargetForId'](_0x15a265);_0x38d704&&setTimeout(()=>{this[_0x3dd1('0x60')]&&tt(this['activeMarker'])['id']===_0x15a265&&_0x8e53ba({'target':_0x38d704[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x3dd1('0x16')](_0x54ea11){this[_0x3dd1('0xb')]['model'][_0x3dd1('0x29')](()=>{for(const _0x30f468 of this[_0x3dd1('0x43')](_0x54ea11))this[_0x3dd1('0xb')][_0x3dd1('0x59')][_0x3dd1('0x7')](_0x30f468);});}[_0x3dd1('0x5e')](_0xba572e){const _0x42902c=this[_0x3dd1('0xb')][_0x3dd1('0x53')][_0x3dd1('0x66')](_0x14179a),_0x3b5a13=this[_0x3dd1('0xb')][_0x3dd1('0x53')][_0x3dd1('0x66')](_0x4a4d7f),_0x4eabc9=_0x42902c[_0x3dd1('0x8')](_0xba572e);if(!_0x4eabc9[_0x3dd1('0x4a')]){const _0x34c28b=_0x4eabc9[_0x3dd1('0x26')](()=>this[_0x3dd1('0xe')](_0x4eabc9['id']));_0x3b5a13[_0x3dd1('0x21')](_0x34c28b),_0x4eabc9[_0x3dd1('0xa')]=!0x1;}}['_initializeMarkerConverters'](){const _0x47f5fa=this['editor'];_0x47f5fa[_0x3dd1('0x14')][_0x3dd1('0x5')](_0x3dd1('0x1b'))['markerToHighlight']({'model':_0x3dd1('0x62'),'view':(_0x5c8e0a,_0x5261af)=>{const {id:_0x3f4bc6}=tt(_0x5c8e0a[_0x3dd1('0x1f')]),_0x3986df=_0x47f5fa[_0x3dd1('0x53')][_0x3dd1('0x66')](_0x14179a)[_0x3dd1('0x8')](_0x3f4bc6),_0x15e8d4=this[_0x3dd1('0x60')]&&tt(this['activeMarker'])['id']===_0x3f4bc6;if(_0x3986df&&_0x3986df[_0x3dd1('0x42')]&&!_0x15e8d4&&_0x5c8e0a[_0x3dd1('0x4d')])return _0x5261af[_0x3dd1('0x58')][_0x3dd1('0x50')](_0x5c8e0a[_0x3dd1('0x4d')],_0x3dd1('0x52')+_0x5c8e0a[_0x3dd1('0x1f')]),_0x5261af['consumable']['consume'](_0x5c8e0a[_0x3dd1('0x4d')],_0x3dd1('0x1a')+_0x5c8e0a[_0x3dd1('0x1f')]),{'classes':[]};const _0x2af772=[_0x3dd1('0x54')];return _0x15e8d4&&_0x2af772[_0x3dd1('0x9')]('ck-comment-marker--active'),{'classes':_0x2af772,'attributes':{'data-comment':_0x3f4bc6}};}}),_0x47f5fa['conversion'][_0x3dd1('0x5')](_0x3dd1('0x39'))[_0x3dd1('0x57')]({'model':_0x3dd1('0x62'),'view':(_0x265ed6,{options:_0x26a068})=>{const _0x17ae5e=_0x47f5fa[_0x3dd1('0x53')][_0x3dd1('0x66')](_0x14179a),_0x28768b=_0x47f5fa['model'][_0x3dd1('0x64')]['get'](_0x265ed6),{id:_0x33e4c2,part:_0x573133}=tt(_0x265ed6);if(_0x28768b&&!_0x28768b['affectsData'])return null;if(_0x26a068[_0x3dd1('0x44')]){const _0x404c93=_0x17ae5e[_0x3dd1('0x8')](_0x33e4c2);if(_0x404c93&&_0x404c93[_0x3dd1('0x42')])return null;}return{'group':_0x3dd1('0x62'),'name':_0x573133?_0x33e4c2+':'+_0x573133:_0x33e4c2};}}),_0x47f5fa[_0x3dd1('0x14')][_0x3dd1('0x5')](_0x3dd1('0x24'))[_0x3dd1('0x3d')]({'view':{'name':_0x3dd1('0x62'),'attributes':{'id':/^\w/}},'model':(_0xeaa67c,{writer:_0x13dc46})=>_0x13dc46[_0x3dd1('0x3f')](_0x3dd1('0x0'),{'data-name':_0x3dd1('0x5d')+_0xeaa67c['getAttribute']('id')})}),_0x47f5fa[_0x3dd1('0x14')][_0x3dd1('0x5')](_0x3dd1('0x24'))[_0x3dd1('0x48')]({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x1e04d2=this['editor'],_0x501a52=_0x1e04d2['plugins']['get'](_0x14179a),_0x526214=new Set(),_0x1e7917=new Set();_0x1e04d2[_0x3dd1('0x36')][_0x3dd1('0x2')]['registerPostFixer'](_0x126a6c=>{let _0x3dfa69=!0x1;for(const {name:_0x17a7e4,data:_0x570c20}of _0x1e04d2[_0x3dd1('0x36')][_0x3dd1('0x2')][_0x3dd1('0x1e')][_0x3dd1('0x32')]()){const {group:_0x2d9ea8,id:_0x2d55ea}=tt(_0x17a7e4);let _0x202fab=_0x570c20[_0x3dd1('0x3b')];if(_0x3dd1('0x62')!==_0x2d9ea8||!_0x202fab)continue;const _0x43ceec=_0x3dd1('0x6')===_0x202fab['root']['rootName'];_0x43ceec||(_0x202fab=ot(_0x202fab,_0x1e04d2[_0x3dd1('0x36')]),!_0x202fab||_0x202fab[_0x3dd1('0x2b')]||!_0x570c20[_0x3dd1('0x3b')]||_0x202fab['isEqual'](_0x570c20['newRange']))?_0x1e04d2[_0x3dd1('0x36')][_0x3dd1('0x11')](_0x202fab)&&!_0x43ceec?this[_0x3dd1('0x1d')]?_0x526214[_0x3dd1('0xd')](_0x17a7e4):this[_0x3dd1('0x4c')](_0x17a7e4,_0x2d55ea):(_0x1e7917[_0x3dd1('0xd')](_0x17a7e4),_0x526214[_0x3dd1('0x67')](_0x17a7e4),_0x126a6c[_0x3dd1('0x10')](_0x17a7e4),_0x3dfa69=!0x0):(_0x126a6c['updateMarker'](_0x17a7e4,{'range':_0x202fab}),_0x3dfa69=!0x0);}return _0x3dfa69;}),this['on']('change:isThreadsLoadingPaused',(_0x1c2562,_0x561732,_0x1f96ca)=>{if(!_0x1f96ca&&_0x526214[_0x3dd1('0x46')])for(const _0xf00fee of _0x526214){const {id:_0x5d6de2}=tt(_0xf00fee);_0x526214[_0x3dd1('0x67')](_0xf00fee),_0x1e04d2[_0x3dd1('0x36')][_0x3dd1('0x64')][_0x3dd1('0x66')](_0xf00fee)&&this[_0x3dd1('0x4c')](_0xf00fee,_0x5d6de2);}}),this[_0x3dd1('0x27')](_0x1e04d2[_0x3dd1('0x36')]['document'],_0x3dd1('0x29'),(_0x2904db,_0x430761)=>{for(const {name:_0x39486d,data:{newRange:_0x3546fc}}of _0x1e04d2[_0x3dd1('0x36')][_0x3dd1('0x2')][_0x3dd1('0x1e')][_0x3dd1('0x32')]()){const {group:_0x32f155,id:_0x394c94}=tt(_0x39486d);if(_0x3dd1('0x62')!==_0x32f155)continue;const _0x2edc5d=_0x501a52[_0x3dd1('0x8')](_0x394c94),_0x175598=this[_0x3dd1('0x34')](_0x394c94);_0x2edc5d&&(_0x2edc5d[_0x3dd1('0xa')]||_0x1e04d2[_0x3dd1('0x59')][_0x3dd1('0x61')]['once'](_0x3dd1('0x25'),()=>{const _0x254e0e=_0x1e04d2[_0x3dd1('0x53')][_0x3dd1('0x66')](_0x38dd6f),_0x58a1d9=_0x501a52['_threadToController']['get'](_0x2edc5d)[_0x3dd1('0x61')];_0x254e0e['getByInnerView'](_0x58a1d9)[_0x3dd1('0x51')]();},{'priority':_0x3dd1('0x5f')}),_0x2edc5d['_hasTargetInContent']=_0x175598||!!_0x3546fc),_0x3546fc||(_0x1e7917['add'](_0x39486d),_0x526214['delete'](_0x39486d));}if(_0x430761[_0x3dd1('0x41')])for(const _0x4d1d34 of _0x1e7917){const {id:_0x5b743b}=tt(_0x4d1d34),_0x590946=_0x501a52[_0x3dd1('0x8')](_0x5b743b),_0x441606=this['hasMarkerForId'](_0x5b743b);_0x526214[_0x3dd1('0x67')](_0x4d1d34),!_0x590946||_0x441606||_0x590946['unlinkedAt']||_0x590946['setUnlinkedAt'](new Date());}_0x1e7917['clear']();});}['_getTargetForId'](_0x1072e1){const _0x34869c=this['editor'],_0x49db1b=this[_0x3dd1('0x43')](_0x1072e1);return _0x50fa5d(_0x34869c[_0x3dd1('0x59')],_0x49db1b);}[_0x3dd1('0x3e')](_0x1d4f63){const _0x4cf211=this[_0x3dd1('0x43')](_0x1d4f63);let _0x327cb4='',_0x3abe94=!0x1;for(const _0x33c720 of _0x4cf211){const _0x3b9260=_0x33c720[_0x3dd1('0xc')]();for(const _0x2cf323 of Array[_0x3dd1('0x15')](_0x3b9260[_0x3dd1('0x6a')]()))_0x2cf323['is'](_0x3dd1('0x63'))?(_0x327cb4&&_0x3abe94&&(_0x327cb4+='\x20',_0x3abe94=!0x1),_0x327cb4+=_0x2cf323['data']):_0x3abe94=!0x0;_0x3abe94=!0x0;}return _0x327cb4['substring'](0x0,0x96);}[_0x3dd1('0x2d')](_0x436edb,_0x33f60f){const _0x872a04=this[_0x3dd1('0xb')],_0x3a2982=_0x872a04[_0x3dd1('0x53')][_0x3dd1('0x66')](_0x14179a);let _0x1df7ca=_0x3a2982[_0x3dd1('0x8')](_0x33f60f);const _0x2fdd5e=_0x872a04['config']['get'](_0x3dd1('0x5b')),_0x502ab1=_0x872a04[_0x3dd1('0x53')][_0x3dd1('0x66')](_0x4a4d7f);if(_0x1df7ca&&(_0x1df7ca[_0x3dd1('0x23')]&&_0x1df7ca[_0x3dd1('0x68')](null),_0x1df7ca[_0x3dd1('0x4a')]))return _0x1df7ca;return!this[_0x3dd1('0x43')](_0x33f60f)[0x0][_0x3dd1('0x5a')]?_0x872a04[_0x3dd1('0x59')][_0x3dd1('0x61')][_0x3dd1('0x19')](_0x3dd1('0x25'),()=>{if(_0x3a2982[_0x3dd1('0x8')](_0x33f60f))return;const _0x1d8138=_0x872a04['plugins'][_0x3dd1('0x66')](_0x38dd6f);_0x1df7ca=_0x3a2982['openNewCommentThread']({'channelId':_0x2fdd5e,'threadId':_0x33f60f,'target':()=>this[_0x3dd1('0xe')](_0x33f60f),'context':{'type':_0x3dd1('0x17'),'value':this[_0x3dd1('0x3e')](_0x33f60f)}});const _0x22112a=_0x3a2982[_0x3dd1('0x2c')][_0x3dd1('0x66')](_0x1df7ca)[_0x3dd1('0x61')],_0x42b844=_0x1d8138['getByInnerView'](_0x22112a);_0x42b844&&_0x502ab1[_0x3dd1('0x21')](_0x42b844);},{'priority':_0x3dd1('0x5f')}):_0x3a2982[_0x3dd1('0x2f')]({'channelId':_0x2fdd5e,'threadId':_0x33f60f})[_0x3dd1('0x37')](_0x26001d=>{if('destroyed'!==_0x872a04[_0x3dd1('0x47')]){if(_0x1df7ca=_0x26001d,_0x1df7ca&&!_0x1df7ca[_0x3dd1('0x4a')]){const _0x1e0e2c=_0x1df7ca[_0x3dd1('0x26')](()=>this[_0x3dd1('0xe')](_0x33f60f));_0x502ab1['registerAnnotation'](_0x1e0e2c),_0x1df7ca[_0x3dd1('0x42')]&&this[_0x3dd1('0x16')](_0x33f60f);}else{if(!_0x1df7ca){const _0x1683a1=this['getAllMarkersForId'](_0x33f60f);_0x872a04[_0x3dd1('0x36')]['change'](_0x42da9c=>{for(const _0x2c77cd of _0x1683a1)_0x42da9c[_0x3dd1('0x10')](_0x2c77cd);});}}}}),_0x1df7ca;}[_0x3dd1('0x4c')](_0x338d7b,_0x1d7892){const _0x4008c8=this[_0x3dd1('0x2d')](_0x338d7b,_0x1d7892);_0x4008c8&&!_0x4008c8['context']&&_0x4008c8[_0x3dd1('0x49')]({'type':_0x3dd1('0x17'),'value':this[_0x3dd1('0x3e')](_0x1d7892)});}}function Z(_0x231585,_0x2bcfcb){return _0x2bcfcb?_0x231585+':'+_0x2bcfcb:_0x231585;}function tt(_0x59fc47){const _0x13ed46=_0x59fc47['split'](':');return{'group':_0x13ed46[0x0],'id':_0x13ed46[0x1],'part':_0x13ed46[0x2]};}function ot(_0x35e0fa,_0x5560aa){const _0x127833=_0x5560aa['schema'],_0x374771=_0x5560aa['createRange'](_0x35e0fa['start']);for(const _0x531e17 of _0x35e0fa[_0x3dd1('0x4b')]()){const {type:_0x2673bf,item:_0x1fd878,nextPosition:_0x3cdd75}=_0x531e17;if('text'===_0x2673bf||_0x127833[_0x3dd1('0x4e')](_0x1fd878)){const _0x43f307=_0x5560aa[_0x3dd1('0x2a')](_0x1fd878);_0x374771[_0x3dd1('0x2b')]&&(_0x374771[_0x3dd1('0x35')]=_0x43f307),_0x374771[_0x3dd1('0x3a')]=_0x3cdd75;}}return _0x374771;}
|