@ckeditor/ckeditor5-comments 35.4.0 → 36.0.1
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 +2 -2
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/ug.js +1 -1
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +5 -5
- package/lang/translations/sr.po +5 -5
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +7 -7
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +3 -3
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.js +2 -2
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.js +2 -2
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/integrations/importword.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.js +2 -2
- package/src/commentsonly.js +2 -2
- package/src/index.js +1 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.js +2 -2
- package/theme/commentthread.css +7 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3adf=['_bindAnnotationsToVisibleAnnotations','_visibleAnnotations','add','getByInnerView','remove','activeAnnotations','_removeActiveAnnotation','_addActiveAnnotation','createAnnotationView','collection','refreshVisibility','fire','activate','destroy','_activateAnnotation','change:isVisible','isVisible','has','createAnnotation','_deactivateAllAnnotations','Annotations','deactivateAll','delete','listenTo','source','stopListening','pluginName','refreshPositioning'];(function(_0x4168a3,_0x3adf9b){const _0x744091=function(_0x39873e){while(--_0x39873e){_0x4168a3['push'](_0x4168a3['shift']());}};_0x744091(++_0x3adf9b);}(_0x3adf,0x75));const _0x7440=function(_0x4168a3,_0x3adf9b){_0x4168a3=_0x4168a3-0x0;let _0x744091=_0x3adf[_0x4168a3];return _0x744091;};import{ContextPlugin as _0x9e3f0a}from'ckeditor5/src/core';import _0x309f3b from'./annotation';import _0x117566 from'./annotationcollection';import _0x3af509 from'./view/annotationview';export default class V extends _0x9e3f0a{static get[_0x7440('0x15')](){return _0x7440('0xf');}constructor(_0x270c31){super(_0x270c31),this[_0x7440('0x4')]=new _0x117566(),this[_0x7440('0x18')]=new _0x117566(),this['set'](_0x7440('0x0'),new Set()),this[_0x7440('0x17')]();}['add'](_0x68a5f3){this[_0x7440('0x4')][_0x7440('0x19')](_0x68a5f3);}['remove'](_0x2e8e78){this['collection']['remove'](_0x2e8e78),_0x2e8e78[_0x7440('0x8')]();}[_0x7440('0x5')](){for(const _0x1adea4 of this['collection'])_0x1adea4[_0x7440('0x5')]();}['refreshPositioning'](){this['_visibleAnnotations'][_0x7440('0x16')]();}[_0x7440('0x1a')](_0x3c0812){return this[_0x7440('0x4')][_0x7440('0x1a')](_0x3c0812);}[_0x7440('0x10')](){this[_0x7440('0x6')](_0x7440('0xe'));}[_0x7440('0x8')](){for(const _0x292b28 of this[_0x7440('0x4')])_0x292b28[_0x7440('0x8')]();this[_0x7440('0x18')][_0x7440('0x8')](),this[_0x7440('0x4')][_0x7440('0x8')](),super[_0x7440('0x8')]();}[_0x7440('0x7')](_0x45178c){this[_0x7440('0x6')](_0x7440('0x9'),_0x45178c);}[_0x7440('0xd')](_0x35dd1e){return new _0x309f3b(_0x35dd1e);}[_0x7440('0x3')](_0x1aa5aa,_0x560848){return new _0x3af509(_0x1aa5aa,_0x560848);}[_0x7440('0x2')](_0x5f2348){const _0xb08fc7=new Set(this[_0x7440('0x0')]);_0xb08fc7[_0x7440('0x19')](_0x5f2348),this['activeAnnotations']=_0xb08fc7;}[_0x7440('0x1')](_0x237cf6){const _0x39c553=new Set(this[_0x7440('0x0')]);_0x39c553[_0x7440('0x11')](_0x237cf6),this['activeAnnotations']=_0x39c553;}[_0x7440('0x17')](){const _0x489d79=this[_0x7440('0x4')],_0x4b5ced=this[_0x7440('0x18')];function _0x1708b5(_0x4b5342){const _0x5dbefb=_0x4b5342[_0x7440('0x13')];_0x5dbefb[_0x7440('0xb')]&&!_0x4b5ced[_0x7440('0xc')](_0x5dbefb)?_0x4b5ced['add'](_0x5dbefb):!_0x5dbefb[_0x7440('0xb')]&&_0x4b5ced['has'](_0x5dbefb)&&_0x4b5ced[_0x7440('0x1b')](_0x5dbefb);}this['listenTo'](_0x489d79,'add',(_0x1be9ac,_0x4b449c)=>{_0x4b449c['isVisible']&&_0x4b5ced['add'](_0x4b449c),this[_0x7440('0x12')](_0x4b449c,_0x7440('0xa'),_0x1708b5);}),this['listenTo'](_0x489d79,_0x7440('0x1b'),(_0x2e0d9c,_0x515146)=>{_0x4b5ced[_0x7440('0xc')](_0x515146)&&_0x4b5ced[_0x7440('0x1b')](_0x515146),this[_0x7440('0x14')](_0x515146,_0x7440('0xa'),_0x1708b5);});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b78=['register','has','deactivateAll','length','listenTo','get','isActive','attach','requires','push','_assertAnnotationDoesNotBelongToMultipleUIs','setActiveAnnotation','_activateAnnotation','add','context','delete','_addActiveAnnotation','activeUIs','detach','plugins','_removeActiveAnnotation','set','function','annotationsuis-activate-missing-ui','annotationsuis-register-already-registered','AnnotationsUIs','switchTo','_uisData','deactivate','_setSelectedAnnotations','activate','type','destroy','pluginName','change:activeAnnotation','size','init','remove','find','filter','from','activeAnnotations','stopListening','collection','refilterAnnotations','_visibleAnnotations','_uis','_deactivateAllAnnotations'];(function(_0xc0a410,_0x5b7869){const _0x400af0=function(_0xa50125){while(--_0xa50125){_0xc0a410['push'](_0xc0a410['shift']());}};_0x400af0(++_0x5b7869);}(_0x5b78,0x96));const _0x400a=function(_0xc0a410,_0x5b7869){_0xc0a410=_0xc0a410-0x0;let _0x400af0=_0x5b78[_0xc0a410];return _0x400af0;};import{ContextPlugin as _0xd5e16e}from'ckeditor5/src/core';import{CKEditorError as _0x1e737f}from'ckeditor5/src/utils';import _0x26ac75,{bindAnnotationCollections as _0x5a5e12}from'./annotationcollection';import _0x406659 from'./annotations';export default class I extends _0xd5e16e{static get[_0x400a('0x2')](){return[_0x406659];}static get[_0x400a('0x1b')](){return _0x400a('0x13');}constructor(_0x103d5b){super(_0x103d5b),this[_0x400a('0xb')]=new Set(),this[_0x400a('0x28')]=new Map(),this[_0x400a('0x15')]=new Map();}[_0x400a('0x1e')](){const _0x2a3408=this[_0x400a('0x8')]['plugins']['get'](_0x406659);this['listenTo'](_0x2a3408,_0x400a('0x6'),(_0x1c92f7,_0x538f65)=>{for(const _0x3d121b of this['activeUIs']){const _0x15aa49=this[_0x400a('0x28')][_0x400a('0x2f')](_0x3d121b);(0x0,this[_0x400a('0x15')][_0x400a('0x2f')](_0x3d121b)[_0x400a('0x21')])(_0x538f65)&&_0x15aa49['setActiveAnnotation'](_0x538f65);}}),this[_0x400a('0x2e')](_0x2a3408,_0x400a('0x29'),()=>{for(const _0x3ffb63 of this['activeUIs']){this['_uis'][_0x400a('0x2f')](_0x3ffb63)[_0x400a('0x5')](null);}}),this[_0x400a('0x2e')](_0x2a3408[_0x400a('0x27')],_0x400a('0x7'),(_0x1d2dc9,_0x5e2e66)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5e2e66);});}['hasActive'](){return this[_0x400a('0xb')][_0x400a('0x1d')]>0x0;}[_0x400a('0x0')](_0x3acbc1){return this['activeUIs'][_0x400a('0x2b')](_0x3acbc1);}[_0x400a('0x18')](_0x3806a2,_0x5e9d00=()=>!0x0){const _0x513841=this[_0x400a('0x8')]['plugins']['get'](_0x406659);if(!this[_0x400a('0x28')][_0x400a('0x2b')](_0x3806a2))throw new _0x1e737f(_0x400a('0x11'),this,{'uiName':_0x3806a2});this[_0x400a('0x0')](_0x3806a2)&&this[_0x400a('0x16')](_0x3806a2),this[_0x400a('0xb')][_0x400a('0x7')](_0x3806a2);const _0xdbeebd=new _0x26ac75(),_0x349cd6=_0x513841['_visibleAnnotations'];_0x5a5e12({'source':_0x349cd6,'target':_0xdbeebd,'filter':_0x5e9d00}),this[_0x400a('0x15')]['set'](_0x3806a2,{'collection':_0xdbeebd,'filter':_0x5e9d00});const _0x16077c=this[_0x400a('0x28')][_0x400a('0x2f')](_0x3806a2);_0x16077c['attach'](_0xdbeebd),this[_0x400a('0x2e')](_0x16077c,_0x400a('0x1c'),(_0x767fb4,_0x235c7e,_0x4e7dbe,_0x2ee220)=>{_0x2ee220&&_0x513841[_0x400a('0xe')](_0x2ee220),_0x4e7dbe&&_0x513841[_0x400a('0xa')](_0x4e7dbe);});}[_0x400a('0x16')](_0x137afd){this[_0x400a('0xb')][_0x400a('0x9')](_0x137afd);const _0xb8f7c8=this[_0x400a('0x28')][_0x400a('0x2f')](_0x137afd);_0xb8f7c8[_0x400a('0xc')](),this[_0x400a('0x24')](_0xb8f7c8),this[_0x400a('0x15')][_0x400a('0x2f')](_0x137afd)[_0x400a('0x25')][_0x400a('0x1a')](),this[_0x400a('0x15')]['delete'](_0x137afd);}[_0x400a('0x14')](_0x3af3b5){const _0x95e586=this[_0x400a('0x8')][_0x400a('0xd')][_0x400a('0x2f')](_0x406659),_0xa6f2c2=Array['from'](_0x95e586[_0x400a('0x23')])[0x0]||null;this[_0x400a('0x2c')](),this[_0x400a('0x18')](_0x3af3b5);const _0x3cd7e4=this[_0x400a('0x28')][_0x400a('0x2f')](_0x3af3b5);_0x3cd7e4['setActiveAnnotation'](_0xa6f2c2),_0x3cd7e4[_0x400a('0x17')]&&_0xa6f2c2&&_0x3cd7e4[_0x400a('0x17')]([_0xa6f2c2]);}['deactivateAll'](){for(const _0x36a712 of this[_0x400a('0xb')])this[_0x400a('0x16')](_0x36a712);}[_0x400a('0x2a')](_0x1c2ca9,_0x31901f){if(this[_0x400a('0x28')]['has'](_0x1c2ca9))throw new _0x1e737f(_0x400a('0x12'));if(_0x400a('0x10')!=typeof _0x31901f[_0x400a('0x1')]||_0x400a('0x10')!=typeof _0x31901f[_0x400a('0xc')]||'function'!=typeof _0x31901f[_0x400a('0x5')])throw new _0x1e737f('annotationsuis-register-invalid-interface',null);this[_0x400a('0x28')][_0x400a('0xf')](_0x1c2ca9,_0x31901f);}[_0x400a('0x26')](){const _0x34b1d0=this[_0x400a('0x8')][_0x400a('0xd')][_0x400a('0x2f')](_0x406659)[_0x400a('0x25')],_0x208903=new Map(),_0x39b9ce=Array[_0x400a('0x22')](this[_0x400a('0xb')]);for(const _0x43c1a6 of this['activeUIs']){const _0x394db2=this[_0x400a('0x15')]['get'](_0x43c1a6)['collection'];for(const _0x28298a of _0x394db2)_0x208903[_0x400a('0xf')](_0x28298a,_0x43c1a6);}for(const _0x528585 of _0x34b1d0){const _0x516f50=_0x208903[_0x400a('0x2f')](_0x528585);this[_0x400a('0x4')](_0x528585);const _0x3e5531=_0x39b9ce[_0x400a('0x20')](_0x3290b2=>this[_0x400a('0x15')]['get'](_0x3290b2)[_0x400a('0x21')](_0x528585));_0x516f50!==_0x3e5531&&(_0x516f50&&this[_0x400a('0x15')][_0x400a('0x2f')](_0x516f50)['collection'][_0x400a('0x1f')](_0x528585),_0x3e5531&&this[_0x400a('0x15')]['get'](_0x3e5531)[_0x400a('0x25')][_0x400a('0x7')](_0x528585));}}[_0x400a('0x1a')](){this['deactivateAll'](),super[_0x400a('0x1a')]();}[_0x400a('0x4')](_0xfcb97d){const _0x142cff=[];for(const _0x15e543 of this[_0x400a('0xb')]){(0x0,this[_0x400a('0x15')][_0x400a('0x2f')](_0x15e543)[_0x400a('0x21')])(_0xfcb97d)&&_0x142cff[_0x400a('0x3')](_0x15e543);}if(_0x142cff[_0x400a('0x2d')]>0x1)throw new _0x1e737f('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x142cff,'annotationType':_0xfcb97d[_0x400a('0x19')]});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e1d=['editorannotations-invalid-source-callback','element','init','_dataCollectors','selection','change:isFocused','isCollapsed','listenTo','isReadOnly','delete','plugins','annotation','getRanges','editing','from','getByInnerView','focusTracker','directChange','model','document','hasDomSelection','uiUpdate','cancel','view','set','range','update','_editorAnnotationsData','editor','add','fire','has','addSourceCollector','isEqual','push','refresh','_editorAnnotations','getOrderedSelectedAnnotations','containsRange','innerView','sort'];(function(_0x43ca6b,_0x4e1d5b){const _0x5c79a7=function(_0xa31a7b){while(--_0xa31a7b){_0x43ca6b['push'](_0x43ca6b['shift']());}};_0x5c79a7(++_0x4e1d5b);}(_0x4e1d,0x181));const _0x5c79=function(_0x43ca6b,_0x4e1d5b){_0x43ca6b=_0x43ca6b-0x0;let _0x5c79a7=_0x4e1d[_0x43ca6b];return _0x5c79a7;};import{Plugin as _0x278680}from'ckeditor5/src/core';import{CKEditorError as _0x472294}from'ckeditor5/src/utils';import{debounce as _0x5d444a}from'lodash-es';import _0xbc40e5 from'./annotations';export default class k extends _0x278680{static get['requires'](){return[_0xbc40e5];}static get['pluginName'](){return'EditorAnnotations';}constructor(_0x3a5217){super(_0x3a5217),this[_0x5c79('0x1c')]=new Set(),this[_0x5c79('0x14')]=new Set();}[_0x5c79('0x1b')](){const _0x2aeadf=this[_0x5c79('0xc')],_0xf1d4e8=_0x2aeadf[_0x5c79('0x2')][_0x5c79('0x3')][_0x5c79('0x1d')],_0x2c9bd4=_0x5d444a(()=>this['refreshSelectedViews'](),0xa);_0xf1d4e8['on']('change:range',(_0xa37be5,_0x409c67)=>{_0x409c67[_0x5c79('0x1')]&&(_0x2c9bd4[_0x5c79('0x6')](),this['refreshSelectedViews']());}),this[_0x5c79('0x20')](_0x2aeadf[_0x5c79('0x26')]['view'][_0x5c79('0x3')],_0x5c79('0x1e'),(_0x449060,_0x53ea19,_0x48e8ec)=>{_0x48e8ec&&_0x2c9bd4();}),this[_0x5c79('0x20')](_0x2aeadf['ui']['focusTracker'],_0x5c79('0x1e'),(_0x3a5339,_0x3658a3,_0x40731c)=>{_0x40731c||_0x2aeadf[_0x5c79('0x21')]||this[_0x5c79('0xe')]('blur',{'isAnnotationTracked':_0x30630e=>this['_editorAnnotationsData'][_0x5c79('0xf')](_0x30630e[_0x5c79('0x17')])});}),this[_0x5c79('0x20')](this[_0x5c79('0xc')]['ui'],_0x5c79('0xa'),()=>this[_0x5c79('0xe')](_0x5c79('0x5')));}['registerAnnotation'](_0x41d767){if(this[_0x5c79('0x14')][_0x5c79('0xf')](_0x41d767))return;this['_editorAnnotations'][_0x5c79('0xd')](_0x41d767[_0x5c79('0x7')]),this[_0x5c79('0xc')]['ui'][_0x5c79('0x0')][_0x5c79('0xd')](_0x41d767[_0x5c79('0x7')][_0x5c79('0x1a')]);const _0x6ec069=this[_0x5c79('0xc')][_0x5c79('0x23')]['get'](_0xbc40e5);this['listenTo'](_0x6ec069['collection'],'remove',(_0x4c82c6,_0x14a565)=>{this[_0x5c79('0xc')]['ui'][_0x5c79('0x0')]['remove'](_0x14a565[_0x5c79('0x7')][_0x5c79('0x1a')]),this[_0x5c79('0x14')][_0x5c79('0x22')](_0x14a565['view']);});}['hasDomSelection'](){return this[_0x5c79('0xc')][_0x5c79('0x26')][_0x5c79('0x7')][_0x5c79('0x4')];}[_0x5c79('0x10')](_0x54e2af){if('function'!=typeof _0x54e2af)throw new _0x472294(_0x5c79('0x19'));this[_0x5c79('0x1c')][_0x5c79('0xd')](_0x54e2af);}['refreshSelectedViews'](){this[_0x5c79('0xe')](_0x5c79('0x13'));}[_0x5c79('0x15')]({activeAnnotation:_0x337a89,annotations:_0x110093}){const _0x2822d1=[],_0x57d36e=this[_0x5c79('0xc')][_0x5c79('0x2')]['document']['selection'],_0x3c01ec=Array[_0x5c79('0x27')](_0x57d36e[_0x5c79('0x25')]());for(const [_0xe17208,_0x4d8261]of this['_editorAnnotationsData']){const _0x576c1c=_0xbd5876(_0x4d8261),_0x2d8f4d=_0x110093[_0x5c79('0x28')](_0xe17208);_0x576c1c&&_0x2d8f4d&&_0x2822d1[_0x5c79('0x12')]({'annotation':_0x2d8f4d,'range':_0x576c1c});}function _0xbd5876(_0x5663d0){for(const _0x26c4ab of _0x5663d0)for(const _0x59050d of _0x3c01ec)if(_0x26c4ab[_0x5c79('0x16')](_0x59050d,!_0x57d36e[_0x5c79('0x1f')]))return _0x26c4ab;return null;}return _0x2822d1[_0x5c79('0x18')]((_0x4686b1,_0x4ff8a0)=>{const _0x22f224=_0x4686b1[_0x5c79('0x9')],_0x519a00=_0x4ff8a0[_0x5c79('0x9')];if(!_0x22f224[_0x5c79('0x11')](_0x519a00)){if(_0x22f224[_0x5c79('0x16')](_0x519a00,!0x0))return 0x1;if(_0x519a00[_0x5c79('0x16')](_0x22f224,!0x0))return-0x1;}return _0x4686b1[_0x5c79('0x24')]==_0x337a89?-0x1:_0x4ff8a0['annotation']==_0x337a89?0x1:0x0;})['map'](_0x2406ab=>_0x2406ab[_0x5c79('0x24')]);}get[_0x5c79('0xb')](){const _0x375cb7=new Map();for(const _0x1fdcfe of Array[_0x5c79('0x27')](this[_0x5c79('0x1c')]))for(const [_0x2930f7,_0xd24a53]of _0x1fdcfe())_0x375cb7[_0x5c79('0x8')](_0x2930f7,_0xd24a53);return _0x375cb7;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40b7=['_getBalloonTargetForAnnotation','from','view','_removeAnnotationFromBalloon','editing','EditorAnnotations','left','_balloon','width','_addAnnotationToBalloon','right','clear','init','editor','switchTo','update','activeAnnotation','fromRect','getByView','push','inline','focusTracker','bind','destroy','InlineAnnotations','_addedAnnotations','_manuallyClosed','plugins','register','getClientRects','change:isFocused','setActiveAnnotation','hasActive','context','detach','stopListening','_selectedAnnotations','targetRect','getBoundingClientRect','inlineannotations-detach-not-attached','delete','_setSelectedAnnotations','hasView','_forceRefresh','isActive','change:height','isFocused','add','refresh','collapse','domConverter','isAttached','target','_closeAnnotation','focus','top','viewRangeToDom','map','inlineannotations-not-allowed-with-context','document','getOrderedSelectedAnnotations','blur','get','includes','editableElement','remove','length','getFirstRange','addObserver','has','bottom','updatePosition','Esc','annotations','mousedown','set','listenTo','change:visibleView','visibleView','requires'];(function(_0x54c76e,_0x40b76e){const _0x38ef2d=function(_0x424850){while(--_0x424850){_0x54c76e['push'](_0x54c76e['shift']());}};_0x38ef2d(++_0x40b76e);}(_0x40b7,0x1c8));const _0x38ef=function(_0x54c76e,_0x40b76e){_0x54c76e=_0x54c76e-0x0;let _0x38ef2d=_0x40b7[_0x54c76e];return _0x38ef2d;};import{Plugin as _0x18bedf}from'ckeditor5/src/core';import _0x2f6758 from'./annotationsuis';import _0xe0051d from'./editorannotations';import{ContextualBalloon as _0x398762}from'ckeditor5/src/ui';import{MouseObserver as _0x3ba011}from'ckeditor5/src/engine';import{CKEditorError as _0x411c6e,Rect as _0x5361ff}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x18bedf{static get[_0x38ef('0x17')](){return[_0xe0051d,_0x398762,_0x2f6758];}static get['pluginName'](){return _0x38ef('0x30');}constructor(_0x1dabc5){super(_0x1dabc5),_0x1dabc5[_0x38ef('0x1c')][_0x38ef('0x1a')][_0x38ef('0xc')](_0x3ba011),this[_0x38ef('0x4b')]=!0x1,this[_0x38ef('0x13')](_0x38ef('0x28'),null),this[_0x38ef('0x11')]=null,this[_0x38ef('0x32')]=new Set(),this[_0x38ef('0x1f')]=_0x1dabc5[_0x38ef('0x33')]['get'](_0x398762),this[_0x38ef('0x31')]=new Set(),this['_selectedAnnotations']=[],this[_0x38ef('0x43')]=!0x1;}[_0x38ef('0x24')](){const _0xd93ce5=this[_0x38ef('0x25')]['plugins'][_0x38ef('0x6')](_0x2f6758);_0xd93ce5[_0x38ef('0x39')]===this[_0x38ef('0x25')]&&(_0xd93ce5[_0x38ef('0x34')]('inline',this),this[_0x38ef('0x25')]['keystrokes'][_0x38ef('0x13')](_0x38ef('0x10'),(_0x1f32b4,_0x4fd8dc)=>{const _0x1e5f44=this[_0x38ef('0x1f')];if(this[_0x38ef('0x4b')]&&_0x1e5f44[_0x38ef('0x16')]){const _0x3f9441=this[_0x38ef('0x11')][_0x38ef('0x2a')](_0x1e5f44[_0x38ef('0x16')]);this[_0x38ef('0x4d')](_0x3f9441),_0x4fd8dc();}}));}['afterInit'](){const _0xa74c34=this[_0x38ef('0x25')][_0x38ef('0x33')][_0x38ef('0x6')](_0x2f6758);_0xa74c34['context']===this[_0x38ef('0x25')]&&(_0xa74c34[_0x38ef('0x38')]()||_0xa74c34[_0x38ef('0x26')](_0x38ef('0x2c')));}[_0x38ef('0x37')](_0x436e02){_0x436e02!==this[_0x38ef('0x28')]&&(this[_0x38ef('0x28')]&&(this['activeAnnotation']['isActive']=!0x1),_0x436e02&&this['editor']['ui'][_0x38ef('0x2d')][_0x38ef('0x46')]&&(this['_addAnnotationToBalloon'](_0x436e02,!0x0),_0x436e02[_0x38ef('0x44')]=!0x0),_0x436e02||this[_0x38ef('0x41')]([]),this[_0x38ef('0x28')]=_0x436e02);}['attach'](_0x5b18f1){this['annotations']=_0x5b18f1;const _0x73c722=this[_0x38ef('0x25')][_0x38ef('0x33')][_0x38ef('0x6')](_0x2f6758),_0x1a9c99=this['_balloon'];if(this[_0x38ef('0x4b')])throw new _0x411c6e('inlineannotations-attach-already-attached',this);if(_0x73c722['context']!==this[_0x38ef('0x25')])throw new _0x411c6e(_0x38ef('0x2'),this);const _0x5cda68=this[_0x38ef('0x25')][_0x38ef('0x33')][_0x38ef('0x6')](_0x38ef('0x1d'));this[_0x38ef('0x14')](_0x5cda68,_0x38ef('0x48'),function(){const _0x115afe=_0x5cda68[_0x38ef('0x4')]({'activeAnnotation':this[_0x38ef('0x28')],'annotations':this[_0x38ef('0x11')]});if(!this[_0x38ef('0x43')]&&(_0x33ced5=_0x115afe,_0x6f6dc0=this[_0x38ef('0x3c')],_0x33ced5[_0x38ef('0xa')]===_0x6f6dc0[_0x38ef('0xa')]&&_0x33ced5['every'](_0x5d038e=>_0x6f6dc0[_0x38ef('0x7')](_0x5d038e))))return;var _0x33ced5,_0x6f6dc0;this[_0x38ef('0x43')]=!0x1,this[_0x38ef('0x41')](_0x115afe),this['setActiveAnnotation'](_0x115afe[0x0]||null);}[_0x38ef('0x2e')](this)),this['listenTo'](_0x5cda68,_0x38ef('0x5'),(_0x368d26,{isAnnotationTracked:_0x20c005})=>{this[_0x38ef('0x28')]&&_0x20c005(this[_0x38ef('0x28')])&&(this[_0x38ef('0x41')]([]),this['setActiveAnnotation'](null));}),this[_0x38ef('0x14')](this['editor']['ui'][_0x38ef('0x2d')],_0x38ef('0x36'),(_0x341bf5,_0x3679b7,_0x50af51)=>{_0x50af51||this['setActiveAnnotation'](null);}),this[_0x38ef('0x14')](_0x5b18f1,_0x38ef('0x9'),(_0xf19305,_0x3e1674)=>{this[_0x38ef('0x1b')](_0x3e1674),_0x3e1674===this[_0x38ef('0x28')]&&this[_0x38ef('0x37')](null);}),this[_0x38ef('0x14')](_0x1a9c99,_0x38ef('0x15'),(_0x9c8f88,_0xc2aaaf,_0x29a3e6,_0x665785)=>{if(_0x665785&&this[_0x38ef('0x3b')](_0x665785),!_0x29a3e6||!_0x5b18f1[_0x38ef('0x2a')](_0x29a3e6))return;const _0x265384=_0x5b18f1[_0x38ef('0x2a')](_0x29a3e6);this['listenTo'](_0x29a3e6,_0x38ef('0x45'),()=>{_0x1a9c99['updatePosition']();}),this[_0x38ef('0x14')](_0x29a3e6,'Esc',()=>{this[_0x38ef('0x4d')](_0x265384),this['editor'][_0x38ef('0x1c')][_0x38ef('0x1a')][_0x38ef('0x4e')]();}),this[_0x38ef('0x28')]!==_0x265384&&this['setActiveAnnotation'](_0x265384);}),this[_0x38ef('0x14')](this['editor']['ui'],_0x38ef('0x27'),()=>{_0x1a9c99['visibleView']&&(_0x5b18f1[_0x38ef('0x2a')](_0x1a9c99[_0x38ef('0x16')])&&_0x1a9c99[_0x38ef('0xf')]());}),this[_0x38ef('0x14')](this[_0x38ef('0x25')]['editing'][_0x38ef('0x1a')][_0x38ef('0x3')],_0x38ef('0x12'),()=>{this[_0x38ef('0x43')]=!0x0,this[_0x38ef('0x32')][_0x38ef('0x23')]();}),this[_0x38ef('0x25')][_0x38ef('0x1c')][_0x38ef('0x1a')][_0x38ef('0x3')]['selection'][_0x38ef('0x8')]&&this[_0x38ef('0x25')][_0x38ef('0x1c')][_0x38ef('0x1a')][_0x38ef('0x4e')](),this[_0x38ef('0x4b')]=!0x0;}[_0x38ef('0x3a')](){if(!this['isAttached'])throw new _0x411c6e(_0x38ef('0x3f'),this);this['setActiveAnnotation'](null);for(const _0x360fae of this[_0x38ef('0x31')])this[_0x38ef('0x1b')](_0x360fae);this[_0x38ef('0x3b')](),this['isAttached']=!0x1,this[_0x38ef('0x11')]=null;}[_0x38ef('0x2f')](){this[_0x38ef('0x4b')]&&this[_0x38ef('0x3a')]();}[_0x38ef('0x41')](_0x31568b){for(const _0x817894 of this[_0x38ef('0x3c')])_0x31568b[_0x38ef('0x7')](_0x817894)||this['_manuallyClosed']['delete'](_0x817894);for(const _0x3be14f of this[_0x38ef('0x11')])_0x31568b[_0x38ef('0x7')](_0x3be14f)||this[_0x38ef('0x1b')](_0x3be14f);if(this[_0x38ef('0x25')]['ui'][_0x38ef('0x2d')][_0x38ef('0x46')])for(const _0x4aa4dd of _0x31568b)this[_0x38ef('0x21')](_0x4aa4dd);this['_selectedAnnotations']=_0x31568b;}[_0x38ef('0x21')](_0x3cdc31,_0x19359b){this['_manuallyClosed'][_0x38ef('0xd')](_0x3cdc31)||(this[_0x38ef('0x31')][_0x38ef('0xd')](_0x3cdc31)||this[_0x38ef('0x1f')][_0x38ef('0x42')](_0x3cdc31[_0x38ef('0x1a')])||(this[_0x38ef('0x31')][_0x38ef('0x47')](_0x3cdc31),this[_0x38ef('0x1f')][_0x38ef('0x47')]({'stackId':_0x3cdc31[_0x38ef('0x1a')]['id'],'view':_0x3cdc31[_0x38ef('0x1a')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x3cdc31)}})),_0x19359b&&this[_0x38ef('0x1f')]['showStack'](_0x3cdc31[_0x38ef('0x1a')]['id']));}[_0x38ef('0x18')](_0x3b1c4d){const _0xa38207=_0x3b1c4d[_0x38ef('0x4c')],_0x3ecb4e=this[_0x38ef('0x25')]['editing']['view'],_0x42549a=_0x3ecb4e[_0x38ef('0x3')]['selection'][_0x38ef('0xb')](),_0x13c74f=_0x3ecb4e[_0x38ef('0x4a')][_0x38ef('0x0')](_0x42549a);if(_0x13c74f[_0x38ef('0x49')](!0x0),_0xa38207){if(_0xa38207 instanceof _0x5361ff)return _0xa38207;let _0x117bd1=[];for(const _0x3e8d9c of _0xa38207)_0x117bd1[_0x38ef('0x2b')](...(_0x12476c=_0x3e8d9c[_0x38ef('0x35')](),Array[_0x38ef('0x19')](_0x12476c)[_0x38ef('0x1')](DOMRect[_0x38ef('0x29')])));_0x117bd1=function(_0x4606e2){const _0x8c0c4=[];let _0x42b478=_0x4606e2[0x0];for(let _0x180e25=0x1;_0x180e25<_0x4606e2[_0x38ef('0xa')];_0x180e25++)E(_0x42b478,_0x4606e2[_0x180e25])?_0x42b478['width']+=_0x4606e2[_0x180e25][_0x38ef('0x20')]:(_0x8c0c4['push'](_0x42b478),_0x42b478=_0x4606e2[_0x180e25]);return _0x8c0c4['push'](_0x42b478),_0x8c0c4;}(_0x117bd1);const _0x5f0da0=_0x13c74f[_0x38ef('0x3e')]();return _0x117bd1['find'](_0x37d6ab=>_0x37d6ab[_0x38ef('0x4f')]<=_0x5f0da0[_0x38ef('0x4f')]&&_0x37d6ab['bottom']>=_0x5f0da0[_0x38ef('0xe')]&&_0x37d6ab[_0x38ef('0x1e')]<=_0x5f0da0[_0x38ef('0x1e')]&&_0x37d6ab[_0x38ef('0x22')]>=_0x5f0da0[_0x38ef('0x22')])||_0x117bd1[0x0];}var _0x12476c;return _0x3b1c4d[_0x38ef('0x3d')]||_0x13c74f;}[_0x38ef('0x1b')](_0x36d5d1){this['_addedAnnotations'][_0x38ef('0xd')](_0x36d5d1)&&this[_0x38ef('0x1f')][_0x38ef('0x42')](_0x36d5d1[_0x38ef('0x1a')])&&(this[_0x38ef('0x31')][_0x38ef('0x40')](_0x36d5d1),this[_0x38ef('0x1f')]['remove'](_0x36d5d1[_0x38ef('0x1a')]));}[_0x38ef('0x4d')](_0x3043a3){this[_0x38ef('0x32')][_0x38ef('0x47')](_0x3043a3),this['_removeAnnotationFromBalloon'](_0x3043a3);}}function E(_0x8fd043,_0x1cab75){return _0x8fd043[_0x38ef('0x4f')]===_0x1cab75[_0x38ef('0x4f')]&&_0x8fd043['bottom']===_0x1cab75[_0x38ef('0xe')]&&_0x8fd043[_0x38ef('0x22')]===_0x1cab75[_0x38ef('0x1e')];}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x345e=['_showBalloon','content','add','stopListening','detach','keyCode','refresh','annotationType','isDirty','southArrowNorthWest','_annotationToNarrowView','editors','_setSelectedAnnotations','register','southArrowNorth','bodyCollection','ready','Sidebar','pluginName','setActiveAnnotation','remove','mousedown','set:container','defaultPositions','init','isVisible','_refreshPositioning','removeEventListener','preventDefault','requires','number','attach','isAttached','keydown','create','target','_domEmitter','delete','off','preventClosingBalloon','resize','ck-sidebar--narrow','activeAnnotation','contains','first','_refreshPositioningDebounced','view','addEventListener','unpin','set','attachToDom','element','narrowsidebar-attach-already-attached','_hideBalloon','annotations','stop','locale','_updateBalloonPosition','_attachListeners','pin','destroy','_detachListeners','_annotations','_integrateWithEditorAnnotations','addAnnotation','Esc','_manuallyClosedAnnotationViews','getSidebarItemView','context','northArrowSouthWest','_destroyEditorAnnotationsIntegration','high','type','_attachToContainer','has','NarrowSidebar','balloonPanelView','get','blur','getByView','change:container','from','refreshPositioning','listenTo','plugins','EditorAnnotations','detachFromDom','includes','focus','execute','northArrowSouth','hasDomSelection','_editorAnnotations','narrowsidebar-detach-not-attached','_selectedAnnotations','clear','southArrowNorthEast'];(function(_0x18dfa4,_0x345e1d){const _0x26a996=function(_0x3b00e4){while(--_0x3b00e4){_0x18dfa4['push'](_0x18dfa4['shift']());}};_0x26a996(++_0x345e1d);}(_0x345e,0xcc));const _0x26a9=function(_0x18dfa4,_0x345e1d){_0x18dfa4=_0x18dfa4-0x0;let _0x26a996=_0x345e[_0x18dfa4];return _0x26a996;};import{ContextPlugin as _0x5b5fe7}from'ckeditor5/src/core';import _0x3ceff8 from'./annotationsuis';import _0x135e89 from'./sidebar';import _0x6ba298 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x46efca,BodyCollection as _0x50c2bd}from'ckeditor5/src/ui';import{CKEditorError as _0x5a8c46,DomEmitterMixin as _0x327c70,keyCodes as _0x18baf,Collection as _0x17726f}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x3891ea}from'lodash-es';export default class s extends _0x5b5fe7{static get[_0x26a9('0x13')](){return[_0x135e89,_0x3ceff8];}static get[_0x26a9('0x8')](){return _0x26a9('0x41');}constructor(_0x32d86c){super(_0x32d86c),this['isAttached']=!0x1,this[_0x26a9('0x38')]=new Set(),this['_domEmitter']=Object[_0x26a9('0x18')](_0x327c70),this[_0x26a9('0x0')]=new Map(),this['set'](_0x26a9('0x20'),null),this[_0x26a9('0x2c')]=null,this['_selectedAnnotations']=[],this[_0x26a9('0x52')]=new _0x17726f(),this[_0x26a9('0x23')]=_0x3891ea(()=>{this[_0x26a9('0x10')]();},0xfa,{'leading':!0x1});}[_0x26a9('0xe')](){this[_0x26a9('0x3a')][_0x26a9('0x4a')][_0x26a9('0x43')](_0x3ceff8)[_0x26a9('0x3')]('narrowSidebar',this),this[_0x26a9('0x5')]=new _0x50c2bd(this[_0x26a9('0x3a')][_0x26a9('0x2e')]),this[_0x26a9('0x42')]=new _0x46efca(this['context'][_0x26a9('0x2e')]),this[_0x26a9('0x5')][_0x26a9('0x28')](),this[_0x26a9('0x5')][_0x26a9('0x59')](this[_0x26a9('0x42')]);}[_0x26a9('0x15')](_0x2410f5){this[_0x26a9('0x2c')]=_0x2410f5;const _0x1b9f07=this['context']['plugins'][_0x26a9('0x43')](_0x135e89),_0x4d0e3f=this[_0x26a9('0x42')];if(_0x1b9f07[_0x26a9('0x34')]=_0x2410f5,this['isAttached'])throw new _0x5a8c46(_0x26a9('0x2a'),this);this[_0x26a9('0x16')]=!0x0,this[_0x26a9('0x49')](_0x1b9f07,_0x26a9('0xc'),()=>{this['detach'](),this['listenTo'](_0x1b9f07,_0x26a9('0x46'),_0x31c711=>{_0x31c711[_0x26a9('0x1c')](),this[_0x26a9('0x15')](_0x2410f5);});}),_0x1b9f07[_0x26a9('0x3f')]({'viewClass':_0x26a9('0x1f'),'spaceBetweenItems':0x5});const _0x2e4251=_0x31621d=>{const _0x3efd7e=new _0x6ba298(this[_0x26a9('0x3a')]['locale']);_0x1b9f07[_0x26a9('0x36')](_0x31621d,_0x3efd7e),this['_annotationToNarrowView'][_0x26a9('0x27')](_0x31621d,_0x3efd7e),_0x3efd7e['bind']('isDirty',_0x26a9('0x5e'),_0x26a9('0x14'))['to'](_0x31621d[_0x26a9('0x24')],_0x26a9('0x5f'),_0x26a9('0x3e'),'length'),_0x3efd7e['on'](_0x26a9('0x4f'),()=>{this[_0x26a9('0x38')][_0x26a9('0x55')](),_0x4d0e3f[_0x26a9('0x58')][_0x26a9('0x22')]!==_0x31621d[_0x26a9('0x24')]?(this[_0x26a9('0x57')](_0x31621d),_0x31621d[_0x26a9('0x24')][_0x26a9('0x29')][_0x26a9('0x4e')](),this['setActiveAnnotation'](_0x31621d)):this['setActiveAnnotation'](null);});};for(const _0x7f7fcd of _0x2410f5)_0x2e4251(_0x7f7fcd);this[_0x26a9('0x49')](_0x2410f5,'add',(_0x40368b,_0x17ca48)=>{_0x2e4251(_0x17ca48);}),this[_0x26a9('0x49')](_0x2410f5,_0x26a9('0xa'),(_0x36fa0a,_0xd7c4f2,_0x123680)=>{this['_annotationToNarrowView']['get'](_0xd7c4f2)[_0x26a9('0x32')](),this[_0x26a9('0x0')][_0x26a9('0x1b')](_0xd7c4f2),_0x1b9f07['rearrange']({'removedAnnotation':_0xd7c4f2,'previousAnnotation':_0x2410f5['get'](_0x123680-0x1),'nextAnnotation':_0x2410f5['get'](_0x123680+0x1)}),_0xd7c4f2===this['activeAnnotation']&&this[_0x26a9('0x9')](null);},{'priority':'low'}),this[_0x26a9('0x49')](_0x2410f5,_0x26a9('0x4e'),(_0x3c33ea,_0x5c47d3)=>{this['setActiveAnnotation'](_0x5c47d3);}),this[_0x26a9('0x49')](_0x2410f5,_0x26a9('0x44'),()=>{this[_0x26a9('0x9')](null);}),this[_0x26a9('0x1a')][_0x26a9('0x49')](document,_0x26a9('0x17'),(_0x4f29eb,_0xeac032)=>{_0xeac032[_0x26a9('0x5c')]===_0x18baf['esc']&&_0x4d0e3f[_0x26a9('0xf')]&&(this['_manuallyClosedAnnotationViews'][_0x26a9('0x59')](_0x4d0e3f[_0x26a9('0x58')][_0x26a9('0x22')]),this[_0x26a9('0x2b')](),_0xeac032['stopPropagation'](),_0xeac032[_0x26a9('0x12')]());}),this[_0x26a9('0x1a')][_0x26a9('0x49')](document,_0x26a9('0xb'),(_0x2c385b,_0x5e2a21)=>{const _0x5d5dde=_0x5e2a21[_0x26a9('0x19')];_0x4d0e3f['isVisible']&&_0x4d0e3f[_0x26a9('0x29')][_0x26a9('0x21')](_0x5d5dde)||_0x1b9f07['view'][_0x26a9('0x29')][_0x26a9('0x21')](_0x5d5dde)||_0x2c385b[_0x26a9('0x1d')]||(this[_0x26a9('0x38')][_0x26a9('0x55')](),this[_0x26a9('0x2b')](),this[_0x26a9('0x9')](null));});const _0x11db78=this['context'][_0x26a9('0x1')]?this[_0x26a9('0x3a')][_0x26a9('0x1')]:new _0x17726f([this[_0x26a9('0x3a')]]);for(const _0x1b03eb of _0x11db78)this[_0x26a9('0x35')](_0x1b03eb);this[_0x26a9('0x49')](_0x11db78,_0x26a9('0x59'),(_0x40c7a7,_0x4d681a)=>{this[_0x26a9('0x49')](_0x4d681a,_0x26a9('0x6'),()=>{this[_0x26a9('0x35')](_0x4d681a);});}),this[_0x26a9('0x49')](_0x11db78,'remove',(_0x500062,_0x470e18)=>{_0x470e18['plugins'][_0x26a9('0x40')](_0x26a9('0x4b'))&&this[_0x26a9('0x3c')](_0x470e18['plugins'][_0x26a9('0x43')](_0x26a9('0x4b')));}),window[_0x26a9('0x25')](_0x26a9('0x1e'),this[_0x26a9('0x23')]),this['_refreshPositioning']();}[_0x26a9('0x9')](_0x2a5a55){if(_0x2a5a55===this['activeAnnotation'])return;const _0x1eab9b=this[_0x26a9('0x3a')][_0x26a9('0x4a')][_0x26a9('0x43')](_0x26a9('0x7'));if(_0x1eab9b[_0x26a9('0x5d')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2a5a55,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2a5a55)_0x1eab9b[_0x26a9('0x39')](_0x2a5a55)?this['_showBalloon'](_0x2a5a55):this[_0x26a9('0x2b')]();else this['_hideBalloon']();this[_0x26a9('0x20')]=_0x2a5a55;}[_0x26a9('0x5b')](){if(!this[_0x26a9('0x16')])throw new _0x5a8c46(_0x26a9('0x53'),this);this[_0x26a9('0x9')](null);const _0x407787=this[_0x26a9('0x3a')]['plugins']['get'](_0x26a9('0x7'));this['_hideBalloon'](),Array[_0x26a9('0x47')](this[_0x26a9('0x0')]['values'](),_0x4fbbf9=>_0x4fbbf9[_0x26a9('0x32')]()),this[_0x26a9('0x0')][_0x26a9('0x55')](),_0x407787['_detachFromContainer'](this['annotations']),this[_0x26a9('0x5a')](),this[_0x26a9('0x1a')][_0x26a9('0x5a')](),this[_0x26a9('0x5a')](this[_0x26a9('0x3a')][_0x26a9('0x1')]);for(const _0x34e2ed of Array[_0x26a9('0x47')](this[_0x26a9('0x52')]))this['_destroyEditorAnnotationsIntegration'](_0x34e2ed);window[_0x26a9('0x11')](_0x26a9('0x1e'),this[_0x26a9('0x23')]),this['_refreshPositioningDebounced']['cancel'](),this[_0x26a9('0x54')]=[],this[_0x26a9('0x16')]=!0x1,this[_0x26a9('0x2c')]=null;}[_0x26a9('0x32')](){this[_0x26a9('0x16')]&&this[_0x26a9('0x5b')](),this[_0x26a9('0x5')][_0x26a9('0x4c')]();}['_integrateWithEditorAnnotations'](_0x1f3550){const _0x15fd29=_0x1f3550['plugins'][_0x26a9('0x43')]('EditorAnnotations'),_0x20addf=this[_0x26a9('0x3a')][_0x26a9('0x4a')]['get'](_0x135e89),_0x1c87d8=this[_0x26a9('0x2c')],_0x1be126=this[_0x26a9('0x42')],_0x47f48e=()=>{const _0x44711a=_0x15fd29['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this['annotations']});this[_0x26a9('0x2')](_0x44711a),this[_0x26a9('0x9')](_0x44711a[0x0]||null);};this[_0x26a9('0x49')](_0x15fd29,'refresh',_0x47f48e),this[_0x26a9('0x49')](_0x15fd29,_0x26a9('0x44'),(_0x1b0bc1,{isAnnotationTracked:_0x27a143})=>{this[_0x26a9('0x20')]&&_0x27a143(this['activeAnnotation'])&&(this[_0x26a9('0x2')]([]),this[_0x26a9('0x9')](null));}),this[_0x26a9('0x49')](_0x15fd29,'uiUpdate',()=>{this[_0x26a9('0x23')]();}),this['listenTo'](_0x1c87d8,_0x26a9('0x44'),_0x444f6f=>{_0x15fd29[_0x26a9('0x51')]()&&_0x444f6f[_0x26a9('0x2d')]();},{'priority':_0x26a9('0x3d')}),this['_domEmitter'][_0x26a9('0x49')](document,_0x26a9('0xb'),(_0x5ac51d,_0x5d5232)=>{const _0x44fb36=_0x5d5232[_0x26a9('0x19')];_0x1be126[_0x26a9('0xf')]&&_0x1be126[_0x26a9('0x29')]['contains'](_0x44fb36)||_0x20addf['view'][_0x26a9('0x29')][_0x26a9('0x21')](_0x44fb36)||this['activeAnnotation']&&_0x15fd29[_0x26a9('0x51')]()&&(_0x47f48e(),_0x5ac51d[_0x26a9('0x1d')]=!0x0);},{'priority':'high'}),this[_0x26a9('0x52')][_0x26a9('0x59')](_0x15fd29);}['_destroyEditorAnnotationsIntegration'](_0x1e2230){_0x1e2230&&(this['stopListening'](_0x1e2230),this[_0x26a9('0x52')]['remove'](_0x1e2230));}['_setSelectedAnnotations'](_0x355026){for(const _0x38b61f of this[_0x26a9('0x54')])_0x355026[_0x26a9('0x4d')](_0x38b61f)||this[_0x26a9('0x38')][_0x26a9('0x1b')](_0x38b61f[_0x26a9('0x24')]);this['_selectedAnnotations']=_0x355026;}[_0x26a9('0x10')](){const _0x3c9295=this[_0x26a9('0x42')];this[_0x26a9('0x2c')][_0x26a9('0x48')](),_0x3c9295[_0x26a9('0xf')]&&this['_updateBalloonPosition']();}[_0x26a9('0x57')](_0x313a3f){if(this['_manuallyClosedAnnotationViews'][_0x26a9('0x40')](_0x313a3f[_0x26a9('0x24')]))return;const _0x27f873=this['balloonPanelView'][_0x26a9('0x58')][_0x26a9('0x22')];_0x27f873!==_0x313a3f['view']?(_0x27f873&&this[_0x26a9('0x33')](_0x27f873),this['_attachListeners'](_0x313a3f[_0x26a9('0x24')]),this['balloonPanelView']['content'][_0x26a9('0x55')](),this['balloonPanelView']['content'][_0x26a9('0x59')](_0x313a3f[_0x26a9('0x24')]),this[_0x26a9('0x2f')]()):this[_0x26a9('0x2f')]();}[_0x26a9('0x2f')](){const _0x133bbf=this[_0x26a9('0x42')][_0x26a9('0x58')]['first'],_0x2583b1=this[_0x26a9('0x2c')][_0x26a9('0x45')](_0x133bbf);if(!this[_0x26a9('0x0')]['has'](_0x2583b1))return;const _0x5ba942=this['_annotationToNarrowView'][_0x26a9('0x43')](_0x2583b1)[_0x26a9('0x29')],_0x4cd686=function(){const _0x372475=_0x46efca[_0x26a9('0xd')];return[_0x372475[_0x26a9('0x56')],_0x372475['northArrowSouthEast'],_0x372475[_0x26a9('0x4')],_0x372475[_0x26a9('0x50')],_0x372475[_0x26a9('0x60')],_0x372475[_0x26a9('0x3b')]];}();this[_0x26a9('0x42')][_0x26a9('0x31')]({'target':_0x5ba942,'positions':_0x4cd686});}[_0x26a9('0x2b')](){const _0x519721=this[_0x26a9('0x42')],_0x15c110=_0x519721[_0x26a9('0x58')][_0x26a9('0x22')];_0x15c110&&(this[_0x26a9('0x33')](_0x15c110),_0x519721[_0x26a9('0x26')](),_0x519721[_0x26a9('0x58')][_0x26a9('0x55')]());}[_0x26a9('0x30')](_0x4ca639){this[_0x26a9('0x49')](_0x4ca639,'change:height',()=>this[_0x26a9('0x2f')]()),this[_0x26a9('0x49')](_0x4ca639,_0x26a9('0x37'),(_0x29f1a4,_0x6d2479)=>{this[_0x26a9('0x38')]['add'](_0x4ca639),this[_0x26a9('0x2b')](),_0x6d2479();});}[_0x26a9('0x33')](_0x3913e4){this['stopListening'](_0x3913e4);}}
|
|
23
|
+
const _0x2101=['activeAnnotation','keyCode','rearrange','destroy','_detachListeners','balloonPanelView','_attachToContainer','setActiveAnnotation','detachFromDom','refresh','_integrateWithEditorAnnotations','isAttached','NarrowSidebar','_refreshPositioningDebounced','hasDomSelection','attach','_domEmitter','high','refreshPositioning','focus','change:container','attachToDom','pin','ready','_destroyEditorAnnotationsIntegration','uiUpdate','plugins','_updateBalloonPosition','_annotations','resize','editors','from','register','annotationType','number','southArrowNorth','detach','execute','add','_editorAnnotations','Sidebar','type','_setSelectedAnnotations','_showBalloon','delete','clear','preventDefault','isDirty','narrowSidebar','narrowsidebar-attach-already-attached','_selectedAnnotations','content','change:height','keydown','stop','context','northArrowSouthWest','preventClosingBalloon','northArrowSouthEast','bodyCollection','length','view','init','EditorAnnotations','isVisible','has','getSidebarItemView','stopListening','set:container','remove','first','getByView','locale','requires','values','_refreshPositioning','mousedown','blur','get','getOrderedSelectedAnnotations','_attachListeners','unpin','contains','annotations','set','_manuallyClosedAnnotationViews','element','southArrowNorthEast','_hideBalloon','defaultPositions','create','removeEventListener','_annotationToNarrowView','listenTo','stopPropagation','low','target'];(function(_0x4ff4d2,_0x210150){const _0x50a65f=function(_0x2455a8){while(--_0x2455a8){_0x4ff4d2['push'](_0x4ff4d2['shift']());}};_0x50a65f(++_0x210150);}(_0x2101,0x1b4));const _0x50a6=function(_0x4ff4d2,_0x210150){_0x4ff4d2=_0x4ff4d2-0x0;let _0x50a65f=_0x2101[_0x4ff4d2];return _0x50a65f;};import{ContextPlugin as _0x26f94f}from'ckeditor5/src/core';import _0x3118b2 from'./annotationsuis';import _0xbd81b9 from'./sidebar';import _0x29d404 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4d1e5d,BodyCollection as _0x3c37fa}from'ckeditor5/src/ui';import{CKEditorError as _0x1af5dc,DomEmitterMixin as _0x390e02,keyCodes as _0x26718d,Collection as _0x58ba3a}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x114b9b}from'lodash-es';export default class s extends _0x26f94f{static get[_0x50a6('0x19')](){return[_0xbd81b9,_0x3118b2];}static get['pluginName'](){return _0x50a6('0x3d');}constructor(_0x5729bc){super(_0x5729bc),this[_0x50a6('0x3c')]=!0x1,this[_0x50a6('0x25')]=new Set(),this[_0x50a6('0x41')]=Object[_0x50a6('0x2a')](_0x390e02),this[_0x50a6('0x2c')]=new Map(),this[_0x50a6('0x24')]('activeAnnotation',null),this[_0x50a6('0x23')]=null,this[_0x50a6('0x2')]=[],this[_0x50a6('0x58')]=new _0x58ba3a(),this[_0x50a6('0x3e')]=_0x114b9b(()=>{this[_0x50a6('0x1b')]();},0xfa,{'leading':!0x1});}[_0x50a6('0xe')](){this['context'][_0x50a6('0x4b')][_0x50a6('0x1e')](_0x3118b2)[_0x50a6('0x51')](_0x50a6('0x0'),this),this[_0x50a6('0xb')]=new _0x3c37fa(this[_0x50a6('0x7')][_0x50a6('0x18')]),this[_0x50a6('0x36')]=new _0x4d1e5d(this[_0x50a6('0x7')][_0x50a6('0x18')]),this[_0x50a6('0xb')][_0x50a6('0x46')](),this[_0x50a6('0xb')][_0x50a6('0x57')](this['balloonPanelView']);}[_0x50a6('0x40')](_0x59b2a4){this[_0x50a6('0x23')]=_0x59b2a4;const _0x4efd05=this['context'][_0x50a6('0x4b')][_0x50a6('0x1e')](_0xbd81b9),_0x4d3527=this[_0x50a6('0x36')];if(_0x4efd05[_0x50a6('0x4d')]=_0x59b2a4,this[_0x50a6('0x3c')])throw new _0x1af5dc(_0x50a6('0x1'),this);this[_0x50a6('0x3c')]=!0x0,this[_0x50a6('0x2d')](_0x4efd05,_0x50a6('0x14'),()=>{this['detach'](),this[_0x50a6('0x2d')](_0x4efd05,_0x50a6('0x45'),_0x53d39a=>{_0x53d39a['off'](),this[_0x50a6('0x40')](_0x59b2a4);});}),_0x4efd05[_0x50a6('0x37')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x29fc69=_0x40ec96=>{const _0x4c2f24=new _0x29d404(this[_0x50a6('0x7')][_0x50a6('0x18')]);_0x4efd05['addAnnotation'](_0x40ec96,_0x4c2f24),this[_0x50a6('0x2c')]['set'](_0x40ec96,_0x4c2f24),_0x4c2f24['bind'](_0x50a6('0x60'),_0x50a6('0x52'),_0x50a6('0x53'))['to'](_0x40ec96[_0x50a6('0xd')],_0x50a6('0x60'),_0x50a6('0x5a'),_0x50a6('0xc')),_0x4c2f24['on'](_0x50a6('0x56'),()=>{this['_manuallyClosedAnnotationViews'][_0x50a6('0x5e')](),_0x4d3527[_0x50a6('0x3')]['first']!==_0x40ec96['view']?(this[_0x50a6('0x5c')](_0x40ec96),_0x40ec96[_0x50a6('0xd')][_0x50a6('0x26')][_0x50a6('0x44')](),this[_0x50a6('0x38')](_0x40ec96)):this[_0x50a6('0x38')](null);});};for(const _0x2b0174 of _0x59b2a4)_0x29fc69(_0x2b0174);this[_0x50a6('0x2d')](_0x59b2a4,_0x50a6('0x57'),(_0x52a7ea,_0xf12b08)=>{_0x29fc69(_0xf12b08);}),this[_0x50a6('0x2d')](_0x59b2a4,_0x50a6('0x15'),(_0xb026f8,_0xa1fac0,_0x4f4b5e)=>{this[_0x50a6('0x2c')]['get'](_0xa1fac0)['destroy'](),this[_0x50a6('0x2c')]['delete'](_0xa1fac0),_0x4efd05[_0x50a6('0x33')]({'removedAnnotation':_0xa1fac0,'previousAnnotation':_0x59b2a4['get'](_0x4f4b5e-0x1),'nextAnnotation':_0x59b2a4[_0x50a6('0x1e')](_0x4f4b5e+0x1)}),_0xa1fac0===this['activeAnnotation']&&this[_0x50a6('0x38')](null);},{'priority':_0x50a6('0x2f')}),this[_0x50a6('0x2d')](_0x59b2a4,'focus',(_0x2e7afe,_0x50b377)=>{this[_0x50a6('0x38')](_0x50b377);}),this[_0x50a6('0x2d')](_0x59b2a4,_0x50a6('0x1d'),()=>{this[_0x50a6('0x38')](null);}),this[_0x50a6('0x41')][_0x50a6('0x2d')](document,_0x50a6('0x5'),(_0x418143,_0xad62ee)=>{_0xad62ee[_0x50a6('0x32')]===_0x26718d['esc']&&_0x4d3527[_0x50a6('0x10')]&&(this['_manuallyClosedAnnotationViews'][_0x50a6('0x57')](_0x4d3527['content']['first']),this[_0x50a6('0x28')](),_0xad62ee[_0x50a6('0x2e')](),_0xad62ee[_0x50a6('0x5f')]());}),this[_0x50a6('0x41')][_0x50a6('0x2d')](document,_0x50a6('0x1c'),(_0x4e3e81,_0x230db8)=>{const _0x360481=_0x230db8['target'];_0x4d3527['isVisible']&&_0x4d3527[_0x50a6('0x26')][_0x50a6('0x22')](_0x360481)||_0x4efd05[_0x50a6('0xd')][_0x50a6('0x26')][_0x50a6('0x22')](_0x360481)||_0x4e3e81[_0x50a6('0x9')]||(this[_0x50a6('0x25')][_0x50a6('0x5e')](),this['_hideBalloon'](),this[_0x50a6('0x38')](null));});const _0x2638d3=this[_0x50a6('0x7')][_0x50a6('0x4f')]?this[_0x50a6('0x7')][_0x50a6('0x4f')]:new _0x58ba3a([this['context']]);for(const _0x133317 of _0x2638d3)this[_0x50a6('0x3b')](_0x133317);this[_0x50a6('0x2d')](_0x2638d3,'add',(_0x3c51be,_0x3286a4)=>{this['listenTo'](_0x3286a4,_0x50a6('0x48'),()=>{this['_integrateWithEditorAnnotations'](_0x3286a4);});}),this[_0x50a6('0x2d')](_0x2638d3,_0x50a6('0x15'),(_0x260d78,_0x30897c)=>{_0x30897c[_0x50a6('0x4b')]['has'](_0x50a6('0xf'))&&this['_destroyEditorAnnotationsIntegration'](_0x30897c[_0x50a6('0x4b')][_0x50a6('0x1e')](_0x50a6('0xf')));}),window['addEventListener'](_0x50a6('0x4e'),this[_0x50a6('0x3e')]),this[_0x50a6('0x1b')]();}[_0x50a6('0x38')](_0x491c48){if(_0x491c48===this[_0x50a6('0x31')])return;const _0x1c5b1b=this[_0x50a6('0x7')][_0x50a6('0x4b')][_0x50a6('0x1e')](_0x50a6('0x59'));if(_0x1c5b1b[_0x50a6('0x3a')]({'blurredAnnotation':this[_0x50a6('0x31')],'activatedAnnotation':_0x491c48,'disableAnimationOnActivatedAnnotation':!0x0}),_0x491c48)_0x1c5b1b[_0x50a6('0x12')](_0x491c48)?this[_0x50a6('0x5c')](_0x491c48):this[_0x50a6('0x28')]();else this['_hideBalloon']();this[_0x50a6('0x31')]=_0x491c48;}[_0x50a6('0x55')](){if(!this[_0x50a6('0x3c')])throw new _0x1af5dc('narrowsidebar-detach-not-attached',this);this[_0x50a6('0x38')](null);const _0x1e56cb=this[_0x50a6('0x7')][_0x50a6('0x4b')][_0x50a6('0x1e')](_0x50a6('0x59'));this[_0x50a6('0x28')](),Array[_0x50a6('0x50')](this['_annotationToNarrowView'][_0x50a6('0x1a')](),_0x31405d=>_0x31405d[_0x50a6('0x34')]()),this[_0x50a6('0x2c')][_0x50a6('0x5e')](),_0x1e56cb['_detachFromContainer'](this[_0x50a6('0x23')]),this[_0x50a6('0x13')](),this[_0x50a6('0x41')][_0x50a6('0x13')](),this[_0x50a6('0x13')](this['context'][_0x50a6('0x4f')]);for(const _0x209d0d of Array['from'](this[_0x50a6('0x58')]))this[_0x50a6('0x49')](_0x209d0d);window[_0x50a6('0x2b')]('resize',this[_0x50a6('0x3e')]),this[_0x50a6('0x3e')]['cancel'](),this[_0x50a6('0x2')]=[],this[_0x50a6('0x3c')]=!0x1,this[_0x50a6('0x23')]=null;}[_0x50a6('0x34')](){this['isAttached']&&this[_0x50a6('0x55')](),this['bodyCollection'][_0x50a6('0x39')]();}[_0x50a6('0x3b')](_0x5b52a1){const _0x47fc59=_0x5b52a1[_0x50a6('0x4b')][_0x50a6('0x1e')](_0x50a6('0xf')),_0x377211=this[_0x50a6('0x7')]['plugins'][_0x50a6('0x1e')](_0xbd81b9),_0x43d428=this[_0x50a6('0x23')],_0x2e9fa4=this[_0x50a6('0x36')],_0x274473=()=>{const _0x521c97=_0x47fc59[_0x50a6('0x1f')]({'activeAnnotation':this[_0x50a6('0x31')],'annotations':this[_0x50a6('0x23')]});this[_0x50a6('0x5b')](_0x521c97),this[_0x50a6('0x38')](_0x521c97[0x0]||null);};this[_0x50a6('0x2d')](_0x47fc59,_0x50a6('0x3a'),_0x274473),this[_0x50a6('0x2d')](_0x47fc59,_0x50a6('0x1d'),(_0x572926,{isAnnotationTracked:_0x2ae38c})=>{this[_0x50a6('0x31')]&&_0x2ae38c(this[_0x50a6('0x31')])&&(this['_setSelectedAnnotations']([]),this[_0x50a6('0x38')](null));}),this[_0x50a6('0x2d')](_0x47fc59,_0x50a6('0x4a'),()=>{this[_0x50a6('0x3e')]();}),this[_0x50a6('0x2d')](_0x43d428,_0x50a6('0x1d'),_0x30883f=>{_0x47fc59[_0x50a6('0x3f')]()&&_0x30883f[_0x50a6('0x6')]();},{'priority':_0x50a6('0x42')}),this[_0x50a6('0x41')][_0x50a6('0x2d')](document,_0x50a6('0x1c'),(_0x5cc423,_0x3b7e9a)=>{const _0x23b673=_0x3b7e9a[_0x50a6('0x30')];_0x2e9fa4[_0x50a6('0x10')]&&_0x2e9fa4['element'][_0x50a6('0x22')](_0x23b673)||_0x377211[_0x50a6('0xd')][_0x50a6('0x26')]['contains'](_0x23b673)||this[_0x50a6('0x31')]&&_0x47fc59[_0x50a6('0x3f')]()&&(_0x274473(),_0x5cc423[_0x50a6('0x9')]=!0x0);},{'priority':_0x50a6('0x42')}),this[_0x50a6('0x58')][_0x50a6('0x57')](_0x47fc59);}[_0x50a6('0x49')](_0x5ce8b6){_0x5ce8b6&&(this[_0x50a6('0x13')](_0x5ce8b6),this[_0x50a6('0x58')][_0x50a6('0x15')](_0x5ce8b6));}[_0x50a6('0x5b')](_0x59719d){for(const _0x546030 of this[_0x50a6('0x2')])_0x59719d['includes'](_0x546030)||this['_manuallyClosedAnnotationViews'][_0x50a6('0x5d')](_0x546030[_0x50a6('0xd')]);this[_0x50a6('0x2')]=_0x59719d;}[_0x50a6('0x1b')](){const _0x21ea93=this[_0x50a6('0x36')];this[_0x50a6('0x23')][_0x50a6('0x43')](),_0x21ea93['isVisible']&&this['_updateBalloonPosition']();}[_0x50a6('0x5c')](_0x51482f){if(this['_manuallyClosedAnnotationViews'][_0x50a6('0x11')](_0x51482f[_0x50a6('0xd')]))return;const _0x26527b=this[_0x50a6('0x36')][_0x50a6('0x3')][_0x50a6('0x16')];_0x26527b!==_0x51482f[_0x50a6('0xd')]?(_0x26527b&&this['_detachListeners'](_0x26527b),this[_0x50a6('0x20')](_0x51482f[_0x50a6('0xd')]),this[_0x50a6('0x36')][_0x50a6('0x3')][_0x50a6('0x5e')](),this[_0x50a6('0x36')][_0x50a6('0x3')][_0x50a6('0x57')](_0x51482f[_0x50a6('0xd')]),this[_0x50a6('0x4c')]()):this[_0x50a6('0x4c')]();}[_0x50a6('0x4c')](){const _0x535990=this[_0x50a6('0x36')][_0x50a6('0x3')]['first'],_0x1efc9a=this['annotations'][_0x50a6('0x17')](_0x535990);if(!this[_0x50a6('0x2c')][_0x50a6('0x11')](_0x1efc9a))return;const _0x40880b=this[_0x50a6('0x2c')][_0x50a6('0x1e')](_0x1efc9a)[_0x50a6('0x26')],_0x401108=function(){const _0x2c812f=_0x4d1e5d[_0x50a6('0x29')];return[_0x2c812f[_0x50a6('0x27')],_0x2c812f[_0x50a6('0xa')],_0x2c812f[_0x50a6('0x54')],_0x2c812f['northArrowSouth'],_0x2c812f['southArrowNorthWest'],_0x2c812f[_0x50a6('0x8')]];}();this[_0x50a6('0x36')][_0x50a6('0x47')]({'target':_0x40880b,'positions':_0x401108});}[_0x50a6('0x28')](){const _0x54636c=this[_0x50a6('0x36')],_0x5935a7=_0x54636c['content']['first'];_0x5935a7&&(this[_0x50a6('0x35')](_0x5935a7),_0x54636c[_0x50a6('0x21')](),_0x54636c[_0x50a6('0x3')]['clear']());}[_0x50a6('0x20')](_0x57d617){this[_0x50a6('0x2d')](_0x57d617,_0x50a6('0x4'),()=>this['_updateBalloonPosition']()),this['listenTo'](_0x57d617,'Esc',(_0xb1f39,_0x5e3dec)=>{this[_0x50a6('0x25')][_0x50a6('0x57')](_0x57d617),this[_0x50a6('0x28')](),_0x5e3dec();});}[_0x50a6('0x35')](_0x10f8c7){this[_0x50a6('0x13')](_0x10f8c7);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2201=['push','getSidebarItemView','add','addAnnotation','appendChild','refresh','_getMaxAvailableTop','_alignForBottomChange','target','destroy','change:top','_detachFromContainer','setContainer','unbind','length','isAnimationDisabled','top','_getItemBefore','minHeight','sidebar.container','get','_lastItem','_createSidebarView','rearrange','last','_attachToContainer','_targetTop','set','updateHeight','remove','_activeAnnotation','sidebar-attachtocontainer-missing-container','_annotationToSidebarItemView','_spaceBetweenItems','_alignBeforeItem','_destroySidebarItemView','delete','isActive','max','pluginName','list','_getTargetTop','_recalculate','sidebar.preventScrollOutOfView','_recalculateBuffer','render','context','_getItemAfter','object','change:bottom','container','_alignToTargetRect','class','listenTo','_setItemTop','content','view','stopListening','targetRect','getIndex','locale','_alignAfterItem','Sidebar','sidebar-setcontainer-invalid-element','bottom','_updateLastItem','nodeType','_sidebarItemViewToAnnotation','_alignForTopChange','_annotations','init','element','config'];(function(_0x1edbc1,_0x2201dd){const _0xfcb7b6=function(_0x1601e0){while(--_0x1601e0){_0x1edbc1['push'](_0x1edbc1['shift']());}};_0xfcb7b6(++_0x2201dd);}(_0x2201,0xe5));const _0xfcb7=function(_0x1edbc1,_0x2201dd){_0x1edbc1=_0x1edbc1-0x0;let _0xfcb7b6=_0x2201[_0x1edbc1];return _0xfcb7b6;};import{ContextPlugin as _0x3a14b2}from'ckeditor5/src/core';import _0x224b0d from'./view/sidebarview';import _0xe1e09 from'./view/sidebaritemview';import{Rect as _0x314f8d,CKEditorError as _0x169940}from'ckeditor5/src/utils';export default class b extends _0x3a14b2{static get[_0xfcb7('0x1d')](){return _0xfcb7('0x34');}constructor(_0x2f3b93){super(_0x2f3b93),this[_0xfcb7('0x11')](_0xfcb7('0xb')),this['view']=this[_0xfcb7('0xc')](),this[_0xfcb7('0x11')]('container',null),this[_0xfcb7('0x17')]=0x19,this[_0xfcb7('0x39')]=new Map(),this[_0xfcb7('0x16')]=new Map(),this[_0xfcb7('0x24')][_0xfcb7('0x3e')]['define']('sidebar.preventScrollOutOfView',!0x1),this[_0xfcb7('0x3b')]=null,this[_0xfcb7('0x14')]=null,this['_recalculateBuffer']=[];}[_0xfcb7('0x3c')](){const _0xb95e76=this[_0xfcb7('0x24')][_0xfcb7('0x3e')][_0xfcb7('0xa')](_0xfcb7('0x9'));_0xb95e76&&this[_0xfcb7('0x2')](_0xb95e76);}[_0xfcb7('0x2')](_0x28fc59){if(!p(_0x28fc59))throw new _0x169940(_0xfcb7('0x35'));this[_0xfcb7('0x28')]=_0x28fc59;}[_0xfcb7('0xf')]({viewClass:_0x2cb716='',spaceBetweenItems:_0x178b19=0x19}={}){if(!p(this[_0xfcb7('0x28')]))throw new _0x169940(_0xfcb7('0x15'),this);this[_0xfcb7('0x28')][_0xfcb7('0x43')](this[_0xfcb7('0x2e')][_0xfcb7('0x3d')]),this[_0xfcb7('0x2e')][_0xfcb7('0x2a')]=_0x2cb716,this[_0xfcb7('0x17')]=_0x178b19;}[_0xfcb7('0xd')]({removedAnnotation:_0x4cc79c,previousAnnotation:_0x212c0d,nextAnnotation:_0x4e3a1b}){const _0x38dc49=this[_0xfcb7('0x40')](_0x4cc79c);this[_0xfcb7('0x2e')]['list']['remove'](_0x38dc49),this['_destroySidebarItemView'](_0x4cc79c),_0x212c0d&&this[_0xfcb7('0x29')](this[_0xfcb7('0x40')](_0x212c0d)),_0x4e3a1b&&this[_0xfcb7('0x29')](this[_0xfcb7('0x40')](_0x4e3a1b)),this['_updateLastItem']();}[_0xfcb7('0x44')]({blurredAnnotation:_0x4c3bd1,activatedAnnotation:_0x110614,disableAnimationOnActivatedAnnotation:_0x506237}){if(this[_0xfcb7('0x14')]=_0x110614,_0x4c3bd1){_0x4c3bd1['isActive']=!0x1;const _0x2847c3=this['getSidebarItemView'](_0x4c3bd1);_0x2847c3&&_0x506237&&(_0x2847c3[_0xfcb7('0x5')]=!0x1);}if(_0x110614){const _0x363476=this[_0xfcb7('0x40')](_0x110614);_0x363476&&(_0x110614[_0xfcb7('0x1b')]=!0x0,_0x506237&&(_0x363476['isAnimationDisabled']=!0x0,_0x363476[_0xfcb7('0x6')]+=0x1),this[_0xfcb7('0x29')](_0x363476));}}[_0xfcb7('0x1')](_0x32534e){this[_0xfcb7('0x2f')](),this[_0xfcb7('0x2e')]['element'][_0xfcb7('0x13')]();for(const _0x252342 of _0x32534e)this[_0xfcb7('0x19')](_0x252342);this[_0xfcb7('0x2e')][_0xfcb7('0x1e')]['clear'](),this[_0xfcb7('0x2e')][_0xfcb7('0x2a')]='',this[_0xfcb7('0xb')]=null;}[_0xfcb7('0x42')](_0x59b3f5,_0x59f4f3){_0x59f4f3||(_0x59f4f3=_0x59b3f5['view']);const _0x83c881=new _0xe1e09(this['context']['locale']);this['_sidebarItemViewToAnnotation'][_0xfcb7('0x11')](_0x83c881,_0x59b3f5),this[_0xfcb7('0x16')][_0xfcb7('0x11')](_0x59b3f5,_0x83c881),_0x83c881[_0xfcb7('0x2d')][_0xfcb7('0x41')](_0x59f4f3),this[_0xfcb7('0x2b')](_0x59b3f5[_0xfcb7('0x2e')],'change:targetRect',(_0x254266,_0x5eb3ef,_0xc61e1b)=>{const _0x5ea4a5=this[_0xfcb7('0x1f')](_0x59b3f5,_0xc61e1b);_0x83c881[_0xfcb7('0x10')]!=_0x5ea4a5&&(_0x83c881[_0xfcb7('0x10')]=_0x5ea4a5,this[_0xfcb7('0x2c')](_0x83c881,_0x5ea4a5));}),this[_0xfcb7('0x2b')](_0x83c881,_0xfcb7('0x0'),()=>{this[_0xfcb7('0x20')](_0x83c881,'top');}),this[_0xfcb7('0x2b')](_0x83c881,_0xfcb7('0x27'),()=>{this[_0xfcb7('0x20')](_0x83c881,_0xfcb7('0x36'));}),this[_0xfcb7('0x29')](_0x83c881);const _0x307b39=this[_0xfcb7('0x7')](_0x83c881);if(_0x307b39)this[_0xfcb7('0x33')](_0x307b39,_0x83c881)||this['_alignToTargetRect'](_0x83c881);else this[_0xfcb7('0x29')](_0x83c881);return this[_0xfcb7('0x37')](),this['view'][_0xfcb7('0x1e')][_0xfcb7('0x41')](_0x83c881),_0x83c881;}[_0xfcb7('0x3a')](_0x3c17c5){if(!_0x3c17c5[_0xfcb7('0x2d')]['length'])return;const _0x162011=this[_0xfcb7('0x7')](_0x3c17c5);if(!_0x162011)return;const _0x148d37=this[_0xfcb7('0x39')][_0xfcb7('0xa')](_0x162011),_0x413eb2=this[_0xfcb7('0x14')];_0x413eb2&&_0x413eb2===_0x148d37?this['_alignAfterItem'](_0x162011,_0x3c17c5):this[_0xfcb7('0x18')](_0x3c17c5,_0x162011);}['_alignForBottomChange'](_0x5614b8){if(!_0x5614b8[_0xfcb7('0x2d')][_0xfcb7('0x4')])return;const _0x2b8549=this[_0xfcb7('0x25')](_0x5614b8);if(!_0x2b8549)return;const _0x1742a4=this[_0xfcb7('0x39')][_0xfcb7('0xa')](_0x2b8549),_0x31118e=this[_0xfcb7('0x24')][_0xfcb7('0x3e')][_0xfcb7('0xa')](_0xfcb7('0x21')),_0x4d31ea=this[_0xfcb7('0x14')];_0x4d31ea&&_0x4d31ea===_0x1742a4&&_0x31118e?(this[_0xfcb7('0x18')](_0x2b8549,_0x5614b8),this[_0xfcb7('0x33')](_0x5614b8,_0x2b8549)):_0x4d31ea&&_0x4d31ea===_0x1742a4?this[_0xfcb7('0x18')](_0x2b8549,_0x5614b8):this[_0xfcb7('0x33')](_0x5614b8,_0x2b8549);}[_0xfcb7('0x20')](_0x496c3d,_0x1c59c8){0x0===this['_recalculateBuffer'][_0xfcb7('0x4')]&&setTimeout(()=>{for(const {sidebarItemView:_0x5017ea,changedProp:_0x12c9e3}of this['_recalculateBuffer'])_0xfcb7('0x6')===_0x12c9e3?this[_0xfcb7('0x3a')](_0x5017ea):this[_0xfcb7('0x46')](_0x5017ea);this[_0xfcb7('0x22')]=[];},0xa),this[_0xfcb7('0x22')][_0xfcb7('0x3f')]({'sidebarItemView':_0x496c3d,'changedProp':_0x1c59c8});}[_0xfcb7('0x40')](_0x3513fc){return this['_annotationToSidebarItemView'][_0xfcb7('0xa')](_0x3513fc);}[_0xfcb7('0x48')](){this[_0xfcb7('0x2e')]['destroy']();}[_0xfcb7('0x19')](_0x2109ed){const _0x226415=this['getSidebarItemView'](_0x2109ed);this[_0xfcb7('0x2f')](_0x226415),this['stopListening'](_0x2109ed['view']),_0x226415['destroy'](),this[_0xfcb7('0x16')][_0xfcb7('0x1a')](_0x2109ed),this[_0xfcb7('0x39')]['delete'](_0x226415);}[_0xfcb7('0xc')](){const _0x1f6cea=new _0x224b0d(this[_0xfcb7('0x24')][_0xfcb7('0x32')]);return _0x1f6cea[_0xfcb7('0x23')](),this['on']('change:_lastItem',(_0x1a3105,_0x4b81a4,_0x387fd8,_0x57a4b4)=>{_0x57a4b4&&_0x1f6cea[_0xfcb7('0x3')](_0xfcb7('0x8')),_0x387fd8?_0x1f6cea['bind'](_0xfcb7('0x8'))['to'](_0x387fd8,_0xfcb7('0x36')):_0x1f6cea[_0xfcb7('0x8')]=null;}),_0x1f6cea;}[_0xfcb7('0x37')](){this['_lastItem']=this['getSidebarItemView'](this['_annotations'][_0xfcb7('0xe')]);}[_0xfcb7('0x7')](_0x5cf43c){const _0x333e89=this['_sidebarItemViewToAnnotation'][_0xfcb7('0xa')](_0x5cf43c),_0x18ecd1=this[_0xfcb7('0x3b')]['get'](this[_0xfcb7('0x3b')][_0xfcb7('0x31')](_0x333e89)-0x1);return _0x18ecd1&&this[_0xfcb7('0x40')](_0x18ecd1);}[_0xfcb7('0x25')](_0x5f4f1b){const _0x157f8d=this['_sidebarItemViewToAnnotation']['get'](_0x5f4f1b),_0x33b07a=this[_0xfcb7('0x3b')]['get'](this[_0xfcb7('0x3b')][_0xfcb7('0x31')](_0x157f8d)+0x1);return _0x33b07a&&this[_0xfcb7('0x40')](_0x33b07a);}[_0xfcb7('0x18')](_0x4d5897,_0x2c3bf6){_0x4d5897[_0xfcb7('0x12')]();const _0x2553bf=F(_0x2c3bf6[_0xfcb7('0x36')]+this[_0xfcb7('0x17')],_0x4d5897[_0xfcb7('0x6')]);return!!_0x2553bf&&(this['_setItemTop'](_0x2c3bf6,_0x2c3bf6[_0xfcb7('0x6')]-_0x2553bf),!0x0);}['_alignAfterItem'](_0x59f79e,_0x432067){_0x59f79e[_0xfcb7('0x12')]();const _0x40cced=F(_0x59f79e[_0xfcb7('0x36')]+this[_0xfcb7('0x17')],_0x432067[_0xfcb7('0x6')]);return!!_0x40cced&&(this[_0xfcb7('0x2c')](_0x432067,_0x432067['top']+_0x40cced,!0x1),!0x0);}[_0xfcb7('0x29')](_0x265f2c){const _0x41c5dd=this[_0xfcb7('0x39')]['get'](_0x265f2c);if(!_0x41c5dd||!_0x41c5dd[_0xfcb7('0x47')])return;const _0x1e7711=this[_0xfcb7('0x1f')](_0x41c5dd,_0x41c5dd[_0xfcb7('0x30')]);this[_0xfcb7('0x2c')](_0x265f2c,_0x1e7711);}[_0xfcb7('0x1f')](_0x5c0b13,_0x232204){if(null===_0x232204)return 0x0;if(_0x5c0b13[_0xfcb7('0x47')]instanceof _0x314f8d)return _0x232204[_0xfcb7('0x6')];{const _0x450590=new _0x314f8d(this[_0xfcb7('0x2e')]['element'])[_0xfcb7('0x6')];return _0x232204[_0xfcb7('0x6')]-_0x450590;}}[_0xfcb7('0x2c')](_0x41890a,_0x5c81f1,_0x34181d=this['context'][_0xfcb7('0x3e')]['get'](_0xfcb7('0x21'))){_0x34181d&&(_0x5c81f1=Math[_0xfcb7('0x1c')](_0x5c81f1,this[_0xfcb7('0x45')](_0x41890a))),_0x41890a[_0xfcb7('0x6')]=_0x5c81f1;}[_0xfcb7('0x45')](_0xfdd6da){let _0xc03256=this['_getItemBefore'](_0xfdd6da),_0x1b6ac=0x0;for(;_0xc03256;)_0xc03256[_0xfcb7('0x12')](),_0x1b6ac+=this[_0xfcb7('0x17')]+_0xc03256['height'],_0xc03256=this[_0xfcb7('0x7')](_0xc03256);return _0x1b6ac;}}function F(_0x3b9a04,_0x1040e4){return Math['max'](_0x3b9a04-_0x1040e4,0x0);}function p(_0x2559e0){return null!==_0x2559e0&&_0xfcb7('0x26')==typeof _0x2559e0&&0x1===_0x2559e0[_0xfcb7('0x38')];}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cb8=['annotationType','number','span','bind','isDirty','_badge','bindTemplate','children','set','...','ck-annotation-counter__badge--','counterView','ck-annotation-counter__badge'];(function(_0x1de759,_0x1cb811){const _0x4302dc=function(_0x405e33){while(--_0x405e33){_0x1de759['push'](_0x1de759['shift']());}};_0x4302dc(++_0x1cb811);}(_0x1cb8,0xe1));const _0x4302=function(_0x1de759,_0x1cb811){_0x1de759=_0x1de759-0x0;let _0x4302dc=_0x1cb8[_0x1de759];return _0x4302dc;};import{ButtonView as _0x484eef,View as _0x19cd86}from'ckeditor5/src/ui';import _0x18981a from'../../../theme/icons/add-comment.svg';export default class z extends _0x484eef{constructor(_0x4a354e){super(_0x4a354e);const _0x4de59d=this[_0x4302('0x2')];this[_0x4302('0x4')](_0x4302('0x0'),!0x1),this[_0x4302('0x4')]('number',0x0),this[_0x4302('0xc')](_0x4302('0x1'))['to'](this,_0x4302('0x0'),this,_0x4302('0xa'),(_0x49abe4,_0x45368f)=>_0x49abe4?_0x4302('0x5'):_0x45368f),this[_0x4302('0x4')](_0x4302('0x9'),''),this['icon']=_0x18981a,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this[_0x4302('0x7')]=new _0x19cd86(),this[_0x4302('0x7')]['setTemplate']({'tag':_0x4302('0xb'),'attributes':{'class':[_0x4302('0x8'),_0x4de59d['to'](_0x4302('0x9'),_0x518363=>_0x4302('0x6')+_0x518363),_0x4de59d['if'](_0x4302('0x0'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4de59d['to'](_0x4302('0x1'))}]}),this[_0x4302('0x3')]['add'](this[_0x4302('0x7')]);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15ed=['focus','div','_mutationObserver','focusTracker','isActive','fire','ck-rounded-corners','set','listenTo','height','ck-annotation-wrapper','mainView','setTemplate','type','bindTemplate','add','attach','content','clientHeight','keystrokes','_updateHeight','isDirty','element','targetRect','clear','destroy'];(function(_0x18703b,_0x15ed30){const _0x39c455=function(_0x2d2036){while(--_0x2d2036){_0x18703b['push'](_0x18703b['shift']());}};_0x39c455(++_0x15ed30);}(_0x15ed,0xca));const _0x39c4=function(_0x18703b,_0x15ed30){_0x18703b=_0x18703b-0x0;let _0x39c455=_0x15ed[_0x18703b];return _0x39c455;};import{View as _0x130931}from'ckeditor5/src/ui';import{FocusTracker as _0x64337e,KeystrokeHandler as _0x30cfd2,uid as _0x18a62e}from'ckeditor5/src/utils';import _0x500ee8 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x130931{constructor(_0x34d851,_0x43a980){super(_0x34d851),this['id']=_0x18a62e(),this['focusTracker']=new _0x64337e(),this['keystrokes']=new _0x30cfd2(),this[_0x39c4('0x19')]['set']('Esc',(_0x77c141,_0x3a8885)=>this[_0x39c4('0xb')]('Esc',_0x3a8885)),this[_0x39c4('0xd')](_0x39c4('0x3'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x39c4('0xd')](_0x39c4('0xf'),0x0),this[_0x39c4('0xd')]('isActive',!0x1),this[_0x39c4('0xd')](_0x39c4('0x1'),!0x1),this['set']('length',0x0),this[_0x39c4('0xd')](_0x39c4('0x13'),''),this[_0x39c4('0x8')]=_0x500ee8(()=>this[_0x39c4('0x0')]()),this[_0x39c4('0x17')]=this['createCollection'](),this[_0x39c4('0x17')][_0x39c4('0x15')](_0x43a980),this[_0x39c4('0x11')]=_0x43a980;const _0x3d1e42=this[_0x39c4('0x14')];this[_0x39c4('0x12')]({'tag':_0x39c4('0x7'),'attributes':{'class':['ck',_0x39c4('0x10'),_0x39c4('0xc'),_0x3d1e42['if'](_0x39c4('0xa'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this['content']});}['render'](){super['render'](),this['focusTracker'][_0x39c4('0x15')](this[_0x39c4('0x2')]),this[_0x39c4('0x19')][_0x39c4('0xe')](this[_0x39c4('0x2')]),this[_0x39c4('0x8')][_0x39c4('0x16')](this['element']);}[_0x39c4('0x5')](){this[_0x39c4('0x17')][_0x39c4('0x4')](),this[_0x39c4('0x19')][_0x39c4('0x5')](),this[_0x39c4('0x9')][_0x39c4('0x5')](),this[_0x39c4('0x8')]['detach'](),super[_0x39c4('0x5')]();}[_0x39c4('0x6')](){this[_0x39c4('0x2')][_0x39c4('0x6')]();}[_0x39c4('0x0')](){const _0x36a221=this[_0x39c4('0x2')][_0x39c4('0x18')];_0x36a221&&(this[_0x39c4('0xf')]=_0x36a221);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5af2=['top','ck-sidebar-item','attach','setTemplate','_targetTop','createCollection','height','bindTemplate','_mutationObserver','content','bottom','isAnimationDisabled','element','clientHeight','render','destroy','set'];(function(_0x39c9e3,_0x5af216){const _0x103a7d=function(_0x14684e){while(--_0x14684e){_0x39c9e3['push'](_0x39c9e3['shift']());}};_0x103a7d(++_0x5af216);}(_0x5af2,0x156));const _0x103a=function(_0x39c9e3,_0x5af216){_0x39c9e3=_0x39c9e3-0x0;let _0x103a7d=_0x5af2[_0x39c9e3];return _0x103a7d;};import{View as _0x15f06b}from'ckeditor5/src/ui';import{toUnit as _0x20ce9e}from'ckeditor5/src/utils';import _0x52f7bb from'../../utils/createmutationobserver';const kt=_0x20ce9e('px');export default class C extends _0x15f06b{constructor(_0x291a64){super(_0x291a64),this['set'](_0x103a('0xf')),this[_0x103a('0xe')](_0x103a('0x4'),0x0),this['bind'](_0x103a('0x8'))['to'](this,'top',this,'height',(_0xc798b8,_0x414746)=>(_0xc798b8||0x0)+_0x414746),this['set'](_0x103a('0x9'),!0x1),this['_mutationObserver']=_0x52f7bb(()=>this['updateHeight']()),this[_0x103a('0x2')]=null,this[_0x103a('0x7')]=this[_0x103a('0x3')]();const _0x3f33e8=this[_0x103a('0x5')];this[_0x103a('0x1')]({'tag':'div','attributes':{'class':[_0x103a('0x10'),_0x3f33e8['to'](_0x103a('0x9'),_0x2e07a7=>_0x2e07a7?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x3f33e8['to'](_0x103a('0xf'),kt)}},'children':this[_0x103a('0x7')]});}[_0x103a('0xc')](){super[_0x103a('0xc')](),this[_0x103a('0x6')][_0x103a('0x0')](this['element']);}['updateHeight'](){const _0x4819ff=this[_0x103a('0xa')][_0x103a('0xb')];_0x4819ff&&(this[_0x103a('0x4')]=_0x4819ff);}[_0x103a('0xd')](){this['content']['clear'](),this[_0x103a('0x6')]['detach'](),super[_0x103a('0xd')]();}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x248a=['ck-reset','minHeight','div','list','set','setTemplate','class'];(function(_0x8046c3,_0x248a2d){const _0x4d4f59=function(_0x14da54){while(--_0x14da54){_0x8046c3['push'](_0x8046c3['shift']());}};_0x4d4f59(++_0x248a2d);}(_0x248a,0x85));const _0x4d4f=function(_0x8046c3,_0x248a2d){_0x8046c3=_0x8046c3-0x0;let _0x4d4f59=_0x248a[_0x8046c3];return _0x4d4f59;};import{View as _0x49fd4a}from'ckeditor5/src/ui';import{toUnit as _0x1b4420}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const kt=_0x1b4420('px');export default class T extends _0x49fd4a{constructor(_0x408e0b){super(_0x408e0b);const _0x510f4d=this['bindTemplate'];this['set'](_0x4d4f('0x1'),0x0),this[_0x4d4f('0x4')]('class',''),this[_0x4d4f('0x3')]=this['createCollection'](),this[_0x4d4f('0x5')]({'tag':_0x4d4f('0x2'),'attributes':{'class':['ck','ck-sidebar',_0x4d4f('0x0'),_0x510f4d['to'](_0x4d4f('0x6'))],'style':{'minHeight':_0x510f4d['to'](_0x4d4f('0x1'),_0x292792=>_0x292792?kt(_0x292792+0xa):null)}},'children':this['list']});}}
|