@ckeditor/ckeditor5-comments 0.0.0-nightly-20240204.0 → 0.0.0-nightly-20240206.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
- package/theme/annotation.css +4 -0
- package/theme/commentthread.css +4 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b1e=['render','height','element','createCollection','top','bottom','bindTemplate','isAnimationDisabled','setTemplate','detach','updateHeight','ck-sidebar-item--no-animation','set','ck-sidebar-item','content','destroy','div','_mutationObserver','bind'];(function(_0x3e9e14,_0x3b1ed4){const _0x3e3c24=function(_0xb3e500){while(--_0xb3e500){_0x3e9e14['push'](_0x3e9e14['shift']());}};_0x3e3c24(++_0x3b1ed4);}(_0x3b1e,0x16b));const _0x3e3c=function(_0x3e9e14,_0x3b1ed4){_0x3e9e14=_0x3e9e14-0x0;let _0x3e3c24=_0x3b1e[_0x3e9e14];return _0x3e3c24;};import{View as _0x4a6793}from'ckeditor5/src/ui.js';import{toUnit as _0x2245bf}from'ckeditor5/src/utils.js';import _0x319849 from'../../utils/createmutationobserver.js';const Ht=_0x2245bf('px');export default class C extends _0x4a6793{constructor(_0x4fa07e){super(_0x4fa07e),this[_0x3e3c('0xa')](_0x3e3c('0x2'),0x0),this[_0x3e3c('0xa')](_0x3e3c('0x12'),0x0),this[_0x3e3c('0x10')](_0x3e3c('0x3'))['to'](this,_0x3e3c('0x2'),this,_0x3e3c('0x12'),(_0x57cb71,_0x27358d)=>_0x57cb71+_0x27358d),this[_0x3e3c('0xa')](_0x3e3c('0x5'),!0x1),this[_0x3e3c('0xf')]=_0x319849(()=>this['updateHeight']()),this['_targetTop']=null,this[_0x3e3c('0xc')]=this[_0x3e3c('0x1')]();const _0xf362c4=this[_0x3e3c('0x4')];this[_0x3e3c('0x6')]({'tag':_0x3e3c('0xe'),'attributes':{'class':[_0x3e3c('0xb'),_0xf362c4['to'](_0x3e3c('0x5'),_0xa045df=>_0xa045df?_0x3e3c('0x9'):'')],'style':{'top':_0xf362c4['to']('top',_0x51f5c4=>Ht(_0x51f5c4))}},'children':this['content']});}[_0x3e3c('0x11')](){super[_0x3e3c('0x11')](),this['_mutationObserver']['attach'](this[_0x3e3c('0x0')]);}[_0x3e3c('0x8')](){const _0x473cb4=this[_0x3e3c('0x0')]['clientHeight'];_0x473cb4&&(this[_0x3e3c('0x12')]=_0x473cb4);}[_0x3e3c('0xd')](){this['content']['clear'](),this[_0x3e3c('0xf')][_0x3e3c('0x7')](),super[_0x3e3c('0xd')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21a6=['minHeight','number','div','ck-sidebar','setTemplate','class','set','ck-reset','list','bindTemplate'];(function(_0x3e37d0,_0x21a634){const _0x1a9626=function(_0x1b898c){while(--_0x1b898c){_0x3e37d0['push'](_0x3e37d0['shift']());}};_0x1a9626(++_0x21a634);}(_0x21a6,0x169));const _0x1a96=function(_0x3e37d0,_0x21a634){_0x3e37d0=_0x3e37d0-0x0;let _0x1a9626=_0x21a6[_0x3e37d0];return _0x1a9626;};import{View as _0x3b8dd9}from'ckeditor5/src/ui.js';import{toUnit as _0x2c34c2}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x2c34c2('px');export default class T extends _0x3b8dd9{constructor(_0x560d54){super(_0x560d54);const _0x4ce9f8=this[_0x1a96('0x8')];this[_0x1a96('0x5')]('minHeight',0x0),this[_0x1a96('0x5')]('class',''),this[_0x1a96('0x7')]=this['createCollection'](),this[_0x1a96('0x3')]({'tag':_0x1a96('0x1'),'attributes':{'class':['ck',_0x1a96('0x2'),_0x1a96('0x6'),_0x4ce9f8['to'](_0x1a96('0x4'))],'style':{'minHeight':_0x4ce9f8['to'](_0x1a96('0x9'),_0x124be2=>_0x1a96('0x0')==typeof _0x124be2?Ht(_0x124be2+0xa):null)}},'children':this[_0x1a96('0x7')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bc0=['stopListening','getOrderedSelectedAnnotations','add','ck-sidebar--wide','context','requires','cancel','refreshPositioning','setActiveAnnotation','WideSidebar','_refreshPositioningDebounced','get','plugins','register','destroy','detach','_destroyEditorAnnotationsIntegration','widesidebar-detach-not-attached','blur','activeAnnotation','_activeAnnotation','remove','annotations','_attachToContainer','EditorAnnotations','change:container','removeEventListener','init','addEventListener','pluginName','uiUpdate','_integrateWithEditorAnnotations','refresh','_editorAnnotations','widesidebar-attach-already-attached','wideSidebar','stop','ready','hasDomSelection','isAttached','updateTargetRect','switchTo','addAnnotation','attach','set','editors','listenTo','resize'];(function(_0x5a6235,_0x2bc0bd){const _0x2a65cc=function(_0x4db890){while(--_0x4db890){_0x5a6235['push'](_0x5a6235['shift']());}};_0x2a65cc(++_0x2bc0bd);}(_0x2bc0,0x1e0));const _0x2a65=function(_0x5a6235,_0x2bc0bd){_0x5a6235=_0x5a6235-0x0;let _0x2a65cc=_0x2bc0[_0x5a6235];return _0x2a65cc;};import{ContextPlugin as _0xe9bff1,Context as _0x268abb}from'ckeditor5/src/core.js';import _0x2bd724 from'./annotationsuis.js';import _0x34f495 from'./sidebar.js';import{CKEditorError as _0x230b33,Collection as _0x163104}from'ckeditor5/src/utils.js';import{debounce as _0x3fd0ad}from'lodash-es';import _0x3503d2 from'./editorannotations.js';export default class n extends _0xe9bff1{static get[_0x2a65('0x5')](){return[_0x34f495,_0x2bd724];}static get[_0x2a65('0x1d')](){return _0x2a65('0x9');}constructor(_0x587511){super(_0x587511),this[_0x2a65('0x27')]=!0x1,this[_0x2a65('0x2c')](_0x2a65('0x13'),null),this[_0x2a65('0x16')]=null,this['_editorAnnotations']=new _0x163104(),this['_refreshPositioningDebounced']=_0x3fd0ad(()=>{this[_0x2a65('0x16')][_0x2a65('0x7')]();},0xfa,{'leading':!0x1});}[_0x2a65('0x1b')](){const _0x2371db=this['context'][_0x2a65('0xc')][_0x2a65('0xb')](_0x2bd724),_0x1da601=this[_0x2a65('0x4')][_0x2a65('0xc')][_0x2a65('0xb')](_0x34f495);_0x2371db[_0x2a65('0xd')]('wideSidebar',this),_0x1da601['container']&&_0x2371db[_0x2a65('0x29')](_0x2a65('0x23'));}[_0x2a65('0x8')](_0x1521d5){if(_0x1521d5===this[_0x2a65('0x13')])return;const _0x21e01f=this[_0x2a65('0x4')][_0x2a65('0xc')][_0x2a65('0xb')](_0x34f495);_0x21e01f[_0x2a65('0x14')]=_0x1521d5;const _0x435570=this['activeAnnotation'];this[_0x2a65('0x13')]=_0x1521d5,_0x21e01f['refresh']({'blurredAnnotation':_0x435570,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x2497a9){this[_0x2a65('0x16')]=_0x2497a9;const _0x3c5d3d=this['context'][_0x2a65('0xc')][_0x2a65('0xb')](_0x34f495);if(_0x3c5d3d['_annotations']=_0x2497a9,this[_0x2a65('0x27')])throw new _0x230b33(_0x2a65('0x22'),this);this[_0x2a65('0x27')]=!0x0,this[_0x2a65('0x2e')](_0x3c5d3d,'set:container',()=>{this[_0x2a65('0xf')](),this[_0x2a65('0x2e')](_0x3c5d3d,_0x2a65('0x19'),_0x358dc8=>{_0x358dc8['off'](),this[_0x2a65('0x2b')](_0x2497a9);});}),_0x3c5d3d[_0x2a65('0x17')]({'viewClass':_0x2a65('0x3')});const _0x1d9d6c=_0x3836ed=>{_0x3836ed[_0x2a65('0x28')](),_0x3c5d3d[_0x2a65('0x2a')](_0x3836ed);};for(const _0x98f7f9 of _0x2497a9)_0x1d9d6c(_0x98f7f9);this[_0x2a65('0x2e')](_0x2497a9,_0x2a65('0x2'),(_0x1529f4,_0x14a3e2)=>{_0x1d9d6c(_0x14a3e2);}),this[_0x2a65('0x2e')](_0x2497a9,_0x2a65('0x15'),(_0x1313e9,_0x4d8f95,_0x4a09a5)=>{_0x3c5d3d['rearrange']({'removedAnnotation':_0x4d8f95,'previousAnnotation':_0x2497a9[_0x2a65('0xb')](_0x4a09a5-0x1),'nextAnnotation':_0x2497a9[_0x2a65('0xb')](_0x4a09a5+0x1)}),_0x4d8f95===this['activeAnnotation']&&this[_0x2a65('0x8')](null);},{'priority':'high'}),this['listenTo'](_0x2497a9,'focus',(_0x220fff,_0xa42f71)=>{this[_0x2a65('0x8')](_0xa42f71);}),this[_0x2a65('0x2e')](_0x2497a9,'blur',()=>{this[_0x2a65('0x8')](null);});const _0x33fef2=this[_0x2a65('0x4')]instanceof _0x268abb?this[_0x2a65('0x4')][_0x2a65('0x2d')]:new _0x163104([this[_0x2a65('0x4')]]);for(const _0x3ee058 of _0x33fef2)this[_0x2a65('0x1f')](_0x3ee058);this[_0x2a65('0x2e')](_0x33fef2,_0x2a65('0x2'),(_0x39be47,_0x6febcf)=>{this[_0x2a65('0x2e')](_0x6febcf,_0x2a65('0x25'),()=>{this[_0x2a65('0x1f')](_0x6febcf);});}),this[_0x2a65('0x2e')](_0x33fef2,_0x2a65('0x15'),(_0x469602,_0xefa0d4)=>{_0xefa0d4[_0x2a65('0xc')]['has'](_0x2a65('0x18'))&&this['_destroyEditorAnnotationsIntegration'](_0xefa0d4[_0x2a65('0xc')][_0x2a65('0xb')](_0x2a65('0x18')));}),window[_0x2a65('0x1c')](_0x2a65('0x2f'),this[_0x2a65('0xa')]),this['annotations']['refreshPositioning']();}[_0x2a65('0xf')](){if(!this[_0x2a65('0x27')])throw new _0x230b33(_0x2a65('0x11'),this);this[_0x2a65('0x8')](null);const _0xa30f6=this[_0x2a65('0x4')][_0x2a65('0xc')]['get'](_0x34f495);_0xa30f6['_detachFromContainer'](this[_0x2a65('0x16')]),this['stopListening'](_0xa30f6),this[_0x2a65('0x0')](this['annotations']),this[_0x2a65('0x4')]instanceof _0x268abb&&this['stopListening'](this[_0x2a65('0x4')][_0x2a65('0x2d')]);for(const _0x3c1861 of Array['from'](this['_editorAnnotations']))this[_0x2a65('0x10')](_0x3c1861);window[_0x2a65('0x1a')](_0x2a65('0x2f'),this[_0x2a65('0xa')]),this['_refreshPositioningDebounced'][_0x2a65('0x6')](),this['activeAnnotation']=null,this[_0x2a65('0x27')]=!0x1,this['annotations']=null;}[_0x2a65('0xe')](){this['isAttached']&&this[_0x2a65('0xf')]();}[_0x2a65('0x1f')](_0x4f3567){const _0x2e92b6=_0x4f3567[_0x2a65('0xc')][_0x2a65('0xb')](_0x3503d2);if(!_0x2e92b6)return;const _0x4b54de=()=>{const _0xa00a04=_0x2e92b6[_0x2a65('0x1')]({'annotations':this[_0x2a65('0x16')],'activeAnnotation':this[_0x2a65('0x13')]});this[_0x2a65('0x8')](_0xa00a04[0x0]||null);};this[_0x2a65('0x2e')](_0x2e92b6,_0x2a65('0x20'),_0x4b54de),this[_0x2a65('0x2e')](_0x2e92b6,_0x2a65('0x12'),(_0x5833a6,{isAnnotationTracked:_0x311c76})=>{this[_0x2a65('0x13')]&&_0x311c76(this[_0x2a65('0x13')])&&this[_0x2a65('0x8')](null);}),this['listenTo'](_0x2e92b6,_0x2a65('0x1e'),()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this[_0x2a65('0x16')],_0x2a65('0x12'),_0x4ae10e=>{_0x2e92b6[_0x2a65('0x26')]()&&(_0x4b54de(),_0x4ae10e[_0x2a65('0x24')]());},{'priority':'high'}),this[_0x2a65('0x21')][_0x2a65('0x2')](_0x2e92b6);}[_0x2a65('0x10')](_0x18e8c2){this['stopListening'](_0x18e8c2),this['_editorAnnotations'][_0x2a65('0x15')](_0x18e8c2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3668=['_hasContent','execute','getRanges','createRange','$textProxy','model','_trimToContent','substr','push','refresh','backward','comment:','addMarker','isEnabled','item','getItems','start','_itemIsContent','selection','editor','schema','change','document','getLastMatchingPosition'];(function(_0x1cc54a,_0x366876){const _0x4f2ea2=function(_0x473c3a){while(--_0x473c3a){_0x1cc54a['push'](_0x1cc54a['shift']());}};_0x4f2ea2(++_0x366876);}(_0x3668,0xdc));const _0x4f2e=function(_0x1cc54a,_0x366876){_0x1cc54a=_0x1cc54a-0x0;let _0x4f2ea2=_0x3668[_0x1cc54a];return _0x4f2ea2;};import{Command as _0x21d43b}from'ckeditor5/src/core.js';import{uid as _0x379899}from'ckeditor5/src/utils.js';export default class G extends _0x21d43b{[_0x4f2e('0x5')](){const _0x41525c=this[_0x4f2e('0xf')][_0x4f2e('0x1')][_0x4f2e('0x12')][_0x4f2e('0xe')];for(const _0x19e444 of _0x41525c[_0x4f2e('0x16')]())if(this[_0x4f2e('0x14')](_0x19e444))return void(this[_0x4f2e('0x9')]=!0x0);this[_0x4f2e('0x9')]=!0x1;}[_0x4f2e('0x15')]({threadId:_0x546e47=_0x379899()}={}){const _0x419feb=this[_0x4f2e('0xf')][_0x4f2e('0x1')],_0x318f49=[];for(const _0x456415 of _0x419feb[_0x4f2e('0x12')][_0x4f2e('0xe')][_0x4f2e('0x16')]())this['_hasContent'](_0x456415)&&_0x318f49[_0x4f2e('0x4')](this[_0x4f2e('0x2')](_0x456415));_0x419feb[_0x4f2e('0x11')](_0x393e53=>{for(const _0x5b1dd1 of _0x318f49){const _0xdcbc59=_0x379899()[_0x4f2e('0x3')](0x1,0x5),_0x3b2b35=_0x4f2e('0x7')+_0x546e47+':'+_0xdcbc59;_0x393e53[_0x4f2e('0x8')](_0x3b2b35,{'range':_0x5b1dd1,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x4f2e('0x14')](_0x509303){for(const _0x15dc15 of _0x509303[_0x4f2e('0xb')]())if(this['_itemIsContent'](_0x15dc15))return!0x0;return!0x1;}[_0x4f2e('0xd')](_0xb37131){return _0xb37131['is'](_0x4f2e('0x0'))||this[_0x4f2e('0xf')][_0x4f2e('0x1')][_0x4f2e('0x10')]['isObject'](_0xb37131)&&!_0xb37131['is']('element','tableCell');}[_0x4f2e('0x2')](_0x4968b5){const _0x2ffccd=_0xb1cdac=>!this[_0x4f2e('0xd')](_0xb1cdac[_0x4f2e('0xa')]),_0x245f63=_0x4968b5[_0x4f2e('0xc')][_0x4f2e('0x13')](_0x2ffccd),_0x393fdc=_0x4968b5['end'][_0x4f2e('0x13')](_0x2ffccd,{'direction':_0x4f2e('0x6')});return this[_0x4f2e('0xf')]['model'][_0x4f2e('0x17')](_0x245f63,_0x393fdc);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2227=['archivedThreads','collection','stopListening','activate','findIndex','archivedAt','context','requires','getCommentThread','focus','add','change:archivedAt','has','remove','pluginName','_calculatePosition','listenTo','highest','isActive','removeCommentThread','get','length'];(function(_0x4ca6bb,_0x22274c){const _0x3244aa=function(_0x5d870e){while(--_0x5d870e){_0x4ca6bb['push'](_0x4ca6bb['shift']());}};_0x3244aa(++_0x22274c);}(_0x2227,0x1a6));const _0x3244=function(_0x4ca6bb,_0x22274c){_0x4ca6bb=_0x4ca6bb-0x0;let _0x3244aa=_0x2227[_0x4ca6bb];return _0x3244aa;};import{ContextPlugin as _0x223120}from'ckeditor5/src/core.js';import{Collection as _0x3779b0}from'ckeditor5/src/utils.js';import _0x40529c from'./commentsrepository.js';import _0x5cb81c from'../annotations/annotations.js';export default class p extends _0x223120{static get[_0x3244('0xa')](){return'CommentsArchive';}static get[_0x3244('0x3')](){return[_0x40529c,_0x5cb81c];}constructor(_0x1dc5a4){super(_0x1dc5a4),this[_0x3244('0x12')]=new _0x3779b0();}['init'](){const _0x3565e4=this[_0x3244('0x2')],_0x13adc8=_0x3565e4['plugins']['get'](_0x40529c),_0x36f34b=_0x3565e4['plugins'][_0x3244('0x10')](_0x5cb81c);this[_0x3244('0xc')](_0x13adc8,'addCommentThread',(_0x103f30,{threadId:_0x1ecdd2})=>{const _0x36531b=_0x13adc8['getCommentThread'](_0x1ecdd2);_0x36531b[_0x3244('0x1')]&&this['archivedThreads'][_0x3244('0x6')](_0x36531b,this[_0x3244('0xb')](_0x36531b['archivedAt'])),this['listenTo'](_0x36531b,_0x3244('0x7'),(_0x2eb891,_0x249f67,_0x38553d)=>{_0x38553d?this[_0x3244('0x12')][_0x3244('0x8')](_0x36531b)||this[_0x3244('0x12')][_0x3244('0x6')](_0x36531b,this['_calculatePosition'](_0x36531b['archivedAt'])):this[_0x3244('0x12')][_0x3244('0x8')](_0x36531b)&&this[_0x3244('0x12')]['remove'](_0x36531b);});}),this[_0x3244('0xc')](_0x13adc8,_0x3244('0xf'),(_0x35db85,{threadId:_0x21d980})=>{const _0x262512=_0x13adc8[_0x3244('0x4')](_0x21d980);this[_0x3244('0x14')](_0x262512),this[_0x3244('0x12')][_0x3244('0x8')](_0x262512)&&this['archivedThreads'][_0x3244('0x9')](_0x262512);},{'priority':_0x3244('0xd')}),this['listenTo'](_0x36f34b[_0x3244('0x13')],_0x3244('0x5'),(_0x25d821,_0x25d4b7)=>{_0x25d4b7[_0x3244('0xe')]=!0x0,_0x36f34b[_0x3244('0x15')](_0x25d4b7);});}[_0x3244('0xb')](_0x2edaf7){const _0x1af593=[...this[_0x3244('0x12')]][_0x3244('0x0')](_0xbfe914=>_0xbfe914[_0x3244('0x1')]<_0x2edaf7);return _0x1af593>-0x1?_0x1af593:this[_0x3244('0x12')][_0x3244('0x11')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a6a=['archivedThreads','panelView','archivedAt','channelId','listenTo','indexOf','plugins','collection','position','config','collaboration.channelId','view','children','change:isOpen','set','locale','commentsArchiveView','focusableElements','COMMENTS_ARCHIVE','stopListening','editor','pluginName','filter','_pendingThreads','buttonView','mainView','get','Annotations','_createArchiveUIDropdown','_calculatePosition','ck-body','push','splice','_threadToController','_handleAnnotationFocusableElements','focusTracker','commentsArchive','innerView','remove','annotationViews','contains','classList','getByInnerView','extendTemplate','add'];(function(_0x54e933,_0x1a6af9){const _0xe29ca7=function(_0x410feb){while(--_0x410feb){_0x54e933['push'](_0x54e933['shift']());}};_0xe29ca7(++_0x1a6af9);}(_0x1a6a,0x1c9));const _0xe29c=function(_0x54e933,_0x1a6af9){_0x54e933=_0x54e933-0x0;let _0xe29ca7=_0x1a6a[_0x54e933];return _0xe29ca7;};import'../../theme/commentsarchive.css';import{Plugin as _0x121bca}from'ckeditor5/src/core.js';import{createDropdown as _0x225e78,ViewCollection as _0x3a6fb0}from'ckeditor5/src/ui.js';import _0x4ebe73 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x56834d}from'../utils/common-translations.js';import _0x2a5d28 from'./ui/view/commentsarchiveview.js';import _0x49da24 from'./commentsarchive.js';export default class a extends _0x121bca{static get[_0xe29c('0xe')](){return'CommentsArchiveUI';}static get['requires'](){return[_0x49da24];}constructor(_0x4ee849){super(_0x4ee849),this[_0xe29c('0x20')]=new _0x3a6fb0(),this[_0xe29c('0x10')]=[];}['init'](){this['editor']['ui']['componentFactory'][_0xe29c('0x25')](_0xe29c('0x1d'),()=>this[_0xe29c('0x15')]());const _0x5adaf6=this[_0xe29c('0xd')][_0xe29c('0x2c')][_0xe29c('0x13')](_0x49da24),_0x44f2ae=this['editor'][_0xe29c('0x2c')]['get'](_0xe29c('0x14')),_0x32b588=this[_0xe29c('0xd')][_0xe29c('0x2c')][_0xe29c('0x13')]('CommentsRepository');this[_0xe29c('0x2a')](_0x5adaf6[_0xe29c('0x26')],_0xe29c('0x25'),(_0x3be14b,_0x57f0f2)=>{const _0x22552b=this[_0xe29c('0xd')][_0xe29c('0x2')][_0xe29c('0x13')](_0xe29c('0x3'));if(!_0x22552b||_0x57f0f2[_0xe29c('0x29')]===_0x22552b){const _0x5da503=this[_0xe29c('0x16')](_0x57f0f2[_0xe29c('0x28')]),_0xf85669=_0x32b588[_0xe29c('0x1a')][_0xe29c('0x13')](_0x57f0f2);if(!_0xf85669)return void this['_pendingThreads'][_0xe29c('0x18')]({'thread':_0x57f0f2,'position':_0x5da503});const _0x5308f6=_0x44f2ae[_0xe29c('0x23')](_0xf85669[_0xe29c('0x4')]);_0x5308f6['isVisible']&&_0x44f2ae['_visibleAnnotations'][_0xe29c('0x1f')](_0x5308f6),this[_0xe29c('0x20')][_0xe29c('0x25')](_0x5308f6['view'],_0x5da503);}}),this[_0xe29c('0x2a')](_0x44f2ae[_0xe29c('0x0')],'add',(_0x5e5c5f,_0x5f1777)=>{const _0x3e372e=this[_0xe29c('0x10')]['find'](({thread:_0x534ea4})=>{const _0x181072=_0x32b588[_0xe29c('0x1a')][_0xe29c('0x13')](_0x534ea4);return _0x181072&&_0x5f1777[_0xe29c('0x1e')]===_0x181072[_0xe29c('0x4')];});_0x3e372e&&(this[_0xe29c('0x20')][_0xe29c('0x25')](_0x5f1777['view'],_0x3e372e[_0xe29c('0x1')]),this[_0xe29c('0x10')][_0xe29c('0x19')](this[_0xe29c('0x10')][_0xe29c('0x2b')](_0x3e372e),0x1));}),this[_0xe29c('0x2a')](_0x5adaf6[_0xe29c('0x26')],_0xe29c('0x1f'),(_0x45ff9e,_0x257caa)=>{const _0x33f342=this['editor'][_0xe29c('0x2')][_0xe29c('0x13')]('collaboration.channelId');if(!_0x33f342||_0x257caa[_0xe29c('0x29')]===_0x33f342){const _0x10e255=_0x32b588[_0xe29c('0x1a')][_0xe29c('0x13')](_0x257caa),_0x37c7ac=_0x44f2ae[_0xe29c('0x23')](_0x10e255['view']);this[_0xe29c('0x20')][_0xe29c('0x1f')](_0x37c7ac[_0xe29c('0x4')]),this[_0xe29c('0xc')](_0x37c7ac[_0xe29c('0xa')]);}});}[_0xe29c('0x1b')](_0x243178,_0x17e573){for(const _0x25a635 of _0x17e573[_0xe29c('0xa')])_0x25a635[_0xe29c('0x22')]['contains'](_0xe29c('0x17'))&&_0x243178[_0xe29c('0x1c')]['add'](_0x25a635);this[_0xe29c('0x2a')](_0x17e573[_0xe29c('0xa')],_0xe29c('0x25'),(_0x156bb5,_0x4725d8)=>{_0x4725d8[_0xe29c('0x22')][_0xe29c('0x21')](_0xe29c('0x17'))&&_0x243178[_0xe29c('0x1c')]['add'](_0x4725d8);}),this[_0xe29c('0x2a')](_0x17e573[_0xe29c('0xa')],_0xe29c('0x1f'),(_0x5ec951,_0x129436)=>{_0x129436['classList'][_0xe29c('0x21')]('ck-body')&&_0x243178[_0xe29c('0x1c')][_0xe29c('0x1f')](_0x129436);});}[_0xe29c('0x16')](_0xd7d252){const _0x1566d7=this[_0xe29c('0xd')][_0xe29c('0x2')][_0xe29c('0x13')](_0xe29c('0x3')),_0x59b312=[...this['editor']['plugins'][_0xe29c('0x13')](_0x49da24)[_0xe29c('0x26')]][_0xe29c('0xf')](_0x1aff8a=>_0x1aff8a[_0xe29c('0x29')]===_0x1566d7)['findIndex'](_0x26509b=>_0x26509b[_0xe29c('0x28')]<_0xd7d252);return _0x59b312>-0x1?_0x59b312-0x1:this[_0xe29c('0x20')]['length'];}['_createArchiveUIDropdown'](){const _0x5ebdcc=this[_0xe29c('0xd')],_0x353d3e=this[_0xe29c('0xd')][_0xe29c('0x2c')][_0xe29c('0x13')](_0xe29c('0x14')),_0x2e2dbf=_0x225e78(_0x5ebdcc[_0xe29c('0x8')]);_0x2e2dbf[_0xe29c('0x11')][_0xe29c('0x7')]({'icon':_0x4ebe73,'label':_0x56834d(_0x5ebdcc[_0xe29c('0x8')],_0xe29c('0xb')),'tooltip':!0x0}),_0x2e2dbf[_0xe29c('0x27')][_0xe29c('0x24')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x2e2dbf['on'](_0xe29c('0x6'),(_0x2ff564,_0x477e61,_0x1185a0)=>{this[_0xe29c('0x9')]||(this[_0xe29c('0x9')]=new _0x2a5d28(_0x5ebdcc['locale'],this[_0xe29c('0x20')])),_0x1185a0?_0x2e2dbf[_0xe29c('0x27')][_0xe29c('0x5')]['add'](this[_0xe29c('0x9')]):_0x2e2dbf[_0xe29c('0x27')][_0xe29c('0x5')][_0xe29c('0x1f')](this[_0xe29c('0x9')]);});for(const _0x1611aa of this[_0xe29c('0x20')]){const _0x4abcc1=_0x353d3e[_0xe29c('0x23')](_0x1611aa[_0xe29c('0x12')]);this['_handleAnnotationFocusableElements'](_0x2e2dbf,_0x4abcc1);}return _0x2e2dbf[_0xe29c('0x2a')](this[_0xe29c('0x20')],'add',(_0x3d8f7e,_0x8a27f6)=>{const _0x263938=_0x353d3e[_0xe29c('0x23')](_0x8a27f6[_0xe29c('0x12')]);this[_0xe29c('0x1b')](_0x2e2dbf,_0x263938);}),_0x2e2dbf[_0xe29c('0x2a')](this['annotationViews'],_0xe29c('0x1f'),(_0x37b55a,_0x2a429b)=>{const _0x104fa6=_0x353d3e[_0xe29c('0x23')](_0x2a429b[_0xe29c('0x12')]);for(const _0x5209fe of _0x104fa6['focusableElements'])_0x5209fe[_0xe29c('0x22')][_0xe29c('0x21')]('ck-body')&&_0x2e2dbf[_0xe29c('0x1c')][_0xe29c('0x1f')](_0x5209fe);}),_0x2e2dbf;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x8ce6=['attachTo','editingDowncast','activeMarker','document','$graveyard','setUnlinkedAt','init','group','isResolved','plugins','managedUsingOperations','addMarker:','ariaLiveAnnouncer','rootName','get','_attachMarkerToThread','fetchCommentThread','startsWith','registerAnnotation','hasContent','change:isThreadsLoadingPaused','ENTER_COMMENT_ANNOUNCEMENT','schema','newRange','set','change','hasDomSelection','ck-comment-marker','destroy','_hasTargetInContent','comment','item','consumable','editing','removeMarker:','conversion','name','isLocal','getByInnerView','view','split','collaboration.channelId','destroyed','scrollToThreadMarker','root','commands','affectsData','getItems','addCommentThread','model','text','_detachCommentThread','_handleThreadMarker','getCommentThreads','once','for','isAttached','updateMarker','getRange','isThreadsLoadingPaused','from','consume','then','reconvertMarker','editor','removeMarker','getAllMarkersForId','_handleMarkerAddAndRemove','refreshVisibility','elementToElement','low','enqueueChange','context','start','focus','differ','unlinkedAt','comments','_threadToController','_getTargetForId','markerToData','data','_getTextContext','_initAriaMarkerChangeAnnouncements','pluginName','_attachArchivedThread','$textProxy','ck-comment-marker--active','removeCommentThread','ready','length','push','_reconvertMarkers','markers','upcast','join','size','createElement','config','change:isReadOnly','registerPostFixer','_initializeMarkerConverters','change:activeMarker','requires','comment:','dataDowncast','hasCommentThread','add','getAttribute','getChangedMarkers','getCommentThread','reopenCommentThread','listenTo','delete','createPositionBefore','markerName','clear','isObject','hasMarkerForId','isCollapsed','openNewCommentThread'];(function(_0x55ea66,_0x8ce6f8){const _0xed4300=function(_0x447c07){while(--_0x447c07){_0x55ea66['push'](_0x55ea66['shift']());}};_0xed4300(++_0x8ce6f8);}(_0x8ce6,0x1cd));const _0xed43=function(_0x55ea66,_0x8ce6f8){_0x55ea66=_0x55ea66-0x0;let _0xed4300=_0x8ce6[_0x55ea66];return _0xed4300;};import{Plugin as _0x306ac2}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x7e007a}from'ckeditor5/src/utils.js';import _0x446574 from'./commentsrepository.js';import _0x5a5b35 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x202773,getAllMarkersDomElementsSorted as _0xd433d}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x5f0e54 from'../annotations/editorannotations.js';import _0x40e589 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x254ea3 from'./integrations/importword.js';import _0x5bfa88 from'../annotations/annotations.js';import{getTranslation as _0x45f830}from'../utils/common-translations.js';export default class r extends _0x306ac2{static get[_0xed43('0x5')](){return[_0x446574,_0x5f0e54,_0x40e589,_0x254ea3];}static get[_0xed43('0x6b')](){return'CommentsEditing';}constructor(_0x2be20f){super(_0x2be20f),this[_0xed43('0x2f')](_0xed43('0x52'),!0x0),_0x2be20f[_0xed43('0x68')][_0xed43('0x4d')](_0xed43('0x70'),()=>this[_0xed43('0x52')]=!0x1),this['set'](_0xed43('0x19'),null),this['on'](_0xed43('0x4'),(_0x108092,_0x22bd4e,_0x3da104,_0x52d766)=>{const _0x129865=_0x3da104?ot(_0x3da104)['id']:null;if(_0x2be20f[_0xed43('0x48')]['change'](()=>{if(_0x129865){const _0x18dab4=this[_0xed43('0x59')](_0x129865);for(const _0x395635 of _0x18dab4)_0x2be20f['editing'][_0xed43('0x56')](_0x395635);}if(_0x52d766){const {id:_0x5ae119}=ot(_0x52d766),_0x176593=this[_0xed43('0x59')](_0x5ae119);for(const _0x583bdf of _0x176593)_0x2be20f['editing'][_0xed43('0x56')](_0x583bdf);}}),_0x129865){const _0x22fb9a=_0x2be20f[_0xed43('0x20')][_0xed43('0x25')](_0x446574)[_0xed43('0xc')](_0x129865);_0x22fb9a&&_0x22fb9a[_0xed43('0x1f')]&&this[_0xed43('0x42')](_0x129865);}}),this['_initAriaMarkerChangeAnnouncements']();}[_0xed43('0x1d')](){const _0x503f51=this[_0xed43('0x57')],_0x297539=_0x503f51[_0xed43('0x20')][_0xed43('0x25')](_0x446574),_0x3e6b83=_0x503f51[_0xed43('0x0')][_0xed43('0x25')](_0xed43('0x40'));_0x503f51[_0xed43('0x44')][_0xed43('0x9')](_0xed43('0x47'),new _0x5a5b35(_0x503f51)),this[_0xed43('0xe')](_0x503f51,_0xed43('0x1'),(_0x39d0c9,_0xb12efc,_0x4c4973)=>{_0x297539['switchReadOnly'](_0x4c4973,_0x503f51[_0xed43('0x0')]['get']('collaboration.channelId'));}),this[_0xed43('0xe')](_0x297539,tt(_0xed43('0x47'),_0x3e6b83),(_0x1a84ef,{threadId:_0x781762})=>{const _0x544416=this[_0xed43('0x57')][_0xed43('0x20')][_0xed43('0x25')](_0x446574)[_0xed43('0xc')](_0x781762);_0x544416&&_0x544416[_0xed43('0x63')]&&this[_0xed43('0x6c')](_0x781762);}),this['listenTo'](_0x297539,tt(_0xed43('0x6f'),_0x3e6b83),(_0xaddf0b,{threadId:_0x5972ec})=>{_0x503f51[_0xed43('0x48')][_0xed43('0x5e')]({'isUndoable':!0x1},_0x2b9b75=>{const _0x2659ce=this[_0xed43('0x59')](_0x5972ec);for(const _0x4a7c37 of _0x2659ce)_0x2b9b75['removeMarker'](_0x4a7c37);});}),this[_0xed43('0xe')](_0x297539,tt('resolveCommentThread',_0x3e6b83),(_0x10d7d5,{threadId:_0x4dbecb})=>{(this[_0xed43('0x73')](_0x4dbecb),this[_0xed43('0x57')][_0xed43('0x38')][_0xed43('0x3e')][_0xed43('0x31')])&&(this['editor']['plugins']['get'](_0x446574)[_0xed43('0xc')](_0x4dbecb)[_0xed43('0x63')]||this[_0xed43('0x57')][_0xed43('0x38')][_0xed43('0x3e')][_0xed43('0x61')]());},{'priority':'low'}),this[_0xed43('0xe')](_0x297539,tt(_0xed43('0xd'),_0x3e6b83),(_0x4673f1,{threadId:_0x4f6377})=>{this['_reconvertMarkers'](_0x4f6377);},{'priority':'low'}),this[_0xed43('0xe')](_0x297539,tt('addComment',_0x3e6b83),(_0x58f88a,{threadId:_0x188b81,isFromAdapter:_0x182656})=>{const _0x5c349a=this['getAllMarkersForId'](_0x188b81);if(_0x182656||0x0==_0x5c349a[_0xed43('0x71')]||!_0x297539[_0xed43('0x8')](_0x188b81))return;0x1===_0x297539[_0xed43('0xc')](_0x188b81)[_0xed43('0x71')]&&_0x503f51['model'][_0xed43('0x5e')]({'isUndoable':!0x1},_0x597151=>{for(const _0xe4b6af of _0x5c349a)_0x597151[_0xed43('0x50')](_0xe4b6af,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0xed43('0x5d')}),this[_0xed43('0x3')](),this[_0xed43('0x5a')]();}[_0xed43('0x33')](){const _0x3a559f=this['editor'][_0xed43('0x20')][_0xed43('0x25')](_0x446574),_0x208c9c=this[_0xed43('0x57')]['config'][_0xed43('0x25')](_0xed43('0x40'));for(const _0x40b05e of _0x3a559f[_0xed43('0x4c')]({'channelId':_0x208c9c}))_0x3a559f[_0xed43('0x4a')](_0x40b05e['id']),_0x3a559f['_threads'][_0xed43('0xf')](_0x40b05e['id']);super[_0xed43('0x33')]();}[_0xed43('0x14')](_0x2a0545){return this['getAllMarkersForId'](_0x2a0545)[_0xed43('0x71')]>0x0;}[_0xed43('0x59')](_0x41ec38){const _0x303259=[];for(const _0x8cb20d of this[_0xed43('0x57')]['model'][_0xed43('0x74')])_0x8cb20d[_0xed43('0x3b')][_0xed43('0x28')](_0xed43('0x6')+_0x41ec38)&&_0x303259[_0xed43('0x72')](_0x8cb20d);return _0x303259;}['scrollToThreadMarker'](_0x28be52){const _0x45297f=this[_0xed43('0x66')](_0x28be52);_0x45297f&&setTimeout(()=>{this['activeMarker']&&ot(this[_0xed43('0x19')])['id']===_0x28be52&&_0x7e007a({'target':_0x45297f[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xe7054f){this[_0xed43('0x57')]['model'][_0xed43('0x30')](()=>{for(const _0xe341aa of this[_0xed43('0x59')](_0xe7054f))this[_0xed43('0x57')]['editing']['reconvertMarker'](_0xe341aa);});}[_0xed43('0x6c')](_0x510fa4){const _0x108984=this[_0xed43('0x57')][_0xed43('0x20')]['get'](_0x446574),_0x824b6d=this[_0xed43('0x57')][_0xed43('0x20')][_0xed43('0x25')](_0x5f0e54),_0x37e23b=_0x108984[_0xed43('0xc')](_0x510fa4);if(!_0x37e23b[_0xed43('0x4f')]){const _0x5da56d=_0x37e23b['attachTo'](()=>this['_getTargetForId'](_0x37e23b['id']));_0x824b6d[_0xed43('0x29')](_0x5da56d),_0x37e23b[_0xed43('0x34')]=!0x1;}}[_0xed43('0x3')](){const _0x5459b2=this[_0xed43('0x57')];_0x5459b2[_0xed43('0x3a')]['for'](_0xed43('0x18'))['markerToHighlight']({'model':_0xed43('0x35'),'view':(_0x30683a,_0x5ad79e)=>{const {id:_0x28590c}=ot(_0x30683a[_0xed43('0x11')]),_0x2d23fa=_0x5459b2[_0xed43('0x20')][_0xed43('0x25')](_0x446574)[_0xed43('0xc')](_0x28590c),_0x52ad28=this[_0xed43('0x19')]&&ot(this[_0xed43('0x19')])['id']===_0x28590c;if(_0x2d23fa&&_0x2d23fa[_0xed43('0x1f')]&&!_0x52ad28&&_0x30683a[_0xed43('0x36')])return _0x5ad79e[_0xed43('0x37')][_0xed43('0x54')](_0x30683a[_0xed43('0x36')],_0xed43('0x22')+_0x30683a[_0xed43('0x11')]),_0x5ad79e['consumable']['consume'](_0x30683a['item'],_0xed43('0x39')+_0x30683a[_0xed43('0x11')]),null;const _0x3078f4=[_0xed43('0x32')];return _0x52ad28&&_0x3078f4['push'](_0xed43('0x6e')),{'classes':_0x3078f4,'attributes':{'data-comment':_0x28590c}};}}),_0x5459b2[_0xed43('0x3a')][_0xed43('0x4e')](_0xed43('0x7'))[_0xed43('0x67')]({'model':'comment','view':(_0x278383,{options:_0x5f3dbb})=>{const _0x209276=_0x5459b2[_0xed43('0x20')]['get'](_0x446574),_0x1d6ce8=_0x5459b2['model']['markers']['get'](_0x278383),{id:_0x9e6062,part:_0x1d9d83}=ot(_0x278383);if(_0x1d6ce8&&!_0x1d6ce8[_0xed43('0x45')])return null;if(_0x5f3dbb['ignoreResolvedComments']){const _0x3bc6d7=_0x209276[_0xed43('0xc')](_0x9e6062);if(_0x3bc6d7&&_0x3bc6d7[_0xed43('0x1f')])return null;}return{'group':_0xed43('0x35'),'name':_0x1d9d83?_0x9e6062+':'+_0x1d9d83:_0x9e6062};}}),_0x5459b2[_0xed43('0x3a')][_0xed43('0x4e')](_0xed43('0x75'))[_0xed43('0x5c')]({'view':{'name':_0xed43('0x35'),'attributes':{'id':/^\w/}},'model':(_0x84405c,{writer:_0x34f236})=>_0x34f236[_0xed43('0x78')]('$marker',{'data-name':'comment:'+_0x84405c[_0xed43('0xa')]('id')})}),_0x5459b2[_0xed43('0x3a')][_0xed43('0x4e')]('upcast')['dataToMarker']({'view':_0xed43('0x35')});}['_handleMarkerAddAndRemove'](){const _0x52979a=this[_0xed43('0x57')],_0x5954e3=_0x52979a['plugins'][_0xed43('0x25')](_0x446574),_0x50c67d=new Set(),_0x3ee78e=new Set();_0x52979a[_0xed43('0x48')]['document'][_0xed43('0x2')](_0x5bf6fd=>{let _0x37d574=!0x1;for(const {name:_0x1b15ab,data:_0x4261e4}of _0x52979a[_0xed43('0x48')][_0xed43('0x1a')]['differ'][_0xed43('0xb')]()){const {group:_0x354bd7,id:_0x17402d}=ot(_0x1b15ab);let _0x1e469c=_0x4261e4[_0xed43('0x2e')];if(_0xed43('0x35')!==_0x354bd7||!_0x1e469c)continue;const _0x11b1f9=_0xed43('0x1b')===_0x1e469c[_0xed43('0x43')][_0xed43('0x24')];_0x11b1f9||(_0x1e469c=et(_0x1e469c,_0x52979a[_0xed43('0x48')]),!_0x1e469c||_0x1e469c[_0xed43('0x15')]||!_0x4261e4[_0xed43('0x2e')]||_0x1e469c['isEqual'](_0x4261e4[_0xed43('0x2e')]))?_0x52979a[_0xed43('0x48')][_0xed43('0x2a')](_0x1e469c)&&!_0x11b1f9?this[_0xed43('0x52')]?_0x50c67d[_0xed43('0x9')](_0x1b15ab):this['_handleThreadMarker'](_0x1b15ab,_0x17402d):(_0x3ee78e['add'](_0x1b15ab),_0x50c67d[_0xed43('0xf')](_0x1b15ab),_0x5bf6fd[_0xed43('0x58')](_0x1b15ab),_0x37d574=!0x0):(_0x5bf6fd[_0xed43('0x50')](_0x1b15ab,{'range':_0x1e469c}),_0x37d574=!0x0);}return _0x37d574;}),this['on'](_0xed43('0x2b'),(_0x6c10b2,_0x5ccb8b,_0x4968e0)=>{if(!_0x4968e0&&_0x50c67d[_0xed43('0x77')])for(const _0x1d629f of _0x50c67d){const {id:_0x2c208b}=ot(_0x1d629f);_0x50c67d[_0xed43('0xf')](_0x1d629f),_0x52979a['model'][_0xed43('0x74')][_0xed43('0x25')](_0x1d629f)&&this[_0xed43('0x4b')](_0x1d629f,_0x2c208b);}}),this['listenTo'](_0x52979a[_0xed43('0x48')][_0xed43('0x1a')],_0xed43('0x30'),(_0x3a4882,_0x8b135d)=>{for(const {name:_0x4ac00a,data:{newRange:_0x5b0578}}of _0x52979a[_0xed43('0x48')]['document'][_0xed43('0x62')][_0xed43('0xb')]()){const {group:_0x228a06,id:_0x5dae60}=ot(_0x4ac00a);if(_0xed43('0x35')!==_0x228a06)continue;const _0x5a16f7=_0x5954e3[_0xed43('0xc')](_0x5dae60),_0x1a24f1=this[_0xed43('0x14')](_0x5dae60);_0x5a16f7&&(_0x5a16f7[_0xed43('0x34')]||_0x52979a[_0xed43('0x38')]['view'][_0xed43('0x4d')]('render',()=>{const _0x2d9aaf=_0x52979a[_0xed43('0x20')][_0xed43('0x25')](_0x5bfa88),_0xc55096=_0x5954e3['_threadToController'][_0xed43('0x25')](_0x5a16f7)[_0xed43('0x3e')];_0x2d9aaf['getByInnerView'](_0xc55096)[_0xed43('0x5b')]();},{'priority':_0xed43('0x5d')}),_0x5a16f7[_0xed43('0x34')]=_0x1a24f1||!!_0x5b0578),_0x5b0578||(_0x3ee78e[_0xed43('0x9')](_0x4ac00a),_0x50c67d[_0xed43('0xf')](_0x4ac00a));}if(_0x8b135d[_0xed43('0x3c')])for(const _0x244856 of _0x3ee78e){const {id:_0x35715d}=ot(_0x244856),_0x2ef388=_0x5954e3['getCommentThread'](_0x35715d),_0x5901a7=this[_0xed43('0x14')](_0x35715d);_0x50c67d[_0xed43('0xf')](_0x244856),!_0x2ef388||_0x5901a7||_0x2ef388[_0xed43('0x63')]||_0x2ef388[_0xed43('0x1c')](new Date());}_0x3ee78e[_0xed43('0x12')]();});}['_getTargetForId'](_0x1c4681){const _0x176e61=this['editor'],_0x155f36=this['getAllMarkersForId'](_0x1c4681);return _0xd433d(_0x176e61['editing'],_0x155f36);}[_0xed43('0x69')](_0x4b8f96){const _0x2b17b2=this[_0xed43('0x59')](_0x4b8f96);let _0x49b6b2='',_0xceb094=!0x1;for(const _0x1b44f7 of _0x2b17b2){const _0x1e0110=_0x1b44f7[_0xed43('0x51')]();for(const _0x27cbd6 of Array[_0xed43('0x53')](_0x1e0110[_0xed43('0x46')]()))_0x27cbd6['is'](_0xed43('0x6d'))?(_0x49b6b2&&_0xceb094&&(_0x49b6b2+='\x20',_0xceb094=!0x1),_0x49b6b2+=_0x27cbd6[_0xed43('0x68')]):_0xceb094=!0x0;_0xceb094=!0x0;}return _0x49b6b2['substring'](0x0,0x96);}[_0xed43('0x26')](_0x303c2a,_0x174b05){const _0x3365bd=this[_0xed43('0x57')],_0x260899=_0x3365bd[_0xed43('0x20')][_0xed43('0x25')](_0x446574);let _0x38f0f5=_0x260899[_0xed43('0xc')](_0x174b05);const _0x461b62=_0x3365bd[_0xed43('0x0')][_0xed43('0x25')](_0xed43('0x40')),_0x5c3ed2=_0x3365bd[_0xed43('0x20')][_0xed43('0x25')](_0x5f0e54);if(_0x38f0f5&&(_0x38f0f5[_0xed43('0x63')]&&_0x38f0f5[_0xed43('0x1c')](null),_0x38f0f5[_0xed43('0x4f')]))return _0x38f0f5;return!this[_0xed43('0x59')](_0x174b05)[0x0][_0xed43('0x21')]?_0x3365bd[_0xed43('0x38')][_0xed43('0x3e')][_0xed43('0x4d')]('render',()=>{if(_0x260899['getCommentThread'](_0x174b05))return;const _0x3d5969=_0x3365bd[_0xed43('0x20')][_0xed43('0x25')](_0x5bfa88);_0x38f0f5=_0x260899[_0xed43('0x16')]({'channelId':_0x461b62,'threadId':_0x174b05,'target':()=>this[_0xed43('0x66')](_0x174b05),'context':{'type':_0xed43('0x49'),'value':this[_0xed43('0x69')](_0x174b05)}});const _0xb6c66b=_0x260899[_0xed43('0x65')][_0xed43('0x25')](_0x38f0f5)[_0xed43('0x3e')],_0x4db610=_0x3d5969[_0xed43('0x3d')](_0xb6c66b);_0x4db610&&_0x5c3ed2['registerAnnotation'](_0x4db610);},{'priority':_0xed43('0x5d')}):_0x260899[_0xed43('0x27')]({'channelId':_0x461b62,'threadId':_0x174b05})[_0xed43('0x55')](_0x5e5e24=>{if(_0xed43('0x41')!==_0x3365bd['state']){if(_0x38f0f5=_0x5e5e24,_0x38f0f5&&!_0x38f0f5['isAttached']){const _0x4acb46=_0x38f0f5[_0xed43('0x17')](()=>this[_0xed43('0x66')](_0x174b05));_0x5c3ed2['registerAnnotation'](_0x4acb46),_0x38f0f5[_0xed43('0x1f')]&&this[_0xed43('0x73')](_0x174b05);}else{if(!_0x38f0f5){const _0x173673=this['getAllMarkersForId'](_0x174b05);_0x3365bd[_0xed43('0x48')][_0xed43('0x30')](_0x399ba7=>{for(const _0x5c139f of _0x173673)_0x399ba7[_0xed43('0x58')](_0x5c139f);});}}}}),_0x38f0f5;}[_0xed43('0x4b')](_0x302bbf,_0x19d4a8){const _0x46fd83=this[_0xed43('0x26')](_0x302bbf,_0x19d4a8);_0x46fd83&&!_0x46fd83[_0xed43('0x5f')]&&_0x46fd83['setContext']({'type':_0xed43('0x49'),'value':this[_0xed43('0x69')](_0x19d4a8)});}[_0xed43('0x6a')](){const _0x13e00c=this['editor'];_0x202773(_0x13e00c[_0xed43('0x48')],({left:_0x11431d,entered:_0x50cf58})=>{const _0x1c1744=[];for(const _0x143734 of _0x11431d)if(rt(_0x143734)){_0x1c1744[_0xed43('0x72')](_0x45f830(_0x13e00c['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x55cb0d of _0x50cf58)if(rt(_0x55cb0d)){_0x1c1744[_0xed43('0x72')](_0x45f830(_0x13e00c['locale'],_0xed43('0x2c')));break;}_0x1c1744[_0xed43('0x71')]&&_0x13e00c['ui'][_0xed43('0x23')]['announce'](_0xed43('0x64'),_0x1c1744[_0xed43('0x76')]('\x20'));});}}function tt(_0x2eb3ca,_0x1a05f9){return _0x1a05f9?_0x2eb3ca+':'+_0x1a05f9:_0x2eb3ca;}function ot(_0x5e5ba0){const _0x513029=_0x5e5ba0[_0xed43('0x3f')](':');return{'group':_0x513029[0x0],'id':_0x513029[0x1],'part':_0x513029[0x2]};}function et(_0x8d7373,_0x4155c2){const _0x469b34=_0x4155c2[_0xed43('0x2d')],_0xbe321b=_0x4155c2['createRange'](_0x8d7373[_0xed43('0x60')]);for(const _0x40f437 of _0x8d7373['getWalker']()){const {type:_0x67af05,item:_0x43ead8,nextPosition:_0x55e5a2}=_0x40f437;if(_0xed43('0x49')===_0x67af05||_0x469b34[_0xed43('0x13')](_0x43ead8)){const _0x32abd9=_0x4155c2[_0xed43('0x10')](_0x43ead8);_0xbe321b[_0xed43('0x15')]&&(_0xbe321b[_0xed43('0x60')]=_0x32abd9),_0xbe321b['end']=_0x55e5a2;}}return _0xbe321b;}function rt(_0x51de8b){return _0xed43('0x35')===ot(_0x51de8b[_0xed43('0x3b')])[_0xed43('0x1e')];}
|
|
23
|
+
const _0x46bb=['elementToElement','getCommentThread','$textProxy','managedUsingOperations','reopenCommentThread','conversion','activeMarker','_handleThreadMarker','markerName','addMarker:','getCommentThreads','removeMarker:','requires','_threads','from','isResolved','group','registerAnnotation','$graveyard','change:isThreadsLoadingPaused','clear','commands','upcast','data','ck-comment-marker--active','plugins','refreshVisibility','split','_attachArchivedThread','text','get','createPositionBefore','hasMarkerForId','root','_detachCommentThread','hasDomSelection','init','$marker','openNewCommentThread','createElement','state','_attachMarkerToThread','change:activeMarker','length','getAttribute','differ','newRange','ready','removeCommentThread','isEqual','collaboration.channelId','setUnlinkedAt','getByInnerView','add','focus','once','_threadToController','end','ENTER_COMMENT_ANNOUNCEMENT','for','affectsData','getChangedMarkers','attachTo','markerToHighlight','editor','editing','schema','substring','createRange','_getTextContext','change:isReadOnly','name','_getTargetForId','config','ignoreResolvedComments','startsWith','unlinkedAt','comment','markers','_initAriaMarkerChangeAnnouncements','_initializeMarkerConverters','updateMarker','low','fetchCommentThread','removeMarker','dataDowncast','getWalker','model','editingDowncast','view','join','listenTo','getAllMarkersForId','getRange','comment:','addComment','render','dataToMarker','start','reconvertMarker','size','delete','context','LEAVE_COMMENT_ANNOUNCEMENT','consumable','addCommentThread','set','item','document','consume','destroy','_handleMarkerAddAndRemove','destroyed','enqueueChange','isThreadsLoadingPaused','rootName','isAttached','hasContent','setContext','_reconvertMarkers','push','getItems','scrollToThreadMarker','hasCommentThread','_hasTargetInContent','change','locale'];(function(_0xc3571e,_0x46bba6){const _0x293a13=function(_0x365f6b){while(--_0x365f6b){_0xc3571e['push'](_0xc3571e['shift']());}};_0x293a13(++_0x46bba6);}(_0x46bb,0x97));const _0x293a=function(_0xc3571e,_0x46bba6){_0xc3571e=_0xc3571e-0x0;let _0x293a13=_0x46bb[_0xc3571e];return _0x293a13;};import{Plugin as _0x2ce25a}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x428100}from'ckeditor5/src/utils.js';import _0x4e8100 from'./commentsrepository.js';import _0x3c81af from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x5c0888,getAllMarkersDomElementsSorted as _0x5cac62}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3d5054 from'../annotations/editorannotations.js';import _0x54438c from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x1a225a from'./integrations/importword.js';import _0x386832 from'../annotations/annotations.js';import{getTranslation as _0xc2c882}from'../utils/common-translations.js';export default class r extends _0x2ce25a{static get[_0x293a('0x73')](){return[_0x4e8100,_0x3d5054,_0x54438c,_0x1a225a];}static get['pluginName'](){return'CommentsEditing';}constructor(_0x37f134){super(_0x37f134),this['set']('isThreadsLoadingPaused',!0x0),_0x37f134[_0x293a('0x7e')][_0x293a('0x1f')](_0x293a('0x17'),()=>this[_0x293a('0x5a')]=!0x1),this[_0x293a('0x52')](_0x293a('0x6d'),null),this['on'](_0x293a('0x12'),(_0x515e7e,_0x80fa5,_0xac82d0,_0x53162a)=>{const _0x51d1d6=_0xac82d0?ot(_0xac82d0)['id']:null;if(_0x37f134['model']['change'](()=>{if(_0x51d1d6){const _0x4e4417=this[_0x293a('0x44')](_0x51d1d6);for(const _0x105a19 of _0x4e4417)_0x37f134['editing'][_0x293a('0x4b')](_0x105a19);}if(_0x53162a){const {id:_0x284357}=ot(_0x53162a),_0x5009f9=this['getAllMarkersForId'](_0x284357);for(const _0x3c936f of _0x5009f9)_0x37f134[_0x293a('0x29')][_0x293a('0x4b')](_0x3c936f);}}),_0x51d1d6){const _0xa20f3e=_0x37f134[_0x293a('0x1')]['get'](_0x4e8100)[_0x293a('0x68')](_0x51d1d6);_0xa20f3e&&_0xa20f3e['isResolved']&&this[_0x293a('0x62')](_0x51d1d6);}}),this[_0x293a('0x37')]();}[_0x293a('0xc')](){const _0x319025=this[_0x293a('0x28')],_0x43092f=_0x319025[_0x293a('0x1')]['get'](_0x4e8100),_0x25a1a3=_0x319025['config'][_0x293a('0x6')](_0x293a('0x1a'));_0x319025[_0x293a('0x7c')][_0x293a('0x1d')]('addCommentThread',new _0x3c81af(_0x319025)),this[_0x293a('0x43')](_0x319025,_0x293a('0x2e'),(_0x199ea0,_0x122507,_0x5c0125)=>{_0x43092f['switchReadOnly'](_0x5c0125,_0x319025[_0x293a('0x31')]['get'](_0x293a('0x1a')));}),this['listenTo'](_0x43092f,tt(_0x293a('0x51'),_0x25a1a3),(_0x3f954e,{threadId:_0x165c6b})=>{const _0x184c1f=this[_0x293a('0x28')][_0x293a('0x1')]['get'](_0x4e8100)[_0x293a('0x68')](_0x165c6b);_0x184c1f&&_0x184c1f[_0x293a('0x34')]&&this[_0x293a('0x4')](_0x165c6b);}),this[_0x293a('0x43')](_0x43092f,tt(_0x293a('0x18'),_0x25a1a3),(_0x4925a7,{threadId:_0x4912c6})=>{_0x319025['model'][_0x293a('0x59')]({'isUndoable':!0x1},_0x5b2d66=>{const _0x8c4c93=this[_0x293a('0x44')](_0x4912c6);for(const _0x4c9686 of _0x8c4c93)_0x5b2d66['removeMarker'](_0x4c9686);});}),this['listenTo'](_0x43092f,tt('resolveCommentThread',_0x25a1a3),(_0x12cbcf,{threadId:_0x4b5a42})=>{(this['_reconvertMarkers'](_0x4b5a42),this[_0x293a('0x28')][_0x293a('0x29')]['view'][_0x293a('0xb')])&&(this[_0x293a('0x28')]['plugins'][_0x293a('0x6')](_0x4e8100)[_0x293a('0x68')](_0x4b5a42)[_0x293a('0x34')]||this[_0x293a('0x28')][_0x293a('0x29')]['view'][_0x293a('0x1e')]());},{'priority':'low'}),this[_0x293a('0x43')](_0x43092f,tt(_0x293a('0x6b'),_0x25a1a3),(_0x398589,{threadId:_0x2c19b3})=>{this[_0x293a('0x5f')](_0x2c19b3);},{'priority':_0x293a('0x3a')}),this['listenTo'](_0x43092f,tt(_0x293a('0x47'),_0x25a1a3),(_0x11d2b7,{threadId:_0x1ff20e,isFromAdapter:_0xdc4f23})=>{const _0x200fdd=this[_0x293a('0x44')](_0x1ff20e);if(_0xdc4f23||0x0==_0x200fdd['length']||!_0x43092f[_0x293a('0x63')](_0x1ff20e))return;0x1===_0x43092f['getCommentThread'](_0x1ff20e)[_0x293a('0x13')]&&_0x319025[_0x293a('0x3f')][_0x293a('0x59')]({'isUndoable':!0x1},_0x6a01e9=>{for(const _0x158500 of _0x200fdd)_0x6a01e9[_0x293a('0x39')](_0x158500,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x293a('0x3a')}),this[_0x293a('0x38')](),this[_0x293a('0x57')]();}['destroy'](){const _0x5890c6=this['editor'][_0x293a('0x1')][_0x293a('0x6')](_0x4e8100),_0x3c2c09=this[_0x293a('0x28')][_0x293a('0x31')][_0x293a('0x6')]('collaboration.channelId');for(const _0x107987 of _0x5890c6[_0x293a('0x71')]({'channelId':_0x3c2c09}))_0x5890c6[_0x293a('0xa')](_0x107987['id']),_0x5890c6[_0x293a('0x74')]['delete'](_0x107987['id']);super[_0x293a('0x56')]();}[_0x293a('0x8')](_0x129763){return this[_0x293a('0x44')](_0x129763)[_0x293a('0x13')]>0x0;}[_0x293a('0x44')](_0x34ee6a){const _0x4dc881=[];for(const _0x9eac6 of this['editor'][_0x293a('0x3f')][_0x293a('0x36')])_0x9eac6[_0x293a('0x2f')][_0x293a('0x33')](_0x293a('0x46')+_0x34ee6a)&&_0x4dc881['push'](_0x9eac6);return _0x4dc881;}[_0x293a('0x62')](_0x3e1fc0){const _0x43ab24=this[_0x293a('0x30')](_0x3e1fc0);_0x43ab24&&setTimeout(()=>{this['activeMarker']&&ot(this[_0x293a('0x6d')])['id']===_0x3e1fc0&&_0x428100({'target':_0x43ab24[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x41fba4){this[_0x293a('0x28')][_0x293a('0x3f')]['change'](()=>{for(const _0x45ac1c of this[_0x293a('0x44')](_0x41fba4))this[_0x293a('0x28')][_0x293a('0x29')][_0x293a('0x4b')](_0x45ac1c);});}['_attachArchivedThread'](_0x530d17){const _0xcacb01=this[_0x293a('0x28')]['plugins']['get'](_0x4e8100),_0x4a17e8=this[_0x293a('0x28')][_0x293a('0x1')][_0x293a('0x6')](_0x3d5054),_0x6a3941=_0xcacb01[_0x293a('0x68')](_0x530d17);if(!_0x6a3941[_0x293a('0x5c')]){const _0x5e2e6f=_0x6a3941[_0x293a('0x26')](()=>this[_0x293a('0x30')](_0x6a3941['id']));_0x4a17e8['registerAnnotation'](_0x5e2e6f),_0x6a3941[_0x293a('0x64')]=!0x1;}}[_0x293a('0x38')](){const _0x237315=this[_0x293a('0x28')];_0x237315[_0x293a('0x6c')][_0x293a('0x23')](_0x293a('0x40'))[_0x293a('0x27')]({'model':_0x293a('0x35'),'view':(_0x7b9cee,_0x138d85)=>{const {id:_0x281de0}=ot(_0x7b9cee[_0x293a('0x6f')]),_0x476c3a=_0x237315['plugins']['get'](_0x4e8100)[_0x293a('0x68')](_0x281de0),_0x46115b=this[_0x293a('0x6d')]&&ot(this[_0x293a('0x6d')])['id']===_0x281de0;if(_0x476c3a&&_0x476c3a[_0x293a('0x76')]&&!_0x46115b&&_0x7b9cee[_0x293a('0x53')])return _0x138d85[_0x293a('0x50')][_0x293a('0x55')](_0x7b9cee['item'],_0x293a('0x70')+_0x7b9cee[_0x293a('0x6f')]),_0x138d85[_0x293a('0x50')]['consume'](_0x7b9cee[_0x293a('0x53')],_0x293a('0x72')+_0x7b9cee[_0x293a('0x6f')]),null;const _0xf0ab61=['ck-comment-marker'];return _0x46115b&&_0xf0ab61[_0x293a('0x60')](_0x293a('0x0')),{'classes':_0xf0ab61,'attributes':{'data-comment':_0x281de0}};}}),_0x237315[_0x293a('0x6c')][_0x293a('0x23')](_0x293a('0x3d'))['markerToData']({'model':_0x293a('0x35'),'view':(_0xb0b194,{options:_0xca3d16})=>{const _0x63232b=_0x237315['plugins']['get'](_0x4e8100),_0xe35945=_0x237315['model'][_0x293a('0x36')][_0x293a('0x6')](_0xb0b194),{id:_0x533abf,part:_0x5d8f50}=ot(_0xb0b194);if(_0xe35945&&!_0xe35945[_0x293a('0x24')])return null;if(_0xca3d16[_0x293a('0x32')]){const _0xb8c529=_0x63232b[_0x293a('0x68')](_0x533abf);if(_0xb8c529&&_0xb8c529[_0x293a('0x76')])return null;}return{'group':_0x293a('0x35'),'name':_0x5d8f50?_0x533abf+':'+_0x5d8f50:_0x533abf};}}),_0x237315[_0x293a('0x6c')][_0x293a('0x23')](_0x293a('0x7d'))[_0x293a('0x67')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x59b599,{writer:_0x12816e})=>_0x12816e[_0x293a('0xf')](_0x293a('0xd'),{'data-name':'comment:'+_0x59b599[_0x293a('0x14')]('id')})}),_0x237315['conversion'][_0x293a('0x23')]('upcast')[_0x293a('0x49')]({'view':_0x293a('0x35')});}[_0x293a('0x57')](){const _0xb6ad9=this[_0x293a('0x28')],_0x599ce7=_0xb6ad9['plugins'][_0x293a('0x6')](_0x4e8100),_0x3c3a23=new Set(),_0x6b83ed=new Set();_0xb6ad9[_0x293a('0x3f')]['document']['registerPostFixer'](_0x2c6aab=>{let _0x293994=!0x1;for(const {name:_0x5e7127,data:_0x44c888}of _0xb6ad9[_0x293a('0x3f')][_0x293a('0x54')][_0x293a('0x15')][_0x293a('0x25')]()){const {group:_0x35e989,id:_0x3a3132}=ot(_0x5e7127);let _0x1b188b=_0x44c888['newRange'];if('comment'!==_0x35e989||!_0x1b188b)continue;const _0x2ee9b3=_0x293a('0x79')===_0x1b188b[_0x293a('0x9')][_0x293a('0x5b')];_0x2ee9b3||(_0x1b188b=et(_0x1b188b,_0xb6ad9['model']),!_0x1b188b||_0x1b188b['isCollapsed']||!_0x44c888[_0x293a('0x16')]||_0x1b188b[_0x293a('0x19')](_0x44c888[_0x293a('0x16')]))?_0xb6ad9['model'][_0x293a('0x5d')](_0x1b188b)&&!_0x2ee9b3?this[_0x293a('0x5a')]?_0x3c3a23[_0x293a('0x1d')](_0x5e7127):this[_0x293a('0x6e')](_0x5e7127,_0x3a3132):(_0x6b83ed[_0x293a('0x1d')](_0x5e7127),_0x3c3a23[_0x293a('0x4d')](_0x5e7127),_0x2c6aab[_0x293a('0x3c')](_0x5e7127),_0x293994=!0x0):(_0x2c6aab[_0x293a('0x39')](_0x5e7127,{'range':_0x1b188b}),_0x293994=!0x0);}return _0x293994;}),this['on'](_0x293a('0x7a'),(_0x1d4bdd,_0x26fb68,_0x1b3eba)=>{if(!_0x1b3eba&&_0x3c3a23[_0x293a('0x4c')])for(const _0xf4df4e of _0x3c3a23){const {id:_0x145237}=ot(_0xf4df4e);_0x3c3a23['delete'](_0xf4df4e),_0xb6ad9['model']['markers'][_0x293a('0x6')](_0xf4df4e)&&this[_0x293a('0x6e')](_0xf4df4e,_0x145237);}}),this[_0x293a('0x43')](_0xb6ad9['model'][_0x293a('0x54')],_0x293a('0x65'),(_0x558d29,_0x3f7fb7)=>{for(const {name:_0x8e6e8a,data:{newRange:_0x24aabe}}of _0xb6ad9[_0x293a('0x3f')]['document']['differ'][_0x293a('0x25')]()){const {group:_0x339eb2,id:_0x3cfa87}=ot(_0x8e6e8a);if(_0x293a('0x35')!==_0x339eb2)continue;const _0x24c513=_0x599ce7['getCommentThread'](_0x3cfa87),_0x3bc274=this[_0x293a('0x8')](_0x3cfa87);_0x24c513&&(_0x24c513['_hasTargetInContent']||_0xb6ad9[_0x293a('0x29')][_0x293a('0x41')][_0x293a('0x1f')](_0x293a('0x48'),()=>{const _0x10cb9c=_0xb6ad9[_0x293a('0x1')]['get'](_0x386832),_0x8bf865=_0x599ce7[_0x293a('0x20')][_0x293a('0x6')](_0x24c513)[_0x293a('0x41')];_0x10cb9c[_0x293a('0x1c')](_0x8bf865)[_0x293a('0x2')]();},{'priority':_0x293a('0x3a')}),_0x24c513[_0x293a('0x64')]=_0x3bc274||!!_0x24aabe),_0x24aabe||(_0x6b83ed[_0x293a('0x1d')](_0x8e6e8a),_0x3c3a23[_0x293a('0x4d')](_0x8e6e8a));}if(_0x3f7fb7['isLocal'])for(const _0x3fb03c of _0x6b83ed){const {id:_0x1eb6ca}=ot(_0x3fb03c),_0x2df79f=_0x599ce7[_0x293a('0x68')](_0x1eb6ca),_0x321663=this['hasMarkerForId'](_0x1eb6ca);_0x3c3a23[_0x293a('0x4d')](_0x3fb03c),!_0x2df79f||_0x321663||_0x2df79f['unlinkedAt']||_0x2df79f[_0x293a('0x1b')](new Date());}_0x6b83ed[_0x293a('0x7b')]();});}[_0x293a('0x30')](_0xbf49a0){const _0x258de3=this['editor'],_0x50e63a=this[_0x293a('0x44')](_0xbf49a0);return _0x5cac62(_0x258de3[_0x293a('0x29')],_0x50e63a);}[_0x293a('0x2d')](_0x20df17){const _0xa929a8=this[_0x293a('0x44')](_0x20df17);let _0x733ac1='',_0x27ea51=!0x1;for(const _0x5654e3 of _0xa929a8){const _0x5d6ea0=_0x5654e3[_0x293a('0x45')]();for(const _0x248745 of Array[_0x293a('0x75')](_0x5d6ea0[_0x293a('0x61')]()))_0x248745['is'](_0x293a('0x69'))?(_0x733ac1&&_0x27ea51&&(_0x733ac1+='\x20',_0x27ea51=!0x1),_0x733ac1+=_0x248745[_0x293a('0x7e')]):_0x27ea51=!0x0;_0x27ea51=!0x0;}return _0x733ac1[_0x293a('0x2b')](0x0,0x96);}[_0x293a('0x11')](_0x5e08e3,_0x191cf3){const _0x40fd81=this['editor'],_0x284b3e=_0x40fd81['plugins'][_0x293a('0x6')](_0x4e8100);let _0xa335a2=_0x284b3e[_0x293a('0x68')](_0x191cf3);const _0x584c0e=_0x40fd81[_0x293a('0x31')][_0x293a('0x6')]('collaboration.channelId'),_0x48f408=_0x40fd81['plugins'][_0x293a('0x6')](_0x3d5054);if(_0xa335a2&&(_0xa335a2[_0x293a('0x34')]&&_0xa335a2[_0x293a('0x1b')](null),_0xa335a2[_0x293a('0x5c')]))return _0xa335a2;return!this[_0x293a('0x44')](_0x191cf3)[0x0][_0x293a('0x6a')]?_0x40fd81[_0x293a('0x29')][_0x293a('0x41')]['once']('render',()=>{if(_0x284b3e['getCommentThread'](_0x191cf3))return;const _0x373bb3=_0x40fd81[_0x293a('0x1')]['get'](_0x386832);_0xa335a2=_0x284b3e[_0x293a('0xe')]({'channelId':_0x584c0e,'threadId':_0x191cf3,'target':()=>this['_getTargetForId'](_0x191cf3),'context':{'type':_0x293a('0x5'),'value':this['_getTextContext'](_0x191cf3)}});const _0x4c29d3=_0x284b3e[_0x293a('0x20')][_0x293a('0x6')](_0xa335a2)[_0x293a('0x41')],_0x4d8e4e=_0x373bb3[_0x293a('0x1c')](_0x4c29d3);_0x4d8e4e&&_0x48f408['registerAnnotation'](_0x4d8e4e);},{'priority':_0x293a('0x3a')}):_0x284b3e[_0x293a('0x3b')]({'channelId':_0x584c0e,'threadId':_0x191cf3})['then'](_0x56f5c8=>{if(_0x293a('0x58')!==_0x40fd81[_0x293a('0x10')]){if(_0xa335a2=_0x56f5c8,_0xa335a2&&!_0xa335a2[_0x293a('0x5c')]){const _0x5c0251=_0xa335a2[_0x293a('0x26')](()=>this[_0x293a('0x30')](_0x191cf3));_0x48f408[_0x293a('0x78')](_0x5c0251),_0xa335a2[_0x293a('0x76')]&&this[_0x293a('0x5f')](_0x191cf3);}else{if(!_0xa335a2){const _0x54033f=this[_0x293a('0x44')](_0x191cf3);_0x40fd81[_0x293a('0x3f')][_0x293a('0x65')](_0x3c3ba2=>{for(const _0x30587a of _0x54033f)_0x3c3ba2[_0x293a('0x3c')](_0x30587a);});}}}}),_0xa335a2;}[_0x293a('0x6e')](_0x2015cd,_0x2de62d){const _0x2ef472=this['_attachMarkerToThread'](_0x2015cd,_0x2de62d);_0x2ef472&&!_0x2ef472[_0x293a('0x4e')]&&_0x2ef472[_0x293a('0x5e')]({'type':_0x293a('0x5'),'value':this[_0x293a('0x2d')](_0x2de62d)});}[_0x293a('0x37')](){const _0x5267eb=this[_0x293a('0x28')];_0x5c0888(_0x5267eb[_0x293a('0x3f')],({left:_0x4ad44c,entered:_0x444323})=>{const _0x8bbffa=[];for(const _0x4d98dd of _0x4ad44c)if(rt(_0x4d98dd)){_0x8bbffa[_0x293a('0x60')](_0xc2c882(_0x5267eb[_0x293a('0x66')],_0x293a('0x4f')));break;}for(const _0x2d61f2 of _0x444323)if(rt(_0x2d61f2)){_0x8bbffa[_0x293a('0x60')](_0xc2c882(_0x5267eb[_0x293a('0x66')],_0x293a('0x22')));break;}_0x8bbffa[_0x293a('0x13')]&&_0x5267eb['ui']['ariaLiveAnnouncer']['announce']('comments',_0x8bbffa[_0x293a('0x42')]('\x20'));});}}function tt(_0x5571dc,_0x3d5008){return _0x3d5008?_0x5571dc+':'+_0x3d5008:_0x5571dc;}function ot(_0x27318d){const _0x530b93=_0x27318d[_0x293a('0x3')](':');return{'group':_0x530b93[0x0],'id':_0x530b93[0x1],'part':_0x530b93[0x2]};}function et(_0x3db0f3,_0x212683){const _0x4204d7=_0x212683[_0x293a('0x2a')],_0x38f98a=_0x212683[_0x293a('0x2c')](_0x3db0f3['start']);for(const _0x5794f9 of _0x3db0f3[_0x293a('0x3e')]()){const {type:_0x21e97b,item:_0x5de749,nextPosition:_0x2b3088}=_0x5794f9;if(_0x293a('0x5')===_0x21e97b||_0x4204d7['isObject'](_0x5de749)){const _0x5db7a2=_0x212683[_0x293a('0x7')](_0x5de749);_0x38f98a['isCollapsed']&&(_0x38f98a[_0x293a('0x4a')]=_0x5db7a2),_0x38f98a[_0x293a('0x21')]=_0x2b3088;}}return _0x38f98a;}function rt(_0x100615){return _0x293a('0x35')===ot(_0x100615['name'])[_0x293a('0x77')];}
|