@ckeditor/ckeditor5-comments 0.0.0-nightly-20231213.0 → 0.0.0-nightly-20231215.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 _0x20d6=['_updateHeight','destroy','height','bindTemplate','mainView','Esc','clear','render','_mutationObserver','keystrokes','detach','add','type','set','content','ck-annotation-wrapper--active','fire','focus','isDirty','targetRect','focusTracker','clientHeight','createCollection','ck-rounded-corners','listenTo','element','isActive'];(function(_0x11d353,_0x20d6c7){const _0x592172=function(_0x10c8d9){while(--_0x10c8d9){_0x11d353['push'](_0x11d353['shift']());}};_0x592172(++_0x20d6c7);}(_0x20d6,0xae));const _0x5921=function(_0x11d353,_0x20d6c7){_0x11d353=_0x11d353-0x0;let _0x592172=_0x20d6[_0x11d353];return _0x592172;};import{View as _0x38df73}from'ckeditor5/src/ui';import{FocusTracker as _0x13cd75,KeystrokeHandler as _0x571509,uid as _0x37c366}from'ckeditor5/src/utils';import _0x191886 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x38df73{constructor(_0x12a327,_0x135ba5){super(_0x12a327),this['id']=_0x37c366(),this[_0x5921('0x8')]=new _0x13cd75(),this[_0x5921('0x18')]=new _0x571509(),this['keystrokes'][_0x5921('0x1')](_0x5921('0x14'),(_0x3cf305,_0x307ffe)=>this[_0x5921('0x4')](_0x5921('0x14'),_0x307ffe)),this[_0x5921('0x1')](_0x5921('0x7'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5921('0x1')](_0x5921('0x11'),0x0),this[_0x5921('0x1')](_0x5921('0xe'),!0x1),this[_0x5921('0x1')](_0x5921('0x6'),!0x1),this[_0x5921('0x1')]('length',0x0),this['set'](_0x5921('0x0'),''),this[_0x5921('0x17')]=_0x191886(()=>this['_updateHeight']()),this[_0x5921('0x2')]=this[_0x5921('0xa')](),this[_0x5921('0x2')]['add'](_0x135ba5),this[_0x5921('0x13')]=_0x135ba5;const _0x438a85=this[_0x5921('0x12')];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper',_0x5921('0xb'),_0x438a85['if'](_0x5921('0xe'),_0x5921('0x3'))],'tabindex':-0x1},'children':this[_0x5921('0x2')]});}[_0x5921('0x16')](){super[_0x5921('0x16')](),this[_0x5921('0x8')][_0x5921('0x1a')](this['element']),this[_0x5921('0x18')][_0x5921('0xc')](this[_0x5921('0xd')]),this['_mutationObserver']['attach'](this[_0x5921('0xd')]);}[_0x5921('0x10')](){this['content'][_0x5921('0x15')](),this[_0x5921('0x18')]['destroy'](),this[_0x5921('0x8')]['destroy'](),this[_0x5921('0x17')][_0x5921('0x19')](),super[_0x5921('0x10')]();}[_0x5921('0x5')](){this[_0x5921('0xd')][_0x5921('0x5')]();}[_0x5921('0xf')](){const _0x328de1=this[_0x5921('0xd')][_0x5921('0x9')];_0x328de1&&(this[_0x5921('0x11')]=_0x328de1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x329d=['ck-sidebar-item','clear','_targetTop','isAnimationDisabled','_mutationObserver','height','render','ck-sidebar-item--no-animation','set','bottom','div','top','updateHeight','clientHeight','content','destroy','bindTemplate','element'];(function(_0x4f686c,_0x329dc1){const _0x19dfe2=function(_0x21c75c){while(--_0x21c75c){_0x4f686c['push'](_0x4f686c['shift']());}};_0x19dfe2(++_0x329dc1);}(_0x329d,0x1b1));const _0x19df=function(_0x4f686c,_0x329dc1){_0x4f686c=_0x4f686c-0x0;let _0x19dfe2=_0x329d[_0x4f686c];return _0x19dfe2;};import{View as _0x52ae69}from'ckeditor5/src/ui';import{toUnit as _0x190fc1}from'ckeditor5/src/utils';import _0x279d3b from'../../utils/createmutationobserver';const jt=_0x190fc1('px');export default class C extends _0x52ae69{constructor(_0x73d293){super(_0x73d293),this['set'](_0x19df('0xa'),0x0),this['set'](_0x19df('0x4'),0x0),this['bind'](_0x19df('0x8'))['to'](this,_0x19df('0xa'),this,_0x19df('0x4'),(_0x4fed15,_0x22f08c)=>_0x4fed15+_0x22f08c),this[_0x19df('0x7')]('isAnimationDisabled',!0x1),this[_0x19df('0x3')]=_0x279d3b(()=>this[_0x19df('0xb')]()),this[_0x19df('0x1')]=null,this[_0x19df('0xd')]=this['createCollection']();const _0x693165=this[_0x19df('0xf')];this['setTemplate']({'tag':_0x19df('0x9'),'attributes':{'class':[_0x19df('0x11'),_0x693165['to'](_0x19df('0x2'),_0x453557=>_0x453557?_0x19df('0x6'):'')],'style':{'top':_0x693165['to']('top',_0x1ffeee=>jt(_0x1ffeee))}},'children':this[_0x19df('0xd')]});}[_0x19df('0x5')](){super[_0x19df('0x5')](),this[_0x19df('0x3')]['attach'](this[_0x19df('0x10')]);}[_0x19df('0xb')](){const _0x2e64b1=this[_0x19df('0x10')][_0x19df('0xc')];_0x2e64b1&&(this[_0x19df('0x4')]=_0x2e64b1);}['destroy'](){this[_0x19df('0xd')][_0x19df('0x0')](),this[_0x19df('0x3')]['detach'](),super[_0x19df('0xe')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30fb=['minHeight','list','div','set','createCollection','class','setTemplate','bindTemplate','ck-sidebar','ck-reset'];(function(_0x1cfffc,_0x30fbf7){const _0x506cec=function(_0x488274){while(--_0x488274){_0x1cfffc['push'](_0x1cfffc['shift']());}};_0x506cec(++_0x30fbf7);}(_0x30fb,0xdd));const _0x506c=function(_0x1cfffc,_0x30fbf7){_0x1cfffc=_0x1cfffc-0x0;let _0x506cec=_0x30fb[_0x1cfffc];return _0x506cec;};import{View as _0x3e7245}from'ckeditor5/src/ui';import{toUnit as _0x5795e9}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x5795e9('px');export default class T extends _0x3e7245{constructor(_0x2dd5b3){super(_0x2dd5b3);const _0xaee32e=this[_0x506c('0x6')];this[_0x506c('0x2')]('minHeight',0x0),this[_0x506c('0x2')](_0x506c('0x4'),''),this['list']=this[_0x506c('0x3')](),this[_0x506c('0x5')]({'tag':_0x506c('0x1'),'attributes':{'class':['ck',_0x506c('0x7'),_0x506c('0x8'),_0xaee32e['to'](_0x506c('0x4'))],'style':{'minHeight':_0xaee32e['to'](_0x506c('0x9'),_0x16e5bb=>'number'==typeof _0x16e5bb?jt(_0x16e5bb+0xa):null)}},'children':this[_0x506c('0x0')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bd8=['container','EditorAnnotations','_integrateWithEditorAnnotations','setActiveAnnotation','add','ck-sidebar--wide','activeAnnotation','context','_destroyEditorAnnotationsIntegration','set:container','cancel','WideSidebar','_attachToContainer','listenTo','switchTo','editors','isAttached','removeEventListener','attach','refreshPositioning','high','_refreshPositioningDebounced','widesidebar-attach-already-attached','widesidebar-detach-not-attached','get','from','register','addAnnotation','blur','focus','refresh','annotations','init','_editorAnnotations','detach','hasDomSelection','wideSidebar','updateTargetRect','pluginName','resize','requires','remove','uiUpdate','off','_annotations','stop','_activeAnnotation','stopListening','plugins','rearrange'];(function(_0x1c5fed,_0x5bd83f){const _0xd3841d=function(_0x230954){while(--_0x230954){_0x1c5fed['push'](_0x1c5fed['shift']());}};_0xd3841d(++_0x5bd83f);}(_0x5bd8,0xdb));const _0xd384=function(_0x1c5fed,_0x5bd83f){_0x1c5fed=_0x1c5fed-0x0;let _0xd3841d=_0x5bd8[_0x1c5fed];return _0xd3841d;};import{ContextPlugin as _0x24bbf3,Context as _0xd79217}from'ckeditor5/src/core';import _0x4db57f from'./annotationsuis';import _0x1a524c from'./sidebar';import{CKEditorError as _0x24ad33,Collection as _0x21c9d2}from'ckeditor5/src/utils';import{debounce as _0xb1272a}from'lodash-es';import _0x507b4b from'./editorannotations';export default class i extends _0x24bbf3{static get[_0xd384('0x15')](){return[_0x1a524c,_0x4db57f];}static get[_0xd384('0x13')](){return _0xd384('0x2a');}constructor(_0x230433){super(_0x230433),this[_0xd384('0x2f')]=!0x1,this['set']('activeAnnotation',null),this[_0xd384('0xc')]=null,this[_0xd384('0xe')]=new _0x21c9d2(),this['_refreshPositioningDebounced']=_0xb1272a(()=>{this[_0xd384('0xc')][_0xd384('0x0')]();},0xfa,{'leading':!0x1});}[_0xd384('0xd')](){const _0x33adaf=this[_0xd384('0x26')][_0xd384('0x1d')]['get'](_0x4db57f),_0x10531f=this['context'][_0xd384('0x1d')][_0xd384('0x5')](_0x1a524c);_0x33adaf[_0xd384('0x7')](_0xd384('0x11'),this),_0x10531f[_0xd384('0x1f')]&&_0x33adaf[_0xd384('0x2d')](_0xd384('0x11'));}[_0xd384('0x22')](_0x52a293){if(_0x52a293===this[_0xd384('0x25')])return;const _0x5509a3=this[_0xd384('0x26')]['plugins']['get'](_0x1a524c);_0x5509a3[_0xd384('0x1b')]=_0x52a293;const _0x5e54=this[_0xd384('0x25')];this[_0xd384('0x25')]=_0x52a293,_0x5509a3[_0xd384('0xb')]({'blurredAnnotation':_0x5e54,'activatedAnnotation':this[_0xd384('0x25')]});}[_0xd384('0x31')](_0x56822a){this[_0xd384('0xc')]=_0x56822a;const _0x5482d6=this[_0xd384('0x26')][_0xd384('0x1d')]['get'](_0x1a524c);if(_0x5482d6[_0xd384('0x19')]=_0x56822a,this[_0xd384('0x2f')])throw new _0x24ad33(_0xd384('0x3'),this);this[_0xd384('0x2f')]=!0x0,this['listenTo'](_0x5482d6,_0xd384('0x28'),()=>{this[_0xd384('0xf')](),this[_0xd384('0x2c')](_0x5482d6,'change:container',_0x59b007=>{_0x59b007[_0xd384('0x18')](),this[_0xd384('0x31')](_0x56822a);});}),_0x5482d6[_0xd384('0x2b')]({'viewClass':_0xd384('0x24')});const _0x5525ec=_0x594449=>{_0x594449[_0xd384('0x12')](),_0x5482d6[_0xd384('0x8')](_0x594449);};for(const _0xa2d6de of _0x56822a)_0x5525ec(_0xa2d6de);this[_0xd384('0x2c')](_0x56822a,'add',(_0x4f6adc,_0x409176)=>{_0x5525ec(_0x409176);}),this[_0xd384('0x2c')](_0x56822a,_0xd384('0x16'),(_0x3f5786,_0x3c0d81,_0x49caaa)=>{_0x5482d6[_0xd384('0x1e')]({'removedAnnotation':_0x3c0d81,'previousAnnotation':_0x56822a[_0xd384('0x5')](_0x49caaa-0x1),'nextAnnotation':_0x56822a[_0xd384('0x5')](_0x49caaa+0x1)}),_0x3c0d81===this[_0xd384('0x25')]&&this[_0xd384('0x22')](null);},{'priority':_0xd384('0x1')}),this[_0xd384('0x2c')](_0x56822a,_0xd384('0xa'),(_0x30436e,_0x2cc5fa)=>{this[_0xd384('0x22')](_0x2cc5fa);}),this[_0xd384('0x2c')](_0x56822a,'blur',()=>{this[_0xd384('0x22')](null);});const _0x544622=this[_0xd384('0x26')]instanceof _0xd79217?this[_0xd384('0x26')][_0xd384('0x2e')]:new _0x21c9d2([this['context']]);for(const _0x37d791 of _0x544622)this[_0xd384('0x21')](_0x37d791);this['listenTo'](_0x544622,_0xd384('0x23'),(_0x27ad50,_0x5ad792)=>{this['listenTo'](_0x5ad792,'ready',()=>{this[_0xd384('0x21')](_0x5ad792);});}),this[_0xd384('0x2c')](_0x544622,_0xd384('0x16'),(_0x5887a0,_0x3d5ccf)=>{_0x3d5ccf['plugins']['has'](_0xd384('0x20'))&&this[_0xd384('0x27')](_0x3d5ccf[_0xd384('0x1d')]['get'](_0xd384('0x20')));}),window['addEventListener'](_0xd384('0x14'),this[_0xd384('0x2')]),this[_0xd384('0xc')][_0xd384('0x0')]();}[_0xd384('0xf')](){if(!this['isAttached'])throw new _0x24ad33(_0xd384('0x4'),this);this[_0xd384('0x22')](null);const _0x16379e=this[_0xd384('0x26')][_0xd384('0x1d')]['get'](_0x1a524c);_0x16379e['_detachFromContainer'](this['annotations']),this[_0xd384('0x1c')](_0x16379e),this['stopListening'](this[_0xd384('0xc')]),this[_0xd384('0x26')]instanceof _0xd79217&&this[_0xd384('0x1c')](this['context'][_0xd384('0x2e')]);for(const _0x13414d of Array[_0xd384('0x6')](this[_0xd384('0xe')]))this[_0xd384('0x27')](_0x13414d);window[_0xd384('0x30')]('resize',this[_0xd384('0x2')]),this[_0xd384('0x2')][_0xd384('0x29')](),this[_0xd384('0x25')]=null,this['isAttached']=!0x1,this[_0xd384('0xc')]=null;}['destroy'](){this[_0xd384('0x2f')]&&this[_0xd384('0xf')]();}['_integrateWithEditorAnnotations'](_0x564cc6){const _0x461b98=_0x564cc6['plugins']['get'](_0x507b4b);if(!_0x461b98)return;const _0x4a1c54=()=>{const _0x26f054=_0x461b98['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this[_0xd384('0x25')]});this[_0xd384('0x22')](_0x26f054[0x0]||null);};this[_0xd384('0x2c')](_0x461b98,_0xd384('0xb'),_0x4a1c54),this['listenTo'](_0x461b98,_0xd384('0x9'),(_0x250e66,{isAnnotationTracked:_0x5b80f3})=>{this['activeAnnotation']&&_0x5b80f3(this[_0xd384('0x25')])&&this[_0xd384('0x22')](null);}),this['listenTo'](_0x461b98,_0xd384('0x17'),()=>{this[_0xd384('0x2')]();}),this['listenTo'](this['annotations'],'blur',_0x37d113=>{_0x461b98[_0xd384('0x10')]()&&(_0x4a1c54(),_0x37d113[_0xd384('0x1a')]());},{'priority':'high'}),this[_0xd384('0xe')][_0xd384('0x23')](_0x461b98);}[_0xd384('0x27')](_0x2a0a32){this[_0xd384('0x1c')](_0x2a0a32),this[_0xd384('0xe')]['remove'](_0x2a0a32);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b9a=['getLastMatchingPosition','_itemIsContent','item','backward','document','createRange','$textProxy','execute','schema','_trimToContent','model','end','comment:','editor','getRanges','_hasContent','addMarker'];(function(_0x48743e,_0x3b9a5d){const _0x32c7a6=function(_0x8d93e0){while(--_0x8d93e0){_0x48743e['push'](_0x48743e['shift']());}};_0x32c7a6(++_0x3b9a5d);}(_0x3b9a,0x194));const _0x32c7=function(_0x48743e,_0x3b9a5d){_0x48743e=_0x48743e-0x0;let _0x32c7a6=_0x3b9a[_0x48743e];return _0x32c7a6;};import{Command as _0x4d606e}from'ckeditor5/src/core';import{uid as _0x315f7c}from'ckeditor5/src/utils';export default class q extends _0x4d606e{['refresh'](){const _0x343b38=this[_0x32c7('0x0')][_0x32c7('0xe')][_0x32c7('0x8')]['selection'];for(const _0x42799b of _0x343b38[_0x32c7('0x1')]())if(this[_0x32c7('0x2')](_0x42799b))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}[_0x32c7('0xb')]({threadId:_0x5d9fa1=_0x315f7c()}={}){const _0x25969e=this['editor'][_0x32c7('0xe')],_0x372eea=[];for(const _0x38e05d of _0x25969e[_0x32c7('0x8')]['selection']['getRanges']())this[_0x32c7('0x2')](_0x38e05d)&&_0x372eea['push'](this[_0x32c7('0xd')](_0x38e05d));_0x25969e['change'](_0x15ad40=>{for(const _0x24dbd1 of _0x372eea){const _0x54e731=_0x315f7c()['substr'](0x1,0x5),_0x5a8d3f=_0x32c7('0x10')+_0x5d9fa1+':'+_0x54e731;_0x15ad40[_0x32c7('0x3')](_0x5a8d3f,{'range':_0x24dbd1,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x3594ca){for(const _0x5e2553 of _0x3594ca['getItems']())if(this[_0x32c7('0x5')](_0x5e2553))return!0x0;return!0x1;}[_0x32c7('0x5')](_0x230a47){return _0x230a47['is'](_0x32c7('0xa'))||this[_0x32c7('0x0')][_0x32c7('0xe')][_0x32c7('0xc')]['isObject'](_0x230a47)&&!_0x230a47['is']('element','tableCell');}['_trimToContent'](_0x328a36){const _0x5d905a=_0x42bb85=>!this[_0x32c7('0x5')](_0x42bb85[_0x32c7('0x6')]),_0x53ce6e=_0x328a36['start'][_0x32c7('0x4')](_0x5d905a),_0x3f7951=_0x328a36[_0x32c7('0xf')][_0x32c7('0x4')](_0x5d905a,{'direction':_0x32c7('0x7')});return this[_0x32c7('0x0')][_0x32c7('0xe')][_0x32c7('0x9')](_0x53ce6e,_0x3f7951);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d44=['change:archivedAt','removeCommentThread','remove','init','plugins','stopListening','archivedThreads','getCommentThread','length','focus','context','_calculatePosition','has','activate','get','add','listenTo','collection','archivedAt'];(function(_0x7ff6dc,_0x4d4406){const _0x338068=function(_0xd0f9e8){while(--_0xd0f9e8){_0x7ff6dc['push'](_0x7ff6dc['shift']());}};_0x338068(++_0x4d4406);}(_0x4d44,0x85));const _0x3380=function(_0x7ff6dc,_0x4d4406){_0x7ff6dc=_0x7ff6dc-0x0;let _0x338068=_0x4d44[_0x7ff6dc];return _0x338068;};import{ContextPlugin as _0x105f45}from'ckeditor5/src/core';import{Collection as _0x1d7c75}from'ckeditor5/src/utils';import _0x45a73b from'./commentsrepository';import _0x549f3a from'../annotations/annotations';export default class p extends _0x105f45{static get['pluginName'](){return'CommentsArchive';}static get['requires'](){return[_0x45a73b,_0x549f3a];}constructor(_0x3946f7){super(_0x3946f7),this['archivedThreads']=new _0x1d7c75();}[_0x3380('0x3')](){const _0xf8e89d=this[_0x3380('0xa')],_0x2458a4=_0xf8e89d[_0x3380('0x4')][_0x3380('0xe')](_0x45a73b),_0x2f3813=_0xf8e89d[_0x3380('0x4')][_0x3380('0xe')](_0x549f3a);this[_0x3380('0x10')](_0x2458a4,'addCommentThread',(_0x47ffac,{threadId:_0x19a9ec})=>{const _0x368687=_0x2458a4['getCommentThread'](_0x19a9ec);_0x368687['archivedAt']&&this[_0x3380('0x6')][_0x3380('0xf')](_0x368687,this['_calculatePosition'](_0x368687[_0x3380('0x12')])),this['listenTo'](_0x368687,_0x3380('0x0'),(_0x42c392,_0x42e462,_0x4987e9)=>{_0x4987e9?this[_0x3380('0x6')]['has'](_0x368687)||this[_0x3380('0x6')]['add'](_0x368687,this['_calculatePosition'](_0x368687[_0x3380('0x12')])):this[_0x3380('0x6')][_0x3380('0xc')](_0x368687)&&this[_0x3380('0x6')]['remove'](_0x368687);});}),this[_0x3380('0x10')](_0x2458a4,_0x3380('0x1'),(_0x44c8ff,{threadId:_0x3f7db8})=>{const _0x108f61=_0x2458a4[_0x3380('0x7')](_0x3f7db8);this[_0x3380('0x5')](_0x108f61),this[_0x3380('0x6')]['has'](_0x108f61)&&this['archivedThreads'][_0x3380('0x2')](_0x108f61);},{'priority':'highest'}),this[_0x3380('0x10')](_0x2f3813[_0x3380('0x11')],_0x3380('0x9'),(_0x399151,_0x1e1da0)=>{_0x1e1da0['isActive']=!0x0,_0x2f3813[_0x3380('0xd')](_0x1e1da0);});}[_0x3380('0xb')](_0x410e96){const _0xdc69d0=[...this[_0x3380('0x6')]]['findIndex'](_0xda3590=>_0xda3590[_0x3380('0x12')]<_0x410e96);return _0xdc69d0>-0x1?_0xdc69d0:this[_0x3380('0x6')][_0x3380('0x8')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5270=['ck-comments-archive-dropdown','editor','collection','pluginName','archivedThreads','commentsArchiveView','add','_handleAnnotationFocusableElements','config','indexOf','archivedAt','splice','findIndex','Annotations','_threadToController','CommentsArchiveUI','buttonView','innerView','focusTracker','isVisible','find','panelView','componentFactory','CommentsRepository','collaboration.channelId','COMMENTS_ARCHIVE','listenTo','focusableElements','annotationViews','push','requires','view','_createArchiveUIDropdown','ck-body','classList','contains','mainView','plugins','length','filter','extendTemplate','getByInnerView','children','channelId','stopListening','_visibleAnnotations','remove','change:isOpen','locale','_pendingThreads','get','_calculatePosition','init','commentsArchive'];(function(_0x1a9f6e,_0x527092){const _0x2d6a15=function(_0x24a1cf){while(--_0x24a1cf){_0x1a9f6e['push'](_0x1a9f6e['shift']());}};_0x2d6a15(++_0x527092);}(_0x5270,0xd3));const _0x2d6a=function(_0x1a9f6e,_0x527092){_0x1a9f6e=_0x1a9f6e-0x0;let _0x2d6a15=_0x5270[_0x1a9f6e];return _0x2d6a15;};import'../../theme/commentsarchive.css';import{Plugin as _0x16bd61}from'ckeditor5/src/core';import{createDropdown as _0x3da1fd,ViewCollection as _0x2a4b71}from'ckeditor5/src/ui';import _0x5700b5 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x555d9e}from'../utils/common-translations';import _0xb36f61 from'./ui/view/commentsarchiveview';import _0xf541f3 from'./commentsarchive';export default class a extends _0x16bd61{static get[_0x2d6a('0x8')](){return _0x2d6a('0x14');}static get[_0x2d6a('0x23')](){return[_0xf541f3];}constructor(_0x40a7ab){super(_0x40a7ab),this[_0x2d6a('0x21')]=new _0x2a4b71(),this[_0x2d6a('0x0')]=[];}[_0x2d6a('0x3')](){this['editor']['ui'][_0x2d6a('0x1b')][_0x2d6a('0xb')](_0x2d6a('0x4'),()=>this['_createArchiveUIDropdown']());const _0x79db3c=this[_0x2d6a('0x6')][_0x2d6a('0x2a')][_0x2d6a('0x1')](_0xf541f3),_0x562a95=this[_0x2d6a('0x6')][_0x2d6a('0x2a')]['get'](_0x2d6a('0x12')),_0x1ebb38=this[_0x2d6a('0x6')]['plugins'][_0x2d6a('0x1')](_0x2d6a('0x1c'));this['listenTo'](_0x79db3c[_0x2d6a('0x9')],_0x2d6a('0xb'),(_0x160df2,_0x180ba2)=>{const _0x17a526=this[_0x2d6a('0x6')][_0x2d6a('0xd')][_0x2d6a('0x1')](_0x2d6a('0x1d'));if(!_0x17a526||_0x180ba2[_0x2d6a('0x30')]===_0x17a526){const _0x4a0673=this[_0x2d6a('0x2')](_0x180ba2[_0x2d6a('0xf')]),_0x1e3563=_0x1ebb38[_0x2d6a('0x13')][_0x2d6a('0x1')](_0x180ba2);if(!_0x1e3563)return void this[_0x2d6a('0x0')][_0x2d6a('0x22')]({'thread':_0x180ba2,'position':_0x4a0673});const _0x540894=_0x562a95[_0x2d6a('0x2e')](_0x1e3563[_0x2d6a('0x24')]);_0x540894[_0x2d6a('0x18')]&&_0x562a95[_0x2d6a('0x32')][_0x2d6a('0x33')](_0x540894),this[_0x2d6a('0x21')][_0x2d6a('0xb')](_0x540894[_0x2d6a('0x24')],_0x4a0673);}}),this[_0x2d6a('0x1f')](_0x562a95[_0x2d6a('0x7')],_0x2d6a('0xb'),(_0x48f513,_0x2e73fb)=>{const _0xaf0f56=this['_pendingThreads'][_0x2d6a('0x19')](({thread:_0x49c2d8})=>{const _0x3c63ed=_0x1ebb38[_0x2d6a('0x13')][_0x2d6a('0x1')](_0x49c2d8);return _0x3c63ed&&_0x2e73fb[_0x2d6a('0x16')]===_0x3c63ed[_0x2d6a('0x24')];});_0xaf0f56&&(this[_0x2d6a('0x21')][_0x2d6a('0xb')](_0x2e73fb[_0x2d6a('0x24')],_0xaf0f56['position']),this[_0x2d6a('0x0')][_0x2d6a('0x10')](this[_0x2d6a('0x0')][_0x2d6a('0xe')](_0xaf0f56),0x1));}),this[_0x2d6a('0x1f')](_0x79db3c['archivedThreads'],_0x2d6a('0x33'),(_0x43d18b,_0xc8966)=>{const _0x35408c=this[_0x2d6a('0x6')][_0x2d6a('0xd')][_0x2d6a('0x1')](_0x2d6a('0x1d'));if(!_0x35408c||_0xc8966['channelId']===_0x35408c){const _0x2e5d3e=_0x1ebb38['_threadToController']['get'](_0xc8966),_0x7bad3b=_0x562a95[_0x2d6a('0x2e')](_0x2e5d3e['view']);this[_0x2d6a('0x21')][_0x2d6a('0x33')](_0x7bad3b[_0x2d6a('0x24')]),this[_0x2d6a('0x31')](_0x7bad3b[_0x2d6a('0x20')]);}});}['_handleAnnotationFocusableElements'](_0x38a991,_0x48f14b){for(const _0x47297e of _0x48f14b[_0x2d6a('0x20')])_0x47297e['classList'][_0x2d6a('0x28')](_0x2d6a('0x26'))&&_0x38a991[_0x2d6a('0x17')][_0x2d6a('0xb')](_0x47297e);this['listenTo'](_0x48f14b[_0x2d6a('0x20')],'add',(_0x22fc7e,_0x2950d0)=>{_0x2950d0[_0x2d6a('0x27')][_0x2d6a('0x28')](_0x2d6a('0x26'))&&_0x38a991[_0x2d6a('0x17')]['add'](_0x2950d0);}),this[_0x2d6a('0x1f')](_0x48f14b[_0x2d6a('0x20')],_0x2d6a('0x33'),(_0x41fe1b,_0x9ec23f)=>{_0x9ec23f[_0x2d6a('0x27')][_0x2d6a('0x28')](_0x2d6a('0x26'))&&_0x38a991[_0x2d6a('0x17')]['remove'](_0x9ec23f);});}[_0x2d6a('0x2')](_0x235e76){const _0x2c34e7=this[_0x2d6a('0x6')][_0x2d6a('0xd')][_0x2d6a('0x1')](_0x2d6a('0x1d')),_0x386a14=[...this[_0x2d6a('0x6')][_0x2d6a('0x2a')][_0x2d6a('0x1')](_0xf541f3)['archivedThreads']][_0x2d6a('0x2c')](_0x40a43e=>_0x40a43e[_0x2d6a('0x30')]===_0x2c34e7)[_0x2d6a('0x11')](_0x6ff7e=>_0x6ff7e[_0x2d6a('0xf')]<_0x235e76);return _0x386a14>-0x1?_0x386a14-0x1:this[_0x2d6a('0x21')][_0x2d6a('0x2b')];}[_0x2d6a('0x25')](){const _0x50b97d=this['editor'],_0x4e2760=this[_0x2d6a('0x6')][_0x2d6a('0x2a')][_0x2d6a('0x1')](_0x2d6a('0x12')),_0x1aed32=_0x3da1fd(_0x50b97d[_0x2d6a('0x35')]);_0x1aed32[_0x2d6a('0x15')]['set']({'icon':_0x5700b5,'label':_0x555d9e(_0x50b97d['locale'],_0x2d6a('0x1e')),'tooltip':!0x0}),_0x1aed32[_0x2d6a('0x1a')][_0x2d6a('0x2d')]({'attributes':{'class':_0x2d6a('0x5')}}),_0x1aed32['on'](_0x2d6a('0x34'),(_0x165429,_0x4dd8d4,_0x559607)=>{this[_0x2d6a('0xa')]||(this['commentsArchiveView']=new _0xb36f61(_0x50b97d[_0x2d6a('0x35')],this[_0x2d6a('0x21')])),_0x559607?_0x1aed32[_0x2d6a('0x1a')][_0x2d6a('0x2f')]['add'](this[_0x2d6a('0xa')]):_0x1aed32[_0x2d6a('0x1a')]['children']['remove'](this[_0x2d6a('0xa')]);});for(const _0x38e766 of this[_0x2d6a('0x21')]){const _0x51c6ec=_0x4e2760[_0x2d6a('0x2e')](_0x38e766[_0x2d6a('0x29')]);this[_0x2d6a('0xc')](_0x1aed32,_0x51c6ec);}return _0x1aed32['listenTo'](this[_0x2d6a('0x21')],_0x2d6a('0xb'),(_0x262ce6,_0x566d60)=>{const _0x544e61=_0x4e2760[_0x2d6a('0x2e')](_0x566d60[_0x2d6a('0x29')]);this[_0x2d6a('0xc')](_0x1aed32,_0x544e61);}),_0x1aed32[_0x2d6a('0x1f')](this[_0x2d6a('0x21')],_0x2d6a('0x33'),(_0x3765d0,_0x22f10e)=>{const _0x5b89ff=_0x4e2760[_0x2d6a('0x2e')](_0x22f10e[_0x2d6a('0x29')]);for(const _0x3f9f53 of _0x5b89ff[_0x2d6a('0x20')])_0x3f9f53[_0x2d6a('0x27')][_0x2d6a('0x28')]('ck-body')&&_0x1aed32[_0x2d6a('0x17')][_0x2d6a('0x33')](_0x3f9f53);}),_0x1aed32;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1bb3=['ignoreResolvedComments','markers','removeMarker','from','_handleMarkerAddAndRemove','reconvertMarker','pluginName','delete','getAllMarkersForId','isObject','length','refreshVisibility','_handleThreadMarker','low','listenTo','push','_initAriaMarkerChangeAnnouncements','config','setUnlinkedAt','LEAVE_COMMENT_ANNOUNCEMENT','managedUsingOperations','model','name','differ','openNewCommentThread','comment','$textProxy','end','getWalker','getItems','comment:','addMarker:','fetchCommentThread','context','ck-comment-marker--active','newRange','change:isReadOnly','item','commands','render','comments','_getTextContext','dataToMarker','editing','getAttribute','ck-comment-marker','_threadToController','schema','consume','unlinkedAt','substring','scrollToThreadMarker','hasDomSelection','destroy','document','registerPostFixer','hasCommentThread','_reconvertMarkers','switchReadOnly','plugins','getCommentThreads','destroyed','registerAnnotation','_attachResolvedThread','start','_initializeMarkerConverters','addCommentThread','conversion','startsWith','state','get','addComment','updateMarker','isLocal','createRange','join','archivedAt','for','markerToHighlight','upcast','attachTo','split','init','add','isEqual','data','_detachCommentThread','createPositionBefore','isCollapsed','hasMarkerForId','removeMarker:','change','enqueueChange','CommentsEditing','change:activeMarker','_hasTargetInContent','set','getRange','markerName','locale','once','activeMarker','reopenCommentThread','ready','requires','isThreadsLoadingPaused','clear','affectsData','text','isResolved','collaboration.channelId','setContext','editor','_getTargetForId','isAttached','getCommentThread','$marker','getChangedMarkers','view','rootName','removeCommentThread','focus'];(function(_0x5c4a70,_0x1bb37d){const _0x455351=function(_0x1390a7){while(--_0x1390a7){_0x5c4a70['push'](_0x5c4a70['shift']());}};_0x455351(++_0x1bb37d);}(_0x1bb3,0x1e8));const _0x4553=function(_0x5c4a70,_0x1bb37d){_0x5c4a70=_0x5c4a70-0x0;let _0x455351=_0x1bb3[_0x5c4a70];return _0x455351;};import{Plugin as _0x3a8dfd}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x476550}from'ckeditor5/src/utils';import _0x2f3864 from'./commentsrepository';import _0x20a6c4 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x207c92,getAllMarkersDomElementsSorted as _0x2658f7}from'ckeditor5-collaboration/src/collaboration-core';import _0x4396e1 from'../annotations/editorannotations';import _0x5b83ad from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x126733 from'./integrations/importword';import _0x3a3722 from'../annotations/annotations';import{getTranslation as _0x495d88}from'../utils/common-translations';export default class r extends _0x3a8dfd{static get[_0x4553('0x68')](){return[_0x2f3864,_0x4396e1,_0x5b83ad,_0x126733];}static get[_0x4553('0x6')](){return _0x4553('0x5d');}constructor(_0x56d1cc){super(_0x56d1cc),this[_0x4553('0x60')](_0x4553('0x69'),!0x0),_0x56d1cc[_0x4553('0x55')]['once'](_0x4553('0x67'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0x4553('0x60')](_0x4553('0x65'),null),this['on'](_0x4553('0x5e'),(_0x5f387e,_0x5812cf,_0xbda505,_0x53b5ee)=>{const _0x22c20c=_0xbda505?ot(_0xbda505)['id']:null;if(_0x56d1cc[_0x4553('0x15')][_0x4553('0x5b')](()=>{if(_0x22c20c){const _0x1bb4f4=this[_0x4553('0x8')](_0x22c20c);for(const _0x5a9ab3 of _0x1bb4f4)_0x56d1cc[_0x4553('0x2b')]['reconvertMarker'](_0x5a9ab3);}if(_0x53b5ee){const {id:_0x2f84fd}=ot(_0x53b5ee),_0x1a9c37=this[_0x4553('0x8')](_0x2f84fd);for(const _0x50998f of _0x1a9c37)_0x56d1cc[_0x4553('0x2b')][_0x4553('0x5')](_0x50998f);}}),_0x22c20c){const _0x35f677=_0x56d1cc[_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864)[_0x4553('0x73')](_0x22c20c);_0x35f677&&_0x35f677[_0x4553('0x6d')]&&this[_0x4553('0x33')](_0x22c20c);}}),this[_0x4553('0x10')]();}[_0x4553('0x52')](){const _0x1093d1=this[_0x4553('0x70')],_0x89321f=_0x1093d1['plugins'][_0x4553('0x46')](_0x2f3864),_0x253fad=_0x1093d1[_0x4553('0x11')]['get'](_0x4553('0x6e'));_0x1093d1[_0x4553('0x26')]['add'](_0x4553('0x42'),new _0x20a6c4(_0x1093d1)),this['listenTo'](_0x1093d1,_0x4553('0x24'),(_0x22ca36,_0x1120b8,_0x1640c5)=>{_0x89321f[_0x4553('0x3a')](_0x1640c5,_0x1093d1['config'][_0x4553('0x46')]('collaboration.channelId'));}),this[_0x4553('0xe')](_0x89321f,tt(_0x4553('0x42'),_0x253fad),(_0xdec21c,{threadId:_0x5d882b})=>{const _0x5a46f1=this[_0x4553('0x70')][_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864)['getCommentThread'](_0x5d882b);_0x5a46f1&&_0x5a46f1[_0x4553('0x4c')]&&this[_0x4553('0x3f')](_0x5d882b);}),this['listenTo'](_0x89321f,tt(_0x4553('0x78'),_0x253fad),(_0x396032,{threadId:_0x39926d})=>{_0x1093d1[_0x4553('0x15')]['enqueueChange']({'isUndoable':!0x1},_0x220263=>{const _0x145610=this[_0x4553('0x8')](_0x39926d);for(const _0x4f26a4 of _0x145610)_0x220263[_0x4553('0x2')](_0x4f26a4);});}),this[_0x4553('0xe')](_0x89321f,tt('resolveCommentThread',_0x253fad),(_0x553763,{threadId:_0x57d049})=>{(this[_0x4553('0x3f')](_0x57d049),this[_0x4553('0x39')](_0x57d049),this[_0x4553('0x70')][_0x4553('0x2b')]['view'][_0x4553('0x34')])&&(this[_0x4553('0x70')][_0x4553('0x3b')]['get'](_0x2f3864)[_0x4553('0x73')](_0x57d049)[_0x4553('0x31')]||this['editor'][_0x4553('0x2b')]['view'][_0x4553('0x79')]());},{'priority':'low'}),this[_0x4553('0xe')](_0x89321f,tt(_0x4553('0x66'),_0x253fad),(_0x14b48c,{threadId:_0x5e7256})=>{this[_0x4553('0x39')](_0x5e7256);},{'priority':'low'}),this[_0x4553('0xe')](_0x89321f,tt(_0x4553('0x47'),_0x253fad),(_0x1fa474,{threadId:_0x11cfb4,isFromAdapter:_0x3d76bb})=>{const _0x1f1c52=this[_0x4553('0x8')](_0x11cfb4);if(_0x3d76bb||0x0==_0x1f1c52['length']||!_0x89321f[_0x4553('0x38')](_0x11cfb4))return;0x1===_0x89321f[_0x4553('0x73')](_0x11cfb4)[_0x4553('0xa')]&&_0x1093d1[_0x4553('0x15')][_0x4553('0x5c')]({'isUndoable':!0x1},_0x154853=>{for(const _0x45e1f4 of _0x1f1c52)_0x154853[_0x4553('0x48')](_0x45e1f4,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x4553('0xd')}),this['_initializeMarkerConverters'](),this[_0x4553('0x4')]();}[_0x4553('0x35')](){const _0x5c38c3=this[_0x4553('0x70')][_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864),_0x4d8675=this[_0x4553('0x70')][_0x4553('0x11')]['get'](_0x4553('0x6e'));for(const _0xdc0f8 of _0x5c38c3[_0x4553('0x3c')]({'channelId':_0x4d8675}))_0x5c38c3[_0x4553('0x56')](_0xdc0f8['id']),_0x5c38c3['_threads']['delete'](_0xdc0f8['id']);super['destroy']();}[_0x4553('0x59')](_0x484983){return this[_0x4553('0x8')](_0x484983)[_0x4553('0xa')]>0x0;}[_0x4553('0x8')](_0x517afa){const _0x49b2a5=[];for(const _0x3d2e60 of this['editor'][_0x4553('0x15')][_0x4553('0x1')])_0x3d2e60[_0x4553('0x16')][_0x4553('0x44')](_0x4553('0x1e')+_0x517afa)&&_0x49b2a5[_0x4553('0xf')](_0x3d2e60);return _0x49b2a5;}[_0x4553('0x33')](_0x56185e){const _0x51cc56=this[_0x4553('0x71')](_0x56185e);_0x51cc56&&setTimeout(()=>{this[_0x4553('0x65')]&&ot(this[_0x4553('0x65')])['id']===_0x56185e&&_0x476550({'target':_0x51cc56[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x396f71){this['editor']['model'][_0x4553('0x5b')](()=>{for(const _0x15cd49 of this[_0x4553('0x8')](_0x396f71))this[_0x4553('0x70')][_0x4553('0x2b')]['reconvertMarker'](_0x15cd49);});}[_0x4553('0x3f')](_0x46c63d){const _0x44282e=this['editor']['plugins']['get'](_0x2f3864),_0x3db748=this[_0x4553('0x70')][_0x4553('0x3b')][_0x4553('0x46')](_0x4396e1),_0x579209=_0x44282e['getCommentThread'](_0x46c63d);if(!_0x579209[_0x4553('0x72')]){const _0x3c3e7d=_0x579209[_0x4553('0x50')](()=>this[_0x4553('0x71')](_0x579209['id']));_0x3db748[_0x4553('0x3e')](_0x3c3e7d),_0x579209['_hasTargetInContent']=!0x1;}}[_0x4553('0x41')](){const _0xa95b2e=this[_0x4553('0x70')];_0xa95b2e[_0x4553('0x43')][_0x4553('0x4d')]('editingDowncast')[_0x4553('0x4e')]({'model':_0x4553('0x19'),'view':(_0x2a9fa7,_0x27463f)=>{const {id:_0x1ed944}=ot(_0x2a9fa7[_0x4553('0x62')]),_0x3e75ce=_0xa95b2e[_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864)[_0x4553('0x73')](_0x1ed944),_0x44d43e=this[_0x4553('0x65')]&&ot(this['activeMarker'])['id']===_0x1ed944;if(_0x3e75ce&&_0x3e75ce[_0x4553('0x6d')]&&!_0x44d43e&&_0x2a9fa7[_0x4553('0x25')])return _0x27463f['consumable'][_0x4553('0x30')](_0x2a9fa7['item'],_0x4553('0x1f')+_0x2a9fa7[_0x4553('0x62')]),_0x27463f['consumable'][_0x4553('0x30')](_0x2a9fa7['item'],_0x4553('0x5a')+_0x2a9fa7[_0x4553('0x62')]),{'classes':[]};const _0x1403bd=[_0x4553('0x2d')];return _0x44d43e&&_0x1403bd['push'](_0x4553('0x22')),{'classes':_0x1403bd,'attributes':{'data-comment':_0x1ed944}};}}),_0xa95b2e['conversion'][_0x4553('0x4d')]('dataDowncast')['markerToData']({'model':'comment','view':(_0x464d96,{options:_0x561add})=>{const _0x297062=_0xa95b2e['plugins'][_0x4553('0x46')](_0x2f3864),_0x140e67=_0xa95b2e[_0x4553('0x15')][_0x4553('0x1')][_0x4553('0x46')](_0x464d96),{id:_0x32b5bc,part:_0x4fdfd3}=ot(_0x464d96);if(_0x140e67&&!_0x140e67[_0x4553('0x6b')])return null;if(_0x561add[_0x4553('0x0')]){const _0x58d66a=_0x297062[_0x4553('0x73')](_0x32b5bc);if(_0x58d66a&&_0x58d66a['isResolved'])return null;}return{'group':_0x4553('0x19'),'name':_0x4fdfd3?_0x32b5bc+':'+_0x4fdfd3:_0x32b5bc};}}),_0xa95b2e[_0x4553('0x43')][_0x4553('0x4d')](_0x4553('0x4f'))['elementToElement']({'view':{'name':_0x4553('0x19'),'attributes':{'id':/^\w/}},'model':(_0x265ca9,{writer:_0x3c8fb6})=>_0x3c8fb6['createElement'](_0x4553('0x74'),{'data-name':_0x4553('0x1e')+_0x265ca9[_0x4553('0x2c')]('id')})}),_0xa95b2e[_0x4553('0x43')][_0x4553('0x4d')]('upcast')[_0x4553('0x2a')]({'view':_0x4553('0x19')});}['_handleMarkerAddAndRemove'](){const _0x129be2=this[_0x4553('0x70')],_0x2f10ab=_0x129be2['plugins'][_0x4553('0x46')](_0x2f3864),_0x567d40=new Set(),_0x3f9d24=new Set();_0x129be2[_0x4553('0x15')][_0x4553('0x36')][_0x4553('0x37')](_0xcfc1df=>{let _0x113314=!0x1;for(const {name:_0x2a23e5,data:_0x4a1950}of _0x129be2[_0x4553('0x15')][_0x4553('0x36')][_0x4553('0x17')][_0x4553('0x75')]()){const {group:_0x51d314,id:_0x98b494}=ot(_0x2a23e5);let _0x44db6d=_0x4a1950[_0x4553('0x23')];if('comment'!==_0x51d314||!_0x44db6d)continue;const _0x587fe3='$graveyard'===_0x44db6d['root'][_0x4553('0x77')];_0x587fe3||(_0x44db6d=et(_0x44db6d,_0x129be2[_0x4553('0x15')]),!_0x44db6d||_0x44db6d[_0x4553('0x58')]||!_0x4a1950[_0x4553('0x23')]||_0x44db6d[_0x4553('0x54')](_0x4a1950[_0x4553('0x23')]))?_0x129be2[_0x4553('0x15')]['hasContent'](_0x44db6d)&&!_0x587fe3?this[_0x4553('0x69')]?_0x567d40[_0x4553('0x53')](_0x2a23e5):this[_0x4553('0xc')](_0x2a23e5,_0x98b494):(_0x3f9d24['add'](_0x2a23e5),_0x567d40['delete'](_0x2a23e5),_0xcfc1df['removeMarker'](_0x2a23e5),_0x113314=!0x0):(_0xcfc1df[_0x4553('0x48')](_0x2a23e5,{'range':_0x44db6d}),_0x113314=!0x0);}return _0x113314;}),this['on']('change:isThreadsLoadingPaused',(_0x5c4f99,_0xc20035,_0x43d048)=>{if(!_0x43d048&&_0x567d40['size'])for(const _0x28fe7d of _0x567d40){const {id:_0x3318f3}=ot(_0x28fe7d);_0x567d40[_0x4553('0x7')](_0x28fe7d),_0x129be2[_0x4553('0x15')]['markers'][_0x4553('0x46')](_0x28fe7d)&&this[_0x4553('0xc')](_0x28fe7d,_0x3318f3);}}),this[_0x4553('0xe')](_0x129be2[_0x4553('0x15')][_0x4553('0x36')],_0x4553('0x5b'),(_0x1c3dd8,_0x1dd490)=>{for(const {name:_0x15a1d2,data:{newRange:_0x4b1546}}of _0x129be2[_0x4553('0x15')][_0x4553('0x36')]['differ'][_0x4553('0x75')]()){const {group:_0x5db00a,id:_0x343273}=ot(_0x15a1d2);if(_0x4553('0x19')!==_0x5db00a)continue;const _0x5c6214=_0x2f10ab[_0x4553('0x73')](_0x343273),_0x17572f=this[_0x4553('0x59')](_0x343273);_0x5c6214&&(_0x5c6214[_0x4553('0x5f')]||_0x129be2[_0x4553('0x2b')][_0x4553('0x76')][_0x4553('0x64')](_0x4553('0x27'),()=>{const _0x1a363e=_0x129be2[_0x4553('0x3b')][_0x4553('0x46')](_0x3a3722),_0xb14ba5=_0x2f10ab[_0x4553('0x2e')]['get'](_0x5c6214)[_0x4553('0x76')];_0x1a363e['getByInnerView'](_0xb14ba5)[_0x4553('0xb')]();},{'priority':_0x4553('0xd')}),_0x5c6214[_0x4553('0x5f')]=_0x17572f||!!_0x4b1546),_0x4b1546||(_0x3f9d24[_0x4553('0x53')](_0x15a1d2),_0x567d40[_0x4553('0x7')](_0x15a1d2));}if(_0x1dd490[_0x4553('0x49')])for(const _0x32691e of _0x3f9d24){const {id:_0x522b57}=ot(_0x32691e),_0x16b17c=_0x2f10ab['getCommentThread'](_0x522b57),_0x5538d4=this['hasMarkerForId'](_0x522b57);_0x567d40[_0x4553('0x7')](_0x32691e),!_0x16b17c||_0x5538d4||_0x16b17c['unlinkedAt']||_0x16b17c[_0x4553('0x12')](new Date());}_0x3f9d24[_0x4553('0x6a')]();});}['_getTargetForId'](_0x51a88d){const _0x1d79d0=this[_0x4553('0x70')],_0x2215e2=this['getAllMarkersForId'](_0x51a88d);return _0x2658f7(_0x1d79d0[_0x4553('0x2b')],_0x2215e2);}[_0x4553('0x29')](_0x2b030d){const _0x1766d7=this[_0x4553('0x8')](_0x2b030d);let _0x2a3641='',_0x8466c2=!0x1;for(const _0x326eb5 of _0x1766d7){const _0x46872c=_0x326eb5[_0x4553('0x61')]();for(const _0x149ae9 of Array[_0x4553('0x3')](_0x46872c[_0x4553('0x1d')]()))_0x149ae9['is'](_0x4553('0x1a'))?(_0x2a3641&&_0x8466c2&&(_0x2a3641+='\x20',_0x8466c2=!0x1),_0x2a3641+=_0x149ae9['data']):_0x8466c2=!0x0;_0x8466c2=!0x0;}return _0x2a3641[_0x4553('0x32')](0x0,0x96);}['_attachMarkerToThread'](_0x508cc6,_0x14a789){const _0x4a1da0=this[_0x4553('0x70')],_0x5cbd17=_0x4a1da0['plugins']['get'](_0x2f3864);let _0x429b9f=_0x5cbd17['getCommentThread'](_0x14a789);const _0x5b8736=_0x4a1da0[_0x4553('0x11')]['get'](_0x4553('0x6e')),_0x26e9db=_0x4a1da0[_0x4553('0x3b')][_0x4553('0x46')](_0x4396e1);if(_0x429b9f&&(_0x429b9f[_0x4553('0x31')]&&_0x429b9f[_0x4553('0x12')](null),_0x429b9f[_0x4553('0x72')]))return _0x429b9f;return!this[_0x4553('0x8')](_0x14a789)[0x0][_0x4553('0x14')]?_0x4a1da0[_0x4553('0x2b')][_0x4553('0x76')]['once'](_0x4553('0x27'),()=>{if(_0x5cbd17[_0x4553('0x73')](_0x14a789))return;const _0x5988c3=_0x4a1da0[_0x4553('0x3b')][_0x4553('0x46')](_0x3a3722);_0x429b9f=_0x5cbd17[_0x4553('0x18')]({'channelId':_0x5b8736,'threadId':_0x14a789,'target':()=>this[_0x4553('0x71')](_0x14a789),'context':{'type':'text','value':this[_0x4553('0x29')](_0x14a789)}});const _0x336d92=_0x5cbd17[_0x4553('0x2e')][_0x4553('0x46')](_0x429b9f)['view'],_0x1a6806=_0x5988c3['getByInnerView'](_0x336d92);_0x1a6806&&_0x26e9db[_0x4553('0x3e')](_0x1a6806);},{'priority':_0x4553('0xd')}):_0x5cbd17[_0x4553('0x20')]({'channelId':_0x5b8736,'threadId':_0x14a789})['then'](_0x27a949=>{if(_0x4553('0x3d')!==_0x4a1da0[_0x4553('0x45')]){if(_0x429b9f=_0x27a949,_0x429b9f&&!_0x429b9f[_0x4553('0x72')]){const _0xcaa09e=_0x429b9f[_0x4553('0x50')](()=>this['_getTargetForId'](_0x14a789));_0x26e9db[_0x4553('0x3e')](_0xcaa09e),_0x429b9f[_0x4553('0x6d')]&&this[_0x4553('0x39')](_0x14a789);}else{if(!_0x429b9f){const _0x3fe852=this[_0x4553('0x8')](_0x14a789);_0x4a1da0[_0x4553('0x15')]['change'](_0x32a8c1=>{for(const _0x55f5fb of _0x3fe852)_0x32a8c1[_0x4553('0x2')](_0x55f5fb);});}}}}),_0x429b9f;}['_handleThreadMarker'](_0x3f0bcc,_0x3aba1a){const _0x369752=this['_attachMarkerToThread'](_0x3f0bcc,_0x3aba1a);_0x369752&&!_0x369752[_0x4553('0x21')]&&_0x369752[_0x4553('0x6f')]({'type':_0x4553('0x6c'),'value':this['_getTextContext'](_0x3aba1a)});}[_0x4553('0x10')](){const _0x10ca16=this['editor'];_0x207c92(_0x10ca16['model'],({left:_0x453d89,entered:_0x47de43})=>{const _0x2328e1=[];for(const _0x5e89be of _0x453d89)if(rt(_0x5e89be)){_0x2328e1[_0x4553('0xf')](_0x495d88(_0x10ca16[_0x4553('0x63')],_0x4553('0x13')));break;}for(const _0x176acf of _0x47de43)if(rt(_0x176acf)){_0x2328e1['push'](_0x495d88(_0x10ca16[_0x4553('0x63')],'ENTER_COMMENT_ANNOUNCEMENT'));break;}_0x2328e1[_0x4553('0xa')]&&_0x10ca16['ui']['ariaLiveAnnouncer']['announce'](_0x4553('0x28'),_0x2328e1[_0x4553('0x4b')]('\x20'));});}}function tt(_0x18eb64,_0x5d34f4){return _0x5d34f4?_0x18eb64+':'+_0x5d34f4:_0x18eb64;}function ot(_0x4208a6){const _0xdaaf87=_0x4208a6[_0x4553('0x51')](':');return{'group':_0xdaaf87[0x0],'id':_0xdaaf87[0x1],'part':_0xdaaf87[0x2]};}function et(_0x44195a,_0x4553b3){const _0x4e5d35=_0x4553b3[_0x4553('0x2f')],_0x7cd3da=_0x4553b3[_0x4553('0x4a')](_0x44195a['start']);for(const _0x4d7537 of _0x44195a[_0x4553('0x1c')]()){const {type:_0x2612b4,item:_0x237a29,nextPosition:_0x4e25b4}=_0x4d7537;if('text'===_0x2612b4||_0x4e5d35[_0x4553('0x9')](_0x237a29)){const _0xe67486=_0x4553b3[_0x4553('0x57')](_0x237a29);_0x7cd3da['isCollapsed']&&(_0x7cd3da[_0x4553('0x40')]=_0xe67486),_0x7cd3da[_0x4553('0x1b')]=_0x4e25b4;}}return _0x7cd3da;}function rt(_0x597417){return _0x4553('0x19')===ot(_0x597417[_0x4553('0x16')])['group'];}
|
|
23
|
+
const _0x4d23=['isAttached','render','attachTo','comments','hasDomSelection','switchReadOnly','isThreadsLoadingPaused','_hasTargetInContent','change:activeMarker','get','comment','join','resolveCommentThread','destroyed','end','removeMarker','markerName','model','isResolved','isEqual','set','updateMarker','getItems','consume','listenTo','config','change:isReadOnly','$graveyard','reconvertMarker','getRange','addComment','low','locale','_detachCommentThread','for','upcast','fetchCommentThread','_handleThreadMarker','ignoreResolvedComments','_threads','add','startsWith','destroy','ariaLiveAnnouncer','requires','split','CommentsEditing','dataToMarker','differ','newRange','$marker','consumable','delete','getAllMarkersForId','substring','setUnlinkedAt','focus','refreshVisibility','from','getChangedMarkers','push','context','rootName','text','change','start','openNewCommentThread','then','announce','collaboration.channelId','length','hasMarkerForId','comment:','item','clear','isObject','_getTextContext','unlinkedAt','_reconvertMarkers','LEAVE_COMMENT_ANNOUNCEMENT','createPositionBefore','ENTER_COMMENT_ANNOUNCEMENT','_attachMarkerToThread','state','isLocal','isCollapsed','conversion','_attachResolvedThread','markers','_handleMarkerAddAndRemove','ck-comment-marker','getWalker','pluginName','once','document','view','_initializeMarkerConverters','removeCommentThread','group','archivedAt','_threadToController','getCommentThread','_getTargetForId','elementToElement','_initAriaMarkerChangeAnnouncements','registerAnnotation','plugins','managedUsingOperations','enqueueChange','scrollToThreadMarker','root','addCommentThread','getByInnerView','markerToHighlight','editing','activeMarker','removeMarker:','data','ck-comment-marker--active','$textProxy','hasContent','editingDowncast','editor'];(function(_0x3ea14b,_0x4d2339){const _0xdf3cd4=function(_0x5565b4){while(--_0x5565b4){_0x3ea14b['push'](_0x3ea14b['shift']());}};_0xdf3cd4(++_0x4d2339);}(_0x4d23,0x16b));const _0xdf3c=function(_0x3ea14b,_0x4d2339){_0x3ea14b=_0x3ea14b-0x0;let _0xdf3cd4=_0x4d23[_0x3ea14b];return _0xdf3cd4;};import{Plugin as _0x8bed33}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x143497}from'ckeditor5/src/utils';import _0x16f6b8 from'./commentsrepository';import _0x5480d6 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x23ac96,getAllMarkersDomElementsSorted as _0xba469e}from'ckeditor5-collaboration/src/collaboration-core';import _0x23f654 from'../annotations/editorannotations';import _0x277c8b from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x43415f from'./integrations/importword';import _0x596f25 from'../annotations/annotations';import{getTranslation as _0x192934}from'../utils/common-translations';export default class r extends _0x8bed33{static get[_0xdf3c('0x32')](){return[_0x16f6b8,_0x23f654,_0x277c8b,_0x43415f];}static get[_0xdf3c('0x62')](){return _0xdf3c('0x34');}constructor(_0x4d86e3){super(_0x4d86e3),this[_0xdf3c('0x1a')](_0xdf3c('0xc'),!0x0),_0x4d86e3['data'][_0xdf3c('0x63')]('ready',()=>this[_0xdf3c('0xc')]=!0x1),this['set']('activeMarker',null),this['on'](_0xdf3c('0xe'),(_0x37089a,_0x5c65e8,_0x2ede5b,_0x5d18ba)=>{const _0x6577ca=_0x2ede5b?ot(_0x2ede5b)['id']:null;if(_0x4d86e3['model'][_0xdf3c('0x46')](()=>{if(_0x6577ca){const _0x371a47=this[_0xdf3c('0x3b')](_0x6577ca);for(const _0x3536eb of _0x371a47)_0x4d86e3['editing'][_0xdf3c('0x22')](_0x3536eb);}if(_0x5d18ba){const {id:_0x375d6a}=ot(_0x5d18ba),_0xd96c3d=this['getAllMarkersForId'](_0x375d6a);for(const _0x49c2f5 of _0xd96c3d)_0x4d86e3[_0xdf3c('0x78')][_0xdf3c('0x22')](_0x49c2f5);}}),_0x6577ca){const _0x280af0=_0x4d86e3[_0xdf3c('0x70')][_0xdf3c('0xf')](_0x16f6b8)['getCommentThread'](_0x6577ca);_0x280af0&&_0x280af0[_0xdf3c('0x18')]&&this[_0xdf3c('0x73')](_0x6577ca);}}),this[_0xdf3c('0x6e')]();}['init'](){const _0x294ee2=this[_0xdf3c('0x5')],_0x47ec4f=_0x294ee2['plugins'][_0xdf3c('0xf')](_0x16f6b8),_0xdcf58a=_0x294ee2[_0xdf3c('0x1f')]['get'](_0xdf3c('0x4b'));_0x294ee2['commands']['add'](_0xdf3c('0x75'),new _0x5480d6(_0x294ee2)),this[_0xdf3c('0x1e')](_0x294ee2,_0xdf3c('0x20'),(_0x37a62e,_0x223fe6,_0x2b81b5)=>{_0x47ec4f[_0xdf3c('0xb')](_0x2b81b5,_0x294ee2['config'][_0xdf3c('0xf')]('collaboration.channelId'));}),this[_0xdf3c('0x1e')](_0x47ec4f,tt(_0xdf3c('0x75'),_0xdcf58a),(_0x3a7dd1,{threadId:_0x633331})=>{const _0x592f81=this['editor'][_0xdf3c('0x70')][_0xdf3c('0xf')](_0x16f6b8)['getCommentThread'](_0x633331);_0x592f81&&_0x592f81[_0xdf3c('0x69')]&&this['_attachResolvedThread'](_0x633331);}),this[_0xdf3c('0x1e')](_0x47ec4f,tt(_0xdf3c('0x67'),_0xdcf58a),(_0x3ea859,{threadId:_0xe88ff0})=>{_0x294ee2['model'][_0xdf3c('0x72')]({'isUndoable':!0x1},_0x6c03e9=>{const _0x4ab6f5=this['getAllMarkersForId'](_0xe88ff0);for(const _0x2cea11 of _0x4ab6f5)_0x6c03e9[_0xdf3c('0x15')](_0x2cea11);});}),this[_0xdf3c('0x1e')](_0x47ec4f,tt(_0xdf3c('0x12'),_0xdcf58a),(_0x2535ef,{threadId:_0x4f1a4a})=>{(this['_attachResolvedThread'](_0x4f1a4a),this['_reconvertMarkers'](_0x4f1a4a),this[_0xdf3c('0x5')][_0xdf3c('0x78')][_0xdf3c('0x65')][_0xdf3c('0xa')])&&(this[_0xdf3c('0x5')]['plugins'][_0xdf3c('0xf')](_0x16f6b8)['getCommentThread'](_0x4f1a4a)[_0xdf3c('0x53')]||this[_0xdf3c('0x5')][_0xdf3c('0x78')][_0xdf3c('0x65')][_0xdf3c('0x3e')]());},{'priority':_0xdf3c('0x25')}),this[_0xdf3c('0x1e')](_0x47ec4f,tt('reopenCommentThread',_0xdcf58a),(_0x43cf74,{threadId:_0x33317b})=>{this['_reconvertMarkers'](_0x33317b);},{'priority':'low'}),this[_0xdf3c('0x1e')](_0x47ec4f,tt(_0xdf3c('0x24'),_0xdcf58a),(_0xe69680,{threadId:_0x2dc889,isFromAdapter:_0x337566})=>{const _0x4b6853=this['getAllMarkersForId'](_0x2dc889);if(_0x337566||0x0==_0x4b6853[_0xdf3c('0x4c')]||!_0x47ec4f['hasCommentThread'](_0x2dc889))return;0x1===_0x47ec4f[_0xdf3c('0x6b')](_0x2dc889)['length']&&_0x294ee2[_0xdf3c('0x17')][_0xdf3c('0x72')]({'isUndoable':!0x1},_0xcb454e=>{for(const _0x38b25c of _0x4b6853)_0xcb454e[_0xdf3c('0x1b')](_0x38b25c,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0xdf3c('0x25')}),this[_0xdf3c('0x66')](),this['_handleMarkerAddAndRemove']();}[_0xdf3c('0x30')](){const _0x160e7b=this['editor'][_0xdf3c('0x70')][_0xdf3c('0xf')](_0x16f6b8),_0x3ad05f=this['editor'][_0xdf3c('0x1f')]['get'](_0xdf3c('0x4b'));for(const _0x1d281f of _0x160e7b['getCommentThreads']({'channelId':_0x3ad05f}))_0x160e7b[_0xdf3c('0x27')](_0x1d281f['id']),_0x160e7b[_0xdf3c('0x2d')][_0xdf3c('0x3a')](_0x1d281f['id']);super[_0xdf3c('0x30')]();}[_0xdf3c('0x4d')](_0x526802){return this[_0xdf3c('0x3b')](_0x526802)['length']>0x0;}[_0xdf3c('0x3b')](_0x50217d){const _0x17f22f=[];for(const _0x268ba1 of this[_0xdf3c('0x5')]['model']['markers'])_0x268ba1['name'][_0xdf3c('0x2f')](_0xdf3c('0x4e')+_0x50217d)&&_0x17f22f[_0xdf3c('0x42')](_0x268ba1);return _0x17f22f;}['scrollToThreadMarker'](_0x5c9945){const _0x2b6778=this[_0xdf3c('0x6c')](_0x5c9945);_0x2b6778&&setTimeout(()=>{this[_0xdf3c('0x79')]&&ot(this[_0xdf3c('0x79')])['id']===_0x5c9945&&_0x143497({'target':_0x2b6778[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0xdf3c('0x54')](_0x3da856){this[_0xdf3c('0x5')][_0xdf3c('0x17')][_0xdf3c('0x46')](()=>{for(const _0x5712a3 of this[_0xdf3c('0x3b')](_0x3da856))this['editor'][_0xdf3c('0x78')][_0xdf3c('0x22')](_0x5712a3);});}[_0xdf3c('0x5d')](_0x22d739){const _0x58cbd1=this['editor'][_0xdf3c('0x70')]['get'](_0x16f6b8),_0x59d6ed=this['editor'][_0xdf3c('0x70')][_0xdf3c('0xf')](_0x23f654),_0x3a2416=_0x58cbd1['getCommentThread'](_0x22d739);if(!_0x3a2416[_0xdf3c('0x6')]){const _0xbb06d8=_0x3a2416[_0xdf3c('0x8')](()=>this[_0xdf3c('0x6c')](_0x3a2416['id']));_0x59d6ed[_0xdf3c('0x6f')](_0xbb06d8),_0x3a2416[_0xdf3c('0xd')]=!0x1;}}[_0xdf3c('0x66')](){const _0x480ec3=this[_0xdf3c('0x5')];_0x480ec3[_0xdf3c('0x5c')]['for'](_0xdf3c('0x4'))[_0xdf3c('0x77')]({'model':_0xdf3c('0x10'),'view':(_0x46a136,_0xf41822)=>{const {id:_0x3216b3}=ot(_0x46a136[_0xdf3c('0x16')]),_0x307403=_0x480ec3[_0xdf3c('0x70')]['get'](_0x16f6b8)[_0xdf3c('0x6b')](_0x3216b3),_0x51abb1=this['activeMarker']&&ot(this[_0xdf3c('0x79')])['id']===_0x3216b3;if(_0x307403&&_0x307403['isResolved']&&!_0x51abb1&&_0x46a136[_0xdf3c('0x4f')])return _0xf41822['consumable'][_0xdf3c('0x1d')](_0x46a136['item'],'addMarker:'+_0x46a136['markerName']),_0xf41822[_0xdf3c('0x39')][_0xdf3c('0x1d')](_0x46a136[_0xdf3c('0x4f')],_0xdf3c('0x7a')+_0x46a136['markerName']),{'classes':[]};const _0x48c469=[_0xdf3c('0x60')];return _0x51abb1&&_0x48c469['push'](_0xdf3c('0x1')),{'classes':_0x48c469,'attributes':{'data-comment':_0x3216b3}};}}),_0x480ec3[_0xdf3c('0x5c')]['for']('dataDowncast')['markerToData']({'model':_0xdf3c('0x10'),'view':(_0x28d62e,{options:_0x3eb296})=>{const _0x3a769b=_0x480ec3[_0xdf3c('0x70')][_0xdf3c('0xf')](_0x16f6b8),_0x261634=_0x480ec3[_0xdf3c('0x17')]['markers'][_0xdf3c('0xf')](_0x28d62e),{id:_0xd408db,part:_0x4316a2}=ot(_0x28d62e);if(_0x261634&&!_0x261634['affectsData'])return null;if(_0x3eb296[_0xdf3c('0x2c')]){const _0x5b54cc=_0x3a769b['getCommentThread'](_0xd408db);if(_0x5b54cc&&_0x5b54cc[_0xdf3c('0x18')])return null;}return{'group':'comment','name':_0x4316a2?_0xd408db+':'+_0x4316a2:_0xd408db};}}),_0x480ec3[_0xdf3c('0x5c')][_0xdf3c('0x28')]('upcast')[_0xdf3c('0x6d')]({'view':{'name':_0xdf3c('0x10'),'attributes':{'id':/^\w/}},'model':(_0x2849c3,{writer:_0x365b5d})=>_0x365b5d['createElement'](_0xdf3c('0x38'),{'data-name':_0xdf3c('0x4e')+_0x2849c3['getAttribute']('id')})}),_0x480ec3[_0xdf3c('0x5c')][_0xdf3c('0x28')](_0xdf3c('0x29'))[_0xdf3c('0x35')]({'view':'comment'});}[_0xdf3c('0x5f')](){const _0x513634=this[_0xdf3c('0x5')],_0x30f9d2=_0x513634[_0xdf3c('0x70')][_0xdf3c('0xf')](_0x16f6b8),_0x32db88=new Set(),_0x5c8f83=new Set();_0x513634[_0xdf3c('0x17')][_0xdf3c('0x64')]['registerPostFixer'](_0x29adb1=>{let _0x37b9d4=!0x1;for(const {name:_0x5e637d,data:_0x16b116}of _0x513634[_0xdf3c('0x17')]['document'][_0xdf3c('0x36')][_0xdf3c('0x41')]()){const {group:_0x59d815,id:_0x51a4f6}=ot(_0x5e637d);let _0x447055=_0x16b116[_0xdf3c('0x37')];if(_0xdf3c('0x10')!==_0x59d815||!_0x447055)continue;const _0x49c7a7=_0xdf3c('0x21')===_0x447055[_0xdf3c('0x74')][_0xdf3c('0x44')];_0x49c7a7||(_0x447055=et(_0x447055,_0x513634[_0xdf3c('0x17')]),!_0x447055||_0x447055[_0xdf3c('0x5b')]||!_0x16b116[_0xdf3c('0x37')]||_0x447055[_0xdf3c('0x19')](_0x16b116[_0xdf3c('0x37')]))?_0x513634[_0xdf3c('0x17')][_0xdf3c('0x3')](_0x447055)&&!_0x49c7a7?this['isThreadsLoadingPaused']?_0x32db88[_0xdf3c('0x2e')](_0x5e637d):this['_handleThreadMarker'](_0x5e637d,_0x51a4f6):(_0x5c8f83[_0xdf3c('0x2e')](_0x5e637d),_0x32db88[_0xdf3c('0x3a')](_0x5e637d),_0x29adb1[_0xdf3c('0x15')](_0x5e637d),_0x37b9d4=!0x0):(_0x29adb1[_0xdf3c('0x1b')](_0x5e637d,{'range':_0x447055}),_0x37b9d4=!0x0);}return _0x37b9d4;}),this['on']('change:isThreadsLoadingPaused',(_0x14a739,_0x274ce6,_0xd05a03)=>{if(!_0xd05a03&&_0x32db88['size'])for(const _0x223213 of _0x32db88){const {id:_0x30f85b}=ot(_0x223213);_0x32db88['delete'](_0x223213),_0x513634[_0xdf3c('0x17')][_0xdf3c('0x5e')][_0xdf3c('0xf')](_0x223213)&&this[_0xdf3c('0x2b')](_0x223213,_0x30f85b);}}),this[_0xdf3c('0x1e')](_0x513634[_0xdf3c('0x17')][_0xdf3c('0x64')],_0xdf3c('0x46'),(_0x51d915,_0x503270)=>{for(const {name:_0xc4b038,data:{newRange:_0x22f39f}}of _0x513634['model'][_0xdf3c('0x64')][_0xdf3c('0x36')][_0xdf3c('0x41')]()){const {group:_0x504e6c,id:_0x2c6624}=ot(_0xc4b038);if('comment'!==_0x504e6c)continue;const _0x5235ce=_0x30f9d2[_0xdf3c('0x6b')](_0x2c6624),_0x231748=this[_0xdf3c('0x4d')](_0x2c6624);_0x5235ce&&(_0x5235ce[_0xdf3c('0xd')]||_0x513634['editing'][_0xdf3c('0x65')][_0xdf3c('0x63')](_0xdf3c('0x7'),()=>{const _0x40f0ea=_0x513634[_0xdf3c('0x70')][_0xdf3c('0xf')](_0x596f25),_0x2a2a3d=_0x30f9d2[_0xdf3c('0x6a')][_0xdf3c('0xf')](_0x5235ce)['view'];_0x40f0ea[_0xdf3c('0x76')](_0x2a2a3d)[_0xdf3c('0x3f')]();},{'priority':'low'}),_0x5235ce['_hasTargetInContent']=_0x231748||!!_0x22f39f),_0x22f39f||(_0x5c8f83[_0xdf3c('0x2e')](_0xc4b038),_0x32db88[_0xdf3c('0x3a')](_0xc4b038));}if(_0x503270[_0xdf3c('0x5a')])for(const _0x5e8ed6 of _0x5c8f83){const {id:_0x2d9043}=ot(_0x5e8ed6),_0x607bd6=_0x30f9d2[_0xdf3c('0x6b')](_0x2d9043),_0xf33755=this[_0xdf3c('0x4d')](_0x2d9043);_0x32db88[_0xdf3c('0x3a')](_0x5e8ed6),!_0x607bd6||_0xf33755||_0x607bd6[_0xdf3c('0x53')]||_0x607bd6[_0xdf3c('0x3d')](new Date());}_0x5c8f83[_0xdf3c('0x50')]();});}[_0xdf3c('0x6c')](_0x521381){const _0x53ca13=this[_0xdf3c('0x5')],_0x215e9a=this[_0xdf3c('0x3b')](_0x521381);return _0xba469e(_0x53ca13[_0xdf3c('0x78')],_0x215e9a);}[_0xdf3c('0x52')](_0xc594fa){const _0x138e74=this[_0xdf3c('0x3b')](_0xc594fa);let _0x53e8f4='',_0x816b11=!0x1;for(const _0x51ce0e of _0x138e74){const _0x45ff23=_0x51ce0e[_0xdf3c('0x23')]();for(const _0x1a54f5 of Array[_0xdf3c('0x40')](_0x45ff23[_0xdf3c('0x1c')]()))_0x1a54f5['is'](_0xdf3c('0x2'))?(_0x53e8f4&&_0x816b11&&(_0x53e8f4+='\x20',_0x816b11=!0x1),_0x53e8f4+=_0x1a54f5[_0xdf3c('0x0')]):_0x816b11=!0x0;_0x816b11=!0x0;}return _0x53e8f4[_0xdf3c('0x3c')](0x0,0x96);}[_0xdf3c('0x58')](_0x565904,_0x3160b0){const _0x210b27=this[_0xdf3c('0x5')],_0x4f5734=_0x210b27[_0xdf3c('0x70')][_0xdf3c('0xf')](_0x16f6b8);let _0x25c04c=_0x4f5734[_0xdf3c('0x6b')](_0x3160b0);const _0x3ceb0d=_0x210b27['config'][_0xdf3c('0xf')]('collaboration.channelId'),_0x46c3d7=_0x210b27[_0xdf3c('0x70')][_0xdf3c('0xf')](_0x23f654);if(_0x25c04c&&(_0x25c04c['unlinkedAt']&&_0x25c04c[_0xdf3c('0x3d')](null),_0x25c04c[_0xdf3c('0x6')]))return _0x25c04c;return!this[_0xdf3c('0x3b')](_0x3160b0)[0x0][_0xdf3c('0x71')]?_0x210b27[_0xdf3c('0x78')][_0xdf3c('0x65')][_0xdf3c('0x63')](_0xdf3c('0x7'),()=>{if(_0x4f5734[_0xdf3c('0x6b')](_0x3160b0))return;const _0x47d33c=_0x210b27[_0xdf3c('0x70')]['get'](_0x596f25);_0x25c04c=_0x4f5734[_0xdf3c('0x48')]({'channelId':_0x3ceb0d,'threadId':_0x3160b0,'target':()=>this[_0xdf3c('0x6c')](_0x3160b0),'context':{'type':'text','value':this[_0xdf3c('0x52')](_0x3160b0)}});const _0x395890=_0x4f5734[_0xdf3c('0x6a')]['get'](_0x25c04c)[_0xdf3c('0x65')],_0x4315f9=_0x47d33c[_0xdf3c('0x76')](_0x395890);_0x4315f9&&_0x46c3d7[_0xdf3c('0x6f')](_0x4315f9);},{'priority':'low'}):_0x4f5734[_0xdf3c('0x2a')]({'channelId':_0x3ceb0d,'threadId':_0x3160b0})[_0xdf3c('0x49')](_0x5c8605=>{if(_0xdf3c('0x13')!==_0x210b27[_0xdf3c('0x59')]){if(_0x25c04c=_0x5c8605,_0x25c04c&&!_0x25c04c[_0xdf3c('0x6')]){const _0xa123be=_0x25c04c[_0xdf3c('0x8')](()=>this[_0xdf3c('0x6c')](_0x3160b0));_0x46c3d7[_0xdf3c('0x6f')](_0xa123be),_0x25c04c['isResolved']&&this['_reconvertMarkers'](_0x3160b0);}else{if(!_0x25c04c){const _0x35cdff=this['getAllMarkersForId'](_0x3160b0);_0x210b27[_0xdf3c('0x17')][_0xdf3c('0x46')](_0x195d4e=>{for(const _0x3bb370 of _0x35cdff)_0x195d4e[_0xdf3c('0x15')](_0x3bb370);});}}}}),_0x25c04c;}[_0xdf3c('0x2b')](_0x57b4df,_0x425c65){const _0x498e02=this['_attachMarkerToThread'](_0x57b4df,_0x425c65);_0x498e02&&!_0x498e02[_0xdf3c('0x43')]&&_0x498e02['setContext']({'type':_0xdf3c('0x45'),'value':this[_0xdf3c('0x52')](_0x425c65)});}['_initAriaMarkerChangeAnnouncements'](){const _0x135ed9=this[_0xdf3c('0x5')];_0x23ac96(_0x135ed9[_0xdf3c('0x17')],({left:_0x44685e,entered:_0x121704})=>{const _0x492413=[];for(const _0x13e9c1 of _0x44685e)if(rt(_0x13e9c1)){_0x492413[_0xdf3c('0x42')](_0x192934(_0x135ed9['locale'],_0xdf3c('0x55')));break;}for(const _0x1689d6 of _0x121704)if(rt(_0x1689d6)){_0x492413['push'](_0x192934(_0x135ed9[_0xdf3c('0x26')],_0xdf3c('0x57')));break;}_0x492413[_0xdf3c('0x4c')]&&_0x135ed9['ui'][_0xdf3c('0x31')][_0xdf3c('0x4a')](_0xdf3c('0x9'),_0x492413[_0xdf3c('0x11')]('\x20'));});}}function tt(_0x2cfd88,_0x47c55b){return _0x47c55b?_0x2cfd88+':'+_0x47c55b:_0x2cfd88;}function ot(_0xd4de76){const _0x17f56d=_0xd4de76[_0xdf3c('0x33')](':');return{'group':_0x17f56d[0x0],'id':_0x17f56d[0x1],'part':_0x17f56d[0x2]};}function et(_0x31703e,_0x599841){const _0x2dc4ef=_0x599841['schema'],_0x43da55=_0x599841['createRange'](_0x31703e['start']);for(const _0x13f9ed of _0x31703e[_0xdf3c('0x61')]()){const {type:_0x12709,item:_0x244690,nextPosition:_0x27fea7}=_0x13f9ed;if(_0xdf3c('0x45')===_0x12709||_0x2dc4ef[_0xdf3c('0x51')](_0x244690)){const _0x42b1ad=_0x599841[_0xdf3c('0x56')](_0x244690);_0x43da55[_0xdf3c('0x5b')]&&(_0x43da55[_0xdf3c('0x47')]=_0x42b1ad),_0x43da55[_0xdf3c('0x14')]=_0x27fea7;}}return _0x43da55;}function rt(_0xdb9cae){return'comment'===ot(_0xdb9cae['name'])[_0xdf3c('0x68')];}
|