@ckeditor/ckeditor5-comments 38.1.0 → 38.1.1
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.d.ts +86 -86
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.d.ts +94 -94
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +150 -150
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +228 -228
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +63 -63
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +86 -86
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +81 -81
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +96 -96
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +25 -25
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +86 -86
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +51 -51
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +28 -28
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +73 -73
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +48 -48
- package/src/comments/addcommentthreadcommand.d.ts +31 -31
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +27 -27
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +34 -34
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +75 -75
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1088 -1088
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +29 -29
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +13 -13
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +17 -17
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +32 -32
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +27 -27
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -32
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.d.ts +108 -108
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +108 -108
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +9 -9
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +10 -10
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +82 -82
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +34 -34
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +96 -96
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +46 -46
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +37 -37
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +113 -113
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +239 -239
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +31 -31
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +29 -29
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +172 -172
- package/src/index.d.ts +21 -21
- package/src/utils/common-translations.d.ts +5 -5
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +13 -13
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -1,150 +1,150 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module comments/annotations/annotations
|
|
3
|
-
* @publicApi
|
|
4
|
-
*/
|
|
5
|
-
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
|
|
6
|
-
import type { View } from 'ckeditor5/src/ui';
|
|
7
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
8
|
-
import Annotation, { type AnnotationTarget } from './annotation';
|
|
9
|
-
import AnnotationCollection from './annotationcollection';
|
|
10
|
-
import AnnotationView, { type AnnotationMainView } from './view/annotationview';
|
|
11
|
-
/**
|
|
12
|
-
* Stores and manages all {@link module:comments/annotations/annotation~Annotation annotations} created
|
|
13
|
-
* for the entire {@link module:core/context~Context} or {@link module:core/editor/editor~Editor}.
|
|
14
|
-
*
|
|
15
|
-
* It allows for {@link module:comments/annotations/annotations~Annotations#add adding} and
|
|
16
|
-
* {@link module:comments/annotations/annotations~Annotations#remove removing} annotations.
|
|
17
|
-
*
|
|
18
|
-
* It manages {@link module:comments/annotations/annotations~Annotations#activate activating} and
|
|
19
|
-
* {@link module:comments/annotations/annotations~Annotations#deactivateAll deactivating} annotations. Using those methods will
|
|
20
|
-
* result in setting {@link module:comments/annotations/annotationsuis~AnnotationUI#activeAnnotation} in the appropriate
|
|
21
|
-
* {@link module:comments/annotations/annotationsuis~AnnotationsUI annotations UI} plugins.
|
|
22
|
-
*
|
|
23
|
-
* All active annotations are stored in {@link module:comments/annotations/annotations~Annotations#activeAnnotations}.
|
|
24
|
-
*
|
|
25
|
-
* `Annotations` is linked with {@link module:comments/annotations/annotationsuis~AnnotationsUIs}, which listens to events fired by
|
|
26
|
-
* `Annotations` and propagates information to and from annotations UI plugins.
|
|
27
|
-
*/
|
|
28
|
-
export default class Annotations extends ContextPlugin {
|
|
29
|
-
/**
|
|
30
|
-
* A set of currently active annotations.
|
|
31
|
-
*
|
|
32
|
-
* @observable
|
|
33
|
-
*/
|
|
34
|
-
activeAnnotations: Set<Annotation>;
|
|
35
|
-
/**
|
|
36
|
-
* A collection of all annotations. It should not be operated on directly.
|
|
37
|
-
*/
|
|
38
|
-
readonly collection: AnnotationCollection;
|
|
39
|
-
/**
|
|
40
|
-
* @inheritDoc
|
|
41
|
-
*/
|
|
42
|
-
static get pluginName(): "Annotations";
|
|
43
|
-
/**
|
|
44
|
-
* @inheritDoc
|
|
45
|
-
*/
|
|
46
|
-
constructor(context: Context | Editor);
|
|
47
|
-
/**
|
|
48
|
-
* Adds an annotation to the collection.
|
|
49
|
-
*/
|
|
50
|
-
add(annotation: Annotation): void;
|
|
51
|
-
/**
|
|
52
|
-
* Removes the given annotation from the collection.
|
|
53
|
-
*/
|
|
54
|
-
remove(annotation: Annotation): void;
|
|
55
|
-
/**
|
|
56
|
-
* Refreshes the visibility of annotations based on the visibility of their annotation targets.
|
|
57
|
-
*
|
|
58
|
-
* This method should be called when one or more annotations' targets changed their visibility,
|
|
59
|
-
* for example when one of the editors was shown or hidden.
|
|
60
|
-
*
|
|
61
|
-
* This method recalculates all annotations' {@link module:comments/annotations/annotation~Annotation#isVisible `isVisible`} property.
|
|
62
|
-
*/
|
|
63
|
-
refreshVisibility(): void;
|
|
64
|
-
/**
|
|
65
|
-
* Refreshes the positioning of all visible annotations and sorts them topmost and leftmost.
|
|
66
|
-
*/
|
|
67
|
-
refreshPositioning(): void;
|
|
68
|
-
/**
|
|
69
|
-
* Returns the annotation that "contains" the given annotation view's inner view.
|
|
70
|
-
*/
|
|
71
|
-
getByInnerView(innerView: View): Annotation | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* Deactivates all active annotations.
|
|
74
|
-
*
|
|
75
|
-
* @fires _deactivateAllAnnotations
|
|
76
|
-
*/
|
|
77
|
-
deactivateAll(): void;
|
|
78
|
-
/**
|
|
79
|
-
* @inheritDoc
|
|
80
|
-
*/
|
|
81
|
-
destroy(): void;
|
|
82
|
-
/**
|
|
83
|
-
* Activates the given annotation.
|
|
84
|
-
*
|
|
85
|
-
* If annotations UI that handles the given annotation already has an active annotation,
|
|
86
|
-
* then it deactivates it and activates the provided one.
|
|
87
|
-
*
|
|
88
|
-
* @fires _activateAnnotation
|
|
89
|
-
*/
|
|
90
|
-
activate(annotation: Annotation): void;
|
|
91
|
-
/**
|
|
92
|
-
* Creates an annotation.
|
|
93
|
-
*
|
|
94
|
-
* ```ts
|
|
95
|
-
* const annotationView = annotations.createAnnotationView( editor.locale, innerView );
|
|
96
|
-
*
|
|
97
|
-
* const annotation = annotations.createAnnotation( {
|
|
98
|
-
* view: annotationView,
|
|
99
|
-
* target: document.getElementById( 'target' ),
|
|
100
|
-
* type: 'comment'
|
|
101
|
-
* } );
|
|
102
|
-
* ```
|
|
103
|
-
*
|
|
104
|
-
* @returns An annotation.
|
|
105
|
-
*/
|
|
106
|
-
createAnnotation(options: AnnotationOptions): Annotation;
|
|
107
|
-
/**
|
|
108
|
-
* Creates an annotation view wrapper for the annotation content.
|
|
109
|
-
*
|
|
110
|
-
* ```ts
|
|
111
|
-
* const innerView = createCustomView();
|
|
112
|
-
* const annotationView = annotations.createAnnotationView( editor.locale, innerView );
|
|
113
|
-
* ```
|
|
114
|
-
*
|
|
115
|
-
* @returns An annotation view.
|
|
116
|
-
*/
|
|
117
|
-
createAnnotationView(locale: Locale, view: AnnotationMainView): AnnotationView;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* The configuration options which are used to create new {@link module:comments/annotations/annotation~Annotation annotations}.
|
|
121
|
-
*
|
|
122
|
-
* @param view The annotation view.
|
|
123
|
-
* @param target The annotation target.
|
|
124
|
-
* @param type The annotation type.
|
|
125
|
-
* @param isVisible The initial visibility of the annotation.
|
|
126
|
-
*/
|
|
127
|
-
export interface AnnotationOptions {
|
|
128
|
-
view: AnnotationView;
|
|
129
|
-
target: AnnotationTarget;
|
|
130
|
-
type: string | (() => string);
|
|
131
|
-
isVisible?: boolean;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* An internal event that fires when the annotation should be activated.
|
|
135
|
-
*
|
|
136
|
-
* @eventName ~Annotations#_activateAnnotation
|
|
137
|
-
*/
|
|
138
|
-
export type ActivateAnnotationEvent = {
|
|
139
|
-
name: '_activateAnnotation';
|
|
140
|
-
args: [annotation: Annotation];
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* An internal event that fires when all annotations should be deactivated.
|
|
144
|
-
*
|
|
145
|
-
* @eventName ~Annotations#_deactivateAllAnnotations
|
|
146
|
-
*/
|
|
147
|
-
export type DeactivateAllAnnotationsEvent = {
|
|
148
|
-
name: '_deactivateAllAnnotations';
|
|
149
|
-
args: [];
|
|
150
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/annotations/annotations
|
|
3
|
+
* @publicApi
|
|
4
|
+
*/
|
|
5
|
+
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
|
|
6
|
+
import type { View } from 'ckeditor5/src/ui';
|
|
7
|
+
import { type Locale } from 'ckeditor5/src/utils';
|
|
8
|
+
import Annotation, { type AnnotationTarget } from './annotation';
|
|
9
|
+
import AnnotationCollection from './annotationcollection';
|
|
10
|
+
import AnnotationView, { type AnnotationMainView } from './view/annotationview';
|
|
11
|
+
/**
|
|
12
|
+
* Stores and manages all {@link module:comments/annotations/annotation~Annotation annotations} created
|
|
13
|
+
* for the entire {@link module:core/context~Context} or {@link module:core/editor/editor~Editor}.
|
|
14
|
+
*
|
|
15
|
+
* It allows for {@link module:comments/annotations/annotations~Annotations#add adding} and
|
|
16
|
+
* {@link module:comments/annotations/annotations~Annotations#remove removing} annotations.
|
|
17
|
+
*
|
|
18
|
+
* It manages {@link module:comments/annotations/annotations~Annotations#activate activating} and
|
|
19
|
+
* {@link module:comments/annotations/annotations~Annotations#deactivateAll deactivating} annotations. Using those methods will
|
|
20
|
+
* result in setting {@link module:comments/annotations/annotationsuis~AnnotationUI#activeAnnotation} in the appropriate
|
|
21
|
+
* {@link module:comments/annotations/annotationsuis~AnnotationsUI annotations UI} plugins.
|
|
22
|
+
*
|
|
23
|
+
* All active annotations are stored in {@link module:comments/annotations/annotations~Annotations#activeAnnotations}.
|
|
24
|
+
*
|
|
25
|
+
* `Annotations` is linked with {@link module:comments/annotations/annotationsuis~AnnotationsUIs}, which listens to events fired by
|
|
26
|
+
* `Annotations` and propagates information to and from annotations UI plugins.
|
|
27
|
+
*/
|
|
28
|
+
export default class Annotations extends ContextPlugin {
|
|
29
|
+
/**
|
|
30
|
+
* A set of currently active annotations.
|
|
31
|
+
*
|
|
32
|
+
* @observable
|
|
33
|
+
*/
|
|
34
|
+
activeAnnotations: Set<Annotation>;
|
|
35
|
+
/**
|
|
36
|
+
* A collection of all annotations. It should not be operated on directly.
|
|
37
|
+
*/
|
|
38
|
+
readonly collection: AnnotationCollection;
|
|
39
|
+
/**
|
|
40
|
+
* @inheritDoc
|
|
41
|
+
*/
|
|
42
|
+
static get pluginName(): "Annotations";
|
|
43
|
+
/**
|
|
44
|
+
* @inheritDoc
|
|
45
|
+
*/
|
|
46
|
+
constructor(context: Context | Editor);
|
|
47
|
+
/**
|
|
48
|
+
* Adds an annotation to the collection.
|
|
49
|
+
*/
|
|
50
|
+
add(annotation: Annotation): void;
|
|
51
|
+
/**
|
|
52
|
+
* Removes the given annotation from the collection.
|
|
53
|
+
*/
|
|
54
|
+
remove(annotation: Annotation): void;
|
|
55
|
+
/**
|
|
56
|
+
* Refreshes the visibility of annotations based on the visibility of their annotation targets.
|
|
57
|
+
*
|
|
58
|
+
* This method should be called when one or more annotations' targets changed their visibility,
|
|
59
|
+
* for example when one of the editors was shown or hidden.
|
|
60
|
+
*
|
|
61
|
+
* This method recalculates all annotations' {@link module:comments/annotations/annotation~Annotation#isVisible `isVisible`} property.
|
|
62
|
+
*/
|
|
63
|
+
refreshVisibility(): void;
|
|
64
|
+
/**
|
|
65
|
+
* Refreshes the positioning of all visible annotations and sorts them topmost and leftmost.
|
|
66
|
+
*/
|
|
67
|
+
refreshPositioning(): void;
|
|
68
|
+
/**
|
|
69
|
+
* Returns the annotation that "contains" the given annotation view's inner view.
|
|
70
|
+
*/
|
|
71
|
+
getByInnerView(innerView: View): Annotation | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Deactivates all active annotations.
|
|
74
|
+
*
|
|
75
|
+
* @fires _deactivateAllAnnotations
|
|
76
|
+
*/
|
|
77
|
+
deactivateAll(): void;
|
|
78
|
+
/**
|
|
79
|
+
* @inheritDoc
|
|
80
|
+
*/
|
|
81
|
+
destroy(): void;
|
|
82
|
+
/**
|
|
83
|
+
* Activates the given annotation.
|
|
84
|
+
*
|
|
85
|
+
* If annotations UI that handles the given annotation already has an active annotation,
|
|
86
|
+
* then it deactivates it and activates the provided one.
|
|
87
|
+
*
|
|
88
|
+
* @fires _activateAnnotation
|
|
89
|
+
*/
|
|
90
|
+
activate(annotation: Annotation): void;
|
|
91
|
+
/**
|
|
92
|
+
* Creates an annotation.
|
|
93
|
+
*
|
|
94
|
+
* ```ts
|
|
95
|
+
* const annotationView = annotations.createAnnotationView( editor.locale, innerView );
|
|
96
|
+
*
|
|
97
|
+
* const annotation = annotations.createAnnotation( {
|
|
98
|
+
* view: annotationView,
|
|
99
|
+
* target: document.getElementById( 'target' ),
|
|
100
|
+
* type: 'comment'
|
|
101
|
+
* } );
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* @returns An annotation.
|
|
105
|
+
*/
|
|
106
|
+
createAnnotation(options: AnnotationOptions): Annotation;
|
|
107
|
+
/**
|
|
108
|
+
* Creates an annotation view wrapper for the annotation content.
|
|
109
|
+
*
|
|
110
|
+
* ```ts
|
|
111
|
+
* const innerView = createCustomView();
|
|
112
|
+
* const annotationView = annotations.createAnnotationView( editor.locale, innerView );
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* @returns An annotation view.
|
|
116
|
+
*/
|
|
117
|
+
createAnnotationView(locale: Locale, view: AnnotationMainView): AnnotationView;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* The configuration options which are used to create new {@link module:comments/annotations/annotation~Annotation annotations}.
|
|
121
|
+
*
|
|
122
|
+
* @param view The annotation view.
|
|
123
|
+
* @param target The annotation target.
|
|
124
|
+
* @param type The annotation type.
|
|
125
|
+
* @param isVisible The initial visibility of the annotation.
|
|
126
|
+
*/
|
|
127
|
+
export interface AnnotationOptions {
|
|
128
|
+
view: AnnotationView;
|
|
129
|
+
target: AnnotationTarget;
|
|
130
|
+
type: string | (() => string);
|
|
131
|
+
isVisible?: boolean;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* An internal event that fires when the annotation should be activated.
|
|
135
|
+
*
|
|
136
|
+
* @eventName ~Annotations#_activateAnnotation
|
|
137
|
+
*/
|
|
138
|
+
export type ActivateAnnotationEvent = {
|
|
139
|
+
name: '_activateAnnotation';
|
|
140
|
+
args: [annotation: Annotation];
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* An internal event that fires when all annotations should be deactivated.
|
|
144
|
+
*
|
|
145
|
+
* @eventName ~Annotations#_deactivateAllAnnotations
|
|
146
|
+
*/
|
|
147
|
+
export type DeactivateAllAnnotationsEvent = {
|
|
148
|
+
name: '_deactivateAllAnnotations';
|
|
149
|
+
args: [];
|
|
150
|
+
};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xab17=['focusTracker','_removeActiveAnnotation','change:isVisible','_deactivateAllAnnotations','createAnnotation','pluginName','createAnnotationView','set','isVisible','getByInnerView','refreshPositioning','element','deactivateAll','listenTo','_activateAnnotation','collection','Annotations','add','delete','fire','view','remove','refreshVisibility','has','_bindAnnotationsToVisibleAnnotations','destroy','source','_addActiveAnnotation','activeAnnotations','_visibleAnnotations'];(function(_0x5c9264,_0xab1730){const _0x50b19e=function(_0x3e96c2){while(--_0x3e96c2){_0x5c9264['push'](_0x5c9264['shift']());}};_0x50b19e(++_0xab1730);}(_0xab17,0x1e9));const _0x50b1=function(_0x5c9264,_0xab1730){_0x5c9264=_0x5c9264-0x0;let _0x50b19e=_0xab17[_0x5c9264];return _0x50b19e;};import{ContextPlugin as _0x51097d}from'ckeditor5/src/core';import _0x43ff16 from'./annotation';import _0x1d4d19 from'./annotationcollection';import _0x260d34 from'./view/annotationview';export default class b extends _0x51097d{static get[_0x50b1('0x1a')](){return _0x50b1('0x7');}constructor(_0x285e48){super(_0x285e48),this[_0x50b1('0x6')]=new _0x1d4d19(),this['_visibleAnnotations']=new _0x1d4d19(),this[_0x50b1('0x1c')]('activeAnnotations',new Set()),this[_0x50b1('0xf')]();}[_0x50b1('0x8')](_0x48de32){this['collection'][_0x50b1('0x8')](_0x48de32);}[_0x50b1('0xc')](_0x3700b3){this[_0x50b1('0x6')][_0x50b1('0xc')](_0x3700b3),_0x3700b3[_0x50b1('0x10')]();}[_0x50b1('0xd')](){for(const _0x1ffcd9 of this[_0x50b1('0x6')])_0x1ffcd9[_0x50b1('0xd')]();}[_0x50b1('0x1')](){this['_visibleAnnotations'][_0x50b1('0x1')]();}[_0x50b1('0x0')](_0xc1330e){return this[_0x50b1('0x6')]['getByInnerView'](_0xc1330e);}[_0x50b1('0x3')](){this[_0x50b1('0xa')](_0x50b1('0x18'));}[_0x50b1('0x10')](){for(const _0x1b3e2a of this['collection'])_0x1b3e2a['destroy']();this['_visibleAnnotations'][_0x50b1('0x10')](),this[_0x50b1('0x6')]['destroy'](),super[_0x50b1('0x10')]();}['activate'](_0x2813a6){this[_0x50b1('0xa')](_0x50b1('0x5'),_0x2813a6);}[_0x50b1('0x19')](_0x2736ac){return new _0x43ff16(_0x2736ac);}[_0x50b1('0x1b')](_0x5a0c97,_0x1f7176){return new _0x260d34(_0x5a0c97,_0x1f7176);}[_0x50b1('0x12')](_0x3fb498){const _0x147848=new Set(this[_0x50b1('0x13')]);_0x147848[_0x50b1('0x8')](_0x3fb498),this[_0x50b1('0x13')]=_0x147848;}[_0x50b1('0x16')](_0x57b9c4){const _0x24b807=new Set(this['activeAnnotations']);_0x24b807[_0x50b1('0x9')](_0x57b9c4),this['activeAnnotations']=_0x24b807;}[_0x50b1('0xf')](){const _0x5f03e1=this[_0x50b1('0x6')],_0x383016=this[_0x50b1('0x14')];function _0x5f0b7e(_0x471d4f){const _0x50aae7=_0x471d4f[_0x50b1('0x11')];_0x50aae7[_0x50b1('0x1d')]&&!_0x383016[_0x50b1('0xe')](_0x50aae7)?_0x383016[_0x50b1('0x8')](_0x50aae7):!_0x50aae7[_0x50b1('0x1d')]&&_0x383016[_0x50b1('0xe')](_0x50aae7)&&_0x383016[_0x50b1('0xc')](_0x50aae7),_0x50aae7[_0x50b1('0xb')][_0x50b1('0x15')][_0x50b1('0xc')](_0x50aae7[_0x50b1('0xb')][_0x50b1('0x2')]),_0x50aae7['view'][_0x50b1('0x15')]['add'](_0x50aae7[_0x50b1('0xb')][_0x50b1('0x2')]);}this[_0x50b1('0x4')](_0x5f03e1,_0x50b1('0x8'),(_0x402504,_0x3c9708)=>{_0x3c9708['isVisible']&&_0x383016[_0x50b1('0x8')](_0x3c9708),this[_0x50b1('0x4')](_0x3c9708,'change:isVisible',_0x5f0b7e);}),this[_0x50b1('0x4')](_0x5f03e1,_0x50b1('0xc'),(_0x3b0e29,_0x1d8716)=>{_0x383016[_0x50b1('0xe')](_0x1d8716)&&_0x383016['remove'](_0x1d8716),this['stopListening'](_0x1d8716,_0x50b1('0x17'),_0x5f0b7e);});}}
|