@ckeditor/ckeditor5-comments 0.0.0-nightly-20230907.0 → 0.0.0-nightly-20230908.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 _0x21c4=['add','content','bindTemplate','clear','focusTracker','createCollection','destroy','_mutationObserver','targetRect','ck-annotation-wrapper--active','_updateHeight','div','Esc','clientHeight','setTemplate','keystrokes','listenTo','length','set','height','mainView','detach','element','attach','render','focus','type','isActive'];(function(_0x5bfb67,_0x21c490){const _0x5c389b=function(_0xd2db79){while(--_0xd2db79){_0x5bfb67['push'](_0x5bfb67['shift']());}};_0x5c389b(++_0x21c490);}(_0x21c4,0x1e6));const _0x5c38=function(_0x5bfb67,_0x21c490){_0x5bfb67=_0x5bfb67-0x0;let _0x5c389b=_0x21c4[_0x5bfb67];return _0x5c389b;};import{View as _0x424527}from'ckeditor5/src/ui';import{FocusTracker as _0x1e99a9,KeystrokeHandler as _0x481a81,uid as _0x43f5e2}from'ckeditor5/src/utils';import _0x525e41 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x424527{constructor(_0x5b0616,_0xccf490){super(_0x5b0616),this['id']=_0x43f5e2(),this[_0x5c38('0x16')]=new _0x1e99a9(),this[_0x5c38('0x5')]=new _0x481a81(),this[_0x5c38('0x5')][_0x5c38('0x8')](_0x5c38('0x2'),(_0x531272,_0x209152)=>this['fire'](_0x5c38('0x2'),_0x209152)),this['set'](_0x5c38('0x1a'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5c38('0x8')](_0x5c38('0x9'),0x0),this[_0x5c38('0x8')](_0x5c38('0x11'),!0x1),this['set']('isDirty',!0x1),this[_0x5c38('0x8')](_0x5c38('0x7'),0x0),this[_0x5c38('0x8')](_0x5c38('0x10'),''),this[_0x5c38('0x19')]=_0x525e41(()=>this[_0x5c38('0x0')]()),this[_0x5c38('0x13')]=this[_0x5c38('0x17')](),this[_0x5c38('0x13')][_0x5c38('0x12')](_0xccf490),this[_0x5c38('0xa')]=_0xccf490;const _0x24e360=this[_0x5c38('0x14')];this[_0x5c38('0x4')]({'tag':_0x5c38('0x1'),'attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x24e360['if']('isActive',_0x5c38('0x1b'))],'tabindex':-0x1},'children':this['content']});}['render'](){super[_0x5c38('0xe')](),this[_0x5c38('0x16')][_0x5c38('0x12')](this['element']),this['keystrokes'][_0x5c38('0x6')](this[_0x5c38('0xc')]),this[_0x5c38('0x19')][_0x5c38('0xd')](this['element']);}[_0x5c38('0x18')](){this[_0x5c38('0x13')][_0x5c38('0x15')](),this['keystrokes'][_0x5c38('0x18')](),this[_0x5c38('0x16')][_0x5c38('0x18')](),this[_0x5c38('0x19')][_0x5c38('0xb')](),super[_0x5c38('0x18')]();}[_0x5c38('0xf')](){this['element'][_0x5c38('0xf')]();}['_updateHeight'](){const _0x1c0770=this['element'][_0x5c38('0x3')];_0x1c0770&&(this[_0x5c38('0x9')]=_0x1c0770);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23ac=['attach','bind','ck-sidebar-item','clear','destroy','content','top','bottom','ck-sidebar-item--no-animation','_targetTop','createCollection','element','height','_mutationObserver','updateHeight','set','isAnimationDisabled','render'];(function(_0x29d174,_0x23ac6d){const _0x19fff4=function(_0xafa838){while(--_0xafa838){_0x29d174['push'](_0x29d174['shift']());}};_0x19fff4(++_0x23ac6d);}(_0x23ac,0x113));const _0x19ff=function(_0x29d174,_0x23ac6d){_0x29d174=_0x29d174-0x0;let _0x19fff4=_0x23ac[_0x29d174];return _0x19fff4;};import{View as _0x460fb3}from'ckeditor5/src/ui';import{toUnit as _0x4bdd82}from'ckeditor5/src/utils';import _0x46bfb3 from'../../utils/createmutationobserver';const At=_0x4bdd82('px');export default class C extends _0x460fb3{constructor(_0x33506e){super(_0x33506e),this['set']('top',0x0),this[_0x19ff('0xa')]('height',0x0),this[_0x19ff('0xe')](_0x19ff('0x2'))['to'](this,_0x19ff('0x1'),this,_0x19ff('0x7'),(_0x3372c7,_0x44659c)=>_0x3372c7+_0x44659c),this[_0x19ff('0xa')](_0x19ff('0xb'),!0x1),this[_0x19ff('0x8')]=_0x46bfb3(()=>this['updateHeight']()),this[_0x19ff('0x4')]=null,this[_0x19ff('0x0')]=this[_0x19ff('0x5')]();const _0x20d3e4=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':[_0x19ff('0xf'),_0x20d3e4['to'](_0x19ff('0xb'),_0x2ab8c0=>_0x2ab8c0?_0x19ff('0x3'):'')],'style':{'top':_0x20d3e4['to'](_0x19ff('0x1'),_0x251bda=>At(_0x251bda))}},'children':this[_0x19ff('0x0')]});}[_0x19ff('0xc')](){super[_0x19ff('0xc')](),this[_0x19ff('0x8')][_0x19ff('0xd')](this['element']);}[_0x19ff('0x9')](){const _0x4e807b=this[_0x19ff('0x6')]['clientHeight'];_0x4e807b&&(this['height']=_0x4e807b);}[_0x19ff('0x11')](){this[_0x19ff('0x0')][_0x19ff('0x10')](),this[_0x19ff('0x8')]['detach'](),super[_0x19ff('0x11')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d3e=['ck-reset','minHeight','div','ck-sidebar','setTemplate','bindTemplate','list','class','createCollection','set','number'];(function(_0x4e83c1,_0x5d3e5c){const _0x239968=function(_0x475684){while(--_0x475684){_0x4e83c1['push'](_0x4e83c1['shift']());}};_0x239968(++_0x5d3e5c);}(_0x5d3e,0x1ae));const _0x2399=function(_0x4e83c1,_0x5d3e5c){_0x4e83c1=_0x4e83c1-0x0;let _0x239968=_0x5d3e[_0x4e83c1];return _0x239968;};import{View as _0x3ef5a0}from'ckeditor5/src/ui';import{toUnit as _0x3df487}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x3df487('px');export default class T extends _0x3ef5a0{constructor(_0x18275b){super(_0x18275b);const _0x5a8540=this[_0x2399('0x4')];this[_0x2399('0x8')](_0x2399('0x0'),0x0),this[_0x2399('0x8')](_0x2399('0x6'),''),this[_0x2399('0x5')]=this[_0x2399('0x7')](),this[_0x2399('0x3')]({'tag':_0x2399('0x1'),'attributes':{'class':['ck',_0x2399('0x2'),_0x2399('0xa'),_0x5a8540['to'](_0x2399('0x6'))],'style':{'minHeight':_0x5a8540['to'](_0x2399('0x0'),_0x4707a7=>_0x2399('0x9')==typeof _0x4707a7?At(_0x4707a7+0xa):null)}},'children':this[_0x2399('0x5')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1472=['cancel','from','addAnnotation','add','plugins','refresh','detach','_integrateWithEditorAnnotations','ready','isAttached','context','uiUpdate','stop','setActiveAnnotation','register','listenTo','removeEventListener','_activeAnnotation','WideSidebar','container','getOrderedSelectedAnnotations','_detachFromContainer','_annotations','_editorAnnotations','activeAnnotation','change:container','wideSidebar','rearrange','destroy','hasDomSelection','get','attach','widesidebar-detach-not-attached','remove','ck-sidebar--wide','editors','_destroyEditorAnnotationsIntegration','off','addEventListener','refreshPositioning','_refreshPositioningDebounced','stopListening','high','annotations','resize','EditorAnnotations','updateTargetRect','_attachToContainer','requires','pluginName','blur'];(function(_0x89e8f3,_0x1472af){const _0x2498ce=function(_0x4e0872){while(--_0x4e0872){_0x89e8f3['push'](_0x89e8f3['shift']());}};_0x2498ce(++_0x1472af);}(_0x1472,0x88));const _0x2498=function(_0x89e8f3,_0x1472af){_0x89e8f3=_0x89e8f3-0x0;let _0x2498ce=_0x1472[_0x89e8f3];return _0x2498ce;};import{ContextPlugin as _0x27309d,Context as _0x3124eb}from'ckeditor5/src/core';import _0x5bddf5 from'./annotationsuis';import _0x49f64c from'./sidebar';import{CKEditorError as _0x2ea740,Collection as _0x210b23}from'ckeditor5/src/utils';import{debounce as _0x3a664d}from'lodash-es';import _0x526d90 from'./editorannotations';export default class i extends _0x27309d{static get[_0x2498('0xe')](){return[_0x49f64c,_0x5bddf5];}static get[_0x2498('0xf')](){return _0x2498('0x23');}constructor(_0x572839){super(_0x572839),this[_0x2498('0x1a')]=!0x1,this['set'](_0x2498('0x29'),null),this[_0x2498('0x9')]=null,this[_0x2498('0x28')]=new _0x210b23(),this['_refreshPositioningDebounced']=_0x3a664d(()=>{this[_0x2498('0x9')]['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x16783a=this[_0x2498('0x1b')][_0x2498('0x15')][_0x2498('0x2f')](_0x5bddf5),_0xebb463=this[_0x2498('0x1b')][_0x2498('0x15')][_0x2498('0x2f')](_0x49f64c);_0x16783a[_0x2498('0x1f')]('wideSidebar',this),_0xebb463[_0x2498('0x24')]&&_0x16783a['switchTo'](_0x2498('0x2b'));}[_0x2498('0x1e')](_0x5ab44b){if(_0x5ab44b===this[_0x2498('0x29')])return;const _0x263dd1=this[_0x2498('0x1b')][_0x2498('0x15')]['get'](_0x49f64c);_0x263dd1[_0x2498('0x22')]=_0x5ab44b;const _0x2a1963=this[_0x2498('0x29')];this[_0x2498('0x29')]=_0x5ab44b,_0x263dd1['refresh']({'blurredAnnotation':_0x2a1963,'activatedAnnotation':this[_0x2498('0x29')]});}[_0x2498('0x30')](_0x40fafc){this[_0x2498('0x9')]=_0x40fafc;const _0x4cd29f=this['context']['plugins'][_0x2498('0x2f')](_0x49f64c);if(_0x4cd29f[_0x2498('0x27')]=_0x40fafc,this[_0x2498('0x1a')])throw new _0x2ea740('widesidebar-attach-already-attached',this);this[_0x2498('0x1a')]=!0x0,this[_0x2498('0x20')](_0x4cd29f,'set:container',()=>{this['detach'](),this[_0x2498('0x20')](_0x4cd29f,_0x2498('0x2a'),_0x5c7c9e=>{_0x5c7c9e[_0x2498('0x3')](),this[_0x2498('0x30')](_0x40fafc);});}),_0x4cd29f[_0x2498('0xd')]({'viewClass':_0x2498('0x0')});const _0x3c33f3=_0x567723=>{_0x567723[_0x2498('0xc')](),_0x4cd29f[_0x2498('0x13')](_0x567723);};for(const _0x1c5901 of _0x40fafc)_0x3c33f3(_0x1c5901);this[_0x2498('0x20')](_0x40fafc,'add',(_0x7df2cd,_0x1e72e1)=>{_0x3c33f3(_0x1e72e1);}),this[_0x2498('0x20')](_0x40fafc,_0x2498('0x32'),(_0x468f4c,_0x45d0d3,_0x1b3bbe)=>{_0x4cd29f[_0x2498('0x2c')]({'removedAnnotation':_0x45d0d3,'previousAnnotation':_0x40fafc['get'](_0x1b3bbe-0x1),'nextAnnotation':_0x40fafc[_0x2498('0x2f')](_0x1b3bbe+0x1)}),_0x45d0d3===this[_0x2498('0x29')]&&this[_0x2498('0x1e')](null);},{'priority':_0x2498('0x8')}),this[_0x2498('0x20')](_0x40fafc,'focus',(_0x413ae3,_0x8a7cb1)=>{this[_0x2498('0x1e')](_0x8a7cb1);}),this[_0x2498('0x20')](_0x40fafc,_0x2498('0x10'),()=>{this['setActiveAnnotation'](null);});const _0x3587dc=this[_0x2498('0x1b')]instanceof _0x3124eb?this[_0x2498('0x1b')][_0x2498('0x1')]:new _0x210b23([this['context']]);for(const _0xc09e5a of _0x3587dc)this[_0x2498('0x18')](_0xc09e5a);this['listenTo'](_0x3587dc,_0x2498('0x14'),(_0x42ea61,_0x558062)=>{this['listenTo'](_0x558062,_0x2498('0x19'),()=>{this[_0x2498('0x18')](_0x558062);});}),this[_0x2498('0x20')](_0x3587dc,_0x2498('0x32'),(_0x16e81e,_0x1460eb)=>{_0x1460eb['plugins']['has'](_0x2498('0xb'))&&this[_0x2498('0x2')](_0x1460eb[_0x2498('0x15')][_0x2498('0x2f')](_0x2498('0xb')));}),window[_0x2498('0x4')](_0x2498('0xa'),this[_0x2498('0x6')]),this[_0x2498('0x9')][_0x2498('0x5')]();}[_0x2498('0x17')](){if(!this['isAttached'])throw new _0x2ea740(_0x2498('0x31'),this);this[_0x2498('0x1e')](null);const _0x1ebeec=this[_0x2498('0x1b')][_0x2498('0x15')][_0x2498('0x2f')](_0x49f64c);_0x1ebeec[_0x2498('0x26')](this['annotations']),this['stopListening'](_0x1ebeec),this[_0x2498('0x7')](this[_0x2498('0x9')]),this[_0x2498('0x1b')]instanceof _0x3124eb&&this[_0x2498('0x7')](this[_0x2498('0x1b')]['editors']);for(const _0x3facd5 of Array[_0x2498('0x12')](this[_0x2498('0x28')]))this[_0x2498('0x2')](_0x3facd5);window[_0x2498('0x21')](_0x2498('0xa'),this[_0x2498('0x6')]),this['_refreshPositioningDebounced'][_0x2498('0x11')](),this[_0x2498('0x29')]=null,this[_0x2498('0x1a')]=!0x1,this[_0x2498('0x9')]=null;}[_0x2498('0x2d')](){this[_0x2498('0x1a')]&&this['detach']();}['_integrateWithEditorAnnotations'](_0xff1ab8){const _0x28ec7b=_0xff1ab8[_0x2498('0x15')][_0x2498('0x2f')](_0x526d90);if(!_0x28ec7b)return;const _0x24cd29=()=>{const _0x4a7578=_0x28ec7b[_0x2498('0x25')]({'annotations':this[_0x2498('0x9')],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4a7578[0x0]||null);};this[_0x2498('0x20')](_0x28ec7b,_0x2498('0x16'),_0x24cd29),this['listenTo'](_0x28ec7b,'blur',(_0x24918c,{isAnnotationTracked:_0x4adbb5})=>{this['activeAnnotation']&&_0x4adbb5(this[_0x2498('0x29')])&&this[_0x2498('0x1e')](null);}),this[_0x2498('0x20')](_0x28ec7b,_0x2498('0x1c'),()=>{this[_0x2498('0x6')]();}),this[_0x2498('0x20')](this[_0x2498('0x9')],_0x2498('0x10'),_0x1ffb67=>{_0x28ec7b[_0x2498('0x2e')]()&&(_0x24cd29(),_0x1ffb67[_0x2498('0x1d')]());},{'priority':_0x2498('0x8')}),this[_0x2498('0x28')][_0x2498('0x14')](_0x28ec7b);}['_destroyEditorAnnotationsIntegration'](_0x2de446){this[_0x2498('0x7')](_0x2de446),this[_0x2498('0x28')]['remove'](_0x2de446);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1552=['_hasContent','backward','refresh','$textProxy','_itemIsContent','getLastMatchingPosition','item','document','model','editor','element','start','getItems','_trimToContent','execute','getRanges','createRange'];(function(_0x175dd5,_0x155200){const _0x168e75=function(_0x5f070e){while(--_0x5f070e){_0x175dd5['push'](_0x175dd5['shift']());}};_0x168e75(++_0x155200);}(_0x1552,0xc6));const _0x168e=function(_0x175dd5,_0x155200){_0x175dd5=_0x175dd5-0x0;let _0x168e75=_0x1552[_0x175dd5];return _0x168e75;};import{Command as _0xb90de}from'ckeditor5/src/core';import{uid as _0xc00781}from'ckeditor5/src/utils';export default class q extends _0xb90de{[_0x168e('0x8')](){const _0x318720=this[_0x168e('0xf')][_0x168e('0xe')][_0x168e('0xd')]['selection'];for(const _0x2b54a7 of _0x318720[_0x168e('0x4')]())if(this[_0x168e('0x6')](_0x2b54a7))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}[_0x168e('0x3')]({threadId:_0x3a9760=_0xc00781()}={}){const _0x30af6=this[_0x168e('0xf')][_0x168e('0xe')],_0x5e3ce3=[];for(const _0x10d488 of _0x30af6[_0x168e('0xd')]['selection']['getRanges']())this[_0x168e('0x6')](_0x10d488)&&_0x5e3ce3['push'](this[_0x168e('0x2')](_0x10d488));_0x30af6['change'](_0x15e8d1=>{for(const _0x3cce0d of _0x5e3ce3){const _0x102965=_0xc00781()['substr'](0x1,0x5),_0x51aed3='comment:'+_0x3a9760+':'+_0x102965;_0x15e8d1['addMarker'](_0x51aed3,{'range':_0x3cce0d,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x168e('0x6')](_0x4adb09){for(const _0x3cca92 of _0x4adb09[_0x168e('0x1')]())if(this[_0x168e('0xa')](_0x3cca92))return!0x0;return!0x1;}[_0x168e('0xa')](_0x1f09be){return _0x1f09be['is'](_0x168e('0x9'))||this[_0x168e('0xf')][_0x168e('0xe')]['schema']['isObject'](_0x1f09be)&&!_0x1f09be['is'](_0x168e('0x10'),'tableCell');}['_trimToContent'](_0x4a05c9){const _0x24c3b6=_0x28cd6e=>!this[_0x168e('0xa')](_0x28cd6e[_0x168e('0xc')]),_0x3326e3=_0x4a05c9[_0x168e('0x0')][_0x168e('0xb')](_0x24c3b6),_0x2448cd=_0x4a05c9['end'][_0x168e('0xb')](_0x24c3b6,{'direction':_0x168e('0x7')});return this[_0x168e('0xf')][_0x168e('0xe')][_0x168e('0x5')](_0x3326e3,_0x2448cd);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e38=['_calculatePosition','requires','reopenCommentThread','collection','listenTo','add','resolvedThreads','has','highest','CommentsArchive','pluginName','activate','length','get','removeCommentThread','addCommentThread','init','context','getCommentThread','remove','resolveCommentThread','findIndex'];(function(_0x29e68b,_0x4e384d){const _0x442fb1=function(_0x53c15b){while(--_0x53c15b){_0x29e68b['push'](_0x29e68b['shift']());}};_0x442fb1(++_0x4e384d);}(_0x4e38,0x114));const _0x442f=function(_0x29e68b,_0x4e384d){_0x29e68b=_0x29e68b-0x0;let _0x442fb1=_0x4e38[_0x29e68b];return _0x442fb1;};import{ContextPlugin as _0x1b43d1}from'ckeditor5/src/core';import{Collection as _0x4e0b4d}from'ckeditor5/src/utils';import _0x4ac6e0 from'./commentsrepository';import _0x1d93db from'../annotations/annotations';export default class p extends _0x1b43d1{static get[_0x442f('0x14')](){return _0x442f('0x13');}static get[_0x442f('0xb')](){return[_0x4ac6e0,_0x1d93db];}constructor(_0x366a05){super(_0x366a05),this[_0x442f('0x10')]=new _0x4e0b4d();}[_0x442f('0x4')](){const _0x4d3a44=this[_0x442f('0x5')],_0x111db9=_0x4d3a44['plugins'][_0x442f('0x1')](_0x4ac6e0),_0x5c2b0a=_0x4d3a44['plugins']['get'](_0x1d93db);this['listenTo'](_0x111db9,_0x442f('0x3'),(_0x20f748,{threadId:_0x597a9b,resolvedAt:_0x39454f,deletedAt:_0x1be7cd})=>{if(_0x39454f&&!_0x1be7cd){const _0x4d5340=_0x111db9[_0x442f('0x6')](_0x597a9b);this[_0x442f('0x10')][_0x442f('0xf')](_0x4d5340,this[_0x442f('0xa')](_0x39454f));}}),this[_0x442f('0xe')](_0x111db9,_0x442f('0x8'),(_0x815e11,{threadId:_0x3f2f4e,resolvedAt:_0x5ad455})=>{const _0x835ddd=_0x111db9['getCommentThread'](_0x3f2f4e);this[_0x442f('0x10')][_0x442f('0xf')](_0x835ddd,this[_0x442f('0xa')](_0x5ad455));},{'priority':_0x442f('0x12')}),this[_0x442f('0xe')](_0x111db9,_0x442f('0xc'),(_0x3fa83d,{threadId:_0x53dc31})=>{const _0x1acf3f=_0x111db9[_0x442f('0x6')](_0x53dc31);this[_0x442f('0x10')][_0x442f('0x11')](_0x1acf3f)&&this['resolvedThreads'][_0x442f('0x7')](_0x1acf3f);},{'priority':'highest'}),this[_0x442f('0xe')](_0x111db9,_0x442f('0x2'),(_0x454503,{threadId:_0x36e3ea})=>{const _0x3c7ce3=_0x111db9[_0x442f('0x6')](_0x36e3ea);this[_0x442f('0x10')][_0x442f('0x11')](_0x3c7ce3)&&this[_0x442f('0x10')][_0x442f('0x7')](_0x3c7ce3);},{'priority':_0x442f('0x12')}),this[_0x442f('0xe')](_0x5c2b0a[_0x442f('0xd')],'focus',(_0x549ef3,_0x42c155)=>{_0x42c155['isActive']=!0x0,_0x5c2b0a[_0x442f('0x15')](_0x42c155);});}['_calculatePosition'](_0x136f93){const _0x5be1a6=[...this[_0x442f('0x10')]][_0x442f('0x9')](_0x3e7417=>_0x3e7417['resolvedAt']<_0x136f93);return _0x5be1a6>-0x1?_0x5be1a6:this[_0x442f('0x10')][_0x442f('0x0')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33a6=['focusTracker','classList','children','_calculatePosition','collection','get','plugins','_threadToController','panelView','componentFactory','_pendingThreads','_createArchiveUIDropdown','channelId','stopListening','contains','config','add','commentsArchiveView','editor','push','commentsArchive','init','_visibleAnnotations','length','focusableElements','extendTemplate','innerView','resolvedAt','listenTo','findIndex','find','indexOf','set','mainView','position','isVisible','annotationViews','_handleAnnotationFocusableElements','locale','pluginName','ck-body','splice','requires','ck-comments-archive-dropdown','change:isOpen','COMMENTS_ARCHIVE','view','buttonView','collaboration.channelId','Annotations','remove','resolvedThreads','getByInnerView','filter'];(function(_0xe097c4,_0x33a60a){const _0xef9e8b=function(_0x2f25b6){while(--_0x2f25b6){_0xe097c4['push'](_0xe097c4['shift']());}};_0xef9e8b(++_0x33a60a);}(_0x33a6,0x9e));const _0xef9e=function(_0xe097c4,_0x33a60a){_0xe097c4=_0xe097c4-0x0;let _0xef9e8b=_0x33a6[_0xe097c4];return _0xef9e8b;};import'../../theme/commentsarchive.css';import{Plugin as _0x1a2a0f}from'ckeditor5/src/core';import{createDropdown as _0x3a2f2b,ViewCollection as _0x2851fc}from'ckeditor5/src/ui';import _0x18db92 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x1a79db}from'../utils/common-translations';import _0x4c8bbf from'./ui/view/commentsarchiveview';import _0xa40150 from'./commentsarchive';export default class a extends _0x1a2a0f{static get[_0xef9e('0x2b')](){return'CommentsArchiveUI';}static get[_0xef9e('0x2e')](){return[_0xa40150];}constructor(_0x5852e9){super(_0x5852e9),this['annotationViews']=new _0x2851fc(),this['_pendingThreads']=[];}[_0xef9e('0x19')](){this[_0xef9e('0x16')]['ui'][_0xef9e('0xd')][_0xef9e('0x14')](_0xef9e('0x18'),()=>this[_0xef9e('0xf')]());const _0x293111=this['editor'][_0xef9e('0xa')][_0xef9e('0x9')](_0xa40150),_0x126f95=this[_0xef9e('0x16')][_0xef9e('0xa')][_0xef9e('0x9')](_0xef9e('0x35')),_0x25d939=this[_0xef9e('0x16')]['plugins']['get']('CommentsRepository');this[_0xef9e('0x20')](_0x293111[_0xef9e('0x1')],'add',(_0x5dda5c,_0x28722f)=>{const _0xcba07c=this[_0xef9e('0x16')][_0xef9e('0x13')][_0xef9e('0x9')](_0xef9e('0x34'));if(!_0xcba07c||_0x28722f[_0xef9e('0x10')]===_0xcba07c){const _0x160b1c=this[_0xef9e('0x7')](_0x28722f[_0xef9e('0x1f')]),_0x45b003=_0x25d939[_0xef9e('0xb')][_0xef9e('0x9')](_0x28722f);if(!_0x45b003)return void this[_0xef9e('0xe')][_0xef9e('0x17')]({'thread':_0x28722f,'position':_0x160b1c});const _0x4a9e93=_0x126f95[_0xef9e('0x2')](_0x45b003[_0xef9e('0x32')]);_0x4a9e93[_0xef9e('0x27')]&&_0x126f95[_0xef9e('0x1a')][_0xef9e('0x0')](_0x4a9e93),this[_0xef9e('0x28')]['add'](_0x4a9e93[_0xef9e('0x32')],_0x160b1c);}}),this[_0xef9e('0x20')](_0x126f95[_0xef9e('0x8')],'add',(_0x3eaf14,_0x3fda8d)=>{const _0x557bdd=this['_pendingThreads'][_0xef9e('0x22')](({thread:_0xfc85e0})=>{const _0x2e5050=_0x25d939['_threadToController'][_0xef9e('0x9')](_0xfc85e0);return _0x2e5050&&_0x3fda8d[_0xef9e('0x1e')]===_0x2e5050[_0xef9e('0x32')];});_0x557bdd&&(this[_0xef9e('0x28')][_0xef9e('0x14')](_0x3fda8d[_0xef9e('0x32')],_0x557bdd[_0xef9e('0x26')]),this[_0xef9e('0xe')][_0xef9e('0x2d')](this[_0xef9e('0xe')][_0xef9e('0x23')](_0x557bdd),0x1));}),this[_0xef9e('0x20')](_0x293111[_0xef9e('0x1')],_0xef9e('0x0'),(_0x54e309,_0x12b921)=>{const _0x472163=this[_0xef9e('0x16')]['config'][_0xef9e('0x9')](_0xef9e('0x34'));if(!_0x472163||_0x12b921[_0xef9e('0x10')]===_0x472163){const _0x1d6eb6=_0x25d939[_0xef9e('0xb')][_0xef9e('0x9')](_0x12b921),_0x3fb7ba=_0x126f95['getByInnerView'](_0x1d6eb6[_0xef9e('0x32')]);this[_0xef9e('0x28')]['remove'](_0x3fb7ba[_0xef9e('0x32')]),this[_0xef9e('0x11')](_0x3fb7ba[_0xef9e('0x1c')]);}});}[_0xef9e('0x29')](_0x5284a5,_0x1e2606){for(const _0x25e5ad of _0x1e2606['focusableElements'])_0x25e5ad[_0xef9e('0x5')][_0xef9e('0x12')](_0xef9e('0x2c'))&&_0x5284a5['focusTracker'][_0xef9e('0x14')](_0x25e5ad);this[_0xef9e('0x20')](_0x1e2606['focusableElements'],'add',(_0x47f661,_0x564480)=>{_0x564480[_0xef9e('0x5')][_0xef9e('0x12')](_0xef9e('0x2c'))&&_0x5284a5[_0xef9e('0x4')][_0xef9e('0x14')](_0x564480);}),this[_0xef9e('0x20')](_0x1e2606['focusableElements'],_0xef9e('0x0'),(_0x50fd28,_0x204756)=>{_0x204756[_0xef9e('0x5')][_0xef9e('0x12')](_0xef9e('0x2c'))&&_0x5284a5[_0xef9e('0x4')]['remove'](_0x204756);});}[_0xef9e('0x7')](_0x156ace){const _0x39d651=this[_0xef9e('0x16')][_0xef9e('0x13')][_0xef9e('0x9')](_0xef9e('0x34')),_0x23ec37=[...this['editor'][_0xef9e('0xa')][_0xef9e('0x9')](_0xa40150)['resolvedThreads']][_0xef9e('0x3')](_0x5f58a5=>_0x5f58a5[_0xef9e('0x10')]!==_0x39d651)[_0xef9e('0x21')](_0x428c1e=>_0x428c1e[_0xef9e('0x1f')]<_0x156ace);return _0x23ec37>-0x1?_0x23ec37:this[_0xef9e('0x28')][_0xef9e('0x1b')];}['_createArchiveUIDropdown'](){const _0x9af950=this[_0xef9e('0x16')],_0x34a35f=this[_0xef9e('0x16')][_0xef9e('0xa')][_0xef9e('0x9')]('Annotations'),_0x1e0b76=_0x3a2f2b(_0x9af950[_0xef9e('0x2a')]);_0x1e0b76[_0xef9e('0x33')][_0xef9e('0x24')]({'icon':_0x18db92,'label':_0x1a79db(_0x9af950[_0xef9e('0x2a')],_0xef9e('0x31')),'tooltip':!0x0}),_0x1e0b76[_0xef9e('0xc')][_0xef9e('0x1d')]({'attributes':{'class':_0xef9e('0x2f')}}),_0x1e0b76['on'](_0xef9e('0x30'),(_0x4ba3d7,_0x3ba9b9,_0x1b5e6b)=>{this[_0xef9e('0x15')]||(this[_0xef9e('0x15')]=new _0x4c8bbf(_0x9af950[_0xef9e('0x2a')],this[_0xef9e('0x28')])),_0x1b5e6b?_0x1e0b76[_0xef9e('0xc')]['children']['add'](this['commentsArchiveView']):_0x1e0b76['panelView'][_0xef9e('0x6')]['remove'](this[_0xef9e('0x15')]);});for(const _0x123b7e of this[_0xef9e('0x28')]){const _0x4fe5e8=_0x34a35f[_0xef9e('0x2')](_0x123b7e[_0xef9e('0x25')]);this['_handleAnnotationFocusableElements'](_0x1e0b76,_0x4fe5e8);}return _0x1e0b76[_0xef9e('0x20')](this[_0xef9e('0x28')],_0xef9e('0x14'),(_0xccca1c,_0x447ba4)=>{const _0xb591ce=_0x34a35f[_0xef9e('0x2')](_0x447ba4[_0xef9e('0x25')]);this['_handleAnnotationFocusableElements'](_0x1e0b76,_0xb591ce);}),_0x1e0b76[_0xef9e('0x20')](this[_0xef9e('0x28')],_0xef9e('0x0'),(_0x18d656,_0x1bb09f)=>{const _0x29dc4e=_0x34a35f[_0xef9e('0x2')](_0x1bb09f[_0xef9e('0x25')]);for(const _0x8de185 of _0x29dc4e['focusableElements'])_0x8de185[_0xef9e('0x5')][_0xef9e('0x12')](_0xef9e('0x2c'))&&_0x1e0b76[_0xef9e('0x4')][_0xef9e('0x0')](_0x8de185);}),_0x1e0b76;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2d0a=['data','hasContent','registerAnnotation','addCommentThread','_attachResolvedThread','createRange','split','comment:','_getTargetForId','addComment','isObject','filter','init','end','_getTextContext','resolveCommentThread','conversion','editor','registerPostFixer','ready','markerToHighlight','text','high','get','reopen','then','root','render','removeCommentThread','item','reconvertMarker','_handleThreadMarker','collaboration.channelId','isLocal','_attachMarkerToThread','model','differ','focus','pluginName','isResolved','managedUsingOperations','editingDowncast','removeMarker','affectsData','markerName','comment','consume','view','change:activeMarker','rootName','createPositionBefore','enqueueChange','state','size','low','context','change:isReadOnly','getByInnerView','plugins','change:isThreadsLoadingPaused','ck-comment-marker--active','_threadToController','markers','_handleMarkerAddAndRemove','CommentsEditing','once','activeMarker','_threads','_autoResolvedThreads','document','dataToMarker','start','setContext','$graveyard','map','_reconvertMarkers','getCommentThreads','_hasTargetInContent','$marker','hasDomSelection','getChangedMarkers','switchReadOnly','elementToElement','add','openNewCommentThread','set','consumable','for','updateMarker','scrollToThreadMarker','from','config','has','clear','destroy','getAttribute','listenTo','hasMarkerForId','getCommentThread','schema','resolve','getAllMarkersForId','editing','delete','dataDowncast','_removedThread','isCollapsed','upcast','length','destroyed','_detachCommentThread','ck-comment-marker','markerToData','_attachedThreads','removeMarker:','commands','isThreadsLoadingPaused','change','newRange','getItems','isEqual'];(function(_0x160498,_0x2d0ab5){const _0x410e21=function(_0xa8a40f){while(--_0xa8a40f){_0x160498['push'](_0x160498['shift']());}};_0x410e21(++_0x2d0ab5);}(_0x2d0a,0xc0));const _0x410e=function(_0x160498,_0x2d0ab5){_0x160498=_0x160498-0x0;let _0x410e21=_0x2d0a[_0x160498];return _0x410e21;};import{Plugin as _0x4cfb5c}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x34e470}from'ckeditor5/src/utils';import _0x1bf62 from'./commentsrepository';import _0x3cc61a from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4ae96b}from'ckeditor5-collaboration/src/collaboration-core';import _0x2d04e6 from'../annotations/editorannotations';import _0x137232 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x3336c7 from'./integrations/importword';import _0xc1ca11 from'../annotations/annotations';export default class r extends _0x4cfb5c{static get['requires'](){return[_0x1bf62,_0x2d04e6,_0x137232,_0x3336c7];}static get[_0x410e('0x58')](){return _0x410e('0x72');}constructor(_0x2b72b8){super(_0x2b72b8),this[_0x410e('0x22')]=null,this[_0x410e('0x76')]=new Set(),this['set']('isThreadsLoadingPaused',!0x0),_0x2b72b8[_0x410e('0x32')]['once'](_0x410e('0x45'),()=>this[_0x410e('0x2d')]=!0x1),this['set'](_0x410e('0x74'),null),this['on'](_0x410e('0x62'),(_0x2c4763,_0x1f8771,_0x564d2a,_0x449e61)=>{const _0xb32b8=_0x564d2a?tt(_0x564d2a)['id']:null;if(_0x2b72b8[_0x410e('0x55')]['change'](()=>{if(_0xb32b8){const _0x14f7c5=this[_0x410e('0x1e')](_0xb32b8);for(const _0x189a03 of _0x14f7c5)_0x2b72b8[_0x410e('0x1f')][_0x410e('0x50')](_0x189a03);}if(_0x449e61){const {id:_0x2d0666}=tt(_0x449e61),_0x335419=this[_0x410e('0x1e')](_0x2d0666);for(const _0x3ee823 of _0x335419)_0x2b72b8['editing'][_0x410e('0x50')](_0x3ee823);}}),_0xb32b8){const _0x277d1c=_0x2b72b8[_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62)['getCommentThread'](_0xb32b8);_0x277d1c&&_0x277d1c[_0x410e('0x59')]&&this['scrollToThreadMarker'](_0xb32b8);}}),this['_attachedThreads']=new Map();}[_0x410e('0x3e')](){const _0x593214=this[_0x410e('0x43')],_0x46441d=_0x593214['plugins'][_0x410e('0x49')](_0x1bf62),_0x75ad6d=_0x593214[_0x410e('0x14')]['get'](_0x410e('0x52'));_0x593214[_0x410e('0x2c')][_0x410e('0xc')]('addCommentThread',new _0x3cc61a(_0x593214)),this[_0x410e('0x19')](_0x593214,_0x410e('0x6a'),(_0x27c763,_0x57e152,_0x52706c)=>{_0x46441d[_0x410e('0xa')](_0x52706c,_0x593214[_0x410e('0x14')]['get'](_0x410e('0x52')));}),this['listenTo'](_0x46441d,Z(_0x410e('0x35'),_0x75ad6d),(_0xe841ad,{threadId:_0x32c35})=>{const _0x22a8e3=this['editor'][_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62)[_0x410e('0x1b')](_0x32c35);_0x22a8e3&&_0x22a8e3[_0x410e('0x59')]&&this[_0x410e('0x36')](_0x32c35);}),this[_0x410e('0x19')](_0x46441d,Z(_0x410e('0x4e'),_0x75ad6d),(_0xed4734,{threadId:_0x4d9bdc})=>{_0x593214[_0x410e('0x55')]['enqueueChange']({'isUndoable':!0x1},_0x3429cf=>{const _0x29fcb0=this[_0x410e('0x1e')](_0x4d9bdc);this[_0x410e('0x2a')]['delete'](_0x4d9bdc),this['_removedThread']=_0x4d9bdc;for(const _0x36fad1 of _0x29fcb0)_0x3429cf[_0x410e('0x5c')](_0x36fad1);}),this['_removedThread']=null;},{'priority':_0x410e('0x48')}),this['listenTo'](_0x46441d,Z(_0x410e('0x41'),_0x75ad6d),(_0x26dc53,{threadId:_0x1a4e7e})=>{this[_0x410e('0x36')](_0x1a4e7e),this[_0x410e('0x4')](_0x1a4e7e),this[_0x410e('0x43')][_0x410e('0x1f')]['view'][_0x410e('0x8')]&&this['editor'][_0x410e('0x1f')][_0x410e('0x61')][_0x410e('0x57')]();},{'priority':_0x410e('0x68')}),this['listenTo'](_0x46441d,Z('reopenCommentThread',_0x75ad6d),(_0x4b7109,{threadId:_0x2420b4})=>{this[_0x410e('0x4')](_0x2420b4);},{'priority':_0x410e('0x68')}),this[_0x410e('0x19')](_0x46441d,Z(_0x410e('0x3b'),_0x75ad6d),(_0x3dcdef,{threadId:_0x5d6490,isFromAdapter:_0xe3e089})=>{const _0x3af269=this[_0x410e('0x1e')](_0x5d6490);if(_0xe3e089||0x0==_0x3af269[_0x410e('0x25')]||!_0x46441d['hasCommentThread'](_0x5d6490))return;0x1===_0x46441d[_0x410e('0x1b')](_0x5d6490)[_0x410e('0x25')]&&_0x593214['model'][_0x410e('0x65')]({'isUndoable':!0x1},_0x30d3ae=>{for(const _0x3f4f27 of _0x3af269)_0x30d3ae['updateMarker'](_0x3f4f27,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['destroy'](){const _0x5ec5b9=this[_0x410e('0x43')][_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62),_0x9c955d=this[_0x410e('0x43')][_0x410e('0x14')][_0x410e('0x49')]('collaboration.channelId');for(const _0x39869 of _0x5ec5b9[_0x410e('0x5')]({'channelId':_0x9c955d}))_0x5ec5b9[_0x410e('0x27')](_0x39869['id']),_0x5ec5b9[_0x410e('0x75')]['delete'](_0x39869['id']);super[_0x410e('0x17')]();}[_0x410e('0x1a')](_0x6024af){return this['getAllMarkersForId'](_0x6024af)['length']>0x0;}[_0x410e('0x1e')](_0xb04bf3){return Array[_0x410e('0x13')](this[_0x410e('0x2a')][_0x410e('0x49')](_0xb04bf3)||[])[_0x410e('0x3')](_0x7d2cf4=>this[_0x410e('0x43')][_0x410e('0x55')][_0x410e('0x70')]['get'](_0x7d2cf4))[_0x410e('0x3d')](_0x295bd7=>_0x295bd7);}[_0x410e('0x12')](_0x130685){const _0x596cfa=this[_0x410e('0x3a')](_0x130685);_0x596cfa&&setTimeout(()=>{this[_0x410e('0x74')]&&tt(this[_0x410e('0x74')])['id']===_0x130685&&_0x34e470({'target':_0x596cfa[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x410e('0x4')](_0x3260ef){this[_0x410e('0x43')][_0x410e('0x55')][_0x410e('0x2e')](()=>{for(const _0x24bfa8 of this[_0x410e('0x1e')](_0x3260ef))this[_0x410e('0x43')]['editing'][_0x410e('0x50')](_0x24bfa8);});}['_attachResolvedThread'](_0x2a72d2){const _0x4b7961=this[_0x410e('0x43')][_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62),_0x3c2ce5=this[_0x410e('0x43')][_0x410e('0x6c')][_0x410e('0x49')](_0x2d04e6),_0xb7dad4=_0x4b7961[_0x410e('0x1b')](_0x2a72d2);if(!this[_0x410e('0x2a')][_0x410e('0x15')](_0x2a72d2)){const _0x19ec80=_0xb7dad4['attachTo'](()=>this[_0x410e('0x3a')](_0xb7dad4['id']));_0x3c2ce5['registerAnnotation'](_0x19ec80),this['_attachedThreads'][_0x410e('0xe')](_0x2a72d2,new Set()),_0xb7dad4[_0x410e('0x6')]=!0x1;}}['_initializeMarkerConverters'](){const _0x8f94a2=this['editor'];_0x8f94a2[_0x410e('0x42')][_0x410e('0x10')](_0x410e('0x5b'))[_0x410e('0x46')]({'model':_0x410e('0x5f'),'view':(_0x361a46,_0x255c66)=>{const {id:_0x4223c5}=tt(_0x361a46[_0x410e('0x5e')]),_0x6d88b9=_0x8f94a2[_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62)[_0x410e('0x1b')](_0x4223c5),_0x512ae9=this[_0x410e('0x74')]&&tt(this['activeMarker'])['id']===_0x4223c5;if(_0x6d88b9&&_0x6d88b9['isResolved']&&!_0x512ae9&&_0x361a46[_0x410e('0x4f')])return _0x255c66[_0x410e('0xf')][_0x410e('0x60')](_0x361a46[_0x410e('0x4f')],'addMarker:'+_0x361a46[_0x410e('0x5e')]),_0x255c66['consumable'][_0x410e('0x60')](_0x361a46[_0x410e('0x4f')],_0x410e('0x2b')+_0x361a46[_0x410e('0x5e')]),{'classes':[]};const _0x4269d9=[_0x410e('0x28')];return _0x512ae9&&_0x4269d9['push'](_0x410e('0x6e')),{'classes':_0x4269d9,'attributes':{'data-comment':_0x4223c5}};}}),_0x8f94a2[_0x410e('0x42')][_0x410e('0x10')](_0x410e('0x21'))[_0x410e('0x29')]({'model':_0x410e('0x5f'),'view':(_0x19f6d1,{options:_0x6056e0})=>{const _0x4569ce=_0x8f94a2[_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62),_0x3584d3=_0x8f94a2[_0x410e('0x55')][_0x410e('0x70')]['get'](_0x19f6d1),{id:_0x50d244,part:_0x8bbaa1}=tt(_0x19f6d1);if(_0x3584d3&&!_0x3584d3[_0x410e('0x5d')])return null;if(_0x6056e0['ignoreResolvedComments']){const _0x306172=_0x4569ce[_0x410e('0x1b')](_0x50d244);if(_0x306172&&_0x306172[_0x410e('0x59')])return null;}return{'group':'comment','name':_0x8bbaa1?_0x50d244+':'+_0x8bbaa1:_0x50d244};}}),_0x8f94a2[_0x410e('0x42')]['for'](_0x410e('0x24'))[_0x410e('0xb')]({'view':{'name':_0x410e('0x5f'),'attributes':{'id':/^\w/}},'model':(_0x3d9c42,{writer:_0x26ebb9})=>_0x26ebb9['createElement'](_0x410e('0x7'),{'data-name':_0x410e('0x39')+_0x3d9c42[_0x410e('0x18')]('id')})}),_0x8f94a2[_0x410e('0x42')]['for'](_0x410e('0x24'))[_0x410e('0x78')]({'view':'comment'});}[_0x410e('0x71')](){const _0x3b96=this[_0x410e('0x43')],_0x2f06bf=_0x3b96[_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62),_0x46b400=new Set(),_0x3d4ac3=new Set();_0x3b96[_0x410e('0x55')]['document'][_0x410e('0x44')](_0x12e660=>{let _0x453fd4=!0x1;for(const {name:_0xd14dd9,data:_0x56a772}of _0x3b96['model']['document'][_0x410e('0x56')][_0x410e('0x9')]()){const {group:_0x530ca3,id:_0x162b54}=tt(_0xd14dd9);let _0x3a7113=_0x56a772[_0x410e('0x2f')];if(_0x410e('0x5f')!==_0x530ca3||!_0x3a7113)continue;const _0x198779=_0x410e('0x2')===_0x3a7113[_0x410e('0x4c')][_0x410e('0x63')];_0x198779||(_0x3a7113=ot(_0x3a7113,_0x3b96[_0x410e('0x55')]),!_0x3a7113||_0x3a7113[_0x410e('0x23')]||!_0x56a772['newRange']||_0x3a7113[_0x410e('0x31')](_0x56a772[_0x410e('0x2f')]))?_0x3b96[_0x410e('0x55')][_0x410e('0x33')](_0x3a7113)&&!_0x198779?this['isThreadsLoadingPaused']?_0x46b400[_0x410e('0xc')](_0xd14dd9):this['_handleThreadMarker'](_0xd14dd9,_0x162b54):(_0x3d4ac3[_0x410e('0xc')](_0xd14dd9),_0x46b400['delete'](_0xd14dd9),_0x12e660[_0x410e('0x5c')](_0xd14dd9),_0x453fd4=!0x0):(_0x12e660[_0x410e('0x11')](_0xd14dd9,{'range':_0x3a7113}),_0x453fd4=!0x0);}return _0x453fd4;}),this['on'](_0x410e('0x6d'),(_0x9558c7,_0xf1f6c1,_0x3d57c7)=>{if(!_0x3d57c7&&_0x46b400[_0x410e('0x67')])for(const _0x5a47e2 of _0x46b400){const {id:_0x3de01f}=tt(_0x5a47e2);_0x46b400[_0x410e('0x20')](_0x5a47e2),_0x3b96[_0x410e('0x55')]['markers']['get'](_0x5a47e2)&&this[_0x410e('0x51')](_0x5a47e2,_0x3de01f);}}),this['listenTo'](_0x3b96['model'][_0x410e('0x77')],_0x410e('0x2e'),(_0x430261,_0x509080)=>{for(const {name:_0x5d1450,data:{newRange:_0x33e05d}}of _0x3b96['model'][_0x410e('0x77')][_0x410e('0x56')][_0x410e('0x9')]()){const {group:_0x12b811,id:_0x47ad00}=tt(_0x5d1450);if(_0x410e('0x5f')!==_0x12b811)continue;const _0x1d0377=_0x2f06bf[_0x410e('0x1b')](_0x47ad00),_0x495308=this[_0x410e('0x1a')](_0x47ad00);_0x1d0377&&(_0x1d0377[_0x410e('0x6')]||_0x3b96['editing'][_0x410e('0x61')][_0x410e('0x73')](_0x410e('0x4d'),()=>{const _0x1023ce=_0x3b96[_0x410e('0x6c')][_0x410e('0x49')](_0xc1ca11),_0x272edf=_0x2f06bf[_0x410e('0x6f')][_0x410e('0x49')](_0x1d0377)[_0x410e('0x61')];_0x1023ce[_0x410e('0x6b')](_0x272edf)['refreshVisibility']();},{'priority':_0x410e('0x68')}),_0x1d0377[_0x410e('0x6')]=_0x495308||!!_0x33e05d),_0x33e05d||(_0x3d4ac3['add'](_0x5d1450),_0x46b400[_0x410e('0x20')](_0x5d1450),this[_0x410e('0x2a')][_0x410e('0x15')](_0x47ad00)&&this['_attachedThreads']['get'](_0x47ad00)[_0x410e('0x20')](_0x5d1450));}if(_0x509080[_0x410e('0x53')])for(const _0xa35671 of _0x3d4ac3){const {id:_0x3f7948}=tt(_0xa35671),_0x3d9954=_0x2f06bf['getCommentThread'](_0x3f7948),_0x167926=this[_0x410e('0x1a')](_0x3f7948);_0x46b400['delete'](_0xa35671),!_0x3d9954||_0x167926||_0x3d9954[_0x410e('0x59')]||this[_0x410e('0x22')]===_0x3f7948||(this[_0x410e('0x76')]['add'](_0x3d9954),_0x3d9954[_0x410e('0x1d')]());}_0x3d4ac3[_0x410e('0x16')]();});}[_0x410e('0x3a')](_0x40c864){const _0x36f7f3=this[_0x410e('0x43')],_0x33e0ab=this[_0x410e('0x1e')](_0x40c864);return _0x4ae96b(_0x36f7f3[_0x410e('0x1f')],_0x33e0ab);}[_0x410e('0x40')](_0xc71e67){const _0x1462c4=this['getAllMarkersForId'](_0xc71e67);let _0x38a7dc='',_0x5749d7=!0x1;for(const _0x197670 of _0x1462c4){const _0x195092=_0x197670['getRange']();for(const _0x5821c4 of Array[_0x410e('0x13')](_0x195092[_0x410e('0x30')]()))_0x5821c4['is']('$textProxy')?(_0x38a7dc&&_0x5749d7&&(_0x38a7dc+='\x20',_0x5749d7=!0x1),_0x38a7dc+=_0x5821c4[_0x410e('0x32')]):_0x5749d7=!0x0;_0x5749d7=!0x0;}return _0x38a7dc['substring'](0x0,0x96);}[_0x410e('0x54')](_0x11e9ef,_0xad0317){const _0x1cfd88=this[_0x410e('0x43')],_0x15c3e0=_0x1cfd88[_0x410e('0x6c')][_0x410e('0x49')](_0x1bf62);let _0x224210=_0x15c3e0['getCommentThread'](_0xad0317);if(this[_0x410e('0x2a')][_0x410e('0x15')](_0xad0317)){const _0x2a398d=this[_0x410e('0x2a')][_0x410e('0x49')](_0xad0317);_0x2a398d[_0x410e('0x15')](_0x11e9ef)||_0x2a398d[_0x410e('0xc')](_0x11e9ef);}const _0x6725b5=_0x1cfd88[_0x410e('0x14')][_0x410e('0x49')](_0x410e('0x52')),_0x2a71c3=_0x1cfd88[_0x410e('0x6c')][_0x410e('0x49')](_0x2d04e6);if(_0x224210&&_0x224210['isResolved']&&this[_0x410e('0x76')]['has'](_0x224210)&&(this['_autoResolvedThreads'][_0x410e('0x20')](_0x224210),_0x224210[_0x410e('0x4a')]()),this[_0x410e('0x2a')][_0x410e('0x15')](_0xad0317))return _0x224210;return this[_0x410e('0x2a')][_0x410e('0xe')](_0xad0317,new Set([_0x11e9ef])),(!this[_0x410e('0x1e')](_0xad0317)[0x0][_0x410e('0x5a')]?_0x1cfd88['editing']['view']['once'](_0x410e('0x4d'),()=>{const _0x8387e7=_0x1cfd88[_0x410e('0x6c')]['get'](_0xc1ca11);_0x224210=_0x15c3e0[_0x410e('0xd')]({'channelId':_0x6725b5,'threadId':_0xad0317,'target':()=>this[_0x410e('0x3a')](_0xad0317),'context':{'type':_0x410e('0x47'),'value':this[_0x410e('0x40')](_0xad0317)}});const _0x5277c8=_0x15c3e0['_threadToController']['get'](_0x224210)[_0x410e('0x61')],_0x49a8da=_0x8387e7['getByInnerView'](_0x5277c8);_0x49a8da&&_0x2a71c3[_0x410e('0x34')](_0x49a8da);},{'priority':_0x410e('0x68')}):_0x15c3e0['fetchCommentThread']({'channelId':_0x6725b5,'threadId':_0xad0317})[_0x410e('0x4b')](_0x11ea21=>{if(_0x410e('0x26')!==_0x1cfd88[_0x410e('0x66')]){if(_0x224210=_0x11ea21,_0x224210){const _0x2a4a67=_0x224210['attachTo'](()=>this[_0x410e('0x3a')](_0xad0317));_0x2a71c3[_0x410e('0x34')](_0x2a4a67),_0x224210['isResolved']&&this[_0x410e('0x4')](_0xad0317);}else{const _0x5ac16c=this[_0x410e('0x1e')](_0xad0317);_0x1cfd88[_0x410e('0x55')][_0x410e('0x2e')](_0x316150=>{for(const _0x4f32a9 of _0x5ac16c)_0x316150[_0x410e('0x5c')](_0x4f32a9);});}}}),_0x224210);}['_handleThreadMarker'](_0x4433f5,_0x865fa1){const _0x2ed189=this[_0x410e('0x54')](_0x4433f5,_0x865fa1);_0x2ed189&&!_0x2ed189[_0x410e('0x69')]&&_0x2ed189[_0x410e('0x1')]({'type':_0x410e('0x47'),'value':this['_getTextContext'](_0x865fa1)});}}function Z(_0x180df6,_0x4ebb42){return _0x4ebb42?_0x180df6+':'+_0x4ebb42:_0x180df6;}function tt(_0x35bf5e){const _0xcba58c=_0x35bf5e[_0x410e('0x38')](':');return{'group':_0xcba58c[0x0],'id':_0xcba58c[0x1],'part':_0xcba58c[0x2]};}function ot(_0x397303,_0x1ed332){const _0x48db34=_0x1ed332[_0x410e('0x1c')],_0x15d71e=_0x1ed332[_0x410e('0x37')](_0x397303[_0x410e('0x0')]);for(const _0x5b5b93 of _0x397303['getWalker']()){const {type:_0x2ab65d,item:_0x2cd1b9,nextPosition:_0x3279d0}=_0x5b5b93;if('text'===_0x2ab65d||_0x48db34[_0x410e('0x3c')](_0x2cd1b9)){const _0x3e3a57=_0x1ed332[_0x410e('0x64')](_0x2cd1b9);_0x15d71e['isCollapsed']&&(_0x15d71e['start']=_0x3e3a57),_0x15d71e[_0x410e('0x3f')]=_0x3279d0;}}return _0x15d71e;}
|
|
23
|
+
const _0x1896=['change','end','rootName','conversion','CommentsEditing','resolveCommentThread','switchReadOnly','delete','_detachCommentThread','context','editing','$graveyard','focus','split','comment','change:isThreadsLoadingPaused','editor','_getTargetForId','hasMarkerForId','destroyed','filter','upcast','plugins','set','hasContent','consume','markerToHighlight','hasDomSelection','_removedThread','createRange','root','_attachedThreads','registerPostFixer','removeCommentThread','dataToMarker','enqueueChange','_hasTargetInContent','$marker','differ','push','from','init','getCommentThreads','clear','size','activeMarker','markers','_threadToController','_getTextContext','ignoreResolvedComments','destroy','consumable','_initializeMarkerConverters','getWalker','getChangedMarkers','isThreadsLoadingPaused','low','setContext','isResolved','length','openNewCommentThread','createPositionBefore','has','once','change:activeMarker','_reconvertMarkers','document','comment:','getAllMarkersForId','collaboration.channelId','text','config','getCommentThread','requires','_handleThreadMarker','isCollapsed','removeMarker','isLocal','addComment','resolve','schema','_attachResolvedThread','ck-comment-marker','getItems','change:isReadOnly','map','createElement','attachTo','managedUsingOperations','hasCommentThread','get','item','scrollToThreadMarker','for','then','markerName','high','render','isObject','data','reopen','reconvertMarker','_autoResolvedThreads','editingDowncast','affectsData','view','listenTo','newRange','_threads','addCommentThread','substring','start','refreshVisibility','pluginName','commands','getByInnerView','add','model','_handleMarkerAddAndRemove','isEqual'];(function(_0xec41df,_0x189655){const _0x466aa6=function(_0x93e2e3){while(--_0x93e2e3){_0xec41df['push'](_0xec41df['shift']());}};_0x466aa6(++_0x189655);}(_0x1896,0xa2));const _0x466a=function(_0xec41df,_0x189655){_0xec41df=_0xec41df-0x0;let _0x466aa6=_0x1896[_0xec41df];return _0x466aa6;};import{Plugin as _0xa3ed26}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x550370}from'ckeditor5/src/utils';import _0x3cddb1 from'./commentsrepository';import _0x58c69f from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x34713b}from'ckeditor5-collaboration/src/collaboration-core';import _0x44f802 from'../annotations/editorannotations';import _0x4ef1cf from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x144c38 from'./integrations/importword';import _0x97cd7a from'../annotations/annotations';export default class r extends _0xa3ed26{static get[_0x466a('0x1f')](){return[_0x3cddb1,_0x44f802,_0x4ef1cf,_0x144c38];}static get[_0x466a('0x47')](){return _0x466a('0x52');}constructor(_0x21debd){super(_0x21debd),this[_0x466a('0x6a')]=null,this[_0x466a('0x3c')]=new Set(),this[_0x466a('0x65')](_0x466a('0xd'),!0x0),_0x21debd[_0x466a('0x39')][_0x466a('0x15')]('ready',()=>this[_0x466a('0xd')]=!0x1),this[_0x466a('0x65')]('activeMarker',null),this['on'](_0x466a('0x16'),(_0x4c37df,_0xf8fcbb,_0x2ddbb4,_0x3e671f)=>{const _0x233c32=_0x2ddbb4?tt(_0x2ddbb4)['id']:null;if(_0x21debd[_0x466a('0x4b')][_0x466a('0x4e')](()=>{if(_0x233c32){const _0x49459d=this[_0x466a('0x1a')](_0x233c32);for(const _0x4d5e3a of _0x49459d)_0x21debd[_0x466a('0x58')][_0x466a('0x3b')](_0x4d5e3a);}if(_0x3e671f){const {id:_0x38a8b6}=tt(_0x3e671f),_0x1c4869=this['getAllMarkersForId'](_0x38a8b6);for(const _0x41b687 of _0x1c4869)_0x21debd[_0x466a('0x58')]['reconvertMarker'](_0x41b687);}}),_0x233c32){const _0x53e669=_0x21debd[_0x466a('0x64')]['get'](_0x3cddb1)[_0x466a('0x1e')](_0x233c32);_0x53e669&&_0x53e669[_0x466a('0x10')]&&this[_0x466a('0x32')](_0x233c32);}}),this['_attachedThreads']=new Map();}[_0x466a('0x77')](){const _0x44f0c9=this[_0x466a('0x5e')],_0x4783ec=_0x44f0c9[_0x466a('0x64')][_0x466a('0x30')](_0x3cddb1),_0x4536af=_0x44f0c9['config'][_0x466a('0x30')](_0x466a('0x1b'));_0x44f0c9[_0x466a('0x48')][_0x466a('0x4a')](_0x466a('0x43'),new _0x58c69f(_0x44f0c9)),this['listenTo'](_0x44f0c9,_0x466a('0x2a'),(_0x2e8199,_0x134318,_0x4630e9)=>{_0x4783ec[_0x466a('0x54')](_0x4630e9,_0x44f0c9['config']['get'](_0x466a('0x1b')));}),this[_0x466a('0x40')](_0x4783ec,Z(_0x466a('0x43'),_0x4536af),(_0x475b42,{threadId:_0x3bf41d})=>{const _0x41653e=this[_0x466a('0x5e')]['plugins'][_0x466a('0x30')](_0x3cddb1)[_0x466a('0x1e')](_0x3bf41d);_0x41653e&&_0x41653e[_0x466a('0x10')]&&this[_0x466a('0x27')](_0x3bf41d);}),this[_0x466a('0x40')](_0x4783ec,Z(_0x466a('0x6f'),_0x4536af),(_0x208703,{threadId:_0x2239ff})=>{_0x44f0c9[_0x466a('0x4b')][_0x466a('0x71')]({'isUndoable':!0x1},_0x1e883d=>{const _0x23eeae=this[_0x466a('0x1a')](_0x2239ff);this[_0x466a('0x6d')]['delete'](_0x2239ff),this[_0x466a('0x6a')]=_0x2239ff;for(const _0x25b24a of _0x23eeae)_0x1e883d[_0x466a('0x22')](_0x25b24a);}),this[_0x466a('0x6a')]=null;},{'priority':_0x466a('0x36')}),this[_0x466a('0x40')](_0x4783ec,Z(_0x466a('0x53'),_0x4536af),(_0x4c84c4,{threadId:_0x43a6ea})=>{this[_0x466a('0x27')](_0x43a6ea),this[_0x466a('0x17')](_0x43a6ea),this[_0x466a('0x5e')][_0x466a('0x58')][_0x466a('0x3f')][_0x466a('0x69')]&&this[_0x466a('0x5e')][_0x466a('0x58')][_0x466a('0x3f')][_0x466a('0x5a')]();},{'priority':_0x466a('0xe')}),this[_0x466a('0x40')](_0x4783ec,Z('reopenCommentThread',_0x4536af),(_0x4fa2f5,{threadId:_0x3f859f})=>{this[_0x466a('0x17')](_0x3f859f);},{'priority':_0x466a('0xe')}),this[_0x466a('0x40')](_0x4783ec,Z(_0x466a('0x24'),_0x4536af),(_0x95eb5a,{threadId:_0x285be2,isFromAdapter:_0x2a1019})=>{const _0x248e7b=this[_0x466a('0x1a')](_0x285be2);if(_0x2a1019||0x0==_0x248e7b[_0x466a('0x11')]||!_0x4783ec[_0x466a('0x2f')](_0x285be2))return;0x1===_0x4783ec['getCommentThread'](_0x285be2)[_0x466a('0x11')]&&_0x44f0c9[_0x466a('0x4b')]['enqueueChange']({'isUndoable':!0x1},_0x102318=>{for(const _0x22a101 of _0x248e7b)_0x102318['updateMarker'](_0x22a101,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x466a('0xe')}),this[_0x466a('0xa')](),this[_0x466a('0x4c')]();}['destroy'](){const _0x5b87e8=this[_0x466a('0x5e')]['plugins']['get'](_0x3cddb1),_0x38fa44=this[_0x466a('0x5e')][_0x466a('0x1d')][_0x466a('0x30')]('collaboration.channelId');for(const _0x12c259 of _0x5b87e8[_0x466a('0x0')]({'channelId':_0x38fa44}))_0x5b87e8[_0x466a('0x56')](_0x12c259['id']),_0x5b87e8[_0x466a('0x42')][_0x466a('0x55')](_0x12c259['id']);super[_0x466a('0x8')]();}[_0x466a('0x60')](_0x50abc4){return this[_0x466a('0x1a')](_0x50abc4)[_0x466a('0x11')]>0x0;}[_0x466a('0x1a')](_0x18feaa){return Array[_0x466a('0x76')](this[_0x466a('0x6d')]['get'](_0x18feaa)||[])[_0x466a('0x2b')](_0xdd7e15=>this[_0x466a('0x5e')][_0x466a('0x4b')]['markers'][_0x466a('0x30')](_0xdd7e15))[_0x466a('0x62')](_0x330b78=>_0x330b78);}['scrollToThreadMarker'](_0x9a9387){const _0x2b9ff8=this[_0x466a('0x5f')](_0x9a9387);_0x2b9ff8&&setTimeout(()=>{this['activeMarker']&&tt(this[_0x466a('0x3')])['id']===_0x9a9387&&_0x550370({'target':_0x2b9ff8[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x466a('0x17')](_0x57ac90){this['editor'][_0x466a('0x4b')]['change'](()=>{for(const _0x9a0904 of this[_0x466a('0x1a')](_0x57ac90))this[_0x466a('0x5e')]['editing'][_0x466a('0x3b')](_0x9a0904);});}[_0x466a('0x27')](_0x4af0c6){const _0x97d6e2=this['editor']['plugins'][_0x466a('0x30')](_0x3cddb1),_0x4244e5=this['editor'][_0x466a('0x64')][_0x466a('0x30')](_0x44f802),_0x376346=_0x97d6e2[_0x466a('0x1e')](_0x4af0c6);if(!this['_attachedThreads'][_0x466a('0x14')](_0x4af0c6)){const _0x2069a2=_0x376346['attachTo'](()=>this[_0x466a('0x5f')](_0x376346['id']));_0x4244e5['registerAnnotation'](_0x2069a2),this[_0x466a('0x6d')][_0x466a('0x65')](_0x4af0c6,new Set()),_0x376346[_0x466a('0x72')]=!0x1;}}[_0x466a('0xa')](){const _0x175c06=this[_0x466a('0x5e')];_0x175c06[_0x466a('0x51')][_0x466a('0x33')](_0x466a('0x3d'))[_0x466a('0x68')]({'model':_0x466a('0x5c'),'view':(_0x46d1b0,_0x85c9f8)=>{const {id:_0x27970c}=tt(_0x46d1b0['markerName']),_0x490f22=_0x175c06[_0x466a('0x64')][_0x466a('0x30')](_0x3cddb1)[_0x466a('0x1e')](_0x27970c),_0x2397f7=this[_0x466a('0x3')]&&tt(this[_0x466a('0x3')])['id']===_0x27970c;if(_0x490f22&&_0x490f22['isResolved']&&!_0x2397f7&&_0x46d1b0[_0x466a('0x31')])return _0x85c9f8[_0x466a('0x9')]['consume'](_0x46d1b0[_0x466a('0x31')],'addMarker:'+_0x46d1b0[_0x466a('0x35')]),_0x85c9f8[_0x466a('0x9')][_0x466a('0x67')](_0x46d1b0[_0x466a('0x31')],'removeMarker:'+_0x46d1b0[_0x466a('0x35')]),{'classes':[]};const _0x3461ff=[_0x466a('0x28')];return _0x2397f7&&_0x3461ff[_0x466a('0x75')]('ck-comment-marker--active'),{'classes':_0x3461ff,'attributes':{'data-comment':_0x27970c}};}}),_0x175c06['conversion']['for']('dataDowncast')['markerToData']({'model':_0x466a('0x5c'),'view':(_0x3de60d,{options:_0x4ff71c})=>{const _0x4fcc06=_0x175c06[_0x466a('0x64')]['get'](_0x3cddb1),_0x195daa=_0x175c06['model'][_0x466a('0x4')][_0x466a('0x30')](_0x3de60d),{id:_0x53c03f,part:_0x558862}=tt(_0x3de60d);if(_0x195daa&&!_0x195daa[_0x466a('0x3e')])return null;if(_0x4ff71c[_0x466a('0x7')]){const _0x1fe536=_0x4fcc06[_0x466a('0x1e')](_0x53c03f);if(_0x1fe536&&_0x1fe536[_0x466a('0x10')])return null;}return{'group':_0x466a('0x5c'),'name':_0x558862?_0x53c03f+':'+_0x558862:_0x53c03f};}}),_0x175c06['conversion'][_0x466a('0x33')](_0x466a('0x63'))['elementToElement']({'view':{'name':_0x466a('0x5c'),'attributes':{'id':/^\w/}},'model':(_0x1750f3,{writer:_0x43c4f1})=>_0x43c4f1[_0x466a('0x2c')](_0x466a('0x73'),{'data-name':_0x466a('0x19')+_0x1750f3['getAttribute']('id')})}),_0x175c06[_0x466a('0x51')][_0x466a('0x33')](_0x466a('0x63'))[_0x466a('0x70')]({'view':_0x466a('0x5c')});}[_0x466a('0x4c')](){const _0x369c5c=this[_0x466a('0x5e')],_0x1e7ebb=_0x369c5c[_0x466a('0x64')][_0x466a('0x30')](_0x3cddb1),_0x501b55=new Set(),_0x806029=new Set();_0x369c5c['model'][_0x466a('0x18')][_0x466a('0x6e')](_0x319927=>{let _0x6a4e3=!0x1;for(const {name:_0x447ebc,data:_0x9c3ee2}of _0x369c5c[_0x466a('0x4b')]['document']['differ']['getChangedMarkers']()){const {group:_0x3d9816,id:_0x5573a3}=tt(_0x447ebc);let _0x25c5bc=_0x9c3ee2[_0x466a('0x41')];if(_0x466a('0x5c')!==_0x3d9816||!_0x25c5bc)continue;const _0x4c0f77=_0x466a('0x59')===_0x25c5bc[_0x466a('0x6c')][_0x466a('0x50')];_0x4c0f77||(_0x25c5bc=ot(_0x25c5bc,_0x369c5c[_0x466a('0x4b')]),!_0x25c5bc||_0x25c5bc['isCollapsed']||!_0x9c3ee2[_0x466a('0x41')]||_0x25c5bc[_0x466a('0x4d')](_0x9c3ee2[_0x466a('0x41')]))?_0x369c5c[_0x466a('0x4b')][_0x466a('0x66')](_0x25c5bc)&&!_0x4c0f77?this[_0x466a('0xd')]?_0x501b55[_0x466a('0x4a')](_0x447ebc):this[_0x466a('0x20')](_0x447ebc,_0x5573a3):(_0x806029[_0x466a('0x4a')](_0x447ebc),_0x501b55[_0x466a('0x55')](_0x447ebc),_0x319927[_0x466a('0x22')](_0x447ebc),_0x6a4e3=!0x0):(_0x319927['updateMarker'](_0x447ebc,{'range':_0x25c5bc}),_0x6a4e3=!0x0);}return _0x6a4e3;}),this['on'](_0x466a('0x5d'),(_0x59000e,_0x21f26a,_0x48d859)=>{if(!_0x48d859&&_0x501b55[_0x466a('0x2')])for(const _0x9020d7 of _0x501b55){const {id:_0x46d6e5}=tt(_0x9020d7);_0x501b55[_0x466a('0x55')](_0x9020d7),_0x369c5c[_0x466a('0x4b')]['markers'][_0x466a('0x30')](_0x9020d7)&&this['_handleThreadMarker'](_0x9020d7,_0x46d6e5);}}),this[_0x466a('0x40')](_0x369c5c[_0x466a('0x4b')][_0x466a('0x18')],_0x466a('0x4e'),(_0x46cbd9,_0x56848c)=>{for(const {name:_0x4eff83,data:{newRange:_0x561e67}}of _0x369c5c[_0x466a('0x4b')][_0x466a('0x18')][_0x466a('0x74')][_0x466a('0xc')]()){const {group:_0x2fa31c,id:_0x3d81fd}=tt(_0x4eff83);if(_0x466a('0x5c')!==_0x2fa31c)continue;const _0x24a6f3=_0x1e7ebb['getCommentThread'](_0x3d81fd),_0x39183c=this[_0x466a('0x60')](_0x3d81fd);_0x24a6f3&&(_0x24a6f3[_0x466a('0x72')]||_0x369c5c[_0x466a('0x58')][_0x466a('0x3f')][_0x466a('0x15')](_0x466a('0x37'),()=>{const _0x3e0509=_0x369c5c[_0x466a('0x64')]['get'](_0x97cd7a),_0x22415b=_0x1e7ebb[_0x466a('0x5')][_0x466a('0x30')](_0x24a6f3)[_0x466a('0x3f')];_0x3e0509[_0x466a('0x49')](_0x22415b)[_0x466a('0x46')]();},{'priority':'low'}),_0x24a6f3['_hasTargetInContent']=_0x39183c||!!_0x561e67),_0x561e67||(_0x806029[_0x466a('0x4a')](_0x4eff83),_0x501b55['delete'](_0x4eff83),this[_0x466a('0x6d')][_0x466a('0x14')](_0x3d81fd)&&this[_0x466a('0x6d')][_0x466a('0x30')](_0x3d81fd)[_0x466a('0x55')](_0x4eff83));}if(_0x56848c[_0x466a('0x23')])for(const _0x29badd of _0x806029){const {id:_0x30a9c9}=tt(_0x29badd),_0x288cce=_0x1e7ebb['getCommentThread'](_0x30a9c9),_0x56d384=this[_0x466a('0x60')](_0x30a9c9);_0x501b55['delete'](_0x29badd),!_0x288cce||_0x56d384||_0x288cce['isResolved']||this['_removedThread']===_0x30a9c9||(this[_0x466a('0x3c')][_0x466a('0x4a')](_0x288cce),_0x288cce[_0x466a('0x25')]());}_0x806029[_0x466a('0x1')]();});}['_getTargetForId'](_0x192eb9){const _0x2c2688=this[_0x466a('0x5e')],_0x14f41f=this[_0x466a('0x1a')](_0x192eb9);return _0x34713b(_0x2c2688['editing'],_0x14f41f);}['_getTextContext'](_0x22f47a){const _0x46f46c=this['getAllMarkersForId'](_0x22f47a);let _0x4e2fb='',_0x408968=!0x1;for(const _0x21aa59 of _0x46f46c){const _0x50ce60=_0x21aa59['getRange']();for(const _0x117f86 of Array[_0x466a('0x76')](_0x50ce60[_0x466a('0x29')]()))_0x117f86['is']('$textProxy')?(_0x4e2fb&&_0x408968&&(_0x4e2fb+='\x20',_0x408968=!0x1),_0x4e2fb+=_0x117f86[_0x466a('0x39')]):_0x408968=!0x0;_0x408968=!0x0;}return _0x4e2fb[_0x466a('0x44')](0x0,0x96);}['_attachMarkerToThread'](_0x2cd1e9,_0x4c5cdc){const _0x219d3c=this[_0x466a('0x5e')],_0x2274c3=_0x219d3c[_0x466a('0x64')]['get'](_0x3cddb1);let _0xb808b2=_0x2274c3[_0x466a('0x1e')](_0x4c5cdc);if(this[_0x466a('0x6d')][_0x466a('0x14')](_0x4c5cdc)){const _0x106e32=this[_0x466a('0x6d')][_0x466a('0x30')](_0x4c5cdc);_0x106e32[_0x466a('0x14')](_0x2cd1e9)||_0x106e32['add'](_0x2cd1e9);}const _0x2dcd9a=_0x219d3c['config'][_0x466a('0x30')]('collaboration.channelId'),_0x9becba=_0x219d3c[_0x466a('0x64')][_0x466a('0x30')](_0x44f802);if(_0xb808b2&&_0xb808b2[_0x466a('0x10')]&&this[_0x466a('0x3c')][_0x466a('0x14')](_0xb808b2)&&(this[_0x466a('0x3c')][_0x466a('0x55')](_0xb808b2),_0xb808b2[_0x466a('0x3a')]()),this[_0x466a('0x6d')][_0x466a('0x14')](_0x4c5cdc))return _0xb808b2;return this['_attachedThreads'][_0x466a('0x65')](_0x4c5cdc,new Set([_0x2cd1e9])),(!this[_0x466a('0x1a')](_0x4c5cdc)[0x0][_0x466a('0x2e')]?_0x219d3c[_0x466a('0x58')][_0x466a('0x3f')][_0x466a('0x15')](_0x466a('0x37'),()=>{const _0x19cf9a=_0x219d3c[_0x466a('0x64')][_0x466a('0x30')](_0x97cd7a);_0xb808b2=_0x2274c3[_0x466a('0x12')]({'channelId':_0x2dcd9a,'threadId':_0x4c5cdc,'target':()=>this[_0x466a('0x5f')](_0x4c5cdc),'context':{'type':_0x466a('0x1c'),'value':this[_0x466a('0x6')](_0x4c5cdc)}});const _0x12697b=_0x2274c3[_0x466a('0x5')][_0x466a('0x30')](_0xb808b2)['view'],_0x34894e=_0x19cf9a[_0x466a('0x49')](_0x12697b);_0x34894e&&_0x9becba['registerAnnotation'](_0x34894e);},{'priority':_0x466a('0xe')}):_0x2274c3['fetchCommentThread']({'channelId':_0x2dcd9a,'threadId':_0x4c5cdc})[_0x466a('0x34')](_0x2d1ecd=>{if(_0x466a('0x61')!==_0x219d3c['state']){if(_0xb808b2=_0x2d1ecd,_0xb808b2){const _0x2f1177=_0xb808b2[_0x466a('0x2d')](()=>this['_getTargetForId'](_0x4c5cdc));_0x9becba['registerAnnotation'](_0x2f1177),_0xb808b2[_0x466a('0x10')]&&this['_reconvertMarkers'](_0x4c5cdc);}else{const _0x40ddc3=this[_0x466a('0x1a')](_0x4c5cdc);_0x219d3c[_0x466a('0x4b')]['change'](_0x5cad0d=>{for(const _0x1b4bca of _0x40ddc3)_0x5cad0d[_0x466a('0x22')](_0x1b4bca);});}}}),_0xb808b2);}[_0x466a('0x20')](_0x488c3c,_0x5218c0){const _0x3cd567=this['_attachMarkerToThread'](_0x488c3c,_0x5218c0);_0x3cd567&&!_0x3cd567[_0x466a('0x57')]&&_0x3cd567[_0x466a('0xf')]({'type':_0x466a('0x1c'),'value':this[_0x466a('0x6')](_0x5218c0)});}}function Z(_0x3ea28e,_0x162ac9){return _0x162ac9?_0x3ea28e+':'+_0x162ac9:_0x3ea28e;}function tt(_0x1d4ef7){const _0x561a59=_0x1d4ef7[_0x466a('0x5b')](':');return{'group':_0x561a59[0x0],'id':_0x561a59[0x1],'part':_0x561a59[0x2]};}function ot(_0x2b90c5,_0x5f5b69){const _0x129476=_0x5f5b69[_0x466a('0x26')],_0x38323d=_0x5f5b69[_0x466a('0x6b')](_0x2b90c5[_0x466a('0x45')]);for(const _0x56085c of _0x2b90c5[_0x466a('0xb')]()){const {type:_0x1e9096,item:_0x5a8ebe,nextPosition:_0x59b3a1}=_0x56085c;if(_0x466a('0x1c')===_0x1e9096||_0x129476[_0x466a('0x38')](_0x5a8ebe)){const _0x20c9ef=_0x5f5b69[_0x466a('0x13')](_0x5a8ebe);_0x38323d[_0x466a('0x21')]&&(_0x38323d[_0x466a('0x45')]=_0x20c9ef),_0x38323d[_0x466a('0x4f')]=_0x59b3a1;}}return _0x38323d;}
|