@ckeditor/ckeditor5-comments 0.0.0-nightly-20230710.1 → 0.0.0-nightly-20230712.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/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-20230712.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-20230712.0",
|
|
47
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230712.0",
|
|
48
48
|
"lodash-es": "^4.17.11"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x382b=['render','isVisible','stopListening','_assertCorrectTarget','remove','clear','target','updateTargetRect','every','isActive','length','_id','focusTracker','offsetParent','element','nodeType','focusableElements','mainView','_getNormalizedTarget','targetRect','refreshVisibility','_type','destroy','item','filter','type','view','getClientRects','set','add','_target','function'];(function(_0x5a0c1c,_0x382b99){const _0x14f98c=function(_0xb4d623){while(--_0xb4d623){_0x5a0c1c['push'](_0x5a0c1c['shift']());}};_0x14f98c(++_0x382b99);}(_0x382b,0x1de));const _0x14f9=function(_0x5a0c1c,_0x382b99){_0x5a0c1c=_0x5a0c1c-0x0;let _0x14f98c=_0x382b[_0x5a0c1c];return _0x14f98c;};import{CKEditorError as _0x506f6c,Rect as _0xd83a77,Collection as _0x1736f7,ObservableMixin as _0x1d62d9}from'ckeditor5/src/utils';export default class d extends _0x1d62d9(){constructor({view:_0x181457,target:_0x4dea7c,type:_0x14f1e2,isVisible:_0x5ab970=!0x0}){super(),this['view']=_0x181457,this[_0x14f9('0x1c')]['element']||this[_0x14f9('0x1c')][_0x14f9('0x2')](),this['_type']=_0x14f1e2,this['_target']=_0x4dea7c,d[_0x14f9('0x5')](this[_0x14f9('0x14')]()),this[_0x14f9('0x12')]=new _0x1736f7([this[_0x14f9('0x1c')][_0x14f9('0x10')]],{'idProperty':_0x14f9('0xd')}),this[_0x14f9('0x12')]['on'](_0x14f9('0x1f'),(_0x5b6350,_0x2dc663)=>{this[_0x14f9('0x1c')][_0x14f9('0xe')][_0x14f9('0x1f')](_0x2dc663);}),this[_0x14f9('0x12')]['on'](_0x14f9('0x6'),(_0x422d33,_0x2e6a56)=>{this['view']['focusTracker'][_0x14f9('0x6')](_0x2e6a56);}),this[_0x14f9('0x1e')](_0x14f9('0x3'),_0x5ab970);}get[_0x14f9('0x1b')](){return _0x14f9('0x1')==typeof this[_0x14f9('0x17')]?this[_0x14f9('0x17')]():this[_0x14f9('0x17')];}get['innerView'](){return this[_0x14f9('0x1c')]['mainView'];}get[_0x14f9('0x8')](){const _0x32c84c=this['_getNormalizedTarget']();return d[_0x14f9('0x5')](_0x32c84c),_0x32c84c;}get[_0x14f9('0x15')](){const _0x53dcd0=this[_0x14f9('0x8')];if(null===_0x53dcd0)return null;if(_0x53dcd0 instanceof _0xd83a77)return _0x53dcd0;const _0x265d55=_0x53dcd0[_0x14f9('0x1a')](_0x11fb5d=>function(_0x2a1b1d){const _0x393dce=_0x2a1b1d[_0x14f9('0xf')];if(_0x393dce)return!0x0;const _0x1d3226=_0x2a1b1d[_0x14f9('0x1d')]()[_0x14f9('0x19')](0x0);return!!_0x1d3226;}(_0x11fb5d));return 0x0===_0x265d55[_0x14f9('0xc')]?null:new _0xd83a77(_0x265d55[0x0]['getClientRects']()[_0x14f9('0x19')](0x0));}get[_0x14f9('0xb')](){return this[_0x14f9('0x1c')]['isActive'];}set[_0x14f9('0xb')](_0x12bb90){this['view'][_0x14f9('0xb')]=_0x12bb90,this[_0x14f9('0x1c')][_0x14f9('0x13')][_0x14f9('0xb')]=_0x12bb90;}[_0x14f9('0x9')](){this[_0x14f9('0x1c')][_0x14f9('0x15')]=this['targetRect'];}[_0x14f9('0x18')](){this[_0x14f9('0x12')][_0x14f9('0x4')](),this[_0x14f9('0x12')][_0x14f9('0x7')](),this[_0x14f9('0x4')]();}[_0x14f9('0x16')](){this[_0x14f9('0x3')]=!!this[_0x14f9('0x15')];}static['_assertCorrectTarget'](_0x68a9e){if(!(null===_0x68a9e||_0x68a9e instanceof _0xd83a77||Array['isArray'](_0x68a9e)&&_0x68a9e[_0x14f9('0xa')](_0xee4dcc=>y(_0xee4dcc))))throw new _0x506f6c('annotation-invalid-target',null,{'target':_0x68a9e});}['_getNormalizedTarget'](){const _0x57639f=_0x14f9('0x1')==typeof this[_0x14f9('0x0')]?this['_target']():this[_0x14f9('0x0')];return y(_0x57639f)?[_0x57639f]:_0x57639f;}}function y(_0x50f922){return null!==_0x50f922&&'object'==typeof _0x50f922&&_0x14f9('0x11')in _0x50f922&&0x1===_0x50f922['nodeType'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53e5=['length','innerView','getByView','view','annotationcollection-not-existing-item','getIndex','get','add','delete','refreshPositioning','has','blur','change:isFocused','targetRect','_getOrderInContent','left','stopListening','focusTracker','listenTo','clear','updateTargetRect','_innerViewToAnnotation','remove','annotationcollection-duplicated-item','focusableElements','focus','set','_viewToAnnotation','_focusTracker','fire','sort','destroy','top','_sort'];(function(_0x2bcdbd,_0x53e56d){const _0x314b96=function(_0x484ed9){while(--_0x484ed9){_0x2bcdbd['push'](_0x2bcdbd['shift']());}};_0x314b96(++_0x53e56d);}(_0x53e5,0x11c));const _0x314b=function(_0x2bcdbd,_0x53e56d){_0x2bcdbd=_0x2bcdbd-0x0;let _0x314b96=_0x53e5[_0x2bcdbd];return _0x314b96;};import{CKEditorError as _0x23783a,Collection as _0x2fc349,FocusTracker as _0x392366}from'ckeditor5/src/utils';export default class x extends _0x2fc349{constructor(_0x29eaf7=[]){super(),this[_0x314b('0x9')]=new Map(),this[_0x314b('0xf')]=new Map(),this['_focusTracker']=new _0x392366(),this[_0x314b('0x10')]['on'](_0x314b('0x0'),(_0x979825,_0x52485f,_0x52c744)=>{_0x52c744||this[_0x314b('0x11')](_0x314b('0x21'));});for(const _0x466acc of _0x29eaf7)this[_0x314b('0x1d')](_0x466acc);}get['isFocused'](){return this['_focusTracker']['isFocused'];}[_0x314b('0x1d')](_0x286d25){if(this[_0x314b('0x20')](_0x286d25))throw new _0x23783a(_0x314b('0xb'),null);this[_0x314b('0x9')][_0x314b('0xe')](_0x286d25[_0x314b('0x17')],_0x286d25),this[_0x314b('0xf')][_0x314b('0xe')](_0x286d25['view'],_0x286d25);for(const _0x1f010f of _0x286d25[_0x314b('0xc')])this[_0x314b('0x10')][_0x314b('0x1d')](_0x1f010f);this[_0x314b('0x6')](_0x286d25[_0x314b('0xc')],_0x314b('0x1d'),(_0x346515,_0x44e785)=>{this[_0x314b('0x10')][_0x314b('0x1d')](_0x44e785);}),this['listenTo'](_0x286d25[_0x314b('0xc')],'remove',(_0x116deb,_0x2b58d6)=>{this[_0x314b('0x10')][_0x314b('0xa')](_0x2b58d6);}),this[_0x314b('0x6')](_0x286d25[_0x314b('0x19')][_0x314b('0x5')],_0x314b('0x0'),(_0x579211,_0x2f08ef,_0x58afb0)=>{_0x58afb0&&this[_0x314b('0x11')](_0x314b('0xd'),_0x286d25);}),_0x286d25[_0x314b('0x8')]();const _0x3afa47=this[_0x314b('0x2')](_0x286d25[_0x314b('0x19')]['targetRect']);return super[_0x314b('0x1d')](_0x286d25,_0x3afa47);}['remove'](_0x107991){if(!this['has'](_0x107991))throw new _0x23783a(_0x314b('0x1a'),null);this[_0x314b('0x4')](_0x107991[_0x314b('0x19')][_0x314b('0x5')]),this[_0x314b('0x4')](_0x107991[_0x314b('0xc')]);for(const _0x40bd30 of _0x107991[_0x314b('0xc')])this[_0x314b('0x10')][_0x314b('0xa')](_0x40bd30);return this['_viewToAnnotation']['delete'](_0x107991[_0x314b('0x19')]),this['_innerViewToAnnotation'][_0x314b('0x1e')](_0x107991['innerView']),super[_0x314b('0xa')](_0x107991);}['getByInnerView'](_0x52d236){return this['_innerViewToAnnotation']['get'](_0x52d236);}[_0x314b('0x18')](_0x52bd64){return this[_0x314b('0xf')][_0x314b('0x1c')](_0x52bd64);}[_0x314b('0x13')](){super[_0x314b('0x7')](),this[_0x314b('0x4')](),this[_0x314b('0x9')][_0x314b('0x7')](),this[_0x314b('0xf')][_0x314b('0x7')](),this[_0x314b('0x10')][_0x314b('0x13')]();}[_0x314b('0x1f')](){for(const _0x339d83 of this)_0x339d83[_0x314b('0x8')]();this[_0x314b('0x15')]();}[_0x314b('0x15')](){const _0x5a3027=Array['from'](this)[_0x314b('0x12')]((_0x1f9731,_0x3c8325)=>v(_0x1f9731['view'][_0x314b('0x1')],_0x3c8325['view'][_0x314b('0x1')]));for(let _0x247380=_0x5a3027[_0x314b('0x16')]-0x1;_0x247380>0x0;_0x247380--){const _0x172e88=_0x5a3027[_0x247380];_0x247380!==this[_0x314b('0x1b')](_0x172e88)&&(this[_0x314b('0xa')](_0x172e88),this[_0x314b('0x1d')](_0x172e88));}}['_getOrderInContent'](_0x544286){let _0x484a84=0x0;if(!_0x544286)return this[_0x314b('0x16')];for(const _0x3962c4 of this){const _0x3a213b=_0x3962c4['view'][_0x314b('0x1')];if(_0x3a213b){if(v(_0x544286,_0x3a213b)<0x0)return _0x484a84;_0x484a84++;}}return _0x484a84;}}export function bindAnnotationCollections({source:_0x5686f8,target:_0x3e0554,filter:_0x4134a3}){for(const _0x398b64 of _0x5686f8)_0x4134a3(_0x398b64)&&_0x3e0554[_0x314b('0x1d')](_0x398b64);_0x3e0554[_0x314b('0x6')](_0x5686f8,_0x314b('0x1d'),(_0x2e981b,_0x3f6169)=>{_0x4134a3(_0x3f6169)&&_0x3e0554['add'](_0x3f6169);}),_0x3e0554[_0x314b('0x6')](_0x5686f8,_0x314b('0xa'),(_0x4a4946,_0x3f3d8a)=>{_0x3e0554[_0x314b('0x20')](_0x3f3d8a)&&_0x3e0554[_0x314b('0xa')](_0x3f3d8a);});}function v(_0x274fa3,_0x5e3834){if(null===_0x274fa3&&null===_0x5e3834)return 0x0;if(null===_0x274fa3)return-0x1;if(null===_0x5e3834)return 0x1;const _0x4b9ada=_0x274fa3[_0x314b('0x14')]-_0x5e3834[_0x314b('0x14')];return 0x0==_0x4b9ada?_0x274fa3[_0x314b('0x3')]-_0x5e3834['left']:_0x4b9ada;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2807=['stopListening','Annotations','getByInnerView','isVisible','_visibleAnnotations','refreshPositioning','createAnnotation','refreshVisibility','activate','delete','collection','_removeActiveAnnotation','remove','change:isVisible','listenTo','fire','_deactivateAllAnnotations','source','focusTracker','view','set','activeAnnotations','_bindAnnotationsToVisibleAnnotations','element','_addActiveAnnotation','destroy','deactivateAll','has','add'];(function(_0x2f1acd,_0x2807a8){const _0x12d9e3=function(_0x5958d0){while(--_0x5958d0){_0x2f1acd['push'](_0x2f1acd['shift']());}};_0x12d9e3(++_0x2807a8);}(_0x2807,0x12a));const _0x12d9=function(_0x2f1acd,_0x2807a8){_0x2f1acd=_0x2f1acd-0x0;let _0x12d9e3=_0x2807[_0x2f1acd];return _0x12d9e3;};import{ContextPlugin as _0x5b57e6}from'ckeditor5/src/core';import _0x159d28 from'./annotation';import _0x4e0075 from'./annotationcollection';import _0x4245fe from'./view/annotationview';export default class b extends _0x5b57e6{static get['pluginName'](){return _0x12d9('0x16');}constructor(_0x22d602){super(_0x22d602),this['collection']=new _0x4e0075(),this[_0x12d9('0x19')]=new _0x4e0075(),this[_0x12d9('0xc')]('activeAnnotations',new Set()),this[_0x12d9('0xe')]();}[_0x12d9('0x14')](_0x5badc4){this['collection']['add'](_0x5badc4);}[_0x12d9('0x4')](_0x596665){this['collection'][_0x12d9('0x4')](_0x596665),_0x596665['destroy']();}[_0x12d9('0x1c')](){for(const _0x4f9266 of this[_0x12d9('0x2')])_0x4f9266[_0x12d9('0x1c')]();}[_0x12d9('0x1a')](){this[_0x12d9('0x19')][_0x12d9('0x1a')]();}[_0x12d9('0x17')](_0xde7bc3){return this[_0x12d9('0x2')]['getByInnerView'](_0xde7bc3);}[_0x12d9('0x12')](){this[_0x12d9('0x7')](_0x12d9('0x8'));}[_0x12d9('0x11')](){for(const _0x40eb11 of this['collection'])_0x40eb11[_0x12d9('0x11')]();this['_visibleAnnotations'][_0x12d9('0x11')](),this[_0x12d9('0x2')][_0x12d9('0x11')](),super['destroy']();}[_0x12d9('0x0')](_0x3ff531){this[_0x12d9('0x7')]('_activateAnnotation',_0x3ff531);}[_0x12d9('0x1b')](_0x5b971c){return new _0x159d28(_0x5b971c);}['createAnnotationView'](_0x18598b,_0x2ea31d){return new _0x4245fe(_0x18598b,_0x2ea31d);}[_0x12d9('0x10')](_0x271fb1){const _0x40537d=new Set(this[_0x12d9('0xd')]);_0x40537d[_0x12d9('0x14')](_0x271fb1),this['activeAnnotations']=_0x40537d;}[_0x12d9('0x3')](_0x362cdb){const _0x57c789=new Set(this[_0x12d9('0xd')]);_0x57c789[_0x12d9('0x1')](_0x362cdb),this[_0x12d9('0xd')]=_0x57c789;}[_0x12d9('0xe')](){const _0x19a934=this[_0x12d9('0x2')],_0x1d4fc4=this[_0x12d9('0x19')];function _0x39e25a(_0xfb80de){const _0x548934=_0xfb80de[_0x12d9('0x9')];_0x548934[_0x12d9('0x18')]&&!_0x1d4fc4[_0x12d9('0x13')](_0x548934)?_0x1d4fc4['add'](_0x548934):!_0x548934[_0x12d9('0x18')]&&_0x1d4fc4[_0x12d9('0x13')](_0x548934)&&_0x1d4fc4['remove'](_0x548934),_0x548934[_0x12d9('0xb')][_0x12d9('0xa')]['remove'](_0x548934['view']['element']),_0x548934[_0x12d9('0xb')][_0x12d9('0xa')]['add'](_0x548934[_0x12d9('0xb')][_0x12d9('0xf')]);}this[_0x12d9('0x6')](_0x19a934,_0x12d9('0x14'),(_0x5b1975,_0x33877e)=>{_0x33877e[_0x12d9('0x18')]&&_0x1d4fc4['add'](_0x33877e),this[_0x12d9('0x6')](_0x33877e,_0x12d9('0x5'),_0x39e25a);}),this[_0x12d9('0x6')](_0x19a934,_0x12d9('0x4'),(_0x3c8d8b,_0x5e5441)=>{_0x1d4fc4[_0x12d9('0x13')](_0x5e5441)&&_0x1d4fc4[_0x12d9('0x4')](_0x5e5441),this[_0x12d9('0x15')](_0x5e5441,_0x12d9('0x5'),_0x39e25a);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11bf=['size','attach','refilterAnnotations','destroy','hasActive','annotationsuis-register-already-registered','function','_uis','_visibleAnnotations','_assertAnnotationDoesNotBelongToMultipleUIs','change:activeAnnotation','annotationsuis-annotation-mismatch','has','_addActiveAnnotation','deactivateAll','setActiveAnnotation','deactivate','detach','annotationsuis-register-invalid-interface','activeAnnotations','pluginName','type','isActive','_deactivateAllAnnotations','_setSelectedAnnotations','activeUIs','register','filter','_activateAnnotation','listenTo','_uisData','context','get','plugins','from','collection','delete','activate','AnnotationsUIs','set','annotationsuis-missing-ui','add','remove','_removeActiveAnnotation'];(function(_0x49c5f3,_0x11bf32){const _0x52144e=function(_0x379d30){while(--_0x379d30){_0x49c5f3['push'](_0x49c5f3['shift']());}};_0x52144e(++_0x11bf32);}(_0x11bf,0x19a));const _0x5214=function(_0x49c5f3,_0x11bf32){_0x49c5f3=_0x49c5f3-0x0;let _0x52144e=_0x11bf[_0x49c5f3];return _0x52144e;};import{ContextPlugin as _0x5e8a56}from'ckeditor5/src/core';import{CKEditorError as _0x5ebc6c}from'ckeditor5/src/utils';import _0x3d2dde,{bindAnnotationCollections as _0x51918a}from'./annotationcollection';import _0x3afce5 from'./annotations';export default class M extends _0x5e8a56{static get['requires'](){return[_0x3afce5];}static get[_0x5214('0x6')](){return _0x5214('0x18');}constructor(_0x11d048){super(_0x11d048),this['activeUIs']=new Set(),this[_0x5214('0x25')]=new Map(),this[_0x5214('0x10')]=new Map();}['init'](){const _0x7feb48=this[_0x5214('0x11')][_0x5214('0x13')][_0x5214('0x12')](_0x3afce5);this['listenTo'](_0x7feb48,_0x5214('0xe'),(_0x29b369,_0x8e8f92)=>{for(const _0x12a623 of this[_0x5214('0xb')]){const _0x3875df=this[_0x5214('0x25')]['get'](_0x12a623);(0x0,this[_0x5214('0x10')][_0x5214('0x12')](_0x12a623)[_0x5214('0xd')])(_0x8e8f92)&&_0x3875df[_0x5214('0x1')](_0x8e8f92);}}),this['listenTo'](_0x7feb48,_0x5214('0x9'),()=>{for(const _0x294ab2 of this[_0x5214('0xb')]){this[_0x5214('0x25')][_0x5214('0x12')](_0x294ab2)[_0x5214('0x1')](null);}}),this[_0x5214('0xf')](_0x7feb48[_0x5214('0x26')],'add',(_0x35436d,_0x4fef0c)=>{this[_0x5214('0x27')](_0x4fef0c);});}[_0x5214('0x22')](){return this[_0x5214('0xb')][_0x5214('0x1e')]>0x0;}[_0x5214('0x8')](_0x7dbdf4){return this[_0x5214('0xb')][_0x5214('0x2a')](_0x7dbdf4);}['activate'](_0x5b4f57,_0x49a2a0=()=>!0x0){const _0x3d1999=this['context'][_0x5214('0x13')][_0x5214('0x12')](_0x3afce5);if(!this[_0x5214('0x25')]['has'](_0x5b4f57))throw new _0x5ebc6c('annotationsuis-missing-ui',this,{'uiName':_0x5b4f57});this[_0x5214('0x8')](_0x5b4f57)&&this['deactivate'](_0x5b4f57),this['activeUIs']['add'](_0x5b4f57);const _0x4cba06=new _0x3d2dde(),_0x53504b=_0x3d1999[_0x5214('0x26')];_0x51918a({'source':_0x53504b,'target':_0x4cba06,'filter':_0x49a2a0}),this[_0x5214('0x10')][_0x5214('0x19')](_0x5b4f57,{'collection':_0x4cba06,'filter':_0x49a2a0});const _0x261b53=this[_0x5214('0x25')][_0x5214('0x12')](_0x5b4f57);_0x261b53[_0x5214('0x1f')](_0x4cba06),this['listenTo'](_0x261b53,_0x5214('0x28'),(_0x1e1a70,_0x1e4ad0,_0x12f647,_0x2cd31d)=>{_0x2cd31d&&_0x3d1999[_0x5214('0x1d')](_0x2cd31d),_0x12f647&&_0x3d1999[_0x5214('0x2b')](_0x12f647);});}[_0x5214('0x2')](_0x5c7018){if(this[_0x5214('0xb')][_0x5214('0x16')](_0x5c7018),!this[_0x5214('0x25')][_0x5214('0x2a')](_0x5c7018))throw new _0x5ebc6c(_0x5214('0x1a'),this,{'uiName':_0x5c7018});const _0x23703e=this[_0x5214('0x25')][_0x5214('0x12')](_0x5c7018);_0x23703e[_0x5214('0x3')](),this['stopListening'](_0x23703e),this['_uisData'][_0x5214('0x12')](_0x5c7018)['collection'][_0x5214('0x21')](),this[_0x5214('0x10')][_0x5214('0x16')](_0x5c7018);}['switchTo'](_0x15a166){if(!this[_0x5214('0x25')][_0x5214('0x2a')](_0x15a166))throw new _0x5ebc6c(_0x5214('0x1a'),this,{'uiName':_0x15a166});const _0x155627=this['context'][_0x5214('0x13')][_0x5214('0x12')](_0x3afce5),_0x2a1d6c=Array[_0x5214('0x14')](_0x155627[_0x5214('0x5')])[0x0]||null;this[_0x5214('0x0')](),this[_0x5214('0x17')](_0x15a166);const _0x11b53a=this[_0x5214('0x25')][_0x5214('0x12')](_0x15a166);_0x11b53a[_0x5214('0x1')](_0x2a1d6c),_0x11b53a[_0x5214('0xa')]&&_0x2a1d6c&&_0x11b53a[_0x5214('0xa')]([_0x2a1d6c]);}[_0x5214('0x0')](){for(const _0x4b3cd4 of this['activeUIs'])this['deactivate'](_0x4b3cd4);}[_0x5214('0xc')](_0x5d379c,_0x1ca70a){if(this[_0x5214('0x25')][_0x5214('0x2a')](_0x5d379c))throw new _0x5ebc6c(_0x5214('0x23'));if(_0x5214('0x24')!=typeof _0x1ca70a[_0x5214('0x1f')]||'function'!=typeof _0x1ca70a[_0x5214('0x3')]||_0x5214('0x24')!=typeof _0x1ca70a[_0x5214('0x1')])throw new _0x5ebc6c(_0x5214('0x4'),null);this[_0x5214('0x25')][_0x5214('0x19')](_0x5d379c,_0x1ca70a);}[_0x5214('0x20')](){const _0x4dcafe=this['context'][_0x5214('0x13')]['get'](_0x3afce5)[_0x5214('0x15')],_0x2d9f1e=new Map(),_0x264052=Array['from'](this['activeUIs']);for(const _0x2caf15 of this[_0x5214('0xb')]){const _0x3b397c=this['_uisData']['get'](_0x2caf15)[_0x5214('0x15')];for(const _0x1950a2 of _0x3b397c)_0x2d9f1e[_0x5214('0x19')](_0x1950a2,_0x2caf15);}for(const _0x32b722 of _0x4dcafe){const _0xbb1722=_0x2d9f1e[_0x5214('0x12')](_0x32b722);this[_0x5214('0x27')](_0x32b722);const _0xcf65d6=_0x264052['find'](_0x58bae0=>this['_uisData']['get'](_0x58bae0)[_0x5214('0xd')](_0x32b722));_0xbb1722!==_0xcf65d6&&(_0xbb1722&&this[_0x5214('0x10')][_0x5214('0x12')](_0xbb1722)['collection'][_0x5214('0x1c')](_0x32b722),_0xcf65d6&&this[_0x5214('0x10')]['get'](_0xcf65d6)['collection'][_0x5214('0x1b')](_0x32b722));}}[_0x5214('0x21')](){this[_0x5214('0x0')](),super[_0x5214('0x21')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x57da57){const _0x11940=[];for(const _0x5b3a53 of this['activeUIs']){(0x0,this['_uisData'][_0x5214('0x12')](_0x5b3a53)[_0x5214('0xd')])(_0x57da57)&&_0x11940['push'](_0x5b3a53);}if(_0x11940['length']>0x1)throw new _0x5ebc6c(_0x5214('0x29'),null,{'matchedUIs':_0x11940,'annotationType':_0x57da57[_0x5214('0x7')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x382c=['get','_dataCollectors','annotation','_editorAnnotationsData','listenTo','isCollapsed','editorannotations-invalid-source-callback','addSourceCollector','add','cancel','element','getRanges','fire','change:isFocused','delete','document','containsRange','sort','hasDomSelection','view','_editorAnnotations','registerAnnotation','from','editor','getByInnerView','remove','EditorAnnotations','editing','directChange','init','getOrderedSelectedAnnotations','innerView','plugins','focusTracker','map','push','requires','change:range','set','selection','uiUpdate','has','refreshSelectedViews','range','model'];(function(_0x219610,_0x382c8d){const _0x30a3f7=function(_0x13158f){while(--_0x13158f){_0x219610['push'](_0x219610['shift']());}};_0x30a3f7(++_0x382c8d);}(_0x382c,0xf1));const _0x30a3=function(_0x219610,_0x382c8d){_0x219610=_0x219610-0x0;let _0x30a3f7=_0x382c[_0x219610];return _0x30a3f7;};import{Plugin as _0x3204a7}from'ckeditor5/src/core';import{CKEditorError as _0x4abc9d}from'ckeditor5/src/utils';import{debounce as _0xfabe3b}from'lodash-es';import _0x9bd2dd from'./annotations';export default class k extends _0x3204a7{static get[_0x30a3('0x14')](){return[_0x9bd2dd];}static get['pluginName'](){return _0x30a3('0xa');}constructor(_0x302f34){super(_0x302f34),this[_0x30a3('0x1e')]=new Set(),this[_0x30a3('0x4')]=new Set();}[_0x30a3('0xd')](){const _0x444264=this[_0x30a3('0x7')],_0x390498=_0x444264[_0x30a3('0x1c')][_0x30a3('0x2c')]['selection'],_0xcd7077=_0xfabe3b(()=>this[_0x30a3('0x1a')](),0xa);_0x390498['on'](_0x30a3('0x15'),(_0x5852e8,_0x434a92)=>{_0x434a92[_0x30a3('0xc')]&&(_0xcd7077[_0x30a3('0x26')](),this[_0x30a3('0x1a')]());}),this[_0x30a3('0x21')](_0x444264[_0x30a3('0xb')]['view'][_0x30a3('0x2c')],'change:isFocused',(_0x36104e,_0x3e85c5,_0x449329)=>{_0x449329&&_0xcd7077();}),this[_0x30a3('0x21')](_0x444264['ui'][_0x30a3('0x11')],_0x30a3('0x2a'),(_0x5afccc,_0x14abed,_0x860e85)=>{_0x860e85||_0x444264['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x3bb015=>this['_editorAnnotationsData']['has'](_0x3bb015[_0x30a3('0xf')])});}),this[_0x30a3('0x21')](this[_0x30a3('0x7')]['ui'],'update',()=>this[_0x30a3('0x29')](_0x30a3('0x18')));}[_0x30a3('0x5')](_0x215357){if(this[_0x30a3('0x4')][_0x30a3('0x19')](_0x215357['view']))return;this[_0x30a3('0x4')][_0x30a3('0x25')](_0x215357[_0x30a3('0x3')]),this[_0x30a3('0x7')]['ui'][_0x30a3('0x11')][_0x30a3('0x25')](_0x215357[_0x30a3('0x3')][_0x30a3('0x27')]);const _0x2d51a2=this['editor'][_0x30a3('0x10')][_0x30a3('0x1d')](_0x9bd2dd);this[_0x30a3('0x21')](_0x2d51a2['collection'],'remove',(_0x390974,_0x56adcb)=>{this[_0x30a3('0x7')]['ui'][_0x30a3('0x11')][_0x30a3('0x9')](_0x56adcb[_0x30a3('0x3')][_0x30a3('0x27')]),this[_0x30a3('0x4')][_0x30a3('0x2b')](_0x56adcb['view']);});}[_0x30a3('0x2')](){return this[_0x30a3('0x7')][_0x30a3('0xb')][_0x30a3('0x3')][_0x30a3('0x2')];}[_0x30a3('0x24')](_0x52a226){if('function'!=typeof _0x52a226)throw new _0x4abc9d(_0x30a3('0x23'));this[_0x30a3('0x1e')][_0x30a3('0x25')](_0x52a226);}['refreshSelectedViews'](){this[_0x30a3('0x29')]('refresh');}[_0x30a3('0xe')]({activeAnnotation:_0x2888f3,annotations:_0x3a93de}){const _0x218128=[],_0x12a826=this['editor']['model']['document'][_0x30a3('0x17')],_0xd88341=Array[_0x30a3('0x6')](_0x12a826[_0x30a3('0x28')]());for(const [_0x5d1ad6,_0x203e6e]of this[_0x30a3('0x20')]){const _0x30a773=_0x5ca06c(_0x203e6e),_0x23f63e=_0x3a93de[_0x30a3('0x8')](_0x5d1ad6);_0x30a773&&_0x23f63e&&_0x218128[_0x30a3('0x13')]({'annotation':_0x23f63e,'range':_0x30a773});}function _0x5ca06c(_0x2f1a5e){for(const _0x3e726e of _0x2f1a5e)for(const _0x570d47 of _0xd88341)if(_0x3e726e[_0x30a3('0x0')](_0x570d47,!_0x12a826[_0x30a3('0x22')]))return _0x3e726e;return null;}return _0x218128[_0x30a3('0x1')]((_0x5c829c,_0x2fb486)=>{const _0x4f0b20=_0x5c829c['range'],_0x180160=_0x2fb486[_0x30a3('0x1b')];if(!_0x4f0b20['isEqual'](_0x180160)){if(_0x4f0b20['containsRange'](_0x180160,!0x0))return 0x1;if(_0x180160['containsRange'](_0x4f0b20,!0x0))return-0x1;}return _0x5c829c['annotation']==_0x2888f3?-0x1:_0x2fb486[_0x30a3('0x1f')]==_0x2888f3?0x1:0x0;})[_0x30a3('0x12')](_0x46d5d8=>_0x46d5d8[_0x30a3('0x1f')]);}get[_0x30a3('0x20')](){const _0x38f100=new Map();for(const _0x36c0cc of Array[_0x30a3('0x6')](this[_0x30a3('0x1e')]))for(const [_0xe751b4,_0x3b03f3]of _0x36c0cc())_0x38f100[_0x30a3('0x16')](_0xe751b4,_0x3b03f3);return _0x38f100;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x403c=['set','inlineannotations-detach-not-attached','delete','addObserver','setActiveAnnotation','_selectedAnnotations','add','view','context','getClientRects','targetRect','isFocused','afterInit','_closeAnnotation','refresh','requires','domConverter','_balloon','getByView','left','bottom','getBoundingClientRect','plugins','hasView','collapse','activeAnnotation','target','inlineannotations-attach-already-attached','editing','_manuallyClosed','find','change:height','switchTo','stopListening','focusTracker','keystrokes','right','updatePosition','_addedAnnotations','annotations','isAttached','_getBalloonTargetForAnnotation','inline','update','change:visibleView','document','destroy','viewRangeToDom','focus','_setSelectedAnnotations','includes','top','fromRect','_forceRefresh','register','selection','has','width','remove','_removeAnnotationFromBalloon','get','editor','every','isActive','blur','push','visibleView','attach','getOrderedSelectedAnnotations','Esc','_addAnnotationToBalloon','length','listenTo','map'];(function(_0x3d6ce7,_0x403c5b){const _0x2edf09=function(_0x3f5610){while(--_0x3f5610){_0x3d6ce7['push'](_0x3d6ce7['shift']());}};_0x2edf09(++_0x403c5b);}(_0x403c,0x166));const _0x2edf=function(_0x3d6ce7,_0x403c5b){_0x3d6ce7=_0x3d6ce7-0x0;let _0x2edf09=_0x403c[_0x3d6ce7];return _0x2edf09;};import{Plugin as _0x4e724e}from'ckeditor5/src/core';import _0x153a12 from'./annotationsuis';import _0x3b30c6 from'./editorannotations';import{ContextualBalloon as _0x4e3015}from'ckeditor5/src/ui';import{MouseObserver as _0x211659}from'ckeditor5/src/engine';import{CKEditorError as _0x262398,Rect as _0x453b06}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x4e724e{static get[_0x2edf('0x1b')](){return[_0x3b30c6,_0x4e3015,_0x153a12];}static get['pluginName'](){return'InlineAnnotations';}constructor(_0x246301){super(_0x246301),_0x246301[_0x2edf('0x28')]['view'][_0x2edf('0xf')](_0x211659),this[_0x2edf('0x34')]=!0x1,this[_0x2edf('0xc')]('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x246301['plugins'][_0x2edf('0x48')](_0x4e3015),this[_0x2edf('0x32')]=new Set(),this['_selectedAnnotations']=[],this[_0x2edf('0x41')]=!0x1;}['init'](){const _0x85ced1=this[_0x2edf('0x49')]['plugins'][_0x2edf('0x48')](_0x153a12);_0x85ced1[_0x2edf('0x14')]===this[_0x2edf('0x49')]&&(_0x85ced1[_0x2edf('0x42')]('inline',this),this['editor'][_0x2edf('0x2f')]['set'](_0x2edf('0x7'),(_0x4bf277,_0x3e7e8a)=>{const _0x3ad1f2=this[_0x2edf('0x1d')];if(this['isAttached']&&_0x3ad1f2[_0x2edf('0x4')]){const _0x4676be=this[_0x2edf('0x33')][_0x2edf('0x1e')](_0x3ad1f2[_0x2edf('0x4')]);_0x4676be&&this[_0x2edf('0x19')](_0x4676be),_0x3e7e8a();}}));}[_0x2edf('0x18')](){const _0x3a708e=this[_0x2edf('0x49')][_0x2edf('0x22')][_0x2edf('0x48')](_0x153a12);_0x3a708e[_0x2edf('0x14')]===this[_0x2edf('0x49')]&&(_0x3a708e['hasActive']()||_0x3a708e[_0x2edf('0x2c')](_0x2edf('0x36')));}[_0x2edf('0x10')](_0x4c0926){_0x4c0926!==this[_0x2edf('0x25')]&&(this[_0x2edf('0x25')]&&(this[_0x2edf('0x25')][_0x2edf('0x1')]=!0x1),_0x4c0926&&this[_0x2edf('0x49')]['ui'][_0x2edf('0x2e')]['isFocused']&&(this['annotations'][_0x2edf('0x44')](_0x4c0926)&&this[_0x2edf('0x8')](_0x4c0926,!0x0),_0x4c0926[_0x2edf('0x1')]=!0x0),_0x4c0926||this[_0x2edf('0x3d')]([]),this[_0x2edf('0x25')]=_0x4c0926);}[_0x2edf('0x5')](_0x315ffe){this[_0x2edf('0x33')]=_0x315ffe;const _0x5bc353=this['editor'][_0x2edf('0x22')]['get'](_0x153a12),_0xef47be=this['_balloon'];if(this[_0x2edf('0x34')])throw new _0x262398(_0x2edf('0x27'),this);if(_0x5bc353[_0x2edf('0x14')]!==this[_0x2edf('0x49')])throw new _0x262398('inlineannotations-not-allowed-with-context',this);const _0x496589=this[_0x2edf('0x49')][_0x2edf('0x22')]['get'](_0x3b30c6);this[_0x2edf('0xa')](_0x496589,_0x2edf('0x1a'),()=>{const _0x3c06f2=_0x496589[_0x2edf('0x6')]({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x5f31ff,_0xac4391;!this[_0x2edf('0x41')]&&(_0x5f31ff=_0x3c06f2,_0xac4391=this[_0x2edf('0x11')],_0x5f31ff['length']===_0xac4391[_0x2edf('0x9')]&&_0x5f31ff[_0x2edf('0x0')](_0x4a4d2c=>_0xac4391[_0x2edf('0x3e')](_0x4a4d2c)))||(this['_forceRefresh']=!0x1,this[_0x2edf('0x3d')](_0x3c06f2),this['setActiveAnnotation'](_0x3c06f2[0x0]||null));}),this['listenTo'](_0x496589,_0x2edf('0x2'),(_0x12bb13,{isAnnotationTracked:_0x5f2656})=>{this['activeAnnotation']&&_0x5f2656(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this[_0x2edf('0x10')](null));}),this['listenTo'](this['editor']['ui'][_0x2edf('0x2e')],'change:isFocused',(_0x242402,_0x3d1a9e,_0x5d1b8d)=>{_0x5d1b8d||this[_0x2edf('0x10')](null);}),this[_0x2edf('0xa')](_0x315ffe,_0x2edf('0x46'),(_0x5bbf8a,_0x324847)=>{this[_0x2edf('0x47')](_0x324847),_0x324847===this['activeAnnotation']&&this[_0x2edf('0x10')](null);}),this[_0x2edf('0xa')](_0xef47be,_0x2edf('0x38'),(_0x49d9cc,_0x93866c,_0x4f9a8c,_0x5309e7)=>{_0x5309e7&&this[_0x2edf('0x2d')](_0x5309e7);const _0x5e5bbb=_0x315ffe[_0x2edf('0x1e')](_0x4f9a8c);_0x4f9a8c&&_0x5e5bbb&&(this[_0x2edf('0xa')](_0x4f9a8c,_0x2edf('0x2b'),()=>{_0xef47be[_0x2edf('0x31')]();}),this[_0x2edf('0xa')](_0x4f9a8c,'Esc',()=>{this['_closeAnnotation'](_0x5e5bbb),this[_0x2edf('0x49')][_0x2edf('0x28')][_0x2edf('0x13')][_0x2edf('0x3c')]();}),this[_0x2edf('0x25')]!==_0x5e5bbb&&this['setActiveAnnotation'](_0x5e5bbb));}),this[_0x2edf('0xa')](this[_0x2edf('0x49')]['ui'],_0x2edf('0x37'),()=>{_0xef47be['visibleView']&&(_0x315ffe[_0x2edf('0x1e')](_0xef47be[_0x2edf('0x4')])&&_0xef47be[_0x2edf('0x31')]());}),this['listenTo'](this['editor']['editing'][_0x2edf('0x13')][_0x2edf('0x39')],'mousedown',()=>{this[_0x2edf('0x41')]=!0x0,this[_0x2edf('0x29')]['clear']();}),this[_0x2edf('0x49')][_0x2edf('0x28')][_0x2edf('0x13')][_0x2edf('0x39')][_0x2edf('0x43')]['editableElement']&&this[_0x2edf('0x49')][_0x2edf('0x28')][_0x2edf('0x13')][_0x2edf('0x3c')](),this[_0x2edf('0x34')]=!0x0;}['detach'](){if(!this[_0x2edf('0x34')])throw new _0x262398(_0x2edf('0xd'),this);this[_0x2edf('0x10')](null);for(const _0x4e2068 of this[_0x2edf('0x32')])this['_removeAnnotationFromBalloon'](_0x4e2068);this[_0x2edf('0x2d')](),this['isAttached']=!0x1,this[_0x2edf('0x33')]=null;}[_0x2edf('0x3a')](){this[_0x2edf('0x34')]&&this['detach']();}[_0x2edf('0x3d')](_0x228172){for(const _0x5c98ea of this[_0x2edf('0x11')])_0x228172[_0x2edf('0x3e')](_0x5c98ea)||this['_manuallyClosed'][_0x2edf('0xe')](_0x5c98ea);for(const _0x409b25 of this[_0x2edf('0x33')])_0x228172['includes'](_0x409b25)||this[_0x2edf('0x47')](_0x409b25);if(this[_0x2edf('0x49')]['ui'][_0x2edf('0x2e')][_0x2edf('0x17')])for(const _0x921202 of _0x228172)this[_0x2edf('0x8')](_0x921202);this[_0x2edf('0x11')]=_0x228172;}[_0x2edf('0x8')](_0x16416d,_0x2ac9d7=!0x1){this[_0x2edf('0x29')][_0x2edf('0x44')](_0x16416d)||(this['_addedAnnotations'][_0x2edf('0x44')](_0x16416d)||this[_0x2edf('0x1d')][_0x2edf('0x23')](_0x16416d['view'])||(this['_addedAnnotations'][_0x2edf('0x12')](_0x16416d),this[_0x2edf('0x1d')][_0x2edf('0x12')]({'stackId':_0x16416d[_0x2edf('0x13')]['id'],'view':_0x16416d[_0x2edf('0x13')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x16416d)}})),_0x2ac9d7&&this[_0x2edf('0x1d')]['showStack'](_0x16416d[_0x2edf('0x13')]['id']));}[_0x2edf('0x35')](_0x74f163){const _0x346d56=_0x74f163[_0x2edf('0x26')],_0x14a59f=this[_0x2edf('0x49')][_0x2edf('0x28')][_0x2edf('0x13')],_0x294ee0=_0x14a59f['document'][_0x2edf('0x43')]['getFirstRange'](),_0x3222dc=_0x14a59f[_0x2edf('0x1c')][_0x2edf('0x3b')](_0x294ee0);if(_0x3222dc[_0x2edf('0x24')](!0x0),_0x346d56){if(_0x346d56 instanceof _0x453b06)return _0x346d56;let _0x146149=[];for(const _0x48a486 of _0x346d56)_0x146149['push'](...(_0x2f533d=_0x48a486[_0x2edf('0x15')](),Array['from'](_0x2f533d)[_0x2edf('0xb')](DOMRect[_0x2edf('0x40')])));_0x146149=function(_0x361d15){const _0x3caa8b=[];let _0x2499ad=_0x361d15[0x0];for(let _0x165077=0x1;_0x165077<_0x361d15[_0x2edf('0x9')];_0x165077++)F(_0x2499ad,_0x361d15[_0x165077])?_0x2499ad[_0x2edf('0x45')]+=_0x361d15[_0x165077]['width']:(_0x3caa8b[_0x2edf('0x3')](_0x2499ad),_0x2499ad=_0x361d15[_0x165077]);return _0x3caa8b[_0x2edf('0x3')](_0x2499ad),_0x3caa8b;}(_0x146149);const _0x161354=_0x3222dc[_0x2edf('0x21')]();return _0x146149[_0x2edf('0x2a')](_0x2e4b8f=>_0x2e4b8f['top']<=_0x161354[_0x2edf('0x3f')]&&_0x2e4b8f[_0x2edf('0x20')]>=_0x161354['bottom']&&_0x2e4b8f[_0x2edf('0x1f')]<=_0x161354[_0x2edf('0x1f')]&&_0x2e4b8f[_0x2edf('0x30')]>=_0x161354[_0x2edf('0x30')])||_0x146149[0x0];}var _0x2f533d;return _0x74f163[_0x2edf('0x16')]||_0x3222dc;}['_removeAnnotationFromBalloon'](_0x4d3447){this[_0x2edf('0x32')]['has'](_0x4d3447)&&this['_balloon'][_0x2edf('0x23')](_0x4d3447[_0x2edf('0x13')])&&(this[_0x2edf('0x32')][_0x2edf('0xe')](_0x4d3447),this[_0x2edf('0x1d')][_0x2edf('0x46')](_0x4d3447[_0x2edf('0x13')]));}[_0x2edf('0x19')](_0x3e9c24){this[_0x2edf('0x29')][_0x2edf('0x12')](_0x3e9c24),this['_removeAnnotationFromBalloon'](_0x3e9c24);}}function F(_0x39a9b0,_0x370044){return _0x39a9b0[_0x2edf('0x3f')]===_0x370044['top']&&_0x39a9b0[_0x2edf('0x20')]===_0x370044[_0x2edf('0x20')]&&_0x39a9b0['right']===_0x370044[_0x2edf('0x1f')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5f5b=['remove','hasDomSelection','_annotationToNarrowView','element','_integrateWithEditorAnnotations','southArrowNorthEast','delete','has','EditorAnnotations','activeAnnotation','esc','get','isDirty','off','set','attach','detachFromDom','northArrowSouth','length','pluginName','_refreshPositioning','_destroyEditorAnnotationsIntegration','editors','init','southArrowNorthWest','_setSelectedAnnotations','_detachListeners','first','NarrowSidebar','defaultPositions','change:container','bodyCollection','focus','type','ck-sidebar--narrow','_hideBalloon','context','blur','narrowsidebar-attach-already-attached','getSidebarItemView','requires','refresh','values','northArrowSouthWest','destroy','pin','refreshPositioning','balloonPanelView','_editorAnnotations','mousedown','_showBalloon','contains','low','isVisible','locale','focusableElements','register','execute','stopListening','resize','from','add','content','view','number','setActiveAnnotation','find','preventClosingBalloon','isAttached','_domEmitter','target','_manuallyClosedAnnotationViews','uiUpdate','narrowSidebar','set:container','_detachFromContainer','narrowsidebar-detach-not-attached','_attachListeners','_refreshPositioningDebounced','clear','create','southArrowNorth','_selectedAnnotations','detach','keydown','annotationType','bind','getByView','stopPropagation','annotations','listenTo','plugins','cancel'];(function(_0xd0efd0,_0x5f5bb0){const _0xc73814=function(_0x1e2b42){while(--_0x1e2b42){_0xd0efd0['push'](_0xd0efd0['shift']());}};_0xc73814(++_0x5f5bb0);}(_0x5f5b,0x9a));const _0xc738=function(_0xd0efd0,_0x5f5bb0){_0xd0efd0=_0xd0efd0-0x0;let _0xc73814=_0x5f5b[_0xd0efd0];return _0xc73814;};import{ContextPlugin as _0x38cd2c,Context as _0x48535f}from'ckeditor5/src/core';import _0x1aeeff from'./annotationsuis';import _0x3b70c9 from'./sidebar';import _0x2d1ad3 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x5859a2,BodyCollection as _0xab949c}from'ckeditor5/src/ui';import{CKEditorError as _0x2d3f6e,DomEmitterMixin as _0x3db1db,keyCodes as _0x40330e,Collection as _0x44255a}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1c266e}from'lodash-es';import _0x114b3a from'./editorannotations';export default class s extends _0x38cd2c{static get[_0xc738('0x48')](){return[_0x3b70c9,_0x1aeeff];}static get[_0xc738('0x33')](){return _0xc738('0x3c');}constructor(_0x15b948){super(_0x15b948),this[_0xc738('0x7')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0xc738('0x8')]=Object[_0xc738('0x13')](_0x3db1db),this[_0xc738('0x22')]=new Map(),this[_0xc738('0x2e')]('activeAnnotation',null),this[_0xc738('0x1c')]=null,this[_0xc738('0x15')]=[],this[_0xc738('0x50')]=new _0x44255a(),this[_0xc738('0x11')]=_0x1c266e(()=>{this[_0xc738('0x34')]();},0xfa,{'leading':!0x1});}[_0xc738('0x37')](){this[_0xc738('0x44')][_0xc738('0x1e')]['get'](_0x1aeeff)[_0xc738('0x58')](_0xc738('0xc'),this),this[_0xc738('0x3f')]=new _0xab949c(this[_0xc738('0x44')][_0xc738('0x56')]),this[_0xc738('0x4f')]=new _0x5859a2(this[_0xc738('0x44')][_0xc738('0x56')]),this['bodyCollection']['attachToDom'](),this[_0xc738('0x3f')][_0xc738('0x0')](this[_0xc738('0x4f')]);}[_0xc738('0x2f')](_0x40c871){this[_0xc738('0x1c')]=_0x40c871;const _0x3af15b=this[_0xc738('0x44')][_0xc738('0x1e')][_0xc738('0x2b')](_0x3b70c9),_0x4543ae=this[_0xc738('0x4f')];if(_0x3af15b['_annotations']=_0x40c871,this[_0xc738('0x7')])throw new _0x2d3f6e(_0xc738('0x46'),this);this[_0xc738('0x7')]=!0x0,this['listenTo'](_0x3af15b,_0xc738('0xd'),()=>{this[_0xc738('0x16')](),this['listenTo'](_0x3af15b,_0xc738('0x3e'),_0x30c800=>{_0x30c800[_0xc738('0x2d')](),this[_0xc738('0x2f')](_0x40c871);});}),_0x3af15b['_attachToContainer']({'viewClass':_0xc738('0x42'),'spaceBetweenItems':0x5});const _0x426afa=_0x17437f=>{const _0x2fa37b=new _0x2d1ad3(this['context'][_0xc738('0x56')]);_0x3af15b['addAnnotation'](_0x17437f,_0x2fa37b),this['_annotationToNarrowView']['set'](_0x17437f,_0x2fa37b),_0x2fa37b[_0xc738('0x19')](_0xc738('0x2c'),_0xc738('0x18'),_0xc738('0x3'))['to'](_0x17437f[_0xc738('0x2')],_0xc738('0x2c'),_0xc738('0x41'),_0xc738('0x32')),_0x2fa37b['on'](_0xc738('0x59'),()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4543ae[_0xc738('0x1')][_0xc738('0x3b')]!==_0x17437f[_0xc738('0x2')]?(this[_0xc738('0x52')](_0x17437f),_0x17437f[_0xc738('0x2')][_0xc738('0x23')][_0xc738('0x40')](),this[_0xc738('0x4')](_0x17437f)):this[_0xc738('0x4')](null);});};for(const _0x5c147a of _0x40c871)_0x426afa(_0x5c147a);this[_0xc738('0x1d')](_0x40c871,'add',(_0x3c5492,_0x3ce3b2)=>{_0x426afa(_0x3ce3b2);}),this['listenTo'](_0x40c871,'remove',(_0x50ec5c,_0x131cb9,_0x348770)=>{this[_0xc738('0x22')][_0xc738('0x2b')](_0x131cb9)[_0xc738('0x4c')](),this[_0xc738('0x22')][_0xc738('0x26')](_0x131cb9),_0x3af15b['rearrange']({'removedAnnotation':_0x131cb9,'previousAnnotation':_0x40c871[_0xc738('0x2b')](_0x348770-0x1),'nextAnnotation':_0x40c871[_0xc738('0x2b')](_0x348770+0x1)}),_0x131cb9===this['activeAnnotation']&&this[_0xc738('0x4')](null);},{'priority':_0xc738('0x54')}),this[_0xc738('0x1d')](_0x40c871,_0xc738('0x40'),(_0x3bbf29,_0x2757de)=>{this[_0xc738('0x4')](_0x2757de);}),this[_0xc738('0x1d')](_0x40c871,_0xc738('0x45'),()=>{this[_0xc738('0x4')](null);}),this[_0xc738('0x8')]['listenTo'](document,_0xc738('0x17'),(_0x4258f4,_0x4d0ce0)=>{_0x4d0ce0['keyCode']===_0x40330e[_0xc738('0x2a')]&&_0x4543ae['isVisible']&&(this[_0xc738('0xa')]['add'](_0x4543ae[_0xc738('0x1')]['first']),this[_0xc738('0x43')](),_0x4d0ce0[_0xc738('0x1b')](),_0x4d0ce0['preventDefault']());}),this[_0xc738('0x8')][_0xc738('0x1d')](document,_0xc738('0x51'),(_0x56cd81,_0x1b9964)=>{const _0x48fc41=_0x1b9964[_0xc738('0x9')];_0x4543ae[_0xc738('0x55')]&&_0x4543ae[_0xc738('0x23')][_0xc738('0x53')](_0x48fc41)||_0x3af15b[_0xc738('0x2')][_0xc738('0x23')][_0xc738('0x53')](_0x48fc41)||_0x56cd81[_0xc738('0x6')]||this[_0xc738('0x29')]&&this[_0xc738('0x29')][_0xc738('0x57')][_0xc738('0x5')](_0x32fed8=>_0x32fed8['contains'](_0x48fc41))||(this['_manuallyClosedAnnotationViews']['clear'](),this[_0xc738('0x43')](),this[_0xc738('0x4')](null));});const _0x124ab3=this[_0xc738('0x44')]instanceof _0x48535f?this[_0xc738('0x44')][_0xc738('0x36')]:new _0x44255a([this['context']]);for(const _0x669483 of _0x124ab3)this[_0xc738('0x24')](_0x669483);this[_0xc738('0x1d')](_0x124ab3,_0xc738('0x0'),(_0x1d2e2e,_0x9b7977)=>{this['listenTo'](_0x9b7977,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x9b7977);});}),this[_0xc738('0x1d')](_0x124ab3,_0xc738('0x20'),(_0x1ffc21,_0x20895f)=>{_0x20895f['plugins']['has'](_0xc738('0x28'))&&this[_0xc738('0x35')](_0x20895f[_0xc738('0x1e')][_0xc738('0x2b')](_0xc738('0x28')));}),window['addEventListener'](_0xc738('0x5b'),this[_0xc738('0x11')]),this[_0xc738('0x34')]();}[_0xc738('0x4')](_0x4a00cd){if(_0x4a00cd===this[_0xc738('0x29')])return;const _0x30cd93=this[_0xc738('0x44')][_0xc738('0x1e')][_0xc738('0x2b')](_0x3b70c9);if(_0x30cd93[_0xc738('0x49')]({'blurredAnnotation':this[_0xc738('0x29')],'activatedAnnotation':_0x4a00cd,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4a00cd)_0x30cd93[_0xc738('0x47')](_0x4a00cd)?this[_0xc738('0x52')](_0x4a00cd):this[_0xc738('0x43')]();else this[_0xc738('0x43')]();this[_0xc738('0x29')]=_0x4a00cd;}[_0xc738('0x16')](){if(!this[_0xc738('0x7')])throw new _0x2d3f6e(_0xc738('0xf'),this);this[_0xc738('0x4')](null);const _0xbc79ad=this['context'][_0xc738('0x1e')]['get'](_0x3b70c9);this[_0xc738('0x43')](),Array['from'](this[_0xc738('0x22')][_0xc738('0x4a')](),_0x94cd13=>_0x94cd13[_0xc738('0x4c')]()),this[_0xc738('0x22')][_0xc738('0x12')](),_0xbc79ad[_0xc738('0xe')](this[_0xc738('0x1c')]),this[_0xc738('0x5a')](),this[_0xc738('0x8')][_0xc738('0x5a')](),this[_0xc738('0x44')]instanceof _0x48535f&&this[_0xc738('0x5a')](this[_0xc738('0x44')][_0xc738('0x36')]);for(const _0x140ae2 of Array[_0xc738('0x5c')](this[_0xc738('0x50')]))this[_0xc738('0x35')](_0x140ae2);window['removeEventListener'](_0xc738('0x5b'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0xc738('0x1f')](),this[_0xc738('0x15')]=[],this[_0xc738('0x7')]=!0x1,this[_0xc738('0x1c')]=null;}[_0xc738('0x4c')](){this[_0xc738('0x7')]&&this[_0xc738('0x16')](),this[_0xc738('0x3f')][_0xc738('0x30')]();}[_0xc738('0x24')](_0x181849){const _0x39ff10=_0x181849[_0xc738('0x1e')]['get'](_0x114b3a),_0x11c1bb=this[_0xc738('0x44')][_0xc738('0x1e')]['get'](_0x3b70c9),_0xd29d6=this[_0xc738('0x1c')],_0x322aa6=this[_0xc738('0x4f')],_0x1e34ea=()=>{const _0xbf8f29=_0x39ff10['getOrderedSelectedAnnotations']({'annotations':this[_0xc738('0x1c')],'activeAnnotation':this[_0xc738('0x29')]});this[_0xc738('0x39')](_0xbf8f29),this['setActiveAnnotation'](_0xbf8f29[0x0]||null);};this['listenTo'](_0x39ff10,_0xc738('0x49'),_0x1e34ea),this[_0xc738('0x1d')](_0x39ff10,_0xc738('0x45'),(_0x13cc63,{isAnnotationTracked:_0x4df64a})=>{this['activeAnnotation']&&_0x4df64a(this[_0xc738('0x29')])&&(this[_0xc738('0x39')]([]),this[_0xc738('0x4')](null));}),this['listenTo'](_0x39ff10,_0xc738('0xb'),()=>{this[_0xc738('0x11')]();}),this[_0xc738('0x1d')](_0xd29d6,_0xc738('0x45'),_0xcf5d73=>{_0x39ff10[_0xc738('0x21')]()&&_0xcf5d73['stop']();},{'priority':'high'}),this['listenTo'](this[_0xc738('0x8')],'mousedown',(_0x24a7e4,_0x1ccb2f)=>{const _0x396a0a=_0x1ccb2f[_0xc738('0x9')];_0x322aa6[_0xc738('0x55')]&&_0x322aa6[_0xc738('0x23')][_0xc738('0x53')](_0x396a0a)||_0x11c1bb['view'][_0xc738('0x23')][_0xc738('0x53')](_0x396a0a)||this[_0xc738('0x29')]&&_0x39ff10['hasDomSelection']()&&(_0x1e34ea(),_0x24a7e4[_0xc738('0x6')]=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x39ff10);}[_0xc738('0x35')](_0x581bb2){_0x581bb2&&(this[_0xc738('0x5a')](_0x581bb2),this['_editorAnnotations'][_0xc738('0x20')](_0x581bb2));}[_0xc738('0x39')](_0xb40a40){for(const _0x2d2b8a of this[_0xc738('0x15')])_0xb40a40['includes'](_0x2d2b8a)||this[_0xc738('0xa')][_0xc738('0x26')](_0x2d2b8a['view']);this[_0xc738('0x15')]=_0xb40a40;}[_0xc738('0x34')](){const _0x18d01c=this[_0xc738('0x4f')];this[_0xc738('0x1c')][_0xc738('0x4e')](),_0x18d01c['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x252253){if(this[_0xc738('0xa')][_0xc738('0x27')](_0x252253['view']))return;const _0x2a4765=this[_0xc738('0x4f')][_0xc738('0x1')][_0xc738('0x3b')];_0x2a4765!==_0x252253[_0xc738('0x2')]?(_0x2a4765&&this[_0xc738('0x3a')](_0x2a4765),this['_attachListeners'](_0x252253['view']),this[_0xc738('0x4f')][_0xc738('0x1')][_0xc738('0x12')](),this[_0xc738('0x4f')]['content'][_0xc738('0x0')](_0x252253[_0xc738('0x2')]),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x212f9a=this['balloonPanelView'][_0xc738('0x1')][_0xc738('0x3b')],_0x2d7d92=_0x212f9a&&this[_0xc738('0x1c')][_0xc738('0x1a')](_0x212f9a);if(!_0x2d7d92||!this[_0xc738('0x22')][_0xc738('0x27')](_0x2d7d92))return;const _0x2aaea9=this[_0xc738('0x22')][_0xc738('0x2b')](_0x2d7d92)[_0xc738('0x23')],_0x45c7ca=function(){const _0x1b2546=_0x5859a2[_0xc738('0x3d')];return[_0x1b2546[_0xc738('0x25')],_0x1b2546['northArrowSouthEast'],_0x1b2546[_0xc738('0x14')],_0x1b2546[_0xc738('0x31')],_0x1b2546[_0xc738('0x38')],_0x1b2546[_0xc738('0x4b')]];}();this['balloonPanelView'][_0xc738('0x4d')]({'target':_0x2aaea9,'positions':_0x45c7ca});}[_0xc738('0x43')](){const _0x11e906=this[_0xc738('0x4f')],_0x1d3484=_0x11e906['content'][_0xc738('0x3b')];_0x1d3484&&(this['_detachListeners'](_0x1d3484),_0x11e906['unpin'](),_0x11e906[_0xc738('0x1')]['clear']());}[_0xc738('0x10')](_0x281a29){this[_0xc738('0x1d')](_0x281a29,'change:height',()=>this['_updateBalloonPosition']()),this[_0xc738('0x1d')](_0x281a29,'Esc',(_0x5e8be9,_0xe87ba0)=>{this[_0xc738('0xa')]['add'](_0x281a29),this[_0xc738('0x43')](),_0xe87ba0();});}['_detachListeners'](_0x4725d3){this[_0xc738('0x5a')](_0x4725d3);}}
|
|
23
|
+
const _0x1341=['southArrowNorthEast','annotations','requires','ck-sidebar--narrow','view','getOrderedSelectedAnnotations','addAnnotation','type','pin','set','_editorAnnotations','Esc','contains','refresh','change:height','stopPropagation','northArrowSouth','balloonPanelView','delete','execute','NarrowSidebar','stop','isDirty','low','esc','narrowSidebar','add','change:container','hasDomSelection','_detachListeners','narrowsidebar-attach-already-attached','_refreshPositioningDebounced','locale','_updateBalloonPosition','get','plugins','northArrowSouthWest','target','content','find','from','first','blur','bind','listenTo','resize','southArrowNorthWest','southArrowNorth','high','ready','includes','attachToDom','stopListening','_showBalloon','attach','rearrange','clear','northArrowSouthEast','_annotationToNarrowView','EditorAnnotations','isVisible','has','isAttached','number','remove','preventClosingBalloon','_integrateWithEditorAnnotations','mousedown','element','unpin','context','keydown','_destroyEditorAnnotationsIntegration','defaultPositions','removeEventListener','_hideBalloon','_refreshPositioning','bodyCollection','detachFromDom','create','focusableElements','off','_selectedAnnotations','focus','_domEmitter','destroy','detach','narrowsidebar-detach-not-attached','editors','_detachFromContainer','getSidebarItemView','_annotations','activeAnnotation','setActiveAnnotation','annotationType','_setSelectedAnnotations','cancel','_manuallyClosedAnnotationViews','_attachListeners'];(function(_0x386734,_0x1341a5){const _0x2b009f=function(_0x5b998e){while(--_0x5b998e){_0x386734['push'](_0x386734['shift']());}};_0x2b009f(++_0x1341a5);}(_0x1341,0x151));const _0x2b00=function(_0x386734,_0x1341a5){_0x386734=_0x386734-0x0;let _0x2b009f=_0x1341[_0x386734];return _0x2b009f;};import{ContextPlugin as _0x2607bc,Context as _0x4e3b65}from'ckeditor5/src/core';import _0x3b462b from'./annotationsuis';import _0x1d3700 from'./sidebar';import _0x1ba2e9 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x36c06f,BodyCollection as _0x4e972a}from'ckeditor5/src/ui';import{CKEditorError as _0x4ac6c7,DomEmitterMixin as _0x1463ea,keyCodes as _0x33c58d,Collection as _0x38aa26}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0xd5308e}from'lodash-es';import _0x3fca26 from'./editorannotations';export default class s extends _0x2607bc{static get[_0x2b00('0x3d')](){return[_0x1d3700,_0x3b462b];}static get['pluginName'](){return _0x2b00('0x4f');}constructor(_0x2d3217){super(_0x2d3217),this[_0x2b00('0x16')]=!0x1,this[_0x2b00('0x39')]=new Set(),this[_0x2b00('0x2c')]=Object[_0x2b00('0x27')](_0x1463ea),this['_annotationToNarrowView']=new Map(),this[_0x2b00('0x44')](_0x2b00('0x34'),null),this[_0x2b00('0x3c')]=null,this[_0x2b00('0x2a')]=[],this['_editorAnnotations']=new _0x38aa26(),this['_refreshPositioningDebounced']=_0xd5308e(()=>{this[_0x2b00('0x24')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x2b00('0x1e')][_0x2b00('0x5e')][_0x2b00('0x5d')](_0x3b462b)['register'](_0x2b00('0x54'),this),this[_0x2b00('0x25')]=new _0x4e972a(this['context'][_0x2b00('0x5b')]),this[_0x2b00('0x4c')]=new _0x36c06f(this[_0x2b00('0x1e')][_0x2b00('0x5b')]),this[_0x2b00('0x25')][_0x2b00('0xb')](),this[_0x2b00('0x25')]['add'](this[_0x2b00('0x4c')]);}[_0x2b00('0xe')](_0x391f3d){this['annotations']=_0x391f3d;const _0x36c6d1=this[_0x2b00('0x1e')][_0x2b00('0x5e')][_0x2b00('0x5d')](_0x1d3700),_0x57d56f=this[_0x2b00('0x4c')];if(_0x36c6d1[_0x2b00('0x33')]=_0x391f3d,this[_0x2b00('0x16')])throw new _0x4ac6c7(_0x2b00('0x59'),this);this['isAttached']=!0x0,this[_0x2b00('0x4')](_0x36c6d1,'set:container',()=>{this[_0x2b00('0x2e')](),this['listenTo'](_0x36c6d1,_0x2b00('0x56'),_0x591556=>{_0x591556[_0x2b00('0x29')](),this['attach'](_0x391f3d);});}),_0x36c6d1['_attachToContainer']({'viewClass':_0x2b00('0x3e'),'spaceBetweenItems':0x5});const _0x5e6d2b=_0x514cda=>{const _0x4f6e92=new _0x1ba2e9(this[_0x2b00('0x1e')]['locale']);_0x36c6d1[_0x2b00('0x41')](_0x514cda,_0x4f6e92),this[_0x2b00('0x12')][_0x2b00('0x44')](_0x514cda,_0x4f6e92),_0x4f6e92[_0x2b00('0x3')](_0x2b00('0x51'),_0x2b00('0x36'),_0x2b00('0x17'))['to'](_0x514cda[_0x2b00('0x3f')],'isDirty',_0x2b00('0x42'),'length'),_0x4f6e92['on'](_0x2b00('0x4e'),()=>{this['_manuallyClosedAnnotationViews'][_0x2b00('0x10')](),_0x57d56f[_0x2b00('0x61')]['first']!==_0x514cda[_0x2b00('0x3f')]?(this[_0x2b00('0xd')](_0x514cda),_0x514cda[_0x2b00('0x3f')][_0x2b00('0x1c')][_0x2b00('0x2b')](),this[_0x2b00('0x35')](_0x514cda)):this[_0x2b00('0x35')](null);});};for(const _0x1f080f of _0x391f3d)_0x5e6d2b(_0x1f080f);this[_0x2b00('0x4')](_0x391f3d,_0x2b00('0x55'),(_0x79b818,_0x5bd524)=>{_0x5e6d2b(_0x5bd524);}),this['listenTo'](_0x391f3d,_0x2b00('0x18'),(_0x52d696,_0x39dbf5,_0x3dbe44)=>{this[_0x2b00('0x12')]['get'](_0x39dbf5)[_0x2b00('0x2d')](),this[_0x2b00('0x12')]['delete'](_0x39dbf5),_0x36c6d1[_0x2b00('0xf')]({'removedAnnotation':_0x39dbf5,'previousAnnotation':_0x391f3d['get'](_0x3dbe44-0x1),'nextAnnotation':_0x391f3d[_0x2b00('0x5d')](_0x3dbe44+0x1)}),_0x39dbf5===this[_0x2b00('0x34')]&&this[_0x2b00('0x35')](null);},{'priority':_0x2b00('0x52')}),this[_0x2b00('0x4')](_0x391f3d,_0x2b00('0x2b'),(_0x22a41d,_0x4bc5d0)=>{this[_0x2b00('0x35')](_0x4bc5d0);}),this['listenTo'](_0x391f3d,_0x2b00('0x2'),()=>{this[_0x2b00('0x35')](null);}),this['_domEmitter'][_0x2b00('0x4')](document,_0x2b00('0x1f'),(_0x2aba96,_0x36d94c)=>{_0x36d94c['keyCode']===_0x33c58d[_0x2b00('0x53')]&&_0x57d56f['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x57d56f[_0x2b00('0x61')][_0x2b00('0x1')]),this[_0x2b00('0x23')](),_0x36d94c[_0x2b00('0x4a')](),_0x36d94c['preventDefault']());}),this[_0x2b00('0x2c')][_0x2b00('0x4')](document,'mousedown',(_0x52074e,_0x54ceb6)=>{const _0x29e4bf=_0x54ceb6['target'];_0x57d56f['isVisible']&&_0x57d56f[_0x2b00('0x1c')][_0x2b00('0x47')](_0x29e4bf)||_0x36c6d1[_0x2b00('0x3f')][_0x2b00('0x1c')][_0x2b00('0x47')](_0x29e4bf)||_0x52074e[_0x2b00('0x19')]||this['activeAnnotation']&&this['activeAnnotation'][_0x2b00('0x28')][_0x2b00('0x62')](_0xc6e354=>_0xc6e354[_0x2b00('0x47')](_0x29e4bf))||(this[_0x2b00('0x39')][_0x2b00('0x10')](),this['_hideBalloon'](),this[_0x2b00('0x35')](null));});const _0x44a0e4=this['context']instanceof _0x4e3b65?this[_0x2b00('0x1e')][_0x2b00('0x30')]:new _0x38aa26([this[_0x2b00('0x1e')]]);for(const _0x2dfdda of _0x44a0e4)this[_0x2b00('0x1a')](_0x2dfdda);this[_0x2b00('0x4')](_0x44a0e4,'add',(_0x2ecac9,_0x1a7215)=>{this[_0x2b00('0x4')](_0x1a7215,_0x2b00('0x9'),()=>{this[_0x2b00('0x1a')](_0x1a7215);});}),this[_0x2b00('0x4')](_0x44a0e4,_0x2b00('0x18'),(_0x402cb7,_0xf29a8c)=>{_0xf29a8c[_0x2b00('0x5e')][_0x2b00('0x15')](_0x2b00('0x13'))&&this[_0x2b00('0x20')](_0xf29a8c[_0x2b00('0x5e')][_0x2b00('0x5d')](_0x2b00('0x13')));}),window['addEventListener'](_0x2b00('0x5'),this[_0x2b00('0x5a')]),this[_0x2b00('0x24')]();}[_0x2b00('0x35')](_0x252b50){if(_0x252b50===this[_0x2b00('0x34')])return;const _0x4abbc2=this[_0x2b00('0x1e')][_0x2b00('0x5e')][_0x2b00('0x5d')](_0x1d3700);if(_0x4abbc2[_0x2b00('0x48')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x252b50,'disableAnimationOnActivatedAnnotation':!0x0}),_0x252b50)_0x4abbc2[_0x2b00('0x32')](_0x252b50)?this[_0x2b00('0xd')](_0x252b50):this[_0x2b00('0x23')]();else this[_0x2b00('0x23')]();this[_0x2b00('0x34')]=_0x252b50;}[_0x2b00('0x2e')](){if(!this[_0x2b00('0x16')])throw new _0x4ac6c7(_0x2b00('0x2f'),this);this[_0x2b00('0x35')](null);const _0x555a1a=this[_0x2b00('0x1e')]['plugins'][_0x2b00('0x5d')](_0x1d3700);this[_0x2b00('0x23')](),Array[_0x2b00('0x0')](this[_0x2b00('0x12')]['values'](),_0x4d2d81=>_0x4d2d81[_0x2b00('0x2d')]()),this['_annotationToNarrowView'][_0x2b00('0x10')](),_0x555a1a[_0x2b00('0x31')](this['annotations']),this[_0x2b00('0xc')](),this[_0x2b00('0x2c')][_0x2b00('0xc')](),this[_0x2b00('0x1e')]instanceof _0x4e3b65&&this[_0x2b00('0xc')](this['context'][_0x2b00('0x30')]);for(const _0x53a8e1 of Array[_0x2b00('0x0')](this[_0x2b00('0x45')]))this['_destroyEditorAnnotationsIntegration'](_0x53a8e1);window[_0x2b00('0x22')]('resize',this['_refreshPositioningDebounced']),this[_0x2b00('0x5a')][_0x2b00('0x38')](),this[_0x2b00('0x2a')]=[],this[_0x2b00('0x16')]=!0x1,this['annotations']=null;}[_0x2b00('0x2d')](){this[_0x2b00('0x16')]&&this[_0x2b00('0x2e')](),this[_0x2b00('0x25')][_0x2b00('0x26')]();}[_0x2b00('0x1a')](_0x292d53){const _0x2f4013=_0x292d53[_0x2b00('0x5e')][_0x2b00('0x5d')](_0x3fca26),_0x2c7ca7=this[_0x2b00('0x1e')]['plugins']['get'](_0x1d3700),_0x747cd1=this[_0x2b00('0x3c')],_0x47898e=this[_0x2b00('0x4c')],_0xb86204=()=>{const _0x19747b=_0x2f4013[_0x2b00('0x40')]({'annotations':this[_0x2b00('0x3c')],'activeAnnotation':this[_0x2b00('0x34')]});this[_0x2b00('0x37')](_0x19747b),this[_0x2b00('0x35')](_0x19747b[0x0]||null);};this[_0x2b00('0x4')](_0x2f4013,_0x2b00('0x48'),_0xb86204),this[_0x2b00('0x4')](_0x2f4013,_0x2b00('0x2'),(_0x1a6149,{isAnnotationTracked:_0x1566bc})=>{this[_0x2b00('0x34')]&&_0x1566bc(this[_0x2b00('0x34')])&&(this[_0x2b00('0x37')]([]),this[_0x2b00('0x35')](null));}),this[_0x2b00('0x4')](_0x2f4013,'uiUpdate',()=>{this[_0x2b00('0x5a')]();}),this[_0x2b00('0x4')](_0x747cd1,_0x2b00('0x2'),_0x20e507=>{_0x2f4013['hasDomSelection']()&&_0x20e507[_0x2b00('0x50')]();},{'priority':_0x2b00('0x8')}),this[_0x2b00('0x4')](this['_domEmitter'],_0x2b00('0x1b'),(_0xe32dfd,_0x2ca0b6)=>{const _0x405509=_0x2ca0b6[_0x2b00('0x60')];_0x47898e[_0x2b00('0x14')]&&_0x47898e['element'][_0x2b00('0x47')](_0x405509)||_0x2c7ca7[_0x2b00('0x3f')]['element'][_0x2b00('0x47')](_0x405509)||this['activeAnnotation']&&_0x2f4013[_0x2b00('0x57')]()&&(_0xb86204(),_0xe32dfd['preventClosingBalloon']=!0x0);},{'priority':_0x2b00('0x8')}),this[_0x2b00('0x45')][_0x2b00('0x55')](_0x2f4013);}[_0x2b00('0x20')](_0x72a7e8){_0x72a7e8&&(this[_0x2b00('0xc')](_0x72a7e8),this[_0x2b00('0x45')]['remove'](_0x72a7e8));}[_0x2b00('0x37')](_0x2ad7c3){for(const _0x3f72aa of this[_0x2b00('0x2a')])_0x2ad7c3[_0x2b00('0xa')](_0x3f72aa)||this[_0x2b00('0x39')][_0x2b00('0x4d')](_0x3f72aa['view']);this['_selectedAnnotations']=_0x2ad7c3;}[_0x2b00('0x24')](){const _0x569047=this['balloonPanelView'];this[_0x2b00('0x3c')]['refreshPositioning'](),_0x569047[_0x2b00('0x14')]&&this['_updateBalloonPosition']();}[_0x2b00('0xd')](_0x5e9264){if(this[_0x2b00('0x39')][_0x2b00('0x15')](_0x5e9264['view']))return;const _0x49ae4a=this['balloonPanelView'][_0x2b00('0x61')][_0x2b00('0x1')];_0x49ae4a!==_0x5e9264['view']?(_0x49ae4a&&this['_detachListeners'](_0x49ae4a),this[_0x2b00('0x3a')](_0x5e9264['view']),this['balloonPanelView'][_0x2b00('0x61')][_0x2b00('0x10')](),this[_0x2b00('0x4c')][_0x2b00('0x61')][_0x2b00('0x55')](_0x5e9264['view']),this[_0x2b00('0x5c')]()):this[_0x2b00('0x5c')]();}[_0x2b00('0x5c')](){const _0x14c04c=this[_0x2b00('0x4c')]['content']['first'],_0x127cea=_0x14c04c&&this['annotations']['getByView'](_0x14c04c);if(!_0x127cea||!this['_annotationToNarrowView'][_0x2b00('0x15')](_0x127cea))return;const _0x2bee7d=this['_annotationToNarrowView'][_0x2b00('0x5d')](_0x127cea)[_0x2b00('0x1c')],_0x398a24=function(){const _0x5a6d5a=_0x36c06f[_0x2b00('0x21')];return[_0x5a6d5a[_0x2b00('0x3b')],_0x5a6d5a[_0x2b00('0x11')],_0x5a6d5a[_0x2b00('0x7')],_0x5a6d5a[_0x2b00('0x4b')],_0x5a6d5a[_0x2b00('0x6')],_0x5a6d5a[_0x2b00('0x5f')]];}();this[_0x2b00('0x4c')][_0x2b00('0x43')]({'target':_0x2bee7d,'positions':_0x398a24});}[_0x2b00('0x23')](){const _0x3ce283=this[_0x2b00('0x4c')],_0x4e8c5c=_0x3ce283[_0x2b00('0x61')]['first'];_0x4e8c5c&&(this[_0x2b00('0x58')](_0x4e8c5c),_0x3ce283[_0x2b00('0x1d')](),_0x3ce283[_0x2b00('0x61')][_0x2b00('0x10')]());}[_0x2b00('0x3a')](_0x7d0455){this['listenTo'](_0x7d0455,_0x2b00('0x49'),()=>this[_0x2b00('0x5c')]()),this[_0x2b00('0x4')](_0x7d0455,_0x2b00('0x46'),(_0x550a23,_0x4dc5f6)=>{this[_0x2b00('0x39')]['add'](_0x7d0455),this['_hideBalloon'](),_0x4dc5f6();});}['_detachListeners'](_0x5a87df){this[_0x2b00('0xc')](_0x5a87df);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46c1=['sidebar.preventScrollOutOfView','_recalculateBuffer','clear','addAnnotation','_lastItem','get','rearrange','define','_setItemTop','unbind','refresh','config','_alignBeforeItem','_getMaxAvailableTop','context','_getItemAfter','_alignForBottomChange','_getTargetTop','_recalculate','_createSidebarView','bottom','_annotationToSidebarItemView','_targetTop','isActive','_updateLastItem','_detachFromContainer','targetRect','content','setContainer','init','Sidebar','list','change:targetRect','isAnimationDisabled','_destroySidebarItemView','getIndex','set','push','length','delete','destroy','listenTo','height','class','render','container','_activeAnnotation','minHeight','_alignAfterItem','change:bottom','remove','object','_alignToTargetRect','sidebar.container','nodeType','_alignForTopChange','view','change:_lastItem','stopListening','add','sidebar-setcontainer-invalid-element','_getItemBefore','last','_spaceBetweenItems','updateHeight','top','getSidebarItemView','pluginName','_sidebarItemViewToAnnotation','appendChild','_annotations'];(function(_0x1eded0,_0x46c109){const _0x50519e=function(_0x228194){while(--_0x228194){_0x1eded0['push'](_0x1eded0['shift']());}};_0x50519e(++_0x46c109);}(_0x46c1,0xe5));const _0x5051=function(_0x1eded0,_0x46c109){_0x1eded0=_0x1eded0-0x0;let _0x50519e=_0x46c1[_0x1eded0];return _0x50519e;};import{ContextPlugin as _0x4a77ec}from'ckeditor5/src/core';import{Rect as _0x11f21b,CKEditorError as _0x485d18}from'ckeditor5/src/utils';import _0x59c62b from'./view/sidebarview';import _0x3f676e from'./view/sidebaritemview';export default class z extends _0x4a77ec{static get[_0x5051('0x33')](){return _0x5051('0xe');}constructor(_0x2159a1){super(_0x2159a1),this[_0x5051('0x14')](_0x5051('0x3b'),void 0x0),this[_0x5051('0x28')]=this['_createSidebarView'](),this[_0x5051('0x14')]('container',null),this['_spaceBetweenItems']=0x19,this[_0x5051('0x34')]=new Map(),this[_0x5051('0x5')]=new Map(),this[_0x5051('0x45')][_0x5051('0x42')][_0x5051('0x3e')](_0x5051('0x37'),!0x1),this[_0x5051('0x36')]=null,this[_0x5051('0x1e')]=null,this['_recalculateBuffer']=[];}[_0x5051('0xd')](){const _0x74fad5=this[_0x5051('0x45')][_0x5051('0x42')][_0x5051('0x3c')](_0x5051('0x25'));_0x74fad5&&this[_0x5051('0xc')](_0x74fad5);}['setContainer'](_0x279188){if(!y(_0x279188))throw new _0x485d18(_0x5051('0x2c'));this[_0x5051('0x1d')]=_0x279188;}['_attachToContainer']({viewClass:_0x532b8e='',spaceBetweenItems:_0x19ee25=0x19}={}){if(!y(this[_0x5051('0x1d')]))throw new _0x485d18('sidebar-attachtocontainer-missing-container',this);this[_0x5051('0x1d')][_0x5051('0x35')](this['view']['element']),this[_0x5051('0x28')]['class']=_0x532b8e,this[_0x5051('0x2f')]=_0x19ee25;}[_0x5051('0x3d')]({removedAnnotation:_0x416a27,previousAnnotation:_0x1ca5d6,nextAnnotation:_0x337385}){const _0xdfb0f0=this[_0x5051('0x32')](_0x416a27);this[_0x5051('0x28')][_0x5051('0xf')][_0x5051('0x22')](_0xdfb0f0),this[_0x5051('0x12')](_0x416a27),_0x1ca5d6&&this[_0x5051('0x24')](this['getSidebarItemView'](_0x1ca5d6)),_0x337385&&this[_0x5051('0x24')](this[_0x5051('0x32')](_0x337385)),this['_updateLastItem']();}[_0x5051('0x41')]({blurredAnnotation:_0xeab6fd,activatedAnnotation:_0x20eacc,disableAnimationOnActivatedAnnotation:_0x5035bb}){if(this[_0x5051('0x1e')]=_0x20eacc,_0xeab6fd){_0xeab6fd[_0x5051('0x7')]=!0x1;const _0xfd9c99=this[_0x5051('0x32')](_0xeab6fd);_0xfd9c99&&_0x5035bb&&(_0xfd9c99[_0x5051('0x11')]=!0x1);}if(_0x20eacc){const _0xa519b=this[_0x5051('0x32')](_0x20eacc);_0xa519b&&(_0x20eacc['isActive']=!0x0,_0x5035bb&&(_0xa519b[_0x5051('0x11')]=!0x0,_0xa519b[_0x5051('0x31')]+=0x1),this[_0x5051('0x24')](_0xa519b));}}[_0x5051('0x9')](_0x5de04e){if(this[_0x5051('0x28')]['element'][_0x5051('0x22')](),_0x5de04e)for(const _0x232340 of _0x5de04e)this[_0x5051('0x12')](_0x232340);this['view'][_0x5051('0xf')][_0x5051('0x39')](),this['view'][_0x5051('0x1b')]='',this[_0x5051('0x3b')]=null;}[_0x5051('0x3a')](_0x263450,_0x14f73c){_0x14f73c||(_0x14f73c=_0x263450[_0x5051('0x28')]);const _0x1a35cc=new _0x3f676e(this[_0x5051('0x45')]['locale']);this[_0x5051('0x34')]['set'](_0x1a35cc,_0x263450),this[_0x5051('0x5')][_0x5051('0x14')](_0x263450,_0x1a35cc),_0x1a35cc[_0x5051('0xb')][_0x5051('0x2b')](_0x14f73c),this[_0x5051('0x19')](_0x263450['view'],_0x5051('0x10'),(_0x16ab83,_0x2b18f5,_0x2af1ad)=>{const _0x48d216=this[_0x5051('0x1')](_0x263450,_0x2af1ad);_0x1a35cc['_targetTop']!=_0x48d216&&(_0x1a35cc[_0x5051('0x6')]=_0x48d216,this[_0x5051('0x3f')](_0x1a35cc,_0x48d216));}),this['listenTo'](_0x1a35cc,'change:top',()=>{this[_0x5051('0x2')](_0x1a35cc,_0x5051('0x31'));}),this[_0x5051('0x19')](_0x1a35cc,_0x5051('0x21'),()=>{this[_0x5051('0x2')](_0x1a35cc,_0x5051('0x4'));}),this['_alignToTargetRect'](_0x1a35cc);const _0x30e8fc=this[_0x5051('0x2d')](_0x1a35cc);if(_0x30e8fc)this['_alignAfterItem'](_0x30e8fc,_0x1a35cc)||this[_0x5051('0x24')](_0x1a35cc);else this[_0x5051('0x24')](_0x1a35cc);return this[_0x5051('0x8')](),this[_0x5051('0x28')][_0x5051('0xf')][_0x5051('0x2b')](_0x1a35cc),_0x1a35cc;}['_alignForTopChange'](_0x42fdb9){if(!_0x42fdb9[_0x5051('0xb')][_0x5051('0x16')])return;const _0x380cfe=this[_0x5051('0x2d')](_0x42fdb9);if(!_0x380cfe)return;const _0x1dc7ef=this['_sidebarItemViewToAnnotation'][_0x5051('0x3c')](_0x380cfe),_0xec1db5=this[_0x5051('0x1e')];_0xec1db5&&_0xec1db5===_0x1dc7ef?this[_0x5051('0x20')](_0x380cfe,_0x42fdb9):this[_0x5051('0x43')](_0x42fdb9,_0x380cfe);}[_0x5051('0x0')](_0x1c8f6f){if(!_0x1c8f6f[_0x5051('0xb')][_0x5051('0x16')])return;const _0x3c9def=this[_0x5051('0x46')](_0x1c8f6f);if(!_0x3c9def)return;const _0x10f6c8=this[_0x5051('0x34')][_0x5051('0x3c')](_0x3c9def),_0x2a677f=this[_0x5051('0x45')][_0x5051('0x42')][_0x5051('0x3c')]('sidebar.preventScrollOutOfView'),_0x8c0fdc=this[_0x5051('0x1e')];_0x8c0fdc&&_0x8c0fdc===_0x10f6c8&&_0x2a677f?(this[_0x5051('0x43')](_0x3c9def,_0x1c8f6f),this[_0x5051('0x20')](_0x1c8f6f,_0x3c9def)):_0x8c0fdc&&_0x8c0fdc===_0x10f6c8?this['_alignBeforeItem'](_0x3c9def,_0x1c8f6f):this[_0x5051('0x20')](_0x1c8f6f,_0x3c9def);}['_recalculate'](_0x50c9d6,_0x44255f){0x0===this[_0x5051('0x38')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x1400fb,changedProp:_0x4c2227}of this[_0x5051('0x38')])_0x5051('0x31')===_0x4c2227?this[_0x5051('0x27')](_0x1400fb):this[_0x5051('0x0')](_0x1400fb);this['_recalculateBuffer']=[];},0xa),this[_0x5051('0x38')][_0x5051('0x15')]({'sidebarItemView':_0x50c9d6,'changedProp':_0x44255f});}[_0x5051('0x32')](_0x4dd154){return this['_annotationToSidebarItemView']['get'](_0x4dd154);}[_0x5051('0x18')](){this[_0x5051('0x2a')](),this[_0x5051('0x28')][_0x5051('0x18')]();}[_0x5051('0x12')](_0x4670e6){const _0x1051cf=this[_0x5051('0x32')](_0x4670e6);this[_0x5051('0x2a')](_0x1051cf),this[_0x5051('0x2a')](_0x4670e6[_0x5051('0x28')]),_0x1051cf['destroy'](),this['_annotationToSidebarItemView'][_0x5051('0x17')](_0x4670e6),this['_sidebarItemViewToAnnotation'][_0x5051('0x17')](_0x1051cf);}[_0x5051('0x3')](){const _0x4a843a=new _0x59c62b(this[_0x5051('0x45')]['locale']);return _0x4a843a[_0x5051('0x1c')](),this['on'](_0x5051('0x29'),(_0x380d9e,_0x557309,_0x32ecdc,_0x1d3c6e)=>{_0x1d3c6e&&_0x4a843a[_0x5051('0x40')](_0x5051('0x1f')),_0x32ecdc?_0x4a843a['bind'](_0x5051('0x1f'))['to'](_0x32ecdc,_0x5051('0x4')):_0x4a843a[_0x5051('0x1f')]=null;}),_0x4a843a;}['_updateLastItem'](){var _0x3820c4;this[_0x5051('0x3b')]=(null===(_0x3820c4=this[_0x5051('0x36')])||void 0x0===_0x3820c4?void 0x0:_0x3820c4[_0x5051('0x2e')])?this[_0x5051('0x32')](this[_0x5051('0x36')]['last']):null;}[_0x5051('0x2d')](_0x1f636a){var _0x3bacd0;const _0x51be73=this[_0x5051('0x34')][_0x5051('0x3c')](_0x1f636a),_0x19472b=_0x51be73&&(null===(_0x3bacd0=this[_0x5051('0x36')])||void 0x0===_0x3bacd0?void 0x0:_0x3bacd0[_0x5051('0x3c')](this['_annotations'][_0x5051('0x13')](_0x51be73)-0x1));return _0x19472b&&this[_0x5051('0x32')](_0x19472b)||null;}[_0x5051('0x46')](_0x15dd62){var _0x5cdc7c;const _0x368269=this[_0x5051('0x34')][_0x5051('0x3c')](_0x15dd62),_0x2e27ed=_0x368269&&(null===(_0x5cdc7c=this[_0x5051('0x36')])||void 0x0===_0x5cdc7c?void 0x0:_0x5cdc7c[_0x5051('0x3c')](this[_0x5051('0x36')][_0x5051('0x13')](_0x368269)+0x1));return _0x2e27ed&&this['getSidebarItemView'](_0x2e27ed)||null;}[_0x5051('0x43')](_0x290ac5,_0x143b37){_0x290ac5[_0x5051('0x30')]();const _0x569b75=H(_0x143b37['bottom']+this[_0x5051('0x2f')],_0x290ac5['top']);return!!_0x569b75&&(this[_0x5051('0x3f')](_0x143b37,_0x143b37[_0x5051('0x31')]-_0x569b75),!0x0);}[_0x5051('0x20')](_0x5aa93e,_0x4a3c13){_0x5aa93e[_0x5051('0x30')]();const _0x1bb4ba=H(_0x5aa93e[_0x5051('0x4')]+this[_0x5051('0x2f')],_0x4a3c13['top']);return!!_0x1bb4ba&&(this['_setItemTop'](_0x4a3c13,_0x4a3c13[_0x5051('0x31')]+_0x1bb4ba,!0x1),!0x0);}['_alignToTargetRect'](_0x24ca77){const _0x9d731c=this['_sidebarItemViewToAnnotation'][_0x5051('0x3c')](_0x24ca77);if(!_0x9d731c||!_0x9d731c['target']||!_0x9d731c[_0x5051('0xa')])return;const _0x31c185=this[_0x5051('0x1')](_0x9d731c,_0x9d731c['targetRect']);this[_0x5051('0x3f')](_0x24ca77,_0x31c185);}[_0x5051('0x1')](_0x59742c,_0x582a10){if(null===_0x582a10)return 0x0;if(_0x59742c['target']instanceof _0x11f21b)return _0x582a10[_0x5051('0x31')];{const _0x29ccda=new _0x11f21b(this[_0x5051('0x28')]['element'])[_0x5051('0x31')];return _0x582a10['top']-_0x29ccda;}}[_0x5051('0x3f')](_0x1e8375,_0x10b0ae,_0x442127=this[_0x5051('0x45')]['config'][_0x5051('0x3c')](_0x5051('0x37'))){_0x442127&&(_0x10b0ae=Math['max'](_0x10b0ae,this[_0x5051('0x44')](_0x1e8375))),_0x1e8375[_0x5051('0x31')]=_0x10b0ae;}[_0x5051('0x44')](_0x5e869a){let _0x3e94ec=this[_0x5051('0x2d')](_0x5e869a),_0x260337=0x0;for(;_0x3e94ec;)_0x3e94ec[_0x5051('0x30')](),_0x260337+=this['_spaceBetweenItems']+_0x3e94ec[_0x5051('0x1a')],_0x3e94ec=this[_0x5051('0x2d')](_0x3e94ec);return _0x260337;}}function H(_0x376bc8,_0x3892a6){return Math['max'](_0x376bc8-_0x3892a6,0x0);}function y(_0x230d72){return null!==_0x230d72&&_0x5051('0x23')==typeof _0x230d72&&0x1===_0x230d72[_0x5051('0x26')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3790=['bind','ck-annotation-counter__badge--edit-mode','...','ck-annotation-counter','number','span','annotationType','isDirty','_badge','bindTemplate','set','setTemplate','counterView','ck-annotation-counter__badge--'];(function(_0x5896d3,_0x379045){const _0x2d9e96=function(_0xee8769){while(--_0xee8769){_0x5896d3['push'](_0x5896d3['shift']());}};_0x2d9e96(++_0x379045);}(_0x3790,0x1d8));const _0x2d9e=function(_0x5896d3,_0x379045){_0x5896d3=_0x5896d3-0x0;let _0x2d9e96=_0x3790[_0x5896d3];return _0x2d9e96;};import{ButtonView as _0x12084c,View as _0x570c32}from'ckeditor5/src/ui';import _0x1583a7 from'../../../theme/icons/add-comment.svg';export default class D extends _0x12084c{constructor(_0x104763){super(_0x104763);const _0x3f56c4=this[_0x2d9e('0xd')];this[_0x2d9e('0x0')](_0x2d9e('0xb'),!0x1),this[_0x2d9e('0x0')](_0x2d9e('0x8'),0x0),this[_0x2d9e('0x4')](_0x2d9e('0xc'))['to'](this,_0x2d9e('0xb'),this,_0x2d9e('0x8'),(_0x4768c0,_0x86c126)=>_0x4768c0?_0x2d9e('0x6'):_0x86c126['toString']()),this[_0x2d9e('0x0')](_0x2d9e('0xa'),''),this['icon']=_0x1583a7,this['extendTemplate']({'attributes':{'class':[_0x2d9e('0x7')]}}),this[_0x2d9e('0x2')]=new _0x570c32(),this[_0x2d9e('0x2')][_0x2d9e('0x1')]({'tag':_0x2d9e('0x9'),'attributes':{'class':['ck-annotation-counter__badge',_0x3f56c4['to'](_0x2d9e('0xa'),_0x1075b5=>_0x2d9e('0x3')+_0x1075b5),_0x3f56c4['if'](_0x2d9e('0xb'),_0x2d9e('0x5'))]},'children':[{'text':_0x3f56c4['to'](_0x2d9e('0xc'))}]}),this['children']['add'](this[_0x2d9e('0x2')]);}}
|