@ckeditor/ckeditor5-comments 29.0.0 → 31.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -7
- 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/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/ui/view/confirmmixin.js +1 -1
- package/src/comments/ui/view/confirmview.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/src/utils/getdatetimeformatter.js +1 -1
- package/src/utils/getmarkerdomelement.js +1 -1
- package/src/utils/trim-html.js +1 -1
- package/theme/icons/add-comment.svg +1 -1
- package/theme/sidebar-narrow.css +2 -2
- package/theme/icons/add-comment-inverted.svg +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-comments",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "31.0.0",
|
|
4
4
|
"description": "Collaborative comments feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -30,12 +30,13 @@
|
|
|
30
30
|
"discussions"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ckeditor/ckeditor5-autoformat": "^
|
|
34
|
-
"@ckeditor/ckeditor5-basic-styles": "^
|
|
35
|
-
"@ckeditor/ckeditor5-collaboration-core": "^
|
|
36
|
-
"@ckeditor/ckeditor5-essentials": "^
|
|
37
|
-
"@ckeditor/ckeditor5-list": "^
|
|
38
|
-
"ckeditor5": "^
|
|
33
|
+
"@ckeditor/ckeditor5-autoformat": "^31.0.0",
|
|
34
|
+
"@ckeditor/ckeditor5-basic-styles": "^31.0.0",
|
|
35
|
+
"@ckeditor/ckeditor5-collaboration-core": "^31.0.0",
|
|
36
|
+
"@ckeditor/ckeditor5-essentials": "^31.0.0",
|
|
37
|
+
"@ckeditor/ckeditor5-list": "^31.0.0",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "^31.0.0",
|
|
39
|
+
"ckeditor5": "^31.0.0",
|
|
39
40
|
"date-fns": "^2.17.0",
|
|
40
41
|
"lodash-es": "^4.17.11"
|
|
41
42
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f90=['add','annotation-invalid-target','_assertCorrectTarget','target','innerView','_target','_id','function','focusTracker','focusableElements','remove','isActive','targetRect','clear','stopListening','view','element','_type'];(function(_0x40114b,_0x2f9014){const _0x541ea0=function(_0x292e17){while(--_0x292e17){_0x40114b['push'](_0x40114b['shift']());}};_0x541ea0(++_0x2f9014);}(_0x2f90,0x171));const _0x541e=function(_0x40114b,_0x2f9014){_0x40114b=_0x40114b-0x0;let _0x541ea0=_0x2f90[_0x40114b];return _0x541ea0;};import{CKEditorError as _0xa0ef9b,Rect as _0x2f1ab9,Collection as _0x57d120}from'ckeditor5/src/utils';import{isElement as _0x1229a1}from'lodash-es';export default class d{constructor({view:_0x4ae8d3,target:_0x241e21,type:_0x2ae738}){this['view']=_0x4ae8d3,this['view'][_0x541e('0x7')]||this[_0x541e('0x6')]['render'](),this['_type']=_0x2ae738,this[_0x541e('0xe')]=_0x241e21,this[_0x541e('0xb')](),this['focusableElements']=new _0x57d120([this[_0x541e('0x6')][_0x541e('0x7')]],{'idProperty':_0x541e('0xf')}),this[_0x541e('0x0')]['on']('add',(_0x5dcf5f,_0x5997f8)=>{this[_0x541e('0x6')][_0x541e('0x11')][_0x541e('0x9')](_0x5997f8);}),this[_0x541e('0x0')]['on']('remove',(_0xbad6f,_0x13d6c1)=>{this[_0x541e('0x6')][_0x541e('0x11')][_0x541e('0x1')](_0x13d6c1);});}get['type'](){return _0x541e('0x10')==typeof this[_0x541e('0x8')]?this[_0x541e('0x8')]():this[_0x541e('0x8')];}get[_0x541e('0xd')](){return this['view']['mainView'];}get['target'](){return _0x541e('0x10')==typeof this[_0x541e('0xe')]?this[_0x541e('0xe')]():this[_0x541e('0xe')];}get['targetRect'](){const _0x34387f=this['target'];return this['_assertCorrectTarget'](),null===_0x34387f?null:new _0x2f1ab9(_0x34387f);}get['isActive'](){return this['view'][_0x541e('0x2')];}set[_0x541e('0x2')](_0x376ad1){this[_0x541e('0x6')]['isActive']=_0x376ad1,this[_0x541e('0x6')]['mainView'][_0x541e('0x2')]=_0x376ad1;}['updateTargetRect'](){this['view'][_0x541e('0x3')]=this[_0x541e('0x3')];}['destroy'](){this[_0x541e('0x0')][_0x541e('0x5')](),this['focusableElements'][_0x541e('0x4')]();}['_assertCorrectTarget'](){const _0x14631d=this[_0x541e('0xc')];if(!(null===_0x14631d||_0x14631d instanceof _0x2f1ab9||_0x1229a1(_0x14631d)))throw new _0xa0ef9b(_0x541e('0xa'),null,{'target':_0x14631d});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e66=['targetRect','sort','getIndex','left','max','_sort','annotationcollection-not-existing-item','top','refreshPositioning','focus','_innerViewToAnnotation','fire','view','innerView','_focusTracker','annotationcollection-duplicated-item','_viewToAnnotation','focusableElements','has','getByInnerView','updateTargetRect','add','change:isFocused','get','from','delete','length','focusTracker','stopListening','listenTo','destroy','isFocused','blur','remove','_getOrderInContent','target','getByView'];(function(_0x5aee80,_0x3e6645){const _0xd23115=function(_0x1ccd23){while(--_0x1ccd23){_0x5aee80['push'](_0x5aee80['shift']());}};_0xd23115(++_0x3e6645);}(_0x3e66,0x1e2));const _0xd231=function(_0x5aee80,_0x3e6645){_0x5aee80=_0x5aee80-0x0;let _0xd23115=_0x3e66[_0x5aee80];return _0xd23115;};import{CKEditorError as _0x1c0d1e,Collection as _0x1956a1,Rect as _0x3cdfa0,FocusTracker as _0x281796}from'ckeditor5/src/utils';export default class p extends _0x1956a1{constructor(_0x3a11d1=[]){super(),this[_0xd231('0x9')]=new Map(),this[_0xd231('0xf')]=new Map(),this['_focusTracker']=new _0x281796(),this[_0xd231('0xd')]['on'](_0xd231('0x15'),(_0x4227f7,_0x338f2e,_0x1047f4)=>{_0x1047f4||this[_0xd231('0xa')](_0xd231('0x1f'));});for(const _0x34c702 of _0x3a11d1)this[_0xd231('0x14')](_0x34c702);}get[_0xd231('0x1e')](){return this[_0xd231('0xd')]['isFocused'];}['add'](_0x235c06){if(this[_0xd231('0x11')](_0x235c06))throw new _0x1c0d1e(_0xd231('0xe'),null);this[_0xd231('0x9')]['set'](_0x235c06['innerView'],_0x235c06),this['_viewToAnnotation']['set'](_0x235c06[_0xd231('0xb')],_0x235c06);for(const _0x4c080b of _0x235c06[_0xd231('0x10')])this['_focusTracker'][_0xd231('0x14')](_0x4c080b);this[_0xd231('0x1c')](_0x235c06['focusableElements'],_0xd231('0x14'),(_0x237770,_0x2cf41e)=>{this[_0xd231('0xd')][_0xd231('0x14')](_0x2cf41e);}),this[_0xd231('0x1c')](_0x235c06['focusableElements'],_0xd231('0x20'),(_0x587a56,_0x2392f4)=>{this['_focusTracker'][_0xd231('0x20')](_0x2392f4);}),this['listenTo'](_0x235c06[_0xd231('0xb')][_0xd231('0x1a')],_0xd231('0x15'),(_0x173cb5,_0x32b15d,_0x5e4c40)=>{_0x5e4c40&&this[_0xd231('0xa')](_0xd231('0x8'),_0x235c06);});const _0x29246f=this[_0xd231('0x21')](_0x235c06);super[_0xd231('0x14')](_0x235c06,_0x29246f),_0x235c06['updateTargetRect']();}['remove'](_0x56e3f4){if(!this[_0xd231('0x11')](_0x56e3f4))throw new _0x1c0d1e(_0xd231('0x5'),null);this[_0xd231('0x1b')](_0x56e3f4[_0xd231('0xb')][_0xd231('0x1a')]),this[_0xd231('0x1b')](_0x56e3f4[_0xd231('0x10')]);for(const _0x10db4a of _0x56e3f4[_0xd231('0x10')])this[_0xd231('0xd')][_0xd231('0x20')](_0x10db4a);this[_0xd231('0xf')]['delete'](_0x56e3f4[_0xd231('0xb')]),this[_0xd231('0x9')][_0xd231('0x18')](_0x56e3f4[_0xd231('0xc')]),super[_0xd231('0x20')](_0x56e3f4);}[_0xd231('0x12')](_0x46f67a){return this['_innerViewToAnnotation'][_0xd231('0x16')](_0x46f67a);}[_0xd231('0x23')](_0x373238){return this['_viewToAnnotation'][_0xd231('0x16')](_0x373238);}[_0xd231('0x1d')](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']=null,this[_0xd231('0xf')]=null,this['_focusTracker']['destroy']();}[_0xd231('0x7')](){for(const _0x4b11e6 of this)_0x4b11e6[_0xd231('0x13')]();this['_sort']();}[_0xd231('0x4')](){const _0x3d39cf=Array[_0xd231('0x17')](this)[_0xd231('0x0')]((_0x6b331a,_0xc7b182)=>w(_0x6b331a[_0xd231('0x24')],_0xc7b182[_0xd231('0x24')]));for(let _0x5d4177=_0x3d39cf[_0xd231('0x19')]-0x1;_0x5d4177>0x0;_0x5d4177--){const _0x15708d=_0x3d39cf[_0x5d4177];_0x5d4177!==this[_0xd231('0x1')](_0x15708d)&&(this['remove'](_0x15708d),this['add'](_0x15708d,_0x5d4177));}}[_0xd231('0x21')](_0x3ff6ab){let _0x3f13d2=0x0;const _0x5c071e=_0x3ff6ab['targetRect'];for(const _0x291397 of this){const _0x181374=_0x291397[_0xd231('0x22')];if(_0x181374){if(w(_0x5c071e,new _0x3cdfa0(_0x181374))<0x0)return _0x3f13d2;_0x3f13d2++;}}return Math[_0xd231('0x3')](0x0,_0x3f13d2);}}export function bindAnnotationCollections({source:_0x1966ed,target:_0x164c0c,filter:_0x494a0e}){for(const _0x111e5b of _0x1966ed)_0x494a0e(_0x111e5b)&&_0x164c0c[_0xd231('0x14')](_0x111e5b);_0x164c0c['listenTo'](_0x1966ed,_0xd231('0x14'),(_0x5c3277,_0x196569)=>{_0x494a0e(_0x196569)&&_0x164c0c[_0xd231('0x14')](_0x196569);}),_0x164c0c['listenTo'](_0x1966ed,'remove',(_0x308560,_0x443e37)=>{_0x494a0e(_0x443e37)&&_0x164c0c[_0xd231('0x20')](_0x443e37);});}function w(_0xf0a4fe,_0x3d46d5){const _0x32713d=_0xf0a4fe[_0xd231('0x6')]-_0x3d46d5['top'];return 0x0==_0x32713d?_0xf0a4fe[_0xd231('0x2')]-_0x3d46d5['left']:_0x32713d;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41c1=['pluginName','activeAnnotations','collection','_addActiveAnnotation','activate','fire','destroy','_activateAnnotation','set','add','remove'];(function(_0x260946,_0x41c1f7){const _0x585011=function(_0x15a6c7){while(--_0x15a6c7){_0x260946['push'](_0x260946['shift']());}};_0x585011(++_0x41c1f7);}(_0x41c1,0x103));const _0x5850=function(_0x260946,_0x41c1f7){_0x260946=_0x260946-0x0;let _0x585011=_0x41c1[_0x260946];return _0x585011;};import{ContextPlugin as _0x536711}from'ckeditor5/src/core';import _0x46c003 from'./annotationcollection';export default class v extends _0x536711{static get[_0x5850('0x5')](){return'Annotations';}constructor(_0x201f3e){super(_0x201f3e),this[_0x5850('0x7')]=new _0x46c003(),this[_0x5850('0x2')](_0x5850('0x6'),new Set());}[_0x5850('0x3')](_0x4b42b6){this[_0x5850('0x7')][_0x5850('0x3')](_0x4b42b6);}[_0x5850('0x4')](_0x4b06d0){this[_0x5850('0x7')][_0x5850('0x4')](_0x4b06d0),_0x4b06d0[_0x5850('0x0')]();}['getByInnerView'](_0x23a23c){return this[_0x5850('0x7')]['getByInnerView'](_0x23a23c);}['deactivateAll'](){this[_0x5850('0xa')]('_deactivateAllAnnotations');}[_0x5850('0x0')](){for(const _0xbc0362 of this[_0x5850('0x7')])_0xbc0362[_0x5850('0x0')]();super[_0x5850('0x0')]();}[_0x5850('0x9')](_0x3e62ff){this[_0x5850('0xa')](_0x5850('0x1'),_0x3e62ff);}[_0x5850('0x8')](_0x5b65cc){const _0x9b4f23=new Set(this['activeAnnotations']);_0x9b4f23[_0x5850('0x3')](_0x5b65cc),this['activeAnnotations']=_0x9b4f23;}['_removeActiveAnnotation'](_0x401382){const _0x18bd1d=new Set(this['activeAnnotations']);_0x18bd1d['delete'](_0x401382),this[_0x5850('0x6')]=_0x18bd1d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bd0=['size','init','activate','_setSelectedAnnotations','context','requires','deactivateAll','detach','add','register','activeUIs','annotationsuis-register-already-registered','_uisData','deactivate','annotationsuis-annotation-mismatch','change:activeAnnotation','length','listenTo','get','_activateAnnotation','set','collection','_deactivateAllAnnotations','isActive','attach','annotationsuis-register-invalid-interface','activeAnnotations','hasActive','push','AnnotationsUIs','setActiveAnnotation','destroy','filter','plugins','_uis','delete','_assertAnnotationDoesNotBelongToMultpleUI','function','pluginName','has','from','stopListening'];(function(_0x59ea17,_0x3bd070){const _0x2728e1=function(_0x52405b){while(--_0x52405b){_0x59ea17['push'](_0x59ea17['shift']());}};_0x2728e1(++_0x3bd070);}(_0x3bd0,0x1de));const _0x2728=function(_0x59ea17,_0x3bd070){_0x59ea17=_0x59ea17-0x0;let _0x2728e1=_0x3bd0[_0x59ea17];return _0x2728e1;};import{ContextPlugin as _0x6110e0}from'ckeditor5/src/core';import{CKEditorError as _0x53c4b2}from'ckeditor5/src/utils';import _0x5df939,{bindAnnotationCollections as _0x340f40}from'./annotationcollection';import _0x33b0d3 from'./annotations';export default class I extends _0x6110e0{static get[_0x2728('0x1f')](){return[_0x33b0d3];}static get[_0x2728('0x16')](){return _0x2728('0xd');}constructor(_0x482789){super(_0x482789),this['activeUIs']=new Set(),this[_0x2728('0x12')]=new Map(),this[_0x2728('0x26')]=new Map();}[_0x2728('0x1b')](){const _0x5c25d7=this['context']['plugins'][_0x2728('0x2')](_0x33b0d3);this[_0x2728('0x1')](_0x5c25d7,_0x2728('0x3'),(_0x397b9b,_0x20c6e5)=>{for(const _0x6a7459 of this[_0x2728('0x24')]){const _0x2b7dc5=this[_0x2728('0x12')]['get'](_0x6a7459);(0x0,this[_0x2728('0x26')][_0x2728('0x2')](_0x6a7459)[_0x2728('0x10')])(_0x20c6e5)&&_0x2b7dc5[_0x2728('0xe')](_0x20c6e5);}}),this['listenTo'](_0x5c25d7,_0x2728('0x6'),()=>{for(const _0x5311e of this[_0x2728('0x24')]){this[_0x2728('0x12')][_0x2728('0x2')](_0x5311e)[_0x2728('0xe')](null);}}),this[_0x2728('0x1')](_0x5c25d7['collection'],_0x2728('0x22'),(_0x3e5880,_0x3afee7)=>{this[_0x2728('0x14')](_0x3afee7);});}[_0x2728('0xb')](){return this[_0x2728('0x24')][_0x2728('0x1a')]>0x0;}[_0x2728('0x7')](_0xa7dfdd){return this[_0x2728('0x24')]['has'](_0xa7dfdd);}[_0x2728('0x1c')](_0x43b83a,_0x20f9fe=()=>!0x0){const _0xd26d82=this['context'][_0x2728('0x11')][_0x2728('0x2')](_0x33b0d3);if(!this[_0x2728('0x12')]['has'](_0x43b83a))throw new _0x53c4b2('annotationsuis-activate-missing-ui',this,{'uiName':_0x43b83a});this[_0x2728('0x7')](_0x43b83a)&&this[_0x2728('0x27')](_0x43b83a),this[_0x2728('0x24')]['add'](_0x43b83a);const _0x27e444=new _0x5df939(),_0x34d639=_0xd26d82[_0x2728('0x5')];_0x340f40({'source':_0x34d639,'target':_0x27e444,'filter':_0x20f9fe}),this[_0x2728('0x26')][_0x2728('0x4')](_0x43b83a,{'collection':_0x27e444,'filter':_0x20f9fe});const _0x1bcb08=this[_0x2728('0x12')][_0x2728('0x2')](_0x43b83a);_0x1bcb08[_0x2728('0x8')](_0x27e444),this[_0x2728('0x1')](_0x1bcb08,_0x2728('0x29'),(_0x3536ec,_0x860ffd,_0x3df724,_0x395f5c)=>{_0x395f5c&&_0xd26d82['_removeActiveAnnotation'](_0x395f5c),_0x3df724&&_0xd26d82['_addActiveAnnotation'](_0x3df724);});}[_0x2728('0x27')](_0x300739){this[_0x2728('0x24')][_0x2728('0x13')](_0x300739);const _0x2286d6=this[_0x2728('0x12')][_0x2728('0x2')](_0x300739);_0x2286d6[_0x2728('0x21')](),this[_0x2728('0x19')](_0x2286d6),this[_0x2728('0x26')]['get'](_0x300739)[_0x2728('0x5')][_0x2728('0xf')](),this[_0x2728('0x26')][_0x2728('0x13')](_0x300739);}['switchTo'](_0x4dfb0c){const _0x245f1a=this[_0x2728('0x1e')][_0x2728('0x11')]['get'](_0x33b0d3),_0xa33ff9=Array[_0x2728('0x18')](_0x245f1a[_0x2728('0xa')])[0x0]||null;this[_0x2728('0x20')](),this[_0x2728('0x1c')](_0x4dfb0c);const _0x62b2bb=this['_uis'][_0x2728('0x2')](_0x4dfb0c);_0x62b2bb[_0x2728('0xe')](_0xa33ff9),_0x62b2bb[_0x2728('0x1d')]&&_0xa33ff9&&_0x62b2bb['_setSelectedAnnotations']([_0xa33ff9]);}['deactivateAll'](){for(const _0x3b5750 of this[_0x2728('0x24')])this[_0x2728('0x27')](_0x3b5750);}[_0x2728('0x23')](_0x292e8a,_0x25ca57){if(this[_0x2728('0x12')][_0x2728('0x17')](_0x292e8a))throw new _0x53c4b2(_0x2728('0x25'));if(_0x2728('0x15')!=typeof _0x25ca57[_0x2728('0x8')]||'function'!=typeof _0x25ca57[_0x2728('0x21')]||_0x2728('0x15')!=typeof _0x25ca57[_0x2728('0xe')])throw new _0x53c4b2(_0x2728('0x9'),null);this[_0x2728('0x12')][_0x2728('0x4')](_0x292e8a,_0x25ca57);}['destroy'](){this[_0x2728('0x20')](),super[_0x2728('0xf')]();}[_0x2728('0x14')](_0x3b543d){const _0x241f54=[];for(const _0x26272c of this[_0x2728('0x24')]){(0x0,this['_uisData'][_0x2728('0x2')](_0x26272c)[_0x2728('0x10')])(_0x3b543d)&&_0x241f54[_0x2728('0xc')](_0x26272c);}if(_0x241f54[_0x2728('0x0')]>0x1)throw new _0x53c4b2(_0x2728('0x28'),null,{'matchedUIs':_0x241f54});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f6e=['has','set','add','EditorAnnotations','fire','change:isFocused','isCollapsed','refresh','change:range','range','document','addSourceCollector','blur','function','init','view','remove','getRanges','_editorAnnotationsData','refreshSelectedViews','editor','model','update','editing','keys','cancel','sort','uiUpdate','delete','listenTo','_dataCollectors','containsRange','annotation','map','push','from','innerView','collection','element','requires','hasDomSelection','focusTracker'];(function(_0x398f40,_0x4f6e7c){const _0x4fe171=function(_0x5bcec1){while(--_0x5bcec1){_0x398f40['push'](_0x398f40['shift']());}};_0x4fe171(++_0x4f6e7c);}(_0x4f6e,0x156));const _0x4fe1=function(_0x398f40,_0x4f6e7c){_0x398f40=_0x398f40-0x0;let _0x4fe171=_0x4f6e[_0x398f40];return _0x4fe171;};import{Plugin as _0xb18491}from'ckeditor5/src/core';import{CKEditorError as _0xe2a257}from'ckeditor5/src/utils';import{debounce as _0x4cc2f5}from'lodash-es';import _0x254fc0 from'./annotations';export default class k extends _0xb18491{static get[_0x4fe1('0x21')](){return[_0x254fc0];}static get['pluginName'](){return _0x4fe1('0x27');}constructor(_0x43ddbd){super(_0x43ddbd),this[_0x4fe1('0x18')]=new Set();}[_0x4fe1('0x8')](){const _0x586da5=this['editor'],_0x5e5d43=_0x586da5['plugins']['get'](_0x254fc0),_0x56421c=_0x586da5[_0x4fe1('0xf')]['document']['selection'],_0x4c66f0=_0x4cc2f5(()=>this['refreshSelectedViews'](),0xa);_0x56421c['on'](_0x4fe1('0x2'),(_0x484fa2,_0x42210c)=>{_0x42210c['directChange']&&(_0x4c66f0[_0x4fe1('0x13')](),this[_0x4fe1('0xd')]());}),this[_0x4fe1('0x17')](_0x586da5['editing']['view'][_0x4fe1('0x4')],'change:isFocused',(_0x57766a,_0xf40d99,_0x343bfe)=>{_0x343bfe&&_0x4c66f0();}),this['listenTo'](_0x586da5['ui'][_0x4fe1('0x23')],_0x4fe1('0x29'),(_0x494524,_0x5285d8,_0x435cf5)=>{_0x435cf5||_0x586da5['isReadOnly']||this[_0x4fe1('0x28')](_0x4fe1('0x6'),{'isAnnotationTracked':_0x5e675a=>this[_0x4fe1('0xc')]['has'](_0x5e675a[_0x4fe1('0x1e')])});}),this[_0x4fe1('0x17')](this[_0x4fe1('0xe')]['ui'],_0x4fe1('0x10'),()=>this['fire'](_0x4fe1('0x15')));const _0x1fe075=new Set();this[_0x4fe1('0x17')](_0x5e5d43[_0x4fe1('0x1f')],'add',(_0x48ca22,_0xde9548)=>{for(const _0xc63ae7 of this[_0x4fe1('0xc')][_0x4fe1('0x12')]())if(_0xc63ae7===_0xde9548[_0x4fe1('0x1e')]){_0x586da5['ui'][_0x4fe1('0x23')]['add'](_0xde9548[_0x4fe1('0x9')][_0x4fe1('0x20')]),_0x1fe075[_0x4fe1('0x26')](_0xde9548['view']);break;}}),this['listenTo'](_0x5e5d43[_0x4fe1('0x1f')],'remove',(_0x662d74,_0x129927)=>{_0x1fe075[_0x4fe1('0x24')](_0x129927[_0x4fe1('0x9')])&&(_0x586da5['ui'][_0x4fe1('0x23')][_0x4fe1('0xa')](_0x129927['view'][_0x4fe1('0x20')]),_0x1fe075[_0x4fe1('0x16')](_0x129927[_0x4fe1('0x9')]));});}['hasDomSelection'](){return this[_0x4fe1('0xe')][_0x4fe1('0x11')]['view'][_0x4fe1('0x22')];}[_0x4fe1('0x5')](_0x59f4e0){if(_0x4fe1('0x7')!=typeof _0x59f4e0)throw new _0xe2a257('editorannotations-invalid-source-callback');this[_0x4fe1('0x18')][_0x4fe1('0x26')](_0x59f4e0);}[_0x4fe1('0xd')](){this[_0x4fe1('0x28')](_0x4fe1('0x1'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2c3b1e,annotations:_0x2c46e9}){const _0x111377=[],_0x47f5e9=this['editor']['model'][_0x4fe1('0x4')]['selection'],_0x2d7dbe=Array[_0x4fe1('0x1d')](_0x47f5e9[_0x4fe1('0xb')]());for(const [_0x355858,_0xf55cb]of this[_0x4fe1('0xc')]){const _0x23eac7=_0x4f29eb(_0xf55cb),_0x264aa=_0x2c46e9['getByInnerView'](_0x355858);_0x23eac7&&_0x264aa&&_0x111377[_0x4fe1('0x1c')]({'annotation':_0x264aa,'range':_0x23eac7});}function _0x4f29eb(_0x37ccae){for(const _0xc29e21 of _0x37ccae)for(const _0x1437a3 of _0x2d7dbe)if(_0xc29e21[_0x4fe1('0x19')](_0x1437a3,!_0x47f5e9[_0x4fe1('0x0')]))return _0xc29e21;return null;}return _0x111377[_0x4fe1('0x14')]((_0x1d8817,_0x10e054)=>{const _0xb4c8ce=_0x1d8817[_0x4fe1('0x3')],_0x346da4=_0x10e054['range'];if(!_0xb4c8ce['isEqual'](_0x346da4)){if(_0xb4c8ce[_0x4fe1('0x19')](_0x346da4,!0x0))return 0x1;if(_0x346da4[_0x4fe1('0x19')](_0xb4c8ce,!0x0))return-0x1;}return _0x1d8817[_0x4fe1('0x1a')]==_0x2c3b1e?-0x1:_0x10e054[_0x4fe1('0x1a')]==_0x2c3b1e?0x1:0x0;})[_0x4fe1('0x1b')](_0x32f410=>_0x32f410[_0x4fe1('0x1a')]);}get[_0x4fe1('0xc')](){const _0x5e46de=new Map();for(const _0x5a1d3b of Array['from'](this['_dataCollectors']))for(const [_0x13f1cb,_0x10845a]of _0x5a1d3b())_0x5e46de[_0x4fe1('0x25')](_0x13f1cb,_0x10845a);return _0x5e46de;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d24=['change:height','inline','_selectedAnnotations','editableElement','isActive','_addedAnnotations','plugins','_removeAnnotationFromBalloon','addObserver','isAttached','hasActive','requires','includes','clear','Esc','getSelection','destroy','set','getOrderedSelectedAnnotations','getByView','updatePosition','editing','selection','EditorAnnotations','remove','isFocused','setActiveAnnotation','register','detach','view','focusTracker','_annotations','visibleView','afterInit','context','blur','targetRect','InlineAnnotations','change:visibleView','has','activeAnnotation','delete','_balloon','mousedown','add','init','refresh','focus','get','attach','_setSelectedAnnotations','inlineannotations-attach-already-attached','hasView','_manuallyClosed','bind','_addAnnotationToBalloon','inlineannotations-detach-not-attached','listenTo','keystrokes','stopListening','editor'];(function(_0x18a836,_0x5d2427){const _0x11b8d0=function(_0x29abd7){while(--_0x29abd7){_0x18a836['push'](_0x18a836['shift']());}};_0x11b8d0(++_0x5d2427);}(_0x5d24,0xcb));const _0x11b8=function(_0x18a836,_0x5d2427){_0x18a836=_0x18a836-0x0;let _0x11b8d0=_0x5d24[_0x18a836];return _0x11b8d0;};import{Plugin as _0x4e6018}from'ckeditor5/src/core';import _0x44197d from'./annotationsuis';import _0x3c597a from'./editorannotations';import{ContextualBalloon as _0x5a940e}from'ckeditor5/src/ui';import{MouseObserver as _0x2597b1}from'ckeditor5/src/engine';import{CKEditorError as _0x4376c5}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x4e6018{static get[_0x11b8('0x34')](){return[_0x3c597a,_0x5a940e,_0x44197d];}static get['pluginName'](){return _0x11b8('0x11');}constructor(_0x244877){super(_0x244877),_0x244877[_0x11b8('0x1')][_0x11b8('0x9')][_0x11b8('0x31')](_0x2597b1),this[_0x11b8('0x32')]=!0x1,this[_0x11b8('0x3a')]('activeAnnotation',null),this[_0x11b8('0xb')]=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x244877[_0x11b8('0x2f')][_0x11b8('0x1c')](_0x5a940e),this[_0x11b8('0x2e')]=new Set(),this['_selectedAnnotations']=[];}[_0x11b8('0x19')](){const _0x5e7e35=this[_0x11b8('0x28')][_0x11b8('0x2f')]['get'](_0x44197d);_0x5e7e35[_0x11b8('0xe')]===this[_0x11b8('0x28')]&&(_0x5e7e35[_0x11b8('0x7')](_0x11b8('0x2a'),this),this[_0x11b8('0x28')][_0x11b8('0x26')][_0x11b8('0x3a')](_0x11b8('0x37'),(_0x487c70,_0x26508e)=>{const _0x3eb4e9=this[_0x11b8('0x16')];if(this[_0x11b8('0x32')]&&_0x3eb4e9[_0x11b8('0xc')]){const _0x3271b2=this[_0x11b8('0xb')][_0x11b8('0x3c')](_0x3eb4e9[_0x11b8('0xc')]);this[_0x11b8('0x21')]['add'](_0x3271b2),this['_removeAnnotationFromBalloon'](_0x3271b2),_0x26508e();}}));}[_0x11b8('0xd')](){const _0x21b08c=this[_0x11b8('0x28')][_0x11b8('0x2f')][_0x11b8('0x1c')](_0x44197d);_0x21b08c[_0x11b8('0xe')]===this['editor']&&(_0x21b08c[_0x11b8('0x33')]()||_0x21b08c['switchTo'](_0x11b8('0x2a')));}[_0x11b8('0x6')](_0xc92332){_0xc92332!==this[_0x11b8('0x14')]&&(this['activeAnnotation']&&(this['activeAnnotation'][_0x11b8('0x2d')]=!0x1),_0xc92332&&this[_0x11b8('0x28')]['ui'][_0x11b8('0xa')]['isFocused']&&(this[_0x11b8('0x23')](_0xc92332,!0x0),_0xc92332[_0x11b8('0x2d')]=!0x0),_0xc92332||this[_0x11b8('0x1e')]([]),this[_0x11b8('0x14')]=_0xc92332);}[_0x11b8('0x1d')](_0x3bd63e){this[_0x11b8('0xb')]=_0x3bd63e;const _0x16bbaa=this[_0x11b8('0x28')][_0x11b8('0x2f')][_0x11b8('0x1c')](_0x44197d),_0x3d63a2=this[_0x11b8('0x16')];if(this[_0x11b8('0x32')])throw new _0x4376c5(_0x11b8('0x1f'),this);if(_0x16bbaa[_0x11b8('0xe')]!==this[_0x11b8('0x28')])throw new _0x4376c5('inlineannotations-not-allowed-with-context',this);const _0x27e25f=this[_0x11b8('0x28')][_0x11b8('0x2f')][_0x11b8('0x1c')](_0x11b8('0x3'));this[_0x11b8('0x25')](_0x27e25f,_0x11b8('0x1a'),function(){const _0x400092=_0x27e25f[_0x11b8('0x3b')]({'activeAnnotation':this[_0x11b8('0x14')],'annotations':this[_0x11b8('0xb')]});this[_0x11b8('0x1e')](_0x400092),this[_0x11b8('0x6')](_0x400092[0x0]||null);}[_0x11b8('0x22')](this)),this['listenTo'](_0x27e25f,_0x11b8('0xf'),(_0x1d1f8e,{isAnnotationTracked:_0xaa81fd})=>{this['activeAnnotation']&&_0xaa81fd(this[_0x11b8('0x14')])&&(this['_setSelectedAnnotations']([]),this[_0x11b8('0x6')](null));}),this[_0x11b8('0x25')](this[_0x11b8('0x28')]['ui'][_0x11b8('0xa')],'change:isFocused',(_0x2c884d,_0x20b332,_0x37395a)=>{_0x37395a||this[_0x11b8('0x6')](null);}),this[_0x11b8('0x25')](_0x3bd63e,'remove',(_0x20ab5c,_0x38ce7a)=>{this[_0x11b8('0x30')](_0x38ce7a),_0x38ce7a===this[_0x11b8('0x14')]&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3d63a2,_0x11b8('0x12'),(_0x25260e,_0x387226,_0x1f1bdf,_0x5aac64)=>{if(_0x5aac64&&this[_0x11b8('0x27')](_0x5aac64),!_0x1f1bdf||!_0x3bd63e['getByView'](_0x1f1bdf))return;const _0x59274d=_0x3bd63e['getByView'](_0x1f1bdf);this['listenTo'](_0x1f1bdf,_0x11b8('0x29'),()=>{_0x3d63a2[_0x11b8('0x0')]();}),this[_0x11b8('0x25')](_0x1f1bdf,_0x11b8('0x37'),()=>{this[_0x11b8('0x21')][_0x11b8('0x18')](_0x59274d),this[_0x11b8('0x30')](_0x59274d),this[_0x11b8('0x28')][_0x11b8('0x1')]['view'][_0x11b8('0x1b')]();}),this['activeAnnotation']!==_0x59274d&&this[_0x11b8('0x6')](_0x59274d);}),this[_0x11b8('0x25')](this[_0x11b8('0x28')]['ui'],'update',()=>{_0x3d63a2['visibleView']&&(_0x3bd63e[_0x11b8('0x3c')](_0x3d63a2[_0x11b8('0xc')])&&_0x3d63a2['updatePosition']());}),this[_0x11b8('0x25')](this['editor'][_0x11b8('0x1')][_0x11b8('0x9')]['document'],_0x11b8('0x17'),()=>{this[_0x11b8('0x21')][_0x11b8('0x36')]();}),this[_0x11b8('0x28')][_0x11b8('0x1')][_0x11b8('0x9')]['document'][_0x11b8('0x2')][_0x11b8('0x2c')]&&this['editor'][_0x11b8('0x1')][_0x11b8('0x9')]['focus'](),this['isAttached']=!0x0;}[_0x11b8('0x8')](){if(!this[_0x11b8('0x32')])throw new _0x4376c5(_0x11b8('0x24'),this);this[_0x11b8('0x6')](null);for(const _0x39915a of this[_0x11b8('0x2e')])this[_0x11b8('0x30')](_0x39915a);this[_0x11b8('0x27')](),this['isAttached']=!0x1;}[_0x11b8('0x39')](){this[_0x11b8('0x32')]&&this[_0x11b8('0x8')]();}['_setSelectedAnnotations'](_0x372ea9){const _0x3cb608=this[_0x11b8('0x2b')];for(const _0xe48a58 of _0x3cb608)_0x372ea9[_0x11b8('0x35')](_0xe48a58)||this[_0x11b8('0x21')]['delete'](_0xe48a58);for(const _0x4d5916 of this[_0x11b8('0xb')])_0x372ea9['includes'](_0x4d5916)||this[_0x11b8('0x30')](_0x4d5916);if(this[_0x11b8('0x28')]['ui']['focusTracker'][_0x11b8('0x5')])for(const _0x433acc of _0x372ea9)this[_0x11b8('0x23')](_0x433acc);this['_selectedAnnotations']=_0x372ea9;}[_0x11b8('0x23')](_0x3ff652,_0xcbc279){this[_0x11b8('0x21')][_0x11b8('0x13')](_0x3ff652)||(this['_addedAnnotations'][_0x11b8('0x13')](_0x3ff652)||this['_balloon'][_0x11b8('0x20')](_0x3ff652[_0x11b8('0x9')])||(this['_addedAnnotations']['add'](_0x3ff652),this[_0x11b8('0x16')][_0x11b8('0x18')]({'stackId':_0x3ff652['view']['id'],'view':_0x3ff652[_0x11b8('0x9')],'position':{'target':()=>_0x3ff652['target']||_0x3ff652[_0x11b8('0x10')]||document[_0x11b8('0x38')]()['getRangeAt'](0x0)}})),_0xcbc279&&this[_0x11b8('0x16')]['showStack'](_0x3ff652[_0x11b8('0x9')]['id']));}['_removeAnnotationFromBalloon'](_0x2ae66f){this['_addedAnnotations'][_0x11b8('0x13')](_0x2ae66f)&&this[_0x11b8('0x16')][_0x11b8('0x20')](_0x2ae66f[_0x11b8('0x9')])&&(this[_0x11b8('0x2e')][_0x11b8('0x15')](_0x2ae66f),this[_0x11b8('0x16')][_0x11b8('0x4')](_0x2ae66f[_0x11b8('0x9')]));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x17a2=['off','first','ck-sidebar--narrow','stopListening','_detachFromContainer','setActiveAnnotation','northArrowSouthEast','has','_refreshPositioning','_detachListeners','ready','from','pluginName','_destroyEditorAnnotationsIntegration','target','narrowsidebar-detach-not-attached','preventClosingBalloon','context','keyCode','defaultPositions','values','_setSelectedAnnotations','refresh','Sidebar','_attachToContainer','listenTo','number','isAttached','stopPropagation','_showBalloon','_domEmitter','_selectedAnnotations','_attachListeners','_manuallyClosedAnnotationViews','Esc','EditorAnnotations','bodyCollection','_integrateWithEditorAnnotations','southArrowNorthEast','contains','isDirty','low','detachFromDom','set','refreshPositioning','_hideBalloon','add','init','activeAnnotation','set:container','narrowsidebar-attach-already-attached','removeEventListener','getOrderedSelectedAnnotations','_updateBalloonPosition','northArrowSouthWest','balloonPanelView','create','keydown','element','getByView','northArrowSouth','high','clear','_annotations','bind','get','blur','_annotationToNarrowView','rearrange','length','annotationType','editors','remove','uiUpdate','locale','narrowSidebar','attachToDom','southArrowNorth','view','change:height','_throttledRefreshPositioning','detach','requires','execute','isVisible','delete','preventDefault','getSidebarItemView','esc','attach','change:container','destroy','content','focus','plugins','_editorAnnotations','hasDomSelection','resize'];(function(_0x36af85,_0x17a2b6){const _0x29dd6f=function(_0x9e8b45){while(--_0x9e8b45){_0x36af85['push'](_0x36af85['shift']());}};_0x29dd6f(++_0x17a2b6);}(_0x17a2,0x149));const _0x29dd=function(_0x36af85,_0x17a2b6){_0x36af85=_0x36af85-0x0;let _0x29dd6f=_0x17a2[_0x36af85];return _0x29dd6f;};import{ContextPlugin as _0x7cfe54}from'ckeditor5/src/core';import _0x37f6ac from'./annotationsuis';import _0x29f29c from'./sidebar';import _0x3cae55 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4e8d4c,BodyCollection as _0xdf2aa2}from'ckeditor5/src/ui';import{CKEditorError as _0x277f92,DomEmitterMixin as _0x3dded9,keyCodes as _0x4f8783,Collection as _0x47ace2}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x55a0f1}from'lodash-es';export default class s extends _0x7cfe54{static get[_0x29dd('0x2f')](){return[_0x29f29c,_0x37f6ac];}static get[_0x29dd('0x4b')](){return'NarrowSidebar';}constructor(_0x36219e){super(_0x36219e),this[_0x29dd('0x5a')]=!0x1,this[_0x29dd('0x60')]=new Set(),this[_0x29dd('0x5d')]=Object[_0x29dd('0x15')](_0x3dded9),this['_annotationToNarrowView']=new Map(),this[_0x29dd('0x8')]('activeAnnotation',null),this[_0x29dd('0x1c')]=null,this[_0x29dd('0x5e')]=[],this[_0x29dd('0x3c')]=new _0x47ace2(),this['_throttledRefreshPositioning']=_0x55a0f1(()=>{this[_0x29dd('0x47')]();},0x190,{'leading':!0x1});}[_0x29dd('0xc')](){this[_0x29dd('0x50')][_0x29dd('0x3b')][_0x29dd('0x1e')](_0x37f6ac)['register'](_0x29dd('0x28'),this),this[_0x29dd('0x1')]=new _0xdf2aa2(this[_0x29dd('0x50')][_0x29dd('0x27')]),this[_0x29dd('0x14')]=new _0x4e8d4c(this[_0x29dd('0x50')][_0x29dd('0x27')]),this[_0x29dd('0x1')][_0x29dd('0x29')](),this[_0x29dd('0x1')][_0x29dd('0xb')](this[_0x29dd('0x14')]);}[_0x29dd('0x36')](_0xca2310){this[_0x29dd('0x1c')]=_0xca2310;const _0x4d2793=this[_0x29dd('0x50')][_0x29dd('0x3b')][_0x29dd('0x1e')](_0x29f29c),_0x1581fa=this[_0x29dd('0x14')];if(_0x4d2793[_0x29dd('0x1c')]=_0xca2310,this['isAttached'])throw new _0x277f92(_0x29dd('0xf'),this);this[_0x29dd('0x5a')]=!0x0,this[_0x29dd('0x58')](_0x4d2793,_0x29dd('0xe'),()=>{this[_0x29dd('0x2e')](),this[_0x29dd('0x58')](_0x4d2793,_0x29dd('0x37'),_0x24b7e5=>{_0x24b7e5[_0x29dd('0x3f')](),this[_0x29dd('0x36')](_0xca2310);});}),_0x4d2793[_0x29dd('0x57')]({'viewClass':_0x29dd('0x41'),'spaceBetweenItems':0x5});const _0x208966=_0x56b762=>{const _0x51590c=new _0x3cae55(this[_0x29dd('0x50')][_0x29dd('0x27')]);_0x4d2793['addAnnotation'](_0x56b762,_0x51590c),this[_0x29dd('0x20')]['set'](_0x56b762,_0x51590c),_0x51590c[_0x29dd('0x1d')](_0x29dd('0x5'),_0x29dd('0x23'),_0x29dd('0x59'))['to'](_0x56b762[_0x29dd('0x2b')],_0x29dd('0x5'),'type',_0x29dd('0x22')),_0x51590c['on'](_0x29dd('0x30'),()=>{this['_manuallyClosedAnnotationViews'][_0x29dd('0x1b')](),_0x1581fa[_0x29dd('0x39')][_0x29dd('0x40')]!==_0x56b762[_0x29dd('0x2b')]?(this['_showBalloon'](_0x56b762),_0x56b762['view'][_0x29dd('0x17')][_0x29dd('0x3a')](),this[_0x29dd('0x44')](_0x56b762)):this['setActiveAnnotation'](null);});};for(const _0x3e62ff of _0xca2310)_0x208966(_0x3e62ff);this['listenTo'](_0xca2310,'add',(_0x3fcc0c,_0x132733)=>{_0x208966(_0x132733);}),this[_0x29dd('0x58')](_0xca2310,_0x29dd('0x25'),(_0x1987fd,_0x2e96eb,_0x14762e)=>{this['_annotationToNarrowView'][_0x29dd('0x1e')](_0x2e96eb)[_0x29dd('0x38')](),this['_annotationToNarrowView'][_0x29dd('0x32')](_0x2e96eb),_0x4d2793[_0x29dd('0x21')]({'removedAnnotation':_0x2e96eb,'previousAnnotation':_0xca2310[_0x29dd('0x1e')](_0x14762e-0x1),'nextAnnotation':_0xca2310[_0x29dd('0x1e')](_0x14762e+0x1)}),_0x2e96eb===this[_0x29dd('0xd')]&&this['setActiveAnnotation'](null);},{'priority':_0x29dd('0x6')}),this['listenTo'](_0xca2310,_0x29dd('0x3a'),(_0x1599dc,_0x2d1e6e)=>{this['setActiveAnnotation'](_0x2d1e6e);}),this[_0x29dd('0x58')](_0xca2310,_0x29dd('0x1f'),()=>{this[_0x29dd('0x44')](null);}),this[_0x29dd('0x5d')]['listenTo'](document,_0x29dd('0x16'),(_0x268f4a,_0x41dcb2)=>{_0x41dcb2[_0x29dd('0x51')]===_0x4f8783[_0x29dd('0x35')]&&_0x1581fa[_0x29dd('0x31')]&&(this[_0x29dd('0x60')]['add'](_0x1581fa[_0x29dd('0x39')]['first']),this['_hideBalloon'](),_0x41dcb2[_0x29dd('0x5b')](),_0x41dcb2[_0x29dd('0x33')]());}),this[_0x29dd('0x5d')][_0x29dd('0x58')](document,'mousedown',(_0x3a9396,_0x1de429)=>{const _0x225a6f=_0x1de429[_0x29dd('0x4d')];_0x1581fa['isVisible']&&_0x1581fa[_0x29dd('0x17')][_0x29dd('0x4')](_0x225a6f)||_0x4d2793['view']['element']['contains'](_0x225a6f)||_0x3a9396[_0x29dd('0x4f')]||(this[_0x29dd('0x60')]['clear'](),this['_hideBalloon'](),this[_0x29dd('0x44')](null));});const _0x49056e=this[_0x29dd('0x50')][_0x29dd('0x24')]?this[_0x29dd('0x50')]['editors']:new _0x47ace2([this[_0x29dd('0x50')]]);for(const _0x5e7441 of _0x49056e)this['_integrateWithEditorAnnotations'](_0x5e7441);this['listenTo'](_0x49056e,_0x29dd('0xb'),(_0x1e75d6,_0x5d31d1)=>{this[_0x29dd('0x58')](_0x5d31d1,_0x29dd('0x49'),()=>{this[_0x29dd('0x2')](_0x5d31d1);});}),this[_0x29dd('0x58')](_0x49056e,_0x29dd('0x25'),(_0x4f13c1,_0x13a37d)=>{_0x13a37d[_0x29dd('0x3b')][_0x29dd('0x46')](_0x29dd('0x0'))&&this[_0x29dd('0x4c')](_0x13a37d['plugins']['get'](_0x29dd('0x0')));}),window['addEventListener'](_0x29dd('0x3e'),this['_throttledRefreshPositioning']),this[_0x29dd('0x47')]();}[_0x29dd('0x44')](_0x21be24){if(_0x21be24===this[_0x29dd('0xd')])return;const _0xb52eb0=this[_0x29dd('0x50')][_0x29dd('0x3b')][_0x29dd('0x1e')](_0x29dd('0x56'));if(_0xb52eb0[_0x29dd('0x55')]({'blurredAnnotation':this[_0x29dd('0xd')],'activatedAnnotation':_0x21be24,'disableAnimationOnActivatedAnnotation':!0x0}),_0x21be24)_0xb52eb0[_0x29dd('0x34')](_0x21be24)?this[_0x29dd('0x5c')](_0x21be24):this[_0x29dd('0xa')]();else this[_0x29dd('0xa')]();this[_0x29dd('0xd')]=_0x21be24;}[_0x29dd('0x2e')](){if(!this['isAttached'])throw new _0x277f92(_0x29dd('0x4e'),this);this[_0x29dd('0x44')](null);const _0x10232b=this[_0x29dd('0x50')][_0x29dd('0x3b')][_0x29dd('0x1e')](_0x29dd('0x56'));this['_hideBalloon'](),Array[_0x29dd('0x4a')](this[_0x29dd('0x20')][_0x29dd('0x53')](),_0x515108=>_0x515108[_0x29dd('0x38')]()),this[_0x29dd('0x20')][_0x29dd('0x1b')](),_0x10232b[_0x29dd('0x43')](this[_0x29dd('0x1c')]),this[_0x29dd('0x42')](),this[_0x29dd('0x5d')]['stopListening'](),this['stopListening'](this[_0x29dd('0x50')][_0x29dd('0x24')]);for(const _0x34bc35 of Array[_0x29dd('0x4a')](this[_0x29dd('0x3c')]))this[_0x29dd('0x4c')](_0x34bc35);window[_0x29dd('0x10')](_0x29dd('0x3e'),this['_throttledRefreshPositioning']),this[_0x29dd('0x2d')]['cancel'](),this[_0x29dd('0x5e')]=[],this[_0x29dd('0x5a')]=!0x1,this[_0x29dd('0x1c')]=null;}[_0x29dd('0x38')](){this[_0x29dd('0x5a')]&&this[_0x29dd('0x2e')](),this[_0x29dd('0x1')][_0x29dd('0x7')]();}[_0x29dd('0x2')](_0x548f6d){const _0x2a4ab1=_0x548f6d[_0x29dd('0x3b')][_0x29dd('0x1e')](_0x29dd('0x0')),_0x2550fb=this[_0x29dd('0x50')]['plugins'][_0x29dd('0x1e')](_0x29f29c),_0x469b5d=this[_0x29dd('0x1c')],_0xddeb73=this[_0x29dd('0x14')],_0x1d8bfa=()=>{const _0x257167=_0x2a4ab1[_0x29dd('0x11')]({'activeAnnotation':this[_0x29dd('0xd')],'annotations':this[_0x29dd('0x1c')]});this[_0x29dd('0x54')](_0x257167),this[_0x29dd('0x44')](_0x257167[0x0]||null);};this['listenTo'](_0x2a4ab1,_0x29dd('0x55'),_0x1d8bfa),this['listenTo'](_0x2a4ab1,'blur',(_0x2749b0,{isAnnotationTracked:_0xb8d218})=>{this[_0x29dd('0xd')]&&_0xb8d218(this[_0x29dd('0xd')])&&(this[_0x29dd('0x54')]([]),this[_0x29dd('0x44')](null));}),this['listenTo'](_0x2a4ab1,_0x29dd('0x26'),()=>{this[_0x29dd('0x2d')]();}),this['listenTo'](_0x469b5d,_0x29dd('0x1f'),_0x5a72a3=>{_0x2a4ab1[_0x29dd('0x3d')]()&&_0x5a72a3['stop']();},{'priority':_0x29dd('0x1a')}),this[_0x29dd('0x5d')][_0x29dd('0x58')](document,'mousedown',(_0x56ad55,_0x2b0718)=>{const _0x25b8e6=_0x2b0718['target'];_0xddeb73[_0x29dd('0x31')]&&_0xddeb73['element'][_0x29dd('0x4')](_0x25b8e6)||_0x2550fb['view'][_0x29dd('0x17')][_0x29dd('0x4')](_0x25b8e6)||this[_0x29dd('0xd')]&&_0x2a4ab1[_0x29dd('0x3d')]()&&(_0x1d8bfa(),_0x56ad55['preventClosingBalloon']=!0x0);},{'priority':_0x29dd('0x1a')}),this[_0x29dd('0x3c')]['add'](_0x2a4ab1);}[_0x29dd('0x4c')](_0x4ca704){_0x4ca704&&(this[_0x29dd('0x42')](_0x4ca704),this[_0x29dd('0x3c')]['remove'](_0x4ca704));}[_0x29dd('0x54')](_0x24ef0a){for(const _0x3405ec of this[_0x29dd('0x5e')])_0x24ef0a['includes'](_0x3405ec)||this[_0x29dd('0x60')][_0x29dd('0x32')](_0x3405ec[_0x29dd('0x2b')]);this[_0x29dd('0x5e')]=_0x24ef0a;}['_refreshPositioning'](){const _0xe775d2=this[_0x29dd('0x14')];this[_0x29dd('0x1c')][_0x29dd('0x9')](),_0xe775d2[_0x29dd('0x31')]&&this[_0x29dd('0x12')]();}[_0x29dd('0x5c')](_0xcead22){if(this['_manuallyClosedAnnotationViews'][_0x29dd('0x46')](_0xcead22['view']))return;const _0x1b54cf=this[_0x29dd('0x14')][_0x29dd('0x39')][_0x29dd('0x40')];_0x1b54cf!==_0xcead22[_0x29dd('0x2b')]?(_0x1b54cf&&this[_0x29dd('0x48')](_0x1b54cf),this['_attachListeners'](_0xcead22['view']),this[_0x29dd('0x14')][_0x29dd('0x39')][_0x29dd('0x1b')](),this['balloonPanelView'][_0x29dd('0x39')][_0x29dd('0xb')](_0xcead22[_0x29dd('0x2b')]),this[_0x29dd('0x12')]()):this[_0x29dd('0x12')]();}[_0x29dd('0x12')](){const _0x131bfd=this[_0x29dd('0x14')]['content'][_0x29dd('0x40')],_0x21da6e=this[_0x29dd('0x1c')][_0x29dd('0x18')](_0x131bfd);if(!this[_0x29dd('0x20')][_0x29dd('0x46')](_0x21da6e))return;const _0x3ac11f=this[_0x29dd('0x20')][_0x29dd('0x1e')](_0x21da6e)[_0x29dd('0x17')],_0x1a6e0b=function(){const _0x21f84f=_0x4e8d4c[_0x29dd('0x52')];return[_0x21f84f[_0x29dd('0x3')],_0x21f84f[_0x29dd('0x45')],_0x21f84f[_0x29dd('0x2a')],_0x21f84f[_0x29dd('0x19')],_0x21f84f['southArrowNorthWest'],_0x21f84f[_0x29dd('0x13')]];}();this['balloonPanelView']['pin']({'target':_0x3ac11f,'positions':_0x1a6e0b});}[_0x29dd('0xa')](){const _0x2a53f9=this['balloonPanelView'],_0x389018=_0x2a53f9['content'][_0x29dd('0x40')];_0x389018&&(this['_detachListeners'](_0x389018),_0x2a53f9['unpin'](),_0x2a53f9[_0x29dd('0x39')][_0x29dd('0x1b')]());}[_0x29dd('0x5f')](_0x4fc6f4){this[_0x29dd('0x58')](_0x4fc6f4,_0x29dd('0x2c'),()=>this[_0x29dd('0x12')]()),this[_0x29dd('0x58')](_0x4fc6f4,_0x29dd('0x61'),(_0xc630ea,_0x1f8abe)=>{this[_0x29dd('0x60')][_0x29dd('0xb')](_0x4fc6f4),this[_0x29dd('0xa')](),_0x1f8abe();});}[_0x29dd('0x48')](_0x39a1ed){this[_0x29dd('0x42')](_0x39a1ed);}}
|
|
23
|
+
const _0x5b15=['_manuallyClosedAnnotationViews','get','change:container','esc','set','_updateBalloonPosition','stopListening','_editorAnnotations','locale','uiUpdate','rearrange','southArrowNorthWest','NarrowSidebar','_integrateWithEditorAnnotations','attachToDom','off','register','_showBalloon','delete','northArrowSouthEast','_destroyEditorAnnotationsIntegration','_annotations','has','keyCode','EditorAnnotations','refreshPositioning','southArrowNorthEast','getSidebarItemView','_attachToContainer','_refreshPositioning','_domEmitter','isDirty','from','target','editors','annotationType','clear','bind','bodyCollection','detach','balloonPanelView','unpin','create','southArrowNorth','remove','contains','preventDefault','stop','first','detachFromDom','focus','plugins','add','narrowSidebar','number','init','addAnnotation','_attachListeners','Esc','isAttached','execute','keydown','isVisible','set:container','Sidebar','defaultPositions','hasDomSelection','mousedown','listenTo','values','_throttledRefreshPositioning','getByView','content','getOrderedSelectedAnnotations','northArrowSouthWest','activeAnnotation','destroy','requires','blur','removeEventListener','cancel','ck-sidebar--narrow','view','_annotationToNarrowView','_setSelectedAnnotations','ready','narrowsidebar-detach-not-attached','pin','setActiveAnnotation','resize','_detachListeners','preventClosingBalloon','_hideBalloon','high','refresh','element','context','_selectedAnnotations','northArrowSouth'];(function(_0x42dd08,_0x5b1544){const _0x2f49ed=function(_0x360a24){while(--_0x360a24){_0x42dd08['push'](_0x42dd08['shift']());}};_0x2f49ed(++_0x5b1544);}(_0x5b15,0x17d));const _0x2f49=function(_0x42dd08,_0x5b1544){_0x42dd08=_0x42dd08-0x0;let _0x2f49ed=_0x5b15[_0x42dd08];return _0x2f49ed;};import{ContextPlugin as _0x203678}from'ckeditor5/src/core';import _0x3f762a from'./annotationsuis';import _0x4fa331 from'./sidebar';import _0x478ceb from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2a16c0,BodyCollection as _0xe17308}from'ckeditor5/src/ui';import{CKEditorError as _0x2f6cd1,DomEmitterMixin as _0x269581,keyCodes as _0x261e15,Collection as _0x39d40d}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x8ff5d5}from'lodash-es';export default class s extends _0x203678{static get[_0x2f49('0x5c')](){return[_0x4fa331,_0x3f762a];}static get['pluginName'](){return _0x2f49('0x1b');}constructor(_0x158c60){super(_0x158c60),this[_0x2f49('0x4a')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x2f49('0x2d')]=Object[_0x2f49('0x39')](_0x269581),this['_annotationToNarrowView']=new Map(),this[_0x2f49('0x13')](_0x2f49('0x5a'),null),this['_annotations']=null,this[_0x2f49('0xd')]=[],this[_0x2f49('0x16')]=new _0x39d40d(),this[_0x2f49('0x55')]=_0x8ff5d5(()=>{this['_refreshPositioning']();},0x190,{'leading':!0x1});}[_0x2f49('0x46')](){this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x3f762a)[_0x2f49('0x1f')](_0x2f49('0x44'),this),this[_0x2f49('0x35')]=new _0xe17308(this[_0x2f49('0xc')][_0x2f49('0x17')]),this[_0x2f49('0x37')]=new _0x2a16c0(this[_0x2f49('0xc')][_0x2f49('0x17')]),this[_0x2f49('0x35')][_0x2f49('0x1d')](),this[_0x2f49('0x35')][_0x2f49('0x43')](this[_0x2f49('0x37')]);}['attach'](_0x4dc3f5){this[_0x2f49('0x24')]=_0x4dc3f5;const _0x3cff2b=this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x4fa331),_0xe360ea=this['balloonPanelView'];if(_0x3cff2b['_annotations']=_0x4dc3f5,this[_0x2f49('0x4a')])throw new _0x2f6cd1('narrowsidebar-attach-already-attached',this);this[_0x2f49('0x4a')]=!0x0,this[_0x2f49('0x53')](_0x3cff2b,_0x2f49('0x4e'),()=>{this[_0x2f49('0x36')](),this[_0x2f49('0x53')](_0x3cff2b,_0x2f49('0x11'),_0x2341ff=>{_0x2341ff[_0x2f49('0x1e')](),this['attach'](_0x4dc3f5);});}),_0x3cff2b[_0x2f49('0x2b')]({'viewClass':_0x2f49('0x60'),'spaceBetweenItems':0x5});const _0x3dd13b=_0x3d5946=>{const _0x532152=new _0x478ceb(this['context']['locale']);_0x3cff2b[_0x2f49('0x47')](_0x3d5946,_0x532152),this['_annotationToNarrowView'][_0x2f49('0x13')](_0x3d5946,_0x532152),_0x532152[_0x2f49('0x34')](_0x2f49('0x2e'),_0x2f49('0x32'),_0x2f49('0x45'))['to'](_0x3d5946[_0x2f49('0x61')],'isDirty','type','length'),_0x532152['on'](_0x2f49('0x4b'),()=>{this[_0x2f49('0xf')][_0x2f49('0x33')](),_0xe360ea[_0x2f49('0x57')][_0x2f49('0x3f')]!==_0x3d5946[_0x2f49('0x61')]?(this[_0x2f49('0x20')](_0x3d5946),_0x3d5946[_0x2f49('0x61')][_0x2f49('0xb')][_0x2f49('0x41')](),this['setActiveAnnotation'](_0x3d5946)):this['setActiveAnnotation'](null);});};for(const _0x11c9c8 of _0x4dc3f5)_0x3dd13b(_0x11c9c8);this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x43'),(_0x3004a4,_0x22dc26)=>{_0x3dd13b(_0x22dc26);}),this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x3b'),(_0x4c8bbd,_0x289cf1,_0x29629e)=>{this[_0x2f49('0x62')]['get'](_0x289cf1)['destroy'](),this[_0x2f49('0x62')][_0x2f49('0x21')](_0x289cf1),_0x3cff2b[_0x2f49('0x19')]({'removedAnnotation':_0x289cf1,'previousAnnotation':_0x4dc3f5[_0x2f49('0x10')](_0x29629e-0x1),'nextAnnotation':_0x4dc3f5['get'](_0x29629e+0x1)}),_0x289cf1===this[_0x2f49('0x5a')]&&this[_0x2f49('0x4')](null);},{'priority':'low'}),this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x41'),(_0x489c5e,_0x5988e9)=>{this[_0x2f49('0x4')](_0x5988e9);}),this[_0x2f49('0x53')](_0x4dc3f5,_0x2f49('0x5d'),()=>{this[_0x2f49('0x4')](null);}),this[_0x2f49('0x2d')][_0x2f49('0x53')](document,_0x2f49('0x4c'),(_0x20255e,_0x3419be)=>{_0x3419be[_0x2f49('0x26')]===_0x261e15[_0x2f49('0x12')]&&_0xe360ea[_0x2f49('0x4d')]&&(this[_0x2f49('0xf')][_0x2f49('0x43')](_0xe360ea[_0x2f49('0x57')][_0x2f49('0x3f')]),this['_hideBalloon'](),_0x3419be['stopPropagation'](),_0x3419be[_0x2f49('0x3d')]());}),this['_domEmitter'][_0x2f49('0x53')](document,_0x2f49('0x52'),(_0x2e3783,_0x2115ec)=>{const _0x1a02c9=_0x2115ec[_0x2f49('0x30')];_0xe360ea[_0x2f49('0x4d')]&&_0xe360ea[_0x2f49('0xb')]['contains'](_0x1a02c9)||_0x3cff2b[_0x2f49('0x61')][_0x2f49('0xb')][_0x2f49('0x3c')](_0x1a02c9)||_0x2e3783[_0x2f49('0x7')]||(this[_0x2f49('0xf')][_0x2f49('0x33')](),this[_0x2f49('0x8')](),this[_0x2f49('0x4')](null));});const _0x3bffb2=this[_0x2f49('0xc')]['editors']?this['context'][_0x2f49('0x31')]:new _0x39d40d([this[_0x2f49('0xc')]]);for(const _0x45ed50 of _0x3bffb2)this[_0x2f49('0x1c')](_0x45ed50);this[_0x2f49('0x53')](_0x3bffb2,_0x2f49('0x43'),(_0x49ca04,_0x44d6a9)=>{this['listenTo'](_0x44d6a9,_0x2f49('0x1'),()=>{this[_0x2f49('0x1c')](_0x44d6a9);});}),this[_0x2f49('0x53')](_0x3bffb2,_0x2f49('0x3b'),(_0x3bf1cd,_0x2b1883)=>{_0x2b1883[_0x2f49('0x42')][_0x2f49('0x25')]('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2b1883[_0x2f49('0x42')]['get'](_0x2f49('0x27')));}),window['addEventListener'](_0x2f49('0x5'),this[_0x2f49('0x55')]),this[_0x2f49('0x2c')]();}[_0x2f49('0x4')](_0x1c03a3){if(_0x1c03a3===this['activeAnnotation'])return;const _0x565e53=this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x2f49('0x4f'));if(_0x565e53['refresh']({'blurredAnnotation':this[_0x2f49('0x5a')],'activatedAnnotation':_0x1c03a3,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1c03a3)_0x565e53[_0x2f49('0x2a')](_0x1c03a3)?this[_0x2f49('0x20')](_0x1c03a3):this[_0x2f49('0x8')]();else this[_0x2f49('0x8')]();this[_0x2f49('0x5a')]=_0x1c03a3;}[_0x2f49('0x36')](){if(!this[_0x2f49('0x4a')])throw new _0x2f6cd1(_0x2f49('0x2'),this);this[_0x2f49('0x4')](null);const _0x3088ef=this['context'][_0x2f49('0x42')][_0x2f49('0x10')](_0x2f49('0x4f'));this['_hideBalloon'](),Array[_0x2f49('0x2f')](this[_0x2f49('0x62')][_0x2f49('0x54')](),_0x17e9a0=>_0x17e9a0[_0x2f49('0x5b')]()),this[_0x2f49('0x62')]['clear'](),_0x3088ef['_detachFromContainer'](this[_0x2f49('0x24')]),this[_0x2f49('0x15')](),this[_0x2f49('0x2d')][_0x2f49('0x15')](),this[_0x2f49('0x15')](this[_0x2f49('0xc')]['editors']);for(const _0x41eb89 of Array[_0x2f49('0x2f')](this['_editorAnnotations']))this[_0x2f49('0x23')](_0x41eb89);window[_0x2f49('0x5e')](_0x2f49('0x5'),this[_0x2f49('0x55')]),this[_0x2f49('0x55')][_0x2f49('0x5f')](),this['_selectedAnnotations']=[],this[_0x2f49('0x4a')]=!0x1,this[_0x2f49('0x24')]=null;}[_0x2f49('0x5b')](){this[_0x2f49('0x4a')]&&this[_0x2f49('0x36')](),this[_0x2f49('0x35')][_0x2f49('0x40')]();}['_integrateWithEditorAnnotations'](_0x4901a0){const _0x1b575b=_0x4901a0[_0x2f49('0x42')][_0x2f49('0x10')](_0x2f49('0x27')),_0x586c8a=this[_0x2f49('0xc')][_0x2f49('0x42')][_0x2f49('0x10')](_0x4fa331),_0x24b1bf=this['_annotations'],_0x167493=this[_0x2f49('0x37')],_0x4f43fb=()=>{const _0x38d727=_0x1b575b[_0x2f49('0x58')]({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x2f49('0x24')]});this[_0x2f49('0x0')](_0x38d727),this['setActiveAnnotation'](_0x38d727[0x0]||null);};this['listenTo'](_0x1b575b,_0x2f49('0xa'),_0x4f43fb),this[_0x2f49('0x53')](_0x1b575b,'blur',(_0x4fd268,{isAnnotationTracked:_0x9e65f8})=>{this['activeAnnotation']&&_0x9e65f8(this[_0x2f49('0x5a')])&&(this[_0x2f49('0x0')]([]),this[_0x2f49('0x4')](null));}),this[_0x2f49('0x53')](_0x1b575b,_0x2f49('0x18'),()=>{this[_0x2f49('0x55')]();}),this['listenTo'](_0x24b1bf,_0x2f49('0x5d'),_0x4fe70a=>{_0x1b575b['hasDomSelection']()&&_0x4fe70a[_0x2f49('0x3e')]();},{'priority':_0x2f49('0x9')}),this[_0x2f49('0x2d')][_0x2f49('0x53')](document,_0x2f49('0x52'),(_0x101d09,_0x1e09c9)=>{const _0x482030=_0x1e09c9[_0x2f49('0x30')];_0x167493['isVisible']&&_0x167493[_0x2f49('0xb')][_0x2f49('0x3c')](_0x482030)||_0x586c8a[_0x2f49('0x61')]['element']['contains'](_0x482030)||this[_0x2f49('0x5a')]&&_0x1b575b[_0x2f49('0x51')]()&&(_0x4f43fb(),_0x101d09[_0x2f49('0x7')]=!0x0);},{'priority':'high'}),this[_0x2f49('0x16')]['add'](_0x1b575b);}[_0x2f49('0x23')](_0x50a10c){_0x50a10c&&(this[_0x2f49('0x15')](_0x50a10c),this[_0x2f49('0x16')][_0x2f49('0x3b')](_0x50a10c));}[_0x2f49('0x0')](_0x488e06){for(const _0x2fa43b of this[_0x2f49('0xd')])_0x488e06['includes'](_0x2fa43b)||this[_0x2f49('0xf')][_0x2f49('0x21')](_0x2fa43b['view']);this['_selectedAnnotations']=_0x488e06;}[_0x2f49('0x2c')](){const _0x1a3e55=this['balloonPanelView'];this['_annotations'][_0x2f49('0x28')](),_0x1a3e55[_0x2f49('0x4d')]&&this[_0x2f49('0x14')]();}[_0x2f49('0x20')](_0x48ddc3){if(this['_manuallyClosedAnnotationViews'][_0x2f49('0x25')](_0x48ddc3['view']))return;const _0x46919c=this[_0x2f49('0x37')]['content']['first'];_0x46919c!==_0x48ddc3[_0x2f49('0x61')]?(_0x46919c&&this['_detachListeners'](_0x46919c),this[_0x2f49('0x48')](_0x48ddc3[_0x2f49('0x61')]),this[_0x2f49('0x37')][_0x2f49('0x57')][_0x2f49('0x33')](),this['balloonPanelView']['content'][_0x2f49('0x43')](_0x48ddc3[_0x2f49('0x61')]),this[_0x2f49('0x14')]()):this[_0x2f49('0x14')]();}['_updateBalloonPosition'](){const _0x361653=this['balloonPanelView'][_0x2f49('0x57')]['first'],_0x5e55b6=this[_0x2f49('0x24')][_0x2f49('0x56')](_0x361653);if(!this[_0x2f49('0x62')][_0x2f49('0x25')](_0x5e55b6))return;const _0x43c9f1=this['_annotationToNarrowView'][_0x2f49('0x10')](_0x5e55b6)['element'],_0x595249=function(){const _0xbcd568=_0x2a16c0[_0x2f49('0x50')];return[_0xbcd568[_0x2f49('0x29')],_0xbcd568[_0x2f49('0x22')],_0xbcd568[_0x2f49('0x3a')],_0xbcd568[_0x2f49('0xe')],_0xbcd568[_0x2f49('0x1a')],_0xbcd568[_0x2f49('0x59')]];}();this['balloonPanelView'][_0x2f49('0x3')]({'target':_0x43c9f1,'positions':_0x595249});}[_0x2f49('0x8')](){const _0x18b90e=this[_0x2f49('0x37')],_0x1ddc99=_0x18b90e[_0x2f49('0x57')][_0x2f49('0x3f')];_0x1ddc99&&(this[_0x2f49('0x6')](_0x1ddc99),_0x18b90e[_0x2f49('0x38')](),_0x18b90e[_0x2f49('0x57')][_0x2f49('0x33')]());}[_0x2f49('0x48')](_0x226e24){this[_0x2f49('0x53')](_0x226e24,'change:height',()=>this[_0x2f49('0x14')]()),this['listenTo'](_0x226e24,_0x2f49('0x49'),(_0x538f0c,_0x46ae66)=>{this[_0x2f49('0xf')][_0x2f49('0x43')](_0x226e24),this['_hideBalloon'](),_0x46ae66();});}[_0x2f49('0x6')](_0x3a10c8){this[_0x2f49('0x15')](_0x3a10c8);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ab5=['_getTargetTop','add','init','pluginName','isActive','max','config','setContainer','change:bottom','change:_lastItem','sidebar-attachtocontainer-missing-container','_lastItem','Sidebar','_createSidebarView','_destroySidebarItemView','context','define','_activeAnnotation','list','isAnimationDisabled','destroy','last','set','_updateLastItem','clear','view','_getItemBefore','sidebar.container','change:targetRect','target','_attachToContainer','locale','bottom','render','sidebar-setcontainer-invalid-element','_sidebarItemViewToAnnotation','remove','_alignBeforeItem','_alignToTargetRect','getIndex','class','_getMaxAvailableTop','top','updateHeight','element','_setItemTop','content','getSidebarItemView','_annotationToSidebarItemView','change:top','delete','_targetTop','targetRect','container','_spaceBetweenItems','sidebar.preventScrollOutOfView','get','unbind','stopListening','_getItemAfter','listenTo','length','_alignAfterItem','appendChild','minHeight','refresh','_annotations','height'];(function(_0x3ad47f,_0x1ab5ed){const _0x4976c2=function(_0x442581){while(--_0x442581){_0x3ad47f['push'](_0x3ad47f['shift']());}};_0x4976c2(++_0x1ab5ed);}(_0x1ab5,0x15b));const _0x4976=function(_0x3ad47f,_0x1ab5ed){_0x3ad47f=_0x3ad47f-0x0;let _0x4976c2=_0x1ab5[_0x3ad47f];return _0x4976c2;};import{ContextPlugin as _0x3e8b3b}from'ckeditor5/src/core';import _0x25ef68 from'./view/sidebarview';import _0x281e99 from'./view/sidebaritemview';import{Rect as _0x3c4a5b,CKEditorError as _0x11c2e4}from'ckeditor5/src/utils';import{isElement as _0x235457,throttle as _0x48c204}from'lodash-es';export default class b extends _0x3e8b3b{static get[_0x4976('0x40')](){return _0x4976('0x5');}constructor(_0x5d89d0){super(_0x5d89d0),this[_0x4976('0xf')](_0x4976('0x4')),this[_0x4976('0x12')]=this[_0x4976('0x6')](),this['set'](_0x4976('0x2e'),null),this[_0x4976('0x2f')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x4976('0x8')][_0x4976('0x43')][_0x4976('0x9')]('sidebar.preventScrollOutOfView',!0x1),this[_0x4976('0x3b')]=null,this[_0x4976('0xa')]=null;}[_0x4976('0x3f')](){const _0x2e731c=this[_0x4976('0x8')][_0x4976('0x43')]['get'](_0x4976('0x14'));_0x2e731c&&this['setContainer'](_0x2e731c);}[_0x4976('0x0')](_0xbabc34){if(!_0x235457(_0xbabc34))throw new _0x11c2e4(_0x4976('0x1b'));this[_0x4976('0x2e')]=_0xbabc34;}[_0x4976('0x17')]({viewClass:_0x3ae9cb='',spaceBetweenItems:_0x3635d5=0x19}={}){if(!_0x235457(this[_0x4976('0x2e')]))throw new _0x11c2e4(_0x4976('0x3'),this);this['container'][_0x4976('0x38')](this[_0x4976('0x12')][_0x4976('0x25')]),this[_0x4976('0x12')][_0x4976('0x21')]=_0x3ae9cb,this[_0x4976('0x2f')]=_0x3635d5;}['rearrange']({removedAnnotation:_0xb8be8d,previousAnnotation:_0x3bb002,nextAnnotation:_0x54e569}){const _0x4349f1=this['getSidebarItemView'](_0xb8be8d);this['view'][_0x4976('0xb')][_0x4976('0x1d')](_0x4349f1),this[_0x4976('0x7')](_0xb8be8d),_0x3bb002&&this[_0x4976('0x1f')](this[_0x4976('0x28')](_0x3bb002)),_0x54e569&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x54e569)),this[_0x4976('0x10')]();}[_0x4976('0x3a')]({blurredAnnotation:_0x31f67a,activatedAnnotation:_0x1be8f3,disableAnimationOnActivatedAnnotation:_0x53fa05}){if(this['_activeAnnotation']=_0x1be8f3,_0x31f67a){_0x31f67a[_0x4976('0x41')]=!0x1;const _0x410b5f=this[_0x4976('0x28')](_0x31f67a);_0x410b5f&&_0x53fa05&&(_0x410b5f[_0x4976('0xc')]=!0x1);}if(_0x1be8f3){const _0x3fcd93=this[_0x4976('0x28')](_0x1be8f3);_0x3fcd93&&(_0x1be8f3[_0x4976('0x41')]=!0x0,_0x53fa05&&(_0x3fcd93[_0x4976('0xc')]=!0x0,_0x3fcd93[_0x4976('0x23')]+=0x1),this[_0x4976('0x1f')](_0x3fcd93));}}['_detachFromContainer'](_0xa0dea5){this[_0x4976('0x33')](),this[_0x4976('0x12')]['element'][_0x4976('0x1d')]();for(const _0x5293 of _0xa0dea5)this[_0x4976('0x7')](_0x5293);this['view'][_0x4976('0xb')][_0x4976('0x11')](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x4cfcb,_0x6ff28a){_0x6ff28a||(_0x6ff28a=_0x4cfcb[_0x4976('0x12')]);const _0x3c9adb=new _0x281e99(this['context'][_0x4976('0x18')]);this[_0x4976('0x1c')][_0x4976('0xf')](_0x3c9adb,_0x4cfcb),this[_0x4976('0x29')][_0x4976('0xf')](_0x4cfcb,_0x3c9adb),_0x3c9adb['content']['add'](_0x6ff28a),this['_alignToTargetRect'](_0x3c9adb),this[_0x4976('0x35')](_0x4cfcb[_0x4976('0x12')],_0x4976('0x15'),()=>{const _0x3c652e=this['_getTargetTop'](_0x3c9adb);_0x3c9adb[_0x4976('0x2c')]!=_0x3c652e&&(_0x3c9adb['_targetTop']=_0x3c652e,this[_0x4976('0x26')](_0x3c9adb,_0x3c652e));}),this[_0x4976('0x35')](_0x3c9adb,_0x4976('0x2a'),_0x48c204(()=>{if(!_0x3c9adb[_0x4976('0x27')][_0x4976('0x36')])return;const _0x5ad492=this['_getItemBefore'](_0x3c9adb);if(!_0x5ad492)return;const _0x43bf48=this['_sidebarItemViewToAnnotation'][_0x4976('0x31')](_0x5ad492),_0x16e11c=this[_0x4976('0xa')];_0x16e11c&&_0x16e11c===_0x43bf48?this[_0x4976('0x37')](_0x5ad492,_0x3c9adb):this['_alignBeforeItem'](_0x3c9adb,_0x5ad492);},0xa,{'leading':!0x1})),this[_0x4976('0x35')](_0x3c9adb,_0x4976('0x1'),_0x48c204(()=>{if(!_0x3c9adb[_0x4976('0x27')][_0x4976('0x36')])return;const _0x287af0=this[_0x4976('0x34')](_0x3c9adb);if(!_0x287af0)return;const _0x3f903e=this[_0x4976('0x1c')][_0x4976('0x31')](_0x287af0),_0xa0b232=this[_0x4976('0x8')][_0x4976('0x43')][_0x4976('0x31')](_0x4976('0x30')),_0x42d658=this[_0x4976('0xa')];_0x42d658&&_0x42d658===_0x3f903e&&_0xa0b232?(this[_0x4976('0x1e')](_0x287af0,_0x3c9adb),this[_0x4976('0x37')](_0x3c9adb,_0x287af0)):_0x42d658&&_0x42d658===_0x3f903e?this[_0x4976('0x1e')](_0x287af0,_0x3c9adb):this[_0x4976('0x37')](_0x3c9adb,_0x287af0);},0xa,{'leading':!0x1}));const _0x497efe=this[_0x4976('0x13')](_0x3c9adb);if(_0x497efe)this[_0x4976('0x37')](_0x497efe,_0x3c9adb)||this[_0x4976('0x1f')](_0x3c9adb);else this[_0x4976('0x1f')](_0x3c9adb);return this['_updateLastItem'](),this[_0x4976('0x12')][_0x4976('0xb')][_0x4976('0x3e')](_0x3c9adb),_0x3c9adb;}[_0x4976('0x28')](_0x55050d){return this['_annotationToSidebarItemView'][_0x4976('0x31')](_0x55050d);}[_0x4976('0xd')](){this[_0x4976('0x12')][_0x4976('0xd')]();}[_0x4976('0x7')](_0x148ff4){const _0xc581cb=this[_0x4976('0x28')](_0x148ff4);this[_0x4976('0x33')](_0xc581cb),this[_0x4976('0x33')](_0x148ff4[_0x4976('0x12')]),_0xc581cb[_0x4976('0xd')](),this[_0x4976('0x29')][_0x4976('0x2b')](_0x148ff4),this[_0x4976('0x1c')][_0x4976('0x2b')](_0xc581cb);}[_0x4976('0x6')](){const _0x5b16c5=new _0x25ef68(this[_0x4976('0x8')][_0x4976('0x18')]);return _0x5b16c5[_0x4976('0x1a')](),this['on'](_0x4976('0x2'),(_0x50a826,_0x5a9f7f,_0x209f7f,_0x4601ac)=>{_0x4601ac&&_0x5b16c5[_0x4976('0x32')](_0x4976('0x39')),_0x209f7f?_0x5b16c5['bind'](_0x4976('0x39'))['to'](_0x209f7f,_0x4976('0x19')):_0x5b16c5['minHeight']=null;}),_0x5b16c5;}[_0x4976('0x10')](){this[_0x4976('0x4')]=this[_0x4976('0x28')](this[_0x4976('0x3b')][_0x4976('0xe')]);}[_0x4976('0x13')](_0x14806a){const _0x2227e6=this[_0x4976('0x1c')]['get'](_0x14806a),_0x1013cd=this['_annotations'][_0x4976('0x31')](this[_0x4976('0x3b')][_0x4976('0x20')](_0x2227e6)-0x1);return _0x1013cd&&this[_0x4976('0x28')](_0x1013cd);}[_0x4976('0x34')](_0x21d665){const _0x5d5537=this[_0x4976('0x1c')]['get'](_0x21d665),_0x21c82d=this[_0x4976('0x3b')]['get'](this[_0x4976('0x3b')][_0x4976('0x20')](_0x5d5537)+0x1);return _0x21c82d&&this[_0x4976('0x28')](_0x21c82d);}[_0x4976('0x1e')](_0x1f646f,_0x2c1d98){_0x1f646f[_0x4976('0x24')]();const _0x584ca9=V(_0x2c1d98['bottom']+this[_0x4976('0x2f')],_0x1f646f[_0x4976('0x23')]);return!!_0x584ca9&&(this['_setItemTop'](_0x2c1d98,_0x2c1d98[_0x4976('0x23')]-_0x584ca9),!0x0);}[_0x4976('0x37')](_0x3fdbce,_0x5e2cc3){_0x3fdbce['updateHeight']();const _0x57b8e2=V(_0x3fdbce[_0x4976('0x19')]+this[_0x4976('0x2f')],_0x5e2cc3['top']);return!!_0x57b8e2&&(this[_0x4976('0x26')](_0x5e2cc3,_0x5e2cc3[_0x4976('0x23')]+_0x57b8e2,!0x1),!0x0);}[_0x4976('0x1f')](_0x13ad97){const _0x5ebbff=this[_0x4976('0x1c')][_0x4976('0x31')](_0x13ad97);if(!_0x5ebbff||!_0x5ebbff[_0x4976('0x16')])return;const _0x3cd66e=this['_getTargetTop'](_0x13ad97);this[_0x4976('0x26')](_0x13ad97,_0x3cd66e);}[_0x4976('0x3d')](_0x32b0af){const _0x3f91ac=this[_0x4976('0x1c')][_0x4976('0x31')](_0x32b0af);if(_0x3f91ac[_0x4976('0x16')]instanceof _0x3c4a5b)return _0x3f91ac[_0x4976('0x2d')][_0x4976('0x23')];{const _0xe534e2=new _0x3c4a5b(this[_0x4976('0x12')][_0x4976('0x25')])[_0x4976('0x23')];return _0x3f91ac[_0x4976('0x2d')][_0x4976('0x23')]-_0xe534e2;}}[_0x4976('0x26')](_0x57dc6a,_0x5dee33,_0x1e8b03=this['context']['config'][_0x4976('0x31')](_0x4976('0x30'))){_0x1e8b03&&(_0x5dee33=Math[_0x4976('0x42')](_0x5dee33,this[_0x4976('0x22')](_0x57dc6a))),_0x57dc6a[_0x4976('0x23')]=_0x5dee33;}['_getMaxAvailableTop'](_0x5db9ec){let _0x2a50d5=this[_0x4976('0x13')](_0x5db9ec),_0x242fd1=0x0;for(;_0x2a50d5;)_0x2a50d5[_0x4976('0x24')](),_0x242fd1+=this[_0x4976('0x2f')]+_0x2a50d5[_0x4976('0x3c')],_0x2a50d5=this[_0x4976('0x13')](_0x2a50d5);return _0x242fd1;}}function V(_0x22a71f,_0x2d7386){return Math[_0x4976('0x42')](_0x22a71f-_0x2d7386,0x0);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dca=['children','add','ck-annotation-counter__badge--','ck-annotation-counter__badge--edit-mode','extendTemplate','bind','set','...','setTemplate','annotationType','isDirty','number','ck-annotation-counter__badge','ck-annotation-counter','counterView','_badge','icon'];(function(_0x20caaf,_0x5dca08){const _0x357fc2=function(_0x4919f6){while(--_0x4919f6){_0x20caaf['push'](_0x20caaf['shift']());}};_0x357fc2(++_0x5dca08);}(_0x5dca,0x6c));const _0x357f=function(_0x20caaf,_0x5dca08){_0x20caaf=_0x20caaf-0x0;let _0x357fc2=_0x5dca[_0x20caaf];return _0x357fc2;};import{ButtonView as _0x3a618a,View as _0x52f71b}from'ckeditor5/src/ui';import _0x3a46ba from'../../../theme/icons/add-comment.svg';export default class _ extends _0x3a618a{constructor(_0x56d5f9){super(_0x56d5f9);const _0x38e6eb=this['bindTemplate'];this[_0x357f('0x0')](_0x357f('0x4'),!0x1),this[_0x357f('0x0')](_0x357f('0x5'),0x0),this[_0x357f('0x10')](_0x357f('0x9'))['to'](this,'isDirty',this,_0x357f('0x5'),(_0xe26bba,_0x4c5391)=>_0xe26bba?_0x357f('0x1'):_0x4c5391),this['set'](_0x357f('0x3'),''),this[_0x357f('0xa')]=_0x3a46ba,this[_0x357f('0xf')]({'attributes':{'class':[_0x357f('0x7')]}}),this[_0x357f('0x8')]=new _0x52f71b(),this[_0x357f('0x8')][_0x357f('0x2')]({'tag':'span','attributes':{'class':[_0x357f('0x6'),_0x38e6eb['to']('annotationType',_0x12a731=>_0x357f('0xd')+_0x12a731),_0x38e6eb['if'](_0x357f('0x4'),_0x357f('0xe'))]},'children':[{'text':_0x38e6eb['to'](_0x357f('0x9'))}]}),this[_0x357f('0xb')][_0x357f('0xc')](this[_0x357f('0x8')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x194b=['isDirty','isActive','Esc','focus','createCollection','destroy','fire','element','ck-annotation-wrapper--active','listenTo','div','detach','height','focusTracker','content','mainView','set','ck-annotation-wrapper','keystrokes','_updateHeight','type','ck-rounded-corners','add','bindTemplate','_mutationObserver'];(function(_0x29ebd8,_0x194b94){const _0xaf56b3=function(_0x549092){while(--_0x549092){_0x29ebd8['push'](_0x29ebd8['shift']());}};_0xaf56b3(++_0x194b94);}(_0x194b,0x114));const _0xaf56=function(_0x29ebd8,_0x194b94){_0x29ebd8=_0x29ebd8-0x0;let _0xaf56b3=_0x194b[_0x29ebd8];return _0xaf56b3;};import{View as _0xe83d0c}from'ckeditor5/src/ui';import{FocusTracker as _0x57acca,KeystrokeHandler as _0x4ea42d,uid as _0x42579e}from'ckeditor5/src/utils';import _0x2e9b26 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class rt extends _0xe83d0c{constructor(_0x50e1a5,_0x44feee){super(_0x50e1a5),this['id']=_0x42579e(),this[_0xaf56('0xc')]=new _0x57acca(),this[_0xaf56('0x11')]=new _0x4ea42d(),this['keystrokes']['set'](_0xaf56('0x1'),(_0x43336a,_0x3a54f0)=>this[_0xaf56('0x5')](_0xaf56('0x1'),_0x3a54f0)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0xaf56('0xf')](_0xaf56('0xb'),0x0),this['set'](_0xaf56('0x0'),!0x1),this[_0xaf56('0xf')](_0xaf56('0x18'),!0x1),this[_0xaf56('0xf')]('length',0x0),this['set'](_0xaf56('0x13'),''),this[_0xaf56('0x17')]=_0x2e9b26(()=>this[_0xaf56('0x12')]()),this[_0xaf56('0xd')]=this[_0xaf56('0x3')](),this[_0xaf56('0xd')][_0xaf56('0x15')](_0x44feee),this[_0xaf56('0xe')]=_0x44feee;const _0x152cd8=this[_0xaf56('0x16')];this['setTemplate']({'tag':_0xaf56('0x9'),'attributes':{'class':['ck',_0xaf56('0x10'),_0xaf56('0x14'),_0x152cd8['if'](_0xaf56('0x0'),_0xaf56('0x7'))],'tabindex':-0x1},'children':this['content']});}['render'](){super['render'](),this['focusTracker'][_0xaf56('0x15')](this[_0xaf56('0x6')]),this[_0xaf56('0x11')][_0xaf56('0x8')](this[_0xaf56('0x6')]),this[_0xaf56('0x17')]['attach'](this[_0xaf56('0x6')]);}[_0xaf56('0x4')](){this['content']['clear'](),this[_0xaf56('0x11')][_0xaf56('0x4')](),this[_0xaf56('0xc')][_0xaf56('0x4')](),this[_0xaf56('0x17')][_0xaf56('0xa')](),super[_0xaf56('0x4')]();}['focus'](){this[_0xaf56('0x6')][_0xaf56('0x2')]();}[_0xaf56('0x12')](){const _0x1289cd=this['element']['clientHeight'];_0x1289cd&&(this[_0xaf56('0xb')]=_0x1289cd);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c57=['_mutationObserver','ck-sidebar-item--no-animation','attach','clientHeight','set','isAnimationDisabled','content','top','_targetTop','height','setTemplate','ck-sidebar-item','destroy','bottom','updateHeight','detach','element','createCollection'];(function(_0x401601,_0x1c5796){const _0x3fb10c=function(_0x5a1813){while(--_0x5a1813){_0x401601['push'](_0x401601['shift']());}};_0x3fb10c(++_0x1c5796);}(_0x1c57,0x171));const _0x3fb1=function(_0x401601,_0x1c5796){_0x401601=_0x401601-0x0;let _0x3fb10c=_0x1c57[_0x401601];return _0x3fb10c;};import{View as _0x182ab6}from'ckeditor5/src/ui';import{toUnit as _0x1a85f7}from'ckeditor5/src/utils';import _0x3b9e2a from'../../utils/createmutationobserver';const gt=_0x1a85f7('px');export default class T extends _0x182ab6{constructor(_0x52c3bf){super(_0x52c3bf),this[_0x3fb1('0xd')](_0x3fb1('0x10')),this[_0x3fb1('0xd')]('height',0x0),this['bind'](_0x3fb1('0x4'))['to'](this,'top',this,'height',(_0x101f0b,_0x94dc9c)=>(_0x101f0b||0x0)+_0x94dc9c),this[_0x3fb1('0xd')](_0x3fb1('0xe'),!0x1),this[_0x3fb1('0x9')]=_0x3b9e2a(()=>this[_0x3fb1('0x5')]()),this[_0x3fb1('0x11')]=null,this[_0x3fb1('0xf')]=this[_0x3fb1('0x8')]();const _0x33158c=this['bindTemplate'];this[_0x3fb1('0x1')]({'tag':'div','attributes':{'class':[_0x3fb1('0x2'),_0x33158c['to']('isAnimationDisabled',_0x302191=>_0x302191?_0x3fb1('0xa'):'')],'style':{'top':_0x33158c['to']('top',gt)}},'children':this[_0x3fb1('0xf')]});}['render'](){super['render'](),this[_0x3fb1('0x9')][_0x3fb1('0xb')](this[_0x3fb1('0x7')]);}[_0x3fb1('0x5')](){const _0x54d507=this['element'][_0x3fb1('0xc')];_0x54d507&&(this[_0x3fb1('0x0')]=_0x54d507);}['destroy'](){this['content']['clear'](),this[_0x3fb1('0x9')][_0x3fb1('0x6')](),super[_0x3fb1('0x3')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3054=['list','setTemplate','class','ck-sidebar','minHeight','createCollection','set'];(function(_0x1fd717,_0x3054fd){const _0x4d500f=function(_0x122e63){while(--_0x122e63){_0x1fd717['push'](_0x1fd717['shift']());}};_0x4d500f(++_0x3054fd);}(_0x3054,0xe9));const _0x4d50=function(_0x1fd717,_0x3054fd){_0x1fd717=_0x1fd717-0x0;let _0x4d500f=_0x3054[_0x1fd717];return _0x4d500f;};import{View as _0x30a341}from'ckeditor5/src/ui';import{toUnit as _0x3a8ae1}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x3a8ae1('px');export default class O extends _0x30a341{constructor(_0x593312){super(_0x593312);const _0x56f029=this['bindTemplate'];this[_0x4d50('0x4')]('minHeight',0x0),this['set']('class',''),this[_0x4d50('0x5')]=this[_0x4d50('0x3')](),this[_0x4d50('0x6')]({'tag':'div','attributes':{'class':['ck',_0x4d50('0x1'),'ck-reset',_0x56f029['to'](_0x4d50('0x0'))],'style':{'minHeight':_0x56f029['to'](_0x4d50('0x2'),_0x426f9c=>_0x426f9c?gt(_0x426f9c+0xa):null)}},'children':this['list']});}}
|