@ckeditor/ckeditor5-comments 39.0.2 → 40.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +3 -3
- package/README.md +1 -1
- package/build/comments.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -0
- package/lang/translations/af.po +8 -0
- package/lang/translations/ar.po +8 -0
- package/lang/translations/bg.po +8 -0
- package/lang/translations/bn.po +8 -0
- package/lang/translations/bs.po +8 -0
- package/lang/translations/ca.po +8 -0
- package/lang/translations/cs.po +8 -0
- package/lang/translations/da.po +8 -0
- package/lang/translations/de-ch.po +8 -0
- package/lang/translations/de.po +8 -0
- package/lang/translations/el.po +8 -0
- package/lang/translations/en-au.po +8 -0
- package/lang/translations/en.po +8 -0
- package/lang/translations/es-co.po +8 -0
- package/lang/translations/es.po +8 -0
- package/lang/translations/et.po +8 -0
- package/lang/translations/fa.po +8 -0
- package/lang/translations/fi.po +8 -0
- package/lang/translations/fr.po +8 -0
- package/lang/translations/gl.po +8 -0
- package/lang/translations/he.po +8 -0
- package/lang/translations/hi.po +8 -0
- package/lang/translations/hr.po +8 -0
- package/lang/translations/hu.po +8 -0
- package/lang/translations/id.po +8 -0
- package/lang/translations/it.po +8 -0
- package/lang/translations/ja.po +8 -0
- package/lang/translations/jv.po +8 -0
- package/lang/translations/ko.po +8 -0
- package/lang/translations/lt.po +8 -0
- package/lang/translations/lv.po +8 -0
- package/lang/translations/ms.po +8 -0
- package/lang/translations/nl.po +8 -0
- package/lang/translations/no.po +8 -0
- package/lang/translations/pl.po +8 -0
- package/lang/translations/pt-br.po +11 -3
- package/lang/translations/pt.po +8 -0
- package/lang/translations/ro.po +8 -0
- package/lang/translations/ru.po +8 -0
- package/lang/translations/sk.po +8 -0
- package/lang/translations/sq.po +8 -0
- package/lang/translations/sr-latn.po +8 -0
- package/lang/translations/sr.po +8 -0
- package/lang/translations/sv.po +8 -0
- package/lang/translations/th.po +8 -0
- package/lang/translations/tk.po +8 -0
- package/lang/translations/tr.po +8 -0
- package/lang/translations/tt.po +8 -0
- package/lang/translations/ug.po +8 -0
- package/lang/translations/uk.po +8 -0
- package/lang/translations/ur.po +8 -0
- package/lang/translations/vi.po +8 -0
- package/lang/translations/zh-cn.po +8 -0
- package/lang/translations/zh.po +8 -0
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +2 -2
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +39 -15
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.d.ts +7 -0
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +1 -0
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/annotation-inline.css +2 -1
- package/theme/annotation.css +2 -1
- package/theme/comment.css +3 -2
- package/theme/commentinput.css +2 -1
- package/theme/commentmarker.css +2 -1
- package/theme/commentsarchive.css +2 -1
- package/theme/commentthread.css +12 -1
- package/theme/icons/add-comment.svg +1 -1
- package/theme/icons/comments-archive.svg +1 -1
- package/theme/icons/edit-comment.svg +1 -1
- package/theme/icons/remove-comment.svg +1 -1
- package/theme/sidebar-narrow.css +2 -1
- package/theme/sidebar.css +2 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x460b=['selection','keystrokes','_addAnnotationToBalloon','remove','viewRangeToDom','InlineAnnotations','getBoundingClientRect','annotations','afterInit','_getBalloonTargetForAnnotation','fromRect','destroy','domConverter','activeAnnotation','document','push','_setSelectedAnnotations','bottom','refresh','isAttached','_selectedAnnotations','focus','getByView','top','listenTo','editing','has','mousedown','editor','set','context','target','add','_balloon','visibleView','width','getOrderedSelectedAnnotations','length','delete','hasView','every','inlineannotations-detach-not-attached','right','stopListening','switchTo','addObserver','includes','targetRect','_forceRefresh','collapse','focusTracker','update','_addedAnnotations','inlineannotations-attach-already-attached','inline','Esc','left','plugins','_removeAnnotationFromBalloon','hasActive','requires','detach','editableElement','get','blur','register','find','_manuallyClosed','setActiveAnnotation','view','isFocused','updatePosition','_closeAnnotation'];(function(_0x47b0fb,_0x460ba2){const _0x19329b=function(_0x3f7242){while(--_0x3f7242){_0x47b0fb['push'](_0x47b0fb['shift']());}};_0x19329b(++_0x460ba2);}(_0x460b,0x191));const _0x1932=function(_0x47b0fb,_0x460ba2){_0x47b0fb=_0x47b0fb-0x0;let _0x19329b=_0x460b[_0x47b0fb];return _0x19329b;};import{Plugin as _0x5f5477}from'ckeditor5/src/core';import _0x58bf6b from'./annotationsuis';import _0x51e298 from'./editorannotations';import{ContextualBalloon as _0xbea3de}from'ckeditor5/src/ui';import{MouseObserver as _0x11a2b8}from'ckeditor5/src/engine';import{CKEditorError as _0x1413c2,Rect as _0x3c79b9}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x5f5477{static get[_0x1932('0x18')](){return[_0x51e298,_0xbea3de,_0x58bf6b];}static get['pluginName'](){return _0x1932('0x2a');}constructor(_0x1fd89b){super(_0x1fd89b),_0x1fd89b[_0x1932('0x3e')][_0x1932('0x21')][_0x1932('0x9')](_0x11a2b8),this[_0x1932('0x38')]=!0x1,this[_0x1932('0x42')](_0x1932('0x32'),null),this[_0x1932('0x2c')]=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x1fd89b[_0x1932('0x15')][_0x1932('0x1b')](_0xbea3de),this['_addedAnnotations']=new Set(),this[_0x1932('0x39')]=[],this[_0x1932('0xc')]=!0x1;}['init'](){const _0x393eb8=this[_0x1932('0x41')][_0x1932('0x15')][_0x1932('0x1b')](_0x58bf6b);_0x393eb8[_0x1932('0x43')]===this[_0x1932('0x41')]&&(_0x393eb8[_0x1932('0x1d')](_0x1932('0x12'),this),this[_0x1932('0x41')][_0x1932('0x26')][_0x1932('0x42')](_0x1932('0x13'),(_0x14b9e5,_0x5ecdee)=>{const _0x229371=this[_0x1932('0x46')];if(this[_0x1932('0x38')]&&_0x229371['visibleView']){const _0x23b949=this[_0x1932('0x2c')][_0x1932('0x3b')](_0x229371[_0x1932('0x47')]);_0x23b949&&this[_0x1932('0x24')](_0x23b949),_0x5ecdee();}}));}[_0x1932('0x2d')](){const _0x1deff1=this[_0x1932('0x41')][_0x1932('0x15')][_0x1932('0x1b')](_0x58bf6b);_0x1deff1['context']===this[_0x1932('0x41')]&&(_0x1deff1[_0x1932('0x17')]()||_0x1deff1[_0x1932('0x8')](_0x1932('0x12')));}['setActiveAnnotation'](_0x27cfb8){_0x27cfb8!==this[_0x1932('0x32')]&&(this[_0x1932('0x32')]&&(this[_0x1932('0x32')]['isActive']=!0x1),_0x27cfb8&&this[_0x1932('0x41')]['ui']['focusTracker'][_0x1932('0x22')]&&(this[_0x1932('0x2c')][_0x1932('0x3f')](_0x27cfb8)&&this[_0x1932('0x27')](_0x27cfb8,!0x0),_0x27cfb8['isActive']=!0x0),_0x27cfb8||this[_0x1932('0x35')]([]),this['activeAnnotation']=_0x27cfb8);}['attach'](_0x1bbcfe){this['annotations']=_0x1bbcfe;const _0x46cf03=this[_0x1932('0x41')][_0x1932('0x15')][_0x1932('0x1b')](_0x58bf6b),_0xb0c872=this['_balloon'];if(this['isAttached'])throw new _0x1413c2(_0x1932('0x11'),this);if(_0x46cf03['context']!==this[_0x1932('0x41')])throw new _0x1413c2('inlineannotations-not-allowed-with-context',this);const _0x338d48=this[_0x1932('0x41')]['plugins'][_0x1932('0x1b')](_0x51e298);this[_0x1932('0x3d')](_0x338d48,_0x1932('0x37'),()=>{const _0xc0cf56=_0x338d48[_0x1932('0x0')]({'annotations':this[_0x1932('0x2c')],'activeAnnotation':this[_0x1932('0x32')]});var _0x492d9a,_0x995e4a;!this[_0x1932('0xc')]&&(_0x492d9a=_0xc0cf56,_0x995e4a=this[_0x1932('0x39')],_0x492d9a[_0x1932('0x1')]===_0x995e4a[_0x1932('0x1')]&&_0x492d9a[_0x1932('0x4')](_0x118edf=>_0x995e4a[_0x1932('0xa')](_0x118edf)))||(this[_0x1932('0xc')]=!0x1,this[_0x1932('0x35')](_0xc0cf56),this[_0x1932('0x20')](_0xc0cf56[0x0]||null));}),this[_0x1932('0x3d')](_0x338d48,_0x1932('0x1c'),(_0x564b33,{isAnnotationTracked:_0x2ff8f9})=>{this[_0x1932('0x32')]&&_0x2ff8f9(this[_0x1932('0x32')])&&(this[_0x1932('0x35')]([]),this[_0x1932('0x20')](null));}),this[_0x1932('0x3d')](this[_0x1932('0x41')]['ui'][_0x1932('0xe')],'change:isFocused',(_0x324814,_0x393276,_0x20d599)=>{_0x20d599||this[_0x1932('0x20')](null);}),this[_0x1932('0x3d')](_0x1bbcfe,_0x1932('0x28'),(_0x2bf089,_0x1b497d)=>{this[_0x1932('0x16')](_0x1b497d),_0x1b497d===this['activeAnnotation']&&this[_0x1932('0x20')](null);}),this[_0x1932('0x3d')](_0xb0c872,'change:visibleView',(_0xf1940f,_0x2c7877,_0x5671b3,_0x506ad5)=>{_0x506ad5&&this[_0x1932('0x7')](_0x506ad5);const _0x3f67a3=_0x1bbcfe[_0x1932('0x3b')](_0x5671b3);_0x5671b3&&_0x3f67a3&&(this['listenTo'](_0x5671b3,'change:height',()=>{_0xb0c872[_0x1932('0x23')]();}),this[_0x1932('0x3d')](_0x5671b3,_0x1932('0x13'),()=>{this[_0x1932('0x24')](_0x3f67a3),this[_0x1932('0x41')][_0x1932('0x3e')][_0x1932('0x21')][_0x1932('0x3a')]();}),this['activeAnnotation']!==_0x3f67a3&&this[_0x1932('0x20')](_0x3f67a3));}),this[_0x1932('0x3d')](this[_0x1932('0x41')]['ui'],_0x1932('0xf'),()=>{_0xb0c872[_0x1932('0x47')]&&(_0x1bbcfe[_0x1932('0x3b')](_0xb0c872[_0x1932('0x47')])&&_0xb0c872[_0x1932('0x23')]());}),this[_0x1932('0x3d')](this[_0x1932('0x41')][_0x1932('0x3e')][_0x1932('0x21')][_0x1932('0x33')],_0x1932('0x40'),()=>{this['_forceRefresh']=!0x0,this[_0x1932('0x1f')]['clear']();}),this[_0x1932('0x41')][_0x1932('0x3e')]['view'][_0x1932('0x33')]['selection'][_0x1932('0x1a')]&&this[_0x1932('0x41')]['editing'][_0x1932('0x21')][_0x1932('0x3a')](),this['isAttached']=!0x0;}[_0x1932('0x19')](){if(!this['isAttached'])throw new _0x1413c2(_0x1932('0x5'),this);this[_0x1932('0x20')](null);for(const _0xff2e51 of this['_addedAnnotations'])this[_0x1932('0x16')](_0xff2e51);this['stopListening'](),this['isAttached']=!0x1,this[_0x1932('0x2c')]=null;}[_0x1932('0x30')](){this[_0x1932('0x38')]&&this[_0x1932('0x19')]();}[_0x1932('0x35')](_0x508724){for(const _0x597b51 of this['_selectedAnnotations'])_0x508724[_0x1932('0xa')](_0x597b51)||this[_0x1932('0x1f')][_0x1932('0x2')](_0x597b51);for(const _0x5818fd of this[_0x1932('0x2c')])_0x508724[_0x1932('0xa')](_0x5818fd)||this[_0x1932('0x16')](_0x5818fd);if(this[_0x1932('0x41')]['ui'][_0x1932('0xe')][_0x1932('0x22')])for(const _0x76d6ab of _0x508724)this[_0x1932('0x27')](_0x76d6ab);this[_0x1932('0x39')]=_0x508724;}[_0x1932('0x27')](_0x212ad7,_0x500ec4=!0x1){this[_0x1932('0x1f')]['has'](_0x212ad7)||(this[_0x1932('0x10')][_0x1932('0x3f')](_0x212ad7)||this['_balloon'][_0x1932('0x3')](_0x212ad7[_0x1932('0x21')])||(this['_addedAnnotations'][_0x1932('0x45')](_0x212ad7),this['_balloon']['add']({'stackId':_0x212ad7[_0x1932('0x21')]['id'],'view':_0x212ad7[_0x1932('0x21')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x212ad7)}})),_0x500ec4&&this[_0x1932('0x46')]['showStack'](_0x212ad7['view']['id']));}[_0x1932('0x2e')](_0xeb4113){const _0x5989ed=_0xeb4113[_0x1932('0x44')],_0x33a599=this[_0x1932('0x41')]['editing'][_0x1932('0x21')],_0x3bbe19=_0x33a599[_0x1932('0x33')][_0x1932('0x25')]['getFirstRange'](),_0x5b2617=_0x33a599[_0x1932('0x31')][_0x1932('0x29')](_0x3bbe19);if(_0x5b2617[_0x1932('0xd')](!0x0),_0x5989ed){if(_0x5989ed instanceof _0x3c79b9)return _0x5989ed;let _0x59452d=[];for(const _0x30f5a5 of _0x5989ed)_0x59452d['push'](...(_0x4d30a2=_0x30f5a5['getClientRects'](),Array['from'](_0x4d30a2)['map'](DOMRect[_0x1932('0x2f')])));_0x59452d=function(_0x54ac46){const _0x214f10=[];let _0x2f553b=_0x54ac46[0x0];for(let _0x2d9ce4=0x1;_0x2d9ce4<_0x54ac46[_0x1932('0x1')];_0x2d9ce4++)F(_0x2f553b,_0x54ac46[_0x2d9ce4])?_0x2f553b[_0x1932('0x48')]+=_0x54ac46[_0x2d9ce4][_0x1932('0x48')]:(_0x214f10[_0x1932('0x34')](_0x2f553b),_0x2f553b=_0x54ac46[_0x2d9ce4]);return _0x214f10[_0x1932('0x34')](_0x2f553b),_0x214f10;}(_0x59452d);const _0x11e42e=_0x5b2617[_0x1932('0x2b')]();return _0x59452d[_0x1932('0x1e')](_0x521b0c=>_0x521b0c['top']<=_0x11e42e[_0x1932('0x3c')]&&_0x521b0c['bottom']>=_0x11e42e[_0x1932('0x36')]&&_0x521b0c[_0x1932('0x14')]<=_0x11e42e[_0x1932('0x14')]&&_0x521b0c[_0x1932('0x6')]>=_0x11e42e[_0x1932('0x6')])||_0x59452d[0x0];}var _0x4d30a2;return _0xeb4113[_0x1932('0xb')]||_0x5b2617;}[_0x1932('0x16')](_0x33441e){this[_0x1932('0x10')]['has'](_0x33441e)&&this[_0x1932('0x46')][_0x1932('0x3')](_0x33441e[_0x1932('0x21')])&&(this[_0x1932('0x10')][_0x1932('0x2')](_0x33441e),this[_0x1932('0x46')][_0x1932('0x28')](_0x33441e[_0x1932('0x21')]));}[_0x1932('0x24')](_0x224d1e){this[_0x1932('0x1f')][_0x1932('0x45')](_0x224d1e),this[_0x1932('0x16')](_0x224d1e);}}function F(_0x4f83e8,_0x582743){return _0x4f83e8[_0x1932('0x3c')]===_0x582743[_0x1932('0x3c')]&&_0x4f83e8[_0x1932('0x36')]===_0x582743[_0x1932('0x36')]&&_0x4f83e8[_0x1932('0x6')]===_0x582743[_0x1932('0x14')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xdbb6=['plugins','stopListening','clear','annotations','listenTo','stop','southArrowNorthWest','_selectedAnnotations','_showBalloon','create','find','element','isAttached','keydown','view','destroy','off','_attachToContainer','narrowsidebar-attach-already-attached','requires','narrowSidebar','_manuallyClosedAnnotationViews','northArrowSouthEast','refreshPositioning','_hideBalloon','_annotations','has','values','stopPropagation','EditorAnnotations','activeAnnotation','_refreshPositioning','init','hasDomSelection','_refreshPositioningDebounced','focus','change:height','delete','Esc','content','_editorAnnotations','narrowsidebar-detach-not-attached','detachFromDom','balloonPanelView','addAnnotation','mousedown','get','blur','add','set','isVisible','NarrowSidebar','defaultPositions','bind','preventDefault','contains','focusableElements','_updateBalloonPosition','_setSelectedAnnotations','register','resize','high','_attachListeners','setActiveAnnotation','from','target','detach','preventClosingBalloon','uiUpdate','low','locale','_annotationToNarrowView','refresh','southArrowNorth','_integrateWithEditorAnnotations','isDirty','_domEmitter','number','remove','esc','southArrowNorthEast','attach','_detachListeners','annotationType','cancel','context','_destroyEditorAnnotationsIntegration','length','change:container','first','bodyCollection','keyCode'];(function(_0x31adaa,_0xdbb601){const _0x4e1197=function(_0x4916ca){while(--_0x4916ca){_0x31adaa['push'](_0x31adaa['shift']());}};_0x4e1197(++_0xdbb601);}(_0xdbb6,0x134));const _0x4e11=function(_0x31adaa,_0xdbb601){_0x31adaa=_0x31adaa-0x0;let _0x4e1197=_0xdbb6[_0x31adaa];return _0x4e1197;};import{ContextPlugin as _0x4383e1,Context as _0x360811}from'ckeditor5/src/core';import _0x1d0aab from'./annotationsuis';import _0x525883 from'./sidebar';import _0x847a64 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x35ae86,BodyCollection as _0x170d9e}from'ckeditor5/src/ui';import{CKEditorError as _0x46865d,DomEmitterMixin as _0x58cf32,keyCodes as _0x362211,Collection as _0x21be6e}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1a3432}from'lodash-es';import _0xe0d9e5 from'./editorannotations';export default class s extends _0x4383e1{static get[_0x4e11('0x4f')](){return[_0x525883,_0x1d0aab];}static get['pluginName'](){return _0x4e11('0x13');}constructor(_0xe94f49){super(_0xe94f49),this[_0x4e11('0x48')]=!0x1,this[_0x4e11('0x51')]=new Set(),this[_0x4e11('0x2c')]=Object[_0x4e11('0x45')](_0x58cf32),this[_0x4e11('0x27')]=new Map(),this['set']('activeAnnotation',null),this[_0x4e11('0x3f')]=null,this[_0x4e11('0x43')]=[],this[_0x4e11('0x8')]=new _0x21be6e(),this[_0x4e11('0x2')]=_0x1a3432(()=>{this[_0x4e11('0x5b')]();},0xfa,{'leading':!0x1});}[_0x4e11('0x0')](){this[_0x4e11('0x35')][_0x4e11('0x3c')][_0x4e11('0xe')](_0x1d0aab)[_0x4e11('0x1b')](_0x4e11('0x50'),this),this['bodyCollection']=new _0x170d9e(this[_0x4e11('0x35')][_0x4e11('0x26')]),this[_0x4e11('0xb')]=new _0x35ae86(this[_0x4e11('0x35')][_0x4e11('0x26')]),this['bodyCollection']['attachToDom'](),this[_0x4e11('0x3a')][_0x4e11('0x10')](this[_0x4e11('0xb')]);}[_0x4e11('0x31')](_0x44be61){this[_0x4e11('0x3f')]=_0x44be61;const _0x3e3b7e=this[_0x4e11('0x35')][_0x4e11('0x3c')]['get'](_0x525883),_0x2fc2fc=this[_0x4e11('0xb')];if(_0x3e3b7e[_0x4e11('0x55')]=_0x44be61,this[_0x4e11('0x48')])throw new _0x46865d(_0x4e11('0x4e'),this);this['isAttached']=!0x0,this[_0x4e11('0x40')](_0x3e3b7e,'set:container',()=>{this[_0x4e11('0x22')](),this[_0x4e11('0x40')](_0x3e3b7e,_0x4e11('0x38'),_0x11994f=>{_0x11994f[_0x4e11('0x4c')](),this[_0x4e11('0x31')](_0x44be61);});}),_0x3e3b7e[_0x4e11('0x4d')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x41b600=_0x2a5262=>{const _0x76610d=new _0x847a64(this[_0x4e11('0x35')]['locale']);_0x3e3b7e[_0x4e11('0xc')](_0x2a5262,_0x76610d),this['_annotationToNarrowView'][_0x4e11('0x11')](_0x2a5262,_0x76610d),_0x76610d[_0x4e11('0x15')](_0x4e11('0x2b'),_0x4e11('0x33'),_0x4e11('0x2d'))['to'](_0x2a5262[_0x4e11('0x4a')],_0x4e11('0x2b'),'type',_0x4e11('0x37')),_0x76610d['on']('execute',()=>{this[_0x4e11('0x51')][_0x4e11('0x3e')](),_0x2fc2fc[_0x4e11('0x7')]['first']!==_0x2a5262[_0x4e11('0x4a')]?(this[_0x4e11('0x44')](_0x2a5262),_0x2a5262[_0x4e11('0x4a')][_0x4e11('0x47')]['focus'](),this[_0x4e11('0x1f')](_0x2a5262)):this[_0x4e11('0x1f')](null);});};for(const _0x54d1d1 of _0x44be61)_0x41b600(_0x54d1d1);this[_0x4e11('0x40')](_0x44be61,_0x4e11('0x10'),(_0x343598,_0x41d012)=>{_0x41b600(_0x41d012);}),this['listenTo'](_0x44be61,_0x4e11('0x2e'),(_0x48ec88,_0x3d873f,_0x76abf7)=>{this[_0x4e11('0x27')][_0x4e11('0xe')](_0x3d873f)[_0x4e11('0x4b')](),this['_annotationToNarrowView'][_0x4e11('0x5')](_0x3d873f),_0x3e3b7e['rearrange']({'removedAnnotation':_0x3d873f,'previousAnnotation':_0x44be61[_0x4e11('0xe')](_0x76abf7-0x1),'nextAnnotation':_0x44be61['get'](_0x76abf7+0x1)}),_0x3d873f===this[_0x4e11('0x5a')]&&this[_0x4e11('0x1f')](null);},{'priority':_0x4e11('0x25')}),this['listenTo'](_0x44be61,_0x4e11('0x3'),(_0x12583c,_0x56e3de)=>{this[_0x4e11('0x1f')](_0x56e3de);}),this['listenTo'](_0x44be61,_0x4e11('0xf'),()=>{this[_0x4e11('0x1f')](null);}),this['_domEmitter'][_0x4e11('0x40')](document,_0x4e11('0x49'),(_0x574d4a,_0x184c5d)=>{_0x184c5d[_0x4e11('0x3b')]===_0x362211[_0x4e11('0x2f')]&&_0x2fc2fc[_0x4e11('0x12')]&&(this[_0x4e11('0x51')][_0x4e11('0x10')](_0x2fc2fc[_0x4e11('0x7')]['first']),this[_0x4e11('0x54')](),_0x184c5d[_0x4e11('0x58')](),_0x184c5d[_0x4e11('0x16')]());}),this['_domEmitter'][_0x4e11('0x40')](document,'mousedown',(_0x45cfba,_0x28bc51)=>{const _0x5580cd=_0x28bc51['target'];_0x2fc2fc[_0x4e11('0x12')]&&_0x2fc2fc['element'][_0x4e11('0x17')](_0x5580cd)||_0x3e3b7e['view'][_0x4e11('0x47')][_0x4e11('0x17')](_0x5580cd)||_0x45cfba[_0x4e11('0x23')]||this[_0x4e11('0x5a')]&&this['activeAnnotation'][_0x4e11('0x18')][_0x4e11('0x46')](_0x3b393a=>_0x3b393a['contains'](_0x5580cd))||(this['_manuallyClosedAnnotationViews'][_0x4e11('0x3e')](),this[_0x4e11('0x54')](),this[_0x4e11('0x1f')](null));});const _0x45b12a=this['context']instanceof _0x360811?this[_0x4e11('0x35')]['editors']:new _0x21be6e([this[_0x4e11('0x35')]]);for(const _0x3d75a9 of _0x45b12a)this[_0x4e11('0x2a')](_0x3d75a9);this[_0x4e11('0x40')](_0x45b12a,_0x4e11('0x10'),(_0x523c65,_0x853599)=>{this[_0x4e11('0x40')](_0x853599,'ready',()=>{this[_0x4e11('0x2a')](_0x853599);});}),this[_0x4e11('0x40')](_0x45b12a,'remove',(_0x17804f,_0x2d8c28)=>{_0x2d8c28[_0x4e11('0x3c')][_0x4e11('0x56')](_0x4e11('0x59'))&&this['_destroyEditorAnnotationsIntegration'](_0x2d8c28['plugins'][_0x4e11('0xe')](_0x4e11('0x59')));}),window['addEventListener'](_0x4e11('0x1c'),this[_0x4e11('0x2')]),this[_0x4e11('0x5b')]();}[_0x4e11('0x1f')](_0x5131c6){if(_0x5131c6===this[_0x4e11('0x5a')])return;const _0x3907e1=this['context']['plugins']['get'](_0x525883);if(_0x3907e1[_0x4e11('0x28')]({'blurredAnnotation':this[_0x4e11('0x5a')],'activatedAnnotation':_0x5131c6,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5131c6)_0x3907e1['getSidebarItemView'](_0x5131c6)?this[_0x4e11('0x44')](_0x5131c6):this[_0x4e11('0x54')]();else this[_0x4e11('0x54')]();this[_0x4e11('0x5a')]=_0x5131c6;}[_0x4e11('0x22')](){if(!this[_0x4e11('0x48')])throw new _0x46865d(_0x4e11('0x9'),this);this['setActiveAnnotation'](null);const _0x1791e7=this['context']['plugins'][_0x4e11('0xe')](_0x525883);this['_hideBalloon'](),Array[_0x4e11('0x20')](this['_annotationToNarrowView'][_0x4e11('0x57')](),_0xb8c9c3=>_0xb8c9c3[_0x4e11('0x4b')]()),this['_annotationToNarrowView'][_0x4e11('0x3e')](),_0x1791e7['_detachFromContainer'](this[_0x4e11('0x3f')]),this['stopListening'](),this[_0x4e11('0x2c')][_0x4e11('0x3d')](),this[_0x4e11('0x35')]instanceof _0x360811&&this[_0x4e11('0x3d')](this[_0x4e11('0x35')]['editors']);for(const _0x4b1920 of Array[_0x4e11('0x20')](this[_0x4e11('0x8')]))this['_destroyEditorAnnotationsIntegration'](_0x4b1920);window['removeEventListener'](_0x4e11('0x1c'),this[_0x4e11('0x2')]),this['_refreshPositioningDebounced'][_0x4e11('0x34')](),this[_0x4e11('0x43')]=[],this['isAttached']=!0x1,this['annotations']=null;}[_0x4e11('0x4b')](){this[_0x4e11('0x48')]&&this[_0x4e11('0x22')](),this[_0x4e11('0x3a')][_0x4e11('0xa')]();}['_integrateWithEditorAnnotations'](_0xe1be85){const _0x50d279=_0xe1be85[_0x4e11('0x3c')][_0x4e11('0xe')](_0xe0d9e5),_0x1ab4af=this[_0x4e11('0x35')][_0x4e11('0x3c')][_0x4e11('0xe')](_0x525883),_0x20b889=this[_0x4e11('0x3f')],_0x1e8d05=this[_0x4e11('0xb')],_0x175c91=()=>{const _0x3e1572=_0x50d279['getOrderedSelectedAnnotations']({'annotations':this[_0x4e11('0x3f')],'activeAnnotation':this['activeAnnotation']});this[_0x4e11('0x1a')](_0x3e1572),this['setActiveAnnotation'](_0x3e1572[0x0]||null);};this[_0x4e11('0x40')](_0x50d279,_0x4e11('0x28'),_0x175c91),this[_0x4e11('0x40')](_0x50d279,_0x4e11('0xf'),(_0x29faab,{isAnnotationTracked:_0x37a90c})=>{this[_0x4e11('0x5a')]&&_0x37a90c(this['activeAnnotation'])&&(this[_0x4e11('0x1a')]([]),this[_0x4e11('0x1f')](null));}),this[_0x4e11('0x40')](_0x50d279,_0x4e11('0x24'),()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x20b889,_0x4e11('0xf'),_0xe0d005=>{_0x50d279[_0x4e11('0x1')]()&&_0xe0d005[_0x4e11('0x41')]();},{'priority':_0x4e11('0x1d')}),this[_0x4e11('0x40')](this['_domEmitter'],_0x4e11('0xd'),(_0x336488,_0x5b280a)=>{const _0x59829f=_0x5b280a[_0x4e11('0x21')];_0x1e8d05['isVisible']&&_0x1e8d05[_0x4e11('0x47')][_0x4e11('0x17')](_0x59829f)||_0x1ab4af[_0x4e11('0x4a')][_0x4e11('0x47')][_0x4e11('0x17')](_0x59829f)||this[_0x4e11('0x5a')]&&_0x50d279[_0x4e11('0x1')]()&&(_0x175c91(),_0x336488['preventClosingBalloon']=!0x0);},{'priority':_0x4e11('0x1d')}),this[_0x4e11('0x8')][_0x4e11('0x10')](_0x50d279);}[_0x4e11('0x36')](_0x58a322){_0x58a322&&(this[_0x4e11('0x3d')](_0x58a322),this[_0x4e11('0x8')][_0x4e11('0x2e')](_0x58a322));}[_0x4e11('0x1a')](_0x4b0ed1){for(const _0x36362c of this[_0x4e11('0x43')])_0x4b0ed1['includes'](_0x36362c)||this['_manuallyClosedAnnotationViews'][_0x4e11('0x5')](_0x36362c[_0x4e11('0x4a')]);this[_0x4e11('0x43')]=_0x4b0ed1;}[_0x4e11('0x5b')](){const _0x2299bb=this[_0x4e11('0xb')];this[_0x4e11('0x3f')][_0x4e11('0x53')](),_0x2299bb[_0x4e11('0x12')]&&this[_0x4e11('0x19')]();}['_showBalloon'](_0x523982){if(this['_manuallyClosedAnnotationViews'][_0x4e11('0x56')](_0x523982[_0x4e11('0x4a')]))return;const _0x5eb3e6=this['balloonPanelView'][_0x4e11('0x7')][_0x4e11('0x39')];_0x5eb3e6!==_0x523982[_0x4e11('0x4a')]?(_0x5eb3e6&&this[_0x4e11('0x32')](_0x5eb3e6),this[_0x4e11('0x1e')](_0x523982[_0x4e11('0x4a')]),this[_0x4e11('0xb')][_0x4e11('0x7')][_0x4e11('0x3e')](),this[_0x4e11('0xb')][_0x4e11('0x7')][_0x4e11('0x10')](_0x523982[_0x4e11('0x4a')]),this[_0x4e11('0x19')]()):this[_0x4e11('0x19')]();}['_updateBalloonPosition'](){const _0x12cd67=this['balloonPanelView'][_0x4e11('0x7')][_0x4e11('0x39')],_0x5a51bb=_0x12cd67&&this[_0x4e11('0x3f')]['getByView'](_0x12cd67);if(!_0x5a51bb||!this[_0x4e11('0x27')][_0x4e11('0x56')](_0x5a51bb))return;const _0x4aaa93=this[_0x4e11('0x27')]['get'](_0x5a51bb)[_0x4e11('0x47')],_0x5b6f68=function(){const _0x196fe2=_0x35ae86[_0x4e11('0x14')];return[_0x196fe2[_0x4e11('0x30')],_0x196fe2[_0x4e11('0x52')],_0x196fe2[_0x4e11('0x29')],_0x196fe2['northArrowSouth'],_0x196fe2[_0x4e11('0x42')],_0x196fe2['northArrowSouthWest']];}();this['balloonPanelView']['pin']({'target':_0x4aaa93,'positions':_0x5b6f68});}['_hideBalloon'](){const _0x38116a=this[_0x4e11('0xb')],_0x7f9772=_0x38116a[_0x4e11('0x7')][_0x4e11('0x39')];_0x7f9772&&(this[_0x4e11('0x32')](_0x7f9772),_0x38116a['unpin'](),_0x38116a[_0x4e11('0x7')][_0x4e11('0x3e')]());}[_0x4e11('0x1e')](_0x50e122){this['listenTo'](_0x50e122,_0x4e11('0x4'),()=>this[_0x4e11('0x19')]()),this[_0x4e11('0x40')](_0x50e122,_0x4e11('0x6'),(_0x4c10cf,_0x5c9bc9)=>{this[_0x4e11('0x51')]['add'](_0x50e122),this[_0x4e11('0x54')](),_0x5c9bc9();});}[_0x4e11('0x32')](_0x2e38fe){this[_0x4e11('0x3d')](_0x2e38fe);}}
|
|
23
|
+
const _0x4872=['NarrowSidebar','mousedown','set:container','contains','content','pin','EditorAnnotations','_refreshPositioning','setActiveAnnotation','detach','narrowSidebar','off','_detachListeners','resize','activeAnnotation','clear','attachToDom','northArrowSouthEast','uiUpdate','listenTo','number','defaultPositions','keydown','northArrowSouthWest','bodyCollection','focusableElements','_destroyEditorAnnotationsIntegration','rearrange','has','blur','context','attach','stop','set','change:height','focus','_domEmitter','balloonPanelView','target','_annotations','ready','includes','element','_manuallyClosedAnnotationViews','_updateBalloonPosition','delete','annotationType','stopPropagation','from','find','annotations','preventClosingBalloon','removeEventListener','execute','editors','destroy','unpin','high','_refreshPositioningDebounced','requires','stopListening','_attachToContainer','southArrowNorthEast','isDirty','_selectedAnnotations','view','_showBalloon','register','_annotationToNarrowView','_setSelectedAnnotations','_integrateWithEditorAnnotations','length','_hideBalloon','add','plugins','hasDomSelection','southArrowNorth','northArrowSouth','remove','get','_editorAnnotations','_attachListeners','addAnnotation','getSidebarItemView','_detachFromContainer','isAttached','isVisible','getByView','first','narrowsidebar-detach-not-attached','detachFromDom','cancel','init','locale','values','esc'];(function(_0x5969d9,_0x48727f){const _0x268b58=function(_0x1034e2){while(--_0x1034e2){_0x5969d9['push'](_0x5969d9['shift']());}};_0x268b58(++_0x48727f);}(_0x4872,0x1db));const _0x268b=function(_0x5969d9,_0x48727f){_0x5969d9=_0x5969d9-0x0;let _0x268b58=_0x4872[_0x5969d9];return _0x268b58;};import{ContextPlugin as _0x440824,Context as _0x43570c}from'ckeditor5/src/core';import _0x253d9a from'./annotationsuis';import _0x4599fa from'./sidebar';import _0x54b65b from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x475006,BodyCollection as _0x380e66}from'ckeditor5/src/ui';import{CKEditorError as _0x524c4e,DomEmitterMixin as _0x5245dc,keyCodes as _0xbf2b63,Collection as _0x94d74}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x21e045}from'lodash-es';import _0x2677dc from'./editorannotations';export default class s extends _0x440824{static get[_0x268b('0x40')](){return[_0x4599fa,_0x253d9a];}static get['pluginName'](){return _0x268b('0x5');}constructor(_0x4158eb){super(_0x4158eb),this[_0x268b('0x5a')]=!0x1,this[_0x268b('0x30')]=new Set(),this[_0x268b('0x29')]=Object['create'](_0x5245dc),this[_0x268b('0x49')]=new Map(),this[_0x268b('0x26')](_0x268b('0x13'),null),this['annotations']=null,this[_0x268b('0x45')]=[],this['_editorAnnotations']=new _0x94d74(),this[_0x268b('0x3f')]=_0x21e045(()=>{this[_0x268b('0xc')]();},0xfa,{'leading':!0x1});}[_0x268b('0x1')](){this['context'][_0x268b('0x4f')][_0x268b('0x54')](_0x253d9a)[_0x268b('0x48')](_0x268b('0xf'),this),this[_0x268b('0x1d')]=new _0x380e66(this[_0x268b('0x23')]['locale']),this[_0x268b('0x2a')]=new _0x475006(this[_0x268b('0x23')][_0x268b('0x2')]),this[_0x268b('0x1d')][_0x268b('0x15')](),this[_0x268b('0x1d')][_0x268b('0x4e')](this[_0x268b('0x2a')]);}[_0x268b('0x24')](_0x32dcc7){this['annotations']=_0x32dcc7;const _0x1cad2a=this[_0x268b('0x23')][_0x268b('0x4f')][_0x268b('0x54')](_0x4599fa),_0x1b7915=this[_0x268b('0x2a')];if(_0x1cad2a[_0x268b('0x2c')]=_0x32dcc7,this[_0x268b('0x5a')])throw new _0x524c4e('narrowsidebar-attach-already-attached',this);this[_0x268b('0x5a')]=!0x0,this['listenTo'](_0x1cad2a,_0x268b('0x7'),()=>{this['detach'](),this[_0x268b('0x18')](_0x1cad2a,'change:container',_0xae3196=>{_0xae3196[_0x268b('0x10')](),this['attach'](_0x32dcc7);});}),_0x1cad2a[_0x268b('0x42')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x914f76=_0x444da2=>{const _0x10f787=new _0x54b65b(this[_0x268b('0x23')][_0x268b('0x2')]);_0x1cad2a[_0x268b('0x57')](_0x444da2,_0x10f787),this[_0x268b('0x49')][_0x268b('0x26')](_0x444da2,_0x10f787),_0x10f787['bind']('isDirty',_0x268b('0x33'),_0x268b('0x19'))['to'](_0x444da2[_0x268b('0x46')],_0x268b('0x44'),'type',_0x268b('0x4c')),_0x10f787['on'](_0x268b('0x3a'),()=>{this[_0x268b('0x30')]['clear'](),_0x1b7915[_0x268b('0x9')][_0x268b('0x5d')]!==_0x444da2[_0x268b('0x46')]?(this[_0x268b('0x47')](_0x444da2),_0x444da2[_0x268b('0x46')]['element']['focus'](),this[_0x268b('0xd')](_0x444da2)):this[_0x268b('0xd')](null);});};for(const _0x3c31a4 of _0x32dcc7)_0x914f76(_0x3c31a4);this[_0x268b('0x18')](_0x32dcc7,'add',(_0x1c7145,_0x27423a)=>{_0x914f76(_0x27423a);}),this[_0x268b('0x18')](_0x32dcc7,'remove',(_0x112ae0,_0x41ca59,_0x1ba6c9)=>{this[_0x268b('0x49')][_0x268b('0x54')](_0x41ca59)[_0x268b('0x3c')](),this[_0x268b('0x49')][_0x268b('0x32')](_0x41ca59),_0x1cad2a[_0x268b('0x20')]({'removedAnnotation':_0x41ca59,'previousAnnotation':_0x32dcc7[_0x268b('0x54')](_0x1ba6c9-0x1),'nextAnnotation':_0x32dcc7[_0x268b('0x54')](_0x1ba6c9+0x1)}),_0x41ca59===this[_0x268b('0x13')]&&this[_0x268b('0xd')](null);},{'priority':'low'}),this[_0x268b('0x18')](_0x32dcc7,_0x268b('0x28'),(_0x2d21ac,_0x129c0e)=>{this['setActiveAnnotation'](_0x129c0e);}),this[_0x268b('0x18')](_0x32dcc7,'blur',()=>{this['setActiveAnnotation'](null);}),this[_0x268b('0x29')]['listenTo'](document,_0x268b('0x1b'),(_0x63ebd9,_0x5b3ec4)=>{_0x5b3ec4['keyCode']===_0xbf2b63[_0x268b('0x4')]&&_0x1b7915[_0x268b('0x5b')]&&(this['_manuallyClosedAnnotationViews']['add'](_0x1b7915[_0x268b('0x9')]['first']),this[_0x268b('0x4d')](),_0x5b3ec4[_0x268b('0x34')](),_0x5b3ec4['preventDefault']());}),this['_domEmitter']['listenTo'](document,_0x268b('0x6'),(_0x40ace2,_0x1dc60a)=>{const _0x3b12c7=_0x1dc60a[_0x268b('0x2b')];_0x1b7915['isVisible']&&_0x1b7915[_0x268b('0x2f')][_0x268b('0x8')](_0x3b12c7)||_0x1cad2a[_0x268b('0x46')][_0x268b('0x2f')][_0x268b('0x8')](_0x3b12c7)||_0x40ace2[_0x268b('0x38')]||this[_0x268b('0x13')]&&this[_0x268b('0x13')][_0x268b('0x1e')][_0x268b('0x36')](_0x25915f=>_0x25915f['contains'](_0x3b12c7))||(this['_manuallyClosedAnnotationViews'][_0x268b('0x14')](),this['_hideBalloon'](),this[_0x268b('0xd')](null));});const _0x3a0ae2=this[_0x268b('0x23')]instanceof _0x43570c?this[_0x268b('0x23')][_0x268b('0x3b')]:new _0x94d74([this['context']]);for(const _0x2490f4 of _0x3a0ae2)this[_0x268b('0x4b')](_0x2490f4);this[_0x268b('0x18')](_0x3a0ae2,_0x268b('0x4e'),(_0x1067f7,_0x1649d1)=>{this[_0x268b('0x18')](_0x1649d1,_0x268b('0x2d'),()=>{this[_0x268b('0x4b')](_0x1649d1);});}),this[_0x268b('0x18')](_0x3a0ae2,_0x268b('0x53'),(_0x4fa879,_0x470fef)=>{_0x470fef[_0x268b('0x4f')][_0x268b('0x21')](_0x268b('0xb'))&&this[_0x268b('0x1f')](_0x470fef[_0x268b('0x4f')][_0x268b('0x54')](_0x268b('0xb')));}),window['addEventListener'](_0x268b('0x12'),this['_refreshPositioningDebounced']),this[_0x268b('0xc')]();}[_0x268b('0xd')](_0x44872b){if(_0x44872b===this[_0x268b('0x13')])return;const _0xe94ffe=this[_0x268b('0x23')][_0x268b('0x4f')][_0x268b('0x54')](_0x4599fa);if(_0xe94ffe['refresh']({'blurredAnnotation':this[_0x268b('0x13')],'activatedAnnotation':_0x44872b,'disableAnimationOnActivatedAnnotation':!0x0}),_0x44872b)_0xe94ffe[_0x268b('0x58')](_0x44872b)?this[_0x268b('0x47')](_0x44872b):this[_0x268b('0x4d')]();else this['_hideBalloon']();this[_0x268b('0x13')]=_0x44872b;}['detach'](){if(!this[_0x268b('0x5a')])throw new _0x524c4e(_0x268b('0x5e'),this);this[_0x268b('0xd')](null);const _0x359b93=this[_0x268b('0x23')][_0x268b('0x4f')][_0x268b('0x54')](_0x4599fa);this[_0x268b('0x4d')](),Array[_0x268b('0x35')](this[_0x268b('0x49')][_0x268b('0x3')](),_0x52080b=>_0x52080b[_0x268b('0x3c')]()),this['_annotationToNarrowView'][_0x268b('0x14')](),_0x359b93[_0x268b('0x59')](this[_0x268b('0x37')]),this[_0x268b('0x41')](),this[_0x268b('0x29')][_0x268b('0x41')](),this[_0x268b('0x23')]instanceof _0x43570c&&this[_0x268b('0x41')](this['context'][_0x268b('0x3b')]);for(const _0x4626b3 of Array[_0x268b('0x35')](this[_0x268b('0x55')]))this[_0x268b('0x1f')](_0x4626b3);window[_0x268b('0x39')]('resize',this[_0x268b('0x3f')]),this[_0x268b('0x3f')][_0x268b('0x0')](),this['_selectedAnnotations']=[],this[_0x268b('0x5a')]=!0x1,this[_0x268b('0x37')]=null;}[_0x268b('0x3c')](){this['isAttached']&&this[_0x268b('0xe')](),this[_0x268b('0x1d')][_0x268b('0x5f')]();}[_0x268b('0x4b')](_0xa6814){const _0x4b654b=_0xa6814[_0x268b('0x4f')]['get'](_0x2677dc),_0x51a59b=this[_0x268b('0x23')][_0x268b('0x4f')][_0x268b('0x54')](_0x4599fa),_0x39b91f=this['annotations'],_0x139b26=this['balloonPanelView'],_0x57b99a=()=>{const _0x1d1953=_0x4b654b['getOrderedSelectedAnnotations']({'annotations':this[_0x268b('0x37')],'activeAnnotation':this['activeAnnotation']});this[_0x268b('0x4a')](_0x1d1953),this[_0x268b('0xd')](_0x1d1953[0x0]||null);};this['listenTo'](_0x4b654b,'refresh',_0x57b99a),this[_0x268b('0x18')](_0x4b654b,_0x268b('0x22'),(_0x43bc4d,{isAnnotationTracked:_0x2d378c})=>{this['activeAnnotation']&&_0x2d378c(this['activeAnnotation'])&&(this[_0x268b('0x4a')]([]),this[_0x268b('0xd')](null));}),this['listenTo'](_0x4b654b,_0x268b('0x17'),()=>{this['_refreshPositioningDebounced']();}),this[_0x268b('0x18')](_0x39b91f,_0x268b('0x22'),_0xdac207=>{_0x4b654b[_0x268b('0x50')]()&&_0xdac207[_0x268b('0x25')]();},{'priority':_0x268b('0x3e')}),this[_0x268b('0x18')](this[_0x268b('0x29')],_0x268b('0x6'),(_0x25928e,_0x13d16a)=>{const _0x28dee5=_0x13d16a[_0x268b('0x2b')];_0x139b26['isVisible']&&_0x139b26[_0x268b('0x2f')][_0x268b('0x8')](_0x28dee5)||_0x51a59b[_0x268b('0x46')]['element'][_0x268b('0x8')](_0x28dee5)||this[_0x268b('0x13')]&&_0x4b654b[_0x268b('0x50')]()&&(_0x57b99a(),_0x25928e[_0x268b('0x38')]=!0x0);},{'priority':'high'}),this['_editorAnnotations'][_0x268b('0x4e')](_0x4b654b);}[_0x268b('0x1f')](_0x33efa3){_0x33efa3&&(this[_0x268b('0x41')](_0x33efa3),this[_0x268b('0x55')][_0x268b('0x53')](_0x33efa3));}[_0x268b('0x4a')](_0x22944d){for(const _0x38eecb of this[_0x268b('0x45')])_0x22944d[_0x268b('0x2e')](_0x38eecb)||this[_0x268b('0x30')][_0x268b('0x32')](_0x38eecb[_0x268b('0x46')]);this[_0x268b('0x45')]=_0x22944d;}['_refreshPositioning'](){const _0x1efc07=this['balloonPanelView'];this[_0x268b('0x37')]['refreshPositioning'](),_0x1efc07['isVisible']&&this[_0x268b('0x31')]();}[_0x268b('0x47')](_0x58eae0){if(this['_manuallyClosedAnnotationViews'][_0x268b('0x21')](_0x58eae0['view']))return;const _0x7579d6=this[_0x268b('0x2a')][_0x268b('0x9')][_0x268b('0x5d')];_0x7579d6!==_0x58eae0[_0x268b('0x46')]?(_0x7579d6&&this[_0x268b('0x11')](_0x7579d6),this[_0x268b('0x56')](_0x58eae0[_0x268b('0x46')]),this[_0x268b('0x2a')][_0x268b('0x9')]['clear'](),this[_0x268b('0x2a')][_0x268b('0x9')]['add'](_0x58eae0[_0x268b('0x46')]),this['_updateBalloonPosition']()):this[_0x268b('0x31')]();}[_0x268b('0x31')](){const _0x3dd3c7=this[_0x268b('0x2a')][_0x268b('0x9')]['first'],_0x51dbf6=_0x3dd3c7&&this[_0x268b('0x37')][_0x268b('0x5c')](_0x3dd3c7);if(!_0x51dbf6||!this[_0x268b('0x49')][_0x268b('0x21')](_0x51dbf6))return;const _0x694af7=this[_0x268b('0x49')][_0x268b('0x54')](_0x51dbf6)['element'],_0x50887c=function(){const _0x2c4460=_0x475006[_0x268b('0x1a')];return[_0x2c4460[_0x268b('0x43')],_0x2c4460[_0x268b('0x16')],_0x2c4460[_0x268b('0x51')],_0x2c4460[_0x268b('0x52')],_0x2c4460['southArrowNorthWest'],_0x2c4460[_0x268b('0x1c')]];}();this[_0x268b('0x2a')][_0x268b('0xa')]({'target':_0x694af7,'positions':_0x50887c});}[_0x268b('0x4d')](){const _0x80b541=this['balloonPanelView'],_0x26c3c7=_0x80b541[_0x268b('0x9')][_0x268b('0x5d')];_0x26c3c7&&(this[_0x268b('0x11')](_0x26c3c7),_0x80b541[_0x268b('0x3d')](),_0x80b541[_0x268b('0x9')][_0x268b('0x14')]());}['_attachListeners'](_0x679b84){this[_0x268b('0x18')](_0x679b84,_0x268b('0x27'),()=>this[_0x268b('0x31')]()),this['listenTo'](_0x679b84,'Esc',(_0x38fcdc,_0x52e44c)=>{this['_manuallyClosedAnnotationViews'][_0x268b('0x4e')](_0x679b84),this['_hideBalloon'](),_0x52e44c();});}[_0x268b('0x11')](_0x2d1cb1){this[_0x268b('0x41')](_0x2d1cb1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2eda=['clear','getIndex','sidebar-setcontainer-invalid-element','length','unbind','define','change:top','push','nodeType','context','get','minHeight','max','_getItemBefore','_getMaxAvailableTop','appendChild','destroy','_lastItem','targetRect','_annotationToSidebarItemView','updateHeight','last','pluginName','bottom','_getItemAfter','class','getSidebarItemView','_alignAfterItem','delete','content','object','isAnimationDisabled','set','refresh','_alignForBottomChange','addAnnotation','target','_getTargetTop','_sidebarItemViewToAnnotation','container','listenTo','setContainer','_recalculate','_alignForTopChange','_recalculateBuffer','_targetTop','element','view','remove','height','config','list','add','render','init','_attachToContainer','_activeAnnotation','_spaceBetweenItems','_createSidebarView','sidebar.preventScrollOutOfView','_annotations','top','_detachFromContainer','_alignBeforeItem','stopListening','locale','Sidebar','sidebar-attachtocontainer-missing-container','_setItemTop','_destroySidebarItemView','change:_lastItem','_updateLastItem','_alignToTargetRect'];(function(_0x426544,_0x2edaec){const _0x2f4f4f=function(_0x424612){while(--_0x424612){_0x426544['push'](_0x426544['shift']());}};_0x2f4f4f(++_0x2edaec);}(_0x2eda,0x17b));const _0x2f4f=function(_0x426544,_0x2edaec){_0x426544=_0x426544-0x0;let _0x2f4f4f=_0x2eda[_0x426544];return _0x2f4f4f;};import{ContextPlugin as _0xe5f52b}from'ckeditor5/src/core';import{Rect as _0x1ea5c1,CKEditorError as _0x24bc6d}from'ckeditor5/src/utils';import _0x14f71 from'./view/sidebarview';import _0xf1f8e3 from'./view/sidebaritemview';export default class z extends _0xe5f52b{static get[_0x2f4f('0x8')](){return _0x2f4f('0x34');}constructor(_0x4b51b2){super(_0x4b51b2),this[_0x2f4f('0x12')]('_lastItem',void 0x0),this[_0x2f4f('0x21')]=this[_0x2f4f('0x2c')](),this[_0x2f4f('0x12')](_0x2f4f('0x19'),null),this[_0x2f4f('0x2b')]=0x19,this[_0x2f4f('0x18')]=new Map(),this[_0x2f4f('0x5')]=new Map(),this[_0x2f4f('0x44')]['config'][_0x2f4f('0x40')](_0x2f4f('0x2d'),!0x1),this[_0x2f4f('0x2e')]=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}[_0x2f4f('0x28')](){const _0x5acf5c=this['context'][_0x2f4f('0x24')]['get']('sidebar.container');_0x5acf5c&&this['setContainer'](_0x5acf5c);}[_0x2f4f('0x1b')](_0x32e4c0){if(!y(_0x32e4c0))throw new _0x24bc6d(_0x2f4f('0x3d'));this['container']=_0x32e4c0;}[_0x2f4f('0x29')]({viewClass:_0x202d10='',spaceBetweenItems:_0x21d74b=0x19}={}){if(!y(this[_0x2f4f('0x19')]))throw new _0x24bc6d(_0x2f4f('0x35'),this);this[_0x2f4f('0x19')][_0x2f4f('0x1')](this[_0x2f4f('0x21')][_0x2f4f('0x20')]),this[_0x2f4f('0x21')][_0x2f4f('0xb')]=_0x202d10,this[_0x2f4f('0x2b')]=_0x21d74b;}['rearrange']({removedAnnotation:_0x3baf2f,previousAnnotation:_0x5748ec,nextAnnotation:_0x194736}){const _0x4e67f3=this[_0x2f4f('0xc')](_0x3baf2f);this[_0x2f4f('0x21')][_0x2f4f('0x25')][_0x2f4f('0x22')](_0x4e67f3),this[_0x2f4f('0x37')](_0x3baf2f),_0x5748ec&&this[_0x2f4f('0x3a')](this[_0x2f4f('0xc')](_0x5748ec)),_0x194736&&this[_0x2f4f('0x3a')](this[_0x2f4f('0xc')](_0x194736)),this['_updateLastItem']();}[_0x2f4f('0x13')]({blurredAnnotation:_0x5d28ea,activatedAnnotation:_0x3e1de1,disableAnimationOnActivatedAnnotation:_0x4fb372}){if(this['_activeAnnotation']=_0x3e1de1,_0x5d28ea){_0x5d28ea['isActive']=!0x1;const _0x12f359=this[_0x2f4f('0xc')](_0x5d28ea);_0x12f359&&_0x4fb372&&(_0x12f359[_0x2f4f('0x11')]=!0x1);}if(_0x3e1de1){const _0x5dcc70=this[_0x2f4f('0xc')](_0x3e1de1);_0x5dcc70&&(_0x3e1de1['isActive']=!0x0,_0x4fb372&&(_0x5dcc70['isAnimationDisabled']=!0x0,_0x5dcc70[_0x2f4f('0x2f')]+=0x1),this['_alignToTargetRect'](_0x5dcc70));}}[_0x2f4f('0x30')](_0x487976){if(this[_0x2f4f('0x21')][_0x2f4f('0x20')][_0x2f4f('0x22')](),_0x487976)for(const _0x11bb39 of _0x487976)this['_destroySidebarItemView'](_0x11bb39);this[_0x2f4f('0x21')][_0x2f4f('0x25')][_0x2f4f('0x3b')](),this[_0x2f4f('0x21')][_0x2f4f('0xb')]='',this[_0x2f4f('0x3')]=null;}[_0x2f4f('0x15')](_0x19d215,_0x65b19c){_0x65b19c||(_0x65b19c=_0x19d215[_0x2f4f('0x21')]);const _0x193816=new _0xf1f8e3(this['context'][_0x2f4f('0x33')]);this['_sidebarItemViewToAnnotation']['set'](_0x193816,_0x19d215),this[_0x2f4f('0x5')][_0x2f4f('0x12')](_0x19d215,_0x193816),_0x193816[_0x2f4f('0xf')][_0x2f4f('0x26')](_0x65b19c),this[_0x2f4f('0x1a')](_0x19d215[_0x2f4f('0x21')],'change:targetRect',(_0x60533d,_0x11bd38,_0x502c49)=>{const _0x445aeb=this[_0x2f4f('0x17')](_0x19d215,_0x502c49);_0x193816['_targetTop']!=_0x445aeb&&(_0x193816[_0x2f4f('0x1f')]=_0x445aeb,this[_0x2f4f('0x36')](_0x193816,_0x445aeb));}),this[_0x2f4f('0x1a')](_0x193816,_0x2f4f('0x41'),()=>{this[_0x2f4f('0x1c')](_0x193816,_0x2f4f('0x2f'));}),this['listenTo'](_0x193816,'change:bottom',()=>{this['_recalculate'](_0x193816,_0x2f4f('0x9'));}),this[_0x2f4f('0x3a')](_0x193816);const _0x37bc83=this[_0x2f4f('0x48')](_0x193816);if(_0x37bc83)this[_0x2f4f('0xd')](_0x37bc83,_0x193816)||this[_0x2f4f('0x3a')](_0x193816);else this['_alignToTargetRect'](_0x193816);return this[_0x2f4f('0x39')](),this[_0x2f4f('0x21')][_0x2f4f('0x25')][_0x2f4f('0x26')](_0x193816),_0x193816;}[_0x2f4f('0x1d')](_0x785ed8){if(!_0x785ed8[_0x2f4f('0xf')][_0x2f4f('0x3e')])return;const _0x5cd91d=this[_0x2f4f('0x48')](_0x785ed8);if(!_0x5cd91d)return;const _0x3d1db6=this[_0x2f4f('0x18')]['get'](_0x5cd91d),_0x1c3dac=this[_0x2f4f('0x2a')];_0x1c3dac&&_0x1c3dac===_0x3d1db6?this['_alignAfterItem'](_0x5cd91d,_0x785ed8):this[_0x2f4f('0x31')](_0x785ed8,_0x5cd91d);}[_0x2f4f('0x14')](_0x44cae9){if(!_0x44cae9['content'][_0x2f4f('0x3e')])return;const _0x2e9c98=this[_0x2f4f('0xa')](_0x44cae9);if(!_0x2e9c98)return;const _0x1d16a2=this[_0x2f4f('0x18')][_0x2f4f('0x45')](_0x2e9c98),_0x4157ef=this[_0x2f4f('0x44')][_0x2f4f('0x24')][_0x2f4f('0x45')]('sidebar.preventScrollOutOfView'),_0x394f30=this[_0x2f4f('0x2a')];_0x394f30&&_0x394f30===_0x1d16a2&&_0x4157ef?(this[_0x2f4f('0x31')](_0x2e9c98,_0x44cae9),this[_0x2f4f('0xd')](_0x44cae9,_0x2e9c98)):_0x394f30&&_0x394f30===_0x1d16a2?this[_0x2f4f('0x31')](_0x2e9c98,_0x44cae9):this[_0x2f4f('0xd')](_0x44cae9,_0x2e9c98);}[_0x2f4f('0x1c')](_0x4a785b,_0xc78235){0x0===this[_0x2f4f('0x1e')][_0x2f4f('0x3e')]&&setTimeout(()=>{for(const {sidebarItemView:_0x4d895c,changedProp:_0xb80da7}of this[_0x2f4f('0x1e')])_0x2f4f('0x2f')===_0xb80da7?this['_alignForTopChange'](_0x4d895c):this[_0x2f4f('0x14')](_0x4d895c);this[_0x2f4f('0x1e')]=[];},0xa),this[_0x2f4f('0x1e')][_0x2f4f('0x42')]({'sidebarItemView':_0x4a785b,'changedProp':_0xc78235});}[_0x2f4f('0xc')](_0x2567c3){return this[_0x2f4f('0x5')][_0x2f4f('0x45')](_0x2567c3);}['destroy'](){this[_0x2f4f('0x32')](),this[_0x2f4f('0x21')][_0x2f4f('0x2')]();}[_0x2f4f('0x37')](_0x31227c){const _0x2acda7=this[_0x2f4f('0xc')](_0x31227c);this[_0x2f4f('0x32')](_0x2acda7),this[_0x2f4f('0x32')](_0x31227c[_0x2f4f('0x21')]),_0x2acda7[_0x2f4f('0x2')](),this[_0x2f4f('0x5')]['delete'](_0x31227c),this[_0x2f4f('0x18')][_0x2f4f('0xe')](_0x2acda7);}[_0x2f4f('0x2c')](){const _0x521a4f=new _0x14f71(this['context'][_0x2f4f('0x33')]);return _0x521a4f[_0x2f4f('0x27')](),this['on'](_0x2f4f('0x38'),(_0xf42670,_0x20d654,_0x39eccc,_0x114eef)=>{_0x114eef&&_0x521a4f[_0x2f4f('0x3f')](_0x2f4f('0x46')),_0x39eccc?_0x521a4f['bind'](_0x2f4f('0x46'))['to'](_0x39eccc,_0x2f4f('0x9')):_0x521a4f[_0x2f4f('0x46')]=null;}),_0x521a4f;}[_0x2f4f('0x39')](){var _0x5850d8;this[_0x2f4f('0x3')]=(null===(_0x5850d8=this['_annotations'])||void 0x0===_0x5850d8?void 0x0:_0x5850d8['last'])?this[_0x2f4f('0xc')](this['_annotations'][_0x2f4f('0x7')]):null;}[_0x2f4f('0x48')](_0x47d118){var _0x5d07e4;const _0x2b064a=this[_0x2f4f('0x18')]['get'](_0x47d118),_0x5bd1d0=_0x2b064a&&(null===(_0x5d07e4=this[_0x2f4f('0x2e')])||void 0x0===_0x5d07e4?void 0x0:_0x5d07e4[_0x2f4f('0x45')](this[_0x2f4f('0x2e')][_0x2f4f('0x3c')](_0x2b064a)-0x1));return _0x5bd1d0&&this[_0x2f4f('0xc')](_0x5bd1d0)||null;}[_0x2f4f('0xa')](_0x491186){var _0x18b0dc;const _0x449427=this['_sidebarItemViewToAnnotation'][_0x2f4f('0x45')](_0x491186),_0x28f760=_0x449427&&(null===(_0x18b0dc=this['_annotations'])||void 0x0===_0x18b0dc?void 0x0:_0x18b0dc[_0x2f4f('0x45')](this['_annotations'][_0x2f4f('0x3c')](_0x449427)+0x1));return _0x28f760&&this[_0x2f4f('0xc')](_0x28f760)||null;}['_alignBeforeItem'](_0x5ab0bc,_0x4a540a){_0x5ab0bc[_0x2f4f('0x6')]();const _0x52d234=H(_0x4a540a[_0x2f4f('0x9')]+this[_0x2f4f('0x2b')],_0x5ab0bc[_0x2f4f('0x2f')]);return!!_0x52d234&&(this[_0x2f4f('0x36')](_0x4a540a,_0x4a540a['top']-_0x52d234),!0x0);}[_0x2f4f('0xd')](_0x469198,_0x13cb48){_0x469198[_0x2f4f('0x6')]();const _0x2c7e97=H(_0x469198[_0x2f4f('0x9')]+this[_0x2f4f('0x2b')],_0x13cb48[_0x2f4f('0x2f')]);return!!_0x2c7e97&&(this[_0x2f4f('0x36')](_0x13cb48,_0x13cb48[_0x2f4f('0x2f')]+_0x2c7e97,!0x1),!0x0);}[_0x2f4f('0x3a')](_0x5d0a46){const _0xd8919e=this['_sidebarItemViewToAnnotation'][_0x2f4f('0x45')](_0x5d0a46);if(!_0xd8919e||!_0xd8919e[_0x2f4f('0x16')]||!_0xd8919e[_0x2f4f('0x4')])return;const _0x79cdb9=this['_getTargetTop'](_0xd8919e,_0xd8919e['targetRect']);this[_0x2f4f('0x36')](_0x5d0a46,_0x79cdb9);}[_0x2f4f('0x17')](_0x52520a,_0x4fb27e){if(null===_0x4fb27e)return 0x0;if(_0x52520a[_0x2f4f('0x16')]instanceof _0x1ea5c1)return _0x4fb27e[_0x2f4f('0x2f')];{const _0xc71f05=new _0x1ea5c1(this[_0x2f4f('0x21')][_0x2f4f('0x20')])[_0x2f4f('0x2f')];return _0x4fb27e[_0x2f4f('0x2f')]-_0xc71f05;}}[_0x2f4f('0x36')](_0x25b0e0,_0x1cd00c,_0x17db7b=this['context'][_0x2f4f('0x24')]['get'](_0x2f4f('0x2d'))){_0x17db7b&&(_0x1cd00c=Math[_0x2f4f('0x47')](_0x1cd00c,this['_getMaxAvailableTop'](_0x25b0e0))),_0x25b0e0['top']=_0x1cd00c;}[_0x2f4f('0x0')](_0x2f4ea8){let _0x5ac425=this[_0x2f4f('0x48')](_0x2f4ea8),_0x2c29ca=0x0;for(;_0x5ac425;)_0x5ac425[_0x2f4f('0x6')](),_0x2c29ca+=this['_spaceBetweenItems']+_0x5ac425[_0x2f4f('0x23')],_0x5ac425=this[_0x2f4f('0x48')](_0x5ac425);return _0x2c29ca;}}function H(_0x471edb,_0x20d877){return Math[_0x2f4f('0x47')](_0x471edb-_0x20d877,0x0);}function y(_0x2a6bf4){return null!==_0x2a6bf4&&_0x2f4f('0x10')==typeof _0x2a6bf4&&0x1===_0x2a6bf4[_0x2f4f('0x43')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x513d=['_badge','bindTemplate','bind','toString','isDirty','ck-annotation-counter__badge--edit-mode','counterView','span','number','icon','ck-annotation-counter__badge','set','extendTemplate','ck-annotation-counter__badge--','...','annotationType'];(function(_0x1915ae,_0x513d5b){const _0x16bcd2=function(_0x33e515){while(--_0x33e515){_0x1915ae['push'](_0x1915ae['shift']());}};_0x16bcd2(++_0x513d5b);}(_0x513d,0xcd));const _0x16bc=function(_0x1915ae,_0x513d5b){_0x1915ae=_0x1915ae-0x0;let _0x16bcd2=_0x513d[_0x1915ae];return _0x16bcd2;};import{ButtonView as _0x1c9bd9,View as _0x583c6c}from'ckeditor5/src/ui';import _0x586ec2 from'../../../theme/icons/add-comment.svg';export default class D extends _0x1c9bd9{constructor(_0x1e2f31){super(_0x1e2f31);const _0x44d7da=this[_0x16bc('0x4')];this[_0x16bc('0xe')](_0x16bc('0x7'),!0x1),this[_0x16bc('0xe')](_0x16bc('0xb'),0x0),this[_0x16bc('0x5')]('_badge')['to'](this,_0x16bc('0x7'),this,_0x16bc('0xb'),(_0x180a5e,_0x5d7669)=>_0x180a5e?_0x16bc('0x1'):_0x5d7669[_0x16bc('0x6')]()),this[_0x16bc('0xe')](_0x16bc('0x2'),''),this[_0x16bc('0xc')]=_0x586ec2,this[_0x16bc('0xf')]({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _0x583c6c(),this[_0x16bc('0x9')]['setTemplate']({'tag':_0x16bc('0xa'),'attributes':{'class':[_0x16bc('0xd'),_0x44d7da['to'](_0x16bc('0x2'),_0x27750a=>_0x16bc('0x0')+_0x27750a),_0x44d7da['if'](_0x16bc('0x7'),_0x16bc('0x8'))]},'children':[{'text':_0x44d7da['to'](_0x16bc('0x3'))}]}),this['children']['add'](this['counterView']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ef4=['attach','focusTracker','add','mainView','ck-annotation-wrapper--active','targetRect','type','destroy','isActive','setTemplate','content','isDirty','Esc','bindTemplate','clear','ck-annotation-wrapper','element','createCollection','set','_updateHeight','ck-rounded-corners','clientHeight','div','listenTo','fire','height','_mutationObserver','keystrokes','length','render'];(function(_0x5a7216,_0x1ef469){const _0x19085f=function(_0x30aa24){while(--_0x30aa24){_0x5a7216['push'](_0x5a7216['shift']());}};_0x19085f(++_0x1ef469);}(_0x1ef4,0x1e0));const _0x1908=function(_0x5a7216,_0x1ef469){_0x5a7216=_0x5a7216-0x0;let _0x19085f=_0x1ef4[_0x5a7216];return _0x19085f;};import{View as _0x131e2c}from'ckeditor5/src/ui';import{FocusTracker as _0x476734,KeystrokeHandler as _0x4f90aa,uid as _0x28a9f}from'ckeditor5/src/utils';import _0x348e6a from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x131e2c{constructor(_0x4098ce,_0x19fc59){super(_0x4098ce),this['id']=_0x28a9f(),this[_0x1908('0x1')]=new _0x476734(),this[_0x1908('0x1b')]=new _0x4f90aa(),this[_0x1908('0x1b')]['set'](_0x1908('0xc'),(_0x27c3b6,_0x3a6742)=>this[_0x1908('0x18')](_0x1908('0xc'),_0x3a6742)),this[_0x1908('0x12')](_0x1908('0x5'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x1908('0x12')](_0x1908('0x19'),0x0),this[_0x1908('0x12')]('isActive',!0x1),this[_0x1908('0x12')](_0x1908('0xb'),!0x1),this['set'](_0x1908('0x1c'),0x0),this[_0x1908('0x12')](_0x1908('0x6'),''),this[_0x1908('0x1a')]=_0x348e6a(()=>this[_0x1908('0x13')]()),this[_0x1908('0xa')]=this[_0x1908('0x11')](),this['content'][_0x1908('0x2')](_0x19fc59),this[_0x1908('0x3')]=_0x19fc59;const _0x217acc=this[_0x1908('0xd')];this[_0x1908('0x9')]({'tag':_0x1908('0x16'),'attributes':{'class':['ck',_0x1908('0xf'),_0x1908('0x14'),_0x217acc['if'](_0x1908('0x8'),_0x1908('0x4'))],'tabindex':-0x1},'children':this[_0x1908('0xa')]});}[_0x1908('0x1d')](){super['render'](),this[_0x1908('0x1')]['add'](this[_0x1908('0x10')]),this[_0x1908('0x1b')][_0x1908('0x17')](this['element']),this['_mutationObserver'][_0x1908('0x0')](this[_0x1908('0x10')]);}['destroy'](){this[_0x1908('0xa')][_0x1908('0xe')](),this[_0x1908('0x1b')][_0x1908('0x7')](),this[_0x1908('0x1')][_0x1908('0x7')](),this[_0x1908('0x1a')]['detach'](),super[_0x1908('0x7')]();}['focus'](){this[_0x1908('0x10')]['focus']();}['_updateHeight'](){const _0xbe28ca=this[_0x1908('0x10')][_0x1908('0x15')];_0xbe28ca&&(this[_0x1908('0x19')]=_0xbe28ca);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4207=['render','ck-sidebar-item','createCollection','attach','bindTemplate','clear','ck-sidebar-item--no-animation','content','detach','set','height','isAnimationDisabled','top','clientHeight','div','updateHeight','_targetTop','_mutationObserver','destroy'];(function(_0x39065d,_0x42078c){const _0x51b8a8=function(_0x4b1d42){while(--_0x4b1d42){_0x39065d['push'](_0x39065d['shift']());}};_0x51b8a8(++_0x42078c);}(_0x4207,0x153));const _0x51b8=function(_0x39065d,_0x42078c){_0x39065d=_0x39065d-0x0;let _0x51b8a8=_0x4207[_0x39065d];return _0x51b8a8;};import{View as _0x2bd229}from'ckeditor5/src/ui';import{toUnit as _0x53dad8}from'ckeditor5/src/utils';import _0x37e4a1 from'../../utils/createmutationobserver';const jt=_0x53dad8('px');export default class C extends _0x2bd229{constructor(_0x4b3534){super(_0x4b3534),this[_0x51b8('0xc')]('top',0x0),this[_0x51b8('0xc')]('height',0x0),this['bind']('bottom')['to'](this,_0x51b8('0xf'),this,_0x51b8('0xd'),(_0x39f32d,_0x958224)=>_0x39f32d+_0x958224),this['set'](_0x51b8('0xe'),!0x1),this[_0x51b8('0x1')]=_0x37e4a1(()=>this[_0x51b8('0x12')]()),this[_0x51b8('0x0')]=null,this[_0x51b8('0xa')]=this[_0x51b8('0x5')]();const _0x5341a4=this[_0x51b8('0x7')];this['setTemplate']({'tag':_0x51b8('0x11'),'attributes':{'class':[_0x51b8('0x4'),_0x5341a4['to'](_0x51b8('0xe'),_0x2e7ad5=>_0x2e7ad5?_0x51b8('0x9'):'')],'style':{'top':_0x5341a4['to'](_0x51b8('0xf'),_0x1b4995=>jt(_0x1b4995))}},'children':this[_0x51b8('0xa')]});}[_0x51b8('0x3')](){super[_0x51b8('0x3')](),this[_0x51b8('0x1')][_0x51b8('0x6')](this['element']);}[_0x51b8('0x12')](){const _0x2ae946=this['element'][_0x51b8('0x10')];_0x2ae946&&(this[_0x51b8('0xd')]=_0x2ae946);}[_0x51b8('0x2')](){this[_0x51b8('0xa')][_0x51b8('0x8')](),this['_mutationObserver'][_0x51b8('0xb')](),super[_0x51b8('0x2')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ddc=['ck-reset','class','div','ck-sidebar','minHeight','set','list','createCollection','bindTemplate'];(function(_0x1358d3,_0x1ddcb1){const _0x24b0bd=function(_0x2c3aec){while(--_0x2c3aec){_0x1358d3['push'](_0x1358d3['shift']());}};_0x24b0bd(++_0x1ddcb1);}(_0x1ddc,0xb5));const _0x24b0=function(_0x1358d3,_0x1ddcb1){_0x1358d3=_0x1358d3-0x0;let _0x24b0bd=_0x1ddc[_0x1358d3];return _0x24b0bd;};import{View as _0x1e6c09}from'ckeditor5/src/ui';import{toUnit as _0x20e272}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x20e272('px');export default class T extends _0x1e6c09{constructor(_0x4efcb0){super(_0x4efcb0);const _0x2a3a98=this[_0x24b0('0x7')];this[_0x24b0('0x4')](_0x24b0('0x3'),0x0),this[_0x24b0('0x4')]('class',''),this[_0x24b0('0x5')]=this[_0x24b0('0x6')](),this['setTemplate']({'tag':_0x24b0('0x1'),'attributes':{'class':['ck',_0x24b0('0x2'),_0x24b0('0x8'),_0x2a3a98['to'](_0x24b0('0x0'))],'style':{'minHeight':_0x2a3a98['to']('minHeight',_0x137e64=>'number'==typeof _0x137e64?jt(_0x137e64+0xa):null)}},'children':this['list']});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3966=['has','from','WideSidebar','isAttached','set:container','_annotations','setActiveAnnotation','init','set','_activeAnnotation','annotations','editors','activeAnnotation','rearrange','wideSidebar','addEventListener','_integrateWithEditorAnnotations','uiUpdate','switchTo','ready','register','refreshPositioning','plugins','widesidebar-detach-not-attached','requires','attach','_refreshPositioningDebounced','hasDomSelection','resize','_destroyEditorAnnotationsIntegration','remove','pluginName','blur','container','stop','removeEventListener','detach','off','context','refresh','high','updateTargetRect','get','listenTo','_attachToContainer','stopListening','change:container','EditorAnnotations','add','_editorAnnotations'];(function(_0x12310f,_0x3966e4){const _0x9d6534=function(_0x1bc918){while(--_0x1bc918){_0x12310f['push'](_0x12310f['shift']());}};_0x9d6534(++_0x3966e4);}(_0x3966,0xb0));const _0x9d65=function(_0x12310f,_0x3966e4){_0x12310f=_0x12310f-0x0;let _0x9d6534=_0x3966[_0x12310f];return _0x9d6534;};import{ContextPlugin as _0x4c0ab8,Context as _0x212b0b}from'ckeditor5/src/core';import _0x45e6c2 from'./annotationsuis';import _0x5af65a from'./sidebar';import{CKEditorError as _0x37b147,Collection as _0x27c137}from'ckeditor5/src/utils';import{debounce as _0x558e03}from'lodash-es';import _0xcacbe from'./editorannotations';export default class i extends _0x4c0ab8{static get[_0x9d65('0x30')](){return[_0x5af65a,_0x45e6c2];}static get[_0x9d65('0x5')](){return _0x9d65('0x1a');}constructor(_0x3d07e5){super(_0x3d07e5),this[_0x9d65('0x1b')]=!0x1,this[_0x9d65('0x20')](_0x9d65('0x24'),null),this[_0x9d65('0x22')]=null,this[_0x9d65('0x17')]=new _0x27c137(),this[_0x9d65('0x0')]=_0x558e03(()=>{this[_0x9d65('0x22')][_0x9d65('0x2d')]();},0xfa,{'leading':!0x1});}[_0x9d65('0x1f')](){const _0x595f47=this[_0x9d65('0xc')][_0x9d65('0x2e')][_0x9d65('0x10')](_0x45e6c2),_0x6c249c=this[_0x9d65('0xc')][_0x9d65('0x2e')][_0x9d65('0x10')](_0x5af65a);_0x595f47[_0x9d65('0x2c')](_0x9d65('0x26'),this),_0x6c249c[_0x9d65('0x7')]&&_0x595f47[_0x9d65('0x2a')](_0x9d65('0x26'));}[_0x9d65('0x1e')](_0x1335a5){if(_0x1335a5===this['activeAnnotation'])return;const _0x3aa24d=this['context']['plugins'][_0x9d65('0x10')](_0x5af65a);_0x3aa24d[_0x9d65('0x21')]=_0x1335a5;const _0x2ec50a=this[_0x9d65('0x24')];this[_0x9d65('0x24')]=_0x1335a5,_0x3aa24d[_0x9d65('0xd')]({'blurredAnnotation':_0x2ec50a,'activatedAnnotation':this[_0x9d65('0x24')]});}[_0x9d65('0x31')](_0x432236){this[_0x9d65('0x22')]=_0x432236;const _0x5d5fc4=this[_0x9d65('0xc')][_0x9d65('0x2e')]['get'](_0x5af65a);if(_0x5d5fc4[_0x9d65('0x1d')]=_0x432236,this[_0x9d65('0x1b')])throw new _0x37b147('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5d5fc4,_0x9d65('0x1c'),()=>{this[_0x9d65('0xa')](),this[_0x9d65('0x11')](_0x5d5fc4,_0x9d65('0x14'),_0x4b18d9=>{_0x4b18d9[_0x9d65('0xb')](),this[_0x9d65('0x31')](_0x432236);});}),_0x5d5fc4[_0x9d65('0x12')]({'viewClass':'ck-sidebar--wide'});const _0x3e0184=_0x42b35b=>{_0x42b35b[_0x9d65('0xf')](),_0x5d5fc4['addAnnotation'](_0x42b35b);};for(const _0x154aa9 of _0x432236)_0x3e0184(_0x154aa9);this[_0x9d65('0x11')](_0x432236,_0x9d65('0x16'),(_0x52bf95,_0x23f961)=>{_0x3e0184(_0x23f961);}),this[_0x9d65('0x11')](_0x432236,_0x9d65('0x4'),(_0xb2c3e6,_0x3e578c,_0x1120c5)=>{_0x5d5fc4[_0x9d65('0x25')]({'removedAnnotation':_0x3e578c,'previousAnnotation':_0x432236[_0x9d65('0x10')](_0x1120c5-0x1),'nextAnnotation':_0x432236[_0x9d65('0x10')](_0x1120c5+0x1)}),_0x3e578c===this[_0x9d65('0x24')]&&this[_0x9d65('0x1e')](null);},{'priority':_0x9d65('0xe')}),this[_0x9d65('0x11')](_0x432236,'focus',(_0x1ef13d,_0x43c258)=>{this[_0x9d65('0x1e')](_0x43c258);}),this[_0x9d65('0x11')](_0x432236,_0x9d65('0x6'),()=>{this[_0x9d65('0x1e')](null);});const _0x549b87=this['context']instanceof _0x212b0b?this['context']['editors']:new _0x27c137([this['context']]);for(const _0x1dce63 of _0x549b87)this[_0x9d65('0x28')](_0x1dce63);this['listenTo'](_0x549b87,_0x9d65('0x16'),(_0x3a1868,_0x508a3c)=>{this[_0x9d65('0x11')](_0x508a3c,_0x9d65('0x2b'),()=>{this[_0x9d65('0x28')](_0x508a3c);});}),this[_0x9d65('0x11')](_0x549b87,_0x9d65('0x4'),(_0xe86125,_0xb060dd)=>{_0xb060dd['plugins'][_0x9d65('0x18')](_0x9d65('0x15'))&&this[_0x9d65('0x3')](_0xb060dd['plugins'][_0x9d65('0x10')](_0x9d65('0x15')));}),window[_0x9d65('0x27')](_0x9d65('0x2'),this['_refreshPositioningDebounced']),this[_0x9d65('0x22')]['refreshPositioning']();}[_0x9d65('0xa')](){if(!this['isAttached'])throw new _0x37b147(_0x9d65('0x2f'),this);this[_0x9d65('0x1e')](null);const _0x4a758d=this['context'][_0x9d65('0x2e')][_0x9d65('0x10')](_0x5af65a);_0x4a758d['_detachFromContainer'](this['annotations']),this[_0x9d65('0x13')](_0x4a758d),this[_0x9d65('0x13')](this[_0x9d65('0x22')]),this[_0x9d65('0xc')]instanceof _0x212b0b&&this[_0x9d65('0x13')](this[_0x9d65('0xc')][_0x9d65('0x23')]);for(const _0x35395d of Array[_0x9d65('0x19')](this[_0x9d65('0x17')]))this[_0x9d65('0x3')](_0x35395d);window[_0x9d65('0x9')](_0x9d65('0x2'),this[_0x9d65('0x0')]),this[_0x9d65('0x0')]['cancel'](),this[_0x9d65('0x24')]=null,this[_0x9d65('0x1b')]=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this[_0x9d65('0xa')]();}[_0x9d65('0x28')](_0x5721ec){const _0x16dd38=_0x5721ec['plugins']['get'](_0xcacbe);if(!_0x16dd38)return;const _0x489f2f=()=>{const _0x39da73=_0x16dd38['getOrderedSelectedAnnotations']({'annotations':this[_0x9d65('0x22')],'activeAnnotation':this[_0x9d65('0x24')]});this[_0x9d65('0x1e')](_0x39da73[0x0]||null);};this[_0x9d65('0x11')](_0x16dd38,_0x9d65('0xd'),_0x489f2f),this['listenTo'](_0x16dd38,_0x9d65('0x6'),(_0x443cb8,{isAnnotationTracked:_0x28061c})=>{this['activeAnnotation']&&_0x28061c(this[_0x9d65('0x24')])&&this['setActiveAnnotation'](null);}),this[_0x9d65('0x11')](_0x16dd38,_0x9d65('0x29'),()=>{this[_0x9d65('0x0')]();}),this['listenTo'](this[_0x9d65('0x22')],_0x9d65('0x6'),_0x53462a=>{_0x16dd38[_0x9d65('0x1')]()&&(_0x489f2f(),_0x53462a[_0x9d65('0x8')]());},{'priority':'high'}),this[_0x9d65('0x17')][_0x9d65('0x16')](_0x16dd38);}[_0x9d65('0x3')](_0x564995){this[_0x9d65('0x13')](_0x564995),this[_0x9d65('0x17')][_0x9d65('0x4')](_0x564995);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e30=['tableCell','change','_hasContent','_trimToContent','element','document','push','editor','comment:','backward','substr','execute','getRanges','selection','model','isEnabled','_itemIsContent','addMarker','end'];(function(_0x356ef4,_0x3e30bc){const _0x55d810=function(_0x3bdc1e){while(--_0x3bdc1e){_0x356ef4['push'](_0x356ef4['shift']());}};_0x55d810(++_0x3e30bc);}(_0x3e30,0x144));const _0x55d8=function(_0x356ef4,_0x3e30bc){_0x356ef4=_0x356ef4-0x0;let _0x55d810=_0x3e30[_0x356ef4];return _0x55d810;};import{Command as _0x5b604a}from'ckeditor5/src/core';import{uid as _0x3274b8}from'ckeditor5/src/utils';export default class q extends _0x5b604a{['refresh'](){const _0x5eb916=this['editor']['model']['document'][_0x55d8('0xc')];for(const _0x365083 of _0x5eb916['getRanges']())if(this[_0x55d8('0x1')](_0x365083))return void(this[_0x55d8('0xe')]=!0x0);this['isEnabled']=!0x1;}[_0x55d8('0xa')]({threadId:_0x315ee2=_0x3274b8()}={}){const _0x359991=this['editor'][_0x55d8('0xd')],_0x280d78=[];for(const _0x184d71 of _0x359991[_0x55d8('0x4')]['selection'][_0x55d8('0xb')]())this['_hasContent'](_0x184d71)&&_0x280d78[_0x55d8('0x5')](this[_0x55d8('0x2')](_0x184d71));_0x359991[_0x55d8('0x0')](_0x8ae8bc=>{for(const _0x1d98b4 of _0x280d78){const _0x199d3e=_0x3274b8()[_0x55d8('0x9')](0x1,0x5),_0x3ce2f=_0x55d8('0x7')+_0x315ee2+':'+_0x199d3e;_0x8ae8bc[_0x55d8('0x10')](_0x3ce2f,{'range':_0x1d98b4,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x165d69){for(const _0x39c302 of _0x165d69['getItems']())if(this[_0x55d8('0xf')](_0x39c302))return!0x0;return!0x1;}[_0x55d8('0xf')](_0x2fcbe4){return _0x2fcbe4['is']('$textProxy')||this[_0x55d8('0x6')]['model']['schema']['isObject'](_0x2fcbe4)&&!_0x2fcbe4['is'](_0x55d8('0x3'),_0x55d8('0x12'));}[_0x55d8('0x2')](_0x195ad0){const _0x46f706=_0x5647e3=>!this[_0x55d8('0xf')](_0x5647e3['item']),_0x38e28b=_0x195ad0['start']['getLastMatchingPosition'](_0x46f706),_0x5c1a2a=_0x195ad0[_0x55d8('0x11')]['getLastMatchingPosition'](_0x46f706,{'direction':_0x55d8('0x8')});return this[_0x55d8('0x6')][_0x55d8('0xd')]['createRange'](_0x38e28b,_0x5c1a2a);}}
|
|
@@ -11,10 +11,10 @@ import { Collection } from 'ckeditor5/src/utils';
|
|
|
11
11
|
import CommentsRepository, { type CommentThread } from './commentsrepository';
|
|
12
12
|
import Annotations from '../annotations/annotations';
|
|
13
13
|
/**
|
|
14
|
-
* This plugin handles all operations on
|
|
14
|
+
* This plugin handles all operations on archived threads needed for the comments archive.
|
|
15
15
|
*/
|
|
16
16
|
export default class CommentsArchive extends ContextPlugin {
|
|
17
|
-
|
|
17
|
+
archivedThreads: Collection<CommentThread>;
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42e6=['add','addCommentThread','isActive','findIndex','stopListening','remove','requires','getCommentThread','has','archivedAt','length','CommentsArchive','context','pluginName','archivedThreads','highest','change:archivedAt','init','listenTo','plugins','_calculatePosition','collection','activate'];(function(_0x5e7572,_0x42e6ff){const _0x3b1c85=function(_0x247b23){while(--_0x247b23){_0x5e7572['push'](_0x5e7572['shift']());}};_0x3b1c85(++_0x42e6ff);}(_0x42e6,0x1f1));const _0x3b1c=function(_0x5e7572,_0x42e6ff){_0x5e7572=_0x5e7572-0x0;let _0x3b1c85=_0x42e6[_0x5e7572];return _0x3b1c85;};import{ContextPlugin as _0x40eb32}from'ckeditor5/src/core';import{Collection as _0x80fa6}from'ckeditor5/src/utils';import _0x445a7c from'./commentsrepository';import _0x32fde3 from'../annotations/annotations';export default class p extends _0x40eb32{static get[_0x3b1c('0x16')](){return _0x3b1c('0x14');}static get[_0x3b1c('0xf')](){return[_0x445a7c,_0x32fde3];}constructor(_0x4fa508){super(_0x4fa508),this[_0x3b1c('0x0')]=new _0x80fa6();}[_0x3b1c('0x3')](){const _0x192b0b=this[_0x3b1c('0x15')],_0x45c017=_0x192b0b[_0x3b1c('0x5')]['get'](_0x445a7c),_0x3d29de=_0x192b0b['plugins']['get'](_0x32fde3);this[_0x3b1c('0x4')](_0x45c017,_0x3b1c('0xa'),(_0x51fe00,{threadId:_0x834d6f})=>{const _0x83bd3f=_0x45c017['getCommentThread'](_0x834d6f);_0x83bd3f[_0x3b1c('0x12')]&&this[_0x3b1c('0x0')][_0x3b1c('0x9')](_0x83bd3f,this[_0x3b1c('0x6')](_0x83bd3f[_0x3b1c('0x12')])),this[_0x3b1c('0x4')](_0x83bd3f,_0x3b1c('0x2'),(_0x1cd244,_0x5227ff,_0x3ae91d)=>{_0x3ae91d?this[_0x3b1c('0x0')]['has'](_0x83bd3f)||this[_0x3b1c('0x0')][_0x3b1c('0x9')](_0x83bd3f,this['_calculatePosition'](_0x83bd3f[_0x3b1c('0x12')])):this['archivedThreads']['has'](_0x83bd3f)&&this[_0x3b1c('0x0')][_0x3b1c('0xe')](_0x83bd3f);});}),this[_0x3b1c('0x4')](_0x45c017,'removeCommentThread',(_0x2d1094,{threadId:_0x7c858e})=>{const _0x7cf5c=_0x45c017[_0x3b1c('0x10')](_0x7c858e);this[_0x3b1c('0xd')](_0x7cf5c),this[_0x3b1c('0x0')][_0x3b1c('0x11')](_0x7cf5c)&&this[_0x3b1c('0x0')][_0x3b1c('0xe')](_0x7cf5c);},{'priority':_0x3b1c('0x1')}),this['listenTo'](_0x3d29de[_0x3b1c('0x7')],'focus',(_0x1c64b6,_0x4e7452)=>{_0x4e7452[_0x3b1c('0xb')]=!0x0,_0x3d29de[_0x3b1c('0x8')](_0x4e7452);});}['_calculatePosition'](_0x45747b){const _0x2ef519=[...this[_0x3b1c('0x0')]][_0x3b1c('0xc')](_0x14aadb=>_0x14aadb[_0x3b1c('0x12')]<_0x45747b);return _0x2ef519>-0x1?_0x2ef519:this[_0x3b1c('0x0')][_0x3b1c('0x13')];}}
|
|
@@ -14,7 +14,7 @@ import CommentsArchive from './commentsarchive';
|
|
|
14
14
|
import type AnnotationView from '../annotations/view/annotationview';
|
|
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.
|
|
18
18
|
*/
|
|
19
19
|
export default class CommentsArchiveUI extends Plugin {
|
|
20
20
|
commentsArchiveView: CommentsArchiveView | undefined;
|