@ckeditor/ckeditor5-comments 0.0.0-nightly-20231102.0 → 0.0.0-nightly-20231104.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/LICENSE.md +3 -3
- 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-20231104.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-20231104.0",
|
|
47
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231104.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 _0x6e83=['getClientRects','focusableElements','_id','item','target','_assertCorrectTarget','add','element','function','_getNormalizedTarget','destroy','view','filter','remove','isActive','_type','targetRect','_target','updateTargetRect','every','focusTracker','refreshVisibility','type','isVisible','innerView','mainView','offsetParent','stopListening','annotation-invalid-target','length','render','set','object'];(function(_0x90038f,_0x6e83ed){const _0x4961e1=function(_0x9313c7){while(--_0x9313c7){_0x90038f['push'](_0x90038f['shift']());}};_0x4961e1(++_0x6e83ed);}(_0x6e83,0x89));const _0x4961=function(_0x90038f,_0x6e83ed){_0x90038f=_0x90038f-0x0;let _0x4961e1=_0x6e83[_0x90038f];return _0x4961e1;};import{CKEditorError as _0x48fc3c,Rect as _0x1ff0cb,Collection as _0x506a5a,ObservableMixin as _0x5ba69c}from'ckeditor5/src/utils';export default class d extends _0x5ba69c(){constructor({view:_0x599ef2,target:_0x4e3001,type:_0x290184,isVisible:_0x1a7f20=!0x0}){super(),this[_0x4961('0x6')]=_0x599ef2,this[_0x4961('0x6')][_0x4961('0x2')]||this['view'][_0x4961('0x19')](),this[_0x4961('0xa')]=_0x290184,this[_0x4961('0xc')]=_0x4e3001,d[_0x4961('0x0')](this[_0x4961('0x4')]()),this[_0x4961('0x1d')]=new _0x506a5a([this['view'][_0x4961('0x2')]],{'idProperty':_0x4961('0x1e')}),this[_0x4961('0x1d')]['on']('add',(_0x5d2b4a,_0x3188eb)=>{this[_0x4961('0x6')][_0x4961('0xf')][_0x4961('0x1')](_0x3188eb);}),this[_0x4961('0x1d')]['on'](_0x4961('0x8'),(_0x12ec04,_0x1ca2b8)=>{this['view'][_0x4961('0xf')]['remove'](_0x1ca2b8);}),this[_0x4961('0x1a')](_0x4961('0x12'),_0x1a7f20);}get[_0x4961('0x11')](){return'function'==typeof this[_0x4961('0xa')]?this[_0x4961('0xa')]():this[_0x4961('0xa')];}get[_0x4961('0x13')](){return this[_0x4961('0x6')][_0x4961('0x14')];}get['target'](){const _0x44c2fd=this['_getNormalizedTarget']();return d[_0x4961('0x0')](_0x44c2fd),_0x44c2fd;}get[_0x4961('0xb')](){const _0x1cf225=this[_0x4961('0x20')];if(null===_0x1cf225)return null;if(_0x1cf225 instanceof _0x1ff0cb)return _0x1cf225;const _0x5ce459=_0x1cf225[_0x4961('0x7')](_0xef5bc9=>function(_0x1f2b6d){const _0x108bd3=_0x1f2b6d[_0x4961('0x15')];if(_0x108bd3)return!0x0;const _0xba4493=_0x1f2b6d[_0x4961('0x1c')]()[_0x4961('0x1f')](0x0);return!!_0xba4493;}(_0xef5bc9));return 0x0===_0x5ce459[_0x4961('0x18')]?null:new _0x1ff0cb(_0x5ce459[0x0][_0x4961('0x1c')]()['item'](0x0));}get[_0x4961('0x9')](){return this[_0x4961('0x6')][_0x4961('0x9')];}set[_0x4961('0x9')](_0x5a05ce){this[_0x4961('0x6')][_0x4961('0x9')]=_0x5a05ce,this[_0x4961('0x6')][_0x4961('0x14')][_0x4961('0x9')]=_0x5a05ce;}[_0x4961('0xd')](){this['view'][_0x4961('0xb')]=this[_0x4961('0xb')];}[_0x4961('0x5')](){this[_0x4961('0x1d')][_0x4961('0x16')](),this[_0x4961('0x1d')]['clear'](),this[_0x4961('0x16')]();}[_0x4961('0x10')](){this[_0x4961('0x12')]=!!this[_0x4961('0xb')];}static['_assertCorrectTarget'](_0x2779ad){if(!(null===_0x2779ad||_0x2779ad instanceof _0x1ff0cb||Array['isArray'](_0x2779ad)&&_0x2779ad[_0x4961('0xe')](_0x43338b=>y(_0x43338b))))throw new _0x48fc3c(_0x4961('0x17'),null,{'target':_0x2779ad});}['_getNormalizedTarget'](){const _0x151c92=_0x4961('0x3')==typeof this[_0x4961('0xc')]?this[_0x4961('0xc')]():this['_target'];return y(_0x151c92)?[_0x151c92]:_0x151c92;}}function y(_0x186ddc){return null!==_0x186ddc&&_0x4961('0x1b')==typeof _0x186ddc&&'nodeType'in _0x186ddc&&0x1===_0x186ddc['nodeType'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5586=['length','focusableElements','targetRect','annotationcollection-not-existing-item','_getOrderInContent','blur','add','has','annotationcollection-duplicated-item','innerView','set','listenTo','sort','clear','getByView','change:isFocused','delete','fire','focus','_sort','_viewToAnnotation','left','updateTargetRect','get','_focusTracker','from','view','isFocused','top','_innerViewToAnnotation','stopListening','remove','focusTracker'];(function(_0xe40f6d,_0x558699){const _0x461c01=function(_0x129aad){while(--_0x129aad){_0xe40f6d['push'](_0xe40f6d['shift']());}};_0x461c01(++_0x558699);}(_0x5586,0x9f));const _0x461c=function(_0xe40f6d,_0x558699){_0xe40f6d=_0xe40f6d-0x0;let _0x461c01=_0x5586[_0xe40f6d];return _0x461c01;};import{CKEditorError as _0x36c164,Collection as _0x3ebb8b,FocusTracker as _0x35ee43}from'ckeditor5/src/utils';export default class x extends _0x3ebb8b{constructor(_0x322380=[]){super(),this[_0x461c('0x2')]=new Map(),this[_0x461c('0x1a')]=new Map(),this[_0x461c('0x1e')]=new _0x35ee43(),this[_0x461c('0x1e')]['on']('change:isFocused',(_0x31a1ef,_0x4d203f,_0x4781db)=>{_0x4781db||this['fire'](_0x461c('0xb'));});for(const _0x43e862 of _0x322380)this['add'](_0x43e862);}get[_0x461c('0x0')](){return this['_focusTracker'][_0x461c('0x0')];}[_0x461c('0xc')](_0x5ab013){if(this[_0x461c('0xd')](_0x5ab013))throw new _0x36c164(_0x461c('0xe'),null);this['_innerViewToAnnotation']['set'](_0x5ab013[_0x461c('0xf')],_0x5ab013),this[_0x461c('0x1a')][_0x461c('0x10')](_0x5ab013[_0x461c('0x20')],_0x5ab013);for(const _0x5170b7 of _0x5ab013['focusableElements'])this[_0x461c('0x1e')][_0x461c('0xc')](_0x5170b7);this[_0x461c('0x11')](_0x5ab013[_0x461c('0x7')],'add',(_0x4ce69f,_0x1f67f2)=>{this[_0x461c('0x1e')][_0x461c('0xc')](_0x1f67f2);}),this[_0x461c('0x11')](_0x5ab013['focusableElements'],'remove',(_0x472b54,_0x5354a7)=>{this[_0x461c('0x1e')][_0x461c('0x4')](_0x5354a7);}),this[_0x461c('0x11')](_0x5ab013['view']['focusTracker'],_0x461c('0x15'),(_0x240837,_0x532f8a,_0x585634)=>{_0x585634&&this[_0x461c('0x17')](_0x461c('0x18'),_0x5ab013);}),_0x5ab013['updateTargetRect']();const _0x10e811=this[_0x461c('0xa')](_0x5ab013[_0x461c('0x20')][_0x461c('0x8')]);return super['add'](_0x5ab013,_0x10e811);}['remove'](_0xcad97c){if(!this['has'](_0xcad97c))throw new _0x36c164(_0x461c('0x9'),null);this[_0x461c('0x3')](_0xcad97c[_0x461c('0x20')][_0x461c('0x5')]),this[_0x461c('0x3')](_0xcad97c[_0x461c('0x7')]);for(const _0x1853f0 of _0xcad97c[_0x461c('0x7')])this[_0x461c('0x1e')]['remove'](_0x1853f0);return this['_viewToAnnotation']['delete'](_0xcad97c[_0x461c('0x20')]),this[_0x461c('0x2')][_0x461c('0x16')](_0xcad97c[_0x461c('0xf')]),super[_0x461c('0x4')](_0xcad97c);}['getByInnerView'](_0x31b1e2){return this[_0x461c('0x2')][_0x461c('0x1d')](_0x31b1e2);}[_0x461c('0x14')](_0x486930){return this['_viewToAnnotation'][_0x461c('0x1d')](_0x486930);}['destroy'](){super['clear'](),this[_0x461c('0x3')](),this[_0x461c('0x2')]['clear'](),this[_0x461c('0x1a')][_0x461c('0x13')](),this[_0x461c('0x1e')]['destroy']();}['refreshPositioning'](){for(const _0x19566b of this)_0x19566b[_0x461c('0x1c')]();this[_0x461c('0x19')]();}['_sort'](){const _0x7060df=Array[_0x461c('0x1f')](this)[_0x461c('0x12')]((_0x333244,_0x17b8c8)=>v(_0x333244[_0x461c('0x20')][_0x461c('0x8')],_0x17b8c8[_0x461c('0x20')][_0x461c('0x8')]));for(let _0x295b9d=_0x7060df[_0x461c('0x6')]-0x1;_0x295b9d>0x0;_0x295b9d--){const _0x4576e6=_0x7060df[_0x295b9d];_0x295b9d!==this['getIndex'](_0x4576e6)&&(this[_0x461c('0x4')](_0x4576e6),this[_0x461c('0xc')](_0x4576e6));}}[_0x461c('0xa')](_0x2a40f2){let _0x19c32c=0x0;if(!_0x2a40f2)return this[_0x461c('0x6')];for(const _0x205885 of this){const _0x2ddea7=_0x205885['view'][_0x461c('0x8')];if(_0x2ddea7){if(v(_0x2a40f2,_0x2ddea7)<0x0)return _0x19c32c;_0x19c32c++;}}return _0x19c32c;}}export function bindAnnotationCollections({source:_0x1f2873,target:_0x32076e,filter:_0x3206e0}){for(const _0xb26031 of _0x1f2873)_0x3206e0(_0xb26031)&&_0x32076e[_0x461c('0xc')](_0xb26031);_0x32076e[_0x461c('0x11')](_0x1f2873,_0x461c('0xc'),(_0x18debb,_0xf685b4)=>{_0x3206e0(_0xf685b4)&&_0x32076e[_0x461c('0xc')](_0xf685b4);}),_0x32076e[_0x461c('0x11')](_0x1f2873,'remove',(_0x2178a0,_0x2188b2)=>{_0x32076e['has'](_0x2188b2)&&_0x32076e['remove'](_0x2188b2);});}function v(_0x588aac,_0x5d6419){if(null===_0x588aac&&null===_0x5d6419)return 0x0;if(null===_0x588aac)return-0x1;if(null===_0x5d6419)return 0x1;const _0x45cc60=_0x588aac[_0x461c('0x1')]-_0x5d6419[_0x461c('0x1')];return 0x0==_0x45cc60?_0x588aac[_0x461c('0x1b')]-_0x5d6419[_0x461c('0x1b')]:_0x45cc60;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a79=['isVisible','_deactivateAllAnnotations','source','change:isVisible','getByInnerView','add','focusTracker','delete','listenTo','has','stopListening','activeAnnotations','refreshPositioning','activate','Annotations','refreshVisibility','remove','collection','pluginName','deactivateAll','_addActiveAnnotation','createAnnotationView','_bindAnnotationsToVisibleAnnotations','_visibleAnnotations','destroy','fire','_activateAnnotation','_removeActiveAnnotation','view','element','createAnnotation'];(function(_0x566e1b,_0x1a797b){const _0x3eae89=function(_0x50fab9){while(--_0x50fab9){_0x566e1b['push'](_0x566e1b['shift']());}};_0x3eae89(++_0x1a797b);}(_0x1a79,0x1cf));const _0x3eae=function(_0x566e1b,_0x1a797b){_0x566e1b=_0x566e1b-0x0;let _0x3eae89=_0x1a79[_0x566e1b];return _0x3eae89;};import{ContextPlugin as _0x40eb9a}from'ckeditor5/src/core';import _0x2a20bb from'./annotation';import _0x1efeef from'./annotationcollection';import _0x2383cd from'./view/annotationview';export default class b extends _0x40eb9a{static get[_0x3eae('0x14')](){return _0x3eae('0x10');}constructor(_0xdab8e2){super(_0xdab8e2),this[_0x3eae('0x13')]=new _0x1efeef(),this[_0x3eae('0x19')]=new _0x1efeef(),this['set'](_0x3eae('0xd'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x3eae('0x7')](_0x284b69){this[_0x3eae('0x13')]['add'](_0x284b69);}[_0x3eae('0x12')](_0x910121){this['collection'][_0x3eae('0x12')](_0x910121),_0x910121[_0x3eae('0x1a')]();}[_0x3eae('0x11')](){for(const _0x21dc0f of this[_0x3eae('0x13')])_0x21dc0f[_0x3eae('0x11')]();}[_0x3eae('0xe')](){this['_visibleAnnotations'][_0x3eae('0xe')]();}[_0x3eae('0x6')](_0x1c68a9){return this[_0x3eae('0x13')]['getByInnerView'](_0x1c68a9);}[_0x3eae('0x15')](){this[_0x3eae('0x1b')](_0x3eae('0x3'));}[_0x3eae('0x1a')](){for(const _0x54d8bf of this[_0x3eae('0x13')])_0x54d8bf[_0x3eae('0x1a')]();this[_0x3eae('0x19')]['destroy'](),this[_0x3eae('0x13')][_0x3eae('0x1a')](),super[_0x3eae('0x1a')]();}[_0x3eae('0xf')](_0x3c5353){this[_0x3eae('0x1b')](_0x3eae('0x1c'),_0x3c5353);}[_0x3eae('0x1')](_0x4b2436){return new _0x2a20bb(_0x4b2436);}[_0x3eae('0x17')](_0x2462d3,_0x7b18ff){return new _0x2383cd(_0x2462d3,_0x7b18ff);}[_0x3eae('0x16')](_0x35ef64){const _0x522577=new Set(this[_0x3eae('0xd')]);_0x522577[_0x3eae('0x7')](_0x35ef64),this[_0x3eae('0xd')]=_0x522577;}[_0x3eae('0x1d')](_0x105be7){const _0x14daa3=new Set(this[_0x3eae('0xd')]);_0x14daa3[_0x3eae('0x9')](_0x105be7),this[_0x3eae('0xd')]=_0x14daa3;}[_0x3eae('0x18')](){const _0x1f73a1=this['collection'],_0x594290=this[_0x3eae('0x19')];function _0xc11f71(_0x2d791){const _0x37aa09=_0x2d791[_0x3eae('0x4')];_0x37aa09['isVisible']&&!_0x594290[_0x3eae('0xb')](_0x37aa09)?_0x594290[_0x3eae('0x7')](_0x37aa09):!_0x37aa09[_0x3eae('0x2')]&&_0x594290['has'](_0x37aa09)&&_0x594290['remove'](_0x37aa09),_0x37aa09[_0x3eae('0x1e')][_0x3eae('0x8')][_0x3eae('0x12')](_0x37aa09[_0x3eae('0x1e')][_0x3eae('0x0')]),_0x37aa09[_0x3eae('0x1e')][_0x3eae('0x8')][_0x3eae('0x7')](_0x37aa09[_0x3eae('0x1e')]['element']);}this['listenTo'](_0x1f73a1,_0x3eae('0x7'),(_0x13744e,_0x383a26)=>{_0x383a26[_0x3eae('0x2')]&&_0x594290['add'](_0x383a26),this[_0x3eae('0xa')](_0x383a26,_0x3eae('0x5'),_0xc11f71);}),this['listenTo'](_0x1f73a1,_0x3eae('0x12'),(_0x38b80d,_0x2a4a7a)=>{_0x594290[_0x3eae('0xb')](_0x2a4a7a)&&_0x594290[_0x3eae('0x12')](_0x2a4a7a),this[_0x3eae('0xc')](_0x2a4a7a,_0x3eae('0x5'),_0xc11f71);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3be6=['has','annotationsuis-register-already-registered','requires','switchTo','set','annotationsuis-register-invalid-interface','collection','plugins','_activateAnnotation','activeAnnotations','_addActiveAnnotation','remove','find','_visibleAnnotations','function','activeUIs','listenTo','isActive','setActiveAnnotation','add','context','push','_uis','attach','delete','deactivate','refilterAnnotations','destroy','register','detach','_assertAnnotationDoesNotBelongToMultipleUIs','size','_uisData','change:activeAnnotation','deactivateAll','_setSelectedAnnotations','get','_removeActiveAnnotation','activate','annotationsuis-annotation-mismatch','annotationsuis-missing-ui','from','filter'];(function(_0xa7b445,_0x3be6a5){const _0x4961cb=function(_0x5d2ba6){while(--_0x5d2ba6){_0xa7b445['push'](_0xa7b445['shift']());}};_0x4961cb(++_0x3be6a5);}(_0x3be6,0x90));const _0x4961=function(_0xa7b445,_0x3be6a5){_0xa7b445=_0xa7b445-0x0;let _0x4961cb=_0x3be6[_0xa7b445];return _0x4961cb;};import{ContextPlugin as _0xdc7f5e}from'ckeditor5/src/core';import{CKEditorError as _0x513aea}from'ckeditor5/src/utils';import _0x1904a5,{bindAnnotationCollections as _0x2251fa}from'./annotationcollection';import _0x5a7478 from'./annotations';export default class M extends _0xdc7f5e{static get[_0x4961('0x1e')](){return[_0x5a7478];}static get['pluginName'](){return'AnnotationsUIs';}constructor(_0x2fb1d1){super(_0x2fb1d1),this[_0x4961('0x0')]=new Set(),this['_uis']=new Map(),this[_0x4961('0x11')]=new Map();}['init'](){const _0x2d9913=this[_0x4961('0x5')][_0x4961('0x23')][_0x4961('0x15')](_0x5a7478);this['listenTo'](_0x2d9913,_0x4961('0x24'),(_0x30c9a9,_0x251741)=>{for(const _0x4d9650 of this[_0x4961('0x0')]){const _0x15c442=this[_0x4961('0x7')][_0x4961('0x15')](_0x4d9650);(0x0,this[_0x4961('0x11')][_0x4961('0x15')](_0x4d9650)[_0x4961('0x1b')])(_0x251741)&&_0x15c442[_0x4961('0x3')](_0x251741);}}),this[_0x4961('0x1')](_0x2d9913,'_deactivateAllAnnotations',()=>{for(const _0xeb8f01 of this[_0x4961('0x0')]){this['_uis'][_0x4961('0x15')](_0xeb8f01)[_0x4961('0x3')](null);}}),this[_0x4961('0x1')](_0x2d9913['_visibleAnnotations'],'add',(_0x1b0f7f,_0x4a7fb7)=>{this[_0x4961('0xf')](_0x4a7fb7);});}['hasActive'](){return this[_0x4961('0x0')][_0x4961('0x10')]>0x0;}[_0x4961('0x2')](_0x1d2f44){return this['activeUIs']['has'](_0x1d2f44);}[_0x4961('0x17')](_0x1c6590,_0x590f3b=()=>!0x0){const _0x3ffa67=this['context'][_0x4961('0x23')][_0x4961('0x15')](_0x5a7478);if(!this[_0x4961('0x7')]['has'](_0x1c6590))throw new _0x513aea('annotationsuis-missing-ui',this,{'uiName':_0x1c6590});this[_0x4961('0x2')](_0x1c6590)&&this[_0x4961('0xa')](_0x1c6590),this[_0x4961('0x0')][_0x4961('0x4')](_0x1c6590);const _0x448e8d=new _0x1904a5(),_0x23f570=_0x3ffa67[_0x4961('0x29')];_0x2251fa({'source':_0x23f570,'target':_0x448e8d,'filter':_0x590f3b}),this[_0x4961('0x11')][_0x4961('0x20')](_0x1c6590,{'collection':_0x448e8d,'filter':_0x590f3b});const _0x5780bc=this[_0x4961('0x7')][_0x4961('0x15')](_0x1c6590);_0x5780bc[_0x4961('0x8')](_0x448e8d),this[_0x4961('0x1')](_0x5780bc,_0x4961('0x12'),(_0x41985b,_0x8bf379,_0x142194,_0x40c1d5)=>{_0x40c1d5&&_0x3ffa67[_0x4961('0x16')](_0x40c1d5),_0x142194&&_0x3ffa67[_0x4961('0x26')](_0x142194);});}['deactivate'](_0x9664e6){if(this[_0x4961('0x0')][_0x4961('0x9')](_0x9664e6),!this[_0x4961('0x7')]['has'](_0x9664e6))throw new _0x513aea(_0x4961('0x19'),this,{'uiName':_0x9664e6});const _0x2d8f5a=this['_uis'][_0x4961('0x15')](_0x9664e6);_0x2d8f5a[_0x4961('0xe')](),this['stopListening'](_0x2d8f5a),this[_0x4961('0x11')][_0x4961('0x15')](_0x9664e6)[_0x4961('0x22')][_0x4961('0xc')](),this['_uisData'][_0x4961('0x9')](_0x9664e6);}[_0x4961('0x1f')](_0x5c293f){if(!this[_0x4961('0x7')][_0x4961('0x1c')](_0x5c293f))throw new _0x513aea(_0x4961('0x19'),this,{'uiName':_0x5c293f});const _0x497c22=this[_0x4961('0x5')][_0x4961('0x23')][_0x4961('0x15')](_0x5a7478),_0xa85e8d=Array[_0x4961('0x1a')](_0x497c22[_0x4961('0x25')])[0x0]||null;this[_0x4961('0x13')](),this[_0x4961('0x17')](_0x5c293f);const _0x27b6d8=this[_0x4961('0x7')]['get'](_0x5c293f);_0x27b6d8[_0x4961('0x3')](_0xa85e8d),_0x27b6d8[_0x4961('0x14')]&&_0xa85e8d&&_0x27b6d8[_0x4961('0x14')]([_0xa85e8d]);}[_0x4961('0x13')](){for(const _0x17c48d of this[_0x4961('0x0')])this['deactivate'](_0x17c48d);}[_0x4961('0xd')](_0x26f9b9,_0x1d60b8){if(this[_0x4961('0x7')][_0x4961('0x1c')](_0x26f9b9))throw new _0x513aea(_0x4961('0x1d'));if(_0x4961('0x2a')!=typeof _0x1d60b8[_0x4961('0x8')]||'function'!=typeof _0x1d60b8[_0x4961('0xe')]||_0x4961('0x2a')!=typeof _0x1d60b8[_0x4961('0x3')])throw new _0x513aea(_0x4961('0x21'),null);this[_0x4961('0x7')][_0x4961('0x20')](_0x26f9b9,_0x1d60b8);}[_0x4961('0xb')](){const _0x5a45c9=this[_0x4961('0x5')]['plugins'][_0x4961('0x15')](_0x5a7478)[_0x4961('0x22')],_0x33a422=new Map(),_0x399267=Array['from'](this['activeUIs']);for(const _0x37017a of this[_0x4961('0x0')]){const _0x2e26a5=this[_0x4961('0x11')][_0x4961('0x15')](_0x37017a)[_0x4961('0x22')];for(const _0x188615 of _0x2e26a5)_0x33a422[_0x4961('0x20')](_0x188615,_0x37017a);}for(const _0x42c4ff of _0x5a45c9){const _0x24edc0=_0x33a422[_0x4961('0x15')](_0x42c4ff);this[_0x4961('0xf')](_0x42c4ff);const _0x106ab3=_0x399267[_0x4961('0x28')](_0x17102e=>this[_0x4961('0x11')][_0x4961('0x15')](_0x17102e)['filter'](_0x42c4ff));_0x24edc0!==_0x106ab3&&(_0x24edc0&&this['_uisData'][_0x4961('0x15')](_0x24edc0)[_0x4961('0x22')][_0x4961('0x27')](_0x42c4ff),_0x106ab3&&this[_0x4961('0x11')][_0x4961('0x15')](_0x106ab3)[_0x4961('0x22')][_0x4961('0x4')](_0x42c4ff));}}[_0x4961('0xc')](){this[_0x4961('0x13')](),super['destroy']();}[_0x4961('0xf')](_0xc6bda1){const _0x12483a=[];for(const _0x5432e6 of this[_0x4961('0x0')]){(0x0,this[_0x4961('0x11')][_0x4961('0x15')](_0x5432e6)[_0x4961('0x1b')])(_0xc6bda1)&&_0x12483a[_0x4961('0x6')](_0x5432e6);}if(_0x12483a['length']>0x1)throw new _0x513aea(_0x4961('0x18'),null,{'matchedUIs':_0x12483a,'annotationType':_0xc6bda1['type']});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc770=['editor','hasDomSelection','sort','from','get','delete','document','isCollapsed','selection','view','annotation','refreshSelectedViews','model','add','cancel','remove','function','push','innerView','containsRange','_editorAnnotations','requires','has','init','listenTo','update','EditorAnnotations','_editorAnnotationsData','change:range','change:isFocused','set','focusTracker','isReadOnly','plugins','editing','fire','getOrderedSelectedAnnotations','range','element'];(function(_0x2f8bd2,_0xc77071){const _0x3f4333=function(_0x31d3e1){while(--_0x31d3e1){_0x2f8bd2['push'](_0x2f8bd2['shift']());}};_0x3f4333(++_0xc77071);}(_0xc770,0x12b));const _0x3f43=function(_0x2f8bd2,_0xc77071){_0x2f8bd2=_0x2f8bd2-0x0;let _0x3f4333=_0xc770[_0x2f8bd2];return _0x3f4333;};import{Plugin as _0x44d0f4}from'ckeditor5/src/core';import{CKEditorError as _0x5286fc}from'ckeditor5/src/utils';import{debounce as _0x1bb5ce}from'lodash-es';import _0x3d6f48 from'./annotations';export default class k extends _0x44d0f4{static get[_0x3f43('0x22')](){return[_0x3d6f48];}static get['pluginName'](){return _0x3f43('0x0');}constructor(_0x403246){super(_0x403246),this['_dataCollectors']=new Set(),this[_0x3f43('0x21')]=new Set();}[_0x3f43('0x24')](){const _0x2b9f0c=this[_0x3f43('0xd')],_0x1f716b=_0x2b9f0c['model'][_0x3f43('0x13')][_0x3f43('0x15')],_0x3e94f6=_0x1bb5ce(()=>this[_0x3f43('0x18')](),0xa);_0x1f716b['on'](_0x3f43('0x2'),(_0x58ac33,_0x2a1520)=>{_0x2a1520['directChange']&&(_0x3e94f6[_0x3f43('0x1b')](),this[_0x3f43('0x18')]());}),this[_0x3f43('0x25')](_0x2b9f0c[_0x3f43('0x8')][_0x3f43('0x16')][_0x3f43('0x13')],_0x3f43('0x3'),(_0x113d17,_0x43b7f2,_0x227715)=>{_0x227715&&_0x3e94f6();}),this['listenTo'](_0x2b9f0c['ui'][_0x3f43('0x5')],_0x3f43('0x3'),(_0x54d7e5,_0xc69d4f,_0x1f1e04)=>{_0x1f1e04||_0x2b9f0c[_0x3f43('0x6')]||this[_0x3f43('0x9')]('blur',{'isAnnotationTracked':_0x3b4330=>this[_0x3f43('0x1')]['has'](_0x3b4330[_0x3f43('0x1f')])});}),this[_0x3f43('0x25')](this['editor']['ui'],_0x3f43('0x26'),()=>this[_0x3f43('0x9')]('uiUpdate'));}['registerAnnotation'](_0x5e896c){if(this[_0x3f43('0x21')][_0x3f43('0x23')](_0x5e896c[_0x3f43('0x16')]))return;this['_editorAnnotations'][_0x3f43('0x1a')](_0x5e896c['view']),this['editor']['ui'][_0x3f43('0x5')][_0x3f43('0x1a')](_0x5e896c[_0x3f43('0x16')][_0x3f43('0xc')]);const _0x4d8c16=this[_0x3f43('0xd')][_0x3f43('0x7')][_0x3f43('0x11')](_0x3d6f48);this['listenTo'](_0x4d8c16['collection'],_0x3f43('0x1c'),(_0x408107,_0x25839d)=>{this[_0x3f43('0xd')]['ui'][_0x3f43('0x5')][_0x3f43('0x1c')](_0x25839d['view'][_0x3f43('0xc')]),this[_0x3f43('0x21')][_0x3f43('0x12')](_0x25839d[_0x3f43('0x16')]);});}[_0x3f43('0xe')](){return this[_0x3f43('0xd')]['editing']['view'][_0x3f43('0xe')];}['addSourceCollector'](_0xb96fef){if(_0x3f43('0x1d')!=typeof _0xb96fef)throw new _0x5286fc('editorannotations-invalid-source-callback');this['_dataCollectors'][_0x3f43('0x1a')](_0xb96fef);}['refreshSelectedViews'](){this[_0x3f43('0x9')]('refresh');}[_0x3f43('0xa')]({activeAnnotation:_0x241e5b,annotations:_0x3062b8}){const _0x3337c2=[],_0x28fdcc=this[_0x3f43('0xd')][_0x3f43('0x19')]['document'][_0x3f43('0x15')],_0x3d256a=Array[_0x3f43('0x10')](_0x28fdcc['getRanges']());for(const [_0x1cc280,_0x49273b]of this['_editorAnnotationsData']){const _0x42094a=_0x1f82a5(_0x49273b),_0x5e990c=_0x3062b8['getByInnerView'](_0x1cc280);_0x42094a&&_0x5e990c&&_0x3337c2[_0x3f43('0x1e')]({'annotation':_0x5e990c,'range':_0x42094a});}function _0x1f82a5(_0x210b76){for(const _0x39cc50 of _0x210b76)for(const _0x5b507a of _0x3d256a)if(_0x39cc50[_0x3f43('0x20')](_0x5b507a,!_0x28fdcc[_0x3f43('0x14')]))return _0x39cc50;return null;}return _0x3337c2[_0x3f43('0xf')]((_0x3069b7,_0x4a6e12)=>{const _0x462728=_0x3069b7[_0x3f43('0xb')],_0x49054d=_0x4a6e12[_0x3f43('0xb')];if(!_0x462728['isEqual'](_0x49054d)){if(_0x462728['containsRange'](_0x49054d,!0x0))return 0x1;if(_0x49054d[_0x3f43('0x20')](_0x462728,!0x0))return-0x1;}return _0x3069b7[_0x3f43('0x17')]==_0x241e5b?-0x1:_0x4a6e12[_0x3f43('0x17')]==_0x241e5b?0x1:0x0;})['map'](_0x5ea7a6=>_0x5ea7a6['annotation']);}get[_0x3f43('0x1')](){const _0x325a82=new Map();for(const _0x3b0b79 of Array['from'](this['_dataCollectors']))for(const [_0x1dfcd1,_0x16e46f]of _0x3b0b79())_0x325a82[_0x3f43('0x4')](_0x1dfcd1,_0x16e46f);return _0x325a82;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ad3=['_closeAnnotation','set','selection','_addedAnnotations','init','left','requires','plugins','editor','mousedown','clear','width','annotations','isActive','keystrokes','setActiveAnnotation','add','inlineannotations-not-allowed-with-context','_balloon','_forceRefresh','collapse','delete','showStack','listenTo','_getBalloonTargetForAnnotation','editing','destroy','document','isAttached','push','detach','every','top','domConverter','remove','getFirstRange','context','pluginName','updatePosition','length','change:isFocused','attach','inline','Esc','getByView','getClientRects','switchTo','editableElement','fromRect','includes','has','focusTracker','change:visibleView','_manuallyClosed','getOrderedSelectedAnnotations','from','change:height','focus','hasActive','hasView','_selectedAnnotations','target','right','bottom','activeAnnotation','get','_addAnnotationToBalloon','visibleView','_removeAnnotationFromBalloon','refresh','InlineAnnotations','stopListening','_setSelectedAnnotations','map','view'];(function(_0x238f85,_0x5ad300){const _0x1e3fc4=function(_0x2a1491){while(--_0x2a1491){_0x238f85['push'](_0x238f85['shift']());}};_0x1e3fc4(++_0x5ad300);}(_0x5ad3,0xf9));const _0x1e3f=function(_0x238f85,_0x5ad300){_0x238f85=_0x238f85-0x0;let _0x1e3fc4=_0x5ad3[_0x238f85];return _0x1e3fc4;};import{Plugin as _0x22411c}from'ckeditor5/src/core';import _0x103d75 from'./annotationsuis';import _0xf26dee from'./editorannotations';import{ContextualBalloon as _0x27f338}from'ckeditor5/src/ui';import{MouseObserver as _0x475509}from'ckeditor5/src/engine';import{CKEditorError as _0x56cb0e,Rect as _0x569445}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x22411c{static get[_0x1e3f('0x39')](){return[_0xf26dee,_0x27f338,_0x103d75];}static get[_0x1e3f('0xd')](){return _0x1e3f('0x2e');}constructor(_0x3c30b7){super(_0x3c30b7),_0x3c30b7[_0x1e3f('0x1')]['view']['addObserver'](_0x475509),this[_0x1e3f('0x4')]=!0x1,this[_0x1e3f('0x34')](_0x1e3f('0x28'),null),this['annotations']=null,this['_manuallyClosed']=new Set(),this[_0x1e3f('0x45')]=_0x3c30b7[_0x1e3f('0x3a')]['get'](_0x27f338),this[_0x1e3f('0x36')]=new Set(),this[_0x1e3f('0x24')]=[],this[_0x1e3f('0x46')]=!0x1;}[_0x1e3f('0x37')](){const _0x497803=this[_0x1e3f('0x3b')]['plugins']['get'](_0x103d75);_0x497803[_0x1e3f('0xc')]===this[_0x1e3f('0x3b')]&&(_0x497803['register'](_0x1e3f('0x12'),this),this['editor'][_0x1e3f('0x41')][_0x1e3f('0x34')]('Esc',(_0x66bd57,_0x1e512a)=>{const _0x3c176f=this[_0x1e3f('0x45')];if(this[_0x1e3f('0x4')]&&_0x3c176f[_0x1e3f('0x2b')]){const _0x2fc7e6=this[_0x1e3f('0x3f')][_0x1e3f('0x14')](_0x3c176f['visibleView']);_0x2fc7e6&&this[_0x1e3f('0x33')](_0x2fc7e6),_0x1e512a();}}));}['afterInit'](){const _0x45536b=this[_0x1e3f('0x3b')]['plugins'][_0x1e3f('0x29')](_0x103d75);_0x45536b['context']===this[_0x1e3f('0x3b')]&&(_0x45536b[_0x1e3f('0x22')]()||_0x45536b[_0x1e3f('0x16')](_0x1e3f('0x12')));}[_0x1e3f('0x42')](_0x396071){_0x396071!==this[_0x1e3f('0x28')]&&(this[_0x1e3f('0x28')]&&(this[_0x1e3f('0x28')][_0x1e3f('0x40')]=!0x1),_0x396071&&this[_0x1e3f('0x3b')]['ui'][_0x1e3f('0x1b')]['isFocused']&&(this[_0x1e3f('0x3f')][_0x1e3f('0x1a')](_0x396071)&&this[_0x1e3f('0x2a')](_0x396071,!0x0),_0x396071[_0x1e3f('0x40')]=!0x0),_0x396071||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x396071);}[_0x1e3f('0x11')](_0x5d49f9){this[_0x1e3f('0x3f')]=_0x5d49f9;const _0x57a282=this[_0x1e3f('0x3b')][_0x1e3f('0x3a')][_0x1e3f('0x29')](_0x103d75),_0x5992e4=this[_0x1e3f('0x45')];if(this['isAttached'])throw new _0x56cb0e('inlineannotations-attach-already-attached',this);if(_0x57a282['context']!==this[_0x1e3f('0x3b')])throw new _0x56cb0e(_0x1e3f('0x44'),this);const _0x25f420=this[_0x1e3f('0x3b')][_0x1e3f('0x3a')]['get'](_0xf26dee);this[_0x1e3f('0x4a')](_0x25f420,_0x1e3f('0x2d'),()=>{const _0x1c2ee3=_0x25f420[_0x1e3f('0x1e')]({'annotations':this[_0x1e3f('0x3f')],'activeAnnotation':this[_0x1e3f('0x28')]});var _0x3db4e9,_0x26653c;!this[_0x1e3f('0x46')]&&(_0x3db4e9=_0x1c2ee3,_0x26653c=this[_0x1e3f('0x24')],_0x3db4e9['length']===_0x26653c[_0x1e3f('0xf')]&&_0x3db4e9[_0x1e3f('0x7')](_0x4b3801=>_0x26653c[_0x1e3f('0x19')](_0x4b3801)))||(this[_0x1e3f('0x46')]=!0x1,this[_0x1e3f('0x30')](_0x1c2ee3),this[_0x1e3f('0x42')](_0x1c2ee3[0x0]||null));}),this['listenTo'](_0x25f420,'blur',(_0x211666,{isAnnotationTracked:_0x17f0c0})=>{this[_0x1e3f('0x28')]&&_0x17f0c0(this[_0x1e3f('0x28')])&&(this[_0x1e3f('0x30')]([]),this['setActiveAnnotation'](null));}),this[_0x1e3f('0x4a')](this[_0x1e3f('0x3b')]['ui'][_0x1e3f('0x1b')],_0x1e3f('0x10'),(_0x4e61a4,_0x47615f,_0x42bded)=>{_0x42bded||this[_0x1e3f('0x42')](null);}),this[_0x1e3f('0x4a')](_0x5d49f9,'remove',(_0x1eeae5,_0x4cb61d)=>{this['_removeAnnotationFromBalloon'](_0x4cb61d),_0x4cb61d===this[_0x1e3f('0x28')]&&this[_0x1e3f('0x42')](null);}),this['listenTo'](_0x5992e4,_0x1e3f('0x1c'),(_0x331f26,_0x1f2241,_0x2263ca,_0x22ea46)=>{_0x22ea46&&this[_0x1e3f('0x2f')](_0x22ea46);const _0x102e09=_0x5d49f9[_0x1e3f('0x14')](_0x2263ca);_0x2263ca&&_0x102e09&&(this[_0x1e3f('0x4a')](_0x2263ca,_0x1e3f('0x20'),()=>{_0x5992e4[_0x1e3f('0xe')]();}),this[_0x1e3f('0x4a')](_0x2263ca,_0x1e3f('0x13'),()=>{this[_0x1e3f('0x33')](_0x102e09),this['editor'][_0x1e3f('0x1')][_0x1e3f('0x32')]['focus']();}),this[_0x1e3f('0x28')]!==_0x102e09&&this[_0x1e3f('0x42')](_0x102e09));}),this[_0x1e3f('0x4a')](this[_0x1e3f('0x3b')]['ui'],'update',()=>{_0x5992e4[_0x1e3f('0x2b')]&&(_0x5d49f9['getByView'](_0x5992e4[_0x1e3f('0x2b')])&&_0x5992e4[_0x1e3f('0xe')]());}),this[_0x1e3f('0x4a')](this[_0x1e3f('0x3b')][_0x1e3f('0x1')][_0x1e3f('0x32')][_0x1e3f('0x3')],_0x1e3f('0x3c'),()=>{this[_0x1e3f('0x46')]=!0x0,this['_manuallyClosed'][_0x1e3f('0x3d')]();}),this[_0x1e3f('0x3b')][_0x1e3f('0x1')][_0x1e3f('0x32')][_0x1e3f('0x3')][_0x1e3f('0x35')][_0x1e3f('0x17')]&&this[_0x1e3f('0x3b')]['editing'][_0x1e3f('0x32')][_0x1e3f('0x21')](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x56cb0e('inlineannotations-detach-not-attached',this);this[_0x1e3f('0x42')](null);for(const _0x4e8745 of this[_0x1e3f('0x36')])this['_removeAnnotationFromBalloon'](_0x4e8745);this[_0x1e3f('0x2f')](),this[_0x1e3f('0x4')]=!0x1,this[_0x1e3f('0x3f')]=null;}[_0x1e3f('0x2')](){this[_0x1e3f('0x4')]&&this[_0x1e3f('0x6')]();}['_setSelectedAnnotations'](_0xc25b32){for(const _0x4cb60a of this[_0x1e3f('0x24')])_0xc25b32['includes'](_0x4cb60a)||this['_manuallyClosed'][_0x1e3f('0x48')](_0x4cb60a);for(const _0x1075ac of this[_0x1e3f('0x3f')])_0xc25b32[_0x1e3f('0x19')](_0x1075ac)||this[_0x1e3f('0x2c')](_0x1075ac);if(this[_0x1e3f('0x3b')]['ui'][_0x1e3f('0x1b')]['isFocused'])for(const _0x2d1733 of _0xc25b32)this[_0x1e3f('0x2a')](_0x2d1733);this['_selectedAnnotations']=_0xc25b32;}[_0x1e3f('0x2a')](_0x411125,_0x1092e7=!0x1){this[_0x1e3f('0x1d')][_0x1e3f('0x1a')](_0x411125)||(this[_0x1e3f('0x36')]['has'](_0x411125)||this[_0x1e3f('0x45')][_0x1e3f('0x23')](_0x411125['view'])||(this[_0x1e3f('0x36')]['add'](_0x411125),this[_0x1e3f('0x45')][_0x1e3f('0x43')]({'stackId':_0x411125['view']['id'],'view':_0x411125[_0x1e3f('0x32')],'position':{'target':()=>this[_0x1e3f('0x0')](_0x411125)}})),_0x1092e7&&this[_0x1e3f('0x45')][_0x1e3f('0x49')](_0x411125[_0x1e3f('0x32')]['id']));}[_0x1e3f('0x0')](_0x39df4a){const _0x1739f6=_0x39df4a[_0x1e3f('0x25')],_0x331326=this[_0x1e3f('0x3b')][_0x1e3f('0x1')][_0x1e3f('0x32')],_0x420122=_0x331326[_0x1e3f('0x3')][_0x1e3f('0x35')][_0x1e3f('0xb')](),_0x310658=_0x331326[_0x1e3f('0x9')]['viewRangeToDom'](_0x420122);if(_0x310658[_0x1e3f('0x47')](!0x0),_0x1739f6){if(_0x1739f6 instanceof _0x569445)return _0x1739f6;let _0x1c3b0f=[];for(const _0x26d661 of _0x1739f6)_0x1c3b0f[_0x1e3f('0x5')](...(_0x4eee8a=_0x26d661[_0x1e3f('0x15')](),Array[_0x1e3f('0x1f')](_0x4eee8a)[_0x1e3f('0x31')](DOMRect[_0x1e3f('0x18')])));_0x1c3b0f=function(_0xb9df1d){const _0x311726=[];let _0x281bd3=_0xb9df1d[0x0];for(let _0x3930fb=0x1;_0x3930fb<_0xb9df1d['length'];_0x3930fb++)F(_0x281bd3,_0xb9df1d[_0x3930fb])?_0x281bd3['width']+=_0xb9df1d[_0x3930fb][_0x1e3f('0x3e')]:(_0x311726[_0x1e3f('0x5')](_0x281bd3),_0x281bd3=_0xb9df1d[_0x3930fb]);return _0x311726[_0x1e3f('0x5')](_0x281bd3),_0x311726;}(_0x1c3b0f);const _0x4603b6=_0x310658['getBoundingClientRect']();return _0x1c3b0f['find'](_0x6c001e=>_0x6c001e['top']<=_0x4603b6[_0x1e3f('0x8')]&&_0x6c001e[_0x1e3f('0x27')]>=_0x4603b6[_0x1e3f('0x27')]&&_0x6c001e[_0x1e3f('0x38')]<=_0x4603b6[_0x1e3f('0x38')]&&_0x6c001e[_0x1e3f('0x26')]>=_0x4603b6[_0x1e3f('0x26')])||_0x1c3b0f[0x0];}var _0x4eee8a;return _0x39df4a['targetRect']||_0x310658;}[_0x1e3f('0x2c')](_0x2067c2){this[_0x1e3f('0x36')][_0x1e3f('0x1a')](_0x2067c2)&&this[_0x1e3f('0x45')][_0x1e3f('0x23')](_0x2067c2[_0x1e3f('0x32')])&&(this[_0x1e3f('0x36')]['delete'](_0x2067c2),this['_balloon'][_0x1e3f('0xa')](_0x2067c2['view']));}[_0x1e3f('0x33')](_0x1f6588){this[_0x1e3f('0x1d')]['add'](_0x1f6588),this[_0x1e3f('0x2c')](_0x1f6588);}}function F(_0x473023,_0x289149){return _0x473023[_0x1e3f('0x8')]===_0x289149[_0x1e3f('0x8')]&&_0x473023[_0x1e3f('0x27')]===_0x289149['bottom']&&_0x473023['right']===_0x289149[_0x1e3f('0x38')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xd92d=['_setSelectedAnnotations','content','resize','addAnnotation','southArrowNorth','uiUpdate','narrowsidebar-detach-not-attached','destroy','preventDefault','getSidebarItemView','delete','clear','target','northArrowSouthEast','ready','northArrowSouthWest','Esc','contains','_updateBalloonPosition','_domEmitter','setActiveAnnotation','_annotationToNarrowView','requires','length','activeAnnotation','has','isDirty','balloonPanelView','bind','attach','plugins','refreshPositioning','editors','narrowsidebar-attach-already-attached','rearrange','getOrderedSelectedAnnotations','_attachListeners','create','register','unpin','esc','pin','set','EditorAnnotations','bodyCollection','values','_manuallyClosedAnnotationViews','preventClosingBalloon','mousedown','listenTo','focusableElements','blur','context','remove','first','isAttached','find','off','southArrowNorthEast','addEventListener','_editorAnnotations','add','getByView','keydown','annotations','_integrateWithEditorAnnotations','annotationType','_destroyEditorAnnotationsIntegration','_showBalloon','_selectedAnnotations','northArrowSouth','get','pluginName','from','ck-sidebar--narrow','refresh','element','locale','_refreshPositioningDebounced','isVisible','execute','_detachListeners','detachFromDom','focus','_hideBalloon','view','narrowSidebar','_annotations','stopListening','NarrowSidebar','detach','_attachToContainer','cancel','high','removeEventListener','hasDomSelection','type','includes'];(function(_0x3ee9e2,_0xd92da7){const _0x2f8763=function(_0x534fee){while(--_0x534fee){_0x3ee9e2['push'](_0x3ee9e2['shift']());}};_0x2f8763(++_0xd92da7);}(_0xd92d,0x74));const _0x2f87=function(_0x3ee9e2,_0xd92da7){_0x3ee9e2=_0x3ee9e2-0x0;let _0x2f8763=_0xd92d[_0x3ee9e2];return _0x2f8763;};import{ContextPlugin as _0x12b1c1,Context as _0x34fc50}from'ckeditor5/src/core';import _0x268ae2 from'./annotationsuis';import _0x4e44ca from'./sidebar';import _0xe38e18 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x44209d,BodyCollection as _0x1733ca}from'ckeditor5/src/ui';import{CKEditorError as _0x16988f,DomEmitterMixin as _0x21a16a,keyCodes as _0x47d36a,Collection as _0x2784e4}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x5bfa24}from'lodash-es';import _0x3fbc64 from'./editorannotations';export default class s extends _0x12b1c1{static get[_0x2f87('0x4')](){return[_0x4e44ca,_0x268ae2];}static get[_0x2f87('0x36')](){return _0x2f87('0x47');}constructor(_0x23fdd3){super(_0x23fdd3),this[_0x2f87('0x25')]=!0x1,this[_0x2f87('0x1c')]=new Set(),this[_0x2f87('0x1')]=Object[_0x2f87('0x13')](_0x21a16a),this[_0x2f87('0x3')]=new Map(),this[_0x2f87('0x18')](_0x2f87('0x6'),null),this[_0x2f87('0x2e')]=null,this['_selectedAnnotations']=[],this[_0x2f87('0x2a')]=new _0x2784e4(),this['_refreshPositioningDebounced']=_0x5bfa24(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this[_0x2f87('0x22')]['plugins'][_0x2f87('0x35')](_0x268ae2)[_0x2f87('0x14')](_0x2f87('0x44'),this),this['bodyCollection']=new _0x1733ca(this['context'][_0x2f87('0x3b')]),this[_0x2f87('0x9')]=new _0x44209d(this[_0x2f87('0x22')][_0x2f87('0x3b')]),this[_0x2f87('0x1a')]['attachToDom'](),this[_0x2f87('0x1a')][_0x2f87('0x2b')](this[_0x2f87('0x9')]);}[_0x2f87('0xb')](_0x576db6){this['annotations']=_0x576db6;const _0x37474d=this[_0x2f87('0x22')][_0x2f87('0xc')]['get'](_0x4e44ca),_0x467279=this['balloonPanelView'];if(_0x37474d[_0x2f87('0x45')]=_0x576db6,this[_0x2f87('0x25')])throw new _0x16988f(_0x2f87('0xf'),this);this[_0x2f87('0x25')]=!0x0,this[_0x2f87('0x1f')](_0x37474d,'set:container',()=>{this['detach'](),this[_0x2f87('0x1f')](_0x37474d,'change:container',_0x2351cc=>{_0x2351cc[_0x2f87('0x27')](),this['attach'](_0x576db6);});}),_0x37474d[_0x2f87('0x49')]({'viewClass':_0x2f87('0x38'),'spaceBetweenItems':0x5});const _0x1ce81b=_0x146cea=>{const _0x4e9845=new _0xe38e18(this[_0x2f87('0x22')][_0x2f87('0x3b')]);_0x37474d[_0x2f87('0x53')](_0x146cea,_0x4e9845),this[_0x2f87('0x3')]['set'](_0x146cea,_0x4e9845),_0x4e9845[_0x2f87('0xa')](_0x2f87('0x8'),_0x2f87('0x30'),'number')['to'](_0x146cea[_0x2f87('0x43')],_0x2f87('0x8'),_0x2f87('0x4e'),_0x2f87('0x5')),_0x4e9845['on'](_0x2f87('0x3e'),()=>{this[_0x2f87('0x1c')][_0x2f87('0x5b')](),_0x467279[_0x2f87('0x51')]['first']!==_0x146cea[_0x2f87('0x43')]?(this[_0x2f87('0x32')](_0x146cea),_0x146cea[_0x2f87('0x43')][_0x2f87('0x3a')][_0x2f87('0x41')](),this[_0x2f87('0x2')](_0x146cea)):this[_0x2f87('0x2')](null);});};for(const _0x469b02 of _0x576db6)_0x1ce81b(_0x469b02);this['listenTo'](_0x576db6,_0x2f87('0x2b'),(_0x205840,_0xdaba57)=>{_0x1ce81b(_0xdaba57);}),this[_0x2f87('0x1f')](_0x576db6,_0x2f87('0x23'),(_0x4de049,_0x5409d5,_0x4fe616)=>{this[_0x2f87('0x3')][_0x2f87('0x35')](_0x5409d5)['destroy'](),this['_annotationToNarrowView'][_0x2f87('0x5a')](_0x5409d5),_0x37474d[_0x2f87('0x10')]({'removedAnnotation':_0x5409d5,'previousAnnotation':_0x576db6[_0x2f87('0x35')](_0x4fe616-0x1),'nextAnnotation':_0x576db6['get'](_0x4fe616+0x1)}),_0x5409d5===this[_0x2f87('0x6')]&&this[_0x2f87('0x2')](null);},{'priority':'low'}),this['listenTo'](_0x576db6,_0x2f87('0x41'),(_0x5ed628,_0x48c2ed)=>{this[_0x2f87('0x2')](_0x48c2ed);}),this[_0x2f87('0x1f')](_0x576db6,_0x2f87('0x21'),()=>{this[_0x2f87('0x2')](null);}),this[_0x2f87('0x1')]['listenTo'](document,_0x2f87('0x2d'),(_0x8b122b,_0xa8be9a)=>{_0xa8be9a['keyCode']===_0x47d36a[_0x2f87('0x16')]&&_0x467279[_0x2f87('0x3d')]&&(this[_0x2f87('0x1c')][_0x2f87('0x2b')](_0x467279[_0x2f87('0x51')][_0x2f87('0x24')]),this['_hideBalloon'](),_0xa8be9a['stopPropagation'](),_0xa8be9a[_0x2f87('0x58')]());}),this['_domEmitter']['listenTo'](document,_0x2f87('0x1e'),(_0x29c56c,_0x354ab4)=>{const _0x5f2e04=_0x354ab4[_0x2f87('0x5c')];_0x467279[_0x2f87('0x3d')]&&_0x467279[_0x2f87('0x3a')]['contains'](_0x5f2e04)||_0x37474d[_0x2f87('0x43')][_0x2f87('0x3a')][_0x2f87('0x61')](_0x5f2e04)||_0x29c56c[_0x2f87('0x1d')]||this[_0x2f87('0x6')]&&this[_0x2f87('0x6')][_0x2f87('0x20')][_0x2f87('0x26')](_0x1483e1=>_0x1483e1[_0x2f87('0x61')](_0x5f2e04))||(this[_0x2f87('0x1c')][_0x2f87('0x5b')](),this[_0x2f87('0x42')](),this['setActiveAnnotation'](null));});const _0x34187c=this[_0x2f87('0x22')]instanceof _0x34fc50?this[_0x2f87('0x22')][_0x2f87('0xe')]:new _0x2784e4([this[_0x2f87('0x22')]]);for(const _0x470bbc of _0x34187c)this[_0x2f87('0x2f')](_0x470bbc);this[_0x2f87('0x1f')](_0x34187c,_0x2f87('0x2b'),(_0x28d570,_0x43d370)=>{this[_0x2f87('0x1f')](_0x43d370,_0x2f87('0x5e'),()=>{this[_0x2f87('0x2f')](_0x43d370);});}),this[_0x2f87('0x1f')](_0x34187c,'remove',(_0x313b60,_0x400942)=>{_0x400942[_0x2f87('0xc')][_0x2f87('0x7')](_0x2f87('0x19'))&&this[_0x2f87('0x31')](_0x400942['plugins'][_0x2f87('0x35')]('EditorAnnotations'));}),window[_0x2f87('0x29')]('resize',this[_0x2f87('0x3c')]),this['_refreshPositioning']();}['setActiveAnnotation'](_0x1ea790){if(_0x1ea790===this['activeAnnotation'])return;const _0x3e0530=this['context'][_0x2f87('0xc')][_0x2f87('0x35')](_0x4e44ca);if(_0x3e0530[_0x2f87('0x39')]({'blurredAnnotation':this[_0x2f87('0x6')],'activatedAnnotation':_0x1ea790,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1ea790)_0x3e0530[_0x2f87('0x59')](_0x1ea790)?this[_0x2f87('0x32')](_0x1ea790):this[_0x2f87('0x42')]();else this[_0x2f87('0x42')]();this[_0x2f87('0x6')]=_0x1ea790;}[_0x2f87('0x48')](){if(!this[_0x2f87('0x25')])throw new _0x16988f(_0x2f87('0x56'),this);this[_0x2f87('0x2')](null);const _0x418019=this['context'][_0x2f87('0xc')][_0x2f87('0x35')](_0x4e44ca);this[_0x2f87('0x42')](),Array[_0x2f87('0x37')](this['_annotationToNarrowView'][_0x2f87('0x1b')](),_0x293748=>_0x293748[_0x2f87('0x57')]()),this['_annotationToNarrowView']['clear'](),_0x418019['_detachFromContainer'](this[_0x2f87('0x2e')]),this[_0x2f87('0x46')](),this[_0x2f87('0x1')]['stopListening'](),this[_0x2f87('0x22')]instanceof _0x34fc50&&this[_0x2f87('0x46')](this['context'][_0x2f87('0xe')]);for(const _0x205718 of Array['from'](this['_editorAnnotations']))this[_0x2f87('0x31')](_0x205718);window[_0x2f87('0x4c')](_0x2f87('0x52'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x2f87('0x4a')](),this[_0x2f87('0x33')]=[],this[_0x2f87('0x25')]=!0x1,this[_0x2f87('0x2e')]=null;}['destroy'](){this[_0x2f87('0x25')]&&this['detach'](),this[_0x2f87('0x1a')][_0x2f87('0x40')]();}[_0x2f87('0x2f')](_0x223ec1){const _0x4c4f9d=_0x223ec1[_0x2f87('0xc')][_0x2f87('0x35')](_0x3fbc64),_0x1ffd2a=this[_0x2f87('0x22')][_0x2f87('0xc')][_0x2f87('0x35')](_0x4e44ca),_0x28178c=this[_0x2f87('0x2e')],_0x2578a7=this[_0x2f87('0x9')],_0x46cf24=()=>{const _0x14fa82=_0x4c4f9d[_0x2f87('0x11')]({'annotations':this[_0x2f87('0x2e')],'activeAnnotation':this['activeAnnotation']});this[_0x2f87('0x50')](_0x14fa82),this[_0x2f87('0x2')](_0x14fa82[0x0]||null);};this['listenTo'](_0x4c4f9d,_0x2f87('0x39'),_0x46cf24),this['listenTo'](_0x4c4f9d,_0x2f87('0x21'),(_0x526946,{isAnnotationTracked:_0x3920ea})=>{this[_0x2f87('0x6')]&&_0x3920ea(this[_0x2f87('0x6')])&&(this['_setSelectedAnnotations']([]),this[_0x2f87('0x2')](null));}),this[_0x2f87('0x1f')](_0x4c4f9d,_0x2f87('0x55'),()=>{this['_refreshPositioningDebounced']();}),this[_0x2f87('0x1f')](_0x28178c,_0x2f87('0x21'),_0x1f7f02=>{_0x4c4f9d[_0x2f87('0x4d')]()&&_0x1f7f02['stop']();},{'priority':_0x2f87('0x4b')}),this[_0x2f87('0x1f')](this[_0x2f87('0x1')],_0x2f87('0x1e'),(_0x22db20,_0x64db00)=>{const _0xbc0607=_0x64db00[_0x2f87('0x5c')];_0x2578a7['isVisible']&&_0x2578a7[_0x2f87('0x3a')][_0x2f87('0x61')](_0xbc0607)||_0x1ffd2a[_0x2f87('0x43')][_0x2f87('0x3a')]['contains'](_0xbc0607)||this[_0x2f87('0x6')]&&_0x4c4f9d[_0x2f87('0x4d')]()&&(_0x46cf24(),_0x22db20[_0x2f87('0x1d')]=!0x0);},{'priority':_0x2f87('0x4b')}),this['_editorAnnotations'][_0x2f87('0x2b')](_0x4c4f9d);}[_0x2f87('0x31')](_0x1b0c36){_0x1b0c36&&(this[_0x2f87('0x46')](_0x1b0c36),this[_0x2f87('0x2a')][_0x2f87('0x23')](_0x1b0c36));}[_0x2f87('0x50')](_0x2fca6e){for(const _0x4204ed of this[_0x2f87('0x33')])_0x2fca6e[_0x2f87('0x4f')](_0x4204ed)||this[_0x2f87('0x1c')][_0x2f87('0x5a')](_0x4204ed[_0x2f87('0x43')]);this[_0x2f87('0x33')]=_0x2fca6e;}['_refreshPositioning'](){const _0x3ce184=this['balloonPanelView'];this[_0x2f87('0x2e')][_0x2f87('0xd')](),_0x3ce184[_0x2f87('0x3d')]&&this[_0x2f87('0x0')]();}[_0x2f87('0x32')](_0xe883c5){if(this[_0x2f87('0x1c')]['has'](_0xe883c5['view']))return;const _0x1bf870=this['balloonPanelView'][_0x2f87('0x51')][_0x2f87('0x24')];_0x1bf870!==_0xe883c5[_0x2f87('0x43')]?(_0x1bf870&&this['_detachListeners'](_0x1bf870),this['_attachListeners'](_0xe883c5[_0x2f87('0x43')]),this[_0x2f87('0x9')][_0x2f87('0x51')][_0x2f87('0x5b')](),this[_0x2f87('0x9')][_0x2f87('0x51')][_0x2f87('0x2b')](_0xe883c5[_0x2f87('0x43')]),this[_0x2f87('0x0')]()):this[_0x2f87('0x0')]();}[_0x2f87('0x0')](){const _0x2f4b6f=this[_0x2f87('0x9')][_0x2f87('0x51')]['first'],_0x4aed68=_0x2f4b6f&&this[_0x2f87('0x2e')][_0x2f87('0x2c')](_0x2f4b6f);if(!_0x4aed68||!this[_0x2f87('0x3')][_0x2f87('0x7')](_0x4aed68))return;const _0x239d99=this['_annotationToNarrowView'][_0x2f87('0x35')](_0x4aed68)['element'],_0x223097=function(){const _0x2c6b84=_0x44209d['defaultPositions'];return[_0x2c6b84[_0x2f87('0x28')],_0x2c6b84[_0x2f87('0x5d')],_0x2c6b84[_0x2f87('0x54')],_0x2c6b84[_0x2f87('0x34')],_0x2c6b84['southArrowNorthWest'],_0x2c6b84[_0x2f87('0x5f')]];}();this[_0x2f87('0x9')][_0x2f87('0x17')]({'target':_0x239d99,'positions':_0x223097});}['_hideBalloon'](){const _0x517221=this['balloonPanelView'],_0x253126=_0x517221[_0x2f87('0x51')][_0x2f87('0x24')];_0x253126&&(this[_0x2f87('0x3f')](_0x253126),_0x517221[_0x2f87('0x15')](),_0x517221['content'][_0x2f87('0x5b')]());}[_0x2f87('0x12')](_0x57d2de){this[_0x2f87('0x1f')](_0x57d2de,'change:height',()=>this[_0x2f87('0x0')]()),this[_0x2f87('0x1f')](_0x57d2de,_0x2f87('0x60'),(_0x2cba9b,_0x5adb9b)=>{this[_0x2f87('0x1c')][_0x2f87('0x2b')](_0x57d2de),this[_0x2f87('0x42')](),_0x5adb9b();});}[_0x2f87('0x3f')](_0x333f20){this[_0x2f87('0x46')](_0x333f20);}}
|
|
23
|
+
const _0x4780=['ck-sidebar--narrow','includes','southArrowNorthWest','annotationType','_updateBalloonPosition','has','getByView','annotations','mousedown','listenTo','set','_attachToContainer','type','_domEmitter','getSidebarItemView','bodyCollection','_refreshPositioningDebounced','get','cancel','_refreshPositioning','preventDefault','northArrowSouthEast','find','uiUpdate','add','southArrowNorthEast','attachToDom','change:container','stopListening','pluginName','hasDomSelection','_editorAnnotations','narrowsidebar-attach-already-attached','set:container','getOrderedSelectedAnnotations','change:height','editors','locale','narrowsidebar-detach-not-attached','_hideBalloon','bind','blur','_setSelectedAnnotations','_destroyEditorAnnotationsIntegration','requires','addAnnotation','Esc','from','contains','narrowSidebar','isAttached','_selectedAnnotations','isVisible','create','delete','activeAnnotation','detach','refreshPositioning','detachFromDom','setActiveAnnotation','element','defaultPositions','refresh','resize','stopPropagation','off','view','EditorAnnotations','_detachListeners','balloonPanelView','clear','removeEventListener','content','number','keyCode','first','addEventListener','_integrateWithEditorAnnotations','northArrowSouth','_showBalloon','plugins','isDirty','esc','remove','_manuallyClosedAnnotationViews','context','unpin','_attachListeners','register','_annotationToNarrowView','focus','keydown'];(function(_0x20900d,_0x47801e){const _0x452135=function(_0x4fc86c){while(--_0x4fc86c){_0x20900d['push'](_0x20900d['shift']());}};_0x452135(++_0x47801e);}(_0x4780,0xec));const _0x4521=function(_0x20900d,_0x47801e){_0x20900d=_0x20900d-0x0;let _0x452135=_0x4780[_0x20900d];return _0x452135;};import{ContextPlugin as _0x141bd4,Context as _0x4c34ea}from'ckeditor5/src/core';import _0x4ebdb2 from'./annotationsuis';import _0x20b5d7 from'./sidebar';import _0x338363 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2d5c09,BodyCollection as _0x537788}from'ckeditor5/src/ui';import{CKEditorError as _0x3868c0,DomEmitterMixin as _0x5d063d,keyCodes as _0x72f1bb,Collection as _0x515cf3}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1f9b70}from'lodash-es';import _0x3eee4f from'./editorannotations';export default class s extends _0x141bd4{static get[_0x4521('0x54')](){return[_0x20b5d7,_0x4ebdb2];}static get[_0x4521('0x45')](){return'NarrowSidebar';}constructor(_0x4e00c1){super(_0x4e00c1),this['isAttached']=!0x1,this[_0x4521('0x20')]=new Set(),this[_0x4521('0x35')]=Object[_0x4521('0x1')](_0x5d063d),this['_annotationToNarrowView']=new Map(),this['set'](_0x4521('0x3'),null),this['annotations']=null,this[_0x4521('0x5b')]=[],this[_0x4521('0x47')]=new _0x515cf3(),this[_0x4521('0x38')]=_0x1f9b70(()=>{this[_0x4521('0x3b')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x4521('0x21')]['plugins'][_0x4521('0x39')](_0x4ebdb2)[_0x4521('0x24')](_0x4521('0x59'),this),this[_0x4521('0x37')]=new _0x537788(this['context'][_0x4521('0x4d')]),this[_0x4521('0x11')]=new _0x2d5c09(this[_0x4521('0x21')][_0x4521('0x4d')]),this['bodyCollection'][_0x4521('0x42')](),this[_0x4521('0x37')][_0x4521('0x40')](this['balloonPanelView']);}['attach'](_0x5cd159){this[_0x4521('0x2f')]=_0x5cd159;const _0x4e1ebb=this[_0x4521('0x21')][_0x4521('0x1c')]['get'](_0x20b5d7),_0xfe843a=this[_0x4521('0x11')];if(_0x4e1ebb['_annotations']=_0x5cd159,this[_0x4521('0x5a')])throw new _0x3868c0(_0x4521('0x48'),this);this[_0x4521('0x5a')]=!0x0,this[_0x4521('0x31')](_0x4e1ebb,_0x4521('0x49'),()=>{this[_0x4521('0x4')](),this[_0x4521('0x31')](_0x4e1ebb,_0x4521('0x43'),_0x41f31e=>{_0x41f31e[_0x4521('0xd')](),this['attach'](_0x5cd159);});}),_0x4e1ebb[_0x4521('0x33')]({'viewClass':_0x4521('0x28'),'spaceBetweenItems':0x5});const _0x7336db=_0x552223=>{const _0x467f5d=new _0x338363(this[_0x4521('0x21')][_0x4521('0x4d')]);_0x4e1ebb[_0x4521('0x55')](_0x552223,_0x467f5d),this[_0x4521('0x25')][_0x4521('0x32')](_0x552223,_0x467f5d),_0x467f5d[_0x4521('0x50')](_0x4521('0x1d'),_0x4521('0x2b'),_0x4521('0x15'))['to'](_0x552223[_0x4521('0xe')],_0x4521('0x1d'),_0x4521('0x34'),'length'),_0x467f5d['on']('execute',()=>{this[_0x4521('0x20')][_0x4521('0x12')](),_0xfe843a[_0x4521('0x14')][_0x4521('0x17')]!==_0x552223[_0x4521('0xe')]?(this[_0x4521('0x1b')](_0x552223),_0x552223['view'][_0x4521('0x8')]['focus'](),this[_0x4521('0x7')](_0x552223)):this['setActiveAnnotation'](null);});};for(const _0x218baa of _0x5cd159)_0x7336db(_0x218baa);this[_0x4521('0x31')](_0x5cd159,'add',(_0x2e5d59,_0x12f742)=>{_0x7336db(_0x12f742);}),this[_0x4521('0x31')](_0x5cd159,'remove',(_0x33892a,_0x3d0a7a,_0x59a2f5)=>{this[_0x4521('0x25')][_0x4521('0x39')](_0x3d0a7a)['destroy'](),this['_annotationToNarrowView'][_0x4521('0x2')](_0x3d0a7a),_0x4e1ebb['rearrange']({'removedAnnotation':_0x3d0a7a,'previousAnnotation':_0x5cd159[_0x4521('0x39')](_0x59a2f5-0x1),'nextAnnotation':_0x5cd159[_0x4521('0x39')](_0x59a2f5+0x1)}),_0x3d0a7a===this[_0x4521('0x3')]&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x5cd159,_0x4521('0x26'),(_0x9a7ae0,_0x4caaba)=>{this[_0x4521('0x7')](_0x4caaba);}),this[_0x4521('0x31')](_0x5cd159,_0x4521('0x51'),()=>{this['setActiveAnnotation'](null);}),this['_domEmitter'][_0x4521('0x31')](document,_0x4521('0x27'),(_0x1df390,_0x3716c5)=>{_0x3716c5[_0x4521('0x16')]===_0x72f1bb[_0x4521('0x1e')]&&_0xfe843a[_0x4521('0x0')]&&(this[_0x4521('0x20')]['add'](_0xfe843a[_0x4521('0x14')][_0x4521('0x17')]),this[_0x4521('0x4f')](),_0x3716c5[_0x4521('0xc')](),_0x3716c5[_0x4521('0x3c')]());}),this['_domEmitter'][_0x4521('0x31')](document,'mousedown',(_0x278615,_0x4f2a4d)=>{const _0x3f618c=_0x4f2a4d['target'];_0xfe843a[_0x4521('0x0')]&&_0xfe843a['element']['contains'](_0x3f618c)||_0x4e1ebb[_0x4521('0xe')][_0x4521('0x8')]['contains'](_0x3f618c)||_0x278615['preventClosingBalloon']||this[_0x4521('0x3')]&&this[_0x4521('0x3')]['focusableElements'][_0x4521('0x3e')](_0x43c8b8=>_0x43c8b8['contains'](_0x3f618c))||(this[_0x4521('0x20')][_0x4521('0x12')](),this[_0x4521('0x4f')](),this['setActiveAnnotation'](null));});const _0x2f7a56=this[_0x4521('0x21')]instanceof _0x4c34ea?this[_0x4521('0x21')][_0x4521('0x4c')]:new _0x515cf3([this[_0x4521('0x21')]]);for(const _0x51573c of _0x2f7a56)this['_integrateWithEditorAnnotations'](_0x51573c);this[_0x4521('0x31')](_0x2f7a56,'add',(_0x56d03c,_0x7776ad)=>{this[_0x4521('0x31')](_0x7776ad,'ready',()=>{this[_0x4521('0x19')](_0x7776ad);});}),this[_0x4521('0x31')](_0x2f7a56,_0x4521('0x1f'),(_0x5c54b9,_0x17dc0d)=>{_0x17dc0d['plugins'][_0x4521('0x2d')]('EditorAnnotations')&&this[_0x4521('0x53')](_0x17dc0d[_0x4521('0x1c')][_0x4521('0x39')](_0x4521('0xf')));}),window[_0x4521('0x18')](_0x4521('0xb'),this[_0x4521('0x38')]),this[_0x4521('0x3b')]();}[_0x4521('0x7')](_0x190449){if(_0x190449===this['activeAnnotation'])return;const _0x2569af=this['context']['plugins'][_0x4521('0x39')](_0x20b5d7);if(_0x2569af[_0x4521('0xa')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x190449,'disableAnimationOnActivatedAnnotation':!0x0}),_0x190449)_0x2569af[_0x4521('0x36')](_0x190449)?this[_0x4521('0x1b')](_0x190449):this[_0x4521('0x4f')]();else this['_hideBalloon']();this[_0x4521('0x3')]=_0x190449;}[_0x4521('0x4')](){if(!this[_0x4521('0x5a')])throw new _0x3868c0(_0x4521('0x4e'),this);this[_0x4521('0x7')](null);const _0x15317e=this[_0x4521('0x21')][_0x4521('0x1c')][_0x4521('0x39')](_0x20b5d7);this[_0x4521('0x4f')](),Array[_0x4521('0x57')](this[_0x4521('0x25')]['values'](),_0x77d364=>_0x77d364['destroy']()),this[_0x4521('0x25')]['clear'](),_0x15317e['_detachFromContainer'](this['annotations']),this[_0x4521('0x44')](),this['_domEmitter']['stopListening'](),this[_0x4521('0x21')]instanceof _0x4c34ea&&this[_0x4521('0x44')](this[_0x4521('0x21')][_0x4521('0x4c')]);for(const _0x2dab90 of Array[_0x4521('0x57')](this[_0x4521('0x47')]))this[_0x4521('0x53')](_0x2dab90);window[_0x4521('0x13')]('resize',this['_refreshPositioningDebounced']),this[_0x4521('0x38')][_0x4521('0x3a')](),this[_0x4521('0x5b')]=[],this[_0x4521('0x5a')]=!0x1,this[_0x4521('0x2f')]=null;}['destroy'](){this[_0x4521('0x5a')]&&this[_0x4521('0x4')](),this[_0x4521('0x37')][_0x4521('0x6')]();}[_0x4521('0x19')](_0x24d33b){const _0x1c60b5=_0x24d33b['plugins'][_0x4521('0x39')](_0x3eee4f),_0x1f5b1b=this[_0x4521('0x21')][_0x4521('0x1c')]['get'](_0x20b5d7),_0x173fff=this[_0x4521('0x2f')],_0x190879=this[_0x4521('0x11')],_0xd75352=()=>{const _0x4beb64=_0x1c60b5[_0x4521('0x4a')]({'annotations':this[_0x4521('0x2f')],'activeAnnotation':this['activeAnnotation']});this[_0x4521('0x52')](_0x4beb64),this[_0x4521('0x7')](_0x4beb64[0x0]||null);};this['listenTo'](_0x1c60b5,_0x4521('0xa'),_0xd75352),this[_0x4521('0x31')](_0x1c60b5,'blur',(_0x33e2a2,{isAnnotationTracked:_0x4099d9})=>{this[_0x4521('0x3')]&&_0x4099d9(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this[_0x4521('0x7')](null));}),this['listenTo'](_0x1c60b5,_0x4521('0x3f'),()=>{this[_0x4521('0x38')]();}),this['listenTo'](_0x173fff,_0x4521('0x51'),_0x45edab=>{_0x1c60b5[_0x4521('0x46')]()&&_0x45edab['stop']();},{'priority':'high'}),this[_0x4521('0x31')](this[_0x4521('0x35')],_0x4521('0x30'),(_0x5c8010,_0xfd2714)=>{const _0x5095d1=_0xfd2714['target'];_0x190879[_0x4521('0x0')]&&_0x190879['element'][_0x4521('0x58')](_0x5095d1)||_0x1f5b1b[_0x4521('0xe')][_0x4521('0x8')]['contains'](_0x5095d1)||this['activeAnnotation']&&_0x1c60b5['hasDomSelection']()&&(_0xd75352(),_0x5c8010['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations'][_0x4521('0x40')](_0x1c60b5);}['_destroyEditorAnnotationsIntegration'](_0x5d331a){_0x5d331a&&(this[_0x4521('0x44')](_0x5d331a),this['_editorAnnotations'][_0x4521('0x1f')](_0x5d331a));}[_0x4521('0x52')](_0x13dddd){for(const _0x39288f of this[_0x4521('0x5b')])_0x13dddd[_0x4521('0x29')](_0x39288f)||this[_0x4521('0x20')][_0x4521('0x2')](_0x39288f[_0x4521('0xe')]);this[_0x4521('0x5b')]=_0x13dddd;}['_refreshPositioning'](){const _0x4be342=this['balloonPanelView'];this[_0x4521('0x2f')][_0x4521('0x5')](),_0x4be342['isVisible']&&this[_0x4521('0x2c')]();}[_0x4521('0x1b')](_0x3c1627){if(this[_0x4521('0x20')][_0x4521('0x2d')](_0x3c1627[_0x4521('0xe')]))return;const _0x202ca0=this['balloonPanelView'][_0x4521('0x14')][_0x4521('0x17')];_0x202ca0!==_0x3c1627[_0x4521('0xe')]?(_0x202ca0&&this[_0x4521('0x10')](_0x202ca0),this['_attachListeners'](_0x3c1627[_0x4521('0xe')]),this['balloonPanelView'][_0x4521('0x14')]['clear'](),this[_0x4521('0x11')][_0x4521('0x14')][_0x4521('0x40')](_0x3c1627[_0x4521('0xe')]),this[_0x4521('0x2c')]()):this['_updateBalloonPosition']();}[_0x4521('0x2c')](){const _0x1e59ed=this[_0x4521('0x11')][_0x4521('0x14')][_0x4521('0x17')],_0x570ee5=_0x1e59ed&&this['annotations'][_0x4521('0x2e')](_0x1e59ed);if(!_0x570ee5||!this[_0x4521('0x25')][_0x4521('0x2d')](_0x570ee5))return;const _0x34dd83=this[_0x4521('0x25')][_0x4521('0x39')](_0x570ee5)[_0x4521('0x8')],_0x2d4c52=function(){const _0x37d026=_0x2d5c09[_0x4521('0x9')];return[_0x37d026[_0x4521('0x41')],_0x37d026[_0x4521('0x3d')],_0x37d026['southArrowNorth'],_0x37d026[_0x4521('0x1a')],_0x37d026[_0x4521('0x2a')],_0x37d026['northArrowSouthWest']];}();this['balloonPanelView']['pin']({'target':_0x34dd83,'positions':_0x2d4c52});}[_0x4521('0x4f')](){const _0x113973=this[_0x4521('0x11')],_0xfd6527=_0x113973[_0x4521('0x14')]['first'];_0xfd6527&&(this[_0x4521('0x10')](_0xfd6527),_0x113973[_0x4521('0x22')](),_0x113973[_0x4521('0x14')][_0x4521('0x12')]());}[_0x4521('0x23')](_0x11af8e){this[_0x4521('0x31')](_0x11af8e,_0x4521('0x4b'),()=>this['_updateBalloonPosition']()),this['listenTo'](_0x11af8e,_0x4521('0x56'),(_0x418d3e,_0x479531)=>{this[_0x4521('0x20')]['add'](_0x11af8e),this['_hideBalloon'](),_0x479531();});}[_0x4521('0x10')](_0x276f51){this[_0x4521('0x44')](_0x276f51);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2be7=['define','_alignAfterItem','_spaceBetweenItems','last','element','_alignBeforeItem','getIndex','isAnimationDisabled','_activeAnnotation','_getMaxAvailableTop','length','nodeType','add','locale','sidebar.preventScrollOutOfView','container','delete','max','set','bind','_getItemBefore','remove','clear','_alignForBottomChange','sidebar.container','_destroySidebarItemView','_alignToTargetRect','setContainer','isActive','unbind','_annotationToSidebarItemView','top','height','init','config','context','target','content','targetRect','_annotations','rearrange','listenTo','change:targetRect','_recalculateBuffer','minHeight','_getTargetTop','push','destroy','stopListening','class','change:_lastItem','change:bottom','appendChild','_createSidebarView','_sidebarItemViewToAnnotation','_attachToContainer','get','getSidebarItemView','updateHeight','sidebar-attachtocontainer-missing-container','_setItemTop','list','_targetTop','_lastItem','refresh','_recalculate','Sidebar','render','bottom','_alignForTopChange','view','_updateLastItem'];(function(_0xcf287,_0x2be71a){const _0x1d0af9=function(_0x223a51){while(--_0x223a51){_0xcf287['push'](_0xcf287['shift']());}};_0x1d0af9(++_0x2be71a);}(_0x2be7,0x67));const _0x1d0a=function(_0xcf287,_0x2be71a){_0xcf287=_0xcf287-0x0;let _0x1d0af9=_0x2be7[_0xcf287];return _0x1d0af9;};import{ContextPlugin as _0x370b66}from'ckeditor5/src/core';import{Rect as _0x4f7364,CKEditorError as _0x112d2c}from'ckeditor5/src/utils';import _0x1dbe5b from'./view/sidebarview';import _0x35a9eb from'./view/sidebaritemview';export default class z extends _0x370b66{static get['pluginName'](){return _0x1d0a('0x23');}constructor(_0x5e9479){super(_0x5e9479),this[_0x1d0a('0x3b')](_0x1d0a('0x20'),void 0x0),this['view']=this['_createSidebarView'](),this[_0x1d0a('0x3b')](_0x1d0a('0x38'),null),this[_0x1d0a('0x2b')]=0x19,this[_0x1d0a('0x17')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x1d0a('0x4')][_0x1d0a('0x3')][_0x1d0a('0x29')](_0x1d0a('0x37'),!0x1),this[_0x1d0a('0x8')]=null,this[_0x1d0a('0x31')]=null,this[_0x1d0a('0xc')]=[];}[_0x1d0a('0x2')](){const _0x43b702=this[_0x1d0a('0x4')][_0x1d0a('0x3')][_0x1d0a('0x19')](_0x1d0a('0x41'));_0x43b702&&this[_0x1d0a('0x44')](_0x43b702);}['setContainer'](_0x51f97b){if(!y(_0x51f97b))throw new _0x112d2c('sidebar-setcontainer-invalid-element');this[_0x1d0a('0x38')]=_0x51f97b;}[_0x1d0a('0x18')]({viewClass:_0x2a5d72='',spaceBetweenItems:_0x4b80ee=0x19}={}){if(!y(this[_0x1d0a('0x38')]))throw new _0x112d2c(_0x1d0a('0x1c'),this);this[_0x1d0a('0x38')][_0x1d0a('0x15')](this[_0x1d0a('0x27')][_0x1d0a('0x2d')]),this['view'][_0x1d0a('0x12')]=_0x2a5d72,this[_0x1d0a('0x2b')]=_0x4b80ee;}[_0x1d0a('0x9')]({removedAnnotation:_0x23e19b,previousAnnotation:_0x333247,nextAnnotation:_0x1beb33}){const _0xe0d8b6=this['getSidebarItemView'](_0x23e19b);this[_0x1d0a('0x27')][_0x1d0a('0x1e')][_0x1d0a('0x3e')](_0xe0d8b6),this[_0x1d0a('0x42')](_0x23e19b),_0x333247&&this[_0x1d0a('0x43')](this[_0x1d0a('0x1a')](_0x333247)),_0x1beb33&&this[_0x1d0a('0x43')](this[_0x1d0a('0x1a')](_0x1beb33)),this[_0x1d0a('0x28')]();}[_0x1d0a('0x21')]({blurredAnnotation:_0x38b0b0,activatedAnnotation:_0x279b39,disableAnimationOnActivatedAnnotation:_0x31b0b9}){if(this[_0x1d0a('0x31')]=_0x279b39,_0x38b0b0){_0x38b0b0[_0x1d0a('0x45')]=!0x1;const _0x4b06e5=this[_0x1d0a('0x1a')](_0x38b0b0);_0x4b06e5&&_0x31b0b9&&(_0x4b06e5[_0x1d0a('0x30')]=!0x1);}if(_0x279b39){const _0x210e84=this['getSidebarItemView'](_0x279b39);_0x210e84&&(_0x279b39[_0x1d0a('0x45')]=!0x0,_0x31b0b9&&(_0x210e84[_0x1d0a('0x30')]=!0x0,_0x210e84['top']+=0x1),this['_alignToTargetRect'](_0x210e84));}}['_detachFromContainer'](_0xdf67da){if(this['view'][_0x1d0a('0x2d')][_0x1d0a('0x3e')](),_0xdf67da)for(const _0x31aaa0 of _0xdf67da)this[_0x1d0a('0x42')](_0x31aaa0);this[_0x1d0a('0x27')][_0x1d0a('0x1e')][_0x1d0a('0x3f')](),this[_0x1d0a('0x27')]['class']='',this['_lastItem']=null;}['addAnnotation'](_0x184e98,_0x5afc18){_0x5afc18||(_0x5afc18=_0x184e98[_0x1d0a('0x27')]);const _0x269029=new _0x35a9eb(this[_0x1d0a('0x4')]['locale']);this[_0x1d0a('0x17')][_0x1d0a('0x3b')](_0x269029,_0x184e98),this[_0x1d0a('0x47')][_0x1d0a('0x3b')](_0x184e98,_0x269029),_0x269029['content'][_0x1d0a('0x35')](_0x5afc18),this[_0x1d0a('0xa')](_0x184e98[_0x1d0a('0x27')],_0x1d0a('0xb'),(_0x219497,_0x4d7afd,_0x488aca)=>{const _0x17712d=this[_0x1d0a('0xe')](_0x184e98,_0x488aca);_0x269029['_targetTop']!=_0x17712d&&(_0x269029[_0x1d0a('0x1f')]=_0x17712d,this[_0x1d0a('0x1d')](_0x269029,_0x17712d));}),this['listenTo'](_0x269029,'change:top',()=>{this[_0x1d0a('0x22')](_0x269029,_0x1d0a('0x0'));}),this['listenTo'](_0x269029,_0x1d0a('0x14'),()=>{this[_0x1d0a('0x22')](_0x269029,_0x1d0a('0x25'));}),this[_0x1d0a('0x43')](_0x269029);const _0x23424c=this['_getItemBefore'](_0x269029);if(_0x23424c)this['_alignAfterItem'](_0x23424c,_0x269029)||this[_0x1d0a('0x43')](_0x269029);else this['_alignToTargetRect'](_0x269029);return this[_0x1d0a('0x28')](),this[_0x1d0a('0x27')][_0x1d0a('0x1e')][_0x1d0a('0x35')](_0x269029),_0x269029;}[_0x1d0a('0x26')](_0x34527f){if(!_0x34527f['content']['length'])return;const _0x374cdf=this['_getItemBefore'](_0x34527f);if(!_0x374cdf)return;const _0xda9835=this[_0x1d0a('0x17')][_0x1d0a('0x19')](_0x374cdf),_0x21a328=this[_0x1d0a('0x31')];_0x21a328&&_0x21a328===_0xda9835?this['_alignAfterItem'](_0x374cdf,_0x34527f):this[_0x1d0a('0x2e')](_0x34527f,_0x374cdf);}[_0x1d0a('0x40')](_0x2076d1){if(!_0x2076d1[_0x1d0a('0x6')]['length'])return;const _0x4d2cfd=this['_getItemAfter'](_0x2076d1);if(!_0x4d2cfd)return;const _0x47a2cf=this[_0x1d0a('0x17')][_0x1d0a('0x19')](_0x4d2cfd),_0x4cc640=this['context'][_0x1d0a('0x3')][_0x1d0a('0x19')](_0x1d0a('0x37')),_0x4b73c9=this[_0x1d0a('0x31')];_0x4b73c9&&_0x4b73c9===_0x47a2cf&&_0x4cc640?(this['_alignBeforeItem'](_0x4d2cfd,_0x2076d1),this[_0x1d0a('0x2a')](_0x2076d1,_0x4d2cfd)):_0x4b73c9&&_0x4b73c9===_0x47a2cf?this[_0x1d0a('0x2e')](_0x4d2cfd,_0x2076d1):this['_alignAfterItem'](_0x2076d1,_0x4d2cfd);}[_0x1d0a('0x22')](_0x1ba503,_0x2ec3e3){0x0===this[_0x1d0a('0xc')][_0x1d0a('0x33')]&&setTimeout(()=>{for(const {sidebarItemView:_0x5a5fb0,changedProp:_0x1f8988}of this[_0x1d0a('0xc')])_0x1d0a('0x0')===_0x1f8988?this[_0x1d0a('0x26')](_0x5a5fb0):this[_0x1d0a('0x40')](_0x5a5fb0);this['_recalculateBuffer']=[];},0xa),this[_0x1d0a('0xc')][_0x1d0a('0xf')]({'sidebarItemView':_0x1ba503,'changedProp':_0x2ec3e3});}[_0x1d0a('0x1a')](_0x1693af){return this[_0x1d0a('0x47')][_0x1d0a('0x19')](_0x1693af);}[_0x1d0a('0x10')](){this[_0x1d0a('0x11')](),this[_0x1d0a('0x27')]['destroy']();}['_destroySidebarItemView'](_0x492d8e){const _0x41f5fc=this[_0x1d0a('0x1a')](_0x492d8e);this[_0x1d0a('0x11')](_0x41f5fc),this['stopListening'](_0x492d8e['view']),_0x41f5fc[_0x1d0a('0x10')](),this['_annotationToSidebarItemView'][_0x1d0a('0x39')](_0x492d8e),this[_0x1d0a('0x17')][_0x1d0a('0x39')](_0x41f5fc);}[_0x1d0a('0x16')](){const _0x198554=new _0x1dbe5b(this['context'][_0x1d0a('0x36')]);return _0x198554[_0x1d0a('0x24')](),this['on'](_0x1d0a('0x13'),(_0x381935,_0x56b603,_0x1a4888,_0x4daa4e)=>{_0x4daa4e&&_0x198554[_0x1d0a('0x46')]('minHeight'),_0x1a4888?_0x198554[_0x1d0a('0x3c')]('minHeight')['to'](_0x1a4888,_0x1d0a('0x25')):_0x198554[_0x1d0a('0xd')]=null;}),_0x198554;}[_0x1d0a('0x28')](){var _0x52067f;this['_lastItem']=(null===(_0x52067f=this[_0x1d0a('0x8')])||void 0x0===_0x52067f?void 0x0:_0x52067f[_0x1d0a('0x2c')])?this[_0x1d0a('0x1a')](this['_annotations'][_0x1d0a('0x2c')]):null;}[_0x1d0a('0x3d')](_0x1aad0d){var _0x533470;const _0x31f396=this[_0x1d0a('0x17')][_0x1d0a('0x19')](_0x1aad0d),_0x3b89c6=_0x31f396&&(null===(_0x533470=this[_0x1d0a('0x8')])||void 0x0===_0x533470?void 0x0:_0x533470[_0x1d0a('0x19')](this[_0x1d0a('0x8')][_0x1d0a('0x2f')](_0x31f396)-0x1));return _0x3b89c6&&this['getSidebarItemView'](_0x3b89c6)||null;}['_getItemAfter'](_0x5881ec){var _0x48bf24;const _0x54b0e0=this[_0x1d0a('0x17')][_0x1d0a('0x19')](_0x5881ec),_0x4ee888=_0x54b0e0&&(null===(_0x48bf24=this[_0x1d0a('0x8')])||void 0x0===_0x48bf24?void 0x0:_0x48bf24[_0x1d0a('0x19')](this['_annotations'][_0x1d0a('0x2f')](_0x54b0e0)+0x1));return _0x4ee888&&this[_0x1d0a('0x1a')](_0x4ee888)||null;}[_0x1d0a('0x2e')](_0x4aa797,_0xf0d91c){_0x4aa797[_0x1d0a('0x1b')]();const _0x2ab5f2=H(_0xf0d91c['bottom']+this[_0x1d0a('0x2b')],_0x4aa797[_0x1d0a('0x0')]);return!!_0x2ab5f2&&(this[_0x1d0a('0x1d')](_0xf0d91c,_0xf0d91c[_0x1d0a('0x0')]-_0x2ab5f2),!0x0);}[_0x1d0a('0x2a')](_0x1bfe1c,_0x28931a){_0x1bfe1c[_0x1d0a('0x1b')]();const _0x3edfd7=H(_0x1bfe1c[_0x1d0a('0x25')]+this[_0x1d0a('0x2b')],_0x28931a[_0x1d0a('0x0')]);return!!_0x3edfd7&&(this[_0x1d0a('0x1d')](_0x28931a,_0x28931a['top']+_0x3edfd7,!0x1),!0x0);}[_0x1d0a('0x43')](_0x473cfc){const _0x37fc7d=this['_sidebarItemViewToAnnotation'][_0x1d0a('0x19')](_0x473cfc);if(!_0x37fc7d||!_0x37fc7d[_0x1d0a('0x5')]||!_0x37fc7d[_0x1d0a('0x7')])return;const _0x1f61f2=this[_0x1d0a('0xe')](_0x37fc7d,_0x37fc7d['targetRect']);this[_0x1d0a('0x1d')](_0x473cfc,_0x1f61f2);}[_0x1d0a('0xe')](_0x80959e,_0x1aaf9e){if(null===_0x1aaf9e)return 0x0;if(_0x80959e[_0x1d0a('0x5')]instanceof _0x4f7364)return _0x1aaf9e[_0x1d0a('0x0')];{const _0xb5d5b0=new _0x4f7364(this['view'][_0x1d0a('0x2d')])['top'];return _0x1aaf9e[_0x1d0a('0x0')]-_0xb5d5b0;}}[_0x1d0a('0x1d')](_0x159b85,_0x29df0f,_0x7545a=this[_0x1d0a('0x4')][_0x1d0a('0x3')][_0x1d0a('0x19')](_0x1d0a('0x37'))){_0x7545a&&(_0x29df0f=Math[_0x1d0a('0x3a')](_0x29df0f,this[_0x1d0a('0x32')](_0x159b85))),_0x159b85[_0x1d0a('0x0')]=_0x29df0f;}[_0x1d0a('0x32')](_0x5a4f36){let _0x6dd982=this[_0x1d0a('0x3d')](_0x5a4f36),_0x4b3dd5=0x0;for(;_0x6dd982;)_0x6dd982[_0x1d0a('0x1b')](),_0x4b3dd5+=this['_spaceBetweenItems']+_0x6dd982[_0x1d0a('0x1')],_0x6dd982=this['_getItemBefore'](_0x6dd982);return _0x4b3dd5;}}function H(_0x47e4d8,_0x44d9a8){return Math[_0x1d0a('0x3a')](_0x47e4d8-_0x44d9a8,0x0);}function y(_0x398dcd){return null!==_0x398dcd&&'object'==typeof _0x398dcd&&0x1===_0x398dcd[_0x1d0a('0x34')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x156c=['set','bindTemplate','annotationType','ck-annotation-counter__badge--','bind','number','counterView','span','ck-annotation-counter','add','_badge','extendTemplate','isDirty'];(function(_0x275f58,_0x156c5d){const _0xc90cad=function(_0x471547){while(--_0x471547){_0x275f58['push'](_0x275f58['shift']());}};_0xc90cad(++_0x156c5d);}(_0x156c,0x6e));const _0xc90c=function(_0x275f58,_0x156c5d){_0x275f58=_0x275f58-0x0;let _0xc90cad=_0x156c[_0x275f58];return _0xc90cad;};import{ButtonView as _0x3d24d4,View as _0x34211b}from'ckeditor5/src/ui';import _0x154a6a from'../../../theme/icons/add-comment.svg';export default class D extends _0x3d24d4{constructor(_0x57dbb1){super(_0x57dbb1);const _0x56a93e=this[_0xc90c('0x8')];this[_0xc90c('0x7')](_0xc90c('0x6'),!0x1),this[_0xc90c('0x7')]('number',0x0),this[_0xc90c('0xb')](_0xc90c('0x4'))['to'](this,_0xc90c('0x6'),this,_0xc90c('0xc'),(_0x37cfb9,_0x277619)=>_0x37cfb9?'...':_0x277619['toString']()),this[_0xc90c('0x7')]('annotationType',''),this['icon']=_0x154a6a,this[_0xc90c('0x5')]({'attributes':{'class':[_0xc90c('0x2')]}}),this[_0xc90c('0x0')]=new _0x34211b(),this[_0xc90c('0x0')]['setTemplate']({'tag':_0xc90c('0x1'),'attributes':{'class':['ck-annotation-counter__badge',_0x56a93e['to'](_0xc90c('0x9'),_0x42400e=>_0xc90c('0xa')+_0x42400e),_0x56a93e['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x56a93e['to'](_0xc90c('0x4'))}]}),this['children'][_0xc90c('0x3')](this[_0xc90c('0x0')]);}}
|