@ckeditor/ckeditor5-comments 0.0.0-nightly-20231107.0 → 0.0.0-nightly-20231108.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/lang/contexts.json +2 -0
- 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/lang/contexts.json
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
"Delete comment thread?": "The confirmation message shown after pressing the delete comment thread button.",
|
|
16
16
|
"Marked as resolved": "A message informing that the comment has been resolved",
|
|
17
17
|
"Comment": "The tooltip for the comment toolbar button and the button that submits a comment thread.",
|
|
18
|
+
"ENTER_COMMENT_ANNOUNCEMENT": "A message read out by assistive technologies the moment the user selection moves into a comment.",
|
|
19
|
+
"LEAVE_COMMENT_ANNOUNCEMENT": "A message read out by assistive technologies the moment the user selection leaves a comment.",
|
|
18
20
|
"PENDING_ACTION_COMMENT_THREAD": "The label for an alert shown when closing the editor with an unsaved comment change.",
|
|
19
21
|
"EXTERNAL_COMMENT": "The additional information that comments comes from external source.",
|
|
20
22
|
"EXTERNAL_IMPORT_WORD_COMMENT": "The additional information that comments comes from imported Word file.",
|
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-20231108.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-20231108.0",
|
|
47
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231108.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 _0x3cdf=['item','_type','destroy','focusTracker','add','target','isActive','annotation-invalid-target','_target','remove','element','_assertCorrectTarget','type','isArray','isVisible','stopListening','_getNormalizedTarget','mainView','render','getClientRects','set','filter','view','function','focusableElements','offsetParent','targetRect','object'];(function(_0x4549dc,_0x3cdffc){const _0x23e769=function(_0xd4e228){while(--_0xd4e228){_0x4549dc['push'](_0x4549dc['shift']());}};_0x23e769(++_0x3cdffc);}(_0x3cdf,0x187));const _0x23e7=function(_0x4549dc,_0x3cdffc){_0x4549dc=_0x4549dc-0x0;let _0x23e769=_0x3cdf[_0x4549dc];return _0x23e769;};import{CKEditorError as _0x142636,Rect as _0x3e4b9,Collection as _0x23d03f,ObservableMixin as _0x1c9683}from'ckeditor5/src/utils';export default class d extends _0x1c9683(){constructor({view:_0x4f71a2,target:_0xc75823,type:_0x28a2ae,isVisible:_0x2322b6=!0x0}){super(),this[_0x23e7('0x17')]=_0x4f71a2,this[_0x23e7('0x17')][_0x23e7('0xb')]||this[_0x23e7('0x17')][_0x23e7('0x13')](),this[_0x23e7('0x2')]=_0x28a2ae,this[_0x23e7('0x9')]=_0xc75823,d[_0x23e7('0xc')](this['_getNormalizedTarget']()),this[_0x23e7('0x19')]=new _0x23d03f([this['view'][_0x23e7('0xb')]],{'idProperty':'_id'}),this[_0x23e7('0x19')]['on'](_0x23e7('0x5'),(_0x2b91c5,_0x30bd56)=>{this[_0x23e7('0x17')][_0x23e7('0x4')][_0x23e7('0x5')](_0x30bd56);}),this[_0x23e7('0x19')]['on'](_0x23e7('0xa'),(_0xd0d590,_0x57eefb)=>{this[_0x23e7('0x17')][_0x23e7('0x4')][_0x23e7('0xa')](_0x57eefb);}),this[_0x23e7('0x15')](_0x23e7('0xf'),_0x2322b6);}get[_0x23e7('0xd')](){return _0x23e7('0x18')==typeof this[_0x23e7('0x2')]?this[_0x23e7('0x2')]():this[_0x23e7('0x2')];}get['innerView'](){return this[_0x23e7('0x17')][_0x23e7('0x12')];}get[_0x23e7('0x6')](){const _0x27f66d=this[_0x23e7('0x11')]();return d[_0x23e7('0xc')](_0x27f66d),_0x27f66d;}get['targetRect'](){const _0x147b48=this[_0x23e7('0x6')];if(null===_0x147b48)return null;if(_0x147b48 instanceof _0x3e4b9)return _0x147b48;const _0x3627cb=_0x147b48[_0x23e7('0x16')](_0x43b392=>function(_0xc757b3){const _0x2c6240=_0xc757b3[_0x23e7('0x1a')];if(_0x2c6240)return!0x0;const _0x5ddc53=_0xc757b3[_0x23e7('0x14')]()[_0x23e7('0x1')](0x0);return!!_0x5ddc53;}(_0x43b392));return 0x0===_0x3627cb['length']?null:new _0x3e4b9(_0x3627cb[0x0][_0x23e7('0x14')]()['item'](0x0));}get[_0x23e7('0x7')](){return this[_0x23e7('0x17')][_0x23e7('0x7')];}set[_0x23e7('0x7')](_0x57cdc2){this['view'][_0x23e7('0x7')]=_0x57cdc2,this[_0x23e7('0x17')][_0x23e7('0x12')]['isActive']=_0x57cdc2;}['updateTargetRect'](){this[_0x23e7('0x17')][_0x23e7('0x1b')]=this['targetRect'];}[_0x23e7('0x3')](){this[_0x23e7('0x19')]['stopListening'](),this['focusableElements']['clear'](),this[_0x23e7('0x10')]();}['refreshVisibility'](){this[_0x23e7('0xf')]=!!this[_0x23e7('0x1b')];}static[_0x23e7('0xc')](_0x4371b2){if(!(null===_0x4371b2||_0x4371b2 instanceof _0x3e4b9||Array[_0x23e7('0xe')](_0x4371b2)&&_0x4371b2['every'](_0x3bd997=>y(_0x3bd997))))throw new _0x142636(_0x23e7('0x8'),null,{'target':_0x4371b2});}[_0x23e7('0x11')](){const _0x51c1e9=_0x23e7('0x18')==typeof this[_0x23e7('0x9')]?this[_0x23e7('0x9')]():this[_0x23e7('0x9')];return y(_0x51c1e9)?[_0x51c1e9]:_0x51c1e9;}}function y(_0x3276e9){return null!==_0x3276e9&&_0x23e7('0x0')==typeof _0x3276e9&&'nodeType'in _0x3276e9&&0x1===_0x3276e9['nodeType'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15a4=['set','updateTargetRect','get','getIndex','annotationcollection-duplicated-item','destroy','stopListening','_getOrderInContent','getByView','_sort','has','listenTo','length','innerView','from','change:isFocused','top','_innerViewToAnnotation','_focusTracker','delete','_viewToAnnotation','focus','annotationcollection-not-existing-item','view','focusableElements','focusTracker','remove','isFocused','fire','clear','add','targetRect'];(function(_0xbc019f,_0x15a497){const _0x102c61=function(_0x7e944f){while(--_0x7e944f){_0xbc019f['push'](_0xbc019f['shift']());}};_0x102c61(++_0x15a497);}(_0x15a4,0x95));const _0x102c=function(_0xbc019f,_0x15a497){_0xbc019f=_0xbc019f-0x0;let _0x102c61=_0x15a4[_0xbc019f];return _0x102c61;};import{CKEditorError as _0x4d2df6,Collection as _0x248c32,FocusTracker as _0x2a84c1}from'ckeditor5/src/utils';export default class x extends _0x248c32{constructor(_0xc44b85=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x102c('0x1f')]=new Map(),this[_0x102c('0x1d')]=new _0x2a84c1(),this[_0x102c('0x1d')]['on'](_0x102c('0x1a'),(_0x49214c,_0x27176e,_0x181b12)=>{_0x181b12||this[_0x102c('0x7')]('blur');});for(const _0x2e5ebe of _0xc44b85)this['add'](_0x2e5ebe);}get[_0x102c('0x6')](){return this[_0x102c('0x1d')][_0x102c('0x6')];}[_0x102c('0x9')](_0x4b4426){if(this[_0x102c('0x15')](_0x4b4426))throw new _0x4d2df6(_0x102c('0xf'),null);this[_0x102c('0x1c')][_0x102c('0xb')](_0x4b4426['innerView'],_0x4b4426),this[_0x102c('0x1f')][_0x102c('0xb')](_0x4b4426[_0x102c('0x2')],_0x4b4426);for(const _0x20062c of _0x4b4426['focusableElements'])this['_focusTracker'][_0x102c('0x9')](_0x20062c);this['listenTo'](_0x4b4426[_0x102c('0x3')],_0x102c('0x9'),(_0x2b81f4,_0x44b89b)=>{this[_0x102c('0x1d')][_0x102c('0x9')](_0x44b89b);}),this[_0x102c('0x16')](_0x4b4426[_0x102c('0x3')],_0x102c('0x5'),(_0xc3ed81,_0x17dcac)=>{this['_focusTracker'][_0x102c('0x5')](_0x17dcac);}),this[_0x102c('0x16')](_0x4b4426[_0x102c('0x2')][_0x102c('0x4')],'change:isFocused',(_0x831879,_0x2de9b9,_0x46b3cb)=>{_0x46b3cb&&this['fire'](_0x102c('0x0'),_0x4b4426);}),_0x4b4426[_0x102c('0xc')]();const _0x3e08e2=this[_0x102c('0x12')](_0x4b4426[_0x102c('0x2')][_0x102c('0xa')]);return super['add'](_0x4b4426,_0x3e08e2);}[_0x102c('0x5')](_0x5253c5){if(!this[_0x102c('0x15')](_0x5253c5))throw new _0x4d2df6(_0x102c('0x1'),null);this[_0x102c('0x11')](_0x5253c5[_0x102c('0x2')]['focusTracker']),this['stopListening'](_0x5253c5[_0x102c('0x3')]);for(const _0x1c0ced of _0x5253c5['focusableElements'])this['_focusTracker'][_0x102c('0x5')](_0x1c0ced);return this['_viewToAnnotation'][_0x102c('0x1e')](_0x5253c5[_0x102c('0x2')]),this[_0x102c('0x1c')][_0x102c('0x1e')](_0x5253c5[_0x102c('0x18')]),super['remove'](_0x5253c5);}['getByInnerView'](_0x44e6af){return this[_0x102c('0x1c')]['get'](_0x44e6af);}[_0x102c('0x13')](_0x469dae){return this['_viewToAnnotation'][_0x102c('0xd')](_0x469dae);}['destroy'](){super['clear'](),this[_0x102c('0x11')](),this[_0x102c('0x1c')][_0x102c('0x8')](),this[_0x102c('0x1f')][_0x102c('0x8')](),this['_focusTracker'][_0x102c('0x10')]();}['refreshPositioning'](){for(const _0x18c090 of this)_0x18c090[_0x102c('0xc')]();this[_0x102c('0x14')]();}[_0x102c('0x14')](){const _0x22e13f=Array[_0x102c('0x19')](this)['sort']((_0x540287,_0x3c9912)=>v(_0x540287['view'][_0x102c('0xa')],_0x3c9912[_0x102c('0x2')][_0x102c('0xa')]));for(let _0x3a7f55=_0x22e13f[_0x102c('0x17')]-0x1;_0x3a7f55>0x0;_0x3a7f55--){const _0x4a642d=_0x22e13f[_0x3a7f55];_0x3a7f55!==this[_0x102c('0xe')](_0x4a642d)&&(this[_0x102c('0x5')](_0x4a642d),this['add'](_0x4a642d));}}[_0x102c('0x12')](_0x16db59){let _0x2cf4e0=0x0;if(!_0x16db59)return this['length'];for(const _0x5df71a of this){const _0x28b97e=_0x5df71a['view'][_0x102c('0xa')];if(_0x28b97e){if(v(_0x16db59,_0x28b97e)<0x0)return _0x2cf4e0;_0x2cf4e0++;}}return _0x2cf4e0;}}export function bindAnnotationCollections({source:_0x22264a,target:_0xdac2de,filter:_0x2ff36f}){for(const _0x41d386 of _0x22264a)_0x2ff36f(_0x41d386)&&_0xdac2de[_0x102c('0x9')](_0x41d386);_0xdac2de[_0x102c('0x16')](_0x22264a,'add',(_0x4b35c8,_0x2bea95)=>{_0x2ff36f(_0x2bea95)&&_0xdac2de[_0x102c('0x9')](_0x2bea95);}),_0xdac2de[_0x102c('0x16')](_0x22264a,_0x102c('0x5'),(_0x1a78cf,_0x40ed0d)=>{_0xdac2de[_0x102c('0x15')](_0x40ed0d)&&_0xdac2de[_0x102c('0x5')](_0x40ed0d);});}function v(_0x23d308,_0x321b87){if(null===_0x23d308&&null===_0x321b87)return 0x0;if(null===_0x23d308)return-0x1;if(null===_0x321b87)return 0x1;const _0x5bc612=_0x23d308[_0x102c('0x1b')]-_0x321b87[_0x102c('0x1b')];return 0x0==_0x5bc612?_0x23d308['left']-_0x321b87['left']:_0x5bc612;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5cc8=['listenTo','_removeActiveAnnotation','collection','_addActiveAnnotation','createAnnotationView','createAnnotation','activeAnnotations','has','_visibleAnnotations','refreshPositioning','element','deactivateAll','activate','destroy','focusTracker','remove','isVisible','delete','_deactivateAllAnnotations','fire','view','change:isVisible','add','getByInnerView','source'];(function(_0x2831a9,_0x5cc8f1){const _0x38b916=function(_0x24220c){while(--_0x24220c){_0x2831a9['push'](_0x2831a9['shift']());}};_0x38b916(++_0x5cc8f1);}(_0x5cc8,0x10c));const _0x38b9=function(_0x2831a9,_0x5cc8f1){_0x2831a9=_0x2831a9-0x0;let _0x38b916=_0x5cc8[_0x2831a9];return _0x38b916;};import{ContextPlugin as _0x436c79}from'ckeditor5/src/core';import _0x3e137d from'./annotation';import _0x4035be from'./annotationcollection';import _0x3ad7ff from'./view/annotationview';export default class b extends _0x436c79{static get['pluginName'](){return'Annotations';}constructor(_0x5ec1fc){super(_0x5ec1fc),this[_0x38b9('0x9')]=new _0x4035be(),this[_0x38b9('0xf')]=new _0x4035be(),this['set'](_0x38b9('0xd'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x38b9('0x4')](_0x4d62bc){this[_0x38b9('0x9')]['add'](_0x4d62bc);}[_0x38b9('0x16')](_0x34587b){this[_0x38b9('0x9')]['remove'](_0x34587b),_0x34587b[_0x38b9('0x14')]();}['refreshVisibility'](){for(const _0x2cb5e4 of this[_0x38b9('0x9')])_0x2cb5e4['refreshVisibility']();}[_0x38b9('0x10')](){this['_visibleAnnotations']['refreshPositioning']();}[_0x38b9('0x5')](_0x576f5b){return this[_0x38b9('0x9')][_0x38b9('0x5')](_0x576f5b);}[_0x38b9('0x12')](){this[_0x38b9('0x1')](_0x38b9('0x0'));}[_0x38b9('0x14')](){for(const _0x104397 of this[_0x38b9('0x9')])_0x104397[_0x38b9('0x14')]();this[_0x38b9('0xf')][_0x38b9('0x14')](),this[_0x38b9('0x9')][_0x38b9('0x14')](),super['destroy']();}[_0x38b9('0x13')](_0x4817d1){this[_0x38b9('0x1')]('_activateAnnotation',_0x4817d1);}[_0x38b9('0xc')](_0x3bf864){return new _0x3e137d(_0x3bf864);}[_0x38b9('0xb')](_0x77ec9f,_0x8fdc20){return new _0x3ad7ff(_0x77ec9f,_0x8fdc20);}[_0x38b9('0xa')](_0x448a0e){const _0x3541f8=new Set(this[_0x38b9('0xd')]);_0x3541f8[_0x38b9('0x4')](_0x448a0e),this[_0x38b9('0xd')]=_0x3541f8;}[_0x38b9('0x8')](_0x206003){const _0x3649cd=new Set(this['activeAnnotations']);_0x3649cd[_0x38b9('0x18')](_0x206003),this['activeAnnotations']=_0x3649cd;}['_bindAnnotationsToVisibleAnnotations'](){const _0x3c7fd9=this[_0x38b9('0x9')],_0x2431fd=this[_0x38b9('0xf')];function _0x57787c(_0x132d2a){const _0x42e281=_0x132d2a[_0x38b9('0x6')];_0x42e281[_0x38b9('0x17')]&&!_0x2431fd['has'](_0x42e281)?_0x2431fd[_0x38b9('0x4')](_0x42e281):!_0x42e281[_0x38b9('0x17')]&&_0x2431fd[_0x38b9('0xe')](_0x42e281)&&_0x2431fd['remove'](_0x42e281),_0x42e281[_0x38b9('0x2')]['focusTracker'][_0x38b9('0x16')](_0x42e281[_0x38b9('0x2')]['element']),_0x42e281['view'][_0x38b9('0x15')]['add'](_0x42e281[_0x38b9('0x2')][_0x38b9('0x11')]);}this[_0x38b9('0x7')](_0x3c7fd9,'add',(_0x9b669,_0x349104)=>{_0x349104[_0x38b9('0x17')]&&_0x2431fd[_0x38b9('0x4')](_0x349104),this[_0x38b9('0x7')](_0x349104,_0x38b9('0x3'),_0x57787c);}),this[_0x38b9('0x7')](_0x3c7fd9,_0x38b9('0x16'),(_0x3bb859,_0x1d3c27)=>{_0x2431fd[_0x38b9('0xe')](_0x1d3c27)&&_0x2431fd[_0x38b9('0x16')](_0x1d3c27),this['stopListening'](_0x1d3c27,_0x38b9('0x3'),_0x57787c);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e79=['detach','activeUIs','_uis','change:activeAnnotation','push','isActive','_visibleAnnotations','refilterAnnotations','deactivateAll','annotationsuis-register-invalid-interface','context','type','register','hasActive','remove','destroy','_uisData','activate','stopListening','find','_assertAnnotationDoesNotBelongToMultipleUIs','setActiveAnnotation','plugins','AnnotationsUIs','delete','deactivate','_activateAnnotation','_setSelectedAnnotations','filter','collection','has','requires','get','from','listenTo','annotationsuis-missing-ui','size','pluginName','attach','function','_removeActiveAnnotation','add'];(function(_0x4f890f,_0x4e7939){const _0x1a925a=function(_0x40dabf){while(--_0x40dabf){_0x4f890f['push'](_0x4f890f['shift']());}};_0x1a925a(++_0x4e7939);}(_0x4e79,0x1b2));const _0x1a92=function(_0x4f890f,_0x4e7939){_0x4f890f=_0x4f890f-0x0;let _0x1a925a=_0x4e79[_0x4f890f];return _0x1a925a;};import{ContextPlugin as _0x302e57}from'ckeditor5/src/core';import{CKEditorError as _0x2c3cd7}from'ckeditor5/src/utils';import _0x3424e6,{bindAnnotationCollections as _0x24f7e4}from'./annotationcollection';import _0x3b30a3 from'./annotations';export default class M extends _0x302e57{static get[_0x1a92('0x11')](){return[_0x3b30a3];}static get[_0x1a92('0x17')](){return _0x1a92('0x9');}constructor(_0x4058bd){super(_0x4058bd),this[_0x1a92('0x1d')]=new Set(),this['_uis']=new Map(),this[_0x1a92('0x2')]=new Map();}['init'](){const _0x57081a=this['context'][_0x1a92('0x8')]['get'](_0x3b30a3);this[_0x1a92('0x14')](_0x57081a,_0x1a92('0xc'),(_0x362205,_0x4fced3)=>{for(const _0x314fd9 of this[_0x1a92('0x1d')]){const _0x1675c2=this['_uis'][_0x1a92('0x12')](_0x314fd9);(0x0,this[_0x1a92('0x2')][_0x1a92('0x12')](_0x314fd9)[_0x1a92('0xe')])(_0x4fced3)&&_0x1675c2['setActiveAnnotation'](_0x4fced3);}}),this['listenTo'](_0x57081a,'_deactivateAllAnnotations',()=>{for(const _0x24bf6c of this['activeUIs']){this[_0x1a92('0x1e')]['get'](_0x24bf6c)[_0x1a92('0x7')](null);}}),this[_0x1a92('0x14')](_0x57081a['_visibleAnnotations'],_0x1a92('0x1b'),(_0x2c7cc4,_0x501940)=>{this[_0x1a92('0x6')](_0x501940);});}[_0x1a92('0x29')](){return this[_0x1a92('0x1d')][_0x1a92('0x16')]>0x0;}[_0x1a92('0x21')](_0x36d3d0){return this['activeUIs'][_0x1a92('0x10')](_0x36d3d0);}[_0x1a92('0x3')](_0x1cbb87,_0x590279=()=>!0x0){const _0x327550=this['context']['plugins']['get'](_0x3b30a3);if(!this['_uis'][_0x1a92('0x10')](_0x1cbb87))throw new _0x2c3cd7(_0x1a92('0x15'),this,{'uiName':_0x1cbb87});this[_0x1a92('0x21')](_0x1cbb87)&&this[_0x1a92('0xb')](_0x1cbb87),this[_0x1a92('0x1d')][_0x1a92('0x1b')](_0x1cbb87);const _0x1c6e3d=new _0x3424e6(),_0x1aac34=_0x327550[_0x1a92('0x22')];_0x24f7e4({'source':_0x1aac34,'target':_0x1c6e3d,'filter':_0x590279}),this[_0x1a92('0x2')]['set'](_0x1cbb87,{'collection':_0x1c6e3d,'filter':_0x590279});const _0x544a2d=this[_0x1a92('0x1e')][_0x1a92('0x12')](_0x1cbb87);_0x544a2d[_0x1a92('0x18')](_0x1c6e3d),this[_0x1a92('0x14')](_0x544a2d,_0x1a92('0x1f'),(_0x440a68,_0x5c0f38,_0xdd170c,_0x9b74b4)=>{_0x9b74b4&&_0x327550[_0x1a92('0x1a')](_0x9b74b4),_0xdd170c&&_0x327550['_addActiveAnnotation'](_0xdd170c);});}[_0x1a92('0xb')](_0x3f06ea){if(this[_0x1a92('0x1d')][_0x1a92('0xa')](_0x3f06ea),!this[_0x1a92('0x1e')][_0x1a92('0x10')](_0x3f06ea))throw new _0x2c3cd7('annotationsuis-missing-ui',this,{'uiName':_0x3f06ea});const _0x1faf0d=this[_0x1a92('0x1e')][_0x1a92('0x12')](_0x3f06ea);_0x1faf0d['detach'](),this[_0x1a92('0x4')](_0x1faf0d),this['_uisData'][_0x1a92('0x12')](_0x3f06ea)[_0x1a92('0xf')][_0x1a92('0x1')](),this[_0x1a92('0x2')][_0x1a92('0xa')](_0x3f06ea);}['switchTo'](_0x21fa88){if(!this[_0x1a92('0x1e')]['has'](_0x21fa88))throw new _0x2c3cd7('annotationsuis-missing-ui',this,{'uiName':_0x21fa88});const _0x5de419=this[_0x1a92('0x26')][_0x1a92('0x8')][_0x1a92('0x12')](_0x3b30a3),_0x25d23a=Array[_0x1a92('0x13')](_0x5de419['activeAnnotations'])[0x0]||null;this[_0x1a92('0x24')](),this[_0x1a92('0x3')](_0x21fa88);const _0x208fb3=this[_0x1a92('0x1e')][_0x1a92('0x12')](_0x21fa88);_0x208fb3[_0x1a92('0x7')](_0x25d23a),_0x208fb3[_0x1a92('0xd')]&&_0x25d23a&&_0x208fb3[_0x1a92('0xd')]([_0x25d23a]);}[_0x1a92('0x24')](){for(const _0x561e34 of this[_0x1a92('0x1d')])this['deactivate'](_0x561e34);}[_0x1a92('0x28')](_0x59529e,_0x5ddbcf){if(this[_0x1a92('0x1e')][_0x1a92('0x10')](_0x59529e))throw new _0x2c3cd7('annotationsuis-register-already-registered');if(_0x1a92('0x19')!=typeof _0x5ddbcf[_0x1a92('0x18')]||_0x1a92('0x19')!=typeof _0x5ddbcf[_0x1a92('0x1c')]||_0x1a92('0x19')!=typeof _0x5ddbcf[_0x1a92('0x7')])throw new _0x2c3cd7(_0x1a92('0x25'),null);this[_0x1a92('0x1e')]['set'](_0x59529e,_0x5ddbcf);}[_0x1a92('0x23')](){const _0x41a73f=this[_0x1a92('0x26')]['plugins']['get'](_0x3b30a3)['collection'],_0x2f8f37=new Map(),_0x72c63d=Array['from'](this[_0x1a92('0x1d')]);for(const _0x129197 of this['activeUIs']){const _0x3f118d=this[_0x1a92('0x2')]['get'](_0x129197)[_0x1a92('0xf')];for(const _0x1a969e of _0x3f118d)_0x2f8f37['set'](_0x1a969e,_0x129197);}for(const _0x977de3 of _0x41a73f){const _0x3e446d=_0x2f8f37[_0x1a92('0x12')](_0x977de3);this[_0x1a92('0x6')](_0x977de3);const _0x11da4d=_0x72c63d[_0x1a92('0x5')](_0x4d2215=>this['_uisData'][_0x1a92('0x12')](_0x4d2215)['filter'](_0x977de3));_0x3e446d!==_0x11da4d&&(_0x3e446d&&this['_uisData'][_0x1a92('0x12')](_0x3e446d)[_0x1a92('0xf')][_0x1a92('0x0')](_0x977de3),_0x11da4d&&this[_0x1a92('0x2')][_0x1a92('0x12')](_0x11da4d)[_0x1a92('0xf')][_0x1a92('0x1b')](_0x977de3));}}[_0x1a92('0x1')](){this[_0x1a92('0x24')](),super[_0x1a92('0x1')]();}[_0x1a92('0x6')](_0x22c464){const _0x532bfe=[];for(const _0xa5071d of this[_0x1a92('0x1d')]){(0x0,this[_0x1a92('0x2')][_0x1a92('0x12')](_0xa5071d)[_0x1a92('0xe')])(_0x22c464)&&_0x532bfe[_0x1a92('0x20')](_0xa5071d);}if(_0x532bfe['length']>0x1)throw new _0x2c3cd7('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x532bfe,'annotationType':_0x22c464[_0x1a92('0x27')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x163c=['has','element','_editorAnnotations','getOrderedSelectedAnnotations','pluginName','uiUpdate','set','view','push','directChange','map','change:range','editing','addSourceCollector','selection','EditorAnnotations','sort','fire','blur','registerAnnotation','range','getByInnerView','document','from','_editorAnnotationsData','editor','refreshSelectedViews','change:isFocused','isCollapsed','remove','innerView','focusTracker','requires','getRanges','init','isReadOnly','collection','delete','annotation','listenTo','update','plugins','cancel','containsRange','hasDomSelection','add','function'];(function(_0x391b54,_0x163c13){const _0x4f961e=function(_0x4eef13){while(--_0x4eef13){_0x391b54['push'](_0x391b54['shift']());}};_0x4f961e(++_0x163c13);}(_0x163c,0x154));const _0x4f96=function(_0x391b54,_0x163c13){_0x391b54=_0x391b54-0x0;let _0x4f961e=_0x163c[_0x391b54];return _0x4f961e;};import{Plugin as _0x1827ba}from'ckeditor5/src/core';import{CKEditorError as _0x3427a2}from'ckeditor5/src/utils';import{debounce as _0x57faaf}from'lodash-es';import _0x1d888b from'./annotations';export default class k extends _0x1827ba{static get[_0x4f96('0x15')](){return[_0x1d888b];}static get[_0x4f96('0x28')](){return _0x4f96('0x4');}constructor(_0x55fcbf){super(_0x55fcbf),this['_dataCollectors']=new Set(),this[_0x4f96('0x26')]=new Set();}[_0x4f96('0x17')](){const _0x2e799d=this[_0x4f96('0xe')],_0x7467f1=_0x2e799d['model'][_0x4f96('0xb')][_0x4f96('0x3')],_0x2be00e=_0x57faaf(()=>this[_0x4f96('0xf')](),0xa);_0x7467f1['on'](_0x4f96('0x0'),(_0x486c58,_0x12ca9b)=>{_0x12ca9b[_0x4f96('0x2d')]&&(_0x2be00e[_0x4f96('0x1f')](),this['refreshSelectedViews']());}),this[_0x4f96('0x1c')](_0x2e799d[_0x4f96('0x1')][_0x4f96('0x2b')]['document'],_0x4f96('0x10'),(_0x1e7621,_0x11b6f6,_0x15970c)=>{_0x15970c&&_0x2be00e();}),this['listenTo'](_0x2e799d['ui'][_0x4f96('0x14')],_0x4f96('0x10'),(_0x3fef2d,_0x10ac64,_0x59608a)=>{_0x59608a||_0x2e799d[_0x4f96('0x18')]||this[_0x4f96('0x6')](_0x4f96('0x7'),{'isAnnotationTracked':_0x100869=>this[_0x4f96('0xd')][_0x4f96('0x24')](_0x100869[_0x4f96('0x13')])});}),this[_0x4f96('0x1c')](this[_0x4f96('0xe')]['ui'],_0x4f96('0x1d'),()=>this[_0x4f96('0x6')](_0x4f96('0x29')));}[_0x4f96('0x8')](_0x4041a7){if(this[_0x4f96('0x26')]['has'](_0x4041a7[_0x4f96('0x2b')]))return;this[_0x4f96('0x26')][_0x4f96('0x22')](_0x4041a7[_0x4f96('0x2b')]),this[_0x4f96('0xe')]['ui'][_0x4f96('0x14')][_0x4f96('0x22')](_0x4041a7[_0x4f96('0x2b')][_0x4f96('0x25')]);const _0x58a0b6=this[_0x4f96('0xe')][_0x4f96('0x1e')]['get'](_0x1d888b);this[_0x4f96('0x1c')](_0x58a0b6[_0x4f96('0x19')],_0x4f96('0x12'),(_0x279eeb,_0xd8baa6)=>{this['editor']['ui']['focusTracker']['remove'](_0xd8baa6['view'][_0x4f96('0x25')]),this[_0x4f96('0x26')][_0x4f96('0x1a')](_0xd8baa6[_0x4f96('0x2b')]);});}['hasDomSelection'](){return this[_0x4f96('0xe')][_0x4f96('0x1')]['view'][_0x4f96('0x21')];}[_0x4f96('0x2')](_0x2d0b5c){if(_0x4f96('0x23')!=typeof _0x2d0b5c)throw new _0x3427a2('editorannotations-invalid-source-callback');this['_dataCollectors'][_0x4f96('0x22')](_0x2d0b5c);}[_0x4f96('0xf')](){this[_0x4f96('0x6')]('refresh');}[_0x4f96('0x27')]({activeAnnotation:_0x4d5c24,annotations:_0x22bda1}){const _0x47eec4=[],_0x2523b8=this[_0x4f96('0xe')]['model'][_0x4f96('0xb')][_0x4f96('0x3')],_0x4a0d87=Array[_0x4f96('0xc')](_0x2523b8[_0x4f96('0x16')]());for(const [_0x84015f,_0x9816ab]of this[_0x4f96('0xd')]){const _0x48b97c=_0x1d3bcc(_0x9816ab),_0x23f5b2=_0x22bda1[_0x4f96('0xa')](_0x84015f);_0x48b97c&&_0x23f5b2&&_0x47eec4[_0x4f96('0x2c')]({'annotation':_0x23f5b2,'range':_0x48b97c});}function _0x1d3bcc(_0x4fb817){for(const _0x34125d of _0x4fb817)for(const _0x3636c9 of _0x4a0d87)if(_0x34125d[_0x4f96('0x20')](_0x3636c9,!_0x2523b8[_0x4f96('0x11')]))return _0x34125d;return null;}return _0x47eec4[_0x4f96('0x5')]((_0x49f9f3,_0x21551a)=>{const _0x10b387=_0x49f9f3[_0x4f96('0x9')],_0x4b9740=_0x21551a[_0x4f96('0x9')];if(!_0x10b387['isEqual'](_0x4b9740)){if(_0x10b387[_0x4f96('0x20')](_0x4b9740,!0x0))return 0x1;if(_0x4b9740[_0x4f96('0x20')](_0x10b387,!0x0))return-0x1;}return _0x49f9f3[_0x4f96('0x1b')]==_0x4d5c24?-0x1:_0x21551a[_0x4f96('0x1b')]==_0x4d5c24?0x1:0x0;})[_0x4f96('0x2e')](_0x11568f=>_0x11568f[_0x4f96('0x1b')]);}get[_0x4f96('0xd')](){const _0x2956af=new Map();for(const _0xca6a5c of Array[_0x4f96('0xc')](this['_dataCollectors']))for(const [_0x4a2348,_0x5f4919]of _0xca6a5c())_0x2956af[_0x4f96('0x2a')](_0x4a2348,_0x5f4919);return _0x2956af;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe361=['listenTo','init','collapse','keystrokes','updatePosition','pluginName','focusTracker','inlineannotations-attach-already-attached','inlineannotations-not-allowed-with-context','register','_removeAnnotationFromBalloon','document','width','bottom','getClientRects','push','add','mousedown','top','afterInit','from','getBoundingClientRect','setActiveAnnotation','showStack','editing','has','change:height','plugins','context','editableElement','getOrderedSelectedAnnotations','visibleView','find','_addAnnotationToBalloon','switchTo','InlineAnnotations','blur','inline','inlineannotations-detach-not-attached','domConverter','detach','delete','isFocused','isAttached','every','right','change:isFocused','stopListening','editor','addObserver','_selectedAnnotations','_setSelectedAnnotations','Esc','_closeAnnotation','annotations','focus','map','_addedAnnotations','get','set','destroy','_manuallyClosed','left','includes','hasView','clear','isActive','activeAnnotation','length','remove','attach','_forceRefresh','selection','getFirstRange','change:visibleView','_balloon','view','_getBalloonTargetForAnnotation','targetRect','target','getByView','requires'];(function(_0x155382,_0xe361aa){const _0x163861=function(_0x4db589){while(--_0x4db589){_0x155382['push'](_0x155382['shift']());}};_0x163861(++_0xe361aa);}(_0xe361,0xbd));const _0x1638=function(_0x155382,_0xe361aa){_0x155382=_0x155382-0x0;let _0x163861=_0xe361[_0x155382];return _0x163861;};import{Plugin as _0x5cfb8e}from'ckeditor5/src/core';import _0x1daefd from'./annotationsuis';import _0x20efa7 from'./editorannotations';import{ContextualBalloon as _0x11fd85}from'ckeditor5/src/ui';import{MouseObserver as _0x417ab2}from'ckeditor5/src/engine';import{CKEditorError as _0x33c876,Rect as _0x539b7f}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x5cfb8e{static get[_0x1638('0x38')](){return[_0x20efa7,_0x11fd85,_0x1daefd];}static get[_0x1638('0x3e')](){return _0x1638('0xa');}constructor(_0x884e38){super(_0x884e38),_0x884e38[_0x1638('0x51')][_0x1638('0x33')][_0x1638('0x18')](_0x417ab2),this[_0x1638('0x12')]=!0x1,this[_0x1638('0x22')](_0x1638('0x2a'),null),this[_0x1638('0x1d')]=null,this[_0x1638('0x24')]=new Set(),this[_0x1638('0x32')]=_0x884e38[_0x1638('0x2')][_0x1638('0x21')](_0x11fd85),this[_0x1638('0x20')]=new Set(),this[_0x1638('0x19')]=[],this['_forceRefresh']=!0x1;}[_0x1638('0x3a')](){const _0x248b18=this[_0x1638('0x17')][_0x1638('0x2')][_0x1638('0x21')](_0x1daefd);_0x248b18[_0x1638('0x3')]===this[_0x1638('0x17')]&&(_0x248b18[_0x1638('0x42')](_0x1638('0xc'),this),this['editor'][_0x1638('0x3c')]['set'](_0x1638('0x1b'),(_0x2e2916,_0x308d8d)=>{const _0x43d61c=this[_0x1638('0x32')];if(this[_0x1638('0x12')]&&_0x43d61c['visibleView']){const _0x12df36=this[_0x1638('0x1d')][_0x1638('0x37')](_0x43d61c[_0x1638('0x6')]);_0x12df36&&this[_0x1638('0x1c')](_0x12df36),_0x308d8d();}}));}[_0x1638('0x4c')](){const _0x5d1e62=this[_0x1638('0x17')]['plugins']['get'](_0x1daefd);_0x5d1e62[_0x1638('0x3')]===this[_0x1638('0x17')]&&(_0x5d1e62['hasActive']()||_0x5d1e62[_0x1638('0x9')]('inline'));}['setActiveAnnotation'](_0x31d42a){_0x31d42a!==this[_0x1638('0x2a')]&&(this[_0x1638('0x2a')]&&(this[_0x1638('0x2a')][_0x1638('0x29')]=!0x1),_0x31d42a&&this[_0x1638('0x17')]['ui'][_0x1638('0x3f')]['isFocused']&&(this[_0x1638('0x1d')][_0x1638('0x0')](_0x31d42a)&&this['_addAnnotationToBalloon'](_0x31d42a,!0x0),_0x31d42a['isActive']=!0x0),_0x31d42a||this[_0x1638('0x1a')]([]),this[_0x1638('0x2a')]=_0x31d42a);}[_0x1638('0x2d')](_0x2aa459){this[_0x1638('0x1d')]=_0x2aa459;const _0x2b509b=this[_0x1638('0x17')][_0x1638('0x2')]['get'](_0x1daefd),_0x4c2fa8=this['_balloon'];if(this[_0x1638('0x12')])throw new _0x33c876(_0x1638('0x40'),this);if(_0x2b509b[_0x1638('0x3')]!==this[_0x1638('0x17')])throw new _0x33c876(_0x1638('0x41'),this);const _0x3cbb33=this[_0x1638('0x17')][_0x1638('0x2')][_0x1638('0x21')](_0x20efa7);this[_0x1638('0x39')](_0x3cbb33,'refresh',()=>{const _0x51820e=_0x3cbb33[_0x1638('0x5')]({'annotations':this['annotations'],'activeAnnotation':this[_0x1638('0x2a')]});var _0x802d40,_0x57eae5;!this['_forceRefresh']&&(_0x802d40=_0x51820e,_0x57eae5=this[_0x1638('0x19')],_0x802d40[_0x1638('0x2b')]===_0x57eae5[_0x1638('0x2b')]&&_0x802d40[_0x1638('0x13')](_0x27cb51=>_0x57eae5[_0x1638('0x26')](_0x27cb51)))||(this[_0x1638('0x2e')]=!0x1,this['_setSelectedAnnotations'](_0x51820e),this[_0x1638('0x4f')](_0x51820e[0x0]||null));}),this[_0x1638('0x39')](_0x3cbb33,_0x1638('0xb'),(_0x45573f,{isAnnotationTracked:_0x11e311})=>{this[_0x1638('0x2a')]&&_0x11e311(this[_0x1638('0x2a')])&&(this[_0x1638('0x1a')]([]),this[_0x1638('0x4f')](null));}),this[_0x1638('0x39')](this[_0x1638('0x17')]['ui'][_0x1638('0x3f')],_0x1638('0x15'),(_0x5038a8,_0x47e0b6,_0x4f7525)=>{_0x4f7525||this[_0x1638('0x4f')](null);}),this[_0x1638('0x39')](_0x2aa459,_0x1638('0x2c'),(_0x29c228,_0x33a686)=>{this['_removeAnnotationFromBalloon'](_0x33a686),_0x33a686===this[_0x1638('0x2a')]&&this['setActiveAnnotation'](null);}),this[_0x1638('0x39')](_0x4c2fa8,_0x1638('0x31'),(_0x2d20b7,_0x334fa9,_0x413696,_0x49b0fe)=>{_0x49b0fe&&this[_0x1638('0x16')](_0x49b0fe);const _0x200d64=_0x2aa459['getByView'](_0x413696);_0x413696&&_0x200d64&&(this['listenTo'](_0x413696,_0x1638('0x1'),()=>{_0x4c2fa8[_0x1638('0x3d')]();}),this['listenTo'](_0x413696,_0x1638('0x1b'),()=>{this[_0x1638('0x1c')](_0x200d64),this[_0x1638('0x17')][_0x1638('0x51')]['view'][_0x1638('0x1e')]();}),this['activeAnnotation']!==_0x200d64&&this[_0x1638('0x4f')](_0x200d64));}),this['listenTo'](this[_0x1638('0x17')]['ui'],'update',()=>{_0x4c2fa8[_0x1638('0x6')]&&(_0x2aa459['getByView'](_0x4c2fa8['visibleView'])&&_0x4c2fa8[_0x1638('0x3d')]());}),this[_0x1638('0x39')](this[_0x1638('0x17')][_0x1638('0x51')][_0x1638('0x33')][_0x1638('0x44')],_0x1638('0x4a'),()=>{this[_0x1638('0x2e')]=!0x0,this['_manuallyClosed'][_0x1638('0x28')]();}),this[_0x1638('0x17')]['editing'][_0x1638('0x33')][_0x1638('0x44')][_0x1638('0x2f')][_0x1638('0x4')]&&this[_0x1638('0x17')][_0x1638('0x51')][_0x1638('0x33')][_0x1638('0x1e')](),this['isAttached']=!0x0;}['detach'](){if(!this[_0x1638('0x12')])throw new _0x33c876(_0x1638('0xd'),this);this[_0x1638('0x4f')](null);for(const _0x115299 of this[_0x1638('0x20')])this['_removeAnnotationFromBalloon'](_0x115299);this['stopListening'](),this[_0x1638('0x12')]=!0x1,this[_0x1638('0x1d')]=null;}[_0x1638('0x23')](){this[_0x1638('0x12')]&&this[_0x1638('0xf')]();}[_0x1638('0x1a')](_0x318c50){for(const _0xd4080e of this[_0x1638('0x19')])_0x318c50[_0x1638('0x26')](_0xd4080e)||this[_0x1638('0x24')][_0x1638('0x10')](_0xd4080e);for(const _0x3c827e of this[_0x1638('0x1d')])_0x318c50['includes'](_0x3c827e)||this[_0x1638('0x43')](_0x3c827e);if(this[_0x1638('0x17')]['ui'][_0x1638('0x3f')][_0x1638('0x11')])for(const _0x5b01ea of _0x318c50)this[_0x1638('0x8')](_0x5b01ea);this[_0x1638('0x19')]=_0x318c50;}['_addAnnotationToBalloon'](_0x4bb5de,_0x22d1dc=!0x1){this[_0x1638('0x24')][_0x1638('0x0')](_0x4bb5de)||(this['_addedAnnotations'][_0x1638('0x0')](_0x4bb5de)||this[_0x1638('0x32')][_0x1638('0x27')](_0x4bb5de[_0x1638('0x33')])||(this[_0x1638('0x20')][_0x1638('0x49')](_0x4bb5de),this[_0x1638('0x32')][_0x1638('0x49')]({'stackId':_0x4bb5de['view']['id'],'view':_0x4bb5de[_0x1638('0x33')],'position':{'target':()=>this[_0x1638('0x34')](_0x4bb5de)}})),_0x22d1dc&&this[_0x1638('0x32')][_0x1638('0x50')](_0x4bb5de[_0x1638('0x33')]['id']));}['_getBalloonTargetForAnnotation'](_0x5da3fb){const _0x4e7798=_0x5da3fb[_0x1638('0x36')],_0x3a18e1=this['editor'][_0x1638('0x51')][_0x1638('0x33')],_0x2b7647=_0x3a18e1[_0x1638('0x44')][_0x1638('0x2f')][_0x1638('0x30')](),_0x31013a=_0x3a18e1[_0x1638('0xe')]['viewRangeToDom'](_0x2b7647);if(_0x31013a[_0x1638('0x3b')](!0x0),_0x4e7798){if(_0x4e7798 instanceof _0x539b7f)return _0x4e7798;let _0xcd409b=[];for(const _0x299890 of _0x4e7798)_0xcd409b[_0x1638('0x48')](...(_0x2f21ab=_0x299890[_0x1638('0x47')](),Array[_0x1638('0x4d')](_0x2f21ab)[_0x1638('0x1f')](DOMRect['fromRect'])));_0xcd409b=function(_0xa81f94){const _0x17abac=[];let _0x25488f=_0xa81f94[0x0];for(let _0x568692=0x1;_0x568692<_0xa81f94[_0x1638('0x2b')];_0x568692++)F(_0x25488f,_0xa81f94[_0x568692])?_0x25488f['width']+=_0xa81f94[_0x568692][_0x1638('0x45')]:(_0x17abac['push'](_0x25488f),_0x25488f=_0xa81f94[_0x568692]);return _0x17abac[_0x1638('0x48')](_0x25488f),_0x17abac;}(_0xcd409b);const _0x109ae0=_0x31013a[_0x1638('0x4e')]();return _0xcd409b[_0x1638('0x7')](_0x40e4dd=>_0x40e4dd[_0x1638('0x4b')]<=_0x109ae0['top']&&_0x40e4dd[_0x1638('0x46')]>=_0x109ae0[_0x1638('0x46')]&&_0x40e4dd[_0x1638('0x25')]<=_0x109ae0[_0x1638('0x25')]&&_0x40e4dd[_0x1638('0x14')]>=_0x109ae0[_0x1638('0x14')])||_0xcd409b[0x0];}var _0x2f21ab;return _0x5da3fb[_0x1638('0x35')]||_0x31013a;}[_0x1638('0x43')](_0x41f341){this[_0x1638('0x20')][_0x1638('0x0')](_0x41f341)&&this['_balloon'][_0x1638('0x27')](_0x41f341[_0x1638('0x33')])&&(this['_addedAnnotations'][_0x1638('0x10')](_0x41f341),this[_0x1638('0x32')][_0x1638('0x2c')](_0x41f341[_0x1638('0x33')]));}[_0x1638('0x1c')](_0x180206){this[_0x1638('0x24')]['add'](_0x180206),this['_removeAnnotationFromBalloon'](_0x180206);}}function F(_0xac85f5,_0x43cd79){return _0xac85f5[_0x1638('0x4b')]===_0x43cd79['top']&&_0xac85f5['bottom']===_0x43cd79[_0x1638('0x46')]&&_0xac85f5[_0x1638('0x14')]===_0x43cd79[_0x1638('0x25')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x12d0=['mousedown','getSidebarItemView','view','delete','_attachListeners','narrowSidebar','content','_integrateWithEditorAnnotations','ck-sidebar--narrow','add','NarrowSidebar','high','_refreshPositioning','resize','includes','_domEmitter','stopListening','southArrowNorthEast','refresh','_detachFromContainer','_setSelectedAnnotations','isVisible','_annotationToNarrowView','locale','execute','northArrowSouthWest','attach','detachFromDom','narrowsidebar-attach-already-attached','cancel','northArrowSouth','focus','length','_detachListeners','target','detach','register','stopPropagation','change:container','bodyCollection','blur','refreshPositioning','has','get','activeAnnotation','balloonPanelView','northArrowSouthEast','plugins','_refreshPositioningDebounced','pin','attachToDom','EditorAnnotations','clear','remove','keyCode','set:container','off','_updateBalloonPosition','requires','_attachToContainer','hasDomSelection','southArrowNorth','contains','from','element','unpin','editors','set','_selectedAnnotations','annotationType','create','listenTo','annotations','find','preventClosingBalloon','_showBalloon','_editorAnnotations','isAttached','_manuallyClosedAnnotationViews','focusableElements','stop','ready','getByView','_annotations','setActiveAnnotation','type','preventDefault','isDirty','narrowsidebar-detach-not-attached','_hideBalloon','_destroyEditorAnnotationsIntegration','southArrowNorthWest','first','low','uiUpdate','change:height','esc','addAnnotation','destroy','context'];(function(_0x164ab7,_0x12d0b8){const _0x1483fd=function(_0x3b323f){while(--_0x3b323f){_0x164ab7['push'](_0x164ab7['shift']());}};_0x1483fd(++_0x12d0b8);}(_0x12d0,0xc1));const _0x1483=function(_0x164ab7,_0x12d0b8){_0x164ab7=_0x164ab7-0x0;let _0x1483fd=_0x12d0[_0x164ab7];return _0x1483fd;};import{ContextPlugin as _0x5ca395,Context as _0x174b07}from'ckeditor5/src/core';import _0x517bc2 from'./annotationsuis';import _0x4ac170 from'./sidebar';import _0x5b093f from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0xc5f4b5,BodyCollection as _0x48e75a}from'ckeditor5/src/ui';import{CKEditorError as _0x2492b9,DomEmitterMixin as _0x455c8e,keyCodes as _0x22b592,Collection as _0x23e873}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x452575}from'lodash-es';import _0x284c7a from'./editorannotations';export default class s extends _0x5ca395{static get[_0x1483('0x41')](){return[_0x4ac170,_0x517bc2];}static get['pluginName'](){return _0x1483('0x11');}constructor(_0x401aac){super(_0x401aac),this[_0x1483('0x54')]=!0x1,this[_0x1483('0x55')]=new Set(),this['_domEmitter']=Object[_0x1483('0x4d')](_0x455c8e),this[_0x1483('0x1d')]=new Map(),this[_0x1483('0x4a')](_0x1483('0x33'),null),this[_0x1483('0x4f')]=null,this[_0x1483('0x4b')]=[],this[_0x1483('0x53')]=new _0x23e873(),this[_0x1483('0x37')]=_0x452575(()=>{this[_0x1483('0x13')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x1483('0x6')]['plugins']['get'](_0x517bc2)[_0x1483('0x2b')](_0x1483('0xc'),this),this[_0x1483('0x2e')]=new _0x48e75a(this[_0x1483('0x6')][_0x1483('0x1e')]),this[_0x1483('0x34')]=new _0xc5f4b5(this[_0x1483('0x6')]['locale']),this[_0x1483('0x2e')][_0x1483('0x39')](),this['bodyCollection'][_0x1483('0x10')](this[_0x1483('0x34')]);}[_0x1483('0x21')](_0x2a2f77){this[_0x1483('0x4f')]=_0x2a2f77;const _0xf9867d=this[_0x1483('0x6')][_0x1483('0x36')][_0x1483('0x32')](_0x4ac170),_0x57da6b=this[_0x1483('0x34')];if(_0xf9867d[_0x1483('0x5a')]=_0x2a2f77,this['isAttached'])throw new _0x2492b9(_0x1483('0x23'),this);this[_0x1483('0x54')]=!0x0,this[_0x1483('0x4e')](_0xf9867d,_0x1483('0x3e'),()=>{this[_0x1483('0x2a')](),this[_0x1483('0x4e')](_0xf9867d,_0x1483('0x2d'),_0x5384ea=>{_0x5384ea[_0x1483('0x3f')](),this[_0x1483('0x21')](_0x2a2f77);});}),_0xf9867d[_0x1483('0x42')]({'viewClass':_0x1483('0xf'),'spaceBetweenItems':0x5});const _0x13c51a=_0x44994b=>{const _0xbf277b=new _0x5b093f(this[_0x1483('0x6')][_0x1483('0x1e')]);_0xf9867d[_0x1483('0x4')](_0x44994b,_0xbf277b),this['_annotationToNarrowView']['set'](_0x44994b,_0xbf277b),_0xbf277b['bind'](_0x1483('0x5e'),_0x1483('0x4c'),'number')['to'](_0x44994b[_0x1483('0x9')],_0x1483('0x5e'),_0x1483('0x5c'),_0x1483('0x27')),_0xbf277b['on'](_0x1483('0x1f'),()=>{this['_manuallyClosedAnnotationViews'][_0x1483('0x3b')](),_0x57da6b['content'][_0x1483('0x63')]!==_0x44994b[_0x1483('0x9')]?(this['_showBalloon'](_0x44994b),_0x44994b[_0x1483('0x9')]['element']['focus'](),this[_0x1483('0x5b')](_0x44994b)):this[_0x1483('0x5b')](null);});};for(const _0x2625d0 of _0x2a2f77)_0x13c51a(_0x2625d0);this[_0x1483('0x4e')](_0x2a2f77,_0x1483('0x10'),(_0x2a6b47,_0xf21a7c)=>{_0x13c51a(_0xf21a7c);}),this[_0x1483('0x4e')](_0x2a2f77,_0x1483('0x3c'),(_0x347c02,_0x120f31,_0x2772e6)=>{this[_0x1483('0x1d')][_0x1483('0x32')](_0x120f31)[_0x1483('0x5')](),this[_0x1483('0x1d')][_0x1483('0xa')](_0x120f31),_0xf9867d['rearrange']({'removedAnnotation':_0x120f31,'previousAnnotation':_0x2a2f77[_0x1483('0x32')](_0x2772e6-0x1),'nextAnnotation':_0x2a2f77[_0x1483('0x32')](_0x2772e6+0x1)}),_0x120f31===this[_0x1483('0x33')]&&this[_0x1483('0x5b')](null);},{'priority':_0x1483('0x0')}),this[_0x1483('0x4e')](_0x2a2f77,_0x1483('0x26'),(_0x34f700,_0x37ac26)=>{this[_0x1483('0x5b')](_0x37ac26);}),this[_0x1483('0x4e')](_0x2a2f77,_0x1483('0x2f'),()=>{this['setActiveAnnotation'](null);}),this[_0x1483('0x16')][_0x1483('0x4e')](document,'keydown',(_0x3c3bdd,_0x3e3e11)=>{_0x3e3e11[_0x1483('0x3d')]===_0x22b592[_0x1483('0x3')]&&_0x57da6b['isVisible']&&(this[_0x1483('0x55')][_0x1483('0x10')](_0x57da6b[_0x1483('0xd')][_0x1483('0x63')]),this[_0x1483('0x60')](),_0x3e3e11[_0x1483('0x2c')](),_0x3e3e11[_0x1483('0x5d')]());}),this[_0x1483('0x16')]['listenTo'](document,_0x1483('0x7'),(_0x5af55d,_0x200b25)=>{const _0x46aa2c=_0x200b25[_0x1483('0x29')];_0x57da6b[_0x1483('0x1c')]&&_0x57da6b[_0x1483('0x47')]['contains'](_0x46aa2c)||_0xf9867d['view'][_0x1483('0x47')][_0x1483('0x45')](_0x46aa2c)||_0x5af55d['preventClosingBalloon']||this[_0x1483('0x33')]&&this[_0x1483('0x33')][_0x1483('0x56')][_0x1483('0x50')](_0x1085f5=>_0x1085f5[_0x1483('0x45')](_0x46aa2c))||(this[_0x1483('0x55')]['clear'](),this[_0x1483('0x60')](),this[_0x1483('0x5b')](null));});const _0x2c0642=this['context']instanceof _0x174b07?this[_0x1483('0x6')]['editors']:new _0x23e873([this[_0x1483('0x6')]]);for(const _0x5e25b5 of _0x2c0642)this[_0x1483('0xe')](_0x5e25b5);this[_0x1483('0x4e')](_0x2c0642,_0x1483('0x10'),(_0x4248f4,_0x5c9164)=>{this['listenTo'](_0x5c9164,_0x1483('0x58'),()=>{this[_0x1483('0xe')](_0x5c9164);});}),this[_0x1483('0x4e')](_0x2c0642,_0x1483('0x3c'),(_0x1f7229,_0x4785b2)=>{_0x4785b2[_0x1483('0x36')][_0x1483('0x31')](_0x1483('0x3a'))&&this[_0x1483('0x61')](_0x4785b2[_0x1483('0x36')][_0x1483('0x32')](_0x1483('0x3a')));}),window['addEventListener'](_0x1483('0x14'),this[_0x1483('0x37')]),this[_0x1483('0x13')]();}[_0x1483('0x5b')](_0x2f93de){if(_0x2f93de===this[_0x1483('0x33')])return;const _0x4631a5=this['context'][_0x1483('0x36')][_0x1483('0x32')](_0x4ac170);if(_0x4631a5['refresh']({'blurredAnnotation':this[_0x1483('0x33')],'activatedAnnotation':_0x2f93de,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2f93de)_0x4631a5[_0x1483('0x8')](_0x2f93de)?this[_0x1483('0x52')](_0x2f93de):this[_0x1483('0x60')]();else this['_hideBalloon']();this[_0x1483('0x33')]=_0x2f93de;}[_0x1483('0x2a')](){if(!this[_0x1483('0x54')])throw new _0x2492b9(_0x1483('0x5f'),this);this[_0x1483('0x5b')](null);const _0x5365f0=this[_0x1483('0x6')][_0x1483('0x36')]['get'](_0x4ac170);this['_hideBalloon'](),Array[_0x1483('0x46')](this[_0x1483('0x1d')]['values'](),_0x2fe6b1=>_0x2fe6b1['destroy']()),this['_annotationToNarrowView'][_0x1483('0x3b')](),_0x5365f0[_0x1483('0x1a')](this['annotations']),this[_0x1483('0x17')](),this[_0x1483('0x16')][_0x1483('0x17')](),this['context']instanceof _0x174b07&&this[_0x1483('0x17')](this['context'][_0x1483('0x49')]);for(const _0xcc69d1 of Array[_0x1483('0x46')](this[_0x1483('0x53')]))this[_0x1483('0x61')](_0xcc69d1);window['removeEventListener'](_0x1483('0x14'),this[_0x1483('0x37')]),this[_0x1483('0x37')][_0x1483('0x24')](),this['_selectedAnnotations']=[],this[_0x1483('0x54')]=!0x1,this[_0x1483('0x4f')]=null;}['destroy'](){this[_0x1483('0x54')]&&this[_0x1483('0x2a')](),this[_0x1483('0x2e')][_0x1483('0x22')]();}['_integrateWithEditorAnnotations'](_0x512f1a){const _0x473587=_0x512f1a[_0x1483('0x36')]['get'](_0x284c7a),_0x13fd15=this[_0x1483('0x6')][_0x1483('0x36')][_0x1483('0x32')](_0x4ac170),_0x4c9ed6=this[_0x1483('0x4f')],_0x3132f6=this['balloonPanelView'],_0x2a677b=()=>{const _0x55f43a=_0x473587['getOrderedSelectedAnnotations']({'annotations':this[_0x1483('0x4f')],'activeAnnotation':this['activeAnnotation']});this[_0x1483('0x1b')](_0x55f43a),this[_0x1483('0x5b')](_0x55f43a[0x0]||null);};this['listenTo'](_0x473587,_0x1483('0x19'),_0x2a677b),this[_0x1483('0x4e')](_0x473587,_0x1483('0x2f'),(_0x437a71,{isAnnotationTracked:_0x4d59dc})=>{this['activeAnnotation']&&_0x4d59dc(this[_0x1483('0x33')])&&(this['_setSelectedAnnotations']([]),this[_0x1483('0x5b')](null));}),this[_0x1483('0x4e')](_0x473587,_0x1483('0x1'),()=>{this[_0x1483('0x37')]();}),this[_0x1483('0x4e')](_0x4c9ed6,'blur',_0x429638=>{_0x473587[_0x1483('0x43')]()&&_0x429638[_0x1483('0x57')]();},{'priority':_0x1483('0x12')}),this[_0x1483('0x4e')](this['_domEmitter'],'mousedown',(_0x30f73f,_0x4b8c02)=>{const _0x70f9b7=_0x4b8c02[_0x1483('0x29')];_0x3132f6[_0x1483('0x1c')]&&_0x3132f6[_0x1483('0x47')][_0x1483('0x45')](_0x70f9b7)||_0x13fd15['view'][_0x1483('0x47')][_0x1483('0x45')](_0x70f9b7)||this[_0x1483('0x33')]&&_0x473587[_0x1483('0x43')]()&&(_0x2a677b(),_0x30f73f[_0x1483('0x51')]=!0x0);},{'priority':_0x1483('0x12')}),this['_editorAnnotations'][_0x1483('0x10')](_0x473587);}[_0x1483('0x61')](_0x1d5e96){_0x1d5e96&&(this[_0x1483('0x17')](_0x1d5e96),this[_0x1483('0x53')][_0x1483('0x3c')](_0x1d5e96));}[_0x1483('0x1b')](_0x21dc93){for(const _0x76bb88 of this[_0x1483('0x4b')])_0x21dc93[_0x1483('0x15')](_0x76bb88)||this['_manuallyClosedAnnotationViews'][_0x1483('0xa')](_0x76bb88[_0x1483('0x9')]);this[_0x1483('0x4b')]=_0x21dc93;}[_0x1483('0x13')](){const _0x3ff302=this[_0x1483('0x34')];this[_0x1483('0x4f')][_0x1483('0x30')](),_0x3ff302[_0x1483('0x1c')]&&this[_0x1483('0x40')]();}['_showBalloon'](_0x53d094){if(this[_0x1483('0x55')]['has'](_0x53d094[_0x1483('0x9')]))return;const _0x509d90=this['balloonPanelView'][_0x1483('0xd')]['first'];_0x509d90!==_0x53d094[_0x1483('0x9')]?(_0x509d90&&this[_0x1483('0x28')](_0x509d90),this[_0x1483('0xb')](_0x53d094[_0x1483('0x9')]),this[_0x1483('0x34')][_0x1483('0xd')][_0x1483('0x3b')](),this[_0x1483('0x34')]['content']['add'](_0x53d094['view']),this[_0x1483('0x40')]()):this[_0x1483('0x40')]();}['_updateBalloonPosition'](){const _0x52838c=this[_0x1483('0x34')][_0x1483('0xd')][_0x1483('0x63')],_0x2f6032=_0x52838c&&this[_0x1483('0x4f')][_0x1483('0x59')](_0x52838c);if(!_0x2f6032||!this[_0x1483('0x1d')]['has'](_0x2f6032))return;const _0x596fbe=this[_0x1483('0x1d')][_0x1483('0x32')](_0x2f6032)[_0x1483('0x47')],_0x41f4bd=function(){const _0xbca53a=_0xc5f4b5['defaultPositions'];return[_0xbca53a[_0x1483('0x18')],_0xbca53a[_0x1483('0x35')],_0xbca53a[_0x1483('0x44')],_0xbca53a[_0x1483('0x25')],_0xbca53a[_0x1483('0x62')],_0xbca53a[_0x1483('0x20')]];}();this['balloonPanelView'][_0x1483('0x38')]({'target':_0x596fbe,'positions':_0x41f4bd});}[_0x1483('0x60')](){const _0x2cca7a=this['balloonPanelView'],_0x26a1f4=_0x2cca7a[_0x1483('0xd')]['first'];_0x26a1f4&&(this[_0x1483('0x28')](_0x26a1f4),_0x2cca7a[_0x1483('0x48')](),_0x2cca7a[_0x1483('0xd')]['clear']());}[_0x1483('0xb')](_0x13769b){this['listenTo'](_0x13769b,_0x1483('0x2'),()=>this[_0x1483('0x40')]()),this[_0x1483('0x4e')](_0x13769b,'Esc',(_0x2912ce,_0x2569f5)=>{this['_manuallyClosedAnnotationViews']['add'](_0x13769b),this[_0x1483('0x60')](),_0x2569f5();});}[_0x1483('0x28')](_0x371ec2){this[_0x1483('0x17')](_0x371ec2);}}
|
|
23
|
+
const _0x5caf=['addAnnotation','ck-sidebar--narrow','_destroyEditorAnnotationsIntegration','detach','blur','detachFromDom','_refreshPositioningDebounced','annotationType','stop','mousedown','_editorAnnotations','_manuallyClosedAnnotationViews','EditorAnnotations','keydown','remove','preventClosingBalloon','_detachListeners','high','focusableElements','getSidebarItemView','_showBalloon','bind','first','keyCode','_hideBalloon','northArrowSouth','get','removeEventListener','clear','pluginName','type','set','low','target','bodyCollection','activeAnnotation','rearrange','includes','defaultPositions','isDirty','esc','change:height','refreshPositioning','_refreshPositioning','narrowSidebar','hasDomSelection','southArrowNorthWest','context','_attachToContainer','_setSelectedAnnotations','isAttached','ready','set:container','from','cancel','pin','narrowsidebar-attach-already-attached','resize','change:container','refresh','has','register','attach','balloonPanelView','contains','editors','addEventListener','narrowsidebar-detach-not-attached','focus','number','_annotations','delete','_selectedAnnotations','add','init','preventDefault','destroy','northArrowSouthEast','view','plugins','annotations','NarrowSidebar','setActiveAnnotation','_updateBalloonPosition','_domEmitter','southArrowNorth','isVisible','stopListening','element','getOrderedSelectedAnnotations','_integrateWithEditorAnnotations','content','locale','listenTo','Esc','_annotationToNarrowView','requires','stopPropagation','uiUpdate','_attachListeners'];(function(_0x45b72c,_0x5caf22){const _0x2b21b9=function(_0x318d9f){while(--_0x318d9f){_0x45b72c['push'](_0x45b72c['shift']());}};_0x2b21b9(++_0x5caf22);}(_0x5caf,0x189));const _0x2b21=function(_0x45b72c,_0x5caf22){_0x45b72c=_0x45b72c-0x0;let _0x2b21b9=_0x5caf[_0x45b72c];return _0x2b21b9;};import{ContextPlugin as _0x55f7a3,Context as _0x3b6234}from'ckeditor5/src/core';import _0x295066 from'./annotationsuis';import _0x4cfa59 from'./sidebar';import _0x31dd65 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x1a95b2,BodyCollection as _0x3f7f47}from'ckeditor5/src/ui';import{CKEditorError as _0x1c1cf4,DomEmitterMixin as _0x390ae0,keyCodes as _0x2ff4ef,Collection as _0x235749}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x40942f}from'lodash-es';import _0x57ec47 from'./editorannotations';export default class s extends _0x55f7a3{static get[_0x2b21('0x3')](){return[_0x4cfa59,_0x295066];}static get[_0x2b21('0x24')](){return _0x2b21('0x58');}constructor(_0x5f2437){super(_0x5f2437),this[_0x2b21('0x39')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x390ae0),this['_annotationToNarrowView']=new Map(),this[_0x2b21('0x26')](_0x2b21('0x2a'),null),this[_0x2b21('0x57')]=null,this['_selectedAnnotations']=[],this[_0x2b21('0x11')]=new _0x235749(),this[_0x2b21('0xd')]=_0x40942f(()=>{this[_0x2b21('0x32')]();},0xfa,{'leading':!0x1});}[_0x2b21('0x51')](){this[_0x2b21('0x36')][_0x2b21('0x56')][_0x2b21('0x21')](_0x295066)[_0x2b21('0x44')](_0x2b21('0x33'),this),this[_0x2b21('0x29')]=new _0x3f7f47(this[_0x2b21('0x36')][_0x2b21('0x63')]),this[_0x2b21('0x46')]=new _0x1a95b2(this['context'][_0x2b21('0x63')]),this[_0x2b21('0x29')]['attachToDom'](),this[_0x2b21('0x29')][_0x2b21('0x50')](this['balloonPanelView']);}[_0x2b21('0x45')](_0x9740c3){this[_0x2b21('0x57')]=_0x9740c3;const _0x41878a=this[_0x2b21('0x36')][_0x2b21('0x56')][_0x2b21('0x21')](_0x4cfa59),_0x5e3d9d=this['balloonPanelView'];if(_0x41878a[_0x2b21('0x4d')]=_0x9740c3,this['isAttached'])throw new _0x1c1cf4(_0x2b21('0x3f'),this);this[_0x2b21('0x39')]=!0x0,this[_0x2b21('0x0')](_0x41878a,_0x2b21('0x3b'),()=>{this[_0x2b21('0xa')](),this[_0x2b21('0x0')](_0x41878a,_0x2b21('0x41'),_0x3debff=>{_0x3debff['off'](),this[_0x2b21('0x45')](_0x9740c3);});}),_0x41878a[_0x2b21('0x37')]({'viewClass':_0x2b21('0x8'),'spaceBetweenItems':0x5});const _0xb5ab0f=_0x592c9e=>{const _0x3efcc6=new _0x31dd65(this[_0x2b21('0x36')]['locale']);_0x41878a[_0x2b21('0x7')](_0x592c9e,_0x3efcc6),this[_0x2b21('0x2')][_0x2b21('0x26')](_0x592c9e,_0x3efcc6),_0x3efcc6[_0x2b21('0x1c')](_0x2b21('0x2e'),_0x2b21('0xe'),_0x2b21('0x4c'))['to'](_0x592c9e['view'],_0x2b21('0x2e'),_0x2b21('0x25'),'length'),_0x3efcc6['on']('execute',()=>{this[_0x2b21('0x12')][_0x2b21('0x23')](),_0x5e3d9d[_0x2b21('0x62')]['first']!==_0x592c9e[_0x2b21('0x55')]?(this['_showBalloon'](_0x592c9e),_0x592c9e[_0x2b21('0x55')]['element'][_0x2b21('0x4b')](),this[_0x2b21('0x59')](_0x592c9e)):this[_0x2b21('0x59')](null);});};for(const _0x1c1005 of _0x9740c3)_0xb5ab0f(_0x1c1005);this[_0x2b21('0x0')](_0x9740c3,_0x2b21('0x50'),(_0x2fb020,_0x1072b3)=>{_0xb5ab0f(_0x1072b3);}),this[_0x2b21('0x0')](_0x9740c3,_0x2b21('0x15'),(_0x41e00c,_0x1509cd,_0x42f1bb)=>{this[_0x2b21('0x2')]['get'](_0x1509cd)[_0x2b21('0x53')](),this[_0x2b21('0x2')]['delete'](_0x1509cd),_0x41878a[_0x2b21('0x2b')]({'removedAnnotation':_0x1509cd,'previousAnnotation':_0x9740c3['get'](_0x42f1bb-0x1),'nextAnnotation':_0x9740c3[_0x2b21('0x21')](_0x42f1bb+0x1)}),_0x1509cd===this[_0x2b21('0x2a')]&&this[_0x2b21('0x59')](null);},{'priority':_0x2b21('0x27')}),this[_0x2b21('0x0')](_0x9740c3,_0x2b21('0x4b'),(_0x2009f6,_0x7d4e31)=>{this['setActiveAnnotation'](_0x7d4e31);}),this[_0x2b21('0x0')](_0x9740c3,'blur',()=>{this[_0x2b21('0x59')](null);}),this['_domEmitter'][_0x2b21('0x0')](document,_0x2b21('0x14'),(_0x2ac397,_0x219723)=>{_0x219723[_0x2b21('0x1e')]===_0x2ff4ef[_0x2b21('0x2f')]&&_0x5e3d9d[_0x2b21('0x5d')]&&(this['_manuallyClosedAnnotationViews'][_0x2b21('0x50')](_0x5e3d9d[_0x2b21('0x62')]['first']),this['_hideBalloon'](),_0x219723[_0x2b21('0x4')](),_0x219723[_0x2b21('0x52')]());}),this[_0x2b21('0x5b')][_0x2b21('0x0')](document,_0x2b21('0x10'),(_0x4770cc,_0x26377d)=>{const _0x41e2d0=_0x26377d[_0x2b21('0x28')];_0x5e3d9d[_0x2b21('0x5d')]&&_0x5e3d9d[_0x2b21('0x5f')][_0x2b21('0x47')](_0x41e2d0)||_0x41878a[_0x2b21('0x55')][_0x2b21('0x5f')][_0x2b21('0x47')](_0x41e2d0)||_0x4770cc[_0x2b21('0x16')]||this[_0x2b21('0x2a')]&&this['activeAnnotation'][_0x2b21('0x19')]['find'](_0x1fe32f=>_0x1fe32f[_0x2b21('0x47')](_0x41e2d0))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this[_0x2b21('0x59')](null));});const _0x5ac3b3=this[_0x2b21('0x36')]instanceof _0x3b6234?this[_0x2b21('0x36')][_0x2b21('0x48')]:new _0x235749([this[_0x2b21('0x36')]]);for(const _0x36fec5 of _0x5ac3b3)this['_integrateWithEditorAnnotations'](_0x36fec5);this[_0x2b21('0x0')](_0x5ac3b3,'add',(_0x1faca4,_0x385bdc)=>{this[_0x2b21('0x0')](_0x385bdc,_0x2b21('0x3a'),()=>{this[_0x2b21('0x61')](_0x385bdc);});}),this[_0x2b21('0x0')](_0x5ac3b3,_0x2b21('0x15'),(_0x43606e,_0x571f87)=>{_0x571f87[_0x2b21('0x56')][_0x2b21('0x43')](_0x2b21('0x13'))&&this[_0x2b21('0x9')](_0x571f87[_0x2b21('0x56')][_0x2b21('0x21')](_0x2b21('0x13')));}),window[_0x2b21('0x49')](_0x2b21('0x40'),this[_0x2b21('0xd')]),this[_0x2b21('0x32')]();}[_0x2b21('0x59')](_0x433fe2){if(_0x433fe2===this['activeAnnotation'])return;const _0x4903d0=this[_0x2b21('0x36')][_0x2b21('0x56')][_0x2b21('0x21')](_0x4cfa59);if(_0x4903d0[_0x2b21('0x42')]({'blurredAnnotation':this[_0x2b21('0x2a')],'activatedAnnotation':_0x433fe2,'disableAnimationOnActivatedAnnotation':!0x0}),_0x433fe2)_0x4903d0[_0x2b21('0x1a')](_0x433fe2)?this[_0x2b21('0x1b')](_0x433fe2):this[_0x2b21('0x1f')]();else this[_0x2b21('0x1f')]();this[_0x2b21('0x2a')]=_0x433fe2;}['detach'](){if(!this[_0x2b21('0x39')])throw new _0x1c1cf4(_0x2b21('0x4a'),this);this[_0x2b21('0x59')](null);const _0x3cba72=this['context'][_0x2b21('0x56')]['get'](_0x4cfa59);this[_0x2b21('0x1f')](),Array[_0x2b21('0x3c')](this['_annotationToNarrowView']['values'](),_0x3a0cd8=>_0x3a0cd8[_0x2b21('0x53')]()),this[_0x2b21('0x2')][_0x2b21('0x23')](),_0x3cba72['_detachFromContainer'](this[_0x2b21('0x57')]),this[_0x2b21('0x5e')](),this[_0x2b21('0x5b')]['stopListening'](),this[_0x2b21('0x36')]instanceof _0x3b6234&&this[_0x2b21('0x5e')](this[_0x2b21('0x36')][_0x2b21('0x48')]);for(const _0x5d4659 of Array[_0x2b21('0x3c')](this[_0x2b21('0x11')]))this['_destroyEditorAnnotationsIntegration'](_0x5d4659);window[_0x2b21('0x22')](_0x2b21('0x40'),this[_0x2b21('0xd')]),this[_0x2b21('0xd')][_0x2b21('0x3d')](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this[_0x2b21('0x57')]=null;}[_0x2b21('0x53')](){this[_0x2b21('0x39')]&&this[_0x2b21('0xa')](),this[_0x2b21('0x29')][_0x2b21('0xc')]();}['_integrateWithEditorAnnotations'](_0x5897cb){const _0x387386=_0x5897cb[_0x2b21('0x56')]['get'](_0x57ec47),_0x5c91da=this[_0x2b21('0x36')][_0x2b21('0x56')][_0x2b21('0x21')](_0x4cfa59),_0x214e63=this[_0x2b21('0x57')],_0x33c5ba=this[_0x2b21('0x46')],_0x557f90=()=>{const _0x58c51e=_0x387386[_0x2b21('0x60')]({'annotations':this[_0x2b21('0x57')],'activeAnnotation':this[_0x2b21('0x2a')]});this[_0x2b21('0x38')](_0x58c51e),this[_0x2b21('0x59')](_0x58c51e[0x0]||null);};this[_0x2b21('0x0')](_0x387386,_0x2b21('0x42'),_0x557f90),this[_0x2b21('0x0')](_0x387386,_0x2b21('0xb'),(_0xf83fb3,{isAnnotationTracked:_0x5dc779})=>{this[_0x2b21('0x2a')]&&_0x5dc779(this[_0x2b21('0x2a')])&&(this[_0x2b21('0x38')]([]),this[_0x2b21('0x59')](null));}),this[_0x2b21('0x0')](_0x387386,_0x2b21('0x5'),()=>{this[_0x2b21('0xd')]();}),this[_0x2b21('0x0')](_0x214e63,_0x2b21('0xb'),_0x1d5a7f=>{_0x387386[_0x2b21('0x34')]()&&_0x1d5a7f[_0x2b21('0xf')]();},{'priority':'high'}),this[_0x2b21('0x0')](this['_domEmitter'],_0x2b21('0x10'),(_0xd66e56,_0x23a53f)=>{const _0x17b694=_0x23a53f[_0x2b21('0x28')];_0x33c5ba['isVisible']&&_0x33c5ba[_0x2b21('0x5f')][_0x2b21('0x47')](_0x17b694)||_0x5c91da[_0x2b21('0x55')][_0x2b21('0x5f')][_0x2b21('0x47')](_0x17b694)||this[_0x2b21('0x2a')]&&_0x387386[_0x2b21('0x34')]()&&(_0x557f90(),_0xd66e56['preventClosingBalloon']=!0x0);},{'priority':_0x2b21('0x18')}),this['_editorAnnotations'][_0x2b21('0x50')](_0x387386);}[_0x2b21('0x9')](_0x409de6){_0x409de6&&(this['stopListening'](_0x409de6),this['_editorAnnotations'][_0x2b21('0x15')](_0x409de6));}[_0x2b21('0x38')](_0x29082b){for(const _0x221b9f of this[_0x2b21('0x4f')])_0x29082b[_0x2b21('0x2c')](_0x221b9f)||this[_0x2b21('0x12')][_0x2b21('0x4e')](_0x221b9f[_0x2b21('0x55')]);this[_0x2b21('0x4f')]=_0x29082b;}[_0x2b21('0x32')](){const _0x2d8493=this[_0x2b21('0x46')];this['annotations'][_0x2b21('0x31')](),_0x2d8493['isVisible']&&this[_0x2b21('0x5a')]();}['_showBalloon'](_0x243333){if(this[_0x2b21('0x12')]['has'](_0x243333[_0x2b21('0x55')]))return;const _0x30d051=this[_0x2b21('0x46')][_0x2b21('0x62')][_0x2b21('0x1d')];_0x30d051!==_0x243333[_0x2b21('0x55')]?(_0x30d051&&this[_0x2b21('0x17')](_0x30d051),this[_0x2b21('0x6')](_0x243333['view']),this['balloonPanelView'][_0x2b21('0x62')][_0x2b21('0x23')](),this[_0x2b21('0x46')]['content']['add'](_0x243333[_0x2b21('0x55')]),this[_0x2b21('0x5a')]()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x44ee83=this[_0x2b21('0x46')][_0x2b21('0x62')]['first'],_0x4df61b=_0x44ee83&&this[_0x2b21('0x57')]['getByView'](_0x44ee83);if(!_0x4df61b||!this[_0x2b21('0x2')][_0x2b21('0x43')](_0x4df61b))return;const _0xfe92ef=this['_annotationToNarrowView'][_0x2b21('0x21')](_0x4df61b)[_0x2b21('0x5f')],_0x4be428=function(){const _0x11a664=_0x1a95b2[_0x2b21('0x2d')];return[_0x11a664['southArrowNorthEast'],_0x11a664[_0x2b21('0x54')],_0x11a664[_0x2b21('0x5c')],_0x11a664[_0x2b21('0x20')],_0x11a664[_0x2b21('0x35')],_0x11a664['northArrowSouthWest']];}();this[_0x2b21('0x46')][_0x2b21('0x3e')]({'target':_0xfe92ef,'positions':_0x4be428});}['_hideBalloon'](){const _0x5c6f3a=this['balloonPanelView'],_0x353480=_0x5c6f3a[_0x2b21('0x62')][_0x2b21('0x1d')];_0x353480&&(this['_detachListeners'](_0x353480),_0x5c6f3a['unpin'](),_0x5c6f3a[_0x2b21('0x62')]['clear']());}[_0x2b21('0x6')](_0x57e043){this['listenTo'](_0x57e043,_0x2b21('0x30'),()=>this['_updateBalloonPosition']()),this[_0x2b21('0x0')](_0x57e043,_0x2b21('0x1'),(_0x5623d4,_0x929d35)=>{this['_manuallyClosedAnnotationViews'][_0x2b21('0x50')](_0x57e043),this[_0x2b21('0x1f')](),_0x929d35();});}[_0x2b21('0x17')](_0x40f486){this[_0x2b21('0x5e')](_0x40f486);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5944=['refresh','_alignForTopChange','element','Sidebar','_updateLastItem','sidebar-attachtocontainer-missing-container','_attachToContainer','_createSidebarView','sidebar-setcontainer-invalid-element','isActive','stopListening','delete','define','_detachFromContainer','_recalculateBuffer','object','_getMaxAvailableTop','list','view','_recalculate','class','_getTargetTop','destroy','change:top','_annotationToSidebarItemView','_alignForBottomChange','_annotations','getSidebarItemView','_getItemBefore','bind','last','rearrange','_lastItem','_getItemAfter','_alignToTargetRect','change:bottom','updateHeight','length','pluginName','_sidebarItemViewToAnnotation','_alignBeforeItem','targetRect','set','bottom','context','_setItemTop','_spaceBetweenItems','push','_destroySidebarItemView','appendChild','content','add','sidebar.preventScrollOutOfView','_activeAnnotation','change:_lastItem','addAnnotation','getIndex','config','setContainer','locale','nodeType','_alignAfterItem','listenTo','max','top','get','minHeight','container','isAnimationDisabled'];(function(_0x42ea21,_0x594461){const _0x3844a3=function(_0x1ad534){while(--_0x1ad534){_0x42ea21['push'](_0x42ea21['shift']());}};_0x3844a3(++_0x594461);}(_0x5944,0x17d));const _0x3844=function(_0x42ea21,_0x594461){_0x42ea21=_0x42ea21-0x0;let _0x3844a3=_0x5944[_0x42ea21];return _0x3844a3;};import{ContextPlugin as _0x3e0678}from'ckeditor5/src/core';import{Rect as _0x10edc9,CKEditorError as _0x18d7cf}from'ckeditor5/src/utils';import _0x87ffe9 from'./view/sidebarview';import _0x1f9d5b from'./view/sidebaritemview';export default class z extends _0x3e0678{static get[_0x3844('0x2')](){return _0x3844('0x24');}constructor(_0x204b11){super(_0x204b11),this[_0x3844('0x6')](_0x3844('0x41'),void 0x0),this[_0x3844('0x33')]=this[_0x3844('0x28')](),this[_0x3844('0x6')](_0x3844('0x1f'),null),this[_0x3844('0xa')]=0x19,this[_0x3844('0x3')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x3844('0x8')]['config'][_0x3844('0x2d')]('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this[_0x3844('0x11')]=null,this[_0x3844('0x2f')]=[];}['init'](){const _0x450ac1=this[_0x3844('0x8')][_0x3844('0x15')]['get']('sidebar.container');_0x450ac1&&this['setContainer'](_0x450ac1);}[_0x3844('0x16')](_0x5efdba){if(!y(_0x5efdba))throw new _0x18d7cf(_0x3844('0x29'));this['container']=_0x5efdba;}[_0x3844('0x27')]({viewClass:_0x391774='',spaceBetweenItems:_0x11201d=0x19}={}){if(!y(this[_0x3844('0x1f')]))throw new _0x18d7cf(_0x3844('0x26'),this);this[_0x3844('0x1f')][_0x3844('0xd')](this[_0x3844('0x33')]['element']),this[_0x3844('0x33')][_0x3844('0x35')]=_0x391774,this[_0x3844('0xa')]=_0x11201d;}[_0x3844('0x40')]({removedAnnotation:_0x296e7a,previousAnnotation:_0x3b2f28,nextAnnotation:_0x560315}){const _0x339171=this['getSidebarItemView'](_0x296e7a);this['view']['list']['remove'](_0x339171),this[_0x3844('0xc')](_0x296e7a),_0x3b2f28&&this[_0x3844('0x43')](this[_0x3844('0x3c')](_0x3b2f28)),_0x560315&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x560315)),this['_updateLastItem']();}[_0x3844('0x21')]({blurredAnnotation:_0xf4568b,activatedAnnotation:_0x4c430f,disableAnimationOnActivatedAnnotation:_0x148015}){if(this['_activeAnnotation']=_0x4c430f,_0xf4568b){_0xf4568b[_0x3844('0x2a')]=!0x1;const _0x7a905c=this['getSidebarItemView'](_0xf4568b);_0x7a905c&&_0x148015&&(_0x7a905c[_0x3844('0x20')]=!0x1);}if(_0x4c430f){const _0x451408=this[_0x3844('0x3c')](_0x4c430f);_0x451408&&(_0x4c430f[_0x3844('0x2a')]=!0x0,_0x148015&&(_0x451408[_0x3844('0x20')]=!0x0,_0x451408['top']+=0x1),this[_0x3844('0x43')](_0x451408));}}[_0x3844('0x2e')](_0x488847){if(this['view'][_0x3844('0x23')]['remove'](),_0x488847)for(const _0x25df77 of _0x488847)this['_destroySidebarItemView'](_0x25df77);this['view'][_0x3844('0x32')]['clear'](),this['view'][_0x3844('0x35')]='',this[_0x3844('0x41')]=null;}[_0x3844('0x13')](_0x4b0227,_0x11b6d4){_0x11b6d4||(_0x11b6d4=_0x4b0227[_0x3844('0x33')]);const _0x2032eb=new _0x1f9d5b(this[_0x3844('0x8')][_0x3844('0x17')]);this[_0x3844('0x3')][_0x3844('0x6')](_0x2032eb,_0x4b0227),this[_0x3844('0x39')][_0x3844('0x6')](_0x4b0227,_0x2032eb),_0x2032eb[_0x3844('0xe')][_0x3844('0xf')](_0x11b6d4),this[_0x3844('0x1a')](_0x4b0227[_0x3844('0x33')],'change:targetRect',(_0x1488ad,_0x4aa43c,_0x9adc71)=>{const _0x54236e=this[_0x3844('0x36')](_0x4b0227,_0x9adc71);_0x2032eb['_targetTop']!=_0x54236e&&(_0x2032eb['_targetTop']=_0x54236e,this['_setItemTop'](_0x2032eb,_0x54236e));}),this[_0x3844('0x1a')](_0x2032eb,_0x3844('0x38'),()=>{this[_0x3844('0x34')](_0x2032eb,_0x3844('0x1c'));}),this[_0x3844('0x1a')](_0x2032eb,_0x3844('0x44'),()=>{this[_0x3844('0x34')](_0x2032eb,'bottom');}),this['_alignToTargetRect'](_0x2032eb);const _0xafa193=this[_0x3844('0x3d')](_0x2032eb);if(_0xafa193)this[_0x3844('0x19')](_0xafa193,_0x2032eb)||this[_0x3844('0x43')](_0x2032eb);else this['_alignToTargetRect'](_0x2032eb);return this[_0x3844('0x25')](),this['view'][_0x3844('0x32')]['add'](_0x2032eb),_0x2032eb;}[_0x3844('0x22')](_0x28836f){if(!_0x28836f[_0x3844('0xe')][_0x3844('0x1')])return;const _0x5993ea=this[_0x3844('0x3d')](_0x28836f);if(!_0x5993ea)return;const _0x44a49d=this['_sidebarItemViewToAnnotation'][_0x3844('0x1d')](_0x5993ea),_0x103f28=this[_0x3844('0x11')];_0x103f28&&_0x103f28===_0x44a49d?this[_0x3844('0x19')](_0x5993ea,_0x28836f):this[_0x3844('0x4')](_0x28836f,_0x5993ea);}[_0x3844('0x3a')](_0x571e1a){if(!_0x571e1a[_0x3844('0xe')][_0x3844('0x1')])return;const _0x43e98d=this[_0x3844('0x42')](_0x571e1a);if(!_0x43e98d)return;const _0x206a03=this[_0x3844('0x3')][_0x3844('0x1d')](_0x43e98d),_0x670660=this[_0x3844('0x8')][_0x3844('0x15')][_0x3844('0x1d')]('sidebar.preventScrollOutOfView'),_0x402d0d=this[_0x3844('0x11')];_0x402d0d&&_0x402d0d===_0x206a03&&_0x670660?(this[_0x3844('0x4')](_0x43e98d,_0x571e1a),this[_0x3844('0x19')](_0x571e1a,_0x43e98d)):_0x402d0d&&_0x402d0d===_0x206a03?this[_0x3844('0x4')](_0x43e98d,_0x571e1a):this['_alignAfterItem'](_0x571e1a,_0x43e98d);}[_0x3844('0x34')](_0x190470,_0x553d47){0x0===this[_0x3844('0x2f')][_0x3844('0x1')]&&setTimeout(()=>{for(const {sidebarItemView:_0x54a3c3,changedProp:_0x25bc35}of this[_0x3844('0x2f')])_0x3844('0x1c')===_0x25bc35?this[_0x3844('0x22')](_0x54a3c3):this[_0x3844('0x3a')](_0x54a3c3);this[_0x3844('0x2f')]=[];},0xa),this['_recalculateBuffer'][_0x3844('0xb')]({'sidebarItemView':_0x190470,'changedProp':_0x553d47});}[_0x3844('0x3c')](_0x1adbbc){return this[_0x3844('0x39')][_0x3844('0x1d')](_0x1adbbc);}[_0x3844('0x37')](){this[_0x3844('0x2b')](),this[_0x3844('0x33')][_0x3844('0x37')]();}['_destroySidebarItemView'](_0x208518){const _0x25a225=this[_0x3844('0x3c')](_0x208518);this[_0x3844('0x2b')](_0x25a225),this['stopListening'](_0x208518['view']),_0x25a225[_0x3844('0x37')](),this[_0x3844('0x39')][_0x3844('0x2c')](_0x208518),this[_0x3844('0x3')][_0x3844('0x2c')](_0x25a225);}[_0x3844('0x28')](){const _0x4b85fe=new _0x87ffe9(this[_0x3844('0x8')][_0x3844('0x17')]);return _0x4b85fe['render'](),this['on'](_0x3844('0x12'),(_0x4d117d,_0x1de61f,_0xe2716b,_0x5c2472)=>{_0x5c2472&&_0x4b85fe['unbind'](_0x3844('0x1e')),_0xe2716b?_0x4b85fe[_0x3844('0x3e')](_0x3844('0x1e'))['to'](_0xe2716b,_0x3844('0x7')):_0x4b85fe[_0x3844('0x1e')]=null;}),_0x4b85fe;}[_0x3844('0x25')](){var _0x2842d1;this[_0x3844('0x41')]=(null===(_0x2842d1=this[_0x3844('0x3b')])||void 0x0===_0x2842d1?void 0x0:_0x2842d1['last'])?this[_0x3844('0x3c')](this['_annotations'][_0x3844('0x3f')]):null;}['_getItemBefore'](_0x1cf71b){var _0x20e068;const _0x3aea03=this['_sidebarItemViewToAnnotation']['get'](_0x1cf71b),_0x31ed62=_0x3aea03&&(null===(_0x20e068=this[_0x3844('0x3b')])||void 0x0===_0x20e068?void 0x0:_0x20e068[_0x3844('0x1d')](this[_0x3844('0x3b')][_0x3844('0x14')](_0x3aea03)-0x1));return _0x31ed62&&this['getSidebarItemView'](_0x31ed62)||null;}[_0x3844('0x42')](_0x64c1ee){var _0x42cc99;const _0x4818d6=this[_0x3844('0x3')][_0x3844('0x1d')](_0x64c1ee),_0x570a8e=_0x4818d6&&(null===(_0x42cc99=this['_annotations'])||void 0x0===_0x42cc99?void 0x0:_0x42cc99[_0x3844('0x1d')](this['_annotations'][_0x3844('0x14')](_0x4818d6)+0x1));return _0x570a8e&&this['getSidebarItemView'](_0x570a8e)||null;}[_0x3844('0x4')](_0x5cadc9,_0x544646){_0x5cadc9[_0x3844('0x0')]();const _0x544217=H(_0x544646[_0x3844('0x7')]+this[_0x3844('0xa')],_0x5cadc9['top']);return!!_0x544217&&(this['_setItemTop'](_0x544646,_0x544646[_0x3844('0x1c')]-_0x544217),!0x0);}[_0x3844('0x19')](_0x31ce6d,_0x2ca0d1){_0x31ce6d[_0x3844('0x0')]();const _0x9fa560=H(_0x31ce6d['bottom']+this[_0x3844('0xa')],_0x2ca0d1[_0x3844('0x1c')]);return!!_0x9fa560&&(this[_0x3844('0x9')](_0x2ca0d1,_0x2ca0d1[_0x3844('0x1c')]+_0x9fa560,!0x1),!0x0);}[_0x3844('0x43')](_0x34f834){const _0x2464e1=this[_0x3844('0x3')][_0x3844('0x1d')](_0x34f834);if(!_0x2464e1||!_0x2464e1['target']||!_0x2464e1[_0x3844('0x5')])return;const _0x3d6e7e=this[_0x3844('0x36')](_0x2464e1,_0x2464e1[_0x3844('0x5')]);this[_0x3844('0x9')](_0x34f834,_0x3d6e7e);}['_getTargetTop'](_0x245571,_0x338a8c){if(null===_0x338a8c)return 0x0;if(_0x245571['target']instanceof _0x10edc9)return _0x338a8c[_0x3844('0x1c')];{const _0x3eadb0=new _0x10edc9(this[_0x3844('0x33')]['element'])[_0x3844('0x1c')];return _0x338a8c[_0x3844('0x1c')]-_0x3eadb0;}}[_0x3844('0x9')](_0x444fce,_0x552cec,_0x3bcb2d=this[_0x3844('0x8')][_0x3844('0x15')][_0x3844('0x1d')](_0x3844('0x10'))){_0x3bcb2d&&(_0x552cec=Math[_0x3844('0x1b')](_0x552cec,this[_0x3844('0x31')](_0x444fce))),_0x444fce[_0x3844('0x1c')]=_0x552cec;}[_0x3844('0x31')](_0x172ee7){let _0x292e50=this['_getItemBefore'](_0x172ee7),_0x2b6c64=0x0;for(;_0x292e50;)_0x292e50['updateHeight'](),_0x2b6c64+=this[_0x3844('0xa')]+_0x292e50['height'],_0x292e50=this[_0x3844('0x3d')](_0x292e50);return _0x2b6c64;}}function H(_0x4c867a,_0x3a400d){return Math['max'](_0x4c867a-_0x3a400d,0x0);}function y(_0x446e18){return null!==_0x446e18&&_0x3844('0x30')==typeof _0x446e18&&0x1===_0x446e18[_0x3844('0x18')];}
|