@ckeditor/ckeditor5-comments 35.3.1 → 35.3.2
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 -2
- 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/commentsediting.js +1 -1
- 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.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/commentslistview.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.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/build/translations/af.js +0 -1
- package/build/translations/ar.js +0 -1
- package/build/translations/bg.js +0 -1
- package/build/translations/bn.js +0 -1
- package/build/translations/bs.js +0 -1
- package/build/translations/ca.js +0 -1
- package/build/translations/cs.js +0 -1
- package/build/translations/da.js +0 -1
- package/build/translations/de-ch.js +0 -1
- package/build/translations/de.js +0 -1
- package/build/translations/el.js +0 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/es-co.js +0 -1
- package/build/translations/es.js +0 -1
- package/build/translations/et.js +0 -1
- package/build/translations/fa.js +0 -1
- package/build/translations/fi.js +0 -1
- package/build/translations/fr.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/he.js +0 -1
- package/build/translations/hi.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/hu.js +0 -1
- package/build/translations/id.js +0 -1
- package/build/translations/it.js +0 -1
- package/build/translations/ja.js +0 -1
- package/build/translations/jv.js +0 -1
- package/build/translations/ko.js +0 -1
- package/build/translations/lt.js +0 -1
- package/build/translations/lv.js +0 -1
- package/build/translations/ms.js +0 -1
- package/build/translations/nl.js +0 -1
- package/build/translations/no.js +0 -1
- package/build/translations/pl.js +0 -1
- package/build/translations/pt-br.js +0 -1
- package/build/translations/pt.js +0 -1
- package/build/translations/ro.js +0 -1
- package/build/translations/ru.js +0 -1
- package/build/translations/sk.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/sr.js +0 -1
- package/build/translations/sv.js +0 -1
- package/build/translations/th.js +0 -1
- package/build/translations/tk.js +0 -1
- package/build/translations/tr.js +0 -1
- package/build/translations/tt.js +0 -1
- package/build/translations/ug.js +0 -1
- package/build/translations/uk.js +0 -1
- package/build/translations/ur.js +0 -1
- package/build/translations/vi.js +0 -1
- package/build/translations/zh-cn.js +0 -1
- package/build/translations/zh.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-comments",
|
|
3
|
-
"version": "35.3.
|
|
3
|
+
"version": "35.3.2",
|
|
4
4
|
"description": "Collaborative comments feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
],
|
|
32
32
|
"main": "src/index.js",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"ckeditor5": "^35.3.
|
|
35
|
-
"ckeditor5-collaboration": "^35.3.
|
|
34
|
+
"ckeditor5": "^35.3.2",
|
|
35
|
+
"ckeditor5-collaboration": "^35.3.2",
|
|
36
36
|
"lodash-es": "^4.17.11"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc7dd=['_target','destroy','render','function','_isTargetElementVisible','updateTargetRect','clear','offsetParent','getClientRects','focusableElements','view','_id','_type','remove','target','type','refreshVisibility','targetRect','add','nodeType','_assertCorrectTarget','object','innerView','annotation-invalid-target','isVisible','stopListening','focusTracker','isActive'];(function(_0x2e62e2,_0xc7dd7a){const _0x2079d2=function(_0x4062f5){while(--_0x4062f5){_0x2e62e2['push'](_0x2e62e2['shift']());}};_0x2079d2(++_0xc7dd7a);}(_0xc7dd,0x127));const _0x2079=function(_0x2e62e2,_0xc7dd7a){_0x2e62e2=_0x2e62e2-0x0;let _0x2079d2=_0xc7dd[_0x2e62e2];return _0x2079d2;};import{CKEditorError as _0x3d2beb,Rect as _0x505ce1,Collection as _0x3696f1,mix as _0xd34fbe,ObservableMixin as _0x18f027}from'ckeditor5/src/utils';export default class d{constructor({view:_0x554b95,target:_0x3cb6c2,type:_0x4b1ee4,isVisible:_0x3cd28c=!0x0}){this[_0x2079('0x17')]=_0x554b95,this['view']['element']||this['view'][_0x2079('0xf')](),this[_0x2079('0x19')]=_0x4b1ee4,this[_0x2079('0xd')]=_0x3cb6c2,this[_0x2079('0x5')](),this[_0x2079('0x16')]=new _0x3696f1([this[_0x2079('0x17')]['element']],{'idProperty':_0x2079('0x18')}),this['focusableElements']['on'](_0x2079('0x3'),(_0x9d92e3,_0x6d65f9)=>{this[_0x2079('0x17')]['focusTracker'][_0x2079('0x3')](_0x6d65f9);}),this[_0x2079('0x16')]['on']('remove',(_0x3c4973,_0x3ae98b)=>{this[_0x2079('0x17')][_0x2079('0xb')][_0x2079('0x1a')](_0x3ae98b);}),this['set'](_0x2079('0x9'),_0x3cd28c);}get[_0x2079('0x0')](){return _0x2079('0x10')==typeof this[_0x2079('0x19')]?this[_0x2079('0x19')]():this[_0x2079('0x19')];}get[_0x2079('0x7')](){return this['view']['mainView'];}get['target'](){return _0x2079('0x10')==typeof this['_target']?this[_0x2079('0xd')]():this[_0x2079('0xd')];}get[_0x2079('0x2')](){const _0x3994f4=this[_0x2079('0x1b')];return this[_0x2079('0x5')](),null!==_0x3994f4&&this[_0x2079('0x11')]()?p(_0x3994f4)?new _0x505ce1(_0x3994f4[_0x2079('0x15')]()['item'](0x0)):new _0x505ce1(_0x3994f4):null;}get[_0x2079('0xc')](){return this[_0x2079('0x17')][_0x2079('0xc')];}set['isActive'](_0x4f4c3d){this[_0x2079('0x17')]['isActive']=_0x4f4c3d,this['view']['mainView'][_0x2079('0xc')]=_0x4f4c3d;}[_0x2079('0x12')](){this[_0x2079('0x17')]['targetRect']=this['targetRect'];}[_0x2079('0xe')](){this[_0x2079('0x16')][_0x2079('0xa')](),this['focusableElements'][_0x2079('0x13')](),this['stopListening']();}[_0x2079('0x1')](){this[_0x2079('0x9')]=this[_0x2079('0x11')]();}['_isTargetElementVisible'](){const _0x3d6ab2=this[_0x2079('0x1b')];if(!p(_0x3d6ab2))return!0x0;if(_0x3d6ab2[_0x2079('0x14')])return!0x0;return!!_0x3d6ab2[_0x2079('0x15')]()['item'](0x0);}['_assertCorrectTarget'](){const _0x588837=this['target'];if(!(null===_0x588837||_0x588837 instanceof _0x505ce1||p(_0x588837)))throw new _0x3d2beb(_0x2079('0x8'),null,{'target':_0x588837});}}function p(_0x59e5ad){return null!==_0x59e5ad&&_0x2079('0x6')==typeof _0x59e5ad&&0x1===_0x59e5ad[_0x2079('0x4')];}_0xd34fbe(d,_0x18f027);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3cfb=['set','length','change:isFocused','remove','annotationcollection-duplicated-item','isFocused','_viewToAnnotation','focusTracker','targetRect','fire','_innerViewToAnnotation','stopListening','getByInnerView','innerView','getByView','delete','_getOrderInContent','focus','has','refreshPositioning','destroy','from','annotationcollection-not-existing-item','_items','listenTo','add','view','blur','_focusTracker','focusableElements','top','updateTargetRect','clear','_sort','get','left'];(function(_0x16ac06,_0x3cfb21){const _0x57766e=function(_0x327740){while(--_0x327740){_0x16ac06['push'](_0x16ac06['shift']());}};_0x57766e(++_0x3cfb21);}(_0x3cfb,0xc3));const _0x5776=function(_0x16ac06,_0x3cfb21){_0x16ac06=_0x16ac06-0x0;let _0x57766e=_0x3cfb[_0x16ac06];return _0x57766e;};import{CKEditorError as _0x46f050,Collection as _0x758d0,FocusTracker as _0x4c15d3}from'ckeditor5/src/utils';export default class x extends _0x758d0{constructor(_0xc09d32=[]){super(),this[_0x5776('0x1f')]=new Map(),this[_0x5776('0x1b')]=new Map(),this[_0x5776('0xd')]=new _0x4c15d3(),this['_focusTracker']['on'](_0x5776('0x17'),(_0x2418e9,_0x4bd6a8,_0x30939f)=>{_0x30939f||this[_0x5776('0x1e')](_0x5776('0xc'));});for(const _0x4f1ace of _0xc09d32)this['add'](_0x4f1ace);}get[_0x5776('0x1a')](){return this['_focusTracker'][_0x5776('0x1a')];}[_0x5776('0xa')](_0x5ae90e){if(this['has'](_0x5ae90e))throw new _0x46f050(_0x5776('0x19'),null);this['_innerViewToAnnotation'][_0x5776('0x15')](_0x5ae90e[_0x5776('0x22')],_0x5ae90e),this[_0x5776('0x1b')][_0x5776('0x15')](_0x5ae90e[_0x5776('0xb')],_0x5ae90e);for(const _0x2b19ff of _0x5ae90e[_0x5776('0xe')])this[_0x5776('0xd')][_0x5776('0xa')](_0x2b19ff);this['listenTo'](_0x5ae90e['focusableElements'],_0x5776('0xa'),(_0x5e379f,_0x525095)=>{this[_0x5776('0xd')][_0x5776('0xa')](_0x525095);}),this[_0x5776('0x9')](_0x5ae90e['focusableElements'],'remove',(_0x2adcb8,_0x42338c)=>{this[_0x5776('0xd')]['remove'](_0x42338c);}),this['listenTo'](_0x5ae90e[_0x5776('0xb')][_0x5776('0x1c')],'change:isFocused',(_0x26b75d,_0xe5e911,_0x52440a)=>{_0x52440a&&this[_0x5776('0x1e')](_0x5776('0x2'),_0x5ae90e);}),_0x5ae90e['updateTargetRect']();const _0x5ee519=this['_getOrderInContent'](_0x5ae90e[_0x5776('0xb')][_0x5776('0x1d')]);super[_0x5776('0xa')](_0x5ae90e,_0x5ee519);}['remove'](_0x14c1e7){if(!this[_0x5776('0x3')](_0x14c1e7))throw new _0x46f050(_0x5776('0x7'),null);this['stopListening'](_0x14c1e7['view']['focusTracker']),this[_0x5776('0x20')](_0x14c1e7[_0x5776('0xe')]);for(const _0x5ee5d8 of _0x14c1e7[_0x5776('0xe')])this[_0x5776('0xd')][_0x5776('0x18')](_0x5ee5d8);this[_0x5776('0x1b')][_0x5776('0x0')](_0x14c1e7['view']),this[_0x5776('0x1f')][_0x5776('0x0')](_0x14c1e7[_0x5776('0x22')]),super[_0x5776('0x18')](_0x14c1e7);}[_0x5776('0x21')](_0x9ada1e){return this[_0x5776('0x1f')]['get'](_0x9ada1e);}[_0x5776('0x23')](_0x24d1f0){return this[_0x5776('0x1b')][_0x5776('0x13')](_0x24d1f0);}['destroy'](){super[_0x5776('0x11')](),this[_0x5776('0x20')](),this['_innerViewToAnnotation'][_0x5776('0x11')](),this[_0x5776('0x1b')][_0x5776('0x11')](),this[_0x5776('0xd')][_0x5776('0x5')]();}[_0x5776('0x4')](){for(const _0x545552 of this)_0x545552[_0x5776('0x10')]();this[_0x5776('0x12')]();}[_0x5776('0x12')](){const _0x394afe=Array[_0x5776('0x6')](this)['sort']((_0x333e31,_0x2238e1)=>y(_0x333e31[_0x5776('0xb')][_0x5776('0x1d')],_0x2238e1['view']['targetRect']));for(let _0x2f2c1f=_0x394afe[_0x5776('0x16')]-0x1;_0x2f2c1f>0x0;_0x2f2c1f--){const _0x2b41c9=_0x394afe[_0x2f2c1f];_0x2f2c1f!==this['getIndex'](_0x2b41c9)&&(this[_0x5776('0x18')](_0x2b41c9),this[_0x5776('0xa')](_0x2b41c9,_0x2f2c1f));}}[_0x5776('0x1')](_0x293a5d){let _0x488153=0x0;if(!_0x293a5d)return this[_0x5776('0x8')]['length'];for(const _0x249516 of this){const _0x254e40=_0x249516[_0x5776('0xb')][_0x5776('0x1d')];if(_0x254e40){if(y(_0x293a5d,_0x254e40)<0x0)return _0x488153;_0x488153++;}}return _0x488153;}}export function bindAnnotationCollections({source:_0x2e97f9,target:_0x49de3e,filter:_0x23e3be}){for(const _0x23f360 of _0x2e97f9)_0x23e3be(_0x23f360)&&_0x49de3e['add'](_0x23f360);_0x49de3e[_0x5776('0x9')](_0x2e97f9,'add',(_0xa285fd,_0x4a02e8)=>{_0x23e3be(_0x4a02e8)&&_0x49de3e[_0x5776('0xa')](_0x4a02e8);}),_0x49de3e[_0x5776('0x9')](_0x2e97f9,_0x5776('0x18'),(_0x42c0da,_0x470ff7)=>{_0x49de3e[_0x5776('0x3')](_0x470ff7)&&_0x49de3e[_0x5776('0x18')](_0x470ff7);});}function y(_0x26a89b,_0x34884d){if(null===_0x26a89b&&null===_0x34884d)return 0x0;if(null===_0x26a89b)return-0x1;if(null===_0x34884d)return 0x1;const _0x152425=_0x26a89b[_0x5776('0xf')]-_0x34884d[_0x5776('0xf')];return 0x0==_0x152425?_0x26a89b[_0x5776('0x14')]-_0x34884d[_0x5776('0x14')]:_0x152425;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a07=['_addActiveAnnotation','add','isVisible','createAnnotationView','_deactivateAllAnnotations','has','Annotations','change:isVisible','_visibleAnnotations','activate','activeAnnotations','fire','refreshPositioning','destroy','_removeActiveAnnotation','getByInnerView','set','listenTo','refreshVisibility','collection','_bindAnnotationsToVisibleAnnotations','pluginName','deactivateAll','_activateAnnotation','remove','source'];(function(_0x3708fc,_0x4a0755){const _0x149e27=function(_0x45f27a){while(--_0x45f27a){_0x3708fc['push'](_0x3708fc['shift']());}};_0x149e27(++_0x4a0755);}(_0x4a07,0x14b));const _0x149e=function(_0x3708fc,_0x4a0755){_0x3708fc=_0x3708fc-0x0;let _0x149e27=_0x4a07[_0x3708fc];return _0x149e27;};import{ContextPlugin as _0x151607}from'ckeditor5/src/core';import _0x16b56d from'./annotation';import _0x54ef50 from'./annotationcollection';import _0x2732a3 from'./view/annotationview';export default class V extends _0x151607{static get[_0x149e('0x2')](){return _0x149e('0xd');}constructor(_0x203748){super(_0x203748),this[_0x149e('0x0')]=new _0x54ef50(),this['_visibleAnnotations']=new _0x54ef50(),this[_0x149e('0x17')](_0x149e('0x11'),new Set()),this[_0x149e('0x1')]();}[_0x149e('0x8')](_0x2afd33){this[_0x149e('0x0')][_0x149e('0x8')](_0x2afd33);}[_0x149e('0x5')](_0x38150d){this['collection'][_0x149e('0x5')](_0x38150d),_0x38150d[_0x149e('0x14')]();}[_0x149e('0x19')](){for(const _0x5d9e96 of this[_0x149e('0x0')])_0x5d9e96['refreshVisibility']();}[_0x149e('0x13')](){this[_0x149e('0xf')][_0x149e('0x13')]();}[_0x149e('0x16')](_0x44a60c){return this[_0x149e('0x0')]['getByInnerView'](_0x44a60c);}[_0x149e('0x3')](){this[_0x149e('0x12')](_0x149e('0xb'));}[_0x149e('0x14')](){for(const _0xebf929 of this[_0x149e('0x0')])_0xebf929[_0x149e('0x14')]();this[_0x149e('0xf')][_0x149e('0x14')](),this[_0x149e('0x0')][_0x149e('0x14')](),super[_0x149e('0x14')]();}[_0x149e('0x10')](_0x1039aa){this[_0x149e('0x12')](_0x149e('0x4'),_0x1039aa);}['createAnnotation'](_0x1c5621){return new _0x16b56d(_0x1c5621);}[_0x149e('0xa')](_0xc44fa7,_0x345a87){return new _0x2732a3(_0xc44fa7,_0x345a87);}[_0x149e('0x7')](_0x468a2d){const _0x4b4175=new Set(this['activeAnnotations']);_0x4b4175['add'](_0x468a2d),this[_0x149e('0x11')]=_0x4b4175;}[_0x149e('0x15')](_0x2c2aa5){const _0x51f1ad=new Set(this[_0x149e('0x11')]);_0x51f1ad['delete'](_0x2c2aa5),this[_0x149e('0x11')]=_0x51f1ad;}[_0x149e('0x1')](){const _0x28f9c7=this['collection'],_0x1d1607=this[_0x149e('0xf')];function _0x2150ea(_0x105260){const _0x1c1c3b=_0x105260[_0x149e('0x6')];_0x1c1c3b[_0x149e('0x9')]&&!_0x1d1607[_0x149e('0xc')](_0x1c1c3b)?_0x1d1607[_0x149e('0x8')](_0x1c1c3b):!_0x1c1c3b['isVisible']&&_0x1d1607[_0x149e('0xc')](_0x1c1c3b)&&_0x1d1607[_0x149e('0x5')](_0x1c1c3b);}this[_0x149e('0x18')](_0x28f9c7,_0x149e('0x8'),(_0x186e08,_0x2653db)=>{_0x2653db[_0x149e('0x9')]&&_0x1d1607[_0x149e('0x8')](_0x2653db),this[_0x149e('0x18')](_0x2653db,_0x149e('0xe'),_0x2150ea);}),this[_0x149e('0x18')](_0x28f9c7,_0x149e('0x5'),(_0x5f58c9,_0x3c9c9c)=>{_0x1d1607[_0x149e('0xc')](_0x3c9c9c)&&_0x1d1607[_0x149e('0x5')](_0x3c9c9c),this['stopListening'](_0x3c9c9c,_0x149e('0xe'),_0x2150ea);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x334b=['deactivate','hasActive','get','activeUIs','add','register','requires','push','remove','activeAnnotations','from','annotationsuis-annotation-mismatch','_deactivateAllAnnotations','type','attach','delete','_visibleAnnotations','stopListening','collection','setActiveAnnotation','change:activeAnnotation','plugins','_setSelectedAnnotations','_uisData','has','_uis','refilterAnnotations','context','init','activate','filter','function','annotationsuis-register-already-registered','detach','listenTo','set','destroy','size','_removeActiveAnnotation','deactivateAll','AnnotationsUIs','pluginName','annotationsuis-register-invalid-interface','isActive','_assertAnnotationDoesNotBelongToMultipleUIs','annotationsuis-activate-missing-ui'];(function(_0x49b35c,_0x334b58){const _0x334621=function(_0x5d246f){while(--_0x5d246f){_0x49b35c['push'](_0x49b35c['shift']());}};_0x334621(++_0x334b58);}(_0x334b,0x199));const _0x3346=function(_0x49b35c,_0x334b58){_0x49b35c=_0x49b35c-0x0;let _0x334621=_0x334b[_0x49b35c];return _0x334621;};import{ContextPlugin as _0x101679}from'ckeditor5/src/core';import{CKEditorError as _0x335513}from'ckeditor5/src/utils';import _0x274f78,{bindAnnotationCollections as _0x39b32a}from'./annotationcollection';import _0x59c032 from'./annotations';export default class I extends _0x101679{static get[_0x3346('0xb')](){return[_0x59c032];}static get[_0x3346('0x0')](){return _0x3346('0x2d');}constructor(_0x3e5d7c){super(_0x3e5d7c),this['activeUIs']=new Set(),this[_0x3346('0x1e')]=new Map(),this[_0x3346('0x1c')]=new Map();}[_0x3346('0x21')](){const _0x42bc1e=this['context'][_0x3346('0x1a')]['get'](_0x59c032);this[_0x3346('0x27')](_0x42bc1e,'_activateAnnotation',(_0x2539ca,_0x2d0874)=>{for(const _0x4e4570 of this[_0x3346('0x8')]){const _0x5f588a=this[_0x3346('0x1e')][_0x3346('0x7')](_0x4e4570);(0x0,this[_0x3346('0x1c')]['get'](_0x4e4570)[_0x3346('0x23')])(_0x2d0874)&&_0x5f588a[_0x3346('0x18')](_0x2d0874);}}),this[_0x3346('0x27')](_0x42bc1e,_0x3346('0x11'),()=>{for(const _0xaf8184 of this[_0x3346('0x8')]){this['_uis'][_0x3346('0x7')](_0xaf8184)['setActiveAnnotation'](null);}}),this['listenTo'](_0x42bc1e[_0x3346('0x15')],_0x3346('0x9'),(_0x24e449,_0x146d11)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x146d11);});}[_0x3346('0x6')](){return this[_0x3346('0x8')][_0x3346('0x2a')]>0x0;}[_0x3346('0x2')](_0x4a0111){return this[_0x3346('0x8')][_0x3346('0x1d')](_0x4a0111);}[_0x3346('0x22')](_0x288138,_0x25618c=()=>!0x0){const _0x1bb112=this[_0x3346('0x20')]['plugins'][_0x3346('0x7')](_0x59c032);if(!this['_uis'][_0x3346('0x1d')](_0x288138))throw new _0x335513(_0x3346('0x4'),this,{'uiName':_0x288138});this[_0x3346('0x2')](_0x288138)&&this[_0x3346('0x5')](_0x288138),this['activeUIs'][_0x3346('0x9')](_0x288138);const _0x5039c8=new _0x274f78(),_0x65f8d1=_0x1bb112[_0x3346('0x15')];_0x39b32a({'source':_0x65f8d1,'target':_0x5039c8,'filter':_0x25618c}),this['_uisData'][_0x3346('0x28')](_0x288138,{'collection':_0x5039c8,'filter':_0x25618c});const _0x307af8=this['_uis'][_0x3346('0x7')](_0x288138);_0x307af8[_0x3346('0x13')](_0x5039c8),this[_0x3346('0x27')](_0x307af8,_0x3346('0x19'),(_0x1b67bd,_0x424fa4,_0x1bda61,_0x489a56)=>{_0x489a56&&_0x1bb112[_0x3346('0x2b')](_0x489a56),_0x1bda61&&_0x1bb112['_addActiveAnnotation'](_0x1bda61);});}[_0x3346('0x5')](_0x31f6a8){this[_0x3346('0x8')][_0x3346('0x14')](_0x31f6a8);const _0x3ee643=this[_0x3346('0x1e')]['get'](_0x31f6a8);_0x3ee643[_0x3346('0x26')](),this[_0x3346('0x16')](_0x3ee643),this[_0x3346('0x1c')][_0x3346('0x7')](_0x31f6a8)[_0x3346('0x17')][_0x3346('0x29')](),this[_0x3346('0x1c')][_0x3346('0x14')](_0x31f6a8);}['switchTo'](_0x36bd62){const _0x4bb5b7=this[_0x3346('0x20')][_0x3346('0x1a')]['get'](_0x59c032),_0x323d61=Array[_0x3346('0xf')](_0x4bb5b7[_0x3346('0xe')])[0x0]||null;this['deactivateAll'](),this[_0x3346('0x22')](_0x36bd62);const _0x35e575=this['_uis'][_0x3346('0x7')](_0x36bd62);_0x35e575[_0x3346('0x18')](_0x323d61),_0x35e575[_0x3346('0x1b')]&&_0x323d61&&_0x35e575[_0x3346('0x1b')]([_0x323d61]);}[_0x3346('0x2c')](){for(const _0x31e41b of this['activeUIs'])this[_0x3346('0x5')](_0x31e41b);}[_0x3346('0xa')](_0x3c4de1,_0x1ae671){if(this['_uis']['has'](_0x3c4de1))throw new _0x335513(_0x3346('0x25'));if(_0x3346('0x24')!=typeof _0x1ae671[_0x3346('0x13')]||_0x3346('0x24')!=typeof _0x1ae671['detach']||'function'!=typeof _0x1ae671[_0x3346('0x18')])throw new _0x335513(_0x3346('0x1'),null);this[_0x3346('0x1e')][_0x3346('0x28')](_0x3c4de1,_0x1ae671);}[_0x3346('0x1f')](){const _0x59fa05=this[_0x3346('0x20')]['plugins'][_0x3346('0x7')](_0x59c032)['collection'],_0x18db53=new Map(),_0x5ac722=Array['from'](this[_0x3346('0x8')]);for(const _0x56befc of this[_0x3346('0x8')]){const _0x4edbf1=this['_uisData'][_0x3346('0x7')](_0x56befc)[_0x3346('0x17')];for(const _0xedf127 of _0x4edbf1)_0x18db53[_0x3346('0x28')](_0xedf127,_0x56befc);}for(const _0xba5098 of _0x59fa05){const _0x503800=_0x18db53[_0x3346('0x7')](_0xba5098);this[_0x3346('0x3')](_0xba5098);const _0x5b69d7=_0x5ac722['find'](_0x18b2d1=>this[_0x3346('0x1c')][_0x3346('0x7')](_0x18b2d1)[_0x3346('0x23')](_0xba5098));_0x503800!==_0x5b69d7&&(_0x503800&&this['_uisData'][_0x3346('0x7')](_0x503800)[_0x3346('0x17')][_0x3346('0xd')](_0xba5098),_0x5b69d7&&this['_uisData'][_0x3346('0x7')](_0x5b69d7)[_0x3346('0x17')]['add'](_0xba5098));}}[_0x3346('0x29')](){this['deactivateAll'](),super['destroy']();}[_0x3346('0x3')](_0x35c3c0){const _0x2b4009=[];for(const _0x53788f of this[_0x3346('0x8')]){(0x0,this[_0x3346('0x1c')][_0x3346('0x7')](_0x53788f)['filter'])(_0x35c3c0)&&_0x2b4009[_0x3346('0xc')](_0x53788f);}if(_0x2b4009['length']>0x1)throw new _0x335513(_0x3346('0x10'),null,{'matchedUIs':_0x2b4009,'annotationType':_0x35c3c0[_0x3346('0x12')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3787=['change:range','requires','_dataCollectors','editing','set','editor','function','hasDomSelection','model','getRanges','update','sort','isReadOnly','fire','change:isFocused','collection','isCollapsed','_editorAnnotationsData','range','plugins','containsRange','directChange','element','map','isEqual','getByInnerView','pluginName','annotation','innerView','selection','add','registerAnnotation','EditorAnnotations','delete','focusTracker','document','cancel','listenTo','uiUpdate','has','from','editorannotations-invalid-source-callback','remove','_editorAnnotations','push','view','refreshSelectedViews'];(function(_0x3705e7,_0x37873a){const _0x353b13=function(_0x1c4982){while(--_0x1c4982){_0x3705e7['push'](_0x3705e7['shift']());}};_0x353b13(++_0x37873a);}(_0x3787,0x14b));const _0x353b=function(_0x3705e7,_0x37873a){_0x3705e7=_0x3705e7-0x0;let _0x353b13=_0x3787[_0x3705e7];return _0x353b13;};import{Plugin as _0x4fd92e}from'ckeditor5/src/core';import{CKEditorError as _0x40a26a}from'ckeditor5/src/utils';import{debounce as _0x359c33}from'lodash-es';import _0xabc30f from'./annotations';export default class k extends _0x4fd92e{static get[_0x353b('0x2e')](){return[_0xabc30f];}static get[_0x353b('0x18')](){return _0x353b('0x1e');}constructor(_0x1fcc8e){super(_0x1fcc8e),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x234009=this['editor'],_0x308f29=_0x234009['model'][_0x353b('0x21')][_0x353b('0x1b')],_0x4df858=_0x359c33(()=>this[_0x353b('0x2c')](),0xa);_0x308f29['on'](_0x353b('0x2d'),(_0x3b3f5,_0x59ee40)=>{_0x59ee40[_0x353b('0x13')]&&(_0x4df858[_0x353b('0x22')](),this[_0x353b('0x2c')]());}),this[_0x353b('0x23')](_0x234009[_0x353b('0x1')]['view'][_0x353b('0x21')],_0x353b('0xc'),(_0x179324,_0x54af5e,_0x46ee76)=>{_0x46ee76&&_0x4df858();}),this[_0x353b('0x23')](_0x234009['ui'][_0x353b('0x20')],_0x353b('0xc'),(_0x15f599,_0x4a61bc,_0x4294bb)=>{_0x4294bb||_0x234009[_0x353b('0xa')]||this[_0x353b('0xb')]('blur',{'isAnnotationTracked':_0x23349d=>this['_editorAnnotationsData'][_0x353b('0x25')](_0x23349d[_0x353b('0x1a')])});}),this[_0x353b('0x23')](this[_0x353b('0x3')]['ui'],_0x353b('0x8'),()=>this[_0x353b('0xb')](_0x353b('0x24')));}[_0x353b('0x1d')](_0x1565af){if(this[_0x353b('0x29')][_0x353b('0x25')](_0x1565af))return;this[_0x353b('0x29')][_0x353b('0x1c')](_0x1565af[_0x353b('0x2b')]),this[_0x353b('0x3')]['ui'][_0x353b('0x20')][_0x353b('0x1c')](_0x1565af[_0x353b('0x2b')]['element']);const _0x55ff91=this[_0x353b('0x3')][_0x353b('0x11')]['get'](_0xabc30f);this[_0x353b('0x23')](_0x55ff91[_0x353b('0xd')],'remove',(_0x91292d,_0x13adc1)=>{this['editor']['ui'][_0x353b('0x20')][_0x353b('0x28')](_0x13adc1[_0x353b('0x2b')][_0x353b('0x14')]),this[_0x353b('0x29')][_0x353b('0x1f')](_0x13adc1[_0x353b('0x2b')]);});}[_0x353b('0x5')](){return this['editor'][_0x353b('0x1')][_0x353b('0x2b')]['hasDomSelection'];}['addSourceCollector'](_0x5226f2){if(_0x353b('0x4')!=typeof _0x5226f2)throw new _0x40a26a(_0x353b('0x27'));this[_0x353b('0x0')]['add'](_0x5226f2);}['refreshSelectedViews'](){this[_0x353b('0xb')]('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x176a65,annotations:_0x5d769b}){const _0x2752ce=[],_0x4babec=this['editor'][_0x353b('0x6')][_0x353b('0x21')][_0x353b('0x1b')],_0x5a1c94=Array[_0x353b('0x26')](_0x4babec[_0x353b('0x7')]());for(const [_0x3b9888,_0x559a6a]of this[_0x353b('0xf')]){const _0x1e68c0=_0x5efd19(_0x559a6a),_0x504c92=_0x5d769b[_0x353b('0x17')](_0x3b9888);_0x1e68c0&&_0x504c92&&_0x2752ce[_0x353b('0x2a')]({'annotation':_0x504c92,'range':_0x1e68c0});}function _0x5efd19(_0x3930da){for(const _0x535ccd of _0x3930da)for(const _0x50fcdb of _0x5a1c94)if(_0x535ccd[_0x353b('0x12')](_0x50fcdb,!_0x4babec[_0x353b('0xe')]))return _0x535ccd;return null;}return _0x2752ce[_0x353b('0x9')]((_0x3f81f0,_0x5ba0d3)=>{const _0x31aaa0=_0x3f81f0[_0x353b('0x10')],_0x5c6d6e=_0x5ba0d3[_0x353b('0x10')];if(!_0x31aaa0[_0x353b('0x16')](_0x5c6d6e)){if(_0x31aaa0[_0x353b('0x12')](_0x5c6d6e,!0x0))return 0x1;if(_0x5c6d6e[_0x353b('0x12')](_0x31aaa0,!0x0))return-0x1;}return _0x3f81f0[_0x353b('0x19')]==_0x176a65?-0x1:_0x5ba0d3['annotation']==_0x176a65?0x1:0x0;})[_0x353b('0x15')](_0x56ed91=>_0x56ed91[_0x353b('0x19')]);}get['_editorAnnotationsData'](){const _0x418b90=new Map();for(const _0x5e9c4e of Array[_0x353b('0x26')](this[_0x353b('0x0')]))for(const [_0x451d10,_0x1f1fa1]of _0x5e9c4e())_0x418b90[_0x353b('0x2')](_0x451d10,_0x1f1fa1);return _0x418b90;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1236=['register','delete','Esc','change:visibleView','document','isActive','_addAnnotationToBalloon','inlineannotations-detach-not-attached','attach','getRangeAt','getOrderedSelectedAnnotations','detach','plugins','_removeAnnotationFromBalloon','showStack','annotations','context','_forceRefresh','change:isFocused','has','change:height','addObserver','set','includes','length','add','inlineannotations-not-allowed-with-context','remove','_closeAnnotation','mousedown','bind','_manuallyClosed','get','_selectedAnnotations','clear','activeAnnotation','view','_addedAnnotations','hasView','blur','refresh','EditorAnnotations','hasActive','getByView','setActiveAnnotation','editing','targetRect','focus','editableElement','update','listenTo','focusTracker','keystrokes','updatePosition','editor','target','inlineannotations-attach-already-attached','inline','getSelection','isAttached','afterInit','selection','_setSelectedAnnotations','isFocused','_balloon','switchTo','visibleView'];(function(_0xf28a39,_0x1236d9){const _0xf430d=function(_0x490ea8){while(--_0x490ea8){_0xf28a39['push'](_0xf28a39['shift']());}};_0xf430d(++_0x1236d9);}(_0x1236,0xa3));const _0xf430=function(_0xf28a39,_0x1236d9){_0xf28a39=_0xf28a39-0x0;let _0xf430d=_0x1236[_0xf28a39];return _0xf430d;};import{Plugin as _0x15e13f}from'ckeditor5/src/core';import _0x289670 from'./annotationsuis';import _0x53bb3a from'./editorannotations';import{ContextualBalloon as _0x6d958c}from'ckeditor5/src/ui';import{MouseObserver as _0xae4d46}from'ckeditor5/src/engine';import{CKEditorError as _0x3f8f82}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x15e13f{static get['requires'](){return[_0x53bb3a,_0x6d958c,_0x289670];}static get['pluginName'](){return'InlineAnnotations';}constructor(_0x4f46e8){super(_0x4f46e8),_0x4f46e8[_0xf430('0x10')]['view'][_0xf430('0x3b')](_0xae4d46),this[_0xf430('0x1e')]=!0x1,this[_0xf430('0x3c')](_0xf430('0x6'),null),this['annotations']=null,this[_0xf430('0x2')]=new Set(),this[_0xf430('0x23')]=_0x4f46e8[_0xf430('0x32')][_0xf430('0x3')](_0x6d958c),this['_addedAnnotations']=new Set(),this[_0xf430('0x4')]=[],this['_forceRefresh']=!0x1;}['init'](){const _0xb542f9=this[_0xf430('0x19')][_0xf430('0x32')][_0xf430('0x3')](_0x289670);_0xb542f9[_0xf430('0x36')]===this[_0xf430('0x19')]&&(_0xb542f9[_0xf430('0x26')]('inline',this),this[_0xf430('0x19')][_0xf430('0x17')][_0xf430('0x3c')](_0xf430('0x28'),(_0x3ee20d,_0x49c736)=>{const _0x5886e7=this[_0xf430('0x23')];if(this[_0xf430('0x1e')]&&_0x5886e7[_0xf430('0x25')]){const _0x59fa0c=this[_0xf430('0x35')]['getByView'](_0x5886e7[_0xf430('0x25')]);this['_closeAnnotation'](_0x59fa0c),_0x49c736();}}));}[_0xf430('0x1f')](){const _0x29a124=this['editor'][_0xf430('0x32')][_0xf430('0x3')](_0x289670);_0x29a124[_0xf430('0x36')]===this[_0xf430('0x19')]&&(_0x29a124[_0xf430('0xd')]()||_0x29a124[_0xf430('0x24')](_0xf430('0x1c')));}[_0xf430('0xf')](_0x25895b){_0x25895b!==this[_0xf430('0x6')]&&(this['activeAnnotation']&&(this['activeAnnotation'][_0xf430('0x2b')]=!0x1),_0x25895b&&this[_0xf430('0x19')]['ui'][_0xf430('0x16')][_0xf430('0x22')]&&(this[_0xf430('0x2c')](_0x25895b,!0x0),_0x25895b['isActive']=!0x0),_0x25895b||this['_setSelectedAnnotations']([]),this[_0xf430('0x6')]=_0x25895b);}[_0xf430('0x2e')](_0x32058f){this[_0xf430('0x35')]=_0x32058f;const _0xc11c6e=this[_0xf430('0x19')][_0xf430('0x32')]['get'](_0x289670),_0x2d7b15=this[_0xf430('0x23')];if(this[_0xf430('0x1e')])throw new _0x3f8f82(_0xf430('0x1b'),this);if(_0xc11c6e[_0xf430('0x36')]!==this[_0xf430('0x19')])throw new _0x3f8f82(_0xf430('0x40'),this);const _0x355047=this['editor'][_0xf430('0x32')]['get'](_0xf430('0xc'));this[_0xf430('0x15')](_0x355047,_0xf430('0xb'),function(){const _0x1de642=_0x355047[_0xf430('0x30')]({'activeAnnotation':this[_0xf430('0x6')],'annotations':this['annotations']});if(!this['_forceRefresh']&&(_0xf70583=_0x1de642,_0x5afd11=this['_selectedAnnotations'],_0xf70583[_0xf430('0x3e')]===_0x5afd11[_0xf430('0x3e')]&&_0xf70583['every'](_0x4e155b=>_0x5afd11[_0xf430('0x3d')](_0x4e155b))))return;var _0xf70583,_0x5afd11;this[_0xf430('0x37')]=!0x1,this[_0xf430('0x21')](_0x1de642),this[_0xf430('0xf')](_0x1de642[0x0]||null);}[_0xf430('0x1')](this)),this['listenTo'](_0x355047,_0xf430('0xa'),(_0x4646e1,{isAnnotationTracked:_0x2c6a8c})=>{this[_0xf430('0x6')]&&_0x2c6a8c(this[_0xf430('0x6')])&&(this[_0xf430('0x21')]([]),this[_0xf430('0xf')](null));}),this[_0xf430('0x15')](this[_0xf430('0x19')]['ui'][_0xf430('0x16')],_0xf430('0x38'),(_0x2dffd2,_0x48d3c7,_0x4ec2f1)=>{_0x4ec2f1||this[_0xf430('0xf')](null);}),this[_0xf430('0x15')](_0x32058f,_0xf430('0x41'),(_0xf4e253,_0xa2e347)=>{this[_0xf430('0x33')](_0xa2e347),_0xa2e347===this[_0xf430('0x6')]&&this['setActiveAnnotation'](null);}),this[_0xf430('0x15')](_0x2d7b15,_0xf430('0x29'),(_0x932f86,_0x2e643e,_0x2b207c,_0x1ee57c)=>{if(_0x1ee57c&&this['stopListening'](_0x1ee57c),!_0x2b207c||!_0x32058f[_0xf430('0xe')](_0x2b207c))return;const _0x2d8317=_0x32058f[_0xf430('0xe')](_0x2b207c);this[_0xf430('0x15')](_0x2b207c,_0xf430('0x3a'),()=>{_0x2d7b15[_0xf430('0x18')]();}),this[_0xf430('0x15')](_0x2b207c,_0xf430('0x28'),()=>{this[_0xf430('0x42')](_0x2d8317),this[_0xf430('0x19')][_0xf430('0x10')][_0xf430('0x7')][_0xf430('0x12')]();}),this[_0xf430('0x6')]!==_0x2d8317&&this[_0xf430('0xf')](_0x2d8317);}),this[_0xf430('0x15')](this[_0xf430('0x19')]['ui'],_0xf430('0x14'),()=>{_0x2d7b15[_0xf430('0x25')]&&(_0x32058f['getByView'](_0x2d7b15[_0xf430('0x25')])&&_0x2d7b15['updatePosition']());}),this[_0xf430('0x15')](this[_0xf430('0x19')][_0xf430('0x10')]['view']['document'],_0xf430('0x0'),()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed'][_0xf430('0x5')]();}),this['editor'][_0xf430('0x10')][_0xf430('0x7')][_0xf430('0x2a')][_0xf430('0x20')][_0xf430('0x13')]&&this[_0xf430('0x19')][_0xf430('0x10')][_0xf430('0x7')]['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x3f8f82(_0xf430('0x2d'),this);this[_0xf430('0xf')](null);for(const _0x4c9125 of this[_0xf430('0x8')])this[_0xf430('0x33')](_0x4c9125);this['stopListening'](),this[_0xf430('0x1e')]=!0x1,this[_0xf430('0x35')]=null;}['destroy'](){this[_0xf430('0x1e')]&&this[_0xf430('0x31')]();}[_0xf430('0x21')](_0x551168){for(const _0x52be68 of this[_0xf430('0x4')])_0x551168[_0xf430('0x3d')](_0x52be68)||this[_0xf430('0x2')]['delete'](_0x52be68);for(const _0x4e3c4a of this['annotations'])_0x551168[_0xf430('0x3d')](_0x4e3c4a)||this[_0xf430('0x33')](_0x4e3c4a);if(this[_0xf430('0x19')]['ui']['focusTracker']['isFocused'])for(const _0x1e28d0 of _0x551168)this[_0xf430('0x2c')](_0x1e28d0);this[_0xf430('0x4')]=_0x551168;}[_0xf430('0x2c')](_0x3edb77,_0x20ac9e){this['_manuallyClosed']['has'](_0x3edb77)||(this[_0xf430('0x8')][_0xf430('0x39')](_0x3edb77)||this[_0xf430('0x23')][_0xf430('0x9')](_0x3edb77[_0xf430('0x7')])||(this[_0xf430('0x8')]['add'](_0x3edb77),this[_0xf430('0x23')]['add']({'stackId':_0x3edb77[_0xf430('0x7')]['id'],'view':_0x3edb77[_0xf430('0x7')],'position':{'target':()=>_0x3edb77[_0xf430('0x1a')]||_0x3edb77[_0xf430('0x11')]||document[_0xf430('0x1d')]()[_0xf430('0x2f')](0x0)}})),_0x20ac9e&&this[_0xf430('0x23')][_0xf430('0x34')](_0x3edb77['view']['id']));}[_0xf430('0x33')](_0x26e730){this[_0xf430('0x8')][_0xf430('0x39')](_0x26e730)&&this[_0xf430('0x23')]['hasView'](_0x26e730['view'])&&(this[_0xf430('0x8')][_0xf430('0x27')](_0x26e730),this[_0xf430('0x23')][_0xf430('0x41')](_0x26e730[_0xf430('0x7')]));}['_closeAnnotation'](_0x502238){this[_0xf430('0x2')][_0xf430('0x3f')](_0x502238),this[_0xf430('0x33')](_0x502238);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4910=['attach','_hideBalloon','_refreshPositioningDebounced','_showBalloon','_selectedAnnotations','isDirty','southArrowNorthWest','context','view','rearrange','plugins','cancel','element','southArrowNorthEast','clear','delete','_annotations','keydown','getByView','_integrateWithEditorAnnotations','_editorAnnotations','focus','contains','preventClosingBalloon','listenTo','_destroyEditorAnnotationsIntegration','execute','includes','off','isVisible','bind','isAttached','set','first','NarrowSidebar','unpin','ready','EditorAnnotations','refreshPositioning','hasDomSelection','locale','annotations','content','setActiveAnnotation','_attachToContainer','target','attachToDom','uiUpdate','northArrowSouth','resize','annotationType','refresh','stopListening','create','Sidebar','bodyCollection','remove','_setSelectedAnnotations','length','_manuallyClosedAnnotationViews','register','_detachListeners','destroy','blur','defaultPositions','init','_updateBalloonPosition','activeAnnotation','mousedown','stop','add','detach','_annotationToNarrowView','_refreshPositioning','balloonPanelView','narrowsidebar-detach-not-attached','esc','addEventListener','getSidebarItemView','type','from','ck-sidebar--narrow','change:container','high','editors','requires','get','_domEmitter','preventDefault'];(function(_0x425f7f,_0x491060){const _0x38bd04=function(_0x2c048a){while(--_0x2c048a){_0x425f7f['push'](_0x425f7f['shift']());}};_0x38bd04(++_0x491060);}(_0x4910,0x17b));const _0x38bd=function(_0x425f7f,_0x491060){_0x425f7f=_0x425f7f-0x0;let _0x38bd04=_0x4910[_0x425f7f];return _0x38bd04;};import{ContextPlugin as _0x18e68e}from'ckeditor5/src/core';import _0x155c57 from'./annotationsuis';import _0x443cbb from'./sidebar';import _0x38f6c7 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x3bd854,BodyCollection as _0x57ec29}from'ckeditor5/src/ui';import{CKEditorError as _0x503497,DomEmitterMixin as _0x28d884,keyCodes as _0xaa88fb,Collection as _0x378c4a}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x3b42c7}from'lodash-es';export default class s extends _0x18e68e{static get[_0x38bd('0x3e')](){return[_0x443cbb,_0x155c57];}static get['pluginName'](){return _0x38bd('0xb');}constructor(_0x2ef356){super(_0x2ef356),this['isAttached']=!0x1,this[_0x38bd('0x24')]=new Set(),this['_domEmitter']=Object[_0x38bd('0x1e')](_0x28d884),this[_0x38bd('0x31')]=new Map(),this[_0x38bd('0x9')](_0x38bd('0x2c'),null),this['annotations']=null,this[_0x38bd('0x46')]=[],this[_0x38bd('0x56')]=new _0x378c4a(),this[_0x38bd('0x44')]=_0x3b42c7(()=>{this[_0x38bd('0x32')]();},0xfa,{'leading':!0x1});}[_0x38bd('0x2a')](){this['context'][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x155c57)[_0x38bd('0x25')]('narrowSidebar',this),this['bodyCollection']=new _0x57ec29(this[_0x38bd('0x49')][_0x38bd('0x11')]),this[_0x38bd('0x33')]=new _0x3bd854(this[_0x38bd('0x49')][_0x38bd('0x11')]),this['bodyCollection'][_0x38bd('0x17')](),this[_0x38bd('0x20')][_0x38bd('0x2f')](this[_0x38bd('0x33')]);}[_0x38bd('0x42')](_0x19974a){this[_0x38bd('0x12')]=_0x19974a;const _0x1494a4=this[_0x38bd('0x49')][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x443cbb),_0x49f341=this[_0x38bd('0x33')];if(_0x1494a4[_0x38bd('0x52')]=_0x19974a,this['isAttached'])throw new _0x503497('narrowsidebar-attach-already-attached',this);this[_0x38bd('0x8')]=!0x0,this[_0x38bd('0x1')](_0x1494a4,'set:container',()=>{this[_0x38bd('0x30')](),this[_0x38bd('0x1')](_0x1494a4,_0x38bd('0x3b'),_0x1a26eb=>{_0x1a26eb[_0x38bd('0x5')](),this[_0x38bd('0x42')](_0x19974a);});}),_0x1494a4[_0x38bd('0x15')]({'viewClass':_0x38bd('0x3a'),'spaceBetweenItems':0x5});const _0x4782d2=_0x513144=>{const _0x34ae98=new _0x38f6c7(this[_0x38bd('0x49')][_0x38bd('0x11')]);_0x1494a4['addAnnotation'](_0x513144,_0x34ae98),this[_0x38bd('0x31')][_0x38bd('0x9')](_0x513144,_0x34ae98),_0x34ae98[_0x38bd('0x7')]('isDirty',_0x38bd('0x1b'),'number')['to'](_0x513144['view'],_0x38bd('0x47'),_0x38bd('0x38'),_0x38bd('0x23')),_0x34ae98['on'](_0x38bd('0x3'),()=>{this['_manuallyClosedAnnotationViews'][_0x38bd('0x50')](),_0x49f341[_0x38bd('0x13')][_0x38bd('0xa')]!==_0x513144['view']?(this[_0x38bd('0x45')](_0x513144),_0x513144[_0x38bd('0x4a')][_0x38bd('0x4e')][_0x38bd('0x57')](),this[_0x38bd('0x14')](_0x513144)):this[_0x38bd('0x14')](null);});};for(const _0x49fb9e of _0x19974a)_0x4782d2(_0x49fb9e);this[_0x38bd('0x1')](_0x19974a,_0x38bd('0x2f'),(_0x5b2f29,_0x4b8216)=>{_0x4782d2(_0x4b8216);}),this['listenTo'](_0x19974a,_0x38bd('0x21'),(_0x49e10a,_0x222c77,_0xdae87a)=>{this[_0x38bd('0x31')][_0x38bd('0x3f')](_0x222c77)['destroy'](),this['_annotationToNarrowView'][_0x38bd('0x51')](_0x222c77),_0x1494a4[_0x38bd('0x4b')]({'removedAnnotation':_0x222c77,'previousAnnotation':_0x19974a[_0x38bd('0x3f')](_0xdae87a-0x1),'nextAnnotation':_0x19974a[_0x38bd('0x3f')](_0xdae87a+0x1)}),_0x222c77===this[_0x38bd('0x2c')]&&this[_0x38bd('0x14')](null);},{'priority':'low'}),this['listenTo'](_0x19974a,'focus',(_0x4b3a66,_0x4a7d33)=>{this[_0x38bd('0x14')](_0x4a7d33);}),this['listenTo'](_0x19974a,_0x38bd('0x28'),()=>{this[_0x38bd('0x14')](null);}),this[_0x38bd('0x40')][_0x38bd('0x1')](document,_0x38bd('0x53'),(_0x2fa28c,_0x493254)=>{_0x493254['keyCode']===_0xaa88fb[_0x38bd('0x35')]&&_0x49f341[_0x38bd('0x6')]&&(this[_0x38bd('0x24')]['add'](_0x49f341[_0x38bd('0x13')][_0x38bd('0xa')]),this[_0x38bd('0x43')](),_0x493254['stopPropagation'](),_0x493254[_0x38bd('0x41')]());}),this[_0x38bd('0x40')]['listenTo'](document,'mousedown',(_0x401295,_0x1323e0)=>{const _0x19001c=_0x1323e0['target'];_0x49f341[_0x38bd('0x6')]&&_0x49f341[_0x38bd('0x4e')][_0x38bd('0x58')](_0x19001c)||_0x1494a4[_0x38bd('0x4a')][_0x38bd('0x4e')][_0x38bd('0x58')](_0x19001c)||_0x401295[_0x38bd('0x0')]||(this[_0x38bd('0x24')][_0x38bd('0x50')](),this[_0x38bd('0x43')](),this[_0x38bd('0x14')](null));});const _0x1590cd=this['context'][_0x38bd('0x3d')]?this[_0x38bd('0x49')][_0x38bd('0x3d')]:new _0x378c4a([this[_0x38bd('0x49')]]);for(const _0x515a6c of _0x1590cd)this[_0x38bd('0x55')](_0x515a6c);this['listenTo'](_0x1590cd,'add',(_0x245892,_0x58a4eb)=>{this['listenTo'](_0x58a4eb,_0x38bd('0xd'),()=>{this[_0x38bd('0x55')](_0x58a4eb);});}),this[_0x38bd('0x1')](_0x1590cd,_0x38bd('0x21'),(_0x431e03,_0x5550a7)=>{_0x5550a7[_0x38bd('0x4c')]['has'](_0x38bd('0xe'))&&this[_0x38bd('0x2')](_0x5550a7[_0x38bd('0x4c')]['get'](_0x38bd('0xe')));}),window[_0x38bd('0x36')](_0x38bd('0x1a'),this[_0x38bd('0x44')]),this[_0x38bd('0x32')]();}[_0x38bd('0x14')](_0x3343e4){if(_0x3343e4===this['activeAnnotation'])return;const _0x5c120c=this['context'][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x38bd('0x1f'));if(_0x5c120c[_0x38bd('0x1c')]({'blurredAnnotation':this[_0x38bd('0x2c')],'activatedAnnotation':_0x3343e4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x3343e4)_0x5c120c[_0x38bd('0x37')](_0x3343e4)?this['_showBalloon'](_0x3343e4):this[_0x38bd('0x43')]();else this[_0x38bd('0x43')]();this[_0x38bd('0x2c')]=_0x3343e4;}[_0x38bd('0x30')](){if(!this['isAttached'])throw new _0x503497(_0x38bd('0x34'),this);this['setActiveAnnotation'](null);const _0x4a61df=this[_0x38bd('0x49')]['plugins'][_0x38bd('0x3f')]('Sidebar');this['_hideBalloon'](),Array[_0x38bd('0x39')](this[_0x38bd('0x31')]['values'](),_0x917440=>_0x917440[_0x38bd('0x27')]()),this[_0x38bd('0x31')][_0x38bd('0x50')](),_0x4a61df['_detachFromContainer'](this[_0x38bd('0x12')]),this[_0x38bd('0x1d')](),this['_domEmitter'][_0x38bd('0x1d')](),this[_0x38bd('0x1d')](this[_0x38bd('0x49')][_0x38bd('0x3d')]);for(const _0x180dce of Array[_0x38bd('0x39')](this[_0x38bd('0x56')]))this['_destroyEditorAnnotationsIntegration'](_0x180dce);window['removeEventListener'](_0x38bd('0x1a'),this[_0x38bd('0x44')]),this[_0x38bd('0x44')][_0x38bd('0x4d')](),this[_0x38bd('0x46')]=[],this[_0x38bd('0x8')]=!0x1,this[_0x38bd('0x12')]=null;}['destroy'](){this[_0x38bd('0x8')]&&this['detach'](),this[_0x38bd('0x20')]['detachFromDom']();}[_0x38bd('0x55')](_0x1ad2ef){const _0x898b76=_0x1ad2ef[_0x38bd('0x4c')][_0x38bd('0x3f')](_0x38bd('0xe')),_0x632a04=this[_0x38bd('0x49')][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x443cbb),_0x976898=this['annotations'],_0x13f2bc=this[_0x38bd('0x33')],_0x31e00a=()=>{const _0x26c009=_0x898b76['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x38bd('0x2c')],'annotations':this['annotations']});this[_0x38bd('0x22')](_0x26c009),this[_0x38bd('0x14')](_0x26c009[0x0]||null);};this[_0x38bd('0x1')](_0x898b76,_0x38bd('0x1c'),_0x31e00a),this['listenTo'](_0x898b76,_0x38bd('0x28'),(_0x17670d,{isAnnotationTracked:_0x3639b3})=>{this[_0x38bd('0x2c')]&&_0x3639b3(this[_0x38bd('0x2c')])&&(this[_0x38bd('0x22')]([]),this[_0x38bd('0x14')](null));}),this[_0x38bd('0x1')](_0x898b76,_0x38bd('0x18'),()=>{this[_0x38bd('0x44')]();}),this[_0x38bd('0x1')](_0x976898,_0x38bd('0x28'),_0x4230e1=>{_0x898b76[_0x38bd('0x10')]()&&_0x4230e1[_0x38bd('0x2e')]();},{'priority':'high'}),this[_0x38bd('0x40')][_0x38bd('0x1')](document,_0x38bd('0x2d'),(_0x428613,_0x1eec42)=>{const _0x20ec9b=_0x1eec42[_0x38bd('0x16')];_0x13f2bc[_0x38bd('0x6')]&&_0x13f2bc[_0x38bd('0x4e')][_0x38bd('0x58')](_0x20ec9b)||_0x632a04['view'][_0x38bd('0x4e')][_0x38bd('0x58')](_0x20ec9b)||this[_0x38bd('0x2c')]&&_0x898b76[_0x38bd('0x10')]()&&(_0x31e00a(),_0x428613[_0x38bd('0x0')]=!0x0);},{'priority':_0x38bd('0x3c')}),this['_editorAnnotations']['add'](_0x898b76);}[_0x38bd('0x2')](_0x5b08cb){_0x5b08cb&&(this[_0x38bd('0x1d')](_0x5b08cb),this[_0x38bd('0x56')][_0x38bd('0x21')](_0x5b08cb));}[_0x38bd('0x22')](_0x1acb22){for(const _0x46f781 of this[_0x38bd('0x46')])_0x1acb22[_0x38bd('0x4')](_0x46f781)||this['_manuallyClosedAnnotationViews'][_0x38bd('0x51')](_0x46f781[_0x38bd('0x4a')]);this[_0x38bd('0x46')]=_0x1acb22;}[_0x38bd('0x32')](){const _0x411c2d=this[_0x38bd('0x33')];this['annotations'][_0x38bd('0xf')](),_0x411c2d[_0x38bd('0x6')]&&this[_0x38bd('0x2b')]();}['_showBalloon'](_0x51c89b){if(this[_0x38bd('0x24')]['has'](_0x51c89b['view']))return;const _0x115505=this[_0x38bd('0x33')]['content'][_0x38bd('0xa')];_0x115505!==_0x51c89b[_0x38bd('0x4a')]?(_0x115505&&this[_0x38bd('0x26')](_0x115505),this['_attachListeners'](_0x51c89b['view']),this['balloonPanelView'][_0x38bd('0x13')][_0x38bd('0x50')](),this[_0x38bd('0x33')][_0x38bd('0x13')][_0x38bd('0x2f')](_0x51c89b[_0x38bd('0x4a')]),this[_0x38bd('0x2b')]()):this[_0x38bd('0x2b')]();}[_0x38bd('0x2b')](){const _0x1cc2aa=this['balloonPanelView'][_0x38bd('0x13')]['first'],_0x566e85=this[_0x38bd('0x12')][_0x38bd('0x54')](_0x1cc2aa);if(!this[_0x38bd('0x31')]['has'](_0x566e85))return;const _0x54c1e0=this['_annotationToNarrowView'][_0x38bd('0x3f')](_0x566e85)['element'],_0x1931d8=function(){const _0x7dcc44=_0x3bd854[_0x38bd('0x29')];return[_0x7dcc44[_0x38bd('0x4f')],_0x7dcc44['northArrowSouthEast'],_0x7dcc44['southArrowNorth'],_0x7dcc44[_0x38bd('0x19')],_0x7dcc44[_0x38bd('0x48')],_0x7dcc44['northArrowSouthWest']];}();this[_0x38bd('0x33')]['pin']({'target':_0x54c1e0,'positions':_0x1931d8});}['_hideBalloon'](){const _0x4794c3=this[_0x38bd('0x33')],_0x34e926=_0x4794c3['content']['first'];_0x34e926&&(this[_0x38bd('0x26')](_0x34e926),_0x4794c3[_0x38bd('0xc')](),_0x4794c3[_0x38bd('0x13')][_0x38bd('0x50')]());}['_attachListeners'](_0x3df0ec){this[_0x38bd('0x1')](_0x3df0ec,'change:height',()=>this[_0x38bd('0x2b')]()),this[_0x38bd('0x1')](_0x3df0ec,'Esc',(_0x9652d1,_0x1d0e1a)=>{this['_manuallyClosedAnnotationViews'][_0x38bd('0x2f')](_0x3df0ec),this[_0x38bd('0x43')](),_0x1d0e1a();});}['_detachListeners'](_0x131d85){this[_0x38bd('0x1d')](_0x131d85);}}
|
|
23
|
+
const _0x533b=['Sidebar','_selectedAnnotations','contains','low','detach','requires','_showBalloon','resize','activeAnnotation','blur','addAnnotation','create','delete','_editorAnnotations','Esc','init','attach','change:container','isDirty','_destroyEditorAnnotationsIntegration','first','uiUpdate','_domEmitter','mousedown','editors','isVisible','focus','destroy','refreshPositioning','listenTo','stopListening','_annotations','element','_refreshPositioning','esc','bodyCollection','annotations','type','narrowsidebar-detach-not-attached','narrowsidebar-attach-already-attached','ready','_integrateWithEditorAnnotations','set:container','_detachFromContainer','attachToDom','annotationType','rearrange','add','from','detachFromDom','change:height','plugins','addEventListener','southArrowNorthEast','narrowSidebar','_hideBalloon','_manuallyClosedAnnotationViews','content','southArrowNorth','setActiveAnnotation','getSidebarItemView','getOrderedSelectedAnnotations','view','get','EditorAnnotations','refresh','clear','preventDefault','context','northArrowSouthEast','has','_updateBalloonPosition','set','pin','remove','high','_attachListeners','_detachListeners','number','_refreshPositioningDebounced','balloonPanelView','northArrowSouth','getByView','target','isAttached','hasDomSelection','locale','register','_annotationToNarrowView','includes','execute','defaultPositions','northArrowSouthWest','preventClosingBalloon','_setSelectedAnnotations','keydown'];(function(_0x228511,_0x533b3b){const _0x2de320=function(_0x2cd0d0){while(--_0x2cd0d0){_0x228511['push'](_0x228511['shift']());}};_0x2de320(++_0x533b3b);}(_0x533b,0xf5));const _0x2de3=function(_0x228511,_0x533b3b){_0x228511=_0x228511-0x0;let _0x2de320=_0x533b[_0x228511];return _0x2de320;};import{ContextPlugin as _0x4aa965}from'ckeditor5/src/core';import _0x274d20 from'./annotationsuis';import _0x1cbf17 from'./sidebar';import _0x56795e from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2b4ed3,BodyCollection as _0x1c154a}from'ckeditor5/src/ui';import{CKEditorError as _0x5cbe7a,DomEmitterMixin as _0x3e0a7b,keyCodes as _0x34f758,Collection as _0x5b1bbc}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x224c6e}from'lodash-es';export default class s extends _0x4aa965{static get[_0x2de3('0x30')](){return[_0x1cbf17,_0x274d20];}static get['pluginName'](){return'NarrowSidebar';}constructor(_0x378dac){super(_0x378dac),this[_0x2de3('0x1f')]=!0x1,this[_0x2de3('0x3')]=new Set(),this[_0x2de3('0x41')]=Object[_0x2de3('0x36')](_0x3e0a7b),this[_0x2de3('0x23')]=new Map(),this[_0x2de3('0x13')](_0x2de3('0x33'),null),this[_0x2de3('0x4f')]=null,this[_0x2de3('0x2c')]=[],this[_0x2de3('0x38')]=new _0x5b1bbc(),this[_0x2de3('0x1a')]=_0x224c6e(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x2de3('0x3a')](){this[_0x2de3('0xf')][_0x2de3('0x5e')][_0x2de3('0xa')](_0x274d20)[_0x2de3('0x22')](_0x2de3('0x1'),this),this['bodyCollection']=new _0x1c154a(this[_0x2de3('0xf')][_0x2de3('0x21')]),this[_0x2de3('0x1b')]=new _0x2b4ed3(this[_0x2de3('0xf')][_0x2de3('0x21')]),this[_0x2de3('0x4e')][_0x2de3('0x57')](),this[_0x2de3('0x4e')]['add'](this[_0x2de3('0x1b')]);}[_0x2de3('0x3b')](_0x33124d){this[_0x2de3('0x4f')]=_0x33124d;const _0x4f83b3=this['context'][_0x2de3('0x5e')]['get'](_0x1cbf17),_0x4c7901=this['balloonPanelView'];if(_0x4f83b3[_0x2de3('0x4a')]=_0x33124d,this[_0x2de3('0x1f')])throw new _0x5cbe7a(_0x2de3('0x52'),this);this[_0x2de3('0x1f')]=!0x0,this[_0x2de3('0x48')](_0x4f83b3,_0x2de3('0x55'),()=>{this[_0x2de3('0x2f')](),this['listenTo'](_0x4f83b3,_0x2de3('0x3c'),_0x4fca61=>{_0x4fca61['off'](),this[_0x2de3('0x3b')](_0x33124d);});}),_0x4f83b3['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x1a0b69=_0x3ba75a=>{const _0x41e5e8=new _0x56795e(this[_0x2de3('0xf')][_0x2de3('0x21')]);_0x4f83b3[_0x2de3('0x35')](_0x3ba75a,_0x41e5e8),this[_0x2de3('0x23')][_0x2de3('0x13')](_0x3ba75a,_0x41e5e8),_0x41e5e8['bind'](_0x2de3('0x3d'),_0x2de3('0x58'),_0x2de3('0x19'))['to'](_0x3ba75a[_0x2de3('0x9')],_0x2de3('0x3d'),_0x2de3('0x50'),'length'),_0x41e5e8['on'](_0x2de3('0x25'),()=>{this['_manuallyClosedAnnotationViews'][_0x2de3('0xd')](),_0x4c7901[_0x2de3('0x4')][_0x2de3('0x3f')]!==_0x3ba75a['view']?(this[_0x2de3('0x31')](_0x3ba75a),_0x3ba75a['view']['element']['focus'](),this[_0x2de3('0x6')](_0x3ba75a)):this[_0x2de3('0x6')](null);});};for(const _0x1bb7d5 of _0x33124d)_0x1a0b69(_0x1bb7d5);this[_0x2de3('0x48')](_0x33124d,'add',(_0x5d0935,_0x2f4cbe)=>{_0x1a0b69(_0x2f4cbe);}),this['listenTo'](_0x33124d,_0x2de3('0x15'),(_0x307a69,_0x314e49,_0xe312d3)=>{this[_0x2de3('0x23')][_0x2de3('0xa')](_0x314e49)['destroy'](),this[_0x2de3('0x23')][_0x2de3('0x37')](_0x314e49),_0x4f83b3[_0x2de3('0x59')]({'removedAnnotation':_0x314e49,'previousAnnotation':_0x33124d[_0x2de3('0xa')](_0xe312d3-0x1),'nextAnnotation':_0x33124d[_0x2de3('0xa')](_0xe312d3+0x1)}),_0x314e49===this[_0x2de3('0x33')]&&this['setActiveAnnotation'](null);},{'priority':_0x2de3('0x2e')}),this[_0x2de3('0x48')](_0x33124d,_0x2de3('0x45'),(_0x417e85,_0x4b1755)=>{this[_0x2de3('0x6')](_0x4b1755);}),this[_0x2de3('0x48')](_0x33124d,_0x2de3('0x34'),()=>{this['setActiveAnnotation'](null);}),this[_0x2de3('0x41')][_0x2de3('0x48')](document,_0x2de3('0x2a'),(_0x19e203,_0x6a387e)=>{_0x6a387e['keyCode']===_0x34f758[_0x2de3('0x4d')]&&_0x4c7901['isVisible']&&(this[_0x2de3('0x3')][_0x2de3('0x5a')](_0x4c7901[_0x2de3('0x4')][_0x2de3('0x3f')]),this[_0x2de3('0x2')](),_0x6a387e['stopPropagation'](),_0x6a387e[_0x2de3('0xe')]());}),this['_domEmitter'][_0x2de3('0x48')](document,_0x2de3('0x42'),(_0x5923cd,_0x5b2bfe)=>{const _0x4a1df4=_0x5b2bfe[_0x2de3('0x1e')];_0x4c7901[_0x2de3('0x44')]&&_0x4c7901['element'][_0x2de3('0x2d')](_0x4a1df4)||_0x4f83b3['view']['element'][_0x2de3('0x2d')](_0x4a1df4)||_0x5923cd[_0x2de3('0x28')]||(this[_0x2de3('0x3')][_0x2de3('0xd')](),this[_0x2de3('0x2')](),this[_0x2de3('0x6')](null));});const _0x33a54c=this[_0x2de3('0xf')][_0x2de3('0x43')]?this[_0x2de3('0xf')][_0x2de3('0x43')]:new _0x5b1bbc([this[_0x2de3('0xf')]]);for(const _0x139195 of _0x33a54c)this[_0x2de3('0x54')](_0x139195);this[_0x2de3('0x48')](_0x33a54c,'add',(_0x150c0b,_0x723d5b)=>{this[_0x2de3('0x48')](_0x723d5b,_0x2de3('0x53'),()=>{this[_0x2de3('0x54')](_0x723d5b);});}),this['listenTo'](_0x33a54c,_0x2de3('0x15'),(_0x367819,_0x4cf5c5)=>{_0x4cf5c5['plugins'][_0x2de3('0x11')](_0x2de3('0xb'))&&this[_0x2de3('0x3e')](_0x4cf5c5[_0x2de3('0x5e')]['get'](_0x2de3('0xb')));}),window[_0x2de3('0x5f')](_0x2de3('0x32'),this[_0x2de3('0x1a')]),this[_0x2de3('0x4c')]();}[_0x2de3('0x6')](_0xf7cf50){if(_0xf7cf50===this['activeAnnotation'])return;const _0x7a15=this[_0x2de3('0xf')]['plugins'][_0x2de3('0xa')](_0x2de3('0x2b'));if(_0x7a15[_0x2de3('0xc')]({'blurredAnnotation':this[_0x2de3('0x33')],'activatedAnnotation':_0xf7cf50,'disableAnimationOnActivatedAnnotation':!0x0}),_0xf7cf50)_0x7a15[_0x2de3('0x7')](_0xf7cf50)?this[_0x2de3('0x31')](_0xf7cf50):this[_0x2de3('0x2')]();else this[_0x2de3('0x2')]();this[_0x2de3('0x33')]=_0xf7cf50;}[_0x2de3('0x2f')](){if(!this[_0x2de3('0x1f')])throw new _0x5cbe7a(_0x2de3('0x51'),this);this[_0x2de3('0x6')](null);const _0x20baf1=this[_0x2de3('0xf')]['plugins'][_0x2de3('0xa')](_0x2de3('0x2b'));this[_0x2de3('0x2')](),Array['from'](this[_0x2de3('0x23')]['values'](),_0x316e99=>_0x316e99[_0x2de3('0x46')]()),this[_0x2de3('0x23')]['clear'](),_0x20baf1[_0x2de3('0x56')](this[_0x2de3('0x4f')]),this[_0x2de3('0x49')](),this[_0x2de3('0x41')][_0x2de3('0x49')](),this['stopListening'](this[_0x2de3('0xf')]['editors']);for(const _0x2c1247 of Array[_0x2de3('0x5b')](this[_0x2de3('0x38')]))this['_destroyEditorAnnotationsIntegration'](_0x2c1247);window['removeEventListener'](_0x2de3('0x32'),this['_refreshPositioningDebounced']),this[_0x2de3('0x1a')]['cancel'](),this[_0x2de3('0x2c')]=[],this[_0x2de3('0x1f')]=!0x1,this[_0x2de3('0x4f')]=null;}[_0x2de3('0x46')](){this[_0x2de3('0x1f')]&&this[_0x2de3('0x2f')](),this[_0x2de3('0x4e')][_0x2de3('0x5c')]();}[_0x2de3('0x54')](_0x5320b5){const _0x37f3e1=_0x5320b5[_0x2de3('0x5e')][_0x2de3('0xa')](_0x2de3('0xb')),_0x35afd9=this[_0x2de3('0xf')][_0x2de3('0x5e')]['get'](_0x1cbf17),_0x21a1f6=this[_0x2de3('0x4f')],_0x520cb1=this[_0x2de3('0x1b')],_0x287e47=()=>{const _0x5544ee=_0x37f3e1[_0x2de3('0x8')]({'activeAnnotation':this[_0x2de3('0x33')],'annotations':this['annotations']});this[_0x2de3('0x29')](_0x5544ee),this[_0x2de3('0x6')](_0x5544ee[0x0]||null);};this[_0x2de3('0x48')](_0x37f3e1,'refresh',_0x287e47),this['listenTo'](_0x37f3e1,_0x2de3('0x34'),(_0x3d10de,{isAnnotationTracked:_0x1fa9ff})=>{this[_0x2de3('0x33')]&&_0x1fa9ff(this[_0x2de3('0x33')])&&(this[_0x2de3('0x29')]([]),this[_0x2de3('0x6')](null));}),this[_0x2de3('0x48')](_0x37f3e1,_0x2de3('0x40'),()=>{this[_0x2de3('0x1a')]();}),this['listenTo'](_0x21a1f6,_0x2de3('0x34'),_0x3d98a5=>{_0x37f3e1[_0x2de3('0x20')]()&&_0x3d98a5['stop']();},{'priority':_0x2de3('0x16')}),this[_0x2de3('0x41')]['listenTo'](document,_0x2de3('0x42'),(_0x3e1d3f,_0x4ffc29)=>{const _0x313b76=_0x4ffc29[_0x2de3('0x1e')];_0x520cb1['isVisible']&&_0x520cb1[_0x2de3('0x4b')]['contains'](_0x313b76)||_0x35afd9[_0x2de3('0x9')][_0x2de3('0x4b')][_0x2de3('0x2d')](_0x313b76)||this[_0x2de3('0x33')]&&_0x37f3e1[_0x2de3('0x20')]()&&(_0x287e47(),_0x3e1d3f['preventClosingBalloon']=!0x0);},{'priority':_0x2de3('0x16')}),this['_editorAnnotations']['add'](_0x37f3e1);}[_0x2de3('0x3e')](_0x400f21){_0x400f21&&(this['stopListening'](_0x400f21),this[_0x2de3('0x38')][_0x2de3('0x15')](_0x400f21));}['_setSelectedAnnotations'](_0x2c6553){for(const _0x1f64a9 of this[_0x2de3('0x2c')])_0x2c6553[_0x2de3('0x24')](_0x1f64a9)||this[_0x2de3('0x3')][_0x2de3('0x37')](_0x1f64a9[_0x2de3('0x9')]);this[_0x2de3('0x2c')]=_0x2c6553;}[_0x2de3('0x4c')](){const _0x4e947f=this[_0x2de3('0x1b')];this[_0x2de3('0x4f')][_0x2de3('0x47')](),_0x4e947f[_0x2de3('0x44')]&&this[_0x2de3('0x12')]();}[_0x2de3('0x31')](_0x13cbca){if(this[_0x2de3('0x3')][_0x2de3('0x11')](_0x13cbca['view']))return;const _0x3915df=this['balloonPanelView'][_0x2de3('0x4')][_0x2de3('0x3f')];_0x3915df!==_0x13cbca['view']?(_0x3915df&&this['_detachListeners'](_0x3915df),this[_0x2de3('0x17')](_0x13cbca['view']),this[_0x2de3('0x1b')][_0x2de3('0x4')]['clear'](),this['balloonPanelView'][_0x2de3('0x4')]['add'](_0x13cbca['view']),this[_0x2de3('0x12')]()):this[_0x2de3('0x12')]();}[_0x2de3('0x12')](){const _0x4d1a5b=this[_0x2de3('0x1b')]['content'][_0x2de3('0x3f')],_0x3d9188=this[_0x2de3('0x4f')][_0x2de3('0x1d')](_0x4d1a5b);if(!this['_annotationToNarrowView'][_0x2de3('0x11')](_0x3d9188))return;const _0xedc383=this[_0x2de3('0x23')][_0x2de3('0xa')](_0x3d9188)[_0x2de3('0x4b')],_0x4e9a55=function(){const _0x51fa00=_0x2b4ed3[_0x2de3('0x26')];return[_0x51fa00[_0x2de3('0x0')],_0x51fa00[_0x2de3('0x10')],_0x51fa00[_0x2de3('0x5')],_0x51fa00[_0x2de3('0x1c')],_0x51fa00['southArrowNorthWest'],_0x51fa00[_0x2de3('0x27')]];}();this[_0x2de3('0x1b')][_0x2de3('0x14')]({'target':_0xedc383,'positions':_0x4e9a55});}[_0x2de3('0x2')](){const _0x55d366=this['balloonPanelView'],_0x5c564d=_0x55d366[_0x2de3('0x4')]['first'];_0x5c564d&&(this[_0x2de3('0x18')](_0x5c564d),_0x55d366['unpin'](),_0x55d366[_0x2de3('0x4')][_0x2de3('0xd')]());}[_0x2de3('0x17')](_0x2c504c){this[_0x2de3('0x48')](_0x2c504c,_0x2de3('0x5d'),()=>this['_updateBalloonPosition']()),this[_0x2de3('0x48')](_0x2c504c,_0x2de3('0x39'),(_0x986ee7,_0x5e15ba)=>{this['_manuallyClosedAnnotationViews'][_0x2de3('0x5a')](_0x2c504c),this[_0x2de3('0x2')](),_0x5e15ba();});}[_0x2de3('0x18')](_0x1a1190){this[_0x2de3('0x49')](_0x1a1190);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4258=['sidebar-setcontainer-invalid-element','unbind','_createSidebarView','sidebar.preventScrollOutOfView','_recalculateBuffer','container','_targetTop','_alignToTargetRect','element','last','_getItemAfter','_annotationToSidebarItemView','length','updateHeight','targetRect','bottom','listenTo','stopListening','set','change:top','_recalculate','pluginName','bind','_alignAfterItem','_lastItem','_destroySidebarItemView','list','getIndex','init','remove','sidebar.container','config','getSidebarItemView','content','add','addAnnotation','_getItemBefore','context','change:bottom','define','locale','_alignBeforeItem','_alignForBottomChange','refresh','object','destroy','_sidebarItemViewToAnnotation','setContainer','max','_annotations','change:_lastItem','get','minHeight','_updateLastItem','class','_spaceBetweenItems','_activeAnnotation','target','_setItemTop','rearrange','_getMaxAvailableTop','sidebar-attachtocontainer-missing-container','view','isAnimationDisabled','_getTargetTop','appendChild','top','clear'];(function(_0x468fc0,_0x4258f1){const _0x261328=function(_0x71045a){while(--_0x71045a){_0x468fc0['push'](_0x468fc0['shift']());}};_0x261328(++_0x4258f1);}(_0x4258,0x18c));const _0x2613=function(_0x468fc0,_0x4258f1){_0x468fc0=_0x468fc0-0x0;let _0x261328=_0x4258[_0x468fc0];return _0x261328;};import{ContextPlugin as _0x259808}from'ckeditor5/src/core';import _0x4363ba from'./view/sidebarview';import _0x501522 from'./view/sidebaritemview';import{Rect as _0x2597e1,CKEditorError as _0x3cfc20}from'ckeditor5/src/utils';export default class b extends _0x259808{static get[_0x2613('0x21')](){return'Sidebar';}constructor(_0xbc1b02){super(_0xbc1b02),this[_0x2613('0x1e')]('_lastItem'),this[_0x2613('0x6')]=this[_0x2613('0xe')](),this[_0x2613('0x1e')](_0x2613('0x11'),null),this[_0x2613('0x43')]=0x19,this[_0x2613('0x3a')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x2613('0x31')][_0x2613('0x2b')][_0x2613('0x33')](_0x2613('0xf'),!0x1),this[_0x2613('0x3d')]=null,this[_0x2613('0x0')]=null,this[_0x2613('0x10')]=[];}[_0x2613('0x28')](){const _0x54ba7f=this[_0x2613('0x31')]['config'][_0x2613('0x3f')](_0x2613('0x2a'));_0x54ba7f&&this[_0x2613('0x3b')](_0x54ba7f);}['setContainer'](_0x3fed09){if(!p(_0x3fed09))throw new _0x3cfc20(_0x2613('0xc'));this[_0x2613('0x11')]=_0x3fed09;}['_attachToContainer']({viewClass:_0x408a91='',spaceBetweenItems:_0x37923c=0x19}={}){if(!p(this[_0x2613('0x11')]))throw new _0x3cfc20(_0x2613('0x5'),this);this['container'][_0x2613('0x9')](this[_0x2613('0x6')][_0x2613('0x14')]),this['view'][_0x2613('0x42')]=_0x408a91,this['_spaceBetweenItems']=_0x37923c;}[_0x2613('0x3')]({removedAnnotation:_0xd100f4,previousAnnotation:_0x48f1a8,nextAnnotation:_0x42687f}){const _0xf883e3=this['getSidebarItemView'](_0xd100f4);this[_0x2613('0x6')][_0x2613('0x26')][_0x2613('0x29')](_0xf883e3),this[_0x2613('0x25')](_0xd100f4),_0x48f1a8&&this[_0x2613('0x13')](this[_0x2613('0x2c')](_0x48f1a8)),_0x42687f&&this[_0x2613('0x13')](this['getSidebarItemView'](_0x42687f)),this[_0x2613('0x41')]();}[_0x2613('0x37')]({blurredAnnotation:_0x40d469,activatedAnnotation:_0x40654f,disableAnimationOnActivatedAnnotation:_0x26714b}){if(this[_0x2613('0x0')]=_0x40654f,_0x40d469){_0x40d469['isActive']=!0x1;const _0xba3e2e=this['getSidebarItemView'](_0x40d469);_0xba3e2e&&_0x26714b&&(_0xba3e2e[_0x2613('0x7')]=!0x1);}if(_0x40654f){const _0x592844=this[_0x2613('0x2c')](_0x40654f);_0x592844&&(_0x40654f['isActive']=!0x0,_0x26714b&&(_0x592844['isAnimationDisabled']=!0x0,_0x592844[_0x2613('0xa')]+=0x1),this[_0x2613('0x13')](_0x592844));}}['_detachFromContainer'](_0x3d1b7b){this[_0x2613('0x1d')](),this[_0x2613('0x6')][_0x2613('0x14')][_0x2613('0x29')]();for(const _0x9756ca of _0x3d1b7b)this['_destroySidebarItemView'](_0x9756ca);this['view']['list'][_0x2613('0xb')](),this['view']['class']='',this['_lastItem']=null;}[_0x2613('0x2f')](_0x29bde0,_0x50a19d){_0x50a19d||(_0x50a19d=_0x29bde0[_0x2613('0x6')]);const _0x210bca=new _0x501522(this[_0x2613('0x31')][_0x2613('0x34')]);this[_0x2613('0x3a')]['set'](_0x210bca,_0x29bde0),this[_0x2613('0x17')][_0x2613('0x1e')](_0x29bde0,_0x210bca),_0x210bca['content']['add'](_0x50a19d),this[_0x2613('0x1c')](_0x29bde0[_0x2613('0x6')],'change:targetRect',(_0x2420a8,_0x29db09,_0x1ce001)=>{const _0x1288ff=this['_getTargetTop'](_0x29bde0,_0x1ce001);_0x210bca[_0x2613('0x12')]!=_0x1288ff&&(_0x210bca[_0x2613('0x12')]=_0x1288ff,this[_0x2613('0x2')](_0x210bca,_0x1288ff));}),this[_0x2613('0x1c')](_0x210bca,_0x2613('0x1f'),()=>{this[_0x2613('0x20')](_0x210bca,'top');}),this[_0x2613('0x1c')](_0x210bca,_0x2613('0x32'),()=>{this[_0x2613('0x20')](_0x210bca,_0x2613('0x1b'));}),this[_0x2613('0x13')](_0x210bca);const _0x1b466f=this['_getItemBefore'](_0x210bca);if(_0x1b466f)this[_0x2613('0x23')](_0x1b466f,_0x210bca)||this[_0x2613('0x13')](_0x210bca);else this[_0x2613('0x13')](_0x210bca);return this['_updateLastItem'](),this[_0x2613('0x6')][_0x2613('0x26')][_0x2613('0x2e')](_0x210bca),_0x210bca;}['_alignForTopChange'](_0x2e2aae){if(!_0x2e2aae[_0x2613('0x2d')][_0x2613('0x18')])return;const _0x50e29b=this['_getItemBefore'](_0x2e2aae);if(!_0x50e29b)return;const _0x2899c1=this['_sidebarItemViewToAnnotation']['get'](_0x50e29b),_0x3eff78=this['_activeAnnotation'];_0x3eff78&&_0x3eff78===_0x2899c1?this[_0x2613('0x23')](_0x50e29b,_0x2e2aae):this['_alignBeforeItem'](_0x2e2aae,_0x50e29b);}['_alignForBottomChange'](_0x4a064){if(!_0x4a064[_0x2613('0x2d')][_0x2613('0x18')])return;const _0x3f7069=this[_0x2613('0x16')](_0x4a064);if(!_0x3f7069)return;const _0x85efb9=this[_0x2613('0x3a')]['get'](_0x3f7069),_0x264c5d=this[_0x2613('0x31')]['config']['get'](_0x2613('0xf')),_0x19a5f0=this[_0x2613('0x0')];_0x19a5f0&&_0x19a5f0===_0x85efb9&&_0x264c5d?(this[_0x2613('0x35')](_0x3f7069,_0x4a064),this[_0x2613('0x23')](_0x4a064,_0x3f7069)):_0x19a5f0&&_0x19a5f0===_0x85efb9?this[_0x2613('0x35')](_0x3f7069,_0x4a064):this[_0x2613('0x23')](_0x4a064,_0x3f7069);}[_0x2613('0x20')](_0x2b77ef,_0x12e461){0x0===this[_0x2613('0x10')][_0x2613('0x18')]&&setTimeout(()=>{for(const {sidebarItemView:_0x69333a,changedProp:_0x1b9bfe}of this[_0x2613('0x10')])_0x2613('0xa')===_0x1b9bfe?this['_alignForTopChange'](_0x69333a):this[_0x2613('0x36')](_0x69333a);this[_0x2613('0x10')]=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x2b77ef,'changedProp':_0x12e461});}[_0x2613('0x2c')](_0x1008dc){return this[_0x2613('0x17')][_0x2613('0x3f')](_0x1008dc);}[_0x2613('0x39')](){this['view'][_0x2613('0x39')]();}[_0x2613('0x25')](_0x398a13){const _0x24f3be=this[_0x2613('0x2c')](_0x398a13);this[_0x2613('0x1d')](_0x24f3be),this[_0x2613('0x1d')](_0x398a13[_0x2613('0x6')]),_0x24f3be[_0x2613('0x39')](),this['_annotationToSidebarItemView']['delete'](_0x398a13),this[_0x2613('0x3a')]['delete'](_0x24f3be);}[_0x2613('0xe')](){const _0x5ce7db=new _0x4363ba(this['context'][_0x2613('0x34')]);return _0x5ce7db['render'](),this['on'](_0x2613('0x3e'),(_0x342635,_0x29171e,_0x233615,_0x53db40)=>{_0x53db40&&_0x5ce7db[_0x2613('0xd')]('minHeight'),_0x233615?_0x5ce7db[_0x2613('0x22')](_0x2613('0x40'))['to'](_0x233615,'bottom'):_0x5ce7db['minHeight']=null;}),_0x5ce7db;}[_0x2613('0x41')](){this[_0x2613('0x24')]=this[_0x2613('0x2c')](this[_0x2613('0x3d')][_0x2613('0x15')]);}[_0x2613('0x30')](_0x23d8fd){const _0x212743=this[_0x2613('0x3a')][_0x2613('0x3f')](_0x23d8fd),_0x4b8ff6=this[_0x2613('0x3d')][_0x2613('0x3f')](this['_annotations'][_0x2613('0x27')](_0x212743)-0x1);return _0x4b8ff6&&this[_0x2613('0x2c')](_0x4b8ff6);}['_getItemAfter'](_0x1577f6){const _0x5e74f1=this[_0x2613('0x3a')][_0x2613('0x3f')](_0x1577f6),_0x46315a=this[_0x2613('0x3d')][_0x2613('0x3f')](this['_annotations'][_0x2613('0x27')](_0x5e74f1)+0x1);return _0x46315a&&this['getSidebarItemView'](_0x46315a);}[_0x2613('0x35')](_0x593e35,_0x5e2c32){_0x593e35[_0x2613('0x19')]();const _0x19cf60=C(_0x5e2c32[_0x2613('0x1b')]+this[_0x2613('0x43')],_0x593e35[_0x2613('0xa')]);return!!_0x19cf60&&(this[_0x2613('0x2')](_0x5e2c32,_0x5e2c32[_0x2613('0xa')]-_0x19cf60),!0x0);}[_0x2613('0x23')](_0x45bde2,_0x18e8c7){_0x45bde2[_0x2613('0x19')]();const _0x11b193=C(_0x45bde2[_0x2613('0x1b')]+this['_spaceBetweenItems'],_0x18e8c7['top']);return!!_0x11b193&&(this['_setItemTop'](_0x18e8c7,_0x18e8c7[_0x2613('0xa')]+_0x11b193,!0x1),!0x0);}[_0x2613('0x13')](_0x159332){const _0x42ace2=this['_sidebarItemViewToAnnotation'][_0x2613('0x3f')](_0x159332);if(!_0x42ace2||!_0x42ace2[_0x2613('0x1')])return;const _0x47a4a7=this[_0x2613('0x8')](_0x42ace2,_0x42ace2[_0x2613('0x1a')]);this[_0x2613('0x2')](_0x159332,_0x47a4a7);}[_0x2613('0x8')](_0x4a4de9,_0x7f2a99){if(null===_0x7f2a99)return 0x0;if(_0x4a4de9[_0x2613('0x1')]instanceof _0x2597e1)return _0x7f2a99['top'];{const _0x11f35a=new _0x2597e1(this['view'][_0x2613('0x14')])['top'];return _0x7f2a99[_0x2613('0xa')]-_0x11f35a;}}[_0x2613('0x2')](_0x2d8952,_0x886e95,_0x1f9358=this[_0x2613('0x31')][_0x2613('0x2b')][_0x2613('0x3f')]('sidebar.preventScrollOutOfView')){_0x1f9358&&(_0x886e95=Math[_0x2613('0x3c')](_0x886e95,this[_0x2613('0x4')](_0x2d8952))),_0x2d8952[_0x2613('0xa')]=_0x886e95;}[_0x2613('0x4')](_0x33dda9){let _0x17f5e5=this[_0x2613('0x30')](_0x33dda9),_0x425307=0x0;for(;_0x17f5e5;)_0x17f5e5['updateHeight'](),_0x425307+=this[_0x2613('0x43')]+_0x17f5e5['height'],_0x17f5e5=this[_0x2613('0x30')](_0x17f5e5);return _0x425307;}}function C(_0x3ac623,_0x5a8081){return Math[_0x2613('0x3c')](_0x3ac623-_0x5a8081,0x0);}function p(_0x3f2297){return null!==_0x3f2297&&_0x2613('0x38')==typeof _0x3f2297&&0x1===_0x3f2297['nodeType'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f80=['ck-annotation-counter__badge--edit-mode','ck-annotation-counter','...','annotationType','add','setTemplate','counterView','icon','bind','isDirty','extendTemplate','children','ck-annotation-counter__badge--','set','span','_badge','bindTemplate','number'];(function(_0x3b5cfb,_0x4f8055){const _0x1a67d5=function(_0x57d089){while(--_0x57d089){_0x3b5cfb['push'](_0x3b5cfb['shift']());}};_0x1a67d5(++_0x4f8055);}(_0x4f80,0x15d));const _0x1a67=function(_0x3b5cfb,_0x4f8055){_0x3b5cfb=_0x3b5cfb-0x0;let _0x1a67d5=_0x4f80[_0x3b5cfb];return _0x1a67d5;};import{ButtonView as _0xfce7f,View as _0x2b04ce}from'ckeditor5/src/ui';import _0x3c9793 from'../../../theme/icons/add-comment.svg';export default class B extends _0xfce7f{constructor(_0x1358b3){super(_0x1358b3);const _0x237e03=this[_0x1a67('0x9')];this['set']('isDirty',!0x1),this[_0x1a67('0x6')]('number',0x0),this[_0x1a67('0x1')]('_badge')['to'](this,_0x1a67('0x2'),this,_0x1a67('0xa'),(_0x28586d,_0x1c5284)=>_0x28586d?_0x1a67('0xd'):_0x1c5284),this[_0x1a67('0x6')]('annotationType',''),this[_0x1a67('0x0')]=_0x3c9793,this[_0x1a67('0x3')]({'attributes':{'class':[_0x1a67('0xc')]}}),this[_0x1a67('0x11')]=new _0x2b04ce(),this[_0x1a67('0x11')][_0x1a67('0x10')]({'tag':_0x1a67('0x7'),'attributes':{'class':['ck-annotation-counter__badge',_0x237e03['to'](_0x1a67('0xe'),_0x317091=>_0x1a67('0x5')+_0x317091),_0x237e03['if']('isDirty',_0x1a67('0xb'))]},'children':[{'text':_0x237e03['to'](_0x1a67('0x8'))}]}),this[_0x1a67('0x4')][_0x1a67('0xf')](this[_0x1a67('0x11')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a35=['targetRect','clientHeight','render','isActive','element','isDirty','mainView','Esc','fire','listenTo','createCollection','focusTracker','ck-rounded-corners','destroy','focus','length','clear','_updateHeight','_mutationObserver','setTemplate','ck-annotation-wrapper--active','height','set','keystrokes','content','type'];(function(_0x4836e5,_0x2a3541){const _0x2323c1=function(_0x25d9fd){while(--_0x25d9fd){_0x4836e5['push'](_0x4836e5['shift']());}};_0x2323c1(++_0x2a3541);}(_0x2a35,0x76));const _0x2323=function(_0x4836e5,_0x2a3541){_0x4836e5=_0x4836e5-0x0;let _0x2323c1=_0x2a35[_0x4836e5];return _0x2323c1;};import{View as _0x154062}from'ckeditor5/src/ui';import{FocusTracker as _0x47a0ab,KeystrokeHandler as _0x1f7a7a,uid as _0x59a3c5}from'ckeditor5/src/utils';import _0x2063c4 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x154062{constructor(_0x2d10eb,_0x514fa6){super(_0x2d10eb),this['id']=_0x59a3c5(),this[_0x2323('0x17')]=new _0x47a0ab(),this['keystrokes']=new _0x1f7a7a(),this[_0x2323('0x9')][_0x2323('0x8')]('Esc',(_0x2759a5,_0x535f43)=>this[_0x2323('0x14')](_0x2323('0x13'),_0x535f43)),this[_0x2323('0x8')](_0x2323('0xc'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x2323('0x8')](_0x2323('0x7'),0x0),this[_0x2323('0x8')](_0x2323('0xf'),!0x1),this['set'](_0x2323('0x11'),!0x1),this[_0x2323('0x8')](_0x2323('0x1'),0x0),this[_0x2323('0x8')](_0x2323('0xb'),''),this[_0x2323('0x4')]=_0x2063c4(()=>this[_0x2323('0x3')]()),this['content']=this[_0x2323('0x16')](),this['content']['add'](_0x514fa6),this[_0x2323('0x12')]=_0x514fa6;const _0x3ce576=this['bindTemplate'];this[_0x2323('0x5')]({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper',_0x2323('0x18'),_0x3ce576['if'](_0x2323('0xf'),_0x2323('0x6'))],'tabindex':-0x1},'children':this[_0x2323('0xa')]});}[_0x2323('0xe')](){super[_0x2323('0xe')](),this['focusTracker']['add'](this[_0x2323('0x10')]),this[_0x2323('0x9')][_0x2323('0x15')](this[_0x2323('0x10')]),this[_0x2323('0x4')]['attach'](this[_0x2323('0x10')]);}[_0x2323('0x19')](){this[_0x2323('0xa')][_0x2323('0x2')](),this[_0x2323('0x9')][_0x2323('0x19')](),this[_0x2323('0x17')]['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}[_0x2323('0x0')](){this[_0x2323('0x10')][_0x2323('0x0')]();}['_updateHeight'](){const _0x366a6a=this['element'][_0x2323('0xd')];_0x366a6a&&(this[_0x2323('0x7')]=_0x366a6a);}}
|