@ckeditor/ckeditor5-comments 38.0.1 → 38.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/build/comments.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -0
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +111 -0
- package/package.json +10 -8
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +4 -3
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +4 -3
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +6 -4
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +6 -5
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +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.d.ts +6 -5
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +6 -4
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +6 -4
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +7 -3
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +9 -5
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +7 -3
- 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.d.ts +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +12 -3
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +4 -3
- package/src/commentsonly.js +1 -1
- package/src/index.d.ts +3 -1
- package/src/index.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6945=['listenTo','attach','init','annotations','keystrokes','detach','stopListening','_addedAnnotations','get','inlineannotations-attach-already-attached','domConverter','inlineannotations-not-allowed-with-context','_setSelectedAnnotations','isActive','isAttached','_selectedAnnotations','push','length','_forceRefresh','change:isFocused','getByView','view','change:visibleView','includes','hasView','targetRect','activeAnnotation','updatePosition','addObserver','fromRect','update','visibleView','register','_closeAnnotation','has','focus','right','switchTo','map','_addAnnotationToBalloon','editing','isFocused','width','set','requires','top','blur','_removeAnnotationFromBalloon','document','plugins','editableElement','_getBalloonTargetForAnnotation','hasActive','focusTracker','setActiveAnnotation','delete','bottom','target','left','context','from','editor','selection','find','clear','mousedown','change:height','collapse','InlineAnnotations','_manuallyClosed','_balloon','showStack','remove','getOrderedSelectedAnnotations','getFirstRange','getClientRects'];(function(_0x289491,_0x694508){const _0xf4d811=function(_0x1b43c3){while(--_0x1b43c3){_0x289491['push'](_0x289491['shift']());}};_0xf4d811(++_0x694508);}(_0x6945,0x10e));const _0xf4d8=function(_0x289491,_0x694508){_0x289491=_0x289491-0x0;let _0xf4d811=_0x6945[_0x289491];return _0xf4d811;};import{Plugin as _0x41a291}from'ckeditor5/src/core';import _0x4c08a8 from'./annotationsuis';import _0x5de9fa from'./editorannotations';import{ContextualBalloon as _0x4e5a9f}from'ckeditor5/src/ui';import{MouseObserver as _0x494030}from'ckeditor5/src/engine';import{CKEditorError as _0x4ca28e,Rect as _0xde2100}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x41a291{static get[_0xf4d8('0x2')](){return[_0x5de9fa,_0x4e5a9f,_0x4c08a8];}static get['pluginName'](){return _0xf4d8('0x1a');}constructor(_0x106424){super(_0x106424),_0x106424[_0xf4d8('0x4a')][_0xf4d8('0x37')][_0xf4d8('0x3e')](_0x494030),this[_0xf4d8('0x30')]=!0x1,this[_0xf4d8('0x1')](_0xf4d8('0x3c'),null),this[_0xf4d8('0x25')]=null,this[_0xf4d8('0x1b')]=new Set(),this['_balloon']=_0x106424[_0xf4d8('0x7')][_0xf4d8('0x2a')](_0x4e5a9f),this[_0xf4d8('0x29')]=new Set(),this['_selectedAnnotations']=[],this[_0xf4d8('0x34')]=!0x1;}[_0xf4d8('0x24')](){const _0x31667f=this[_0xf4d8('0x13')][_0xf4d8('0x7')][_0xf4d8('0x2a')](_0x4c08a8);_0x31667f[_0xf4d8('0x11')]===this[_0xf4d8('0x13')]&&(_0x31667f[_0xf4d8('0x42')]('inline',this),this[_0xf4d8('0x13')][_0xf4d8('0x26')][_0xf4d8('0x1')]('Esc',(_0x351736,_0x3c751f)=>{const _0x9f0631=this[_0xf4d8('0x1c')];if(this[_0xf4d8('0x30')]&&_0x9f0631['visibleView']){const _0x1ce3c2=this[_0xf4d8('0x25')]['getByView'](_0x9f0631[_0xf4d8('0x41')]);_0x1ce3c2&&this[_0xf4d8('0x43')](_0x1ce3c2),_0x3c751f();}}));}['afterInit'](){const _0x2b1e93=this[_0xf4d8('0x13')][_0xf4d8('0x7')]['get'](_0x4c08a8);_0x2b1e93[_0xf4d8('0x11')]===this[_0xf4d8('0x13')]&&(_0x2b1e93[_0xf4d8('0xa')]()||_0x2b1e93[_0xf4d8('0x47')]('inline'));}[_0xf4d8('0xc')](_0x492347){_0x492347!==this[_0xf4d8('0x3c')]&&(this[_0xf4d8('0x3c')]&&(this[_0xf4d8('0x3c')]['isActive']=!0x1),_0x492347&&this[_0xf4d8('0x13')]['ui'][_0xf4d8('0xb')][_0xf4d8('0x4b')]&&(this['annotations'][_0xf4d8('0x44')](_0x492347)&&this['_addAnnotationToBalloon'](_0x492347,!0x0),_0x492347[_0xf4d8('0x2f')]=!0x0),_0x492347||this[_0xf4d8('0x2e')]([]),this['activeAnnotation']=_0x492347);}[_0xf4d8('0x23')](_0x256190){this[_0xf4d8('0x25')]=_0x256190;const _0x242883=this[_0xf4d8('0x13')][_0xf4d8('0x7')]['get'](_0x4c08a8),_0x16af13=this[_0xf4d8('0x1c')];if(this['isAttached'])throw new _0x4ca28e(_0xf4d8('0x2b'),this);if(_0x242883['context']!==this['editor'])throw new _0x4ca28e(_0xf4d8('0x2d'),this);const _0x29164f=this['editor']['plugins'][_0xf4d8('0x2a')](_0x5de9fa);this[_0xf4d8('0x22')](_0x29164f,'refresh',()=>{const _0x4a5512=_0x29164f[_0xf4d8('0x1f')]({'annotations':this[_0xf4d8('0x25')],'activeAnnotation':this[_0xf4d8('0x3c')]});var _0x32c96f,_0x16e284;!this[_0xf4d8('0x34')]&&(_0x32c96f=_0x4a5512,_0x16e284=this[_0xf4d8('0x31')],_0x32c96f[_0xf4d8('0x33')]===_0x16e284[_0xf4d8('0x33')]&&_0x32c96f['every'](_0x5104c2=>_0x16e284[_0xf4d8('0x39')](_0x5104c2)))||(this[_0xf4d8('0x34')]=!0x1,this[_0xf4d8('0x2e')](_0x4a5512),this[_0xf4d8('0xc')](_0x4a5512[0x0]||null));}),this[_0xf4d8('0x22')](_0x29164f,_0xf4d8('0x4'),(_0x1b9bae,{isAnnotationTracked:_0x2d8eac})=>{this[_0xf4d8('0x3c')]&&_0x2d8eac(this[_0xf4d8('0x3c')])&&(this['_setSelectedAnnotations']([]),this[_0xf4d8('0xc')](null));}),this[_0xf4d8('0x22')](this[_0xf4d8('0x13')]['ui'][_0xf4d8('0xb')],_0xf4d8('0x35'),(_0x4f60d7,_0x501647,_0x5b8129)=>{_0x5b8129||this[_0xf4d8('0xc')](null);}),this['listenTo'](_0x256190,'remove',(_0x12fed7,_0x35b4b8)=>{this['_removeAnnotationFromBalloon'](_0x35b4b8),_0x35b4b8===this[_0xf4d8('0x3c')]&&this[_0xf4d8('0xc')](null);}),this['listenTo'](_0x16af13,_0xf4d8('0x38'),(_0x858980,_0x35ec85,_0x815065,_0x381aba)=>{_0x381aba&&this['stopListening'](_0x381aba);const _0x1a9185=_0x256190['getByView'](_0x815065);_0x815065&&_0x1a9185&&(this[_0xf4d8('0x22')](_0x815065,_0xf4d8('0x18'),()=>{_0x16af13['updatePosition']();}),this[_0xf4d8('0x22')](_0x815065,'Esc',()=>{this[_0xf4d8('0x43')](_0x1a9185),this['editor'][_0xf4d8('0x4a')][_0xf4d8('0x37')][_0xf4d8('0x45')]();}),this[_0xf4d8('0x3c')]!==_0x1a9185&&this[_0xf4d8('0xc')](_0x1a9185));}),this[_0xf4d8('0x22')](this[_0xf4d8('0x13')]['ui'],_0xf4d8('0x40'),()=>{_0x16af13['visibleView']&&(_0x256190[_0xf4d8('0x36')](_0x16af13[_0xf4d8('0x41')])&&_0x16af13[_0xf4d8('0x3d')]());}),this['listenTo'](this[_0xf4d8('0x13')][_0xf4d8('0x4a')][_0xf4d8('0x37')][_0xf4d8('0x6')],_0xf4d8('0x17'),()=>{this['_forceRefresh']=!0x0,this[_0xf4d8('0x1b')][_0xf4d8('0x16')]();}),this['editor']['editing'][_0xf4d8('0x37')][_0xf4d8('0x6')][_0xf4d8('0x14')][_0xf4d8('0x8')]&&this[_0xf4d8('0x13')]['editing'][_0xf4d8('0x37')][_0xf4d8('0x45')](),this[_0xf4d8('0x30')]=!0x0;}[_0xf4d8('0x27')](){if(!this[_0xf4d8('0x30')])throw new _0x4ca28e('inlineannotations-detach-not-attached',this);this[_0xf4d8('0xc')](null);for(const _0x47cf47 of this[_0xf4d8('0x29')])this[_0xf4d8('0x5')](_0x47cf47);this[_0xf4d8('0x28')](),this[_0xf4d8('0x30')]=!0x1,this[_0xf4d8('0x25')]=null;}['destroy'](){this[_0xf4d8('0x30')]&&this[_0xf4d8('0x27')]();}[_0xf4d8('0x2e')](_0x411f00){for(const _0x199564 of this['_selectedAnnotations'])_0x411f00['includes'](_0x199564)||this[_0xf4d8('0x1b')]['delete'](_0x199564);for(const _0x3de0d0 of this[_0xf4d8('0x25')])_0x411f00[_0xf4d8('0x39')](_0x3de0d0)||this[_0xf4d8('0x5')](_0x3de0d0);if(this[_0xf4d8('0x13')]['ui']['focusTracker'][_0xf4d8('0x4b')])for(const _0x426352 of _0x411f00)this[_0xf4d8('0x49')](_0x426352);this[_0xf4d8('0x31')]=_0x411f00;}['_addAnnotationToBalloon'](_0x3b0553,_0x3427a2=!0x1){this['_manuallyClosed'][_0xf4d8('0x44')](_0x3b0553)||(this[_0xf4d8('0x29')][_0xf4d8('0x44')](_0x3b0553)||this[_0xf4d8('0x1c')]['hasView'](_0x3b0553['view'])||(this[_0xf4d8('0x29')]['add'](_0x3b0553),this[_0xf4d8('0x1c')]['add']({'stackId':_0x3b0553[_0xf4d8('0x37')]['id'],'view':_0x3b0553[_0xf4d8('0x37')],'position':{'target':()=>this[_0xf4d8('0x9')](_0x3b0553)}})),_0x3427a2&&this[_0xf4d8('0x1c')][_0xf4d8('0x1d')](_0x3b0553[_0xf4d8('0x37')]['id']));}[_0xf4d8('0x9')](_0x1af791){const _0x2c7a17=_0x1af791[_0xf4d8('0xf')],_0x43a2d4=this['editor'][_0xf4d8('0x4a')][_0xf4d8('0x37')],_0x5932ff=_0x43a2d4[_0xf4d8('0x6')][_0xf4d8('0x14')][_0xf4d8('0x20')](),_0xde21bb=_0x43a2d4[_0xf4d8('0x2c')]['viewRangeToDom'](_0x5932ff);if(_0xde21bb[_0xf4d8('0x19')](!0x0),_0x2c7a17){if(_0x2c7a17 instanceof _0xde2100)return _0x2c7a17;let _0x6a3f9a=[];for(const _0x23d3d2 of _0x2c7a17)_0x6a3f9a[_0xf4d8('0x32')](...(_0xbc1230=_0x23d3d2[_0xf4d8('0x21')](),Array[_0xf4d8('0x12')](_0xbc1230)[_0xf4d8('0x48')](DOMRect[_0xf4d8('0x3f')])));_0x6a3f9a=function(_0x14f62a){const _0x5c9060=[];let _0x1bc178=_0x14f62a[0x0];for(let _0x2f7017=0x1;_0x2f7017<_0x14f62a[_0xf4d8('0x33')];_0x2f7017++)F(_0x1bc178,_0x14f62a[_0x2f7017])?_0x1bc178['width']+=_0x14f62a[_0x2f7017][_0xf4d8('0x0')]:(_0x5c9060[_0xf4d8('0x32')](_0x1bc178),_0x1bc178=_0x14f62a[_0x2f7017]);return _0x5c9060[_0xf4d8('0x32')](_0x1bc178),_0x5c9060;}(_0x6a3f9a);const _0xacacb3=_0xde21bb['getBoundingClientRect']();return _0x6a3f9a[_0xf4d8('0x15')](_0x34d007=>_0x34d007[_0xf4d8('0x3')]<=_0xacacb3[_0xf4d8('0x3')]&&_0x34d007[_0xf4d8('0xe')]>=_0xacacb3['bottom']&&_0x34d007[_0xf4d8('0x10')]<=_0xacacb3[_0xf4d8('0x10')]&&_0x34d007['right']>=_0xacacb3['right'])||_0x6a3f9a[0x0];}var _0xbc1230;return _0x1af791[_0xf4d8('0x3b')]||_0xde21bb;}[_0xf4d8('0x5')](_0x58036c){this[_0xf4d8('0x29')][_0xf4d8('0x44')](_0x58036c)&&this[_0xf4d8('0x1c')][_0xf4d8('0x3a')](_0x58036c[_0xf4d8('0x37')])&&(this[_0xf4d8('0x29')][_0xf4d8('0xd')](_0x58036c),this[_0xf4d8('0x1c')][_0xf4d8('0x1e')](_0x58036c[_0xf4d8('0x37')]));}[_0xf4d8('0x43')](_0x570093){this[_0xf4d8('0x1b')]['add'](_0x570093),this[_0xf4d8('0x5')](_0x570093);}}function F(_0x465812,_0xbe5da5){return _0x465812[_0xf4d8('0x3')]===_0xbe5da5[_0xf4d8('0x3')]&&_0x465812[_0xf4d8('0xe')]===_0xbe5da5[_0xf4d8('0xe')]&&_0x465812[_0xf4d8('0x46')]===_0xbe5da5[_0xf4d8('0x10')];}
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
* @module comments/annotations/narrowsidebar
|
|
3
3
|
* @publicApi
|
|
4
4
|
*/
|
|
5
|
-
import { ContextPlugin, Context, type
|
|
6
|
-
import { type AnnotationsUI } from './annotationsuis';
|
|
5
|
+
import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core';
|
|
6
|
+
import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
|
|
7
|
+
import Sidebar from './sidebar';
|
|
7
8
|
import { BalloonPanelView, BodyCollection } from 'ckeditor5/src/ui';
|
|
8
9
|
import '../../theme/sidebar-narrow.css';
|
|
9
10
|
import type Annotation from './annotation';
|
|
10
|
-
import type AnnotationCollection from './annotationcollection';
|
|
11
|
+
import type { default as AnnotationCollection } from './annotationcollection';
|
|
11
12
|
/**
|
|
12
13
|
* The narrow sidebar UI for displaying annotations.
|
|
13
14
|
*
|
|
@@ -48,11 +49,11 @@ export default class NarrowSidebar extends ContextPlugin implements AnnotationsU
|
|
|
48
49
|
/**
|
|
49
50
|
* @inheritDoc
|
|
50
51
|
*/
|
|
51
|
-
static get requires():
|
|
52
|
+
static get requires(): readonly [typeof Sidebar, typeof AnnotationsUIs];
|
|
52
53
|
/**
|
|
53
54
|
* @inheritDoc
|
|
54
55
|
*/
|
|
55
|
-
static get pluginName():
|
|
56
|
+
static get pluginName(): "NarrowSidebar";
|
|
56
57
|
/**
|
|
57
58
|
* @inheritDoc
|
|
58
59
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1c1c=['keydown','setActiveAnnotation','removeEventListener','destroy','rearrange','detach','_attachListeners','_showBalloon','change:container','add','stopPropagation','mousedown','context','narrowsidebar-attach-already-attached','esc','_annotationToNarrowView','northArrowSouthWest','_refreshPositioningDebounced','_detachListeners','bind','editors','northArrowSouthEast','southArrowNorthWest','refreshPositioning','getByView','remove','balloonPanelView','get','_attachToContainer','ck-sidebar--narrow','blur','view','detachFromDom','_updateBalloonPosition','element','_detachFromContainer','attachToDom','number','cancel','preventClosingBalloon','low','change:height','bodyCollection','NarrowSidebar','attach','annotations','init','contains','Esc','listenTo','stop','_hideBalloon','stopListening','_editorAnnotations','focus','includes','hasDomSelection','_setSelectedAnnotations','_selectedAnnotations','set:container','set','off','annotationType','content','isVisible','isDirty','addAnnotation','pin','defaultPositions','first','_destroyEditorAnnotationsIntegration','clear','delete','_refreshPositioning','resize','register','plugins','_domEmitter','isAttached','EditorAnnotations','southArrowNorth','has','_manuallyClosedAnnotationViews','from','requires','locale','getSidebarItemView','unpin','high','activeAnnotation','_integrateWithEditorAnnotations','addEventListener','uiUpdate'];(function(_0x2b57f2,_0x1c1c28){const _0x3c2cad=function(_0x3cc801){while(--_0x3cc801){_0x2b57f2['push'](_0x2b57f2['shift']());}};_0x3c2cad(++_0x1c1c28);}(_0x1c1c,0x11a));const _0x3c2c=function(_0x2b57f2,_0x1c1c28){_0x2b57f2=_0x2b57f2-0x0;let _0x3c2cad=_0x1c1c[_0x2b57f2];return _0x3c2cad;};import{ContextPlugin as _0x39b33d,Context as _0x482755}from'ckeditor5/src/core';import _0x5d97c4 from'./annotationsuis';import _0x41b3c8 from'./sidebar';import _0x3801c2 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2a46fc,BodyCollection as _0x451829}from'ckeditor5/src/ui';import{CKEditorError as _0x4759ee,DomEmitterMixin as _0x4aecff,keyCodes as _0x490116,Collection as _0xa5b00}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x14f141}from'lodash-es';import _0x5dabdb from'./editorannotations';export default class s extends _0x39b33d{static get[_0x3c2c('0x51')](){return[_0x41b3c8,_0x5d97c4];}static get['pluginName'](){return _0x3c2c('0x28');}constructor(_0x25afff){super(_0x25afff),this[_0x3c2c('0x4b')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x3c2c('0x4a')]=Object['create'](_0x4aecff),this[_0x3c2c('0xc')]=new Map(),this[_0x3c2c('0x39')]('activeAnnotation',null),this[_0x3c2c('0x2a')]=null,this[_0x3c2c('0x37')]=[],this[_0x3c2c('0x32')]=new _0xa5b00(),this[_0x3c2c('0xe')]=_0x14f141(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x3c2c('0x2b')](){this[_0x3c2c('0x9')][_0x3c2c('0x49')]['get'](_0x5d97c4)[_0x3c2c('0x48')]('narrowSidebar',this),this['bodyCollection']=new _0x451829(this[_0x3c2c('0x9')]['locale']),this[_0x3c2c('0x17')]=new _0x2a46fc(this['context'][_0x3c2c('0x52')]),this[_0x3c2c('0x27')][_0x3c2c('0x21')](),this[_0x3c2c('0x27')]['add'](this[_0x3c2c('0x17')]);}[_0x3c2c('0x29')](_0x3a0855){this[_0x3c2c('0x2a')]=_0x3a0855;const _0x2125d9=this[_0x3c2c('0x9')][_0x3c2c('0x49')][_0x3c2c('0x18')](_0x41b3c8),_0x27da25=this['balloonPanelView'];if(_0x2125d9['_annotations']=_0x3a0855,this[_0x3c2c('0x4b')])throw new _0x4759ee(_0x3c2c('0xa'),this);this[_0x3c2c('0x4b')]=!0x0,this[_0x3c2c('0x2e')](_0x2125d9,_0x3c2c('0x38'),()=>{this[_0x3c2c('0x2')](),this[_0x3c2c('0x2e')](_0x2125d9,_0x3c2c('0x5'),_0xdb40e3=>{_0xdb40e3[_0x3c2c('0x3a')](),this[_0x3c2c('0x29')](_0x3a0855);});}),_0x2125d9[_0x3c2c('0x19')]({'viewClass':_0x3c2c('0x1a'),'spaceBetweenItems':0x5});const _0x2b8637=_0x1a110e=>{const _0xca69ce=new _0x3801c2(this[_0x3c2c('0x9')][_0x3c2c('0x52')]);_0x2125d9[_0x3c2c('0x3f')](_0x1a110e,_0xca69ce),this[_0x3c2c('0xc')][_0x3c2c('0x39')](_0x1a110e,_0xca69ce),_0xca69ce[_0x3c2c('0x10')](_0x3c2c('0x3e'),_0x3c2c('0x3b'),_0x3c2c('0x22'))['to'](_0x1a110e[_0x3c2c('0x1c')],'isDirty','type','length'),_0xca69ce['on']('execute',()=>{this['_manuallyClosedAnnotationViews'][_0x3c2c('0x44')](),_0x27da25[_0x3c2c('0x3c')][_0x3c2c('0x42')]!==_0x1a110e[_0x3c2c('0x1c')]?(this[_0x3c2c('0x4')](_0x1a110e),_0x1a110e[_0x3c2c('0x1c')][_0x3c2c('0x1f')][_0x3c2c('0x33')](),this[_0x3c2c('0x5b')](_0x1a110e)):this[_0x3c2c('0x5b')](null);});};for(const _0x4de74e of _0x3a0855)_0x2b8637(_0x4de74e);this[_0x3c2c('0x2e')](_0x3a0855,_0x3c2c('0x6'),(_0xfce367,_0x4a07f0)=>{_0x2b8637(_0x4a07f0);}),this[_0x3c2c('0x2e')](_0x3a0855,'remove',(_0x23fa20,_0x52a221,_0x4cd56d)=>{this[_0x3c2c('0xc')][_0x3c2c('0x18')](_0x52a221)[_0x3c2c('0x0')](),this['_annotationToNarrowView'][_0x3c2c('0x45')](_0x52a221),_0x2125d9[_0x3c2c('0x1')]({'removedAnnotation':_0x52a221,'previousAnnotation':_0x3a0855['get'](_0x4cd56d-0x1),'nextAnnotation':_0x3a0855[_0x3c2c('0x18')](_0x4cd56d+0x1)}),_0x52a221===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':_0x3c2c('0x25')}),this['listenTo'](_0x3a0855,_0x3c2c('0x33'),(_0x177a03,_0x27ce04)=>{this[_0x3c2c('0x5b')](_0x27ce04);}),this[_0x3c2c('0x2e')](_0x3a0855,'blur',()=>{this[_0x3c2c('0x5b')](null);}),this[_0x3c2c('0x4a')]['listenTo'](document,_0x3c2c('0x5a'),(_0x299e87,_0x372ae9)=>{_0x372ae9['keyCode']===_0x490116[_0x3c2c('0xb')]&&_0x27da25['isVisible']&&(this[_0x3c2c('0x4f')]['add'](_0x27da25[_0x3c2c('0x3c')][_0x3c2c('0x42')]),this['_hideBalloon'](),_0x372ae9[_0x3c2c('0x7')](),_0x372ae9['preventDefault']());}),this[_0x3c2c('0x4a')][_0x3c2c('0x2e')](document,_0x3c2c('0x8'),(_0xc9637d,_0x3aa78b)=>{const _0x575c01=_0x3aa78b['target'];_0x27da25[_0x3c2c('0x3d')]&&_0x27da25[_0x3c2c('0x1f')][_0x3c2c('0x2c')](_0x575c01)||_0x2125d9[_0x3c2c('0x1c')][_0x3c2c('0x1f')][_0x3c2c('0x2c')](_0x575c01)||_0xc9637d['preventClosingBalloon']||(this[_0x3c2c('0x4f')][_0x3c2c('0x44')](),this[_0x3c2c('0x30')](),this[_0x3c2c('0x5b')](null));});const _0xa911f9=this[_0x3c2c('0x9')]instanceof _0x482755?this[_0x3c2c('0x9')][_0x3c2c('0x11')]:new _0xa5b00([this[_0x3c2c('0x9')]]);for(const _0x59641c of _0xa911f9)this[_0x3c2c('0x57')](_0x59641c);this[_0x3c2c('0x2e')](_0xa911f9,_0x3c2c('0x6'),(_0x1411b0,_0x483404)=>{this[_0x3c2c('0x2e')](_0x483404,'ready',()=>{this[_0x3c2c('0x57')](_0x483404);});}),this[_0x3c2c('0x2e')](_0xa911f9,_0x3c2c('0x16'),(_0x574e1e,_0x557180)=>{_0x557180[_0x3c2c('0x49')][_0x3c2c('0x4e')]('EditorAnnotations')&&this[_0x3c2c('0x43')](_0x557180[_0x3c2c('0x49')][_0x3c2c('0x18')](_0x3c2c('0x4c')));}),window[_0x3c2c('0x58')](_0x3c2c('0x47'),this[_0x3c2c('0xe')]),this[_0x3c2c('0x46')]();}['setActiveAnnotation'](_0x5f1fa4){if(_0x5f1fa4===this['activeAnnotation'])return;const _0x1827f7=this['context'][_0x3c2c('0x49')][_0x3c2c('0x18')](_0x41b3c8);if(_0x1827f7['refresh']({'blurredAnnotation':this[_0x3c2c('0x56')],'activatedAnnotation':_0x5f1fa4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5f1fa4)_0x1827f7[_0x3c2c('0x53')](_0x5f1fa4)?this[_0x3c2c('0x4')](_0x5f1fa4):this[_0x3c2c('0x30')]();else this['_hideBalloon']();this[_0x3c2c('0x56')]=_0x5f1fa4;}[_0x3c2c('0x2')](){if(!this[_0x3c2c('0x4b')])throw new _0x4759ee('narrowsidebar-detach-not-attached',this);this[_0x3c2c('0x5b')](null);const _0x1cd1f6=this[_0x3c2c('0x9')][_0x3c2c('0x49')][_0x3c2c('0x18')](_0x41b3c8);this['_hideBalloon'](),Array['from'](this[_0x3c2c('0xc')]['values'](),_0x4802f9=>_0x4802f9['destroy']()),this[_0x3c2c('0xc')][_0x3c2c('0x44')](),_0x1cd1f6[_0x3c2c('0x20')](this[_0x3c2c('0x2a')]),this[_0x3c2c('0x31')](),this[_0x3c2c('0x4a')][_0x3c2c('0x31')](),this[_0x3c2c('0x9')]instanceof _0x482755&&this[_0x3c2c('0x31')](this[_0x3c2c('0x9')][_0x3c2c('0x11')]);for(const _0x1d9a97 of Array[_0x3c2c('0x50')](this['_editorAnnotations']))this[_0x3c2c('0x43')](_0x1d9a97);window[_0x3c2c('0x5c')](_0x3c2c('0x47'),this[_0x3c2c('0xe')]),this[_0x3c2c('0xe')][_0x3c2c('0x23')](),this[_0x3c2c('0x37')]=[],this[_0x3c2c('0x4b')]=!0x1,this[_0x3c2c('0x2a')]=null;}[_0x3c2c('0x0')](){this[_0x3c2c('0x4b')]&&this[_0x3c2c('0x2')](),this[_0x3c2c('0x27')][_0x3c2c('0x1d')]();}['_integrateWithEditorAnnotations'](_0x78a930){const _0x3e20c0=_0x78a930[_0x3c2c('0x49')][_0x3c2c('0x18')](_0x5dabdb),_0x53aee6=this['context'][_0x3c2c('0x49')]['get'](_0x41b3c8),_0x22511a=this[_0x3c2c('0x2a')],_0x1ae84a=this['balloonPanelView'],_0x425783=()=>{const _0x50354a=_0x3e20c0['getOrderedSelectedAnnotations']({'annotations':this[_0x3c2c('0x2a')],'activeAnnotation':this[_0x3c2c('0x56')]});this[_0x3c2c('0x36')](_0x50354a),this[_0x3c2c('0x5b')](_0x50354a[0x0]||null);};this['listenTo'](_0x3e20c0,'refresh',_0x425783),this['listenTo'](_0x3e20c0,'blur',(_0x511d56,{isAnnotationTracked:_0x3e8ef2})=>{this[_0x3c2c('0x56')]&&_0x3e8ef2(this[_0x3c2c('0x56')])&&(this['_setSelectedAnnotations']([]),this[_0x3c2c('0x5b')](null));}),this['listenTo'](_0x3e20c0,_0x3c2c('0x59'),()=>{this[_0x3c2c('0xe')]();}),this[_0x3c2c('0x2e')](_0x22511a,_0x3c2c('0x1b'),_0x17e3d6=>{_0x3e20c0['hasDomSelection']()&&_0x17e3d6[_0x3c2c('0x2f')]();},{'priority':_0x3c2c('0x55')}),this[_0x3c2c('0x2e')](this[_0x3c2c('0x4a')],_0x3c2c('0x8'),(_0x14055a,_0x250bed)=>{const _0x3acb71=_0x250bed['target'];_0x1ae84a[_0x3c2c('0x3d')]&&_0x1ae84a[_0x3c2c('0x1f')][_0x3c2c('0x2c')](_0x3acb71)||_0x53aee6[_0x3c2c('0x1c')][_0x3c2c('0x1f')][_0x3c2c('0x2c')](_0x3acb71)||this['activeAnnotation']&&_0x3e20c0[_0x3c2c('0x35')]()&&(_0x425783(),_0x14055a[_0x3c2c('0x24')]=!0x0);},{'priority':_0x3c2c('0x55')}),this[_0x3c2c('0x32')]['add'](_0x3e20c0);}[_0x3c2c('0x43')](_0x3c226d){_0x3c226d&&(this[_0x3c2c('0x31')](_0x3c226d),this['_editorAnnotations'][_0x3c2c('0x16')](_0x3c226d));}[_0x3c2c('0x36')](_0x348ff8){for(const _0x25f0d1 of this[_0x3c2c('0x37')])_0x348ff8[_0x3c2c('0x34')](_0x25f0d1)||this['_manuallyClosedAnnotationViews'][_0x3c2c('0x45')](_0x25f0d1[_0x3c2c('0x1c')]);this[_0x3c2c('0x37')]=_0x348ff8;}['_refreshPositioning'](){const _0x45f2f6=this[_0x3c2c('0x17')];this[_0x3c2c('0x2a')][_0x3c2c('0x14')](),_0x45f2f6[_0x3c2c('0x3d')]&&this['_updateBalloonPosition']();}[_0x3c2c('0x4')](_0x500efd){if(this[_0x3c2c('0x4f')]['has'](_0x500efd['view']))return;const _0x12b896=this[_0x3c2c('0x17')][_0x3c2c('0x3c')][_0x3c2c('0x42')];_0x12b896!==_0x500efd[_0x3c2c('0x1c')]?(_0x12b896&&this[_0x3c2c('0xf')](_0x12b896),this[_0x3c2c('0x3')](_0x500efd[_0x3c2c('0x1c')]),this[_0x3c2c('0x17')]['content'][_0x3c2c('0x44')](),this['balloonPanelView'][_0x3c2c('0x3c')][_0x3c2c('0x6')](_0x500efd[_0x3c2c('0x1c')]),this[_0x3c2c('0x1e')]()):this[_0x3c2c('0x1e')]();}[_0x3c2c('0x1e')](){const _0x37ab37=this[_0x3c2c('0x17')][_0x3c2c('0x3c')][_0x3c2c('0x42')],_0x3d8535=_0x37ab37&&this['annotations'][_0x3c2c('0x15')](_0x37ab37);if(!_0x3d8535||!this[_0x3c2c('0xc')]['has'](_0x3d8535))return;const _0x1ddc15=this[_0x3c2c('0xc')][_0x3c2c('0x18')](_0x3d8535)[_0x3c2c('0x1f')],_0x54340b=function(){const _0x44d0e6=_0x2a46fc[_0x3c2c('0x41')];return[_0x44d0e6['southArrowNorthEast'],_0x44d0e6[_0x3c2c('0x12')],_0x44d0e6[_0x3c2c('0x4d')],_0x44d0e6['northArrowSouth'],_0x44d0e6[_0x3c2c('0x13')],_0x44d0e6[_0x3c2c('0xd')]];}();this[_0x3c2c('0x17')][_0x3c2c('0x40')]({'target':_0x1ddc15,'positions':_0x54340b});}['_hideBalloon'](){const _0x579779=this['balloonPanelView'],_0x2e9c1e=_0x579779[_0x3c2c('0x3c')][_0x3c2c('0x42')];_0x2e9c1e&&(this[_0x3c2c('0xf')](_0x2e9c1e),_0x579779[_0x3c2c('0x54')](),_0x579779[_0x3c2c('0x3c')][_0x3c2c('0x44')]());}[_0x3c2c('0x3')](_0x2b150a){this[_0x3c2c('0x2e')](_0x2b150a,_0x3c2c('0x26'),()=>this['_updateBalloonPosition']()),this['listenTo'](_0x2b150a,_0x3c2c('0x2d'),(_0x2f2e54,_0xf18cae)=>{this[_0x3c2c('0x4f')][_0x3c2c('0x6')](_0x2b150a),this[_0x3c2c('0x30')](),_0xf18cae();});}['_detachListeners'](_0x3f76ae){this[_0x3c2c('0x31')](_0x3f76ae);}}
|
|
23
|
+
const _0x5b49=['_detachListeners','high','get','southArrowNorthWest','change:container','remove','execute','register','type','stopPropagation','balloonPanelView','number','includes','context','getByView','bodyCollection','listenTo','_updateBalloonPosition','unpin','content','element','editors','stopListening','_setSelectedAnnotations','annotationType','_selectedAnnotations','_showBalloon','_refreshPositioning','defaultPositions','northArrowSouth','preventClosingBalloon','requires','delete','isDirty','preventDefault','EditorAnnotations','isVisible','getOrderedSelectedAnnotations','_integrateWithEditorAnnotations','southArrowNorthEast','ck-sidebar--narrow','plugins','pin','from','create','focus','_destroyEditorAnnotationsIntegration','_annotationToNarrowView','blur','target','cancel','isAttached','Esc','activeAnnotation','keydown','mousedown','_manuallyClosedAnnotationViews','set','refresh','hasDomSelection','rearrange','removeEventListener','attach','attachToDom','first','change:height','pluginName','NarrowSidebar','narrowsidebar-attach-already-attached','locale','_refreshPositioningDebounced','contains','off','clear','detach','resize','_domEmitter','length','bind','setActiveAnnotation','has','add','_hideBalloon','view','northArrowSouthEast','destroy','init','narrowSidebar','_attachListeners','getSidebarItemView','addAnnotation','narrowsidebar-detach-not-attached','annotations','southArrowNorth','_editorAnnotations'];(function(_0x25739d,_0x5b4932){const _0x502727=function(_0x22df0f){while(--_0x22df0f){_0x25739d['push'](_0x25739d['shift']());}};_0x502727(++_0x5b4932);}(_0x5b49,0x101));const _0x5027=function(_0x25739d,_0x5b4932){_0x25739d=_0x25739d-0x0;let _0x502727=_0x5b49[_0x25739d];return _0x502727;};import{ContextPlugin as _0x899252,Context as _0x26f1e2}from'ckeditor5/src/core';import _0x25ddf0 from'./annotationsuis';import _0x838c25 from'./sidebar';import _0x13d6d5 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x21547a,BodyCollection as _0xc6c072}from'ckeditor5/src/ui';import{CKEditorError as _0x4da9d6,DomEmitterMixin as _0x19c28c,keyCodes as _0x54f606,Collection as _0x55f92f}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x555798}from'lodash-es';import _0x3f5c70 from'./editorannotations';export default class s extends _0x899252{static get[_0x5027('0x3b')](){return[_0x838c25,_0x25ddf0];}static get[_0x5027('0x5e')](){return _0x5027('0x0');}constructor(_0x4ee07f){super(_0x4ee07f),this[_0x5027('0x4f')]=!0x1,this[_0x5027('0x54')]=new Set(),this[_0x5027('0x9')]=Object[_0x5027('0x48')](_0x19c28c),this[_0x5027('0x4b')]=new Map(),this[_0x5027('0x55')]('activeAnnotation',null),this[_0x5027('0x19')]=null,this[_0x5027('0x35')]=[],this[_0x5027('0x1b')]=new _0x55f92f(),this[_0x5027('0x3')]=_0x555798(()=>{this[_0x5027('0x37')]();},0xfa,{'leading':!0x1});}[_0x5027('0x13')](){this['context'][_0x5027('0x45')][_0x5027('0x1e')](_0x25ddf0)[_0x5027('0x23')](_0x5027('0x14'),this),this['bodyCollection']=new _0xc6c072(this[_0x5027('0x29')]['locale']),this[_0x5027('0x26')]=new _0x21547a(this[_0x5027('0x29')][_0x5027('0x2')]),this[_0x5027('0x2b')][_0x5027('0x5b')](),this[_0x5027('0x2b')][_0x5027('0xe')](this[_0x5027('0x26')]);}['attach'](_0x18f85d){this[_0x5027('0x19')]=_0x18f85d;const _0x2ad062=this[_0x5027('0x29')]['plugins'][_0x5027('0x1e')](_0x838c25),_0x26b565=this[_0x5027('0x26')];if(_0x2ad062['_annotations']=_0x18f85d,this[_0x5027('0x4f')])throw new _0x4da9d6(_0x5027('0x1'),this);this['isAttached']=!0x0,this[_0x5027('0x2c')](_0x2ad062,'set:container',()=>{this[_0x5027('0x7')](),this[_0x5027('0x2c')](_0x2ad062,_0x5027('0x20'),_0x4aa58a=>{_0x4aa58a[_0x5027('0x5')](),this[_0x5027('0x5a')](_0x18f85d);});}),_0x2ad062['_attachToContainer']({'viewClass':_0x5027('0x44'),'spaceBetweenItems':0x5});const _0x1b3e12=_0x4d0d92=>{const _0x4daea2=new _0x13d6d5(this[_0x5027('0x29')][_0x5027('0x2')]);_0x2ad062[_0x5027('0x17')](_0x4d0d92,_0x4daea2),this[_0x5027('0x4b')]['set'](_0x4d0d92,_0x4daea2),_0x4daea2[_0x5027('0xb')]('isDirty',_0x5027('0x34'),_0x5027('0x27'))['to'](_0x4d0d92[_0x5027('0x10')],_0x5027('0x3d'),_0x5027('0x24'),_0x5027('0xa')),_0x4daea2['on'](_0x5027('0x22'),()=>{this[_0x5027('0x54')][_0x5027('0x6')](),_0x26b565[_0x5027('0x2f')][_0x5027('0x5c')]!==_0x4d0d92[_0x5027('0x10')]?(this[_0x5027('0x36')](_0x4d0d92),_0x4d0d92[_0x5027('0x10')]['element']['focus'](),this['setActiveAnnotation'](_0x4d0d92)):this[_0x5027('0xc')](null);});};for(const _0x4bcab8 of _0x18f85d)_0x1b3e12(_0x4bcab8);this['listenTo'](_0x18f85d,_0x5027('0xe'),(_0x8f72c9,_0x5d1d3f)=>{_0x1b3e12(_0x5d1d3f);}),this[_0x5027('0x2c')](_0x18f85d,_0x5027('0x21'),(_0x158c21,_0x4827f1,_0x2a5324)=>{this['_annotationToNarrowView'][_0x5027('0x1e')](_0x4827f1)[_0x5027('0x12')](),this['_annotationToNarrowView'][_0x5027('0x3c')](_0x4827f1),_0x2ad062[_0x5027('0x58')]({'removedAnnotation':_0x4827f1,'previousAnnotation':_0x18f85d['get'](_0x2a5324-0x1),'nextAnnotation':_0x18f85d['get'](_0x2a5324+0x1)}),_0x4827f1===this['activeAnnotation']&&this[_0x5027('0xc')](null);},{'priority':'low'}),this[_0x5027('0x2c')](_0x18f85d,_0x5027('0x49'),(_0x4fd83e,_0x533137)=>{this[_0x5027('0xc')](_0x533137);}),this[_0x5027('0x2c')](_0x18f85d,_0x5027('0x4c'),()=>{this[_0x5027('0xc')](null);}),this[_0x5027('0x9')][_0x5027('0x2c')](document,_0x5027('0x52'),(_0x3f3add,_0x2f52cc)=>{_0x2f52cc['keyCode']===_0x54f606['esc']&&_0x26b565[_0x5027('0x40')]&&(this[_0x5027('0x54')][_0x5027('0xe')](_0x26b565[_0x5027('0x2f')][_0x5027('0x5c')]),this[_0x5027('0xf')](),_0x2f52cc[_0x5027('0x25')](),_0x2f52cc[_0x5027('0x3e')]());}),this[_0x5027('0x9')][_0x5027('0x2c')](document,_0x5027('0x53'),(_0x3edfc8,_0x329a3d)=>{const _0x323a12=_0x329a3d['target'];_0x26b565[_0x5027('0x40')]&&_0x26b565[_0x5027('0x30')]['contains'](_0x323a12)||_0x2ad062[_0x5027('0x10')][_0x5027('0x30')][_0x5027('0x4')](_0x323a12)||_0x3edfc8[_0x5027('0x3a')]||(this[_0x5027('0x54')][_0x5027('0x6')](),this[_0x5027('0xf')](),this[_0x5027('0xc')](null));});const _0x2dcd50=this[_0x5027('0x29')]instanceof _0x26f1e2?this[_0x5027('0x29')][_0x5027('0x31')]:new _0x55f92f([this['context']]);for(const _0x10a030 of _0x2dcd50)this[_0x5027('0x42')](_0x10a030);this[_0x5027('0x2c')](_0x2dcd50,_0x5027('0xe'),(_0x1f2922,_0x549da4)=>{this[_0x5027('0x2c')](_0x549da4,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x549da4);});}),this['listenTo'](_0x2dcd50,_0x5027('0x21'),(_0x32b0a7,_0x3632a0)=>{_0x3632a0[_0x5027('0x45')][_0x5027('0xd')](_0x5027('0x3f'))&&this[_0x5027('0x4a')](_0x3632a0[_0x5027('0x45')][_0x5027('0x1e')](_0x5027('0x3f')));}),window['addEventListener'](_0x5027('0x8'),this[_0x5027('0x3')]),this[_0x5027('0x37')]();}[_0x5027('0xc')](_0xa36d22){if(_0xa36d22===this[_0x5027('0x51')])return;const _0x1efaf8=this[_0x5027('0x29')][_0x5027('0x45')][_0x5027('0x1e')](_0x838c25);if(_0x1efaf8[_0x5027('0x56')]({'blurredAnnotation':this[_0x5027('0x51')],'activatedAnnotation':_0xa36d22,'disableAnimationOnActivatedAnnotation':!0x0}),_0xa36d22)_0x1efaf8[_0x5027('0x16')](_0xa36d22)?this[_0x5027('0x36')](_0xa36d22):this['_hideBalloon']();else this[_0x5027('0xf')]();this[_0x5027('0x51')]=_0xa36d22;}[_0x5027('0x7')](){if(!this[_0x5027('0x4f')])throw new _0x4da9d6(_0x5027('0x18'),this);this[_0x5027('0xc')](null);const _0x2e640f=this[_0x5027('0x29')]['plugins'][_0x5027('0x1e')](_0x838c25);this[_0x5027('0xf')](),Array[_0x5027('0x47')](this[_0x5027('0x4b')]['values'](),_0x10cf93=>_0x10cf93['destroy']()),this[_0x5027('0x4b')][_0x5027('0x6')](),_0x2e640f['_detachFromContainer'](this['annotations']),this[_0x5027('0x32')](),this[_0x5027('0x9')][_0x5027('0x32')](),this['context']instanceof _0x26f1e2&&this[_0x5027('0x32')](this[_0x5027('0x29')][_0x5027('0x31')]);for(const _0x41c127 of Array[_0x5027('0x47')](this['_editorAnnotations']))this[_0x5027('0x4a')](_0x41c127);window[_0x5027('0x59')](_0x5027('0x8'),this[_0x5027('0x3')]),this[_0x5027('0x3')][_0x5027('0x4e')](),this['_selectedAnnotations']=[],this[_0x5027('0x4f')]=!0x1,this[_0x5027('0x19')]=null;}[_0x5027('0x12')](){this[_0x5027('0x4f')]&&this[_0x5027('0x7')](),this[_0x5027('0x2b')]['detachFromDom']();}[_0x5027('0x42')](_0x31a418){const _0x22fb64=_0x31a418['plugins'][_0x5027('0x1e')](_0x3f5c70),_0x20d2a1=this[_0x5027('0x29')]['plugins'][_0x5027('0x1e')](_0x838c25),_0x459ea0=this[_0x5027('0x19')],_0x32803e=this[_0x5027('0x26')],_0x48d52b=()=>{const _0x4d9cd3=_0x22fb64[_0x5027('0x41')]({'annotations':this[_0x5027('0x19')],'activeAnnotation':this[_0x5027('0x51')]});this[_0x5027('0x33')](_0x4d9cd3),this['setActiveAnnotation'](_0x4d9cd3[0x0]||null);};this[_0x5027('0x2c')](_0x22fb64,_0x5027('0x56'),_0x48d52b),this[_0x5027('0x2c')](_0x22fb64,'blur',(_0x3e7c22,{isAnnotationTracked:_0x46a47e})=>{this[_0x5027('0x51')]&&_0x46a47e(this[_0x5027('0x51')])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x22fb64,'uiUpdate',()=>{this[_0x5027('0x3')]();}),this[_0x5027('0x2c')](_0x459ea0,_0x5027('0x4c'),_0x4026f0=>{_0x22fb64[_0x5027('0x57')]()&&_0x4026f0['stop']();},{'priority':_0x5027('0x1d')}),this[_0x5027('0x2c')](this[_0x5027('0x9')],_0x5027('0x53'),(_0x292e2d,_0xc47533)=>{const _0x49aa93=_0xc47533[_0x5027('0x4d')];_0x32803e[_0x5027('0x40')]&&_0x32803e[_0x5027('0x30')][_0x5027('0x4')](_0x49aa93)||_0x20d2a1[_0x5027('0x10')]['element']['contains'](_0x49aa93)||this[_0x5027('0x51')]&&_0x22fb64[_0x5027('0x57')]()&&(_0x48d52b(),_0x292e2d[_0x5027('0x3a')]=!0x0);},{'priority':_0x5027('0x1d')}),this['_editorAnnotations']['add'](_0x22fb64);}[_0x5027('0x4a')](_0x287125){_0x287125&&(this['stopListening'](_0x287125),this[_0x5027('0x1b')]['remove'](_0x287125));}[_0x5027('0x33')](_0x4e7c69){for(const _0x392e0e of this['_selectedAnnotations'])_0x4e7c69[_0x5027('0x28')](_0x392e0e)||this[_0x5027('0x54')][_0x5027('0x3c')](_0x392e0e[_0x5027('0x10')]);this['_selectedAnnotations']=_0x4e7c69;}[_0x5027('0x37')](){const _0x808271=this[_0x5027('0x26')];this[_0x5027('0x19')]['refreshPositioning'](),_0x808271[_0x5027('0x40')]&&this['_updateBalloonPosition']();}[_0x5027('0x36')](_0x4163d3){if(this[_0x5027('0x54')][_0x5027('0xd')](_0x4163d3['view']))return;const _0x441de9=this[_0x5027('0x26')][_0x5027('0x2f')][_0x5027('0x5c')];_0x441de9!==_0x4163d3[_0x5027('0x10')]?(_0x441de9&&this[_0x5027('0x1c')](_0x441de9),this[_0x5027('0x15')](_0x4163d3['view']),this[_0x5027('0x26')][_0x5027('0x2f')][_0x5027('0x6')](),this[_0x5027('0x26')][_0x5027('0x2f')][_0x5027('0xe')](_0x4163d3[_0x5027('0x10')]),this[_0x5027('0x2d')]()):this['_updateBalloonPosition']();}[_0x5027('0x2d')](){const _0x5621c7=this['balloonPanelView'][_0x5027('0x2f')][_0x5027('0x5c')],_0x3890a4=_0x5621c7&&this['annotations'][_0x5027('0x2a')](_0x5621c7);if(!_0x3890a4||!this[_0x5027('0x4b')][_0x5027('0xd')](_0x3890a4))return;const _0xca87f2=this[_0x5027('0x4b')][_0x5027('0x1e')](_0x3890a4)[_0x5027('0x30')],_0x3793dd=function(){const _0x51a4f9=_0x21547a[_0x5027('0x38')];return[_0x51a4f9[_0x5027('0x43')],_0x51a4f9[_0x5027('0x11')],_0x51a4f9[_0x5027('0x1a')],_0x51a4f9[_0x5027('0x39')],_0x51a4f9[_0x5027('0x1f')],_0x51a4f9['northArrowSouthWest']];}();this[_0x5027('0x26')][_0x5027('0x46')]({'target':_0xca87f2,'positions':_0x3793dd});}[_0x5027('0xf')](){const _0x3395ca=this['balloonPanelView'],_0x10d654=_0x3395ca[_0x5027('0x2f')][_0x5027('0x5c')];_0x10d654&&(this[_0x5027('0x1c')](_0x10d654),_0x3395ca[_0x5027('0x2e')](),_0x3395ca['content'][_0x5027('0x6')]());}[_0x5027('0x15')](_0x159023){this[_0x5027('0x2c')](_0x159023,_0x5027('0x5d'),()=>this[_0x5027('0x2d')]()),this[_0x5027('0x2c')](_0x159023,_0x5027('0x50'),(_0x52cdf2,_0x4897a5)=>{this[_0x5027('0x54')][_0x5027('0xe')](_0x159023),this[_0x5027('0xf')](),_0x4897a5();});}[_0x5027('0x1c')](_0x35b95d){this[_0x5027('0x32')](_0x35b95d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18a9=['target','sidebar-attachtocontainer-missing-container','get','Sidebar','setContainer','isAnimationDisabled','destroy','getIndex','unbind','content','_getItemAfter','isActive','remove','element','last','nodeType','addAnnotation','_createSidebarView','_alignForBottomChange','length','bind','top','init','_alignAfterItem','_annotationToSidebarItemView','object','_activeAnnotation','appendChild','list','config','_detachFromContainer','_getMaxAvailableTop','height','_attachToContainer','sidebar-setcontainer-invalid-element','change:targetRect','_sidebarItemViewToAnnotation','_annotations','_recalculate','_alignToTargetRect','sidebar.preventScrollOutOfView','define','listenTo','_alignForTopChange','context','change:top','_destroySidebarItemView','_spaceBetweenItems','delete','_updateLastItem','change:bottom','_getItemBefore','bottom','_recalculateBuffer','class','stopListening','updateHeight','set','minHeight','_setItemTop','_getTargetTop','_targetTop','getSidebarItemView','render','pluginName','max','_alignBeforeItem','view','targetRect','_lastItem','rearrange','refresh','container'];(function(_0x29b5ad,_0x18a980){const _0x1ed2fc=function(_0x1ef86d){while(--_0x1ef86d){_0x29b5ad['push'](_0x29b5ad['shift']());}};_0x1ed2fc(++_0x18a980);}(_0x18a9,0x113));const _0x1ed2=function(_0x29b5ad,_0x18a980){_0x29b5ad=_0x29b5ad-0x0;let _0x1ed2fc=_0x18a9[_0x29b5ad];return _0x1ed2fc;};import{ContextPlugin as _0x56355e}from'ckeditor5/src/core';import{Rect as _0x820160,CKEditorError as _0x2cf731}from'ckeditor5/src/utils';import _0x1b39e5 from'./view/sidebarview';import _0x593386 from'./view/sidebaritemview';export default class z extends _0x56355e{static get[_0x1ed2('0x8')](){return _0x1ed2('0x14');}constructor(_0x3ce4d1){super(_0x3ce4d1),this[_0x1ed2('0x1')](_0x1ed2('0xd'),void 0x0),this['view']=this['_createSidebarView'](),this['set'](_0x1ed2('0x10'),null),this[_0x1ed2('0x40')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x1ed2('0x29')]=new Map(),this[_0x1ed2('0x3d')][_0x1ed2('0x2e')][_0x1ed2('0x3a')]('sidebar.preventScrollOutOfView',!0x1),this[_0x1ed2('0x36')]=null,this[_0x1ed2('0x2b')]=null,this[_0x1ed2('0x46')]=[];}[_0x1ed2('0x27')](){const _0x3a5479=this[_0x1ed2('0x3d')][_0x1ed2('0x2e')][_0x1ed2('0x13')]('sidebar.container');_0x3a5479&&this[_0x1ed2('0x15')](_0x3a5479);}[_0x1ed2('0x15')](_0x4d45bc){if(!y(_0x4d45bc))throw new _0x2cf731(_0x1ed2('0x33'));this[_0x1ed2('0x10')]=_0x4d45bc;}[_0x1ed2('0x32')]({viewClass:_0x58c9b8='',spaceBetweenItems:_0x1ec3d0=0x19}={}){if(!y(this[_0x1ed2('0x10')]))throw new _0x2cf731(_0x1ed2('0x12'),this);this[_0x1ed2('0x10')][_0x1ed2('0x2c')](this[_0x1ed2('0xb')][_0x1ed2('0x1e')]),this['view'][_0x1ed2('0x47')]=_0x58c9b8,this[_0x1ed2('0x40')]=_0x1ec3d0;}[_0x1ed2('0xe')]({removedAnnotation:_0xcd3221,previousAnnotation:_0x356bd6,nextAnnotation:_0x24a5b2}){const _0x4c5645=this[_0x1ed2('0x6')](_0xcd3221);this[_0x1ed2('0xb')][_0x1ed2('0x2d')][_0x1ed2('0x1d')](_0x4c5645),this[_0x1ed2('0x3f')](_0xcd3221),_0x356bd6&&this[_0x1ed2('0x38')](this[_0x1ed2('0x6')](_0x356bd6)),_0x24a5b2&&this[_0x1ed2('0x38')](this[_0x1ed2('0x6')](_0x24a5b2)),this[_0x1ed2('0x42')]();}[_0x1ed2('0xf')]({blurredAnnotation:_0x2aae38,activatedAnnotation:_0x1e8417,disableAnimationOnActivatedAnnotation:_0xc81d6c}){if(this[_0x1ed2('0x2b')]=_0x1e8417,_0x2aae38){_0x2aae38[_0x1ed2('0x1c')]=!0x1;const _0x54c299=this[_0x1ed2('0x6')](_0x2aae38);_0x54c299&&_0xc81d6c&&(_0x54c299['isAnimationDisabled']=!0x1);}if(_0x1e8417){const _0x47e6c7=this[_0x1ed2('0x6')](_0x1e8417);_0x47e6c7&&(_0x1e8417[_0x1ed2('0x1c')]=!0x0,_0xc81d6c&&(_0x47e6c7[_0x1ed2('0x16')]=!0x0,_0x47e6c7[_0x1ed2('0x26')]+=0x1),this[_0x1ed2('0x38')](_0x47e6c7));}}[_0x1ed2('0x2f')](_0x5a0acd){if(this[_0x1ed2('0x48')](),this[_0x1ed2('0xb')]['element'][_0x1ed2('0x1d')](),_0x5a0acd)for(const _0x3b0381 of _0x5a0acd)this[_0x1ed2('0x3f')](_0x3b0381);this[_0x1ed2('0xb')][_0x1ed2('0x2d')]['clear'](),this['view'][_0x1ed2('0x47')]='',this[_0x1ed2('0xd')]=null;}[_0x1ed2('0x21')](_0x3a27e9,_0x5951e5){_0x5951e5||(_0x5951e5=_0x3a27e9['view']);const _0x50e973=new _0x593386(this[_0x1ed2('0x3d')]['locale']);this[_0x1ed2('0x35')]['set'](_0x50e973,_0x3a27e9),this[_0x1ed2('0x29')][_0x1ed2('0x1')](_0x3a27e9,_0x50e973),_0x50e973['content']['add'](_0x5951e5),this['listenTo'](_0x3a27e9[_0x1ed2('0xb')],_0x1ed2('0x34'),(_0x14aa3b,_0xe139c1,_0x816752)=>{const _0x1a7b0f=this[_0x1ed2('0x4')](_0x3a27e9,_0x816752);_0x50e973['_targetTop']!=_0x1a7b0f&&(_0x50e973[_0x1ed2('0x5')]=_0x1a7b0f,this[_0x1ed2('0x3')](_0x50e973,_0x1a7b0f));}),this[_0x1ed2('0x3b')](_0x50e973,_0x1ed2('0x3e'),()=>{this['_recalculate'](_0x50e973,'top');}),this['listenTo'](_0x50e973,_0x1ed2('0x43'),()=>{this[_0x1ed2('0x37')](_0x50e973,'bottom');}),this['_alignToTargetRect'](_0x50e973);const _0x2122a8=this[_0x1ed2('0x44')](_0x50e973);if(_0x2122a8)this[_0x1ed2('0x28')](_0x2122a8,_0x50e973)||this['_alignToTargetRect'](_0x50e973);else this[_0x1ed2('0x38')](_0x50e973);return this[_0x1ed2('0x42')](),this[_0x1ed2('0xb')][_0x1ed2('0x2d')]['add'](_0x50e973),_0x50e973;}[_0x1ed2('0x3c')](_0x36dae1){if(!_0x36dae1[_0x1ed2('0x1a')][_0x1ed2('0x24')])return;const _0x115899=this[_0x1ed2('0x44')](_0x36dae1);if(!_0x115899)return;const _0xc369ac=this[_0x1ed2('0x35')]['get'](_0x115899),_0x4817c0=this['_activeAnnotation'];_0x4817c0&&_0x4817c0===_0xc369ac?this[_0x1ed2('0x28')](_0x115899,_0x36dae1):this['_alignBeforeItem'](_0x36dae1,_0x115899);}[_0x1ed2('0x23')](_0xb73389){if(!_0xb73389[_0x1ed2('0x1a')][_0x1ed2('0x24')])return;const _0x3feb6c=this[_0x1ed2('0x1b')](_0xb73389);if(!_0x3feb6c)return;const _0xf2826d=this[_0x1ed2('0x35')][_0x1ed2('0x13')](_0x3feb6c),_0x40b498=this[_0x1ed2('0x3d')][_0x1ed2('0x2e')]['get'](_0x1ed2('0x39')),_0x41824e=this[_0x1ed2('0x2b')];_0x41824e&&_0x41824e===_0xf2826d&&_0x40b498?(this[_0x1ed2('0xa')](_0x3feb6c,_0xb73389),this[_0x1ed2('0x28')](_0xb73389,_0x3feb6c)):_0x41824e&&_0x41824e===_0xf2826d?this['_alignBeforeItem'](_0x3feb6c,_0xb73389):this[_0x1ed2('0x28')](_0xb73389,_0x3feb6c);}[_0x1ed2('0x37')](_0x5e398a,_0x521fc1){0x0===this[_0x1ed2('0x46')][_0x1ed2('0x24')]&&setTimeout(()=>{for(const {sidebarItemView:_0x48c38e,changedProp:_0x2a5e80}of this[_0x1ed2('0x46')])_0x1ed2('0x26')===_0x2a5e80?this[_0x1ed2('0x3c')](_0x48c38e):this[_0x1ed2('0x23')](_0x48c38e);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x5e398a,'changedProp':_0x521fc1});}['getSidebarItemView'](_0x29a6b4){return this[_0x1ed2('0x29')][_0x1ed2('0x13')](_0x29a6b4);}[_0x1ed2('0x17')](){this[_0x1ed2('0xb')][_0x1ed2('0x17')]();}[_0x1ed2('0x3f')](_0x1328e3){const _0x48daef=this[_0x1ed2('0x6')](_0x1328e3);this['stopListening'](_0x48daef),this['stopListening'](_0x1328e3[_0x1ed2('0xb')]),_0x48daef[_0x1ed2('0x17')](),this[_0x1ed2('0x29')]['delete'](_0x1328e3),this[_0x1ed2('0x35')][_0x1ed2('0x41')](_0x48daef);}[_0x1ed2('0x22')](){const _0x108b05=new _0x1b39e5(this[_0x1ed2('0x3d')]['locale']);return _0x108b05[_0x1ed2('0x7')](),this['on']('change:_lastItem',(_0x31f93a,_0x5bce0c,_0x3f595e,_0x599620)=>{_0x599620&&_0x108b05[_0x1ed2('0x19')](_0x1ed2('0x2')),_0x3f595e?_0x108b05[_0x1ed2('0x25')](_0x1ed2('0x2'))['to'](_0x3f595e,_0x1ed2('0x45')):_0x108b05[_0x1ed2('0x2')]=null;}),_0x108b05;}[_0x1ed2('0x42')](){var _0x2c4459;this[_0x1ed2('0xd')]=(null===(_0x2c4459=this[_0x1ed2('0x36')])||void 0x0===_0x2c4459?void 0x0:_0x2c4459[_0x1ed2('0x1f')])?this['getSidebarItemView'](this[_0x1ed2('0x36')]['last']):null;}[_0x1ed2('0x44')](_0x5db258){var _0x5a0eee;const _0x46d4be=this[_0x1ed2('0x35')][_0x1ed2('0x13')](_0x5db258),_0x5451b4=_0x46d4be&&(null===(_0x5a0eee=this[_0x1ed2('0x36')])||void 0x0===_0x5a0eee?void 0x0:_0x5a0eee[_0x1ed2('0x13')](this[_0x1ed2('0x36')][_0x1ed2('0x18')](_0x46d4be)-0x1));return _0x5451b4&&this[_0x1ed2('0x6')](_0x5451b4)||null;}[_0x1ed2('0x1b')](_0x11f931){var _0x531238;const _0x70557d=this['_sidebarItemViewToAnnotation'][_0x1ed2('0x13')](_0x11f931),_0x5d15da=_0x70557d&&(null===(_0x531238=this[_0x1ed2('0x36')])||void 0x0===_0x531238?void 0x0:_0x531238['get'](this['_annotations'][_0x1ed2('0x18')](_0x70557d)+0x1));return _0x5d15da&&this['getSidebarItemView'](_0x5d15da)||null;}[_0x1ed2('0xa')](_0x165992,_0x98724b){_0x165992[_0x1ed2('0x0')]();const _0x3193ca=H(_0x98724b[_0x1ed2('0x45')]+this[_0x1ed2('0x40')],_0x165992[_0x1ed2('0x26')]);return!!_0x3193ca&&(this['_setItemTop'](_0x98724b,_0x98724b[_0x1ed2('0x26')]-_0x3193ca),!0x0);}[_0x1ed2('0x28')](_0x1f9388,_0x5b28a6){_0x1f9388[_0x1ed2('0x0')]();const _0x25c360=H(_0x1f9388[_0x1ed2('0x45')]+this['_spaceBetweenItems'],_0x5b28a6[_0x1ed2('0x26')]);return!!_0x25c360&&(this[_0x1ed2('0x3')](_0x5b28a6,_0x5b28a6[_0x1ed2('0x26')]+_0x25c360,!0x1),!0x0);}[_0x1ed2('0x38')](_0x3b7abb){const _0x992b19=this[_0x1ed2('0x35')][_0x1ed2('0x13')](_0x3b7abb);if(!_0x992b19||!_0x992b19['target']||!_0x992b19['targetRect'])return;const _0x15add2=this[_0x1ed2('0x4')](_0x992b19,_0x992b19[_0x1ed2('0xc')]);this['_setItemTop'](_0x3b7abb,_0x15add2);}[_0x1ed2('0x4')](_0x5bcd96,_0x4517de){if(null===_0x4517de)return 0x0;if(_0x5bcd96[_0x1ed2('0x11')]instanceof _0x820160)return _0x4517de[_0x1ed2('0x26')];{const _0x172f31=new _0x820160(this[_0x1ed2('0xb')][_0x1ed2('0x1e')])[_0x1ed2('0x26')];return _0x4517de[_0x1ed2('0x26')]-_0x172f31;}}['_setItemTop'](_0x24f63a,_0x48bf74,_0x44be7c=this[_0x1ed2('0x3d')][_0x1ed2('0x2e')][_0x1ed2('0x13')]('sidebar.preventScrollOutOfView')){_0x44be7c&&(_0x48bf74=Math[_0x1ed2('0x9')](_0x48bf74,this[_0x1ed2('0x30')](_0x24f63a))),_0x24f63a['top']=_0x48bf74;}['_getMaxAvailableTop'](_0x59f71b){let _0x1610a1=this[_0x1ed2('0x44')](_0x59f71b),_0x4a00c9=0x0;for(;_0x1610a1;)_0x1610a1[_0x1ed2('0x0')](),_0x4a00c9+=this[_0x1ed2('0x40')]+_0x1610a1[_0x1ed2('0x31')],_0x1610a1=this[_0x1ed2('0x44')](_0x1610a1);return _0x4a00c9;}}function H(_0x1ff1a2,_0x2ae9f7){return Math[_0x1ed2('0x9')](_0x1ff1a2-_0x2ae9f7,0x0);}function y(_0x355441){return null!==_0x355441&&_0x1ed2('0x2a')==typeof _0x355441&&0x1===_0x355441[_0x1ed2('0x20')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x376d=['ck-annotation-counter','bind','ck-annotation-counter__badge','...','extendTemplate','annotationType','span','number','icon','isDirty','bindTemplate','counterView','add','_badge','set','children','ck-annotation-counter__badge--','setTemplate'];(function(_0x5ef05a,_0x376d3c){const _0x4c678e=function(_0x4ef46a){while(--_0x4ef46a){_0x5ef05a['push'](_0x5ef05a['shift']());}};_0x4c678e(++_0x376d3c);}(_0x376d,0x1f3));const _0x4c67=function(_0x5ef05a,_0x376d3c){_0x5ef05a=_0x5ef05a-0x0;let _0x4c678e=_0x376d[_0x5ef05a];return _0x4c678e;};import{ButtonView as _0x4643ee,View as _0x4d62ef}from'ckeditor5/src/ui';import _0x12c60f from'../../../theme/icons/add-comment.svg';export default class D extends _0x4643ee{constructor(_0xb08f15){super(_0xb08f15);const _0x5cc611=this[_0x4c67('0xf')];this[_0x4c67('0x1')](_0x4c67('0xe'),!0x1),this[_0x4c67('0x1')]('number',0x0),this[_0x4c67('0x6')]('_badge')['to'](this,_0x4c67('0xe'),this,_0x4c67('0xc'),(_0x1d2990,_0x5797b3)=>_0x1d2990?_0x4c67('0x8'):_0x5797b3['toString']()),this[_0x4c67('0x1')](_0x4c67('0xa'),''),this[_0x4c67('0xd')]=_0x12c60f,this[_0x4c67('0x9')]({'attributes':{'class':[_0x4c67('0x5')]}}),this[_0x4c67('0x10')]=new _0x4d62ef(),this[_0x4c67('0x10')][_0x4c67('0x4')]({'tag':_0x4c67('0xb'),'attributes':{'class':[_0x4c67('0x7'),_0x5cc611['to'](_0x4c67('0xa'),_0x5c4753=>_0x4c67('0x3')+_0x5c4753),_0x5cc611['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x5cc611['to'](_0x4c67('0x0'))}]}),this[_0x4c67('0x2')][_0x4c67('0x11')](this[_0x4c67('0x10')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e36=['content','keystrokes','ck-annotation-wrapper','clientHeight','listenTo','destroy','render','element','set','isDirty','bindTemplate','clear','focusTracker','height','_mutationObserver','targetRect','detach','createCollection','isActive','Esc','type','focus','ck-annotation-wrapper--active','add','length','attach','_updateHeight','mainView'];(function(_0x4bcd81,_0x3e36b6){const _0x206c25=function(_0x353bec){while(--_0x353bec){_0x4bcd81['push'](_0x4bcd81['shift']());}};_0x206c25(++_0x3e36b6);}(_0x3e36,0x1a2));const _0x206c=function(_0x4bcd81,_0x3e36b6){_0x4bcd81=_0x4bcd81-0x0;let _0x206c25=_0x3e36[_0x4bcd81];return _0x206c25;};import{View as _0x47c69d}from'ckeditor5/src/ui';import{FocusTracker as _0x38e1da,KeystrokeHandler as _0x52cc56,uid as _0x5bd060}from'ckeditor5/src/utils';import _0x2191a1 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x47c69d{constructor(_0x2d0a00,_0x19481a){super(_0x2d0a00),this['id']=_0x5bd060(),this['focusTracker']=new _0x38e1da(),this[_0x206c('0x3')]=new _0x52cc56(),this[_0x206c('0x3')][_0x206c('0xa')](_0x206c('0x15'),(_0x40956e,_0x58863f)=>this['fire'](_0x206c('0x15'),_0x58863f)),this[_0x206c('0xa')](_0x206c('0x11'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x206c('0xa')](_0x206c('0xf'),0x0),this['set'](_0x206c('0x14'),!0x1),this[_0x206c('0xa')](_0x206c('0xb'),!0x1),this[_0x206c('0xa')](_0x206c('0x1a'),0x0),this[_0x206c('0xa')](_0x206c('0x16'),''),this['_mutationObserver']=_0x2191a1(()=>this[_0x206c('0x0')]()),this[_0x206c('0x2')]=this[_0x206c('0x13')](),this['content'][_0x206c('0x19')](_0x19481a),this[_0x206c('0x1')]=_0x19481a;const _0x2c647c=this[_0x206c('0xc')];this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x206c('0x4'),'ck-rounded-corners',_0x2c647c['if'](_0x206c('0x14'),_0x206c('0x18'))],'tabindex':-0x1},'children':this['content']});}[_0x206c('0x8')](){super[_0x206c('0x8')](),this[_0x206c('0xe')][_0x206c('0x19')](this[_0x206c('0x9')]),this['keystrokes'][_0x206c('0x6')](this[_0x206c('0x9')]),this[_0x206c('0x10')][_0x206c('0x1b')](this[_0x206c('0x9')]);}[_0x206c('0x7')](){this['content'][_0x206c('0xd')](),this[_0x206c('0x3')][_0x206c('0x7')](),this[_0x206c('0xe')]['destroy'](),this[_0x206c('0x10')][_0x206c('0x12')](),super[_0x206c('0x7')]();}[_0x206c('0x17')](){this[_0x206c('0x9')]['focus']();}[_0x206c('0x0')](){const _0x580d3e=this[_0x206c('0x9')][_0x206c('0x5')];_0x580d3e&&(this[_0x206c('0xf')]=_0x580d3e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e56=['setTemplate','_targetTop','detach','set','isAnimationDisabled','div','bottom','top','clientHeight','attach','bind','render','content','createCollection','_mutationObserver','updateHeight','bindTemplate','height','ck-sidebar-item'];(function(_0x3c65b0,_0x2e562c){const _0x153a90=function(_0x55ef7f){while(--_0x55ef7f){_0x3c65b0['push'](_0x3c65b0['shift']());}};_0x153a90(++_0x2e562c);}(_0x2e56,0x161));const _0x153a=function(_0x3c65b0,_0x2e562c){_0x3c65b0=_0x3c65b0-0x0;let _0x153a90=_0x2e56[_0x3c65b0];return _0x153a90;};import{View as _0x5b4edb}from'ckeditor5/src/ui';import{toUnit as _0x69068c}from'ckeditor5/src/utils';import _0x3df3f4 from'../../utils/createmutationobserver';const At=_0x69068c('px');export default class C extends _0x5b4edb{constructor(_0x115d2d){super(_0x115d2d),this[_0x153a('0xb')](_0x153a('0xf'),0x0),this['set'](_0x153a('0x6'),0x0),this[_0x153a('0x12')](_0x153a('0xe'))['to'](this,'top',this,'height',(_0x5693ce,_0x1b93cf)=>_0x5693ce+_0x1b93cf),this[_0x153a('0xb')](_0x153a('0xc'),!0x1),this[_0x153a('0x3')]=_0x3df3f4(()=>this['updateHeight']()),this[_0x153a('0x9')]=null,this[_0x153a('0x1')]=this[_0x153a('0x2')]();const _0x400d37=this[_0x153a('0x5')];this[_0x153a('0x8')]({'tag':_0x153a('0xd'),'attributes':{'class':[_0x153a('0x7'),_0x400d37['to']('isAnimationDisabled',_0x581118=>_0x581118?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x400d37['to'](_0x153a('0xf'),_0x501b79=>At(_0x501b79))}},'children':this[_0x153a('0x1')]});}['render'](){super[_0x153a('0x0')](),this['_mutationObserver'][_0x153a('0x11')](this['element']);}[_0x153a('0x4')](){const _0x261c80=this['element'][_0x153a('0x10')];_0x261c80&&(this[_0x153a('0x6')]=_0x261c80);}['destroy'](){this['content']['clear'](),this[_0x153a('0x3')][_0x153a('0xa')](),super['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3109=['class','bindTemplate','div','set','setTemplate','list','ck-sidebar','minHeight'];(function(_0x5c7436,_0x3109fe){const _0x5a9b3f=function(_0x907e8){while(--_0x907e8){_0x5c7436['push'](_0x5c7436['shift']());}};_0x5a9b3f(++_0x3109fe);}(_0x3109,0x1e8));const _0x5a9b=function(_0x5c7436,_0x3109fe){_0x5c7436=_0x5c7436-0x0;let _0x5a9b3f=_0x3109[_0x5c7436];return _0x5a9b3f;};import{View as _0x40b617}from'ckeditor5/src/ui';import{toUnit as _0x942df3}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x942df3('px');export default class T extends _0x40b617{constructor(_0x30d011){super(_0x30d011);const _0x491063=this[_0x5a9b('0x1')];this[_0x5a9b('0x3')](_0x5a9b('0x7'),0x0),this[_0x5a9b('0x3')](_0x5a9b('0x0'),''),this[_0x5a9b('0x5')]=this['createCollection'](),this[_0x5a9b('0x4')]({'tag':_0x5a9b('0x2'),'attributes':{'class':['ck',_0x5a9b('0x6'),'ck-reset',_0x491063['to']('class')],'style':{'minHeight':_0x491063['to'](_0x5a9b('0x7'),_0x2d58f3=>'number'==typeof _0x2d58f3?At(_0x2d58f3+0xa):null)}},'children':this[_0x5a9b('0x5')]});}}
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* @module comments/annotations/widesidebar
|
|
3
3
|
* @publicApi
|
|
4
4
|
*/
|
|
5
|
-
import { ContextPlugin,
|
|
6
|
-
import { type AnnotationsUI } from './annotationsuis';
|
|
5
|
+
import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core';
|
|
6
|
+
import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
|
|
7
|
+
import Sidebar from './sidebar';
|
|
7
8
|
import type Annotation from './annotation';
|
|
8
|
-
import type AnnotationCollection from './annotationcollection';
|
|
9
|
+
import type { default as AnnotationCollection } from './annotationcollection';
|
|
9
10
|
/**
|
|
10
11
|
* The wide sidebar UI for displaying annotations.
|
|
11
12
|
*
|
|
@@ -40,11 +41,11 @@ export default class WideSidebar extends ContextPlugin implements AnnotationsUI<
|
|
|
40
41
|
/**
|
|
41
42
|
* @inheritDoc
|
|
42
43
|
*/
|
|
43
|
-
static get requires():
|
|
44
|
+
static get requires(): readonly [typeof Sidebar, typeof AnnotationsUIs];
|
|
44
45
|
/**
|
|
45
46
|
* @inheritDoc
|
|
46
47
|
*/
|
|
47
|
-
static get pluginName():
|
|
48
|
+
static get pluginName(): "WideSidebar";
|
|
48
49
|
/**
|
|
49
50
|
* @inheritDoc
|
|
50
51
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6759=['_destroyEditorAnnotationsIntegration','annotations','hasDomSelection','activeAnnotation','attach','from','blur','_integrateWithEditorAnnotations','has','addAnnotation','_activeAnnotation','editors','uiUpdate','requires','_refreshPositioningDebounced','listenTo','rearrange','refresh','remove','resize','stopListening','_attachToContainer','removeEventListener','get','ck-sidebar--wide','refreshPositioning','setActiveAnnotation','_annotations','focus','cancel','destroy','isAttached','add','set','detach','high','set:container','WideSidebar','switchTo','stop','plugins','widesidebar-detach-not-attached','addEventListener','widesidebar-attach-already-attached','wideSidebar','context','off','_editorAnnotations'];(function(_0x44b833,_0x67591d){const _0x260500=function(_0x5a2f29){while(--_0x5a2f29){_0x44b833['push'](_0x44b833['shift']());}};_0x260500(++_0x67591d);}(_0x6759,0x184));const _0x2605=function(_0x44b833,_0x67591d){_0x44b833=_0x44b833-0x0;let _0x260500=_0x6759[_0x44b833];return _0x260500;};import{ContextPlugin as _0x1d7d21,Context as _0x3baa58}from'ckeditor5/src/core';import _0x58065c from'./annotationsuis';import _0x270a16 from'./sidebar';import{CKEditorError as _0x4c7481,Collection as _0x9c4c3e}from'ckeditor5/src/utils';import{debounce as _0x12e674}from'lodash-es';import _0x5e415a from'./editorannotations';export default class i extends _0x1d7d21{static get[_0x2605('0x9')](){return[_0x270a16,_0x58065c];}static get['pluginName'](){return _0x2605('0x21');}constructor(_0x1fb9a9){super(_0x1fb9a9),this[_0x2605('0x1b')]=!0x1,this[_0x2605('0x1d')](_0x2605('0x2f'),null),this[_0x2605('0x2d')]=null,this['_editorAnnotations']=new _0x9c4c3e(),this[_0x2605('0xa')]=_0x12e674(()=>{this[_0x2605('0x2d')]['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x2f557b=this[_0x2605('0x29')][_0x2605('0x24')][_0x2605('0x13')](_0x58065c),_0x449c32=this[_0x2605('0x29')][_0x2605('0x24')][_0x2605('0x13')](_0x270a16);_0x2f557b['register'](_0x2605('0x28'),this),_0x449c32['container']&&_0x2f557b[_0x2605('0x22')](_0x2605('0x28'));}[_0x2605('0x16')](_0x546d41){if(_0x546d41===this['activeAnnotation'])return;const _0x2c3dd7=this[_0x2605('0x29')][_0x2605('0x24')][_0x2605('0x13')](_0x270a16);_0x2c3dd7[_0x2605('0x6')]=_0x546d41;const _0x52e201=this[_0x2605('0x2f')];this[_0x2605('0x2f')]=_0x546d41,_0x2c3dd7[_0x2605('0xd')]({'blurredAnnotation':_0x52e201,'activatedAnnotation':this[_0x2605('0x2f')]});}[_0x2605('0x0')](_0x3ded13){this[_0x2605('0x2d')]=_0x3ded13;const _0x533b10=this[_0x2605('0x29')][_0x2605('0x24')]['get'](_0x270a16);if(_0x533b10[_0x2605('0x17')]=_0x3ded13,this['isAttached'])throw new _0x4c7481(_0x2605('0x27'),this);this[_0x2605('0x1b')]=!0x0,this[_0x2605('0xb')](_0x533b10,_0x2605('0x20'),()=>{this[_0x2605('0x1e')](),this[_0x2605('0xb')](_0x533b10,'change:container',_0x339000=>{_0x339000[_0x2605('0x2a')](),this['attach'](_0x3ded13);});}),_0x533b10[_0x2605('0x11')]({'viewClass':_0x2605('0x14')});const _0x3101f8=_0x5e736e=>{_0x5e736e['updateTargetRect'](),_0x533b10[_0x2605('0x5')](_0x5e736e);};for(const _0x3b40a6 of _0x3ded13)_0x3101f8(_0x3b40a6);this['listenTo'](_0x3ded13,_0x2605('0x1c'),(_0x2f0734,_0x5bdda7)=>{_0x3101f8(_0x5bdda7);}),this['listenTo'](_0x3ded13,'remove',(_0x45db34,_0x199728,_0x30b359)=>{_0x533b10[_0x2605('0xc')]({'removedAnnotation':_0x199728,'previousAnnotation':_0x3ded13[_0x2605('0x13')](_0x30b359-0x1),'nextAnnotation':_0x3ded13[_0x2605('0x13')](_0x30b359+0x1)}),_0x199728===this['activeAnnotation']&&this[_0x2605('0x16')](null);},{'priority':_0x2605('0x1f')}),this[_0x2605('0xb')](_0x3ded13,_0x2605('0x18'),(_0x5d9226,_0x3eabda)=>{this[_0x2605('0x16')](_0x3eabda);}),this[_0x2605('0xb')](_0x3ded13,_0x2605('0x2'),()=>{this[_0x2605('0x16')](null);});const _0x8e3dc5=this[_0x2605('0x29')]instanceof _0x3baa58?this[_0x2605('0x29')][_0x2605('0x7')]:new _0x9c4c3e([this[_0x2605('0x29')]]);for(const _0x38f8eb of _0x8e3dc5)this[_0x2605('0x3')](_0x38f8eb);this['listenTo'](_0x8e3dc5,_0x2605('0x1c'),(_0xa3f880,_0x5ade74)=>{this[_0x2605('0xb')](_0x5ade74,'ready',()=>{this[_0x2605('0x3')](_0x5ade74);});}),this[_0x2605('0xb')](_0x8e3dc5,_0x2605('0xe'),(_0x552692,_0x356181)=>{_0x356181[_0x2605('0x24')][_0x2605('0x4')]('EditorAnnotations')&&this[_0x2605('0x2c')](_0x356181[_0x2605('0x24')][_0x2605('0x13')]('EditorAnnotations'));}),window[_0x2605('0x26')](_0x2605('0xf'),this[_0x2605('0xa')]),this[_0x2605('0x2d')][_0x2605('0x15')]();}[_0x2605('0x1e')](){if(!this[_0x2605('0x1b')])throw new _0x4c7481(_0x2605('0x25'),this);this[_0x2605('0x16')](null);const _0x16bf5d=this['context']['plugins'][_0x2605('0x13')](_0x270a16);_0x16bf5d['_detachFromContainer'](this['annotations']),this[_0x2605('0x10')](_0x16bf5d),this[_0x2605('0x10')](this['annotations']),this[_0x2605('0x29')]instanceof _0x3baa58&&this[_0x2605('0x10')](this['context'][_0x2605('0x7')]);for(const _0x47e422 of Array[_0x2605('0x1')](this['_editorAnnotations']))this[_0x2605('0x2c')](_0x47e422);window[_0x2605('0x12')](_0x2605('0xf'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x2605('0x19')](),this[_0x2605('0x2f')]=null,this['isAttached']=!0x1,this[_0x2605('0x2d')]=null;}[_0x2605('0x1a')](){this['isAttached']&&this['detach']();}[_0x2605('0x3')](_0x1ba855){const _0x13839e=_0x1ba855[_0x2605('0x24')][_0x2605('0x13')](_0x5e415a);if(!_0x13839e)return;const _0x2eeac6=()=>{const _0x377d3f=_0x13839e['getOrderedSelectedAnnotations']({'annotations':this[_0x2605('0x2d')],'activeAnnotation':this['activeAnnotation']});this[_0x2605('0x16')](_0x377d3f[0x0]||null);};this[_0x2605('0xb')](_0x13839e,_0x2605('0xd'),_0x2eeac6),this[_0x2605('0xb')](_0x13839e,_0x2605('0x2'),(_0x49b7db,{isAnnotationTracked:_0x518562})=>{this[_0x2605('0x2f')]&&_0x518562(this[_0x2605('0x2f')])&&this[_0x2605('0x16')](null);}),this['listenTo'](_0x13839e,_0x2605('0x8'),()=>{this[_0x2605('0xa')]();}),this[_0x2605('0xb')](this[_0x2605('0x2d')],_0x2605('0x2'),_0x9fb969=>{_0x13839e[_0x2605('0x2e')]()&&(_0x2eeac6(),_0x9fb969[_0x2605('0x23')]());},{'priority':_0x2605('0x1f')}),this[_0x2605('0x2b')][_0x2605('0x1c')](_0x13839e);}['_destroyEditorAnnotationsIntegration'](_0x5e77c7){this[_0x2605('0x10')](_0x5e77c7),this[_0x2605('0x2b')][_0x2605('0xe')](_0x5e77c7);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30df=['selection','change','execute','push','_hasContent','element','addMarker','editor','createRange','_trimToContent','substr','refresh','comment:','start','item','$textProxy','isEnabled','end','schema','getLastMatchingPosition','model','isObject','backward'];(function(_0xecd8e0,_0x30dfe5){const _0x5bb122=function(_0x2596ce){while(--_0x2596ce){_0xecd8e0['push'](_0xecd8e0['shift']());}};_0x5bb122(++_0x30dfe5);}(_0x30df,0xa2));const _0x5bb1=function(_0xecd8e0,_0x30dfe5){_0xecd8e0=_0xecd8e0-0x0;let _0x5bb122=_0x30df[_0xecd8e0];return _0x5bb122;};import{Command as _0x5c2c40}from'ckeditor5/src/core';import{uid as _0x20b055}from'ckeditor5/src/utils';export default class q extends _0x5c2c40{[_0x5bb1('0xa')](){const _0x70ea14=this[_0x5bb1('0x6')]['model']['document'][_0x5bb1('0x16')];for(const _0x5066f1 of _0x70ea14['getRanges']())if(this[_0x5bb1('0x3')](_0x5066f1))return void(this[_0x5bb1('0xf')]=!0x0);this[_0x5bb1('0xf')]=!0x1;}[_0x5bb1('0x1')]({threadId:_0x3ad169=_0x20b055()}={}){const _0x390027=this[_0x5bb1('0x6')]['model'],_0x1b4864=[];for(const _0xb6759e of _0x390027['document'][_0x5bb1('0x16')]['getRanges']())this['_hasContent'](_0xb6759e)&&_0x1b4864[_0x5bb1('0x2')](this[_0x5bb1('0x8')](_0xb6759e));_0x390027[_0x5bb1('0x0')](_0x494bb0=>{for(const _0x4ae0f2 of _0x1b4864){const _0x19397b=_0x20b055()[_0x5bb1('0x9')](0x1,0x5),_0x210eb0=_0x5bb1('0xb')+_0x3ad169+':'+_0x19397b;_0x494bb0[_0x5bb1('0x5')](_0x210eb0,{'range':_0x4ae0f2,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x5bb1('0x3')](_0x911844){for(const _0x255960 of _0x911844['getItems']())if(this['_itemIsContent'](_0x255960))return!0x0;return!0x1;}['_itemIsContent'](_0x5d5756){return _0x5d5756['is'](_0x5bb1('0xe'))||this['editor']['model'][_0x5bb1('0x11')][_0x5bb1('0x14')](_0x5d5756)&&!_0x5d5756['is'](_0x5bb1('0x4'),'tableCell');}[_0x5bb1('0x8')](_0x554a1c){const _0xd0340=_0x5e87f8=>!this['_itemIsContent'](_0x5e87f8[_0x5bb1('0xd')]),_0x4122f1=_0x554a1c[_0x5bb1('0xc')][_0x5bb1('0x12')](_0xd0340),_0x191aa0=_0x554a1c[_0x5bb1('0x10')]['getLastMatchingPosition'](_0xd0340,{'direction':_0x5bb1('0x15')});return this[_0x5bb1('0x6')][_0x5bb1('0x13')][_0x5bb1('0x7')](_0x4122f1,_0x191aa0);}}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module comments/comments/commentsarchive
|
|
3
|
+
* @publicApi
|
|
3
4
|
*/
|
|
4
|
-
import { ContextPlugin, type Context, type Editor
|
|
5
|
+
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
|
|
5
6
|
import { Collection } from 'ckeditor5/src/utils';
|
|
6
|
-
import { type CommentThread } from './commentsrepository';
|
|
7
|
+
import CommentsRepository, { type CommentThread } from './commentsrepository';
|
|
8
|
+
import Annotations from '../annotations/annotations';
|
|
7
9
|
/**
|
|
8
10
|
* This plugin handles all operations on resolved threads needed for the comments archive.
|
|
9
11
|
*/
|
|
@@ -12,11 +14,11 @@ export default class CommentsArchive extends ContextPlugin {
|
|
|
12
14
|
/**
|
|
13
15
|
* @inheritDoc
|
|
14
16
|
*/
|
|
15
|
-
static get pluginName():
|
|
17
|
+
static get pluginName(): "CommentsArchive";
|
|
16
18
|
/**
|
|
17
19
|
* @inheritDoc
|
|
18
20
|
*/
|
|
19
|
-
static get requires():
|
|
21
|
+
static get requires(): readonly [typeof CommentsRepository, typeof Annotations];
|
|
20
22
|
constructor(context: Context | Editor);
|
|
21
23
|
/**
|
|
22
24
|
* @inheritDoc
|