@ckeditor/ckeditor5-comments 0.0.0-nightly-20230809.0 → 0.0.0-nightly-20230811.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-20230811.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-20230811.0",
|
|
47
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230811.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 _0x113c=['annotation-invalid-target','length','render','set','object','focusableElements','add','function','_id','stopListening','_target','innerView','_assertCorrectTarget','refreshVisibility','view','filter','_type','target','element','every','type','isVisible','mainView','getClientRects','_getNormalizedTarget','isActive','nodeType','isArray','focusTracker','offsetParent','updateTargetRect','targetRect','item'];(function(_0x491ee2,_0x113c14){const _0x118653=function(_0x3f1745){while(--_0x3f1745){_0x491ee2['push'](_0x491ee2['shift']());}};_0x118653(++_0x113c14);}(_0x113c,0x197));const _0x1186=function(_0x491ee2,_0x113c14){_0x491ee2=_0x491ee2-0x0;let _0x118653=_0x113c[_0x491ee2];return _0x118653;};import{CKEditorError as _0x11475b,Rect as _0x1e006d,Collection as _0x1f522b,ObservableMixin as _0x261b6d}from'ckeditor5/src/utils';export default class d extends _0x261b6d(){constructor({view:_0x603c31,target:_0x1dda3b,type:_0xc0c868,isVisible:_0x5c23d5=!0x0}){super(),this['view']=_0x603c31,this[_0x1186('0x3')][_0x1186('0x7')]||this['view'][_0x1186('0x18')](),this[_0x1186('0x5')]=_0xc0c868,this['_target']=_0x1dda3b,d[_0x1186('0x1')](this['_getNormalizedTarget']()),this[_0x1186('0x1b')]=new _0x1f522b([this[_0x1186('0x3')][_0x1186('0x7')]],{'idProperty':_0x1186('0x1e')}),this[_0x1186('0x1b')]['on'](_0x1186('0x1c'),(_0x52e466,_0xf4715)=>{this['view'][_0x1186('0x11')][_0x1186('0x1c')](_0xf4715);}),this[_0x1186('0x1b')]['on']('remove',(_0x258eb3,_0x3a69fd)=>{this[_0x1186('0x3')][_0x1186('0x11')]['remove'](_0x3a69fd);}),this[_0x1186('0x19')](_0x1186('0xa'),_0x5c23d5);}get[_0x1186('0x9')](){return'function'==typeof this[_0x1186('0x5')]?this[_0x1186('0x5')]():this[_0x1186('0x5')];}get[_0x1186('0x0')](){return this['view'][_0x1186('0xb')];}get['target'](){const _0x3643b2=this[_0x1186('0xd')]();return d[_0x1186('0x1')](_0x3643b2),_0x3643b2;}get[_0x1186('0x14')](){const _0x1b4df7=this[_0x1186('0x6')];if(null===_0x1b4df7)return null;if(_0x1b4df7 instanceof _0x1e006d)return _0x1b4df7;const _0x48fb5d=_0x1b4df7[_0x1186('0x4')](_0x5d2a0f=>function(_0x5db83b){const _0x115891=_0x5db83b[_0x1186('0x12')];if(_0x115891)return!0x0;const _0x577413=_0x5db83b[_0x1186('0xc')]()[_0x1186('0x15')](0x0);return!!_0x577413;}(_0x5d2a0f));return 0x0===_0x48fb5d[_0x1186('0x17')]?null:new _0x1e006d(_0x48fb5d[0x0][_0x1186('0xc')]()[_0x1186('0x15')](0x0));}get[_0x1186('0xe')](){return this[_0x1186('0x3')][_0x1186('0xe')];}set['isActive'](_0x1aaba3){this[_0x1186('0x3')]['isActive']=_0x1aaba3,this[_0x1186('0x3')][_0x1186('0xb')][_0x1186('0xe')]=_0x1aaba3;}[_0x1186('0x13')](){this[_0x1186('0x3')]['targetRect']=this[_0x1186('0x14')];}['destroy'](){this[_0x1186('0x1b')][_0x1186('0x1f')](),this[_0x1186('0x1b')]['clear'](),this['stopListening']();}[_0x1186('0x2')](){this['isVisible']=!!this[_0x1186('0x14')];}static['_assertCorrectTarget'](_0x54c7c4){if(!(null===_0x54c7c4||_0x54c7c4 instanceof _0x1e006d||Array[_0x1186('0x10')](_0x54c7c4)&&_0x54c7c4[_0x1186('0x8')](_0x464a5b=>y(_0x464a5b))))throw new _0x11475b(_0x1186('0x16'),null,{'target':_0x54c7c4});}['_getNormalizedTarget'](){const _0x5d7d67=_0x1186('0x1d')==typeof this[_0x1186('0x20')]?this[_0x1186('0x20')]():this[_0x1186('0x20')];return y(_0x5d7d67)?[_0x5d7d67]:_0x5d7d67;}}function y(_0x1d039a){return null!==_0x1d039a&&_0x1186('0x1a')==typeof _0x1d039a&&_0x1186('0xf')in _0x1d039a&&0x1===_0x1d039a['nodeType'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d41=['length','change:isFocused','annotationcollection-duplicated-item','set','left','updateTargetRect','listenTo','fire','sort','stopListening','blur','add','_focusTracker','has','from','_sort','_innerViewToAnnotation','focusableElements','clear','top','focusTracker','remove','delete','getByInnerView','_viewToAnnotation','get','_getOrderInContent','focus','targetRect','destroy','view'];(function(_0x536a11,_0x2d416d){const _0x164a3d=function(_0x41d954){while(--_0x41d954){_0x536a11['push'](_0x536a11['shift']());}};_0x164a3d(++_0x2d416d);}(_0x2d41,0x1c2));const _0x164a=function(_0x536a11,_0x2d416d){_0x536a11=_0x536a11-0x0;let _0x164a3d=_0x2d41[_0x536a11];return _0x164a3d;};import{CKEditorError as _0x9caa4b,Collection as _0x4a3877,FocusTracker as _0x365932}from'ckeditor5/src/utils';export default class x extends _0x4a3877{constructor(_0x393b4b=[]){super(),this[_0x164a('0x0')]=new Map(),this[_0x164a('0x8')]=new Map(),this[_0x164a('0x1b')]=new _0x365932(),this[_0x164a('0x1b')]['on'](_0x164a('0x10'),(_0x5e2630,_0x333457,_0x4a38e0)=>{_0x4a38e0||this[_0x164a('0x16')](_0x164a('0x19'));});for(const _0x26b6c3 of _0x393b4b)this[_0x164a('0x1a')](_0x26b6c3);}get['isFocused'](){return this['_focusTracker']['isFocused'];}[_0x164a('0x1a')](_0x582e60){if(this[_0x164a('0x1c')](_0x582e60))throw new _0x9caa4b(_0x164a('0x11'),null);this[_0x164a('0x0')][_0x164a('0x12')](_0x582e60['innerView'],_0x582e60),this[_0x164a('0x8')][_0x164a('0x12')](_0x582e60[_0x164a('0xe')],_0x582e60);for(const _0x685c9f of _0x582e60['focusableElements'])this[_0x164a('0x1b')][_0x164a('0x1a')](_0x685c9f);this[_0x164a('0x15')](_0x582e60['focusableElements'],_0x164a('0x1a'),(_0x3b997c,_0x53ee97)=>{this[_0x164a('0x1b')]['add'](_0x53ee97);}),this[_0x164a('0x15')](_0x582e60['focusableElements'],_0x164a('0x5'),(_0x40ea97,_0x49bc0a)=>{this[_0x164a('0x1b')][_0x164a('0x5')](_0x49bc0a);}),this['listenTo'](_0x582e60[_0x164a('0xe')]['focusTracker'],_0x164a('0x10'),(_0x127b96,_0x21befb,_0x59c619)=>{_0x59c619&&this[_0x164a('0x16')](_0x164a('0xb'),_0x582e60);}),_0x582e60[_0x164a('0x14')]();const _0x5c6d62=this[_0x164a('0xa')](_0x582e60['view']['targetRect']);return super[_0x164a('0x1a')](_0x582e60,_0x5c6d62);}[_0x164a('0x5')](_0x44f48f){if(!this['has'](_0x44f48f))throw new _0x9caa4b('annotationcollection-not-existing-item',null);this[_0x164a('0x18')](_0x44f48f[_0x164a('0xe')][_0x164a('0x4')]),this[_0x164a('0x18')](_0x44f48f[_0x164a('0x1')]);for(const _0x553152 of _0x44f48f[_0x164a('0x1')])this[_0x164a('0x1b')]['remove'](_0x553152);return this[_0x164a('0x8')][_0x164a('0x6')](_0x44f48f['view']),this[_0x164a('0x0')][_0x164a('0x6')](_0x44f48f['innerView']),super[_0x164a('0x5')](_0x44f48f);}[_0x164a('0x7')](_0x3f8764){return this[_0x164a('0x0')][_0x164a('0x9')](_0x3f8764);}['getByView'](_0x325a8c){return this[_0x164a('0x8')]['get'](_0x325a8c);}[_0x164a('0xd')](){super['clear'](),this['stopListening'](),this[_0x164a('0x0')]['clear'](),this[_0x164a('0x8')][_0x164a('0x2')](),this[_0x164a('0x1b')][_0x164a('0xd')]();}['refreshPositioning'](){for(const _0x100e47 of this)_0x100e47[_0x164a('0x14')]();this[_0x164a('0x1e')]();}['_sort'](){const _0x11e45a=Array[_0x164a('0x1d')](this)[_0x164a('0x17')]((_0x253c7f,_0x5c7c3c)=>v(_0x253c7f['view']['targetRect'],_0x5c7c3c['view'][_0x164a('0xc')]));for(let _0x1a097c=_0x11e45a['length']-0x1;_0x1a097c>0x0;_0x1a097c--){const _0x5061ca=_0x11e45a[_0x1a097c];_0x1a097c!==this['getIndex'](_0x5061ca)&&(this[_0x164a('0x5')](_0x5061ca),this[_0x164a('0x1a')](_0x5061ca));}}[_0x164a('0xa')](_0x10f135){let _0x5b09dc=0x0;if(!_0x10f135)return this[_0x164a('0xf')];for(const _0x111575 of this){const _0x581b2d=_0x111575[_0x164a('0xe')][_0x164a('0xc')];if(_0x581b2d){if(v(_0x10f135,_0x581b2d)<0x0)return _0x5b09dc;_0x5b09dc++;}}return _0x5b09dc;}}export function bindAnnotationCollections({source:_0x27ff5c,target:_0x2a6325,filter:_0x4d6133}){for(const _0xe1ba1a of _0x27ff5c)_0x4d6133(_0xe1ba1a)&&_0x2a6325[_0x164a('0x1a')](_0xe1ba1a);_0x2a6325[_0x164a('0x15')](_0x27ff5c,'add',(_0x130d0c,_0x140d33)=>{_0x4d6133(_0x140d33)&&_0x2a6325[_0x164a('0x1a')](_0x140d33);}),_0x2a6325[_0x164a('0x15')](_0x27ff5c,_0x164a('0x5'),(_0x3da1ea,_0x3b4afc)=>{_0x2a6325[_0x164a('0x1c')](_0x3b4afc)&&_0x2a6325[_0x164a('0x5')](_0x3b4afc);});}function v(_0x5cbe81,_0x2cca1d){if(null===_0x5cbe81&&null===_0x2cca1d)return 0x0;if(null===_0x5cbe81)return-0x1;if(null===_0x2cca1d)return 0x1;const _0x1bfd17=_0x5cbe81[_0x164a('0x3')]-_0x2cca1d[_0x164a('0x3')];return 0x0==_0x1bfd17?_0x5cbe81[_0x164a('0x13')]-_0x2cca1d[_0x164a('0x13')]:_0x1bfd17;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59c6=['fire','change:isVisible','deactivateAll','listenTo','set','_visibleAnnotations','destroy','Annotations','has','isVisible','element','collection','activate','remove','stopListening','refreshVisibility','activeAnnotations','pluginName','view','_deactivateAllAnnotations','_removeActiveAnnotation','delete','add','_activateAnnotation','createAnnotation','createAnnotationView','source','focusTracker','getByInnerView','refreshPositioning','_bindAnnotationsToVisibleAnnotations'];(function(_0x46d3b1,_0x59c68b){const _0x114623=function(_0x365361){while(--_0x365361){_0x46d3b1['push'](_0x46d3b1['shift']());}};_0x114623(++_0x59c68b);}(_0x59c6,0x18d));const _0x1146=function(_0x46d3b1,_0x59c68b){_0x46d3b1=_0x46d3b1-0x0;let _0x114623=_0x59c6[_0x46d3b1];return _0x114623;};import{ContextPlugin as _0x16d9bb}from'ckeditor5/src/core';import _0x2d0141 from'./annotation';import _0x4b840e from'./annotationcollection';import _0x1003a2 from'./view/annotationview';export default class b extends _0x16d9bb{static get[_0x1146('0x17')](){return _0x1146('0xd');}constructor(_0x2db8e2){super(_0x2db8e2),this[_0x1146('0x11')]=new _0x4b840e(),this[_0x1146('0xb')]=new _0x4b840e(),this[_0x1146('0xa')](_0x1146('0x16'),new Set()),this[_0x1146('0x5')]();}[_0x1146('0x1c')](_0x44bd26){this['collection'][_0x1146('0x1c')](_0x44bd26);}['remove'](_0x47cdc6){this[_0x1146('0x11')][_0x1146('0x13')](_0x47cdc6),_0x47cdc6['destroy']();}[_0x1146('0x15')](){for(const _0x39da65 of this['collection'])_0x39da65[_0x1146('0x15')]();}[_0x1146('0x4')](){this['_visibleAnnotations'][_0x1146('0x4')]();}[_0x1146('0x3')](_0x56b833){return this['collection'][_0x1146('0x3')](_0x56b833);}[_0x1146('0x8')](){this[_0x1146('0x6')](_0x1146('0x19'));}[_0x1146('0xc')](){for(const _0x1161f0 of this['collection'])_0x1161f0[_0x1146('0xc')]();this['_visibleAnnotations'][_0x1146('0xc')](),this[_0x1146('0x11')][_0x1146('0xc')](),super[_0x1146('0xc')]();}[_0x1146('0x12')](_0x56b23e){this['fire'](_0x1146('0x1d'),_0x56b23e);}[_0x1146('0x1e')](_0xa1c90){return new _0x2d0141(_0xa1c90);}[_0x1146('0x0')](_0x2e2100,_0x140ed3){return new _0x1003a2(_0x2e2100,_0x140ed3);}['_addActiveAnnotation'](_0xd306b9){const _0xc67716=new Set(this[_0x1146('0x16')]);_0xc67716['add'](_0xd306b9),this[_0x1146('0x16')]=_0xc67716;}[_0x1146('0x1a')](_0x51ca74){const _0x2621d0=new Set(this[_0x1146('0x16')]);_0x2621d0[_0x1146('0x1b')](_0x51ca74),this[_0x1146('0x16')]=_0x2621d0;}[_0x1146('0x5')](){const _0x63d327=this['collection'],_0xc150aa=this['_visibleAnnotations'];function _0x4b9d94(_0x23742f){const _0x1ff7bb=_0x23742f[_0x1146('0x1')];_0x1ff7bb['isVisible']&&!_0xc150aa[_0x1146('0xe')](_0x1ff7bb)?_0xc150aa['add'](_0x1ff7bb):!_0x1ff7bb[_0x1146('0xf')]&&_0xc150aa[_0x1146('0xe')](_0x1ff7bb)&&_0xc150aa['remove'](_0x1ff7bb),_0x1ff7bb[_0x1146('0x18')]['focusTracker'][_0x1146('0x13')](_0x1ff7bb[_0x1146('0x18')]['element']),_0x1ff7bb[_0x1146('0x18')][_0x1146('0x2')][_0x1146('0x1c')](_0x1ff7bb[_0x1146('0x18')][_0x1146('0x10')]);}this[_0x1146('0x9')](_0x63d327,'add',(_0x940e58,_0x5de75d)=>{_0x5de75d[_0x1146('0xf')]&&_0xc150aa[_0x1146('0x1c')](_0x5de75d),this['listenTo'](_0x5de75d,_0x1146('0x7'),_0x4b9d94);}),this[_0x1146('0x9')](_0x63d327,_0x1146('0x13'),(_0x6dfc67,_0x34f0bc)=>{_0xc150aa[_0x1146('0xe')](_0x34f0bc)&&_0xc150aa[_0x1146('0x13')](_0x34f0bc),this[_0x1146('0x14')](_0x34f0bc,'change:isVisible',_0x4b9d94);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x80f0=['length','refilterAnnotations','_setSelectedAnnotations','size','get','_uis','function','filter','activate','listenTo','annotationsuis-missing-ui','_removeActiveAnnotation','collection','_deactivateAllAnnotations','detach','has','_visibleAnnotations','destroy','annotationsuis-annotation-mismatch','set','type','requires','deactivateAll','from','activeUIs','init','stopListening','AnnotationsUIs','pluginName','activeAnnotations','push','delete','annotationsuis-register-already-registered','setActiveAnnotation','_uisData','context','isActive','plugins','change:activeAnnotation','attach','switchTo','add','remove','annotationsuis-register-invalid-interface','register','find','deactivate'];(function(_0x134147,_0x80f07e){const _0x3b0a9d=function(_0x5bcfc7){while(--_0x5bcfc7){_0x134147['push'](_0x134147['shift']());}};_0x3b0a9d(++_0x80f07e);}(_0x80f0,0xb4));const _0x3b0a=function(_0x134147,_0x80f07e){_0x134147=_0x134147-0x0;let _0x3b0a9d=_0x80f0[_0x134147];return _0x3b0a9d;};import{ContextPlugin as _0x4822cb}from'ckeditor5/src/core';import{CKEditorError as _0x4aefaf}from'ckeditor5/src/utils';import _0x4e2c1f,{bindAnnotationCollections as _0x45c02a}from'./annotationcollection';import _0x39455b from'./annotations';export default class M extends _0x4822cb{static get[_0x3b0a('0x1d')](){return[_0x39455b];}static get[_0x3b0a('0x24')](){return _0x3b0a('0x23');}constructor(_0xb99427){super(_0xb99427),this[_0x3b0a('0x20')]=new Set(),this[_0x3b0a('0xd')]=new Map(),this['_uisData']=new Map();}[_0x3b0a('0x21')](){const _0x54d2c9=this[_0x3b0a('0x2b')][_0x3b0a('0x2d')]['get'](_0x39455b);this[_0x3b0a('0x11')](_0x54d2c9,'_activateAnnotation',(_0x119d1a,_0x450523)=>{for(const _0x21df37 of this[_0x3b0a('0x20')]){const _0x9e8ba0=this[_0x3b0a('0xd')][_0x3b0a('0xc')](_0x21df37);(0x0,this[_0x3b0a('0x2a')][_0x3b0a('0xc')](_0x21df37)[_0x3b0a('0xf')])(_0x450523)&&_0x9e8ba0['setActiveAnnotation'](_0x450523);}}),this[_0x3b0a('0x11')](_0x54d2c9,_0x3b0a('0x15'),()=>{for(const _0x124a57 of this[_0x3b0a('0x20')]){this[_0x3b0a('0xd')][_0x3b0a('0xc')](_0x124a57)['setActiveAnnotation'](null);}}),this['listenTo'](_0x54d2c9[_0x3b0a('0x18')],'add',(_0x1788dc,_0x30fc89)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x30fc89);});}['hasActive'](){return this[_0x3b0a('0x20')][_0x3b0a('0xb')]>0x0;}[_0x3b0a('0x2c')](_0x4d653b){return this[_0x3b0a('0x20')][_0x3b0a('0x17')](_0x4d653b);}[_0x3b0a('0x10')](_0x52cded,_0x4c15ec=()=>!0x0){const _0x5718bb=this[_0x3b0a('0x2b')][_0x3b0a('0x2d')][_0x3b0a('0xc')](_0x39455b);if(!this['_uis'][_0x3b0a('0x17')](_0x52cded))throw new _0x4aefaf(_0x3b0a('0x12'),this,{'uiName':_0x52cded});this[_0x3b0a('0x2c')](_0x52cded)&&this[_0x3b0a('0x7')](_0x52cded),this[_0x3b0a('0x20')][_0x3b0a('0x2')](_0x52cded);const _0x12a4cd=new _0x4e2c1f(),_0x2b11b7=_0x5718bb['_visibleAnnotations'];_0x45c02a({'source':_0x2b11b7,'target':_0x12a4cd,'filter':_0x4c15ec}),this['_uisData'][_0x3b0a('0x1b')](_0x52cded,{'collection':_0x12a4cd,'filter':_0x4c15ec});const _0x4c4410=this[_0x3b0a('0xd')][_0x3b0a('0xc')](_0x52cded);_0x4c4410[_0x3b0a('0x0')](_0x12a4cd),this[_0x3b0a('0x11')](_0x4c4410,_0x3b0a('0x2e'),(_0x433ac2,_0x432f1c,_0x9bc941,_0x221f88)=>{_0x221f88&&_0x5718bb[_0x3b0a('0x13')](_0x221f88),_0x9bc941&&_0x5718bb['_addActiveAnnotation'](_0x9bc941);});}[_0x3b0a('0x7')](_0x2ac350){if(this[_0x3b0a('0x20')][_0x3b0a('0x27')](_0x2ac350),!this[_0x3b0a('0xd')][_0x3b0a('0x17')](_0x2ac350))throw new _0x4aefaf(_0x3b0a('0x12'),this,{'uiName':_0x2ac350});const _0x3cc862=this[_0x3b0a('0xd')]['get'](_0x2ac350);_0x3cc862[_0x3b0a('0x16')](),this[_0x3b0a('0x22')](_0x3cc862),this['_uisData']['get'](_0x2ac350)[_0x3b0a('0x14')][_0x3b0a('0x19')](),this[_0x3b0a('0x2a')][_0x3b0a('0x27')](_0x2ac350);}[_0x3b0a('0x1')](_0x53a110){if(!this[_0x3b0a('0xd')][_0x3b0a('0x17')](_0x53a110))throw new _0x4aefaf(_0x3b0a('0x12'),this,{'uiName':_0x53a110});const _0x2aa981=this[_0x3b0a('0x2b')][_0x3b0a('0x2d')]['get'](_0x39455b),_0x5581ac=Array[_0x3b0a('0x1f')](_0x2aa981[_0x3b0a('0x25')])[0x0]||null;this[_0x3b0a('0x1e')](),this[_0x3b0a('0x10')](_0x53a110);const _0x3118ff=this[_0x3b0a('0xd')][_0x3b0a('0xc')](_0x53a110);_0x3118ff[_0x3b0a('0x29')](_0x5581ac),_0x3118ff[_0x3b0a('0xa')]&&_0x5581ac&&_0x3118ff[_0x3b0a('0xa')]([_0x5581ac]);}[_0x3b0a('0x1e')](){for(const _0x4e4c7e of this[_0x3b0a('0x20')])this['deactivate'](_0x4e4c7e);}[_0x3b0a('0x5')](_0x495c6e,_0x1b7d3e){if(this[_0x3b0a('0xd')][_0x3b0a('0x17')](_0x495c6e))throw new _0x4aefaf(_0x3b0a('0x28'));if(_0x3b0a('0xe')!=typeof _0x1b7d3e['attach']||_0x3b0a('0xe')!=typeof _0x1b7d3e[_0x3b0a('0x16')]||'function'!=typeof _0x1b7d3e['setActiveAnnotation'])throw new _0x4aefaf(_0x3b0a('0x4'),null);this[_0x3b0a('0xd')][_0x3b0a('0x1b')](_0x495c6e,_0x1b7d3e);}[_0x3b0a('0x9')](){const _0x336762=this[_0x3b0a('0x2b')]['plugins'][_0x3b0a('0xc')](_0x39455b)['collection'],_0x308004=new Map(),_0x5928f5=Array[_0x3b0a('0x1f')](this[_0x3b0a('0x20')]);for(const _0x124fa8 of this['activeUIs']){const _0x4c43b6=this[_0x3b0a('0x2a')][_0x3b0a('0xc')](_0x124fa8)['collection'];for(const _0x5a7496 of _0x4c43b6)_0x308004['set'](_0x5a7496,_0x124fa8);}for(const _0x1e1b5b of _0x336762){const _0xa061fc=_0x308004[_0x3b0a('0xc')](_0x1e1b5b);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1e1b5b);const _0x373129=_0x5928f5[_0x3b0a('0x6')](_0x130b01=>this[_0x3b0a('0x2a')][_0x3b0a('0xc')](_0x130b01)[_0x3b0a('0xf')](_0x1e1b5b));_0xa061fc!==_0x373129&&(_0xa061fc&&this['_uisData'][_0x3b0a('0xc')](_0xa061fc)[_0x3b0a('0x14')][_0x3b0a('0x3')](_0x1e1b5b),_0x373129&&this[_0x3b0a('0x2a')]['get'](_0x373129)[_0x3b0a('0x14')][_0x3b0a('0x2')](_0x1e1b5b));}}[_0x3b0a('0x19')](){this[_0x3b0a('0x1e')](),super[_0x3b0a('0x19')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3047e5){const _0x5abb6a=[];for(const _0x480f93 of this[_0x3b0a('0x20')]){(0x0,this[_0x3b0a('0x2a')]['get'](_0x480f93)[_0x3b0a('0xf')])(_0x3047e5)&&_0x5abb6a[_0x3b0a('0x26')](_0x480f93);}if(_0x5abb6a[_0x3b0a('0x8')]>0x1)throw new _0x4aefaf(_0x3b0a('0x1a'),null,{'matchedUIs':_0x5abb6a,'annotationType':_0x3047e5[_0x3b0a('0x1c')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2dfd=['document','requires','isCollapsed','isReadOnly','map','fire','hasDomSelection','getRanges','listenTo','view','change:range','innerView','EditorAnnotations','init','_editorAnnotationsData','pluginName','update','function','get','selection','directChange','focusTracker','from','change:isFocused','refresh','element','getByInnerView','model','_dataCollectors','editorannotations-invalid-source-callback','has','refreshSelectedViews','editing','add','blur','collection','range','uiUpdate','remove','_editorAnnotations','sort','addSourceCollector','annotation','containsRange','push','editor'];(function(_0x1517cb,_0x2dfdc0){const _0x343de0=function(_0x57f780){while(--_0x57f780){_0x1517cb['push'](_0x1517cb['shift']());}};_0x343de0(++_0x2dfdc0);}(_0x2dfd,0xbc));const _0x343d=function(_0x1517cb,_0x2dfdc0){_0x1517cb=_0x1517cb-0x0;let _0x343de0=_0x2dfd[_0x1517cb];return _0x343de0;};import{Plugin as _0x1c12ad}from'ckeditor5/src/core';import{CKEditorError as _0xe4a609}from'ckeditor5/src/utils';import{debounce as _0x187aa4}from'lodash-es';import _0x21b9bd from'./annotations';export default class k extends _0x1c12ad{static get[_0x343d('0x2b')](){return[_0x21b9bd];}static get[_0x343d('0xb')](){return _0x343d('0x8');}constructor(_0x5eaf71){super(_0x5eaf71),this[_0x343d('0x18')]=new Set(),this[_0x343d('0x23')]=new Set();}[_0x343d('0x9')](){const _0xf5baca=this['editor'],_0x3c2a87=_0xf5baca['model']['document']['selection'],_0x2bc768=_0x187aa4(()=>this[_0x343d('0x1b')](),0xa);_0x3c2a87['on'](_0x343d('0x6'),(_0x31ffb5,_0x614937)=>{_0x614937[_0x343d('0x10')]&&(_0x2bc768['cancel'](),this[_0x343d('0x1b')]());}),this[_0x343d('0x4')](_0xf5baca[_0x343d('0x1c')][_0x343d('0x5')][_0x343d('0x2a')],_0x343d('0x13'),(_0x21fa32,_0x2870a7,_0x155291)=>{_0x155291&&_0x2bc768();}),this[_0x343d('0x4')](_0xf5baca['ui']['focusTracker'],'change:isFocused',(_0x2eca52,_0x501887,_0x296880)=>{_0x296880||_0xf5baca[_0x343d('0x2d')]||this['fire'](_0x343d('0x1e'),{'isAnnotationTracked':_0x668d7d=>this[_0x343d('0xa')]['has'](_0x668d7d[_0x343d('0x7')])});}),this['listenTo'](this[_0x343d('0x29')]['ui'],_0x343d('0xc'),()=>this[_0x343d('0x1')](_0x343d('0x21')));}['registerAnnotation'](_0x22e173){if(this[_0x343d('0x23')][_0x343d('0x1a')](_0x22e173[_0x343d('0x5')]))return;this[_0x343d('0x23')][_0x343d('0x1d')](_0x22e173[_0x343d('0x5')]),this[_0x343d('0x29')]['ui']['focusTracker'][_0x343d('0x1d')](_0x22e173['view'][_0x343d('0x15')]);const _0xae3716=this[_0x343d('0x29')]['plugins'][_0x343d('0xe')](_0x21b9bd);this[_0x343d('0x4')](_0xae3716[_0x343d('0x1f')],_0x343d('0x22'),(_0x1d7f26,_0x25a8ef)=>{this[_0x343d('0x29')]['ui'][_0x343d('0x11')][_0x343d('0x22')](_0x25a8ef[_0x343d('0x5')][_0x343d('0x15')]),this[_0x343d('0x23')]['delete'](_0x25a8ef[_0x343d('0x5')]);});}[_0x343d('0x2')](){return this[_0x343d('0x29')]['editing'][_0x343d('0x5')][_0x343d('0x2')];}[_0x343d('0x25')](_0x26ca5a){if(_0x343d('0xd')!=typeof _0x26ca5a)throw new _0xe4a609(_0x343d('0x19'));this[_0x343d('0x18')][_0x343d('0x1d')](_0x26ca5a);}['refreshSelectedViews'](){this[_0x343d('0x1')](_0x343d('0x14'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4df1fc,annotations:_0x3dfe3a}){const _0x1fdab3=[],_0xf04bf2=this['editor'][_0x343d('0x17')]['document'][_0x343d('0xf')],_0x21ffb7=Array[_0x343d('0x12')](_0xf04bf2[_0x343d('0x3')]());for(const [_0x2662b7,_0x4854eb]of this[_0x343d('0xa')]){const _0x97d76d=_0x183953(_0x4854eb),_0x543db1=_0x3dfe3a[_0x343d('0x16')](_0x2662b7);_0x97d76d&&_0x543db1&&_0x1fdab3[_0x343d('0x28')]({'annotation':_0x543db1,'range':_0x97d76d});}function _0x183953(_0x4377a1){for(const _0x3fc1b2 of _0x4377a1)for(const _0xbd13d1 of _0x21ffb7)if(_0x3fc1b2[_0x343d('0x27')](_0xbd13d1,!_0xf04bf2[_0x343d('0x2c')]))return _0x3fc1b2;return null;}return _0x1fdab3[_0x343d('0x24')]((_0x1d39fd,_0x1e2eaf)=>{const _0x420b4a=_0x1d39fd[_0x343d('0x20')],_0x38dea6=_0x1e2eaf[_0x343d('0x20')];if(!_0x420b4a['isEqual'](_0x38dea6)){if(_0x420b4a[_0x343d('0x27')](_0x38dea6,!0x0))return 0x1;if(_0x38dea6[_0x343d('0x27')](_0x420b4a,!0x0))return-0x1;}return _0x1d39fd['annotation']==_0x4df1fc?-0x1:_0x1e2eaf[_0x343d('0x26')]==_0x4df1fc?0x1:0x0;})[_0x343d('0x0')](_0x12db59=>_0x12db59[_0x343d('0x26')]);}get[_0x343d('0xa')](){const _0x49ad7d=new Map();for(const _0x422885 of Array[_0x343d('0x12')](this[_0x343d('0x18')]))for(const [_0x352e6f,_0xb10c2c]of _0x422885())_0x49ad7d['set'](_0x352e6f,_0xb10c2c);return _0x49ad7d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25ec=['hasView','editing','change:height','editor','fromRect','isActive','updatePosition','push','pluginName','inlineannotations-detach-not-attached','annotations','targetRect','getBoundingClientRect','register','destroy','set','document','selection','has','top','_setSelectedAnnotations','isAttached','getFirstRange','remove','switchTo','init','focus','context','delete','activeAnnotation','includes','_balloon','_removeAnnotationFromBalloon','_manuallyClosed','focusTracker','domConverter','_selectedAnnotations','listenTo','keystrokes','bottom','clear','plugins','add','visibleView','length','viewRangeToDom','getOrderedSelectedAnnotations','inlineannotations-attach-already-attached','addObserver','find','editableElement','map','isFocused','attach','every','getClientRects','change:visibleView','width','left','requires','inlineannotations-not-allowed-with-context','right','_addedAnnotations','_getBalloonTargetForAnnotation','detach','target','getByView','_forceRefresh','setActiveAnnotation','stopListening','_addAnnotationToBalloon','InlineAnnotations','Esc','mousedown','inline','change:isFocused','view','get'];(function(_0x5c7603,_0x25ec6e){const _0x10a261=function(_0xf5abec){while(--_0xf5abec){_0x5c7603['push'](_0x5c7603['shift']());}};_0x10a261(++_0x25ec6e);}(_0x25ec,0x1e8));const _0x10a2=function(_0x5c7603,_0x25ec6e){_0x5c7603=_0x5c7603-0x0;let _0x10a261=_0x25ec[_0x5c7603];return _0x10a261;};import{Plugin as _0x398c0b}from'ckeditor5/src/core';import _0x1da505 from'./annotationsuis';import _0xc47756 from'./editorannotations';import{ContextualBalloon as _0x28b9db}from'ckeditor5/src/ui';import{MouseObserver as _0x493e07}from'ckeditor5/src/engine';import{CKEditorError as _0x1fddc2,Rect as _0x1ee2c4}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x398c0b{static get[_0x10a2('0x27')](){return[_0xc47756,_0x28b9db,_0x1da505];}static get[_0x10a2('0x42')](){return _0x10a2('0x33');}constructor(_0x40b698){super(_0x40b698),_0x40b698[_0x10a2('0x3b')]['view'][_0x10a2('0x1c')](_0x493e07),this[_0x10a2('0x1')]=!0x1,this[_0x10a2('0x49')]('activeAnnotation',null),this['annotations']=null,this[_0x10a2('0xd')]=new Set(),this[_0x10a2('0xb')]=_0x40b698[_0x10a2('0x15')][_0x10a2('0x39')](_0x28b9db),this[_0x10a2('0x2a')]=new Set(),this['_selectedAnnotations']=[],this[_0x10a2('0x2f')]=!0x1;}[_0x10a2('0x5')](){const _0x3b5c6f=this[_0x10a2('0x3d')]['plugins'][_0x10a2('0x39')](_0x1da505);_0x3b5c6f[_0x10a2('0x7')]===this[_0x10a2('0x3d')]&&(_0x3b5c6f[_0x10a2('0x47')]('inline',this),this[_0x10a2('0x3d')][_0x10a2('0x12')]['set']('Esc',(_0xcd0c63,_0x4d2a7f)=>{const _0x472aeb=this[_0x10a2('0xb')];if(this[_0x10a2('0x1')]&&_0x472aeb[_0x10a2('0x17')]){const _0x30852d=this[_0x10a2('0x44')][_0x10a2('0x2e')](_0x472aeb[_0x10a2('0x17')]);_0x30852d&&this['_closeAnnotation'](_0x30852d),_0x4d2a7f();}}));}['afterInit'](){const _0x1ce567=this[_0x10a2('0x3d')][_0x10a2('0x15')][_0x10a2('0x39')](_0x1da505);_0x1ce567['context']===this[_0x10a2('0x3d')]&&(_0x1ce567['hasActive']()||_0x1ce567[_0x10a2('0x4')](_0x10a2('0x36')));}['setActiveAnnotation'](_0x5f275a){_0x5f275a!==this[_0x10a2('0x9')]&&(this['activeAnnotation']&&(this['activeAnnotation'][_0x10a2('0x3f')]=!0x1),_0x5f275a&&this[_0x10a2('0x3d')]['ui'][_0x10a2('0xe')][_0x10a2('0x20')]&&(this[_0x10a2('0x44')][_0x10a2('0x4c')](_0x5f275a)&&this[_0x10a2('0x32')](_0x5f275a,!0x0),_0x5f275a[_0x10a2('0x3f')]=!0x0),_0x5f275a||this['_setSelectedAnnotations']([]),this[_0x10a2('0x9')]=_0x5f275a);}[_0x10a2('0x21')](_0x26f984){this['annotations']=_0x26f984;const _0x3ff261=this['editor']['plugins'][_0x10a2('0x39')](_0x1da505),_0x2c75d2=this[_0x10a2('0xb')];if(this[_0x10a2('0x1')])throw new _0x1fddc2(_0x10a2('0x1b'),this);if(_0x3ff261['context']!==this[_0x10a2('0x3d')])throw new _0x1fddc2(_0x10a2('0x28'),this);const _0x5b1f11=this[_0x10a2('0x3d')][_0x10a2('0x15')][_0x10a2('0x39')](_0xc47756);this[_0x10a2('0x11')](_0x5b1f11,'refresh',()=>{const _0x517e4e=_0x5b1f11[_0x10a2('0x1a')]({'annotations':this[_0x10a2('0x44')],'activeAnnotation':this[_0x10a2('0x9')]});var _0x4dd055,_0x3cedfa;!this['_forceRefresh']&&(_0x4dd055=_0x517e4e,_0x3cedfa=this[_0x10a2('0x10')],_0x4dd055['length']===_0x3cedfa[_0x10a2('0x18')]&&_0x4dd055[_0x10a2('0x22')](_0x4eff7a=>_0x3cedfa[_0x10a2('0xa')](_0x4eff7a)))||(this[_0x10a2('0x2f')]=!0x1,this[_0x10a2('0x0')](_0x517e4e),this['setActiveAnnotation'](_0x517e4e[0x0]||null));}),this[_0x10a2('0x11')](_0x5b1f11,'blur',(_0x1c44f2,{isAnnotationTracked:_0x346808})=>{this[_0x10a2('0x9')]&&_0x346808(this[_0x10a2('0x9')])&&(this[_0x10a2('0x0')]([]),this['setActiveAnnotation'](null));}),this[_0x10a2('0x11')](this[_0x10a2('0x3d')]['ui']['focusTracker'],_0x10a2('0x37'),(_0x4e0e17,_0x43c119,_0x18719e)=>{_0x18719e||this[_0x10a2('0x30')](null);}),this[_0x10a2('0x11')](_0x26f984,_0x10a2('0x3'),(_0x22ead5,_0x232a01)=>{this[_0x10a2('0xc')](_0x232a01),_0x232a01===this['activeAnnotation']&&this[_0x10a2('0x30')](null);}),this[_0x10a2('0x11')](_0x2c75d2,_0x10a2('0x24'),(_0x34a2d4,_0x2dc956,_0x47c0db,_0x618a5f)=>{_0x618a5f&&this['stopListening'](_0x618a5f);const _0x39e7e2=_0x26f984[_0x10a2('0x2e')](_0x47c0db);_0x47c0db&&_0x39e7e2&&(this[_0x10a2('0x11')](_0x47c0db,_0x10a2('0x3c'),()=>{_0x2c75d2['updatePosition']();}),this[_0x10a2('0x11')](_0x47c0db,_0x10a2('0x34'),()=>{this['_closeAnnotation'](_0x39e7e2),this[_0x10a2('0x3d')][_0x10a2('0x3b')][_0x10a2('0x38')][_0x10a2('0x6')]();}),this['activeAnnotation']!==_0x39e7e2&&this['setActiveAnnotation'](_0x39e7e2));}),this[_0x10a2('0x11')](this[_0x10a2('0x3d')]['ui'],'update',()=>{_0x2c75d2[_0x10a2('0x17')]&&(_0x26f984[_0x10a2('0x2e')](_0x2c75d2[_0x10a2('0x17')])&&_0x2c75d2[_0x10a2('0x40')]());}),this[_0x10a2('0x11')](this[_0x10a2('0x3d')][_0x10a2('0x3b')][_0x10a2('0x38')][_0x10a2('0x4a')],_0x10a2('0x35'),()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed'][_0x10a2('0x14')]();}),this[_0x10a2('0x3d')]['editing'][_0x10a2('0x38')][_0x10a2('0x4a')][_0x10a2('0x4b')][_0x10a2('0x1e')]&&this[_0x10a2('0x3d')][_0x10a2('0x3b')]['view'][_0x10a2('0x6')](),this[_0x10a2('0x1')]=!0x0;}[_0x10a2('0x2c')](){if(!this[_0x10a2('0x1')])throw new _0x1fddc2(_0x10a2('0x43'),this);this[_0x10a2('0x30')](null);for(const _0x2ceaab of this[_0x10a2('0x2a')])this[_0x10a2('0xc')](_0x2ceaab);this[_0x10a2('0x31')](),this[_0x10a2('0x1')]=!0x1,this[_0x10a2('0x44')]=null;}[_0x10a2('0x48')](){this[_0x10a2('0x1')]&&this[_0x10a2('0x2c')]();}[_0x10a2('0x0')](_0x1d230e){for(const _0x304fed of this[_0x10a2('0x10')])_0x1d230e[_0x10a2('0xa')](_0x304fed)||this['_manuallyClosed'][_0x10a2('0x8')](_0x304fed);for(const _0x1c34c4 of this[_0x10a2('0x44')])_0x1d230e['includes'](_0x1c34c4)||this[_0x10a2('0xc')](_0x1c34c4);if(this['editor']['ui'][_0x10a2('0xe')][_0x10a2('0x20')])for(const _0x48e962 of _0x1d230e)this[_0x10a2('0x32')](_0x48e962);this[_0x10a2('0x10')]=_0x1d230e;}[_0x10a2('0x32')](_0xdbc2ea,_0xb40439=!0x1){this['_manuallyClosed'][_0x10a2('0x4c')](_0xdbc2ea)||(this[_0x10a2('0x2a')][_0x10a2('0x4c')](_0xdbc2ea)||this[_0x10a2('0xb')][_0x10a2('0x3a')](_0xdbc2ea[_0x10a2('0x38')])||(this[_0x10a2('0x2a')][_0x10a2('0x16')](_0xdbc2ea),this['_balloon'][_0x10a2('0x16')]({'stackId':_0xdbc2ea[_0x10a2('0x38')]['id'],'view':_0xdbc2ea[_0x10a2('0x38')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xdbc2ea)}})),_0xb40439&&this[_0x10a2('0xb')]['showStack'](_0xdbc2ea[_0x10a2('0x38')]['id']));}[_0x10a2('0x2b')](_0x1e4390){const _0x538c82=_0x1e4390[_0x10a2('0x2d')],_0x91b9f7=this['editor'][_0x10a2('0x3b')]['view'],_0x316da8=_0x91b9f7[_0x10a2('0x4a')][_0x10a2('0x4b')][_0x10a2('0x2')](),_0x51c517=_0x91b9f7[_0x10a2('0xf')][_0x10a2('0x19')](_0x316da8);if(_0x51c517['collapse'](!0x0),_0x538c82){if(_0x538c82 instanceof _0x1ee2c4)return _0x538c82;let _0x34ce24=[];for(const _0x3ae739 of _0x538c82)_0x34ce24[_0x10a2('0x41')](...(_0x2682f8=_0x3ae739[_0x10a2('0x23')](),Array['from'](_0x2682f8)[_0x10a2('0x1f')](DOMRect[_0x10a2('0x3e')])));_0x34ce24=function(_0x4de5c9){const _0x59f92b=[];let _0x2370f7=_0x4de5c9[0x0];for(let _0x40956a=0x1;_0x40956a<_0x4de5c9[_0x10a2('0x18')];_0x40956a++)F(_0x2370f7,_0x4de5c9[_0x40956a])?_0x2370f7[_0x10a2('0x25')]+=_0x4de5c9[_0x40956a][_0x10a2('0x25')]:(_0x59f92b[_0x10a2('0x41')](_0x2370f7),_0x2370f7=_0x4de5c9[_0x40956a]);return _0x59f92b[_0x10a2('0x41')](_0x2370f7),_0x59f92b;}(_0x34ce24);const _0x251638=_0x51c517[_0x10a2('0x46')]();return _0x34ce24[_0x10a2('0x1d')](_0x291086=>_0x291086['top']<=_0x251638[_0x10a2('0x4d')]&&_0x291086['bottom']>=_0x251638[_0x10a2('0x13')]&&_0x291086[_0x10a2('0x26')]<=_0x251638[_0x10a2('0x26')]&&_0x291086[_0x10a2('0x29')]>=_0x251638[_0x10a2('0x29')])||_0x34ce24[0x0];}var _0x2682f8;return _0x1e4390[_0x10a2('0x45')]||_0x51c517;}[_0x10a2('0xc')](_0x391689){this['_addedAnnotations'][_0x10a2('0x4c')](_0x391689)&&this['_balloon']['hasView'](_0x391689[_0x10a2('0x38')])&&(this[_0x10a2('0x2a')]['delete'](_0x391689),this[_0x10a2('0xb')]['remove'](_0x391689[_0x10a2('0x38')]));}['_closeAnnotation'](_0x71d2f2){this[_0x10a2('0xd')][_0x10a2('0x16')](_0x71d2f2),this[_0x10a2('0xc')](_0x71d2f2);}}function F(_0x2aede,_0x43ee7f){return _0x2aede[_0x10a2('0x4d')]===_0x43ee7f[_0x10a2('0x4d')]&&_0x2aede[_0x10a2('0x13')]===_0x43ee7f[_0x10a2('0x13')]&&_0x2aede[_0x10a2('0x29')]===_0x43ee7f[_0x10a2('0x26')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x93c6=['stopListening','_setSelectedAnnotations','southArrowNorthEast','get','focus','EditorAnnotations','isDirty','change:container','preventClosingBalloon','cancel','pluginName','content','defaultPositions','contains','ready','keyCode','values','_hideBalloon','mousedown','set','northArrowSouth','activeAnnotation','destroy','off','getByView','target','register','blur','_showBalloon','NarrowSidebar','plugins','find','focusableElements','southArrowNorth','context','annotationType','editors','refresh','detach','includes','first','listenTo','create','length','narrowsidebar-attach-already-attached','_detachListeners','esc','addAnnotation','set:container','isVisible','_domEmitter','_editorAnnotations','hasDomSelection','_selectedAnnotations','has','rearrange','_annotationToNarrowView','_refreshPositioningDebounced','_destroyEditorAnnotationsIntegration','requires','narrowsidebar-detach-not-attached','low','ck-sidebar--narrow','balloonPanelView','clear','high','number','_updateBalloonPosition','_integrateWithEditorAnnotations','addEventListener','remove','_attachListeners','pin','annotations','element','isAttached','resize','view','bodyCollection','preventDefault','setActiveAnnotation','delete','_refreshPositioning','from','_detachFromContainer','keydown','attachToDom','execute','add','locale','_manuallyClosedAnnotationViews'];(function(_0x138ea8,_0x93c621){const _0x207754=function(_0xf68406){while(--_0xf68406){_0x138ea8['push'](_0x138ea8['shift']());}};_0x207754(++_0x93c621);}(_0x93c6,0xb6));const _0x2077=function(_0x138ea8,_0x93c621){_0x138ea8=_0x138ea8-0x0;let _0x207754=_0x93c6[_0x138ea8];return _0x207754;};import{ContextPlugin as _0x5c6c9f,Context as _0x298210}from'ckeditor5/src/core';import _0x71f06d from'./annotationsuis';import _0x35ceea from'./sidebar';import _0x4894dd from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2e740b,BodyCollection as _0x2628c6}from'ckeditor5/src/ui';import{CKEditorError as _0x5e254b,DomEmitterMixin as _0x283ba1,keyCodes as _0x4945be,Collection as _0x2b77cb}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x426c4f}from'lodash-es';import _0x123f0a from'./editorannotations';export default class s extends _0x5c6c9f{static get[_0x2077('0x3b')](){return[_0x35ceea,_0x71f06d];}static get[_0x2077('0xa')](){return _0x2077('0x1d');}constructor(_0x3688dd){super(_0x3688dd),this[_0x2077('0x4b')]=!0x1,this[_0x2077('0x5a')]=new Set(),this[_0x2077('0x32')]=Object[_0x2077('0x2a')](_0x283ba1),this[_0x2077('0x38')]=new Map(),this[_0x2077('0x13')](_0x2077('0x15'),null),this[_0x2077('0x49')]=null,this['_selectedAnnotations']=[],this[_0x2077('0x33')]=new _0x2b77cb(),this['_refreshPositioningDebounced']=_0x426c4f(()=>{this[_0x2077('0x52')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x2077('0x22')][_0x2077('0x1e')][_0x2077('0x3')](_0x71f06d)[_0x2077('0x1a')]('narrowSidebar',this),this[_0x2077('0x4e')]=new _0x2628c6(this[_0x2077('0x22')][_0x2077('0x59')]),this['balloonPanelView']=new _0x2e740b(this['context'][_0x2077('0x59')]),this[_0x2077('0x4e')][_0x2077('0x56')](),this[_0x2077('0x4e')]['add'](this[_0x2077('0x3f')]);}['attach'](_0x416b09){this['annotations']=_0x416b09;const _0x2d7b67=this['context'][_0x2077('0x1e')][_0x2077('0x3')](_0x35ceea),_0x536cc1=this[_0x2077('0x3f')];if(_0x2d7b67['_annotations']=_0x416b09,this[_0x2077('0x4b')])throw new _0x5e254b(_0x2077('0x2c'),this);this[_0x2077('0x4b')]=!0x0,this['listenTo'](_0x2d7b67,_0x2077('0x30'),()=>{this['detach'](),this[_0x2077('0x29')](_0x2d7b67,_0x2077('0x7'),_0x42da53=>{_0x42da53[_0x2077('0x17')](),this['attach'](_0x416b09);});}),_0x2d7b67['_attachToContainer']({'viewClass':_0x2077('0x3e'),'spaceBetweenItems':0x5});const _0x2b0f05=_0x2dab3a=>{const _0x51311d=new _0x4894dd(this[_0x2077('0x22')][_0x2077('0x59')]);_0x2d7b67[_0x2077('0x2f')](_0x2dab3a,_0x51311d),this[_0x2077('0x38')][_0x2077('0x13')](_0x2dab3a,_0x51311d),_0x51311d['bind'](_0x2077('0x6'),_0x2077('0x23'),_0x2077('0x42'))['to'](_0x2dab3a[_0x2077('0x4d')],_0x2077('0x6'),'type',_0x2077('0x2b')),_0x51311d['on'](_0x2077('0x57'),()=>{this[_0x2077('0x5a')][_0x2077('0x40')](),_0x536cc1['content']['first']!==_0x2dab3a['view']?(this['_showBalloon'](_0x2dab3a),_0x2dab3a[_0x2077('0x4d')][_0x2077('0x4a')]['focus'](),this[_0x2077('0x50')](_0x2dab3a)):this[_0x2077('0x50')](null);});};for(const _0x124af3 of _0x416b09)_0x2b0f05(_0x124af3);this[_0x2077('0x29')](_0x416b09,_0x2077('0x58'),(_0x2e3b36,_0x36f18c)=>{_0x2b0f05(_0x36f18c);}),this['listenTo'](_0x416b09,'remove',(_0x53c09c,_0x9d1e9d,_0x31fc30)=>{this[_0x2077('0x38')]['get'](_0x9d1e9d)[_0x2077('0x16')](),this[_0x2077('0x38')][_0x2077('0x51')](_0x9d1e9d),_0x2d7b67[_0x2077('0x37')]({'removedAnnotation':_0x9d1e9d,'previousAnnotation':_0x416b09[_0x2077('0x3')](_0x31fc30-0x1),'nextAnnotation':_0x416b09[_0x2077('0x3')](_0x31fc30+0x1)}),_0x9d1e9d===this[_0x2077('0x15')]&&this[_0x2077('0x50')](null);},{'priority':_0x2077('0x3d')}),this[_0x2077('0x29')](_0x416b09,_0x2077('0x4'),(_0x3f28fc,_0x1a82eb)=>{this[_0x2077('0x50')](_0x1a82eb);}),this['listenTo'](_0x416b09,_0x2077('0x1b'),()=>{this[_0x2077('0x50')](null);}),this['_domEmitter'][_0x2077('0x29')](document,_0x2077('0x55'),(_0x17d310,_0x30a17d)=>{_0x30a17d[_0x2077('0xf')]===_0x4945be[_0x2077('0x2e')]&&_0x536cc1['isVisible']&&(this[_0x2077('0x5a')][_0x2077('0x58')](_0x536cc1['content'][_0x2077('0x28')]),this[_0x2077('0x11')](),_0x30a17d['stopPropagation'](),_0x30a17d[_0x2077('0x4f')]());}),this[_0x2077('0x32')][_0x2077('0x29')](document,_0x2077('0x12'),(_0x25fdf6,_0x4c7ecc)=>{const _0x16aa73=_0x4c7ecc[_0x2077('0x19')];_0x536cc1['isVisible']&&_0x536cc1[_0x2077('0x4a')][_0x2077('0xd')](_0x16aa73)||_0x2d7b67['view'][_0x2077('0x4a')]['contains'](_0x16aa73)||_0x25fdf6[_0x2077('0x8')]||this[_0x2077('0x15')]&&this[_0x2077('0x15')][_0x2077('0x20')][_0x2077('0x1f')](_0xe2d982=>_0xe2d982[_0x2077('0xd')](_0x16aa73))||(this['_manuallyClosedAnnotationViews'][_0x2077('0x40')](),this[_0x2077('0x11')](),this['setActiveAnnotation'](null));});const _0x43ae09=this['context']instanceof _0x298210?this['context'][_0x2077('0x24')]:new _0x2b77cb([this[_0x2077('0x22')]]);for(const _0x2fb74c of _0x43ae09)this[_0x2077('0x44')](_0x2fb74c);this[_0x2077('0x29')](_0x43ae09,_0x2077('0x58'),(_0x16033f,_0x159e22)=>{this[_0x2077('0x29')](_0x159e22,_0x2077('0xe'),()=>{this[_0x2077('0x44')](_0x159e22);});}),this[_0x2077('0x29')](_0x43ae09,_0x2077('0x46'),(_0x4692d3,_0x1302dc)=>{_0x1302dc['plugins'][_0x2077('0x36')](_0x2077('0x5'))&&this[_0x2077('0x3a')](_0x1302dc[_0x2077('0x1e')][_0x2077('0x3')](_0x2077('0x5')));}),window[_0x2077('0x45')](_0x2077('0x4c'),this['_refreshPositioningDebounced']),this['_refreshPositioning']();}[_0x2077('0x50')](_0x1281ce){if(_0x1281ce===this['activeAnnotation'])return;const _0x5992ef=this[_0x2077('0x22')][_0x2077('0x1e')]['get'](_0x35ceea);if(_0x5992ef['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1281ce,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1281ce)_0x5992ef['getSidebarItemView'](_0x1281ce)?this[_0x2077('0x1c')](_0x1281ce):this['_hideBalloon']();else this[_0x2077('0x11')]();this[_0x2077('0x15')]=_0x1281ce;}[_0x2077('0x26')](){if(!this['isAttached'])throw new _0x5e254b(_0x2077('0x3c'),this);this[_0x2077('0x50')](null);const _0x44e3f6=this[_0x2077('0x22')]['plugins'][_0x2077('0x3')](_0x35ceea);this[_0x2077('0x11')](),Array[_0x2077('0x53')](this[_0x2077('0x38')][_0x2077('0x10')](),_0x5c1532=>_0x5c1532['destroy']()),this[_0x2077('0x38')]['clear'](),_0x44e3f6[_0x2077('0x54')](this['annotations']),this[_0x2077('0x0')](),this['_domEmitter'][_0x2077('0x0')](),this['context']instanceof _0x298210&&this[_0x2077('0x0')](this[_0x2077('0x22')]['editors']);for(const _0x1f535b of Array[_0x2077('0x53')](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1f535b);window['removeEventListener'](_0x2077('0x4c'),this[_0x2077('0x39')]),this[_0x2077('0x39')][_0x2077('0x9')](),this[_0x2077('0x35')]=[],this['isAttached']=!0x1,this[_0x2077('0x49')]=null;}[_0x2077('0x16')](){this[_0x2077('0x4b')]&&this['detach'](),this[_0x2077('0x4e')]['detachFromDom']();}[_0x2077('0x44')](_0x50f2d4){const _0x5c4cb4=_0x50f2d4[_0x2077('0x1e')][_0x2077('0x3')](_0x123f0a),_0x46691f=this[_0x2077('0x22')][_0x2077('0x1e')][_0x2077('0x3')](_0x35ceea),_0x4934fb=this[_0x2077('0x49')],_0x3d7a0e=this[_0x2077('0x3f')],_0x3adc48=()=>{const _0x56b42b=_0x5c4cb4['getOrderedSelectedAnnotations']({'annotations':this[_0x2077('0x49')],'activeAnnotation':this[_0x2077('0x15')]});this['_setSelectedAnnotations'](_0x56b42b),this[_0x2077('0x50')](_0x56b42b[0x0]||null);};this[_0x2077('0x29')](_0x5c4cb4,_0x2077('0x25'),_0x3adc48),this[_0x2077('0x29')](_0x5c4cb4,_0x2077('0x1b'),(_0x5a3cab,{isAnnotationTracked:_0xec8410})=>{this[_0x2077('0x15')]&&_0xec8410(this[_0x2077('0x15')])&&(this[_0x2077('0x1')]([]),this[_0x2077('0x50')](null));}),this[_0x2077('0x29')](_0x5c4cb4,'uiUpdate',()=>{this[_0x2077('0x39')]();}),this['listenTo'](_0x4934fb,'blur',_0x5d8170=>{_0x5c4cb4[_0x2077('0x34')]()&&_0x5d8170['stop']();},{'priority':_0x2077('0x41')}),this[_0x2077('0x29')](this['_domEmitter'],'mousedown',(_0x507592,_0x1d1d0c)=>{const _0x4c15a5=_0x1d1d0c[_0x2077('0x19')];_0x3d7a0e[_0x2077('0x31')]&&_0x3d7a0e['element'][_0x2077('0xd')](_0x4c15a5)||_0x46691f[_0x2077('0x4d')][_0x2077('0x4a')][_0x2077('0xd')](_0x4c15a5)||this['activeAnnotation']&&_0x5c4cb4[_0x2077('0x34')]()&&(_0x3adc48(),_0x507592[_0x2077('0x8')]=!0x0);},{'priority':_0x2077('0x41')}),this['_editorAnnotations']['add'](_0x5c4cb4);}[_0x2077('0x3a')](_0xc4e791){_0xc4e791&&(this['stopListening'](_0xc4e791),this[_0x2077('0x33')]['remove'](_0xc4e791));}[_0x2077('0x1')](_0x3e3266){for(const _0x25e883 of this[_0x2077('0x35')])_0x3e3266[_0x2077('0x27')](_0x25e883)||this[_0x2077('0x5a')][_0x2077('0x51')](_0x25e883[_0x2077('0x4d')]);this[_0x2077('0x35')]=_0x3e3266;}[_0x2077('0x52')](){const _0x3ca398=this[_0x2077('0x3f')];this['annotations']['refreshPositioning'](),_0x3ca398['isVisible']&&this['_updateBalloonPosition']();}[_0x2077('0x1c')](_0x281610){if(this[_0x2077('0x5a')][_0x2077('0x36')](_0x281610[_0x2077('0x4d')]))return;const _0x1fac7e=this[_0x2077('0x3f')]['content']['first'];_0x1fac7e!==_0x281610['view']?(_0x1fac7e&&this[_0x2077('0x2d')](_0x1fac7e),this[_0x2077('0x47')](_0x281610['view']),this[_0x2077('0x3f')][_0x2077('0xb')][_0x2077('0x40')](),this['balloonPanelView'][_0x2077('0xb')][_0x2077('0x58')](_0x281610['view']),this[_0x2077('0x43')]()):this[_0x2077('0x43')]();}[_0x2077('0x43')](){const _0x33c6da=this[_0x2077('0x3f')]['content'][_0x2077('0x28')],_0x5ec12b=_0x33c6da&&this[_0x2077('0x49')][_0x2077('0x18')](_0x33c6da);if(!_0x5ec12b||!this[_0x2077('0x38')][_0x2077('0x36')](_0x5ec12b))return;const _0x3674dc=this[_0x2077('0x38')][_0x2077('0x3')](_0x5ec12b)[_0x2077('0x4a')],_0x14e0f4=function(){const _0x23dac0=_0x2e740b[_0x2077('0xc')];return[_0x23dac0[_0x2077('0x2')],_0x23dac0['northArrowSouthEast'],_0x23dac0[_0x2077('0x21')],_0x23dac0[_0x2077('0x14')],_0x23dac0['southArrowNorthWest'],_0x23dac0['northArrowSouthWest']];}();this[_0x2077('0x3f')][_0x2077('0x48')]({'target':_0x3674dc,'positions':_0x14e0f4});}[_0x2077('0x11')](){const _0x231367=this[_0x2077('0x3f')],_0x5e7441=_0x231367[_0x2077('0xb')][_0x2077('0x28')];_0x5e7441&&(this[_0x2077('0x2d')](_0x5e7441),_0x231367['unpin'](),_0x231367['content'][_0x2077('0x40')]());}[_0x2077('0x47')](_0x4ba150){this[_0x2077('0x29')](_0x4ba150,'change:height',()=>this[_0x2077('0x43')]()),this[_0x2077('0x29')](_0x4ba150,'Esc',(_0xacc93d,_0x3b4047)=>{this[_0x2077('0x5a')]['add'](_0x4ba150),this['_hideBalloon'](),_0x3b4047();});}['_detachListeners'](_0x839243){this['stopListening'](_0x839243);}}
|
|
23
|
+
const _0x5cdf=['refresh','mousedown','Esc','has','first','bodyCollection','view','hasDomSelection','_refreshPositioningDebounced','_domEmitter','editors','includes','blur','getByView','add','balloonPanelView','setActiveAnnotation','southArrowNorthWest','_attachListeners','unpin','high','ready','annotationType','length','preventDefault','esc','annotations','remove','removeEventListener','clear','_annotations','NarrowSidebar','execute','_setSelectedAnnotations','_hideBalloon','change:container','_selectedAnnotations','narrowSidebar','_manuallyClosedAnnotationViews','requires','detachFromDom','isDirty','addAnnotation','_detachListeners','resize','northArrowSouth','_detachFromContainer','isVisible','element','isAttached','_destroyEditorAnnotationsIntegration','focusableElements','focus','stopPropagation','_showBalloon','get','from','contains','create','stop','defaultPositions','register','ck-sidebar--narrow','_editorAnnotations','stopListening','find','content','set','narrowsidebar-detach-not-attached','keydown','pin','rearrange','uiUpdate','attachToDom','set:container','getSidebarItemView','init','listenTo','type','preventClosingBalloon','locale','getOrderedSelectedAnnotations','southArrowNorth','_updateBalloonPosition','EditorAnnotations','plugins','_annotationToNarrowView','detach','target','context','addEventListener','low','attach','activeAnnotation','_refreshPositioning','_integrateWithEditorAnnotations','destroy','delete','_attachToContainer','northArrowSouthEast'];(function(_0x2cdd3d,_0x5cdf66){const _0x196ba7=function(_0x1b1431){while(--_0x1b1431){_0x2cdd3d['push'](_0x2cdd3d['shift']());}};_0x196ba7(++_0x5cdf66);}(_0x5cdf,0x120));const _0x196b=function(_0x2cdd3d,_0x5cdf66){_0x2cdd3d=_0x2cdd3d-0x0;let _0x196ba7=_0x5cdf[_0x2cdd3d];return _0x196ba7;};import{ContextPlugin as _0x203cc8,Context as _0x3b6256}from'ckeditor5/src/core';import _0x10bdba from'./annotationsuis';import _0x48e11e from'./sidebar';import _0x1a5194 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x429397,BodyCollection as _0x1f3acb}from'ckeditor5/src/ui';import{CKEditorError as _0x1320ef,DomEmitterMixin as _0x49f1c6,keyCodes as _0x716ebf,Collection as _0x412490}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x5b1677}from'lodash-es';import _0x539083 from'./editorannotations';export default class s extends _0x203cc8{static get[_0x196b('0x33')](){return[_0x48e11e,_0x10bdba];}static get['pluginName'](){return _0x196b('0x2b');}constructor(_0x171296){super(_0x171296),this[_0x196b('0x3d')]=!0x1,this[_0x196b('0x32')]=new Set(),this['_domEmitter']=Object[_0x196b('0x46')](_0x49f1c6),this['_annotationToNarrowView']=new Map(),this[_0x196b('0x4f')](_0x196b('0x5'),null),this[_0x196b('0x26')]=null,this[_0x196b('0x30')]=[],this[_0x196b('0x4b')]=new _0x412490(),this[_0x196b('0x14')]=_0x5b1677(()=>{this[_0x196b('0x6')]();},0xfa,{'leading':!0x1});}[_0x196b('0x58')](){this[_0x196b('0x1')][_0x196b('0x61')][_0x196b('0x43')](_0x10bdba)[_0x196b('0x49')](_0x196b('0x31'),this),this[_0x196b('0x11')]=new _0x1f3acb(this[_0x196b('0x1')][_0x196b('0x5c')]),this[_0x196b('0x1b')]=new _0x429397(this[_0x196b('0x1')][_0x196b('0x5c')]),this[_0x196b('0x11')][_0x196b('0x55')](),this[_0x196b('0x11')][_0x196b('0x1a')](this['balloonPanelView']);}[_0x196b('0x4')](_0x35589b){this[_0x196b('0x26')]=_0x35589b;const _0xeb36a8=this[_0x196b('0x1')]['plugins']['get'](_0x48e11e),_0x28c859=this[_0x196b('0x1b')];if(_0xeb36a8[_0x196b('0x2a')]=_0x35589b,this[_0x196b('0x3d')])throw new _0x1320ef('narrowsidebar-attach-already-attached',this);this[_0x196b('0x3d')]=!0x0,this[_0x196b('0x59')](_0xeb36a8,_0x196b('0x56'),()=>{this[_0x196b('0x63')](),this['listenTo'](_0xeb36a8,_0x196b('0x2f'),_0x511ae5=>{_0x511ae5['off'](),this[_0x196b('0x4')](_0x35589b);});}),_0xeb36a8[_0x196b('0xa')]({'viewClass':_0x196b('0x4a'),'spaceBetweenItems':0x5});const _0x2e124f=_0x3faa90=>{const _0x5e70ed=new _0x1a5194(this[_0x196b('0x1')][_0x196b('0x5c')]);_0xeb36a8[_0x196b('0x36')](_0x3faa90,_0x5e70ed),this[_0x196b('0x62')][_0x196b('0x4f')](_0x3faa90,_0x5e70ed),_0x5e70ed['bind']('isDirty',_0x196b('0x22'),'number')['to'](_0x3faa90[_0x196b('0x12')],_0x196b('0x35'),_0x196b('0x5a'),_0x196b('0x23')),_0x5e70ed['on'](_0x196b('0x2c'),()=>{this['_manuallyClosedAnnotationViews'][_0x196b('0x29')](),_0x28c859[_0x196b('0x4e')][_0x196b('0x10')]!==_0x3faa90[_0x196b('0x12')]?(this[_0x196b('0x42')](_0x3faa90),_0x3faa90[_0x196b('0x12')]['element'][_0x196b('0x40')](),this[_0x196b('0x1c')](_0x3faa90)):this['setActiveAnnotation'](null);});};for(const _0x50544c of _0x35589b)_0x2e124f(_0x50544c);this[_0x196b('0x59')](_0x35589b,_0x196b('0x1a'),(_0x434f4d,_0x2aeea3)=>{_0x2e124f(_0x2aeea3);}),this[_0x196b('0x59')](_0x35589b,_0x196b('0x27'),(_0x21ee54,_0x44d2f4,_0x33a37f)=>{this[_0x196b('0x62')][_0x196b('0x43')](_0x44d2f4)[_0x196b('0x8')](),this[_0x196b('0x62')][_0x196b('0x9')](_0x44d2f4),_0xeb36a8[_0x196b('0x53')]({'removedAnnotation':_0x44d2f4,'previousAnnotation':_0x35589b[_0x196b('0x43')](_0x33a37f-0x1),'nextAnnotation':_0x35589b['get'](_0x33a37f+0x1)}),_0x44d2f4===this[_0x196b('0x5')]&&this['setActiveAnnotation'](null);},{'priority':_0x196b('0x3')}),this[_0x196b('0x59')](_0x35589b,'focus',(_0xf405ba,_0x5d98b7)=>{this[_0x196b('0x1c')](_0x5d98b7);}),this[_0x196b('0x59')](_0x35589b,_0x196b('0x18'),()=>{this[_0x196b('0x1c')](null);}),this[_0x196b('0x15')][_0x196b('0x59')](document,_0x196b('0x51'),(_0x37a293,_0x48781d)=>{_0x48781d['keyCode']===_0x716ebf[_0x196b('0x25')]&&_0x28c859[_0x196b('0x3b')]&&(this[_0x196b('0x32')]['add'](_0x28c859[_0x196b('0x4e')]['first']),this[_0x196b('0x2e')](),_0x48781d[_0x196b('0x41')](),_0x48781d[_0x196b('0x24')]());}),this[_0x196b('0x15')][_0x196b('0x59')](document,_0x196b('0xd'),(_0x5518e5,_0x2460be)=>{const _0x197a03=_0x2460be['target'];_0x28c859[_0x196b('0x3b')]&&_0x28c859[_0x196b('0x3c')][_0x196b('0x45')](_0x197a03)||_0xeb36a8[_0x196b('0x12')][_0x196b('0x3c')][_0x196b('0x45')](_0x197a03)||_0x5518e5[_0x196b('0x5b')]||this[_0x196b('0x5')]&&this[_0x196b('0x5')][_0x196b('0x3f')][_0x196b('0x4d')](_0x3a2d9a=>_0x3a2d9a[_0x196b('0x45')](_0x197a03))||(this[_0x196b('0x32')]['clear'](),this[_0x196b('0x2e')](),this['setActiveAnnotation'](null));});const _0x47445b=this[_0x196b('0x1')]instanceof _0x3b6256?this[_0x196b('0x1')][_0x196b('0x16')]:new _0x412490([this['context']]);for(const _0x3df9b1 of _0x47445b)this[_0x196b('0x7')](_0x3df9b1);this['listenTo'](_0x47445b,_0x196b('0x1a'),(_0x579436,_0x519ca6)=>{this['listenTo'](_0x519ca6,_0x196b('0x21'),()=>{this[_0x196b('0x7')](_0x519ca6);});}),this[_0x196b('0x59')](_0x47445b,_0x196b('0x27'),(_0x5e958e,_0x3aeb44)=>{_0x3aeb44[_0x196b('0x61')]['has'](_0x196b('0x60'))&&this['_destroyEditorAnnotationsIntegration'](_0x3aeb44[_0x196b('0x61')][_0x196b('0x43')](_0x196b('0x60')));}),window[_0x196b('0x2')](_0x196b('0x38'),this[_0x196b('0x14')]),this['_refreshPositioning']();}['setActiveAnnotation'](_0x46b33f){if(_0x46b33f===this[_0x196b('0x5')])return;const _0x2f025d=this['context']['plugins']['get'](_0x48e11e);if(_0x2f025d[_0x196b('0xc')]({'blurredAnnotation':this[_0x196b('0x5')],'activatedAnnotation':_0x46b33f,'disableAnimationOnActivatedAnnotation':!0x0}),_0x46b33f)_0x2f025d[_0x196b('0x57')](_0x46b33f)?this[_0x196b('0x42')](_0x46b33f):this[_0x196b('0x2e')]();else this[_0x196b('0x2e')]();this[_0x196b('0x5')]=_0x46b33f;}['detach'](){if(!this[_0x196b('0x3d')])throw new _0x1320ef(_0x196b('0x50'),this);this[_0x196b('0x1c')](null);const _0x48123a=this[_0x196b('0x1')][_0x196b('0x61')][_0x196b('0x43')](_0x48e11e);this[_0x196b('0x2e')](),Array[_0x196b('0x44')](this[_0x196b('0x62')]['values'](),_0x1e72c0=>_0x1e72c0['destroy']()),this[_0x196b('0x62')][_0x196b('0x29')](),_0x48123a[_0x196b('0x3a')](this[_0x196b('0x26')]),this[_0x196b('0x4c')](),this[_0x196b('0x15')][_0x196b('0x4c')](),this[_0x196b('0x1')]instanceof _0x3b6256&&this[_0x196b('0x4c')](this[_0x196b('0x1')][_0x196b('0x16')]);for(const _0x17be86 of Array[_0x196b('0x44')](this[_0x196b('0x4b')]))this[_0x196b('0x3e')](_0x17be86);window[_0x196b('0x28')](_0x196b('0x38'),this[_0x196b('0x14')]),this[_0x196b('0x14')]['cancel'](),this[_0x196b('0x30')]=[],this[_0x196b('0x3d')]=!0x1,this['annotations']=null;}[_0x196b('0x8')](){this[_0x196b('0x3d')]&&this[_0x196b('0x63')](),this['bodyCollection'][_0x196b('0x34')]();}[_0x196b('0x7')](_0x3ef313){const _0x443a11=_0x3ef313[_0x196b('0x61')][_0x196b('0x43')](_0x539083),_0x4a7657=this[_0x196b('0x1')][_0x196b('0x61')][_0x196b('0x43')](_0x48e11e),_0x187a40=this[_0x196b('0x26')],_0x1257b4=this[_0x196b('0x1b')],_0x40d6e2=()=>{const _0x514208=_0x443a11[_0x196b('0x5d')]({'annotations':this[_0x196b('0x26')],'activeAnnotation':this[_0x196b('0x5')]});this['_setSelectedAnnotations'](_0x514208),this[_0x196b('0x1c')](_0x514208[0x0]||null);};this[_0x196b('0x59')](_0x443a11,_0x196b('0xc'),_0x40d6e2),this['listenTo'](_0x443a11,_0x196b('0x18'),(_0x45d255,{isAnnotationTracked:_0x4de943})=>{this[_0x196b('0x5')]&&_0x4de943(this[_0x196b('0x5')])&&(this[_0x196b('0x2d')]([]),this[_0x196b('0x1c')](null));}),this['listenTo'](_0x443a11,_0x196b('0x54'),()=>{this[_0x196b('0x14')]();}),this['listenTo'](_0x187a40,'blur',_0x4d70d8=>{_0x443a11[_0x196b('0x13')]()&&_0x4d70d8[_0x196b('0x47')]();},{'priority':_0x196b('0x20')}),this[_0x196b('0x59')](this[_0x196b('0x15')],_0x196b('0xd'),(_0x4baaeb,_0x51b47e)=>{const _0x52959d=_0x51b47e[_0x196b('0x0')];_0x1257b4[_0x196b('0x3b')]&&_0x1257b4[_0x196b('0x3c')][_0x196b('0x45')](_0x52959d)||_0x4a7657[_0x196b('0x12')][_0x196b('0x3c')][_0x196b('0x45')](_0x52959d)||this['activeAnnotation']&&_0x443a11[_0x196b('0x13')]()&&(_0x40d6e2(),_0x4baaeb[_0x196b('0x5b')]=!0x0);},{'priority':_0x196b('0x20')}),this[_0x196b('0x4b')][_0x196b('0x1a')](_0x443a11);}[_0x196b('0x3e')](_0x2af604){_0x2af604&&(this[_0x196b('0x4c')](_0x2af604),this[_0x196b('0x4b')][_0x196b('0x27')](_0x2af604));}['_setSelectedAnnotations'](_0x20c2eb){for(const _0x1e40c9 of this[_0x196b('0x30')])_0x20c2eb[_0x196b('0x17')](_0x1e40c9)||this[_0x196b('0x32')][_0x196b('0x9')](_0x1e40c9[_0x196b('0x12')]);this['_selectedAnnotations']=_0x20c2eb;}[_0x196b('0x6')](){const _0x423d2a=this[_0x196b('0x1b')];this[_0x196b('0x26')]['refreshPositioning'](),_0x423d2a[_0x196b('0x3b')]&&this['_updateBalloonPosition']();}['_showBalloon'](_0xa57099){if(this[_0x196b('0x32')][_0x196b('0xf')](_0xa57099[_0x196b('0x12')]))return;const _0x58ebe1=this[_0x196b('0x1b')][_0x196b('0x4e')][_0x196b('0x10')];_0x58ebe1!==_0xa57099[_0x196b('0x12')]?(_0x58ebe1&&this[_0x196b('0x37')](_0x58ebe1),this['_attachListeners'](_0xa57099[_0x196b('0x12')]),this[_0x196b('0x1b')]['content'][_0x196b('0x29')](),this[_0x196b('0x1b')][_0x196b('0x4e')][_0x196b('0x1a')](_0xa57099['view']),this['_updateBalloonPosition']()):this[_0x196b('0x5f')]();}[_0x196b('0x5f')](){const _0x2aedfe=this[_0x196b('0x1b')][_0x196b('0x4e')][_0x196b('0x10')],_0x5531ac=_0x2aedfe&&this['annotations'][_0x196b('0x19')](_0x2aedfe);if(!_0x5531ac||!this[_0x196b('0x62')][_0x196b('0xf')](_0x5531ac))return;const _0x339050=this[_0x196b('0x62')][_0x196b('0x43')](_0x5531ac)['element'],_0x55e4b1=function(){const _0x4bfc70=_0x429397[_0x196b('0x48')];return[_0x4bfc70['southArrowNorthEast'],_0x4bfc70[_0x196b('0xb')],_0x4bfc70[_0x196b('0x5e')],_0x4bfc70[_0x196b('0x39')],_0x4bfc70[_0x196b('0x1d')],_0x4bfc70['northArrowSouthWest']];}();this['balloonPanelView'][_0x196b('0x52')]({'target':_0x339050,'positions':_0x55e4b1});}[_0x196b('0x2e')](){const _0x1ddc3d=this[_0x196b('0x1b')],_0x2de1e5=_0x1ddc3d[_0x196b('0x4e')][_0x196b('0x10')];_0x2de1e5&&(this[_0x196b('0x37')](_0x2de1e5),_0x1ddc3d[_0x196b('0x1f')](),_0x1ddc3d[_0x196b('0x4e')]['clear']());}[_0x196b('0x1e')](_0x2b94f4){this[_0x196b('0x59')](_0x2b94f4,'change:height',()=>this[_0x196b('0x5f')]()),this['listenTo'](_0x2b94f4,_0x196b('0xe'),(_0x32b15f,_0x56f9a6)=>{this[_0x196b('0x32')][_0x196b('0x1a')](_0x2b94f4),this[_0x196b('0x2e')](),_0x56f9a6();});}['_detachListeners'](_0x20587a){this[_0x196b('0x4c')](_0x20587a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2dea=['_getItemAfter','minHeight','_alignForTopChange','top','_spaceBetweenItems','_recalculate','change:_lastItem','change:top','height','pluginName','getIndex','length','_createSidebarView','_alignForBottomChange','view','_alignBeforeItem','stopListening','_activeAnnotation','push','object','getSidebarItemView','context','_targetTop','add','_annotationToSidebarItemView','appendChild','_getMaxAvailableTop','bottom','updateHeight','change:bottom','_alignAfterItem','target','remove','define','max','targetRect','sidebar-setcontainer-invalid-element','last','get','addAnnotation','_destroySidebarItemView','_sidebarItemViewToAnnotation','container','sidebar.preventScrollOutOfView','_getTargetTop','rearrange','unbind','_lastItem','delete','set','content','_recalculateBuffer','locale','class','clear','destroy','isActive','isAnimationDisabled','_attachToContainer','listenTo','element','Sidebar','_alignToTargetRect','init','refresh','_getItemBefore','render','_updateLastItem','_setItemTop','_annotations','list','config','sidebar-attachtocontainer-missing-container','setContainer'];(function(_0x2290a6,_0x2dea96){const _0x4b6f21=function(_0x59d1dd){while(--_0x59d1dd){_0x2290a6['push'](_0x2290a6['shift']());}};_0x4b6f21(++_0x2dea96);}(_0x2dea,0xf5));const _0x4b6f=function(_0x2290a6,_0x2dea96){_0x2290a6=_0x2290a6-0x0;let _0x4b6f21=_0x2dea[_0x2290a6];return _0x4b6f21;};import{ContextPlugin as _0x403b45}from'ckeditor5/src/core';import{Rect as _0x478338,CKEditorError as _0x14fa0c}from'ckeditor5/src/utils';import _0xcda41c from'./view/sidebarview';import _0x4f4d26 from'./view/sidebaritemview';export default class z extends _0x403b45{static get[_0x4b6f('0x3c')](){return _0x4b6f('0x26');}constructor(_0x3c4ae6){super(_0x3c4ae6),this[_0x4b6f('0x1a')](_0x4b6f('0x18'),void 0x0),this[_0x4b6f('0x41')]=this[_0x4b6f('0x3f')](),this[_0x4b6f('0x1a')](_0x4b6f('0x13'),null),this['_spaceBetweenItems']=0x19,this[_0x4b6f('0x12')]=new Map(),this[_0x4b6f('0x1')]=new Map(),this[_0x4b6f('0x48')][_0x4b6f('0x30')][_0x4b6f('0xa')](_0x4b6f('0x14'),!0x1),this[_0x4b6f('0x2e')]=null,this[_0x4b6f('0x44')]=null,this['_recalculateBuffer']=[];}[_0x4b6f('0x28')](){const _0x35d795=this[_0x4b6f('0x48')]['config']['get']('sidebar.container');_0x35d795&&this[_0x4b6f('0x32')](_0x35d795);}[_0x4b6f('0x32')](_0x264dfe){if(!y(_0x264dfe))throw new _0x14fa0c(_0x4b6f('0xd'));this[_0x4b6f('0x13')]=_0x264dfe;}[_0x4b6f('0x23')]({viewClass:_0x4e6841='',spaceBetweenItems:_0x59e735=0x19}={}){if(!y(this[_0x4b6f('0x13')]))throw new _0x14fa0c(_0x4b6f('0x31'),this);this['container'][_0x4b6f('0x2')](this[_0x4b6f('0x41')][_0x4b6f('0x25')]),this['view'][_0x4b6f('0x1e')]=_0x4e6841,this['_spaceBetweenItems']=_0x59e735;}[_0x4b6f('0x16')]({removedAnnotation:_0x4b349b,previousAnnotation:_0x5cf6ee,nextAnnotation:_0x2b67bf}){const _0x4207d2=this[_0x4b6f('0x47')](_0x4b349b);this[_0x4b6f('0x41')][_0x4b6f('0x2f')][_0x4b6f('0x9')](_0x4207d2),this[_0x4b6f('0x11')](_0x4b349b),_0x5cf6ee&&this[_0x4b6f('0x27')](this[_0x4b6f('0x47')](_0x5cf6ee)),_0x2b67bf&&this[_0x4b6f('0x27')](this[_0x4b6f('0x47')](_0x2b67bf)),this[_0x4b6f('0x2c')]();}[_0x4b6f('0x29')]({blurredAnnotation:_0x439d2b,activatedAnnotation:_0x215b8d,disableAnimationOnActivatedAnnotation:_0x3818a0}){if(this[_0x4b6f('0x44')]=_0x215b8d,_0x439d2b){_0x439d2b[_0x4b6f('0x21')]=!0x1;const _0x402889=this[_0x4b6f('0x47')](_0x439d2b);_0x402889&&_0x3818a0&&(_0x402889[_0x4b6f('0x22')]=!0x1);}if(_0x215b8d){const _0xbe8732=this[_0x4b6f('0x47')](_0x215b8d);_0xbe8732&&(_0x215b8d[_0x4b6f('0x21')]=!0x0,_0x3818a0&&(_0xbe8732['isAnimationDisabled']=!0x0,_0xbe8732['top']+=0x1),this['_alignToTargetRect'](_0xbe8732));}}['_detachFromContainer'](_0x19adf5){if(this[_0x4b6f('0x41')]['element'][_0x4b6f('0x9')](),_0x19adf5)for(const _0x33f735 of _0x19adf5)this[_0x4b6f('0x11')](_0x33f735);this[_0x4b6f('0x41')]['list'][_0x4b6f('0x1f')](),this['view'][_0x4b6f('0x1e')]='',this[_0x4b6f('0x18')]=null;}[_0x4b6f('0x10')](_0x3ef30b,_0x342092){_0x342092||(_0x342092=_0x3ef30b['view']);const _0x565431=new _0x4f4d26(this['context'][_0x4b6f('0x1d')]);this[_0x4b6f('0x12')]['set'](_0x565431,_0x3ef30b),this[_0x4b6f('0x1')][_0x4b6f('0x1a')](_0x3ef30b,_0x565431),_0x565431[_0x4b6f('0x1b')]['add'](_0x342092),this[_0x4b6f('0x24')](_0x3ef30b[_0x4b6f('0x41')],'change:targetRect',(_0x306b50,_0xe2a175,_0x3e5056)=>{const _0x2ddf68=this[_0x4b6f('0x15')](_0x3ef30b,_0x3e5056);_0x565431[_0x4b6f('0x49')]!=_0x2ddf68&&(_0x565431['_targetTop']=_0x2ddf68,this['_setItemTop'](_0x565431,_0x2ddf68));}),this[_0x4b6f('0x24')](_0x565431,_0x4b6f('0x3a'),()=>{this[_0x4b6f('0x38')](_0x565431,'top');}),this[_0x4b6f('0x24')](_0x565431,_0x4b6f('0x6'),()=>{this['_recalculate'](_0x565431,_0x4b6f('0x4'));}),this[_0x4b6f('0x27')](_0x565431);const _0x502cce=this[_0x4b6f('0x2a')](_0x565431);if(_0x502cce)this[_0x4b6f('0x7')](_0x502cce,_0x565431)||this[_0x4b6f('0x27')](_0x565431);else this[_0x4b6f('0x27')](_0x565431);return this[_0x4b6f('0x2c')](),this[_0x4b6f('0x41')]['list'][_0x4b6f('0x0')](_0x565431),_0x565431;}[_0x4b6f('0x35')](_0x4590b3){if(!_0x4590b3[_0x4b6f('0x1b')][_0x4b6f('0x3e')])return;const _0x35e3dc=this[_0x4b6f('0x2a')](_0x4590b3);if(!_0x35e3dc)return;const _0x4c8e5e=this[_0x4b6f('0x12')][_0x4b6f('0xf')](_0x35e3dc),_0x3263ef=this[_0x4b6f('0x44')];_0x3263ef&&_0x3263ef===_0x4c8e5e?this[_0x4b6f('0x7')](_0x35e3dc,_0x4590b3):this[_0x4b6f('0x42')](_0x4590b3,_0x35e3dc);}[_0x4b6f('0x40')](_0x4dbfb0){if(!_0x4dbfb0[_0x4b6f('0x1b')][_0x4b6f('0x3e')])return;const _0x533b16=this[_0x4b6f('0x33')](_0x4dbfb0);if(!_0x533b16)return;const _0x3e8c7b=this[_0x4b6f('0x12')][_0x4b6f('0xf')](_0x533b16),_0x471fa0=this[_0x4b6f('0x48')]['config']['get']('sidebar.preventScrollOutOfView'),_0xca7cb1=this[_0x4b6f('0x44')];_0xca7cb1&&_0xca7cb1===_0x3e8c7b&&_0x471fa0?(this['_alignBeforeItem'](_0x533b16,_0x4dbfb0),this[_0x4b6f('0x7')](_0x4dbfb0,_0x533b16)):_0xca7cb1&&_0xca7cb1===_0x3e8c7b?this['_alignBeforeItem'](_0x533b16,_0x4dbfb0):this['_alignAfterItem'](_0x4dbfb0,_0x533b16);}['_recalculate'](_0x1144f3,_0x1f2b38){0x0===this[_0x4b6f('0x1c')][_0x4b6f('0x3e')]&&setTimeout(()=>{for(const {sidebarItemView:_0x3b7834,changedProp:_0x5635a6}of this[_0x4b6f('0x1c')])_0x4b6f('0x36')===_0x5635a6?this[_0x4b6f('0x35')](_0x3b7834):this[_0x4b6f('0x40')](_0x3b7834);this['_recalculateBuffer']=[];},0xa),this[_0x4b6f('0x1c')][_0x4b6f('0x45')]({'sidebarItemView':_0x1144f3,'changedProp':_0x1f2b38});}['getSidebarItemView'](_0xfd16c3){return this[_0x4b6f('0x1')][_0x4b6f('0xf')](_0xfd16c3);}[_0x4b6f('0x20')](){this[_0x4b6f('0x43')](),this[_0x4b6f('0x41')][_0x4b6f('0x20')]();}['_destroySidebarItemView'](_0x2daff2){const _0x243626=this[_0x4b6f('0x47')](_0x2daff2);this[_0x4b6f('0x43')](_0x243626),this['stopListening'](_0x2daff2['view']),_0x243626[_0x4b6f('0x20')](),this['_annotationToSidebarItemView'][_0x4b6f('0x19')](_0x2daff2),this[_0x4b6f('0x12')][_0x4b6f('0x19')](_0x243626);}['_createSidebarView'](){const _0x23b77c=new _0xcda41c(this[_0x4b6f('0x48')]['locale']);return _0x23b77c[_0x4b6f('0x2b')](),this['on'](_0x4b6f('0x39'),(_0x4e2a0c,_0x3ece92,_0x4b9111,_0x233ec5)=>{_0x233ec5&&_0x23b77c[_0x4b6f('0x17')](_0x4b6f('0x34')),_0x4b9111?_0x23b77c['bind'](_0x4b6f('0x34'))['to'](_0x4b9111,_0x4b6f('0x4')):_0x23b77c['minHeight']=null;}),_0x23b77c;}[_0x4b6f('0x2c')](){var _0x282afa;this[_0x4b6f('0x18')]=(null===(_0x282afa=this['_annotations'])||void 0x0===_0x282afa?void 0x0:_0x282afa['last'])?this[_0x4b6f('0x47')](this[_0x4b6f('0x2e')][_0x4b6f('0xe')]):null;}['_getItemBefore'](_0x49b827){var _0x5aca19;const _0xa6f209=this[_0x4b6f('0x12')][_0x4b6f('0xf')](_0x49b827),_0x33808c=_0xa6f209&&(null===(_0x5aca19=this[_0x4b6f('0x2e')])||void 0x0===_0x5aca19?void 0x0:_0x5aca19[_0x4b6f('0xf')](this['_annotations'][_0x4b6f('0x3d')](_0xa6f209)-0x1));return _0x33808c&&this[_0x4b6f('0x47')](_0x33808c)||null;}[_0x4b6f('0x33')](_0x55ffe8){var _0x4ed98b;const _0x3910c4=this[_0x4b6f('0x12')][_0x4b6f('0xf')](_0x55ffe8),_0x401561=_0x3910c4&&(null===(_0x4ed98b=this[_0x4b6f('0x2e')])||void 0x0===_0x4ed98b?void 0x0:_0x4ed98b['get'](this[_0x4b6f('0x2e')]['getIndex'](_0x3910c4)+0x1));return _0x401561&&this['getSidebarItemView'](_0x401561)||null;}[_0x4b6f('0x42')](_0x168c4a,_0x1d7ba4){_0x168c4a[_0x4b6f('0x5')]();const _0x326977=H(_0x1d7ba4[_0x4b6f('0x4')]+this[_0x4b6f('0x37')],_0x168c4a[_0x4b6f('0x36')]);return!!_0x326977&&(this[_0x4b6f('0x2d')](_0x1d7ba4,_0x1d7ba4[_0x4b6f('0x36')]-_0x326977),!0x0);}[_0x4b6f('0x7')](_0x5e3771,_0xc9aa98){_0x5e3771[_0x4b6f('0x5')]();const _0x42ca82=H(_0x5e3771[_0x4b6f('0x4')]+this['_spaceBetweenItems'],_0xc9aa98[_0x4b6f('0x36')]);return!!_0x42ca82&&(this[_0x4b6f('0x2d')](_0xc9aa98,_0xc9aa98[_0x4b6f('0x36')]+_0x42ca82,!0x1),!0x0);}[_0x4b6f('0x27')](_0x50c0c8){const _0x14687c=this[_0x4b6f('0x12')][_0x4b6f('0xf')](_0x50c0c8);if(!_0x14687c||!_0x14687c['target']||!_0x14687c[_0x4b6f('0xc')])return;const _0x14f974=this[_0x4b6f('0x15')](_0x14687c,_0x14687c[_0x4b6f('0xc')]);this[_0x4b6f('0x2d')](_0x50c0c8,_0x14f974);}['_getTargetTop'](_0x426e3e,_0x5777bb){if(null===_0x5777bb)return 0x0;if(_0x426e3e[_0x4b6f('0x8')]instanceof _0x478338)return _0x5777bb[_0x4b6f('0x36')];{const _0x3df586=new _0x478338(this[_0x4b6f('0x41')][_0x4b6f('0x25')])['top'];return _0x5777bb[_0x4b6f('0x36')]-_0x3df586;}}[_0x4b6f('0x2d')](_0x2353ad,_0x135c97,_0x2dafba=this[_0x4b6f('0x48')][_0x4b6f('0x30')][_0x4b6f('0xf')]('sidebar.preventScrollOutOfView')){_0x2dafba&&(_0x135c97=Math['max'](_0x135c97,this[_0x4b6f('0x3')](_0x2353ad))),_0x2353ad[_0x4b6f('0x36')]=_0x135c97;}[_0x4b6f('0x3')](_0x4c0b50){let _0x225a62=this['_getItemBefore'](_0x4c0b50),_0x2b014f=0x0;for(;_0x225a62;)_0x225a62['updateHeight'](),_0x2b014f+=this[_0x4b6f('0x37')]+_0x225a62[_0x4b6f('0x3b')],_0x225a62=this[_0x4b6f('0x2a')](_0x225a62);return _0x2b014f;}}function H(_0x449219,_0x601d55){return Math[_0x4b6f('0xb')](_0x449219-_0x601d55,0x0);}function y(_0x33f5b6){return null!==_0x33f5b6&&_0x4b6f('0x46')==typeof _0x33f5b6&&0x1===_0x33f5b6['nodeType'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17b1=['ck-annotation-counter__badge','icon','add','...','bindTemplate','annotationType','set','number','span','ck-annotation-counter','counterView','isDirty','children','_badge','extendTemplate','bind','ck-annotation-counter__badge--','toString'];(function(_0x1d5d74,_0x17b1c1){const _0x119642=function(_0x409271){while(--_0x409271){_0x1d5d74['push'](_0x1d5d74['shift']());}};_0x119642(++_0x17b1c1);}(_0x17b1,0xdf));const _0x1196=function(_0x1d5d74,_0x17b1c1){_0x1d5d74=_0x1d5d74-0x0;let _0x119642=_0x17b1[_0x1d5d74];return _0x119642;};import{ButtonView as _0x5b540d,View as _0x28263c}from'ckeditor5/src/ui';import _0x25db7f from'../../../theme/icons/add-comment.svg';export default class D extends _0x5b540d{constructor(_0x494ec1){super(_0x494ec1);const _0x28cb39=this[_0x1196('0xf')];this['set']('isDirty',!0x1),this['set'](_0x1196('0x0'),0x0),this[_0x1196('0x8')](_0x1196('0x6'))['to'](this,_0x1196('0x4'),this,_0x1196('0x0'),(_0x311c5d,_0x397791)=>_0x311c5d?_0x1196('0xe'):_0x397791[_0x1196('0xa')]()),this[_0x1196('0x11')](_0x1196('0x10'),''),this[_0x1196('0xc')]=_0x25db7f,this[_0x1196('0x7')]({'attributes':{'class':[_0x1196('0x2')]}}),this[_0x1196('0x3')]=new _0x28263c(),this[_0x1196('0x3')]['setTemplate']({'tag':_0x1196('0x1'),'attributes':{'class':[_0x1196('0xb'),_0x28cb39['to'](_0x1196('0x10'),_0x2d533c=>_0x1196('0x9')+_0x2d533c),_0x28cb39['if'](_0x1196('0x4'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x28cb39['to'](_0x1196('0x6'))}]}),this[_0x1196('0x5')][_0x1196('0xd')](this[_0x1196('0x3')]);}}
|