@ckeditor/ckeditor5-comments 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231216.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 (85) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +4 -3
  3. package/src/annotations/annotation.d.ts +6 -6
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.d.ts +3 -3
  6. package/src/annotations/annotationcollection.js +1 -1
  7. package/src/annotations/annotations.d.ts +6 -6
  8. package/src/annotations/annotations.js +1 -1
  9. package/src/annotations/annotationsuis.d.ts +5 -5
  10. package/src/annotations/annotationsuis.js +1 -1
  11. package/src/annotations/editorannotations.d.ts +4 -4
  12. package/src/annotations/editorannotations.js +1 -1
  13. package/src/annotations/inlineannotations.d.ts +6 -6
  14. package/src/annotations/inlineannotations.js +1 -1
  15. package/src/annotations/narrowsidebar.d.ts +6 -6
  16. package/src/annotations/narrowsidebar.js +1 -1
  17. package/src/annotations/sidebar.d.ts +5 -5
  18. package/src/annotations/sidebar.js +1 -1
  19. package/src/annotations/view/annotationcounterbuttonview.d.ts +2 -2
  20. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  21. package/src/annotations/view/annotationview.d.ts +2 -2
  22. package/src/annotations/view/annotationview.js +1 -1
  23. package/src/annotations/view/sidebaritemview.d.ts +2 -2
  24. package/src/annotations/view/sidebaritemview.js +1 -1
  25. package/src/annotations/view/sidebarview.d.ts +2 -2
  26. package/src/annotations/view/sidebarview.js +1 -1
  27. package/src/annotations/widesidebar.d.ts +5 -5
  28. package/src/annotations/widesidebar.js +1 -1
  29. package/src/augmentation.d.ts +1 -1
  30. package/src/comments/addcommentthreadcommand.d.ts +1 -1
  31. package/src/comments/addcommentthreadcommand.js +1 -1
  32. package/src/comments/commentsarchive.d.ts +4 -4
  33. package/src/comments/commentsarchive.js +1 -1
  34. package/src/comments/commentsarchiveui.d.ts +5 -5
  35. package/src/comments/commentsarchiveui.js +1 -1
  36. package/src/comments/commentsediting.d.ts +6 -6
  37. package/src/comments/commentsediting.js +1 -1
  38. package/src/comments/commentsrepository.d.ts +11 -11
  39. package/src/comments/commentsrepository.js +1 -1
  40. package/src/comments/commentsui.d.ts +5 -5
  41. package/src/comments/commentsui.js +1 -1
  42. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
  43. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  44. package/src/comments/integrations/importword.d.ts +1 -1
  45. package/src/comments/integrations/importword.js +1 -1
  46. package/src/comments/ui/commenteditor/commenteditor.d.ts +4 -4
  47. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  48. package/src/comments/ui/commenteditor/commenteditorui.d.ts +3 -3
  49. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +3 -3
  51. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  52. package/src/comments/ui/commentthreadcontroller.d.ts +4 -4
  53. package/src/comments/ui/commentthreadcontroller.js +1 -1
  54. package/src/comments/ui/view/basecommentthreadview.d.ts +8 -8
  55. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  56. package/src/comments/ui/view/basecommentview.d.ts +4 -4
  57. package/src/comments/ui/view/basecommentview.js +1 -1
  58. package/src/comments/ui/view/collapsedcommentsview.d.ts +2 -2
  59. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  60. package/src/comments/ui/view/commentcontentview.d.ts +2 -2
  61. package/src/comments/ui/view/commentcontentview.js +1 -1
  62. package/src/comments/ui/view/commentinputview.d.ts +4 -4
  63. package/src/comments/ui/view/commentinputview.js +1 -1
  64. package/src/comments/ui/view/commentsarchiveview.d.ts +3 -3
  65. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  66. package/src/comments/ui/view/commentslistview.d.ts +5 -5
  67. package/src/comments/ui/view/commentslistview.js +1 -1
  68. package/src/comments/ui/view/commentthreadheaderview.d.ts +3 -3
  69. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  70. package/src/comments/ui/view/commentthreadinputview.d.ts +5 -5
  71. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  72. package/src/comments/ui/view/commentthreadview.d.ts +7 -7
  73. package/src/comments/ui/view/commentthreadview.js +1 -1
  74. package/src/comments/ui/view/commentview.d.ts +8 -8
  75. package/src/comments/ui/view/commentview.js +1 -1
  76. package/src/comments.d.ts +10 -10
  77. package/src/comments.js +1 -1
  78. package/src/commentsonly.d.ts +2 -2
  79. package/src/commentsonly.js +1 -1
  80. package/src/config.d.ts +3 -3
  81. package/src/index.d.ts +20 -20
  82. package/src/index.js +1 -1
  83. package/src/utils/common-translations.d.ts +1 -1
  84. package/src/utils/common-translations.js +1 -1
  85. package/src/utils/createmutationobserver.js +1 -1
@@ -6,11 +6,11 @@
6
6
  * @module comments/annotations/sidebar
7
7
  * @publicApi
8
8
  */
9
- import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
10
- import type { View } from 'ckeditor5/src/ui';
11
- import SidebarView from './view/sidebarview';
12
- import SidebarItemView from './view/sidebaritemview';
13
- import type Annotation from './annotation';
9
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
10
+ import type { View } from 'ckeditor5/src/ui.js';
11
+ import SidebarView from './view/sidebarview.js';
12
+ import SidebarItemView from './view/sidebaritemview.js';
13
+ import type Annotation from './annotation.js';
14
14
  /**
15
15
  * Displays {@link module:comments/annotations/annotationcollection~AnnotationCollection annotations} inside a sidebar.
16
16
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x580b=['updateHeight','config','_annotations','container','_detachFromContainer','_destroySidebarItemView','define','minHeight','push','target','addAnnotation','last','_annotationToSidebarItemView','sidebar.preventScrollOutOfView','_spaceBetweenItems','get','getSidebarItemView','bottom','nodeType','class','setContainer','render','_lastItem','_updateLastItem','_targetTop','sidebar-setcontainer-invalid-element','change:bottom','top','stopListening','object','init','_getTargetTop','max','isAnimationDisabled','_activeAnnotation','bind','sidebar-attachtocontainer-missing-container','_recalculate','clear','listenTo','change:top','_recalculateBuffer','_sidebarItemViewToAnnotation','_alignForBottomChange','context','destroy','_alignBeforeItem','_alignToTargetRect','isActive','_getItemBefore','add','locale','_getItemAfter','length','_getMaxAvailableTop','list','height','rearrange','content','sidebar.container','_alignAfterItem','change:targetRect','delete','getIndex','_setItemTop','_attachToContainer','change:_lastItem','Sidebar','view','targetRect','element','_alignForTopChange','set'];(function(_0x9bfd49,_0x580b41){const _0x3a76f3=function(_0x5d8eae){while(--_0x5d8eae){_0x9bfd49['push'](_0x9bfd49['shift']());}};_0x3a76f3(++_0x580b41);}(_0x580b,0x8c));const _0x3a76=function(_0x9bfd49,_0x580b41){_0x9bfd49=_0x9bfd49-0x0;let _0x3a76f3=_0x580b[_0x9bfd49];return _0x3a76f3;};import{ContextPlugin as _0x41ea08}from'ckeditor5/src/core';import{Rect as _0x10be81,CKEditorError as _0x4b0e4c}from'ckeditor5/src/utils';import _0x295ab9 from'./view/sidebarview';import _0x598155 from'./view/sidebaritemview';export default class z extends _0x41ea08{static get['pluginName'](){return _0x3a76('0x0');}constructor(_0x27dfdf){super(_0x27dfdf),this[_0x3a76('0x5')](_0x3a76('0x1c'),void 0x0),this[_0x3a76('0x1')]=this['_createSidebarView'](),this[_0x3a76('0x5')]('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3a76('0x12')]=new Map(),this[_0x3a76('0x32')][_0x3a76('0x7')][_0x3a76('0xc')](_0x3a76('0x13'),!0x1),this['_annotations']=null,this[_0x3a76('0x28')]=null,this[_0x3a76('0x2f')]=[];}[_0x3a76('0x24')](){const _0x4e1808=this[_0x3a76('0x32')][_0x3a76('0x7')][_0x3a76('0x15')](_0x3a76('0x41'));_0x4e1808&&this[_0x3a76('0x1a')](_0x4e1808);}[_0x3a76('0x1a')](_0x203998){if(!y(_0x203998))throw new _0x4b0e4c(_0x3a76('0x1f'));this[_0x3a76('0x9')]=_0x203998;}[_0x3a76('0x47')]({viewClass:_0x33b994='',spaceBetweenItems:_0x47de86=0x19}={}){if(!y(this[_0x3a76('0x9')]))throw new _0x4b0e4c(_0x3a76('0x2a'),this);this[_0x3a76('0x9')]['appendChild'](this[_0x3a76('0x1')][_0x3a76('0x3')]),this[_0x3a76('0x1')]['class']=_0x33b994,this['_spaceBetweenItems']=_0x47de86;}[_0x3a76('0x3f')]({removedAnnotation:_0x2c6094,previousAnnotation:_0x5cd4ca,nextAnnotation:_0x36c771}){const _0x580a78=this[_0x3a76('0x16')](_0x2c6094);this[_0x3a76('0x1')][_0x3a76('0x3d')]['remove'](_0x580a78),this[_0x3a76('0xb')](_0x2c6094),_0x5cd4ca&&this[_0x3a76('0x35')](this[_0x3a76('0x16')](_0x5cd4ca)),_0x36c771&&this[_0x3a76('0x35')](this['getSidebarItemView'](_0x36c771)),this[_0x3a76('0x1d')]();}['refresh']({blurredAnnotation:_0x4870dd,activatedAnnotation:_0x1e5b76,disableAnimationOnActivatedAnnotation:_0x4e76cd}){if(this[_0x3a76('0x28')]=_0x1e5b76,_0x4870dd){_0x4870dd[_0x3a76('0x36')]=!0x1;const _0x33d215=this['getSidebarItemView'](_0x4870dd);_0x33d215&&_0x4e76cd&&(_0x33d215[_0x3a76('0x27')]=!0x1);}if(_0x1e5b76){const _0x2b7b2c=this[_0x3a76('0x16')](_0x1e5b76);_0x2b7b2c&&(_0x1e5b76[_0x3a76('0x36')]=!0x0,_0x4e76cd&&(_0x2b7b2c[_0x3a76('0x27')]=!0x0,_0x2b7b2c[_0x3a76('0x21')]+=0x1),this[_0x3a76('0x35')](_0x2b7b2c));}}[_0x3a76('0xa')](_0xfbcff2){if(this['view'][_0x3a76('0x3')]['remove'](),_0xfbcff2)for(const _0xa5a203 of _0xfbcff2)this[_0x3a76('0xb')](_0xa5a203);this['view'][_0x3a76('0x3d')][_0x3a76('0x2c')](),this[_0x3a76('0x1')][_0x3a76('0x19')]='',this[_0x3a76('0x1c')]=null;}[_0x3a76('0x10')](_0x5477c6,_0x1c3c55){_0x1c3c55||(_0x1c3c55=_0x5477c6[_0x3a76('0x1')]);const _0x518c5e=new _0x598155(this[_0x3a76('0x32')][_0x3a76('0x39')]);this[_0x3a76('0x30')][_0x3a76('0x5')](_0x518c5e,_0x5477c6),this[_0x3a76('0x12')][_0x3a76('0x5')](_0x5477c6,_0x518c5e),_0x518c5e[_0x3a76('0x40')][_0x3a76('0x38')](_0x1c3c55),this[_0x3a76('0x2d')](_0x5477c6[_0x3a76('0x1')],_0x3a76('0x43'),(_0x15768a,_0x5c82d4,_0x2011de)=>{const _0x3e196c=this[_0x3a76('0x25')](_0x5477c6,_0x2011de);_0x518c5e[_0x3a76('0x1e')]!=_0x3e196c&&(_0x518c5e[_0x3a76('0x1e')]=_0x3e196c,this['_setItemTop'](_0x518c5e,_0x3e196c));}),this[_0x3a76('0x2d')](_0x518c5e,_0x3a76('0x2e'),()=>{this[_0x3a76('0x2b')](_0x518c5e,_0x3a76('0x21'));}),this['listenTo'](_0x518c5e,_0x3a76('0x20'),()=>{this[_0x3a76('0x2b')](_0x518c5e,_0x3a76('0x17'));}),this[_0x3a76('0x35')](_0x518c5e);const _0x307b1d=this['_getItemBefore'](_0x518c5e);if(_0x307b1d)this['_alignAfterItem'](_0x307b1d,_0x518c5e)||this[_0x3a76('0x35')](_0x518c5e);else this[_0x3a76('0x35')](_0x518c5e);return this[_0x3a76('0x1d')](),this[_0x3a76('0x1')][_0x3a76('0x3d')][_0x3a76('0x38')](_0x518c5e),_0x518c5e;}[_0x3a76('0x4')](_0x9808f7){if(!_0x9808f7[_0x3a76('0x40')]['length'])return;const _0x5831a7=this[_0x3a76('0x37')](_0x9808f7);if(!_0x5831a7)return;const _0x2ae02a=this[_0x3a76('0x30')][_0x3a76('0x15')](_0x5831a7),_0x211c45=this['_activeAnnotation'];_0x211c45&&_0x211c45===_0x2ae02a?this[_0x3a76('0x42')](_0x5831a7,_0x9808f7):this[_0x3a76('0x34')](_0x9808f7,_0x5831a7);}[_0x3a76('0x31')](_0xe3c7fd){if(!_0xe3c7fd[_0x3a76('0x40')][_0x3a76('0x3b')])return;const _0x33d652=this[_0x3a76('0x3a')](_0xe3c7fd);if(!_0x33d652)return;const _0x2179c5=this['_sidebarItemViewToAnnotation'][_0x3a76('0x15')](_0x33d652),_0x175ff2=this['context'][_0x3a76('0x7')][_0x3a76('0x15')](_0x3a76('0x13')),_0x34b55a=this[_0x3a76('0x28')];_0x34b55a&&_0x34b55a===_0x2179c5&&_0x175ff2?(this[_0x3a76('0x34')](_0x33d652,_0xe3c7fd),this[_0x3a76('0x42')](_0xe3c7fd,_0x33d652)):_0x34b55a&&_0x34b55a===_0x2179c5?this[_0x3a76('0x34')](_0x33d652,_0xe3c7fd):this['_alignAfterItem'](_0xe3c7fd,_0x33d652);}['_recalculate'](_0x35914e,_0x1d7ef7){0x0===this['_recalculateBuffer'][_0x3a76('0x3b')]&&setTimeout(()=>{for(const {sidebarItemView:_0x47938e,changedProp:_0x35ba2e}of this[_0x3a76('0x2f')])_0x3a76('0x21')===_0x35ba2e?this[_0x3a76('0x4')](_0x47938e):this[_0x3a76('0x31')](_0x47938e);this[_0x3a76('0x2f')]=[];},0xa),this[_0x3a76('0x2f')][_0x3a76('0xe')]({'sidebarItemView':_0x35914e,'changedProp':_0x1d7ef7});}[_0x3a76('0x16')](_0x31bbe3){return this[_0x3a76('0x12')]['get'](_0x31bbe3);}[_0x3a76('0x33')](){this['stopListening'](),this[_0x3a76('0x1')][_0x3a76('0x33')]();}[_0x3a76('0xb')](_0x3a6284){const _0xafab60=this['getSidebarItemView'](_0x3a6284);this[_0x3a76('0x22')](_0xafab60),this[_0x3a76('0x22')](_0x3a6284[_0x3a76('0x1')]),_0xafab60[_0x3a76('0x33')](),this[_0x3a76('0x12')][_0x3a76('0x44')](_0x3a6284),this[_0x3a76('0x30')][_0x3a76('0x44')](_0xafab60);}['_createSidebarView'](){const _0x5925cf=new _0x295ab9(this['context'][_0x3a76('0x39')]);return _0x5925cf[_0x3a76('0x1b')](),this['on'](_0x3a76('0x48'),(_0x1b8187,_0x2e5179,_0x267198,_0x9c142d)=>{_0x9c142d&&_0x5925cf['unbind']('minHeight'),_0x267198?_0x5925cf[_0x3a76('0x29')](_0x3a76('0xd'))['to'](_0x267198,'bottom'):_0x5925cf['minHeight']=null;}),_0x5925cf;}[_0x3a76('0x1d')](){var _0xa0c5c6;this['_lastItem']=(null===(_0xa0c5c6=this[_0x3a76('0x8')])||void 0x0===_0xa0c5c6?void 0x0:_0xa0c5c6[_0x3a76('0x11')])?this[_0x3a76('0x16')](this['_annotations'][_0x3a76('0x11')]):null;}[_0x3a76('0x37')](_0x329265){var _0x5c1c27;const _0x25af42=this[_0x3a76('0x30')][_0x3a76('0x15')](_0x329265),_0x48131a=_0x25af42&&(null===(_0x5c1c27=this['_annotations'])||void 0x0===_0x5c1c27?void 0x0:_0x5c1c27[_0x3a76('0x15')](this['_annotations'][_0x3a76('0x45')](_0x25af42)-0x1));return _0x48131a&&this[_0x3a76('0x16')](_0x48131a)||null;}[_0x3a76('0x3a')](_0x52957a){var _0x53c891;const _0x2beaa1=this[_0x3a76('0x30')][_0x3a76('0x15')](_0x52957a),_0x2238b6=_0x2beaa1&&(null===(_0x53c891=this['_annotations'])||void 0x0===_0x53c891?void 0x0:_0x53c891['get'](this[_0x3a76('0x8')][_0x3a76('0x45')](_0x2beaa1)+0x1));return _0x2238b6&&this[_0x3a76('0x16')](_0x2238b6)||null;}[_0x3a76('0x34')](_0x4274e6,_0x38e54c){_0x4274e6['updateHeight']();const _0xc0a709=H(_0x38e54c[_0x3a76('0x17')]+this[_0x3a76('0x14')],_0x4274e6['top']);return!!_0xc0a709&&(this['_setItemTop'](_0x38e54c,_0x38e54c[_0x3a76('0x21')]-_0xc0a709),!0x0);}[_0x3a76('0x42')](_0x5188e0,_0x2912d1){_0x5188e0[_0x3a76('0x6')]();const _0x5c2a1a=H(_0x5188e0[_0x3a76('0x17')]+this[_0x3a76('0x14')],_0x2912d1[_0x3a76('0x21')]);return!!_0x5c2a1a&&(this['_setItemTop'](_0x2912d1,_0x2912d1[_0x3a76('0x21')]+_0x5c2a1a,!0x1),!0x0);}[_0x3a76('0x35')](_0x5b30a3){const _0xbba0fe=this['_sidebarItemViewToAnnotation']['get'](_0x5b30a3);if(!_0xbba0fe||!_0xbba0fe[_0x3a76('0xf')]||!_0xbba0fe['targetRect'])return;const _0x292e97=this['_getTargetTop'](_0xbba0fe,_0xbba0fe[_0x3a76('0x2')]);this[_0x3a76('0x46')](_0x5b30a3,_0x292e97);}[_0x3a76('0x25')](_0x4a3bb4,_0x1da53c){if(null===_0x1da53c)return 0x0;if(_0x4a3bb4[_0x3a76('0xf')]instanceof _0x10be81)return _0x1da53c['top'];{const _0x5a2308=new _0x10be81(this['view'][_0x3a76('0x3')])[_0x3a76('0x21')];return _0x1da53c[_0x3a76('0x21')]-_0x5a2308;}}[_0x3a76('0x46')](_0xf0ba2f,_0x3be5c7,_0x4d14ee=this[_0x3a76('0x32')][_0x3a76('0x7')][_0x3a76('0x15')](_0x3a76('0x13'))){_0x4d14ee&&(_0x3be5c7=Math[_0x3a76('0x26')](_0x3be5c7,this['_getMaxAvailableTop'](_0xf0ba2f))),_0xf0ba2f[_0x3a76('0x21')]=_0x3be5c7;}[_0x3a76('0x3c')](_0x464c25){let _0x4b5203=this['_getItemBefore'](_0x464c25),_0x1bd4de=0x0;for(;_0x4b5203;)_0x4b5203[_0x3a76('0x6')](),_0x1bd4de+=this[_0x3a76('0x14')]+_0x4b5203[_0x3a76('0x3e')],_0x4b5203=this[_0x3a76('0x37')](_0x4b5203);return _0x1bd4de;}}function H(_0x593b4a,_0x2eab23){return Math['max'](_0x593b4a-_0x2eab23,0x0);}function y(_0x24dc99){return null!==_0x24dc99&&_0x3a76('0x23')==typeof _0x24dc99&&0x1===_0x24dc99[_0x3a76('0x18')];}
23
+ const _0x37df=['list','getSidebarItemView','refresh','Sidebar','bind','_getMaxAvailableTop','container','_createSidebarView','_recalculateBuffer','init','_annotationToSidebarItemView','context','isAnimationDisabled','pluginName','_spaceBetweenItems','_getItemAfter','view','change:_lastItem','_targetTop','define','_sidebarItemViewToAnnotation','top','_destroySidebarItemView','rearrange','_updateLastItem','_recalculate','render','_getTargetTop','clear','_detachFromContainer','target','set','_setItemTop','get','change:top','setContainer','_lastItem','_getItemBefore','_alignBeforeItem','listenTo','_alignToTargetRect','_activeAnnotation','targetRect','bottom','destroy','last','length','_alignAfterItem','_attachToContainer','unbind','content','_alignForBottomChange','minHeight','remove','sidebar-setcontainer-invalid-element','sidebar.preventScrollOutOfView','_alignForTopChange','element','addAnnotation','config','_annotations','locale','height','getIndex','stopListening','max','add','updateHeight'];(function(_0x464d37,_0x37dfa9){const _0x3e659c=function(_0x4586c5){while(--_0x4586c5){_0x464d37['push'](_0x464d37['shift']());}};_0x3e659c(++_0x37dfa9);}(_0x37df,0x18b));const _0x3e65=function(_0x464d37,_0x37dfa9){_0x464d37=_0x464d37-0x0;let _0x3e659c=_0x37df[_0x464d37];return _0x3e659c;};import{ContextPlugin as _0x1638af}from'ckeditor5/src/core.js';import{Rect as _0x13578f,CKEditorError as _0x11b4bf}from'ckeditor5/src/utils.js';import _0x212e6f from'./view/sidebarview.js';import _0x498100 from'./view/sidebaritemview.js';export default class z extends _0x1638af{static get[_0x3e65('0x1a')](){return _0x3e65('0x10');}constructor(_0x5b3a8f){super(_0x5b3a8f),this[_0x3e65('0x2c')]('_lastItem',void 0x0),this['view']=this[_0x3e65('0x14')](),this[_0x3e65('0x2c')]('container',null),this[_0x3e65('0x1b')]=0x19,this[_0x3e65('0x21')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x3e65('0x18')][_0x3e65('0x4')][_0x3e65('0x20')](_0x3e65('0x0'),!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}[_0x3e65('0x16')](){const _0x549a1b=this[_0x3e65('0x18')][_0x3e65('0x4')]['get']('sidebar.container');_0x549a1b&&this[_0x3e65('0x30')](_0x549a1b);}[_0x3e65('0x30')](_0x5f27cf){if(!y(_0x5f27cf))throw new _0x11b4bf(_0x3e65('0x43'));this[_0x3e65('0x13')]=_0x5f27cf;}[_0x3e65('0x3d')]({viewClass:_0x47775f='',spaceBetweenItems:_0x393501=0x19}={}){if(!y(this[_0x3e65('0x13')]))throw new _0x11b4bf('sidebar-attachtocontainer-missing-container',this);this[_0x3e65('0x13')]['appendChild'](this['view'][_0x3e65('0x2')]),this[_0x3e65('0x1d')]['class']=_0x47775f,this['_spaceBetweenItems']=_0x393501;}[_0x3e65('0x24')]({removedAnnotation:_0x2a1c4f,previousAnnotation:_0x1999a3,nextAnnotation:_0x347f95}){const _0x187905=this[_0x3e65('0xe')](_0x2a1c4f);this[_0x3e65('0x1d')][_0x3e65('0xd')][_0x3e65('0x42')](_0x187905),this[_0x3e65('0x23')](_0x2a1c4f),_0x1999a3&&this['_alignToTargetRect'](this[_0x3e65('0xe')](_0x1999a3)),_0x347f95&&this[_0x3e65('0x35')](this['getSidebarItemView'](_0x347f95)),this['_updateLastItem']();}[_0x3e65('0xf')]({blurredAnnotation:_0x31819b,activatedAnnotation:_0x28cf40,disableAnimationOnActivatedAnnotation:_0x4882d1}){if(this['_activeAnnotation']=_0x28cf40,_0x31819b){_0x31819b['isActive']=!0x1;const _0x3ca498=this[_0x3e65('0xe')](_0x31819b);_0x3ca498&&_0x4882d1&&(_0x3ca498[_0x3e65('0x19')]=!0x1);}if(_0x28cf40){const _0x149923=this[_0x3e65('0xe')](_0x28cf40);_0x149923&&(_0x28cf40['isActive']=!0x0,_0x4882d1&&(_0x149923[_0x3e65('0x19')]=!0x0,_0x149923[_0x3e65('0x22')]+=0x1),this[_0x3e65('0x35')](_0x149923));}}[_0x3e65('0x2a')](_0xd0cd59){if(this[_0x3e65('0x1d')][_0x3e65('0x2')][_0x3e65('0x42')](),_0xd0cd59)for(const _0x2d3e6c of _0xd0cd59)this['_destroySidebarItemView'](_0x2d3e6c);this[_0x3e65('0x1d')][_0x3e65('0xd')][_0x3e65('0x29')](),this[_0x3e65('0x1d')]['class']='',this[_0x3e65('0x31')]=null;}[_0x3e65('0x3')](_0x140500,_0x42e533){_0x42e533||(_0x42e533=_0x140500['view']);const _0x2f55e6=new _0x498100(this[_0x3e65('0x18')][_0x3e65('0x6')]);this[_0x3e65('0x21')][_0x3e65('0x2c')](_0x2f55e6,_0x140500),this[_0x3e65('0x17')][_0x3e65('0x2c')](_0x140500,_0x2f55e6),_0x2f55e6['content'][_0x3e65('0xb')](_0x42e533),this[_0x3e65('0x34')](_0x140500[_0x3e65('0x1d')],'change:targetRect',(_0x2da963,_0xb9ce1a,_0x4147b0)=>{const _0x4322ee=this[_0x3e65('0x28')](_0x140500,_0x4147b0);_0x2f55e6[_0x3e65('0x1f')]!=_0x4322ee&&(_0x2f55e6[_0x3e65('0x1f')]=_0x4322ee,this['_setItemTop'](_0x2f55e6,_0x4322ee));}),this[_0x3e65('0x34')](_0x2f55e6,_0x3e65('0x2f'),()=>{this['_recalculate'](_0x2f55e6,_0x3e65('0x22'));}),this[_0x3e65('0x34')](_0x2f55e6,'change:bottom',()=>{this[_0x3e65('0x26')](_0x2f55e6,_0x3e65('0x38'));}),this[_0x3e65('0x35')](_0x2f55e6);const _0x27f047=this[_0x3e65('0x32')](_0x2f55e6);if(_0x27f047)this['_alignAfterItem'](_0x27f047,_0x2f55e6)||this[_0x3e65('0x35')](_0x2f55e6);else this[_0x3e65('0x35')](_0x2f55e6);return this[_0x3e65('0x25')](),this[_0x3e65('0x1d')]['list'][_0x3e65('0xb')](_0x2f55e6),_0x2f55e6;}[_0x3e65('0x1')](_0x2b1526){if(!_0x2b1526[_0x3e65('0x3f')][_0x3e65('0x3b')])return;const _0x19546c=this[_0x3e65('0x32')](_0x2b1526);if(!_0x19546c)return;const _0x26cf98=this[_0x3e65('0x21')][_0x3e65('0x2e')](_0x19546c),_0x1c0448=this[_0x3e65('0x36')];_0x1c0448&&_0x1c0448===_0x26cf98?this['_alignAfterItem'](_0x19546c,_0x2b1526):this['_alignBeforeItem'](_0x2b1526,_0x19546c);}['_alignForBottomChange'](_0x3a38ac){if(!_0x3a38ac['content'][_0x3e65('0x3b')])return;const _0x28fc21=this[_0x3e65('0x1c')](_0x3a38ac);if(!_0x28fc21)return;const _0x2c534d=this[_0x3e65('0x21')][_0x3e65('0x2e')](_0x28fc21),_0x2f8986=this['context'][_0x3e65('0x4')][_0x3e65('0x2e')](_0x3e65('0x0')),_0x7417c5=this[_0x3e65('0x36')];_0x7417c5&&_0x7417c5===_0x2c534d&&_0x2f8986?(this[_0x3e65('0x33')](_0x28fc21,_0x3a38ac),this[_0x3e65('0x3c')](_0x3a38ac,_0x28fc21)):_0x7417c5&&_0x7417c5===_0x2c534d?this[_0x3e65('0x33')](_0x28fc21,_0x3a38ac):this['_alignAfterItem'](_0x3a38ac,_0x28fc21);}['_recalculate'](_0x19cc57,_0x5d1bf7){0x0===this[_0x3e65('0x15')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x19f4b2,changedProp:_0x28b39}of this[_0x3e65('0x15')])'top'===_0x28b39?this['_alignForTopChange'](_0x19f4b2):this[_0x3e65('0x40')](_0x19f4b2);this[_0x3e65('0x15')]=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x19cc57,'changedProp':_0x5d1bf7});}[_0x3e65('0xe')](_0x4a16d2){return this[_0x3e65('0x17')][_0x3e65('0x2e')](_0x4a16d2);}[_0x3e65('0x39')](){this[_0x3e65('0x9')](),this[_0x3e65('0x1d')]['destroy']();}[_0x3e65('0x23')](_0x35f064){const _0x50a4d3=this[_0x3e65('0xe')](_0x35f064);this[_0x3e65('0x9')](_0x50a4d3),this['stopListening'](_0x35f064['view']),_0x50a4d3[_0x3e65('0x39')](),this[_0x3e65('0x17')]['delete'](_0x35f064),this[_0x3e65('0x21')]['delete'](_0x50a4d3);}[_0x3e65('0x14')](){const _0x57b06e=new _0x212e6f(this[_0x3e65('0x18')]['locale']);return _0x57b06e[_0x3e65('0x27')](),this['on'](_0x3e65('0x1e'),(_0x2e1d4b,_0x12fac9,_0x155b74,_0x179505)=>{_0x179505&&_0x57b06e[_0x3e65('0x3e')]('minHeight'),_0x155b74?_0x57b06e[_0x3e65('0x11')](_0x3e65('0x41'))['to'](_0x155b74,_0x3e65('0x38')):_0x57b06e['minHeight']=null;}),_0x57b06e;}[_0x3e65('0x25')](){var _0x35b7f3;this[_0x3e65('0x31')]=(null===(_0x35b7f3=this[_0x3e65('0x5')])||void 0x0===_0x35b7f3?void 0x0:_0x35b7f3[_0x3e65('0x3a')])?this['getSidebarItemView'](this['_annotations'][_0x3e65('0x3a')]):null;}[_0x3e65('0x32')](_0xb9a424){var _0x2abb39;const _0x4fba0a=this[_0x3e65('0x21')][_0x3e65('0x2e')](_0xb9a424),_0x575930=_0x4fba0a&&(null===(_0x2abb39=this[_0x3e65('0x5')])||void 0x0===_0x2abb39?void 0x0:_0x2abb39[_0x3e65('0x2e')](this[_0x3e65('0x5')][_0x3e65('0x8')](_0x4fba0a)-0x1));return _0x575930&&this[_0x3e65('0xe')](_0x575930)||null;}[_0x3e65('0x1c')](_0x12a275){var _0x3d60f8;const _0x2f9fc1=this[_0x3e65('0x21')][_0x3e65('0x2e')](_0x12a275),_0x3efea4=_0x2f9fc1&&(null===(_0x3d60f8=this[_0x3e65('0x5')])||void 0x0===_0x3d60f8?void 0x0:_0x3d60f8['get'](this[_0x3e65('0x5')][_0x3e65('0x8')](_0x2f9fc1)+0x1));return _0x3efea4&&this['getSidebarItemView'](_0x3efea4)||null;}[_0x3e65('0x33')](_0x43f1e8,_0xcb01d5){_0x43f1e8[_0x3e65('0xc')]();const _0x750874=M(_0xcb01d5[_0x3e65('0x38')]+this[_0x3e65('0x1b')],_0x43f1e8[_0x3e65('0x22')]);return!!_0x750874&&(this[_0x3e65('0x2d')](_0xcb01d5,_0xcb01d5[_0x3e65('0x22')]-_0x750874),!0x0);}[_0x3e65('0x3c')](_0x3098b1,_0xc58e67){_0x3098b1[_0x3e65('0xc')]();const _0x3a96ee=M(_0x3098b1['bottom']+this[_0x3e65('0x1b')],_0xc58e67[_0x3e65('0x22')]);return!!_0x3a96ee&&(this[_0x3e65('0x2d')](_0xc58e67,_0xc58e67[_0x3e65('0x22')]+_0x3a96ee,!0x1),!0x0);}[_0x3e65('0x35')](_0x32d387){const _0x36dbaa=this[_0x3e65('0x21')][_0x3e65('0x2e')](_0x32d387);if(!_0x36dbaa||!_0x36dbaa[_0x3e65('0x2b')]||!_0x36dbaa[_0x3e65('0x37')])return;const _0x5d29c8=this['_getTargetTop'](_0x36dbaa,_0x36dbaa[_0x3e65('0x37')]);this[_0x3e65('0x2d')](_0x32d387,_0x5d29c8);}[_0x3e65('0x28')](_0x2e8256,_0x2e5729){if(null===_0x2e5729)return 0x0;if(_0x2e8256[_0x3e65('0x2b')]instanceof _0x13578f)return _0x2e5729[_0x3e65('0x22')];{const _0x1db171=new _0x13578f(this[_0x3e65('0x1d')]['element'])[_0x3e65('0x22')];return _0x2e5729[_0x3e65('0x22')]-_0x1db171;}}[_0x3e65('0x2d')](_0x33e110,_0x1695be,_0x3d1581=this['context']['config']['get'](_0x3e65('0x0'))){_0x3d1581&&(_0x1695be=Math['max'](_0x1695be,this['_getMaxAvailableTop'](_0x33e110))),_0x33e110[_0x3e65('0x22')]=_0x1695be;}[_0x3e65('0x12')](_0x56ae26){let _0x228ac1=this[_0x3e65('0x32')](_0x56ae26),_0x2ce709=0x0;for(;_0x228ac1;)_0x228ac1[_0x3e65('0xc')](),_0x2ce709+=this['_spaceBetweenItems']+_0x228ac1[_0x3e65('0x7')],_0x228ac1=this[_0x3e65('0x32')](_0x228ac1);return _0x2ce709;}}function M(_0xf25c9e,_0x47e506){return Math[_0x3e65('0xa')](_0xf25c9e-_0x47e506,0x0);}function y(_0x514e2a){return null!==_0x514e2a&&'object'==typeof _0x514e2a&&0x1===_0x514e2a['nodeType'];}
@@ -6,8 +6,8 @@
6
6
  * @module comments/annotations/view/annotationcounterbuttonview
7
7
  * @publicApi
8
8
  */
9
- import { ButtonView, View } from 'ckeditor5/src/ui';
10
- import type { Locale } from 'ckeditor5/src/utils';
9
+ import { ButtonView, View } from 'ckeditor5/src/ui.js';
10
+ import type { Locale } from 'ckeditor5/src/utils.js';
11
11
  /**
12
12
  * A view used in the sidebar by {@link module:comments/annotations/narrowsidebar~NarrowSidebar}.
13
13
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x116a=['add','bind','isDirty','extendTemplate','ck-annotation-counter__badge--','children','ck-annotation-counter__badge','ck-annotation-counter','...','icon','annotationType','counterView','toString','_badge','ck-annotation-counter__badge--edit-mode','set','number'];(function(_0x4c291d,_0x116af8){const _0x20478d=function(_0x4b0e08){while(--_0x4b0e08){_0x4c291d['push'](_0x4c291d['shift']());}};_0x20478d(++_0x116af8);}(_0x116a,0x1a4));const _0x2047=function(_0x4c291d,_0x116af8){_0x4c291d=_0x4c291d-0x0;let _0x20478d=_0x116a[_0x4c291d];return _0x20478d;};import{ButtonView as _0x20e8aa,View as _0x5d6f48}from'ckeditor5/src/ui';import _0x573e77 from'../../../theme/icons/add-comment.svg';export default class D extends _0x20e8aa{constructor(_0x1baf16){super(_0x1baf16);const _0x4c9f10=this['bindTemplate'];this[_0x2047('0x3')](_0x2047('0x7'),!0x1),this[_0x2047('0x3')](_0x2047('0x4'),0x0),this[_0x2047('0x6')](_0x2047('0x1'))['to'](this,_0x2047('0x7'),this,_0x2047('0x4'),(_0x65cf97,_0x3aef80)=>_0x65cf97?_0x2047('0xd'):_0x3aef80[_0x2047('0x0')]()),this[_0x2047('0x3')](_0x2047('0xf'),''),this[_0x2047('0xe')]=_0x573e77,this[_0x2047('0x8')]({'attributes':{'class':[_0x2047('0xc')]}}),this[_0x2047('0x10')]=new _0x5d6f48(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':[_0x2047('0xb'),_0x4c9f10['to'](_0x2047('0xf'),_0x1859f1=>_0x2047('0x9')+_0x1859f1),_0x4c9f10['if'](_0x2047('0x7'),_0x2047('0x2'))]},'children':[{'text':_0x4c9f10['to']('_badge')}]}),this[_0x2047('0xa')][_0x2047('0x5')](this[_0x2047('0x10')]);}}
23
+ const _0x4ec9=['number','annotationType','set','counterView','ck-annotation-counter','ck-annotation-counter__badge--edit-mode','icon','children','ck-annotation-counter__badge--','setTemplate','...','add','_badge','span','bindTemplate','toString','extendTemplate','ck-annotation-counter__badge','isDirty'];(function(_0xe45409,_0x4ec958){const _0x3edd2b=function(_0xd570d7){while(--_0xd570d7){_0xe45409['push'](_0xe45409['shift']());}};_0x3edd2b(++_0x4ec958);}(_0x4ec9,0x9f));const _0x3edd=function(_0xe45409,_0x4ec958){_0xe45409=_0xe45409-0x0;let _0x3edd2b=_0x4ec9[_0xe45409];return _0x3edd2b;};import{ButtonView as _0x47a48c,View as _0xa0e6f}from'ckeditor5/src/ui.js';import _0x336ab8 from'../../../theme/icons/add-comment.svg';export default class D extends _0x47a48c{constructor(_0x546254){super(_0x546254);const _0x223dd7=this[_0x3edd('0x7')];this[_0x3edd('0xe')](_0x3edd('0xb'),!0x1),this['set'](_0x3edd('0xc'),0x0),this['bind'](_0x3edd('0x5'))['to'](this,_0x3edd('0xb'),this,_0x3edd('0xc'),(_0x5832b9,_0x4666fa)=>_0x5832b9?_0x3edd('0x3'):_0x4666fa[_0x3edd('0x8')]()),this[_0x3edd('0xe')](_0x3edd('0xd'),''),this[_0x3edd('0x12')]=_0x336ab8,this[_0x3edd('0x9')]({'attributes':{'class':[_0x3edd('0x10')]}}),this['counterView']=new _0xa0e6f(),this['counterView'][_0x3edd('0x2')]({'tag':_0x3edd('0x6'),'attributes':{'class':[_0x3edd('0xa'),_0x223dd7['to'](_0x3edd('0xd'),_0xe996d3=>_0x3edd('0x1')+_0xe996d3),_0x223dd7['if'](_0x3edd('0xb'),_0x3edd('0x11'))]},'children':[{'text':_0x223dd7['to'](_0x3edd('0x5'))}]}),this[_0x3edd('0x0')][_0x3edd('0x4')](this[_0x3edd('0xf')]);}}
@@ -6,8 +6,8 @@
6
6
  * @module comments/annotations/view/annotationview
7
7
  * @publicApi
8
8
  */
9
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
- import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils';
9
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
10
+ import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils.js';
11
11
  import '../../../theme/annotation.css';
12
12
  /**
13
13
  * A wrapping view for any view added to the `Annotations` plugin.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b12=['content','length','_updateHeight','clientHeight','Esc','render','add','_mutationObserver','focusTracker','div','mainView','bindTemplate','attach','destroy','element','type','set','createCollection','keystrokes','listenTo','setTemplate','height','isActive','clear','ck-annotation-wrapper--active','isDirty','fire'];(function(_0x2ca5db,_0x5b125f){const _0x383e4f=function(_0x35128f){while(--_0x35128f){_0x2ca5db['push'](_0x2ca5db['shift']());}};_0x383e4f(++_0x5b125f);}(_0x5b12,0x11f));const _0x383e=function(_0x2ca5db,_0x5b125f){_0x2ca5db=_0x2ca5db-0x0;let _0x383e4f=_0x5b12[_0x2ca5db];return _0x383e4f;};import{View as _0x3cb4f8}from'ckeditor5/src/ui';import{FocusTracker as _0x5cf7bd,KeystrokeHandler as _0x2059be,uid as _0x425382}from'ckeditor5/src/utils';import _0x4b2676 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x3cb4f8{constructor(_0x428cee,_0x312a15){super(_0x428cee),this['id']=_0x425382(),this[_0x383e('0x12')]=new _0x5cf7bd(),this['keystrokes']=new _0x2059be(),this[_0x383e('0x1')]['set'](_0x383e('0xe'),(_0x3699c8,_0x33b380)=>this[_0x383e('0x9')](_0x383e('0xe'),_0x33b380)),this[_0x383e('0x1a')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x383e('0x1a')](_0x383e('0x4'),0x0),this[_0x383e('0x1a')](_0x383e('0x5'),!0x1),this['set'](_0x383e('0x8'),!0x1),this['set'](_0x383e('0xb'),0x0),this[_0x383e('0x1a')](_0x383e('0x19'),''),this['_mutationObserver']=_0x4b2676(()=>this['_updateHeight']()),this['content']=this[_0x383e('0x0')](),this[_0x383e('0xa')][_0x383e('0x10')](_0x312a15),this[_0x383e('0x14')]=_0x312a15;const _0x49bf4f=this[_0x383e('0x15')];this[_0x383e('0x3')]({'tag':_0x383e('0x13'),'attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x49bf4f['if'](_0x383e('0x5'),_0x383e('0x7'))],'tabindex':-0x1},'children':this['content']});}[_0x383e('0xf')](){super[_0x383e('0xf')](),this[_0x383e('0x12')][_0x383e('0x10')](this[_0x383e('0x18')]),this[_0x383e('0x1')][_0x383e('0x2')](this['element']),this['_mutationObserver'][_0x383e('0x16')](this['element']);}[_0x383e('0x17')](){this[_0x383e('0xa')][_0x383e('0x6')](),this[_0x383e('0x1')][_0x383e('0x17')](),this[_0x383e('0x12')][_0x383e('0x17')](),this[_0x383e('0x11')]['detach'](),super[_0x383e('0x17')]();}['focus'](){this[_0x383e('0x18')]['focus']();}[_0x383e('0xc')](){const _0xd2c53e=this[_0x383e('0x18')][_0x383e('0xd')];_0xd2c53e&&(this[_0x383e('0x4')]=_0xd2c53e);}}
23
+ const _0x2d53=['content','bindTemplate','ck-annotation-wrapper--active','render','isActive','keystrokes','length','detach','add','focus','set','isDirty','fire','attach','focusTracker','setTemplate','listenTo','element','type','clear','destroy','_mutationObserver','targetRect','div','height','createCollection','_updateHeight','clientHeight','ck-annotation-wrapper','Esc','ck-rounded-corners'];(function(_0xcbf6a2,_0x2d53e2){const _0x2a9bda=function(_0x2af78f){while(--_0x2af78f){_0xcbf6a2['push'](_0xcbf6a2['shift']());}};_0x2a9bda(++_0x2d53e2);}(_0x2d53,0x99));const _0x2a9b=function(_0xcbf6a2,_0x2d53e2){_0xcbf6a2=_0xcbf6a2-0x0;let _0x2a9bda=_0x2d53[_0xcbf6a2];return _0x2a9bda;};import{View as _0x1a57ad}from'ckeditor5/src/ui.js';import{FocusTracker as _0x3c1c39,KeystrokeHandler as _0x42a631,uid as _0x4ee566}from'ckeditor5/src/utils.js';import _0xfde7c from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0x1a57ad{constructor(_0x4dd90b,_0x5b9b13){super(_0x4dd90b),this['id']=_0x4ee566(),this[_0x2a9b('0x10')]=new _0x3c1c39(),this[_0x2a9b('0x7')]=new _0x42a631(),this[_0x2a9b('0x7')]['set']('Esc',(_0x2c7069,_0x273e37)=>this[_0x2a9b('0xe')](_0x2a9b('0x0'),_0x273e37)),this[_0x2a9b('0xc')](_0x2a9b('0x18'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x2a9b('0x1a'),0x0),this[_0x2a9b('0xc')]('isActive',!0x1),this[_0x2a9b('0xc')](_0x2a9b('0xd'),!0x1),this[_0x2a9b('0xc')](_0x2a9b('0x8'),0x0),this[_0x2a9b('0xc')](_0x2a9b('0x14'),''),this[_0x2a9b('0x17')]=_0xfde7c(()=>this[_0x2a9b('0x1c')]()),this[_0x2a9b('0x2')]=this[_0x2a9b('0x1b')](),this[_0x2a9b('0x2')][_0x2a9b('0xa')](_0x5b9b13),this['mainView']=_0x5b9b13;const _0x519444=this[_0x2a9b('0x3')];this[_0x2a9b('0x11')]({'tag':_0x2a9b('0x19'),'attributes':{'class':['ck',_0x2a9b('0x1e'),_0x2a9b('0x1'),_0x519444['if'](_0x2a9b('0x6'),_0x2a9b('0x4'))],'tabindex':-0x1},'children':this['content']});}[_0x2a9b('0x5')](){super[_0x2a9b('0x5')](),this['focusTracker']['add'](this['element']),this[_0x2a9b('0x7')][_0x2a9b('0x12')](this[_0x2a9b('0x13')]),this[_0x2a9b('0x17')][_0x2a9b('0xf')](this[_0x2a9b('0x13')]);}[_0x2a9b('0x16')](){this['content'][_0x2a9b('0x15')](),this[_0x2a9b('0x7')]['destroy'](),this[_0x2a9b('0x10')][_0x2a9b('0x16')](),this[_0x2a9b('0x17')][_0x2a9b('0x9')](),super[_0x2a9b('0x16')]();}[_0x2a9b('0xb')](){this[_0x2a9b('0x13')][_0x2a9b('0xb')]();}[_0x2a9b('0x1c')](){const _0x40c5d3=this[_0x2a9b('0x13')][_0x2a9b('0x1d')];_0x40c5d3&&(this[_0x2a9b('0x1a')]=_0x40c5d3);}}
@@ -6,8 +6,8 @@
6
6
  * @module comments/annotations/view/sidebaritemview
7
7
  * @publicApi
8
8
  */
9
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
- import { type Locale } from 'ckeditor5/src/utils';
9
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
10
+ import { type Locale } from 'ckeditor5/src/utils.js';
11
11
  /**
12
12
  * A wrapper view that wraps given {@link module:ui/view~View} to display it as a {@link module:comments/annotations/sidebar~Sidebar} item.
13
13
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x545f=['height','top','div','content','element','updateHeight','ck-sidebar-item','detach','set','bindTemplate','destroy','isAnimationDisabled','_mutationObserver','render','setTemplate','createCollection','attach','bottom','_targetTop','clientHeight'];(function(_0x1dd0d3,_0x545ffb){const _0x30423c=function(_0x3638f1){while(--_0x3638f1){_0x1dd0d3['push'](_0x1dd0d3['shift']());}};_0x30423c(++_0x545ffb);}(_0x545f,0xe1));const _0x3042=function(_0x1dd0d3,_0x545ffb){_0x1dd0d3=_0x1dd0d3-0x0;let _0x30423c=_0x545f[_0x1dd0d3];return _0x30423c;};import{View as _0x5adeb2}from'ckeditor5/src/ui';import{toUnit as _0x4bce9a}from'ckeditor5/src/utils';import _0x41c348 from'../../utils/createmutationobserver';const jt=_0x4bce9a('px');export default class C extends _0x5adeb2{constructor(_0x462622){super(_0x462622),this[_0x3042('0x3')](_0x3042('0x10'),0x0),this[_0x3042('0x3')](_0x3042('0xf'),0x0),this['bind'](_0x3042('0xc'))['to'](this,_0x3042('0x10'),this,_0x3042('0xf'),(_0x2053f0,_0x465d32)=>_0x2053f0+_0x465d32),this['set'](_0x3042('0x6'),!0x1),this[_0x3042('0x7')]=_0x41c348(()=>this[_0x3042('0x0')]()),this[_0x3042('0xd')]=null,this[_0x3042('0x12')]=this[_0x3042('0xa')]();const _0xa3dbeb=this[_0x3042('0x4')];this[_0x3042('0x9')]({'tag':_0x3042('0x11'),'attributes':{'class':[_0x3042('0x1'),_0xa3dbeb['to'](_0x3042('0x6'),_0x54f0bc=>_0x54f0bc?'ck-sidebar-item--no-animation':'')],'style':{'top':_0xa3dbeb['to'](_0x3042('0x10'),_0x4c7820=>jt(_0x4c7820))}},'children':this[_0x3042('0x12')]});}['render'](){super[_0x3042('0x8')](),this[_0x3042('0x7')][_0x3042('0xb')](this[_0x3042('0x13')]);}[_0x3042('0x0')](){const _0x1ad661=this[_0x3042('0x13')][_0x3042('0xe')];_0x1ad661&&(this[_0x3042('0xf')]=_0x1ad661);}[_0x3042('0x5')](){this[_0x3042('0x12')]['clear'](),this[_0x3042('0x7')][_0x3042('0x2')](),super[_0x3042('0x5')]();}}
23
+ const _0x10b0=['_targetTop','div','ck-sidebar-item','element','clear','_mutationObserver','destroy','setTemplate','top','createCollection','set','isAnimationDisabled','attach','content','ck-sidebar-item--no-animation','clientHeight','height','detach','render','bind','bottom'];(function(_0xdaef3f,_0x10b0bd){const _0x109974=function(_0x1226f1){while(--_0x1226f1){_0xdaef3f['push'](_0xdaef3f['shift']());}};_0x109974(++_0x10b0bd);}(_0x10b0,0x9d));const _0x1099=function(_0xdaef3f,_0x10b0bd){_0xdaef3f=_0xdaef3f-0x0;let _0x109974=_0x10b0[_0xdaef3f];return _0x109974;};import{View as _0x1e6c94}from'ckeditor5/src/ui.js';import{toUnit as _0xd5b64f}from'ckeditor5/src/utils.js';import _0x38cbd6 from'../../utils/createmutationobserver.js';const Ht=_0xd5b64f('px');export default class C extends _0x1e6c94{constructor(_0x56f338){super(_0x56f338),this['set']('top',0x0),this['set'](_0x1099('0x6'),0x0),this[_0x1099('0x9')](_0x1099('0xa'))['to'](this,_0x1099('0x13'),this,'height',(_0x4cac86,_0x57576f)=>_0x4cac86+_0x57576f),this[_0x1099('0x0')](_0x1099('0x1'),!0x1),this['_mutationObserver']=_0x38cbd6(()=>this['updateHeight']()),this[_0x1099('0xb')]=null,this[_0x1099('0x3')]=this[_0x1099('0x14')]();const _0x9252a0=this['bindTemplate'];this[_0x1099('0x12')]({'tag':_0x1099('0xc'),'attributes':{'class':[_0x1099('0xd'),_0x9252a0['to']('isAnimationDisabled',_0x330835=>_0x330835?_0x1099('0x4'):'')],'style':{'top':_0x9252a0['to']('top',_0x3b34c4=>Ht(_0x3b34c4))}},'children':this[_0x1099('0x3')]});}[_0x1099('0x8')](){super[_0x1099('0x8')](),this['_mutationObserver'][_0x1099('0x2')](this['element']);}['updateHeight'](){const _0x4735b3=this[_0x1099('0xe')][_0x1099('0x5')];_0x4735b3&&(this['height']=_0x4735b3);}['destroy'](){this[_0x1099('0x3')][_0x1099('0xf')](),this[_0x1099('0x10')][_0x1099('0x7')](),super[_0x1099('0x11')]();}}
@@ -6,8 +6,8 @@
6
6
  * @module comments/annotations/view/sidebarview
7
7
  * @publicApi
8
8
  */
9
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
- import { type Locale } from 'ckeditor5/src/utils';
9
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
10
+ import { type Locale } from 'ckeditor5/src/utils.js';
11
11
  import '../../../theme/sidebar.css';
12
12
  /**
13
13
  * The sidebar view class that displays the collection of sidebar item views.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3349=['list','minHeight','div','set','ck-reset','number','class','setTemplate'];(function(_0x1ea4da,_0x3349c4){const _0x27462b=function(_0xd168b5){while(--_0xd168b5){_0x1ea4da['push'](_0x1ea4da['shift']());}};_0x27462b(++_0x3349c4);}(_0x3349,0xe4));const _0x2746=function(_0x1ea4da,_0x3349c4){_0x1ea4da=_0x1ea4da-0x0;let _0x27462b=_0x3349[_0x1ea4da];return _0x27462b;};import{View as _0x582762}from'ckeditor5/src/ui';import{toUnit as _0x30a132}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x30a132('px');export default class T extends _0x582762{constructor(_0x1ff128){super(_0x1ff128);const _0x34d936=this['bindTemplate'];this[_0x2746('0x7')]('minHeight',0x0),this[_0x2746('0x7')](_0x2746('0x2'),''),this[_0x2746('0x4')]=this['createCollection'](),this[_0x2746('0x3')]({'tag':_0x2746('0x6'),'attributes':{'class':['ck','ck-sidebar',_0x2746('0x0'),_0x34d936['to'](_0x2746('0x2'))],'style':{'minHeight':_0x34d936['to'](_0x2746('0x5'),_0xd2ee9f=>_0x2746('0x1')==typeof _0xd2ee9f?jt(_0xd2ee9f+0xa):null)}},'children':this[_0x2746('0x4')]});}}
23
+ const _0x1d6c=['minHeight','set','bindTemplate','list','ck-sidebar','createCollection','class','setTemplate'];(function(_0x1a73d6,_0x1d6c76){const _0x5d2abb=function(_0x4bb368){while(--_0x4bb368){_0x1a73d6['push'](_0x1a73d6['shift']());}};_0x5d2abb(++_0x1d6c76);}(_0x1d6c,0xd3));const _0x5d2a=function(_0x1a73d6,_0x1d6c76){_0x1a73d6=_0x1a73d6-0x0;let _0x5d2abb=_0x1d6c[_0x1a73d6];return _0x5d2abb;};import{View as _0x1ebf2e}from'ckeditor5/src/ui.js';import{toUnit as _0x3816c1}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x3816c1('px');export default class T extends _0x1ebf2e{constructor(_0x1f7bfd){super(_0x1f7bfd);const _0x103d4f=this[_0x5d2a('0x7')];this['set'](_0x5d2a('0x5'),0x0),this[_0x5d2a('0x6')](_0x5d2a('0x3'),''),this[_0x5d2a('0x0')]=this[_0x5d2a('0x2')](),this[_0x5d2a('0x4')]({'tag':'div','attributes':{'class':['ck',_0x5d2a('0x1'),'ck-reset',_0x103d4f['to'](_0x5d2a('0x3'))],'style':{'minHeight':_0x103d4f['to'](_0x5d2a('0x5'),_0x788e41=>'number'==typeof _0x788e41?Ht(_0x788e41+0xa):null)}},'children':this[_0x5d2a('0x0')]});}}
@@ -6,11 +6,11 @@
6
6
  * @module comments/annotations/widesidebar
7
7
  * @publicApi
8
8
  */
9
- import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core';
10
- import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
11
- import Sidebar from './sidebar';
12
- import type Annotation from './annotation';
13
- import type { default as AnnotationCollection } from './annotationcollection';
9
+ import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core.js';
10
+ import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis.js';
11
+ import Sidebar from './sidebar.js';
12
+ import type Annotation from './annotation.js';
13
+ import type { default as AnnotationCollection } from './annotationcollection.js';
14
14
  /**
15
15
  * The wide sidebar UI for displaying annotations.
16
16
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3768=['_activeAnnotation','ready','uiUpdate','WideSidebar','refresh','activeAnnotation','_editorAnnotations','pluginName','register','get','_refreshPositioningDebounced','getOrderedSelectedAnnotations','remove','addEventListener','_destroyEditorAnnotationsIntegration','destroy','annotations','_annotations','refreshPositioning','_detachFromContainer','init','hasDomSelection','addAnnotation','rearrange','change:container','container','stopListening','widesidebar-attach-already-attached','add','cancel','from','resize','high','stop','editors','switchTo','blur','plugins','ck-sidebar--wide','listenTo','off','isAttached','detach','attach','context','setActiveAnnotation','_attachToContainer'];(function(_0x1c5a77,_0x376825){const _0x54df98=function(_0x74dffb){while(--_0x74dffb){_0x1c5a77['push'](_0x1c5a77['shift']());}};_0x54df98(++_0x376825);}(_0x3768,0x6b));const _0x54df=function(_0x1c5a77,_0x376825){_0x1c5a77=_0x1c5a77-0x0;let _0x54df98=_0x3768[_0x1c5a77];return _0x54df98;};import{ContextPlugin as _0x320597,Context as _0x2f406e}from'ckeditor5/src/core';import _0x125500 from'./annotationsuis';import _0x51b2d7 from'./sidebar';import{CKEditorError as _0x35a5e1,Collection as _0x568c18}from'ckeditor5/src/utils';import{debounce as _0x3d0297}from'lodash-es';import _0x1b79f3 from'./editorannotations';export default class i extends _0x320597{static get['requires'](){return[_0x51b2d7,_0x125500];}static get[_0x54df('0x29')](){return _0x54df('0x25');}constructor(_0x110178){super(_0x110178),this[_0x54df('0x1c')]=!0x1,this['set'](_0x54df('0x27'),null),this[_0x54df('0x3')]=null,this[_0x54df('0x28')]=new _0x568c18(),this[_0x54df('0x2c')]=_0x3d0297(()=>{this[_0x54df('0x3')]['refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x54df('0x7')](){const _0x5c3d8c=this[_0x54df('0x1f')][_0x54df('0x18')]['get'](_0x125500),_0x4ab47f=this[_0x54df('0x1f')][_0x54df('0x18')][_0x54df('0x2b')](_0x51b2d7);_0x5c3d8c[_0x54df('0x2a')]('wideSidebar',this),_0x4ab47f[_0x54df('0xc')]&&_0x5c3d8c[_0x54df('0x16')]('wideSidebar');}[_0x54df('0x20')](_0x4fd740){if(_0x4fd740===this[_0x54df('0x27')])return;const _0x1c4714=this[_0x54df('0x1f')]['plugins']['get'](_0x51b2d7);_0x1c4714[_0x54df('0x22')]=_0x4fd740;const _0xfe4d74=this['activeAnnotation'];this[_0x54df('0x27')]=_0x4fd740,_0x1c4714['refresh']({'blurredAnnotation':_0xfe4d74,'activatedAnnotation':this[_0x54df('0x27')]});}[_0x54df('0x1e')](_0x4c68e3){this['annotations']=_0x4c68e3;const _0x1ab7ce=this['context']['plugins']['get'](_0x51b2d7);if(_0x1ab7ce[_0x54df('0x4')]=_0x4c68e3,this[_0x54df('0x1c')])throw new _0x35a5e1(_0x54df('0xe'),this);this[_0x54df('0x1c')]=!0x0,this[_0x54df('0x1a')](_0x1ab7ce,'set:container',()=>{this[_0x54df('0x1d')](),this['listenTo'](_0x1ab7ce,_0x54df('0xb'),_0x55f893=>{_0x55f893[_0x54df('0x1b')](),this[_0x54df('0x1e')](_0x4c68e3);});}),_0x1ab7ce[_0x54df('0x21')]({'viewClass':_0x54df('0x19')});const _0x40b24f=_0x52f880=>{_0x52f880['updateTargetRect'](),_0x1ab7ce[_0x54df('0x9')](_0x52f880);};for(const _0x1af99a of _0x4c68e3)_0x40b24f(_0x1af99a);this['listenTo'](_0x4c68e3,'add',(_0x144cba,_0x48a187)=>{_0x40b24f(_0x48a187);}),this[_0x54df('0x1a')](_0x4c68e3,'remove',(_0x3efd45,_0x47dcf2,_0x3d4565)=>{_0x1ab7ce[_0x54df('0xa')]({'removedAnnotation':_0x47dcf2,'previousAnnotation':_0x4c68e3['get'](_0x3d4565-0x1),'nextAnnotation':_0x4c68e3[_0x54df('0x2b')](_0x3d4565+0x1)}),_0x47dcf2===this[_0x54df('0x27')]&&this[_0x54df('0x20')](null);},{'priority':_0x54df('0x13')}),this[_0x54df('0x1a')](_0x4c68e3,'focus',(_0x4cd814,_0x191931)=>{this[_0x54df('0x20')](_0x191931);}),this[_0x54df('0x1a')](_0x4c68e3,_0x54df('0x17'),()=>{this['setActiveAnnotation'](null);});const _0x203610=this[_0x54df('0x1f')]instanceof _0x2f406e?this[_0x54df('0x1f')][_0x54df('0x15')]:new _0x568c18([this[_0x54df('0x1f')]]);for(const _0x1cb5d1 of _0x203610)this['_integrateWithEditorAnnotations'](_0x1cb5d1);this[_0x54df('0x1a')](_0x203610,_0x54df('0xf'),(_0x373811,_0x4936d4)=>{this[_0x54df('0x1a')](_0x4936d4,_0x54df('0x23'),()=>{this['_integrateWithEditorAnnotations'](_0x4936d4);});}),this['listenTo'](_0x203610,'remove',(_0x5e90d1,_0x165e59)=>{_0x165e59['plugins']['has']('EditorAnnotations')&&this[_0x54df('0x1')](_0x165e59[_0x54df('0x18')][_0x54df('0x2b')]('EditorAnnotations'));}),window[_0x54df('0x0')](_0x54df('0x12'),this[_0x54df('0x2c')]),this['annotations'][_0x54df('0x5')]();}['detach'](){if(!this[_0x54df('0x1c')])throw new _0x35a5e1('widesidebar-detach-not-attached',this);this[_0x54df('0x20')](null);const _0x12b42a=this['context'][_0x54df('0x18')][_0x54df('0x2b')](_0x51b2d7);_0x12b42a[_0x54df('0x6')](this[_0x54df('0x3')]),this[_0x54df('0xd')](_0x12b42a),this[_0x54df('0xd')](this[_0x54df('0x3')]),this[_0x54df('0x1f')]instanceof _0x2f406e&&this[_0x54df('0xd')](this['context'][_0x54df('0x15')]);for(const _0x22d7c0 of Array[_0x54df('0x11')](this[_0x54df('0x28')]))this[_0x54df('0x1')](_0x22d7c0);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x54df('0x10')](),this[_0x54df('0x27')]=null,this[_0x54df('0x1c')]=!0x1,this['annotations']=null;}[_0x54df('0x2')](){this[_0x54df('0x1c')]&&this[_0x54df('0x1d')]();}['_integrateWithEditorAnnotations'](_0x4d5ed4){const _0x3a8d27=_0x4d5ed4['plugins'][_0x54df('0x2b')](_0x1b79f3);if(!_0x3a8d27)return;const _0x247f06=()=>{const _0xbd788e=_0x3a8d27[_0x54df('0x2d')]({'annotations':this[_0x54df('0x3')],'activeAnnotation':this[_0x54df('0x27')]});this[_0x54df('0x20')](_0xbd788e[0x0]||null);};this['listenTo'](_0x3a8d27,_0x54df('0x26'),_0x247f06),this[_0x54df('0x1a')](_0x3a8d27,_0x54df('0x17'),(_0x158a8b,{isAnnotationTracked:_0x2605a3})=>{this[_0x54df('0x27')]&&_0x2605a3(this['activeAnnotation'])&&this[_0x54df('0x20')](null);}),this[_0x54df('0x1a')](_0x3a8d27,_0x54df('0x24'),()=>{this[_0x54df('0x2c')]();}),this['listenTo'](this['annotations'],_0x54df('0x17'),_0x29bc63=>{_0x3a8d27[_0x54df('0x8')]()&&(_0x247f06(),_0x29bc63[_0x54df('0x14')]());},{'priority':_0x54df('0x13')}),this[_0x54df('0x28')][_0x54df('0xf')](_0x3a8d27);}[_0x54df('0x1')](_0x5bb0cd){this['stopListening'](_0x5bb0cd),this['_editorAnnotations'][_0x54df('0x2e')](_0x5bb0cd);}}
23
+ const _0x1aa8=['blur','updateTargetRect','container','get','_integrateWithEditorAnnotations','plugins','set','_editorAnnotations','off','set:container','remove','uiUpdate','_activeAnnotation','pluginName','_refreshPositioningDebounced','widesidebar-attach-already-attached','refresh','addEventListener','addAnnotation','removeEventListener','from','refreshPositioning','_destroyEditorAnnotationsIntegration','cancel','init','high','widesidebar-detach-not-attached','setActiveAnnotation','hasDomSelection','register','listenTo','destroy','activeAnnotation','change:container','context','resize','has','_annotations','wideSidebar','attach','editors','stopListening','ck-sidebar--wide','isAttached','getOrderedSelectedAnnotations','annotations','stop','focus'];(function(_0x34697d,_0x1aa80d){const _0x35c27e=function(_0x298837){while(--_0x298837){_0x34697d['push'](_0x34697d['shift']());}};_0x35c27e(++_0x1aa80d);}(_0x1aa8,0x140));const _0x35c2=function(_0x34697d,_0x1aa80d){_0x34697d=_0x34697d-0x0;let _0x35c27e=_0x1aa8[_0x34697d];return _0x35c27e;};import{ContextPlugin as _0x31bb59,Context as _0x819592}from'ckeditor5/src/core.js';import _0x2c4e53 from'./annotationsuis.js';import _0x1dedeb from'./sidebar.js';import{CKEditorError as _0x2593b7,Collection as _0x52196f}from'ckeditor5/src/utils.js';import{debounce as _0x574fb4}from'lodash-es';import _0x5d5ece from'./editorannotations.js';export default class n extends _0x31bb59{static get['requires'](){return[_0x1dedeb,_0x2c4e53];}static get[_0x35c2('0x1d')](){return'WideSidebar';}constructor(_0xdbac72){super(_0xdbac72),this[_0x35c2('0xb')]=!0x1,this[_0x35c2('0x16')](_0x35c2('0x0'),null),this['annotations']=null,this['_editorAnnotations']=new _0x52196f(),this[_0x35c2('0x1e')]=_0x574fb4(()=>{this[_0x35c2('0xd')][_0x35c2('0x25')]();},0xfa,{'leading':!0x1});}[_0x35c2('0x28')](){const _0x7cbacd=this[_0x35c2('0x2')]['plugins'][_0x35c2('0x13')](_0x2c4e53),_0xa5bd90=this['context'][_0x35c2('0x15')]['get'](_0x1dedeb);_0x7cbacd[_0x35c2('0x2d')](_0x35c2('0x6'),this),_0xa5bd90[_0x35c2('0x12')]&&_0x7cbacd['switchTo']('wideSidebar');}[_0x35c2('0x2b')](_0x17c91a){if(_0x17c91a===this[_0x35c2('0x0')])return;const _0x12f4f1=this[_0x35c2('0x2')][_0x35c2('0x15')][_0x35c2('0x13')](_0x1dedeb);_0x12f4f1[_0x35c2('0x1c')]=_0x17c91a;const _0x499b86=this[_0x35c2('0x0')];this['activeAnnotation']=_0x17c91a,_0x12f4f1[_0x35c2('0x20')]({'blurredAnnotation':_0x499b86,'activatedAnnotation':this[_0x35c2('0x0')]});}[_0x35c2('0x7')](_0x24d0d4){this[_0x35c2('0xd')]=_0x24d0d4;const _0x4256bc=this[_0x35c2('0x2')][_0x35c2('0x15')]['get'](_0x1dedeb);if(_0x4256bc[_0x35c2('0x5')]=_0x24d0d4,this[_0x35c2('0xb')])throw new _0x2593b7(_0x35c2('0x1f'),this);this[_0x35c2('0xb')]=!0x0,this['listenTo'](_0x4256bc,_0x35c2('0x19'),()=>{this['detach'](),this[_0x35c2('0x2e')](_0x4256bc,_0x35c2('0x1'),_0x2884b9=>{_0x2884b9[_0x35c2('0x18')](),this[_0x35c2('0x7')](_0x24d0d4);});}),_0x4256bc['_attachToContainer']({'viewClass':_0x35c2('0xa')});const _0x55d2ea=_0x496147=>{_0x496147[_0x35c2('0x11')](),_0x4256bc[_0x35c2('0x22')](_0x496147);};for(const _0x569346 of _0x24d0d4)_0x55d2ea(_0x569346);this[_0x35c2('0x2e')](_0x24d0d4,'add',(_0x3afabe,_0x330049)=>{_0x55d2ea(_0x330049);}),this['listenTo'](_0x24d0d4,_0x35c2('0x1a'),(_0xd980,_0x9c05e4,_0x208e26)=>{_0x4256bc['rearrange']({'removedAnnotation':_0x9c05e4,'previousAnnotation':_0x24d0d4[_0x35c2('0x13')](_0x208e26-0x1),'nextAnnotation':_0x24d0d4['get'](_0x208e26+0x1)}),_0x9c05e4===this['activeAnnotation']&&this[_0x35c2('0x2b')](null);},{'priority':'high'}),this['listenTo'](_0x24d0d4,_0x35c2('0xf'),(_0x1f6ef6,_0x2caf85)=>{this[_0x35c2('0x2b')](_0x2caf85);}),this[_0x35c2('0x2e')](_0x24d0d4,_0x35c2('0x10'),()=>{this['setActiveAnnotation'](null);});const _0x4acc2c=this[_0x35c2('0x2')]instanceof _0x819592?this[_0x35c2('0x2')][_0x35c2('0x8')]:new _0x52196f([this[_0x35c2('0x2')]]);for(const _0x586599 of _0x4acc2c)this[_0x35c2('0x14')](_0x586599);this[_0x35c2('0x2e')](_0x4acc2c,'add',(_0x2bc4be,_0x444925)=>{this[_0x35c2('0x2e')](_0x444925,'ready',()=>{this[_0x35c2('0x14')](_0x444925);});}),this[_0x35c2('0x2e')](_0x4acc2c,_0x35c2('0x1a'),(_0xc6cc6f,_0x3efea1)=>{_0x3efea1['plugins'][_0x35c2('0x4')]('EditorAnnotations')&&this[_0x35c2('0x26')](_0x3efea1[_0x35c2('0x15')]['get']('EditorAnnotations'));}),window[_0x35c2('0x21')](_0x35c2('0x3'),this[_0x35c2('0x1e')]),this[_0x35c2('0xd')][_0x35c2('0x25')]();}['detach'](){if(!this[_0x35c2('0xb')])throw new _0x2593b7(_0x35c2('0x2a'),this);this[_0x35c2('0x2b')](null);const _0x248999=this[_0x35c2('0x2')][_0x35c2('0x15')][_0x35c2('0x13')](_0x1dedeb);_0x248999['_detachFromContainer'](this[_0x35c2('0xd')]),this[_0x35c2('0x9')](_0x248999),this[_0x35c2('0x9')](this[_0x35c2('0xd')]),this[_0x35c2('0x2')]instanceof _0x819592&&this[_0x35c2('0x9')](this[_0x35c2('0x2')][_0x35c2('0x8')]);for(const _0x4df4cf of Array[_0x35c2('0x24')](this[_0x35c2('0x17')]))this[_0x35c2('0x26')](_0x4df4cf);window[_0x35c2('0x23')]('resize',this[_0x35c2('0x1e')]),this[_0x35c2('0x1e')][_0x35c2('0x27')](),this['activeAnnotation']=null,this[_0x35c2('0xb')]=!0x1,this[_0x35c2('0xd')]=null;}[_0x35c2('0x2f')](){this[_0x35c2('0xb')]&&this['detach']();}[_0x35c2('0x14')](_0x598253){const _0x24a8f4=_0x598253[_0x35c2('0x15')][_0x35c2('0x13')](_0x5d5ece);if(!_0x24a8f4)return;const _0x32ed25=()=>{const _0x90fe76=_0x24a8f4[_0x35c2('0xc')]({'annotations':this[_0x35c2('0xd')],'activeAnnotation':this['activeAnnotation']});this[_0x35c2('0x2b')](_0x90fe76[0x0]||null);};this[_0x35c2('0x2e')](_0x24a8f4,_0x35c2('0x20'),_0x32ed25),this['listenTo'](_0x24a8f4,_0x35c2('0x10'),(_0x438f44,{isAnnotationTracked:_0x8c2d1e})=>{this[_0x35c2('0x0')]&&_0x8c2d1e(this['activeAnnotation'])&&this[_0x35c2('0x2b')](null);}),this[_0x35c2('0x2e')](_0x24a8f4,_0x35c2('0x1b'),()=>{this[_0x35c2('0x1e')]();}),this['listenTo'](this[_0x35c2('0xd')],_0x35c2('0x10'),_0x46f4ad=>{_0x24a8f4[_0x35c2('0x2c')]()&&(_0x32ed25(),_0x46f4ad[_0x35c2('0xe')]());},{'priority':_0x35c2('0x29')}),this['_editorAnnotations']['add'](_0x24a8f4);}['_destroyEditorAnnotationsIntegration'](_0x4b2193){this[_0x35c2('0x9')](_0x4b2193),this[_0x35c2('0x17')][_0x35c2('0x1a')](_0x4b2193);}}
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { CommentsConfig, SidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, CommentsRepository, CommentsUI } from './index';
5
+ import type { CommentsConfig, SidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, CommentsRepository, CommentsUI } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface EditorConfig {
8
8
  /**
@@ -6,7 +6,7 @@
6
6
  * @module comments/comments/addcommentthreadcommand
7
7
  * @publicApi
8
8
  */
9
- import { Command } from 'ckeditor5/src/core';
9
+ import { Command } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * Adds a new CommentMarker what automatically adds corresponding CommentThread to the CommentsEditing#threads collection.
12
12
  * Note this command adds only a CommentThread draft, to make is public marker has to be changed to be managed using operation.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8cee=['element','schema','_itemIsContent','start','editor','_hasContent','isObject','getItems','model','comment:','tableCell','isEnabled','$textProxy','addMarker','getLastMatchingPosition','_trimToContent','document','end','refresh','push','createRange'];(function(_0x5a2a9b,_0x8cee5){const _0x1ecb28=function(_0x4a833a){while(--_0x4a833a){_0x5a2a9b['push'](_0x5a2a9b['shift']());}};_0x1ecb28(++_0x8cee5);}(_0x8cee,0x1df));const _0x1ecb=function(_0x5a2a9b,_0x8cee5){_0x5a2a9b=_0x5a2a9b-0x0;let _0x1ecb28=_0x8cee[_0x5a2a9b];return _0x1ecb28;};import{Command as _0x140b7e}from'ckeditor5/src/core';import{uid as _0x22310f}from'ckeditor5/src/utils';export default class q extends _0x140b7e{[_0x1ecb('0x1')](){const _0x234e32=this['editor'][_0x1ecb('0xc')][_0x1ecb('0x14')]['selection'];for(const _0x200fb5 of _0x234e32['getRanges']())if(this[_0x1ecb('0x9')](_0x200fb5))return void(this[_0x1ecb('0xf')]=!0x0);this[_0x1ecb('0xf')]=!0x1;}['execute']({threadId:_0x4d1f84=_0x22310f()}={}){const _0x22db42=this[_0x1ecb('0x8')][_0x1ecb('0xc')],_0x566b0e=[];for(const _0x573b99 of _0x22db42['document']['selection']['getRanges']())this['_hasContent'](_0x573b99)&&_0x566b0e[_0x1ecb('0x2')](this[_0x1ecb('0x13')](_0x573b99));_0x22db42['change'](_0x1bde7f=>{for(const _0xf13385 of _0x566b0e){const _0x118db2=_0x22310f()['substr'](0x1,0x5),_0x58b513=_0x1ecb('0xd')+_0x4d1f84+':'+_0x118db2;_0x1bde7f[_0x1ecb('0x11')](_0x58b513,{'range':_0xf13385,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x1ecb('0x9')](_0x42bab5){for(const _0x5df3f5 of _0x42bab5[_0x1ecb('0xb')]())if(this[_0x1ecb('0x6')](_0x5df3f5))return!0x0;return!0x1;}[_0x1ecb('0x6')](_0x43a173){return _0x43a173['is'](_0x1ecb('0x10'))||this[_0x1ecb('0x8')][_0x1ecb('0xc')][_0x1ecb('0x5')][_0x1ecb('0xa')](_0x43a173)&&!_0x43a173['is'](_0x1ecb('0x4'),_0x1ecb('0xe'));}[_0x1ecb('0x13')](_0x27c650){const _0x2d1db8=_0x37cf83=>!this[_0x1ecb('0x6')](_0x37cf83['item']),_0x2694ea=_0x27c650[_0x1ecb('0x7')][_0x1ecb('0x12')](_0x2d1db8),_0x42a714=_0x27c650[_0x1ecb('0x0')][_0x1ecb('0x12')](_0x2d1db8,{'direction':'backward'});return this[_0x1ecb('0x8')][_0x1ecb('0xc')][_0x1ecb('0x3')](_0x2694ea,_0x42a714);}}
23
+ const _0x2b3a=['tableCell','_hasContent','addMarker','document','getRanges','model','comment:','change','start','getItems','_itemIsContent','_trimToContent','element','selection','refresh','getLastMatchingPosition','isEnabled','item','schema','editor','createRange'];(function(_0x4eb2af,_0x2b3afa){const _0xc5c7a1=function(_0x2b8a15){while(--_0x2b8a15){_0x4eb2af['push'](_0x4eb2af['shift']());}};_0xc5c7a1(++_0x2b3afa);}(_0x2b3a,0x1ae));const _0xc5c7=function(_0x4eb2af,_0x2b3afa){_0x4eb2af=_0x4eb2af-0x0;let _0xc5c7a1=_0x2b3a[_0x4eb2af];return _0xc5c7a1;};import{Command as _0xd11b1}from'ckeditor5/src/core.js';import{uid as _0x51345e}from'ckeditor5/src/utils.js';export default class G extends _0xd11b1{[_0xc5c7('0x4')](){const _0x519d22=this[_0xc5c7('0x9')][_0xc5c7('0x10')][_0xc5c7('0xe')]['selection'];for(const _0x36a2fd of _0x519d22[_0xc5c7('0xf')]())if(this[_0xc5c7('0xc')](_0x36a2fd))return void(this[_0xc5c7('0x6')]=!0x0);this[_0xc5c7('0x6')]=!0x1;}['execute']({threadId:_0x3a76c4=_0x51345e()}={}){const _0x476e94=this[_0xc5c7('0x9')][_0xc5c7('0x10')],_0xb98edb=[];for(const _0x581fed of _0x476e94[_0xc5c7('0xe')][_0xc5c7('0x3')]['getRanges']())this[_0xc5c7('0xc')](_0x581fed)&&_0xb98edb['push'](this['_trimToContent'](_0x581fed));_0x476e94[_0xc5c7('0x12')](_0x2d8fb5=>{for(const _0x8fde89 of _0xb98edb){const _0x36a9e6=_0x51345e()['substr'](0x1,0x5),_0x25c4ea=_0xc5c7('0x11')+_0x3a76c4+':'+_0x36a9e6;_0x2d8fb5[_0xc5c7('0xd')](_0x25c4ea,{'range':_0x8fde89,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0xc5c7('0xc')](_0x5b3f73){for(const _0x4336ce of _0x5b3f73[_0xc5c7('0x14')]())if(this[_0xc5c7('0x0')](_0x4336ce))return!0x0;return!0x1;}[_0xc5c7('0x0')](_0xa8b018){return _0xa8b018['is']('$textProxy')||this[_0xc5c7('0x9')]['model'][_0xc5c7('0x8')]['isObject'](_0xa8b018)&&!_0xa8b018['is'](_0xc5c7('0x2'),_0xc5c7('0xb'));}[_0xc5c7('0x1')](_0x15e948){const _0x4f8e0a=_0x1f4a58=>!this['_itemIsContent'](_0x1f4a58[_0xc5c7('0x7')]),_0x5dce5c=_0x15e948[_0xc5c7('0x13')][_0xc5c7('0x5')](_0x4f8e0a),_0xbf29bc=_0x15e948['end'][_0xc5c7('0x5')](_0x4f8e0a,{'direction':'backward'});return this['editor']['model'][_0xc5c7('0xa')](_0x5dce5c,_0xbf29bc);}}
@@ -6,10 +6,10 @@
6
6
  * @module comments/comments/commentsarchive
7
7
  * @publicApi
8
8
  */
9
- import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
10
- import { Collection } from 'ckeditor5/src/utils';
11
- import CommentsRepository, { type CommentThread } from './commentsrepository';
12
- import Annotations from '../annotations/annotations';
9
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
10
+ import { Collection } from 'ckeditor5/src/utils.js';
11
+ import CommentsRepository, { type CommentThread } from './commentsrepository.js';
12
+ import Annotations from '../annotations/annotations.js';
13
13
  /**
14
14
  * This plugin handles all operations on archived threads needed for the comments archive.
15
15
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x762a=['change:archivedAt','archivedAt','length','focus','addCommentThread','CommentsArchive','getCommentThread','_calculatePosition','findIndex','isActive','archivedThreads','pluginName','plugins','activate','has','requires','collection','listenTo','remove','add','stopListening','removeCommentThread'];(function(_0x3353ea,_0x762aef){const _0x17eca4=function(_0x69d344){while(--_0x69d344){_0x3353ea['push'](_0x3353ea['shift']());}};_0x17eca4(++_0x762aef);}(_0x762a,0x13b));const _0x17ec=function(_0x3353ea,_0x762aef){_0x3353ea=_0x3353ea-0x0;let _0x17eca4=_0x762a[_0x3353ea];return _0x17eca4;};import{ContextPlugin as _0x1984a3}from'ckeditor5/src/core';import{Collection as _0x75cd4c}from'ckeditor5/src/utils';import _0x45c3ea from'./commentsrepository';import _0x1e431c from'../annotations/annotations';export default class p extends _0x1984a3{static get[_0x17ec('0x4')](){return _0x17ec('0x14');}static get[_0x17ec('0x8')](){return[_0x45c3ea,_0x1e431c];}constructor(_0x73f375){super(_0x73f375),this[_0x17ec('0x3')]=new _0x75cd4c();}['init'](){const _0x561d0c=this['context'],_0x741198=_0x561d0c['plugins']['get'](_0x45c3ea),_0x547658=_0x561d0c[_0x17ec('0x5')]['get'](_0x1e431c);this[_0x17ec('0xa')](_0x741198,_0x17ec('0x13'),(_0x118d14,{threadId:_0x2e0a1b})=>{const _0x326ccb=_0x741198[_0x17ec('0x15')](_0x2e0a1b);_0x326ccb['archivedAt']&&this['archivedThreads']['add'](_0x326ccb,this[_0x17ec('0x0')](_0x326ccb[_0x17ec('0x10')])),this['listenTo'](_0x326ccb,_0x17ec('0xf'),(_0x35b196,_0x527003,_0xfd223c)=>{_0xfd223c?this[_0x17ec('0x3')][_0x17ec('0x7')](_0x326ccb)||this['archivedThreads'][_0x17ec('0xc')](_0x326ccb,this[_0x17ec('0x0')](_0x326ccb[_0x17ec('0x10')])):this[_0x17ec('0x3')][_0x17ec('0x7')](_0x326ccb)&&this[_0x17ec('0x3')][_0x17ec('0xb')](_0x326ccb);});}),this[_0x17ec('0xa')](_0x741198,_0x17ec('0xe'),(_0x2a6e62,{threadId:_0x1fc8ec})=>{const _0x34d486=_0x741198[_0x17ec('0x15')](_0x1fc8ec);this[_0x17ec('0xd')](_0x34d486),this['archivedThreads']['has'](_0x34d486)&&this[_0x17ec('0x3')]['remove'](_0x34d486);},{'priority':'highest'}),this[_0x17ec('0xa')](_0x547658[_0x17ec('0x9')],_0x17ec('0x12'),(_0x377fd4,_0x5d0e63)=>{_0x5d0e63[_0x17ec('0x2')]=!0x0,_0x547658[_0x17ec('0x6')](_0x5d0e63);});}[_0x17ec('0x0')](_0x4e27b1){const _0x769b7e=[...this[_0x17ec('0x3')]][_0x17ec('0x1')](_0x3ec046=>_0x3ec046[_0x17ec('0x10')]<_0x4e27b1);return _0x769b7e>-0x1?_0x769b7e:this[_0x17ec('0x3')][_0x17ec('0x11')];}}
23
+ const _0x26b0=['collection','archivedAt','stopListening','activate','listenTo','remove','context','has','highest','get','plugins','archivedThreads','change:archivedAt','add','length','addCommentThread','init','CommentsArchive','_calculatePosition'];(function(_0x93e21e,_0x26b088){const _0x19ed8c=function(_0x2bcdaa){while(--_0x2bcdaa){_0x93e21e['push'](_0x93e21e['shift']());}};_0x19ed8c(++_0x26b088);}(_0x26b0,0x8a));const _0x19ed=function(_0x93e21e,_0x26b088){_0x93e21e=_0x93e21e-0x0;let _0x19ed8c=_0x26b0[_0x93e21e];return _0x19ed8c;};import{ContextPlugin as _0xc7687c}from'ckeditor5/src/core.js';import{Collection as _0x5426a1}from'ckeditor5/src/utils.js';import _0x11e51d from'./commentsrepository.js';import _0x214d52 from'../annotations/annotations.js';export default class p extends _0xc7687c{static get['pluginName'](){return _0x19ed('0xc');}static get['requires'](){return[_0x11e51d,_0x214d52];}constructor(_0x33cd27){super(_0x33cd27),this['archivedThreads']=new _0x5426a1();}[_0x19ed('0xb')](){const _0x1cb958=this[_0x19ed('0x1')],_0x1cbd51=_0x1cb958[_0x19ed('0x5')][_0x19ed('0x4')](_0x11e51d),_0x2f27c8=_0x1cb958['plugins'][_0x19ed('0x4')](_0x214d52);this[_0x19ed('0x12')](_0x1cbd51,_0x19ed('0xa'),(_0x5abf72,{threadId:_0x575843})=>{const _0x39e748=_0x1cbd51['getCommentThread'](_0x575843);_0x39e748[_0x19ed('0xf')]&&this[_0x19ed('0x6')][_0x19ed('0x8')](_0x39e748,this['_calculatePosition'](_0x39e748[_0x19ed('0xf')])),this['listenTo'](_0x39e748,_0x19ed('0x7'),(_0x19fd06,_0x1e6e24,_0xcf9a1d)=>{_0xcf9a1d?this['archivedThreads'][_0x19ed('0x2')](_0x39e748)||this[_0x19ed('0x6')][_0x19ed('0x8')](_0x39e748,this[_0x19ed('0xd')](_0x39e748['archivedAt'])):this['archivedThreads'][_0x19ed('0x2')](_0x39e748)&&this[_0x19ed('0x6')][_0x19ed('0x0')](_0x39e748);});}),this[_0x19ed('0x12')](_0x1cbd51,'removeCommentThread',(_0x5f0491,{threadId:_0x5d899f})=>{const _0x5b48f1=_0x1cbd51['getCommentThread'](_0x5d899f);this[_0x19ed('0x10')](_0x5b48f1),this[_0x19ed('0x6')][_0x19ed('0x2')](_0x5b48f1)&&this[_0x19ed('0x6')][_0x19ed('0x0')](_0x5b48f1);},{'priority':_0x19ed('0x3')}),this[_0x19ed('0x12')](_0x2f27c8[_0x19ed('0xe')],'focus',(_0x1c75e6,_0x3c8644)=>{_0x3c8644['isActive']=!0x0,_0x2f27c8[_0x19ed('0x11')](_0x3c8644);});}[_0x19ed('0xd')](_0x590f84){const _0x3cb67b=[...this['archivedThreads']]['findIndex'](_0x2b9ac=>_0x2b9ac[_0x19ed('0xf')]<_0x590f84);return _0x3cb67b>-0x1?_0x3cb67b:this[_0x19ed('0x6')][_0x19ed('0x9')];}}
@@ -7,11 +7,11 @@
7
7
  * @publicApi
8
8
  */
9
9
  import '../../theme/commentsarchive.css';
10
- import { Plugin, type Editor } from 'ckeditor5/src/core';
11
- import { ViewCollection } from 'ckeditor5/src/ui';
12
- import CommentsArchiveView from './ui/view/commentsarchiveview';
13
- import CommentsArchive from './commentsarchive';
14
- import type AnnotationView from '../annotations/view/annotationview';
10
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
11
+ import { ViewCollection } from 'ckeditor5/src/ui.js';
12
+ import CommentsArchiveView from './ui/view/commentsarchiveview.js';
13
+ import CommentsArchive from './commentsarchive.js';
14
+ import type AnnotationView from '../annotations/view/annotationview.js';
15
15
  /**
16
16
  * Creates comments archive {@link module:ui/dropdown/dropdownview~DropdownView ui dropdown} and binds with
17
17
  * archived comment thread annotation views.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46bf=['archivedAt','pluginName','view','editor','collection','ck-comments-archive-dropdown','_calculatePosition','children','plugins','requires','find','contains','set','length','ck-body','panelView','extendTemplate','classList','collaboration.channelId','listenTo','locale','archivedThreads','innerView','splice','_threadToController','channelId','focusableElements','get','filter','_pendingThreads','CommentsArchiveUI','focusTracker','getByInnerView','annotationViews','init','add','_visibleAnnotations','mainView','indexOf','remove','Annotations','findIndex','position','buttonView','config','_createArchiveUIDropdown','commentsArchiveView','_handleAnnotationFocusableElements'];(function(_0x9eb829,_0x46bfaf){const _0x30f132=function(_0x371501){while(--_0x371501){_0x9eb829['push'](_0x9eb829['shift']());}};_0x30f132(++_0x46bfaf);}(_0x46bf,0x8d));const _0x30f1=function(_0x9eb829,_0x46bfaf){_0x9eb829=_0x9eb829-0x0;let _0x30f132=_0x46bf[_0x9eb829];return _0x30f132;};import'../../theme/commentsarchive.css';import{Plugin as _0x737729}from'ckeditor5/src/core';import{createDropdown as _0x11ca31,ViewCollection as _0x563916}from'ckeditor5/src/ui';import _0x33c521 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x3e982b}from'../utils/common-translations';import _0x35fe97 from'./ui/view/commentsarchiveview';import _0x4b6125 from'./commentsarchive';export default class a extends _0x737729{static get[_0x30f1('0x4')](){return _0x30f1('0x21');}static get[_0x30f1('0xc')](){return[_0x4b6125];}constructor(_0x16b9c6){super(_0x16b9c6),this['annotationViews']=new _0x563916(),this[_0x30f1('0x20')]=[];}[_0x30f1('0x25')](){this[_0x30f1('0x6')]['ui']['componentFactory'][_0x30f1('0x26')]('commentsArchive',()=>this[_0x30f1('0x0')]());const _0x2617e3=this['editor'][_0x30f1('0xb')][_0x30f1('0x1e')](_0x4b6125),_0x4eb499=this[_0x30f1('0x6')][_0x30f1('0xb')][_0x30f1('0x1e')](_0x30f1('0x2b')),_0x473c1f=this[_0x30f1('0x6')][_0x30f1('0xb')][_0x30f1('0x1e')]('CommentsRepository');this[_0x30f1('0x16')](_0x2617e3[_0x30f1('0x18')],_0x30f1('0x26'),(_0x4142f8,_0x45c116)=>{const _0x585bce=this[_0x30f1('0x6')][_0x30f1('0x2f')][_0x30f1('0x1e')]('collaboration.channelId');if(!_0x585bce||_0x45c116['channelId']===_0x585bce){const _0x1b1d02=this['_calculatePosition'](_0x45c116[_0x30f1('0x3')]),_0x4b4847=_0x473c1f[_0x30f1('0x1b')][_0x30f1('0x1e')](_0x45c116);if(!_0x4b4847)return void this['_pendingThreads']['push']({'thread':_0x45c116,'position':_0x1b1d02});const _0x1461fe=_0x4eb499['getByInnerView'](_0x4b4847[_0x30f1('0x5')]);_0x1461fe['isVisible']&&_0x4eb499[_0x30f1('0x27')][_0x30f1('0x2a')](_0x1461fe),this[_0x30f1('0x24')][_0x30f1('0x26')](_0x1461fe[_0x30f1('0x5')],_0x1b1d02);}}),this[_0x30f1('0x16')](_0x4eb499[_0x30f1('0x7')],'add',(_0x30514a,_0xa0a78c)=>{const _0x3fb9b6=this[_0x30f1('0x20')][_0x30f1('0xd')](({thread:_0x121d41})=>{const _0x9bd484=_0x473c1f[_0x30f1('0x1b')][_0x30f1('0x1e')](_0x121d41);return _0x9bd484&&_0xa0a78c[_0x30f1('0x19')]===_0x9bd484[_0x30f1('0x5')];});_0x3fb9b6&&(this[_0x30f1('0x24')][_0x30f1('0x26')](_0xa0a78c['view'],_0x3fb9b6[_0x30f1('0x2d')]),this[_0x30f1('0x20')][_0x30f1('0x1a')](this[_0x30f1('0x20')][_0x30f1('0x29')](_0x3fb9b6),0x1));}),this['listenTo'](_0x2617e3['archivedThreads'],'remove',(_0x32f336,_0x390932)=>{const _0x2c8ffb=this[_0x30f1('0x6')][_0x30f1('0x2f')][_0x30f1('0x1e')](_0x30f1('0x15'));if(!_0x2c8ffb||_0x390932[_0x30f1('0x1c')]===_0x2c8ffb){const _0x3bdf3c=_0x473c1f[_0x30f1('0x1b')][_0x30f1('0x1e')](_0x390932),_0x5f05f8=_0x4eb499[_0x30f1('0x23')](_0x3bdf3c[_0x30f1('0x5')]);this['annotationViews'][_0x30f1('0x2a')](_0x5f05f8[_0x30f1('0x5')]),this['stopListening'](_0x5f05f8[_0x30f1('0x1d')]);}});}[_0x30f1('0x2')](_0xcc6188,_0x3bdf69){for(const _0x397ada of _0x3bdf69[_0x30f1('0x1d')])_0x397ada[_0x30f1('0x14')][_0x30f1('0xe')](_0x30f1('0x11'))&&_0xcc6188[_0x30f1('0x22')][_0x30f1('0x26')](_0x397ada);this['listenTo'](_0x3bdf69[_0x30f1('0x1d')],_0x30f1('0x26'),(_0x514969,_0x11f609)=>{_0x11f609[_0x30f1('0x14')][_0x30f1('0xe')](_0x30f1('0x11'))&&_0xcc6188[_0x30f1('0x22')][_0x30f1('0x26')](_0x11f609);}),this[_0x30f1('0x16')](_0x3bdf69[_0x30f1('0x1d')],_0x30f1('0x2a'),(_0x571650,_0x51073c)=>{_0x51073c[_0x30f1('0x14')][_0x30f1('0xe')](_0x30f1('0x11'))&&_0xcc6188[_0x30f1('0x22')][_0x30f1('0x2a')](_0x51073c);});}[_0x30f1('0x9')](_0x238417){const _0x1f26f0=this['editor'][_0x30f1('0x2f')]['get']('collaboration.channelId'),_0x274e35=[...this[_0x30f1('0x6')][_0x30f1('0xb')][_0x30f1('0x1e')](_0x4b6125)['archivedThreads']][_0x30f1('0x1f')](_0x33530a=>_0x33530a[_0x30f1('0x1c')]===_0x1f26f0)[_0x30f1('0x2c')](_0x1473f3=>_0x1473f3[_0x30f1('0x3')]<_0x238417);return _0x274e35>-0x1?_0x274e35-0x1:this[_0x30f1('0x24')][_0x30f1('0x10')];}[_0x30f1('0x0')](){const _0x4f4cd6=this[_0x30f1('0x6')],_0x4db663=this[_0x30f1('0x6')][_0x30f1('0xb')][_0x30f1('0x1e')](_0x30f1('0x2b')),_0x3eb0de=_0x11ca31(_0x4f4cd6['locale']);_0x3eb0de[_0x30f1('0x2e')][_0x30f1('0xf')]({'icon':_0x33c521,'label':_0x3e982b(_0x4f4cd6['locale'],'COMMENTS_ARCHIVE'),'tooltip':!0x0}),_0x3eb0de[_0x30f1('0x12')][_0x30f1('0x13')]({'attributes':{'class':_0x30f1('0x8')}}),_0x3eb0de['on']('change:isOpen',(_0x3c06ed,_0xc84473,_0x217315)=>{this[_0x30f1('0x1')]||(this[_0x30f1('0x1')]=new _0x35fe97(_0x4f4cd6[_0x30f1('0x17')],this[_0x30f1('0x24')])),_0x217315?_0x3eb0de[_0x30f1('0x12')][_0x30f1('0xa')][_0x30f1('0x26')](this[_0x30f1('0x1')]):_0x3eb0de[_0x30f1('0x12')][_0x30f1('0xa')][_0x30f1('0x2a')](this[_0x30f1('0x1')]);});for(const _0x44d541 of this[_0x30f1('0x24')]){const _0x2d703e=_0x4db663[_0x30f1('0x23')](_0x44d541['mainView']);this[_0x30f1('0x2')](_0x3eb0de,_0x2d703e);}return _0x3eb0de[_0x30f1('0x16')](this[_0x30f1('0x24')],'add',(_0x1fba65,_0x290fbc)=>{const _0x287211=_0x4db663['getByInnerView'](_0x290fbc['mainView']);this[_0x30f1('0x2')](_0x3eb0de,_0x287211);}),_0x3eb0de[_0x30f1('0x16')](this[_0x30f1('0x24')],_0x30f1('0x2a'),(_0x510658,_0x2a13f2)=>{const _0x3ca8fc=_0x4db663[_0x30f1('0x23')](_0x2a13f2[_0x30f1('0x28')]);for(const _0x3a3b27 of _0x3ca8fc['focusableElements'])_0x3a3b27[_0x30f1('0x14')][_0x30f1('0xe')](_0x30f1('0x11'))&&_0x3eb0de[_0x30f1('0x22')][_0x30f1('0x2a')](_0x3a3b27);}),_0x3eb0de;}}
23
+ const _0x114d=['add','push','isVisible','Annotations','requires','_createArchiveUIDropdown','buttonView','focusTracker','change:isOpen','find','stopListening','children','_calculatePosition','set','view','channelId','archivedAt','classList','_handleAnnotationFocusableElements','get','getByInnerView','focusableElements','ck-comments-archive-dropdown','config','panelView','annotationViews','locale','length','pluginName','plugins','commentsArchiveView','collection','editor','listenTo','ck-body','innerView','mainView','archivedThreads','remove','contains','componentFactory','CommentsRepository','splice','findIndex','filter','position','COMMENTS_ARCHIVE','_threadToController','_pendingThreads','collaboration.channelId'];(function(_0x4a6c72,_0x114d0f){const _0x278291=function(_0x19d383){while(--_0x19d383){_0x4a6c72['push'](_0x4a6c72['shift']());}};_0x278291(++_0x114d0f);}(_0x114d,0x19c));const _0x2782=function(_0x4a6c72,_0x114d0f){_0x4a6c72=_0x4a6c72-0x0;let _0x278291=_0x114d[_0x4a6c72];return _0x278291;};import'../../theme/commentsarchive.css';import{Plugin as _0xc8786c}from'ckeditor5/src/core.js';import{createDropdown as _0x258d40,ViewCollection as _0x77e079}from'ckeditor5/src/ui.js';import _0xd88bef from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x535696}from'../utils/common-translations.js';import _0x11a6ed from'./ui/view/commentsarchiveview.js';import _0x51109f from'./commentsarchive.js';export default class a extends _0xc8786c{static get[_0x2782('0x10')](){return'CommentsArchiveUI';}static get[_0x2782('0x2a')](){return[_0x51109f];}constructor(_0x10a2ac){super(_0x10a2ac),this['annotationViews']=new _0x77e079(),this[_0x2782('0x24')]=[];}['init'](){this[_0x2782('0x14')]['ui'][_0x2782('0x1c')][_0x2782('0x26')]('commentsArchive',()=>this[_0x2782('0x2b')]());const _0xdac3e7=this[_0x2782('0x14')][_0x2782('0x11')][_0x2782('0x7')](_0x51109f),_0x579cb3=this[_0x2782('0x14')][_0x2782('0x11')][_0x2782('0x7')](_0x2782('0x29')),_0x410097=this[_0x2782('0x14')][_0x2782('0x11')][_0x2782('0x7')](_0x2782('0x1d'));this[_0x2782('0x15')](_0xdac3e7[_0x2782('0x19')],_0x2782('0x26'),(_0x59a2bf,_0x4059f9)=>{const _0x2526da=this[_0x2782('0x14')][_0x2782('0xb')]['get'](_0x2782('0x25'));if(!_0x2526da||_0x4059f9[_0x2782('0x3')]===_0x2526da){const _0x195ce0=this['_calculatePosition'](_0x4059f9['archivedAt']),_0x259443=_0x410097[_0x2782('0x23')][_0x2782('0x7')](_0x4059f9);if(!_0x259443)return void this['_pendingThreads'][_0x2782('0x27')]({'thread':_0x4059f9,'position':_0x195ce0});const _0x55a20f=_0x579cb3[_0x2782('0x8')](_0x259443[_0x2782('0x2')]);_0x55a20f[_0x2782('0x28')]&&_0x579cb3['_visibleAnnotations']['remove'](_0x55a20f),this['annotationViews']['add'](_0x55a20f[_0x2782('0x2')],_0x195ce0);}}),this[_0x2782('0x15')](_0x579cb3[_0x2782('0x13')],_0x2782('0x26'),(_0x50edf5,_0x228584)=>{const _0x54f0ba=this['_pendingThreads'][_0x2782('0x2f')](({thread:_0x572bd7})=>{const _0x376da8=_0x410097[_0x2782('0x23')][_0x2782('0x7')](_0x572bd7);return _0x376da8&&_0x228584[_0x2782('0x17')]===_0x376da8[_0x2782('0x2')];});_0x54f0ba&&(this[_0x2782('0xd')][_0x2782('0x26')](_0x228584[_0x2782('0x2')],_0x54f0ba[_0x2782('0x21')]),this[_0x2782('0x24')][_0x2782('0x1e')](this[_0x2782('0x24')]['indexOf'](_0x54f0ba),0x1));}),this[_0x2782('0x15')](_0xdac3e7[_0x2782('0x19')],'remove',(_0x4a7a80,_0x51c036)=>{const _0x1f9a2d=this['editor'][_0x2782('0xb')]['get']('collaboration.channelId');if(!_0x1f9a2d||_0x51c036[_0x2782('0x3')]===_0x1f9a2d){const _0x29df44=_0x410097[_0x2782('0x23')][_0x2782('0x7')](_0x51c036),_0x49dd00=_0x579cb3[_0x2782('0x8')](_0x29df44[_0x2782('0x2')]);this['annotationViews'][_0x2782('0x1a')](_0x49dd00['view']),this[_0x2782('0x30')](_0x49dd00[_0x2782('0x9')]);}});}['_handleAnnotationFocusableElements'](_0x36bd59,_0x58dc6a){for(const _0x36bbee of _0x58dc6a['focusableElements'])_0x36bbee['classList'][_0x2782('0x1b')](_0x2782('0x16'))&&_0x36bd59[_0x2782('0x2d')][_0x2782('0x26')](_0x36bbee);this[_0x2782('0x15')](_0x58dc6a[_0x2782('0x9')],_0x2782('0x26'),(_0x2b9b9b,_0x1ae2e0)=>{_0x1ae2e0[_0x2782('0x5')][_0x2782('0x1b')]('ck-body')&&_0x36bd59[_0x2782('0x2d')][_0x2782('0x26')](_0x1ae2e0);}),this[_0x2782('0x15')](_0x58dc6a[_0x2782('0x9')],_0x2782('0x1a'),(_0x5d99dc,_0x381fe4)=>{_0x381fe4[_0x2782('0x5')][_0x2782('0x1b')]('ck-body')&&_0x36bd59[_0x2782('0x2d')][_0x2782('0x1a')](_0x381fe4);});}[_0x2782('0x0')](_0x34d404){const _0x1a6140=this[_0x2782('0x14')][_0x2782('0xb')]['get'](_0x2782('0x25')),_0x457ab4=[...this[_0x2782('0x14')][_0x2782('0x11')][_0x2782('0x7')](_0x51109f)[_0x2782('0x19')]][_0x2782('0x20')](_0x3b8a09=>_0x3b8a09['channelId']===_0x1a6140)[_0x2782('0x1f')](_0x4d4d92=>_0x4d4d92[_0x2782('0x4')]<_0x34d404);return _0x457ab4>-0x1?_0x457ab4-0x1:this[_0x2782('0xd')][_0x2782('0xf')];}['_createArchiveUIDropdown'](){const _0x3164cd=this['editor'],_0x4db345=this['editor'][_0x2782('0x11')]['get']('Annotations'),_0x4f55e2=_0x258d40(_0x3164cd[_0x2782('0xe')]);_0x4f55e2[_0x2782('0x2c')][_0x2782('0x1')]({'icon':_0xd88bef,'label':_0x535696(_0x3164cd[_0x2782('0xe')],_0x2782('0x22')),'tooltip':!0x0}),_0x4f55e2[_0x2782('0xc')]['extendTemplate']({'attributes':{'class':_0x2782('0xa')}}),_0x4f55e2['on'](_0x2782('0x2e'),(_0x19f11e,_0x404a7e,_0x460361)=>{this['commentsArchiveView']||(this['commentsArchiveView']=new _0x11a6ed(_0x3164cd[_0x2782('0xe')],this[_0x2782('0xd')])),_0x460361?_0x4f55e2[_0x2782('0xc')][_0x2782('0x31')]['add'](this[_0x2782('0x12')]):_0x4f55e2[_0x2782('0xc')][_0x2782('0x31')][_0x2782('0x1a')](this[_0x2782('0x12')]);});for(const _0x395f2f of this[_0x2782('0xd')]){const _0x495f50=_0x4db345['getByInnerView'](_0x395f2f[_0x2782('0x18')]);this[_0x2782('0x6')](_0x4f55e2,_0x495f50);}return _0x4f55e2[_0x2782('0x15')](this[_0x2782('0xd')],_0x2782('0x26'),(_0x9668de,_0x497a80)=>{const _0x54ddab=_0x4db345[_0x2782('0x8')](_0x497a80[_0x2782('0x18')]);this['_handleAnnotationFocusableElements'](_0x4f55e2,_0x54ddab);}),_0x4f55e2[_0x2782('0x15')](this[_0x2782('0xd')],'remove',(_0x142b57,_0x37c7db)=>{const _0x1ffec4=_0x4db345['getByInnerView'](_0x37c7db['mainView']);for(const _0x45ce0a of _0x1ffec4[_0x2782('0x9')])_0x45ce0a[_0x2782('0x5')][_0x2782('0x1b')]('ck-body')&&_0x4f55e2[_0x2782('0x2d')][_0x2782('0x1a')](_0x45ce0a);}),_0x4f55e2;}}
@@ -5,13 +5,13 @@
5
5
  /**
6
6
  * @module comments/comments/commentsediting
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import type { Marker } from 'ckeditor5/src/engine';
10
- import CommentsRepository from './commentsrepository';
11
- import EditorAnnotations from '../annotations/editorannotations';
12
- import CommentsRestrictedEditingMode from './integrations/commentsrestrictededitingmode';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import type { Marker } from 'ckeditor5/src/engine.js';
10
+ import CommentsRepository from './commentsrepository.js';
11
+ import EditorAnnotations from '../annotations/editorannotations.js';
12
+ import CommentsRestrictedEditingMode from './integrations/commentsrestrictededitingmode.js';
13
13
  import '../../theme/commentmarker.css';
14
- import CommentsImportWord from './integrations/importword';
14
+ import CommentsImportWord from './integrations/importword.js';
15
15
  /**
16
16
  * Plugin that keeps in sync comments in {@link module:comments/comments/commentsrepository~CommentsRepository} with
17
17
  * {@link module:engine/model/markercollection~Marker comment markers}.