@ckeditor/ckeditor5-comments 0.0.0-nightly-20230806.0 → 0.0.0-nightly-20230808.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/CHANGELOG.md +2 -2
- package/LICENSE.md +5 -5
- package/README.md +13 -13
- package/build/comments.js +1 -1
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-comments",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20230808.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/)",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"CHANGELOG.md"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"ckeditor5": "0.0.0-nightly-
|
|
47
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
46
|
+
"ckeditor5": "0.0.0-nightly-20230808.0",
|
|
47
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230808.0",
|
|
48
48
|
"lodash-es": "4.17.21"
|
|
49
49
|
},
|
|
50
50
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37f2=['function','render','targetRect','object','_target','_getNormalizedTarget','set','getClientRects','item','isArray','_id','view','focusTracker','annotation-invalid-target','length','nodeType','_assertCorrectTarget','_type','isVisible','focusableElements','type','destroy','offsetParent','filter','stopListening','every','isActive','target','refreshVisibility','mainView','updateTargetRect','add','element','innerView'];(function(_0xf786a3,_0x37f2a8){const _0xbf7a93=function(_0x4849e8){while(--_0x4849e8){_0xf786a3['push'](_0xf786a3['shift']());}};_0xbf7a93(++_0x37f2a8);}(_0x37f2,0xa5));const _0xbf7a=function(_0xf786a3,_0x37f2a8){_0xf786a3=_0xf786a3-0x0;let _0xbf7a93=_0x37f2[_0xf786a3];return _0xbf7a93;};import{CKEditorError as _0x40a36d,Rect as _0xaec1a5,Collection as _0x43f885,ObservableMixin as _0x17c9d5}from'ckeditor5/src/utils';export default class d extends _0x17c9d5(){constructor({view:_0x10bb73,target:_0x373216,type:_0x1e7ce3,isVisible:_0x14740f=!0x0}){super(),this[_0xbf7a('0x10')]=_0x10bb73,this[_0xbf7a('0x10')]['element']||this[_0xbf7a('0x10')][_0xbf7a('0x6')](),this['_type']=_0x1e7ce3,this[_0xbf7a('0x9')]=_0x373216,d[_0xbf7a('0x15')](this[_0xbf7a('0xa')]()),this[_0xbf7a('0x18')]=new _0x43f885([this[_0xbf7a('0x10')][_0xbf7a('0x3')]],{'idProperty':_0xbf7a('0xf')}),this[_0xbf7a('0x18')]['on'](_0xbf7a('0x2'),(_0x50a611,_0x2eb9bc)=>{this[_0xbf7a('0x10')][_0xbf7a('0x11')]['add'](_0x2eb9bc);}),this[_0xbf7a('0x18')]['on']('remove',(_0x44aaa7,_0x1d7a7d)=>{this['view'][_0xbf7a('0x11')]['remove'](_0x1d7a7d);}),this[_0xbf7a('0xb')](_0xbf7a('0x17'),_0x14740f);}get[_0xbf7a('0x19')](){return _0xbf7a('0x5')==typeof this[_0xbf7a('0x16')]?this['_type']():this[_0xbf7a('0x16')];}get[_0xbf7a('0x4')](){return this['view'][_0xbf7a('0x0')];}get[_0xbf7a('0x20')](){const _0x5bf9f9=this[_0xbf7a('0xa')]();return d['_assertCorrectTarget'](_0x5bf9f9),_0x5bf9f9;}get[_0xbf7a('0x7')](){const _0x23eeaf=this[_0xbf7a('0x20')];if(null===_0x23eeaf)return null;if(_0x23eeaf instanceof _0xaec1a5)return _0x23eeaf;const _0x59c159=_0x23eeaf[_0xbf7a('0x1c')](_0x38ac79=>function(_0x1c8109){const _0x422678=_0x1c8109[_0xbf7a('0x1b')];if(_0x422678)return!0x0;const _0x12c24e=_0x1c8109[_0xbf7a('0xc')]()[_0xbf7a('0xd')](0x0);return!!_0x12c24e;}(_0x38ac79));return 0x0===_0x59c159[_0xbf7a('0x13')]?null:new _0xaec1a5(_0x59c159[0x0][_0xbf7a('0xc')]()[_0xbf7a('0xd')](0x0));}get['isActive'](){return this[_0xbf7a('0x10')][_0xbf7a('0x1f')];}set[_0xbf7a('0x1f')](_0x1584a3){this[_0xbf7a('0x10')][_0xbf7a('0x1f')]=_0x1584a3,this[_0xbf7a('0x10')]['mainView'][_0xbf7a('0x1f')]=_0x1584a3;}[_0xbf7a('0x1')](){this[_0xbf7a('0x10')][_0xbf7a('0x7')]=this['targetRect'];}[_0xbf7a('0x1a')](){this['focusableElements']['stopListening'](),this[_0xbf7a('0x18')]['clear'](),this[_0xbf7a('0x1d')]();}[_0xbf7a('0x21')](){this[_0xbf7a('0x17')]=!!this[_0xbf7a('0x7')];}static['_assertCorrectTarget'](_0x4eb51e){if(!(null===_0x4eb51e||_0x4eb51e instanceof _0xaec1a5||Array[_0xbf7a('0xe')](_0x4eb51e)&&_0x4eb51e[_0xbf7a('0x1e')](_0x5180af=>y(_0x5180af))))throw new _0x40a36d(_0xbf7a('0x12'),null,{'target':_0x4eb51e});}[_0xbf7a('0xa')](){const _0x747ad6=_0xbf7a('0x5')==typeof this[_0xbf7a('0x9')]?this[_0xbf7a('0x9')]():this['_target'];return y(_0x747ad6)?[_0x747ad6]:_0x747ad6;}}function y(_0x1a9f0c){return null!==_0x1a9f0c&&_0xbf7a('0x8')==typeof _0x1a9f0c&&'nodeType'in _0x1a9f0c&&0x1===_0x1a9f0c[_0xbf7a('0x14')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30e0=['fire','isFocused','_focusTracker','listenTo','refreshPositioning','has','stopListening','clear','top','view','left','from','delete','length','focusTracker','change:isFocused','focusableElements','innerView','annotationcollection-not-existing-item','annotationcollection-duplicated-item','getIndex','set','_innerViewToAnnotation','destroy','_sort','get','_viewToAnnotation','getByView','remove','_getOrderInContent','targetRect','sort','add','getByInnerView'];(function(_0x10bdbc,_0x30e0b1){const _0x1a50b2=function(_0x1253b3){while(--_0x1253b3){_0x10bdbc['push'](_0x10bdbc['shift']());}};_0x1a50b2(++_0x30e0b1);}(_0x30e0,0xaa));const _0x1a50=function(_0x10bdbc,_0x30e0b1){_0x10bdbc=_0x10bdbc-0x0;let _0x1a50b2=_0x30e0[_0x10bdbc];return _0x1a50b2;};import{CKEditorError as _0x111efc,Collection as _0x79d9ec,FocusTracker as _0x2acf28}from'ckeditor5/src/utils';export default class x extends _0x79d9ec{constructor(_0x57a89e=[]){super(),this[_0x1a50('0x16')]=new Map(),this['_viewToAnnotation']=new Map(),this[_0x1a50('0x2')]=new _0x2acf28(),this[_0x1a50('0x2')]['on'](_0x1a50('0xf'),(_0x4c58c2,_0x4b7cb4,_0x10320a)=>{_0x10320a||this[_0x1a50('0x0')]('blur');});for(const _0x556eb8 of _0x57a89e)this[_0x1a50('0x20')](_0x556eb8);}get[_0x1a50('0x1')](){return this['_focusTracker'][_0x1a50('0x1')];}[_0x1a50('0x20')](_0x3919d4){if(this['has'](_0x3919d4))throw new _0x111efc(_0x1a50('0x13'),null);this['_innerViewToAnnotation'][_0x1a50('0x15')](_0x3919d4[_0x1a50('0x11')],_0x3919d4),this[_0x1a50('0x1a')]['set'](_0x3919d4['view'],_0x3919d4);for(const _0x403740 of _0x3919d4[_0x1a50('0x10')])this['_focusTracker'][_0x1a50('0x20')](_0x403740);this[_0x1a50('0x3')](_0x3919d4[_0x1a50('0x10')],'add',(_0x13b1c4,_0x238969)=>{this[_0x1a50('0x2')][_0x1a50('0x20')](_0x238969);}),this[_0x1a50('0x3')](_0x3919d4[_0x1a50('0x10')],'remove',(_0xb961a5,_0x5971e3)=>{this[_0x1a50('0x2')][_0x1a50('0x1c')](_0x5971e3);}),this[_0x1a50('0x3')](_0x3919d4[_0x1a50('0x9')][_0x1a50('0xe')],_0x1a50('0xf'),(_0x49edc7,_0x37ce84,_0x47b00e)=>{_0x47b00e&&this['fire']('focus',_0x3919d4);}),_0x3919d4['updateTargetRect']();const _0x3c505=this[_0x1a50('0x1d')](_0x3919d4['view'][_0x1a50('0x1e')]);return super['add'](_0x3919d4,_0x3c505);}[_0x1a50('0x1c')](_0x4146bf){if(!this[_0x1a50('0x5')](_0x4146bf))throw new _0x111efc(_0x1a50('0x12'),null);this[_0x1a50('0x6')](_0x4146bf[_0x1a50('0x9')][_0x1a50('0xe')]),this[_0x1a50('0x6')](_0x4146bf[_0x1a50('0x10')]);for(const _0x72603f of _0x4146bf[_0x1a50('0x10')])this['_focusTracker']['remove'](_0x72603f);return this['_viewToAnnotation'][_0x1a50('0xc')](_0x4146bf[_0x1a50('0x9')]),this[_0x1a50('0x16')]['delete'](_0x4146bf[_0x1a50('0x11')]),super['remove'](_0x4146bf);}[_0x1a50('0x21')](_0x4d54bb){return this[_0x1a50('0x16')][_0x1a50('0x19')](_0x4d54bb);}[_0x1a50('0x1b')](_0x1cc3ff){return this[_0x1a50('0x1a')][_0x1a50('0x19')](_0x1cc3ff);}[_0x1a50('0x17')](){super['clear'](),this[_0x1a50('0x6')](),this['_innerViewToAnnotation'][_0x1a50('0x7')](),this[_0x1a50('0x1a')][_0x1a50('0x7')](),this[_0x1a50('0x2')][_0x1a50('0x17')]();}[_0x1a50('0x4')](){for(const _0x185ee8 of this)_0x185ee8['updateTargetRect']();this[_0x1a50('0x18')]();}[_0x1a50('0x18')](){const _0x52f3a6=Array[_0x1a50('0xb')](this)[_0x1a50('0x1f')]((_0x4dcbe8,_0x54bbbf)=>v(_0x4dcbe8['view'][_0x1a50('0x1e')],_0x54bbbf[_0x1a50('0x9')][_0x1a50('0x1e')]));for(let _0x1a11df=_0x52f3a6[_0x1a50('0xd')]-0x1;_0x1a11df>0x0;_0x1a11df--){const _0x2c770d=_0x52f3a6[_0x1a11df];_0x1a11df!==this[_0x1a50('0x14')](_0x2c770d)&&(this[_0x1a50('0x1c')](_0x2c770d),this[_0x1a50('0x20')](_0x2c770d));}}[_0x1a50('0x1d')](_0x3a914e){let _0x3143c8=0x0;if(!_0x3a914e)return this[_0x1a50('0xd')];for(const _0x1eb0fd of this){const _0x5cb372=_0x1eb0fd[_0x1a50('0x9')][_0x1a50('0x1e')];if(_0x5cb372){if(v(_0x3a914e,_0x5cb372)<0x0)return _0x3143c8;_0x3143c8++;}}return _0x3143c8;}}export function bindAnnotationCollections({source:_0xd87480,target:_0x2b513c,filter:_0x5a352e}){for(const _0x470053 of _0xd87480)_0x5a352e(_0x470053)&&_0x2b513c['add'](_0x470053);_0x2b513c[_0x1a50('0x3')](_0xd87480,_0x1a50('0x20'),(_0x18cc1f,_0x1dcade)=>{_0x5a352e(_0x1dcade)&&_0x2b513c[_0x1a50('0x20')](_0x1dcade);}),_0x2b513c[_0x1a50('0x3')](_0xd87480,_0x1a50('0x1c'),(_0x29fe95,_0x24ea89)=>{_0x2b513c['has'](_0x24ea89)&&_0x2b513c[_0x1a50('0x1c')](_0x24ea89);});}function v(_0x5c8f7b,_0x5c77a1){if(null===_0x5c8f7b&&null===_0x5c77a1)return 0x0;if(null===_0x5c8f7b)return-0x1;if(null===_0x5c77a1)return 0x1;const _0x138cee=_0x5c8f7b[_0x1a50('0x8')]-_0x5c77a1[_0x1a50('0x8')];return 0x0==_0x138cee?_0x5c8f7b[_0x1a50('0xa')]-_0x5c77a1[_0x1a50('0xa')]:_0x138cee;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x306d=['change:isVisible','remove','pluginName','_addActiveAnnotation','focusTracker','set','collection','listenTo','delete','view','_deactivateAllAnnotations','_activateAnnotation','activeAnnotations','createAnnotation','element','stopListening','activate','add','refreshPositioning','fire','destroy','createAnnotationView','deactivateAll','has','_bindAnnotationsToVisibleAnnotations','isVisible','_visibleAnnotations','refreshVisibility','getByInnerView','source'];(function(_0x29be39,_0x306d46){const _0x75b68f=function(_0x5ae99d){while(--_0x5ae99d){_0x29be39['push'](_0x29be39['shift']());}};_0x75b68f(++_0x306d46);}(_0x306d,0x113));const _0x75b6=function(_0x29be39,_0x306d46){_0x29be39=_0x29be39-0x0;let _0x75b68f=_0x306d[_0x29be39];return _0x75b68f;};import{ContextPlugin as _0x172b20}from'ckeditor5/src/core';import _0x3a28a3 from'./annotation';import _0x2a3eaf from'./annotationcollection';import _0xd2d5e7 from'./view/annotationview';export default class b extends _0x172b20{static get[_0x75b6('0x1b')](){return'Annotations';}constructor(_0x5418c8){super(_0x5418c8),this[_0x75b6('0x1')]=new _0x2a3eaf(),this[_0x75b6('0x15')]=new _0x2a3eaf(),this[_0x75b6('0x0')]('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x75b6('0xc')](_0x258ce1){this[_0x75b6('0x1')]['add'](_0x258ce1);}['remove'](_0x3c936a){this[_0x75b6('0x1')]['remove'](_0x3c936a),_0x3c936a[_0x75b6('0xf')]();}[_0x75b6('0x16')](){for(const _0x172cf8 of this[_0x75b6('0x1')])_0x172cf8[_0x75b6('0x16')]();}[_0x75b6('0xd')](){this[_0x75b6('0x15')][_0x75b6('0xd')]();}[_0x75b6('0x17')](_0x516789){return this[_0x75b6('0x1')]['getByInnerView'](_0x516789);}[_0x75b6('0x11')](){this[_0x75b6('0xe')](_0x75b6('0x5'));}[_0x75b6('0xf')](){for(const _0x4c63c8 of this[_0x75b6('0x1')])_0x4c63c8[_0x75b6('0xf')]();this['_visibleAnnotations'][_0x75b6('0xf')](),this[_0x75b6('0x1')][_0x75b6('0xf')](),super[_0x75b6('0xf')]();}[_0x75b6('0xb')](_0x3b7b28){this[_0x75b6('0xe')](_0x75b6('0x6'),_0x3b7b28);}[_0x75b6('0x8')](_0x263ce8){return new _0x3a28a3(_0x263ce8);}[_0x75b6('0x10')](_0x5a530d,_0x257c0d){return new _0xd2d5e7(_0x5a530d,_0x257c0d);}[_0x75b6('0x1c')](_0xc18936){const _0x1110da=new Set(this[_0x75b6('0x7')]);_0x1110da[_0x75b6('0xc')](_0xc18936),this['activeAnnotations']=_0x1110da;}['_removeActiveAnnotation'](_0x4b2093){const _0x544d4e=new Set(this['activeAnnotations']);_0x544d4e[_0x75b6('0x3')](_0x4b2093),this[_0x75b6('0x7')]=_0x544d4e;}[_0x75b6('0x13')](){const _0x5eb296=this[_0x75b6('0x1')],_0x48b46f=this['_visibleAnnotations'];function _0x3db48e(_0x16ce63){const _0x17b106=_0x16ce63[_0x75b6('0x18')];_0x17b106[_0x75b6('0x14')]&&!_0x48b46f[_0x75b6('0x12')](_0x17b106)?_0x48b46f[_0x75b6('0xc')](_0x17b106):!_0x17b106[_0x75b6('0x14')]&&_0x48b46f[_0x75b6('0x12')](_0x17b106)&&_0x48b46f[_0x75b6('0x1a')](_0x17b106),_0x17b106[_0x75b6('0x4')][_0x75b6('0x1d')][_0x75b6('0x1a')](_0x17b106[_0x75b6('0x4')][_0x75b6('0x9')]),_0x17b106[_0x75b6('0x4')][_0x75b6('0x1d')][_0x75b6('0xc')](_0x17b106['view'][_0x75b6('0x9')]);}this['listenTo'](_0x5eb296,'add',(_0x37b1c2,_0x454e36)=>{_0x454e36[_0x75b6('0x14')]&&_0x48b46f['add'](_0x454e36),this[_0x75b6('0x2')](_0x454e36,_0x75b6('0x19'),_0x3db48e);}),this[_0x75b6('0x2')](_0x5eb296,_0x75b6('0x1a'),(_0x2ac7b2,_0xd38780)=>{_0x48b46f[_0x75b6('0x12')](_0xd38780)&&_0x48b46f[_0x75b6('0x1a')](_0xd38780),this[_0x75b6('0xa')](_0xd38780,'change:isVisible',_0x3db48e);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1448=['init','pluginName','annotationsuis-register-already-registered','refilterAnnotations','length','_setSelectedAnnotations','find','filter','detach','from','has','get','activate','plugins','deactivate','_deactivateAllAnnotations','attach','push','annotationsuis-annotation-mismatch','register','_uis','isActive','_uisData','function','_activateAnnotation','type','context','delete','activeUIs','AnnotationsUIs','_removeActiveAnnotation','annotationsuis-register-invalid-interface','_visibleAnnotations','setActiveAnnotation','remove','deactivateAll','collection','add','switchTo','size','stopListening','annotationsuis-missing-ui','_assertAnnotationDoesNotBelongToMultipleUIs','requires','set','destroy','listenTo','hasActive','_addActiveAnnotation'];(function(_0x422e31,_0x144850){const _0x42387d=function(_0x242932){while(--_0x242932){_0x422e31['push'](_0x422e31['shift']());}};_0x42387d(++_0x144850);}(_0x1448,0x75));const _0x4238=function(_0x422e31,_0x144850){_0x422e31=_0x422e31-0x0;let _0x42387d=_0x1448[_0x422e31];return _0x42387d;};import{ContextPlugin as _0x2b5098}from'ckeditor5/src/core';import{CKEditorError as _0x56d501}from'ckeditor5/src/utils';import _0x46cbca,{bindAnnotationCollections as _0x9a63ac}from'./annotationcollection';import _0x5dfa35 from'./annotations';export default class M extends _0x2b5098{static get[_0x4238('0x18')](){return[_0x5dfa35];}static get[_0x4238('0x1f')](){return _0x4238('0xa');}constructor(_0x429deb){super(_0x429deb),this[_0x4238('0x9')]=new Set(),this[_0x4238('0x1')]=new Map(),this['_uisData']=new Map();}[_0x4238('0x1e')](){const _0x55567e=this[_0x4238('0x7')]['plugins'][_0x4238('0x29')](_0x5dfa35);this['listenTo'](_0x55567e,_0x4238('0x5'),(_0x4f0857,_0x1a6504)=>{for(const _0xbff6be of this[_0x4238('0x9')]){const _0x444925=this['_uis'][_0x4238('0x29')](_0xbff6be);(0x0,this[_0x4238('0x3')]['get'](_0xbff6be)[_0x4238('0x25')])(_0x1a6504)&&_0x444925[_0x4238('0xe')](_0x1a6504);}}),this[_0x4238('0x1b')](_0x55567e,_0x4238('0x2d'),()=>{for(const _0x9bc2a2 of this[_0x4238('0x9')]){this[_0x4238('0x1')][_0x4238('0x29')](_0x9bc2a2)['setActiveAnnotation'](null);}}),this[_0x4238('0x1b')](_0x55567e['_visibleAnnotations'],'add',(_0x3fa678,_0x30e141)=>{this[_0x4238('0x17')](_0x30e141);});}[_0x4238('0x1c')](){return this['activeUIs'][_0x4238('0x14')]>0x0;}['isActive'](_0x56aee8){return this[_0x4238('0x9')]['has'](_0x56aee8);}[_0x4238('0x2a')](_0x1539f8,_0x45b1c7=()=>!0x0){const _0x2cecc2=this[_0x4238('0x7')][_0x4238('0x2b')][_0x4238('0x29')](_0x5dfa35);if(!this[_0x4238('0x1')][_0x4238('0x28')](_0x1539f8))throw new _0x56d501(_0x4238('0x16'),this,{'uiName':_0x1539f8});this[_0x4238('0x2')](_0x1539f8)&&this[_0x4238('0x2c')](_0x1539f8),this[_0x4238('0x9')][_0x4238('0x12')](_0x1539f8);const _0x3884b4=new _0x46cbca(),_0x17e215=_0x2cecc2[_0x4238('0xd')];_0x9a63ac({'source':_0x17e215,'target':_0x3884b4,'filter':_0x45b1c7}),this[_0x4238('0x3')]['set'](_0x1539f8,{'collection':_0x3884b4,'filter':_0x45b1c7});const _0x5daa97=this[_0x4238('0x1')][_0x4238('0x29')](_0x1539f8);_0x5daa97['attach'](_0x3884b4),this[_0x4238('0x1b')](_0x5daa97,'change:activeAnnotation',(_0xc3c4d3,_0x5d5f44,_0x5ea089,_0x52f7dc)=>{_0x52f7dc&&_0x2cecc2[_0x4238('0xb')](_0x52f7dc),_0x5ea089&&_0x2cecc2[_0x4238('0x1d')](_0x5ea089);});}[_0x4238('0x2c')](_0x1f465b){if(this['activeUIs'][_0x4238('0x8')](_0x1f465b),!this[_0x4238('0x1')]['has'](_0x1f465b))throw new _0x56d501('annotationsuis-missing-ui',this,{'uiName':_0x1f465b});const _0x159488=this[_0x4238('0x1')]['get'](_0x1f465b);_0x159488[_0x4238('0x26')](),this[_0x4238('0x15')](_0x159488),this['_uisData'][_0x4238('0x29')](_0x1f465b)[_0x4238('0x11')]['destroy'](),this[_0x4238('0x3')][_0x4238('0x8')](_0x1f465b);}[_0x4238('0x13')](_0x5066f5){if(!this[_0x4238('0x1')][_0x4238('0x28')](_0x5066f5))throw new _0x56d501(_0x4238('0x16'),this,{'uiName':_0x5066f5});const _0x31ad26=this[_0x4238('0x7')][_0x4238('0x2b')][_0x4238('0x29')](_0x5dfa35),_0x5f28b0=Array[_0x4238('0x27')](_0x31ad26['activeAnnotations'])[0x0]||null;this[_0x4238('0x10')](),this[_0x4238('0x2a')](_0x5066f5);const _0x4af8bf=this[_0x4238('0x1')][_0x4238('0x29')](_0x5066f5);_0x4af8bf[_0x4238('0xe')](_0x5f28b0),_0x4af8bf[_0x4238('0x23')]&&_0x5f28b0&&_0x4af8bf['_setSelectedAnnotations']([_0x5f28b0]);}[_0x4238('0x10')](){for(const _0x2c7e90 of this[_0x4238('0x9')])this[_0x4238('0x2c')](_0x2c7e90);}[_0x4238('0x0')](_0x267883,_0xac0301){if(this[_0x4238('0x1')]['has'](_0x267883))throw new _0x56d501(_0x4238('0x20'));if(_0x4238('0x4')!=typeof _0xac0301[_0x4238('0x2e')]||_0x4238('0x4')!=typeof _0xac0301[_0x4238('0x26')]||_0x4238('0x4')!=typeof _0xac0301[_0x4238('0xe')])throw new _0x56d501(_0x4238('0xc'),null);this[_0x4238('0x1')][_0x4238('0x19')](_0x267883,_0xac0301);}[_0x4238('0x21')](){const _0x4aa97a=this[_0x4238('0x7')][_0x4238('0x2b')][_0x4238('0x29')](_0x5dfa35)[_0x4238('0x11')],_0x239027=new Map(),_0x238c90=Array['from'](this['activeUIs']);for(const _0x4fb2d2 of this[_0x4238('0x9')]){const _0x20ed49=this['_uisData'][_0x4238('0x29')](_0x4fb2d2)[_0x4238('0x11')];for(const _0xace996 of _0x20ed49)_0x239027[_0x4238('0x19')](_0xace996,_0x4fb2d2);}for(const _0x126eea of _0x4aa97a){const _0x5b33b3=_0x239027[_0x4238('0x29')](_0x126eea);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x126eea);const _0x4f2d8a=_0x238c90[_0x4238('0x24')](_0x2cd007=>this[_0x4238('0x3')][_0x4238('0x29')](_0x2cd007)[_0x4238('0x25')](_0x126eea));_0x5b33b3!==_0x4f2d8a&&(_0x5b33b3&&this['_uisData'][_0x4238('0x29')](_0x5b33b3)[_0x4238('0x11')][_0x4238('0xf')](_0x126eea),_0x4f2d8a&&this[_0x4238('0x3')][_0x4238('0x29')](_0x4f2d8a)[_0x4238('0x11')]['add'](_0x126eea));}}[_0x4238('0x1a')](){this[_0x4238('0x10')](),super[_0x4238('0x1a')]();}[_0x4238('0x17')](_0x1bbf9f){const _0x14892f=[];for(const _0x4d143d of this[_0x4238('0x9')]){(0x0,this[_0x4238('0x3')][_0x4238('0x29')](_0x4d143d)[_0x4238('0x25')])(_0x1bbf9f)&&_0x14892f[_0x4238('0x2f')](_0x4d143d);}if(_0x14892f[_0x4238('0x22')]>0x1)throw new _0x56d501(_0x4238('0x30'),null,{'matchedUIs':_0x14892f,'annotationType':_0x1bbf9f[_0x4238('0x6')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d94=['listenTo','view','add','element','model','registerAnnotation','addSourceCollector','getRanges','range','annotation','cancel','from','delete','_editorAnnotationsData','blur','refreshSelectedViews','uiUpdate','init','focusTracker','selection','requires','fire','_dataCollectors','change:isFocused','getOrderedSelectedAnnotations','remove','set','isCollapsed','pluginName','hasDomSelection','editing','push','containsRange','refresh','document','_editorAnnotations','EditorAnnotations','editorannotations-invalid-source-callback','has','update','plugins','editor','innerView'];(function(_0x59e166,_0x1d940c){const _0x4a0d37=function(_0x47ade2){while(--_0x47ade2){_0x59e166['push'](_0x59e166['shift']());}};_0x4a0d37(++_0x1d940c);}(_0x1d94,0x1dd));const _0x4a0d=function(_0x59e166,_0x1d940c){_0x59e166=_0x59e166-0x0;let _0x4a0d37=_0x1d94[_0x59e166];return _0x4a0d37;};import{Plugin as _0x48d258}from'ckeditor5/src/core';import{CKEditorError as _0x4acadc}from'ckeditor5/src/utils';import{debounce as _0x475526}from'lodash-es';import _0x22ca0e from'./annotations';export default class k extends _0x48d258{static get[_0x4a0d('0x10')](){return[_0x22ca0e];}static get[_0x4a0d('0x18')](){return _0x4a0d('0x20');}constructor(_0xc89ff0){super(_0xc89ff0),this[_0x4a0d('0x12')]=new Set(),this[_0x4a0d('0x1f')]=new Set();}[_0x4a0d('0xd')](){const _0x14a04a=this[_0x4a0d('0x25')],_0x367dc7=_0x14a04a[_0x4a0d('0x0')][_0x4a0d('0x1e')][_0x4a0d('0xf')],_0x179834=_0x475526(()=>this[_0x4a0d('0xb')](),0xa);_0x367dc7['on']('change:range',(_0xbfd901,_0x40569a)=>{_0x40569a['directChange']&&(_0x179834[_0x4a0d('0x6')](),this[_0x4a0d('0xb')]());}),this['listenTo'](_0x14a04a['editing'][_0x4a0d('0x28')][_0x4a0d('0x1e')],_0x4a0d('0x13'),(_0x5b2890,_0x35be68,_0x2f504d)=>{_0x2f504d&&_0x179834();}),this['listenTo'](_0x14a04a['ui']['focusTracker'],_0x4a0d('0x13'),(_0x3c7d6f,_0x1e1acb,_0x4aeaff)=>{_0x4aeaff||_0x14a04a['isReadOnly']||this[_0x4a0d('0x11')](_0x4a0d('0xa'),{'isAnnotationTracked':_0x53c7aa=>this[_0x4a0d('0x9')][_0x4a0d('0x22')](_0x53c7aa[_0x4a0d('0x26')])});}),this[_0x4a0d('0x27')](this['editor']['ui'],_0x4a0d('0x23'),()=>this[_0x4a0d('0x11')](_0x4a0d('0xc')));}[_0x4a0d('0x1')](_0x88b436){if(this[_0x4a0d('0x1f')][_0x4a0d('0x22')](_0x88b436['view']))return;this[_0x4a0d('0x1f')][_0x4a0d('0x29')](_0x88b436[_0x4a0d('0x28')]),this[_0x4a0d('0x25')]['ui'][_0x4a0d('0xe')]['add'](_0x88b436[_0x4a0d('0x28')][_0x4a0d('0x2a')]);const _0xd57c8d=this['editor'][_0x4a0d('0x24')]['get'](_0x22ca0e);this['listenTo'](_0xd57c8d['collection'],'remove',(_0x1e2635,_0x1d9e0d)=>{this[_0x4a0d('0x25')]['ui']['focusTracker'][_0x4a0d('0x15')](_0x1d9e0d['view'][_0x4a0d('0x2a')]),this[_0x4a0d('0x1f')][_0x4a0d('0x8')](_0x1d9e0d[_0x4a0d('0x28')]);});}[_0x4a0d('0x19')](){return this[_0x4a0d('0x25')][_0x4a0d('0x1a')][_0x4a0d('0x28')][_0x4a0d('0x19')];}[_0x4a0d('0x2')](_0x6045e8){if('function'!=typeof _0x6045e8)throw new _0x4acadc(_0x4a0d('0x21'));this[_0x4a0d('0x12')][_0x4a0d('0x29')](_0x6045e8);}[_0x4a0d('0xb')](){this[_0x4a0d('0x11')](_0x4a0d('0x1d'));}[_0x4a0d('0x14')]({activeAnnotation:_0x391194,annotations:_0x56407a}){const _0x9b105=[],_0x14e4cf=this[_0x4a0d('0x25')][_0x4a0d('0x0')][_0x4a0d('0x1e')][_0x4a0d('0xf')],_0x342a4c=Array[_0x4a0d('0x7')](_0x14e4cf[_0x4a0d('0x3')]());for(const [_0x57820f,_0x19a4e8]of this[_0x4a0d('0x9')]){const _0x430566=_0x1307ef(_0x19a4e8),_0x10baf2=_0x56407a['getByInnerView'](_0x57820f);_0x430566&&_0x10baf2&&_0x9b105[_0x4a0d('0x1b')]({'annotation':_0x10baf2,'range':_0x430566});}function _0x1307ef(_0x486c06){for(const _0xfbea9a of _0x486c06)for(const _0x1ab0f7 of _0x342a4c)if(_0xfbea9a['containsRange'](_0x1ab0f7,!_0x14e4cf[_0x4a0d('0x17')]))return _0xfbea9a;return null;}return _0x9b105['sort']((_0x4a54ac,_0x5e7de7)=>{const _0x1e0be5=_0x4a54ac['range'],_0x374d7c=_0x5e7de7[_0x4a0d('0x4')];if(!_0x1e0be5['isEqual'](_0x374d7c)){if(_0x1e0be5[_0x4a0d('0x1c')](_0x374d7c,!0x0))return 0x1;if(_0x374d7c[_0x4a0d('0x1c')](_0x1e0be5,!0x0))return-0x1;}return _0x4a54ac[_0x4a0d('0x5')]==_0x391194?-0x1:_0x5e7de7[_0x4a0d('0x5')]==_0x391194?0x1:0x0;})['map'](_0x2aab5d=>_0x2aab5d[_0x4a0d('0x5')]);}get[_0x4a0d('0x9')](){const _0x437d04=new Map();for(const _0x2dbb63 of Array[_0x4a0d('0x7')](this['_dataCollectors']))for(const [_0x30e244,_0x2da043]of _0x2dbb63())_0x437d04[_0x4a0d('0x16')](_0x30e244,_0x2da043);return _0x437d04;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d87=['focus','focusTracker','showStack','find','change:height','targetRect','InlineAnnotations','every','editableElement','attach','init','inline','left','activeAnnotation','_getBalloonTargetForAnnotation','editor','isFocused','addObserver','top','push','_addedAnnotations','annotations','set','refresh','mousedown','_setSelectedAnnotations','length','requires','getFirstRange','plugins','bottom','register','_addAnnotationToBalloon','right','selection','clear','listenTo','inlineannotations-detach-not-attached','_forceRefresh','switchTo','hasActive','inlineannotations-attach-already-attached','stopListening','inlineannotations-not-allowed-with-context','pluginName','getByView','detach','isAttached','Esc','context','getClientRects','includes','get','fromRect','document','_manuallyClosed','update','width','change:visibleView','_closeAnnotation','add','_removeAnnotationFromBalloon','target','setActiveAnnotation','afterInit','domConverter','updatePosition','delete','hasView','from','isActive','view','getOrderedSelectedAnnotations','has','editing','getBoundingClientRect','_balloon','_selectedAnnotations','visibleView'];(function(_0x184e0e,_0x3d87e1){const _0x3d2181=function(_0x18823b){while(--_0x18823b){_0x184e0e['push'](_0x184e0e['shift']());}};_0x3d2181(++_0x3d87e1);}(_0x3d87,0xca));const _0x3d21=function(_0x184e0e,_0x3d87e1){_0x184e0e=_0x184e0e-0x0;let _0x3d2181=_0x3d87[_0x184e0e];return _0x3d2181;};import{Plugin as _0x5161a2}from'ckeditor5/src/core';import _0x21456a from'./annotationsuis';import _0x4ae51f from'./editorannotations';import{ContextualBalloon as _0x5a8599}from'ckeditor5/src/ui';import{MouseObserver as _0x5e6656}from'ckeditor5/src/engine';import{CKEditorError as _0x56905a,Rect as _0x2ae054}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x5161a2{static get[_0x3d21('0x3e')](){return[_0x4ae51f,_0x5a8599,_0x21456a];}static get[_0x3d21('0x0')](){return _0x3d21('0x29');}constructor(_0x446c2e){super(_0x446c2e),_0x446c2e[_0x3d21('0x1e')][_0x3d21('0x1b')][_0x3d21('0x34')](_0x5e6656),this[_0x3d21('0x3')]=!0x1,this['set'](_0x3d21('0x30'),null),this[_0x3d21('0x38')]=null,this[_0x3d21('0xb')]=new Set(),this[_0x3d21('0x20')]=_0x446c2e[_0x3d21('0x40')][_0x3d21('0x8')](_0x5a8599),this[_0x3d21('0x37')]=new Set(),this[_0x3d21('0x21')]=[],this[_0x3d21('0x49')]=!0x1;}[_0x3d21('0x2d')](){const _0x3b8e83=this['editor'][_0x3d21('0x40')][_0x3d21('0x8')](_0x21456a);_0x3b8e83[_0x3d21('0x5')]===this[_0x3d21('0x32')]&&(_0x3b8e83[_0x3d21('0x42')](_0x3d21('0x2e'),this),this['editor']['keystrokes'][_0x3d21('0x39')](_0x3d21('0x4'),(_0x1511e6,_0x40d5eb)=>{const _0x162760=this[_0x3d21('0x20')];if(this[_0x3d21('0x3')]&&_0x162760['visibleView']){const _0x93627d=this[_0x3d21('0x38')][_0x3d21('0x1')](_0x162760[_0x3d21('0x22')]);_0x93627d&&this[_0x3d21('0xf')](_0x93627d),_0x40d5eb();}}));}[_0x3d21('0x14')](){const _0x3e34f6=this[_0x3d21('0x32')][_0x3d21('0x40')][_0x3d21('0x8')](_0x21456a);_0x3e34f6[_0x3d21('0x5')]===this['editor']&&(_0x3e34f6[_0x3d21('0x4b')]()||_0x3e34f6[_0x3d21('0x4a')]('inline'));}[_0x3d21('0x13')](_0x21327e){_0x21327e!==this[_0x3d21('0x30')]&&(this[_0x3d21('0x30')]&&(this[_0x3d21('0x30')][_0x3d21('0x1a')]=!0x1),_0x21327e&&this[_0x3d21('0x32')]['ui'][_0x3d21('0x24')]['isFocused']&&(this[_0x3d21('0x38')][_0x3d21('0x1d')](_0x21327e)&&this[_0x3d21('0x43')](_0x21327e,!0x0),_0x21327e[_0x3d21('0x1a')]=!0x0),_0x21327e||this[_0x3d21('0x3c')]([]),this[_0x3d21('0x30')]=_0x21327e);}[_0x3d21('0x2c')](_0x77fcaf){this[_0x3d21('0x38')]=_0x77fcaf;const _0x4e101f=this[_0x3d21('0x32')]['plugins'][_0x3d21('0x8')](_0x21456a),_0x57867f=this[_0x3d21('0x20')];if(this[_0x3d21('0x3')])throw new _0x56905a(_0x3d21('0x4c'),this);if(_0x4e101f[_0x3d21('0x5')]!==this['editor'])throw new _0x56905a(_0x3d21('0x4e'),this);const _0x18ec1d=this['editor'][_0x3d21('0x40')][_0x3d21('0x8')](_0x4ae51f);this[_0x3d21('0x47')](_0x18ec1d,_0x3d21('0x3a'),()=>{const _0x290845=_0x18ec1d[_0x3d21('0x1c')]({'annotations':this[_0x3d21('0x38')],'activeAnnotation':this['activeAnnotation']});var _0xf3cee1,_0x2d15dc;!this['_forceRefresh']&&(_0xf3cee1=_0x290845,_0x2d15dc=this[_0x3d21('0x21')],_0xf3cee1[_0x3d21('0x3d')]===_0x2d15dc[_0x3d21('0x3d')]&&_0xf3cee1[_0x3d21('0x2a')](_0xd8ae1d=>_0x2d15dc[_0x3d21('0x7')](_0xd8ae1d)))||(this['_forceRefresh']=!0x1,this[_0x3d21('0x3c')](_0x290845),this['setActiveAnnotation'](_0x290845[0x0]||null));}),this[_0x3d21('0x47')](_0x18ec1d,'blur',(_0x15b2b3,{isAnnotationTracked:_0x5ec3e8})=>{this[_0x3d21('0x30')]&&_0x5ec3e8(this[_0x3d21('0x30')])&&(this[_0x3d21('0x3c')]([]),this[_0x3d21('0x13')](null));}),this[_0x3d21('0x47')](this[_0x3d21('0x32')]['ui'][_0x3d21('0x24')],'change:isFocused',(_0x51a21c,_0xa21891,_0x3a8a6d)=>{_0x3a8a6d||this[_0x3d21('0x13')](null);}),this[_0x3d21('0x47')](_0x77fcaf,'remove',(_0x26b569,_0x5b72bf)=>{this[_0x3d21('0x11')](_0x5b72bf),_0x5b72bf===this[_0x3d21('0x30')]&&this[_0x3d21('0x13')](null);}),this['listenTo'](_0x57867f,_0x3d21('0xe'),(_0x4b82ce,_0x1b0e55,_0x27bda0,_0x28452d)=>{_0x28452d&&this['stopListening'](_0x28452d);const _0x69bcb7=_0x77fcaf['getByView'](_0x27bda0);_0x27bda0&&_0x69bcb7&&(this[_0x3d21('0x47')](_0x27bda0,_0x3d21('0x27'),()=>{_0x57867f[_0x3d21('0x16')]();}),this[_0x3d21('0x47')](_0x27bda0,_0x3d21('0x4'),()=>{this['_closeAnnotation'](_0x69bcb7),this[_0x3d21('0x32')][_0x3d21('0x1e')]['view'][_0x3d21('0x23')]();}),this[_0x3d21('0x30')]!==_0x69bcb7&&this[_0x3d21('0x13')](_0x69bcb7));}),this[_0x3d21('0x47')](this['editor']['ui'],_0x3d21('0xc'),()=>{_0x57867f[_0x3d21('0x22')]&&(_0x77fcaf[_0x3d21('0x1')](_0x57867f[_0x3d21('0x22')])&&_0x57867f[_0x3d21('0x16')]());}),this[_0x3d21('0x47')](this['editor'][_0x3d21('0x1e')]['view'][_0x3d21('0xa')],_0x3d21('0x3b'),()=>{this[_0x3d21('0x49')]=!0x0,this[_0x3d21('0xb')][_0x3d21('0x46')]();}),this[_0x3d21('0x32')][_0x3d21('0x1e')][_0x3d21('0x1b')]['document']['selection'][_0x3d21('0x2b')]&&this[_0x3d21('0x32')][_0x3d21('0x1e')][_0x3d21('0x1b')][_0x3d21('0x23')](),this[_0x3d21('0x3')]=!0x0;}[_0x3d21('0x2')](){if(!this['isAttached'])throw new _0x56905a(_0x3d21('0x48'),this);this[_0x3d21('0x13')](null);for(const _0x5bb05f of this[_0x3d21('0x37')])this[_0x3d21('0x11')](_0x5bb05f);this[_0x3d21('0x4d')](),this[_0x3d21('0x3')]=!0x1,this[_0x3d21('0x38')]=null;}['destroy'](){this[_0x3d21('0x3')]&&this[_0x3d21('0x2')]();}[_0x3d21('0x3c')](_0x38bf8a){for(const _0x1c44d7 of this[_0x3d21('0x21')])_0x38bf8a[_0x3d21('0x7')](_0x1c44d7)||this[_0x3d21('0xb')][_0x3d21('0x17')](_0x1c44d7);for(const _0x1536b9 of this[_0x3d21('0x38')])_0x38bf8a[_0x3d21('0x7')](_0x1536b9)||this[_0x3d21('0x11')](_0x1536b9);if(this[_0x3d21('0x32')]['ui']['focusTracker'][_0x3d21('0x33')])for(const _0x5198f8 of _0x38bf8a)this['_addAnnotationToBalloon'](_0x5198f8);this[_0x3d21('0x21')]=_0x38bf8a;}[_0x3d21('0x43')](_0x2ca1f1,_0x3acf12=!0x1){this[_0x3d21('0xb')]['has'](_0x2ca1f1)||(this[_0x3d21('0x37')][_0x3d21('0x1d')](_0x2ca1f1)||this[_0x3d21('0x20')][_0x3d21('0x18')](_0x2ca1f1[_0x3d21('0x1b')])||(this[_0x3d21('0x37')][_0x3d21('0x10')](_0x2ca1f1),this[_0x3d21('0x20')]['add']({'stackId':_0x2ca1f1[_0x3d21('0x1b')]['id'],'view':_0x2ca1f1['view'],'position':{'target':()=>this[_0x3d21('0x31')](_0x2ca1f1)}})),_0x3acf12&&this[_0x3d21('0x20')][_0x3d21('0x25')](_0x2ca1f1[_0x3d21('0x1b')]['id']));}['_getBalloonTargetForAnnotation'](_0xf59f04){const _0x3f8c71=_0xf59f04[_0x3d21('0x12')],_0x325773=this[_0x3d21('0x32')][_0x3d21('0x1e')][_0x3d21('0x1b')],_0x19a827=_0x325773['document'][_0x3d21('0x45')][_0x3d21('0x3f')](),_0x29bc2a=_0x325773[_0x3d21('0x15')]['viewRangeToDom'](_0x19a827);if(_0x29bc2a['collapse'](!0x0),_0x3f8c71){if(_0x3f8c71 instanceof _0x2ae054)return _0x3f8c71;let _0x361765=[];for(const _0x386451 of _0x3f8c71)_0x361765[_0x3d21('0x36')](...(_0x53f3f7=_0x386451[_0x3d21('0x6')](),Array[_0x3d21('0x19')](_0x53f3f7)['map'](DOMRect[_0x3d21('0x9')])));_0x361765=function(_0x47a70b){const _0x2d6726=[];let _0x55e793=_0x47a70b[0x0];for(let _0x211b91=0x1;_0x211b91<_0x47a70b[_0x3d21('0x3d')];_0x211b91++)F(_0x55e793,_0x47a70b[_0x211b91])?_0x55e793['width']+=_0x47a70b[_0x211b91][_0x3d21('0xd')]:(_0x2d6726[_0x3d21('0x36')](_0x55e793),_0x55e793=_0x47a70b[_0x211b91]);return _0x2d6726[_0x3d21('0x36')](_0x55e793),_0x2d6726;}(_0x361765);const _0x465cc1=_0x29bc2a[_0x3d21('0x1f')]();return _0x361765[_0x3d21('0x26')](_0x1f06d0=>_0x1f06d0[_0x3d21('0x35')]<=_0x465cc1[_0x3d21('0x35')]&&_0x1f06d0[_0x3d21('0x41')]>=_0x465cc1[_0x3d21('0x41')]&&_0x1f06d0[_0x3d21('0x2f')]<=_0x465cc1['left']&&_0x1f06d0[_0x3d21('0x44')]>=_0x465cc1[_0x3d21('0x44')])||_0x361765[0x0];}var _0x53f3f7;return _0xf59f04[_0x3d21('0x28')]||_0x29bc2a;}['_removeAnnotationFromBalloon'](_0x3e1a1b){this[_0x3d21('0x37')][_0x3d21('0x1d')](_0x3e1a1b)&&this[_0x3d21('0x20')]['hasView'](_0x3e1a1b[_0x3d21('0x1b')])&&(this[_0x3d21('0x37')][_0x3d21('0x17')](_0x3e1a1b),this['_balloon']['remove'](_0x3e1a1b[_0x3d21('0x1b')]));}['_closeAnnotation'](_0x513bd9){this['_manuallyClosed']['add'](_0x513bd9),this[_0x3d21('0x11')](_0x513bd9);}}function F(_0x8b8c33,_0x3d7fe4){return _0x8b8c33[_0x3d21('0x35')]===_0x3d7fe4[_0x3d21('0x35')]&&_0x8b8c33[_0x3d21('0x41')]===_0x3d7fe4[_0x3d21('0x41')]&&_0x8b8c33['right']===_0x3d7fe4[_0x3d21('0x2f')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3ec7=['change:height','_attachListeners','set:container','from','resize','isAttached','_detachFromContainer','removeEventListener','balloonPanelView','_showBalloon','annotationType','northArrowSouth','Esc','addAnnotation','esc','pin','delete','isDirty','pluginName','narrowsidebar-attach-already-attached','_destroyEditorAnnotationsIntegration','target','_manuallyClosedAnnotationViews','clear','element','type','narrowSidebar','off','_domEmitter','getOrderedSelectedAnnotations','_selectedAnnotations','southArrowNorthEast','addEventListener','_hideBalloon','uiUpdate','init','_integrateWithEditorAnnotations','_detachListeners','contains','low','_editorAnnotations','EditorAnnotations','annotations','change:container','add','destroy','view','first','_setSelectedAnnotations','bind','_attachToContainer','remove','context','hasDomSelection','mousedown','stop','plugins','locale','bodyCollection','register','has','setActiveAnnotation','isVisible','detach','editors','get','execute','unpin','_refreshPositioningDebounced','blur','high','getSidebarItemView','create','detachFromDom','narrowsidebar-detach-not-attached','_annotations','ck-sidebar--narrow','stopPropagation','NarrowSidebar','find','values','northArrowSouthWest','length','ready','_annotationToNarrowView','stopListening','_refreshPositioning','activeAnnotation','listenTo','preventClosingBalloon','content','preventDefault','_updateBalloonPosition','rearrange','set'];(function(_0x2eb581,_0x3ec7da){const _0x24c7d9=function(_0x3c160b){while(--_0x3c160b){_0x2eb581['push'](_0x2eb581['shift']());}};_0x24c7d9(++_0x3ec7da);}(_0x3ec7,0x128));const _0x24c7=function(_0x2eb581,_0x3ec7da){_0x2eb581=_0x2eb581-0x0;let _0x24c7d9=_0x3ec7[_0x2eb581];return _0x24c7d9;};import{ContextPlugin as _0x54c0a4,Context as _0x1d37c0}from'ckeditor5/src/core';import _0x1320f3 from'./annotationsuis';import _0x556d9c from'./sidebar';import _0x3112fe from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x514cff,BodyCollection as _0x4639ec}from'ckeditor5/src/ui';import{CKEditorError as _0x5ca631,DomEmitterMixin as _0x55231b,keyCodes as _0x308cda,Collection as _0x304e2f}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x52f603}from'lodash-es';import _0x15ae61 from'./editorannotations';export default class s extends _0x54c0a4{static get['requires'](){return[_0x556d9c,_0x1320f3];}static get[_0x24c7('0x7')](){return _0x24c7('0x43');}constructor(_0x238427){super(_0x238427),this[_0x24c7('0x59')]=!0x1,this[_0x24c7('0xb')]=new Set(),this['_domEmitter']=Object[_0x24c7('0x3d')](_0x55231b),this[_0x24c7('0x49')]=new Map(),this[_0x24c7('0x53')](_0x24c7('0x4c'),null),this['annotations']=null,this[_0x24c7('0x13')]=[],this[_0x24c7('0x1d')]=new _0x304e2f(),this['_refreshPositioningDebounced']=_0x52f603(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x24c7('0x18')](){this['context']['plugins'][_0x24c7('0x36')](_0x1320f3)[_0x24c7('0x30')](_0x24c7('0xf'),this),this['bodyCollection']=new _0x4639ec(this[_0x24c7('0x29')]['locale']),this[_0x24c7('0x5c')]=new _0x514cff(this['context'][_0x24c7('0x2e')]),this['bodyCollection']['attachToDom'](),this['bodyCollection'][_0x24c7('0x21')](this['balloonPanelView']);}['attach'](_0x143e58){this[_0x24c7('0x1f')]=_0x143e58;const _0x5a4efd=this[_0x24c7('0x29')][_0x24c7('0x2d')][_0x24c7('0x36')](_0x556d9c),_0x3a6ea2=this[_0x24c7('0x5c')];if(_0x5a4efd[_0x24c7('0x40')]=_0x143e58,this[_0x24c7('0x59')])throw new _0x5ca631(_0x24c7('0x8'),this);this['isAttached']=!0x0,this['listenTo'](_0x5a4efd,_0x24c7('0x56'),()=>{this[_0x24c7('0x34')](),this[_0x24c7('0x4d')](_0x5a4efd,_0x24c7('0x20'),_0x184458=>{_0x184458[_0x24c7('0x10')](),this['attach'](_0x143e58);});}),_0x5a4efd[_0x24c7('0x27')]({'viewClass':_0x24c7('0x41'),'spaceBetweenItems':0x5});const _0x27c33c=_0x302d79=>{const _0x41a7b6=new _0x3112fe(this[_0x24c7('0x29')]['locale']);_0x5a4efd[_0x24c7('0x2')](_0x302d79,_0x41a7b6),this['_annotationToNarrowView'][_0x24c7('0x53')](_0x302d79,_0x41a7b6),_0x41a7b6[_0x24c7('0x26')](_0x24c7('0x6'),_0x24c7('0x5e'),'number')['to'](_0x302d79[_0x24c7('0x23')],_0x24c7('0x6'),_0x24c7('0xe'),_0x24c7('0x47')),_0x41a7b6['on'](_0x24c7('0x37'),()=>{this[_0x24c7('0xb')][_0x24c7('0xc')](),_0x3a6ea2[_0x24c7('0x4f')][_0x24c7('0x24')]!==_0x302d79['view']?(this[_0x24c7('0x5d')](_0x302d79),_0x302d79[_0x24c7('0x23')][_0x24c7('0xd')]['focus'](),this['setActiveAnnotation'](_0x302d79)):this[_0x24c7('0x32')](null);});};for(const _0x1130f8 of _0x143e58)_0x27c33c(_0x1130f8);this['listenTo'](_0x143e58,_0x24c7('0x21'),(_0x59e58c,_0x26f72d)=>{_0x27c33c(_0x26f72d);}),this['listenTo'](_0x143e58,'remove',(_0x715d52,_0x17b60f,_0x8e053f)=>{this[_0x24c7('0x49')][_0x24c7('0x36')](_0x17b60f)['destroy'](),this[_0x24c7('0x49')][_0x24c7('0x5')](_0x17b60f),_0x5a4efd[_0x24c7('0x52')]({'removedAnnotation':_0x17b60f,'previousAnnotation':_0x143e58[_0x24c7('0x36')](_0x8e053f-0x1),'nextAnnotation':_0x143e58[_0x24c7('0x36')](_0x8e053f+0x1)}),_0x17b60f===this[_0x24c7('0x4c')]&&this[_0x24c7('0x32')](null);},{'priority':_0x24c7('0x1c')}),this[_0x24c7('0x4d')](_0x143e58,'focus',(_0x4ab8c9,_0xf24683)=>{this['setActiveAnnotation'](_0xf24683);}),this['listenTo'](_0x143e58,_0x24c7('0x3a'),()=>{this[_0x24c7('0x32')](null);}),this[_0x24c7('0x11')][_0x24c7('0x4d')](document,'keydown',(_0x357b18,_0x473fa3)=>{_0x473fa3['keyCode']===_0x308cda[_0x24c7('0x3')]&&_0x3a6ea2[_0x24c7('0x33')]&&(this['_manuallyClosedAnnotationViews'][_0x24c7('0x21')](_0x3a6ea2['content'][_0x24c7('0x24')]),this[_0x24c7('0x16')](),_0x473fa3[_0x24c7('0x42')](),_0x473fa3[_0x24c7('0x50')]());}),this['_domEmitter'][_0x24c7('0x4d')](document,'mousedown',(_0x5e1cf4,_0x193550)=>{const _0x697dc4=_0x193550[_0x24c7('0xa')];_0x3a6ea2[_0x24c7('0x33')]&&_0x3a6ea2[_0x24c7('0xd')][_0x24c7('0x1b')](_0x697dc4)||_0x5a4efd[_0x24c7('0x23')]['element'][_0x24c7('0x1b')](_0x697dc4)||_0x5e1cf4[_0x24c7('0x4e')]||this[_0x24c7('0x4c')]&&this[_0x24c7('0x4c')]['focusableElements'][_0x24c7('0x44')](_0x284ef0=>_0x284ef0['contains'](_0x697dc4))||(this[_0x24c7('0xb')]['clear'](),this[_0x24c7('0x16')](),this[_0x24c7('0x32')](null));});const _0x24a06d=this['context']instanceof _0x1d37c0?this[_0x24c7('0x29')]['editors']:new _0x304e2f([this['context']]);for(const _0x1ff30c of _0x24a06d)this['_integrateWithEditorAnnotations'](_0x1ff30c);this[_0x24c7('0x4d')](_0x24a06d,_0x24c7('0x21'),(_0x3ebfb6,_0x3a4c71)=>{this[_0x24c7('0x4d')](_0x3a4c71,_0x24c7('0x48'),()=>{this[_0x24c7('0x19')](_0x3a4c71);});}),this[_0x24c7('0x4d')](_0x24a06d,_0x24c7('0x28'),(_0x504fbe,_0x20cc5e)=>{_0x20cc5e[_0x24c7('0x2d')][_0x24c7('0x31')](_0x24c7('0x1e'))&&this[_0x24c7('0x9')](_0x20cc5e[_0x24c7('0x2d')][_0x24c7('0x36')](_0x24c7('0x1e')));}),window[_0x24c7('0x15')](_0x24c7('0x58'),this[_0x24c7('0x39')]),this[_0x24c7('0x4b')]();}['setActiveAnnotation'](_0xf6cfb2){if(_0xf6cfb2===this[_0x24c7('0x4c')])return;const _0x70885b=this[_0x24c7('0x29')][_0x24c7('0x2d')][_0x24c7('0x36')](_0x556d9c);if(_0x70885b['refresh']({'blurredAnnotation':this[_0x24c7('0x4c')],'activatedAnnotation':_0xf6cfb2,'disableAnimationOnActivatedAnnotation':!0x0}),_0xf6cfb2)_0x70885b[_0x24c7('0x3c')](_0xf6cfb2)?this['_showBalloon'](_0xf6cfb2):this['_hideBalloon']();else this['_hideBalloon']();this[_0x24c7('0x4c')]=_0xf6cfb2;}[_0x24c7('0x34')](){if(!this[_0x24c7('0x59')])throw new _0x5ca631(_0x24c7('0x3f'),this);this[_0x24c7('0x32')](null);const _0x4a17ad=this[_0x24c7('0x29')]['plugins'][_0x24c7('0x36')](_0x556d9c);this[_0x24c7('0x16')](),Array[_0x24c7('0x57')](this[_0x24c7('0x49')][_0x24c7('0x45')](),_0x4e9760=>_0x4e9760[_0x24c7('0x22')]()),this[_0x24c7('0x49')][_0x24c7('0xc')](),_0x4a17ad[_0x24c7('0x5a')](this[_0x24c7('0x1f')]),this[_0x24c7('0x4a')](),this[_0x24c7('0x11')][_0x24c7('0x4a')](),this[_0x24c7('0x29')]instanceof _0x1d37c0&&this[_0x24c7('0x4a')](this['context'][_0x24c7('0x35')]);for(const _0x220595 of Array[_0x24c7('0x57')](this[_0x24c7('0x1d')]))this[_0x24c7('0x9')](_0x220595);window[_0x24c7('0x5b')](_0x24c7('0x58'),this['_refreshPositioningDebounced']),this[_0x24c7('0x39')]['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this[_0x24c7('0x1f')]=null;}[_0x24c7('0x22')](){this[_0x24c7('0x59')]&&this[_0x24c7('0x34')](),this[_0x24c7('0x2f')][_0x24c7('0x3e')]();}[_0x24c7('0x19')](_0x1e2653){const _0x3e6ed3=_0x1e2653[_0x24c7('0x2d')][_0x24c7('0x36')](_0x15ae61),_0x7d87e8=this[_0x24c7('0x29')][_0x24c7('0x2d')][_0x24c7('0x36')](_0x556d9c),_0x4a8ec8=this[_0x24c7('0x1f')],_0x4718ff=this['balloonPanelView'],_0x511293=()=>{const _0x3af5a8=_0x3e6ed3[_0x24c7('0x12')]({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this[_0x24c7('0x25')](_0x3af5a8),this[_0x24c7('0x32')](_0x3af5a8[0x0]||null);};this[_0x24c7('0x4d')](_0x3e6ed3,'refresh',_0x511293),this['listenTo'](_0x3e6ed3,_0x24c7('0x3a'),(_0x43bde6,{isAnnotationTracked:_0x2529d8})=>{this['activeAnnotation']&&_0x2529d8(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this[_0x24c7('0x32')](null));}),this[_0x24c7('0x4d')](_0x3e6ed3,_0x24c7('0x17'),()=>{this[_0x24c7('0x39')]();}),this['listenTo'](_0x4a8ec8,_0x24c7('0x3a'),_0x5e1deb=>{_0x3e6ed3[_0x24c7('0x2a')]()&&_0x5e1deb[_0x24c7('0x2c')]();},{'priority':_0x24c7('0x3b')}),this['listenTo'](this['_domEmitter'],_0x24c7('0x2b'),(_0x2ca0b6,_0x2e8cd6)=>{const _0x5472d0=_0x2e8cd6[_0x24c7('0xa')];_0x4718ff[_0x24c7('0x33')]&&_0x4718ff[_0x24c7('0xd')]['contains'](_0x5472d0)||_0x7d87e8[_0x24c7('0x23')][_0x24c7('0xd')][_0x24c7('0x1b')](_0x5472d0)||this[_0x24c7('0x4c')]&&_0x3e6ed3[_0x24c7('0x2a')]()&&(_0x511293(),_0x2ca0b6[_0x24c7('0x4e')]=!0x0);},{'priority':'high'}),this[_0x24c7('0x1d')]['add'](_0x3e6ed3);}[_0x24c7('0x9')](_0x44e755){_0x44e755&&(this[_0x24c7('0x4a')](_0x44e755),this[_0x24c7('0x1d')][_0x24c7('0x28')](_0x44e755));}['_setSelectedAnnotations'](_0x5d63f8){for(const _0x182bf3 of this['_selectedAnnotations'])_0x5d63f8['includes'](_0x182bf3)||this[_0x24c7('0xb')][_0x24c7('0x5')](_0x182bf3[_0x24c7('0x23')]);this[_0x24c7('0x13')]=_0x5d63f8;}['_refreshPositioning'](){const _0x162330=this[_0x24c7('0x5c')];this[_0x24c7('0x1f')]['refreshPositioning'](),_0x162330[_0x24c7('0x33')]&&this[_0x24c7('0x51')]();}[_0x24c7('0x5d')](_0x6069da){if(this[_0x24c7('0xb')]['has'](_0x6069da[_0x24c7('0x23')]))return;const _0x19e5e4=this[_0x24c7('0x5c')][_0x24c7('0x4f')]['first'];_0x19e5e4!==_0x6069da['view']?(_0x19e5e4&&this['_detachListeners'](_0x19e5e4),this[_0x24c7('0x55')](_0x6069da[_0x24c7('0x23')]),this['balloonPanelView']['content'][_0x24c7('0xc')](),this['balloonPanelView'][_0x24c7('0x4f')][_0x24c7('0x21')](_0x6069da[_0x24c7('0x23')]),this['_updateBalloonPosition']()):this[_0x24c7('0x51')]();}['_updateBalloonPosition'](){const _0x5a7834=this[_0x24c7('0x5c')][_0x24c7('0x4f')][_0x24c7('0x24')],_0x50c7cd=_0x5a7834&&this[_0x24c7('0x1f')]['getByView'](_0x5a7834);if(!_0x50c7cd||!this[_0x24c7('0x49')]['has'](_0x50c7cd))return;const _0x4cc4f4=this[_0x24c7('0x49')][_0x24c7('0x36')](_0x50c7cd)[_0x24c7('0xd')],_0x3e8efe=function(){const _0x1d2ea7=_0x514cff['defaultPositions'];return[_0x1d2ea7[_0x24c7('0x14')],_0x1d2ea7['northArrowSouthEast'],_0x1d2ea7['southArrowNorth'],_0x1d2ea7[_0x24c7('0x0')],_0x1d2ea7['southArrowNorthWest'],_0x1d2ea7[_0x24c7('0x46')]];}();this[_0x24c7('0x5c')][_0x24c7('0x4')]({'target':_0x4cc4f4,'positions':_0x3e8efe});}[_0x24c7('0x16')](){const _0x111114=this[_0x24c7('0x5c')],_0x15bb1e=_0x111114[_0x24c7('0x4f')]['first'];_0x15bb1e&&(this[_0x24c7('0x1a')](_0x15bb1e),_0x111114[_0x24c7('0x38')](),_0x111114['content'][_0x24c7('0xc')]());}[_0x24c7('0x55')](_0x1523c1){this['listenTo'](_0x1523c1,_0x24c7('0x54'),()=>this[_0x24c7('0x51')]()),this[_0x24c7('0x4d')](_0x1523c1,_0x24c7('0x1'),(_0x344d04,_0x283991)=>{this[_0x24c7('0xb')]['add'](_0x1523c1),this[_0x24c7('0x16')](),_0x283991();});}[_0x24c7('0x1a')](_0x3016d6){this[_0x24c7('0x4a')](_0x3016d6);}}
|
|
23
|
+
const _0x44d6=['first','southArrowNorthWest','_setSelectedAnnotations','register','activeAnnotation','_attachToContainer','annotations','_annotationToNarrowView','_refreshPositioningDebounced','getSidebarItemView','has','keyCode','_hideBalloon','_detachFromContainer','northArrowSouth','refresh','bind','high','set','narrowsidebar-attach-already-attached','cancel','rearrange','attach','narrowsidebar-detach-not-attached','preventClosingBalloon','element','_annotations','detach','resize','focusableElements','clear','annotationType','plugins','southArrowNorthEast','isAttached','refreshPositioning','stop','get','remove','_updateBalloonPosition','stopPropagation','addAnnotation','isDirty','narrowSidebar','find','pin','change:container','delete','locale','from','content','_detachListeners','destroy','listenTo','blur','getByView','defaultPositions','mousedown','context','attachToDom','_domEmitter','esc','type','ck-sidebar--narrow','contains','editors','preventDefault','_attachListeners','_integrateWithEditorAnnotations','detachFromDom','number','_destroyEditorAnnotationsIntegration','southArrowNorth','_manuallyClosedAnnotationViews','northArrowSouthWest','target','_editorAnnotations','_refreshPositioning','balloonPanelView','Esc','length','addEventListener','_selectedAnnotations','stopListening','pluginName','isVisible','ready','removeEventListener','view','bodyCollection','getOrderedSelectedAnnotations','EditorAnnotations','northArrowSouthEast','set:container','uiUpdate','setActiveAnnotation','add','focus','_showBalloon','hasDomSelection'];(function(_0x5931c4,_0x44d653){const _0x15d456=function(_0x42a41f){while(--_0x42a41f){_0x5931c4['push'](_0x5931c4['shift']());}};_0x15d456(++_0x44d653);}(_0x44d6,0x1db));const _0x15d4=function(_0x5931c4,_0x44d653){_0x5931c4=_0x5931c4-0x0;let _0x15d456=_0x44d6[_0x5931c4];return _0x15d456;};import{ContextPlugin as _0x25a097,Context as _0x3cad89}from'ckeditor5/src/core';import _0x51349b from'./annotationsuis';import _0x15509c from'./sidebar';import _0x29dc31 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4c17b9,BodyCollection as _0x4530b0}from'ckeditor5/src/ui';import{CKEditorError as _0x4ab20b,DomEmitterMixin as _0x509011,keyCodes as _0x284216,Collection as _0x3a54a6}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1e66c8}from'lodash-es';import _0x14cf2b from'./editorannotations';export default class s extends _0x25a097{static get['requires'](){return[_0x15509c,_0x51349b];}static get[_0x15d4('0x9')](){return'NarrowSidebar';}constructor(_0x423bc6){super(_0x423bc6),this[_0x15d4('0x3b')]=!0x1,this[_0x15d4('0x62')]=new Set(),this[_0x15d4('0x55')]=Object['create'](_0x509011),this[_0x15d4('0x20')]=new Map(),this['set'](_0x15d4('0x1d'),null),this[_0x15d4('0x1f')]=null,this[_0x15d4('0x7')]=[],this['_editorAnnotations']=new _0x3a54a6(),this[_0x15d4('0x21')]=_0x1e66c8(()=>{this[_0x15d4('0x2')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x15d4('0x53')][_0x15d4('0x39')][_0x15d4('0x3e')](_0x51349b)[_0x15d4('0x1c')](_0x15d4('0x44'),this),this[_0x15d4('0xe')]=new _0x4530b0(this[_0x15d4('0x53')]['locale']),this[_0x15d4('0x3')]=new _0x4c17b9(this[_0x15d4('0x53')][_0x15d4('0x49')]),this[_0x15d4('0xe')][_0x15d4('0x54')](),this[_0x15d4('0xe')]['add'](this[_0x15d4('0x3')]);}[_0x15d4('0x2f')](_0x4f657b){this[_0x15d4('0x1f')]=_0x4f657b;const _0x3eceef=this[_0x15d4('0x53')][_0x15d4('0x39')][_0x15d4('0x3e')](_0x15509c),_0x93ed8f=this['balloonPanelView'];if(_0x3eceef[_0x15d4('0x33')]=_0x4f657b,this[_0x15d4('0x3b')])throw new _0x4ab20b(_0x15d4('0x2c'),this);this[_0x15d4('0x3b')]=!0x0,this[_0x15d4('0x4e')](_0x3eceef,_0x15d4('0x12'),()=>{this[_0x15d4('0x34')](),this[_0x15d4('0x4e')](_0x3eceef,_0x15d4('0x47'),_0x45f5b1=>{_0x45f5b1['off'](),this[_0x15d4('0x2f')](_0x4f657b);});}),_0x3eceef[_0x15d4('0x1e')]({'viewClass':_0x15d4('0x58'),'spaceBetweenItems':0x5});const _0x430147=_0x54ad0d=>{const _0x29e1f9=new _0x29dc31(this[_0x15d4('0x53')]['locale']);_0x3eceef[_0x15d4('0x42')](_0x54ad0d,_0x29e1f9),this['_annotationToNarrowView'][_0x15d4('0x2b')](_0x54ad0d,_0x29e1f9),_0x29e1f9[_0x15d4('0x29')](_0x15d4('0x43'),_0x15d4('0x38'),_0x15d4('0x5f'))['to'](_0x54ad0d['view'],_0x15d4('0x43'),_0x15d4('0x57'),_0x15d4('0x5')),_0x29e1f9['on']('execute',()=>{this[_0x15d4('0x62')][_0x15d4('0x37')](),_0x93ed8f[_0x15d4('0x4b')][_0x15d4('0x19')]!==_0x54ad0d['view']?(this[_0x15d4('0x17')](_0x54ad0d),_0x54ad0d[_0x15d4('0xd')][_0x15d4('0x32')][_0x15d4('0x16')](),this['setActiveAnnotation'](_0x54ad0d)):this['setActiveAnnotation'](null);});};for(const _0x179ff1 of _0x4f657b)_0x430147(_0x179ff1);this[_0x15d4('0x4e')](_0x4f657b,_0x15d4('0x15'),(_0x196dd2,_0x3bf9e9)=>{_0x430147(_0x3bf9e9);}),this[_0x15d4('0x4e')](_0x4f657b,'remove',(_0x750bd1,_0x26d431,_0x543e4b)=>{this[_0x15d4('0x20')][_0x15d4('0x3e')](_0x26d431)[_0x15d4('0x4d')](),this[_0x15d4('0x20')][_0x15d4('0x48')](_0x26d431),_0x3eceef[_0x15d4('0x2e')]({'removedAnnotation':_0x26d431,'previousAnnotation':_0x4f657b[_0x15d4('0x3e')](_0x543e4b-0x1),'nextAnnotation':_0x4f657b[_0x15d4('0x3e')](_0x543e4b+0x1)}),_0x26d431===this['activeAnnotation']&&this[_0x15d4('0x14')](null);},{'priority':'low'}),this[_0x15d4('0x4e')](_0x4f657b,_0x15d4('0x16'),(_0x11aa44,_0x5e103f)=>{this['setActiveAnnotation'](_0x5e103f);}),this['listenTo'](_0x4f657b,_0x15d4('0x4f'),()=>{this[_0x15d4('0x14')](null);}),this[_0x15d4('0x55')]['listenTo'](document,'keydown',(_0x2ce6d6,_0x1e1392)=>{_0x1e1392[_0x15d4('0x24')]===_0x284216[_0x15d4('0x56')]&&_0x93ed8f[_0x15d4('0xa')]&&(this['_manuallyClosedAnnotationViews']['add'](_0x93ed8f['content']['first']),this[_0x15d4('0x25')](),_0x1e1392[_0x15d4('0x41')](),_0x1e1392[_0x15d4('0x5b')]());}),this[_0x15d4('0x55')][_0x15d4('0x4e')](document,'mousedown',(_0x37b5e3,_0x180d88)=>{const _0xd76e20=_0x180d88[_0x15d4('0x0')];_0x93ed8f[_0x15d4('0xa')]&&_0x93ed8f['element'][_0x15d4('0x59')](_0xd76e20)||_0x3eceef[_0x15d4('0xd')][_0x15d4('0x32')]['contains'](_0xd76e20)||_0x37b5e3[_0x15d4('0x31')]||this['activeAnnotation']&&this[_0x15d4('0x1d')][_0x15d4('0x36')][_0x15d4('0x45')](_0x32ab72=>_0x32ab72[_0x15d4('0x59')](_0xd76e20))||(this[_0x15d4('0x62')][_0x15d4('0x37')](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x40de4d=this[_0x15d4('0x53')]instanceof _0x3cad89?this[_0x15d4('0x53')][_0x15d4('0x5a')]:new _0x3a54a6([this[_0x15d4('0x53')]]);for(const _0x250f5c of _0x40de4d)this[_0x15d4('0x5d')](_0x250f5c);this[_0x15d4('0x4e')](_0x40de4d,_0x15d4('0x15'),(_0x56d290,_0x292b08)=>{this[_0x15d4('0x4e')](_0x292b08,_0x15d4('0xb'),()=>{this[_0x15d4('0x5d')](_0x292b08);});}),this[_0x15d4('0x4e')](_0x40de4d,'remove',(_0x171f94,_0x4b3d87)=>{_0x4b3d87[_0x15d4('0x39')][_0x15d4('0x23')](_0x15d4('0x10'))&&this['_destroyEditorAnnotationsIntegration'](_0x4b3d87[_0x15d4('0x39')]['get'](_0x15d4('0x10')));}),window[_0x15d4('0x6')](_0x15d4('0x35'),this[_0x15d4('0x21')]),this['_refreshPositioning']();}[_0x15d4('0x14')](_0x5915bd){if(_0x5915bd===this[_0x15d4('0x1d')])return;const _0x107ad9=this[_0x15d4('0x53')][_0x15d4('0x39')][_0x15d4('0x3e')](_0x15509c);if(_0x107ad9[_0x15d4('0x28')]({'blurredAnnotation':this[_0x15d4('0x1d')],'activatedAnnotation':_0x5915bd,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5915bd)_0x107ad9[_0x15d4('0x22')](_0x5915bd)?this[_0x15d4('0x17')](_0x5915bd):this['_hideBalloon']();else this[_0x15d4('0x25')]();this[_0x15d4('0x1d')]=_0x5915bd;}[_0x15d4('0x34')](){if(!this[_0x15d4('0x3b')])throw new _0x4ab20b(_0x15d4('0x30'),this);this[_0x15d4('0x14')](null);const _0x3363fb=this[_0x15d4('0x53')][_0x15d4('0x39')]['get'](_0x15509c);this[_0x15d4('0x25')](),Array[_0x15d4('0x4a')](this[_0x15d4('0x20')]['values'](),_0x511b3a=>_0x511b3a[_0x15d4('0x4d')]()),this[_0x15d4('0x20')]['clear'](),_0x3363fb[_0x15d4('0x26')](this[_0x15d4('0x1f')]),this[_0x15d4('0x8')](),this[_0x15d4('0x55')][_0x15d4('0x8')](),this['context']instanceof _0x3cad89&&this[_0x15d4('0x8')](this['context'][_0x15d4('0x5a')]);for(const _0x33f178 of Array[_0x15d4('0x4a')](this[_0x15d4('0x1')]))this[_0x15d4('0x60')](_0x33f178);window[_0x15d4('0xc')](_0x15d4('0x35'),this[_0x15d4('0x21')]),this[_0x15d4('0x21')][_0x15d4('0x2d')](),this[_0x15d4('0x7')]=[],this['isAttached']=!0x1,this[_0x15d4('0x1f')]=null;}[_0x15d4('0x4d')](){this[_0x15d4('0x3b')]&&this[_0x15d4('0x34')](),this[_0x15d4('0xe')][_0x15d4('0x5e')]();}['_integrateWithEditorAnnotations'](_0x111c80){const _0x111b40=_0x111c80[_0x15d4('0x39')][_0x15d4('0x3e')](_0x14cf2b),_0x20330d=this[_0x15d4('0x53')]['plugins'][_0x15d4('0x3e')](_0x15509c),_0x5414dd=this[_0x15d4('0x1f')],_0x52d4b8=this[_0x15d4('0x3')],_0x21201f=()=>{const _0x29f8ba=_0x111b40[_0x15d4('0xf')]({'annotations':this[_0x15d4('0x1f')],'activeAnnotation':this['activeAnnotation']});this[_0x15d4('0x1b')](_0x29f8ba),this[_0x15d4('0x14')](_0x29f8ba[0x0]||null);};this[_0x15d4('0x4e')](_0x111b40,_0x15d4('0x28'),_0x21201f),this[_0x15d4('0x4e')](_0x111b40,'blur',(_0x1122e9,{isAnnotationTracked:_0x239393})=>{this[_0x15d4('0x1d')]&&_0x239393(this[_0x15d4('0x1d')])&&(this[_0x15d4('0x1b')]([]),this[_0x15d4('0x14')](null));}),this[_0x15d4('0x4e')](_0x111b40,_0x15d4('0x13'),()=>{this[_0x15d4('0x21')]();}),this[_0x15d4('0x4e')](_0x5414dd,'blur',_0x44249a=>{_0x111b40[_0x15d4('0x18')]()&&_0x44249a[_0x15d4('0x3d')]();},{'priority':_0x15d4('0x2a')}),this['listenTo'](this[_0x15d4('0x55')],_0x15d4('0x52'),(_0x387e76,_0x21c902)=>{const _0x368531=_0x21c902[_0x15d4('0x0')];_0x52d4b8['isVisible']&&_0x52d4b8[_0x15d4('0x32')][_0x15d4('0x59')](_0x368531)||_0x20330d[_0x15d4('0xd')]['element'][_0x15d4('0x59')](_0x368531)||this[_0x15d4('0x1d')]&&_0x111b40['hasDomSelection']()&&(_0x21201f(),_0x387e76[_0x15d4('0x31')]=!0x0);},{'priority':'high'}),this[_0x15d4('0x1')][_0x15d4('0x15')](_0x111b40);}[_0x15d4('0x60')](_0x2323ce){_0x2323ce&&(this['stopListening'](_0x2323ce),this[_0x15d4('0x1')][_0x15d4('0x3f')](_0x2323ce));}[_0x15d4('0x1b')](_0x2d67bf){for(const _0x3910fc of this[_0x15d4('0x7')])_0x2d67bf['includes'](_0x3910fc)||this[_0x15d4('0x62')][_0x15d4('0x48')](_0x3910fc[_0x15d4('0xd')]);this[_0x15d4('0x7')]=_0x2d67bf;}['_refreshPositioning'](){const _0x5654b4=this[_0x15d4('0x3')];this[_0x15d4('0x1f')][_0x15d4('0x3c')](),_0x5654b4['isVisible']&&this[_0x15d4('0x40')]();}[_0x15d4('0x17')](_0x127878){if(this[_0x15d4('0x62')][_0x15d4('0x23')](_0x127878[_0x15d4('0xd')]))return;const _0x46880c=this[_0x15d4('0x3')][_0x15d4('0x4b')][_0x15d4('0x19')];_0x46880c!==_0x127878[_0x15d4('0xd')]?(_0x46880c&&this['_detachListeners'](_0x46880c),this['_attachListeners'](_0x127878['view']),this['balloonPanelView'][_0x15d4('0x4b')][_0x15d4('0x37')](),this[_0x15d4('0x3')][_0x15d4('0x4b')]['add'](_0x127878[_0x15d4('0xd')]),this[_0x15d4('0x40')]()):this['_updateBalloonPosition']();}[_0x15d4('0x40')](){const _0x5b8f15=this[_0x15d4('0x3')][_0x15d4('0x4b')][_0x15d4('0x19')],_0x2ab8da=_0x5b8f15&&this['annotations'][_0x15d4('0x50')](_0x5b8f15);if(!_0x2ab8da||!this[_0x15d4('0x20')][_0x15d4('0x23')](_0x2ab8da))return;const _0x41d539=this['_annotationToNarrowView'][_0x15d4('0x3e')](_0x2ab8da)[_0x15d4('0x32')],_0x16b1ff=function(){const _0x2f668b=_0x4c17b9[_0x15d4('0x51')];return[_0x2f668b[_0x15d4('0x3a')],_0x2f668b[_0x15d4('0x11')],_0x2f668b[_0x15d4('0x61')],_0x2f668b[_0x15d4('0x27')],_0x2f668b[_0x15d4('0x1a')],_0x2f668b[_0x15d4('0x63')]];}();this[_0x15d4('0x3')][_0x15d4('0x46')]({'target':_0x41d539,'positions':_0x16b1ff});}[_0x15d4('0x25')](){const _0x3d7537=this['balloonPanelView'],_0x55b327=_0x3d7537[_0x15d4('0x4b')][_0x15d4('0x19')];_0x55b327&&(this[_0x15d4('0x4c')](_0x55b327),_0x3d7537['unpin'](),_0x3d7537['content'][_0x15d4('0x37')]());}[_0x15d4('0x5c')](_0x4d3cfe){this[_0x15d4('0x4e')](_0x4d3cfe,'change:height',()=>this[_0x15d4('0x40')]()),this['listenTo'](_0x4d3cfe,_0x15d4('0x4'),(_0x31b3b0,_0x32cc93)=>{this[_0x15d4('0x62')]['add'](_0x4d3cfe),this['_hideBalloon'](),_0x32cc93();});}['_detachListeners'](_0x49b5af){this['stopListening'](_0x49b5af);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28e1=['clear','_recalculateBuffer','updateHeight','change:targetRect','length','_attachToContainer','_getMaxAvailableTop','max','stopListening','_getItemAfter','isAnimationDisabled','sidebar-attachtocontainer-missing-container','rearrange','_alignForTopChange','sidebar.preventScrollOutOfView','element','appendChild','_destroySidebarItemView','context','targetRect','last','_alignForBottomChange','destroy','addAnnotation','isActive','remove','config','_spaceBetweenItems','bottom','unbind','_alignToTargetRect','sidebar.container','nodeType','_lastItem','_getTargetTop','push','sidebar-setcontainer-invalid-element','_sidebarItemViewToAnnotation','_detachFromContainer','change:top','_setItemTop','top','_annotationToSidebarItemView','add','target','object','minHeight','locale','_alignBeforeItem','_createSidebarView','setContainer','getIndex','_recalculate','class','set','_activeAnnotation','delete','_alignAfterItem','content','bind','view','_annotations','_updateLastItem','_getItemBefore','getSidebarItemView','container','_targetTop','listenTo','get','render','list'];(function(_0xd57b71,_0x28e135){const _0x18153f=function(_0xced1cf){while(--_0xced1cf){_0xd57b71['push'](_0xd57b71['shift']());}};_0x18153f(++_0x28e135);}(_0x28e1,0x9c));const _0x1815=function(_0xd57b71,_0x28e135){_0xd57b71=_0xd57b71-0x0;let _0x18153f=_0x28e1[_0xd57b71];return _0x18153f;};import{ContextPlugin as _0x3c7be1}from'ckeditor5/src/core';import{Rect as _0x2650e0,CKEditorError as _0x3c19b5}from'ckeditor5/src/utils';import _0x62ea91 from'./view/sidebarview';import _0x442aee from'./view/sidebaritemview';export default class z extends _0x3c7be1{static get['pluginName'](){return'Sidebar';}constructor(_0x43228c){super(_0x43228c),this['set'](_0x1815('0x13'),void 0x0),this[_0x1815('0x2e')]=this[_0x1815('0x23')](),this[_0x1815('0x28')](_0x1815('0x33'),null),this[_0x1815('0xd')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x1815('0x1c')]=new Map(),this[_0x1815('0x4')][_0x1815('0xc')]['define'](_0x1815('0x0'),!0x1),this[_0x1815('0x2f')]=null,this[_0x1815('0x29')]=null,this[_0x1815('0x3a')]=[];}['init'](){const _0x5e645b=this['context'][_0x1815('0xc')]['get'](_0x1815('0x11'));_0x5e645b&&this[_0x1815('0x24')](_0x5e645b);}['setContainer'](_0x1d4237){if(!y(_0x1d4237))throw new _0x3c19b5(_0x1815('0x16'));this[_0x1815('0x33')]=_0x1d4237;}[_0x1815('0x3e')]({viewClass:_0x16b114='',spaceBetweenItems:_0x5e2181=0x19}={}){if(!y(this['container']))throw new _0x3c19b5(_0x1815('0x44'),this);this[_0x1815('0x33')][_0x1815('0x2')](this[_0x1815('0x2e')][_0x1815('0x1')]),this[_0x1815('0x2e')][_0x1815('0x27')]=_0x16b114,this[_0x1815('0xd')]=_0x5e2181;}[_0x1815('0x45')]({removedAnnotation:_0x4b7d87,previousAnnotation:_0x5d6912,nextAnnotation:_0x5395be}){const _0x313e48=this[_0x1815('0x32')](_0x4b7d87);this['view'][_0x1815('0x38')][_0x1815('0xb')](_0x313e48),this[_0x1815('0x3')](_0x4b7d87),_0x5d6912&&this[_0x1815('0x10')](this[_0x1815('0x32')](_0x5d6912)),_0x5395be&&this[_0x1815('0x10')](this[_0x1815('0x32')](_0x5395be)),this[_0x1815('0x30')]();}['refresh']({blurredAnnotation:_0x25199c,activatedAnnotation:_0x1271c7,disableAnimationOnActivatedAnnotation:_0x247894}){if(this[_0x1815('0x29')]=_0x1271c7,_0x25199c){_0x25199c[_0x1815('0xa')]=!0x1;const _0x3d95c9=this[_0x1815('0x32')](_0x25199c);_0x3d95c9&&_0x247894&&(_0x3d95c9[_0x1815('0x43')]=!0x1);}if(_0x1271c7){const _0x5c9d3c=this[_0x1815('0x32')](_0x1271c7);_0x5c9d3c&&(_0x1271c7[_0x1815('0xa')]=!0x0,_0x247894&&(_0x5c9d3c[_0x1815('0x43')]=!0x0,_0x5c9d3c[_0x1815('0x1b')]+=0x1),this['_alignToTargetRect'](_0x5c9d3c));}}[_0x1815('0x18')](_0x960c30){if(this[_0x1815('0x2e')][_0x1815('0x1')][_0x1815('0xb')](),_0x960c30)for(const _0x38d22e of _0x960c30)this[_0x1815('0x3')](_0x38d22e);this[_0x1815('0x2e')][_0x1815('0x38')][_0x1815('0x39')](),this[_0x1815('0x2e')][_0x1815('0x27')]='',this[_0x1815('0x13')]=null;}[_0x1815('0x9')](_0x5cc5ef,_0x5d7377){_0x5d7377||(_0x5d7377=_0x5cc5ef[_0x1815('0x2e')]);const _0x5c3ace=new _0x442aee(this['context'][_0x1815('0x21')]);this[_0x1815('0x17')][_0x1815('0x28')](_0x5c3ace,_0x5cc5ef),this['_annotationToSidebarItemView'][_0x1815('0x28')](_0x5cc5ef,_0x5c3ace),_0x5c3ace[_0x1815('0x2c')][_0x1815('0x1d')](_0x5d7377),this['listenTo'](_0x5cc5ef[_0x1815('0x2e')],_0x1815('0x3c'),(_0x373b95,_0x2e0e93,_0x3efd50)=>{const _0x190e54=this['_getTargetTop'](_0x5cc5ef,_0x3efd50);_0x5c3ace[_0x1815('0x34')]!=_0x190e54&&(_0x5c3ace[_0x1815('0x34')]=_0x190e54,this[_0x1815('0x1a')](_0x5c3ace,_0x190e54));}),this[_0x1815('0x35')](_0x5c3ace,_0x1815('0x19'),()=>{this['_recalculate'](_0x5c3ace,_0x1815('0x1b'));}),this['listenTo'](_0x5c3ace,'change:bottom',()=>{this[_0x1815('0x26')](_0x5c3ace,_0x1815('0xe'));}),this[_0x1815('0x10')](_0x5c3ace);const _0xb2d565=this[_0x1815('0x31')](_0x5c3ace);if(_0xb2d565)this['_alignAfterItem'](_0xb2d565,_0x5c3ace)||this[_0x1815('0x10')](_0x5c3ace);else this[_0x1815('0x10')](_0x5c3ace);return this[_0x1815('0x30')](),this[_0x1815('0x2e')]['list']['add'](_0x5c3ace),_0x5c3ace;}[_0x1815('0x46')](_0x1d3cef){if(!_0x1d3cef[_0x1815('0x2c')][_0x1815('0x3d')])return;const _0x5e63ad=this[_0x1815('0x31')](_0x1d3cef);if(!_0x5e63ad)return;const _0x12bac2=this[_0x1815('0x17')][_0x1815('0x36')](_0x5e63ad),_0x263fc7=this['_activeAnnotation'];_0x263fc7&&_0x263fc7===_0x12bac2?this[_0x1815('0x2b')](_0x5e63ad,_0x1d3cef):this[_0x1815('0x22')](_0x1d3cef,_0x5e63ad);}[_0x1815('0x7')](_0x56ae24){if(!_0x56ae24[_0x1815('0x2c')][_0x1815('0x3d')])return;const _0x1c8813=this[_0x1815('0x42')](_0x56ae24);if(!_0x1c8813)return;const _0x22cee=this[_0x1815('0x17')][_0x1815('0x36')](_0x1c8813),_0x1e21dc=this[_0x1815('0x4')]['config'][_0x1815('0x36')](_0x1815('0x0')),_0x38c8a8=this[_0x1815('0x29')];_0x38c8a8&&_0x38c8a8===_0x22cee&&_0x1e21dc?(this['_alignBeforeItem'](_0x1c8813,_0x56ae24),this[_0x1815('0x2b')](_0x56ae24,_0x1c8813)):_0x38c8a8&&_0x38c8a8===_0x22cee?this['_alignBeforeItem'](_0x1c8813,_0x56ae24):this['_alignAfterItem'](_0x56ae24,_0x1c8813);}[_0x1815('0x26')](_0x2c7207,_0x4e080f){0x0===this[_0x1815('0x3a')][_0x1815('0x3d')]&&setTimeout(()=>{for(const {sidebarItemView:_0x275c83,changedProp:_0x37e0b8}of this['_recalculateBuffer'])_0x1815('0x1b')===_0x37e0b8?this['_alignForTopChange'](_0x275c83):this['_alignForBottomChange'](_0x275c83);this[_0x1815('0x3a')]=[];},0xa),this[_0x1815('0x3a')][_0x1815('0x15')]({'sidebarItemView':_0x2c7207,'changedProp':_0x4e080f});}['getSidebarItemView'](_0x14aa41){return this['_annotationToSidebarItemView'][_0x1815('0x36')](_0x14aa41);}[_0x1815('0x8')](){this[_0x1815('0x41')](),this[_0x1815('0x2e')][_0x1815('0x8')]();}[_0x1815('0x3')](_0x1daccf){const _0x491956=this[_0x1815('0x32')](_0x1daccf);this[_0x1815('0x41')](_0x491956),this['stopListening'](_0x1daccf[_0x1815('0x2e')]),_0x491956[_0x1815('0x8')](),this['_annotationToSidebarItemView']['delete'](_0x1daccf),this[_0x1815('0x17')][_0x1815('0x2a')](_0x491956);}[_0x1815('0x23')](){const _0x188677=new _0x62ea91(this[_0x1815('0x4')]['locale']);return _0x188677[_0x1815('0x37')](),this['on']('change:_lastItem',(_0x1dbe27,_0x226013,_0x131bec,_0x34a732)=>{_0x34a732&&_0x188677[_0x1815('0xf')](_0x1815('0x20')),_0x131bec?_0x188677[_0x1815('0x2d')](_0x1815('0x20'))['to'](_0x131bec,_0x1815('0xe')):_0x188677[_0x1815('0x20')]=null;}),_0x188677;}[_0x1815('0x30')](){var _0x402a3e;this[_0x1815('0x13')]=(null===(_0x402a3e=this['_annotations'])||void 0x0===_0x402a3e?void 0x0:_0x402a3e[_0x1815('0x6')])?this[_0x1815('0x32')](this[_0x1815('0x2f')][_0x1815('0x6')]):null;}['_getItemBefore'](_0xa14e37){var _0x142625;const _0x333943=this[_0x1815('0x17')][_0x1815('0x36')](_0xa14e37),_0x583bb9=_0x333943&&(null===(_0x142625=this[_0x1815('0x2f')])||void 0x0===_0x142625?void 0x0:_0x142625['get'](this[_0x1815('0x2f')][_0x1815('0x25')](_0x333943)-0x1));return _0x583bb9&&this[_0x1815('0x32')](_0x583bb9)||null;}[_0x1815('0x42')](_0xc80535){var _0x885487;const _0xb8e574=this[_0x1815('0x17')][_0x1815('0x36')](_0xc80535),_0x22e3db=_0xb8e574&&(null===(_0x885487=this[_0x1815('0x2f')])||void 0x0===_0x885487?void 0x0:_0x885487[_0x1815('0x36')](this['_annotations']['getIndex'](_0xb8e574)+0x1));return _0x22e3db&&this['getSidebarItemView'](_0x22e3db)||null;}[_0x1815('0x22')](_0x44e020,_0x5ac574){_0x44e020[_0x1815('0x3b')]();const _0x28cf5f=H(_0x5ac574[_0x1815('0xe')]+this[_0x1815('0xd')],_0x44e020[_0x1815('0x1b')]);return!!_0x28cf5f&&(this[_0x1815('0x1a')](_0x5ac574,_0x5ac574[_0x1815('0x1b')]-_0x28cf5f),!0x0);}[_0x1815('0x2b')](_0x5d901b,_0x540f08){_0x5d901b[_0x1815('0x3b')]();const _0x186830=H(_0x5d901b['bottom']+this[_0x1815('0xd')],_0x540f08[_0x1815('0x1b')]);return!!_0x186830&&(this[_0x1815('0x1a')](_0x540f08,_0x540f08['top']+_0x186830,!0x1),!0x0);}[_0x1815('0x10')](_0x40e003){const _0xb05bbc=this[_0x1815('0x17')][_0x1815('0x36')](_0x40e003);if(!_0xb05bbc||!_0xb05bbc[_0x1815('0x1e')]||!_0xb05bbc[_0x1815('0x5')])return;const _0xa9abcb=this['_getTargetTop'](_0xb05bbc,_0xb05bbc['targetRect']);this[_0x1815('0x1a')](_0x40e003,_0xa9abcb);}[_0x1815('0x14')](_0x305354,_0x474034){if(null===_0x474034)return 0x0;if(_0x305354['target']instanceof _0x2650e0)return _0x474034[_0x1815('0x1b')];{const _0x25ab38=new _0x2650e0(this[_0x1815('0x2e')][_0x1815('0x1')])[_0x1815('0x1b')];return _0x474034[_0x1815('0x1b')]-_0x25ab38;}}[_0x1815('0x1a')](_0x23b7b6,_0x51f3f6,_0x162d60=this[_0x1815('0x4')][_0x1815('0xc')]['get'](_0x1815('0x0'))){_0x162d60&&(_0x51f3f6=Math[_0x1815('0x40')](_0x51f3f6,this[_0x1815('0x3f')](_0x23b7b6))),_0x23b7b6[_0x1815('0x1b')]=_0x51f3f6;}[_0x1815('0x3f')](_0x2d74c8){let _0x256a75=this[_0x1815('0x31')](_0x2d74c8),_0x39cdc1=0x0;for(;_0x256a75;)_0x256a75['updateHeight'](),_0x39cdc1+=this['_spaceBetweenItems']+_0x256a75['height'],_0x256a75=this[_0x1815('0x31')](_0x256a75);return _0x39cdc1;}}function H(_0x48c29f,_0x10fd4f){return Math[_0x1815('0x40')](_0x48c29f-_0x10fd4f,0x0);}function y(_0xeaaa14){return null!==_0xeaaa14&&_0x1815('0x1f')==typeof _0xeaaa14&&0x1===_0xeaaa14[_0x1815('0x12')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c3f=['bind','set','span','_badge','ck-annotation-counter','annotationType','add','bindTemplate','ck-annotation-counter__badge--','number','toString','children','ck-annotation-counter__badge--edit-mode','extendTemplate','...','counterView','isDirty'];(function(_0x2c5cfe,_0x5c3f8f){const _0x5679f3=function(_0x592530){while(--_0x592530){_0x2c5cfe['push'](_0x2c5cfe['shift']());}};_0x5679f3(++_0x5c3f8f);}(_0x5c3f,0x11e));const _0x5679=function(_0x2c5cfe,_0x5c3f8f){_0x2c5cfe=_0x2c5cfe-0x0;let _0x5679f3=_0x5c3f[_0x2c5cfe];return _0x5679f3;};import{ButtonView as _0x3839c6,View as _0x5f3461}from'ckeditor5/src/ui';import _0x41c5f0 from'../../../theme/icons/add-comment.svg';export default class D extends _0x3839c6{constructor(_0x568f64){super(_0x568f64);const _0x59e5da=this[_0x5679('0xa')];this[_0x5679('0x4')](_0x5679('0x2'),!0x1),this[_0x5679('0x4')](_0x5679('0xc'),0x0),this[_0x5679('0x3')]('_badge')['to'](this,_0x5679('0x2'),this,_0x5679('0xc'),(_0x55775d,_0x52c6eb)=>_0x55775d?_0x5679('0x0'):_0x52c6eb[_0x5679('0xd')]()),this['set'](_0x5679('0x8'),''),this['icon']=_0x41c5f0,this[_0x5679('0x10')]({'attributes':{'class':[_0x5679('0x7')]}}),this[_0x5679('0x1')]=new _0x5f3461(),this[_0x5679('0x1')]['setTemplate']({'tag':_0x5679('0x5'),'attributes':{'class':['ck-annotation-counter__badge',_0x59e5da['to'](_0x5679('0x8'),_0x2bb4ce=>_0x5679('0xb')+_0x2bb4ce),_0x59e5da['if']('isDirty',_0x5679('0xf'))]},'children':[{'text':_0x59e5da['to'](_0x5679('0x6'))}]}),this[_0x5679('0xe')][_0x5679('0x9')](this[_0x5679('0x1')]);}}
|