@ckeditor/ckeditor5-comments 0.0.0-nightly-20230908.0 → 0.0.0-nightly-20230909.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 _0x21c4=['add','content','bindTemplate','clear','focusTracker','createCollection','destroy','_mutationObserver','targetRect','ck-annotation-wrapper--active','_updateHeight','div','Esc','clientHeight','setTemplate','keystrokes','listenTo','length','set','height','mainView','detach','element','attach','render','focus','type','isActive'];(function(_0x5bfb67,_0x21c490){const _0x5c389b=function(_0xd2db79){while(--_0xd2db79){_0x5bfb67['push'](_0x5bfb67['shift']());}};_0x5c389b(++_0x21c490);}(_0x21c4,0x1e6));const _0x5c38=function(_0x5bfb67,_0x21c490){_0x5bfb67=_0x5bfb67-0x0;let _0x5c389b=_0x21c4[_0x5bfb67];return _0x5c389b;};import{View as _0x424527}from'ckeditor5/src/ui';import{FocusTracker as _0x1e99a9,KeystrokeHandler as _0x481a81,uid as _0x43f5e2}from'ckeditor5/src/utils';import _0x525e41 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x424527{constructor(_0x5b0616,_0xccf490){super(_0x5b0616),this['id']=_0x43f5e2(),this[_0x5c38('0x16')]=new _0x1e99a9(),this[_0x5c38('0x5')]=new _0x481a81(),this[_0x5c38('0x5')][_0x5c38('0x8')](_0x5c38('0x2'),(_0x531272,_0x209152)=>this['fire'](_0x5c38('0x2'),_0x209152)),this['set'](_0x5c38('0x1a'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5c38('0x8')](_0x5c38('0x9'),0x0),this[_0x5c38('0x8')](_0x5c38('0x11'),!0x1),this['set']('isDirty',!0x1),this[_0x5c38('0x8')](_0x5c38('0x7'),0x0),this[_0x5c38('0x8')](_0x5c38('0x10'),''),this[_0x5c38('0x19')]=_0x525e41(()=>this[_0x5c38('0x0')]()),this[_0x5c38('0x13')]=this[_0x5c38('0x17')](),this[_0x5c38('0x13')][_0x5c38('0x12')](_0xccf490),this[_0x5c38('0xa')]=_0xccf490;const _0x24e360=this[_0x5c38('0x14')];this[_0x5c38('0x4')]({'tag':_0x5c38('0x1'),'attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x24e360['if']('isActive',_0x5c38('0x1b'))],'tabindex':-0x1},'children':this['content']});}['render'](){super[_0x5c38('0xe')](),this[_0x5c38('0x16')][_0x5c38('0x12')](this['element']),this['keystrokes'][_0x5c38('0x6')](this[_0x5c38('0xc')]),this[_0x5c38('0x19')][_0x5c38('0xd')](this['element']);}[_0x5c38('0x18')](){this[_0x5c38('0x13')][_0x5c38('0x15')](),this['keystrokes'][_0x5c38('0x18')](),this[_0x5c38('0x16')][_0x5c38('0x18')](),this[_0x5c38('0x19')][_0x5c38('0xb')](),super[_0x5c38('0x18')]();}[_0x5c38('0xf')](){this['element'][_0x5c38('0xf')]();}['_updateHeight'](){const _0x1c0770=this['element'][_0x5c38('0x3')];_0x1c0770&&(this[_0x5c38('0x9')]=_0x1c0770);}}
23
+ const _0x3bd5=['_mutationObserver','focus','add','type','render','fire','destroy','attach','set','ck-annotation-wrapper--active','setTemplate','keystrokes','clear','listenTo','content','div','ck-annotation-wrapper','detach','height','isDirty','_updateHeight','isActive','targetRect','clientHeight','length','element','createCollection'];(function(_0xa00aa2,_0x3bd581){const _0xa9035f=function(_0x416ecb){while(--_0x416ecb){_0xa00aa2['push'](_0xa00aa2['shift']());}};_0xa9035f(++_0x3bd581);}(_0x3bd5,0x8e));const _0xa903=function(_0xa00aa2,_0x3bd581){_0xa00aa2=_0xa00aa2-0x0;let _0xa9035f=_0x3bd5[_0xa00aa2];return _0xa9035f;};import{View as _0x4d3249}from'ckeditor5/src/ui';import{FocusTracker as _0x15dcb6,KeystrokeHandler as _0x59f6a3,uid as _0x523f67}from'ckeditor5/src/utils';import _0x51d96f from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x4d3249{constructor(_0x4c261f,_0x26551d){super(_0x4c261f),this['id']=_0x523f67(),this['focusTracker']=new _0x15dcb6(),this['keystrokes']=new _0x59f6a3(),this[_0xa903('0x4')]['set']('Esc',(_0x8f8ae,_0x2d73e5)=>this[_0xa903('0x19')]('Esc',_0x2d73e5)),this[_0xa903('0x1')](_0xa903('0xf'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0xa903('0x1')](_0xa903('0xb'),0x0),this[_0xa903('0x1')](_0xa903('0xe'),!0x1),this[_0xa903('0x1')](_0xa903('0xc'),!0x1),this[_0xa903('0x1')](_0xa903('0x11'),0x0),this[_0xa903('0x1')](_0xa903('0x17'),''),this[_0xa903('0x14')]=_0x51d96f(()=>this[_0xa903('0xd')]()),this['content']=this[_0xa903('0x13')](),this[_0xa903('0x7')][_0xa903('0x16')](_0x26551d),this['mainView']=_0x26551d;const _0x4a91da=this['bindTemplate'];this[_0xa903('0x3')]({'tag':_0xa903('0x8'),'attributes':{'class':['ck',_0xa903('0x9'),'ck-rounded-corners',_0x4a91da['if'](_0xa903('0xe'),_0xa903('0x2'))],'tabindex':-0x1},'children':this[_0xa903('0x7')]});}[_0xa903('0x18')](){super[_0xa903('0x18')](),this['focusTracker'][_0xa903('0x16')](this[_0xa903('0x12')]),this[_0xa903('0x4')][_0xa903('0x6')](this[_0xa903('0x12')]),this['_mutationObserver'][_0xa903('0x0')](this[_0xa903('0x12')]);}[_0xa903('0x1a')](){this[_0xa903('0x7')][_0xa903('0x5')](),this[_0xa903('0x4')]['destroy'](),this['focusTracker'][_0xa903('0x1a')](),this[_0xa903('0x14')][_0xa903('0xa')](),super[_0xa903('0x1a')]();}[_0xa903('0x15')](){this['element']['focus']();}[_0xa903('0xd')](){const _0x4446dc=this[_0xa903('0x12')][_0xa903('0x10')];_0x4446dc&&(this[_0xa903('0xb')]=_0x4446dc);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x23ac=['attach','bind','ck-sidebar-item','clear','destroy','content','top','bottom','ck-sidebar-item--no-animation','_targetTop','createCollection','element','height','_mutationObserver','updateHeight','set','isAnimationDisabled','render'];(function(_0x29d174,_0x23ac6d){const _0x19fff4=function(_0xafa838){while(--_0xafa838){_0x29d174['push'](_0x29d174['shift']());}};_0x19fff4(++_0x23ac6d);}(_0x23ac,0x113));const _0x19ff=function(_0x29d174,_0x23ac6d){_0x29d174=_0x29d174-0x0;let _0x19fff4=_0x23ac[_0x29d174];return _0x19fff4;};import{View as _0x460fb3}from'ckeditor5/src/ui';import{toUnit as _0x4bdd82}from'ckeditor5/src/utils';import _0x46bfb3 from'../../utils/createmutationobserver';const At=_0x4bdd82('px');export default class C extends _0x460fb3{constructor(_0x33506e){super(_0x33506e),this['set']('top',0x0),this[_0x19ff('0xa')]('height',0x0),this[_0x19ff('0xe')](_0x19ff('0x2'))['to'](this,_0x19ff('0x1'),this,_0x19ff('0x7'),(_0x3372c7,_0x44659c)=>_0x3372c7+_0x44659c),this[_0x19ff('0xa')](_0x19ff('0xb'),!0x1),this[_0x19ff('0x8')]=_0x46bfb3(()=>this['updateHeight']()),this[_0x19ff('0x4')]=null,this[_0x19ff('0x0')]=this[_0x19ff('0x5')]();const _0x20d3e4=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':[_0x19ff('0xf'),_0x20d3e4['to'](_0x19ff('0xb'),_0x2ab8c0=>_0x2ab8c0?_0x19ff('0x3'):'')],'style':{'top':_0x20d3e4['to'](_0x19ff('0x1'),_0x251bda=>At(_0x251bda))}},'children':this[_0x19ff('0x0')]});}[_0x19ff('0xc')](){super[_0x19ff('0xc')](),this[_0x19ff('0x8')][_0x19ff('0xd')](this['element']);}[_0x19ff('0x9')](){const _0x4e807b=this[_0x19ff('0x6')]['clientHeight'];_0x4e807b&&(this['height']=_0x4e807b);}[_0x19ff('0x11')](){this[_0x19ff('0x0')][_0x19ff('0x10')](),this[_0x19ff('0x8')]['detach'](),super[_0x19ff('0x11')]();}}
23
+ const _0x42eb=['setTemplate','top','bottom','isAnimationDisabled','set','_targetTop','clear','height','ck-sidebar-item','updateHeight','element','content','render','createCollection','bind','div','destroy','attach','clientHeight','bindTemplate','_mutationObserver'];(function(_0x5d1eee,_0x42ebbd){const _0x2afce5=function(_0x4e60ef){while(--_0x4e60ef){_0x5d1eee['push'](_0x5d1eee['shift']());}};_0x2afce5(++_0x42ebbd);}(_0x42eb,0x1eb));const _0x2afc=function(_0x5d1eee,_0x42ebbd){_0x5d1eee=_0x5d1eee-0x0;let _0x2afce5=_0x42eb[_0x5d1eee];return _0x2afce5;};import{View as _0x2862c8}from'ckeditor5/src/ui';import{toUnit as _0x4940ed}from'ckeditor5/src/utils';import _0x47ba45 from'../../utils/createmutationobserver';const At=_0x4940ed('px');export default class C extends _0x2862c8{constructor(_0x368f7c){super(_0x368f7c),this[_0x2afc('0x11')](_0x2afc('0xe'),0x0),this[_0x2afc('0x11')]('height',0x0),this[_0x2afc('0x6')](_0x2afc('0xf'))['to'](this,'top',this,_0x2afc('0x14'),(_0x4e1a92,_0x50265f)=>_0x4e1a92+_0x50265f),this['set']('isAnimationDisabled',!0x1),this[_0x2afc('0xc')]=_0x47ba45(()=>this['updateHeight']()),this[_0x2afc('0x12')]=null,this['content']=this[_0x2afc('0x5')]();const _0x127412=this[_0x2afc('0xb')];this[_0x2afc('0xd')]({'tag':_0x2afc('0x7'),'attributes':{'class':[_0x2afc('0x0'),_0x127412['to'](_0x2afc('0x10'),_0x5d1d90=>_0x5d1d90?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x127412['to'](_0x2afc('0xe'),_0x3a07fd=>At(_0x3a07fd))}},'children':this[_0x2afc('0x3')]});}['render'](){super[_0x2afc('0x4')](),this[_0x2afc('0xc')][_0x2afc('0x9')](this[_0x2afc('0x2')]);}[_0x2afc('0x1')](){const _0x189199=this['element'][_0x2afc('0xa')];_0x189199&&(this[_0x2afc('0x14')]=_0x189199);}[_0x2afc('0x8')](){this['content'][_0x2afc('0x13')](),this[_0x2afc('0xc')]['detach'](),super[_0x2afc('0x8')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d3e=['ck-reset','minHeight','div','ck-sidebar','setTemplate','bindTemplate','list','class','createCollection','set','number'];(function(_0x4e83c1,_0x5d3e5c){const _0x239968=function(_0x475684){while(--_0x475684){_0x4e83c1['push'](_0x4e83c1['shift']());}};_0x239968(++_0x5d3e5c);}(_0x5d3e,0x1ae));const _0x2399=function(_0x4e83c1,_0x5d3e5c){_0x4e83c1=_0x4e83c1-0x0;let _0x239968=_0x5d3e[_0x4e83c1];return _0x239968;};import{View as _0x3ef5a0}from'ckeditor5/src/ui';import{toUnit as _0x3df487}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x3df487('px');export default class T extends _0x3ef5a0{constructor(_0x18275b){super(_0x18275b);const _0x5a8540=this[_0x2399('0x4')];this[_0x2399('0x8')](_0x2399('0x0'),0x0),this[_0x2399('0x8')](_0x2399('0x6'),''),this[_0x2399('0x5')]=this[_0x2399('0x7')](),this[_0x2399('0x3')]({'tag':_0x2399('0x1'),'attributes':{'class':['ck',_0x2399('0x2'),_0x2399('0xa'),_0x5a8540['to'](_0x2399('0x6'))],'style':{'minHeight':_0x5a8540['to'](_0x2399('0x0'),_0x4707a7=>_0x2399('0x9')==typeof _0x4707a7?At(_0x4707a7+0xa):null)}},'children':this[_0x2399('0x5')]});}}
23
+ const _0xf0b7=['class','createCollection','set','list','ck-reset','minHeight','div','bindTemplate','ck-sidebar'];(function(_0x461426,_0xf0b704){const _0x47737a=function(_0x3c092a){while(--_0x3c092a){_0x461426['push'](_0x461426['shift']());}};_0x47737a(++_0xf0b704);}(_0xf0b7,0x18a));const _0x4773=function(_0x461426,_0xf0b704){_0x461426=_0x461426-0x0;let _0x47737a=_0xf0b7[_0x461426];return _0x47737a;};import{View as _0xef54d5}from'ckeditor5/src/ui';import{toUnit as _0x26e890}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x26e890('px');export default class T extends _0xef54d5{constructor(_0x3c8a4d){super(_0x3c8a4d);const _0x2d5090=this[_0x4773('0x0')];this[_0x4773('0x4')](_0x4773('0x7'),0x0),this['set'](_0x4773('0x2'),''),this['list']=this[_0x4773('0x3')](),this['setTemplate']({'tag':_0x4773('0x8'),'attributes':{'class':['ck',_0x4773('0x1'),_0x4773('0x6'),_0x2d5090['to'](_0x4773('0x2'))],'style':{'minHeight':_0x2d5090['to'](_0x4773('0x7'),_0x35020d=>'number'==typeof _0x35020d?At(_0x35020d+0xa):null)}},'children':this[_0x4773('0x5')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1472=['cancel','from','addAnnotation','add','plugins','refresh','detach','_integrateWithEditorAnnotations','ready','isAttached','context','uiUpdate','stop','setActiveAnnotation','register','listenTo','removeEventListener','_activeAnnotation','WideSidebar','container','getOrderedSelectedAnnotations','_detachFromContainer','_annotations','_editorAnnotations','activeAnnotation','change:container','wideSidebar','rearrange','destroy','hasDomSelection','get','attach','widesidebar-detach-not-attached','remove','ck-sidebar--wide','editors','_destroyEditorAnnotationsIntegration','off','addEventListener','refreshPositioning','_refreshPositioningDebounced','stopListening','high','annotations','resize','EditorAnnotations','updateTargetRect','_attachToContainer','requires','pluginName','blur'];(function(_0x89e8f3,_0x1472af){const _0x2498ce=function(_0x4e0872){while(--_0x4e0872){_0x89e8f3['push'](_0x89e8f3['shift']());}};_0x2498ce(++_0x1472af);}(_0x1472,0x88));const _0x2498=function(_0x89e8f3,_0x1472af){_0x89e8f3=_0x89e8f3-0x0;let _0x2498ce=_0x1472[_0x89e8f3];return _0x2498ce;};import{ContextPlugin as _0x27309d,Context as _0x3124eb}from'ckeditor5/src/core';import _0x5bddf5 from'./annotationsuis';import _0x49f64c from'./sidebar';import{CKEditorError as _0x2ea740,Collection as _0x210b23}from'ckeditor5/src/utils';import{debounce as _0x3a664d}from'lodash-es';import _0x526d90 from'./editorannotations';export default class i extends _0x27309d{static get[_0x2498('0xe')](){return[_0x49f64c,_0x5bddf5];}static get[_0x2498('0xf')](){return _0x2498('0x23');}constructor(_0x572839){super(_0x572839),this[_0x2498('0x1a')]=!0x1,this['set'](_0x2498('0x29'),null),this[_0x2498('0x9')]=null,this[_0x2498('0x28')]=new _0x210b23(),this['_refreshPositioningDebounced']=_0x3a664d(()=>{this[_0x2498('0x9')]['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x16783a=this[_0x2498('0x1b')][_0x2498('0x15')][_0x2498('0x2f')](_0x5bddf5),_0xebb463=this[_0x2498('0x1b')][_0x2498('0x15')][_0x2498('0x2f')](_0x49f64c);_0x16783a[_0x2498('0x1f')]('wideSidebar',this),_0xebb463[_0x2498('0x24')]&&_0x16783a['switchTo'](_0x2498('0x2b'));}[_0x2498('0x1e')](_0x5ab44b){if(_0x5ab44b===this[_0x2498('0x29')])return;const _0x263dd1=this[_0x2498('0x1b')][_0x2498('0x15')]['get'](_0x49f64c);_0x263dd1[_0x2498('0x22')]=_0x5ab44b;const _0x2a1963=this[_0x2498('0x29')];this[_0x2498('0x29')]=_0x5ab44b,_0x263dd1['refresh']({'blurredAnnotation':_0x2a1963,'activatedAnnotation':this[_0x2498('0x29')]});}[_0x2498('0x30')](_0x40fafc){this[_0x2498('0x9')]=_0x40fafc;const _0x4cd29f=this['context']['plugins'][_0x2498('0x2f')](_0x49f64c);if(_0x4cd29f[_0x2498('0x27')]=_0x40fafc,this[_0x2498('0x1a')])throw new _0x2ea740('widesidebar-attach-already-attached',this);this[_0x2498('0x1a')]=!0x0,this[_0x2498('0x20')](_0x4cd29f,'set:container',()=>{this['detach'](),this[_0x2498('0x20')](_0x4cd29f,_0x2498('0x2a'),_0x5c7c9e=>{_0x5c7c9e[_0x2498('0x3')](),this[_0x2498('0x30')](_0x40fafc);});}),_0x4cd29f[_0x2498('0xd')]({'viewClass':_0x2498('0x0')});const _0x3c33f3=_0x567723=>{_0x567723[_0x2498('0xc')](),_0x4cd29f[_0x2498('0x13')](_0x567723);};for(const _0x1c5901 of _0x40fafc)_0x3c33f3(_0x1c5901);this[_0x2498('0x20')](_0x40fafc,'add',(_0x7df2cd,_0x1e72e1)=>{_0x3c33f3(_0x1e72e1);}),this[_0x2498('0x20')](_0x40fafc,_0x2498('0x32'),(_0x468f4c,_0x45d0d3,_0x1b3bbe)=>{_0x4cd29f[_0x2498('0x2c')]({'removedAnnotation':_0x45d0d3,'previousAnnotation':_0x40fafc['get'](_0x1b3bbe-0x1),'nextAnnotation':_0x40fafc[_0x2498('0x2f')](_0x1b3bbe+0x1)}),_0x45d0d3===this[_0x2498('0x29')]&&this[_0x2498('0x1e')](null);},{'priority':_0x2498('0x8')}),this[_0x2498('0x20')](_0x40fafc,'focus',(_0x413ae3,_0x8a7cb1)=>{this[_0x2498('0x1e')](_0x8a7cb1);}),this[_0x2498('0x20')](_0x40fafc,_0x2498('0x10'),()=>{this['setActiveAnnotation'](null);});const _0x3587dc=this[_0x2498('0x1b')]instanceof _0x3124eb?this[_0x2498('0x1b')][_0x2498('0x1')]:new _0x210b23([this['context']]);for(const _0xc09e5a of _0x3587dc)this[_0x2498('0x18')](_0xc09e5a);this['listenTo'](_0x3587dc,_0x2498('0x14'),(_0x42ea61,_0x558062)=>{this['listenTo'](_0x558062,_0x2498('0x19'),()=>{this[_0x2498('0x18')](_0x558062);});}),this[_0x2498('0x20')](_0x3587dc,_0x2498('0x32'),(_0x16e81e,_0x1460eb)=>{_0x1460eb['plugins']['has'](_0x2498('0xb'))&&this[_0x2498('0x2')](_0x1460eb[_0x2498('0x15')][_0x2498('0x2f')](_0x2498('0xb')));}),window[_0x2498('0x4')](_0x2498('0xa'),this[_0x2498('0x6')]),this[_0x2498('0x9')][_0x2498('0x5')]();}[_0x2498('0x17')](){if(!this['isAttached'])throw new _0x2ea740(_0x2498('0x31'),this);this[_0x2498('0x1e')](null);const _0x1ebeec=this[_0x2498('0x1b')][_0x2498('0x15')][_0x2498('0x2f')](_0x49f64c);_0x1ebeec[_0x2498('0x26')](this['annotations']),this['stopListening'](_0x1ebeec),this[_0x2498('0x7')](this[_0x2498('0x9')]),this[_0x2498('0x1b')]instanceof _0x3124eb&&this[_0x2498('0x7')](this[_0x2498('0x1b')]['editors']);for(const _0x3facd5 of Array[_0x2498('0x12')](this[_0x2498('0x28')]))this[_0x2498('0x2')](_0x3facd5);window[_0x2498('0x21')](_0x2498('0xa'),this[_0x2498('0x6')]),this['_refreshPositioningDebounced'][_0x2498('0x11')](),this[_0x2498('0x29')]=null,this[_0x2498('0x1a')]=!0x1,this[_0x2498('0x9')]=null;}[_0x2498('0x2d')](){this[_0x2498('0x1a')]&&this['detach']();}['_integrateWithEditorAnnotations'](_0xff1ab8){const _0x28ec7b=_0xff1ab8[_0x2498('0x15')][_0x2498('0x2f')](_0x526d90);if(!_0x28ec7b)return;const _0x24cd29=()=>{const _0x4a7578=_0x28ec7b[_0x2498('0x25')]({'annotations':this[_0x2498('0x9')],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4a7578[0x0]||null);};this[_0x2498('0x20')](_0x28ec7b,_0x2498('0x16'),_0x24cd29),this['listenTo'](_0x28ec7b,'blur',(_0x24918c,{isAnnotationTracked:_0x4adbb5})=>{this['activeAnnotation']&&_0x4adbb5(this[_0x2498('0x29')])&&this[_0x2498('0x1e')](null);}),this[_0x2498('0x20')](_0x28ec7b,_0x2498('0x1c'),()=>{this[_0x2498('0x6')]();}),this[_0x2498('0x20')](this[_0x2498('0x9')],_0x2498('0x10'),_0x1ffb67=>{_0x28ec7b[_0x2498('0x2e')]()&&(_0x24cd29(),_0x1ffb67[_0x2498('0x1d')]());},{'priority':_0x2498('0x8')}),this[_0x2498('0x28')][_0x2498('0x14')](_0x28ec7b);}['_destroyEditorAnnotationsIntegration'](_0x2de446){this[_0x2498('0x7')](_0x2de446),this[_0x2498('0x28')]['remove'](_0x2de446);}}
23
+ const _0x47a9=['hasDomSelection','set:container','get','getOrderedSelectedAnnotations','updateTargetRect','set','refreshPositioning','stopListening','blur','editors','_destroyEditorAnnotationsIntegration','resize','isAttached','_integrateWithEditorAnnotations','_annotations','stop','activeAnnotation','listenTo','from','setActiveAnnotation','cancel','rearrange','removeEventListener','plugins','ck-sidebar--wide','annotations','WideSidebar','remove','requires','focus','_refreshPositioningDebounced','addAnnotation','add','_editorAnnotations','attach','EditorAnnotations','wideSidebar','widesidebar-attach-already-attached','refresh','context','off','_activeAnnotation','uiUpdate','register','detach','container','high','ready'];(function(_0x3f612d,_0x47a937){const _0x185915=function(_0x469b18){while(--_0x469b18){_0x3f612d['push'](_0x3f612d['shift']());}};_0x185915(++_0x47a937);}(_0x47a9,0x16e));const _0x1859=function(_0x3f612d,_0x47a937){_0x3f612d=_0x3f612d-0x0;let _0x185915=_0x47a9[_0x3f612d];return _0x185915;};import{ContextPlugin as _0xec89e7,Context as _0x33f83b}from'ckeditor5/src/core';import _0x3de453 from'./annotationsuis';import _0x1a250a from'./sidebar';import{CKEditorError as _0x365a1e,Collection as _0x211758}from'ckeditor5/src/utils';import{debounce as _0xf29f2b}from'lodash-es';import _0x53c614 from'./editorannotations';export default class i extends _0xec89e7{static get[_0x1859('0x2e')](){return[_0x1a250a,_0x3de453];}static get['pluginName'](){return _0x1859('0x2c');}constructor(_0x19d96a){super(_0x19d96a),this[_0x1859('0x1e')]=!0x1,this[_0x1859('0x17')](_0x1859('0x22'),null),this['annotations']=null,this[_0x1859('0x3')]=new _0x211758(),this[_0x1859('0x0')]=_0xf29f2b(()=>{this[_0x1859('0x2b')][_0x1859('0x18')]();},0xfa,{'leading':!0x1});}['init'](){const _0x5efc9c=this[_0x1859('0x9')][_0x1859('0x29')]['get'](_0x3de453),_0x26620b=this['context'][_0x1859('0x29')]['get'](_0x1a250a);_0x5efc9c[_0x1859('0xd')](_0x1859('0x6'),this),_0x26620b[_0x1859('0xf')]&&_0x5efc9c['switchTo'](_0x1859('0x6'));}[_0x1859('0x25')](_0x500ab8){if(_0x500ab8===this['activeAnnotation'])return;const _0x4765f6=this['context'][_0x1859('0x29')][_0x1859('0x14')](_0x1a250a);_0x4765f6[_0x1859('0xb')]=_0x500ab8;const _0x393bed=this[_0x1859('0x22')];this[_0x1859('0x22')]=_0x500ab8,_0x4765f6['refresh']({'blurredAnnotation':_0x393bed,'activatedAnnotation':this[_0x1859('0x22')]});}[_0x1859('0x4')](_0x1af58c){this['annotations']=_0x1af58c;const _0x478684=this[_0x1859('0x9')]['plugins'][_0x1859('0x14')](_0x1a250a);if(_0x478684[_0x1859('0x20')]=_0x1af58c,this['isAttached'])throw new _0x365a1e(_0x1859('0x7'),this);this['isAttached']=!0x0,this['listenTo'](_0x478684,_0x1859('0x13'),()=>{this[_0x1859('0xe')](),this[_0x1859('0x23')](_0x478684,'change:container',_0x278678=>{_0x278678[_0x1859('0xa')](),this[_0x1859('0x4')](_0x1af58c);});}),_0x478684['_attachToContainer']({'viewClass':_0x1859('0x2a')});const _0x563d1a=_0x28d66=>{_0x28d66[_0x1859('0x16')](),_0x478684[_0x1859('0x1')](_0x28d66);};for(const _0x5d46fa of _0x1af58c)_0x563d1a(_0x5d46fa);this['listenTo'](_0x1af58c,_0x1859('0x2'),(_0x3e3336,_0x206f48)=>{_0x563d1a(_0x206f48);}),this['listenTo'](_0x1af58c,_0x1859('0x2d'),(_0x360cdb,_0x1bd5b1,_0xf0fda6)=>{_0x478684[_0x1859('0x27')]({'removedAnnotation':_0x1bd5b1,'previousAnnotation':_0x1af58c[_0x1859('0x14')](_0xf0fda6-0x1),'nextAnnotation':_0x1af58c['get'](_0xf0fda6+0x1)}),_0x1bd5b1===this[_0x1859('0x22')]&&this[_0x1859('0x25')](null);},{'priority':_0x1859('0x10')}),this[_0x1859('0x23')](_0x1af58c,_0x1859('0x2f'),(_0x3d9ecc,_0x47e894)=>{this[_0x1859('0x25')](_0x47e894);}),this['listenTo'](_0x1af58c,_0x1859('0x1a'),()=>{this[_0x1859('0x25')](null);});const _0x4e74db=this['context']instanceof _0x33f83b?this['context'][_0x1859('0x1b')]:new _0x211758([this[_0x1859('0x9')]]);for(const _0x5f0a94 of _0x4e74db)this[_0x1859('0x1f')](_0x5f0a94);this[_0x1859('0x23')](_0x4e74db,_0x1859('0x2'),(_0x434197,_0x499b13)=>{this[_0x1859('0x23')](_0x499b13,_0x1859('0x11'),()=>{this['_integrateWithEditorAnnotations'](_0x499b13);});}),this[_0x1859('0x23')](_0x4e74db,_0x1859('0x2d'),(_0x1cd7f0,_0x288bd2)=>{_0x288bd2[_0x1859('0x29')]['has']('EditorAnnotations')&&this[_0x1859('0x1c')](_0x288bd2[_0x1859('0x29')][_0x1859('0x14')](_0x1859('0x5')));}),window['addEventListener'](_0x1859('0x1d'),this['_refreshPositioningDebounced']),this[_0x1859('0x2b')][_0x1859('0x18')]();}[_0x1859('0xe')](){if(!this['isAttached'])throw new _0x365a1e('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1fb4f6=this[_0x1859('0x9')][_0x1859('0x29')][_0x1859('0x14')](_0x1a250a);_0x1fb4f6['_detachFromContainer'](this[_0x1859('0x2b')]),this[_0x1859('0x19')](_0x1fb4f6),this[_0x1859('0x19')](this['annotations']),this[_0x1859('0x9')]instanceof _0x33f83b&&this[_0x1859('0x19')](this[_0x1859('0x9')]['editors']);for(const _0x5e226f of Array[_0x1859('0x24')](this[_0x1859('0x3')]))this[_0x1859('0x1c')](_0x5e226f);window[_0x1859('0x28')](_0x1859('0x1d'),this['_refreshPositioningDebounced']),this[_0x1859('0x0')][_0x1859('0x26')](),this[_0x1859('0x22')]=null,this[_0x1859('0x1e')]=!0x1,this[_0x1859('0x2b')]=null;}['destroy'](){this['isAttached']&&this['detach']();}[_0x1859('0x1f')](_0x554d47){const _0xcddcb8=_0x554d47[_0x1859('0x29')][_0x1859('0x14')](_0x53c614);if(!_0xcddcb8)return;const _0x35ae0d=()=>{const _0x2a563e=_0xcddcb8[_0x1859('0x15')]({'annotations':this[_0x1859('0x2b')],'activeAnnotation':this['activeAnnotation']});this[_0x1859('0x25')](_0x2a563e[0x0]||null);};this['listenTo'](_0xcddcb8,_0x1859('0x8'),_0x35ae0d),this[_0x1859('0x23')](_0xcddcb8,'blur',(_0x2fa849,{isAnnotationTracked:_0x5353da})=>{this[_0x1859('0x22')]&&_0x5353da(this['activeAnnotation'])&&this[_0x1859('0x25')](null);}),this[_0x1859('0x23')](_0xcddcb8,_0x1859('0xc'),()=>{this[_0x1859('0x0')]();}),this[_0x1859('0x23')](this[_0x1859('0x2b')],'blur',_0x4c82b4=>{_0xcddcb8[_0x1859('0x12')]()&&(_0x35ae0d(),_0x4c82b4[_0x1859('0x21')]());},{'priority':'high'}),this['_editorAnnotations'][_0x1859('0x2')](_0xcddcb8);}['_destroyEditorAnnotationsIntegration'](_0x3d359d){this['stopListening'](_0x3d359d),this[_0x1859('0x3')]['remove'](_0x3d359d);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1552=['_hasContent','backward','refresh','$textProxy','_itemIsContent','getLastMatchingPosition','item','document','model','editor','element','start','getItems','_trimToContent','execute','getRanges','createRange'];(function(_0x175dd5,_0x155200){const _0x168e75=function(_0x5f070e){while(--_0x5f070e){_0x175dd5['push'](_0x175dd5['shift']());}};_0x168e75(++_0x155200);}(_0x1552,0xc6));const _0x168e=function(_0x175dd5,_0x155200){_0x175dd5=_0x175dd5-0x0;let _0x168e75=_0x1552[_0x175dd5];return _0x168e75;};import{Command as _0xb90de}from'ckeditor5/src/core';import{uid as _0xc00781}from'ckeditor5/src/utils';export default class q extends _0xb90de{[_0x168e('0x8')](){const _0x318720=this[_0x168e('0xf')][_0x168e('0xe')][_0x168e('0xd')]['selection'];for(const _0x2b54a7 of _0x318720[_0x168e('0x4')]())if(this[_0x168e('0x6')](_0x2b54a7))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}[_0x168e('0x3')]({threadId:_0x3a9760=_0xc00781()}={}){const _0x30af6=this[_0x168e('0xf')][_0x168e('0xe')],_0x5e3ce3=[];for(const _0x10d488 of _0x30af6[_0x168e('0xd')]['selection']['getRanges']())this[_0x168e('0x6')](_0x10d488)&&_0x5e3ce3['push'](this[_0x168e('0x2')](_0x10d488));_0x30af6['change'](_0x15e8d1=>{for(const _0x3cce0d of _0x5e3ce3){const _0x102965=_0xc00781()['substr'](0x1,0x5),_0x51aed3='comment:'+_0x3a9760+':'+_0x102965;_0x15e8d1['addMarker'](_0x51aed3,{'range':_0x3cce0d,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x168e('0x6')](_0x4adb09){for(const _0x3cca92 of _0x4adb09[_0x168e('0x1')]())if(this[_0x168e('0xa')](_0x3cca92))return!0x0;return!0x1;}[_0x168e('0xa')](_0x1f09be){return _0x1f09be['is'](_0x168e('0x9'))||this[_0x168e('0xf')][_0x168e('0xe')]['schema']['isObject'](_0x1f09be)&&!_0x1f09be['is'](_0x168e('0x10'),'tableCell');}['_trimToContent'](_0x4a05c9){const _0x24c3b6=_0x28cd6e=>!this[_0x168e('0xa')](_0x28cd6e[_0x168e('0xc')]),_0x3326e3=_0x4a05c9[_0x168e('0x0')][_0x168e('0xb')](_0x24c3b6),_0x2448cd=_0x4a05c9['end'][_0x168e('0xb')](_0x24c3b6,{'direction':_0x168e('0x7')});return this[_0x168e('0xf')][_0x168e('0xe')][_0x168e('0x5')](_0x3326e3,_0x2448cd);}}
23
+ const _0x25d8=['end','_hasContent','_trimToContent','backward','model','isObject','$textProxy','editor','execute','comment:','_itemIsContent','isEnabled','getRanges','tableCell','refresh','getLastMatchingPosition','item','document','addMarker'];(function(_0x5ce29c,_0x25d862){const _0x195879=function(_0x2bb008){while(--_0x2bb008){_0x5ce29c['push'](_0x5ce29c['shift']());}};_0x195879(++_0x25d862);}(_0x25d8,0x1ea));const _0x1958=function(_0x5ce29c,_0x25d862){_0x5ce29c=_0x5ce29c-0x0;let _0x195879=_0x25d8[_0x5ce29c];return _0x195879;};import{Command as _0x592141}from'ckeditor5/src/core';import{uid as _0x6b055f}from'ckeditor5/src/utils';export default class q extends _0x592141{[_0x1958('0x12')](){const _0x3fc08b=this[_0x1958('0xb')][_0x1958('0x8')]['document']['selection'];for(const _0x20ac80 of _0x3fc08b[_0x1958('0x10')]())if(this['_hasContent'](_0x20ac80))return void(this[_0x1958('0xf')]=!0x0);this[_0x1958('0xf')]=!0x1;}[_0x1958('0xc')]({threadId:_0x9aeb35=_0x6b055f()}={}){const _0x1c1410=this['editor'][_0x1958('0x8')],_0x57b07a=[];for(const _0x4da6f8 of _0x1c1410[_0x1958('0x2')]['selection'][_0x1958('0x10')]())this['_hasContent'](_0x4da6f8)&&_0x57b07a['push'](this[_0x1958('0x6')](_0x4da6f8));_0x1c1410['change'](_0xe3a36b=>{for(const _0x3e6c10 of _0x57b07a){const _0x54390a=_0x6b055f()['substr'](0x1,0x5),_0x5a49a0=_0x1958('0xd')+_0x9aeb35+':'+_0x54390a;_0xe3a36b[_0x1958('0x3')](_0x5a49a0,{'range':_0x3e6c10,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x1958('0x5')](_0x392565){for(const _0x504520 of _0x392565['getItems']())if(this['_itemIsContent'](_0x504520))return!0x0;return!0x1;}[_0x1958('0xe')](_0x2babf5){return _0x2babf5['is'](_0x1958('0xa'))||this[_0x1958('0xb')][_0x1958('0x8')]['schema'][_0x1958('0x9')](_0x2babf5)&&!_0x2babf5['is']('element',_0x1958('0x11'));}[_0x1958('0x6')](_0x24ff75){const _0x333476=_0x50ec21=>!this['_itemIsContent'](_0x50ec21[_0x1958('0x1')]),_0x3ae63d=_0x24ff75['start'][_0x1958('0x0')](_0x333476),_0x5dd9d0=_0x24ff75[_0x1958('0x4')]['getLastMatchingPosition'](_0x333476,{'direction':_0x1958('0x7')});return this[_0x1958('0xb')]['model']['createRange'](_0x3ae63d,_0x5dd9d0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e38=['_calculatePosition','requires','reopenCommentThread','collection','listenTo','add','resolvedThreads','has','highest','CommentsArchive','pluginName','activate','length','get','removeCommentThread','addCommentThread','init','context','getCommentThread','remove','resolveCommentThread','findIndex'];(function(_0x29e68b,_0x4e384d){const _0x442fb1=function(_0x53c15b){while(--_0x53c15b){_0x29e68b['push'](_0x29e68b['shift']());}};_0x442fb1(++_0x4e384d);}(_0x4e38,0x114));const _0x442f=function(_0x29e68b,_0x4e384d){_0x29e68b=_0x29e68b-0x0;let _0x442fb1=_0x4e38[_0x29e68b];return _0x442fb1;};import{ContextPlugin as _0x1b43d1}from'ckeditor5/src/core';import{Collection as _0x4e0b4d}from'ckeditor5/src/utils';import _0x4ac6e0 from'./commentsrepository';import _0x1d93db from'../annotations/annotations';export default class p extends _0x1b43d1{static get[_0x442f('0x14')](){return _0x442f('0x13');}static get[_0x442f('0xb')](){return[_0x4ac6e0,_0x1d93db];}constructor(_0x366a05){super(_0x366a05),this[_0x442f('0x10')]=new _0x4e0b4d();}[_0x442f('0x4')](){const _0x4d3a44=this[_0x442f('0x5')],_0x111db9=_0x4d3a44['plugins'][_0x442f('0x1')](_0x4ac6e0),_0x5c2b0a=_0x4d3a44['plugins']['get'](_0x1d93db);this['listenTo'](_0x111db9,_0x442f('0x3'),(_0x20f748,{threadId:_0x597a9b,resolvedAt:_0x39454f,deletedAt:_0x1be7cd})=>{if(_0x39454f&&!_0x1be7cd){const _0x4d5340=_0x111db9[_0x442f('0x6')](_0x597a9b);this[_0x442f('0x10')][_0x442f('0xf')](_0x4d5340,this[_0x442f('0xa')](_0x39454f));}}),this[_0x442f('0xe')](_0x111db9,_0x442f('0x8'),(_0x815e11,{threadId:_0x3f2f4e,resolvedAt:_0x5ad455})=>{const _0x835ddd=_0x111db9['getCommentThread'](_0x3f2f4e);this[_0x442f('0x10')][_0x442f('0xf')](_0x835ddd,this[_0x442f('0xa')](_0x5ad455));},{'priority':_0x442f('0x12')}),this[_0x442f('0xe')](_0x111db9,_0x442f('0xc'),(_0x3fa83d,{threadId:_0x53dc31})=>{const _0x1acf3f=_0x111db9[_0x442f('0x6')](_0x53dc31);this[_0x442f('0x10')][_0x442f('0x11')](_0x1acf3f)&&this['resolvedThreads'][_0x442f('0x7')](_0x1acf3f);},{'priority':'highest'}),this[_0x442f('0xe')](_0x111db9,_0x442f('0x2'),(_0x454503,{threadId:_0x36e3ea})=>{const _0x3c7ce3=_0x111db9[_0x442f('0x6')](_0x36e3ea);this[_0x442f('0x10')][_0x442f('0x11')](_0x3c7ce3)&&this[_0x442f('0x10')][_0x442f('0x7')](_0x3c7ce3);},{'priority':_0x442f('0x12')}),this[_0x442f('0xe')](_0x5c2b0a[_0x442f('0xd')],'focus',(_0x549ef3,_0x42c155)=>{_0x42c155['isActive']=!0x0,_0x5c2b0a[_0x442f('0x15')](_0x42c155);});}['_calculatePosition'](_0x136f93){const _0x5be1a6=[...this[_0x442f('0x10')]][_0x442f('0x9')](_0x3e7417=>_0x3e7417['resolvedAt']<_0x136f93);return _0x5be1a6>-0x1?_0x5be1a6:this[_0x442f('0x10')][_0x442f('0x0')];}}
23
+ const _0x3348=['requires','listenTo','resolvedThreads','plugins','context','resolvedAt','collection','findIndex','getCommentThread','highest','reopenCommentThread','add','focus','_calculatePosition','init','remove','get','pluginName','isActive','resolveCommentThread','length','removeCommentThread','has'];(function(_0x3c9bd3,_0x334886){const _0x319f19=function(_0x5244e8){while(--_0x5244e8){_0x3c9bd3['push'](_0x3c9bd3['shift']());}};_0x319f19(++_0x334886);}(_0x3348,0x162));const _0x319f=function(_0x3c9bd3,_0x334886){_0x3c9bd3=_0x3c9bd3-0x0;let _0x319f19=_0x3348[_0x3c9bd3];return _0x319f19;};import{ContextPlugin as _0x1367be}from'ckeditor5/src/core';import{Collection as _0x303a05}from'ckeditor5/src/utils';import _0x1374d0 from'./commentsrepository';import _0x5017d9 from'../annotations/annotations';export default class p extends _0x1367be{static get[_0x319f('0x8')](){return'CommentsArchive';}static get[_0x319f('0xe')](){return[_0x1374d0,_0x5017d9];}constructor(_0x2b0b6b){super(_0x2b0b6b),this[_0x319f('0x10')]=new _0x303a05();}[_0x319f('0x5')](){const _0x227748=this[_0x319f('0x12')],_0x31c05e=_0x227748[_0x319f('0x11')][_0x319f('0x7')](_0x1374d0),_0x2dcd4e=_0x227748[_0x319f('0x11')][_0x319f('0x7')](_0x5017d9);this[_0x319f('0xf')](_0x31c05e,'addCommentThread',(_0x11fbf5,{threadId:_0x599eac,resolvedAt:_0x5acf41,deletedAt:_0x2e5b22})=>{if(_0x5acf41&&!_0x2e5b22){const _0x1486db=_0x31c05e['getCommentThread'](_0x599eac);this['resolvedThreads'][_0x319f('0x2')](_0x1486db,this[_0x319f('0x4')](_0x5acf41));}}),this[_0x319f('0xf')](_0x31c05e,_0x319f('0xa'),(_0x196a8e,{threadId:_0x19abb6,resolvedAt:_0x27de6c})=>{const _0x58eef3=_0x31c05e['getCommentThread'](_0x19abb6);this['resolvedThreads'][_0x319f('0x2')](_0x58eef3,this[_0x319f('0x4')](_0x27de6c));},{'priority':_0x319f('0x0')}),this[_0x319f('0xf')](_0x31c05e,_0x319f('0x1'),(_0x355232,{threadId:_0x18385d})=>{const _0x3c90fb=_0x31c05e[_0x319f('0x16')](_0x18385d);this[_0x319f('0x10')][_0x319f('0xd')](_0x3c90fb)&&this['resolvedThreads']['remove'](_0x3c90fb);},{'priority':_0x319f('0x0')}),this[_0x319f('0xf')](_0x31c05e,_0x319f('0xc'),(_0x2dc070,{threadId:_0x49f5b0})=>{const _0x4cef81=_0x31c05e[_0x319f('0x16')](_0x49f5b0);this[_0x319f('0x10')][_0x319f('0xd')](_0x4cef81)&&this[_0x319f('0x10')][_0x319f('0x6')](_0x4cef81);},{'priority':_0x319f('0x0')}),this['listenTo'](_0x2dcd4e[_0x319f('0x14')],_0x319f('0x3'),(_0x1350c2,_0x25546f)=>{_0x25546f[_0x319f('0x9')]=!0x0,_0x2dcd4e['activate'](_0x25546f);});}[_0x319f('0x4')](_0x1ac3f7){const _0x2d73d9=[...this[_0x319f('0x10')]][_0x319f('0x15')](_0x4d10a5=>_0x4d10a5[_0x319f('0x13')]<_0x1ac3f7);return _0x2d73d9>-0x1?_0x2d73d9:this[_0x319f('0x10')][_0x319f('0xb')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33a6=['focusTracker','classList','children','_calculatePosition','collection','get','plugins','_threadToController','panelView','componentFactory','_pendingThreads','_createArchiveUIDropdown','channelId','stopListening','contains','config','add','commentsArchiveView','editor','push','commentsArchive','init','_visibleAnnotations','length','focusableElements','extendTemplate','innerView','resolvedAt','listenTo','findIndex','find','indexOf','set','mainView','position','isVisible','annotationViews','_handleAnnotationFocusableElements','locale','pluginName','ck-body','splice','requires','ck-comments-archive-dropdown','change:isOpen','COMMENTS_ARCHIVE','view','buttonView','collaboration.channelId','Annotations','remove','resolvedThreads','getByInnerView','filter'];(function(_0xe097c4,_0x33a60a){const _0xef9e8b=function(_0x2f25b6){while(--_0x2f25b6){_0xe097c4['push'](_0xe097c4['shift']());}};_0xef9e8b(++_0x33a60a);}(_0x33a6,0x9e));const _0xef9e=function(_0xe097c4,_0x33a60a){_0xe097c4=_0xe097c4-0x0;let _0xef9e8b=_0x33a6[_0xe097c4];return _0xef9e8b;};import'../../theme/commentsarchive.css';import{Plugin as _0x1a2a0f}from'ckeditor5/src/core';import{createDropdown as _0x3a2f2b,ViewCollection as _0x2851fc}from'ckeditor5/src/ui';import _0x18db92 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x1a79db}from'../utils/common-translations';import _0x4c8bbf from'./ui/view/commentsarchiveview';import _0xa40150 from'./commentsarchive';export default class a extends _0x1a2a0f{static get[_0xef9e('0x2b')](){return'CommentsArchiveUI';}static get[_0xef9e('0x2e')](){return[_0xa40150];}constructor(_0x5852e9){super(_0x5852e9),this['annotationViews']=new _0x2851fc(),this['_pendingThreads']=[];}[_0xef9e('0x19')](){this[_0xef9e('0x16')]['ui'][_0xef9e('0xd')][_0xef9e('0x14')](_0xef9e('0x18'),()=>this[_0xef9e('0xf')]());const _0x293111=this['editor'][_0xef9e('0xa')][_0xef9e('0x9')](_0xa40150),_0x126f95=this[_0xef9e('0x16')][_0xef9e('0xa')][_0xef9e('0x9')](_0xef9e('0x35')),_0x25d939=this[_0xef9e('0x16')]['plugins']['get']('CommentsRepository');this[_0xef9e('0x20')](_0x293111[_0xef9e('0x1')],'add',(_0x5dda5c,_0x28722f)=>{const _0xcba07c=this[_0xef9e('0x16')][_0xef9e('0x13')][_0xef9e('0x9')](_0xef9e('0x34'));if(!_0xcba07c||_0x28722f[_0xef9e('0x10')]===_0xcba07c){const _0x160b1c=this[_0xef9e('0x7')](_0x28722f[_0xef9e('0x1f')]),_0x45b003=_0x25d939[_0xef9e('0xb')][_0xef9e('0x9')](_0x28722f);if(!_0x45b003)return void this[_0xef9e('0xe')][_0xef9e('0x17')]({'thread':_0x28722f,'position':_0x160b1c});const _0x4a9e93=_0x126f95[_0xef9e('0x2')](_0x45b003[_0xef9e('0x32')]);_0x4a9e93[_0xef9e('0x27')]&&_0x126f95[_0xef9e('0x1a')][_0xef9e('0x0')](_0x4a9e93),this[_0xef9e('0x28')]['add'](_0x4a9e93[_0xef9e('0x32')],_0x160b1c);}}),this[_0xef9e('0x20')](_0x126f95[_0xef9e('0x8')],'add',(_0x3eaf14,_0x3fda8d)=>{const _0x557bdd=this['_pendingThreads'][_0xef9e('0x22')](({thread:_0xfc85e0})=>{const _0x2e5050=_0x25d939['_threadToController'][_0xef9e('0x9')](_0xfc85e0);return _0x2e5050&&_0x3fda8d[_0xef9e('0x1e')]===_0x2e5050[_0xef9e('0x32')];});_0x557bdd&&(this[_0xef9e('0x28')][_0xef9e('0x14')](_0x3fda8d[_0xef9e('0x32')],_0x557bdd[_0xef9e('0x26')]),this[_0xef9e('0xe')][_0xef9e('0x2d')](this[_0xef9e('0xe')][_0xef9e('0x23')](_0x557bdd),0x1));}),this[_0xef9e('0x20')](_0x293111[_0xef9e('0x1')],_0xef9e('0x0'),(_0x54e309,_0x12b921)=>{const _0x472163=this[_0xef9e('0x16')]['config'][_0xef9e('0x9')](_0xef9e('0x34'));if(!_0x472163||_0x12b921[_0xef9e('0x10')]===_0x472163){const _0x1d6eb6=_0x25d939[_0xef9e('0xb')][_0xef9e('0x9')](_0x12b921),_0x3fb7ba=_0x126f95['getByInnerView'](_0x1d6eb6[_0xef9e('0x32')]);this[_0xef9e('0x28')]['remove'](_0x3fb7ba[_0xef9e('0x32')]),this[_0xef9e('0x11')](_0x3fb7ba[_0xef9e('0x1c')]);}});}[_0xef9e('0x29')](_0x5284a5,_0x1e2606){for(const _0x25e5ad of _0x1e2606['focusableElements'])_0x25e5ad[_0xef9e('0x5')][_0xef9e('0x12')](_0xef9e('0x2c'))&&_0x5284a5['focusTracker'][_0xef9e('0x14')](_0x25e5ad);this[_0xef9e('0x20')](_0x1e2606['focusableElements'],'add',(_0x47f661,_0x564480)=>{_0x564480[_0xef9e('0x5')][_0xef9e('0x12')](_0xef9e('0x2c'))&&_0x5284a5[_0xef9e('0x4')][_0xef9e('0x14')](_0x564480);}),this[_0xef9e('0x20')](_0x1e2606['focusableElements'],_0xef9e('0x0'),(_0x50fd28,_0x204756)=>{_0x204756[_0xef9e('0x5')][_0xef9e('0x12')](_0xef9e('0x2c'))&&_0x5284a5[_0xef9e('0x4')]['remove'](_0x204756);});}[_0xef9e('0x7')](_0x156ace){const _0x39d651=this[_0xef9e('0x16')][_0xef9e('0x13')][_0xef9e('0x9')](_0xef9e('0x34')),_0x23ec37=[...this['editor'][_0xef9e('0xa')][_0xef9e('0x9')](_0xa40150)['resolvedThreads']][_0xef9e('0x3')](_0x5f58a5=>_0x5f58a5[_0xef9e('0x10')]!==_0x39d651)[_0xef9e('0x21')](_0x428c1e=>_0x428c1e[_0xef9e('0x1f')]<_0x156ace);return _0x23ec37>-0x1?_0x23ec37:this[_0xef9e('0x28')][_0xef9e('0x1b')];}['_createArchiveUIDropdown'](){const _0x9af950=this[_0xef9e('0x16')],_0x34a35f=this[_0xef9e('0x16')][_0xef9e('0xa')][_0xef9e('0x9')]('Annotations'),_0x1e0b76=_0x3a2f2b(_0x9af950[_0xef9e('0x2a')]);_0x1e0b76[_0xef9e('0x33')][_0xef9e('0x24')]({'icon':_0x18db92,'label':_0x1a79db(_0x9af950[_0xef9e('0x2a')],_0xef9e('0x31')),'tooltip':!0x0}),_0x1e0b76[_0xef9e('0xc')][_0xef9e('0x1d')]({'attributes':{'class':_0xef9e('0x2f')}}),_0x1e0b76['on'](_0xef9e('0x30'),(_0x4ba3d7,_0x3ba9b9,_0x1b5e6b)=>{this[_0xef9e('0x15')]||(this[_0xef9e('0x15')]=new _0x4c8bbf(_0x9af950[_0xef9e('0x2a')],this[_0xef9e('0x28')])),_0x1b5e6b?_0x1e0b76[_0xef9e('0xc')]['children']['add'](this['commentsArchiveView']):_0x1e0b76['panelView'][_0xef9e('0x6')]['remove'](this[_0xef9e('0x15')]);});for(const _0x123b7e of this[_0xef9e('0x28')]){const _0x4fe5e8=_0x34a35f[_0xef9e('0x2')](_0x123b7e[_0xef9e('0x25')]);this['_handleAnnotationFocusableElements'](_0x1e0b76,_0x4fe5e8);}return _0x1e0b76[_0xef9e('0x20')](this[_0xef9e('0x28')],_0xef9e('0x14'),(_0xccca1c,_0x447ba4)=>{const _0xb591ce=_0x34a35f[_0xef9e('0x2')](_0x447ba4[_0xef9e('0x25')]);this['_handleAnnotationFocusableElements'](_0x1e0b76,_0xb591ce);}),_0x1e0b76[_0xef9e('0x20')](this[_0xef9e('0x28')],_0xef9e('0x0'),(_0x18d656,_0x1bb09f)=>{const _0x29dc4e=_0x34a35f[_0xef9e('0x2')](_0x1bb09f[_0xef9e('0x25')]);for(const _0x8de185 of _0x29dc4e['focusableElements'])_0x8de185[_0xef9e('0x5')][_0xef9e('0x12')](_0xef9e('0x2c'))&&_0x1e0b76[_0xef9e('0x4')][_0xef9e('0x0')](_0x8de185);}),_0x1e0b76;}}
23
+ const _0x3932=['indexOf','_calculatePosition','mainView','classList','editor','locale','commentsArchiveView','extendTemplate','get','focusTracker','CommentsRepository','stopListening','annotationViews','set','push','_threadToController','requires','findIndex','buttonView','isVisible','length','getByInnerView','COMMENTS_ARCHIVE','children','ck-comments-archive-dropdown','innerView','pluginName','plugins','panelView','_handleAnnotationFocusableElements','_pendingThreads','remove','collaboration.channelId','ck-body','channelId','_createArchiveUIDropdown','collection','find','config','contains','_visibleAnnotations','componentFactory','resolvedThreads','position','view','CommentsArchiveUI','listenTo','resolvedAt','focusableElements','add'];(function(_0x1798a5,_0x39322d){const _0x25341c=function(_0x377f5e){while(--_0x377f5e){_0x1798a5['push'](_0x1798a5['shift']());}};_0x25341c(++_0x39322d);}(_0x3932,0xc7));const _0x2534=function(_0x1798a5,_0x39322d){_0x1798a5=_0x1798a5-0x0;let _0x25341c=_0x3932[_0x1798a5];return _0x25341c;};import'../../theme/commentsarchive.css';import{Plugin as _0x3f5a38}from'ckeditor5/src/core';import{createDropdown as _0x27dc41,ViewCollection as _0x4178a0}from'ckeditor5/src/ui';import _0x28ecf2 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x351c73}from'../utils/common-translations';import _0x140eea from'./ui/view/commentsarchiveview';import _0x3cef1a from'./commentsarchive';export default class a extends _0x3f5a38{static get[_0x2534('0x1b')](){return _0x2534('0x2e');}static get[_0x2534('0x11')](){return[_0x3cef1a];}constructor(_0x16410a){super(_0x16410a),this[_0x2534('0xd')]=new _0x4178a0(),this[_0x2534('0x1f')]=[];}['init'](){this[_0x2534('0x5')]['ui'][_0x2534('0x2a')][_0x2534('0x0')]('commentsArchive',()=>this[_0x2534('0x24')]());const _0x488daf=this[_0x2534('0x5')][_0x2534('0x1c')][_0x2534('0x9')](_0x3cef1a),_0x2aae15=this['editor']['plugins'][_0x2534('0x9')]('Annotations'),_0x28171c=this[_0x2534('0x5')][_0x2534('0x1c')][_0x2534('0x9')](_0x2534('0xb'));this[_0x2534('0x2f')](_0x488daf[_0x2534('0x2b')],_0x2534('0x0'),(_0x2836b6,_0x39ef72)=>{const _0x19a719=this['editor'][_0x2534('0x27')][_0x2534('0x9')](_0x2534('0x21'));if(!_0x19a719||_0x39ef72[_0x2534('0x23')]===_0x19a719){const _0x2f98e9=this['_calculatePosition'](_0x39ef72[_0x2534('0x30')]),_0x4ba762=_0x28171c[_0x2534('0x10')][_0x2534('0x9')](_0x39ef72);if(!_0x4ba762)return void this['_pendingThreads'][_0x2534('0xf')]({'thread':_0x39ef72,'position':_0x2f98e9});const _0x56db3b=_0x2aae15['getByInnerView'](_0x4ba762[_0x2534('0x2d')]);_0x56db3b[_0x2534('0x14')]&&_0x2aae15[_0x2534('0x29')]['remove'](_0x56db3b),this[_0x2534('0xd')][_0x2534('0x0')](_0x56db3b[_0x2534('0x2d')],_0x2f98e9);}}),this[_0x2534('0x2f')](_0x2aae15[_0x2534('0x25')],_0x2534('0x0'),(_0x2fcb32,_0x1a8f86)=>{const _0x5b3ada=this[_0x2534('0x1f')][_0x2534('0x26')](({thread:_0x2499f1})=>{const _0x1bee61=_0x28171c[_0x2534('0x10')][_0x2534('0x9')](_0x2499f1);return _0x1bee61&&_0x1a8f86[_0x2534('0x1a')]===_0x1bee61[_0x2534('0x2d')];});_0x5b3ada&&(this['annotationViews'][_0x2534('0x0')](_0x1a8f86[_0x2534('0x2d')],_0x5b3ada[_0x2534('0x2c')]),this[_0x2534('0x1f')]['splice'](this['_pendingThreads'][_0x2534('0x1')](_0x5b3ada),0x1));}),this[_0x2534('0x2f')](_0x488daf[_0x2534('0x2b')],_0x2534('0x20'),(_0x228514,_0x597974)=>{const _0x4c803a=this['editor'][_0x2534('0x27')][_0x2534('0x9')](_0x2534('0x21'));if(!_0x4c803a||_0x597974['channelId']===_0x4c803a){const _0xe92cf1=_0x28171c['_threadToController'][_0x2534('0x9')](_0x597974),_0x53f431=_0x2aae15['getByInnerView'](_0xe92cf1[_0x2534('0x2d')]);this[_0x2534('0xd')][_0x2534('0x20')](_0x53f431[_0x2534('0x2d')]),this[_0x2534('0xc')](_0x53f431[_0x2534('0x31')]);}});}[_0x2534('0x1e')](_0x28c552,_0x1dff77){for(const _0x40510c of _0x1dff77[_0x2534('0x31')])_0x40510c[_0x2534('0x4')][_0x2534('0x28')](_0x2534('0x22'))&&_0x28c552[_0x2534('0xa')][_0x2534('0x0')](_0x40510c);this[_0x2534('0x2f')](_0x1dff77['focusableElements'],_0x2534('0x0'),(_0x39916d,_0x5dbe1d)=>{_0x5dbe1d[_0x2534('0x4')][_0x2534('0x28')](_0x2534('0x22'))&&_0x28c552[_0x2534('0xa')][_0x2534('0x0')](_0x5dbe1d);}),this[_0x2534('0x2f')](_0x1dff77['focusableElements'],_0x2534('0x20'),(_0x4501bf,_0xde4e57)=>{_0xde4e57['classList']['contains']('ck-body')&&_0x28c552['focusTracker']['remove'](_0xde4e57);});}[_0x2534('0x2')](_0x557c35){const _0x5306bb=this[_0x2534('0x5')]['config']['get']('collaboration.channelId'),_0x18f000=[...this['editor']['plugins'][_0x2534('0x9')](_0x3cef1a)[_0x2534('0x2b')]]['filter'](_0x547223=>_0x547223[_0x2534('0x23')]!==_0x5306bb)[_0x2534('0x12')](_0x5bd359=>_0x5bd359[_0x2534('0x30')]<_0x557c35);return _0x18f000>-0x1?_0x18f000:this[_0x2534('0xd')][_0x2534('0x15')];}['_createArchiveUIDropdown'](){const _0x3d84e4=this[_0x2534('0x5')],_0x444ac0=this['editor'][_0x2534('0x1c')][_0x2534('0x9')]('Annotations'),_0x1ac342=_0x27dc41(_0x3d84e4[_0x2534('0x6')]);_0x1ac342[_0x2534('0x13')][_0x2534('0xe')]({'icon':_0x28ecf2,'label':_0x351c73(_0x3d84e4[_0x2534('0x6')],_0x2534('0x17')),'tooltip':!0x0}),_0x1ac342[_0x2534('0x1d')][_0x2534('0x8')]({'attributes':{'class':_0x2534('0x19')}}),_0x1ac342['on']('change:isOpen',(_0x3adc63,_0x3a1fac,_0x818652)=>{this['commentsArchiveView']||(this[_0x2534('0x7')]=new _0x140eea(_0x3d84e4[_0x2534('0x6')],this[_0x2534('0xd')])),_0x818652?_0x1ac342[_0x2534('0x1d')][_0x2534('0x18')][_0x2534('0x0')](this['commentsArchiveView']):_0x1ac342[_0x2534('0x1d')][_0x2534('0x18')][_0x2534('0x20')](this[_0x2534('0x7')]);});for(const _0x330e3f of this['annotationViews']){const _0x502f5b=_0x444ac0[_0x2534('0x16')](_0x330e3f[_0x2534('0x3')]);this[_0x2534('0x1e')](_0x1ac342,_0x502f5b);}return _0x1ac342[_0x2534('0x2f')](this[_0x2534('0xd')],_0x2534('0x0'),(_0x4692ed,_0x406713)=>{const _0x5165f3=_0x444ac0[_0x2534('0x16')](_0x406713[_0x2534('0x3')]);this['_handleAnnotationFocusableElements'](_0x1ac342,_0x5165f3);}),_0x1ac342[_0x2534('0x2f')](this[_0x2534('0xd')],_0x2534('0x20'),(_0x318cae,_0x16c940)=>{const _0x587c39=_0x444ac0['getByInnerView'](_0x16c940[_0x2534('0x3')]);for(const _0x15e241 of _0x587c39['focusableElements'])_0x15e241[_0x2534('0x4')][_0x2534('0x28')](_0x2534('0x22'))&&_0x1ac342[_0x2534('0xa')][_0x2534('0x20')](_0x15e241);}),_0x1ac342;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1896=['change','end','rootName','conversion','CommentsEditing','resolveCommentThread','switchReadOnly','delete','_detachCommentThread','context','editing','$graveyard','focus','split','comment','change:isThreadsLoadingPaused','editor','_getTargetForId','hasMarkerForId','destroyed','filter','upcast','plugins','set','hasContent','consume','markerToHighlight','hasDomSelection','_removedThread','createRange','root','_attachedThreads','registerPostFixer','removeCommentThread','dataToMarker','enqueueChange','_hasTargetInContent','$marker','differ','push','from','init','getCommentThreads','clear','size','activeMarker','markers','_threadToController','_getTextContext','ignoreResolvedComments','destroy','consumable','_initializeMarkerConverters','getWalker','getChangedMarkers','isThreadsLoadingPaused','low','setContext','isResolved','length','openNewCommentThread','createPositionBefore','has','once','change:activeMarker','_reconvertMarkers','document','comment:','getAllMarkersForId','collaboration.channelId','text','config','getCommentThread','requires','_handleThreadMarker','isCollapsed','removeMarker','isLocal','addComment','resolve','schema','_attachResolvedThread','ck-comment-marker','getItems','change:isReadOnly','map','createElement','attachTo','managedUsingOperations','hasCommentThread','get','item','scrollToThreadMarker','for','then','markerName','high','render','isObject','data','reopen','reconvertMarker','_autoResolvedThreads','editingDowncast','affectsData','view','listenTo','newRange','_threads','addCommentThread','substring','start','refreshVisibility','pluginName','commands','getByInnerView','add','model','_handleMarkerAddAndRemove','isEqual'];(function(_0xec41df,_0x189655){const _0x466aa6=function(_0x93e2e3){while(--_0x93e2e3){_0xec41df['push'](_0xec41df['shift']());}};_0x466aa6(++_0x189655);}(_0x1896,0xa2));const _0x466a=function(_0xec41df,_0x189655){_0xec41df=_0xec41df-0x0;let _0x466aa6=_0x1896[_0xec41df];return _0x466aa6;};import{Plugin as _0xa3ed26}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x550370}from'ckeditor5/src/utils';import _0x3cddb1 from'./commentsrepository';import _0x58c69f from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x34713b}from'ckeditor5-collaboration/src/collaboration-core';import _0x44f802 from'../annotations/editorannotations';import _0x4ef1cf from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x144c38 from'./integrations/importword';import _0x97cd7a from'../annotations/annotations';export default class r extends _0xa3ed26{static get[_0x466a('0x1f')](){return[_0x3cddb1,_0x44f802,_0x4ef1cf,_0x144c38];}static get[_0x466a('0x47')](){return _0x466a('0x52');}constructor(_0x21debd){super(_0x21debd),this[_0x466a('0x6a')]=null,this[_0x466a('0x3c')]=new Set(),this[_0x466a('0x65')](_0x466a('0xd'),!0x0),_0x21debd[_0x466a('0x39')][_0x466a('0x15')]('ready',()=>this[_0x466a('0xd')]=!0x1),this[_0x466a('0x65')]('activeMarker',null),this['on'](_0x466a('0x16'),(_0x4c37df,_0xf8fcbb,_0x2ddbb4,_0x3e671f)=>{const _0x233c32=_0x2ddbb4?tt(_0x2ddbb4)['id']:null;if(_0x21debd[_0x466a('0x4b')][_0x466a('0x4e')](()=>{if(_0x233c32){const _0x49459d=this[_0x466a('0x1a')](_0x233c32);for(const _0x4d5e3a of _0x49459d)_0x21debd[_0x466a('0x58')][_0x466a('0x3b')](_0x4d5e3a);}if(_0x3e671f){const {id:_0x38a8b6}=tt(_0x3e671f),_0x1c4869=this['getAllMarkersForId'](_0x38a8b6);for(const _0x41b687 of _0x1c4869)_0x21debd[_0x466a('0x58')]['reconvertMarker'](_0x41b687);}}),_0x233c32){const _0x53e669=_0x21debd[_0x466a('0x64')]['get'](_0x3cddb1)[_0x466a('0x1e')](_0x233c32);_0x53e669&&_0x53e669[_0x466a('0x10')]&&this[_0x466a('0x32')](_0x233c32);}}),this['_attachedThreads']=new Map();}[_0x466a('0x77')](){const _0x44f0c9=this[_0x466a('0x5e')],_0x4783ec=_0x44f0c9[_0x466a('0x64')][_0x466a('0x30')](_0x3cddb1),_0x4536af=_0x44f0c9['config'][_0x466a('0x30')](_0x466a('0x1b'));_0x44f0c9[_0x466a('0x48')][_0x466a('0x4a')](_0x466a('0x43'),new _0x58c69f(_0x44f0c9)),this['listenTo'](_0x44f0c9,_0x466a('0x2a'),(_0x2e8199,_0x134318,_0x4630e9)=>{_0x4783ec[_0x466a('0x54')](_0x4630e9,_0x44f0c9['config']['get'](_0x466a('0x1b')));}),this[_0x466a('0x40')](_0x4783ec,Z(_0x466a('0x43'),_0x4536af),(_0x475b42,{threadId:_0x3bf41d})=>{const _0x41653e=this[_0x466a('0x5e')]['plugins'][_0x466a('0x30')](_0x3cddb1)[_0x466a('0x1e')](_0x3bf41d);_0x41653e&&_0x41653e[_0x466a('0x10')]&&this[_0x466a('0x27')](_0x3bf41d);}),this[_0x466a('0x40')](_0x4783ec,Z(_0x466a('0x6f'),_0x4536af),(_0x208703,{threadId:_0x2239ff})=>{_0x44f0c9[_0x466a('0x4b')][_0x466a('0x71')]({'isUndoable':!0x1},_0x1e883d=>{const _0x23eeae=this[_0x466a('0x1a')](_0x2239ff);this[_0x466a('0x6d')]['delete'](_0x2239ff),this[_0x466a('0x6a')]=_0x2239ff;for(const _0x25b24a of _0x23eeae)_0x1e883d[_0x466a('0x22')](_0x25b24a);}),this[_0x466a('0x6a')]=null;},{'priority':_0x466a('0x36')}),this[_0x466a('0x40')](_0x4783ec,Z(_0x466a('0x53'),_0x4536af),(_0x4c84c4,{threadId:_0x43a6ea})=>{this[_0x466a('0x27')](_0x43a6ea),this[_0x466a('0x17')](_0x43a6ea),this[_0x466a('0x5e')][_0x466a('0x58')][_0x466a('0x3f')][_0x466a('0x69')]&&this[_0x466a('0x5e')][_0x466a('0x58')][_0x466a('0x3f')][_0x466a('0x5a')]();},{'priority':_0x466a('0xe')}),this[_0x466a('0x40')](_0x4783ec,Z('reopenCommentThread',_0x4536af),(_0x4fa2f5,{threadId:_0x3f859f})=>{this[_0x466a('0x17')](_0x3f859f);},{'priority':_0x466a('0xe')}),this[_0x466a('0x40')](_0x4783ec,Z(_0x466a('0x24'),_0x4536af),(_0x95eb5a,{threadId:_0x285be2,isFromAdapter:_0x2a1019})=>{const _0x248e7b=this[_0x466a('0x1a')](_0x285be2);if(_0x2a1019||0x0==_0x248e7b[_0x466a('0x11')]||!_0x4783ec[_0x466a('0x2f')](_0x285be2))return;0x1===_0x4783ec['getCommentThread'](_0x285be2)[_0x466a('0x11')]&&_0x44f0c9[_0x466a('0x4b')]['enqueueChange']({'isUndoable':!0x1},_0x102318=>{for(const _0x22a101 of _0x248e7b)_0x102318['updateMarker'](_0x22a101,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x466a('0xe')}),this[_0x466a('0xa')](),this[_0x466a('0x4c')]();}['destroy'](){const _0x5b87e8=this[_0x466a('0x5e')]['plugins']['get'](_0x3cddb1),_0x38fa44=this[_0x466a('0x5e')][_0x466a('0x1d')][_0x466a('0x30')]('collaboration.channelId');for(const _0x12c259 of _0x5b87e8[_0x466a('0x0')]({'channelId':_0x38fa44}))_0x5b87e8[_0x466a('0x56')](_0x12c259['id']),_0x5b87e8[_0x466a('0x42')][_0x466a('0x55')](_0x12c259['id']);super[_0x466a('0x8')]();}[_0x466a('0x60')](_0x50abc4){return this[_0x466a('0x1a')](_0x50abc4)[_0x466a('0x11')]>0x0;}[_0x466a('0x1a')](_0x18feaa){return Array[_0x466a('0x76')](this[_0x466a('0x6d')]['get'](_0x18feaa)||[])[_0x466a('0x2b')](_0xdd7e15=>this[_0x466a('0x5e')][_0x466a('0x4b')]['markers'][_0x466a('0x30')](_0xdd7e15))[_0x466a('0x62')](_0x330b78=>_0x330b78);}['scrollToThreadMarker'](_0x9a9387){const _0x2b9ff8=this[_0x466a('0x5f')](_0x9a9387);_0x2b9ff8&&setTimeout(()=>{this['activeMarker']&&tt(this[_0x466a('0x3')])['id']===_0x9a9387&&_0x550370({'target':_0x2b9ff8[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x466a('0x17')](_0x57ac90){this['editor'][_0x466a('0x4b')]['change'](()=>{for(const _0x9a0904 of this[_0x466a('0x1a')](_0x57ac90))this[_0x466a('0x5e')]['editing'][_0x466a('0x3b')](_0x9a0904);});}[_0x466a('0x27')](_0x4af0c6){const _0x97d6e2=this['editor']['plugins'][_0x466a('0x30')](_0x3cddb1),_0x4244e5=this['editor'][_0x466a('0x64')][_0x466a('0x30')](_0x44f802),_0x376346=_0x97d6e2[_0x466a('0x1e')](_0x4af0c6);if(!this['_attachedThreads'][_0x466a('0x14')](_0x4af0c6)){const _0x2069a2=_0x376346['attachTo'](()=>this[_0x466a('0x5f')](_0x376346['id']));_0x4244e5['registerAnnotation'](_0x2069a2),this[_0x466a('0x6d')][_0x466a('0x65')](_0x4af0c6,new Set()),_0x376346[_0x466a('0x72')]=!0x1;}}[_0x466a('0xa')](){const _0x175c06=this[_0x466a('0x5e')];_0x175c06[_0x466a('0x51')][_0x466a('0x33')](_0x466a('0x3d'))[_0x466a('0x68')]({'model':_0x466a('0x5c'),'view':(_0x46d1b0,_0x85c9f8)=>{const {id:_0x27970c}=tt(_0x46d1b0['markerName']),_0x490f22=_0x175c06[_0x466a('0x64')][_0x466a('0x30')](_0x3cddb1)[_0x466a('0x1e')](_0x27970c),_0x2397f7=this[_0x466a('0x3')]&&tt(this[_0x466a('0x3')])['id']===_0x27970c;if(_0x490f22&&_0x490f22['isResolved']&&!_0x2397f7&&_0x46d1b0[_0x466a('0x31')])return _0x85c9f8[_0x466a('0x9')]['consume'](_0x46d1b0[_0x466a('0x31')],'addMarker:'+_0x46d1b0[_0x466a('0x35')]),_0x85c9f8[_0x466a('0x9')][_0x466a('0x67')](_0x46d1b0[_0x466a('0x31')],'removeMarker:'+_0x46d1b0[_0x466a('0x35')]),{'classes':[]};const _0x3461ff=[_0x466a('0x28')];return _0x2397f7&&_0x3461ff[_0x466a('0x75')]('ck-comment-marker--active'),{'classes':_0x3461ff,'attributes':{'data-comment':_0x27970c}};}}),_0x175c06['conversion']['for']('dataDowncast')['markerToData']({'model':_0x466a('0x5c'),'view':(_0x3de60d,{options:_0x4ff71c})=>{const _0x4fcc06=_0x175c06[_0x466a('0x64')]['get'](_0x3cddb1),_0x195daa=_0x175c06['model'][_0x466a('0x4')][_0x466a('0x30')](_0x3de60d),{id:_0x53c03f,part:_0x558862}=tt(_0x3de60d);if(_0x195daa&&!_0x195daa[_0x466a('0x3e')])return null;if(_0x4ff71c[_0x466a('0x7')]){const _0x1fe536=_0x4fcc06[_0x466a('0x1e')](_0x53c03f);if(_0x1fe536&&_0x1fe536[_0x466a('0x10')])return null;}return{'group':_0x466a('0x5c'),'name':_0x558862?_0x53c03f+':'+_0x558862:_0x53c03f};}}),_0x175c06['conversion'][_0x466a('0x33')](_0x466a('0x63'))['elementToElement']({'view':{'name':_0x466a('0x5c'),'attributes':{'id':/^\w/}},'model':(_0x1750f3,{writer:_0x43c4f1})=>_0x43c4f1[_0x466a('0x2c')](_0x466a('0x73'),{'data-name':_0x466a('0x19')+_0x1750f3['getAttribute']('id')})}),_0x175c06[_0x466a('0x51')][_0x466a('0x33')](_0x466a('0x63'))[_0x466a('0x70')]({'view':_0x466a('0x5c')});}[_0x466a('0x4c')](){const _0x369c5c=this[_0x466a('0x5e')],_0x1e7ebb=_0x369c5c[_0x466a('0x64')][_0x466a('0x30')](_0x3cddb1),_0x501b55=new Set(),_0x806029=new Set();_0x369c5c['model'][_0x466a('0x18')][_0x466a('0x6e')](_0x319927=>{let _0x6a4e3=!0x1;for(const {name:_0x447ebc,data:_0x9c3ee2}of _0x369c5c[_0x466a('0x4b')]['document']['differ']['getChangedMarkers']()){const {group:_0x3d9816,id:_0x5573a3}=tt(_0x447ebc);let _0x25c5bc=_0x9c3ee2[_0x466a('0x41')];if(_0x466a('0x5c')!==_0x3d9816||!_0x25c5bc)continue;const _0x4c0f77=_0x466a('0x59')===_0x25c5bc[_0x466a('0x6c')][_0x466a('0x50')];_0x4c0f77||(_0x25c5bc=ot(_0x25c5bc,_0x369c5c[_0x466a('0x4b')]),!_0x25c5bc||_0x25c5bc['isCollapsed']||!_0x9c3ee2[_0x466a('0x41')]||_0x25c5bc[_0x466a('0x4d')](_0x9c3ee2[_0x466a('0x41')]))?_0x369c5c[_0x466a('0x4b')][_0x466a('0x66')](_0x25c5bc)&&!_0x4c0f77?this[_0x466a('0xd')]?_0x501b55[_0x466a('0x4a')](_0x447ebc):this[_0x466a('0x20')](_0x447ebc,_0x5573a3):(_0x806029[_0x466a('0x4a')](_0x447ebc),_0x501b55[_0x466a('0x55')](_0x447ebc),_0x319927[_0x466a('0x22')](_0x447ebc),_0x6a4e3=!0x0):(_0x319927['updateMarker'](_0x447ebc,{'range':_0x25c5bc}),_0x6a4e3=!0x0);}return _0x6a4e3;}),this['on'](_0x466a('0x5d'),(_0x59000e,_0x21f26a,_0x48d859)=>{if(!_0x48d859&&_0x501b55[_0x466a('0x2')])for(const _0x9020d7 of _0x501b55){const {id:_0x46d6e5}=tt(_0x9020d7);_0x501b55[_0x466a('0x55')](_0x9020d7),_0x369c5c[_0x466a('0x4b')]['markers'][_0x466a('0x30')](_0x9020d7)&&this['_handleThreadMarker'](_0x9020d7,_0x46d6e5);}}),this[_0x466a('0x40')](_0x369c5c[_0x466a('0x4b')][_0x466a('0x18')],_0x466a('0x4e'),(_0x46cbd9,_0x56848c)=>{for(const {name:_0x4eff83,data:{newRange:_0x561e67}}of _0x369c5c[_0x466a('0x4b')][_0x466a('0x18')][_0x466a('0x74')][_0x466a('0xc')]()){const {group:_0x2fa31c,id:_0x3d81fd}=tt(_0x4eff83);if(_0x466a('0x5c')!==_0x2fa31c)continue;const _0x24a6f3=_0x1e7ebb['getCommentThread'](_0x3d81fd),_0x39183c=this[_0x466a('0x60')](_0x3d81fd);_0x24a6f3&&(_0x24a6f3[_0x466a('0x72')]||_0x369c5c[_0x466a('0x58')][_0x466a('0x3f')][_0x466a('0x15')](_0x466a('0x37'),()=>{const _0x3e0509=_0x369c5c[_0x466a('0x64')]['get'](_0x97cd7a),_0x22415b=_0x1e7ebb[_0x466a('0x5')][_0x466a('0x30')](_0x24a6f3)[_0x466a('0x3f')];_0x3e0509[_0x466a('0x49')](_0x22415b)[_0x466a('0x46')]();},{'priority':'low'}),_0x24a6f3['_hasTargetInContent']=_0x39183c||!!_0x561e67),_0x561e67||(_0x806029[_0x466a('0x4a')](_0x4eff83),_0x501b55['delete'](_0x4eff83),this[_0x466a('0x6d')][_0x466a('0x14')](_0x3d81fd)&&this[_0x466a('0x6d')][_0x466a('0x30')](_0x3d81fd)[_0x466a('0x55')](_0x4eff83));}if(_0x56848c[_0x466a('0x23')])for(const _0x29badd of _0x806029){const {id:_0x30a9c9}=tt(_0x29badd),_0x288cce=_0x1e7ebb['getCommentThread'](_0x30a9c9),_0x56d384=this[_0x466a('0x60')](_0x30a9c9);_0x501b55['delete'](_0x29badd),!_0x288cce||_0x56d384||_0x288cce['isResolved']||this['_removedThread']===_0x30a9c9||(this[_0x466a('0x3c')][_0x466a('0x4a')](_0x288cce),_0x288cce[_0x466a('0x25')]());}_0x806029[_0x466a('0x1')]();});}['_getTargetForId'](_0x192eb9){const _0x2c2688=this[_0x466a('0x5e')],_0x14f41f=this[_0x466a('0x1a')](_0x192eb9);return _0x34713b(_0x2c2688['editing'],_0x14f41f);}['_getTextContext'](_0x22f47a){const _0x46f46c=this['getAllMarkersForId'](_0x22f47a);let _0x4e2fb='',_0x408968=!0x1;for(const _0x21aa59 of _0x46f46c){const _0x50ce60=_0x21aa59['getRange']();for(const _0x117f86 of Array[_0x466a('0x76')](_0x50ce60[_0x466a('0x29')]()))_0x117f86['is']('$textProxy')?(_0x4e2fb&&_0x408968&&(_0x4e2fb+='\x20',_0x408968=!0x1),_0x4e2fb+=_0x117f86[_0x466a('0x39')]):_0x408968=!0x0;_0x408968=!0x0;}return _0x4e2fb[_0x466a('0x44')](0x0,0x96);}['_attachMarkerToThread'](_0x2cd1e9,_0x4c5cdc){const _0x219d3c=this[_0x466a('0x5e')],_0x2274c3=_0x219d3c[_0x466a('0x64')]['get'](_0x3cddb1);let _0xb808b2=_0x2274c3[_0x466a('0x1e')](_0x4c5cdc);if(this[_0x466a('0x6d')][_0x466a('0x14')](_0x4c5cdc)){const _0x106e32=this[_0x466a('0x6d')][_0x466a('0x30')](_0x4c5cdc);_0x106e32[_0x466a('0x14')](_0x2cd1e9)||_0x106e32['add'](_0x2cd1e9);}const _0x2dcd9a=_0x219d3c['config'][_0x466a('0x30')]('collaboration.channelId'),_0x9becba=_0x219d3c[_0x466a('0x64')][_0x466a('0x30')](_0x44f802);if(_0xb808b2&&_0xb808b2[_0x466a('0x10')]&&this[_0x466a('0x3c')][_0x466a('0x14')](_0xb808b2)&&(this[_0x466a('0x3c')][_0x466a('0x55')](_0xb808b2),_0xb808b2[_0x466a('0x3a')]()),this[_0x466a('0x6d')][_0x466a('0x14')](_0x4c5cdc))return _0xb808b2;return this['_attachedThreads'][_0x466a('0x65')](_0x4c5cdc,new Set([_0x2cd1e9])),(!this[_0x466a('0x1a')](_0x4c5cdc)[0x0][_0x466a('0x2e')]?_0x219d3c[_0x466a('0x58')][_0x466a('0x3f')][_0x466a('0x15')](_0x466a('0x37'),()=>{const _0x19cf9a=_0x219d3c[_0x466a('0x64')][_0x466a('0x30')](_0x97cd7a);_0xb808b2=_0x2274c3[_0x466a('0x12')]({'channelId':_0x2dcd9a,'threadId':_0x4c5cdc,'target':()=>this[_0x466a('0x5f')](_0x4c5cdc),'context':{'type':_0x466a('0x1c'),'value':this[_0x466a('0x6')](_0x4c5cdc)}});const _0x12697b=_0x2274c3[_0x466a('0x5')][_0x466a('0x30')](_0xb808b2)['view'],_0x34894e=_0x19cf9a[_0x466a('0x49')](_0x12697b);_0x34894e&&_0x9becba['registerAnnotation'](_0x34894e);},{'priority':_0x466a('0xe')}):_0x2274c3['fetchCommentThread']({'channelId':_0x2dcd9a,'threadId':_0x4c5cdc})[_0x466a('0x34')](_0x2d1ecd=>{if(_0x466a('0x61')!==_0x219d3c['state']){if(_0xb808b2=_0x2d1ecd,_0xb808b2){const _0x2f1177=_0xb808b2[_0x466a('0x2d')](()=>this['_getTargetForId'](_0x4c5cdc));_0x9becba['registerAnnotation'](_0x2f1177),_0xb808b2[_0x466a('0x10')]&&this['_reconvertMarkers'](_0x4c5cdc);}else{const _0x40ddc3=this[_0x466a('0x1a')](_0x4c5cdc);_0x219d3c[_0x466a('0x4b')]['change'](_0x5cad0d=>{for(const _0x1b4bca of _0x40ddc3)_0x5cad0d[_0x466a('0x22')](_0x1b4bca);});}}}),_0xb808b2);}[_0x466a('0x20')](_0x488c3c,_0x5218c0){const _0x3cd567=this['_attachMarkerToThread'](_0x488c3c,_0x5218c0);_0x3cd567&&!_0x3cd567[_0x466a('0x57')]&&_0x3cd567[_0x466a('0xf')]({'type':_0x466a('0x1c'),'value':this[_0x466a('0x6')](_0x5218c0)});}}function Z(_0x3ea28e,_0x162ac9){return _0x162ac9?_0x3ea28e+':'+_0x162ac9:_0x3ea28e;}function tt(_0x1d4ef7){const _0x561a59=_0x1d4ef7[_0x466a('0x5b')](':');return{'group':_0x561a59[0x0],'id':_0x561a59[0x1],'part':_0x561a59[0x2]};}function ot(_0x2b90c5,_0x5f5b69){const _0x129476=_0x5f5b69[_0x466a('0x26')],_0x38323d=_0x5f5b69[_0x466a('0x6b')](_0x2b90c5[_0x466a('0x45')]);for(const _0x56085c of _0x2b90c5[_0x466a('0xb')]()){const {type:_0x1e9096,item:_0x5a8ebe,nextPosition:_0x59b3a1}=_0x56085c;if(_0x466a('0x1c')===_0x1e9096||_0x129476[_0x466a('0x38')](_0x5a8ebe)){const _0x20c9ef=_0x5f5b69[_0x466a('0x13')](_0x5a8ebe);_0x38323d[_0x466a('0x21')]&&(_0x38323d[_0x466a('0x45')]=_0x20c9ef),_0x38323d[_0x466a('0x4f')]=_0x59b3a1;}}return _0x38323d;}
23
+ const _0x4f0e=['start','pluginName','_handleMarkerAddAndRemove','$marker','has','activeMarker','hasDomSelection','_threads','_attachedThreads','hasMarkerForId','isEqual','refreshVisibility','consumable','markers','registerPostFixer','from','size','data','_initializeMarkerConverters','end','addCommentThread','map','reconvertMarker','ck-comment-marker','for','state','destroyed','substring','_autoResolvedThreads','conversion','reopenCommentThread','ready','setContext','render','focus','item','_detachCommentThread','document','rootName','addComment','add','once','resolve','high','attachTo','_getTargetForId','removeCommentThread','config','removeMarker:','isThreadsLoadingPaused','registerAnnotation','markerToHighlight','context','upcast','isCollapsed','clear','isResolved','destroy','_handleThreadMarker','change:isReadOnly','$textProxy','scrollToThreadMarker','hasCommentThread','getWalker','_reconvertMarkers','listenTo','getCommentThread','set','createElement','low','ck-comment-marker--active','getAllMarkersForId','model','view','consume','comment','markerName','delete','switchReadOnly','addMarker:','commands','length','managedUsingOperations','getCommentThreads','change','schema','collaboration.channelId','_removedThread','getAttribute','removeMarker','init','editing','CommentsEditing','differ','_hasTargetInContent','newRange','ignoreResolvedComments','enqueueChange','_attachResolvedThread','editingDowncast','getByInnerView','push','plugins','root','_threadToController','editor','_getTextContext','getItems','change:activeMarker','then','text','updateMarker','resolveCommentThread','$graveyard','openNewCommentThread','requires','createPositionBefore','get'];(function(_0x65cdcc,_0x4f0e37){const _0x2be088=function(_0x23882b){while(--_0x23882b){_0x65cdcc['push'](_0x65cdcc['shift']());}};_0x2be088(++_0x4f0e37);}(_0x4f0e,0x7e));const _0x2be0=function(_0x65cdcc,_0x4f0e37){_0x65cdcc=_0x65cdcc-0x0;let _0x2be088=_0x4f0e[_0x65cdcc];return _0x2be088;};import{Plugin as _0xb1c932}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x203557}from'ckeditor5/src/utils';import _0x14340c from'./commentsrepository';import _0x5db15c from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x13b59d}from'ckeditor5-collaboration/src/collaboration-core';import _0x1c6991 from'../annotations/editorannotations';import _0x541953 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x19346f from'./integrations/importword';import _0x514412 from'../annotations/annotations';export default class r extends _0xb1c932{static get[_0x2be0('0x6b')](){return[_0x14340c,_0x1c6991,_0x541953,_0x19346f];}static get[_0x2be0('0x6f')](){return _0x2be0('0x54');}constructor(_0x1ec3a1){super(_0x1ec3a1),this['_removedThread']=null,this[_0x2be0('0x14')]=new Set(),this[_0x2be0('0x3b')](_0x2be0('0x29'),!0x0),_0x1ec3a1[_0x2be0('0x9')][_0x2be0('0x21')](_0x2be0('0x17'),()=>this[_0x2be0('0x29')]=!0x1),this[_0x2be0('0x3b')]('activeMarker',null),this['on'](_0x2be0('0x64'),(_0x5a7a28,_0x507556,_0x3efcc8,_0x2c76c8)=>{const _0x2a8f6a=_0x3efcc8?tt(_0x3efcc8)['id']:null;if(_0x1ec3a1[_0x2be0('0x40')]['change'](()=>{if(_0x2a8f6a){const _0x3a331c=this['getAllMarkersForId'](_0x2a8f6a);for(const _0x55f685 of _0x3a331c)_0x1ec3a1['editing'][_0x2be0('0xe')](_0x55f685);}if(_0x2c76c8){const {id:_0x4a7360}=tt(_0x2c76c8),_0x3aac46=this[_0x2be0('0x3f')](_0x4a7360);for(const _0x954880 of _0x3aac46)_0x1ec3a1['editing'][_0x2be0('0xe')](_0x954880);}}),_0x2a8f6a){const _0x45c69f=_0x1ec3a1[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c)['getCommentThread'](_0x2a8f6a);_0x45c69f&&_0x45c69f['isResolved']&&this[_0x2be0('0x35')](_0x2a8f6a);}}),this[_0x2be0('0x0')]=new Map();}[_0x2be0('0x52')](){const _0x1aa5a3=this[_0x2be0('0x61')],_0x309136=_0x1aa5a3[_0x2be0('0x5e')]['get'](_0x14340c),_0x68f2a2=_0x1aa5a3[_0x2be0('0x27')]['get'](_0x2be0('0x4e'));_0x1aa5a3[_0x2be0('0x48')][_0x2be0('0x20')](_0x2be0('0xc'),new _0x5db15c(_0x1aa5a3)),this[_0x2be0('0x39')](_0x1aa5a3,_0x2be0('0x33'),(_0x1eb8d0,_0x20533e,_0xd70650)=>{_0x309136[_0x2be0('0x46')](_0xd70650,_0x1aa5a3[_0x2be0('0x27')]['get'](_0x2be0('0x4e')));}),this[_0x2be0('0x39')](_0x309136,Z(_0x2be0('0xc'),_0x68f2a2),(_0x53b39a,{threadId:_0x51e386})=>{const _0x554043=this[_0x2be0('0x61')][_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c)[_0x2be0('0x3a')](_0x51e386);_0x554043&&_0x554043[_0x2be0('0x30')]&&this[_0x2be0('0x5a')](_0x51e386);}),this[_0x2be0('0x39')](_0x309136,Z(_0x2be0('0x26'),_0x68f2a2),(_0x4bd1ad,{threadId:_0x8d484c})=>{_0x1aa5a3[_0x2be0('0x40')][_0x2be0('0x59')]({'isUndoable':!0x1},_0x287d2f=>{const _0x578d6a=this[_0x2be0('0x3f')](_0x8d484c);this[_0x2be0('0x0')]['delete'](_0x8d484c),this[_0x2be0('0x4f')]=_0x8d484c;for(const _0x329732 of _0x578d6a)_0x287d2f[_0x2be0('0x51')](_0x329732);}),this['_removedThread']=null;},{'priority':_0x2be0('0x23')}),this['listenTo'](_0x309136,Z(_0x2be0('0x68'),_0x68f2a2),(_0x334d28,{threadId:_0x3686bc})=>{this[_0x2be0('0x5a')](_0x3686bc),this[_0x2be0('0x38')](_0x3686bc),this[_0x2be0('0x61')]['editing'][_0x2be0('0x41')][_0x2be0('0x74')]&&this[_0x2be0('0x61')][_0x2be0('0x53')][_0x2be0('0x41')][_0x2be0('0x1a')]();},{'priority':_0x2be0('0x3d')}),this[_0x2be0('0x39')](_0x309136,Z(_0x2be0('0x16'),_0x68f2a2),(_0x101495,{threadId:_0x2f800c})=>{this[_0x2be0('0x38')](_0x2f800c);},{'priority':_0x2be0('0x3d')}),this['listenTo'](_0x309136,Z(_0x2be0('0x1f'),_0x68f2a2),(_0x31adce,{threadId:_0x195a94,isFromAdapter:_0x377d78})=>{const _0x747388=this[_0x2be0('0x3f')](_0x195a94);if(_0x377d78||0x0==_0x747388[_0x2be0('0x49')]||!_0x309136[_0x2be0('0x36')](_0x195a94))return;0x1===_0x309136[_0x2be0('0x3a')](_0x195a94)[_0x2be0('0x49')]&&_0x1aa5a3[_0x2be0('0x40')][_0x2be0('0x59')]({'isUndoable':!0x1},_0x4fb570=>{for(const _0x1d0293 of _0x747388)_0x4fb570[_0x2be0('0x67')](_0x1d0293,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x2be0('0x3d')}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}[_0x2be0('0x31')](){const _0x4488b8=this['editor'][_0x2be0('0x5e')]['get'](_0x14340c),_0x3d358d=this[_0x2be0('0x61')][_0x2be0('0x27')][_0x2be0('0x6d')]('collaboration.channelId');for(const _0xcdf606 of _0x4488b8[_0x2be0('0x4b')]({'channelId':_0x3d358d}))_0x4488b8[_0x2be0('0x1c')](_0xcdf606['id']),_0x4488b8[_0x2be0('0x75')]['delete'](_0xcdf606['id']);super[_0x2be0('0x31')]();}[_0x2be0('0x1')](_0x1a5824){return this[_0x2be0('0x3f')](_0x1a5824)[_0x2be0('0x49')]>0x0;}['getAllMarkersForId'](_0x58ff78){return Array[_0x2be0('0x7')](this['_attachedThreads']['get'](_0x58ff78)||[])[_0x2be0('0xd')](_0x51be71=>this[_0x2be0('0x61')][_0x2be0('0x40')][_0x2be0('0x5')]['get'](_0x51be71))['filter'](_0x144240=>_0x144240);}[_0x2be0('0x35')](_0x223145){const _0x4bcce4=this[_0x2be0('0x25')](_0x223145);_0x4bcce4&&setTimeout(()=>{this[_0x2be0('0x73')]&&tt(this['activeMarker'])['id']===_0x223145&&_0x203557({'target':_0x4bcce4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x2be0('0x38')](_0x4454f8){this[_0x2be0('0x61')][_0x2be0('0x40')][_0x2be0('0x4c')](()=>{for(const _0x7f6b8d of this[_0x2be0('0x3f')](_0x4454f8))this[_0x2be0('0x61')][_0x2be0('0x53')][_0x2be0('0xe')](_0x7f6b8d);});}[_0x2be0('0x5a')](_0x491bb2){const _0x545b5a=this[_0x2be0('0x61')][_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c),_0x5444d6=this[_0x2be0('0x61')]['plugins'][_0x2be0('0x6d')](_0x1c6991),_0x1a5d47=_0x545b5a['getCommentThread'](_0x491bb2);if(!this[_0x2be0('0x0')]['has'](_0x491bb2)){const _0x31c0d6=_0x1a5d47[_0x2be0('0x24')](()=>this['_getTargetForId'](_0x1a5d47['id']));_0x5444d6['registerAnnotation'](_0x31c0d6),this['_attachedThreads'][_0x2be0('0x3b')](_0x491bb2,new Set()),_0x1a5d47['_hasTargetInContent']=!0x1;}}[_0x2be0('0xa')](){const _0x158dde=this[_0x2be0('0x61')];_0x158dde[_0x2be0('0x15')][_0x2be0('0x10')](_0x2be0('0x5b'))[_0x2be0('0x2b')]({'model':_0x2be0('0x43'),'view':(_0x37b090,_0x54254b)=>{const {id:_0x5902f5}=tt(_0x37b090[_0x2be0('0x44')]),_0x217a03=_0x158dde[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c)[_0x2be0('0x3a')](_0x5902f5),_0x5b566b=this[_0x2be0('0x73')]&&tt(this['activeMarker'])['id']===_0x5902f5;if(_0x217a03&&_0x217a03['isResolved']&&!_0x5b566b&&_0x37b090[_0x2be0('0x1b')])return _0x54254b[_0x2be0('0x4')][_0x2be0('0x42')](_0x37b090[_0x2be0('0x1b')],_0x2be0('0x47')+_0x37b090[_0x2be0('0x44')]),_0x54254b[_0x2be0('0x4')][_0x2be0('0x42')](_0x37b090[_0x2be0('0x1b')],_0x2be0('0x28')+_0x37b090['markerName']),{'classes':[]};const _0x19b944=[_0x2be0('0xf')];return _0x5b566b&&_0x19b944[_0x2be0('0x5d')](_0x2be0('0x3e')),{'classes':_0x19b944,'attributes':{'data-comment':_0x5902f5}};}}),_0x158dde[_0x2be0('0x15')][_0x2be0('0x10')]('dataDowncast')['markerToData']({'model':'comment','view':(_0x331531,{options:_0x5ded89})=>{const _0x459ecc=_0x158dde[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c),_0x57b500=_0x158dde[_0x2be0('0x40')][_0x2be0('0x5')][_0x2be0('0x6d')](_0x331531),{id:_0x4d6846,part:_0x4a7896}=tt(_0x331531);if(_0x57b500&&!_0x57b500['affectsData'])return null;if(_0x5ded89[_0x2be0('0x58')]){const _0x54ac3f=_0x459ecc[_0x2be0('0x3a')](_0x4d6846);if(_0x54ac3f&&_0x54ac3f[_0x2be0('0x30')])return null;}return{'group':'comment','name':_0x4a7896?_0x4d6846+':'+_0x4a7896:_0x4d6846};}}),_0x158dde['conversion'][_0x2be0('0x10')](_0x2be0('0x2d'))['elementToElement']({'view':{'name':_0x2be0('0x43'),'attributes':{'id':/^\w/}},'model':(_0x550286,{writer:_0x3f7744})=>_0x3f7744[_0x2be0('0x3c')](_0x2be0('0x71'),{'data-name':'comment:'+_0x550286[_0x2be0('0x50')]('id')})}),_0x158dde[_0x2be0('0x15')][_0x2be0('0x10')]('upcast')['dataToMarker']({'view':_0x2be0('0x43')});}[_0x2be0('0x70')](){const _0x2ae801=this[_0x2be0('0x61')],_0x4ad008=_0x2ae801[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c),_0x4c7685=new Set(),_0x5015ed=new Set();_0x2ae801['model']['document'][_0x2be0('0x6')](_0x1e12ee=>{let _0x4df1bd=!0x1;for(const {name:_0x1cce09,data:_0x59ffcf}of _0x2ae801[_0x2be0('0x40')][_0x2be0('0x1d')][_0x2be0('0x55')]['getChangedMarkers']()){const {group:_0x424356,id:_0x2c028b}=tt(_0x1cce09);let _0x30abe8=_0x59ffcf[_0x2be0('0x57')];if(_0x2be0('0x43')!==_0x424356||!_0x30abe8)continue;const _0x4a0caa=_0x2be0('0x69')===_0x30abe8[_0x2be0('0x5f')][_0x2be0('0x1e')];_0x4a0caa||(_0x30abe8=ot(_0x30abe8,_0x2ae801[_0x2be0('0x40')]),!_0x30abe8||_0x30abe8['isCollapsed']||!_0x59ffcf[_0x2be0('0x57')]||_0x30abe8[_0x2be0('0x2')](_0x59ffcf[_0x2be0('0x57')]))?_0x2ae801[_0x2be0('0x40')]['hasContent'](_0x30abe8)&&!_0x4a0caa?this[_0x2be0('0x29')]?_0x4c7685[_0x2be0('0x20')](_0x1cce09):this[_0x2be0('0x32')](_0x1cce09,_0x2c028b):(_0x5015ed['add'](_0x1cce09),_0x4c7685[_0x2be0('0x45')](_0x1cce09),_0x1e12ee[_0x2be0('0x51')](_0x1cce09),_0x4df1bd=!0x0):(_0x1e12ee['updateMarker'](_0x1cce09,{'range':_0x30abe8}),_0x4df1bd=!0x0);}return _0x4df1bd;}),this['on']('change:isThreadsLoadingPaused',(_0x3c57dc,_0x28aefd,_0x3e3812)=>{if(!_0x3e3812&&_0x4c7685[_0x2be0('0x8')])for(const _0x3d9158 of _0x4c7685){const {id:_0x5909e2}=tt(_0x3d9158);_0x4c7685[_0x2be0('0x45')](_0x3d9158),_0x2ae801[_0x2be0('0x40')][_0x2be0('0x5')][_0x2be0('0x6d')](_0x3d9158)&&this[_0x2be0('0x32')](_0x3d9158,_0x5909e2);}}),this[_0x2be0('0x39')](_0x2ae801[_0x2be0('0x40')]['document'],_0x2be0('0x4c'),(_0x1e39d2,_0x107813)=>{for(const {name:_0x16ff82,data:{newRange:_0x3525df}}of _0x2ae801['model'][_0x2be0('0x1d')][_0x2be0('0x55')]['getChangedMarkers']()){const {group:_0x421789,id:_0x22c6b9}=tt(_0x16ff82);if(_0x2be0('0x43')!==_0x421789)continue;const _0x25bf94=_0x4ad008[_0x2be0('0x3a')](_0x22c6b9),_0x52f78f=this['hasMarkerForId'](_0x22c6b9);_0x25bf94&&(_0x25bf94[_0x2be0('0x56')]||_0x2ae801['editing'][_0x2be0('0x41')][_0x2be0('0x21')](_0x2be0('0x19'),()=>{const _0x24ebf3=_0x2ae801[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x514412),_0x18fc25=_0x4ad008['_threadToController']['get'](_0x25bf94)['view'];_0x24ebf3[_0x2be0('0x5c')](_0x18fc25)[_0x2be0('0x3')]();},{'priority':_0x2be0('0x3d')}),_0x25bf94['_hasTargetInContent']=_0x52f78f||!!_0x3525df),_0x3525df||(_0x5015ed['add'](_0x16ff82),_0x4c7685[_0x2be0('0x45')](_0x16ff82),this[_0x2be0('0x0')][_0x2be0('0x72')](_0x22c6b9)&&this[_0x2be0('0x0')]['get'](_0x22c6b9)['delete'](_0x16ff82));}if(_0x107813['isLocal'])for(const _0x2299e5 of _0x5015ed){const {id:_0x5ce4af}=tt(_0x2299e5),_0x1b10f6=_0x4ad008[_0x2be0('0x3a')](_0x5ce4af),_0x5c5e73=this[_0x2be0('0x1')](_0x5ce4af);_0x4c7685[_0x2be0('0x45')](_0x2299e5),!_0x1b10f6||_0x5c5e73||_0x1b10f6[_0x2be0('0x30')]||this[_0x2be0('0x4f')]===_0x5ce4af||(this[_0x2be0('0x14')][_0x2be0('0x20')](_0x1b10f6),_0x1b10f6[_0x2be0('0x22')]());}_0x5015ed[_0x2be0('0x2f')]();});}[_0x2be0('0x25')](_0x2bc804){const _0x50edbe=this['editor'],_0x269ab3=this[_0x2be0('0x3f')](_0x2bc804);return _0x13b59d(_0x50edbe[_0x2be0('0x53')],_0x269ab3);}[_0x2be0('0x62')](_0x5d1ac2){const _0x44a649=this[_0x2be0('0x3f')](_0x5d1ac2);let _0x18ba19='',_0x77126e=!0x1;for(const _0xfadf3c of _0x44a649){const _0x54d624=_0xfadf3c['getRange']();for(const _0x1f95c4 of Array['from'](_0x54d624[_0x2be0('0x63')]()))_0x1f95c4['is'](_0x2be0('0x34'))?(_0x18ba19&&_0x77126e&&(_0x18ba19+='\x20',_0x77126e=!0x1),_0x18ba19+=_0x1f95c4[_0x2be0('0x9')]):_0x77126e=!0x0;_0x77126e=!0x0;}return _0x18ba19[_0x2be0('0x13')](0x0,0x96);}['_attachMarkerToThread'](_0x43acf2,_0x1b724f){const _0xd468b5=this[_0x2be0('0x61')],_0x1a2de9=_0xd468b5['plugins'][_0x2be0('0x6d')](_0x14340c);let _0x232b3b=_0x1a2de9['getCommentThread'](_0x1b724f);if(this[_0x2be0('0x0')][_0x2be0('0x72')](_0x1b724f)){const _0x4fed62=this[_0x2be0('0x0')][_0x2be0('0x6d')](_0x1b724f);_0x4fed62[_0x2be0('0x72')](_0x43acf2)||_0x4fed62[_0x2be0('0x20')](_0x43acf2);}const _0x1fe196=_0xd468b5[_0x2be0('0x27')][_0x2be0('0x6d')](_0x2be0('0x4e')),_0x513ddd=_0xd468b5[_0x2be0('0x5e')]['get'](_0x1c6991);if(_0x232b3b&&_0x232b3b[_0x2be0('0x30')]&&this[_0x2be0('0x14')][_0x2be0('0x72')](_0x232b3b)&&(this[_0x2be0('0x14')][_0x2be0('0x45')](_0x232b3b),_0x232b3b['reopen']()),this[_0x2be0('0x0')]['has'](_0x1b724f))return _0x232b3b;return this[_0x2be0('0x0')][_0x2be0('0x3b')](_0x1b724f,new Set([_0x43acf2])),(!this[_0x2be0('0x3f')](_0x1b724f)[0x0][_0x2be0('0x4a')]?_0xd468b5[_0x2be0('0x53')][_0x2be0('0x41')][_0x2be0('0x21')](_0x2be0('0x19'),()=>{const _0x52e24d=_0xd468b5[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x514412);_0x232b3b=_0x1a2de9[_0x2be0('0x6a')]({'channelId':_0x1fe196,'threadId':_0x1b724f,'target':()=>this[_0x2be0('0x25')](_0x1b724f),'context':{'type':_0x2be0('0x66'),'value':this['_getTextContext'](_0x1b724f)}});const _0x388e75=_0x1a2de9[_0x2be0('0x60')]['get'](_0x232b3b)[_0x2be0('0x41')],_0x291fdc=_0x52e24d['getByInnerView'](_0x388e75);_0x291fdc&&_0x513ddd[_0x2be0('0x2a')](_0x291fdc);},{'priority':_0x2be0('0x3d')}):_0x1a2de9['fetchCommentThread']({'channelId':_0x1fe196,'threadId':_0x1b724f})[_0x2be0('0x65')](_0x2b553c=>{if(_0x2be0('0x12')!==_0xd468b5[_0x2be0('0x11')]){if(_0x232b3b=_0x2b553c,_0x232b3b){const _0xba90b0=_0x232b3b[_0x2be0('0x24')](()=>this['_getTargetForId'](_0x1b724f));_0x513ddd['registerAnnotation'](_0xba90b0),_0x232b3b[_0x2be0('0x30')]&&this[_0x2be0('0x38')](_0x1b724f);}else{const _0x14f4eb=this[_0x2be0('0x3f')](_0x1b724f);_0xd468b5['model'][_0x2be0('0x4c')](_0x9cebf3=>{for(const _0x4aea53 of _0x14f4eb)_0x9cebf3[_0x2be0('0x51')](_0x4aea53);});}}}),_0x232b3b);}['_handleThreadMarker'](_0x3ca084,_0x3c91a9){const _0x560db4=this['_attachMarkerToThread'](_0x3ca084,_0x3c91a9);_0x560db4&&!_0x560db4[_0x2be0('0x2c')]&&_0x560db4[_0x2be0('0x18')]({'type':_0x2be0('0x66'),'value':this['_getTextContext'](_0x3c91a9)});}}function Z(_0x5192d9,_0x46bdd6){return _0x46bdd6?_0x5192d9+':'+_0x46bdd6:_0x5192d9;}function tt(_0x2da5aa){const _0x53e16a=_0x2da5aa['split'](':');return{'group':_0x53e16a[0x0],'id':_0x53e16a[0x1],'part':_0x53e16a[0x2]};}function ot(_0x364dbf,_0x384db4){const _0x5c19c4=_0x384db4[_0x2be0('0x4d')],_0x71b601=_0x384db4['createRange'](_0x364dbf[_0x2be0('0x6e')]);for(const _0x1035f9 of _0x364dbf[_0x2be0('0x37')]()){const {type:_0x1c908c,item:_0x4a51c4,nextPosition:_0xbed3c9}=_0x1035f9;if(_0x2be0('0x66')===_0x1c908c||_0x5c19c4['isObject'](_0x4a51c4)){const _0xe600d9=_0x384db4[_0x2be0('0x6c')](_0x4a51c4);_0x71b601[_0x2be0('0x2e')]&&(_0x71b601[_0x2be0('0x6e')]=_0xe600d9),_0x71b601[_0x2be0('0xb')]=_0xbed3c9;}}return _0x71b601;}