@ckeditor/ckeditor5-comments 0.0.0-nightly-20240128.0 → 0.0.0-nightly-20240130.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.
Files changed (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x396c=['height','ck-sidebar-item--no-animation','updateHeight','top','render','bindTemplate','content','_mutationObserver','set','ck-sidebar-item','isAnimationDisabled','element','clear','createCollection','attach','destroy','clientHeight','setTemplate','bottom','div'];(function(_0x4ab21e,_0x396c8d){const _0x5aa284=function(_0x3d38b3){while(--_0x3d38b3){_0x4ab21e['push'](_0x4ab21e['shift']());}};_0x5aa284(++_0x396c8d);}(_0x396c,0x19e));const _0x5aa2=function(_0x4ab21e,_0x396c8d){_0x4ab21e=_0x4ab21e-0x0;let _0x5aa284=_0x396c[_0x4ab21e];return _0x5aa284;};import{View as _0x48b199}from'ckeditor5/src/ui.js';import{toUnit as _0x8efbec}from'ckeditor5/src/utils.js';import _0x5c59c9 from'../../utils/createmutationobserver.js';const Ht=_0x8efbec('px');export default class C extends _0x48b199{constructor(_0x1074d8){super(_0x1074d8),this[_0x5aa2('0xe')](_0x5aa2('0x9'),0x0),this[_0x5aa2('0xe')](_0x5aa2('0x6'),0x0),this['bind'](_0x5aa2('0x4'))['to'](this,_0x5aa2('0x9'),this,_0x5aa2('0x6'),(_0x5efabe,_0xccd4ad)=>_0x5efabe+_0xccd4ad),this[_0x5aa2('0xe')](_0x5aa2('0x10'),!0x1),this[_0x5aa2('0xd')]=_0x5c59c9(()=>this[_0x5aa2('0x8')]()),this['_targetTop']=null,this['content']=this[_0x5aa2('0x13')]();const _0x2cbf33=this[_0x5aa2('0xb')];this[_0x5aa2('0x3')]({'tag':_0x5aa2('0x5'),'attributes':{'class':[_0x5aa2('0xf'),_0x2cbf33['to'](_0x5aa2('0x10'),_0x59d18c=>_0x59d18c?_0x5aa2('0x7'):'')],'style':{'top':_0x2cbf33['to']('top',_0x5e0637=>Ht(_0x5e0637))}},'children':this[_0x5aa2('0xc')]});}[_0x5aa2('0xa')](){super[_0x5aa2('0xa')](),this[_0x5aa2('0xd')][_0x5aa2('0x0')](this[_0x5aa2('0x11')]);}[_0x5aa2('0x8')](){const _0x56c958=this[_0x5aa2('0x11')][_0x5aa2('0x2')];_0x56c958&&(this['height']=_0x56c958);}['destroy'](){this[_0x5aa2('0xc')][_0x5aa2('0x12')](),this[_0x5aa2('0xd')]['detach'](),super[_0x5aa2('0x1')]();}}
23
+ const _0x20ed=['_mutationObserver','height','updateHeight','top','setTemplate','attach','content','clear','detach','_targetTop','bind','set','isAnimationDisabled','createCollection','bindTemplate','bottom','element','div'];(function(_0xb74d8b,_0x20ed8d){const _0x57ecfb=function(_0x392d51){while(--_0x392d51){_0xb74d8b['push'](_0xb74d8b['shift']());}};_0x57ecfb(++_0x20ed8d);}(_0x20ed,0x94));const _0x57ec=function(_0xb74d8b,_0x20ed8d){_0xb74d8b=_0xb74d8b-0x0;let _0x57ecfb=_0x20ed[_0xb74d8b];return _0x57ecfb;};import{View as _0x5c2a7a}from'ckeditor5/src/ui.js';import{toUnit as _0x3155f7}from'ckeditor5/src/utils.js';import _0x580e3a from'../../utils/createmutationobserver.js';const Ht=_0x3155f7('px');export default class C extends _0x5c2a7a{constructor(_0x37af57){super(_0x37af57),this[_0x57ec('0x7')](_0x57ec('0x11'),0x0),this[_0x57ec('0x7')](_0x57ec('0xf'),0x0),this[_0x57ec('0x6')](_0x57ec('0xb'))['to'](this,'top',this,_0x57ec('0xf'),(_0x2fc785,_0x190997)=>_0x2fc785+_0x190997),this[_0x57ec('0x7')]('isAnimationDisabled',!0x1),this[_0x57ec('0xe')]=_0x580e3a(()=>this[_0x57ec('0x10')]()),this[_0x57ec('0x5')]=null,this['content']=this[_0x57ec('0x9')]();const _0x47c5be=this[_0x57ec('0xa')];this[_0x57ec('0x0')]({'tag':_0x57ec('0xd'),'attributes':{'class':['ck-sidebar-item',_0x47c5be['to'](_0x57ec('0x8'),_0x156e0d=>_0x156e0d?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x47c5be['to'](_0x57ec('0x11'),_0x1126c2=>Ht(_0x1126c2))}},'children':this['content']});}['render'](){super['render'](),this[_0x57ec('0xe')][_0x57ec('0x1')](this[_0x57ec('0xc')]);}[_0x57ec('0x10')](){const _0x356c3e=this[_0x57ec('0xc')]['clientHeight'];_0x356c3e&&(this[_0x57ec('0xf')]=_0x356c3e);}['destroy'](){this[_0x57ec('0x2')][_0x57ec('0x3')](),this[_0x57ec('0xe')][_0x57ec('0x4')](),super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36e3=['ck-reset','setTemplate','list','createCollection','set','class','minHeight','number','ck-sidebar'];(function(_0x4573ce,_0x36e311){const _0x2f965c=function(_0x453090){while(--_0x453090){_0x4573ce['push'](_0x4573ce['shift']());}};_0x2f965c(++_0x36e311);}(_0x36e3,0x188));const _0x2f96=function(_0x4573ce,_0x36e311){_0x4573ce=_0x4573ce-0x0;let _0x2f965c=_0x36e3[_0x4573ce];return _0x2f965c;};import{View as _0x4e6ad3}from'ckeditor5/src/ui.js';import{toUnit as _0x45a073}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x45a073('px');export default class T extends _0x4e6ad3{constructor(_0x2763a7){super(_0x2763a7);const _0x2bf3e3=this['bindTemplate'];this[_0x2f96('0x8')](_0x2f96('0x1'),0x0),this['set'](_0x2f96('0x0'),''),this[_0x2f96('0x6')]=this[_0x2f96('0x7')](),this[_0x2f96('0x5')]({'tag':'div','attributes':{'class':['ck',_0x2f96('0x3'),_0x2f96('0x4'),_0x2bf3e3['to'](_0x2f96('0x0'))],'style':{'minHeight':_0x2bf3e3['to']('minHeight',_0x538d2b=>_0x2f96('0x2')==typeof _0x538d2b?Ht(_0x538d2b+0xa):null)}},'children':this[_0x2f96('0x6')]});}}
23
+ const _0x2475=['div','setTemplate','ck-sidebar','ck-reset','list','bindTemplate','minHeight','class','set'];(function(_0xdd0fd6,_0x24750b){const _0x1933ec=function(_0x302d11){while(--_0x302d11){_0xdd0fd6['push'](_0xdd0fd6['shift']());}};_0x1933ec(++_0x24750b);}(_0x2475,0x9e));const _0x1933=function(_0xdd0fd6,_0x24750b){_0xdd0fd6=_0xdd0fd6-0x0;let _0x1933ec=_0x2475[_0xdd0fd6];return _0x1933ec;};import{View as _0x4d3508}from'ckeditor5/src/ui.js';import{toUnit as _0x207bb9}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x207bb9('px');export default class T extends _0x4d3508{constructor(_0x35660f){super(_0x35660f);const _0x30e4b3=this[_0x1933('0x0')];this[_0x1933('0x3')](_0x1933('0x1'),0x0),this[_0x1933('0x3')](_0x1933('0x2'),''),this[_0x1933('0x8')]=this['createCollection'](),this[_0x1933('0x5')]({'tag':_0x1933('0x4'),'attributes':{'class':['ck',_0x1933('0x6'),_0x1933('0x7'),_0x30e4b3['to']('class')],'style':{'minHeight':_0x30e4b3['to'](_0x1933('0x1'),_0x212c4=>'number'==typeof _0x212c4?Ht(_0x212c4+0xa):null)}},'children':this[_0x1933('0x8')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a0b=['has','EditorAnnotations','change:container','widesidebar-attach-already-attached','ck-sidebar--wide','init','WideSidebar','from','attach','listenTo','_destroyEditorAnnotationsIntegration','focus','add','get','annotations','_refreshPositioningDebounced','pluginName','ready','_activeAnnotation','off','getOrderedSelectedAnnotations','widesidebar-detach-not-attached','register','isAttached','remove','setActiveAnnotation','high','plugins','editors','_editorAnnotations','context','refresh','addAnnotation','addEventListener','cancel','removeEventListener','activeAnnotation','hasDomSelection','stopListening','blur','refreshPositioning','detach','updateTargetRect','rearrange','wideSidebar','_integrateWithEditorAnnotations','_attachToContainer','resize','switchTo'];(function(_0x258cbf,_0x1a0b3e){const _0x34ed8b=function(_0xb337e7){while(--_0xb337e7){_0x258cbf['push'](_0x258cbf['shift']());}};_0x34ed8b(++_0x1a0b3e);}(_0x1a0b,0x101));const _0x34ed=function(_0x258cbf,_0x1a0b3e){_0x258cbf=_0x258cbf-0x0;let _0x34ed8b=_0x1a0b[_0x258cbf];return _0x34ed8b;};import{ContextPlugin as _0x3d3ad6,Context as _0x700fef}from'ckeditor5/src/core.js';import _0x29cb92 from'./annotationsuis.js';import _0x9890c7 from'./sidebar.js';import{CKEditorError as _0x32ae72,Collection as _0x1cc488}from'ckeditor5/src/utils.js';import{debounce as _0x3d3168}from'lodash-es';import _0x37ebb0 from'./editorannotations.js';export default class n extends _0x3d3ad6{static get['requires'](){return[_0x9890c7,_0x29cb92];}static get[_0x34ed('0x4')](){return _0x34ed('0x2b');}constructor(_0x333c9c){super(_0x333c9c),this[_0x34ed('0xb')]=!0x1,this['set'](_0x34ed('0x18'),null),this[_0x34ed('0x2')]=null,this[_0x34ed('0x11')]=new _0x1cc488(),this['_refreshPositioningDebounced']=_0x3d3168(()=>{this[_0x34ed('0x2')][_0x34ed('0x1c')]();},0xfa,{'leading':!0x1});}[_0x34ed('0x2a')](){const _0xa289e9=this[_0x34ed('0x12')][_0x34ed('0xf')][_0x34ed('0x1')](_0x29cb92),_0x101533=this[_0x34ed('0x12')][_0x34ed('0xf')][_0x34ed('0x1')](_0x9890c7);_0xa289e9[_0x34ed('0xa')](_0x34ed('0x20'),this),_0x101533['container']&&_0xa289e9[_0x34ed('0x24')](_0x34ed('0x20'));}[_0x34ed('0xd')](_0x4155f4){if(_0x4155f4===this[_0x34ed('0x18')])return;const _0x38c563=this[_0x34ed('0x12')]['plugins']['get'](_0x9890c7);_0x38c563[_0x34ed('0x6')]=_0x4155f4;const _0x50c19f=this[_0x34ed('0x18')];this[_0x34ed('0x18')]=_0x4155f4,_0x38c563[_0x34ed('0x13')]({'blurredAnnotation':_0x50c19f,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0xdd6587){this[_0x34ed('0x2')]=_0xdd6587;const _0x38041e=this['context'][_0x34ed('0xf')][_0x34ed('0x1')](_0x9890c7);if(_0x38041e['_annotations']=_0xdd6587,this[_0x34ed('0xb')])throw new _0x32ae72(_0x34ed('0x28'),this);this[_0x34ed('0xb')]=!0x0,this[_0x34ed('0x2e')](_0x38041e,'set:container',()=>{this[_0x34ed('0x1d')](),this[_0x34ed('0x2e')](_0x38041e,_0x34ed('0x27'),_0x147582=>{_0x147582[_0x34ed('0x7')](),this[_0x34ed('0x2d')](_0xdd6587);});}),_0x38041e[_0x34ed('0x22')]({'viewClass':_0x34ed('0x29')});const _0x40dc28=_0x1ceda6=>{_0x1ceda6[_0x34ed('0x1e')](),_0x38041e[_0x34ed('0x14')](_0x1ceda6);};for(const _0x4595dc of _0xdd6587)_0x40dc28(_0x4595dc);this[_0x34ed('0x2e')](_0xdd6587,_0x34ed('0x0'),(_0x3d0cee,_0x316550)=>{_0x40dc28(_0x316550);}),this[_0x34ed('0x2e')](_0xdd6587,_0x34ed('0xc'),(_0x451453,_0x3ec70a,_0x2f86e5)=>{_0x38041e[_0x34ed('0x1f')]({'removedAnnotation':_0x3ec70a,'previousAnnotation':_0xdd6587[_0x34ed('0x1')](_0x2f86e5-0x1),'nextAnnotation':_0xdd6587['get'](_0x2f86e5+0x1)}),_0x3ec70a===this[_0x34ed('0x18')]&&this[_0x34ed('0xd')](null);},{'priority':_0x34ed('0xe')}),this['listenTo'](_0xdd6587,_0x34ed('0x30'),(_0x52178a,_0x5b4ae3)=>{this[_0x34ed('0xd')](_0x5b4ae3);}),this[_0x34ed('0x2e')](_0xdd6587,_0x34ed('0x1b'),()=>{this['setActiveAnnotation'](null);});const _0x40c904=this['context']instanceof _0x700fef?this[_0x34ed('0x12')][_0x34ed('0x10')]:new _0x1cc488([this['context']]);for(const _0x30606d of _0x40c904)this[_0x34ed('0x21')](_0x30606d);this[_0x34ed('0x2e')](_0x40c904,_0x34ed('0x0'),(_0x515a20,_0x154cbb)=>{this[_0x34ed('0x2e')](_0x154cbb,_0x34ed('0x5'),()=>{this[_0x34ed('0x21')](_0x154cbb);});}),this[_0x34ed('0x2e')](_0x40c904,'remove',(_0x5477df,_0x445444)=>{_0x445444[_0x34ed('0xf')][_0x34ed('0x25')](_0x34ed('0x26'))&&this[_0x34ed('0x2f')](_0x445444[_0x34ed('0xf')][_0x34ed('0x1')]('EditorAnnotations'));}),window[_0x34ed('0x15')]('resize',this[_0x34ed('0x3')]),this[_0x34ed('0x2')][_0x34ed('0x1c')]();}[_0x34ed('0x1d')](){if(!this[_0x34ed('0xb')])throw new _0x32ae72(_0x34ed('0x9'),this);this[_0x34ed('0xd')](null);const _0x131022=this[_0x34ed('0x12')][_0x34ed('0xf')]['get'](_0x9890c7);_0x131022['_detachFromContainer'](this[_0x34ed('0x2')]),this[_0x34ed('0x1a')](_0x131022),this[_0x34ed('0x1a')](this[_0x34ed('0x2')]),this[_0x34ed('0x12')]instanceof _0x700fef&&this[_0x34ed('0x1a')](this[_0x34ed('0x12')][_0x34ed('0x10')]);for(const _0x2c2890 of Array[_0x34ed('0x2c')](this[_0x34ed('0x11')]))this['_destroyEditorAnnotationsIntegration'](_0x2c2890);window[_0x34ed('0x17')](_0x34ed('0x23'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x34ed('0x16')](),this[_0x34ed('0x18')]=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this[_0x34ed('0x1d')]();}['_integrateWithEditorAnnotations'](_0x48a5ce){const _0x425561=_0x48a5ce['plugins'][_0x34ed('0x1')](_0x37ebb0);if(!_0x425561)return;const _0x476275=()=>{const _0x3be520=_0x425561[_0x34ed('0x8')]({'annotations':this['annotations'],'activeAnnotation':this[_0x34ed('0x18')]});this[_0x34ed('0xd')](_0x3be520[0x0]||null);};this['listenTo'](_0x425561,_0x34ed('0x13'),_0x476275),this['listenTo'](_0x425561,_0x34ed('0x1b'),(_0x42465e,{isAnnotationTracked:_0x49df71})=>{this[_0x34ed('0x18')]&&_0x49df71(this[_0x34ed('0x18')])&&this[_0x34ed('0xd')](null);}),this[_0x34ed('0x2e')](_0x425561,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x34ed('0x2e')](this['annotations'],'blur',_0x3dfe9b=>{_0x425561[_0x34ed('0x19')]()&&(_0x476275(),_0x3dfe9b['stop']());},{'priority':_0x34ed('0xe')}),this[_0x34ed('0x11')]['add'](_0x425561);}[_0x34ed('0x2f')](_0x200796){this[_0x34ed('0x1a')](_0x200796),this[_0x34ed('0x11')][_0x34ed('0xc')](_0x200796);}}
23
+ const _0x4bfd=['refresh','WideSidebar','_refreshPositioningDebounced','wideSidebar','init','stopListening','annotations','setActiveAnnotation','isAttached','_activeAnnotation','_annotations','_integrateWithEditorAnnotations','requires','high','set','detach','container','attach','refreshPositioning','add','off','remove','resize','activeAnnotation','_detachFromContainer','addEventListener','destroy','_attachToContainer','EditorAnnotations','uiUpdate','blur','get','switchTo','stop','getOrderedSelectedAnnotations','listenTo','removeEventListener','_destroyEditorAnnotationsIntegration','widesidebar-detach-not-attached','_editorAnnotations','editors','context','plugins','focus'];(function(_0x55957b,_0x4bfd86){const _0xe6633a=function(_0xdf334){while(--_0xdf334){_0x55957b['push'](_0x55957b['shift']());}};_0xe6633a(++_0x4bfd86);}(_0x4bfd,0x1cb));const _0xe663=function(_0x55957b,_0x4bfd86){_0x55957b=_0x55957b-0x0;let _0xe6633a=_0x4bfd[_0x55957b];return _0xe6633a;};import{ContextPlugin as _0x3cbfd9,Context as _0x114e1e}from'ckeditor5/src/core.js';import _0x5373c5 from'./annotationsuis.js';import _0x395262 from'./sidebar.js';import{CKEditorError as _0x5f2374,Collection as _0x5ea1b2}from'ckeditor5/src/utils.js';import{debounce as _0x3ac821}from'lodash-es';import _0x20a4bf from'./editorannotations.js';export default class n extends _0x3cbfd9{static get[_0xe663('0x25')](){return[_0x395262,_0x5373c5];}static get['pluginName'](){return _0xe663('0x1a');}constructor(_0x152af0){super(_0x152af0),this[_0xe663('0x21')]=!0x1,this[_0xe663('0x27')](_0xe663('0x4'),null),this['annotations']=null,this[_0xe663('0x14')]=new _0x5ea1b2(),this[_0xe663('0x1b')]=_0x3ac821(()=>{this[_0xe663('0x1f')]['refreshPositioning']();},0xfa,{'leading':!0x1});}[_0xe663('0x1d')](){const _0x34d95a=this['context'][_0xe663('0x17')][_0xe663('0xc')](_0x5373c5),_0x4e606d=this[_0xe663('0x16')][_0xe663('0x17')][_0xe663('0xc')](_0x395262);_0x34d95a['register']('wideSidebar',this),_0x4e606d[_0xe663('0x29')]&&_0x34d95a[_0xe663('0xd')](_0xe663('0x1c'));}[_0xe663('0x20')](_0x4bc8aa){if(_0x4bc8aa===this[_0xe663('0x4')])return;const _0x26da4d=this[_0xe663('0x16')][_0xe663('0x17')][_0xe663('0xc')](_0x395262);_0x26da4d[_0xe663('0x22')]=_0x4bc8aa;const _0x274215=this[_0xe663('0x4')];this[_0xe663('0x4')]=_0x4bc8aa,_0x26da4d[_0xe663('0x19')]({'blurredAnnotation':_0x274215,'activatedAnnotation':this[_0xe663('0x4')]});}[_0xe663('0x2a')](_0x532a76){this[_0xe663('0x1f')]=_0x532a76;const _0x2b60e0=this[_0xe663('0x16')]['plugins'][_0xe663('0xc')](_0x395262);if(_0x2b60e0[_0xe663('0x23')]=_0x532a76,this[_0xe663('0x21')])throw new _0x5f2374('widesidebar-attach-already-attached',this);this[_0xe663('0x21')]=!0x0,this[_0xe663('0x10')](_0x2b60e0,'set:container',()=>{this[_0xe663('0x28')](),this[_0xe663('0x10')](_0x2b60e0,'change:container',_0x3ea88d=>{_0x3ea88d[_0xe663('0x1')](),this[_0xe663('0x2a')](_0x532a76);});}),_0x2b60e0[_0xe663('0x8')]({'viewClass':'ck-sidebar--wide'});const _0x5304d5=_0x49cb23=>{_0x49cb23['updateTargetRect'](),_0x2b60e0['addAnnotation'](_0x49cb23);};for(const _0xc0c114 of _0x532a76)_0x5304d5(_0xc0c114);this[_0xe663('0x10')](_0x532a76,_0xe663('0x0'),(_0x41a164,_0x1bcfc1)=>{_0x5304d5(_0x1bcfc1);}),this[_0xe663('0x10')](_0x532a76,_0xe663('0x2'),(_0x3c1e36,_0x35d428,_0x332094)=>{_0x2b60e0['rearrange']({'removedAnnotation':_0x35d428,'previousAnnotation':_0x532a76[_0xe663('0xc')](_0x332094-0x1),'nextAnnotation':_0x532a76[_0xe663('0xc')](_0x332094+0x1)}),_0x35d428===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':_0xe663('0x26')}),this['listenTo'](_0x532a76,_0xe663('0x18'),(_0xc6cc37,_0x12e1a1)=>{this[_0xe663('0x20')](_0x12e1a1);}),this[_0xe663('0x10')](_0x532a76,_0xe663('0xb'),()=>{this[_0xe663('0x20')](null);});const _0xc8b47f=this[_0xe663('0x16')]instanceof _0x114e1e?this[_0xe663('0x16')][_0xe663('0x15')]:new _0x5ea1b2([this[_0xe663('0x16')]]);for(const _0x1e05d4 of _0xc8b47f)this[_0xe663('0x24')](_0x1e05d4);this[_0xe663('0x10')](_0xc8b47f,'add',(_0x415e78,_0x33d38f)=>{this[_0xe663('0x10')](_0x33d38f,'ready',()=>{this[_0xe663('0x24')](_0x33d38f);});}),this[_0xe663('0x10')](_0xc8b47f,_0xe663('0x2'),(_0xa589c6,_0x57e3dc)=>{_0x57e3dc[_0xe663('0x17')]['has'](_0xe663('0x9'))&&this[_0xe663('0x12')](_0x57e3dc[_0xe663('0x17')][_0xe663('0xc')](_0xe663('0x9')));}),window[_0xe663('0x6')]('resize',this['_refreshPositioningDebounced']),this[_0xe663('0x1f')][_0xe663('0x2b')]();}['detach'](){if(!this['isAttached'])throw new _0x5f2374(_0xe663('0x13'),this);this[_0xe663('0x20')](null);const _0x14c87f=this[_0xe663('0x16')][_0xe663('0x17')]['get'](_0x395262);_0x14c87f[_0xe663('0x5')](this[_0xe663('0x1f')]),this['stopListening'](_0x14c87f),this['stopListening'](this[_0xe663('0x1f')]),this[_0xe663('0x16')]instanceof _0x114e1e&&this['stopListening'](this['context'][_0xe663('0x15')]);for(const _0x534293 of Array['from'](this[_0xe663('0x14')]))this[_0xe663('0x12')](_0x534293);window[_0xe663('0x11')](_0xe663('0x3'),this[_0xe663('0x1b')]),this[_0xe663('0x1b')]['cancel'](),this[_0xe663('0x4')]=null,this[_0xe663('0x21')]=!0x1,this[_0xe663('0x1f')]=null;}[_0xe663('0x7')](){this['isAttached']&&this['detach']();}[_0xe663('0x24')](_0x441910){const _0x37a3e4=_0x441910[_0xe663('0x17')][_0xe663('0xc')](_0x20a4bf);if(!_0x37a3e4)return;const _0x24d073=()=>{const _0x552d54=_0x37a3e4[_0xe663('0xf')]({'annotations':this[_0xe663('0x1f')],'activeAnnotation':this[_0xe663('0x4')]});this['setActiveAnnotation'](_0x552d54[0x0]||null);};this[_0xe663('0x10')](_0x37a3e4,_0xe663('0x19'),_0x24d073),this['listenTo'](_0x37a3e4,'blur',(_0x5cda8f,{isAnnotationTracked:_0x269ef0})=>{this['activeAnnotation']&&_0x269ef0(this[_0xe663('0x4')])&&this[_0xe663('0x20')](null);}),this[_0xe663('0x10')](_0x37a3e4,_0xe663('0xa'),()=>{this[_0xe663('0x1b')]();}),this['listenTo'](this[_0xe663('0x1f')],_0xe663('0xb'),_0x418154=>{_0x37a3e4['hasDomSelection']()&&(_0x24d073(),_0x418154[_0xe663('0xe')]());},{'priority':_0xe663('0x26')}),this[_0xe663('0x14')]['add'](_0x37a3e4);}[_0xe663('0x12')](_0x52a6f6){this[_0xe663('0x1e')](_0x52a6f6),this[_0xe663('0x14')][_0xe663('0x2')](_0x52a6f6);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a12=['isObject','getRanges','$textProxy','push','comment:','_trimToContent','substr','selection','editor','element','item','_itemIsContent','document','isEnabled','model','refresh','_hasContent','schema','backward','tableCell','getLastMatchingPosition','change','addMarker','start'];(function(_0x1a5f17,_0x3a1269){const _0x2391ac=function(_0x5e1186){while(--_0x5e1186){_0x1a5f17['push'](_0x1a5f17['shift']());}};_0x2391ac(++_0x3a1269);}(_0x3a12,0xd2));const _0x2391=function(_0x1a5f17,_0x3a1269){_0x1a5f17=_0x1a5f17-0x0;let _0x2391ac=_0x3a12[_0x1a5f17];return _0x2391ac;};import{Command as _0x20f61c}from'ckeditor5/src/core.js';import{uid as _0x2a6116}from'ckeditor5/src/utils.js';export default class G extends _0x20f61c{[_0x2391('0x15')](){const _0x54388b=this[_0x2391('0xe')][_0x2391('0x14')][_0x2391('0x12')][_0x2391('0xd')];for(const _0x5c07ba of _0x54388b[_0x2391('0x7')]())if(this[_0x2391('0x16')](_0x5c07ba))return void(this[_0x2391('0x13')]=!0x0);this[_0x2391('0x13')]=!0x1;}['execute']({threadId:_0x16133d=_0x2a6116()}={}){const _0x4cf76d=this[_0x2391('0xe')][_0x2391('0x14')],_0xd0490f=[];for(const _0x3dd368 of _0x4cf76d[_0x2391('0x12')][_0x2391('0xd')][_0x2391('0x7')]())this[_0x2391('0x16')](_0x3dd368)&&_0xd0490f[_0x2391('0x9')](this['_trimToContent'](_0x3dd368));_0x4cf76d[_0x2391('0x3')](_0x32062a=>{for(const _0x446ba0 of _0xd0490f){const _0x3827c7=_0x2a6116()[_0x2391('0xc')](0x1,0x5),_0x29c3dd=_0x2391('0xa')+_0x16133d+':'+_0x3827c7;_0x32062a[_0x2391('0x4')](_0x29c3dd,{'range':_0x446ba0,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x2391('0x16')](_0x2505c){for(const _0x34c4a0 of _0x2505c['getItems']())if(this[_0x2391('0x11')](_0x34c4a0))return!0x0;return!0x1;}[_0x2391('0x11')](_0x296221){return _0x296221['is'](_0x2391('0x8'))||this[_0x2391('0xe')][_0x2391('0x14')][_0x2391('0x17')][_0x2391('0x6')](_0x296221)&&!_0x296221['is'](_0x2391('0xf'),_0x2391('0x1'));}[_0x2391('0xb')](_0x4ddc9f){const _0x4c8da5=_0x499f88=>!this[_0x2391('0x11')](_0x499f88[_0x2391('0x10')]),_0x8f27da=_0x4ddc9f[_0x2391('0x5')][_0x2391('0x2')](_0x4c8da5),_0x9d38b=_0x4ddc9f['end'][_0x2391('0x2')](_0x4c8da5,{'direction':_0x2391('0x0')});return this[_0x2391('0xe')][_0x2391('0x14')]['createRange'](_0x8f27da,_0x9d38b);}}
23
+ const _0x20aa=['substr','editor','selection','getRanges','comment:','getLastMatchingPosition','document','backward','refresh','element','start','_trimToContent','schema','_itemIsContent','change','item','_hasContent','model'];(function(_0x4342ce,_0x20aa9c){const _0x4f4f9c=function(_0x499be3){while(--_0x499be3){_0x4342ce['push'](_0x4342ce['shift']());}};_0x4f4f9c(++_0x20aa9c);}(_0x20aa,0x75));const _0x4f4f=function(_0x4342ce,_0x20aa9c){_0x4342ce=_0x4342ce-0x0;let _0x4f4f9c=_0x20aa[_0x4342ce];return _0x4f4f9c;};import{Command as _0x2059b9}from'ckeditor5/src/core.js';import{uid as _0x532eba}from'ckeditor5/src/utils.js';export default class G extends _0x2059b9{[_0x4f4f('0x11')](){const _0x17305e=this[_0x4f4f('0xa')][_0x4f4f('0x8')][_0x4f4f('0xf')][_0x4f4f('0xb')];for(const _0x45acde of _0x17305e[_0x4f4f('0xc')]())if(this[_0x4f4f('0x7')](_0x45acde))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x192098=_0x532eba()}={}){const _0x798373=this[_0x4f4f('0xa')]['model'],_0xe6b399=[];for(const _0x2adbbe of _0x798373['document'][_0x4f4f('0xb')][_0x4f4f('0xc')]())this['_hasContent'](_0x2adbbe)&&_0xe6b399['push'](this[_0x4f4f('0x2')](_0x2adbbe));_0x798373[_0x4f4f('0x5')](_0x3632a8=>{for(const _0x10dcbf of _0xe6b399){const _0xd6581e=_0x532eba()[_0x4f4f('0x9')](0x1,0x5),_0x48b68f=_0x4f4f('0xd')+_0x192098+':'+_0xd6581e;_0x3632a8['addMarker'](_0x48b68f,{'range':_0x10dcbf,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x4f4f('0x7')](_0x41ea8d){for(const _0x4792fd of _0x41ea8d['getItems']())if(this[_0x4f4f('0x4')](_0x4792fd))return!0x0;return!0x1;}['_itemIsContent'](_0x5dfbb3){return _0x5dfbb3['is']('$textProxy')||this[_0x4f4f('0xa')][_0x4f4f('0x8')][_0x4f4f('0x3')]['isObject'](_0x5dfbb3)&&!_0x5dfbb3['is'](_0x4f4f('0x0'),'tableCell');}[_0x4f4f('0x2')](_0x3fb796){const _0x4ca34a=_0x14c976=>!this[_0x4f4f('0x4')](_0x14c976[_0x4f4f('0x6')]),_0x504452=_0x3fb796[_0x4f4f('0x1')][_0x4f4f('0xe')](_0x4ca34a),_0x2c3dc0=_0x3fb796['end'][_0x4f4f('0xe')](_0x4ca34a,{'direction':_0x4f4f('0x10')});return this[_0x4f4f('0xa')][_0x4f4f('0x8')]['createRange'](_0x504452,_0x2c3dc0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2601=['init','stopListening','collection','remove','archivedThreads','has','_calculatePosition','getCommentThread','listenTo','isActive','add','CommentsArchive','length','activate','highest','addCommentThread','plugins','archivedAt','get','change:archivedAt','removeCommentThread','findIndex'];(function(_0x13463c,_0x26014d){const _0x99039b=function(_0x1db047){while(--_0x1db047){_0x13463c['push'](_0x13463c['shift']());}};_0x99039b(++_0x26014d);}(_0x2601,0xb5));const _0x9903=function(_0x13463c,_0x26014d){_0x13463c=_0x13463c-0x0;let _0x99039b=_0x2601[_0x13463c];return _0x99039b;};import{ContextPlugin as _0xb10bcb}from'ckeditor5/src/core.js';import{Collection as _0x1fc0c2}from'ckeditor5/src/utils.js';import _0x4c4e64 from'./commentsrepository.js';import _0x31a404 from'../annotations/annotations.js';export default class p extends _0xb10bcb{static get['pluginName'](){return _0x9903('0x6');}static get['requires'](){return[_0x4c4e64,_0x31a404];}constructor(_0x20f27d){super(_0x20f27d),this[_0x9903('0x15')]=new _0x1fc0c2();}[_0x9903('0x11')](){const _0x1aec38=this['context'],_0x3a8928=_0x1aec38['plugins']['get'](_0x4c4e64),_0x447928=_0x1aec38[_0x9903('0xb')][_0x9903('0xd')](_0x31a404);this[_0x9903('0x3')](_0x3a8928,_0x9903('0xa'),(_0x456199,{threadId:_0x370347})=>{const _0x7a2dff=_0x3a8928[_0x9903('0x2')](_0x370347);_0x7a2dff[_0x9903('0xc')]&&this[_0x9903('0x15')][_0x9903('0x5')](_0x7a2dff,this[_0x9903('0x1')](_0x7a2dff[_0x9903('0xc')])),this['listenTo'](_0x7a2dff,_0x9903('0xe'),(_0x61314,_0x2e5dd4,_0x34728c)=>{_0x34728c?this[_0x9903('0x15')][_0x9903('0x0')](_0x7a2dff)||this[_0x9903('0x15')][_0x9903('0x5')](_0x7a2dff,this[_0x9903('0x1')](_0x7a2dff[_0x9903('0xc')])):this[_0x9903('0x15')][_0x9903('0x0')](_0x7a2dff)&&this[_0x9903('0x15')][_0x9903('0x14')](_0x7a2dff);});}),this[_0x9903('0x3')](_0x3a8928,_0x9903('0xf'),(_0x4527d5,{threadId:_0x547459})=>{const _0x2e776b=_0x3a8928['getCommentThread'](_0x547459);this[_0x9903('0x12')](_0x2e776b),this[_0x9903('0x15')]['has'](_0x2e776b)&&this['archivedThreads'][_0x9903('0x14')](_0x2e776b);},{'priority':_0x9903('0x9')}),this[_0x9903('0x3')](_0x447928[_0x9903('0x13')],'focus',(_0x31345c,_0x5c6dc2)=>{_0x5c6dc2[_0x9903('0x4')]=!0x0,_0x447928[_0x9903('0x8')](_0x5c6dc2);});}[_0x9903('0x1')](_0x3a3f7b){const _0xdc67a3=[...this[_0x9903('0x15')]][_0x9903('0x10')](_0xde2255=>_0xde2255[_0x9903('0xc')]<_0x3a3f7b);return _0xdc67a3>-0x1?_0xdc67a3:this['archivedThreads'][_0x9903('0x7')];}}
23
+ const _0x5abb=['_calculatePosition','archivedThreads','getCommentThread','highest','listenTo','isActive','get','CommentsArchive','remove','change:archivedAt','has','removeCommentThread','focus','pluginName','length','addCommentThread','add','archivedAt','requires','init'];(function(_0x3f8a60,_0x5abbed){const _0x4e5b65=function(_0xc2beb){while(--_0xc2beb){_0x3f8a60['push'](_0x3f8a60['shift']());}};_0x4e5b65(++_0x5abbed);}(_0x5abb,0x16f));const _0x4e5b=function(_0x3f8a60,_0x5abbed){_0x3f8a60=_0x3f8a60-0x0;let _0x4e5b65=_0x5abb[_0x3f8a60];return _0x4e5b65;};import{ContextPlugin as _0x2560a1}from'ckeditor5/src/core.js';import{Collection as _0x288593}from'ckeditor5/src/utils.js';import _0x123dbe from'./commentsrepository.js';import _0x265998 from'../annotations/annotations.js';export default class p extends _0x2560a1{static get[_0x4e5b('0x6')](){return _0x4e5b('0x0');}static get[_0x4e5b('0xb')](){return[_0x123dbe,_0x265998];}constructor(_0x27ca03){super(_0x27ca03),this[_0x4e5b('0xe')]=new _0x288593();}[_0x4e5b('0xc')](){const _0x7adab3=this['context'],_0x2d1349=_0x7adab3['plugins'][_0x4e5b('0x13')](_0x123dbe),_0x22d52b=_0x7adab3['plugins'][_0x4e5b('0x13')](_0x265998);this['listenTo'](_0x2d1349,_0x4e5b('0x8'),(_0x7e80ba,{threadId:_0x154c72})=>{const _0x417a24=_0x2d1349[_0x4e5b('0xf')](_0x154c72);_0x417a24[_0x4e5b('0xa')]&&this[_0x4e5b('0xe')][_0x4e5b('0x9')](_0x417a24,this[_0x4e5b('0xd')](_0x417a24[_0x4e5b('0xa')])),this[_0x4e5b('0x11')](_0x417a24,_0x4e5b('0x2'),(_0x167b8b,_0x358f30,_0x5ca012)=>{_0x5ca012?this[_0x4e5b('0xe')][_0x4e5b('0x3')](_0x417a24)||this[_0x4e5b('0xe')][_0x4e5b('0x9')](_0x417a24,this[_0x4e5b('0xd')](_0x417a24[_0x4e5b('0xa')])):this[_0x4e5b('0xe')][_0x4e5b('0x3')](_0x417a24)&&this[_0x4e5b('0xe')]['remove'](_0x417a24);});}),this[_0x4e5b('0x11')](_0x2d1349,_0x4e5b('0x4'),(_0x1d9055,{threadId:_0x5cc557})=>{const _0xdac079=_0x2d1349[_0x4e5b('0xf')](_0x5cc557);this['stopListening'](_0xdac079),this[_0x4e5b('0xe')][_0x4e5b('0x3')](_0xdac079)&&this[_0x4e5b('0xe')][_0x4e5b('0x1')](_0xdac079);},{'priority':_0x4e5b('0x10')}),this['listenTo'](_0x22d52b['collection'],_0x4e5b('0x5'),(_0x4ca8cf,_0x2ce0b7)=>{_0x2ce0b7[_0x4e5b('0x12')]=!0x0,_0x22d52b['activate'](_0x2ce0b7);});}[_0x4e5b('0xd')](_0x321a5b){const _0x45afd7=[...this[_0x4e5b('0xe')]]['findIndex'](_0x1a9c4d=>_0x1a9c4d['archivedAt']<_0x321a5b);return _0x45afd7>-0x1?_0x45afd7:this['archivedThreads'][_0x4e5b('0x7')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x156a=['config','_visibleAnnotations','archivedThreads','mainView','locale','ck-body','view','find','channelId','classList','stopListening','innerView','panelView','change:isOpen','archivedAt','contains','buttonView','listenTo','_pendingThreads','annotationViews','_handleAnnotationFocusableElements','editor','ck-comments-archive-dropdown','_threadToController','COMMENTS_ARCHIVE','splice','focusableElements','plugins','requires','indexOf','pluginName','remove','CommentsRepository','CommentsArchiveUI','_createArchiveUIDropdown','children','collaboration.channelId','init','getByInnerView','_calculatePosition','push','position','commentsArchiveView','extendTemplate','focusTracker','Annotations','collection','commentsArchive','get','set','add','filter'];(function(_0x2c33c5,_0x156af7){const _0x42db2e=function(_0x36b2cc){while(--_0x36b2cc){_0x2c33c5['push'](_0x2c33c5['shift']());}};_0x42db2e(++_0x156af7);}(_0x156a,0x11d));const _0x42db=function(_0x2c33c5,_0x156af7){_0x2c33c5=_0x2c33c5-0x0;let _0x42db2e=_0x156a[_0x2c33c5];return _0x42db2e;};import'../../theme/commentsarchive.css';import{Plugin as _0x308da3}from'ckeditor5/src/core.js';import{createDropdown as _0x4cb310,ViewCollection as _0x5af459}from'ckeditor5/src/ui.js';import _0x3b54a2 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x2f6835}from'../utils/common-translations.js';import _0x455c00 from'./ui/view/commentsarchiveview.js';import _0x4d6c62 from'./commentsarchive.js';export default class a extends _0x308da3{static get[_0x42db('0x5')](){return _0x42db('0x8');}static get[_0x42db('0x3')](){return[_0x4d6c62];}constructor(_0x216ab){super(_0x216ab),this[_0x42db('0x2e')]=new _0x5af459(),this['_pendingThreads']=[];}[_0x42db('0xc')](){this[_0x42db('0x30')]['ui']['componentFactory'][_0x42db('0x19')](_0x42db('0x16'),()=>this[_0x42db('0x9')]());const _0x337871=this[_0x42db('0x30')][_0x42db('0x2')][_0x42db('0x17')](_0x4d6c62),_0x39cfd6=this[_0x42db('0x30')][_0x42db('0x2')][_0x42db('0x17')](_0x42db('0x14')),_0x1e21dc=this[_0x42db('0x30')][_0x42db('0x2')]['get'](_0x42db('0x7'));this[_0x42db('0x2c')](_0x337871[_0x42db('0x1d')],_0x42db('0x19'),(_0xe5c1be,_0x59cbd1)=>{const _0x3f4517=this['editor'][_0x42db('0x1b')][_0x42db('0x17')](_0x42db('0xb'));if(!_0x3f4517||_0x59cbd1[_0x42db('0x23')]===_0x3f4517){const _0x212c68=this[_0x42db('0xe')](_0x59cbd1[_0x42db('0x29')]),_0x4bc2c0=_0x1e21dc[_0x42db('0x32')][_0x42db('0x17')](_0x59cbd1);if(!_0x4bc2c0)return void this[_0x42db('0x2d')][_0x42db('0xf')]({'thread':_0x59cbd1,'position':_0x212c68});const _0x4c8409=_0x39cfd6['getByInnerView'](_0x4bc2c0[_0x42db('0x21')]);_0x4c8409['isVisible']&&_0x39cfd6[_0x42db('0x1c')]['remove'](_0x4c8409),this['annotationViews']['add'](_0x4c8409[_0x42db('0x21')],_0x212c68);}}),this['listenTo'](_0x39cfd6[_0x42db('0x15')],_0x42db('0x19'),(_0x2af4e7,_0x129b8b)=>{const _0x18b289=this[_0x42db('0x2d')][_0x42db('0x22')](({thread:_0x2f8b22})=>{const _0x11e45d=_0x1e21dc['_threadToController'][_0x42db('0x17')](_0x2f8b22);return _0x11e45d&&_0x129b8b[_0x42db('0x26')]===_0x11e45d[_0x42db('0x21')];});_0x18b289&&(this['annotationViews']['add'](_0x129b8b[_0x42db('0x21')],_0x18b289[_0x42db('0x10')]),this['_pendingThreads'][_0x42db('0x0')](this[_0x42db('0x2d')][_0x42db('0x4')](_0x18b289),0x1));}),this[_0x42db('0x2c')](_0x337871[_0x42db('0x1d')],_0x42db('0x6'),(_0x291871,_0x4d4ec6)=>{const _0x3ac343=this['editor']['config'][_0x42db('0x17')](_0x42db('0xb'));if(!_0x3ac343||_0x4d4ec6[_0x42db('0x23')]===_0x3ac343){const _0x6f37ae=_0x1e21dc[_0x42db('0x32')][_0x42db('0x17')](_0x4d4ec6),_0x56f71c=_0x39cfd6[_0x42db('0xd')](_0x6f37ae[_0x42db('0x21')]);this[_0x42db('0x2e')]['remove'](_0x56f71c['view']),this[_0x42db('0x25')](_0x56f71c[_0x42db('0x1')]);}});}[_0x42db('0x2f')](_0x224a5c,_0xcf8495){for(const _0x592951 of _0xcf8495[_0x42db('0x1')])_0x592951['classList'][_0x42db('0x2a')](_0x42db('0x20'))&&_0x224a5c[_0x42db('0x13')]['add'](_0x592951);this['listenTo'](_0xcf8495[_0x42db('0x1')],'add',(_0x2029b8,_0x1f94cb)=>{_0x1f94cb['classList'][_0x42db('0x2a')](_0x42db('0x20'))&&_0x224a5c['focusTracker']['add'](_0x1f94cb);}),this[_0x42db('0x2c')](_0xcf8495[_0x42db('0x1')],_0x42db('0x6'),(_0x22fc69,_0x581d7a)=>{_0x581d7a[_0x42db('0x24')]['contains'](_0x42db('0x20'))&&_0x224a5c[_0x42db('0x13')][_0x42db('0x6')](_0x581d7a);});}[_0x42db('0xe')](_0x3d446e){const _0x363da4=this[_0x42db('0x30')][_0x42db('0x1b')][_0x42db('0x17')](_0x42db('0xb')),_0xbc4d5=[...this[_0x42db('0x30')][_0x42db('0x2')]['get'](_0x4d6c62)[_0x42db('0x1d')]][_0x42db('0x1a')](_0x17f1e0=>_0x17f1e0[_0x42db('0x23')]===_0x363da4)['findIndex'](_0x4f2e5f=>_0x4f2e5f[_0x42db('0x29')]<_0x3d446e);return _0xbc4d5>-0x1?_0xbc4d5-0x1:this[_0x42db('0x2e')]['length'];}['_createArchiveUIDropdown'](){const _0x3eaf32=this['editor'],_0x1e2cb6=this[_0x42db('0x30')][_0x42db('0x2')][_0x42db('0x17')](_0x42db('0x14')),_0x506619=_0x4cb310(_0x3eaf32['locale']);_0x506619[_0x42db('0x2b')][_0x42db('0x18')]({'icon':_0x3b54a2,'label':_0x2f6835(_0x3eaf32[_0x42db('0x1f')],_0x42db('0x33')),'tooltip':!0x0}),_0x506619['panelView'][_0x42db('0x12')]({'attributes':{'class':_0x42db('0x31')}}),_0x506619['on'](_0x42db('0x28'),(_0x1708bb,_0x11e185,_0x1c1fe7)=>{this[_0x42db('0x11')]||(this[_0x42db('0x11')]=new _0x455c00(_0x3eaf32[_0x42db('0x1f')],this[_0x42db('0x2e')])),_0x1c1fe7?_0x506619[_0x42db('0x27')]['children'][_0x42db('0x19')](this['commentsArchiveView']):_0x506619['panelView'][_0x42db('0xa')]['remove'](this[_0x42db('0x11')]);});for(const _0x399be1 of this[_0x42db('0x2e')]){const _0x24c494=_0x1e2cb6[_0x42db('0xd')](_0x399be1['mainView']);this[_0x42db('0x2f')](_0x506619,_0x24c494);}return _0x506619[_0x42db('0x2c')](this[_0x42db('0x2e')],_0x42db('0x19'),(_0x15cc77,_0x427609)=>{const _0xcde5e8=_0x1e2cb6[_0x42db('0xd')](_0x427609['mainView']);this[_0x42db('0x2f')](_0x506619,_0xcde5e8);}),_0x506619[_0x42db('0x2c')](this[_0x42db('0x2e')],'remove',(_0x329a8d,_0x2f0560)=>{const _0xfac99=_0x1e2cb6[_0x42db('0xd')](_0x2f0560[_0x42db('0x1e')]);for(const _0x514b31 of _0xfac99[_0x42db('0x1')])_0x514b31[_0x42db('0x24')][_0x42db('0x2a')](_0x42db('0x20'))&&_0x506619[_0x42db('0x13')]['remove'](_0x514b31);}),_0x506619;}}
23
+ const _0x453b=['_visibleAnnotations','innerView','ck-body','_pendingThreads','children','contains','Annotations','mainView','_calculatePosition','COMMENTS_ARCHIVE','get','collaboration.channelId','focusTracker','position','config','CommentsArchiveUI','commentsArchive','_createArchiveUIDropdown','classList','buttonView','collection','componentFactory','ck-comments-archive-dropdown','archivedAt','indexOf','commentsArchiveView','remove','view','annotationViews','filter','splice','plugins','focusableElements','_handleAnnotationFocusableElements','pluginName','isVisible','_threadToController','panelView','change:isOpen','getByInnerView','extendTemplate','listenTo','editor','archivedThreads','length','locale','add','set','channelId','requires'];(function(_0x33cf83,_0x453bdf){const _0xdc531a=function(_0x174878){while(--_0x174878){_0x33cf83['push'](_0x33cf83['shift']());}};_0xdc531a(++_0x453bdf);}(_0x453b,0x13d));const _0xdc53=function(_0x33cf83,_0x453bdf){_0x33cf83=_0x33cf83-0x0;let _0xdc531a=_0x453b[_0x33cf83];return _0xdc531a;};import'../../theme/commentsarchive.css';import{Plugin as _0x6ebcb6}from'ckeditor5/src/core.js';import{createDropdown as _0x5ae393,ViewCollection as _0x5afebe}from'ckeditor5/src/ui.js';import _0x1e5773 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0xe78fdb}from'../utils/common-translations.js';import _0x1dafc5 from'./ui/view/commentsarchiveview.js';import _0x55b9e7 from'./commentsarchive.js';export default class a extends _0x6ebcb6{static get[_0xdc53('0x11')](){return _0xdc53('0x30');}static get[_0xdc53('0x20')](){return[_0x55b9e7];}constructor(_0x5add83){super(_0x5add83),this['annotationViews']=new _0x5afebe(),this[_0xdc53('0x24')]=[];}['init'](){this['editor']['ui'][_0xdc53('0x4')][_0xdc53('0x1d')](_0xdc53('0x31'),()=>this[_0xdc53('0x0')]());const _0x43677f=this[_0xdc53('0x19')][_0xdc53('0xe')]['get'](_0x55b9e7),_0x55ce7f=this['editor'][_0xdc53('0xe')]['get']('Annotations'),_0x4f04b9=this[_0xdc53('0x19')][_0xdc53('0xe')][_0xdc53('0x2b')]('CommentsRepository');this['listenTo'](_0x43677f[_0xdc53('0x1a')],_0xdc53('0x1d'),(_0x3c63fe,_0x18a427)=>{const _0x15dfac=this['editor'][_0xdc53('0x2f')][_0xdc53('0x2b')](_0xdc53('0x2c'));if(!_0x15dfac||_0x18a427[_0xdc53('0x1f')]===_0x15dfac){const _0x5931d6=this[_0xdc53('0x29')](_0x18a427[_0xdc53('0x6')]),_0x51d602=_0x4f04b9[_0xdc53('0x13')][_0xdc53('0x2b')](_0x18a427);if(!_0x51d602)return void this[_0xdc53('0x24')]['push']({'thread':_0x18a427,'position':_0x5931d6});const _0x37d69a=_0x55ce7f[_0xdc53('0x16')](_0x51d602['view']);_0x37d69a[_0xdc53('0x12')]&&_0x55ce7f[_0xdc53('0x21')][_0xdc53('0x9')](_0x37d69a),this[_0xdc53('0xb')][_0xdc53('0x1d')](_0x37d69a[_0xdc53('0xa')],_0x5931d6);}}),this['listenTo'](_0x55ce7f[_0xdc53('0x3')],_0xdc53('0x1d'),(_0x56cce8,_0x35aa8b)=>{const _0x9c60b2=this['_pendingThreads']['find'](({thread:_0x2c1a8a})=>{const _0x5c8247=_0x4f04b9[_0xdc53('0x13')][_0xdc53('0x2b')](_0x2c1a8a);return _0x5c8247&&_0x35aa8b[_0xdc53('0x22')]===_0x5c8247[_0xdc53('0xa')];});_0x9c60b2&&(this[_0xdc53('0xb')][_0xdc53('0x1d')](_0x35aa8b[_0xdc53('0xa')],_0x9c60b2[_0xdc53('0x2e')]),this[_0xdc53('0x24')][_0xdc53('0xd')](this['_pendingThreads'][_0xdc53('0x7')](_0x9c60b2),0x1));}),this[_0xdc53('0x18')](_0x43677f[_0xdc53('0x1a')],_0xdc53('0x9'),(_0x282320,_0x48b5ed)=>{const _0xb08f2=this['editor'][_0xdc53('0x2f')][_0xdc53('0x2b')](_0xdc53('0x2c'));if(!_0xb08f2||_0x48b5ed[_0xdc53('0x1f')]===_0xb08f2){const _0x17938a=_0x4f04b9[_0xdc53('0x13')]['get'](_0x48b5ed),_0x36b901=_0x55ce7f['getByInnerView'](_0x17938a[_0xdc53('0xa')]);this[_0xdc53('0xb')]['remove'](_0x36b901[_0xdc53('0xa')]),this['stopListening'](_0x36b901[_0xdc53('0xf')]);}});}[_0xdc53('0x10')](_0x1300ef,_0x43dc4e){for(const _0xf99ac1 of _0x43dc4e[_0xdc53('0xf')])_0xf99ac1[_0xdc53('0x1')][_0xdc53('0x26')](_0xdc53('0x23'))&&_0x1300ef[_0xdc53('0x2d')]['add'](_0xf99ac1);this['listenTo'](_0x43dc4e['focusableElements'],_0xdc53('0x1d'),(_0x2b23b6,_0x28a9b2)=>{_0x28a9b2['classList'][_0xdc53('0x26')]('ck-body')&&_0x1300ef[_0xdc53('0x2d')]['add'](_0x28a9b2);}),this[_0xdc53('0x18')](_0x43dc4e[_0xdc53('0xf')],'remove',(_0x296cd5,_0x5052bc)=>{_0x5052bc[_0xdc53('0x1')][_0xdc53('0x26')]('ck-body')&&_0x1300ef[_0xdc53('0x2d')][_0xdc53('0x9')](_0x5052bc);});}[_0xdc53('0x29')](_0x5d890){const _0x352c70=this['editor'][_0xdc53('0x2f')][_0xdc53('0x2b')]('collaboration.channelId'),_0x14676a=[...this[_0xdc53('0x19')][_0xdc53('0xe')][_0xdc53('0x2b')](_0x55b9e7)[_0xdc53('0x1a')]][_0xdc53('0xc')](_0x314953=>_0x314953['channelId']===_0x352c70)['findIndex'](_0x4af9db=>_0x4af9db['archivedAt']<_0x5d890);return _0x14676a>-0x1?_0x14676a-0x1:this[_0xdc53('0xb')][_0xdc53('0x1b')];}[_0xdc53('0x0')](){const _0x5e7805=this[_0xdc53('0x19')],_0x191538=this[_0xdc53('0x19')][_0xdc53('0xe')]['get'](_0xdc53('0x27')),_0x3e86dc=_0x5ae393(_0x5e7805[_0xdc53('0x1c')]);_0x3e86dc[_0xdc53('0x2')][_0xdc53('0x1e')]({'icon':_0x1e5773,'label':_0xe78fdb(_0x5e7805[_0xdc53('0x1c')],_0xdc53('0x2a')),'tooltip':!0x0}),_0x3e86dc['panelView'][_0xdc53('0x17')]({'attributes':{'class':_0xdc53('0x5')}}),_0x3e86dc['on'](_0xdc53('0x15'),(_0x424f04,_0x11c6fa,_0xf3421)=>{this[_0xdc53('0x8')]||(this[_0xdc53('0x8')]=new _0x1dafc5(_0x5e7805[_0xdc53('0x1c')],this[_0xdc53('0xb')])),_0xf3421?_0x3e86dc[_0xdc53('0x14')][_0xdc53('0x25')][_0xdc53('0x1d')](this[_0xdc53('0x8')]):_0x3e86dc[_0xdc53('0x14')][_0xdc53('0x25')][_0xdc53('0x9')](this[_0xdc53('0x8')]);});for(const _0x252b2d of this['annotationViews']){const _0x442f15=_0x191538[_0xdc53('0x16')](_0x252b2d[_0xdc53('0x28')]);this['_handleAnnotationFocusableElements'](_0x3e86dc,_0x442f15);}return _0x3e86dc[_0xdc53('0x18')](this[_0xdc53('0xb')],_0xdc53('0x1d'),(_0x463cc8,_0x40f499)=>{const _0x3b71b5=_0x191538[_0xdc53('0x16')](_0x40f499[_0xdc53('0x28')]);this[_0xdc53('0x10')](_0x3e86dc,_0x3b71b5);}),_0x3e86dc[_0xdc53('0x18')](this[_0xdc53('0xb')],_0xdc53('0x9'),(_0x152f27,_0x49a924)=>{const _0x106420=_0x191538[_0xdc53('0x16')](_0x49a924[_0xdc53('0x28')]);for(const _0xeac7b2 of _0x106420[_0xdc53('0xf')])_0xeac7b2[_0xdc53('0x1')][_0xdc53('0x26')]('ck-body')&&_0x3e86dc[_0xdc53('0x2d')][_0xdc53('0x9')](_0xeac7b2);}),_0x3e86dc;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x365a=['removeMarker','isEqual','getChangedMarkers','ready','getAttribute','ck-comment-marker','managedUsingOperations','data','markers','getCommentThread','_initAriaMarkerChangeAnnouncements','hasCommentThread','commands','LEAVE_COMMENT_ANNOUNCEMENT','consumable','removeMarker:','length','hasDomSelection','removeCommentThread','conversion','for','_reconvertMarkers','group','elementToElement','clear','add','markerToData','_threads','_detachCommentThread','collaboration.channelId','consume','from','upcast','registerAnnotation','once','model','push','attachTo','isCollapsed','comments','start','refreshVisibility','isResolved','openNewCommentThread','schema','render','getByInnerView','comment','affectsData','CommentsEditing','createRange','resolveCommentThread','split','document','context','focus','size','join','_handleMarkerAddAndRemove','hasContent','isObject','isThreadsLoadingPaused','reopenCommentThread','editor','ck-comment-marker--active','differ','addCommentThread','setContext','comment:','_attachMarkerToThread','item','scrollToThreadMarker','isAttached','addMarker:','_threadToController','$marker','enqueueChange','locale','getWalker','markerToHighlight','change','delete','createElement','destroyed','hasMarkerForId','config','change:isThreadsLoadingPaused','ignoreResolvedComments','getCommentThreads','_attachArchivedThread','isLocal','activeMarker','ENTER_COMMENT_ANNOUNCEMENT','getItems','_getTargetForId','registerPostFixer','set','destroy','createPositionBefore','addComment','getRange','_initializeMarkerConverters','unlinkedAt','change:activeMarker','end','editingDowncast','getAllMarkersForId','$graveyard','listenTo','editing','view','reconvertMarker','pluginName','plugins','fetchCommentThread','newRange','_handleThreadMarker','switchReadOnly','then','low','updateMarker','name','text','get','markerName','_hasTargetInContent','ariaLiveAnnouncer','setUnlinkedAt','_getTextContext'];(function(_0x22a7f8,_0x365a64){const _0x15bebe=function(_0x6df906){while(--_0x6df906){_0x22a7f8['push'](_0x22a7f8['shift']());}};_0x15bebe(++_0x365a64);}(_0x365a,0xf5));const _0x15be=function(_0x22a7f8,_0x365a64){_0x22a7f8=_0x22a7f8-0x0;let _0x15bebe=_0x365a[_0x22a7f8];return _0x15bebe;};import{Plugin as _0x7803d6}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x4b9e52}from'ckeditor5/src/utils.js';import _0x218017 from'./commentsrepository.js';import _0x478442 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0xf36b0d,getAllMarkersDomElementsSorted as _0x51f2d5}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x1a2283 from'../annotations/editorannotations.js';import _0x78d4fd from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x12a801 from'./integrations/importword.js';import _0x2275c3 from'../annotations/annotations.js';import{getTranslation as _0x3cdb20}from'../utils/common-translations.js';export default class r extends _0x7803d6{static get['requires'](){return[_0x218017,_0x1a2283,_0x78d4fd,_0x12a801];}static get[_0x15be('0x7d')](){return _0x15be('0x3e');}constructor(_0x50dbc4){super(_0x50dbc4),this[_0x15be('0x6d')]('isThreadsLoadingPaused',!0x0),_0x50dbc4[_0x15be('0x14')][_0x15be('0x2f')](_0x15be('0x10'),()=>this[_0x15be('0x4a')]=!0x1),this[_0x15be('0x6d')](_0x15be('0x68'),null),this['on'](_0x15be('0x74'),(_0x2bebb2,_0x1769cd,_0x5cb348,_0x30afc1)=>{const _0x52f0dd=_0x5cb348?ot(_0x5cb348)['id']:null;if(_0x50dbc4[_0x15be('0x30')][_0x15be('0x5d')](()=>{if(_0x52f0dd){const _0x2d431c=this[_0x15be('0x77')](_0x52f0dd);for(const _0x2869cf of _0x2d431c)_0x50dbc4[_0x15be('0x7a')][_0x15be('0x7c')](_0x2869cf);}if(_0x30afc1){const {id:_0x549b9f}=ot(_0x30afc1),_0x555a18=this[_0x15be('0x77')](_0x549b9f);for(const _0x5d17a3 of _0x555a18)_0x50dbc4[_0x15be('0x7a')][_0x15be('0x7c')](_0x5d17a3);}}),_0x52f0dd){const _0x50d800=_0x50dbc4['plugins'][_0x15be('0x7')](_0x218017)['getCommentThread'](_0x52f0dd);_0x50d800&&_0x50d800[_0x15be('0x37')]&&this['scrollToThreadMarker'](_0x52f0dd);}}),this[_0x15be('0x17')]();}['init'](){const _0x4354dc=this[_0x15be('0x4c')],_0x2d1f7f=_0x4354dc[_0x15be('0x7e')][_0x15be('0x7')](_0x218017),_0x1e4369=_0x4354dc[_0x15be('0x62')][_0x15be('0x7')](_0x15be('0x2a'));_0x4354dc[_0x15be('0x19')][_0x15be('0x26')](_0x15be('0x4f'),new _0x478442(_0x4354dc)),this['listenTo'](_0x4354dc,'change:isReadOnly',(_0xd51123,_0x223f4b,_0x94b1ca)=>{_0x2d1f7f[_0x15be('0x1')](_0x94b1ca,_0x4354dc[_0x15be('0x62')]['get'](_0x15be('0x2a')));}),this[_0x15be('0x79')](_0x2d1f7f,tt(_0x15be('0x4f'),_0x1e4369),(_0x495202,{threadId:_0x12dab2})=>{const _0x599883=this[_0x15be('0x4c')][_0x15be('0x7e')][_0x15be('0x7')](_0x218017)[_0x15be('0x16')](_0x12dab2);_0x599883&&_0x599883[_0x15be('0x73')]&&this[_0x15be('0x66')](_0x12dab2);}),this[_0x15be('0x79')](_0x2d1f7f,tt(_0x15be('0x1f'),_0x1e4369),(_0x1d9b3a,{threadId:_0x199417})=>{_0x4354dc[_0x15be('0x30')]['enqueueChange']({'isUndoable':!0x1},_0x51dda8=>{const _0x1dac6b=this[_0x15be('0x77')](_0x199417);for(const _0x4164d7 of _0x1dac6b)_0x51dda8[_0x15be('0xd')](_0x4164d7);});}),this[_0x15be('0x79')](_0x2d1f7f,tt(_0x15be('0x40'),_0x1e4369),(_0x5ae240,{threadId:_0x2e5a9e})=>{(this[_0x15be('0x22')](_0x2e5a9e),this['editor']['editing'][_0x15be('0x7b')][_0x15be('0x1e')])&&(this[_0x15be('0x4c')][_0x15be('0x7e')]['get'](_0x218017)[_0x15be('0x16')](_0x2e5a9e)[_0x15be('0x73')]||this['editor'][_0x15be('0x7a')]['view'][_0x15be('0x44')]());},{'priority':_0x15be('0x3')}),this['listenTo'](_0x2d1f7f,tt(_0x15be('0x4b'),_0x1e4369),(_0x30a3c5,{threadId:_0x3f382e})=>{this[_0x15be('0x22')](_0x3f382e);},{'priority':_0x15be('0x3')}),this['listenTo'](_0x2d1f7f,tt(_0x15be('0x70'),_0x1e4369),(_0x4ecb21,{threadId:_0x49ae00,isFromAdapter:_0x46290e})=>{const _0x15495f=this[_0x15be('0x77')](_0x49ae00);if(_0x46290e||0x0==_0x15495f['length']||!_0x2d1f7f[_0x15be('0x18')](_0x49ae00))return;0x1===_0x2d1f7f[_0x15be('0x16')](_0x49ae00)[_0x15be('0x1d')]&&_0x4354dc[_0x15be('0x30')][_0x15be('0x59')]({'isUndoable':!0x1},_0x44d15b=>{for(const _0x53c1c1 of _0x15495f)_0x44d15b[_0x15be('0x4')](_0x53c1c1,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x15be('0x3')}),this[_0x15be('0x72')](),this[_0x15be('0x47')]();}[_0x15be('0x6e')](){const _0x23a5d6=this[_0x15be('0x4c')][_0x15be('0x7e')][_0x15be('0x7')](_0x218017),_0x14a4b8=this[_0x15be('0x4c')][_0x15be('0x62')][_0x15be('0x7')](_0x15be('0x2a'));for(const _0x33d3c6 of _0x23a5d6[_0x15be('0x65')]({'channelId':_0x14a4b8}))_0x23a5d6[_0x15be('0x29')](_0x33d3c6['id']),_0x23a5d6[_0x15be('0x28')][_0x15be('0x5e')](_0x33d3c6['id']);super[_0x15be('0x6e')]();}[_0x15be('0x61')](_0xa05be5){return this[_0x15be('0x77')](_0xa05be5)['length']>0x0;}[_0x15be('0x77')](_0x577982){const _0x1aee4b=[];for(const _0x50601d of this[_0x15be('0x4c')][_0x15be('0x30')]['markers'])_0x50601d[_0x15be('0x5')]['startsWith'](_0x15be('0x51')+_0x577982)&&_0x1aee4b[_0x15be('0x31')](_0x50601d);return _0x1aee4b;}[_0x15be('0x54')](_0x5d3447){const _0x389e58=this[_0x15be('0x6b')](_0x5d3447);_0x389e58&&setTimeout(()=>{this['activeMarker']&&ot(this[_0x15be('0x68')])['id']===_0x5d3447&&_0x4b9e52({'target':_0x389e58[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x15be('0x22')](_0x382752){this[_0x15be('0x4c')][_0x15be('0x30')][_0x15be('0x5d')](()=>{for(const _0x57b45a of this[_0x15be('0x77')](_0x382752))this[_0x15be('0x4c')][_0x15be('0x7a')][_0x15be('0x7c')](_0x57b45a);});}[_0x15be('0x66')](_0x3a5ef0){const _0x535374=this[_0x15be('0x4c')][_0x15be('0x7e')][_0x15be('0x7')](_0x218017),_0x1ac7c1=this[_0x15be('0x4c')]['plugins']['get'](_0x1a2283),_0x16651b=_0x535374[_0x15be('0x16')](_0x3a5ef0);if(!_0x16651b[_0x15be('0x55')]){const _0x500592=_0x16651b[_0x15be('0x32')](()=>this['_getTargetForId'](_0x16651b['id']));_0x1ac7c1[_0x15be('0x2e')](_0x500592),_0x16651b[_0x15be('0x9')]=!0x1;}}['_initializeMarkerConverters'](){const _0x292b2f=this[_0x15be('0x4c')];_0x292b2f['conversion']['for'](_0x15be('0x76'))[_0x15be('0x5c')]({'model':_0x15be('0x3c'),'view':(_0x4c3553,_0x3129bc)=>{const {id:_0x38cd81}=ot(_0x4c3553[_0x15be('0x8')]),_0x136ac9=_0x292b2f['plugins'][_0x15be('0x7')](_0x218017)[_0x15be('0x16')](_0x38cd81),_0x2667ff=this[_0x15be('0x68')]&&ot(this['activeMarker'])['id']===_0x38cd81;if(_0x136ac9&&_0x136ac9[_0x15be('0x37')]&&!_0x2667ff&&_0x4c3553['item'])return _0x3129bc[_0x15be('0x1b')][_0x15be('0x2b')](_0x4c3553['item'],_0x15be('0x56')+_0x4c3553[_0x15be('0x8')]),_0x3129bc[_0x15be('0x1b')][_0x15be('0x2b')](_0x4c3553[_0x15be('0x53')],_0x15be('0x1c')+_0x4c3553['markerName']),null;const _0x19d83c=[_0x15be('0x12')];return _0x2667ff&&_0x19d83c[_0x15be('0x31')](_0x15be('0x4d')),{'classes':_0x19d83c,'attributes':{'data-comment':_0x38cd81}};}}),_0x292b2f[_0x15be('0x20')][_0x15be('0x21')]('dataDowncast')[_0x15be('0x27')]({'model':_0x15be('0x3c'),'view':(_0x5cd842,{options:_0x2f8125})=>{const _0x29098b=_0x292b2f[_0x15be('0x7e')]['get'](_0x218017),_0x49bffc=_0x292b2f[_0x15be('0x30')][_0x15be('0x15')][_0x15be('0x7')](_0x5cd842),{id:_0x230c46,part:_0x598a04}=ot(_0x5cd842);if(_0x49bffc&&!_0x49bffc[_0x15be('0x3d')])return null;if(_0x2f8125[_0x15be('0x64')]){const _0x3f60fc=_0x29098b[_0x15be('0x16')](_0x230c46);if(_0x3f60fc&&_0x3f60fc['isResolved'])return null;}return{'group':'comment','name':_0x598a04?_0x230c46+':'+_0x598a04:_0x230c46};}}),_0x292b2f[_0x15be('0x20')][_0x15be('0x21')](_0x15be('0x2d'))[_0x15be('0x24')]({'view':{'name':_0x15be('0x3c'),'attributes':{'id':/^\w/}},'model':(_0x341c3d,{writer:_0x2576c7})=>_0x2576c7[_0x15be('0x5f')](_0x15be('0x58'),{'data-name':_0x15be('0x51')+_0x341c3d[_0x15be('0x11')]('id')})}),_0x292b2f[_0x15be('0x20')]['for'](_0x15be('0x2d'))['dataToMarker']({'view':_0x15be('0x3c')});}[_0x15be('0x47')](){const _0x28a286=this['editor'],_0x4182f7=_0x28a286[_0x15be('0x7e')]['get'](_0x218017),_0x3e7f88=new Set(),_0x590c4e=new Set();_0x28a286[_0x15be('0x30')][_0x15be('0x42')][_0x15be('0x6c')](_0x1f296e=>{let _0x68e505=!0x1;for(const {name:_0x4ffbd8,data:_0x463691}of _0x28a286['model'][_0x15be('0x42')]['differ'][_0x15be('0xf')]()){const {group:_0x1673f9,id:_0x54dfbb}=ot(_0x4ffbd8);let _0xcef96f=_0x463691[_0x15be('0x80')];if(_0x15be('0x3c')!==_0x1673f9||!_0xcef96f)continue;const _0x2d45de=_0x15be('0x78')===_0xcef96f['root']['rootName'];_0x2d45de||(_0xcef96f=et(_0xcef96f,_0x28a286[_0x15be('0x30')]),!_0xcef96f||_0xcef96f[_0x15be('0x33')]||!_0x463691['newRange']||_0xcef96f[_0x15be('0xe')](_0x463691[_0x15be('0x80')]))?_0x28a286[_0x15be('0x30')][_0x15be('0x48')](_0xcef96f)&&!_0x2d45de?this['isThreadsLoadingPaused']?_0x3e7f88[_0x15be('0x26')](_0x4ffbd8):this['_handleThreadMarker'](_0x4ffbd8,_0x54dfbb):(_0x590c4e[_0x15be('0x26')](_0x4ffbd8),_0x3e7f88['delete'](_0x4ffbd8),_0x1f296e[_0x15be('0xd')](_0x4ffbd8),_0x68e505=!0x0):(_0x1f296e[_0x15be('0x4')](_0x4ffbd8,{'range':_0xcef96f}),_0x68e505=!0x0);}return _0x68e505;}),this['on'](_0x15be('0x63'),(_0x258b95,_0x42576a,_0x250099)=>{if(!_0x250099&&_0x3e7f88[_0x15be('0x45')])for(const _0x3bb5b2 of _0x3e7f88){const {id:_0x1193d5}=ot(_0x3bb5b2);_0x3e7f88[_0x15be('0x5e')](_0x3bb5b2),_0x28a286[_0x15be('0x30')][_0x15be('0x15')][_0x15be('0x7')](_0x3bb5b2)&&this[_0x15be('0x0')](_0x3bb5b2,_0x1193d5);}}),this[_0x15be('0x79')](_0x28a286['model'][_0x15be('0x42')],_0x15be('0x5d'),(_0x53c695,_0x4611e8)=>{for(const {name:_0x1445cf,data:{newRange:_0x42e5bf}}of _0x28a286['model'][_0x15be('0x42')][_0x15be('0x4e')]['getChangedMarkers']()){const {group:_0x137767,id:_0x33376d}=ot(_0x1445cf);if(_0x15be('0x3c')!==_0x137767)continue;const _0x1f65b9=_0x4182f7[_0x15be('0x16')](_0x33376d),_0x423c27=this[_0x15be('0x61')](_0x33376d);_0x1f65b9&&(_0x1f65b9[_0x15be('0x9')]||_0x28a286[_0x15be('0x7a')][_0x15be('0x7b')][_0x15be('0x2f')]('render',()=>{const _0x214296=_0x28a286[_0x15be('0x7e')][_0x15be('0x7')](_0x2275c3),_0x2cf918=_0x4182f7['_threadToController'][_0x15be('0x7')](_0x1f65b9)[_0x15be('0x7b')];_0x214296[_0x15be('0x3b')](_0x2cf918)[_0x15be('0x36')]();},{'priority':_0x15be('0x3')}),_0x1f65b9[_0x15be('0x9')]=_0x423c27||!!_0x42e5bf),_0x42e5bf||(_0x590c4e[_0x15be('0x26')](_0x1445cf),_0x3e7f88[_0x15be('0x5e')](_0x1445cf));}if(_0x4611e8[_0x15be('0x67')])for(const _0x445c80 of _0x590c4e){const {id:_0x4b1968}=ot(_0x445c80),_0x2a9238=_0x4182f7['getCommentThread'](_0x4b1968),_0x59b036=this[_0x15be('0x61')](_0x4b1968);_0x3e7f88[_0x15be('0x5e')](_0x445c80),!_0x2a9238||_0x59b036||_0x2a9238[_0x15be('0x73')]||_0x2a9238[_0x15be('0xb')](new Date());}_0x590c4e[_0x15be('0x25')]();});}['_getTargetForId'](_0x2b4804){const _0x4a602f=this[_0x15be('0x4c')],_0xd7928f=this['getAllMarkersForId'](_0x2b4804);return _0x51f2d5(_0x4a602f[_0x15be('0x7a')],_0xd7928f);}[_0x15be('0xc')](_0x59fb5f){const _0x2e979b=this[_0x15be('0x77')](_0x59fb5f);let _0x420468='',_0x492b36=!0x1;for(const _0x71eba0 of _0x2e979b){const _0x2433e9=_0x71eba0[_0x15be('0x71')]();for(const _0x169816 of Array[_0x15be('0x2c')](_0x2433e9[_0x15be('0x6a')]()))_0x169816['is']('$textProxy')?(_0x420468&&_0x492b36&&(_0x420468+='\x20',_0x492b36=!0x1),_0x420468+=_0x169816[_0x15be('0x14')]):_0x492b36=!0x0;_0x492b36=!0x0;}return _0x420468['substring'](0x0,0x96);}[_0x15be('0x52')](_0x16d665,_0x5ec804){const _0x43ed09=this[_0x15be('0x4c')],_0x575ef6=_0x43ed09[_0x15be('0x7e')][_0x15be('0x7')](_0x218017);let _0x37ba18=_0x575ef6[_0x15be('0x16')](_0x5ec804);const _0x3ca359=_0x43ed09[_0x15be('0x62')][_0x15be('0x7')](_0x15be('0x2a')),_0x50c1f7=_0x43ed09['plugins'][_0x15be('0x7')](_0x1a2283);if(_0x37ba18&&(_0x37ba18[_0x15be('0x73')]&&_0x37ba18['setUnlinkedAt'](null),_0x37ba18[_0x15be('0x55')]))return _0x37ba18;return!this['getAllMarkersForId'](_0x5ec804)[0x0][_0x15be('0x13')]?_0x43ed09['editing'][_0x15be('0x7b')][_0x15be('0x2f')](_0x15be('0x3a'),()=>{if(_0x575ef6[_0x15be('0x16')](_0x5ec804))return;const _0x25197d=_0x43ed09[_0x15be('0x7e')]['get'](_0x2275c3);_0x37ba18=_0x575ef6[_0x15be('0x38')]({'channelId':_0x3ca359,'threadId':_0x5ec804,'target':()=>this[_0x15be('0x6b')](_0x5ec804),'context':{'type':_0x15be('0x6'),'value':this[_0x15be('0xc')](_0x5ec804)}});const _0x125da0=_0x575ef6[_0x15be('0x57')][_0x15be('0x7')](_0x37ba18)[_0x15be('0x7b')],_0x4c620e=_0x25197d[_0x15be('0x3b')](_0x125da0);_0x4c620e&&_0x50c1f7[_0x15be('0x2e')](_0x4c620e);},{'priority':_0x15be('0x3')}):_0x575ef6[_0x15be('0x7f')]({'channelId':_0x3ca359,'threadId':_0x5ec804})[_0x15be('0x2')](_0x1c177e=>{if(_0x15be('0x60')!==_0x43ed09['state']){if(_0x37ba18=_0x1c177e,_0x37ba18&&!_0x37ba18['isAttached']){const _0x25e6b3=_0x37ba18[_0x15be('0x32')](()=>this[_0x15be('0x6b')](_0x5ec804));_0x50c1f7[_0x15be('0x2e')](_0x25e6b3),_0x37ba18[_0x15be('0x37')]&&this[_0x15be('0x22')](_0x5ec804);}else{if(!_0x37ba18){const _0x387f69=this[_0x15be('0x77')](_0x5ec804);_0x43ed09[_0x15be('0x30')][_0x15be('0x5d')](_0x32f0ed=>{for(const _0x3f84c5 of _0x387f69)_0x32f0ed[_0x15be('0xd')](_0x3f84c5);});}}}}),_0x37ba18;}[_0x15be('0x0')](_0x3ff1bf,_0x8403e0){const _0x54bccb=this[_0x15be('0x52')](_0x3ff1bf,_0x8403e0);_0x54bccb&&!_0x54bccb[_0x15be('0x43')]&&_0x54bccb[_0x15be('0x50')]({'type':'text','value':this[_0x15be('0xc')](_0x8403e0)});}[_0x15be('0x17')](){const _0x2ff2ca=this['editor'];_0xf36b0d(_0x2ff2ca[_0x15be('0x30')],({left:_0x3bf791,entered:_0x8d020c})=>{const _0x5c6ae9=[];for(const _0x296d0c of _0x3bf791)if(rt(_0x296d0c)){_0x5c6ae9[_0x15be('0x31')](_0x3cdb20(_0x2ff2ca[_0x15be('0x5a')],_0x15be('0x1a')));break;}for(const _0x5be43d of _0x8d020c)if(rt(_0x5be43d)){_0x5c6ae9[_0x15be('0x31')](_0x3cdb20(_0x2ff2ca['locale'],_0x15be('0x69')));break;}_0x5c6ae9[_0x15be('0x1d')]&&_0x2ff2ca['ui'][_0x15be('0xa')]['announce'](_0x15be('0x34'),_0x5c6ae9[_0x15be('0x46')]('\x20'));});}}function tt(_0x26fda2,_0x12ff6a){return _0x12ff6a?_0x26fda2+':'+_0x12ff6a:_0x26fda2;}function ot(_0x4305fb){const _0x236308=_0x4305fb[_0x15be('0x41')](':');return{'group':_0x236308[0x0],'id':_0x236308[0x1],'part':_0x236308[0x2]};}function et(_0x1fdfaf,_0x46edf3){const _0x1446d9=_0x46edf3[_0x15be('0x39')],_0x25aab3=_0x46edf3[_0x15be('0x3f')](_0x1fdfaf[_0x15be('0x35')]);for(const _0x38a08b of _0x1fdfaf[_0x15be('0x5b')]()){const {type:_0x4f42e3,item:_0xb33d66,nextPosition:_0x3ecf5a}=_0x38a08b;if(_0x15be('0x6')===_0x4f42e3||_0x1446d9[_0x15be('0x49')](_0xb33d66)){const _0x49371b=_0x46edf3[_0x15be('0x6f')](_0xb33d66);_0x25aab3[_0x15be('0x33')]&&(_0x25aab3['start']=_0x49371b),_0x25aab3[_0x15be('0x75')]=_0x3ecf5a;}}return _0x25aab3;}function rt(_0x5b5dee){return _0x15be('0x3c')===ot(_0x5b5dee[_0x15be('0x5')])[_0x15be('0x23')];}
23
+ const _0x3fb8=['isObject','$graveyard','change:activeMarker','config','unlinkedAt','isLocal','newRange','rootName','group','push','ready','for','comment:','root','markers','text','state','openNewCommentThread','document','clear','delete','_attachMarkerToThread','ck-comment-marker','destroy','isCollapsed','editor','_detachCommentThread','upcast','from','_initAriaMarkerChangeAnnouncements','addCommentThread','consumable','setUnlinkedAt','hasContent','isResolved','pluginName','once','_attachArchivedThread','hasDomSelection','_hasTargetInContent','listenTo','createPositionBefore','getRange','differ','change','refreshVisibility','getItems','isEqual','addComment','destroyed','ignoreResolvedComments','createElement','_threads','commands','context','_handleMarkerAddAndRemove','render','init','hasMarkerForId','change:isReadOnly','hasCommentThread','comments','_handleThreadMarker','substring','requires','createRange','_threadToController','set','join','addMarker:','LEAVE_COMMENT_ANNOUNCEMENT','collaboration.channelId','then','split','_getTextContext','dataDowncast','_initializeMarkerConverters','reconvertMarker','start','comment','markerName','isThreadsLoadingPaused','end','activeMarker','length','managedUsingOperations','editing','fetchCommentThread','announce','attachTo','dataToMarker','isAttached','schema','startsWith','conversion','removeMarker:','_reconvertMarkers','getCommentThreads','data','removeMarker','model','getChangedMarkers','registerAnnotation','elementToElement','plugins','item','view','_getTargetForId','getAllMarkersForId','ariaLiveAnnouncer','scrollToThreadMarker','affectsData','getByInnerView','updateMarker','low','getCommentThread','get','getAttribute','resolveCommentThread','size','add'];(function(_0x487b78,_0x3fb813){const _0x559210=function(_0x10fb40){while(--_0x10fb40){_0x487b78['push'](_0x487b78['shift']());}};_0x559210(++_0x3fb813);}(_0x3fb8,0x194));const _0x5592=function(_0x487b78,_0x3fb813){_0x487b78=_0x487b78-0x0;let _0x559210=_0x3fb8[_0x487b78];return _0x559210;};import{Plugin as _0x2853f4}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x49483b}from'ckeditor5/src/utils.js';import _0x4b39e9 from'./commentsrepository.js';import _0x4bf708 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x4fed77,getAllMarkersDomElementsSorted as _0x4a3d74}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x12ed9f from'../annotations/editorannotations.js';import _0x2829bf from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x11d093 from'./integrations/importword.js';import _0x148b4c from'../annotations/annotations.js';import{getTranslation as _0x263b22}from'../utils/common-translations.js';export default class r extends _0x2853f4{static get[_0x5592('0x17')](){return[_0x4b39e9,_0x12ed9f,_0x2829bf,_0x11d093];}static get[_0x5592('0x73')](){return'CommentsEditing';}constructor(_0x12f391){super(_0x12f391),this[_0x5592('0x1a')](_0x5592('0x28'),!0x0),_0x12f391[_0x5592('0x39')][_0x5592('0x74')](_0x5592('0x5a'),()=>this[_0x5592('0x28')]=!0x1),this['set'](_0x5592('0x2a'),null),this['on'](_0x5592('0x52'),(_0x4446a1,_0x38cd23,_0x25dc47,_0x58d44e)=>{const _0x3fb8ec=_0x25dc47?ot(_0x25dc47)['id']:null;if(_0x12f391[_0x5592('0x3b')][_0x5592('0x3')](()=>{if(_0x3fb8ec){const _0x31d97f=this[_0x5592('0x43')](_0x3fb8ec);for(const _0x37b611 of _0x31d97f)_0x12f391[_0x5592('0x2d')][_0x5592('0x24')](_0x37b611);}if(_0x58d44e){const {id:_0x46420a}=ot(_0x58d44e),_0x2fca0c=this['getAllMarkersForId'](_0x46420a);for(const _0xf4eae2 of _0x2fca0c)_0x12f391[_0x5592('0x2d')][_0x5592('0x24')](_0xf4eae2);}}),_0x3fb8ec){const _0x1083c9=_0x12f391[_0x5592('0x3f')][_0x5592('0x4b')](_0x4b39e9)[_0x5592('0x4a')](_0x3fb8ec);_0x1083c9&&_0x1083c9[_0x5592('0x72')]&&this[_0x5592('0x45')](_0x3fb8ec);}}),this[_0x5592('0x6d')]();}[_0x5592('0x10')](){const _0x37d973=this[_0x5592('0x69')],_0x4fdb3b=_0x37d973[_0x5592('0x3f')][_0x5592('0x4b')](_0x4b39e9),_0x8d3028=_0x37d973['config']['get'](_0x5592('0x1e'));_0x37d973[_0x5592('0xc')][_0x5592('0x4f')](_0x5592('0x6e'),new _0x4bf708(_0x37d973)),this[_0x5592('0x78')](_0x37d973,_0x5592('0x12'),(_0x3f0248,_0x5d772d,_0x78696)=>{_0x4fdb3b['switchReadOnly'](_0x78696,_0x37d973['config'][_0x5592('0x4b')](_0x5592('0x1e')));}),this[_0x5592('0x78')](_0x4fdb3b,tt(_0x5592('0x6e'),_0x8d3028),(_0x2903ce,{threadId:_0x2603a9})=>{const _0x2d51b3=this[_0x5592('0x69')][_0x5592('0x3f')]['get'](_0x4b39e9)['getCommentThread'](_0x2603a9);_0x2d51b3&&_0x2d51b3[_0x5592('0x54')]&&this[_0x5592('0x75')](_0x2603a9);}),this['listenTo'](_0x4fdb3b,tt('removeCommentThread',_0x8d3028),(_0x43a9a9,{threadId:_0x5d33dd})=>{_0x37d973[_0x5592('0x3b')]['enqueueChange']({'isUndoable':!0x1},_0x2cb74a=>{const _0x5eef4f=this['getAllMarkersForId'](_0x5d33dd);for(const _0x153178 of _0x5eef4f)_0x2cb74a[_0x5592('0x3a')](_0x153178);});}),this[_0x5592('0x78')](_0x4fdb3b,tt(_0x5592('0x4d'),_0x8d3028),(_0x43b5ae,{threadId:_0x2023dc})=>{(this['_reconvertMarkers'](_0x2023dc),this[_0x5592('0x69')][_0x5592('0x2d')][_0x5592('0x41')][_0x5592('0x76')])&&(this[_0x5592('0x69')][_0x5592('0x3f')]['get'](_0x4b39e9)[_0x5592('0x4a')](_0x2023dc)[_0x5592('0x54')]||this[_0x5592('0x69')][_0x5592('0x2d')][_0x5592('0x41')]['focus']());},{'priority':_0x5592('0x49')}),this[_0x5592('0x78')](_0x4fdb3b,tt('reopenCommentThread',_0x8d3028),(_0x3b1e7f,{threadId:_0x9276f})=>{this[_0x5592('0x37')](_0x9276f);},{'priority':'low'}),this[_0x5592('0x78')](_0x4fdb3b,tt(_0x5592('0x7'),_0x8d3028),(_0x394dcd,{threadId:_0x32a162,isFromAdapter:_0x119949})=>{const _0x719249=this[_0x5592('0x43')](_0x32a162);if(_0x119949||0x0==_0x719249['length']||!_0x4fdb3b[_0x5592('0x13')](_0x32a162))return;0x1===_0x4fdb3b['getCommentThread'](_0x32a162)[_0x5592('0x2b')]&&_0x37d973[_0x5592('0x3b')]['enqueueChange']({'isUndoable':!0x1},_0x3969c7=>{for(const _0x27751e of _0x719249)_0x3969c7[_0x5592('0x48')](_0x27751e,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x5592('0x23')](),this[_0x5592('0xe')]();}[_0x5592('0x67')](){const _0x8e44f1=this['editor'][_0x5592('0x3f')]['get'](_0x4b39e9),_0x539642=this[_0x5592('0x69')]['config'][_0x5592('0x4b')]('collaboration.channelId');for(const _0x454a34 of _0x8e44f1[_0x5592('0x38')]({'channelId':_0x539642}))_0x8e44f1[_0x5592('0x6a')](_0x454a34['id']),_0x8e44f1[_0x5592('0xb')][_0x5592('0x64')](_0x454a34['id']);super[_0x5592('0x67')]();}['hasMarkerForId'](_0x1ee547){return this[_0x5592('0x43')](_0x1ee547)[_0x5592('0x2b')]>0x0;}[_0x5592('0x43')](_0x57957c){const _0x27ec94=[];for(const _0x38c229 of this[_0x5592('0x69')][_0x5592('0x3b')][_0x5592('0x5e')])_0x38c229['name'][_0x5592('0x34')]('comment:'+_0x57957c)&&_0x27ec94[_0x5592('0x59')](_0x38c229);return _0x27ec94;}[_0x5592('0x45')](_0x3f1637){const _0x47e625=this['_getTargetForId'](_0x3f1637);_0x47e625&&setTimeout(()=>{this[_0x5592('0x2a')]&&ot(this[_0x5592('0x2a')])['id']===_0x3f1637&&_0x49483b({'target':_0x47e625[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5592('0x37')](_0x269a40){this[_0x5592('0x69')]['model'][_0x5592('0x3')](()=>{for(const _0x373c9f of this[_0x5592('0x43')](_0x269a40))this['editor'][_0x5592('0x2d')]['reconvertMarker'](_0x373c9f);});}[_0x5592('0x75')](_0x479321){const _0x3374f7=this['editor'][_0x5592('0x3f')][_0x5592('0x4b')](_0x4b39e9),_0x5547a8=this[_0x5592('0x69')][_0x5592('0x3f')][_0x5592('0x4b')](_0x12ed9f),_0x329de0=_0x3374f7['getCommentThread'](_0x479321);if(!_0x329de0[_0x5592('0x32')]){const _0x484fe9=_0x329de0[_0x5592('0x30')](()=>this[_0x5592('0x42')](_0x329de0['id']));_0x5547a8[_0x5592('0x3d')](_0x484fe9),_0x329de0[_0x5592('0x77')]=!0x1;}}[_0x5592('0x23')](){const _0x589760=this['editor'];_0x589760[_0x5592('0x35')][_0x5592('0x5b')]('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x38286e,_0x25beb3)=>{const {id:_0x304b8c}=ot(_0x38286e[_0x5592('0x27')]),_0x1fcf26=_0x589760['plugins'][_0x5592('0x4b')](_0x4b39e9)[_0x5592('0x4a')](_0x304b8c),_0x1205f0=this[_0x5592('0x2a')]&&ot(this['activeMarker'])['id']===_0x304b8c;if(_0x1fcf26&&_0x1fcf26[_0x5592('0x72')]&&!_0x1205f0&&_0x38286e[_0x5592('0x40')])return _0x25beb3[_0x5592('0x6f')]['consume'](_0x38286e[_0x5592('0x40')],_0x5592('0x1c')+_0x38286e[_0x5592('0x27')]),_0x25beb3[_0x5592('0x6f')]['consume'](_0x38286e[_0x5592('0x40')],_0x5592('0x36')+_0x38286e['markerName']),null;const _0x1d3414=[_0x5592('0x66')];return _0x1205f0&&_0x1d3414[_0x5592('0x59')]('ck-comment-marker--active'),{'classes':_0x1d3414,'attributes':{'data-comment':_0x304b8c}};}}),_0x589760[_0x5592('0x35')][_0x5592('0x5b')](_0x5592('0x22'))['markerToData']({'model':_0x5592('0x26'),'view':(_0x3aa39e,{options:_0x717bbb})=>{const _0x194d1e=_0x589760[_0x5592('0x3f')][_0x5592('0x4b')](_0x4b39e9),_0x3d0865=_0x589760['model']['markers']['get'](_0x3aa39e),{id:_0xc8df4,part:_0x2cb497}=ot(_0x3aa39e);if(_0x3d0865&&!_0x3d0865[_0x5592('0x46')])return null;if(_0x717bbb[_0x5592('0x9')]){const _0x1515d0=_0x194d1e[_0x5592('0x4a')](_0xc8df4);if(_0x1515d0&&_0x1515d0[_0x5592('0x72')])return null;}return{'group':_0x5592('0x26'),'name':_0x2cb497?_0xc8df4+':'+_0x2cb497:_0xc8df4};}}),_0x589760[_0x5592('0x35')][_0x5592('0x5b')]('upcast')[_0x5592('0x3e')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x7a748,{writer:_0x50ec32})=>_0x50ec32[_0x5592('0xa')]('$marker',{'data-name':_0x5592('0x5c')+_0x7a748[_0x5592('0x4c')]('id')})}),_0x589760[_0x5592('0x35')][_0x5592('0x5b')](_0x5592('0x6b'))[_0x5592('0x31')]({'view':_0x5592('0x26')});}[_0x5592('0xe')](){const _0x489291=this[_0x5592('0x69')],_0x36785d=_0x489291['plugins'][_0x5592('0x4b')](_0x4b39e9),_0x249f1f=new Set(),_0x41be9a=new Set();_0x489291[_0x5592('0x3b')][_0x5592('0x62')]['registerPostFixer'](_0x3fd565=>{let _0xfcde6=!0x1;for(const {name:_0x2ea5de,data:_0x1878c1}of _0x489291[_0x5592('0x3b')]['document'][_0x5592('0x2')][_0x5592('0x3c')]()){const {group:_0x22f72f,id:_0x35a7ed}=ot(_0x2ea5de);let _0x4d2ce1=_0x1878c1['newRange'];if(_0x5592('0x26')!==_0x22f72f||!_0x4d2ce1)continue;const _0x293fed=_0x5592('0x51')===_0x4d2ce1[_0x5592('0x5d')][_0x5592('0x57')];_0x293fed||(_0x4d2ce1=et(_0x4d2ce1,_0x489291[_0x5592('0x3b')]),!_0x4d2ce1||_0x4d2ce1[_0x5592('0x68')]||!_0x1878c1[_0x5592('0x56')]||_0x4d2ce1[_0x5592('0x6')](_0x1878c1[_0x5592('0x56')]))?_0x489291[_0x5592('0x3b')][_0x5592('0x71')](_0x4d2ce1)&&!_0x293fed?this[_0x5592('0x28')]?_0x249f1f['add'](_0x2ea5de):this[_0x5592('0x15')](_0x2ea5de,_0x35a7ed):(_0x41be9a[_0x5592('0x4f')](_0x2ea5de),_0x249f1f[_0x5592('0x64')](_0x2ea5de),_0x3fd565[_0x5592('0x3a')](_0x2ea5de),_0xfcde6=!0x0):(_0x3fd565[_0x5592('0x48')](_0x2ea5de,{'range':_0x4d2ce1}),_0xfcde6=!0x0);}return _0xfcde6;}),this['on']('change:isThreadsLoadingPaused',(_0xdbcc40,_0x305fcb,_0x23f082)=>{if(!_0x23f082&&_0x249f1f[_0x5592('0x4e')])for(const _0xd9e83a of _0x249f1f){const {id:_0x3316b2}=ot(_0xd9e83a);_0x249f1f[_0x5592('0x64')](_0xd9e83a),_0x489291[_0x5592('0x3b')][_0x5592('0x5e')][_0x5592('0x4b')](_0xd9e83a)&&this[_0x5592('0x15')](_0xd9e83a,_0x3316b2);}}),this[_0x5592('0x78')](_0x489291['model']['document'],_0x5592('0x3'),(_0x556157,_0x90d84c)=>{for(const {name:_0x21613a,data:{newRange:_0x5574f3}}of _0x489291[_0x5592('0x3b')]['document'][_0x5592('0x2')][_0x5592('0x3c')]()){const {group:_0x563e14,id:_0x3b5efa}=ot(_0x21613a);if(_0x5592('0x26')!==_0x563e14)continue;const _0x14ed10=_0x36785d[_0x5592('0x4a')](_0x3b5efa),_0x4132e9=this[_0x5592('0x11')](_0x3b5efa);_0x14ed10&&(_0x14ed10[_0x5592('0x77')]||_0x489291[_0x5592('0x2d')]['view']['once']('render',()=>{const _0x346f51=_0x489291[_0x5592('0x3f')][_0x5592('0x4b')](_0x148b4c),_0x4885f1=_0x36785d[_0x5592('0x19')]['get'](_0x14ed10)[_0x5592('0x41')];_0x346f51[_0x5592('0x47')](_0x4885f1)[_0x5592('0x4')]();},{'priority':_0x5592('0x49')}),_0x14ed10[_0x5592('0x77')]=_0x4132e9||!!_0x5574f3),_0x5574f3||(_0x41be9a['add'](_0x21613a),_0x249f1f[_0x5592('0x64')](_0x21613a));}if(_0x90d84c[_0x5592('0x55')])for(const _0x1b5b22 of _0x41be9a){const {id:_0x2c76b6}=ot(_0x1b5b22),_0x11e276=_0x36785d[_0x5592('0x4a')](_0x2c76b6),_0x1c3761=this[_0x5592('0x11')](_0x2c76b6);_0x249f1f['delete'](_0x1b5b22),!_0x11e276||_0x1c3761||_0x11e276[_0x5592('0x54')]||_0x11e276[_0x5592('0x70')](new Date());}_0x41be9a[_0x5592('0x63')]();});}['_getTargetForId'](_0x2226c4){const _0x3320bc=this[_0x5592('0x69')],_0x2f8445=this[_0x5592('0x43')](_0x2226c4);return _0x4a3d74(_0x3320bc[_0x5592('0x2d')],_0x2f8445);}[_0x5592('0x21')](_0x535a7a){const _0x1868f3=this['getAllMarkersForId'](_0x535a7a);let _0x23dfd0='',_0x65bc=!0x1;for(const _0x24512a of _0x1868f3){const _0x11ed55=_0x24512a[_0x5592('0x1')]();for(const _0x530ec5 of Array[_0x5592('0x6c')](_0x11ed55[_0x5592('0x5')]()))_0x530ec5['is']('$textProxy')?(_0x23dfd0&&_0x65bc&&(_0x23dfd0+='\x20',_0x65bc=!0x1),_0x23dfd0+=_0x530ec5[_0x5592('0x39')]):_0x65bc=!0x0;_0x65bc=!0x0;}return _0x23dfd0[_0x5592('0x16')](0x0,0x96);}[_0x5592('0x65')](_0xc7f035,_0x2a299c){const _0xdd483e=this[_0x5592('0x69')],_0x407727=_0xdd483e[_0x5592('0x3f')][_0x5592('0x4b')](_0x4b39e9);let _0x261c9d=_0x407727[_0x5592('0x4a')](_0x2a299c);const _0x14b42a=_0xdd483e[_0x5592('0x53')][_0x5592('0x4b')]('collaboration.channelId'),_0x32d10e=_0xdd483e[_0x5592('0x3f')][_0x5592('0x4b')](_0x12ed9f);if(_0x261c9d&&(_0x261c9d[_0x5592('0x54')]&&_0x261c9d[_0x5592('0x70')](null),_0x261c9d[_0x5592('0x32')]))return _0x261c9d;return!this[_0x5592('0x43')](_0x2a299c)[0x0][_0x5592('0x2c')]?_0xdd483e['editing'][_0x5592('0x41')][_0x5592('0x74')](_0x5592('0xf'),()=>{if(_0x407727[_0x5592('0x4a')](_0x2a299c))return;const _0xf8b8e1=_0xdd483e[_0x5592('0x3f')][_0x5592('0x4b')](_0x148b4c);_0x261c9d=_0x407727[_0x5592('0x61')]({'channelId':_0x14b42a,'threadId':_0x2a299c,'target':()=>this[_0x5592('0x42')](_0x2a299c),'context':{'type':_0x5592('0x5f'),'value':this['_getTextContext'](_0x2a299c)}});const _0x55f2e1=_0x407727['_threadToController'][_0x5592('0x4b')](_0x261c9d)[_0x5592('0x41')],_0x541a60=_0xf8b8e1['getByInnerView'](_0x55f2e1);_0x541a60&&_0x32d10e['registerAnnotation'](_0x541a60);},{'priority':_0x5592('0x49')}):_0x407727[_0x5592('0x2e')]({'channelId':_0x14b42a,'threadId':_0x2a299c})[_0x5592('0x1f')](_0x621b6b=>{if(_0x5592('0x8')!==_0xdd483e[_0x5592('0x60')]){if(_0x261c9d=_0x621b6b,_0x261c9d&&!_0x261c9d[_0x5592('0x32')]){const _0x3e816b=_0x261c9d[_0x5592('0x30')](()=>this['_getTargetForId'](_0x2a299c));_0x32d10e[_0x5592('0x3d')](_0x3e816b),_0x261c9d[_0x5592('0x72')]&&this['_reconvertMarkers'](_0x2a299c);}else{if(!_0x261c9d){const _0x1926c5=this[_0x5592('0x43')](_0x2a299c);_0xdd483e['model'][_0x5592('0x3')](_0x38cbec=>{for(const _0x5761ab of _0x1926c5)_0x38cbec[_0x5592('0x3a')](_0x5761ab);});}}}}),_0x261c9d;}[_0x5592('0x15')](_0x3d4e0c,_0x245ee1){const _0x12792f=this[_0x5592('0x65')](_0x3d4e0c,_0x245ee1);_0x12792f&&!_0x12792f[_0x5592('0xd')]&&_0x12792f['setContext']({'type':_0x5592('0x5f'),'value':this[_0x5592('0x21')](_0x245ee1)});}['_initAriaMarkerChangeAnnouncements'](){const _0x232ffa=this[_0x5592('0x69')];_0x4fed77(_0x232ffa['model'],({left:_0x329856,entered:_0x250515})=>{const _0x24e4b7=[];for(const _0x5d67d6 of _0x329856)if(rt(_0x5d67d6)){_0x24e4b7[_0x5592('0x59')](_0x263b22(_0x232ffa['locale'],_0x5592('0x1d')));break;}for(const _0x26b42e of _0x250515)if(rt(_0x26b42e)){_0x24e4b7['push'](_0x263b22(_0x232ffa['locale'],'ENTER_COMMENT_ANNOUNCEMENT'));break;}_0x24e4b7['length']&&_0x232ffa['ui'][_0x5592('0x44')][_0x5592('0x2f')](_0x5592('0x14'),_0x24e4b7[_0x5592('0x1b')]('\x20'));});}}function tt(_0x2aba8f,_0x31e584){return _0x31e584?_0x2aba8f+':'+_0x31e584:_0x2aba8f;}function ot(_0x68795a){const _0x143cfc=_0x68795a[_0x5592('0x20')](':');return{'group':_0x143cfc[0x0],'id':_0x143cfc[0x1],'part':_0x143cfc[0x2]};}function et(_0xcef0f9,_0xd04f2){const _0x26924e=_0xd04f2[_0x5592('0x33')],_0x2b99a3=_0xd04f2[_0x5592('0x18')](_0xcef0f9[_0x5592('0x25')]);for(const _0x259e42 of _0xcef0f9['getWalker']()){const {type:_0x1fd2bf,item:_0x2e85f2,nextPosition:_0x1f7617}=_0x259e42;if(_0x5592('0x5f')===_0x1fd2bf||_0x26924e[_0x5592('0x50')](_0x2e85f2)){const _0x2d43f3=_0xd04f2[_0x5592('0x0')](_0x2e85f2);_0x2b99a3[_0x5592('0x68')]&&(_0x2b99a3[_0x5592('0x25')]=_0x2d43f3),_0x2b99a3[_0x5592('0x29')]=_0x1f7617;}}return _0x2b99a3;}function rt(_0x3e957f){return _0x5592('0x26')===ot(_0x3e957f['name'])[_0x5592('0x58')];}