@ckeditor/ckeditor5-comments 38.0.0-rc.1 → 38.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +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": "38.0.
|
|
3
|
+
"version": "38.0.1",
|
|
4
4
|
"description": "Collaborative comments feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"postversion": "npm run build"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"ckeditor5": "^38.0.
|
|
49
|
-
"ckeditor5-collaboration": "^38.0.
|
|
48
|
+
"ckeditor5": "^38.0.1",
|
|
49
|
+
"ckeditor5-collaboration": "^38.0.1",
|
|
50
50
|
"lodash-es": "^4.17.11"
|
|
51
51
|
},
|
|
52
52
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12b6=['_assertCorrectTarget','_id','view','focusTracker','element','isArray','set','annotation-invalid-target','add','isVisible','stopListening','render','target','destroy','_target','every','length','targetRect','updateTargetRect','isActive','getClientRects','offsetParent','_type','clear','refreshVisibility','type','_getNormalizedTarget','focusableElements','filter','nodeType','object','function','item','mainView','remove'];(function(_0x5de36c,_0x12b680){const _0x49a0dc=function(_0x389b50){while(--_0x389b50){_0x5de36c['push'](_0x5de36c['shift']());}};_0x49a0dc(++_0x12b680);}(_0x12b6,0x1ee));const _0x49a0=function(_0x5de36c,_0x12b680){_0x5de36c=_0x5de36c-0x0;let _0x49a0dc=_0x12b6[_0x5de36c];return _0x49a0dc;};import{CKEditorError as _0x3a18d8,Rect as _0x3409ee,Collection as _0x52e967,ObservableMixin as _0x1c1938}from'ckeditor5/src/utils';export default class d extends _0x1c1938(){constructor({view:_0x3f9b37,target:_0x4df7d0,type:_0x212c57,isVisible:_0x1e54e1=!0x0}){super(),this[_0x49a0('0x21')]=_0x3f9b37,this[_0x49a0('0x21')][_0x49a0('0x0')]||this[_0x49a0('0x21')][_0x49a0('0x7')](),this[_0x49a0('0x12')]=_0x212c57,this[_0x49a0('0xa')]=_0x4df7d0,d[_0x49a0('0x1f')](this[_0x49a0('0x16')]()),this[_0x49a0('0x17')]=new _0x52e967([this['view']['element']],{'idProperty':_0x49a0('0x20')}),this['focusableElements']['on']('add',(_0x459142,_0x23f858)=>{this['view'][_0x49a0('0x22')][_0x49a0('0x4')](_0x23f858);}),this[_0x49a0('0x17')]['on'](_0x49a0('0x1e'),(_0x1d6f17,_0x19cf96)=>{this[_0x49a0('0x21')][_0x49a0('0x22')]['remove'](_0x19cf96);}),this[_0x49a0('0x2')](_0x49a0('0x5'),_0x1e54e1);}get[_0x49a0('0x15')](){return _0x49a0('0x1b')==typeof this[_0x49a0('0x12')]?this[_0x49a0('0x12')]():this[_0x49a0('0x12')];}get['innerView'](){return this['view'][_0x49a0('0x1d')];}get[_0x49a0('0x8')](){const _0x5ec695=this[_0x49a0('0x16')]();return d[_0x49a0('0x1f')](_0x5ec695),_0x5ec695;}get[_0x49a0('0xd')](){const _0x2df38e=this['target'];if(null===_0x2df38e)return null;if(_0x2df38e instanceof _0x3409ee)return _0x2df38e;const _0x41caf6=_0x2df38e[_0x49a0('0x18')](_0x5f08b3=>function(_0x22cad7){const _0x329101=_0x22cad7[_0x49a0('0x11')];if(_0x329101)return!0x0;const _0xa8d700=_0x22cad7[_0x49a0('0x10')]()[_0x49a0('0x1c')](0x0);return!!_0xa8d700;}(_0x5f08b3));return 0x0===_0x41caf6[_0x49a0('0xc')]?null:new _0x3409ee(_0x41caf6[0x0]['getClientRects']()[_0x49a0('0x1c')](0x0));}get[_0x49a0('0xf')](){return this[_0x49a0('0x21')]['isActive'];}set[_0x49a0('0xf')](_0x954b48){this[_0x49a0('0x21')]['isActive']=_0x954b48,this[_0x49a0('0x21')]['mainView'][_0x49a0('0xf')]=_0x954b48;}[_0x49a0('0xe')](){this[_0x49a0('0x21')][_0x49a0('0xd')]=this['targetRect'];}[_0x49a0('0x9')](){this[_0x49a0('0x17')][_0x49a0('0x6')](),this[_0x49a0('0x17')][_0x49a0('0x13')](),this[_0x49a0('0x6')]();}[_0x49a0('0x14')](){this[_0x49a0('0x5')]=!!this['targetRect'];}static[_0x49a0('0x1f')](_0x15f91b){if(!(null===_0x15f91b||_0x15f91b instanceof _0x3409ee||Array[_0x49a0('0x1')](_0x15f91b)&&_0x15f91b[_0x49a0('0xb')](_0x1456b4=>y(_0x1456b4))))throw new _0x3a18d8(_0x49a0('0x3'),null,{'target':_0x15f91b});}[_0x49a0('0x16')](){const _0x1b9c13=_0x49a0('0x1b')==typeof this[_0x49a0('0xa')]?this[_0x49a0('0xa')]():this['_target'];return y(_0x1b9c13)?[_0x1b9c13]:_0x1b9c13;}}function y(_0x5c4b6d){return null!==_0x5c4b6d&&_0x49a0('0x1a')==typeof _0x5c4b6d&&_0x49a0('0x19')in _0x5c4b6d&&0x1===_0x5c4b6d[_0x49a0('0x19')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1708=['has','top','getByView','updateTargetRect','delete','_focusTracker','change:isFocused','focusTracker','from','isFocused','add','listenTo','fire','stopListening','left','length','view','_viewToAnnotation','clear','destroy','_sort','blur','annotationcollection-not-existing-item','get','annotationcollection-duplicated-item','_innerViewToAnnotation','remove','innerView','set','targetRect','focusableElements','_getOrderInContent','getByInnerView'];(function(_0x314aaa,_0x170822){const _0x1eccc0=function(_0x5ab52d){while(--_0x5ab52d){_0x314aaa['push'](_0x314aaa['shift']());}};_0x1eccc0(++_0x170822);}(_0x1708,0x133));const _0x1ecc=function(_0x314aaa,_0x170822){_0x314aaa=_0x314aaa-0x0;let _0x1eccc0=_0x1708[_0x314aaa];return _0x1eccc0;};import{CKEditorError as _0x312820,Collection as _0x38037a,FocusTracker as _0x2b8a64}from'ckeditor5/src/utils';export default class x extends _0x38037a{constructor(_0xd3e954=[]){super(),this[_0x1ecc('0xf')]=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x2b8a64(),this[_0x1ecc('0x1c')]['on'](_0x1ecc('0x1d'),(_0x55c6ea,_0x588ee6,_0xc72de5)=>{_0xc72de5||this[_0x1ecc('0x2')](_0x1ecc('0xb'));});for(const _0x266f9b of _0xd3e954)this[_0x1ecc('0x0')](_0x266f9b);}get[_0x1ecc('0x20')](){return this['_focusTracker']['isFocused'];}[_0x1ecc('0x0')](_0x1ab854){if(this[_0x1ecc('0x17')](_0x1ab854))throw new _0x312820(_0x1ecc('0xe'),null);this[_0x1ecc('0xf')][_0x1ecc('0x12')](_0x1ab854[_0x1ecc('0x11')],_0x1ab854),this[_0x1ecc('0x7')][_0x1ecc('0x12')](_0x1ab854[_0x1ecc('0x6')],_0x1ab854);for(const _0x2764e3 of _0x1ab854[_0x1ecc('0x14')])this[_0x1ecc('0x1c')][_0x1ecc('0x0')](_0x2764e3);this[_0x1ecc('0x1')](_0x1ab854[_0x1ecc('0x14')],'add',(_0x34d1ac,_0x220273)=>{this[_0x1ecc('0x1c')][_0x1ecc('0x0')](_0x220273);}),this[_0x1ecc('0x1')](_0x1ab854['focusableElements'],_0x1ecc('0x10'),(_0xd4f16b,_0x4e99e8)=>{this['_focusTracker']['remove'](_0x4e99e8);}),this[_0x1ecc('0x1')](_0x1ab854['view'][_0x1ecc('0x1e')],_0x1ecc('0x1d'),(_0x47e616,_0x397b91,_0x3b4fc8)=>{_0x3b4fc8&&this[_0x1ecc('0x2')]('focus',_0x1ab854);}),_0x1ab854[_0x1ecc('0x1a')]();const _0x4f59c5=this[_0x1ecc('0x15')](_0x1ab854[_0x1ecc('0x6')][_0x1ecc('0x13')]);return super[_0x1ecc('0x0')](_0x1ab854,_0x4f59c5);}[_0x1ecc('0x10')](_0x188a85){if(!this[_0x1ecc('0x17')](_0x188a85))throw new _0x312820(_0x1ecc('0xc'),null);this[_0x1ecc('0x3')](_0x188a85[_0x1ecc('0x6')][_0x1ecc('0x1e')]),this['stopListening'](_0x188a85[_0x1ecc('0x14')]);for(const _0x5deb53 of _0x188a85[_0x1ecc('0x14')])this[_0x1ecc('0x1c')][_0x1ecc('0x10')](_0x5deb53);return this[_0x1ecc('0x7')][_0x1ecc('0x1b')](_0x188a85[_0x1ecc('0x6')]),this[_0x1ecc('0xf')][_0x1ecc('0x1b')](_0x188a85[_0x1ecc('0x11')]),super[_0x1ecc('0x10')](_0x188a85);}[_0x1ecc('0x16')](_0x5e58c5){return this[_0x1ecc('0xf')][_0x1ecc('0xd')](_0x5e58c5);}[_0x1ecc('0x19')](_0x27d52c){return this[_0x1ecc('0x7')][_0x1ecc('0xd')](_0x27d52c);}[_0x1ecc('0x9')](){super[_0x1ecc('0x8')](),this[_0x1ecc('0x3')](),this['_innerViewToAnnotation']['clear'](),this[_0x1ecc('0x7')][_0x1ecc('0x8')](),this['_focusTracker'][_0x1ecc('0x9')]();}['refreshPositioning'](){for(const _0x1ff83a of this)_0x1ff83a[_0x1ecc('0x1a')]();this[_0x1ecc('0xa')]();}['_sort'](){const _0x50d2f9=Array[_0x1ecc('0x1f')](this)['sort']((_0x531c44,_0x5caa93)=>v(_0x531c44[_0x1ecc('0x6')][_0x1ecc('0x13')],_0x5caa93[_0x1ecc('0x6')][_0x1ecc('0x13')]));for(let _0x232c86=_0x50d2f9[_0x1ecc('0x5')]-0x1;_0x232c86>0x0;_0x232c86--){const _0x341244=_0x50d2f9[_0x232c86];_0x232c86!==this['getIndex'](_0x341244)&&(this[_0x1ecc('0x10')](_0x341244),this['add'](_0x341244));}}[_0x1ecc('0x15')](_0x46a904){let _0x159192=0x0;if(!_0x46a904)return this[_0x1ecc('0x5')];for(const _0x1e9b65 of this){const _0x3b1ebb=_0x1e9b65['view']['targetRect'];if(_0x3b1ebb){if(v(_0x46a904,_0x3b1ebb)<0x0)return _0x159192;_0x159192++;}}return _0x159192;}}export function bindAnnotationCollections({source:_0x3c88d5,target:_0x1d83a4,filter:_0x197684}){for(const _0x150e8f of _0x3c88d5)_0x197684(_0x150e8f)&&_0x1d83a4['add'](_0x150e8f);_0x1d83a4[_0x1ecc('0x1')](_0x3c88d5,_0x1ecc('0x0'),(_0x291dda,_0x57dad6)=>{_0x197684(_0x57dad6)&&_0x1d83a4[_0x1ecc('0x0')](_0x57dad6);}),_0x1d83a4[_0x1ecc('0x1')](_0x3c88d5,_0x1ecc('0x10'),(_0x49cb9d,_0x52f842)=>{_0x1d83a4[_0x1ecc('0x17')](_0x52f842)&&_0x1d83a4[_0x1ecc('0x10')](_0x52f842);});}function v(_0x339779,_0x3f9b48){if(null===_0x339779&&null===_0x3f9b48)return 0x0;if(null===_0x339779)return-0x1;if(null===_0x3f9b48)return 0x1;const _0x2610ac=_0x339779[_0x1ecc('0x18')]-_0x3f9b48[_0x1ecc('0x18')];return 0x0==_0x2610ac?_0x339779[_0x1ecc('0x4')]-_0x3f9b48[_0x1ecc('0x4')]:_0x2610ac;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ef3=['focusTracker','_activateAnnotation','activate','pluginName','remove','element','fire','has','view','_visibleAnnotations','stopListening','change:isVisible','delete','_bindAnnotationsToVisibleAnnotations','set','getByInnerView','refreshVisibility','createAnnotation','activeAnnotations','deactivateAll','collection','_deactivateAllAnnotations','refreshPositioning','Annotations','destroy','isVisible','add','_addActiveAnnotation','listenTo'];(function(_0x44be8a,_0x3ef349){const _0x3cdf36=function(_0x1ae04c){while(--_0x1ae04c){_0x44be8a['push'](_0x44be8a['shift']());}};_0x3cdf36(++_0x3ef349);}(_0x3ef3,0x185));const _0x3cdf=function(_0x44be8a,_0x3ef349){_0x44be8a=_0x44be8a-0x0;let _0x3cdf36=_0x3ef3[_0x44be8a];return _0x3cdf36;};import{ContextPlugin as _0x412276}from'ckeditor5/src/core';import _0x50a871 from'./annotation';import _0x3d4cad from'./annotationcollection';import _0x49d498 from'./view/annotationview';export default class b extends _0x412276{static get[_0x3cdf('0x14')](){return _0x3cdf('0xb');}constructor(_0x4f2fe6){super(_0x4f2fe6),this[_0x3cdf('0x8')]=new _0x3d4cad(),this[_0x3cdf('0x1a')]=new _0x3d4cad(),this[_0x3cdf('0x2')](_0x3cdf('0x6'),new Set()),this[_0x3cdf('0x1')]();}['add'](_0xfe5309){this['collection'][_0x3cdf('0xe')](_0xfe5309);}[_0x3cdf('0x15')](_0x1028cb){this[_0x3cdf('0x8')][_0x3cdf('0x15')](_0x1028cb),_0x1028cb[_0x3cdf('0xc')]();}[_0x3cdf('0x4')](){for(const _0xe984ef of this[_0x3cdf('0x8')])_0xe984ef[_0x3cdf('0x4')]();}[_0x3cdf('0xa')](){this[_0x3cdf('0x1a')]['refreshPositioning']();}[_0x3cdf('0x3')](_0x5c1648){return this[_0x3cdf('0x8')][_0x3cdf('0x3')](_0x5c1648);}[_0x3cdf('0x7')](){this[_0x3cdf('0x17')](_0x3cdf('0x9'));}[_0x3cdf('0xc')](){for(const _0xe5110a of this[_0x3cdf('0x8')])_0xe5110a[_0x3cdf('0xc')]();this['_visibleAnnotations'][_0x3cdf('0xc')](),this[_0x3cdf('0x8')]['destroy'](),super[_0x3cdf('0xc')]();}[_0x3cdf('0x13')](_0x198da2){this[_0x3cdf('0x17')](_0x3cdf('0x12'),_0x198da2);}[_0x3cdf('0x5')](_0x381fa7){return new _0x50a871(_0x381fa7);}['createAnnotationView'](_0x1c4690,_0x2e1e8d){return new _0x49d498(_0x1c4690,_0x2e1e8d);}[_0x3cdf('0xf')](_0x55f747){const _0x2b1eb7=new Set(this['activeAnnotations']);_0x2b1eb7[_0x3cdf('0xe')](_0x55f747),this[_0x3cdf('0x6')]=_0x2b1eb7;}['_removeActiveAnnotation'](_0x11cc41){const _0x2a1466=new Set(this[_0x3cdf('0x6')]);_0x2a1466[_0x3cdf('0x0')](_0x11cc41),this[_0x3cdf('0x6')]=_0x2a1466;}[_0x3cdf('0x1')](){const _0x5f14dd=this[_0x3cdf('0x8')],_0x3b9e58=this['_visibleAnnotations'];function _0x4cc03a(_0x8cd276){const _0x23b968=_0x8cd276['source'];_0x23b968[_0x3cdf('0xd')]&&!_0x3b9e58[_0x3cdf('0x18')](_0x23b968)?_0x3b9e58['add'](_0x23b968):!_0x23b968['isVisible']&&_0x3b9e58['has'](_0x23b968)&&_0x3b9e58[_0x3cdf('0x15')](_0x23b968),_0x23b968[_0x3cdf('0x19')][_0x3cdf('0x11')]['remove'](_0x23b968[_0x3cdf('0x19')][_0x3cdf('0x16')]),_0x23b968[_0x3cdf('0x19')]['focusTracker'][_0x3cdf('0xe')](_0x23b968[_0x3cdf('0x19')][_0x3cdf('0x16')]);}this['listenTo'](_0x5f14dd,_0x3cdf('0xe'),(_0x5cecfa,_0x12f230)=>{_0x12f230['isVisible']&&_0x3b9e58['add'](_0x12f230),this[_0x3cdf('0x10')](_0x12f230,'change:isVisible',_0x4cc03a);}),this[_0x3cdf('0x10')](_0x5f14dd,'remove',(_0x5cd805,_0x582a2c)=>{_0x3b9e58[_0x3cdf('0x18')](_0x582a2c)&&_0x3b9e58[_0x3cdf('0x15')](_0x582a2c),this[_0x3cdf('0x1b')](_0x582a2c,_0x3cdf('0x1c'),_0x4cc03a);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e97=['size','type','stopListening','remove','pluginName','_setSelectedAnnotations','init','_addActiveAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','destroy','length','_removeActiveAnnotation','listenTo','_uis','context','activeUIs','collection','hasActive','get','attach','filter','deactivate','activate','isActive','deactivateAll','_uisData','_visibleAnnotations','delete','set','annotationsuis-register-already-registered','find','from','requires','has','add','function','annotationsuis-missing-ui','change:activeAnnotation','setActiveAnnotation','plugins','_activateAnnotation'];(function(_0x427d13,_0x4e9734){const _0x1b35c1=function(_0x3669d2){while(--_0x3669d2){_0x427d13['push'](_0x427d13['shift']());}};_0x1b35c1(++_0x4e9734);}(_0x4e97,0x75));const _0x1b35=function(_0x427d13,_0x4e9734){_0x427d13=_0x427d13-0x0;let _0x1b35c1=_0x4e97[_0x427d13];return _0x1b35c1;};import{ContextPlugin as _0x18c0d2}from'ckeditor5/src/core';import{CKEditorError as _0x450074}from'ckeditor5/src/utils';import _0x16765c,{bindAnnotationCollections as _0x291319}from'./annotationcollection';import _0x426561 from'./annotations';export default class M extends _0x18c0d2{static get[_0x1b35('0x26')](){return[_0x426561];}static get[_0x1b35('0xa')](){return'AnnotationsUIs';}constructor(_0x2691a2){super(_0x2691a2),this[_0x1b35('0x15')]=new Set(),this[_0x1b35('0x13')]=new Map(),this[_0x1b35('0x1f')]=new Map();}[_0x1b35('0xc')](){const _0x2ec387=this['context'][_0x1b35('0x4')][_0x1b35('0x18')](_0x426561);this[_0x1b35('0x12')](_0x2ec387,_0x1b35('0x5'),(_0x211d50,_0x5e49f4)=>{for(const _0x207956 of this[_0x1b35('0x15')]){const _0x22eb11=this['_uis']['get'](_0x207956);(0x0,this['_uisData'][_0x1b35('0x18')](_0x207956)[_0x1b35('0x1a')])(_0x5e49f4)&&_0x22eb11[_0x1b35('0x3')](_0x5e49f4);}}),this['listenTo'](_0x2ec387,'_deactivateAllAnnotations',()=>{for(const _0x3cbff7 of this[_0x1b35('0x15')]){this[_0x1b35('0x13')][_0x1b35('0x18')](_0x3cbff7)[_0x1b35('0x3')](null);}}),this[_0x1b35('0x12')](_0x2ec387[_0x1b35('0x20')],_0x1b35('0x28'),(_0xe49227,_0x12d3c4)=>{this[_0x1b35('0xe')](_0x12d3c4);});}[_0x1b35('0x17')](){return this[_0x1b35('0x15')][_0x1b35('0x6')]>0x0;}[_0x1b35('0x1d')](_0x356df5){return this[_0x1b35('0x15')][_0x1b35('0x27')](_0x356df5);}[_0x1b35('0x1c')](_0x14de3c,_0x570f6a=()=>!0x0){const _0x103b50=this[_0x1b35('0x14')][_0x1b35('0x4')]['get'](_0x426561);if(!this[_0x1b35('0x13')]['has'](_0x14de3c))throw new _0x450074(_0x1b35('0x1'),this,{'uiName':_0x14de3c});this[_0x1b35('0x1d')](_0x14de3c)&&this['deactivate'](_0x14de3c),this[_0x1b35('0x15')][_0x1b35('0x28')](_0x14de3c);const _0x4acb72=new _0x16765c(),_0x4113e3=_0x103b50[_0x1b35('0x20')];_0x291319({'source':_0x4113e3,'target':_0x4acb72,'filter':_0x570f6a}),this['_uisData'][_0x1b35('0x22')](_0x14de3c,{'collection':_0x4acb72,'filter':_0x570f6a});const _0x950aab=this[_0x1b35('0x13')][_0x1b35('0x18')](_0x14de3c);_0x950aab['attach'](_0x4acb72),this['listenTo'](_0x950aab,_0x1b35('0x2'),(_0x44fead,_0x5d2b19,_0xbbaf7f,_0x38e735)=>{_0x38e735&&_0x103b50[_0x1b35('0x11')](_0x38e735),_0xbbaf7f&&_0x103b50[_0x1b35('0xd')](_0xbbaf7f);});}[_0x1b35('0x1b')](_0x23e501){if(this[_0x1b35('0x15')][_0x1b35('0x21')](_0x23e501),!this[_0x1b35('0x13')][_0x1b35('0x27')](_0x23e501))throw new _0x450074('annotationsuis-missing-ui',this,{'uiName':_0x23e501});const _0x3c96a0=this[_0x1b35('0x13')][_0x1b35('0x18')](_0x23e501);_0x3c96a0['detach'](),this[_0x1b35('0x8')](_0x3c96a0),this[_0x1b35('0x1f')][_0x1b35('0x18')](_0x23e501)[_0x1b35('0x16')][_0x1b35('0xf')](),this[_0x1b35('0x1f')][_0x1b35('0x21')](_0x23e501);}['switchTo'](_0xfd968f){if(!this['_uis']['has'](_0xfd968f))throw new _0x450074(_0x1b35('0x1'),this,{'uiName':_0xfd968f});const _0xaf70ba=this['context'][_0x1b35('0x4')][_0x1b35('0x18')](_0x426561),_0x5f0f73=Array[_0x1b35('0x25')](_0xaf70ba['activeAnnotations'])[0x0]||null;this[_0x1b35('0x1e')](),this[_0x1b35('0x1c')](_0xfd968f);const _0xd65824=this['_uis'][_0x1b35('0x18')](_0xfd968f);_0xd65824[_0x1b35('0x3')](_0x5f0f73),_0xd65824[_0x1b35('0xb')]&&_0x5f0f73&&_0xd65824['_setSelectedAnnotations']([_0x5f0f73]);}[_0x1b35('0x1e')](){for(const _0x4ee47e of this[_0x1b35('0x15')])this['deactivate'](_0x4ee47e);}['register'](_0x4c599d,_0x55b00a){if(this['_uis']['has'](_0x4c599d))throw new _0x450074(_0x1b35('0x23'));if('function'!=typeof _0x55b00a[_0x1b35('0x19')]||_0x1b35('0x0')!=typeof _0x55b00a['detach']||_0x1b35('0x0')!=typeof _0x55b00a['setActiveAnnotation'])throw new _0x450074('annotationsuis-register-invalid-interface',null);this[_0x1b35('0x13')][_0x1b35('0x22')](_0x4c599d,_0x55b00a);}['refilterAnnotations'](){const _0x523b8d=this[_0x1b35('0x14')][_0x1b35('0x4')][_0x1b35('0x18')](_0x426561)[_0x1b35('0x16')],_0x27a432=new Map(),_0x2494d9=Array[_0x1b35('0x25')](this[_0x1b35('0x15')]);for(const _0x1909e1 of this[_0x1b35('0x15')]){const _0x26b7b4=this[_0x1b35('0x1f')]['get'](_0x1909e1)['collection'];for(const _0xf8a2ab of _0x26b7b4)_0x27a432[_0x1b35('0x22')](_0xf8a2ab,_0x1909e1);}for(const _0x10366e of _0x523b8d){const _0x2f0f12=_0x27a432[_0x1b35('0x18')](_0x10366e);this[_0x1b35('0xe')](_0x10366e);const _0x530328=_0x2494d9[_0x1b35('0x24')](_0x3f109b=>this['_uisData'][_0x1b35('0x18')](_0x3f109b)[_0x1b35('0x1a')](_0x10366e));_0x2f0f12!==_0x530328&&(_0x2f0f12&&this['_uisData']['get'](_0x2f0f12)[_0x1b35('0x16')][_0x1b35('0x9')](_0x10366e),_0x530328&&this['_uisData'][_0x1b35('0x18')](_0x530328)['collection'][_0x1b35('0x28')](_0x10366e));}}[_0x1b35('0xf')](){this[_0x1b35('0x1e')](),super[_0x1b35('0xf')]();}[_0x1b35('0xe')](_0x377521){const _0x2af917=[];for(const _0x5491d6 of this[_0x1b35('0x15')]){(0x0,this['_uisData'][_0x1b35('0x18')](_0x5491d6)[_0x1b35('0x1a')])(_0x377521)&&_0x2af917['push'](_0x5491d6);}if(_0x2af917[_0x1b35('0x10')]>0x1)throw new _0x450074('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x2af917,'annotationType':_0x377521[_0x1b35('0x7')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd25d=['focusTracker','getOrderedSelectedAnnotations','hasDomSelection','addSourceCollector','_editorAnnotationsData','fire','editorannotations-invalid-source-callback','_dataCollectors','listenTo','function','collection','remove','editor','requires','_editorAnnotations','from','document','isCollapsed','add','set','get','map','isEqual','push','containsRange','directChange','editing','getByInnerView','change:range','blur','refreshSelectedViews','selection','view','EditorAnnotations','has','cancel','uiUpdate','update','registerAnnotation','annotation','init','model','delete','isReadOnly','innerView'];(function(_0x220a37,_0xd25dde){const _0x27ce18=function(_0x3110b3){while(--_0x3110b3){_0x220a37['push'](_0x220a37['shift']());}};_0x27ce18(++_0xd25dde);}(_0xd25d,0xf3));const _0x27ce=function(_0x220a37,_0xd25dde){_0x220a37=_0x220a37-0x0;let _0x27ce18=_0xd25d[_0x220a37];return _0x27ce18;};import{Plugin as _0x1c438b}from'ckeditor5/src/core';import{CKEditorError as _0x5aef46}from'ckeditor5/src/utils';import{debounce as _0x14ebaa}from'lodash-es';import _0x8ce792 from'./annotations';export default class k extends _0x1c438b{static get[_0x27ce('0x28')](){return[_0x8ce792];}static get['pluginName'](){return _0x27ce('0xf');}constructor(_0xe806f3){super(_0xe806f3),this[_0x27ce('0x22')]=new Set(),this['_editorAnnotations']=new Set();}[_0x27ce('0x16')](){const _0xa7a14b=this[_0x27ce('0x27')],_0x4c8815=_0xa7a14b[_0x27ce('0x17')][_0x27ce('0x2b')]['selection'],_0x478762=_0x14ebaa(()=>this[_0x27ce('0xc')](),0xa);_0x4c8815['on'](_0x27ce('0xa'),(_0x4f7278,_0x491ea9)=>{_0x491ea9[_0x27ce('0x7')]&&(_0x478762[_0x27ce('0x11')](),this[_0x27ce('0xc')]());}),this['listenTo'](_0xa7a14b['editing'][_0x27ce('0xe')][_0x27ce('0x2b')],'change:isFocused',(_0x3fe8c4,_0x52633a,_0xada5dc)=>{_0xada5dc&&_0x478762();}),this[_0x27ce('0x23')](_0xa7a14b['ui'][_0x27ce('0x1b')],'change:isFocused',(_0x5923d9,_0x3df636,_0x587203)=>{_0x587203||_0xa7a14b[_0x27ce('0x19')]||this[_0x27ce('0x20')](_0x27ce('0xb'),{'isAnnotationTracked':_0x4b91cc=>this['_editorAnnotationsData']['has'](_0x4b91cc[_0x27ce('0x1a')])});}),this[_0x27ce('0x23')](this[_0x27ce('0x27')]['ui'],_0x27ce('0x13'),()=>this[_0x27ce('0x20')](_0x27ce('0x12')));}[_0x27ce('0x14')](_0x58f683){if(this[_0x27ce('0x29')][_0x27ce('0x10')](_0x58f683[_0x27ce('0xe')]))return;this[_0x27ce('0x29')][_0x27ce('0x0')](_0x58f683['view']),this['editor']['ui'][_0x27ce('0x1b')][_0x27ce('0x0')](_0x58f683[_0x27ce('0xe')]['element']);const _0x2a356e=this[_0x27ce('0x27')]['plugins'][_0x27ce('0x2')](_0x8ce792);this[_0x27ce('0x23')](_0x2a356e[_0x27ce('0x25')],'remove',(_0x1bc321,_0x26f61f)=>{this[_0x27ce('0x27')]['ui']['focusTracker'][_0x27ce('0x26')](_0x26f61f[_0x27ce('0xe')]['element']),this['_editorAnnotations'][_0x27ce('0x18')](_0x26f61f['view']);});}[_0x27ce('0x1d')](){return this[_0x27ce('0x27')][_0x27ce('0x8')]['view'][_0x27ce('0x1d')];}[_0x27ce('0x1e')](_0xd47e10){if(_0x27ce('0x24')!=typeof _0xd47e10)throw new _0x5aef46(_0x27ce('0x21'));this[_0x27ce('0x22')][_0x27ce('0x0')](_0xd47e10);}[_0x27ce('0xc')](){this[_0x27ce('0x20')]('refresh');}[_0x27ce('0x1c')]({activeAnnotation:_0x4bf162,annotations:_0x1d96d1}){const _0x537327=[],_0x4305ce=this[_0x27ce('0x27')][_0x27ce('0x17')]['document'][_0x27ce('0xd')],_0x27c5b2=Array[_0x27ce('0x2a')](_0x4305ce['getRanges']());for(const [_0x2184ad,_0x103892]of this[_0x27ce('0x1f')]){const _0x1a2aaf=_0x412034(_0x103892),_0x1494bd=_0x1d96d1[_0x27ce('0x9')](_0x2184ad);_0x1a2aaf&&_0x1494bd&&_0x537327[_0x27ce('0x5')]({'annotation':_0x1494bd,'range':_0x1a2aaf});}function _0x412034(_0x53d257){for(const _0x35d430 of _0x53d257)for(const _0x1f5a10 of _0x27c5b2)if(_0x35d430[_0x27ce('0x6')](_0x1f5a10,!_0x4305ce[_0x27ce('0x2c')]))return _0x35d430;return null;}return _0x537327['sort']((_0x33c93b,_0x41a1de)=>{const _0x135d00=_0x33c93b['range'],_0x43e8ef=_0x41a1de['range'];if(!_0x135d00[_0x27ce('0x4')](_0x43e8ef)){if(_0x135d00[_0x27ce('0x6')](_0x43e8ef,!0x0))return 0x1;if(_0x43e8ef[_0x27ce('0x6')](_0x135d00,!0x0))return-0x1;}return _0x33c93b[_0x27ce('0x15')]==_0x4bf162?-0x1:_0x41a1de[_0x27ce('0x15')]==_0x4bf162?0x1:0x0;})[_0x27ce('0x3')](_0x10004e=>_0x10004e[_0x27ce('0x15')]);}get['_editorAnnotationsData'](){const _0x51f52f=new Map();for(const _0x2bf3a3 of Array[_0x27ce('0x2a')](this[_0x27ce('0x22')]))for(const [_0x10dd44,_0x558970]of _0x2bf3a3())_0x51f52f[_0x27ce('0x1')](_0x10dd44,_0x558970);return _0x51f52f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ae8=['push','isAttached','selection','getOrderedSelectedAnnotations','domConverter','annotations','change:height','_setSelectedAnnotations','destroy','hasView','_addedAnnotations','inlineannotations-not-allowed-with-context','_manuallyClosed','inlineannotations-detach-not-attached','_closeAnnotation','listenTo','_getBalloonTargetForAnnotation','switchTo','init','change:visibleView','hasActive','includes','view','register','collapse','activeAnnotation','_addAnnotationToBalloon','length','getClientRects','_balloon','InlineAnnotations','getBoundingClientRect','target','mousedown','isFocused','_selectedAnnotations','editing','visibleView','fromRect','showStack','plugins','has','stopListening','attach','getByView','Esc','addObserver','left','focusTracker','editor','width','get','map','keystrokes','change:isFocused','setActiveAnnotation','top','add','detach','delete','bottom','set','document','remove','from','_forceRefresh','blur','right','clear','_removeAnnotationFromBalloon','inline','update','focus','every','inlineannotations-attach-already-attached','requires','context'];(function(_0x42fd44,_0x2ae8c7){const _0x4b079c=function(_0x13b99a){while(--_0x13b99a){_0x42fd44['push'](_0x42fd44['shift']());}};_0x4b079c(++_0x2ae8c7);}(_0x2ae8,0x17d));const _0x4b07=function(_0x42fd44,_0x2ae8c7){_0x42fd44=_0x42fd44-0x0;let _0x4b079c=_0x2ae8[_0x42fd44];return _0x4b079c;};import{Plugin as _0x45b152}from'ckeditor5/src/core';import _0x2f5116 from'./annotationsuis';import _0x217cf6 from'./editorannotations';import{ContextualBalloon as _0x423811}from'ckeditor5/src/ui';import{MouseObserver as _0xac997c}from'ckeditor5/src/engine';import{CKEditorError as _0x1887cf,Rect as _0x1a1d0c}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x45b152{static get[_0x4b07('0x2')](){return[_0x217cf6,_0x423811,_0x2f5116];}static get['pluginName'](){return _0x4b07('0x22');}constructor(_0x59fb5e){super(_0x59fb5e),_0x59fb5e['editing']['view'][_0x4b07('0x32')](_0xac997c),this[_0x4b07('0x5')]=!0x1,this[_0x4b07('0x41')](_0x4b07('0x1d'),null),this[_0x4b07('0x9')]=null,this[_0x4b07('0x10')]=new Set(),this[_0x4b07('0x21')]=_0x59fb5e[_0x4b07('0x2c')][_0x4b07('0x37')](_0x423811),this[_0x4b07('0xe')]=new Set(),this[_0x4b07('0x27')]=[],this[_0x4b07('0x45')]=!0x1;}[_0x4b07('0x16')](){const _0x442b43=this[_0x4b07('0x35')]['plugins'][_0x4b07('0x37')](_0x2f5116);_0x442b43[_0x4b07('0x3')]===this[_0x4b07('0x35')]&&(_0x442b43[_0x4b07('0x1b')]('inline',this),this[_0x4b07('0x35')][_0x4b07('0x39')][_0x4b07('0x41')](_0x4b07('0x31'),(_0x2f700b,_0x2d1a69)=>{const _0x3292ce=this[_0x4b07('0x21')];if(this[_0x4b07('0x5')]&&_0x3292ce[_0x4b07('0x29')]){const _0x14b56d=this[_0x4b07('0x9')][_0x4b07('0x30')](_0x3292ce['visibleView']);_0x14b56d&&this[_0x4b07('0x12')](_0x14b56d),_0x2d1a69();}}));}['afterInit'](){const _0x172407=this[_0x4b07('0x35')]['plugins'][_0x4b07('0x37')](_0x2f5116);_0x172407[_0x4b07('0x3')]===this[_0x4b07('0x35')]&&(_0x172407[_0x4b07('0x18')]()||_0x172407[_0x4b07('0x15')](_0x4b07('0x4a')));}[_0x4b07('0x3b')](_0x80ccea){_0x80ccea!==this[_0x4b07('0x1d')]&&(this[_0x4b07('0x1d')]&&(this[_0x4b07('0x1d')]['isActive']=!0x1),_0x80ccea&&this[_0x4b07('0x35')]['ui'][_0x4b07('0x34')][_0x4b07('0x26')]&&(this['annotations']['has'](_0x80ccea)&&this[_0x4b07('0x1e')](_0x80ccea,!0x0),_0x80ccea['isActive']=!0x0),_0x80ccea||this['_setSelectedAnnotations']([]),this[_0x4b07('0x1d')]=_0x80ccea);}[_0x4b07('0x2f')](_0x1c93e5){this['annotations']=_0x1c93e5;const _0x3b8706=this['editor'][_0x4b07('0x2c')][_0x4b07('0x37')](_0x2f5116),_0x1f984c=this['_balloon'];if(this[_0x4b07('0x5')])throw new _0x1887cf(_0x4b07('0x1'),this);if(_0x3b8706[_0x4b07('0x3')]!==this[_0x4b07('0x35')])throw new _0x1887cf(_0x4b07('0xf'),this);const _0x346902=this[_0x4b07('0x35')][_0x4b07('0x2c')]['get'](_0x217cf6);this[_0x4b07('0x13')](_0x346902,'refresh',()=>{const _0x285c6b=_0x346902[_0x4b07('0x7')]({'annotations':this[_0x4b07('0x9')],'activeAnnotation':this['activeAnnotation']});var _0x1426fd,_0x3d1b80;!this[_0x4b07('0x45')]&&(_0x1426fd=_0x285c6b,_0x3d1b80=this[_0x4b07('0x27')],_0x1426fd[_0x4b07('0x1f')]===_0x3d1b80['length']&&_0x1426fd[_0x4b07('0x0')](_0x429291=>_0x3d1b80['includes'](_0x429291)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x285c6b),this['setActiveAnnotation'](_0x285c6b[0x0]||null));}),this[_0x4b07('0x13')](_0x346902,_0x4b07('0x46'),(_0x42782b,{isAnnotationTracked:_0x3f6651})=>{this[_0x4b07('0x1d')]&&_0x3f6651(this[_0x4b07('0x1d')])&&(this[_0x4b07('0xb')]([]),this[_0x4b07('0x3b')](null));}),this['listenTo'](this[_0x4b07('0x35')]['ui'][_0x4b07('0x34')],_0x4b07('0x3a'),(_0x194063,_0x3a5f17,_0x95f79c)=>{_0x95f79c||this['setActiveAnnotation'](null);}),this[_0x4b07('0x13')](_0x1c93e5,_0x4b07('0x43'),(_0x2e4613,_0x3efc8d)=>{this['_removeAnnotationFromBalloon'](_0x3efc8d),_0x3efc8d===this[_0x4b07('0x1d')]&&this[_0x4b07('0x3b')](null);}),this['listenTo'](_0x1f984c,_0x4b07('0x17'),(_0x40d68b,_0x29d364,_0x3a920b,_0x4d2f7f)=>{_0x4d2f7f&&this[_0x4b07('0x2e')](_0x4d2f7f);const _0x1ccbc1=_0x1c93e5[_0x4b07('0x30')](_0x3a920b);_0x3a920b&&_0x1ccbc1&&(this[_0x4b07('0x13')](_0x3a920b,_0x4b07('0xa'),()=>{_0x1f984c['updatePosition']();}),this[_0x4b07('0x13')](_0x3a920b,_0x4b07('0x31'),()=>{this[_0x4b07('0x12')](_0x1ccbc1),this['editor']['editing']['view'][_0x4b07('0x4c')]();}),this[_0x4b07('0x1d')]!==_0x1ccbc1&&this['setActiveAnnotation'](_0x1ccbc1));}),this['listenTo'](this[_0x4b07('0x35')]['ui'],_0x4b07('0x4b'),()=>{_0x1f984c['visibleView']&&(_0x1c93e5[_0x4b07('0x30')](_0x1f984c['visibleView'])&&_0x1f984c['updatePosition']());}),this[_0x4b07('0x13')](this['editor'][_0x4b07('0x28')][_0x4b07('0x1a')][_0x4b07('0x42')],_0x4b07('0x25'),()=>{this[_0x4b07('0x45')]=!0x0,this[_0x4b07('0x10')][_0x4b07('0x48')]();}),this[_0x4b07('0x35')]['editing'][_0x4b07('0x1a')][_0x4b07('0x42')][_0x4b07('0x6')]['editableElement']&&this[_0x4b07('0x35')][_0x4b07('0x28')][_0x4b07('0x1a')][_0x4b07('0x4c')](),this[_0x4b07('0x5')]=!0x0;}[_0x4b07('0x3e')](){if(!this[_0x4b07('0x5')])throw new _0x1887cf(_0x4b07('0x11'),this);this[_0x4b07('0x3b')](null);for(const _0x4afe51 of this[_0x4b07('0xe')])this[_0x4b07('0x49')](_0x4afe51);this[_0x4b07('0x2e')](),this[_0x4b07('0x5')]=!0x1,this[_0x4b07('0x9')]=null;}[_0x4b07('0xc')](){this['isAttached']&&this[_0x4b07('0x3e')]();}[_0x4b07('0xb')](_0x36c107){for(const _0x286df8 of this[_0x4b07('0x27')])_0x36c107[_0x4b07('0x19')](_0x286df8)||this[_0x4b07('0x10')][_0x4b07('0x3f')](_0x286df8);for(const _0x36dec3 of this[_0x4b07('0x9')])_0x36c107['includes'](_0x36dec3)||this[_0x4b07('0x49')](_0x36dec3);if(this[_0x4b07('0x35')]['ui'][_0x4b07('0x34')]['isFocused'])for(const _0x5a35c4 of _0x36c107)this[_0x4b07('0x1e')](_0x5a35c4);this['_selectedAnnotations']=_0x36c107;}[_0x4b07('0x1e')](_0x627e6d,_0x5ae4a4=!0x1){this[_0x4b07('0x10')][_0x4b07('0x2d')](_0x627e6d)||(this[_0x4b07('0xe')][_0x4b07('0x2d')](_0x627e6d)||this[_0x4b07('0x21')][_0x4b07('0xd')](_0x627e6d['view'])||(this[_0x4b07('0xe')][_0x4b07('0x3d')](_0x627e6d),this[_0x4b07('0x21')][_0x4b07('0x3d')]({'stackId':_0x627e6d['view']['id'],'view':_0x627e6d[_0x4b07('0x1a')],'position':{'target':()=>this[_0x4b07('0x14')](_0x627e6d)}})),_0x5ae4a4&&this[_0x4b07('0x21')][_0x4b07('0x2b')](_0x627e6d[_0x4b07('0x1a')]['id']));}[_0x4b07('0x14')](_0x32fd2b){const _0x16fd2c=_0x32fd2b[_0x4b07('0x24')],_0x3beb40=this[_0x4b07('0x35')][_0x4b07('0x28')]['view'],_0x350260=_0x3beb40['document'][_0x4b07('0x6')]['getFirstRange'](),_0xaf4668=_0x3beb40[_0x4b07('0x8')]['viewRangeToDom'](_0x350260);if(_0xaf4668[_0x4b07('0x1c')](!0x0),_0x16fd2c){if(_0x16fd2c instanceof _0x1a1d0c)return _0x16fd2c;let _0x507af5=[];for(const _0x2ed322 of _0x16fd2c)_0x507af5[_0x4b07('0x4')](...(_0x4ea27e=_0x2ed322[_0x4b07('0x20')](),Array[_0x4b07('0x44')](_0x4ea27e)[_0x4b07('0x38')](DOMRect[_0x4b07('0x2a')])));_0x507af5=function(_0x1d8d43){const _0x25b934=[];let _0x164b67=_0x1d8d43[0x0];for(let _0x48db3b=0x1;_0x48db3b<_0x1d8d43[_0x4b07('0x1f')];_0x48db3b++)F(_0x164b67,_0x1d8d43[_0x48db3b])?_0x164b67[_0x4b07('0x36')]+=_0x1d8d43[_0x48db3b][_0x4b07('0x36')]:(_0x25b934[_0x4b07('0x4')](_0x164b67),_0x164b67=_0x1d8d43[_0x48db3b]);return _0x25b934[_0x4b07('0x4')](_0x164b67),_0x25b934;}(_0x507af5);const _0x3c8633=_0xaf4668[_0x4b07('0x23')]();return _0x507af5['find'](_0x1503bc=>_0x1503bc[_0x4b07('0x3c')]<=_0x3c8633[_0x4b07('0x3c')]&&_0x1503bc['bottom']>=_0x3c8633[_0x4b07('0x40')]&&_0x1503bc['left']<=_0x3c8633[_0x4b07('0x33')]&&_0x1503bc[_0x4b07('0x47')]>=_0x3c8633[_0x4b07('0x47')])||_0x507af5[0x0];}var _0x4ea27e;return _0x32fd2b['targetRect']||_0xaf4668;}['_removeAnnotationFromBalloon'](_0x3486a8){this['_addedAnnotations']['has'](_0x3486a8)&&this['_balloon'][_0x4b07('0xd')](_0x3486a8[_0x4b07('0x1a')])&&(this[_0x4b07('0xe')][_0x4b07('0x3f')](_0x3486a8),this['_balloon'][_0x4b07('0x43')](_0x3486a8['view']));}[_0x4b07('0x12')](_0xc91515){this[_0x4b07('0x10')][_0x4b07('0x3d')](_0xc91515),this[_0x4b07('0x49')](_0xc91515);}}function F(_0x55b3cf,_0x4db211){return _0x55b3cf['top']===_0x4db211['top']&&_0x55b3cf[_0x4b07('0x40')]===_0x4db211[_0x4b07('0x40')]&&_0x55b3cf[_0x4b07('0x47')]===_0x4db211[_0x4b07('0x33')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1953=['contains','_annotationToNarrowView','activeAnnotation','_attachToContainer','stopListening','_domEmitter','includes','refreshPositioning','cancel','Esc','number','getByView','get','narrowSidebar','ready','blur','bodyCollection','isAttached','addEventListener','has','context','NarrowSidebar','pin','first','southArrowNorthEast','_detachFromContainer','change:container','change:height','_manuallyClosedAnnotationViews','EditorAnnotations','_selectedAnnotations','content','removeEventListener','keyCode','editors','mousedown','create','_integrateWithEditorAnnotations','_refreshPositioning','_destroyEditorAnnotationsIntegration','high','_setSelectedAnnotations','annotationType','execute','_refreshPositioningDebounced','isVisible','refresh','length','_editorAnnotations','view','balloonPanelView','clear','rearrange','addAnnotation','_updateBalloonPosition','preventClosingBalloon','requires','_attachListeners','register','getOrderedSelectedAnnotations','setActiveAnnotation','listenTo','preventDefault','getSidebarItemView','_detachListeners','northArrowSouthEast','narrowsidebar-detach-not-attached','narrowsidebar-attach-already-attached','northArrowSouthWest','northArrowSouth','ck-sidebar--narrow','from','detach','_hideBalloon','low','resize','attach','unpin','locale','annotations','destroy','values','off','element','init','keydown','target','add','_showBalloon','set','defaultPositions','focus','delete','isDirty','hasDomSelection','southArrowNorthWest','plugins'];(function(_0x6212c5,_0x19531f){const _0x3374f1=function(_0x768f0d){while(--_0x768f0d){_0x6212c5['push'](_0x6212c5['shift']());}};_0x3374f1(++_0x19531f);}(_0x1953,0x7d));const _0x3374=function(_0x6212c5,_0x19531f){_0x6212c5=_0x6212c5-0x0;let _0x3374f1=_0x1953[_0x6212c5];return _0x3374f1;};import{ContextPlugin as _0x278734,Context as _0x272b30}from'ckeditor5/src/core';import _0x2ded05 from'./annotationsuis';import _0x251209 from'./sidebar';import _0x102116 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x317d64,BodyCollection as _0x2bfd67}from'ckeditor5/src/ui';import{CKEditorError as _0x2f7a32,DomEmitterMixin as _0x4d98d2,keyCodes as _0x345dee,Collection as _0x40e83d}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x3ad586}from'lodash-es';import _0x2ff944 from'./editorannotations';export default class s extends _0x278734{static get[_0x3374('0x1c')](){return[_0x251209,_0x2ded05];}static get['pluginName'](){return _0x3374('0x5a');}constructor(_0x5461b7){super(_0x5461b7),this[_0x3374('0x56')]=!0x1,this[_0x3374('0x0')]=new Set(),this[_0x3374('0x4a')]=Object[_0x3374('0x8')](_0x4d98d2),this[_0x3374('0x46')]=new Map(),this[_0x3374('0x3d')](_0x3374('0x47'),null),this['annotations']=null,this[_0x3374('0x2')]=[],this[_0x3374('0x14')]=new _0x40e83d(),this[_0x3374('0x10')]=_0x3ad586(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x3374('0x38')](){this[_0x3374('0x59')]['plugins'][_0x3374('0x51')](_0x2ded05)[_0x3374('0x1e')](_0x3374('0x52'),this),this['bodyCollection']=new _0x2bfd67(this['context'][_0x3374('0x32')]),this[_0x3374('0x16')]=new _0x317d64(this['context'][_0x3374('0x32')]),this[_0x3374('0x55')]['attachToDom'](),this[_0x3374('0x55')]['add'](this[_0x3374('0x16')]);}[_0x3374('0x30')](_0x566e7f){this[_0x3374('0x33')]=_0x566e7f;const _0xe07385=this[_0x3374('0x59')][_0x3374('0x44')][_0x3374('0x51')](_0x251209),_0x3f5359=this[_0x3374('0x16')];if(_0xe07385['_annotations']=_0x566e7f,this[_0x3374('0x56')])throw new _0x2f7a32(_0x3374('0x27'),this);this[_0x3374('0x56')]=!0x0,this['listenTo'](_0xe07385,'set:container',()=>{this[_0x3374('0x2c')](),this[_0x3374('0x21')](_0xe07385,_0x3374('0x5f'),_0x4b95a2=>{_0x4b95a2[_0x3374('0x36')](),this['attach'](_0x566e7f);});}),_0xe07385[_0x3374('0x48')]({'viewClass':_0x3374('0x2a'),'spaceBetweenItems':0x5});const _0x495d70=_0x4974ae=>{const _0x23f45f=new _0x102116(this['context'][_0x3374('0x32')]);_0xe07385[_0x3374('0x19')](_0x4974ae,_0x23f45f),this[_0x3374('0x46')]['set'](_0x4974ae,_0x23f45f),_0x23f45f['bind'](_0x3374('0x41'),_0x3374('0xe'),_0x3374('0x4f'))['to'](_0x4974ae[_0x3374('0x15')],_0x3374('0x41'),'type',_0x3374('0x13')),_0x23f45f['on'](_0x3374('0xf'),()=>{this[_0x3374('0x0')][_0x3374('0x17')](),_0x3f5359[_0x3374('0x3')][_0x3374('0x5c')]!==_0x4974ae[_0x3374('0x15')]?(this[_0x3374('0x3c')](_0x4974ae),_0x4974ae[_0x3374('0x15')][_0x3374('0x37')][_0x3374('0x3f')](),this[_0x3374('0x20')](_0x4974ae)):this[_0x3374('0x20')](null);});};for(const _0x3dff9a of _0x566e7f)_0x495d70(_0x3dff9a);this['listenTo'](_0x566e7f,_0x3374('0x3b'),(_0x3eb89e,_0xacafd1)=>{_0x495d70(_0xacafd1);}),this[_0x3374('0x21')](_0x566e7f,'remove',(_0x23d15c,_0x372c13,_0x4a28c3)=>{this[_0x3374('0x46')][_0x3374('0x51')](_0x372c13)[_0x3374('0x34')](),this[_0x3374('0x46')][_0x3374('0x40')](_0x372c13),_0xe07385[_0x3374('0x18')]({'removedAnnotation':_0x372c13,'previousAnnotation':_0x566e7f[_0x3374('0x51')](_0x4a28c3-0x1),'nextAnnotation':_0x566e7f[_0x3374('0x51')](_0x4a28c3+0x1)}),_0x372c13===this[_0x3374('0x47')]&&this[_0x3374('0x20')](null);},{'priority':_0x3374('0x2e')}),this['listenTo'](_0x566e7f,_0x3374('0x3f'),(_0x2b7492,_0x1d3ab3)=>{this[_0x3374('0x20')](_0x1d3ab3);}),this[_0x3374('0x21')](_0x566e7f,_0x3374('0x54'),()=>{this[_0x3374('0x20')](null);}),this[_0x3374('0x4a')]['listenTo'](document,_0x3374('0x39'),(_0x22650,_0x30babc)=>{_0x30babc[_0x3374('0x5')]===_0x345dee['esc']&&_0x3f5359['isVisible']&&(this['_manuallyClosedAnnotationViews'][_0x3374('0x3b')](_0x3f5359[_0x3374('0x3')]['first']),this['_hideBalloon'](),_0x30babc['stopPropagation'](),_0x30babc[_0x3374('0x22')]());}),this[_0x3374('0x4a')][_0x3374('0x21')](document,_0x3374('0x7'),(_0x3bff48,_0x1a34c4)=>{const _0x445a57=_0x1a34c4[_0x3374('0x3a')];_0x3f5359['isVisible']&&_0x3f5359['element'][_0x3374('0x45')](_0x445a57)||_0xe07385[_0x3374('0x15')][_0x3374('0x37')][_0x3374('0x45')](_0x445a57)||_0x3bff48[_0x3374('0x1b')]||(this[_0x3374('0x0')]['clear'](),this[_0x3374('0x2d')](),this[_0x3374('0x20')](null));});const _0x313a7b=this[_0x3374('0x59')]instanceof _0x272b30?this[_0x3374('0x59')][_0x3374('0x6')]:new _0x40e83d([this[_0x3374('0x59')]]);for(const _0x427df4 of _0x313a7b)this[_0x3374('0x9')](_0x427df4);this[_0x3374('0x21')](_0x313a7b,'add',(_0x22689c,_0x30a5f7)=>{this['listenTo'](_0x30a5f7,_0x3374('0x53'),()=>{this[_0x3374('0x9')](_0x30a5f7);});}),this[_0x3374('0x21')](_0x313a7b,'remove',(_0xcf9366,_0x10b423)=>{_0x10b423[_0x3374('0x44')]['has'](_0x3374('0x1'))&&this[_0x3374('0xb')](_0x10b423['plugins'][_0x3374('0x51')](_0x3374('0x1')));}),window[_0x3374('0x57')]('resize',this[_0x3374('0x10')]),this[_0x3374('0xa')]();}[_0x3374('0x20')](_0x59e303){if(_0x59e303===this[_0x3374('0x47')])return;const _0x52ec30=this[_0x3374('0x59')][_0x3374('0x44')][_0x3374('0x51')](_0x251209);if(_0x52ec30[_0x3374('0x12')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x59e303,'disableAnimationOnActivatedAnnotation':!0x0}),_0x59e303)_0x52ec30[_0x3374('0x23')](_0x59e303)?this[_0x3374('0x3c')](_0x59e303):this[_0x3374('0x2d')]();else this[_0x3374('0x2d')]();this[_0x3374('0x47')]=_0x59e303;}[_0x3374('0x2c')](){if(!this['isAttached'])throw new _0x2f7a32(_0x3374('0x26'),this);this[_0x3374('0x20')](null);const _0x19d8ee=this[_0x3374('0x59')][_0x3374('0x44')][_0x3374('0x51')](_0x251209);this[_0x3374('0x2d')](),Array[_0x3374('0x2b')](this['_annotationToNarrowView'][_0x3374('0x35')](),_0x4bae21=>_0x4bae21[_0x3374('0x34')]()),this[_0x3374('0x46')][_0x3374('0x17')](),_0x19d8ee[_0x3374('0x5e')](this[_0x3374('0x33')]),this[_0x3374('0x49')](),this[_0x3374('0x4a')]['stopListening'](),this['context']instanceof _0x272b30&&this[_0x3374('0x49')](this[_0x3374('0x59')][_0x3374('0x6')]);for(const _0x527b38 of Array['from'](this[_0x3374('0x14')]))this[_0x3374('0xb')](_0x527b38);window[_0x3374('0x4')](_0x3374('0x2f'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x3374('0x4d')](),this[_0x3374('0x2')]=[],this['isAttached']=!0x1,this[_0x3374('0x33')]=null;}[_0x3374('0x34')](){this[_0x3374('0x56')]&&this['detach'](),this[_0x3374('0x55')]['detachFromDom']();}[_0x3374('0x9')](_0x26aef2){const _0x5f2eab=_0x26aef2[_0x3374('0x44')][_0x3374('0x51')](_0x2ff944),_0x351f72=this[_0x3374('0x59')][_0x3374('0x44')][_0x3374('0x51')](_0x251209),_0x2de6c8=this['annotations'],_0x29b404=this[_0x3374('0x16')],_0x4df15f=()=>{const _0x4d2a22=_0x5f2eab[_0x3374('0x1f')]({'annotations':this[_0x3374('0x33')],'activeAnnotation':this['activeAnnotation']});this[_0x3374('0xd')](_0x4d2a22),this[_0x3374('0x20')](_0x4d2a22[0x0]||null);};this[_0x3374('0x21')](_0x5f2eab,'refresh',_0x4df15f),this['listenTo'](_0x5f2eab,_0x3374('0x54'),(_0x25716d,{isAnnotationTracked:_0x32afd9})=>{this[_0x3374('0x47')]&&_0x32afd9(this[_0x3374('0x47')])&&(this[_0x3374('0xd')]([]),this[_0x3374('0x20')](null));}),this[_0x3374('0x21')](_0x5f2eab,'uiUpdate',()=>{this[_0x3374('0x10')]();}),this['listenTo'](_0x2de6c8,'blur',_0x5cdda0=>{_0x5f2eab[_0x3374('0x42')]()&&_0x5cdda0['stop']();},{'priority':_0x3374('0xc')}),this['listenTo'](this[_0x3374('0x4a')],'mousedown',(_0x57a0ed,_0x536738)=>{const _0x2c4dbd=_0x536738[_0x3374('0x3a')];_0x29b404[_0x3374('0x11')]&&_0x29b404[_0x3374('0x37')][_0x3374('0x45')](_0x2c4dbd)||_0x351f72['view'][_0x3374('0x37')][_0x3374('0x45')](_0x2c4dbd)||this[_0x3374('0x47')]&&_0x5f2eab[_0x3374('0x42')]()&&(_0x4df15f(),_0x57a0ed[_0x3374('0x1b')]=!0x0);},{'priority':_0x3374('0xc')}),this[_0x3374('0x14')]['add'](_0x5f2eab);}[_0x3374('0xb')](_0x327bae){_0x327bae&&(this[_0x3374('0x49')](_0x327bae),this['_editorAnnotations']['remove'](_0x327bae));}['_setSelectedAnnotations'](_0x4a5660){for(const _0x203e0f of this['_selectedAnnotations'])_0x4a5660[_0x3374('0x4b')](_0x203e0f)||this[_0x3374('0x0')][_0x3374('0x40')](_0x203e0f[_0x3374('0x15')]);this['_selectedAnnotations']=_0x4a5660;}[_0x3374('0xa')](){const _0x6ee1b3=this['balloonPanelView'];this[_0x3374('0x33')][_0x3374('0x4c')](),_0x6ee1b3[_0x3374('0x11')]&&this['_updateBalloonPosition']();}[_0x3374('0x3c')](_0x5add78){if(this[_0x3374('0x0')][_0x3374('0x58')](_0x5add78['view']))return;const _0x59ead6=this[_0x3374('0x16')][_0x3374('0x3')][_0x3374('0x5c')];_0x59ead6!==_0x5add78[_0x3374('0x15')]?(_0x59ead6&&this[_0x3374('0x24')](_0x59ead6),this[_0x3374('0x1d')](_0x5add78[_0x3374('0x15')]),this[_0x3374('0x16')][_0x3374('0x3')]['clear'](),this[_0x3374('0x16')][_0x3374('0x3')][_0x3374('0x3b')](_0x5add78[_0x3374('0x15')]),this[_0x3374('0x1a')]()):this[_0x3374('0x1a')]();}['_updateBalloonPosition'](){const _0x3b693=this[_0x3374('0x16')]['content'][_0x3374('0x5c')],_0x41d33f=_0x3b693&&this[_0x3374('0x33')][_0x3374('0x50')](_0x3b693);if(!_0x41d33f||!this[_0x3374('0x46')][_0x3374('0x58')](_0x41d33f))return;const _0x4601da=this[_0x3374('0x46')]['get'](_0x41d33f)[_0x3374('0x37')],_0xf1a2a2=function(){const _0x70da51=_0x317d64[_0x3374('0x3e')];return[_0x70da51[_0x3374('0x5d')],_0x70da51[_0x3374('0x25')],_0x70da51['southArrowNorth'],_0x70da51[_0x3374('0x29')],_0x70da51[_0x3374('0x43')],_0x70da51[_0x3374('0x28')]];}();this[_0x3374('0x16')][_0x3374('0x5b')]({'target':_0x4601da,'positions':_0xf1a2a2});}[_0x3374('0x2d')](){const _0x566789=this[_0x3374('0x16')],_0x5a4b09=_0x566789[_0x3374('0x3')]['first'];_0x5a4b09&&(this[_0x3374('0x24')](_0x5a4b09),_0x566789[_0x3374('0x31')](),_0x566789[_0x3374('0x3')]['clear']());}[_0x3374('0x1d')](_0x266877){this[_0x3374('0x21')](_0x266877,_0x3374('0x60'),()=>this[_0x3374('0x1a')]()),this[_0x3374('0x21')](_0x266877,_0x3374('0x4e'),(_0x2afe75,_0x2a5284)=>{this[_0x3374('0x0')][_0x3374('0x3b')](_0x266877),this['_hideBalloon'](),_0x2a5284();});}['_detachListeners'](_0x3e553f){this['stopListening'](_0x3e553f);}}
|
|
23
|
+
const _0x1c1c=['keydown','setActiveAnnotation','removeEventListener','destroy','rearrange','detach','_attachListeners','_showBalloon','change:container','add','stopPropagation','mousedown','context','narrowsidebar-attach-already-attached','esc','_annotationToNarrowView','northArrowSouthWest','_refreshPositioningDebounced','_detachListeners','bind','editors','northArrowSouthEast','southArrowNorthWest','refreshPositioning','getByView','remove','balloonPanelView','get','_attachToContainer','ck-sidebar--narrow','blur','view','detachFromDom','_updateBalloonPosition','element','_detachFromContainer','attachToDom','number','cancel','preventClosingBalloon','low','change:height','bodyCollection','NarrowSidebar','attach','annotations','init','contains','Esc','listenTo','stop','_hideBalloon','stopListening','_editorAnnotations','focus','includes','hasDomSelection','_setSelectedAnnotations','_selectedAnnotations','set:container','set','off','annotationType','content','isVisible','isDirty','addAnnotation','pin','defaultPositions','first','_destroyEditorAnnotationsIntegration','clear','delete','_refreshPositioning','resize','register','plugins','_domEmitter','isAttached','EditorAnnotations','southArrowNorth','has','_manuallyClosedAnnotationViews','from','requires','locale','getSidebarItemView','unpin','high','activeAnnotation','_integrateWithEditorAnnotations','addEventListener','uiUpdate'];(function(_0x2b57f2,_0x1c1c28){const _0x3c2cad=function(_0x3cc801){while(--_0x3cc801){_0x2b57f2['push'](_0x2b57f2['shift']());}};_0x3c2cad(++_0x1c1c28);}(_0x1c1c,0x11a));const _0x3c2c=function(_0x2b57f2,_0x1c1c28){_0x2b57f2=_0x2b57f2-0x0;let _0x3c2cad=_0x1c1c[_0x2b57f2];return _0x3c2cad;};import{ContextPlugin as _0x39b33d,Context as _0x482755}from'ckeditor5/src/core';import _0x5d97c4 from'./annotationsuis';import _0x41b3c8 from'./sidebar';import _0x3801c2 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2a46fc,BodyCollection as _0x451829}from'ckeditor5/src/ui';import{CKEditorError as _0x4759ee,DomEmitterMixin as _0x4aecff,keyCodes as _0x490116,Collection as _0xa5b00}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x14f141}from'lodash-es';import _0x5dabdb from'./editorannotations';export default class s extends _0x39b33d{static get[_0x3c2c('0x51')](){return[_0x41b3c8,_0x5d97c4];}static get['pluginName'](){return _0x3c2c('0x28');}constructor(_0x25afff){super(_0x25afff),this[_0x3c2c('0x4b')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x3c2c('0x4a')]=Object['create'](_0x4aecff),this[_0x3c2c('0xc')]=new Map(),this[_0x3c2c('0x39')]('activeAnnotation',null),this[_0x3c2c('0x2a')]=null,this[_0x3c2c('0x37')]=[],this[_0x3c2c('0x32')]=new _0xa5b00(),this[_0x3c2c('0xe')]=_0x14f141(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x3c2c('0x2b')](){this[_0x3c2c('0x9')][_0x3c2c('0x49')]['get'](_0x5d97c4)[_0x3c2c('0x48')]('narrowSidebar',this),this['bodyCollection']=new _0x451829(this[_0x3c2c('0x9')]['locale']),this[_0x3c2c('0x17')]=new _0x2a46fc(this['context'][_0x3c2c('0x52')]),this[_0x3c2c('0x27')][_0x3c2c('0x21')](),this[_0x3c2c('0x27')]['add'](this[_0x3c2c('0x17')]);}[_0x3c2c('0x29')](_0x3a0855){this[_0x3c2c('0x2a')]=_0x3a0855;const _0x2125d9=this[_0x3c2c('0x9')][_0x3c2c('0x49')][_0x3c2c('0x18')](_0x41b3c8),_0x27da25=this['balloonPanelView'];if(_0x2125d9['_annotations']=_0x3a0855,this[_0x3c2c('0x4b')])throw new _0x4759ee(_0x3c2c('0xa'),this);this[_0x3c2c('0x4b')]=!0x0,this[_0x3c2c('0x2e')](_0x2125d9,_0x3c2c('0x38'),()=>{this[_0x3c2c('0x2')](),this[_0x3c2c('0x2e')](_0x2125d9,_0x3c2c('0x5'),_0xdb40e3=>{_0xdb40e3[_0x3c2c('0x3a')](),this[_0x3c2c('0x29')](_0x3a0855);});}),_0x2125d9[_0x3c2c('0x19')]({'viewClass':_0x3c2c('0x1a'),'spaceBetweenItems':0x5});const _0x2b8637=_0x1a110e=>{const _0xca69ce=new _0x3801c2(this[_0x3c2c('0x9')][_0x3c2c('0x52')]);_0x2125d9[_0x3c2c('0x3f')](_0x1a110e,_0xca69ce),this[_0x3c2c('0xc')][_0x3c2c('0x39')](_0x1a110e,_0xca69ce),_0xca69ce[_0x3c2c('0x10')](_0x3c2c('0x3e'),_0x3c2c('0x3b'),_0x3c2c('0x22'))['to'](_0x1a110e[_0x3c2c('0x1c')],'isDirty','type','length'),_0xca69ce['on']('execute',()=>{this['_manuallyClosedAnnotationViews'][_0x3c2c('0x44')](),_0x27da25[_0x3c2c('0x3c')][_0x3c2c('0x42')]!==_0x1a110e[_0x3c2c('0x1c')]?(this[_0x3c2c('0x4')](_0x1a110e),_0x1a110e[_0x3c2c('0x1c')][_0x3c2c('0x1f')][_0x3c2c('0x33')](),this[_0x3c2c('0x5b')](_0x1a110e)):this[_0x3c2c('0x5b')](null);});};for(const _0x4de74e of _0x3a0855)_0x2b8637(_0x4de74e);this[_0x3c2c('0x2e')](_0x3a0855,_0x3c2c('0x6'),(_0xfce367,_0x4a07f0)=>{_0x2b8637(_0x4a07f0);}),this[_0x3c2c('0x2e')](_0x3a0855,'remove',(_0x23fa20,_0x52a221,_0x4cd56d)=>{this[_0x3c2c('0xc')][_0x3c2c('0x18')](_0x52a221)[_0x3c2c('0x0')](),this['_annotationToNarrowView'][_0x3c2c('0x45')](_0x52a221),_0x2125d9[_0x3c2c('0x1')]({'removedAnnotation':_0x52a221,'previousAnnotation':_0x3a0855['get'](_0x4cd56d-0x1),'nextAnnotation':_0x3a0855[_0x3c2c('0x18')](_0x4cd56d+0x1)}),_0x52a221===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':_0x3c2c('0x25')}),this['listenTo'](_0x3a0855,_0x3c2c('0x33'),(_0x177a03,_0x27ce04)=>{this[_0x3c2c('0x5b')](_0x27ce04);}),this[_0x3c2c('0x2e')](_0x3a0855,'blur',()=>{this[_0x3c2c('0x5b')](null);}),this[_0x3c2c('0x4a')]['listenTo'](document,_0x3c2c('0x5a'),(_0x299e87,_0x372ae9)=>{_0x372ae9['keyCode']===_0x490116[_0x3c2c('0xb')]&&_0x27da25['isVisible']&&(this[_0x3c2c('0x4f')]['add'](_0x27da25[_0x3c2c('0x3c')][_0x3c2c('0x42')]),this['_hideBalloon'](),_0x372ae9[_0x3c2c('0x7')](),_0x372ae9['preventDefault']());}),this[_0x3c2c('0x4a')][_0x3c2c('0x2e')](document,_0x3c2c('0x8'),(_0xc9637d,_0x3aa78b)=>{const _0x575c01=_0x3aa78b['target'];_0x27da25[_0x3c2c('0x3d')]&&_0x27da25[_0x3c2c('0x1f')][_0x3c2c('0x2c')](_0x575c01)||_0x2125d9[_0x3c2c('0x1c')][_0x3c2c('0x1f')][_0x3c2c('0x2c')](_0x575c01)||_0xc9637d['preventClosingBalloon']||(this[_0x3c2c('0x4f')][_0x3c2c('0x44')](),this[_0x3c2c('0x30')](),this[_0x3c2c('0x5b')](null));});const _0xa911f9=this[_0x3c2c('0x9')]instanceof _0x482755?this[_0x3c2c('0x9')][_0x3c2c('0x11')]:new _0xa5b00([this[_0x3c2c('0x9')]]);for(const _0x59641c of _0xa911f9)this[_0x3c2c('0x57')](_0x59641c);this[_0x3c2c('0x2e')](_0xa911f9,_0x3c2c('0x6'),(_0x1411b0,_0x483404)=>{this[_0x3c2c('0x2e')](_0x483404,'ready',()=>{this[_0x3c2c('0x57')](_0x483404);});}),this[_0x3c2c('0x2e')](_0xa911f9,_0x3c2c('0x16'),(_0x574e1e,_0x557180)=>{_0x557180[_0x3c2c('0x49')][_0x3c2c('0x4e')]('EditorAnnotations')&&this[_0x3c2c('0x43')](_0x557180[_0x3c2c('0x49')][_0x3c2c('0x18')](_0x3c2c('0x4c')));}),window[_0x3c2c('0x58')](_0x3c2c('0x47'),this[_0x3c2c('0xe')]),this[_0x3c2c('0x46')]();}['setActiveAnnotation'](_0x5f1fa4){if(_0x5f1fa4===this['activeAnnotation'])return;const _0x1827f7=this['context'][_0x3c2c('0x49')][_0x3c2c('0x18')](_0x41b3c8);if(_0x1827f7['refresh']({'blurredAnnotation':this[_0x3c2c('0x56')],'activatedAnnotation':_0x5f1fa4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5f1fa4)_0x1827f7[_0x3c2c('0x53')](_0x5f1fa4)?this[_0x3c2c('0x4')](_0x5f1fa4):this[_0x3c2c('0x30')]();else this['_hideBalloon']();this[_0x3c2c('0x56')]=_0x5f1fa4;}[_0x3c2c('0x2')](){if(!this[_0x3c2c('0x4b')])throw new _0x4759ee('narrowsidebar-detach-not-attached',this);this[_0x3c2c('0x5b')](null);const _0x1cd1f6=this[_0x3c2c('0x9')][_0x3c2c('0x49')][_0x3c2c('0x18')](_0x41b3c8);this['_hideBalloon'](),Array['from'](this[_0x3c2c('0xc')]['values'](),_0x4802f9=>_0x4802f9['destroy']()),this[_0x3c2c('0xc')][_0x3c2c('0x44')](),_0x1cd1f6[_0x3c2c('0x20')](this[_0x3c2c('0x2a')]),this[_0x3c2c('0x31')](),this[_0x3c2c('0x4a')][_0x3c2c('0x31')](),this[_0x3c2c('0x9')]instanceof _0x482755&&this[_0x3c2c('0x31')](this[_0x3c2c('0x9')][_0x3c2c('0x11')]);for(const _0x1d9a97 of Array[_0x3c2c('0x50')](this['_editorAnnotations']))this[_0x3c2c('0x43')](_0x1d9a97);window[_0x3c2c('0x5c')](_0x3c2c('0x47'),this[_0x3c2c('0xe')]),this[_0x3c2c('0xe')][_0x3c2c('0x23')](),this[_0x3c2c('0x37')]=[],this[_0x3c2c('0x4b')]=!0x1,this[_0x3c2c('0x2a')]=null;}[_0x3c2c('0x0')](){this[_0x3c2c('0x4b')]&&this[_0x3c2c('0x2')](),this[_0x3c2c('0x27')][_0x3c2c('0x1d')]();}['_integrateWithEditorAnnotations'](_0x78a930){const _0x3e20c0=_0x78a930[_0x3c2c('0x49')][_0x3c2c('0x18')](_0x5dabdb),_0x53aee6=this['context'][_0x3c2c('0x49')]['get'](_0x41b3c8),_0x22511a=this[_0x3c2c('0x2a')],_0x1ae84a=this['balloonPanelView'],_0x425783=()=>{const _0x50354a=_0x3e20c0['getOrderedSelectedAnnotations']({'annotations':this[_0x3c2c('0x2a')],'activeAnnotation':this[_0x3c2c('0x56')]});this[_0x3c2c('0x36')](_0x50354a),this[_0x3c2c('0x5b')](_0x50354a[0x0]||null);};this['listenTo'](_0x3e20c0,'refresh',_0x425783),this['listenTo'](_0x3e20c0,'blur',(_0x511d56,{isAnnotationTracked:_0x3e8ef2})=>{this[_0x3c2c('0x56')]&&_0x3e8ef2(this[_0x3c2c('0x56')])&&(this['_setSelectedAnnotations']([]),this[_0x3c2c('0x5b')](null));}),this['listenTo'](_0x3e20c0,_0x3c2c('0x59'),()=>{this[_0x3c2c('0xe')]();}),this[_0x3c2c('0x2e')](_0x22511a,_0x3c2c('0x1b'),_0x17e3d6=>{_0x3e20c0['hasDomSelection']()&&_0x17e3d6[_0x3c2c('0x2f')]();},{'priority':_0x3c2c('0x55')}),this[_0x3c2c('0x2e')](this[_0x3c2c('0x4a')],_0x3c2c('0x8'),(_0x14055a,_0x250bed)=>{const _0x3acb71=_0x250bed['target'];_0x1ae84a[_0x3c2c('0x3d')]&&_0x1ae84a[_0x3c2c('0x1f')][_0x3c2c('0x2c')](_0x3acb71)||_0x53aee6[_0x3c2c('0x1c')][_0x3c2c('0x1f')][_0x3c2c('0x2c')](_0x3acb71)||this['activeAnnotation']&&_0x3e20c0[_0x3c2c('0x35')]()&&(_0x425783(),_0x14055a[_0x3c2c('0x24')]=!0x0);},{'priority':_0x3c2c('0x55')}),this[_0x3c2c('0x32')]['add'](_0x3e20c0);}[_0x3c2c('0x43')](_0x3c226d){_0x3c226d&&(this[_0x3c2c('0x31')](_0x3c226d),this['_editorAnnotations'][_0x3c2c('0x16')](_0x3c226d));}[_0x3c2c('0x36')](_0x348ff8){for(const _0x25f0d1 of this[_0x3c2c('0x37')])_0x348ff8[_0x3c2c('0x34')](_0x25f0d1)||this['_manuallyClosedAnnotationViews'][_0x3c2c('0x45')](_0x25f0d1[_0x3c2c('0x1c')]);this[_0x3c2c('0x37')]=_0x348ff8;}['_refreshPositioning'](){const _0x45f2f6=this[_0x3c2c('0x17')];this[_0x3c2c('0x2a')][_0x3c2c('0x14')](),_0x45f2f6[_0x3c2c('0x3d')]&&this['_updateBalloonPosition']();}[_0x3c2c('0x4')](_0x500efd){if(this[_0x3c2c('0x4f')]['has'](_0x500efd['view']))return;const _0x12b896=this[_0x3c2c('0x17')][_0x3c2c('0x3c')][_0x3c2c('0x42')];_0x12b896!==_0x500efd[_0x3c2c('0x1c')]?(_0x12b896&&this[_0x3c2c('0xf')](_0x12b896),this[_0x3c2c('0x3')](_0x500efd[_0x3c2c('0x1c')]),this[_0x3c2c('0x17')]['content'][_0x3c2c('0x44')](),this['balloonPanelView'][_0x3c2c('0x3c')][_0x3c2c('0x6')](_0x500efd[_0x3c2c('0x1c')]),this[_0x3c2c('0x1e')]()):this[_0x3c2c('0x1e')]();}[_0x3c2c('0x1e')](){const _0x37ab37=this[_0x3c2c('0x17')][_0x3c2c('0x3c')][_0x3c2c('0x42')],_0x3d8535=_0x37ab37&&this['annotations'][_0x3c2c('0x15')](_0x37ab37);if(!_0x3d8535||!this[_0x3c2c('0xc')]['has'](_0x3d8535))return;const _0x1ddc15=this[_0x3c2c('0xc')][_0x3c2c('0x18')](_0x3d8535)[_0x3c2c('0x1f')],_0x54340b=function(){const _0x44d0e6=_0x2a46fc[_0x3c2c('0x41')];return[_0x44d0e6['southArrowNorthEast'],_0x44d0e6[_0x3c2c('0x12')],_0x44d0e6[_0x3c2c('0x4d')],_0x44d0e6['northArrowSouth'],_0x44d0e6[_0x3c2c('0x13')],_0x44d0e6[_0x3c2c('0xd')]];}();this[_0x3c2c('0x17')][_0x3c2c('0x40')]({'target':_0x1ddc15,'positions':_0x54340b});}['_hideBalloon'](){const _0x579779=this['balloonPanelView'],_0x2e9c1e=_0x579779[_0x3c2c('0x3c')][_0x3c2c('0x42')];_0x2e9c1e&&(this[_0x3c2c('0xf')](_0x2e9c1e),_0x579779[_0x3c2c('0x54')](),_0x579779[_0x3c2c('0x3c')][_0x3c2c('0x44')]());}[_0x3c2c('0x3')](_0x2b150a){this[_0x3c2c('0x2e')](_0x2b150a,_0x3c2c('0x26'),()=>this['_updateBalloonPosition']()),this['listenTo'](_0x2b150a,_0x3c2c('0x2d'),(_0x2f2e54,_0xf18cae)=>{this[_0x3c2c('0x4f')][_0x3c2c('0x6')](_0x2b150a),this[_0x3c2c('0x30')](),_0xf18cae();});}['_detachListeners'](_0x3f76ae){this[_0x3c2c('0x31')](_0x3f76ae);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x478e=['isActive','change:_lastItem','change:top','set','context','_recalculate','addAnnotation','_getItemAfter','_alignToTargetRect','minHeight','_lastItem','_sidebarItemViewToAnnotation','content','getSidebarItemView','_createSidebarView','sidebar.container','updateHeight','locale','_updateLastItem','appendChild','_spaceBetweenItems','init','_activeAnnotation','_alignForTopChange','delete','class','_alignAfterItem','nodeType','view','_alignBeforeItem','targetRect','_getMaxAvailableTop','sidebar-attachtocontainer-missing-container','_alignForBottomChange','target','destroy','add','Sidebar','rearrange','_getItemBefore','container','_annotations','listenTo','list','last','clear','bottom','get','top','_setItemTop','setContainer','_getTargetTop','pluginName','_attachToContainer','remove','object','length','_recalculateBuffer','max','refresh','isAnimationDisabled','element','getIndex','stopListening','sidebar.preventScrollOutOfView','push','define','config','_destroySidebarItemView','_annotationToSidebarItemView'];(function(_0x3863eb,_0x478ed5){const _0x44ea1d=function(_0x58db20){while(--_0x58db20){_0x3863eb['push'](_0x3863eb['shift']());}};_0x44ea1d(++_0x478ed5);}(_0x478e,0x151));const _0x44ea=function(_0x3863eb,_0x478ed5){_0x3863eb=_0x3863eb-0x0;let _0x44ea1d=_0x478e[_0x3863eb];return _0x44ea1d;};import{ContextPlugin as _0x4118ae}from'ckeditor5/src/core';import{Rect as _0x10d998,CKEditorError as _0x2ef0bb}from'ckeditor5/src/utils';import _0x2e537e from'./view/sidebarview';import _0x2bc5aa from'./view/sidebaritemview';export default class z extends _0x4118ae{static get[_0x44ea('0x41')](){return _0x44ea('0x32');}constructor(_0x394e47){super(_0x394e47),this['set'](_0x44ea('0x17'),void 0x0),this[_0x44ea('0x29')]=this[_0x44ea('0x1b')](),this[_0x44ea('0x10')]('container',null),this[_0x44ea('0x21')]=0x19,this[_0x44ea('0x18')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x44ea('0x11')][_0x44ea('0xa')][_0x44ea('0x9')](_0x44ea('0x7'),!0x1),this[_0x44ea('0x36')]=null,this[_0x44ea('0x23')]=null,this[_0x44ea('0x0')]=[];}[_0x44ea('0x22')](){const _0x3f97a4=this[_0x44ea('0x11')]['config'][_0x44ea('0x3c')](_0x44ea('0x1c'));_0x3f97a4&&this[_0x44ea('0x3f')](_0x3f97a4);}[_0x44ea('0x3f')](_0x554c81){if(!y(_0x554c81))throw new _0x2ef0bb('sidebar-setcontainer-invalid-element');this[_0x44ea('0x35')]=_0x554c81;}[_0x44ea('0x42')]({viewClass:_0xaef0fb='',spaceBetweenItems:_0x31a90d=0x19}={}){if(!y(this[_0x44ea('0x35')]))throw new _0x2ef0bb(_0x44ea('0x2d'),this);this[_0x44ea('0x35')][_0x44ea('0x20')](this[_0x44ea('0x29')][_0x44ea('0x4')]),this[_0x44ea('0x29')]['class']=_0xaef0fb,this[_0x44ea('0x21')]=_0x31a90d;}[_0x44ea('0x33')]({removedAnnotation:_0xffe07b,previousAnnotation:_0x1a357d,nextAnnotation:_0x56cae9}){const _0x51b171=this[_0x44ea('0x1a')](_0xffe07b);this['view'][_0x44ea('0x38')][_0x44ea('0x43')](_0x51b171),this['_destroySidebarItemView'](_0xffe07b),_0x1a357d&&this[_0x44ea('0x15')](this[_0x44ea('0x1a')](_0x1a357d)),_0x56cae9&&this[_0x44ea('0x15')](this[_0x44ea('0x1a')](_0x56cae9)),this['_updateLastItem']();}[_0x44ea('0x2')]({blurredAnnotation:_0x41b769,activatedAnnotation:_0x16d19b,disableAnimationOnActivatedAnnotation:_0x487022}){if(this[_0x44ea('0x23')]=_0x16d19b,_0x41b769){_0x41b769['isActive']=!0x1;const _0x17b1a0=this[_0x44ea('0x1a')](_0x41b769);_0x17b1a0&&_0x487022&&(_0x17b1a0[_0x44ea('0x3')]=!0x1);}if(_0x16d19b){const _0x27183c=this['getSidebarItemView'](_0x16d19b);_0x27183c&&(_0x16d19b[_0x44ea('0xd')]=!0x0,_0x487022&&(_0x27183c['isAnimationDisabled']=!0x0,_0x27183c[_0x44ea('0x3d')]+=0x1),this['_alignToTargetRect'](_0x27183c));}}['_detachFromContainer'](_0x5bc3e7){if(this[_0x44ea('0x6')](),this[_0x44ea('0x29')][_0x44ea('0x4')][_0x44ea('0x43')](),_0x5bc3e7)for(const _0x3e344c of _0x5bc3e7)this['_destroySidebarItemView'](_0x3e344c);this[_0x44ea('0x29')][_0x44ea('0x38')][_0x44ea('0x3a')](),this[_0x44ea('0x29')][_0x44ea('0x26')]='',this[_0x44ea('0x17')]=null;}[_0x44ea('0x13')](_0x369d0b,_0x39b654){_0x39b654||(_0x39b654=_0x369d0b[_0x44ea('0x29')]);const _0x219a6d=new _0x2bc5aa(this[_0x44ea('0x11')][_0x44ea('0x1e')]);this[_0x44ea('0x18')][_0x44ea('0x10')](_0x219a6d,_0x369d0b),this['_annotationToSidebarItemView'][_0x44ea('0x10')](_0x369d0b,_0x219a6d),_0x219a6d[_0x44ea('0x19')][_0x44ea('0x31')](_0x39b654),this[_0x44ea('0x37')](_0x369d0b[_0x44ea('0x29')],'change:targetRect',(_0x42155f,_0x5097d8,_0x3dc500)=>{const _0xdaa5e1=this[_0x44ea('0x40')](_0x369d0b,_0x3dc500);_0x219a6d['_targetTop']!=_0xdaa5e1&&(_0x219a6d['_targetTop']=_0xdaa5e1,this[_0x44ea('0x3e')](_0x219a6d,_0xdaa5e1));}),this[_0x44ea('0x37')](_0x219a6d,_0x44ea('0xf'),()=>{this[_0x44ea('0x12')](_0x219a6d,_0x44ea('0x3d'));}),this[_0x44ea('0x37')](_0x219a6d,'change:bottom',()=>{this[_0x44ea('0x12')](_0x219a6d,_0x44ea('0x3b'));}),this['_alignToTargetRect'](_0x219a6d);const _0x5973be=this[_0x44ea('0x34')](_0x219a6d);if(_0x5973be)this[_0x44ea('0x27')](_0x5973be,_0x219a6d)||this[_0x44ea('0x15')](_0x219a6d);else this[_0x44ea('0x15')](_0x219a6d);return this[_0x44ea('0x1f')](),this[_0x44ea('0x29')]['list']['add'](_0x219a6d),_0x219a6d;}[_0x44ea('0x24')](_0x174c1b){if(!_0x174c1b[_0x44ea('0x19')]['length'])return;const _0x53f621=this[_0x44ea('0x34')](_0x174c1b);if(!_0x53f621)return;const _0x2f684e=this[_0x44ea('0x18')][_0x44ea('0x3c')](_0x53f621),_0x532bee=this['_activeAnnotation'];_0x532bee&&_0x532bee===_0x2f684e?this[_0x44ea('0x27')](_0x53f621,_0x174c1b):this[_0x44ea('0x2a')](_0x174c1b,_0x53f621);}[_0x44ea('0x2e')](_0x298fa9){if(!_0x298fa9[_0x44ea('0x19')][_0x44ea('0x45')])return;const _0x3aa9b2=this['_getItemAfter'](_0x298fa9);if(!_0x3aa9b2)return;const _0x5cb701=this[_0x44ea('0x18')][_0x44ea('0x3c')](_0x3aa9b2),_0x25ec7a=this[_0x44ea('0x11')][_0x44ea('0xa')][_0x44ea('0x3c')](_0x44ea('0x7')),_0x41ed93=this[_0x44ea('0x23')];_0x41ed93&&_0x41ed93===_0x5cb701&&_0x25ec7a?(this['_alignBeforeItem'](_0x3aa9b2,_0x298fa9),this[_0x44ea('0x27')](_0x298fa9,_0x3aa9b2)):_0x41ed93&&_0x41ed93===_0x5cb701?this['_alignBeforeItem'](_0x3aa9b2,_0x298fa9):this['_alignAfterItem'](_0x298fa9,_0x3aa9b2);}[_0x44ea('0x12')](_0x840fd2,_0x37cebf){0x0===this[_0x44ea('0x0')][_0x44ea('0x45')]&&setTimeout(()=>{for(const {sidebarItemView:_0x3b6f5e,changedProp:_0x17bd3a}of this[_0x44ea('0x0')])_0x44ea('0x3d')===_0x17bd3a?this['_alignForTopChange'](_0x3b6f5e):this[_0x44ea('0x2e')](_0x3b6f5e);this['_recalculateBuffer']=[];},0xa),this[_0x44ea('0x0')][_0x44ea('0x8')]({'sidebarItemView':_0x840fd2,'changedProp':_0x37cebf});}[_0x44ea('0x1a')](_0x28c277){return this[_0x44ea('0xc')][_0x44ea('0x3c')](_0x28c277);}[_0x44ea('0x30')](){this['view']['destroy']();}[_0x44ea('0xb')](_0xbb216b){const _0xbd484e=this[_0x44ea('0x1a')](_0xbb216b);this['stopListening'](_0xbd484e),this[_0x44ea('0x6')](_0xbb216b[_0x44ea('0x29')]),_0xbd484e[_0x44ea('0x30')](),this[_0x44ea('0xc')][_0x44ea('0x25')](_0xbb216b),this[_0x44ea('0x18')][_0x44ea('0x25')](_0xbd484e);}[_0x44ea('0x1b')](){const _0x228b35=new _0x2e537e(this[_0x44ea('0x11')][_0x44ea('0x1e')]);return _0x228b35['render'](),this['on'](_0x44ea('0xe'),(_0x32854b,_0x43569a,_0x3b2dae,_0x369718)=>{_0x369718&&_0x228b35['unbind']('minHeight'),_0x3b2dae?_0x228b35['bind'](_0x44ea('0x16'))['to'](_0x3b2dae,_0x44ea('0x3b')):_0x228b35[_0x44ea('0x16')]=null;}),_0x228b35;}[_0x44ea('0x1f')](){var _0x3d5904;this[_0x44ea('0x17')]=(null===(_0x3d5904=this[_0x44ea('0x36')])||void 0x0===_0x3d5904?void 0x0:_0x3d5904['last'])?this[_0x44ea('0x1a')](this[_0x44ea('0x36')][_0x44ea('0x39')]):null;}['_getItemBefore'](_0x5f41d8){var _0x4ec1e8;const _0x27f925=this[_0x44ea('0x18')][_0x44ea('0x3c')](_0x5f41d8),_0xa34464=_0x27f925&&(null===(_0x4ec1e8=this[_0x44ea('0x36')])||void 0x0===_0x4ec1e8?void 0x0:_0x4ec1e8['get'](this[_0x44ea('0x36')][_0x44ea('0x5')](_0x27f925)-0x1));return _0xa34464&&this[_0x44ea('0x1a')](_0xa34464)||null;}[_0x44ea('0x14')](_0x329e20){var _0x489184;const _0x3e86e2=this[_0x44ea('0x18')][_0x44ea('0x3c')](_0x329e20),_0x2057d9=_0x3e86e2&&(null===(_0x489184=this['_annotations'])||void 0x0===_0x489184?void 0x0:_0x489184[_0x44ea('0x3c')](this['_annotations']['getIndex'](_0x3e86e2)+0x1));return _0x2057d9&&this[_0x44ea('0x1a')](_0x2057d9)||null;}[_0x44ea('0x2a')](_0x2f7b53,_0xceb91f){_0x2f7b53[_0x44ea('0x1d')]();const _0x34a847=H(_0xceb91f[_0x44ea('0x3b')]+this[_0x44ea('0x21')],_0x2f7b53[_0x44ea('0x3d')]);return!!_0x34a847&&(this[_0x44ea('0x3e')](_0xceb91f,_0xceb91f[_0x44ea('0x3d')]-_0x34a847),!0x0);}[_0x44ea('0x27')](_0x3ba8a0,_0x4da935){_0x3ba8a0['updateHeight']();const _0x155b6a=H(_0x3ba8a0[_0x44ea('0x3b')]+this['_spaceBetweenItems'],_0x4da935[_0x44ea('0x3d')]);return!!_0x155b6a&&(this[_0x44ea('0x3e')](_0x4da935,_0x4da935['top']+_0x155b6a,!0x1),!0x0);}[_0x44ea('0x15')](_0x17075a){const _0x17925b=this[_0x44ea('0x18')][_0x44ea('0x3c')](_0x17075a);if(!_0x17925b||!_0x17925b['target']||!_0x17925b[_0x44ea('0x2b')])return;const _0x2a9f6f=this[_0x44ea('0x40')](_0x17925b,_0x17925b[_0x44ea('0x2b')]);this[_0x44ea('0x3e')](_0x17075a,_0x2a9f6f);}[_0x44ea('0x40')](_0xa513ea,_0x377b80){if(null===_0x377b80)return 0x0;if(_0xa513ea[_0x44ea('0x2f')]instanceof _0x10d998)return _0x377b80[_0x44ea('0x3d')];{const _0x1453b3=new _0x10d998(this[_0x44ea('0x29')][_0x44ea('0x4')])[_0x44ea('0x3d')];return _0x377b80['top']-_0x1453b3;}}[_0x44ea('0x3e')](_0x37256e,_0x343112,_0x276985=this[_0x44ea('0x11')][_0x44ea('0xa')][_0x44ea('0x3c')](_0x44ea('0x7'))){_0x276985&&(_0x343112=Math[_0x44ea('0x1')](_0x343112,this['_getMaxAvailableTop'](_0x37256e))),_0x37256e[_0x44ea('0x3d')]=_0x343112;}[_0x44ea('0x2c')](_0x431c87){let _0x37edb5=this[_0x44ea('0x34')](_0x431c87),_0x25ef40=0x0;for(;_0x37edb5;)_0x37edb5['updateHeight'](),_0x25ef40+=this[_0x44ea('0x21')]+_0x37edb5['height'],_0x37edb5=this['_getItemBefore'](_0x37edb5);return _0x25ef40;}}function H(_0x129f42,_0x57cf5e){return Math[_0x44ea('0x1')](_0x129f42-_0x57cf5e,0x0);}function y(_0x4bd9a7){return null!==_0x4bd9a7&&_0x44ea('0x44')==typeof _0x4bd9a7&&0x1===_0x4bd9a7[_0x44ea('0x28')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3faf=['toString','number','bindTemplate','extendTemplate','set','ck-annotation-counter__badge','_badge','isDirty','ck-annotation-counter__badge--edit-mode','annotationType','counterView','add','bind','children','ck-annotation-counter__badge--','span'];(function(_0x37934e,_0x3faf70){const _0x42e3f1=function(_0xe486f2){while(--_0xe486f2){_0x37934e['push'](_0x37934e['shift']());}};_0x42e3f1(++_0x3faf70);}(_0x3faf,0x14d));const _0x42e3=function(_0x37934e,_0x3faf70){_0x37934e=_0x37934e-0x0;let _0x42e3f1=_0x3faf[_0x37934e];return _0x42e3f1;};import{ButtonView as _0x37057a,View as _0x670717}from'ckeditor5/src/ui';import _0x54ac02 from'../../../theme/icons/add-comment.svg';export default class D extends _0x37057a{constructor(_0x1b5994){super(_0x1b5994);const _0x2b744=this[_0x42e3('0x5')];this['set'](_0x42e3('0xa'),!0x1),this[_0x42e3('0x7')]('number',0x0),this[_0x42e3('0xf')](_0x42e3('0x9'))['to'](this,_0x42e3('0xa'),this,_0x42e3('0x4'),(_0x33c361,_0x3a051d)=>_0x33c361?'...':_0x3a051d[_0x42e3('0x3')]()),this[_0x42e3('0x7')](_0x42e3('0xc'),''),this['icon']=_0x54ac02,this[_0x42e3('0x6')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x42e3('0xd')]=new _0x670717(),this[_0x42e3('0xd')]['setTemplate']({'tag':_0x42e3('0x2'),'attributes':{'class':[_0x42e3('0x8'),_0x2b744['to'](_0x42e3('0xc'),_0x29481b=>_0x42e3('0x1')+_0x29481b),_0x2b744['if']('isDirty',_0x42e3('0xb'))]},'children':[{'text':_0x2b744['to'](_0x42e3('0x9'))}]}),this[_0x42e3('0x0')][_0x42e3('0xe')](this[_0x42e3('0xd')]);}}
|