@ckeditor/ckeditor5-comments 0.0.0-nightly-20231029.0 → 0.0.0-nightly-20231031.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-20231031.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-20231031.0",
|
|
47
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231031.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 _0x2d03=['element','function','length','item','every','focusableElements','_getNormalizedTarget','getClientRects','offsetParent','render','type','view','object','add','isActive','innerView','isArray','_assertCorrectTarget','stopListening','mainView','set','remove','nodeType','isVisible','_target','focusTracker','_type','filter','target'];(function(_0x15d643,_0x2d0322){const _0x300cba=function(_0x35028e){while(--_0x35028e){_0x15d643['push'](_0x15d643['shift']());}};_0x300cba(++_0x2d0322);}(_0x2d03,0xbf));const _0x300c=function(_0x15d643,_0x2d0322){_0x15d643=_0x15d643-0x0;let _0x300cba=_0x2d03[_0x15d643];return _0x300cba;};import{CKEditorError as _0x1219dd,Rect as _0x2803ee,Collection as _0x36a491,ObservableMixin as _0xe64f68}from'ckeditor5/src/utils';export default class d extends _0xe64f68(){constructor({view:_0x533ea8,target:_0x34579e,type:_0x58de5a,isVisible:_0xedc03d=!0x0}){super(),this['view']=_0x533ea8,this[_0x300c('0x17')][_0x300c('0xc')]||this[_0x300c('0x17')][_0x300c('0x15')](),this[_0x300c('0x9')]=_0x58de5a,this[_0x300c('0x7')]=_0x34579e,d[_0x300c('0x0')](this[_0x300c('0x12')]()),this['focusableElements']=new _0x36a491([this[_0x300c('0x17')][_0x300c('0xc')]],{'idProperty':'_id'}),this[_0x300c('0x11')]['on'](_0x300c('0x19'),(_0xd99711,_0x2c3770)=>{this[_0x300c('0x17')][_0x300c('0x8')]['add'](_0x2c3770);}),this['focusableElements']['on'](_0x300c('0x4'),(_0x52af02,_0x10ad11)=>{this[_0x300c('0x17')][_0x300c('0x8')][_0x300c('0x4')](_0x10ad11);}),this[_0x300c('0x3')]('isVisible',_0xedc03d);}get[_0x300c('0x16')](){return'function'==typeof this['_type']?this[_0x300c('0x9')]():this[_0x300c('0x9')];}get[_0x300c('0x1b')](){return this[_0x300c('0x17')][_0x300c('0x2')];}get[_0x300c('0xb')](){const _0x560e85=this['_getNormalizedTarget']();return d[_0x300c('0x0')](_0x560e85),_0x560e85;}get['targetRect'](){const _0x4175ff=this[_0x300c('0xb')];if(null===_0x4175ff)return null;if(_0x4175ff instanceof _0x2803ee)return _0x4175ff;const _0x3da424=_0x4175ff[_0x300c('0xa')](_0x5c8ac7=>function(_0x10e3ee){const _0x4fbbfd=_0x10e3ee[_0x300c('0x14')];if(_0x4fbbfd)return!0x0;const _0x565e34=_0x10e3ee[_0x300c('0x13')]()[_0x300c('0xf')](0x0);return!!_0x565e34;}(_0x5c8ac7));return 0x0===_0x3da424[_0x300c('0xe')]?null:new _0x2803ee(_0x3da424[0x0][_0x300c('0x13')]()['item'](0x0));}get[_0x300c('0x1a')](){return this[_0x300c('0x17')][_0x300c('0x1a')];}set['isActive'](_0x4a5bda){this[_0x300c('0x17')][_0x300c('0x1a')]=_0x4a5bda,this[_0x300c('0x17')][_0x300c('0x2')][_0x300c('0x1a')]=_0x4a5bda;}['updateTargetRect'](){this[_0x300c('0x17')]['targetRect']=this['targetRect'];}['destroy'](){this[_0x300c('0x11')]['stopListening'](),this['focusableElements']['clear'](),this[_0x300c('0x1')]();}['refreshVisibility'](){this[_0x300c('0x6')]=!!this['targetRect'];}static['_assertCorrectTarget'](_0xa1924b){if(!(null===_0xa1924b||_0xa1924b instanceof _0x2803ee||Array[_0x300c('0x1c')](_0xa1924b)&&_0xa1924b[_0x300c('0x10')](_0x57e685=>y(_0x57e685))))throw new _0x1219dd('annotation-invalid-target',null,{'target':_0xa1924b});}[_0x300c('0x12')](){const _0x3a311d=_0x300c('0xd')==typeof this[_0x300c('0x7')]?this[_0x300c('0x7')]():this[_0x300c('0x7')];return y(_0x3a311d)?[_0x3a311d]:_0x3a311d;}}function y(_0x34016f){return null!==_0x34016f&&_0x300c('0x18')==typeof _0x34016f&&_0x300c('0x5')in _0x34016f&&0x1===_0x34016f[_0x300c('0x5')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c44=['getByInnerView','delete','add','left','_sort','isFocused','view','remove','_innerViewToAnnotation','set','_focusTracker','blur','change:isFocused','clear','_getOrderInContent','targetRect','getByView','updateTargetRect','getIndex','listenTo','has','length','_viewToAnnotation','from','focusableElements','innerView','fire','get','focusTracker','annotationcollection-not-existing-item','destroy','annotationcollection-duplicated-item','refreshPositioning','top','stopListening'];(function(_0x2c4b80,_0x3c4450){const _0x29c6f7=function(_0x3ca016){while(--_0x3ca016){_0x2c4b80['push'](_0x2c4b80['shift']());}};_0x29c6f7(++_0x3c4450);}(_0x3c44,0x11e));const _0x29c6=function(_0x2c4b80,_0x3c4450){_0x2c4b80=_0x2c4b80-0x0;let _0x29c6f7=_0x3c44[_0x2c4b80];return _0x29c6f7;};import{CKEditorError as _0x393bd9,Collection as _0x16726b,FocusTracker as _0x502bac}from'ckeditor5/src/utils';export default class x extends _0x16726b{constructor(_0x503327=[]){super(),this[_0x29c6('0x2')]=new Map(),this[_0x29c6('0x10')]=new Map(),this[_0x29c6('0x4')]=new _0x502bac(),this[_0x29c6('0x4')]['on']('change:isFocused',(_0x171726,_0x28afdc,_0x178f41)=>{_0x178f41||this[_0x29c6('0x14')](_0x29c6('0x5'));});for(const _0x5a6b22 of _0x503327)this[_0x29c6('0x1f')](_0x5a6b22);}get[_0x29c6('0x22')](){return this['_focusTracker'][_0x29c6('0x22')];}['add'](_0x4989c8){if(this[_0x29c6('0xe')](_0x4989c8))throw new _0x393bd9(_0x29c6('0x19'),null);this['_innerViewToAnnotation'][_0x29c6('0x3')](_0x4989c8[_0x29c6('0x13')],_0x4989c8),this[_0x29c6('0x10')][_0x29c6('0x3')](_0x4989c8[_0x29c6('0x0')],_0x4989c8);for(const _0x2b2083 of _0x4989c8['focusableElements'])this[_0x29c6('0x4')][_0x29c6('0x1f')](_0x2b2083);this['listenTo'](_0x4989c8[_0x29c6('0x12')],_0x29c6('0x1f'),(_0x44cafc,_0x3c7122)=>{this[_0x29c6('0x4')][_0x29c6('0x1f')](_0x3c7122);}),this[_0x29c6('0xd')](_0x4989c8[_0x29c6('0x12')],_0x29c6('0x1'),(_0x44966f,_0x5cf695)=>{this[_0x29c6('0x4')][_0x29c6('0x1')](_0x5cf695);}),this['listenTo'](_0x4989c8[_0x29c6('0x0')][_0x29c6('0x16')],_0x29c6('0x6'),(_0x3cccb8,_0x14144a,_0x507a28)=>{_0x507a28&&this['fire']('focus',_0x4989c8);}),_0x4989c8['updateTargetRect']();const _0x1f1265=this[_0x29c6('0x8')](_0x4989c8[_0x29c6('0x0')][_0x29c6('0x9')]);return super[_0x29c6('0x1f')](_0x4989c8,_0x1f1265);}[_0x29c6('0x1')](_0x5396c7){if(!this[_0x29c6('0xe')](_0x5396c7))throw new _0x393bd9(_0x29c6('0x17'),null);this[_0x29c6('0x1c')](_0x5396c7[_0x29c6('0x0')][_0x29c6('0x16')]),this['stopListening'](_0x5396c7[_0x29c6('0x12')]);for(const _0x9eee0d of _0x5396c7[_0x29c6('0x12')])this['_focusTracker'][_0x29c6('0x1')](_0x9eee0d);return this[_0x29c6('0x10')][_0x29c6('0x1e')](_0x5396c7[_0x29c6('0x0')]),this[_0x29c6('0x2')][_0x29c6('0x1e')](_0x5396c7['innerView']),super['remove'](_0x5396c7);}[_0x29c6('0x1d')](_0x570d3f){return this['_innerViewToAnnotation'][_0x29c6('0x15')](_0x570d3f);}[_0x29c6('0xa')](_0x1d35ec){return this['_viewToAnnotation'][_0x29c6('0x15')](_0x1d35ec);}[_0x29c6('0x18')](){super['clear'](),this[_0x29c6('0x1c')](),this[_0x29c6('0x2')]['clear'](),this[_0x29c6('0x10')][_0x29c6('0x7')](),this[_0x29c6('0x4')][_0x29c6('0x18')]();}[_0x29c6('0x1a')](){for(const _0x33db1a of this)_0x33db1a[_0x29c6('0xb')]();this['_sort']();}[_0x29c6('0x21')](){const _0x33d37a=Array[_0x29c6('0x11')](this)['sort']((_0x5b1532,_0x4394ae)=>v(_0x5b1532[_0x29c6('0x0')]['targetRect'],_0x4394ae[_0x29c6('0x0')][_0x29c6('0x9')]));for(let _0x2182c4=_0x33d37a[_0x29c6('0xf')]-0x1;_0x2182c4>0x0;_0x2182c4--){const _0x398887=_0x33d37a[_0x2182c4];_0x2182c4!==this[_0x29c6('0xc')](_0x398887)&&(this[_0x29c6('0x1')](_0x398887),this[_0x29c6('0x1f')](_0x398887));}}[_0x29c6('0x8')](_0x59c465){let _0x4134e3=0x0;if(!_0x59c465)return this['length'];for(const _0x21fdfc of this){const _0x135efa=_0x21fdfc[_0x29c6('0x0')][_0x29c6('0x9')];if(_0x135efa){if(v(_0x59c465,_0x135efa)<0x0)return _0x4134e3;_0x4134e3++;}}return _0x4134e3;}}export function bindAnnotationCollections({source:_0x2c7faf,target:_0x502643,filter:_0x5425b0}){for(const _0x8a930b of _0x2c7faf)_0x5425b0(_0x8a930b)&&_0x502643['add'](_0x8a930b);_0x502643[_0x29c6('0xd')](_0x2c7faf,_0x29c6('0x1f'),(_0x437443,_0x17459f)=>{_0x5425b0(_0x17459f)&&_0x502643[_0x29c6('0x1f')](_0x17459f);}),_0x502643['listenTo'](_0x2c7faf,_0x29c6('0x1'),(_0x1de433,_0x23171a)=>{_0x502643[_0x29c6('0xe')](_0x23171a)&&_0x502643['remove'](_0x23171a);});}function v(_0x12adc5,_0x51fe07){if(null===_0x12adc5&&null===_0x51fe07)return 0x0;if(null===_0x12adc5)return-0x1;if(null===_0x51fe07)return 0x1;const _0x3d6606=_0x12adc5[_0x29c6('0x1b')]-_0x51fe07['top'];return 0x0==_0x3d6606?_0x12adc5[_0x29c6('0x20')]-_0x51fe07['left']:_0x3d6606;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c4e=['deactivateAll','destroy','fire','add','isVisible','createAnnotationView','createAnnotation','getByInnerView','source','view','pluginName','refreshPositioning','activate','_removeActiveAnnotation','refreshVisibility','Annotations','remove','_activateAnnotation','has','focusTracker','_visibleAnnotations','element','_deactivateAllAnnotations','set','listenTo','collection','change:isVisible','_addActiveAnnotation','activeAnnotations','stopListening'];(function(_0x44b916,_0x3c4e6a){const _0x5eca17=function(_0x5ab0b4){while(--_0x5ab0b4){_0x44b916['push'](_0x44b916['shift']());}};_0x5eca17(++_0x3c4e6a);}(_0x3c4e,0x184));const _0x5eca=function(_0x44b916,_0x3c4e6a){_0x44b916=_0x44b916-0x0;let _0x5eca17=_0x3c4e[_0x44b916];return _0x5eca17;};import{ContextPlugin as _0x3d623b}from'ckeditor5/src/core';import _0x44c6e3 from'./annotation';import _0x44439f from'./annotationcollection';import _0x2a25db from'./view/annotationview';export default class b extends _0x3d623b{static get[_0x5eca('0xc')](){return _0x5eca('0x11');}constructor(_0x37369b){super(_0x37369b),this[_0x5eca('0x1b')]=new _0x44439f(),this[_0x5eca('0x16')]=new _0x44439f(),this[_0x5eca('0x19')]('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x5eca('0x5')](_0x51024d){this['collection']['add'](_0x51024d);}[_0x5eca('0x12')](_0x4011b6){this[_0x5eca('0x1b')][_0x5eca('0x12')](_0x4011b6),_0x4011b6[_0x5eca('0x3')]();}['refreshVisibility'](){for(const _0x526b74 of this[_0x5eca('0x1b')])_0x526b74[_0x5eca('0x10')]();}[_0x5eca('0xd')](){this['_visibleAnnotations']['refreshPositioning']();}[_0x5eca('0x9')](_0x410a27){return this[_0x5eca('0x1b')][_0x5eca('0x9')](_0x410a27);}[_0x5eca('0x2')](){this[_0x5eca('0x4')](_0x5eca('0x18'));}[_0x5eca('0x3')](){for(const _0x379563 of this[_0x5eca('0x1b')])_0x379563[_0x5eca('0x3')]();this[_0x5eca('0x16')][_0x5eca('0x3')](),this[_0x5eca('0x1b')][_0x5eca('0x3')](),super['destroy']();}[_0x5eca('0xe')](_0x5e4d15){this[_0x5eca('0x4')](_0x5eca('0x13'),_0x5e4d15);}[_0x5eca('0x8')](_0x275ac4){return new _0x44c6e3(_0x275ac4);}[_0x5eca('0x7')](_0x33404c,_0x38873){return new _0x2a25db(_0x33404c,_0x38873);}[_0x5eca('0x1d')](_0xf2583b){const _0x7ccf50=new Set(this['activeAnnotations']);_0x7ccf50[_0x5eca('0x5')](_0xf2583b),this['activeAnnotations']=_0x7ccf50;}[_0x5eca('0xf')](_0x4b5cc3){const _0x2cdee6=new Set(this[_0x5eca('0x0')]);_0x2cdee6['delete'](_0x4b5cc3),this[_0x5eca('0x0')]=_0x2cdee6;}['_bindAnnotationsToVisibleAnnotations'](){const _0x10dfc7=this[_0x5eca('0x1b')],_0x32727c=this[_0x5eca('0x16')];function _0x3c0991(_0x47208a){const _0x306733=_0x47208a[_0x5eca('0xa')];_0x306733['isVisible']&&!_0x32727c[_0x5eca('0x14')](_0x306733)?_0x32727c['add'](_0x306733):!_0x306733[_0x5eca('0x6')]&&_0x32727c[_0x5eca('0x14')](_0x306733)&&_0x32727c[_0x5eca('0x12')](_0x306733),_0x306733['view'][_0x5eca('0x15')][_0x5eca('0x12')](_0x306733[_0x5eca('0xb')][_0x5eca('0x17')]),_0x306733[_0x5eca('0xb')][_0x5eca('0x15')]['add'](_0x306733[_0x5eca('0xb')]['element']);}this['listenTo'](_0x10dfc7,_0x5eca('0x5'),(_0x46687c,_0x4c3050)=>{_0x4c3050[_0x5eca('0x6')]&&_0x32727c[_0x5eca('0x5')](_0x4c3050),this[_0x5eca('0x1a')](_0x4c3050,_0x5eca('0x1c'),_0x3c0991);}),this[_0x5eca('0x1a')](_0x10dfc7,_0x5eca('0x12'),(_0x38fe2b,_0x46920c)=>{_0x32727c[_0x5eca('0x14')](_0x46920c)&&_0x32727c['remove'](_0x46920c),this[_0x5eca('0x1')](_0x46920c,_0x5eca('0x1c'),_0x3c0991);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f27=['from','annotationsuis-register-invalid-interface','collection','remove','activeUIs','switchTo','filter','_deactivateAllAnnotations','function','deactivate','_visibleAnnotations','annotationsuis-annotation-mismatch','refilterAnnotations','pluginName','context','detach','init','register','listenTo','find','stopListening','_uisData','_removeActiveAnnotation','destroy','delete','setActiveAnnotation','length','annotationsuis-missing-ui','attach','add','plugins','_addActiveAnnotation','_setSelectedAnnotations','_assertAnnotationDoesNotBelongToMultipleUIs','requires','has','change:activeAnnotation','get','_uis','set','type','push','isActive','deactivateAll'];(function(_0x46318d,_0x5f2797){const _0x53cc23=function(_0x472fdc){while(--_0x472fdc){_0x46318d['push'](_0x46318d['shift']());}};_0x53cc23(++_0x5f2797);}(_0x5f27,0x18b));const _0x53cc=function(_0x46318d,_0x5f2797){_0x46318d=_0x46318d-0x0;let _0x53cc23=_0x5f27[_0x46318d];return _0x53cc23;};import{ContextPlugin as _0x16e077}from'ckeditor5/src/core';import{CKEditorError as _0x342195}from'ckeditor5/src/utils';import _0x555fba,{bindAnnotationCollections as _0x1f919d}from'./annotationcollection';import _0xc20c98 from'./annotations';export default class M extends _0x16e077{static get[_0x53cc('0x23')](){return[_0xc20c98];}static get[_0x53cc('0xe')](){return'AnnotationsUIs';}constructor(_0x53d8b7){super(_0x53d8b7),this[_0x53cc('0x5')]=new Set(),this['_uis']=new Map(),this[_0x53cc('0x16')]=new Map();}[_0x53cc('0x11')](){const _0x4fa85c=this[_0x53cc('0xf')][_0x53cc('0x1f')][_0x53cc('0x26')](_0xc20c98);this[_0x53cc('0x13')](_0x4fa85c,'_activateAnnotation',(_0x41e3ee,_0x26d54d)=>{for(const _0x201a88 of this['activeUIs']){const _0x6ce98a=this['_uis'][_0x53cc('0x26')](_0x201a88);(0x0,this[_0x53cc('0x16')]['get'](_0x201a88)['filter'])(_0x26d54d)&&_0x6ce98a['setActiveAnnotation'](_0x26d54d);}}),this[_0x53cc('0x13')](_0x4fa85c,_0x53cc('0x8'),()=>{for(const _0x3b8614 of this[_0x53cc('0x5')]){this[_0x53cc('0x27')]['get'](_0x3b8614)[_0x53cc('0x1a')](null);}}),this[_0x53cc('0x13')](_0x4fa85c[_0x53cc('0xb')],'add',(_0x375cca,_0x5c6ce7)=>{this[_0x53cc('0x22')](_0x5c6ce7);});}['hasActive'](){return this[_0x53cc('0x5')]['size']>0x0;}[_0x53cc('0x2b')](_0x42e700){return this[_0x53cc('0x5')][_0x53cc('0x24')](_0x42e700);}['activate'](_0x11e5d2,_0x4750f0=()=>!0x0){const _0x100c96=this[_0x53cc('0xf')]['plugins'][_0x53cc('0x26')](_0xc20c98);if(!this[_0x53cc('0x27')]['has'](_0x11e5d2))throw new _0x342195('annotationsuis-missing-ui',this,{'uiName':_0x11e5d2});this[_0x53cc('0x2b')](_0x11e5d2)&&this[_0x53cc('0xa')](_0x11e5d2),this['activeUIs'][_0x53cc('0x1e')](_0x11e5d2);const _0x42f549=new _0x555fba(),_0x2e4712=_0x100c96['_visibleAnnotations'];_0x1f919d({'source':_0x2e4712,'target':_0x42f549,'filter':_0x4750f0}),this[_0x53cc('0x16')][_0x53cc('0x28')](_0x11e5d2,{'collection':_0x42f549,'filter':_0x4750f0});const _0x51e62b=this[_0x53cc('0x27')][_0x53cc('0x26')](_0x11e5d2);_0x51e62b[_0x53cc('0x1d')](_0x42f549),this[_0x53cc('0x13')](_0x51e62b,_0x53cc('0x25'),(_0x50e769,_0x3656a4,_0x37a79a,_0x14660a)=>{_0x14660a&&_0x100c96[_0x53cc('0x17')](_0x14660a),_0x37a79a&&_0x100c96[_0x53cc('0x20')](_0x37a79a);});}['deactivate'](_0x8774be){if(this['activeUIs'][_0x53cc('0x19')](_0x8774be),!this['_uis']['has'](_0x8774be))throw new _0x342195('annotationsuis-missing-ui',this,{'uiName':_0x8774be});const _0x555b36=this[_0x53cc('0x27')]['get'](_0x8774be);_0x555b36[_0x53cc('0x10')](),this[_0x53cc('0x15')](_0x555b36),this['_uisData'][_0x53cc('0x26')](_0x8774be)[_0x53cc('0x3')][_0x53cc('0x18')](),this[_0x53cc('0x16')]['delete'](_0x8774be);}[_0x53cc('0x6')](_0x291966){if(!this[_0x53cc('0x27')]['has'](_0x291966))throw new _0x342195(_0x53cc('0x1c'),this,{'uiName':_0x291966});const _0x2c06e3=this['context'][_0x53cc('0x1f')][_0x53cc('0x26')](_0xc20c98),_0x50969f=Array[_0x53cc('0x1')](_0x2c06e3['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x291966);const _0x19b2fc=this[_0x53cc('0x27')][_0x53cc('0x26')](_0x291966);_0x19b2fc[_0x53cc('0x1a')](_0x50969f),_0x19b2fc[_0x53cc('0x21')]&&_0x50969f&&_0x19b2fc['_setSelectedAnnotations']([_0x50969f]);}[_0x53cc('0x0')](){for(const _0x442ab6 of this['activeUIs'])this[_0x53cc('0xa')](_0x442ab6);}[_0x53cc('0x12')](_0xed7d99,_0x44e50e){if(this[_0x53cc('0x27')][_0x53cc('0x24')](_0xed7d99))throw new _0x342195('annotationsuis-register-already-registered');if(_0x53cc('0x9')!=typeof _0x44e50e['attach']||_0x53cc('0x9')!=typeof _0x44e50e[_0x53cc('0x10')]||_0x53cc('0x9')!=typeof _0x44e50e[_0x53cc('0x1a')])throw new _0x342195(_0x53cc('0x2'),null);this[_0x53cc('0x27')]['set'](_0xed7d99,_0x44e50e);}[_0x53cc('0xd')](){const _0x456572=this[_0x53cc('0xf')][_0x53cc('0x1f')][_0x53cc('0x26')](_0xc20c98)[_0x53cc('0x3')],_0x37dc1f=new Map(),_0x4b8a7c=Array[_0x53cc('0x1')](this[_0x53cc('0x5')]);for(const _0x2d9411 of this[_0x53cc('0x5')]){const _0x2e04cf=this[_0x53cc('0x16')][_0x53cc('0x26')](_0x2d9411)[_0x53cc('0x3')];for(const _0x4266ae of _0x2e04cf)_0x37dc1f[_0x53cc('0x28')](_0x4266ae,_0x2d9411);}for(const _0xaa58c4 of _0x456572){const _0x12736d=_0x37dc1f[_0x53cc('0x26')](_0xaa58c4);this[_0x53cc('0x22')](_0xaa58c4);const _0x1ddb6f=_0x4b8a7c[_0x53cc('0x14')](_0xdfba67=>this[_0x53cc('0x16')]['get'](_0xdfba67)[_0x53cc('0x7')](_0xaa58c4));_0x12736d!==_0x1ddb6f&&(_0x12736d&&this[_0x53cc('0x16')][_0x53cc('0x26')](_0x12736d)[_0x53cc('0x3')][_0x53cc('0x4')](_0xaa58c4),_0x1ddb6f&&this['_uisData'][_0x53cc('0x26')](_0x1ddb6f)['collection'][_0x53cc('0x1e')](_0xaa58c4));}}[_0x53cc('0x18')](){this['deactivateAll'](),super[_0x53cc('0x18')]();}[_0x53cc('0x22')](_0x2bd5b1){const _0x1f4e72=[];for(const _0x57a0a9 of this[_0x53cc('0x5')]){(0x0,this['_uisData'][_0x53cc('0x26')](_0x57a0a9)['filter'])(_0x2bd5b1)&&_0x1f4e72[_0x53cc('0x2a')](_0x57a0a9);}if(_0x1f4e72[_0x53cc('0x1b')]>0x1)throw new _0x342195(_0x53cc('0xc'),null,{'matchedUIs':_0x1f4e72,'annotationType':_0x2bd5b1[_0x53cc('0x29')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a86=['cancel','getRanges','EditorAnnotations','refreshSelectedViews','_dataCollectors','directChange','pluginName','sort','from','editing','containsRange','blur','change:isFocused','requires','map','focusTracker','view','addSourceCollector','isEqual','model','change:range','add','element','uiUpdate','annotation','fire','selection','_editorAnnotations','has','editorannotations-invalid-source-callback','registerAnnotation','_editorAnnotationsData','push','isCollapsed','range','editor','listenTo','init','collection','plugins','refresh','remove','getOrderedSelectedAnnotations','isReadOnly','document'];(function(_0x174fed,_0x2a86ec){const _0x78c997=function(_0x35acf9){while(--_0x35acf9){_0x174fed['push'](_0x174fed['shift']());}};_0x78c997(++_0x2a86ec);}(_0x2a86,0xc5));const _0x78c9=function(_0x174fed,_0x2a86ec){_0x174fed=_0x174fed-0x0;let _0x78c997=_0x2a86[_0x174fed];return _0x78c997;};import{Plugin as _0x79333b}from'ckeditor5/src/core';import{CKEditorError as _0x19ecd4}from'ckeditor5/src/utils';import{debounce as _0x20db35}from'lodash-es';import _0x3c0978 from'./annotations';export default class k extends _0x79333b{static get[_0x78c9('0x29')](){return[_0x3c0978];}static get[_0x78c9('0x22')](){return _0x78c9('0x1e');}constructor(_0xa0452){super(_0xa0452),this[_0x78c9('0x20')]=new Set(),this[_0x78c9('0xa')]=new Set();}[_0x78c9('0x14')](){const _0x388ece=this[_0x78c9('0x12')],_0x4ebb23=_0x388ece[_0x78c9('0x2')]['document'][_0x78c9('0x9')],_0x466196=_0x20db35(()=>this[_0x78c9('0x1f')](),0xa);_0x4ebb23['on'](_0x78c9('0x3'),(_0x466d1e,_0x5b6187)=>{_0x5b6187[_0x78c9('0x21')]&&(_0x466196[_0x78c9('0x1c')](),this['refreshSelectedViews']());}),this[_0x78c9('0x13')](_0x388ece[_0x78c9('0x25')][_0x78c9('0x2c')]['document'],_0x78c9('0x28'),(_0x4485de,_0x2c34b7,_0x3a6571)=>{_0x3a6571&&_0x466196();}),this[_0x78c9('0x13')](_0x388ece['ui'][_0x78c9('0x2b')],_0x78c9('0x28'),(_0x40bc25,_0x2c9ddc,_0xeb4a36)=>{_0xeb4a36||_0x388ece[_0x78c9('0x1a')]||this[_0x78c9('0x8')](_0x78c9('0x27'),{'isAnnotationTracked':_0x3cf80d=>this['_editorAnnotationsData'][_0x78c9('0xb')](_0x3cf80d['innerView'])});}),this['listenTo'](this[_0x78c9('0x12')]['ui'],'update',()=>this[_0x78c9('0x8')](_0x78c9('0x6')));}[_0x78c9('0xd')](_0x193116){if(this[_0x78c9('0xa')][_0x78c9('0xb')](_0x193116[_0x78c9('0x2c')]))return;this[_0x78c9('0xa')][_0x78c9('0x4')](_0x193116['view']),this[_0x78c9('0x12')]['ui'][_0x78c9('0x2b')][_0x78c9('0x4')](_0x193116[_0x78c9('0x2c')][_0x78c9('0x5')]);const _0x1e18f0=this['editor'][_0x78c9('0x16')]['get'](_0x3c0978);this[_0x78c9('0x13')](_0x1e18f0[_0x78c9('0x15')],_0x78c9('0x18'),(_0x9c79c2,_0x4fc0b5)=>{this[_0x78c9('0x12')]['ui']['focusTracker'][_0x78c9('0x18')](_0x4fc0b5['view'][_0x78c9('0x5')]),this[_0x78c9('0xa')]['delete'](_0x4fc0b5[_0x78c9('0x2c')]);});}['hasDomSelection'](){return this[_0x78c9('0x12')][_0x78c9('0x25')][_0x78c9('0x2c')]['hasDomSelection'];}[_0x78c9('0x0')](_0x2f4bef){if('function'!=typeof _0x2f4bef)throw new _0x19ecd4(_0x78c9('0xc'));this['_dataCollectors']['add'](_0x2f4bef);}[_0x78c9('0x1f')](){this[_0x78c9('0x8')](_0x78c9('0x17'));}[_0x78c9('0x19')]({activeAnnotation:_0x26552,annotations:_0x4c0558}){const _0x3a7187=[],_0x37fdc4=this[_0x78c9('0x12')][_0x78c9('0x2')][_0x78c9('0x1b')][_0x78c9('0x9')],_0x37a663=Array[_0x78c9('0x24')](_0x37fdc4[_0x78c9('0x1d')]());for(const [_0x526aac,_0x3b3319]of this[_0x78c9('0xe')]){const _0x3e0940=_0x39379a(_0x3b3319),_0xdfbe3b=_0x4c0558['getByInnerView'](_0x526aac);_0x3e0940&&_0xdfbe3b&&_0x3a7187[_0x78c9('0xf')]({'annotation':_0xdfbe3b,'range':_0x3e0940});}function _0x39379a(_0x241f1e){for(const _0x586170 of _0x241f1e)for(const _0x3c8a99 of _0x37a663)if(_0x586170[_0x78c9('0x26')](_0x3c8a99,!_0x37fdc4[_0x78c9('0x10')]))return _0x586170;return null;}return _0x3a7187[_0x78c9('0x23')]((_0x506ae9,_0x5a7d85)=>{const _0x7ff0be=_0x506ae9['range'],_0x1c8485=_0x5a7d85[_0x78c9('0x11')];if(!_0x7ff0be[_0x78c9('0x1')](_0x1c8485)){if(_0x7ff0be['containsRange'](_0x1c8485,!0x0))return 0x1;if(_0x1c8485[_0x78c9('0x26')](_0x7ff0be,!0x0))return-0x1;}return _0x506ae9[_0x78c9('0x7')]==_0x26552?-0x1:_0x5a7d85[_0x78c9('0x7')]==_0x26552?0x1:0x0;})[_0x78c9('0x2a')](_0x48a725=>_0x48a725[_0x78c9('0x7')]);}get[_0x78c9('0xe')](){const _0x1ca528=new Map();for(const _0x9e5a2e of Array['from'](this['_dataCollectors']))for(const [_0xa16aa0,_0x1a5f33]of _0x9e5a2e())_0x1ca528['set'](_0xa16aa0,_0x1a5f33);return _0x1ca528;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b4b=['switchTo','targetRect','set','selection','register','document','getFirstRange','inlineannotations-detach-not-attached','afterInit','_addedAnnotations','inline','updatePosition','hasView','change:height','_forceRefresh','Esc','addObserver','add','stopListening','editableElement','_closeAnnotation','inlineannotations-attach-already-attached','editor','inlineannotations-not-allowed-with-context','_getBalloonTargetForAnnotation','mousedown','remove','InlineAnnotations','has','getByView','viewRangeToDom','get','change:visibleView','editing','collapse','destroy','isFocused','context','push','detach','_removeAnnotationFromBalloon','setActiveAnnotation','requires','_manuallyClosed','keystrokes','length','_selectedAnnotations','getBoundingClientRect','isActive','width','left','plugins','_balloon','target','view','focusTracker','visibleView','blur','change:isFocused','every','isAttached','clear','right','getOrderedSelectedAnnotations','annotations','focus','includes','find','map','delete','_setSelectedAnnotations','bottom','activeAnnotation','refresh','top','listenTo'];(function(_0x5f2fb0,_0x5b4bcd){const _0x10b20e=function(_0x197108){while(--_0x197108){_0x5f2fb0['push'](_0x5f2fb0['shift']());}};_0x10b20e(++_0x5b4bcd);}(_0x5b4b,0x1f4));const _0x10b2=function(_0x5f2fb0,_0x5b4bcd){_0x5f2fb0=_0x5f2fb0-0x0;let _0x10b20e=_0x5b4b[_0x5f2fb0];return _0x10b20e;};import{Plugin as _0x280d0e}from'ckeditor5/src/core';import _0x5f416d from'./annotationsuis';import _0x5bee24 from'./editorannotations';import{ContextualBalloon as _0xac3af}from'ckeditor5/src/ui';import{MouseObserver as _0x398be9}from'ckeditor5/src/engine';import{CKEditorError as _0x5aa2bd,Rect as _0x4db65b}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x280d0e{static get[_0x10b2('0x4a')](){return[_0x5bee24,_0xac3af,_0x5f416d];}static get['pluginName'](){return _0x10b2('0x3b');}constructor(_0x5cad39){super(_0x5cad39),_0x5cad39[_0x10b2('0x41')][_0x10b2('0xa')][_0x10b2('0x30')](_0x398be9),this[_0x10b2('0x10')]=!0x1,this[_0x10b2('0x22')]('activeAnnotation',null),this[_0x10b2('0x14')]=null,this['_manuallyClosed']=new Set(),this[_0x10b2('0x8')]=_0x5cad39[_0x10b2('0x7')][_0x10b2('0x3f')](_0xac3af),this[_0x10b2('0x29')]=new Set(),this[_0x10b2('0x2')]=[],this[_0x10b2('0x2e')]=!0x1;}['init'](){const _0x47580e=this[_0x10b2('0x36')][_0x10b2('0x7')][_0x10b2('0x3f')](_0x5f416d);_0x47580e[_0x10b2('0x45')]===this[_0x10b2('0x36')]&&(_0x47580e[_0x10b2('0x24')](_0x10b2('0x2a'),this),this[_0x10b2('0x36')][_0x10b2('0x0')][_0x10b2('0x22')](_0x10b2('0x2f'),(_0x4abf08,_0x3e60dd)=>{const _0x2605c4=this[_0x10b2('0x8')];if(this[_0x10b2('0x10')]&&_0x2605c4[_0x10b2('0xc')]){const _0x53159e=this[_0x10b2('0x14')][_0x10b2('0x3d')](_0x2605c4[_0x10b2('0xc')]);_0x53159e&&this[_0x10b2('0x34')](_0x53159e),_0x3e60dd();}}));}[_0x10b2('0x28')](){const _0x4f7d4a=this['editor'][_0x10b2('0x7')][_0x10b2('0x3f')](_0x5f416d);_0x4f7d4a[_0x10b2('0x45')]===this[_0x10b2('0x36')]&&(_0x4f7d4a['hasActive']()||_0x4f7d4a[_0x10b2('0x20')](_0x10b2('0x2a')));}[_0x10b2('0x49')](_0x5cac79){_0x5cac79!==this[_0x10b2('0x1c')]&&(this[_0x10b2('0x1c')]&&(this['activeAnnotation'][_0x10b2('0x4')]=!0x1),_0x5cac79&&this[_0x10b2('0x36')]['ui'][_0x10b2('0xb')][_0x10b2('0x44')]&&(this[_0x10b2('0x14')][_0x10b2('0x3c')](_0x5cac79)&&this['_addAnnotationToBalloon'](_0x5cac79,!0x0),_0x5cac79[_0x10b2('0x4')]=!0x0),_0x5cac79||this[_0x10b2('0x1a')]([]),this[_0x10b2('0x1c')]=_0x5cac79);}['attach'](_0xb0b0b1){this[_0x10b2('0x14')]=_0xb0b0b1;const _0x405b0d=this['editor'][_0x10b2('0x7')][_0x10b2('0x3f')](_0x5f416d),_0x28a935=this[_0x10b2('0x8')];if(this['isAttached'])throw new _0x5aa2bd(_0x10b2('0x35'),this);if(_0x405b0d[_0x10b2('0x45')]!==this[_0x10b2('0x36')])throw new _0x5aa2bd(_0x10b2('0x37'),this);const _0x2a5823=this[_0x10b2('0x36')][_0x10b2('0x7')][_0x10b2('0x3f')](_0x5bee24);this['listenTo'](_0x2a5823,_0x10b2('0x1d'),()=>{const _0x152170=_0x2a5823[_0x10b2('0x13')]({'annotations':this[_0x10b2('0x14')],'activeAnnotation':this[_0x10b2('0x1c')]});var _0x230896,_0x5c854f;!this['_forceRefresh']&&(_0x230896=_0x152170,_0x5c854f=this['_selectedAnnotations'],_0x230896[_0x10b2('0x1')]===_0x5c854f[_0x10b2('0x1')]&&_0x230896[_0x10b2('0xf')](_0x1ba95b=>_0x5c854f[_0x10b2('0x16')](_0x1ba95b)))||(this[_0x10b2('0x2e')]=!0x1,this[_0x10b2('0x1a')](_0x152170),this[_0x10b2('0x49')](_0x152170[0x0]||null));}),this[_0x10b2('0x1f')](_0x2a5823,_0x10b2('0xd'),(_0x203f22,{isAnnotationTracked:_0x4dba97})=>{this[_0x10b2('0x1c')]&&_0x4dba97(this[_0x10b2('0x1c')])&&(this[_0x10b2('0x1a')]([]),this[_0x10b2('0x49')](null));}),this[_0x10b2('0x1f')](this['editor']['ui'][_0x10b2('0xb')],_0x10b2('0xe'),(_0x16e63a,_0x2beb9b,_0x38016d)=>{_0x38016d||this[_0x10b2('0x49')](null);}),this[_0x10b2('0x1f')](_0xb0b0b1,_0x10b2('0x3a'),(_0x4f317c,_0x220c0d)=>{this[_0x10b2('0x48')](_0x220c0d),_0x220c0d===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this[_0x10b2('0x1f')](_0x28a935,_0x10b2('0x40'),(_0x50e7b5,_0x27842b,_0x22a42a,_0x5d27e5)=>{_0x5d27e5&&this[_0x10b2('0x32')](_0x5d27e5);const _0xfae5fd=_0xb0b0b1[_0x10b2('0x3d')](_0x22a42a);_0x22a42a&&_0xfae5fd&&(this['listenTo'](_0x22a42a,_0x10b2('0x2d'),()=>{_0x28a935[_0x10b2('0x2b')]();}),this['listenTo'](_0x22a42a,'Esc',()=>{this[_0x10b2('0x34')](_0xfae5fd),this[_0x10b2('0x36')][_0x10b2('0x41')][_0x10b2('0xa')][_0x10b2('0x15')]();}),this[_0x10b2('0x1c')]!==_0xfae5fd&&this[_0x10b2('0x49')](_0xfae5fd));}),this[_0x10b2('0x1f')](this[_0x10b2('0x36')]['ui'],'update',()=>{_0x28a935[_0x10b2('0xc')]&&(_0xb0b0b1[_0x10b2('0x3d')](_0x28a935['visibleView'])&&_0x28a935[_0x10b2('0x2b')]());}),this['listenTo'](this[_0x10b2('0x36')][_0x10b2('0x41')]['view'][_0x10b2('0x25')],_0x10b2('0x39'),()=>{this[_0x10b2('0x2e')]=!0x0,this['_manuallyClosed'][_0x10b2('0x11')]();}),this[_0x10b2('0x36')][_0x10b2('0x41')]['view'][_0x10b2('0x25')][_0x10b2('0x23')][_0x10b2('0x33')]&&this[_0x10b2('0x36')][_0x10b2('0x41')][_0x10b2('0xa')][_0x10b2('0x15')](),this[_0x10b2('0x10')]=!0x0;}[_0x10b2('0x47')](){if(!this[_0x10b2('0x10')])throw new _0x5aa2bd(_0x10b2('0x27'),this);this[_0x10b2('0x49')](null);for(const _0x464a46 of this[_0x10b2('0x29')])this[_0x10b2('0x48')](_0x464a46);this[_0x10b2('0x32')](),this[_0x10b2('0x10')]=!0x1,this['annotations']=null;}[_0x10b2('0x43')](){this['isAttached']&&this[_0x10b2('0x47')]();}[_0x10b2('0x1a')](_0x4413f1){for(const _0x54a55c of this[_0x10b2('0x2')])_0x4413f1[_0x10b2('0x16')](_0x54a55c)||this['_manuallyClosed'][_0x10b2('0x19')](_0x54a55c);for(const _0x1dc01f of this[_0x10b2('0x14')])_0x4413f1[_0x10b2('0x16')](_0x1dc01f)||this[_0x10b2('0x48')](_0x1dc01f);if(this['editor']['ui'][_0x10b2('0xb')][_0x10b2('0x44')])for(const _0x2cb006 of _0x4413f1)this['_addAnnotationToBalloon'](_0x2cb006);this[_0x10b2('0x2')]=_0x4413f1;}['_addAnnotationToBalloon'](_0x452cda,_0x542e3c=!0x1){this['_manuallyClosed'][_0x10b2('0x3c')](_0x452cda)||(this['_addedAnnotations'][_0x10b2('0x3c')](_0x452cda)||this['_balloon'][_0x10b2('0x2c')](_0x452cda['view'])||(this[_0x10b2('0x29')][_0x10b2('0x31')](_0x452cda),this['_balloon'][_0x10b2('0x31')]({'stackId':_0x452cda[_0x10b2('0xa')]['id'],'view':_0x452cda['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x452cda)}})),_0x542e3c&&this[_0x10b2('0x8')]['showStack'](_0x452cda['view']['id']));}[_0x10b2('0x38')](_0x41ec54){const _0x3c6283=_0x41ec54[_0x10b2('0x9')],_0x2e4c7f=this['editor']['editing']['view'],_0x3d5b35=_0x2e4c7f[_0x10b2('0x25')][_0x10b2('0x23')][_0x10b2('0x26')](),_0xbed79c=_0x2e4c7f['domConverter'][_0x10b2('0x3e')](_0x3d5b35);if(_0xbed79c[_0x10b2('0x42')](!0x0),_0x3c6283){if(_0x3c6283 instanceof _0x4db65b)return _0x3c6283;let _0x3e8089=[];for(const _0x1528e2 of _0x3c6283)_0x3e8089[_0x10b2('0x46')](...(_0x252c59=_0x1528e2['getClientRects'](),Array['from'](_0x252c59)[_0x10b2('0x18')](DOMRect['fromRect'])));_0x3e8089=function(_0x590a69){const _0x346148=[];let _0xc4054f=_0x590a69[0x0];for(let _0x332663=0x1;_0x332663<_0x590a69['length'];_0x332663++)F(_0xc4054f,_0x590a69[_0x332663])?_0xc4054f[_0x10b2('0x5')]+=_0x590a69[_0x332663][_0x10b2('0x5')]:(_0x346148[_0x10b2('0x46')](_0xc4054f),_0xc4054f=_0x590a69[_0x332663]);return _0x346148['push'](_0xc4054f),_0x346148;}(_0x3e8089);const _0x59a3e4=_0xbed79c[_0x10b2('0x3')]();return _0x3e8089[_0x10b2('0x17')](_0x1cee00=>_0x1cee00[_0x10b2('0x1e')]<=_0x59a3e4[_0x10b2('0x1e')]&&_0x1cee00[_0x10b2('0x1b')]>=_0x59a3e4[_0x10b2('0x1b')]&&_0x1cee00[_0x10b2('0x6')]<=_0x59a3e4['left']&&_0x1cee00[_0x10b2('0x12')]>=_0x59a3e4[_0x10b2('0x12')])||_0x3e8089[0x0];}var _0x252c59;return _0x41ec54[_0x10b2('0x21')]||_0xbed79c;}[_0x10b2('0x48')](_0x3a0120){this['_addedAnnotations']['has'](_0x3a0120)&&this[_0x10b2('0x8')]['hasView'](_0x3a0120[_0x10b2('0xa')])&&(this[_0x10b2('0x29')][_0x10b2('0x19')](_0x3a0120),this['_balloon'][_0x10b2('0x3a')](_0x3a0120[_0x10b2('0xa')]));}[_0x10b2('0x34')](_0x953698){this[_0x10b2('0x4b')][_0x10b2('0x31')](_0x953698),this[_0x10b2('0x48')](_0x953698);}}function F(_0x31fcbd,_0x8dc93b){return _0x31fcbd[_0x10b2('0x1e')]===_0x8dc93b[_0x10b2('0x1e')]&&_0x31fcbd['bottom']===_0x8dc93b[_0x10b2('0x1b')]&&_0x31fcbd['right']===_0x8dc93b[_0x10b2('0x6')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x30db=['mousedown','content','_showBalloon','remove','uiUpdate','attachToDom','destroy','from','defaultPositions','_refreshPositioning','southArrowNorthEast','ready','isVisible','find','set:container','execute','_refreshPositioningDebounced','balloonPanelView','bind','NarrowSidebar','_editorAnnotations','context','register','_destroyEditorAnnotationsIntegration','off','addAnnotation','_updateBalloonPosition','pluginName','_hideBalloon','_setSelectedAnnotations','resize','_attachListeners','northArrowSouthWest','includes','has','unpin','stopPropagation','_detachListeners','setActiveAnnotation','esc','preventClosingBalloon','activeAnnotation','blur','length','change:height','first','EditorAnnotations','requires','pin','bodyCollection','add','type','getSidebarItemView','element','stopListening','low','_manuallyClosedAnnotationViews','plugins','target','hasDomSelection','get','northArrowSouthEast','focusableElements','refresh','locale','clear','_domEmitter','stop','_detachFromContainer','_selectedAnnotations','preventDefault','detach','values','editors','annotations','narrowsidebar-detach-not-attached','view','detachFromDom','keydown','_integrateWithEditorAnnotations','focus','delete','rearrange','cancel','attach','_annotationToNarrowView','_annotations','getOrderedSelectedAnnotations','addEventListener','annotationType','change:container','isAttached','isDirty','number','_attachToContainer','contains','create','listenTo','set','high','removeEventListener','northArrowSouth'];(function(_0x445d4a,_0x30db98){const _0x1f0144=function(_0x52df9e){while(--_0x52df9e){_0x445d4a['push'](_0x445d4a['shift']());}};_0x1f0144(++_0x30db98);}(_0x30db,0x183));const _0x1f01=function(_0x445d4a,_0x30db98){_0x445d4a=_0x445d4a-0x0;let _0x1f0144=_0x30db[_0x445d4a];return _0x1f0144;};import{ContextPlugin as _0x513acb,Context as _0x240c54}from'ckeditor5/src/core';import _0x1b42a3 from'./annotationsuis';import _0x3cc104 from'./sidebar';import _0x4259e3 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x39383a,BodyCollection as _0x1f0228}from'ckeditor5/src/ui';import{CKEditorError as _0x981081,DomEmitterMixin as _0x4e583d,keyCodes as _0x4dd325,Collection as _0x2af6c9}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x4ea0c9}from'lodash-es';import _0x436930 from'./editorannotations';export default class s extends _0x513acb{static get[_0x1f01('0x44')](){return[_0x3cc104,_0x1b42a3];}static get[_0x1f01('0x30')](){return _0x1f01('0x28');}constructor(_0x572a9e){super(_0x572a9e),this['isAttached']=!0x1,this[_0x1f01('0x4d')]=new Set(),this[_0x1f01('0x57')]=Object[_0x1f01('0xf')](_0x4e583d),this['_annotationToNarrowView']=new Map(),this[_0x1f01('0x11')]('activeAnnotation',null),this[_0x1f01('0x5f')]=null,this[_0x1f01('0x5a')]=[],this[_0x1f01('0x29')]=new _0x2af6c9(),this[_0x1f01('0x25')]=_0x4ea0c9(()=>{this[_0x1f01('0x1e')]();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins'][_0x1f01('0x51')](_0x1b42a3)[_0x1f01('0x2b')]('narrowSidebar',this),this['bodyCollection']=new _0x1f0228(this['context'][_0x1f01('0x55')]),this['balloonPanelView']=new _0x39383a(this[_0x1f01('0x2a')]['locale']),this[_0x1f01('0x46')][_0x1f01('0x1a')](),this['bodyCollection'][_0x1f01('0x47')](this[_0x1f01('0x26')]);}[_0x1f01('0x3')](_0x3541fc){this[_0x1f01('0x5f')]=_0x3541fc;const _0x23ef38=this[_0x1f01('0x2a')][_0x1f01('0x4e')][_0x1f01('0x51')](_0x3cc104),_0x47f997=this['balloonPanelView'];if(_0x23ef38[_0x1f01('0x5')]=_0x3541fc,this[_0x1f01('0xa')])throw new _0x981081('narrowsidebar-attach-already-attached',this);this[_0x1f01('0xa')]=!0x0,this[_0x1f01('0x10')](_0x23ef38,_0x1f01('0x23'),()=>{this[_0x1f01('0x5c')](),this[_0x1f01('0x10')](_0x23ef38,_0x1f01('0x9'),_0x2d956e=>{_0x2d956e[_0x1f01('0x2d')](),this[_0x1f01('0x3')](_0x3541fc);});}),_0x23ef38[_0x1f01('0xd')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x17bfe8=_0x1eab12=>{const _0x2f8447=new _0x4259e3(this[_0x1f01('0x2a')][_0x1f01('0x55')]);_0x23ef38[_0x1f01('0x2e')](_0x1eab12,_0x2f8447),this[_0x1f01('0x4')]['set'](_0x1eab12,_0x2f8447),_0x2f8447[_0x1f01('0x27')](_0x1f01('0xb'),_0x1f01('0x8'),_0x1f01('0xc'))['to'](_0x1eab12[_0x1f01('0x61')],_0x1f01('0xb'),_0x1f01('0x48'),_0x1f01('0x40')),_0x2f8447['on'](_0x1f01('0x24'),()=>{this[_0x1f01('0x4d')][_0x1f01('0x56')](),_0x47f997['content'][_0x1f01('0x42')]!==_0x1eab12[_0x1f01('0x61')]?(this[_0x1f01('0x17')](_0x1eab12),_0x1eab12['view']['element'][_0x1f01('0x65')](),this['setActiveAnnotation'](_0x1eab12)):this[_0x1f01('0x3b')](null);});};for(const _0x35d4fe of _0x3541fc)_0x17bfe8(_0x35d4fe);this[_0x1f01('0x10')](_0x3541fc,_0x1f01('0x47'),(_0x43603f,_0x17670a)=>{_0x17bfe8(_0x17670a);}),this[_0x1f01('0x10')](_0x3541fc,_0x1f01('0x18'),(_0x370a85,_0x4995e6,_0xb0c7ad)=>{this[_0x1f01('0x4')][_0x1f01('0x51')](_0x4995e6)[_0x1f01('0x1b')](),this[_0x1f01('0x4')][_0x1f01('0x0')](_0x4995e6),_0x23ef38[_0x1f01('0x1')]({'removedAnnotation':_0x4995e6,'previousAnnotation':_0x3541fc[_0x1f01('0x51')](_0xb0c7ad-0x1),'nextAnnotation':_0x3541fc[_0x1f01('0x51')](_0xb0c7ad+0x1)}),_0x4995e6===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':_0x1f01('0x4c')}),this[_0x1f01('0x10')](_0x3541fc,_0x1f01('0x65'),(_0x1ec5e3,_0x1d83ec)=>{this[_0x1f01('0x3b')](_0x1d83ec);}),this[_0x1f01('0x10')](_0x3541fc,'blur',()=>{this[_0x1f01('0x3b')](null);}),this[_0x1f01('0x57')][_0x1f01('0x10')](document,_0x1f01('0x63'),(_0x5285a1,_0x4f49a3)=>{_0x4f49a3['keyCode']===_0x4dd325[_0x1f01('0x3c')]&&_0x47f997[_0x1f01('0x21')]&&(this[_0x1f01('0x4d')][_0x1f01('0x47')](_0x47f997[_0x1f01('0x16')][_0x1f01('0x42')]),this[_0x1f01('0x31')](),_0x4f49a3[_0x1f01('0x39')](),_0x4f49a3[_0x1f01('0x5b')]());}),this['_domEmitter']['listenTo'](document,_0x1f01('0x15'),(_0x42e4f5,_0x198ce5)=>{const _0x52738b=_0x198ce5['target'];_0x47f997[_0x1f01('0x21')]&&_0x47f997[_0x1f01('0x4a')][_0x1f01('0xe')](_0x52738b)||_0x23ef38[_0x1f01('0x61')][_0x1f01('0x4a')][_0x1f01('0xe')](_0x52738b)||_0x42e4f5[_0x1f01('0x3d')]||this[_0x1f01('0x3e')]&&this[_0x1f01('0x3e')][_0x1f01('0x53')][_0x1f01('0x22')](_0x28ea04=>_0x28ea04[_0x1f01('0xe')](_0x52738b))||(this[_0x1f01('0x4d')]['clear'](),this[_0x1f01('0x31')](),this[_0x1f01('0x3b')](null));});const _0x4649be=this['context']instanceof _0x240c54?this[_0x1f01('0x2a')][_0x1f01('0x5e')]:new _0x2af6c9([this[_0x1f01('0x2a')]]);for(const _0x3a273d of _0x4649be)this[_0x1f01('0x64')](_0x3a273d);this[_0x1f01('0x10')](_0x4649be,_0x1f01('0x47'),(_0x35c143,_0x48d20b)=>{this[_0x1f01('0x10')](_0x48d20b,_0x1f01('0x20'),()=>{this[_0x1f01('0x64')](_0x48d20b);});}),this[_0x1f01('0x10')](_0x4649be,_0x1f01('0x18'),(_0x75bbe,_0x42df06)=>{_0x42df06[_0x1f01('0x4e')][_0x1f01('0x37')]('EditorAnnotations')&&this[_0x1f01('0x2c')](_0x42df06[_0x1f01('0x4e')][_0x1f01('0x51')](_0x1f01('0x43')));}),window[_0x1f01('0x7')](_0x1f01('0x33'),this[_0x1f01('0x25')]),this[_0x1f01('0x1e')]();}[_0x1f01('0x3b')](_0x1f6b54){if(_0x1f6b54===this[_0x1f01('0x3e')])return;const _0x388d6b=this[_0x1f01('0x2a')][_0x1f01('0x4e')][_0x1f01('0x51')](_0x3cc104);if(_0x388d6b['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1f6b54,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1f6b54)_0x388d6b[_0x1f01('0x49')](_0x1f6b54)?this['_showBalloon'](_0x1f6b54):this[_0x1f01('0x31')]();else this[_0x1f01('0x31')]();this[_0x1f01('0x3e')]=_0x1f6b54;}[_0x1f01('0x5c')](){if(!this[_0x1f01('0xa')])throw new _0x981081(_0x1f01('0x60'),this);this[_0x1f01('0x3b')](null);const _0xc813fb=this[_0x1f01('0x2a')][_0x1f01('0x4e')][_0x1f01('0x51')](_0x3cc104);this[_0x1f01('0x31')](),Array['from'](this['_annotationToNarrowView'][_0x1f01('0x5d')](),_0x3cb204=>_0x3cb204['destroy']()),this[_0x1f01('0x4')][_0x1f01('0x56')](),_0xc813fb[_0x1f01('0x59')](this[_0x1f01('0x5f')]),this[_0x1f01('0x4b')](),this[_0x1f01('0x57')][_0x1f01('0x4b')](),this[_0x1f01('0x2a')]instanceof _0x240c54&&this[_0x1f01('0x4b')](this[_0x1f01('0x2a')]['editors']);for(const _0x39befa of Array[_0x1f01('0x1c')](this[_0x1f01('0x29')]))this['_destroyEditorAnnotationsIntegration'](_0x39befa);window[_0x1f01('0x13')]('resize',this[_0x1f01('0x25')]),this[_0x1f01('0x25')][_0x1f01('0x2')](),this['_selectedAnnotations']=[],this[_0x1f01('0xa')]=!0x1,this[_0x1f01('0x5f')]=null;}['destroy'](){this['isAttached']&&this['detach'](),this[_0x1f01('0x46')][_0x1f01('0x62')]();}[_0x1f01('0x64')](_0xd67e0d){const _0x197022=_0xd67e0d['plugins'][_0x1f01('0x51')](_0x436930),_0x45f9e5=this[_0x1f01('0x2a')][_0x1f01('0x4e')][_0x1f01('0x51')](_0x3cc104),_0x2b7c49=this[_0x1f01('0x5f')],_0x41f328=this['balloonPanelView'],_0x4fc524=()=>{const _0x220f90=_0x197022[_0x1f01('0x6')]({'annotations':this[_0x1f01('0x5f')],'activeAnnotation':this['activeAnnotation']});this[_0x1f01('0x32')](_0x220f90),this[_0x1f01('0x3b')](_0x220f90[0x0]||null);};this[_0x1f01('0x10')](_0x197022,_0x1f01('0x54'),_0x4fc524),this[_0x1f01('0x10')](_0x197022,_0x1f01('0x3f'),(_0x25baf2,{isAnnotationTracked:_0x38bdf1})=>{this['activeAnnotation']&&_0x38bdf1(this[_0x1f01('0x3e')])&&(this[_0x1f01('0x32')]([]),this['setActiveAnnotation'](null));}),this[_0x1f01('0x10')](_0x197022,_0x1f01('0x19'),()=>{this['_refreshPositioningDebounced']();}),this[_0x1f01('0x10')](_0x2b7c49,_0x1f01('0x3f'),_0x3768d9=>{_0x197022['hasDomSelection']()&&_0x3768d9[_0x1f01('0x58')]();},{'priority':'high'}),this[_0x1f01('0x10')](this[_0x1f01('0x57')],_0x1f01('0x15'),(_0x1aac02,_0x3e26b9)=>{const _0x3b237d=_0x3e26b9[_0x1f01('0x4f')];_0x41f328[_0x1f01('0x21')]&&_0x41f328[_0x1f01('0x4a')][_0x1f01('0xe')](_0x3b237d)||_0x45f9e5[_0x1f01('0x61')][_0x1f01('0x4a')]['contains'](_0x3b237d)||this[_0x1f01('0x3e')]&&_0x197022[_0x1f01('0x50')]()&&(_0x4fc524(),_0x1aac02[_0x1f01('0x3d')]=!0x0);},{'priority':_0x1f01('0x12')}),this['_editorAnnotations']['add'](_0x197022);}['_destroyEditorAnnotationsIntegration'](_0x4850a5){_0x4850a5&&(this[_0x1f01('0x4b')](_0x4850a5),this[_0x1f01('0x29')][_0x1f01('0x18')](_0x4850a5));}[_0x1f01('0x32')](_0x31afac){for(const _0x332948 of this['_selectedAnnotations'])_0x31afac[_0x1f01('0x36')](_0x332948)||this[_0x1f01('0x4d')]['delete'](_0x332948['view']);this[_0x1f01('0x5a')]=_0x31afac;}[_0x1f01('0x1e')](){const _0x30725a=this[_0x1f01('0x26')];this['annotations']['refreshPositioning'](),_0x30725a[_0x1f01('0x21')]&&this[_0x1f01('0x2f')]();}[_0x1f01('0x17')](_0x5aa7e1){if(this[_0x1f01('0x4d')][_0x1f01('0x37')](_0x5aa7e1[_0x1f01('0x61')]))return;const _0x3088a2=this[_0x1f01('0x26')][_0x1f01('0x16')][_0x1f01('0x42')];_0x3088a2!==_0x5aa7e1[_0x1f01('0x61')]?(_0x3088a2&&this[_0x1f01('0x3a')](_0x3088a2),this[_0x1f01('0x34')](_0x5aa7e1[_0x1f01('0x61')]),this[_0x1f01('0x26')][_0x1f01('0x16')][_0x1f01('0x56')](),this[_0x1f01('0x26')][_0x1f01('0x16')][_0x1f01('0x47')](_0x5aa7e1[_0x1f01('0x61')]),this[_0x1f01('0x2f')]()):this[_0x1f01('0x2f')]();}[_0x1f01('0x2f')](){const _0x1c1662=this[_0x1f01('0x26')]['content'][_0x1f01('0x42')],_0x57352c=_0x1c1662&&this['annotations']['getByView'](_0x1c1662);if(!_0x57352c||!this[_0x1f01('0x4')][_0x1f01('0x37')](_0x57352c))return;const _0x58a691=this[_0x1f01('0x4')][_0x1f01('0x51')](_0x57352c)[_0x1f01('0x4a')],_0x4fc7d1=function(){const _0x3402b4=_0x39383a[_0x1f01('0x1d')];return[_0x3402b4[_0x1f01('0x1f')],_0x3402b4[_0x1f01('0x52')],_0x3402b4['southArrowNorth'],_0x3402b4[_0x1f01('0x14')],_0x3402b4['southArrowNorthWest'],_0x3402b4[_0x1f01('0x35')]];}();this[_0x1f01('0x26')][_0x1f01('0x45')]({'target':_0x58a691,'positions':_0x4fc7d1});}[_0x1f01('0x31')](){const _0x395e8a=this[_0x1f01('0x26')],_0x5c7e81=_0x395e8a[_0x1f01('0x16')][_0x1f01('0x42')];_0x5c7e81&&(this[_0x1f01('0x3a')](_0x5c7e81),_0x395e8a[_0x1f01('0x38')](),_0x395e8a[_0x1f01('0x16')][_0x1f01('0x56')]());}['_attachListeners'](_0x2733b5){this[_0x1f01('0x10')](_0x2733b5,_0x1f01('0x41'),()=>this[_0x1f01('0x2f')]()),this[_0x1f01('0x10')](_0x2733b5,'Esc',(_0x8404f2,_0x1e09d3)=>{this[_0x1f01('0x4d')][_0x1f01('0x47')](_0x2733b5),this['_hideBalloon'](),_0x1e09d3();});}['_detachListeners'](_0x7d520d){this[_0x1f01('0x4b')](_0x7d520d);}}
|
|
23
|
+
const _0x2f83=['plugins','target','setActiveAnnotation','view','delete','refreshPositioning','clear','northArrowSouthEast','isVisible','listenTo','execute','values','preventClosingBalloon','_refreshPositioningDebounced','off','has','first','_updateBalloonPosition','from','length','_editorAnnotations','high','find','blur','Esc','_manuallyClosedAnnotationViews','set','content','low','addAnnotation','getOrderedSelectedAnnotations','activeAnnotation','stopListening','mousedown','_detachListeners','_attachListeners','change:container','editors','requires','EditorAnnotations','unpin','attachToDom','remove','hasDomSelection','keydown','NarrowSidebar','defaultPositions','change:height','type','attach','get','locale','_domEmitter','annotations','register','narrowsidebar-attach-already-attached','refresh','northArrowSouthWest','context','init','focus','getSidebarItemView','addEventListener','_integrateWithEditorAnnotations','create','isDirty','annotationType','ck-sidebar--narrow','southArrowNorthWest','detach','pin','resize','cancel','bodyCollection','southArrowNorth','rearrange','southArrowNorthEast','element','_refreshPositioning','stopPropagation','_setSelectedAnnotations','isAttached','_hideBalloon','_selectedAnnotations','uiUpdate','destroy','_destroyEditorAnnotationsIntegration','_showBalloon','detachFromDom','_annotationToNarrowView','number','includes','_annotations','add','balloonPanelView','contains'];(function(_0x396390,_0x2f83e3){const _0x406646=function(_0x460aa2){while(--_0x460aa2){_0x396390['push'](_0x396390['shift']());}};_0x406646(++_0x2f83e3);}(_0x2f83,0x155));const _0x4066=function(_0x396390,_0x2f83e3){_0x396390=_0x396390-0x0;let _0x406646=_0x2f83[_0x396390];return _0x406646;};import{ContextPlugin as _0x5f41cb,Context as _0x1ea3ea}from'ckeditor5/src/core';import _0x1f6810 from'./annotationsuis';import _0x17c80e from'./sidebar';import _0x246f1c from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x5b6ed3,BodyCollection as _0x462a07}from'ckeditor5/src/ui';import{CKEditorError as _0x457b23,DomEmitterMixin as _0x4b75d3,keyCodes as _0x48e861,Collection as _0x31685e}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x20cf74}from'lodash-es';import _0x4a59f4 from'./editorannotations';export default class s extends _0x5f41cb{static get[_0x4066('0x51')](){return[_0x17c80e,_0x1f6810];}static get['pluginName'](){return _0x4066('0x58');}constructor(_0x2ccba9){super(_0x2ccba9),this[_0x4066('0x1c')]=!0x1,this[_0x4066('0x44')]=new Set(),this['_domEmitter']=Object[_0x4066('0xb')](_0x4b75d3),this['_annotationToNarrowView']=new Map(),this['set'](_0x4066('0x4a'),null),this[_0x4066('0x0')]=null,this['_selectedAnnotations']=[],this[_0x4066('0x3f')]=new _0x31685e(),this[_0x4066('0x38')]=_0x20cf74(()=>{this[_0x4066('0x19')]();},0xfa,{'leading':!0x1});}[_0x4066('0x6')](){this['context'][_0x4066('0x2b')][_0x4066('0x5d')](_0x1f6810)[_0x4066('0x1')]('narrowSidebar',this),this[_0x4066('0x14')]=new _0x462a07(this[_0x4066('0x5')][_0x4066('0x5e')]),this[_0x4066('0x29')]=new _0x5b6ed3(this[_0x4066('0x5')][_0x4066('0x5e')]),this[_0x4066('0x14')][_0x4066('0x54')](),this[_0x4066('0x14')][_0x4066('0x28')](this[_0x4066('0x29')]);}[_0x4066('0x5c')](_0x3b2ec6){this[_0x4066('0x0')]=_0x3b2ec6;const _0x5c16e1=this[_0x4066('0x5')][_0x4066('0x2b')][_0x4066('0x5d')](_0x17c80e),_0x2c53ca=this['balloonPanelView'];if(_0x5c16e1[_0x4066('0x27')]=_0x3b2ec6,this[_0x4066('0x1c')])throw new _0x457b23(_0x4066('0x2'),this);this[_0x4066('0x1c')]=!0x0,this[_0x4066('0x34')](_0x5c16e1,'set:container',()=>{this[_0x4066('0x10')](),this[_0x4066('0x34')](_0x5c16e1,_0x4066('0x4f'),_0x11b453=>{_0x11b453[_0x4066('0x39')](),this['attach'](_0x3b2ec6);});}),_0x5c16e1['_attachToContainer']({'viewClass':_0x4066('0xe'),'spaceBetweenItems':0x5});const _0x3115d7=_0x1275af=>{const _0x6626aa=new _0x246f1c(this['context']['locale']);_0x5c16e1[_0x4066('0x48')](_0x1275af,_0x6626aa),this[_0x4066('0x24')][_0x4066('0x45')](_0x1275af,_0x6626aa),_0x6626aa['bind'](_0x4066('0xc'),_0x4066('0xd'),_0x4066('0x25'))['to'](_0x1275af[_0x4066('0x2e')],'isDirty',_0x4066('0x5b'),_0x4066('0x3e')),_0x6626aa['on'](_0x4066('0x35'),()=>{this[_0x4066('0x44')][_0x4066('0x31')](),_0x2c53ca[_0x4066('0x46')][_0x4066('0x3b')]!==_0x1275af['view']?(this[_0x4066('0x22')](_0x1275af),_0x1275af[_0x4066('0x2e')][_0x4066('0x18')][_0x4066('0x7')](),this[_0x4066('0x2d')](_0x1275af)):this[_0x4066('0x2d')](null);});};for(const _0x1b15da of _0x3b2ec6)_0x3115d7(_0x1b15da);this[_0x4066('0x34')](_0x3b2ec6,_0x4066('0x28'),(_0x57b4ba,_0x3c9349)=>{_0x3115d7(_0x3c9349);}),this[_0x4066('0x34')](_0x3b2ec6,_0x4066('0x55'),(_0x3e4a5f,_0x340487,_0x16e81d)=>{this['_annotationToNarrowView']['get'](_0x340487)[_0x4066('0x20')](),this[_0x4066('0x24')][_0x4066('0x2f')](_0x340487),_0x5c16e1[_0x4066('0x16')]({'removedAnnotation':_0x340487,'previousAnnotation':_0x3b2ec6[_0x4066('0x5d')](_0x16e81d-0x1),'nextAnnotation':_0x3b2ec6['get'](_0x16e81d+0x1)}),_0x340487===this[_0x4066('0x4a')]&&this[_0x4066('0x2d')](null);},{'priority':_0x4066('0x47')}),this['listenTo'](_0x3b2ec6,'focus',(_0x1ffe03,_0xf80bd)=>{this[_0x4066('0x2d')](_0xf80bd);}),this[_0x4066('0x34')](_0x3b2ec6,'blur',()=>{this[_0x4066('0x2d')](null);}),this[_0x4066('0x5f')]['listenTo'](document,_0x4066('0x57'),(_0x20dd2e,_0x3522f3)=>{_0x3522f3['keyCode']===_0x48e861['esc']&&_0x2c53ca[_0x4066('0x33')]&&(this['_manuallyClosedAnnotationViews'][_0x4066('0x28')](_0x2c53ca[_0x4066('0x46')][_0x4066('0x3b')]),this['_hideBalloon'](),_0x3522f3[_0x4066('0x1a')](),_0x3522f3['preventDefault']());}),this[_0x4066('0x5f')]['listenTo'](document,_0x4066('0x4c'),(_0x430f3d,_0x3124de)=>{const _0x5a629f=_0x3124de[_0x4066('0x2c')];_0x2c53ca['isVisible']&&_0x2c53ca[_0x4066('0x18')][_0x4066('0x2a')](_0x5a629f)||_0x5c16e1['view']['element'][_0x4066('0x2a')](_0x5a629f)||_0x430f3d[_0x4066('0x37')]||this['activeAnnotation']&&this[_0x4066('0x4a')]['focusableElements'][_0x4066('0x41')](_0x540c0f=>_0x540c0f[_0x4066('0x2a')](_0x5a629f))||(this[_0x4066('0x44')][_0x4066('0x31')](),this[_0x4066('0x1d')](),this[_0x4066('0x2d')](null));});const _0x38a24e=this[_0x4066('0x5')]instanceof _0x1ea3ea?this[_0x4066('0x5')][_0x4066('0x50')]:new _0x31685e([this[_0x4066('0x5')]]);for(const _0x3c2629 of _0x38a24e)this['_integrateWithEditorAnnotations'](_0x3c2629);this[_0x4066('0x34')](_0x38a24e,_0x4066('0x28'),(_0x4c9929,_0x210ffc)=>{this[_0x4066('0x34')](_0x210ffc,'ready',()=>{this[_0x4066('0xa')](_0x210ffc);});}),this['listenTo'](_0x38a24e,_0x4066('0x55'),(_0x15e24a,_0x17fbb6)=>{_0x17fbb6[_0x4066('0x2b')][_0x4066('0x3a')](_0x4066('0x52'))&&this[_0x4066('0x21')](_0x17fbb6[_0x4066('0x2b')][_0x4066('0x5d')]('EditorAnnotations'));}),window[_0x4066('0x9')](_0x4066('0x12'),this['_refreshPositioningDebounced']),this[_0x4066('0x19')]();}[_0x4066('0x2d')](_0x2877c9){if(_0x2877c9===this[_0x4066('0x4a')])return;const _0x5c1590=this['context'][_0x4066('0x2b')]['get'](_0x17c80e);if(_0x5c1590[_0x4066('0x3')]({'blurredAnnotation':this[_0x4066('0x4a')],'activatedAnnotation':_0x2877c9,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2877c9)_0x5c1590[_0x4066('0x8')](_0x2877c9)?this['_showBalloon'](_0x2877c9):this[_0x4066('0x1d')]();else this[_0x4066('0x1d')]();this['activeAnnotation']=_0x2877c9;}[_0x4066('0x10')](){if(!this['isAttached'])throw new _0x457b23('narrowsidebar-detach-not-attached',this);this[_0x4066('0x2d')](null);const _0x40a9c8=this['context'][_0x4066('0x2b')][_0x4066('0x5d')](_0x17c80e);this[_0x4066('0x1d')](),Array[_0x4066('0x3d')](this[_0x4066('0x24')][_0x4066('0x36')](),_0x5ca3ba=>_0x5ca3ba[_0x4066('0x20')]()),this['_annotationToNarrowView'][_0x4066('0x31')](),_0x40a9c8['_detachFromContainer'](this[_0x4066('0x0')]),this[_0x4066('0x4b')](),this[_0x4066('0x5f')][_0x4066('0x4b')](),this['context']instanceof _0x1ea3ea&&this[_0x4066('0x4b')](this['context']['editors']);for(const _0x3cde1e of Array[_0x4066('0x3d')](this[_0x4066('0x3f')]))this[_0x4066('0x21')](_0x3cde1e);window['removeEventListener'](_0x4066('0x12'),this['_refreshPositioningDebounced']),this[_0x4066('0x38')][_0x4066('0x13')](),this[_0x4066('0x1e')]=[],this[_0x4066('0x1c')]=!0x1,this[_0x4066('0x0')]=null;}[_0x4066('0x20')](){this[_0x4066('0x1c')]&&this[_0x4066('0x10')](),this[_0x4066('0x14')][_0x4066('0x23')]();}[_0x4066('0xa')](_0x5e6f99){const _0x242e5a=_0x5e6f99[_0x4066('0x2b')][_0x4066('0x5d')](_0x4a59f4),_0x1a5bdc=this[_0x4066('0x5')][_0x4066('0x2b')]['get'](_0x17c80e),_0xa720db=this[_0x4066('0x0')],_0x402fb9=this['balloonPanelView'],_0xfe09f7=()=>{const _0xb88b98=_0x242e5a[_0x4066('0x49')]({'annotations':this[_0x4066('0x0')],'activeAnnotation':this[_0x4066('0x4a')]});this[_0x4066('0x1b')](_0xb88b98),this[_0x4066('0x2d')](_0xb88b98[0x0]||null);};this[_0x4066('0x34')](_0x242e5a,_0x4066('0x3'),_0xfe09f7),this[_0x4066('0x34')](_0x242e5a,_0x4066('0x42'),(_0x13b642,{isAnnotationTracked:_0xa3411a})=>{this[_0x4066('0x4a')]&&_0xa3411a(this[_0x4066('0x4a')])&&(this[_0x4066('0x1b')]([]),this[_0x4066('0x2d')](null));}),this[_0x4066('0x34')](_0x242e5a,_0x4066('0x1f'),()=>{this[_0x4066('0x38')]();}),this[_0x4066('0x34')](_0xa720db,'blur',_0x2e9864=>{_0x242e5a[_0x4066('0x56')]()&&_0x2e9864['stop']();},{'priority':_0x4066('0x40')}),this[_0x4066('0x34')](this['_domEmitter'],_0x4066('0x4c'),(_0x37ae39,_0x5a9af3)=>{const _0x2930da=_0x5a9af3['target'];_0x402fb9[_0x4066('0x33')]&&_0x402fb9[_0x4066('0x18')][_0x4066('0x2a')](_0x2930da)||_0x1a5bdc['view']['element'][_0x4066('0x2a')](_0x2930da)||this[_0x4066('0x4a')]&&_0x242e5a[_0x4066('0x56')]()&&(_0xfe09f7(),_0x37ae39['preventClosingBalloon']=!0x0);},{'priority':_0x4066('0x40')}),this[_0x4066('0x3f')]['add'](_0x242e5a);}[_0x4066('0x21')](_0x4a31f0){_0x4a31f0&&(this['stopListening'](_0x4a31f0),this[_0x4066('0x3f')][_0x4066('0x55')](_0x4a31f0));}['_setSelectedAnnotations'](_0x270b70){for(const _0x5935e6 of this[_0x4066('0x1e')])_0x270b70[_0x4066('0x26')](_0x5935e6)||this[_0x4066('0x44')]['delete'](_0x5935e6[_0x4066('0x2e')]);this[_0x4066('0x1e')]=_0x270b70;}[_0x4066('0x19')](){const _0x422a15=this[_0x4066('0x29')];this[_0x4066('0x0')][_0x4066('0x30')](),_0x422a15[_0x4066('0x33')]&&this[_0x4066('0x3c')]();}['_showBalloon'](_0x5eb24b){if(this[_0x4066('0x44')][_0x4066('0x3a')](_0x5eb24b['view']))return;const _0x3351cb=this[_0x4066('0x29')][_0x4066('0x46')][_0x4066('0x3b')];_0x3351cb!==_0x5eb24b[_0x4066('0x2e')]?(_0x3351cb&&this[_0x4066('0x4d')](_0x3351cb),this[_0x4066('0x4e')](_0x5eb24b[_0x4066('0x2e')]),this['balloonPanelView'][_0x4066('0x46')][_0x4066('0x31')](),this[_0x4066('0x29')]['content'][_0x4066('0x28')](_0x5eb24b[_0x4066('0x2e')]),this[_0x4066('0x3c')]()):this[_0x4066('0x3c')]();}[_0x4066('0x3c')](){const _0x54bf75=this[_0x4066('0x29')][_0x4066('0x46')][_0x4066('0x3b')],_0x30f378=_0x54bf75&&this['annotations']['getByView'](_0x54bf75);if(!_0x30f378||!this[_0x4066('0x24')][_0x4066('0x3a')](_0x30f378))return;const _0x47bc50=this[_0x4066('0x24')][_0x4066('0x5d')](_0x30f378)[_0x4066('0x18')],_0x3ddf1c=function(){const _0x22d03b=_0x5b6ed3[_0x4066('0x59')];return[_0x22d03b[_0x4066('0x17')],_0x22d03b[_0x4066('0x32')],_0x22d03b[_0x4066('0x15')],_0x22d03b['northArrowSouth'],_0x22d03b[_0x4066('0xf')],_0x22d03b[_0x4066('0x4')]];}();this[_0x4066('0x29')][_0x4066('0x11')]({'target':_0x47bc50,'positions':_0x3ddf1c});}[_0x4066('0x1d')](){const _0x51d814=this[_0x4066('0x29')],_0x478cbd=_0x51d814['content'][_0x4066('0x3b')];_0x478cbd&&(this[_0x4066('0x4d')](_0x478cbd),_0x51d814[_0x4066('0x53')](),_0x51d814[_0x4066('0x46')][_0x4066('0x31')]());}[_0x4066('0x4e')](_0x24efb3){this['listenTo'](_0x24efb3,_0x4066('0x5a'),()=>this[_0x4066('0x3c')]()),this[_0x4066('0x34')](_0x24efb3,_0x4066('0x43'),(_0x18d7f7,_0xc9cc03)=>{this[_0x4066('0x44')][_0x4066('0x28')](_0x24efb3),this[_0x4066('0x1d')](),_0xc9cc03();});}[_0x4066('0x4d')](_0x3c302c){this[_0x4066('0x4b')](_0x3c302c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x407d=['set','appendChild','pluginName','isActive','sidebar.container','_alignToTargetRect','Sidebar','_activeAnnotation','_sidebarItemViewToAnnotation','_recalculate','_setItemTop','rearrange','get','define','setContainer','add','_getItemBefore','top','change:top','bind','_alignBeforeItem','_getMaxAvailableTop','_alignAfterItem','getSidebarItemView','stopListening','_alignForTopChange','targetRect','class','isAnimationDisabled','nodeType','max','clear','content','refresh','minHeight','view','sidebar.preventScrollOutOfView','_createSidebarView','last','list','_targetTop','context','updateHeight','container','config','listenTo','bottom','push','_recalculateBuffer','change:_lastItem','sidebar-attachtocontainer-missing-container','remove','_annotations','_annotationToSidebarItemView','_lastItem','_alignForBottomChange','locale','_getItemAfter','_destroySidebarItemView','length','_getTargetTop','element','_spaceBetweenItems','getIndex','object','_updateLastItem','delete','render'];(function(_0x1bfbfe,_0x407db2){const _0x22c420=function(_0x358987){while(--_0x358987){_0x1bfbfe['push'](_0x1bfbfe['shift']());}};_0x22c420(++_0x407db2);}(_0x407d,0xd9));const _0x22c4=function(_0x1bfbfe,_0x407db2){_0x1bfbfe=_0x1bfbfe-0x0;let _0x22c420=_0x407d[_0x1bfbfe];return _0x22c420;};import{ContextPlugin as _0x486ebb}from'ckeditor5/src/core';import{Rect as _0x9a6c,CKEditorError as _0x8e0856}from'ckeditor5/src/utils';import _0x420bed from'./view/sidebarview';import _0x29e99c from'./view/sidebaritemview';export default class z extends _0x486ebb{static get[_0x22c4('0x39')](){return _0x22c4('0x3d');}constructor(_0x27e2d9){super(_0x27e2d9),this[_0x22c4('0x37')](_0x22c4('0x29'),void 0x0),this[_0x22c4('0x16')]=this[_0x22c4('0x18')](),this[_0x22c4('0x37')](_0x22c4('0x1e'),null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context'][_0x22c4('0x1f')][_0x22c4('0x0')]('sidebar.preventScrollOutOfView',!0x1),this[_0x22c4('0x27')]=null,this['_activeAnnotation']=null,this[_0x22c4('0x23')]=[];}['init'](){const _0x108b80=this['context'][_0x22c4('0x1f')][_0x22c4('0x43')](_0x22c4('0x3b'));_0x108b80&&this[_0x22c4('0x1')](_0x108b80);}[_0x22c4('0x1')](_0x1cba3d){if(!y(_0x1cba3d))throw new _0x8e0856('sidebar-setcontainer-invalid-element');this[_0x22c4('0x1e')]=_0x1cba3d;}['_attachToContainer']({viewClass:_0x31de16='',spaceBetweenItems:_0x2c309c=0x19}={}){if(!y(this[_0x22c4('0x1e')]))throw new _0x8e0856(_0x22c4('0x25'),this);this[_0x22c4('0x1e')][_0x22c4('0x38')](this[_0x22c4('0x16')][_0x22c4('0x30')]),this[_0x22c4('0x16')][_0x22c4('0xe')]=_0x31de16,this['_spaceBetweenItems']=_0x2c309c;}[_0x22c4('0x42')]({removedAnnotation:_0x4c01f7,previousAnnotation:_0x152b3e,nextAnnotation:_0x230478}){const _0x4611ac=this[_0x22c4('0xa')](_0x4c01f7);this[_0x22c4('0x16')]['list'][_0x22c4('0x26')](_0x4611ac),this[_0x22c4('0x2d')](_0x4c01f7),_0x152b3e&&this[_0x22c4('0x3c')](this[_0x22c4('0xa')](_0x152b3e)),_0x230478&&this[_0x22c4('0x3c')](this[_0x22c4('0xa')](_0x230478)),this[_0x22c4('0x34')]();}[_0x22c4('0x14')]({blurredAnnotation:_0xe72d3e,activatedAnnotation:_0x255964,disableAnimationOnActivatedAnnotation:_0x2a74d6}){if(this['_activeAnnotation']=_0x255964,_0xe72d3e){_0xe72d3e[_0x22c4('0x3a')]=!0x1;const _0x45a303=this[_0x22c4('0xa')](_0xe72d3e);_0x45a303&&_0x2a74d6&&(_0x45a303['isAnimationDisabled']=!0x1);}if(_0x255964){const _0x32651c=this[_0x22c4('0xa')](_0x255964);_0x32651c&&(_0x255964[_0x22c4('0x3a')]=!0x0,_0x2a74d6&&(_0x32651c[_0x22c4('0xf')]=!0x0,_0x32651c['top']+=0x1),this[_0x22c4('0x3c')](_0x32651c));}}['_detachFromContainer'](_0x4d59d7){if(this[_0x22c4('0x16')][_0x22c4('0x30')][_0x22c4('0x26')](),_0x4d59d7)for(const _0x27c54e of _0x4d59d7)this['_destroySidebarItemView'](_0x27c54e);this['view']['list'][_0x22c4('0x12')](),this[_0x22c4('0x16')][_0x22c4('0xe')]='',this['_lastItem']=null;}['addAnnotation'](_0x5bf24a,_0x435d87){_0x435d87||(_0x435d87=_0x5bf24a['view']);const _0x404219=new _0x29e99c(this[_0x22c4('0x1c')][_0x22c4('0x2b')]);this[_0x22c4('0x3f')]['set'](_0x404219,_0x5bf24a),this[_0x22c4('0x28')][_0x22c4('0x37')](_0x5bf24a,_0x404219),_0x404219[_0x22c4('0x13')][_0x22c4('0x2')](_0x435d87),this[_0x22c4('0x20')](_0x5bf24a[_0x22c4('0x16')],'change:targetRect',(_0x39bcdf,_0x256175,_0x1605e4)=>{const _0x152d96=this[_0x22c4('0x2f')](_0x5bf24a,_0x1605e4);_0x404219[_0x22c4('0x1b')]!=_0x152d96&&(_0x404219['_targetTop']=_0x152d96,this[_0x22c4('0x41')](_0x404219,_0x152d96));}),this[_0x22c4('0x20')](_0x404219,_0x22c4('0x5'),()=>{this[_0x22c4('0x40')](_0x404219,_0x22c4('0x4'));}),this[_0x22c4('0x20')](_0x404219,'change:bottom',()=>{this['_recalculate'](_0x404219,_0x22c4('0x21'));}),this[_0x22c4('0x3c')](_0x404219);const _0x25b9d3=this[_0x22c4('0x3')](_0x404219);if(_0x25b9d3)this[_0x22c4('0x9')](_0x25b9d3,_0x404219)||this[_0x22c4('0x3c')](_0x404219);else this['_alignToTargetRect'](_0x404219);return this['_updateLastItem'](),this[_0x22c4('0x16')][_0x22c4('0x1a')][_0x22c4('0x2')](_0x404219),_0x404219;}[_0x22c4('0xc')](_0x24cfc9){if(!_0x24cfc9[_0x22c4('0x13')][_0x22c4('0x2e')])return;const _0x21cc2b=this[_0x22c4('0x3')](_0x24cfc9);if(!_0x21cc2b)return;const _0xc9cf1a=this[_0x22c4('0x3f')][_0x22c4('0x43')](_0x21cc2b),_0x11ffaa=this[_0x22c4('0x3e')];_0x11ffaa&&_0x11ffaa===_0xc9cf1a?this['_alignAfterItem'](_0x21cc2b,_0x24cfc9):this[_0x22c4('0x7')](_0x24cfc9,_0x21cc2b);}[_0x22c4('0x2a')](_0x36c222){if(!_0x36c222[_0x22c4('0x13')][_0x22c4('0x2e')])return;const _0x304f80=this[_0x22c4('0x2c')](_0x36c222);if(!_0x304f80)return;const _0x583096=this[_0x22c4('0x3f')]['get'](_0x304f80),_0x515862=this[_0x22c4('0x1c')][_0x22c4('0x1f')][_0x22c4('0x43')](_0x22c4('0x17')),_0xf727ec=this[_0x22c4('0x3e')];_0xf727ec&&_0xf727ec===_0x583096&&_0x515862?(this['_alignBeforeItem'](_0x304f80,_0x36c222),this[_0x22c4('0x9')](_0x36c222,_0x304f80)):_0xf727ec&&_0xf727ec===_0x583096?this['_alignBeforeItem'](_0x304f80,_0x36c222):this['_alignAfterItem'](_0x36c222,_0x304f80);}[_0x22c4('0x40')](_0x58b6ee,_0x365bf6){0x0===this[_0x22c4('0x23')][_0x22c4('0x2e')]&&setTimeout(()=>{for(const {sidebarItemView:_0x116b49,changedProp:_0x5c8400}of this[_0x22c4('0x23')])_0x22c4('0x4')===_0x5c8400?this['_alignForTopChange'](_0x116b49):this[_0x22c4('0x2a')](_0x116b49);this[_0x22c4('0x23')]=[];},0xa),this[_0x22c4('0x23')][_0x22c4('0x22')]({'sidebarItemView':_0x58b6ee,'changedProp':_0x365bf6});}[_0x22c4('0xa')](_0xfe4e9){return this[_0x22c4('0x28')][_0x22c4('0x43')](_0xfe4e9);}['destroy'](){this[_0x22c4('0xb')](),this[_0x22c4('0x16')]['destroy']();}[_0x22c4('0x2d')](_0x1e265d){const _0x42beb9=this[_0x22c4('0xa')](_0x1e265d);this['stopListening'](_0x42beb9),this['stopListening'](_0x1e265d[_0x22c4('0x16')]),_0x42beb9['destroy'](),this[_0x22c4('0x28')][_0x22c4('0x35')](_0x1e265d),this[_0x22c4('0x3f')][_0x22c4('0x35')](_0x42beb9);}[_0x22c4('0x18')](){const _0x2ceb30=new _0x420bed(this[_0x22c4('0x1c')][_0x22c4('0x2b')]);return _0x2ceb30[_0x22c4('0x36')](),this['on'](_0x22c4('0x24'),(_0x56a7b5,_0xc219c9,_0x57308c,_0x1d1787)=>{_0x1d1787&&_0x2ceb30['unbind'](_0x22c4('0x15')),_0x57308c?_0x2ceb30[_0x22c4('0x6')](_0x22c4('0x15'))['to'](_0x57308c,_0x22c4('0x21')):_0x2ceb30['minHeight']=null;}),_0x2ceb30;}[_0x22c4('0x34')](){var _0x5502b9;this[_0x22c4('0x29')]=(null===(_0x5502b9=this[_0x22c4('0x27')])||void 0x0===_0x5502b9?void 0x0:_0x5502b9[_0x22c4('0x19')])?this[_0x22c4('0xa')](this[_0x22c4('0x27')]['last']):null;}[_0x22c4('0x3')](_0xaad0ac){var _0x2b5c38;const _0x5cae70=this[_0x22c4('0x3f')][_0x22c4('0x43')](_0xaad0ac),_0x2a4fcc=_0x5cae70&&(null===(_0x2b5c38=this[_0x22c4('0x27')])||void 0x0===_0x2b5c38?void 0x0:_0x2b5c38['get'](this[_0x22c4('0x27')][_0x22c4('0x32')](_0x5cae70)-0x1));return _0x2a4fcc&&this[_0x22c4('0xa')](_0x2a4fcc)||null;}['_getItemAfter'](_0x17ae6d){var _0x3acb88;const _0x53c465=this[_0x22c4('0x3f')][_0x22c4('0x43')](_0x17ae6d),_0x5311b1=_0x53c465&&(null===(_0x3acb88=this[_0x22c4('0x27')])||void 0x0===_0x3acb88?void 0x0:_0x3acb88[_0x22c4('0x43')](this['_annotations'][_0x22c4('0x32')](_0x53c465)+0x1));return _0x5311b1&&this[_0x22c4('0xa')](_0x5311b1)||null;}[_0x22c4('0x7')](_0x20a396,_0x5ac98a){_0x20a396[_0x22c4('0x1d')]();const _0x1d4313=H(_0x5ac98a['bottom']+this[_0x22c4('0x31')],_0x20a396[_0x22c4('0x4')]);return!!_0x1d4313&&(this['_setItemTop'](_0x5ac98a,_0x5ac98a[_0x22c4('0x4')]-_0x1d4313),!0x0);}['_alignAfterItem'](_0x5b789c,_0x1f3812){_0x5b789c['updateHeight']();const _0x5edf26=H(_0x5b789c[_0x22c4('0x21')]+this[_0x22c4('0x31')],_0x1f3812[_0x22c4('0x4')]);return!!_0x5edf26&&(this[_0x22c4('0x41')](_0x1f3812,_0x1f3812['top']+_0x5edf26,!0x1),!0x0);}['_alignToTargetRect'](_0x42e649){const _0x5b9efe=this[_0x22c4('0x3f')][_0x22c4('0x43')](_0x42e649);if(!_0x5b9efe||!_0x5b9efe['target']||!_0x5b9efe[_0x22c4('0xd')])return;const _0x3460c5=this[_0x22c4('0x2f')](_0x5b9efe,_0x5b9efe['targetRect']);this['_setItemTop'](_0x42e649,_0x3460c5);}[_0x22c4('0x2f')](_0x59043f,_0x2e7417){if(null===_0x2e7417)return 0x0;if(_0x59043f['target']instanceof _0x9a6c)return _0x2e7417['top'];{const _0x4e020a=new _0x9a6c(this[_0x22c4('0x16')][_0x22c4('0x30')])[_0x22c4('0x4')];return _0x2e7417[_0x22c4('0x4')]-_0x4e020a;}}[_0x22c4('0x41')](_0x41e709,_0x3f8a55,_0xc9edad=this[_0x22c4('0x1c')]['config']['get']('sidebar.preventScrollOutOfView')){_0xc9edad&&(_0x3f8a55=Math[_0x22c4('0x11')](_0x3f8a55,this[_0x22c4('0x8')](_0x41e709))),_0x41e709[_0x22c4('0x4')]=_0x3f8a55;}[_0x22c4('0x8')](_0x1be444){let _0x280e64=this[_0x22c4('0x3')](_0x1be444),_0x14992a=0x0;for(;_0x280e64;)_0x280e64[_0x22c4('0x1d')](),_0x14992a+=this[_0x22c4('0x31')]+_0x280e64['height'],_0x280e64=this[_0x22c4('0x3')](_0x280e64);return _0x14992a;}}function H(_0x50f021,_0x28ae1c){return Math[_0x22c4('0x11')](_0x50f021-_0x28ae1c,0x0);}function y(_0x5ce672){return null!==_0x5ce672&&_0x22c4('0x33')==typeof _0x5ce672&&0x1===_0x5ce672[_0x22c4('0x10')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x84d2=['ck-annotation-counter__badge--','add','span','extendTemplate','number','isDirty','bind','counterView','_badge','setTemplate','children','toString','bindTemplate','icon','set','annotationType'];(function(_0x4173a1,_0x84d263){const _0x234def=function(_0x2ef319){while(--_0x2ef319){_0x4173a1['push'](_0x4173a1['shift']());}};_0x234def(++_0x84d263);}(_0x84d2,0x177));const _0x234d=function(_0x4173a1,_0x84d263){_0x4173a1=_0x4173a1-0x0;let _0x234def=_0x84d2[_0x4173a1];return _0x234def;};import{ButtonView as _0x5b8517,View as _0x19f1af}from'ckeditor5/src/ui';import _0x59bc9c from'../../../theme/icons/add-comment.svg';export default class D extends _0x5b8517{constructor(_0x5e9e25){super(_0x5e9e25);const _0x3f6db7=this[_0x234d('0x5')];this[_0x234d('0x7')](_0x234d('0xe'),!0x1),this[_0x234d('0x7')](_0x234d('0xd'),0x0),this[_0x234d('0xf')](_0x234d('0x1'))['to'](this,_0x234d('0xe'),this,'number',(_0xf71310,_0x44e4ee)=>_0xf71310?'...':_0x44e4ee[_0x234d('0x4')]()),this[_0x234d('0x7')]('annotationType',''),this[_0x234d('0x6')]=_0x59bc9c,this[_0x234d('0xc')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x234d('0x0')]=new _0x19f1af(),this[_0x234d('0x0')][_0x234d('0x2')]({'tag':_0x234d('0xb'),'attributes':{'class':['ck-annotation-counter__badge',_0x3f6db7['to'](_0x234d('0x8'),_0x77744d=>_0x234d('0x9')+_0x77744d),_0x3f6db7['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x3f6db7['to'](_0x234d('0x1'))}]}),this[_0x234d('0x3')][_0x234d('0xa')](this[_0x234d('0x0')]);}}
|